@plumile/backoffice-react 0.1.84 → 0.1.87
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/README.md +113 -77
- package/lib/esm/{AcceptInvitationScreen-5-0EtE15.js → AcceptInvitationScreen-dnOvRx4Z.js} +2 -2
- package/lib/esm/{AcceptInvitationScreen-5-0EtE15.js.map → AcceptInvitationScreen-dnOvRx4Z.js.map} +1 -1
- package/lib/esm/{BackofficeAcceptInvitationPage-FPbn31YK.js → BackofficeAcceptInvitationPage-CGht2ka0.js} +3 -9
- package/lib/esm/{BackofficeAcceptInvitationPage-FPbn31YK.js.map → BackofficeAcceptInvitationPage-CGht2ka0.js.map} +1 -1
- package/lib/esm/{BackofficeDashboardPage-C7lIVeA1.js → BackofficeDashboardPage-h1OWb_rV.js} +31 -32
- package/lib/esm/BackofficeDashboardPage-h1OWb_rV.js.map +1 -0
- package/lib/esm/BackofficeEntityDetailPage-CIyGKwVP.js +1044 -0
- package/lib/esm/BackofficeEntityDetailPage-CIyGKwVP.js.map +1 -0
- package/lib/esm/BackofficeEntityListPage-DmZozSNk.js +402 -0
- package/lib/esm/BackofficeEntityListPage-DmZozSNk.js.map +1 -0
- package/lib/esm/{BackofficeLayoutPage-Da4y2B0i.js → BackofficeLayoutPage-DtFDn_nU.js} +2 -2
- package/lib/esm/BackofficeLayoutPage-DtFDn_nU.js.map +1 -0
- package/lib/esm/{BackofficeLoginPage-Dc61SyMV.js → BackofficeLoginPage-BvOPqbKO.js} +3 -8
- package/lib/esm/{BackofficeLoginPage-Dc61SyMV.js.map → BackofficeLoginPage-BvOPqbKO.js.map} +1 -1
- package/lib/esm/{BackofficePasswordResetCompletePage-CvoHqhBS.js → BackofficePasswordResetCompletePage-ZLhghfhC.js} +1 -2
- package/lib/esm/{BackofficePasswordResetCompletePage-CvoHqhBS.js.map → BackofficePasswordResetCompletePage-ZLhghfhC.js.map} +1 -1
- package/lib/esm/{BackofficePasswordResetRequestPage-DDNcCf3_.js → BackofficePasswordResetRequestPage-BLNHQD79.js} +1 -3
- package/lib/esm/{BackofficePasswordResetRequestPage-DDNcCf3_.js.map → BackofficePasswordResetRequestPage-BLNHQD79.js.map} +1 -1
- package/lib/esm/{BackofficeRightPageLayout-F8ipegrl.js → BackofficeRightPageLayout-DZQvIHnj.js} +2 -2
- package/lib/esm/{BackofficeRightPageLayout-F8ipegrl.js.map → BackofficeRightPageLayout-DZQvIHnj.js.map} +1 -1
- package/lib/esm/EntityIdPickerDialog-DbTnDU4v.js.map +1 -1
- package/lib/esm/backoffice-react.js +164 -167
- package/lib/esm/backoffice-react.js.map +1 -1
- package/lib/esm/{environment-BJeJTbIN.js → environment-BXoBq_6e.js} +72 -73
- package/lib/esm/environment-BXoBq_6e.js.map +1 -0
- package/lib/esm/{synchronizeAuthStatusQuery-Dr6AEFhi.js → synchronizeAuthStatusQuery-By_lNCnP.js} +2 -2
- package/lib/esm/{synchronizeAuthStatusQuery-Dr6AEFhi.js.map → synchronizeAuthStatusQuery-By_lNCnP.js.map} +1 -1
- package/lib/esm/{useAuth-CjdysxLB.js → useAuth-OVPPa9bO.js} +2 -2
- package/lib/esm/useAuth-OVPPa9bO.js.map +1 -0
- package/lib/esm/{useBackofficeAuth-BshabGXc.js → useBackofficeAuth-BvEoEqnB.js} +2 -2
- package/lib/esm/{useBackofficeAuth-BshabGXc.js.map → useBackofficeAuth-BvEoEqnB.js.map} +1 -1
- package/lib/types/hooks/useBackofficeSidebarPins.d.ts +4 -0
- package/lib/types/hooks/useBackofficeSidebarPins.d.ts.map +1 -1
- package/lib/types/i18n/createI18nInstance.d.ts +8 -0
- package/lib/types/i18n/createI18nInstance.d.ts.map +1 -1
- package/lib/types/i18n/mergeResourceLanguages.d.ts +4 -0
- package/lib/types/i18n/mergeResourceLanguages.d.ts.map +1 -1
- package/lib/types/modules/base64.d.ts.map +1 -1
- package/lib/types/pages/BackofficeDashboardPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeDashboardPage.helpers.d.ts +9 -0
- package/lib/types/pages/BackofficeDashboardPage.helpers.d.ts.map +1 -0
- package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailPage.helpers.d.ts +14 -0
- package/lib/types/pages/BackofficeEntityDetailPage.helpers.d.ts.map +1 -0
- package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts +150 -0
- package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts.map +1 -0
- package/lib/types/pages/BackofficeEntityListPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts +29 -0
- package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts.map +1 -0
- package/lib/types/provider/entityRegistry.d.ts +5 -0
- package/lib/types/provider/entityRegistry.d.ts.map +1 -1
- package/lib/types/provider/useBackofficeEntityLoader.d.ts +5 -0
- package/lib/types/provider/useBackofficeEntityLoader.d.ts.map +1 -1
- package/lib/types/relay/envHelpers.d.ts +6 -0
- package/lib/types/relay/envHelpers.d.ts.map +1 -1
- package/lib/types/relay/environment.d.ts +26 -0
- package/lib/types/relay/environment.d.ts.map +1 -1
- package/lib/types/router/createBackofficeRoutes.d.ts +12 -1
- package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
- package/package.json +16 -16
- package/lib/esm/BackofficeDashboardPage-C7lIVeA1.js.map +0 -1
- package/lib/esm/BackofficeEntityDetailPage-BljQmWsw.js +0 -991
- package/lib/esm/BackofficeEntityDetailPage-BljQmWsw.js.map +0 -1
- package/lib/esm/BackofficeEntityListPage-BneDsGo-.js +0 -385
- package/lib/esm/BackofficeEntityListPage-BneDsGo-.js.map +0 -1
- package/lib/esm/BackofficeLayoutPage-Da4y2B0i.js.map +0 -1
- package/lib/esm/environment-BJeJTbIN.js.map +0 -1
- package/lib/esm/useAuth-CjdysxLB.js.map +0 -1
|
@@ -1,49 +1,47 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./environment-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./environment-BXoBq_6e.js";
|
|
2
2
|
import { t as i } from "./useRelayEnvironment-vQ86aW-n.js";
|
|
3
3
|
import { n as a, t as o } from "./BackofficeConfigContext-R0t1owTI.js";
|
|
4
4
|
import { i as s, t as c } from "./sidebarUtils-CuwJ_3mD.js";
|
|
5
5
|
import { f as l } from "./loginPage.css-CBJ1Ozm5.js";
|
|
6
|
-
import { a as u, i as d, n as f, r as p, t as m } from "./useAuth-
|
|
7
|
-
import { n as h, t as g } from "./synchronizeAuthStatusQuery-
|
|
8
|
-
import "./
|
|
9
|
-
import { t as _ } from "./AcceptInvitationScreen-5-0EtE15.js";
|
|
6
|
+
import { a as u, i as d, n as f, r as p, t as m } from "./useAuth-OVPPa9bO.js";
|
|
7
|
+
import { n as h, t as g } from "./synchronizeAuthStatusQuery-By_lNCnP.js";
|
|
8
|
+
import { t as _ } from "./AcceptInvitationScreen-dnOvRx4Z.js";
|
|
10
9
|
import { t as v } from "./PasswordResetCompleteScreen-B0P_tZg2.js";
|
|
11
10
|
import { t as y } from "./PasswordResetRequestScreen-p9s0dblR.js";
|
|
12
11
|
import { t as ee } from "./VerifyEmailScreen--9lxOGlW.js";
|
|
13
12
|
import { n as te, t as b } from "./useBackofficeReactTranslation-WfXU8kCf.js";
|
|
14
|
-
import { i as
|
|
15
|
-
import { i as
|
|
16
|
-
import { a as
|
|
17
|
-
import { t as
|
|
18
|
-
import { i as
|
|
19
|
-
import { t as
|
|
20
|
-
import { n as
|
|
21
|
-
import "
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { setWhereValue as Re } from "@plumile/backoffice-core/filters/where.js";
|
|
13
|
+
import { i as x, n as ne, t as S } from "./EntityFilterValue-B5ZGHO_u.js";
|
|
14
|
+
import { i as re, t as ie } from "./EntityIdPickerDialog-DbTnDU4v.js";
|
|
15
|
+
import { a as ae, i as oe, r as se, t as ce } from "./BackofficeDetailPayload-iVx66o_6.js";
|
|
16
|
+
import { t as le } from "./useBackofficeListUrlState-D4fx5O7u.js";
|
|
17
|
+
import { i as ue, n as de, r as fe, t as pe } from "./mutationResult-CcQMY13J.js";
|
|
18
|
+
import { t as me } from "./pageResolution-hAQA5C6S.js";
|
|
19
|
+
import { n as he, t as ge } from "./BackofficeRightPageLayout-DZQvIHnj.js";
|
|
20
|
+
import { StrictMode as _e, useCallback as C, useContext as ve, useEffect as w, useMemo as T, useRef as ye, useState as E } from "react";
|
|
21
|
+
import { createInstance as be } from "i18next";
|
|
22
|
+
import { I18nextProvider as xe, initReactI18next as Se, useTranslation as Ce } from "react-i18next";
|
|
23
|
+
import { HttpRedirect as we, Link as Te, RouterRenderer as Ee, RoutingContext as De, createRouter as Oe, getResourcePage as D, r as ke } from "@plumile/router";
|
|
24
|
+
import { BackofficeTabs as Ae, DetailPageTemplate as je, SidebarSearchSvg as Me, Spinner as Ne, ThemeProvider as Pe, cx as Fe } from "@plumile/ui";
|
|
25
|
+
import Ie from "i18next-browser-languagedetector";
|
|
26
|
+
import * as O from "react-relay";
|
|
27
|
+
import { jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
28
|
+
import { BACKOFFICE_LIST_DEFAULTS as Le } from "@plumile/backoffice-core/constants.js";
|
|
29
|
+
import { resolveBackofficeLoadedFacetModule as j } from "@plumile/backoffice-core/resolve.js";
|
|
30
|
+
import { buildBackofficeFallbackListHref as Re, buildBackofficeListLink as M } from "@plumile/backoffice-core/state/buildListHref.js";
|
|
31
|
+
import { setWhereValue as ze } from "@plumile/backoffice-core/filters/where.js";
|
|
34
32
|
//#region src/i18n/createI18nInstance.ts
|
|
35
|
-
var
|
|
33
|
+
var Be = { maximumFractionDigits: 2 }, Ve = {
|
|
36
34
|
style: "currency",
|
|
37
35
|
currency: "USD",
|
|
38
36
|
maximumFractionDigits: 2
|
|
39
|
-
},
|
|
37
|
+
}, He = { dateStyle: "medium" }, Ue = {
|
|
40
38
|
dateStyle: "medium",
|
|
41
39
|
timeStyle: "short"
|
|
42
|
-
},
|
|
43
|
-
function
|
|
40
|
+
}, We = { style: "percent" };
|
|
41
|
+
function Ge(e) {
|
|
44
42
|
return Array.isArray(e) ? e[0] : e;
|
|
45
43
|
}
|
|
46
|
-
function
|
|
44
|
+
function N(e) {
|
|
47
45
|
if (e == null) return "";
|
|
48
46
|
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return String(e);
|
|
49
47
|
if (typeof e == "symbol") return e.toString();
|
|
@@ -54,21 +52,21 @@ function P(e) {
|
|
|
54
52
|
return "";
|
|
55
53
|
}
|
|
56
54
|
}
|
|
57
|
-
function
|
|
58
|
-
if (t == null) return
|
|
59
|
-
let r =
|
|
60
|
-
if (t === "number" && typeof e == "number") return new Intl.NumberFormat(r,
|
|
61
|
-
if (t === "currency" && typeof e == "number") return new Intl.NumberFormat(r,
|
|
62
|
-
if (t === "percent" && typeof e == "number") return new Intl.NumberFormat(r,
|
|
55
|
+
function P(e, t, n) {
|
|
56
|
+
if (t == null) return N(e);
|
|
57
|
+
let r = Ge(n);
|
|
58
|
+
if (t === "number" && typeof e == "number") return new Intl.NumberFormat(r, Be).format(e);
|
|
59
|
+
if (t === "currency" && typeof e == "number") return new Intl.NumberFormat(r, Ve).format(e);
|
|
60
|
+
if (t === "percent" && typeof e == "number") return new Intl.NumberFormat(r, We).format(e);
|
|
63
61
|
if ((t === "date" || t === "datetime") && e != null) {
|
|
64
62
|
let n;
|
|
65
|
-
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(N(e)), !Number.isNaN(n.getTime())) return t === "date" ? new Intl.DateTimeFormat(r, He).format(n) : new Intl.DateTimeFormat(r, Ue).format(n);
|
|
66
64
|
}
|
|
67
|
-
return
|
|
65
|
+
return N(e);
|
|
68
66
|
}
|
|
69
|
-
async function
|
|
70
|
-
let { resources: t, lng: n, fallbackLng: r = "en", initOptions: i = {}, instance: a =
|
|
71
|
-
o && a.use(
|
|
67
|
+
async function F(e) {
|
|
68
|
+
let { resources: t, lng: n, fallbackLng: r = "en", initOptions: i = {}, instance: a = be(), useLanguageDetector: o = !1, detection: s } = e, { interpolation: c, ...l } = i;
|
|
69
|
+
o && a.use(Ie), a.use(Se);
|
|
72
70
|
try {
|
|
73
71
|
let e = {
|
|
74
72
|
...l,
|
|
@@ -76,26 +74,27 @@ async function Ke(e) {
|
|
|
76
74
|
fallbackLng: r,
|
|
77
75
|
interpolation: {
|
|
78
76
|
escapeValue: !1,
|
|
79
|
-
format: c?.format ?? Ge,
|
|
80
77
|
...c
|
|
81
78
|
}
|
|
82
79
|
};
|
|
83
80
|
n != null && (e.lng = n);
|
|
84
81
|
let u = s ?? i.detection;
|
|
85
82
|
o && u != null && (e.detection = u), await a.init(e);
|
|
83
|
+
let { formatter: d } = a.services;
|
|
84
|
+
d != null && (d.add("number", (e, t) => P(e, "number", t)), d.add("currency", (e, t) => P(e, "currency", t)), d.add("percent", (e, t) => P(e, "percent", t)), d.add("date", (e, t) => P(e, "date", t)), d.add("datetime", (e, t) => P(e, "datetime", t)));
|
|
86
85
|
} catch {}
|
|
87
86
|
return a;
|
|
88
87
|
}
|
|
89
88
|
//#endregion
|
|
90
89
|
//#region src/i18n/mergeResourceLanguages.ts
|
|
91
|
-
var
|
|
92
|
-
function
|
|
90
|
+
var I = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ke = (e) => I(e) ? e : {};
|
|
91
|
+
function L(...e) {
|
|
93
92
|
let t = {};
|
|
94
93
|
return e.forEach((e) => {
|
|
95
94
|
Object.entries(e).forEach(([e, n]) => {
|
|
96
95
|
let r = t[e];
|
|
97
|
-
if (
|
|
98
|
-
t[e] =
|
|
96
|
+
if (I(r) && I(n)) {
|
|
97
|
+
t[e] = L(Ke(r), Ke(n));
|
|
99
98
|
return;
|
|
100
99
|
}
|
|
101
100
|
t[e] = n;
|
|
@@ -104,7 +103,7 @@ function I(...e) {
|
|
|
104
103
|
}
|
|
105
104
|
//#endregion
|
|
106
105
|
//#region src/i18n/resources.ts
|
|
107
|
-
var
|
|
106
|
+
var qe = {
|
|
108
107
|
en: {
|
|
109
108
|
backofficeReact: {
|
|
110
109
|
actions: {
|
|
@@ -995,20 +994,20 @@ var Je = {
|
|
|
995
994
|
} }
|
|
996
995
|
}
|
|
997
996
|
}
|
|
998
|
-
}, { RelayEnvironmentProvider:
|
|
997
|
+
}, { RelayEnvironmentProvider: Je } = O, Ye = ({ children: e }) => /* @__PURE__ */ k(Je, {
|
|
999
998
|
environment: t(),
|
|
1000
999
|
children: e
|
|
1001
|
-
}), { loadQuery:
|
|
1000
|
+
}), { loadQuery: R, usePreloadedQuery: Xe } = O, Ze = D("WrapperPage", async () => ({ default: (await import("@plumile/ui")).WrapperPage })), Qe = D("BackofficeLayoutPage", async () => import("./BackofficeLayoutPage-DtFDn_nU.js")), $e = D("BackofficeEntityListPage", async () => import("./BackofficeEntityListPage-DmZozSNk.js")), et = D("BackofficeEntityDetailPage", async () => import("./BackofficeEntityDetailPage-CIyGKwVP.js")), tt = D("BackofficeEntityDetailLayoutPage", async () => import("./BackofficeEntityDetailLayoutPage-DXjRqvcZ.js")), nt = D("BackofficeEntityDetailUnknownPageRedirect", async () => import("./BackofficeEntityDetailUnknownPageRedirect-DRWTeox-.js")), rt = D("BackofficeDashboardPage", async () => import("./BackofficeDashboardPage-h1OWb_rV.js")), it = D("BackofficeLoginPage", async () => import("./BackofficeLoginPage-BvOPqbKO.js")), at = D("BackofficePasswordResetRequestPage", async () => import("./BackofficePasswordResetRequestPage-BLNHQD79.js")), ot = D("BackofficePasswordResetCompletePage", async () => import("./BackofficePasswordResetCompletePage-ZLhghfhC.js")), st = D("BackofficeVerifyEmailPage", async () => import("./BackofficeVerifyEmailPage-BSTtLXdx.js")), ct = D("BackofficeAcceptInvitationPage", async () => import("./BackofficeAcceptInvitationPage-CGht2ka0.js")), lt = (e) => {
|
|
1002
1001
|
let t = e.trim();
|
|
1003
1002
|
return t === "" || t === "/" ? "" : t.replace(/^\/+|\/+$/g, "");
|
|
1004
|
-
},
|
|
1003
|
+
}, ut = (e) => {
|
|
1005
1004
|
let t = e.trim();
|
|
1006
1005
|
return t === "" ? "/" : `/${t}`.replace(/\/+/g, "/");
|
|
1007
|
-
},
|
|
1006
|
+
}, z = (e, t) => {
|
|
1008
1007
|
let n = t.replace(/^\/+|\/+$/g, "");
|
|
1009
1008
|
return e === "" ? n : n === "" ? e : `${e}/${n}`;
|
|
1010
|
-
},
|
|
1011
|
-
let n =
|
|
1009
|
+
}, dt = (e, t) => ut(z(e, t)), ft = (e, t) => {
|
|
1010
|
+
let n = ut(e), r = t === "" ? "" : `/${t}`;
|
|
1012
1011
|
return r !== "" && n.startsWith(r) ? n.slice(r.length).replace(/^\/+/, "") : n.replace(/^\/+/, "");
|
|
1013
1012
|
}, pt = (e, t) => {
|
|
1014
1013
|
if (e?.routes == null) return null;
|
|
@@ -1033,38 +1032,38 @@ var Je = {
|
|
|
1033
1032
|
t.set(e, String(n));
|
|
1034
1033
|
}
|
|
1035
1034
|
}), t;
|
|
1036
|
-
}, B =
|
|
1035
|
+
}, B = ke;
|
|
1037
1036
|
function ht(e) {
|
|
1038
|
-
let { basePath: t, entityManifest: n, entityRegistry: r, sidebar: i, auth: a, dashboard: o } = e, l =
|
|
1037
|
+
let { basePath: t, entityManifest: n, entityRegistry: r, sidebar: i, auth: a, dashboard: o } = e, l = lt(t), u = z(l, "login"), d = z(l, "login/reset"), f = z(l, "login/reset/complete"), p = z(l, "verify-email"), m = z(l, "accept-invitation"), h = dt(l, "login"), g = c(s(n, i)), _ = /* @__PURE__ */ new Map();
|
|
1039
1038
|
g.forEach((e, t) => {
|
|
1040
1039
|
_.set(t, e.groupId);
|
|
1041
1040
|
});
|
|
1042
1041
|
let v = /* @__PURE__ */ new WeakMap(), y = i?.permissionsQuery, ee = async ({ context: e }) => {
|
|
1043
1042
|
let t = await a.session.load();
|
|
1044
1043
|
return {
|
|
1045
|
-
permissionsQuery: y == null ? null :
|
|
1046
|
-
authStatusQuery: t.authStatusQuery == null ? null :
|
|
1044
|
+
permissionsQuery: y == null ? null : R(e.relayEnvironment, y, {}),
|
|
1045
|
+
authStatusQuery: t.authStatusQuery == null ? null : R(e.relayEnvironment, t.authStatusQuery, {}, { fetchPolicy: "network-only" })
|
|
1047
1046
|
};
|
|
1048
1047
|
}, te = B({
|
|
1049
1048
|
path: "",
|
|
1050
|
-
resourcePage:
|
|
1049
|
+
resourcePage: rt,
|
|
1051
1050
|
prepare: async () => (o == null || await o.load(), null),
|
|
1052
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
1051
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ k(e, {})
|
|
1053
1052
|
}), b = Object.values(n).filter((e) => e.kind === "list-detail").map((e) => {
|
|
1054
|
-
let t = e.routes.list, n =
|
|
1053
|
+
let t = e.routes.list, n = ft(t, l), i = [];
|
|
1055
1054
|
if (e.hasList) {
|
|
1056
1055
|
let t = B({
|
|
1057
1056
|
path: "",
|
|
1058
|
-
resourcePage:
|
|
1057
|
+
resourcePage: $e,
|
|
1059
1058
|
prepare: async ({ context: t, query: n }) => {
|
|
1060
1059
|
let { config: i } = await r.loadListEntity(e.id), { list: a, listUrlCodec: o, listDefaults: s } = i;
|
|
1061
1060
|
if (o == null || s == null) throw Error(`Backoffice entity ${e.id} does not expose a list configuration.`);
|
|
1062
|
-
let c = mt(n), l = o.parse(c), { pageSize: u } =
|
|
1061
|
+
let c = mt(n), l = o.parse(c), { pageSize: u } = Le, d = {
|
|
1063
1062
|
where: l.where,
|
|
1064
1063
|
sort: l.sort ?? s.sort,
|
|
1065
1064
|
count: u,
|
|
1066
1065
|
cursor: null
|
|
1067
|
-
}, f = a.buildVariables == null ? d : a.buildVariables(d), p =
|
|
1066
|
+
}, f = a.buildVariables == null ? d : a.buildVariables(d), p = R(t.relayEnvironment, a.query, f);
|
|
1068
1067
|
return {
|
|
1069
1068
|
entityId: e.id,
|
|
1070
1069
|
entityManifest: e,
|
|
@@ -1075,7 +1074,7 @@ function ht(e) {
|
|
|
1075
1074
|
render: ({ prepared: e, Component: t }) => {
|
|
1076
1075
|
if (t == null) return null;
|
|
1077
1076
|
let n = e;
|
|
1078
|
-
return /* @__PURE__ */
|
|
1077
|
+
return /* @__PURE__ */ k(t, {
|
|
1079
1078
|
entityManifest: n.entityManifest,
|
|
1080
1079
|
config: n.entityConfig,
|
|
1081
1080
|
prepared: n
|
|
@@ -1086,9 +1085,9 @@ function ht(e) {
|
|
|
1086
1085
|
}
|
|
1087
1086
|
let a = B({
|
|
1088
1087
|
path: ":id",
|
|
1089
|
-
resourcePage:
|
|
1088
|
+
resourcePage: tt,
|
|
1090
1089
|
prepare: async ({ context: t, variables: n }) => {
|
|
1091
|
-
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 =
|
|
1090
|
+
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 = R(t.relayEnvironment, i.layoutPage.query, o.variables);
|
|
1092
1091
|
return {
|
|
1093
1092
|
entityId: e.id,
|
|
1094
1093
|
entityManifest: e,
|
|
@@ -1100,7 +1099,7 @@ function ht(e) {
|
|
|
1100
1099
|
render: ({ children: e, prepared: t, Component: n }) => {
|
|
1101
1100
|
if (n == null) return null;
|
|
1102
1101
|
let r = t;
|
|
1103
|
-
return /* @__PURE__ */
|
|
1102
|
+
return /* @__PURE__ */ k(n, {
|
|
1104
1103
|
entityManifest: r.entityManifest,
|
|
1105
1104
|
config: r.entityConfig,
|
|
1106
1105
|
prepared: r,
|
|
@@ -1110,7 +1109,7 @@ function ht(e) {
|
|
|
1110
1109
|
children: [
|
|
1111
1110
|
B({
|
|
1112
1111
|
path: "",
|
|
1113
|
-
resourcePage:
|
|
1112
|
+
resourcePage: Ze,
|
|
1114
1113
|
prepare: ({ variables: t }) => {
|
|
1115
1114
|
let n = String(t.id ?? "").trim();
|
|
1116
1115
|
return { redirectTo: n === "" ? null : e.routes.detailPage(n, e.defaultDetailPageId ?? "overview") };
|
|
@@ -1118,14 +1117,14 @@ function ht(e) {
|
|
|
1118
1117
|
render: ({ prepared: e }) => {
|
|
1119
1118
|
let t = e.redirectTo ?? null;
|
|
1120
1119
|
if (t == null) return null;
|
|
1121
|
-
throw new
|
|
1120
|
+
throw new we(t);
|
|
1122
1121
|
}
|
|
1123
1122
|
}),
|
|
1124
1123
|
...(e.detailPages ?? []).map((t) => B({
|
|
1125
1124
|
path: t.pathSegment,
|
|
1126
|
-
resourcePage:
|
|
1125
|
+
resourcePage: et,
|
|
1127
1126
|
prepare: async ({ context: n, variables: i }) => {
|
|
1128
|
-
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 =
|
|
1127
|
+
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 = R(n.relayEnvironment, o.config.page.query, s.variables);
|
|
1129
1128
|
return {
|
|
1130
1129
|
entityId: e.id,
|
|
1131
1130
|
entityManifest: e,
|
|
@@ -1141,7 +1140,7 @@ function ht(e) {
|
|
|
1141
1140
|
render: ({ prepared: e, Component: t }) => {
|
|
1142
1141
|
if (t == null) return null;
|
|
1143
1142
|
let n = e;
|
|
1144
|
-
return /* @__PURE__ */
|
|
1143
|
+
return /* @__PURE__ */ k(t, {
|
|
1145
1144
|
entityManifest: n.entityManifest,
|
|
1146
1145
|
config: n.entityConfig,
|
|
1147
1146
|
prepared: n
|
|
@@ -1150,7 +1149,7 @@ function ht(e) {
|
|
|
1150
1149
|
})),
|
|
1151
1150
|
B({
|
|
1152
1151
|
path: ":pagePath",
|
|
1153
|
-
resourcePage:
|
|
1152
|
+
resourcePage: nt,
|
|
1154
1153
|
prepare: async ({ variables: t }) => {
|
|
1155
1154
|
let n = await r.loadDetailLayoutEntity(e.id), i = String(t.id ?? ""), a = String(t.pagePath ?? "");
|
|
1156
1155
|
return {
|
|
@@ -1163,7 +1162,7 @@ function ht(e) {
|
|
|
1163
1162
|
render: ({ prepared: e, Component: t }) => {
|
|
1164
1163
|
if (t == null) return null;
|
|
1165
1164
|
let n = e;
|
|
1166
|
-
return /* @__PURE__ */
|
|
1165
|
+
return /* @__PURE__ */ k(t, {
|
|
1167
1166
|
entityManifest: n.entityManifest,
|
|
1168
1167
|
config: n.entityConfig,
|
|
1169
1168
|
prepared: n
|
|
@@ -1175,11 +1174,11 @@ function ht(e) {
|
|
|
1175
1174
|
return v.set(a, e.id), i.push(a), B({
|
|
1176
1175
|
path: n,
|
|
1177
1176
|
children: i,
|
|
1178
|
-
resourcePage:
|
|
1177
|
+
resourcePage: Ze
|
|
1179
1178
|
});
|
|
1180
|
-
}),
|
|
1179
|
+
}), x = Object.values(n).filter((e) => e.kind === "tool").map((t) => {
|
|
1181
1180
|
let n = B({
|
|
1182
|
-
path:
|
|
1181
|
+
path: ft(t.routes.list, l),
|
|
1183
1182
|
resourcePage: e.toolsOperationPage ?? null,
|
|
1184
1183
|
prepare: async () => {
|
|
1185
1184
|
let e = await r.loadToolEntity(t.id);
|
|
@@ -1192,7 +1191,7 @@ function ht(e) {
|
|
|
1192
1191
|
render: ({ prepared: e, Component: t }) => {
|
|
1193
1192
|
if (t == null) return null;
|
|
1194
1193
|
let n = e;
|
|
1195
|
-
return /* @__PURE__ */
|
|
1194
|
+
return /* @__PURE__ */ k(t, {
|
|
1196
1195
|
entityManifest: n.entityManifest,
|
|
1197
1196
|
operation: n.entityConfig.tool.operation,
|
|
1198
1197
|
toolId: n.entityConfig.id
|
|
@@ -1200,19 +1199,19 @@ function ht(e) {
|
|
|
1200
1199
|
}
|
|
1201
1200
|
});
|
|
1202
1201
|
return v.set(n, t.id), n;
|
|
1203
|
-
}),
|
|
1202
|
+
}), ne = B({
|
|
1204
1203
|
path: l,
|
|
1205
|
-
resourcePage:
|
|
1204
|
+
resourcePage: Qe,
|
|
1206
1205
|
prepare: ee,
|
|
1207
1206
|
render: ({ children: e, prepared: t, route: n, Component: r }) => {
|
|
1208
1207
|
if (r == null) return null;
|
|
1209
1208
|
let o = t, s = pt(n, v), c = s == null ? null : _.get(s) ?? null, l = null, u = a.session.get()?.authStatusQuery ?? null;
|
|
1210
1209
|
if (u != null && o?.authStatusQuery != null) {
|
|
1211
|
-
l =
|
|
1210
|
+
l = Xe(u, o.authStatusQuery);
|
|
1212
1211
|
let { isLoggedIn: e } = l;
|
|
1213
|
-
if (!e) throw new
|
|
1212
|
+
if (!e) throw new we(h);
|
|
1214
1213
|
}
|
|
1215
|
-
return /* @__PURE__ */
|
|
1214
|
+
return /* @__PURE__ */ k(r, {
|
|
1216
1215
|
permissionsQuery: i?.permissionsQuery,
|
|
1217
1216
|
prepared: o?.permissionsQuery ?? null,
|
|
1218
1217
|
authStatus: l,
|
|
@@ -1223,62 +1222,62 @@ function ht(e) {
|
|
|
1223
1222
|
children: [
|
|
1224
1223
|
te,
|
|
1225
1224
|
...b,
|
|
1226
|
-
...
|
|
1225
|
+
...x
|
|
1227
1226
|
]
|
|
1228
|
-
}),
|
|
1227
|
+
}), S = [
|
|
1229
1228
|
B({
|
|
1230
1229
|
path: u,
|
|
1231
|
-
resourcePage:
|
|
1230
|
+
resourcePage: it,
|
|
1232
1231
|
prepare: async ({ context: e }) => {
|
|
1233
1232
|
let t = await a.login.load();
|
|
1234
|
-
return { query:
|
|
1233
|
+
return { query: R(e.relayEnvironment, t.loginQuery, {}) };
|
|
1235
1234
|
},
|
|
1236
|
-
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */
|
|
1235
|
+
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */ k(t, { prepared: e })
|
|
1237
1236
|
}),
|
|
1238
1237
|
B({
|
|
1239
1238
|
path: d,
|
|
1240
|
-
resourcePage:
|
|
1239
|
+
resourcePage: at,
|
|
1241
1240
|
prepare: async () => (await a.passwordResetRequest.load(), null),
|
|
1242
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
1241
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ k(e, {})
|
|
1243
1242
|
}),
|
|
1244
1243
|
B({
|
|
1245
1244
|
path: f,
|
|
1246
|
-
resourcePage:
|
|
1245
|
+
resourcePage: ot,
|
|
1247
1246
|
prepare: async () => (await a.passwordResetComplete.load(), null),
|
|
1248
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
1247
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ k(e, {})
|
|
1249
1248
|
}),
|
|
1250
1249
|
B({
|
|
1251
1250
|
path: p,
|
|
1252
|
-
resourcePage:
|
|
1251
|
+
resourcePage: st,
|
|
1253
1252
|
prepare: async () => (await a.verifyEmail.load(), null),
|
|
1254
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
1253
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ k(e, {})
|
|
1255
1254
|
})
|
|
1256
1255
|
];
|
|
1257
|
-
return (a.hasAcceptInvitation === !0 || a.acceptInvitation != null) &&
|
|
1256
|
+
return (a.hasAcceptInvitation === !0 || a.acceptInvitation != null) && S.push(B({
|
|
1258
1257
|
path: m,
|
|
1259
|
-
resourcePage:
|
|
1258
|
+
resourcePage: ct,
|
|
1260
1259
|
prepare: async () => (await a.acceptInvitation?.load(), null),
|
|
1261
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
1262
|
-
})),
|
|
1260
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ k(e, {})
|
|
1261
|
+
})), S.push(ne), S;
|
|
1263
1262
|
}
|
|
1264
1263
|
//#endregion
|
|
1265
1264
|
//#region src/components/backoffice/routing/backofficeRouteFallback.css.ts
|
|
1266
1265
|
var gt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop txvbqbv43 txvbqbva1", _t = "txvbqbva3", vt = () => {
|
|
1267
|
-
let { t: e, i18n: t } =
|
|
1268
|
-
return t.isInitialized && (n = e("common.loading")), /* @__PURE__ */
|
|
1266
|
+
let { t: e, i18n: t } = Ce("backofficeReact", { useSuspense: !1 }), n = "Loading...";
|
|
1267
|
+
return t.isInitialized && (n = e("common.loading")), /* @__PURE__ */ A("div", {
|
|
1269
1268
|
className: gt,
|
|
1270
1269
|
role: "status",
|
|
1271
1270
|
"aria-live": "polite",
|
|
1272
1271
|
"aria-busy": "true",
|
|
1273
|
-
children: [/* @__PURE__ */
|
|
1272
|
+
children: [/* @__PURE__ */ k(Ne, { size: 28 }), /* @__PURE__ */ k("div", {
|
|
1274
1273
|
className: _t,
|
|
1275
1274
|
children: n
|
|
1276
1275
|
})]
|
|
1277
1276
|
});
|
|
1278
|
-
}, yt = "_11exksg1 txvbqbv45 txvbqbptp txvbqbt7y txvbqbdqg txvbqbl7g txvbqb2k txvbqbu7g txvbqbuwp", bt = "_11exksg2 txvbqbcgg txvbqbuog", xt = () => /* @__PURE__ */
|
|
1277
|
+
}, yt = "_11exksg1 txvbqbv45 txvbqbptp txvbqbt7y txvbqbdqg txvbqbl7g txvbqb2k txvbqbu7g txvbqbuwp", bt = "_11exksg2 txvbqbcgg txvbqbuog", xt = () => /* @__PURE__ */ k("div", {
|
|
1279
1278
|
className: yt,
|
|
1280
1279
|
"aria-hidden": "true",
|
|
1281
|
-
children: /* @__PURE__ */
|
|
1280
|
+
children: /* @__PURE__ */ k("div", { className: bt })
|
|
1282
1281
|
}), St = "cache-first", V = "detail-page", H = "detail-layout", U = "list", W = "picker", G = "tool", K = (e) => e.kind === "list-detail", Ct = (e) => e.kind === "tool", q = (e, t, n) => t === V ? `${e}:${t}:${n ?? ""}` : `${e}:${t}`, wt = (e) => e instanceof Error ? e : Error(String(e)), J = (e) => e?.status !== "loaded" || e.module == null ? null : e.module, Y = (e, t) => {
|
|
1283
1282
|
let n = e[t];
|
|
1284
1283
|
if (n == null) throw Error(`Unknown backoffice entity: ${t}`);
|
|
@@ -1319,7 +1318,7 @@ var gt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1319
1318
|
let o = a.facets.list;
|
|
1320
1319
|
if (o == null) throw Error(`Backoffice entity ${n} does not expose a list facet.`);
|
|
1321
1320
|
return i(q(n, U), r, async () => {
|
|
1322
|
-
let e =
|
|
1321
|
+
let e = j(a, await o(), t);
|
|
1323
1322
|
if (e.kind !== U) throw Error(`Backoffice entity ${n} did not resolve to a list facet.`);
|
|
1324
1323
|
return e;
|
|
1325
1324
|
});
|
|
@@ -1330,7 +1329,7 @@ var gt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1330
1329
|
let o = a.facets.picker;
|
|
1331
1330
|
if (o == null) throw Error(`Backoffice entity ${n} does not expose a picker facet.`);
|
|
1332
1331
|
return i(q(n, W), r, async () => {
|
|
1333
|
-
let e =
|
|
1332
|
+
let e = j(a, await o(), t);
|
|
1334
1333
|
if (e.kind !== W) throw Error(`Backoffice entity ${n} did not resolve to a picker facet.`);
|
|
1335
1334
|
return e;
|
|
1336
1335
|
});
|
|
@@ -1339,7 +1338,7 @@ var gt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1339
1338
|
let a = Y(e, n);
|
|
1340
1339
|
if (!K(a)) throw Error(`Backoffice entity ${n} does not expose a detail-layout facet.`);
|
|
1341
1340
|
return i(q(n, H), r, async () => {
|
|
1342
|
-
let e =
|
|
1341
|
+
let e = j(a, await a.facets.detailLayout(), t);
|
|
1343
1342
|
if (e.kind !== H) throw Error(`Backoffice entity ${n} did not resolve to a detail-layout facet.`);
|
|
1344
1343
|
return e;
|
|
1345
1344
|
});
|
|
@@ -1348,7 +1347,7 @@ var gt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1348
1347
|
let o = Y(e, n);
|
|
1349
1348
|
if (!K(o)) throw Error(`Backoffice entity ${n} does not expose a detail-page facet.`);
|
|
1350
1349
|
return i(q(n, V, r), a, async () => {
|
|
1351
|
-
let e =
|
|
1350
|
+
let e = j(o, await o.facets.detailPage(r), t);
|
|
1352
1351
|
if (e.kind !== V) throw Error(`Backoffice entity ${n} did not resolve to a detail-page facet.`);
|
|
1353
1352
|
return e;
|
|
1354
1353
|
});
|
|
@@ -1357,7 +1356,7 @@ var gt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1357
1356
|
let a = Y(e, n);
|
|
1358
1357
|
if (!Ct(a)) throw Error(`Backoffice entity ${n} does not expose a tool facet.`);
|
|
1359
1358
|
return i(q(n, G), r, async () => {
|
|
1360
|
-
let e =
|
|
1359
|
+
let e = j(a, await a.facets.tool(), t);
|
|
1361
1360
|
if (e.kind !== G) throw Error(`Backoffice entity ${n} did not resolve to a tool facet.`);
|
|
1362
1361
|
return e;
|
|
1363
1362
|
});
|
|
@@ -1374,7 +1373,7 @@ var gt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1374
1373
|
detailPage: (e, r) => Z(t, n.routes.detailPage(e, r))
|
|
1375
1374
|
}
|
|
1376
1375
|
}])), Q = (e) => typeof e == "object" && !Array.isArray(e) ? e : {}, Dt = ({ routes: e, instrumentations: t }) => {
|
|
1377
|
-
let n = i(), r =
|
|
1376
|
+
let n = i(), r = T(() => ({ relayEnvironment: n }), [n]), a = T(() => Oe(e, {
|
|
1378
1377
|
context: r,
|
|
1379
1378
|
instrumentations: t
|
|
1380
1379
|
}), [
|
|
@@ -1382,19 +1381,19 @@ var gt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1382
1381
|
e,
|
|
1383
1382
|
r
|
|
1384
1383
|
]);
|
|
1385
|
-
return
|
|
1384
|
+
return w(() => () => {
|
|
1386
1385
|
a.cleanup();
|
|
1387
|
-
}, [a]), /* @__PURE__ */
|
|
1386
|
+
}, [a]), /* @__PURE__ */ k(De.Provider, {
|
|
1388
1387
|
value: a.context,
|
|
1389
|
-
children: /* @__PURE__ */
|
|
1388
|
+
children: /* @__PURE__ */ k(Ee, {
|
|
1390
1389
|
enableTransition: !0,
|
|
1391
|
-
fallback: /* @__PURE__ */
|
|
1392
|
-
pending: /* @__PURE__ */
|
|
1390
|
+
fallback: /* @__PURE__ */ k(vt, {}),
|
|
1391
|
+
pending: /* @__PURE__ */ k(xt, {})
|
|
1393
1392
|
})
|
|
1394
1393
|
});
|
|
1395
1394
|
}, Ot = (e) => {
|
|
1396
|
-
let t = X(e.basePath ?? "/"), n =
|
|
1397
|
-
|
|
1395
|
+
let t = X(e.basePath ?? "/"), n = T(() => Et(e.entityManifest, t), [t, e.entityManifest]), i = T(() => Tt(n, { basePath: t }), [t, n]), a = e.graphql;
|
|
1396
|
+
w(() => {
|
|
1398
1397
|
r({
|
|
1399
1398
|
httpUrl: a.httpUrl ?? a.endpoint,
|
|
1400
1399
|
wsUrl: a.wsUrl ?? a.wsEndpoint,
|
|
@@ -1411,26 +1410,26 @@ var gt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1411
1410
|
a.wsEndpoint,
|
|
1412
1411
|
a.wsUrl
|
|
1413
1412
|
]);
|
|
1414
|
-
let s =
|
|
1415
|
-
let t = e.i18n?.resources ?? {}, n =
|
|
1413
|
+
let s = T(() => {
|
|
1414
|
+
let t = e.i18n?.resources ?? {}, n = qe, r = new Set([...Object.keys(n), ...Object.keys(t)]), i = {};
|
|
1416
1415
|
return r.forEach((e) => {
|
|
1417
1416
|
let r = Q(n[e]), a = Q(t[e]);
|
|
1418
1417
|
i[e] = {
|
|
1419
1418
|
...r,
|
|
1420
1419
|
...a,
|
|
1421
|
-
backofficeReact:
|
|
1422
|
-
shared:
|
|
1420
|
+
backofficeReact: L(Q(r.backofficeReact), Q(a.backofficeReact)),
|
|
1421
|
+
shared: L(Q(r.shared), Q(a.shared))
|
|
1423
1422
|
};
|
|
1424
1423
|
}), i;
|
|
1425
|
-
}, [e.i18n?.resources]), c =
|
|
1426
|
-
return
|
|
1424
|
+
}, [e.i18n?.resources]), c = T(() => e.i18n?.instance ?? be(), [e.i18n?.instance]);
|
|
1425
|
+
return w(() => {
|
|
1427
1426
|
let t = e.i18n?.initOptions ?? {}, n = t.defaultNS ?? "translations", r = t.ns ?? [
|
|
1428
1427
|
"backofficeReact",
|
|
1429
1428
|
"translations",
|
|
1430
1429
|
"shared",
|
|
1431
1430
|
"ui"
|
|
1432
1431
|
];
|
|
1433
|
-
|
|
1432
|
+
F({
|
|
1434
1433
|
resources: s,
|
|
1435
1434
|
lng: e.i18n?.lng,
|
|
1436
1435
|
fallbackLng: e.i18n?.fallbackLng,
|
|
@@ -1451,10 +1450,10 @@ var gt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1451
1450
|
e.i18n?.fallbackLng,
|
|
1452
1451
|
e.i18n?.lng,
|
|
1453
1452
|
e.i18n?.useLanguageDetector
|
|
1454
|
-
]), /* @__PURE__ */
|
|
1453
|
+
]), /* @__PURE__ */ k(_e, { children: /* @__PURE__ */ k(xe, {
|
|
1455
1454
|
i18n: c,
|
|
1456
|
-
children: /* @__PURE__ */
|
|
1457
|
-
value:
|
|
1455
|
+
children: /* @__PURE__ */ k(Pe, { children: /* @__PURE__ */ k(Ye, { children: /* @__PURE__ */ k(o, {
|
|
1456
|
+
value: T(() => ({
|
|
1458
1457
|
basePath: t,
|
|
1459
1458
|
entities: n,
|
|
1460
1459
|
entityManifest: n,
|
|
@@ -1474,8 +1473,8 @@ var gt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1474
1473
|
e.graphql,
|
|
1475
1474
|
e.sidebar
|
|
1476
1475
|
]),
|
|
1477
|
-
children: /* @__PURE__ */
|
|
1478
|
-
routes:
|
|
1476
|
+
children: /* @__PURE__ */ k(Dt, {
|
|
1477
|
+
routes: T(() => ht({
|
|
1479
1478
|
basePath: t,
|
|
1480
1479
|
entityManifest: n,
|
|
1481
1480
|
entityRegistry: i,
|
|
@@ -1528,17 +1527,17 @@ function Mt(e, t) {
|
|
|
1528
1527
|
//#endregion
|
|
1529
1528
|
//#region src/components/backoffice/filters/backofficeFilterAction.css.ts
|
|
1530
1529
|
var Nt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txvbqb1qy txvbqb1cp txvbqb1qg txvbqbf7 txvbqbv0t txvbqbva1 txvbqbv txvbqb3b txvbqb78 txvbqb6w txvbqb7k", Pt = "txvbqbtx7 txvbqbc67", Ft = (e, t) => e(t), It = (e) => {
|
|
1531
|
-
let { t } =
|
|
1530
|
+
let { t } = Ce(), { t: n } = b(), { filterColumnAliases: r } = a(), { whereKey: i, value: o, path: s, label: c, listConfig: l } = e, u = x(), d = null;
|
|
1532
1531
|
if (l == null ? u != null && (d = u.config) : d = l, d == null) return null;
|
|
1533
1532
|
let f = $(d, i, s);
|
|
1534
1533
|
if (f == null && s == null && (f = jt(d, i, r)), f == null || !Mt(f, o)) return null;
|
|
1535
|
-
let p = Ft(f.label, t), m = c ?? n("filters.actions.filterBy", { label: p }), h = /* @__PURE__ */
|
|
1534
|
+
let p = Ft(f.label, t), m = c ?? n("filters.actions.filterBy", { label: p }), h = /* @__PURE__ */ k(Me, {
|
|
1536
1535
|
width: 14,
|
|
1537
1536
|
height: 14,
|
|
1538
1537
|
className: Pt,
|
|
1539
1538
|
"aria-hidden": "true"
|
|
1540
1539
|
});
|
|
1541
|
-
if (u != null) return /* @__PURE__ */
|
|
1540
|
+
if (u != null) return /* @__PURE__ */ k("button", {
|
|
1542
1541
|
type: "button",
|
|
1543
1542
|
className: Nt,
|
|
1544
1543
|
title: m,
|
|
@@ -1548,50 +1547,50 @@ var Nt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txv
|
|
|
1548
1547
|
},
|
|
1549
1548
|
children: h
|
|
1550
1549
|
});
|
|
1551
|
-
let g =
|
|
1552
|
-
return /* @__PURE__ */
|
|
1553
|
-
to:
|
|
1550
|
+
let g = ze(d.listDefaults?.where ?? d.list.defaultState?.where ?? null, i, o, s);
|
|
1551
|
+
return /* @__PURE__ */ k(Te, {
|
|
1552
|
+
to: M(d, { where: g }),
|
|
1554
1553
|
className: Nt,
|
|
1555
1554
|
children: h
|
|
1556
1555
|
});
|
|
1557
1556
|
}, Lt = "txvbqb9ip txvbqbai7 txvbqbap7", Rt = "txvbqb9ip txvbqbai7 txvbqbaop", zt = "txvbqb9iy txvbqbbwy txvbqbap7 txvbqbcg", Bt = "txvbqb9ip txvbqbai7 txvbqbap7", Vt = "txvbqb9ip txvbqbai7 txvbqbap7", Ht = ({ summary: e, aside: t, children: n, className: r }) => {
|
|
1558
1557
|
let i = null;
|
|
1559
|
-
e != null && (i = /* @__PURE__ */
|
|
1558
|
+
e != null && (i = /* @__PURE__ */ k("div", {
|
|
1560
1559
|
className: Rt,
|
|
1561
1560
|
children: e
|
|
1562
1561
|
}));
|
|
1563
1562
|
let a = null;
|
|
1564
|
-
t != null && (a = /* @__PURE__ */
|
|
1563
|
+
t != null && (a = /* @__PURE__ */ k("aside", {
|
|
1565
1564
|
className: Vt,
|
|
1566
1565
|
children: t
|
|
1567
1566
|
}));
|
|
1568
1567
|
let o = null;
|
|
1569
|
-
return (n != null || a != null) && (o = /* @__PURE__ */
|
|
1568
|
+
return (n != null || a != null) && (o = /* @__PURE__ */ k("div", {
|
|
1570
1569
|
className: Bt,
|
|
1571
1570
|
children: n
|
|
1572
|
-
})), /* @__PURE__ */
|
|
1573
|
-
className:
|
|
1574
|
-
children: [i, /* @__PURE__ */
|
|
1571
|
+
})), /* @__PURE__ */ A("div", {
|
|
1572
|
+
className: Fe(Lt, r),
|
|
1573
|
+
children: [i, /* @__PURE__ */ A("div", {
|
|
1575
1574
|
className: zt,
|
|
1576
1575
|
children: [o, a]
|
|
1577
1576
|
})]
|
|
1578
1577
|
});
|
|
1579
1578
|
}, Ut = "txvbqbv9z txvbqb3d txvbqbvwr", Wt = ({ count: e, entity: t, where: n }) => {
|
|
1580
|
-
let { entities: r, entityRegistry: i } = a(), o =
|
|
1579
|
+
let { entities: r, entityRegistry: i } = a(), o = ve(De), s = 0;
|
|
1581
1580
|
typeof e == "number" && Number.isFinite(e) && (s = e);
|
|
1582
1581
|
let c = r[t];
|
|
1583
|
-
if (c == null) return /* @__PURE__ */
|
|
1582
|
+
if (c == null) return /* @__PURE__ */ k("span", { children: s });
|
|
1584
1583
|
let l = i.getLoadedListEntity(t), u;
|
|
1585
|
-
u = l == null ?
|
|
1584
|
+
u = l == null ? Re(c.routes.list, n) : M(l.config, { where: n });
|
|
1586
1585
|
let d = async (e) => {
|
|
1587
|
-
let r =
|
|
1586
|
+
let r = M((await i.loadListEntity(t)).config, { where: n }), a = "";
|
|
1588
1587
|
r.search !== "" && (a = `?${r.search}`), e.push({
|
|
1589
1588
|
pathname: r.pathname,
|
|
1590
1589
|
search: a,
|
|
1591
1590
|
hash: ""
|
|
1592
1591
|
});
|
|
1593
1592
|
};
|
|
1594
|
-
return /* @__PURE__ */
|
|
1593
|
+
return /* @__PURE__ */ k(Te, {
|
|
1595
1594
|
to: u,
|
|
1596
1595
|
className: Ut,
|
|
1597
1596
|
onClick: (e) => {
|
|
@@ -1620,45 +1619,45 @@ var Nt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txv
|
|
|
1620
1619
|
});
|
|
1621
1620
|
}, Gt = "txvbqb9ip", Kt = "txvbqb9ip txvbqbai7 txvbqbaop", qt = ({ headerNode: e, tabs: t, activeId: n, children: r }) => {
|
|
1622
1621
|
let i = null;
|
|
1623
|
-
return t != null && t.length > 1 && n != null && (i = /* @__PURE__ */
|
|
1622
|
+
return t != null && t.length > 1 && n != null && (i = /* @__PURE__ */ k(Ae, {
|
|
1624
1623
|
items: t,
|
|
1625
1624
|
activeId: n,
|
|
1626
1625
|
onChange: () => {},
|
|
1627
1626
|
className: Gt
|
|
1628
|
-
})), /* @__PURE__ */
|
|
1627
|
+
})), /* @__PURE__ */ k(je, {
|
|
1629
1628
|
headerNode: e,
|
|
1630
1629
|
tabsNode: i,
|
|
1631
|
-
children: /* @__PURE__ */
|
|
1630
|
+
children: /* @__PURE__ */ k("div", {
|
|
1632
1631
|
className: Kt,
|
|
1633
1632
|
children: r
|
|
1634
1633
|
})
|
|
1635
1634
|
});
|
|
1636
|
-
}, Jt = "txvbqb9jg txvbqbcp txvbqbany txvbqbajy", Yt = ({ children: e, className: t }) => /* @__PURE__ */
|
|
1637
|
-
className:
|
|
1635
|
+
}, Jt = "txvbqb9jg txvbqbcp txvbqbany txvbqbajy", Yt = ({ children: e, className: t }) => /* @__PURE__ */ k("span", {
|
|
1636
|
+
className: Fe(Jt, t),
|
|
1638
1637
|
children: e
|
|
1639
1638
|
});
|
|
1640
1639
|
//#endregion
|
|
1641
1640
|
//#region src/hooks/useConditionalSubscription.ts
|
|
1642
1641
|
function Xt() {
|
|
1643
|
-
return Reflect.get(
|
|
1642
|
+
return Reflect.get(O, "default") ?? O;
|
|
1644
1643
|
}
|
|
1645
1644
|
var Zt = Xt();
|
|
1646
1645
|
function Qt(e, t) {
|
|
1647
|
-
let n = Zt.useRelayEnvironment(), [r, i] =
|
|
1646
|
+
let n = Zt.useRelayEnvironment(), [r, i] = E(null), { enabled: a = !0, deps: o = [], getVariables: s } = t, c = T(() => {
|
|
1648
1647
|
try {
|
|
1649
1648
|
return s == null ? e.variables : s();
|
|
1650
1649
|
} catch {
|
|
1651
1650
|
return null;
|
|
1652
1651
|
}
|
|
1653
|
-
}, [e.variables, s]), l =
|
|
1652
|
+
}, [e.variables, s]), l = T(() => {
|
|
1654
1653
|
if (c == null) return null;
|
|
1655
1654
|
try {
|
|
1656
1655
|
return JSON.stringify(c);
|
|
1657
1656
|
} catch {
|
|
1658
1657
|
return null;
|
|
1659
1658
|
}
|
|
1660
|
-
}, [c]), u = !!a, d = c, f = u && d != null, p =
|
|
1661
|
-
return
|
|
1659
|
+
}, [c]), u = !!a, d = c, f = u && d != null, p = ye(null);
|
|
1660
|
+
return w(() => {
|
|
1662
1661
|
let t = null;
|
|
1663
1662
|
return u && d != null && (i(null), t = Zt.requestSubscription(n, {
|
|
1664
1663
|
subscription: e.subscription,
|
|
@@ -1698,12 +1697,12 @@ function en(e) {
|
|
|
1698
1697
|
t ?? (t = document.createElement("textarea"), t.id = $t, 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");
|
|
1699
1698
|
}
|
|
1700
1699
|
function tn(e = 2e3) {
|
|
1701
|
-
let [t, n] =
|
|
1702
|
-
return
|
|
1700
|
+
let [t, n] = E(null), r = ye(null);
|
|
1701
|
+
return w(() => () => {
|
|
1703
1702
|
r.current != null && window.clearTimeout(r.current);
|
|
1704
1703
|
}, []), {
|
|
1705
1704
|
copiedKey: t,
|
|
1706
|
-
copy:
|
|
1705
|
+
copy: C(async (t, i) => {
|
|
1707
1706
|
let a = !1, o;
|
|
1708
1707
|
if (typeof navigator < "u" && (o = navigator.clipboard), o != null) try {
|
|
1709
1708
|
await o.writeText(t), a = !0;
|
|
@@ -1719,18 +1718,18 @@ function tn(e = 2e3) {
|
|
|
1719
1718
|
//#endregion
|
|
1720
1719
|
//#region src/hooks/useRefetchNeededReload.ts
|
|
1721
1720
|
function nn(e) {
|
|
1722
|
-
let [t, n] =
|
|
1723
|
-
return
|
|
1721
|
+
let [t, n] = E(null);
|
|
1722
|
+
return w(() => {
|
|
1724
1723
|
n(null);
|
|
1725
1724
|
}, [e]), {
|
|
1726
1725
|
reason: t,
|
|
1727
|
-
onRefetchNeeded:
|
|
1726
|
+
onRefetchNeeded: C((e) => {
|
|
1728
1727
|
n(e ?? "UNKNOWN");
|
|
1729
1728
|
}, []),
|
|
1730
|
-
reload:
|
|
1729
|
+
reload: C(() => {
|
|
1731
1730
|
window.location.reload();
|
|
1732
1731
|
}, []),
|
|
1733
|
-
clear:
|
|
1732
|
+
clear: C(() => {
|
|
1734
1733
|
n(null);
|
|
1735
1734
|
}, [])
|
|
1736
1735
|
};
|
|
@@ -1754,7 +1753,6 @@ function rn() {
|
|
|
1754
1753
|
//#region src/modules/base64.ts
|
|
1755
1754
|
function an(e) {
|
|
1756
1755
|
if (typeof e != "string") throw TypeError("encodeUtf8ToBase64 expects a string input.");
|
|
1757
|
-
if (typeof Buffer < "u") return Buffer.from(e, "utf-8").toString("base64");
|
|
1758
1756
|
if (typeof globalThis.btoa == "function") {
|
|
1759
1757
|
let t = encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, (e, t) => String.fromCharCode(Number.parseInt(t, 16)));
|
|
1760
1758
|
return globalThis.btoa(t);
|
|
@@ -1763,7 +1761,6 @@ function an(e) {
|
|
|
1763
1761
|
}
|
|
1764
1762
|
function on(e) {
|
|
1765
1763
|
if (typeof e != "string") throw TypeError("decodeBase64ToUtf8 expects a string input.");
|
|
1766
|
-
if (typeof Buffer < "u") return Buffer.from(e, "base64").toString("utf-8");
|
|
1767
1764
|
if (typeof globalThis.atob == "function") {
|
|
1768
1765
|
let t = globalThis.atob(e), n = Array.from(t, (e) => `%${e.charCodeAt(0).toString(16).padStart(2, "0")}`).join("");
|
|
1769
1766
|
return decodeURIComponent(n);
|
|
@@ -1797,8 +1794,8 @@ function un(e) {
|
|
|
1797
1794
|
}
|
|
1798
1795
|
//#endregion
|
|
1799
1796
|
//#region src/relay/createInlineReader.ts
|
|
1800
|
-
var { readInlineData: dn } =
|
|
1797
|
+
var { readInlineData: dn } = O, fn = (e) => (t) => dn(e, t), pn = (e) => e;
|
|
1801
1798
|
//#endregion
|
|
1802
|
-
export { _ as AcceptInvitationScreen,
|
|
1799
|
+
export { _ as AcceptInvitationScreen, ae as BackofficeDetailBadgeRow, oe as BackofficeDetailField, ce as BackofficeDetailPayload, se as BackofficeDetailSection, te as BackofficeErrorBoundary, It as BackofficeFilterAction, Yt as BackofficeInlineFilterRow, Ht as BackofficeOverviewLayout, Ot as BackofficeProvider, Wt as BackofficeRelatedCountLink, ge as BackofficeRightPageLayout, qt as BackofficeTabbedDetailShell, S as EntityFilterValue, ne as EntityFilterValueText, re as EntityIdFilterField, ie as EntityIdPickerDialog, h as LoginFlow, v as PasswordResetCompleteScreen, y as PasswordResetRequestScreen, Ye as RelayProvider, ee as VerifyEmailScreen, qe as backofficeReactI18nResources, f as base64UrlToBuffer, p as bufferToBase64Url, he as buildDataTableColumns, r as configureRelayEnvironment, kt as createBackofficeLazyValue, F as createI18nInstance, fn as createInlineDataReader, m as createUseAuth, on as decodeBase64ToUtf8, an as encodeUtf8ToBase64, un as formatFileSize, t as getEnvironment, n as getNetwork, pn as identityView, d as mapWebAuthnRegistrationError, u as parseSignCount, pe as requireField, de as requireLinkedRecordId, e as resetRelayStore, fe as resolveAgentStartOutcome, ue as resolveMutationOutcome, me as resolveVisibleDetailPages, g as synchronizeAuthStatusQuery, a as useBackofficeConfig, le as useBackofficeListUrlState, Qt as useConditionalSubscription, tn as useCopyToClipboard, nn as useRefetchNeededReload, rn as useReviewStatusLabel };
|
|
1803
1800
|
|
|
1804
1801
|
//# sourceMappingURL=backoffice-react.js.map
|