@plumile/backoffice-react 0.1.101 → 0.1.103

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