@deviceinsight/ng-ui-scale-lib 10.1.1 → 10.2.0

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.
Files changed (43) hide show
  1. package/dist/{AccessEditModal--CrrHDx-.js → AccessEditModal-Rn7DKmYR.js} +2 -2
  2. package/dist/{AccessEditModal--CrrHDx-.js.map → AccessEditModal-Rn7DKmYR.js.map} +1 -1
  3. package/dist/{BundleManagementContainer-pF44tpPR.js → BundleManagementContainer-TrGIe0YX.js} +2 -2
  4. package/dist/{BundleManagementContainer-pF44tpPR.js.map → BundleManagementContainer-TrGIe0YX.js.map} +1 -1
  5. package/dist/{BundlesContainer-CZ70n2vt.js → BundlesContainer-DBDS1cey.js} +3 -3
  6. package/dist/{BundlesContainer-CZ70n2vt.js.map → BundlesContainer-DBDS1cey.js.map} +1 -1
  7. package/dist/{DatapointImport-D5MqlPlb.js → DatapointImport-DmBB5IO_.js} +2 -2
  8. package/dist/{DatapointImport-D5MqlPlb.js.map → DatapointImport-DmBB5IO_.js.map} +1 -1
  9. package/dist/{FileUploadInput-gnfjNZsT.js → FileUploadInput-DWMYm62d.js} +2 -2
  10. package/dist/{FileUploadInput-gnfjNZsT.js.map → FileUploadInput-DWMYm62d.js.map} +1 -1
  11. package/dist/{Files-B7r5BhB0.js → Files-DZoDxerS.js} +3 -3
  12. package/dist/{Files-B7r5BhB0.js.map → Files-DZoDxerS.js.map} +1 -1
  13. package/dist/{GlobalPowerBiReports-BFCqFXrG.js → GlobalPowerBiReports-B0FFOZL6.js} +2 -2
  14. package/dist/{GlobalPowerBiReports-BFCqFXrG.js.map → GlobalPowerBiReports-B0FFOZL6.js.map} +1 -1
  15. package/dist/{JsonSettingWidget-Dmoshz7m.js → JsonSettingWidget-DdS4dPsa.js} +2 -2
  16. package/dist/{JsonSettingWidget-Dmoshz7m.js.map → JsonSettingWidget-DdS4dPsa.js.map} +1 -1
  17. package/dist/{LicensesEditPage-C8vTjupQ.js → LicensesEditPage-DPJ4lLaV.js} +2 -2
  18. package/dist/{LicensesEditPage-C8vTjupQ.js.map → LicensesEditPage-DPJ4lLaV.js.map} +1 -1
  19. package/dist/{LicensesList-yByygj9U.js → LicensesList-CkgWMSnM.js} +2 -2
  20. package/dist/{LicensesList-yByygj9U.js.map → LicensesList-CkgWMSnM.js.map} +1 -1
  21. package/dist/{PropertiesEditPage-W9i-93un.js → PropertiesEditPage--t5jnFmT.js} +2 -2
  22. package/dist/{PropertiesEditPage-W9i-93un.js.map → PropertiesEditPage--t5jnFmT.js.map} +1 -1
  23. package/dist/{PropertiesList-BoqIna7m.js → PropertiesList-BwbcDHUj.js} +2 -2
  24. package/dist/{PropertiesList-BoqIna7m.js.map → PropertiesList-BwbcDHUj.js.map} +1 -1
  25. package/dist/{TemplateEditPage-D9OFIKqk.js → TemplateEditPage-IqiYJ6eB.js} +4 -4
  26. package/dist/{TemplateEditPage-D9OFIKqk.js.map → TemplateEditPage-IqiYJ6eB.js.map} +1 -1
  27. package/dist/{TemplateTextInput-prp5cWrV.js → TemplateTextInput-bjR36XPj.js} +2 -2
  28. package/dist/{TemplateTextInput-prp5cWrV.js.map → TemplateTextInput-bjR36XPj.js.map} +1 -1
  29. package/dist/{TemplatesListPage-7VM9CVDI.js → TemplatesListPage-Cv2vJe8b.js} +3 -3
  30. package/dist/{TemplatesListPage-7VM9CVDI.js.map → TemplatesListPage-Cv2vJe8b.js.map} +1 -1
  31. package/dist/{UserGroupAssignments-Ce4pvexW.js → UserGroupAssignments-wEhudUHe.js} +2 -2
  32. package/dist/{UserGroupAssignments-Ce4pvexW.js.map → UserGroupAssignments-wEhudUHe.js.map} +1 -1
  33. package/dist/{UserGroupTheme-CXQyYGco.js → UserGroupTheme-C16SwuPr.js} +2 -2
  34. package/dist/{UserGroupTheme-CXQyYGco.js.map → UserGroupTheme-C16SwuPr.js.map} +1 -1
  35. package/dist/api.d.ts +5 -1
  36. package/dist/api.js +2 -2
  37. package/dist/index.js +989 -977
  38. package/dist/index.js.map +1 -1
  39. package/dist/{setTitle-DZyXA3i8.js → setTitle-OKcazNTt.js} +6612 -6525
  40. package/dist/setTitle-OKcazNTt.js.map +1 -0
  41. package/dist/style.css +1 -1
  42. package/package.json +3 -3
  43. package/dist/setTitle-DZyXA3i8.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,83 +1,83 @@
1
- import { PublicClientApplication as Is, EventType as He, InteractionType as ks } from "@azure/msal-browser";
1
+ import { PublicClientApplication as Is, EventType as He, InteractionType as Ds } from "@azure/msal-browser";
2
2
  import rt from "axios";
3
3
  import z from "i18next";
4
- import { merge as Ie, kebabCase as Ds, isEqual as cn, omit as dn, debounce as un, uniqBy as Ls, unescape as Ms, isEmpty as hn, groupBy as Vs, uniqWith as Us, mergeWith as Fs } from "lodash";
4
+ import { merge as Ie, kebabCase as ks, isEqual as cn, omit as dn, debounce as un, uniqBy as Ls, unescape as Ms, isEmpty as hn, groupBy as Vs, uniqWith as Us, mergeWith as Fs } from "lodash";
5
5
  import re from "qs";
6
- import { initReactI18next as Os, setI18n as kt } from "react-i18next";
7
- import { s as _s, U as A, T as Ks, S as qe, a as w, u as G, g as Hs, b as Bs, f as Gs, c as $s, i as zs, d as Ws, e as qs, o as at, h as js, v as Ys, j as Xs, A as Zs, k as Qs, l as Js, m as er, n as tr, p as Dt, q as Lt, G as ke, r as Q, I as Mt, t as he, w as Vt, x as Ut, y as M, z as fn, B as ot, C as pe, D as it, E as nr, F as lt, H as ct, J as sr, K as mn, L as Ae, M as Ft, N as rr, O as Z, P as dt, Q as ar, R as pn, V as gn, W as ut, X as or, Y as yn, Z as ve, _ as ir, $ as lr, a0 as wn, a1 as De, a2 as vn, a3 as ht, a4 as cr, a5 as Cn, a6 as dr, a7 as Pe, a8 as je, a9 as ft, aa as ur, ab as hr, ac as fr, ad as mr, ae as pr, af as Ot, ag as gr, ah as yr, ai as wr, aj as bn, ak as vr, al as Cr, am as te, an as br, ao as Sr, ap as Ar, aq as Pr, ar as xr, as as Tr, at as Er, au as Nr, av as Rr, aw as fe, ax as mt, ay as Ir, az as kr, aA as Dr, aB as Lr, aC as ae, aD as se, aE as Mr, aF as Ye, aG as Sn, aH as pt, aI as Vr, aJ as Ur, aK as _t, aL as Fr, aM as Or, aN as An, aO as _r, aP as Pn, aQ as xn, aR as Tn, aS as Kr, aT as Hr, aU as J, aV as Br, aW as Gr, aX as $r, aY as zr, aZ as Wr, a_ as qr, a$ as jr, b0 as Yr, b1 as Xr, b2 as Zr, b3 as Qr, b4 as Jr, b5 as ea, b6 as ta, b7 as na, b8 as sa, b9 as ra, ba as aa, bb as oa, bc as ia, bd as la, be as ca, bf as da, bg as ua, bh as ha, bi as fa, bj as ma, bk as En, bl as pa, bm as Nn, bn as ga, bo as ya } from "./setTitle-DZyXA3i8.js";
8
- import { setAxios as wa, readUIConfigurations as va, getAxios as Ca, readUISecrets as ba, fetchProperties as Sa, fetchAssetGroupDefinitions as Aa, fetchLocales as Pa, readAccountObject as gt, writePaginationSettings as xa, getVersion as Ta, changeEmail as Ea, triggerPasswordReset as Na, readLegalPage as Ra, readPaginationSettings as Ia, requestToken as ka, fetchMe as Le, setUserPassword as Da, fetchAuthorizationOptions as La, readFavorites as Ma, writeFavorites as Va, updateLocaleOfUser as Ua, searchUserGroups as Fa, searchUsers as Oa, searchAssetGroups as _a, searchAssets as Ka, writeAccountObject as Rn, fetchShadowKeys as Ha, checkShowUserDocumentation as Ba, readShowUserDocumentation as Ga, acceptEULA as $a, updateMe as In, readReleaseNotesSubscription as za, readReleaseNotesVersionsViewed as Wa, writeReleaseNotesVersionsViewed as qa, writeReleaseNotesSubscription as ja } from "@deviceinsight/ng-ui-api-client";
9
- import { setGlobalErrorMessageBoxOptions as Ya, initializeTranslation as Xa, messageBoxError as X, ContentHeader as Za, MultiMenu as xe, MultiMenuItem as ne, nanoid10 as kn, messageBoxSuccess as Kt, InfoBox as Qa, messageBoxDismissGroup as Dn, messageBoxWarn as Ln, MessageBoxContainer as Mn } from "@deviceinsight/ng-ui-components";
6
+ import { initReactI18next as Os, setI18n as Dt } from "react-i18next";
7
+ import { s as _s, U as P, T as Ks, S as qe, a as w, u as G, g as Hs, b as Bs, f as Gs, c as $s, i as zs, d as Ws, e as qs, o as at, h as js, v as Ys, j as Xs, A as Zs, k as Qs, l as Js, m as er, n as tr, p as kt, q as Lt, G as De, r as X, I as Mt, t as he, w as Vt, x as Ut, y as M, z as fn, B as ot, C as pe, D as it, E as nr, F as lt, H as ct, J as sr, K as mn, L as Ae, M as Ft, N as rr, O as Q, P as dt, Q as ar, R as pn, V as gn, W as ut, X as or, Y as yn, Z as ve, _ as ir, $ as lr, a0 as wn, a1 as ke, a2 as vn, a3 as ht, a4 as cr, a5 as Cn, a6 as dr, a7 as Pe, a8 as je, a9 as ft, aa as ur, ab as hr, ac as fr, ad as mr, ae as pr, af as Ot, ag as gr, ah as yr, ai as wr, aj as bn, ak as vr, al as Cr, am as te, an as br, ao as Sr, ap as Ar, aq as Pr, ar as xr, as as Tr, at as Er, au as Nr, av as Rr, aw as fe, ax as mt, ay as Ir, az as Dr, aA as kr, aB as Lr, aC as ae, aD as se, aE as Mr, aF as Ye, aG as Sn, aH as pt, aI as Vr, aJ as Ur, aK as _t, aL as Fr, aM as Or, aN as An, aO as _r, aP as Pn, aQ as xn, aR as Tn, aS as Kr, aT as Hr, aU as J, aV as Br, aW as Gr, aX as $r, aY as zr, aZ as Wr, a_ as qr, a$ as jr, b0 as Yr, b1 as Xr, b2 as Zr, b3 as Qr, b4 as Jr, b5 as ea, b6 as ta, b7 as na, b8 as sa, b9 as ra, ba as aa, bb as oa, bc as ia, bd as la, be as ca, bf as da, bg as ua, bh as ha, bi as fa, bj as ma, bk as En, bl as pa, bm as Nn, bn as ga, bo as ya } from "./setTitle-OKcazNTt.js";
8
+ import { setAxios as wa, readUIConfigurations as va, getAxios as Ca, readUISecrets as ba, fetchProperties as Sa, fetchAssetGroupDefinitions as Aa, fetchAssetDefinitions as Pa, fetchLocales as xa, readAccountObject as gt, writePaginationSettings as Ta, getVersion as Ea, changeEmail as Na, triggerPasswordReset as Ra, readLegalPage as Ia, readPaginationSettings as Da, requestToken as ka, fetchMe as Le, setUserPassword as La, fetchAuthorizationOptions as Ma, readFavorites as Va, writeFavorites as Ua, updateLocaleOfUser as Fa, searchUserGroups as Oa, searchUsers as _a, searchAssetGroups as Ka, searchAssets as Ha, writeAccountObject as Rn, fetchShadowKeys as Ba, checkShowUserDocumentation as Ga, readShowUserDocumentation as $a, acceptEULA as za, updateMe as In, readReleaseNotesSubscription as Wa, readReleaseNotesVersionsViewed as qa, writeReleaseNotesVersionsViewed as ja, writeReleaseNotesSubscription as Ya } from "@deviceinsight/ng-ui-api-client";
9
+ import { setGlobalErrorMessageBoxOptions as Xa, initializeTranslation as Za, messageBoxError as Z, ContentHeader as Qa, MultiMenu as xe, MultiMenuItem as ne, nanoid10 as Dn, messageBoxSuccess as Kt, InfoBox as Ja, messageBoxDismissGroup as kn, messageBoxWarn as Ln, MessageBoxContainer as Mn } from "@deviceinsight/ng-ui-components";
10
10
  import W from "dayjs";
11
- import Ja from "dayjs/plugin/advancedFormat";
12
- import eo from "dayjs/plugin/localizedFormat";
13
- import to from "dayjs/plugin/timezone";
14
- import no from "dayjs/plugin/utc";
11
+ import eo from "dayjs/plugin/advancedFormat";
12
+ import to from "dayjs/plugin/localizedFormat";
13
+ import no from "dayjs/plugin/timezone";
14
+ import so from "dayjs/plugin/utc";
15
15
  import "dayjs/locale/de";
16
- import { jsx as n, jsxs as p, Fragment as H } from "react/jsx-runtime";
16
+ import { jsx as n, jsxs as g, Fragment as H } from "react/jsx-runtime";
17
17
  import V from "classnames";
18
18
  import * as F from "react";
19
- import { useState as g, useCallback as I, useEffect as S, useContext as x, Component as yt, useRef as B, createContext as wt, useReducer as Vn, createElement as Me, useMemo as Ve, PureComponent as vt } from "react";
20
- import { SpinnerContainer as ge, Button as k, Bubble as ye, Spinner as oe, Icon as me, Tooltip as so, ConfirmProvider as ro, Modal as Ct, ButtonRow as ao, Checkbox as Xe, ModalContainer as Un } from "@deviceinsight/ng-ui-basic-components";
19
+ import { useState as p, useCallback as I, useEffect as S, useContext as x, Component as yt, useRef as B, createContext as wt, useReducer as Vn, createElement as Me, useMemo as Ve, PureComponent as vt } from "react";
20
+ import { SpinnerContainer as ge, Button as k, Bubble as ye, Spinner as oe, Icon as me, Tooltip as ro, ConfirmProvider as ao, Modal as Ct, ButtonRow as oo, Checkbox as Xe, ModalContainer as Un } 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 oo } from "ux4iot-react";
25
- import io from "color";
24
+ import { Ux4iotContextProvider as io } from "ux4iot-react";
25
+ import lo 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 lo, MsalProvider as co, MsalAuthenticationTemplate as uo } from "@azure/msal-react";
28
+ import { useMsal as ie, useAccount as co, MsalProvider as uo, MsalAuthenticationTemplate as ho } from "@azure/msal-react";
29
29
  import Ee from "dompurify";
30
30
  import { saveAs as On } from "file-saver";
31
- import { useForm as _n, Controller as Ze, FormProvider as ho } from "react-hook-form";
32
- import { zodResolver as fo } from "@hookform/resolvers/zod";
33
- import mo, { createPortal as Kn } from "react-dom";
34
- import { useSortable as po } from "@dnd-kit/sortable";
35
- import go from "eventemitter3";
36
- import { Resizable as yo } from "re-resizable";
37
- import wo from "react-draggable";
38
- import vo from "mark.js";
39
- import { ErrorBoundary as Co } from "react-error-boundary";
40
- import { locizePlugin as bo } from "locize";
41
- import So from "i18next-locize-backend";
42
- import { interpolate as Ao } from "i18next-locize-backend/dist/commonjs/utils";
31
+ import { useForm as _n, Controller as Ze, FormProvider as fo } from "react-hook-form";
32
+ import { zodResolver as mo } from "@hookform/resolvers/zod";
33
+ import po, { createPortal as Kn } from "react-dom";
34
+ import { useSortable as go } from "@dnd-kit/sortable";
35
+ import yo from "eventemitter3";
36
+ import { Resizable as wo } from "re-resizable";
37
+ import vo from "react-draggable";
38
+ import Co from "mark.js";
39
+ import { ErrorBoundary as bo } from "react-error-boundary";
40
+ import { locizePlugin as So } from "locize";
41
+ import Ao from "i18next-locize-backend";
42
+ import { interpolate as Po } from "i18next-locize-backend/dist/commonjs/utils";
43
43
  import "react-grid-layout/css/styles.css";
44
44
  import "@deviceinsight/ng-ui-components/style.css";
45
- function Po() {
46
- W.extend(eo), W.extend(Ja), W.extend(no), W.extend(to);
45
+ function xo() {
46
+ W.extend(to), W.extend(eo), W.extend(so), W.extend(no);
47
47
  }
48
- const xo = () => {
49
- _s(A.getAppName()), Ks.initializeThemeConfiguration(), A.getErrorMessageAutocloseTimeout() && Ya({
50
- autoClose: A.getErrorMessageAutocloseTimeout() ?? void 0
48
+ const To = () => {
49
+ _s(P.getAppName()), Ks.initializeThemeConfiguration(), P.getErrorMessageAutocloseTimeout() && Xa({
50
+ autoClose: P.getErrorMessageAutocloseTimeout() ?? void 0
51
51
  });
52
- const e = A.getCustomStyleConfiguration();
52
+ const e = P.getCustomStyleConfiguration();
53
53
  e && qe.setStyleCustomizations(e);
54
54
  };
55
- async function To() {
56
- const e = await Eo() ?? {};
57
- await No(e), await A.syncWithBackend(e), xo();
58
- }
59
55
  async function Eo() {
56
+ const e = await No() ?? {};
57
+ await Ro(e), await P.syncWithBackend(e), To();
58
+ }
59
+ async function No() {
60
60
  try {
61
61
  return await va();
62
62
  } catch (e) {
63
63
  console.warn("UI configuration not available", e);
64
64
  }
65
65
  }
66
- async function No(e) {
66
+ async function Ro(e) {
67
67
  const t = "REACT_APP_TENANT_CONFIG_URL";
68
68
  e[t] && await js({
69
69
  [t]: e[t]
70
70
  });
71
71
  }
72
- async function Ro() {
72
+ async function Io() {
73
73
  window.runtimeEnv = Ie(
74
74
  Hs(),
75
- await Io() ?? {},
75
+ await Do() ?? {},
76
76
  window.runtimeEnv ?? {},
77
77
  window.tenantRuntimeEnv ?? {}
78
78
  );
79
79
  }
80
- async function Io() {
80
+ async function Do() {
81
81
  try {
82
82
  return (await rt.get("/runtimeEnv.json", {
83
83
  responseType: "json"
@@ -89,29 +89,29 @@ async function Io() {
89
89
  function ko() {
90
90
  at(async () => {
91
91
  window.runtimeEnv = Ie(
92
- await Do() ?? {},
93
92
  await Lo() ?? {},
93
+ await Mo() ?? {},
94
94
  window.runtimeEnv ?? {}
95
95
  ), Ys(window.runtimeEnv, !0), Xs.getState().setGoogleMapsApiKey(window.runtimeEnv.REACT_APP_GOOGLE_MAPS_API_KEY);
96
96
  });
97
97
  }
98
- async function Do() {
98
+ async function Lo() {
99
99
  try {
100
100
  return (await Ca().get("../runtimeSecrets.json")).data;
101
101
  } catch (e) {
102
102
  console.error("Runtime secrets not available", e);
103
103
  }
104
104
  }
105
- async function Lo() {
105
+ async function Mo() {
106
106
  try {
107
107
  return await ba();
108
108
  } catch (e) {
109
109
  console.warn("UI secrets not available", e);
110
110
  }
111
111
  }
112
- function Mo() {
112
+ function Vo() {
113
113
  return rt.create({
114
- baseURL: A.getApiBaseUrl(),
114
+ baseURL: P.getApiBaseUrl(),
115
115
  headers: {
116
116
  "Content-Type": "application/json; charset=utf-8",
117
117
  Accept: "application/json"
@@ -121,8 +121,8 @@ function Mo() {
121
121
  })
122
122
  });
123
123
  }
124
- async function Vo() {
125
- const e = Mo();
124
+ async function Uo() {
125
+ const e = Vo();
126
126
  Bs(e), wa(e);
127
127
  const t = await Gs();
128
128
  if (t) {
@@ -136,8 +136,8 @@ async function Vo() {
136
136
  } else
137
137
  qs();
138
138
  }
139
- async function mu() {
140
- await Ro(), Po(), await Vo(), await To(), ko(), Xa(w, G);
139
+ async function gu() {
140
+ await Io(), xo(), await Uo(), await Eo(), ko(), Za(w, G);
141
141
  try {
142
142
  z.isInitialized || await z.use(Os).init({
143
143
  fallbackLng: "en",
@@ -150,7 +150,7 @@ async function mu() {
150
150
  console.error(e);
151
151
  }
152
152
  }
153
- const Uo = () => ({
153
+ const Fo = () => ({
154
154
  name: "",
155
155
  clientSecret: "",
156
156
  revocationUri: "",
@@ -164,8 +164,8 @@ const Uo = () => ({
164
164
  uiCallbackUri: "",
165
165
  jwksUri: ""
166
166
  }), Hn = ({ children: e }) => {
167
- const [t, s] = g(!1), [r, a] = g(null), o = (l) => {
168
- s(!0), a(l || Uo());
167
+ const [t, s] = p(!1), [r, a] = p(null), o = (l) => {
168
+ s(!0), a(l || Fo());
169
169
  }, i = () => {
170
170
  s(!1), a(null);
171
171
  };
@@ -182,7 +182,7 @@ const Uo = () => ({
182
182
  }
183
183
  );
184
184
  };
185
- function Fo() {
185
+ function Oo() {
186
186
  return Sa().then((e) => (e.forEach((t) => {
187
187
  t.entityTargets.forEach((s) => {
188
188
  switch (s) {
@@ -208,76 +208,88 @@ function Ce(e, { key: t, type: s }) {
208
208
  type: s
209
209
  });
210
210
  }
211
- async function Oo() {
212
- return Q(["READ_ASSET_GROUP_DEFINITION"]) ? await Aa() : [];
213
- }
214
211
  async function _o() {
215
- return Q(["READ_LOCALE"]) ? await Pa() : [];
212
+ return X(["READ_ASSET_GROUP_DEFINITION"]) ? await Aa() : [];
213
+ }
214
+ async function Ko() {
215
+ return X(["READ_LOCALE"]) ? await xa() : [];
216
216
  }
217
217
  async function Ht() {
218
- return Q(["READ_PROPERTY"]) ? await Fo() : [];
218
+ return X(["READ_PROPERTY"]) ? await Oo() : [];
219
+ }
220
+ async function Ho() {
221
+ return X(["READ_ASSET_DEFINITION"]) ? await Pa() : [];
219
222
  }
220
223
  const Bn = ({ children: e }) => {
221
- const [t, s] = g(!1), [r, a] = g([]), [o, i] = g([]), [l, u] = g([]), d = I(
222
- () => Ht().then((m) => (a(m), m)).catch((m) => (console.error("failed to fetch properties", m), [])),
224
+ const [t, s] = p(!1), [r, a] = p([]), [o, i] = p([]), [l, u] = p([]), [d, c] = p([]), f = I(
225
+ () => Ht().then((v) => (a(v), v)).catch((v) => (console.error("failed to fetch properties", v), [])),
223
226
  []
224
- ), c = I(async () => {
227
+ ), h = I(async () => {
225
228
  try {
226
- const m = await Oo();
227
- return i(m), Dt(m), Lt(null), m;
228
- } catch (m) {
229
- return console.error("failed to fetch asset group definitions", m), [];
229
+ const v = await _o();
230
+ return u(v), kt(v), Lt(null), v;
231
+ } catch (v) {
232
+ return console.error("failed to fetch asset group definitions", v), [];
230
233
  }
231
- }, []), h = I(() => {
234
+ }, []), m = I(async () => {
235
+ try {
236
+ const v = await Ho();
237
+ return i(v), v;
238
+ } catch (v) {
239
+ return console.error("failed to fetch asset definitions", v), [];
240
+ }
241
+ }, []), C = I(() => {
232
242
  Promise.all([
233
243
  Ht(),
234
- _o().catch((v) => (console.error("failed to fetch locales", v), []))
235
- ]).then((v) => {
236
- const y = v[0], b = v[1];
237
- a(y), u(b), s(!0);
238
- });
239
- const m = c();
240
- Lt(m);
241
- }, [c]);
242
- function f() {
243
- t && (s(!1), a([]), i([]), u([]), Dt([]));
244
+ Ko().catch((b) => (console.error("failed to fetch locales", b), []))
245
+ ]).then((b) => {
246
+ const A = b[0], D = b[1];
247
+ a(A), c(D), s(!0);
248
+ }), m();
249
+ const v = h();
250
+ Lt(v);
251
+ }, [h, m]);
252
+ function y() {
253
+ t && (s(!1), a([]), i([]), u([]), c([]), kt([]));
244
254
  }
245
255
  return /* @__PURE__ */ n(
246
- ke.Provider,
256
+ De.Provider,
247
257
  {
248
258
  value: {
249
259
  initialFetchingComplete: t,
250
260
  properties: r,
251
- assetGroupDefinitions: o,
252
- locales: l,
253
- resetGlobalResources: f,
254
- loadGlobalResources: h,
255
- reloadProperties: d,
256
- reloadAssetGroupDefinitions: c
261
+ assetDefinitions: o,
262
+ assetGroupDefinitions: l,
263
+ locales: d,
264
+ resetGlobalResources: y,
265
+ loadGlobalResources: C,
266
+ reloadProperties: f,
267
+ reloadAssetDefinitions: m,
268
+ reloadAssetGroupDefinitions: h
257
269
  },
258
270
  children: e
259
271
  }
260
272
  );
261
273
  }, Gn = ({ children: e }) => {
262
- const [t, s] = g(Mt), [r, a] = g(he), [o, i] = g(!1), [l, u] = g(!1), [d, c] = g(
263
- A.getDefaultSearchMode()
264
- ), [h, f] = g(), m = I(
265
- (b, C, P) => {
266
- s(b), a(C), i(!!C), u(!1), P && f(P), Vt(C.locale), Ut(C.authorities);
274
+ const [t, s] = p(Mt), [r, a] = p(he), [o, i] = p(!1), [l, u] = p(!1), [d, c] = p(
275
+ P.getDefaultSearchMode()
276
+ ), [f, h] = p(), m = I(
277
+ (v, b, A) => {
278
+ s(v), a(b), i(!!b), u(!1), A && h(A), Vt(b.locale), Ut(b.authorities);
267
279
  },
268
280
  []
269
281
  );
270
282
  S(() => {
271
283
  r?.id && gt("uiConfigurations/searchmode").then(c);
272
284
  }, [r?.id]);
273
- function v() {
274
- s(Mt), a(he), i(!1), u(!0), f(fn), Vt(he.locale), Ut(he.authorities);
285
+ function C() {
286
+ s(Mt), a(he), i(!1), u(!0), h(fn), Vt(he.locale), Ut(he.authorities);
275
287
  }
276
- function y(b) {
277
- return xa(b).then(() => {
278
- f(b);
279
- }).catch((C) => {
280
- console.error("failed to write pagination settings", C);
288
+ function y(v) {
289
+ return Ta(v).then(() => {
290
+ h(v);
291
+ }).catch((b) => {
292
+ console.error("failed to write pagination settings", b);
281
293
  });
282
294
  }
283
295
  return /* @__PURE__ */ n(
@@ -288,9 +300,9 @@ const Bn = ({ children: e }) => {
288
300
  user: r,
289
301
  authenticated: o,
290
302
  afterSignout: l,
291
- paginationSettings: h,
303
+ paginationSettings: f,
292
304
  setAuthenticatedUser: m,
293
- resetAuthenticatedUser: v,
305
+ resetAuthenticatedUser: C,
294
306
  writePaginationSettings: y,
295
307
  defaultSearchMode: d
296
308
  },
@@ -299,29 +311,29 @@ const Bn = ({ children: e }) => {
299
311
  );
300
312
  };
301
313
  function $n() {
302
- const { user: e, resetAuthenticatedUser: t } = x(M), { instance: s } = ie(), [r, a] = g([]), [o, i] = g(!1), [l, u] = g(!1), [d, c] = g(!1), [h, f] = g(0), m = I(
303
- async (y, b) => (pe() ? await it(y, s) : await ot(y, b), Promise.resolve()),
314
+ const { user: e, resetAuthenticatedUser: t } = x(M), { instance: s } = ie(), [r, a] = p([]), [o, i] = p(!1), [l, u] = p(!1), [d, c] = p(!1), [f, h] = p(0), m = I(
315
+ async (y, v) => (pe() ? await it(y, s) : await ot(y, v), Promise.resolve()),
304
316
  [s]
305
317
  );
306
318
  S(() => {
307
319
  nr(a);
308
320
  }, []);
309
- const v = I(
321
+ const C = I(
310
322
  (y) => {
311
- Ko(y) ? m(e, t) : Ho(y) ? (X(
323
+ Bo(y) ? m(e, t) : Go(y) ? (Z(
312
324
  /* @__PURE__ */ n(w, { i18nKey: "axios.errors.rateLimitError", children: "Too many attempts to refresh authorization token." })
313
- ), m(e, t), console.error("Renew token request failed (RateLimitError)", y)) : Bo(y) ? (m(e, t), console.error("Renew token request failed (AuthTokenRefreshError)", y)) : Go(y) ? console.error("timeout error: node.js service responded with the following error", y) : $o(e, y) && !d ? (c(!0), X(
325
+ ), m(e, t), console.error("Renew token request failed (RateLimitError)", y)) : $o(y) ? (m(e, t), console.error("Renew token request failed (AuthTokenRefreshError)", y)) : zo(y) ? console.error("timeout error: node.js service responded with the following error", y) : Wo(e, y) && !d ? (c(!0), Z(
314
326
  /* @__PURE__ */ n(w, { i18nKey: "axios.errors.authoritiesMissing", children: "Missing authorities. Please contact your administrator." }),
315
327
  {
316
328
  onClose: () => c(!1),
317
329
  toastId: "authoritiesMissing"
318
330
  }
319
- )) : zo(y) && !o ? (i(!0), X(
331
+ )) : qo(y) && !o ? (i(!0), Z(
320
332
  /* @__PURE__ */ n(w, { i18nKey: "axios.errors.payload", children: "Request/File is larger than limits defined by server." }),
321
333
  {
322
334
  onClose: () => i(!1)
323
335
  }
324
- )) : Wo(y) && !l && (u(!0), X(
336
+ )) : jo(y) && !l && (u(!0), Z(
325
337
  /* @__PURE__ */ n(w, { i18nKey: "axios.errors.network", children: "Network error. Check your internet connection." }),
326
338
  {
327
339
  onClose: () => u(!1),
@@ -332,31 +344,31 @@ function $n() {
332
344
  [d, l, o, e, t, m]
333
345
  );
334
346
  return S(() => {
335
- let y = h;
347
+ let y = f;
336
348
  for (; y < r.length; )
337
- v(r[y]), y += 1;
338
- h !== y && f(y);
339
- }, [r, h, v]), null;
349
+ C(r[y]), y += 1;
350
+ f !== y && h(y);
351
+ }, [r, f, C]), null;
340
352
  }
341
- function Ko({ error: e }) {
353
+ function Bo({ error: e }) {
342
354
  return e && e.response && e.response.status === 401;
343
355
  }
344
- function Ho({ error: e }) {
356
+ function Go({ error: e }) {
345
357
  return e && e.response && e.response.status === 429 && e.message === "REFRESH_TOKEN_ERROR";
346
358
  }
347
- function Bo({ error: e }) {
359
+ function $o({ error: e }) {
348
360
  return e && e.message === "REFRESH_TOKEN_ERROR";
349
361
  }
350
- function Go({ error: e }) {
362
+ function zo({ error: e }) {
351
363
  return e && e.code === "ECONNABORTED";
352
364
  }
353
- function $o(e, { error: t }) {
365
+ function Wo(e, { error: t }) {
354
366
  return e === he || e.state === "TERMS_ACCEPTANCE_PENDING" ? !1 : t && t.response && t.response.status === 403;
355
367
  }
356
- function zo({ error: e }) {
368
+ function qo({ error: e }) {
357
369
  return e && e.response && e.response.status === 413;
358
370
  }
359
- function Wo({ error: e }) {
371
+ function jo({ error: e }) {
360
372
  return e && e.message === "Network Error";
361
373
  }
362
374
  const zn = ({ eula: e }) => /* @__PURE__ */ n(
@@ -374,7 +386,7 @@ const zn = ({ eula: e }) => /* @__PURE__ */ n(
374
386
  children: /* @__PURE__ */ n(w, { i18nKey: "eula.title", children: "End-User License Agreement" })
375
387
  }
376
388
  ), Bt = ({ apiVersion: e, eula: t, contents: s, isTestTenant: r }) => {
377
- const a = (/* @__PURE__ */ new Date()).getFullYear(), o = new RegExp(/({{eula}})/, "gi"), i = lt(), u = s.replace(/{{year}}/g, `${a}`).replace(/{{guiVersion}}/g, r && i ? i : "").replace(/{{gitCommitSha}}/g, A.getGitCommitShaShort() || "").replace(/{{apiVersion}}/g, e || "").split(o);
389
+ const a = (/* @__PURE__ */ new Date()).getFullYear(), o = new RegExp(/({{eula}})/, "gi"), i = lt(), u = s.replace(/{{year}}/g, `${a}`).replace(/{{guiVersion}}/g, r && i ? i : "").replace(/{{gitCommitSha}}/g, P.getGitCommitShaShort() || "").replace(/{{apiVersion}}/g, e || "").split(o);
378
390
  return /* @__PURE__ */ n("footer", { children: u.map(
379
391
  (d, c) => d.match(o) ? t && /* @__PURE__ */ n(zn, { eula: t }, c) : /* @__PURE__ */ n(
380
392
  "span",
@@ -386,22 +398,22 @@ const zn = ({ eula: e }) => /* @__PURE__ */ n(
386
398
  c
387
399
  )
388
400
  ) });
389
- }, qo = ({ label: e, version: t }) => t ? /* @__PURE__ */ p("span", { className: "version-tag", children: [
401
+ }, Yo = ({ label: e, version: t }) => t ? /* @__PURE__ */ g("span", { className: "version-tag", children: [
390
402
  e,
391
403
  " ",
392
- /* @__PURE__ */ p("span", { children: [
404
+ /* @__PURE__ */ g("span", { children: [
393
405
  "v",
394
406
  t
395
407
  ] })
396
- ] }) : null, jo = ({ eula: e, isTestTenant: t }) => {
397
- const s = (/* @__PURE__ */ new Date()).getFullYear(), r = lt(), a = A.getGitCommitShaShort();
398
- return /* @__PURE__ */ p("footer", { children: [
408
+ ] }) : null, Xo = ({ eula: e, isTestTenant: t }) => {
409
+ const s = (/* @__PURE__ */ new Date()).getFullYear(), r = lt(), a = P.getGitCommitShaShort();
410
+ return /* @__PURE__ */ g("footer", { children: [
399
411
  "©  Device Insight GmbH · ",
400
412
  s,
401
- /* @__PURE__ */ p("div", { className: "footer-version", children: [
402
- A.getAppName(),
403
- t && r && /* @__PURE__ */ n(qo, { label: "UI", version: r }),
404
- a && /* @__PURE__ */ p("span", { className: "version-tag", children: [
413
+ /* @__PURE__ */ g("div", { className: "footer-version", children: [
414
+ P.getAppName(),
415
+ t && r && /* @__PURE__ */ n(Yo, { label: "UI", version: r }),
416
+ a && /* @__PURE__ */ g("span", { className: "version-tag", children: [
405
417
  "SHA ",
406
418
  /* @__PURE__ */ n("span", { children: a })
407
419
  ] })
@@ -409,12 +421,12 @@ const zn = ({ eula: e }) => /* @__PURE__ */ n(
409
421
  e && /* @__PURE__ */ n(zn, { eula: e })
410
422
  ] });
411
423
  };
412
- function Yo({ showApiVersion: e }) {
413
- const [t, s] = g(null), [r, a] = g(null), o = sr(), i = mn(), { authenticated: l } = x(M);
424
+ function Zo({ showApiVersion: e }) {
425
+ const [t, s] = p(null), [r, a] = p(null), o = sr(), i = mn(), { authenticated: l } = x(M);
414
426
  S(() => {
415
427
  (async () => {
416
428
  if (e) {
417
- const c = await Ta();
429
+ const c = await Ea();
418
430
  o.current && s(c);
419
431
  }
420
432
  })();
@@ -424,20 +436,20 @@ function Yo({ showApiVersion: e }) {
424
436
  const c = await Ae(i.toLowerCase());
425
437
  o.current && a(c);
426
438
  } catch {
427
- if (i !== A.getFallbackLocale()) {
428
- const c = await Ae(A.getFallbackLocale().toLowerCase());
439
+ if (i !== P.getFallbackLocale()) {
440
+ const c = await Ae(P.getFallbackLocale().toLowerCase());
429
441
  a(c);
430
442
  }
431
443
  }
432
444
  })();
433
445
  }, [i, o]);
434
- const u = A.getPublicAppFooter(), d = A.getAppFooter();
446
+ const u = P.getPublicAppFooter(), d = P.getAppFooter();
435
447
  return !l && u ? /* @__PURE__ */ n(
436
448
  Bt,
437
449
  {
438
450
  eula: r,
439
451
  contents: u,
440
- isTestTenant: A.isTestTenant(),
452
+ isTestTenant: P.isTestTenant(),
441
453
  apiVersion: t
442
454
  }
443
455
  ) : d || u ? /* @__PURE__ */ n(
@@ -446,27 +458,27 @@ function Yo({ showApiVersion: e }) {
446
458
  eula: r,
447
459
  apiVersion: t,
448
460
  contents: d || u || "",
449
- isTestTenant: A.isTestTenant()
461
+ isTestTenant: P.isTestTenant()
450
462
  }
451
- ) : /* @__PURE__ */ n(jo, { eula: r, isTestTenant: A.isTestTenant() });
463
+ ) : /* @__PURE__ */ n(Xo, { eula: r, isTestTenant: P.isTestTenant() });
452
464
  }
453
- const Ue = ct("Footer")(Yo);
454
- function Xo() {
455
- const [, e] = g(!1);
465
+ const Ue = ct("Footer")(Zo);
466
+ function Qo() {
467
+ const [, e] = p(!1);
456
468
  S(() => {
457
469
  rr(() => e((t) => !t));
458
470
  }, []);
459
471
  }
460
- function Zo({ centered: e, linkToStartPage: t }) {
461
- Xo();
472
+ function Jo({ centered: e, linkToStartPage: t }) {
473
+ Qo();
462
474
  const s = q();
463
475
  function r() {
464
- t && Z().then((o) => s.push(o));
476
+ t && Q().then((o) => s.push(o));
465
477
  }
466
478
  const a = e ? /* @__PURE__ */ n(
467
479
  "img",
468
480
  {
469
- src: A.getLogo() || Ft,
481
+ src: P.getLogo() || Ft,
470
482
  alt: "logo",
471
483
  style: {
472
484
  maxWidth: 230
@@ -475,7 +487,7 @@ function Zo({ centered: e, linkToStartPage: t }) {
475
487
  ) : /* @__PURE__ */ n(
476
488
  "img",
477
489
  {
478
- src: A.getLogo() || Ft,
490
+ src: P.getLogo() || Ft,
479
491
  alt: "logo",
480
492
  style: {
481
493
  maxHeight: 40
@@ -484,14 +496,14 @@ function Zo({ centered: e, linkToStartPage: t }) {
484
496
  );
485
497
  return /* @__PURE__ */ n("div", { className: "di logo", onClick: r, children: a });
486
498
  }
487
- const we = ct("Logo")(Zo);
488
- class Qo extends yt {
499
+ const we = ct("Logo")(Jo);
500
+ class ei extends yt {
489
501
  render() {
490
502
  const { isLoading: t, success: s, tokenExpired: r } = this.props;
491
- return /* @__PURE__ */ p("div", { className: "di login", children: [
492
- /* @__PURE__ */ n("div", { className: "wrap", children: /* @__PURE__ */ p("div", { className: "hold", children: [
503
+ return /* @__PURE__ */ g("div", { className: "di login", children: [
504
+ /* @__PURE__ */ n("div", { className: "wrap", children: /* @__PURE__ */ g("div", { className: "hold", children: [
493
505
  /* @__PURE__ */ n(we, { centered: !0, linkToStartPage: !0 }),
494
- /* @__PURE__ */ p(ge, { show: t, children: [
506
+ /* @__PURE__ */ g(ge, { show: t, children: [
495
507
  !t && s && /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n("div", { className: "msg", children: /* @__PURE__ */ n("span", { className: "success", children: /* @__PURE__ */ n(w, { i18nKey: "email.change.landing.page", children: "Your email has been changed successfully" }) }) }) }),
496
508
  !t && r && /* @__PURE__ */ n("div", { className: "error", children: /* @__PURE__ */ n(w, { i18nKey: "changeEmail.tokenExpired", children: "Your change email link has expired" }) }),
497
509
  !t && /* @__PURE__ */ n("div", { className: "forgot", children: /* @__PURE__ */ n(_, { to: "/signin", children: /* @__PURE__ */ n(w, { i18nKey: "page.back.login", children: "Back to login" }) }) })
@@ -501,7 +513,7 @@ class Qo extends yt {
501
513
  ] });
502
514
  }
503
515
  }
504
- class Jo extends yt {
516
+ class ti extends yt {
505
517
  constructor() {
506
518
  super(...arguments), this.state = {
507
519
  isLoading: !0,
@@ -527,7 +539,7 @@ class Jo extends yt {
527
539
  }
528
540
  componentDidMount() {
529
541
  const { token: t } = this.getSearchParams();
530
- typeof t == "string" && Ea(t).then(() => {
542
+ typeof t == "string" && Na(t).then(() => {
531
543
  this.setState({
532
544
  success: !0,
533
545
  isLoading: !1
@@ -536,14 +548,14 @@ class Jo extends yt {
536
548
  }
537
549
  render() {
538
550
  const { isLoading: t, success: s, tokenExpired: r } = this.state;
539
- return /* @__PURE__ */ n(Qo, { isLoading: t, success: s, tokenExpired: r });
551
+ return /* @__PURE__ */ n(ei, { isLoading: t, success: s, tokenExpired: r });
540
552
  }
541
553
  }
542
- const ei = bt(Jo), ti = (e, t) => e.email && e.email.length && !ar(e.email) ? t("forgotPassword.validation.email.format", {
554
+ const ni = bt(ti), si = (e, t) => e.email && e.email.length && !ar(e.email) ? t("forgotPassword.validation.email.format", {
543
555
  defaultValue: "Please enter a valid email"
544
- }) : "", ni = ({ onSubmit: e, showFeedback: t, feedbackType: s, feedbackMessage: r }) => {
545
- const { t: a } = G(), [o, i] = g(""), [l, u] = g(""), [d, c] = g(!1), h = o !== "" && !l, f = (v) => {
546
- i(v), u(ti(v, a));
556
+ }) : "", ri = ({ onSubmit: e, showFeedback: t, feedbackType: s, feedbackMessage: r }) => {
557
+ const { t: a } = G(), [o, i] = p(""), [l, u] = p(""), [d, c] = p(!1), f = o !== "" && !l, h = (C) => {
558
+ i(C), u(si(C, a));
547
559
  }, m = () => {
548
560
  c(!0);
549
561
  try {
@@ -552,15 +564,15 @@ const ei = bt(Jo), ti = (e, t) => e.email && e.email.length && !ar(e.email) ? t(
552
564
  c(!1);
553
565
  }
554
566
  };
555
- return /* @__PURE__ */ p("div", { className: "di login", children: [
556
- /* @__PURE__ */ n("div", { className: "wrap", children: /* @__PURE__ */ p("div", { className: "hold", children: [
567
+ return /* @__PURE__ */ g("div", { className: "di login", children: [
568
+ /* @__PURE__ */ n("div", { className: "wrap", children: /* @__PURE__ */ g("div", { className: "hold", children: [
557
569
  /* @__PURE__ */ n(we, { centered: !0 }),
558
- /* @__PURE__ */ p("div", { className: "forgotpasswordinput", children: [
570
+ /* @__PURE__ */ g("div", { className: "forgotpasswordinput", children: [
559
571
  /* @__PURE__ */ n(
560
572
  dt,
561
573
  {
562
574
  value: o,
563
- onChange: f,
575
+ onChange: h,
564
576
  error: l,
565
577
  className: "emailInput",
566
578
  placeholder: a("user.email", {
@@ -579,7 +591,7 @@ const ei = bt(Jo), ti = (e, t) => e.email && e.email.length && !ar(e.email) ? t(
579
591
  type: "submit",
580
592
  className: "send",
581
593
  onClick: m,
582
- disabled: !h || d,
594
+ disabled: !f || d,
583
595
  children: /* @__PURE__ */ n(w, { i18nKey: "user.password.reset.send", children: "Send" })
584
596
  }
585
597
  )
@@ -589,15 +601,15 @@ const ei = bt(Jo), ti = (e, t) => e.email && e.email.length && !ar(e.email) ? t(
589
601
  ] }) }),
590
602
  /* @__PURE__ */ n(Ue, {})
591
603
  ] });
592
- }, si = () => {
593
- const { t: e } = G(), t = q(), [s, r] = g(!1), [a, o] = g(""), [i, l] = g("");
604
+ }, ai = () => {
605
+ const { t: e } = G(), t = q(), [s, r] = p(!1), [a, o] = p(""), [i, l] = p("");
594
606
  return /* @__PURE__ */ n(
595
- ni,
607
+ ri,
596
608
  {
597
609
  showFeedback: s,
598
610
  feedbackType: a,
599
611
  feedbackMessage: i,
600
- onSubmit: (d) => Na(d).then(() => {
612
+ onSubmit: (d) => Ra(d).then(() => {
601
613
  setTimeout(() => t.push("/signin"), 5 * 1e3), r(!0), o("success"), l(
602
614
  e("forgotPassword.info", {
603
615
  defaultValue: "A link will be sent to your E-Mail to change your password"
@@ -612,8 +624,8 @@ const ei = bt(Jo), ti = (e, t) => e.email && e.email.length && !ar(e.email) ? t(
612
624
  })
613
625
  }
614
626
  );
615
- }, ri = "imprint", ai = "privacy";
616
- class oi extends F.Component {
627
+ }, oi = "imprint", ii = "privacy";
628
+ class li extends F.Component {
617
629
  constructor() {
618
630
  super(...arguments), this.state = {
619
631
  extHtml: "",
@@ -624,7 +636,7 @@ class oi extends F.Component {
624
636
  const { location: t } = this.props, s = t.pathname.split("/"), r = s[s.length - 1];
625
637
  if (r !== "imprint" && r !== "privacy")
626
638
  throw new Error("Wrong legalPage parameter. Should be 'imprint' or 'privacy'. Was " + r);
627
- Ra(r).then((a) => {
639
+ Ia(r).then((a) => {
628
640
  this.setState({
629
641
  extHtml: a,
630
642
  pageType: r
@@ -639,12 +651,12 @@ class oi extends F.Component {
639
651
  getPageTypeTitle() {
640
652
  const { pageType: t } = this.state;
641
653
  switch (t) {
642
- case ri:
654
+ case oi:
643
655
  return {
644
656
  id: "legal.page.imprint",
645
657
  defaultValue: "Imprint / legal"
646
658
  };
647
- case ai:
659
+ case ii:
648
660
  return {
649
661
  id: "legal.page.privacy",
650
662
  defaultValue: "Privacy statement"
@@ -658,8 +670,8 @@ class oi extends F.Component {
658
670
  }
659
671
  render() {
660
672
  const { extHtml: t } = this.state;
661
- return /* @__PURE__ */ p("div", { className: "di legal", children: [
662
- /* @__PURE__ */ n(Za, { title: this.getPageTypeTitle() }),
673
+ return /* @__PURE__ */ g("div", { className: "di legal", children: [
674
+ /* @__PURE__ */ n(Qa, { title: this.getPageTypeTitle() }),
663
675
  /* @__PURE__ */ n("hr", {}),
664
676
  /* @__PURE__ */ n(
665
677
  "div",
@@ -674,7 +686,7 @@ class oi extends F.Component {
674
686
  ] });
675
687
  }
676
688
  }
677
- const Wn = bt(oi);
689
+ const Wn = bt(li);
678
690
  function Fe(e, t, s, r, a) {
679
691
  return a(e, t, {
680
692
  size: r.size
@@ -683,7 +695,7 @@ function Fe(e, t, s, r, a) {
683
695
  async function Oe() {
684
696
  let e;
685
697
  try {
686
- e = await Ia();
698
+ e = await Da();
687
699
  } catch {
688
700
  e = fn;
689
701
  }
@@ -699,7 +711,7 @@ async function qn(e, t, s, r) {
699
711
  throw console.error("signin failed", a), ut(), a;
700
712
  }
701
713
  }
702
- const ii = (e, t) => {
714
+ const ci = (e, t) => {
703
715
  switch (e) {
704
716
  case "MINLENGTH":
705
717
  return t("form.passwordField.error.minLength", { defaultValue: "Password is too short" });
@@ -714,9 +726,9 @@ const ii = (e, t) => {
714
726
  default:
715
727
  return;
716
728
  }
717
- }, li = ({ value: e, onChange: t, onBlur: s, placeholder: r, error: a }) => {
729
+ }, di = ({ value: e, onChange: t, onBlur: s, placeholder: r, error: a }) => {
718
730
  const { t: o } = G();
719
- return /* @__PURE__ */ n(or, { error: ii(a, o), children: /* @__PURE__ */ n(
731
+ return /* @__PURE__ */ n(or, { error: ci(a, o), children: /* @__PURE__ */ n(
720
732
  "input",
721
733
  {
722
734
  value: e,
@@ -745,7 +757,7 @@ const ii = (e, t) => {
745
757
  if (!/.*\W/.test(e) && !e.includes("_"))
746
758
  return Qn;
747
759
  };
748
- function ci(e) {
760
+ function ui(e) {
749
761
  return [
750
762
  es,
751
763
  ts,
@@ -754,15 +766,15 @@ function ci(e) {
754
766
  rs
755
767
  ].map((t) => t(e)).filter(yn);
756
768
  }
757
- const di = (e, t, s) => {
769
+ const hi = (e, t, s) => {
758
770
  if (e !== t)
759
771
  return s("setPassword.formFields.confirmPassword.mustMatch", {
760
772
  defaultValue: "Passwords do not match"
761
773
  });
762
774
  };
763
- function ui({ password: e }) {
764
- const { t } = G(), s = ci(e);
765
- return /* @__PURE__ */ p("ul", { className: "pw-policy", children: [
775
+ function fi({ password: e }) {
776
+ const { t } = G(), s = ui(e);
777
+ return /* @__PURE__ */ g("ul", { className: "pw-policy", children: [
766
778
  /* @__PURE__ */ n(
767
779
  "li",
768
780
  {
@@ -799,7 +811,7 @@ function ui({ password: e }) {
799
811
  className: V({
800
812
  completed: !s.includes(Qn)
801
813
  }),
802
- children: /* @__PURE__ */ p(
814
+ children: /* @__PURE__ */ g(
803
815
  ye,
804
816
  {
805
817
  content: /* @__PURE__ */ n(w, { i18nKey: "form.passwordField.specialsAsciiOnly", children: "Without language specials" }),
@@ -832,7 +844,7 @@ function ui({ password: e }) {
832
844
  )
833
845
  ] });
834
846
  }
835
- const hi = ({ tokenError: e, requestFailed: t, username: s, onSubmit: r }) => {
847
+ const mi = ({ tokenError: e, requestFailed: t, username: s, onSubmit: r }) => {
836
848
  const { t: a } = G(), {
837
849
  handleSubmit: o,
838
850
  formState: { isSubmitting: i },
@@ -846,14 +858,14 @@ const hi = ({ tokenError: e, requestFailed: t, username: s, onSubmit: r }) => {
846
858
  console.warn("Validation error", c);
847
859
  })();
848
860
  }
849
- return /* @__PURE__ */ n("form", { className: "di login", onSubmit: (c) => c.preventDefault(), children: /* @__PURE__ */ n("div", { className: "wrap", children: /* @__PURE__ */ p("div", { className: "hold", children: [
861
+ return /* @__PURE__ */ n("form", { className: "di login", onSubmit: (c) => c.preventDefault(), children: /* @__PURE__ */ n("div", { className: "wrap", children: /* @__PURE__ */ g("div", { className: "hold", children: [
850
862
  /* @__PURE__ */ n(we, { centered: !0 }),
851
- /* @__PURE__ */ p("div", { className: "headline", children: [
863
+ /* @__PURE__ */ g("div", { className: "headline", children: [
852
864
  /* @__PURE__ */ n(w, { i18nKey: "setPassword.username", children: "User" }),
853
865
  ": ",
854
866
  /* @__PURE__ */ n("span", { children: s })
855
867
  ] }),
856
- /* @__PURE__ */ p("div", { className: "loginpasswordinput", children: [
868
+ /* @__PURE__ */ g("div", { className: "loginpasswordinput", children: [
857
869
  /* @__PURE__ */ n(
858
870
  Ze,
859
871
  {
@@ -868,20 +880,20 @@ const hi = ({ tokenError: e, requestFailed: t, username: s, onSubmit: r }) => {
868
880
  specialChars: rs
869
881
  }
870
882
  },
871
- render: ({ field: { value: c, onChange: h, onBlur: f }, fieldState: { error: m } }) => /* @__PURE__ */ p(H, { children: [
883
+ render: ({ field: { value: c, onChange: f, onBlur: h }, fieldState: { error: m } }) => /* @__PURE__ */ g(H, { children: [
872
884
  /* @__PURE__ */ n(
873
- li,
885
+ di,
874
886
  {
875
887
  value: c,
876
- onChange: h,
877
- onBlur: f,
888
+ onChange: f,
889
+ onBlur: h,
878
890
  error: m?.message,
879
891
  placeholder: a("setPassword.formFields.password", {
880
892
  defaultValue: "New password"
881
893
  })
882
894
  }
883
895
  ),
884
- /* @__PURE__ */ n(ui, { password: c })
896
+ /* @__PURE__ */ n(fi, { password: c })
885
897
  ] })
886
898
  }
887
899
  ),
@@ -894,14 +906,14 @@ const hi = ({ tokenError: e, requestFailed: t, username: s, onSubmit: r }) => {
894
906
  required: a("setPassword.formFields.confirmPassword.mustBeSet", {
895
907
  defaultValue: "Please confirm new password"
896
908
  }),
897
- validate: (c) => di(u("password"), c, a)
909
+ validate: (c) => hi(u("password"), c, a)
898
910
  },
899
- render: ({ field: { value: c, onChange: h, onBlur: f }, fieldState: { error: m } }) => /* @__PURE__ */ n(
911
+ render: ({ field: { value: c, onChange: f, onBlur: h }, fieldState: { error: m } }) => /* @__PURE__ */ n(
900
912
  dt,
901
913
  {
902
914
  value: c,
903
- onChange: h,
904
- onBlur: f,
915
+ onChange: f,
916
+ onBlur: h,
905
917
  error: m?.message,
906
918
  type: "password",
907
919
  className: "passwordConfirmInput",
@@ -915,52 +927,52 @@ const hi = ({ tokenError: e, requestFailed: t, username: s, onSubmit: r }) => {
915
927
  /* @__PURE__ */ n("button", { className: "di button primary send", onClick: d, title: "", disabled: i, children: /* @__PURE__ */ n(w, { i18nKey: "setPassword.button.changePassword", children: "Change Password" }) })
916
928
  ] }),
917
929
  /* @__PURE__ */ n("div", { className: "msg", children: t && /* @__PURE__ */ n("div", { className: "error", children: /* @__PURE__ */ n(w, { i18nKey: "setPassword.request.failed", children: "A problem occurred while submitting your new password" }) }) }),
918
- /* @__PURE__ */ n("div", { className: "msg", children: e && /* @__PURE__ */ p("div", { children: [
919
- /* @__PURE__ */ p("div", { className: "error", children: [
930
+ /* @__PURE__ */ n("div", { className: "msg", children: e && /* @__PURE__ */ g("div", { children: [
931
+ /* @__PURE__ */ g("div", { className: "error", children: [
920
932
  e === "TOKEN_EXPIRED" && /* @__PURE__ */ n(w, { i18nKey: "setPassword.tokenExpired", children: "Your password reset link has expired" }),
921
933
  e === "TOKEN_INVALID" && /* @__PURE__ */ n(w, { i18nKey: "setPassword.tokenInvalid", children: "Your password reset link is invalid" })
922
934
  ] }),
923
935
  /* @__PURE__ */ n("div", { className: "forgot", children: /* @__PURE__ */ n(_, { to: "/forgotpassword", children: /* @__PURE__ */ n(w, { i18nKey: "setPassword.resendEmail", children: "Resend Password Reset Email" }) }) })
924
936
  ] }) })
925
937
  ] }) }) });
926
- }, fi = () => {
927
- const { setAuthenticatedUser: e } = x(M), t = q(), s = $(), [r, a] = g(null), { token: o, username: i } = re.parse(s.search.substring(1));
928
- return /* @__PURE__ */ n(hi, { username: i, tokenError: r, onSubmit: ({ password: u }) => {
938
+ }, pi = () => {
939
+ const { setAuthenticatedUser: e } = x(M), t = q(), s = $(), [r, a] = p(null), { token: o, username: i } = re.parse(s.search.substring(1));
940
+ return /* @__PURE__ */ n(mi, { username: i, tokenError: r, onSubmit: ({ password: u }) => {
929
941
  if (o) {
930
942
  if (!i)
931
943
  return console.error("change password: could not retrieve username from url"), Promise.reject();
932
944
  } else return console.error("change password: could not retrieve token from url"), Promise.reject();
933
- return Da(o, u).then(() => qn(i, u, !1, e)).then(() => t.push("/")).catch((d) => {
945
+ return La(o, u).then(() => qn(i, u, !1, e)).then(() => t.push("/")).catch((d) => {
934
946
  const c = d.response.data.message;
935
947
  if (["TOKEN_EXPIRED", "TOKEN_INVALID"].includes(c))
936
948
  a(c);
937
949
  else {
938
- const h = "change password: unhandled error while setting password:";
939
- X(`${h} ${c}`), console.error(h, d);
950
+ const f = "change password: unhandled error while setting password:";
951
+ Z(`${f} ${c}`), console.error(f, d);
940
952
  }
941
953
  });
942
954
  } });
943
955
  }, as = (e) => /^(?:[a-z0-9]+:)?\/\/.*/i.test(e);
944
- function mi({ children: e }) {
945
- const [t, s] = g(ve().aboveForm), [r, a] = g(ve().belowForm), [o, i] = g(
956
+ function gi({ children: e }) {
957
+ const [t, s] = p(ve().aboveForm), [r, a] = p(ve().belowForm), [o, i] = p(
946
958
  ve().belowLoginButton
947
- ), [l, u] = g(
959
+ ), [l, u] = p(
948
960
  ve().nextToLoginButton
949
961
  );
950
962
  return S(() => {
951
- const d = ({ position: c, element: h }) => {
963
+ const d = ({ position: c, element: f }) => {
952
964
  switch (c) {
953
965
  case "aboveForm":
954
- s(h);
966
+ s(f);
955
967
  break;
956
968
  case "belowForm":
957
- a(h);
969
+ a(f);
958
970
  break;
959
971
  case "belowLoginButton":
960
- i(h);
972
+ i(f);
961
973
  break;
962
974
  case "nextToLoginButton":
963
- u(h);
975
+ u(f);
964
976
  break;
965
977
  }
966
978
  };
@@ -978,12 +990,12 @@ function mi({ children: e }) {
978
990
  }
979
991
  );
980
992
  }
981
- const pi = () => /* @__PURE__ */ p("div", { className: "di imprint", children: [
993
+ const yi = () => /* @__PURE__ */ g("div", { className: "di imprint", children: [
982
994
  /* @__PURE__ */ n("span", { className: "link", children: /* @__PURE__ */ n(_, { to: "/legals/imprint", children: /* @__PURE__ */ n(w, { i18nKey: "legal.link.imprint", children: "Imprint / legal" }) }) }),
983
995
  /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(_, { to: "/legals/privacy", children: /* @__PURE__ */ n(w, { i18nKey: "legal.link.privacy", children: "Privacy statement" }) }) })
984
996
  ] });
985
- function gi({ onDone: e, seconds: t }) {
986
- const [s, r] = g(t);
997
+ function wi({ onDone: e, seconds: t }) {
998
+ const [s, r] = p(t);
987
999
  return S(() => {
988
1000
  const a = Date.now(), o = setInterval(() => {
989
1001
  const i = Date.now() - a;
@@ -992,17 +1004,17 @@ function gi({ onDone: e, seconds: t }) {
992
1004
  return () => {
993
1005
  clearInterval(o);
994
1006
  };
995
- }, [e, t]), s === 0 ? null : /* @__PURE__ */ p(w, { i18nKey: "signin.signinForm.countDown", count: Math.floor(s), children: [
1007
+ }, [e, t]), s === 0 ? null : /* @__PURE__ */ g(w, { i18nKey: "signin.signinForm.countDown", count: Math.floor(s), children: [
996
1008
  "Try again in ",
997
1009
  { count: Math.floor(s) },
998
1010
  " seconds."
999
1011
  ] });
1000
1012
  }
1001
- const yi = ({ authorizationServers: e }) => e && e.length ? /* @__PURE__ */ p("div", { className: "sso", children: [
1013
+ const vi = ({ authorizationServers: e }) => e && e.length ? /* @__PURE__ */ g("div", { className: "sso", children: [
1002
1014
  /* @__PURE__ */ n("div", { className: "or", children: /* @__PURE__ */ n(w, { i18nKey: "signin.signinForm.or", children: "or" }) }),
1003
- e.map((t) => /* @__PURE__ */ p("a", { href: t.authorizationUri, className: "sso-link", children: [
1004
- /* @__PURE__ */ n("span", { className: `sso-icon ${Ds(t.displayName || t.name)}` }),
1005
- /* @__PURE__ */ p("span", { className: "sso-name", children: [
1015
+ e.map((t) => /* @__PURE__ */ g("a", { href: t.authorizationUri, className: "sso-link", children: [
1016
+ /* @__PURE__ */ n("span", { className: `sso-icon ${ks(t.displayName || t.name)}` }),
1017
+ /* @__PURE__ */ g("span", { className: "sso-name", children: [
1006
1018
  /* @__PURE__ */ n(w, { i18nKey: "signin.signinForm.loginWith", children: "Login with" }),
1007
1019
  /* @__PURE__ */ n(
1008
1020
  "span",
@@ -1030,48 +1042,48 @@ const yi = ({ authorizationServers: e }) => e && e.length ? /* @__PURE__ */ p("d
1030
1042
  defaultValue: "The platform is currently not available. Please try again in a few minutes."
1031
1043
  }
1032
1044
  };
1033
- function wi({ onSubmit: e, authenticating: t, authenticationFailed: s, authenticationErrorResponseCode: r }) {
1034
- const [a, o] = g([]), [i, l] = g(!1), { t: u } = G(), d = B(null), c = B(null), h = t ? "progress" : "auto";
1045
+ function Ci({ onSubmit: e, authenticating: t, authenticationFailed: s, authenticationErrorResponseCode: r }) {
1046
+ const [a, o] = p([]), [i, l] = p(!1), { t: u } = G(), d = B(null), c = B(null), f = t ? "progress" : "auto";
1035
1047
  S(() => {
1036
- La().then(({ authorizationServers: P }) => {
1037
- o(P), l(A.hasLegalPages());
1048
+ Ma().then(({ authorizationServers: A }) => {
1049
+ o(A), l(P.hasLegalPages());
1038
1050
  }).catch(() => {
1039
- l(A.hasLegalPages());
1051
+ l(P.hasLegalPages());
1040
1052
  });
1041
1053
  }, []);
1042
- function f() {
1054
+ function h() {
1043
1055
  if (d.current && c.current) {
1044
- const P = d.current.value.trim(), D = c.current.value;
1045
- e(P, D);
1056
+ const A = d.current.value.trim(), D = c.current.value;
1057
+ e(A, D);
1046
1058
  }
1047
1059
  }
1048
1060
  function m() {
1049
- const P = Gt[r || "other"] || Gt.other;
1050
- return u(P.id, {
1051
- defaultValue: P.defaultValue
1061
+ const A = Gt[r || "other"] || Gt.other;
1062
+ return u(A.id, {
1063
+ defaultValue: A.defaultValue
1052
1064
  });
1053
1065
  }
1054
- const [v, y] = g(!1), b = I(() => {
1066
+ const [C, y] = p(!1), v = I(() => {
1055
1067
  y(!1);
1056
1068
  }, []);
1057
1069
  S(() => {
1058
1070
  r === 429 && y(!0);
1059
1071
  }, [r]);
1060
- const C = A.getAccountCreationPrinciple() === "username" ? u("signin.signinForm.username", {
1072
+ const b = P.getAccountCreationPrinciple() === "username" ? u("signin.signinForm.username", {
1061
1073
  defaultValue: "Username"
1062
1074
  }) : u("signin.signinForm.email", {
1063
1075
  defaultValue: "E-mail"
1064
1076
  });
1065
- return /* @__PURE__ */ n(mi, { children: /* @__PURE__ */ n(wn.Consumer, { children: (P) => /* @__PURE__ */ p("div", { className: "di login", style: { cursor: h }, children: [
1066
- /* @__PURE__ */ n("div", { className: "wrap", children: /* @__PURE__ */ p("div", { className: "hold", "data-testid": "form-wrapper", children: [
1077
+ return /* @__PURE__ */ n(gi, { children: /* @__PURE__ */ n(wn.Consumer, { children: (A) => /* @__PURE__ */ g("div", { className: "di login", style: { cursor: f }, children: [
1078
+ /* @__PURE__ */ n("div", { className: "wrap", children: /* @__PURE__ */ g("div", { className: "hold", "data-testid": "form-wrapper", children: [
1067
1079
  /* @__PURE__ */ n(we, { centered: !0 }),
1068
- P.aboveForm,
1069
- /* @__PURE__ */ p(
1080
+ A.aboveForm,
1081
+ /* @__PURE__ */ g(
1070
1082
  "form",
1071
1083
  {
1072
1084
  className: "di form",
1073
1085
  onSubmit: (D) => {
1074
- D.preventDefault(), f();
1086
+ D.preventDefault(), h();
1075
1087
  },
1076
1088
  "data-testid": "form",
1077
1089
  children: [
@@ -1081,12 +1093,12 @@ function wi({ onSubmit: e, authenticating: t, authenticationFailed: s, authentic
1081
1093
  ref: d,
1082
1094
  name: "username",
1083
1095
  type: "text",
1084
- title: C,
1085
- placeholder: C,
1096
+ title: b,
1097
+ placeholder: b,
1086
1098
  autoCorrect: "off",
1087
1099
  autoCapitalize: "off",
1088
1100
  spellCheck: "false",
1089
- style: { cursor: h }
1101
+ style: { cursor: f }
1090
1102
  }
1091
1103
  ),
1092
1104
  /* @__PURE__ */ n(
@@ -1101,42 +1113,42 @@ function wi({ onSubmit: e, authenticating: t, authenticationFailed: s, authentic
1101
1113
  placeholder: u("signin.signinForm.password", {
1102
1114
  defaultValue: "Password"
1103
1115
  }),
1104
- style: { cursor: h }
1116
+ style: { cursor: f }
1105
1117
  }
1106
1118
  ),
1107
- /* @__PURE__ */ p("div", { className: "buttons", "data-testid": "login-button-wrapper", children: [
1119
+ /* @__PURE__ */ g("div", { className: "buttons", "data-testid": "login-button-wrapper", children: [
1108
1120
  /* @__PURE__ */ n(
1109
1121
  k,
1110
1122
  {
1111
1123
  primary: !0,
1112
1124
  type: "submit",
1113
1125
  className: "send",
1114
- disabled: t || v,
1126
+ disabled: t || C,
1115
1127
  style: {
1116
1128
  cursor: t ? "progress" : "pointer"
1117
1129
  },
1118
1130
  children: /* @__PURE__ */ n(w, { i18nKey: "signin.signinForm.login", children: "Login" })
1119
1131
  }
1120
1132
  ),
1121
- P.nextToLoginButton
1133
+ A.nextToLoginButton
1122
1134
  ] }),
1123
- P.belowLoginButton
1135
+ A.belowLoginButton
1124
1136
  ]
1125
1137
  }
1126
1138
  ),
1127
- /* @__PURE__ */ n("div", { className: "msg", children: s && /* @__PURE__ */ p("div", { className: "error", children: [
1139
+ /* @__PURE__ */ n("div", { className: "msg", children: s && /* @__PURE__ */ g("div", { className: "error", children: [
1128
1140
  m(),
1129
- v && /* @__PURE__ */ n(gi, { onDone: b, seconds: 60 })
1141
+ C && /* @__PURE__ */ n(wi, { onDone: v, seconds: 60 })
1130
1142
  ] }) }),
1131
1143
  /* @__PURE__ */ n("div", { className: "forgot", children: /* @__PURE__ */ n(_, { to: "/forgotpassword", children: /* @__PURE__ */ n(w, { i18nKey: "signin.signinForm.forgotPassword", children: "Forgot Password?" }) }) }),
1132
- i && /* @__PURE__ */ n(pi, {}),
1133
- /* @__PURE__ */ n(yi, { authorizationServers: a }),
1134
- P.belowForm
1144
+ i && /* @__PURE__ */ n(yi, {}),
1145
+ /* @__PURE__ */ n(vi, { authorizationServers: a }),
1146
+ A.belowForm
1135
1147
  ] }) }),
1136
1148
  /* @__PURE__ */ n(Ue, {})
1137
1149
  ] }) }) });
1138
1150
  }
1139
- function vi() {
1151
+ function bi() {
1140
1152
  try {
1141
1153
  const t = new URLSearchParams(window.location.search).get("oauth_callback");
1142
1154
  t && !as(t) && localStorage.setItem("OAUTH2_CALLBACK_URL", t);
@@ -1144,10 +1156,10 @@ function vi() {
1144
1156
  console.error("Failed to store redirect location from query string", e);
1145
1157
  }
1146
1158
  }
1147
- async function Ci(e, t, s) {
1159
+ async function Si(e, t, s) {
1148
1160
  t(!0);
1149
1161
  try {
1150
- const r = await De(), [a, o] = await Promise.all([Le(), Oe(), Z()]);
1162
+ const r = await ke(), [a, o] = await Promise.all([Le(), Oe(), Q()]);
1151
1163
  await Fe(r.principal, a, !0, o, s), os(e, r);
1152
1164
  } catch (r) {
1153
1165
  console.error("auto signin failed", r), await ut();
@@ -1164,36 +1176,36 @@ function os(e, t) {
1164
1176
  } else
1165
1177
  e.push(s);
1166
1178
  else
1167
- Z().then((r) => e.push(r));
1179
+ Q().then((r) => e.push(r));
1168
1180
  }
1169
- function bi() {
1170
- const e = q(), { resetGlobalResources: t } = x(ke), { user: s, authenticated: r, afterSignout: a, setAuthenticatedUser: o } = x(M), [i, l] = g(!1), [u, d] = g(!1), [c, h] = g(!1), [f, m] = g(-1);
1181
+ function Ai() {
1182
+ const e = q(), { resetGlobalResources: t } = x(De), { user: s, authenticated: r, afterSignout: a, setAuthenticatedUser: o } = x(M), [i, l] = p(!1), [u, d] = p(!1), [c, f] = p(!1), [h, m] = p(-1);
1171
1183
  S(() => {
1172
- vi(), t();
1184
+ bi(), t();
1173
1185
  }, []), S(() => {
1174
- r && s ? De().then((y) => os(e, y)) : a || Ci(e, l, o);
1186
+ r && s ? ke().then((y) => os(e, y)) : a || Si(e, l, o);
1175
1187
  }, [e, r, a, s, o]);
1176
- async function v(y, b) {
1177
- d(!0), h(!1);
1188
+ async function C(y, v) {
1189
+ d(!0), f(!1);
1178
1190
  try {
1179
- await qn(y, b, !1, o);
1180
- } catch (C) {
1181
- h(!0), m(C.response ? C.response.status : 404);
1191
+ await qn(y, v, !1, o);
1192
+ } catch (b) {
1193
+ f(!0), m(b.response ? b.response.status : 404);
1182
1194
  } finally {
1183
1195
  d(!1);
1184
1196
  }
1185
1197
  }
1186
1198
  return i ? /* @__PURE__ */ n(oe, { center: !0 }) : /* @__PURE__ */ n(
1187
- wi,
1199
+ Ci,
1188
1200
  {
1189
- onSubmit: v,
1201
+ onSubmit: C,
1190
1202
  authenticating: u,
1191
1203
  authenticationFailed: c,
1192
- authenticationErrorResponseCode: f
1204
+ authenticationErrorResponseCode: h
1193
1205
  }
1194
1206
  );
1195
1207
  }
1196
- function Si({ children: e }) {
1208
+ function Pi({ children: e }) {
1197
1209
  return /* @__PURE__ */ n("div", { className: "di floor-1", children: e });
1198
1210
  }
1199
1211
  var $t;
@@ -1206,7 +1218,7 @@ function Qe() {
1206
1218
  return e;
1207
1219
  }, Qe.apply(null, arguments);
1208
1220
  }
1209
- var Ai = function(t) {
1221
+ var xi = function(t) {
1210
1222
  return /* @__PURE__ */ F.createElement("svg", Qe({
1211
1223
  xmlns: "http://www.w3.org/2000/svg",
1212
1224
  width: 16,
@@ -1216,13 +1228,13 @@ var Ai = function(t) {
1216
1228
  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"
1217
1229
  })));
1218
1230
  };
1219
- const Pi = "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
+ const Ti = "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({
1220
1232
  currentPageTitle: "",
1221
1233
  setCurrentPageTitle: () => {
1222
1234
  }
1223
1235
  });
1224
1236
  function At(e, t) {
1225
- const [s, r] = g();
1237
+ const [s, r] = p();
1226
1238
  return S(() => {
1227
1239
  const a = document.createElement("div");
1228
1240
  t && a.classList.add(...t.split(" "));
@@ -1232,24 +1244,24 @@ function At(e, t) {
1232
1244
  };
1233
1245
  }, [t, e]), s;
1234
1246
  }
1235
- function xi({ children: e, className: t }) {
1247
+ function Ei({ children: e, className: t }) {
1236
1248
  const s = At(".di.app-wrapper");
1237
1249
  return s ? Kn(/* @__PURE__ */ n("div", { className: t, children: e }), s) : null;
1238
1250
  }
1239
- const Ti = (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;
1240
- function Ei(e) {
1241
- const [t, s] = Vn(Ti, "closed");
1251
+ const Ni = (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;
1252
+ function Ri(e) {
1253
+ const [t, s] = Vn(Ni, "closed");
1242
1254
  return S(() => {
1243
1255
  e ? (s("open"), setTimeout(() => s("timeout"), 50), setTimeout(() => s("timeout"), 300)) : (s("close"), setTimeout(() => s("timeout"), 300));
1244
1256
  }, [e]), t;
1245
1257
  }
1246
1258
  function is({ className: e, visible: t, onHide: s, children: r }) {
1247
- const a = Ei(t), { ref: o } = ht(
1259
+ const a = Ri(t), { ref: o } = ht(
1248
1260
  I(() => {
1249
1261
  t && s();
1250
1262
  }, [t, s])
1251
1263
  );
1252
- return /* @__PURE__ */ n(xi, { className: V(e, "di floating-panel-portal", { open: a !== "closed" }), children: /* @__PURE__ */ n(
1264
+ return /* @__PURE__ */ n(Ei, { className: V(e, "di floating-panel-portal", { open: a !== "closed" }), children: /* @__PURE__ */ n(
1253
1265
  "div",
1254
1266
  {
1255
1267
  ref: o,
@@ -1267,7 +1279,7 @@ function Je() {
1267
1279
  return e;
1268
1280
  }, Je.apply(null, arguments);
1269
1281
  }
1270
- var Ni = function(t) {
1282
+ var Ii = function(t) {
1271
1283
  return /* @__PURE__ */ F.createElement("svg", Je({
1272
1284
  xmlns: "http://www.w3.org/2000/svg",
1273
1285
  width: 6,
@@ -1313,8 +1325,8 @@ var Ni = function(t) {
1313
1325
  }
1314
1326
  })));
1315
1327
  };
1316
- function Ri({ value: e, onChange: t, onCancel: s, onSave: r }) {
1317
- return /* @__PURE__ */ p(
1328
+ function Di({ value: e, onChange: t, onCancel: s, onSave: r }) {
1329
+ return /* @__PURE__ */ g(
1318
1330
  "form",
1319
1331
  {
1320
1332
  className: "edited-name-wrapper",
@@ -1329,10 +1341,10 @@ function Ri({ value: e, onChange: t, onCancel: s, onSave: r }) {
1329
1341
  }
1330
1342
  );
1331
1343
  }
1332
- function Ii(e) {
1344
+ function ki(e) {
1333
1345
  return e.replace(/\/?$/, "");
1334
1346
  }
1335
- function ki({
1347
+ function Li({
1336
1348
  favorite: { id: e, title: t, url: s },
1337
1349
  isEdited: r,
1338
1350
  isActive: a,
@@ -1341,35 +1353,35 @@ function ki({
1341
1353
  onSave: l,
1342
1354
  onCancel: u
1343
1355
  }) {
1344
- const { attributes: d, listeners: c, setNodeRef: h, setActivatorNodeRef: f, transform: m, transition: v, isOver: y } = po({
1356
+ const { attributes: d, listeners: c, setNodeRef: f, setActivatorNodeRef: h, transform: m, transition: C, isOver: y } = go({
1345
1357
  id: e
1346
- }), b = {
1358
+ }), v = {
1347
1359
  transform: cr.Transform.toString(m),
1348
- transition: y ? v : void 0
1349
- }, [C, P] = g(t), D = () => {
1350
- o(), P(t);
1360
+ transition: y ? C : void 0
1361
+ }, [b, A] = p(t), D = () => {
1362
+ o(), A(t);
1351
1363
  }, T = () => {
1352
- l(C);
1364
+ l(b);
1353
1365
  }, E = () => {
1354
1366
  u();
1355
1367
  }, { hide: N } = Ne();
1356
- return /* @__PURE__ */ p("li", { className: "item", ref: h, style: b, ...d, children: [
1357
- /* @__PURE__ */ n("span", { className: "drag-handle", ref: f, ...c, children: /* @__PURE__ */ n(Ni, {}) }),
1368
+ return /* @__PURE__ */ g("li", { className: "item", ref: f, style: v, ...d, children: [
1369
+ /* @__PURE__ */ n("span", { className: "drag-handle", ref: h, ...c, children: /* @__PURE__ */ n(Ii, {}) }),
1358
1370
  /* @__PURE__ */ n("span", { className: V("title", { active: a }), children: r ? /* @__PURE__ */ n(
1359
- Ri,
1371
+ Di,
1360
1372
  {
1361
- value: C,
1362
- onChange: P,
1373
+ value: b,
1374
+ onChange: A,
1363
1375
  onSave: T,
1364
1376
  onCancel: E
1365
1377
  }
1366
- ) : /* @__PURE__ */ n(_, { "data-testid": "link", to: Ii(s), onClick: N, children: t || s }) }),
1378
+ ) : /* @__PURE__ */ n(_, { "data-testid": "link", to: ki(s), onClick: N, children: t || s }) }),
1367
1379
  !r && /* @__PURE__ */ n(
1368
1380
  xe,
1369
1381
  {
1370
1382
  menuButton: /* @__PURE__ */ n(k, { naked: !0, className: "actions-handle", "data-testid": "actions-button", children: /* @__PURE__ */ n(Cn, {}) }),
1371
1383
  direction: "left",
1372
- children: /* @__PURE__ */ p("div", { onClick: (R) => R.stopPropagation(), children: [
1384
+ children: /* @__PURE__ */ g("div", { onClick: (R) => R.stopPropagation(), children: [
1373
1385
  /* @__PURE__ */ n(ne, { icon: /* @__PURE__ */ n(me, { edit: !0 }), onClick: D, "data-testid": "edit-button", children: /* @__PURE__ */ n(w, { i18nKey: "favorites.editName", children: "Edit Name" }) }),
1374
1386
  /* @__PURE__ */ n(ne, { icon: /* @__PURE__ */ n(me, { del: !0 }), onClick: i, "data-testid": "delete-button", children: /* @__PURE__ */ n(w, { i18nKey: "favorites.delete", children: "Delete" }) })
1375
1387
  ] })
@@ -1377,7 +1389,7 @@ function ki({
1377
1389
  )
1378
1390
  ] });
1379
1391
  }
1380
- function Di() {
1392
+ function Mi() {
1381
1393
  const { open: e, hide: t } = Ne(), {
1382
1394
  allFavorites: s,
1383
1395
  deleteFavorite: r,
@@ -1387,44 +1399,44 @@ function Di() {
1387
1399
  cancelTitleEditing: l,
1388
1400
  loading: u,
1389
1401
  updating: d
1390
- } = Ne(), { pathname: c } = $(), [h, f] = g(), m = () => {
1391
- const C = i();
1392
- f(C);
1393
- }, v = (C, P) => {
1394
- a(C, P), f(void 0);
1395
- }, y = (C) => {
1396
- f(void 0), l(C);
1397
- }, b = s.some((C) => C.url.replace(/\/$/, "") === c);
1402
+ } = Ne(), { pathname: c } = $(), [f, h] = p(), m = () => {
1403
+ const b = i();
1404
+ h(b);
1405
+ }, C = (b, A) => {
1406
+ a(b, A), h(void 0);
1407
+ }, y = (b) => {
1408
+ h(void 0), l(b);
1409
+ }, v = s.some((b) => b.url.replace(/\/$/, "") === c);
1398
1410
  return /* @__PURE__ */ n(
1399
1411
  is,
1400
1412
  {
1401
1413
  className: "di favorites",
1402
1414
  visible: e,
1403
1415
  onHide: () => {
1404
- f(void 0), t();
1416
+ h(void 0), t();
1405
1417
  },
1406
- children: /* @__PURE__ */ p(ge, { show: u || d, children: [
1407
- /* @__PURE__ */ p("div", { className: "header", children: [
1418
+ children: /* @__PURE__ */ g(ge, { show: u || d, children: [
1419
+ /* @__PURE__ */ g("div", { className: "header", children: [
1408
1420
  /* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(w, { i18nKey: "favorites.header", children: "My favorites" }) }),
1409
- /* @__PURE__ */ p(k, { naked: !0, onClick: m, "data-testid": "create-button", disabled: b, children: [
1421
+ /* @__PURE__ */ g(k, { naked: !0, onClick: m, "data-testid": "create-button", disabled: v, children: [
1410
1422
  /* @__PURE__ */ n(me, { add: !0 }),
1411
1423
  " ",
1412
1424
  /* @__PURE__ */ n(w, { i18nKey: "favorites.create", children: "Create new" })
1413
1425
  ] })
1414
1426
  ] }),
1415
- /* @__PURE__ */ p("div", { className: "content", children: [
1416
- /* @__PURE__ */ n(dr, { items: s, onOrderChange: o, children: /* @__PURE__ */ n("ul", { "data-testid": "favorites-list", children: s.map((C) => /* @__PURE__ */ n(
1417
- ki,
1427
+ /* @__PURE__ */ g("div", { className: "content", children: [
1428
+ /* @__PURE__ */ n(dr, { items: s, onOrderChange: o, children: /* @__PURE__ */ n("ul", { "data-testid": "favorites-list", children: s.map((b) => /* @__PURE__ */ n(
1429
+ Li,
1418
1430
  {
1419
- favorite: C,
1420
- onDelete: () => r(C.id),
1421
- isEdited: h === C.id,
1422
- isActive: C.url.replace(/\/$/, "") === c,
1423
- onSave: (P) => v(C.id, P),
1424
- onEdit: () => f(C.id),
1425
- onCancel: () => y(C.id)
1431
+ favorite: b,
1432
+ onDelete: () => r(b.id),
1433
+ isEdited: f === b.id,
1434
+ isActive: b.url.replace(/\/$/, "") === c,
1435
+ onSave: (A) => C(b.id, A),
1436
+ onEdit: () => h(b.id),
1437
+ onCancel: () => y(b.id)
1426
1438
  },
1427
- C.id
1439
+ b.id
1428
1440
  )) }) }),
1429
1441
  s.length === 0 && /* @__PURE__ */ n("div", { "data-testid": "empty-message", children: /* @__PURE__ */ n(w, { i18nKey: "favorites.empty", children: "No items. Create your first favorite." }) })
1430
1442
  ] })
@@ -1432,11 +1444,11 @@ function Di() {
1432
1444
  }
1433
1445
  );
1434
1446
  }
1435
- async function Li() {
1436
- return Ma() ?? [];
1447
+ async function Vi() {
1448
+ return Va() ?? [];
1437
1449
  }
1438
- async function Mi(e) {
1439
- await Va(e);
1450
+ async function Ui(e) {
1451
+ await Ua(e);
1440
1452
  }
1441
1453
  const ls = wt({
1442
1454
  open: !1,
@@ -1461,10 +1473,10 @@ const ls = wt({
1461
1473
  function zt(e) {
1462
1474
  return e.filter((t) => !t.local);
1463
1475
  }
1464
- function Vi({ children: e }) {
1465
- const [t, s] = g(!1), [r, a] = g([]), [o, i] = g([]), [l, u] = g(!0), [d, c] = g(!1), { pathname: h, search: f } = $(), { currentPageTitle: m } = x(_e);
1476
+ function Fi({ children: e }) {
1477
+ const [t, s] = p(!1), [r, a] = p([]), [o, i] = p([]), [l, u] = p(!0), [d, c] = p(!1), { pathname: f, search: h } = $(), { currentPageTitle: m } = x(_e);
1466
1478
  S(() => {
1467
- const { promise: E, cancel: N } = Pe(Li());
1479
+ const { promise: E, cancel: N } = Pe(Vi());
1468
1480
  return E.then((R) => {
1469
1481
  a(R), i(R), u(!1);
1470
1482
  }).catch((R) => {
@@ -1473,7 +1485,7 @@ function Vi({ children: e }) {
1473
1485
  }, []), S(() => {
1474
1486
  const E = zt(r);
1475
1487
  if (!cn(E, o)) {
1476
- const { promise: N, cancel: R } = Pe(Mi(E));
1488
+ const { promise: N, cancel: R } = Pe(Ui(E));
1477
1489
  return c(!0), N.then(() => {
1478
1490
  c(!1), i(E);
1479
1491
  }).catch((O) => {
@@ -1481,7 +1493,7 @@ function Vi({ children: e }) {
1481
1493
  }), R;
1482
1494
  }
1483
1495
  }, [r, o]);
1484
- function v(E) {
1496
+ function C(E) {
1485
1497
  a(r.filter((N) => N.id !== E));
1486
1498
  }
1487
1499
  function y(E, N) {
@@ -1497,19 +1509,19 @@ function Vi({ children: e }) {
1497
1509
  )
1498
1510
  );
1499
1511
  }
1500
- function b(E) {
1512
+ function v(E) {
1501
1513
  a(r.filter((N) => N.id !== E || !N.local));
1502
1514
  }
1503
- function C(E) {
1515
+ function b(E) {
1504
1516
  a(E);
1505
1517
  }
1506
- function P() {
1507
- const E = kn();
1518
+ function A() {
1519
+ const E = Dn();
1508
1520
  return a([
1509
1521
  {
1510
1522
  id: E,
1511
1523
  title: m,
1512
- url: `${h}/${f}`,
1524
+ url: `${f}/${h}`,
1513
1525
  local: !0
1514
1526
  },
1515
1527
  ...zt(r)
@@ -1526,27 +1538,27 @@ function Vi({ children: e }) {
1526
1538
  updating: d,
1527
1539
  allFavorites: r,
1528
1540
  backendFavorites: o,
1529
- createFavorite: P,
1530
- deleteFavorite: v,
1541
+ createFavorite: A,
1542
+ deleteFavorite: C,
1531
1543
  updateTitle: y,
1532
- cancelTitleEditing: b,
1533
- updateFavorites: C
1544
+ cancelTitleEditing: v,
1545
+ updateFavorites: b
1534
1546
  };
1535
- return /* @__PURE__ */ p(ls.Provider, { value: T, children: [
1536
- /* @__PURE__ */ n(Di, {}),
1547
+ return /* @__PURE__ */ g(ls.Provider, { value: T, children: [
1548
+ /* @__PURE__ */ n(Mi, {}),
1537
1549
  e
1538
1550
  ] });
1539
1551
  }
1540
1552
  function Ne() {
1541
1553
  return x(ls);
1542
1554
  }
1543
- function Ui(e) {
1555
+ function Oi(e) {
1544
1556
  return e.replace(/\/?$/, "");
1545
1557
  }
1546
- function Fi() {
1558
+ function _i() {
1547
1559
  const { open: e, hide: t, historyItems: s, clearHistory: r } = x(Et);
1548
- return /* @__PURE__ */ n(is, { visible: e, onHide: t, className: "di history-panel", children: /* @__PURE__ */ p("div", { className: "wrapper", children: [
1549
- /* @__PURE__ */ p("div", { className: "header", children: [
1560
+ return /* @__PURE__ */ n(is, { visible: e, onHide: t, className: "di history-panel", children: /* @__PURE__ */ g("div", { className: "wrapper", children: [
1561
+ /* @__PURE__ */ g("div", { className: "header", children: [
1550
1562
  /* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(w, { i18nKey: "history.header", children: "Page history" }) }),
1551
1563
  /* @__PURE__ */ n(
1552
1564
  xe,
@@ -1557,14 +1569,14 @@ function Fi() {
1557
1569
  }
1558
1570
  )
1559
1571
  ] }),
1560
- /* @__PURE__ */ n("ul", { className: "content", children: s.map(({ title: a, url: o, date: i }) => /* @__PURE__ */ p("li", { className: "item", children: [
1561
- /* @__PURE__ */ n(_, { className: "title", to: Ui(o), onClick: t, children: a }),
1572
+ /* @__PURE__ */ n("ul", { className: "content", children: s.map(({ title: a, url: o, date: i }) => /* @__PURE__ */ g("li", { className: "item", children: [
1573
+ /* @__PURE__ */ n(_, { className: "title", to: Oi(o), onClick: t, children: a }),
1562
1574
  /* @__PURE__ */ n("span", { className: "date", title: je(i), "data-testid": "date-field", children: je(i, { format: "L" }) })
1563
1575
  ] }, i)) }),
1564
1576
  s.length === 0 && /* @__PURE__ */ n("div", { "data-testid": "empty-message", children: /* @__PURE__ */ n(w, { i18nKey: "history.empty", children: "No history items." }) })
1565
1577
  ] }) });
1566
1578
  }
1567
- const Pt = "di-history-items", Oi = 20;
1579
+ const Pt = "di-history-items", Ki = 20;
1568
1580
  function xt() {
1569
1581
  const e = localStorage.getItem(Pt) ?? "{}";
1570
1582
  return JSON.parse(e);
@@ -1572,12 +1584,12 @@ function xt() {
1572
1584
  function Tt(e) {
1573
1585
  return xt()[e] ?? [];
1574
1586
  }
1575
- function _i(e, t) {
1587
+ function Hi(e, t) {
1576
1588
  const s = xt(), r = Tt(t);
1577
1589
  let a;
1578
- r.length && r[0].url === e.url ? a = [e, ...r.slice(1)] : a = [e, ...r].slice(0, Oi), localStorage.setItem(Pt, JSON.stringify({ ...s, [t]: a }));
1590
+ r.length && r[0].url === e.url ? a = [e, ...r.slice(1)] : a = [e, ...r].slice(0, Ki), localStorage.setItem(Pt, JSON.stringify({ ...s, [t]: a }));
1579
1591
  }
1580
- function Ki(e) {
1592
+ function Bi(e) {
1581
1593
  const t = xt();
1582
1594
  localStorage.setItem(Pt, JSON.stringify({ ...t, [e]: [] }));
1583
1595
  }
@@ -1590,7 +1602,7 @@ const Et = wt({
1590
1602
  clearHistory: () => {
1591
1603
  },
1592
1604
  historyItems: []
1593
- }), Hi = un(
1605
+ }), Gi = un(
1594
1606
  (e, t, s, r, a) => {
1595
1607
  if (!a)
1596
1608
  return;
@@ -1599,16 +1611,16 @@ const Et = wt({
1599
1611
  url: `${e}/${t}`,
1600
1612
  title: a
1601
1613
  };
1602
- _i(o, s.number), r(Tt(s.number));
1614
+ Hi(o, s.number), r(Tt(s.number));
1603
1615
  },
1604
1616
  500
1605
1617
  );
1606
- function Bi({ children: e }) {
1607
- const [t, s] = g(!1), { pathname: r, search: a } = $(), { user: o } = x(M), [i, l] = g([]), { currentPageTitle: u } = x(_e);
1618
+ function $i({ children: e }) {
1619
+ const [t, s] = p(!1), { pathname: r, search: a } = $(), { user: o } = x(M), [i, l] = p([]), { currentPageTitle: u } = x(_e);
1608
1620
  S(() => {
1609
1621
  o && l(Tt(o.number));
1610
1622
  }, [o]), S(() => {
1611
- A.isHistoryEnabled() && o && Hi(r, a, o, l, u);
1623
+ P.isHistoryEnabled() && o && Gi(r, a, o, l, u);
1612
1624
  }, [r, a, o, u]);
1613
1625
  const c = {
1614
1626
  open: t,
@@ -1616,20 +1628,20 @@ function Bi({ children: e }) {
1616
1628
  hide: () => s(!1),
1617
1629
  historyItems: i,
1618
1630
  clearHistory: () => {
1619
- Ki(o.number), l([]);
1631
+ Bi(o.number), l([]);
1620
1632
  }
1621
1633
  };
1622
- return /* @__PURE__ */ p(Et.Provider, { value: c, children: [
1623
- /* @__PURE__ */ n(Fi, {}),
1634
+ return /* @__PURE__ */ g(Et.Provider, { value: c, children: [
1635
+ /* @__PURE__ */ n(_i, {}),
1624
1636
  e
1625
1637
  ] });
1626
1638
  }
1627
- function Gi() {
1639
+ function zi() {
1628
1640
  const { connectionState: e } = x(ft);
1629
1641
  return !e || e === "socket_connect" ? null : /* @__PURE__ */ n(
1630
1642
  ye,
1631
1643
  {
1632
- content: /* @__PURE__ */ p("div", { className: "ux4iot-connection-state-hint", children: [
1644
+ content: /* @__PURE__ */ g("div", { className: "ux4iot-connection-state-hint", children: [
1633
1645
  /* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(w, { i18nKey: "ux4iot.connection.unavailable", children: "Ux4iot service is currently unavailable!" }) }),
1634
1646
  /* @__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." }) })
1635
1647
  ] }),
@@ -1637,15 +1649,15 @@ function Gi() {
1637
1649
  }
1638
1650
  );
1639
1651
  }
1640
- function $i() {
1641
- const { t: e } = G(), { locales: t } = x(ke), { pathname: s } = $(), { instance: r } = ie(), { user: a, resetAuthenticatedUser: o, setAuthenticatedUser: i, principal: l, paginationSettings: u } = x(M), { elements: d } = x(hr), { show: c, backendFavorites: h } = Ne(), { show: f } = x(Et), m = h.some((T) => T.url.replace(/\/$/, "") === s), v = fr(!0, !0), y = _n({
1642
- resolver: fo(v),
1652
+ function Wi() {
1653
+ const { t: e } = G(), { locales: t } = x(De), { pathname: s } = $(), { instance: r } = ie(), { user: a, resetAuthenticatedUser: o, setAuthenticatedUser: i, principal: l, paginationSettings: u } = x(M), { elements: d } = x(hr), { show: c, backendFavorites: f } = Ne(), { show: h } = x(Et), m = f.some((T) => T.url.replace(/\/$/, "") === s), C = fr(!0, !0), y = _n({
1654
+ resolver: mo(C),
1643
1655
  defaultValues: mr(a)
1644
- }), b = q();
1645
- async function C(T, E) {
1656
+ }), v = q();
1657
+ async function b(T, E) {
1646
1658
  pe() ? await it(T, r) : await ot(T, E);
1647
1659
  }
1648
- function P() {
1660
+ function A() {
1649
1661
  yr(s).then(() => {
1650
1662
  const E = e("user.settings.saveStartPageMessage", {
1651
1663
  defaultValue: "The current page has been saved as starting page."
@@ -1656,20 +1668,20 @@ function $i() {
1656
1668
  });
1657
1669
  }
1658
1670
  function D(T) {
1659
- Ua({ locale: T }).then((E) => {
1660
- i(l, E, u), wr(E), b.push(b.location.pathname), Kt(
1671
+ Fa({ locale: T }).then((E) => {
1672
+ i(l, E, u), wr(E), v.push(v.location.pathname), Kt(
1661
1673
  e("user.settings.saveLocaleMessage", { defaultValue: "The language has been changed." })
1662
1674
  );
1663
- }).catch((E) => X(E));
1675
+ }).catch((E) => Z(E));
1664
1676
  }
1665
- return /* @__PURE__ */ p("div", { className: "di utilities", children: [
1666
- /* @__PURE__ */ n(Gi, {}),
1677
+ return /* @__PURE__ */ g("div", { className: "di utilities", children: [
1678
+ /* @__PURE__ */ n(zi, {}),
1667
1679
  d && d.map((T) => /* @__PURE__ */ n("span", { className: "elm", children: Me(T.component, null, null) }, T.id)),
1668
- /* @__PURE__ */ n("span", { className: "elm", children: /* @__PURE__ */ n(ho, { ...y, children: /* @__PURE__ */ n(
1680
+ /* @__PURE__ */ n("span", { className: "elm", children: /* @__PURE__ */ n(fo, { ...y, children: /* @__PURE__ */ n(
1669
1681
  xe,
1670
1682
  {
1671
1683
  "data-testid": "property-locale",
1672
- menuButton: /* @__PURE__ */ p("button", { type: "button", className: "di button link", children: [
1684
+ menuButton: /* @__PURE__ */ g("button", { type: "button", className: "di button link", children: [
1673
1685
  /* @__PURE__ */ n("img", { src: pr, alt: "locale icon" }),
1674
1686
  /* @__PURE__ */ n("span", { title: e("eula.language"), defaultValue: "Language", children: e(`locales.${a.locale}`, { defaultValue: a.locale }) }),
1675
1687
  /* @__PURE__ */ n("img", { src: Ot, alt: "triangle down" })
@@ -1691,31 +1703,31 @@ function $i() {
1691
1703
  )
1692
1704
  }
1693
1705
  ) }) }),
1694
- A.isFavoritesEnabled() && /* @__PURE__ */ n("span", { className: "elm", children: /* @__PURE__ */ n(
1706
+ P.isFavoritesEnabled() && /* @__PURE__ */ n("span", { className: "elm", children: /* @__PURE__ */ n(
1695
1707
  k,
1696
1708
  {
1697
1709
  "data-testid": "favorites-button",
1698
1710
  naked: !0,
1699
1711
  title: e("favorites.title", { defaultValue: "Favorites" }),
1700
1712
  onClick: c,
1701
- children: /* @__PURE__ */ n(Ai, { style: m ? { fill: "var(--primary-color)" } : {} })
1713
+ children: /* @__PURE__ */ n(xi, { style: m ? { fill: "var(--primary-color)" } : {} })
1702
1714
  }
1703
1715
  ) }),
1704
- A.isHistoryEnabled() && /* @__PURE__ */ n("span", { className: "elm", children: /* @__PURE__ */ n(
1716
+ P.isHistoryEnabled() && /* @__PURE__ */ n("span", { className: "elm", children: /* @__PURE__ */ n(
1705
1717
  k,
1706
1718
  {
1707
1719
  "data-testid": "history-button",
1708
1720
  naked: !0,
1709
1721
  title: e("history.title", { defaultValue: "History" }),
1710
- onClick: f,
1711
- children: /* @__PURE__ */ n("img", { src: Pi, alt: "", style: { width: 16, height: 16 } })
1722
+ onClick: h,
1723
+ children: /* @__PURE__ */ n("img", { src: Ti, alt: "", style: { width: 16, height: 16 } })
1712
1724
  }
1713
1725
  ) }),
1714
- /* @__PURE__ */ n("span", { className: "elm", children: /* @__PURE__ */ p(
1726
+ /* @__PURE__ */ n("span", { className: "elm", children: /* @__PURE__ */ g(
1715
1727
  xe,
1716
1728
  {
1717
1729
  "data-testid": "user-menu-button",
1718
- menuButton: /* @__PURE__ */ p("button", { type: "button", className: "di button link", children: [
1730
+ menuButton: /* @__PURE__ */ g("button", { type: "button", className: "di button link", children: [
1719
1731
  /* @__PURE__ */ n("img", { src: gr, alt: "profile icon" }),
1720
1732
  /* @__PURE__ */ n(
1721
1733
  "span",
@@ -1730,7 +1742,7 @@ function $i() {
1730
1742
  ] }),
1731
1743
  children: [
1732
1744
  /* @__PURE__ */ n(ne, { "data-testid": "user-profile-button", linkTo: "/profile", children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(w, { i18nKey: "page.headerLinks.userProfile", children: "User Profile" }) }) }),
1733
- /* @__PURE__ */ n(ne, { "data-testid": "start-page-button", linkTo: "#", onClick: P, children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(w, { i18nKey: "page.headerLinks.startPage", children: "Set as startpage" }) }) })
1745
+ /* @__PURE__ */ n(ne, { "data-testid": "start-page-button", linkTo: "#", onClick: A, children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(w, { i18nKey: "page.headerLinks.startPage", children: "Set as startpage" }) }) })
1734
1746
  ]
1735
1747
  }
1736
1748
  ) }),
@@ -1740,21 +1752,21 @@ function $i() {
1740
1752
  "data-testid": "logout-button",
1741
1753
  className: "di button link",
1742
1754
  onClick: (T) => {
1743
- T.preventDefault(), C(a, o);
1755
+ T.preventDefault(), b(a, o);
1744
1756
  },
1745
1757
  children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(w, { i18nKey: "page.headerLinks.logout", children: "Logout" }) })
1746
1758
  }
1747
1759
  ) })
1748
1760
  ] });
1749
1761
  }
1750
- function zi({ value: e, options: t, onChange: s }) {
1751
- const [r, a] = g(!1), { ref: o } = ht(i);
1762
+ function qi({ value: e, options: t, onChange: s }) {
1763
+ const [r, a] = p(!1), { ref: o } = ht(i);
1752
1764
  function i() {
1753
1765
  r && a(!1);
1754
1766
  }
1755
1767
  const l = t.find((u) => u.value === e) || t[0];
1756
- return /* @__PURE__ */ p("span", { className: "search-cat", ref: o, children: [
1757
- /* @__PURE__ */ p(
1768
+ return /* @__PURE__ */ g("span", { className: "search-cat", ref: o, children: [
1769
+ /* @__PURE__ */ g(
1758
1770
  "span",
1759
1771
  {
1760
1772
  onClick: () => {
@@ -1779,7 +1791,7 @@ function zi({ value: e, options: t, onChange: s }) {
1779
1791
  )) })
1780
1792
  ] });
1781
1793
  }
1782
- const Wi = {
1794
+ const ji = {
1783
1795
  assets: {
1784
1796
  id: "search.assets.searchname",
1785
1797
  defaultValue: "Assets"
@@ -1801,7 +1813,7 @@ const Wi = {
1801
1813
  defaultValue: "Roles"
1802
1814
  }
1803
1815
  };
1804
- function qi() {
1816
+ function Yi() {
1805
1817
  const { availableContexts: e, context: t, changeContext: s, searchConfig: r, submitQuery: a, query: o } = x(bn);
1806
1818
  return !t || !r ? null : /* @__PURE__ */ n("div", { className: "di searchG", children: /* @__PURE__ */ n(
1807
1819
  vr,
@@ -1813,12 +1825,12 @@ function qi() {
1813
1825
  autofocus: !0,
1814
1826
  withQueryBuilder: t !== "roles",
1815
1827
  children: e && /* @__PURE__ */ n(
1816
- zi,
1828
+ qi,
1817
1829
  {
1818
1830
  value: t,
1819
1831
  options: e.map((i) => ({
1820
1832
  value: i,
1821
- label: Wi[i]
1833
+ label: ji[i]
1822
1834
  })),
1823
1835
  onChange: s
1824
1836
  }
@@ -1838,8 +1850,8 @@ function le({
1838
1850
  focusedItem: u
1839
1851
  }) {
1840
1852
  const d = q();
1841
- return s?.data.length === 0 ? null : /* @__PURE__ */ p("section", { className: "results-section", children: [
1842
- /* @__PURE__ */ p("h2", { children: [
1853
+ return s?.data.length === 0 ? null : /* @__PURE__ */ g("section", { className: "results-section", children: [
1854
+ /* @__PURE__ */ g("h2", { children: [
1843
1855
  /* @__PURE__ */ n("span", { children: t }),
1844
1856
  /* @__PURE__ */ n("span", { className: "title", children: e }),
1845
1857
  /* @__PURE__ */ n("span", { className: "line" }),
@@ -1855,12 +1867,12 @@ function le({
1855
1867
  }
1856
1868
  )
1857
1869
  ] }),
1858
- s ? /* @__PURE__ */ n("ul", { className: V({ columns: s.data.length > 3 }), children: s.data.map((c, h) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(_, { to: o(c), onClick: l, className: V({ focus: u === h }), children: a(c) }) }, r(c))) }) : /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(w, { i18nKey: "general.actions.loading", children: "Loading..." }) })
1870
+ s ? /* @__PURE__ */ n("ul", { className: V({ columns: s.data.length > 3 }), children: s.data.map((c, f) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(_, { to: o(c), onClick: l, className: V({ focus: u === f }), children: a(c) }) }, r(c))) }) : /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(w, { i18nKey: "general.actions.loading", children: "Loading..." }) })
1859
1871
  ] });
1860
1872
  }
1861
1873
  var L = /* @__PURE__ */ ((e) => (e.up = "up", e.down = "down", e.leftOrRight = "leftOrRight", e.right = "right", e.enter = "enter", e.reset = "reset", e))(L || {});
1862
- function ji() {
1863
- const { current: e } = B(new go());
1874
+ function Xi() {
1875
+ const { current: e } = B(new yo());
1864
1876
  function t(a) {
1865
1877
  e.emit(a);
1866
1878
  }
@@ -1884,10 +1896,10 @@ function Wt(e, t, s) {
1884
1896
  function Be(e, t) {
1885
1897
  return t ? e[t]?.data.length ?? 0 : 0;
1886
1898
  }
1887
- function Yi(e, t) {
1899
+ function Zi(e, t) {
1888
1900
  return t <= 3 ? e : e < Math.ceil(t / 2) ? Math.min(t - 1, e + Math.ceil(t / 2)) : e - Math.ceil(t / 2);
1889
1901
  }
1890
- function Xi(e, t) {
1902
+ function Qi(e, t) {
1891
1903
  switch (e) {
1892
1904
  case "assets":
1893
1905
  return `/assets/${t.id}`;
@@ -1901,8 +1913,8 @@ function Xi(e, t) {
1901
1913
  return `/roles/${t.id}`;
1902
1914
  }
1903
1915
  }
1904
- function Zi(e, t, s) {
1905
- const [r, a] = g(0), [o, i] = g(), l = q();
1916
+ function Ji(e, t, s) {
1917
+ const [r, a] = p(0), [o, i] = p(), l = q();
1906
1918
  S(() => {
1907
1919
  function d() {
1908
1920
  if (Be(e, o) > r + 1)
@@ -1921,17 +1933,17 @@ function Zi(e, t, s) {
1921
1933
  i(m), a(Be(e, m) - 1), m === void 0 && t.emit(L.reset);
1922
1934
  }
1923
1935
  }
1924
- function h() {
1925
- a(Yi(r, Be(e, o)));
1926
- }
1927
1936
  function f() {
1937
+ a(Zi(r, Be(e, o)));
1938
+ }
1939
+ function h() {
1928
1940
  if (o) {
1929
1941
  const m = e[o]?.data?.[r];
1930
- m && (l.push(Xi(o, m)), s());
1942
+ m && (l.push(Qi(o, m)), s());
1931
1943
  }
1932
1944
  }
1933
- return t.addListener(L.up, c), t.addListener(L.down, d), t.addListener(L.leftOrRight, h), t.addListener(L.enter, f), () => {
1934
- t.removeListener(L.up, c), t.removeListener(L.down, d), t.removeListener(L.leftOrRight, h), t.removeListener(L.enter, f);
1945
+ return t.addListener(L.up, c), t.addListener(L.down, d), t.addListener(L.leftOrRight, f), t.addListener(L.enter, h), () => {
1946
+ t.removeListener(L.up, c), t.removeListener(L.down, d), t.removeListener(L.leftOrRight, f), t.removeListener(L.enter, h);
1935
1947
  };
1936
1948
  }, [o, l, r, t, e, s]), S(() => {
1937
1949
  a(0), i(void 0);
@@ -1947,15 +1959,15 @@ function Zi(e, t, s) {
1947
1959
  };
1948
1960
  if (o) {
1949
1961
  d.preventDefault();
1950
- const h = c[d.key];
1951
- h && t.emit(h);
1962
+ const f = c[d.key];
1963
+ f && t.emit(f);
1952
1964
  }
1953
1965
  },
1954
1966
  [o, t]
1955
1967
  );
1956
1968
  return Cr(["up", "down", "left", "right", "enter"], u), { group: o, index: r };
1957
1969
  }
1958
- function Qi({
1970
+ function el({
1959
1971
  searchInputRect: e,
1960
1972
  visible: t,
1961
1973
  onHide: s,
@@ -1964,11 +1976,11 @@ function Qi({
1964
1976
  elementsIgnoredOnClickOutside: o,
1965
1977
  keyboardEventEmitter: i
1966
1978
  }) {
1967
- const l = At(), { ref: u } = ht(s, o), { index: d, group: c } = Zi(r, i, s);
1979
+ const l = At(), { ref: u } = ht(s, o), { index: d, group: c } = Ji(r, i, s);
1968
1980
  if (!l || a === "")
1969
1981
  return null;
1970
- const h = [r.assets, r.assetGroups, r.userGroups, r.users, r.roles].every(
1971
- (f) => f && f.data.length === 0
1982
+ const f = [r.assets, r.assetGroups, r.userGroups, r.users, r.roles].every(
1983
+ (h) => h && h.data.length === 0
1972
1984
  );
1973
1985
  return Kn(
1974
1986
  /* @__PURE__ */ n(
@@ -1981,16 +1993,16 @@ function Qi({
1981
1993
  left: e?.left,
1982
1994
  minWidth: e?.width
1983
1995
  },
1984
- children: h ? /* @__PURE__ */ n(w, { i18nKey: "reactable.noEntriesFound", children: "No entries found" }) : /* @__PURE__ */ p(H, { children: [
1996
+ children: f ? /* @__PURE__ */ n(w, { i18nKey: "reactable.noEntriesFound", children: "No entries found" }) : /* @__PURE__ */ g(H, { children: [
1985
1997
  /* @__PURE__ */ n(te, { authorities: ["READ_ASSET"], children: /* @__PURE__ */ n(
1986
1998
  le,
1987
1999
  {
1988
2000
  title: /* @__PURE__ */ n(w, { i18nKey: "search.assets.searchname", children: "Assets" }),
1989
2001
  icon: /* @__PURE__ */ n(br, { id: "full-search-result-icon-assets" }),
1990
2002
  items: r.assets,
1991
- getId: (f) => f.urn,
1992
- getName: (f) => f.name,
1993
- getUrl: (f) => `/assets/${f.id}`,
2003
+ getId: (h) => h.urn,
2004
+ getName: (h) => h.name,
2005
+ getUrl: (h) => `/assets/${h.id}`,
1994
2006
  getAllUrl: () => `/assets/list?query=${a}`,
1995
2007
  onHide: s,
1996
2008
  focusedItem: c === "assets" ? d : void 0
@@ -2002,9 +2014,9 @@ function Qi({
2002
2014
  title: /* @__PURE__ */ n(w, { i18nKey: "search.assetgroups", children: "Asset Groups" }),
2003
2015
  icon: /* @__PURE__ */ n(Sr, { id: "full-search-result-icon-asset-groups" }),
2004
2016
  items: r.assetGroups,
2005
- getId: (f) => f.id,
2006
- getName: (f) => f.displayName || f.name,
2007
- getUrl: (f) => `/assetgroups/${f.id}`,
2017
+ getId: (h) => h.id,
2018
+ getName: (h) => h.displayName || h.name,
2019
+ getUrl: (h) => `/assetgroups/${h.id}`,
2008
2020
  getAllUrl: () => `/assetgroups/list?query=${a}`,
2009
2021
  onHide: s,
2010
2022
  focusedItem: c === "assetGroups" ? d : void 0
@@ -2016,9 +2028,9 @@ function Qi({
2016
2028
  title: /* @__PURE__ */ n(w, { i18nKey: "search.users.searchname", children: "Users" }),
2017
2029
  icon: /* @__PURE__ */ n(Pr, { id: "full-search-result-icon-users" }),
2018
2030
  items: r.users,
2019
- getId: (f) => f.number,
2020
- getName: (f) => Ar(f),
2021
- getUrl: (f) => `/users/${f.number}`,
2031
+ getId: (h) => h.number,
2032
+ getName: (h) => Ar(h),
2033
+ getUrl: (h) => `/users/${h.number}`,
2022
2034
  getAllUrl: () => `/users/list?query=${a}`,
2023
2035
  onHide: s,
2024
2036
  focusedItem: c === "users" ? d : void 0
@@ -2030,9 +2042,9 @@ function Qi({
2030
2042
  title: /* @__PURE__ */ n(w, { i18nKey: "search.usergroups.searchname", children: "User Groups" }),
2031
2043
  icon: /* @__PURE__ */ n(xr, { id: "full-search-result-icon-user-groups" }),
2032
2044
  items: r.userGroups,
2033
- getId: (f) => f.id,
2034
- getName: (f) => f.displayName ?? f.name,
2035
- getUrl: (f) => `/usergroups/${f.id}`,
2045
+ getId: (h) => h.id,
2046
+ getName: (h) => h.displayName ?? h.name,
2047
+ getUrl: (h) => `/usergroups/${h.id}`,
2036
2048
  getAllUrl: () => `/usergroups/list?query=${a}`,
2037
2049
  onHide: s,
2038
2050
  focusedItem: c === "userGroups" ? d : void 0
@@ -2044,9 +2056,9 @@ function Qi({
2044
2056
  title: /* @__PURE__ */ n(w, { i18nKey: "search.roles.searchname", children: "Roles" }),
2045
2057
  icon: /* @__PURE__ */ n(Tr, { id: "full-search-result-icon-roles" }),
2046
2058
  items: r.roles,
2047
- getId: (f) => f.id,
2048
- getName: (f) => f.name,
2049
- getUrl: (f) => `/roles/${f.id}`,
2059
+ getId: (h) => h.id,
2060
+ getName: (h) => h.name,
2061
+ getUrl: (h) => `/roles/${h.id}`,
2050
2062
  getAllUrl: () => `/roles/list?query=${a}`,
2051
2063
  onHide: s,
2052
2064
  focusedItem: c === "roles" ? d : void 0
@@ -2058,28 +2070,28 @@ function Qi({
2058
2070
  l
2059
2071
  );
2060
2072
  }
2061
- const Ji = 10, el = {
2062
- size: Ji,
2073
+ const tl = 10, nl = {
2074
+ size: tl,
2063
2075
  page: 0,
2064
2076
  sort: {
2065
2077
  property: "name",
2066
2078
  direction: "ASC"
2067
2079
  }
2068
2080
  };
2069
- function tl(e, t) {
2070
- return Ka(Nr(e), t);
2081
+ function sl(e, t) {
2082
+ return Ha(Nr(e), t);
2071
2083
  }
2072
2084
  function ce(e, t, s, r) {
2073
- const [a, o] = g(), [i, l] = g(0);
2085
+ const [a, o] = p(), [i, l] = p(0);
2074
2086
  return S(() => {
2075
2087
  o(void 0);
2076
2088
  }, [e]), S(() => {
2077
- if (!e.trim() || !Q([s])) {
2089
+ if (!e.trim() || !X([s])) {
2078
2090
  o([]), l(0);
2079
2091
  return;
2080
2092
  }
2081
2093
  o(void 0);
2082
- const { promise: u, cancel: d } = Pe(t(e, el));
2094
+ const { promise: u, cancel: d } = Pe(t(e, nl));
2083
2095
  return u.then((c) => {
2084
2096
  o(c.content), l(c.totalElements);
2085
2097
  }).catch((c) => {
@@ -2089,34 +2101,34 @@ function ce(e, t, s, r) {
2089
2101
  };
2090
2102
  }, [t, e, s, r]), a ? { data: a, total: i } : void 0;
2091
2103
  }
2092
- function nl(e) {
2093
- const [t, s] = g(0), r = ce(e, tl, "READ_ASSET", t), a = ce(e, _a, "READ_ASSET_GROUP", t), o = ce(e, Oa, "READ_ACCOUNT", t), i = ce(e, Fa, "READ_ACCOUNT_GROUP", t), l = ce(e, Er, "READ_ROLE", t);
2104
+ function rl(e) {
2105
+ const [t, s] = p(0), r = ce(e, sl, "READ_ASSET", t), a = ce(e, Ka, "READ_ASSET_GROUP", t), o = ce(e, _a, "READ_ACCOUNT", t), i = ce(e, Oa, "READ_ACCOUNT_GROUP", t), l = ce(e, Er, "READ_ROLE", t);
2094
2106
  return { assets: r, assetGroups: a, users: o, userGroups: i, roles: l, reload: () => s((u) => u + 1) };
2095
2107
  }
2096
- function sl() {
2097
- const { t: e } = G(), [t, s] = g(!1), { ref: r, entries: a } = Rr(), [o, i] = g(""), l = o && o.includes("*") ? o : o.includes(":") && !/^".*"$/.test(o) ? `"*${o}*"` : `*${o}*`, u = nl(l), d = a?.length ? a[0].target.getBoundingClientRect() : void 0, c = ji(), h = B(null), f = B(null);
2108
+ function al() {
2109
+ const { t: e } = G(), [t, s] = p(!1), { ref: r, entries: a } = Rr(), [o, i] = p(""), l = o && o.includes("*") ? o : o.includes(":") && !/^".*"$/.test(o) ? `"*${o}*"` : `*${o}*`, u = rl(l), d = a?.length ? a[0].target.getBoundingClientRect() : void 0, c = Xi(), f = B(null), h = B(null);
2098
2110
  function m(y) {
2099
2111
  c.emit(L.reset), y.target.value && s(!0);
2100
2112
  }
2101
- function v(y) {
2113
+ function C(y) {
2102
2114
  i(y.target.value), !t && y.target.value ? s(!0) : t && !y.target.value && s(!1);
2103
2115
  }
2104
2116
  return S(() => {
2105
2117
  const y = () => {
2106
- f.current?.focus();
2118
+ h.current?.focus();
2107
2119
  };
2108
2120
  return c.addListener(L.reset, y), () => c.removeListener(L.reset, y);
2109
- }, [c]), /* @__PURE__ */ p("span", { className: "di search-bar full-search", ref: r, children: [
2121
+ }, [c]), /* @__PURE__ */ g("span", { className: "di search-bar full-search", ref: r, children: [
2110
2122
  /* @__PURE__ */ n("span", { className: "di search-input", children: /* @__PURE__ */ n(
2111
2123
  "input",
2112
2124
  {
2113
- ref: f,
2125
+ ref: h,
2114
2126
  type: "text",
2115
2127
  className: "search-input-field rounded",
2116
2128
  placeholder: e("search.placeholder", { defaultValue: "Search" }),
2117
2129
  autoFocus: !0,
2118
2130
  onFocus: m,
2119
- onChange: v,
2131
+ onChange: C,
2120
2132
  onKeyDown: (y) => {
2121
2133
  (y.key === "ArrowUp" || y.key === "ArrowDown") && (y.preventDefault(), y.stopPropagation(), y.currentTarget.blur(), c.emit(
2122
2134
  y.key === "ArrowUp" ? L.up : L.down
@@ -2125,7 +2137,7 @@ function sl() {
2125
2137
  value: o
2126
2138
  }
2127
2139
  ) }),
2128
- /* @__PURE__ */ n("span", { className: "search-btn search-submit-btn rounded", ref: h, children: /* @__PURE__ */ n(
2140
+ /* @__PURE__ */ n("span", { className: "search-btn search-submit-btn rounded", ref: f, children: /* @__PURE__ */ n(
2129
2141
  k,
2130
2142
  {
2131
2143
  onClick: () => u.reload(),
@@ -2135,9 +2147,9 @@ function sl() {
2135
2147
  }
2136
2148
  ) }),
2137
2149
  /* @__PURE__ */ n(
2138
- Qi,
2150
+ el,
2139
2151
  {
2140
- elementsIgnoredOnClickOutside: [h.current, f.current].filter(yn),
2152
+ elementsIgnoredOnClickOutside: [f.current, h.current].filter(yn),
2141
2153
  searchInputRect: d,
2142
2154
  visible: t,
2143
2155
  onHide: () => s(!1),
@@ -2148,29 +2160,29 @@ function sl() {
2148
2160
  )
2149
2161
  ] });
2150
2162
  }
2151
- function rl({ mode: e, onModeChange: t }) {
2152
- return /* @__PURE__ */ p("div", { className: "di search-mode-switch", children: [
2163
+ function ol({ mode: e, onModeChange: t }) {
2164
+ return /* @__PURE__ */ g("div", { className: "di search-mode-switch", children: [
2153
2165
  /* @__PURE__ */ n(k, { className: V({ on: e === "full" }), naked: !0, onClick: () => t("full"), children: /* @__PURE__ */ n(w, { i18nKey: "search.mode.full", children: "Full" }) }),
2154
2166
  /* @__PURE__ */ n(k, { className: V({ on: e === "context" }), naked: !0, onClick: () => t("context"), children: /* @__PURE__ */ n(w, { i18nKey: "search.mode.context", children: "Context" }) })
2155
2167
  ] });
2156
2168
  }
2157
- function al() {
2158
- const { defaultSearchMode: e } = x(M), [t, s] = g(e);
2159
- return /* @__PURE__ */ p(H, { children: [
2160
- t === "context" ? /* @__PURE__ */ n(qi, {}) : /* @__PURE__ */ n(sl, {}),
2161
- /* @__PURE__ */ n(rl, { mode: t, onModeChange: s })
2169
+ function il() {
2170
+ const { defaultSearchMode: e } = x(M), [t, s] = p(e);
2171
+ return /* @__PURE__ */ g(H, { children: [
2172
+ t === "context" ? /* @__PURE__ */ n(Yi, {}) : /* @__PURE__ */ n(al, {}),
2173
+ /* @__PURE__ */ n(ol, { mode: t, onModeChange: s })
2162
2174
  ] });
2163
2175
  }
2164
- const ol = ct("HeaderSearch")(al);
2165
- function il() {
2176
+ const ll = ct("HeaderSearch")(il);
2177
+ function cl() {
2166
2178
  const { items: e } = x(mt);
2167
2179
  return /* @__PURE__ */ n(H, { children: e });
2168
2180
  }
2169
- const ll = (e, t) => e.find((s) => s.relativePath.split("/").every(
2181
+ const dl = (e, t) => e.find((s) => s.relativePath.split("/").every(
2170
2182
  (a, o) => a === t[o] || a.startsWith(":")
2171
2183
  )), Nt = (e, t, s, r) => {
2172
2184
  if (t.length === 0) return r;
2173
- const a = ll(e, t);
2185
+ const a = dl(e, t);
2174
2186
  if (!a) return r;
2175
2187
  const o = s(a) || r, i = a.relativePath.split("/").length;
2176
2188
  return Nt(
@@ -2179,51 +2191,51 @@ const ll = (e, t) => e.find((s) => s.relativePath.split("/").every(
2179
2191
  s,
2180
2192
  o
2181
2193
  );
2182
- }, cl = (e, t) => {
2194
+ }, ul = (e, t) => {
2183
2195
  const s = t.split("/").filter((r) => r.length);
2184
2196
  return Nt(e, s, (r) => r.contextAction, null);
2185
- }, dl = (e, t) => {
2197
+ }, hl = (e, t) => {
2186
2198
  const s = t.split("/").filter((r) => r.length);
2187
2199
  return Nt(e, s, (r) => r.contextInfo, null);
2188
2200
  };
2189
- function ul({ routes: e }) {
2190
- const { pathname: t } = $(), { items: s } = x(mt), r = cl(e, t), a = !!r || s.length > 0;
2191
- return /* @__PURE__ */ n("div", { children: a && /* @__PURE__ */ p("div", { className: "di floor-2-toolbar", children: [
2192
- /* @__PURE__ */ n(il, {}),
2201
+ function fl({ routes: e }) {
2202
+ const { pathname: t } = $(), { items: s } = x(mt), r = ul(e, t), a = !!r || s.length > 0;
2203
+ return /* @__PURE__ */ n("div", { children: a && /* @__PURE__ */ g("div", { className: "di floor-2-toolbar", children: [
2204
+ /* @__PURE__ */ n(cl, {}),
2193
2205
  !!r && /* @__PURE__ */ n(r, { pathname: t, HasAuthorities: te })
2194
2206
  ] }) });
2195
2207
  }
2196
- const hl = "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 }) }) }), fl = ({ children: e }) => /* @__PURE__ */ n("div", { className: "di object-status", children: /* @__PURE__ */ n("div", { className: "status-elm", children: e }) }), ml = 3, pl = ({ info: { asset: e, assetGroups: t, gateway: s } }) => {
2197
- const r = s ? /* @__PURE__ */ p(w, { i18nKey: "page.contextInfo.connectedGateway", children: [
2208
+ const ml = "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 }) }) }), pl = ({ children: e }) => /* @__PURE__ */ n("div", { className: "di object-status", children: /* @__PURE__ */ n("div", { className: "status-elm", children: e }) }), gl = 3, yl = ({ info: { asset: e, assetGroups: t, gateway: s } }) => {
2209
+ const r = s ? /* @__PURE__ */ g(w, { i18nKey: "page.contextInfo.connectedGateway", children: [
2198
2210
  "Asset is connected to ",
2199
2211
  { gatewayName: s ? `"${s.name}"` : "" },
2200
2212
  ". Click to visit the Gateway"
2201
2213
  ] }) : "";
2202
- return /* @__PURE__ */ p("div", { className: "di object-holder", children: [
2214
+ return /* @__PURE__ */ g("div", { className: "di object-holder", children: [
2203
2215
  /* @__PURE__ */ n(Re, { children: e.name || e.urn }),
2204
- /* @__PURE__ */ n(fl, { children: /* @__PURE__ */ n(Ir, { asset: e }) }),
2205
- e.isGateway && /* @__PURE__ */ n("img", { src: kr, alt: "gateway", className: "gatewayIconContextInfo" }),
2216
+ /* @__PURE__ */ n(pl, { children: /* @__PURE__ */ n(Ir, { asset: e }) }),
2217
+ e.isGateway && /* @__PURE__ */ n("img", { src: Dr, alt: "gateway", className: "gatewayIconContextInfo" }),
2206
2218
  !e.isGateway && s && /* @__PURE__ */ n(ye, { direction: "bottom", content: r, children: /* @__PURE__ */ n(_, { to: `/assets/${s.id}`, children: /* @__PURE__ */ n(k, { className: "linkedToGatewayIconContextInfo-button", naked: !0, children: /* @__PURE__ */ n(
2207
2219
  "img",
2208
2220
  {
2209
- src: hl,
2221
+ src: ml,
2210
2222
  alt: "linked to gateway",
2211
2223
  className: "linkedToGatewayIconContextInfo"
2212
2224
  }
2213
2225
  ) }) }) }),
2214
2226
  /* @__PURE__ */ n("div", { className: "di object-groups", children: /* @__PURE__ */ n(
2215
- Dr,
2227
+ kr,
2216
2228
  {
2217
2229
  tags: t.map(({ id: a, name: o }) => ({
2218
2230
  key: a,
2219
2231
  name: o,
2220
2232
  url: ""
2221
2233
  })),
2222
- multipleItemsLabel: /* @__PURE__ */ p(w, { i18nKey: "page.contextInfo.assetGroupsCount", count: t.length, children: [
2234
+ multipleItemsLabel: /* @__PURE__ */ g(w, { i18nKey: "page.contextInfo.assetGroupsCount", count: t.length, children: [
2223
2235
  { count: t.length },
2224
2236
  " Asset Groups"
2225
2237
  ] }),
2226
- maxTagsInRow: ml,
2238
+ maxTagsInRow: gl,
2227
2239
  renderItem: ({ key: a }) => {
2228
2240
  const o = t.find(({ id: i }) => i === a);
2229
2241
  return o ? /* @__PURE__ */ n(Lr, { assetGroup: o, labelSize: "small" }) : null;
@@ -2231,7 +2243,7 @@ const hl = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
2231
2243
  }
2232
2244
  ) })
2233
2245
  ] });
2234
- }, gl = {
2246
+ }, wl = {
2235
2247
  all: {
2236
2248
  id: "page.contextInfo.search.assets.all",
2237
2249
  defaultValue: "{{elements}} Assets"
@@ -2240,7 +2252,7 @@ const hl = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
2240
2252
  id: "page.contextInfo.search.assets.some",
2241
2253
  defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Assets"
2242
2254
  }
2243
- }, yl = {
2255
+ }, vl = {
2244
2256
  all: {
2245
2257
  id: "page.contextInfo.search.assetGroups.all",
2246
2258
  defaultValue: "{{elements}} Asset Groups"
@@ -2249,7 +2261,7 @@ const hl = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
2249
2261
  id: "page.contextInfo.search.assetGroups.some",
2250
2262
  defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Asset Groups"
2251
2263
  }
2252
- }, wl = {
2264
+ }, Cl = {
2253
2265
  all: {
2254
2266
  id: "page.contextInfo.search.users.all",
2255
2267
  defaultValue: "{{elements}} Users"
@@ -2258,7 +2270,7 @@ const hl = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
2258
2270
  id: "page.contextInfo.search.users.some",
2259
2271
  defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Users"
2260
2272
  }
2261
- }, vl = {
2273
+ }, bl = {
2262
2274
  all: {
2263
2275
  id: "page.contextInfo.search.userGroups.all",
2264
2276
  defaultValue: "{{elements}} User Groups"
@@ -2267,7 +2279,7 @@ const hl = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
2267
2279
  id: "page.contextInfo.search.userGroups.some",
2268
2280
  defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} User Groups"
2269
2281
  }
2270
- }, Cl = {
2282
+ }, Sl = {
2271
2283
  all: {
2272
2284
  id: "page.contextInfo.search.roles.all",
2273
2285
  defaultValue: "{{elements}} Roles"
@@ -2276,7 +2288,7 @@ const hl = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
2276
2288
  id: "page.contextInfo.search.roles.some",
2277
2289
  defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Roles"
2278
2290
  }
2279
- }, bl = {
2291
+ }, Al = {
2280
2292
  all: {
2281
2293
  id: "page.contextInfo.search.notificationTemplates.all",
2282
2294
  defaultValue: "{{elements}} Templates"
@@ -2285,42 +2297,42 @@ const hl = "data:image/svg+xml,%3csvg%20id='icon_asset_linked_to_gateway'%20xmln
2285
2297
  id: "page.contextInfo.search.notificationTemplates.some",
2286
2298
  defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Templates"
2287
2299
  }
2288
- }, Sl = (e) => {
2300
+ }, Pl = (e) => {
2289
2301
  switch (e) {
2290
2302
  case "assets":
2291
- return gl;
2303
+ return wl;
2292
2304
  case "assetgroups":
2293
- return yl;
2305
+ return vl;
2294
2306
  case "users":
2295
- return wl;
2307
+ return Cl;
2296
2308
  case "usergroups":
2297
- return vl;
2309
+ return bl;
2298
2310
  case "roles":
2299
- return Cl;
2311
+ return Sl;
2300
2312
  case "notificationtemplates":
2301
- return bl;
2313
+ return Al;
2302
2314
  default:
2303
2315
  throw Error(`context ${e} not supported`);
2304
2316
  }
2305
2317
  }, qt = ({ tooltip: e, children: t }) => e ? /* @__PURE__ */ n(ye, { content: e, children: t }) : t;
2306
- function Al(e, t) {
2318
+ function xl(e, t) {
2307
2319
  return e ? t === !1 ? "10000+" : e.toString() : "0";
2308
2320
  }
2309
- function Pl({
2321
+ function Tl({
2310
2322
  info: { elements: e, totalElements: t, totalElementsAccurate: s, context: r, customTranslations: a },
2311
2323
  tooltip: o
2312
2324
  }) {
2313
- const { t: i } = G(), l = a || Sl(r), d = e === t ? /* @__PURE__ */ n("span", { className: "search-result", children: /* @__PURE__ */ n(qt, { 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
+ const { t: i } = G(), l = a || Pl(r), d = e === t ? /* @__PURE__ */ n("span", { className: "search-result", children: /* @__PURE__ */ n(qt, { tooltip: s ? o : /* @__PURE__ */ n(w, { i18nKey: "asset.search.count.tooltip", children: "Please refine your search to narrow down the result" }), children: /* @__PURE__ */ n(
2314
2326
  "span",
2315
2327
  {
2316
2328
  dangerouslySetInnerHTML: {
2317
2329
  __html: i(l.all.id, {
2318
- elements: Al(t, s),
2330
+ elements: xl(t, s),
2319
2331
  defaultValue: l.all.defaultValue
2320
2332
  })
2321
2333
  }
2322
2334
  }
2323
- ) }) }) : /* @__PURE__ */ p("span", { className: "search-result", children: [
2335
+ ) }) }) : /* @__PURE__ */ g("span", { className: "search-result", children: [
2324
2336
  /* @__PURE__ */ n(
2325
2337
  "img",
2326
2338
  {
@@ -2349,16 +2361,16 @@ function Pl({
2349
2361
  ] });
2350
2362
  return /* @__PURE__ */ n(Re, { children: d });
2351
2363
  }
2352
- function xl() {
2364
+ function El() {
2353
2365
  const { contextInfo: e, tooltip: t } = x(ae);
2354
2366
  if (e)
2355
2367
  switch (e.type) {
2356
2368
  case "string":
2357
2369
  return /* @__PURE__ */ n(Re, { children: e.value });
2358
2370
  case "search":
2359
- return /* @__PURE__ */ n(Pl, { info: e, tooltip: t });
2371
+ return /* @__PURE__ */ n(Tl, { info: e, tooltip: t });
2360
2372
  case "asset":
2361
- return /* @__PURE__ */ n(pl, { info: e });
2373
+ return /* @__PURE__ */ n(yl, { info: e });
2362
2374
  case "assetGroup":
2363
2375
  return /* @__PURE__ */ n(Re, { children: e.assetGroup.displayName || e.assetGroup.name });
2364
2376
  default:
@@ -2367,11 +2379,11 @@ function xl() {
2367
2379
  else
2368
2380
  return null;
2369
2381
  }
2370
- function Tl({ routes: e }) {
2371
- const { pathname: t } = $(), s = dl(e, t);
2372
- return s ? /* @__PURE__ */ n(s, { pathname: t }) : /* @__PURE__ */ n(xl, {});
2382
+ function Nl({ routes: e }) {
2383
+ const { pathname: t } = $(), s = hl(e, t);
2384
+ return s ? /* @__PURE__ */ n(s, { pathname: t }) : /* @__PURE__ */ n(El, {});
2373
2385
  }
2374
- const El = (e, t, s) => {
2386
+ const Rl = (e, t, s) => {
2375
2387
  if (s.indexOf(":") === 0) {
2376
2388
  const r = t.length + 1, a = e.substring(r).indexOf("/"), o = e.substring(r, a > 0 ? a : void 0);
2377
2389
  return `${t}/${o}`;
@@ -2382,7 +2394,7 @@ const El = (e, t, s) => {
2382
2394
  let o = se.filterRoutes(a, r, s);
2383
2395
  const i = e.split("/").filter((l) => l.length).slice(0, t - 1).reduce((l, u) => (o = (o.find((c) => c.relativePath === u) || o.find((c) => c.relativePath.indexOf(":") === 0))?.childRoutes?.filter((c) => !c.show || c.show(s, r)) ?? [], `${l}/${u}`), "");
2384
2396
  return o = o.filter((l) => !l.excludeFromNavigation), o.map((l) => {
2385
- const u = El(e, i, l.relativePath);
2397
+ const u = Rl(e, i, l.relativePath);
2386
2398
  return {
2387
2399
  path: u,
2388
2400
  label: l.label,
@@ -2401,7 +2413,7 @@ function us(e, t) {
2401
2413
  if (t.label && t.label.id)
2402
2414
  return `${e}-icon-${ds(t?.label?.id)}`;
2403
2415
  }
2404
- function Nl(e, t) {
2416
+ function Il(e, t) {
2405
2417
  if (t.label && t.label.id)
2406
2418
  return `${e}-icon-${ds(t?.label?.id)}`;
2407
2419
  }
@@ -2415,7 +2427,7 @@ function et() {
2415
2427
  return e;
2416
2428
  }, et.apply(null, arguments);
2417
2429
  }
2418
- var Rl = function(t) {
2430
+ var Dl = function(t) {
2419
2431
  return /* @__PURE__ */ F.createElement("svg", et({
2420
2432
  xmlns: "http://www.w3.org/2000/svg",
2421
2433
  width: 16,
@@ -2434,26 +2446,26 @@ function hs(e, t) {
2434
2446
  function fs({ routeLink: e }) {
2435
2447
  if (e.iconSvg) {
2436
2448
  const t = us("mainnavi", e);
2437
- return /* @__PURE__ */ n("li", { children: /* @__PURE__ */ p(_, { to: e.path, children: [
2449
+ return /* @__PURE__ */ n("li", { children: /* @__PURE__ */ g(_, { to: e.path, children: [
2438
2450
  hs(e.iconSvg, t),
2439
2451
  !!e.label && /* @__PURE__ */ n(w, { i18nKey: e.label.id, children: e.label.defaultValue }),
2440
2452
  /* @__PURE__ */ n(Ye, { authorities: e.requiredAuthorities })
2441
2453
  ] }) }, e.path);
2442
2454
  } else
2443
- return /* @__PURE__ */ n("li", { style: { backgroundImage: `url(${e.iconLight || ""})` }, children: /* @__PURE__ */ p(_, { to: e.path, children: [
2455
+ return /* @__PURE__ */ n("li", { style: { backgroundImage: `url(${e.iconLight || ""})` }, children: /* @__PURE__ */ g(_, { to: e.path, children: [
2444
2456
  !!e.label && /* @__PURE__ */ n(w, { i18nKey: e.label.id, children: e.label.defaultValue }),
2445
2457
  /* @__PURE__ */ n(Ye, { authorities: e.requiredAuthorities })
2446
2458
  ] }) }, e.path);
2447
2459
  }
2448
- function Il({
2460
+ function kl({
2449
2461
  navGroup: e,
2450
2462
  routeLinks: t,
2451
2463
  separator: s
2452
2464
  }) {
2453
2465
  if (t.length === 0)
2454
2466
  return null;
2455
- const r = Nl("mainnavi", e);
2456
- return /* @__PURE__ */ p(
2467
+ const r = Il("mainnavi", e);
2468
+ return /* @__PURE__ */ g(
2457
2469
  "li",
2458
2470
  {
2459
2471
  className: V("has-sub", {
@@ -2467,17 +2479,17 @@ function Il({
2467
2479
  }
2468
2480
  );
2469
2481
  }
2470
- function kl() {
2471
- const [e, t] = g(null), s = $(), { user: r } = x(M), { contextInfo: a } = x(ae), o = I(() => {
2472
- Mr().then((h) => {
2482
+ function Ll() {
2483
+ const [e, t] = p(null), s = $(), { user: r } = x(M), { contextInfo: a } = x(ae), o = I(() => {
2484
+ Mr().then((f) => {
2473
2485
  t(
2474
- h ? {
2475
- path: h,
2486
+ f ? {
2487
+ path: f,
2476
2488
  label: {
2477
2489
  id: "route.label.startpage.name",
2478
2490
  defaultValue: "Home"
2479
2491
  },
2480
- iconSvg: Rl,
2492
+ iconSvg: Dl,
2481
2493
  active: !1
2482
2494
  } : null
2483
2495
  );
@@ -2485,33 +2497,33 @@ function kl() {
2485
2497
  }, []);
2486
2498
  S(() => o(), [o]);
2487
2499
  function i() {
2488
- const h = cs(s.pathname, 1, a, r);
2489
- return e ? [e].concat(h) : h;
2500
+ const f = cs(s.pathname, 1, a, r);
2501
+ return e ? [e].concat(f) : f;
2490
2502
  }
2491
2503
  const l = i(), u = [], d = se.filterNavGroupsByEnabledApps();
2492
- l.forEach((h, f) => {
2493
- d.every((m) => !m.paths.includes(h.path)) && u.push({
2494
- index: f,
2495
- component: /* @__PURE__ */ n(fs, { routeLink: h }, h.path)
2504
+ l.forEach((f, h) => {
2505
+ d.every((m) => !m.paths.includes(f.path)) && u.push({
2506
+ index: h,
2507
+ component: /* @__PURE__ */ n(fs, { routeLink: f }, f.path)
2496
2508
  });
2497
- }), d.forEach((h) => {
2498
- const f = l.filter((m) => h.paths.includes(m.path));
2499
- f.length && u.push({
2500
- index: l.findIndex((m) => m.path === f[0].path),
2509
+ }), d.forEach((f) => {
2510
+ const h = l.filter((m) => f.paths.includes(m.path));
2511
+ h.length && u.push({
2512
+ index: l.findIndex((m) => m.path === h[0].path),
2501
2513
  component: /* @__PURE__ */ n(
2502
- Il,
2514
+ kl,
2503
2515
  {
2504
- navGroup: h,
2505
- routeLinks: f,
2506
- separator: h.separator
2516
+ navGroup: f,
2517
+ routeLinks: h,
2518
+ separator: f.separator
2507
2519
  },
2508
- `group ${h.icon ?? h.label.id}`
2520
+ `group ${f.icon ?? f.label.id}`
2509
2521
  )
2510
2522
  });
2511
2523
  });
2512
- const c = l.find((h) => h.active);
2513
- return /* @__PURE__ */ p("div", { className: "di modules", children: [
2514
- /* @__PURE__ */ p("div", { className: "modules-trg", children: [
2524
+ const c = l.find((f) => f.active);
2525
+ return /* @__PURE__ */ g("div", { className: "di modules", children: [
2526
+ /* @__PURE__ */ g("div", { className: "modules-trg", children: [
2515
2527
  /* @__PURE__ */ n(
2516
2528
  "div",
2517
2529
  {
@@ -2522,26 +2534,26 @@ function kl() {
2522
2534
  )
2523
2535
  }
2524
2536
  ),
2525
- /* @__PURE__ */ n("div", { className: "modules-box", children: /* @__PURE__ */ n("ul", { children: u.sort((h, f) => h.index - f.index).map(({ component: h }) => h) }) })
2537
+ /* @__PURE__ */ n("div", { className: "modules-box", children: /* @__PURE__ */ n("ul", { children: u.sort((f, h) => f.index - h.index).map(({ component: f }) => f) }) })
2526
2538
  ] }),
2527
2539
  /* @__PURE__ */ n("div", { className: "modules-info", children: c && typeof c.label == "object" && /* @__PURE__ */ n(_, { to: c.path, children: /* @__PURE__ */ n("span", { children: !!c.label && /* @__PURE__ */ n(w, { i18nKey: c.label.id, children: c.label.defaultValue }) }) }) })
2528
2540
  ] });
2529
2541
  }
2530
- function Dl(e) {
2542
+ function Ml(e) {
2531
2543
  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);
2532
2544
  }
2533
- function Ll(e) {
2545
+ function Vl(e) {
2534
2546
  const t = e.split("/").filter((s) => s.length);
2535
- return t.length >= 2 && Dl(t[1]) ? 3 : t.length >= 2 ? 2 : 1;
2547
+ return t.length >= 2 && Ml(t[1]) ? 3 : t.length >= 2 ? 2 : 1;
2536
2548
  }
2537
- function Ml(e, t) {
2549
+ function Ul(e, t) {
2538
2550
  return e ? /* @__PURE__ */ n(e, { id: t, style: { width: "16px", height: "16px" } }) : null;
2539
2551
  }
2540
- function Vl(e, t) {
2552
+ function Fl(e, t) {
2541
2553
  return e ? /* @__PURE__ */ n(e, { id: t, style: { fill: "white", width: "16px", height: "16px" } }) : null;
2542
2554
  }
2543
- function Ul() {
2544
- const { user: e } = x(M), [t, s] = g(!1), { pathname: r, search: a } = $(), { contextInfo: o } = x(ae), i = "uiConfigurations/subnavicollapsed";
2555
+ function Ol() {
2556
+ const { user: e } = x(M), [t, s] = p(!1), { pathname: r, search: a } = $(), { contextInfo: o } = x(ae), i = "uiConfigurations/subnavicollapsed";
2545
2557
  if (!e)
2546
2558
  throw new Error("user not found");
2547
2559
  const l = async (c) => {
@@ -2552,46 +2564,46 @@ function Ul() {
2552
2564
  s(await gt(i));
2553
2565
  })();
2554
2566
  }, []);
2555
- const u = Ll(r);
2567
+ const u = Vl(r);
2556
2568
  if (u < 2)
2557
2569
  return null;
2558
2570
  const d = cs(r, u, o, e).filter((c) => c.iconSvg || c.iconLight).filter((c) => typeof c.label == "object");
2559
- return d.length <= 1 ? null : /* @__PURE__ */ n("div", { className: `di main-box-nav ${t ? "" : "show"}`, children: /* @__PURE__ */ p("ul", { children: [
2571
+ return d.length <= 1 ? null : /* @__PURE__ */ n("div", { className: `di main-box-nav ${t ? "" : "show"}`, children: /* @__PURE__ */ g("ul", { children: [
2560
2572
  /* @__PURE__ */ n("li", { onClick: () => l(!t), children: /* @__PURE__ */ n("div", { className: "icon triangle" }) }),
2561
2573
  d.map((c) => {
2562
- const h = c.label, f = c.active ? "selected" : "", m = us("subnavi", c), v = (c.active ? Vl(c.iconSvg, m) : Ml(c.iconSvg, m)) || null, y = (c.active ? c.iconLight : c.iconDark) || "", b = new URLSearchParams(a), C = new URLSearchParams();
2563
- return b.has("query") && C.set("query", b.get("query") || ""), /* @__PURE__ */ n("li", { className: f, children: /* @__PURE__ */ p(
2574
+ const f = c.label, h = c.active ? "selected" : "", m = us("subnavi", c), C = (c.active ? Fl(c.iconSvg, m) : Ul(c.iconSvg, m)) || null, y = (c.active ? c.iconLight : c.iconDark) || "", v = new URLSearchParams(a), b = new URLSearchParams();
2575
+ return v.has("query") && b.set("query", v.get("query") || ""), /* @__PURE__ */ n("li", { className: h, children: /* @__PURE__ */ g(
2564
2576
  _,
2565
2577
  {
2566
2578
  to: {
2567
2579
  pathname: c.path,
2568
- search: C.toString()
2580
+ search: b.toString()
2569
2581
  },
2570
2582
  children: [
2571
2583
  /* @__PURE__ */ n(
2572
- so,
2584
+ ro,
2573
2585
  {
2574
2586
  disabled: !t,
2575
- content: h ? /* @__PURE__ */ n(w, { i18nKey: h.id, children: h.defaultValue }) : "",
2576
- children: /* @__PURE__ */ n("span", { className: "icon-holder", children: v || /* @__PURE__ */ n("span", { className: "icon", style: { backgroundImage: `url(${y})` } }) })
2587
+ content: f ? /* @__PURE__ */ n(w, { i18nKey: f.id, children: f.defaultValue }) : "",
2588
+ children: /* @__PURE__ */ n("span", { className: "icon-holder", children: C || /* @__PURE__ */ n("span", { className: "icon", style: { backgroundImage: `url(${y})` } }) })
2577
2589
  }
2578
2590
  ),
2579
2591
  /* @__PURE__ */ n(Ye, { authorities: c.requiredAuthorities }),
2580
- /* @__PURE__ */ n("span", { className: "text", children: !!h && /* @__PURE__ */ n(w, { i18nKey: h.id, children: h.defaultValue }) })
2592
+ /* @__PURE__ */ n("span", { className: "text", children: !!f && /* @__PURE__ */ n(w, { i18nKey: f.id, children: f.defaultValue }) })
2581
2593
  ]
2582
2594
  }
2583
2595
  ) }, c.path);
2584
2596
  })
2585
2597
  ] }) });
2586
2598
  }
2587
- const Fl = ({ children: e }) => {
2588
- const [t, s] = g({}), [r, a] = g(!1);
2599
+ const _l = ({ children: e }) => {
2600
+ const [t, s] = p({}), [r, a] = p(!1);
2589
2601
  return S(() => {
2590
2602
  async function o() {
2591
2603
  a(!0);
2592
2604
  try {
2593
- if (Q(["READ_ASSET"])) {
2594
- const i = await Ha("assets");
2605
+ if (X(["READ_ASSET"])) {
2606
+ const i = await Ba("assets");
2595
2607
  s(i);
2596
2608
  }
2597
2609
  } finally {
@@ -2609,9 +2621,9 @@ const Fl = ({ children: e }) => {
2609
2621
  children: e
2610
2622
  }
2611
2623
  );
2612
- }, Ol = (e) => /\d/.test(e), ms = (e, t, s) => {
2624
+ }, Kl = (e) => /\d/.test(e), ms = (e, t, s) => {
2613
2625
  let r = t[0];
2614
- if (r = Ol(r) || r.includes(":") ? ":param:" : r, t.length === 1)
2626
+ if (r = Kl(r) || r.includes(":") ? ":param:" : r, t.length === 1)
2615
2627
  return { ...e, [r]: { ...e[r], authorities: s } };
2616
2628
  {
2617
2629
  const a = e[r] ? e[r] : {
@@ -2619,12 +2631,12 @@ const Fl = ({ children: e }) => {
2619
2631
  };
2620
2632
  return { ...e, [r]: { ...ms(a, t.slice(1), s) } };
2621
2633
  }
2622
- }, _l = (e, t, s) => {
2634
+ }, Hl = (e, t, s) => {
2623
2635
  const r = t.split("/").filter((a) => a !== "");
2624
2636
  return ms(e, r, s);
2625
- }, Kl = ({ children: e }) => {
2626
- const [t, s] = g(!1), [r, a] = g({}), o = () => s(!0), i = (l, u) => {
2627
- const d = _l(r, l, u);
2637
+ }, Bl = ({ children: e }) => {
2638
+ const [t, s] = p(!1), [r, a] = p({}), o = () => s(!0), i = (l, u) => {
2639
+ const d = Hl(r, l, u);
2628
2640
  a(d);
2629
2641
  };
2630
2642
  return /* @__PURE__ */ n(
@@ -2640,8 +2652,8 @@ const Fl = ({ children: e }) => {
2640
2652
  }
2641
2653
  );
2642
2654
  };
2643
- function Hl({ children: e }) {
2644
- const t = B(/* @__PURE__ */ new Map()), s = B(0), [r, a] = g([]), o = I((i) => {
2655
+ function Gl({ children: e }) {
2656
+ const t = B(/* @__PURE__ */ new Map()), s = B(0), [r, a] = p([]), o = I((i) => {
2645
2657
  const l = t.current, u = (s.current += 1).toString();
2646
2658
  return l.set(u, i), a([...l.values()]), () => {
2647
2659
  l.delete(u), a([...l.values()]);
@@ -2658,16 +2670,16 @@ function Hl({ children: e }) {
2658
2670
  }
2659
2671
  );
2660
2672
  }
2661
- const Bl = F.createContext({
2673
+ const $l = F.createContext({
2662
2674
  connectionStatus: "",
2663
2675
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2664
2676
  setConnectionStatus: (e) => {
2665
2677
  }
2666
- }), Gl = ({ children: e }) => {
2667
- const [t, s] = g("");
2678
+ }), zl = ({ children: e }) => {
2679
+ const [t, s] = p("");
2668
2680
  return S(() => {
2669
2681
  }, []), /* @__PURE__ */ n(
2670
- Bl.Provider,
2682
+ $l.Provider,
2671
2683
  {
2672
2684
  value: {
2673
2685
  connectionStatus: t,
@@ -2676,7 +2688,7 @@ const Bl = F.createContext({
2676
2688
  children: e
2677
2689
  }
2678
2690
  );
2679
- }, $l = "uiConfigurations/assetcols", Xt = [
2691
+ }, Wl = "uiConfigurations/assetcols", Xt = [
2680
2692
  {
2681
2693
  key: "name",
2682
2694
  selected: !0
@@ -2708,44 +2720,44 @@ function Zt() {
2708
2720
  }
2709
2721
  return Xt;
2710
2722
  }
2711
- function zl(e) {
2723
+ function ql(e) {
2712
2724
  const t = e.findIndex((s) => s.key === "connection");
2713
2725
  return t !== -1 ? [...e.slice(0, t), ...e.slice(t + 1), e[t]] : e;
2714
2726
  }
2715
- function Wl(e, t) {
2716
- const r = zl(Ls(e, "key")).map(({ key: l }) => l), a = t.map(({ key: l }) => l), o = t.filter(({ key: l }) => r.includes(l)), i = e.filter(({ key: l }) => !a.includes(l));
2727
+ function jl(e, t) {
2728
+ const r = ql(Ls(e, "key")).map(({ key: l }) => l), a = t.map(({ key: l }) => l), o = t.filter(({ key: l }) => r.includes(l)), i = e.filter(({ key: l }) => !a.includes(l));
2717
2729
  return [...o, ...i];
2718
2730
  }
2719
2731
  function Qt(e, t) {
2720
2732
  return e.filter(({ key: s }) => !t.find((r) => r.key === s) && s.startsWith("dp."));
2721
2733
  }
2722
- function ql(e) {
2734
+ function Yl(e) {
2723
2735
  return e.filter(({ key: t, deletable: s }) => s && !t.startsWith("_")).map(({ key: t }) => ({
2724
2736
  key: t,
2725
2737
  selected: !1
2726
2738
  }));
2727
2739
  }
2728
- function jl(e) {
2729
- const [t, s] = g([]);
2740
+ function Xl(e) {
2741
+ const [t, s] = p([]);
2730
2742
  S(() => {
2731
2743
  async function c() {
2732
2744
  try {
2733
- const h = await gt($l);
2734
- s(h);
2745
+ const f = await gt(Wl);
2746
+ s(f);
2735
2747
  } catch {
2736
2748
  s(Zt());
2737
2749
  }
2738
2750
  }
2739
2751
  c();
2740
2752
  }, []);
2741
- const [r, a] = g(0);
2753
+ const [r, a] = p(0);
2742
2754
  S(() => {
2743
2755
  const c = () => {
2744
- a((h) => h + 1);
2756
+ a((f) => f + 1);
2745
2757
  };
2746
2758
  return Vr(c), () => Ur(c);
2747
2759
  }, []);
2748
- const [o, i] = g([]), { assetShadowKeyTypes: l } = x(Sn);
2760
+ const [o, i] = p([]), { assetShadowKeyTypes: l } = x(Sn);
2749
2761
  S(() => {
2750
2762
  i(
2751
2763
  Object.keys(l).map((c) => ({
@@ -2755,18 +2767,18 @@ function jl(e) {
2755
2767
  }))
2756
2768
  );
2757
2769
  }, [l]);
2758
- const [u, d] = g(
2770
+ const [u, d] = p(
2759
2771
  Qt(o, e)
2760
2772
  );
2761
2773
  return S(() => {
2762
2774
  d(Qt(o, e));
2763
- }, [o, e]), Ve(() => Wl(
2764
- [...Zt(), ...ql(e), ...u],
2775
+ }, [o, e]), Ve(() => jl(
2776
+ [...Zt(), ...Yl(e), ...u],
2765
2777
  t
2766
2778
  ), [t, u, e, r]);
2767
2779
  }
2768
- const Yl = "uiConfigurations/assetcols";
2769
- function Xl(e) {
2780
+ const Zl = "uiConfigurations/assetcols";
2781
+ function Ql(e) {
2770
2782
  const { selected: t, unselected: s } = e.reduce(
2771
2783
  (r, a) => {
2772
2784
  const { selected: o, unselected: i } = r;
@@ -2779,32 +2791,32 @@ function Xl(e) {
2779
2791
  );
2780
2792
  return [...t, ...s];
2781
2793
  }
2782
- const Zl = ({ children: e }) => {
2783
- const { assetProperties: t } = An(), [s, r] = g(!1), a = jl(t), [o, i] = g(a), [l, u] = g(a);
2794
+ const Jl = ({ children: e }) => {
2795
+ const { assetProperties: t } = An(), [s, r] = p(!1), a = Xl(t), [o, i] = p(a), [l, u] = p(a);
2784
2796
  S(() => {
2785
2797
  i(a), u(a);
2786
2798
  }, [a]);
2787
2799
  const d = I((m) => {
2788
- i((v) => {
2789
- const y = v.findIndex((b) => b.key === m);
2800
+ i((C) => {
2801
+ const y = C.findIndex((v) => v.key === m);
2790
2802
  if (y !== -1) {
2791
- const b = v[y];
2803
+ const v = C[y];
2792
2804
  return [
2793
- ...v.slice(0, y),
2794
- { ...b, selected: !b.selected },
2795
- ...v.slice(y + 1)
2805
+ ...C.slice(0, y),
2806
+ { ...v, selected: !v.selected },
2807
+ ...C.slice(y + 1)
2796
2808
  ];
2797
2809
  }
2798
- return v;
2810
+ return C;
2799
2811
  });
2800
2812
  }, []), c = I(async () => {
2801
- const m = Xl(o);
2802
- await Rn(Yl, m), i(m), u(m);
2803
- }, [o]), h = I(() => {
2813
+ const m = Ql(o);
2814
+ await Rn(Zl, m), i(m), u(m);
2815
+ }, [o]), f = I(() => {
2804
2816
  i(l);
2805
- }, [l]), f = I((m) => {
2817
+ }, [l]), h = I((m) => {
2806
2818
  i(
2807
- (v) => v.slice().sort((y, b) => m.indexOf(y.key) - m.indexOf(b.key))
2819
+ (C) => C.slice().sort((y, v) => m.indexOf(y.key) - m.indexOf(v.key))
2808
2820
  );
2809
2821
  }, []);
2810
2822
  return /* @__PURE__ */ n(
@@ -2816,14 +2828,14 @@ const Zl = ({ children: e }) => {
2816
2828
  setPickerVisible: r,
2817
2829
  toggleColumn: d,
2818
2830
  synchronizeWithBackend: c,
2819
- resetColumns: h,
2820
- setColumnsOrder: f
2831
+ resetColumns: f,
2832
+ setColumnsOrder: h
2821
2833
  },
2822
2834
  children: e
2823
2835
  }
2824
2836
  );
2825
2837
  }, tt = () => navigator.userAgent.indexOf("MSIE") !== -1 || navigator.appVersion.indexOf("Trident/") > -1, nt = () => window.navigator.userAgent.indexOf("Edge") > -1;
2826
- async function Ql(e) {
2838
+ async function ec(e) {
2827
2839
  const t = await fetch(e);
2828
2840
  if (t.status === 404)
2829
2841
  return null;
@@ -2833,7 +2845,7 @@ async function Ql(e) {
2833
2845
  }), Ms(new XMLSerializer().serializeToString(r));
2834
2846
  }
2835
2847
  let de;
2836
- class Jl extends yt {
2848
+ class tc extends yt {
2837
2849
  constructor() {
2838
2850
  super(...arguments), this.state = {
2839
2851
  documentContent: "",
@@ -2844,7 +2856,7 @@ class Jl extends yt {
2844
2856
  tt() || nt() || !t || (this.setState({
2845
2857
  fetching: !0,
2846
2858
  error: !1
2847
- }), de = Pe(Ql(t)), de.promise.then((s) => {
2859
+ }), de = Pe(ec(t)), de.promise.then((s) => {
2848
2860
  s != null ? this.setState({
2849
2861
  documentContent: s
2850
2862
  }) : this.setState({
@@ -2874,9 +2886,9 @@ class Jl extends yt {
2874
2886
  }
2875
2887
  render() {
2876
2888
  const { url: t } = this.props, { documentContent: s, fetching: r, error: a } = this.state;
2877
- return /* @__PURE__ */ p(ge, { show: r, children: [
2889
+ return /* @__PURE__ */ g(ge, { show: r, children: [
2878
2890
  a && /* @__PURE__ */ n(
2879
- Qa,
2891
+ Ja,
2880
2892
  {
2881
2893
  type: "error",
2882
2894
  message: {
@@ -2891,7 +2903,7 @@ class Jl extends yt {
2891
2903
  1. Iframe must have src attribute set (https://github.com/julmot/mark.js/issues/357)
2892
2904
  2. Content of the iframe must exist also outside the iframe - that's why there is the div below
2893
2905
  */
2894
- s && /* @__PURE__ */ p(H, { children: [
2906
+ s && /* @__PURE__ */ g(H, { children: [
2895
2907
  /* @__PURE__ */ n(
2896
2908
  "div",
2897
2909
  {
@@ -2915,14 +2927,14 @@ class Jl extends yt {
2915
2927
  ] });
2916
2928
  }
2917
2929
  }
2918
- const Ge = 300, Jt = 420, ec = 270, tc = 150, nc = 150, sc = 40;
2919
- function rc({ children: e, className: t }) {
2920
- const [s, r] = g(0), [a, o] = g(nc), [i, l] = g(window.innerWidth - Ge - sc), [u, d] = g(Ge), [c, h] = g(Jt), f = B(null), m = (b, C, P, D) => {
2930
+ const Ge = 300, Jt = 420, nc = 270, sc = 150, rc = 150, ac = 40;
2931
+ function oc({ children: e, className: t }) {
2932
+ const [s, r] = p(0), [a, o] = p(rc), [i, l] = p(window.innerWidth - Ge - ac), [u, d] = p(Ge), [c, f] = p(Jt), h = B(null), m = (v, b, A, D) => {
2921
2933
  r(D.width);
2922
- }, v = (b, C, P, D) => {
2923
- r(0), d(u + D.width), h(c + D.height), l(i - D.width);
2924
- }, y = (b, { lastX: C, lastY: P }) => {
2925
- l(Math.min(Math.max(0, i + C), window.innerWidth - u)), o(Math.min(Math.max(0, a + P), window.innerHeight - c));
2934
+ }, C = (v, b, A, D) => {
2935
+ r(0), d(u + D.width), f(c + D.height), l(i - D.width);
2936
+ }, y = (v, { lastX: b, lastY: A }) => {
2937
+ l(Math.min(Math.max(0, i + b), window.innerWidth - u)), o(Math.min(Math.max(0, a + A), window.innerHeight - c));
2926
2938
  };
2927
2939
  return /* @__PURE__ */ n(
2928
2940
  "div",
@@ -2933,7 +2945,7 @@ function rc({ children: e, className: t }) {
2933
2945
  left: i - s
2934
2946
  },
2935
2947
  children: /* @__PURE__ */ n(
2936
- wo,
2948
+ vo,
2937
2949
  {
2938
2950
  defaultClassName: "wrapper",
2939
2951
  handle: ".handle",
@@ -2941,16 +2953,16 @@ function rc({ children: e, className: t }) {
2941
2953
  x: 0,
2942
2954
  y: 0
2943
2955
  },
2944
- nodeRef: f,
2956
+ nodeRef: h,
2945
2957
  onStop: y,
2946
2958
  children: /* @__PURE__ */ n(
2947
- yo,
2959
+ wo,
2948
2960
  {
2949
- ref: (b) => {
2950
- f.current = b?.resizable ?? null;
2961
+ ref: (v) => {
2962
+ h.current = v?.resizable ?? null;
2951
2963
  },
2952
2964
  onResize: m,
2953
- onResizeStop: v,
2965
+ onResizeStop: C,
2954
2966
  enable: {
2955
2967
  bottomLeft: !0
2956
2968
  },
@@ -2958,8 +2970,8 @@ function rc({ children: e, className: t }) {
2958
2970
  width: Ge,
2959
2971
  height: Jt
2960
2972
  },
2961
- minWidth: ec,
2962
- minHeight: tc,
2973
+ minWidth: nc,
2974
+ minHeight: sc,
2963
2975
  size: {
2964
2976
  width: u,
2965
2977
  height: c
@@ -2976,11 +2988,11 @@ const $e = {
2976
2988
  separateWordSearch: !1,
2977
2989
  iframes: !0
2978
2990
  };
2979
- function ac({ children: e, phrase: t }) {
2991
+ function ic({ children: e, phrase: t }) {
2980
2992
  const s = B(null), r = I(
2981
2993
  (a) => {
2982
2994
  if (a) {
2983
- const o = new vo(a);
2995
+ const o = new Co(a);
2984
2996
  s.current = o, o.mark(t, $e);
2985
2997
  }
2986
2998
  },
@@ -2991,13 +3003,13 @@ function ac({ children: e, phrase: t }) {
2991
3003
  a && (a.unmark($e), a.mark(t, $e));
2992
3004
  }, [t]), /* @__PURE__ */ n("div", { ref: r, children: e });
2993
3005
  }
2994
- const oc = ({ open: e, phrase: t, onPhraseChange: s }) => /* @__PURE__ */ n(
3006
+ const lc = ({ open: e, phrase: t, onPhraseChange: s }) => /* @__PURE__ */ n(
2995
3007
  "div",
2996
3008
  {
2997
3009
  className: V("search-bar", {
2998
3010
  "is-open": e
2999
3011
  }),
3000
- children: /* @__PURE__ */ p("div", { className: "search-input-wrapper", children: [
3012
+ children: /* @__PURE__ */ g("div", { className: "search-input-wrapper", children: [
3001
3013
  /* @__PURE__ */ n(
3002
3014
  "input",
3003
3015
  {
@@ -3011,7 +3023,7 @@ const oc = ({ open: e, phrase: t, onPhraseChange: s }) => /* @__PURE__ */ n(
3011
3023
  /* @__PURE__ */ n("img", { className: "lupe", src: fe, alt: "" })
3012
3024
  ] })
3013
3025
  }
3014
- ), ic = "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", lc = "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", cc = ({ viewMode: e, onSearchModeClick: t, onViewModeToggle: s, onCloseClick: r }) => /* @__PURE__ */ p("div", { className: "title-bar", children: [
3026
+ ), cc = "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", dc = "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", uc = ({ viewMode: e, onSearchModeClick: t, onViewModeToggle: s, onCloseClick: r }) => /* @__PURE__ */ g("div", { className: "title-bar", children: [
3015
3027
  /* @__PURE__ */ n(
3016
3028
  "div",
3017
3029
  {
@@ -3021,7 +3033,7 @@ const oc = ({ open: e, phrase: t, onPhraseChange: s }) => /* @__PURE__ */ n(
3021
3033
  children: /* @__PURE__ */ n("h1", { children: /* @__PURE__ */ n(w, { i18nKey: "helpPanel.title", children: "Help" }) })
3022
3034
  }
3023
3035
  ),
3024
- /* @__PURE__ */ p("div", { className: "actions", children: [
3036
+ /* @__PURE__ */ g("div", { className: "actions", children: [
3025
3037
  tt() || nt() ? /* @__PURE__ */ n("div", { className: "search-unavailable", children: /* @__PURE__ */ n(
3026
3038
  ye,
3027
3039
  {
@@ -3029,16 +3041,16 @@ const oc = ({ open: e, phrase: t, onPhraseChange: s }) => /* @__PURE__ */ n(
3029
3041
  children: /* @__PURE__ */ n(k, { naked: !0, disabled: !0, children: /* @__PURE__ */ n("img", { src: fe, alt: "search", style: { width: 24, height: 24 } }) })
3030
3042
  }
3031
3043
  ) }) : /* @__PURE__ */ n(k, { naked: !0, onClick: t, "data-testid": "search-button", children: /* @__PURE__ */ n("img", { src: fe, alt: "search", style: { width: 24, height: 24 } }) }),
3032
- /* @__PURE__ */ n(k, { naked: !0, onClick: s, children: /* @__PURE__ */ n("img", { src: e === "modal" ? ic : lc, alt: "dock" }) }),
3044
+ /* @__PURE__ */ n(k, { naked: !0, onClick: s, children: /* @__PURE__ */ n("img", { src: e === "modal" ? cc : dc, alt: "dock" }) }),
3033
3045
  /* @__PURE__ */ n(k, { naked: !0, onClick: r, "data-testid": "close-help-panel-button", children: /* @__PURE__ */ n(me, { del: !0, large: !0 }) })
3034
3046
  ] })
3035
3047
  ] });
3036
- function dc() {
3037
- const [e, t] = g(!1), [s, r] = g(""), { isOpen: a, viewMode: o, documentationUrl: i, close: l, toggleViewMode: u } = x(Pn), d = At(".di.app-wrapper", "help-sidebar");
3038
- function c(h) {
3039
- const f = /* @__PURE__ */ p(H, { children: [
3048
+ function hc() {
3049
+ const [e, t] = p(!1), [s, r] = p(""), { isOpen: a, viewMode: o, documentationUrl: i, close: l, toggleViewMode: u } = x(Pn), d = At(".di.app-wrapper", "help-sidebar");
3050
+ function c(f) {
3051
+ const h = /* @__PURE__ */ g(H, { children: [
3040
3052
  /* @__PURE__ */ n(
3041
- cc,
3053
+ uc,
3042
3054
  {
3043
3055
  viewMode: o,
3044
3056
  onSearchModeClick: () => t((m) => !m),
@@ -3047,24 +3059,24 @@ function dc() {
3047
3059
  }
3048
3060
  ),
3049
3061
  /* @__PURE__ */ n(
3050
- oc,
3062
+ lc,
3051
3063
  {
3052
3064
  open: e,
3053
3065
  phrase: s,
3054
3066
  onPhraseChange: ({ target: { value: m } }) => r(m)
3055
3067
  }
3056
3068
  ),
3057
- /* @__PURE__ */ n("div", { className: "content", children: h })
3069
+ /* @__PURE__ */ n("div", { className: "content", children: f })
3058
3070
  ] });
3059
- return /* @__PURE__ */ p(H, { children: [
3071
+ return /* @__PURE__ */ g(H, { children: [
3060
3072
  /* @__PURE__ */ n(
3061
- rc,
3073
+ oc,
3062
3074
  {
3063
3075
  className: V("root modal", {
3064
3076
  open: a,
3065
3077
  hidden: !a || o !== "modal"
3066
3078
  }),
3067
- children: f
3079
+ children: h
3068
3080
  }
3069
3081
  ),
3070
3082
  /* @__PURE__ */ n(
@@ -3074,42 +3086,42 @@ function dc() {
3074
3086
  open: a,
3075
3087
  hidden: !a || o !== "sidebar"
3076
3088
  }),
3077
- children: f
3089
+ children: h
3078
3090
  }
3079
3091
  )
3080
3092
  ] });
3081
3093
  }
3082
- return d ? mo.createPortal(
3094
+ return d ? po.createPortal(
3083
3095
  c(
3084
- /* @__PURE__ */ n(ac, { phrase: e ? s : "", children: /* @__PURE__ */ n(Jl, { url: i }) })
3096
+ /* @__PURE__ */ n(ic, { phrase: e ? s : "", children: /* @__PURE__ */ n(tc, { url: i }) })
3085
3097
  ),
3086
3098
  d
3087
3099
  ) : null;
3088
3100
  }
3089
- async function uc() {
3101
+ async function fc() {
3090
3102
  try {
3091
- return await Ba(), await Ga();
3103
+ return await Ga(), await $a();
3092
3104
  } catch (e) {
3093
3105
  return console.warn("fetching showUserDocumentation setting failed", e), !0;
3094
3106
  }
3095
3107
  }
3096
3108
  const en = document.querySelector(".di.app-wrapper");
3097
- function hc({ children: e }) {
3098
- const [t, s] = g(!1), [r, a] = g("sidebar"), [o, i] = g(!1), [l, u] = g("");
3099
- function d(f) {
3100
- i(!0), u(f);
3109
+ function mc({ children: e }) {
3110
+ const [t, s] = p(!1), [r, a] = p("sidebar"), [o, i] = p(!1), [l, u] = p("");
3111
+ function d(h) {
3112
+ i(!0), u(h);
3101
3113
  }
3102
3114
  function c() {
3103
3115
  i(!1);
3104
3116
  }
3105
- function h() {
3106
- a((f) => f === "sidebar" ? "modal" : "sidebar");
3117
+ function f() {
3118
+ a((h) => h === "sidebar" ? "modal" : "sidebar");
3107
3119
  }
3108
3120
  return S(() => {
3109
- uc().then(s);
3121
+ fc().then(s);
3110
3122
  }, []), S(() => {
3111
3123
  en && en.classList.toggle("with-sidebar-help", o && r === "sidebar");
3112
- }, [r, o]), /* @__PURE__ */ p(
3124
+ }, [r, o]), /* @__PURE__ */ g(
3113
3125
  Pn.Provider,
3114
3126
  {
3115
3127
  value: {
@@ -3119,18 +3131,18 @@ function hc({ children: e }) {
3119
3131
  documentationUrl: l,
3120
3132
  open: d,
3121
3133
  close: c,
3122
- toggleViewMode: h
3134
+ toggleViewMode: f
3123
3135
  },
3124
3136
  children: [
3125
- /* @__PURE__ */ n(dc, {}),
3137
+ /* @__PURE__ */ n(hc, {}),
3126
3138
  e
3127
3139
  ]
3128
3140
  }
3129
3141
  );
3130
3142
  }
3131
- const fc = (e) => /\d/.test(e), ps = (e, t) => {
3143
+ const pc = (e) => /\d/.test(e), ps = (e, t) => {
3132
3144
  let s = t[0];
3133
- s = fc(s) || s.includes(":") ? ":param:" : s;
3145
+ s = pc(s) || s.includes(":") ? ":param:" : s;
3134
3146
  const r = e[s];
3135
3147
  return t.length > 1 && !hn(r) ? {
3136
3148
  [s]: {
@@ -3141,7 +3153,7 @@ const fc = (e) => /\d/.test(e), ps = (e, t) => {
3141
3153
  [s]: r
3142
3154
  };
3143
3155
  };
3144
- function mc() {
3156
+ function gc() {
3145
3157
  const { showAuthorities: e, authoritiesVisible: t, pageAuthorities: s } = x(pt), r = $();
3146
3158
  if (S(() => {
3147
3159
  const i = r.search || "", l = re.parse(i.substring(1));
@@ -3161,7 +3173,7 @@ function gs(e, t) {
3161
3173
  const [s, ...r] = t;
3162
3174
  return /* @__PURE__ */ n(s, { children: gs(e, r) });
3163
3175
  }
3164
- function pc({ providers: e, children: t }) {
3176
+ function yc({ providers: e, children: t }) {
3165
3177
  return /* @__PURE__ */ n(H, { children: gs(t, e) });
3166
3178
  }
3167
3179
  const tn = /* @__PURE__ */ new Map(), nn = /* @__PURE__ */ new Map();
@@ -3175,12 +3187,12 @@ function ws(e, t, s) {
3175
3187
  const a = s();
3176
3188
  return t.set(e, a), a;
3177
3189
  }
3178
- const gc = {
3190
+ const wc = {
3179
3191
  showAxis: !0,
3180
3192
  showThresholds: !1,
3181
3193
  scaleAxis: null
3182
3194
  };
3183
- function yc(e) {
3195
+ function vc(e) {
3184
3196
  return e.reduce(
3185
3197
  (t, { asset: s, datapoint: r }) => ({
3186
3198
  ...t,
@@ -3195,7 +3207,7 @@ function sn() {
3195
3207
  tsEnd: W().add(10, "minutes").valueOf()
3196
3208
  };
3197
3209
  }
3198
- function wc(e) {
3210
+ function Cc(e) {
3199
3211
  const t = Object.values(e).map((s) => {
3200
3212
  const r = Object.values(s).map(([a]) => a);
3201
3213
  return Math.max(...r);
@@ -3218,12 +3230,12 @@ function ze(e, t, s, r, a) {
3218
3230
  });
3219
3231
  const i = e.map(vs), l = Tn(a), u = ys(
3220
3232
  o,
3221
- i.map((h) => h.key),
3233
+ i.map((f) => f.key),
3222
3234
  l
3223
3235
  );
3224
3236
  function d() {
3225
- const { promise: h, cancel: f } = xn(l, o, i, s);
3226
- return h.then((m) => {
3237
+ const { promise: f, cancel: h } = xn(l, o, i, s);
3238
+ return f.then((m) => {
3227
3239
  r({
3228
3240
  type: "fetchComplete",
3229
3241
  valuesByTrendDatapointKey: m
@@ -3232,11 +3244,11 @@ function ze(e, t, s, r, a) {
3232
3244
  m.isCanceled || r({ type: "fetchFailed" });
3233
3245
  }).finally(() => {
3234
3246
  tn.delete(u);
3235
- }), { promise: h, cancel: f };
3247
+ }), { promise: f, cancel: h };
3236
3248
  }
3237
3249
  return ws(u, tn, d).cancel;
3238
3250
  }
3239
- function vc(e, t, s, r, a) {
3251
+ function bc(e, t, s, r, a) {
3240
3252
  const o = { ...t };
3241
3253
  o.tsEnd += 1, r({
3242
3254
  type: "fetchTrendDatapointRequest",
@@ -3245,8 +3257,8 @@ function vc(e, t, s, r, a) {
3245
3257
  });
3246
3258
  const i = [vs(e)], l = Tn(a), u = ys(o, [e.key], l);
3247
3259
  function d() {
3248
- const { promise: h, cancel: f } = xn(l, o, i, s);
3249
- return h.then((m) => {
3260
+ const { promise: f, cancel: h } = xn(l, o, i, s);
3261
+ return f.then((m) => {
3250
3262
  r({
3251
3263
  type: "fetchTrendDatapointComplete",
3252
3264
  key: e.key,
@@ -3256,20 +3268,20 @@ function vc(e, t, s, r, a) {
3256
3268
  m.isCanceled || r({ type: "fetchFailed" });
3257
3269
  }).finally(() => {
3258
3270
  nn.delete(u);
3259
- }), { promise: h, cancel: f };
3271
+ }), { promise: f, cancel: h };
3260
3272
  }
3261
3273
  return ws(u, nn, d).cancel;
3262
3274
  }
3263
3275
  function Cs(e, t, s, r) {
3264
- const a = qe.getColorPalette(!1).filter((d) => io(d).isDark()), o = qe.getNextColor(
3276
+ const a = qe.getColorPalette(!1).filter((d) => lo(d).isDark()), o = qe.getNextColor(
3265
3277
  s.map(({ settings: { color: d } }) => d),
3266
3278
  a
3267
- ), i = A.getDefaultPlotType(), u = (i && ["step", "line"].includes(i) ? i : null) || (t.datatype === "BOOLEAN" ? "step" : "line");
3279
+ ), i = P.getDefaultPlotType(), u = (i && ["step", "line"].includes(i) ? i : null) || (t.datatype === "BOOLEAN" ? "step" : "line");
3268
3280
  return {
3269
- key: kn(),
3281
+ key: Dn(),
3270
3282
  settings: {
3271
3283
  color: o,
3272
- ...gc,
3284
+ ...wc,
3273
3285
  plotType: u,
3274
3286
  combineAxis: !!t.unit
3275
3287
  },
@@ -3278,7 +3290,7 @@ function Cs(e, t, s, r) {
3278
3290
  asset: e
3279
3291
  };
3280
3292
  }
3281
- function Cc(e, t) {
3293
+ function Sc(e, t) {
3282
3294
  const s = [...e];
3283
3295
  for (const { asset: r, datapoints: a } of t) {
3284
3296
  const o = a.filter(
@@ -3291,9 +3303,9 @@ function Cc(e, t) {
3291
3303
  }
3292
3304
  return s;
3293
3305
  }
3294
- function bc(e, t, s, r) {
3306
+ function Ac(e, t, s, r) {
3295
3307
  const a = e.filter((o) => !o.hidden && o.datapoint.datatype !== "TEXT").map((o) => {
3296
- const i = t[o.key], l = Ac(i, o.datapoint.datatype);
3308
+ const i = t[o.key], l = xc(i, o.datapoint.datatype);
3297
3309
  return {
3298
3310
  id: `${o.asset.urn}/${o.datapoint.name}`,
3299
3311
  type: "line",
@@ -3312,13 +3324,13 @@ function bc(e, t, s, r) {
3312
3324
  type: "line"
3313
3325
  }), a;
3314
3326
  }
3315
- function Sc([e, t]) {
3327
+ function Pc([e, t]) {
3316
3328
  return [e, t ? 1 : 0];
3317
3329
  }
3318
- function Ac(e, t = "LONG") {
3330
+ function xc(e, t = "LONG") {
3319
3331
  switch (t) {
3320
3332
  case "BOOLEAN":
3321
- return e?.map(Sc);
3333
+ return e?.map(Pc);
3322
3334
  case "TEXT":
3323
3335
  return;
3324
3336
  case "GEO_POSITION":
@@ -3327,19 +3339,19 @@ function Ac(e, t = "LONG") {
3327
3339
  return e?.filter(([s, r]) => typeof r == "number" && !isNaN(r));
3328
3340
  }
3329
3341
  }
3330
- function Pc(e, t) {
3342
+ function Tc(e, t) {
3331
3343
  return t === "BOOLEAN" ? e ? "true" : "false" : e;
3332
3344
  }
3333
- function xc(e, t, s, r, a, o, i, l) {
3345
+ function Ec(e, t, s, r, a, o, i, l) {
3334
3346
  return `
3335
3347
  <span style="font-size: 10px">${je(r, { timezone: i })}</span>
3336
3348
  <br/>
3337
3349
  <span style="color:${s}">●</span>
3338
- ${e}: <b>${Pc(a, t)}</b>${o ? ` ${o}` : ""}
3350
+ ${e}: <b>${Tc(a, t)}</b>${o ? ` ${o}` : ""}
3339
3351
  ${l ? `<br/><br/><span>${l}</span>` : ""}
3340
3352
  `;
3341
3353
  }
3342
- function Tc(e) {
3354
+ function Nc(e) {
3343
3355
  let t = e.get("tooltip-ghost");
3344
3356
  t || (t = e.addSeries({
3345
3357
  id: "tooltip-ghost",
@@ -3364,7 +3376,7 @@ function be(e, t, s, r) {
3364
3376
  l.options.formatter = function() {
3365
3377
  return `${e}, ${t}: <b>${s}</b>${r ? ` ${r}` : ""}`;
3366
3378
  };
3367
- const d = i.pointer.normalize(a), c = Tc(i);
3379
+ const d = i.pointer.normalize(a), c = Nc(i);
3368
3380
  c.tooltipPos = [d.chartX - i.plotLeft, d.chartY - i.plotTop], l.refresh(c), this.axis.chart.tooltip.hide = function() {
3369
3381
  l.hide(), l.options.formatter = u;
3370
3382
  };
@@ -3376,7 +3388,7 @@ function be(e, t, s, r) {
3376
3388
  }
3377
3389
  };
3378
3390
  }
3379
- function Ec({ datapoint: { thresholds: e, name: t, unit: s }, settings: { color: r, showThresholds: a }, hidden: o }, i) {
3391
+ function Rc({ datapoint: { thresholds: e, name: t, unit: s }, settings: { color: r, showThresholds: a }, hidden: o }, i) {
3380
3392
  const l = [];
3381
3393
  if (o || !a) return l;
3382
3394
  const u = {
@@ -3432,7 +3444,7 @@ function Ec({ datapoint: { thresholds: e, name: t, unit: s }, settings: { color:
3432
3444
  }
3433
3445
  ), l;
3434
3446
  }
3435
- const Nc = [
3447
+ const Ic = [
3436
3448
  {
3437
3449
  id: "id",
3438
3450
  title: {
@@ -3441,8 +3453,8 @@ const Nc = [
3441
3453
  visible: !1
3442
3454
  }
3443
3455
  ];
3444
- function Rc(e, t, s) {
3445
- const r = Ic(e, t), a = e.filter((d) => !d.hidden && d.datapoint.datatype !== "TEXT"), o = (d) => ({
3456
+ function Dc(e, t, s) {
3457
+ const r = kc(e, t), a = e.filter((d) => !d.hidden && d.datapoint.datatype !== "TEXT"), o = (d) => ({
3446
3458
  id: d.key,
3447
3459
  labels: {
3448
3460
  style: {
@@ -3456,40 +3468,40 @@ function Rc(e, t, s) {
3456
3468
  text: void 0
3457
3469
  },
3458
3470
  visible: d.settings.showAxis,
3459
- plotLines: Ec(d, s),
3460
- ...Lc(d, r, t),
3461
- ...Mc(d.datapoint.datatype)
3471
+ plotLines: Rc(d, s),
3472
+ ...Vc(d, r, t),
3473
+ ...Uc(d.datapoint.datatype)
3462
3474
  }), i = a.reduce((d, c) => {
3463
- const h = c.settings.combineAxis, f = c.datapoint.unit?.name;
3464
- if (!h || !f)
3475
+ const f = c.settings.combineAxis, h = c.datapoint.unit?.name;
3476
+ if (!f || !h)
3465
3477
  return d;
3466
- if (d.has(f)) {
3467
- const m = d.get(f);
3468
- d.set(f, {
3478
+ if (d.has(h)) {
3479
+ const m = d.get(h);
3480
+ d.set(h, {
3469
3481
  ...m,
3470
3482
  labels: { ...m.labels, style: { ...m.labels?.style, color: "#777" } }
3471
3483
  });
3472
3484
  } else
3473
- d.set(f, o(c));
3485
+ d.set(h, o(c));
3474
3486
  return d;
3475
3487
  }, /* @__PURE__ */ new Map()), l = /* @__PURE__ */ new Map(), u = a.reduce((d, c) => {
3476
- const h = c.settings.combineAxis, f = c.datapoint.unit?.name, m = h && f ? i.get(f) : null;
3488
+ const f = c.settings.combineAxis, h = c.datapoint.unit?.name, m = f && h ? i.get(h) : null;
3477
3489
  return m ? d.includes(m) ? (l.set(c, d.indexOf(m)), d) : (l.set(c, d.length), [...d, m]) : (l.set(c, d.length), [...d, o(c)]);
3478
3490
  }, []);
3479
- return u.length ? { yAxisIndices: l, yAxis: u } : { yAxisIndices: l, yAxis: Nc };
3491
+ return u.length ? { yAxisIndices: l, yAxis: u } : { yAxisIndices: l, yAxis: Ic };
3480
3492
  }
3481
- function Ic(e, t) {
3493
+ function kc(e, t) {
3482
3494
  const s = e.filter(
3483
3495
  ({ hidden: a, settings: { combineAxis: o }, datapoint: { unit: i } }) => o && !a && i
3484
3496
  ), r = Vs(s, ({ datapoint: { unit: a } }) => a.name);
3485
3497
  return Object.fromEntries(
3486
3498
  Object.entries(r).map(([a, o]) => [
3487
3499
  a,
3488
- kc(o, t)
3500
+ Lc(o, t)
3489
3501
  ])
3490
3502
  );
3491
3503
  }
3492
- function kc(e, t) {
3504
+ function Lc(e, t) {
3493
3505
  return e.reduce(
3494
3506
  (s, r) => {
3495
3507
  const { min: a, max: o } = bs(r, t);
@@ -3498,7 +3510,7 @@ function kc(e, t) {
3498
3510
  { min: null, max: null }
3499
3511
  );
3500
3512
  }
3501
- function Dc(e) {
3513
+ function Mc(e) {
3502
3514
  const { min: t, max: s } = e;
3503
3515
  if (t == null || s == null) return e;
3504
3516
  if (t === s) {
@@ -3522,16 +3534,16 @@ function bs(e, t) {
3522
3534
  { min: null, max: null }
3523
3535
  );
3524
3536
  }
3525
- function Lc(e, t, s) {
3537
+ function Vc(e, t, s) {
3526
3538
  if (e.settings.combineAxis) {
3527
3539
  const a = t[e.datapoint.unit?.name ?? ""];
3528
3540
  if (a?.min != null && a?.max != null)
3529
3541
  return a;
3530
3542
  }
3531
3543
  const r = bs(e, s);
3532
- return r.min != null && r.max != null ? Dc(r) : {};
3544
+ return r.min != null && r.max != null ? Mc(r) : {};
3533
3545
  }
3534
- function Mc(e) {
3546
+ function Uc(e) {
3535
3547
  return e === "BOOLEAN" ? {
3536
3548
  gridLineWidth: 0,
3537
3549
  min: 0,
@@ -3540,7 +3552,7 @@ function Mc(e) {
3540
3552
  } : {};
3541
3553
  }
3542
3554
  function j(e, t, s, r, a, o) {
3543
- const i = s.filter((d) => !d.hidden), { yAxis: l, yAxisIndices: u } = Rc(s, r, o);
3555
+ const i = s.filter((d) => !d.hidden), { yAxis: l, yAxisIndices: u } = Dc(s, r, o);
3544
3556
  return {
3545
3557
  lang: { locale: "de" },
3546
3558
  chart: {
@@ -3553,21 +3565,21 @@ function j(e, t, s, r, a, o) {
3553
3565
  },
3554
3566
  tooltip: {
3555
3567
  formatter: function(d) {
3556
- const c = i[this.series.chart.series.indexOf(this.series)]?.datapoint, h = c?.datatype, f = c?.unit?.print, m = Hr(c, o);
3557
- return xc(
3568
+ const c = i[this.series.chart.series.indexOf(this.series)]?.datapoint, f = c?.datatype, h = c?.unit?.print, m = Hr(c, o);
3569
+ return Ec(
3558
3570
  this.series.name,
3559
- h,
3571
+ f,
3560
3572
  // @ts-expect-error
3561
3573
  this.series.color,
3562
3574
  this.x,
3563
3575
  this.y,
3564
- f,
3576
+ h,
3565
3577
  a,
3566
3578
  m
3567
3579
  );
3568
3580
  }
3569
3581
  },
3570
- series: bc(s, r, u, o),
3582
+ series: Ac(s, r, u, o),
3571
3583
  xAxis: {
3572
3584
  type: "datetime",
3573
3585
  min: e.tsStart,
@@ -3590,16 +3602,16 @@ function ue(e, t) {
3590
3602
  }
3591
3603
  }), s;
3592
3604
  }
3593
- function Vc(e, t) {
3605
+ function Fc(e, t) {
3594
3606
  const s = {};
3595
3607
  for (const [r, a] of Object.entries(e))
3596
3608
  for (const [o, i] of Object.entries(a)) {
3597
- const l = Uc(t, r, o);
3609
+ const l = Oc(t, r, o);
3598
3610
  l && (s[l] ? s[l].push(i) : s[l] = [i]);
3599
3611
  }
3600
3612
  return s;
3601
3613
  }
3602
- function Uc(e, t, s) {
3614
+ function Oc(e, t, s) {
3603
3615
  const r = e.find(
3604
3616
  (a) => a.asset.urn === t && a.datapoint.name === s
3605
3617
  );
@@ -3614,10 +3626,10 @@ function rn(e) {
3614
3626
  const t = W(e.tsStart);
3615
3627
  return W().diff(t, "day") < 1;
3616
3628
  }
3617
- function Fc(e, t, s) {
3629
+ function _c(e, t, s) {
3618
3630
  return e.map((r) => r.key === t ? { ...r, hidden: s } : r);
3619
3631
  }
3620
- function Oc(e, t) {
3632
+ function Kc(e, t) {
3621
3633
  switch (t.type) {
3622
3634
  case "fetchRequest":
3623
3635
  return {
@@ -3682,7 +3694,7 @@ function Oc(e, t) {
3682
3694
  return { ...e, fetching: !1, fetchFailed: !0 };
3683
3695
  case "updateLiveValues":
3684
3696
  if (e.fetchedValuesByTrendDatapointKey) {
3685
- const s = Vc(t.liveValues, e.trendDatapoints), r = ue(
3697
+ const s = Fc(t.liveValues, e.trendDatapoints), r = ue(
3686
3698
  e.fetchedValuesByTrendDatapointKey,
3687
3699
  s
3688
3700
  ), a = j(
@@ -3753,7 +3765,7 @@ function Oc(e, t) {
3753
3765
  }
3754
3766
  case "toggleTrendDatapoint":
3755
3767
  if (e.fetchedValuesByTrendDatapointKey) {
3756
- const s = Fc(e.trendDatapoints, t.key, t.hide), r = J(e.fetchedValuesByTrendDatapointKey, s), a = j(
3768
+ const s = _c(e.trendDatapoints, t.key, t.hide), r = J(e.fetchedValuesByTrendDatapointKey, s), a = j(
3757
3769
  e.currentPeriod,
3758
3770
  e.updatePeriodRef,
3759
3771
  s,
@@ -3824,9 +3836,9 @@ function Oc(e, t) {
3824
3836
  return e;
3825
3837
  }
3826
3838
  }
3827
- const _c = ({ children: e }) => {
3839
+ const Hc = ({ children: e }) => {
3828
3840
  const { t } = G(), { connectionState: s } = x(ft), r = B(() => {
3829
- }), a = Br(), o = B(null), [i, l] = Vn(Oc, {
3841
+ }), a = Br(), o = B(null), [i, l] = Vn(Kc, {
3830
3842
  fetching: !0,
3831
3843
  fetchFailed: !1,
3832
3844
  trendDatapoints: [],
@@ -3843,10 +3855,10 @@ const _c = ({ children: e }) => {
3843
3855
  ux4iotConnectionState: s
3844
3856
  }), u = B(() => {
3845
3857
  }), d = B(() => {
3846
- }), c = Gr(), h = Ve(
3847
- () => i.liveModeEnabled ? yc(i.trendDatapoints) : {},
3858
+ }), c = Gr(), f = Ve(
3859
+ () => i.liveModeEnabled ? vc(i.trendDatapoints) : {},
3848
3860
  [i.trendDatapoints, i.liveModeEnabled]
3849
- ), f = $r(h), m = 4;
3861
+ ), h = $r(f), m = 4;
3850
3862
  r.current = (N) => {
3851
3863
  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(
3852
3864
  i.trendDatapoints,
@@ -3856,10 +3868,10 @@ const _c = ({ children: e }) => {
3856
3868
  o.current?.getBoundingClientRect().width
3857
3869
  )) : console.error("updatePeriod: fetchMetadata or currentPeriod is undefined!");
3858
3870
  };
3859
- const v = I(
3871
+ const C = I(
3860
3872
  (N, R) => {
3861
3873
  u.current(), d.current();
3862
- const O = Cc(i.trendDatapoints, N);
3874
+ const O = Sc(i.trendDatapoints, N);
3863
3875
  ze(
3864
3876
  O,
3865
3877
  R ?? i.currentPeriod,
@@ -3873,7 +3885,7 @@ const _c = ({ children: e }) => {
3873
3885
  (N, R) => {
3874
3886
  u.current(), d.current();
3875
3887
  const O = Cs(N, R, i.trendDatapoints);
3876
- d.current = vc(
3888
+ d.current = bc(
3877
3889
  O,
3878
3890
  i.currentPeriod,
3879
3891
  c,
@@ -3882,13 +3894,13 @@ const _c = ({ children: e }) => {
3882
3894
  );
3883
3895
  },
3884
3896
  [c, i.currentPeriod, i.trendDatapoints]
3885
- ), b = I((N, R) => {
3897
+ ), v = I((N, R) => {
3886
3898
  l({
3887
3899
  type: "removeTrendDatapoint",
3888
3900
  assetUrn: N,
3889
3901
  datapointName: R
3890
3902
  });
3891
- }, []), C = I(() => {
3903
+ }, []), b = I(() => {
3892
3904
  u.current(), d.current(), u.current = ze(
3893
3905
  i.trendDatapoints,
3894
3906
  i.currentPeriod,
@@ -3896,7 +3908,7 @@ const _c = ({ children: e }) => {
3896
3908
  l,
3897
3909
  o.current?.getBoundingClientRect().width
3898
3910
  );
3899
- }, [i, c]), P = I(() => r.current(sn()), []), D = I((N, R) => {
3911
+ }, [i, c]), A = I(() => r.current(sn()), []), D = I((N, R) => {
3900
3912
  l({
3901
3913
  type: "updateTrendDatapointSettings",
3902
3914
  key: N,
@@ -3919,22 +3931,22 @@ const _c = ({ children: e }) => {
3919
3931
  });
3920
3932
  }, []);
3921
3933
  return S(() => {
3922
- const N = Object.keys(f).length === 0;
3934
+ const N = Object.keys(h).length === 0;
3923
3935
  if (i.liveModeEnabled && !N && !i.fetching) {
3924
- const { tsStart: R, tsEnd: O } = i.currentPeriod, U = wc(f), Ke = Math.floor((O - R) / 3), Rs = R < U && U < O + Ke;
3925
- U > O && Rs && r.current({ tsStart: R + Ke, tsEnd: O + Ke }), l({ type: "updateLiveValues", liveValues: f });
3936
+ const { tsStart: R, tsEnd: O } = i.currentPeriod, U = Cc(h), Ke = Math.floor((O - R) / 3), Rs = R < U && U < O + Ke;
3937
+ U > O && Rs && r.current({ tsStart: R + Ke, tsEnd: O + Ke }), l({ type: "updateLiveValues", liveValues: h });
3926
3938
  }
3927
- }, [f, i.currentPeriod, i.fetching, i.liveModeEnabled]), S(() => {
3939
+ }, [h, i.currentPeriod, i.fetching, i.liveModeEnabled]), S(() => {
3928
3940
  l({ type: "changeTimezone", timezone: a });
3929
3941
  }, [a]), S(() => {
3930
3942
  l({ type: "ux4iotConnectionStateChanged", connectionState: s });
3931
- }, [s]), zr(o, !!i.currentPeriod, C), /* @__PURE__ */ n(
3943
+ }, [s]), zr(o, !!i.currentPeriod, b), /* @__PURE__ */ n(
3932
3944
  Wr.Provider,
3933
3945
  {
3934
3946
  value: {
3935
3947
  addTrendDatapoint: y,
3936
- removeTrendDatapoint: b,
3937
- updateDatapointsAndPeriod: v,
3948
+ removeTrendDatapoint: v,
3949
+ updateDatapointsAndPeriod: C,
3938
3950
  trendDatapoints: i.trendDatapoints,
3939
3951
  fetchingData: i.fetching,
3940
3952
  fetchingDataFailed: i.fetchFailed,
@@ -3942,11 +3954,11 @@ const _c = ({ children: e }) => {
3942
3954
  annotations: i.annotations,
3943
3955
  chartContainerRef: o,
3944
3956
  currentPeriod: i.currentPeriod,
3945
- reloadData: C,
3957
+ reloadData: b,
3946
3958
  changeTrendDatapointSettings: D,
3947
3959
  changeDatapoint: T,
3948
3960
  updatePeriod: r.current,
3949
- resetPeriod: P,
3961
+ resetPeriod: A,
3950
3962
  toggleTrendDatapoint: E,
3951
3963
  liveModeEnabled: i.liveModeEnabled,
3952
3964
  zoomInDisabled: i.zoomInDisabled,
@@ -3956,14 +3968,14 @@ const _c = ({ children: e }) => {
3956
3968
  }
3957
3969
  );
3958
3970
  };
3959
- function Kc({ children: e }) {
3960
- const [t, s] = g("");
3971
+ function Bc({ children: e }) {
3972
+ const [t, s] = p("");
3961
3973
  return /* @__PURE__ */ n(_e.Provider, { value: { currentPageTitle: t, setCurrentPageTitle: s }, children: e });
3962
3974
  }
3963
- const Hc = () => {
3975
+ const Gc = () => {
3964
3976
  const { roles: e, fetchRoles: t } = qr();
3965
3977
  e.length || t();
3966
- }, Bc = [
3978
+ }, $c = [
3967
3979
  {
3968
3980
  key: "assets",
3969
3981
  requiredAuthorities: ["READ_ASSET", "READ_ASSET_GROUP"]
@@ -3985,7 +3997,7 @@ const Hc = () => {
3985
3997
  requiredAuthorities: ["READ_ROLE"]
3986
3998
  }
3987
3999
  ];
3988
- function Gc(e, t) {
4000
+ function zc(e, t) {
3989
4001
  switch (e) {
3990
4002
  case "assets":
3991
4003
  return Qr((s) => {
@@ -4009,42 +4021,42 @@ function Gc(e, t) {
4009
4021
  throw Error(`unknown context: ${e}`);
4010
4022
  }
4011
4023
  }
4012
- const $c = (e) => {
4024
+ const Wc = (e) => {
4013
4025
  const t = e.match(/^\/([^/]+).*/);
4014
4026
  if (t)
4015
4027
  return t[1];
4016
4028
  };
4017
- function zc(e, t) {
4029
+ function qc(e, t) {
4018
4030
  return e.match(`^/${t}/list`) || e.match("^/assets/map") || e.match("^/assets/openevents") ? e : `/${t}/list`;
4019
4031
  }
4020
- function Wc({ children: e }) {
4021
- const [t, s] = g(""), [r, a] = g(null), [o, i] = g([]), { pathname: l, search: u } = $(), { push: d } = q();
4032
+ function jc({ children: e }) {
4033
+ const [t, s] = p(""), [r, a] = p(null), [o, i] = p([]), { pathname: l, search: u } = $(), { push: d } = q();
4022
4034
  S(() => {
4023
- r === "roles" && Hc();
4035
+ r === "roles" && Gc();
4024
4036
  }, [r]), S(() => {
4025
- const m = Bc.filter((v) => Q(v.requiredAuthorities)).map(
4026
- ({ key: v }) => v
4037
+ const m = $c.filter((C) => X(C.requiredAuthorities)).map(
4038
+ ({ key: C }) => C
4027
4039
  );
4028
4040
  i(m);
4029
4041
  }, []), S(() => {
4030
- const m = $c(l);
4042
+ const m = Wc(l);
4031
4043
  m && o.includes(m) ? a(m) : a(o[0]);
4032
4044
  }, [o, l]), S(() => {
4033
- const v = new URLSearchParams(u).get("query") ?? "";
4034
- s(v);
4045
+ const C = new URLSearchParams(u).get("query") ?? "";
4046
+ s(C);
4035
4047
  }, [u]);
4036
- const c = Ve(() => r ? Gc(r, d) : null, [r, d]), h = I(
4037
- (m, v) => {
4048
+ const c = Ve(() => r ? zc(r, d) : null, [r, d]), f = I(
4049
+ (m, C) => {
4038
4050
  s(m);
4039
- const y = new URLSearchParams(u), b = zc(l, v), C = new URLSearchParams();
4040
- m && C.set("query", m), l === b && (y.get("query") ?? "") === m && y.get("reload") !== "true" && C.set("reload", "true"), C.toString() ? d(`${b}?${C.toString()}`) : d(b);
4051
+ const y = new URLSearchParams(u), v = qc(l, C), b = new URLSearchParams();
4052
+ m && b.set("query", m), l === v && (y.get("query") ?? "") === m && y.get("reload") !== "true" && b.set("reload", "true"), b.toString() ? d(`${v}?${b.toString()}`) : d(v);
4041
4053
  },
4042
4054
  [l, d, u]
4043
- ), f = I(
4055
+ ), h = I(
4044
4056
  (m) => {
4045
- a(m), h(t, m);
4057
+ a(m), f(t, m);
4046
4058
  },
4047
- [t, h]
4059
+ [t, f]
4048
4060
  );
4049
4061
  return /* @__PURE__ */ n(
4050
4062
  bn.Provider,
@@ -4054,31 +4066,31 @@ function Wc({ children: e }) {
4054
4066
  context: r,
4055
4067
  availableContexts: o,
4056
4068
  submitQuery: (m) => {
4057
- r && h(m, r);
4069
+ r && f(m, r);
4058
4070
  },
4059
4071
  searchConfig: c,
4060
- changeContext: f
4072
+ changeContext: h
4061
4073
  },
4062
4074
  children: e
4063
4075
  }
4064
4076
  );
4065
4077
  }
4066
- const qc = ({ children: e }) => {
4067
- const t = A.getUx4iotUrl() ? void 0 : "ux4iot_unreachable", [s, r] = g(t);
4068
- return /* @__PURE__ */ n(ft.Provider, { value: { connectionState: s, setConnectionState: r }, children: A.getUx4iotUrl() ? /* @__PURE__ */ n(
4069
- oo,
4078
+ const Yc = ({ children: e }) => {
4079
+ const t = P.getUx4iotUrl() ? void 0 : "ux4iot_unreachable", [s, r] = p(t);
4080
+ return /* @__PURE__ */ n(ft.Provider, { value: { connectionState: s, setConnectionState: r }, children: P.getUx4iotUrl() ? /* @__PURE__ */ n(
4081
+ io,
4070
4082
  {
4071
4083
  options: {
4072
- ux4iotURL: A.getUx4iotUrl() ?? "",
4084
+ ux4iotURL: P.getUx4iotUrl() ?? "",
4073
4085
  grantRequestFunction: Jr,
4074
4086
  onSocketConnectionUpdate: r
4075
4087
  },
4076
4088
  children: e
4077
4089
  }
4078
4090
  ) : e });
4079
- }, jc = [];
4080
- function Yc({ children: e }) {
4081
- const [t, s] = g(jc), r = I((o) => (s((i) => i.indexOf(o) !== -1 ? i : [...i, o]), () => s((i) => i.filter((l) => l !== o))), []);
4091
+ }, Xc = [];
4092
+ function Zc({ children: e }) {
4093
+ const [t, s] = p(Xc), r = I((o) => (s((i) => i.indexOf(o) !== -1 ? i : [...i, o]), () => s((i) => i.filter((l) => l !== o))), []);
4082
4094
  window?.ngui && (window.ngui.addGlobalContextProvider = r);
4083
4095
  const a = t.reduce(
4084
4096
  (o, i) => /* @__PURE__ */ n(i, { children: o }),
@@ -4086,12 +4098,12 @@ function Yc({ children: e }) {
4086
4098
  );
4087
4099
  return /* @__PURE__ */ n(H, { children: a });
4088
4100
  }
4089
- function Xc(e, t, s) {
4101
+ function Qc(e, t, s) {
4090
4102
  const r = Intl.DateTimeFormat().resolvedOptions().timeZone;
4091
4103
  return e === "asset" && t?.timeZone ? t.timeZone : e === "user" && s?.timezone ? s.timezone : r;
4092
4104
  }
4093
- function Zc({ children: e }) {
4094
- const [t, s] = g(), [r, a] = g(A.getGlobalAssetTimezoneMode()), { user: o } = x(M);
4105
+ function Jc({ children: e }) {
4106
+ const [t, s] = p(), [r, a] = p(P.getGlobalAssetTimezoneMode()), { user: o } = x(M);
4095
4107
  return /* @__PURE__ */ n(
4096
4108
  ea.Provider,
4097
4109
  {
@@ -4100,28 +4112,28 @@ function Zc({ children: e }) {
4100
4112
  setAsset: s,
4101
4113
  type: r,
4102
4114
  setType: a,
4103
- timezone: Xc(r, t, o)
4115
+ timezone: Qc(r, t, o)
4104
4116
  },
4105
4117
  children: e
4106
4118
  }
4107
4119
  );
4108
4120
  }
4109
- function Qc(e) {
4121
+ function ed(e) {
4110
4122
  return e.message.includes("Failed to fetch dynamically imported module");
4111
4123
  }
4112
- const Jc = ({ error: e }) => /* @__PURE__ */ p("div", { className: "di page-error", children: [
4124
+ const td = ({ error: e }) => /* @__PURE__ */ g("div", { className: "di page-error", children: [
4113
4125
  /* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n("img", { src: ta, alt: "" }) }),
4114
4126
  /* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n(w, { i18nKey: "page.uncaughtErrorMessage", children: "Something went wrong" }) }),
4115
- e.message && /* @__PURE__ */ p(H, { children: [
4127
+ e.message && /* @__PURE__ */ g(H, { children: [
4116
4128
  /* @__PURE__ */ n("hr", {}),
4117
4129
  /* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n("span", { title: e.message, children: e.message }) })
4118
4130
  ] }),
4119
- Qc(e) && /* @__PURE__ */ p("div", { "data-testid": "additional-message", children: [
4131
+ ed(e) && /* @__PURE__ */ g("div", { "data-testid": "additional-message", children: [
4120
4132
  /* @__PURE__ */ n("hr", {}),
4121
4133
  /* @__PURE__ */ n("h4", { children: /* @__PURE__ */ n(w, { i18nKey: "errorMessage.pleaseReloadPage", children: "Please reload the page" }) })
4122
4134
  ] })
4123
- ] }), an = (e, t) => e ? A.getAppConfiguration(e, t ?? void 0) : null;
4124
- function ed({
4135
+ ] }), an = (e, t) => e ? P.getAppConfiguration(e, t ?? void 0) : null;
4136
+ function nd({
4125
4137
  route: {
4126
4138
  component: e,
4127
4139
  childRoutes: t,
@@ -4135,33 +4147,33 @@ function ed({
4135
4147
  path: u,
4136
4148
  url: d,
4137
4149
  browserTitleSegments: c,
4138
- ...h
4150
+ ...f
4139
4151
  }) {
4140
- const { user: f } = x(M), { addPageAuthorities: m } = x(pt), { contextInfo: v } = x(ae), { setCurrentPageTitle: y } = x(_e), { t: b } = G();
4152
+ const { user: h } = x(M), { addPageAuthorities: m } = x(pt), { contextInfo: C } = x(ae), { setCurrentPageTitle: y } = x(_e), { t: v } = G();
4141
4153
  S(() => {
4142
4154
  m(d, r !== void 0 ? r : []);
4143
4155
  }, []);
4144
- const C = l && v ? l(v) : [i], P = C ? Us([...c, ...C].filter(Boolean), cn) : c, D = P.map(
4145
- (T) => typeof T == "string" ? T : b(T?.id ?? "", { defaultValue: T?.defaultValue ?? "" })
4156
+ const b = l && C ? l(C) : [i], A = b ? Us([...c, ...b].filter(Boolean), cn) : c, D = A.map(
4157
+ (T) => typeof T == "string" ? T : v(T?.id ?? "", { defaultValue: T?.defaultValue ?? "" })
4146
4158
  ).join(" / ");
4147
4159
  return S(() => {
4148
4160
  y(D);
4149
- }, [D, y]), Q(r) ? /* @__PURE__ */ n(
4161
+ }, [D, y]), X(r) ? /* @__PURE__ */ n(
4150
4162
  K,
4151
4163
  {
4152
4164
  path: u,
4153
4165
  strict: !1,
4154
4166
  children: ({ match: T }) => {
4155
4167
  if (e && (T?.isExact || !t))
4156
- return /* @__PURE__ */ p(H, { children: [
4157
- /* @__PURE__ */ n("title", { children: [...P, A.getAppName()].map(
4158
- (E) => typeof E == "string" ? E : b(E?.id ?? "", { defaultValue: E?.defaultValue ?? "" })
4168
+ return /* @__PURE__ */ g(H, { children: [
4169
+ /* @__PURE__ */ n("title", { children: [...A, P.getAppName()].map(
4170
+ (E) => typeof E == "string" ? E : v(E?.id ?? "", { defaultValue: E?.defaultValue ?? "" })
4159
4171
  ).join(" - ") }),
4160
- /* @__PURE__ */ n(Co, { fallbackRender: Jc, children: /* @__PURE__ */ n(
4172
+ /* @__PURE__ */ n(bo, { fallbackRender: td, children: /* @__PURE__ */ n(
4161
4173
  e,
4162
4174
  {
4163
- ...h,
4164
- currentUser: f,
4175
+ ...f,
4176
+ currentUser: h,
4165
4177
  appConfiguration: an(a, o),
4166
4178
  requiredAuthorities: r
4167
4179
  }
@@ -4174,16 +4186,16 @@ function ed({
4174
4186
  routes: t,
4175
4187
  path: u,
4176
4188
  url: T?.url,
4177
- browserTitleSegments: P,
4178
- ...h
4189
+ browserTitleSegments: A,
4190
+ ...f
4179
4191
  }
4180
4192
  );
4181
4193
  return s ? /* @__PURE__ */ n(
4182
4194
  s,
4183
4195
  {
4184
- ...h,
4196
+ ...f,
4185
4197
  params: T?.params,
4186
- currentUser: f,
4198
+ currentUser: h,
4187
4199
  appConfiguration: an(a, o),
4188
4200
  requiredAuthorities: r,
4189
4201
  children: E
@@ -4195,7 +4207,7 @@ function ed({
4195
4207
  }
4196
4208
  ) : /* @__PURE__ */ n(K, { path: u, strict: !1, component: na });
4197
4209
  }
4198
- class td extends vt {
4210
+ class sd extends vt {
4199
4211
  render() {
4200
4212
  const {
4201
4213
  routes: t,
@@ -4209,18 +4221,18 @@ class td extends vt {
4209
4221
  browserTitleSegments: u = [],
4210
4222
  ...d
4211
4223
  } = this.props;
4212
- return /* @__PURE__ */ p(Te, { children: [
4213
- /* @__PURE__ */ n(K, { exact: !0, path: s || "/", strict: !1, children: /* @__PURE__ */ n(M.Consumer, { children: ({ user: c }) => /* @__PURE__ */ n(ae.Consumer, { children: ({ contextInfo: h }) => {
4214
- const f = se.filterRoutes(t, c, h);
4215
- return f.length && /* @__PURE__ */ n(
4224
+ return /* @__PURE__ */ g(Te, { children: [
4225
+ /* @__PURE__ */ n(K, { exact: !0, path: s || "/", strict: !1, children: /* @__PURE__ */ n(M.Consumer, { children: ({ user: c }) => /* @__PURE__ */ n(ae.Consumer, { children: ({ contextInfo: f }) => {
4226
+ const h = se.filterRoutes(t, c, f);
4227
+ return h.length && /* @__PURE__ */ n(
4216
4228
  St,
4217
4229
  {
4218
- to: `${r}/${f[0].relativePath}`.replace(/\/\//g, "/")
4230
+ to: `${r}/${h[0].relativePath}`.replace(/\/\//g, "/")
4219
4231
  }
4220
4232
  );
4221
4233
  } }) }) }),
4222
4234
  t.map((c) => /* @__PURE__ */ Me(
4223
- ed,
4235
+ nd,
4224
4236
  {
4225
4237
  ...d,
4226
4238
  route: c,
@@ -4238,49 +4250,49 @@ class td extends vt {
4238
4250
  ] });
4239
4251
  }
4240
4252
  }
4241
- const Ss = bt(td), nd = [
4242
- qc,
4243
- ra,
4244
- hc,
4245
- ro,
4253
+ const Ss = bt(sd), rd = [
4246
4254
  Yc,
4247
- Kl,
4255
+ ra,
4256
+ mc,
4257
+ ao,
4258
+ Zc,
4259
+ Bl,
4248
4260
  aa,
4249
- Fl,
4250
- Wc,
4251
- Zl,
4252
- Gl,
4261
+ _l,
4262
+ jc,
4263
+ Jl,
4264
+ zl,
4253
4265
  oa,
4254
- Kc,
4255
- Vi,
4256
- Bi,
4266
+ Bc,
4267
+ Fi,
4268
+ $i,
4257
4269
  ia,
4258
- Zc,
4259
- _c,
4260
- Hl
4270
+ Jc,
4271
+ Hc,
4272
+ Gl
4261
4273
  ], As = () => {
4262
- const { user: e } = x(M), { initialFetchingComplete: t, loadGlobalResources: s } = x(ke);
4274
+ const { user: e } = x(M), { initialFetchingComplete: t, loadGlobalResources: s } = x(De);
4263
4275
  return S(() => {
4264
4276
  t || s();
4265
- }, [s, t]), t ? /* @__PURE__ */ p(pc, { providers: nd, children: [
4266
- /* @__PURE__ */ n(mc, {}),
4267
- /* @__PURE__ */ p(Si, { children: [
4277
+ }, [s, t]), t ? /* @__PURE__ */ g(yc, { providers: rd, children: [
4278
+ /* @__PURE__ */ n(gc, {}),
4279
+ /* @__PURE__ */ g(Pi, { children: [
4268
4280
  /* @__PURE__ */ n(we, { linkToStartPage: !0 }),
4269
- /* @__PURE__ */ n(ol, {}),
4281
+ /* @__PURE__ */ n(ll, {}),
4270
4282
  /* @__PURE__ */ n("div", { className: "separator" }),
4271
- /* @__PURE__ */ n($i, {})
4283
+ /* @__PURE__ */ n(Wi, {})
4272
4284
  ] }),
4273
4285
  /* @__PURE__ */ n(ae.Consumer, { children: ({ contextInfo: r }) => {
4274
4286
  const a = se.filterRoutes(se.getRoutes(), e, r);
4275
- return /* @__PURE__ */ p(H, { children: [
4276
- /* @__PURE__ */ p("div", { className: "di floor-2", children: [
4277
- /* @__PURE__ */ n(kl, {}),
4287
+ return /* @__PURE__ */ g(H, { children: [
4288
+ /* @__PURE__ */ g("div", { className: "di floor-2", children: [
4289
+ /* @__PURE__ */ n(Ll, {}),
4278
4290
  " ",
4279
- /* @__PURE__ */ n(Tl, { routes: a }),
4280
- /* @__PURE__ */ n(ul, { routes: a })
4291
+ /* @__PURE__ */ n(Nl, { routes: a }),
4292
+ /* @__PURE__ */ n(fl, { routes: a })
4281
4293
  ] }),
4282
- /* @__PURE__ */ n("div", { className: "di main", children: /* @__PURE__ */ p("div", { className: "di main-box", children: [
4283
- /* @__PURE__ */ n(Ul, {}),
4294
+ /* @__PURE__ */ n("div", { className: "di main", children: /* @__PURE__ */ g("div", { className: "di main-box", children: [
4295
+ /* @__PURE__ */ n(Ol, {}),
4284
4296
  " ",
4285
4297
  /* @__PURE__ */ n("div", { className: "di main-box-cont", children: /* @__PURE__ */ n("div", { className: "content-box", children: /* @__PURE__ */ n(Ss, { routes: a }) }) })
4286
4298
  ] }) })
@@ -4296,36 +4308,36 @@ function on(e) {
4296
4308
  const a = t + "&access_token=" + encodeURIComponent(r.accessToken);
4297
4309
  window.location.replace(a);
4298
4310
  };
4299
- e ? s(e) : De().then(s, (r) => console.error(r));
4311
+ e ? s(e) : ke().then(s, (r) => console.error(r));
4300
4312
  }
4301
4313
  }
4302
- function sd(e) {
4303
- const { component: t, redirectTo: s } = e, { authenticated: r, setAuthenticatedUser: a } = x(M), o = $(), i = q(), [l, u] = g(!r), [d, c] = g(r), h = I(
4304
- (v) => {
4314
+ function ad(e) {
4315
+ const { component: t, redirectTo: s } = e, { authenticated: r, setAuthenticatedUser: a } = x(M), o = $(), i = q(), [l, u] = p(!r), [d, c] = p(r), f = I(
4316
+ (C) => {
4305
4317
  const y = vn();
4306
4318
  if (y)
4307
4319
  if (y.pathname && y.pathname.startsWith("/api/v2/oauth/authorize")) {
4308
- const b = y.pathname + (y.search || "") + "&access_token=" + encodeURIComponent(v.accessToken);
4309
- window.location.replace(b);
4320
+ const v = y.pathname + (y.search || "") + "&access_token=" + encodeURIComponent(C.accessToken);
4321
+ window.location.replace(v);
4310
4322
  } else
4311
4323
  i.push(y);
4312
- else o.pathname === "/" && Z().then((b) => i.push(b));
4324
+ else o.pathname === "/" && Q().then((v) => i.push(v));
4313
4325
  },
4314
4326
  [i, o.pathname]
4315
- ), f = I(async () => {
4327
+ ), h = I(async () => {
4316
4328
  try {
4317
- const v = await De(), [y, b] = await Promise.all([
4329
+ const C = await ke(), [y, v] = await Promise.all([
4318
4330
  Le(),
4319
4331
  Oe(),
4320
- Z()
4332
+ Q()
4321
4333
  ]);
4322
- await Fe(v.principal, y, !0, b, a), on(v), h(v);
4323
- } catch (v) {
4324
- console.error("auto signin failed", v), await ut();
4334
+ await Fe(C.principal, y, !0, v, a), on(C), f(C);
4335
+ } catch (C) {
4336
+ console.error("auto signin failed", C), await ut();
4325
4337
  } finally {
4326
4338
  u(!1);
4327
4339
  }
4328
- }, [h, a]);
4340
+ }, [f, a]);
4329
4341
  S(() => {
4330
4342
  r && c(!0);
4331
4343
  }, [r]), S(() => {
@@ -4333,41 +4345,41 @@ function sd(e) {
4333
4345
  pathname: o.pathname,
4334
4346
  search: o.search,
4335
4347
  hash: o.hash
4336
- }), m(), r ? on() : f();
4337
- }, [r, o, f]);
4348
+ }), m(), r ? on() : h();
4349
+ }, [r, o, h]);
4338
4350
  function m() {
4339
4351
  try {
4340
4352
  const y = new URLSearchParams(window.location.search).get("oauth_callback");
4341
4353
  y && !as(y) && localStorage.setItem("OAUTH2_CALLBACK_URL", y);
4342
- } catch (v) {
4343
- console.error("Failed to store redirect location from query string", v);
4354
+ } catch (C) {
4355
+ console.error("Failed to store redirect location from query string", C);
4344
4356
  }
4345
4357
  }
4346
4358
  return /* @__PURE__ */ n(
4347
4359
  K,
4348
4360
  {
4349
- render: (v) => r ? Me(t, v) : l ? /* @__PURE__ */ n(oe, { center: !0 }) : /* @__PURE__ */ n(St, { to: s })
4361
+ render: (C) => r ? Me(t, C) : l ? /* @__PURE__ */ n(oe, { center: !0 }) : /* @__PURE__ */ n(St, { to: s })
4350
4362
  }
4351
4363
  );
4352
4364
  }
4353
- function rd(e) {
4365
+ function od(e) {
4354
4366
  return e ? typeof e == "function" ? new e() : e : null;
4355
4367
  }
4356
- function ad() {
4368
+ function id() {
4357
4369
  const e = [];
4358
4370
  return {
4359
4371
  type: "backend",
4360
4372
  init(t, s, r) {
4361
4373
  s.backends && s.backends.forEach((a, o) => {
4362
- const i = rd(a);
4374
+ const i = od(a);
4363
4375
  i?.read && (e.push(i), i.init(t, s.backendOptions?.[o] || {}, r));
4364
4376
  });
4365
4377
  },
4366
4378
  read(t, s, r) {
4367
4379
  const a = e.length, o = {}, i = (l) => {
4368
4380
  if (l >= a) return r(new Error("non of the backend loaded data;"), void 0);
4369
- const u = e[l], d = (c, h) => {
4370
- !c && h && Object.keys(h).length > 0 && Ie(o, h), l === a - 1 ? r(null, o) : i(l + 1);
4381
+ const u = e[l], d = (c, f) => {
4382
+ !c && f && Object.keys(f).length > 0 && Ie(o, f), l === a - 1 ? r(null, o) : i(l + 1);
4371
4383
  };
4372
4384
  u.read(t, s, d);
4373
4385
  };
@@ -4375,13 +4387,13 @@ function ad() {
4375
4387
  }
4376
4388
  };
4377
4389
  }
4378
- function od(e, t) {
4390
+ function ld(e, t) {
4379
4391
  return Fs(e, t, (s, r) => {
4380
4392
  if (r === "")
4381
4393
  return s;
4382
4394
  });
4383
4395
  }
4384
- class Y extends So {
4396
+ class Y extends Ao {
4385
4397
  // @ts-expect-error
4386
4398
  init(t, s, r) {
4387
4399
  if (typeof s < "u") {
@@ -4419,7 +4431,7 @@ class Y extends So {
4419
4431
  Y.requestData(r, this.options.tenantApiKey),
4420
4432
  // @ts-expect-error
4421
4433
  Y.requestData(a, this.options.mainApiKey)
4422
- ]).then(([o, i]) => od(i, o));
4434
+ ]).then(([o, i]) => ld(i, o));
4423
4435
  }
4424
4436
  readMainLocizeProject(t, s) {
4425
4437
  const r = this.getReadUrl(t, s, this.options.mainProjectId, this.options.mainVersion);
@@ -4447,7 +4459,7 @@ class Y extends So {
4447
4459
  });
4448
4460
  }
4449
4461
  buildUrl(t, s) {
4450
- return Ao(t, s);
4462
+ return Po(t, s);
4451
4463
  }
4452
4464
  static requestData(t, s) {
4453
4465
  return rt.get(t, {
@@ -4457,14 +4469,14 @@ class Y extends So {
4457
4469
  }).then((r) => r.data);
4458
4470
  }
4459
4471
  }
4460
- function id(e) {
4472
+ function cd(e) {
4461
4473
  return (t) => {
4462
4474
  const { user: s } = x(M);
4463
4475
  return /* @__PURE__ */ n(e, { ...t, locale: s.locale });
4464
4476
  };
4465
4477
  }
4466
- function ld() {
4467
- const e = A.getMainLocizeProject(), t = A.getTenantLocizeProject(), s = {
4478
+ function dd() {
4479
+ const e = P.getMainLocizeProject(), t = P.getTenantLocizeProject(), s = {
4468
4480
  // Tenant-specific project on Locize
4469
4481
  tenantProjectId: t ? t.projectId : null,
4470
4482
  tenantApiKey: t ? t.apiKey : null,
@@ -4495,22 +4507,22 @@ function ld() {
4495
4507
  }
4496
4508
  };
4497
4509
  if (l) {
4498
- const d = [Y, ...i.map((f) => f.backend)], c = [s, ...i.map((f) => f.backendConfig)], h = {
4510
+ const d = [Y, ...i.map((h) => h.backend)], c = [s, ...i.map((h) => h.backendConfig)], f = {
4499
4511
  ...u,
4500
4512
  backend: {
4501
4513
  backends: d,
4502
4514
  backendOptions: c
4503
4515
  }
4504
4516
  };
4505
- return new Promise((f) => {
4506
- z.use(ad()).init(h, () => {
4507
- kt(z), f();
4517
+ return new Promise((h) => {
4518
+ z.use(id()).init(f, () => {
4519
+ Dt(z), h();
4508
4520
  });
4509
4521
  });
4510
4522
  } else
4511
4523
  return new Promise((d) => {
4512
- z.use(Y).use(bo).init({ ...u, backend: s }, () => {
4513
- kt(z), d();
4524
+ z.use(Y).use(So).init({ ...u, backend: s }, () => {
4525
+ Dt(z), d();
4514
4526
  });
4515
4527
  });
4516
4528
  }
@@ -4519,7 +4531,7 @@ const ln = (e) => {
4519
4531
  let r;
4520
4532
  return s && t.lng ? r = t.lng.toString() : r = e, window.nguiCiModeActive = s, window.nguiI18nLanguage = r, r;
4521
4533
  };
4522
- class cd extends F.Component {
4534
+ class ud extends F.Component {
4523
4535
  constructor() {
4524
4536
  super(...arguments), this.state = {
4525
4537
  i18nextInitialized: !1,
@@ -4529,7 +4541,7 @@ class cd extends F.Component {
4529
4541
  languageLoading: !1
4530
4542
  });
4531
4543
  }, 500), this.initializeI18next = async () => {
4532
- await ld(), z.on(
4544
+ await dd(), z.on(
4533
4545
  "languageChanged",
4534
4546
  () => this.setState(
4535
4547
  {
@@ -4561,10 +4573,10 @@ class cd extends F.Component {
4561
4573
  return /* @__PURE__ */ n(F.Suspense, { fallback: /* @__PURE__ */ n(oe, {}), children: /* @__PURE__ */ n(ge, { show: r, className: "di i18n-container", children: t && this.props.children }) });
4562
4574
  }
4563
4575
  }
4564
- const Ps = id(cd), xs = /* @__PURE__ */ p("svg", { className: "whats-new-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 753 194.75", children: [
4576
+ const Ps = cd(ud), xs = /* @__PURE__ */ g("svg", { className: "whats-new-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 753 194.75", children: [
4565
4577
  /* @__PURE__ */ n("title", { children: "Whats new" }),
4566
- /* @__PURE__ */ p("g", { className: "wave-background", fill: "#1a8ed3", children: [
4567
- /* @__PURE__ */ p("g", { id: "waves", children: [
4578
+ /* @__PURE__ */ g("g", { className: "wave-background", fill: "#1a8ed3", children: [
4579
+ /* @__PURE__ */ g("g", { id: "waves", children: [
4568
4580
  /* @__PURE__ */ n(
4569
4581
  "path",
4570
4582
  {
@@ -4602,58 +4614,58 @@ const Ps = id(cd), xs = /* @__PURE__ */ p("svg", { className: "whats-new-svg", x
4602
4614
  ) })
4603
4615
  ] })
4604
4616
  ] });
4605
- function dd() {
4606
- const { principal: e, user: t, paginationSettings: s, setAuthenticatedUser: r, resetAuthenticatedUser: a } = x(M), { instance: o } = ie(), i = mn(), l = da(), [u, d] = g(l.get("downloadedEula") === "true"), c = q();
4607
- async function h(y, b) {
4608
- pe() ? await it(y, o) : await ot(y, b);
4617
+ function hd() {
4618
+ const { principal: e, user: t, paginationSettings: s, setAuthenticatedUser: r, resetAuthenticatedUser: a } = x(M), { instance: o } = ie(), i = mn(), l = da(), [u, d] = p(l.get("downloadedEula") === "true"), c = q();
4619
+ async function f(y, v) {
4620
+ pe() ? await it(y, o) : await ot(y, v);
4609
4621
  }
4610
- async function f(y) {
4611
- const b = await $a();
4622
+ async function h(y) {
4623
+ const v = await za();
4612
4624
  if (t && await In({ ...t, properties: y }), s)
4613
- await Fe(e, b, !0, s, r);
4625
+ await Fe(e, v, !0, s, r);
4614
4626
  else
4615
4627
  throw new Error("Pagination settings for the user does not exist!");
4616
- const C = await Z();
4617
- window.location.assign(C);
4628
+ const b = await Q();
4629
+ window.location.assign(b);
4618
4630
  }
4619
4631
  async function m() {
4620
- t && await h(t, a);
4632
+ t && await f(t, a);
4621
4633
  }
4622
- async function v() {
4623
- const y = i.toLowerCase(), b = A.getFallbackLocale();
4624
- let C;
4634
+ async function C() {
4635
+ const y = i.toLowerCase(), v = P.getFallbackLocale();
4636
+ let b;
4625
4637
  try {
4626
- if (C = await Ae(y), !C)
4638
+ if (b = await Ae(y), !b)
4627
4639
  throw new Error(`EULA document for locale ${y} not found`);
4628
4640
  } catch (D) {
4629
- if (y !== b)
4630
- C = await Ae(b);
4641
+ if (y !== v)
4642
+ b = await Ae(v);
4631
4643
  else {
4632
4644
  console.error(D);
4633
4645
  return;
4634
4646
  }
4635
4647
  }
4636
- if (!C) {
4648
+ if (!b) {
4637
4649
  console.error("EULA document could not be found");
4638
4650
  return;
4639
4651
  }
4640
- const P = new URLSearchParams(window.location.search);
4641
- P.set("downloadedEula", "true"), c.replace({ search: P.toString() }), d(!0), On(
4642
- new Blob([C.data], {
4643
- type: C.meta.contentType
4652
+ const A = new URLSearchParams(window.location.search);
4653
+ A.set("downloadedEula", "true"), c.replace({ search: A.toString() }), d(!0), On(
4654
+ new Blob([b.data], {
4655
+ type: b.meta.contentType
4644
4656
  }),
4645
- C.meta.userMetadata["X-Blob-Meta-Filename"]
4657
+ b.meta.userMetadata["X-Blob-Meta-Filename"]
4646
4658
  );
4647
4659
  }
4648
4660
  return {
4649
- accept: f,
4661
+ accept: h,
4650
4662
  decline: m,
4651
- download: v,
4663
+ download: C,
4652
4664
  downloaded: u
4653
4665
  };
4654
4666
  }
4655
4667
  function We() {
4656
- const e = B(null), { current: t } = e, [s, r] = g(0), a = Ve(
4668
+ const e = B(null), { current: t } = e, [s, r] = p(0), a = Ve(
4657
4669
  () => new ResizeObserver(() => {
4658
4670
  t && r(t.scrollHeight);
4659
4671
  }),
@@ -4666,7 +4678,7 @@ function We() {
4666
4678
  height: s
4667
4679
  };
4668
4680
  }
4669
- function ud(e, t, s) {
4681
+ function fd(e, t, s) {
4670
4682
  return Math.min(
4671
4683
  0.8 * (document.body ? document.body.clientHeight : 800) - 130,
4672
4684
  Math.max(450, t + e + s)
@@ -4676,25 +4688,25 @@ function ee(e) {
4676
4688
  return e.state !== "TERMS_ACCEPTANCE_PENDING";
4677
4689
  }
4678
4690
  function Ts() {
4679
- const { user: e } = x(M), { userProperties: t } = An(), { t: s } = G(), [r, a] = g(!1), { accept: o, decline: i, download: l, downloaded: u } = dd(), [d, c] = g(!1), [h, f] = g(!1), [m, v] = g(!1), y = t.some((U) => U.key === "_showWelcomeModal"), b = A.getDisplayWelcomeScreen();
4691
+ const { user: e } = x(M), { userProperties: t } = An(), { t: s } = G(), [r, a] = p(!1), { accept: o, decline: i, download: l, downloaded: u } = hd(), [d, c] = p(!1), [f, h] = p(!1), [m, C] = p(!1), y = t.some((U) => U.key === "_showWelcomeModal"), v = P.getDisplayWelcomeScreen();
4680
4692
  S(() => {
4681
4693
  at((U, It) => {
4682
- It || a(!ee(U) || !!U.properties._showWelcomeModal && b);
4694
+ It || a(!ee(U) || !!U.properties._showWelcomeModal && v);
4683
4695
  }), ua(() => a(!1));
4684
- }, [b, e]), S(() => {
4696
+ }, [v, e]), S(() => {
4685
4697
  e && !ee(e) && a(!0);
4686
4698
  }, [e]);
4687
- const { ref: C, height: P } = We(), { ref: D, height: T } = We(), { ref: E, height: N } = We(), R = ud(T, P, N);
4699
+ const { ref: b, height: A } = We(), { ref: D, height: T } = We(), { ref: E, height: N } = We(), R = fd(T, A, N);
4688
4700
  async function O() {
4689
- v(!0);
4701
+ C(!0);
4690
4702
  try {
4691
4703
  if (e) {
4692
- const U = y ? { ...e.properties, _showWelcomeModal: h } : e.properties || {};
4693
- ee(e) ? !!e.properties._showWelcomeModal !== h && await In({ ...e, properties: U }) : await o(U);
4704
+ const U = y ? { ...e.properties, _showWelcomeModal: f } : e.properties || {};
4705
+ ee(e) ? !!e.properties._showWelcomeModal !== f && await In({ ...e, properties: U }) : await o(U);
4694
4706
  }
4695
- v(!1), a(!1);
4707
+ C(!1), a(!1);
4696
4708
  } catch (U) {
4697
- v(!1), X(U.message || "Unknown error");
4709
+ C(!1), Z(U.message || "Unknown error");
4698
4710
  }
4699
4711
  }
4700
4712
  return r ? /* @__PURE__ */ n(
@@ -4713,7 +4725,7 @@ function Ts() {
4713
4725
  }
4714
4726
  }
4715
4727
  ),
4716
- content: /* @__PURE__ */ n(ge, { show: m, children: /* @__PURE__ */ p(
4728
+ content: /* @__PURE__ */ n(ge, { show: m, children: /* @__PURE__ */ g(
4717
4729
  "div",
4718
4730
  {
4719
4731
  className: "welcome-content",
@@ -4725,7 +4737,7 @@ function Ts() {
4725
4737
  "div",
4726
4738
  {
4727
4739
  className: "welcome-body",
4728
- ref: C,
4740
+ ref: b,
4729
4741
  style: {
4730
4742
  overflow: "auto"
4731
4743
  },
@@ -4738,11 +4750,11 @@ function Ts() {
4738
4750
  }
4739
4751
  }
4740
4752
  ),
4741
- e && !ee(e) && /* @__PURE__ */ p("div", { ref: D, className: "eula", children: [
4753
+ e && !ee(e) && /* @__PURE__ */ g("div", { ref: D, className: "eula", children: [
4742
4754
  /* @__PURE__ */ n("hr", {}),
4743
4755
  /* @__PURE__ */ n("strong", { children: /* @__PURE__ */ n(w, { i18nKey: "welcome.toProceedDownloadEULA", children: "To proceed, please download our End-User-License-Agreement (EULA) first. Thank you!" }) }),
4744
- /* @__PURE__ */ p(ao, { children: [
4745
- /* @__PURE__ */ p(k, { primary: !0, onClick: l, children: [
4756
+ /* @__PURE__ */ g(oo, { children: [
4757
+ /* @__PURE__ */ g(k, { primary: !0, onClick: l, children: [
4746
4758
  /* @__PURE__ */ n("img", { src: ha, alt: "" }),
4747
4759
  " ",
4748
4760
  /* @__PURE__ */ n(w, { i18nKey: "welcome.downloadEULA", children: "Download EULA" })
@@ -4755,7 +4767,7 @@ function Ts() {
4755
4767
  id: "welcome.readEULA",
4756
4768
  defaultValue: "I've read the EULA and agree"
4757
4769
  },
4758
- disabled: !u,
4770
+ disabled: P.isEulaDownloadRequired() && !u,
4759
4771
  value: d,
4760
4772
  onChange: () => c((U) => !U)
4761
4773
  }
@@ -4770,8 +4782,8 @@ function Ts() {
4770
4782
  id: "welcome.dontShowAgain",
4771
4783
  defaultValue: "Please don't show this window again on my next visit"
4772
4784
  },
4773
- value: !h,
4774
- onChange: () => f((U) => !U)
4785
+ value: !f,
4786
+ onChange: () => h((U) => !U)
4775
4787
  }
4776
4788
  ),
4777
4789
  /* @__PURE__ */ n(
@@ -4808,7 +4820,7 @@ class Es extends vt {
4808
4820
  {
4809
4821
  header: /* @__PURE__ */ n(w, { i18nKey: "discardChanges.header", children: "Leave page" }),
4810
4822
  content: /* @__PURE__ */ n("div", { children: t || /* @__PURE__ */ n(w, { i18nKey: "discardChanges.message", children: "Your unsaved changes on this page will be lost ..." }) }),
4811
- footer: /* @__PURE__ */ p("div", { children: [
4823
+ footer: /* @__PURE__ */ g("div", { children: [
4812
4824
  /* @__PURE__ */ n(k, { primary: !0, onClick: this.confirmTransition, children: /* @__PURE__ */ n(w, { i18nKey: "discardChanges.confirm", children: "Leave without saving" }) }),
4813
4825
  /* @__PURE__ */ n(k, { onClick: this.cancelTransition, children: /* @__PURE__ */ n(w, { i18nKey: "discardChanges.cancel", children: "Stay" }) })
4814
4826
  ] }),
@@ -4818,29 +4830,29 @@ class Es extends vt {
4818
4830
  ) });
4819
4831
  }
4820
4832
  }
4821
- const hd = 6, fd = 4, Se = "NOT_FOUND", Rt = class Rt extends vt {
4833
+ const md = 6, pd = 4, Se = "NOT_FOUND", Rt = class Rt extends vt {
4822
4834
  constructor() {
4823
4835
  super(...arguments), this.state = {
4824
4836
  show: !1,
4825
4837
  viewedVersions: [],
4826
4838
  isSubscribed: !0,
4827
- currentWhatsNewVersion: lt().substring(0, hd).replace(/\./g, "_")
4839
+ currentWhatsNewVersion: lt().substring(0, md).replace(/\./g, "_")
4828
4840
  }, this.checkIfShowModal = async () => {
4829
4841
  const s = this.context.user, { t: r } = this.props, { currentWhatsNewVersion: a } = this.state;
4830
4842
  let o = !0;
4831
4843
  try {
4832
- o = await za(), this.setState({ isSubscribed: o });
4844
+ o = await Wa(), this.setState({ isSubscribed: o });
4833
4845
  } catch {
4834
4846
  o = !0, this.setState({ isSubscribed: o });
4835
4847
  }
4836
4848
  let i = r(`whatsNew.body.${a}`, { defaultValue: Se }) !== Se, l = a;
4837
4849
  if (!i) {
4838
- const d = `${a.substring(0, fd)}_*`, c = `whatsNew.body.${d}`;
4850
+ const d = `${a.substring(0, pd)}_*`, c = `whatsNew.body.${d}`;
4839
4851
  i = r(c, { defaultValue: Se }) !== Se, i && (l = d);
4840
4852
  }
4841
- const u = A.getDisplayWelcomeScreen() && s && !!s.properties._showWelcomeModal;
4853
+ const u = P.getDisplayWelcomeScreen() && s && !!s.properties._showWelcomeModal;
4842
4854
  try {
4843
- const d = await Wa(), c = !u && i && o && d.indexOf(l) === -1;
4855
+ const d = await qa(), c = !u && i && o && d.indexOf(l) === -1;
4844
4856
  this.setState({ show: c, viewedVersions: d, currentWhatsNewVersion: l });
4845
4857
  } catch {
4846
4858
  const c = o && i;
@@ -4851,8 +4863,8 @@ const hd = 6, fd = 4, Se = "NOT_FOUND", Rt = class Rt extends vt {
4851
4863
  const { viewedVersions: t, isSubscribed: s, currentWhatsNewVersion: r } = this.state, a = s ? [.../* @__PURE__ */ new Set([...t, r])] : [];
4852
4864
  try {
4853
4865
  await Promise.all([
4854
- qa(a),
4855
- ja(s)
4866
+ ja(a),
4867
+ Ya(s)
4856
4868
  ]);
4857
4869
  } catch (o) {
4858
4870
  console.error("Error while saving whatsNew configuration", o);
@@ -4862,7 +4874,7 @@ const hd = 6, fd = 4, Se = "NOT_FOUND", Rt = class Rt extends vt {
4862
4874
  };
4863
4875
  }
4864
4876
  componentDidMount() {
4865
- const t = A.getAppWhatsNewVersion(), s = t || this.state.currentWhatsNewVersion;
4877
+ const t = P.getAppWhatsNewVersion(), s = t || this.state.currentWhatsNewVersion;
4866
4878
  this.setState({ currentWhatsNewVersion: s }), at((r, a) => {
4867
4879
  const o = localStorage.getItem(ma()), i = JSON.parse(o || '{"usesOAuth": false}');
4868
4880
  (!a || i.usesOAuth === !0 || pe()) && (delete i.usesOAuth, gn(i), this.checkIfShowModal());
@@ -4874,11 +4886,11 @@ const hd = 6, fd = 4, Se = "NOT_FOUND", Rt = class Rt extends vt {
4874
4886
  Ct,
4875
4887
  {
4876
4888
  className: "di welcome-modal whats-new-modal",
4877
- header: /* @__PURE__ */ p(w, { i18nKey: `whatsNew.header.${r}`, children: [
4889
+ header: /* @__PURE__ */ g(w, { i18nKey: `whatsNew.header.${r}`, children: [
4878
4890
  "What is new in ",
4879
4891
  r
4880
4892
  ] }),
4881
- content: /* @__PURE__ */ p(H, { children: [
4893
+ content: /* @__PURE__ */ g(H, { children: [
4882
4894
  /* @__PURE__ */ n(
4883
4895
  "div",
4884
4896
  {
@@ -4920,32 +4932,32 @@ En.setNotificationCallbacks({
4920
4932
  );
4921
4933
  },
4922
4934
  hideOfflineNotification: () => {
4923
- Dn("TOKEN_REFRESHER");
4935
+ kn("TOKEN_REFRESHER");
4924
4936
  }
4925
4937
  });
4926
- function md() {
4927
- const [e, t] = g(null);
4938
+ function gd() {
4939
+ const [e, t] = p(null);
4928
4940
  function s(a, o) {
4929
4941
  t({ message: a, callback: o });
4930
4942
  }
4931
4943
  function r(a) {
4932
4944
  e && e.callback(a), t(null);
4933
4945
  }
4934
- return /* @__PURE__ */ n(Gn, { children: /* @__PURE__ */ n(Bn, { children: /* @__PURE__ */ n(Ps, { children: /* @__PURE__ */ p(Hn, { children: [
4935
- /* @__PURE__ */ p(Fn, { getUserConfirmation: s, children: [
4936
- /* @__PURE__ */ p(Te, { children: [
4937
- /* @__PURE__ */ n(K, { path: "/signin", component: bi }),
4938
- /* @__PURE__ */ n(K, { path: "/forgotpassword", component: si }),
4939
- /* @__PURE__ */ n(K, { path: "/changeemail", component: ei }),
4940
- /* @__PURE__ */ n(K, { path: "/setpassword", component: fi }),
4946
+ return /* @__PURE__ */ n(Gn, { children: /* @__PURE__ */ n(Bn, { children: /* @__PURE__ */ n(Ps, { children: /* @__PURE__ */ g(Hn, { children: [
4947
+ /* @__PURE__ */ g(Fn, { getUserConfirmation: s, children: [
4948
+ /* @__PURE__ */ g(Te, { children: [
4949
+ /* @__PURE__ */ n(K, { path: "/signin", component: Ai }),
4950
+ /* @__PURE__ */ n(K, { path: "/forgotpassword", component: ai }),
4951
+ /* @__PURE__ */ n(K, { path: "/changeemail", component: ni }),
4952
+ /* @__PURE__ */ n(K, { path: "/setpassword", component: pi }),
4941
4953
  /* @__PURE__ */ n(K, { path: "/legals", component: Wn }),
4942
- /* @__PURE__ */ n(sd, { component: As, redirectTo: "/signin" })
4954
+ /* @__PURE__ */ n(ad, { component: As, redirectTo: "/signin" })
4943
4955
  ] }),
4944
4956
  /* @__PURE__ */ n(Ts, {})
4945
4957
  ] }),
4946
4958
  /* @__PURE__ */ n(Mn, {}),
4947
4959
  /* @__PURE__ */ n(Un, {}),
4948
- !A.isReleaseNotesHidden() && /* @__PURE__ */ n(Ns, {}),
4960
+ !P.isReleaseNotesHidden() && /* @__PURE__ */ n(Ns, {}),
4949
4961
  e && /* @__PURE__ */ n(
4950
4962
  Es,
4951
4963
  {
@@ -4956,52 +4968,52 @@ function md() {
4956
4968
  /* @__PURE__ */ n($n, {})
4957
4969
  ] }) }) }) });
4958
4970
  }
4959
- function pd() {
4960
- const [e, t] = g(!0), [s, r] = g(), [a, o] = g(), { setAuthenticatedUser: i } = x(M), { instance: l, accounts: u } = ie(), d = lo(u[0] || {});
4971
+ function yd() {
4972
+ const [e, t] = p(!0), [s, r] = p(), [a, o] = p(), { setAuthenticatedUser: i } = x(M), { instance: l, accounts: u } = ie(), d = co(u[0] || {});
4961
4973
  return S(() => {
4962
4974
  let c = !1;
4963
4975
  return (async () => {
4964
4976
  try {
4965
4977
  t(!0);
4966
- const h = await l.acquireTokenSilent(pa(Nn(), d));
4978
+ const f = await l.acquireTokenSilent(pa(Nn(), d));
4967
4979
  if (c) return;
4968
- if (h.account.name) {
4969
- const [f, m, v] = await Promise.all([
4980
+ if (f.account.name) {
4981
+ const [h, m, C] = await Promise.all([
4970
4982
  Le(),
4971
4983
  Oe(),
4972
- Z()
4984
+ Q()
4973
4985
  ]);
4974
4986
  if (c) return;
4975
- t(!1), o(v), await Fe(h.account.name, f, !0, m, i);
4987
+ t(!1), o(C), await Fe(f.account.name, h, !0, m, i);
4976
4988
  } else {
4977
4989
  if (c) return;
4978
4990
  r(new Error("msal signin failed, no account name!"));
4979
4991
  }
4980
- } catch (h) {
4981
- c || (r(h), t(!1));
4992
+ } catch (f) {
4993
+ c || (r(f), t(!1));
4982
4994
  }
4983
4995
  })(), () => {
4984
4996
  c = !0;
4985
4997
  };
4986
4998
  }, [d, l, i]), { startPage: a, loading: e, error: s };
4987
4999
  }
4988
- function gd({ component: e }) {
4989
- const { loading: t, startPage: s, error: r } = pd(), { instance: a } = ie(), { pathname: o } = $();
5000
+ function wd({ component: e }) {
5001
+ const { loading: t, startPage: s, error: r } = yd(), { instance: a } = ie(), { pathname: o } = $();
4990
5002
  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) });
4991
5003
  }
4992
- const yd = () => /* @__PURE__ */ p("div", { className: "afterregistermfadevice", children: [
5004
+ const vd = () => /* @__PURE__ */ g("div", { className: "afterregistermfadevice", children: [
4993
5005
  /* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(w, { i18nKey: "afterRegister2FADevice.successMessage", children: "You have successfully registered your MFA device." }) }),
4994
5006
  /* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(w, { i18nKey: "afterRegister2FADevice.hint", children: "You can now close this window and continue using the application." }) })
4995
- ] }), wd = () => /* @__PURE__ */ n("div", { className: "after-signup", children: /* @__PURE__ */ n("p", { children: /* @__PURE__ */ p(w, { i18nKey: "afterSignup.successMessage", children: [
5007
+ ] }), Cd = () => /* @__PURE__ */ n("div", { className: "after-signup", children: /* @__PURE__ */ n("p", { children: /* @__PURE__ */ g(w, { i18nKey: "afterSignup.successMessage", children: [
4996
5008
  "You have successfully signed up. Please",
4997
5009
  " ",
4998
- /* @__PURE__ */ n(_, { to: "/", style: { color: A.getPrimaryColorAvoidingGray() }, children: "sign in" })
5010
+ /* @__PURE__ */ n(_, { to: "/", style: { color: P.getPrimaryColorAvoidingGray() }, children: "sign in" })
4999
5011
  ] }) }) });
5000
- function vd({ errorMessage: e, afterSigninText: t, onSignin: s }) {
5001
- return /* @__PURE__ */ p("div", { className: "signin-message", children: [
5012
+ function bd({ errorMessage: e, afterSigninText: t, onSignin: s }) {
5013
+ return /* @__PURE__ */ g("div", { className: "signin-message", children: [
5002
5014
  /* @__PURE__ */ n("p", { children: e }),
5003
- /* @__PURE__ */ p("p", { children: [
5004
- /* @__PURE__ */ p(w, { i18nKey: "msal.errorComponent.serverError.signinMessage", children: [
5015
+ /* @__PURE__ */ g("p", { children: [
5016
+ /* @__PURE__ */ g(w, { i18nKey: "msal.errorComponent.serverError.signinMessage", children: [
5005
5017
  "Please",
5006
5018
  /* @__PURE__ */ n(k, { className: "signin-button", primary: !0, onClick: s, children: "sign in" })
5007
5019
  ] }),
@@ -5009,7 +5021,7 @@ function vd({ errorMessage: e, afterSigninText: t, onSignin: s }) {
5009
5021
  ] })
5010
5022
  ] });
5011
5023
  }
5012
- function Cd(e) {
5024
+ function Sd(e) {
5013
5025
  switch (e?.errorCode) {
5014
5026
  case "invalid_grant":
5015
5027
  return /* @__PURE__ */ n(w, { i18nKey: "msal.errorComponent.authenticationError.message", children: "Your authentication session has expired." });
@@ -5021,7 +5033,7 @@ function Cd(e) {
5021
5033
  return /* @__PURE__ */ n(w, { i18nKey: "msal.errorComponent.genericError.message", children: "An Error occurred authenticating via Msal." });
5022
5034
  }
5023
5035
  }
5024
- function bd(e) {
5036
+ function Ad(e) {
5025
5037
  switch (e?.errorCode) {
5026
5038
  case "invalid_grant":
5027
5039
  return /* @__PURE__ */ n(w, { i18nKey: "msal.errorComponent.authenticationError.afterSigninText", children: "again" });
@@ -5031,18 +5043,18 @@ function bd(e) {
5031
5043
  return "";
5032
5044
  }
5033
5045
  }
5034
- function Sd({ error: e }) {
5046
+ function Pd({ error: e }) {
5035
5047
  const { instance: t } = ie(), s = () => {
5036
5048
  t.loginRedirect();
5037
5049
  };
5038
5050
  return S(() => {
5039
5051
  e && e.errorCode === "access_denied" && t.logoutRedirect();
5040
5052
  }, [t, e]), e?.errorCode === "access_denied" ? null : /* @__PURE__ */ n(
5041
- vd,
5053
+ bd,
5042
5054
  {
5043
- errorMessage: Cd(e),
5055
+ errorMessage: Sd(e),
5044
5056
  onSignin: s,
5045
- afterSigninText: bd(e)
5057
+ afterSigninText: Ad(e)
5046
5058
  }
5047
5059
  );
5048
5060
  }
@@ -5055,40 +5067,40 @@ En.setNotificationCallbacks({
5055
5067
  );
5056
5068
  },
5057
5069
  hideOfflineNotification: () => {
5058
- Dn("TOKEN_REFRESHER");
5070
+ kn("TOKEN_REFRESHER");
5059
5071
  }
5060
5072
  });
5061
- function Ad() {
5073
+ function xd() {
5062
5074
  return /* @__PURE__ */ n(oe, { center: !0 });
5063
5075
  }
5064
- function Pd({ msalInstance: e, clientId: t }) {
5065
- const [s, r] = g(null);
5076
+ function Td({ msalInstance: e, clientId: t }) {
5077
+ const [s, r] = p(null);
5066
5078
  function a(i, l) {
5067
5079
  r({ message: i, callback: l });
5068
5080
  }
5069
5081
  function o(i) {
5070
5082
  s && s.callback(i), r(null);
5071
5083
  }
5072
- return /* @__PURE__ */ n(Fn, { getUserConfirmation: a, children: /* @__PURE__ */ p(Te, { children: [
5073
- /* @__PURE__ */ n(K, { path: "/aftersignup", component: wd }),
5074
- /* @__PURE__ */ n(K, { path: "/afterregistermfadevice", component: yd }),
5084
+ return /* @__PURE__ */ n(Fn, { getUserConfirmation: a, children: /* @__PURE__ */ g(Te, { children: [
5085
+ /* @__PURE__ */ n(K, { path: "/aftersignup", component: Cd }),
5086
+ /* @__PURE__ */ n(K, { path: "/afterregistermfadevice", component: vd }),
5075
5087
  /* @__PURE__ */ n(K, { path: "/legals", component: Wn }),
5076
5088
  /* @__PURE__ */ n(
5077
5089
  K,
5078
5090
  {
5079
- render: () => /* @__PURE__ */ n(co, { instance: e, children: /* @__PURE__ */ n(
5080
- uo,
5091
+ render: () => /* @__PURE__ */ n(uo, { instance: e, children: /* @__PURE__ */ n(
5092
+ ho,
5081
5093
  {
5082
- interactionType: ks.Redirect,
5094
+ interactionType: Ds.Redirect,
5083
5095
  authenticationRequest: ga(t),
5084
- errorComponent: Sd,
5085
- loadingComponent: Ad,
5086
- children: /* @__PURE__ */ n(Gn, { children: /* @__PURE__ */ n(Bn, { children: /* @__PURE__ */ n(Ps, { children: /* @__PURE__ */ p(Hn, { children: [
5087
- /* @__PURE__ */ n(Te, { children: /* @__PURE__ */ n(gd, { component: As }) }),
5096
+ errorComponent: Pd,
5097
+ loadingComponent: xd,
5098
+ children: /* @__PURE__ */ n(Gn, { children: /* @__PURE__ */ n(Bn, { children: /* @__PURE__ */ n(Ps, { children: /* @__PURE__ */ g(Hn, { children: [
5099
+ /* @__PURE__ */ n(Te, { children: /* @__PURE__ */ n(wd, { component: As }) }),
5088
5100
  /* @__PURE__ */ n(Ts, {}),
5089
5101
  /* @__PURE__ */ n(Mn, {}),
5090
5102
  /* @__PURE__ */ n(Un, {}),
5091
- !A.isReleaseNotesHidden() && /* @__PURE__ */ n(Ns, {}),
5103
+ !P.isReleaseNotesHidden() && /* @__PURE__ */ n(Ns, {}),
5092
5104
  s && /* @__PURE__ */ n(
5093
5105
  Es,
5094
5106
  {
@@ -5104,11 +5116,11 @@ function Pd({ msalInstance: e, clientId: t }) {
5104
5116
  )
5105
5117
  ] }) });
5106
5118
  }
5107
- function pu() {
5108
- return pe() ? /* @__PURE__ */ n(Pd, { clientId: Nn(), msalInstance: ya() }) : /* @__PURE__ */ n(md, {});
5119
+ function yu() {
5120
+ return pe() ? /* @__PURE__ */ n(Td, { clientId: Nn(), msalInstance: ya() }) : /* @__PURE__ */ n(gd, {});
5109
5121
  }
5110
5122
  export {
5111
- pu as App,
5112
- mu as initializeApp
5123
+ yu as App,
5124
+ gu as initializeApp
5113
5125
  };
5114
5126
  //# sourceMappingURL=index.js.map