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