@deviceinsight/ng-ui-scale-lib 10.2.2 → 10.3.1
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/dist/{AccessEditModal-kndFZDt-.js → AccessEditModal-C_Ymwezb.js} +17 -17
- package/dist/{AccessEditModal-kndFZDt-.js.map → AccessEditModal-C_Ymwezb.js.map} +1 -1
- package/dist/{BundleManagementContainer-vMlhg6fJ.js → BundleManagementContainer-ChHU9uVM.js} +4 -4
- package/dist/{BundleManagementContainer-vMlhg6fJ.js.map → BundleManagementContainer-ChHU9uVM.js.map} +1 -1
- package/dist/{BundlesContainer-CaC__bAh.js → BundlesContainer-C1myE7uh.js} +40 -40
- package/dist/{BundlesContainer-CaC__bAh.js.map → BundlesContainer-C1myE7uh.js.map} +1 -1
- package/dist/{DatapointImport-Cq8cifAI.js → DatapointImport-Cyt0hdP-.js} +10 -10
- package/dist/DatapointImport-Cyt0hdP-.js.map +1 -0
- package/dist/{FileUploadInput-DSyHVZUT.js → FileUploadInput-BU6ttAuK.js} +2 -2
- package/dist/{FileUploadInput-DSyHVZUT.js.map → FileUploadInput-BU6ttAuK.js.map} +1 -1
- package/dist/{Files-CJ7EHXzr.js → Files-mFzfngqf.js} +3 -3
- package/dist/{Files-CJ7EHXzr.js.map → Files-mFzfngqf.js.map} +1 -1
- package/dist/{GlobalPowerBiReports-PsiWcApU.js → GlobalPowerBiReports-DWXwL_TH.js} +2 -2
- package/dist/{GlobalPowerBiReports-PsiWcApU.js.map → GlobalPowerBiReports-DWXwL_TH.js.map} +1 -1
- package/dist/{JsonSettingWidget-CpZmTuBe.js → JsonSettingWidget-BbYyUBtl.js} +9 -9
- package/dist/JsonSettingWidget-BbYyUBtl.js.map +1 -0
- package/dist/{LicensesEditPage-CwGor2gV.js → LicensesEditPage-wa-EEvag.js} +11 -11
- package/dist/{LicensesEditPage-CwGor2gV.js.map → LicensesEditPage-wa-EEvag.js.map} +1 -1
- package/dist/{LicensesList-DWQlVNdR.js → LicensesList-ihwXeJ0k.js} +2 -2
- package/dist/{LicensesList-DWQlVNdR.js.map → LicensesList-ihwXeJ0k.js.map} +1 -1
- package/dist/{PropertiesEditPage-C4jjCoPp.js → PropertiesEditPage-CsrU5lnR.js} +29 -29
- package/dist/{PropertiesEditPage-C4jjCoPp.js.map → PropertiesEditPage-CsrU5lnR.js.map} +1 -1
- package/dist/{PropertiesList-CBLvLopM.js → PropertiesList-DJ3hDmSL.js} +5 -5
- package/dist/{PropertiesList-CBLvLopM.js.map → PropertiesList-DJ3hDmSL.js.map} +1 -1
- package/dist/{TemplateEditPage-d-3_n4YW.js → TemplateEditPage-DPJ5MJpd.js} +25 -25
- package/dist/{TemplateEditPage-d-3_n4YW.js.map → TemplateEditPage-DPJ5MJpd.js.map} +1 -1
- package/dist/{TemplateTextInput-CQ6XJiql.js → TemplateTextInput-CmCxL3xj.js} +2 -2
- package/dist/{TemplateTextInput-CQ6XJiql.js.map → TemplateTextInput-CmCxL3xj.js.map} +1 -1
- package/dist/{TemplatesListPage-roTvuqft.js → TemplatesListPage-HwJpI4I0.js} +13 -13
- package/dist/{TemplatesListPage-roTvuqft.js.map → TemplatesListPage-HwJpI4I0.js.map} +1 -1
- package/dist/{UserGroupAssignments-DTXRBp_V.js → UserGroupAssignments-2ZrZXU8K.js} +10 -10
- package/dist/{UserGroupAssignments-DTXRBp_V.js.map → UserGroupAssignments-2ZrZXU8K.js.map} +1 -1
- package/dist/{UserGroupTheme-CAHBWb9Q.js → UserGroupTheme-DJut0WZe.js} +5 -5
- package/dist/{UserGroupTheme-CAHBWb9Q.js.map → UserGroupTheme-DJut0WZe.js.map} +1 -1
- package/dist/api.js +23 -23
- package/dist/index.js +567 -562
- package/dist/index.js.map +1 -1
- package/dist/{setTitle-CjnK8p-J.js → setTitle-Dij-z9p9.js} +4547 -4543
- package/dist/setTitle-Dij-z9p9.js.map +1 -0
- package/package.json +12 -11
- package/dist/DatapointImport-Cq8cifAI.js.map +0 -1
- package/dist/JsonSettingWidget-CpZmTuBe.js.map +0 -1
- package/dist/setTitle-CjnK8p-J.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -4,79 +4,91 @@ import z from "i18next";
|
|
|
4
4
|
import { merge as Ie, kebabCase as Ls, isEqual as dn, omit as un, debounce as hn, uniqBy as Ms, unescape as Vs, isEmpty as fn, groupBy as Us, uniqWith as Os, mergeWith as Fs } from "lodash";
|
|
5
5
|
import re from "qs";
|
|
6
6
|
import { initReactI18next as _s, setI18n as kt } from "react-i18next";
|
|
7
|
-
import { s as Ks, U as P, T as Bs, S as qe, a as w, u as G, g as Hs, b as Gs, f as $s,
|
|
8
|
-
import { setAxios as
|
|
9
|
-
import { setGlobalErrorMessageBoxOptions as
|
|
7
|
+
import { s as Ks, U as P, T as Bs, S as qe, a as w, u as G, g as Hs, b as Gs, f as $s, r as zs, c as Ws, i as qs, d as js, e as Ys, o as at, h as Xs, v as Zs, j as Qs, A as Js, k as er, l as tr, m as nr, n as sr, p as Dt, q as Lt, G as ke, t as X, I as Mt, w as he, x as Vt, y as Ut, z as M, B as mn, C as ot, D as pe, E as it, F as rr, H as ct, J as lt, K as ar, L as pn, M as Ae, N as Ot, O as or, P as Q, Q as dt, R as ir, V as gn, W as yn, X as ut, Y as cr, Z as wn, _ as ve, $ as lr, a0 as dr, a1 as vn, a2 as De, a3 as Cn, a4 as ht, a5 as ur, a6 as bn, a7 as hr, a8 as Pe, a9 as je, aa as ft, ab as fr, ac as mr, ad as pr, ae as gr, af as yr, ag as Ft, ah as wr, ai as vr, aj as Cr, ak as Sn, al as br, am as Sr, an as te, ao as Ar, ap as Pr, aq as xr, ar as Tr, as as Er, at as Nr, au as Rr, av as Ir, aw as kr, ax as fe, ay as mt, az as Dr, aA as Lr, aB as Mr, aC as Vr, aD as ae, aE as se, aF as Ur, aG as Ye, aH as An, aI as pt, aJ as Or, aK as Fr, aL as _t, aM as _r, aN as Kr, aO as Pn, aP as Br, aQ as xn, aR as Tn, aS as En, aT as Hr, aU as Gr, aV as J, aW as $r, aX as zr, aY as Wr, aZ as qr, a_ as jr, a$ as Yr, b0 as Xr, b1 as Zr, b2 as Qr, b3 as Jr, b4 as ea, b5 as ta, b6 as na, b7 as sa, b8 as ra, b9 as aa, ba as oa, bb as ia, bc as ca, bd as la, be as da, bf as ua, bg as ha, bh as fa, bi as ma, bj as pa, bk as ga, bl as Nn, bm as ya, bn as Rn, bo as wa, bp as va } from "./setTitle-Dij-z9p9.js";
|
|
8
|
+
import { setAxios as Ca, readUIConfigurations as ba, getAxios as Sa, readUISecrets as Aa, fetchProperties as Pa, fetchAssetGroupDefinitions as xa, fetchAssetDefinitions as Ta, fetchLocales as Ea, readAccountObject as gt, writePaginationSettings as Na, getVersion as Ra, changeEmail as Ia, triggerPasswordReset as ka, readLegalPage as Da, readPaginationSettings as La, requestToken as Ma, fetchMe as Le, setUserPassword as Va, fetchAuthorizationOptions as Ua, readFavorites as Oa, writeFavorites as Fa, updateLocaleOfUser as _a, searchUserGroups as Ka, searchUsers as Ba, searchAssetGroups as Ha, searchAssets as Ga, writeAccountObject as In, fetchShadowKeys as $a, checkShowUserDocumentation as za, readShowUserDocumentation as Wa, acceptEULA as qa, updateMe as kn, readReleaseNotesSubscription as ja, readReleaseNotesVersionsViewed as Ya, writeReleaseNotesVersionsViewed as Xa, writeReleaseNotesSubscription as Za } from "@deviceinsight/ng-ui-api-client";
|
|
9
|
+
import { setGlobalErrorMessageBoxOptions as Qa, initializeTranslation as Ja, messageBoxError as Z, ContentHeader as eo, MultiMenu as xe, MultiMenuItem as ne, nanoid10 as Dn, messageBoxSuccess as Kt, InfoBox as to, messageBoxDismissGroup as Ln, messageBoxWarn as Mn, MessageBoxContainer as Vn } from "@deviceinsight/ng-ui-components";
|
|
10
10
|
import W from "dayjs";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
11
|
+
import no from "dayjs/plugin/advancedFormat";
|
|
12
|
+
import so from "dayjs/plugin/localizedFormat";
|
|
13
|
+
import ro from "dayjs/plugin/timezone";
|
|
14
|
+
import ao from "dayjs/plugin/utc";
|
|
15
15
|
import "dayjs/locale/de";
|
|
16
16
|
import { jsx as n, jsxs as g, Fragment as B } from "react/jsx-runtime";
|
|
17
17
|
import V from "classnames";
|
|
18
18
|
import * as O from "react";
|
|
19
19
|
import { useState as p, useCallback as I, useEffect as S, useContext as x, Component as yt, useRef as H, createContext as wt, useReducer as Un, createElement as Me, useMemo as Ve, PureComponent as vt } from "react";
|
|
20
|
-
import { SpinnerContainer as ge, Button as D, Bubble as ye, Spinner as oe, Icon as me, Tooltip as
|
|
20
|
+
import { SpinnerContainer as ge, Button as D, Bubble as ye, Spinner as oe, Icon as me, Tooltip as oo, ConfirmProvider as io, Modal as Ct, ButtonRow as co, Checkbox as Xe, ModalContainer as On } from "@deviceinsight/ng-ui-basic-components";
|
|
21
21
|
import "i18next-http-backend";
|
|
22
22
|
import "jose";
|
|
23
23
|
import "js-cookie";
|
|
24
|
-
import { Ux4iotContextProvider as
|
|
25
|
-
import
|
|
24
|
+
import { Ux4iotContextProvider as lo } from "ux4iot-react";
|
|
25
|
+
import uo from "color";
|
|
26
26
|
import "axios-retry";
|
|
27
27
|
import { useHistory as q, Link as _, withRouter as bt, useLocation as $, Route as K, Switch as Te, Redirect as St, BrowserRouter as Fn } from "react-router-dom";
|
|
28
|
-
import { useMsal as ie, useAccount as
|
|
28
|
+
import { useMsal as ie, useAccount as ho, MsalProvider as fo, MsalAuthenticationTemplate as mo } from "@azure/msal-react";
|
|
29
29
|
import Ee from "dompurify";
|
|
30
30
|
import { saveAs as _n } from "file-saver";
|
|
31
|
-
import { useForm as Kn, Controller as Ze, FormProvider as
|
|
32
|
-
import { zodResolver as
|
|
33
|
-
import
|
|
34
|
-
import { useSortable as
|
|
35
|
-
import
|
|
36
|
-
import { Resizable as
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import { ErrorBoundary as
|
|
40
|
-
import { locizePlugin as
|
|
31
|
+
import { useForm as Kn, Controller as Ze, FormProvider as po } from "react-hook-form";
|
|
32
|
+
import { zodResolver as go } from "@hookform/resolvers/zod";
|
|
33
|
+
import yo, { createPortal as Bn } from "react-dom";
|
|
34
|
+
import { useSortable as wo } from "@dnd-kit/sortable";
|
|
35
|
+
import vo from "eventemitter3";
|
|
36
|
+
import { Resizable as Co } from "re-resizable";
|
|
37
|
+
import bo from "react-draggable";
|
|
38
|
+
import So from "mark.js";
|
|
39
|
+
import { ErrorBoundary as Ao } from "react-error-boundary";
|
|
40
|
+
import { locizePlugin as Po } from "locize";
|
|
41
41
|
import Bt from "i18next-locize-backend";
|
|
42
42
|
import "react-grid-layout/css/styles.css";
|
|
43
43
|
import "@deviceinsight/ng-ui-components/style.css";
|
|
44
|
-
function
|
|
45
|
-
W.extend(
|
|
44
|
+
function xo() {
|
|
45
|
+
W.extend(so), W.extend(no), W.extend(ao), W.extend(ro);
|
|
46
46
|
}
|
|
47
|
-
const
|
|
48
|
-
Ks(P.getAppName()), Bs.initializeThemeConfiguration(), P.getErrorMessageAutocloseTimeout() &&
|
|
47
|
+
const To = () => {
|
|
48
|
+
Ks(P.getAppName()), Bs.initializeThemeConfiguration(), P.getErrorMessageAutocloseTimeout() && Qa({
|
|
49
49
|
autoClose: P.getErrorMessageAutocloseTimeout() ?? void 0
|
|
50
50
|
});
|
|
51
51
|
const e = P.getCustomStyleConfiguration();
|
|
52
52
|
e && qe.setStyleCustomizations(e);
|
|
53
53
|
};
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
|
|
54
|
+
function Eo(e) {
|
|
55
|
+
const t = [];
|
|
56
|
+
for (let s = 0; s < window.localStorage.length; s++) {
|
|
57
|
+
const r = window.localStorage.key(s);
|
|
58
|
+
r && No(r, e) && t.push(r);
|
|
59
|
+
}
|
|
60
|
+
for (const s of t)
|
|
61
|
+
window.localStorage.removeItem(s);
|
|
62
|
+
}
|
|
63
|
+
function No(e, t) {
|
|
64
|
+
return e.startsWith("msal.") || e.includes(t);
|
|
57
65
|
}
|
|
58
|
-
async function
|
|
66
|
+
async function Ro() {
|
|
67
|
+
const e = await Io() ?? {};
|
|
68
|
+
await ko(e), await P.syncWithBackend(e), To();
|
|
69
|
+
}
|
|
70
|
+
async function Io() {
|
|
59
71
|
try {
|
|
60
|
-
return await
|
|
72
|
+
return await ba();
|
|
61
73
|
} catch (e) {
|
|
62
74
|
console.warn("UI configuration not available", e);
|
|
63
75
|
}
|
|
64
76
|
}
|
|
65
|
-
async function
|
|
77
|
+
async function ko(e) {
|
|
66
78
|
const t = "REACT_APP_TENANT_CONFIG_URL";
|
|
67
|
-
e[t] && await
|
|
79
|
+
e[t] && await Xs({
|
|
68
80
|
[t]: e[t]
|
|
69
81
|
});
|
|
70
82
|
}
|
|
71
|
-
async function
|
|
83
|
+
async function Do() {
|
|
72
84
|
window.runtimeEnv = Ie(
|
|
73
85
|
Hs(),
|
|
74
|
-
await
|
|
86
|
+
await Lo() ?? {},
|
|
75
87
|
window.runtimeEnv ?? {},
|
|
76
88
|
window.tenantRuntimeEnv ?? {}
|
|
77
89
|
);
|
|
78
90
|
}
|
|
79
|
-
async function
|
|
91
|
+
async function Lo() {
|
|
80
92
|
try {
|
|
81
93
|
return (await rt.get("/runtimeEnv.json", {
|
|
82
94
|
responseType: "json"
|
|
@@ -85,30 +97,30 @@ async function Io() {
|
|
|
85
97
|
console.error("Runtime environment not available", e);
|
|
86
98
|
}
|
|
87
99
|
}
|
|
88
|
-
function
|
|
100
|
+
function Mo() {
|
|
89
101
|
at(async () => {
|
|
90
102
|
window.runtimeEnv = Ie(
|
|
91
|
-
await
|
|
92
|
-
await
|
|
103
|
+
await Vo() ?? {},
|
|
104
|
+
await Uo() ?? {},
|
|
93
105
|
window.runtimeEnv ?? {}
|
|
94
|
-
),
|
|
106
|
+
), Zs(window.runtimeEnv, !0), Qs.getState().setGoogleMapsApiKey(window.runtimeEnv.REACT_APP_GOOGLE_MAPS_API_KEY);
|
|
95
107
|
});
|
|
96
108
|
}
|
|
97
|
-
async function
|
|
109
|
+
async function Vo() {
|
|
98
110
|
try {
|
|
99
|
-
return (await
|
|
111
|
+
return (await Sa().get("../runtimeSecrets.json")).data;
|
|
100
112
|
} catch (e) {
|
|
101
113
|
console.error("Runtime secrets not available", e);
|
|
102
114
|
}
|
|
103
115
|
}
|
|
104
|
-
async function
|
|
116
|
+
async function Uo() {
|
|
105
117
|
try {
|
|
106
|
-
return await
|
|
118
|
+
return await Aa();
|
|
107
119
|
} catch (e) {
|
|
108
120
|
console.warn("UI secrets not available", e);
|
|
109
121
|
}
|
|
110
122
|
}
|
|
111
|
-
function
|
|
123
|
+
function Oo() {
|
|
112
124
|
return rt.create({
|
|
113
125
|
baseURL: P.getApiBaseUrl(),
|
|
114
126
|
headers: {
|
|
@@ -120,23 +132,24 @@ function Mo() {
|
|
|
120
132
|
})
|
|
121
133
|
});
|
|
122
134
|
}
|
|
123
|
-
async function
|
|
124
|
-
const e =
|
|
125
|
-
Gs(e),
|
|
135
|
+
async function Fo() {
|
|
136
|
+
const e = Oo();
|
|
137
|
+
Gs(e), Ca(e);
|
|
126
138
|
const t = await $s();
|
|
127
139
|
if (t) {
|
|
128
|
-
|
|
140
|
+
zs(t) === "sessionStorage" && Eo(t.clientId);
|
|
141
|
+
const s = Ws(t), r = new ks(s);
|
|
129
142
|
await r.initialize(), r.enableAccountStorageEvents(), r.addEventCallback((a) => {
|
|
130
143
|
if ((a.eventType === Be.LOGIN_SUCCESS || a.eventType === Be.ACQUIRE_TOKEN_SUCCESS || a.eventType === Be.SSO_SILENT_SUCCESS) && a.payload) {
|
|
131
144
|
const i = a.payload.account;
|
|
132
145
|
r.setActiveAccount(i);
|
|
133
146
|
}
|
|
134
|
-
}),
|
|
147
|
+
}), qs(r, s.auth.clientId), js();
|
|
135
148
|
} else
|
|
136
|
-
|
|
149
|
+
Ys();
|
|
137
150
|
}
|
|
138
|
-
async function
|
|
139
|
-
await
|
|
151
|
+
async function vu() {
|
|
152
|
+
await Do(), xo(), await Fo(), await Ro(), Mo(), Ja(w, G);
|
|
140
153
|
try {
|
|
141
154
|
z.isInitialized || await z.use(_s).init({
|
|
142
155
|
fallbackLng: "en",
|
|
@@ -149,7 +162,7 @@ async function gu() {
|
|
|
149
162
|
console.error(e);
|
|
150
163
|
}
|
|
151
164
|
}
|
|
152
|
-
const
|
|
165
|
+
const _o = () => ({
|
|
153
166
|
name: "",
|
|
154
167
|
clientSecret: "",
|
|
155
168
|
revocationUri: "",
|
|
@@ -164,12 +177,12 @@ const Uo = () => ({
|
|
|
164
177
|
jwksUri: ""
|
|
165
178
|
}), Hn = ({ children: e }) => {
|
|
166
179
|
const [t, s] = p(!1), [r, a] = p(null), o = (c) => {
|
|
167
|
-
s(!0), a(c ||
|
|
180
|
+
s(!0), a(c || _o());
|
|
168
181
|
}, i = () => {
|
|
169
182
|
s(!1), a(null);
|
|
170
183
|
};
|
|
171
184
|
return /* @__PURE__ */ n(
|
|
172
|
-
|
|
185
|
+
Js.Provider,
|
|
173
186
|
{
|
|
174
187
|
value: {
|
|
175
188
|
editModalOpen: t,
|
|
@@ -181,21 +194,21 @@ const Uo = () => ({
|
|
|
181
194
|
}
|
|
182
195
|
);
|
|
183
196
|
};
|
|
184
|
-
function
|
|
185
|
-
return
|
|
197
|
+
function Ko() {
|
|
198
|
+
return Pa().then((e) => (e.forEach((t) => {
|
|
186
199
|
t.entityTargets.forEach((s) => {
|
|
187
200
|
switch (s) {
|
|
188
201
|
case "ASSET":
|
|
189
|
-
Ce(
|
|
202
|
+
Ce(sr, t);
|
|
190
203
|
break;
|
|
191
204
|
case "ASSET_GROUP":
|
|
192
|
-
Ce(
|
|
205
|
+
Ce(nr, t);
|
|
193
206
|
break;
|
|
194
207
|
case "ACCOUNT":
|
|
195
|
-
Ce(
|
|
208
|
+
Ce(tr, t);
|
|
196
209
|
break;
|
|
197
210
|
case "ACCOUNT_GROUP":
|
|
198
|
-
Ce(
|
|
211
|
+
Ce(er, t);
|
|
199
212
|
break;
|
|
200
213
|
}
|
|
201
214
|
});
|
|
@@ -207,17 +220,17 @@ function Ce(e, { key: t, type: s }) {
|
|
|
207
220
|
type: s
|
|
208
221
|
});
|
|
209
222
|
}
|
|
210
|
-
async function
|
|
211
|
-
return X(["READ_ASSET_GROUP_DEFINITION"]) ? await
|
|
223
|
+
async function Bo() {
|
|
224
|
+
return X(["READ_ASSET_GROUP_DEFINITION"]) ? await xa() : [];
|
|
212
225
|
}
|
|
213
|
-
async function
|
|
214
|
-
return X(["READ_LOCALE"]) ? await
|
|
226
|
+
async function Ho() {
|
|
227
|
+
return X(["READ_LOCALE"]) ? await Ea() : [];
|
|
215
228
|
}
|
|
216
229
|
async function Ht() {
|
|
217
|
-
return X(["READ_PROPERTY"]) ? await
|
|
230
|
+
return X(["READ_PROPERTY"]) ? await Ko() : [];
|
|
218
231
|
}
|
|
219
|
-
async function
|
|
220
|
-
return X(["READ_ASSET_DEFINITION"]) ? await
|
|
232
|
+
async function Go() {
|
|
233
|
+
return X(["READ_ASSET_DEFINITION"]) ? await Ta() : [];
|
|
221
234
|
}
|
|
222
235
|
const Gn = ({ children: e }) => {
|
|
223
236
|
const [t, s] = p(!1), [r, a] = p([]), [o, i] = p([]), [c, u] = p([]), [d, l] = p([]), f = I(
|
|
@@ -225,14 +238,14 @@ const Gn = ({ children: e }) => {
|
|
|
225
238
|
[]
|
|
226
239
|
), h = I(async () => {
|
|
227
240
|
try {
|
|
228
|
-
const v = await
|
|
241
|
+
const v = await Bo();
|
|
229
242
|
return u(v), Dt(v), Lt(null), v;
|
|
230
243
|
} catch (v) {
|
|
231
244
|
return console.error("failed to fetch asset group definitions", v), [];
|
|
232
245
|
}
|
|
233
246
|
}, []), m = I(async () => {
|
|
234
247
|
try {
|
|
235
|
-
const v = await
|
|
248
|
+
const v = await Go();
|
|
236
249
|
return i(v), v;
|
|
237
250
|
} catch (v) {
|
|
238
251
|
return console.error("failed to fetch asset definitions", v), [];
|
|
@@ -240,7 +253,7 @@ const Gn = ({ children: e }) => {
|
|
|
240
253
|
}, []), C = I(() => {
|
|
241
254
|
Promise.all([
|
|
242
255
|
Ht(),
|
|
243
|
-
|
|
256
|
+
Ho().catch((b) => (console.error("failed to fetch locales", b), []))
|
|
244
257
|
]).then((b) => {
|
|
245
258
|
const A = b[0], k = b[1];
|
|
246
259
|
a(A), l(k), s(!0);
|
|
@@ -285,7 +298,7 @@ const Gn = ({ children: e }) => {
|
|
|
285
298
|
s(Mt), a(he), i(!1), u(!0), h(mn), Vt(he.locale), Ut(he.authorities);
|
|
286
299
|
}
|
|
287
300
|
function y(v) {
|
|
288
|
-
return
|
|
301
|
+
return Na(v).then(() => {
|
|
289
302
|
h(v);
|
|
290
303
|
}).catch((b) => {
|
|
291
304
|
console.error("failed to write pagination settings", b);
|
|
@@ -315,24 +328,24 @@ function zn() {
|
|
|
315
328
|
[s]
|
|
316
329
|
);
|
|
317
330
|
S(() => {
|
|
318
|
-
|
|
331
|
+
rr(a);
|
|
319
332
|
}, []);
|
|
320
333
|
const C = I(
|
|
321
334
|
(y) => {
|
|
322
|
-
|
|
335
|
+
$o(y) ? m(e, t) : zo(y) ? (Z(
|
|
323
336
|
/* @__PURE__ */ n(w, { i18nKey: "axios.errors.rateLimitError", children: "Too many attempts to refresh authorization token." })
|
|
324
|
-
), m(e, t), console.error("Renew token request failed (RateLimitError)", y)) :
|
|
337
|
+
), m(e, t), console.error("Renew token request failed (RateLimitError)", y)) : Wo(y) ? (m(e, t), console.error("Renew token request failed (AuthTokenRefreshError)", y)) : qo(y) ? console.error("timeout error: node.js service responded with the following error", y) : jo(e, y) && !d ? (l(!0), Z(
|
|
325
338
|
/* @__PURE__ */ n(w, { i18nKey: "axios.errors.authoritiesMissing", children: "Missing authorities. Please contact your administrator." }),
|
|
326
339
|
{
|
|
327
340
|
onClose: () => l(!1),
|
|
328
341
|
toastId: "authoritiesMissing"
|
|
329
342
|
}
|
|
330
|
-
)) :
|
|
343
|
+
)) : Yo(y) && !o ? (i(!0), Z(
|
|
331
344
|
/* @__PURE__ */ n(w, { i18nKey: "axios.errors.payload", children: "Request/File is larger than limits defined by server." }),
|
|
332
345
|
{
|
|
333
346
|
onClose: () => i(!1)
|
|
334
347
|
}
|
|
335
|
-
)) :
|
|
348
|
+
)) : Xo(y) && !c && (u(!0), Z(
|
|
336
349
|
/* @__PURE__ */ n(w, { i18nKey: "axios.errors.network", children: "Network error. Check your internet connection." }),
|
|
337
350
|
{
|
|
338
351
|
onClose: () => u(!1),
|
|
@@ -349,25 +362,25 @@ function zn() {
|
|
|
349
362
|
f !== y && h(y);
|
|
350
363
|
}, [r, f, C]), null;
|
|
351
364
|
}
|
|
352
|
-
function
|
|
365
|
+
function $o({ error: e }) {
|
|
353
366
|
return e && e.response && e.response.status === 401;
|
|
354
367
|
}
|
|
355
|
-
function
|
|
368
|
+
function zo({ error: e }) {
|
|
356
369
|
return e && e.response && e.response.status === 429 && e.message === "REFRESH_TOKEN_ERROR";
|
|
357
370
|
}
|
|
358
|
-
function
|
|
371
|
+
function Wo({ error: e }) {
|
|
359
372
|
return e && e.message === "REFRESH_TOKEN_ERROR";
|
|
360
373
|
}
|
|
361
|
-
function
|
|
374
|
+
function qo({ error: e }) {
|
|
362
375
|
return e && e.code === "ECONNABORTED";
|
|
363
376
|
}
|
|
364
|
-
function
|
|
377
|
+
function jo(e, { error: t }) {
|
|
365
378
|
return e === he || e.state === "TERMS_ACCEPTANCE_PENDING" ? !1 : t && t.response && t.response.status === 403;
|
|
366
379
|
}
|
|
367
|
-
function
|
|
380
|
+
function Yo({ error: e }) {
|
|
368
381
|
return e && e.response && e.response.status === 413;
|
|
369
382
|
}
|
|
370
|
-
function
|
|
383
|
+
function Xo({ error: e }) {
|
|
371
384
|
return e && e.message === "Network Error";
|
|
372
385
|
}
|
|
373
386
|
const Wn = ({ eula: e }) => /* @__PURE__ */ n(
|
|
@@ -397,21 +410,21 @@ const Wn = ({ eula: e }) => /* @__PURE__ */ n(
|
|
|
397
410
|
l
|
|
398
411
|
)
|
|
399
412
|
) });
|
|
400
|
-
},
|
|
413
|
+
}, Zo = ({ label: e, version: t }) => t ? /* @__PURE__ */ g("span", { className: "version-tag", children: [
|
|
401
414
|
e,
|
|
402
415
|
" ",
|
|
403
416
|
/* @__PURE__ */ g("span", { children: [
|
|
404
417
|
"v",
|
|
405
418
|
t
|
|
406
419
|
] })
|
|
407
|
-
] }) : null,
|
|
420
|
+
] }) : null, Qo = ({ eula: e, isTestTenant: t }) => {
|
|
408
421
|
const s = (/* @__PURE__ */ new Date()).getFullYear(), r = ct(), a = P.getGitCommitShaShort();
|
|
409
422
|
return /* @__PURE__ */ g("footer", { children: [
|
|
410
423
|
"© Device Insight GmbH · ",
|
|
411
424
|
s,
|
|
412
425
|
/* @__PURE__ */ g("div", { className: "footer-version", children: [
|
|
413
426
|
P.getAppName(),
|
|
414
|
-
t && r && /* @__PURE__ */ n(
|
|
427
|
+
t && r && /* @__PURE__ */ n(Zo, { label: "UI", version: r }),
|
|
415
428
|
a && /* @__PURE__ */ g("span", { className: "version-tag", children: [
|
|
416
429
|
"SHA ",
|
|
417
430
|
/* @__PURE__ */ n("span", { children: a })
|
|
@@ -420,12 +433,12 @@ const Wn = ({ eula: e }) => /* @__PURE__ */ n(
|
|
|
420
433
|
e && /* @__PURE__ */ n(Wn, { eula: e })
|
|
421
434
|
] });
|
|
422
435
|
};
|
|
423
|
-
function
|
|
424
|
-
const [t, s] = p(null), [r, a] = p(null), o =
|
|
436
|
+
function Jo({ showApiVersion: e }) {
|
|
437
|
+
const [t, s] = p(null), [r, a] = p(null), o = ar(), i = pn(), { authenticated: c } = x(M);
|
|
425
438
|
S(() => {
|
|
426
439
|
(async () => {
|
|
427
440
|
if (e) {
|
|
428
|
-
const l = await
|
|
441
|
+
const l = await Ra();
|
|
429
442
|
o.current && s(l);
|
|
430
443
|
}
|
|
431
444
|
})();
|
|
@@ -459,17 +472,17 @@ function Xo({ showApiVersion: e }) {
|
|
|
459
472
|
contents: d || u || "",
|
|
460
473
|
isTestTenant: P.isTestTenant()
|
|
461
474
|
}
|
|
462
|
-
) : /* @__PURE__ */ n(
|
|
475
|
+
) : /* @__PURE__ */ n(Qo, { eula: r, isTestTenant: P.isTestTenant() });
|
|
463
476
|
}
|
|
464
|
-
const Ue = lt("Footer")(
|
|
465
|
-
function
|
|
477
|
+
const Ue = lt("Footer")(Jo);
|
|
478
|
+
function ei() {
|
|
466
479
|
const [, e] = p(!1);
|
|
467
480
|
S(() => {
|
|
468
|
-
|
|
481
|
+
or(() => e((t) => !t));
|
|
469
482
|
}, []);
|
|
470
483
|
}
|
|
471
|
-
function
|
|
472
|
-
|
|
484
|
+
function ti({ centered: e, linkToStartPage: t }) {
|
|
485
|
+
ei();
|
|
473
486
|
const s = q();
|
|
474
487
|
function r() {
|
|
475
488
|
t && Q().then((o) => s.push(o));
|
|
@@ -495,8 +508,8 @@ function Qo({ centered: e, linkToStartPage: t }) {
|
|
|
495
508
|
);
|
|
496
509
|
return /* @__PURE__ */ n("div", { className: "di logo", onClick: r, children: a });
|
|
497
510
|
}
|
|
498
|
-
const we = lt("Logo")(
|
|
499
|
-
class
|
|
511
|
+
const we = lt("Logo")(ti);
|
|
512
|
+
class ni extends yt {
|
|
500
513
|
render() {
|
|
501
514
|
const { isLoading: t, success: s, tokenExpired: r } = this.props;
|
|
502
515
|
return /* @__PURE__ */ g("div", { className: "di login", children: [
|
|
@@ -512,7 +525,7 @@ class Jo extends yt {
|
|
|
512
525
|
] });
|
|
513
526
|
}
|
|
514
527
|
}
|
|
515
|
-
class
|
|
528
|
+
class si extends yt {
|
|
516
529
|
constructor() {
|
|
517
530
|
super(...arguments), this.state = {
|
|
518
531
|
isLoading: !0,
|
|
@@ -522,23 +535,17 @@ class ei extends yt {
|
|
|
522
535
|
const { search: t } = this.props.location;
|
|
523
536
|
return !t || !t.length ? {} : re.parse(t.substring(1));
|
|
524
537
|
}, this.onChangeEmailFailed = (t) => {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
break;
|
|
532
|
-
default:
|
|
533
|
-
console.error("unhandled error while setting new email:", t), this.setState({
|
|
534
|
-
isLoading: !1
|
|
535
|
-
});
|
|
536
|
-
}
|
|
538
|
+
t.response.data === "TOKEN_EXPIRED" ? this.setState({
|
|
539
|
+
tokenExpired: !0,
|
|
540
|
+
isLoading: !1
|
|
541
|
+
}) : (console.error("unhandled error while setting new email:", t), this.setState({
|
|
542
|
+
isLoading: !1
|
|
543
|
+
}));
|
|
537
544
|
};
|
|
538
545
|
}
|
|
539
546
|
componentDidMount() {
|
|
540
547
|
const { token: t } = this.getSearchParams();
|
|
541
|
-
typeof t == "string" &&
|
|
548
|
+
typeof t == "string" && Ia(t).then(() => {
|
|
542
549
|
this.setState({
|
|
543
550
|
success: !0,
|
|
544
551
|
isLoading: !1
|
|
@@ -547,14 +554,14 @@ class ei extends yt {
|
|
|
547
554
|
}
|
|
548
555
|
render() {
|
|
549
556
|
const { isLoading: t, success: s, tokenExpired: r } = this.state;
|
|
550
|
-
return /* @__PURE__ */ n(
|
|
557
|
+
return /* @__PURE__ */ n(ni, { isLoading: t, success: s, tokenExpired: r });
|
|
551
558
|
}
|
|
552
559
|
}
|
|
553
|
-
const
|
|
560
|
+
const ri = bt(si), ai = (e, t) => e.email && e.email.length && !ir(e.email) ? t("forgotPassword.validation.email.format", {
|
|
554
561
|
defaultValue: "Please enter a valid email"
|
|
555
|
-
}) : "",
|
|
562
|
+
}) : "", oi = ({ onSubmit: e, showFeedback: t, feedbackType: s, feedbackMessage: r }) => {
|
|
556
563
|
const { t: a } = G(), [o, i] = p(""), [c, u] = p(""), [d, l] = p(!1), f = o !== "" && !c, h = (C) => {
|
|
557
|
-
i(C), u(
|
|
564
|
+
i(C), u(ai(C, a));
|
|
558
565
|
}, m = () => {
|
|
559
566
|
l(!0);
|
|
560
567
|
try {
|
|
@@ -600,15 +607,15 @@ const ti = bt(ei), ni = (e, t) => e.email && e.email.length && !or(e.email) ? t(
|
|
|
600
607
|
] }) }),
|
|
601
608
|
/* @__PURE__ */ n(Ue, {})
|
|
602
609
|
] });
|
|
603
|
-
},
|
|
610
|
+
}, ii = () => {
|
|
604
611
|
const { t: e } = G(), t = q(), [s, r] = p(!1), [a, o] = p(""), [i, c] = p("");
|
|
605
612
|
return /* @__PURE__ */ n(
|
|
606
|
-
|
|
613
|
+
oi,
|
|
607
614
|
{
|
|
608
615
|
showFeedback: s,
|
|
609
616
|
feedbackType: a,
|
|
610
617
|
feedbackMessage: i,
|
|
611
|
-
onSubmit: (d) =>
|
|
618
|
+
onSubmit: (d) => ka(d).then(() => {
|
|
612
619
|
setTimeout(() => t.push("/signin"), 5 * 1e3), r(!0), o("success"), c(
|
|
613
620
|
e("forgotPassword.info", {
|
|
614
621
|
defaultValue: "A link will be sent to your E-Mail to change your password"
|
|
@@ -623,8 +630,8 @@ const ti = bt(ei), ni = (e, t) => e.email && e.email.length && !or(e.email) ? t(
|
|
|
623
630
|
})
|
|
624
631
|
}
|
|
625
632
|
);
|
|
626
|
-
},
|
|
627
|
-
class
|
|
633
|
+
}, ci = "imprint", li = "privacy";
|
|
634
|
+
class di extends O.Component {
|
|
628
635
|
constructor() {
|
|
629
636
|
super(...arguments), this.state = {
|
|
630
637
|
extHtml: "",
|
|
@@ -635,7 +642,7 @@ class ii extends O.Component {
|
|
|
635
642
|
const { location: t } = this.props, s = t.pathname.split("/"), r = s[s.length - 1];
|
|
636
643
|
if (r !== "imprint" && r !== "privacy")
|
|
637
644
|
throw new Error("Wrong legalPage parameter. Should be 'imprint' or 'privacy'. Was " + r);
|
|
638
|
-
|
|
645
|
+
Da(r).then((a) => {
|
|
639
646
|
this.setState({
|
|
640
647
|
extHtml: a,
|
|
641
648
|
pageType: r
|
|
@@ -650,12 +657,12 @@ class ii extends O.Component {
|
|
|
650
657
|
getPageTypeTitle() {
|
|
651
658
|
const { pageType: t } = this.state;
|
|
652
659
|
switch (t) {
|
|
653
|
-
case
|
|
660
|
+
case ci:
|
|
654
661
|
return {
|
|
655
662
|
id: "legal.page.imprint",
|
|
656
663
|
defaultValue: "Imprint / legal"
|
|
657
664
|
};
|
|
658
|
-
case
|
|
665
|
+
case li:
|
|
659
666
|
return {
|
|
660
667
|
id: "legal.page.privacy",
|
|
661
668
|
defaultValue: "Privacy statement"
|
|
@@ -670,7 +677,7 @@ class ii extends O.Component {
|
|
|
670
677
|
render() {
|
|
671
678
|
const { extHtml: t } = this.state;
|
|
672
679
|
return /* @__PURE__ */ g("div", { className: "di legal", children: [
|
|
673
|
-
/* @__PURE__ */ n(
|
|
680
|
+
/* @__PURE__ */ n(eo, { title: this.getPageTypeTitle() }),
|
|
674
681
|
/* @__PURE__ */ n("hr", {}),
|
|
675
682
|
/* @__PURE__ */ n(
|
|
676
683
|
"div",
|
|
@@ -685,7 +692,7 @@ class ii extends O.Component {
|
|
|
685
692
|
] });
|
|
686
693
|
}
|
|
687
694
|
}
|
|
688
|
-
const qn = bt(
|
|
695
|
+
const qn = bt(di);
|
|
689
696
|
function Oe(e, t, s, r, a) {
|
|
690
697
|
return a(e, t, {
|
|
691
698
|
size: r.size
|
|
@@ -694,7 +701,7 @@ function Oe(e, t, s, r, a) {
|
|
|
694
701
|
async function Fe() {
|
|
695
702
|
let e;
|
|
696
703
|
try {
|
|
697
|
-
e = await
|
|
704
|
+
e = await La();
|
|
698
705
|
} catch {
|
|
699
706
|
e = mn;
|
|
700
707
|
}
|
|
@@ -702,7 +709,7 @@ async function Fe() {
|
|
|
702
709
|
}
|
|
703
710
|
async function jn(e, t, s, r) {
|
|
704
711
|
try {
|
|
705
|
-
const a = await
|
|
712
|
+
const a = await Ma(e, t);
|
|
706
713
|
yn(a);
|
|
707
714
|
const [o, i] = await Promise.all([Le(), Fe()]);
|
|
708
715
|
return r(e, o, i), gn(o, s);
|
|
@@ -710,7 +717,7 @@ async function jn(e, t, s, r) {
|
|
|
710
717
|
throw console.error("signin failed", a), ut(), a;
|
|
711
718
|
}
|
|
712
719
|
}
|
|
713
|
-
const
|
|
720
|
+
const ui = (e, t) => {
|
|
714
721
|
switch (e) {
|
|
715
722
|
case "MINLENGTH":
|
|
716
723
|
return t("form.passwordField.error.minLength", { defaultValue: "Password is too short" });
|
|
@@ -725,9 +732,9 @@ const ci = (e, t) => {
|
|
|
725
732
|
default:
|
|
726
733
|
return;
|
|
727
734
|
}
|
|
728
|
-
},
|
|
735
|
+
}, hi = ({ value: e, onChange: t, onBlur: s, placeholder: r, error: a }) => {
|
|
729
736
|
const { t: o } = G();
|
|
730
|
-
return /* @__PURE__ */ n(
|
|
737
|
+
return /* @__PURE__ */ n(cr, { error: ui(a, o), children: /* @__PURE__ */ n(
|
|
731
738
|
"input",
|
|
732
739
|
{
|
|
733
740
|
value: e,
|
|
@@ -756,7 +763,7 @@ const ci = (e, t) => {
|
|
|
756
763
|
if (!/.*\W/.test(e) && !e.includes("_"))
|
|
757
764
|
return Jn;
|
|
758
765
|
};
|
|
759
|
-
function
|
|
766
|
+
function fi(e) {
|
|
760
767
|
return [
|
|
761
768
|
ts,
|
|
762
769
|
ns,
|
|
@@ -765,14 +772,14 @@ function di(e) {
|
|
|
765
772
|
as
|
|
766
773
|
].map((t) => t(e)).filter(wn);
|
|
767
774
|
}
|
|
768
|
-
const
|
|
775
|
+
const mi = (e, t, s) => {
|
|
769
776
|
if (e !== t)
|
|
770
777
|
return s("setPassword.formFields.confirmPassword.mustMatch", {
|
|
771
778
|
defaultValue: "Passwords do not match"
|
|
772
779
|
});
|
|
773
780
|
};
|
|
774
|
-
function
|
|
775
|
-
const { t } = G(), s =
|
|
781
|
+
function pi({ password: e }) {
|
|
782
|
+
const { t } = G(), s = fi(e);
|
|
776
783
|
return /* @__PURE__ */ g("ul", { className: "pw-policy", children: [
|
|
777
784
|
/* @__PURE__ */ n(
|
|
778
785
|
"li",
|
|
@@ -843,7 +850,7 @@ function hi({ password: e }) {
|
|
|
843
850
|
)
|
|
844
851
|
] });
|
|
845
852
|
}
|
|
846
|
-
const
|
|
853
|
+
const gi = ({ tokenError: e, requestFailed: t, username: s, onSubmit: r }) => {
|
|
847
854
|
const { t: a } = G(), {
|
|
848
855
|
handleSubmit: o,
|
|
849
856
|
formState: { isSubmitting: i },
|
|
@@ -881,7 +888,7 @@ const fi = ({ tokenError: e, requestFailed: t, username: s, onSubmit: r }) => {
|
|
|
881
888
|
},
|
|
882
889
|
render: ({ field: { value: l, onChange: f, onBlur: h }, fieldState: { error: m } }) => /* @__PURE__ */ g(B, { children: [
|
|
883
890
|
/* @__PURE__ */ n(
|
|
884
|
-
|
|
891
|
+
hi,
|
|
885
892
|
{
|
|
886
893
|
value: l,
|
|
887
894
|
onChange: f,
|
|
@@ -892,7 +899,7 @@ const fi = ({ tokenError: e, requestFailed: t, username: s, onSubmit: r }) => {
|
|
|
892
899
|
})
|
|
893
900
|
}
|
|
894
901
|
),
|
|
895
|
-
/* @__PURE__ */ n(
|
|
902
|
+
/* @__PURE__ */ n(pi, { password: l })
|
|
896
903
|
] })
|
|
897
904
|
}
|
|
898
905
|
),
|
|
@@ -905,7 +912,7 @@ const fi = ({ tokenError: e, requestFailed: t, username: s, onSubmit: r }) => {
|
|
|
905
912
|
required: a("setPassword.formFields.confirmPassword.mustBeSet", {
|
|
906
913
|
defaultValue: "Please confirm new password"
|
|
907
914
|
}),
|
|
908
|
-
validate: (l) =>
|
|
915
|
+
validate: (l) => mi(u("password"), l, a)
|
|
909
916
|
},
|
|
910
917
|
render: ({ field: { value: l, onChange: f, onBlur: h }, fieldState: { error: m } }) => /* @__PURE__ */ n(
|
|
911
918
|
dt,
|
|
@@ -934,14 +941,14 @@ const fi = ({ tokenError: e, requestFailed: t, username: s, onSubmit: r }) => {
|
|
|
934
941
|
/* @__PURE__ */ n("div", { className: "forgot", children: /* @__PURE__ */ n(_, { to: "/forgotpassword", children: /* @__PURE__ */ n(w, { i18nKey: "setPassword.resendEmail", children: "Resend Password Reset Email" }) }) })
|
|
935
942
|
] }) })
|
|
936
943
|
] }) }) });
|
|
937
|
-
},
|
|
944
|
+
}, yi = () => {
|
|
938
945
|
const { setAuthenticatedUser: e } = x(M), t = q(), s = $(), [r, a] = p(null), { token: o, username: i } = re.parse(s.search.substring(1));
|
|
939
|
-
return /* @__PURE__ */ n(
|
|
946
|
+
return /* @__PURE__ */ n(gi, { username: i, tokenError: r, onSubmit: ({ password: u }) => {
|
|
940
947
|
if (o) {
|
|
941
948
|
if (!i)
|
|
942
949
|
return console.error("change password: could not retrieve username from url"), Promise.reject();
|
|
943
950
|
} else return console.error("change password: could not retrieve token from url"), Promise.reject();
|
|
944
|
-
return
|
|
951
|
+
return Va(o, u).then(() => jn(i, u, !1, e)).then(() => t.push("/")).catch((d) => {
|
|
945
952
|
const l = d.response.data.message;
|
|
946
953
|
if (["TOKEN_EXPIRED", "TOKEN_INVALID"].includes(l))
|
|
947
954
|
a(l);
|
|
@@ -952,7 +959,7 @@ const fi = ({ tokenError: e, requestFailed: t, username: s, onSubmit: r }) => {
|
|
|
952
959
|
});
|
|
953
960
|
} });
|
|
954
961
|
}, os = (e) => /^(?:[a-z0-9]+:)?\/\/.*/i.test(e);
|
|
955
|
-
function
|
|
962
|
+
function wi({ children: e }) {
|
|
956
963
|
const [t, s] = p(ve().aboveForm), [r, a] = p(ve().belowForm), [o, i] = p(
|
|
957
964
|
ve().belowLoginButton
|
|
958
965
|
), [c, u] = p(
|
|
@@ -975,7 +982,7 @@ function pi({ children: e }) {
|
|
|
975
982
|
break;
|
|
976
983
|
}
|
|
977
984
|
};
|
|
978
|
-
return
|
|
985
|
+
return lr(d), () => dr(d);
|
|
979
986
|
}, []), /* @__PURE__ */ n(
|
|
980
987
|
vn.Provider,
|
|
981
988
|
{
|
|
@@ -989,11 +996,11 @@ function pi({ children: e }) {
|
|
|
989
996
|
}
|
|
990
997
|
);
|
|
991
998
|
}
|
|
992
|
-
const
|
|
999
|
+
const vi = () => /* @__PURE__ */ g("div", { className: "di imprint", children: [
|
|
993
1000
|
/* @__PURE__ */ n("span", { className: "link", children: /* @__PURE__ */ n(_, { to: "/legals/imprint", children: /* @__PURE__ */ n(w, { i18nKey: "legal.link.imprint", children: "Imprint / legal" }) }) }),
|
|
994
1001
|
/* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(_, { to: "/legals/privacy", children: /* @__PURE__ */ n(w, { i18nKey: "legal.link.privacy", children: "Privacy statement" }) }) })
|
|
995
1002
|
] });
|
|
996
|
-
function
|
|
1003
|
+
function Ci({ onDone: e, seconds: t }) {
|
|
997
1004
|
const [s, r] = p(t);
|
|
998
1005
|
return S(() => {
|
|
999
1006
|
const a = Date.now(), o = setInterval(() => {
|
|
@@ -1009,7 +1016,7 @@ function yi({ onDone: e, seconds: t }) {
|
|
|
1009
1016
|
" seconds."
|
|
1010
1017
|
] });
|
|
1011
1018
|
}
|
|
1012
|
-
const
|
|
1019
|
+
const bi = ({ authorizationServers: e }) => e && e.length ? /* @__PURE__ */ g("div", { className: "sso", children: [
|
|
1013
1020
|
/* @__PURE__ */ n("div", { className: "or", children: /* @__PURE__ */ n(w, { i18nKey: "signin.signinForm.or", children: "or" }) }),
|
|
1014
1021
|
e.map((t) => /* @__PURE__ */ g("a", { href: t.authorizationUri, className: "sso-link", children: [
|
|
1015
1022
|
/* @__PURE__ */ n("span", { className: `sso-icon ${Ls(t.displayName || t.name)}` }),
|
|
@@ -1041,10 +1048,10 @@ const wi = ({ authorizationServers: e }) => e && e.length ? /* @__PURE__ */ g("d
|
|
|
1041
1048
|
defaultValue: "The platform is currently not available. Please try again in a few minutes."
|
|
1042
1049
|
}
|
|
1043
1050
|
};
|
|
1044
|
-
function
|
|
1051
|
+
function Si({ onSubmit: e, authenticating: t, authenticationFailed: s, authenticationErrorResponseCode: r }) {
|
|
1045
1052
|
const [a, o] = p([]), [i, c] = p(!1), { t: u } = G(), d = H(null), l = H(null), f = t ? "progress" : "auto";
|
|
1046
1053
|
S(() => {
|
|
1047
|
-
|
|
1054
|
+
Ua().then(({ authorizationServers: A }) => {
|
|
1048
1055
|
o(A), c(P.hasLegalPages());
|
|
1049
1056
|
}).catch(() => {
|
|
1050
1057
|
c(P.hasLegalPages());
|
|
@@ -1073,7 +1080,7 @@ function vi({ onSubmit: e, authenticating: t, authenticationFailed: s, authentic
|
|
|
1073
1080
|
}) : u("signin.signinForm.email", {
|
|
1074
1081
|
defaultValue: "E-mail"
|
|
1075
1082
|
});
|
|
1076
|
-
return /* @__PURE__ */ n(
|
|
1083
|
+
return /* @__PURE__ */ n(wi, { children: /* @__PURE__ */ n(vn.Consumer, { children: (A) => /* @__PURE__ */ g("div", { className: "di login", style: { cursor: f }, children: [
|
|
1077
1084
|
/* @__PURE__ */ n("div", { className: "wrap", children: /* @__PURE__ */ g("div", { className: "hold", "data-testid": "form-wrapper", children: [
|
|
1078
1085
|
/* @__PURE__ */ n(we, { centered: !0 }),
|
|
1079
1086
|
A.aboveForm,
|
|
@@ -1137,17 +1144,17 @@ function vi({ onSubmit: e, authenticating: t, authenticationFailed: s, authentic
|
|
|
1137
1144
|
),
|
|
1138
1145
|
/* @__PURE__ */ n("div", { className: "msg", children: s && /* @__PURE__ */ g("div", { className: "error", children: [
|
|
1139
1146
|
m(),
|
|
1140
|
-
C && /* @__PURE__ */ n(
|
|
1147
|
+
C && /* @__PURE__ */ n(Ci, { onDone: v, seconds: 60 })
|
|
1141
1148
|
] }) }),
|
|
1142
1149
|
/* @__PURE__ */ n("div", { className: "forgot", children: /* @__PURE__ */ n(_, { to: "/forgotpassword", children: /* @__PURE__ */ n(w, { i18nKey: "signin.signinForm.forgotPassword", children: "Forgot Password?" }) }) }),
|
|
1143
|
-
i && /* @__PURE__ */ n(
|
|
1144
|
-
/* @__PURE__ */ n(
|
|
1150
|
+
i && /* @__PURE__ */ n(vi, {}),
|
|
1151
|
+
/* @__PURE__ */ n(bi, { authorizationServers: a }),
|
|
1145
1152
|
A.belowForm
|
|
1146
1153
|
] }) }),
|
|
1147
1154
|
/* @__PURE__ */ n(Ue, {})
|
|
1148
1155
|
] }) }) });
|
|
1149
1156
|
}
|
|
1150
|
-
function
|
|
1157
|
+
function Ai() {
|
|
1151
1158
|
try {
|
|
1152
1159
|
const t = new URLSearchParams(window.location.search).get("oauth_callback");
|
|
1153
1160
|
t && !os(t) && localStorage.setItem("OAUTH2_CALLBACK_URL", t);
|
|
@@ -1155,7 +1162,7 @@ function Ci() {
|
|
|
1155
1162
|
console.error("Failed to store redirect location from query string", e);
|
|
1156
1163
|
}
|
|
1157
1164
|
}
|
|
1158
|
-
async function
|
|
1165
|
+
async function Pi(e, t, s) {
|
|
1159
1166
|
t(!0);
|
|
1160
1167
|
try {
|
|
1161
1168
|
const r = await De(), [a, o] = await Promise.all([Le(), Fe(), Q()]);
|
|
@@ -1177,12 +1184,12 @@ function is(e, t) {
|
|
|
1177
1184
|
else
|
|
1178
1185
|
Q().then((r) => e.push(r));
|
|
1179
1186
|
}
|
|
1180
|
-
function
|
|
1187
|
+
function xi() {
|
|
1181
1188
|
const e = q(), { resetGlobalResources: t } = x(ke), { user: s, authenticated: r, afterSignout: a, setAuthenticatedUser: o } = x(M), [i, c] = p(!1), [u, d] = p(!1), [l, f] = p(!1), [h, m] = p(-1);
|
|
1182
1189
|
S(() => {
|
|
1183
|
-
|
|
1190
|
+
Ai(), t();
|
|
1184
1191
|
}, []), S(() => {
|
|
1185
|
-
r && s ? De().then((y) => is(e, y)) : a ||
|
|
1192
|
+
r && s ? De().then((y) => is(e, y)) : a || Pi(e, c, o);
|
|
1186
1193
|
}, [e, r, a, s, o]);
|
|
1187
1194
|
async function C(y, v) {
|
|
1188
1195
|
d(!0), f(!1);
|
|
@@ -1195,7 +1202,7 @@ function Si() {
|
|
|
1195
1202
|
}
|
|
1196
1203
|
}
|
|
1197
1204
|
return i ? /* @__PURE__ */ n(oe, { center: !0 }) : /* @__PURE__ */ n(
|
|
1198
|
-
|
|
1205
|
+
Si,
|
|
1199
1206
|
{
|
|
1200
1207
|
onSubmit: C,
|
|
1201
1208
|
authenticating: u,
|
|
@@ -1204,7 +1211,7 @@ function Si() {
|
|
|
1204
1211
|
}
|
|
1205
1212
|
);
|
|
1206
1213
|
}
|
|
1207
|
-
function
|
|
1214
|
+
function Ti({ children: e }) {
|
|
1208
1215
|
return /* @__PURE__ */ n("div", { className: "di floor-1", children: e });
|
|
1209
1216
|
}
|
|
1210
1217
|
var zt;
|
|
@@ -1217,7 +1224,7 @@ function Qe() {
|
|
|
1217
1224
|
return e;
|
|
1218
1225
|
}, Qe.apply(null, arguments);
|
|
1219
1226
|
}
|
|
1220
|
-
var
|
|
1227
|
+
var Ei = function(t) {
|
|
1221
1228
|
return /* @__PURE__ */ O.createElement("svg", Qe({
|
|
1222
1229
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1223
1230
|
width: 16,
|
|
@@ -1227,7 +1234,7 @@ var Pi = function(t) {
|
|
|
1227
1234
|
d: "m8 0 2.45 4.97 5.55.76-4.04 3.83.99 5.44-4.94-2.61L3.07 15l.99-5.44L0 5.73l5.55-.76z"
|
|
1228
1235
|
})));
|
|
1229
1236
|
};
|
|
1230
|
-
const
|
|
1237
|
+
const Ni = "data:image/svg+xml,%3csvg%20data-name='icon_timeMachine'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20width='24'%20height='24'%3e%3cpath%20id='Uhr'%20d='M12.5,2A10.49,10.49,0,0,0,2.31,10H4.36a8.52,8.52,0,1,1,0,5H2.31A10.5,10.5,0,1,0,12.5,2Z'/%3e%3cg%20id='Zeiger'%3e%3crect%20id='unten'%20x='12.79'%20y='12.32'%20width='2'%20height='5.72'%20transform='translate(34.3%2015.18)%20rotate(132.25)'/%3e%3crect%20id='oben'%20x='11'%20y='7'%20width='2'%20height='7'/%3e%3c/g%3e%3cg%20id='Pfeilende'%3e%3cpath%20d='M0,12H7.05S0,5,0,5Z'/%3e%3c/g%3e%3c/svg%3e", _e = wt({
|
|
1231
1238
|
currentPageTitle: "",
|
|
1232
1239
|
setCurrentPageTitle: () => {
|
|
1233
1240
|
}
|
|
@@ -1243,24 +1250,24 @@ function At(e, t) {
|
|
|
1243
1250
|
};
|
|
1244
1251
|
}, [t, e]), s;
|
|
1245
1252
|
}
|
|
1246
|
-
function
|
|
1253
|
+
function Ri({ children: e, className: t }) {
|
|
1247
1254
|
const s = At(".di.app-wrapper");
|
|
1248
1255
|
return s ? Bn(/* @__PURE__ */ n("div", { className: t, children: e }), s) : null;
|
|
1249
1256
|
}
|
|
1250
|
-
const
|
|
1251
|
-
function
|
|
1252
|
-
const [t, s] = Un(
|
|
1257
|
+
const Ii = (e, t) => e === "closed" && t === "open" ? "pre-opening" : e === "pre-opening" && t === "timeout" ? "opening" : e === "opening" && t === "timeout" ? "open" : e === "open" && t === "close" ? "closing" : e === "closing" && t === "timeout" ? "closed" : e;
|
|
1258
|
+
function ki(e) {
|
|
1259
|
+
const [t, s] = Un(Ii, "closed");
|
|
1253
1260
|
return S(() => {
|
|
1254
1261
|
e ? (s("open"), setTimeout(() => s("timeout"), 50), setTimeout(() => s("timeout"), 300)) : (s("close"), setTimeout(() => s("timeout"), 300));
|
|
1255
1262
|
}, [e]), t;
|
|
1256
1263
|
}
|
|
1257
1264
|
function cs({ className: e, visible: t, onHide: s, children: r }) {
|
|
1258
|
-
const a =
|
|
1265
|
+
const a = ki(t), { ref: o } = ht(
|
|
1259
1266
|
I(() => {
|
|
1260
1267
|
t && s();
|
|
1261
1268
|
}, [t, s])
|
|
1262
1269
|
);
|
|
1263
|
-
return /* @__PURE__ */ n(
|
|
1270
|
+
return /* @__PURE__ */ n(Ri, { className: V(e, "di floating-panel-portal", { open: a !== "closed" }), children: /* @__PURE__ */ n(
|
|
1264
1271
|
"div",
|
|
1265
1272
|
{
|
|
1266
1273
|
ref: o,
|
|
@@ -1278,7 +1285,7 @@ function Je() {
|
|
|
1278
1285
|
return e;
|
|
1279
1286
|
}, Je.apply(null, arguments);
|
|
1280
1287
|
}
|
|
1281
|
-
var
|
|
1288
|
+
var Di = function(t) {
|
|
1282
1289
|
return /* @__PURE__ */ O.createElement("svg", Je({
|
|
1283
1290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1284
1291
|
width: 6,
|
|
@@ -1324,7 +1331,7 @@ var Ri = function(t) {
|
|
|
1324
1331
|
}
|
|
1325
1332
|
})));
|
|
1326
1333
|
};
|
|
1327
|
-
function
|
|
1334
|
+
function Li({ value: e, onChange: t, onCancel: s, onSave: r }) {
|
|
1328
1335
|
return /* @__PURE__ */ g(
|
|
1329
1336
|
"form",
|
|
1330
1337
|
{
|
|
@@ -1340,10 +1347,10 @@ function Ii({ value: e, onChange: t, onCancel: s, onSave: r }) {
|
|
|
1340
1347
|
}
|
|
1341
1348
|
);
|
|
1342
1349
|
}
|
|
1343
|
-
function
|
|
1350
|
+
function Mi(e) {
|
|
1344
1351
|
return e.replace(/\/?$/, "");
|
|
1345
1352
|
}
|
|
1346
|
-
function
|
|
1353
|
+
function Vi({
|
|
1347
1354
|
favorite: { id: e, title: t, url: s },
|
|
1348
1355
|
isEdited: r,
|
|
1349
1356
|
isActive: a,
|
|
@@ -1352,10 +1359,10 @@ function Di({
|
|
|
1352
1359
|
onSave: c,
|
|
1353
1360
|
onCancel: u
|
|
1354
1361
|
}) {
|
|
1355
|
-
const { attributes: d, listeners: l, setNodeRef: f, setActivatorNodeRef: h, transform: m, transition: C, isOver: y } =
|
|
1362
|
+
const { attributes: d, listeners: l, setNodeRef: f, setActivatorNodeRef: h, transform: m, transition: C, isOver: y } = wo({
|
|
1356
1363
|
id: e
|
|
1357
1364
|
}), v = {
|
|
1358
|
-
transform:
|
|
1365
|
+
transform: ur.Transform.toString(m),
|
|
1359
1366
|
transition: y ? C : void 0
|
|
1360
1367
|
}, [b, A] = p(t), k = () => {
|
|
1361
1368
|
o(), A(t);
|
|
@@ -1365,16 +1372,16 @@ function Di({
|
|
|
1365
1372
|
u();
|
|
1366
1373
|
}, { hide: N } = Ne();
|
|
1367
1374
|
return /* @__PURE__ */ g("li", { className: "item", ref: f, style: v, ...d, children: [
|
|
1368
|
-
/* @__PURE__ */ n("span", { className: "drag-handle", ref: h, ...l, children: /* @__PURE__ */ n(
|
|
1375
|
+
/* @__PURE__ */ n("span", { className: "drag-handle", ref: h, ...l, children: /* @__PURE__ */ n(Di, {}) }),
|
|
1369
1376
|
/* @__PURE__ */ n("span", { className: V("title", { active: a }), children: r ? /* @__PURE__ */ n(
|
|
1370
|
-
|
|
1377
|
+
Li,
|
|
1371
1378
|
{
|
|
1372
1379
|
value: b,
|
|
1373
1380
|
onChange: A,
|
|
1374
1381
|
onSave: T,
|
|
1375
1382
|
onCancel: E
|
|
1376
1383
|
}
|
|
1377
|
-
) : /* @__PURE__ */ n(_, { "data-testid": "link", to:
|
|
1384
|
+
) : /* @__PURE__ */ n(_, { "data-testid": "link", to: Mi(s), onClick: N, children: t || s }) }),
|
|
1378
1385
|
!r && /* @__PURE__ */ n(
|
|
1379
1386
|
xe,
|
|
1380
1387
|
{
|
|
@@ -1388,7 +1395,7 @@ function Di({
|
|
|
1388
1395
|
)
|
|
1389
1396
|
] });
|
|
1390
1397
|
}
|
|
1391
|
-
function
|
|
1398
|
+
function Ui() {
|
|
1392
1399
|
const { open: e, hide: t } = Ne(), {
|
|
1393
1400
|
allFavorites: s,
|
|
1394
1401
|
deleteFavorite: r,
|
|
@@ -1424,8 +1431,8 @@ function Li() {
|
|
|
1424
1431
|
] })
|
|
1425
1432
|
] }),
|
|
1426
1433
|
/* @__PURE__ */ g("div", { className: "content", children: [
|
|
1427
|
-
/* @__PURE__ */ n(
|
|
1428
|
-
|
|
1434
|
+
/* @__PURE__ */ n(hr, { items: s, onOrderChange: o, children: /* @__PURE__ */ n("ul", { "data-testid": "favorites-list", children: s.map((b) => /* @__PURE__ */ n(
|
|
1435
|
+
Vi,
|
|
1429
1436
|
{
|
|
1430
1437
|
favorite: b,
|
|
1431
1438
|
onDelete: () => r(b.id),
|
|
@@ -1443,11 +1450,11 @@ function Li() {
|
|
|
1443
1450
|
}
|
|
1444
1451
|
);
|
|
1445
1452
|
}
|
|
1446
|
-
async function
|
|
1447
|
-
return
|
|
1453
|
+
async function Oi() {
|
|
1454
|
+
return Oa() ?? [];
|
|
1448
1455
|
}
|
|
1449
|
-
async function
|
|
1450
|
-
await
|
|
1456
|
+
async function Fi(e) {
|
|
1457
|
+
await Fa(e);
|
|
1451
1458
|
}
|
|
1452
1459
|
const ls = wt({
|
|
1453
1460
|
open: !1,
|
|
@@ -1472,10 +1479,10 @@ const ls = wt({
|
|
|
1472
1479
|
function Wt(e) {
|
|
1473
1480
|
return e.filter((t) => !t.local);
|
|
1474
1481
|
}
|
|
1475
|
-
function
|
|
1482
|
+
function _i({ children: e }) {
|
|
1476
1483
|
const [t, s] = p(!1), [r, a] = p([]), [o, i] = p([]), [c, u] = p(!0), [d, l] = p(!1), { pathname: f, search: h } = $(), { currentPageTitle: m } = x(_e);
|
|
1477
1484
|
S(() => {
|
|
1478
|
-
const { promise: E, cancel: N } = Pe(
|
|
1485
|
+
const { promise: E, cancel: N } = Pe(Oi());
|
|
1479
1486
|
return E.then((R) => {
|
|
1480
1487
|
a(R), i(R), u(!1);
|
|
1481
1488
|
}).catch((R) => {
|
|
@@ -1484,7 +1491,7 @@ function Ui({ children: e }) {
|
|
|
1484
1491
|
}, []), S(() => {
|
|
1485
1492
|
const E = Wt(r);
|
|
1486
1493
|
if (!dn(E, o)) {
|
|
1487
|
-
const { promise: N, cancel: R } = Pe(
|
|
1494
|
+
const { promise: N, cancel: R } = Pe(Fi(E));
|
|
1488
1495
|
return l(!0), N.then(() => {
|
|
1489
1496
|
l(!1), i(E);
|
|
1490
1497
|
}).catch((F) => {
|
|
@@ -1544,17 +1551,17 @@ function Ui({ children: e }) {
|
|
|
1544
1551
|
updateFavorites: b
|
|
1545
1552
|
};
|
|
1546
1553
|
return /* @__PURE__ */ g(ls.Provider, { value: T, children: [
|
|
1547
|
-
/* @__PURE__ */ n(
|
|
1554
|
+
/* @__PURE__ */ n(Ui, {}),
|
|
1548
1555
|
e
|
|
1549
1556
|
] });
|
|
1550
1557
|
}
|
|
1551
1558
|
function Ne() {
|
|
1552
1559
|
return x(ls);
|
|
1553
1560
|
}
|
|
1554
|
-
function
|
|
1561
|
+
function Ki(e) {
|
|
1555
1562
|
return e.replace(/\/?$/, "");
|
|
1556
1563
|
}
|
|
1557
|
-
function
|
|
1564
|
+
function Bi() {
|
|
1558
1565
|
const { open: e, hide: t, historyItems: s, clearHistory: r } = x(Et);
|
|
1559
1566
|
return /* @__PURE__ */ n(cs, { visible: e, onHide: t, className: "di history-panel", children: /* @__PURE__ */ g("div", { className: "wrapper", children: [
|
|
1560
1567
|
/* @__PURE__ */ g("div", { className: "header", children: [
|
|
@@ -1569,13 +1576,13 @@ function Fi() {
|
|
|
1569
1576
|
)
|
|
1570
1577
|
] }),
|
|
1571
1578
|
/* @__PURE__ */ n("ul", { className: "content", children: s.map(({ title: a, url: o, date: i }) => /* @__PURE__ */ g("li", { className: "item", children: [
|
|
1572
|
-
/* @__PURE__ */ n(_, { className: "title", to:
|
|
1579
|
+
/* @__PURE__ */ n(_, { className: "title", to: Ki(o), onClick: t, children: a }),
|
|
1573
1580
|
/* @__PURE__ */ n("span", { className: "date", title: je(i), "data-testid": "date-field", children: je(i, { format: "L" }) })
|
|
1574
1581
|
] }, i)) }),
|
|
1575
1582
|
s.length === 0 && /* @__PURE__ */ n("div", { "data-testid": "empty-message", children: /* @__PURE__ */ n(w, { i18nKey: "history.empty", children: "No history items." }) })
|
|
1576
1583
|
] }) });
|
|
1577
1584
|
}
|
|
1578
|
-
const Pt = "di-history-items",
|
|
1585
|
+
const Pt = "di-history-items", Hi = 20;
|
|
1579
1586
|
function xt() {
|
|
1580
1587
|
const e = localStorage.getItem(Pt) ?? "{}";
|
|
1581
1588
|
return JSON.parse(e);
|
|
@@ -1583,12 +1590,12 @@ function xt() {
|
|
|
1583
1590
|
function Tt(e) {
|
|
1584
1591
|
return xt()[e] ?? [];
|
|
1585
1592
|
}
|
|
1586
|
-
function
|
|
1593
|
+
function Gi(e, t) {
|
|
1587
1594
|
const s = xt(), r = Tt(t);
|
|
1588
1595
|
let a;
|
|
1589
|
-
r.length && r[0].url === e.url ? a = [e, ...r.slice(1)] : a = [e, ...r].slice(0,
|
|
1596
|
+
r.length && r[0].url === e.url ? a = [e, ...r.slice(1)] : a = [e, ...r].slice(0, Hi), localStorage.setItem(Pt, JSON.stringify({ ...s, [t]: a }));
|
|
1590
1597
|
}
|
|
1591
|
-
function
|
|
1598
|
+
function $i(e) {
|
|
1592
1599
|
const t = xt();
|
|
1593
1600
|
localStorage.setItem(Pt, JSON.stringify({ ...t, [e]: [] }));
|
|
1594
1601
|
}
|
|
@@ -1601,7 +1608,7 @@ const Et = wt({
|
|
|
1601
1608
|
clearHistory: () => {
|
|
1602
1609
|
},
|
|
1603
1610
|
historyItems: []
|
|
1604
|
-
}),
|
|
1611
|
+
}), zi = hn(
|
|
1605
1612
|
(e, t, s, r, a) => {
|
|
1606
1613
|
if (!a)
|
|
1607
1614
|
return;
|
|
@@ -1610,16 +1617,16 @@ const Et = wt({
|
|
|
1610
1617
|
url: `${e}/${t}`,
|
|
1611
1618
|
title: a
|
|
1612
1619
|
};
|
|
1613
|
-
|
|
1620
|
+
Gi(o, s.number), r(Tt(s.number));
|
|
1614
1621
|
},
|
|
1615
1622
|
500
|
|
1616
1623
|
);
|
|
1617
|
-
function
|
|
1624
|
+
function Wi({ children: e }) {
|
|
1618
1625
|
const [t, s] = p(!1), { pathname: r, search: a } = $(), { user: o } = x(M), [i, c] = p([]), { currentPageTitle: u } = x(_e);
|
|
1619
1626
|
S(() => {
|
|
1620
1627
|
o && c(Tt(o.number));
|
|
1621
1628
|
}, [o]), S(() => {
|
|
1622
|
-
P.isHistoryEnabled() && o &&
|
|
1629
|
+
P.isHistoryEnabled() && o && zi(r, a, o, c, u);
|
|
1623
1630
|
}, [r, a, o, u]);
|
|
1624
1631
|
const l = {
|
|
1625
1632
|
open: t,
|
|
@@ -1627,15 +1634,15 @@ function Gi({ children: e }) {
|
|
|
1627
1634
|
hide: () => s(!1),
|
|
1628
1635
|
historyItems: i,
|
|
1629
1636
|
clearHistory: () => {
|
|
1630
|
-
|
|
1637
|
+
$i(o.number), c([]);
|
|
1631
1638
|
}
|
|
1632
1639
|
};
|
|
1633
1640
|
return /* @__PURE__ */ g(Et.Provider, { value: l, children: [
|
|
1634
|
-
/* @__PURE__ */ n(
|
|
1641
|
+
/* @__PURE__ */ n(Bi, {}),
|
|
1635
1642
|
e
|
|
1636
1643
|
] });
|
|
1637
1644
|
}
|
|
1638
|
-
function
|
|
1645
|
+
function qi() {
|
|
1639
1646
|
const { connectionState: e } = x(ft);
|
|
1640
1647
|
return !e || e === "socket_connect" ? null : /* @__PURE__ */ n(
|
|
1641
1648
|
ye,
|
|
@@ -1644,20 +1651,20 @@ function $i() {
|
|
|
1644
1651
|
/* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(w, { i18nKey: "ux4iot.connection.unavailable", children: "Ux4iot service is currently unavailable!" }) }),
|
|
1645
1652
|
/* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(w, { i18nKey: "ux4iot.connection.unavailableTooltip", children: "You will need to reload the page manually to see the latest datapoint values." }) })
|
|
1646
1653
|
] }),
|
|
1647
|
-
children: /* @__PURE__ */ n("div", { className: "ux4iot-connection-state", children: /* @__PURE__ */ n(
|
|
1654
|
+
children: /* @__PURE__ */ n("div", { className: "ux4iot-connection-state", children: /* @__PURE__ */ n(fr, {}) })
|
|
1648
1655
|
}
|
|
1649
1656
|
);
|
|
1650
1657
|
}
|
|
1651
|
-
function
|
|
1652
|
-
const { t: e } = G(), { locales: t } = x(ke), { pathname: s } = $(), { instance: r } = ie(), { user: a, resetAuthenticatedUser: o, setAuthenticatedUser: i, principal: c, paginationSettings: u } = x(M), { elements: d } = x(
|
|
1653
|
-
resolver:
|
|
1654
|
-
defaultValues:
|
|
1658
|
+
function ji() {
|
|
1659
|
+
const { t: e } = G(), { locales: t } = x(ke), { pathname: s } = $(), { instance: r } = ie(), { user: a, resetAuthenticatedUser: o, setAuthenticatedUser: i, principal: c, paginationSettings: u } = x(M), { elements: d } = x(mr), { show: l, backendFavorites: f } = Ne(), { show: h } = x(Et), m = f.some((T) => T.url.replace(/\/$/, "") === s), C = pr(!0, !0), y = Kn({
|
|
1660
|
+
resolver: go(C),
|
|
1661
|
+
defaultValues: gr(a)
|
|
1655
1662
|
}), v = q();
|
|
1656
1663
|
async function b(T, E) {
|
|
1657
1664
|
pe() ? await it(T, r) : await ot(T, E);
|
|
1658
1665
|
}
|
|
1659
1666
|
function A() {
|
|
1660
|
-
|
|
1667
|
+
vr(s).then(() => {
|
|
1661
1668
|
const E = e("user.settings.saveStartPageMessage", {
|
|
1662
1669
|
defaultValue: "The current page has been saved as starting page."
|
|
1663
1670
|
});
|
|
@@ -1667,21 +1674,21 @@ function zi() {
|
|
|
1667
1674
|
});
|
|
1668
1675
|
}
|
|
1669
1676
|
function k(T) {
|
|
1670
|
-
|
|
1671
|
-
i(c, E, u),
|
|
1677
|
+
_a({ locale: T }).then((E) => {
|
|
1678
|
+
i(c, E, u), Cr(E), v.push(v.location.pathname), Kt(
|
|
1672
1679
|
e("user.settings.saveLocaleMessage", { defaultValue: "The language has been changed." })
|
|
1673
1680
|
);
|
|
1674
1681
|
}).catch((E) => Z(E));
|
|
1675
1682
|
}
|
|
1676
1683
|
return /* @__PURE__ */ g("div", { className: "di utilities", children: [
|
|
1677
|
-
/* @__PURE__ */ n(
|
|
1684
|
+
/* @__PURE__ */ n(qi, {}),
|
|
1678
1685
|
d && d.map((T) => /* @__PURE__ */ n("span", { className: "elm", children: Me(T.component, null, null) }, T.id)),
|
|
1679
|
-
/* @__PURE__ */ n("span", { className: "elm", children: /* @__PURE__ */ n(
|
|
1686
|
+
/* @__PURE__ */ n("span", { className: "elm", children: /* @__PURE__ */ n(po, { ...y, children: /* @__PURE__ */ n(
|
|
1680
1687
|
xe,
|
|
1681
1688
|
{
|
|
1682
1689
|
"data-testid": "property-locale",
|
|
1683
1690
|
menuButton: /* @__PURE__ */ g("button", { type: "button", className: "di button link", children: [
|
|
1684
|
-
/* @__PURE__ */ n("img", { src:
|
|
1691
|
+
/* @__PURE__ */ n("img", { src: yr, alt: "locale icon" }),
|
|
1685
1692
|
/* @__PURE__ */ n("span", { title: e("eula.language"), defaultValue: "Language", children: e(`locales.${a.locale}`, { defaultValue: a.locale }) }),
|
|
1686
1693
|
/* @__PURE__ */ n("img", { src: Ft, alt: "triangle down" })
|
|
1687
1694
|
] }),
|
|
@@ -1709,7 +1716,7 @@ function zi() {
|
|
|
1709
1716
|
naked: !0,
|
|
1710
1717
|
title: e("favorites.title", { defaultValue: "Favorites" }),
|
|
1711
1718
|
onClick: l,
|
|
1712
|
-
children: /* @__PURE__ */ n(
|
|
1719
|
+
children: /* @__PURE__ */ n(Ei, { style: m ? { fill: "var(--primary-color)" } : {} })
|
|
1713
1720
|
}
|
|
1714
1721
|
) }),
|
|
1715
1722
|
P.isHistoryEnabled() && /* @__PURE__ */ n("span", { className: "elm", children: /* @__PURE__ */ n(
|
|
@@ -1719,7 +1726,7 @@ function zi() {
|
|
|
1719
1726
|
naked: !0,
|
|
1720
1727
|
title: e("history.title", { defaultValue: "History" }),
|
|
1721
1728
|
onClick: h,
|
|
1722
|
-
children: /* @__PURE__ */ n("img", { src:
|
|
1729
|
+
children: /* @__PURE__ */ n("img", { src: Ni, alt: "", style: { width: 16, height: 16 } })
|
|
1723
1730
|
}
|
|
1724
1731
|
) }),
|
|
1725
1732
|
/* @__PURE__ */ n("span", { className: "elm", children: /* @__PURE__ */ g(
|
|
@@ -1727,7 +1734,7 @@ function zi() {
|
|
|
1727
1734
|
{
|
|
1728
1735
|
"data-testid": "user-menu-button",
|
|
1729
1736
|
menuButton: /* @__PURE__ */ g("button", { type: "button", className: "di button link", children: [
|
|
1730
|
-
/* @__PURE__ */ n("img", { src:
|
|
1737
|
+
/* @__PURE__ */ n("img", { src: wr, alt: "profile icon" }),
|
|
1731
1738
|
/* @__PURE__ */ n(
|
|
1732
1739
|
"span",
|
|
1733
1740
|
{
|
|
@@ -1758,7 +1765,7 @@ function zi() {
|
|
|
1758
1765
|
) })
|
|
1759
1766
|
] });
|
|
1760
1767
|
}
|
|
1761
|
-
function
|
|
1768
|
+
function Yi({ value: e, options: t, onChange: s }) {
|
|
1762
1769
|
const [r, a] = p(!1), { ref: o } = ht(i);
|
|
1763
1770
|
function i() {
|
|
1764
1771
|
r && a(!1);
|
|
@@ -1790,7 +1797,7 @@ function Wi({ value: e, options: t, onChange: s }) {
|
|
|
1790
1797
|
)) })
|
|
1791
1798
|
] });
|
|
1792
1799
|
}
|
|
1793
|
-
const
|
|
1800
|
+
const Xi = {
|
|
1794
1801
|
assets: {
|
|
1795
1802
|
id: "search.assets.searchname",
|
|
1796
1803
|
defaultValue: "Assets"
|
|
@@ -1812,10 +1819,10 @@ const qi = {
|
|
|
1812
1819
|
defaultValue: "Roles"
|
|
1813
1820
|
}
|
|
1814
1821
|
};
|
|
1815
|
-
function
|
|
1822
|
+
function Zi() {
|
|
1816
1823
|
const { availableContexts: e, context: t, changeContext: s, searchConfig: r, submitQuery: a, query: o } = x(Sn);
|
|
1817
1824
|
return !t || !r ? null : /* @__PURE__ */ n("div", { className: "di searchG", children: /* @__PURE__ */ n(
|
|
1818
|
-
|
|
1825
|
+
br,
|
|
1819
1826
|
{
|
|
1820
1827
|
query: o,
|
|
1821
1828
|
context: t,
|
|
@@ -1824,12 +1831,12 @@ function ji() {
|
|
|
1824
1831
|
autofocus: !0,
|
|
1825
1832
|
withQueryBuilder: t !== "roles",
|
|
1826
1833
|
children: e && /* @__PURE__ */ n(
|
|
1827
|
-
|
|
1834
|
+
Yi,
|
|
1828
1835
|
{
|
|
1829
1836
|
value: t,
|
|
1830
1837
|
options: e.map((i) => ({
|
|
1831
1838
|
value: i,
|
|
1832
|
-
label:
|
|
1839
|
+
label: Xi[i]
|
|
1833
1840
|
})),
|
|
1834
1841
|
onChange: s
|
|
1835
1842
|
}
|
|
@@ -1870,8 +1877,8 @@ function ce({
|
|
|
1870
1877
|
] });
|
|
1871
1878
|
}
|
|
1872
1879
|
var L = /* @__PURE__ */ ((e) => (e.up = "up", e.down = "down", e.leftOrRight = "leftOrRight", e.right = "right", e.enter = "enter", e.reset = "reset", e))(L || {});
|
|
1873
|
-
function
|
|
1874
|
-
const { current: e } = H(new
|
|
1880
|
+
function Qi() {
|
|
1881
|
+
const { current: e } = H(new vo());
|
|
1875
1882
|
function t(a) {
|
|
1876
1883
|
e.emit(a);
|
|
1877
1884
|
}
|
|
@@ -1895,10 +1902,10 @@ function qt(e, t, s) {
|
|
|
1895
1902
|
function He(e, t) {
|
|
1896
1903
|
return t ? e[t]?.data.length ?? 0 : 0;
|
|
1897
1904
|
}
|
|
1898
|
-
function
|
|
1905
|
+
function Ji(e, t) {
|
|
1899
1906
|
return t <= 3 ? e : e < Math.ceil(t / 2) ? Math.min(t - 1, e + Math.ceil(t / 2)) : e - Math.ceil(t / 2);
|
|
1900
1907
|
}
|
|
1901
|
-
function
|
|
1908
|
+
function ec(e, t) {
|
|
1902
1909
|
switch (e) {
|
|
1903
1910
|
case "assets":
|
|
1904
1911
|
return `/assets/${t.id}`;
|
|
@@ -1912,7 +1919,7 @@ function Zi(e, t) {
|
|
|
1912
1919
|
return `/roles/${t.id}`;
|
|
1913
1920
|
}
|
|
1914
1921
|
}
|
|
1915
|
-
function
|
|
1922
|
+
function tc(e, t, s) {
|
|
1916
1923
|
const [r, a] = p(0), [o, i] = p(), c = q();
|
|
1917
1924
|
S(() => {
|
|
1918
1925
|
function d() {
|
|
@@ -1933,12 +1940,12 @@ function Qi(e, t, s) {
|
|
|
1933
1940
|
}
|
|
1934
1941
|
}
|
|
1935
1942
|
function f() {
|
|
1936
|
-
a(
|
|
1943
|
+
a(Ji(r, He(e, o)));
|
|
1937
1944
|
}
|
|
1938
1945
|
function h() {
|
|
1939
1946
|
if (o) {
|
|
1940
1947
|
const m = e[o]?.data?.[r];
|
|
1941
|
-
m && (c.push(
|
|
1948
|
+
m && (c.push(ec(o, m)), s());
|
|
1942
1949
|
}
|
|
1943
1950
|
}
|
|
1944
1951
|
return t.addListener(L.up, l), t.addListener(L.down, d), t.addListener(L.leftOrRight, f), t.addListener(L.enter, h), () => {
|
|
@@ -1964,9 +1971,9 @@ function Qi(e, t, s) {
|
|
|
1964
1971
|
},
|
|
1965
1972
|
[o, t]
|
|
1966
1973
|
);
|
|
1967
|
-
return
|
|
1974
|
+
return Sr(["up", "down", "left", "right", "enter"], u), { group: o, index: r };
|
|
1968
1975
|
}
|
|
1969
|
-
function
|
|
1976
|
+
function nc({
|
|
1970
1977
|
searchInputRect: e,
|
|
1971
1978
|
visible: t,
|
|
1972
1979
|
onHide: s,
|
|
@@ -1975,7 +1982,7 @@ function Ji({
|
|
|
1975
1982
|
elementsIgnoredOnClickOutside: o,
|
|
1976
1983
|
keyboardEventEmitter: i
|
|
1977
1984
|
}) {
|
|
1978
|
-
const c = At(), { ref: u } = ht(s, o), { index: d, group: l } =
|
|
1985
|
+
const c = At(), { ref: u } = ht(s, o), { index: d, group: l } = tc(r, i, s);
|
|
1979
1986
|
if (!c || a === "")
|
|
1980
1987
|
return null;
|
|
1981
1988
|
const f = [r.assets, r.assetGroups, r.userGroups, r.users, r.roles].every(
|
|
@@ -1997,7 +2004,7 @@ function Ji({
|
|
|
1997
2004
|
ce,
|
|
1998
2005
|
{
|
|
1999
2006
|
title: /* @__PURE__ */ n(w, { i18nKey: "search.assets.searchname", children: "Assets" }),
|
|
2000
|
-
icon: /* @__PURE__ */ n(
|
|
2007
|
+
icon: /* @__PURE__ */ n(Ar, { id: "full-search-result-icon-assets" }),
|
|
2001
2008
|
items: r.assets,
|
|
2002
2009
|
getId: (h) => h.urn,
|
|
2003
2010
|
getName: (h) => h.name,
|
|
@@ -2011,7 +2018,7 @@ function Ji({
|
|
|
2011
2018
|
ce,
|
|
2012
2019
|
{
|
|
2013
2020
|
title: /* @__PURE__ */ n(w, { i18nKey: "search.assetgroups", children: "Asset Groups" }),
|
|
2014
|
-
icon: /* @__PURE__ */ n(
|
|
2021
|
+
icon: /* @__PURE__ */ n(Pr, { id: "full-search-result-icon-asset-groups" }),
|
|
2015
2022
|
items: r.assetGroups,
|
|
2016
2023
|
getId: (h) => h.id,
|
|
2017
2024
|
getName: (h) => h.displayName || h.name,
|
|
@@ -2025,10 +2032,10 @@ function Ji({
|
|
|
2025
2032
|
ce,
|
|
2026
2033
|
{
|
|
2027
2034
|
title: /* @__PURE__ */ n(w, { i18nKey: "search.users.searchname", children: "Users" }),
|
|
2028
|
-
icon: /* @__PURE__ */ n(
|
|
2035
|
+
icon: /* @__PURE__ */ n(Tr, { id: "full-search-result-icon-users" }),
|
|
2029
2036
|
items: r.users,
|
|
2030
2037
|
getId: (h) => h.number,
|
|
2031
|
-
getName: (h) =>
|
|
2038
|
+
getName: (h) => xr(h),
|
|
2032
2039
|
getUrl: (h) => `/users/${h.number}`,
|
|
2033
2040
|
getAllUrl: () => `/users/list?query=${a}`,
|
|
2034
2041
|
onHide: s,
|
|
@@ -2039,7 +2046,7 @@ function Ji({
|
|
|
2039
2046
|
ce,
|
|
2040
2047
|
{
|
|
2041
2048
|
title: /* @__PURE__ */ n(w, { i18nKey: "search.usergroups.searchname", children: "User Groups" }),
|
|
2042
|
-
icon: /* @__PURE__ */ n(
|
|
2049
|
+
icon: /* @__PURE__ */ n(Er, { id: "full-search-result-icon-user-groups" }),
|
|
2043
2050
|
items: r.userGroups,
|
|
2044
2051
|
getId: (h) => h.id,
|
|
2045
2052
|
getName: (h) => h.displayName ?? h.name,
|
|
@@ -2053,7 +2060,7 @@ function Ji({
|
|
|
2053
2060
|
ce,
|
|
2054
2061
|
{
|
|
2055
2062
|
title: /* @__PURE__ */ n(w, { i18nKey: "search.roles.searchname", children: "Roles" }),
|
|
2056
|
-
icon: /* @__PURE__ */ n(
|
|
2063
|
+
icon: /* @__PURE__ */ n(Nr, { id: "full-search-result-icon-roles" }),
|
|
2057
2064
|
items: r.roles,
|
|
2058
2065
|
getId: (h) => h.id,
|
|
2059
2066
|
getName: (h) => h.name,
|
|
@@ -2069,16 +2076,16 @@ function Ji({
|
|
|
2069
2076
|
c
|
|
2070
2077
|
);
|
|
2071
2078
|
}
|
|
2072
|
-
const
|
|
2073
|
-
size:
|
|
2079
|
+
const sc = 10, rc = {
|
|
2080
|
+
size: sc,
|
|
2074
2081
|
page: 0,
|
|
2075
2082
|
sort: {
|
|
2076
2083
|
property: "name",
|
|
2077
2084
|
direction: "ASC"
|
|
2078
2085
|
}
|
|
2079
2086
|
};
|
|
2080
|
-
function
|
|
2081
|
-
return
|
|
2087
|
+
function ac(e, t) {
|
|
2088
|
+
return Ga(Ir(e), t);
|
|
2082
2089
|
}
|
|
2083
2090
|
function le(e, t, s, r) {
|
|
2084
2091
|
const [a, o] = p(), [i, c] = p(0);
|
|
@@ -2090,7 +2097,7 @@ function le(e, t, s, r) {
|
|
|
2090
2097
|
return;
|
|
2091
2098
|
}
|
|
2092
2099
|
o(void 0);
|
|
2093
|
-
const { promise: u, cancel: d } = Pe(t(e,
|
|
2100
|
+
const { promise: u, cancel: d } = Pe(t(e, rc));
|
|
2094
2101
|
return u.then((l) => {
|
|
2095
2102
|
o(l.content), c(l.totalElements);
|
|
2096
2103
|
}).catch((l) => {
|
|
@@ -2100,12 +2107,12 @@ function le(e, t, s, r) {
|
|
|
2100
2107
|
};
|
|
2101
2108
|
}, [t, e, s, r]), a ? { data: a, total: i } : void 0;
|
|
2102
2109
|
}
|
|
2103
|
-
function
|
|
2104
|
-
const [t, s] = p(0), r = le(e,
|
|
2110
|
+
function oc(e) {
|
|
2111
|
+
const [t, s] = p(0), r = le(e, ac, "READ_ASSET", t), a = le(e, Ha, "READ_ASSET_GROUP", t), o = le(e, Ba, "READ_ACCOUNT", t), i = le(e, Ka, "READ_ACCOUNT_GROUP", t), c = le(e, Rr, "READ_ROLE", t);
|
|
2105
2112
|
return { assets: r, assetGroups: a, users: o, userGroups: i, roles: c, reload: () => s((u) => u + 1) };
|
|
2106
2113
|
}
|
|
2107
|
-
function
|
|
2108
|
-
const { t: e } = G(), [t, s] = p(!1), { ref: r, entries: a } =
|
|
2114
|
+
function ic() {
|
|
2115
|
+
const { t: e } = G(), [t, s] = p(!1), { ref: r, entries: a } = kr(), [o, i] = p(""), c = o && o.includes("*") ? o : o.includes(":") && !/^".*"$/.test(o) ? `"*${o}*"` : `*${o}*`, u = oc(c), d = a?.length ? a[0].target.getBoundingClientRect() : void 0, l = Qi(), f = H(null), h = H(null);
|
|
2109
2116
|
function m(y) {
|
|
2110
2117
|
l.emit(L.reset), y.target.value && s(!0);
|
|
2111
2118
|
}
|
|
@@ -2146,7 +2153,7 @@ function rc() {
|
|
|
2146
2153
|
}
|
|
2147
2154
|
) }),
|
|
2148
2155
|
/* @__PURE__ */ n(
|
|
2149
|
-
|
|
2156
|
+
nc,
|
|
2150
2157
|
{
|
|
2151
2158
|
elementsIgnoredOnClickOutside: [f.current, h.current].filter(wn),
|
|
2152
2159
|
searchInputRect: d,
|
|
@@ -2159,29 +2166,29 @@ function rc() {
|
|
|
2159
2166
|
)
|
|
2160
2167
|
] });
|
|
2161
2168
|
}
|
|
2162
|
-
function
|
|
2169
|
+
function cc({ mode: e, onModeChange: t }) {
|
|
2163
2170
|
return /* @__PURE__ */ g("div", { className: "di search-mode-switch", children: [
|
|
2164
2171
|
/* @__PURE__ */ n(D, { className: V({ on: e === "full" }), naked: !0, onClick: () => t("full"), children: /* @__PURE__ */ n(w, { i18nKey: "search.mode.full", children: "Full" }) }),
|
|
2165
2172
|
/* @__PURE__ */ n(D, { className: V({ on: e === "context" }), naked: !0, onClick: () => t("context"), children: /* @__PURE__ */ n(w, { i18nKey: "search.mode.context", children: "Context" }) })
|
|
2166
2173
|
] });
|
|
2167
2174
|
}
|
|
2168
|
-
function
|
|
2175
|
+
function lc() {
|
|
2169
2176
|
const { defaultSearchMode: e } = x(M), [t, s] = p(e);
|
|
2170
2177
|
return /* @__PURE__ */ g(B, { children: [
|
|
2171
|
-
t === "context" ? /* @__PURE__ */ n(
|
|
2172
|
-
/* @__PURE__ */ n(
|
|
2178
|
+
t === "context" ? /* @__PURE__ */ n(Zi, {}) : /* @__PURE__ */ n(ic, {}),
|
|
2179
|
+
/* @__PURE__ */ n(cc, { mode: t, onModeChange: s })
|
|
2173
2180
|
] });
|
|
2174
2181
|
}
|
|
2175
|
-
const
|
|
2176
|
-
function
|
|
2182
|
+
const dc = lt("HeaderSearch")(lc);
|
|
2183
|
+
function uc() {
|
|
2177
2184
|
const { items: e } = x(mt);
|
|
2178
2185
|
return /* @__PURE__ */ n(B, { children: e });
|
|
2179
2186
|
}
|
|
2180
|
-
const
|
|
2187
|
+
const hc = (e, t) => e.find((s) => s.relativePath.split("/").every(
|
|
2181
2188
|
(a, o) => a === t[o] || a.startsWith(":")
|
|
2182
2189
|
)), Nt = (e, t, s, r) => {
|
|
2183
2190
|
if (t.length === 0) return r;
|
|
2184
|
-
const a =
|
|
2191
|
+
const a = hc(e, t);
|
|
2185
2192
|
if (!a) return r;
|
|
2186
2193
|
const o = s(a) || r, i = a.relativePath.split("/").length;
|
|
2187
2194
|
return Nt(
|
|
@@ -2190,21 +2197,21 @@ const lc = (e, t) => e.find((s) => s.relativePath.split("/").every(
|
|
|
2190
2197
|
s,
|
|
2191
2198
|
o
|
|
2192
2199
|
);
|
|
2193
|
-
},
|
|
2200
|
+
}, fc = (e, t) => {
|
|
2194
2201
|
const s = t.split("/").filter((r) => r.length);
|
|
2195
2202
|
return Nt(e, s, (r) => r.contextAction, null);
|
|
2196
|
-
},
|
|
2203
|
+
}, mc = (e, t) => {
|
|
2197
2204
|
const s = t.split("/").filter((r) => r.length);
|
|
2198
2205
|
return Nt(e, s, (r) => r.contextInfo, null);
|
|
2199
2206
|
};
|
|
2200
|
-
function
|
|
2201
|
-
const { pathname: t } = $(), { items: s } = x(mt), r =
|
|
2207
|
+
function pc({ routes: e }) {
|
|
2208
|
+
const { pathname: t } = $(), { items: s } = x(mt), r = fc(e, t), a = !!r || s.length > 0;
|
|
2202
2209
|
return /* @__PURE__ */ n("div", { children: a && /* @__PURE__ */ g("div", { className: "di floor-2-toolbar", children: [
|
|
2203
|
-
/* @__PURE__ */ n(
|
|
2210
|
+
/* @__PURE__ */ n(uc, {}),
|
|
2204
2211
|
!!r && /* @__PURE__ */ n(r, { pathname: t, HasAuthorities: te })
|
|
2205
2212
|
] }) });
|
|
2206
2213
|
}
|
|
2207
|
-
const
|
|
2214
|
+
const gc = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2040%2024'%20width='40'%20height='24'%3e%3cg%20id='bed'%3e%3crect%20id='verbinder'%20x='7'%20y='11'%20width='10'%20height='2'%20style='fill:%20%23bbb'/%3e%3ccircle%20id='kreis-links-klein'%20cx='4'%20cy='12'%20r='4'%20style='fill:%20%23bbb'/%3e%3ccircle%20id='kreis-rechts-gross'%20cx='28'%20cy='12'%20r='12'%20style='fill:%20%23bbb'/%3e%3c/g%3e%3cg%20id='sender'%3e%3cpath%20d='M28,11s0,7,3,9'%20style='fill:%20none;stroke:%20%23fff;stroke-linecap:%20round;stroke-miterlimit:%2010;stroke-width:%201.5px'/%3e%3cpath%20d='M28,11s0,7-3,9'%20style='fill:%20none;stroke:%20%23fff;stroke-linecap:%20round;stroke-miterlimit:%2010;stroke-width:%201.5px'/%3e%3c/g%3e%3cpath%20id='welle-innen'%20d='M24.87,15.29a4.56,4.56,0,0,1-.11-6.37A4.37,4.37,0,0,1,31,8.82a4.56,4.56,0,0,1,.11,6.36'%20style='fill:%20none;stroke:%20%23fff;stroke-linecap:%20square;stroke-miterlimit:%2010;stroke-width:%201.5px'/%3e%3cpath%20id='welle-aussen'%20d='M22.58,18a7.85,7.85,0,0,1-.19-11,7.53,7.53,0,0,1,10.78-.18,7.86,7.86,0,0,1,.19,11'%20style='fill:%20none;stroke:%20%23fff;stroke-linecap:%20square;stroke-miterlimit:%2010;stroke-width:%201.5px'/%3e%3c/svg%3e", Re = ({ children: e }) => /* @__PURE__ */ n("div", { className: "di object-holder", children: /* @__PURE__ */ n("div", { className: "di object-crumbs", children: /* @__PURE__ */ n("span", { className: "crumb", children: e }) }) }), yc = ({ children: e }) => /* @__PURE__ */ n("div", { className: "di object-status", children: /* @__PURE__ */ n("div", { className: "status-elm", children: e }) }), wc = 3, vc = ({ info: { asset: e, assetGroups: t, gateway: s } }) => {
|
|
2208
2215
|
const r = s ? /* @__PURE__ */ g(w, { i18nKey: "page.contextInfo.connectedGateway", children: [
|
|
2209
2216
|
"Asset is connected to ",
|
|
2210
2217
|
{ gatewayName: s ? `"${s.name}"` : "" },
|
|
@@ -2212,18 +2219,18 @@ const fc = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
|
|
|
2212
2219
|
] }) : "";
|
|
2213
2220
|
return /* @__PURE__ */ g("div", { className: "di object-holder", children: [
|
|
2214
2221
|
/* @__PURE__ */ n(Re, { children: e.name || e.urn }),
|
|
2215
|
-
/* @__PURE__ */ n(
|
|
2216
|
-
e.isGateway && /* @__PURE__ */ n("img", { src:
|
|
2222
|
+
/* @__PURE__ */ n(yc, { children: /* @__PURE__ */ n(Dr, { asset: e }) }),
|
|
2223
|
+
e.isGateway && /* @__PURE__ */ n("img", { src: Lr, alt: "gateway", className: "gatewayIconContextInfo" }),
|
|
2217
2224
|
!e.isGateway && s && /* @__PURE__ */ n(ye, { direction: "bottom", content: r, children: /* @__PURE__ */ n(_, { to: `/assets/${s.id}`, children: /* @__PURE__ */ n(D, { className: "linkedToGatewayIconContextInfo-button", naked: !0, children: /* @__PURE__ */ n(
|
|
2218
2225
|
"img",
|
|
2219
2226
|
{
|
|
2220
|
-
src:
|
|
2227
|
+
src: gc,
|
|
2221
2228
|
alt: "linked to gateway",
|
|
2222
2229
|
className: "linkedToGatewayIconContextInfo"
|
|
2223
2230
|
}
|
|
2224
2231
|
) }) }) }),
|
|
2225
2232
|
/* @__PURE__ */ n("div", { className: "di object-groups", children: /* @__PURE__ */ n(
|
|
2226
|
-
|
|
2233
|
+
Mr,
|
|
2227
2234
|
{
|
|
2228
2235
|
tags: t.map(({ id: a, name: o }) => ({
|
|
2229
2236
|
key: a,
|
|
@@ -2234,15 +2241,15 @@ const fc = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
|
|
|
2234
2241
|
{ count: t.length },
|
|
2235
2242
|
" Asset Groups"
|
|
2236
2243
|
] }),
|
|
2237
|
-
maxTagsInRow:
|
|
2244
|
+
maxTagsInRow: wc,
|
|
2238
2245
|
renderItem: ({ key: a }) => {
|
|
2239
2246
|
const o = t.find(({ id: i }) => i === a);
|
|
2240
|
-
return o ? /* @__PURE__ */ n(
|
|
2247
|
+
return o ? /* @__PURE__ */ n(Vr, { assetGroup: o, labelSize: "small" }) : null;
|
|
2241
2248
|
}
|
|
2242
2249
|
}
|
|
2243
2250
|
) })
|
|
2244
2251
|
] });
|
|
2245
|
-
},
|
|
2252
|
+
}, Cc = {
|
|
2246
2253
|
all: {
|
|
2247
2254
|
id: "page.contextInfo.search.assets.all",
|
|
2248
2255
|
defaultValue: "{{elements}} Assets"
|
|
@@ -2251,7 +2258,7 @@ const fc = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
|
|
|
2251
2258
|
id: "page.contextInfo.search.assets.some",
|
|
2252
2259
|
defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Assets"
|
|
2253
2260
|
}
|
|
2254
|
-
},
|
|
2261
|
+
}, bc = {
|
|
2255
2262
|
all: {
|
|
2256
2263
|
id: "page.contextInfo.search.assetGroups.all",
|
|
2257
2264
|
defaultValue: "{{elements}} Asset Groups"
|
|
@@ -2260,7 +2267,7 @@ const fc = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
|
|
|
2260
2267
|
id: "page.contextInfo.search.assetGroups.some",
|
|
2261
2268
|
defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Asset Groups"
|
|
2262
2269
|
}
|
|
2263
|
-
},
|
|
2270
|
+
}, Sc = {
|
|
2264
2271
|
all: {
|
|
2265
2272
|
id: "page.contextInfo.search.users.all",
|
|
2266
2273
|
defaultValue: "{{elements}} Users"
|
|
@@ -2269,7 +2276,7 @@ const fc = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
|
|
|
2269
2276
|
id: "page.contextInfo.search.users.some",
|
|
2270
2277
|
defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Users"
|
|
2271
2278
|
}
|
|
2272
|
-
},
|
|
2279
|
+
}, Ac = {
|
|
2273
2280
|
all: {
|
|
2274
2281
|
id: "page.contextInfo.search.userGroups.all",
|
|
2275
2282
|
defaultValue: "{{elements}} User Groups"
|
|
@@ -2278,7 +2285,7 @@ const fc = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
|
|
|
2278
2285
|
id: "page.contextInfo.search.userGroups.some",
|
|
2279
2286
|
defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} User Groups"
|
|
2280
2287
|
}
|
|
2281
|
-
},
|
|
2288
|
+
}, Pc = {
|
|
2282
2289
|
all: {
|
|
2283
2290
|
id: "page.contextInfo.search.roles.all",
|
|
2284
2291
|
defaultValue: "{{elements}} Roles"
|
|
@@ -2287,7 +2294,7 @@ const fc = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
|
|
|
2287
2294
|
id: "page.contextInfo.search.roles.some",
|
|
2288
2295
|
defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Roles"
|
|
2289
2296
|
}
|
|
2290
|
-
},
|
|
2297
|
+
}, xc = {
|
|
2291
2298
|
all: {
|
|
2292
2299
|
id: "page.contextInfo.search.notificationTemplates.all",
|
|
2293
2300
|
defaultValue: "{{elements}} Templates"
|
|
@@ -2296,37 +2303,37 @@ const fc = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
|
|
|
2296
2303
|
id: "page.contextInfo.search.notificationTemplates.some",
|
|
2297
2304
|
defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Templates"
|
|
2298
2305
|
}
|
|
2299
|
-
},
|
|
2306
|
+
}, Tc = (e) => {
|
|
2300
2307
|
switch (e) {
|
|
2301
2308
|
case "assets":
|
|
2302
|
-
return
|
|
2309
|
+
return Cc;
|
|
2303
2310
|
case "assetgroups":
|
|
2304
|
-
return
|
|
2311
|
+
return bc;
|
|
2305
2312
|
case "users":
|
|
2306
|
-
return
|
|
2313
|
+
return Sc;
|
|
2307
2314
|
case "usergroups":
|
|
2308
|
-
return
|
|
2315
|
+
return Ac;
|
|
2309
2316
|
case "roles":
|
|
2310
|
-
return
|
|
2317
|
+
return Pc;
|
|
2311
2318
|
case "notificationtemplates":
|
|
2312
|
-
return
|
|
2319
|
+
return xc;
|
|
2313
2320
|
default:
|
|
2314
2321
|
throw Error(`context ${e} not supported`);
|
|
2315
2322
|
}
|
|
2316
2323
|
}, jt = ({ tooltip: e, children: t }) => e ? /* @__PURE__ */ n(ye, { content: e, children: t }) : t;
|
|
2317
|
-
function
|
|
2324
|
+
function Ec(e, t) {
|
|
2318
2325
|
return e ? t === !1 ? "10000+" : e.toString() : "0";
|
|
2319
2326
|
}
|
|
2320
|
-
function
|
|
2327
|
+
function Nc({
|
|
2321
2328
|
info: { elements: e, totalElements: t, totalElementsAccurate: s, context: r, customTranslations: a },
|
|
2322
2329
|
tooltip: o
|
|
2323
2330
|
}) {
|
|
2324
|
-
const { t: i } = G(), c = a ||
|
|
2331
|
+
const { t: i } = G(), c = a || Tc(r), d = e === t ? /* @__PURE__ */ n("span", { className: "search-result", children: /* @__PURE__ */ n(jt, { tooltip: s ? o : /* @__PURE__ */ n(w, { i18nKey: "asset.search.count.tooltip", children: "Please refine your search to narrow down the result" }), children: /* @__PURE__ */ n(
|
|
2325
2332
|
"span",
|
|
2326
2333
|
{
|
|
2327
2334
|
dangerouslySetInnerHTML: {
|
|
2328
2335
|
__html: i(c.all.id, {
|
|
2329
|
-
elements:
|
|
2336
|
+
elements: Ec(t, s),
|
|
2330
2337
|
defaultValue: c.all.defaultValue
|
|
2331
2338
|
})
|
|
2332
2339
|
}
|
|
@@ -2360,16 +2367,16 @@ function xc({
|
|
|
2360
2367
|
] });
|
|
2361
2368
|
return /* @__PURE__ */ n(Re, { children: d });
|
|
2362
2369
|
}
|
|
2363
|
-
function
|
|
2370
|
+
function Rc() {
|
|
2364
2371
|
const { contextInfo: e, tooltip: t } = x(ae);
|
|
2365
2372
|
if (e)
|
|
2366
2373
|
switch (e.type) {
|
|
2367
2374
|
case "string":
|
|
2368
2375
|
return /* @__PURE__ */ n(Re, { children: e.value });
|
|
2369
2376
|
case "search":
|
|
2370
|
-
return /* @__PURE__ */ n(
|
|
2377
|
+
return /* @__PURE__ */ n(Nc, { info: e, tooltip: t });
|
|
2371
2378
|
case "asset":
|
|
2372
|
-
return /* @__PURE__ */ n(
|
|
2379
|
+
return /* @__PURE__ */ n(vc, { info: e });
|
|
2373
2380
|
case "assetGroup":
|
|
2374
2381
|
return /* @__PURE__ */ n(Re, { children: e.assetGroup.displayName || e.assetGroup.name });
|
|
2375
2382
|
default:
|
|
@@ -2378,11 +2385,11 @@ function Tc() {
|
|
|
2378
2385
|
else
|
|
2379
2386
|
return null;
|
|
2380
2387
|
}
|
|
2381
|
-
function
|
|
2382
|
-
const { pathname: t } = $(), s =
|
|
2383
|
-
return s ? /* @__PURE__ */ n(s, { pathname: t }) : /* @__PURE__ */ n(
|
|
2388
|
+
function Ic({ routes: e }) {
|
|
2389
|
+
const { pathname: t } = $(), s = mc(e, t);
|
|
2390
|
+
return s ? /* @__PURE__ */ n(s, { pathname: t }) : /* @__PURE__ */ n(Rc, {});
|
|
2384
2391
|
}
|
|
2385
|
-
const
|
|
2392
|
+
const kc = (e, t, s) => {
|
|
2386
2393
|
if (s.indexOf(":") === 0) {
|
|
2387
2394
|
const r = t.length + 1, a = e.substring(r).indexOf("/"), o = e.substring(r, a > 0 ? a : void 0);
|
|
2388
2395
|
return `${t}/${o}`;
|
|
@@ -2393,7 +2400,7 @@ const Nc = (e, t, s) => {
|
|
|
2393
2400
|
let o = se.filterRoutes(a, r, s);
|
|
2394
2401
|
const i = e.split("/").filter((c) => c.length).slice(0, t - 1).reduce((c, u) => (o = (o.find((l) => l.relativePath === u) || o.find((l) => l.relativePath.indexOf(":") === 0))?.childRoutes?.filter((l) => !l.show || l.show(s, r)) ?? [], `${c}/${u}`), "");
|
|
2395
2402
|
return o = o.filter((c) => !c.excludeFromNavigation), o.map((c) => {
|
|
2396
|
-
const u =
|
|
2403
|
+
const u = kc(e, i, c.relativePath);
|
|
2397
2404
|
return {
|
|
2398
2405
|
path: u,
|
|
2399
2406
|
label: c.label,
|
|
@@ -2412,7 +2419,7 @@ function hs(e, t) {
|
|
|
2412
2419
|
if (t.label && t.label.id)
|
|
2413
2420
|
return `${e}-icon-${us(t?.label?.id)}`;
|
|
2414
2421
|
}
|
|
2415
|
-
function
|
|
2422
|
+
function Dc(e, t) {
|
|
2416
2423
|
if (t.label && t.label.id)
|
|
2417
2424
|
return `${e}-icon-${us(t?.label?.id)}`;
|
|
2418
2425
|
}
|
|
@@ -2426,7 +2433,7 @@ function et() {
|
|
|
2426
2433
|
return e;
|
|
2427
2434
|
}, et.apply(null, arguments);
|
|
2428
2435
|
}
|
|
2429
|
-
var
|
|
2436
|
+
var Lc = function(t) {
|
|
2430
2437
|
return /* @__PURE__ */ O.createElement("svg", et({
|
|
2431
2438
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2432
2439
|
width: 16,
|
|
@@ -2456,14 +2463,14 @@ function ms({ routeLink: e }) {
|
|
|
2456
2463
|
/* @__PURE__ */ n(Ye, { authorities: e.requiredAuthorities })
|
|
2457
2464
|
] }) }, e.path);
|
|
2458
2465
|
}
|
|
2459
|
-
function
|
|
2466
|
+
function Mc({
|
|
2460
2467
|
navGroup: e,
|
|
2461
2468
|
routeLinks: t,
|
|
2462
2469
|
separator: s
|
|
2463
2470
|
}) {
|
|
2464
2471
|
if (t.length === 0)
|
|
2465
2472
|
return null;
|
|
2466
|
-
const r =
|
|
2473
|
+
const r = Dc("mainnavi", e);
|
|
2467
2474
|
return /* @__PURE__ */ g(
|
|
2468
2475
|
"li",
|
|
2469
2476
|
{
|
|
@@ -2478,9 +2485,9 @@ function kc({
|
|
|
2478
2485
|
}
|
|
2479
2486
|
);
|
|
2480
2487
|
}
|
|
2481
|
-
function
|
|
2488
|
+
function Vc() {
|
|
2482
2489
|
const [e, t] = p(null), s = $(), { user: r } = x(M), { contextInfo: a } = x(ae), o = I(() => {
|
|
2483
|
-
|
|
2490
|
+
Ur().then((f) => {
|
|
2484
2491
|
t(
|
|
2485
2492
|
f ? {
|
|
2486
2493
|
path: f,
|
|
@@ -2488,7 +2495,7 @@ function Dc() {
|
|
|
2488
2495
|
id: "route.label.startpage.name",
|
|
2489
2496
|
defaultValue: "Home"
|
|
2490
2497
|
},
|
|
2491
|
-
iconSvg:
|
|
2498
|
+
iconSvg: Lc,
|
|
2492
2499
|
active: !1
|
|
2493
2500
|
} : null
|
|
2494
2501
|
);
|
|
@@ -2510,7 +2517,7 @@ function Dc() {
|
|
|
2510
2517
|
h.length && u.push({
|
|
2511
2518
|
index: c.findIndex((m) => m.path === h[0].path),
|
|
2512
2519
|
component: /* @__PURE__ */ n(
|
|
2513
|
-
|
|
2520
|
+
Mc,
|
|
2514
2521
|
{
|
|
2515
2522
|
navGroup: f,
|
|
2516
2523
|
routeLinks: h,
|
|
@@ -2538,20 +2545,20 @@ function Dc() {
|
|
|
2538
2545
|
/* @__PURE__ */ n("div", { className: "modules-info", children: l && typeof l.label == "object" && /* @__PURE__ */ n(_, { to: l.path, children: /* @__PURE__ */ n("span", { children: !!l.label && /* @__PURE__ */ n(w, { i18nKey: l.label.id, children: l.label.defaultValue }) }) }) })
|
|
2539
2546
|
] });
|
|
2540
2547
|
}
|
|
2541
|
-
function
|
|
2548
|
+
function Uc(e) {
|
|
2542
2549
|
return !isNaN(e) || /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e);
|
|
2543
2550
|
}
|
|
2544
|
-
function
|
|
2551
|
+
function Oc(e) {
|
|
2545
2552
|
const t = e.split("/").filter((s) => s.length);
|
|
2546
|
-
return t.length >= 2 &&
|
|
2553
|
+
return t.length >= 2 && Uc(t[1]) ? 3 : t.length >= 2 ? 2 : 1;
|
|
2547
2554
|
}
|
|
2548
|
-
function
|
|
2555
|
+
function Fc(e, t) {
|
|
2549
2556
|
return e ? /* @__PURE__ */ n(e, { id: t, style: { width: "16px", height: "16px" } }) : null;
|
|
2550
2557
|
}
|
|
2551
|
-
function
|
|
2558
|
+
function _c(e, t) {
|
|
2552
2559
|
return e ? /* @__PURE__ */ n(e, { id: t, style: { fill: "white", width: "16px", height: "16px" } }) : null;
|
|
2553
2560
|
}
|
|
2554
|
-
function
|
|
2561
|
+
function Kc() {
|
|
2555
2562
|
const { user: e } = x(M), [t, s] = p(!1), { pathname: r, search: a } = $(), { contextInfo: o } = x(ae), i = "uiConfigurations/subnavicollapsed";
|
|
2556
2563
|
if (!e)
|
|
2557
2564
|
throw new Error("user not found");
|
|
@@ -2559,18 +2566,16 @@ function Oc() {
|
|
|
2559
2566
|
s(l), await In(i, l.toString());
|
|
2560
2567
|
};
|
|
2561
2568
|
S(() => {
|
|
2562
|
-
(async () =>
|
|
2563
|
-
s(await gt(i));
|
|
2564
|
-
})();
|
|
2569
|
+
(async () => s(await gt(i)))();
|
|
2565
2570
|
}, []);
|
|
2566
|
-
const u =
|
|
2571
|
+
const u = Oc(r);
|
|
2567
2572
|
if (u < 2)
|
|
2568
2573
|
return null;
|
|
2569
2574
|
const d = ds(r, u, o, e).filter((l) => l.iconSvg || l.iconLight).filter((l) => typeof l.label == "object");
|
|
2570
2575
|
return d.length <= 1 ? null : /* @__PURE__ */ n("div", { className: `di main-box-nav ${t ? "" : "show"}`, children: /* @__PURE__ */ g("ul", { children: [
|
|
2571
2576
|
/* @__PURE__ */ n("li", { onClick: () => c(!t), children: /* @__PURE__ */ n("div", { className: "icon triangle" }) }),
|
|
2572
2577
|
d.map((l) => {
|
|
2573
|
-
const f = l.label, h = l.active ? "selected" : "", m = hs("subnavi", l), C = (l.active ?
|
|
2578
|
+
const f = l.label, h = l.active ? "selected" : "", m = hs("subnavi", l), C = (l.active ? _c(l.iconSvg, m) : Fc(l.iconSvg, m)) || null, y = (l.active ? l.iconLight : l.iconDark) || "", v = new URLSearchParams(a), b = new URLSearchParams();
|
|
2574
2579
|
return v.has("query") && b.set("query", v.get("query") || ""), /* @__PURE__ */ n("li", { className: h, children: /* @__PURE__ */ g(
|
|
2575
2580
|
_,
|
|
2576
2581
|
{
|
|
@@ -2580,7 +2585,7 @@ function Oc() {
|
|
|
2580
2585
|
},
|
|
2581
2586
|
children: [
|
|
2582
2587
|
/* @__PURE__ */ n(
|
|
2583
|
-
|
|
2588
|
+
oo,
|
|
2584
2589
|
{
|
|
2585
2590
|
disabled: !t,
|
|
2586
2591
|
content: f ? /* @__PURE__ */ n(w, { i18nKey: f.id, children: f.defaultValue }) : "",
|
|
@@ -2595,14 +2600,14 @@ function Oc() {
|
|
|
2595
2600
|
})
|
|
2596
2601
|
] }) });
|
|
2597
2602
|
}
|
|
2598
|
-
const
|
|
2603
|
+
const Bc = ({ children: e }) => {
|
|
2599
2604
|
const [t, s] = p({}), [r, a] = p(!1);
|
|
2600
2605
|
return S(() => {
|
|
2601
2606
|
async function o() {
|
|
2602
2607
|
a(!0);
|
|
2603
2608
|
try {
|
|
2604
2609
|
if (X(["READ_ASSET"])) {
|
|
2605
|
-
const i = await
|
|
2610
|
+
const i = await $a("assets");
|
|
2606
2611
|
s(i);
|
|
2607
2612
|
}
|
|
2608
2613
|
} finally {
|
|
@@ -2620,9 +2625,9 @@ const Fc = ({ children: e }) => {
|
|
|
2620
2625
|
children: e
|
|
2621
2626
|
}
|
|
2622
2627
|
);
|
|
2623
|
-
},
|
|
2628
|
+
}, Hc = (e) => /\d/.test(e), ps = (e, t, s) => {
|
|
2624
2629
|
let r = t[0];
|
|
2625
|
-
if (r =
|
|
2630
|
+
if (r = Hc(r) || r.includes(":") ? ":param:" : r, t.length === 1)
|
|
2626
2631
|
return { ...e, [r]: { ...e[r], authorities: s } };
|
|
2627
2632
|
{
|
|
2628
2633
|
const a = e[r] ? e[r] : {
|
|
@@ -2630,12 +2635,12 @@ const Fc = ({ children: e }) => {
|
|
|
2630
2635
|
};
|
|
2631
2636
|
return { ...e, [r]: { ...ps(a, t.slice(1), s) } };
|
|
2632
2637
|
}
|
|
2633
|
-
},
|
|
2638
|
+
}, Gc = (e, t, s) => {
|
|
2634
2639
|
const r = t.split("/").filter((a) => a !== "");
|
|
2635
2640
|
return ps(e, r, s);
|
|
2636
|
-
},
|
|
2641
|
+
}, $c = ({ children: e }) => {
|
|
2637
2642
|
const [t, s] = p(!1), [r, a] = p({}), o = () => s(!0), i = (c, u) => {
|
|
2638
|
-
const d =
|
|
2643
|
+
const d = Gc(r, c, u);
|
|
2639
2644
|
a(d);
|
|
2640
2645
|
};
|
|
2641
2646
|
return /* @__PURE__ */ n(
|
|
@@ -2651,7 +2656,7 @@ const Fc = ({ children: e }) => {
|
|
|
2651
2656
|
}
|
|
2652
2657
|
);
|
|
2653
2658
|
};
|
|
2654
|
-
function
|
|
2659
|
+
function zc({ children: e }) {
|
|
2655
2660
|
const t = H(/* @__PURE__ */ new Map()), s = H(0), [r, a] = p([]), o = I((i) => {
|
|
2656
2661
|
const c = t.current, u = (s.current += 1).toString();
|
|
2657
2662
|
return c.set(u, i), a([...c.values()]), () => {
|
|
@@ -2669,16 +2674,16 @@ function Hc({ children: e }) {
|
|
|
2669
2674
|
}
|
|
2670
2675
|
);
|
|
2671
2676
|
}
|
|
2672
|
-
const
|
|
2677
|
+
const Wc = O.createContext({
|
|
2673
2678
|
connectionStatus: "",
|
|
2674
2679
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2675
2680
|
setConnectionStatus: (e) => {
|
|
2676
2681
|
}
|
|
2677
|
-
}),
|
|
2682
|
+
}), qc = ({ children: e }) => {
|
|
2678
2683
|
const [t, s] = p("");
|
|
2679
2684
|
return S(() => {
|
|
2680
2685
|
}, []), /* @__PURE__ */ n(
|
|
2681
|
-
|
|
2686
|
+
Wc.Provider,
|
|
2682
2687
|
{
|
|
2683
2688
|
value: {
|
|
2684
2689
|
connectionStatus: t,
|
|
@@ -2687,7 +2692,7 @@ const Gc = O.createContext({
|
|
|
2687
2692
|
children: e
|
|
2688
2693
|
}
|
|
2689
2694
|
);
|
|
2690
|
-
},
|
|
2695
|
+
}, jc = "uiConfigurations/assetcols", Zt = [
|
|
2691
2696
|
{
|
|
2692
2697
|
key: "name",
|
|
2693
2698
|
selected: !0
|
|
@@ -2711,37 +2716,37 @@ const Gc = O.createContext({
|
|
|
2711
2716
|
];
|
|
2712
2717
|
function Qt() {
|
|
2713
2718
|
if (_t) {
|
|
2714
|
-
const e =
|
|
2715
|
-
return _t(e,
|
|
2719
|
+
const e = _r(Zt, !0);
|
|
2720
|
+
return _t(e, Kr, !0).map((s) => ({
|
|
2716
2721
|
key: s.name,
|
|
2717
2722
|
selected: !0
|
|
2718
2723
|
}));
|
|
2719
2724
|
}
|
|
2720
2725
|
return Zt;
|
|
2721
2726
|
}
|
|
2722
|
-
function
|
|
2727
|
+
function Yc(e) {
|
|
2723
2728
|
const t = e.findIndex((s) => s.key === "connection");
|
|
2724
2729
|
return t !== -1 ? [...e.slice(0, t), ...e.slice(t + 1), e[t]] : e;
|
|
2725
2730
|
}
|
|
2726
|
-
function
|
|
2727
|
-
const r =
|
|
2731
|
+
function Xc(e, t) {
|
|
2732
|
+
const r = Yc(Ms(e, "key")).map(({ key: c }) => c), a = t.map(({ key: c }) => c), o = t.filter(({ key: c }) => r.includes(c)), i = e.filter(({ key: c }) => !a.includes(c));
|
|
2728
2733
|
return [...o, ...i];
|
|
2729
2734
|
}
|
|
2730
2735
|
function Jt(e, t) {
|
|
2731
2736
|
return e.filter(({ key: s }) => !t.find((r) => r.key === s) && s.startsWith("dp."));
|
|
2732
2737
|
}
|
|
2733
|
-
function
|
|
2738
|
+
function Zc(e) {
|
|
2734
2739
|
return e.filter(({ key: t, deletable: s }) => s && !t.startsWith("_")).map(({ key: t }) => ({
|
|
2735
2740
|
key: t,
|
|
2736
2741
|
selected: !1
|
|
2737
2742
|
}));
|
|
2738
2743
|
}
|
|
2739
|
-
function
|
|
2744
|
+
function Qc(e) {
|
|
2740
2745
|
const [t, s] = p([]);
|
|
2741
2746
|
S(() => {
|
|
2742
2747
|
async function l() {
|
|
2743
2748
|
try {
|
|
2744
|
-
const f = await gt(
|
|
2749
|
+
const f = await gt(jc);
|
|
2745
2750
|
s(f);
|
|
2746
2751
|
} catch {
|
|
2747
2752
|
s(Qt());
|
|
@@ -2754,7 +2759,7 @@ function Yc(e) {
|
|
|
2754
2759
|
const l = () => {
|
|
2755
2760
|
a((f) => f + 1);
|
|
2756
2761
|
};
|
|
2757
|
-
return
|
|
2762
|
+
return Or(l), () => Fr(l);
|
|
2758
2763
|
}, []);
|
|
2759
2764
|
const [o, i] = p([]), { assetShadowKeyTypes: c } = x(An);
|
|
2760
2765
|
S(() => {
|
|
@@ -2771,13 +2776,13 @@ function Yc(e) {
|
|
|
2771
2776
|
);
|
|
2772
2777
|
return S(() => {
|
|
2773
2778
|
d(Jt(o, e));
|
|
2774
|
-
}, [o, e]), Ve(() =>
|
|
2775
|
-
[...Qt(), ...
|
|
2779
|
+
}, [o, e]), Ve(() => Xc(
|
|
2780
|
+
[...Qt(), ...Zc(e), ...u],
|
|
2776
2781
|
t
|
|
2777
2782
|
), [t, u, e, r]);
|
|
2778
2783
|
}
|
|
2779
|
-
const
|
|
2780
|
-
function
|
|
2784
|
+
const Jc = "uiConfigurations/assetcols";
|
|
2785
|
+
function el(e) {
|
|
2781
2786
|
const { selected: t, unselected: s } = e.reduce(
|
|
2782
2787
|
(r, a) => {
|
|
2783
2788
|
const { selected: o, unselected: i } = r;
|
|
@@ -2790,8 +2795,8 @@ function Zc(e) {
|
|
|
2790
2795
|
);
|
|
2791
2796
|
return [...t, ...s];
|
|
2792
2797
|
}
|
|
2793
|
-
const
|
|
2794
|
-
const { assetProperties: t } = Pn(), [s, r] = p(!1), a =
|
|
2798
|
+
const tl = ({ children: e }) => {
|
|
2799
|
+
const { assetProperties: t } = Pn(), [s, r] = p(!1), a = Qc(t), [o, i] = p(a), [c, u] = p(a);
|
|
2795
2800
|
S(() => {
|
|
2796
2801
|
i(a), u(a);
|
|
2797
2802
|
}, [a]);
|
|
@@ -2809,8 +2814,8 @@ const Qc = ({ children: e }) => {
|
|
|
2809
2814
|
return C;
|
|
2810
2815
|
});
|
|
2811
2816
|
}, []), l = I(async () => {
|
|
2812
|
-
const m =
|
|
2813
|
-
await In(
|
|
2817
|
+
const m = el(o);
|
|
2818
|
+
await In(Jc, m), i(m), u(m);
|
|
2814
2819
|
}, [o]), f = I(() => {
|
|
2815
2820
|
i(c);
|
|
2816
2821
|
}, [c]), h = I((m) => {
|
|
@@ -2819,7 +2824,7 @@ const Qc = ({ children: e }) => {
|
|
|
2819
2824
|
);
|
|
2820
2825
|
}, []);
|
|
2821
2826
|
return /* @__PURE__ */ n(
|
|
2822
|
-
|
|
2827
|
+
Br.Provider,
|
|
2823
2828
|
{
|
|
2824
2829
|
value: {
|
|
2825
2830
|
pickerVisible: s,
|
|
@@ -2834,7 +2839,7 @@ const Qc = ({ children: e }) => {
|
|
|
2834
2839
|
}
|
|
2835
2840
|
);
|
|
2836
2841
|
}, tt = () => navigator.userAgent.indexOf("MSIE") !== -1 || navigator.appVersion.indexOf("Trident/") > -1, nt = () => window.navigator.userAgent.indexOf("Edge") > -1;
|
|
2837
|
-
async function
|
|
2842
|
+
async function nl(e) {
|
|
2838
2843
|
const t = await fetch(e);
|
|
2839
2844
|
if (t.status === 404)
|
|
2840
2845
|
return null;
|
|
@@ -2844,7 +2849,7 @@ async function Jc(e) {
|
|
|
2844
2849
|
}), Vs(new XMLSerializer().serializeToString(r));
|
|
2845
2850
|
}
|
|
2846
2851
|
let de;
|
|
2847
|
-
class
|
|
2852
|
+
class sl extends yt {
|
|
2848
2853
|
constructor() {
|
|
2849
2854
|
super(...arguments), this.state = {
|
|
2850
2855
|
documentContent: "",
|
|
@@ -2855,7 +2860,7 @@ class el extends yt {
|
|
|
2855
2860
|
tt() || nt() || !t || (this.setState({
|
|
2856
2861
|
fetching: !0,
|
|
2857
2862
|
error: !1
|
|
2858
|
-
}), de = Pe(
|
|
2863
|
+
}), de = Pe(nl(t)), de.promise.then((s) => {
|
|
2859
2864
|
s != null ? this.setState({
|
|
2860
2865
|
documentContent: s
|
|
2861
2866
|
}) : this.setState({
|
|
@@ -2887,7 +2892,7 @@ class el extends yt {
|
|
|
2887
2892
|
const { url: t } = this.props, { documentContent: s, fetching: r, error: a } = this.state;
|
|
2888
2893
|
return /* @__PURE__ */ g(ge, { show: r, children: [
|
|
2889
2894
|
a && /* @__PURE__ */ n(
|
|
2890
|
-
|
|
2895
|
+
to,
|
|
2891
2896
|
{
|
|
2892
2897
|
type: "error",
|
|
2893
2898
|
message: {
|
|
@@ -2926,9 +2931,9 @@ class el extends yt {
|
|
|
2926
2931
|
] });
|
|
2927
2932
|
}
|
|
2928
2933
|
}
|
|
2929
|
-
const Ge = 300, en = 420,
|
|
2930
|
-
function
|
|
2931
|
-
const [s, r] = p(0), [a, o] = p(
|
|
2934
|
+
const Ge = 300, en = 420, rl = 270, al = 150, ol = 150, il = 40;
|
|
2935
|
+
function cl({ children: e, className: t }) {
|
|
2936
|
+
const [s, r] = p(0), [a, o] = p(ol), [i, c] = p(window.innerWidth - Ge - il), [u, d] = p(Ge), [l, f] = p(en), h = H(null), m = (v, b, A, k) => {
|
|
2932
2937
|
r(k.width);
|
|
2933
2938
|
}, C = (v, b, A, k) => {
|
|
2934
2939
|
r(0), d(u + k.width), f(l + k.height), c(i - k.width);
|
|
@@ -2944,7 +2949,7 @@ function al({ children: e, className: t }) {
|
|
|
2944
2949
|
left: i - s
|
|
2945
2950
|
},
|
|
2946
2951
|
children: /* @__PURE__ */ n(
|
|
2947
|
-
|
|
2952
|
+
bo,
|
|
2948
2953
|
{
|
|
2949
2954
|
defaultClassName: "wrapper",
|
|
2950
2955
|
handle: ".handle",
|
|
@@ -2955,7 +2960,7 @@ function al({ children: e, className: t }) {
|
|
|
2955
2960
|
nodeRef: h,
|
|
2956
2961
|
onStop: y,
|
|
2957
2962
|
children: /* @__PURE__ */ n(
|
|
2958
|
-
|
|
2963
|
+
Co,
|
|
2959
2964
|
{
|
|
2960
2965
|
ref: (v) => {
|
|
2961
2966
|
h.current = v?.resizable ?? null;
|
|
@@ -2969,8 +2974,8 @@ function al({ children: e, className: t }) {
|
|
|
2969
2974
|
width: Ge,
|
|
2970
2975
|
height: en
|
|
2971
2976
|
},
|
|
2972
|
-
minWidth:
|
|
2973
|
-
minHeight:
|
|
2977
|
+
minWidth: rl,
|
|
2978
|
+
minHeight: al,
|
|
2974
2979
|
size: {
|
|
2975
2980
|
width: u,
|
|
2976
2981
|
height: l
|
|
@@ -2987,11 +2992,11 @@ const $e = {
|
|
|
2987
2992
|
separateWordSearch: !1,
|
|
2988
2993
|
iframes: !0
|
|
2989
2994
|
};
|
|
2990
|
-
function
|
|
2995
|
+
function ll({ children: e, phrase: t }) {
|
|
2991
2996
|
const s = H(null), r = I(
|
|
2992
2997
|
(a) => {
|
|
2993
2998
|
if (a) {
|
|
2994
|
-
const o = new
|
|
2999
|
+
const o = new So(a);
|
|
2995
3000
|
s.current = o, o.mark(t, $e);
|
|
2996
3001
|
}
|
|
2997
3002
|
},
|
|
@@ -3002,7 +3007,7 @@ function ol({ children: e, phrase: t }) {
|
|
|
3002
3007
|
a && (a.unmark($e), a.mark(t, $e));
|
|
3003
3008
|
}, [t]), /* @__PURE__ */ n("div", { ref: r, children: e });
|
|
3004
3009
|
}
|
|
3005
|
-
const
|
|
3010
|
+
const dl = ({ open: e, phrase: t, onPhraseChange: s }) => /* @__PURE__ */ n(
|
|
3006
3011
|
"div",
|
|
3007
3012
|
{
|
|
3008
3013
|
className: V("search-bar", {
|
|
@@ -3022,7 +3027,7 @@ const il = ({ open: e, phrase: t, onPhraseChange: s }) => /* @__PURE__ */ n(
|
|
|
3022
3027
|
/* @__PURE__ */ n("img", { className: "lupe", src: fe, alt: "" })
|
|
3023
3028
|
] })
|
|
3024
3029
|
}
|
|
3025
|
-
),
|
|
3030
|
+
), ul = "data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20width='24'%20height='24'%3e%3cg%3e%3cpath%20d='M3,20.5A1.5,1.5,0,0,1,1.5,19V5A1.5,1.5,0,0,1,3,3.5H20A1.5,1.5,0,0,1,21.5,5V19A1.5,1.5,0,0,1,20,20.5Zm.5-2h16V5.5H3.5Z'/%3e%3cpath%20d='M20,4a1,1,0,0,1,1,1V19a1,1,0,0,1-1,1H3a1,1,0,0,1-1-1V5A1,1,0,0,1,3,4H20M3,19H20V5H3V19M20,3H3A2,2,0,0,0,1,5V19a2,2,0,0,0,2,2H20a2,2,0,0,0,2-2V5a2,2,0,0,0-2-2ZM4,18V6H19V18Z'/%3e%3c/g%3e%3cpath%20d='M15,5V5m1-1H14V20h2V4Z'/%3e%3c/svg%3e", hl = "data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20width='24'%20height='24'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20stroke:%20%23000;%20stroke-miterlimit:%2010;%20stroke-width:%202px;%20}%20%3c/style%3e%3c/defs%3e%3cg%3e%3cpath%20d='M4,20.5A1.5,1.5,0,0,1,2.5,19V14.5h2v4h16V5.5h-7v-2H21A1.5,1.5,0,0,1,22.5,5V19A1.5,1.5,0,0,1,21,20.5Z'/%3e%3cpath%20d='M21,4a1,1,0,0,1,1,1V19a1,1,0,0,1-1,1H4a1,1,0,0,1-1-1V15H4v4H21V5H14V4h7m0-1H13V6h7V18H5V14H2v5a2,2,0,0,0,2,2H21a2,2,0,0,0,2-2V5a2,2,0,0,0-2-2Z'/%3e%3c/g%3e%3cg%3e%3crect%20x='2.5'%20y='3.5'%20width='1'%20height='6'/%3e%3cpath%20d='M3,4V4M4,3H2v7H4V3Z'/%3e%3c/g%3e%3cg%3e%3crect%20x='2.5'%20y='3.5'%20width='6'%20height='1'/%3e%3cpolygon%20points='9%203%202%203%202%205%209%205%209%203%209%203'/%3e%3c/g%3e%3cg%3e%3crect%20x='4.5'%20y='5.5'%20width='2'%20height='2'/%3e%3cpath%20d='M6,6V7H5V6H6M7,5H4V8H7V5Z'/%3e%3c/g%3e%3cg%3e%3cline%20class='cls-1'%20x1='9.39'%20y1='10.39'%20x2='5.46'%20y2='6.46'/%3e%3cg%3e%3crect%20x='6.77'%20y='5.65'%20width='1.31'%20height='5.55'%20transform='translate(-3.78%207.72)%20rotate(-45)'/%3e%3cpolygon%20points='5.93%206%205%206.93%208.93%2010.85%209.85%209.93%205.93%206%205.93%206'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", fl = ({ viewMode: e, onSearchModeClick: t, onViewModeToggle: s, onCloseClick: r }) => /* @__PURE__ */ g("div", { className: "title-bar", children: [
|
|
3026
3031
|
/* @__PURE__ */ n(
|
|
3027
3032
|
"div",
|
|
3028
3033
|
{
|
|
@@ -3040,16 +3045,16 @@ const il = ({ open: e, phrase: t, onPhraseChange: s }) => /* @__PURE__ */ n(
|
|
|
3040
3045
|
children: /* @__PURE__ */ n(D, { naked: !0, disabled: !0, children: /* @__PURE__ */ n("img", { src: fe, alt: "search", style: { width: 24, height: 24 } }) })
|
|
3041
3046
|
}
|
|
3042
3047
|
) }) : /* @__PURE__ */ n(D, { naked: !0, onClick: t, "data-testid": "search-button", children: /* @__PURE__ */ n("img", { src: fe, alt: "search", style: { width: 24, height: 24 } }) }),
|
|
3043
|
-
/* @__PURE__ */ n(D, { naked: !0, onClick: s, children: /* @__PURE__ */ n("img", { src: e === "modal" ?
|
|
3048
|
+
/* @__PURE__ */ n(D, { naked: !0, onClick: s, children: /* @__PURE__ */ n("img", { src: e === "modal" ? ul : hl, alt: "dock" }) }),
|
|
3044
3049
|
/* @__PURE__ */ n(D, { naked: !0, onClick: r, "data-testid": "close-help-panel-button", children: /* @__PURE__ */ n(me, { del: !0, large: !0 }) })
|
|
3045
3050
|
] })
|
|
3046
3051
|
] });
|
|
3047
|
-
function
|
|
3052
|
+
function ml() {
|
|
3048
3053
|
const [e, t] = p(!1), [s, r] = p(""), { isOpen: a, viewMode: o, documentationUrl: i, close: c, toggleViewMode: u } = x(xn), d = At(".di.app-wrapper", "help-sidebar");
|
|
3049
3054
|
function l(f) {
|
|
3050
3055
|
const h = /* @__PURE__ */ g(B, { children: [
|
|
3051
3056
|
/* @__PURE__ */ n(
|
|
3052
|
-
|
|
3057
|
+
fl,
|
|
3053
3058
|
{
|
|
3054
3059
|
viewMode: o,
|
|
3055
3060
|
onSearchModeClick: () => t((m) => !m),
|
|
@@ -3058,7 +3063,7 @@ function ul() {
|
|
|
3058
3063
|
}
|
|
3059
3064
|
),
|
|
3060
3065
|
/* @__PURE__ */ n(
|
|
3061
|
-
|
|
3066
|
+
dl,
|
|
3062
3067
|
{
|
|
3063
3068
|
open: e,
|
|
3064
3069
|
phrase: s,
|
|
@@ -3069,7 +3074,7 @@ function ul() {
|
|
|
3069
3074
|
] });
|
|
3070
3075
|
return /* @__PURE__ */ g(B, { children: [
|
|
3071
3076
|
/* @__PURE__ */ n(
|
|
3072
|
-
|
|
3077
|
+
cl,
|
|
3073
3078
|
{
|
|
3074
3079
|
className: V("root modal", {
|
|
3075
3080
|
open: a,
|
|
@@ -3090,22 +3095,22 @@ function ul() {
|
|
|
3090
3095
|
)
|
|
3091
3096
|
] });
|
|
3092
3097
|
}
|
|
3093
|
-
return d ?
|
|
3098
|
+
return d ? yo.createPortal(
|
|
3094
3099
|
l(
|
|
3095
|
-
/* @__PURE__ */ n(
|
|
3100
|
+
/* @__PURE__ */ n(ll, { phrase: e ? s : "", children: /* @__PURE__ */ n(sl, { url: i }) })
|
|
3096
3101
|
),
|
|
3097
3102
|
d
|
|
3098
3103
|
) : null;
|
|
3099
3104
|
}
|
|
3100
|
-
async function
|
|
3105
|
+
async function pl() {
|
|
3101
3106
|
try {
|
|
3102
|
-
return await
|
|
3107
|
+
return await za(), await Wa();
|
|
3103
3108
|
} catch (e) {
|
|
3104
3109
|
return console.warn("fetching showUserDocumentation setting failed", e), !0;
|
|
3105
3110
|
}
|
|
3106
3111
|
}
|
|
3107
3112
|
const tn = document.querySelector(".di.app-wrapper");
|
|
3108
|
-
function
|
|
3113
|
+
function gl({ children: e }) {
|
|
3109
3114
|
const [t, s] = p(!1), [r, a] = p("sidebar"), [o, i] = p(!1), [c, u] = p("");
|
|
3110
3115
|
function d(h) {
|
|
3111
3116
|
i(!0), u(h);
|
|
@@ -3117,7 +3122,7 @@ function fl({ children: e }) {
|
|
|
3117
3122
|
a((h) => h === "sidebar" ? "modal" : "sidebar");
|
|
3118
3123
|
}
|
|
3119
3124
|
return S(() => {
|
|
3120
|
-
|
|
3125
|
+
pl().then(s);
|
|
3121
3126
|
}, []), S(() => {
|
|
3122
3127
|
tn && tn.classList.toggle("with-sidebar-help", o && r === "sidebar");
|
|
3123
3128
|
}, [r, o]), /* @__PURE__ */ g(
|
|
@@ -3133,15 +3138,15 @@ function fl({ children: e }) {
|
|
|
3133
3138
|
toggleViewMode: f
|
|
3134
3139
|
},
|
|
3135
3140
|
children: [
|
|
3136
|
-
/* @__PURE__ */ n(
|
|
3141
|
+
/* @__PURE__ */ n(ml, {}),
|
|
3137
3142
|
e
|
|
3138
3143
|
]
|
|
3139
3144
|
}
|
|
3140
3145
|
);
|
|
3141
3146
|
}
|
|
3142
|
-
const
|
|
3147
|
+
const yl = (e) => /\d/.test(e), gs = (e, t) => {
|
|
3143
3148
|
let s = t[0];
|
|
3144
|
-
s =
|
|
3149
|
+
s = yl(s) || s.includes(":") ? ":param:" : s;
|
|
3145
3150
|
const r = e[s];
|
|
3146
3151
|
return t.length > 1 && !fn(r) ? {
|
|
3147
3152
|
[s]: {
|
|
@@ -3152,7 +3157,7 @@ const ml = (e) => /\d/.test(e), gs = (e, t) => {
|
|
|
3152
3157
|
[s]: r
|
|
3153
3158
|
};
|
|
3154
3159
|
};
|
|
3155
|
-
function
|
|
3160
|
+
function wl() {
|
|
3156
3161
|
const { showAuthorities: e, authoritiesVisible: t, pageAuthorities: s } = x(pt), r = $();
|
|
3157
3162
|
if (S(() => {
|
|
3158
3163
|
const i = r.search || "", c = re.parse(i.substring(1));
|
|
@@ -3172,7 +3177,7 @@ function ys(e, t) {
|
|
|
3172
3177
|
const [s, ...r] = t;
|
|
3173
3178
|
return /* @__PURE__ */ n(s, { children: ys(e, r) });
|
|
3174
3179
|
}
|
|
3175
|
-
function
|
|
3180
|
+
function vl({ providers: e, children: t }) {
|
|
3176
3181
|
return /* @__PURE__ */ n(B, { children: ys(t, e) });
|
|
3177
3182
|
}
|
|
3178
3183
|
const nn = /* @__PURE__ */ new Map(), sn = /* @__PURE__ */ new Map();
|
|
@@ -3186,12 +3191,12 @@ function vs(e, t, s) {
|
|
|
3186
3191
|
const a = s();
|
|
3187
3192
|
return t.set(e, a), a;
|
|
3188
3193
|
}
|
|
3189
|
-
const
|
|
3194
|
+
const Cl = {
|
|
3190
3195
|
showAxis: !0,
|
|
3191
3196
|
showThresholds: !1,
|
|
3192
3197
|
scaleAxis: null
|
|
3193
3198
|
};
|
|
3194
|
-
function
|
|
3199
|
+
function bl(e) {
|
|
3195
3200
|
return e.reduce(
|
|
3196
3201
|
(t, { asset: s, datapoint: r }) => ({
|
|
3197
3202
|
...t,
|
|
@@ -3206,7 +3211,7 @@ function rn() {
|
|
|
3206
3211
|
tsEnd: W().add(10, "minutes").valueOf()
|
|
3207
3212
|
};
|
|
3208
3213
|
}
|
|
3209
|
-
function
|
|
3214
|
+
function Sl(e) {
|
|
3210
3215
|
const t = Object.values(e).map((s) => {
|
|
3211
3216
|
const r = Object.values(s).map(([a]) => a);
|
|
3212
3217
|
return Math.max(...r);
|
|
@@ -3247,7 +3252,7 @@ function ze(e, t, s, r, a) {
|
|
|
3247
3252
|
}
|
|
3248
3253
|
return vs(u, nn, d).cancel;
|
|
3249
3254
|
}
|
|
3250
|
-
function
|
|
3255
|
+
function Al(e, t, s, r, a) {
|
|
3251
3256
|
const o = { ...t };
|
|
3252
3257
|
o.tsEnd += 1, r({
|
|
3253
3258
|
type: "fetchTrendDatapointRequest",
|
|
@@ -3272,7 +3277,7 @@ function Cl(e, t, s, r, a) {
|
|
|
3272
3277
|
return vs(u, sn, d).cancel;
|
|
3273
3278
|
}
|
|
3274
3279
|
function bs(e, t, s, r) {
|
|
3275
|
-
const a = qe.getColorPalette(!1).filter((d) =>
|
|
3280
|
+
const a = qe.getColorPalette(!1).filter((d) => uo(d).isDark()), o = qe.getNextColor(
|
|
3276
3281
|
s.map(({ settings: { color: d } }) => d),
|
|
3277
3282
|
a
|
|
3278
3283
|
), i = P.getDefaultPlotType(), u = (i && ["step", "line"].includes(i) ? i : null) || (t.datatype === "BOOLEAN" ? "step" : "line");
|
|
@@ -3280,7 +3285,7 @@ function bs(e, t, s, r) {
|
|
|
3280
3285
|
key: Dn(),
|
|
3281
3286
|
settings: {
|
|
3282
3287
|
color: o,
|
|
3283
|
-
...
|
|
3288
|
+
...Cl,
|
|
3284
3289
|
plotType: u,
|
|
3285
3290
|
combineAxis: !!t.unit
|
|
3286
3291
|
},
|
|
@@ -3289,7 +3294,7 @@ function bs(e, t, s, r) {
|
|
|
3289
3294
|
asset: e
|
|
3290
3295
|
};
|
|
3291
3296
|
}
|
|
3292
|
-
function
|
|
3297
|
+
function Pl(e, t) {
|
|
3293
3298
|
const s = [...e];
|
|
3294
3299
|
for (const { asset: r, datapoints: a } of t) {
|
|
3295
3300
|
const o = a.filter(
|
|
@@ -3302,15 +3307,15 @@ function bl(e, t) {
|
|
|
3302
3307
|
}
|
|
3303
3308
|
return s;
|
|
3304
3309
|
}
|
|
3305
|
-
function
|
|
3310
|
+
function xl(e, t, s, r) {
|
|
3306
3311
|
const a = e.filter((o) => !o.hidden && o.datapoint.datatype !== "TEXT").map((o) => {
|
|
3307
|
-
const i = t[o.key], c =
|
|
3312
|
+
const i = t[o.key], c = El(i, o.datapoint.datatype);
|
|
3308
3313
|
return {
|
|
3309
3314
|
id: `${o.asset.urn}/${o.datapoint.name}`,
|
|
3310
3315
|
type: "line",
|
|
3311
3316
|
data: c,
|
|
3312
3317
|
animation: !1,
|
|
3313
|
-
name:
|
|
3318
|
+
name: Hr(o.datapoint, r),
|
|
3314
3319
|
color: o.settings.color,
|
|
3315
3320
|
step: o.settings.plotType === "step" ? "left" : void 0,
|
|
3316
3321
|
yAxis: s.get(o)
|
|
@@ -3323,13 +3328,13 @@ function Sl(e, t, s, r) {
|
|
|
3323
3328
|
type: "line"
|
|
3324
3329
|
}), a;
|
|
3325
3330
|
}
|
|
3326
|
-
function
|
|
3331
|
+
function Tl([e, t]) {
|
|
3327
3332
|
return [e, t ? 1 : 0];
|
|
3328
3333
|
}
|
|
3329
|
-
function
|
|
3334
|
+
function El(e, t = "LONG") {
|
|
3330
3335
|
switch (t) {
|
|
3331
3336
|
case "BOOLEAN":
|
|
3332
|
-
return e?.map(
|
|
3337
|
+
return e?.map(Tl);
|
|
3333
3338
|
case "TEXT":
|
|
3334
3339
|
return;
|
|
3335
3340
|
case "GEO_POSITION":
|
|
@@ -3338,19 +3343,19 @@ function Pl(e, t = "LONG") {
|
|
|
3338
3343
|
return e?.filter(([s, r]) => typeof r == "number" && !isNaN(r));
|
|
3339
3344
|
}
|
|
3340
3345
|
}
|
|
3341
|
-
function
|
|
3346
|
+
function Nl(e, t) {
|
|
3342
3347
|
return t === "BOOLEAN" ? e ? "true" : "false" : e;
|
|
3343
3348
|
}
|
|
3344
|
-
function
|
|
3349
|
+
function Rl(e, t, s, r, a, o, i, c) {
|
|
3345
3350
|
return `
|
|
3346
3351
|
<span style="font-size: 10px">${je(r, { timezone: i })}</span>
|
|
3347
3352
|
<br/>
|
|
3348
3353
|
<span style="color:${s}">●</span>
|
|
3349
|
-
${e}: <b>${
|
|
3354
|
+
${e}: <b>${Nl(a, t)}</b>${o ? ` ${o}` : ""}
|
|
3350
3355
|
${c ? `<br/><br/><span>${c}</span>` : ""}
|
|
3351
3356
|
`;
|
|
3352
3357
|
}
|
|
3353
|
-
function
|
|
3358
|
+
function Il(e) {
|
|
3354
3359
|
let t = e.get("tooltip-ghost");
|
|
3355
3360
|
t || (t = e.addSeries({
|
|
3356
3361
|
id: "tooltip-ghost",
|
|
@@ -3375,7 +3380,7 @@ function be(e, t, s, r) {
|
|
|
3375
3380
|
c.options.formatter = function() {
|
|
3376
3381
|
return `${e}, ${t}: <b>${s}</b>${r ? ` ${r}` : ""}`;
|
|
3377
3382
|
};
|
|
3378
|
-
const d = i.pointer.normalize(a), l =
|
|
3383
|
+
const d = i.pointer.normalize(a), l = Il(i);
|
|
3379
3384
|
l.tooltipPos = [d.chartX - i.plotLeft, d.chartY - i.plotTop], c.refresh(l), this.axis.chart.tooltip.hide = function() {
|
|
3380
3385
|
c.hide(), c.options.formatter = u;
|
|
3381
3386
|
};
|
|
@@ -3387,7 +3392,7 @@ function be(e, t, s, r) {
|
|
|
3387
3392
|
}
|
|
3388
3393
|
};
|
|
3389
3394
|
}
|
|
3390
|
-
function
|
|
3395
|
+
function kl({ datapoint: { thresholds: e, name: t, unit: s }, settings: { color: r, showThresholds: a }, hidden: o }, i) {
|
|
3391
3396
|
const c = [];
|
|
3392
3397
|
if (o || !a) return c;
|
|
3393
3398
|
const u = {
|
|
@@ -3443,7 +3448,7 @@ function Nl({ datapoint: { thresholds: e, name: t, unit: s }, settings: { color:
|
|
|
3443
3448
|
}
|
|
3444
3449
|
), c;
|
|
3445
3450
|
}
|
|
3446
|
-
const
|
|
3451
|
+
const Dl = [
|
|
3447
3452
|
{
|
|
3448
3453
|
id: "id",
|
|
3449
3454
|
title: {
|
|
@@ -3452,8 +3457,8 @@ const Rl = [
|
|
|
3452
3457
|
visible: !1
|
|
3453
3458
|
}
|
|
3454
3459
|
];
|
|
3455
|
-
function
|
|
3456
|
-
const r =
|
|
3460
|
+
function Ll(e, t, s) {
|
|
3461
|
+
const r = Ml(e, t), a = e.filter((d) => !d.hidden && d.datapoint.datatype !== "TEXT"), o = (d) => ({
|
|
3457
3462
|
id: d.key,
|
|
3458
3463
|
labels: {
|
|
3459
3464
|
style: {
|
|
@@ -3467,9 +3472,9 @@ function Il(e, t, s) {
|
|
|
3467
3472
|
text: void 0
|
|
3468
3473
|
},
|
|
3469
3474
|
visible: d.settings.showAxis,
|
|
3470
|
-
plotLines:
|
|
3471
|
-
...
|
|
3472
|
-
...
|
|
3475
|
+
plotLines: kl(d, s),
|
|
3476
|
+
...Ol(d, r, t),
|
|
3477
|
+
...Fl(d.datapoint.datatype)
|
|
3473
3478
|
}), i = a.reduce((d, l) => {
|
|
3474
3479
|
const f = l.settings.combineAxis, h = l.datapoint.unit?.name;
|
|
3475
3480
|
if (!f || !h)
|
|
@@ -3487,20 +3492,20 @@ function Il(e, t, s) {
|
|
|
3487
3492
|
const f = l.settings.combineAxis, h = l.datapoint.unit?.name, m = f && h ? i.get(h) : null;
|
|
3488
3493
|
return m ? d.includes(m) ? (c.set(l, d.indexOf(m)), d) : (c.set(l, d.length), [...d, m]) : (c.set(l, d.length), [...d, o(l)]);
|
|
3489
3494
|
}, []);
|
|
3490
|
-
return u.length ? { yAxisIndices: c, yAxis: u } : { yAxisIndices: c, yAxis:
|
|
3495
|
+
return u.length ? { yAxisIndices: c, yAxis: u } : { yAxisIndices: c, yAxis: Dl };
|
|
3491
3496
|
}
|
|
3492
|
-
function
|
|
3497
|
+
function Ml(e, t) {
|
|
3493
3498
|
const s = e.filter(
|
|
3494
3499
|
({ hidden: a, settings: { combineAxis: o }, datapoint: { unit: i } }) => o && !a && i
|
|
3495
3500
|
), r = Us(s, ({ datapoint: { unit: a } }) => a.name);
|
|
3496
3501
|
return Object.fromEntries(
|
|
3497
3502
|
Object.entries(r).map(([a, o]) => [
|
|
3498
3503
|
a,
|
|
3499
|
-
|
|
3504
|
+
Vl(o, t)
|
|
3500
3505
|
])
|
|
3501
3506
|
);
|
|
3502
3507
|
}
|
|
3503
|
-
function
|
|
3508
|
+
function Vl(e, t) {
|
|
3504
3509
|
return e.reduce(
|
|
3505
3510
|
(s, r) => {
|
|
3506
3511
|
const { min: a, max: o } = Ss(r, t);
|
|
@@ -3509,7 +3514,7 @@ function Dl(e, t) {
|
|
|
3509
3514
|
{ min: null, max: null }
|
|
3510
3515
|
);
|
|
3511
3516
|
}
|
|
3512
|
-
function
|
|
3517
|
+
function Ul(e) {
|
|
3513
3518
|
const { min: t, max: s } = e;
|
|
3514
3519
|
if (t == null || s == null) return e;
|
|
3515
3520
|
if (t === s) {
|
|
@@ -3533,16 +3538,16 @@ function Ss(e, t) {
|
|
|
3533
3538
|
{ min: null, max: null }
|
|
3534
3539
|
);
|
|
3535
3540
|
}
|
|
3536
|
-
function
|
|
3541
|
+
function Ol(e, t, s) {
|
|
3537
3542
|
if (e.settings.combineAxis) {
|
|
3538
3543
|
const a = t[e.datapoint.unit?.name ?? ""];
|
|
3539
3544
|
if (a?.min != null && a?.max != null)
|
|
3540
3545
|
return a;
|
|
3541
3546
|
}
|
|
3542
3547
|
const r = Ss(e, s);
|
|
3543
|
-
return r.min != null && r.max != null ?
|
|
3548
|
+
return r.min != null && r.max != null ? Ul(r) : {};
|
|
3544
3549
|
}
|
|
3545
|
-
function
|
|
3550
|
+
function Fl(e) {
|
|
3546
3551
|
return e === "BOOLEAN" ? {
|
|
3547
3552
|
gridLineWidth: 0,
|
|
3548
3553
|
min: 0,
|
|
@@ -3551,7 +3556,7 @@ function Vl(e) {
|
|
|
3551
3556
|
} : {};
|
|
3552
3557
|
}
|
|
3553
3558
|
function j(e, t, s, r, a, o) {
|
|
3554
|
-
const i = s.filter((d) => !d.hidden), { yAxis: c, yAxisIndices: u } =
|
|
3559
|
+
const i = s.filter((d) => !d.hidden), { yAxis: c, yAxisIndices: u } = Ll(s, r, o);
|
|
3555
3560
|
return {
|
|
3556
3561
|
lang: { locale: "de" },
|
|
3557
3562
|
chart: {
|
|
@@ -3562,8 +3567,8 @@ function j(e, t, s, r, a, o) {
|
|
|
3562
3567
|
},
|
|
3563
3568
|
tooltip: {
|
|
3564
3569
|
formatter: function(d) {
|
|
3565
|
-
const l = i[this.series.chart.series.indexOf(this.series)]?.datapoint, f = l?.datatype, h = l?.unit?.print, m =
|
|
3566
|
-
return
|
|
3570
|
+
const l = i[this.series.chart.series.indexOf(this.series)]?.datapoint, f = l?.datatype, h = l?.unit?.print, m = Gr(l, o);
|
|
3571
|
+
return Rl(
|
|
3567
3572
|
this.series.name,
|
|
3568
3573
|
f,
|
|
3569
3574
|
// @ts-expect-error
|
|
@@ -3576,7 +3581,7 @@ function j(e, t, s, r, a, o) {
|
|
|
3576
3581
|
);
|
|
3577
3582
|
}
|
|
3578
3583
|
},
|
|
3579
|
-
series:
|
|
3584
|
+
series: xl(s, r, u, o),
|
|
3580
3585
|
xAxis: {
|
|
3581
3586
|
type: "datetime",
|
|
3582
3587
|
min: e.tsStart,
|
|
@@ -3599,16 +3604,16 @@ function ue(e, t) {
|
|
|
3599
3604
|
}
|
|
3600
3605
|
}), s;
|
|
3601
3606
|
}
|
|
3602
|
-
function
|
|
3607
|
+
function _l(e, t) {
|
|
3603
3608
|
const s = {};
|
|
3604
3609
|
for (const [r, a] of Object.entries(e))
|
|
3605
3610
|
for (const [o, i] of Object.entries(a)) {
|
|
3606
|
-
const c =
|
|
3611
|
+
const c = Kl(t, r, o);
|
|
3607
3612
|
c && (s[c] ? s[c].push(i) : s[c] = [i]);
|
|
3608
3613
|
}
|
|
3609
3614
|
return s;
|
|
3610
3615
|
}
|
|
3611
|
-
function
|
|
3616
|
+
function Kl(e, t, s) {
|
|
3612
3617
|
const r = e.find(
|
|
3613
3618
|
(a) => a.asset.urn === t && a.datapoint.name === s
|
|
3614
3619
|
);
|
|
@@ -3623,10 +3628,10 @@ function an(e) {
|
|
|
3623
3628
|
const t = W(e.tsStart);
|
|
3624
3629
|
return W().diff(t, "day") < 1;
|
|
3625
3630
|
}
|
|
3626
|
-
function
|
|
3631
|
+
function Bl(e, t, s) {
|
|
3627
3632
|
return e.map((r) => r.key === t ? { ...r, hidden: s } : r);
|
|
3628
3633
|
}
|
|
3629
|
-
function
|
|
3634
|
+
function Hl(e, t) {
|
|
3630
3635
|
switch (t.type) {
|
|
3631
3636
|
case "fetchRequest":
|
|
3632
3637
|
return {
|
|
@@ -3699,7 +3704,7 @@ function _l(e, t) {
|
|
|
3699
3704
|
return { ...e, fetching: !1, fetchFailed: !0 };
|
|
3700
3705
|
case "updateLiveValues":
|
|
3701
3706
|
if (e.fetchedValuesByTrendDatapointKey) {
|
|
3702
|
-
const s =
|
|
3707
|
+
const s = _l(t.liveValues, e.trendDatapoints), r = ue(
|
|
3703
3708
|
e.fetchedValuesByTrendDatapointKey,
|
|
3704
3709
|
s
|
|
3705
3710
|
), a = j(
|
|
@@ -3770,7 +3775,7 @@ function _l(e, t) {
|
|
|
3770
3775
|
}
|
|
3771
3776
|
case "toggleTrendDatapoint":
|
|
3772
3777
|
if (e.fetchedValuesByTrendDatapointKey) {
|
|
3773
|
-
const s =
|
|
3778
|
+
const s = Bl(e.trendDatapoints, t.key, t.hide), r = J(e.fetchedValuesByTrendDatapointKey, s), a = j(
|
|
3774
3779
|
e.currentPeriod,
|
|
3775
3780
|
e.updatePeriodRef,
|
|
3776
3781
|
s,
|
|
@@ -3841,9 +3846,9 @@ function _l(e, t) {
|
|
|
3841
3846
|
return e;
|
|
3842
3847
|
}
|
|
3843
3848
|
}
|
|
3844
|
-
const
|
|
3849
|
+
const Gl = ({ children: e }) => {
|
|
3845
3850
|
const { t } = G(), { connectionState: s } = x(ft), r = H(() => {
|
|
3846
|
-
}), a =
|
|
3851
|
+
}), a = $r(), o = H(null), [i, c] = Un(Hl, {
|
|
3847
3852
|
fetching: !0,
|
|
3848
3853
|
fetchFailed: !1,
|
|
3849
3854
|
trendDatapoints: [],
|
|
@@ -3860,10 +3865,10 @@ const Kl = ({ children: e }) => {
|
|
|
3860
3865
|
ux4iotConnectionState: s
|
|
3861
3866
|
}), u = H(() => {
|
|
3862
3867
|
}), d = H(() => {
|
|
3863
|
-
}), l =
|
|
3864
|
-
() => i.liveModeEnabled ?
|
|
3868
|
+
}), l = zr(), f = Ve(
|
|
3869
|
+
() => i.liveModeEnabled ? bl(i.trendDatapoints) : {},
|
|
3865
3870
|
[i.trendDatapoints, i.liveModeEnabled]
|
|
3866
|
-
), h =
|
|
3871
|
+
), h = Wr(f), m = 4;
|
|
3867
3872
|
r.current = (N) => {
|
|
3868
3873
|
i.currentPeriod ? (u.current(), d.current(), (i.zoomInDisabled = N.tsEnd - N.tsStart < m) && (N.tsStart = (N.tsStart + N.tsEnd) / 2 - 2, N.tsEnd = N.tsStart + m), u.current = ze(
|
|
3869
3874
|
i.trendDatapoints,
|
|
@@ -3876,7 +3881,7 @@ const Kl = ({ children: e }) => {
|
|
|
3876
3881
|
const C = I(
|
|
3877
3882
|
(N, R) => {
|
|
3878
3883
|
u.current(), d.current();
|
|
3879
|
-
const F =
|
|
3884
|
+
const F = Pl(i.trendDatapoints, N);
|
|
3880
3885
|
ze(
|
|
3881
3886
|
F,
|
|
3882
3887
|
R ?? i.currentPeriod,
|
|
@@ -3890,7 +3895,7 @@ const Kl = ({ children: e }) => {
|
|
|
3890
3895
|
(N, R) => {
|
|
3891
3896
|
u.current(), d.current();
|
|
3892
3897
|
const F = bs(N, R, i.trendDatapoints);
|
|
3893
|
-
d.current =
|
|
3898
|
+
d.current = Al(
|
|
3894
3899
|
F,
|
|
3895
3900
|
i.currentPeriod,
|
|
3896
3901
|
l,
|
|
@@ -3938,15 +3943,15 @@ const Kl = ({ children: e }) => {
|
|
|
3938
3943
|
return S(() => {
|
|
3939
3944
|
const N = Object.keys(h).length === 0;
|
|
3940
3945
|
if (i.liveModeEnabled && !N && !i.fetching) {
|
|
3941
|
-
const { tsStart: R, tsEnd: F } = i.currentPeriod, U =
|
|
3946
|
+
const { tsStart: R, tsEnd: F } = i.currentPeriod, U = Sl(h), Ke = Math.floor((F - R) / 3), Is = R < U && U < F + Ke;
|
|
3942
3947
|
U > F && Is && r.current({ tsStart: R + Ke, tsEnd: F + Ke }), c({ type: "updateLiveValues", liveValues: h });
|
|
3943
3948
|
}
|
|
3944
3949
|
}, [h, i.currentPeriod, i.fetching, i.liveModeEnabled]), S(() => {
|
|
3945
3950
|
c({ type: "changeTimezone", timezone: a });
|
|
3946
3951
|
}, [a]), S(() => {
|
|
3947
3952
|
c({ type: "ux4iotConnectionStateChanged", connectionState: s });
|
|
3948
|
-
}, [s]),
|
|
3949
|
-
|
|
3953
|
+
}, [s]), qr(o, !!i.currentPeriod, b), /* @__PURE__ */ n(
|
|
3954
|
+
jr.Provider,
|
|
3950
3955
|
{
|
|
3951
3956
|
value: {
|
|
3952
3957
|
addTrendDatapoint: y,
|
|
@@ -3973,14 +3978,14 @@ const Kl = ({ children: e }) => {
|
|
|
3973
3978
|
}
|
|
3974
3979
|
);
|
|
3975
3980
|
};
|
|
3976
|
-
function
|
|
3981
|
+
function $l({ children: e }) {
|
|
3977
3982
|
const [t, s] = p("");
|
|
3978
3983
|
return /* @__PURE__ */ n(_e.Provider, { value: { currentPageTitle: t, setCurrentPageTitle: s }, children: e });
|
|
3979
3984
|
}
|
|
3980
|
-
const
|
|
3981
|
-
const { roles: e, fetchRoles: t } =
|
|
3985
|
+
const zl = () => {
|
|
3986
|
+
const { roles: e, fetchRoles: t } = Yr();
|
|
3982
3987
|
e.length || t();
|
|
3983
|
-
},
|
|
3988
|
+
}, Wl = [
|
|
3984
3989
|
{
|
|
3985
3990
|
key: "assets",
|
|
3986
3991
|
requiredAuthorities: ["READ_ASSET", "READ_ASSET_GROUP"]
|
|
@@ -4002,58 +4007,58 @@ const Hl = () => {
|
|
|
4002
4007
|
requiredAuthorities: ["READ_ROLE"]
|
|
4003
4008
|
}
|
|
4004
4009
|
];
|
|
4005
|
-
function
|
|
4010
|
+
function ql(e, t) {
|
|
4006
4011
|
switch (e) {
|
|
4007
4012
|
case "assets":
|
|
4008
|
-
return
|
|
4013
|
+
return ea((s) => {
|
|
4009
4014
|
t(`/assets/${s.id}`);
|
|
4010
4015
|
});
|
|
4011
4016
|
case "assetgroups":
|
|
4012
|
-
return
|
|
4017
|
+
return Jr((s) => {
|
|
4013
4018
|
t(`/assetgroups/${s.id}`);
|
|
4014
4019
|
});
|
|
4015
4020
|
case "users":
|
|
4016
|
-
return
|
|
4021
|
+
return Qr((s) => {
|
|
4017
4022
|
t(`/users/${s.number}`);
|
|
4018
4023
|
});
|
|
4019
4024
|
case "usergroups":
|
|
4020
|
-
return
|
|
4025
|
+
return Zr((s) => {
|
|
4021
4026
|
t(`/usergroups/${s.id}`);
|
|
4022
4027
|
});
|
|
4023
4028
|
case "roles":
|
|
4024
|
-
return
|
|
4029
|
+
return Xr(t);
|
|
4025
4030
|
default:
|
|
4026
4031
|
throw Error(`unknown context: ${e}`);
|
|
4027
4032
|
}
|
|
4028
4033
|
}
|
|
4029
|
-
const
|
|
4034
|
+
const jl = (e) => {
|
|
4030
4035
|
const t = e.match(/^\/([^/]+).*/);
|
|
4031
4036
|
if (t)
|
|
4032
4037
|
return t[1];
|
|
4033
4038
|
};
|
|
4034
|
-
function
|
|
4039
|
+
function Yl(e, t) {
|
|
4035
4040
|
return e.match(`^/${t}/list`) || e.match("^/assets/map") || e.match("^/assets/openevents") ? e : `/${t}/list`;
|
|
4036
4041
|
}
|
|
4037
|
-
function
|
|
4042
|
+
function Xl({ children: e }) {
|
|
4038
4043
|
const [t, s] = p(""), [r, a] = p(null), [o, i] = p([]), { pathname: c, search: u } = $(), { push: d } = q();
|
|
4039
4044
|
S(() => {
|
|
4040
|
-
r === "roles" &&
|
|
4045
|
+
r === "roles" && zl();
|
|
4041
4046
|
}, [r]), S(() => {
|
|
4042
|
-
const m =
|
|
4047
|
+
const m = Wl.filter((C) => X(C.requiredAuthorities)).map(
|
|
4043
4048
|
({ key: C }) => C
|
|
4044
4049
|
);
|
|
4045
4050
|
i(m);
|
|
4046
4051
|
}, []), S(() => {
|
|
4047
|
-
const m =
|
|
4052
|
+
const m = jl(c);
|
|
4048
4053
|
m && o.includes(m) ? a(m) : a(o[0]);
|
|
4049
4054
|
}, [o, c]), S(() => {
|
|
4050
4055
|
const C = new URLSearchParams(u).get("query") ?? "";
|
|
4051
4056
|
s(C);
|
|
4052
4057
|
}, [u]);
|
|
4053
|
-
const l = Ve(() => r ?
|
|
4058
|
+
const l = Ve(() => r ? ql(r, d) : null, [r, d]), f = I(
|
|
4054
4059
|
(m, C) => {
|
|
4055
4060
|
s(m);
|
|
4056
|
-
const y = new URLSearchParams(u), v =
|
|
4061
|
+
const y = new URLSearchParams(u), v = Yl(c, C), b = new URLSearchParams();
|
|
4057
4062
|
m && b.set("query", m), c === v && (y.get("query") ?? "") === m && y.get("reload") !== "true" && b.set("reload", "true"), b.toString() ? d(`${v}?${b.toString()}`) : d(v);
|
|
4058
4063
|
},
|
|
4059
4064
|
[c, d, u]
|
|
@@ -4080,22 +4085,22 @@ function ql({ children: e }) {
|
|
|
4080
4085
|
}
|
|
4081
4086
|
);
|
|
4082
4087
|
}
|
|
4083
|
-
const
|
|
4088
|
+
const Zl = ({ children: e }) => {
|
|
4084
4089
|
const t = P.getUx4iotUrl() ? void 0 : "ux4iot_unreachable", [s, r] = p(t);
|
|
4085
4090
|
return /* @__PURE__ */ n(ft.Provider, { value: { connectionState: s, setConnectionState: r }, children: P.getUx4iotUrl() ? /* @__PURE__ */ n(
|
|
4086
|
-
|
|
4091
|
+
lo,
|
|
4087
4092
|
{
|
|
4088
4093
|
options: {
|
|
4089
4094
|
ux4iotURL: P.getUx4iotUrl() ?? "",
|
|
4090
|
-
grantRequestFunction:
|
|
4095
|
+
grantRequestFunction: ta,
|
|
4091
4096
|
onSocketConnectionUpdate: r
|
|
4092
4097
|
},
|
|
4093
4098
|
children: e
|
|
4094
4099
|
}
|
|
4095
4100
|
) : e });
|
|
4096
|
-
},
|
|
4097
|
-
function
|
|
4098
|
-
const [t, s] = p(
|
|
4101
|
+
}, Ql = [];
|
|
4102
|
+
function Jl({ children: e }) {
|
|
4103
|
+
const [t, s] = p(Ql), r = I((o) => (s((i) => i.indexOf(o) !== -1 ? i : [...i, o]), () => s((i) => i.filter((c) => c !== o))), []);
|
|
4099
4104
|
window?.ngui && (window.ngui.addGlobalContextProvider = r);
|
|
4100
4105
|
const a = t.reduce(
|
|
4101
4106
|
(o, i) => /* @__PURE__ */ n(i, { children: o }),
|
|
@@ -4103,42 +4108,42 @@ function Xl({ children: e }) {
|
|
|
4103
4108
|
);
|
|
4104
4109
|
return /* @__PURE__ */ n(B, { children: a });
|
|
4105
4110
|
}
|
|
4106
|
-
function
|
|
4111
|
+
function ed(e, t, s) {
|
|
4107
4112
|
const r = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
4108
4113
|
return e === "asset" && t?.timeZone ? t.timeZone : e === "user" && s?.timezone ? s.timezone : r;
|
|
4109
4114
|
}
|
|
4110
|
-
function
|
|
4115
|
+
function td({ children: e }) {
|
|
4111
4116
|
const [t, s] = p(), [r, a] = p(P.getGlobalAssetTimezoneMode()), { user: o } = x(M);
|
|
4112
4117
|
return /* @__PURE__ */ n(
|
|
4113
|
-
|
|
4118
|
+
na.Provider,
|
|
4114
4119
|
{
|
|
4115
4120
|
value: {
|
|
4116
4121
|
asset: t,
|
|
4117
4122
|
setAsset: s,
|
|
4118
4123
|
type: r,
|
|
4119
4124
|
setType: a,
|
|
4120
|
-
timezone:
|
|
4125
|
+
timezone: ed(r, t, o)
|
|
4121
4126
|
},
|
|
4122
4127
|
children: e
|
|
4123
4128
|
}
|
|
4124
4129
|
);
|
|
4125
4130
|
}
|
|
4126
|
-
function
|
|
4131
|
+
function nd(e) {
|
|
4127
4132
|
return e.message.includes("Failed to fetch dynamically imported module");
|
|
4128
4133
|
}
|
|
4129
|
-
const
|
|
4130
|
-
/* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n("img", { src:
|
|
4134
|
+
const sd = ({ error: e }) => /* @__PURE__ */ g("div", { className: "di page-error", children: [
|
|
4135
|
+
/* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n("img", { src: sa, alt: "" }) }),
|
|
4131
4136
|
/* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n(w, { i18nKey: "page.uncaughtErrorMessage", children: "Something went wrong" }) }),
|
|
4132
4137
|
e.message && /* @__PURE__ */ g(B, { children: [
|
|
4133
4138
|
/* @__PURE__ */ n("hr", {}),
|
|
4134
4139
|
/* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n("span", { title: e.message, children: e.message }) })
|
|
4135
4140
|
] }),
|
|
4136
|
-
|
|
4141
|
+
nd(e) && /* @__PURE__ */ g("div", { "data-testid": "additional-message", children: [
|
|
4137
4142
|
/* @__PURE__ */ n("hr", {}),
|
|
4138
4143
|
/* @__PURE__ */ n("h4", { children: /* @__PURE__ */ n(w, { i18nKey: "errorMessage.pleaseReloadPage", children: "Please reload the page" }) })
|
|
4139
4144
|
] })
|
|
4140
4145
|
] }), on = (e, t) => e ? P.getAppConfiguration(e, t ?? void 0) : null;
|
|
4141
|
-
function
|
|
4146
|
+
function rd({
|
|
4142
4147
|
route: {
|
|
4143
4148
|
component: e,
|
|
4144
4149
|
childRoutes: t,
|
|
@@ -4174,7 +4179,7 @@ function td({
|
|
|
4174
4179
|
/* @__PURE__ */ n("title", { children: [...A, P.getAppName()].map(
|
|
4175
4180
|
(E) => typeof E == "string" ? E : v(E?.id ?? "", { defaultValue: E?.defaultValue ?? "" })
|
|
4176
4181
|
).join(" - ") }),
|
|
4177
|
-
/* @__PURE__ */ n(
|
|
4182
|
+
/* @__PURE__ */ n(Ao, { fallbackRender: sd, children: /* @__PURE__ */ n(
|
|
4178
4183
|
e,
|
|
4179
4184
|
{
|
|
4180
4185
|
...f,
|
|
@@ -4210,9 +4215,9 @@ function td({
|
|
|
4210
4215
|
throw Error(`neither component nor child routes were defined for ${u}`);
|
|
4211
4216
|
}
|
|
4212
4217
|
}
|
|
4213
|
-
) : /* @__PURE__ */ n(K, { path: u, strict: !1, component:
|
|
4218
|
+
) : /* @__PURE__ */ n(K, { path: u, strict: !1, component: ra });
|
|
4214
4219
|
}
|
|
4215
|
-
class
|
|
4220
|
+
class ad extends vt {
|
|
4216
4221
|
render() {
|
|
4217
4222
|
const {
|
|
4218
4223
|
routes: t,
|
|
@@ -4237,7 +4242,7 @@ class nd extends vt {
|
|
|
4237
4242
|
);
|
|
4238
4243
|
} }) }) }),
|
|
4239
4244
|
t.map((l) => /* @__PURE__ */ Me(
|
|
4240
|
-
|
|
4245
|
+
rd,
|
|
4241
4246
|
{
|
|
4242
4247
|
...d,
|
|
4243
4248
|
route: l,
|
|
@@ -4251,53 +4256,53 @@ class nd extends vt {
|
|
|
4251
4256
|
browserTitleSegments: u
|
|
4252
4257
|
}
|
|
4253
4258
|
)),
|
|
4254
|
-
/* @__PURE__ */ n(K, { component:
|
|
4259
|
+
/* @__PURE__ */ n(K, { component: aa })
|
|
4255
4260
|
] });
|
|
4256
4261
|
}
|
|
4257
4262
|
}
|
|
4258
|
-
const As = bt(
|
|
4259
|
-
|
|
4260
|
-
aa,
|
|
4261
|
-
fl,
|
|
4262
|
-
oo,
|
|
4263
|
-
Xl,
|
|
4264
|
-
Bc,
|
|
4263
|
+
const As = bt(ad), od = [
|
|
4264
|
+
Zl,
|
|
4265
4265
|
oa,
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4266
|
+
gl,
|
|
4267
|
+
io,
|
|
4268
|
+
Jl,
|
|
4269
4269
|
$c,
|
|
4270
4270
|
ia,
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4271
|
+
Bc,
|
|
4272
|
+
Xl,
|
|
4273
|
+
tl,
|
|
4274
|
+
qc,
|
|
4274
4275
|
ca,
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4276
|
+
$l,
|
|
4277
|
+
_i,
|
|
4278
|
+
Wi,
|
|
4279
|
+
la,
|
|
4280
|
+
td,
|
|
4281
|
+
Gl,
|
|
4282
|
+
zc
|
|
4278
4283
|
], Ps = () => {
|
|
4279
4284
|
const { user: e } = x(M), { initialFetchingComplete: t, loadGlobalResources: s } = x(ke);
|
|
4280
4285
|
return S(() => {
|
|
4281
4286
|
t || s();
|
|
4282
|
-
}, [s, t]), t ? /* @__PURE__ */ g(
|
|
4283
|
-
/* @__PURE__ */ n(
|
|
4284
|
-
/* @__PURE__ */ g(
|
|
4287
|
+
}, [s, t]), t ? /* @__PURE__ */ g(vl, { providers: od, children: [
|
|
4288
|
+
/* @__PURE__ */ n(wl, {}),
|
|
4289
|
+
/* @__PURE__ */ g(Ti, { children: [
|
|
4285
4290
|
/* @__PURE__ */ n(we, { linkToStartPage: !0 }),
|
|
4286
|
-
/* @__PURE__ */ n(
|
|
4291
|
+
/* @__PURE__ */ n(dc, {}),
|
|
4287
4292
|
/* @__PURE__ */ n("div", { className: "separator" }),
|
|
4288
|
-
/* @__PURE__ */ n(
|
|
4293
|
+
/* @__PURE__ */ n(ji, {})
|
|
4289
4294
|
] }),
|
|
4290
4295
|
/* @__PURE__ */ n(ae.Consumer, { children: ({ contextInfo: r }) => {
|
|
4291
4296
|
const a = se.filterRoutes(se.getRoutes(), e, r);
|
|
4292
4297
|
return /* @__PURE__ */ g(B, { children: [
|
|
4293
4298
|
/* @__PURE__ */ g("div", { className: "di floor-2", children: [
|
|
4294
|
-
/* @__PURE__ */ n(
|
|
4299
|
+
/* @__PURE__ */ n(Vc, {}),
|
|
4295
4300
|
" ",
|
|
4296
|
-
/* @__PURE__ */ n(
|
|
4297
|
-
/* @__PURE__ */ n(
|
|
4301
|
+
/* @__PURE__ */ n(Ic, { routes: a }),
|
|
4302
|
+
/* @__PURE__ */ n(pc, { routes: a })
|
|
4298
4303
|
] }),
|
|
4299
4304
|
/* @__PURE__ */ n("div", { className: "di main", children: /* @__PURE__ */ g("div", { className: "di main-box", children: [
|
|
4300
|
-
/* @__PURE__ */ n(
|
|
4305
|
+
/* @__PURE__ */ n(Kc, {}),
|
|
4301
4306
|
" ",
|
|
4302
4307
|
/* @__PURE__ */ n("div", { className: "di main-box-cont", children: /* @__PURE__ */ n("div", { className: "content-box", children: /* @__PURE__ */ n(As, { routes: a }) }) })
|
|
4303
4308
|
] }) })
|
|
@@ -4316,7 +4321,7 @@ function cn(e) {
|
|
|
4316
4321
|
e ? s(e) : De().then(s, (r) => console.error(r));
|
|
4317
4322
|
}
|
|
4318
4323
|
}
|
|
4319
|
-
function
|
|
4324
|
+
function id(e) {
|
|
4320
4325
|
const { component: t, redirectTo: s } = e, { authenticated: r, setAuthenticatedUser: a } = x(M), o = $(), i = q(), [c, u] = p(!r), [d, l] = p(r), f = I(
|
|
4321
4326
|
(C) => {
|
|
4322
4327
|
const y = Cn();
|
|
@@ -4346,7 +4351,7 @@ function rd(e) {
|
|
|
4346
4351
|
S(() => {
|
|
4347
4352
|
r && l(!0);
|
|
4348
4353
|
}, [r]), S(() => {
|
|
4349
|
-
!r && !d &&
|
|
4354
|
+
!r && !d && da({
|
|
4350
4355
|
pathname: o.pathname,
|
|
4351
4356
|
search: o.search,
|
|
4352
4357
|
hash: o.hash
|
|
@@ -4367,16 +4372,16 @@ function rd(e) {
|
|
|
4367
4372
|
}
|
|
4368
4373
|
);
|
|
4369
4374
|
}
|
|
4370
|
-
function
|
|
4375
|
+
function cd(e) {
|
|
4371
4376
|
return e ? typeof e == "function" ? new e() : e : null;
|
|
4372
4377
|
}
|
|
4373
|
-
function
|
|
4378
|
+
function ld() {
|
|
4374
4379
|
const e = [];
|
|
4375
4380
|
return {
|
|
4376
4381
|
type: "backend",
|
|
4377
4382
|
init(t, s, r) {
|
|
4378
4383
|
s.backends && s.backends.forEach((a, o) => {
|
|
4379
|
-
const i =
|
|
4384
|
+
const i = cd(a);
|
|
4380
4385
|
i?.read && (e.push(i), i.init(t, s.backendOptions?.[o] || {}, r));
|
|
4381
4386
|
});
|
|
4382
4387
|
},
|
|
@@ -4392,11 +4397,11 @@ function od() {
|
|
|
4392
4397
|
}
|
|
4393
4398
|
};
|
|
4394
4399
|
}
|
|
4395
|
-
const
|
|
4396
|
-
function
|
|
4397
|
-
return e.replace(
|
|
4400
|
+
const dd = /{{(.+?)}}/g;
|
|
4401
|
+
function ud(e, t) {
|
|
4402
|
+
return e.replace(dd, (s, r) => t[r.trim()] ?? r.trim());
|
|
4398
4403
|
}
|
|
4399
|
-
function
|
|
4404
|
+
function hd(e, t) {
|
|
4400
4405
|
return Fs(e, t, (s, r) => {
|
|
4401
4406
|
if (r === "")
|
|
4402
4407
|
return s;
|
|
@@ -4444,7 +4449,7 @@ class Y extends Bt {
|
|
|
4444
4449
|
return Promise.all([
|
|
4445
4450
|
Y.requestData(r, this.options.tenantApiKey ?? ""),
|
|
4446
4451
|
Y.requestData(a, this.options.mainApiKey ?? "")
|
|
4447
|
-
]).then(([o, i]) =>
|
|
4452
|
+
]).then(([o, i]) => hd(i, o));
|
|
4448
4453
|
}
|
|
4449
4454
|
readMainLocizeProject(t, s) {
|
|
4450
4455
|
const r = this.getReadUrl(
|
|
@@ -4476,7 +4481,7 @@ class Y extends Bt {
|
|
|
4476
4481
|
});
|
|
4477
4482
|
}
|
|
4478
4483
|
buildUrl(t, s) {
|
|
4479
|
-
return
|
|
4484
|
+
return ud(t, s);
|
|
4480
4485
|
}
|
|
4481
4486
|
static requestData(t, s) {
|
|
4482
4487
|
return rt.get(t, {
|
|
@@ -4486,13 +4491,13 @@ class Y extends Bt {
|
|
|
4486
4491
|
}).then((r) => r.data);
|
|
4487
4492
|
}
|
|
4488
4493
|
}
|
|
4489
|
-
function
|
|
4494
|
+
function fd(e) {
|
|
4490
4495
|
return (t) => {
|
|
4491
4496
|
const { user: s } = x(M);
|
|
4492
4497
|
return /* @__PURE__ */ n(e, { ...t, locale: s.locale });
|
|
4493
4498
|
};
|
|
4494
4499
|
}
|
|
4495
|
-
function
|
|
4500
|
+
function md() {
|
|
4496
4501
|
const e = P.getMainLocizeProject(), t = P.getTenantLocizeProject(), s = {
|
|
4497
4502
|
// Tenant-specific project on Locize
|
|
4498
4503
|
tenantProjectId: t ? t.projectId : null,
|
|
@@ -4503,7 +4508,7 @@ function ud() {
|
|
|
4503
4508
|
mainApiKey: e.apiKey,
|
|
4504
4509
|
mainVersion: e.version,
|
|
4505
4510
|
referenceLng: "en"
|
|
4506
|
-
}, r = re.parse(window.location.search.substring(1)), a = r.locize || "", o = r.printMissingTranslationKeys === "true", i =
|
|
4511
|
+
}, r = re.parse(window.location.search.substring(1)), a = r.locize || "", o = r.printMissingTranslationKeys === "true", i = ua(), c = a !== "true" && i.length > 0, u = {
|
|
4507
4512
|
fallbackLng: "en",
|
|
4508
4513
|
appendNamespaceToCIMode: !0,
|
|
4509
4514
|
debug: o,
|
|
@@ -4532,13 +4537,13 @@ function ud() {
|
|
|
4532
4537
|
}
|
|
4533
4538
|
};
|
|
4534
4539
|
return new Promise((h) => {
|
|
4535
|
-
z.use(
|
|
4540
|
+
z.use(ld()).init(f, () => {
|
|
4536
4541
|
kt(z), h();
|
|
4537
4542
|
});
|
|
4538
4543
|
});
|
|
4539
4544
|
} else
|
|
4540
4545
|
return new Promise((d) => {
|
|
4541
|
-
z.use(Y).use(
|
|
4546
|
+
z.use(Y).use(Po).init({ ...u, backend: s }, () => {
|
|
4542
4547
|
kt(z), d();
|
|
4543
4548
|
});
|
|
4544
4549
|
});
|
|
@@ -4548,7 +4553,7 @@ const ln = (e) => {
|
|
|
4548
4553
|
let r;
|
|
4549
4554
|
return s && t.lng ? r = t.lng.toString() : r = e, window.nguiCiModeActive = s, window.nguiI18nLanguage = r, r;
|
|
4550
4555
|
};
|
|
4551
|
-
class
|
|
4556
|
+
class pd extends O.Component {
|
|
4552
4557
|
constructor() {
|
|
4553
4558
|
super(...arguments), this.state = {
|
|
4554
4559
|
i18nextInitialized: !1,
|
|
@@ -4558,7 +4563,7 @@ class hd extends O.Component {
|
|
|
4558
4563
|
languageLoading: !1
|
|
4559
4564
|
});
|
|
4560
4565
|
}, 500), this.initializeI18next = async () => {
|
|
4561
|
-
await
|
|
4566
|
+
await md(), z.on(
|
|
4562
4567
|
"languageChanged",
|
|
4563
4568
|
() => this.setState(
|
|
4564
4569
|
{
|
|
@@ -4590,7 +4595,7 @@ class hd extends O.Component {
|
|
|
4590
4595
|
return /* @__PURE__ */ n(O.Suspense, { fallback: /* @__PURE__ */ n(oe, {}), children: /* @__PURE__ */ n(ge, { show: r, className: "di i18n-container", children: t && this.props.children }) });
|
|
4591
4596
|
}
|
|
4592
4597
|
}
|
|
4593
|
-
const xs =
|
|
4598
|
+
const xs = fd(pd), Ts = /* @__PURE__ */ g("svg", { className: "whats-new-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 753 194.75", children: [
|
|
4594
4599
|
/* @__PURE__ */ n("title", { children: "Whats new" }),
|
|
4595
4600
|
/* @__PURE__ */ g("g", { className: "wave-background", fill: "#1a8ed3", children: [
|
|
4596
4601
|
/* @__PURE__ */ g("g", { id: "waves", children: [
|
|
@@ -4631,13 +4636,13 @@ const xs = dd(hd), Ts = /* @__PURE__ */ g("svg", { className: "whats-new-svg", x
|
|
|
4631
4636
|
) })
|
|
4632
4637
|
] })
|
|
4633
4638
|
] });
|
|
4634
|
-
function
|
|
4635
|
-
const { principal: e, user: t, paginationSettings: s, setAuthenticatedUser: r, resetAuthenticatedUser: a } = x(M), { instance: o } = ie(), i = pn(), c =
|
|
4639
|
+
function gd() {
|
|
4640
|
+
const { principal: e, user: t, paginationSettings: s, setAuthenticatedUser: r, resetAuthenticatedUser: a } = x(M), { instance: o } = ie(), i = pn(), c = ha(), [u, d] = p(c.get("downloadedEula") === "true"), l = q();
|
|
4636
4641
|
async function f(y, v) {
|
|
4637
4642
|
pe() ? await it(y, o) : await ot(y, v);
|
|
4638
4643
|
}
|
|
4639
4644
|
async function h(y) {
|
|
4640
|
-
const v = await
|
|
4645
|
+
const v = await qa();
|
|
4641
4646
|
if (t && await kn({ ...t, properties: y }), s)
|
|
4642
4647
|
await Oe(e, v, !0, s, r);
|
|
4643
4648
|
else
|
|
@@ -4695,7 +4700,7 @@ function We() {
|
|
|
4695
4700
|
height: s
|
|
4696
4701
|
};
|
|
4697
4702
|
}
|
|
4698
|
-
function
|
|
4703
|
+
function yd(e, t, s) {
|
|
4699
4704
|
return Math.min(
|
|
4700
4705
|
0.8 * (document.body ? document.body.clientHeight : 800) - 130,
|
|
4701
4706
|
Math.max(450, t + e + s)
|
|
@@ -4705,15 +4710,15 @@ function ee(e) {
|
|
|
4705
4710
|
return e.state !== "TERMS_ACCEPTANCE_PENDING";
|
|
4706
4711
|
}
|
|
4707
4712
|
function Es() {
|
|
4708
|
-
const { user: e } = x(M), { userProperties: t } = Pn(), { t: s } = G(), [r, a] = p(!1), { accept: o, decline: i, download: c, downloaded: u } =
|
|
4713
|
+
const { user: e } = x(M), { userProperties: t } = Pn(), { t: s } = G(), [r, a] = p(!1), { accept: o, decline: i, download: c, downloaded: u } = gd(), [d, l] = p(!1), [f, h] = p(!1), [m, C] = p(!1), y = t.some((U) => U.key === "_showWelcomeModal"), v = P.getDisplayWelcomeScreen();
|
|
4709
4714
|
S(() => {
|
|
4710
4715
|
at((U, It) => {
|
|
4711
4716
|
It || a(!ee(U) || !!U.properties._showWelcomeModal && v);
|
|
4712
|
-
}),
|
|
4717
|
+
}), fa(() => a(!1));
|
|
4713
4718
|
}, [v, e]), S(() => {
|
|
4714
4719
|
e && !ee(e) && a(!0);
|
|
4715
4720
|
}, [e]);
|
|
4716
|
-
const { ref: b, height: A } = We(), { ref: k, height: T } = We(), { ref: E, height: N } = We(), R =
|
|
4721
|
+
const { ref: b, height: A } = We(), { ref: k, height: T } = We(), { ref: E, height: N } = We(), R = yd(T, A, N);
|
|
4717
4722
|
async function F() {
|
|
4718
4723
|
C(!0);
|
|
4719
4724
|
try {
|
|
@@ -4770,9 +4775,9 @@ function Es() {
|
|
|
4770
4775
|
e && !ee(e) && /* @__PURE__ */ g("div", { ref: k, className: "eula", children: [
|
|
4771
4776
|
/* @__PURE__ */ n("hr", {}),
|
|
4772
4777
|
/* @__PURE__ */ n("strong", { children: /* @__PURE__ */ n(w, { i18nKey: "welcome.toProceedDownloadEULA", children: "To proceed, please download our End-User-License-Agreement (EULA) first. Thank you!" }) }),
|
|
4773
|
-
/* @__PURE__ */ g(
|
|
4778
|
+
/* @__PURE__ */ g(co, { children: [
|
|
4774
4779
|
/* @__PURE__ */ g(D, { primary: !0, onClick: c, children: [
|
|
4775
|
-
/* @__PURE__ */ n("img", { src:
|
|
4780
|
+
/* @__PURE__ */ n("img", { src: ma, alt: "" }),
|
|
4776
4781
|
" ",
|
|
4777
4782
|
/* @__PURE__ */ n(w, { i18nKey: "welcome.downloadEULA", children: "Download EULA" })
|
|
4778
4783
|
] }),
|
|
@@ -4847,29 +4852,29 @@ class Ns extends vt {
|
|
|
4847
4852
|
) });
|
|
4848
4853
|
}
|
|
4849
4854
|
}
|
|
4850
|
-
const
|
|
4855
|
+
const wd = 6, vd = 4, Se = "NOT_FOUND", Rt = class Rt extends vt {
|
|
4851
4856
|
constructor() {
|
|
4852
4857
|
super(...arguments), this.state = {
|
|
4853
4858
|
show: !1,
|
|
4854
4859
|
viewedVersions: [],
|
|
4855
4860
|
isSubscribed: !0,
|
|
4856
|
-
currentWhatsNewVersion: ct().substring(0,
|
|
4861
|
+
currentWhatsNewVersion: ct().substring(0, wd).replace(/\./g, "_")
|
|
4857
4862
|
}, this.checkIfShowModal = async () => {
|
|
4858
4863
|
const s = this.context.user, { t: r } = this.props, { currentWhatsNewVersion: a } = this.state;
|
|
4859
4864
|
let o = !0;
|
|
4860
4865
|
try {
|
|
4861
|
-
o = await
|
|
4866
|
+
o = await ja(), this.setState({ isSubscribed: o });
|
|
4862
4867
|
} catch {
|
|
4863
4868
|
o = !0, this.setState({ isSubscribed: o });
|
|
4864
4869
|
}
|
|
4865
4870
|
let i = r(`whatsNew.body.${a}`, { defaultValue: Se }) !== Se, c = a;
|
|
4866
4871
|
if (!i) {
|
|
4867
|
-
const d = `${a.substring(0,
|
|
4872
|
+
const d = `${a.substring(0, vd)}_*`, l = `whatsNew.body.${d}`;
|
|
4868
4873
|
i = r(l, { defaultValue: Se }) !== Se, i && (c = d);
|
|
4869
4874
|
}
|
|
4870
4875
|
const u = P.getDisplayWelcomeScreen() && s && !!s.properties._showWelcomeModal;
|
|
4871
4876
|
try {
|
|
4872
|
-
const d = await
|
|
4877
|
+
const d = await Ya(), l = !u && i && o && d.indexOf(c) === -1;
|
|
4873
4878
|
this.setState({ show: l, viewedVersions: d, currentWhatsNewVersion: c });
|
|
4874
4879
|
} catch {
|
|
4875
4880
|
const l = o && i;
|
|
@@ -4880,8 +4885,8 @@ const pd = 6, gd = 4, Se = "NOT_FOUND", Rt = class Rt extends vt {
|
|
|
4880
4885
|
const { viewedVersions: t, isSubscribed: s, currentWhatsNewVersion: r } = this.state, a = s ? [.../* @__PURE__ */ new Set([...t, r])] : [];
|
|
4881
4886
|
try {
|
|
4882
4887
|
await Promise.all([
|
|
4883
|
-
|
|
4884
|
-
|
|
4888
|
+
Xa(a),
|
|
4889
|
+
Za(s)
|
|
4885
4890
|
]);
|
|
4886
4891
|
} catch (o) {
|
|
4887
4892
|
console.error("Error while saving whatsNew configuration", o);
|
|
@@ -4893,7 +4898,7 @@ const pd = 6, gd = 4, Se = "NOT_FOUND", Rt = class Rt extends vt {
|
|
|
4893
4898
|
componentDidMount() {
|
|
4894
4899
|
const t = P.getAppWhatsNewVersion(), s = t || this.state.currentWhatsNewVersion;
|
|
4895
4900
|
this.setState({ currentWhatsNewVersion: s }), at((r, a) => {
|
|
4896
|
-
const o = localStorage.getItem(
|
|
4901
|
+
const o = localStorage.getItem(ga()), i = JSON.parse(o || '{"usesOAuth": false}');
|
|
4897
4902
|
(!a || i.usesOAuth === !0 || pe()) && (delete i.usesOAuth, yn(i), this.checkIfShowModal());
|
|
4898
4903
|
});
|
|
4899
4904
|
}
|
|
@@ -4939,7 +4944,7 @@ const pd = 6, gd = 4, Se = "NOT_FOUND", Rt = class Rt extends vt {
|
|
|
4939
4944
|
};
|
|
4940
4945
|
Rt.contextType = M;
|
|
4941
4946
|
let st = Rt;
|
|
4942
|
-
const Rs =
|
|
4947
|
+
const Rs = pa()(st);
|
|
4943
4948
|
Nn.setNotificationCallbacks({
|
|
4944
4949
|
showOfflineNotification: () => {
|
|
4945
4950
|
Mn(
|
|
@@ -4952,7 +4957,7 @@ Nn.setNotificationCallbacks({
|
|
|
4952
4957
|
Ln("TOKEN_REFRESHER");
|
|
4953
4958
|
}
|
|
4954
4959
|
});
|
|
4955
|
-
function
|
|
4960
|
+
function Cd() {
|
|
4956
4961
|
const [e, t] = p(null);
|
|
4957
4962
|
function s(a, o) {
|
|
4958
4963
|
t({ message: a, callback: o });
|
|
@@ -4963,12 +4968,12 @@ function yd() {
|
|
|
4963
4968
|
return /* @__PURE__ */ n($n, { children: /* @__PURE__ */ n(Gn, { children: /* @__PURE__ */ n(xs, { children: /* @__PURE__ */ g(Hn, { children: [
|
|
4964
4969
|
/* @__PURE__ */ g(Fn, { getUserConfirmation: s, children: [
|
|
4965
4970
|
/* @__PURE__ */ g(Te, { children: [
|
|
4966
|
-
/* @__PURE__ */ n(K, { path: "/signin", component:
|
|
4967
|
-
/* @__PURE__ */ n(K, { path: "/forgotpassword", component:
|
|
4968
|
-
/* @__PURE__ */ n(K, { path: "/changeemail", component:
|
|
4969
|
-
/* @__PURE__ */ n(K, { path: "/setpassword", component:
|
|
4971
|
+
/* @__PURE__ */ n(K, { path: "/signin", component: xi }),
|
|
4972
|
+
/* @__PURE__ */ n(K, { path: "/forgotpassword", component: ii }),
|
|
4973
|
+
/* @__PURE__ */ n(K, { path: "/changeemail", component: ri }),
|
|
4974
|
+
/* @__PURE__ */ n(K, { path: "/setpassword", component: yi }),
|
|
4970
4975
|
/* @__PURE__ */ n(K, { path: "/legals", component: qn }),
|
|
4971
|
-
/* @__PURE__ */ n(
|
|
4976
|
+
/* @__PURE__ */ n(id, { component: Ps, redirectTo: "/signin" })
|
|
4972
4977
|
] }),
|
|
4973
4978
|
/* @__PURE__ */ n(Es, {})
|
|
4974
4979
|
] }),
|
|
@@ -4985,14 +4990,14 @@ function yd() {
|
|
|
4985
4990
|
/* @__PURE__ */ n(zn, {})
|
|
4986
4991
|
] }) }) }) });
|
|
4987
4992
|
}
|
|
4988
|
-
function
|
|
4989
|
-
const [e, t] = p(!0), [s, r] = p(), [a, o] = p(), { setAuthenticatedUser: i } = x(M), { instance: c, accounts: u } = ie(), d =
|
|
4993
|
+
function bd() {
|
|
4994
|
+
const [e, t] = p(!0), [s, r] = p(), [a, o] = p(), { setAuthenticatedUser: i } = x(M), { instance: c, accounts: u } = ie(), d = ho(u[0] || {});
|
|
4990
4995
|
return S(() => {
|
|
4991
4996
|
let l = !1;
|
|
4992
4997
|
return (async () => {
|
|
4993
4998
|
try {
|
|
4994
4999
|
t(!0);
|
|
4995
|
-
const f = await c.acquireTokenSilent(
|
|
5000
|
+
const f = await c.acquireTokenSilent(ya(Rn(), d));
|
|
4996
5001
|
if (l) return;
|
|
4997
5002
|
if (f.account.name) {
|
|
4998
5003
|
const [h, m, C] = await Promise.all([
|
|
@@ -5014,19 +5019,19 @@ function wd() {
|
|
|
5014
5019
|
};
|
|
5015
5020
|
}, [d, c, i]), { startPage: a, loading: e, error: s };
|
|
5016
5021
|
}
|
|
5017
|
-
function
|
|
5018
|
-
const { loading: t, startPage: s, error: r } =
|
|
5022
|
+
function Sd({ component: e }) {
|
|
5023
|
+
const { loading: t, startPage: s, error: r } = bd(), { instance: a } = ie(), { pathname: o } = $();
|
|
5019
5024
|
return t ? /* @__PURE__ */ n(oe, { center: !0 }) : r ? (console.error("ProtectedRouteMsal error: ", r), a.logoutRedirect(), null) : s && o === "/" && s !== "/" ? /* @__PURE__ */ n(St, { to: s }) : /* @__PURE__ */ n(K, { render: (i) => Me(e, i) });
|
|
5020
5025
|
}
|
|
5021
|
-
const
|
|
5026
|
+
const Ad = () => /* @__PURE__ */ g("div", { className: "afterregistermfadevice", children: [
|
|
5022
5027
|
/* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(w, { i18nKey: "afterRegister2FADevice.successMessage", children: "You have successfully registered your MFA device." }) }),
|
|
5023
5028
|
/* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(w, { i18nKey: "afterRegister2FADevice.hint", children: "You can now close this window and continue using the application." }) })
|
|
5024
|
-
] }),
|
|
5029
|
+
] }), Pd = () => /* @__PURE__ */ n("div", { className: "after-signup", children: /* @__PURE__ */ n("p", { children: /* @__PURE__ */ g(w, { i18nKey: "afterSignup.successMessage", children: [
|
|
5025
5030
|
"You have successfully signed up. Please",
|
|
5026
5031
|
" ",
|
|
5027
5032
|
/* @__PURE__ */ n(_, { to: "/", style: { color: P.getPrimaryColorAvoidingGray() }, children: "sign in" })
|
|
5028
5033
|
] }) }) });
|
|
5029
|
-
function
|
|
5034
|
+
function xd({ errorMessage: e, afterSigninText: t, onSignin: s }) {
|
|
5030
5035
|
return /* @__PURE__ */ g("div", { className: "signin-message", children: [
|
|
5031
5036
|
/* @__PURE__ */ n("p", { children: e }),
|
|
5032
5037
|
/* @__PURE__ */ g("p", { children: [
|
|
@@ -5038,7 +5043,7 @@ function Sd({ errorMessage: e, afterSigninText: t, onSignin: s }) {
|
|
|
5038
5043
|
] })
|
|
5039
5044
|
] });
|
|
5040
5045
|
}
|
|
5041
|
-
function
|
|
5046
|
+
function Td(e) {
|
|
5042
5047
|
switch (e?.errorCode) {
|
|
5043
5048
|
case "invalid_grant":
|
|
5044
5049
|
return /* @__PURE__ */ n(w, { i18nKey: "msal.errorComponent.authenticationError.message", children: "Your authentication session has expired." });
|
|
@@ -5050,7 +5055,7 @@ function Ad(e) {
|
|
|
5050
5055
|
return /* @__PURE__ */ n(w, { i18nKey: "msal.errorComponent.genericError.message", children: "An Error occurred authenticating via Msal." });
|
|
5051
5056
|
}
|
|
5052
5057
|
}
|
|
5053
|
-
function
|
|
5058
|
+
function Ed(e) {
|
|
5054
5059
|
switch (e?.errorCode) {
|
|
5055
5060
|
case "invalid_grant":
|
|
5056
5061
|
return /* @__PURE__ */ n(w, { i18nKey: "msal.errorComponent.authenticationError.afterSigninText", children: "again" });
|
|
@@ -5060,18 +5065,18 @@ function Pd(e) {
|
|
|
5060
5065
|
return "";
|
|
5061
5066
|
}
|
|
5062
5067
|
}
|
|
5063
|
-
function
|
|
5068
|
+
function Nd({ error: e }) {
|
|
5064
5069
|
const { instance: t } = ie(), s = () => {
|
|
5065
5070
|
t.loginRedirect();
|
|
5066
5071
|
};
|
|
5067
5072
|
return S(() => {
|
|
5068
5073
|
e && e.errorCode === "access_denied" && t.logoutRedirect();
|
|
5069
5074
|
}, [t, e]), e?.errorCode === "access_denied" ? null : /* @__PURE__ */ n(
|
|
5070
|
-
|
|
5075
|
+
xd,
|
|
5071
5076
|
{
|
|
5072
|
-
errorMessage:
|
|
5077
|
+
errorMessage: Td(e),
|
|
5073
5078
|
onSignin: s,
|
|
5074
|
-
afterSigninText:
|
|
5079
|
+
afterSigninText: Ed(e)
|
|
5075
5080
|
}
|
|
5076
5081
|
);
|
|
5077
5082
|
}
|
|
@@ -5087,10 +5092,10 @@ Nn.setNotificationCallbacks({
|
|
|
5087
5092
|
Ln("TOKEN_REFRESHER");
|
|
5088
5093
|
}
|
|
5089
5094
|
});
|
|
5090
|
-
function
|
|
5095
|
+
function Rd() {
|
|
5091
5096
|
return /* @__PURE__ */ n(oe, { center: !0 });
|
|
5092
5097
|
}
|
|
5093
|
-
function
|
|
5098
|
+
function Id({ msalInstance: e, clientId: t }) {
|
|
5094
5099
|
const [s, r] = p(null);
|
|
5095
5100
|
function a(i, c) {
|
|
5096
5101
|
r({ message: i, callback: c });
|
|
@@ -5099,21 +5104,21 @@ function Ed({ msalInstance: e, clientId: t }) {
|
|
|
5099
5104
|
s && s.callback(i), r(null);
|
|
5100
5105
|
}
|
|
5101
5106
|
return /* @__PURE__ */ n(Fn, { getUserConfirmation: a, children: /* @__PURE__ */ g(Te, { children: [
|
|
5102
|
-
/* @__PURE__ */ n(K, { path: "/aftersignup", component:
|
|
5103
|
-
/* @__PURE__ */ n(K, { path: "/afterregistermfadevice", component:
|
|
5107
|
+
/* @__PURE__ */ n(K, { path: "/aftersignup", component: Pd }),
|
|
5108
|
+
/* @__PURE__ */ n(K, { path: "/afterregistermfadevice", component: Ad }),
|
|
5104
5109
|
/* @__PURE__ */ n(K, { path: "/legals", component: qn }),
|
|
5105
5110
|
/* @__PURE__ */ n(
|
|
5106
5111
|
K,
|
|
5107
5112
|
{
|
|
5108
|
-
render: () => /* @__PURE__ */ n(
|
|
5109
|
-
|
|
5113
|
+
render: () => /* @__PURE__ */ n(fo, { instance: e, children: /* @__PURE__ */ n(
|
|
5114
|
+
mo,
|
|
5110
5115
|
{
|
|
5111
5116
|
interactionType: Ds.Redirect,
|
|
5112
|
-
authenticationRequest:
|
|
5113
|
-
errorComponent:
|
|
5114
|
-
loadingComponent:
|
|
5117
|
+
authenticationRequest: wa(t),
|
|
5118
|
+
errorComponent: Nd,
|
|
5119
|
+
loadingComponent: Rd,
|
|
5115
5120
|
children: /* @__PURE__ */ n($n, { children: /* @__PURE__ */ n(Gn, { children: /* @__PURE__ */ n(xs, { children: /* @__PURE__ */ g(Hn, { children: [
|
|
5116
|
-
/* @__PURE__ */ n(Te, { children: /* @__PURE__ */ n(
|
|
5121
|
+
/* @__PURE__ */ n(Te, { children: /* @__PURE__ */ n(Sd, { component: Ps }) }),
|
|
5117
5122
|
/* @__PURE__ */ n(Es, {}),
|
|
5118
5123
|
/* @__PURE__ */ n(Vn, {}),
|
|
5119
5124
|
/* @__PURE__ */ n(On, {}),
|
|
@@ -5133,11 +5138,11 @@ function Ed({ msalInstance: e, clientId: t }) {
|
|
|
5133
5138
|
)
|
|
5134
5139
|
] }) });
|
|
5135
5140
|
}
|
|
5136
|
-
function
|
|
5137
|
-
return pe() ? /* @__PURE__ */ n(
|
|
5141
|
+
function Cu() {
|
|
5142
|
+
return pe() ? /* @__PURE__ */ n(Id, { clientId: Rn(), msalInstance: va() }) : /* @__PURE__ */ n(Cd, {});
|
|
5138
5143
|
}
|
|
5139
5144
|
export {
|
|
5140
|
-
|
|
5141
|
-
|
|
5145
|
+
Cu as App,
|
|
5146
|
+
vu as initializeApp
|
|
5142
5147
|
};
|
|
5143
5148
|
//# sourceMappingURL=index.js.map
|