@ledgerhq/lumen-ui-react 0.1.62 → 0.1.64
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/ai-rules/RULES.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +80 -78
- package/dist/lib/Components/core/AddressInput/AddressInput.js +1 -1
- package/dist/lib/Components/core/AmountDisplay/AmountDisplay.js +1 -1
- package/dist/lib/Components/core/AmountInput/AmountInput.js +22 -22
- package/dist/lib/Components/core/Avatar/Avatar.js +7 -7
- package/dist/lib/Components/core/AvatarButton/AvatarButton.js +8 -8
- package/dist/lib/Components/core/Banner/Banner.js +1 -1
- package/dist/lib/Components/core/Button/Button.js +6 -6
- package/dist/lib/Components/core/Card/Card.js +17 -17
- package/dist/lib/Components/core/ContentBanner/ContentBanner.d.ts +1 -1
- package/dist/lib/Components/core/ContentBanner/ContentBanner.js +1 -1
- package/dist/lib/Components/core/DataTable/DataTable.js +45 -45
- package/dist/lib/Components/core/Dialog/DialogHeader/DialogHeader.js +1 -1
- package/dist/lib/Components/core/Divider/Divider.js +4 -4
- package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
- package/dist/lib/Components/core/DotIcon/DotIcon.js +4 -4
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +18 -18
- package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/core/Link/Link.js +25 -24
- package/dist/lib/Components/core/ListItem/ListItem.d.ts +1 -1
- package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
- package/dist/lib/Components/core/MediaBanner/MediaBanner.js +16 -16
- package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
- package/dist/lib/Components/core/MediaCard/MediaCard.js +1 -1
- package/dist/lib/Components/core/MediaImage/MediaImage.js +5 -5
- package/dist/lib/Components/core/Menu/Menu.js +25 -25
- package/dist/lib/Components/core/NavBar/CoinCapsule.js +4 -4
- package/dist/lib/Components/core/NavBar/NavBar.js +3 -3
- package/dist/lib/Components/core/PageIndicator/PageIndicator.js +5 -5
- package/dist/lib/Components/core/Pagination/Pagination.js +15 -15
- package/dist/lib/Components/core/Popover/Popover.js +13 -13
- package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +78 -82
- package/dist/lib/Components/core/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/core/Select/Select.js +105 -104
- package/dist/lib/Components/core/SideBar/SideBar.js +28 -28
- package/dist/lib/Components/core/Spinner/Spinner.js +5 -5
- package/dist/lib/Components/core/Spot/Spot.d.ts +7 -25
- package/dist/lib/Components/core/Spot/Spot.d.ts.map +1 -1
- package/dist/lib/Components/core/Spot/Spot.js +33 -102
- package/dist/lib/Components/core/Spot/SpotNumber.d.ts +16 -0
- package/dist/lib/Components/core/Spot/SpotNumber.d.ts.map +1 -0
- package/dist/lib/Components/core/Spot/SpotNumber.js +46 -0
- package/dist/lib/Components/core/Spot/index.d.ts +1 -0
- package/dist/lib/Components/core/Spot/index.d.ts.map +1 -1
- package/dist/lib/Components/core/Spot/styles.d.ts +14 -0
- package/dist/lib/Components/core/Spot/styles.d.ts.map +1 -0
- package/dist/lib/Components/core/Spot/styles.js +275 -0
- package/dist/lib/Components/core/Spot/types.d.ts +27 -38
- package/dist/lib/Components/core/Spot/types.d.ts.map +1 -1
- package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/core/Stepper/Stepper.js +51 -48
- package/dist/lib/Components/core/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/core/Subheader/Subheader.js +33 -29
- package/dist/lib/Components/core/Switch/Switch.js +5 -5
- package/dist/lib/Components/core/Table/Table.d.ts.map +1 -1
- package/dist/lib/Components/core/Table/Table.js +64 -63
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.js +6 -6
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts +1 -1
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts.map +1 -1
- package/dist/lib/Components/core/Tile/Tile.d.ts +2 -2
- package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
- package/dist/lib/Components/core/Timeline/Timeline.js +16 -16
- package/dist/lib/Components/core/Toast/Toast.js +4 -4
- package/dist/lib/Components/core/Toast/Toaster.js +9 -9
- package/dist/lib/Components/core/Trend/Trend.js +3 -3
- package/dist/lib/Components/internal/BaseButton/BaseButton.js +9 -9
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +21 -21
- package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.js +4 -4
- package/dist/lib/Components/internal/BaseTag/BaseTag.js +4 -4
- package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
- package/dist/lib/Components/symbols/Icon/createIcon.js +5 -5
- package/dist/lib/Components/symbols/icons/AiBubble.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/AiBubble.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/AiBubble.js +30 -0
- package/dist/lib/Components/symbols/icons/ArrowBottomLeft.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/ArrowBottomLeft.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/ArrowBottomLeft.js +27 -0
- package/dist/lib/Components/symbols/icons/Bug.js +3 -3
- package/dist/lib/Components/symbols/icons/Hourglass.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/Hourglass.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/Hourglass.js +27 -0
- package/dist/lib/Components/symbols/icons/Repeat.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/Repeat.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/Repeat.js +27 -0
- package/dist/lib/Components/symbols/icons/Robot.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/Robot.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/Robot.js +29 -0
- package/dist/lib/Components/symbols/icons/Switch.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Switch.js +24 -12
- package/dist/lib/Components/symbols/icons/Wifi.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/Wifi.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/Wifi.js +36 -0
- package/dist/lib/Components/symbols/index.d.ts +6 -0
- package/dist/lib/Components/symbols/index.d.ts.map +1 -1
- package/dist/lib/Components/symbols/index.js +610 -598
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.js +36 -35
- package/dist/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutChart.js +31 -31
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +4 -4
- package/dist/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutRing.js +13 -12
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
- package/dist/lib/Components/visualization/DonutChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.d.ts +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.d.ts.map +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.js +7 -11
- package/dist/lib/Components/visualization/Legend/types.d.ts +2 -2
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts +1 -1
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/LineChart/LineChart.js +90 -84
- package/dist/lib/Components/visualization/LineChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/LineChart/utils.d.ts +2 -1
- package/dist/lib/Components/visualization/LineChart/utils.d.ts.map +1 -1
- package/dist/lib/Components/visualization/LineChart/utils.js +23 -22
- package/dist/lib/Components/visualization/config.d.ts +0 -3
- package/dist/lib/Components/visualization/config.d.ts.map +1 -1
- package/dist/lib/Components/visualization/config.js +3 -6
- package/dist/libs/utils-shared/dist/index.js +191 -143
- package/dist/package.json +4 -6
- package/dist/translations/index.d.ts +3 -0
- package/dist/translations/index.d.ts.map +1 -0
- package/dist/{i18n → translations}/languages.d.ts +0 -5
- package/dist/translations/languages.d.ts.map +1 -0
- package/dist/{i18n → translations}/languages.js +1 -2
- package/dist/{i18n → translations}/locales/en.json.d.ts +11 -0
- package/dist/{i18n → translations}/locales/en.json.js +2 -2
- package/dist/translations/translations.d.ts +727 -0
- package/dist/translations/translations.d.ts.map +1 -0
- package/dist/translations/translations.js +22 -0
- package/package.json +4 -6
- package/dist/_virtual/dynamic-import-helper.js +0 -9
- package/dist/i18n/I18nProvider.d.ts +0 -8
- package/dist/i18n/I18nProvider.d.ts.map +0 -1
- package/dist/i18n/I18nProvider.js +0 -14
- package/dist/i18n/i18n.d.ts +0 -12
- package/dist/i18n/i18n.d.ts.map +0 -1
- package/dist/i18n/i18n.js +0 -42
- package/dist/i18n/index.d.ts +0 -4
- package/dist/i18n/index.d.ts.map +0 -1
- package/dist/i18n/languages.d.ts.map +0 -1
- package/dist/i18n/useCommonTranslation.d.ts +0 -2
- package/dist/i18n/useCommonTranslation.d.ts.map +0 -1
- package/dist/i18n/useCommonTranslation.js +0 -6
- package/dist/node_modules/i18next/dist/esm/i18next.js +0 -1479
- package/dist/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -19
- package/dist/node_modules/react-i18next/dist/es/context.js +0 -17
- package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -22
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -8
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -11
- package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -25
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -65
- package/dist/node_modules/react-i18next/dist/es/utils.js +0 -57
- /package/dist/{i18n → translations}/locales/de.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/de.json.js +0 -0
- /package/dist/{i18n → translations}/locales/es.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/es.json.js +0 -0
- /package/dist/{i18n → translations}/locales/fr.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/fr.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ja.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ja.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ko.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ko.json.js +0 -0
- /package/dist/{i18n → translations}/locales/pt.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/pt.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ru.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ru.json.js +0 -0
- /package/dist/{i18n → translations}/locales/th.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/th.json.js +0 -0
- /package/dist/{i18n → translations}/locales/tr.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/tr.json.js +0 -0
- /package/dist/{i18n → translations}/locales/zh.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/zh.json.js +0 -0
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { useMemo as i, createElement as m } from "react";
|
|
2
|
-
import { I18nContext as l } from "./context.js";
|
|
3
|
-
function d(t) {
|
|
4
|
-
let {
|
|
5
|
-
i18n: e,
|
|
6
|
-
defaultNS: r,
|
|
7
|
-
children: o
|
|
8
|
-
} = t;
|
|
9
|
-
const n = i(() => ({
|
|
10
|
-
i18n: e,
|
|
11
|
-
defaultNS: r
|
|
12
|
-
}), [e, r]);
|
|
13
|
-
return m(l.Provider, {
|
|
14
|
-
value: n
|
|
15
|
-
}, o);
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
d as I18nextProvider
|
|
19
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createContext as a } from "react";
|
|
2
|
-
const o = a();
|
|
3
|
-
class p {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.usedNamespaces = {};
|
|
6
|
-
}
|
|
7
|
-
addUsedNamespaces(s) {
|
|
8
|
-
s.forEach((e) => {
|
|
9
|
-
this.usedNamespaces[e] || (this.usedNamespaces[e] = !0);
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
getUsedNamespaces = () => Object.keys(this.usedNamespaces);
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
o as I18nContext,
|
|
16
|
-
p as ReportNamespaces
|
|
17
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { unescape as n } from "./unescape.js";
|
|
2
|
-
let e = {
|
|
3
|
-
bindI18n: "languageChanged",
|
|
4
|
-
bindI18nStore: "",
|
|
5
|
-
transEmptyNodeValue: "",
|
|
6
|
-
transSupportBasicHtmlNodes: !0,
|
|
7
|
-
transWrapTextNodes: "",
|
|
8
|
-
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
9
|
-
useSuspense: !0,
|
|
10
|
-
unescape: n
|
|
11
|
-
};
|
|
12
|
-
const a = function() {
|
|
13
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
14
|
-
e = {
|
|
15
|
-
...e,
|
|
16
|
-
...t
|
|
17
|
-
};
|
|
18
|
-
}, r = () => e;
|
|
19
|
-
export {
|
|
20
|
-
r as getDefaults,
|
|
21
|
-
a as setDefaults
|
|
22
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const p = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, e = {
|
|
2
|
-
"&": "&",
|
|
3
|
-
"&": "&",
|
|
4
|
-
"<": "<",
|
|
5
|
-
"<": "<",
|
|
6
|
-
">": ">",
|
|
7
|
-
">": ">",
|
|
8
|
-
"'": "'",
|
|
9
|
-
"'": "'",
|
|
10
|
-
""": '"',
|
|
11
|
-
""": '"',
|
|
12
|
-
" ": " ",
|
|
13
|
-
" ": " ",
|
|
14
|
-
"©": "©",
|
|
15
|
-
"©": "©",
|
|
16
|
-
"®": "®",
|
|
17
|
-
"®": "®",
|
|
18
|
-
"…": "…",
|
|
19
|
-
"…": "…",
|
|
20
|
-
"/": "/",
|
|
21
|
-
"/": "/"
|
|
22
|
-
}, n = (t) => e[t], o = (t) => t.replace(p, n);
|
|
23
|
-
export {
|
|
24
|
-
o as unescape
|
|
25
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { useContext as E, useCallback as F, useState as P, useRef as M, useEffect as b } from "react";
|
|
2
|
-
import { I18nContext as v, ReportNamespaces as A } from "./context.js";
|
|
3
|
-
import { warnOnce as I, hasLoadedNamespace as L, loadLanguages as R, loadNamespaces as C, isString as w, isObject as U } from "./utils.js";
|
|
4
|
-
import { getI18n as $ } from "./i18nInstance.js";
|
|
5
|
-
import { getDefaults as G } from "./defaults.js";
|
|
6
|
-
const J = (r, t) => {
|
|
7
|
-
const o = M();
|
|
8
|
-
return b(() => {
|
|
9
|
-
o.current = r;
|
|
10
|
-
}, [r, t]), o.current;
|
|
11
|
-
}, j = (r, t, o, l) => r.getFixedT(t, o, l), Y = (r, t, o, l) => F(j(r, t, o, l), [r, t, o, l]), O = function(r) {
|
|
12
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
13
|
-
const {
|
|
14
|
-
i18n: o
|
|
15
|
-
} = t, {
|
|
16
|
-
i18n: l
|
|
17
|
-
} = E(v) || {}, e = o || l || $();
|
|
18
|
-
if (e && !e.reportNamespaces && (e.reportNamespaces = new A()), !e) {
|
|
19
|
-
I("You will need to pass in an i18next instance by using initReactI18next");
|
|
20
|
-
const s = (a, c) => w(c) ? c : U(c) && w(c.defaultValue) ? c.defaultValue : Array.isArray(a) ? a[a.length - 1] : a, i = [s, {}, !1];
|
|
21
|
-
return i.t = s, i.i18n = {}, i.ready = !1, i;
|
|
22
|
-
}
|
|
23
|
-
e.options.react && e.options.react.wait !== void 0 && I("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
24
|
-
const d = {
|
|
25
|
-
...G(),
|
|
26
|
-
...e.options.react,
|
|
27
|
-
...t
|
|
28
|
-
}, {
|
|
29
|
-
useSuspense: h,
|
|
30
|
-
keyPrefix: y
|
|
31
|
-
} = d;
|
|
32
|
-
let n = r;
|
|
33
|
-
n = w(n) ? [n] : n || ["translation"], e.reportNamespaces.addUsedNamespaces && e.reportNamespaces.addUsedNamespaces(n);
|
|
34
|
-
const u = (e.isInitialized || e.initializedStoreOnce) && n.every((s) => L(s, e, d)), z = Y(e, t.lng || null, d.nsMode === "fallback" ? n : n[0], y), T = () => z, N = () => j(e, t.lng || null, d.nsMode === "fallback" ? n : n[0], y), [S, m] = P(T);
|
|
35
|
-
let p = n.join();
|
|
36
|
-
t.lng && (p = `${t.lng}${p}`);
|
|
37
|
-
const x = J(p), f = M(!0);
|
|
38
|
-
b(() => {
|
|
39
|
-
const {
|
|
40
|
-
bindI18n: s,
|
|
41
|
-
bindI18nStore: i
|
|
42
|
-
} = d;
|
|
43
|
-
f.current = !0, !u && !h && (t.lng ? R(e, t.lng, n, () => {
|
|
44
|
-
f.current && m(N);
|
|
45
|
-
}) : C(e, n, () => {
|
|
46
|
-
f.current && m(N);
|
|
47
|
-
})), u && x && x !== p && f.current && m(N);
|
|
48
|
-
const a = () => {
|
|
49
|
-
f.current && m(N);
|
|
50
|
-
};
|
|
51
|
-
return s && e && e.on(s, a), i && e && e.store.on(i, a), () => {
|
|
52
|
-
f.current = !1, s && e && s.split(" ").forEach((c) => e.off(c, a)), i && e && i.split(" ").forEach((c) => e.store.off(c, a));
|
|
53
|
-
};
|
|
54
|
-
}, [e, p]), b(() => {
|
|
55
|
-
f.current && u && m(T);
|
|
56
|
-
}, [e, y, u]);
|
|
57
|
-
const g = [S, e, u];
|
|
58
|
-
if (g.t = S, g.i18n = e, g.ready = u, u || !u && !h) return g;
|
|
59
|
-
throw new Promise((s) => {
|
|
60
|
-
t.lng ? R(e, t.lng, n, () => s()) : C(e, n, () => s());
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
export {
|
|
64
|
-
O as useTranslation
|
|
65
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
function f() {
|
|
2
|
-
if (console && console.warn) {
|
|
3
|
-
for (var n = arguments.length, e = new Array(n), a = 0; a < n; a++)
|
|
4
|
-
e[a] = arguments[a];
|
|
5
|
-
s(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
const i = {};
|
|
9
|
-
function p() {
|
|
10
|
-
for (var n = arguments.length, e = new Array(n), a = 0; a < n; a++)
|
|
11
|
-
e[a] = arguments[a];
|
|
12
|
-
s(e[0]) && i[e[0]] || (s(e[0]) && (i[e[0]] = /* @__PURE__ */ new Date()), f(...e));
|
|
13
|
-
}
|
|
14
|
-
const c = (n, e) => () => {
|
|
15
|
-
if (n.isInitialized)
|
|
16
|
-
e();
|
|
17
|
-
else {
|
|
18
|
-
const a = () => {
|
|
19
|
-
setTimeout(() => {
|
|
20
|
-
n.off("initialized", a);
|
|
21
|
-
}, 0), e();
|
|
22
|
-
};
|
|
23
|
-
n.on("initialized", a);
|
|
24
|
-
}
|
|
25
|
-
}, m = (n, e, a) => {
|
|
26
|
-
n.loadNamespaces(e, c(n, a));
|
|
27
|
-
}, b = (n, e, a, o) => {
|
|
28
|
-
s(a) && (a = [a]), a.forEach((t) => {
|
|
29
|
-
n.options.ns.indexOf(t) < 0 && n.options.ns.push(t);
|
|
30
|
-
}), n.loadLanguages(e, c(n, o));
|
|
31
|
-
}, h = function(n, e) {
|
|
32
|
-
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
33
|
-
const o = e.languages[0], t = e.options ? e.options.fallbackLng : !1, r = e.languages[e.languages.length - 1];
|
|
34
|
-
if (o.toLowerCase() === "cimode") return !0;
|
|
35
|
-
const g = (l, d) => {
|
|
36
|
-
const u = e.services.backendConnector.state[`${l}|${d}`];
|
|
37
|
-
return u === -1 || u === 2;
|
|
38
|
-
};
|
|
39
|
-
return a.bindI18n && a.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !g(e.isLanguageChangingTo, n) ? !1 : !!(e.hasResourceBundle(o, n) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || g(o, n) && (!t || g(r, n)));
|
|
40
|
-
}, L = function(n, e) {
|
|
41
|
-
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
42
|
-
return !e.languages || !e.languages.length ? (p("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(n, {
|
|
43
|
-
lng: a.lng,
|
|
44
|
-
precheck: (t, r) => {
|
|
45
|
-
if (a.bindI18n && a.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !r(t.isLanguageChangingTo, n)) return !1;
|
|
46
|
-
}
|
|
47
|
-
}) : h(n, e, a);
|
|
48
|
-
}, s = (n) => typeof n == "string", C = (n) => typeof n == "object" && n !== null;
|
|
49
|
-
export {
|
|
50
|
-
L as hasLoadedNamespace,
|
|
51
|
-
C as isObject,
|
|
52
|
-
s as isString,
|
|
53
|
-
b as loadLanguages,
|
|
54
|
-
m as loadNamespaces,
|
|
55
|
-
f as warn,
|
|
56
|
-
p as warnOnce
|
|
57
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|