@deviceinsight/ng-ui-scale-lib 9.16.1 → 9.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccessEditModal-696ef72f.js → AccessEditModal-ee535c11.js} +1 -1
- package/dist/{BundleManagementContainer-6750fec7.js → BundleManagementContainer-e5ea2b74.js} +1 -1
- package/dist/{BundlesContainer-b531d3ab.js → BundlesContainer-7fe07aed.js} +2 -2
- package/dist/{ContextBarContext-d5e6210f.js → ContextBarContext-34f0c277.js} +29 -26
- package/dist/{DatapointImport-1b53cc1d.js → DatapointImport-c3c6b89e.js} +1 -1
- package/dist/{FileUploadInput-ad4db206.js → FileUploadInput-46834ef2.js} +1 -1
- package/dist/{Files-d709f7fa.js → Files-440bbbdb.js} +2 -2
- package/dist/{GlobalPowerBiReports-9424b87c.js → GlobalPowerBiReports-d1fd590c.js} +1 -1
- package/dist/{Graph-f5bb65ae.js → Graph-df3d0ec9.js} +1 -1
- package/dist/{JsonSettingWidget-994759f6.js → JsonSettingWidget-a8c97ec8.js} +2 -2
- package/dist/{LicensesEditPage-697f3524.js → LicensesEditPage-bf9b5e79.js} +1 -1
- package/dist/{LicensesList-3eebb75f.js → LicensesList-360b4311.js} +1 -1
- package/dist/{PropertiesEditPage-b8185c40.js → PropertiesEditPage-a23aa6bd.js} +2 -2
- package/dist/{PropertiesList-3668814d.js → PropertiesList-938962b5.js} +1 -1
- package/dist/{TemplateEditPage-96197c20.js → TemplateEditPage-2dd1a145.js} +4 -4
- package/dist/{TemplateTextInput-7060edfa.js → TemplateTextInput-0168206f.js} +2 -2
- package/dist/{TemplatesListPage-67f81653.js → TemplatesListPage-81dc71f1.js} +2 -2
- package/dist/{UserGroupAssignments-52ebadde.js → UserGroupAssignments-2eb66e37.js} +1 -1
- package/dist/{UserGroupTheme-09dfd9e6.js → UserGroupTheme-19443576.js} +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +2 -2
- package/dist/{index-a3a010a6.js → index-0b2e7cb2.js} +1 -1
- package/dist/index.js +518 -513
- package/dist/{react-router-14d32ef1.js → react-router-f35246d1.js} +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as oe, S as be, C as F, a as Z, b as Te, T as Gn, c as Uo, d as Or, e as b, O as ga, f as lr, g as Et, h as De, i as $n, L as At, j as ni, H as et, k as fa, P as ke, R as yh, l as Vn, m as Ch, n as dr, o as pa, p as ur, q as qt, r as Ni, s as hr, G as Wc, E as ma, t as Tt, J as vh, I as N, B as $e, u as ya, v as ge, w as ri, x as wh, y as Th, K as Vc, D as Ca, z as Ah, F as Ih, M as Yc, N as Sh, Q as Ct, U as gr, V as me, W as q, X as ee, Y as qc, Z as Fn, _ as Pt, $ as Qc, a0 as lt, a1 as Eh, a2 as va, a3 as bh, a4 as ie, a5 as Cn, a6 as kt, a7 as kh, a8 as We, a9 as Mh, aa as Rh, ab as it, ac as xh, ad as G, ae as _h, af as oo, ag as R, ah as qe, ai as Nh, aj as Ae, ak as Ph, al as Oh, am as Lh, an as Dh, ao as jh, ap as Uh, aq as Jc, ar as vn, as as V, at as c, au as he, av as Ho, aw as zn, ax as Qn, ay as Fo, az as Hh, aA as Zc, aB as Xc, aC as el, aD as zo, aE as Fh, aF as tl, aG as Dt, aH as Bo, aI as nl, aJ as zh, aK as ye, aL as Bh, aM as Kh, aN as tn, aO as Gh, aP as $h, aQ as Wh, aR as Vh, aS as Yh, aT as qh, aU as Ft, aV as Lr, aW as Qh, aX as Jh, aY as Zh, aZ as Yn, a_ as rl, a$ as Ko, b0 as il, b1 as so, b2 as ol, b3 as Xh, b4 as Go, b5 as eg, b6 as tg, b7 as ng, b8 as $o, b9 as ii, ba as rg, bb as ig, bc as sl, bd as og, be as sg, bf as ag, bg as cg, bh as wa, bi as ao, bj as lg, bk as dg, bl as ug, bm as hg, bn as al, bo as Wo, bp as gg, bq as cl, br as hn, bs as wn, bt as fg, bu as co, bv as pg, bw as ll, bx as mg, by as yg, bz as Cg, bA as vg, bB as Vo, bC as Yo, bD as dl, bE as wg, bF as Tg, bG as Ta, bH as Ag, bI as Ig, bJ as ul, bK as Sg, bL as Eg, bM as bg, bN as kg, bO as Mg, bP as Rg, bQ as xg, bR as _g, bS as Ng, bT as Pg, bU as Og, bV as Lg, bW as hl, bX as Dg, bY as jg, bZ as Ug, b_ as Qt, b$ as Hg, c0 as Fg, c1 as zg, c2 as Bg, c3 as Kg, c4 as Gg, c5 as $g, c6 as Wg, c7 as Vg, c8 as gt, c9 as Aa, ca as Yg, cb as qg, cc as Ia, cd as Sa, ce as Ea, cf as Qg, cg as Jg, ch as Zg, ci as Xg, cj as ba, ck as ka, cl as gl, cm as ef, cn as tf, co as nf, cp as rf, cq as fl, cr as of, cs as sf, ct as fr, cu as af, cv as cf, cw as pl, cx as Dr, cy as ml, cz as lf, cA as df, cB as uf } from "./ContextBarContext-
|
|
1
|
+
import { A as oe, S as be, C as F, a as Z, b as Te, T as Gn, c as Uo, d as Or, e as b, O as ga, f as lr, g as Et, h as De, i as $n, L as At, j as ni, H as et, k as fa, P as ke, R as yh, l as Vn, m as Ch, n as dr, o as pa, p as ur, q as qt, r as Ni, s as hr, G as Wc, E as ma, t as Tt, J as vh, I as N, B as $e, u as ya, v as ge, w as ri, x as wh, y as Th, K as Vc, D as Ca, z as Ah, F as Ih, M as Yc, N as Sh, Q as Ct, U as gr, V as me, W as q, X as ee, Y as qc, Z as Fn, _ as Pt, $ as Qc, a0 as lt, a1 as Eh, a2 as va, a3 as bh, a4 as ie, a5 as Cn, a6 as kt, a7 as kh, a8 as We, a9 as Mh, aa as Rh, ab as it, ac as xh, ad as G, ae as _h, af as oo, ag as R, ah as qe, ai as Nh, aj as Ae, ak as Ph, al as Oh, am as Lh, an as Dh, ao as jh, ap as Uh, aq as Jc, ar as vn, as as V, at as c, au as he, av as Ho, aw as zn, ax as Qn, ay as Fo, az as Hh, aA as Zc, aB as Xc, aC as el, aD as zo, aE as Fh, aF as tl, aG as Dt, aH as Bo, aI as nl, aJ as zh, aK as ye, aL as Bh, aM as Kh, aN as tn, aO as Gh, aP as $h, aQ as Wh, aR as Vh, aS as Yh, aT as qh, aU as Ft, aV as Lr, aW as Qh, aX as Jh, aY as Zh, aZ as Yn, a_ as rl, a$ as Ko, b0 as il, b1 as so, b2 as ol, b3 as Xh, b4 as Go, b5 as eg, b6 as tg, b7 as ng, b8 as $o, b9 as ii, ba as rg, bb as ig, bc as sl, bd as og, be as sg, bf as ag, bg as cg, bh as wa, bi as ao, bj as lg, bk as dg, bl as ug, bm as hg, bn as al, bo as Wo, bp as gg, bq as cl, br as hn, bs as wn, bt as fg, bu as co, bv as pg, bw as ll, bx as mg, by as yg, bz as Cg, bA as vg, bB as Vo, bC as Yo, bD as dl, bE as wg, bF as Tg, bG as Ta, bH as Ag, bI as Ig, bJ as ul, bK as Sg, bL as Eg, bM as bg, bN as kg, bO as Mg, bP as Rg, bQ as xg, bR as _g, bS as Ng, bT as Pg, bU as Og, bV as Lg, bW as hl, bX as Dg, bY as jg, bZ as Ug, b_ as Qt, b$ as Hg, c0 as Fg, c1 as zg, c2 as Bg, c3 as Kg, c4 as Gg, c5 as $g, c6 as Wg, c7 as Vg, c8 as gt, c9 as Aa, ca as Yg, cb as qg, cc as Ia, cd as Sa, ce as Ea, cf as Qg, cg as Jg, ch as Zg, ci as Xg, cj as ba, ck as ka, cl as gl, cm as ef, cn as tf, co as nf, cp as rf, cq as fl, cr as of, cs as sf, ct as fr, cu as af, cv as cf, cw as pl, cx as Dr, cy as ml, cz as lf, cA as df, cB as uf } from "./ContextBarContext-34f0c277.js";
|
|
2
2
|
import { readUIConfigurations as hf, setAxios as gf, readLegalPage as ff, readPaginationSettings as pf, requestToken as mf, fetchMe as oi, searchAssetGroups as yf, searchUsers as Cf, searchUserGroups as vf, searchAssets as wf, readFavorites as Tf, writeFavorites as Af, updateLocaleOfUser as If, getVersion as Sf, readEULA as jr, checkShowUserDocumentation as Ef, readShowUserDocumentation as bf, fetchShadowKeys as kf, readAccountObject as yl, writeAccountObject as Mf, writePaginationSettings as Rf, fetchProperties as xf, fetchAssetGroupDefinitions as _f, fetchLocales as Nf, readReleaseNotesSubscription as Pf, readReleaseNotesVersionsViewed as Of, writeReleaseNotesVersionsViewed as Lf, writeReleaseNotesSubscription as Df, acceptEULA as jf, updateMe as Cl, triggerPasswordReset as Uf, changeEmail as Hf, fetchAuthorizationOptions as Ff, setUserPassword as zf } from "@deviceinsight/ng-ui-api-client";
|
|
3
3
|
import { setGlobalErrorMessageBoxOptions as Bf, initializeTranslation as Kf, ContentHeader as Gf, messageBoxError as Ot, MultiMenu as Ur, MultiMenuItem as an, nanoid10 as vl, messageBoxSuccess as Ma, InfoBox as $f, messageBoxWarn as wl, messageBoxDismissGroup as Tl, MessageBoxContainer as Al } from "@deviceinsight/ng-ui-components";
|
|
4
4
|
import * as J from "react";
|
|
@@ -9694,8 +9694,13 @@ const lC = () => {
|
|
|
9694
9694
|
});
|
|
9695
9695
|
const r = G.getCustomStyleConfiguration();
|
|
9696
9696
|
r && oo.setStyleCustomizations(r);
|
|
9697
|
+
}, dC = {
|
|
9698
|
+
REACT_APP_GOOGLE_MAPS_API_KEY: "AIzaSyClVA7JlSiW2_-FkdjESist3N7eERmREpc"
|
|
9697
9699
|
};
|
|
9698
|
-
|
|
9700
|
+
function uC() {
|
|
9701
|
+
return dC;
|
|
9702
|
+
}
|
|
9703
|
+
async function hC() {
|
|
9699
9704
|
let r = {};
|
|
9700
9705
|
try {
|
|
9701
9706
|
r = await hf();
|
|
@@ -9708,10 +9713,10 @@ async function dC() {
|
|
|
9708
9713
|
}
|
|
9709
9714
|
await G.syncWithBackend(r), lC();
|
|
9710
9715
|
}
|
|
9711
|
-
function
|
|
9712
|
-
window.runtimeEnv = Ae.merge(Ph(), window.runtimeEnv ?? {}, window.tenantRuntimeEnv || {});
|
|
9716
|
+
function gC() {
|
|
9717
|
+
window.runtimeEnv = Ae.merge(uC(), Ph(), window.runtimeEnv ?? {}, window.tenantRuntimeEnv || {});
|
|
9713
9718
|
}
|
|
9714
|
-
function
|
|
9719
|
+
function fC() {
|
|
9715
9720
|
return Jc.create({
|
|
9716
9721
|
baseURL: G.getApiBaseUrl(),
|
|
9717
9722
|
headers: {
|
|
@@ -9723,8 +9728,8 @@ function hC() {
|
|
|
9723
9728
|
})
|
|
9724
9729
|
});
|
|
9725
9730
|
}
|
|
9726
|
-
async function
|
|
9727
|
-
gf(
|
|
9731
|
+
async function pC() {
|
|
9732
|
+
gf(fC());
|
|
9728
9733
|
const r = await Oh();
|
|
9729
9734
|
if (r) {
|
|
9730
9735
|
const e = Lh(r), t = new _s(e);
|
|
@@ -9737,10 +9742,10 @@ async function gC() {
|
|
|
9737
9742
|
} else
|
|
9738
9743
|
Uh();
|
|
9739
9744
|
}
|
|
9740
|
-
async function
|
|
9741
|
-
|
|
9745
|
+
async function PI() {
|
|
9746
|
+
gC(), nC(), await pC(), await hC(), Kf(R, qe);
|
|
9742
9747
|
}
|
|
9743
|
-
var
|
|
9748
|
+
var mC = typeof Element < "u", yC = typeof Map == "function", CC = typeof Set == "function", vC = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
9744
9749
|
function Rr(r, e) {
|
|
9745
9750
|
if (r === e)
|
|
9746
9751
|
return !0;
|
|
@@ -9757,7 +9762,7 @@ function Rr(r, e) {
|
|
|
9757
9762
|
return !0;
|
|
9758
9763
|
}
|
|
9759
9764
|
var o;
|
|
9760
|
-
if (
|
|
9765
|
+
if (yC && r instanceof Map && e instanceof Map) {
|
|
9761
9766
|
if (r.size !== e.size)
|
|
9762
9767
|
return !1;
|
|
9763
9768
|
for (o = r.entries(); !(n = o.next()).done; )
|
|
@@ -9768,7 +9773,7 @@ function Rr(r, e) {
|
|
|
9768
9773
|
return !1;
|
|
9769
9774
|
return !0;
|
|
9770
9775
|
}
|
|
9771
|
-
if (
|
|
9776
|
+
if (CC && r instanceof Set && e instanceof Set) {
|
|
9772
9777
|
if (r.size !== e.size)
|
|
9773
9778
|
return !1;
|
|
9774
9779
|
for (o = r.entries(); !(n = o.next()).done; )
|
|
@@ -9776,7 +9781,7 @@ function Rr(r, e) {
|
|
|
9776
9781
|
return !1;
|
|
9777
9782
|
return !0;
|
|
9778
9783
|
}
|
|
9779
|
-
if (
|
|
9784
|
+
if (vC && ArrayBuffer.isView(r) && ArrayBuffer.isView(e)) {
|
|
9780
9785
|
if (t = r.length, t != e.length)
|
|
9781
9786
|
return !1;
|
|
9782
9787
|
for (n = t; n-- !== 0; )
|
|
@@ -9795,7 +9800,7 @@ function Rr(r, e) {
|
|
|
9795
9800
|
for (n = t; n-- !== 0; )
|
|
9796
9801
|
if (!Object.prototype.hasOwnProperty.call(e, i[n]))
|
|
9797
9802
|
return !1;
|
|
9798
|
-
if (
|
|
9803
|
+
if (mC && r instanceof Element)
|
|
9799
9804
|
return !1;
|
|
9800
9805
|
for (n = t; n-- !== 0; )
|
|
9801
9806
|
if (!((i[n] === "_owner" || i[n] === "__v" || i[n] === "__o") && r.$$typeof) && !Rr(r[i[n]], e[i[n]]))
|
|
@@ -9804,7 +9809,7 @@ function Rr(r, e) {
|
|
|
9804
9809
|
}
|
|
9805
9810
|
return r !== r && e !== e;
|
|
9806
9811
|
}
|
|
9807
|
-
var
|
|
9812
|
+
var wC = function(e, t) {
|
|
9808
9813
|
try {
|
|
9809
9814
|
return Rr(e, t);
|
|
9810
9815
|
} catch (n) {
|
|
@@ -9813,8 +9818,8 @@ var CC = function(e, t) {
|
|
|
9813
9818
|
throw n;
|
|
9814
9819
|
}
|
|
9815
9820
|
};
|
|
9816
|
-
const
|
|
9817
|
-
var
|
|
9821
|
+
const TC = /* @__PURE__ */ kt(wC);
|
|
9822
|
+
var AC = function(r, e, t, n, i, o, s, a) {
|
|
9818
9823
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
9819
9824
|
throw new Error("invariant requires an error message argument");
|
|
9820
9825
|
if (!r) {
|
|
@@ -9833,9 +9838,9 @@ var wC = function(r, e, t, n, i, o, s, a) {
|
|
|
9833
9838
|
}
|
|
9834
9839
|
throw l.framesToPop = 1, l;
|
|
9835
9840
|
}
|
|
9836
|
-
},
|
|
9837
|
-
const rc = /* @__PURE__ */ kt(
|
|
9838
|
-
var
|
|
9841
|
+
}, IC = AC;
|
|
9842
|
+
const rc = /* @__PURE__ */ kt(IC);
|
|
9843
|
+
var SC = function(e, t, n, i) {
|
|
9839
9844
|
var o = n ? n.call(i, e, t) : void 0;
|
|
9840
9845
|
if (o !== void 0)
|
|
9841
9846
|
return !!o;
|
|
@@ -9856,7 +9861,7 @@ var AC = function(e, t, n, i) {
|
|
|
9856
9861
|
}
|
|
9857
9862
|
return !0;
|
|
9858
9863
|
};
|
|
9859
|
-
const
|
|
9864
|
+
const EC = /* @__PURE__ */ kt(SC);
|
|
9860
9865
|
function ae() {
|
|
9861
9866
|
return ae = Object.assign || function(r) {
|
|
9862
9867
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -9883,9 +9888,9 @@ function ic(r, e) {
|
|
|
9883
9888
|
e.indexOf(t = o[n]) >= 0 || (i[t] = r[t]);
|
|
9884
9889
|
return i;
|
|
9885
9890
|
}
|
|
9886
|
-
var H = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link", META: "meta", NOSCRIPT: "noscript", SCRIPT: "script", STYLE: "style", TITLE: "title", FRAGMENT: "Symbol(react.fragment)" },
|
|
9891
|
+
var H = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link", META: "meta", NOSCRIPT: "noscript", SCRIPT: "script", STYLE: "style", TITLE: "title", FRAGMENT: "Symbol(react.fragment)" }, bC = { rel: ["amphtml", "canonical", "alternate"] }, kC = { type: ["application/ld+json"] }, MC = { charset: "", name: ["robots", "description"], property: ["og:type", "og:title", "og:url", "og:image", "og:image:alt", "og:description", "twitter:url", "twitter:title", "twitter:description", "twitter:image", "twitter:image:alt", "twitter:card", "twitter:site"] }, oc = Object.keys(H).map(function(r) {
|
|
9887
9892
|
return H[r];
|
|
9888
|
-
}), Jr = { accesskey: "accessKey", charset: "charSet", class: "className", contenteditable: "contentEditable", contextmenu: "contextMenu", "http-equiv": "httpEquiv", itemprop: "itemProp", tabindex: "tabIndex" },
|
|
9893
|
+
}), Jr = { accesskey: "accessKey", charset: "charSet", class: "className", contenteditable: "contentEditable", contextmenu: "contextMenu", "http-equiv": "httpEquiv", itemprop: "itemProp", tabindex: "tabIndex" }, RC = Object.keys(Jr).reduce(function(r, e) {
|
|
9889
9894
|
return r[Jr[e]] = e, r;
|
|
9890
9895
|
}, {}), un = function(r, e) {
|
|
9891
9896
|
for (var t = r.length - 1; t >= 0; t -= 1) {
|
|
@@ -9894,7 +9899,7 @@ var H = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link",
|
|
|
9894
9899
|
return n[e];
|
|
9895
9900
|
}
|
|
9896
9901
|
return null;
|
|
9897
|
-
},
|
|
9902
|
+
}, xC = function(r) {
|
|
9898
9903
|
var e = un(r, H.TITLE), t = un(r, "titleTemplate");
|
|
9899
9904
|
if (Array.isArray(e) && (e = e.join("")), t && e)
|
|
9900
9905
|
return t.replace(/%s/g, function() {
|
|
@@ -9902,7 +9907,7 @@ var H = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link",
|
|
|
9902
9907
|
});
|
|
9903
9908
|
var n = un(r, "defaultTitle");
|
|
9904
9909
|
return e || n || void 0;
|
|
9905
|
-
},
|
|
9910
|
+
}, _C = function(r) {
|
|
9906
9911
|
return un(r, "onChangeClientState") || function() {
|
|
9907
9912
|
};
|
|
9908
9913
|
}, Hi = function(r, e) {
|
|
@@ -9913,7 +9918,7 @@ var H = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link",
|
|
|
9913
9918
|
}).reduce(function(t, n) {
|
|
9914
9919
|
return ae({}, t, n);
|
|
9915
9920
|
}, {});
|
|
9916
|
-
},
|
|
9921
|
+
}, NC = function(r, e) {
|
|
9917
9922
|
return e.filter(function(t) {
|
|
9918
9923
|
return t[H.BASE] !== void 0;
|
|
9919
9924
|
}).map(function(t) {
|
|
@@ -9953,7 +9958,7 @@ var H = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link",
|
|
|
9953
9958
|
}
|
|
9954
9959
|
return i;
|
|
9955
9960
|
}, []).reverse();
|
|
9956
|
-
},
|
|
9961
|
+
}, PC = function(r, e) {
|
|
9957
9962
|
if (Array.isArray(r) && r.length) {
|
|
9958
9963
|
for (var t = 0; t < r.length; t += 1)
|
|
9959
9964
|
if (r[t][e])
|
|
@@ -9974,7 +9979,7 @@ var H = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link",
|
|
|
9974
9979
|
}, sc = function(r, e) {
|
|
9975
9980
|
var t;
|
|
9976
9981
|
return ae({}, r, ((t = {})[e] = void 0, t));
|
|
9977
|
-
},
|
|
9982
|
+
}, OC = [H.NOSCRIPT, H.SCRIPT, H.STYLE], zi = function(r, e) {
|
|
9978
9983
|
return e === void 0 && (e = !0), e === !1 ? String(r) : String(r).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
9979
9984
|
}, ac = function(r) {
|
|
9980
9985
|
return Object.keys(r).reduce(function(e, t) {
|
|
@@ -10023,7 +10028,7 @@ var H = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link",
|
|
|
10023
10028
|
}).reduce(function(d, g) {
|
|
10024
10029
|
var f = a[g] === void 0 ? g : g + '="' + zi(a[g], o) + '"';
|
|
10025
10030
|
return d ? d + " " + f : f;
|
|
10026
|
-
}, ""), h = a.innerHTML || a.cssText || "", u =
|
|
10031
|
+
}, ""), h = a.innerHTML || a.cssText || "", u = OC.indexOf(n) === -1;
|
|
10027
10032
|
return s + "<" + n + ' data-rh="true" ' + l + (u ? "/>" : ">" + h + "</" + n + ">");
|
|
10028
10033
|
}, "");
|
|
10029
10034
|
}(r, e, t);
|
|
@@ -10036,7 +10041,7 @@ var H = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link",
|
|
|
10036
10041
|
} };
|
|
10037
10042
|
if (r.prioritizeSeoTags) {
|
|
10038
10043
|
var m = function(p) {
|
|
10039
|
-
var y = p.linkTags, C = p.scriptTags, w = p.encode, A = Fi(p.metaTags,
|
|
10044
|
+
var y = p.linkTags, C = p.scriptTags, w = p.encode, A = Fi(p.metaTags, MC), I = Fi(y, bC), S = Fi(C, kC);
|
|
10040
10045
|
return { priorityMethods: { toComponent: function() {
|
|
10041
10046
|
return [].concat(xr(H.META, A.priority), xr(H.LINK, I.priority), xr(H.SCRIPT, S.priority));
|
|
10042
10047
|
}, toString: function() {
|
|
@@ -10058,7 +10063,7 @@ var H = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link",
|
|
|
10058
10063
|
var i = (t.canUseDOM ? yr : t.instances).indexOf(n);
|
|
10059
10064
|
(t.canUseDOM ? yr : t.instances).splice(i, 1);
|
|
10060
10065
|
} } }, this.context = r, this.canUseDOM = e, e || (r.helmet = ko({ baseTag: [], bodyAttributes: {}, encodeSpecialCharacters: !0, htmlAttributes: {}, linkTags: [], metaTags: [], noscriptTags: [], scriptTags: [], styleTags: [], title: "", titleAttributes: {} }));
|
|
10061
|
-
}, lu = Ce.createContext({}),
|
|
10066
|
+
}, lu = Ce.createContext({}), LC = V.shape({ setHelmet: V.func, helmetInstances: V.shape({ get: V.func, add: V.func, remove: V.func }) }), DC = typeof document < "u", Lt = /* @__PURE__ */ function(r) {
|
|
10062
10067
|
function e(t) {
|
|
10063
10068
|
var n;
|
|
10064
10069
|
return (n = r.call(this, t) || this).helmetData = new Mo(n.props.context, e.canUseDOM), n;
|
|
@@ -10067,7 +10072,7 @@ var H = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link",
|
|
|
10067
10072
|
return Ce.createElement(lu.Provider, { value: this.helmetData.value }, this.props.children);
|
|
10068
10073
|
}, e;
|
|
10069
10074
|
}(si);
|
|
10070
|
-
Lt.canUseDOM =
|
|
10075
|
+
Lt.canUseDOM = DC, Lt.propTypes = { context: V.shape({ helmet: V.shape() }), children: V.node.isRequired }, Lt.defaultProps = { context: {} }, Lt.displayName = "HelmetProvider";
|
|
10071
10076
|
var Jt = function(r, e) {
|
|
10072
10077
|
var t, n = document.head || document.querySelector(H.HEAD), i = n.querySelectorAll(r + "[data-rh]"), o = [].slice.call(i), s = [];
|
|
10073
10078
|
return e && e.length && e.forEach(function(a) {
|
|
@@ -10114,7 +10119,7 @@ var Jt = function(r, e) {
|
|
|
10114
10119
|
Ns(e, r);
|
|
10115
10120
|
var t = e.prototype;
|
|
10116
10121
|
return t.shouldComponentUpdate = function(n) {
|
|
10117
|
-
return !
|
|
10122
|
+
return !EC(n, this.props);
|
|
10118
10123
|
}, t.componentDidUpdate = function() {
|
|
10119
10124
|
this.emitChange();
|
|
10120
10125
|
}, t.componentWillUnmount = function() {
|
|
@@ -10123,7 +10128,7 @@ var Jt = function(r, e) {
|
|
|
10123
10128
|
var n, i, o = this.props.context, s = o.setHelmet, a = null, l = (n = o.helmetInstances.get().map(function(h) {
|
|
10124
10129
|
var u = ae({}, h.props);
|
|
10125
10130
|
return delete u.context, u;
|
|
10126
|
-
}), { baseTag:
|
|
10131
|
+
}), { baseTag: NC(["href"], n), bodyAttributes: Hi("bodyAttributes", n), defer: un(n, "defer"), encode: un(n, "encodeSpecialCharacters"), htmlAttributes: Hi("htmlAttributes", n), linkTags: Rn(H.LINK, ["rel", "href"], n), metaTags: Rn(H.META, ["name", "charset", "http-equiv", "property", "itemprop"], n), noscriptTags: Rn(H.NOSCRIPT, ["innerHTML"], n), onChangeClientState: _C(n), scriptTags: Rn(H.SCRIPT, ["src", "innerHTML"], n), styleTags: Rn(H.STYLE, ["cssText"], n), title: xC(n), titleAttributes: Hi("titleAttributes", n), prioritizeSeoTags: PC(n, "prioritizeSeoTags") });
|
|
10127
10132
|
Lt.canUseDOM ? (i = l, xn && cancelAnimationFrame(xn), i.defer ? xn = requestAnimationFrame(function() {
|
|
10128
10133
|
lc(i, function() {
|
|
10129
10134
|
xn = null;
|
|
@@ -10135,15 +10140,15 @@ var Jt = function(r, e) {
|
|
|
10135
10140
|
return this.init(), null;
|
|
10136
10141
|
}, e;
|
|
10137
10142
|
}(si);
|
|
10138
|
-
Zr.propTypes = { context:
|
|
10139
|
-
var
|
|
10143
|
+
Zr.propTypes = { context: LC.isRequired }, Zr.displayName = "HelmetDispatcher";
|
|
10144
|
+
var jC = ["children"], UC = ["children"], _r = /* @__PURE__ */ function(r) {
|
|
10140
10145
|
function e() {
|
|
10141
10146
|
return r.apply(this, arguments) || this;
|
|
10142
10147
|
}
|
|
10143
10148
|
Ns(e, r);
|
|
10144
10149
|
var t = e.prototype;
|
|
10145
10150
|
return t.shouldComponentUpdate = function(n) {
|
|
10146
|
-
return !
|
|
10151
|
+
return !TC(sc(this.props, "helmetData"), sc(n, "helmetData"));
|
|
10147
10152
|
}, t.mapNestedChildrenToProps = function(n, i) {
|
|
10148
10153
|
if (!i)
|
|
10149
10154
|
return null;
|
|
@@ -10187,8 +10192,8 @@ var LC = ["children"], DC = ["children"], _r = /* @__PURE__ */ function(r) {
|
|
|
10187
10192
|
var o = this, s = {};
|
|
10188
10193
|
return Ce.Children.forEach(n, function(a) {
|
|
10189
10194
|
if (a && a.props) {
|
|
10190
|
-
var l = a.props, h = l.children, u = ic(l,
|
|
10191
|
-
return f[
|
|
10195
|
+
var l = a.props, h = l.children, u = ic(l, jC), d = Object.keys(u).reduce(function(f, m) {
|
|
10196
|
+
return f[RC[m] || m] = u[m], f;
|
|
10192
10197
|
}, {}), g = a.type;
|
|
10193
10198
|
switch (typeof g == "symbol" ? g = g.toString() : o.warnOnInvalidChildren(a, h), g) {
|
|
10194
10199
|
case H.FRAGMENT:
|
|
@@ -10207,15 +10212,15 @@ var LC = ["children"], DC = ["children"], _r = /* @__PURE__ */ function(r) {
|
|
|
10207
10212
|
}
|
|
10208
10213
|
}), this.mapArrayTypeChildrenToProps(s, i);
|
|
10209
10214
|
}, t.render = function() {
|
|
10210
|
-
var n = this.props, i = n.children, o = ic(n,
|
|
10215
|
+
var n = this.props, i = n.children, o = ic(n, UC), s = ae({}, o), a = o.helmetData;
|
|
10211
10216
|
return i && (s = this.mapChildrenToProps(i, s)), !a || a instanceof Mo || (a = new Mo(a.context, a.instances)), a ? /* @__PURE__ */ Ce.createElement(Zr, ae({}, s, { context: a.value, helmetData: void 0 })) : /* @__PURE__ */ Ce.createElement(lu.Consumer, null, function(l) {
|
|
10212
10217
|
return Ce.createElement(Zr, ae({}, s, { context: l }));
|
|
10213
10218
|
});
|
|
10214
10219
|
}, e;
|
|
10215
10220
|
}(si);
|
|
10216
10221
|
_r.propTypes = { base: V.object, bodyAttributes: V.object, children: V.oneOfType([V.arrayOf(V.node), V.node]), defaultTitle: V.string, defer: V.bool, encodeSpecialCharacters: V.bool, htmlAttributes: V.object, link: V.arrayOf(V.object), meta: V.arrayOf(V.object), noscript: V.arrayOf(V.object), onChangeClientState: V.func, script: V.arrayOf(V.object), style: V.arrayOf(V.object), title: V.string, titleAttributes: V.object, titleTemplate: V.string, prioritizeSeoTags: V.bool, helmetData: V.object }, _r.defaultProps = { defer: !0, encodeSpecialCharacters: !0, prioritizeSeoTags: !1 }, _r.displayName = "Helmet";
|
|
10217
|
-
const
|
|
10218
|
-
class
|
|
10222
|
+
const HC = "imprint", FC = "privacy";
|
|
10223
|
+
class zC extends J.Component {
|
|
10219
10224
|
constructor() {
|
|
10220
10225
|
super(...arguments), this.state = {
|
|
10221
10226
|
extHtml: "",
|
|
@@ -10241,12 +10246,12 @@ class HC extends J.Component {
|
|
|
10241
10246
|
getPageTypeTitle() {
|
|
10242
10247
|
const { pageType: e } = this.state;
|
|
10243
10248
|
switch (e) {
|
|
10244
|
-
case
|
|
10249
|
+
case HC:
|
|
10245
10250
|
return {
|
|
10246
10251
|
id: "legal.page.imprint",
|
|
10247
10252
|
defaultValue: "Imprint / legal"
|
|
10248
10253
|
};
|
|
10249
|
-
case
|
|
10254
|
+
case FC:
|
|
10250
10255
|
return {
|
|
10251
10256
|
id: "legal.page.privacy",
|
|
10252
10257
|
defaultValue: "Privacy statement"
|
|
@@ -10276,7 +10281,7 @@ class HC extends J.Component {
|
|
|
10276
10281
|
] });
|
|
10277
10282
|
}
|
|
10278
10283
|
}
|
|
10279
|
-
const du = Qo(
|
|
10284
|
+
const du = Qo(zC);
|
|
10280
10285
|
function uu() {
|
|
10281
10286
|
const { user: r, resetAuthenticatedUser: e } = K(he), { instance: t } = it(), [n, i] = k([]), [o, s] = k(!1), [a, l] = k(!1), [h, u] = k(!1), [d, g] = k(0), f = Q(
|
|
10282
10287
|
async (E, L) => (Qn() ? await Fo(E, t) : await Ho(E, L), Promise.resolve()),
|
|
@@ -10363,7 +10368,7 @@ async function hu(r, e, t, n) {
|
|
|
10363
10368
|
throw console.error("signin failed", i), zo(), i;
|
|
10364
10369
|
}
|
|
10365
10370
|
}
|
|
10366
|
-
function
|
|
10371
|
+
function BC() {
|
|
10367
10372
|
const [r, e] = k(!0), [t, n] = k(), [i, o] = k(), { setAuthenticatedUser: s } = K(he), { instance: a, accounts: l } = it(), h = au(l[0] || {});
|
|
10368
10373
|
return j(() => {
|
|
10369
10374
|
let u = !1;
|
|
@@ -10395,11 +10400,11 @@ function FC() {
|
|
|
10395
10400
|
};
|
|
10396
10401
|
}, [h, a, s]), { startPage: i, loading: r, error: t };
|
|
10397
10402
|
}
|
|
10398
|
-
function
|
|
10399
|
-
const { loading: e, startPage: t, error: n } =
|
|
10403
|
+
function KC({ component: r }) {
|
|
10404
|
+
const { loading: e, startPage: t, error: n } = BC(), { instance: i } = it(), { pathname: o } = Ue();
|
|
10400
10405
|
return e ? /* @__PURE__ */ c.jsx(An, { center: !0 }) : n ? (console.error("ProtectedRouteMsal error: ", n), i.logoutRedirect(), null) : t && o === "/" && t !== "/" ? /* @__PURE__ */ c.jsx(Jo, { to: t }) : /* @__PURE__ */ c.jsx(Ne, { render: (s) => Ce.createElement(r, s) });
|
|
10401
10406
|
}
|
|
10402
|
-
function
|
|
10407
|
+
function GC({ value: r, options: e, onChange: t }) {
|
|
10403
10408
|
const [n, i] = k(!1), { ref: o } = Bo(s);
|
|
10404
10409
|
function s() {
|
|
10405
10410
|
n && i(!1);
|
|
@@ -10431,7 +10436,7 @@ function BC({ value: r, options: e, onChange: t }) {
|
|
|
10431
10436
|
)) })
|
|
10432
10437
|
] });
|
|
10433
10438
|
}
|
|
10434
|
-
const
|
|
10439
|
+
const $C = {
|
|
10435
10440
|
assets: {
|
|
10436
10441
|
id: "search.assets.searchname",
|
|
10437
10442
|
defaultValue: "Assets"
|
|
@@ -10453,7 +10458,7 @@ const KC = {
|
|
|
10453
10458
|
defaultValue: "Roles"
|
|
10454
10459
|
}
|
|
10455
10460
|
};
|
|
10456
|
-
function
|
|
10461
|
+
function WC() {
|
|
10457
10462
|
const { availableContexts: r, context: e, changeContext: t, searchConfig: n, submitQuery: i, query: o } = K(nl);
|
|
10458
10463
|
return !e || !n ? null : /* @__PURE__ */ c.jsx("div", { className: "di searchG", children: /* @__PURE__ */ c.jsx(
|
|
10459
10464
|
zh,
|
|
@@ -10465,12 +10470,12 @@ function GC() {
|
|
|
10465
10470
|
autofocus: !0,
|
|
10466
10471
|
withQueryBuilder: e !== "roles",
|
|
10467
10472
|
children: r && /* @__PURE__ */ c.jsx(
|
|
10468
|
-
|
|
10473
|
+
GC,
|
|
10469
10474
|
{
|
|
10470
10475
|
value: e,
|
|
10471
10476
|
options: r.map((s) => ({
|
|
10472
10477
|
value: s,
|
|
10473
|
-
label:
|
|
10478
|
+
label: $C[s]
|
|
10474
10479
|
})),
|
|
10475
10480
|
onChange: t
|
|
10476
10481
|
}
|
|
@@ -10522,7 +10527,7 @@ function _n({
|
|
|
10522
10527
|
] });
|
|
10523
10528
|
}
|
|
10524
10529
|
var ce = /* @__PURE__ */ ((r) => (r.up = "up", r.down = "down", r.leftOrRight = "leftOrRight", r.right = "right", r.enter = "enter", r.reset = "reset", r))(ce || {});
|
|
10525
|
-
function
|
|
10530
|
+
function VC() {
|
|
10526
10531
|
const { current: r } = Me(new Bh());
|
|
10527
10532
|
function e(i) {
|
|
10528
10533
|
r.emit(i);
|
|
@@ -10550,10 +10555,10 @@ function Ki(r, e) {
|
|
|
10550
10555
|
var t;
|
|
10551
10556
|
return e ? ((t = r[e]) == null ? void 0 : t.data.length) ?? 0 : 0;
|
|
10552
10557
|
}
|
|
10553
|
-
function
|
|
10558
|
+
function YC(r, e) {
|
|
10554
10559
|
return e <= 3 ? r : r < Math.ceil(e / 2) ? Math.min(e - 1, r + Math.ceil(e / 2)) : r - Math.ceil(e / 2);
|
|
10555
10560
|
}
|
|
10556
|
-
function
|
|
10561
|
+
function qC(r, e) {
|
|
10557
10562
|
switch (r) {
|
|
10558
10563
|
case "assets":
|
|
10559
10564
|
return `/assets/${e.id}`;
|
|
@@ -10567,7 +10572,7 @@ function VC(r, e) {
|
|
|
10567
10572
|
return `/roles/${e.id}`;
|
|
10568
10573
|
}
|
|
10569
10574
|
}
|
|
10570
|
-
function
|
|
10575
|
+
function QC(r, e, t) {
|
|
10571
10576
|
const [n, i] = k(0), [o, s] = k(), a = ot();
|
|
10572
10577
|
j(() => {
|
|
10573
10578
|
function h() {
|
|
@@ -10588,13 +10593,13 @@ function YC(r, e, t) {
|
|
|
10588
10593
|
}
|
|
10589
10594
|
}
|
|
10590
10595
|
function d() {
|
|
10591
|
-
i(
|
|
10596
|
+
i(YC(n, Ki(r, o)));
|
|
10592
10597
|
}
|
|
10593
10598
|
function g() {
|
|
10594
10599
|
var f, m;
|
|
10595
10600
|
if (o) {
|
|
10596
10601
|
const p = (m = (f = r[o]) == null ? void 0 : f.data) == null ? void 0 : m[n];
|
|
10597
|
-
p && (a.push(
|
|
10602
|
+
p && (a.push(qC(o, p)), t());
|
|
10598
10603
|
}
|
|
10599
10604
|
}
|
|
10600
10605
|
return e.addListener(ce.up, u), e.addListener(ce.down, h), e.addListener(ce.leftOrRight, d), e.addListener(ce.enter, g), () => {
|
|
@@ -10622,7 +10627,7 @@ function YC(r, e, t) {
|
|
|
10622
10627
|
);
|
|
10623
10628
|
return Kh(["up", "down", "left", "right", "enter"], l), { group: o, index: n };
|
|
10624
10629
|
}
|
|
10625
|
-
function
|
|
10630
|
+
function JC({
|
|
10626
10631
|
searchInputRect: r,
|
|
10627
10632
|
visible: e,
|
|
10628
10633
|
onHide: t,
|
|
@@ -10631,7 +10636,7 @@ function qC({
|
|
|
10631
10636
|
elementsIgnoredOnClickOutside: o,
|
|
10632
10637
|
keyboardEventEmitter: s
|
|
10633
10638
|
}) {
|
|
10634
|
-
const a = Ps(), { ref: l } = Bo(t, o), { index: h, group: u } =
|
|
10639
|
+
const a = Ps(), { ref: l } = Bo(t, o), { index: h, group: u } = QC(n, s, t);
|
|
10635
10640
|
if (!a || i === "")
|
|
10636
10641
|
return null;
|
|
10637
10642
|
const d = [n.assets, n.assetGroups, n.userGroups, n.users, n.roles].every(
|
|
@@ -10725,15 +10730,15 @@ function qC({
|
|
|
10725
10730
|
a
|
|
10726
10731
|
);
|
|
10727
10732
|
}
|
|
10728
|
-
const
|
|
10729
|
-
size:
|
|
10733
|
+
const ZC = 10, XC = {
|
|
10734
|
+
size: ZC,
|
|
10730
10735
|
page: 0,
|
|
10731
10736
|
sort: {
|
|
10732
10737
|
property: "name",
|
|
10733
10738
|
direction: "ASC"
|
|
10734
10739
|
}
|
|
10735
10740
|
};
|
|
10736
|
-
function
|
|
10741
|
+
function ev(r, e) {
|
|
10737
10742
|
return wf(Jh(r), e);
|
|
10738
10743
|
}
|
|
10739
10744
|
function Nn(r, e, t, n) {
|
|
@@ -10746,7 +10751,7 @@ function Nn(r, e, t, n) {
|
|
|
10746
10751
|
return;
|
|
10747
10752
|
}
|
|
10748
10753
|
o(void 0);
|
|
10749
|
-
const { promise: l, cancel: h } = Lr(e(r,
|
|
10754
|
+
const { promise: l, cancel: h } = Lr(e(r, XC));
|
|
10750
10755
|
return l.then((u) => {
|
|
10751
10756
|
o(u.content), a(u.totalElements);
|
|
10752
10757
|
}).catch((u) => {
|
|
@@ -10756,12 +10761,12 @@ function Nn(r, e, t, n) {
|
|
|
10756
10761
|
};
|
|
10757
10762
|
}, [e, r, t, n]), i ? { data: i, total: s } : void 0;
|
|
10758
10763
|
}
|
|
10759
|
-
function
|
|
10760
|
-
const [e, t] = k(0), n = Nn(r,
|
|
10764
|
+
function tv(r) {
|
|
10765
|
+
const [e, t] = k(0), n = Nn(r, ev, "READ_ASSET", e), i = Nn(r, yf, "READ_ASSET_GROUP", e), o = Nn(r, Cf, "READ_ACCOUNT", e), s = Nn(r, vf, "READ_ACCOUNT_GROUP", e), a = Nn(r, Qh, "READ_ROLE", e);
|
|
10761
10766
|
return { assets: n, assetGroups: i, users: o, userGroups: s, roles: a, reload: () => t((l) => l + 1) };
|
|
10762
10767
|
}
|
|
10763
|
-
function
|
|
10764
|
-
const { t: r } = qe(), [e, t] = k(!1), { ref: n, entries: i } = Zh(), [o, s] = k(""), a = o && o.includes("*") ? o : o.includes(":") && !/^".*"$/.test(o) ? `"*${o}*"` : `*${o}*`, l =
|
|
10768
|
+
function nv() {
|
|
10769
|
+
const { t: r } = qe(), [e, t] = k(!1), { ref: n, entries: i } = Zh(), [o, s] = k(""), a = o && o.includes("*") ? o : o.includes(":") && !/^".*"$/.test(o) ? `"*${o}*"` : `*${o}*`, l = tv(a), h = i != null && i.length ? i[0].target.getBoundingClientRect() : void 0, u = VC(), d = Me(null), g = Me(null);
|
|
10765
10770
|
function f(p) {
|
|
10766
10771
|
u.emit(ce.reset), p.target.value && t(!0);
|
|
10767
10772
|
}
|
|
@@ -10803,7 +10808,7 @@ function ev() {
|
|
|
10803
10808
|
}
|
|
10804
10809
|
) }),
|
|
10805
10810
|
/* @__PURE__ */ c.jsx(
|
|
10806
|
-
|
|
10811
|
+
JC,
|
|
10807
10812
|
{
|
|
10808
10813
|
elementsIgnoredOnClickOutside: [d.current, g.current].filter(rl),
|
|
10809
10814
|
searchInputRect: h,
|
|
@@ -10816,38 +10821,38 @@ function ev() {
|
|
|
10816
10821
|
)
|
|
10817
10822
|
] });
|
|
10818
10823
|
}
|
|
10819
|
-
function
|
|
10824
|
+
function rv({ mode: r, onModeChange: e }) {
|
|
10820
10825
|
return /* @__PURE__ */ c.jsxs("div", { className: "di search-mode-switch", children: [
|
|
10821
10826
|
/* @__PURE__ */ c.jsx(te, { className: ye({ on: r === "full" }), naked: !0, onClick: () => e("full"), children: /* @__PURE__ */ c.jsx(R, { i18nKey: "search.mode.full", children: "Full" }) }),
|
|
10822
10827
|
/* @__PURE__ */ c.jsx(te, { className: ye({ on: r === "context" }), naked: !0, onClick: () => e("context"), children: /* @__PURE__ */ c.jsx(R, { i18nKey: "search.mode.context", children: "Context" }) })
|
|
10823
10828
|
] });
|
|
10824
10829
|
}
|
|
10825
|
-
function
|
|
10830
|
+
function iv() {
|
|
10826
10831
|
const { defaultSearchMode: r } = K(he), [e, t] = k(r);
|
|
10827
10832
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
10828
|
-
e === "context" ? /* @__PURE__ */ c.jsx(
|
|
10829
|
-
/* @__PURE__ */ c.jsx(
|
|
10833
|
+
e === "context" ? /* @__PURE__ */ c.jsx(WC, {}) : /* @__PURE__ */ c.jsx(nv, {}),
|
|
10834
|
+
/* @__PURE__ */ c.jsx(rv, { mode: e, onModeChange: t })
|
|
10830
10835
|
] });
|
|
10831
10836
|
}
|
|
10832
|
-
const
|
|
10833
|
-
function
|
|
10837
|
+
const ov = Ko("HeaderSearch")(iv);
|
|
10838
|
+
function sv({ children: r, className: e }) {
|
|
10834
10839
|
const t = Ps(".di.app-wrapper");
|
|
10835
10840
|
return t ? El(/* @__PURE__ */ c.jsx("div", { className: e, children: r }), t) : null;
|
|
10836
10841
|
}
|
|
10837
|
-
const
|
|
10838
|
-
function
|
|
10839
|
-
const [e, t] = qo(
|
|
10842
|
+
const av = (r, e) => r === "closed" && e === "open" ? "pre-opening" : r === "pre-opening" && e === "timeout" ? "opening" : r === "opening" && e === "timeout" ? "open" : r === "open" && e === "close" ? "closing" : r === "closing" && e === "timeout" ? "closed" : r;
|
|
10843
|
+
function cv(r) {
|
|
10844
|
+
const [e, t] = qo(av, "closed");
|
|
10840
10845
|
return j(() => {
|
|
10841
10846
|
r ? (t("open"), setTimeout(() => t("timeout"), 50), setTimeout(() => t("timeout"), 300)) : (t("close"), setTimeout(() => t("timeout"), 300));
|
|
10842
10847
|
}, [r]), e;
|
|
10843
10848
|
}
|
|
10844
10849
|
function gu({ className: r, visible: e, onHide: t, children: n }) {
|
|
10845
|
-
const i =
|
|
10850
|
+
const i = cv(e), { ref: o } = Bo(
|
|
10846
10851
|
Q(() => {
|
|
10847
10852
|
e && t();
|
|
10848
10853
|
}, [e, t])
|
|
10849
10854
|
);
|
|
10850
|
-
return /* @__PURE__ */ c.jsx(
|
|
10855
|
+
return /* @__PURE__ */ c.jsx(sv, { className: ye(r, "di floating-panel-portal", { open: i !== "closed" }), children: /* @__PURE__ */ c.jsx(
|
|
10851
10856
|
"div",
|
|
10852
10857
|
{
|
|
10853
10858
|
ref: o,
|
|
@@ -10856,10 +10861,10 @@ function gu({ className: r, visible: e, onHide: t, children: n }) {
|
|
|
10856
10861
|
}
|
|
10857
10862
|
) });
|
|
10858
10863
|
}
|
|
10859
|
-
function
|
|
10864
|
+
function lv(r) {
|
|
10860
10865
|
return r.replace(/\/?$/, "");
|
|
10861
10866
|
}
|
|
10862
|
-
function
|
|
10867
|
+
function dv() {
|
|
10863
10868
|
const { open: r, hide: e, historyItems: t, clearHistory: n } = K(js);
|
|
10864
10869
|
return /* @__PURE__ */ c.jsx(gu, { visible: r, onHide: e, className: "di history-panel", children: /* @__PURE__ */ c.jsxs("div", { className: "wrapper", children: [
|
|
10865
10870
|
/* @__PURE__ */ c.jsxs("div", { className: "header", children: [
|
|
@@ -10874,13 +10879,13 @@ function cv() {
|
|
|
10874
10879
|
)
|
|
10875
10880
|
] }),
|
|
10876
10881
|
/* @__PURE__ */ c.jsx("ul", { className: "content", children: t.map(({ title: i, url: o, date: s }) => /* @__PURE__ */ c.jsxs("li", { className: "item", children: [
|
|
10877
|
-
/* @__PURE__ */ c.jsx(Re, { className: "title", to:
|
|
10882
|
+
/* @__PURE__ */ c.jsx(Re, { className: "title", to: lv(o), onClick: e, children: i }),
|
|
10878
10883
|
/* @__PURE__ */ c.jsx("span", { className: "date", title: so(s), "data-testid": "date-field", children: so(s, { format: "L" }) })
|
|
10879
10884
|
] }, s)) }),
|
|
10880
10885
|
t.length === 0 && /* @__PURE__ */ c.jsx("div", { "data-testid": "empty-message", children: /* @__PURE__ */ c.jsx(R, { i18nKey: "history.empty", children: "No history items." }) })
|
|
10881
10886
|
] }) });
|
|
10882
10887
|
}
|
|
10883
|
-
const Os = "di-history-items",
|
|
10888
|
+
const Os = "di-history-items", uv = 20;
|
|
10884
10889
|
function Ls() {
|
|
10885
10890
|
const r = localStorage.getItem(Os) ?? "{}";
|
|
10886
10891
|
return JSON.parse(r);
|
|
@@ -10888,12 +10893,12 @@ function Ls() {
|
|
|
10888
10893
|
function Ds(r) {
|
|
10889
10894
|
return Ls()[r] ?? [];
|
|
10890
10895
|
}
|
|
10891
|
-
function
|
|
10896
|
+
function hv(r, e) {
|
|
10892
10897
|
const t = Ls(), n = Ds(e);
|
|
10893
10898
|
let i;
|
|
10894
|
-
n.length && n[0].url === r.url ? i = [r, ...n.slice(1)] : i = [r, ...n].slice(0,
|
|
10899
|
+
n.length && n[0].url === r.url ? i = [r, ...n.slice(1)] : i = [r, ...n].slice(0, uv), localStorage.setItem(Os, JSON.stringify({ ...t, [e]: i }));
|
|
10895
10900
|
}
|
|
10896
|
-
function
|
|
10901
|
+
function gv(r) {
|
|
10897
10902
|
const e = Ls();
|
|
10898
10903
|
localStorage.setItem(Os, JSON.stringify({ ...e, [r]: [] }));
|
|
10899
10904
|
}
|
|
@@ -10910,7 +10915,7 @@ const vi = ai({
|
|
|
10910
10915
|
clearHistory: () => {
|
|
10911
10916
|
},
|
|
10912
10917
|
historyItems: []
|
|
10913
|
-
}),
|
|
10918
|
+
}), fv = Ae.debounce(
|
|
10914
10919
|
(r, e, t, n, i) => {
|
|
10915
10920
|
if (!i)
|
|
10916
10921
|
return;
|
|
@@ -10919,16 +10924,16 @@ const vi = ai({
|
|
|
10919
10924
|
url: `${r}/${e}`,
|
|
10920
10925
|
title: i
|
|
10921
10926
|
};
|
|
10922
|
-
|
|
10927
|
+
hv(o, t.number), n(Ds(t.number));
|
|
10923
10928
|
},
|
|
10924
10929
|
500
|
|
10925
10930
|
);
|
|
10926
|
-
function
|
|
10931
|
+
function pv({ children: r }) {
|
|
10927
10932
|
const [e, t] = k(!1), { pathname: n, search: i } = Ue(), { user: o } = K(he), [s, a] = k([]), { currentPageTitle: l } = K(vi);
|
|
10928
10933
|
j(() => {
|
|
10929
10934
|
o && a(Ds(o.number));
|
|
10930
10935
|
}, [o]), j(() => {
|
|
10931
|
-
G.isHistoryEnabled() && o &&
|
|
10936
|
+
G.isHistoryEnabled() && o && fv(n, i, o, a, l);
|
|
10932
10937
|
}, [n, i, o, l]);
|
|
10933
10938
|
const u = {
|
|
10934
10939
|
open: e,
|
|
@@ -10936,15 +10941,15 @@ function gv({ children: r }) {
|
|
|
10936
10941
|
hide: () => t(!1),
|
|
10937
10942
|
historyItems: s,
|
|
10938
10943
|
clearHistory: () => {
|
|
10939
|
-
|
|
10944
|
+
gv(o.number), a([]);
|
|
10940
10945
|
}
|
|
10941
10946
|
};
|
|
10942
10947
|
return /* @__PURE__ */ c.jsxs(js.Provider, { value: u, children: [
|
|
10943
|
-
/* @__PURE__ */ c.jsx(
|
|
10948
|
+
/* @__PURE__ */ c.jsx(dv, {}),
|
|
10944
10949
|
r
|
|
10945
10950
|
] });
|
|
10946
10951
|
}
|
|
10947
|
-
function
|
|
10952
|
+
function mv() {
|
|
10948
10953
|
const { connectionState: r } = K(ol);
|
|
10949
10954
|
return !r || r === "socket_connect" ? null : /* @__PURE__ */ c.jsx(
|
|
10950
10955
|
Jn,
|
|
@@ -10957,7 +10962,7 @@ function fv() {
|
|
|
10957
10962
|
}
|
|
10958
10963
|
);
|
|
10959
10964
|
}
|
|
10960
|
-
function
|
|
10965
|
+
function yv({ value: r, onChange: e, onCancel: t, onSave: n }) {
|
|
10961
10966
|
return /* @__PURE__ */ c.jsxs(
|
|
10962
10967
|
"form",
|
|
10963
10968
|
{
|
|
@@ -10983,7 +10988,7 @@ function Ro() {
|
|
|
10983
10988
|
return r;
|
|
10984
10989
|
}, Ro.apply(null, arguments);
|
|
10985
10990
|
}
|
|
10986
|
-
var
|
|
10991
|
+
var Cv = function(e) {
|
|
10987
10992
|
return /* @__PURE__ */ J.createElement("svg", Ro({
|
|
10988
10993
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10989
10994
|
width: 6,
|
|
@@ -11029,10 +11034,10 @@ var mv = function(e) {
|
|
|
11029
11034
|
d: "M4 8h2v2H4z"
|
|
11030
11035
|
})));
|
|
11031
11036
|
};
|
|
11032
|
-
function
|
|
11037
|
+
function vv(r) {
|
|
11033
11038
|
return r.replace(/\/?$/, "");
|
|
11034
11039
|
}
|
|
11035
|
-
function
|
|
11040
|
+
function wv({
|
|
11036
11041
|
favorite: { id: r, title: e, url: t },
|
|
11037
11042
|
isEdited: n,
|
|
11038
11043
|
isActive: i,
|
|
@@ -11054,16 +11059,16 @@ function Cv({
|
|
|
11054
11059
|
l();
|
|
11055
11060
|
}, { hide: E } = Xr();
|
|
11056
11061
|
return /* @__PURE__ */ c.jsxs("li", { className: "item", ref: d, style: y, ...h, children: [
|
|
11057
|
-
/* @__PURE__ */ c.jsx("span", { className: "drag-handle", ref: g, ...u, children: /* @__PURE__ */ c.jsx(
|
|
11062
|
+
/* @__PURE__ */ c.jsx("span", { className: "drag-handle", ref: g, ...u, children: /* @__PURE__ */ c.jsx(Cv, {}) }),
|
|
11058
11063
|
/* @__PURE__ */ c.jsx("span", { className: ye("title", { active: i }), children: n ? /* @__PURE__ */ c.jsx(
|
|
11059
|
-
|
|
11064
|
+
yv,
|
|
11060
11065
|
{
|
|
11061
11066
|
value: C,
|
|
11062
11067
|
onChange: w,
|
|
11063
11068
|
onSave: I,
|
|
11064
11069
|
onCancel: S
|
|
11065
11070
|
}
|
|
11066
|
-
) : /* @__PURE__ */ c.jsx(Re, { "data-testid": "link", to:
|
|
11071
|
+
) : /* @__PURE__ */ c.jsx(Re, { "data-testid": "link", to: vv(t), onClick: E, children: e || t }) }),
|
|
11067
11072
|
!n && /* @__PURE__ */ c.jsx(
|
|
11068
11073
|
Ur,
|
|
11069
11074
|
{
|
|
@@ -11077,7 +11082,7 @@ function Cv({
|
|
|
11077
11082
|
)
|
|
11078
11083
|
] });
|
|
11079
11084
|
}
|
|
11080
|
-
function
|
|
11085
|
+
function Tv() {
|
|
11081
11086
|
const { open: r, hide: e } = Xr(), {
|
|
11082
11087
|
allFavorites: t,
|
|
11083
11088
|
deleteFavorite: n,
|
|
@@ -11114,7 +11119,7 @@ function vv() {
|
|
|
11114
11119
|
] }),
|
|
11115
11120
|
/* @__PURE__ */ c.jsxs("div", { className: "content", children: [
|
|
11116
11121
|
/* @__PURE__ */ c.jsx(ng, { items: t, onOrderChange: o, children: /* @__PURE__ */ c.jsx("ul", { "data-testid": "favorites-list", children: t.map((C) => /* @__PURE__ */ c.jsx(
|
|
11117
|
-
|
|
11122
|
+
wv,
|
|
11118
11123
|
{
|
|
11119
11124
|
favorite: C,
|
|
11120
11125
|
onDelete: () => n(C.id),
|
|
@@ -11132,10 +11137,10 @@ function vv() {
|
|
|
11132
11137
|
}
|
|
11133
11138
|
);
|
|
11134
11139
|
}
|
|
11135
|
-
async function
|
|
11140
|
+
async function Av() {
|
|
11136
11141
|
return Tf() ?? [];
|
|
11137
11142
|
}
|
|
11138
|
-
async function
|
|
11143
|
+
async function Iv(r) {
|
|
11139
11144
|
await Af(r);
|
|
11140
11145
|
}
|
|
11141
11146
|
const fu = ai({
|
|
@@ -11161,10 +11166,10 @@ const fu = ai({
|
|
|
11161
11166
|
function uc(r) {
|
|
11162
11167
|
return r.filter((e) => !e.local);
|
|
11163
11168
|
}
|
|
11164
|
-
function
|
|
11169
|
+
function Sv({ children: r }) {
|
|
11165
11170
|
const [e, t] = k(!1), [n, i] = k([]), [o, s] = k([]), [a, l] = k(!0), [h, u] = k(!1), { pathname: d, search: g } = Ue(), { currentPageTitle: f } = K(vi);
|
|
11166
11171
|
j(() => {
|
|
11167
|
-
const { promise: S, cancel: E } = Lr(
|
|
11172
|
+
const { promise: S, cancel: E } = Lr(Av());
|
|
11168
11173
|
return S.then((L) => {
|
|
11169
11174
|
i(L), s(L), l(!1);
|
|
11170
11175
|
}).catch((L) => {
|
|
@@ -11173,7 +11178,7 @@ function Av({ children: r }) {
|
|
|
11173
11178
|
}, []), j(() => {
|
|
11174
11179
|
const S = uc(n);
|
|
11175
11180
|
if (!Ae.isEqual(S, o)) {
|
|
11176
|
-
const { promise: E, cancel: L } = Lr(
|
|
11181
|
+
const { promise: E, cancel: L } = Lr(Iv(S));
|
|
11177
11182
|
return u(!0), E.then(() => {
|
|
11178
11183
|
u(!1), s(S);
|
|
11179
11184
|
}).catch(($) => {
|
|
@@ -11233,14 +11238,14 @@ function Av({ children: r }) {
|
|
|
11233
11238
|
updateFavorites: C
|
|
11234
11239
|
};
|
|
11235
11240
|
return /* @__PURE__ */ c.jsxs(fu.Provider, { value: I, children: [
|
|
11236
|
-
/* @__PURE__ */ c.jsx(
|
|
11241
|
+
/* @__PURE__ */ c.jsx(Tv, {}),
|
|
11237
11242
|
r
|
|
11238
11243
|
] });
|
|
11239
11244
|
}
|
|
11240
11245
|
function Xr() {
|
|
11241
11246
|
return K(fu);
|
|
11242
11247
|
}
|
|
11243
|
-
const
|
|
11248
|
+
const Ev = "data:image/svg+xml;base64,PHN2ZyBkYXRhLW5hbWU9Imljb25fdGltZU1hY2hpbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiPgogIDxwYXRoIGlkPSJVaHIiIGQ9Ik0xMi41LDJBMTAuNDksMTAuNDksMCwwLDAsMi4zMSwxMEg0LjM2YTguNTIsOC41MiwwLDEsMSwwLDVIMi4zMUExMC41LDEwLjUsMCwxLDAsMTIuNSwyWiIvPgogIDxnIGlkPSJaZWlnZXIiPgogICAgPHJlY3QgaWQ9InVudGVuIiB4PSIxMi43OSIgeT0iMTIuMzIiIHdpZHRoPSIyIiBoZWlnaHQ9IjUuNzIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM0LjMgMTUuMTgpIHJvdGF0ZSgxMzIuMjUpIi8+CiAgICA8cmVjdCBpZD0ib2JlbiIgeD0iMTEiIHk9IjciIHdpZHRoPSIyIiBoZWlnaHQ9IjciLz4KICA8L2c+CiAgPGcgaWQ9IlBmZWlsZW5kZSI+CiAgICA8cGF0aCBkPSJNMCwxMkg3LjA1UzAsNSwwLDVaIi8+CiAgPC9nPgo8L3N2Zz4K";
|
|
11244
11249
|
var hc;
|
|
11245
11250
|
function xo() {
|
|
11246
11251
|
return xo = Object.assign ? Object.assign.bind() : function(r) {
|
|
@@ -11252,7 +11257,7 @@ function xo() {
|
|
|
11252
11257
|
return r;
|
|
11253
11258
|
}, xo.apply(null, arguments);
|
|
11254
11259
|
}
|
|
11255
|
-
var
|
|
11260
|
+
var bv = function(e) {
|
|
11256
11261
|
return /* @__PURE__ */ J.createElement("svg", xo({
|
|
11257
11262
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11258
11263
|
width: 16,
|
|
@@ -11262,7 +11267,7 @@ var Sv = function(e) {
|
|
|
11262
11267
|
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-.76L8 0Z"
|
|
11263
11268
|
})));
|
|
11264
11269
|
};
|
|
11265
|
-
function
|
|
11270
|
+
function kv(r) {
|
|
11266
11271
|
const { t: e } = r, { locales: t } = K(ii), { pathname: n } = Ue(), { instance: i } = it(), { user: o, resetAuthenticatedUser: s, setAuthenticatedUser: a, principal: l, paginationSettings: h } = K(he), { elements: u } = K(rg), { show: d, backendFavorites: g } = Xr(), { show: f } = K(js), m = g.some((S) => S.url.replace(/\/$/, "") === n), p = ig(!0, !0), y = sl({
|
|
11267
11272
|
resolver: og(p),
|
|
11268
11273
|
defaultValues: sg(o)
|
|
@@ -11288,7 +11293,7 @@ function Ev(r) {
|
|
|
11288
11293
|
}).catch((E) => Ot(E));
|
|
11289
11294
|
}
|
|
11290
11295
|
return /* @__PURE__ */ c.jsxs("div", { className: "di utilities", children: [
|
|
11291
|
-
/* @__PURE__ */ c.jsx(
|
|
11296
|
+
/* @__PURE__ */ c.jsx(mv, {}),
|
|
11292
11297
|
u && u.map((S) => /* @__PURE__ */ c.jsx("span", { className: "elm", children: Ce.createElement(S.component, null, null) }, S.id)),
|
|
11293
11298
|
/* @__PURE__ */ c.jsx("span", { className: "elm", children: /* @__PURE__ */ c.jsx(ag, { ...y, children: /* @__PURE__ */ c.jsx(
|
|
11294
11299
|
Ur,
|
|
@@ -11322,7 +11327,7 @@ function Ev(r) {
|
|
|
11322
11327
|
naked: !0,
|
|
11323
11328
|
title: e("favorites.title", { defaultValue: "Favorites" }),
|
|
11324
11329
|
onClick: d,
|
|
11325
|
-
children: /* @__PURE__ */ c.jsx(
|
|
11330
|
+
children: /* @__PURE__ */ c.jsx(bv, { style: m ? { fill: "var(--primary-color)" } : {} })
|
|
11326
11331
|
}
|
|
11327
11332
|
) }),
|
|
11328
11333
|
G.isHistoryEnabled() && /* @__PURE__ */ c.jsx("span", { className: "elm", children: /* @__PURE__ */ c.jsx(
|
|
@@ -11332,7 +11337,7 @@ function Ev(r) {
|
|
|
11332
11337
|
naked: !0,
|
|
11333
11338
|
title: e("history.title", { defaultValue: "History" }),
|
|
11334
11339
|
onClick: f,
|
|
11335
|
-
children: /* @__PURE__ */ c.jsx("img", { src:
|
|
11340
|
+
children: /* @__PURE__ */ c.jsx("img", { src: Ev, alt: "", style: { width: 16, height: 16 } })
|
|
11336
11341
|
}
|
|
11337
11342
|
) }),
|
|
11338
11343
|
/* @__PURE__ */ c.jsx("span", { className: "elm", children: /* @__PURE__ */ c.jsxs(
|
|
@@ -11371,19 +11376,19 @@ function Ev(r) {
|
|
|
11371
11376
|
) })
|
|
11372
11377
|
] });
|
|
11373
11378
|
}
|
|
11374
|
-
const
|
|
11375
|
-
function
|
|
11379
|
+
const Mv = $o()(kv);
|
|
11380
|
+
function Rv({ children: r }) {
|
|
11376
11381
|
return /* @__PURE__ */ c.jsx("div", { className: "di floor-1", children: r });
|
|
11377
11382
|
}
|
|
11378
11383
|
const gc = "data:image/svg+xml;base64,PHN2ZyBpZD0iY3Nfc2NhbGVfbG9nbyIgZGF0YS1uYW1lPSJjc19zY2FsZV9sb2dvIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAxNjAgNDAiPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuY2xzLTEgewogICAgICAgIGZpbGw6ICMwZDNlN2M7CiAgICAgIH0KCiAgICAgIC5jbHMtMiB7CiAgICAgICAgZmlsbDogIzFhOGVkMzsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L2RlZnM+CiAgPGc+CiAgICA8cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik03OC4xMSwyNS4yOWwyLjUtMS4xNmEzLjQzLDMuNDMsMCwwLDAsMS4zMSwyLDQuMDcsNC4wNywwLDAsMCwyLjQyLjY4QTMuMDgsMy4wOCwwLDAsMCw4Ni41NiwyNmEyLjczLDIuNzMsMCwwLDAsLjgzLTIuMDhjMC0xLjEzLS45NC0yLjE1LTIuODItMy0uMjctLjE0LS40Ny0uMjMtLjYxLS4yOWExMy42NCwxMy42NCwwLDAsMS00LjI1LTIuODIsNC41OSw0LjU5LDAsMCwxLTEuMDYtMy4wOCw0LjkzLDQuOTMsMCwwLDEsMS42LTMuODIsNiw2LDAsMCwxLDQuMi0xLjQ2LDcuMDksNy4wOSwwLDAsMSwzLjU3LjgyLDQuMzQsNC4zNCwwLDAsMSwyLDIuMzdsLTIuNDUsMS4yNmE0LjE4LDQuMTgsMCwwLDAtMS4yNy0xLjMzLDMsMywwLDAsMC0xLjU5LS40MiwyLjkzLDIuOTMsMCwwLDAtMiwuNjYsMi4yMywyLjIzLDAsMCwwLS43NSwxLjc2cTAsMS43NiwzLjI3LDMuMjVsLjQuMThhMTEuNTksMTEuNTksMCwwLDEsMy45MywyLjU4LDQuNzEsNC43MSwwLDAsMSwxLjA3LDMuMTQsNS42OCw1LjY4LDAsMCwxLTEuNzMsNC4zNiw2LjU1LDYuNTUsMCwwLDEtNC42NywxLjYyLDYuNzMsNi43MywwLDAsMS00LTEuMTRBNS4yNCw1LjI0LDAsMCwxLDc4LjExLDI1LjI5WiIvPgogICAgPHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTA5LjUyLDE0LjU0YTkuNjksOS42OSwwLDAsMC0yLjgxLTEuNyw4Ljg0LDguODQsMCwwLDAtMy4xMi0uNTYsNi44Nyw2Ljg3LDAsMCwwLTUuMTUsMiw3LjIsNy4yLDAsMCwwLTIsNS4yNiw3LjE1LDcuMTUsMCwwLDAsMS45Myw1LjE1LDYuNDIsNi40MiwwLDAsMCw0Ljg3LDIsOC45NCw4Ljk0LDAsMCwwLDMuMjYtLjYsMTAuMzksMTAuMzksMCwwLDAsMy0xLjg0djMuNTVhOS4yMyw5LjIzLDAsMCwxLTIuNzYsMS4zNiwxMS4xMSwxMS4xMSwwLDAsMS0zLjIzLjQ1LDExLjM1LDExLjM1LDAsMCwxLTQuMDktLjczQTkuNiw5LjYsMCwwLDEsOTQsMjMuNTRhMTAuODgsMTAuODgsMCwwLDEsMC04LDkuNSw5LjUsMCwwLDEsMi4xOS0zLjI3LDkuNzMsOS43MywwLDAsMSwzLjMtMi4xNiwxMC44NCwxMC44NCwwLDAsMSw0LS43MywxMC41NSwxMC41NSwwLDAsMSwzLjI0LjQ5LDExLjM5LDExLjM5LDAsMCwxLDMsMS41WiIvPgogICAgPHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTI2LjE2LDI5LjE1bC0yLjE5LTVoLTcuNjRsLTIuMjQsNWgtMy4zbDkuMzUtMjAuMDYsOS4zMywyMC4wNlptLTguNjctNy41OGg1LjM4bC0yLTQuNGMtLjEyLS4yOC0uMjMtLjYxLS4zNi0xcy0uMjQtLjc3LS4zNy0xLjIyYy0uMS40Mi0uMjEuODItLjMzLDEuMThzLS4yNC43LS4zNywxWiIvPgogICAgPHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTMxLjI5LDI5LjE1VjkuODVoMy4xNFYyNi4zNGg3djIuODFaIi8+CiAgICA8cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xNDQsMjkuMTVWOS44NWgxMC43N3YyLjY2aC03LjY0djQuODRoNy42NHYyLjc2aC03LjY0djYuMjNoNy42NHYyLjgxWiIvPgogIDwvZz4KICA8ZyBpZD0iUmF1dGUiPgogICAgPGVsbGlwc2UgaWQ9Imt1Z2VsX2hlbGwiIGRhdGEtbmFtZT0ia3VnZWwgaGVsbCIgY2xhc3M9ImNscy0yIiBjeD0iNTAuMSIgY3k9IjE5LjgxIiByeD0iMi4xIiByeT0iMi4wNiIvPgogICAgPGVsbGlwc2UgaWQ9Imt1Z2VsX2hlbGwtMiIgZGF0YS1uYW1lPSJrdWdlbCBoZWxsIiBjbGFzcz0iY2xzLTIiIGN4PSI1NC4wNSIgY3k9IjIzLjY4IiByeD0iMi4xIiByeT0iMi4wNiIvPgogICAgPGVsbGlwc2UgaWQ9Imt1Z2VsIiBjbGFzcz0iY2xzLTEiIGN4PSI1OCIgY3k9IjI3LjU2IiByeD0iMi4xIiByeT0iMi4wNiIvPgogICAgPGVsbGlwc2UgaWQ9Imt1Z2VsX2hlbGwtMyIgZGF0YS1uYW1lPSJrdWdlbCBoZWxsIiBjbGFzcz0iY2xzLTIiIGN4PSI1OCIgY3k9IjE5LjgxIiByeD0iMi4xIiByeT0iMi4wNiIvPgogICAgPGVsbGlwc2UgaWQ9Imt1Z2VsLTIiIGRhdGEtbmFtZT0ia3VnZWwiIGNsYXNzPSJjbHMtMSIgY3g9IjYxLjk1IiBjeT0iMTUuOTMiIHJ4PSIyLjEiIHJ5PSIyLjA2Ii8+CiAgICA8ZWxsaXBzZSBpZD0ia3VnZWwtMyIgZGF0YS1uYW1lPSJrdWdlbCIgY2xhc3M9ImNscy0xIiBjeD0iNjEuOTUiIGN5PSIyMy42OCIgcng9IjIuMSIgcnk9IjIuMDYiLz4KICAgIDxlbGxpcHNlIGlkPSJrdWdlbC00IiBkYXRhLW5hbWU9Imt1Z2VsIiBjbGFzcz0iY2xzLTEiIGN4PSI2NS45IiBjeT0iMTkuODEiIHJ4PSIyLjEiIHJ5PSIyLjA2Ii8+CiAgICA8ZWxsaXBzZSBpZD0ia3VnZWxfaGVsbC00IiBkYXRhLW5hbWU9Imt1Z2VsIGhlbGwiIGNsYXNzPSJjbHMtMiIgY3g9IjU0LjA1IiBjeT0iMTUuOTMiIHJ4PSIyLjEiIHJ5PSIyLjA2Ii8+CiAgICA8ZWxsaXBzZSBpZD0ia3VnZWwtNSIgZGF0YS1uYW1lPSJrdWdlbCIgY2xhc3M9ImNscy0xIiBjeD0iNTgiIGN5PSIxMi4wNiIgcng9IjIuMSIgcnk9IjIuMDYiLz4KICA8L2c+CiAgPGc+CiAgICA8cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0yMS43MSwxNC41NGE5Ljg3LDkuODcsMCwwLDAtMi44Mi0xLjcsOC44NCw4Ljg0LDAsMCwwLTMuMTItLjU2LDYuODcsNi44NywwLDAsMC01LjE1LDIsNy4yLDcuMiwwLDAsMC0yLDUuMjYsNy4xNSw3LjE1LDAsMCwwLDEuOTMsNS4xNSw2LjQyLDYuNDIsMCwwLDAsNC44NywyLDksOSwwLDAsMCwzLjI3LS42LDEwLjQ4LDEwLjQ4LDAsMCwwLDMtMS44NHYzLjU1YTkuMTEsOS4xMSwwLDAsMS0yLjc2LDEuMzYsMTEuMTEsMTEuMTEsMCwwLDEtMy4yMy40NSwxMS4zNSwxMS4zNSwwLDAsMS00LjA5LS43Myw5LjYsOS42LDAsMCwxLTUuNDctNS40LDEwLjg4LDEwLjg4LDAsMCwxLDAtOCw5Ljg5LDkuODksMCwwLDEsNS40OS01LjQzLDEwLjg0LDEwLjg0LDAsMCwxLDQtLjczLDEwLjUxLDEwLjUxLDAsMCwxLDMuMjQuNDksMTEuMzksMTEuMzksMCwwLDEsMywxLjVaIi8+CiAgICA8cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0yNC40OSwyNS4yOSwyNywyNC4xM2EzLjQzLDMuNDMsMCwwLDAsMS4zMSwyLDQuMDcsNC4wNywwLDAsMCwyLjQyLjY4QTMuMDgsMy4wOCwwLDAsMCwzMi45NCwyNmEyLjczLDIuNzMsMCwwLDAsLjgzLTIuMDhjMC0xLjEzLS45NC0yLjE1LTIuODItMy0uMjctLjE0LS40Ny0uMjMtLjYxLS4yOWExMy42NCwxMy42NCwwLDAsMS00LjI1LTIuODJBNC41OSw0LjU5LDAsMCwxLDI1LDE0LjdhNC45Myw0LjkzLDAsMCwxLDEuNi0zLjgyLDYsNiwwLDAsMSw0LjItMS40Niw3LjA5LDcuMDksMCwwLDEsMy41Ny44Miw0LjM0LDQuMzQsMCwwLDEsMiwyLjM3bC0yLjQ1LDEuMjZhNC4xOCw0LjE4LDAsMCwwLTEuMjctMS4zMywzLDMsMCwwLDAtMS41OS0uNDIsMi45MiwyLjkyLDAsMCwwLTIsLjY2LDIuMjMsMi4yMywwLDAsMC0uNzUsMS43NnEwLDEuNzYsMy4yNywzLjI1TDMyLDE4YTExLjU5LDExLjU5LDAsMCwxLDMuOTMsMi41OEE0LjcxLDQuNzEsMCwwLDEsMzcsMjMuNjlhNS42OSw1LjY5LDAsMCwxLTEuNzMsNC4zNiw2LjU1LDYuNTUsMCwwLDEtNC42NywxLjYyLDYuNzMsNi43MywwLDAsMS00LTEuMTRBNS4yNCw1LjI0LDAsMCwxLDI0LjQ5LDI1LjI5WiIvPgogIDwvZz4KPC9zdmc+Cg==";
|
|
11379
|
-
function
|
|
11384
|
+
function xv() {
|
|
11380
11385
|
const [, r] = k(!1);
|
|
11381
11386
|
j(() => {
|
|
11382
11387
|
hg(() => r((e) => !e));
|
|
11383
11388
|
}, []);
|
|
11384
11389
|
}
|
|
11385
|
-
function
|
|
11386
|
-
|
|
11390
|
+
function _v({ centered: r, linkToStartPage: e }) {
|
|
11391
|
+
xv();
|
|
11387
11392
|
const t = ot();
|
|
11388
11393
|
function n() {
|
|
11389
11394
|
e && Dt().then((o) => t.push(o));
|
|
@@ -11409,14 +11414,14 @@ function Rv({ centered: r, linkToStartPage: e }) {
|
|
|
11409
11414
|
);
|
|
11410
11415
|
return /* @__PURE__ */ c.jsx("div", { className: "di logo", onClick: n, children: i });
|
|
11411
11416
|
}
|
|
11412
|
-
const tr = Ko("Logo")(
|
|
11417
|
+
const tr = Ko("Logo")(_v);
|
|
11413
11418
|
/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
|
|
11414
11419
|
const {
|
|
11415
11420
|
entries: pu,
|
|
11416
11421
|
setPrototypeOf: fc,
|
|
11417
|
-
isFrozen:
|
|
11418
|
-
getPrototypeOf:
|
|
11419
|
-
getOwnPropertyDescriptor:
|
|
11422
|
+
isFrozen: Nv,
|
|
11423
|
+
getPrototypeOf: Pv,
|
|
11424
|
+
getOwnPropertyDescriptor: Ov
|
|
11420
11425
|
} = Object;
|
|
11421
11426
|
let {
|
|
11422
11427
|
freeze: Pe,
|
|
@@ -11438,7 +11443,7 @@ _o || (_o = function(e, t, n) {
|
|
|
11438
11443
|
No || (No = function(e, t) {
|
|
11439
11444
|
return new e(...t);
|
|
11440
11445
|
});
|
|
11441
|
-
const Cr = Oe(Array.prototype.forEach),
|
|
11446
|
+
const Cr = Oe(Array.prototype.forEach), Lv = Oe(Array.prototype.lastIndexOf), pc = Oe(Array.prototype.pop), Pn = Oe(Array.prototype.push), Dv = Oe(Array.prototype.splice), Nr = Oe(String.prototype.toLowerCase), Gi = Oe(String.prototype.toString), mc = Oe(String.prototype.match), On = Oe(String.prototype.replace), jv = Oe(String.prototype.indexOf), Uv = Oe(String.prototype.trim), Ke = Oe(Object.prototype.hasOwnProperty), _e = Oe(RegExp.prototype.test), Ln = Hv(TypeError);
|
|
11442
11447
|
function Oe(r) {
|
|
11443
11448
|
return function(e) {
|
|
11444
11449
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
@@ -11446,7 +11451,7 @@ function Oe(r) {
|
|
|
11446
11451
|
return _o(r, e, n);
|
|
11447
11452
|
};
|
|
11448
11453
|
}
|
|
11449
|
-
function
|
|
11454
|
+
function Hv(r) {
|
|
11450
11455
|
return function() {
|
|
11451
11456
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
11452
11457
|
t[n] = arguments[n];
|
|
@@ -11461,13 +11466,13 @@ function W(r, e) {
|
|
|
11461
11466
|
let i = e[n];
|
|
11462
11467
|
if (typeof i == "string") {
|
|
11463
11468
|
const o = t(i);
|
|
11464
|
-
o !== i && (
|
|
11469
|
+
o !== i && (Nv(e) || (e[n] = o), i = o);
|
|
11465
11470
|
}
|
|
11466
11471
|
r[i] = !0;
|
|
11467
11472
|
}
|
|
11468
11473
|
return r;
|
|
11469
11474
|
}
|
|
11470
|
-
function
|
|
11475
|
+
function Fv(r) {
|
|
11471
11476
|
for (let e = 0; e < r.length; e++)
|
|
11472
11477
|
Ke(r, e) || (r[e] = null);
|
|
11473
11478
|
return r;
|
|
@@ -11475,44 +11480,44 @@ function Uv(r) {
|
|
|
11475
11480
|
function Nt(r) {
|
|
11476
11481
|
const e = mu(null);
|
|
11477
11482
|
for (const [t, n] of pu(r))
|
|
11478
|
-
Ke(r, t) && (Array.isArray(n) ? e[t] =
|
|
11483
|
+
Ke(r, t) && (Array.isArray(n) ? e[t] = Fv(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = Nt(n) : e[t] = n);
|
|
11479
11484
|
return e;
|
|
11480
11485
|
}
|
|
11481
11486
|
function Dn(r, e) {
|
|
11482
11487
|
for (; r !== null; ) {
|
|
11483
|
-
const n =
|
|
11488
|
+
const n = Ov(r, e);
|
|
11484
11489
|
if (n) {
|
|
11485
11490
|
if (n.get)
|
|
11486
11491
|
return Oe(n.get);
|
|
11487
11492
|
if (typeof n.value == "function")
|
|
11488
11493
|
return Oe(n.value);
|
|
11489
11494
|
}
|
|
11490
|
-
r =
|
|
11495
|
+
r = Pv(r);
|
|
11491
11496
|
}
|
|
11492
11497
|
function t() {
|
|
11493
11498
|
return null;
|
|
11494
11499
|
}
|
|
11495
11500
|
return t;
|
|
11496
11501
|
}
|
|
11497
|
-
const yc = Pe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), $i = Pe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Wi = Pe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]),
|
|
11502
|
+
const yc = Pe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), $i = Pe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Wi = Pe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), zv = Pe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Vi = Pe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Bv = Pe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Cc = Pe(["#text"]), vc = Pe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Yi = Pe(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), wc = Pe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), vr = Pe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Kv = ze(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Gv = ze(/<%[\w\W]*|[\w\W]*%>/gm), $v = ze(/\$\{[\w\W]*/gm), Wv = ze(/^data-[\-\w.\u00B7-\uFFFF]+$/), Vv = ze(/^aria-[\-\w]+$/), yu = ze(
|
|
11498
11503
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
11499
11504
|
// eslint-disable-line no-useless-escape
|
|
11500
|
-
),
|
|
11505
|
+
), Yv = ze(/^(?:\w+script|data):/i), qv = ze(
|
|
11501
11506
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
11502
11507
|
// eslint-disable-line no-control-regex
|
|
11503
|
-
), Cu = ze(/^html$/i),
|
|
11508
|
+
), Cu = ze(/^html$/i), Qv = ze(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
11504
11509
|
var Tc = /* @__PURE__ */ Object.freeze({
|
|
11505
11510
|
__proto__: null,
|
|
11506
|
-
ARIA_ATTR:
|
|
11507
|
-
ATTR_WHITESPACE:
|
|
11508
|
-
CUSTOM_ELEMENT:
|
|
11509
|
-
DATA_ATTR:
|
|
11511
|
+
ARIA_ATTR: Vv,
|
|
11512
|
+
ATTR_WHITESPACE: qv,
|
|
11513
|
+
CUSTOM_ELEMENT: Qv,
|
|
11514
|
+
DATA_ATTR: Wv,
|
|
11510
11515
|
DOCTYPE_NAME: Cu,
|
|
11511
|
-
ERB_EXPR:
|
|
11516
|
+
ERB_EXPR: Gv,
|
|
11512
11517
|
IS_ALLOWED_URI: yu,
|
|
11513
|
-
IS_SCRIPT_OR_DATA:
|
|
11514
|
-
MUSTACHE_EXPR:
|
|
11515
|
-
TMPLIT_EXPR:
|
|
11518
|
+
IS_SCRIPT_OR_DATA: Yv,
|
|
11519
|
+
MUSTACHE_EXPR: Kv,
|
|
11520
|
+
TMPLIT_EXPR: $v
|
|
11516
11521
|
});
|
|
11517
11522
|
const jn = {
|
|
11518
11523
|
element: 1,
|
|
@@ -11530,9 +11535,9 @@ const jn = {
|
|
|
11530
11535
|
documentFragment: 11,
|
|
11531
11536
|
notation: 12
|
|
11532
11537
|
// Deprecated
|
|
11533
|
-
},
|
|
11538
|
+
}, Jv = function() {
|
|
11534
11539
|
return typeof window > "u" ? null : window;
|
|
11535
|
-
},
|
|
11540
|
+
}, Zv = function(e, t) {
|
|
11536
11541
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
11537
11542
|
return null;
|
|
11538
11543
|
let n = null;
|
|
@@ -11565,7 +11570,7 @@ const jn = {
|
|
|
11565
11570
|
};
|
|
11566
11571
|
};
|
|
11567
11572
|
function vu() {
|
|
11568
|
-
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
11573
|
+
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Jv();
|
|
11569
11574
|
const e = (U) => vu(U);
|
|
11570
11575
|
if (e.version = "3.2.4", e.removed = [], !r || !r.document || r.document.nodeType !== jn.document || !r.Element)
|
|
11571
11576
|
return e.isSupported = !1, e;
|
|
@@ -11661,10 +11666,10 @@ function vu() {
|
|
|
11661
11666
|
throw Ln('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
11662
11667
|
I = v.TRUSTED_TYPES_POLICY, S = I.createHTML("");
|
|
11663
11668
|
} else
|
|
11664
|
-
I === void 0 && (I =
|
|
11669
|
+
I === void 0 && (I = Zv(f, i)), I !== null && typeof S == "string" && (S = I.createHTML(""));
|
|
11665
11670
|
Pe && Pe(v), Yt = v;
|
|
11666
11671
|
}
|
|
11667
|
-
}, na = W({}, [...$i, ...Wi, ...
|
|
11672
|
+
}, na = W({}, [...$i, ...Wi, ...zv]), ra = W({}, [...Vi, ...Bv]), ph = function(v) {
|
|
11668
11673
|
let x = A(v);
|
|
11669
11674
|
(!x || !x.tagName) && (x = {
|
|
11670
11675
|
namespaceURI: Vt,
|
|
@@ -11793,7 +11798,7 @@ function vu() {
|
|
|
11793
11798
|
return !1;
|
|
11794
11799
|
} else if (!ki[x]) {
|
|
11795
11800
|
if (!_e(Ks, On(D, Bs, ""))) {
|
|
11796
|
-
if (!((x === "src" || x === "xlink:href" || x === "href") && v !== "script" &&
|
|
11801
|
+
if (!((x === "src" || x === "xlink:href" || x === "href") && v !== "script" && jv(D, "data:") === 0 && Zs[v])) {
|
|
11797
11802
|
if (!(Vs && !_e(ah, On(D, Bs, "")))) {
|
|
11798
11803
|
if (D)
|
|
11799
11804
|
return !1;
|
|
@@ -11827,7 +11832,7 @@ function vu() {
|
|
|
11827
11832
|
namespaceURI: Le,
|
|
11828
11833
|
value: Je
|
|
11829
11834
|
} = Se, Mn = pe(we);
|
|
11830
|
-
let xe = we === "value" ? Je :
|
|
11835
|
+
let xe = we === "value" ? Je : Uv(Je);
|
|
11831
11836
|
if (D.attrName = Mn, D.attrValue = xe, D.keepAttr = !0, D.forceKeepAttr = void 0, ct(re.uponSanitizeAttribute, v, D), xe = D.attrValue, Qs && (Mn === "id" || Mn === "name") && (cr(we, v), xe = lh + xe), Ii && _e(/((--!?|])>)|<\/(style|title)/i, xe)) {
|
|
11832
11837
|
cr(we, v);
|
|
11833
11838
|
continue;
|
|
@@ -11925,8 +11930,8 @@ function vu() {
|
|
|
11925
11930
|
typeof v == "function" && Pn(re[U], v);
|
|
11926
11931
|
}, e.removeHook = function(U, v) {
|
|
11927
11932
|
if (v !== void 0) {
|
|
11928
|
-
const x =
|
|
11929
|
-
return x === -1 ? void 0 :
|
|
11933
|
+
const x = Lv(re[U], v);
|
|
11934
|
+
return x === -1 ? void 0 : Dv(re[U], x, 1)[0];
|
|
11930
11935
|
}
|
|
11931
11936
|
return pc(re[U]);
|
|
11932
11937
|
}, e.removeHooks = function(U) {
|
|
@@ -11963,21 +11968,21 @@ const wu = ({ data: r }) => /* @__PURE__ */ c.jsx(
|
|
|
11963
11968
|
u
|
|
11964
11969
|
)
|
|
11965
11970
|
) });
|
|
11966
|
-
},
|
|
11971
|
+
}, Xv = ({ label: r, version: e }) => e ? /* @__PURE__ */ c.jsxs("span", { className: "version-tag", children: [
|
|
11967
11972
|
r,
|
|
11968
11973
|
" ",
|
|
11969
11974
|
/* @__PURE__ */ c.jsxs("span", { children: [
|
|
11970
11975
|
"v",
|
|
11971
11976
|
e
|
|
11972
11977
|
] })
|
|
11973
|
-
] }) : null,
|
|
11978
|
+
] }) : null, ew = ({ eulaData: r, isTestTenant: e }) => {
|
|
11974
11979
|
const t = (/* @__PURE__ */ new Date()).getFullYear(), n = Wo(), i = G.getGitCommitShaShort();
|
|
11975
11980
|
return /* @__PURE__ */ c.jsxs("footer", { children: [
|
|
11976
11981
|
"© Device Insight GmbH · ",
|
|
11977
11982
|
t,
|
|
11978
11983
|
/* @__PURE__ */ c.jsxs("div", { className: "footer-version", children: [
|
|
11979
11984
|
G.getAppName(),
|
|
11980
|
-
e && n && /* @__PURE__ */ c.jsx(
|
|
11985
|
+
e && n && /* @__PURE__ */ c.jsx(Xv, { label: "UI", version: n }),
|
|
11981
11986
|
i && /* @__PURE__ */ c.jsxs("span", { className: "version-tag", children: [
|
|
11982
11987
|
"SHA ",
|
|
11983
11988
|
/* @__PURE__ */ c.jsx("span", { children: i })
|
|
@@ -11986,7 +11991,7 @@ const wu = ({ data: r }) => /* @__PURE__ */ c.jsx(
|
|
|
11986
11991
|
r && /* @__PURE__ */ c.jsx(wu, { data: r })
|
|
11987
11992
|
] });
|
|
11988
11993
|
};
|
|
11989
|
-
function
|
|
11994
|
+
function tw({ showApiVersion: r }) {
|
|
11990
11995
|
const [e, t] = k(null), [n, i] = k(null), o = gg(), s = cl(), { authenticated: a } = K(he);
|
|
11991
11996
|
j(() => {
|
|
11992
11997
|
(async () => {
|
|
@@ -12025,14 +12030,14 @@ function Xv({ showApiVersion: r }) {
|
|
|
12025
12030
|
contents: h || l || "",
|
|
12026
12031
|
isTestTenant: qi()
|
|
12027
12032
|
}
|
|
12028
|
-
) : /* @__PURE__ */ c.jsx(
|
|
12033
|
+
) : /* @__PURE__ */ c.jsx(ew, { eulaData: n, isTestTenant: qi() });
|
|
12029
12034
|
}
|
|
12030
12035
|
function qi() {
|
|
12031
12036
|
return ["ngui", "di-ci-scale", "di-ci-scale-next", "demo-scale", "demo-scale-next"].includes(
|
|
12032
12037
|
G.getTenant()
|
|
12033
12038
|
);
|
|
12034
12039
|
}
|
|
12035
|
-
const wi = Ko("Footer")(
|
|
12040
|
+
const wi = Ko("Footer")(tw), nw = (r, e, t) => {
|
|
12036
12041
|
if (t.indexOf(":") === 0) {
|
|
12037
12042
|
const n = e.length + 1, i = r.substring(n).indexOf("/"), o = r.substring(n, i > 0 ? i : void 0);
|
|
12038
12043
|
return `${e}/${o}`;
|
|
@@ -12047,7 +12052,7 @@ const wi = Ko("Footer")(Xv), ew = (r, e, t) => {
|
|
|
12047
12052
|
return o = ((u = h == null ? void 0 : h.childRoutes) == null ? void 0 : u.filter((d) => !d.show || d.show(t, n))) ?? [], `${a}/${l}`;
|
|
12048
12053
|
}, "");
|
|
12049
12054
|
return o = o.filter((a) => !a.excludeFromNavigation), o.map((a) => {
|
|
12050
|
-
const l =
|
|
12055
|
+
const l = nw(r, s, a.relativePath);
|
|
12051
12056
|
return {
|
|
12052
12057
|
path: l,
|
|
12053
12058
|
label: a.label,
|
|
@@ -12067,7 +12072,7 @@ function Iu(r, e) {
|
|
|
12067
12072
|
if (e.label && e.label.id)
|
|
12068
12073
|
return `${r}-icon-${Au((t = e == null ? void 0 : e.label) == null ? void 0 : t.id)}`;
|
|
12069
12074
|
}
|
|
12070
|
-
function
|
|
12075
|
+
function rw(r, e) {
|
|
12071
12076
|
var t;
|
|
12072
12077
|
if (e.label && e.label.id)
|
|
12073
12078
|
return `${r}-icon-${Au((t = e == null ? void 0 : e.label) == null ? void 0 : t.id)}`;
|
|
@@ -12083,7 +12088,7 @@ function Po() {
|
|
|
12083
12088
|
return r;
|
|
12084
12089
|
}, Po.apply(null, arguments);
|
|
12085
12090
|
}
|
|
12086
|
-
var
|
|
12091
|
+
var iw = function(e) {
|
|
12087
12092
|
return /* @__PURE__ */ J.createElement("svg", Po({
|
|
12088
12093
|
"data-name": "Layer 1",
|
|
12089
12094
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12113,14 +12118,14 @@ function Eu({ routeLink: r }) {
|
|
|
12113
12118
|
/* @__PURE__ */ c.jsx(co, { authorities: r.requiredAuthorities })
|
|
12114
12119
|
] }) }, r.path);
|
|
12115
12120
|
}
|
|
12116
|
-
function
|
|
12121
|
+
function ow({
|
|
12117
12122
|
navGroup: r,
|
|
12118
12123
|
routeLinks: e,
|
|
12119
12124
|
separator: t
|
|
12120
12125
|
}) {
|
|
12121
12126
|
if (e.length === 0)
|
|
12122
12127
|
return null;
|
|
12123
|
-
const n =
|
|
12128
|
+
const n = rw("mainnavi", r);
|
|
12124
12129
|
return /* @__PURE__ */ c.jsxs(
|
|
12125
12130
|
"li",
|
|
12126
12131
|
{
|
|
@@ -12135,7 +12140,7 @@ function rw({
|
|
|
12135
12140
|
}
|
|
12136
12141
|
);
|
|
12137
12142
|
}
|
|
12138
|
-
function
|
|
12143
|
+
function sw() {
|
|
12139
12144
|
const [r, e] = k(null), t = Ue(), { user: n } = K(he), { contextInfo: i } = K(wn), o = Q(() => {
|
|
12140
12145
|
fg().then((g) => {
|
|
12141
12146
|
e(g ? s(g) : null);
|
|
@@ -12149,7 +12154,7 @@ function iw() {
|
|
|
12149
12154
|
id: "route.label.startpage.name",
|
|
12150
12155
|
defaultValue: "Home"
|
|
12151
12156
|
},
|
|
12152
|
-
iconSvg:
|
|
12157
|
+
iconSvg: iw,
|
|
12153
12158
|
active: !1
|
|
12154
12159
|
};
|
|
12155
12160
|
}
|
|
@@ -12168,7 +12173,7 @@ function iw() {
|
|
|
12168
12173
|
f.length && h.push({
|
|
12169
12174
|
index: l.findIndex((m) => m.path === f[0].path),
|
|
12170
12175
|
component: /* @__PURE__ */ c.jsx(
|
|
12171
|
-
|
|
12176
|
+
ow,
|
|
12172
12177
|
{
|
|
12173
12178
|
navGroup: g,
|
|
12174
12179
|
routeLinks: f,
|
|
@@ -12196,7 +12201,7 @@ function iw() {
|
|
|
12196
12201
|
/* @__PURE__ */ c.jsx("div", { className: "modules-info", children: d && typeof d.label == "object" && /* @__PURE__ */ c.jsx(Re, { to: d.path, children: /* @__PURE__ */ c.jsx("span", { children: !!d.label && /* @__PURE__ */ c.jsx(R, { i18nKey: d.label.id, children: d.label.defaultValue }) }) }) })
|
|
12197
12202
|
] });
|
|
12198
12203
|
}
|
|
12199
|
-
const Oo = () => navigator.userAgent.indexOf("MSIE") !== -1 || navigator.appVersion.indexOf("Trident/") > -1, Lo = () => window.navigator.userAgent.indexOf("Edge") > -1,
|
|
12204
|
+
const Oo = () => navigator.userAgent.indexOf("MSIE") !== -1 || navigator.appVersion.indexOf("Trident/") > -1, Lo = () => window.navigator.userAgent.indexOf("Edge") > -1, aw = "data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4NCiAgPGc+DQogICAgPHBhdGggZD0iTTMsMjAuNUExLjUsMS41LDAsMCwxLDEuNSwxOVY1QTEuNSwxLjUsMCwwLDEsMywzLjVIMjBBMS41LDEuNSwwLDAsMSwyMS41LDVWMTlBMS41LDEuNSwwLDAsMSwyMCwyMC41Wm0uNS0yaDE2VjUuNUgzLjVaIi8+DQogICAgPHBhdGggZD0iTTIwLDRhMSwxLDAsMCwxLDEsMVYxOWExLDEsMCwwLDEtMSwxSDNhMSwxLDAsMCwxLTEtMVY1QTEsMSwwLDAsMSwzLDRIMjBNMywxOUgyMFY1SDNWMTlNMjAsM0gzQTIsMiwwLDAsMCwxLDVWMTlhMiwyLDAsMCwwLDIsMkgyMGEyLDIsMCwwLDAsMi0yVjVhMiwyLDAsMCwwLTItMlpNNCwxOFY2SDE5VjE4WiIvPg0KICA8L2c+DQogIDxwYXRoIGQ9Ik0xNSw1VjVtMS0xSDE0VjIwaDJWNFoiLz4NCjwvc3ZnPg0K", cw = "data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4NCiAgPGRlZnM+DQogICAgPHN0eWxlPg0KICAgICAgLmNscy0xIHsNCiAgICAgICAgc3Ryb2tlOiAjMDAwOw0KICAgICAgICBzdHJva2UtbWl0ZXJsaW1pdDogMTA7DQogICAgICAgIHN0cm9rZS13aWR0aDogMnB4Ow0KICAgICAgfQ0KICAgIDwvc3R5bGU+DQogIDwvZGVmcz4NCiAgPGc+DQogICAgPHBhdGggZD0iTTQsMjAuNUExLjUsMS41LDAsMCwxLDIuNSwxOVYxNC41aDJ2NGgxNlY1LjVoLTd2LTJIMjFBMS41LDEuNSwwLDAsMSwyMi41LDVWMTlBMS41LDEuNSwwLDAsMSwyMSwyMC41WiIvPg0KICAgIDxwYXRoIGQ9Ik0yMSw0YTEsMSwwLDAsMSwxLDFWMTlhMSwxLDAsMCwxLTEsMUg0YTEsMSwwLDAsMS0xLTFWMTVINHY0SDIxVjVIMTRWNGg3bTAtMUgxM1Y2aDdWMThINVYxNEgydjVhMiwyLDAsMCwwLDIsMkgyMWEyLDIsMCwwLDAsMi0yVjVhMiwyLDAsMCwwLTItMloiLz4NCiAgPC9nPg0KICA8Zz4NCiAgICA8cmVjdCB4PSIyLjUiIHk9IjMuNSIgd2lkdGg9IjEiIGhlaWdodD0iNiIvPg0KICAgIDxwYXRoIGQ9Ik0zLDRWNE00LDNIMnY3SDRWM1oiLz4NCiAgPC9nPg0KICA8Zz4NCiAgICA8cmVjdCB4PSIyLjUiIHk9IjMuNSIgd2lkdGg9IjYiIGhlaWdodD0iMSIvPg0KICAgIDxwb2x5Z29uIHBvaW50cz0iOSAzIDIgMyAyIDUgOSA1IDkgMyA5IDMiLz4NCiAgPC9nPg0KICA8Zz4NCiAgICA8cmVjdCB4PSI0LjUiIHk9IjUuNSIgd2lkdGg9IjIiIGhlaWdodD0iMiIvPg0KICAgIDxwYXRoIGQ9Ik02LDZWN0g1VjZINk03LDVINFY4SDdWNVoiLz4NCiAgPC9nPg0KICA8Zz4NCiAgICA8bGluZSBjbGFzcz0iY2xzLTEiIHgxPSI5LjM5IiB5MT0iMTAuMzkiIHgyPSI1LjQ2IiB5Mj0iNi40NiIvPg0KICAgIDxnPg0KICAgICAgPHJlY3QgeD0iNi43NyIgeT0iNS42NSIgd2lkdGg9IjEuMzEiIGhlaWdodD0iNS41NSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMuNzggNy43Mikgcm90YXRlKC00NSkiLz4NCiAgICAgIDxwb2x5Z29uIHBvaW50cz0iNS45MyA2IDUgNi45MyA4LjkzIDEwLjg1IDkuODUgOS45MyA1LjkzIDYgNS45MyA2Ii8+DQogICAgPC9nPg0KICA8L2c+DQo8L3N2Zz4NCg==", lw = ({ viewMode: r, onSearchModeClick: e, onViewModeToggle: t, onCloseClick: n }) => /* @__PURE__ */ c.jsxs("div", { className: "title-bar", children: [
|
|
12200
12205
|
/* @__PURE__ */ c.jsx(
|
|
12201
12206
|
"div",
|
|
12202
12207
|
{
|
|
@@ -12214,10 +12219,10 @@ const Oo = () => navigator.userAgent.indexOf("MSIE") !== -1 || navigator.appVers
|
|
|
12214
12219
|
children: /* @__PURE__ */ c.jsx(te, { naked: !0, disabled: !0, children: /* @__PURE__ */ c.jsx("img", { src: Yn, alt: "search", style: { width: 24, height: 24 } }) })
|
|
12215
12220
|
}
|
|
12216
12221
|
) }) : /* @__PURE__ */ c.jsx(te, { naked: !0, onClick: e, "data-testid": "search-button", children: /* @__PURE__ */ c.jsx("img", { src: Yn, alt: "search", style: { width: 24, height: 24 } }) }),
|
|
12217
|
-
/* @__PURE__ */ c.jsx(te, { naked: !0, onClick: t, children: /* @__PURE__ */ c.jsx("img", { src: r === "modal" ?
|
|
12222
|
+
/* @__PURE__ */ c.jsx(te, { naked: !0, onClick: t, children: /* @__PURE__ */ c.jsx("img", { src: r === "modal" ? aw : cw, alt: "dock" }) }),
|
|
12218
12223
|
/* @__PURE__ */ c.jsx(te, { naked: !0, onClick: n, "data-testid": "close-help-panel-button", children: /* @__PURE__ */ c.jsx(qn, { del: !0, large: !0 }) })
|
|
12219
12224
|
] })
|
|
12220
|
-
] }),
|
|
12225
|
+
] }), dw = ({ open: r, phrase: e, onPhraseChange: t }) => /* @__PURE__ */ c.jsx(
|
|
12221
12226
|
"div",
|
|
12222
12227
|
{
|
|
12223
12228
|
className: ye("search-bar", {
|
|
@@ -12238,7 +12243,7 @@ const Oo = () => navigator.userAgent.indexOf("MSIE") !== -1 || navigator.appVers
|
|
|
12238
12243
|
] })
|
|
12239
12244
|
}
|
|
12240
12245
|
);
|
|
12241
|
-
var
|
|
12246
|
+
var uw = globalThis && globalThis.__extends || function() {
|
|
12242
12247
|
var r = function(e, t) {
|
|
12243
12248
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
12244
12249
|
n.__proto__ = i;
|
|
@@ -12279,7 +12284,7 @@ var lw = globalThis && globalThis.__extends || function() {
|
|
|
12279
12284
|
width: "20px",
|
|
12280
12285
|
height: "20px",
|
|
12281
12286
|
position: "absolute"
|
|
12282
|
-
},
|
|
12287
|
+
}, hw = {
|
|
12283
12288
|
top: le(le({}, bc), { top: "-5px" }),
|
|
12284
12289
|
right: le(le({}, kc), { left: void 0, right: "-5px" }),
|
|
12285
12290
|
bottom: le(le({}, bc), { top: void 0, bottom: "-5px" }),
|
|
@@ -12288,10 +12293,10 @@ var lw = globalThis && globalThis.__extends || function() {
|
|
|
12288
12293
|
bottomRight: le(le({}, wr), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
|
|
12289
12294
|
bottomLeft: le(le({}, wr), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
|
|
12290
12295
|
topLeft: le(le({}, wr), { left: "-10px", top: "-10px", cursor: "nw-resize" })
|
|
12291
|
-
},
|
|
12296
|
+
}, gw = (
|
|
12292
12297
|
/** @class */
|
|
12293
12298
|
function(r) {
|
|
12294
|
-
|
|
12299
|
+
uw(e, r);
|
|
12295
12300
|
function e() {
|
|
12296
12301
|
var t = r !== null && r.apply(this, arguments) || this;
|
|
12297
12302
|
return t.onMouseDown = function(n) {
|
|
@@ -12301,10 +12306,10 @@ var lw = globalThis && globalThis.__extends || function() {
|
|
|
12301
12306
|
}, t;
|
|
12302
12307
|
}
|
|
12303
12308
|
return e.prototype.render = function() {
|
|
12304
|
-
return J.createElement("div", { className: this.props.className || "", style: le(le({ position: "absolute", userSelect: "none" },
|
|
12309
|
+
return J.createElement("div", { className: this.props.className || "", style: le(le({ position: "absolute", userSelect: "none" }, hw[this.props.direction]), this.props.replaceStyles || {}), onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart }, this.props.children);
|
|
12305
12310
|
}, e;
|
|
12306
12311
|
}(J.PureComponent)
|
|
12307
|
-
),
|
|
12312
|
+
), fw = globalThis && globalThis.__extends || function() {
|
|
12308
12313
|
var r = function(e, t) {
|
|
12309
12314
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
12310
12315
|
n.__proto__ = i;
|
|
@@ -12329,7 +12334,7 @@ var lw = globalThis && globalThis.__extends || function() {
|
|
|
12329
12334
|
}
|
|
12330
12335
|
return r;
|
|
12331
12336
|
}, Ze.apply(this, arguments);
|
|
12332
|
-
},
|
|
12337
|
+
}, pw = {
|
|
12333
12338
|
width: "auto",
|
|
12334
12339
|
height: "auto"
|
|
12335
12340
|
}, Tr = function(r, e, t) {
|
|
@@ -12340,7 +12345,7 @@ var lw = globalThis && globalThis.__extends || function() {
|
|
|
12340
12345
|
return new RegExp(r, "i").test(e);
|
|
12341
12346
|
}, Ar = function(r) {
|
|
12342
12347
|
return !!(r.touches && r.touches.length);
|
|
12343
|
-
},
|
|
12348
|
+
}, mw = function(r) {
|
|
12344
12349
|
return !!((r.clientX || r.clientX === 0) && (r.clientY || r.clientY === 0));
|
|
12345
12350
|
}, Rc = function(r, e, t) {
|
|
12346
12351
|
t === void 0 && (t = 0);
|
|
@@ -12368,14 +12373,14 @@ var lw = globalThis && globalThis.__extends || function() {
|
|
|
12368
12373
|
}
|
|
12369
12374
|
}
|
|
12370
12375
|
return r;
|
|
12371
|
-
},
|
|
12376
|
+
}, yw = function(r, e, t, n, i, o, s) {
|
|
12372
12377
|
return n = Ir(n, r.width, e, t), i = Ir(i, r.height, e, t), o = Ir(o, r.width, e, t), s = Ir(s, r.height, e, t), {
|
|
12373
12378
|
maxWidth: typeof n > "u" ? void 0 : Number(n),
|
|
12374
12379
|
maxHeight: typeof i > "u" ? void 0 : Number(i),
|
|
12375
12380
|
minWidth: typeof o > "u" ? void 0 : Number(o),
|
|
12376
12381
|
minHeight: typeof s > "u" ? void 0 : Number(s)
|
|
12377
12382
|
};
|
|
12378
|
-
},
|
|
12383
|
+
}, Cw = [
|
|
12379
12384
|
"as",
|
|
12380
12385
|
"style",
|
|
12381
12386
|
"className",
|
|
@@ -12405,10 +12410,10 @@ var lw = globalThis && globalThis.__extends || function() {
|
|
|
12405
12410
|
"scale",
|
|
12406
12411
|
"resizeRatio",
|
|
12407
12412
|
"snapGap"
|
|
12408
|
-
], xc = "__resizable_base__",
|
|
12413
|
+
], xc = "__resizable_base__", vw = (
|
|
12409
12414
|
/** @class */
|
|
12410
12415
|
function(r) {
|
|
12411
|
-
|
|
12416
|
+
fw(e, r);
|
|
12412
12417
|
function e(t) {
|
|
12413
12418
|
var n = r.call(this, t) || this;
|
|
12414
12419
|
return n.ratio = 1, n.resizable = null, n.parentLeft = 0, n.parentTop = 0, n.resizableLeft = 0, n.resizableRight = 0, n.resizableTop = 0, n.resizableBottom = 0, n.targetLeft = 0, n.targetTop = 0, n.appendBase = function() {
|
|
@@ -12465,7 +12470,7 @@ var lw = globalThis && globalThis.__extends || function() {
|
|
|
12465
12470
|
configurable: !0
|
|
12466
12471
|
}), Object.defineProperty(e.prototype, "propsSize", {
|
|
12467
12472
|
get: function() {
|
|
12468
|
-
return this.props.size || this.props.defaultSize ||
|
|
12473
|
+
return this.props.size || this.props.defaultSize || pw;
|
|
12469
12474
|
},
|
|
12470
12475
|
enumerable: !1,
|
|
12471
12476
|
configurable: !0
|
|
@@ -12569,7 +12574,7 @@ var lw = globalThis && globalThis.__extends || function() {
|
|
|
12569
12574
|
}, e.prototype.onResizeStart = function(t, n) {
|
|
12570
12575
|
if (!(!this.resizable || !this.window)) {
|
|
12571
12576
|
var i = 0, o = 0;
|
|
12572
|
-
if (t.nativeEvent &&
|
|
12577
|
+
if (t.nativeEvent && mw(t.nativeEvent) ? (i = t.nativeEvent.clientX, o = t.nativeEvent.clientY) : t.nativeEvent && Ar(t.nativeEvent) && (i = t.nativeEvent.touches[0].clientX, o = t.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
|
|
12573
12578
|
var s = this.props.onResizeStart(t, n, this.resizable);
|
|
12574
12579
|
if (s === !1)
|
|
12575
12580
|
return;
|
|
@@ -12606,7 +12611,7 @@ var lw = globalThis && globalThis.__extends || function() {
|
|
|
12606
12611
|
t.preventDefault(), t.stopPropagation();
|
|
12607
12612
|
} catch {
|
|
12608
12613
|
}
|
|
12609
|
-
var i = this.props, o = i.maxWidth, s = i.maxHeight, a = i.minWidth, l = i.minHeight, h = Ar(t) ? t.touches[0].clientX : t.clientX, u = Ar(t) ? t.touches[0].clientY : t.clientY, d = this.state, g = d.direction, f = d.original, m = d.width, p = d.height, y = this.getParentSize(), C =
|
|
12614
|
+
var i = this.props, o = i.maxWidth, s = i.maxHeight, a = i.minWidth, l = i.minHeight, h = Ar(t) ? t.touches[0].clientX : t.clientX, u = Ar(t) ? t.touches[0].clientY : t.clientY, d = this.state, g = d.direction, f = d.original, m = d.width, p = d.height, y = this.getParentSize(), C = yw(y, this.window.innerWidth, this.window.innerHeight, o, s, a, l);
|
|
12610
12615
|
o = C.maxWidth, s = C.maxHeight, a = C.minWidth, l = C.minHeight;
|
|
12611
12616
|
var w = this.calculateNewSizeFromDirection(h, u), A = w.newHeight, I = w.newWidth, S = this.calculateNewMaxFromBoundary(o, s);
|
|
12612
12617
|
this.props.snap && this.props.snap.x && (I = Rc(I, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (A = Rc(A, this.props.snap.y, this.props.snapGap));
|
|
@@ -12670,12 +12675,12 @@ var lw = globalThis && globalThis.__extends || function() {
|
|
|
12670
12675
|
if (!i)
|
|
12671
12676
|
return null;
|
|
12672
12677
|
var u = Object.keys(i).map(function(d) {
|
|
12673
|
-
return i[d] !== !1 ? J.createElement(
|
|
12678
|
+
return i[d] !== !1 ? J.createElement(gw, { key: d, direction: d, onResizeStart: t.onResizeStart, replaceStyles: o && o[d], className: s && s[d] }, h && h[d] ? h[d] : null) : null;
|
|
12674
12679
|
});
|
|
12675
12680
|
return J.createElement("div", { className: l, style: a }, u);
|
|
12676
12681
|
}, e.prototype.render = function() {
|
|
12677
12682
|
var t = this, n = Object.keys(this.props).reduce(function(s, a) {
|
|
12678
|
-
return
|
|
12683
|
+
return Cw.indexOf(a) !== -1 || (s[a] = t.props[a]), s;
|
|
12679
12684
|
}, {}), i = Ze(Ze(Ze({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 });
|
|
12680
12685
|
this.state.flexBasis && (i.flexBasis = this.state.flexBasis);
|
|
12681
12686
|
var o = this.props.as || "div";
|
|
@@ -12715,9 +12720,9 @@ var lw = globalThis && globalThis.__extends || function() {
|
|
|
12715
12720
|
}, e;
|
|
12716
12721
|
}(J.PureComponent)
|
|
12717
12722
|
);
|
|
12718
|
-
const Ji = 300, _c = 420,
|
|
12719
|
-
function
|
|
12720
|
-
const [t, n] = k(0), [i, o] = k(
|
|
12723
|
+
const Ji = 300, _c = 420, ww = 270, Tw = 150, Aw = 150, Iw = 40;
|
|
12724
|
+
function Sw({ children: r, className: e }) {
|
|
12725
|
+
const [t, n] = k(0), [i, o] = k(Aw), [s, a] = k(window.innerWidth - Ji - Iw), [l, h] = k(Ji), [u, d] = k(_c), g = Me(null), f = (y, C, w, A) => {
|
|
12721
12726
|
n(A.width);
|
|
12722
12727
|
}, m = (y, C, w, A) => {
|
|
12723
12728
|
n(0), h(l + A.width), d(u + A.height), a(s - A.width);
|
|
@@ -12744,7 +12749,7 @@ function Aw({ children: r, className: e }) {
|
|
|
12744
12749
|
nodeRef: g,
|
|
12745
12750
|
onStop: p,
|
|
12746
12751
|
children: /* @__PURE__ */ c.jsx(
|
|
12747
|
-
|
|
12752
|
+
vw,
|
|
12748
12753
|
{
|
|
12749
12754
|
ref: (y) => {
|
|
12750
12755
|
g.current = (y == null ? void 0 : y.resizable) ?? null;
|
|
@@ -12758,8 +12763,8 @@ function Aw({ children: r, className: e }) {
|
|
|
12758
12763
|
width: Ji,
|
|
12759
12764
|
height: _c
|
|
12760
12765
|
},
|
|
12761
|
-
minWidth:
|
|
12762
|
-
minHeight:
|
|
12766
|
+
minWidth: ww,
|
|
12767
|
+
minHeight: Tw,
|
|
12763
12768
|
size: {
|
|
12764
12769
|
width: l,
|
|
12765
12770
|
height: u
|
|
@@ -13392,16 +13397,16 @@ var bu = { exports: {} };
|
|
|
13392
13397
|
return l;
|
|
13393
13398
|
});
|
|
13394
13399
|
})(bu);
|
|
13395
|
-
var
|
|
13396
|
-
const
|
|
13400
|
+
var Ew = bu.exports;
|
|
13401
|
+
const bw = /* @__PURE__ */ kt(Ew), Zi = {
|
|
13397
13402
|
separateWordSearch: !1,
|
|
13398
13403
|
iframes: !0
|
|
13399
13404
|
};
|
|
13400
|
-
function
|
|
13405
|
+
function kw({ children: r, phrase: e }) {
|
|
13401
13406
|
const t = Me(null), n = Q(
|
|
13402
13407
|
(i) => {
|
|
13403
13408
|
if (i) {
|
|
13404
|
-
const o = new
|
|
13409
|
+
const o = new bw(i);
|
|
13405
13410
|
t.current = o, o.mark(e, Zi);
|
|
13406
13411
|
}
|
|
13407
13412
|
},
|
|
@@ -13412,7 +13417,7 @@ function Ew({ children: r, phrase: e }) {
|
|
|
13412
13417
|
i && (i.unmark(Zi), i.mark(e, Zi));
|
|
13413
13418
|
}, [e]), /* @__PURE__ */ c.jsx("div", { ref: n, children: r });
|
|
13414
13419
|
}
|
|
13415
|
-
async function
|
|
13420
|
+
async function Mw(r) {
|
|
13416
13421
|
const e = await fetch(r);
|
|
13417
13422
|
if (e.status === 404)
|
|
13418
13423
|
return null;
|
|
@@ -13422,7 +13427,7 @@ async function bw(r) {
|
|
|
13422
13427
|
}), Ae.unescape(new XMLSerializer().serializeToString(n));
|
|
13423
13428
|
}
|
|
13424
13429
|
let Un;
|
|
13425
|
-
class
|
|
13430
|
+
class Rw extends J.Component {
|
|
13426
13431
|
constructor() {
|
|
13427
13432
|
super(...arguments), this.state = {
|
|
13428
13433
|
documentContent: "",
|
|
@@ -13433,7 +13438,7 @@ class kw extends J.Component {
|
|
|
13433
13438
|
Oo() || Lo() || !e || (this.setState({
|
|
13434
13439
|
fetching: !0,
|
|
13435
13440
|
error: !1
|
|
13436
|
-
}), Un = Lr(
|
|
13441
|
+
}), Un = Lr(Mw(e)), Un.promise.then((t) => {
|
|
13437
13442
|
t != null ? this.setState({
|
|
13438
13443
|
documentContent: t
|
|
13439
13444
|
}) : this.setState({
|
|
@@ -13504,12 +13509,12 @@ class kw extends J.Component {
|
|
|
13504
13509
|
] });
|
|
13505
13510
|
}
|
|
13506
13511
|
}
|
|
13507
|
-
function
|
|
13512
|
+
function xw() {
|
|
13508
13513
|
const [r, e] = k(!1), [t, n] = k(""), { isOpen: i, viewMode: o, documentationUrl: s, close: a, toggleViewMode: l } = K(ll), h = Ps(".di.app-wrapper", "help-sidebar");
|
|
13509
13514
|
function u(d) {
|
|
13510
13515
|
const g = /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
13511
13516
|
/* @__PURE__ */ c.jsx(
|
|
13512
|
-
|
|
13517
|
+
lw,
|
|
13513
13518
|
{
|
|
13514
13519
|
viewMode: o,
|
|
13515
13520
|
onSearchModeClick: () => e((f) => !f),
|
|
@@ -13518,7 +13523,7 @@ function Mw() {
|
|
|
13518
13523
|
}
|
|
13519
13524
|
),
|
|
13520
13525
|
/* @__PURE__ */ c.jsx(
|
|
13521
|
-
|
|
13526
|
+
dw,
|
|
13522
13527
|
{
|
|
13523
13528
|
open: r,
|
|
13524
13529
|
phrase: t,
|
|
@@ -13529,7 +13534,7 @@ function Mw() {
|
|
|
13529
13534
|
] });
|
|
13530
13535
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
13531
13536
|
/* @__PURE__ */ c.jsx(
|
|
13532
|
-
|
|
13537
|
+
Sw,
|
|
13533
13538
|
{
|
|
13534
13539
|
className: ye("root modal", {
|
|
13535
13540
|
open: i,
|
|
@@ -13552,12 +13557,12 @@ function Mw() {
|
|
|
13552
13557
|
}
|
|
13553
13558
|
return h ? Qf.createPortal(
|
|
13554
13559
|
u(
|
|
13555
|
-
/* @__PURE__ */ c.jsx(
|
|
13560
|
+
/* @__PURE__ */ c.jsx(kw, { phrase: r ? t : "", children: /* @__PURE__ */ c.jsx(Rw, { url: s }) })
|
|
13556
13561
|
),
|
|
13557
13562
|
h
|
|
13558
13563
|
) : null;
|
|
13559
13564
|
}
|
|
13560
|
-
async function
|
|
13565
|
+
async function _w() {
|
|
13561
13566
|
try {
|
|
13562
13567
|
return await Ef(), await bf();
|
|
13563
13568
|
} catch (r) {
|
|
@@ -13565,7 +13570,7 @@ async function Rw() {
|
|
|
13565
13570
|
}
|
|
13566
13571
|
}
|
|
13567
13572
|
const Nc = document.querySelector(".di.app-wrapper");
|
|
13568
|
-
function
|
|
13573
|
+
function Nw({ children: r }) {
|
|
13569
13574
|
const [e, t] = k(!1), [n, i] = k("sidebar"), [o, s] = k(!1), [a, l] = k("");
|
|
13570
13575
|
function h(g) {
|
|
13571
13576
|
s(!0), l(g);
|
|
@@ -13577,7 +13582,7 @@ function xw({ children: r }) {
|
|
|
13577
13582
|
i((g) => g === "sidebar" ? "modal" : "sidebar");
|
|
13578
13583
|
}
|
|
13579
13584
|
return j(() => {
|
|
13580
|
-
|
|
13585
|
+
_w().then(t);
|
|
13581
13586
|
}, []), j(() => {
|
|
13582
13587
|
Nc && Nc.classList.toggle("with-sidebar-help", o && n === "sidebar");
|
|
13583
13588
|
}, [n, o]), /* @__PURE__ */ c.jsxs(
|
|
@@ -13593,13 +13598,13 @@ function xw({ children: r }) {
|
|
|
13593
13598
|
toggleViewMode: d
|
|
13594
13599
|
},
|
|
13595
13600
|
children: [
|
|
13596
|
-
/* @__PURE__ */ c.jsx(
|
|
13601
|
+
/* @__PURE__ */ c.jsx(xw, {}),
|
|
13597
13602
|
r
|
|
13598
13603
|
]
|
|
13599
13604
|
}
|
|
13600
13605
|
);
|
|
13601
13606
|
}
|
|
13602
|
-
const ti = ({ children: r }) => /* @__PURE__ */ c.jsx("div", { className: "di object-holder", children: /* @__PURE__ */ c.jsx("div", { className: "di object-crumbs", children: /* @__PURE__ */ c.jsx("span", { className: "crumb", children: r }) }) }),
|
|
13607
|
+
const ti = ({ children: r }) => /* @__PURE__ */ c.jsx("div", { className: "di object-holder", children: /* @__PURE__ */ c.jsx("div", { className: "di object-crumbs", children: /* @__PURE__ */ c.jsx("span", { className: "crumb", children: r }) }) }), Pw = {
|
|
13603
13608
|
all: {
|
|
13604
13609
|
id: "page.contextInfo.search.assets.all",
|
|
13605
13610
|
defaultValue: "{{elements}} Assets"
|
|
@@ -13608,7 +13613,7 @@ const ti = ({ children: r }) => /* @__PURE__ */ c.jsx("div", { className: "di ob
|
|
|
13608
13613
|
id: "page.contextInfo.search.assets.some",
|
|
13609
13614
|
defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Assets"
|
|
13610
13615
|
}
|
|
13611
|
-
},
|
|
13616
|
+
}, Ow = {
|
|
13612
13617
|
all: {
|
|
13613
13618
|
id: "page.contextInfo.search.assetGroups.all",
|
|
13614
13619
|
defaultValue: "{{elements}} Asset Groups"
|
|
@@ -13617,7 +13622,7 @@ const ti = ({ children: r }) => /* @__PURE__ */ c.jsx("div", { className: "di ob
|
|
|
13617
13622
|
id: "page.contextInfo.search.assetGroups.some",
|
|
13618
13623
|
defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Asset Groups"
|
|
13619
13624
|
}
|
|
13620
|
-
},
|
|
13625
|
+
}, Lw = {
|
|
13621
13626
|
all: {
|
|
13622
13627
|
id: "page.contextInfo.search.users.all",
|
|
13623
13628
|
defaultValue: "{{elements}} Users"
|
|
@@ -13626,7 +13631,7 @@ const ti = ({ children: r }) => /* @__PURE__ */ c.jsx("div", { className: "di ob
|
|
|
13626
13631
|
id: "page.contextInfo.search.users.some",
|
|
13627
13632
|
defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Users"
|
|
13628
13633
|
}
|
|
13629
|
-
},
|
|
13634
|
+
}, Dw = {
|
|
13630
13635
|
all: {
|
|
13631
13636
|
id: "page.contextInfo.search.userGroups.all",
|
|
13632
13637
|
defaultValue: "{{elements}} User Groups"
|
|
@@ -13635,7 +13640,7 @@ const ti = ({ children: r }) => /* @__PURE__ */ c.jsx("div", { className: "di ob
|
|
|
13635
13640
|
id: "page.contextInfo.search.userGroups.some",
|
|
13636
13641
|
defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} User Groups"
|
|
13637
13642
|
}
|
|
13638
|
-
},
|
|
13643
|
+
}, jw = {
|
|
13639
13644
|
all: {
|
|
13640
13645
|
id: "page.contextInfo.search.roles.all",
|
|
13641
13646
|
defaultValue: "{{elements}} Roles"
|
|
@@ -13644,7 +13649,7 @@ const ti = ({ children: r }) => /* @__PURE__ */ c.jsx("div", { className: "di ob
|
|
|
13644
13649
|
id: "page.contextInfo.search.roles.some",
|
|
13645
13650
|
defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Roles"
|
|
13646
13651
|
}
|
|
13647
|
-
},
|
|
13652
|
+
}, Uw = {
|
|
13648
13653
|
all: {
|
|
13649
13654
|
id: "page.contextInfo.search.notificationTemplates.all",
|
|
13650
13655
|
defaultValue: "{{elements}} Templates"
|
|
@@ -13653,41 +13658,41 @@ const ti = ({ children: r }) => /* @__PURE__ */ c.jsx("div", { className: "di ob
|
|
|
13653
13658
|
id: "page.contextInfo.search.notificationTemplates.some",
|
|
13654
13659
|
defaultValue: "<strong>{{elements}}</strong> of {{totalElements}} Templates"
|
|
13655
13660
|
}
|
|
13656
|
-
},
|
|
13661
|
+
}, Hw = (r) => {
|
|
13657
13662
|
switch (r) {
|
|
13658
13663
|
case "assets":
|
|
13659
|
-
return
|
|
13664
|
+
return Pw;
|
|
13660
13665
|
case "assetgroups":
|
|
13661
|
-
return
|
|
13666
|
+
return Ow;
|
|
13662
13667
|
case "users":
|
|
13663
|
-
return
|
|
13668
|
+
return Lw;
|
|
13664
13669
|
case "usergroups":
|
|
13665
|
-
return
|
|
13670
|
+
return Dw;
|
|
13666
13671
|
case "roles":
|
|
13667
|
-
return
|
|
13672
|
+
return jw;
|
|
13668
13673
|
case "notificationtemplates":
|
|
13669
|
-
return
|
|
13674
|
+
return Uw;
|
|
13670
13675
|
default:
|
|
13671
13676
|
throw Error(`context ${r} not supported`);
|
|
13672
13677
|
}
|
|
13673
13678
|
}, Pc = ({ tooltip: r, children: e }) => r ? /* @__PURE__ */ c.jsx(Jn, { content: r, children: e }) : e;
|
|
13674
|
-
function
|
|
13679
|
+
function Fw(r, e) {
|
|
13675
13680
|
return r ? e === !1 ? "10000+" : r.toString() : "0";
|
|
13676
13681
|
}
|
|
13677
|
-
class
|
|
13682
|
+
class zw extends J.Component {
|
|
13678
13683
|
constructor() {
|
|
13679
13684
|
super(...arguments), this.renderInfo = () => {
|
|
13680
13685
|
const {
|
|
13681
13686
|
info: { elements: e, totalElements: t, totalElementsAccurate: n, context: i, customTranslations: o },
|
|
13682
13687
|
tooltip: s,
|
|
13683
13688
|
t: a
|
|
13684
|
-
} = this.props, l = o ||
|
|
13689
|
+
} = this.props, l = o || Hw(i), h = /* @__PURE__ */ c.jsx(R, { i18nKey: "asset.search.count.tooltip", children: "Please refine your search to narrow down the result" });
|
|
13685
13690
|
return e === t ? /* @__PURE__ */ c.jsx("span", { className: "search-result", children: /* @__PURE__ */ c.jsx(Pc, { tooltip: n ? s : h, children: /* @__PURE__ */ c.jsx(
|
|
13686
13691
|
"span",
|
|
13687
13692
|
{
|
|
13688
13693
|
dangerouslySetInnerHTML: {
|
|
13689
13694
|
__html: a(l.all.id, {
|
|
13690
|
-
elements:
|
|
13695
|
+
elements: Fw(t, n),
|
|
13691
13696
|
defaultValue: l.all.defaultValue
|
|
13692
13697
|
})
|
|
13693
13698
|
}
|
|
@@ -13725,8 +13730,8 @@ class Hw extends J.Component {
|
|
|
13725
13730
|
return /* @__PURE__ */ c.jsx(ti, { children: this.renderInfo() });
|
|
13726
13731
|
}
|
|
13727
13732
|
}
|
|
13728
|
-
const
|
|
13729
|
-
const
|
|
13733
|
+
const Bw = $o()(zw), Kw = "data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbl9hc3NldF9saW5rZWRfdG9fZ2F0ZXdheSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNDAgMjQiIHdpZHRoPSI0MCIgaGVpZ2h0PSIyNCI+CiAgPGcgaWQ9ImJlZCI+CiAgICA8cmVjdCBpZD0idmVyYmluZGVyIiB4PSI3IiB5PSIxMSIgd2lkdGg9IjEwIiBoZWlnaHQ9IjIiIHN0eWxlPSJmaWxsOiAjYmJiIi8+CiAgICA8Y2lyY2xlIGlkPSJrcmVpcy1saW5rcy1rbGVpbiIgY3g9IjQiIGN5PSIxMiIgcj0iNCIgc3R5bGU9ImZpbGw6ICNiYmIiLz4KICAgIDxjaXJjbGUgaWQ9ImtyZWlzLXJlY2h0cy1ncm9zcyIgY3g9IjI4IiBjeT0iMTIiIHI9IjEyIiBzdHlsZT0iZmlsbDogI2JiYiIvPgogIDwvZz4KICA8ZyBpZD0ic2VuZGVyIj4KICAgIDxwYXRoIGQ9Ik0yOCwxMXMwLDcsMyw5IiBzdHlsZT0iZmlsbDogbm9uZTtzdHJva2U6ICNmZmY7c3Ryb2tlLWxpbmVjYXA6IHJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OiAxMDtzdHJva2Utd2lkdGg6IDEuNXB4Ii8+CiAgICA8cGF0aCBkPSJNMjgsMTFzMCw3LTMsOSIgc3R5bGU9ImZpbGw6IG5vbmU7c3Ryb2tlOiAjZmZmO3N0cm9rZS1saW5lY2FwOiByb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDogMTA7c3Ryb2tlLXdpZHRoOiAxLjVweCIvPgogIDwvZz4KICA8cGF0aCBpZD0id2VsbGUtaW5uZW4iIGQ9Ik0yNC44NywxNS4yOWE0LjU2LDQuNTYsMCwwLDEtLjExLTYuMzdBNC4zNyw0LjM3LDAsMCwxLDMxLDguODJhNC41Niw0LjU2LDAsMCwxLC4xMSw2LjM2IiBzdHlsZT0iZmlsbDogbm9uZTtzdHJva2U6ICNmZmY7c3Ryb2tlLWxpbmVjYXA6IHNxdWFyZTtzdHJva2UtbWl0ZXJsaW1pdDogMTA7c3Ryb2tlLXdpZHRoOiAxLjVweCIvPgogIDxwYXRoIGlkPSJ3ZWxsZS1hdXNzZW4iIGQ9Ik0yMi41OCwxOGE3Ljg1LDcuODUsMCwwLDEtLjE5LTExLDcuNTMsNy41MywwLDAsMSwxMC43OC0uMTgsNy44Niw3Ljg2LDAsMCwxLC4xOSwxMSIgc3R5bGU9ImZpbGw6IG5vbmU7c3Ryb2tlOiAjZmZmO3N0cm9rZS1saW5lY2FwOiBzcXVhcmU7c3Ryb2tlLW1pdGVybGltaXQ6IDEwO3N0cm9rZS13aWR0aDogMS41cHgiLz4KPC9zdmc+Cg==";
|
|
13734
|
+
const Gw = ({ children: r }) => /* @__PURE__ */ c.jsx("div", { className: "di object-status", children: /* @__PURE__ */ c.jsx("div", { className: "status-elm", children: r }) }), $w = 3, Ww = ({ info: { asset: r, assetGroups: e, gateway: t } }) => {
|
|
13730
13735
|
const n = t ? /* @__PURE__ */ c.jsxs(R, { i18nKey: "page.contextInfo.connectedGateway", children: [
|
|
13731
13736
|
"Asset is connected to ",
|
|
13732
13737
|
{ gatewayName: t ? `"${t.name}"` : "" },
|
|
@@ -13734,12 +13739,12 @@ const Bw = ({ children: r }) => /* @__PURE__ */ c.jsx("div", { className: "di ob
|
|
|
13734
13739
|
] }) : "";
|
|
13735
13740
|
return /* @__PURE__ */ c.jsxs("div", { className: "di object-holder", children: [
|
|
13736
13741
|
/* @__PURE__ */ c.jsx(ti, { children: r.name || r.urn }),
|
|
13737
|
-
/* @__PURE__ */ c.jsx(
|
|
13742
|
+
/* @__PURE__ */ c.jsx(Gw, { children: /* @__PURE__ */ c.jsx(mg, { asset: r }) }),
|
|
13738
13743
|
r.isGateway && /* @__PURE__ */ c.jsx("img", { src: yg, alt: "gateway", className: "gatewayIconContextInfo" }),
|
|
13739
13744
|
!r.isGateway && t && /* @__PURE__ */ c.jsx(Jn, { direction: "bottom", content: n, children: /* @__PURE__ */ c.jsx(Re, { to: `/assets/${t.id}`, children: /* @__PURE__ */ c.jsx(te, { className: "linkedToGatewayIconContextInfo-button", naked: !0, children: /* @__PURE__ */ c.jsx(
|
|
13740
13745
|
"img",
|
|
13741
13746
|
{
|
|
13742
|
-
src:
|
|
13747
|
+
src: Kw,
|
|
13743
13748
|
alt: "linked to gateway",
|
|
13744
13749
|
className: "linkedToGatewayIconContextInfo"
|
|
13745
13750
|
}
|
|
@@ -13756,7 +13761,7 @@ const Bw = ({ children: r }) => /* @__PURE__ */ c.jsx("div", { className: "di ob
|
|
|
13756
13761
|
{ count: e.length },
|
|
13757
13762
|
" Asset Groups"
|
|
13758
13763
|
] }),
|
|
13759
|
-
maxTagsInRow:
|
|
13764
|
+
maxTagsInRow: $w,
|
|
13760
13765
|
renderItem: ({ key: i }) => {
|
|
13761
13766
|
const o = e.find(({ id: s }) => s === i);
|
|
13762
13767
|
return o ? /* @__PURE__ */ c.jsx(vg, { assetGroup: o, labelSize: "small" }) : null;
|
|
@@ -13765,16 +13770,16 @@ const Bw = ({ children: r }) => /* @__PURE__ */ c.jsx("div", { className: "di ob
|
|
|
13765
13770
|
) })
|
|
13766
13771
|
] });
|
|
13767
13772
|
};
|
|
13768
|
-
function
|
|
13773
|
+
function Vw() {
|
|
13769
13774
|
const { contextInfo: r, tooltip: e } = K(wn);
|
|
13770
13775
|
if (r)
|
|
13771
13776
|
switch (r.type) {
|
|
13772
13777
|
case "string":
|
|
13773
13778
|
return /* @__PURE__ */ c.jsx(ti, { children: r.value });
|
|
13774
13779
|
case "search":
|
|
13775
|
-
return /* @__PURE__ */ c.jsx(
|
|
13780
|
+
return /* @__PURE__ */ c.jsx(Bw, { info: r, tooltip: e });
|
|
13776
13781
|
case "asset":
|
|
13777
|
-
return /* @__PURE__ */ c.jsx(
|
|
13782
|
+
return /* @__PURE__ */ c.jsx(Ww, { info: r });
|
|
13778
13783
|
case "assetGroup":
|
|
13779
13784
|
return /* @__PURE__ */ c.jsx(ti, { children: r.assetGroup.displayName || r.assetGroup.name });
|
|
13780
13785
|
default:
|
|
@@ -13783,12 +13788,12 @@ function $w() {
|
|
|
13783
13788
|
else
|
|
13784
13789
|
return null;
|
|
13785
13790
|
}
|
|
13786
|
-
const
|
|
13791
|
+
const Yw = (r, e) => r.find((t) => t.relativePath.split("/").every(
|
|
13787
13792
|
(i, o) => i === e[o] || i.startsWith(":")
|
|
13788
13793
|
)), Us = (r, e, t, n) => {
|
|
13789
13794
|
if (e.length === 0)
|
|
13790
13795
|
return n;
|
|
13791
|
-
const i =
|
|
13796
|
+
const i = Yw(r, e);
|
|
13792
13797
|
if (!i)
|
|
13793
13798
|
return n;
|
|
13794
13799
|
const o = t(i) || n, s = i.relativePath.split("/").length;
|
|
@@ -13798,53 +13803,53 @@ const Ww = (r, e) => r.find((t) => t.relativePath.split("/").every(
|
|
|
13798
13803
|
t,
|
|
13799
13804
|
o
|
|
13800
13805
|
);
|
|
13801
|
-
},
|
|
13806
|
+
}, qw = (r, e) => {
|
|
13802
13807
|
const t = e.split("/").filter((n) => n.length);
|
|
13803
13808
|
return Us(r, t, (n) => n.contextAction, null);
|
|
13804
|
-
},
|
|
13809
|
+
}, Qw = (r, e) => {
|
|
13805
13810
|
const t = e.split("/").filter((n) => n.length);
|
|
13806
13811
|
return Us(r, t, (n) => n.contextInfo, null);
|
|
13807
13812
|
};
|
|
13808
|
-
function
|
|
13809
|
-
const { pathname: e } = Ue(), t =
|
|
13810
|
-
return t ? /* @__PURE__ */ c.jsx(t, { pathname: e }) : /* @__PURE__ */ c.jsx(
|
|
13813
|
+
function Jw({ routes: r }) {
|
|
13814
|
+
const { pathname: e } = Ue(), t = Qw(r, e);
|
|
13815
|
+
return t ? /* @__PURE__ */ c.jsx(t, { pathname: e }) : /* @__PURE__ */ c.jsx(Vw, {});
|
|
13811
13816
|
}
|
|
13812
|
-
function
|
|
13817
|
+
function Zw() {
|
|
13813
13818
|
const { items: r } = K(Vo);
|
|
13814
13819
|
return /* @__PURE__ */ c.jsx(c.Fragment, { children: r });
|
|
13815
13820
|
}
|
|
13816
|
-
function
|
|
13817
|
-
const { pathname: e } = Ue(), { items: t } = K(Vo), n =
|
|
13821
|
+
function Xw({ routes: r }) {
|
|
13822
|
+
const { pathname: e } = Ue(), { items: t } = K(Vo), n = qw(r, e), i = !!n || t.length > 0;
|
|
13818
13823
|
return /* @__PURE__ */ c.jsx("div", { children: i && /* @__PURE__ */ c.jsxs("div", { className: "di floor-2-toolbar", children: [
|
|
13819
|
-
/* @__PURE__ */ c.jsx(
|
|
13824
|
+
/* @__PURE__ */ c.jsx(Zw, {}),
|
|
13820
13825
|
!!n && /* @__PURE__ */ c.jsx(n, { pathname: e, HasAuthorities: tn })
|
|
13821
13826
|
] }) });
|
|
13822
13827
|
}
|
|
13823
|
-
function
|
|
13828
|
+
function eT(r) {
|
|
13824
13829
|
return !isNaN(r) || /^[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(r);
|
|
13825
13830
|
}
|
|
13826
|
-
function
|
|
13831
|
+
function tT(r) {
|
|
13827
13832
|
const e = r.split("/").filter((t) => t.length);
|
|
13828
|
-
return e.length >= 2 &&
|
|
13833
|
+
return e.length >= 2 && eT(e[1]) ? 3 : e.length >= 2 ? 2 : 1;
|
|
13829
13834
|
}
|
|
13830
|
-
function
|
|
13835
|
+
function nT(r, e) {
|
|
13831
13836
|
return r ? /* @__PURE__ */ c.jsx(r, { id: e, style: { width: "16px", height: "16px" } }) : null;
|
|
13832
13837
|
}
|
|
13833
|
-
function
|
|
13838
|
+
function rT(r, e) {
|
|
13834
13839
|
return r ? /* @__PURE__ */ c.jsx(r, { id: e, style: { fill: "white", width: "16px", height: "16px" } }) : null;
|
|
13835
13840
|
}
|
|
13836
|
-
function
|
|
13841
|
+
function iT() {
|
|
13837
13842
|
const { user: r } = K(he), [e, t] = k(!1), { pathname: n, search: i } = Ue(), { contextInfo: o } = K(wn);
|
|
13838
13843
|
if (!r)
|
|
13839
13844
|
throw new Error("user not found");
|
|
13840
|
-
const s =
|
|
13845
|
+
const s = tT(n);
|
|
13841
13846
|
if (s < 2)
|
|
13842
13847
|
return null;
|
|
13843
13848
|
const a = Tu(n, s, o, r).filter((l) => l.iconSvg || l.iconLight).filter((l) => typeof l.label == "object");
|
|
13844
13849
|
return a.length <= 1 ? null : /* @__PURE__ */ c.jsx("div", { className: `di main-box-nav ${e ? "show" : ""}`, children: /* @__PURE__ */ c.jsxs("ul", { children: [
|
|
13845
13850
|
/* @__PURE__ */ c.jsx("li", { onClick: () => t((l) => !l), children: /* @__PURE__ */ c.jsx("div", { className: "icon triangle" }) }),
|
|
13846
13851
|
a.map((l) => {
|
|
13847
|
-
const h = l.label, u = l.active ? "selected" : "", d = Iu("subnavi", l), g = (l.active ?
|
|
13852
|
+
const h = l.label, u = l.active ? "selected" : "", d = Iu("subnavi", l), g = (l.active ? rT(l.iconSvg, d) : nT(l.iconSvg, d)) || null, f = (l.active ? l.iconLight : l.iconDark) || "", m = new URLSearchParams(i), p = new URLSearchParams();
|
|
13848
13853
|
return m.has("query") && p.set("query", m.get("query") || ""), /* @__PURE__ */ c.jsx("li", { className: u, children: /* @__PURE__ */ c.jsxs(
|
|
13849
13854
|
Re,
|
|
13850
13855
|
{
|
|
@@ -13869,9 +13874,9 @@ function nT() {
|
|
|
13869
13874
|
})
|
|
13870
13875
|
] }) });
|
|
13871
13876
|
}
|
|
13872
|
-
const
|
|
13877
|
+
const oT = (r) => /\d/.test(r), ku = (r, e, t) => {
|
|
13873
13878
|
let n = e[0];
|
|
13874
|
-
if (n =
|
|
13879
|
+
if (n = oT(n) || n.includes(":") ? ":param:" : n, e.length === 1)
|
|
13875
13880
|
return { ...r, [n]: { ...r[n], authorities: t } };
|
|
13876
13881
|
{
|
|
13877
13882
|
const i = r[n] ? r[n] : {
|
|
@@ -13879,12 +13884,12 @@ const rT = (r) => /\d/.test(r), ku = (r, e, t) => {
|
|
|
13879
13884
|
};
|
|
13880
13885
|
return { ...r, [n]: { ...ku(i, e.slice(1), t) } };
|
|
13881
13886
|
}
|
|
13882
|
-
},
|
|
13887
|
+
}, sT = (r, e, t) => {
|
|
13883
13888
|
const n = e.split("/").filter((i) => i !== "");
|
|
13884
13889
|
return ku(r, n, t);
|
|
13885
|
-
},
|
|
13890
|
+
}, aT = ({ children: r }) => {
|
|
13886
13891
|
const [e, t] = k(!1), [n, i] = k({}), o = () => t(!0), s = (a, l) => {
|
|
13887
|
-
const h =
|
|
13892
|
+
const h = sT(n, a, l);
|
|
13888
13893
|
i(h);
|
|
13889
13894
|
};
|
|
13890
13895
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -13899,7 +13904,7 @@ const rT = (r) => /\d/.test(r), ku = (r, e, t) => {
|
|
|
13899
13904
|
children: r
|
|
13900
13905
|
}
|
|
13901
13906
|
);
|
|
13902
|
-
},
|
|
13907
|
+
}, cT = ({ children: r }) => {
|
|
13903
13908
|
const [e, t] = k({}), [n, i] = k(!1);
|
|
13904
13909
|
return j(() => {
|
|
13905
13910
|
async function o() {
|
|
@@ -13924,9 +13929,9 @@ const rT = (r) => /\d/.test(r), ku = (r, e, t) => {
|
|
|
13924
13929
|
children: r
|
|
13925
13930
|
}
|
|
13926
13931
|
);
|
|
13927
|
-
},
|
|
13932
|
+
}, lT = (r) => /\d/.test(r), Mu = (r, e) => {
|
|
13928
13933
|
let t = e[0];
|
|
13929
|
-
t =
|
|
13934
|
+
t = lT(t) || t.includes(":") ? ":param:" : t;
|
|
13930
13935
|
const n = r[t];
|
|
13931
13936
|
return e.length > 1 && !Ae.isEmpty(n) ? {
|
|
13932
13937
|
[t]: {
|
|
@@ -13937,7 +13942,7 @@ const rT = (r) => /\d/.test(r), ku = (r, e, t) => {
|
|
|
13937
13942
|
[t]: n
|
|
13938
13943
|
};
|
|
13939
13944
|
};
|
|
13940
|
-
function
|
|
13945
|
+
function dT() {
|
|
13941
13946
|
const { showAuthorities: r, authoritiesVisible: e, pageAuthorities: t } = K(Yo), n = Ue();
|
|
13942
13947
|
if (j(() => {
|
|
13943
13948
|
const s = n.search || "", a = vn.parse(s.substring(1));
|
|
@@ -13952,7 +13957,7 @@ function cT() {
|
|
|
13952
13957
|
const i = n.pathname.split("/").filter((s) => s !== ""), o = i.length > 0 && !Ae.isEmpty(t) ? Mu(t, i) : {};
|
|
13953
13958
|
return /* @__PURE__ */ c.jsx("div", { children: o && /* @__PURE__ */ c.jsx("pre", { children: JSON.stringify(o, null, 2) }) });
|
|
13954
13959
|
}
|
|
13955
|
-
const
|
|
13960
|
+
const uT = "uiConfigurations/assetcols", Oc = [
|
|
13956
13961
|
{
|
|
13957
13962
|
key: "name",
|
|
13958
13963
|
selected: !0
|
|
@@ -13984,29 +13989,29 @@ function Lc() {
|
|
|
13984
13989
|
}
|
|
13985
13990
|
return Oc;
|
|
13986
13991
|
}
|
|
13987
|
-
function
|
|
13992
|
+
function hT(r) {
|
|
13988
13993
|
const e = r.findIndex((t) => t.key === "connection");
|
|
13989
13994
|
return e !== -1 ? [...r.slice(0, e), ...r.slice(e + 1), r[e]] : r;
|
|
13990
13995
|
}
|
|
13991
|
-
function
|
|
13992
|
-
const n =
|
|
13996
|
+
function gT(r, e) {
|
|
13997
|
+
const n = hT(Ae.uniqBy(r, "key")).map(({ key: a }) => a), i = e.map(({ key: a }) => a), o = e.filter(({ key: a }) => n.includes(a)), s = r.filter(({ key: a }) => !i.includes(a));
|
|
13993
13998
|
return [...o, ...s];
|
|
13994
13999
|
}
|
|
13995
14000
|
function Dc(r, e) {
|
|
13996
14001
|
return r.filter(({ key: t }) => !e.find((n) => n.key === t) && t.startsWith("dp."));
|
|
13997
14002
|
}
|
|
13998
|
-
function
|
|
14003
|
+
function fT(r) {
|
|
13999
14004
|
return r.filter(({ key: e, deletable: t }) => t && !e.startsWith("_")).map(({ key: e }) => ({
|
|
14000
14005
|
key: e,
|
|
14001
14006
|
selected: !1
|
|
14002
14007
|
}));
|
|
14003
14008
|
}
|
|
14004
|
-
function
|
|
14009
|
+
function pT(r) {
|
|
14005
14010
|
const [e, t] = k([]);
|
|
14006
14011
|
j(() => {
|
|
14007
14012
|
async function u() {
|
|
14008
14013
|
try {
|
|
14009
|
-
const d = await yl(
|
|
14014
|
+
const d = await yl(uT);
|
|
14010
14015
|
t(d);
|
|
14011
14016
|
} catch {
|
|
14012
14017
|
t(Lc());
|
|
@@ -14036,13 +14041,13 @@ function gT(r) {
|
|
|
14036
14041
|
);
|
|
14037
14042
|
return j(() => {
|
|
14038
14043
|
h(Dc(o, r));
|
|
14039
|
-
}, [o, r]), Tn(() =>
|
|
14040
|
-
[...Lc(), ...
|
|
14044
|
+
}, [o, r]), Tn(() => gT(
|
|
14045
|
+
[...Lc(), ...fT(r), ...l],
|
|
14041
14046
|
e
|
|
14042
14047
|
), [e, l, r, n]);
|
|
14043
14048
|
}
|
|
14044
|
-
const
|
|
14045
|
-
function
|
|
14049
|
+
const mT = "uiConfigurations/assetcols";
|
|
14050
|
+
function yT(r) {
|
|
14046
14051
|
const { selected: e, unselected: t } = r.reduce(
|
|
14047
14052
|
(n, i) => {
|
|
14048
14053
|
const { selected: o, unselected: s } = n;
|
|
@@ -14055,8 +14060,8 @@ function pT(r) {
|
|
|
14055
14060
|
);
|
|
14056
14061
|
return [...e, ...t];
|
|
14057
14062
|
}
|
|
14058
|
-
const
|
|
14059
|
-
const { assetProperties: e } = ul(), [t, n] = k(!1), i =
|
|
14063
|
+
const CT = ({ children: r }) => {
|
|
14064
|
+
const { assetProperties: e } = ul(), [t, n] = k(!1), i = pT(e), [o, s] = k(i), [a, l] = k(i);
|
|
14060
14065
|
j(() => {
|
|
14061
14066
|
s(i), l(i);
|
|
14062
14067
|
}, [i]);
|
|
@@ -14074,8 +14079,8 @@ const mT = ({ children: r }) => {
|
|
|
14074
14079
|
return m;
|
|
14075
14080
|
});
|
|
14076
14081
|
}, []), u = Q(async () => {
|
|
14077
|
-
const f =
|
|
14078
|
-
await Mf(
|
|
14082
|
+
const f = yT(o);
|
|
14083
|
+
await Mf(mT, f), s(f), l(f);
|
|
14079
14084
|
}, [o]), d = Q(() => {
|
|
14080
14085
|
s(a);
|
|
14081
14086
|
}, [a]), g = Q((f) => {
|
|
@@ -14098,11 +14103,11 @@ const mT = ({ children: r }) => {
|
|
|
14098
14103
|
children: r
|
|
14099
14104
|
}
|
|
14100
14105
|
);
|
|
14101
|
-
},
|
|
14106
|
+
}, vT = ai(null), Xi = {
|
|
14102
14107
|
didCatch: !1,
|
|
14103
14108
|
error: null
|
|
14104
14109
|
};
|
|
14105
|
-
class
|
|
14110
|
+
class wT extends si {
|
|
14106
14111
|
constructor(e) {
|
|
14107
14112
|
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Xi;
|
|
14108
14113
|
}
|
|
@@ -14135,7 +14140,7 @@ class CT extends si {
|
|
|
14135
14140
|
} = this.state, {
|
|
14136
14141
|
resetKeys: i
|
|
14137
14142
|
} = this.props;
|
|
14138
|
-
if (n && t.error !== null &&
|
|
14143
|
+
if (n && t.error !== null && TT(e.resetKeys, i)) {
|
|
14139
14144
|
var o, s;
|
|
14140
14145
|
(o = (s = this.props).onReset) === null || o === void 0 || o.call(s, {
|
|
14141
14146
|
next: i,
|
|
@@ -14169,7 +14174,7 @@ class CT extends si {
|
|
|
14169
14174
|
else
|
|
14170
14175
|
throw s;
|
|
14171
14176
|
}
|
|
14172
|
-
return lo(
|
|
14177
|
+
return lo(vT.Provider, {
|
|
14173
14178
|
value: {
|
|
14174
14179
|
didCatch: o,
|
|
14175
14180
|
error: s,
|
|
@@ -14178,26 +14183,26 @@ class CT extends si {
|
|
|
14178
14183
|
}, a);
|
|
14179
14184
|
}
|
|
14180
14185
|
}
|
|
14181
|
-
function
|
|
14186
|
+
function TT() {
|
|
14182
14187
|
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
14183
14188
|
return r.length !== e.length || r.some((t, n) => !Object.is(t, e[n]));
|
|
14184
14189
|
}
|
|
14185
|
-
function
|
|
14190
|
+
function AT(r) {
|
|
14186
14191
|
return r.message.includes("Failed to fetch dynamically imported module");
|
|
14187
14192
|
}
|
|
14188
|
-
const
|
|
14193
|
+
const IT = ({ error: r }) => /* @__PURE__ */ c.jsxs("div", { className: "di page-error", children: [
|
|
14189
14194
|
/* @__PURE__ */ c.jsx("h2", { children: /* @__PURE__ */ c.jsx("img", { src: Eg, alt: "" }) }),
|
|
14190
14195
|
/* @__PURE__ */ c.jsx("h3", { children: /* @__PURE__ */ c.jsx(R, { i18nKey: "page.uncaughtErrorMessage", children: "Something went wrong" }) }),
|
|
14191
14196
|
r.message && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
14192
14197
|
/* @__PURE__ */ c.jsx("hr", {}),
|
|
14193
14198
|
/* @__PURE__ */ c.jsx("h3", { children: /* @__PURE__ */ c.jsx("span", { title: r.message, children: r.message }) })
|
|
14194
14199
|
] }),
|
|
14195
|
-
|
|
14200
|
+
AT(r) && /* @__PURE__ */ c.jsxs("div", { "data-testid": "additional-message", children: [
|
|
14196
14201
|
/* @__PURE__ */ c.jsx("hr", {}),
|
|
14197
14202
|
/* @__PURE__ */ c.jsx("h4", { children: /* @__PURE__ */ c.jsx(R, { i18nKey: "errorMessage.pleaseReloadPage", children: "Please reload the page" }) })
|
|
14198
14203
|
] })
|
|
14199
14204
|
] }), jc = (r, e) => r ? G.getAppConfiguration(r, e ?? void 0) : null;
|
|
14200
|
-
function
|
|
14205
|
+
function ST({
|
|
14201
14206
|
route: {
|
|
14202
14207
|
component: r,
|
|
14203
14208
|
childRoutes: e,
|
|
@@ -14241,7 +14246,7 @@ function AT({
|
|
|
14241
14246
|
defaultValue: (S == null ? void 0 : S.defaultValue) ?? ""
|
|
14242
14247
|
})
|
|
14243
14248
|
).join(" - ") }) }),
|
|
14244
|
-
/* @__PURE__ */ c.jsx(
|
|
14249
|
+
/* @__PURE__ */ c.jsx(wT, { fallbackRender: IT, children: /* @__PURE__ */ c.jsx(
|
|
14245
14250
|
r,
|
|
14246
14251
|
{
|
|
14247
14252
|
...d,
|
|
@@ -14279,7 +14284,7 @@ function AT({
|
|
|
14279
14284
|
}
|
|
14280
14285
|
) : /* @__PURE__ */ c.jsx(Ne, { path: l, strict: !1, component: bg });
|
|
14281
14286
|
}
|
|
14282
|
-
class
|
|
14287
|
+
class ET extends J.PureComponent {
|
|
14283
14288
|
render() {
|
|
14284
14289
|
const {
|
|
14285
14290
|
routes: e,
|
|
@@ -14304,7 +14309,7 @@ class IT extends J.PureComponent {
|
|
|
14304
14309
|
);
|
|
14305
14310
|
} }) }) }),
|
|
14306
14311
|
e.map((u) => /* @__PURE__ */ lo(
|
|
14307
|
-
|
|
14312
|
+
ST,
|
|
14308
14313
|
{
|
|
14309
14314
|
...h,
|
|
14310
14315
|
route: u,
|
|
@@ -14322,16 +14327,16 @@ class IT extends J.PureComponent {
|
|
|
14322
14327
|
] });
|
|
14323
14328
|
}
|
|
14324
14329
|
}
|
|
14325
|
-
const Ru = Qo(
|
|
14330
|
+
const Ru = Qo(ET), bT = Ce.createContext({
|
|
14326
14331
|
connectionStatus: "",
|
|
14327
14332
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14328
14333
|
setConnectionStatus: (r) => {
|
|
14329
14334
|
}
|
|
14330
|
-
}),
|
|
14335
|
+
}), kT = ({ children: r }) => {
|
|
14331
14336
|
const [e, t] = k("");
|
|
14332
14337
|
return j(() => {
|
|
14333
14338
|
}, []), /* @__PURE__ */ c.jsx(
|
|
14334
|
-
|
|
14339
|
+
bT.Provider,
|
|
14335
14340
|
{
|
|
14336
14341
|
value: {
|
|
14337
14342
|
connectionStatus: e,
|
|
@@ -14340,10 +14345,10 @@ const Ru = Qo(IT), ST = Ce.createContext({
|
|
|
14340
14345
|
children: r
|
|
14341
14346
|
}
|
|
14342
14347
|
);
|
|
14343
|
-
},
|
|
14348
|
+
}, MT = () => {
|
|
14344
14349
|
const { roles: r, fetchRoles: e } = Mg();
|
|
14345
14350
|
r.length || e();
|
|
14346
|
-
},
|
|
14351
|
+
}, RT = [
|
|
14347
14352
|
{
|
|
14348
14353
|
key: "assets",
|
|
14349
14354
|
requiredAuthorities: ["READ_ASSET", "READ_ASSET_GROUP"]
|
|
@@ -14365,7 +14370,7 @@ const Ru = Qo(IT), ST = Ce.createContext({
|
|
|
14365
14370
|
requiredAuthorities: ["READ_ROLE"]
|
|
14366
14371
|
}
|
|
14367
14372
|
];
|
|
14368
|
-
function
|
|
14373
|
+
function xT(r, e) {
|
|
14369
14374
|
switch (r) {
|
|
14370
14375
|
case "assets":
|
|
14371
14376
|
return Pg((t) => {
|
|
@@ -14389,34 +14394,34 @@ function MT(r, e) {
|
|
|
14389
14394
|
throw Error(`unknown context: ${r}`);
|
|
14390
14395
|
}
|
|
14391
14396
|
}
|
|
14392
|
-
const
|
|
14397
|
+
const _T = (r) => {
|
|
14393
14398
|
const e = r.match(/^\/([^/]+).*/);
|
|
14394
14399
|
if (e)
|
|
14395
14400
|
return e[1];
|
|
14396
14401
|
};
|
|
14397
|
-
function
|
|
14402
|
+
function NT(r, e) {
|
|
14398
14403
|
return r.match(`^/${e}/list`) || r.match("^/assets/map") || r.match("^/assets/openevents") ? r : `/${e}/list`;
|
|
14399
14404
|
}
|
|
14400
|
-
function
|
|
14405
|
+
function PT({ children: r }) {
|
|
14401
14406
|
const [e, t] = k(""), [n, i] = k(null), [o, s] = k([]), { pathname: a, search: l } = Ue(), { push: h } = ot();
|
|
14402
14407
|
j(() => {
|
|
14403
|
-
n === "roles" &&
|
|
14408
|
+
n === "roles" && MT();
|
|
14404
14409
|
}, [n]), j(() => {
|
|
14405
|
-
const f =
|
|
14410
|
+
const f = RT.filter((m) => Ft(m.requiredAuthorities)).map(
|
|
14406
14411
|
({ key: m }) => m
|
|
14407
14412
|
);
|
|
14408
14413
|
s(f);
|
|
14409
14414
|
}, []), j(() => {
|
|
14410
|
-
const f =
|
|
14415
|
+
const f = _T(a);
|
|
14411
14416
|
f && o.includes(f) ? i(f) : i(o[0]);
|
|
14412
14417
|
}, [n, o, a]), j(() => {
|
|
14413
14418
|
const m = new URLSearchParams(l).get("query") ?? "";
|
|
14414
14419
|
t(m);
|
|
14415
14420
|
}, [l, a]);
|
|
14416
|
-
const u = Tn(() => n ?
|
|
14421
|
+
const u = Tn(() => n ? xT(n, h) : null, [n, h]), d = Q(
|
|
14417
14422
|
(f, m) => {
|
|
14418
14423
|
t(f);
|
|
14419
|
-
const p = new URLSearchParams(l), y =
|
|
14424
|
+
const p = new URLSearchParams(l), y = NT(a, m), C = new URLSearchParams();
|
|
14420
14425
|
f && C.set("query", f), a === y && (p.get("query") ?? "") === f && p.get("reload") !== "true" && C.set("reload", "true"), C.toString() ? h(`${y}?${C.toString()}`) : h(y);
|
|
14421
14426
|
},
|
|
14422
14427
|
[a, h, l]
|
|
@@ -14443,9 +14448,9 @@ function _T({ children: r }) {
|
|
|
14443
14448
|
}
|
|
14444
14449
|
);
|
|
14445
14450
|
}
|
|
14446
|
-
const
|
|
14447
|
-
function
|
|
14448
|
-
const [e, t] = k(
|
|
14451
|
+
const OT = [];
|
|
14452
|
+
function LT({ children: r }) {
|
|
14453
|
+
const [e, t] = k(OT), n = Q((o) => (t((s) => s.indexOf(o) !== -1 ? s : [...s, o]), () => t((s) => s.filter((a) => a !== o))), []);
|
|
14449
14454
|
window != null && window.ngui && (window.ngui.addGlobalContextProvider = n);
|
|
14450
14455
|
const i = e.reduce(
|
|
14451
14456
|
(o, s) => /* @__PURE__ */ c.jsx(s, { children: o }),
|
|
@@ -14459,14 +14464,14 @@ function xu(r, e) {
|
|
|
14459
14464
|
const [t, ...n] = e, i = t;
|
|
14460
14465
|
return /* @__PURE__ */ c.jsx(i, { children: xu(r, n) });
|
|
14461
14466
|
}
|
|
14462
|
-
function
|
|
14467
|
+
function DT({ providers: r, children: e }) {
|
|
14463
14468
|
return /* @__PURE__ */ c.jsx(c.Fragment, { children: xu(e, r) });
|
|
14464
14469
|
}
|
|
14465
|
-
function
|
|
14470
|
+
function jT({ children: r }) {
|
|
14466
14471
|
const [e, t] = k("");
|
|
14467
14472
|
return /* @__PURE__ */ c.jsx(vi.Provider, { value: { currentPageTitle: e, setCurrentPageTitle: t }, children: r });
|
|
14468
14473
|
}
|
|
14469
|
-
const
|
|
14474
|
+
const UT = ({ children: r }) => {
|
|
14470
14475
|
const e = G.getUx4iotUrl() ? void 0 : "ux4iot_unreachable", [t, n] = k(e);
|
|
14471
14476
|
return /* @__PURE__ */ c.jsx(ol.Provider, { value: { connectionState: t, setConnectionState: n }, children: G.getUx4iotUrl() ? /* @__PURE__ */ c.jsx(
|
|
14472
14477
|
Og.Ux4iotContextProvider,
|
|
@@ -14479,12 +14484,12 @@ const DT = ({ children: r }) => {
|
|
|
14479
14484
|
children: r
|
|
14480
14485
|
}
|
|
14481
14486
|
) : r });
|
|
14482
|
-
}, _u = 1e3,
|
|
14487
|
+
}, _u = 1e3, HT = {
|
|
14483
14488
|
showAxis: !0,
|
|
14484
14489
|
showThresholds: !1,
|
|
14485
14490
|
scaleAxis: null
|
|
14486
14491
|
};
|
|
14487
|
-
function
|
|
14492
|
+
function FT(r) {
|
|
14488
14493
|
return r.reduce(
|
|
14489
14494
|
(e, { asset: t, datapoint: n }) => ({
|
|
14490
14495
|
...e,
|
|
@@ -14499,7 +14504,7 @@ function Uc() {
|
|
|
14499
14504
|
tsEnd: We().add(10, "minutes").valueOf()
|
|
14500
14505
|
};
|
|
14501
14506
|
}
|
|
14502
|
-
function
|
|
14507
|
+
function zT(r) {
|
|
14503
14508
|
const e = Object.values(r).map((t) => {
|
|
14504
14509
|
const n = Object.values(t).map(([i]) => i);
|
|
14505
14510
|
return Math.max(...n);
|
|
@@ -14530,7 +14535,7 @@ function eo(r, e, t, n) {
|
|
|
14530
14535
|
l.isCanceled || n({ type: "fetchFailed" });
|
|
14531
14536
|
}), a;
|
|
14532
14537
|
}
|
|
14533
|
-
function
|
|
14538
|
+
function BT(r, e, t, n) {
|
|
14534
14539
|
const i = { ...e };
|
|
14535
14540
|
i.tsEnd += 1, n({
|
|
14536
14541
|
type: "fetchTrendDatapointRequest",
|
|
@@ -14557,7 +14562,7 @@ function Pu(r, e, t, n) {
|
|
|
14557
14562
|
key: vl(),
|
|
14558
14563
|
settings: {
|
|
14559
14564
|
color: o,
|
|
14560
|
-
...
|
|
14565
|
+
...HT,
|
|
14561
14566
|
plotType: e.datatype === "BOOLEAN" ? "step" : "line",
|
|
14562
14567
|
combineAxis: !!e.unit
|
|
14563
14568
|
},
|
|
@@ -14566,7 +14571,7 @@ function Pu(r, e, t, n) {
|
|
|
14566
14571
|
asset: r
|
|
14567
14572
|
};
|
|
14568
14573
|
}
|
|
14569
|
-
function
|
|
14574
|
+
function KT(r, e) {
|
|
14570
14575
|
const t = [...r];
|
|
14571
14576
|
for (const { asset: n, datapoints: i } of e) {
|
|
14572
14577
|
const o = i.filter(
|
|
@@ -14588,16 +14593,16 @@ function Hn(r, e) {
|
|
|
14588
14593
|
}
|
|
14589
14594
|
}), t;
|
|
14590
14595
|
}
|
|
14591
|
-
function
|
|
14596
|
+
function GT(r, e) {
|
|
14592
14597
|
const t = {};
|
|
14593
14598
|
for (const [n, i] of Object.entries(r))
|
|
14594
14599
|
for (const [o, s] of Object.entries(i)) {
|
|
14595
|
-
const a =
|
|
14600
|
+
const a = $T(e, n, o);
|
|
14596
14601
|
a && (t[a] ? t[a].push(s) : t[a] = [s]);
|
|
14597
14602
|
}
|
|
14598
14603
|
return t;
|
|
14599
14604
|
}
|
|
14600
|
-
function
|
|
14605
|
+
function $T(r, e, t) {
|
|
14601
14606
|
const n = r.find(
|
|
14602
14607
|
(i) => i.asset.urn === e && i.datapoint.name === t
|
|
14603
14608
|
);
|
|
@@ -14608,16 +14613,16 @@ function KT(r, e, t) {
|
|
|
14608
14613
|
r
|
|
14609
14614
|
);
|
|
14610
14615
|
}
|
|
14611
|
-
function
|
|
14616
|
+
function WT(r) {
|
|
14612
14617
|
const e = We(r.tsStart);
|
|
14613
14618
|
return We().diff(e, "day") < 1;
|
|
14614
14619
|
}
|
|
14615
|
-
function
|
|
14620
|
+
function VT(r, e, t) {
|
|
14616
14621
|
return r.map((n) => n.key === e ? { ...n, hidden: t } : n);
|
|
14617
14622
|
}
|
|
14618
|
-
function
|
|
14623
|
+
function YT(r, e, t, n) {
|
|
14619
14624
|
const i = r.filter((o) => !o.hidden && o.datapoint.datatype !== "TEXT").map((o) => {
|
|
14620
|
-
const s = e[o.key], a =
|
|
14625
|
+
const s = e[o.key], a = QT(s, o.datapoint.datatype);
|
|
14621
14626
|
return {
|
|
14622
14627
|
id: `${o.asset.urn}/${o.datapoint.name}`,
|
|
14623
14628
|
type: "line",
|
|
@@ -14636,13 +14641,13 @@ function WT(r, e, t, n) {
|
|
|
14636
14641
|
type: "line"
|
|
14637
14642
|
}), i;
|
|
14638
14643
|
}
|
|
14639
|
-
function
|
|
14644
|
+
function qT([r, e]) {
|
|
14640
14645
|
return [r, e ? 1 : 0];
|
|
14641
14646
|
}
|
|
14642
|
-
function
|
|
14647
|
+
function QT(r, e = "LONG") {
|
|
14643
14648
|
switch (e) {
|
|
14644
14649
|
case "BOOLEAN":
|
|
14645
|
-
return r == null ? void 0 : r.map(
|
|
14650
|
+
return r == null ? void 0 : r.map(qT);
|
|
14646
14651
|
case "TEXT":
|
|
14647
14652
|
return;
|
|
14648
14653
|
case "GEO_POSITION":
|
|
@@ -14670,7 +14675,7 @@ function Sr(r, e, t, n) {
|
|
|
14670
14675
|
}
|
|
14671
14676
|
};
|
|
14672
14677
|
}
|
|
14673
|
-
function
|
|
14678
|
+
function JT({ datapoint: { thresholds: r, name: e, unit: t }, settings: { color: n, showThresholds: i }, hidden: o }, s) {
|
|
14674
14679
|
const a = [];
|
|
14675
14680
|
if (o || !i)
|
|
14676
14681
|
return a;
|
|
@@ -14727,7 +14732,7 @@ function qT({ datapoint: { thresholds: r, name: e, unit: t }, settings: { color:
|
|
|
14727
14732
|
}
|
|
14728
14733
|
), a;
|
|
14729
14734
|
}
|
|
14730
|
-
const
|
|
14735
|
+
const ZT = [
|
|
14731
14736
|
{
|
|
14732
14737
|
id: "id",
|
|
14733
14738
|
title: {
|
|
@@ -14736,8 +14741,8 @@ const QT = [
|
|
|
14736
14741
|
visible: !1
|
|
14737
14742
|
}
|
|
14738
14743
|
];
|
|
14739
|
-
function
|
|
14740
|
-
const n =
|
|
14744
|
+
function XT(r, e, t) {
|
|
14745
|
+
const n = eA(r, e), i = r.filter((h) => !h.hidden && h.datapoint.datatype !== "TEXT"), o = (h) => ({
|
|
14741
14746
|
id: h.key,
|
|
14742
14747
|
labels: {
|
|
14743
14748
|
style: {
|
|
@@ -14753,9 +14758,9 @@ function JT(r, e, t) {
|
|
|
14753
14758
|
text: void 0
|
|
14754
14759
|
},
|
|
14755
14760
|
visible: h.settings.showAxis,
|
|
14756
|
-
plotLines:
|
|
14757
|
-
...
|
|
14758
|
-
...
|
|
14761
|
+
plotLines: JT(h, t),
|
|
14762
|
+
...rA(h, n, e),
|
|
14763
|
+
...iA(h.datapoint.datatype)
|
|
14759
14764
|
}), s = i.reduce((h, u) => {
|
|
14760
14765
|
var f, m;
|
|
14761
14766
|
const d = u.settings.combineAxis, g = (f = u.datapoint.unit) == null ? void 0 : f.name;
|
|
@@ -14775,20 +14780,20 @@ function JT(r, e, t) {
|
|
|
14775
14780
|
const d = u.settings.combineAxis, g = (m = u.datapoint.unit) == null ? void 0 : m.name, f = d && g ? s.get(g) : null;
|
|
14776
14781
|
return f ? h.includes(f) ? (a.set(u, h.indexOf(f)), h) : (a.set(u, h.length), [...h, f]) : (a.set(u, h.length), [...h, o(u)]);
|
|
14777
14782
|
}, []);
|
|
14778
|
-
return l.length ? { yAxisIndices: a, yAxis: l } : { yAxisIndices: a, yAxis:
|
|
14783
|
+
return l.length ? { yAxisIndices: a, yAxis: l } : { yAxisIndices: a, yAxis: ZT };
|
|
14779
14784
|
}
|
|
14780
|
-
function
|
|
14785
|
+
function eA(r, e) {
|
|
14781
14786
|
const t = r.filter(
|
|
14782
14787
|
({ hidden: i, settings: { combineAxis: o }, datapoint: { unit: s } }) => o && !i && s
|
|
14783
14788
|
), n = Ae.groupBy(t, ({ datapoint: { unit: i } }) => i.name);
|
|
14784
14789
|
return Object.fromEntries(
|
|
14785
14790
|
Object.entries(n).map(([i, o]) => [
|
|
14786
14791
|
i,
|
|
14787
|
-
|
|
14792
|
+
tA(o, e)
|
|
14788
14793
|
])
|
|
14789
14794
|
);
|
|
14790
14795
|
}
|
|
14791
|
-
function
|
|
14796
|
+
function tA(r, e) {
|
|
14792
14797
|
return r.reduce(
|
|
14793
14798
|
(t, n) => {
|
|
14794
14799
|
const { min: i, max: o } = Ou(n, e);
|
|
@@ -14797,7 +14802,7 @@ function XT(r, e) {
|
|
|
14797
14802
|
{ min: null, max: null }
|
|
14798
14803
|
);
|
|
14799
14804
|
}
|
|
14800
|
-
function
|
|
14805
|
+
function nA(r) {
|
|
14801
14806
|
const { min: e, max: t } = r;
|
|
14802
14807
|
if (e == null || t == null)
|
|
14803
14808
|
return r;
|
|
@@ -14823,7 +14828,7 @@ function Ou(r, e) {
|
|
|
14823
14828
|
{ min: null, max: null }
|
|
14824
14829
|
);
|
|
14825
14830
|
}
|
|
14826
|
-
function
|
|
14831
|
+
function rA(r, e, t) {
|
|
14827
14832
|
var i;
|
|
14828
14833
|
if (r.settings.combineAxis) {
|
|
14829
14834
|
const o = e[((i = r.datapoint.unit) == null ? void 0 : i.name) ?? ""];
|
|
@@ -14831,9 +14836,9 @@ function tA(r, e, t) {
|
|
|
14831
14836
|
return o;
|
|
14832
14837
|
}
|
|
14833
14838
|
const n = Ou(r, t);
|
|
14834
|
-
return n.min != null && n.max != null ?
|
|
14839
|
+
return n.min != null && n.max != null ? nA(n) : {};
|
|
14835
14840
|
}
|
|
14836
|
-
function
|
|
14841
|
+
function iA(r) {
|
|
14837
14842
|
return r === "BOOLEAN" ? {
|
|
14838
14843
|
gridLineWidth: 0,
|
|
14839
14844
|
min: 0,
|
|
@@ -14841,20 +14846,20 @@ function nA(r) {
|
|
|
14841
14846
|
labels: { enabled: !1 }
|
|
14842
14847
|
} : {};
|
|
14843
14848
|
}
|
|
14844
|
-
function
|
|
14849
|
+
function oA(r, e) {
|
|
14845
14850
|
return e === "BOOLEAN" ? r ? "true" : "false" : r;
|
|
14846
14851
|
}
|
|
14847
|
-
function
|
|
14852
|
+
function sA(r, e, t, n, i, o, s, a) {
|
|
14848
14853
|
return `
|
|
14849
14854
|
<span style="font-size: 10px">${so(n, { timezone: s })}</span>
|
|
14850
14855
|
<br/>
|
|
14851
14856
|
<span style="color:${t}">●</span>
|
|
14852
|
-
${r}: <b>${
|
|
14857
|
+
${r}: <b>${oA(i, e)}${o || ""}</b>
|
|
14853
14858
|
${a ? `<br/><br/><span>${a}</span>` : ""}
|
|
14854
14859
|
`;
|
|
14855
14860
|
}
|
|
14856
14861
|
function vt(r, e, t, n, i, o) {
|
|
14857
|
-
const s = t.filter((h) => !h.hidden), { yAxis: a, yAxisIndices: l } =
|
|
14862
|
+
const s = t.filter((h) => !h.hidden), { yAxis: a, yAxisIndices: l } = XT(t, n, o);
|
|
14858
14863
|
return {
|
|
14859
14864
|
chart: {
|
|
14860
14865
|
zooming: {
|
|
@@ -14870,7 +14875,7 @@ function vt(r, e, t, n, i, o) {
|
|
|
14870
14875
|
formatter: function(h) {
|
|
14871
14876
|
var m, p;
|
|
14872
14877
|
const u = (m = s[this.series.chart.series.indexOf(this.series)]) == null ? void 0 : m.datapoint, d = u == null ? void 0 : u.datatype, g = (p = u == null ? void 0 : u.unit) == null ? void 0 : p.print, f = Ug(u, o);
|
|
14873
|
-
return
|
|
14878
|
+
return sA(
|
|
14874
14879
|
this.series.name,
|
|
14875
14880
|
d,
|
|
14876
14881
|
// @ts-ignore
|
|
@@ -14883,7 +14888,7 @@ function vt(r, e, t, n, i, o) {
|
|
|
14883
14888
|
);
|
|
14884
14889
|
}
|
|
14885
14890
|
},
|
|
14886
|
-
series:
|
|
14891
|
+
series: YT(t, n, l, o),
|
|
14887
14892
|
xAxis: {
|
|
14888
14893
|
type: "datetime",
|
|
14889
14894
|
min: r.tsStart,
|
|
@@ -14900,7 +14905,7 @@ function vt(r, e, t, n, i, o) {
|
|
|
14900
14905
|
legend: { enabled: !1 }
|
|
14901
14906
|
};
|
|
14902
14907
|
}
|
|
14903
|
-
function
|
|
14908
|
+
function aA(r, e) {
|
|
14904
14909
|
var t;
|
|
14905
14910
|
switch (e.type) {
|
|
14906
14911
|
case "fetchRequest":
|
|
@@ -14930,7 +14935,7 @@ function oA(r, e) {
|
|
|
14930
14935
|
fetchedValuesByTrendDatapointKey: n,
|
|
14931
14936
|
chartConfig: i,
|
|
14932
14937
|
annotations: o,
|
|
14933
|
-
liveModeEnabled:
|
|
14938
|
+
liveModeEnabled: WT(r.currentPeriod)
|
|
14934
14939
|
};
|
|
14935
14940
|
}
|
|
14936
14941
|
case "fetchTrendDatapointRequest":
|
|
@@ -14966,7 +14971,7 @@ function oA(r, e) {
|
|
|
14966
14971
|
return { ...r, fetching: !1, fetchFailed: !0 };
|
|
14967
14972
|
case "updateLiveValues":
|
|
14968
14973
|
if (r.fetchedValuesByTrendDatapointKey) {
|
|
14969
|
-
const n =
|
|
14974
|
+
const n = GT(e.liveValues, r.trendDatapoints), i = Hn(
|
|
14970
14975
|
r.fetchedValuesByTrendDatapointKey,
|
|
14971
14976
|
n
|
|
14972
14977
|
), o = vt(
|
|
@@ -15037,7 +15042,7 @@ function oA(r, e) {
|
|
|
15037
15042
|
}
|
|
15038
15043
|
case "toggleTrendDatapoint":
|
|
15039
15044
|
if (r.fetchedValuesByTrendDatapointKey) {
|
|
15040
|
-
const n =
|
|
15045
|
+
const n = VT(r.trendDatapoints, e.key, e.hide), i = Qt(r.fetchedValuesByTrendDatapointKey, n), o = vt(
|
|
15041
15046
|
r.currentPeriod,
|
|
15042
15047
|
r.updatePeriodRef,
|
|
15043
15048
|
n,
|
|
@@ -15100,9 +15105,9 @@ function oA(r, e) {
|
|
|
15100
15105
|
return r;
|
|
15101
15106
|
}
|
|
15102
15107
|
}
|
|
15103
|
-
const
|
|
15108
|
+
const cA = ({ children: r }) => {
|
|
15104
15109
|
const { t: e } = qe(), t = Me(() => {
|
|
15105
|
-
}), n = Hg(), [i, o] = qo(
|
|
15110
|
+
}), n = Hg(), [i, o] = qo(aA, {
|
|
15106
15111
|
fetching: !0,
|
|
15107
15112
|
fetchFailed: !1,
|
|
15108
15113
|
trendDatapoints: [],
|
|
@@ -15119,7 +15124,7 @@ const sA = ({ children: r }) => {
|
|
|
15119
15124
|
}), s = Me(() => {
|
|
15120
15125
|
}), a = Me(() => {
|
|
15121
15126
|
}), l = Fg(), h = Tn(
|
|
15122
|
-
() => i.liveModeEnabled ?
|
|
15127
|
+
() => i.liveModeEnabled ? FT(i.trendDatapoints) : {},
|
|
15123
15128
|
[i.trendDatapoints, i.liveModeEnabled]
|
|
15124
15129
|
), u = zg(h), d = 4;
|
|
15125
15130
|
t.current = (I) => {
|
|
@@ -15133,7 +15138,7 @@ const sA = ({ children: r }) => {
|
|
|
15133
15138
|
const g = Q(
|
|
15134
15139
|
(I, S) => {
|
|
15135
15140
|
s.current(), a.current();
|
|
15136
|
-
const E =
|
|
15141
|
+
const E = KT(i.trendDatapoints, I);
|
|
15137
15142
|
eo(
|
|
15138
15143
|
E,
|
|
15139
15144
|
S ?? i.currentPeriod,
|
|
@@ -15146,7 +15151,7 @@ const sA = ({ children: r }) => {
|
|
|
15146
15151
|
(I, S) => {
|
|
15147
15152
|
s.current(), a.current();
|
|
15148
15153
|
const E = Pu(I, S, i.trendDatapoints);
|
|
15149
|
-
a.current =
|
|
15154
|
+
a.current = BT(
|
|
15150
15155
|
E,
|
|
15151
15156
|
i.currentPeriod,
|
|
15152
15157
|
l,
|
|
@@ -15193,7 +15198,7 @@ const sA = ({ children: r }) => {
|
|
|
15193
15198
|
() => {
|
|
15194
15199
|
const I = Object.keys(u).length === 0;
|
|
15195
15200
|
if (i.liveModeEnabled && !I && !i.fetching) {
|
|
15196
|
-
const { tsStart: S, tsEnd: E } = i.currentPeriod, L =
|
|
15201
|
+
const { tsStart: S, tsEnd: E } = i.currentPeriod, L = zT(u), $ = 3, z = Math.floor((E - S) / $), Ie = S < L && L < E + z;
|
|
15197
15202
|
L > E && Ie && t.current({ tsStart: S + z, tsEnd: E + z }), o({ type: "updateLiveValues", liveValues: u });
|
|
15198
15203
|
}
|
|
15199
15204
|
},
|
|
@@ -15227,11 +15232,11 @@ const sA = ({ children: r }) => {
|
|
|
15227
15232
|
}
|
|
15228
15233
|
);
|
|
15229
15234
|
};
|
|
15230
|
-
function
|
|
15235
|
+
function lA(r, e, t) {
|
|
15231
15236
|
const n = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
15232
15237
|
return r === "asset" && (e != null && e.timeZone) ? e.timeZone : r === "user" && (t != null && t.timezone) ? t.timezone : n;
|
|
15233
15238
|
}
|
|
15234
|
-
function
|
|
15239
|
+
function dA({ children: r }) {
|
|
15235
15240
|
const [e, t] = k(), [n, i] = k(G.getGlobalAssetTimezoneMode()), { user: o } = K(he);
|
|
15236
15241
|
return /* @__PURE__ */ c.jsx(
|
|
15237
15242
|
Kg.Provider,
|
|
@@ -15241,13 +15246,13 @@ function cA({ children: r }) {
|
|
|
15241
15246
|
setAsset: t,
|
|
15242
15247
|
type: n,
|
|
15243
15248
|
setType: i,
|
|
15244
|
-
timezone:
|
|
15249
|
+
timezone: lA(n, e, o)
|
|
15245
15250
|
},
|
|
15246
15251
|
children: r
|
|
15247
15252
|
}
|
|
15248
15253
|
);
|
|
15249
15254
|
}
|
|
15250
|
-
function
|
|
15255
|
+
function uA({ children: r }) {
|
|
15251
15256
|
const e = Me(/* @__PURE__ */ new Map()), t = Me(0), [n, i] = k([]), o = Q((s) => {
|
|
15252
15257
|
const a = e.current, l = (t.current += 1).toString();
|
|
15253
15258
|
return a.set(l, s), i([...a.values()]), () => {
|
|
@@ -15265,49 +15270,49 @@ function lA({ children: r }) {
|
|
|
15265
15270
|
}
|
|
15266
15271
|
);
|
|
15267
15272
|
}
|
|
15268
|
-
const
|
|
15269
|
-
|
|
15273
|
+
const hA = [
|
|
15274
|
+
UT,
|
|
15270
15275
|
Gg,
|
|
15271
|
-
|
|
15276
|
+
Nw,
|
|
15272
15277
|
Yf,
|
|
15273
|
-
|
|
15274
|
-
|
|
15278
|
+
LT,
|
|
15279
|
+
aT,
|
|
15275
15280
|
$g,
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
|
|
15279
|
-
|
|
15281
|
+
cT,
|
|
15282
|
+
PT,
|
|
15283
|
+
CT,
|
|
15284
|
+
kT,
|
|
15280
15285
|
Wg,
|
|
15281
|
-
|
|
15282
|
-
|
|
15283
|
-
|
|
15286
|
+
jT,
|
|
15287
|
+
Sv,
|
|
15288
|
+
pv,
|
|
15284
15289
|
Vg,
|
|
15290
|
+
dA,
|
|
15285
15291
|
cA,
|
|
15286
|
-
|
|
15287
|
-
lA
|
|
15292
|
+
uA
|
|
15288
15293
|
], Lu = () => {
|
|
15289
15294
|
const { user: r } = K(he), { initialFetchingComplete: e, loadGlobalResources: t } = K(ii);
|
|
15290
15295
|
return j(() => {
|
|
15291
15296
|
e || t();
|
|
15292
|
-
}, [t, e]), e ? /* @__PURE__ */ c.jsxs(
|
|
15293
|
-
/* @__PURE__ */ c.jsx(
|
|
15294
|
-
/* @__PURE__ */ c.jsxs(
|
|
15297
|
+
}, [t, e]), e ? /* @__PURE__ */ c.jsxs(DT, { providers: hA, children: [
|
|
15298
|
+
/* @__PURE__ */ c.jsx(dT, {}),
|
|
15299
|
+
/* @__PURE__ */ c.jsxs(Rv, { children: [
|
|
15295
15300
|
/* @__PURE__ */ c.jsx(tr, { linkToStartPage: !0 }),
|
|
15296
|
-
/* @__PURE__ */ c.jsx(
|
|
15301
|
+
/* @__PURE__ */ c.jsx(ov, {}),
|
|
15297
15302
|
/* @__PURE__ */ c.jsx("div", { className: "separator" }),
|
|
15298
|
-
/* @__PURE__ */ c.jsx(
|
|
15303
|
+
/* @__PURE__ */ c.jsx(Mv, {})
|
|
15299
15304
|
] }),
|
|
15300
15305
|
/* @__PURE__ */ c.jsx(wn.Consumer, { children: ({ contextInfo: n }) => {
|
|
15301
15306
|
const i = hn.filterRoutes(hn.getRoutes(), r, n);
|
|
15302
15307
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
15303
15308
|
/* @__PURE__ */ c.jsxs("div", { className: "di floor-2", children: [
|
|
15304
|
-
/* @__PURE__ */ c.jsx(
|
|
15309
|
+
/* @__PURE__ */ c.jsx(sw, {}),
|
|
15305
15310
|
" ",
|
|
15306
|
-
/* @__PURE__ */ c.jsx(
|
|
15307
|
-
/* @__PURE__ */ c.jsx(
|
|
15311
|
+
/* @__PURE__ */ c.jsx(Jw, { routes: i }),
|
|
15312
|
+
/* @__PURE__ */ c.jsx(Xw, { routes: i })
|
|
15308
15313
|
] }),
|
|
15309
15314
|
/* @__PURE__ */ c.jsx("div", { className: "di main", children: /* @__PURE__ */ c.jsxs("div", { className: "di main-box", children: [
|
|
15310
|
-
/* @__PURE__ */ c.jsx(
|
|
15315
|
+
/* @__PURE__ */ c.jsx(iT, {}),
|
|
15311
15316
|
" ",
|
|
15312
15317
|
/* @__PURE__ */ c.jsx("div", { className: "di main-box-cont", children: /* @__PURE__ */ c.jsx("div", { className: "content-box", children: /* @__PURE__ */ c.jsx(Ru, { routes: i }) }) })
|
|
15313
15318
|
] }) })
|
|
@@ -15324,11 +15329,11 @@ function Pr(r) {
|
|
|
15324
15329
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
15325
15330
|
}, Pr(r);
|
|
15326
15331
|
}
|
|
15327
|
-
function
|
|
15332
|
+
function gA(r) {
|
|
15328
15333
|
return r != null && r === r.window;
|
|
15329
15334
|
}
|
|
15330
|
-
function
|
|
15331
|
-
return
|
|
15335
|
+
function fA(r) {
|
|
15336
|
+
return gA(r) ? r : r.nodeType === 9 && r.defaultView;
|
|
15332
15337
|
}
|
|
15333
15338
|
function Hc(r) {
|
|
15334
15339
|
var e = {
|
|
@@ -15340,7 +15345,7 @@ function Hc(r) {
|
|
|
15340
15345
|
if (!n)
|
|
15341
15346
|
return e;
|
|
15342
15347
|
Pr(r.getBoundingClientRect) !== "undefined" && (e = r.getBoundingClientRect());
|
|
15343
|
-
var i =
|
|
15348
|
+
var i = fA(t), o = e.top + i.pageYOffset - n.clientTop, s = e.left + i.pageXOffset - n.clientLeft;
|
|
15344
15349
|
return {
|
|
15345
15350
|
top: o,
|
|
15346
15351
|
left: s,
|
|
@@ -15348,7 +15353,7 @@ function Hc(r) {
|
|
|
15348
15353
|
bottom: o + (e.bottom - e.top)
|
|
15349
15354
|
};
|
|
15350
15355
|
}
|
|
15351
|
-
function
|
|
15356
|
+
function pA(r) {
|
|
15352
15357
|
if (r.srcElement && r.srcElement.nodeType === 1 && (r.srcElement.nodeName === "BUTTON" || r.srcElement.nodeName === "INPUT"))
|
|
15353
15358
|
return r.srcElement.getAttribute && r.srcElement.getAttribute("ignorelocizeeditor") === "" ? null : r.srcElement;
|
|
15354
15359
|
var e;
|
|
@@ -15372,7 +15377,7 @@ function gA(r) {
|
|
|
15372
15377
|
}
|
|
15373
15378
|
return e;
|
|
15374
15379
|
}
|
|
15375
|
-
function
|
|
15380
|
+
function mA(r) {
|
|
15376
15381
|
var e = r.textContent || r.text && r.text.innerText || r.placeholder;
|
|
15377
15382
|
if (typeof e == "string")
|
|
15378
15383
|
return e.replace(/\n +/g, "").trim();
|
|
@@ -15380,7 +15385,7 @@ function fA(r) {
|
|
|
15380
15385
|
function wt(r, e) {
|
|
15381
15386
|
return r && r.getAttribute && r.getAttribute(e);
|
|
15382
15387
|
}
|
|
15383
|
-
function
|
|
15388
|
+
function yA(r) {
|
|
15384
15389
|
var e, t = function n(i) {
|
|
15385
15390
|
var o = wt(i, "i18next-options");
|
|
15386
15391
|
if (o || (o = wt(i, "data-i18next-options")), o || (o = wt(i, "i18n-options")), o || (o = wt(i, "data-i18n-options")), o) {
|
|
@@ -15395,17 +15400,17 @@ function pA(r) {
|
|
|
15395
15400
|
};
|
|
15396
15401
|
return t(r), e;
|
|
15397
15402
|
}
|
|
15398
|
-
function
|
|
15403
|
+
function CA(r) {
|
|
15399
15404
|
var e = function(n) {
|
|
15400
|
-
var i =
|
|
15405
|
+
var i = pA(n);
|
|
15401
15406
|
if (!i)
|
|
15402
15407
|
return {};
|
|
15403
15408
|
n.preventDefault(), n.stopPropagation();
|
|
15404
|
-
var o =
|
|
15409
|
+
var o = mA(i), s = i.getBoundingClientRect ? i : i.parentElement, a = s.getBoundingClientRect(), l = a.top, h = a.left, u = a.width, d = a.height, g = window.getComputedStyle(s, null), f = parseFloat(g.getPropertyValue("padding-top")), m = parseFloat(g.getPropertyValue("padding-bottom")), p = parseFloat(g.getPropertyValue("padding-right")), y = parseFloat(g.getPropertyValue("padding-left")), C = g.getPropertyValue("box-sizing");
|
|
15405
15410
|
r({
|
|
15406
15411
|
tagName: s.tagName,
|
|
15407
15412
|
text: o,
|
|
15408
|
-
ns:
|
|
15413
|
+
ns: yA(i),
|
|
15409
15414
|
box: {
|
|
15410
15415
|
top: l,
|
|
15411
15416
|
left: h,
|
|
@@ -15423,11 +15428,11 @@ try {
|
|
|
15423
15428
|
} catch {
|
|
15424
15429
|
}
|
|
15425
15430
|
var ht, Kn, to, Er, Do;
|
|
15426
|
-
function
|
|
15431
|
+
function vA(r) {
|
|
15427
15432
|
Do = r;
|
|
15428
15433
|
}
|
|
15429
15434
|
var jo = [];
|
|
15430
|
-
function
|
|
15435
|
+
function wA(r, e, t, n) {
|
|
15431
15436
|
var i = {
|
|
15432
15437
|
message: "added",
|
|
15433
15438
|
lng: r,
|
|
@@ -15437,10 +15442,10 @@ function CA(r, e, t, n) {
|
|
|
15437
15442
|
};
|
|
15438
15443
|
ht ? ht.postMessage(i, Kn) : jo.push(i);
|
|
15439
15444
|
}
|
|
15440
|
-
var
|
|
15445
|
+
var TA = {
|
|
15441
15446
|
type: "3rdParty",
|
|
15442
15447
|
init: function(e) {
|
|
15443
|
-
|
|
15448
|
+
vA(function(t) {
|
|
15444
15449
|
t.updated.forEach(function(n) {
|
|
15445
15450
|
var i = n.lng, o = n.ns, s = n.key, a = n.data;
|
|
15446
15451
|
e.addResource(i, o, s, a.value, {
|
|
@@ -15448,13 +15453,13 @@ var vA = {
|
|
|
15448
15453
|
}), e.emit("editorSaved");
|
|
15449
15454
|
});
|
|
15450
15455
|
}), Du && (e.options.missingKeyHandler = function(t, n, i, o, s, a) {
|
|
15451
|
-
s ||
|
|
15456
|
+
s || wA(t, n, i, o);
|
|
15452
15457
|
});
|
|
15453
15458
|
}
|
|
15454
15459
|
};
|
|
15455
15460
|
window.addEventListener("message", function(r) {
|
|
15456
15461
|
if (r.data.message === "isLocizeEnabled")
|
|
15457
|
-
ht || (ht = r.source, Kn = r.origin, to =
|
|
15462
|
+
ht || (ht = r.source, Kn = r.origin, to = CA(function(t) {
|
|
15458
15463
|
ht.postMessage({
|
|
15459
15464
|
message: "clickedElement",
|
|
15460
15465
|
payload: t
|
|
@@ -15478,7 +15483,7 @@ window.addEventListener("message", function(r) {
|
|
|
15478
15483
|
window.locizeSavedHandler && window.locizeSavedHandler(e), Do && Do(e);
|
|
15479
15484
|
}
|
|
15480
15485
|
});
|
|
15481
|
-
function
|
|
15486
|
+
function AA(r, e, t) {
|
|
15482
15487
|
var n;
|
|
15483
15488
|
return function() {
|
|
15484
15489
|
var i = this, o = arguments, s = function() {
|
|
@@ -15506,7 +15511,7 @@ function no(r, e, t) {
|
|
|
15506
15511
|
var n = Hs(r, e, Object), i = n.obj, o = n.k;
|
|
15507
15512
|
i[o] = t;
|
|
15508
15513
|
}
|
|
15509
|
-
function
|
|
15514
|
+
function IA(r, e, t, n) {
|
|
15510
15515
|
var i = Hs(r, e, Object), o = i.obj, s = i.k;
|
|
15511
15516
|
o[s] = o[s] || [], n && (o[s] = o[s].concat(t)), n || o[s].push(t);
|
|
15512
15517
|
}
|
|
@@ -15516,7 +15521,7 @@ function Fc(r, e) {
|
|
|
15516
15521
|
return n[i];
|
|
15517
15522
|
}
|
|
15518
15523
|
var zc = new RegExp("{{(.+?)}}", "g");
|
|
15519
|
-
function
|
|
15524
|
+
function SA(r) {
|
|
15520
15525
|
return r == null ? "" : "" + r;
|
|
15521
15526
|
}
|
|
15522
15527
|
function Xt(r, e, t) {
|
|
@@ -15525,7 +15530,7 @@ function Xt(r, e, t) {
|
|
|
15525
15530
|
return s.replace(/\$/g, "$$$$");
|
|
15526
15531
|
}
|
|
15527
15532
|
for (; n = zc.exec(r); )
|
|
15528
|
-
i = n[1].trim(), typeof i != "string" && (i =
|
|
15533
|
+
i = n[1].trim(), typeof i != "string" && (i = SA(i)), i || (i = ""), i = o(i), r = r.replace(n[0], e[i] || i), zc.lastIndex = 0;
|
|
15529
15534
|
return r;
|
|
15530
15535
|
}
|
|
15531
15536
|
var br = Object.assign || function(r) {
|
|
@@ -15535,7 +15540,7 @@ var br = Object.assign || function(r) {
|
|
|
15535
15540
|
Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]);
|
|
15536
15541
|
}
|
|
15537
15542
|
return r;
|
|
15538
|
-
},
|
|
15543
|
+
}, EA = function() {
|
|
15539
15544
|
function r(e, t) {
|
|
15540
15545
|
for (var n = 0; n < t.length; n++) {
|
|
15541
15546
|
var i = t[n];
|
|
@@ -15546,7 +15551,7 @@ var br = Object.assign || function(r) {
|
|
|
15546
15551
|
return t && r(e.prototype, t), n && r(e, n), e;
|
|
15547
15552
|
};
|
|
15548
15553
|
}();
|
|
15549
|
-
function
|
|
15554
|
+
function bA(r, e) {
|
|
15550
15555
|
if (!(r instanceof e))
|
|
15551
15556
|
throw new TypeError("Cannot call a class as a function");
|
|
15552
15557
|
}
|
|
@@ -15560,7 +15565,7 @@ function ro(r, e, t, n, i) {
|
|
|
15560
15565
|
window.console && console.log(s);
|
|
15561
15566
|
}
|
|
15562
15567
|
}
|
|
15563
|
-
function
|
|
15568
|
+
function kA() {
|
|
15564
15569
|
return {
|
|
15565
15570
|
loadPath: "https://api.locize.io/{{projectId}}/{{version}}/{{lng}}/{{ns}}",
|
|
15566
15571
|
privatePath: "https://api.locize.io/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}",
|
|
@@ -15582,19 +15587,19 @@ function EA() {
|
|
|
15582
15587
|
}
|
|
15583
15588
|
var ju = function() {
|
|
15584
15589
|
function r(e, t, n) {
|
|
15585
|
-
|
|
15590
|
+
bA(this, r), e && e.projectId ? this.init(null, e, {}, t) : this.init(null, t, {}, n), this.type = "backend";
|
|
15586
15591
|
}
|
|
15587
|
-
return
|
|
15592
|
+
return EA(r, [{
|
|
15588
15593
|
key: "init",
|
|
15589
15594
|
value: function(t) {
|
|
15590
15595
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = this, o = arguments[3];
|
|
15591
|
-
this.options = br({},
|
|
15596
|
+
this.options = br({}, kA(), this.options, n), this.options.pull && console.warn("deprecated: pull will be removed in future versions and should be replaced with locize private versions");
|
|
15592
15597
|
var s = window.location && window.location.hostname;
|
|
15593
15598
|
s ? this.isAddOrUpdateAllowed = this.options.allowedAddOrUpdateHosts.indexOf(s) > -1 : this.isAddOrUpdateAllowed = !0, typeof o == "function" && this.getOptions(function(a, l) {
|
|
15594
15599
|
if (a)
|
|
15595
15600
|
return o(a);
|
|
15596
15601
|
i.options.referenceLng = n.referenceLng || l.referenceLng || i.options.referenceLng, o(null, l);
|
|
15597
|
-
}), this.queuedWrites = {}, this.debouncedProcess =
|
|
15602
|
+
}), this.queuedWrites = {}, this.debouncedProcess = AA(this.process, 1e4);
|
|
15598
15603
|
}
|
|
15599
15604
|
}, {
|
|
15600
15605
|
key: "getLanguages",
|
|
@@ -15729,7 +15734,7 @@ var ju = function() {
|
|
|
15729
15734
|
}, {
|
|
15730
15735
|
key: "queue",
|
|
15731
15736
|
value: function(t, n, i, o, s, a) {
|
|
15732
|
-
|
|
15737
|
+
IA(this.queuedWrites, [t, n], { key: i, fallbackValue: o || "", callback: s, options: a }), this.debouncedProcess();
|
|
15733
15738
|
}
|
|
15734
15739
|
}]), r;
|
|
15735
15740
|
}();
|
|
@@ -15738,12 +15743,12 @@ var Sn = {};
|
|
|
15738
15743
|
Object.defineProperty(Sn, "__esModule", {
|
|
15739
15744
|
value: !0
|
|
15740
15745
|
});
|
|
15741
|
-
Sn.debounce =
|
|
15742
|
-
Sn.setPath =
|
|
15743
|
-
Sn.pushPath =
|
|
15744
|
-
Sn.getPath =
|
|
15745
|
-
var
|
|
15746
|
-
function
|
|
15746
|
+
Sn.debounce = RA;
|
|
15747
|
+
Sn.setPath = xA;
|
|
15748
|
+
Sn.pushPath = _A;
|
|
15749
|
+
Sn.getPath = NA;
|
|
15750
|
+
var MA = Sn.interpolate = OA;
|
|
15751
|
+
function RA(r, e, t) {
|
|
15747
15752
|
var n;
|
|
15748
15753
|
return function() {
|
|
15749
15754
|
var i = this, o = arguments, s = function() {
|
|
@@ -15767,33 +15772,33 @@ function Fs(r, e, t) {
|
|
|
15767
15772
|
k: n(i.shift())
|
|
15768
15773
|
} : {};
|
|
15769
15774
|
}
|
|
15770
|
-
function
|
|
15775
|
+
function xA(r, e, t) {
|
|
15771
15776
|
var n = Fs(r, e, Object), i = n.obj, o = n.k;
|
|
15772
15777
|
i[o] = t;
|
|
15773
15778
|
}
|
|
15774
|
-
function
|
|
15779
|
+
function _A(r, e, t, n) {
|
|
15775
15780
|
var i = Fs(r, e, Object), o = i.obj, s = i.k;
|
|
15776
15781
|
o[s] = o[s] || [], n && (o[s] = o[s].concat(t)), n || o[s].push(t);
|
|
15777
15782
|
}
|
|
15778
|
-
function
|
|
15783
|
+
function NA(r, e) {
|
|
15779
15784
|
var t = Fs(r, e), n = t.obj, i = t.k;
|
|
15780
15785
|
if (n)
|
|
15781
15786
|
return n[i];
|
|
15782
15787
|
}
|
|
15783
15788
|
var Bc = new RegExp("{{(.+?)}}", "g");
|
|
15784
|
-
function
|
|
15789
|
+
function PA(r) {
|
|
15785
15790
|
return r == null ? "" : "" + r;
|
|
15786
15791
|
}
|
|
15787
|
-
function
|
|
15792
|
+
function OA(r, e, t) {
|
|
15788
15793
|
var n = void 0, i = void 0;
|
|
15789
15794
|
function o(s) {
|
|
15790
15795
|
return s.replace(/\$/g, "$$$$");
|
|
15791
15796
|
}
|
|
15792
15797
|
for (; n = Bc.exec(r); )
|
|
15793
|
-
i = n[1].trim(), typeof i != "string" && (i =
|
|
15798
|
+
i = n[1].trim(), typeof i != "string" && (i = PA(i)), i || (i = ""), i = o(i), r = r.replace(n[0], e[i] || i), Bc.lastIndex = 0;
|
|
15794
15799
|
return r;
|
|
15795
15800
|
}
|
|
15796
|
-
function
|
|
15801
|
+
function LA(r, e) {
|
|
15797
15802
|
return Ae.mergeWith(r, e, (t, n) => {
|
|
15798
15803
|
if (n === "")
|
|
15799
15804
|
return t;
|
|
@@ -15837,7 +15842,7 @@ class It extends ju {
|
|
|
15837
15842
|
It.requestData(n, this.options.tenantApiKey),
|
|
15838
15843
|
// @ts-ignore
|
|
15839
15844
|
It.requestData(i, this.options.mainApiKey)
|
|
15840
|
-
]).then(([o, s]) =>
|
|
15845
|
+
]).then(([o, s]) => LA(s, o));
|
|
15841
15846
|
}
|
|
15842
15847
|
readMainLocizeProject(e, t) {
|
|
15843
15848
|
const n = this.getReadUrl(e, t, this.options.mainProjectId, this.options.mainVersion);
|
|
@@ -15865,7 +15870,7 @@ class It extends ju {
|
|
|
15865
15870
|
});
|
|
15866
15871
|
}
|
|
15867
15872
|
buildUrl(e, t) {
|
|
15868
|
-
return
|
|
15873
|
+
return MA(e, t);
|
|
15869
15874
|
}
|
|
15870
15875
|
static requestData(e, t) {
|
|
15871
15876
|
return Jc.get(e, {
|
|
@@ -15875,23 +15880,23 @@ class It extends ju {
|
|
|
15875
15880
|
}).then((n) => n.data);
|
|
15876
15881
|
}
|
|
15877
15882
|
}
|
|
15878
|
-
function
|
|
15883
|
+
function DA(r) {
|
|
15879
15884
|
return (e) => {
|
|
15880
15885
|
const { user: t } = K(he);
|
|
15881
15886
|
return /* @__PURE__ */ c.jsx(r, { ...e, locale: t.locale });
|
|
15882
15887
|
};
|
|
15883
15888
|
}
|
|
15884
|
-
function
|
|
15889
|
+
function jA(r) {
|
|
15885
15890
|
return r ? typeof r == "function" ? new r() : r : null;
|
|
15886
15891
|
}
|
|
15887
|
-
function
|
|
15892
|
+
function UA() {
|
|
15888
15893
|
const r = [];
|
|
15889
15894
|
return {
|
|
15890
15895
|
type: "backend",
|
|
15891
15896
|
init(e, t, n) {
|
|
15892
15897
|
t.backends && t.backends.forEach((i, o) => {
|
|
15893
15898
|
var a;
|
|
15894
|
-
const s =
|
|
15899
|
+
const s = jA(i);
|
|
15895
15900
|
s != null && s.read && (r.push(s), s.init(e, ((a = t.backendOptions) == null ? void 0 : a[o]) || {}, n));
|
|
15896
15901
|
});
|
|
15897
15902
|
},
|
|
@@ -15908,7 +15913,7 @@ function DA() {
|
|
|
15908
15913
|
}
|
|
15909
15914
|
};
|
|
15910
15915
|
}
|
|
15911
|
-
function
|
|
15916
|
+
function HA() {
|
|
15912
15917
|
const r = G.getMainLocizeProject(), e = G.getTenantLocizeProject(), t = {
|
|
15913
15918
|
// Tenant-specific project on Locize
|
|
15914
15919
|
tenantProjectId: e ? e.projectId : null,
|
|
@@ -15948,13 +15953,13 @@ function jA() {
|
|
|
15948
15953
|
}
|
|
15949
15954
|
};
|
|
15950
15955
|
return new Promise((g) => {
|
|
15951
|
-
gt.use(
|
|
15956
|
+
gt.use(UA()).init(d, () => {
|
|
15952
15957
|
Aa(gt), g();
|
|
15953
15958
|
});
|
|
15954
15959
|
});
|
|
15955
15960
|
} else
|
|
15956
15961
|
return new Promise((h) => {
|
|
15957
|
-
gt.use(It).use(
|
|
15962
|
+
gt.use(It).use(TA).init({ ...l, backend: t }, () => {
|
|
15958
15963
|
Aa(gt), h();
|
|
15959
15964
|
});
|
|
15960
15965
|
});
|
|
@@ -15964,7 +15969,7 @@ const Kc = (r) => {
|
|
|
15964
15969
|
let n;
|
|
15965
15970
|
return t && e.lng ? n = e.lng : n = r, window.nguiCiModeActive = t, window.nguiI18nLanguage = n, n;
|
|
15966
15971
|
};
|
|
15967
|
-
class
|
|
15972
|
+
class FA extends J.Component {
|
|
15968
15973
|
constructor() {
|
|
15969
15974
|
super(...arguments), this.state = {
|
|
15970
15975
|
i18nextInitialized: !1,
|
|
@@ -15974,7 +15979,7 @@ class UA extends J.Component {
|
|
|
15974
15979
|
languageLoading: !1
|
|
15975
15980
|
});
|
|
15976
15981
|
}, 500), this.initializeI18next = async () => {
|
|
15977
|
-
await
|
|
15982
|
+
await HA(), gt.on(
|
|
15978
15983
|
"languageChanged",
|
|
15979
15984
|
() => this.setState(
|
|
15980
15985
|
{
|
|
@@ -16006,7 +16011,7 @@ class UA extends J.Component {
|
|
|
16006
16011
|
return /* @__PURE__ */ c.jsx(J.Suspense, { fallback: /* @__PURE__ */ c.jsx(An, {}), children: /* @__PURE__ */ c.jsx(Zn, { show: n, className: "di i18n-container", children: e && this.props.children }) });
|
|
16007
16012
|
}
|
|
16008
16013
|
}
|
|
16009
|
-
const Uu =
|
|
16014
|
+
const Uu = DA(FA), zA = () => ({
|
|
16010
16015
|
name: "",
|
|
16011
16016
|
clientSecret: "",
|
|
16012
16017
|
revocationUri: "",
|
|
@@ -16021,7 +16026,7 @@ const Uu = OA(UA), HA = () => ({
|
|
|
16021
16026
|
jwksUri: ""
|
|
16022
16027
|
}), Hu = ({ children: r }) => {
|
|
16023
16028
|
const [e, t] = k(!1), [n, i] = k(null), o = (a) => {
|
|
16024
|
-
t(!0), i(a ||
|
|
16029
|
+
t(!0), i(a || zA());
|
|
16025
16030
|
}, s = () => {
|
|
16026
16031
|
t(!1), i(null);
|
|
16027
16032
|
};
|
|
@@ -16077,7 +16082,7 @@ const Uu = OA(UA), HA = () => ({
|
|
|
16077
16082
|
}
|
|
16078
16083
|
);
|
|
16079
16084
|
};
|
|
16080
|
-
function
|
|
16085
|
+
function BA() {
|
|
16081
16086
|
return xf().then((r) => (r.forEach((e) => {
|
|
16082
16087
|
e.entityTargets.forEach((t) => {
|
|
16083
16088
|
switch (t) {
|
|
@@ -16103,14 +16108,14 @@ function kr(r, { key: e, type: t }) {
|
|
|
16103
16108
|
type: t
|
|
16104
16109
|
});
|
|
16105
16110
|
}
|
|
16106
|
-
async function
|
|
16111
|
+
async function KA() {
|
|
16107
16112
|
return Ft(["READ_ASSET_GROUP_DEFINITION"]) ? await _f() : [];
|
|
16108
16113
|
}
|
|
16109
|
-
async function
|
|
16114
|
+
async function GA() {
|
|
16110
16115
|
return Ft(["READ_LOCALE"]) ? await Nf() : [];
|
|
16111
16116
|
}
|
|
16112
16117
|
async function Gc() {
|
|
16113
|
-
return Ft(["READ_PROPERTY"]) ? await
|
|
16118
|
+
return Ft(["READ_PROPERTY"]) ? await BA() : [];
|
|
16114
16119
|
}
|
|
16115
16120
|
const zu = ({ children: r }) => {
|
|
16116
16121
|
const [e, t] = k(!1), [n, i] = k([]), [o, s] = k([]), [a, l] = k([]), h = Q(
|
|
@@ -16118,7 +16123,7 @@ const zu = ({ children: r }) => {
|
|
|
16118
16123
|
[]
|
|
16119
16124
|
), u = Q(async () => {
|
|
16120
16125
|
try {
|
|
16121
|
-
const f = await
|
|
16126
|
+
const f = await KA();
|
|
16122
16127
|
return s(f), ba(f), ka(null), f;
|
|
16123
16128
|
} catch (f) {
|
|
16124
16129
|
return console.error("failed to fetch asset group definitions", f), [];
|
|
@@ -16126,7 +16131,7 @@ const zu = ({ children: r }) => {
|
|
|
16126
16131
|
}, []), d = Q(() => {
|
|
16127
16132
|
Promise.all([
|
|
16128
16133
|
Gc(),
|
|
16129
|
-
|
|
16134
|
+
GA().catch((m) => (console.error("failed to fetch locales", m), []))
|
|
16130
16135
|
]).then((m) => {
|
|
16131
16136
|
const p = m[0], y = m[1];
|
|
16132
16137
|
i(p), l(y), t(!0);
|
|
@@ -16221,14 +16226,14 @@ const Ku = /* @__PURE__ */ c.jsxs("svg", { className: "whats-new-svg", xmlns: "h
|
|
|
16221
16226
|
}
|
|
16222
16227
|
) })
|
|
16223
16228
|
] })
|
|
16224
|
-
] }),
|
|
16229
|
+
] }), $A = 6, WA = 4, Mr = "NOT_FOUND";
|
|
16225
16230
|
class Gu extends J.PureComponent {
|
|
16226
16231
|
constructor() {
|
|
16227
16232
|
super(...arguments), this.state = {
|
|
16228
16233
|
show: !1,
|
|
16229
16234
|
viewedVersions: [],
|
|
16230
16235
|
isSubscribed: !0,
|
|
16231
|
-
currentWhatsNewVersion: Wo().substring(0,
|
|
16236
|
+
currentWhatsNewVersion: Wo().substring(0, $A).replace(/\./g, "_")
|
|
16232
16237
|
}, this.checkIfShowModal = async () => {
|
|
16233
16238
|
const t = this.context.user, { t: n } = this.props, { currentWhatsNewVersion: i } = this.state;
|
|
16234
16239
|
let o = !0;
|
|
@@ -16243,7 +16248,7 @@ class Gu extends J.PureComponent {
|
|
|
16243
16248
|
}
|
|
16244
16249
|
let s = n(`whatsNew.body.${i}`, Mr) !== Mr, a = i;
|
|
16245
16250
|
if (!s) {
|
|
16246
|
-
const h = `${i.substring(0,
|
|
16251
|
+
const h = `${i.substring(0, WA)}_*`, u = `whatsNew.body.${h}`;
|
|
16247
16252
|
s = n(u, Mr) !== Mr, s && (a = h);
|
|
16248
16253
|
}
|
|
16249
16254
|
const l = G.getDisplayWelcomeScreen() && t && !!t.properties._showWelcomeModal;
|
|
@@ -16332,7 +16337,7 @@ class Gu extends J.PureComponent {
|
|
|
16332
16337
|
}
|
|
16333
16338
|
Gu.contextType = he;
|
|
16334
16339
|
const $u = $o()(Gu);
|
|
16335
|
-
function
|
|
16340
|
+
function VA() {
|
|
16336
16341
|
const { principal: r, user: e, paginationSettings: t, setAuthenticatedUser: n, resetAuthenticatedUser: i } = K(he), { instance: o } = it(), s = cl(), a = tf(), [l, h] = k(a.get("downloadedEula") === "true"), u = ot();
|
|
16337
16342
|
async function d(p, y) {
|
|
16338
16343
|
Qn() ? await Fo(p, o) : await Ho(p, y);
|
|
@@ -16391,7 +16396,7 @@ function io() {
|
|
|
16391
16396
|
height: t
|
|
16392
16397
|
};
|
|
16393
16398
|
}
|
|
16394
|
-
function
|
|
16399
|
+
function YA(r, e, t) {
|
|
16395
16400
|
return Math.min(
|
|
16396
16401
|
0.8 * (document.body ? document.body.clientHeight : 800) - 130,
|
|
16397
16402
|
Math.max(450, e + r + t)
|
|
@@ -16401,7 +16406,7 @@ function en(r) {
|
|
|
16401
16406
|
return r.state !== "TERMS_ACCEPTANCE_PENDING";
|
|
16402
16407
|
}
|
|
16403
16408
|
function Wu() {
|
|
16404
|
-
const { user: r } = K(he), { userProperties: e } = ul(), { t } = qe(), [n, i] = k(!1), { accept: o, decline: s, download: a, downloaded: l } =
|
|
16409
|
+
const { user: r } = K(he), { userProperties: e } = ul(), { t } = qe(), [n, i] = k(!1), { accept: o, decline: s, download: a, downloaded: l } = VA(), [h, u] = k(!1), [d, g] = k(!1), [f, m] = k(!1), p = e.some((z) => z.key === "_showWelcomeModal"), y = G.getDisplayWelcomeScreen();
|
|
16405
16410
|
j(() => {
|
|
16406
16411
|
gl((z, Ie) => {
|
|
16407
16412
|
Ie || i(!en(z) || !!z.properties._showWelcomeModal && y);
|
|
@@ -16409,7 +16414,7 @@ function Wu() {
|
|
|
16409
16414
|
}, [y, r]), j(() => {
|
|
16410
16415
|
r && !en(r) && i(!0);
|
|
16411
16416
|
}, [r]);
|
|
16412
|
-
const { ref: C, height: w } = io(), { ref: A, height: I } = io(), { ref: S, height: E } = io(), L =
|
|
16417
|
+
const { ref: C, height: w } = io(), { ref: A, height: I } = io(), { ref: S, height: E } = io(), L = YA(I, w, E);
|
|
16413
16418
|
async function $() {
|
|
16414
16419
|
m(!0);
|
|
16415
16420
|
try {
|
|
@@ -16516,12 +16521,12 @@ function Wu() {
|
|
|
16516
16521
|
}
|
|
16517
16522
|
) : null;
|
|
16518
16523
|
}
|
|
16519
|
-
const
|
|
16524
|
+
const qA = () => /* @__PURE__ */ c.jsx("div", { className: "after-signup", children: /* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsxs(R, { i18nKey: "afterSignup.successMessage", children: [
|
|
16520
16525
|
"You have successfully signed up. Please",
|
|
16521
16526
|
" ",
|
|
16522
16527
|
/* @__PURE__ */ c.jsx(Re, { to: "/", style: { color: G.getPrimaryColorAvoidingGray() }, children: "sign in" })
|
|
16523
16528
|
] }) }) });
|
|
16524
|
-
function
|
|
16529
|
+
function QA({ errorMessage: r, afterSigninText: e, onSignin: t }) {
|
|
16525
16530
|
return /* @__PURE__ */ c.jsxs("div", { className: "signin-message", children: [
|
|
16526
16531
|
/* @__PURE__ */ c.jsx("p", { children: r }),
|
|
16527
16532
|
/* @__PURE__ */ c.jsxs("p", { children: [
|
|
@@ -16533,7 +16538,7 @@ function YA({ errorMessage: r, afterSigninText: e, onSignin: t }) {
|
|
|
16533
16538
|
] })
|
|
16534
16539
|
] });
|
|
16535
16540
|
}
|
|
16536
|
-
function
|
|
16541
|
+
function JA(r) {
|
|
16537
16542
|
switch (r == null ? void 0 : r.errorCode) {
|
|
16538
16543
|
case "invalid_grant":
|
|
16539
16544
|
return /* @__PURE__ */ c.jsx(R, { i18nKey: "msal.errorComponent.authenticationError.message", children: "Your authentication session has expired." });
|
|
@@ -16545,7 +16550,7 @@ function qA(r) {
|
|
|
16545
16550
|
return /* @__PURE__ */ c.jsx(R, { i18nKey: "msal.errorComponent.genericError.message", children: "An Error occurred authenticating via Msal." });
|
|
16546
16551
|
}
|
|
16547
16552
|
}
|
|
16548
|
-
function
|
|
16553
|
+
function ZA(r) {
|
|
16549
16554
|
switch (r == null ? void 0 : r.errorCode) {
|
|
16550
16555
|
case "invalid_grant":
|
|
16551
16556
|
return /* @__PURE__ */ c.jsx(R, { i18nKey: "msal.errorComponent.authenticationError.afterSigninText", children: "again" });
|
|
@@ -16555,22 +16560,22 @@ function QA(r) {
|
|
|
16555
16560
|
return "";
|
|
16556
16561
|
}
|
|
16557
16562
|
}
|
|
16558
|
-
function
|
|
16563
|
+
function XA({ error: r }) {
|
|
16559
16564
|
const { instance: e } = it(), t = () => {
|
|
16560
16565
|
e.loginRedirect();
|
|
16561
16566
|
};
|
|
16562
16567
|
return j(() => {
|
|
16563
16568
|
r && r.errorCode === "access_denied" && e.logoutRedirect();
|
|
16564
16569
|
}, [e, r]), (r == null ? void 0 : r.errorCode) === "access_denied" ? null : /* @__PURE__ */ c.jsx(
|
|
16565
|
-
|
|
16570
|
+
QA,
|
|
16566
16571
|
{
|
|
16567
|
-
errorMessage:
|
|
16572
|
+
errorMessage: JA(r),
|
|
16568
16573
|
onSignin: t,
|
|
16569
|
-
afterSigninText:
|
|
16574
|
+
afterSigninText: ZA(r)
|
|
16570
16575
|
}
|
|
16571
16576
|
);
|
|
16572
16577
|
}
|
|
16573
|
-
const
|
|
16578
|
+
const eI = () => /* @__PURE__ */ c.jsxs("div", { className: "afterregistermfadevice", children: [
|
|
16574
16579
|
/* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(R, { i18nKey: "afterRegister2FADevice.successMessage", children: "You have successfully registered your MFA device." }) }),
|
|
16575
16580
|
/* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(R, { i18nKey: "afterRegister2FADevice.hint", children: "You can now close this window and continue using the application." }) })
|
|
16576
16581
|
] });
|
|
@@ -16590,10 +16595,10 @@ fl.setNotificationCallbacks({
|
|
|
16590
16595
|
Tl("TOKEN_REFRESHER");
|
|
16591
16596
|
}
|
|
16592
16597
|
});
|
|
16593
|
-
function
|
|
16598
|
+
function tI() {
|
|
16594
16599
|
return /* @__PURE__ */ c.jsx(An, { center: !0 });
|
|
16595
16600
|
}
|
|
16596
|
-
function
|
|
16601
|
+
function nI({ msalInstance: r, clientId: e }) {
|
|
16597
16602
|
const [t, n] = k(null);
|
|
16598
16603
|
function i(s, a) {
|
|
16599
16604
|
n({
|
|
@@ -16605,8 +16610,8 @@ function eI({ msalInstance: r, clientId: e }) {
|
|
|
16605
16610
|
t && t.callback(s), n(null);
|
|
16606
16611
|
}
|
|
16607
16612
|
return /* @__PURE__ */ c.jsx(Il, { getUserConfirmation: i, children: /* @__PURE__ */ c.jsxs(Hr, { children: [
|
|
16608
|
-
/* @__PURE__ */ c.jsx(Ne, { path: "/aftersignup", component:
|
|
16609
|
-
/* @__PURE__ */ c.jsx(Ne, { path: "/afterregistermfadevice", component:
|
|
16613
|
+
/* @__PURE__ */ c.jsx(Ne, { path: "/aftersignup", component: qA }),
|
|
16614
|
+
/* @__PURE__ */ c.jsx(Ne, { path: "/afterregistermfadevice", component: eI }),
|
|
16610
16615
|
/* @__PURE__ */ c.jsx(Ne, { path: "/legals", component: du }),
|
|
16611
16616
|
/* @__PURE__ */ c.jsx(
|
|
16612
16617
|
Ne,
|
|
@@ -16616,10 +16621,10 @@ function eI({ msalInstance: r, clientId: e }) {
|
|
|
16616
16621
|
{
|
|
16617
16622
|
interactionType: N.Redirect,
|
|
16618
16623
|
authenticationRequest: of(e, void 0),
|
|
16619
|
-
errorComponent:
|
|
16620
|
-
loadingComponent:
|
|
16624
|
+
errorComponent: XA,
|
|
16625
|
+
loadingComponent: tI,
|
|
16621
16626
|
children: /* @__PURE__ */ c.jsx(Lt, { children: /* @__PURE__ */ c.jsx(Fu, { children: /* @__PURE__ */ c.jsx(zu, { children: /* @__PURE__ */ c.jsx(Uu, { children: /* @__PURE__ */ c.jsxs(Hu, { children: [
|
|
16622
|
-
/* @__PURE__ */ c.jsx(Hr, { children: /* @__PURE__ */ c.jsx(
|
|
16627
|
+
/* @__PURE__ */ c.jsx(Hr, { children: /* @__PURE__ */ c.jsx(KC, { component: Lu }) }),
|
|
16623
16628
|
/* @__PURE__ */ c.jsx(Wu, {}),
|
|
16624
16629
|
/* @__PURE__ */ c.jsx(Al, {}),
|
|
16625
16630
|
/* @__PURE__ */ c.jsx(Sl, {}),
|
|
@@ -16639,11 +16644,11 @@ function eI({ msalInstance: r, clientId: e }) {
|
|
|
16639
16644
|
)
|
|
16640
16645
|
] }) });
|
|
16641
16646
|
}
|
|
16642
|
-
const
|
|
16647
|
+
const rI = (r, e) => r.email && r.email.length && !sf(r.email) ? e("forgotPassword.validation.email.format", {
|
|
16643
16648
|
defaultValue: "Please enter a valid email"
|
|
16644
|
-
}) : "",
|
|
16649
|
+
}) : "", iI = ({ onSubmit: r, showFeedback: e, feedbackType: t, feedbackMessage: n }) => {
|
|
16645
16650
|
const { t: i } = qe(), [o, s] = k(""), [a, l] = k(""), [h, u] = k(!1), d = o !== "" && !a, g = (m) => {
|
|
16646
|
-
s(m), l(
|
|
16651
|
+
s(m), l(rI(m, i));
|
|
16647
16652
|
}, f = () => {
|
|
16648
16653
|
u(!0);
|
|
16649
16654
|
try {
|
|
@@ -16690,7 +16695,7 @@ const tI = (r, e) => r.email && r.email.length && !sf(r.email) ? e("forgotPasswo
|
|
|
16690
16695
|
/* @__PURE__ */ c.jsx(wi, {})
|
|
16691
16696
|
] });
|
|
16692
16697
|
};
|
|
16693
|
-
const
|
|
16698
|
+
const oI = () => {
|
|
16694
16699
|
const { t: r } = qe(), e = ot(), [t, n] = k(!1), [i, o] = k(""), [s, a] = k(""), l = (h) => Uf(h).then(() => {
|
|
16695
16700
|
setTimeout(() => e.push("/signin"), 5 * 1e3), n(!0), o("success"), a(
|
|
16696
16701
|
r("forgotPassword.info", {
|
|
@@ -16705,7 +16710,7 @@ const rI = () => {
|
|
|
16705
16710
|
);
|
|
16706
16711
|
});
|
|
16707
16712
|
return /* @__PURE__ */ c.jsx(
|
|
16708
|
-
|
|
16713
|
+
iI,
|
|
16709
16714
|
{
|
|
16710
16715
|
showFeedback: t,
|
|
16711
16716
|
feedbackType: i,
|
|
@@ -16714,7 +16719,7 @@ const rI = () => {
|
|
|
16714
16719
|
}
|
|
16715
16720
|
);
|
|
16716
16721
|
};
|
|
16717
|
-
class
|
|
16722
|
+
class sI extends J.Component {
|
|
16718
16723
|
render() {
|
|
16719
16724
|
const { isLoading: e, success: t, tokenExpired: n } = this.props;
|
|
16720
16725
|
return /* @__PURE__ */ c.jsxs("div", { className: "di login", children: [
|
|
@@ -16730,7 +16735,7 @@ class iI extends J.Component {
|
|
|
16730
16735
|
] });
|
|
16731
16736
|
}
|
|
16732
16737
|
}
|
|
16733
|
-
class
|
|
16738
|
+
class aI extends J.Component {
|
|
16734
16739
|
constructor() {
|
|
16735
16740
|
super(...arguments), this.state = {
|
|
16736
16741
|
isLoading: !0,
|
|
@@ -16765,13 +16770,13 @@ class oI extends J.Component {
|
|
|
16765
16770
|
}
|
|
16766
16771
|
render() {
|
|
16767
16772
|
const { isLoading: e, success: t, tokenExpired: n } = this.state;
|
|
16768
|
-
return /* @__PURE__ */ c.jsx(
|
|
16773
|
+
return /* @__PURE__ */ c.jsx(sI, { isLoading: e, success: t, tokenExpired: n });
|
|
16769
16774
|
}
|
|
16770
16775
|
}
|
|
16771
|
-
const
|
|
16776
|
+
const cI = Qo(aI), lI = () => /* @__PURE__ */ c.jsxs("div", { className: "di imprint", children: [
|
|
16772
16777
|
/* @__PURE__ */ c.jsx("span", { className: "link", children: /* @__PURE__ */ c.jsx(Re, { to: "/legals/imprint", children: /* @__PURE__ */ c.jsx(R, { i18nKey: "legal.link.imprint", children: "Imprint / legal" }) }) }),
|
|
16773
16778
|
/* @__PURE__ */ c.jsx("span", { children: /* @__PURE__ */ c.jsx(Re, { to: "/legals/privacy", children: /* @__PURE__ */ c.jsx(R, { i18nKey: "legal.link.privacy", children: "Privacy statement" }) }) })
|
|
16774
|
-
] }),
|
|
16779
|
+
] }), dI = ({ authorizationServers: r }) => r && r.length ? /* @__PURE__ */ c.jsxs("div", { className: "sso", children: [
|
|
16775
16780
|
/* @__PURE__ */ c.jsx("div", { className: "or", children: /* @__PURE__ */ c.jsx(R, { i18nKey: "signin.signinForm.or", children: "or" }) }),
|
|
16776
16781
|
r.map((e) => /* @__PURE__ */ c.jsxs("a", { href: e.authorizationUri, className: "sso-link", children: [
|
|
16777
16782
|
/* @__PURE__ */ c.jsx("span", { className: `sso-icon ${Ae.kebabCase(e.displayName || e.name)}` }),
|
|
@@ -16790,7 +16795,7 @@ const sI = Qo(oI), aI = () => /* @__PURE__ */ c.jsxs("div", { className: "di imp
|
|
|
16790
16795
|
] })
|
|
16791
16796
|
] }, e.name))
|
|
16792
16797
|
] }) : null;
|
|
16793
|
-
function
|
|
16798
|
+
function uI({ onDone: r, seconds: e }) {
|
|
16794
16799
|
const [t, n] = k(e);
|
|
16795
16800
|
return j(() => {
|
|
16796
16801
|
const i = Date.now(), o = setInterval(() => {
|
|
@@ -16806,7 +16811,7 @@ function lI({ onDone: r, seconds: e }) {
|
|
|
16806
16811
|
" seconds."
|
|
16807
16812
|
] });
|
|
16808
16813
|
}
|
|
16809
|
-
function
|
|
16814
|
+
function hI({ children: r }) {
|
|
16810
16815
|
const [e, t] = k(fr().aboveForm), [n, i] = k(fr().belowForm), [o, s] = k(
|
|
16811
16816
|
fr().belowLoginButton
|
|
16812
16817
|
), [a, l] = k(
|
|
@@ -16857,7 +16862,7 @@ const $c = {
|
|
|
16857
16862
|
defaultValue: "The platform is currently not available. Please try again in a few minutes."
|
|
16858
16863
|
}
|
|
16859
16864
|
};
|
|
16860
|
-
function
|
|
16865
|
+
function gI({ onSubmit: r, authenticating: e, authenticationFailed: t, authenticationErrorResponseCode: n }) {
|
|
16861
16866
|
const [i, o] = k([]), [s, a] = k(!1), { t: l } = qe(), h = Me(null), u = Me(null), d = e ? "progress" : "auto";
|
|
16862
16867
|
j(() => {
|
|
16863
16868
|
Ff().then(({ authorizationServers: w }) => {
|
|
@@ -16889,7 +16894,7 @@ function uI({ onSubmit: r, authenticating: e, authenticationFailed: t, authentic
|
|
|
16889
16894
|
}) : l("signin.signinForm.email", {
|
|
16890
16895
|
defaultValue: "E-mail"
|
|
16891
16896
|
});
|
|
16892
|
-
return /* @__PURE__ */ c.jsx(
|
|
16897
|
+
return /* @__PURE__ */ c.jsx(hI, { children: /* @__PURE__ */ c.jsx(pl.Consumer, { children: (w) => /* @__PURE__ */ c.jsxs("div", { className: "di login", style: { cursor: d }, children: [
|
|
16893
16898
|
/* @__PURE__ */ c.jsx("div", { className: "wrap", children: /* @__PURE__ */ c.jsxs("div", { className: "hold", "data-testid": "form-wrapper", children: [
|
|
16894
16899
|
/* @__PURE__ */ c.jsx(tr, { centered: !0 }),
|
|
16895
16900
|
w.aboveForm,
|
|
@@ -16953,18 +16958,18 @@ function uI({ onSubmit: r, authenticating: e, authenticationFailed: t, authentic
|
|
|
16953
16958
|
),
|
|
16954
16959
|
/* @__PURE__ */ c.jsx("div", { className: "msg", children: t && /* @__PURE__ */ c.jsxs("div", { className: "error", children: [
|
|
16955
16960
|
f(),
|
|
16956
|
-
m && /* @__PURE__ */ c.jsx(
|
|
16961
|
+
m && /* @__PURE__ */ c.jsx(uI, { onDone: y, seconds: 60 })
|
|
16957
16962
|
] }) }),
|
|
16958
16963
|
/* @__PURE__ */ c.jsx("div", { className: "forgot", children: /* @__PURE__ */ c.jsx(Re, { to: "/forgotpassword", children: /* @__PURE__ */ c.jsx(R, { i18nKey: "signin.signinForm.forgotPassword", children: "Forgot Password?" }) }) }),
|
|
16959
|
-
s && /* @__PURE__ */ c.jsx(
|
|
16960
|
-
/* @__PURE__ */ c.jsx(
|
|
16964
|
+
s && /* @__PURE__ */ c.jsx(lI, {}),
|
|
16965
|
+
/* @__PURE__ */ c.jsx(dI, { authorizationServers: i }),
|
|
16961
16966
|
w.belowForm
|
|
16962
16967
|
] }) }),
|
|
16963
16968
|
/* @__PURE__ */ c.jsx(wi, {})
|
|
16964
16969
|
] }) }) });
|
|
16965
16970
|
}
|
|
16966
16971
|
const Vu = (r) => /^(?:[a-z0-9]+:)?\/\/.*/i.test(r);
|
|
16967
|
-
function
|
|
16972
|
+
function fI() {
|
|
16968
16973
|
try {
|
|
16969
16974
|
const e = new URLSearchParams(window.location.search).get("oauth_callback");
|
|
16970
16975
|
e && !Vu(e) && localStorage.setItem("OAUTH2_CALLBACK_URL", e);
|
|
@@ -16972,7 +16977,7 @@ function hI() {
|
|
|
16972
16977
|
console.error("Failed to store redirect location from query string", r);
|
|
16973
16978
|
}
|
|
16974
16979
|
}
|
|
16975
|
-
async function
|
|
16980
|
+
async function pI(r, e, t) {
|
|
16976
16981
|
e(!0);
|
|
16977
16982
|
try {
|
|
16978
16983
|
const n = await Dr(), [i, o] = await Promise.all([oi(), Ci(), Dt()]);
|
|
@@ -16994,12 +16999,12 @@ function Yu(r, e) {
|
|
|
16994
16999
|
else
|
|
16995
17000
|
Dt().then((n) => r.push(n));
|
|
16996
17001
|
}
|
|
16997
|
-
function
|
|
17002
|
+
function mI() {
|
|
16998
17003
|
const r = ot(), { resetGlobalResources: e } = K(ii), { user: t, authenticated: n, afterSignout: i, setAuthenticatedUser: o } = K(he), [s, a] = k(!1), [l, h] = k(!1), [u, d] = k(!1), [g, f] = k(-1);
|
|
16999
17004
|
j(() => {
|
|
17000
|
-
|
|
17005
|
+
fI(), e();
|
|
17001
17006
|
}, []), j(() => {
|
|
17002
|
-
n && t ? Dr().then((p) => Yu(r, p)) : i ||
|
|
17007
|
+
n && t ? Dr().then((p) => Yu(r, p)) : i || pI(r, a, o);
|
|
17003
17008
|
}, [r, n, i, t, o]);
|
|
17004
17009
|
async function m(p, y) {
|
|
17005
17010
|
h(!0), d(!1);
|
|
@@ -17012,7 +17017,7 @@ function fI() {
|
|
|
17012
17017
|
}
|
|
17013
17018
|
}
|
|
17014
17019
|
return s ? /* @__PURE__ */ c.jsx(An, { center: !0 }) : /* @__PURE__ */ c.jsx(
|
|
17015
|
-
|
|
17020
|
+
gI,
|
|
17016
17021
|
{
|
|
17017
17022
|
onSubmit: m,
|
|
17018
17023
|
authenticating: l,
|
|
@@ -17021,7 +17026,7 @@ function fI() {
|
|
|
17021
17026
|
}
|
|
17022
17027
|
);
|
|
17023
17028
|
}
|
|
17024
|
-
const
|
|
17029
|
+
const yI = (r, e) => {
|
|
17025
17030
|
switch (r) {
|
|
17026
17031
|
case "MINLENGTH":
|
|
17027
17032
|
return e("form.passwordField.error.minLength", { defaultValue: "Password is too short" });
|
|
@@ -17036,9 +17041,9 @@ const pI = (r, e) => {
|
|
|
17036
17041
|
default:
|
|
17037
17042
|
return;
|
|
17038
17043
|
}
|
|
17039
|
-
},
|
|
17044
|
+
}, CI = ({ value: r, onChange: e, onBlur: t, placeholder: n, error: i }) => {
|
|
17040
17045
|
const { t: o } = qe();
|
|
17041
|
-
return /* @__PURE__ */ c.jsx(lf, { error:
|
|
17046
|
+
return /* @__PURE__ */ c.jsx(lf, { error: yI(i, o), children: /* @__PURE__ */ c.jsx(
|
|
17042
17047
|
"input",
|
|
17043
17048
|
{
|
|
17044
17049
|
value: r,
|
|
@@ -17067,7 +17072,7 @@ const pI = (r, e) => {
|
|
|
17067
17072
|
if (!/.*\W/.test(r) && !r.includes("_"))
|
|
17068
17073
|
return Xu;
|
|
17069
17074
|
};
|
|
17070
|
-
function
|
|
17075
|
+
function vI(r) {
|
|
17071
17076
|
return [
|
|
17072
17077
|
th,
|
|
17073
17078
|
nh,
|
|
@@ -17076,14 +17081,14 @@ function yI(r) {
|
|
|
17076
17081
|
oh
|
|
17077
17082
|
].map((e) => e(r)).filter(rl);
|
|
17078
17083
|
}
|
|
17079
|
-
const
|
|
17084
|
+
const wI = (r, e, t) => {
|
|
17080
17085
|
if (r !== e)
|
|
17081
17086
|
return t("setPassword.formFields.confirmPassword.mustMatch", {
|
|
17082
17087
|
defaultValue: "Passwords do not match"
|
|
17083
17088
|
});
|
|
17084
17089
|
};
|
|
17085
|
-
function
|
|
17086
|
-
const { t: e } = qe(), t =
|
|
17090
|
+
function TI({ password: r }) {
|
|
17091
|
+
const { t: e } = qe(), t = vI(r);
|
|
17087
17092
|
return /* @__PURE__ */ c.jsxs("ul", { className: "pw-policy", children: [
|
|
17088
17093
|
/* @__PURE__ */ c.jsx(
|
|
17089
17094
|
"li",
|
|
@@ -17154,7 +17159,7 @@ function vI({ password: r }) {
|
|
|
17154
17159
|
)
|
|
17155
17160
|
] });
|
|
17156
17161
|
}
|
|
17157
|
-
const
|
|
17162
|
+
const AI = ({ tokenError: r, requestFailed: e, username: t, onSubmit: n }) => {
|
|
17158
17163
|
const { t: i } = qe(), {
|
|
17159
17164
|
handleSubmit: o,
|
|
17160
17165
|
formState: { isSubmitting: s },
|
|
@@ -17192,7 +17197,7 @@ const wI = ({ tokenError: r, requestFailed: e, username: t, onSubmit: n }) => {
|
|
|
17192
17197
|
},
|
|
17193
17198
|
render: ({ field: { value: u, onChange: d, onBlur: g }, fieldState: { error: f } }) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
17194
17199
|
/* @__PURE__ */ c.jsx(
|
|
17195
|
-
|
|
17200
|
+
CI,
|
|
17196
17201
|
{
|
|
17197
17202
|
value: u,
|
|
17198
17203
|
onChange: d,
|
|
@@ -17203,7 +17208,7 @@ const wI = ({ tokenError: r, requestFailed: e, username: t, onSubmit: n }) => {
|
|
|
17203
17208
|
})
|
|
17204
17209
|
}
|
|
17205
17210
|
),
|
|
17206
|
-
/* @__PURE__ */ c.jsx(
|
|
17211
|
+
/* @__PURE__ */ c.jsx(TI, { password: u })
|
|
17207
17212
|
] })
|
|
17208
17213
|
}
|
|
17209
17214
|
),
|
|
@@ -17216,7 +17221,7 @@ const wI = ({ tokenError: r, requestFailed: e, username: t, onSubmit: n }) => {
|
|
|
17216
17221
|
required: i("setPassword.formFields.confirmPassword.mustBeSet", {
|
|
17217
17222
|
defaultValue: "Please confirm new password"
|
|
17218
17223
|
}),
|
|
17219
|
-
validate: (u) =>
|
|
17224
|
+
validate: (u) => wI(l("password"), u, i)
|
|
17220
17225
|
},
|
|
17221
17226
|
render: ({ field: { value: u, onChange: d, onBlur: g }, fieldState: { error: f } }) => /* @__PURE__ */ c.jsx(
|
|
17222
17227
|
Go,
|
|
@@ -17246,7 +17251,7 @@ const wI = ({ tokenError: r, requestFailed: e, username: t, onSubmit: n }) => {
|
|
|
17246
17251
|
] }) })
|
|
17247
17252
|
] }) }) });
|
|
17248
17253
|
};
|
|
17249
|
-
const
|
|
17254
|
+
const II = () => {
|
|
17250
17255
|
const { setAuthenticatedUser: r } = K(he), e = ot(), t = Ue(), [n, i] = k(null), { token: o, username: s } = vn.parse(t.search.substring(1)), a = ({ password: l }) => {
|
|
17251
17256
|
if (o) {
|
|
17252
17257
|
if (!s)
|
|
@@ -17263,9 +17268,9 @@ const TI = () => {
|
|
|
17263
17268
|
}
|
|
17264
17269
|
});
|
|
17265
17270
|
};
|
|
17266
|
-
return /* @__PURE__ */ c.jsx(
|
|
17271
|
+
return /* @__PURE__ */ c.jsx(AI, { username: s, tokenError: n, onSubmit: a });
|
|
17267
17272
|
};
|
|
17268
|
-
function
|
|
17273
|
+
function SI(r) {
|
|
17269
17274
|
const { component: e, redirectTo: t } = r, { authenticated: n, setAuthenticatedUser: i } = K(he), o = Ue(), s = ot(), [a, l] = k(!n), [h, u] = k(n), d = Q(
|
|
17270
17275
|
(p) => {
|
|
17271
17276
|
const y = ml();
|
|
@@ -17347,7 +17352,7 @@ fl.setNotificationCallbacks({
|
|
|
17347
17352
|
Tl("TOKEN_REFRESHER");
|
|
17348
17353
|
}
|
|
17349
17354
|
});
|
|
17350
|
-
function
|
|
17355
|
+
function EI() {
|
|
17351
17356
|
const [r, e] = k(null);
|
|
17352
17357
|
function t(i, o) {
|
|
17353
17358
|
e({
|
|
@@ -17361,12 +17366,12 @@ function II() {
|
|
|
17361
17366
|
return /* @__PURE__ */ c.jsx(Lt, { children: /* @__PURE__ */ c.jsx(Fu, { children: /* @__PURE__ */ c.jsx(zu, { children: /* @__PURE__ */ c.jsx(Uu, { children: /* @__PURE__ */ c.jsxs(Hu, { children: [
|
|
17362
17367
|
/* @__PURE__ */ c.jsxs(Il, { getUserConfirmation: t, children: [
|
|
17363
17368
|
/* @__PURE__ */ c.jsxs(Hr, { children: [
|
|
17364
|
-
/* @__PURE__ */ c.jsx(Ne, { path: "/signin", component:
|
|
17365
|
-
/* @__PURE__ */ c.jsx(Ne, { path: "/forgotpassword", component:
|
|
17366
|
-
/* @__PURE__ */ c.jsx(Ne, { path: "/changeemail", component:
|
|
17367
|
-
/* @__PURE__ */ c.jsx(Ne, { path: "/setpassword", component:
|
|
17369
|
+
/* @__PURE__ */ c.jsx(Ne, { path: "/signin", component: mI }),
|
|
17370
|
+
/* @__PURE__ */ c.jsx(Ne, { path: "/forgotpassword", component: oI }),
|
|
17371
|
+
/* @__PURE__ */ c.jsx(Ne, { path: "/changeemail", component: cI }),
|
|
17372
|
+
/* @__PURE__ */ c.jsx(Ne, { path: "/setpassword", component: II }),
|
|
17368
17373
|
/* @__PURE__ */ c.jsx(Ne, { path: "/legals", component: du }),
|
|
17369
|
-
/* @__PURE__ */ c.jsx(
|
|
17374
|
+
/* @__PURE__ */ c.jsx(SI, { component: Lu, redirectTo: "/signin" })
|
|
17370
17375
|
] }),
|
|
17371
17376
|
/* @__PURE__ */ c.jsx(Wu, {})
|
|
17372
17377
|
] }),
|
|
@@ -17383,10 +17388,10 @@ function II() {
|
|
|
17383
17388
|
/* @__PURE__ */ c.jsx(uu, {})
|
|
17384
17389
|
] }) }) }) }) });
|
|
17385
17390
|
}
|
|
17386
|
-
function
|
|
17387
|
-
return Qn() ? /* @__PURE__ */ c.jsx(
|
|
17391
|
+
function OI() {
|
|
17392
|
+
return Qn() ? /* @__PURE__ */ c.jsx(nI, { clientId: tl(), msalInstance: uf() }) : /* @__PURE__ */ c.jsx(EI, {});
|
|
17388
17393
|
}
|
|
17389
17394
|
export {
|
|
17390
|
-
|
|
17391
|
-
|
|
17395
|
+
OI as App,
|
|
17396
|
+
PI as initializeApp
|
|
17392
17397
|
};
|