@ukpc-lib/react 0.3.7 → 0.3.8
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/index.cjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/index.css +1 -1
- package/dist/{index.module-0ea11708.cjs → index.module-39fc2c0f.cjs} +81 -81
- package/dist/{index.module-9f6a6494.js → index.module-c7a62d0d.js} +5754 -5757
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.cjs +2 -2
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-a4ed3f65.cjs → index-6080355f.cjs} +80 -80
- package/web-components-bundle/{index-cb27eaa1.js → index-6c22052a.js} +5760 -5763
- package/web-components-bundle/{index-0e99320d.js → index-9a8e49f4.js} +173 -173
- package/web-components-bundle/{index-36bec3c6.cjs → index-e2216c19.cjs} +1 -1
|
@@ -295,13 +295,13 @@ function Ee(i) {
|
|
|
295
295
|
}
|
|
296
296
|
return i;
|
|
297
297
|
}
|
|
298
|
-
var
|
|
298
|
+
var pn = function(e, t) {
|
|
299
299
|
var n = $.useRef();
|
|
300
300
|
return $.useEffect(function() {
|
|
301
301
|
n.current = t ? n.current : e;
|
|
302
302
|
}, [e, t]), n.current;
|
|
303
303
|
};
|
|
304
|
-
function
|
|
304
|
+
function gn(i) {
|
|
305
305
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e.i18n, n = $.useContext(_t) || {}, r = n.i18n, a = n.defaultNS, o = t || r || un();
|
|
306
306
|
if (o && !o.reportNamespaces && (o.reportNamespaces = new cn()), !o) {
|
|
307
307
|
Ce("You will need to pass in an i18next instance by using initReactI18next");
|
|
@@ -311,24 +311,24 @@ function pn(i) {
|
|
|
311
311
|
return u.t = s, u.i18n = {}, u.ready = !1, u;
|
|
312
312
|
}
|
|
313
313
|
o.options.react && o.options.react.wait !== void 0 && Ce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
314
|
-
var d = Ee(Ee(Ee({}, on()), o.options.react), e), c = d.useSuspense, f = d.keyPrefix,
|
|
315
|
-
|
|
316
|
-
var
|
|
314
|
+
var d = Ee(Ee(Ee({}, on()), o.options.react), e), c = d.useSuspense, f = d.keyPrefix, p = i || a || o.options && o.options.defaultNS;
|
|
315
|
+
p = typeof p == "string" ? [p] : p || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(p);
|
|
316
|
+
var g = (o.isInitialized || o.initializedStoreOnce) && p.every(function(N) {
|
|
317
317
|
return Zt(N, o, d);
|
|
318
318
|
});
|
|
319
319
|
function y() {
|
|
320
|
-
return o.getFixedT(e.lng || null, d.nsMode === "fallback" ?
|
|
320
|
+
return o.getFixedT(e.lng || null, d.nsMode === "fallback" ? p : p[0], f);
|
|
321
321
|
}
|
|
322
|
-
var b = $.useState(y), w = dn(b, 2), v = w[0], m = w[1], S =
|
|
322
|
+
var b = $.useState(y), w = dn(b, 2), v = w[0], m = w[1], S = p.join();
|
|
323
323
|
e.lng && (S = "".concat(e.lng).concat(S));
|
|
324
|
-
var x =
|
|
324
|
+
var x = pn(S), k = $.useRef(!0);
|
|
325
325
|
$.useEffect(function() {
|
|
326
326
|
var N = d.bindI18n, R = d.bindI18nStore;
|
|
327
|
-
k.current = !0, !
|
|
327
|
+
k.current = !0, !g && !c && (e.lng ? Ke(o, e.lng, p, function() {
|
|
328
328
|
k.current && m(y);
|
|
329
|
-
}) : qe(o,
|
|
329
|
+
}) : qe(o, p, function() {
|
|
330
330
|
k.current && m(y);
|
|
331
|
-
})),
|
|
331
|
+
})), g && x && x !== S && k.current && m(y);
|
|
332
332
|
function _() {
|
|
333
333
|
k.current && m(y);
|
|
334
334
|
}
|
|
@@ -344,13 +344,13 @@ function pn(i) {
|
|
|
344
344
|
$.useEffect(function() {
|
|
345
345
|
k.current && !D.current && m(y), D.current = !1;
|
|
346
346
|
}, [o, f]);
|
|
347
|
-
var I = [v, o,
|
|
348
|
-
if (I.t = v, I.i18n = o, I.ready =
|
|
347
|
+
var I = [v, o, g];
|
|
348
|
+
if (I.t = v, I.i18n = o, I.ready = g, g || !g && !c)
|
|
349
349
|
return I;
|
|
350
350
|
throw new Promise(function(N) {
|
|
351
|
-
e.lng ? Ke(o, e.lng,
|
|
351
|
+
e.lng ? Ke(o, e.lng, p, function() {
|
|
352
352
|
return N();
|
|
353
|
-
}) : qe(o,
|
|
353
|
+
}) : qe(o, p, function() {
|
|
354
354
|
return N();
|
|
355
355
|
});
|
|
356
356
|
});
|
|
@@ -666,7 +666,7 @@ function et(i, e) {
|
|
|
666
666
|
}
|
|
667
667
|
return t;
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function ge(i) {
|
|
670
670
|
for (var e = 1; e < arguments.length; e++) {
|
|
671
671
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
672
672
|
e % 2 ? et(Object(t), !0).forEach(function(n) {
|
|
@@ -758,7 +758,7 @@ var En = function(i) {
|
|
|
758
758
|
}, c = [r, a];
|
|
759
759
|
r.indexOf(".") > -1 && (c = r.split("."), s = o, o = a, a = c[1]), this.addNamespaces(a);
|
|
760
760
|
var f = ye(this.data, c) || {};
|
|
761
|
-
s ? At(f, o, u) : f =
|
|
761
|
+
s ? At(f, o, u) : f = ge(ge({}, f), o), Ze(this.data, c, f), d.silent || this.emit("added", r, a, o);
|
|
762
762
|
}
|
|
763
763
|
}, {
|
|
764
764
|
key: "removeResourceBundle",
|
|
@@ -773,7 +773,7 @@ var En = function(i) {
|
|
|
773
773
|
}, {
|
|
774
774
|
key: "getResourceBundle",
|
|
775
775
|
value: function(r, a) {
|
|
776
|
-
return a || (a = this.options.defaultNS), this.options.compatibilityAPI === "v1" ?
|
|
776
|
+
return a || (a = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? ge(ge({}, {}), this.getResource(r, a)) : this.getResource(r, a);
|
|
777
777
|
}
|
|
778
778
|
}, {
|
|
779
779
|
key: "getDataByLanguage",
|
|
@@ -887,8 +887,8 @@ var nt = {}, rt = function(i) {
|
|
|
887
887
|
key: r,
|
|
888
888
|
namespaces: u
|
|
889
889
|
};
|
|
890
|
-
var
|
|
891
|
-
(o !== s || o === s && this.options.ns.indexOf(
|
|
890
|
+
var p = r.split(o);
|
|
891
|
+
(o !== s || o === s && this.options.ns.indexOf(p[0]) > -1) && (u = p.shift()), r = p.join(s);
|
|
892
892
|
}
|
|
893
893
|
return typeof u == "string" && (u = [u]), {
|
|
894
894
|
key: r,
|
|
@@ -902,24 +902,24 @@ var nt = {}, rt = function(i) {
|
|
|
902
902
|
if (U(a) !== "object" && this.options.overloadTranslationOptionHandler && (a = this.options.overloadTranslationOptionHandler(arguments)), U(a) === "object" && (a = A({}, a)), a || (a = {}), r == null)
|
|
903
903
|
return "";
|
|
904
904
|
Array.isArray(r) || (r = [String(r)]);
|
|
905
|
-
var u = a.returnDetails !== void 0 ? a.returnDetails : this.options.returnDetails, d = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, c = this.extractFromKey(r[r.length - 1], a), f = c.key,
|
|
905
|
+
var u = a.returnDetails !== void 0 ? a.returnDetails : this.options.returnDetails, d = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, c = this.extractFromKey(r[r.length - 1], a), f = c.key, p = c.namespaces, g = p[p.length - 1], y = a.lng || this.language, b = a.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
906
906
|
if (y && y.toLowerCase() === "cimode") {
|
|
907
907
|
if (b) {
|
|
908
908
|
var w = a.nsSeparator || this.options.nsSeparator;
|
|
909
909
|
return u ? {
|
|
910
|
-
res: "".concat(
|
|
910
|
+
res: "".concat(g).concat(w).concat(f),
|
|
911
911
|
usedKey: f,
|
|
912
912
|
exactUsedKey: f,
|
|
913
913
|
usedLng: y,
|
|
914
|
-
usedNS:
|
|
915
|
-
} : "".concat(
|
|
914
|
+
usedNS: g
|
|
915
|
+
} : "".concat(g).concat(w).concat(f);
|
|
916
916
|
}
|
|
917
917
|
return u ? {
|
|
918
918
|
res: f,
|
|
919
919
|
usedKey: f,
|
|
920
920
|
exactUsedKey: f,
|
|
921
921
|
usedLng: y,
|
|
922
|
-
usedNS:
|
|
922
|
+
usedNS: g
|
|
923
923
|
} : f;
|
|
924
924
|
}
|
|
925
925
|
var v = this.resolve(r, a), m = v && v.res, S = v && v.usedKey || f, x = v && v.exactUsedKey || f, k = Object.prototype.toString.apply(m), D = ["[object Number]", "[object Function]", "[object RegExp]"], I = a.joinArrays !== void 0 ? a.joinArrays : this.options.joinArrays, N = !this.i18nFormat || this.i18nFormat.handleAsObject, R = typeof m != "string" && typeof m != "boolean" && typeof m != "number";
|
|
@@ -927,7 +927,7 @@ var nt = {}, rt = function(i) {
|
|
|
927
927
|
if (!a.returnObjects && !this.options.returnObjects) {
|
|
928
928
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
929
929
|
var _ = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, m, A(A({}, a), {}, {
|
|
930
|
-
ns:
|
|
930
|
+
ns: p
|
|
931
931
|
})) : "key '".concat(f, " (").concat(this.language, ")' returned an object instead of string.");
|
|
932
932
|
return u ? (v.res = _, v) : _;
|
|
933
933
|
}
|
|
@@ -938,7 +938,7 @@ var nt = {}, rt = function(i) {
|
|
|
938
938
|
var l = "".concat(Pe).concat(d).concat(q);
|
|
939
939
|
T[q] = this.translate(l, A(A({}, a), {
|
|
940
940
|
joinArrays: !1,
|
|
941
|
-
ns:
|
|
941
|
+
ns: p
|
|
942
942
|
})), T[q] === l && (T[q] = m[q]);
|
|
943
943
|
}
|
|
944
944
|
m = T;
|
|
@@ -950,21 +950,21 @@ var nt = {}, rt = function(i) {
|
|
|
950
950
|
!this.isValidLookup(m) && L && (h = !0, m = K), this.isValidLookup(m) || (O = !0, m = f);
|
|
951
951
|
var je = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, F = je && O ? void 0 : m, z = L && K !== m && this.options.updateMissing;
|
|
952
952
|
if (O || h || z) {
|
|
953
|
-
if (this.logger.log(z ? "updateKey" : "missingKey", y,
|
|
953
|
+
if (this.logger.log(z ? "updateKey" : "missingKey", y, g, f, z ? K : m), d) {
|
|
954
954
|
var Ue = this.resolve(f, A(A({}, a), {}, {
|
|
955
955
|
keySeparator: !1
|
|
956
956
|
}));
|
|
957
957
|
Ue && Ue.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
958
958
|
}
|
|
959
|
-
var ae = [],
|
|
960
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
961
|
-
for (var ke = 0; ke <
|
|
962
|
-
ae.push(
|
|
959
|
+
var ae = [], pe = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
|
|
960
|
+
if (this.options.saveMissingTo === "fallback" && pe && pe[0])
|
|
961
|
+
for (var ke = 0; ke < pe.length; ke++)
|
|
962
|
+
ae.push(pe[ke]);
|
|
963
963
|
else
|
|
964
964
|
this.options.saveMissingTo === "all" ? ae = this.languageUtils.toResolveHierarchy(a.lng || this.language) : ae.push(a.lng || this.language);
|
|
965
965
|
var Be = function(ne, Re, He) {
|
|
966
966
|
var Me = L && He !== m ? He : F;
|
|
967
|
-
s.options.missingKeyHandler ? s.options.missingKeyHandler(ne,
|
|
967
|
+
s.options.missingKeyHandler ? s.options.missingKeyHandler(ne, g, Re, Me, z, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(ne, g, Re, Me, z, a), s.emit("missingKey", ne, g, Re, m);
|
|
968
968
|
};
|
|
969
969
|
this.options.saveMissing && (this.options.saveMissingPlurals && j ? ae.forEach(function(Le) {
|
|
970
970
|
s.pluralResolver.getSuffixes(Le, a).forEach(function(ne) {
|
|
@@ -972,7 +972,7 @@ var nt = {}, rt = function(i) {
|
|
|
972
972
|
});
|
|
973
973
|
}) : Be(ae, f, K));
|
|
974
974
|
}
|
|
975
|
-
m = this.extendTranslation(m, r, a, v, o), O && m === f && this.options.appendNamespaceToMissingKey && (m = "".concat(
|
|
975
|
+
m = this.extendTranslation(m, r, a, v, o), O && m === f && this.options.appendNamespaceToMissingKey && (m = "".concat(g, ":").concat(f)), (O || h) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(g, ":").concat(f) : f, h ? m : void 0) : m = this.options.parseMissingKeyHandler(m));
|
|
976
976
|
}
|
|
977
977
|
return u ? (v.res = m, v) : m;
|
|
978
978
|
}
|
|
@@ -990,11 +990,11 @@ var nt = {}, rt = function(i) {
|
|
|
990
990
|
}));
|
|
991
991
|
var c = typeof r == "string" && (o && o.interpolation && o.interpolation.skipOnVariables !== void 0 ? o.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables), f;
|
|
992
992
|
if (c) {
|
|
993
|
-
var
|
|
994
|
-
f =
|
|
993
|
+
var p = r.match(this.interpolator.nestingRegexp);
|
|
994
|
+
f = p && p.length;
|
|
995
995
|
}
|
|
996
|
-
var
|
|
997
|
-
if (this.options.interpolation.defaultVariables && (
|
|
996
|
+
var g = o.replace && typeof o.replace != "string" ? o.replace : o;
|
|
997
|
+
if (this.options.interpolation.defaultVariables && (g = A(A({}, this.options.interpolation.defaultVariables), g)), r = this.interpolator.interpolate(r, g, o.lng || this.language, o), c) {
|
|
998
998
|
var y = r.match(this.interpolator.nestingRegexp), b = y && y.length;
|
|
999
999
|
f < b && (o.nest = !1);
|
|
1000
1000
|
}
|
|
@@ -1013,11 +1013,11 @@ var nt = {}, rt = function(i) {
|
|
|
1013
1013
|
key: "resolve",
|
|
1014
1014
|
value: function(r) {
|
|
1015
1015
|
var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, u, d, c, f;
|
|
1016
|
-
return typeof r == "string" && (r = [r]), r.forEach(function(
|
|
1016
|
+
return typeof r == "string" && (r = [r]), r.forEach(function(p) {
|
|
1017
1017
|
if (!a.isValidLookup(s)) {
|
|
1018
|
-
var
|
|
1018
|
+
var g = a.extractFromKey(p, o), y = g.key;
|
|
1019
1019
|
u = y;
|
|
1020
|
-
var b =
|
|
1020
|
+
var b = g.namespaces;
|
|
1021
1021
|
a.options.fallbackNS && (b = b.concat(a.options.fallbackNS));
|
|
1022
1022
|
var w = o.count !== void 0 && typeof o.count != "string", v = w && !o.ordinal && o.count === 0 && a.pluralResolver.shouldUseIntlApi(), m = o.context !== void 0 && (typeof o.context == "string" || typeof o.context == "number") && o.context !== "", S = o.lngs ? o.lngs : a.languageUtils.toResolveHierarchy(o.lng || a.language, o.fallbackLng);
|
|
1023
1023
|
b.forEach(function(x) {
|
|
@@ -1475,7 +1475,7 @@ var Fn = function() {
|
|
|
1475
1475
|
function f(w) {
|
|
1476
1476
|
return w.replace(/\$/g, "$$$$");
|
|
1477
1477
|
}
|
|
1478
|
-
var
|
|
1478
|
+
var p = function(v) {
|
|
1479
1479
|
if (v.indexOf(o.formatSeparator) < 0) {
|
|
1480
1480
|
var m = st(n, c, v, o.options.keySeparator, o.options.ignoreJSONStructure);
|
|
1481
1481
|
return o.alwaysFormat ? o.format(m, void 0, r, M(M(M({}, a), n), {}, {
|
|
@@ -1488,7 +1488,7 @@ var Fn = function() {
|
|
|
1488
1488
|
}));
|
|
1489
1489
|
};
|
|
1490
1490
|
this.resetRegExp();
|
|
1491
|
-
var
|
|
1491
|
+
var g = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, y = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables, b = [{
|
|
1492
1492
|
regex: this.regexpUnescape,
|
|
1493
1493
|
safeValue: function(v) {
|
|
1494
1494
|
return f(v);
|
|
@@ -1502,9 +1502,9 @@ var Fn = function() {
|
|
|
1502
1502
|
return b.forEach(function(w) {
|
|
1503
1503
|
for (d = 0; s = w.regex.exec(t); ) {
|
|
1504
1504
|
var v = s[1].trim();
|
|
1505
|
-
if (u =
|
|
1506
|
-
if (typeof
|
|
1507
|
-
var m =
|
|
1505
|
+
if (u = p(v), u === void 0)
|
|
1506
|
+
if (typeof g == "function") {
|
|
1507
|
+
var m = g(t, s, a);
|
|
1508
1508
|
u = typeof m == "string" ? m : "";
|
|
1509
1509
|
} else if (a && Object.prototype.hasOwnProperty.call(a, v))
|
|
1510
1510
|
u = "";
|
|
@@ -1525,35 +1525,35 @@ var Fn = function() {
|
|
|
1525
1525
|
key: "nest",
|
|
1526
1526
|
value: function(t, n) {
|
|
1527
1527
|
var r = this, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o, s, u;
|
|
1528
|
-
function d(
|
|
1528
|
+
function d(g, y) {
|
|
1529
1529
|
var b = this.nestingOptionsSeparator;
|
|
1530
|
-
if (
|
|
1531
|
-
return
|
|
1532
|
-
var w =
|
|
1533
|
-
|
|
1530
|
+
if (g.indexOf(b) < 0)
|
|
1531
|
+
return g;
|
|
1532
|
+
var w = g.split(new RegExp("".concat(b, "[ ]*{"))), v = "{".concat(w[1]);
|
|
1533
|
+
g = w[0], v = this.interpolate(v, u);
|
|
1534
1534
|
var m = v.match(/'/g), S = v.match(/"/g);
|
|
1535
1535
|
(m && m.length % 2 === 0 && !S || S.length % 2 !== 0) && (v = v.replace(/'/g, '"'));
|
|
1536
1536
|
try {
|
|
1537
1537
|
u = JSON.parse(v), y && (u = M(M({}, y), u));
|
|
1538
1538
|
} catch (x) {
|
|
1539
|
-
return this.logger.warn("failed parsing options string in nesting for key ".concat(
|
|
1539
|
+
return this.logger.warn("failed parsing options string in nesting for key ".concat(g), x), "".concat(g).concat(b).concat(v);
|
|
1540
1540
|
}
|
|
1541
|
-
return delete u.defaultValue,
|
|
1541
|
+
return delete u.defaultValue, g;
|
|
1542
1542
|
}
|
|
1543
1543
|
for (; o = this.nestingRegexp.exec(t); ) {
|
|
1544
1544
|
var c = [];
|
|
1545
1545
|
u = M({}, a), u = u.replace && typeof u.replace != "string" ? u.replace : u, u.applyPostProcessor = !1, delete u.defaultValue;
|
|
1546
1546
|
var f = !1;
|
|
1547
1547
|
if (o[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(o[1])) {
|
|
1548
|
-
var
|
|
1549
|
-
return
|
|
1548
|
+
var p = o[1].split(this.formatSeparator).map(function(g) {
|
|
1549
|
+
return g.trim();
|
|
1550
1550
|
});
|
|
1551
|
-
o[1] =
|
|
1551
|
+
o[1] = p.shift(), c = p, f = !0;
|
|
1552
1552
|
}
|
|
1553
1553
|
if (s = n(d.call(this, o[1].trim(), u), u), s && o[0] === t && typeof s != "string")
|
|
1554
1554
|
return s;
|
|
1555
|
-
typeof s != "string" && (s = Ye(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(t)), s = ""), f && (s = c.reduce(function(
|
|
1556
|
-
return r.format(
|
|
1555
|
+
typeof s != "string" && (s = Ye(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(t)), s = ""), f && (s = c.reduce(function(g, y) {
|
|
1556
|
+
return r.format(g, y, a.lng, M(M({}, a), {}, {
|
|
1557
1557
|
interpolationkey: o[1].trim()
|
|
1558
1558
|
}));
|
|
1559
1559
|
}, s.trim())), t = t.replace(o[0], s), this.regexp.lastIndex = 0;
|
|
@@ -1675,18 +1675,18 @@ var Bn = function() {
|
|
|
1675
1675
|
key: "format",
|
|
1676
1676
|
value: function(t, n, r) {
|
|
1677
1677
|
var a = this, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = n.split(this.formatSeparator), u = s.reduce(function(d, c) {
|
|
1678
|
-
var f = Un(c),
|
|
1679
|
-
if (a.formats[
|
|
1678
|
+
var f = Un(c), p = f.formatName, g = f.formatOptions;
|
|
1679
|
+
if (a.formats[p]) {
|
|
1680
1680
|
var y = d;
|
|
1681
1681
|
try {
|
|
1682
1682
|
var b = o && o.formatParams && o.formatParams[o.interpolationkey] || {}, w = b.locale || b.lng || o.locale || o.lng || r;
|
|
1683
|
-
y = a.formats[
|
|
1683
|
+
y = a.formats[p](d, w, G(G(G({}, g), o), b));
|
|
1684
1684
|
} catch (v) {
|
|
1685
1685
|
a.logger.warn(v);
|
|
1686
1686
|
}
|
|
1687
1687
|
return y;
|
|
1688
1688
|
} else
|
|
1689
|
-
a.logger.warn("there was no format function for ".concat(
|
|
1689
|
+
a.logger.warn("there was no format function for ".concat(p));
|
|
1690
1690
|
return d;
|
|
1691
1691
|
}, t);
|
|
1692
1692
|
return u;
|
|
@@ -1751,13 +1751,13 @@ var qn = function(i) {
|
|
|
1751
1751
|
return H(t, [{
|
|
1752
1752
|
key: "queueLoad",
|
|
1753
1753
|
value: function(r, a, o, s) {
|
|
1754
|
-
var u = this, d = {}, c = {}, f = {},
|
|
1755
|
-
return r.forEach(function(
|
|
1754
|
+
var u = this, d = {}, c = {}, f = {}, p = {};
|
|
1755
|
+
return r.forEach(function(g) {
|
|
1756
1756
|
var y = !0;
|
|
1757
1757
|
a.forEach(function(b) {
|
|
1758
|
-
var w = "".concat(
|
|
1759
|
-
!o.reload && u.store.hasResourceBundle(
|
|
1760
|
-
}), y || (f[
|
|
1758
|
+
var w = "".concat(g, "|").concat(b);
|
|
1759
|
+
!o.reload && u.store.hasResourceBundle(g, b) ? u.state[w] = 2 : u.state[w] < 0 || (u.state[w] === 1 ? c[w] === void 0 && (c[w] = !0) : (u.state[w] = 1, y = !1, c[w] === void 0 && (c[w] = !0), d[w] === void 0 && (d[w] = !0), p[b] === void 0 && (p[b] = !0)));
|
|
1760
|
+
}), y || (f[g] = !0);
|
|
1761
1761
|
}), (Object.keys(d).length || Object.keys(c).length) && this.queue.push({
|
|
1762
1762
|
pending: c,
|
|
1763
1763
|
pendingCount: Object.keys(c).length,
|
|
@@ -1768,7 +1768,7 @@ var qn = function(i) {
|
|
|
1768
1768
|
toLoad: Object.keys(d),
|
|
1769
1769
|
pending: Object.keys(c),
|
|
1770
1770
|
toLoadLanguages: Object.keys(f),
|
|
1771
|
-
toLoadNamespaces: Object.keys(
|
|
1771
|
+
toLoadNamespaces: Object.keys(p)
|
|
1772
1772
|
};
|
|
1773
1773
|
}
|
|
1774
1774
|
}, {
|
|
@@ -1778,11 +1778,11 @@ var qn = function(i) {
|
|
|
1778
1778
|
a && this.emit("failedLoading", u, d, a), o && this.store.addResourceBundle(u, d, o), this.state[r] = a ? -1 : 2;
|
|
1779
1779
|
var c = {};
|
|
1780
1780
|
this.queue.forEach(function(f) {
|
|
1781
|
-
On(f.loaded, [u], d), $n(f, r), a && f.errors.push(a), f.pendingCount === 0 && !f.done && (Object.keys(f.loaded).forEach(function(
|
|
1782
|
-
c[
|
|
1783
|
-
var
|
|
1784
|
-
|
|
1785
|
-
c[
|
|
1781
|
+
On(f.loaded, [u], d), $n(f, r), a && f.errors.push(a), f.pendingCount === 0 && !f.done && (Object.keys(f.loaded).forEach(function(p) {
|
|
1782
|
+
c[p] || (c[p] = {});
|
|
1783
|
+
var g = f.loaded[p];
|
|
1784
|
+
g.length && g.forEach(function(y) {
|
|
1785
|
+
c[p][y] === void 0 && (c[p][y] = !0);
|
|
1786
1786
|
});
|
|
1787
1787
|
}), f.done = !0, f.errors.length ? f.callback(f.errors) : f.callback());
|
|
1788
1788
|
}), this.emit("loaded", c), this.queue = this.queue.filter(function(f) {
|
|
@@ -1819,19 +1819,19 @@ var qn = function(i) {
|
|
|
1819
1819
|
return;
|
|
1820
1820
|
}
|
|
1821
1821
|
c(b, w);
|
|
1822
|
-
},
|
|
1823
|
-
if (
|
|
1822
|
+
}, p = this.backend[o].bind(this.backend);
|
|
1823
|
+
if (p.length === 2) {
|
|
1824
1824
|
try {
|
|
1825
|
-
var
|
|
1826
|
-
|
|
1825
|
+
var g = p(r, a);
|
|
1826
|
+
g && typeof g.then == "function" ? g.then(function(y) {
|
|
1827
1827
|
return f(null, y);
|
|
1828
|
-
}).catch(f) : f(null,
|
|
1828
|
+
}).catch(f) : f(null, g);
|
|
1829
1829
|
} catch (y) {
|
|
1830
1830
|
f(y);
|
|
1831
1831
|
}
|
|
1832
1832
|
return;
|
|
1833
1833
|
}
|
|
1834
|
-
return
|
|
1834
|
+
return p(r, a, f);
|
|
1835
1835
|
}
|
|
1836
1836
|
}, {
|
|
1837
1837
|
key: "prepareLoading",
|
|
@@ -1880,18 +1880,18 @@ var qn = function(i) {
|
|
|
1880
1880
|
if (this.backend && this.backend.create) {
|
|
1881
1881
|
var f = ct(ct({}, d), {}, {
|
|
1882
1882
|
isUpdate: u
|
|
1883
|
-
}),
|
|
1884
|
-
if (
|
|
1883
|
+
}), p = this.backend.create.bind(this.backend);
|
|
1884
|
+
if (p.length < 6)
|
|
1885
1885
|
try {
|
|
1886
|
-
var
|
|
1887
|
-
|
|
1886
|
+
var g;
|
|
1887
|
+
p.length === 5 ? g = p(r, a, o, s, f) : g = p(r, a, o, s), g && typeof g.then == "function" ? g.then(function(y) {
|
|
1888
1888
|
return c(null, y);
|
|
1889
|
-
}).catch(c) : c(null,
|
|
1889
|
+
}).catch(c) : c(null, g);
|
|
1890
1890
|
} catch (y) {
|
|
1891
1891
|
c(y);
|
|
1892
1892
|
}
|
|
1893
1893
|
else
|
|
1894
|
-
|
|
1894
|
+
p(r, a, o, s, c, f);
|
|
1895
1895
|
}
|
|
1896
1896
|
!r || !r[0] || this.store.addResource(r[0], a, o, s);
|
|
1897
1897
|
}
|
|
@@ -1962,7 +1962,7 @@ function lt() {
|
|
|
1962
1962
|
function dt(i) {
|
|
1963
1963
|
return typeof i.ns == "string" && (i.ns = [i.ns]), typeof i.fallbackLng == "string" && (i.fallbackLng = [i.fallbackLng]), typeof i.fallbackNS == "string" && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i;
|
|
1964
1964
|
}
|
|
1965
|
-
function
|
|
1965
|
+
function pt(i, e) {
|
|
1966
1966
|
var t = Object.keys(i);
|
|
1967
1967
|
if (Object.getOwnPropertySymbols) {
|
|
1968
1968
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -1975,9 +1975,9 @@ function gt(i, e) {
|
|
|
1975
1975
|
function V(i) {
|
|
1976
1976
|
for (var e = 1; e < arguments.length; e++) {
|
|
1977
1977
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1978
|
-
e % 2 ?
|
|
1978
|
+
e % 2 ? pt(Object(t), !0).forEach(function(n) {
|
|
1979
1979
|
W(i, n, t[n]);
|
|
1980
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
1980
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : pt(Object(t)).forEach(function(n) {
|
|
1981
1981
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1982
1982
|
});
|
|
1983
1983
|
}
|
|
@@ -2067,12 +2067,12 @@ var we = function(i) {
|
|
|
2067
2067
|
});
|
|
2068
2068
|
}
|
|
2069
2069
|
if (this.format = this.options.interpolation.format, o || (o = he), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
2070
|
-
var
|
|
2071
|
-
|
|
2070
|
+
var p = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
2071
|
+
p.length > 0 && p[0] !== "dev" && (this.options.lng = p[0]);
|
|
2072
2072
|
}
|
|
2073
2073
|
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined");
|
|
2074
|
-
var
|
|
2075
|
-
|
|
2074
|
+
var g = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
|
|
2075
|
+
g.forEach(function(v) {
|
|
2076
2076
|
r[v] = function() {
|
|
2077
2077
|
var m;
|
|
2078
2078
|
return (m = r.store)[v].apply(m, arguments);
|
|
@@ -2102,9 +2102,9 @@ var we = function(i) {
|
|
|
2102
2102
|
if (typeof r == "function" && (s = r), !this.options.resources || this.options.partialBundledLanguages) {
|
|
2103
2103
|
if (u && u.toLowerCase() === "cimode")
|
|
2104
2104
|
return s();
|
|
2105
|
-
var d = [], c = function(
|
|
2106
|
-
if (
|
|
2107
|
-
var y = a.services.languageUtils.toResolveHierarchy(
|
|
2105
|
+
var d = [], c = function(g) {
|
|
2106
|
+
if (g) {
|
|
2107
|
+
var y = a.services.languageUtils.toResolveHierarchy(g);
|
|
2108
2108
|
y.forEach(function(b) {
|
|
2109
2109
|
d.indexOf(b) < 0 && d.push(b);
|
|
2110
2110
|
});
|
|
@@ -2114,14 +2114,14 @@ var we = function(i) {
|
|
|
2114
2114
|
c(u);
|
|
2115
2115
|
else {
|
|
2116
2116
|
var f = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
2117
|
-
f.forEach(function(
|
|
2118
|
-
return c(
|
|
2117
|
+
f.forEach(function(p) {
|
|
2118
|
+
return c(p);
|
|
2119
2119
|
});
|
|
2120
2120
|
}
|
|
2121
|
-
this.options.preload && this.options.preload.forEach(function(
|
|
2122
|
-
return c(
|
|
2123
|
-
}), this.services.backendConnector.load(d, this.options.ns, function(
|
|
2124
|
-
!
|
|
2121
|
+
this.options.preload && this.options.preload.forEach(function(p) {
|
|
2122
|
+
return c(p);
|
|
2123
|
+
}), this.services.backendConnector.load(d, this.options.ns, function(p) {
|
|
2124
|
+
!p && !a.resolvedLanguage && a.language && a.setResolvedLanguage(a.language), s(p);
|
|
2125
2125
|
});
|
|
2126
2126
|
} else
|
|
2127
2127
|
s(null);
|
|
@@ -2162,19 +2162,19 @@ var we = function(i) {
|
|
|
2162
2162
|
this.isLanguageChangingTo = r;
|
|
2163
2163
|
var s = oe();
|
|
2164
2164
|
this.emit("languageChanging", r);
|
|
2165
|
-
var u = function(
|
|
2166
|
-
o.language =
|
|
2167
|
-
}, d = function(
|
|
2168
|
-
|
|
2165
|
+
var u = function(p) {
|
|
2166
|
+
o.language = p, o.languages = o.services.languageUtils.toResolveHierarchy(p), o.resolvedLanguage = void 0, o.setResolvedLanguage(p);
|
|
2167
|
+
}, d = function(p, g) {
|
|
2168
|
+
g ? (u(g), o.translator.changeLanguage(g), o.isLanguageChangingTo = void 0, o.emit("languageChanged", g), o.logger.log("languageChanged", g)) : o.isLanguageChangingTo = void 0, s.resolve(function() {
|
|
2169
2169
|
return o.t.apply(o, arguments);
|
|
2170
|
-
}), a && a(
|
|
2170
|
+
}), a && a(p, function() {
|
|
2171
2171
|
return o.t.apply(o, arguments);
|
|
2172
2172
|
});
|
|
2173
|
-
}, c = function(
|
|
2174
|
-
!r && !
|
|
2175
|
-
var
|
|
2176
|
-
|
|
2177
|
-
d(y,
|
|
2173
|
+
}, c = function(p) {
|
|
2174
|
+
!r && !p && o.services.languageDetector && (p = []);
|
|
2175
|
+
var g = typeof p == "string" ? p : o.services.languageUtils.getBestMatchFromCodes(p);
|
|
2176
|
+
g && (o.language || u(g), o.translator.language || o.translator.changeLanguage(g), o.services.languageDetector && o.services.languageDetector.cacheUserLanguage && o.services.languageDetector.cacheUserLanguage(g)), o.loadResources(g, function(y) {
|
|
2177
|
+
d(y, g);
|
|
2178
2178
|
});
|
|
2179
2179
|
};
|
|
2180
2180
|
return !r && this.services.languageDetector && !this.services.languageDetector.async ? c(this.services.languageDetector.detect()) : !r && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(c) : this.services.languageDetector.detect(c) : c(r), s;
|
|
@@ -2183,18 +2183,18 @@ var we = function(i) {
|
|
|
2183
2183
|
key: "getFixedT",
|
|
2184
2184
|
value: function(r, a, o) {
|
|
2185
2185
|
var s = this, u = function d(c, f) {
|
|
2186
|
-
var
|
|
2186
|
+
var p;
|
|
2187
2187
|
if (U(f) !== "object") {
|
|
2188
|
-
for (var
|
|
2188
|
+
for (var g = arguments.length, y = new Array(g > 2 ? g - 2 : 0), b = 2; b < g; b++)
|
|
2189
2189
|
y[b - 2] = arguments[b];
|
|
2190
|
-
|
|
2190
|
+
p = s.options.overloadTranslationOptionHandler([c, f].concat(y));
|
|
2191
2191
|
} else
|
|
2192
|
-
|
|
2193
|
-
|
|
2192
|
+
p = V({}, f);
|
|
2193
|
+
p.lng = p.lng || d.lng, p.lngs = p.lngs || d.lngs, p.ns = p.ns || d.ns, p.keyPrefix = p.keyPrefix || o || d.keyPrefix;
|
|
2194
2194
|
var w = s.options.keySeparator || ".", v;
|
|
2195
|
-
return
|
|
2196
|
-
return "".concat(
|
|
2197
|
-
}) : v =
|
|
2195
|
+
return p.keyPrefix && Array.isArray(c) ? v = c.map(function(m) {
|
|
2196
|
+
return "".concat(p.keyPrefix).concat(w).concat(m);
|
|
2197
|
+
}) : v = p.keyPrefix ? "".concat(p.keyPrefix).concat(w).concat(c) : c, s.t(v, p);
|
|
2198
2198
|
};
|
|
2199
2199
|
return typeof r == "string" ? u.lng = r : u.lngs = r, u.ns = a, u.keyPrefix = o, u;
|
|
2200
2200
|
}
|
|
@@ -2226,8 +2226,8 @@ var we = function(i) {
|
|
|
2226
2226
|
var s = o.lng || this.resolvedLanguage || this.languages[0], u = this.options ? this.options.fallbackLng : !1, d = this.languages[this.languages.length - 1];
|
|
2227
2227
|
if (s.toLowerCase() === "cimode")
|
|
2228
2228
|
return !0;
|
|
2229
|
-
var c = function(
|
|
2230
|
-
var b = a.services.backendConnector.state["".concat(
|
|
2229
|
+
var c = function(g, y) {
|
|
2230
|
+
var b = a.services.backendConnector.state["".concat(g, "|").concat(y)];
|
|
2231
2231
|
return b === -1 || b === 2;
|
|
2232
2232
|
};
|
|
2233
2233
|
if (o.precheck) {
|
|
@@ -2280,9 +2280,9 @@ var we = function(i) {
|
|
|
2280
2280
|
}), u.services = V({}, this.services), u.services.utils = {
|
|
2281
2281
|
hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
|
|
2282
2282
|
}, u.translator = new rt(u.services, u.options), u.translator.on("*", function(c) {
|
|
2283
|
-
for (var f = arguments.length,
|
|
2284
|
-
g
|
|
2285
|
-
u.emit.apply(u, [c].concat(
|
|
2283
|
+
for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0), g = 1; g < f; g++)
|
|
2284
|
+
p[g - 1] = arguments[g];
|
|
2285
|
+
u.emit.apply(u, [c].concat(p));
|
|
2286
2286
|
}), u.init(s, o), u.translator.options = u.options, u.translator.backendConnector.services.utils = {
|
|
2287
2287
|
hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
|
|
2288
2288
|
}, u;
|
|
@@ -2328,7 +2328,7 @@ function Wn(i) {
|
|
|
2328
2328
|
i[t] === void 0 && (i[t] = e[t]);
|
|
2329
2329
|
}), i;
|
|
2330
2330
|
}
|
|
2331
|
-
var
|
|
2331
|
+
var gt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Gn = function(e, t, n) {
|
|
2332
2332
|
var r = n || {};
|
|
2333
2333
|
r.path = r.path || "/";
|
|
2334
2334
|
var a = encodeURIComponent(t), o = "".concat(e, "=").concat(a);
|
|
@@ -2339,12 +2339,12 @@ var pt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Gn = function(e, t, n) {
|
|
|
2339
2339
|
o += "; Max-Age=".concat(Math.floor(s));
|
|
2340
2340
|
}
|
|
2341
2341
|
if (r.domain) {
|
|
2342
|
-
if (!
|
|
2342
|
+
if (!gt.test(r.domain))
|
|
2343
2343
|
throw new TypeError("option domain is invalid");
|
|
2344
2344
|
o += "; Domain=".concat(r.domain);
|
|
2345
2345
|
}
|
|
2346
2346
|
if (r.path) {
|
|
2347
|
-
if (!
|
|
2347
|
+
if (!gt.test(r.path))
|
|
2348
2348
|
throw new TypeError("option path is invalid");
|
|
2349
2349
|
o += "; Path=".concat(r.path);
|
|
2350
2350
|
}
|
|
@@ -2631,15 +2631,15 @@ var Bt = /* @__PURE__ */ function() {
|
|
|
2631
2631
|
var a = this, o = this.backends.length, s = function d(c) {
|
|
2632
2632
|
if (c >= o)
|
|
2633
2633
|
return r(new Error("non of the backend loaded data", !0));
|
|
2634
|
-
var f = c === o - 1,
|
|
2635
|
-
|
|
2636
|
-
if (!y && b && Object.keys(b).length >
|
|
2637
|
-
if (r(null, b, c), u(c - 1, b),
|
|
2634
|
+
var f = c === o - 1, p = a.options.handleEmptyResourcesAsFailed && !f ? 0 : -1, g = a.backends[c];
|
|
2635
|
+
g.read ? yt(g, t, n, function(y, b, w) {
|
|
2636
|
+
if (!y && b && Object.keys(b).length > p) {
|
|
2637
|
+
if (r(null, b, c), u(c - 1, b), g.save && a.options.cacheHitMode && ["refresh", "refreshAndUpdateStore"].indexOf(a.options.cacheHitMode) > -1) {
|
|
2638
2638
|
if (w && a.options.refreshExpirationTime && w + a.options.refreshExpirationTime > Date.now())
|
|
2639
2639
|
return;
|
|
2640
2640
|
var v = a.backends[c + 1];
|
|
2641
2641
|
v && v.read && yt(v, t, n, function(m, S) {
|
|
2642
|
-
m || S && (Object.keys(S).length <=
|
|
2642
|
+
m || S && (Object.keys(S).length <= p || (u(c, S), a.options.cacheHitMode === "refreshAndUpdateStore" && a.services && a.services.resourceStore && a.services.resourceStore.addResourceBundle(t, n, S)));
|
|
2643
2643
|
});
|
|
2644
2644
|
}
|
|
2645
2645
|
} else
|
|
@@ -2647,8 +2647,8 @@ var Bt = /* @__PURE__ */ function() {
|
|
|
2647
2647
|
}) : d(c + 1);
|
|
2648
2648
|
}, u = function d(c, f) {
|
|
2649
2649
|
if (!(c < 0)) {
|
|
2650
|
-
var
|
|
2651
|
-
|
|
2650
|
+
var p = a.backends[c];
|
|
2651
|
+
p.save && p.save(t, n, f), d(c - 1, f);
|
|
2652
2652
|
}
|
|
2653
2653
|
};
|
|
2654
2654
|
s(0);
|
|
@@ -2682,17 +2682,17 @@ var Bt = /* @__PURE__ */ function() {
|
|
|
2682
2682
|
var t = this, n = this.services, r = n.backendConnector, a = n.languageUtils, o = n.logger, s = r.language;
|
|
2683
2683
|
if (!(s && s.toLowerCase() === "cimode")) {
|
|
2684
2684
|
var u = [], d = function(f) {
|
|
2685
|
-
var
|
|
2686
|
-
|
|
2687
|
-
u.indexOf(
|
|
2685
|
+
var p = a.toResolveHierarchy(f);
|
|
2686
|
+
p.forEach(function(g) {
|
|
2687
|
+
u.indexOf(g) < 0 && u.push(g);
|
|
2688
2688
|
});
|
|
2689
2689
|
};
|
|
2690
2690
|
d(s), this.allOptions.preload && this.allOptions.preload.forEach(function(c) {
|
|
2691
2691
|
return d(c);
|
|
2692
2692
|
}), u.forEach(function(c) {
|
|
2693
2693
|
t.allOptions.ns.forEach(function(f) {
|
|
2694
|
-
r.read(c, f, "read", null, null, function(
|
|
2695
|
-
|
|
2694
|
+
r.read(c, f, "read", null, null, function(p, g) {
|
|
2695
|
+
p && o.warn("loading namespace ".concat(f, " for language ").concat(c, " failed"), p), !p && g && o.log("loaded namespace ".concat(f, " for language ").concat(c), g), r.loaded("".concat(c, "|").concat(f), p, g);
|
|
2696
2696
|
});
|
|
2697
2697
|
});
|
|
2698
2698
|
});
|
|
@@ -2718,11 +2718,11 @@ function lr(i) {
|
|
|
2718
2718
|
function dr(i) {
|
|
2719
2719
|
return lr(i) ? i : Promise.resolve(i);
|
|
2720
2720
|
}
|
|
2721
|
-
function
|
|
2721
|
+
function pr(i) {
|
|
2722
2722
|
throw new Error('Could not dynamically require "' + i + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
2723
2723
|
}
|
|
2724
2724
|
var De = { exports: {} }, ve = { exports: {} }, bt;
|
|
2725
|
-
function
|
|
2725
|
+
function gr() {
|
|
2726
2726
|
return bt || (bt = 1, function(i, e) {
|
|
2727
2727
|
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof fe < "u" && fe, n = function() {
|
|
2728
2728
|
function a() {
|
|
@@ -2762,12 +2762,12 @@ function pr() {
|
|
|
2762
2762
|
], f = ArrayBuffer.isView || function(l) {
|
|
2763
2763
|
return l && c.indexOf(Object.prototype.toString.call(l)) > -1;
|
|
2764
2764
|
};
|
|
2765
|
-
function
|
|
2765
|
+
function p(l) {
|
|
2766
2766
|
if (typeof l != "string" && (l = String(l)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(l) || l === "")
|
|
2767
2767
|
throw new TypeError('Invalid character in header field name: "' + l + '"');
|
|
2768
2768
|
return l.toLowerCase();
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2770
|
+
function g(l) {
|
|
2771
2771
|
return typeof l != "string" && (l = String(l)), l;
|
|
2772
2772
|
}
|
|
2773
2773
|
function y(l) {
|
|
@@ -2791,17 +2791,17 @@ function pr() {
|
|
|
2791
2791
|
}, this);
|
|
2792
2792
|
}
|
|
2793
2793
|
b.prototype.append = function(l, h) {
|
|
2794
|
-
l =
|
|
2794
|
+
l = p(l), h = g(h);
|
|
2795
2795
|
var O = this.map[l];
|
|
2796
2796
|
this.map[l] = O ? O + ", " + h : h;
|
|
2797
2797
|
}, b.prototype.delete = function(l) {
|
|
2798
|
-
delete this.map[
|
|
2798
|
+
delete this.map[p(l)];
|
|
2799
2799
|
}, b.prototype.get = function(l) {
|
|
2800
|
-
return l =
|
|
2800
|
+
return l = p(l), this.has(l) ? this.map[l] : null;
|
|
2801
2801
|
}, b.prototype.has = function(l) {
|
|
2802
|
-
return this.map.hasOwnProperty(
|
|
2802
|
+
return this.map.hasOwnProperty(p(l));
|
|
2803
2803
|
}, b.prototype.set = function(l, h) {
|
|
2804
|
-
this.map[
|
|
2804
|
+
this.map[p(l)] = g(h);
|
|
2805
2805
|
}, b.prototype.forEach = function(l, h) {
|
|
2806
2806
|
for (var O in this.map)
|
|
2807
2807
|
this.map.hasOwnProperty(O) && l.call(h, this.map[O], O, this);
|
|
@@ -3022,7 +3022,7 @@ function pr() {
|
|
|
3022
3022
|
}
|
|
3023
3023
|
}
|
|
3024
3024
|
P.open(L.method, je(L.url), !0), L.credentials === "include" ? P.withCredentials = !0 : L.credentials === "omit" && (P.withCredentials = !1), "responseType" in P && (u.blob ? P.responseType = "blob" : u.arrayBuffer && L.headers.get("Content-Type") && L.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (P.responseType = "arraybuffer")), h && typeof h.headers == "object" && !(h.headers instanceof b) ? Object.getOwnPropertyNames(h.headers).forEach(function(F) {
|
|
3025
|
-
P.setRequestHeader(F,
|
|
3025
|
+
P.setRequestHeader(F, g(h.headers[F]));
|
|
3026
3026
|
}) : L.headers.forEach(function(F, z) {
|
|
3027
3027
|
P.setRequestHeader(z, F);
|
|
3028
3028
|
}), L.signal && (L.signal.addEventListener("abort", K), P.onreadystatechange = function() {
|
|
@@ -3039,8 +3039,8 @@ function pr() {
|
|
|
3039
3039
|
}
|
|
3040
3040
|
(function(i, e) {
|
|
3041
3041
|
var t;
|
|
3042
|
-
if (typeof fetch == "function" && (typeof fe < "u" && fe.fetch ? t = fe.fetch : typeof window < "u" && window.fetch ? t = window.fetch : t = fetch), typeof
|
|
3043
|
-
var n = t ||
|
|
3042
|
+
if (typeof fetch == "function" && (typeof fe < "u" && fe.fetch ? t = fe.fetch : typeof window < "u" && window.fetch ? t = window.fetch : t = fetch), typeof pr < "u" && (typeof window > "u" || typeof window.document > "u")) {
|
|
3043
|
+
var n = t || gr();
|
|
3044
3044
|
n.default && (n = n.default), e.default = n, i.exports = e.default;
|
|
3045
3045
|
}
|
|
3046
3046
|
})(De, De.exports);
|
|
@@ -3321,15 +3321,15 @@ var Pr = function() {
|
|
|
3321
3321
|
return n("failed loading " + t + ": " + c.message, !0);
|
|
3322
3322
|
if (c)
|
|
3323
3323
|
return n(c, !1);
|
|
3324
|
-
var
|
|
3324
|
+
var p, g;
|
|
3325
3325
|
try {
|
|
3326
|
-
typeof f.data == "string" ?
|
|
3326
|
+
typeof f.data == "string" ? p = o.options.parse(f.data, r, a) : p = f.data;
|
|
3327
3327
|
} catch {
|
|
3328
|
-
|
|
3328
|
+
g = "failed parsing " + t + " to json";
|
|
3329
3329
|
}
|
|
3330
|
-
if (
|
|
3331
|
-
return n(
|
|
3332
|
-
n(null,
|
|
3330
|
+
if (g)
|
|
3331
|
+
return n(g, !1);
|
|
3332
|
+
n(null, p);
|
|
3333
3333
|
});
|
|
3334
3334
|
}
|
|
3335
3335
|
}, {
|
|
@@ -3339,11 +3339,11 @@ var Pr = function() {
|
|
|
3339
3339
|
if (this.options.addPath) {
|
|
3340
3340
|
typeof t == "string" && (t = [t]);
|
|
3341
3341
|
var u = this.options.parsePayload(n, r, a), d = 0, c = [], f = [];
|
|
3342
|
-
t.forEach(function(
|
|
3343
|
-
var
|
|
3344
|
-
typeof s.options.addPath == "function" && (
|
|
3345
|
-
var y = s.services.interpolator.interpolate(
|
|
3346
|
-
lng:
|
|
3342
|
+
t.forEach(function(p) {
|
|
3343
|
+
var g = s.options.addPath;
|
|
3344
|
+
typeof s.options.addPath == "function" && (g = s.options.addPath(p, n));
|
|
3345
|
+
var y = s.services.interpolator.interpolate(g, {
|
|
3346
|
+
lng: p,
|
|
3347
3347
|
ns: n
|
|
3348
3348
|
});
|
|
3349
3349
|
s.options.request(s.options, y, u, function(b, w) {
|
|
@@ -3358,17 +3358,17 @@ var Pr = function() {
|
|
|
3358
3358
|
var t = this, n = this.services, r = n.backendConnector, a = n.languageUtils, o = n.logger, s = r.language;
|
|
3359
3359
|
if (!(s && s.toLowerCase() === "cimode")) {
|
|
3360
3360
|
var u = [], d = function(f) {
|
|
3361
|
-
var
|
|
3362
|
-
|
|
3363
|
-
u.indexOf(
|
|
3361
|
+
var p = a.toResolveHierarchy(f);
|
|
3362
|
+
p.forEach(function(g) {
|
|
3363
|
+
u.indexOf(g) < 0 && u.push(g);
|
|
3364
3364
|
});
|
|
3365
3365
|
};
|
|
3366
3366
|
d(s), this.allOptions.preload && this.allOptions.preload.forEach(function(c) {
|
|
3367
3367
|
return d(c);
|
|
3368
3368
|
}), u.forEach(function(c) {
|
|
3369
3369
|
t.allOptions.ns.forEach(function(f) {
|
|
3370
|
-
r.read(c, f, "read", null, null, function(
|
|
3371
|
-
|
|
3370
|
+
r.read(c, f, "read", null, null, function(p, g) {
|
|
3371
|
+
p && o.warn("loading namespace ".concat(f, " for language ").concat(c, " failed"), p), !p && g && o.log("loaded namespace ".concat(f, " for language ").concat(c), g), r.loaded("".concat(c, "|").concat(f), p, g);
|
|
3372
3372
|
});
|
|
3373
3373
|
});
|
|
3374
3374
|
});
|
|
@@ -3406,13 +3406,13 @@ C.use(Bt).use(fn).use(Ft).init({
|
|
|
3406
3406
|
}
|
|
3407
3407
|
});
|
|
3408
3408
|
const me = {
|
|
3409
|
-
"page-container": "_page-
|
|
3410
|
-
"page-main-content": "_page-main-
|
|
3411
|
-
"page-title": "_page-
|
|
3412
|
-
"text-base": "_text-
|
|
3413
|
-
"mt-4": "_mt-
|
|
3409
|
+
"page-container": "_page-container_1pwo1_1",
|
|
3410
|
+
"page-main-content": "_page-main-content_1pwo1_8",
|
|
3411
|
+
"page-title": "_page-title_1pwo1_19",
|
|
3412
|
+
"text-base": "_text-base_1pwo1_26",
|
|
3413
|
+
"mt-4": "_mt-4_1pwo1_33"
|
|
3414
3414
|
}, Lr = () => {
|
|
3415
|
-
const { t: i } =
|
|
3415
|
+
const { t: i } = gn();
|
|
3416
3416
|
return /* @__PURE__ */ E.jsx("div", { className: "unauth__container " + me["page-container"], children: /* @__PURE__ */ E.jsxs("div", { className: "unauth__main-content " + me["page-main-content"], children: [
|
|
3417
3417
|
/* @__PURE__ */ E.jsx(Rr, {}),
|
|
3418
3418
|
/* @__PURE__ */ E.jsxs("div", { className: "unauth__main-text", children: [
|