@spscommerce/i18n 8.34.7 → 8.34.9

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/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createContext as Et, useContext as ut, createElement as le, isValidElement as ce, cloneElement as ie, useState as Rt, useRef as Pe, useEffect as Ee } from "react";
1
+ import { createContext as Et, useContext as ut, createElement as le, isValidElement as ce, cloneElement as ie, useState as Rt, useRef as Oe, useEffect as Ee } from "react";
2
2
  function At(n, t) {
3
3
  for (var a = 0; a < t.length; a++) {
4
4
  const e = t[a];
@@ -435,23 +435,23 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
435
435
  }
436
436
  return u;
437
437
  }
438
- var y = this.resolve(e, r), g = y && y.res, b = y && y.usedKey || u, w = y && y.exactUsedKey || u, x = Object.prototype.toString.apply(g), D = ["[object Number]", "[object Function]", "[object RegExp]"], k = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, S = !this.i18nFormat || this.i18nFormat.handleAsObject, P = typeof g != "string" && typeof g != "boolean" && typeof g != "number";
439
- if (S && g && P && D.indexOf(x) < 0 && !(typeof k == "string" && x === "[object Array]")) {
438
+ var y = this.resolve(e, r), g = y && y.res, b = y && y.usedKey || u, w = y && y.exactUsedKey || u, S = Object.prototype.toString.apply(g), D = ["[object Number]", "[object Function]", "[object RegExp]"], k = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, x = !this.i18nFormat || this.i18nFormat.handleAsObject, O = typeof g != "string" && typeof g != "boolean" && typeof g != "number";
439
+ if (x && g && O && D.indexOf(S) < 0 && !(typeof k == "string" && S === "[object Array]")) {
440
440
  if (!r.returnObjects && !this.options.returnObjects)
441
441
  return this.logger.warn("accessing an object - but returnObjects options is not enabled!"), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, g, r) : "key '".concat(u, " (").concat(this.language, ")' returned an object instead of string.");
442
442
  if (s) {
443
- var E = x === "[object Array]", R = E ? [] : {}, L = E ? w : b;
444
- for (var O in g)
445
- if (Object.prototype.hasOwnProperty.call(g, O)) {
446
- var W = "".concat(L).concat(s).concat(O);
447
- R[O] = this.translate(W, N({}, r, {
443
+ var E = S === "[object Array]", R = E ? [] : {}, L = E ? w : b;
444
+ for (var P in g)
445
+ if (Object.prototype.hasOwnProperty.call(g, P)) {
446
+ var W = "".concat(L).concat(s).concat(P);
447
+ R[P] = this.translate(W, N({}, r, {
448
448
  joinArrays: !1,
449
449
  ns: d
450
- })), R[O] === W && (R[O] = g[O]);
450
+ })), R[P] === W && (R[P] = g[P]);
451
451
  }
452
452
  g = R;
453
453
  }
454
- } else if (S && typeof k == "string" && x === "[object Array]")
454
+ } else if (x && typeof k == "string" && S === "[object Array]")
455
455
  g = g.join(k), g && (g = this.extendTranslation(g, e, r, i));
456
456
  else {
457
457
  var I = !1, c = !1, h = r.count !== void 0 && typeof r.count != "string", T = t.hasDefaultValue(r), B = h ? this.pluralResolver.getSuffix(v, r.count) : "", A = r["defaultValue".concat(B)] || r.defaultValue;
@@ -472,9 +472,9 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
472
472
  var je = function(X, we, Fe) {
473
473
  o.options.missingKeyHandler ? o.options.missingKeyHandler(X, f, we, C ? Fe : g, C, r) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(X, f, we, C ? Fe : g, C, r), o.emit("missingKey", X, f, we, g);
474
474
  };
475
- this.options.saveMissing && (this.options.saveMissingPlurals && h ? F.forEach(function(Se) {
476
- o.pluralResolver.getSuffixes(Se).forEach(function(X) {
477
- je([Se], u + X, r["defaultValue".concat(X)] || A);
475
+ this.options.saveMissing && (this.options.saveMissingPlurals && h ? F.forEach(function(xe) {
476
+ o.pluralResolver.getSuffixes(xe).forEach(function(X) {
477
+ je([xe], u + X, r["defaultValue".concat(X)] || A);
478
478
  });
479
479
  }) : je(F, u, A));
480
480
  }
@@ -505,8 +505,8 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
505
505
  d < p && (i.nest = !1);
506
506
  }
507
507
  i.nest !== !1 && (e = this.interpolator.nest(e, function() {
508
- for (var b = arguments.length, w = new Array(b), x = 0; x < b; x++)
509
- w[x] = arguments[x];
508
+ for (var b = arguments.length, w = new Array(b), S = 0; S < b; S++)
509
+ w[S] = arguments[S];
510
510
  return s && s[0] === w[0] && !i.context ? (l.logger.warn("It seems you are nesting recursively key: ".concat(w[0], " in key: ").concat(r[0])), null) : l.translate.apply(l, w.concat([r]));
511
511
  }, i)), i.interpolation && this.interpolator.reset();
512
512
  }
@@ -527,18 +527,18 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
527
527
  r.options.fallbackNS && (p = p.concat(r.options.fallbackNS));
528
528
  var y = i.count !== void 0 && typeof i.count != "string", g = i.context !== void 0 && typeof i.context == "string" && i.context !== "", b = i.lngs ? i.lngs : r.languageUtils.toResolveHierarchy(i.lng || r.language, i.fallbackLng);
529
529
  p.forEach(function(w) {
530
- r.isValidLookup(o) || (d = w, !He["".concat(b[0], "-").concat(w)] && r.utils && r.utils.hasLoadedNamespace && !r.utils.hasLoadedNamespace(d) && (He["".concat(b[0], "-").concat(w)] = !0, r.logger.warn('key "'.concat(s, '" for languages "').concat(b.join(", "), `" won't get resolved as namespace "`).concat(d, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), b.forEach(function(x) {
530
+ r.isValidLookup(o) || (d = w, !He["".concat(b[0], "-").concat(w)] && r.utils && r.utils.hasLoadedNamespace && !r.utils.hasLoadedNamespace(d) && (He["".concat(b[0], "-").concat(w)] = !0, r.logger.warn('key "'.concat(s, '" for languages "').concat(b.join(", "), `" won't get resolved as namespace "`).concat(d, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), b.forEach(function(S) {
531
531
  if (!r.isValidLookup(o)) {
532
- u = x;
532
+ u = S;
533
533
  var D = m, k = [D];
534
534
  if (r.i18nFormat && r.i18nFormat.addLookupKeys)
535
- r.i18nFormat.addLookupKeys(k, m, x, w, i);
535
+ r.i18nFormat.addLookupKeys(k, m, S, w, i);
536
536
  else {
537
- var S;
538
- y && (S = r.pluralResolver.getSuffix(x, i.count)), y && g && k.push(D + S), g && k.push(D += "".concat(r.options.contextSeparator).concat(i.context)), y && k.push(D += S);
537
+ var x;
538
+ y && (x = r.pluralResolver.getSuffix(S, i.count)), y && g && k.push(D + x), g && k.push(D += "".concat(r.options.contextSeparator).concat(i.context)), y && k.push(D += x);
539
539
  }
540
- for (var P; P = k.pop(); )
541
- r.isValidLookup(o) || (l = P, o = r.getResource(x, w, P, i));
540
+ for (var O; O = k.pop(); )
541
+ r.isValidLookup(o) || (l = O, o = r.getResource(S, w, O, i));
542
542
  }
543
543
  }));
544
544
  });
@@ -573,7 +573,7 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
573
573
  }
574
574
  }]), t;
575
575
  }(Q);
576
- function xe(n) {
576
+ function Se(n) {
577
577
  return n.charAt(0).toUpperCase() + n.slice(1);
578
578
  }
579
579
  var zt = function() {
@@ -601,7 +601,7 @@ var zt = function() {
601
601
  var e = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], r = a.split("-");
602
602
  return this.options.lowerCaseLng ? r = r.map(function(i) {
603
603
  return i.toLowerCase();
604
- }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = xe(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = xe(r[1].toLowerCase())), e.indexOf(r[2].toLowerCase()) > -1 && (r[2] = xe(r[2].toLowerCase()))), r.join("-");
604
+ }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Se(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Se(r[1].toLowerCase())), e.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Se(r[2].toLowerCase()))), r.join("-");
605
605
  }
606
606
  return this.options.cleanCode || this.options.lowerCaseLng ? a.toLowerCase() : a;
607
607
  }
@@ -922,7 +922,7 @@ var Vt = function() {
922
922
  var w = _e(e, d, b);
923
923
  return o.alwaysFormat ? o.format(w, void 0, r) : w;
924
924
  }
925
- var x = b.split(o.formatSeparator), D = x.shift().trim(), k = x.join(o.formatSeparator).trim();
925
+ var S = b.split(o.formatSeparator), D = S.shift().trim(), k = S.join(o.formatSeparator).trim();
926
926
  return o.format(_e(e, d, D), k, r, i);
927
927
  };
928
928
  this.resetRegExp();
@@ -1693,7 +1693,7 @@ function ya(n, t) {
1693
1693
  var a = U({}, t);
1694
1694
  return a.props = Object.assign(n.props, t.props), a;
1695
1695
  }
1696
- function St(n, t) {
1696
+ function xt(n, t) {
1697
1697
  if (!n) return "";
1698
1698
  var a = "", e = ee(n), r = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
1699
1699
  return e.forEach(function(i, o) {
@@ -1710,7 +1710,7 @@ function St(n, t) {
1710
1710
  else if (l && s === 1 && typeof u == "string")
1711
1711
  a += "<".concat(i.type, ">").concat(u, "</").concat(i.type, ">");
1712
1712
  else {
1713
- var d = St(u, t);
1713
+ var d = xt(u, t);
1714
1714
  a += "<".concat(o, ">").concat(d, "</").concat(o, ">");
1715
1715
  }
1716
1716
  } else if (i === null)
@@ -1740,68 +1740,68 @@ function ba(n, t, a, e, r, i) {
1740
1740
  u(n);
1741
1741
  var d = na.parse("<0>".concat(t, "</0>")), f = U(U({}, l), r);
1742
1742
  function v(g, b, w) {
1743
- var x = Le(g), D = p(x, b.children, w);
1744
- return va(x) && D.length === 0 ? x : D;
1743
+ var S = Le(g), D = p(S, b.children, w);
1744
+ return va(S) && D.length === 0 ? S : D;
1745
1745
  }
1746
- function m(g, b, w, x, D) {
1746
+ function m(g, b, w, S, D) {
1747
1747
  g.dummy && (g.children = b), w.push(ie(g, U(U({}, g.props), {}, {
1748
- key: x
1748
+ key: S
1749
1749
  }), D ? void 0 : b));
1750
1750
  }
1751
1751
  function p(g, b, w) {
1752
- var x = ee(g), D = ee(b);
1753
- return D.reduce(function(k, S, P) {
1754
- var E = S.children && S.children[0] && S.children[0].content && a.services.interpolator.interpolate(S.children[0].content, f, a.language);
1755
- if (S.type === "tag") {
1756
- var R = x[parseInt(S.name, 10)];
1757
- !R && w.length === 1 && w[0][S.name] && (R = w[0][S.name]), R || (R = {});
1758
- var L = Object.keys(S.attrs).length !== 0 ? ya({
1759
- props: S.attrs
1760
- }, R) : R, O = ce(L), W = O && Ce(S, !0) && !S.voidElement, I = s && j(L) === "object" && L.dummy && !O, c = j(n) === "object" && n !== null && Object.hasOwnProperty.call(n, S.name);
1752
+ var S = ee(g), D = ee(b);
1753
+ return D.reduce(function(k, x, O) {
1754
+ var E = x.children && x.children[0] && x.children[0].content && a.services.interpolator.interpolate(x.children[0].content, f, a.language);
1755
+ if (x.type === "tag") {
1756
+ var R = S[parseInt(x.name, 10)];
1757
+ !R && w.length === 1 && w[0][x.name] && (R = w[0][x.name]), R || (R = {});
1758
+ var L = Object.keys(x.attrs).length !== 0 ? ya({
1759
+ props: x.attrs
1760
+ }, R) : R, P = ce(L), W = P && Ce(x, !0) && !x.voidElement, I = s && j(L) === "object" && L.dummy && !P, c = j(n) === "object" && n !== null && Object.hasOwnProperty.call(n, x.name);
1761
1761
  if (typeof L == "string") {
1762
1762
  var h = a.services.interpolator.interpolate(L, f, a.language);
1763
1763
  k.push(h);
1764
1764
  } else if (Ce(L) || W) {
1765
- var T = v(L, S, w);
1766
- m(L, T, k, P);
1765
+ var T = v(L, x, w);
1766
+ m(L, T, k, O);
1767
1767
  } else if (I) {
1768
- var B = p(x, S.children, w);
1768
+ var B = p(S, x.children, w);
1769
1769
  k.push(ie(L, U(U({}, L.props), {}, {
1770
- key: P
1770
+ key: O
1771
1771
  }), B));
1772
- } else if (Number.isNaN(parseFloat(S.name)))
1772
+ } else if (Number.isNaN(parseFloat(x.name)))
1773
1773
  if (c) {
1774
- var A = v(L, S, w);
1775
- m(L, A, k, P, S.voidElement);
1776
- } else if (e.transSupportBasicHtmlNodes && o.indexOf(S.name) > -1)
1777
- if (S.voidElement)
1778
- k.push(le(S.name, {
1779
- key: "".concat(S.name, "-").concat(P)
1774
+ var A = v(L, x, w);
1775
+ m(L, A, k, O, x.voidElement);
1776
+ } else if (e.transSupportBasicHtmlNodes && o.indexOf(x.name) > -1)
1777
+ if (x.voidElement)
1778
+ k.push(le(x.name, {
1779
+ key: "".concat(x.name, "-").concat(O)
1780
1780
  }));
1781
1781
  else {
1782
- var C = p(x, S.children, w);
1783
- k.push(le(S.name, {
1784
- key: "".concat(S.name, "-").concat(P)
1782
+ var C = p(S, x.children, w);
1783
+ k.push(le(x.name, {
1784
+ key: "".concat(x.name, "-").concat(O)
1785
1785
  }, C));
1786
1786
  }
1787
- else if (S.voidElement)
1788
- k.push("<".concat(S.name, " />"));
1787
+ else if (x.voidElement)
1788
+ k.push("<".concat(x.name, " />"));
1789
1789
  else {
1790
- var H = p(x, S.children, w);
1791
- k.push("<".concat(S.name, ">").concat(H, "</").concat(S.name, ">"));
1790
+ var H = p(S, x.children, w);
1791
+ k.push("<".concat(x.name, ">").concat(H, "</").concat(x.name, ">"));
1792
1792
  }
1793
- else if (j(L) === "object" && !O) {
1794
- var F = S.children[0] ? E : null;
1793
+ else if (j(L) === "object" && !P) {
1794
+ var F = x.children[0] ? E : null;
1795
1795
  F && k.push(F);
1796
- } else S.children.length === 1 && E ? k.push(ie(L, U(U({}, L.props), {}, {
1797
- key: P
1796
+ } else x.children.length === 1 && E ? k.push(ie(L, U(U({}, L.props), {}, {
1797
+ key: O
1798
1798
  }), E)) : k.push(ie(L, U(U({}, L.props), {}, {
1799
- key: P
1799
+ key: O
1800
1800
  })));
1801
- } else if (S.type === "text") {
1802
- var M = e.transWrapTextNodes, Z = i ? e.unescape(a.services.interpolator.interpolate(S.content, f, a.language)) : a.services.interpolator.interpolate(S.content, f, a.language);
1801
+ } else if (x.type === "text") {
1802
+ var M = e.transWrapTextNodes, Z = i ? e.unescape(a.services.interpolator.interpolate(x.content, f, a.language)) : a.services.interpolator.interpolate(x.content, f, a.language);
1803
1803
  M ? k.push(le(M, {
1804
- key: "".concat(S.name, "-").concat(P)
1804
+ key: "".concat(x.name, "-").concat(O)
1805
1805
  }, Z)) : k.push(Z);
1806
1806
  }
1807
1807
  return k;
@@ -1813,33 +1813,33 @@ function ba(n, t, a, e, r, i) {
1813
1813
  }], d, ee(n || []));
1814
1814
  return Le(y[0]);
1815
1815
  }
1816
- function Sa(n) {
1817
- var t = n.children, a = n.count, e = n.parent, r = n.i18nKey, i = n.context, o = n.tOptions, s = o === void 0 ? {} : o, l = n.values, u = n.defaults, d = n.components, f = n.ns, v = n.i18n, m = n.t, p = n.shouldUnescape, y = pt(n, ma), g = ut(vt) || {}, b = g.i18n, w = g.defaultNS, x = v || b || bt();
1818
- if (!x)
1816
+ function xa(n) {
1817
+ var t = n.children, a = n.count, e = n.parent, r = n.i18nKey, i = n.context, o = n.tOptions, s = o === void 0 ? {} : o, l = n.values, u = n.defaults, d = n.components, f = n.ns, v = n.i18n, m = n.t, p = n.shouldUnescape, y = pt(n, ma), g = ut(vt) || {}, b = g.i18n, w = g.defaultNS, S = v || b || bt();
1818
+ if (!S)
1819
1819
  return fe("You will need to pass in an i18next instance by using i18nextReactModule"), t;
1820
- var D = m || x.t.bind(x) || function(h) {
1820
+ var D = m || S.t.bind(S) || function(h) {
1821
1821
  return h;
1822
1822
  };
1823
1823
  i && (s.context = i);
1824
- var k = U(U({}, yt()), x.options && x.options.react), S = f || D.ns || w || x.options && x.options.defaultNS;
1825
- S = typeof S == "string" ? [S] : S || ["translation"];
1826
- var P = u || St(t, k) || k.transEmptyNodeValue || r, E = k.hashTransKey, R = r || (E ? E(P) : P), L = l ? s.interpolation : {
1824
+ var k = U(U({}, yt()), S.options && S.options.react), x = f || D.ns || w || S.options && S.options.defaultNS;
1825
+ x = typeof x == "string" ? [x] : x || ["translation"];
1826
+ var O = u || xt(t, k) || k.transEmptyNodeValue || r, E = k.hashTransKey, R = r || (E ? E(O) : O), L = l ? s.interpolation : {
1827
1827
  interpolation: U(U({}, s.interpolation), {}, {
1828
1828
  prefix: "#$?",
1829
1829
  suffix: "?$#"
1830
1830
  })
1831
- }, O = U(U(U(U({}, s), {}, {
1831
+ }, P = U(U(U(U({}, s), {}, {
1832
1832
  count: a
1833
1833
  }, l), L), {}, {
1834
- defaultValue: P,
1835
- ns: S
1836
- }), W = R ? D(R, O) : P, I = ba(d || t, W, x, k, O, p), c = e !== void 0 ? e : k.defaultTransParent;
1834
+ defaultValue: O,
1835
+ ns: x
1836
+ }), W = R ? D(R, P) : O, I = ba(d || t, W, S, k, P, p), c = e !== void 0 ? e : k.defaultTransParent;
1837
1837
  return c ? le(c, y, I) : I;
1838
1838
  }
1839
1839
  function wa(n) {
1840
1840
  if (Array.isArray(n)) return n;
1841
1841
  }
1842
- function xa(n, t) {
1842
+ function Sa(n, t) {
1843
1843
  var a = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
1844
1844
  if (a != null) {
1845
1845
  var e, r, i, o, s = [], l = !0, u = !1;
@@ -1874,7 +1874,7 @@ function ka() {
1874
1874
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1875
1875
  }
1876
1876
  function Ca(n, t) {
1877
- return wa(n) || xa(n, t) || Ta(n, t) || ka();
1877
+ return wa(n) || Sa(n, t) || Ta(n, t) || ka();
1878
1878
  }
1879
1879
  function Je(n, t) {
1880
1880
  var a = Object.keys(n);
@@ -1886,7 +1886,7 @@ function Je(n, t) {
1886
1886
  }
1887
1887
  return a;
1888
1888
  }
1889
- function Oe(n) {
1889
+ function Pe(n) {
1890
1890
  for (var t = 1; t < arguments.length; t++) {
1891
1891
  var a = arguments[t] != null ? arguments[t] : {};
1892
1892
  t % 2 ? Je(Object(a), !0).forEach(function(e) {
@@ -1898,7 +1898,7 @@ function Oe(n) {
1898
1898
  return n;
1899
1899
  }
1900
1900
  var La = function(t, a) {
1901
- var e = Pe();
1901
+ var e = Oe();
1902
1902
  return Ee(function() {
1903
1903
  e.current = t;
1904
1904
  }, [t, a]), e.current;
@@ -1913,7 +1913,7 @@ function wt(n) {
1913
1913
  return l.t = s, l.i18n = {}, l.ready = !1, l;
1914
1914
  }
1915
1915
  o.options.react && o.options.react.wait !== void 0 && fe("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
1916
- var u = Oe(Oe(Oe({}, yt()), o.options.react), t), d = u.useSuspense, f = u.keyPrefix, v = n || i || o.options && o.options.defaultNS;
1916
+ var u = Pe(Pe(Pe({}, yt()), o.options.react), t), d = u.useSuspense, f = u.keyPrefix, v = n || i || o.options && o.options.defaultNS;
1917
1917
  v = typeof v == "string" ? [v] : v || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(v);
1918
1918
  var m = (o.isInitialized || o.initializedStoreOnce) && v.every(function(E) {
1919
1919
  return ha(E, o, u);
@@ -1921,29 +1921,29 @@ function wt(n) {
1921
1921
  function p() {
1922
1922
  return o.getFixedT(null, u.nsMode === "fallback" ? v : v[0], f);
1923
1923
  }
1924
- var y = Rt(p), g = Ca(y, 2), b = g[0], w = g[1], x = v.join(), D = La(x), k = Pe(!0);
1924
+ var y = Rt(p), g = Ca(y, 2), b = g[0], w = g[1], S = v.join(), D = La(S), k = Oe(!0);
1925
1925
  Ee(function() {
1926
1926
  var E = u.bindI18n, R = u.bindI18nStore;
1927
1927
  k.current = !0, !m && !d && Xe(o, v, function() {
1928
1928
  k.current && w(p);
1929
- }), m && D && D !== x && k.current && w(p);
1929
+ }), m && D && D !== S && k.current && w(p);
1930
1930
  function L() {
1931
1931
  k.current && w(p);
1932
1932
  }
1933
1933
  return E && o && o.on(E, L), R && o && o.store.on(R, L), function() {
1934
- k.current = !1, E && o && E.split(" ").forEach(function(O) {
1935
- return o.off(O, L);
1936
- }), R && o && R.split(" ").forEach(function(O) {
1937
- return o.store.off(O, L);
1934
+ k.current = !1, E && o && E.split(" ").forEach(function(P) {
1935
+ return o.off(P, L);
1936
+ }), R && o && R.split(" ").forEach(function(P) {
1937
+ return o.store.off(P, L);
1938
1938
  });
1939
1939
  };
1940
- }, [o, x]);
1941
- var S = Pe(!0);
1940
+ }, [o, S]);
1941
+ var x = Oe(!0);
1942
1942
  Ee(function() {
1943
- k.current && !S.current && w(p), S.current = !1;
1943
+ k.current && !x.current && w(p), x.current = !1;
1944
1944
  }, [o, f]);
1945
- var P = [b, o, m];
1946
- if (P.t = b, P.i18n = o, P.ready = m, m || !m && !d) return P;
1945
+ var O = [b, o, m];
1946
+ if (O.t = b, O.i18n = o, O.ready = m, m || !m && !d) return O;
1947
1947
  throw new Promise(function(E) {
1948
1948
  Xe(o, v, function() {
1949
1949
  E();
@@ -1958,9 +1958,9 @@ function De(n) {
1958
1958
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1959
1959
  }, De(n);
1960
1960
  }
1961
- var xt = [], Oa = xt.forEach, Pa = xt.slice;
1961
+ var St = [], Pa = St.forEach, Oa = St.slice;
1962
1962
  function Be(n) {
1963
- return Oa.call(Pa.call(arguments, 1), function(t) {
1963
+ return Pa.call(Oa.call(arguments, 1), function(t) {
1964
1964
  if (t)
1965
1965
  for (var a in t)
1966
1966
  n[a] === void 0 && (n[a] = t[a]);
@@ -2100,7 +2100,7 @@ function Ba() {
2100
2100
  var h = new FileReader(), T = g(h);
2101
2101
  return h.readAsText(c), T;
2102
2102
  }
2103
- function x(c) {
2103
+ function S(c) {
2104
2104
  for (var h = new Uint8Array(c), T = new Array(h.length), B = 0; B < h.length; B++)
2105
2105
  T[B] = String.fromCharCode(h[B]);
2106
2106
  return T.join("");
@@ -2134,7 +2134,7 @@ function Ba() {
2134
2134
  if (this._bodyBlob)
2135
2135
  return w(this._bodyBlob);
2136
2136
  if (this._bodyArrayBuffer)
2137
- return Promise.resolve(x(this._bodyArrayBuffer));
2137
+ return Promise.resolve(S(this._bodyArrayBuffer));
2138
2138
  if (this._bodyFormData)
2139
2139
  throw new Error("could not read FormData body as text");
2140
2140
  return Promise.resolve(this._bodyText);
@@ -2144,10 +2144,10 @@ function Ba() {
2144
2144
  return this.text().then(JSON.parse);
2145
2145
  }, this;
2146
2146
  }
2147
- var S = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
2148
- function P(c) {
2147
+ var x = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
2148
+ function O(c) {
2149
2149
  var h = c.toUpperCase();
2150
- return S.indexOf(h) > -1 ? h : c;
2150
+ return x.indexOf(h) > -1 ? h : c;
2151
2151
  }
2152
2152
  function E(c, h) {
2153
2153
  h = h || {};
@@ -2158,7 +2158,7 @@ function Ba() {
2158
2158
  this.url = c.url, this.credentials = c.credentials, h.headers || (this.headers = new p(c.headers)), this.method = c.method, this.mode = c.mode, this.signal = c.signal, !T && c._bodyInit != null && (T = c._bodyInit, c.bodyUsed = !0);
2159
2159
  } else
2160
2160
  this.url = String(c);
2161
- if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new p(h.headers)), this.method = P(h.method || this.method || "GET"), this.mode = h.mode || this.mode || null, this.signal = h.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && T)
2161
+ if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new p(h.headers)), this.method = O(h.method || this.method || "GET"), this.mode = h.mode || this.mode || null, this.signal = h.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && T)
2162
2162
  throw new TypeError("Body not allowed for GET or HEAD requests");
2163
2163
  this._initBody(T);
2164
2164
  }
@@ -2185,25 +2185,25 @@ function Ba() {
2185
2185
  }), h;
2186
2186
  }
2187
2187
  k.call(E.prototype);
2188
- function O(c, h) {
2188
+ function P(c, h) {
2189
2189
  h || (h = {}), this.type = "default", this.status = h.status === void 0 ? 200 : h.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in h ? h.statusText : "OK", this.headers = new p(h.headers), this.url = h.url || "", this._initBody(c);
2190
2190
  }
2191
- k.call(O.prototype), O.prototype.clone = function() {
2192
- return new O(this._bodyInit, {
2191
+ k.call(P.prototype), P.prototype.clone = function() {
2192
+ return new P(this._bodyInit, {
2193
2193
  status: this.status,
2194
2194
  statusText: this.statusText,
2195
2195
  headers: new p(this.headers),
2196
2196
  url: this.url
2197
2197
  });
2198
- }, O.error = function() {
2199
- var c = new O(null, { status: 0, statusText: "" });
2198
+ }, P.error = function() {
2199
+ var c = new P(null, { status: 0, statusText: "" });
2200
2200
  return c.type = "error", c;
2201
2201
  };
2202
2202
  var W = [301, 302, 303, 307, 308];
2203
- O.redirect = function(c, h) {
2203
+ P.redirect = function(c, h) {
2204
2204
  if (W.indexOf(h) === -1)
2205
2205
  throw new RangeError("Invalid status code");
2206
- return new O(null, { status: h, headers: { location: c } });
2206
+ return new P(null, { status: h, headers: { location: c } });
2207
2207
  }, o.DOMException = i.DOMException;
2208
2208
  try {
2209
2209
  new o.DOMException();
@@ -2231,7 +2231,7 @@ function Ba() {
2231
2231
  };
2232
2232
  F.url = "responseURL" in C ? C.responseURL : F.headers.get("X-Request-URL");
2233
2233
  var M = "response" in C ? C.response : C.responseText;
2234
- T(new O(M, F));
2234
+ T(new P(M, F));
2235
2235
  }, C.onerror = function() {
2236
2236
  B(new TypeError("Network request failed"));
2237
2237
  }, C.ontimeout = function() {
@@ -2245,7 +2245,7 @@ function Ba() {
2245
2245
  }), C.send(typeof A._bodyInit > "u" ? null : A._bodyInit);
2246
2246
  });
2247
2247
  }
2248
- return I.polyfill = !0, i.fetch || (i.fetch = I, i.Headers = p, i.Request = E, i.Response = O), o.Headers = p, o.Request = E, o.Response = O, o.fetch = I, Object.defineProperty(o, "__esModule", { value: !0 }), o;
2248
+ return I.polyfill = !0, i.fetch || (i.fetch = I, i.Headers = p, i.Request = E, i.Response = P), o.Headers = p, o.Request = E, o.Response = P, o.fetch = I, Object.defineProperty(o, "__esModule", { value: !0 }), o;
2249
2249
  })({});
2250
2250
  })(e), e.fetch.ponyfill = !0, delete e.fetch.polyfill;
2251
2251
  var r = e;
@@ -2493,7 +2493,7 @@ var Ha = function() {
2493
2493
  }]), n;
2494
2494
  }();
2495
2495
  Lt.type = "backend";
2496
- var Ot = [], qa = Ot.forEach, Va = Ot.slice;
2496
+ var Pt = [], qa = Pt.forEach, Va = Pt.slice;
2497
2497
  function Wa(n) {
2498
2498
  return qa.call(Va.call(arguments, 1), function(t) {
2499
2499
  if (t)
@@ -2691,7 +2691,7 @@ function tr() {
2691
2691
  //cookieDomain: 'myDomain'
2692
2692
  };
2693
2693
  }
2694
- var Pt = /* @__PURE__ */ function() {
2694
+ var Ot = /* @__PURE__ */ function() {
2695
2695
  function n(t) {
2696
2696
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2697
2697
  z(this, n), this.type = "languageDetector", this.detectors = {}, this.init(t, a);
@@ -2730,7 +2730,7 @@ var Pt = /* @__PURE__ */ function() {
2730
2730
  }
2731
2731
  }]), n;
2732
2732
  }();
2733
- Pt.type = "languageDetector";
2733
+ Ot.type = "languageDetector";
2734
2734
  const ar = {
2735
2735
  "addToList.disabledDragTooltip": "Drag & Drop ist deaktiviert, wenn Filter aktiviert sind",
2736
2736
  "addToList.moveAllItemsToCol": "Alles nach „ {{columnName}} “ verschieben",
@@ -2857,6 +2857,9 @@ const ar = {
2857
2857
  "columnManager.title": "Manage Table Columns",
2858
2858
  "contentRow.collapse": "Collapse",
2859
2859
  "contentRow.expand": "Expand",
2860
+ "contextBar.viewing": "Viewing",
2861
+ "contextBar.in": "in",
2862
+ "contextBar.change": "Change",
2860
2863
  "datepicker.calendar.nextMonth": "View Next Month",
2861
2864
  "datepicker.calendar.prevMonth": "View Previous Month",
2862
2865
  "datepicker.preset.after": "After",
@@ -2869,6 +2872,7 @@ const ar = {
2869
2872
  "datepicker.preset.thirtyDays": "Last 30 days",
2870
2873
  "datepicker.preset.today": "Today",
2871
2874
  "datepicker.presetsLabel": "Ranges",
2875
+ "dateTimeRangePicker.to": "to",
2872
2876
  "fileUpload.acceptedTypes.one": "{{fileTypes}} format accepted",
2873
2877
  "fileUpload.acceptedTypes.other": "{{fileTypes}} formats accepted",
2874
2878
  "fileUpload.cancelled.one": "File Upload Failed",
@@ -2911,6 +2915,7 @@ const ar = {
2911
2915
  "listActionBar.clearSelected": "Clear Selected",
2912
2916
  "listActionBar.itemsSelected": "Items Selected",
2913
2917
  "listToolbar.advancedSearchToggle": "Advanced Search",
2918
+ "matrix.cell.null": "null",
2914
2919
  "modal.close": "Close modal",
2915
2920
  "modal.defaultButtonLabel": "Okay",
2916
2921
  "modal.defaultTitle.general": "Action",
@@ -2919,11 +2924,20 @@ const ar = {
2919
2924
  "modal.defaultTitle.success": "Success",
2920
2925
  "modal.defaultTitle.warning": "Warning",
2921
2926
  "pagination.nextPage": "Next Page",
2927
+ "pagination.of": "of",
2928
+ "pagination.many": "many",
2922
2929
  "pagination.ofMany": "of many",
2923
2930
  "pagination.ofPageCount": "of {{pageCount}}",
2924
2931
  "pagination.page": "Page",
2932
+ "pagination.perPage": "Per Page",
2925
2933
  "pagination.prevPage": "Previous Page",
2934
+ "pagination.view": "View",
2935
+ "pagination.viewing": "Viewing",
2926
2936
  "progressBar.closeButtonTitle": "Close progress bar",
2937
+ "productBar.current": "current",
2938
+ "richTextEditor.linkModal.text": "Text",
2939
+ "richTextEditor.linkModal.link": "Link",
2940
+ "richTextEditor.linkModal.ok": "OK",
2927
2941
  "searchResultsBar.clear": "Clear",
2928
2942
  "searchResultsBar.clearResults": "Clear Results",
2929
2943
  "searchResultsBar.count": "{{count}} of {{total}}",
@@ -3687,7 +3701,7 @@ function pr({
3687
3701
  customDetectors: a,
3688
3702
  ...e
3689
3703
  }) {
3690
- const r = new Pt(), i = {
3704
+ const r = new Ot(), i = {
3691
3705
  name: "hashRouterQuerystringDetector",
3692
3706
  lookup: (d) => {
3693
3707
  try {
@@ -3749,12 +3763,13 @@ function pr({
3749
3763
  ae.changeLanguage(d);
3750
3764
  }), u;
3751
3765
  }
3752
- const hr = Sa;
3766
+ const hr = xa;
3753
3767
  function gr(n = "translation", t) {
3754
3768
  return wt(n, t);
3755
3769
  }
3756
3770
  export {
3757
3771
  hr as SpsLanguage,
3772
+ $ as i18n,
3758
3773
  ae as i18nWoodland,
3759
3774
  pr as localize,
3760
3775
  gr as useSpsLanguage,