@plumile/backoffice-react 0.1.101 → 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 (79) hide show
  1. package/lib/esm/{BackofficeAcceptInvitationPage-CEtApVwL.js → BackofficeAcceptInvitationPage-BfRsORii.js} +3 -3
  2. package/lib/esm/{BackofficeAcceptInvitationPage-CEtApVwL.js.map → BackofficeAcceptInvitationPage-BfRsORii.js.map} +1 -1
  3. package/lib/esm/{BackofficeDashboardPage-r8vK_JA6.js → BackofficeDashboardPage-COKOYq4D.js} +5 -4
  4. package/lib/esm/{BackofficeDashboardPage-r8vK_JA6.js.map → BackofficeDashboardPage-COKOYq4D.js.map} +1 -1
  5. package/lib/esm/{BackofficeEntityActionFormDialog-BgRTJ_JS.js → BackofficeEntityActionFormDialog-BgMuhyU8.js} +2 -2
  6. package/lib/esm/{BackofficeEntityActionFormDialog-BgRTJ_JS.js.map → BackofficeEntityActionFormDialog-BgMuhyU8.js.map} +1 -1
  7. package/lib/esm/{BackofficeEntityDetailLayoutContext-C_tBqkVq.js → BackofficeEntityDetailLayoutContext-DeuH5PCW.js} +1 -1
  8. package/lib/esm/{BackofficeEntityDetailLayoutContext-C_tBqkVq.js.map → BackofficeEntityDetailLayoutContext-DeuH5PCW.js.map} +1 -1
  9. package/lib/esm/{BackofficeEntityDetailLayoutPage-DXjRqvcZ.js → BackofficeEntityDetailLayoutPage-Duc_DcIV.js} +2 -2
  10. package/lib/esm/{BackofficeEntityDetailLayoutPage-DXjRqvcZ.js.map → BackofficeEntityDetailLayoutPage-Duc_DcIV.js.map} +1 -1
  11. package/lib/esm/{BackofficeEntityDetailPage-CwzKp_Yw.js → BackofficeEntityDetailPage-ByioPO5K.js} +7 -6
  12. package/lib/esm/{BackofficeEntityDetailPage-CwzKp_Yw.js.map → BackofficeEntityDetailPage-ByioPO5K.js.map} +1 -1
  13. package/lib/esm/{BackofficeEntityDetailUnknownPageRedirect-DRWTeox-.js → BackofficeEntityDetailUnknownPageRedirect-xupMeril.js} +2 -2
  14. package/lib/esm/{BackofficeEntityDetailUnknownPageRedirect-DRWTeox-.js.map → BackofficeEntityDetailUnknownPageRedirect-xupMeril.js.map} +1 -1
  15. package/lib/esm/{BackofficeEntityListPage-DVT3rrfa.js → BackofficeEntityListPage-dyE4er_s.js} +5 -4
  16. package/lib/esm/{BackofficeEntityListPage-DVT3rrfa.js.map → BackofficeEntityListPage-dyE4er_s.js.map} +1 -1
  17. package/lib/esm/BackofficeHubPage-D2k0ZO6c.js +136 -0
  18. package/lib/esm/BackofficeHubPage-D2k0ZO6c.js.map +1 -0
  19. package/lib/esm/BackofficeLayoutPage-BiSUwAi9.js +625 -0
  20. package/lib/esm/BackofficeLayoutPage-BiSUwAi9.js.map +1 -0
  21. package/lib/esm/{BackofficeLoginPage-Cc3kcOQV.js → BackofficeLoginPage-BMPhO1cr.js} +4 -4
  22. package/lib/esm/{BackofficeLoginPage-Cc3kcOQV.js.map → BackofficeLoginPage-BMPhO1cr.js.map} +1 -1
  23. package/lib/esm/{BackofficePasswordResetCompletePage-CF_0t3Nq.js → BackofficePasswordResetCompletePage-OApMUiOi.js} +3 -3
  24. package/lib/esm/{BackofficePasswordResetCompletePage-CF_0t3Nq.js.map → BackofficePasswordResetCompletePage-OApMUiOi.js.map} +1 -1
  25. package/lib/esm/{BackofficePasswordResetRequestPage-BJOrQXcy.js → BackofficePasswordResetRequestPage-DPDImb37.js} +2 -2
  26. package/lib/esm/{BackofficePasswordResetRequestPage-BJOrQXcy.js.map → BackofficePasswordResetRequestPage-DPDImb37.js.map} +1 -1
  27. package/lib/esm/BackofficePermissionsContext-CmWwudBU.js +11 -0
  28. package/lib/esm/BackofficePermissionsContext-CmWwudBU.js.map +1 -0
  29. package/lib/esm/BackofficeRightPageLayout-BZb7LhT-.js +53 -0
  30. package/lib/esm/BackofficeRightPageLayout-BZb7LhT-.js.map +1 -0
  31. package/lib/esm/{BackofficeTopbarPortalContext-iD7dm4_h.js → BackofficeTopbarPortalContext-CphoSrZD.js} +1 -1
  32. package/lib/esm/{BackofficeTopbarPortalContext-iD7dm4_h.js.map → BackofficeTopbarPortalContext-CphoSrZD.js.map} +1 -1
  33. package/lib/esm/{BackofficeVerifyEmailPage-C81LlsNM.js → BackofficeVerifyEmailPage-DHuSOxDf.js} +3 -3
  34. package/lib/esm/{BackofficeVerifyEmailPage-C81LlsNM.js.map → BackofficeVerifyEmailPage-DHuSOxDf.js.map} +1 -1
  35. package/lib/esm/{LazyBackofficeEntityActionFormDialog-L8xwaGqH.js → LazyBackofficeEntityActionFormDialog-DwPGe2Qv.js} +2 -2
  36. package/lib/esm/{LazyBackofficeEntityActionFormDialog-L8xwaGqH.js.map → LazyBackofficeEntityActionFormDialog-DwPGe2Qv.js.map} +1 -1
  37. package/lib/esm/backoffice-react.js +287 -250
  38. package/lib/esm/backoffice-react.js.map +1 -1
  39. package/lib/esm/{backofficeAuthPaths-BiJvoI5Q.js → backofficeAuthPaths-2KMmkBLv.js} +1 -1
  40. package/lib/esm/{backofficeAuthPaths-BiJvoI5Q.js.map → backofficeAuthPaths-2KMmkBLv.js.map} +1 -1
  41. package/lib/esm/{buildBreadcrumbs-CqF9Nh6x.js → buildBreadcrumbs-C9cyiXb7.js} +8 -4
  42. package/lib/esm/buildBreadcrumbs-C9cyiXb7.js.map +1 -0
  43. package/lib/esm/buildDataTableColumns-D95yRO2W.js +65 -0
  44. package/lib/esm/buildDataTableColumns-D95yRO2W.js.map +1 -0
  45. package/lib/esm/sidebarUtils-BZETlHea.js +74 -0
  46. package/lib/esm/sidebarUtils-BZETlHea.js.map +1 -0
  47. package/lib/esm/style.css +1 -1
  48. package/lib/esm/{toastViewAction-BGTS7vqm.js → toastViewAction-DJkv_4p9.js} +1 -1
  49. package/lib/esm/{toastViewAction-BGTS7vqm.js.map → toastViewAction-DJkv_4p9.js.map} +1 -1
  50. package/lib/esm/{useBackofficeAuth-ers1FUGe.js → useBackofficeAuth-DVAXNAjP.js} +1 -1
  51. package/lib/esm/{useBackofficeAuth-ers1FUGe.js.map → useBackofficeAuth-DVAXNAjP.js.map} +1 -1
  52. package/lib/esm/{useBackofficeLazyValue-Bh_13h8A.js → useBackofficeLazyValue-CoIAK-5N.js} +1 -1
  53. package/lib/esm/{useBackofficeLazyValue-Bh_13h8A.js.map → useBackofficeLazyValue-CoIAK-5N.js.map} +1 -1
  54. package/lib/types/components/backoffice/layout/BackofficePermissionsContext.d.ts +8 -0
  55. package/lib/types/components/backoffice/layout/BackofficePermissionsContext.d.ts.map +1 -0
  56. package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts +4 -0
  57. package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts.map +1 -1
  58. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts.map +1 -1
  59. package/lib/types/components/backoffice/layout/sidebarUtils.d.ts +11 -3
  60. package/lib/types/components/backoffice/layout/sidebarUtils.d.ts.map +1 -1
  61. package/lib/types/i18n/resources.d.ts +28 -0
  62. package/lib/types/i18n/resources.d.ts.map +1 -1
  63. package/lib/types/pages/BackofficeHubPage.d.ts +8 -0
  64. package/lib/types/pages/BackofficeHubPage.d.ts.map +1 -0
  65. package/lib/types/pages/BackofficeLayoutPage.d.ts.map +1 -1
  66. package/lib/types/pages/backofficeHubPage.css.d.ts +15 -0
  67. package/lib/types/pages/backofficeHubPage.css.d.ts.map +1 -0
  68. package/lib/types/provider/types.d.ts +22 -5
  69. package/lib/types/provider/types.d.ts.map +1 -1
  70. package/lib/types/router/createBackofficeRoutes.d.ts +6 -1
  71. package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
  72. package/package.json +5 -5
  73. package/lib/esm/BackofficeLayoutPage-DQ0sVv24.js +0 -609
  74. package/lib/esm/BackofficeLayoutPage-DQ0sVv24.js.map +0 -1
  75. package/lib/esm/BackofficeRightPageLayout-hexJmpam.js +0 -113
  76. package/lib/esm/BackofficeRightPageLayout-hexJmpam.js.map +0 -1
  77. package/lib/esm/buildBreadcrumbs-CqF9Nh6x.js.map +0 -1
  78. package/lib/esm/sidebarUtils-DVkLmFbS.js +0 -52
  79. package/lib/esm/sidebarUtils-DVkLmFbS.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 { o as d, t as f } from "./sidebarUtils-DVkLmFbS.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-hexJmpam.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",
@@ -754,6 +767,18 @@ var Ye = {
754
767
  percent: "{{value, percent}}"
755
768
  },
756
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
+ },
757
782
  list: {
758
783
  actions: {
759
784
  refresh: "Actualiser",
@@ -812,13 +837,13 @@ var Ye = {
812
837
  }
813
838
  },
814
839
  tools: { output: "Résultat" }
815
- }, 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 : {};
816
841
  function Qe(...e) {
817
842
  let t = {};
818
843
  return e.forEach((e) => {
819
844
  Object.entries(e).forEach(([e, n]) => {
820
845
  let r = t[e];
821
- if (I(r) && I(n)) {
846
+ if (L(r) && L(n)) {
822
847
  t[e] = Qe(Ze(r), Ze(n));
823
848
  return;
824
849
  }
@@ -831,36 +856,36 @@ function Qe(...e) {
831
856
  var $e = {
832
857
  en: { backofficeReact: Ye },
833
858
  fr: { backofficeReact: Xe }
834
- }, et = (e) => typeof e == "object" && !!e, L = (e) => et(e) ? e : {};
859
+ }, et = (e) => typeof e == "object" && !!e, R = (e) => et(e) ? e : {};
835
860
  function tt(e = {}) {
836
861
  let t = {}, n = $e;
837
862
  return new Set([...Object.keys(n), ...Object.keys(e)]).forEach((r) => {
838
- let i = L(n[r]), a = L(e[r]);
863
+ let i = R(n[r]), a = R(e[r]);
839
864
  t[r] = {
840
865
  ...i,
841
866
  ...a,
842
- backofficeReact: Qe(L(i.backofficeReact), L(a.backofficeReact))
867
+ backofficeReact: Qe(R(i.backofficeReact), R(a.backofficeReact))
843
868
  };
844
869
  }), t;
845
870
  }
846
871
  //#endregion
847
872
  //#region src/relay/RelayProvider.tsx
848
- 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, {
849
874
  environment: n(),
850
875
  children: e
851
- })), { loadQuery: z, usePreloadedQuery: rt } = k, it = O("WrapperPage", async () => ({ default: (await import("@plumile/ui")).WrapperPage })), at = O("BackofficeLayoutPage", async () => import("./BackofficeLayoutPage-DQ0sVv24.js")), ot = O("BackofficeEntityListPage", async () => import("./BackofficeEntityListPage-DVT3rrfa.js")), st = O("BackofficeEntityDetailPage", async () => import("./BackofficeEntityDetailPage-CwzKp_Yw.js")), ct = O("BackofficeEntityDetailLayoutPage", async () => import("./BackofficeEntityDetailLayoutPage-DXjRqvcZ.js")), lt = O("BackofficeEntityDetailUnknownPageRedirect", async () => import("./BackofficeEntityDetailUnknownPageRedirect-DRWTeox-.js")), ut = O("BackofficeDashboardPage", async () => import("./BackofficeDashboardPage-r8vK_JA6.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) => {
852
877
  let t = e.trim();
853
878
  return t === "" || t === "/" ? "" : t.replace(/^\/+|\/+$/g, "");
854
- }, _t = (e) => {
879
+ }, yt = (e) => {
855
880
  let t = e.trim();
856
881
  return t === "" ? "/" : `/${t}`.replace(/\/+/g, "/");
857
882
  }, B = (e, t) => {
858
883
  let n = t.replace(/^\/+|\/+$/g, "");
859
884
  return e === "" ? n : n === "" ? e : `${e}/${n}`;
860
- }, vt = (e, t) => _t(B(e, t)), yt = (e, t) => {
861
- 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}`;
862
887
  return r !== "" && n.startsWith(r) ? n.slice(r.length).replace(/^\/+/, "") : n.replace(/^\/+/, "");
863
- }, bt = (e, t) => {
888
+ }, xt = (e, t) => {
864
889
  if (e?.routes == null) return null;
865
890
  for (let n = e.routes.length - 1; n >= 0; --n) {
866
891
  let r = e.routes[n];
@@ -870,7 +895,7 @@ var { RelayEnvironmentProvider: nt } = k, R = ({ children: e }) => (Se(a, () =>
870
895
  }
871
896
  }
872
897
  return null;
873
- }, xt = (e) => {
898
+ }, St = (e) => {
874
899
  let t = new URLSearchParams();
875
900
  return Object.entries(e).forEach(([e, n]) => {
876
901
  if (n != null) {
@@ -883,33 +908,44 @@ var { RelayEnvironmentProvider: nt } = k, R = ({ children: e }) => (Se(a, () =>
883
908
  t.set(e, String(n));
884
909
  }
885
910
  }), t;
886
- }, V = je;
887
- function St(e) {
888
- 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();
889
- g.forEach((e, t) => {
890
- _.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);
891
916
  });
892
- 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 }) => {
893
918
  let t = await a.session.load();
894
919
  return {
895
- permissionsQuery: y == null ? null : z(e.relayEnvironment, y, {}),
920
+ permissionsQuery: C == null ? null : z(e.relayEnvironment, C, {}),
896
921
  authStatusQuery: t.authStatusQuery == null ? null : z(e.relayEnvironment, t.authStatusQuery, {}, { fetchPolicy: "network-only" })
897
922
  };
898
- }, ee = V({
923
+ }, te = H({
899
924
  path: "",
900
- resourcePage: ut,
925
+ resourcePage: dt,
901
926
  prepare: async () => (o == null || await o.load(), null),
902
- render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
903
- }), te = Object.values(n).filter((e) => e.kind === "list-detail").map((e) => {
904
- 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 = [];
905
941
  if (e.hasList) {
906
- let t = V({
942
+ let t = H({
907
943
  path: "",
908
- resourcePage: ot,
944
+ resourcePage: st,
909
945
  prepare: async ({ context: t, query: n }) => {
910
946
  let { config: i } = await r.loadListEntity(e.id), { list: a, listUrlCodec: o, listDefaults: s } = i;
911
947
  if (o == null || s == null) throw Error(`Backoffice entity ${e.id} does not expose a list configuration.`);
912
- 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 = {
913
949
  where: l.where,
914
950
  sort: l.sort ?? s.sort,
915
951
  count: u,
@@ -925,18 +961,18 @@ function St(e) {
925
961
  render: ({ prepared: e, Component: t }) => {
926
962
  if (t == null) return null;
927
963
  let n = e;
928
- return /* @__PURE__ */ A(t, {
964
+ return /* @__PURE__ */ j(t, {
929
965
  entityManifest: n.entityManifest,
930
966
  config: n.entityConfig,
931
967
  prepared: n
932
968
  });
933
969
  }
934
970
  });
935
- v.set(t, e.id), i.push(t);
971
+ x.set(t, e.id), i.push(t);
936
972
  }
937
- let a = V({
973
+ let a = H({
938
974
  path: ":id",
939
- resourcePage: ct,
975
+ resourcePage: lt,
940
976
  prepare: async ({ context: t, variables: n }) => {
941
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);
942
978
  return {
@@ -950,7 +986,7 @@ function St(e) {
950
986
  render: ({ children: e, prepared: t, Component: n }) => {
951
987
  if (n == null) return null;
952
988
  let r = t;
953
- return /* @__PURE__ */ A(n, {
989
+ return /* @__PURE__ */ j(n, {
954
990
  entityManifest: r.entityManifest,
955
991
  config: r.entityConfig,
956
992
  prepared: r,
@@ -958,9 +994,9 @@ function St(e) {
958
994
  });
959
995
  },
960
996
  children: [
961
- V({
997
+ H({
962
998
  path: "",
963
- resourcePage: it,
999
+ resourcePage: at,
964
1000
  prepare: ({ variables: t }) => {
965
1001
  let n = String(t.id ?? "").trim();
966
1002
  return { redirectTo: n === "" ? null : e.routes.detailPage(n, e.defaultDetailPageId ?? "overview") };
@@ -971,9 +1007,9 @@ function St(e) {
971
1007
  throw new Ee(t);
972
1008
  }
973
1009
  }),
974
- ...(e.detailPages ?? []).map((t) => V({
1010
+ ...(e.detailPages ?? []).map((t) => H({
975
1011
  path: t.pathSegment,
976
- resourcePage: st,
1012
+ resourcePage: ct,
977
1013
  prepare: async ({ context: n, variables: i }) => {
978
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);
979
1015
  return {
@@ -991,16 +1027,16 @@ function St(e) {
991
1027
  render: ({ prepared: e, Component: t }) => {
992
1028
  if (t == null) return null;
993
1029
  let n = e;
994
- return /* @__PURE__ */ A(t, {
1030
+ return /* @__PURE__ */ j(t, {
995
1031
  entityManifest: n.entityManifest,
996
1032
  config: n.entityConfig,
997
1033
  prepared: n
998
1034
  });
999
1035
  }
1000
1036
  })),
1001
- V({
1037
+ H({
1002
1038
  path: ":pagePath",
1003
- resourcePage: lt,
1039
+ resourcePage: ut,
1004
1040
  prepare: async ({ variables: t }) => {
1005
1041
  let n = await r.loadDetailLayoutEntity(e.id), i = String(t.id ?? ""), a = String(t.pagePath ?? "");
1006
1042
  return {
@@ -1013,7 +1049,7 @@ function St(e) {
1013
1049
  render: ({ prepared: e, Component: t }) => {
1014
1050
  if (t == null) return null;
1015
1051
  let n = e;
1016
- return /* @__PURE__ */ A(t, {
1052
+ return /* @__PURE__ */ j(t, {
1017
1053
  entityManifest: n.entityManifest,
1018
1054
  config: n.entityConfig,
1019
1055
  prepared: n
@@ -1022,14 +1058,14 @@ function St(e) {
1022
1058
  })
1023
1059
  ]
1024
1060
  });
1025
- return v.set(a, e.id), i.push(a), V({
1061
+ return x.set(a, e.id), i.push(a), H({
1026
1062
  path: n,
1027
1063
  children: i,
1028
- resourcePage: it
1064
+ resourcePage: at
1029
1065
  });
1030
- }), ne = Object.values(n).filter((e) => e.kind === "tool").map((t) => {
1031
- let n = V({
1032
- 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),
1033
1069
  resourcePage: e.toolsOperationPage ?? null,
1034
1070
  prepare: async () => {
1035
1071
  let e = await r.loadToolEntity(t.id);
@@ -1042,27 +1078,27 @@ function St(e) {
1042
1078
  render: ({ prepared: e, Component: t }) => {
1043
1079
  if (t == null) return null;
1044
1080
  let n = e;
1045
- return /* @__PURE__ */ A(t, {
1081
+ return /* @__PURE__ */ j(t, {
1046
1082
  entityManifest: n.entityManifest,
1047
1083
  operation: n.entityConfig.tool.operation,
1048
1084
  toolId: n.entityConfig.id
1049
1085
  });
1050
1086
  }
1051
1087
  });
1052
- return v.set(n, t.id), n;
1053
- }), x = V({
1088
+ return x.set(n, t.id), n;
1089
+ }), oe = H({
1054
1090
  path: s,
1055
- resourcePage: at,
1056
- prepare: b,
1091
+ resourcePage: ot,
1092
+ prepare: ee,
1057
1093
  render: ({ children: e, prepared: t, route: n, Component: r }) => {
1058
1094
  if (r == null) return null;
1059
- 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;
1060
1096
  if (u != null && o?.authStatusQuery != null) {
1061
- l = rt(u, o.authStatusQuery);
1097
+ l = it(u, o.authStatusQuery);
1062
1098
  let { isLoggedIn: e } = l;
1063
- if (!e) throw new Ee(h);
1099
+ if (!e) throw new Ee(g);
1064
1100
  }
1065
- return /* @__PURE__ */ A(r, {
1101
+ return /* @__PURE__ */ j(r, {
1066
1102
  permissionsQuery: i?.permissionsQuery,
1067
1103
  prepared: o?.permissionsQuery ?? null,
1068
1104
  authStatus: l,
@@ -1071,72 +1107,73 @@ function St(e) {
1071
1107
  });
1072
1108
  },
1073
1109
  children: [
1074
- ee,
1075
- ...te,
1076
- ...ne
1110
+ te,
1111
+ ...re,
1112
+ ...ie,
1113
+ ...ae
1077
1114
  ]
1078
- }), S = [
1079
- V({
1115
+ }), w = [
1116
+ H({
1080
1117
  path: c,
1081
- resourcePage: dt,
1118
+ resourcePage: pt,
1082
1119
  prepare: async ({ context: e }) => {
1083
1120
  let t = await a.login.load();
1084
1121
  return { query: z(e.relayEnvironment, t.loginQuery, {}) };
1085
1122
  },
1086
- 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 })
1087
1124
  }),
1088
- V({
1125
+ H({
1089
1126
  path: l,
1090
- resourcePage: ft,
1127
+ resourcePage: mt,
1091
1128
  prepare: async () => (await a.passwordResetRequest.load(), null),
1092
- render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
1129
+ render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ j(e, {})
1093
1130
  }),
1094
- V({
1131
+ H({
1095
1132
  path: u,
1096
- resourcePage: pt,
1133
+ resourcePage: ht,
1097
1134
  prepare: async () => (await a.passwordResetComplete.load(), null),
1098
- render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
1135
+ render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ j(e, {})
1099
1136
  }),
1100
- V({
1101
- path: p,
1102
- resourcePage: mt,
1137
+ H({
1138
+ path: m,
1139
+ resourcePage: gt,
1103
1140
  prepare: async () => (await a.verifyEmail.load(), null),
1104
- render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
1141
+ render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ j(e, {})
1105
1142
  })
1106
1143
  ];
1107
- return (a.hasAcceptInvitation === !0 || a.acceptInvitation != null) && S.push(V({
1108
- path: m,
1109
- resourcePage: ht,
1144
+ return (a.hasAcceptInvitation === !0 || a.acceptInvitation != null) && w.push(H({
1145
+ path: h,
1146
+ resourcePage: _t,
1110
1147
  prepare: async () => (await a.acceptInvitation?.load(), null),
1111
- render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
1112
- })), S.push(x), S;
1148
+ render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ j(e, {})
1149
+ })), w.push(oe), w;
1113
1150
  }
1114
1151
  //#endregion
1115
1152
  //#region src/components/backoffice/routing/backofficeRouteFallback.css.ts
1116
- 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 = () => {
1117
1154
  let { t: e, i18n: t } = Te("backofficeReact", { useSuspense: !1 }), n = "Loading...";
1118
- return t.isInitialized && (n = e("common.loading")), /* @__PURE__ */ j("div", {
1119
- className: Ct,
1155
+ return t.isInitialized && (n = e("common.loading")), /* @__PURE__ */ M("div", {
1156
+ className: wt,
1120
1157
  role: "status",
1121
1158
  "aria-live": "polite",
1122
1159
  "aria-busy": "true",
1123
- children: [/* @__PURE__ */ A(Fe, { size: 28 }), /* @__PURE__ */ A("div", {
1124
- className: wt,
1160
+ children: [/* @__PURE__ */ j(Fe, { size: 28 }), /* @__PURE__ */ j("div", {
1161
+ className: Tt,
1125
1162
  children: n
1126
1163
  })]
1127
1164
  });
1128
- }, Et = "_11exksg1 txvbqbv45 txvbqbptp txvbqbt7y txvbqbdqg txvbqbl7g txvbqb2k txvbqbu7g txvbqbuwp", Dt = "_11exksg2 txvbqbcgg txvbqbuog", Ot = () => /* @__PURE__ */ A("div", {
1129
- className: Et,
1165
+ }, Dt = "_11exksg1 txvbqbv45 txvbqbptp txvbqbt7y txvbqbdqg txvbqbl7g txvbqb2k txvbqbu7g txvbqbuwp", Ot = "_11exksg2 txvbqbcgg txvbqbuog", kt = () => /* @__PURE__ */ j("div", {
1166
+ className: Dt,
1130
1167
  "aria-hidden": "true",
1131
- children: /* @__PURE__ */ A("div", { className: Dt })
1132
- }), 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) => {
1133
1170
  let n = e[t];
1134
1171
  if (n == null) throw Error(`Unknown backoffice entity: ${t}`);
1135
1172
  return n;
1136
- }, Mt = (e, t) => {
1173
+ }, Nt = (e, t) => {
1137
1174
  let n = /* @__PURE__ */ new Map(), r = (t) => e[t] ?? null, i = async (e, t, r) => {
1138
- if ((t?.mode ?? kt) === "cache-first") {
1139
- let t = Y(n.get(e));
1175
+ if ((t?.mode ?? At) === "cache-first") {
1176
+ let t = X(n.get(e));
1140
1177
  if (t != null) return t;
1141
1178
  let r = n.get(e);
1142
1179
  if (r?.status === "loading" && r.promise != null) return r.promise;
@@ -1145,7 +1182,7 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1145
1182
  status: "loaded",
1146
1183
  module: t
1147
1184
  }), t)).catch((t) => {
1148
- let r = jt(t);
1185
+ let r = Mt(t);
1149
1186
  throw n.set(e, {
1150
1187
  status: "error",
1151
1188
  error: r
@@ -1158,74 +1195,74 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1158
1195
  };
1159
1196
  return {
1160
1197
  getManifest: r,
1161
- getLoadedListEntity: (e) => Y(n.get(J(e, W))),
1162
- getLoadedPickerEntity: (e) => Y(n.get(J(e, G))),
1163
- getLoadedDetailLayoutEntity: (e) => Y(n.get(J(e, U))),
1164
- getLoadedDetailPageEntity: (e, t) => Y(n.get(J(e, H, t))),
1165
- 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))),
1166
1203
  loadListEntity: async (n, r) => {
1167
- let a = X(e, n);
1168
- 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.`);
1169
1206
  let o = a.facets.list;
1170
1207
  if (o == null) throw Error(`Backoffice entity ${n} does not expose a list facet.`);
1171
- return i(J(n, W), r, async () => {
1172
- let e = M(a, await o(), t);
1173
- 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.`);
1174
1211
  return e;
1175
1212
  });
1176
1213
  },
1177
1214
  loadPickerEntity: async (n, r) => {
1178
- let a = X(e, n);
1179
- 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.`);
1180
1217
  let o = a.facets.picker;
1181
1218
  if (o == null) throw Error(`Backoffice entity ${n} does not expose a picker facet.`);
1182
- return i(J(n, G), r, async () => {
1183
- let e = M(a, await o(), t);
1184
- 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.`);
1185
1222
  return e;
1186
1223
  });
1187
1224
  },
1188
1225
  loadDetailLayoutEntity: async (n, r) => {
1189
- let a = X(e, n);
1190
- if (!q(a)) throw Error(`Backoffice entity ${n} does not expose a detail-layout facet.`);
1191
- return i(J(n, U), r, async () => {
1192
- let e = M(a, await a.facets.detailLayout(), t);
1193
- 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.`);
1194
1231
  return e;
1195
1232
  });
1196
1233
  },
1197
1234
  loadDetailPageEntity: async (n, r, a) => {
1198
- let o = X(e, n);
1199
- if (!q(o)) throw Error(`Backoffice entity ${n} does not expose a detail-page facet.`);
1200
- return i(J(n, H, r), a, async () => {
1201
- let e = M(o, await o.facets.detailPage(r), t);
1202
- 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.`);
1203
1240
  return e;
1204
1241
  });
1205
1242
  },
1206
1243
  loadToolEntity: async (n, r) => {
1207
- let a = X(e, n);
1208
- if (!At(a)) throw Error(`Backoffice entity ${n} does not expose a tool facet.`);
1209
- return i(J(n, K), r, async () => {
1210
- let e = M(a, await a.facets.tool(), t);
1211
- 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.`);
1212
1249
  return e;
1213
1250
  });
1214
1251
  }
1215
1252
  };
1216
- }, Z = (e) => e.trim() === "" || e === "/" ? "/" : e.startsWith("/") ? e.endsWith("/") ? e.slice(0, -1) : e : `/${e}`, Q = (e, t) => {
1217
- 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);
1218
1255
  return r === "/" || n === r || n.startsWith(`${r}/`) ? n : n === "/" ? r : `${r}${n}`;
1219
- }, 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, {
1220
1257
  ...n,
1221
1258
  routes: {
1222
- list: Q(t, n.routes.list),
1223
- detail: (e) => Q(t, n.routes.detail(e)),
1224
- 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))
1225
1262
  }
1226
- }])), Pt = ({ routes: e, context: t, instrumentations: n }) => {
1227
- let [r, i] = E(null);
1228
- return w(() => {
1263
+ }])), It = ({ routes: e, context: t, instrumentations: n }) => {
1264
+ let [r, i] = O(null);
1265
+ return E(() => {
1229
1266
  let r = Ae(e, {
1230
1267
  context: t,
1231
1268
  instrumentations: n
@@ -1238,23 +1275,23 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1238
1275
  n,
1239
1276
  e
1240
1277
  ]), r;
1241
- }, Ft = ({ routes: e, instrumentations: t }) => {
1242
- let n = s(), r = Pt({
1278
+ }, Lt = ({ routes: e, instrumentations: t }) => {
1279
+ let n = s(), r = It({
1243
1280
  routes: e,
1244
- context: T(() => ({ relayEnvironment: n }), [n]),
1281
+ context: D(() => ({ relayEnvironment: n }), [n]),
1245
1282
  instrumentations: t
1246
1283
  });
1247
- return r == null ? /* @__PURE__ */ A(Tt, {}) : /* @__PURE__ */ A(ke.Provider, {
1284
+ return r == null ? /* @__PURE__ */ j(Et, {}) : /* @__PURE__ */ j(ke.Provider, {
1248
1285
  value: r.context,
1249
- children: /* @__PURE__ */ A(Oe, {
1286
+ children: /* @__PURE__ */ j(Oe, {
1250
1287
  enableTransition: !0,
1251
- fallback: /* @__PURE__ */ A(Tt, {}),
1252
- pending: /* @__PURE__ */ A(Ot, {})
1288
+ fallback: /* @__PURE__ */ j(Et, {}),
1289
+ pending: /* @__PURE__ */ j(kt, {})
1253
1290
  })
1254
1291
  });
1255
- }, It = (e) => {
1256
- 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;
1257
- 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(() => {
1258
1295
  o({
1259
1296
  httpUrl: i.httpUrl ?? i.endpoint,
1260
1297
  wsUrl: i.wsUrl ?? i.wsEndpoint,
@@ -1271,8 +1308,8 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1271
1308
  i.wsEndpoint,
1272
1309
  i.wsUrl
1273
1310
  ]);
1274
- let a = T(() => tt(e.i18n?.resources ?? {}), [e.i18n?.resources]), s = T(() => e.i18n?.instance ?? D(), [e.i18n?.instance]);
1275
- 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(() => {
1276
1313
  let t = e.i18n?.initOptions ?? {}, n = t.defaultNS ?? "translations", r = t.ns ?? [
1277
1314
  "backofficeReact",
1278
1315
  "translations",
@@ -1299,10 +1336,10 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1299
1336
  e.i18n?.fallbackLng,
1300
1337
  e.i18n?.lng,
1301
1338
  e.i18n?.useLanguageDetector
1302
- ]), /* @__PURE__ */ A(ye, { children: /* @__PURE__ */ A(Ce, {
1339
+ ]), /* @__PURE__ */ j(ve, { children: /* @__PURE__ */ j(Ce, {
1303
1340
  i18n: s,
1304
- children: /* @__PURE__ */ A(Ie, { children: /* @__PURE__ */ A(R, { children: /* @__PURE__ */ A(c, {
1305
- value: T(() => ({
1341
+ children: /* @__PURE__ */ j(Ie, { children: /* @__PURE__ */ j(rt, { children: /* @__PURE__ */ j(c, {
1342
+ value: D(() => ({
1306
1343
  basePath: t,
1307
1344
  entities: n,
1308
1345
  entityManifest: n,
@@ -1322,8 +1359,8 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1322
1359
  e.graphql,
1323
1360
  e.sidebar
1324
1361
  ]),
1325
- children: /* @__PURE__ */ A(Ft, {
1326
- routes: T(() => St({
1362
+ children: /* @__PURE__ */ j(Lt, {
1363
+ routes: D(() => Ct({
1327
1364
  basePath: t,
1328
1365
  entityManifest: n,
1329
1366
  entityRegistry: r,
@@ -1344,7 +1381,7 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1344
1381
  })
1345
1382
  }) }) })
1346
1383
  }) });
1347
- }, Lt = (e) => {
1384
+ }, zt = (e) => {
1348
1385
  let t = null, n = null;
1349
1386
  return {
1350
1387
  get: () => t,
@@ -1352,15 +1389,15 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
1352
1389
  n = null;
1353
1390
  }), n)
1354
1391
  };
1355
- }, Rt = (e, t) => {
1392
+ }, Bt = (e, t) => {
1356
1393
  let n = e ?? [], r = t ?? [];
1357
1394
  return n.length === r.length ? n.every((e, t) => e === r[t]) : !1;
1358
1395
  };
1359
1396
  function $(e, t, n) {
1360
1397
  let { filters: r } = e.list;
1361
- 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;
1362
1399
  }
1363
- function zt(e, t, n) {
1400
+ function Vt(e, t, n) {
1364
1401
  let r = $(e, t);
1365
1402
  if (r != null) return r;
1366
1403
  let { [t]: i } = n ?? {};
@@ -1370,25 +1407,25 @@ function zt(e, t, n) {
1370
1407
  }
1371
1408
  return $(e, `${t}Contains`) ?? null;
1372
1409
  }
1373
- function Bt(e, t) {
1410
+ function Ht(e, t) {
1374
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;
1375
1412
  }
1376
1413
  //#endregion
1377
1414
  //#region src/components/backoffice/filters/backofficeFilterAction.css.ts
1378
- 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) => {
1379
- 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;
1380
1417
  if (c == null ? d != null && (f = d.config) : f = c, f == null) return null;
1381
1418
  let p = $(f, i, o);
1382
- if (p == null && o == null && (p = zt(f, i, r)), p == null || !Bt(p, a)) return null;
1383
- 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, {
1384
1421
  width: 14,
1385
1422
  height: 14,
1386
- className: Ht,
1423
+ className: Wt,
1387
1424
  "aria-hidden": "true"
1388
1425
  });
1389
- if (d != null) return /* @__PURE__ */ A("button", {
1426
+ if (d != null) return /* @__PURE__ */ j("button", {
1390
1427
  type: "button",
1391
- className: Vt,
1428
+ className: Ut,
1392
1429
  title: h,
1393
1430
  "aria-label": h,
1394
1431
  onClick: () => {
@@ -1397,51 +1434,51 @@ var Vt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txv
1397
1434
  children: g
1398
1435
  });
1399
1436
  let _ = Ve(f.listDefaults?.where ?? f.list.defaultState?.where ?? null, i, a, o);
1400
- return /* @__PURE__ */ A(De, {
1401
- to: N(f, { where: _ }),
1402
- className: Vt,
1437
+ return /* @__PURE__ */ j(De, {
1438
+ to: P(f, { where: _ }),
1439
+ className: Ut,
1403
1440
  children: g
1404
1441
  });
1405
- }, 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 }) => {
1406
1443
  let i = null;
1407
- e != null && (i = /* @__PURE__ */ A("div", {
1408
- className: Kt,
1444
+ e != null && (i = /* @__PURE__ */ j("div", {
1445
+ className: Jt,
1409
1446
  children: e
1410
1447
  }));
1411
1448
  let a = null;
1412
- t != null && (a = /* @__PURE__ */ A("aside", {
1413
- className: Yt,
1449
+ t != null && (a = /* @__PURE__ */ j("aside", {
1450
+ className: Zt,
1414
1451
  children: t
1415
1452
  }));
1416
1453
  let o = null;
1417
- return (n != null || a != null) && (o = /* @__PURE__ */ A("div", {
1418
- className: Jt,
1454
+ return (n != null || a != null) && (o = /* @__PURE__ */ j("div", {
1455
+ className: Xt,
1419
1456
  children: n
1420
- })), /* @__PURE__ */ j("div", {
1421
- className: Le(Gt, r),
1422
- children: [i, /* @__PURE__ */ j("div", {
1423
- className: qt,
1457
+ })), /* @__PURE__ */ M("div", {
1458
+ className: Le(qt, r),
1459
+ children: [i, /* @__PURE__ */ M("div", {
1460
+ className: Yt,
1424
1461
  children: [o, a]
1425
1462
  })]
1426
1463
  });
1427
- }, Zt = "txvbqbv9z txvbqb3d txvbqbvwr", Qt = ({ count: e, entity: t, where: n }) => {
1428
- 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;
1429
1466
  typeof e == "number" && Number.isFinite(e) && (o = e);
1430
1467
  let s = r[t];
1431
- if (s == null) return /* @__PURE__ */ A("span", { children: o });
1468
+ if (s == null) return /* @__PURE__ */ j("span", { children: o });
1432
1469
  let c = i.getLoadedListEntity(t), u;
1433
- 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 });
1434
1471
  let d = async (e) => {
1435
- let r = N((await i.loadListEntity(t)).config, { where: n }), a = "";
1472
+ let r = P((await i.loadListEntity(t)).config, { where: n }), a = "";
1436
1473
  r.search !== "" && (a = `?${r.search}`), e.push({
1437
1474
  pathname: r.pathname,
1438
1475
  search: a,
1439
1476
  hash: ""
1440
1477
  });
1441
1478
  };
1442
- return /* @__PURE__ */ A(De, {
1479
+ return /* @__PURE__ */ j(De, {
1443
1480
  to: u,
1444
- className: Zt,
1481
+ className: $t,
1445
1482
  onClick: (e) => {
1446
1483
  if (c != null || a == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
1447
1484
  e.preventDefault();
@@ -1466,47 +1503,47 @@ var Vt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txv
1466
1503
  },
1467
1504
  children: o
1468
1505
  });
1469
- }, $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 }) => {
1470
1507
  let i = null;
1471
- 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, {
1472
1509
  items: t,
1473
1510
  activeId: n,
1474
1511
  onChange: () => {},
1475
- className: $t
1476
- })), /* @__PURE__ */ A(Ne, {
1512
+ className: tn
1513
+ })), /* @__PURE__ */ j(Ne, {
1477
1514
  headerNode: e,
1478
1515
  tabsNode: i,
1479
- children: /* @__PURE__ */ A("div", {
1480
- className: en,
1516
+ children: /* @__PURE__ */ j("div", {
1517
+ className: nn,
1481
1518
  children: r
1482
1519
  })
1483
1520
  });
1484
- }, nn = "txvbqb9jg txvbqbcp txvbqbany txvbqbajy", rn = ({ children: e, className: t }) => /* @__PURE__ */ A("span", {
1485
- className: Le(nn, t),
1521
+ }, an = "txvbqb9jg txvbqbcp txvbqbany txvbqbajy", on = ({ children: e, className: t }) => /* @__PURE__ */ j("span", {
1522
+ className: Le(an, t),
1486
1523
  children: e
1487
- }), an = [];
1488
- function on() {
1489
- return Reflect.get(k, "default") ?? k;
1524
+ }), sn = [];
1525
+ function cn() {
1526
+ return Reflect.get(A, "default") ?? A;
1490
1527
  }
1491
- var sn = on();
1492
- function cn(e, n) {
1493
- 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(() => {
1494
1531
  try {
1495
1532
  return m == null ? e.variables : m();
1496
1533
  } catch {
1497
1534
  return null;
1498
1535
  }
1499
- }, [e.variables, m]), g = T(() => h(), [h]), _ = T(() => {
1536
+ }, [e.variables, m]), g = D(() => h(), [h]), _ = D(() => {
1500
1537
  if (g == null) return null;
1501
1538
  try {
1502
1539
  return JSON.stringify(g);
1503
1540
  } catch {
1504
1541
  return null;
1505
1542
  }
1506
- }, [g]), v = !!f, y = v && g != null && s && i == null && !l, b = xe(null);
1507
- return w(() => {
1543
+ }, [g]), v = !!f, y = v && g != null && s && i == null && !l, b = be(null);
1544
+ return E(() => {
1508
1545
  let t = null, n = h();
1509
- 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, {
1510
1547
  subscription: e.subscription,
1511
1548
  variables: n,
1512
1549
  cacheConfig: e.cacheConfig,
@@ -1541,26 +1578,26 @@ function cn(e, n) {
1541
1578
  }
1542
1579
  //#endregion
1543
1580
  //#region src/hooks/useCopyToClipboard.ts
1544
- var ln = "copy-to-clipboard-fallback";
1545
- function un(e) {
1581
+ var dn = "copy-to-clipboard-fallback";
1582
+ function fn(e) {
1546
1583
  if (typeof document > "u") return;
1547
- let t = document.getElementById(ln);
1548
- 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");
1549
1586
  }
1550
- function dn(e = 2e3) {
1551
- let [t, n] = E(null), r = xe(null);
1552
- return w(() => () => {
1587
+ function pn(e = 2e3) {
1588
+ let [t, n] = O(null), r = be(null);
1589
+ return E(() => () => {
1553
1590
  r.current != null && window.clearTimeout(r.current);
1554
1591
  }, []), {
1555
1592
  copiedKey: t,
1556
- copy: C(async (t, i) => {
1593
+ copy: T(async (t, i) => {
1557
1594
  let a = !1, o;
1558
1595
  if (typeof navigator < "u" && (o = navigator.clipboard), o != null) try {
1559
1596
  await o.writeText(t), a = !0;
1560
1597
  } catch {
1561
1598
  a = !1;
1562
1599
  }
1563
- 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(() => {
1564
1601
  n(null), r.current = null;
1565
1602
  }, e)), a;
1566
1603
  }, [e])
@@ -1568,26 +1605,26 @@ function dn(e = 2e3) {
1568
1605
  }
1569
1606
  //#endregion
1570
1607
  //#region src/hooks/useRefetchNeededReload.ts
1571
- function fn(e) {
1572
- let [t, n] = E(null);
1573
- return w(() => {
1608
+ function mn(e) {
1609
+ let [t, n] = O(null);
1610
+ return E(() => {
1574
1611
  n(null);
1575
1612
  }, [e]), {
1576
1613
  reason: t,
1577
- onRefetchNeeded: C((e) => {
1614
+ onRefetchNeeded: T((e) => {
1578
1615
  n(e ?? "UNKNOWN");
1579
1616
  }, []),
1580
- reload: C(() => {
1617
+ reload: T(() => {
1581
1618
  window.location.reload();
1582
1619
  }, []),
1583
- clear: C(() => {
1620
+ clear: T(() => {
1584
1621
  n(null);
1585
1622
  }, [])
1586
1623
  };
1587
1624
  }
1588
1625
  //#endregion
1589
1626
  //#region src/i18n/useReviewStatusLabel.ts
1590
- function pn() {
1627
+ function hn() {
1591
1628
  let { t: e } = u();
1592
1629
  function t(t) {
1593
1630
  if (t == null) return e("review.status.unknown");
@@ -1602,7 +1639,7 @@ function pn() {
1602
1639
  }
1603
1640
  //#endregion
1604
1641
  //#region src/modules/base64.ts
1605
- function mn(e) {
1642
+ function gn(e) {
1606
1643
  if (typeof e != "string") throw TypeError("encodeUtf8ToBase64 expects a string input.");
1607
1644
  if (typeof globalThis.btoa == "function") {
1608
1645
  let t = encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, (e, t) => String.fromCharCode(Number.parseInt(t, 16)));
@@ -1610,7 +1647,7 @@ function mn(e) {
1610
1647
  }
1611
1648
  throw Error("No base64 encoder is available in this environment.");
1612
1649
  }
1613
- function hn(e) {
1650
+ function _n(e) {
1614
1651
  if (typeof e != "string") throw TypeError("decodeBase64ToUtf8 expects a string input.");
1615
1652
  if (typeof globalThis.atob == "function") {
1616
1653
  let t = globalThis.atob(e), n = Array.from(t, (e) => `%${e.charCodeAt(0).toString(16).padStart(2, "0")}`).join("");
@@ -1620,33 +1657,33 @@ function hn(e) {
1620
1657
  }
1621
1658
  //#endregion
1622
1659
  //#region src/modules/formatFileSize.ts
1623
- var gn = [
1660
+ var vn = [
1624
1661
  "B",
1625
1662
  "KB",
1626
1663
  "MB",
1627
1664
  "GB",
1628
1665
  "TB"
1629
- ], _n = 1024, vn = (e, t) => {
1666
+ ], yn = 1024, bn = (e, t) => {
1630
1667
  if (t === "B") return Math.round(e).toString();
1631
1668
  let n = 1;
1632
1669
  return e >= 10 && (n = 0), e.toFixed(n);
1633
1670
  };
1634
- function yn(e) {
1671
+ function xn(e) {
1635
1672
  let t = e;
1636
1673
  Number.isFinite(e) || (t = 0);
1637
1674
  let n = t < 0, r = Math.abs(t), i = 0;
1638
- for (; r >= _n && i < gn.length - 1;) r /= _n, i += 1;
1639
- 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;
1640
1677
  return n && (o = -r), {
1641
1678
  value: o,
1642
1679
  unit: a,
1643
- displayValue: vn(o, a)
1680
+ displayValue: bn(o, a)
1644
1681
  };
1645
1682
  }
1646
1683
  //#endregion
1647
1684
  //#region src/relay/createInlineReader.ts
1648
- 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;
1649
1686
  //#endregion
1650
- 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 };
1651
1688
 
1652
1689
  //# sourceMappingURL=backoffice-react.js.map