@abyss-project/commons-front-core 1.0.144 → 1.0.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/{CookieConsentSettings.component-DIIK_rRd.js → CookieConsentSettings.component-OElkXdNK.js} +182 -100
  2. package/dist/components/Avatars/OrganizationAvatar/OrganizationAvatar.component.d.ts +3 -2
  3. package/dist/components/Avatars/ProjectAvatar/ProjectAvatar.component.d.ts +3 -2
  4. package/dist/components/Avatars/UserAvatar/UserAvatar.component.d.ts +3 -2
  5. package/dist/components/InfoBox/InfoBox.component.d.ts +1 -1
  6. package/dist/components/Inputs/AbyssNumberField/AbyssNumberField.component.d.ts +2 -1
  7. package/dist/components/Inputs/AbyssScopeSwitcher/AbyssScopeSwitcher.component.d.ts +1 -0
  8. package/dist/components/Inputs/AbyssScopeSwitcher/scope-option.spec.d.ts +1 -0
  9. package/dist/components/Inputs/ContextSelector/ContextSelector.component.d.ts +43 -0
  10. package/dist/components/Inputs/ContextSelector/index.d.ts +2 -0
  11. package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +2 -0
  12. package/dist/components/Inputs/DatePeriodPicker/date-period-picker.logic.d.ts +16 -0
  13. package/dist/components/Inputs/DatePeriodPicker/date-period-picker.logic.spec.d.ts +1 -0
  14. package/dist/components/Inputs/LanguageFlagLabel/LanguageFlagLabel.component.d.ts +9 -0
  15. package/dist/components/Inputs/LanguageFlagLabel/index.d.ts +2 -0
  16. package/dist/components/Inputs/LanguageFlagLabel/language-flags.d.ts +2 -0
  17. package/dist/components/Inputs/PasswordInput/PasswordInput.component.d.ts +3 -2
  18. package/dist/components/Inputs/index.d.ts +2 -0
  19. package/dist/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.component.d.ts +24 -0
  20. package/dist/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.logic.spec.d.ts +1 -0
  21. package/dist/components/Layouts/AbyssFamilyBanner/index.d.ts +2 -0
  22. package/dist/components/Layouts/index.d.ts +1 -0
  23. package/dist/components/Modals/AbyssModal/AbyssModal.component.d.ts +1 -0
  24. package/dist/components/Modals/UserSettingsModal/UserSettings.compat.d.ts +2 -1
  25. package/dist/components/Modals/UserSettingsModal/UserSettingsModal.component.d.ts +8 -0
  26. package/dist/components/Modals/UserSettingsModal/user-settings-modal.family.spec.d.ts +1 -0
  27. package/dist/components/PdfEditor/types.d.ts +4 -4
  28. package/dist/components/QuotaReached/billing-quota-error.spec.d.ts +1 -0
  29. package/dist/components/Support/types.d.ts +6 -6
  30. package/dist/components/Utils/AbyssDrawer/AbyssDrawer.component.d.ts +2 -1
  31. package/dist/components/Utils/AbyssFamilyMenuSection/AbyssFamilyMenuSection.d.ts +6 -0
  32. package/dist/components/Utils/AbyssFamilyMenuSection/AbyssFamilyMenuSection.spec.d.ts +1 -0
  33. package/dist/components/Utils/AbyssFamilyMenuSection/index.d.ts +1 -0
  34. package/dist/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.d.ts +7 -1
  35. package/dist/components/Utils/AbyssLayoutMenu/index.d.ts +1 -1
  36. package/dist/components/Utils/index.d.ts +1 -0
  37. package/dist/cookie-consent.js +1 -1
  38. package/dist/hooks/confirm-modal/confirm-modal.context.d.ts +3 -3
  39. package/dist/hooks/use-public-users.hook.d.ts +1 -0
  40. package/dist/hooks/use-public-users.hook.spec.d.ts +1 -0
  41. package/dist/hooks/use-rich-intl.hook.d.ts +112 -0
  42. package/dist/{index-Dbd_xKL4.js → index-0DKoS1Ho.js} +2 -2
  43. package/dist/{index-HKLND03d.js → index-BStJ2eR5.js} +2 -2
  44. package/dist/{index-0qb6YhgV.js → index-C-0bb3BS.js} +2 -2
  45. package/dist/{index-BpPAOM8y.js → index-C4iVvX_c.js} +1 -1
  46. package/dist/{index-D5bHj5Xy.js → index-CCaYRiXR.js} +2 -2
  47. package/dist/{index-ClzOO_BD.js → index-CTzGCHT1.js} +4 -4
  48. package/dist/{index-DgtjymrE.js → index-CWQyokns.js} +26568 -25493
  49. package/dist/{index-DZIEFA9C.js → index-C_VHuOIZ.js} +2 -2
  50. package/dist/{index-CMWMj2q-.js → index-CeZ2OKqT.js} +2 -2
  51. package/dist/{index-CrKObS9o.js → index-D-Z-Yepf.js} +2 -2
  52. package/dist/{index-Cbmdxst-.js → index-D-prSy8i.js} +3 -3
  53. package/dist/{index-1u1el1f5.js → index-DAG2YmhY.js} +2 -2
  54. package/dist/{index-CadocGiW.js → index-DMJCOIN6.js} +2 -2
  55. package/dist/{index-D7xEmIDx.js → index-DP9EENt-.js} +2 -2
  56. package/dist/{index-CYTUtJ1a.js → index-DPJn-INz.js} +2 -2
  57. package/dist/{index-BlAxx0qM.js → index-DedcVRIy.js} +4 -4
  58. package/dist/{index-CgrJ7FhF.js → index-HPIAkAU-.js} +2 -2
  59. package/dist/{index-eTVkFOlH.js → index-JqXrUnnS.js} +4 -4
  60. package/dist/{index-VTLXfj7y.js → index-VzGJqZUr.js} +3 -3
  61. package/dist/{index-ld9SEAyd.js → index-aJDianQ2.js} +3 -3
  62. package/dist/{index-rTu81tl5.js → index-paxe4Y8a.js} +2 -2
  63. package/dist/{index-DRhJX2fG.js → index-pojd1-xt.js} +3 -3
  64. package/dist/index.js +215 -208
  65. package/dist/translations/en.d.ts +40 -0
  66. package/dist/translations/family-i18n.spec.d.ts +1 -0
  67. package/dist/translations/fr.d.ts +40 -0
  68. package/package.json +4 -4
@@ -1,8 +1,8 @@
1
1
  import { jsx as i, jsxs as A, Fragment as $ } from "react/jsx-runtime";
2
- import { useCallback as C, useMemo as x, useState as y, useEffect as z, createContext as Q, useContext as ee } from "react";
3
- import { Paper as te, Stack as M, Box as N, Typography as m, Button as f, Dialog as oe, DialogTitle as ie, DialogContent as re, FormControlLabel as b, Checkbox as _, DialogActions as se, Card as ne, CardContent as ae } from "@mui/material";
2
+ import { useCallback as f, useMemo as x, useState as R, useEffect as z, createContext as Q, useContext as ee } from "react";
3
+ import { Paper as te, Stack as P, Box as N, Typography as m, Button as C, Dialog as oe, DialogTitle as ie, DialogContent as re, FormControlLabel as b, Checkbox as _, DialogActions as ne, Card as se, CardContent as ae } from "@mui/material";
4
4
  import { useIntl as le } from "react-intl";
5
- import { UserLanguage as R, enTranslation as ce, frTranslation as de, AbyssCore as k } from "@abyss-project/main";
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";
7
7
  const q = {
8
8
  50: "#EEF2FF",
@@ -54,7 +54,7 @@ const q = {
54
54
  700: "#B45309",
55
55
  800: "#92400E",
56
56
  900: "#78350F"
57
- }, Ee = {
57
+ }, ge = {
58
58
  50: "#FEF2F2",
59
59
  100: "#FEE2E2",
60
60
  200: "#FECACA",
@@ -65,7 +65,7 @@ const q = {
65
65
  700: "#B91C1C",
66
66
  800: "#991B1B",
67
67
  900: "#7F1D1D"
68
- }, Se = {
68
+ }, Ee = {
69
69
  50: "#ECFDF5",
70
70
  100: "#D1FAE5",
71
71
  200: "#A7F3D0",
@@ -76,7 +76,7 @@ const q = {
76
76
  700: "#047857",
77
77
  800: "#065F46",
78
78
  900: "#064E3B"
79
- }, ge = {
79
+ }, Se = {
80
80
  50: "#FAF5FF",
81
81
  100: "#F3E8FF",
82
82
  200: "#E9D5FF",
@@ -100,7 +100,7 @@ const q = {
100
100
  grey: "#384454",
101
101
  white: "#D4D3DC",
102
102
  braun: "#AD956B"
103
- }, P = [
103
+ }, M = [
104
104
  "#6366F1",
105
105
  // indigo (brand)
106
106
  "#22D3EE",
@@ -126,7 +126,7 @@ const q = {
126
126
  "#C084FC"
127
127
  // purple
128
128
  ], G = [
129
- ...P,
129
+ ...M,
130
130
  "#E879F9",
131
131
  // fuchsia
132
132
  "#2DD4BF",
@@ -176,23 +176,23 @@ const q = {
176
176
  // sky
177
177
  "#3b82f6"
178
178
  // blue
179
- ], Ne = (e) => P[e % P.length], Oe = (e) => G[e % G.length], qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
179
+ ], Ne = (e) => M[e % M.length], Oe = (e) => G[e % G.length], qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
180
180
  __proto__: null,
181
181
  amber: W,
182
182
  chipColors: he,
183
- colorPool: P,
183
+ colorPool: M,
184
184
  colorPoolExtended: G,
185
185
  cyan: Ae,
186
186
  getPoolColor: Ne,
187
187
  getPoolColorExtended: Oe,
188
- green: Se,
188
+ green: Ee,
189
189
  indigo: q,
190
190
  neutral: me,
191
- purple: ge,
192
- red: Ee,
191
+ purple: Se,
192
+ red: ge,
193
193
  social: Te,
194
194
  tagColorPool: Ie
195
- }, Symbol.toStringTag, { value: "Module" })), Ce = {
195
+ }, Symbol.toStringTag, { value: "Module" })), fe = {
196
196
  "space-display-name": {
197
197
  personal: "Mon Cloud",
198
198
  "perso-in-org": "Mon Cloud (dans org)",
@@ -451,7 +451,8 @@ const q = {
451
451
  account: "Mon compte",
452
452
  settings: "Paramètres",
453
453
  billing: "Facturation",
454
- logout: "Déconnexion"
454
+ logout: "Déconnexion",
455
+ family: "Famille"
455
456
  },
456
457
  scope: {
457
458
  personal: "Personnel",
@@ -464,6 +465,12 @@ const q = {
464
465
  decline: "Décliner"
465
466
  }
466
467
  },
468
+ "context-selector": {
469
+ personal: "Mon Espace",
470
+ organization: "Organisation",
471
+ projects: "Projets",
472
+ "org-entry": "Organisation"
473
+ },
467
474
  general: {
468
475
  error: "Une erreur est survenue",
469
476
  retry: "Réessayer",
@@ -510,6 +517,22 @@ const q = {
510
517
  "theme-light": "Mode clair",
511
518
  "theme-dark": "Mode sombre"
512
519
  },
520
+ table: {
521
+ "rows-per-page": "Lignes par page :",
522
+ "displayed-rows": "{from}–{to} sur {count}",
523
+ "displayed-rows-empty": "0 sur 0",
524
+ "rows-count": "{count, plural, one {# ligne} other {# lignes}}",
525
+ "page-of": "{page} / {count}",
526
+ search: "Rechercher…",
527
+ empty: "Aucune donnée",
528
+ "show-filters": "Afficher les filtres",
529
+ "hide-filters": "Masquer les filtres",
530
+ "clear-filters": "Tout effacer",
531
+ "first-page": "Première page",
532
+ "previous-page": "Page précédente",
533
+ "next-page": "Page suivante",
534
+ "last-page": "Dernière page"
535
+ },
513
536
  "file-importation": {
514
537
  "cloud-usage-metrics": {
515
538
  title: "Espaces AbyssCloud",
@@ -1016,6 +1039,24 @@ const q = {
1016
1039
  "open-button-tooltip": "Cliquer pour ajouter un commentaire"
1017
1040
  }
1018
1041
  },
1042
+ family: {
1043
+ banner: {
1044
+ "no-family": "Pas encore de famille",
1045
+ "no-family-cta": "Créer une famille",
1046
+ pending: "Invitation en attente",
1047
+ active: "Famille active",
1048
+ manage: "Gérer",
1049
+ "owner-badge": "Propriétaire",
1050
+ // reserved: Banking family — used by host banner
1051
+ "coming-soon": "Banking famille — bientôt disponible",
1052
+ settings: {
1053
+ "no-family-description": "Rejoignez ou créez un espace famille pour partager vos finances avec vos proches.",
1054
+ "pending-description": "Vous avez reçu une invitation. Connectez-vous à Abyss pour l'accepter ou la refuser.",
1055
+ "active-description": "Vous êtes membre de cet espace famille.",
1056
+ "owner-description": "Vous gérez cet espace famille."
1057
+ }
1058
+ }
1059
+ },
1019
1060
  support: {
1020
1061
  status: {
1021
1062
  OPEN: "Ouvert",
@@ -1207,7 +1248,7 @@ const q = {
1207
1248
  ABYSS_TOOLS: "Abyss Tools"
1208
1249
  }
1209
1250
  }
1210
- }, fe = {
1251
+ }, Ce = {
1211
1252
  "space-display-name": {
1212
1253
  personal: "My Cloud",
1213
1254
  "perso-in-org": "My Cloud (in org)",
@@ -1466,7 +1507,8 @@ const q = {
1466
1507
  account: "My account",
1467
1508
  settings: "Settings",
1468
1509
  billing: "Billing",
1469
- logout: "Log out"
1510
+ logout: "Log out",
1511
+ family: "Family"
1470
1512
  },
1471
1513
  scope: {
1472
1514
  personal: "Personal",
@@ -1479,6 +1521,12 @@ const q = {
1479
1521
  decline: "Decline"
1480
1522
  }
1481
1523
  },
1524
+ "context-selector": {
1525
+ personal: "My Space",
1526
+ organization: "Organization",
1527
+ projects: "Projects",
1528
+ "org-entry": "Organization"
1529
+ },
1482
1530
  general: {
1483
1531
  error: "An error occurred",
1484
1532
  retry: "Retry",
@@ -1525,6 +1573,22 @@ const q = {
1525
1573
  "theme-light": "Light mode",
1526
1574
  "theme-dark": "Dark mode"
1527
1575
  },
1576
+ table: {
1577
+ "rows-per-page": "Rows per page:",
1578
+ "displayed-rows": "{from}–{to} of {count}",
1579
+ "displayed-rows-empty": "0 of 0",
1580
+ "rows-count": "{count, plural, one {# row} other {# rows}}",
1581
+ "page-of": "{page} / {count}",
1582
+ search: "Search…",
1583
+ empty: "No data",
1584
+ "show-filters": "Show filters",
1585
+ "hide-filters": "Hide filters",
1586
+ "clear-filters": "Clear all",
1587
+ "first-page": "First page",
1588
+ "previous-page": "Previous page",
1589
+ "next-page": "Next page",
1590
+ "last-page": "Last page"
1591
+ },
1528
1592
  "file-importation": {
1529
1593
  "cloud-usage-metrics": {
1530
1594
  title: "AbyssCloud Spaces",
@@ -2221,51 +2285,69 @@ const q = {
2221
2285
  ABYSS_GAME_ODYSSEY: "Abyss Game Odyssey",
2222
2286
  ABYSS_TOOLS: "Abyss Tools"
2223
2287
  }
2288
+ },
2289
+ family: {
2290
+ banner: {
2291
+ "no-family": "No family yet",
2292
+ "no-family-cta": "Create a family",
2293
+ pending: "Invitation pending",
2294
+ active: "Family active",
2295
+ manage: "Manage",
2296
+ "owner-badge": "Owner",
2297
+ // reserved: Banking family — used by host banner
2298
+ "coming-soon": "Family Banking — coming soon",
2299
+ settings: {
2300
+ "no-family-description": "Join or create a family space to manage your finances together.",
2301
+ "pending-description": "You have a pending invitation. Sign in to Abyss to accept or decline it.",
2302
+ "active-description": "You are a member of this family space.",
2303
+ "owner-description": "You are managing this family space."
2304
+ }
2305
+ }
2224
2306
  }
2225
2307
  };
2226
2308
  var U, B;
2227
- function Re() {
2309
+ function ye() {
2228
2310
  if (B) return U;
2229
- B = 1, U = o, o.flatten = o, o.unflatten = n;
2311
+ B = 1, U = o, o.flatten = o, o.unflatten = s;
2230
2312
  function e(r) {
2231
2313
  return r && r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
2232
2314
  }
2233
2315
  function t(r) {
2234
2316
  return r;
2235
2317
  }
2236
- function o(r, s) {
2237
- s = s || {};
2238
- const u = s.delimiter || ".", p = s.maxDepth, E = s.transformKey || t, I = {};
2318
+ function o(r, n) {
2319
+ n = n || {};
2320
+ const u = n.delimiter || ".", p = n.maxDepth, g = n.transformKey || t, I = {};
2239
2321
  function a(T, O, h) {
2240
2322
  h = h || 1, Object.keys(T).forEach(function(c) {
2241
- const l = T[c], d = s.safe && Array.isArray(l), S = Object.prototype.toString.call(l), g = e(l), D = S === "[object Object]" || S === "[object Array]", v = O ? O + u + E(c) : E(c);
2242
- if (!d && !g && D && Object.keys(l).length && (!s.maxDepth || h < p))
2323
+ const l = T[c], d = n.safe && Array.isArray(l), E = Object.prototype.toString.call(l), S = e(l), D = E === "[object Object]" || E === "[object Array]", v = O ? O + u + g(c) : g(c);
2324
+ if (!d && !S && D && Object.keys(l).length && (!n.maxDepth || h < p))
2243
2325
  return a(l, v, h + 1);
2244
2326
  I[v] = l;
2245
2327
  });
2246
2328
  }
2247
2329
  return a(r), I;
2248
2330
  }
2249
- function n(r, s) {
2250
- s = s || {};
2251
- const u = s.delimiter || ".", p = s.overwrite || !1, E = s.transformKey || t, I = {};
2331
+ function s(r, n) {
2332
+ n = n || {};
2333
+ const u = n.delimiter || ".", p = n.overwrite || !1, g = n.transformKey || t, I = {};
2252
2334
  if (e(r) || Object.prototype.toString.call(r) !== "[object Object]")
2253
2335
  return r;
2254
2336
  function T(c) {
2255
2337
  const l = Number(c);
2256
- return isNaN(l) || c.indexOf(".") !== -1 || s.object ? c : l;
2338
+ return isNaN(l) || c.indexOf(".") !== -1 || n.object ? c : l;
2257
2339
  }
2258
2340
  function O(c, l, d) {
2259
- return Object.keys(d).reduce(function(S, g) {
2260
- return S[c + u + g] = d[g], S;
2341
+ return Object.keys(d).reduce(function(E, S) {
2342
+ return E[c + u + S] = d[S], E;
2261
2343
  }, l);
2262
2344
  }
2263
2345
  function h(c) {
2264
- const l = Object.prototype.toString.call(c), d = l === "[object Array]", S = l === "[object Object]";
2346
+ const l = Object.prototype.toString.call(c), d = l === "[object Array]", E = l === "[object Object]";
2265
2347
  if (c) {
2266
2348
  if (d)
2267
2349
  return !c.length;
2268
- if (S)
2350
+ if (E)
2269
2351
  return !Object.keys(c).length;
2270
2352
  } else return !0;
2271
2353
  }
@@ -2274,45 +2356,45 @@ function Re() {
2274
2356
  return !(d === "[object Object]" || d === "[object Array]") || h(r[l]) ? (c[l] = r[l], c) : O(
2275
2357
  l,
2276
2358
  c,
2277
- o(r[l], s)
2359
+ o(r[l], n)
2278
2360
  );
2279
2361
  }, {}), Object.keys(r).forEach(function(c) {
2280
- const l = c.split(u).map(E);
2281
- let d = T(l.shift()), S = T(l[0]), g = I;
2282
- for (; S !== void 0; ) {
2362
+ const l = c.split(u).map(g);
2363
+ let d = T(l.shift()), E = T(l[0]), S = I;
2364
+ for (; E !== void 0; ) {
2283
2365
  if (d === "__proto__")
2284
2366
  return;
2285
- const D = Object.prototype.toString.call(g[d]), v = D === "[object Object]" || D === "[object Array]";
2286
- if (!p && !v && typeof g[d] < "u")
2367
+ const D = Object.prototype.toString.call(S[d]), v = D === "[object Object]" || D === "[object Array]";
2368
+ if (!p && !v && typeof S[d] < "u")
2287
2369
  return;
2288
- (p && !v || !p && g[d] == null) && (g[d] = typeof S == "number" && !s.object ? [] : {}), g = g[d], l.length > 0 && (d = T(l.shift()), S = T(l[0]));
2370
+ (p && !v || !p && S[d] == null) && (S[d] = typeof E == "number" && !n.object ? [] : {}), S = S[d], l.length > 0 && (d = T(l.shift()), E = T(l[0]));
2289
2371
  }
2290
- g[d] = n(r[c], s);
2372
+ S[d] = s(r[c], n);
2291
2373
  }), I;
2292
2374
  }
2293
2375
  return U;
2294
2376
  }
2295
- var w = Re();
2377
+ var w = ye();
2296
2378
  const j = {
2297
- [R.FRENCH]: { ...Ce, common: de },
2298
- [R.ENGLISH]: { ...fe, common: ce }
2379
+ [y.FRENCH]: { ...fe, common: de },
2380
+ [y.ENGLISH]: { ...Ce, common: ce }
2299
2381
  }, We = {
2300
- [R.FRENCH]: w.flatten(j[R.FRENCH]),
2301
- [R.ENGLISH]: w.flatten(j[R.ENGLISH])
2302
- }, ye = {
2382
+ [y.FRENCH]: w.flatten(j[y.FRENCH]),
2383
+ [y.ENGLISH]: w.flatten(j[y.ENGLISH])
2384
+ }, Re = {
2303
2385
  break: /* @__PURE__ */ i("br", {}),
2304
2386
  bold: (...e) => /* @__PURE__ */ i("strong", { children: e }),
2305
2387
  italic: (...e) => /* @__PURE__ */ i("i", { children: e }),
2306
2388
  primary: (...e) => /* @__PURE__ */ i("span", { style: { color: q[500] }, children: e }),
2307
2389
  focus: (...e) => /* @__PURE__ */ i("span", { style: { color: W[400] }, children: e })
2308
2390
  }, K = () => {
2309
- const e = le(), t = C(
2310
- (o, n) => e.formatMessage(o, { ...ye, ...n }),
2391
+ const e = le(), t = f(
2392
+ (o, s) => e.formatMessage(o, { ...Re, ...s }),
2311
2393
  [e]
2312
2394
  );
2313
2395
  return x(() => {
2314
- const { formatMessage: o, ...n } = e;
2315
- return { ...n, formatRichMessage: t };
2396
+ const { formatMessage: o, ...s } = e;
2397
+ return { ...s, formatRichMessage: t };
2316
2398
  }, [e, t]);
2317
2399
  }, L = "abyssCookieConsent", J = 365, be = J * 24 * 60 * 60, _e = () => typeof window > "u" ? !1 : window.location.protocol === "https:", X = (e, t) => {
2318
2400
  const o = ["Path=/", `Max-Age=${t}`, "SameSite=Lax"];
@@ -2325,8 +2407,8 @@ const j = {
2325
2407
  return null;
2326
2408
  const t = e.slice(L.length + 1);
2327
2409
  try {
2328
- const o = atob(decodeURIComponent(t)), n = JSON.parse(o);
2329
- return typeof n.a != "boolean" || typeof n.m != "boolean" || typeof n.d != "string" || typeof n.v != "string" ? null : n;
2410
+ const o = atob(decodeURIComponent(t)), s = JSON.parse(o);
2411
+ return typeof s.a != "boolean" || typeof s.m != "boolean" || typeof s.d != "string" || typeof s.v != "string" ? null : s;
2330
2412
  } catch {
2331
2413
  return null;
2332
2414
  }
@@ -2345,18 +2427,18 @@ const Y = (e) => ({
2345
2427
  marketing: e.marketing,
2346
2428
  decidedAt: typeof e.decidedAt == "string" ? e.decidedAt : new Date(e.decidedAt).toISOString(),
2347
2429
  consentVersion: e.consentVersion
2348
- }), Me = (e, t) => {
2430
+ }), Pe = (e, t) => {
2349
2431
  if (!e && !t)
2350
2432
  return { action: "noop", value: null };
2351
2433
  if (!e && t)
2352
2434
  return { action: "adopt-db", value: Y(t) };
2353
2435
  if (e && !t)
2354
2436
  return { action: "push-cookie", value: e };
2355
- const o = new Date(e.decidedAt).getTime(), n = new Date(
2437
+ const o = new Date(e.decidedAt).getTime(), s = new Date(
2356
2438
  typeof t.decidedAt == "string" ? t.decidedAt : t.decidedAt.toISOString()
2357
2439
  ).getTime();
2358
- return n > o ? { action: "adopt-db", value: Y(t) } : o > n ? { action: "push-cookie", value: e } : { action: "noop", value: e };
2359
- }, Pe = J * 24 * 60 * 60 * 1e3, Le = (e) => ({
2440
+ return s > o ? { action: "adopt-db", value: Y(t) } : o > s ? { action: "push-cookie", value: e } : { action: "noop", value: e };
2441
+ }, Me = J * 24 * 60 * 60 * 1e3, Le = (e) => ({
2360
2442
  essentials: !0,
2361
2443
  analytics: e.a,
2362
2444
  marketing: e.m,
@@ -2370,13 +2452,13 @@ const Y = (e) => ({
2370
2452
  }), Ue = (e, t, o) => {
2371
2453
  if (o.v !== t)
2372
2454
  return !1;
2373
- const n = new Date(e).getTime();
2374
- return Number.isNaN(n) ? !1 : Date.now() - n < Pe;
2455
+ const s = new Date(e).getTime();
2456
+ return Number.isNaN(s) ? !1 : Date.now() - s < Me;
2375
2457
  }, Ge = (e) => {
2376
2458
  const t = ve();
2377
2459
  return !t || !Ue(t.d, e, t) ? null : Le(t);
2378
2460
  }, Fe = (e) => {
2379
- const [t, o] = y(() => Ge(e.consentVersion)), n = ue({
2461
+ const [t, o] = R(() => Ge(e.consentVersion)), s = ue({
2380
2462
  queryKey: ["cookie-consent", "me"],
2381
2463
  queryFn: async () => (await k.sdk.user.cookieConsent.get()).data.consent,
2382
2464
  enabled: e.isAuthenticated,
@@ -2389,37 +2471,37 @@ const Y = (e) => ({
2389
2471
  decidedAt: a.decidedAt,
2390
2472
  consentVersion: a.consentVersion
2391
2473
  })).data.consent
2392
- }), s = C(
2474
+ }), n = f(
2393
2475
  (a) => {
2394
2476
  H(V(a), { domain: e.domain }), o(a), e.isAuthenticated && r.mutate(a);
2395
2477
  },
2396
2478
  [e.domain, e.isAuthenticated, r]
2397
2479
  );
2398
2480
  z(() => {
2399
- if (!e.isAuthenticated || n.isLoading || n.isError)
2481
+ if (!e.isAuthenticated || s.isLoading || s.isError)
2400
2482
  return;
2401
- const a = Me(t, n.data ?? null);
2483
+ const a = Pe(t, s.data ?? null);
2402
2484
  a.action === F.ADOPT_DB && a.value ? (H(V(a.value), { domain: e.domain }), o(a.value)) : a.action === F.PUSH_COOKIE && a.value && r.mutate(a.value);
2403
- }, [e.isAuthenticated, n.isLoading, n.isError, n.data]);
2404
- const u = C(() => {
2405
- s({
2485
+ }, [e.isAuthenticated, s.isLoading, s.isError, s.data]);
2486
+ const u = f(() => {
2487
+ n({
2406
2488
  essentials: !0,
2407
2489
  analytics: !0,
2408
2490
  marketing: !0,
2409
2491
  decidedAt: (/* @__PURE__ */ new Date()).toISOString(),
2410
2492
  consentVersion: e.consentVersion
2411
2493
  });
2412
- }, [e.consentVersion, s]), p = C(() => {
2413
- s({
2494
+ }, [e.consentVersion, n]), p = f(() => {
2495
+ n({
2414
2496
  essentials: !0,
2415
2497
  analytics: !1,
2416
2498
  marketing: !1,
2417
2499
  decidedAt: (/* @__PURE__ */ new Date()).toISOString(),
2418
2500
  consentVersion: e.consentVersion
2419
2501
  });
2420
- }, [e.consentVersion, s]), E = C(
2502
+ }, [e.consentVersion, n]), g = f(
2421
2503
  (a) => {
2422
- s({
2504
+ n({
2423
2505
  essentials: !0,
2424
2506
  analytics: a.analytics,
2425
2507
  marketing: a.marketing,
@@ -2427,14 +2509,14 @@ const Y = (e) => ({
2427
2509
  consentVersion: e.consentVersion
2428
2510
  });
2429
2511
  },
2430
- [e.consentVersion, s]
2431
- ), I = C(() => {
2512
+ [e.consentVersion, n]
2513
+ ), I = f(() => {
2432
2514
  De({ domain: e.domain }), o(null);
2433
2515
  }, [e.domain]);
2434
- return { consent: t, isResolved: t !== null, acceptAll: u, rejectAll: p, save: E, reset: I };
2516
+ return { consent: t, isResolved: t !== null, acceptAll: u, rejectAll: p, save: g, reset: I };
2435
2517
  }, ke = ({ api: e, privacyLinkHref: t }) => {
2436
- const o = K(), { acceptAll: n, rejectAll: r, save: s } = e, [u, p] = y(!1), [E, I] = y(!1), [a, T] = y(!1), O = () => {
2437
- s({ analytics: E, marketing: a }), p(!1);
2518
+ const o = K(), { acceptAll: s, rejectAll: r, save: n } = e, [u, p] = R(!1), [g, I] = R(!1), [a, T] = R(!1), O = () => {
2519
+ n({ analytics: g, marketing: a }), p(!1);
2438
2520
  };
2439
2521
  return /* @__PURE__ */ A($, { children: [
2440
2522
  /* @__PURE__ */ i(
@@ -2456,23 +2538,23 @@ const Y = (e) => ({
2456
2538
  },
2457
2539
  role: "dialog",
2458
2540
  "aria-labelledby": "cookie-consent-title",
2459
- children: /* @__PURE__ */ A(M, { direction: { xs: "column", md: "row" }, spacing: 2, alignItems: { xs: "stretch", md: "center" }, children: [
2541
+ children: /* @__PURE__ */ A(P, { direction: { xs: "column", md: "row" }, spacing: 2, alignItems: { xs: "stretch", md: "center" }, children: [
2460
2542
  /* @__PURE__ */ A(N, { sx: { flex: 1 }, children: [
2461
2543
  /* @__PURE__ */ i(m, { id: "cookie-consent-title", variant: "subtitle1", fontWeight: 700, gutterBottom: !0, children: o.formatRichMessage({ id: "cookies.banner.title" }) }),
2462
2544
  /* @__PURE__ */ i(m, { variant: "body2", color: "text.secondary", children: o.formatRichMessage({ id: "cookies.banner.description" }) }),
2463
2545
  /* @__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" }) }) })
2464
2546
  ] }),
2465
- /* @__PURE__ */ A(M, { direction: { xs: "column", sm: "row" }, spacing: 1, sx: { flexShrink: 0 }, children: [
2466
- /* @__PURE__ */ i(f, { variant: "text", onClick: r, children: o.formatRichMessage({ id: "cookies.action.reject-all" }) }),
2467
- /* @__PURE__ */ i(f, { variant: "outlined", onClick: () => p(!0), children: o.formatRichMessage({ id: "cookies.action.configure" }) }),
2468
- /* @__PURE__ */ i(f, { variant: "contained", onClick: n, children: o.formatRichMessage({ id: "cookies.action.accept-all" }) })
2547
+ /* @__PURE__ */ A(P, { direction: { xs: "column", sm: "row" }, spacing: 1, sx: { flexShrink: 0 }, children: [
2548
+ /* @__PURE__ */ i(C, { variant: "text", onClick: r, children: o.formatRichMessage({ id: "cookies.action.reject-all" }) }),
2549
+ /* @__PURE__ */ i(C, { variant: "outlined", onClick: () => p(!0), children: o.formatRichMessage({ id: "cookies.action.configure" }) }),
2550
+ /* @__PURE__ */ i(C, { variant: "contained", onClick: s, children: o.formatRichMessage({ id: "cookies.action.accept-all" }) })
2469
2551
  ] })
2470
2552
  ] })
2471
2553
  }
2472
2554
  ),
2473
2555
  /* @__PURE__ */ A(oe, { open: u, onClose: () => p(!1), maxWidth: "sm", fullWidth: !0, children: [
2474
2556
  /* @__PURE__ */ i(ie, { children: o.formatRichMessage({ id: "cookies.configure.title" }) }),
2475
- /* @__PURE__ */ i(re, { children: /* @__PURE__ */ A(M, { spacing: 2, sx: { pt: 1 }, children: [
2557
+ /* @__PURE__ */ i(re, { children: /* @__PURE__ */ A(P, { spacing: 2, sx: { pt: 1 }, children: [
2476
2558
  /* @__PURE__ */ i(
2477
2559
  b,
2478
2560
  {
@@ -2486,7 +2568,7 @@ const Y = (e) => ({
2486
2568
  /* @__PURE__ */ i(
2487
2569
  b,
2488
2570
  {
2489
- control: /* @__PURE__ */ i(_, { checked: E, onChange: (h, c) => I(c) }),
2571
+ control: /* @__PURE__ */ i(_, { checked: g, onChange: (h, c) => I(c) }),
2490
2572
  label: /* @__PURE__ */ A(N, { children: [
2491
2573
  /* @__PURE__ */ i(m, { variant: "body2", fontWeight: 600, children: o.formatRichMessage({ id: "cookies.category.analytics.title" }) }),
2492
2574
  /* @__PURE__ */ i(m, { variant: "caption", color: "text.secondary", children: o.formatRichMessage({ id: "cookies.category.analytics.description" }) })
@@ -2504,9 +2586,9 @@ const Y = (e) => ({
2504
2586
  }
2505
2587
  )
2506
2588
  ] }) }),
2507
- /* @__PURE__ */ A(se, { children: [
2508
- /* @__PURE__ */ i(f, { onClick: () => p(!1), children: o.formatRichMessage({ id: "cookies.action.cancel" }) }),
2509
- /* @__PURE__ */ i(f, { onClick: O, variant: "contained", children: o.formatRichMessage({ id: "cookies.action.save" }) })
2589
+ /* @__PURE__ */ A(ne, { children: [
2590
+ /* @__PURE__ */ i(C, { onClick: () => p(!1), children: o.formatRichMessage({ id: "cookies.action.cancel" }) }),
2591
+ /* @__PURE__ */ i(C, { onClick: O, variant: "contained", children: o.formatRichMessage({ id: "cookies.action.save" }) })
2510
2592
  ] })
2511
2593
  ] })
2512
2594
  ] });
@@ -2519,20 +2601,20 @@ const Y = (e) => ({
2519
2601
  children: e,
2520
2602
  consentVersion: t,
2521
2603
  isAuthenticated: o,
2522
- domain: n,
2604
+ domain: s,
2523
2605
  privacyLinkHref: r = we,
2524
- renderBanner: s
2606
+ renderBanner: n
2525
2607
  }) => {
2526
- const u = Fe({ isAuthenticated: o, consentVersion: t, domain: n }), p = x(() => u.isResolved ? null : s ? s(u) : /* @__PURE__ */ i(ke, { api: u, privacyLinkHref: r }), [u, r, s]);
2608
+ const u = Fe({ isAuthenticated: o, consentVersion: t, domain: s }), p = x(() => u.isResolved ? null : n ? n(u) : /* @__PURE__ */ i(ke, { api: u, privacyLinkHref: r }), [u, r, n]);
2527
2609
  return /* @__PURE__ */ A(Z.Provider, { value: u, children: [
2528
2610
  e,
2529
2611
  p
2530
2612
  ] });
2531
2613
  }, Je = () => {
2532
- const e = K(), { consent: t, save: o } = Be(), [n, r] = y((t == null ? void 0 : t.analytics) ?? !1), [s, u] = y((t == null ? void 0 : t.marketing) ?? !1);
2614
+ const e = K(), { consent: t, save: o } = Be(), [s, r] = R((t == null ? void 0 : t.analytics) ?? !1), [n, u] = R((t == null ? void 0 : t.marketing) ?? !1);
2533
2615
  return z(() => {
2534
2616
  t && (r(t.analytics), u(t.marketing));
2535
- }, [t == null ? void 0 : t.analytics, t == null ? void 0 : t.marketing]), /* @__PURE__ */ i(ne, { sx: { borderRadius: 3 }, children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ A(M, { spacing: 2, children: [
2617
+ }, [t == null ? void 0 : t.analytics, t == null ? void 0 : t.marketing]), /* @__PURE__ */ i(se, { sx: { borderRadius: 3 }, children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ A(P, { spacing: 2, children: [
2536
2618
  /* @__PURE__ */ i(m, { variant: "h6", children: e.formatRichMessage({ id: "cookies.configure.title" }) }),
2537
2619
  /* @__PURE__ */ i(
2538
2620
  b,
@@ -2547,7 +2629,7 @@ const Y = (e) => ({
2547
2629
  /* @__PURE__ */ i(
2548
2630
  b,
2549
2631
  {
2550
- control: /* @__PURE__ */ i(_, { checked: n, onChange: (p, E) => r(E) }),
2632
+ control: /* @__PURE__ */ i(_, { checked: s, onChange: (p, g) => r(g) }),
2551
2633
  label: /* @__PURE__ */ A(N, { children: [
2552
2634
  /* @__PURE__ */ i(m, { variant: "body2", fontWeight: 600, children: e.formatRichMessage({ id: "cookies.category.analytics.title" }) }),
2553
2635
  /* @__PURE__ */ i(m, { variant: "caption", color: "text.secondary", children: e.formatRichMessage({ id: "cookies.category.analytics.description" }) })
@@ -2557,41 +2639,41 @@ const Y = (e) => ({
2557
2639
  /* @__PURE__ */ i(
2558
2640
  b,
2559
2641
  {
2560
- control: /* @__PURE__ */ i(_, { checked: s, onChange: (p, E) => u(E) }),
2642
+ control: /* @__PURE__ */ i(_, { checked: n, onChange: (p, g) => u(g) }),
2561
2643
  label: /* @__PURE__ */ A(N, { children: [
2562
2644
  /* @__PURE__ */ i(m, { variant: "body2", fontWeight: 600, children: e.formatRichMessage({ id: "cookies.category.marketing.title" }) }),
2563
2645
  /* @__PURE__ */ i(m, { variant: "caption", color: "text.secondary", children: e.formatRichMessage({ id: "cookies.category.marketing.description" }) })
2564
2646
  ] })
2565
2647
  }
2566
2648
  ),
2567
- /* @__PURE__ */ i(N, { children: /* @__PURE__ */ i(f, { variant: "contained", onClick: () => o({ analytics: n, marketing: s }), children: e.formatRichMessage({ id: "cookies.action.save" }) }) })
2649
+ /* @__PURE__ */ i(N, { children: /* @__PURE__ */ i(C, { variant: "contained", onClick: () => o({ analytics: s, marketing: n }), children: e.formatRichMessage({ id: "cookies.action.save" }) }) })
2568
2650
  ] }) }) });
2569
2651
  };
2570
2652
  export {
2571
2653
  Ke as A,
2572
- ye as B,
2654
+ Re as B,
2573
2655
  ke as C,
2574
- fe as D,
2575
- Ce as E,
2656
+ Ce as D,
2657
+ fe as E,
2576
2658
  F as R,
2577
2659
  J as V,
2578
2660
  Je as a,
2579
2661
  Fe as b,
2580
2662
  L as c,
2581
2663
  De as d,
2582
- Me as e,
2664
+ Pe as e,
2583
2665
  We as f,
2584
- Ee as g,
2666
+ ge as g,
2585
2667
  W as h,
2586
- Se as i,
2668
+ Ee as i,
2587
2669
  q as j,
2588
2670
  K as k,
2589
2671
  Ae as l,
2590
2672
  qe as m,
2591
2673
  me as n,
2592
2674
  he as o,
2593
- ge as p,
2594
- P as q,
2675
+ Se as p,
2676
+ M as q,
2595
2677
  ve as r,
2596
2678
  Te as s,
2597
2679
  G as t,
@@ -1,10 +1,11 @@
1
1
  import { SxProps } from '@mui/material';
2
+ import { FC, ReactNode } from 'react';
2
3
  export type OrganizationAvatarProfileInfo = {
3
4
  createdAt?: string;
4
5
  projectCount?: number;
5
6
  memberCount?: number;
6
7
  integrations?: string[];
7
- extra?: React.ReactNode;
8
+ extra?: ReactNode;
8
9
  };
9
10
  type Props = {
10
11
  orgId: string;
@@ -19,5 +20,5 @@ type Props = {
19
20
  profileInfo?: OrganizationAvatarProfileInfo;
20
21
  onClick?: () => void;
21
22
  };
22
- declare const OrganizationAvatar: React.FC<Props>;
23
+ declare const OrganizationAvatar: FC<Props>;
23
24
  export default OrganizationAvatar;
@@ -1,4 +1,5 @@
1
1
  import { SxProps } from '@mui/material';
2
+ import { FC, ReactNode } from 'react';
2
3
  export type ProjectAvatarProfileInfo = {
3
4
  description?: string;
4
5
  memberCount?: number;
@@ -8,7 +9,7 @@ export type ProjectAvatarProfileInfo = {
8
9
  createdAt?: string;
9
10
  onGoToOrg?: () => void;
10
11
  onGoToProject?: () => void;
11
- extra?: React.ReactNode;
12
+ extra?: ReactNode;
12
13
  };
13
14
  type Props = {
14
15
  projectId: string;
@@ -21,5 +22,5 @@ type Props = {
21
22
  profileInfo?: ProjectAvatarProfileInfo;
22
23
  onClick?: () => void;
23
24
  };
24
- declare const ProjectAvatar: React.FC<Props>;
25
+ declare const ProjectAvatar: FC<Props>;
25
26
  export default ProjectAvatar;