@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.
- package/lib/esm/{BackofficeAcceptInvitationPage-CEtApVwL.js → BackofficeAcceptInvitationPage-BfRsORii.js} +3 -3
- package/lib/esm/{BackofficeAcceptInvitationPage-CEtApVwL.js.map → BackofficeAcceptInvitationPage-BfRsORii.js.map} +1 -1
- package/lib/esm/{BackofficeDashboardPage-r8vK_JA6.js → BackofficeDashboardPage-COKOYq4D.js} +5 -4
- package/lib/esm/{BackofficeDashboardPage-r8vK_JA6.js.map → BackofficeDashboardPage-COKOYq4D.js.map} +1 -1
- package/lib/esm/{BackofficeEntityActionFormDialog-BgRTJ_JS.js → BackofficeEntityActionFormDialog-BgMuhyU8.js} +2 -2
- package/lib/esm/{BackofficeEntityActionFormDialog-BgRTJ_JS.js.map → BackofficeEntityActionFormDialog-BgMuhyU8.js.map} +1 -1
- package/lib/esm/{BackofficeEntityDetailLayoutContext-C_tBqkVq.js → BackofficeEntityDetailLayoutContext-DeuH5PCW.js} +1 -1
- package/lib/esm/{BackofficeEntityDetailLayoutContext-C_tBqkVq.js.map → BackofficeEntityDetailLayoutContext-DeuH5PCW.js.map} +1 -1
- package/lib/esm/{BackofficeEntityDetailLayoutPage-DXjRqvcZ.js → BackofficeEntityDetailLayoutPage-Duc_DcIV.js} +2 -2
- package/lib/esm/{BackofficeEntityDetailLayoutPage-DXjRqvcZ.js.map → BackofficeEntityDetailLayoutPage-Duc_DcIV.js.map} +1 -1
- package/lib/esm/{BackofficeEntityDetailPage-CwzKp_Yw.js → BackofficeEntityDetailPage-ByioPO5K.js} +7 -6
- package/lib/esm/{BackofficeEntityDetailPage-CwzKp_Yw.js.map → BackofficeEntityDetailPage-ByioPO5K.js.map} +1 -1
- package/lib/esm/{BackofficeEntityDetailUnknownPageRedirect-DRWTeox-.js → BackofficeEntityDetailUnknownPageRedirect-xupMeril.js} +2 -2
- package/lib/esm/{BackofficeEntityDetailUnknownPageRedirect-DRWTeox-.js.map → BackofficeEntityDetailUnknownPageRedirect-xupMeril.js.map} +1 -1
- package/lib/esm/{BackofficeEntityListPage-DVT3rrfa.js → BackofficeEntityListPage-dyE4er_s.js} +5 -4
- package/lib/esm/{BackofficeEntityListPage-DVT3rrfa.js.map → BackofficeEntityListPage-dyE4er_s.js.map} +1 -1
- package/lib/esm/BackofficeHubPage-D2k0ZO6c.js +136 -0
- package/lib/esm/BackofficeHubPage-D2k0ZO6c.js.map +1 -0
- package/lib/esm/BackofficeLayoutPage-BiSUwAi9.js +625 -0
- package/lib/esm/BackofficeLayoutPage-BiSUwAi9.js.map +1 -0
- package/lib/esm/{BackofficeLoginPage-Cc3kcOQV.js → BackofficeLoginPage-BMPhO1cr.js} +4 -4
- package/lib/esm/{BackofficeLoginPage-Cc3kcOQV.js.map → BackofficeLoginPage-BMPhO1cr.js.map} +1 -1
- package/lib/esm/{BackofficePasswordResetCompletePage-CF_0t3Nq.js → BackofficePasswordResetCompletePage-OApMUiOi.js} +3 -3
- package/lib/esm/{BackofficePasswordResetCompletePage-CF_0t3Nq.js.map → BackofficePasswordResetCompletePage-OApMUiOi.js.map} +1 -1
- package/lib/esm/{BackofficePasswordResetRequestPage-BJOrQXcy.js → BackofficePasswordResetRequestPage-DPDImb37.js} +2 -2
- package/lib/esm/{BackofficePasswordResetRequestPage-BJOrQXcy.js.map → BackofficePasswordResetRequestPage-DPDImb37.js.map} +1 -1
- package/lib/esm/BackofficePermissionsContext-CmWwudBU.js +11 -0
- package/lib/esm/BackofficePermissionsContext-CmWwudBU.js.map +1 -0
- package/lib/esm/BackofficeRightPageLayout-BZb7LhT-.js +53 -0
- package/lib/esm/BackofficeRightPageLayout-BZb7LhT-.js.map +1 -0
- package/lib/esm/{BackofficeTopbarPortalContext-iD7dm4_h.js → BackofficeTopbarPortalContext-CphoSrZD.js} +1 -1
- package/lib/esm/{BackofficeTopbarPortalContext-iD7dm4_h.js.map → BackofficeTopbarPortalContext-CphoSrZD.js.map} +1 -1
- package/lib/esm/{BackofficeVerifyEmailPage-C81LlsNM.js → BackofficeVerifyEmailPage-DHuSOxDf.js} +3 -3
- package/lib/esm/{BackofficeVerifyEmailPage-C81LlsNM.js.map → BackofficeVerifyEmailPage-DHuSOxDf.js.map} +1 -1
- package/lib/esm/{LazyBackofficeEntityActionFormDialog-L8xwaGqH.js → LazyBackofficeEntityActionFormDialog-DwPGe2Qv.js} +2 -2
- package/lib/esm/{LazyBackofficeEntityActionFormDialog-L8xwaGqH.js.map → LazyBackofficeEntityActionFormDialog-DwPGe2Qv.js.map} +1 -1
- package/lib/esm/backoffice-react.js +287 -250
- package/lib/esm/backoffice-react.js.map +1 -1
- package/lib/esm/{backofficeAuthPaths-BiJvoI5Q.js → backofficeAuthPaths-2KMmkBLv.js} +1 -1
- package/lib/esm/{backofficeAuthPaths-BiJvoI5Q.js.map → backofficeAuthPaths-2KMmkBLv.js.map} +1 -1
- package/lib/esm/{buildBreadcrumbs-CqF9Nh6x.js → buildBreadcrumbs-C9cyiXb7.js} +8 -4
- package/lib/esm/buildBreadcrumbs-C9cyiXb7.js.map +1 -0
- package/lib/esm/buildDataTableColumns-D95yRO2W.js +65 -0
- package/lib/esm/buildDataTableColumns-D95yRO2W.js.map +1 -0
- package/lib/esm/sidebarUtils-BZETlHea.js +74 -0
- package/lib/esm/sidebarUtils-BZETlHea.js.map +1 -0
- package/lib/esm/style.css +1 -1
- package/lib/esm/{toastViewAction-BGTS7vqm.js → toastViewAction-DJkv_4p9.js} +1 -1
- package/lib/esm/{toastViewAction-BGTS7vqm.js.map → toastViewAction-DJkv_4p9.js.map} +1 -1
- package/lib/esm/{useBackofficeAuth-ers1FUGe.js → useBackofficeAuth-DVAXNAjP.js} +1 -1
- package/lib/esm/{useBackofficeAuth-ers1FUGe.js.map → useBackofficeAuth-DVAXNAjP.js.map} +1 -1
- package/lib/esm/{useBackofficeLazyValue-Bh_13h8A.js → useBackofficeLazyValue-CoIAK-5N.js} +1 -1
- package/lib/esm/{useBackofficeLazyValue-Bh_13h8A.js.map → useBackofficeLazyValue-CoIAK-5N.js.map} +1 -1
- package/lib/types/components/backoffice/layout/BackofficePermissionsContext.d.ts +8 -0
- package/lib/types/components/backoffice/layout/BackofficePermissionsContext.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts +4 -0
- package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/sidebarUtils.d.ts +11 -3
- package/lib/types/components/backoffice/layout/sidebarUtils.d.ts.map +1 -1
- package/lib/types/i18n/resources.d.ts +28 -0
- package/lib/types/i18n/resources.d.ts.map +1 -1
- package/lib/types/pages/BackofficeHubPage.d.ts +8 -0
- package/lib/types/pages/BackofficeHubPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeLayoutPage.d.ts.map +1 -1
- package/lib/types/pages/backofficeHubPage.css.d.ts +15 -0
- package/lib/types/pages/backofficeHubPage.css.d.ts.map +1 -0
- package/lib/types/provider/types.d.ts +22 -5
- package/lib/types/provider/types.d.ts.map +1 -1
- package/lib/types/router/createBackofficeRoutes.d.ts +6 -1
- package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
- package/package.json +5 -5
- package/lib/esm/BackofficeLayoutPage-DQ0sVv24.js +0 -609
- package/lib/esm/BackofficeLayoutPage-DQ0sVv24.js.map +0 -1
- package/lib/esm/BackofficeRightPageLayout-hexJmpam.js +0 -113
- package/lib/esm/BackofficeRightPageLayout-hexJmpam.js.map +0 -1
- package/lib/esm/buildBreadcrumbs-CqF9Nh6x.js.map +0 -1
- package/lib/esm/sidebarUtils-DVkLmFbS.js +0 -52
- 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 {
|
|
5
|
-
import { a as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { i as
|
|
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
|
|
15
|
-
import { t as
|
|
16
|
-
import { i as
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
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
|
|
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
|
|
26
|
-
import { jsx as
|
|
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
|
|
29
|
-
import { buildBackofficeFallbackListHref as Be, buildBackofficeListLink as
|
|
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
|
|
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
|
|
55
|
-
if (t == null) return
|
|
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(
|
|
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
|
|
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 =
|
|
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) =>
|
|
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
|
-
},
|
|
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 (
|
|
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,
|
|
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 =
|
|
863
|
+
let i = R(n[r]), a = R(e[r]);
|
|
839
864
|
t[r] = {
|
|
840
865
|
...i,
|
|
841
866
|
...a,
|
|
842
|
-
backofficeReact: Qe(
|
|
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 } =
|
|
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:
|
|
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
|
-
},
|
|
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
|
-
},
|
|
861
|
-
let n =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
887
|
-
function
|
|
888
|
-
let { basePath: t, entityManifest: n, entityRegistry: r, sidebar: i, auth: a, dashboard: o } = e, s =
|
|
889
|
-
|
|
890
|
-
|
|
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
|
|
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:
|
|
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
|
-
},
|
|
923
|
+
}, te = H({
|
|
899
924
|
path: "",
|
|
900
|
-
resourcePage:
|
|
925
|
+
resourcePage: dt,
|
|
901
926
|
prepare: async () => (o == null || await o.load(), null),
|
|
902
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
903
|
-
}),
|
|
904
|
-
let t =
|
|
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 =
|
|
942
|
+
let t = H({
|
|
907
943
|
path: "",
|
|
908
|
-
resourcePage:
|
|
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 =
|
|
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__ */
|
|
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
|
-
|
|
971
|
+
x.set(t, e.id), i.push(t);
|
|
936
972
|
}
|
|
937
|
-
let a =
|
|
973
|
+
let a = H({
|
|
938
974
|
path: ":id",
|
|
939
|
-
resourcePage:
|
|
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__ */
|
|
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
|
-
|
|
997
|
+
H({
|
|
962
998
|
path: "",
|
|
963
|
-
resourcePage:
|
|
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) =>
|
|
1010
|
+
...(e.detailPages ?? []).map((t) => H({
|
|
975
1011
|
path: t.pathSegment,
|
|
976
|
-
resourcePage:
|
|
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__ */
|
|
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
|
-
|
|
1037
|
+
H({
|
|
1002
1038
|
path: ":pagePath",
|
|
1003
|
-
resourcePage:
|
|
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__ */
|
|
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
|
|
1061
|
+
return x.set(a, e.id), i.push(a), H({
|
|
1026
1062
|
path: n,
|
|
1027
1063
|
children: i,
|
|
1028
|
-
resourcePage:
|
|
1064
|
+
resourcePage: at
|
|
1029
1065
|
});
|
|
1030
|
-
}),
|
|
1031
|
-
let n =
|
|
1032
|
-
path:
|
|
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__ */
|
|
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
|
|
1053
|
-
}),
|
|
1088
|
+
return x.set(n, t.id), n;
|
|
1089
|
+
}), oe = H({
|
|
1054
1090
|
path: s,
|
|
1055
|
-
resourcePage:
|
|
1056
|
-
prepare:
|
|
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 =
|
|
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 =
|
|
1097
|
+
l = it(u, o.authStatusQuery);
|
|
1062
1098
|
let { isLoggedIn: e } = l;
|
|
1063
|
-
if (!e) throw new Ee(
|
|
1099
|
+
if (!e) throw new Ee(g);
|
|
1064
1100
|
}
|
|
1065
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
1075
|
-
...
|
|
1076
|
-
...
|
|
1110
|
+
te,
|
|
1111
|
+
...re,
|
|
1112
|
+
...ie,
|
|
1113
|
+
...ae
|
|
1077
1114
|
]
|
|
1078
|
-
}),
|
|
1079
|
-
|
|
1115
|
+
}), w = [
|
|
1116
|
+
H({
|
|
1080
1117
|
path: c,
|
|
1081
|
-
resourcePage:
|
|
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__ */
|
|
1123
|
+
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */ j(t, { prepared: e })
|
|
1087
1124
|
}),
|
|
1088
|
-
|
|
1125
|
+
H({
|
|
1089
1126
|
path: l,
|
|
1090
|
-
resourcePage:
|
|
1127
|
+
resourcePage: mt,
|
|
1091
1128
|
prepare: async () => (await a.passwordResetRequest.load(), null),
|
|
1092
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
1129
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ j(e, {})
|
|
1093
1130
|
}),
|
|
1094
|
-
|
|
1131
|
+
H({
|
|
1095
1132
|
path: u,
|
|
1096
|
-
resourcePage:
|
|
1133
|
+
resourcePage: ht,
|
|
1097
1134
|
prepare: async () => (await a.passwordResetComplete.load(), null),
|
|
1098
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
1135
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ j(e, {})
|
|
1099
1136
|
}),
|
|
1100
|
-
|
|
1101
|
-
path:
|
|
1102
|
-
resourcePage:
|
|
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__ */
|
|
1141
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ j(e, {})
|
|
1105
1142
|
})
|
|
1106
1143
|
];
|
|
1107
|
-
return (a.hasAcceptInvitation === !0 || a.acceptInvitation != null) &&
|
|
1108
|
-
path:
|
|
1109
|
-
resourcePage:
|
|
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__ */
|
|
1112
|
-
})),
|
|
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
|
|
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__ */
|
|
1119
|
-
className:
|
|
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__ */
|
|
1124
|
-
className:
|
|
1160
|
+
children: [/* @__PURE__ */ j(Fe, { size: 28 }), /* @__PURE__ */ j("div", {
|
|
1161
|
+
className: Tt,
|
|
1125
1162
|
children: n
|
|
1126
1163
|
})]
|
|
1127
1164
|
});
|
|
1128
|
-
},
|
|
1129
|
-
className:
|
|
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__ */
|
|
1132
|
-
}),
|
|
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
|
-
},
|
|
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 ??
|
|
1139
|
-
let t =
|
|
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 =
|
|
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) =>
|
|
1162
|
-
getLoadedPickerEntity: (e) =>
|
|
1163
|
-
getLoadedDetailLayoutEntity: (e) =>
|
|
1164
|
-
getLoadedDetailPageEntity: (e, t) =>
|
|
1165
|
-
getLoadedToolEntity: (e) =>
|
|
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 =
|
|
1168
|
-
if (!
|
|
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(
|
|
1172
|
-
let e =
|
|
1173
|
-
if (e.kind !==
|
|
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 =
|
|
1179
|
-
if (!
|
|
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(
|
|
1183
|
-
let e =
|
|
1184
|
-
if (e.kind !==
|
|
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 =
|
|
1190
|
-
if (!
|
|
1191
|
-
return i(
|
|
1192
|
-
let e =
|
|
1193
|
-
if (e.kind !==
|
|
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 =
|
|
1199
|
-
if (!
|
|
1200
|
-
return i(
|
|
1201
|
-
let e =
|
|
1202
|
-
if (e.kind !==
|
|
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 =
|
|
1208
|
-
if (!
|
|
1209
|
-
return i(
|
|
1210
|
-
let e =
|
|
1211
|
-
if (e.kind !==
|
|
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
|
-
},
|
|
1217
|
-
let n =
|
|
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
|
-
},
|
|
1256
|
+
}, Ft = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => [e, {
|
|
1220
1257
|
...n,
|
|
1221
1258
|
routes: {
|
|
1222
|
-
list:
|
|
1223
|
-
detail: (e) =>
|
|
1224
|
-
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
|
-
}])),
|
|
1227
|
-
let [r, i] =
|
|
1228
|
-
return
|
|
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
|
-
},
|
|
1242
|
-
let n = s(), r =
|
|
1278
|
+
}, Lt = ({ routes: e, instrumentations: t }) => {
|
|
1279
|
+
let n = s(), r = It({
|
|
1243
1280
|
routes: e,
|
|
1244
|
-
context:
|
|
1281
|
+
context: D(() => ({ relayEnvironment: n }), [n]),
|
|
1245
1282
|
instrumentations: t
|
|
1246
1283
|
});
|
|
1247
|
-
return r == null ? /* @__PURE__ */
|
|
1284
|
+
return r == null ? /* @__PURE__ */ j(Et, {}) : /* @__PURE__ */ j(ke.Provider, {
|
|
1248
1285
|
value: r.context,
|
|
1249
|
-
children: /* @__PURE__ */
|
|
1286
|
+
children: /* @__PURE__ */ j(Oe, {
|
|
1250
1287
|
enableTransition: !0,
|
|
1251
|
-
fallback: /* @__PURE__ */
|
|
1252
|
-
pending: /* @__PURE__ */
|
|
1288
|
+
fallback: /* @__PURE__ */ j(Et, {}),
|
|
1289
|
+
pending: /* @__PURE__ */ j(kt, {})
|
|
1253
1290
|
})
|
|
1254
1291
|
});
|
|
1255
|
-
},
|
|
1256
|
-
let t =
|
|
1257
|
-
|
|
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 =
|
|
1275
|
-
return
|
|
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__ */
|
|
1339
|
+
]), /* @__PURE__ */ j(ve, { children: /* @__PURE__ */ j(Ce, {
|
|
1303
1340
|
i18n: s,
|
|
1304
|
-
children: /* @__PURE__ */
|
|
1305
|
-
value:
|
|
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__ */
|
|
1326
|
-
routes:
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 &&
|
|
1398
|
+
return r.find((e) => String(e.whereKey ?? e.id) === t && Bt(e.path, n)) ?? null;
|
|
1362
1399
|
}
|
|
1363
|
-
function
|
|
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
|
|
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
|
|
1379
|
-
let { t } = Te(), { t: n } = u(), { filterColumnAliases: r } = l(), { whereKey: i, value: a, path: o, label: s, listConfig: c } = e, d =
|
|
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 =
|
|
1383
|
-
let m =
|
|
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:
|
|
1423
|
+
className: Wt,
|
|
1387
1424
|
"aria-hidden": "true"
|
|
1388
1425
|
});
|
|
1389
|
-
if (d != null) return /* @__PURE__ */
|
|
1426
|
+
if (d != null) return /* @__PURE__ */ j("button", {
|
|
1390
1427
|
type: "button",
|
|
1391
|
-
className:
|
|
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__ */
|
|
1401
|
-
to:
|
|
1402
|
-
className:
|
|
1437
|
+
return /* @__PURE__ */ j(De, {
|
|
1438
|
+
to: P(f, { where: _ }),
|
|
1439
|
+
className: Ut,
|
|
1403
1440
|
children: g
|
|
1404
1441
|
});
|
|
1405
|
-
},
|
|
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__ */
|
|
1408
|
-
className:
|
|
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__ */
|
|
1413
|
-
className:
|
|
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__ */
|
|
1418
|
-
className:
|
|
1454
|
+
return (n != null || a != null) && (o = /* @__PURE__ */ j("div", {
|
|
1455
|
+
className: Xt,
|
|
1419
1456
|
children: n
|
|
1420
|
-
})), /* @__PURE__ */
|
|
1421
|
-
className: Le(
|
|
1422
|
-
children: [i, /* @__PURE__ */
|
|
1423
|
-
className:
|
|
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
|
-
},
|
|
1428
|
-
let { entities: r, entityRegistry: i } = l(), a =
|
|
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__ */
|
|
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) :
|
|
1470
|
+
u = c == null ? Be(s.routes.list, n) : P(c.config, { where: n });
|
|
1434
1471
|
let d = async (e) => {
|
|
1435
|
-
let r =
|
|
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__ */
|
|
1479
|
+
return /* @__PURE__ */ j(De, {
|
|
1443
1480
|
to: u,
|
|
1444
|
-
className:
|
|
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
|
-
},
|
|
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__ */
|
|
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:
|
|
1476
|
-
})), /* @__PURE__ */
|
|
1512
|
+
className: tn
|
|
1513
|
+
})), /* @__PURE__ */ j(Ne, {
|
|
1477
1514
|
headerNode: e,
|
|
1478
1515
|
tabsNode: i,
|
|
1479
|
-
children: /* @__PURE__ */
|
|
1480
|
-
className:
|
|
1516
|
+
children: /* @__PURE__ */ j("div", {
|
|
1517
|
+
className: nn,
|
|
1481
1518
|
children: r
|
|
1482
1519
|
})
|
|
1483
1520
|
});
|
|
1484
|
-
},
|
|
1485
|
-
className: Le(
|
|
1521
|
+
}, an = "txvbqb9jg txvbqbcp txvbqbany txvbqbajy", on = ({ children: e, className: t }) => /* @__PURE__ */ j("span", {
|
|
1522
|
+
className: Le(an, t),
|
|
1486
1523
|
children: e
|
|
1487
|
-
}),
|
|
1488
|
-
function
|
|
1489
|
-
return Reflect.get(
|
|
1524
|
+
}), sn = [];
|
|
1525
|
+
function cn() {
|
|
1526
|
+
return Reflect.get(A, "default") ?? A;
|
|
1490
1527
|
}
|
|
1491
|
-
var
|
|
1492
|
-
function
|
|
1493
|
-
let r =
|
|
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 =
|
|
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 =
|
|
1507
|
-
return
|
|
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 =
|
|
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
|
|
1545
|
-
function
|
|
1581
|
+
var dn = "copy-to-clipboard-fallback";
|
|
1582
|
+
function fn(e) {
|
|
1546
1583
|
if (typeof document > "u") return;
|
|
1547
|
-
let t = document.getElementById(
|
|
1548
|
-
t ?? (t = document.createElement("textarea"), t.id =
|
|
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
|
|
1551
|
-
let [t, n] =
|
|
1552
|
-
return
|
|
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:
|
|
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 ||= (
|
|
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
|
|
1572
|
-
let [t, n] =
|
|
1573
|
-
return
|
|
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:
|
|
1614
|
+
onRefetchNeeded: T((e) => {
|
|
1578
1615
|
n(e ?? "UNKNOWN");
|
|
1579
1616
|
}, []),
|
|
1580
|
-
reload:
|
|
1617
|
+
reload: T(() => {
|
|
1581
1618
|
window.location.reload();
|
|
1582
1619
|
}, []),
|
|
1583
|
-
clear:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1660
|
+
var vn = [
|
|
1624
1661
|
"B",
|
|
1625
1662
|
"KB",
|
|
1626
1663
|
"MB",
|
|
1627
1664
|
"GB",
|
|
1628
1665
|
"TB"
|
|
1629
|
-
],
|
|
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
|
|
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 >=
|
|
1639
|
-
let a =
|
|
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:
|
|
1680
|
+
displayValue: bn(o, a)
|
|
1644
1681
|
};
|
|
1645
1682
|
}
|
|
1646
1683
|
//#endregion
|
|
1647
1684
|
//#region src/relay/createInlineReader.ts
|
|
1648
|
-
var { readInlineData:
|
|
1685
|
+
var { readInlineData: Sn } = A, Cn = (e) => (t) => Sn(e, t), wn = (e) => e;
|
|
1649
1686
|
//#endregion
|
|
1650
|
-
export {
|
|
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
|