@ukpc-lib/react 0.10.29-dev.2 → 0.10.31-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Notification/models/NotiticationDto.d.ts +1 -3
- package/dist/components/index.cjs +23 -23
- package/dist/components/index.js +2375 -2420
- package/dist/{index.esm2017-7b80133e.cjs → index.esm2017-14522630.cjs} +6 -6
- package/dist/{index.esm2017-fb7717a2.js → index.esm2017-8114465d.js} +204 -203
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +8 -8
- package/dist/theme/SaasThemeProvider.d.ts +1 -0
- 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-ec9d43e3.js → index-7c8fbf6b.js} +10019 -10063
|
@@ -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 VI, useLayoutEffect as Ks, isValidElement as Fc, cloneElement as Ad, useCallback as ty, forwardRef as Bp, memo as HI, useImperativeHandle as UI, useInsertionEffect as WI, useId as zI, PureComponent as YI } from "react";
|
|
5
5
|
import GI from "axios";
|
|
6
6
|
import qI from "moment";
|
|
7
7
|
import { createTheme as XI, ThemeProvider as KI, Grid as ZI, CircularProgress as JI, Tooltip as Md, styled as QI, Switch as eA } from "@mui/material";
|
|
@@ -2837,7 +2837,7 @@ function eM(e) {
|
|
|
2837
2837
|
QA((p = v == null ? void 0 : v.theme) == null ? void 0 : p.favicon);
|
|
2838
2838
|
}
|
|
2839
2839
|
}
|
|
2840
|
-
), r = JA(Pi, (l = t == null ? void 0 : t.theme) == null ? void 0 : l.keyColor), i = ZA({ colors: r }), o = (c = t == null ? void 0 : t.theme) == null ? void 0 : c.image, s = (d = t == null ? void 0 : t.theme) == null ? void 0 : d.icon;
|
|
2840
|
+
), r = e != null && e.defaultColorsOverride ? e.defaultColorsOverride : JA(Pi, (l = t == null ? void 0 : t.theme) == null ? void 0 : l.keyColor), i = ZA({ colors: r }), o = (c = t == null ? void 0 : t.theme) == null ? void 0 : c.image, s = (d = t == null ? void 0 : t.theme) == null ? void 0 : d.icon;
|
|
2841
2841
|
return {
|
|
2842
2842
|
colors: r,
|
|
2843
2843
|
theme: i,
|
|
@@ -2851,91 +2851,23 @@ const Y1 = gr({}), EY = () => nn(Y1), kY = (e) => {
|
|
|
2851
2851
|
var o;
|
|
2852
2852
|
const { children: t, brandTheme: n } = e, r = eM(n), i = ((o = e.customTheme) == null ? void 0 : o.call(e, r.colors)) || r.theme;
|
|
2853
2853
|
return /* @__PURE__ */ Qe(Y1.Provider, { value: r, children: /* @__PURE__ */ Qe(KI, { theme: i, children: t }) });
|
|
2854
|
-
}, tM = (
|
|
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
|
-
}, nM = (e) => {
|
|
2872
|
-
const t = M1(), 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 = ny({
|
|
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
|
-
}, G1 = gr({}), OY = (e) => {
|
|
2891
|
-
const { children: t, baseUrl: n, axiosInstance: r } = e, i = new URL(n).origin, o = tM({ axiosInstance: r, baseUrl: n }), s = nM({
|
|
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
|
-
ZI,
|
|
2903
|
-
{
|
|
2904
|
-
container: !0,
|
|
2905
|
-
justifyContent: "center",
|
|
2906
|
-
alignItems: "center",
|
|
2907
|
-
sx: { minHeight: "100vh" },
|
|
2908
|
-
children: /* @__PURE__ */ Qe(JI, {})
|
|
2909
|
-
}
|
|
2910
|
-
) : /* @__PURE__ */ Qe(
|
|
2911
|
-
G1.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
|
-
}, _Y = () => nn(G1);
|
|
2924
|
-
function DY(e, t, n) {
|
|
2925
|
-
return n.some((r) => {
|
|
2926
|
-
const i = e[r];
|
|
2927
|
-
return String(i).toLowerCase().includes(t.toLowerCase());
|
|
2928
|
-
});
|
|
2854
|
+
}, tM = `*,: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 G1({ children: e, styles: t = [], ...n }) {
|
|
2857
|
+
return /* @__PURE__ */ Di("div", { ...n, children: [
|
|
2858
|
+
[tM, ...t].map((r, i) => /* @__PURE__ */ Qe("style", { type: "text/css", children: r }, i)),
|
|
2859
|
+
e
|
|
2860
|
+
] });
|
|
2929
2861
|
}
|
|
2930
|
-
var q1 = [],
|
|
2931
|
-
function
|
|
2932
|
-
return
|
|
2862
|
+
var q1 = [], nM = q1.forEach, rM = q1.slice;
|
|
2863
|
+
function iM(e) {
|
|
2864
|
+
return nM.call(rM.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 Rb = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,
|
|
2870
|
+
var Rb = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, oM = 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 Rb = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, aM = 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 = oM(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 Rb = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, aM = function(t, n, r) {
|
|
|
3000
2932
|
remove: function(t) {
|
|
3001
2933
|
this.create(t, "", -1);
|
|
3002
2934
|
}
|
|
3003
|
-
},
|
|
2935
|
+
}, aM = {
|
|
3004
2936
|
name: "cookie",
|
|
3005
2937
|
lookup: function(t) {
|
|
3006
2938
|
var n;
|
|
@@ -3013,7 +2945,7 @@ var Rb = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, aM = function(t, n, r) {
|
|
|
3013
2945
|
cacheUserLanguage: function(t, n) {
|
|
3014
2946
|
n.lookupCookie && typeof document < "u" && Ib.create(n.lookupCookie, t, n.cookieMinutes, n.cookieDomain, n.cookieOptions);
|
|
3015
2947
|
}
|
|
3016
|
-
},
|
|
2948
|
+
}, sM = {
|
|
3017
2949
|
name: "querystring",
|
|
3018
2950
|
lookup: function(t) {
|
|
3019
2951
|
var n;
|
|
@@ -3041,7 +2973,7 @@ var Rb = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, aM = function(t, n, r) {
|
|
|
3041
2973
|
sd = !1;
|
|
3042
2974
|
}
|
|
3043
2975
|
return sd;
|
|
3044
|
-
},
|
|
2976
|
+
}, lM = {
|
|
3045
2977
|
name: "localStorage",
|
|
3046
2978
|
lookup: function(t) {
|
|
3047
2979
|
var n;
|
|
@@ -3065,7 +2997,7 @@ var Rb = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, aM = function(t, n, r) {
|
|
|
3065
2997
|
ld = !1;
|
|
3066
2998
|
}
|
|
3067
2999
|
return ld;
|
|
3068
|
-
},
|
|
3000
|
+
}, uM = {
|
|
3069
3001
|
name: "sessionStorage",
|
|
3070
3002
|
lookup: function(t) {
|
|
3071
3003
|
var n;
|
|
@@ -3078,7 +3010,7 @@ var Rb = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, aM = function(t, n, r) {
|
|
|
3078
3010
|
cacheUserLanguage: function(t, n) {
|
|
3079
3011
|
n.lookupSessionStorage && Mb() && window.sessionStorage.setItem(n.lookupSessionStorage, t);
|
|
3080
3012
|
}
|
|
3081
|
-
},
|
|
3013
|
+
}, cM = {
|
|
3082
3014
|
name: "navigator",
|
|
3083
3015
|
lookup: function(t) {
|
|
3084
3016
|
var n = [];
|
|
@@ -3090,13 +3022,13 @@ var Rb = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, aM = function(t, n, r) {
|
|
|
3090
3022
|
}
|
|
3091
3023
|
return n.length > 0 ? n : void 0;
|
|
3092
3024
|
}
|
|
3093
|
-
},
|
|
3025
|
+
}, fM = {
|
|
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
|
+
}, dM = {
|
|
3100
3032
|
name: "path",
|
|
3101
3033
|
lookup: function(t) {
|
|
3102
3034
|
var n;
|
|
@@ -3112,7 +3044,7 @@ var Rb = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, aM = function(t, n, r) {
|
|
|
3112
3044
|
}
|
|
3113
3045
|
return n;
|
|
3114
3046
|
}
|
|
3115
|
-
},
|
|
3047
|
+
}, hM = {
|
|
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 K1 = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
3128
3060
|
X1 || K1.splice(1, 1);
|
|
3129
|
-
function
|
|
3061
|
+
function pM() {
|
|
3130
3062
|
return {
|
|
3131
3063
|
order: K1,
|
|
3132
3064
|
lookupQuerystring: "lng",
|
|
@@ -3154,9 +3086,9 @@ var Z1 = /* @__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 = iM(r, this.options || {}, pM()), 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(sM), this.addDetector(lM), this.addDetector(uM), this.addDetector(cM), this.addDetector(fM), this.addDetector(dM), this.addDetector(hM)
|
|
3091
|
+
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = i, this.addDetector(aM), this.addDetector(sM), this.addDetector(lM), this.addDetector(uM), this.addDetector(cM), this.addDetector(fM), this.addDetector(dM), this.addDetector(hM);
|
|
3160
3092
|
}
|
|
3161
3093
|
}, {
|
|
3162
3094
|
key: "addDetector",
|
|
@@ -3201,7 +3133,7 @@ function J1(e, t) {
|
|
|
3201
3133
|
}
|
|
3202
3134
|
return n;
|
|
3203
3135
|
}
|
|
3204
|
-
const
|
|
3136
|
+
const OY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3205
3137
|
__proto__: null,
|
|
3206
3138
|
default: J1
|
|
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 _Y(e) {
|
|
3213
3145
|
if (e.__esModule)
|
|
3214
3146
|
return e;
|
|
3215
3147
|
var t = e.default;
|
|
@@ -3230,7 +3162,7 @@ function RY(e) {
|
|
|
3230
3162
|
});
|
|
3231
3163
|
}), n;
|
|
3232
3164
|
}
|
|
3233
|
-
function
|
|
3165
|
+
function gM() {
|
|
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 Lb = {};
|
|
|
3241
3173
|
function Zv() {
|
|
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" && Lb[t[0]] || (typeof t[0] == "string" && (Lb[t[0]] = /* @__PURE__ */ new Date()),
|
|
3176
|
+
typeof t[0] == "string" && Lb[t[0]] || (typeof t[0] == "string" && (Lb[t[0]] = /* @__PURE__ */ new Date()), gM.apply(void 0, t));
|
|
3245
3177
|
}
|
|
3246
3178
|
var Q1 = function(t, n) {
|
|
3247
3179
|
return function() {
|
|
@@ -3265,7 +3197,7 @@ function Nb(e, t, n, r) {
|
|
|
3265
3197
|
e.options.ns.indexOf(i) < 0 && e.options.ns.push(i);
|
|
3266
3198
|
}), e.loadLanguages(t, Q1(e, r));
|
|
3267
3199
|
}
|
|
3268
|
-
function
|
|
3200
|
+
function vM(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 mM(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 mM(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 Zv("i18n.languages were undefined or empty", t.languages), !0;
|
|
@@ -3286,9 +3218,9 @@ function yM(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
|
+
}) : vM(e, t, n);
|
|
3290
3222
|
}
|
|
3291
|
-
var
|
|
3223
|
+
var yM = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, bM = {
|
|
3292
3224
|
"&": "&",
|
|
3293
3225
|
"&": "&",
|
|
3294
3226
|
"<": "<",
|
|
@@ -3309,10 +3241,10 @@ var bM = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
3309
3241
|
"…": "…",
|
|
3310
3242
|
"/": "/",
|
|
3311
3243
|
"/": "/"
|
|
3244
|
+
}, wM = function(t) {
|
|
3245
|
+
return bM[t];
|
|
3312
3246
|
}, SM = function(t) {
|
|
3313
|
-
return wM
|
|
3314
|
-
}, xM = function(t) {
|
|
3315
|
-
return t.replace(bM, SM);
|
|
3247
|
+
return t.replace(yM, wM);
|
|
3316
3248
|
};
|
|
3317
3249
|
function Bb(e, t) {
|
|
3318
3250
|
var n = Object.keys(e);
|
|
@@ -3343,28 +3275,28 @@ var Jv = {
|
|
|
3343
3275
|
transWrapTextNodes: "",
|
|
3344
3276
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
3345
3277
|
useSuspense: !0,
|
|
3346
|
-
unescape:
|
|
3278
|
+
unescape: SM
|
|
3347
3279
|
};
|
|
3348
|
-
function
|
|
3280
|
+
function xM() {
|
|
3349
3281
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3350
3282
|
Jv = jb(jb({}, Jv), e);
|
|
3351
3283
|
}
|
|
3352
|
-
function
|
|
3284
|
+
function TM() {
|
|
3353
3285
|
return Jv;
|
|
3354
3286
|
}
|
|
3355
3287
|
var eT;
|
|
3356
|
-
function
|
|
3288
|
+
function CM(e) {
|
|
3357
3289
|
eT = e;
|
|
3358
3290
|
}
|
|
3359
|
-
function
|
|
3291
|
+
function EM() {
|
|
3360
3292
|
return eT;
|
|
3361
3293
|
}
|
|
3362
|
-
var
|
|
3294
|
+
var kM = {
|
|
3363
3295
|
type: "3rdParty",
|
|
3364
3296
|
init: function(t) {
|
|
3365
|
-
|
|
3297
|
+
xM(t.options.react), CM(t);
|
|
3366
3298
|
}
|
|
3367
|
-
}, tT = gr(),
|
|
3299
|
+
}, tT = gr(), OM = function() {
|
|
3368
3300
|
function e() {
|
|
3369
3301
|
la(this, e), this.usedNamespaces = {};
|
|
3370
3302
|
}
|
|
@@ -3383,7 +3315,7 @@ var OM = {
|
|
|
3383
3315
|
}
|
|
3384
3316
|
}]), e;
|
|
3385
3317
|
}();
|
|
3386
|
-
function
|
|
3318
|
+
function _M(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 DM(e, t) {
|
|
|
3409
3341
|
return l;
|
|
3410
3342
|
}
|
|
3411
3343
|
}
|
|
3412
|
-
function
|
|
3413
|
-
return B1(e) ||
|
|
3344
|
+
function DM(e, t) {
|
|
3345
|
+
return B1(e) || _M(e, t) || j1(e, t) || $1();
|
|
3414
3346
|
}
|
|
3415
3347
|
function $b(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 PM = 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(tT) || {}, i = r.i18n, o = r.defaultNS, s = n || i ||
|
|
3444
|
-
if (s && !s.reportNamespaces && (s.reportNamespaces = new
|
|
3374
|
+
function RM(e) {
|
|
3375
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.i18n, r = nn(tT) || {}, i = r.i18n, o = r.defaultNS, s = n || i || EM();
|
|
3376
|
+
if (s && !s.reportNamespaces && (s.reportNamespaces = new OM()), !s) {
|
|
3445
3377
|
Zv("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 IM(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 && Zv("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({}, TM()), 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 mM(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 = DM(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 = PM(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 ? Nb(s, t.lng, S, function() {
|
|
@@ -3493,7 +3425,7 @@ function IM(e) {
|
|
|
3493
3425
|
});
|
|
3494
3426
|
});
|
|
3495
3427
|
}
|
|
3496
|
-
function
|
|
3428
|
+
function IM(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 AM(e) {
|
|
|
3504
3436
|
value: i
|
|
3505
3437
|
}, r);
|
|
3506
3438
|
}
|
|
3507
|
-
var nT = [],
|
|
3508
|
-
function
|
|
3509
|
-
return
|
|
3439
|
+
var nT = [], AM = nT.forEach, MM = nT.slice;
|
|
3440
|
+
function LM(e) {
|
|
3441
|
+
return AM.call(MM.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 FM(e) {
|
|
3516
3448
|
return e ? typeof e == "function" ? new e() : e : null;
|
|
3517
3449
|
}
|
|
3518
|
-
function
|
|
3450
|
+
function NM() {
|
|
3519
3451
|
return {
|
|
3520
3452
|
handleEmptyResourcesAsFailed: !0,
|
|
3521
3453
|
cacheHitMode: "none"
|
|
@@ -3547,8 +3479,8 @@ var rT = /* @__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 = LM(i, this.options || {}, NM()), this.allOptions = o, this.options.backends && this.options.backends.forEach(function(s, l) {
|
|
3483
|
+
r.backends[l] = r.backends[l] || FM(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 Qv(e) {
|
|
|
3640
3572
|
function iT() {
|
|
3641
3573
|
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Qv(XMLHttpRequest)) === "object";
|
|
3642
3574
|
}
|
|
3643
|
-
function
|
|
3575
|
+
function BM(e) {
|
|
3644
3576
|
return !!e && typeof e.then == "function";
|
|
3645
3577
|
}
|
|
3646
|
-
function
|
|
3647
|
-
return
|
|
3578
|
+
function jM(e) {
|
|
3579
|
+
return BM(e) ? e : Promise.resolve(e);
|
|
3648
3580
|
}
|
|
3649
|
-
function
|
|
3581
|
+
function $M(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 em = { exports: {} }, Eh = { exports: {} }, Hb;
|
|
3653
|
-
function
|
|
3585
|
+
function VM() {
|
|
3654
3586
|
return Hb || (Hb = 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 HM() {
|
|
|
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 $M < "u" && typeof window > "u") {
|
|
3903
|
+
var r = n || VM();
|
|
3972
3904
|
r.default && (r = r.default), t.default = r, e.exports = t.default;
|
|
3973
3905
|
}
|
|
3974
3906
|
})(em, em.exports);
|
|
@@ -3991,21 +3923,21 @@ function zb(e) {
|
|
|
3991
3923
|
for (var t = 1; t < arguments.length; t++) {
|
|
3992
3924
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
3993
3925
|
t % 2 ? Wb(Object(n), !0).forEach(function(r) {
|
|
3994
|
-
|
|
3926
|
+
HM(e, r, n[r]);
|
|
3995
3927
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Wb(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 HM(e, t, n) {
|
|
3934
|
+
return (t = UM(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 UM(e) {
|
|
3937
|
+
var t = WM(e, "string");
|
|
4006
3938
|
return $c(t) == "symbol" ? t : t + "";
|
|
4007
3939
|
}
|
|
4008
|
-
function
|
|
3940
|
+
function WM(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 tm = 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
|
-
}, Gb = !1,
|
|
3999
|
+
}, Gb = !1, zM = function(t, n, r, i) {
|
|
4068
4000
|
t.queryStringParams && (n = tm(n, t.queryStringParams));
|
|
4069
4001
|
var o = zb({}, 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 tm = function(t, n) {
|
|
|
4086
4018
|
i(v);
|
|
4087
4019
|
}
|
|
4088
4020
|
}
|
|
4089
|
-
},
|
|
4021
|
+
}, YM = function(t, n, r, i) {
|
|
4090
4022
|
r && $c(r) === "object" && (r = tm("", r).slice(1)), t.queryStringParams && (n = tm(n, t.queryStringParams));
|
|
4091
4023
|
try {
|
|
4092
4024
|
var o;
|
|
@@ -4104,12 +4036,12 @@ var tm = function(t, n) {
|
|
|
4104
4036
|
} catch (c) {
|
|
4105
4037
|
console && console.log(c);
|
|
4106
4038
|
}
|
|
4107
|
-
},
|
|
4039
|
+
}, GM = 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 zM(t, n, r, i);
|
|
4111
4043
|
if (iT() || typeof ActiveXObject == "function")
|
|
4112
|
-
return
|
|
4044
|
+
return YM(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 qM(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 Xb(e, t) {
|
|
|
4151
4083
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, lT(r.key), r);
|
|
4152
4084
|
}
|
|
4153
4085
|
}
|
|
4154
|
-
function
|
|
4086
|
+
function XM(e, t, n) {
|
|
4155
4087
|
return t && Xb(e.prototype, t), n && Xb(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
4156
4088
|
}
|
|
4157
4089
|
function sT(e, t, n) {
|
|
4158
4090
|
return (t = lT(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
4159
4091
|
}
|
|
4160
4092
|
function lT(e) {
|
|
4161
|
-
var t =
|
|
4093
|
+
var t = KM(e, "string");
|
|
4162
4094
|
return jf(t) == "symbol" ? t : t + "";
|
|
4163
4095
|
}
|
|
4164
|
-
function
|
|
4096
|
+
function KM(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 ZM(e, t) {
|
|
|
4173
4105
|
}
|
|
4174
4106
|
return (t === "string" ? String : Number)(e);
|
|
4175
4107
|
}
|
|
4176
|
-
var
|
|
4108
|
+
var ZM = function() {
|
|
4177
4109
|
return {
|
|
4178
4110
|
loadPath: "/locales/{{lng}}/{{ns}}.json",
|
|
4179
4111
|
addPath: "/locales/add/{{lng}}/{{ns}}",
|
|
@@ -4186,7 +4118,7 @@ var JM = function() {
|
|
|
4186
4118
|
},
|
|
4187
4119
|
parseLoadPayload: function(n, r) {
|
|
4188
4120
|
},
|
|
4189
|
-
request:
|
|
4121
|
+
request: GM,
|
|
4190
4122
|
reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
|
|
4191
4123
|
customHeaders: {},
|
|
4192
4124
|
queryStringParams: {},
|
|
@@ -4202,13 +4134,13 @@ var JM = function() {
|
|
|
4202
4134
|
}, uT = 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
|
+
qM(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 XM(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({}, ZM()), 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 JM = 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 = jM(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 JM = function() {
|
|
|
4314
4246
|
}();
|
|
4315
4247
|
uT.type = "backend";
|
|
4316
4248
|
var cT = /* @__PURE__ */ ((e) => (e.en = "en", e.de = "de", e))(cT || {});
|
|
4317
|
-
const
|
|
4249
|
+
const JM = {
|
|
4318
4250
|
en: "English",
|
|
4319
4251
|
de: "German"
|
|
4320
4252
|
};
|
|
4321
|
-
hi.use(rT).use(
|
|
4253
|
+
hi.use(rT).use(kM).use(Z1).init({
|
|
4322
4254
|
// defaultNS: "translation",
|
|
4323
4255
|
// resources,
|
|
4324
4256
|
initImmediate: !0,
|
|
4325
4257
|
ns: ["translation"],
|
|
4326
|
-
fallbackLng: Object.keys(
|
|
4258
|
+
fallbackLng: Object.keys(JM),
|
|
4327
4259
|
fallbackNS: "translation",
|
|
4328
4260
|
partialBundledLanguages: !0,
|
|
4329
4261
|
resources: {},
|
|
@@ -4348,7 +4280,83 @@ hi.use(rT).use(OM).use(Z1).init({
|
|
|
4348
4280
|
]
|
|
4349
4281
|
}
|
|
4350
4282
|
});
|
|
4351
|
-
|
|
4283
|
+
const QM = (e) => {
|
|
4284
|
+
const t = M1(), 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 = ny({
|
|
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
|
+
}, eL = (e) => {
|
|
4301
|
+
const t = M1(), 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 = ny({
|
|
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
|
+
}, fT = gr({}), DY = (e) => {
|
|
4320
|
+
const { children: t, baseUrl: n, axiosInstance: r } = e, i = new URL(n).origin, o = QM({ axiosInstance: r, baseUrl: n }), s = eL({
|
|
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
|
+
ZI,
|
|
4332
|
+
{
|
|
4333
|
+
container: !0,
|
|
4334
|
+
justifyContent: "center",
|
|
4335
|
+
alignItems: "center",
|
|
4336
|
+
sx: { minHeight: "100vh" },
|
|
4337
|
+
children: /* @__PURE__ */ Qe(JI, {})
|
|
4338
|
+
}
|
|
4339
|
+
) : /* @__PURE__ */ Qe(
|
|
4340
|
+
fT.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
|
+
}, PY = () => nn(fT);
|
|
4353
|
+
function RY(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 tL() {
|
|
4352
4360
|
const [e, t] = ln();
|
|
4353
4361
|
return Dt(() => {
|
|
4354
4362
|
const n = localStorage.getItem("language");
|
|
@@ -4358,17 +4366,10 @@ function eL() {
|
|
|
4358
4366
|
setLanguage: t
|
|
4359
4367
|
};
|
|
4360
4368
|
}
|
|
4361
|
-
const
|
|
4362
|
-
const t =
|
|
4363
|
-
return /* @__PURE__ */ Qe(
|
|
4364
|
-
}
|
|
4365
|
-
`;
|
|
4366
|
-
function dT({ children: e, styles: t = [], ...n }) {
|
|
4367
|
-
return /* @__PURE__ */ Di("div", { ...n, children: [
|
|
4368
|
-
[tL, ...t].map((r, i) => /* @__PURE__ */ Qe("style", { type: "text/css", children: r }, i)),
|
|
4369
|
-
e
|
|
4370
|
-
] });
|
|
4371
|
-
}
|
|
4369
|
+
const dT = gr({}), IY = () => nn(dT), AY = hi, MY = U1, LY = () => RM(), FY = ({ children: e }) => {
|
|
4370
|
+
const t = tL();
|
|
4371
|
+
return /* @__PURE__ */ Qe(dT.Provider, { value: t, children: /* @__PURE__ */ Qe(IM, { i18n: hi, children: e }) });
|
|
4372
|
+
};
|
|
4372
4373
|
function nL(e) {
|
|
4373
4374
|
var t = typeof e;
|
|
4374
4375
|
return e != null && (t == "object" || t == "function");
|
|
@@ -29014,7 +29015,7 @@ function WY(e) {
|
|
|
29014
29015
|
"div",
|
|
29015
29016
|
{
|
|
29016
29017
|
className: `favorite-bar ${t ? "favorite-bar--visible" : "favorite-bar--hidden"}`,
|
|
29017
|
-
children: /* @__PURE__ */ Qe(EO.div, { children: /* @__PURE__ */ Qe(
|
|
29018
|
+
children: /* @__PURE__ */ Qe(EO.div, { children: /* @__PURE__ */ Qe(G1, { styles: [CT, _4, z4], children: /* @__PURE__ */ Qe(q4, { ...e }) }) })
|
|
29018
29019
|
}
|
|
29019
29020
|
)
|
|
29020
29021
|
] });
|
|
@@ -29259,7 +29260,7 @@ function e6(e) {
|
|
|
29259
29260
|
}
|
|
29260
29261
|
);
|
|
29261
29262
|
}
|
|
29262
|
-
const t6 = `.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:
|
|
29263
|
+
const t6 = `.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link.expanded.level-0{padding:.5rem 10px}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.menu-item__link.collapsed.level-0{padding:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-0{height:48px}.menu-item__dropdown.collapsed.level-0{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
|
|
29263
29264
|
`, n6 = (e) => {
|
|
29264
29265
|
const t = e.isCollapsed ? 0 : e.depth * 16;
|
|
29265
29266
|
return /* @__PURE__ */ Qe(
|
|
@@ -29578,7 +29579,7 @@ function PO(e) {
|
|
|
29578
29579
|
}
|
|
29579
29580
|
function zY(e) {
|
|
29580
29581
|
return /* @__PURE__ */ Qe(EO.div, { children: /* @__PURE__ */ Qe(
|
|
29581
|
-
|
|
29582
|
+
G1,
|
|
29582
29583
|
{
|
|
29583
29584
|
styles: [CT, t6, r6],
|
|
29584
29585
|
style: { position: "sticky", zIndex: 1300 },
|
|
@@ -40574,58 +40575,58 @@ function JY(e, t) {
|
|
|
40574
40575
|
cY();
|
|
40575
40576
|
export {
|
|
40576
40577
|
QA as $,
|
|
40577
|
-
|
|
40578
|
-
|
|
40578
|
+
jY as A,
|
|
40579
|
+
PT as B,
|
|
40579
40580
|
$A as C,
|
|
40580
40581
|
XY as D,
|
|
40581
|
-
|
|
40582
|
-
|
|
40582
|
+
BY as E,
|
|
40583
|
+
WY as F,
|
|
40583
40584
|
zY as G,
|
|
40584
|
-
|
|
40585
|
+
kO as H,
|
|
40585
40586
|
qY as I,
|
|
40586
|
-
|
|
40587
|
-
|
|
40587
|
+
S4 as J,
|
|
40588
|
+
fT as K,
|
|
40588
40589
|
cT as L,
|
|
40589
|
-
|
|
40590
|
-
|
|
40591
|
-
|
|
40590
|
+
DY as M,
|
|
40591
|
+
FA as N,
|
|
40592
|
+
NA as O,
|
|
40592
40593
|
ds as P,
|
|
40593
40594
|
NY as Q,
|
|
40594
|
-
|
|
40595
|
-
|
|
40596
|
-
|
|
40597
|
-
|
|
40598
|
-
|
|
40599
|
-
|
|
40595
|
+
BA as R,
|
|
40596
|
+
G1 as S,
|
|
40597
|
+
jA as T,
|
|
40598
|
+
TY as U,
|
|
40599
|
+
AY as V,
|
|
40600
|
+
MY as W,
|
|
40600
40601
|
LY as X,
|
|
40601
40602
|
FY as Y,
|
|
40602
40603
|
ZA as Z,
|
|
40603
40604
|
qd as _,
|
|
40604
40605
|
Ys as a,
|
|
40605
40606
|
kY as a0,
|
|
40606
|
-
|
|
40607
|
+
PY as b,
|
|
40607
40608
|
Pi as c,
|
|
40608
40609
|
CY as d,
|
|
40609
40610
|
rA as e,
|
|
40610
40611
|
zi as f,
|
|
40611
40612
|
EY as g,
|
|
40612
|
-
|
|
40613
|
-
|
|
40613
|
+
RM as h,
|
|
40614
|
+
_Y as i,
|
|
40614
40615
|
UY as j,
|
|
40615
40616
|
J1 as k,
|
|
40616
40617
|
Ou as l,
|
|
40617
40618
|
X5 as m,
|
|
40618
40619
|
Pu as n,
|
|
40619
|
-
|
|
40620
|
+
OY as o,
|
|
40620
40621
|
Wp as p,
|
|
40621
40622
|
pO as q,
|
|
40622
40623
|
GY as r,
|
|
40623
40624
|
YY as s,
|
|
40624
|
-
|
|
40625
|
+
RY as t,
|
|
40625
40626
|
IY as u,
|
|
40626
|
-
|
|
40627
|
-
|
|
40628
|
-
|
|
40629
|
-
|
|
40630
|
-
|
|
40627
|
+
u6 as v,
|
|
40628
|
+
KY as w,
|
|
40629
|
+
D8 as x,
|
|
40630
|
+
ZY as y,
|
|
40631
|
+
JY as z
|
|
40631
40632
|
};
|