@plumile/backoffice-react 0.1.92 → 0.1.94
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-DLc4aovr.js → AcceptInvitationScreen-B1IPafwD.js} +2 -2
- package/lib/esm/{AcceptInvitationScreen-DLc4aovr.js.map → AcceptInvitationScreen-B1IPafwD.js.map} +1 -1
- package/lib/esm/{BackofficeAcceptInvitationPage-D0dZnrV7.js → BackofficeAcceptInvitationPage-CEtApVwL.js} +3 -3
- package/lib/esm/{BackofficeAcceptInvitationPage-D0dZnrV7.js.map → BackofficeAcceptInvitationPage-CEtApVwL.js.map} +1 -1
- package/lib/esm/{BackofficeLayoutPage-j3VUX3Tu.js → BackofficeLayoutPage-CKXS0nDO.js} +2 -2
- package/lib/esm/{BackofficeLayoutPage-j3VUX3Tu.js.map → BackofficeLayoutPage-CKXS0nDO.js.map} +1 -1
- package/lib/esm/{BackofficeLoginPage-BkQHm0x6.js → BackofficeLoginPage-Cc3kcOQV.js} +3 -3
- package/lib/esm/{BackofficeLoginPage-BkQHm0x6.js.map → BackofficeLoginPage-Cc3kcOQV.js.map} +1 -1
- package/lib/esm/backoffice-react.js +294 -290
- package/lib/esm/backoffice-react.js.map +1 -1
- package/lib/esm/{environment-BXoBq_6e.js → environment-DQfVyWHJ.js} +76 -51
- package/lib/esm/environment-DQfVyWHJ.js.map +1 -0
- package/lib/esm/{synchronizeAuthStatusQuery-1juorUEX.js → synchronizeAuthStatusQuery-BoPKMrP1.js} +2 -2
- package/lib/esm/{synchronizeAuthStatusQuery-1juorUEX.js.map → synchronizeAuthStatusQuery-BoPKMrP1.js.map} +1 -1
- package/lib/esm/{useAuth-BdSNpGqe.js → useAuth-CheTnq60.js} +2 -2
- package/lib/esm/{useAuth-BdSNpGqe.js.map → useAuth-CheTnq60.js.map} +1 -1
- package/lib/esm/{useBackofficeAuth-C16Euw2X.js → useBackofficeAuth-ers1FUGe.js} +2 -2
- package/lib/esm/{useBackofficeAuth-C16Euw2X.js.map → useBackofficeAuth-ers1FUGe.js.map} +1 -1
- package/lib/types/hooks/useConditionalSubscription.d.ts +1 -0
- package/lib/types/hooks/useConditionalSubscription.d.ts.map +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/relay/RelayProvider.d.ts.map +1 -1
- package/lib/types/relay/environment.d.ts +13 -0
- package/lib/types/relay/environment.d.ts.map +1 -1
- package/package.json +5 -5
- package/lib/esm/environment-BXoBq_6e.js.map +0 -1
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { n as
|
|
4
|
-
import { i as
|
|
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
|
|
13
|
-
import { i as
|
|
14
|
-
import { a as
|
|
15
|
-
import { t as
|
|
16
|
-
import { i as
|
|
17
|
-
import { t as
|
|
18
|
-
import { n as
|
|
19
|
-
import { StrictMode as
|
|
20
|
-
import { createInstance as
|
|
21
|
-
import { I18nextProvider as
|
|
22
|
-
import { HttpRedirect as
|
|
23
|
-
import { BackofficeTabs as
|
|
24
|
-
import
|
|
25
|
-
import * as
|
|
26
|
-
import { jsx as
|
|
27
|
-
import { BACKOFFICE_LIST_DEFAULTS as
|
|
28
|
-
import { resolveBackofficeLoadedFacetModule as
|
|
29
|
-
import { buildBackofficeFallbackListHref as
|
|
30
|
-
import { setWhereValue as
|
|
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
|
+
import { t as s } from "./useRelayEnvironment-vQ86aW-n.js";
|
|
3
|
+
import { n as c, r as l, t as u } from "./useBackofficeReactTranslation-Btt58EIo.js";
|
|
4
|
+
import { i as d, t as f } from "./sidebarUtils-CuwJ_3mD.js";
|
|
5
|
+
import { a as p, i as m, n as h, r as g, t as _ } from "./useAuth-CheTnq60.js";
|
|
6
|
+
import { n as v, t as y } from "./synchronizeAuthStatusQuery-BoPKMrP1.js";
|
|
7
|
+
import { t as b } from "./AcceptInvitationScreen-B1IPafwD.js";
|
|
8
|
+
import { t as ee } from "./PasswordResetCompleteScreen-Cgg96DPo.js";
|
|
9
|
+
import { t as te } from "./PasswordResetRequestScreen-I1nFvGLd.js";
|
|
10
|
+
import { t as ne } from "./VerifyEmailScreen-Br5KyHjg.js";
|
|
11
|
+
import { t as re } from "./BackofficeErrorBoundary-BwRVSDHU.js";
|
|
12
|
+
import { i as x, n as ie, t as ae } from "./EntityFilterValue-BWUdPBwp.js";
|
|
13
|
+
import { i as oe, t as se } from "./EntityIdPickerDialog-Yhmr-WsV.js";
|
|
14
|
+
import { a as ce, i as le, r as ue, t as de } from "./BackofficeDetailPayload-P61MDRLE.js";
|
|
15
|
+
import { t as fe } from "./useBackofficeListUrlState-D4fx5O7u.js";
|
|
16
|
+
import { i as pe, n as me, r as he, t as ge } from "./mutationResult-CcQMY13J.js";
|
|
17
|
+
import { t as _e } from "./pageResolution-hAQA5C6S.js";
|
|
18
|
+
import { n as ve, t as ye } from "./BackofficeRightPageLayout-DZQvIHnj.js";
|
|
19
|
+
import { StrictMode as be, useCallback as S, useContext as xe, useEffect as C, useMemo as w, useRef as Se, useState as T, useSyncExternalStore as Ce } from "react";
|
|
20
|
+
import { createInstance as we } from "i18next";
|
|
21
|
+
import { I18nextProvider as Te, initReactI18next as Ee, useTranslation as E } from "react-i18next";
|
|
22
|
+
import { HttpRedirect as D, Link as De, RouterRenderer as Oe, RoutingContext as ke, createRouter as Ae, getResourcePage as O, r as je } from "@plumile/router";
|
|
23
|
+
import { BackofficeTabs as Me, DetailPageTemplate as Ne, SidebarSearchSvg as Pe, Spinner as Fe, ThemeProvider as Ie, cx as Le } from "@plumile/ui";
|
|
24
|
+
import Re from "i18next-browser-languagedetector";
|
|
25
|
+
import * as k from "react-relay";
|
|
26
|
+
import { jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
27
|
+
import { BACKOFFICE_LIST_DEFAULTS as ze } from "@plumile/backoffice-core/constants.js";
|
|
28
|
+
import { resolveBackofficeLoadedFacetModule as M } from "@plumile/backoffice-core/resolve.js";
|
|
29
|
+
import { buildBackofficeFallbackListHref as Be, buildBackofficeListLink as N } from "@plumile/backoffice-core/state/buildListHref.js";
|
|
30
|
+
import { setWhereValue as Ve } from "@plumile/backoffice-core/filters/where.js";
|
|
31
31
|
//#region src/i18n/createI18nInstance.ts
|
|
32
|
-
var
|
|
32
|
+
var He = { maximumFractionDigits: 2 }, Ue = {
|
|
33
33
|
style: "currency",
|
|
34
34
|
currency: "USD",
|
|
35
35
|
maximumFractionDigits: 2
|
|
36
|
-
},
|
|
36
|
+
}, We = { dateStyle: "medium" }, Ge = {
|
|
37
37
|
dateStyle: "medium",
|
|
38
38
|
timeStyle: "short"
|
|
39
|
-
},
|
|
40
|
-
function
|
|
39
|
+
}, Ke = { style: "percent" };
|
|
40
|
+
function qe(e) {
|
|
41
41
|
return Array.isArray(e) ? e[0] : e;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function P(e) {
|
|
44
44
|
if (e == null) return "";
|
|
45
45
|
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return String(e);
|
|
46
46
|
if (typeof e == "symbol") return e.toString();
|
|
@@ -51,21 +51,21 @@ function N(e) {
|
|
|
51
51
|
return "";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
if (t == null) return
|
|
56
|
-
let r =
|
|
57
|
-
if (t === "number" && typeof e == "number") return new Intl.NumberFormat(r,
|
|
58
|
-
if (t === "currency" && typeof e == "number") return new Intl.NumberFormat(r,
|
|
59
|
-
if (t === "percent" && typeof e == "number") return new Intl.NumberFormat(r,
|
|
54
|
+
function F(e, t, n) {
|
|
55
|
+
if (t == null) return P(e);
|
|
56
|
+
let r = qe(n);
|
|
57
|
+
if (t === "number" && typeof e == "number") return new Intl.NumberFormat(r, He).format(e);
|
|
58
|
+
if (t === "currency" && typeof e == "number") return new Intl.NumberFormat(r, Ue).format(e);
|
|
59
|
+
if (t === "percent" && typeof e == "number") return new Intl.NumberFormat(r, Ke).format(e);
|
|
60
60
|
if ((t === "date" || t === "datetime") && e != null) {
|
|
61
61
|
let n;
|
|
62
|
-
if (n = e instanceof Date ? e : typeof e == "string" || typeof e == "number" ? new Date(e) : new Date(
|
|
62
|
+
if (n = e instanceof Date ? e : typeof e == "string" || typeof e == "number" ? new Date(e) : new Date(P(e)), !Number.isNaN(n.getTime())) return t === "date" ? new Intl.DateTimeFormat(r, We).format(n) : new Intl.DateTimeFormat(r, Ge).format(n);
|
|
63
63
|
}
|
|
64
|
-
return
|
|
64
|
+
return P(e);
|
|
65
65
|
}
|
|
66
|
-
async function
|
|
67
|
-
let { resources: t, lng: n, fallbackLng: r = "en", initOptions: i = {}, instance: a =
|
|
68
|
-
o && a.use(
|
|
66
|
+
async function Je(e) {
|
|
67
|
+
let { resources: t, lng: n, fallbackLng: r = "en", initOptions: i = {}, instance: a = we(), useLanguageDetector: o = !1, detection: s } = e, { interpolation: c, ...l } = i;
|
|
68
|
+
o && a.use(Re), a.use(Ee);
|
|
69
69
|
try {
|
|
70
70
|
let e = {
|
|
71
71
|
...l,
|
|
@@ -80,11 +80,11 @@ async function Ge(e) {
|
|
|
80
80
|
let u = s ?? i.detection;
|
|
81
81
|
o && u != null && (e.detection = u), await a.init(e);
|
|
82
82
|
let { formatter: d } = a.services;
|
|
83
|
-
d != null && (d.add("number", (e, t) =>
|
|
83
|
+
d != null && (d.add("number", (e, t) => F(e, "number", t)), d.add("currency", (e, t) => F(e, "currency", t)), d.add("percent", (e, t) => F(e, "percent", t)), d.add("date", (e, t) => F(e, "date", t)), d.add("datetime", (e, t) => F(e, "datetime", t)));
|
|
84
84
|
} catch {}
|
|
85
85
|
return a;
|
|
86
86
|
}
|
|
87
|
-
var
|
|
87
|
+
var Ye = {
|
|
88
88
|
actions: {
|
|
89
89
|
form: {
|
|
90
90
|
cancel: "Cancel",
|
|
@@ -444,7 +444,7 @@ var Ke = {
|
|
|
444
444
|
sections: { pinned: "Pinned" }
|
|
445
445
|
},
|
|
446
446
|
tools: { output: "Output" }
|
|
447
|
-
},
|
|
447
|
+
}, Xe = {
|
|
448
448
|
actions: {
|
|
449
449
|
form: {
|
|
450
450
|
cancel: "Annuler",
|
|
@@ -806,14 +806,14 @@ var Ke = {
|
|
|
806
806
|
sections: { pinned: "Épinglés" }
|
|
807
807
|
},
|
|
808
808
|
tools: { output: "Résultat" }
|
|
809
|
-
},
|
|
810
|
-
function
|
|
809
|
+
}, I = (e) => typeof e == "object" && !!e && !Array.isArray(e), L = (e) => I(e) ? e : {};
|
|
810
|
+
function Ze(...e) {
|
|
811
811
|
let t = {};
|
|
812
812
|
return e.forEach((e) => {
|
|
813
813
|
Object.entries(e).forEach(([e, n]) => {
|
|
814
814
|
let r = t[e];
|
|
815
|
-
if (
|
|
816
|
-
t[e] =
|
|
815
|
+
if (I(r) && I(n)) {
|
|
816
|
+
t[e] = Ze(L(r), L(n));
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
819
|
t[e] = n;
|
|
@@ -822,39 +822,39 @@ function Ye(...e) {
|
|
|
822
822
|
}
|
|
823
823
|
//#endregion
|
|
824
824
|
//#region src/i18n/resources.ts
|
|
825
|
-
var
|
|
826
|
-
en: { backofficeReact:
|
|
827
|
-
fr: { backofficeReact:
|
|
828
|
-
},
|
|
829
|
-
function
|
|
830
|
-
let t = {}, n =
|
|
825
|
+
var Qe = {
|
|
826
|
+
en: { backofficeReact: Ye },
|
|
827
|
+
fr: { backofficeReact: Xe }
|
|
828
|
+
}, $e = (e) => typeof e == "object" && !!e, R = (e) => $e(e) ? e : {};
|
|
829
|
+
function et(e = {}) {
|
|
830
|
+
let t = {}, n = Qe;
|
|
831
831
|
return new Set([...Object.keys(n), ...Object.keys(e)]).forEach((r) => {
|
|
832
|
-
let i =
|
|
832
|
+
let i = R(n[r]), a = R(e[r]);
|
|
833
833
|
t[r] = {
|
|
834
834
|
...i,
|
|
835
835
|
...a,
|
|
836
|
-
backofficeReact:
|
|
836
|
+
backofficeReact: Ze(R(i.backofficeReact), R(a.backofficeReact))
|
|
837
837
|
};
|
|
838
838
|
}), t;
|
|
839
839
|
}
|
|
840
840
|
//#endregion
|
|
841
841
|
//#region src/relay/RelayProvider.tsx
|
|
842
|
-
var { RelayEnvironmentProvider:
|
|
843
|
-
environment:
|
|
842
|
+
var { RelayEnvironmentProvider: tt } = k, nt = ({ children: e }) => (Ce(a, () => t().generation, () => t().generation), /* @__PURE__ */ A(tt, {
|
|
843
|
+
environment: n(),
|
|
844
844
|
children: e
|
|
845
|
-
}), { loadQuery:
|
|
845
|
+
})), { loadQuery: z, usePreloadedQuery: rt } = k, it = O("WrapperPage", async () => ({ default: (await import("@plumile/ui")).WrapperPage })), at = O("BackofficeLayoutPage", async () => import("./BackofficeLayoutPage-CKXS0nDO.js")), ot = O("BackofficeEntityListPage", async () => import("./BackofficeEntityListPage-C8Ucmc_E.js")), st = O("BackofficeEntityDetailPage", async () => import("./BackofficeEntityDetailPage-DPFXbJxC.js")), ct = O("BackofficeEntityDetailLayoutPage", async () => import("./BackofficeEntityDetailLayoutPage-DXjRqvcZ.js")), lt = O("BackofficeEntityDetailUnknownPageRedirect", async () => import("./BackofficeEntityDetailUnknownPageRedirect-DRWTeox-.js")), ut = O("BackofficeDashboardPage", async () => import("./BackofficeDashboardPage-YWvoQODn.js")), dt = O("BackofficeLoginPage", async () => import("./BackofficeLoginPage-Cc3kcOQV.js")), ft = O("BackofficePasswordResetRequestPage", async () => import("./BackofficePasswordResetRequestPage-BJOrQXcy.js")), pt = O("BackofficePasswordResetCompletePage", async () => import("./BackofficePasswordResetCompletePage-CF_0t3Nq.js")), mt = O("BackofficeVerifyEmailPage", async () => import("./BackofficeVerifyEmailPage-C81LlsNM.js")), ht = O("BackofficeAcceptInvitationPage", async () => import("./BackofficeAcceptInvitationPage-CEtApVwL.js")), gt = (e) => {
|
|
846
846
|
let t = e.trim();
|
|
847
847
|
return t === "" || t === "/" ? "" : t.replace(/^\/+|\/+$/g, "");
|
|
848
|
-
},
|
|
848
|
+
}, _t = (e) => {
|
|
849
849
|
let t = e.trim();
|
|
850
850
|
return t === "" ? "/" : `/${t}`.replace(/\/+/g, "/");
|
|
851
851
|
}, B = (e, t) => {
|
|
852
852
|
let n = t.replace(/^\/+|\/+$/g, "");
|
|
853
853
|
return e === "" ? n : n === "" ? e : `${e}/${n}`;
|
|
854
|
-
},
|
|
855
|
-
let n =
|
|
854
|
+
}, vt = (e, t) => _t(B(e, t)), yt = (e, t) => {
|
|
855
|
+
let n = _t(e), r = t === "" ? "" : `/${t}`;
|
|
856
856
|
return r !== "" && n.startsWith(r) ? n.slice(r.length).replace(/^\/+/, "") : n.replace(/^\/+/, "");
|
|
857
|
-
},
|
|
857
|
+
}, bt = (e, t) => {
|
|
858
858
|
if (e?.routes == null) return null;
|
|
859
859
|
for (let n = e.routes.length - 1; n >= 0; --n) {
|
|
860
860
|
let r = e.routes[n];
|
|
@@ -864,7 +864,7 @@ var { RelayEnvironmentProvider: Qe } = O, $e = ({ children: e }) => /* @__PURE__
|
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
return null;
|
|
867
|
-
},
|
|
867
|
+
}, xt = (e) => {
|
|
868
868
|
let t = new URLSearchParams();
|
|
869
869
|
return Object.entries(e).forEach(([e, n]) => {
|
|
870
870
|
if (n != null) {
|
|
@@ -877,38 +877,38 @@ var { RelayEnvironmentProvider: Qe } = O, $e = ({ children: e }) => /* @__PURE__
|
|
|
877
877
|
t.set(e, String(n));
|
|
878
878
|
}
|
|
879
879
|
}), t;
|
|
880
|
-
}, V =
|
|
881
|
-
function
|
|
882
|
-
let { basePath: t, entityManifest: n, entityRegistry: r, sidebar: i, auth: a, dashboard: o } = e, s =
|
|
880
|
+
}, V = je;
|
|
881
|
+
function St(e) {
|
|
882
|
+
let { basePath: t, entityManifest: n, entityRegistry: r, sidebar: i, auth: a, dashboard: o } = e, s = gt(t), c = B(s, "login"), l = B(s, "login/reset"), u = B(s, "login/reset/complete"), p = B(s, "verify-email"), m = B(s, "accept-invitation"), h = vt(s, "login"), g = f(d(n, i)), _ = /* @__PURE__ */ new Map();
|
|
883
883
|
g.forEach((e, t) => {
|
|
884
884
|
_.set(t, e.groupId);
|
|
885
885
|
});
|
|
886
|
-
let v = /* @__PURE__ */ new WeakMap(), y = i?.permissionsQuery,
|
|
886
|
+
let v = /* @__PURE__ */ new WeakMap(), y = i?.permissionsQuery, b = async ({ context: e }) => {
|
|
887
887
|
let t = await a.session.load();
|
|
888
888
|
return {
|
|
889
|
-
permissionsQuery: y == null ? null :
|
|
890
|
-
authStatusQuery: t.authStatusQuery == null ? null :
|
|
889
|
+
permissionsQuery: y == null ? null : z(e.relayEnvironment, y, {}),
|
|
890
|
+
authStatusQuery: t.authStatusQuery == null ? null : z(e.relayEnvironment, t.authStatusQuery, {}, { fetchPolicy: "network-only" })
|
|
891
891
|
};
|
|
892
|
-
},
|
|
892
|
+
}, ee = V({
|
|
893
893
|
path: "",
|
|
894
|
-
resourcePage:
|
|
894
|
+
resourcePage: ut,
|
|
895
895
|
prepare: async () => (o == null || await o.load(), null),
|
|
896
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
897
|
-
}),
|
|
898
|
-
let t = e.routes.list, n =
|
|
896
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
|
|
897
|
+
}), te = Object.values(n).filter((e) => e.kind === "list-detail").map((e) => {
|
|
898
|
+
let t = e.routes.list, n = yt(t, s), i = [];
|
|
899
899
|
if (e.hasList) {
|
|
900
900
|
let t = V({
|
|
901
901
|
path: "",
|
|
902
|
-
resourcePage:
|
|
902
|
+
resourcePage: ot,
|
|
903
903
|
prepare: async ({ context: t, query: n }) => {
|
|
904
904
|
let { config: i } = await r.loadListEntity(e.id), { list: a, listUrlCodec: o, listDefaults: s } = i;
|
|
905
905
|
if (o == null || s == null) throw Error(`Backoffice entity ${e.id} does not expose a list configuration.`);
|
|
906
|
-
let c =
|
|
906
|
+
let c = xt(n), l = o.parse(c), { pageSize: u } = ze, d = {
|
|
907
907
|
where: l.where,
|
|
908
908
|
sort: l.sort ?? s.sort,
|
|
909
909
|
count: u,
|
|
910
910
|
cursor: null
|
|
911
|
-
}, f = a.buildVariables == null ? d : a.buildVariables(d), p =
|
|
911
|
+
}, f = a.buildVariables == null ? d : a.buildVariables(d), p = z(t.relayEnvironment, a.query, f);
|
|
912
912
|
return {
|
|
913
913
|
entityId: e.id,
|
|
914
914
|
entityManifest: e,
|
|
@@ -919,7 +919,7 @@ function vt(e) {
|
|
|
919
919
|
render: ({ prepared: e, Component: t }) => {
|
|
920
920
|
if (t == null) return null;
|
|
921
921
|
let n = e;
|
|
922
|
-
return /* @__PURE__ */
|
|
922
|
+
return /* @__PURE__ */ A(t, {
|
|
923
923
|
entityManifest: n.entityManifest,
|
|
924
924
|
config: n.entityConfig,
|
|
925
925
|
prepared: n
|
|
@@ -930,9 +930,9 @@ function vt(e) {
|
|
|
930
930
|
}
|
|
931
931
|
let a = V({
|
|
932
932
|
path: ":id",
|
|
933
|
-
resourcePage:
|
|
933
|
+
resourcePage: ct,
|
|
934
934
|
prepare: async ({ context: t, variables: n }) => {
|
|
935
|
-
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 =
|
|
935
|
+
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
936
|
return {
|
|
937
937
|
entityId: e.id,
|
|
938
938
|
entityManifest: e,
|
|
@@ -944,7 +944,7 @@ function vt(e) {
|
|
|
944
944
|
render: ({ children: e, prepared: t, Component: n }) => {
|
|
945
945
|
if (n == null) return null;
|
|
946
946
|
let r = t;
|
|
947
|
-
return /* @__PURE__ */
|
|
947
|
+
return /* @__PURE__ */ A(n, {
|
|
948
948
|
entityManifest: r.entityManifest,
|
|
949
949
|
config: r.entityConfig,
|
|
950
950
|
prepared: r,
|
|
@@ -954,7 +954,7 @@ function vt(e) {
|
|
|
954
954
|
children: [
|
|
955
955
|
V({
|
|
956
956
|
path: "",
|
|
957
|
-
resourcePage:
|
|
957
|
+
resourcePage: it,
|
|
958
958
|
prepare: ({ variables: t }) => {
|
|
959
959
|
let n = String(t.id ?? "").trim();
|
|
960
960
|
return { redirectTo: n === "" ? null : e.routes.detailPage(n, e.defaultDetailPageId ?? "overview") };
|
|
@@ -962,14 +962,14 @@ function vt(e) {
|
|
|
962
962
|
render: ({ prepared: e }) => {
|
|
963
963
|
let t = e.redirectTo ?? null;
|
|
964
964
|
if (t == null) return null;
|
|
965
|
-
throw new
|
|
965
|
+
throw new D(t);
|
|
966
966
|
}
|
|
967
967
|
}),
|
|
968
968
|
...(e.detailPages ?? []).map((t) => V({
|
|
969
969
|
path: t.pathSegment,
|
|
970
|
-
resourcePage:
|
|
970
|
+
resourcePage: st,
|
|
971
971
|
prepare: async ({ context: n, variables: i }) => {
|
|
972
|
-
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 =
|
|
972
|
+
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
973
|
return {
|
|
974
974
|
entityId: e.id,
|
|
975
975
|
entityManifest: e,
|
|
@@ -985,7 +985,7 @@ function vt(e) {
|
|
|
985
985
|
render: ({ prepared: e, Component: t }) => {
|
|
986
986
|
if (t == null) return null;
|
|
987
987
|
let n = e;
|
|
988
|
-
return /* @__PURE__ */
|
|
988
|
+
return /* @__PURE__ */ A(t, {
|
|
989
989
|
entityManifest: n.entityManifest,
|
|
990
990
|
config: n.entityConfig,
|
|
991
991
|
prepared: n
|
|
@@ -994,7 +994,7 @@ function vt(e) {
|
|
|
994
994
|
})),
|
|
995
995
|
V({
|
|
996
996
|
path: ":pagePath",
|
|
997
|
-
resourcePage:
|
|
997
|
+
resourcePage: lt,
|
|
998
998
|
prepare: async ({ variables: t }) => {
|
|
999
999
|
let n = await r.loadDetailLayoutEntity(e.id), i = String(t.id ?? ""), a = String(t.pagePath ?? "");
|
|
1000
1000
|
return {
|
|
@@ -1007,7 +1007,7 @@ function vt(e) {
|
|
|
1007
1007
|
render: ({ prepared: e, Component: t }) => {
|
|
1008
1008
|
if (t == null) return null;
|
|
1009
1009
|
let n = e;
|
|
1010
|
-
return /* @__PURE__ */
|
|
1010
|
+
return /* @__PURE__ */ A(t, {
|
|
1011
1011
|
entityManifest: n.entityManifest,
|
|
1012
1012
|
config: n.entityConfig,
|
|
1013
1013
|
prepared: n
|
|
@@ -1019,11 +1019,11 @@ function vt(e) {
|
|
|
1019
1019
|
return v.set(a, e.id), i.push(a), V({
|
|
1020
1020
|
path: n,
|
|
1021
1021
|
children: i,
|
|
1022
|
-
resourcePage:
|
|
1022
|
+
resourcePage: it
|
|
1023
1023
|
});
|
|
1024
|
-
}),
|
|
1024
|
+
}), ne = Object.values(n).filter((e) => e.kind === "tool").map((t) => {
|
|
1025
1025
|
let n = V({
|
|
1026
|
-
path:
|
|
1026
|
+
path: yt(t.routes.list, s),
|
|
1027
1027
|
resourcePage: e.toolsOperationPage ?? null,
|
|
1028
1028
|
prepare: async () => {
|
|
1029
1029
|
let e = await r.loadToolEntity(t.id);
|
|
@@ -1036,7 +1036,7 @@ function vt(e) {
|
|
|
1036
1036
|
render: ({ prepared: e, Component: t }) => {
|
|
1037
1037
|
if (t == null) return null;
|
|
1038
1038
|
let n = e;
|
|
1039
|
-
return /* @__PURE__ */
|
|
1039
|
+
return /* @__PURE__ */ A(t, {
|
|
1040
1040
|
entityManifest: n.entityManifest,
|
|
1041
1041
|
operation: n.entityConfig.tool.operation,
|
|
1042
1042
|
toolId: n.entityConfig.id
|
|
@@ -1044,19 +1044,19 @@ function vt(e) {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
});
|
|
1046
1046
|
return v.set(n, t.id), n;
|
|
1047
|
-
}),
|
|
1047
|
+
}), re = V({
|
|
1048
1048
|
path: s,
|
|
1049
|
-
resourcePage:
|
|
1050
|
-
prepare:
|
|
1049
|
+
resourcePage: at,
|
|
1050
|
+
prepare: b,
|
|
1051
1051
|
render: ({ children: e, prepared: t, route: n, Component: r }) => {
|
|
1052
1052
|
if (r == null) return null;
|
|
1053
|
-
let o = t, s =
|
|
1053
|
+
let o = t, s = bt(n, v), c = s == null ? null : _.get(s) ?? null, l = null, u = a.session.get()?.authStatusQuery ?? null;
|
|
1054
1054
|
if (u != null && o?.authStatusQuery != null) {
|
|
1055
|
-
l =
|
|
1055
|
+
l = rt(u, o.authStatusQuery);
|
|
1056
1056
|
let { isLoggedIn: e } = l;
|
|
1057
|
-
if (!e) throw new
|
|
1057
|
+
if (!e) throw new D(h);
|
|
1058
1058
|
}
|
|
1059
|
-
return /* @__PURE__ */
|
|
1059
|
+
return /* @__PURE__ */ A(r, {
|
|
1060
1060
|
permissionsQuery: i?.permissionsQuery,
|
|
1061
1061
|
prepared: o?.permissionsQuery ?? null,
|
|
1062
1062
|
authStatus: l,
|
|
@@ -1065,71 +1065,71 @@ function vt(e) {
|
|
|
1065
1065
|
});
|
|
1066
1066
|
},
|
|
1067
1067
|
children: [
|
|
1068
|
-
|
|
1069
|
-
...
|
|
1070
|
-
...
|
|
1068
|
+
ee,
|
|
1069
|
+
...te,
|
|
1070
|
+
...ne
|
|
1071
1071
|
]
|
|
1072
|
-
}),
|
|
1072
|
+
}), x = [
|
|
1073
1073
|
V({
|
|
1074
|
-
path:
|
|
1075
|
-
resourcePage:
|
|
1074
|
+
path: c,
|
|
1075
|
+
resourcePage: dt,
|
|
1076
1076
|
prepare: async ({ context: e }) => {
|
|
1077
1077
|
let t = await a.login.load();
|
|
1078
|
-
return { query:
|
|
1078
|
+
return { query: z(e.relayEnvironment, t.loginQuery, {}) };
|
|
1079
1079
|
},
|
|
1080
|
-
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */
|
|
1080
|
+
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */ A(t, { prepared: e })
|
|
1081
1081
|
}),
|
|
1082
1082
|
V({
|
|
1083
|
-
path:
|
|
1084
|
-
resourcePage:
|
|
1083
|
+
path: l,
|
|
1084
|
+
resourcePage: ft,
|
|
1085
1085
|
prepare: async () => (await a.passwordResetRequest.load(), null),
|
|
1086
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
1086
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
|
|
1087
1087
|
}),
|
|
1088
1088
|
V({
|
|
1089
|
-
path:
|
|
1090
|
-
resourcePage:
|
|
1089
|
+
path: u,
|
|
1090
|
+
resourcePage: pt,
|
|
1091
1091
|
prepare: async () => (await a.passwordResetComplete.load(), null),
|
|
1092
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
1092
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
|
|
1093
1093
|
}),
|
|
1094
1094
|
V({
|
|
1095
1095
|
path: p,
|
|
1096
|
-
resourcePage:
|
|
1096
|
+
resourcePage: mt,
|
|
1097
1097
|
prepare: async () => (await a.verifyEmail.load(), null),
|
|
1098
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
1098
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
|
|
1099
1099
|
})
|
|
1100
1100
|
];
|
|
1101
|
-
return (a.hasAcceptInvitation === !0 || a.acceptInvitation != null) &&
|
|
1101
|
+
return (a.hasAcceptInvitation === !0 || a.acceptInvitation != null) && x.push(V({
|
|
1102
1102
|
path: m,
|
|
1103
|
-
resourcePage:
|
|
1103
|
+
resourcePage: ht,
|
|
1104
1104
|
prepare: async () => (await a.acceptInvitation?.load(), null),
|
|
1105
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
1106
|
-
})),
|
|
1105
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
|
|
1106
|
+
})), x.push(re), x;
|
|
1107
1107
|
}
|
|
1108
1108
|
//#endregion
|
|
1109
1109
|
//#region src/components/backoffice/routing/backofficeRouteFallback.css.ts
|
|
1110
|
-
var
|
|
1111
|
-
let { t: e, i18n: t } =
|
|
1112
|
-
return t.isInitialized && (n = e("common.loading")), /* @__PURE__ */
|
|
1113
|
-
className:
|
|
1110
|
+
var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop txvbqbv43 txvbqbva1", wt = "txvbqbva3", Tt = () => {
|
|
1111
|
+
let { t: e, i18n: t } = E("backofficeReact", { useSuspense: !1 }), n = "Loading...";
|
|
1112
|
+
return t.isInitialized && (n = e("common.loading")), /* @__PURE__ */ j("div", {
|
|
1113
|
+
className: Ct,
|
|
1114
1114
|
role: "status",
|
|
1115
1115
|
"aria-live": "polite",
|
|
1116
1116
|
"aria-busy": "true",
|
|
1117
|
-
children: [/* @__PURE__ */
|
|
1118
|
-
className:
|
|
1117
|
+
children: [/* @__PURE__ */ A(Fe, { size: 28 }), /* @__PURE__ */ A("div", {
|
|
1118
|
+
className: wt,
|
|
1119
1119
|
children: n
|
|
1120
1120
|
})]
|
|
1121
1121
|
});
|
|
1122
|
-
},
|
|
1123
|
-
className:
|
|
1122
|
+
}, Et = "_11exksg1 txvbqbv45 txvbqbptp txvbqbt7y txvbqbdqg txvbqbl7g txvbqb2k txvbqbu7g txvbqbuwp", Dt = "_11exksg2 txvbqbcgg txvbqbuog", Ot = () => /* @__PURE__ */ A("div", {
|
|
1123
|
+
className: Et,
|
|
1124
1124
|
"aria-hidden": "true",
|
|
1125
|
-
children: /* @__PURE__ */
|
|
1126
|
-
}),
|
|
1125
|
+
children: /* @__PURE__ */ A("div", { className: Dt })
|
|
1126
|
+
}), kt = "cache-first", H = "detail-page", U = "detail-layout", W = "list", G = "picker", K = "tool", q = (e) => e.kind === "list-detail", At = (e) => e.kind === "tool", J = (e, t, n) => t === H ? `${e}:${t}:${n ?? ""}` : `${e}:${t}`, jt = (e) => e instanceof Error ? e : Error(String(e)), Y = (e) => e?.status !== "loaded" || e.module == null ? null : e.module, X = (e, t) => {
|
|
1127
1127
|
let n = e[t];
|
|
1128
1128
|
if (n == null) throw Error(`Unknown backoffice entity: ${t}`);
|
|
1129
1129
|
return n;
|
|
1130
|
-
},
|
|
1130
|
+
}, Mt = (e, t) => {
|
|
1131
1131
|
let n = /* @__PURE__ */ new Map(), r = (t) => e[t] ?? null, i = async (e, t, r) => {
|
|
1132
|
-
if ((t?.mode ??
|
|
1132
|
+
if ((t?.mode ?? kt) === "cache-first") {
|
|
1133
1133
|
let t = Y(n.get(e));
|
|
1134
1134
|
if (t != null) return t;
|
|
1135
1135
|
let r = n.get(e);
|
|
@@ -1139,7 +1139,7 @@ var yt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1139
1139
|
status: "loaded",
|
|
1140
1140
|
module: t
|
|
1141
1141
|
}), t)).catch((t) => {
|
|
1142
|
-
let r =
|
|
1142
|
+
let r = jt(t);
|
|
1143
1143
|
throw n.set(e, {
|
|
1144
1144
|
status: "error",
|
|
1145
1145
|
error: r
|
|
@@ -1163,7 +1163,7 @@ var yt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1163
1163
|
let o = a.facets.list;
|
|
1164
1164
|
if (o == null) throw Error(`Backoffice entity ${n} does not expose a list facet.`);
|
|
1165
1165
|
return i(J(n, W), r, async () => {
|
|
1166
|
-
let e =
|
|
1166
|
+
let e = M(a, await o(), t);
|
|
1167
1167
|
if (e.kind !== W) throw Error(`Backoffice entity ${n} did not resolve to a list facet.`);
|
|
1168
1168
|
return e;
|
|
1169
1169
|
});
|
|
@@ -1174,7 +1174,7 @@ var yt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1174
1174
|
let o = a.facets.picker;
|
|
1175
1175
|
if (o == null) throw Error(`Backoffice entity ${n} does not expose a picker facet.`);
|
|
1176
1176
|
return i(J(n, G), r, async () => {
|
|
1177
|
-
let e =
|
|
1177
|
+
let e = M(a, await o(), t);
|
|
1178
1178
|
if (e.kind !== G) throw Error(`Backoffice entity ${n} did not resolve to a picker facet.`);
|
|
1179
1179
|
return e;
|
|
1180
1180
|
});
|
|
@@ -1183,7 +1183,7 @@ var yt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1183
1183
|
let a = X(e, n);
|
|
1184
1184
|
if (!q(a)) throw Error(`Backoffice entity ${n} does not expose a detail-layout facet.`);
|
|
1185
1185
|
return i(J(n, U), r, async () => {
|
|
1186
|
-
let e =
|
|
1186
|
+
let e = M(a, await a.facets.detailLayout(), t);
|
|
1187
1187
|
if (e.kind !== U) throw Error(`Backoffice entity ${n} did not resolve to a detail-layout facet.`);
|
|
1188
1188
|
return e;
|
|
1189
1189
|
});
|
|
@@ -1192,16 +1192,16 @@ var yt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1192
1192
|
let o = X(e, n);
|
|
1193
1193
|
if (!q(o)) throw Error(`Backoffice entity ${n} does not expose a detail-page facet.`);
|
|
1194
1194
|
return i(J(n, H, r), a, async () => {
|
|
1195
|
-
let e =
|
|
1195
|
+
let e = M(o, await o.facets.detailPage(r), t);
|
|
1196
1196
|
if (e.kind !== H) throw Error(`Backoffice entity ${n} did not resolve to a detail-page facet.`);
|
|
1197
1197
|
return e;
|
|
1198
1198
|
});
|
|
1199
1199
|
},
|
|
1200
1200
|
loadToolEntity: async (n, r) => {
|
|
1201
1201
|
let a = X(e, n);
|
|
1202
|
-
if (!
|
|
1202
|
+
if (!At(a)) throw Error(`Backoffice entity ${n} does not expose a tool facet.`);
|
|
1203
1203
|
return i(J(n, K), r, async () => {
|
|
1204
|
-
let e =
|
|
1204
|
+
let e = M(a, await a.facets.tool(), t);
|
|
1205
1205
|
if (e.kind !== K) throw Error(`Backoffice entity ${n} did not resolve to a tool facet.`);
|
|
1206
1206
|
return e;
|
|
1207
1207
|
});
|
|
@@ -1210,15 +1210,15 @@ var yt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1210
1210
|
}, Z = (e) => e.trim() === "" || e === "/" ? "/" : e.startsWith("/") ? e.endsWith("/") ? e.slice(0, -1) : e : `/${e}`, Q = (e, t) => {
|
|
1211
1211
|
let n = Z(t), r = Z(e);
|
|
1212
1212
|
return r === "/" || n === r || n.startsWith(`${r}/`) ? n : n === "/" ? r : `${r}${n}`;
|
|
1213
|
-
},
|
|
1213
|
+
}, Nt = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => [e, {
|
|
1214
1214
|
...n,
|
|
1215
1215
|
routes: {
|
|
1216
1216
|
list: Q(t, n.routes.list),
|
|
1217
1217
|
detail: (e) => Q(t, n.routes.detail(e)),
|
|
1218
1218
|
detailPage: (e, r) => Q(t, n.routes.detailPage(e, r))
|
|
1219
1219
|
}
|
|
1220
|
-
}])),
|
|
1221
|
-
let n =
|
|
1220
|
+
}])), Pt = ({ routes: e, instrumentations: t }) => {
|
|
1221
|
+
let n = s(), r = w(() => ({ relayEnvironment: n }), [n]), i = w(() => Ae(e, {
|
|
1222
1222
|
context: r,
|
|
1223
1223
|
instrumentations: t
|
|
1224
1224
|
}), [
|
|
@@ -1226,44 +1226,44 @@ var yt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1226
1226
|
e,
|
|
1227
1227
|
r
|
|
1228
1228
|
]);
|
|
1229
|
-
return
|
|
1230
|
-
|
|
1231
|
-
}, [
|
|
1232
|
-
value:
|
|
1233
|
-
children: /* @__PURE__ */
|
|
1229
|
+
return C(() => () => {
|
|
1230
|
+
i.cleanup();
|
|
1231
|
+
}, [i]), /* @__PURE__ */ A(ke.Provider, {
|
|
1232
|
+
value: i.context,
|
|
1233
|
+
children: /* @__PURE__ */ A(Oe, {
|
|
1234
1234
|
enableTransition: !0,
|
|
1235
|
-
fallback: /* @__PURE__ */
|
|
1236
|
-
pending: /* @__PURE__ */
|
|
1235
|
+
fallback: /* @__PURE__ */ A(Tt, {}),
|
|
1236
|
+
pending: /* @__PURE__ */ A(Ot, {})
|
|
1237
1237
|
})
|
|
1238
1238
|
});
|
|
1239
|
-
},
|
|
1240
|
-
let t = Z(e.basePath ?? "/"), n =
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
httpUrl:
|
|
1244
|
-
wsUrl:
|
|
1245
|
-
getDataId:
|
|
1246
|
-
logEvents:
|
|
1247
|
-
getAuthHeaders:
|
|
1239
|
+
}, Ft = (e) => {
|
|
1240
|
+
let t = Z(e.basePath ?? "/"), n = w(() => Nt(e.entityManifest, t), [t, e.entityManifest]), r = w(() => Mt(n, { basePath: t }), [t, n]), i = e.graphql;
|
|
1241
|
+
C(() => {
|
|
1242
|
+
o({
|
|
1243
|
+
httpUrl: i.httpUrl ?? i.endpoint,
|
|
1244
|
+
wsUrl: i.wsUrl ?? i.wsEndpoint,
|
|
1245
|
+
getDataId: i.getDataId,
|
|
1246
|
+
logEvents: i.logEvents,
|
|
1247
|
+
getAuthHeaders: i.getAuthHeaders
|
|
1248
1248
|
});
|
|
1249
1249
|
}, [
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1250
|
+
i.endpoint,
|
|
1251
|
+
i.getAuthHeaders,
|
|
1252
|
+
i.getDataId,
|
|
1253
|
+
i.httpUrl,
|
|
1254
|
+
i.logEvents,
|
|
1255
|
+
i.wsEndpoint,
|
|
1256
|
+
i.wsUrl
|
|
1257
1257
|
]);
|
|
1258
|
-
let
|
|
1259
|
-
return
|
|
1258
|
+
let a = w(() => et(e.i18n?.resources ?? {}), [e.i18n?.resources]), s = w(() => e.i18n?.instance ?? we(), [e.i18n?.instance]);
|
|
1259
|
+
return C(() => {
|
|
1260
1260
|
let t = e.i18n?.initOptions ?? {}, n = t.defaultNS ?? "translations", r = t.ns ?? [
|
|
1261
1261
|
"backofficeReact",
|
|
1262
1262
|
"translations",
|
|
1263
1263
|
"ui"
|
|
1264
1264
|
];
|
|
1265
|
-
|
|
1266
|
-
resources:
|
|
1265
|
+
Je({
|
|
1266
|
+
resources: a,
|
|
1267
1267
|
lng: e.i18n?.lng,
|
|
1268
1268
|
fallbackLng: e.i18n?.fallbackLng,
|
|
1269
1269
|
initOptions: {
|
|
@@ -1271,26 +1271,26 @@ var yt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1271
1271
|
defaultNS: n,
|
|
1272
1272
|
ns: r
|
|
1273
1273
|
},
|
|
1274
|
-
instance:
|
|
1274
|
+
instance: s,
|
|
1275
1275
|
useLanguageDetector: e.i18n?.useLanguageDetector,
|
|
1276
1276
|
detection: e.i18n?.detection
|
|
1277
1277
|
}).catch(console.error);
|
|
1278
1278
|
}, [
|
|
1279
|
-
c,
|
|
1280
1279
|
s,
|
|
1280
|
+
a,
|
|
1281
1281
|
e.i18n?.initOptions,
|
|
1282
1282
|
e.i18n?.detection,
|
|
1283
1283
|
e.i18n?.fallbackLng,
|
|
1284
1284
|
e.i18n?.lng,
|
|
1285
1285
|
e.i18n?.useLanguageDetector
|
|
1286
|
-
]), /* @__PURE__ */
|
|
1287
|
-
i18n:
|
|
1288
|
-
children: /* @__PURE__ */
|
|
1289
|
-
value:
|
|
1286
|
+
]), /* @__PURE__ */ A(be, { children: /* @__PURE__ */ A(Te, {
|
|
1287
|
+
i18n: s,
|
|
1288
|
+
children: /* @__PURE__ */ A(Ie, { children: /* @__PURE__ */ A(nt, { children: /* @__PURE__ */ A(c, {
|
|
1289
|
+
value: w(() => ({
|
|
1290
1290
|
basePath: t,
|
|
1291
1291
|
entities: n,
|
|
1292
1292
|
entityManifest: n,
|
|
1293
|
-
entityRegistry:
|
|
1293
|
+
entityRegistry: r,
|
|
1294
1294
|
filterColumnAliases: e.filterColumnAliases,
|
|
1295
1295
|
sidebar: e.sidebar,
|
|
1296
1296
|
dashboard: e.dashboard,
|
|
@@ -1301,16 +1301,16 @@ var yt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1301
1301
|
e.auth,
|
|
1302
1302
|
e.dashboard,
|
|
1303
1303
|
n,
|
|
1304
|
-
|
|
1304
|
+
r,
|
|
1305
1305
|
e.filterColumnAliases,
|
|
1306
1306
|
e.graphql,
|
|
1307
1307
|
e.sidebar
|
|
1308
1308
|
]),
|
|
1309
|
-
children: /* @__PURE__ */
|
|
1310
|
-
routes:
|
|
1309
|
+
children: /* @__PURE__ */ A(Pt, {
|
|
1310
|
+
routes: w(() => St({
|
|
1311
1311
|
basePath: t,
|
|
1312
1312
|
entityManifest: n,
|
|
1313
|
-
entityRegistry:
|
|
1313
|
+
entityRegistry: r,
|
|
1314
1314
|
sidebar: e.sidebar,
|
|
1315
1315
|
auth: e.auth,
|
|
1316
1316
|
dashboard: e.dashboard,
|
|
@@ -1318,7 +1318,7 @@ var yt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1318
1318
|
}), [
|
|
1319
1319
|
t,
|
|
1320
1320
|
n,
|
|
1321
|
-
|
|
1321
|
+
r,
|
|
1322
1322
|
e.auth,
|
|
1323
1323
|
e.dashboard,
|
|
1324
1324
|
e.toolsOperationPage,
|
|
@@ -1328,7 +1328,7 @@ var yt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1328
1328
|
})
|
|
1329
1329
|
}) }) })
|
|
1330
1330
|
}) });
|
|
1331
|
-
},
|
|
1331
|
+
}, It = (e) => {
|
|
1332
1332
|
let t = null, n = null;
|
|
1333
1333
|
return {
|
|
1334
1334
|
get: () => t,
|
|
@@ -1336,15 +1336,15 @@ var yt = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1336
1336
|
n = null;
|
|
1337
1337
|
}), n)
|
|
1338
1338
|
};
|
|
1339
|
-
},
|
|
1339
|
+
}, Lt = (e, t) => {
|
|
1340
1340
|
let n = e ?? [], r = t ?? [];
|
|
1341
1341
|
return n.length === r.length ? n.every((e, t) => e === r[t]) : !1;
|
|
1342
1342
|
};
|
|
1343
1343
|
function $(e, t, n) {
|
|
1344
1344
|
let { filters: r } = e.list;
|
|
1345
|
-
return r.find((e) => String(e.whereKey ?? e.id) === t &&
|
|
1345
|
+
return r.find((e) => String(e.whereKey ?? e.id) === t && Lt(e.path, n)) ?? null;
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Rt(e, t, n) {
|
|
1348
1348
|
let r = $(e, t);
|
|
1349
1349
|
if (r != null) return r;
|
|
1350
1350
|
let { [t]: i } = n ?? {};
|
|
@@ -1354,80 +1354,80 @@ function Pt(e, t, n) {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
return $(e, `${t}Contains`) ?? null;
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function zt(e, t) {
|
|
1358
1358
|
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;
|
|
1359
1359
|
}
|
|
1360
1360
|
//#endregion
|
|
1361
1361
|
//#region src/components/backoffice/filters/backofficeFilterAction.css.ts
|
|
1362
|
-
var
|
|
1363
|
-
let { t } =
|
|
1364
|
-
if (
|
|
1365
|
-
let p = $(f, i,
|
|
1366
|
-
if (p == null &&
|
|
1367
|
-
let m =
|
|
1362
|
+
var Bt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txvbqb1qy txvbqb1cp txvbqb1qg txvbqbf7 txvbqbv0t txvbqbva1 txvbqbv txvbqb3b txvbqb78 txvbqb6w txvbqb7k", Vt = "txvbqbtx7 txvbqbc67", Ht = (e, t) => e(t), Ut = (e) => {
|
|
1363
|
+
let { t } = E(), { t: n } = u(), { filterColumnAliases: r } = l(), { whereKey: i, value: a, path: o, label: s, listConfig: c } = e, d = x(), f = null;
|
|
1364
|
+
if (c == null ? d != null && (f = d.config) : f = c, f == null) return null;
|
|
1365
|
+
let p = $(f, i, o);
|
|
1366
|
+
if (p == null && o == null && (p = Rt(f, i, r)), p == null || !zt(p, a)) return null;
|
|
1367
|
+
let m = Ht(p.label, t), h = s ?? n("filters.actions.filterBy", { label: m }), g = /* @__PURE__ */ A(Pe, {
|
|
1368
1368
|
width: 14,
|
|
1369
1369
|
height: 14,
|
|
1370
|
-
className:
|
|
1370
|
+
className: Vt,
|
|
1371
1371
|
"aria-hidden": "true"
|
|
1372
1372
|
});
|
|
1373
|
-
if (d != null) return /* @__PURE__ */
|
|
1373
|
+
if (d != null) return /* @__PURE__ */ A("button", {
|
|
1374
1374
|
type: "button",
|
|
1375
|
-
className:
|
|
1375
|
+
className: Bt,
|
|
1376
1376
|
title: h,
|
|
1377
1377
|
"aria-label": h,
|
|
1378
1378
|
onClick: () => {
|
|
1379
|
-
d.applyFilter(i, a,
|
|
1379
|
+
d.applyFilter(i, a, o);
|
|
1380
1380
|
},
|
|
1381
1381
|
children: g
|
|
1382
1382
|
});
|
|
1383
|
-
let _ =
|
|
1384
|
-
return /* @__PURE__ */
|
|
1385
|
-
to:
|
|
1386
|
-
className:
|
|
1383
|
+
let _ = Ve(f.listDefaults?.where ?? f.list.defaultState?.where ?? null, i, a, o);
|
|
1384
|
+
return /* @__PURE__ */ A(De, {
|
|
1385
|
+
to: N(f, { where: _ }),
|
|
1386
|
+
className: Bt,
|
|
1387
1387
|
children: g
|
|
1388
1388
|
});
|
|
1389
|
-
},
|
|
1389
|
+
}, Wt = "txvbqb9ip txvbqbai7 txvbqbap7", Gt = "txvbqb9ip txvbqbai7 txvbqbaop", Kt = "txvbqb9iy txvbqbbwy txvbqbap7 txvbqbcg", qt = "txvbqb9ip txvbqbai7 txvbqbap7", Jt = "txvbqb9ip txvbqbai7 txvbqbap7", Yt = ({ summary: e, aside: t, children: n, className: r }) => {
|
|
1390
1390
|
let i = null;
|
|
1391
|
-
e != null && (i = /* @__PURE__ */
|
|
1392
|
-
className:
|
|
1391
|
+
e != null && (i = /* @__PURE__ */ A("div", {
|
|
1392
|
+
className: Gt,
|
|
1393
1393
|
children: e
|
|
1394
1394
|
}));
|
|
1395
1395
|
let a = null;
|
|
1396
|
-
t != null && (a = /* @__PURE__ */
|
|
1397
|
-
className:
|
|
1396
|
+
t != null && (a = /* @__PURE__ */ A("aside", {
|
|
1397
|
+
className: Jt,
|
|
1398
1398
|
children: t
|
|
1399
1399
|
}));
|
|
1400
1400
|
let o = null;
|
|
1401
|
-
return (n != null || a != null) && (o = /* @__PURE__ */
|
|
1402
|
-
className:
|
|
1401
|
+
return (n != null || a != null) && (o = /* @__PURE__ */ A("div", {
|
|
1402
|
+
className: qt,
|
|
1403
1403
|
children: n
|
|
1404
|
-
})), /* @__PURE__ */
|
|
1405
|
-
className:
|
|
1406
|
-
children: [i, /* @__PURE__ */
|
|
1407
|
-
className:
|
|
1404
|
+
})), /* @__PURE__ */ j("div", {
|
|
1405
|
+
className: Le(Wt, r),
|
|
1406
|
+
children: [i, /* @__PURE__ */ j("div", {
|
|
1407
|
+
className: Kt,
|
|
1408
1408
|
children: [o, a]
|
|
1409
1409
|
})]
|
|
1410
1410
|
});
|
|
1411
|
-
},
|
|
1412
|
-
let { entities: r, entityRegistry: i } =
|
|
1413
|
-
typeof e == "number" && Number.isFinite(e) && (
|
|
1414
|
-
let
|
|
1415
|
-
if (
|
|
1416
|
-
let
|
|
1417
|
-
u =
|
|
1411
|
+
}, Xt = "txvbqbv9z txvbqb3d txvbqbvwr", Zt = ({ count: e, entity: t, where: n }) => {
|
|
1412
|
+
let { entities: r, entityRegistry: i } = l(), a = xe(ke), o = 0;
|
|
1413
|
+
typeof e == "number" && Number.isFinite(e) && (o = e);
|
|
1414
|
+
let s = r[t];
|
|
1415
|
+
if (s == null) return /* @__PURE__ */ A("span", { children: o });
|
|
1416
|
+
let c = i.getLoadedListEntity(t), u;
|
|
1417
|
+
u = c == null ? Be(s.routes.list, n) : N(c.config, { where: n });
|
|
1418
1418
|
let d = async (e) => {
|
|
1419
|
-
let r =
|
|
1419
|
+
let r = N((await i.loadListEntity(t)).config, { where: n }), a = "";
|
|
1420
1420
|
r.search !== "" && (a = `?${r.search}`), e.push({
|
|
1421
1421
|
pathname: r.pathname,
|
|
1422
1422
|
search: a,
|
|
1423
1423
|
hash: ""
|
|
1424
1424
|
});
|
|
1425
1425
|
};
|
|
1426
|
-
return /* @__PURE__ */
|
|
1426
|
+
return /* @__PURE__ */ A(De, {
|
|
1427
1427
|
to: u,
|
|
1428
|
-
className:
|
|
1428
|
+
className: Xt,
|
|
1429
1429
|
onClick: (e) => {
|
|
1430
|
-
if (
|
|
1430
|
+
if (c != null || a == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
|
|
1431
1431
|
e.preventDefault();
|
|
1432
1432
|
let { history: t } = a;
|
|
1433
1433
|
d(t).catch(() => {
|
|
@@ -1448,99 +1448,103 @@ var It = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txv
|
|
|
1448
1448
|
});
|
|
1449
1449
|
});
|
|
1450
1450
|
},
|
|
1451
|
-
children:
|
|
1451
|
+
children: o
|
|
1452
1452
|
});
|
|
1453
|
-
},
|
|
1453
|
+
}, Qt = "txvbqb9ip", $t = "txvbqb9ip txvbqbai7 txvbqbaop", en = ({ headerNode: e, tabs: t, activeId: n, children: r }) => {
|
|
1454
1454
|
let i = null;
|
|
1455
|
-
return t != null && t.length > 1 && n != null && (i = /* @__PURE__ */
|
|
1455
|
+
return t != null && t.length > 1 && n != null && (i = /* @__PURE__ */ A(Me, {
|
|
1456
1456
|
items: t,
|
|
1457
1457
|
activeId: n,
|
|
1458
1458
|
onChange: () => {},
|
|
1459
|
-
className:
|
|
1460
|
-
})), /* @__PURE__ */
|
|
1459
|
+
className: Qt
|
|
1460
|
+
})), /* @__PURE__ */ A(Ne, {
|
|
1461
1461
|
headerNode: e,
|
|
1462
1462
|
tabsNode: i,
|
|
1463
|
-
children: /* @__PURE__ */
|
|
1464
|
-
className:
|
|
1463
|
+
children: /* @__PURE__ */ A("div", {
|
|
1464
|
+
className: $t,
|
|
1465
1465
|
children: r
|
|
1466
1466
|
})
|
|
1467
1467
|
});
|
|
1468
|
-
},
|
|
1469
|
-
className:
|
|
1468
|
+
}, tn = "txvbqb9jg txvbqbcp txvbqbany txvbqbajy", nn = ({ children: e, className: t }) => /* @__PURE__ */ A("span", {
|
|
1469
|
+
className: Le(tn, t),
|
|
1470
1470
|
children: e
|
|
1471
|
-
}),
|
|
1472
|
-
function
|
|
1473
|
-
return Reflect.get(
|
|
1471
|
+
}), rn = [];
|
|
1472
|
+
function an() {
|
|
1473
|
+
return Reflect.get(k, "default") ?? k;
|
|
1474
1474
|
}
|
|
1475
|
-
var
|
|
1476
|
-
function
|
|
1477
|
-
let
|
|
1475
|
+
var on = an();
|
|
1476
|
+
function sn(e, n) {
|
|
1477
|
+
let r = on.useRelayEnvironment(), [i, o] = T(null), [s, c] = T(!1), [l, u] = T(!1), d = Ce(a, () => t().generation, () => t().generation), { enabled: f = !0, deps: p = rn, getVariables: m } = n, h = S(() => {
|
|
1478
1478
|
try {
|
|
1479
|
-
return
|
|
1479
|
+
return m == null ? e.variables : m();
|
|
1480
1480
|
} catch {
|
|
1481
1481
|
return null;
|
|
1482
1482
|
}
|
|
1483
|
-
}, [e.variables,
|
|
1484
|
-
if (
|
|
1483
|
+
}, [e.variables, m]), g = w(() => h(), [h]), _ = w(() => {
|
|
1484
|
+
if (g == null) return null;
|
|
1485
1485
|
try {
|
|
1486
|
-
return JSON.stringify(
|
|
1486
|
+
return JSON.stringify(g);
|
|
1487
1487
|
} catch {
|
|
1488
1488
|
return null;
|
|
1489
1489
|
}
|
|
1490
|
-
}, [
|
|
1491
|
-
return
|
|
1492
|
-
let t = null,
|
|
1493
|
-
return
|
|
1490
|
+
}, [g]), v = !!f, y = v && g != null && s && i == null && !l, b = Se(null);
|
|
1491
|
+
return C(() => {
|
|
1492
|
+
let t = null, n = h();
|
|
1493
|
+
return v && n != null && (o(null), u(!1), c(!0), t = on.requestSubscription(r, {
|
|
1494
1494
|
subscription: e.subscription,
|
|
1495
|
-
variables:
|
|
1495
|
+
variables: n,
|
|
1496
1496
|
cacheConfig: e.cacheConfig,
|
|
1497
1497
|
configs: e.configs,
|
|
1498
|
-
onCompleted:
|
|
1498
|
+
onCompleted: () => {
|
|
1499
|
+
u(!0), c(!1), e.onCompleted?.();
|
|
1500
|
+
},
|
|
1499
1501
|
onError: (t) => {
|
|
1500
|
-
|
|
1502
|
+
o(t), c(!1), e.onError?.(t);
|
|
1501
1503
|
},
|
|
1502
1504
|
onNext: e.onNext,
|
|
1503
1505
|
updater: e.updater
|
|
1504
|
-
}),
|
|
1505
|
-
if (t != null) try {
|
|
1506
|
+
}), b.current = t), () => {
|
|
1507
|
+
if (c(!1), t != null) try {
|
|
1506
1508
|
t.dispose();
|
|
1507
1509
|
} catch {}
|
|
1508
|
-
|
|
1510
|
+
b.current === t && (b.current = null);
|
|
1509
1511
|
};
|
|
1510
1512
|
}, [
|
|
1511
1513
|
e,
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1514
|
+
p,
|
|
1515
|
+
r,
|
|
1516
|
+
v,
|
|
1517
|
+
h,
|
|
1518
|
+
_,
|
|
1519
|
+
d
|
|
1517
1520
|
]), {
|
|
1518
|
-
active:
|
|
1519
|
-
|
|
1521
|
+
active: y,
|
|
1522
|
+
completed: l,
|
|
1523
|
+
error: i
|
|
1520
1524
|
};
|
|
1521
1525
|
}
|
|
1522
1526
|
//#endregion
|
|
1523
1527
|
//#region src/hooks/useCopyToClipboard.ts
|
|
1524
|
-
var
|
|
1525
|
-
function
|
|
1528
|
+
var cn = "copy-to-clipboard-fallback";
|
|
1529
|
+
function ln(e) {
|
|
1526
1530
|
if (typeof document > "u") return;
|
|
1527
|
-
let t = document.getElementById(
|
|
1528
|
-
t ?? (t = document.createElement("textarea"), t.id =
|
|
1531
|
+
let t = document.getElementById(cn);
|
|
1532
|
+
t ?? (t = document.createElement("textarea"), t.id = cn, 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");
|
|
1529
1533
|
}
|
|
1530
|
-
function
|
|
1531
|
-
let [t, n] =
|
|
1532
|
-
return
|
|
1534
|
+
function un(e = 2e3) {
|
|
1535
|
+
let [t, n] = T(null), r = Se(null);
|
|
1536
|
+
return C(() => () => {
|
|
1533
1537
|
r.current != null && window.clearTimeout(r.current);
|
|
1534
1538
|
}, []), {
|
|
1535
1539
|
copiedKey: t,
|
|
1536
|
-
copy:
|
|
1540
|
+
copy: S(async (t, i) => {
|
|
1537
1541
|
let a = !1, o;
|
|
1538
1542
|
if (typeof navigator < "u" && (o = navigator.clipboard), o != null) try {
|
|
1539
1543
|
await o.writeText(t), a = !0;
|
|
1540
1544
|
} catch {
|
|
1541
1545
|
a = !1;
|
|
1542
1546
|
}
|
|
1543
|
-
return a ||= (
|
|
1547
|
+
return a ||= (ln(t), !0), i != null && (n(i), r.current != null && window.clearTimeout(r.current), r.current = window.setTimeout(() => {
|
|
1544
1548
|
n(null), r.current = null;
|
|
1545
1549
|
}, e)), a;
|
|
1546
1550
|
}, [e])
|
|
@@ -1548,27 +1552,27 @@ function on(e = 2e3) {
|
|
|
1548
1552
|
}
|
|
1549
1553
|
//#endregion
|
|
1550
1554
|
//#region src/hooks/useRefetchNeededReload.ts
|
|
1551
|
-
function
|
|
1552
|
-
let [t, n] =
|
|
1553
|
-
return
|
|
1555
|
+
function dn(e) {
|
|
1556
|
+
let [t, n] = T(null);
|
|
1557
|
+
return C(() => {
|
|
1554
1558
|
n(null);
|
|
1555
1559
|
}, [e]), {
|
|
1556
1560
|
reason: t,
|
|
1557
|
-
onRefetchNeeded:
|
|
1561
|
+
onRefetchNeeded: S((e) => {
|
|
1558
1562
|
n(e ?? "UNKNOWN");
|
|
1559
1563
|
}, []),
|
|
1560
|
-
reload:
|
|
1564
|
+
reload: S(() => {
|
|
1561
1565
|
window.location.reload();
|
|
1562
1566
|
}, []),
|
|
1563
|
-
clear:
|
|
1567
|
+
clear: S(() => {
|
|
1564
1568
|
n(null);
|
|
1565
1569
|
}, [])
|
|
1566
1570
|
};
|
|
1567
1571
|
}
|
|
1568
1572
|
//#endregion
|
|
1569
1573
|
//#region src/i18n/useReviewStatusLabel.ts
|
|
1570
|
-
function
|
|
1571
|
-
let { t: e } =
|
|
1574
|
+
function fn() {
|
|
1575
|
+
let { t: e } = u();
|
|
1572
1576
|
function t(t) {
|
|
1573
1577
|
if (t == null) return e("review.status.unknown");
|
|
1574
1578
|
switch (t) {
|
|
@@ -1582,7 +1586,7 @@ function cn() {
|
|
|
1582
1586
|
}
|
|
1583
1587
|
//#endregion
|
|
1584
1588
|
//#region src/modules/base64.ts
|
|
1585
|
-
function
|
|
1589
|
+
function pn(e) {
|
|
1586
1590
|
if (typeof e != "string") throw TypeError("encodeUtf8ToBase64 expects a string input.");
|
|
1587
1591
|
if (typeof globalThis.btoa == "function") {
|
|
1588
1592
|
let t = encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, (e, t) => String.fromCharCode(Number.parseInt(t, 16)));
|
|
@@ -1590,7 +1594,7 @@ function ln(e) {
|
|
|
1590
1594
|
}
|
|
1591
1595
|
throw Error("No base64 encoder is available in this environment.");
|
|
1592
1596
|
}
|
|
1593
|
-
function
|
|
1597
|
+
function mn(e) {
|
|
1594
1598
|
if (typeof e != "string") throw TypeError("decodeBase64ToUtf8 expects a string input.");
|
|
1595
1599
|
if (typeof globalThis.atob == "function") {
|
|
1596
1600
|
let t = globalThis.atob(e), n = Array.from(t, (e) => `%${e.charCodeAt(0).toString(16).padStart(2, "0")}`).join("");
|
|
@@ -1600,33 +1604,33 @@ function un(e) {
|
|
|
1600
1604
|
}
|
|
1601
1605
|
//#endregion
|
|
1602
1606
|
//#region src/modules/formatFileSize.ts
|
|
1603
|
-
var
|
|
1607
|
+
var hn = [
|
|
1604
1608
|
"B",
|
|
1605
1609
|
"KB",
|
|
1606
1610
|
"MB",
|
|
1607
1611
|
"GB",
|
|
1608
1612
|
"TB"
|
|
1609
|
-
],
|
|
1613
|
+
], gn = 1024, _n = (e, t) => {
|
|
1610
1614
|
if (t === "B") return Math.round(e).toString();
|
|
1611
1615
|
let n = 1;
|
|
1612
1616
|
return e >= 10 && (n = 0), e.toFixed(n);
|
|
1613
1617
|
};
|
|
1614
|
-
function
|
|
1618
|
+
function vn(e) {
|
|
1615
1619
|
let t = e;
|
|
1616
1620
|
Number.isFinite(e) || (t = 0);
|
|
1617
1621
|
let n = t < 0, r = Math.abs(t), i = 0;
|
|
1618
|
-
for (; r >=
|
|
1619
|
-
let a =
|
|
1622
|
+
for (; r >= gn && i < hn.length - 1;) r /= gn, i += 1;
|
|
1623
|
+
let a = hn[i] ?? "B", o = r;
|
|
1620
1624
|
return n && (o = -r), {
|
|
1621
1625
|
value: o,
|
|
1622
1626
|
unit: a,
|
|
1623
|
-
displayValue:
|
|
1627
|
+
displayValue: _n(o, a)
|
|
1624
1628
|
};
|
|
1625
1629
|
}
|
|
1626
1630
|
//#endregion
|
|
1627
1631
|
//#region src/relay/createInlineReader.ts
|
|
1628
|
-
var { readInlineData:
|
|
1632
|
+
var { readInlineData: yn } = k, bn = (e) => (t) => yn(e, t), xn = (e) => e;
|
|
1629
1633
|
//#endregion
|
|
1630
|
-
export {
|
|
1634
|
+
export { b as AcceptInvitationScreen, ce as BackofficeDetailBadgeRow, le as BackofficeDetailField, de as BackofficeDetailPayload, ue as BackofficeDetailSection, re as BackofficeErrorBoundary, Ut as BackofficeFilterAction, nn as BackofficeInlineFilterRow, Yt as BackofficeOverviewLayout, Ft as BackofficeProvider, Zt as BackofficeRelatedCountLink, ye as BackofficeRightPageLayout, en as BackofficeTabbedDetailShell, ae as EntityFilterValue, ie as EntityFilterValueText, oe as EntityIdFilterField, se as EntityIdPickerDialog, v as LoginFlow, ee as PasswordResetCompleteScreen, te as PasswordResetRequestScreen, nt as RelayProvider, ne as VerifyEmailScreen, Qe as backofficeReactI18nResources, h as base64UrlToBuffer, g as bufferToBase64Url, ve as buildDataTableColumns, o as configureRelayEnvironment, It as createBackofficeLazyValue, Je as createI18nInstance, bn as createInlineDataReader, _ as createUseAuth, mn as decodeBase64ToUtf8, pn as encodeUtf8ToBase64, vn as formatFileSize, n as getEnvironment, i as getNetwork, t as getRelayTransportSnapshot, xn as identityView, m as mapWebAuthnRegistrationError, p as parseSignCount, e as reconnectRelayWebSocket, ge as requireField, me as requireLinkedRecordId, r as resetRelayStore, he as resolveAgentStartOutcome, pe as resolveMutationOutcome, _e as resolveVisibleDetailPages, a as subscribeRelayTransport, y as synchronizeAuthStatusQuery, l as useBackofficeConfig, fe as useBackofficeListUrlState, sn as useConditionalSubscription, un as useCopyToClipboard, dn as useRefetchNeededReload, fn as useReviewStatusLabel, et as withBackofficeReactI18nResources };
|
|
1631
1635
|
|
|
1632
1636
|
//# sourceMappingURL=backoffice-react.js.map
|