@plumile/backoffice-react 0.1.99 → 0.1.102

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 (110) hide show
  1. package/lib/esm/AcceptInvitationScreen-B1IPafwD.js.map +1 -1
  2. package/lib/esm/{BackofficeAcceptInvitationPage-CEtApVwL.js → BackofficeAcceptInvitationPage-BfRsORii.js} +3 -3
  3. package/lib/esm/{BackofficeAcceptInvitationPage-CEtApVwL.js.map → BackofficeAcceptInvitationPage-BfRsORii.js.map} +1 -1
  4. package/lib/esm/{BackofficeDashboardPage-YWvoQODn.js → BackofficeDashboardPage-COKOYq4D.js} +7 -4
  5. package/lib/esm/BackofficeDashboardPage-COKOYq4D.js.map +1 -0
  6. package/lib/esm/BackofficeDetailPayload-P61MDRLE.js.map +1 -1
  7. package/lib/esm/{BackofficeEntityActionFormDialog-BgRTJ_JS.js → BackofficeEntityActionFormDialog-BgMuhyU8.js} +2 -2
  8. package/lib/esm/{BackofficeEntityActionFormDialog-BgRTJ_JS.js.map → BackofficeEntityActionFormDialog-BgMuhyU8.js.map} +1 -1
  9. package/lib/esm/{BackofficeEntityDetailLayoutContext-C_tBqkVq.js → BackofficeEntityDetailLayoutContext-DeuH5PCW.js} +1 -1
  10. package/lib/esm/{BackofficeEntityDetailLayoutContext-C_tBqkVq.js.map → BackofficeEntityDetailLayoutContext-DeuH5PCW.js.map} +1 -1
  11. package/lib/esm/{BackofficeEntityDetailLayoutPage-DXjRqvcZ.js → BackofficeEntityDetailLayoutPage-Duc_DcIV.js} +2 -2
  12. package/lib/esm/{BackofficeEntityDetailLayoutPage-DXjRqvcZ.js.map → BackofficeEntityDetailLayoutPage-Duc_DcIV.js.map} +1 -1
  13. package/lib/esm/{BackofficeEntityDetailPage-DPFXbJxC.js → BackofficeEntityDetailPage-ByioPO5K.js} +29 -20
  14. package/lib/esm/BackofficeEntityDetailPage-ByioPO5K.js.map +1 -0
  15. package/lib/esm/{BackofficeEntityDetailUnknownPageRedirect-DRWTeox-.js → BackofficeEntityDetailUnknownPageRedirect-xupMeril.js} +2 -2
  16. package/lib/esm/{BackofficeEntityDetailUnknownPageRedirect-DRWTeox-.js.map → BackofficeEntityDetailUnknownPageRedirect-xupMeril.js.map} +1 -1
  17. package/lib/esm/{BackofficeEntityListPage-C8Ucmc_E.js → BackofficeEntityListPage-dyE4er_s.js} +7 -4
  18. package/lib/esm/BackofficeEntityListPage-dyE4er_s.js.map +1 -0
  19. package/lib/esm/BackofficeErrorBoundary-BwRVSDHU.js.map +1 -1
  20. package/lib/esm/BackofficeHubPage-D2k0ZO6c.js +136 -0
  21. package/lib/esm/BackofficeHubPage-D2k0ZO6c.js.map +1 -0
  22. package/lib/esm/BackofficeLayoutPage-BiSUwAi9.js +625 -0
  23. package/lib/esm/BackofficeLayoutPage-BiSUwAi9.js.map +1 -0
  24. package/lib/esm/{BackofficeLoginPage-Cc3kcOQV.js → BackofficeLoginPage-BMPhO1cr.js} +4 -4
  25. package/lib/esm/{BackofficeLoginPage-Cc3kcOQV.js.map → BackofficeLoginPage-BMPhO1cr.js.map} +1 -1
  26. package/lib/esm/{BackofficePasswordResetCompletePage-CF_0t3Nq.js → BackofficePasswordResetCompletePage-OApMUiOi.js} +3 -3
  27. package/lib/esm/{BackofficePasswordResetCompletePage-CF_0t3Nq.js.map → BackofficePasswordResetCompletePage-OApMUiOi.js.map} +1 -1
  28. package/lib/esm/{BackofficePasswordResetRequestPage-BJOrQXcy.js → BackofficePasswordResetRequestPage-DPDImb37.js} +2 -2
  29. package/lib/esm/{BackofficePasswordResetRequestPage-BJOrQXcy.js.map → BackofficePasswordResetRequestPage-DPDImb37.js.map} +1 -1
  30. package/lib/esm/BackofficePermissionsContext-CmWwudBU.js +11 -0
  31. package/lib/esm/BackofficePermissionsContext-CmWwudBU.js.map +1 -0
  32. package/lib/esm/BackofficeRightPageLayout-BZb7LhT-.js +53 -0
  33. package/lib/esm/BackofficeRightPageLayout-BZb7LhT-.js.map +1 -0
  34. package/lib/esm/{BackofficeTopbarPortalContext-iD7dm4_h.js → BackofficeTopbarPortalContext-CphoSrZD.js} +1 -1
  35. package/lib/esm/{BackofficeTopbarPortalContext-iD7dm4_h.js.map → BackofficeTopbarPortalContext-CphoSrZD.js.map} +1 -1
  36. package/lib/esm/{BackofficeVerifyEmailPage-C81LlsNM.js → BackofficeVerifyEmailPage-DHuSOxDf.js} +3 -3
  37. package/lib/esm/{BackofficeVerifyEmailPage-C81LlsNM.js.map → BackofficeVerifyEmailPage-DHuSOxDf.js.map} +1 -1
  38. package/lib/esm/EntityFilterValue-BWUdPBwp.js.map +1 -1
  39. package/lib/esm/EntityIdPickerDialog-Yhmr-WsV.js.map +1 -1
  40. package/lib/esm/{LazyBackofficeEntityActionFormDialog-DVPQyWlr.js → LazyBackofficeEntityActionFormDialog-DwPGe2Qv.js} +110 -123
  41. package/lib/esm/LazyBackofficeEntityActionFormDialog-DwPGe2Qv.js.map +1 -0
  42. package/lib/esm/PasswordResetCompleteScreen-Cgg96DPo.js.map +1 -1
  43. package/lib/esm/PasswordResetRequestScreen-I1nFvGLd.js.map +1 -1
  44. package/lib/esm/VerifyEmailScreen-Br5KyHjg.js.map +1 -1
  45. package/lib/esm/backoffice-react.js +295 -252
  46. package/lib/esm/backoffice-react.js.map +1 -1
  47. package/lib/esm/{backofficeAuthPaths-BiJvoI5Q.js → backofficeAuthPaths-2KMmkBLv.js} +1 -1
  48. package/lib/esm/{backofficeAuthPaths-BiJvoI5Q.js.map → backofficeAuthPaths-2KMmkBLv.js.map} +1 -1
  49. package/lib/esm/{buildBreadcrumbs-CqF9Nh6x.js → buildBreadcrumbs-C9cyiXb7.js} +8 -4
  50. package/lib/esm/buildBreadcrumbs-C9cyiXb7.js.map +1 -0
  51. package/lib/esm/buildDataTableColumns-D95yRO2W.js +65 -0
  52. package/lib/esm/buildDataTableColumns-D95yRO2W.js.map +1 -0
  53. package/lib/esm/environment-DQfVyWHJ.js.map +1 -1
  54. package/lib/esm/mutationResult-CcQMY13J.js.map +1 -1
  55. package/lib/esm/pageResolution-hAQA5C6S.js.map +1 -1
  56. package/lib/esm/sidebarUtils-BZETlHea.js +74 -0
  57. package/lib/esm/sidebarUtils-BZETlHea.js.map +1 -0
  58. package/lib/esm/style.css +1 -1
  59. package/lib/esm/synchronizeAuthStatusQuery-BoPKMrP1.js.map +1 -1
  60. package/lib/esm/{toastViewAction-BGTS7vqm.js → toastViewAction-DJkv_4p9.js} +1 -1
  61. package/lib/esm/{toastViewAction-BGTS7vqm.js.map → toastViewAction-DJkv_4p9.js.map} +1 -1
  62. package/lib/esm/useAuth-CheTnq60.js.map +1 -1
  63. package/lib/esm/{useBackofficeAuth-ers1FUGe.js → useBackofficeAuth-DVAXNAjP.js} +1 -1
  64. package/lib/esm/{useBackofficeAuth-ers1FUGe.js.map → useBackofficeAuth-DVAXNAjP.js.map} +1 -1
  65. package/lib/esm/{useBackofficeLazyValue-Bh_13h8A.js → useBackofficeLazyValue-CoIAK-5N.js} +1 -1
  66. package/lib/esm/{useBackofficeLazyValue-Bh_13h8A.js.map → useBackofficeLazyValue-CoIAK-5N.js.map} +1 -1
  67. package/lib/esm/useBackofficeListUrlState-D4fx5O7u.js.map +1 -1
  68. package/lib/esm/useBackofficeReactTranslation-Btt58EIo.js.map +1 -1
  69. package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts.map +1 -1
  70. package/lib/types/components/backoffice/layout/BackofficePermissionsContext.d.ts +8 -0
  71. package/lib/types/components/backoffice/layout/BackofficePermissionsContext.d.ts.map +1 -0
  72. package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts +4 -0
  73. package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts.map +1 -1
  74. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts +2 -1
  75. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts.map +1 -1
  76. package/lib/types/components/backoffice/layout/sidebarUtils.d.ts +13 -2
  77. package/lib/types/components/backoffice/layout/sidebarUtils.d.ts.map +1 -1
  78. package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts.map +1 -1
  79. package/lib/types/hooks/useSidebarGroupCollapse.d.ts +1 -0
  80. package/lib/types/hooks/useSidebarGroupCollapse.d.ts.map +1 -1
  81. package/lib/types/i18n/resources.d.ts +30 -0
  82. package/lib/types/i18n/resources.d.ts.map +1 -1
  83. package/lib/types/pages/BackofficeDashboardPage.d.ts.map +1 -1
  84. package/lib/types/pages/BackofficeDashboardPage.helpers.d.ts.map +1 -1
  85. package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
  86. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts +1 -0
  87. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts.map +1 -1
  88. package/lib/types/pages/BackofficeEntityListPage.d.ts.map +1 -1
  89. package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts.map +1 -1
  90. package/lib/types/pages/BackofficeHubPage.d.ts +8 -0
  91. package/lib/types/pages/BackofficeHubPage.d.ts.map +1 -0
  92. package/lib/types/pages/BackofficeLayoutPage.d.ts.map +1 -1
  93. package/lib/types/pages/backofficeHubPage.css.d.ts +15 -0
  94. package/lib/types/pages/backofficeHubPage.css.d.ts.map +1 -0
  95. package/lib/types/provider/types.d.ts +81 -1
  96. package/lib/types/provider/types.d.ts.map +1 -1
  97. package/lib/types/router/createBackofficeRoutes.d.ts +6 -1
  98. package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
  99. package/package.json +14 -14
  100. package/lib/esm/BackofficeDashboardPage-YWvoQODn.js.map +0 -1
  101. package/lib/esm/BackofficeEntityDetailPage-DPFXbJxC.js.map +0 -1
  102. package/lib/esm/BackofficeEntityListPage-C8Ucmc_E.js.map +0 -1
  103. package/lib/esm/BackofficeLayoutPage-CKXS0nDO.js +0 -485
  104. package/lib/esm/BackofficeLayoutPage-CKXS0nDO.js.map +0 -1
  105. package/lib/esm/BackofficeRightPageLayout-DZQvIHnj.js +0 -107
  106. package/lib/esm/BackofficeRightPageLayout-DZQvIHnj.js.map +0 -1
  107. package/lib/esm/LazyBackofficeEntityActionFormDialog-DVPQyWlr.js.map +0 -1
  108. package/lib/esm/buildBreadcrumbs-CqF9Nh6x.js.map +0 -1
  109. package/lib/esm/sidebarUtils-CuwJ_3mD.js +0 -34
  110. package/lib/esm/sidebarUtils-CuwJ_3mD.js.map +0 -1
@@ -1,32 +1,33 @@
1
1
  import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./environment-DQfVyWHJ.js";
2
2
  import { t as s } from "./useRelayEnvironment-vQ86aW-n.js";
3
3
  import { n as c, r as l, t as u } from "./useBackofficeReactTranslation-Btt58EIo.js";
4
- import { i as d, t as f } from "./sidebarUtils-CuwJ_3mD.js";
5
- import { a as p, i as m, n as h, r as g, t as _ } from "./useAuth-CheTnq60.js";
6
- import { n as v, t as y } from "./synchronizeAuthStatusQuery-BoPKMrP1.js";
7
- import { t as b } from "./AcceptInvitationScreen-B1IPafwD.js";
8
- import { t as ee } from "./PasswordResetCompleteScreen-Cgg96DPo.js";
9
- import { t as te } from "./PasswordResetRequestScreen-I1nFvGLd.js";
10
- import { t as ne } from "./VerifyEmailScreen-Br5KyHjg.js";
11
- import { t as x } from "./BackofficeErrorBoundary-BwRVSDHU.js";
12
- import { i as S, n as re, t as ie } from "./EntityFilterValue-BWUdPBwp.js";
4
+ import { l as d, s as f, t as p } from "./sidebarUtils-BZETlHea.js";
5
+ import { a as m, i as h, n as g, r as _, t as v } from "./useAuth-CheTnq60.js";
6
+ import { n as y, t as b } from "./synchronizeAuthStatusQuery-BoPKMrP1.js";
7
+ import { t as x } from "./AcceptInvitationScreen-B1IPafwD.js";
8
+ import { t as S } from "./PasswordResetCompleteScreen-Cgg96DPo.js";
9
+ import { t as C } from "./PasswordResetRequestScreen-I1nFvGLd.js";
10
+ import { t as ee } from "./VerifyEmailScreen-Br5KyHjg.js";
11
+ import { t as te } from "./BackofficeErrorBoundary-BwRVSDHU.js";
12
+ import { i as ne, n as re, t as ie } from "./EntityFilterValue-BWUdPBwp.js";
13
13
  import { i as ae, t as oe } from "./EntityIdPickerDialog-Yhmr-WsV.js";
14
- import { a as se, i as ce, r as le, t as ue } from "./BackofficeDetailPayload-P61MDRLE.js";
15
- import { t as de } from "./useBackofficeListUrlState-D4fx5O7u.js";
16
- import { i as fe, n as pe, r as me, t as he } from "./mutationResult-CcQMY13J.js";
17
- import { t as ge } from "./pageResolution-hAQA5C6S.js";
18
- import { n as _e, t as ve } from "./BackofficeRightPageLayout-DZQvIHnj.js";
19
- import { StrictMode as ye, useCallback as C, useContext as be, useEffect as w, useMemo as T, useRef as xe, useState as E, useSyncExternalStore as Se } from "react";
20
- import { createInstance as D } from "i18next";
14
+ import { a as w, i as se, r as ce, t as le } from "./BackofficeDetailPayload-P61MDRLE.js";
15
+ import { t as ue } from "./useBackofficeListUrlState-D4fx5O7u.js";
16
+ import { i as de, n as fe, r as pe, t as me } from "./mutationResult-CcQMY13J.js";
17
+ import { t as he } from "./pageResolution-hAQA5C6S.js";
18
+ import { t as ge } from "./buildDataTableColumns-D95yRO2W.js";
19
+ import { t as _e } from "./BackofficeRightPageLayout-BZb7LhT-.js";
20
+ import { StrictMode as ve, useCallback as T, useContext as ye, useEffect as E, useMemo as D, useRef as be, useState as O, useSyncExternalStore as xe } from "react";
21
+ import { createInstance as Se } from "i18next";
21
22
  import { I18nextProvider as Ce, initReactI18next as we, useTranslation as Te } from "react-i18next";
22
- import { HttpRedirect as Ee, Link as De, RouterRenderer as Oe, RoutingContext as ke, createRouter as Ae, getResourcePage as O, r as je } from "@plumile/router";
23
+ import { HttpRedirect as Ee, Link as De, RouterRenderer as Oe, RoutingContext as ke, createRouter as Ae, getResourcePage as k, r as je } from "@plumile/router";
23
24
  import { BackofficeTabs as Me, DetailPageTemplate as Ne, SidebarSearchSvg as Pe, Spinner as Fe, ThemeProvider as Ie, cx as Le } from "@plumile/ui";
24
25
  import Re from "i18next-browser-languagedetector";
25
- import * as k from "react-relay";
26
- import { jsx as A, jsxs as j } from "react/jsx-runtime";
26
+ import * as A from "react-relay";
27
+ import { jsx as j, jsxs as M } from "react/jsx-runtime";
27
28
  import { BACKOFFICE_LIST_DEFAULTS as ze } from "@plumile/backoffice-core/constants.js";
28
- import { resolveBackofficeLoadedFacetModule as M } from "@plumile/backoffice-core/resolve.js";
29
- import { buildBackofficeFallbackListHref as Be, buildBackofficeListLink as N } from "@plumile/backoffice-core/state/buildListHref.js";
29
+ import { resolveBackofficeLoadedFacetModule as N } from "@plumile/backoffice-core/resolve.js";
30
+ import { buildBackofficeFallbackListHref as Be, buildBackofficeListLink as P } from "@plumile/backoffice-core/state/buildListHref.js";
30
31
  import { setWhereValue as Ve } from "@plumile/backoffice-core/filters/where.js";
31
32
  //#region src/i18n/createI18nInstance.ts
32
33
  var He = { maximumFractionDigits: 2 }, Ue = {
@@ -40,7 +41,7 @@ var He = { maximumFractionDigits: 2 }, Ue = {
40
41
  function qe(e) {
41
42
  return Array.isArray(e) ? e[0] : e;
42
43
  }
43
- function P(e) {
44
+ function F(e) {
44
45
  if (e == null) return "";
45
46
  if (typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return String(e);
46
47
  if (typeof e == "symbol") return e.toString();
@@ -51,20 +52,20 @@ function P(e) {
51
52
  return "";
52
53
  }
53
54
  }
54
- function F(e, t, n) {
55
- if (t == null) return P(e);
55
+ function I(e, t, n) {
56
+ if (t == null) return F(e);
56
57
  let r = qe(n);
57
58
  if (t === "number" && typeof e == "number") return new Intl.NumberFormat(r, He).format(e);
58
59
  if (t === "currency" && typeof e == "number") return new Intl.NumberFormat(r, Ue).format(e);
59
60
  if (t === "percent" && typeof e == "number") return new Intl.NumberFormat(r, Ke).format(e);
60
61
  if ((t === "date" || t === "datetime") && e != null) {
61
62
  let n;
62
- if (n = e instanceof Date ? e : typeof e == "string" || typeof e == "number" ? new Date(e) : new Date(P(e)), !Number.isNaN(n.getTime())) return t === "date" ? new Intl.DateTimeFormat(r, We).format(n) : new Intl.DateTimeFormat(r, Ge).format(n);
63
+ if (n = e instanceof Date ? e : typeof e == "string" || typeof e == "number" ? new Date(e) : new Date(F(e)), !Number.isNaN(n.getTime())) return t === "date" ? new Intl.DateTimeFormat(r, We).format(n) : new Intl.DateTimeFormat(r, Ge).format(n);
63
64
  }
64
- return P(e);
65
+ return F(e);
65
66
  }
66
67
  async function Je(e) {
67
- let { resources: t, lng: n, fallbackLng: r = "en", initOptions: i = {}, instance: a = D(), useLanguageDetector: o = !1, detection: s } = e, { interpolation: c, ...l } = i;
68
+ let { resources: t, lng: n, fallbackLng: r = "en", initOptions: i = {}, instance: a = Se(), useLanguageDetector: o = !1, detection: s } = e, { interpolation: c, ...l } = i;
68
69
  o && a.use(Re), a.use(we);
69
70
  try {
70
71
  let e = {
@@ -80,7 +81,7 @@ async function Je(e) {
80
81
  let u = s ?? i.detection;
81
82
  o && u != null && (e.detection = u), await a.init(e);
82
83
  let { formatter: d } = a.services;
83
- d != null && (d.add("number", (e, t) => F(e, "number", t)), d.add("currency", (e, t) => F(e, "currency", t)), d.add("percent", (e, t) => F(e, "percent", t)), d.add("date", (e, t) => F(e, "date", t)), d.add("datetime", (e, t) => F(e, "datetime", t)));
84
+ d != null && (d.add("number", (e, t) => I(e, "number", t)), d.add("currency", (e, t) => I(e, "currency", t)), d.add("percent", (e, t) => I(e, "percent", t)), d.add("date", (e, t) => I(e, "date", t)), d.add("datetime", (e, t) => I(e, "datetime", t)));
84
85
  } catch {}
85
86
  return a;
86
87
  }
@@ -390,6 +391,18 @@ var Ye = {
390
391
  percent: "{{value, percent}}"
391
392
  },
392
393
  history: "",
394
+ hub: {
395
+ empty: {
396
+ description: "No available item matches the current filters.",
397
+ title: "No items"
398
+ },
399
+ itemKinds: {
400
+ entity: "List",
401
+ tool: "Tool"
402
+ },
403
+ search: { placeholder: "Search" },
404
+ subtitle: "Choose an item to continue."
405
+ },
393
406
  list: {
394
407
  actions: {
395
408
  refresh: "Refresh",
@@ -441,7 +454,10 @@ var Ye = {
441
454
  unknownUser: "Unknown user"
442
455
  },
443
456
  search: { placeholder: "Search…" },
444
- sections: { pinned: "Pinned" }
457
+ sections: {
458
+ pinned: "Pinned",
459
+ recent: "Recent"
460
+ }
445
461
  },
446
462
  tools: { output: "Output" }
447
463
  }, Xe = {
@@ -751,6 +767,18 @@ var Ye = {
751
767
  percent: "{{value, percent}}"
752
768
  },
753
769
  history: "",
770
+ hub: {
771
+ empty: {
772
+ description: "Aucun élément disponible ne correspond aux filtres actuels.",
773
+ title: "Aucun élément"
774
+ },
775
+ itemKinds: {
776
+ entity: "Liste",
777
+ tool: "Outil"
778
+ },
779
+ search: { placeholder: "Rechercher" },
780
+ subtitle: "Choisissez un élément pour continuer."
781
+ },
754
782
  list: {
755
783
  actions: {
756
784
  refresh: "Actualiser",
@@ -803,16 +831,19 @@ var Ye = {
803
831
  unknownUser: "Utilisateur inconnu"
804
832
  },
805
833
  search: { placeholder: "Rechercher..." },
806
- sections: { pinned: "Épinglés" }
834
+ sections: {
835
+ pinned: "Épinglés",
836
+ recent: "Récents"
837
+ }
807
838
  },
808
839
  tools: { output: "Résultat" }
809
- }, I = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ze = (e) => I(e) ? e : {};
840
+ }, L = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ze = (e) => L(e) ? e : {};
810
841
  function Qe(...e) {
811
842
  let t = {};
812
843
  return e.forEach((e) => {
813
844
  Object.entries(e).forEach(([e, n]) => {
814
845
  let r = t[e];
815
- if (I(r) && I(n)) {
846
+ if (L(r) && L(n)) {
816
847
  t[e] = Qe(Ze(r), Ze(n));
817
848
  return;
818
849
  }
@@ -825,36 +856,36 @@ function Qe(...e) {
825
856
  var $e = {
826
857
  en: { backofficeReact: Ye },
827
858
  fr: { backofficeReact: Xe }
828
- }, et = (e) => typeof e == "object" && !!e, L = (e) => et(e) ? e : {};
859
+ }, et = (e) => typeof e == "object" && !!e, R = (e) => et(e) ? e : {};
829
860
  function tt(e = {}) {
830
861
  let t = {}, n = $e;
831
862
  return new Set([...Object.keys(n), ...Object.keys(e)]).forEach((r) => {
832
- let i = L(n[r]), a = L(e[r]);
863
+ let i = R(n[r]), a = R(e[r]);
833
864
  t[r] = {
834
865
  ...i,
835
866
  ...a,
836
- backofficeReact: Qe(L(i.backofficeReact), L(a.backofficeReact))
867
+ backofficeReact: Qe(R(i.backofficeReact), R(a.backofficeReact))
837
868
  };
838
869
  }), t;
839
870
  }
840
871
  //#endregion
841
872
  //#region src/relay/RelayProvider.tsx
842
- var { RelayEnvironmentProvider: nt } = k, R = ({ children: e }) => (Se(a, () => t().generation, () => t().generation), /* @__PURE__ */ A(nt, {
873
+ var { RelayEnvironmentProvider: nt } = A, rt = ({ children: e }) => (xe(a, () => t().generation, () => t().generation), /* @__PURE__ */ j(nt, {
843
874
  environment: n(),
844
875
  children: e
845
- })), { loadQuery: z, usePreloadedQuery: rt } = k, it = O("WrapperPage", async () => ({ default: (await import("@plumile/ui")).WrapperPage })), at = O("BackofficeLayoutPage", async () => import("./BackofficeLayoutPage-CKXS0nDO.js")), ot = O("BackofficeEntityListPage", async () => import("./BackofficeEntityListPage-C8Ucmc_E.js")), st = O("BackofficeEntityDetailPage", async () => import("./BackofficeEntityDetailPage-DPFXbJxC.js")), ct = O("BackofficeEntityDetailLayoutPage", async () => import("./BackofficeEntityDetailLayoutPage-DXjRqvcZ.js")), lt = O("BackofficeEntityDetailUnknownPageRedirect", async () => import("./BackofficeEntityDetailUnknownPageRedirect-DRWTeox-.js")), ut = O("BackofficeDashboardPage", async () => import("./BackofficeDashboardPage-YWvoQODn.js")), dt = O("BackofficeLoginPage", async () => import("./BackofficeLoginPage-Cc3kcOQV.js")), ft = O("BackofficePasswordResetRequestPage", async () => import("./BackofficePasswordResetRequestPage-BJOrQXcy.js")), pt = O("BackofficePasswordResetCompletePage", async () => import("./BackofficePasswordResetCompletePage-CF_0t3Nq.js")), mt = O("BackofficeVerifyEmailPage", async () => import("./BackofficeVerifyEmailPage-C81LlsNM.js")), ht = O("BackofficeAcceptInvitationPage", async () => import("./BackofficeAcceptInvitationPage-CEtApVwL.js")), gt = (e) => {
876
+ })), { loadQuery: z, usePreloadedQuery: it } = A, at = k("WrapperPage", async () => ({ default: (await import("@plumile/ui")).WrapperPage })), ot = k("BackofficeLayoutPage", async () => import("./BackofficeLayoutPage-BiSUwAi9.js")), st = k("BackofficeEntityListPage", async () => import("./BackofficeEntityListPage-dyE4er_s.js")), ct = k("BackofficeEntityDetailPage", async () => import("./BackofficeEntityDetailPage-ByioPO5K.js")), lt = k("BackofficeEntityDetailLayoutPage", async () => import("./BackofficeEntityDetailLayoutPage-Duc_DcIV.js")), ut = k("BackofficeEntityDetailUnknownPageRedirect", async () => import("./BackofficeEntityDetailUnknownPageRedirect-xupMeril.js")), dt = k("BackofficeDashboardPage", async () => import("./BackofficeDashboardPage-COKOYq4D.js")), ft = k("BackofficeHubPage", async () => import("./BackofficeHubPage-D2k0ZO6c.js")), pt = k("BackofficeLoginPage", async () => import("./BackofficeLoginPage-BMPhO1cr.js")), mt = k("BackofficePasswordResetRequestPage", async () => import("./BackofficePasswordResetRequestPage-DPDImb37.js")), ht = k("BackofficePasswordResetCompletePage", async () => import("./BackofficePasswordResetCompletePage-OApMUiOi.js")), gt = k("BackofficeVerifyEmailPage", async () => import("./BackofficeVerifyEmailPage-DHuSOxDf.js")), _t = k("BackofficeAcceptInvitationPage", async () => import("./BackofficeAcceptInvitationPage-BfRsORii.js")), vt = (e) => {
846
877
  let t = e.trim();
847
878
  return t === "" || t === "/" ? "" : t.replace(/^\/+|\/+$/g, "");
848
- }, _t = (e) => {
879
+ }, yt = (e) => {
849
880
  let t = e.trim();
850
881
  return t === "" ? "/" : `/${t}`.replace(/\/+/g, "/");
851
882
  }, B = (e, t) => {
852
883
  let n = t.replace(/^\/+|\/+$/g, "");
853
884
  return e === "" ? n : n === "" ? e : `${e}/${n}`;
854
- }, vt = (e, t) => _t(B(e, t)), yt = (e, t) => {
855
- let n = _t(e), r = t === "" ? "" : `/${t}`;
885
+ }, bt = (e, t) => yt(B(e, t)), V = (e, t) => {
886
+ let n = yt(e), r = t === "" ? "" : `/${t}`;
856
887
  return r !== "" && n.startsWith(r) ? n.slice(r.length).replace(/^\/+/, "") : n.replace(/^\/+/, "");
857
- }, bt = (e, t) => {
888
+ }, xt = (e, t) => {
858
889
  if (e?.routes == null) return null;
859
890
  for (let n = e.routes.length - 1; n >= 0; --n) {
860
891
  let r = e.routes[n];
@@ -864,7 +895,7 @@ var { RelayEnvironmentProvider: nt } = k, R = ({ children: e }) => (Se(a, () =>
864
895
  }
865
896
  }
866
897
  return null;
867
- }, xt = (e) => {
898
+ }, St = (e) => {
868
899
  let t = new URLSearchParams();
869
900
  return Object.entries(e).forEach(([e, n]) => {
870
901
  if (n != null) {
@@ -877,33 +908,44 @@ var { RelayEnvironmentProvider: nt } = k, R = ({ children: e }) => (Se(a, () =>
877
908
  t.set(e, String(n));
878
909
  }
879
910
  }), t;
880
- }, V = je;
881
- function St(e) {
882
- let { basePath: t, entityManifest: n, entityRegistry: r, sidebar: i, auth: a, dashboard: o } = e, s = gt(t), c = B(s, "login"), l = B(s, "login/reset"), u = B(s, "login/reset/complete"), p = B(s, "verify-email"), m = B(s, "accept-invitation"), h = vt(s, "login"), g = f(d(n, i)), _ = /* @__PURE__ */ new Map();
883
- g.forEach((e, t) => {
884
- _.set(t, e.groupId);
911
+ }, H = je;
912
+ function Ct(e) {
913
+ let { basePath: t, entityManifest: n, entityRegistry: r, sidebar: i, auth: a, dashboard: o } = e, s = vt(t), c = B(s, "login"), l = B(s, "login/reset"), u = B(s, "login/reset/complete"), m = B(s, "verify-email"), h = B(s, "accept-invitation"), g = bt(s, "login"), _ = f(n, i), v = d(_, i), y = p(_, i), b = /* @__PURE__ */ new Map();
914
+ y.forEach((e, t) => {
915
+ b.set(t, e.groupId);
885
916
  });
886
- let v = /* @__PURE__ */ new WeakMap(), y = i?.permissionsQuery, b = async ({ context: e }) => {
917
+ let x = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap(), C = i?.permissionsQuery, ee = async ({ context: e }) => {
887
918
  let t = await a.session.load();
888
919
  return {
889
- permissionsQuery: y == null ? null : z(e.relayEnvironment, y, {}),
920
+ permissionsQuery: C == null ? null : z(e.relayEnvironment, C, {}),
890
921
  authStatusQuery: t.authStatusQuery == null ? null : z(e.relayEnvironment, t.authStatusQuery, {}, { fetchPolicy: "network-only" })
891
922
  };
892
- }, ee = V({
923
+ }, te = H({
893
924
  path: "",
894
- resourcePage: ut,
925
+ resourcePage: dt,
895
926
  prepare: async () => (o == null || await o.load(), null),
896
- render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
897
- }), te = Object.values(n).filter((e) => e.kind === "list-detail").map((e) => {
898
- let t = e.routes.list, n = yt(t, s), i = [];
927
+ render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ j(e, {})
928
+ }), ne = Object.values(n).filter((e) => e.kind === "list-detail"), re = v.map((e) => {
929
+ let t = H({
930
+ path: V(e.hub.href, s),
931
+ resourcePage: ft,
932
+ prepare: () => ({
933
+ hubId: e.hub.id,
934
+ hub: e.hub
935
+ }),
936
+ render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */ j(t, { prepared: e })
937
+ });
938
+ return e.groupId != null && S.set(t, e.groupId), t;
939
+ }), ie = ne.map((e) => {
940
+ let t = e.routes.list, n = V(t, s), i = [];
899
941
  if (e.hasList) {
900
- let t = V({
942
+ let t = H({
901
943
  path: "",
902
- resourcePage: ot,
944
+ resourcePage: st,
903
945
  prepare: async ({ context: t, query: n }) => {
904
946
  let { config: i } = await r.loadListEntity(e.id), { list: a, listUrlCodec: o, listDefaults: s } = i;
905
947
  if (o == null || s == null) throw Error(`Backoffice entity ${e.id} does not expose a list configuration.`);
906
- let c = xt(n), l = o.parse(c), { pageSize: u } = ze, d = {
948
+ let c = St(n), l = o.parse(c), { pageSize: u } = ze, d = {
907
949
  where: l.where,
908
950
  sort: l.sort ?? s.sort,
909
951
  count: u,
@@ -919,18 +961,18 @@ function St(e) {
919
961
  render: ({ prepared: e, Component: t }) => {
920
962
  if (t == null) return null;
921
963
  let n = e;
922
- return /* @__PURE__ */ A(t, {
964
+ return /* @__PURE__ */ j(t, {
923
965
  entityManifest: n.entityManifest,
924
966
  config: n.entityConfig,
925
967
  prepared: n
926
968
  });
927
969
  }
928
970
  });
929
- v.set(t, e.id), i.push(t);
971
+ x.set(t, e.id), i.push(t);
930
972
  }
931
- let a = V({
973
+ let a = H({
932
974
  path: ":id",
933
- resourcePage: ct,
975
+ resourcePage: lt,
934
976
  prepare: async ({ context: t, variables: n }) => {
935
977
  let { config: i } = await r.loadDetailLayoutEntity(e.id), a = String(n.id ?? ""), o = i.layoutPage.buildVariables == null ? { variables: { id: a } } : i.layoutPage.buildVariables({ id: a }), s = z(t.relayEnvironment, i.layoutPage.query, o.variables);
936
978
  return {
@@ -944,7 +986,7 @@ function St(e) {
944
986
  render: ({ children: e, prepared: t, Component: n }) => {
945
987
  if (n == null) return null;
946
988
  let r = t;
947
- return /* @__PURE__ */ A(n, {
989
+ return /* @__PURE__ */ j(n, {
948
990
  entityManifest: r.entityManifest,
949
991
  config: r.entityConfig,
950
992
  prepared: r,
@@ -952,9 +994,9 @@ function St(e) {
952
994
  });
953
995
  },
954
996
  children: [
955
- V({
997
+ H({
956
998
  path: "",
957
- resourcePage: it,
999
+ resourcePage: at,
958
1000
  prepare: ({ variables: t }) => {
959
1001
  let n = String(t.id ?? "").trim();
960
1002
  return { redirectTo: n === "" ? null : e.routes.detailPage(n, e.defaultDetailPageId ?? "overview") };
@@ -965,9 +1007,9 @@ function St(e) {
965
1007
  throw new Ee(t);
966
1008
  }
967
1009
  }),
968
- ...(e.detailPages ?? []).map((t) => V({
1010
+ ...(e.detailPages ?? []).map((t) => H({
969
1011
  path: t.pathSegment,
970
- resourcePage: st,
1012
+ resourcePage: ct,
971
1013
  prepare: async ({ context: n, variables: i }) => {
972
1014
  let a = String(i.id ?? ""), o = await r.loadDetailPageEntity(e.id, t.id), s = o.config.page.buildVariables == null ? { variables: { id: a } } : o.config.page.buildVariables({ id: a }), c = z(n.relayEnvironment, o.config.page.query, s.variables);
973
1015
  return {
@@ -985,16 +1027,16 @@ function St(e) {
985
1027
  render: ({ prepared: e, Component: t }) => {
986
1028
  if (t == null) return null;
987
1029
  let n = e;
988
- return /* @__PURE__ */ A(t, {
1030
+ return /* @__PURE__ */ j(t, {
989
1031
  entityManifest: n.entityManifest,
990
1032
  config: n.entityConfig,
991
1033
  prepared: n
992
1034
  });
993
1035
  }
994
1036
  })),
995
- V({
1037
+ H({
996
1038
  path: ":pagePath",
997
- resourcePage: lt,
1039
+ resourcePage: ut,
998
1040
  prepare: async ({ variables: t }) => {
999
1041
  let n = await r.loadDetailLayoutEntity(e.id), i = String(t.id ?? ""), a = String(t.pagePath ?? "");
1000
1042
  return {
@@ -1007,7 +1049,7 @@ function St(e) {
1007
1049
  render: ({ prepared: e, Component: t }) => {
1008
1050
  if (t == null) return null;
1009
1051
  let n = e;
1010
- return /* @__PURE__ */ A(t, {
1052
+ return /* @__PURE__ */ j(t, {
1011
1053
  entityManifest: n.entityManifest,
1012
1054
  config: n.entityConfig,
1013
1055
  prepared: n
@@ -1016,14 +1058,14 @@ function St(e) {
1016
1058
  })
1017
1059
  ]
1018
1060
  });
1019
- return v.set(a, e.id), i.push(a), V({
1061
+ return x.set(a, e.id), i.push(a), H({
1020
1062
  path: n,
1021
1063
  children: i,
1022
- resourcePage: it
1064
+ resourcePage: at
1023
1065
  });
1024
- }), ne = Object.values(n).filter((e) => e.kind === "tool").map((t) => {
1025
- let n = V({
1026
- path: yt(t.routes.list, s),
1066
+ }), ae = Object.values(n).filter((e) => e.kind === "tool").map((t) => {
1067
+ let n = H({
1068
+ path: V(t.routes.list, s),
1027
1069
  resourcePage: e.toolsOperationPage ?? null,
1028
1070
  prepare: async () => {
1029
1071
  let e = await r.loadToolEntity(t.id);
@@ -1036,27 +1078,27 @@ function St(e) {
1036
1078
  render: ({ prepared: e, Component: t }) => {
1037
1079
  if (t == null) return null;
1038
1080
  let n = e;
1039
- return /* @__PURE__ */ A(t, {
1081
+ return /* @__PURE__ */ j(t, {
1040
1082
  entityManifest: n.entityManifest,
1041
1083
  operation: n.entityConfig.tool.operation,
1042
1084
  toolId: n.entityConfig.id
1043
1085
  });
1044
1086
  }
1045
1087
  });
1046
- return v.set(n, t.id), n;
1047
- }), x = V({
1088
+ return x.set(n, t.id), n;
1089
+ }), oe = H({
1048
1090
  path: s,
1049
- resourcePage: at,
1050
- prepare: b,
1091
+ resourcePage: ot,
1092
+ prepare: ee,
1051
1093
  render: ({ children: e, prepared: t, route: n, Component: r }) => {
1052
1094
  if (r == null) return null;
1053
- let o = t, s = bt(n, v), c = s == null ? null : _.get(s) ?? null, l = null, u = a.session.get()?.authStatusQuery ?? null;
1095
+ let o = t, s = xt(n, x), c = s == null ? xt(n, S) : b.get(s) ?? null, l = null, u = a.session.get()?.authStatusQuery ?? null;
1054
1096
  if (u != null && o?.authStatusQuery != null) {
1055
- l = rt(u, o.authStatusQuery);
1097
+ l = it(u, o.authStatusQuery);
1056
1098
  let { isLoggedIn: e } = l;
1057
- if (!e) throw new Ee(h);
1099
+ if (!e) throw new Ee(g);
1058
1100
  }
1059
- return /* @__PURE__ */ A(r, {
1101
+ return /* @__PURE__ */ j(r, {
1060
1102
  permissionsQuery: i?.permissionsQuery,
1061
1103
  prepared: o?.permissionsQuery ?? null,
1062
1104
  authStatus: l,
@@ -1065,72 +1107,73 @@ function St(e) {
1065
1107
  });
1066
1108
  },
1067
1109
  children: [
1068
- ee,
1069
- ...te,
1070
- ...ne
1110
+ te,
1111
+ ...re,
1112
+ ...ie,
1113
+ ...ae
1071
1114
  ]
1072
- }), S = [
1073
- V({
1115
+ }), w = [
1116
+ H({
1074
1117
  path: c,
1075
- resourcePage: dt,
1118
+ resourcePage: pt,
1076
1119
  prepare: async ({ context: e }) => {
1077
1120
  let t = await a.login.load();
1078
1121
  return { query: z(e.relayEnvironment, t.loginQuery, {}) };
1079
1122
  },
1080
- render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */ A(t, { prepared: e })
1123
+ render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */ j(t, { prepared: e })
1081
1124
  }),
1082
- V({
1125
+ H({
1083
1126
  path: l,
1084
- resourcePage: ft,
1127
+ resourcePage: mt,
1085
1128
  prepare: async () => (await a.passwordResetRequest.load(), null),
1086
- render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
1129
+ render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ j(e, {})
1087
1130
  }),
1088
- V({
1131
+ H({
1089
1132
  path: u,
1090
- resourcePage: pt,
1133
+ resourcePage: ht,
1091
1134
  prepare: async () => (await a.passwordResetComplete.load(), null),
1092
- render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
1135
+ render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ j(e, {})
1093
1136
  }),
1094
- V({
1095
- path: p,
1096
- resourcePage: mt,
1137
+ H({
1138
+ path: m,
1139
+ resourcePage: gt,
1097
1140
  prepare: async () => (await a.verifyEmail.load(), null),
1098
- render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
1141
+ render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ j(e, {})
1099
1142
  })
1100
1143
  ];
1101
- return (a.hasAcceptInvitation === !0 || a.acceptInvitation != null) && S.push(V({
1102
- path: m,
1103
- resourcePage: ht,
1144
+ return (a.hasAcceptInvitation === !0 || a.acceptInvitation != null) && w.push(H({
1145
+ path: h,
1146
+ resourcePage: _t,
1104
1147
  prepare: async () => (await a.acceptInvitation?.load(), null),
1105
- render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
1106
- })), S.push(x), S;
1148
+ render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ j(e, {})
1149
+ })), w.push(oe), w;
1107
1150
  }
1108
1151
  //#endregion
1109
1152
  //#region src/components/backoffice/routing/backofficeRouteFallback.css.ts
1110
- var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop txvbqbv43 txvbqbva1", wt = "txvbqbva3", Tt = () => {
1153
+ var wt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop txvbqbv43 txvbqbva1", Tt = "txvbqbva3", Et = () => {
1111
1154
  let { t: e, i18n: t } = Te("backofficeReact", { useSuspense: !1 }), n = "Loading...";
1112
- return t.isInitialized && (n = e("common.loading")), /* @__PURE__ */ j("div", {
1113
- className: Ct,
1155
+ return t.isInitialized && (n = e("common.loading")), /* @__PURE__ */ M("div", {
1156
+ className: wt,
1114
1157
  role: "status",
1115
1158
  "aria-live": "polite",
1116
1159
  "aria-busy": "true",
1117
- children: [/* @__PURE__ */ A(Fe, { size: 28 }), /* @__PURE__ */ A("div", {
1118
- className: wt,
1160
+ children: [/* @__PURE__ */ j(Fe, { size: 28 }), /* @__PURE__ */ j("div", {
1161
+ className: Tt,
1119
1162
  children: n
1120
1163
  })]
1121
1164
  });
1122
- }, Et = "_11exksg1 txvbqbv45 txvbqbptp txvbqbt7y txvbqbdqg txvbqbl7g txvbqb2k txvbqbu7g txvbqbuwp", Dt = "_11exksg2 txvbqbcgg txvbqbuog", Ot = () => /* @__PURE__ */ A("div", {
1123
- className: Et,
1165
+ }, Dt = "_11exksg1 txvbqbv45 txvbqbptp txvbqbt7y txvbqbdqg txvbqbl7g txvbqb2k txvbqbu7g txvbqbuwp", Ot = "_11exksg2 txvbqbcgg txvbqbuog", kt = () => /* @__PURE__ */ j("div", {
1166
+ className: Dt,
1124
1167
  "aria-hidden": "true",
1125
- children: /* @__PURE__ */ A("div", { className: Dt })
1126
- }), kt = "cache-first", H = "detail-page", U = "detail-layout", W = "list", G = "picker", K = "tool", q = (e) => e.kind === "list-detail", At = (e) => e.kind === "tool", J = (e, t, n) => t === H ? `${e}:${t}:${n ?? ""}` : `${e}:${t}`, jt = (e) => e instanceof Error ? e : Error(String(e)), Y = (e) => e?.status !== "loaded" || e.module == null ? null : e.module, X = (e, t) => {
1168
+ children: /* @__PURE__ */ j("div", { className: Ot })
1169
+ }), At = "cache-first", U = "detail-page", W = "detail-layout", G = "list", K = "picker", q = "tool", J = (e) => e.kind === "list-detail", jt = (e) => e.kind === "tool", Y = (e, t, n) => t === U ? `${e}:${t}:${n ?? ""}` : `${e}:${t}`, Mt = (e) => e instanceof Error ? e : Error(String(e)), X = (e) => e?.status !== "loaded" || e.module == null ? null : e.module, Z = (e, t) => {
1127
1170
  let n = e[t];
1128
1171
  if (n == null) throw Error(`Unknown backoffice entity: ${t}`);
1129
1172
  return n;
1130
- }, Mt = (e, t) => {
1173
+ }, Nt = (e, t) => {
1131
1174
  let n = /* @__PURE__ */ new Map(), r = (t) => e[t] ?? null, i = async (e, t, r) => {
1132
- if ((t?.mode ?? kt) === "cache-first") {
1133
- let t = Y(n.get(e));
1175
+ if ((t?.mode ?? At) === "cache-first") {
1176
+ let t = X(n.get(e));
1134
1177
  if (t != null) return t;
1135
1178
  let r = n.get(e);
1136
1179
  if (r?.status === "loading" && r.promise != null) return r.promise;
@@ -1139,7 +1182,7 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1139
1182
  status: "loaded",
1140
1183
  module: t
1141
1184
  }), t)).catch((t) => {
1142
- let r = jt(t);
1185
+ let r = Mt(t);
1143
1186
  throw n.set(e, {
1144
1187
  status: "error",
1145
1188
  error: r
@@ -1152,74 +1195,74 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1152
1195
  };
1153
1196
  return {
1154
1197
  getManifest: r,
1155
- getLoadedListEntity: (e) => Y(n.get(J(e, W))),
1156
- getLoadedPickerEntity: (e) => Y(n.get(J(e, G))),
1157
- getLoadedDetailLayoutEntity: (e) => Y(n.get(J(e, U))),
1158
- getLoadedDetailPageEntity: (e, t) => Y(n.get(J(e, H, t))),
1159
- getLoadedToolEntity: (e) => Y(n.get(J(e, K))),
1198
+ getLoadedListEntity: (e) => X(n.get(Y(e, G))),
1199
+ getLoadedPickerEntity: (e) => X(n.get(Y(e, K))),
1200
+ getLoadedDetailLayoutEntity: (e) => X(n.get(Y(e, W))),
1201
+ getLoadedDetailPageEntity: (e, t) => X(n.get(Y(e, U, t))),
1202
+ getLoadedToolEntity: (e) => X(n.get(Y(e, q))),
1160
1203
  loadListEntity: async (n, r) => {
1161
- let a = X(e, n);
1162
- if (!q(a)) throw Error(`Backoffice entity ${n} does not expose a list facet.`);
1204
+ let a = Z(e, n);
1205
+ if (!J(a)) throw Error(`Backoffice entity ${n} does not expose a list facet.`);
1163
1206
  let o = a.facets.list;
1164
1207
  if (o == null) throw Error(`Backoffice entity ${n} does not expose a list facet.`);
1165
- return i(J(n, W), r, async () => {
1166
- let e = M(a, await o(), t);
1167
- if (e.kind !== W) throw Error(`Backoffice entity ${n} did not resolve to a list facet.`);
1208
+ return i(Y(n, G), r, async () => {
1209
+ let e = N(a, await o(), t);
1210
+ if (e.kind !== G) throw Error(`Backoffice entity ${n} did not resolve to a list facet.`);
1168
1211
  return e;
1169
1212
  });
1170
1213
  },
1171
1214
  loadPickerEntity: async (n, r) => {
1172
- let a = X(e, n);
1173
- if (!q(a)) throw Error(`Backoffice entity ${n} does not expose a picker facet.`);
1215
+ let a = Z(e, n);
1216
+ if (!J(a)) throw Error(`Backoffice entity ${n} does not expose a picker facet.`);
1174
1217
  let o = a.facets.picker;
1175
1218
  if (o == null) throw Error(`Backoffice entity ${n} does not expose a picker facet.`);
1176
- return i(J(n, G), r, async () => {
1177
- let e = M(a, await o(), t);
1178
- if (e.kind !== G) throw Error(`Backoffice entity ${n} did not resolve to a picker facet.`);
1219
+ return i(Y(n, K), r, async () => {
1220
+ let e = N(a, await o(), t);
1221
+ if (e.kind !== K) throw Error(`Backoffice entity ${n} did not resolve to a picker facet.`);
1179
1222
  return e;
1180
1223
  });
1181
1224
  },
1182
1225
  loadDetailLayoutEntity: async (n, r) => {
1183
- let a = X(e, n);
1184
- if (!q(a)) throw Error(`Backoffice entity ${n} does not expose a detail-layout facet.`);
1185
- return i(J(n, U), r, async () => {
1186
- let e = M(a, await a.facets.detailLayout(), t);
1187
- if (e.kind !== U) throw Error(`Backoffice entity ${n} did not resolve to a detail-layout facet.`);
1226
+ let a = Z(e, n);
1227
+ if (!J(a)) throw Error(`Backoffice entity ${n} does not expose a detail-layout facet.`);
1228
+ return i(Y(n, W), r, async () => {
1229
+ let e = N(a, await a.facets.detailLayout(), t);
1230
+ if (e.kind !== W) throw Error(`Backoffice entity ${n} did not resolve to a detail-layout facet.`);
1188
1231
  return e;
1189
1232
  });
1190
1233
  },
1191
1234
  loadDetailPageEntity: async (n, r, a) => {
1192
- let o = X(e, n);
1193
- if (!q(o)) throw Error(`Backoffice entity ${n} does not expose a detail-page facet.`);
1194
- return i(J(n, H, r), a, async () => {
1195
- let e = M(o, await o.facets.detailPage(r), t);
1196
- if (e.kind !== H) throw Error(`Backoffice entity ${n} did not resolve to a detail-page facet.`);
1235
+ let o = Z(e, n);
1236
+ if (!J(o)) throw Error(`Backoffice entity ${n} does not expose a detail-page facet.`);
1237
+ return i(Y(n, U, r), a, async () => {
1238
+ let e = N(o, await o.facets.detailPage(r), t);
1239
+ if (e.kind !== U) throw Error(`Backoffice entity ${n} did not resolve to a detail-page facet.`);
1197
1240
  return e;
1198
1241
  });
1199
1242
  },
1200
1243
  loadToolEntity: async (n, r) => {
1201
- let a = X(e, n);
1202
- if (!At(a)) throw Error(`Backoffice entity ${n} does not expose a tool facet.`);
1203
- return i(J(n, K), r, async () => {
1204
- let e = M(a, await a.facets.tool(), t);
1205
- if (e.kind !== K) throw Error(`Backoffice entity ${n} did not resolve to a tool facet.`);
1244
+ let a = Z(e, n);
1245
+ if (!jt(a)) throw Error(`Backoffice entity ${n} does not expose a tool facet.`);
1246
+ return i(Y(n, q), r, async () => {
1247
+ let e = N(a, await a.facets.tool(), t);
1248
+ if (e.kind !== q) throw Error(`Backoffice entity ${n} did not resolve to a tool facet.`);
1206
1249
  return e;
1207
1250
  });
1208
1251
  }
1209
1252
  };
1210
- }, Z = (e) => e.trim() === "" || e === "/" ? "/" : e.startsWith("/") ? e.endsWith("/") ? e.slice(0, -1) : e : `/${e}`, Q = (e, t) => {
1211
- let n = Z(t), r = Z(e);
1253
+ }, Q = (e) => e.trim() === "" || e === "/" ? "/" : e.startsWith("/") ? e.endsWith("/") ? e.slice(0, -1) : e : `/${e}`, Pt = (e, t) => {
1254
+ let n = Q(t), r = Q(e);
1212
1255
  return r === "/" || n === r || n.startsWith(`${r}/`) ? n : n === "/" ? r : `${r}${n}`;
1213
- }, Nt = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => [e, {
1256
+ }, Ft = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => [e, {
1214
1257
  ...n,
1215
1258
  routes: {
1216
- list: Q(t, n.routes.list),
1217
- detail: (e) => Q(t, n.routes.detail(e)),
1218
- detailPage: (e, r) => Q(t, n.routes.detailPage(e, r))
1259
+ list: Pt(t, n.routes.list),
1260
+ detail: (e) => Pt(t, n.routes.detail(e)),
1261
+ detailPage: (e, r) => Pt(t, n.routes.detailPage(e, r))
1219
1262
  }
1220
- }])), Pt = ({ routes: e, context: t, instrumentations: n }) => {
1221
- let [r, i] = E(null);
1222
- return w(() => {
1263
+ }])), It = ({ routes: e, context: t, instrumentations: n }) => {
1264
+ let [r, i] = O(null);
1265
+ return E(() => {
1223
1266
  let r = Ae(e, {
1224
1267
  context: t,
1225
1268
  instrumentations: n
@@ -1232,23 +1275,23 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1232
1275
  n,
1233
1276
  e
1234
1277
  ]), r;
1235
- }, Ft = ({ routes: e, instrumentations: t }) => {
1236
- let n = s(), r = Pt({
1278
+ }, Lt = ({ routes: e, instrumentations: t }) => {
1279
+ let n = s(), r = It({
1237
1280
  routes: e,
1238
- context: T(() => ({ relayEnvironment: n }), [n]),
1281
+ context: D(() => ({ relayEnvironment: n }), [n]),
1239
1282
  instrumentations: t
1240
1283
  });
1241
- return r == null ? /* @__PURE__ */ A(Tt, {}) : /* @__PURE__ */ A(ke.Provider, {
1284
+ return r == null ? /* @__PURE__ */ j(Et, {}) : /* @__PURE__ */ j(ke.Provider, {
1242
1285
  value: r.context,
1243
- children: /* @__PURE__ */ A(Oe, {
1286
+ children: /* @__PURE__ */ j(Oe, {
1244
1287
  enableTransition: !0,
1245
- fallback: /* @__PURE__ */ A(Tt, {}),
1246
- pending: /* @__PURE__ */ A(Ot, {})
1288
+ fallback: /* @__PURE__ */ j(Et, {}),
1289
+ pending: /* @__PURE__ */ j(kt, {})
1247
1290
  })
1248
1291
  });
1249
- }, It = (e) => {
1250
- let t = Z(e.basePath ?? "/"), n = T(() => Nt(e.entityManifest, t), [t, e.entityManifest]), r = T(() => Mt(n, { basePath: t }), [t, n]), i = e.graphql;
1251
- w(() => {
1292
+ }, Rt = (e) => {
1293
+ let t = Q(e.basePath ?? "/"), n = D(() => Ft(e.entityManifest, t), [t, e.entityManifest]), r = D(() => Nt(n, { basePath: t }), [t, n]), i = e.graphql;
1294
+ E(() => {
1252
1295
  o({
1253
1296
  httpUrl: i.httpUrl ?? i.endpoint,
1254
1297
  wsUrl: i.wsUrl ?? i.wsEndpoint,
@@ -1265,8 +1308,8 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1265
1308
  i.wsEndpoint,
1266
1309
  i.wsUrl
1267
1310
  ]);
1268
- let a = T(() => tt(e.i18n?.resources ?? {}), [e.i18n?.resources]), s = T(() => e.i18n?.instance ?? D(), [e.i18n?.instance]);
1269
- return w(() => {
1311
+ let a = D(() => tt(e.i18n?.resources ?? {}), [e.i18n?.resources]), s = D(() => e.i18n?.instance ?? Se(), [e.i18n?.instance]);
1312
+ return E(() => {
1270
1313
  let t = e.i18n?.initOptions ?? {}, n = t.defaultNS ?? "translations", r = t.ns ?? [
1271
1314
  "backofficeReact",
1272
1315
  "translations",
@@ -1293,10 +1336,10 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1293
1336
  e.i18n?.fallbackLng,
1294
1337
  e.i18n?.lng,
1295
1338
  e.i18n?.useLanguageDetector
1296
- ]), /* @__PURE__ */ A(ye, { children: /* @__PURE__ */ A(Ce, {
1339
+ ]), /* @__PURE__ */ j(ve, { children: /* @__PURE__ */ j(Ce, {
1297
1340
  i18n: s,
1298
- children: /* @__PURE__ */ A(Ie, { children: /* @__PURE__ */ A(R, { children: /* @__PURE__ */ A(c, {
1299
- value: T(() => ({
1341
+ children: /* @__PURE__ */ j(Ie, { children: /* @__PURE__ */ j(rt, { children: /* @__PURE__ */ j(c, {
1342
+ value: D(() => ({
1300
1343
  basePath: t,
1301
1344
  entities: n,
1302
1345
  entityManifest: n,
@@ -1316,8 +1359,8 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1316
1359
  e.graphql,
1317
1360
  e.sidebar
1318
1361
  ]),
1319
- children: /* @__PURE__ */ A(Ft, {
1320
- routes: T(() => St({
1362
+ children: /* @__PURE__ */ j(Lt, {
1363
+ routes: D(() => Ct({
1321
1364
  basePath: t,
1322
1365
  entityManifest: n,
1323
1366
  entityRegistry: r,
@@ -1338,7 +1381,7 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1338
1381
  })
1339
1382
  }) }) })
1340
1383
  }) });
1341
- }, Lt = (e) => {
1384
+ }, zt = (e) => {
1342
1385
  let t = null, n = null;
1343
1386
  return {
1344
1387
  get: () => t,
@@ -1346,15 +1389,15 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1346
1389
  n = null;
1347
1390
  }), n)
1348
1391
  };
1349
- }, Rt = (e, t) => {
1392
+ }, Bt = (e, t) => {
1350
1393
  let n = e ?? [], r = t ?? [];
1351
1394
  return n.length === r.length ? n.every((e, t) => e === r[t]) : !1;
1352
1395
  };
1353
1396
  function $(e, t, n) {
1354
1397
  let { filters: r } = e.list;
1355
- return r.find((e) => String(e.whereKey ?? e.id) === t && Rt(e.path, n)) ?? null;
1398
+ return r.find((e) => String(e.whereKey ?? e.id) === t && Bt(e.path, n)) ?? null;
1356
1399
  }
1357
- function zt(e, t, n) {
1400
+ function Vt(e, t, n) {
1358
1401
  let r = $(e, t);
1359
1402
  if (r != null) return r;
1360
1403
  let { [t]: i } = n ?? {};
@@ -1364,25 +1407,25 @@ function zt(e, t, n) {
1364
1407
  }
1365
1408
  return $(e, `${t}Contains`) ?? null;
1366
1409
  }
1367
- function Bt(e, t) {
1410
+ function Ht(e, t) {
1368
1411
  return t == null ? !1 : e.kind === "boolean" ? typeof t == "boolean" : e.kind === "entityId" ? typeof t == "string" && t.trim() !== "" : typeof t == "number" ? String(t).trim() !== "" : typeof t == "string" ? t.trim() !== "" : !1;
1369
1412
  }
1370
1413
  //#endregion
1371
1414
  //#region src/components/backoffice/filters/backofficeFilterAction.css.ts
1372
- var Vt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txvbqb1qy txvbqb1cp txvbqb1qg txvbqbf7 txvbqbv0t txvbqbva1 txvbqbv txvbqb3b txvbqb78 txvbqb6w txvbqb7k", Ht = "txvbqbtx7 txvbqbc67", Ut = (e, t) => e(t), Wt = (e) => {
1373
- let { t } = Te(), { t: n } = u(), { filterColumnAliases: r } = l(), { whereKey: i, value: a, path: o, label: s, listConfig: c } = e, d = S(), f = null;
1415
+ var Ut = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txvbqb1qy txvbqb1cp txvbqb1qg txvbqbf7 txvbqbv0t txvbqbva1 txvbqbv txvbqb3b txvbqb78 txvbqb6w txvbqb7k", Wt = "txvbqbtx7 txvbqbc67", Gt = (e, t) => e(t), Kt = (e) => {
1416
+ let { t } = Te(), { t: n } = u(), { filterColumnAliases: r } = l(), { whereKey: i, value: a, path: o, label: s, listConfig: c } = e, d = ne(), f = null;
1374
1417
  if (c == null ? d != null && (f = d.config) : f = c, f == null) return null;
1375
1418
  let p = $(f, i, o);
1376
- if (p == null && o == null && (p = zt(f, i, r)), p == null || !Bt(p, a)) return null;
1377
- let m = Ut(p.label, t), h = s ?? n("filters.actions.filterBy", { label: m }), g = /* @__PURE__ */ A(Pe, {
1419
+ if (p == null && o == null && (p = Vt(f, i, r)), p == null || !Ht(p, a)) return null;
1420
+ let m = Gt(p.label, t), h = s ?? n("filters.actions.filterBy", { label: m }), g = /* @__PURE__ */ j(Pe, {
1378
1421
  width: 14,
1379
1422
  height: 14,
1380
- className: Ht,
1423
+ className: Wt,
1381
1424
  "aria-hidden": "true"
1382
1425
  });
1383
- if (d != null) return /* @__PURE__ */ A("button", {
1426
+ if (d != null) return /* @__PURE__ */ j("button", {
1384
1427
  type: "button",
1385
- className: Vt,
1428
+ className: Ut,
1386
1429
  title: h,
1387
1430
  "aria-label": h,
1388
1431
  onClick: () => {
@@ -1391,51 +1434,51 @@ var Vt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txv
1391
1434
  children: g
1392
1435
  });
1393
1436
  let _ = Ve(f.listDefaults?.where ?? f.list.defaultState?.where ?? null, i, a, o);
1394
- return /* @__PURE__ */ A(De, {
1395
- to: N(f, { where: _ }),
1396
- className: Vt,
1437
+ return /* @__PURE__ */ j(De, {
1438
+ to: P(f, { where: _ }),
1439
+ className: Ut,
1397
1440
  children: g
1398
1441
  });
1399
- }, Gt = "txvbqb9ip txvbqbai7 txvbqbap7", Kt = "txvbqb9ip txvbqbai7 txvbqbaop", qt = "txvbqb9iy txvbqbbwy txvbqbap7 txvbqbcg", Jt = "txvbqb9ip txvbqbai7 txvbqbap7", Yt = "txvbqb9ip txvbqbai7 txvbqbap7", Xt = ({ summary: e, aside: t, children: n, className: r }) => {
1442
+ }, qt = "txvbqb9ip txvbqbai7 txvbqbap7", Jt = "txvbqb9ip txvbqbai7 txvbqbaop", Yt = "txvbqb9iy txvbqbbwy txvbqbap7 txvbqbcg", Xt = "txvbqb9ip txvbqbai7 txvbqbap7", Zt = "txvbqb9ip txvbqbai7 txvbqbap7", Qt = ({ summary: e, aside: t, children: n, className: r }) => {
1400
1443
  let i = null;
1401
- e != null && (i = /* @__PURE__ */ A("div", {
1402
- className: Kt,
1444
+ e != null && (i = /* @__PURE__ */ j("div", {
1445
+ className: Jt,
1403
1446
  children: e
1404
1447
  }));
1405
1448
  let a = null;
1406
- t != null && (a = /* @__PURE__ */ A("aside", {
1407
- className: Yt,
1449
+ t != null && (a = /* @__PURE__ */ j("aside", {
1450
+ className: Zt,
1408
1451
  children: t
1409
1452
  }));
1410
1453
  let o = null;
1411
- return (n != null || a != null) && (o = /* @__PURE__ */ A("div", {
1412
- className: Jt,
1454
+ return (n != null || a != null) && (o = /* @__PURE__ */ j("div", {
1455
+ className: Xt,
1413
1456
  children: n
1414
- })), /* @__PURE__ */ j("div", {
1415
- className: Le(Gt, r),
1416
- children: [i, /* @__PURE__ */ j("div", {
1417
- className: qt,
1457
+ })), /* @__PURE__ */ M("div", {
1458
+ className: Le(qt, r),
1459
+ children: [i, /* @__PURE__ */ M("div", {
1460
+ className: Yt,
1418
1461
  children: [o, a]
1419
1462
  })]
1420
1463
  });
1421
- }, Zt = "txvbqbv9z txvbqb3d txvbqbvwr", Qt = ({ count: e, entity: t, where: n }) => {
1422
- let { entities: r, entityRegistry: i } = l(), a = be(ke), o = 0;
1464
+ }, $t = "txvbqbv9z txvbqb3d txvbqbvwr", en = ({ count: e, entity: t, where: n }) => {
1465
+ let { entities: r, entityRegistry: i } = l(), a = ye(ke), o = 0;
1423
1466
  typeof e == "number" && Number.isFinite(e) && (o = e);
1424
1467
  let s = r[t];
1425
- if (s == null) return /* @__PURE__ */ A("span", { children: o });
1468
+ if (s == null) return /* @__PURE__ */ j("span", { children: o });
1426
1469
  let c = i.getLoadedListEntity(t), u;
1427
- u = c == null ? Be(s.routes.list, n) : N(c.config, { where: n });
1470
+ u = c == null ? Be(s.routes.list, n) : P(c.config, { where: n });
1428
1471
  let d = async (e) => {
1429
- let r = N((await i.loadListEntity(t)).config, { where: n }), a = "";
1472
+ let r = P((await i.loadListEntity(t)).config, { where: n }), a = "";
1430
1473
  r.search !== "" && (a = `?${r.search}`), e.push({
1431
1474
  pathname: r.pathname,
1432
1475
  search: a,
1433
1476
  hash: ""
1434
1477
  });
1435
1478
  };
1436
- return /* @__PURE__ */ A(De, {
1479
+ return /* @__PURE__ */ j(De, {
1437
1480
  to: u,
1438
- className: Zt,
1481
+ className: $t,
1439
1482
  onClick: (e) => {
1440
1483
  if (c != null || a == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
1441
1484
  e.preventDefault();
@@ -1460,47 +1503,47 @@ var Vt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txv
1460
1503
  },
1461
1504
  children: o
1462
1505
  });
1463
- }, $t = "txvbqb9ip", en = "txvbqb9ip txvbqbai7 txvbqbaop", tn = ({ headerNode: e, tabs: t, activeId: n, children: r }) => {
1506
+ }, tn = "txvbqb9ip", nn = "txvbqb9ip txvbqbai7 txvbqbaop", rn = ({ headerNode: e, tabs: t, activeId: n, children: r }) => {
1464
1507
  let i = null;
1465
- return t != null && t.length > 1 && n != null && (i = /* @__PURE__ */ A(Me, {
1508
+ return t != null && t.length > 1 && n != null && (i = /* @__PURE__ */ j(Me, {
1466
1509
  items: t,
1467
1510
  activeId: n,
1468
1511
  onChange: () => {},
1469
- className: $t
1470
- })), /* @__PURE__ */ A(Ne, {
1512
+ className: tn
1513
+ })), /* @__PURE__ */ j(Ne, {
1471
1514
  headerNode: e,
1472
1515
  tabsNode: i,
1473
- children: /* @__PURE__ */ A("div", {
1474
- className: en,
1516
+ children: /* @__PURE__ */ j("div", {
1517
+ className: nn,
1475
1518
  children: r
1476
1519
  })
1477
1520
  });
1478
- }, nn = "txvbqb9jg txvbqbcp txvbqbany txvbqbajy", rn = ({ children: e, className: t }) => /* @__PURE__ */ A("span", {
1479
- className: Le(nn, t),
1521
+ }, an = "txvbqb9jg txvbqbcp txvbqbany txvbqbajy", on = ({ children: e, className: t }) => /* @__PURE__ */ j("span", {
1522
+ className: Le(an, t),
1480
1523
  children: e
1481
- }), an = [];
1482
- function on() {
1483
- return Reflect.get(k, "default") ?? k;
1524
+ }), sn = [];
1525
+ function cn() {
1526
+ return Reflect.get(A, "default") ?? A;
1484
1527
  }
1485
- var sn = on();
1486
- function cn(e, n) {
1487
- let r = sn.useRelayEnvironment(), [i, o] = E(null), [s, c] = E(!1), [l, u] = E(!1), d = Se(a, () => t().generation, () => t().generation), { enabled: f = !0, deps: p = an, getVariables: m } = n, h = C(() => {
1528
+ var ln = cn();
1529
+ function un(e, n) {
1530
+ let r = ln.useRelayEnvironment(), [i, o] = O(null), [s, c] = O(!1), [l, u] = O(!1), d = xe(a, () => t().generation, () => t().generation), { enabled: f = !0, deps: p = sn, getVariables: m } = n, h = T(() => {
1488
1531
  try {
1489
1532
  return m == null ? e.variables : m();
1490
1533
  } catch {
1491
1534
  return null;
1492
1535
  }
1493
- }, [e.variables, m]), g = T(() => h(), [h]), _ = T(() => {
1536
+ }, [e.variables, m]), g = D(() => h(), [h]), _ = D(() => {
1494
1537
  if (g == null) return null;
1495
1538
  try {
1496
1539
  return JSON.stringify(g);
1497
1540
  } catch {
1498
1541
  return null;
1499
1542
  }
1500
- }, [g]), v = !!f, y = v && g != null && s && i == null && !l, b = xe(null);
1501
- return w(() => {
1543
+ }, [g]), v = !!f, y = v && g != null && s && i == null && !l, b = be(null);
1544
+ return E(() => {
1502
1545
  let t = null, n = h();
1503
- return v && n != null && (o(null), u(!1), c(!0), t = sn.requestSubscription(r, {
1546
+ return v && n != null && (o(null), u(!1), c(!0), t = ln.requestSubscription(r, {
1504
1547
  subscription: e.subscription,
1505
1548
  variables: n,
1506
1549
  cacheConfig: e.cacheConfig,
@@ -1535,26 +1578,26 @@ function cn(e, n) {
1535
1578
  }
1536
1579
  //#endregion
1537
1580
  //#region src/hooks/useCopyToClipboard.ts
1538
- var ln = "copy-to-clipboard-fallback";
1539
- function un(e) {
1581
+ var dn = "copy-to-clipboard-fallback";
1582
+ function fn(e) {
1540
1583
  if (typeof document > "u") return;
1541
- let t = document.getElementById(ln);
1542
- t ?? (t = document.createElement("textarea"), t.id = ln, t.setAttribute("readonly", ""), t.style.position = "absolute", t.style.left = "-9999px", t.style.top = "0", t.style.opacity = "0", document.body.appendChild(t)), t.value = e, t.select(), document.execCommand("copy");
1584
+ let t = document.getElementById(dn);
1585
+ t ?? (t = document.createElement("textarea"), t.id = dn, t.setAttribute("readonly", ""), t.style.position = "absolute", t.style.left = "-9999px", t.style.top = "0", t.style.opacity = "0", document.body.appendChild(t)), t.value = e, t.select(), document.execCommand("copy");
1543
1586
  }
1544
- function dn(e = 2e3) {
1545
- let [t, n] = E(null), r = xe(null);
1546
- return w(() => () => {
1587
+ function pn(e = 2e3) {
1588
+ let [t, n] = O(null), r = be(null);
1589
+ return E(() => () => {
1547
1590
  r.current != null && window.clearTimeout(r.current);
1548
1591
  }, []), {
1549
1592
  copiedKey: t,
1550
- copy: C(async (t, i) => {
1593
+ copy: T(async (t, i) => {
1551
1594
  let a = !1, o;
1552
1595
  if (typeof navigator < "u" && (o = navigator.clipboard), o != null) try {
1553
1596
  await o.writeText(t), a = !0;
1554
1597
  } catch {
1555
1598
  a = !1;
1556
1599
  }
1557
- return a ||= (un(t), !0), i != null && (n(i), r.current != null && window.clearTimeout(r.current), r.current = window.setTimeout(() => {
1600
+ return a ||= (fn(t), !0), i != null && (n(i), r.current != null && window.clearTimeout(r.current), r.current = window.setTimeout(() => {
1558
1601
  n(null), r.current = null;
1559
1602
  }, e)), a;
1560
1603
  }, [e])
@@ -1562,26 +1605,26 @@ function dn(e = 2e3) {
1562
1605
  }
1563
1606
  //#endregion
1564
1607
  //#region src/hooks/useRefetchNeededReload.ts
1565
- function fn(e) {
1566
- let [t, n] = E(null);
1567
- return w(() => {
1608
+ function mn(e) {
1609
+ let [t, n] = O(null);
1610
+ return E(() => {
1568
1611
  n(null);
1569
1612
  }, [e]), {
1570
1613
  reason: t,
1571
- onRefetchNeeded: C((e) => {
1614
+ onRefetchNeeded: T((e) => {
1572
1615
  n(e ?? "UNKNOWN");
1573
1616
  }, []),
1574
- reload: C(() => {
1617
+ reload: T(() => {
1575
1618
  window.location.reload();
1576
1619
  }, []),
1577
- clear: C(() => {
1620
+ clear: T(() => {
1578
1621
  n(null);
1579
1622
  }, [])
1580
1623
  };
1581
1624
  }
1582
1625
  //#endregion
1583
1626
  //#region src/i18n/useReviewStatusLabel.ts
1584
- function pn() {
1627
+ function hn() {
1585
1628
  let { t: e } = u();
1586
1629
  function t(t) {
1587
1630
  if (t == null) return e("review.status.unknown");
@@ -1596,7 +1639,7 @@ function pn() {
1596
1639
  }
1597
1640
  //#endregion
1598
1641
  //#region src/modules/base64.ts
1599
- function mn(e) {
1642
+ function gn(e) {
1600
1643
  if (typeof e != "string") throw TypeError("encodeUtf8ToBase64 expects a string input.");
1601
1644
  if (typeof globalThis.btoa == "function") {
1602
1645
  let t = encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, (e, t) => String.fromCharCode(Number.parseInt(t, 16)));
@@ -1604,7 +1647,7 @@ function mn(e) {
1604
1647
  }
1605
1648
  throw Error("No base64 encoder is available in this environment.");
1606
1649
  }
1607
- function hn(e) {
1650
+ function _n(e) {
1608
1651
  if (typeof e != "string") throw TypeError("decodeBase64ToUtf8 expects a string input.");
1609
1652
  if (typeof globalThis.atob == "function") {
1610
1653
  let t = globalThis.atob(e), n = Array.from(t, (e) => `%${e.charCodeAt(0).toString(16).padStart(2, "0")}`).join("");
@@ -1614,33 +1657,33 @@ function hn(e) {
1614
1657
  }
1615
1658
  //#endregion
1616
1659
  //#region src/modules/formatFileSize.ts
1617
- var gn = [
1660
+ var vn = [
1618
1661
  "B",
1619
1662
  "KB",
1620
1663
  "MB",
1621
1664
  "GB",
1622
1665
  "TB"
1623
- ], _n = 1024, vn = (e, t) => {
1666
+ ], yn = 1024, bn = (e, t) => {
1624
1667
  if (t === "B") return Math.round(e).toString();
1625
1668
  let n = 1;
1626
1669
  return e >= 10 && (n = 0), e.toFixed(n);
1627
1670
  };
1628
- function yn(e) {
1671
+ function xn(e) {
1629
1672
  let t = e;
1630
1673
  Number.isFinite(e) || (t = 0);
1631
1674
  let n = t < 0, r = Math.abs(t), i = 0;
1632
- for (; r >= _n && i < gn.length - 1;) r /= _n, i += 1;
1633
- let a = gn[i] ?? "B", o = r;
1675
+ for (; r >= yn && i < vn.length - 1;) r /= yn, i += 1;
1676
+ let a = vn[i] ?? "B", o = r;
1634
1677
  return n && (o = -r), {
1635
1678
  value: o,
1636
1679
  unit: a,
1637
- displayValue: vn(o, a)
1680
+ displayValue: bn(o, a)
1638
1681
  };
1639
1682
  }
1640
1683
  //#endregion
1641
1684
  //#region src/relay/createInlineReader.ts
1642
- var { readInlineData: bn } = k, xn = (e) => (t) => bn(e, t), Sn = (e) => e;
1685
+ var { readInlineData: Sn } = A, Cn = (e) => (t) => Sn(e, t), wn = (e) => e;
1643
1686
  //#endregion
1644
- export { b as AcceptInvitationScreen, se as BackofficeDetailBadgeRow, ce as BackofficeDetailField, ue as BackofficeDetailPayload, le as BackofficeDetailSection, x as BackofficeErrorBoundary, Wt as BackofficeFilterAction, rn as BackofficeInlineFilterRow, Xt as BackofficeOverviewLayout, It as BackofficeProvider, Qt as BackofficeRelatedCountLink, ve as BackofficeRightPageLayout, tn as BackofficeTabbedDetailShell, ie as EntityFilterValue, re as EntityFilterValueText, ae as EntityIdFilterField, oe as EntityIdPickerDialog, v as LoginFlow, ee as PasswordResetCompleteScreen, te as PasswordResetRequestScreen, R as RelayProvider, ne as VerifyEmailScreen, $e as backofficeReactI18nResources, h as base64UrlToBuffer, g as bufferToBase64Url, _e as buildDataTableColumns, o as configureRelayEnvironment, Lt as createBackofficeLazyValue, Je as createI18nInstance, xn as createInlineDataReader, _ as createUseAuth, hn as decodeBase64ToUtf8, mn as encodeUtf8ToBase64, yn as formatFileSize, n as getEnvironment, i as getNetwork, t as getRelayTransportSnapshot, Sn as identityView, m as mapWebAuthnRegistrationError, p as parseSignCount, e as reconnectRelayWebSocket, he as requireField, pe as requireLinkedRecordId, r as resetRelayStore, me as resolveAgentStartOutcome, fe as resolveMutationOutcome, ge as resolveVisibleDetailPages, a as subscribeRelayTransport, y as synchronizeAuthStatusQuery, l as useBackofficeConfig, de as useBackofficeListUrlState, cn as useConditionalSubscription, dn as useCopyToClipboard, fn as useRefetchNeededReload, pn as useReviewStatusLabel, tt as withBackofficeReactI18nResources };
1687
+ export { x as AcceptInvitationScreen, w as BackofficeDetailBadgeRow, se as BackofficeDetailField, le as BackofficeDetailPayload, ce as BackofficeDetailSection, te as BackofficeErrorBoundary, Kt as BackofficeFilterAction, on as BackofficeInlineFilterRow, Qt as BackofficeOverviewLayout, Rt as BackofficeProvider, en as BackofficeRelatedCountLink, _e as BackofficeRightPageLayout, rn as BackofficeTabbedDetailShell, ie as EntityFilterValue, re as EntityFilterValueText, ae as EntityIdFilterField, oe as EntityIdPickerDialog, y as LoginFlow, S as PasswordResetCompleteScreen, C as PasswordResetRequestScreen, rt as RelayProvider, ee as VerifyEmailScreen, $e as backofficeReactI18nResources, g as base64UrlToBuffer, _ as bufferToBase64Url, ge as buildDataTableColumns, o as configureRelayEnvironment, zt as createBackofficeLazyValue, Je as createI18nInstance, Cn as createInlineDataReader, v as createUseAuth, _n as decodeBase64ToUtf8, gn as encodeUtf8ToBase64, xn as formatFileSize, n as getEnvironment, i as getNetwork, t as getRelayTransportSnapshot, wn as identityView, h as mapWebAuthnRegistrationError, m as parseSignCount, e as reconnectRelayWebSocket, me as requireField, fe as requireLinkedRecordId, r as resetRelayStore, pe as resolveAgentStartOutcome, de as resolveMutationOutcome, he as resolveVisibleDetailPages, a as subscribeRelayTransport, b as synchronizeAuthStatusQuery, l as useBackofficeConfig, ue as useBackofficeListUrlState, un as useConditionalSubscription, pn as useCopyToClipboard, mn as useRefetchNeededReload, hn as useReviewStatusLabel, tt as withBackofficeReactI18nResources };
1645
1688
 
1646
1689
  //# sourceMappingURL=backoffice-react.js.map