@ukpc-lib/react 0.10.15 → 0.10.17
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/components/Notification/models/NotiticationDto.d.ts +0 -4
- package/dist/components/index.cjs +20 -20
- package/dist/components/index.js +1782 -1816
- package/dist/{index.esm2017-df097ca5.cjs → index.esm2017-10781cce.cjs} +6 -6
- package/dist/{index.esm2017-94d8b0ee.js → index.esm2017-9804ac3a.js} +204 -203
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +8 -8
- package/package.json +1 -1
- package/web-components-bundle/favorite-menu/index.js +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-83994d51.js → index-8de34cd3.js} +10381 -10414
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
2
|
import { jsxs as Di, Fragment as Jd, jsx as Qe } from "react/jsx-runtime";
|
|
3
3
|
import * as On from "react";
|
|
4
|
-
import pt, { createContext as gr, useState as ln, useContext as nn,
|
|
4
|
+
import pt, { createContext as gr, useState as ln, useContext as nn, useRef as hn, useEffect as Dt, useMemo as qn, createElement as Qd, useSyncExternalStore as HI, useLayoutEffect as Ks, isValidElement as Fc, cloneElement as Ad, useCallback as ny, forwardRef as Bp, memo as UI, useImperativeHandle as WI, useInsertionEffect as zI, useId as YI, PureComponent as GI } from "react";
|
|
5
5
|
import qI from "axios";
|
|
6
6
|
import XI from "moment";
|
|
7
7
|
import { createTheme as KI, ThemeProvider as ZI, Grid as JI, CircularProgress as QI, Tooltip as Md, styled as eA, Switch as tA } from "@mui/material";
|
|
@@ -2161,13 +2161,13 @@ const EY = Ys.interceptors.response.use(
|
|
|
2161
2161
|
async (e) => $A(e)
|
|
2162
2162
|
// Error handling
|
|
2163
2163
|
), VA = gr({}), kY = ({ children: e }) => {
|
|
2164
|
-
const [t, n] = ln(!
|
|
2164
|
+
const [t, n] = ln(!1), [r, i] = ln({
|
|
2165
2165
|
all: { rows: [], total: 0 },
|
|
2166
2166
|
unread: { rows: [], total: 0 }
|
|
2167
2167
|
}), o = () => {
|
|
2168
2168
|
n(!t);
|
|
2169
2169
|
}, s = () => {
|
|
2170
|
-
n(!
|
|
2170
|
+
n(!1);
|
|
2171
2171
|
};
|
|
2172
2172
|
return /* @__PURE__ */ Qe(
|
|
2173
2173
|
VA.Provider,
|
|
@@ -2851,91 +2851,23 @@ const q1 = gr({}), OY = () => nn(q1), _Y = (e) => {
|
|
|
2851
2851
|
var o;
|
|
2852
2852
|
const { children: t, brandTheme: n } = e, r = tM(n), i = ((o = e.customTheme) == null ? void 0 : o.call(e, r.colors)) || r.theme;
|
|
2853
2853
|
return /* @__PURE__ */ Qe(q1.Provider, { value: r, children: /* @__PURE__ */ Qe(ZI, { theme: i, children: t }) });
|
|
2854
|
-
}, nM = (
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
queryKey: ["user"],
|
|
2862
|
-
refetchOnWindowFocus: !1,
|
|
2863
|
-
retry: !1,
|
|
2864
|
-
queryFn: () => n.get(e.baseUrl + "/user-management/api/v1/users/my-account").then((i) => (window.user = i.data, i.data))
|
|
2865
|
-
});
|
|
2866
|
-
return Dt(() => {
|
|
2867
|
-
window.onpageshow = function(i) {
|
|
2868
|
-
i.persisted && t.invalidateQueries(["user"]);
|
|
2869
|
-
};
|
|
2870
|
-
}, [t]), r;
|
|
2871
|
-
}, rM = (e) => {
|
|
2872
|
-
const t = F1(), n = qn(
|
|
2873
|
-
() => e.axiosInstance || Ys,
|
|
2874
|
-
[e.axiosInstance]
|
|
2875
|
-
);
|
|
2876
|
-
window.env || (window.env = {}), window.env.AUTHEN_DOMAIN = new URL(e.baseUrl).origin;
|
|
2877
|
-
const r = ry({
|
|
2878
|
-
queryKey: ["user-permissions"],
|
|
2879
|
-
refetchOnWindowFocus: !1,
|
|
2880
|
-
retry: !1,
|
|
2881
|
-
queryFn: () => n.get(
|
|
2882
|
-
e.baseUrl + "/user-management/api/v1/users/my-account/permissions"
|
|
2883
|
-
).then((i) => i.data)
|
|
2884
|
-
});
|
|
2885
|
-
return Dt(() => {
|
|
2886
|
-
window.onpageshow = function(i) {
|
|
2887
|
-
i.persisted && t.invalidateQueries(["user-permissions"]);
|
|
2888
|
-
};
|
|
2889
|
-
}, [t]), r;
|
|
2890
|
-
}, X1 = gr({}), DY = (e) => {
|
|
2891
|
-
const { children: t, baseUrl: n, axiosInstance: r } = e, i = new URL(n).origin, o = nM({ axiosInstance: r, baseUrl: n }), s = rM({
|
|
2892
|
-
axiosInstance: r,
|
|
2893
|
-
baseUrl: n
|
|
2894
|
-
});
|
|
2895
|
-
function l() {
|
|
2896
|
-
window.location.href = `${i}/authentication/login`;
|
|
2897
|
-
}
|
|
2898
|
-
function c() {
|
|
2899
|
-
window.location.href = `${i}/authentication/logout`;
|
|
2900
|
-
}
|
|
2901
|
-
return o != null && o.isFetching ? /* @__PURE__ */ Qe(
|
|
2902
|
-
JI,
|
|
2903
|
-
{
|
|
2904
|
-
container: !0,
|
|
2905
|
-
justifyContent: "center",
|
|
2906
|
-
alignItems: "center",
|
|
2907
|
-
sx: { minHeight: "100vh" },
|
|
2908
|
-
children: /* @__PURE__ */ Qe(QI, {})
|
|
2909
|
-
}
|
|
2910
|
-
) : /* @__PURE__ */ Qe(
|
|
2911
|
-
X1.Provider,
|
|
2912
|
-
{
|
|
2913
|
-
value: {
|
|
2914
|
-
user: o == null ? void 0 : o.data,
|
|
2915
|
-
login: l,
|
|
2916
|
-
logout: c,
|
|
2917
|
-
isFetching: o.isFetching,
|
|
2918
|
-
permissions: s == null ? void 0 : s.data
|
|
2919
|
-
},
|
|
2920
|
-
children: t
|
|
2921
|
-
}
|
|
2922
|
-
);
|
|
2923
|
-
}, PY = () => nn(X1);
|
|
2924
|
-
function RY(e, t, n) {
|
|
2925
|
-
return n.some((r) => {
|
|
2926
|
-
const i = e[r];
|
|
2927
|
-
return String(i).toLowerCase().includes(t.toLowerCase());
|
|
2928
|
-
});
|
|
2854
|
+
}, nM = `*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
|
|
2855
|
+
`;
|
|
2856
|
+
function X1({ children: e, styles: t = [], ...n }) {
|
|
2857
|
+
return /* @__PURE__ */ Di("div", { ...n, children: [
|
|
2858
|
+
[nM, ...t].map((r, i) => /* @__PURE__ */ Qe("style", { type: "text/css", children: r }, i)),
|
|
2859
|
+
e
|
|
2860
|
+
] });
|
|
2929
2861
|
}
|
|
2930
|
-
var K1 = [],
|
|
2931
|
-
function
|
|
2932
|
-
return
|
|
2862
|
+
var K1 = [], rM = K1.forEach, iM = K1.slice;
|
|
2863
|
+
function oM(e) {
|
|
2864
|
+
return rM.call(iM.call(arguments, 1), function(t) {
|
|
2933
2865
|
if (t)
|
|
2934
2866
|
for (var n in t)
|
|
2935
2867
|
e[n] === void 0 && (e[n] = t[n]);
|
|
2936
2868
|
}), e;
|
|
2937
2869
|
}
|
|
2938
|
-
var Ib = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,
|
|
2870
|
+
var Ib = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, aM = function(t, n, r) {
|
|
2939
2871
|
var i = r || {};
|
|
2940
2872
|
i.path = i.path || "/";
|
|
2941
2873
|
var o = encodeURIComponent(n), s = "".concat(t, "=").concat(o);
|
|
@@ -2986,7 +2918,7 @@ var Ib = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, sM = function(t, n, r) {
|
|
|
2986
2918
|
path: "/",
|
|
2987
2919
|
sameSite: "strict"
|
|
2988
2920
|
};
|
|
2989
|
-
r && (o.expires = /* @__PURE__ */ new Date(), o.expires.setTime(o.expires.getTime() + r * 60 * 1e3)), i && (o.domain = i), document.cookie =
|
|
2921
|
+
r && (o.expires = /* @__PURE__ */ new Date(), o.expires.setTime(o.expires.getTime() + r * 60 * 1e3)), i && (o.domain = i), document.cookie = aM(t, encodeURIComponent(n), o);
|
|
2990
2922
|
},
|
|
2991
2923
|
read: function(t) {
|
|
2992
2924
|
for (var n = "".concat(t, "="), r = document.cookie.split(";"), i = 0; i < r.length; i++) {
|
|
@@ -3000,7 +2932,7 @@ var Ib = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, sM = function(t, n, r) {
|
|
|
3000
2932
|
remove: function(t) {
|
|
3001
2933
|
this.create(t, "", -1);
|
|
3002
2934
|
}
|
|
3003
|
-
},
|
|
2935
|
+
}, sM = {
|
|
3004
2936
|
name: "cookie",
|
|
3005
2937
|
lookup: function(t) {
|
|
3006
2938
|
var n;
|
|
@@ -3013,7 +2945,7 @@ var Ib = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, sM = function(t, n, r) {
|
|
|
3013
2945
|
cacheUserLanguage: function(t, n) {
|
|
3014
2946
|
n.lookupCookie && typeof document < "u" && Ab.create(n.lookupCookie, t, n.cookieMinutes, n.cookieDomain, n.cookieOptions);
|
|
3015
2947
|
}
|
|
3016
|
-
},
|
|
2948
|
+
}, lM = {
|
|
3017
2949
|
name: "querystring",
|
|
3018
2950
|
lookup: function(t) {
|
|
3019
2951
|
var n;
|
|
@@ -3041,7 +2973,7 @@ var Ib = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, sM = function(t, n, r) {
|
|
|
3041
2973
|
sd = !1;
|
|
3042
2974
|
}
|
|
3043
2975
|
return sd;
|
|
3044
|
-
},
|
|
2976
|
+
}, uM = {
|
|
3045
2977
|
name: "localStorage",
|
|
3046
2978
|
lookup: function(t) {
|
|
3047
2979
|
var n;
|
|
@@ -3065,7 +2997,7 @@ var Ib = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, sM = function(t, n, r) {
|
|
|
3065
2997
|
ld = !1;
|
|
3066
2998
|
}
|
|
3067
2999
|
return ld;
|
|
3068
|
-
},
|
|
3000
|
+
}, cM = {
|
|
3069
3001
|
name: "sessionStorage",
|
|
3070
3002
|
lookup: function(t) {
|
|
3071
3003
|
var n;
|
|
@@ -3078,7 +3010,7 @@ var Ib = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, sM = function(t, n, r) {
|
|
|
3078
3010
|
cacheUserLanguage: function(t, n) {
|
|
3079
3011
|
n.lookupSessionStorage && Lb() && window.sessionStorage.setItem(n.lookupSessionStorage, t);
|
|
3080
3012
|
}
|
|
3081
|
-
},
|
|
3013
|
+
}, fM = {
|
|
3082
3014
|
name: "navigator",
|
|
3083
3015
|
lookup: function(t) {
|
|
3084
3016
|
var n = [];
|
|
@@ -3090,13 +3022,13 @@ var Ib = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, sM = function(t, n, r) {
|
|
|
3090
3022
|
}
|
|
3091
3023
|
return n.length > 0 ? n : void 0;
|
|
3092
3024
|
}
|
|
3093
|
-
},
|
|
3025
|
+
}, dM = {
|
|
3094
3026
|
name: "htmlTag",
|
|
3095
3027
|
lookup: function(t) {
|
|
3096
3028
|
var n, r = t.htmlTag || (typeof document < "u" ? document.documentElement : null);
|
|
3097
3029
|
return r && typeof r.getAttribute == "function" && (n = r.getAttribute("lang")), n;
|
|
3098
3030
|
}
|
|
3099
|
-
},
|
|
3031
|
+
}, hM = {
|
|
3100
3032
|
name: "path",
|
|
3101
3033
|
lookup: function(t) {
|
|
3102
3034
|
var n;
|
|
@@ -3112,7 +3044,7 @@ var Ib = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, sM = function(t, n, r) {
|
|
|
3112
3044
|
}
|
|
3113
3045
|
return n;
|
|
3114
3046
|
}
|
|
3115
|
-
},
|
|
3047
|
+
}, pM = {
|
|
3116
3048
|
name: "subdomain",
|
|
3117
3049
|
lookup: function(t) {
|
|
3118
3050
|
var n = typeof t.lookupFromSubdomainIndex == "number" ? t.lookupFromSubdomainIndex + 1 : 1, r = typeof window < "u" && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
@@ -3126,7 +3058,7 @@ try {
|
|
|
3126
3058
|
}
|
|
3127
3059
|
var J1 = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
3128
3060
|
Z1 || J1.splice(1, 1);
|
|
3129
|
-
function
|
|
3061
|
+
function gM() {
|
|
3130
3062
|
return {
|
|
3131
3063
|
order: J1,
|
|
3132
3064
|
lookupQuerystring: "lng",
|
|
@@ -3154,9 +3086,9 @@ var Q1 = /* @__PURE__ */ function() {
|
|
|
3154
3086
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3155
3087
|
this.services = n || {
|
|
3156
3088
|
languageUtils: {}
|
|
3157
|
-
}, this.options =
|
|
3089
|
+
}, this.options = oM(r, this.options || {}, gM()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(o) {
|
|
3158
3090
|
return o.replace("-", "_");
|
|
3159
|
-
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = i, this.addDetector(lM), this.addDetector(uM), this.addDetector(cM), this.addDetector(fM), this.addDetector(dM), this.addDetector(hM), this.addDetector(pM)
|
|
3091
|
+
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = i, this.addDetector(sM), this.addDetector(lM), this.addDetector(uM), this.addDetector(cM), this.addDetector(fM), this.addDetector(dM), this.addDetector(hM), this.addDetector(pM);
|
|
3160
3092
|
}
|
|
3161
3093
|
}, {
|
|
3162
3094
|
key: "addDetector",
|
|
@@ -3201,7 +3133,7 @@ function eT(e, t) {
|
|
|
3201
3133
|
}
|
|
3202
3134
|
return n;
|
|
3203
3135
|
}
|
|
3204
|
-
const
|
|
3136
|
+
const DY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3205
3137
|
__proto__: null,
|
|
3206
3138
|
default: eT
|
|
3207
3139
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -3209,7 +3141,7 @@ var zi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
3209
3141
|
function Vu(e) {
|
|
3210
3142
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3211
3143
|
}
|
|
3212
|
-
function
|
|
3144
|
+
function PY(e) {
|
|
3213
3145
|
if (e.__esModule)
|
|
3214
3146
|
return e;
|
|
3215
3147
|
var t = e.default;
|
|
@@ -3230,7 +3162,7 @@ function AY(e) {
|
|
|
3230
3162
|
});
|
|
3231
3163
|
}), n;
|
|
3232
3164
|
}
|
|
3233
|
-
function
|
|
3165
|
+
function vM() {
|
|
3234
3166
|
if (console && console.warn) {
|
|
3235
3167
|
for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
3236
3168
|
n[r] = arguments[r];
|
|
@@ -3241,7 +3173,7 @@ var Fb = {};
|
|
|
3241
3173
|
function Jv() {
|
|
3242
3174
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
3243
3175
|
t[n] = arguments[n];
|
|
3244
|
-
typeof t[0] == "string" && Fb[t[0]] || (typeof t[0] == "string" && (Fb[t[0]] = /* @__PURE__ */ new Date()),
|
|
3176
|
+
typeof t[0] == "string" && Fb[t[0]] || (typeof t[0] == "string" && (Fb[t[0]] = /* @__PURE__ */ new Date()), vM.apply(void 0, t));
|
|
3245
3177
|
}
|
|
3246
3178
|
var tT = function(t, n) {
|
|
3247
3179
|
return function() {
|
|
@@ -3265,7 +3197,7 @@ function Bb(e, t, n, r) {
|
|
|
3265
3197
|
e.options.ns.indexOf(i) < 0 && e.options.ns.push(i);
|
|
3266
3198
|
}), e.loadLanguages(t, tT(e, r));
|
|
3267
3199
|
}
|
|
3268
|
-
function
|
|
3200
|
+
function mM(e, t) {
|
|
3269
3201
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = t.languages[0], i = t.options ? t.options.fallbackLng : !1, o = t.languages[t.languages.length - 1];
|
|
3270
3202
|
if (r.toLowerCase() === "cimode")
|
|
3271
3203
|
return !0;
|
|
@@ -3275,7 +3207,7 @@ function yM(e, t) {
|
|
|
3275
3207
|
};
|
|
3276
3208
|
return n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !s(t.isLanguageChangingTo, e) ? !1 : !!(t.hasResourceBundle(r, e) || !t.services.backendConnector.backend || t.options.resources && !t.options.partialBundledLanguages || s(r, e) && (!i || s(o, e)));
|
|
3277
3209
|
}
|
|
3278
|
-
function
|
|
3210
|
+
function yM(e, t) {
|
|
3279
3211
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3280
3212
|
if (!t.languages || !t.languages.length)
|
|
3281
3213
|
return Jv("i18n.languages were undefined or empty", t.languages), !0;
|
|
@@ -3286,9 +3218,9 @@ function bM(e, t) {
|
|
|
3286
3218
|
if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && o.services.backendConnector.backend && o.isLanguageChangingTo && !s(o.isLanguageChangingTo, e))
|
|
3287
3219
|
return !1;
|
|
3288
3220
|
}
|
|
3289
|
-
}) :
|
|
3221
|
+
}) : mM(e, t, n);
|
|
3290
3222
|
}
|
|
3291
|
-
var
|
|
3223
|
+
var bM = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, wM = {
|
|
3292
3224
|
"&": "&",
|
|
3293
3225
|
"&": "&",
|
|
3294
3226
|
"<": "<",
|
|
@@ -3309,10 +3241,10 @@ var wM = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
3309
3241
|
"…": "…",
|
|
3310
3242
|
"/": "/",
|
|
3311
3243
|
"/": "/"
|
|
3244
|
+
}, SM = function(t) {
|
|
3245
|
+
return wM[t];
|
|
3312
3246
|
}, xM = function(t) {
|
|
3313
|
-
return SM
|
|
3314
|
-
}, TM = function(t) {
|
|
3315
|
-
return t.replace(wM, xM);
|
|
3247
|
+
return t.replace(bM, SM);
|
|
3316
3248
|
};
|
|
3317
3249
|
function jb(e, t) {
|
|
3318
3250
|
var n = Object.keys(e);
|
|
@@ -3343,28 +3275,28 @@ var Qv = {
|
|
|
3343
3275
|
transWrapTextNodes: "",
|
|
3344
3276
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
3345
3277
|
useSuspense: !0,
|
|
3346
|
-
unescape:
|
|
3278
|
+
unescape: xM
|
|
3347
3279
|
};
|
|
3348
|
-
function
|
|
3280
|
+
function TM() {
|
|
3349
3281
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3350
3282
|
Qv = $b($b({}, Qv), e);
|
|
3351
3283
|
}
|
|
3352
|
-
function
|
|
3284
|
+
function CM() {
|
|
3353
3285
|
return Qv;
|
|
3354
3286
|
}
|
|
3355
3287
|
var nT;
|
|
3356
|
-
function
|
|
3288
|
+
function EM(e) {
|
|
3357
3289
|
nT = e;
|
|
3358
3290
|
}
|
|
3359
|
-
function
|
|
3291
|
+
function kM() {
|
|
3360
3292
|
return nT;
|
|
3361
3293
|
}
|
|
3362
|
-
var
|
|
3294
|
+
var OM = {
|
|
3363
3295
|
type: "3rdParty",
|
|
3364
3296
|
init: function(t) {
|
|
3365
|
-
|
|
3297
|
+
TM(t.options.react), EM(t);
|
|
3366
3298
|
}
|
|
3367
|
-
}, rT = gr(),
|
|
3299
|
+
}, rT = gr(), _M = function() {
|
|
3368
3300
|
function e() {
|
|
3369
3301
|
la(this, e), this.usedNamespaces = {};
|
|
3370
3302
|
}
|
|
@@ -3383,7 +3315,7 @@ var _M = {
|
|
|
3383
3315
|
}
|
|
3384
3316
|
}]), e;
|
|
3385
3317
|
}();
|
|
3386
|
-
function
|
|
3318
|
+
function DM(e, t) {
|
|
3387
3319
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3388
3320
|
if (n != null) {
|
|
3389
3321
|
var r, i, o, s, l = [], c = !0, d = !1;
|
|
@@ -3409,8 +3341,8 @@ function PM(e, t) {
|
|
|
3409
3341
|
return l;
|
|
3410
3342
|
}
|
|
3411
3343
|
}
|
|
3412
|
-
function
|
|
3413
|
-
return $1(e) ||
|
|
3344
|
+
function PM(e, t) {
|
|
3345
|
+
return $1(e) || DM(e, t) || V1(e, t) || H1();
|
|
3414
3346
|
}
|
|
3415
3347
|
function Vb(e, t) {
|
|
3416
3348
|
var n = Object.keys(e);
|
|
@@ -3433,15 +3365,15 @@ function Yg(e) {
|
|
|
3433
3365
|
}
|
|
3434
3366
|
return e;
|
|
3435
3367
|
}
|
|
3436
|
-
var
|
|
3368
|
+
var RM = function(t, n) {
|
|
3437
3369
|
var r = hn();
|
|
3438
3370
|
return Dt(function() {
|
|
3439
3371
|
r.current = n ? r.current : t;
|
|
3440
3372
|
}, [t, n]), r.current;
|
|
3441
3373
|
};
|
|
3442
|
-
function
|
|
3443
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.i18n, r = nn(rT) || {}, i = r.i18n, o = r.defaultNS, s = n || i ||
|
|
3444
|
-
if (s && !s.reportNamespaces && (s.reportNamespaces = new
|
|
3374
|
+
function IM(e) {
|
|
3375
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.i18n, r = nn(rT) || {}, i = r.i18n, o = r.defaultNS, s = n || i || kM();
|
|
3376
|
+
if (s && !s.reportNamespaces && (s.reportNamespaces = new _M()), !s) {
|
|
3445
3377
|
Jv("You will need to pass in an i18next instance by using initReactI18next");
|
|
3446
3378
|
var l = function(oe, Fe) {
|
|
3447
3379
|
return typeof Fe == "string" ? Fe : Fe && oa(Fe) === "object" && typeof Fe.defaultValue == "string" ? Fe.defaultValue : Array.isArray(oe) ? oe[oe.length - 1] : oe;
|
|
@@ -3449,17 +3381,17 @@ function AM(e) {
|
|
|
3449
3381
|
return c.t = l, c.i18n = {}, c.ready = !1, c;
|
|
3450
3382
|
}
|
|
3451
3383
|
s.options.react && s.options.react.wait !== void 0 && Jv("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
3452
|
-
var d = Yg(Yg(Yg({},
|
|
3384
|
+
var d = Yg(Yg(Yg({}, CM()), s.options.react), t), v = d.useSuspense, p = d.keyPrefix, S = e || o || s.options && s.options.defaultNS;
|
|
3453
3385
|
S = typeof S == "string" ? [S] : S || ["translation"], s.reportNamespaces.addUsedNamespaces && s.reportNamespaces.addUsedNamespaces(S);
|
|
3454
3386
|
var T = (s.isInitialized || s.initializedStoreOnce) && S.every(function(ue) {
|
|
3455
|
-
return
|
|
3387
|
+
return yM(ue, s, d);
|
|
3456
3388
|
});
|
|
3457
3389
|
function _() {
|
|
3458
3390
|
return s.getFixedT(t.lng || null, d.nsMode === "fallback" ? S : S[0], p);
|
|
3459
3391
|
}
|
|
3460
|
-
var R = ln(_), L =
|
|
3392
|
+
var R = ln(_), L = PM(R, 2), I = L[0], U = L[1], W = S.join();
|
|
3461
3393
|
t.lng && (W = "".concat(t.lng).concat(W));
|
|
3462
|
-
var ee =
|
|
3394
|
+
var ee = RM(W), Z = hn(!0);
|
|
3463
3395
|
Dt(function() {
|
|
3464
3396
|
var ue = d.bindI18n, oe = d.bindI18nStore;
|
|
3465
3397
|
Z.current = !0, !T && !v && (t.lng ? Bb(s, t.lng, S, function() {
|
|
@@ -3493,7 +3425,7 @@ function AM(e) {
|
|
|
3493
3425
|
});
|
|
3494
3426
|
});
|
|
3495
3427
|
}
|
|
3496
|
-
function
|
|
3428
|
+
function AM(e) {
|
|
3497
3429
|
var t = e.i18n, n = e.defaultNS, r = e.children, i = qn(function() {
|
|
3498
3430
|
return {
|
|
3499
3431
|
i18n: t,
|
|
@@ -3504,18 +3436,18 @@ function MM(e) {
|
|
|
3504
3436
|
value: i
|
|
3505
3437
|
}, r);
|
|
3506
3438
|
}
|
|
3507
|
-
var iT = [],
|
|
3508
|
-
function
|
|
3509
|
-
return
|
|
3439
|
+
var iT = [], MM = iT.forEach, LM = iT.slice;
|
|
3440
|
+
function FM(e) {
|
|
3441
|
+
return MM.call(LM.call(arguments, 1), function(t) {
|
|
3510
3442
|
if (t)
|
|
3511
3443
|
for (var n in t)
|
|
3512
3444
|
e[n] === void 0 && (e[n] = t[n]);
|
|
3513
3445
|
}), e;
|
|
3514
3446
|
}
|
|
3515
|
-
function
|
|
3447
|
+
function NM(e) {
|
|
3516
3448
|
return e ? typeof e == "function" ? new e() : e : null;
|
|
3517
3449
|
}
|
|
3518
|
-
function
|
|
3450
|
+
function BM() {
|
|
3519
3451
|
return {
|
|
3520
3452
|
handleEmptyResourcesAsFailed: !0,
|
|
3521
3453
|
cacheHitMode: "none"
|
|
@@ -3547,8 +3479,8 @@ var oT = /* @__PURE__ */ function() {
|
|
|
3547
3479
|
key: "init",
|
|
3548
3480
|
value: function(n) {
|
|
3549
3481
|
var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3550
|
-
this.services = n, this.options =
|
|
3551
|
-
r.backends[l] = r.backends[l] ||
|
|
3482
|
+
this.services = n, this.options = FM(i, this.options || {}, BM()), this.allOptions = o, this.options.backends && this.options.backends.forEach(function(s, l) {
|
|
3483
|
+
r.backends[l] = r.backends[l] || NM(s), r.backends[l].init(n, r.options.backendOptions && r.options.backendOptions[l] || {}, o);
|
|
3552
3484
|
}), this.services && this.options.reloadInterval && setInterval(function() {
|
|
3553
3485
|
return r.reload();
|
|
3554
3486
|
}, this.options.reloadInterval);
|
|
@@ -3640,17 +3572,17 @@ function em(e) {
|
|
|
3640
3572
|
function aT() {
|
|
3641
3573
|
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : em(XMLHttpRequest)) === "object";
|
|
3642
3574
|
}
|
|
3643
|
-
function
|
|
3575
|
+
function jM(e) {
|
|
3644
3576
|
return !!e && typeof e.then == "function";
|
|
3645
3577
|
}
|
|
3646
|
-
function
|
|
3647
|
-
return
|
|
3578
|
+
function $M(e) {
|
|
3579
|
+
return jM(e) ? e : Promise.resolve(e);
|
|
3648
3580
|
}
|
|
3649
|
-
function
|
|
3581
|
+
function VM(e) {
|
|
3650
3582
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
3651
3583
|
}
|
|
3652
3584
|
var tm = { exports: {} }, Eh = { exports: {} }, Ub;
|
|
3653
|
-
function
|
|
3585
|
+
function HM() {
|
|
3654
3586
|
return Ub || (Ub = 1, function(e, t) {
|
|
3655
3587
|
var n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof zi < "u" && zi, r = function() {
|
|
3656
3588
|
function o() {
|
|
@@ -3967,8 +3899,8 @@ function UM() {
|
|
|
3967
3899
|
}
|
|
3968
3900
|
(function(e, t) {
|
|
3969
3901
|
var n;
|
|
3970
|
-
if (typeof fetch == "function" && (typeof zi < "u" && zi.fetch ? n = zi.fetch : typeof window < "u" && window.fetch ? n = window.fetch : n = fetch), typeof
|
|
3971
|
-
var r = n ||
|
|
3902
|
+
if (typeof fetch == "function" && (typeof zi < "u" && zi.fetch ? n = zi.fetch : typeof window < "u" && window.fetch ? n = window.fetch : n = fetch), typeof VM < "u" && typeof window > "u") {
|
|
3903
|
+
var r = n || HM();
|
|
3972
3904
|
r.default && (r = r.default), t.default = r, e.exports = t.default;
|
|
3973
3905
|
}
|
|
3974
3906
|
})(tm, tm.exports);
|
|
@@ -3991,21 +3923,21 @@ function Yb(e) {
|
|
|
3991
3923
|
for (var t = 1; t < arguments.length; t++) {
|
|
3992
3924
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
3993
3925
|
t % 2 ? zb(Object(n), !0).forEach(function(r) {
|
|
3994
|
-
|
|
3926
|
+
UM(e, r, n[r]);
|
|
3995
3927
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zb(Object(n)).forEach(function(r) {
|
|
3996
3928
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
3997
3929
|
});
|
|
3998
3930
|
}
|
|
3999
3931
|
return e;
|
|
4000
3932
|
}
|
|
4001
|
-
function
|
|
4002
|
-
return (t =
|
|
3933
|
+
function UM(e, t, n) {
|
|
3934
|
+
return (t = WM(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
4003
3935
|
}
|
|
4004
|
-
function
|
|
4005
|
-
var t =
|
|
3936
|
+
function WM(e) {
|
|
3937
|
+
var t = zM(e, "string");
|
|
4006
3938
|
return $c(t) == "symbol" ? t : t + "";
|
|
4007
3939
|
}
|
|
4008
|
-
function
|
|
3940
|
+
function zM(e, t) {
|
|
4009
3941
|
if ($c(e) != "object" || !e)
|
|
4010
3942
|
return e;
|
|
4011
3943
|
var n = e[Symbol.toPrimitive];
|
|
@@ -4064,7 +3996,7 @@ var nm = function(t, n) {
|
|
|
4064
3996
|
}
|
|
4065
3997
|
}
|
|
4066
3998
|
typeof fetch == "function" ? fetch(t, n).then(o).catch(r) : Ll(t, n).then(o).catch(r);
|
|
4067
|
-
}, qb = !1,
|
|
3999
|
+
}, qb = !1, YM = function(t, n, r, i) {
|
|
4068
4000
|
t.queryStringParams && (n = nm(n, t.queryStringParams));
|
|
4069
4001
|
var o = Yb({}, typeof t.customHeaders == "function" ? t.customHeaders() : t.customHeaders);
|
|
4070
4002
|
typeof window > "u" && typeof global < "u" && typeof global.process < "u" && global.process.versions && global.process.versions.node && (o["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), r && (o["Content-Type"] = "application/json");
|
|
@@ -4086,7 +4018,7 @@ var nm = function(t, n) {
|
|
|
4086
4018
|
i(v);
|
|
4087
4019
|
}
|
|
4088
4020
|
}
|
|
4089
|
-
},
|
|
4021
|
+
}, GM = function(t, n, r, i) {
|
|
4090
4022
|
r && $c(r) === "object" && (r = nm("", r).slice(1)), t.queryStringParams && (n = nm(n, t.queryStringParams));
|
|
4091
4023
|
try {
|
|
4092
4024
|
var o;
|
|
@@ -4104,12 +4036,12 @@ var nm = function(t, n) {
|
|
|
4104
4036
|
} catch (c) {
|
|
4105
4037
|
console && console.log(c);
|
|
4106
4038
|
}
|
|
4107
|
-
},
|
|
4039
|
+
}, qM = function(t, n, r, i) {
|
|
4108
4040
|
if (typeof r == "function" && (i = r, r = void 0), i = i || function() {
|
|
4109
4041
|
}, Ll && n.indexOf("file:") !== 0)
|
|
4110
|
-
return
|
|
4042
|
+
return YM(t, n, r, i);
|
|
4111
4043
|
if (aT() || typeof ActiveXObject == "function")
|
|
4112
|
-
return
|
|
4044
|
+
return GM(t, n, r, i);
|
|
4113
4045
|
i(new Error("No fetch and no xhr implementation found!"));
|
|
4114
4046
|
};
|
|
4115
4047
|
function jf(e) {
|
|
@@ -4141,7 +4073,7 @@ function Gg(e) {
|
|
|
4141
4073
|
}
|
|
4142
4074
|
return e;
|
|
4143
4075
|
}
|
|
4144
|
-
function
|
|
4076
|
+
function XM(e, t) {
|
|
4145
4077
|
if (!(e instanceof t))
|
|
4146
4078
|
throw new TypeError("Cannot call a class as a function");
|
|
4147
4079
|
}
|
|
@@ -4151,17 +4083,17 @@ function Kb(e, t) {
|
|
|
4151
4083
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, cT(r.key), r);
|
|
4152
4084
|
}
|
|
4153
4085
|
}
|
|
4154
|
-
function
|
|
4086
|
+
function KM(e, t, n) {
|
|
4155
4087
|
return t && Kb(e.prototype, t), n && Kb(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
4156
4088
|
}
|
|
4157
4089
|
function uT(e, t, n) {
|
|
4158
4090
|
return (t = cT(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
4159
4091
|
}
|
|
4160
4092
|
function cT(e) {
|
|
4161
|
-
var t =
|
|
4093
|
+
var t = ZM(e, "string");
|
|
4162
4094
|
return jf(t) == "symbol" ? t : t + "";
|
|
4163
4095
|
}
|
|
4164
|
-
function
|
|
4096
|
+
function ZM(e, t) {
|
|
4165
4097
|
if (jf(e) != "object" || !e)
|
|
4166
4098
|
return e;
|
|
4167
4099
|
var n = e[Symbol.toPrimitive];
|
|
@@ -4173,7 +4105,7 @@ function JM(e, t) {
|
|
|
4173
4105
|
}
|
|
4174
4106
|
return (t === "string" ? String : Number)(e);
|
|
4175
4107
|
}
|
|
4176
|
-
var
|
|
4108
|
+
var JM = function() {
|
|
4177
4109
|
return {
|
|
4178
4110
|
loadPath: "/locales/{{lng}}/{{ns}}.json",
|
|
4179
4111
|
addPath: "/locales/add/{{lng}}/{{ns}}",
|
|
@@ -4186,7 +4118,7 @@ var QM = function() {
|
|
|
4186
4118
|
},
|
|
4187
4119
|
parseLoadPayload: function(n, r) {
|
|
4188
4120
|
},
|
|
4189
|
-
request:
|
|
4121
|
+
request: qM,
|
|
4190
4122
|
reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
|
|
4191
4123
|
customHeaders: {},
|
|
4192
4124
|
queryStringParams: {},
|
|
@@ -4202,13 +4134,13 @@ var QM = function() {
|
|
|
4202
4134
|
}, fT = function() {
|
|
4203
4135
|
function e(t) {
|
|
4204
4136
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
4205
|
-
|
|
4137
|
+
XM(this, e), this.services = t, this.options = n, this.allOptions = r, this.type = "backend", this.init(t, n, r);
|
|
4206
4138
|
}
|
|
4207
|
-
return
|
|
4139
|
+
return KM(e, [{
|
|
4208
4140
|
key: "init",
|
|
4209
4141
|
value: function(n) {
|
|
4210
4142
|
var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
4211
|
-
if (this.services = n, this.options = Gg(Gg(Gg({},
|
|
4143
|
+
if (this.services = n, this.options = Gg(Gg(Gg({}, JM()), this.options || {}), i), this.allOptions = o, this.services && this.options.reloadInterval) {
|
|
4212
4144
|
var s = setInterval(function() {
|
|
4213
4145
|
return r.reload();
|
|
4214
4146
|
}, this.options.reloadInterval);
|
|
@@ -4229,7 +4161,7 @@ var QM = function() {
|
|
|
4229
4161
|
key: "_readAny",
|
|
4230
4162
|
value: function(n, r, i, o, s) {
|
|
4231
4163
|
var l = this, c = this.options.loadPath;
|
|
4232
|
-
typeof this.options.loadPath == "function" && (c = this.options.loadPath(n, i)), c =
|
|
4164
|
+
typeof this.options.loadPath == "function" && (c = this.options.loadPath(n, i)), c = $M(c), c.then(function(d) {
|
|
4233
4165
|
if (!d)
|
|
4234
4166
|
return s(null, {});
|
|
4235
4167
|
var v = l.services.interpolator.interpolate(d, {
|
|
@@ -4314,16 +4246,16 @@ var QM = function() {
|
|
|
4314
4246
|
}();
|
|
4315
4247
|
fT.type = "backend";
|
|
4316
4248
|
var dT = /* @__PURE__ */ ((e) => (e.en = "en", e.de = "de", e))(dT || {});
|
|
4317
|
-
const
|
|
4249
|
+
const QM = {
|
|
4318
4250
|
en: "English",
|
|
4319
4251
|
de: "German"
|
|
4320
4252
|
};
|
|
4321
|
-
hi.use(oT).use(
|
|
4253
|
+
hi.use(oT).use(OM).use(Q1).init({
|
|
4322
4254
|
// defaultNS: "translation",
|
|
4323
4255
|
// resources,
|
|
4324
4256
|
initImmediate: !0,
|
|
4325
4257
|
ns: ["translation"],
|
|
4326
|
-
fallbackLng: Object.keys(
|
|
4258
|
+
fallbackLng: Object.keys(QM),
|
|
4327
4259
|
fallbackNS: "translation",
|
|
4328
4260
|
partialBundledLanguages: !0,
|
|
4329
4261
|
resources: {},
|
|
@@ -4348,7 +4280,83 @@ hi.use(oT).use(_M).use(Q1).init({
|
|
|
4348
4280
|
]
|
|
4349
4281
|
}
|
|
4350
4282
|
});
|
|
4351
|
-
|
|
4283
|
+
const eL = (e) => {
|
|
4284
|
+
const t = F1(), n = qn(
|
|
4285
|
+
() => e.axiosInstance || Ys,
|
|
4286
|
+
[e.axiosInstance]
|
|
4287
|
+
);
|
|
4288
|
+
window.env || (window.env = {}), window.env.AUTHEN_DOMAIN = new URL(e.baseUrl).origin;
|
|
4289
|
+
const r = ry({
|
|
4290
|
+
queryKey: ["user"],
|
|
4291
|
+
refetchOnWindowFocus: !1,
|
|
4292
|
+
retry: !1,
|
|
4293
|
+
queryFn: () => n.get(e.baseUrl + "/user-management/api/v1/users/my-account").then((i) => (window.user = i.data, i.data))
|
|
4294
|
+
});
|
|
4295
|
+
return Dt(() => {
|
|
4296
|
+
window.onpageshow = function(i) {
|
|
4297
|
+
i.persisted && t.invalidateQueries(["user"]);
|
|
4298
|
+
};
|
|
4299
|
+
}, [t]), r;
|
|
4300
|
+
}, tL = (e) => {
|
|
4301
|
+
const t = F1(), n = qn(
|
|
4302
|
+
() => e.axiosInstance || Ys,
|
|
4303
|
+
[e.axiosInstance]
|
|
4304
|
+
);
|
|
4305
|
+
window.env || (window.env = {}), window.env.AUTHEN_DOMAIN = new URL(e.baseUrl).origin;
|
|
4306
|
+
const r = ry({
|
|
4307
|
+
queryKey: ["user-permissions"],
|
|
4308
|
+
refetchOnWindowFocus: !1,
|
|
4309
|
+
retry: !1,
|
|
4310
|
+
queryFn: () => n.get(
|
|
4311
|
+
e.baseUrl + "/user-management/api/v1/users/my-account/permissions"
|
|
4312
|
+
).then((i) => i.data)
|
|
4313
|
+
});
|
|
4314
|
+
return Dt(() => {
|
|
4315
|
+
window.onpageshow = function(i) {
|
|
4316
|
+
i.persisted && t.invalidateQueries(["user-permissions"]);
|
|
4317
|
+
};
|
|
4318
|
+
}, [t]), r;
|
|
4319
|
+
}, hT = gr({}), RY = (e) => {
|
|
4320
|
+
const { children: t, baseUrl: n, axiosInstance: r } = e, i = new URL(n).origin, o = eL({ axiosInstance: r, baseUrl: n }), s = tL({
|
|
4321
|
+
axiosInstance: r,
|
|
4322
|
+
baseUrl: n
|
|
4323
|
+
});
|
|
4324
|
+
function l() {
|
|
4325
|
+
window.location.href = `${i}/authentication/login`;
|
|
4326
|
+
}
|
|
4327
|
+
function c() {
|
|
4328
|
+
window.location.href = `${i}/authentication/logout`;
|
|
4329
|
+
}
|
|
4330
|
+
return o != null && o.isFetching ? /* @__PURE__ */ Qe(
|
|
4331
|
+
JI,
|
|
4332
|
+
{
|
|
4333
|
+
container: !0,
|
|
4334
|
+
justifyContent: "center",
|
|
4335
|
+
alignItems: "center",
|
|
4336
|
+
sx: { minHeight: "100vh" },
|
|
4337
|
+
children: /* @__PURE__ */ Qe(QI, {})
|
|
4338
|
+
}
|
|
4339
|
+
) : /* @__PURE__ */ Qe(
|
|
4340
|
+
hT.Provider,
|
|
4341
|
+
{
|
|
4342
|
+
value: {
|
|
4343
|
+
user: o == null ? void 0 : o.data,
|
|
4344
|
+
login: l,
|
|
4345
|
+
logout: c,
|
|
4346
|
+
isFetching: o.isFetching,
|
|
4347
|
+
permissions: s == null ? void 0 : s.data
|
|
4348
|
+
},
|
|
4349
|
+
children: t
|
|
4350
|
+
}
|
|
4351
|
+
);
|
|
4352
|
+
}, IY = () => nn(hT);
|
|
4353
|
+
function AY(e, t, n) {
|
|
4354
|
+
return n.some((r) => {
|
|
4355
|
+
const i = e[r];
|
|
4356
|
+
return String(i).toLowerCase().includes(t.toLowerCase());
|
|
4357
|
+
});
|
|
4358
|
+
}
|
|
4359
|
+
function nL() {
|
|
4352
4360
|
const [e, t] = ln();
|
|
4353
4361
|
return Dt(() => {
|
|
4354
4362
|
const n = localStorage.getItem("language");
|
|
@@ -4358,17 +4366,10 @@ function tL() {
|
|
|
4358
4366
|
setLanguage: t
|
|
4359
4367
|
};
|
|
4360
4368
|
}
|
|
4361
|
-
const
|
|
4362
|
-
const t =
|
|
4363
|
-
return /* @__PURE__ */ Qe(
|
|
4364
|
-
}
|
|
4365
|
-
`;
|
|
4366
|
-
function pT({ children: e, styles: t = [], ...n }) {
|
|
4367
|
-
return /* @__PURE__ */ Di("div", { ...n, children: [
|
|
4368
|
-
[nL, ...t].map((r, i) => /* @__PURE__ */ Qe("style", { type: "text/css", children: r }, i)),
|
|
4369
|
-
e
|
|
4370
|
-
] });
|
|
4371
|
-
}
|
|
4369
|
+
const pT = gr({}), MY = () => nn(pT), LY = hi, FY = z1, NY = () => IM(), BY = ({ children: e }) => {
|
|
4370
|
+
const t = nL();
|
|
4371
|
+
return /* @__PURE__ */ Qe(pT.Provider, { value: t, children: /* @__PURE__ */ Qe(AM, { i18n: hi, children: e }) });
|
|
4372
|
+
};
|
|
4372
4373
|
function rL(e) {
|
|
4373
4374
|
var t = typeof e;
|
|
4374
4375
|
return e != null && (t == "object" || t == "function");
|
|
@@ -29014,7 +29015,7 @@ function YY(e) {
|
|
|
29014
29015
|
"div",
|
|
29015
29016
|
{
|
|
29016
29017
|
className: `favorite-bar ${t ? "favorite-bar--visible" : "favorite-bar--hidden"}`,
|
|
29017
|
-
children: /* @__PURE__ */ Qe(OO.div, { children: /* @__PURE__ */ Qe(
|
|
29018
|
+
children: /* @__PURE__ */ Qe(OO.div, { children: /* @__PURE__ */ Qe(X1, { styles: [kT, D4, Y4], children: /* @__PURE__ */ Qe(X4, { ...e }) }) })
|
|
29018
29019
|
}
|
|
29019
29020
|
)
|
|
29020
29021
|
] });
|
|
@@ -29578,7 +29579,7 @@ function IO(e) {
|
|
|
29578
29579
|
}
|
|
29579
29580
|
function GY(e) {
|
|
29580
29581
|
return /* @__PURE__ */ Qe(OO.div, { children: /* @__PURE__ */ Qe(
|
|
29581
|
-
|
|
29582
|
+
X1,
|
|
29582
29583
|
{
|
|
29583
29584
|
styles: [kT, n6, i6],
|
|
29584
29585
|
style: { position: "sticky", zIndex: 1300 },
|
|
@@ -40577,58 +40578,58 @@ function e7(e, t) {
|
|
|
40577
40578
|
dY();
|
|
40578
40579
|
export {
|
|
40579
40580
|
eM as $,
|
|
40580
|
-
|
|
40581
|
-
|
|
40581
|
+
VY as A,
|
|
40582
|
+
IT as B,
|
|
40582
40583
|
VA as C,
|
|
40583
40584
|
ZY as D,
|
|
40584
|
-
|
|
40585
|
-
|
|
40585
|
+
$Y as E,
|
|
40586
|
+
YY as F,
|
|
40586
40587
|
GY as G,
|
|
40587
|
-
|
|
40588
|
+
_O as H,
|
|
40588
40589
|
KY as I,
|
|
40589
|
-
|
|
40590
|
-
|
|
40590
|
+
x4 as J,
|
|
40591
|
+
hT as K,
|
|
40591
40592
|
dT as L,
|
|
40592
|
-
|
|
40593
|
-
|
|
40594
|
-
|
|
40593
|
+
RY as M,
|
|
40594
|
+
NA as N,
|
|
40595
|
+
BA as O,
|
|
40595
40596
|
ds as P,
|
|
40596
40597
|
jY as Q,
|
|
40597
|
-
|
|
40598
|
-
|
|
40599
|
-
|
|
40600
|
-
|
|
40601
|
-
|
|
40602
|
-
|
|
40598
|
+
jA as R,
|
|
40599
|
+
X1 as S,
|
|
40600
|
+
$A as T,
|
|
40601
|
+
EY as U,
|
|
40602
|
+
LY as V,
|
|
40603
|
+
FY as W,
|
|
40603
40604
|
NY as X,
|
|
40604
40605
|
BY as Y,
|
|
40605
40606
|
JA as Z,
|
|
40606
40607
|
qd as _,
|
|
40607
40608
|
Ys as a,
|
|
40608
40609
|
_Y as a0,
|
|
40609
|
-
|
|
40610
|
+
IY as b,
|
|
40610
40611
|
Pi as c,
|
|
40611
40612
|
kY as d,
|
|
40612
40613
|
iA as e,
|
|
40613
40614
|
zi as f,
|
|
40614
40615
|
OY as g,
|
|
40615
|
-
|
|
40616
|
-
|
|
40616
|
+
IM as h,
|
|
40617
|
+
PY as i,
|
|
40617
40618
|
zY as j,
|
|
40618
40619
|
eT as k,
|
|
40619
40620
|
Ou as l,
|
|
40620
40621
|
K5 as m,
|
|
40621
40622
|
Pu as n,
|
|
40622
|
-
|
|
40623
|
+
DY as o,
|
|
40623
40624
|
Wp as p,
|
|
40624
40625
|
vO as q,
|
|
40625
40626
|
XY as r,
|
|
40626
40627
|
qY as s,
|
|
40627
|
-
|
|
40628
|
+
AY as t,
|
|
40628
40629
|
MY as u,
|
|
40629
|
-
|
|
40630
|
-
|
|
40631
|
-
|
|
40632
|
-
|
|
40633
|
-
|
|
40630
|
+
c6 as v,
|
|
40631
|
+
JY as w,
|
|
40632
|
+
R8 as x,
|
|
40633
|
+
QY as y,
|
|
40634
|
+
e7 as z
|
|
40634
40635
|
};
|