@plumile/backoffice-react 0.1.96 → 0.1.98
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.
|
@@ -8,18 +8,18 @@ import { t as b } from "./AcceptInvitationScreen-B1IPafwD.js";
|
|
|
8
8
|
import { t as ee } from "./PasswordResetCompleteScreen-Cgg96DPo.js";
|
|
9
9
|
import { t as te } from "./PasswordResetRequestScreen-I1nFvGLd.js";
|
|
10
10
|
import { t as ne } from "./VerifyEmailScreen-Br5KyHjg.js";
|
|
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
|
|
11
|
+
import { t as x } from "./BackofficeErrorBoundary-BwRVSDHU.js";
|
|
12
|
+
import { i as S, n as re, t as ie } from "./EntityFilterValue-BWUdPBwp.js";
|
|
13
|
+
import { i as ae, t as oe } from "./EntityIdPickerDialog-Yhmr-WsV.js";
|
|
14
|
+
import { a as se, i as ce, r as le, t as ue } from "./BackofficeDetailPayload-P61MDRLE.js";
|
|
15
|
+
import { t as de } from "./useBackofficeListUrlState-D4fx5O7u.js";
|
|
16
|
+
import { i as fe, n as pe, r as me, t as he } from "./mutationResult-CcQMY13J.js";
|
|
17
|
+
import { t as ge } from "./pageResolution-hAQA5C6S.js";
|
|
18
|
+
import { n as _e, t as ve } from "./BackofficeRightPageLayout-DZQvIHnj.js";
|
|
19
|
+
import { StrictMode as ye, useCallback as C, useContext as be, useEffect as w, useMemo as T, useRef as xe, useState as E, useSyncExternalStore as Se } from "react";
|
|
20
|
+
import { createInstance as D } from "i18next";
|
|
21
|
+
import { I18nextProvider as Ce, initReactI18next as we, useTranslation as Te } from "react-i18next";
|
|
22
|
+
import { HttpRedirect as Ee, Link as De, RouterRenderer as Oe, RoutingContext as ke, createRouter as Ae, getResourcePage as O, r as je } from "@plumile/router";
|
|
23
23
|
import { BackofficeTabs as Me, DetailPageTemplate as Ne, SidebarSearchSvg as Pe, Spinner as Fe, ThemeProvider as Ie, cx as Le } from "@plumile/ui";
|
|
24
24
|
import Re from "i18next-browser-languagedetector";
|
|
25
25
|
import * as k from "react-relay";
|
|
@@ -64,8 +64,8 @@ function F(e, t, n) {
|
|
|
64
64
|
return P(e);
|
|
65
65
|
}
|
|
66
66
|
async function Je(e) {
|
|
67
|
-
let { resources: t, lng: n, fallbackLng: r = "en", initOptions: i = {}, instance: a =
|
|
68
|
-
o && a.use(Re), a.use(
|
|
67
|
+
let { resources: t, lng: n, fallbackLng: r = "en", initOptions: i = {}, instance: a = D(), useLanguageDetector: o = !1, detection: s } = e, { interpolation: c, ...l } = i;
|
|
68
|
+
o && a.use(Re), a.use(we);
|
|
69
69
|
try {
|
|
70
70
|
let e = {
|
|
71
71
|
...l,
|
|
@@ -806,14 +806,14 @@ var Ye = {
|
|
|
806
806
|
sections: { pinned: "Épinglés" }
|
|
807
807
|
},
|
|
808
808
|
tools: { output: "Résultat" }
|
|
809
|
-
}, I = (e) => typeof e == "object" && !!e && !Array.isArray(e),
|
|
810
|
-
function
|
|
809
|
+
}, I = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ze = (e) => I(e) ? e : {};
|
|
810
|
+
function Qe(...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
815
|
if (I(r) && I(n)) {
|
|
816
|
-
t[e] = Ze(
|
|
816
|
+
t[e] = Qe(Ze(r), Ze(n));
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
819
|
t[e] = n;
|
|
@@ -822,24 +822,24 @@ function Ze(...e) {
|
|
|
822
822
|
}
|
|
823
823
|
//#endregion
|
|
824
824
|
//#region src/i18n/resources.ts
|
|
825
|
-
var
|
|
825
|
+
var $e = {
|
|
826
826
|
en: { backofficeReact: Ye },
|
|
827
827
|
fr: { backofficeReact: Xe }
|
|
828
|
-
},
|
|
829
|
-
function
|
|
830
|
-
let t = {}, n =
|
|
828
|
+
}, et = (e) => typeof e == "object" && !!e, L = (e) => et(e) ? e : {};
|
|
829
|
+
function tt(e = {}) {
|
|
830
|
+
let t = {}, n = $e;
|
|
831
831
|
return new Set([...Object.keys(n), ...Object.keys(e)]).forEach((r) => {
|
|
832
|
-
let i =
|
|
832
|
+
let i = L(n[r]), a = L(e[r]);
|
|
833
833
|
t[r] = {
|
|
834
834
|
...i,
|
|
835
835
|
...a,
|
|
836
|
-
backofficeReact:
|
|
836
|
+
backofficeReact: Qe(L(i.backofficeReact), L(a.backofficeReact))
|
|
837
837
|
};
|
|
838
838
|
}), t;
|
|
839
839
|
}
|
|
840
840
|
//#endregion
|
|
841
841
|
//#region src/relay/RelayProvider.tsx
|
|
842
|
-
var { RelayEnvironmentProvider:
|
|
842
|
+
var { RelayEnvironmentProvider: nt } = k, R = ({ children: e }) => (Se(a, () => t().generation, () => t().generation), /* @__PURE__ */ A(nt, {
|
|
843
843
|
environment: n(),
|
|
844
844
|
children: e
|
|
845
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) => {
|
|
@@ -962,7 +962,7 @@ function St(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 Ee(t);
|
|
966
966
|
}
|
|
967
967
|
}),
|
|
968
968
|
...(e.detailPages ?? []).map((t) => V({
|
|
@@ -1044,7 +1044,7 @@ function St(e) {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
});
|
|
1046
1046
|
return v.set(n, t.id), n;
|
|
1047
|
-
}),
|
|
1047
|
+
}), x = V({
|
|
1048
1048
|
path: s,
|
|
1049
1049
|
resourcePage: at,
|
|
1050
1050
|
prepare: b,
|
|
@@ -1054,7 +1054,7 @@ function St(e) {
|
|
|
1054
1054
|
if (u != null && o?.authStatusQuery != null) {
|
|
1055
1055
|
l = rt(u, o.authStatusQuery);
|
|
1056
1056
|
let { isLoggedIn: e } = l;
|
|
1057
|
-
if (!e) throw new
|
|
1057
|
+
if (!e) throw new Ee(h);
|
|
1058
1058
|
}
|
|
1059
1059
|
return /* @__PURE__ */ A(r, {
|
|
1060
1060
|
permissionsQuery: i?.permissionsQuery,
|
|
@@ -1069,7 +1069,7 @@ function St(e) {
|
|
|
1069
1069
|
...te,
|
|
1070
1070
|
...ne
|
|
1071
1071
|
]
|
|
1072
|
-
}),
|
|
1072
|
+
}), S = [
|
|
1073
1073
|
V({
|
|
1074
1074
|
path: c,
|
|
1075
1075
|
resourcePage: dt,
|
|
@@ -1098,17 +1098,17 @@ function St(e) {
|
|
|
1098
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) && S.push(V({
|
|
1102
1102
|
path: m,
|
|
1103
1103
|
resourcePage: ht,
|
|
1104
1104
|
prepare: async () => (await a.acceptInvitation?.load(), null),
|
|
1105
1105
|
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ A(e, {})
|
|
1106
|
-
})),
|
|
1106
|
+
})), S.push(x), S;
|
|
1107
1107
|
}
|
|
1108
1108
|
//#endregion
|
|
1109
1109
|
//#region src/components/backoffice/routing/backofficeRouteFallback.css.ts
|
|
1110
1110
|
var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop txvbqbv43 txvbqbva1", wt = "txvbqbva3", Tt = () => {
|
|
1111
|
-
let { t: e, i18n: t } =
|
|
1111
|
+
let { t: e, i18n: t } = Te("backofficeReact", { useSuspense: !1 }), n = "Loading...";
|
|
1112
1112
|
return t.isInitialized && (n = e("common.loading")), /* @__PURE__ */ j("div", {
|
|
1113
1113
|
className: Ct,
|
|
1114
1114
|
role: "status",
|
|
@@ -1217,28 +1217,38 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
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
|
-
}])), Pt = ({ routes: e,
|
|
1221
|
-
let
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1220
|
+
}])), Pt = ({ routes: e, context: t, instrumentations: n }) => {
|
|
1221
|
+
let [r, i] = E(null);
|
|
1222
|
+
return w(() => {
|
|
1223
|
+
let r = Ae(e, {
|
|
1224
|
+
context: t,
|
|
1225
|
+
instrumentations: n
|
|
1226
|
+
});
|
|
1227
|
+
return i(r), () => {
|
|
1228
|
+
r.cleanup();
|
|
1229
|
+
};
|
|
1230
|
+
}, [
|
|
1225
1231
|
t,
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
]);
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1232
|
+
n,
|
|
1233
|
+
e
|
|
1234
|
+
]), r;
|
|
1235
|
+
}, Ft = ({ routes: e, instrumentations: t }) => {
|
|
1236
|
+
let n = s(), r = Pt({
|
|
1237
|
+
routes: e,
|
|
1238
|
+
context: T(() => ({ relayEnvironment: n }), [n]),
|
|
1239
|
+
instrumentations: t
|
|
1240
|
+
});
|
|
1241
|
+
return r == null ? /* @__PURE__ */ A(Tt, {}) : /* @__PURE__ */ A(ke.Provider, {
|
|
1242
|
+
value: r.context,
|
|
1233
1243
|
children: /* @__PURE__ */ A(Oe, {
|
|
1234
1244
|
enableTransition: !0,
|
|
1235
1245
|
fallback: /* @__PURE__ */ A(Tt, {}),
|
|
1236
1246
|
pending: /* @__PURE__ */ A(Ot, {})
|
|
1237
1247
|
})
|
|
1238
1248
|
});
|
|
1239
|
-
},
|
|
1240
|
-
let t = Z(e.basePath ?? "/"), n =
|
|
1241
|
-
|
|
1249
|
+
}, It = (e) => {
|
|
1250
|
+
let t = Z(e.basePath ?? "/"), n = T(() => Nt(e.entityManifest, t), [t, e.entityManifest]), r = T(() => Mt(n, { basePath: t }), [t, n]), i = e.graphql;
|
|
1251
|
+
w(() => {
|
|
1242
1252
|
o({
|
|
1243
1253
|
httpUrl: i.httpUrl ?? i.endpoint,
|
|
1244
1254
|
wsUrl: i.wsUrl ?? i.wsEndpoint,
|
|
@@ -1255,8 +1265,8 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1255
1265
|
i.wsEndpoint,
|
|
1256
1266
|
i.wsUrl
|
|
1257
1267
|
]);
|
|
1258
|
-
let a =
|
|
1259
|
-
return
|
|
1268
|
+
let a = T(() => tt(e.i18n?.resources ?? {}), [e.i18n?.resources]), s = T(() => e.i18n?.instance ?? D(), [e.i18n?.instance]);
|
|
1269
|
+
return w(() => {
|
|
1260
1270
|
let t = e.i18n?.initOptions ?? {}, n = t.defaultNS ?? "translations", r = t.ns ?? [
|
|
1261
1271
|
"backofficeReact",
|
|
1262
1272
|
"translations",
|
|
@@ -1283,10 +1293,10 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1283
1293
|
e.i18n?.fallbackLng,
|
|
1284
1294
|
e.i18n?.lng,
|
|
1285
1295
|
e.i18n?.useLanguageDetector
|
|
1286
|
-
]), /* @__PURE__ */ A(
|
|
1296
|
+
]), /* @__PURE__ */ A(ye, { children: /* @__PURE__ */ A(Ce, {
|
|
1287
1297
|
i18n: s,
|
|
1288
|
-
children: /* @__PURE__ */ A(Ie, { children: /* @__PURE__ */ A(
|
|
1289
|
-
value:
|
|
1298
|
+
children: /* @__PURE__ */ A(Ie, { children: /* @__PURE__ */ A(R, { children: /* @__PURE__ */ A(c, {
|
|
1299
|
+
value: T(() => ({
|
|
1290
1300
|
basePath: t,
|
|
1291
1301
|
entities: n,
|
|
1292
1302
|
entityManifest: n,
|
|
@@ -1306,8 +1316,8 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1306
1316
|
e.graphql,
|
|
1307
1317
|
e.sidebar
|
|
1308
1318
|
]),
|
|
1309
|
-
children: /* @__PURE__ */ A(
|
|
1310
|
-
routes:
|
|
1319
|
+
children: /* @__PURE__ */ A(Ft, {
|
|
1320
|
+
routes: T(() => St({
|
|
1311
1321
|
basePath: t,
|
|
1312
1322
|
entityManifest: n,
|
|
1313
1323
|
entityRegistry: r,
|
|
@@ -1328,7 +1338,7 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1328
1338
|
})
|
|
1329
1339
|
}) }) })
|
|
1330
1340
|
}) });
|
|
1331
|
-
},
|
|
1341
|
+
}, Lt = (e) => {
|
|
1332
1342
|
let t = null, n = null;
|
|
1333
1343
|
return {
|
|
1334
1344
|
get: () => t,
|
|
@@ -1336,15 +1346,15 @@ var Ct = "txvbqb9ip txvbqbai7 txvbqbcp txvbqbdoy txvbqbk5p txvbqbu7g txvbqbaop t
|
|
|
1336
1346
|
n = null;
|
|
1337
1347
|
}), n)
|
|
1338
1348
|
};
|
|
1339
|
-
},
|
|
1349
|
+
}, Rt = (e, t) => {
|
|
1340
1350
|
let n = e ?? [], r = t ?? [];
|
|
1341
1351
|
return n.length === r.length ? n.every((e, t) => e === r[t]) : !1;
|
|
1342
1352
|
};
|
|
1343
1353
|
function $(e, t, n) {
|
|
1344
1354
|
let { filters: r } = e.list;
|
|
1345
|
-
return r.find((e) => String(e.whereKey ?? e.id) === t &&
|
|
1355
|
+
return r.find((e) => String(e.whereKey ?? e.id) === t && Rt(e.path, n)) ?? null;
|
|
1346
1356
|
}
|
|
1347
|
-
function
|
|
1357
|
+
function zt(e, t, n) {
|
|
1348
1358
|
let r = $(e, t);
|
|
1349
1359
|
if (r != null) return r;
|
|
1350
1360
|
let { [t]: i } = n ?? {};
|
|
@@ -1354,25 +1364,25 @@ function Rt(e, t, n) {
|
|
|
1354
1364
|
}
|
|
1355
1365
|
return $(e, `${t}Contains`) ?? null;
|
|
1356
1366
|
}
|
|
1357
|
-
function
|
|
1367
|
+
function Bt(e, t) {
|
|
1358
1368
|
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
1369
|
}
|
|
1360
1370
|
//#endregion
|
|
1361
1371
|
//#region src/components/backoffice/filters/backofficeFilterAction.css.ts
|
|
1362
|
-
var
|
|
1363
|
-
let { t } =
|
|
1372
|
+
var Vt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txvbqb1qy txvbqb1cp txvbqb1qg txvbqbf7 txvbqbv0t txvbqbva1 txvbqbv txvbqb3b txvbqb78 txvbqb6w txvbqb7k", Ht = "txvbqbtx7 txvbqbc67", Ut = (e, t) => e(t), Wt = (e) => {
|
|
1373
|
+
let { t } = Te(), { t: n } = u(), { filterColumnAliases: r } = l(), { whereKey: i, value: a, path: o, label: s, listConfig: c } = e, d = S(), f = null;
|
|
1364
1374
|
if (c == null ? d != null && (f = d.config) : f = c, f == null) return null;
|
|
1365
1375
|
let p = $(f, i, o);
|
|
1366
|
-
if (p == null && o == null && (p =
|
|
1367
|
-
let m =
|
|
1376
|
+
if (p == null && o == null && (p = zt(f, i, r)), p == null || !Bt(p, a)) return null;
|
|
1377
|
+
let m = Ut(p.label, t), h = s ?? n("filters.actions.filterBy", { label: m }), g = /* @__PURE__ */ A(Pe, {
|
|
1368
1378
|
width: 14,
|
|
1369
1379
|
height: 14,
|
|
1370
|
-
className:
|
|
1380
|
+
className: Ht,
|
|
1371
1381
|
"aria-hidden": "true"
|
|
1372
1382
|
});
|
|
1373
1383
|
if (d != null) return /* @__PURE__ */ A("button", {
|
|
1374
1384
|
type: "button",
|
|
1375
|
-
className:
|
|
1385
|
+
className: Vt,
|
|
1376
1386
|
title: h,
|
|
1377
1387
|
"aria-label": h,
|
|
1378
1388
|
onClick: () => {
|
|
@@ -1383,33 +1393,33 @@ var Bt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txv
|
|
|
1383
1393
|
let _ = Ve(f.listDefaults?.where ?? f.list.defaultState?.where ?? null, i, a, o);
|
|
1384
1394
|
return /* @__PURE__ */ A(De, {
|
|
1385
1395
|
to: N(f, { where: _ }),
|
|
1386
|
-
className:
|
|
1396
|
+
className: Vt,
|
|
1387
1397
|
children: g
|
|
1388
1398
|
});
|
|
1389
|
-
},
|
|
1399
|
+
}, Gt = "txvbqb9ip txvbqbai7 txvbqbap7", Kt = "txvbqb9ip txvbqbai7 txvbqbaop", qt = "txvbqb9iy txvbqbbwy txvbqbap7 txvbqbcg", Jt = "txvbqb9ip txvbqbai7 txvbqbap7", Yt = "txvbqb9ip txvbqbai7 txvbqbap7", Xt = ({ summary: e, aside: t, children: n, className: r }) => {
|
|
1390
1400
|
let i = null;
|
|
1391
1401
|
e != null && (i = /* @__PURE__ */ A("div", {
|
|
1392
|
-
className:
|
|
1402
|
+
className: Kt,
|
|
1393
1403
|
children: e
|
|
1394
1404
|
}));
|
|
1395
1405
|
let a = null;
|
|
1396
1406
|
t != null && (a = /* @__PURE__ */ A("aside", {
|
|
1397
|
-
className:
|
|
1407
|
+
className: Yt,
|
|
1398
1408
|
children: t
|
|
1399
1409
|
}));
|
|
1400
1410
|
let o = null;
|
|
1401
1411
|
return (n != null || a != null) && (o = /* @__PURE__ */ A("div", {
|
|
1402
|
-
className:
|
|
1412
|
+
className: Jt,
|
|
1403
1413
|
children: n
|
|
1404
1414
|
})), /* @__PURE__ */ j("div", {
|
|
1405
|
-
className: Le(
|
|
1415
|
+
className: Le(Gt, r),
|
|
1406
1416
|
children: [i, /* @__PURE__ */ j("div", {
|
|
1407
|
-
className:
|
|
1417
|
+
className: qt,
|
|
1408
1418
|
children: [o, a]
|
|
1409
1419
|
})]
|
|
1410
1420
|
});
|
|
1411
|
-
},
|
|
1412
|
-
let { entities: r, entityRegistry: i } = l(), a =
|
|
1421
|
+
}, Zt = "txvbqbv9z txvbqb3d txvbqbvwr", Qt = ({ count: e, entity: t, where: n }) => {
|
|
1422
|
+
let { entities: r, entityRegistry: i } = l(), a = be(ke), o = 0;
|
|
1413
1423
|
typeof e == "number" && Number.isFinite(e) && (o = e);
|
|
1414
1424
|
let s = r[t];
|
|
1415
1425
|
if (s == null) return /* @__PURE__ */ A("span", { children: o });
|
|
@@ -1425,7 +1435,7 @@ var Bt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txv
|
|
|
1425
1435
|
};
|
|
1426
1436
|
return /* @__PURE__ */ A(De, {
|
|
1427
1437
|
to: u,
|
|
1428
|
-
className:
|
|
1438
|
+
className: Zt,
|
|
1429
1439
|
onClick: (e) => {
|
|
1430
1440
|
if (c != null || a == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
|
|
1431
1441
|
e.preventDefault();
|
|
@@ -1450,47 +1460,47 @@ var Bt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txv
|
|
|
1450
1460
|
},
|
|
1451
1461
|
children: o
|
|
1452
1462
|
});
|
|
1453
|
-
},
|
|
1463
|
+
}, $t = "txvbqb9ip", en = "txvbqb9ip txvbqbai7 txvbqbaop", tn = ({ headerNode: e, tabs: t, activeId: n, children: r }) => {
|
|
1454
1464
|
let i = null;
|
|
1455
1465
|
return t != null && t.length > 1 && n != null && (i = /* @__PURE__ */ A(Me, {
|
|
1456
1466
|
items: t,
|
|
1457
1467
|
activeId: n,
|
|
1458
1468
|
onChange: () => {},
|
|
1459
|
-
className:
|
|
1469
|
+
className: $t
|
|
1460
1470
|
})), /* @__PURE__ */ A(Ne, {
|
|
1461
1471
|
headerNode: e,
|
|
1462
1472
|
tabsNode: i,
|
|
1463
1473
|
children: /* @__PURE__ */ A("div", {
|
|
1464
|
-
className:
|
|
1474
|
+
className: en,
|
|
1465
1475
|
children: r
|
|
1466
1476
|
})
|
|
1467
1477
|
});
|
|
1468
|
-
},
|
|
1469
|
-
className: Le(
|
|
1478
|
+
}, nn = "txvbqb9jg txvbqbcp txvbqbany txvbqbajy", rn = ({ children: e, className: t }) => /* @__PURE__ */ A("span", {
|
|
1479
|
+
className: Le(nn, t),
|
|
1470
1480
|
children: e
|
|
1471
|
-
}),
|
|
1472
|
-
function
|
|
1481
|
+
}), an = [];
|
|
1482
|
+
function on() {
|
|
1473
1483
|
return Reflect.get(k, "default") ?? k;
|
|
1474
1484
|
}
|
|
1475
|
-
var
|
|
1476
|
-
function
|
|
1477
|
-
let r =
|
|
1485
|
+
var sn = on();
|
|
1486
|
+
function cn(e, n) {
|
|
1487
|
+
let r = sn.useRelayEnvironment(), [i, o] = E(null), [s, c] = E(!1), [l, u] = E(!1), d = Se(a, () => t().generation, () => t().generation), { enabled: f = !0, deps: p = an, getVariables: m } = n, h = C(() => {
|
|
1478
1488
|
try {
|
|
1479
1489
|
return m == null ? e.variables : m();
|
|
1480
1490
|
} catch {
|
|
1481
1491
|
return null;
|
|
1482
1492
|
}
|
|
1483
|
-
}, [e.variables, m]), g =
|
|
1493
|
+
}, [e.variables, m]), g = T(() => h(), [h]), _ = T(() => {
|
|
1484
1494
|
if (g == null) return null;
|
|
1485
1495
|
try {
|
|
1486
1496
|
return JSON.stringify(g);
|
|
1487
1497
|
} catch {
|
|
1488
1498
|
return null;
|
|
1489
1499
|
}
|
|
1490
|
-
}, [g]), v = !!f, y = v && g != null && s && i == null && !l, b =
|
|
1491
|
-
return
|
|
1500
|
+
}, [g]), v = !!f, y = v && g != null && s && i == null && !l, b = xe(null);
|
|
1501
|
+
return w(() => {
|
|
1492
1502
|
let t = null, n = h();
|
|
1493
|
-
return v && n != null && (o(null), u(!1), c(!0), t =
|
|
1503
|
+
return v && n != null && (o(null), u(!1), c(!0), t = sn.requestSubscription(r, {
|
|
1494
1504
|
subscription: e.subscription,
|
|
1495
1505
|
variables: n,
|
|
1496
1506
|
cacheConfig: e.cacheConfig,
|
|
@@ -1525,26 +1535,26 @@ function sn(e, n) {
|
|
|
1525
1535
|
}
|
|
1526
1536
|
//#endregion
|
|
1527
1537
|
//#region src/hooks/useCopyToClipboard.ts
|
|
1528
|
-
var
|
|
1529
|
-
function
|
|
1538
|
+
var ln = "copy-to-clipboard-fallback";
|
|
1539
|
+
function un(e) {
|
|
1530
1540
|
if (typeof document > "u") return;
|
|
1531
|
-
let t = document.getElementById(
|
|
1532
|
-
t ?? (t = document.createElement("textarea"), t.id =
|
|
1541
|
+
let t = document.getElementById(ln);
|
|
1542
|
+
t ?? (t = document.createElement("textarea"), t.id = ln, t.setAttribute("readonly", ""), t.style.position = "absolute", t.style.left = "-9999px", t.style.top = "0", t.style.opacity = "0", document.body.appendChild(t)), t.value = e, t.select(), document.execCommand("copy");
|
|
1533
1543
|
}
|
|
1534
|
-
function
|
|
1535
|
-
let [t, n] =
|
|
1536
|
-
return
|
|
1544
|
+
function dn(e = 2e3) {
|
|
1545
|
+
let [t, n] = E(null), r = xe(null);
|
|
1546
|
+
return w(() => () => {
|
|
1537
1547
|
r.current != null && window.clearTimeout(r.current);
|
|
1538
1548
|
}, []), {
|
|
1539
1549
|
copiedKey: t,
|
|
1540
|
-
copy:
|
|
1550
|
+
copy: C(async (t, i) => {
|
|
1541
1551
|
let a = !1, o;
|
|
1542
1552
|
if (typeof navigator < "u" && (o = navigator.clipboard), o != null) try {
|
|
1543
1553
|
await o.writeText(t), a = !0;
|
|
1544
1554
|
} catch {
|
|
1545
1555
|
a = !1;
|
|
1546
1556
|
}
|
|
1547
|
-
return a ||= (
|
|
1557
|
+
return a ||= (un(t), !0), i != null && (n(i), r.current != null && window.clearTimeout(r.current), r.current = window.setTimeout(() => {
|
|
1548
1558
|
n(null), r.current = null;
|
|
1549
1559
|
}, e)), a;
|
|
1550
1560
|
}, [e])
|
|
@@ -1552,26 +1562,26 @@ function un(e = 2e3) {
|
|
|
1552
1562
|
}
|
|
1553
1563
|
//#endregion
|
|
1554
1564
|
//#region src/hooks/useRefetchNeededReload.ts
|
|
1555
|
-
function
|
|
1556
|
-
let [t, n] =
|
|
1557
|
-
return
|
|
1565
|
+
function fn(e) {
|
|
1566
|
+
let [t, n] = E(null);
|
|
1567
|
+
return w(() => {
|
|
1558
1568
|
n(null);
|
|
1559
1569
|
}, [e]), {
|
|
1560
1570
|
reason: t,
|
|
1561
|
-
onRefetchNeeded:
|
|
1571
|
+
onRefetchNeeded: C((e) => {
|
|
1562
1572
|
n(e ?? "UNKNOWN");
|
|
1563
1573
|
}, []),
|
|
1564
|
-
reload:
|
|
1574
|
+
reload: C(() => {
|
|
1565
1575
|
window.location.reload();
|
|
1566
1576
|
}, []),
|
|
1567
|
-
clear:
|
|
1577
|
+
clear: C(() => {
|
|
1568
1578
|
n(null);
|
|
1569
1579
|
}, [])
|
|
1570
1580
|
};
|
|
1571
1581
|
}
|
|
1572
1582
|
//#endregion
|
|
1573
1583
|
//#region src/i18n/useReviewStatusLabel.ts
|
|
1574
|
-
function
|
|
1584
|
+
function pn() {
|
|
1575
1585
|
let { t: e } = u();
|
|
1576
1586
|
function t(t) {
|
|
1577
1587
|
if (t == null) return e("review.status.unknown");
|
|
@@ -1586,7 +1596,7 @@ function fn() {
|
|
|
1586
1596
|
}
|
|
1587
1597
|
//#endregion
|
|
1588
1598
|
//#region src/modules/base64.ts
|
|
1589
|
-
function
|
|
1599
|
+
function mn(e) {
|
|
1590
1600
|
if (typeof e != "string") throw TypeError("encodeUtf8ToBase64 expects a string input.");
|
|
1591
1601
|
if (typeof globalThis.btoa == "function") {
|
|
1592
1602
|
let t = encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, (e, t) => String.fromCharCode(Number.parseInt(t, 16)));
|
|
@@ -1594,7 +1604,7 @@ function pn(e) {
|
|
|
1594
1604
|
}
|
|
1595
1605
|
throw Error("No base64 encoder is available in this environment.");
|
|
1596
1606
|
}
|
|
1597
|
-
function
|
|
1607
|
+
function hn(e) {
|
|
1598
1608
|
if (typeof e != "string") throw TypeError("decodeBase64ToUtf8 expects a string input.");
|
|
1599
1609
|
if (typeof globalThis.atob == "function") {
|
|
1600
1610
|
let t = globalThis.atob(e), n = Array.from(t, (e) => `%${e.charCodeAt(0).toString(16).padStart(2, "0")}`).join("");
|
|
@@ -1604,33 +1614,33 @@ function mn(e) {
|
|
|
1604
1614
|
}
|
|
1605
1615
|
//#endregion
|
|
1606
1616
|
//#region src/modules/formatFileSize.ts
|
|
1607
|
-
var
|
|
1617
|
+
var gn = [
|
|
1608
1618
|
"B",
|
|
1609
1619
|
"KB",
|
|
1610
1620
|
"MB",
|
|
1611
1621
|
"GB",
|
|
1612
1622
|
"TB"
|
|
1613
|
-
],
|
|
1623
|
+
], _n = 1024, vn = (e, t) => {
|
|
1614
1624
|
if (t === "B") return Math.round(e).toString();
|
|
1615
1625
|
let n = 1;
|
|
1616
1626
|
return e >= 10 && (n = 0), e.toFixed(n);
|
|
1617
1627
|
};
|
|
1618
|
-
function
|
|
1628
|
+
function yn(e) {
|
|
1619
1629
|
let t = e;
|
|
1620
1630
|
Number.isFinite(e) || (t = 0);
|
|
1621
1631
|
let n = t < 0, r = Math.abs(t), i = 0;
|
|
1622
|
-
for (; r >=
|
|
1623
|
-
let a =
|
|
1632
|
+
for (; r >= _n && i < gn.length - 1;) r /= _n, i += 1;
|
|
1633
|
+
let a = gn[i] ?? "B", o = r;
|
|
1624
1634
|
return n && (o = -r), {
|
|
1625
1635
|
value: o,
|
|
1626
1636
|
unit: a,
|
|
1627
|
-
displayValue:
|
|
1637
|
+
displayValue: vn(o, a)
|
|
1628
1638
|
};
|
|
1629
1639
|
}
|
|
1630
1640
|
//#endregion
|
|
1631
1641
|
//#region src/relay/createInlineReader.ts
|
|
1632
|
-
var { readInlineData:
|
|
1642
|
+
var { readInlineData: bn } = k, xn = (e) => (t) => bn(e, t), Sn = (e) => e;
|
|
1633
1643
|
//#endregion
|
|
1634
|
-
export { b as AcceptInvitationScreen,
|
|
1644
|
+
export { b as AcceptInvitationScreen, se as BackofficeDetailBadgeRow, ce as BackofficeDetailField, ue as BackofficeDetailPayload, le as BackofficeDetailSection, x as BackofficeErrorBoundary, Wt as BackofficeFilterAction, rn as BackofficeInlineFilterRow, Xt as BackofficeOverviewLayout, It as BackofficeProvider, Qt as BackofficeRelatedCountLink, ve as BackofficeRightPageLayout, tn as BackofficeTabbedDetailShell, ie as EntityFilterValue, re as EntityFilterValueText, ae as EntityIdFilterField, oe as EntityIdPickerDialog, v as LoginFlow, ee as PasswordResetCompleteScreen, te as PasswordResetRequestScreen, R as RelayProvider, ne as VerifyEmailScreen, $e as backofficeReactI18nResources, h as base64UrlToBuffer, g as bufferToBase64Url, _e as buildDataTableColumns, o as configureRelayEnvironment, Lt as createBackofficeLazyValue, Je as createI18nInstance, xn as createInlineDataReader, _ as createUseAuth, hn as decodeBase64ToUtf8, mn as encodeUtf8ToBase64, yn as formatFileSize, n as getEnvironment, i as getNetwork, t as getRelayTransportSnapshot, Sn as identityView, m as mapWebAuthnRegistrationError, p as parseSignCount, e as reconnectRelayWebSocket, he as requireField, pe as requireLinkedRecordId, r as resetRelayStore, me as resolveAgentStartOutcome, fe as resolveMutationOutcome, ge as resolveVisibleDetailPages, a as subscribeRelayTransport, y as synchronizeAuthStatusQuery, l as useBackofficeConfig, de as useBackofficeListUrlState, cn as useConditionalSubscription, dn as useCopyToClipboard, fn as useRefetchNeededReload, pn as useReviewStatusLabel, tt as withBackofficeReactI18nResources };
|
|
1635
1645
|
|
|
1636
1646
|
//# sourceMappingURL=backoffice-react.js.map
|