@snmt-react-ui/country-select 2.7.2 → 2.7.4
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/country-select.js +752 -682
- package/package.json +3 -3
package/dist/country-select.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./index.css";
|
|
|
5
5
|
import { jsx as o, Fragment as Y, jsxs as C } from "react/jsx-runtime";
|
|
6
6
|
import { SNMTUiContext as Ce } from "@snmt-react-ui/core";
|
|
7
7
|
import { Select as pe, Flex as fe, Avatar as me, Checkbox as we, Typography as J1, Tag as ke, Popover as Le } from "antd";
|
|
8
|
-
import { createContext as t1, forwardRef as w1, useRef as J, useImperativeHandle as Q1, useState as
|
|
8
|
+
import { createContext as t1, forwardRef as w1, useRef as J, useImperativeHandle as Q1, useState as V, useEffect as O, useCallback as j, useContext as Q } from "react";
|
|
9
9
|
var ve = Object.defineProperty, Ne = (i, e, t) => e in i ? ve(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, xe = (i, e, t) => Ne(i, e + "", t), Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
10
|
function Me() {
|
|
11
11
|
if (console && console.warn) {
|
|
@@ -14,11 +14,11 @@ function Me() {
|
|
|
14
14
|
U(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const V1 = {};
|
|
18
18
|
function R1() {
|
|
19
19
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
20
20
|
e[t] = arguments[t];
|
|
21
|
-
U(e[0]) &&
|
|
21
|
+
U(e[0]) && V1[e[0]] || (U(e[0]) && (V1[e[0]] = /* @__PURE__ */ new Date()), Me(...e));
|
|
22
22
|
}
|
|
23
23
|
const q1 = (i, e) => () => {
|
|
24
24
|
if (i.isInitialized)
|
|
@@ -31,21 +31,21 @@ const q1 = (i, e) => () => {
|
|
|
31
31
|
};
|
|
32
32
|
i.on("initialized", t);
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, O1 = (i, e, t) => {
|
|
35
35
|
i.loadNamespaces(e, q1(i, t));
|
|
36
|
-
},
|
|
36
|
+
}, S1 = (i, e, t, n) => {
|
|
37
37
|
U(t) && (t = [t]), t.forEach((s) => {
|
|
38
38
|
i.options.ns.indexOf(s) < 0 && i.options.ns.push(s);
|
|
39
39
|
}), i.loadLanguages(e, q1(i, n));
|
|
40
40
|
}, be = function(i, e) {
|
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
42
|
-
const n = e.languages[0], s = e.options ? e.options.fallbackLng : !1,
|
|
42
|
+
const n = e.languages[0], s = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
|
|
43
43
|
if (n.toLowerCase() === "cimode") return !0;
|
|
44
|
-
const c = (
|
|
45
|
-
const d = e.services.backendConnector.state[`${
|
|
44
|
+
const c = (r, g) => {
|
|
45
|
+
const d = e.services.backendConnector.state[`${r}|${g}`];
|
|
46
46
|
return d === -1 || d === 2;
|
|
47
47
|
};
|
|
48
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(n, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(n, i) && (!s || c(
|
|
48
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(n, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(n, i) && (!s || c(a, i)));
|
|
49
49
|
}, ye = function(i, e) {
|
|
50
50
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
51
51
|
return !e.languages || !e.languages.length ? (R1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
@@ -75,8 +75,8 @@ const q1 = (i, e) => () => {
|
|
|
75
75
|
"…": "…",
|
|
76
76
|
"/": "/",
|
|
77
77
|
"/": "/"
|
|
78
|
-
}, Ie = (i) => He[i],
|
|
79
|
-
let
|
|
78
|
+
}, Ie = (i) => He[i], Ve = (i) => i.replace(_e, Ie);
|
|
79
|
+
let Oe = {
|
|
80
80
|
bindI18n: "languageChanged",
|
|
81
81
|
bindI18nStore: "",
|
|
82
82
|
transEmptyNodeValue: "",
|
|
@@ -84,11 +84,11 @@ let Se = {
|
|
|
84
84
|
transWrapTextNodes: "",
|
|
85
85
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
86
86
|
useSuspense: !0,
|
|
87
|
-
unescape:
|
|
87
|
+
unescape: Ve
|
|
88
88
|
};
|
|
89
|
-
const
|
|
89
|
+
const Se = () => Oe;
|
|
90
90
|
let Ae;
|
|
91
|
-
const
|
|
91
|
+
const Ze = () => Ae, Te = t1();
|
|
92
92
|
class De {
|
|
93
93
|
constructor() {
|
|
94
94
|
xe(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
|
@@ -101,7 +101,7 @@ class De {
|
|
|
101
101
|
}
|
|
102
102
|
const Be = (i, e) => {
|
|
103
103
|
const t = J();
|
|
104
|
-
return
|
|
104
|
+
return O(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
107
|
}, X1 = (i, e, t, n) => i.getFixedT(e, t, n), je = (i, e, t, n) => j(X1(i, e, t, n), [i, e, t, n]), Ge = function(i) {
|
|
@@ -111,50 +111,50 @@ const Be = (i, e) => {
|
|
|
111
111
|
} = e, {
|
|
112
112
|
i18n: n,
|
|
113
113
|
defaultNS: s
|
|
114
|
-
} = Q(
|
|
115
|
-
if (
|
|
114
|
+
} = Q(Te) || {}, a = t || n || Ze();
|
|
115
|
+
if (a && !a.reportNamespaces && (a.reportNamespaces = new De()), !a) {
|
|
116
116
|
R1("You will need to pass in an i18next instance by using initReactI18next");
|
|
117
117
|
const f = (v, N) => U(N) ? N : Ee(N) && U(N.defaultValue) ? N.defaultValue : Array.isArray(v) ? v[v.length - 1] : v, R = [f, {}, !1];
|
|
118
118
|
return R.t = f, R.i18n = {}, R.ready = !1, R;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
a.options.react && a.options.react.wait !== void 0 && R1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
121
121
|
const c = {
|
|
122
|
-
...
|
|
123
|
-
...
|
|
122
|
+
...Se(),
|
|
123
|
+
...a.options.react,
|
|
124
124
|
...e
|
|
125
125
|
}, {
|
|
126
|
-
useSuspense:
|
|
126
|
+
useSuspense: r,
|
|
127
127
|
keyPrefix: g
|
|
128
128
|
} = c;
|
|
129
129
|
let d = i;
|
|
130
|
-
d = U(d) ? [d] : d || ["translation"],
|
|
131
|
-
const l = (
|
|
130
|
+
d = U(d) ? [d] : d || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(d);
|
|
131
|
+
const l = (a.isInitialized || a.initializedStoreOnce) && d.every((f) => ye(f, a, c)), h = je(a, e.lng || null, c.nsMode === "fallback" ? d : d[0], g), u = () => h, p = () => X1(a, e.lng || null, c.nsMode === "fallback" ? d : d[0], g), [w, L] = V(u);
|
|
132
132
|
let m = d.join();
|
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
|
134
134
|
const E = Be(m), M = J(!0);
|
|
135
|
-
|
|
135
|
+
O(() => {
|
|
136
136
|
const {
|
|
137
137
|
bindI18n: f,
|
|
138
138
|
bindI18nStore: R
|
|
139
139
|
} = c;
|
|
140
|
-
M.current = !0, !l && !
|
|
140
|
+
M.current = !0, !l && !r && (e.lng ? S1(a, e.lng, d, () => {
|
|
141
141
|
M.current && L(p);
|
|
142
|
-
}) :
|
|
142
|
+
}) : O1(a, d, () => {
|
|
143
143
|
M.current && L(p);
|
|
144
144
|
})), l && E && E !== m && M.current && L(p);
|
|
145
145
|
const v = () => {
|
|
146
146
|
M.current && L(p);
|
|
147
147
|
};
|
|
148
|
-
return f &&
|
|
149
|
-
M.current = !1, f &&
|
|
148
|
+
return f && a && a.on(f, v), R && a && a.store.on(R, v), () => {
|
|
149
|
+
M.current = !1, f && a && f.split(" ").forEach((N) => a.off(N, v)), R && a && R.split(" ").forEach((N) => a.store.off(N, v));
|
|
150
150
|
};
|
|
151
|
-
}, [
|
|
151
|
+
}, [a, m]), O(() => {
|
|
152
152
|
M.current && l && L(u);
|
|
153
|
-
}, [
|
|
154
|
-
const H = [w,
|
|
155
|
-
if (H.t = w, H.i18n =
|
|
153
|
+
}, [a, g, l]);
|
|
154
|
+
const H = [w, a, l];
|
|
155
|
+
if (H.t = w, H.i18n = a, H.ready = l, l || !l && !r) return H;
|
|
156
156
|
throw new Promise((f) => {
|
|
157
|
-
e.lng ?
|
|
157
|
+
e.lng ? S1(a, e.lng, d, () => f()) : O1(a, d, () => f());
|
|
158
158
|
});
|
|
159
159
|
}, o1 = ({
|
|
160
160
|
children: i,
|
|
@@ -162,9 +162,9 @@ const Be = (i, e) => {
|
|
|
162
162
|
flexWrap: t = "nowrap",
|
|
163
163
|
alignItems: n = "normal",
|
|
164
164
|
justifyContent: s = "normal",
|
|
165
|
-
flex:
|
|
165
|
+
flex: a,
|
|
166
166
|
gap: c,
|
|
167
|
-
padding:
|
|
167
|
+
padding: r
|
|
168
168
|
}) => /* @__PURE__ */ o(
|
|
169
169
|
fe,
|
|
170
170
|
{
|
|
@@ -173,9 +173,9 @@ const Be = (i, e) => {
|
|
|
173
173
|
wrap: t,
|
|
174
174
|
align: n,
|
|
175
175
|
justify: s,
|
|
176
|
-
flex:
|
|
176
|
+
flex: a,
|
|
177
177
|
gap: c,
|
|
178
|
-
style: { padding:
|
|
178
|
+
style: { padding: r },
|
|
179
179
|
children: i
|
|
180
180
|
}
|
|
181
181
|
), We = ({ shape: i = "circle", size: e = 32, children: t, ...n }) => {
|
|
@@ -204,11 +204,11 @@ const Ke = ({
|
|
|
204
204
|
children: t,
|
|
205
205
|
onChange: n,
|
|
206
206
|
disabled: s = !1,
|
|
207
|
-
disableUncheck:
|
|
207
|
+
disableUncheck: a = !1
|
|
208
208
|
}) => {
|
|
209
|
-
const [c,
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
const [c, r] = V(i), [g, d] = V(e);
|
|
210
|
+
O(() => {
|
|
211
|
+
r(i), d(e);
|
|
212
212
|
}, [i, e]);
|
|
213
213
|
const { theme: l } = Q(E1);
|
|
214
214
|
return /* @__PURE__ */ o(
|
|
@@ -218,7 +218,7 @@ const Ke = ({
|
|
|
218
218
|
checked: c,
|
|
219
219
|
indeterminate: g,
|
|
220
220
|
onChange: (h) => {
|
|
221
|
-
|
|
221
|
+
a && c || (d(!1), r(h.target.checked), n && n(h));
|
|
222
222
|
},
|
|
223
223
|
disabled: s,
|
|
224
224
|
children: t
|
|
@@ -1727,7 +1727,7 @@ const Pe = ({
|
|
|
1727
1727
|
)
|
|
1728
1728
|
]
|
|
1729
1729
|
}
|
|
1730
|
-
),
|
|
1730
|
+
), V2 = ({
|
|
1731
1731
|
className: i,
|
|
1732
1732
|
color: e = b.GREY_DARK_5,
|
|
1733
1733
|
height: t = 24,
|
|
@@ -1764,7 +1764,7 @@ const Pe = ({
|
|
|
1764
1764
|
)
|
|
1765
1765
|
]
|
|
1766
1766
|
}
|
|
1767
|
-
),
|
|
1767
|
+
), O2 = ({
|
|
1768
1768
|
className: i,
|
|
1769
1769
|
color: e = b.GREY_DARK_3,
|
|
1770
1770
|
height: t = 14,
|
|
@@ -1801,7 +1801,7 @@ const Pe = ({
|
|
|
1801
1801
|
)
|
|
1802
1802
|
]
|
|
1803
1803
|
}
|
|
1804
|
-
),
|
|
1804
|
+
), S2 = ({
|
|
1805
1805
|
className: i,
|
|
1806
1806
|
color: e = b.GREY_DARK_5,
|
|
1807
1807
|
height: t = 18,
|
|
@@ -1880,7 +1880,7 @@ const Pe = ({
|
|
|
1880
1880
|
)
|
|
1881
1881
|
]
|
|
1882
1882
|
}
|
|
1883
|
-
),
|
|
1883
|
+
), Z2 = ({
|
|
1884
1884
|
className: i,
|
|
1885
1885
|
color: e = b.GREY_DARK_5,
|
|
1886
1886
|
height: t = 24,
|
|
@@ -1917,7 +1917,7 @@ const Pe = ({
|
|
|
1917
1917
|
)
|
|
1918
1918
|
]
|
|
1919
1919
|
}
|
|
1920
|
-
),
|
|
1920
|
+
), T2 = ({
|
|
1921
1921
|
className: i,
|
|
1922
1922
|
color: e = b.NOTIFICATION_WARNING_DARK,
|
|
1923
1923
|
height: t = 37,
|
|
@@ -2061,6 +2061,39 @@ const Pe = ({
|
|
|
2061
2061
|
]
|
|
2062
2062
|
}
|
|
2063
2063
|
), G2 = ({
|
|
2064
|
+
className: i,
|
|
2065
|
+
color: e = b.GREY_DARK_5,
|
|
2066
|
+
height: t = 20,
|
|
2067
|
+
width: n = 20,
|
|
2068
|
+
onClick: s
|
|
2069
|
+
}) => /* @__PURE__ */ C(
|
|
2070
|
+
"svg",
|
|
2071
|
+
{
|
|
2072
|
+
onClick: s,
|
|
2073
|
+
className: i,
|
|
2074
|
+
width: n,
|
|
2075
|
+
height: t,
|
|
2076
|
+
viewBox: "0 0 24 25",
|
|
2077
|
+
fill: "none",
|
|
2078
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2079
|
+
children: [
|
|
2080
|
+
/* @__PURE__ */ o(
|
|
2081
|
+
"path",
|
|
2082
|
+
{
|
|
2083
|
+
d: "M9.75 19.75H19.25V10.25H9.75V19.75ZM20.75 19.9004C20.7498 20.6457 20.1457 21.2498 19.4004 21.25H9.59961C8.85433 21.2498 8.25021 20.6457 8.25 19.9004V10.0996C8.25021 9.35433 8.85433 8.75021 9.59961 8.75H19.4004C20.1457 8.75021 20.7498 9.35433 20.75 10.0996V19.9004Z",
|
|
2084
|
+
fill: e
|
|
2085
|
+
}
|
|
2086
|
+
),
|
|
2087
|
+
/* @__PURE__ */ o(
|
|
2088
|
+
"path",
|
|
2089
|
+
{
|
|
2090
|
+
d: "M15.75 9.5C15.75 9.91421 15.4142 10.25 15 10.25C14.5858 10.25 14.25 9.91421 14.25 9.5V5.25H4.75V14.75H9C9.41421 14.75 9.75 15.0858 9.75 15.5C9.75 15.9142 9.41421 16.25 9 16.25H4.59961C3.85433 16.2498 3.25021 15.6457 3.25 14.9004V5.09961C3.25021 4.35433 3.85433 3.75021 4.59961 3.75H14.4004C15.1457 3.75021 15.7498 4.35433 15.75 5.09961V9.5Z",
|
|
2091
|
+
fill: e
|
|
2092
|
+
}
|
|
2093
|
+
)
|
|
2094
|
+
]
|
|
2095
|
+
}
|
|
2096
|
+
), W2 = ({
|
|
2064
2097
|
className: i,
|
|
2065
2098
|
color: e = b.GREY_DARK_5,
|
|
2066
2099
|
height: t = 24,
|
|
@@ -2129,7 +2162,7 @@ const Pe = ({
|
|
|
2129
2162
|
)
|
|
2130
2163
|
]
|
|
2131
2164
|
}
|
|
2132
|
-
),
|
|
2165
|
+
), K2 = ({
|
|
2133
2166
|
className: i,
|
|
2134
2167
|
color: e = b.GREY_DARK_5,
|
|
2135
2168
|
height: t = 24,
|
|
@@ -2186,7 +2219,7 @@ const Pe = ({
|
|
|
2186
2219
|
)
|
|
2187
2220
|
]
|
|
2188
2221
|
}
|
|
2189
|
-
),
|
|
2222
|
+
), P2 = ({
|
|
2190
2223
|
className: i,
|
|
2191
2224
|
color: e = b.GREY_DARK_5,
|
|
2192
2225
|
height: t = 24,
|
|
@@ -2225,7 +2258,7 @@ const Pe = ({
|
|
|
2225
2258
|
)
|
|
2226
2259
|
]
|
|
2227
2260
|
}
|
|
2228
|
-
),
|
|
2261
|
+
), $2 = ({
|
|
2229
2262
|
className: i,
|
|
2230
2263
|
color: e = b.GREY_DARK_5,
|
|
2231
2264
|
height: t = 24,
|
|
@@ -2274,7 +2307,7 @@ const Pe = ({
|
|
|
2274
2307
|
)
|
|
2275
2308
|
]
|
|
2276
2309
|
}
|
|
2277
|
-
),
|
|
2310
|
+
), F2 = ({
|
|
2278
2311
|
className: i,
|
|
2279
2312
|
color: e = b.GREY_DARK_5,
|
|
2280
2313
|
height: t = 24,
|
|
@@ -2301,7 +2334,7 @@ const Pe = ({
|
|
|
2301
2334
|
}
|
|
2302
2335
|
)
|
|
2303
2336
|
}
|
|
2304
|
-
),
|
|
2337
|
+
), Y2 = ({
|
|
2305
2338
|
className: i,
|
|
2306
2339
|
color: e = b.GREY_DARK_5,
|
|
2307
2340
|
height: t = 20,
|
|
@@ -2330,7 +2363,7 @@ const Pe = ({
|
|
|
2330
2363
|
)
|
|
2331
2364
|
]
|
|
2332
2365
|
}
|
|
2333
|
-
),
|
|
2366
|
+
), U2 = ({
|
|
2334
2367
|
className: i,
|
|
2335
2368
|
color: e = "#001E52",
|
|
2336
2369
|
height: t = 24,
|
|
@@ -2356,7 +2389,7 @@ const Pe = ({
|
|
|
2356
2389
|
}
|
|
2357
2390
|
)
|
|
2358
2391
|
}
|
|
2359
|
-
),
|
|
2392
|
+
), z2 = ({
|
|
2360
2393
|
className: i,
|
|
2361
2394
|
color: e = "#131314",
|
|
2362
2395
|
height: t = 20,
|
|
@@ -2384,7 +2417,7 @@ const Pe = ({
|
|
|
2384
2417
|
}
|
|
2385
2418
|
)
|
|
2386
2419
|
}
|
|
2387
|
-
),
|
|
2420
|
+
), J2 = ({
|
|
2388
2421
|
className: i,
|
|
2389
2422
|
color: e = "#001E52",
|
|
2390
2423
|
height: t = 24,
|
|
@@ -2422,7 +2455,7 @@ const Pe = ({
|
|
|
2422
2455
|
)
|
|
2423
2456
|
] }) })
|
|
2424
2457
|
}
|
|
2425
|
-
),
|
|
2458
|
+
), Q2 = ({
|
|
2426
2459
|
width: i = 20,
|
|
2427
2460
|
height: e = 20,
|
|
2428
2461
|
color: t = "#001E52",
|
|
@@ -2478,7 +2511,7 @@ const Pe = ({
|
|
|
2478
2511
|
}
|
|
2479
2512
|
)
|
|
2480
2513
|
}
|
|
2481
|
-
),
|
|
2514
|
+
), q2 = ({
|
|
2482
2515
|
width: i = 24,
|
|
2483
2516
|
height: e = 24,
|
|
2484
2517
|
color: t = "#131314",
|
|
@@ -2511,7 +2544,7 @@ const Pe = ({
|
|
|
2511
2544
|
)
|
|
2512
2545
|
]
|
|
2513
2546
|
}
|
|
2514
|
-
),
|
|
2547
|
+
), X2 = ({
|
|
2515
2548
|
width: i = 24,
|
|
2516
2549
|
height: e = 24,
|
|
2517
2550
|
color: t = b.GREY_DARK_2,
|
|
@@ -2550,7 +2583,7 @@ const Pe = ({
|
|
|
2550
2583
|
)
|
|
2551
2584
|
]
|
|
2552
2585
|
}
|
|
2553
|
-
),
|
|
2586
|
+
), et = ({
|
|
2554
2587
|
width: i = 24,
|
|
2555
2588
|
height: e = 24,
|
|
2556
2589
|
color: t = b.GREY_DARK_2,
|
|
@@ -2577,7 +2610,7 @@ const Pe = ({
|
|
|
2577
2610
|
}
|
|
2578
2611
|
)
|
|
2579
2612
|
}
|
|
2580
|
-
),
|
|
2613
|
+
), tt = ({
|
|
2581
2614
|
width: i = 24,
|
|
2582
2615
|
height: e = 24,
|
|
2583
2616
|
color: t = b.GREY_DARK_2,
|
|
@@ -2617,7 +2650,7 @@ const Pe = ({
|
|
|
2617
2650
|
)
|
|
2618
2651
|
]
|
|
2619
2652
|
}
|
|
2620
|
-
),
|
|
2653
|
+
), it = ({
|
|
2621
2654
|
width: i = 24,
|
|
2622
2655
|
height: e = 24,
|
|
2623
2656
|
color: t = b.GREY_DARK_2,
|
|
@@ -2644,7 +2677,7 @@ const Pe = ({
|
|
|
2644
2677
|
}
|
|
2645
2678
|
)
|
|
2646
2679
|
}
|
|
2647
|
-
),
|
|
2680
|
+
), nt = ({
|
|
2648
2681
|
width: i = 24,
|
|
2649
2682
|
height: e = 24,
|
|
2650
2683
|
color: t = b.GREY_DARK_2,
|
|
@@ -2671,7 +2704,7 @@ const Pe = ({
|
|
|
2671
2704
|
}
|
|
2672
2705
|
)
|
|
2673
2706
|
}
|
|
2674
|
-
),
|
|
2707
|
+
), st = ({
|
|
2675
2708
|
width: i = 20,
|
|
2676
2709
|
height: e = 20,
|
|
2677
2710
|
color: t = "#001E52",
|
|
@@ -2703,98 +2736,98 @@ const Pe = ({
|
|
|
2703
2736
|
height: t,
|
|
2704
2737
|
color: n,
|
|
2705
2738
|
className: s,
|
|
2706
|
-
disabled:
|
|
2739
|
+
disabled: a = !1,
|
|
2707
2740
|
onClick: c
|
|
2708
2741
|
}) => {
|
|
2709
|
-
const [
|
|
2710
|
-
return
|
|
2742
|
+
const [r, g] = V(s), { theme: d } = Q(ee), l = a ? d && d === "dark" ? b.GREY_LIGHT_4 : b.GREY_DARK_1 : n, h = a ? void 0 : c;
|
|
2743
|
+
return O(() => {
|
|
2711
2744
|
if (s) {
|
|
2712
|
-
h && !
|
|
2745
|
+
h && !a && g(`${s} clickable`);
|
|
2713
2746
|
return;
|
|
2714
2747
|
}
|
|
2715
|
-
h && !
|
|
2716
|
-
}, [h, s,
|
|
2748
|
+
h && !a && g("clickable");
|
|
2749
|
+
}, [h, s, a]), /* @__PURE__ */ o(Y, { children: (() => {
|
|
2717
2750
|
switch (i) {
|
|
2718
2751
|
case "nextIcon":
|
|
2719
|
-
return R2({ width: e, height: t, color: l, className:
|
|
2752
|
+
return R2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2720
2753
|
case "prevIcon":
|
|
2721
|
-
return M2({ width: e, height: t, color: l, className:
|
|
2754
|
+
return M2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2722
2755
|
case "arrowDown":
|
|
2723
|
-
return Pe({ width: e, height: t, color: l, className:
|
|
2756
|
+
return Pe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2724
2757
|
case "info":
|
|
2725
|
-
return $e({ width: e, height: t, color: l, className:
|
|
2758
|
+
return $e({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2726
2759
|
case "arrowRight":
|
|
2727
|
-
return Fe({ width: e, height: t, color: l, className:
|
|
2760
|
+
return Fe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2728
2761
|
case "calendar":
|
|
2729
|
-
return Ye({ width: e, height: t, color: l, className:
|
|
2762
|
+
return Ye({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2730
2763
|
case "ok":
|
|
2731
|
-
return Ue({ width: e, height: t, color: l, className:
|
|
2764
|
+
return Ue({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2732
2765
|
case "cancel":
|
|
2733
|
-
return ze({ width: e, height: t, color: l, className:
|
|
2766
|
+
return ze({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2734
2767
|
case "add":
|
|
2735
|
-
return Je({ width: e, height: t, color: l, className:
|
|
2768
|
+
return Je({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2736
2769
|
case "list":
|
|
2737
|
-
return Qe({ width: e, height: t, color: l, className:
|
|
2770
|
+
return Qe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2738
2771
|
case "dragAndDrop":
|
|
2739
|
-
return qe({ width: e, height: t, color: l, className:
|
|
2772
|
+
return qe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2740
2773
|
case "filter":
|
|
2741
|
-
return Xe({ width: e, height: t, color: l, className:
|
|
2774
|
+
return Xe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2742
2775
|
case "attention":
|
|
2743
|
-
return e2({ width: e, height: t, color: l, className:
|
|
2776
|
+
return e2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2744
2777
|
case "users":
|
|
2745
|
-
return t2({ width: e, height: t, color: l, className:
|
|
2778
|
+
return t2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2746
2779
|
case "mySkillsMatrix":
|
|
2747
2780
|
return i2({
|
|
2748
2781
|
width: e,
|
|
2749
2782
|
height: t,
|
|
2750
2783
|
color: l,
|
|
2751
|
-
className:
|
|
2784
|
+
className: r,
|
|
2752
2785
|
onClick: h
|
|
2753
2786
|
});
|
|
2754
2787
|
case "skills":
|
|
2755
|
-
return n2({ width: e, height: t, color: l, className:
|
|
2788
|
+
return n2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2756
2789
|
case "skillsMatrices":
|
|
2757
2790
|
return s2({
|
|
2758
2791
|
width: e,
|
|
2759
2792
|
height: t,
|
|
2760
2793
|
color: l,
|
|
2761
|
-
className:
|
|
2794
|
+
className: r,
|
|
2762
2795
|
onClick: h
|
|
2763
2796
|
});
|
|
2764
2797
|
case "history":
|
|
2765
|
-
return o2({ width: e, height: t, color: l, className:
|
|
2798
|
+
return o2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2766
2799
|
case "logOut":
|
|
2767
|
-
return r2({ width: e, height: t, color: l, className:
|
|
2800
|
+
return r2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2768
2801
|
case "settings":
|
|
2769
|
-
return a2({ width: e, height: t, color: l, className:
|
|
2802
|
+
return a2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2770
2803
|
case "trash":
|
|
2771
|
-
return l2({ width: e, height: t, color: l, className:
|
|
2804
|
+
return l2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2772
2805
|
case "settings4":
|
|
2773
|
-
return h2({ width: e, height: t, color: l, className:
|
|
2806
|
+
return h2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2774
2807
|
case "success":
|
|
2775
|
-
return c2({ width: e, height: t, color: l, className:
|
|
2808
|
+
return c2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2776
2809
|
case "checkCircle":
|
|
2777
|
-
return d2({ width: e, height: t, color: l, className:
|
|
2810
|
+
return d2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2778
2811
|
case "errorSmall":
|
|
2779
|
-
return g2({ width: e, height: t, color: l, className:
|
|
2812
|
+
return g2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2780
2813
|
case "infoMedium":
|
|
2781
|
-
return u2({ width: e, height: t, color: l, className:
|
|
2814
|
+
return u2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2782
2815
|
case "attentionMedium":
|
|
2783
2816
|
return C2({
|
|
2784
2817
|
width: e,
|
|
2785
2818
|
height: t,
|
|
2786
2819
|
color: l,
|
|
2787
|
-
className:
|
|
2820
|
+
className: r,
|
|
2788
2821
|
onClick: h
|
|
2789
2822
|
});
|
|
2790
2823
|
case "errorMedium":
|
|
2791
|
-
return p2({ width: e, height: t, color: l, className:
|
|
2824
|
+
return p2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2792
2825
|
case "visibilityIcon":
|
|
2793
2826
|
return f2({
|
|
2794
2827
|
width: e,
|
|
2795
2828
|
height: t,
|
|
2796
2829
|
color: l,
|
|
2797
|
-
className:
|
|
2830
|
+
className: r,
|
|
2798
2831
|
onClick: h
|
|
2799
2832
|
});
|
|
2800
2833
|
case "visibilityOffIcon":
|
|
@@ -2802,7 +2835,7 @@ const Pe = ({
|
|
|
2802
2835
|
width: e,
|
|
2803
2836
|
height: t,
|
|
2804
2837
|
color: l,
|
|
2805
|
-
className:
|
|
2838
|
+
className: r,
|
|
2806
2839
|
onClick: h
|
|
2807
2840
|
});
|
|
2808
2841
|
case "selectArrowIcon":
|
|
@@ -2810,7 +2843,7 @@ const Pe = ({
|
|
|
2810
2843
|
width: e,
|
|
2811
2844
|
height: t,
|
|
2812
2845
|
color: l,
|
|
2813
|
-
className:
|
|
2846
|
+
className: r,
|
|
2814
2847
|
onClick: h
|
|
2815
2848
|
});
|
|
2816
2849
|
case "expandArrowIcon":
|
|
@@ -2818,7 +2851,7 @@ const Pe = ({
|
|
|
2818
2851
|
width: e,
|
|
2819
2852
|
height: t,
|
|
2820
2853
|
color: l,
|
|
2821
|
-
className:
|
|
2854
|
+
className: r,
|
|
2822
2855
|
onClick: h
|
|
2823
2856
|
});
|
|
2824
2857
|
case "expandActiveArrowIcon":
|
|
@@ -2826,106 +2859,108 @@ const Pe = ({
|
|
|
2826
2859
|
width: e,
|
|
2827
2860
|
height: t,
|
|
2828
2861
|
color: l,
|
|
2829
|
-
className:
|
|
2862
|
+
className: r,
|
|
2830
2863
|
onClick: h
|
|
2831
2864
|
});
|
|
2832
2865
|
case "sortUp":
|
|
2833
|
-
return v2({ width: e, height: t, color: l, className:
|
|
2866
|
+
return v2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2834
2867
|
case "sortDown":
|
|
2835
|
-
return N2({ width: e, height: t, color: l, className:
|
|
2868
|
+
return N2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2836
2869
|
case "search":
|
|
2837
|
-
return x2({ width: e, height: t, color: l, className:
|
|
2870
|
+
return x2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2838
2871
|
case "arrowUpFilled":
|
|
2839
|
-
return y2({ width: e, height: t, color: l, className:
|
|
2872
|
+
return y2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2840
2873
|
case "arrowDownFilled":
|
|
2841
|
-
return b2({ width: e, height: t, color: l, className:
|
|
2874
|
+
return b2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2842
2875
|
case "link":
|
|
2843
|
-
return E2({ width: e, height: t, color: l, className:
|
|
2876
|
+
return E2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2844
2877
|
case "telegram":
|
|
2845
|
-
return H2({ width: e, height: t, color: l, className:
|
|
2878
|
+
return H2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2846
2879
|
case "mail":
|
|
2847
|
-
return
|
|
2880
|
+
return V2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2848
2881
|
case "github":
|
|
2849
|
-
return _2({ width: e, height: t, color: l, className:
|
|
2882
|
+
return _2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2850
2883
|
case "linkedIn":
|
|
2851
|
-
return I2({ width: e, height: t, color: l, className:
|
|
2884
|
+
return I2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2852
2885
|
case "emptyStateIcon":
|
|
2853
|
-
return
|
|
2886
|
+
return O2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2854
2887
|
case "filtersIcon":
|
|
2855
|
-
return
|
|
2888
|
+
return S2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2856
2889
|
case "dotMenuIcon":
|
|
2857
|
-
return A2({ width: e, height: t, color: l, className:
|
|
2890
|
+
return A2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2858
2891
|
case "plusCircle":
|
|
2859
|
-
return
|
|
2892
|
+
return Z2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2860
2893
|
case "warning":
|
|
2861
|
-
return
|
|
2894
|
+
return T2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2862
2895
|
case "back":
|
|
2863
|
-
return D2({ width: e, height: t, color: l, className:
|
|
2896
|
+
return D2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2864
2897
|
case "bell":
|
|
2865
|
-
return B2({ width: e, height: t, color: l, className:
|
|
2898
|
+
return B2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2899
|
+
case "copy":
|
|
2900
|
+
return G2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2866
2901
|
case "contract":
|
|
2867
|
-
return
|
|
2902
|
+
return W2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2868
2903
|
case "trash2":
|
|
2869
|
-
return j2({ width: e, height: t, color: l, className:
|
|
2904
|
+
return j2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2870
2905
|
case "resourceManager":
|
|
2871
|
-
return
|
|
2906
|
+
return K2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2872
2907
|
case "settings2":
|
|
2873
|
-
return
|
|
2908
|
+
return P2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2874
2909
|
case "image":
|
|
2875
|
-
return
|
|
2910
|
+
return $2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2876
2911
|
case "edit":
|
|
2877
|
-
return
|
|
2912
|
+
return F2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2878
2913
|
case "filledArrowRight":
|
|
2879
|
-
return
|
|
2914
|
+
return Y2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2880
2915
|
case "burgerMenu":
|
|
2881
|
-
return
|
|
2916
|
+
return U2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2882
2917
|
case "signOut":
|
|
2883
|
-
return
|
|
2918
|
+
return z2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2884
2919
|
case "refresh":
|
|
2885
|
-
return
|
|
2920
|
+
return J2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2886
2921
|
case "projects":
|
|
2887
|
-
return
|
|
2922
|
+
return Q2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2888
2923
|
case "profile":
|
|
2889
|
-
return
|
|
2924
|
+
return st({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2890
2925
|
case "exit":
|
|
2891
|
-
return
|
|
2926
|
+
return q2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2892
2927
|
case "client":
|
|
2893
|
-
return
|
|
2928
|
+
return X2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2894
2929
|
case "calendar2":
|
|
2895
|
-
return
|
|
2930
|
+
return et({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2896
2931
|
case "openPointCircle":
|
|
2897
|
-
return
|
|
2932
|
+
return tt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2898
2933
|
case "community":
|
|
2899
|
-
return
|
|
2934
|
+
return it({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2900
2935
|
case "docs":
|
|
2901
|
-
return
|
|
2936
|
+
return nt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2902
2937
|
default:
|
|
2903
2938
|
return /* @__PURE__ */ o(Y, { children: "No Icon provided" });
|
|
2904
2939
|
}
|
|
2905
2940
|
})() });
|
|
2906
|
-
}, { Title:
|
|
2941
|
+
}, { Title: ot, Text: rt } = J1, at = {
|
|
2907
2942
|
h1: 1,
|
|
2908
2943
|
h2: 2,
|
|
2909
2944
|
h3: 3,
|
|
2910
2945
|
h4: 4
|
|
2911
|
-
},
|
|
2946
|
+
}, lt = w1(
|
|
2912
2947
|
({
|
|
2913
2948
|
align: i = "inherit",
|
|
2914
2949
|
variant: e = "body1",
|
|
2915
2950
|
color: t,
|
|
2916
2951
|
children: n,
|
|
2917
2952
|
onClick: s,
|
|
2918
|
-
collapsed:
|
|
2953
|
+
collapsed: a,
|
|
2919
2954
|
whiteSpace: c = "normal",
|
|
2920
2955
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2921
|
-
trim:
|
|
2956
|
+
trim: r = !1
|
|
2922
2957
|
}, g) => {
|
|
2923
2958
|
const d = J(null);
|
|
2924
2959
|
Q1(g, () => d.current);
|
|
2925
|
-
const [l, h] =
|
|
2926
|
-
|
|
2960
|
+
const [l, h] = V(!1);
|
|
2961
|
+
O(() => {
|
|
2927
2962
|
var L;
|
|
2928
|
-
if (!
|
|
2963
|
+
if (!r) return;
|
|
2929
2964
|
const m = () => {
|
|
2930
2965
|
d.current && h(d.current.scrollWidth > d.current.clientWidth);
|
|
2931
2966
|
};
|
|
@@ -2934,23 +2969,23 @@ const Pe = ({
|
|
|
2934
2969
|
return d.current && E.observe(d.current), (L = d.current) != null && L.parentElement && E.observe(d.current.parentElement), () => {
|
|
2935
2970
|
E.disconnect();
|
|
2936
2971
|
};
|
|
2937
|
-
}, [
|
|
2972
|
+
}, [r]);
|
|
2938
2973
|
const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
2939
2974
|
let p = `snmt-typography snmt-typography-${e}`;
|
|
2940
|
-
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`),
|
|
2975
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), a && (p += " collapsed");
|
|
2941
2976
|
const w = {
|
|
2942
2977
|
className: p,
|
|
2943
|
-
style: { color: t, whiteSpace:
|
|
2978
|
+
style: { color: t, whiteSpace: r ? "nowrap" : c, display: r ? "block" : "" },
|
|
2944
2979
|
onClick: s,
|
|
2945
2980
|
ref: d,
|
|
2946
|
-
ellipsis:
|
|
2981
|
+
ellipsis: r && l ? {
|
|
2947
2982
|
tooltip: {
|
|
2948
2983
|
title: n,
|
|
2949
2984
|
overlayClassName: "snmt-tooltip"
|
|
2950
2985
|
}
|
|
2951
2986
|
} : void 0
|
|
2952
2987
|
};
|
|
2953
|
-
return u ? /* @__PURE__ */ o(
|
|
2988
|
+
return u ? /* @__PURE__ */ o(ot, { level: at[e], ...w, children: n }) : /* @__PURE__ */ o(rt, { ...w, children: n });
|
|
2954
2989
|
}
|
|
2955
2990
|
);
|
|
2956
2991
|
var y = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(y || {});
|
|
@@ -2959,7 +2994,7 @@ const te = t1({
|
|
|
2959
2994
|
theme: "light"
|
|
2960
2995
|
});
|
|
2961
2996
|
te.Provider;
|
|
2962
|
-
const
|
|
2997
|
+
const ht = ({
|
|
2963
2998
|
width: i = 20,
|
|
2964
2999
|
height: e = 20,
|
|
2965
3000
|
color: t = "#001E52",
|
|
@@ -2986,7 +3021,7 @@ const lt = ({
|
|
|
2986
3021
|
}
|
|
2987
3022
|
)
|
|
2988
3023
|
}
|
|
2989
|
-
),
|
|
3024
|
+
), ct = ({
|
|
2990
3025
|
width: i = 20,
|
|
2991
3026
|
height: e = 20,
|
|
2992
3027
|
color: t = y.GREY_DARK_5,
|
|
@@ -3026,7 +3061,7 @@ const lt = ({
|
|
|
3026
3061
|
)
|
|
3027
3062
|
]
|
|
3028
3063
|
}
|
|
3029
|
-
),
|
|
3064
|
+
), dt = ({
|
|
3030
3065
|
width: i = 20,
|
|
3031
3066
|
height: e = 20,
|
|
3032
3067
|
color: t = "#001E52",
|
|
@@ -3061,7 +3096,7 @@ const lt = ({
|
|
|
3061
3096
|
)
|
|
3062
3097
|
]
|
|
3063
3098
|
}
|
|
3064
|
-
),
|
|
3099
|
+
), gt = ({
|
|
3065
3100
|
width: i = 18,
|
|
3066
3101
|
height: e = 18,
|
|
3067
3102
|
color: t = "#001E52",
|
|
@@ -3100,7 +3135,7 @@ const lt = ({
|
|
|
3100
3135
|
)
|
|
3101
3136
|
]
|
|
3102
3137
|
}
|
|
3103
|
-
),
|
|
3138
|
+
), ut = ({
|
|
3104
3139
|
width: i = 20,
|
|
3105
3140
|
height: e = 20,
|
|
3106
3141
|
color: t = "#001E52",
|
|
@@ -3126,7 +3161,7 @@ const lt = ({
|
|
|
3126
3161
|
}
|
|
3127
3162
|
)
|
|
3128
3163
|
}
|
|
3129
|
-
),
|
|
3164
|
+
), Ct = ({
|
|
3130
3165
|
width: i = 20,
|
|
3131
3166
|
height: e = 20,
|
|
3132
3167
|
color: t = "#001E52",
|
|
@@ -3147,7 +3182,7 @@ const lt = ({
|
|
|
3147
3182
|
/* @__PURE__ */ o("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
|
3148
3183
|
]
|
|
3149
3184
|
}
|
|
3150
|
-
),
|
|
3185
|
+
), pt = ({
|
|
3151
3186
|
width: i = 20,
|
|
3152
3187
|
height: e = 20,
|
|
3153
3188
|
color: t = "#001E52",
|
|
@@ -3179,7 +3214,7 @@ const lt = ({
|
|
|
3179
3214
|
)
|
|
3180
3215
|
]
|
|
3181
3216
|
}
|
|
3182
|
-
),
|
|
3217
|
+
), ft = ({
|
|
3183
3218
|
width: i = 20,
|
|
3184
3219
|
height: e = 20,
|
|
3185
3220
|
color: t = "#001E52",
|
|
@@ -3233,7 +3268,7 @@ const lt = ({
|
|
|
3233
3268
|
)
|
|
3234
3269
|
]
|
|
3235
3270
|
}
|
|
3236
|
-
),
|
|
3271
|
+
), mt = ({
|
|
3237
3272
|
width: i = 20,
|
|
3238
3273
|
height: e = 20,
|
|
3239
3274
|
color: t = "#001E52",
|
|
@@ -3272,7 +3307,7 @@ const lt = ({
|
|
|
3272
3307
|
/* @__PURE__ */ o("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
|
3273
3308
|
]
|
|
3274
3309
|
}
|
|
3275
|
-
),
|
|
3310
|
+
), wt = ({
|
|
3276
3311
|
width: i = 16,
|
|
3277
3312
|
height: e = 12,
|
|
3278
3313
|
color: t = "#001E52",
|
|
@@ -3321,7 +3356,7 @@ const lt = ({
|
|
|
3321
3356
|
)
|
|
3322
3357
|
] })
|
|
3323
3358
|
}
|
|
3324
|
-
),
|
|
3359
|
+
), kt = ({
|
|
3325
3360
|
width: i = 20,
|
|
3326
3361
|
height: e = 20,
|
|
3327
3362
|
color: t = y.GREY_DARK_5,
|
|
@@ -3361,7 +3396,7 @@ const lt = ({
|
|
|
3361
3396
|
)
|
|
3362
3397
|
]
|
|
3363
3398
|
}
|
|
3364
|
-
),
|
|
3399
|
+
), Lt = ({
|
|
3365
3400
|
width: i = 20,
|
|
3366
3401
|
height: e = 20,
|
|
3367
3402
|
color: t = "#001E52",
|
|
@@ -3408,7 +3443,7 @@ const lt = ({
|
|
|
3408
3443
|
)
|
|
3409
3444
|
]
|
|
3410
3445
|
}
|
|
3411
|
-
),
|
|
3446
|
+
), vt = ({
|
|
3412
3447
|
width: i = 20,
|
|
3413
3448
|
height: e = 20,
|
|
3414
3449
|
color: t = "#001E52",
|
|
@@ -3441,7 +3476,7 @@ const lt = ({
|
|
|
3441
3476
|
)
|
|
3442
3477
|
]
|
|
3443
3478
|
}
|
|
3444
|
-
),
|
|
3479
|
+
), Nt = ({
|
|
3445
3480
|
width: i = 20,
|
|
3446
3481
|
height: e = 20,
|
|
3447
3482
|
color: t = "#001E52",
|
|
@@ -3488,7 +3523,7 @@ const lt = ({
|
|
|
3488
3523
|
)
|
|
3489
3524
|
]
|
|
3490
3525
|
}
|
|
3491
|
-
),
|
|
3526
|
+
), xt = ({
|
|
3492
3527
|
width: i = 20,
|
|
3493
3528
|
height: e = 20,
|
|
3494
3529
|
color: t = "#001E52",
|
|
@@ -3521,7 +3556,7 @@ const lt = ({
|
|
|
3521
3556
|
)
|
|
3522
3557
|
]
|
|
3523
3558
|
}
|
|
3524
|
-
),
|
|
3559
|
+
), Rt = ({
|
|
3525
3560
|
width: i = 18,
|
|
3526
3561
|
height: e = 16,
|
|
3527
3562
|
color: t = "#001E52",
|
|
@@ -3560,7 +3595,7 @@ const lt = ({
|
|
|
3560
3595
|
)
|
|
3561
3596
|
]
|
|
3562
3597
|
}
|
|
3563
|
-
),
|
|
3598
|
+
), Mt = ({
|
|
3564
3599
|
width: i = 20,
|
|
3565
3600
|
height: e = 20,
|
|
3566
3601
|
color: t = "#001E52",
|
|
@@ -3593,7 +3628,7 @@ const lt = ({
|
|
|
3593
3628
|
)
|
|
3594
3629
|
]
|
|
3595
3630
|
}
|
|
3596
|
-
),
|
|
3631
|
+
), bt = ({
|
|
3597
3632
|
width: i = 20,
|
|
3598
3633
|
height: e = 20,
|
|
3599
3634
|
color: t = "#001E52",
|
|
@@ -3617,7 +3652,7 @@ const lt = ({
|
|
|
3617
3652
|
}
|
|
3618
3653
|
)
|
|
3619
3654
|
}
|
|
3620
|
-
),
|
|
3655
|
+
), yt = ({
|
|
3621
3656
|
width: i = 20,
|
|
3622
3657
|
height: e = 20,
|
|
3623
3658
|
color: t = "#001E52",
|
|
@@ -3650,7 +3685,7 @@ const lt = ({
|
|
|
3650
3685
|
)
|
|
3651
3686
|
]
|
|
3652
3687
|
}
|
|
3653
|
-
),
|
|
3688
|
+
), Et = ({
|
|
3654
3689
|
width: i = 20,
|
|
3655
3690
|
height: e = 23,
|
|
3656
3691
|
color: t = "#001E52",
|
|
@@ -3711,7 +3746,7 @@ const lt = ({
|
|
|
3711
3746
|
)
|
|
3712
3747
|
]
|
|
3713
3748
|
}
|
|
3714
|
-
),
|
|
3749
|
+
), _t = ({
|
|
3715
3750
|
width: i = 14,
|
|
3716
3751
|
height: e = 14,
|
|
3717
3752
|
color: t = "#10B981",
|
|
@@ -3740,7 +3775,7 @@ const lt = ({
|
|
|
3740
3775
|
)
|
|
3741
3776
|
]
|
|
3742
3777
|
}
|
|
3743
|
-
),
|
|
3778
|
+
), Ht = ({
|
|
3744
3779
|
width: i = 20,
|
|
3745
3780
|
height: e = 20,
|
|
3746
3781
|
color: t = y.GREY_DARK_5,
|
|
@@ -3773,7 +3808,7 @@ const lt = ({
|
|
|
3773
3808
|
)
|
|
3774
3809
|
]
|
|
3775
3810
|
}
|
|
3776
|
-
),
|
|
3811
|
+
), It = ({
|
|
3777
3812
|
width: i = 10,
|
|
3778
3813
|
height: e = 10,
|
|
3779
3814
|
color: t = "#88A4FF",
|
|
@@ -3821,7 +3856,7 @@ const lt = ({
|
|
|
3821
3856
|
)
|
|
3822
3857
|
]
|
|
3823
3858
|
}
|
|
3824
|
-
),
|
|
3859
|
+
), Vt = ({
|
|
3825
3860
|
width: i = 14,
|
|
3826
3861
|
height: e = 14,
|
|
3827
3862
|
color: t = "#8E8E93",
|
|
@@ -3931,7 +3966,7 @@ const lt = ({
|
|
|
3931
3966
|
)
|
|
3932
3967
|
]
|
|
3933
3968
|
}
|
|
3934
|
-
),
|
|
3969
|
+
), At = ({
|
|
3935
3970
|
width: i = 20,
|
|
3936
3971
|
height: e = 20,
|
|
3937
3972
|
color: t = "#070739",
|
|
@@ -3961,7 +3996,7 @@ const lt = ({
|
|
|
3961
3996
|
/* @__PURE__ */ o("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
3962
3997
|
]
|
|
3963
3998
|
}
|
|
3964
|
-
),
|
|
3999
|
+
), Zt = ({
|
|
3965
4000
|
width: i = 20,
|
|
3966
4001
|
height: e = 20,
|
|
3967
4002
|
color: t = "#070739",
|
|
@@ -4025,7 +4060,7 @@ const lt = ({
|
|
|
4025
4060
|
}
|
|
4026
4061
|
)
|
|
4027
4062
|
}
|
|
4028
|
-
),
|
|
4063
|
+
), Dt = ({
|
|
4029
4064
|
width: i = 20,
|
|
4030
4065
|
height: e = 20,
|
|
4031
4066
|
color: t = "#F2F2F7",
|
|
@@ -4054,7 +4089,7 @@ const lt = ({
|
|
|
4054
4089
|
)
|
|
4055
4090
|
]
|
|
4056
4091
|
}
|
|
4057
|
-
),
|
|
4092
|
+
), Bt = ({
|
|
4058
4093
|
width: i = 20,
|
|
4059
4094
|
height: e = 20,
|
|
4060
4095
|
color: t = "#004ED7",
|
|
@@ -4083,7 +4118,7 @@ const lt = ({
|
|
|
4083
4118
|
)
|
|
4084
4119
|
]
|
|
4085
4120
|
}
|
|
4086
|
-
),
|
|
4121
|
+
), jt = ({
|
|
4087
4122
|
width: i = 10,
|
|
4088
4123
|
height: e = 10,
|
|
4089
4124
|
color: t = "#001E52",
|
|
@@ -4112,7 +4147,7 @@ const lt = ({
|
|
|
4112
4147
|
)
|
|
4113
4148
|
]
|
|
4114
4149
|
}
|
|
4115
|
-
),
|
|
4150
|
+
), Gt = ({
|
|
4116
4151
|
width: i = 10,
|
|
4117
4152
|
height: e = 10,
|
|
4118
4153
|
color: t = "#001E52",
|
|
@@ -4149,7 +4184,7 @@ const lt = ({
|
|
|
4149
4184
|
)
|
|
4150
4185
|
]
|
|
4151
4186
|
}
|
|
4152
|
-
),
|
|
4187
|
+
), Wt = ({
|
|
4153
4188
|
className: i,
|
|
4154
4189
|
color: e = y.GREY_DARK_5,
|
|
4155
4190
|
height: t = 24,
|
|
@@ -4188,7 +4223,7 @@ const lt = ({
|
|
|
4188
4223
|
)
|
|
4189
4224
|
]
|
|
4190
4225
|
}
|
|
4191
|
-
),
|
|
4226
|
+
), Kt = ({
|
|
4192
4227
|
className: i,
|
|
4193
4228
|
color: e = y.GREY_DARK_5,
|
|
4194
4229
|
height: t = 20,
|
|
@@ -4215,7 +4250,7 @@ const lt = ({
|
|
|
4215
4250
|
}
|
|
4216
4251
|
)
|
|
4217
4252
|
}
|
|
4218
|
-
),
|
|
4253
|
+
), Pt = ({
|
|
4219
4254
|
className: i,
|
|
4220
4255
|
color: e = y.GREY_DARK_5,
|
|
4221
4256
|
height: t = 20,
|
|
@@ -4242,7 +4277,7 @@ const lt = ({
|
|
|
4242
4277
|
}
|
|
4243
4278
|
)
|
|
4244
4279
|
}
|
|
4245
|
-
),
|
|
4280
|
+
), $t = ({
|
|
4246
4281
|
className: i,
|
|
4247
4282
|
color: e = y.GREY_DARK_5,
|
|
4248
4283
|
height: t = 5,
|
|
@@ -4266,7 +4301,7 @@ const lt = ({
|
|
|
4266
4301
|
}
|
|
4267
4302
|
)
|
|
4268
4303
|
}
|
|
4269
|
-
),
|
|
4304
|
+
), Ft = ({
|
|
4270
4305
|
className: i,
|
|
4271
4306
|
color: e = y.GREY_DARK_5,
|
|
4272
4307
|
height: t = 5,
|
|
@@ -4291,7 +4326,7 @@ const lt = ({
|
|
|
4291
4326
|
}
|
|
4292
4327
|
)
|
|
4293
4328
|
}
|
|
4294
|
-
),
|
|
4329
|
+
), Yt = ({
|
|
4295
4330
|
className: i,
|
|
4296
4331
|
color: e = y.GREY_DARK_5,
|
|
4297
4332
|
height: t = 24,
|
|
@@ -4330,7 +4365,7 @@ const lt = ({
|
|
|
4330
4365
|
)
|
|
4331
4366
|
]
|
|
4332
4367
|
}
|
|
4333
|
-
),
|
|
4368
|
+
), Ut = ({
|
|
4334
4369
|
className: i,
|
|
4335
4370
|
color: e = y.GREY_DARK_5,
|
|
4336
4371
|
height: t = 24,
|
|
@@ -4369,7 +4404,7 @@ const lt = ({
|
|
|
4369
4404
|
)
|
|
4370
4405
|
]
|
|
4371
4406
|
}
|
|
4372
|
-
),
|
|
4407
|
+
), zt = ({
|
|
4373
4408
|
className: i,
|
|
4374
4409
|
color: e = y.GREY_DARK_5,
|
|
4375
4410
|
height: t = 24,
|
|
@@ -4396,7 +4431,7 @@ const lt = ({
|
|
|
4396
4431
|
}
|
|
4397
4432
|
)
|
|
4398
4433
|
}
|
|
4399
|
-
),
|
|
4434
|
+
), Jt = ({
|
|
4400
4435
|
className: i,
|
|
4401
4436
|
color: e = y.GREY_DARK_5,
|
|
4402
4437
|
height: t = 24,
|
|
@@ -4455,7 +4490,7 @@ const lt = ({
|
|
|
4455
4490
|
)
|
|
4456
4491
|
]
|
|
4457
4492
|
}
|
|
4458
|
-
),
|
|
4493
|
+
), Qt = ({
|
|
4459
4494
|
className: i,
|
|
4460
4495
|
color: e = y.GREY_DARK_5,
|
|
4461
4496
|
height: t = 24,
|
|
@@ -4492,7 +4527,7 @@ const lt = ({
|
|
|
4492
4527
|
)
|
|
4493
4528
|
]
|
|
4494
4529
|
}
|
|
4495
|
-
),
|
|
4530
|
+
), qt = ({
|
|
4496
4531
|
className: i,
|
|
4497
4532
|
color: e = y.GREY_DARK_3,
|
|
4498
4533
|
height: t = 14,
|
|
@@ -4529,7 +4564,7 @@ const lt = ({
|
|
|
4529
4564
|
)
|
|
4530
4565
|
]
|
|
4531
4566
|
}
|
|
4532
|
-
),
|
|
4567
|
+
), Xt = ({
|
|
4533
4568
|
className: i,
|
|
4534
4569
|
color: e = y.GREY_DARK_5,
|
|
4535
4570
|
height: t = 18,
|
|
@@ -4556,7 +4591,7 @@ const lt = ({
|
|
|
4556
4591
|
}
|
|
4557
4592
|
)
|
|
4558
4593
|
}
|
|
4559
|
-
),
|
|
4594
|
+
), e5 = ({
|
|
4560
4595
|
className: i,
|
|
4561
4596
|
color: e = y.GREY_DARK_5,
|
|
4562
4597
|
height: t = 24,
|
|
@@ -4608,7 +4643,7 @@ const lt = ({
|
|
|
4608
4643
|
)
|
|
4609
4644
|
]
|
|
4610
4645
|
}
|
|
4611
|
-
),
|
|
4646
|
+
), t5 = ({
|
|
4612
4647
|
className: i,
|
|
4613
4648
|
color: e = y.GREY_DARK_5,
|
|
4614
4649
|
height: t = 24,
|
|
@@ -4645,7 +4680,7 @@ const lt = ({
|
|
|
4645
4680
|
)
|
|
4646
4681
|
]
|
|
4647
4682
|
}
|
|
4648
|
-
),
|
|
4683
|
+
), i5 = ({
|
|
4649
4684
|
className: i,
|
|
4650
4685
|
color: e = y.NOTIFICATION_WARNING_DARK,
|
|
4651
4686
|
height: t = 37,
|
|
@@ -4684,7 +4719,7 @@ const lt = ({
|
|
|
4684
4719
|
)
|
|
4685
4720
|
]
|
|
4686
4721
|
}
|
|
4687
|
-
),
|
|
4722
|
+
), n5 = ({
|
|
4688
4723
|
className: i,
|
|
4689
4724
|
color: e = y.GREY_DARK_5,
|
|
4690
4725
|
height: t = 24,
|
|
@@ -4710,7 +4745,7 @@ const lt = ({
|
|
|
4710
4745
|
}
|
|
4711
4746
|
)
|
|
4712
4747
|
}
|
|
4713
|
-
),
|
|
4748
|
+
), s5 = ({
|
|
4714
4749
|
className: i,
|
|
4715
4750
|
color: e = y.GREY_DARK_5,
|
|
4716
4751
|
height: t = 24,
|
|
@@ -4749,7 +4784,7 @@ const lt = ({
|
|
|
4749
4784
|
)
|
|
4750
4785
|
]
|
|
4751
4786
|
}
|
|
4752
|
-
),
|
|
4787
|
+
), o5 = ({
|
|
4753
4788
|
className: i,
|
|
4754
4789
|
color: e = y.GREY_DARK_5,
|
|
4755
4790
|
height: t = 24,
|
|
@@ -4788,7 +4823,40 @@ const lt = ({
|
|
|
4788
4823
|
)
|
|
4789
4824
|
]
|
|
4790
4825
|
}
|
|
4791
|
-
),
|
|
4826
|
+
), r5 = ({
|
|
4827
|
+
className: i,
|
|
4828
|
+
color: e = y.GREY_DARK_5,
|
|
4829
|
+
height: t = 20,
|
|
4830
|
+
width: n = 20,
|
|
4831
|
+
onClick: s
|
|
4832
|
+
}) => /* @__PURE__ */ C(
|
|
4833
|
+
"svg",
|
|
4834
|
+
{
|
|
4835
|
+
onClick: s,
|
|
4836
|
+
className: i,
|
|
4837
|
+
width: n,
|
|
4838
|
+
height: t,
|
|
4839
|
+
viewBox: "0 0 24 25",
|
|
4840
|
+
fill: "none",
|
|
4841
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4842
|
+
children: [
|
|
4843
|
+
/* @__PURE__ */ o(
|
|
4844
|
+
"path",
|
|
4845
|
+
{
|
|
4846
|
+
d: "M9.75 19.75H19.25V10.25H9.75V19.75ZM20.75 19.9004C20.7498 20.6457 20.1457 21.2498 19.4004 21.25H9.59961C8.85433 21.2498 8.25021 20.6457 8.25 19.9004V10.0996C8.25021 9.35433 8.85433 8.75021 9.59961 8.75H19.4004C20.1457 8.75021 20.7498 9.35433 20.75 10.0996V19.9004Z",
|
|
4847
|
+
fill: e
|
|
4848
|
+
}
|
|
4849
|
+
),
|
|
4850
|
+
/* @__PURE__ */ o(
|
|
4851
|
+
"path",
|
|
4852
|
+
{
|
|
4853
|
+
d: "M15.75 9.5C15.75 9.91421 15.4142 10.25 15 10.25C14.5858 10.25 14.25 9.91421 14.25 9.5V5.25H4.75V14.75H9C9.41421 14.75 9.75 15.0858 9.75 15.5C9.75 15.9142 9.41421 16.25 9 16.25H4.59961C3.85433 16.2498 3.25021 15.6457 3.25 14.9004V5.09961C3.25021 4.35433 3.85433 3.75021 4.59961 3.75H14.4004C15.1457 3.75021 15.7498 4.35433 15.75 5.09961V9.5Z",
|
|
4854
|
+
fill: e
|
|
4855
|
+
}
|
|
4856
|
+
)
|
|
4857
|
+
]
|
|
4858
|
+
}
|
|
4859
|
+
), a5 = ({
|
|
4792
4860
|
className: i,
|
|
4793
4861
|
color: e = y.GREY_DARK_5,
|
|
4794
4862
|
height: t = 24,
|
|
@@ -4857,7 +4925,7 @@ const lt = ({
|
|
|
4857
4925
|
)
|
|
4858
4926
|
]
|
|
4859
4927
|
}
|
|
4860
|
-
),
|
|
4928
|
+
), l5 = ({
|
|
4861
4929
|
className: i,
|
|
4862
4930
|
color: e = y.GREY_DARK_5,
|
|
4863
4931
|
height: t = 24,
|
|
@@ -4914,7 +4982,7 @@ const lt = ({
|
|
|
4914
4982
|
)
|
|
4915
4983
|
]
|
|
4916
4984
|
}
|
|
4917
|
-
),
|
|
4985
|
+
), h5 = ({
|
|
4918
4986
|
className: i,
|
|
4919
4987
|
color: e = y.GREY_DARK_5,
|
|
4920
4988
|
height: t = 24,
|
|
@@ -4953,7 +5021,7 @@ const lt = ({
|
|
|
4953
5021
|
)
|
|
4954
5022
|
]
|
|
4955
5023
|
}
|
|
4956
|
-
),
|
|
5024
|
+
), c5 = ({
|
|
4957
5025
|
className: i,
|
|
4958
5026
|
color: e = y.GREY_DARK_5,
|
|
4959
5027
|
height: t = 24,
|
|
@@ -5002,7 +5070,7 @@ const lt = ({
|
|
|
5002
5070
|
)
|
|
5003
5071
|
]
|
|
5004
5072
|
}
|
|
5005
|
-
),
|
|
5073
|
+
), d5 = ({
|
|
5006
5074
|
className: i,
|
|
5007
5075
|
color: e = y.GREY_DARK_5,
|
|
5008
5076
|
height: t = 24,
|
|
@@ -5029,7 +5097,7 @@ const lt = ({
|
|
|
5029
5097
|
}
|
|
5030
5098
|
)
|
|
5031
5099
|
}
|
|
5032
|
-
),
|
|
5100
|
+
), g5 = ({
|
|
5033
5101
|
className: i,
|
|
5034
5102
|
color: e = y.GREY_DARK_5,
|
|
5035
5103
|
height: t = 20,
|
|
@@ -5058,7 +5126,7 @@ const lt = ({
|
|
|
5058
5126
|
)
|
|
5059
5127
|
]
|
|
5060
5128
|
}
|
|
5061
|
-
),
|
|
5129
|
+
), u5 = ({
|
|
5062
5130
|
className: i,
|
|
5063
5131
|
color: e = "#001E52",
|
|
5064
5132
|
height: t = 24,
|
|
@@ -5084,7 +5152,7 @@ const lt = ({
|
|
|
5084
5152
|
}
|
|
5085
5153
|
)
|
|
5086
5154
|
}
|
|
5087
|
-
),
|
|
5155
|
+
), C5 = ({
|
|
5088
5156
|
className: i,
|
|
5089
5157
|
color: e = "#131314",
|
|
5090
5158
|
height: t = 20,
|
|
@@ -5112,7 +5180,7 @@ const lt = ({
|
|
|
5112
5180
|
}
|
|
5113
5181
|
)
|
|
5114
5182
|
}
|
|
5115
|
-
),
|
|
5183
|
+
), p5 = ({
|
|
5116
5184
|
className: i,
|
|
5117
5185
|
color: e = "#001E52",
|
|
5118
5186
|
height: t = 24,
|
|
@@ -5150,7 +5218,7 @@ const lt = ({
|
|
|
5150
5218
|
)
|
|
5151
5219
|
] }) })
|
|
5152
5220
|
}
|
|
5153
|
-
),
|
|
5221
|
+
), f5 = ({
|
|
5154
5222
|
width: i = 20,
|
|
5155
5223
|
height: e = 20,
|
|
5156
5224
|
color: t = "#001E52",
|
|
@@ -5206,7 +5274,7 @@ const lt = ({
|
|
|
5206
5274
|
}
|
|
5207
5275
|
)
|
|
5208
5276
|
}
|
|
5209
|
-
),
|
|
5277
|
+
), m5 = ({
|
|
5210
5278
|
width: i = 24,
|
|
5211
5279
|
height: e = 24,
|
|
5212
5280
|
color: t = "#131314",
|
|
@@ -5239,7 +5307,7 @@ const lt = ({
|
|
|
5239
5307
|
)
|
|
5240
5308
|
]
|
|
5241
5309
|
}
|
|
5242
|
-
),
|
|
5310
|
+
), w5 = ({
|
|
5243
5311
|
width: i = 24,
|
|
5244
5312
|
height: e = 24,
|
|
5245
5313
|
color: t = y.GREY_DARK_2,
|
|
@@ -5278,7 +5346,7 @@ const lt = ({
|
|
|
5278
5346
|
)
|
|
5279
5347
|
]
|
|
5280
5348
|
}
|
|
5281
|
-
),
|
|
5349
|
+
), k5 = ({
|
|
5282
5350
|
width: i = 24,
|
|
5283
5351
|
height: e = 24,
|
|
5284
5352
|
color: t = y.GREY_DARK_2,
|
|
@@ -5305,7 +5373,7 @@ const lt = ({
|
|
|
5305
5373
|
}
|
|
5306
5374
|
)
|
|
5307
5375
|
}
|
|
5308
|
-
),
|
|
5376
|
+
), L5 = ({
|
|
5309
5377
|
width: i = 24,
|
|
5310
5378
|
height: e = 24,
|
|
5311
5379
|
color: t = y.GREY_DARK_2,
|
|
@@ -5345,7 +5413,7 @@ const lt = ({
|
|
|
5345
5413
|
)
|
|
5346
5414
|
]
|
|
5347
5415
|
}
|
|
5348
|
-
),
|
|
5416
|
+
), v5 = ({
|
|
5349
5417
|
width: i = 24,
|
|
5350
5418
|
height: e = 24,
|
|
5351
5419
|
color: t = y.GREY_DARK_2,
|
|
@@ -5372,7 +5440,7 @@ const lt = ({
|
|
|
5372
5440
|
}
|
|
5373
5441
|
)
|
|
5374
5442
|
}
|
|
5375
|
-
),
|
|
5443
|
+
), N5 = ({
|
|
5376
5444
|
width: i = 24,
|
|
5377
5445
|
height: e = 24,
|
|
5378
5446
|
color: t = y.GREY_DARK_2,
|
|
@@ -5399,7 +5467,7 @@ const lt = ({
|
|
|
5399
5467
|
}
|
|
5400
5468
|
)
|
|
5401
5469
|
}
|
|
5402
|
-
),
|
|
5470
|
+
), x5 = ({
|
|
5403
5471
|
width: i = 20,
|
|
5404
5472
|
height: e = 20,
|
|
5405
5473
|
color: t = "#001E52",
|
|
@@ -5425,112 +5493,112 @@ const lt = ({
|
|
|
5425
5493
|
}
|
|
5426
5494
|
)
|
|
5427
5495
|
}
|
|
5428
|
-
),
|
|
5496
|
+
), R5 = ({
|
|
5429
5497
|
name: i,
|
|
5430
5498
|
width: e,
|
|
5431
5499
|
height: t,
|
|
5432
5500
|
color: n,
|
|
5433
5501
|
className: s,
|
|
5434
|
-
disabled:
|
|
5502
|
+
disabled: a = !1,
|
|
5435
5503
|
onClick: c
|
|
5436
5504
|
}) => {
|
|
5437
|
-
const [
|
|
5438
|
-
return
|
|
5505
|
+
const [r, g] = V(s), { theme: d } = Q(te), l = a ? d && d === "dark" ? y.GREY_LIGHT_4 : y.GREY_DARK_1 : n, h = a ? void 0 : c;
|
|
5506
|
+
return O(() => {
|
|
5439
5507
|
if (s) {
|
|
5440
|
-
h && !
|
|
5508
|
+
h && !a && g(`${s} clickable`);
|
|
5441
5509
|
return;
|
|
5442
5510
|
}
|
|
5443
|
-
h && !
|
|
5444
|
-
}, [h, s,
|
|
5511
|
+
h && !a && g("clickable");
|
|
5512
|
+
}, [h, s, a]), /* @__PURE__ */ o(Y, { children: (() => {
|
|
5445
5513
|
switch (i) {
|
|
5446
5514
|
case "nextIcon":
|
|
5447
|
-
return
|
|
5515
|
+
return Kt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5448
5516
|
case "prevIcon":
|
|
5449
|
-
return
|
|
5517
|
+
return Pt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5450
5518
|
case "arrowDown":
|
|
5451
|
-
return
|
|
5519
|
+
return ht({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5452
5520
|
case "info":
|
|
5453
|
-
return
|
|
5521
|
+
return ct({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5454
5522
|
case "arrowRight":
|
|
5455
|
-
return
|
|
5523
|
+
return dt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5456
5524
|
case "calendar":
|
|
5457
|
-
return
|
|
5525
|
+
return gt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5458
5526
|
case "ok":
|
|
5459
|
-
return
|
|
5527
|
+
return ut({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5460
5528
|
case "cancel":
|
|
5461
|
-
return
|
|
5529
|
+
return Ct({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5462
5530
|
case "add":
|
|
5463
|
-
return
|
|
5531
|
+
return pt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5464
5532
|
case "list":
|
|
5465
|
-
return
|
|
5533
|
+
return ft({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5466
5534
|
case "dragAndDrop":
|
|
5467
|
-
return
|
|
5535
|
+
return mt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5468
5536
|
case "filter":
|
|
5469
|
-
return
|
|
5537
|
+
return wt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5470
5538
|
case "attention":
|
|
5471
|
-
return
|
|
5539
|
+
return kt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5472
5540
|
case "users":
|
|
5473
|
-
return
|
|
5541
|
+
return Lt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5474
5542
|
case "mySkillsMatrix":
|
|
5475
|
-
return
|
|
5543
|
+
return vt({
|
|
5476
5544
|
width: e,
|
|
5477
5545
|
height: t,
|
|
5478
5546
|
color: l,
|
|
5479
|
-
className:
|
|
5547
|
+
className: r,
|
|
5480
5548
|
onClick: h
|
|
5481
5549
|
});
|
|
5482
5550
|
case "skills":
|
|
5483
|
-
return
|
|
5551
|
+
return Nt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5484
5552
|
case "skillsMatrices":
|
|
5485
|
-
return
|
|
5553
|
+
return xt({
|
|
5486
5554
|
width: e,
|
|
5487
5555
|
height: t,
|
|
5488
5556
|
color: l,
|
|
5489
|
-
className:
|
|
5557
|
+
className: r,
|
|
5490
5558
|
onClick: h
|
|
5491
5559
|
});
|
|
5492
5560
|
case "history":
|
|
5493
|
-
return
|
|
5561
|
+
return Rt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5494
5562
|
case "logOut":
|
|
5495
|
-
return
|
|
5563
|
+
return Mt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5496
5564
|
case "settings":
|
|
5497
|
-
return
|
|
5565
|
+
return bt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5498
5566
|
case "trash":
|
|
5499
|
-
return
|
|
5567
|
+
return yt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5500
5568
|
case "settings4":
|
|
5501
|
-
return
|
|
5569
|
+
return Et({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5502
5570
|
case "success":
|
|
5503
|
-
return
|
|
5571
|
+
return _t({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5504
5572
|
case "checkCircle":
|
|
5505
|
-
return
|
|
5573
|
+
return Ht({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5506
5574
|
case "errorSmall":
|
|
5507
|
-
return
|
|
5575
|
+
return It({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5508
5576
|
case "infoMedium":
|
|
5509
|
-
return
|
|
5577
|
+
return Vt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5510
5578
|
case "attentionMedium":
|
|
5511
5579
|
return Ot({
|
|
5512
5580
|
width: e,
|
|
5513
5581
|
height: t,
|
|
5514
5582
|
color: l,
|
|
5515
|
-
className:
|
|
5583
|
+
className: r,
|
|
5516
5584
|
onClick: h
|
|
5517
5585
|
});
|
|
5518
5586
|
case "errorMedium":
|
|
5519
|
-
return St({ width: e, height: t, color: l, className:
|
|
5587
|
+
return St({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5520
5588
|
case "visibilityIcon":
|
|
5521
|
-
return
|
|
5589
|
+
return At({
|
|
5522
5590
|
width: e,
|
|
5523
5591
|
height: t,
|
|
5524
5592
|
color: l,
|
|
5525
|
-
className:
|
|
5593
|
+
className: r,
|
|
5526
5594
|
onClick: h
|
|
5527
5595
|
});
|
|
5528
5596
|
case "visibilityOffIcon":
|
|
5529
|
-
return
|
|
5597
|
+
return Zt({
|
|
5530
5598
|
width: e,
|
|
5531
5599
|
height: t,
|
|
5532
5600
|
color: l,
|
|
5533
|
-
className:
|
|
5601
|
+
className: r,
|
|
5534
5602
|
onClick: h
|
|
5535
5603
|
});
|
|
5536
5604
|
case "selectArrowIcon":
|
|
@@ -5538,167 +5606,169 @@ const lt = ({
|
|
|
5538
5606
|
width: e,
|
|
5539
5607
|
height: t,
|
|
5540
5608
|
color: l,
|
|
5541
|
-
className:
|
|
5609
|
+
className: r,
|
|
5542
5610
|
onClick: h
|
|
5543
5611
|
});
|
|
5544
5612
|
case "expandArrowIcon":
|
|
5545
|
-
return
|
|
5613
|
+
return Dt({
|
|
5546
5614
|
width: e,
|
|
5547
5615
|
height: t,
|
|
5548
5616
|
color: l,
|
|
5549
|
-
className:
|
|
5617
|
+
className: r,
|
|
5550
5618
|
onClick: h
|
|
5551
5619
|
});
|
|
5552
5620
|
case "expandActiveArrowIcon":
|
|
5553
|
-
return
|
|
5621
|
+
return Bt({
|
|
5554
5622
|
width: e,
|
|
5555
5623
|
height: t,
|
|
5556
5624
|
color: l,
|
|
5557
|
-
className:
|
|
5625
|
+
className: r,
|
|
5558
5626
|
onClick: h
|
|
5559
5627
|
});
|
|
5560
5628
|
case "sortUp":
|
|
5561
|
-
return
|
|
5629
|
+
return jt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5562
5630
|
case "sortDown":
|
|
5563
|
-
return
|
|
5631
|
+
return Gt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5564
5632
|
case "search":
|
|
5565
|
-
return
|
|
5633
|
+
return Wt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5566
5634
|
case "arrowUpFilled":
|
|
5567
|
-
return
|
|
5635
|
+
return Ft({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5568
5636
|
case "arrowDownFilled":
|
|
5569
|
-
return
|
|
5637
|
+
return $t({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5570
5638
|
case "link":
|
|
5571
|
-
return
|
|
5639
|
+
return Yt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5572
5640
|
case "telegram":
|
|
5573
|
-
return
|
|
5641
|
+
return zt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5574
5642
|
case "mail":
|
|
5575
|
-
return
|
|
5643
|
+
return Qt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5576
5644
|
case "github":
|
|
5577
|
-
return
|
|
5645
|
+
return Ut({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5578
5646
|
case "linkedIn":
|
|
5579
|
-
return
|
|
5647
|
+
return Jt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5580
5648
|
case "emptyStateIcon":
|
|
5581
|
-
return
|
|
5649
|
+
return qt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5582
5650
|
case "filtersIcon":
|
|
5583
|
-
return
|
|
5651
|
+
return Xt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5584
5652
|
case "dotMenuIcon":
|
|
5585
|
-
return
|
|
5653
|
+
return e5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5586
5654
|
case "plusCircle":
|
|
5587
|
-
return
|
|
5655
|
+
return t5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5588
5656
|
case "warning":
|
|
5589
|
-
return
|
|
5657
|
+
return i5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5590
5658
|
case "back":
|
|
5591
|
-
return
|
|
5659
|
+
return n5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5592
5660
|
case "bell":
|
|
5593
|
-
return
|
|
5661
|
+
return s5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5662
|
+
case "copy":
|
|
5663
|
+
return r5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5594
5664
|
case "contract":
|
|
5595
|
-
return
|
|
5665
|
+
return a5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5596
5666
|
case "trash2":
|
|
5597
|
-
return
|
|
5667
|
+
return o5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5598
5668
|
case "resourceManager":
|
|
5599
|
-
return
|
|
5669
|
+
return l5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5600
5670
|
case "settings2":
|
|
5601
|
-
return
|
|
5671
|
+
return h5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5602
5672
|
case "image":
|
|
5603
|
-
return
|
|
5673
|
+
return c5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5604
5674
|
case "edit":
|
|
5605
|
-
return
|
|
5675
|
+
return d5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5606
5676
|
case "filledArrowRight":
|
|
5607
|
-
return
|
|
5677
|
+
return g5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5608
5678
|
case "burgerMenu":
|
|
5609
|
-
return
|
|
5679
|
+
return u5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5610
5680
|
case "signOut":
|
|
5611
|
-
return
|
|
5681
|
+
return C5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5612
5682
|
case "refresh":
|
|
5613
|
-
return
|
|
5683
|
+
return p5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5614
5684
|
case "projects":
|
|
5615
|
-
return
|
|
5685
|
+
return f5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5616
5686
|
case "profile":
|
|
5617
|
-
return
|
|
5687
|
+
return x5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5618
5688
|
case "exit":
|
|
5619
|
-
return
|
|
5689
|
+
return m5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5620
5690
|
case "client":
|
|
5621
|
-
return
|
|
5691
|
+
return w5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5622
5692
|
case "calendar2":
|
|
5623
|
-
return
|
|
5693
|
+
return k5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5624
5694
|
case "openPointCircle":
|
|
5625
|
-
return
|
|
5695
|
+
return L5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5626
5696
|
case "community":
|
|
5627
|
-
return
|
|
5697
|
+
return v5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5628
5698
|
case "docs":
|
|
5629
|
-
return
|
|
5699
|
+
return N5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5630
5700
|
default:
|
|
5631
5701
|
return /* @__PURE__ */ o(Y, { children: "No Icon provided" });
|
|
5632
5702
|
}
|
|
5633
5703
|
})() });
|
|
5634
5704
|
};
|
|
5635
5705
|
var r1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(r1 || {});
|
|
5636
|
-
const
|
|
5706
|
+
const M5 = t1({
|
|
5637
5707
|
locale: "en",
|
|
5638
5708
|
theme: "light"
|
|
5639
5709
|
});
|
|
5640
|
-
|
|
5710
|
+
M5.Provider;
|
|
5641
5711
|
const ie = ({
|
|
5642
5712
|
children: i,
|
|
5643
5713
|
width: e,
|
|
5644
5714
|
size: t = "small",
|
|
5645
5715
|
onClose: n,
|
|
5646
5716
|
closable: s = !0,
|
|
5647
|
-
disabled:
|
|
5717
|
+
disabled: a = !1
|
|
5648
5718
|
}) => {
|
|
5649
|
-
const c = t === "small" ? 10 : 12.5,
|
|
5650
|
-
|
|
5719
|
+
const c = t === "small" ? 10 : 12.5, r = () => {
|
|
5720
|
+
a || n == null || n();
|
|
5651
5721
|
};
|
|
5652
5722
|
return /* @__PURE__ */ o(
|
|
5653
5723
|
ke,
|
|
5654
5724
|
{
|
|
5655
|
-
className: `snmt-tag ${t} ${
|
|
5725
|
+
className: `snmt-tag ${t} ${a ? "disabled" : ""}`,
|
|
5656
5726
|
closeIcon: /* @__PURE__ */ o(
|
|
5657
|
-
|
|
5727
|
+
R5,
|
|
5658
5728
|
{
|
|
5659
5729
|
name: "errorSmall",
|
|
5660
|
-
color:
|
|
5730
|
+
color: a ? r1.GREY_DARK_1 : r1.GREY_DARK_2,
|
|
5661
5731
|
width: c,
|
|
5662
5732
|
height: c,
|
|
5663
|
-
onClick:
|
|
5733
|
+
onClick: r
|
|
5664
5734
|
}
|
|
5665
5735
|
),
|
|
5666
5736
|
bordered: !1,
|
|
5667
5737
|
style: { width: e ?? "fit-content" },
|
|
5668
5738
|
closable: s,
|
|
5669
5739
|
children: typeof i == "string" ? /* @__PURE__ */ o(
|
|
5670
|
-
|
|
5740
|
+
lt,
|
|
5671
5741
|
{
|
|
5672
5742
|
variant: t === "small" ? "body4" : "body2",
|
|
5673
|
-
color:
|
|
5743
|
+
color: a ? r1.GREY_DARK_2 : r1.GREY_DARK_5,
|
|
5674
5744
|
children: i
|
|
5675
5745
|
}
|
|
5676
5746
|
) : i
|
|
5677
5747
|
}
|
|
5678
5748
|
);
|
|
5679
|
-
}, { Title:
|
|
5749
|
+
}, { Title: b5, Text: y5 } = J1, E5 = {
|
|
5680
5750
|
h1: 1,
|
|
5681
5751
|
h2: 2,
|
|
5682
5752
|
h3: 3,
|
|
5683
5753
|
h4: 4
|
|
5684
|
-
},
|
|
5754
|
+
}, _5 = w1(
|
|
5685
5755
|
({
|
|
5686
5756
|
align: i = "inherit",
|
|
5687
5757
|
variant: e = "body1",
|
|
5688
5758
|
color: t,
|
|
5689
5759
|
children: n,
|
|
5690
5760
|
onClick: s,
|
|
5691
|
-
collapsed:
|
|
5761
|
+
collapsed: a,
|
|
5692
5762
|
whiteSpace: c = "normal",
|
|
5693
5763
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5694
|
-
trim:
|
|
5764
|
+
trim: r = !1
|
|
5695
5765
|
}, g) => {
|
|
5696
5766
|
const d = J(null);
|
|
5697
5767
|
Q1(g, () => d.current);
|
|
5698
|
-
const [l, h] =
|
|
5699
|
-
|
|
5768
|
+
const [l, h] = V(!1);
|
|
5769
|
+
O(() => {
|
|
5700
5770
|
var L;
|
|
5701
|
-
if (!
|
|
5771
|
+
if (!r) return;
|
|
5702
5772
|
const m = () => {
|
|
5703
5773
|
d.current && h(d.current.scrollWidth > d.current.clientWidth);
|
|
5704
5774
|
};
|
|
@@ -5707,33 +5777,33 @@ const ie = ({
|
|
|
5707
5777
|
return d.current && E.observe(d.current), (L = d.current) != null && L.parentElement && E.observe(d.current.parentElement), () => {
|
|
5708
5778
|
E.disconnect();
|
|
5709
5779
|
};
|
|
5710
|
-
}, [
|
|
5780
|
+
}, [r]);
|
|
5711
5781
|
const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5712
5782
|
let p = `snmt-typography snmt-typography-${e}`;
|
|
5713
|
-
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`),
|
|
5783
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), a && (p += " collapsed");
|
|
5714
5784
|
const w = {
|
|
5715
5785
|
className: p,
|
|
5716
|
-
style: { color: t, whiteSpace:
|
|
5786
|
+
style: { color: t, whiteSpace: r ? "nowrap" : c, display: r ? "block" : "" },
|
|
5717
5787
|
onClick: s,
|
|
5718
5788
|
ref: d,
|
|
5719
|
-
ellipsis:
|
|
5789
|
+
ellipsis: r && l ? {
|
|
5720
5790
|
tooltip: {
|
|
5721
5791
|
title: n,
|
|
5722
5792
|
overlayClassName: "snmt-tooltip"
|
|
5723
5793
|
}
|
|
5724
5794
|
} : void 0
|
|
5725
5795
|
};
|
|
5726
|
-
return u ? /* @__PURE__ */ o(
|
|
5796
|
+
return u ? /* @__PURE__ */ o(b5, { level: E5[e], ...w, children: n }) : /* @__PURE__ */ o(y5, { ...w, children: n });
|
|
5727
5797
|
}
|
|
5728
|
-
),
|
|
5798
|
+
), H5 = ({
|
|
5729
5799
|
children: i,
|
|
5730
5800
|
content: e,
|
|
5731
5801
|
isOpen: t,
|
|
5732
5802
|
setIsOpen: n,
|
|
5733
5803
|
placement: s = "topRight",
|
|
5734
|
-
noPadding:
|
|
5804
|
+
noPadding: a = !1
|
|
5735
5805
|
}) => {
|
|
5736
|
-
const [c,
|
|
5806
|
+
const [c, r] = V(!1);
|
|
5737
5807
|
return /* @__PURE__ */ o(
|
|
5738
5808
|
Le,
|
|
5739
5809
|
{
|
|
@@ -5741,16 +5811,16 @@ const ie = ({
|
|
|
5741
5811
|
arrow: !1,
|
|
5742
5812
|
placement: s,
|
|
5743
5813
|
trigger: "click",
|
|
5744
|
-
overlayClassName: `snmt-popover ${
|
|
5814
|
+
overlayClassName: `snmt-popover ${a ? "" : "padding"}`,
|
|
5745
5815
|
open: t ?? c,
|
|
5746
5816
|
onOpenChange: (g) => {
|
|
5747
|
-
|
|
5817
|
+
r(g), n == null || n(g);
|
|
5748
5818
|
},
|
|
5749
5819
|
children: /* @__PURE__ */ o("div", { className: "wrapper", children: i })
|
|
5750
5820
|
}
|
|
5751
5821
|
);
|
|
5752
5822
|
};
|
|
5753
|
-
var
|
|
5823
|
+
var I5 = { exports: {} };
|
|
5754
5824
|
(function(i, e) {
|
|
5755
5825
|
(function(t, n) {
|
|
5756
5826
|
i.exports = n();
|
|
@@ -5760,27 +5830,27 @@ var _5 = { exports: {} };
|
|
|
5760
5830
|
return "[" + t + (n[(s - 20) % 10] || n[s] || n[0]) + "]";
|
|
5761
5831
|
} };
|
|
5762
5832
|
});
|
|
5763
|
-
})(
|
|
5764
|
-
const
|
|
5833
|
+
})(I5);
|
|
5834
|
+
const V5 = ({
|
|
5765
5835
|
values: i,
|
|
5766
5836
|
onTagClose: e,
|
|
5767
5837
|
maxWidth: t,
|
|
5768
5838
|
closable: n = !0,
|
|
5769
5839
|
disabled: s,
|
|
5770
|
-
options:
|
|
5840
|
+
options: a,
|
|
5771
5841
|
extraOptions: c
|
|
5772
5842
|
}) => {
|
|
5773
|
-
const { locale:
|
|
5774
|
-
if (
|
|
5843
|
+
const { locale: r } = Q(E1), { t: g } = Ge("common", { lng: r }), [d, l] = V(!1);
|
|
5844
|
+
if (O(() => {
|
|
5775
5845
|
i.length || l(!1);
|
|
5776
5846
|
}, [i]), !i.length)
|
|
5777
5847
|
return null;
|
|
5778
5848
|
const h = (u) => {
|
|
5779
5849
|
var p, w;
|
|
5780
|
-
return ((p =
|
|
5850
|
+
return ((p = a == null ? void 0 : a.find((m) => m.value === u)) == null ? void 0 : p.label) || ((w = c == null ? void 0 : c.find((m) => m.value === u)) == null ? void 0 : w.label) || u;
|
|
5781
5851
|
};
|
|
5782
5852
|
return /* @__PURE__ */ C(
|
|
5783
|
-
|
|
5853
|
+
H5,
|
|
5784
5854
|
{
|
|
5785
5855
|
content: (
|
|
5786
5856
|
// 90: paddings + margins + gaps and so on
|
|
@@ -5805,28 +5875,28 @@ const H5 = ({
|
|
|
5805
5875
|
]
|
|
5806
5876
|
}
|
|
5807
5877
|
);
|
|
5808
|
-
},
|
|
5878
|
+
}, O5 = {
|
|
5809
5879
|
small: 20,
|
|
5810
5880
|
medium: 28,
|
|
5811
5881
|
large: 48
|
|
5812
5882
|
}, A1 = ({ size: i = "medium", color: e = "#004ed7" }) => {
|
|
5813
|
-
const t =
|
|
5883
|
+
const t = O5[i], n = `no-repeat linear-gradient(${e}
|
|
5814
5884
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
|
5815
5885
|
width: t,
|
|
5816
5886
|
background: `${n} 0% 100%, ${n} 50% 100%, ${n} 100% 100%`,
|
|
5817
5887
|
backgroundSize: "20% calc(200% + 20px)"
|
|
5818
5888
|
};
|
|
5819
5889
|
return /* @__PURE__ */ o("span", { className: "snmt-loader", style: s });
|
|
5820
|
-
},
|
|
5890
|
+
}, S5 = w1(
|
|
5821
5891
|
({
|
|
5822
5892
|
value: i,
|
|
5823
5893
|
onChange: e,
|
|
5824
5894
|
placeholder: t,
|
|
5825
5895
|
mode: n,
|
|
5826
5896
|
search: s = !1,
|
|
5827
|
-
options:
|
|
5897
|
+
options: a,
|
|
5828
5898
|
width: c,
|
|
5829
|
-
disabled:
|
|
5899
|
+
disabled: r = !1,
|
|
5830
5900
|
required: g = !1,
|
|
5831
5901
|
clearable: d = !1,
|
|
5832
5902
|
scrollThresholdValue: l = 50,
|
|
@@ -5842,12 +5912,12 @@ const H5 = ({
|
|
|
5842
5912
|
readOnly: f,
|
|
5843
5913
|
error: R
|
|
5844
5914
|
}, v) => {
|
|
5845
|
-
const [N,
|
|
5846
|
-
|
|
5915
|
+
const [N, T] = V(!1), [W, i1] = V(!1), [$, h1] = V(!0), [I, K] = V(i), F = J(null);
|
|
5916
|
+
O(() => {
|
|
5847
5917
|
K(i);
|
|
5848
5918
|
}, [i]);
|
|
5849
5919
|
const q = (x) => {
|
|
5850
|
-
|
|
5920
|
+
T(x), u && u(x);
|
|
5851
5921
|
}, c1 = (x, _) => {
|
|
5852
5922
|
var D;
|
|
5853
5923
|
return !!((D = _ == null ? void 0 : _.label) != null && D.toString().toLowerCase().includes(x.toLowerCase()));
|
|
@@ -5855,7 +5925,7 @@ const H5 = ({
|
|
|
5855
5925
|
i1(!0);
|
|
5856
5926
|
}, P = () => {
|
|
5857
5927
|
i1(!1);
|
|
5858
|
-
},
|
|
5928
|
+
}, Z = j(
|
|
5859
5929
|
(x) => {
|
|
5860
5930
|
if (K(x), n) {
|
|
5861
5931
|
const D = x;
|
|
@@ -5867,19 +5937,19 @@ const H5 = ({
|
|
|
5867
5937
|
},
|
|
5868
5938
|
[n, e]
|
|
5869
5939
|
), d1 = j(() => {
|
|
5870
|
-
if (!(f ||
|
|
5940
|
+
if (!(f || r)) {
|
|
5871
5941
|
if (n) {
|
|
5872
|
-
|
|
5942
|
+
Z([]);
|
|
5873
5943
|
return;
|
|
5874
5944
|
}
|
|
5875
|
-
|
|
5945
|
+
Z("");
|
|
5876
5946
|
}
|
|
5877
|
-
}, [
|
|
5947
|
+
}, [r, Z, n, f]), g1 = j(
|
|
5878
5948
|
(x) => {
|
|
5879
5949
|
const _ = I.filter((D) => D !== x);
|
|
5880
|
-
|
|
5950
|
+
Z(_), K(_);
|
|
5881
5951
|
},
|
|
5882
|
-
[
|
|
5952
|
+
[Z, I]
|
|
5883
5953
|
), _1 = j(
|
|
5884
5954
|
(x) => (I == null ? void 0 : I.indexOf(x)) === 0 ? (
|
|
5885
5955
|
// if the search input is empty
|
|
@@ -5895,31 +5965,31 @@ const H5 = ({
|
|
|
5895
5965
|
}, L1 = j(
|
|
5896
5966
|
(x) => {
|
|
5897
5967
|
var _, D;
|
|
5898
|
-
return ((_ =
|
|
5968
|
+
return ((_ = a.find((v1) => v1.value === x)) == null ? void 0 : _.label) || ((D = m == null ? void 0 : m.find(
|
|
5899
5969
|
(v1) => v1.value === x
|
|
5900
5970
|
)) == null ? void 0 : D.label) || x;
|
|
5901
5971
|
},
|
|
5902
|
-
[m,
|
|
5972
|
+
[m, a]
|
|
5903
5973
|
), ce = j(
|
|
5904
5974
|
(x) => {
|
|
5905
5975
|
var _;
|
|
5906
5976
|
return /* @__PURE__ */ o(
|
|
5907
|
-
|
|
5977
|
+
V5,
|
|
5908
5978
|
{
|
|
5909
5979
|
values: x,
|
|
5910
5980
|
onTagClose: g1,
|
|
5911
5981
|
maxWidth: ((_ = F.current) == null ? void 0 : _.clientWidth) || 0,
|
|
5912
|
-
disabled:
|
|
5982
|
+
disabled: r,
|
|
5913
5983
|
closable: !f,
|
|
5914
|
-
options:
|
|
5984
|
+
options: a,
|
|
5915
5985
|
extraOptions: m
|
|
5916
5986
|
}
|
|
5917
5987
|
);
|
|
5918
5988
|
},
|
|
5919
|
-
[
|
|
5989
|
+
[r, m, g1, a, f]
|
|
5920
5990
|
), de = j(
|
|
5921
|
-
({ label: x, value: _, mode: D }) => D === "filter" ? _1(_) : /* @__PURE__ */ o("div", { onMouseDown: le, className: "tag-wrapper", children: /* @__PURE__ */ o(ie, { onClose: () => g1(_), disabled:
|
|
5922
|
-
[
|
|
5991
|
+
({ label: x, value: _, mode: D }) => D === "filter" ? _1(_) : /* @__PURE__ */ o("div", { onMouseDown: le, className: "tag-wrapper", children: /* @__PURE__ */ o(ie, { onClose: () => g1(_), disabled: r, children: typeof x == "object" ? x : L1(_) }) }),
|
|
5992
|
+
[r, L1, g1, _1]
|
|
5923
5993
|
), H1 = Array.isArray(I) && I.length > 0 || !!I && typeof I == "string" && I.trim() !== "";
|
|
5924
5994
|
return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
|
|
5925
5995
|
/* @__PURE__ */ C(
|
|
@@ -5940,14 +6010,14 @@ const H5 = ({
|
|
|
5940
6010
|
showSearch: !!s,
|
|
5941
6011
|
filterOption: s && c1,
|
|
5942
6012
|
onDropdownVisibleChange: q,
|
|
5943
|
-
disabled:
|
|
6013
|
+
disabled: r,
|
|
5944
6014
|
value: I || void 0,
|
|
5945
6015
|
labelRender: (x) => {
|
|
5946
6016
|
const _ = L1(x.value);
|
|
5947
|
-
return
|
|
6017
|
+
return r ? /* @__PURE__ */ o("span", { style: { color: B.GREY_DARK_1 }, children: _ }) : _;
|
|
5948
6018
|
},
|
|
5949
6019
|
mode: n === "filter" ? "multiple" : n,
|
|
5950
|
-
onChange:
|
|
6020
|
+
onChange: Z,
|
|
5951
6021
|
onFocus: A,
|
|
5952
6022
|
onBlur: P,
|
|
5953
6023
|
onSearch: (x) => {
|
|
@@ -5959,20 +6029,20 @@ const H5 = ({
|
|
|
5959
6029
|
maxTagCount: "responsive",
|
|
5960
6030
|
maxTagPlaceholder: ce,
|
|
5961
6031
|
onPopupScroll: he,
|
|
5962
|
-
prefix: H && /* @__PURE__ */ o(A1, { size:
|
|
6032
|
+
prefix: H && /* @__PURE__ */ o(A1, { size: "small" }),
|
|
5963
6033
|
suffixIcon: /* @__PURE__ */ o("div", { className: "wrapper-suffix-icon", children: n !== "filter" && /* @__PURE__ */ C(Y, { children: [
|
|
5964
6034
|
I && !!I.length && (n || d) && /* @__PURE__ */ o(
|
|
5965
6035
|
"div",
|
|
5966
6036
|
{
|
|
5967
6037
|
onClick: d1,
|
|
5968
6038
|
style: {
|
|
5969
|
-
cursor:
|
|
6039
|
+
cursor: r ? "not-allowed" : "pointer"
|
|
5970
6040
|
},
|
|
5971
6041
|
children: /* @__PURE__ */ o(
|
|
5972
6042
|
n1,
|
|
5973
6043
|
{
|
|
5974
6044
|
name: "cancel",
|
|
5975
|
-
color:
|
|
6045
|
+
color: r ? B.GREY_DARK_1 : B.GREY_DARK_5
|
|
5976
6046
|
}
|
|
5977
6047
|
)
|
|
5978
6048
|
}
|
|
@@ -5981,14 +6051,14 @@ const H5 = ({
|
|
|
5981
6051
|
n1,
|
|
5982
6052
|
{
|
|
5983
6053
|
name: "selectArrowIcon",
|
|
5984
|
-
color:
|
|
6054
|
+
color: r ? B.GREY_DARK_1 : B.GREY_DARK_5,
|
|
5985
6055
|
className: N ? "select-arrow-rotated" : "select-arrow",
|
|
5986
|
-
onClick: () =>
|
|
6056
|
+
onClick: () => T(!N)
|
|
5987
6057
|
}
|
|
5988
6058
|
)
|
|
5989
6059
|
] }) }),
|
|
5990
6060
|
removeIcon: /* @__PURE__ */ o(n1, { name: "errorSmall", color: B.GREY_DARK_1 }),
|
|
5991
|
-
options:
|
|
6061
|
+
options: a,
|
|
5992
6062
|
optionRender: (x) => M ? M(x.data) : /* @__PURE__ */ C(o1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
5993
6063
|
/* @__PURE__ */ C(o1, { alignItems: "center", gap: 12, children: [
|
|
5994
6064
|
n && /* @__PURE__ */ o(
|
|
@@ -6014,7 +6084,7 @@ const H5 = ({
|
|
|
6014
6084
|
] }),
|
|
6015
6085
|
dropdownRender: (x) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
|
6016
6086
|
/* @__PURE__ */ o("div", { className: "dropdown-menu", children: E ? E(x) : x }),
|
|
6017
|
-
H && /* @__PURE__ */ o("div", { className: "loading-overlay", children: /* @__PURE__ */ o(A1, {
|
|
6087
|
+
H && /* @__PURE__ */ o("div", { className: "loading-overlay", children: /* @__PURE__ */ o(A1, {}) })
|
|
6018
6088
|
] })
|
|
6019
6089
|
}
|
|
6020
6090
|
),
|
|
@@ -6022,14 +6092,14 @@ const H5 = ({
|
|
|
6022
6092
|
/* @__PURE__ */ o(
|
|
6023
6093
|
"label",
|
|
6024
6094
|
{
|
|
6025
|
-
className: `${W || H1 ? "label-floating" : ""} ${
|
|
6095
|
+
className: `${W || H1 ? "label-floating" : ""} ${r ? "label-disabled" : ""} ${W ? "label-focused" : ""} ${H ? "label-loading" : ""} ${R ? "label-error" : ""}`,
|
|
6026
6096
|
children: g ? `${t}*` : t
|
|
6027
6097
|
}
|
|
6028
6098
|
),
|
|
6029
6099
|
/* @__PURE__ */ o(
|
|
6030
6100
|
"fieldset",
|
|
6031
6101
|
{
|
|
6032
|
-
className: `${W ? "fieldset-focused" : ""} ${
|
|
6102
|
+
className: `${W ? "fieldset-focused" : ""} ${r ? "fieldset-disabled" : ""} ${H1 ? "fieldset-filled" : ""} ${R ? "fieldset-error" : ""}`,
|
|
6033
6103
|
children: /* @__PURE__ */ o("legend", { children: /* @__PURE__ */ o("span", { children: g ? `${t}*` : t }) })
|
|
6034
6104
|
}
|
|
6035
6105
|
)
|
|
@@ -6047,7 +6117,7 @@ const H5 = ({
|
|
|
6047
6117
|
width: 16
|
|
6048
6118
|
}
|
|
6049
6119
|
),
|
|
6050
|
-
typeof R == "string" ? /* @__PURE__ */ o(
|
|
6120
|
+
typeof R == "string" ? /* @__PURE__ */ o(_5, { color: B.NOTIFICATION_ERROR_DARK, variant: "body4", children: R }) : R
|
|
6051
6121
|
] })
|
|
6052
6122
|
] });
|
|
6053
6123
|
}
|
|
@@ -6057,21 +6127,21 @@ const H5 = ({
|
|
|
6057
6127
|
i = n, e = s;
|
|
6058
6128
|
});
|
|
6059
6129
|
return t.resolve = i, t.reject = e, t;
|
|
6060
|
-
},
|
|
6130
|
+
}, Z1 = (i) => i == null ? "" : "" + i, A5 = (i, e, t) => {
|
|
6061
6131
|
i.forEach((n) => {
|
|
6062
6132
|
e[n] && (t[n] = e[n]);
|
|
6063
6133
|
});
|
|
6064
|
-
},
|
|
6134
|
+
}, Z5 = /###/g, T1 = (i) => i && i.indexOf("###") > -1 ? i.replace(Z5, ".") : i, D1 = (i) => !i || k(i), a1 = (i, e, t) => {
|
|
6065
6135
|
const n = k(e) ? e.split(".") : e;
|
|
6066
6136
|
let s = 0;
|
|
6067
6137
|
for (; s < n.length - 1; ) {
|
|
6068
6138
|
if (D1(i)) return {};
|
|
6069
|
-
const
|
|
6070
|
-
!i[
|
|
6139
|
+
const a = T1(n[s]);
|
|
6140
|
+
!i[a] && t && (i[a] = new t()), Object.prototype.hasOwnProperty.call(i, a) ? i = i[a] : i = {}, ++s;
|
|
6071
6141
|
}
|
|
6072
6142
|
return D1(i) ? {} : {
|
|
6073
6143
|
obj: i,
|
|
6074
|
-
k:
|
|
6144
|
+
k: T1(n[s])
|
|
6075
6145
|
};
|
|
6076
6146
|
}, B1 = (i, e, t) => {
|
|
6077
6147
|
const {
|
|
@@ -6082,16 +6152,16 @@ const H5 = ({
|
|
|
6082
6152
|
n[s] = t;
|
|
6083
6153
|
return;
|
|
6084
6154
|
}
|
|
6085
|
-
let
|
|
6086
|
-
for (;
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
},
|
|
6155
|
+
let a = e[e.length - 1], c = e.slice(0, e.length - 1), r = a1(i, c, Object);
|
|
6156
|
+
for (; r.obj === void 0 && c.length; )
|
|
6157
|
+
a = `${c[c.length - 1]}.${a}`, c = c.slice(0, c.length - 1), r = a1(i, c, Object), r && r.obj && typeof r.obj[`${r.k}.${a}`] < "u" && (r.obj = void 0);
|
|
6158
|
+
r.obj[`${r.k}.${a}`] = t;
|
|
6159
|
+
}, T5 = (i, e, t, n) => {
|
|
6090
6160
|
const {
|
|
6091
6161
|
obj: s,
|
|
6092
|
-
k:
|
|
6162
|
+
k: a
|
|
6093
6163
|
} = a1(i, e, Object);
|
|
6094
|
-
s[
|
|
6164
|
+
s[a] = s[a] || [], s[a].push(t);
|
|
6095
6165
|
}, C1 = (i, e) => {
|
|
6096
6166
|
const {
|
|
6097
6167
|
obj: t,
|
|
@@ -6099,7 +6169,7 @@ const H5 = ({
|
|
|
6099
6169
|
} = a1(i, e);
|
|
6100
6170
|
if (t)
|
|
6101
6171
|
return t[n];
|
|
6102
|
-
},
|
|
6172
|
+
}, D5 = (i, e, t) => {
|
|
6103
6173
|
const n = C1(i, t);
|
|
6104
6174
|
return n !== void 0 ? n : C1(e, t);
|
|
6105
6175
|
}, ne = (i, e, t) => {
|
|
@@ -6107,7 +6177,7 @@ const H5 = ({
|
|
|
6107
6177
|
n !== "__proto__" && n !== "constructor" && (n in i ? k(i[n]) || i[n] instanceof String || k(e[n]) || e[n] instanceof String ? t && (i[n] = e[n]) : ne(i[n], e[n], t) : i[n] = e[n]);
|
|
6108
6178
|
return i;
|
|
6109
6179
|
}, X = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
6110
|
-
var
|
|
6180
|
+
var B5 = {
|
|
6111
6181
|
"&": "&",
|
|
6112
6182
|
"<": "<",
|
|
6113
6183
|
">": ">",
|
|
@@ -6115,8 +6185,8 @@ var Z5 = {
|
|
|
6115
6185
|
"'": "'",
|
|
6116
6186
|
"/": "/"
|
|
6117
6187
|
};
|
|
6118
|
-
const
|
|
6119
|
-
class
|
|
6188
|
+
const j5 = (i) => k(i) ? i.replace(/[&<>"'\/]/g, (e) => B5[e]) : i;
|
|
6189
|
+
class G5 {
|
|
6120
6190
|
constructor(e) {
|
|
6121
6191
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
6122
6192
|
}
|
|
@@ -6128,38 +6198,38 @@ class B5 {
|
|
|
6128
6198
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
|
|
6129
6199
|
}
|
|
6130
6200
|
}
|
|
6131
|
-
const
|
|
6201
|
+
const W5 = [" ", ",", "?", "!", ";"], K5 = new G5(20), P5 = (i, e, t) => {
|
|
6132
6202
|
e = e || "", t = t || "";
|
|
6133
|
-
const n =
|
|
6203
|
+
const n = W5.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
|
|
6134
6204
|
if (n.length === 0) return !0;
|
|
6135
|
-
const s =
|
|
6136
|
-
let
|
|
6137
|
-
if (!
|
|
6205
|
+
const s = K5.getRegExp(`(${n.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
|
6206
|
+
let a = !s.test(i);
|
|
6207
|
+
if (!a) {
|
|
6138
6208
|
const c = i.indexOf(t);
|
|
6139
|
-
c > 0 && !s.test(i.substring(0, c)) && (
|
|
6209
|
+
c > 0 && !s.test(i.substring(0, c)) && (a = !0);
|
|
6140
6210
|
}
|
|
6141
|
-
return
|
|
6211
|
+
return a;
|
|
6142
6212
|
}, M1 = function(i, e) {
|
|
6143
6213
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
6144
6214
|
if (!i) return;
|
|
6145
6215
|
if (i[e]) return i[e];
|
|
6146
6216
|
const n = e.split(t);
|
|
6147
6217
|
let s = i;
|
|
6148
|
-
for (let
|
|
6218
|
+
for (let a = 0; a < n.length; ) {
|
|
6149
6219
|
if (!s || typeof s != "object")
|
|
6150
6220
|
return;
|
|
6151
|
-
let c,
|
|
6152
|
-
for (let g =
|
|
6153
|
-
if (g !==
|
|
6221
|
+
let c, r = "";
|
|
6222
|
+
for (let g = a; g < n.length; ++g)
|
|
6223
|
+
if (g !== a && (r += t), r += n[g], c = s[r], c !== void 0) {
|
|
6154
6224
|
if (["string", "number", "boolean"].indexOf(typeof c) > -1 && g < n.length - 1)
|
|
6155
6225
|
continue;
|
|
6156
|
-
|
|
6226
|
+
a += g - a + 1;
|
|
6157
6227
|
break;
|
|
6158
6228
|
}
|
|
6159
6229
|
s = c;
|
|
6160
6230
|
}
|
|
6161
6231
|
return s;
|
|
6162
|
-
}, p1 = (i) => i && i.replace("_", "-"),
|
|
6232
|
+
}, p1 = (i) => i && i.replace("_", "-"), $5 = {
|
|
6163
6233
|
type: "logger",
|
|
6164
6234
|
log(i) {
|
|
6165
6235
|
this.output("log", i);
|
|
@@ -6181,7 +6251,7 @@ class f1 {
|
|
|
6181
6251
|
}
|
|
6182
6252
|
init(e) {
|
|
6183
6253
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6184
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
6254
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || $5, this.options = t, this.debug = t.debug;
|
|
6185
6255
|
}
|
|
6186
6256
|
log() {
|
|
6187
6257
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
@@ -6241,13 +6311,13 @@ class k1 {
|
|
|
6241
6311
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
6242
6312
|
n[s - 1] = arguments[s];
|
|
6243
6313
|
this.observers[e] && Array.from(this.observers[e].entries()).forEach((c) => {
|
|
6244
|
-
let [
|
|
6314
|
+
let [r, g] = c;
|
|
6245
6315
|
for (let d = 0; d < g; d++)
|
|
6246
|
-
|
|
6316
|
+
r(...n);
|
|
6247
6317
|
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((c) => {
|
|
6248
|
-
let [
|
|
6318
|
+
let [r, g] = c;
|
|
6249
6319
|
for (let d = 0; d < g; d++)
|
|
6250
|
-
|
|
6320
|
+
r.apply(r, [e, ...n]);
|
|
6251
6321
|
});
|
|
6252
6322
|
}
|
|
6253
6323
|
}
|
|
@@ -6268,41 +6338,41 @@ class j1 extends k1 {
|
|
|
6268
6338
|
}
|
|
6269
6339
|
getResource(e, t, n) {
|
|
6270
6340
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6271
|
-
const
|
|
6272
|
-
let
|
|
6273
|
-
e.indexOf(".") > -1 ?
|
|
6274
|
-
const g = C1(this.data,
|
|
6275
|
-
return !g && !t && !n && e.indexOf(".") > -1 && (e =
|
|
6341
|
+
const a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, c = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
6342
|
+
let r;
|
|
6343
|
+
e.indexOf(".") > -1 ? r = e.split(".") : (r = [e, t], n && (Array.isArray(n) ? r.push(...n) : k(n) && a ? r.push(...n.split(a)) : r.push(n)));
|
|
6344
|
+
const g = C1(this.data, r);
|
|
6345
|
+
return !g && !t && !n && e.indexOf(".") > -1 && (e = r[0], t = r[1], n = r.slice(2).join(".")), g || !c || !k(n) ? g : M1(this.data && this.data[e] && this.data[e][t], n, a);
|
|
6276
6346
|
}
|
|
6277
6347
|
addResource(e, t, n, s) {
|
|
6278
|
-
let
|
|
6348
|
+
let a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
6279
6349
|
silent: !1
|
|
6280
6350
|
};
|
|
6281
|
-
const c =
|
|
6282
|
-
let
|
|
6283
|
-
n && (
|
|
6351
|
+
const c = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator;
|
|
6352
|
+
let r = [e, t];
|
|
6353
|
+
n && (r = r.concat(c ? n.split(c) : n)), e.indexOf(".") > -1 && (r = e.split("."), s = t, t = r[1]), this.addNamespaces(t), B1(this.data, r, s), a.silent || this.emit("added", e, t, n, s);
|
|
6284
6354
|
}
|
|
6285
6355
|
addResources(e, t, n) {
|
|
6286
6356
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
6287
6357
|
silent: !1
|
|
6288
6358
|
};
|
|
6289
|
-
for (const
|
|
6290
|
-
(k(n[
|
|
6359
|
+
for (const a in n)
|
|
6360
|
+
(k(n[a]) || Array.isArray(n[a])) && this.addResource(e, t, a, n[a], {
|
|
6291
6361
|
silent: !0
|
|
6292
6362
|
});
|
|
6293
6363
|
s.silent || this.emit("added", e, t, n);
|
|
6294
6364
|
}
|
|
6295
|
-
addResourceBundle(e, t, n, s,
|
|
6365
|
+
addResourceBundle(e, t, n, s, a) {
|
|
6296
6366
|
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
|
|
6297
6367
|
silent: !1,
|
|
6298
6368
|
skipCopy: !1
|
|
6299
|
-
},
|
|
6300
|
-
e.indexOf(".") > -1 && (
|
|
6301
|
-
let g = C1(this.data,
|
|
6302
|
-
c.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? ne(g, n,
|
|
6369
|
+
}, r = [e, t];
|
|
6370
|
+
e.indexOf(".") > -1 && (r = e.split("."), s = n, n = t, t = r[1]), this.addNamespaces(t);
|
|
6371
|
+
let g = C1(this.data, r) || {};
|
|
6372
|
+
c.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? ne(g, n, a) : g = {
|
|
6303
6373
|
...g,
|
|
6304
6374
|
...n
|
|
6305
|
-
}, B1(this.data,
|
|
6375
|
+
}, B1(this.data, r, g), c.silent || this.emit("added", e, t, n);
|
|
6306
6376
|
}
|
|
6307
6377
|
removeResourceBundle(e, t) {
|
|
6308
6378
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -6332,8 +6402,8 @@ var se = {
|
|
|
6332
6402
|
this.processors[i.name] = i;
|
|
6333
6403
|
},
|
|
6334
6404
|
handle(i, e, t, n, s) {
|
|
6335
|
-
return i.forEach((
|
|
6336
|
-
this.processors[
|
|
6405
|
+
return i.forEach((a) => {
|
|
6406
|
+
this.processors[a] && (e = this.processors[a].process(e, t, n, s));
|
|
6337
6407
|
}), e;
|
|
6338
6408
|
}
|
|
6339
6409
|
};
|
|
@@ -6341,7 +6411,7 @@ const G1 = {};
|
|
|
6341
6411
|
class m1 extends k1 {
|
|
6342
6412
|
constructor(e) {
|
|
6343
6413
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6344
|
-
super(),
|
|
6414
|
+
super(), A5(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = G.create("translator");
|
|
6345
6415
|
}
|
|
6346
6416
|
changeLanguage(e) {
|
|
6347
6417
|
e && (this.language = e);
|
|
@@ -6359,21 +6429,21 @@ class m1 extends k1 {
|
|
|
6359
6429
|
let n = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
|
|
6360
6430
|
n === void 0 && (n = ":");
|
|
6361
6431
|
const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
6362
|
-
let
|
|
6363
|
-
const c = n && e.indexOf(n) > -1,
|
|
6364
|
-
if (c && !
|
|
6432
|
+
let a = t.ns || this.options.defaultNS || [];
|
|
6433
|
+
const c = n && e.indexOf(n) > -1, r = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !P5(e, n, s);
|
|
6434
|
+
if (c && !r) {
|
|
6365
6435
|
const g = e.match(this.interpolator.nestingRegexp);
|
|
6366
6436
|
if (g && g.length > 0)
|
|
6367
6437
|
return {
|
|
6368
6438
|
key: e,
|
|
6369
|
-
namespaces: k(
|
|
6439
|
+
namespaces: k(a) ? [a] : a
|
|
6370
6440
|
};
|
|
6371
6441
|
const d = e.split(n);
|
|
6372
|
-
(n !== s || n === s && this.options.ns.indexOf(d[0]) > -1) && (
|
|
6442
|
+
(n !== s || n === s && this.options.ns.indexOf(d[0]) > -1) && (a = d.shift()), e = d.join(s);
|
|
6373
6443
|
}
|
|
6374
6444
|
return {
|
|
6375
6445
|
key: e,
|
|
6376
|
-
namespaces: k(
|
|
6446
|
+
namespaces: k(a) ? [a] : a
|
|
6377
6447
|
};
|
|
6378
6448
|
}
|
|
6379
6449
|
translate(e, t, n) {
|
|
@@ -6381,10 +6451,10 @@ class m1 extends k1 {
|
|
|
6381
6451
|
...t
|
|
6382
6452
|
}), t || (t = {}), e == null) return "";
|
|
6383
6453
|
Array.isArray(e) || (e = [String(e)]);
|
|
6384
|
-
const s = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails,
|
|
6454
|
+
const s = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
6385
6455
|
key: c,
|
|
6386
|
-
namespaces:
|
|
6387
|
-
} = this.extractFromKey(e[e.length - 1], t), g =
|
|
6456
|
+
namespaces: r
|
|
6457
|
+
} = this.extractFromKey(e[e.length - 1], t), g = r[r.length - 1], d = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
6388
6458
|
if (d && d.toLowerCase() === "cimode") {
|
|
6389
6459
|
if (l) {
|
|
6390
6460
|
const f = t.nsSeparator || this.options.nsSeparator;
|
|
@@ -6414,20 +6484,20 @@ class m1 extends k1 {
|
|
|
6414
6484
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
6415
6485
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
|
|
6416
6486
|
...t,
|
|
6417
|
-
ns:
|
|
6487
|
+
ns: r
|
|
6418
6488
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
|
6419
6489
|
return s ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
|
|
6420
6490
|
}
|
|
6421
|
-
if (
|
|
6491
|
+
if (a) {
|
|
6422
6492
|
const f = Array.isArray(u), R = f ? [] : {}, v = f ? w : p;
|
|
6423
6493
|
for (const N in u)
|
|
6424
6494
|
if (Object.prototype.hasOwnProperty.call(u, N)) {
|
|
6425
|
-
const
|
|
6426
|
-
R[N] = this.translate(
|
|
6495
|
+
const T = `${v}${a}${N}`;
|
|
6496
|
+
R[N] = this.translate(T, {
|
|
6427
6497
|
...t,
|
|
6428
6498
|
joinArrays: !1,
|
|
6429
|
-
ns:
|
|
6430
|
-
}), R[N] ===
|
|
6499
|
+
ns: r
|
|
6500
|
+
}), R[N] === T && (R[N] = u[N]);
|
|
6431
6501
|
}
|
|
6432
6502
|
u = R;
|
|
6433
6503
|
}
|
|
@@ -6435,13 +6505,13 @@ class m1 extends k1 {
|
|
|
6435
6505
|
u = u.join(E), u && (u = this.extendTranslation(u, e, t, n));
|
|
6436
6506
|
else {
|
|
6437
6507
|
let f = !1, R = !1;
|
|
6438
|
-
const v = t.count !== void 0 && !k(t.count), N = m1.hasDefaultValue(t),
|
|
6508
|
+
const v = t.count !== void 0 && !k(t.count), N = m1.hasDefaultValue(t), T = v ? this.pluralResolver.getSuffix(d, t.count, t) : "", W = t.ordinal && v ? this.pluralResolver.getSuffix(d, t.count, {
|
|
6439
6509
|
ordinal: !1
|
|
6440
|
-
}) : "", i1 = v && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), $ = i1 && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${
|
|
6510
|
+
}) : "", i1 = v && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), $ = i1 && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${T}`] || t[`defaultValue${W}`] || t.defaultValue;
|
|
6441
6511
|
!this.isValidLookup(u) && N && (f = !0, u = $), this.isValidLookup(u) || (R = !0, u = c);
|
|
6442
6512
|
const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && R ? void 0 : u, K = N && $ !== u && this.options.updateMissing;
|
|
6443
6513
|
if (R || f || K) {
|
|
6444
|
-
if (this.logger.log(K ? "updateKey" : "missingKey", d, g, c, K ? $ : u),
|
|
6514
|
+
if (this.logger.log(K ? "updateKey" : "missingKey", d, g, c, K ? $ : u), a) {
|
|
6445
6515
|
const A = this.resolve(c, {
|
|
6446
6516
|
...t,
|
|
6447
6517
|
keySeparator: !1
|
|
@@ -6454,14 +6524,14 @@ class m1 extends k1 {
|
|
|
6454
6524
|
for (let A = 0; A < q.length; A++)
|
|
6455
6525
|
F.push(q[A]);
|
|
6456
6526
|
else this.options.saveMissingTo === "all" ? F = this.languageUtils.toResolveHierarchy(t.lng || this.language) : F.push(t.lng || this.language);
|
|
6457
|
-
const c1 = (A, P,
|
|
6458
|
-
const d1 = N &&
|
|
6527
|
+
const c1 = (A, P, Z) => {
|
|
6528
|
+
const d1 = N && Z !== u ? Z : I;
|
|
6459
6529
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(A, g, P, d1, K, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(A, g, P, d1, K, t), this.emit("missingKey", A, g, P, u);
|
|
6460
6530
|
};
|
|
6461
6531
|
this.options.saveMissing && (this.options.saveMissingPlurals && v ? F.forEach((A) => {
|
|
6462
6532
|
const P = this.pluralResolver.getSuffixes(A, t);
|
|
6463
|
-
i1 && t[`defaultValue${this.options.pluralSeparator}zero`] && P.indexOf(`${this.options.pluralSeparator}zero`) < 0 && P.push(`${this.options.pluralSeparator}zero`), P.forEach((
|
|
6464
|
-
c1([A], c +
|
|
6533
|
+
i1 && t[`defaultValue${this.options.pluralSeparator}zero`] && P.indexOf(`${this.options.pluralSeparator}zero`) < 0 && P.push(`${this.options.pluralSeparator}zero`), P.forEach((Z) => {
|
|
6534
|
+
c1([A], c + Z, t[`defaultValue${Z}`] || $);
|
|
6465
6535
|
});
|
|
6466
6536
|
}) : c1(F, c, $));
|
|
6467
6537
|
}
|
|
@@ -6469,7 +6539,7 @@ class m1 extends k1 {
|
|
|
6469
6539
|
}
|
|
6470
6540
|
return s ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
|
|
6471
6541
|
}
|
|
6472
|
-
extendTranslation(e, t, n, s,
|
|
6542
|
+
extendTranslation(e, t, n, s, a) {
|
|
6473
6543
|
var c = this;
|
|
6474
6544
|
if (this.i18nFormat && this.i18nFormat.parse)
|
|
6475
6545
|
e = this.i18nFormat.parse(e, {
|
|
@@ -6503,10 +6573,10 @@ class m1 extends k1 {
|
|
|
6503
6573
|
!n.lng && this.options.compatibilityAPI !== "v1" && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
6504
6574
|
for (var u = arguments.length, p = new Array(u), w = 0; w < u; w++)
|
|
6505
6575
|
p[w] = arguments[w];
|
|
6506
|
-
return
|
|
6576
|
+
return a && a[0] === p[0] && !n.context ? (c.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : c.translate(...p, t);
|
|
6507
6577
|
}, n)), n.interpolation && this.interpolator.reset();
|
|
6508
6578
|
}
|
|
6509
|
-
const
|
|
6579
|
+
const r = n.postProcess || this.options.postProcess, g = k(r) ? [r] : r;
|
|
6510
6580
|
return e != null && g && g.length && n.applyPostProcessor !== !1 && (e = se.handle(g, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
6511
6581
|
i18nResolved: {
|
|
6512
6582
|
...s,
|
|
@@ -6516,7 +6586,7 @@ class m1 extends k1 {
|
|
|
6516
6586
|
} : n, this)), e;
|
|
6517
6587
|
}
|
|
6518
6588
|
resolve(e) {
|
|
6519
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n, s,
|
|
6589
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n, s, a, c, r;
|
|
6520
6590
|
return k(e) && (e = [e]), e.forEach((g) => {
|
|
6521
6591
|
if (this.isValidLookup(n)) return;
|
|
6522
6592
|
const d = this.extractFromKey(g, t), l = d.key;
|
|
@@ -6525,7 +6595,7 @@ class m1 extends k1 {
|
|
|
6525
6595
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
|
6526
6596
|
const u = t.count !== void 0 && !k(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), w = t.context !== void 0 && (k(t.context) || typeof t.context == "number") && t.context !== "", L = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
6527
6597
|
h.forEach((m) => {
|
|
6528
|
-
this.isValidLookup(n) || (
|
|
6598
|
+
this.isValidLookup(n) || (r = m, !G1[`${L[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(r) && (G1[`${L[0]}-${m}`] = !0, this.logger.warn(`key "${s}" for languages "${L.join(", ")}" won't get resolved as namespace "${r}" 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!!!")), L.forEach((E) => {
|
|
6529
6599
|
if (this.isValidLookup(n)) return;
|
|
6530
6600
|
c = E;
|
|
6531
6601
|
const M = [l];
|
|
@@ -6542,15 +6612,15 @@ class m1 extends k1 {
|
|
|
6542
6612
|
}
|
|
6543
6613
|
let H;
|
|
6544
6614
|
for (; H = M.pop(); )
|
|
6545
|
-
this.isValidLookup(n) || (
|
|
6615
|
+
this.isValidLookup(n) || (a = H, n = this.getResource(E, m, H, t));
|
|
6546
6616
|
}));
|
|
6547
6617
|
});
|
|
6548
6618
|
}), {
|
|
6549
6619
|
res: n,
|
|
6550
6620
|
usedKey: s,
|
|
6551
|
-
exactUsedKey:
|
|
6621
|
+
exactUsedKey: a,
|
|
6552
6622
|
usedLng: c,
|
|
6553
|
-
usedNS:
|
|
6623
|
+
usedNS: r
|
|
6554
6624
|
};
|
|
6555
6625
|
}
|
|
6556
6626
|
isValidLookup(e) {
|
|
@@ -6571,8 +6641,8 @@ class m1 extends k1 {
|
|
|
6571
6641
|
s = {
|
|
6572
6642
|
...s
|
|
6573
6643
|
};
|
|
6574
|
-
for (const
|
|
6575
|
-
delete s[
|
|
6644
|
+
for (const a of t)
|
|
6645
|
+
delete s[a];
|
|
6576
6646
|
}
|
|
6577
6647
|
return s;
|
|
6578
6648
|
}
|
|
@@ -6627,10 +6697,10 @@ class W1 {
|
|
|
6627
6697
|
if (t) return;
|
|
6628
6698
|
const s = this.getLanguagePartFromCode(n);
|
|
6629
6699
|
if (this.isSupportedCode(s)) return t = s;
|
|
6630
|
-
t = this.options.supportedLngs.find((
|
|
6631
|
-
if (
|
|
6632
|
-
if (!(
|
|
6633
|
-
return
|
|
6700
|
+
t = this.options.supportedLngs.find((a) => {
|
|
6701
|
+
if (a === s) return a;
|
|
6702
|
+
if (!(a.indexOf("-") < 0 && s.indexOf("-") < 0) && (a.indexOf("-") > 0 && s.indexOf("-") < 0 && a.substring(0, a.indexOf("-")) === s || a.indexOf(s) === 0 && s.length > 1))
|
|
6703
|
+
return a;
|
|
6634
6704
|
});
|
|
6635
6705
|
}), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
|
|
6636
6706
|
}
|
|
@@ -6642,15 +6712,15 @@ class W1 {
|
|
|
6642
6712
|
return n || (n = e[this.getScriptPartFromCode(t)]), n || (n = e[this.formatLanguageCode(t)]), n || (n = e[this.getLanguagePartFromCode(t)]), n || (n = e.default), n || [];
|
|
6643
6713
|
}
|
|
6644
6714
|
toResolveHierarchy(e, t) {
|
|
6645
|
-
const n = this.getFallbackCodes(t || this.options.fallbackLng || [], e), s = [],
|
|
6715
|
+
const n = this.getFallbackCodes(t || this.options.fallbackLng || [], e), s = [], a = (c) => {
|
|
6646
6716
|
c && (this.isSupportedCode(c) ? s.push(c) : this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`));
|
|
6647
6717
|
};
|
|
6648
|
-
return k(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" &&
|
|
6649
|
-
s.indexOf(c) < 0 &&
|
|
6718
|
+
return k(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(e))) : k(e) && a(this.formatLanguageCode(e)), n.forEach((c) => {
|
|
6719
|
+
s.indexOf(c) < 0 && a(this.formatLanguageCode(c));
|
|
6650
6720
|
}), s;
|
|
6651
6721
|
}
|
|
6652
6722
|
}
|
|
6653
|
-
let
|
|
6723
|
+
let F5 = [{
|
|
6654
6724
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
6655
6725
|
nr: [1, 2],
|
|
6656
6726
|
fc: 1
|
|
@@ -6742,7 +6812,7 @@ let P5 = [{
|
|
|
6742
6812
|
lngs: ["he", "iw"],
|
|
6743
6813
|
nr: [1, 2, 20, 21],
|
|
6744
6814
|
fc: 22
|
|
6745
|
-
}],
|
|
6815
|
+
}], Y5 = {
|
|
6746
6816
|
1: (i) => +(i > 1),
|
|
6747
6817
|
2: (i) => +(i != 1),
|
|
6748
6818
|
3: (i) => 0,
|
|
@@ -6766,28 +6836,28 @@ let P5 = [{
|
|
|
6766
6836
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
|
6767
6837
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
|
6768
6838
|
};
|
|
6769
|
-
const
|
|
6839
|
+
const U5 = ["v1", "v2", "v3"], z5 = ["v4"], K1 = {
|
|
6770
6840
|
zero: 0,
|
|
6771
6841
|
one: 1,
|
|
6772
6842
|
two: 2,
|
|
6773
6843
|
few: 3,
|
|
6774
6844
|
many: 4,
|
|
6775
6845
|
other: 5
|
|
6776
|
-
},
|
|
6846
|
+
}, J5 = () => {
|
|
6777
6847
|
const i = {};
|
|
6778
|
-
return
|
|
6848
|
+
return F5.forEach((e) => {
|
|
6779
6849
|
e.lngs.forEach((t) => {
|
|
6780
6850
|
i[t] = {
|
|
6781
6851
|
numbers: e.nr,
|
|
6782
|
-
plurals:
|
|
6852
|
+
plurals: Y5[e.fc]
|
|
6783
6853
|
};
|
|
6784
6854
|
});
|
|
6785
6855
|
}), i;
|
|
6786
6856
|
};
|
|
6787
|
-
class
|
|
6857
|
+
class Q5 {
|
|
6788
6858
|
constructor(e) {
|
|
6789
6859
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6790
|
-
this.languageUtils = e, this.options = t, this.logger = G.create("pluralResolver"), (!this.options.compatibilityJSON ||
|
|
6860
|
+
this.languageUtils = e, this.options = t, this.logger = G.create("pluralResolver"), (!this.options.compatibilityJSON || z5.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = J5(), this.pluralRulesCache = {};
|
|
6791
6861
|
}
|
|
6792
6862
|
addRule(e, t) {
|
|
6793
6863
|
this.rules[e] = t;
|
|
@@ -6798,12 +6868,12 @@ class z5 {
|
|
|
6798
6868
|
getRule(e) {
|
|
6799
6869
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6800
6870
|
if (this.shouldUseIntlApi()) {
|
|
6801
|
-
const n = p1(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal",
|
|
6871
|
+
const n = p1(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
|
|
6802
6872
|
cleanedCode: n,
|
|
6803
6873
|
type: s
|
|
6804
6874
|
});
|
|
6805
|
-
if (
|
|
6806
|
-
return this.pluralRulesCache[
|
|
6875
|
+
if (a in this.pluralRulesCache)
|
|
6876
|
+
return this.pluralRulesCache[a];
|
|
6807
6877
|
let c;
|
|
6808
6878
|
try {
|
|
6809
6879
|
c = new Intl.PluralRules(n, {
|
|
@@ -6814,7 +6884,7 @@ class z5 {
|
|
|
6814
6884
|
const g = this.languageUtils.getLanguagePartFromCode(e);
|
|
6815
6885
|
c = this.getRule(g, t);
|
|
6816
6886
|
}
|
|
6817
|
-
return this.pluralRulesCache[
|
|
6887
|
+
return this.pluralRulesCache[a] = c, c;
|
|
6818
6888
|
}
|
|
6819
6889
|
return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
|
|
6820
6890
|
}
|
|
@@ -6830,7 +6900,7 @@ class z5 {
|
|
|
6830
6900
|
getSuffixes(e) {
|
|
6831
6901
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6832
6902
|
const n = this.getRule(e, t);
|
|
6833
|
-
return n ? this.shouldUseIntlApi() ? n.resolvedOptions().pluralCategories.sort((s,
|
|
6903
|
+
return n ? this.shouldUseIntlApi() ? n.resolvedOptions().pluralCategories.sort((s, a) => K1[s] - K1[a]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : n.numbers.map((s) => this.getSuffix(e, s, t)) : [];
|
|
6834
6904
|
}
|
|
6835
6905
|
getSuffix(e, t) {
|
|
6836
6906
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -6841,18 +6911,18 @@ class z5 {
|
|
|
6841
6911
|
const n = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t));
|
|
6842
6912
|
let s = e.numbers[n];
|
|
6843
6913
|
this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 && (s === 2 ? s = "plural" : s === 1 && (s = ""));
|
|
6844
|
-
const
|
|
6845
|
-
return this.options.compatibilityJSON === "v1" ? s === 1 ? "" : typeof s == "number" ? `_plural_${s.toString()}` :
|
|
6914
|
+
const a = () => this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
|
6915
|
+
return this.options.compatibilityJSON === "v1" ? s === 1 ? "" : typeof s == "number" ? `_plural_${s.toString()}` : a() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? a() : this.options.prepend && n.toString() ? this.options.prepend + n.toString() : n.toString();
|
|
6846
6916
|
}
|
|
6847
6917
|
shouldUseIntlApi() {
|
|
6848
|
-
return !
|
|
6918
|
+
return !U5.includes(this.options.compatibilityJSON);
|
|
6849
6919
|
}
|
|
6850
6920
|
}
|
|
6851
6921
|
const P1 = function(i, e, t) {
|
|
6852
|
-
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0,
|
|
6853
|
-
return !
|
|
6922
|
+
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = D5(i, e, t);
|
|
6923
|
+
return !a && s && k(t) && (a = M1(i, t, n), a === void 0 && (a = M1(e, t, n))), a;
|
|
6854
6924
|
}, x1 = (i) => i.replace(/\$/g, "$$$$");
|
|
6855
|
-
class
|
|
6925
|
+
class q5 {
|
|
6856
6926
|
constructor() {
|
|
6857
6927
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6858
6928
|
this.logger = G.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
@@ -6866,9 +6936,9 @@ class J5 {
|
|
|
6866
6936
|
escape: t,
|
|
6867
6937
|
escapeValue: n,
|
|
6868
6938
|
useRawValueToEscape: s,
|
|
6869
|
-
prefix:
|
|
6939
|
+
prefix: a,
|
|
6870
6940
|
prefixEscaped: c,
|
|
6871
|
-
suffix:
|
|
6941
|
+
suffix: r,
|
|
6872
6942
|
suffixEscaped: g,
|
|
6873
6943
|
formatSeparator: d,
|
|
6874
6944
|
unescapeSuffix: l,
|
|
@@ -6881,7 +6951,7 @@ class J5 {
|
|
|
6881
6951
|
maxReplaces: E,
|
|
6882
6952
|
alwaysFormat: M
|
|
6883
6953
|
} = e.interpolation;
|
|
6884
|
-
this.escape = t !== void 0 ? t :
|
|
6954
|
+
this.escape = t !== void 0 ? t : j5, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? X(a) : c || "{{", this.suffix = r ? X(r) : g || "}}", this.formatSeparator = d || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = u ? X(u) : p || X("$t("), this.nestingSuffix = w ? X(w) : L || X(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
|
|
6885
6955
|
}
|
|
6886
6956
|
reset() {
|
|
6887
6957
|
this.options && this.init(this.options);
|
|
@@ -6891,7 +6961,7 @@ class J5 {
|
|
|
6891
6961
|
this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
|
|
6892
6962
|
}
|
|
6893
6963
|
interpolate(e, t, n, s) {
|
|
6894
|
-
let
|
|
6964
|
+
let a, c, r;
|
|
6895
6965
|
const g = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, d = (p) => {
|
|
6896
6966
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
6897
6967
|
const E = P1(t, g, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
@@ -6917,29 +6987,29 @@ class J5 {
|
|
|
6917
6987
|
regex: this.regexp,
|
|
6918
6988
|
safeValue: (p) => this.escapeValue ? x1(this.escape(p)) : x1(p)
|
|
6919
6989
|
}].forEach((p) => {
|
|
6920
|
-
for (
|
|
6921
|
-
const w =
|
|
6990
|
+
for (r = 0; a = p.regex.exec(e); ) {
|
|
6991
|
+
const w = a[1].trim();
|
|
6922
6992
|
if (c = d(w), c === void 0)
|
|
6923
6993
|
if (typeof l == "function") {
|
|
6924
|
-
const m = l(e,
|
|
6994
|
+
const m = l(e, a, s);
|
|
6925
6995
|
c = k(m) ? m : "";
|
|
6926
6996
|
} else if (s && Object.prototype.hasOwnProperty.call(s, w))
|
|
6927
6997
|
c = "";
|
|
6928
6998
|
else if (h) {
|
|
6929
|
-
c =
|
|
6999
|
+
c = a[0];
|
|
6930
7000
|
continue;
|
|
6931
7001
|
} else
|
|
6932
7002
|
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), c = "";
|
|
6933
|
-
else !k(c) && !this.useRawValueToEscape && (c =
|
|
7003
|
+
else !k(c) && !this.useRawValueToEscape && (c = Z1(c));
|
|
6934
7004
|
const L = p.safeValue(c);
|
|
6935
|
-
if (e = e.replace(
|
|
7005
|
+
if (e = e.replace(a[0], L), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, r++, r >= this.maxReplaces)
|
|
6936
7006
|
break;
|
|
6937
7007
|
}
|
|
6938
7008
|
}), e;
|
|
6939
7009
|
}
|
|
6940
7010
|
nest(e, t) {
|
|
6941
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s,
|
|
6942
|
-
const
|
|
7011
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, a, c;
|
|
7012
|
+
const r = (g, d) => {
|
|
6943
7013
|
const l = this.nestingOptionsSeparator;
|
|
6944
7014
|
if (g.indexOf(l) < 0) return g;
|
|
6945
7015
|
const h = g.split(new RegExp(`${l}[ ]*{`));
|
|
@@ -6967,16 +7037,16 @@ class J5 {
|
|
|
6967
7037
|
const l = s[1].split(this.formatSeparator).map((h) => h.trim());
|
|
6968
7038
|
s[1] = l.shift(), g = l, d = !0;
|
|
6969
7039
|
}
|
|
6970
|
-
if (
|
|
6971
|
-
k(
|
|
7040
|
+
if (a = t(r.call(this, s[1].trim(), c), c), a && s[0] === e && !k(a)) return a;
|
|
7041
|
+
k(a) || (a = Z1(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), d && (a = g.reduce((l, h) => this.format(l, h, n.lng, {
|
|
6972
7042
|
...n,
|
|
6973
7043
|
interpolationkey: s[1].trim()
|
|
6974
|
-
}),
|
|
7044
|
+
}), a.trim())), e = e.replace(s[0], a), this.regexp.lastIndex = 0;
|
|
6975
7045
|
}
|
|
6976
7046
|
return e;
|
|
6977
7047
|
}
|
|
6978
7048
|
}
|
|
6979
|
-
const
|
|
7049
|
+
const X5 = (i) => {
|
|
6980
7050
|
let e = i.toLowerCase().trim();
|
|
6981
7051
|
const t = {};
|
|
6982
7052
|
if (i.indexOf("(") > -1) {
|
|
@@ -6985,7 +7055,7 @@ const Q5 = (i) => {
|
|
|
6985
7055
|
const s = n[1].substring(0, n[1].length - 1);
|
|
6986
7056
|
e === "currency" && s.indexOf(":") < 0 ? t.currency || (t.currency = s.trim()) : e === "relativetime" && s.indexOf(":") < 0 ? t.range || (t.range = s.trim()) : s.split(";").forEach((c) => {
|
|
6987
7057
|
if (c) {
|
|
6988
|
-
const [
|
|
7058
|
+
const [r, ...g] = c.split(":"), d = g.join(":").trim().replace(/^'+|'+$/g, ""), l = r.trim();
|
|
6989
7059
|
t[l] || (t[l] = d), d === "false" && (t[l] = !1), d === "true" && (t[l] = !0), isNaN(d) || (t[l] = parseInt(d, 10));
|
|
6990
7060
|
}
|
|
6991
7061
|
});
|
|
@@ -6997,17 +7067,17 @@ const Q5 = (i) => {
|
|
|
6997
7067
|
}, e1 = (i) => {
|
|
6998
7068
|
const e = {};
|
|
6999
7069
|
return (t, n, s) => {
|
|
7000
|
-
let
|
|
7001
|
-
s && s.interpolationkey && s.formatParams && s.formatParams[s.interpolationkey] && s[s.interpolationkey] && (
|
|
7002
|
-
...
|
|
7070
|
+
let a = s;
|
|
7071
|
+
s && s.interpolationkey && s.formatParams && s.formatParams[s.interpolationkey] && s[s.interpolationkey] && (a = {
|
|
7072
|
+
...a,
|
|
7003
7073
|
[s.interpolationkey]: void 0
|
|
7004
7074
|
});
|
|
7005
|
-
const c = n + JSON.stringify(
|
|
7006
|
-
let
|
|
7007
|
-
return
|
|
7075
|
+
const c = n + JSON.stringify(a);
|
|
7076
|
+
let r = e[c];
|
|
7077
|
+
return r || (r = i(p1(n), s), e[c] = r), r(t);
|
|
7008
7078
|
};
|
|
7009
7079
|
};
|
|
7010
|
-
class
|
|
7080
|
+
class e0 {
|
|
7011
7081
|
constructor() {
|
|
7012
7082
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7013
7083
|
this.logger = G.create("formatter"), this.options = e, this.formats = {
|
|
@@ -7015,32 +7085,32 @@ class q5 {
|
|
|
7015
7085
|
const s = new Intl.NumberFormat(t, {
|
|
7016
7086
|
...n
|
|
7017
7087
|
});
|
|
7018
|
-
return (
|
|
7088
|
+
return (a) => s.format(a);
|
|
7019
7089
|
}),
|
|
7020
7090
|
currency: e1((t, n) => {
|
|
7021
7091
|
const s = new Intl.NumberFormat(t, {
|
|
7022
7092
|
...n,
|
|
7023
7093
|
style: "currency"
|
|
7024
7094
|
});
|
|
7025
|
-
return (
|
|
7095
|
+
return (a) => s.format(a);
|
|
7026
7096
|
}),
|
|
7027
7097
|
datetime: e1((t, n) => {
|
|
7028
7098
|
const s = new Intl.DateTimeFormat(t, {
|
|
7029
7099
|
...n
|
|
7030
7100
|
});
|
|
7031
|
-
return (
|
|
7101
|
+
return (a) => s.format(a);
|
|
7032
7102
|
}),
|
|
7033
7103
|
relativetime: e1((t, n) => {
|
|
7034
7104
|
const s = new Intl.RelativeTimeFormat(t, {
|
|
7035
7105
|
...n
|
|
7036
7106
|
});
|
|
7037
|
-
return (
|
|
7107
|
+
return (a) => s.format(a, n.range || "day");
|
|
7038
7108
|
}),
|
|
7039
7109
|
list: e1((t, n) => {
|
|
7040
7110
|
const s = new Intl.ListFormat(t, {
|
|
7041
7111
|
...n
|
|
7042
7112
|
});
|
|
7043
|
-
return (
|
|
7113
|
+
return (a) => s.format(a);
|
|
7044
7114
|
})
|
|
7045
7115
|
}, this.init(e);
|
|
7046
7116
|
}
|
|
@@ -7058,21 +7128,21 @@ class q5 {
|
|
|
7058
7128
|
}
|
|
7059
7129
|
format(e, t, n) {
|
|
7060
7130
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
7061
|
-
const
|
|
7062
|
-
if (
|
|
7063
|
-
const
|
|
7064
|
-
|
|
7131
|
+
const a = t.split(this.formatSeparator);
|
|
7132
|
+
if (a.length > 1 && a[0].indexOf("(") > 1 && a[0].indexOf(")") < 0 && a.find((r) => r.indexOf(")") > -1)) {
|
|
7133
|
+
const r = a.findIndex((g) => g.indexOf(")") > -1);
|
|
7134
|
+
a[0] = [a[0], ...a.splice(1, r)].join(this.formatSeparator);
|
|
7065
7135
|
}
|
|
7066
|
-
return
|
|
7136
|
+
return a.reduce((r, g) => {
|
|
7067
7137
|
const {
|
|
7068
7138
|
formatName: d,
|
|
7069
7139
|
formatOptions: l
|
|
7070
|
-
} =
|
|
7140
|
+
} = X5(g);
|
|
7071
7141
|
if (this.formats[d]) {
|
|
7072
|
-
let h =
|
|
7142
|
+
let h = r;
|
|
7073
7143
|
try {
|
|
7074
7144
|
const u = s && s.formatParams && s.formatParams[s.interpolationkey] || {}, p = u.locale || u.lng || s.locale || s.lng || n;
|
|
7075
|
-
h = this.formats[d](
|
|
7145
|
+
h = this.formats[d](r, p, {
|
|
7076
7146
|
...l,
|
|
7077
7147
|
...s,
|
|
7078
7148
|
...u
|
|
@@ -7083,57 +7153,57 @@ class q5 {
|
|
|
7083
7153
|
return h;
|
|
7084
7154
|
} else
|
|
7085
7155
|
this.logger.warn(`there was no format function for ${d}`);
|
|
7086
|
-
return
|
|
7156
|
+
return r;
|
|
7087
7157
|
}, e);
|
|
7088
7158
|
}
|
|
7089
7159
|
}
|
|
7090
|
-
const
|
|
7160
|
+
const t0 = (i, e) => {
|
|
7091
7161
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
|
7092
7162
|
};
|
|
7093
|
-
class
|
|
7163
|
+
class i0 extends k1 {
|
|
7094
7164
|
constructor(e, t, n) {
|
|
7095
7165
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
7096
7166
|
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = G.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(n, s.backend, s);
|
|
7097
7167
|
}
|
|
7098
7168
|
queueLoad(e, t, n, s) {
|
|
7099
|
-
const
|
|
7169
|
+
const a = {}, c = {}, r = {}, g = {};
|
|
7100
7170
|
return e.forEach((d) => {
|
|
7101
7171
|
let l = !0;
|
|
7102
7172
|
t.forEach((h) => {
|
|
7103
7173
|
const u = `${d}|${h}`;
|
|
7104
|
-
!n.reload && this.store.hasResourceBundle(d, h) ? this.state[u] = 2 : this.state[u] < 0 || (this.state[u] === 1 ? c[u] === void 0 && (c[u] = !0) : (this.state[u] = 1, l = !1, c[u] === void 0 && (c[u] = !0),
|
|
7105
|
-
}), l || (
|
|
7106
|
-
}), (Object.keys(
|
|
7174
|
+
!n.reload && this.store.hasResourceBundle(d, h) ? this.state[u] = 2 : this.state[u] < 0 || (this.state[u] === 1 ? c[u] === void 0 && (c[u] = !0) : (this.state[u] = 1, l = !1, c[u] === void 0 && (c[u] = !0), a[u] === void 0 && (a[u] = !0), g[h] === void 0 && (g[h] = !0)));
|
|
7175
|
+
}), l || (r[d] = !0);
|
|
7176
|
+
}), (Object.keys(a).length || Object.keys(c).length) && this.queue.push({
|
|
7107
7177
|
pending: c,
|
|
7108
7178
|
pendingCount: Object.keys(c).length,
|
|
7109
7179
|
loaded: {},
|
|
7110
7180
|
errors: [],
|
|
7111
7181
|
callback: s
|
|
7112
7182
|
}), {
|
|
7113
|
-
toLoad: Object.keys(
|
|
7183
|
+
toLoad: Object.keys(a),
|
|
7114
7184
|
pending: Object.keys(c),
|
|
7115
|
-
toLoadLanguages: Object.keys(
|
|
7185
|
+
toLoadLanguages: Object.keys(r),
|
|
7116
7186
|
toLoadNamespaces: Object.keys(g)
|
|
7117
7187
|
};
|
|
7118
7188
|
}
|
|
7119
7189
|
loaded(e, t, n) {
|
|
7120
|
-
const s = e.split("|"),
|
|
7121
|
-
t && this.emit("failedLoading",
|
|
7190
|
+
const s = e.split("|"), a = s[0], c = s[1];
|
|
7191
|
+
t && this.emit("failedLoading", a, c, t), !t && n && this.store.addResourceBundle(a, c, n, void 0, void 0, {
|
|
7122
7192
|
skipCopy: !0
|
|
7123
7193
|
}), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
7124
|
-
const
|
|
7194
|
+
const r = {};
|
|
7125
7195
|
this.queue.forEach((g) => {
|
|
7126
|
-
|
|
7127
|
-
|
|
7196
|
+
T5(g.loaded, [a], c), t0(g, e), t && g.errors.push(t), g.pendingCount === 0 && !g.done && (Object.keys(g.loaded).forEach((d) => {
|
|
7197
|
+
r[d] || (r[d] = {});
|
|
7128
7198
|
const l = g.loaded[d];
|
|
7129
7199
|
l.length && l.forEach((h) => {
|
|
7130
|
-
|
|
7200
|
+
r[d][h] === void 0 && (r[d][h] = !0);
|
|
7131
7201
|
});
|
|
7132
7202
|
}), g.done = !0, g.errors.length ? g.callback(g.errors) : g.callback());
|
|
7133
|
-
}), this.emit("loaded",
|
|
7203
|
+
}), this.emit("loaded", r), this.queue = this.queue.filter((g) => !g.done);
|
|
7134
7204
|
}
|
|
7135
7205
|
read(e, t, n) {
|
|
7136
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0,
|
|
7206
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, c = arguments.length > 5 ? arguments[5] : void 0;
|
|
7137
7207
|
if (!e.length) return c(null, {});
|
|
7138
7208
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
7139
7209
|
this.waitingReads.push({
|
|
@@ -7141,21 +7211,21 @@ class ei extends k1 {
|
|
|
7141
7211
|
ns: t,
|
|
7142
7212
|
fcName: n,
|
|
7143
7213
|
tried: s,
|
|
7144
|
-
wait:
|
|
7214
|
+
wait: a,
|
|
7145
7215
|
callback: c
|
|
7146
7216
|
});
|
|
7147
7217
|
return;
|
|
7148
7218
|
}
|
|
7149
7219
|
this.readingCalls++;
|
|
7150
|
-
const
|
|
7220
|
+
const r = (d, l) => {
|
|
7151
7221
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
7152
7222
|
const h = this.waitingReads.shift();
|
|
7153
7223
|
this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
|
|
7154
7224
|
}
|
|
7155
7225
|
if (d && l && s < this.maxRetries) {
|
|
7156
7226
|
setTimeout(() => {
|
|
7157
|
-
this.read.call(this, e, t, n, s + 1,
|
|
7158
|
-
},
|
|
7227
|
+
this.read.call(this, e, t, n, s + 1, a * 2, c);
|
|
7228
|
+
}, a);
|
|
7159
7229
|
return;
|
|
7160
7230
|
}
|
|
7161
7231
|
c(d, l);
|
|
@@ -7163,23 +7233,23 @@ class ei extends k1 {
|
|
|
7163
7233
|
if (g.length === 2) {
|
|
7164
7234
|
try {
|
|
7165
7235
|
const d = g(e, t);
|
|
7166
|
-
d && typeof d.then == "function" ? d.then((l) =>
|
|
7236
|
+
d && typeof d.then == "function" ? d.then((l) => r(null, l)).catch(r) : r(null, d);
|
|
7167
7237
|
} catch (d) {
|
|
7168
|
-
|
|
7238
|
+
r(d);
|
|
7169
7239
|
}
|
|
7170
7240
|
return;
|
|
7171
7241
|
}
|
|
7172
|
-
return g(e, t,
|
|
7242
|
+
return g(e, t, r);
|
|
7173
7243
|
}
|
|
7174
7244
|
prepareLoading(e, t) {
|
|
7175
7245
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = arguments.length > 3 ? arguments[3] : void 0;
|
|
7176
7246
|
if (!this.backend)
|
|
7177
7247
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), s && s();
|
|
7178
7248
|
k(e) && (e = this.languageUtils.toResolveHierarchy(e)), k(t) && (t = [t]);
|
|
7179
|
-
const
|
|
7180
|
-
if (!
|
|
7181
|
-
return
|
|
7182
|
-
|
|
7249
|
+
const a = this.queueLoad(e, t, n, s);
|
|
7250
|
+
if (!a.toLoad.length)
|
|
7251
|
+
return a.pending.length || s(), null;
|
|
7252
|
+
a.toLoad.forEach((c) => {
|
|
7183
7253
|
this.loadOne(c);
|
|
7184
7254
|
});
|
|
7185
7255
|
}
|
|
@@ -7193,13 +7263,13 @@ class ei extends k1 {
|
|
|
7193
7263
|
}
|
|
7194
7264
|
loadOne(e) {
|
|
7195
7265
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
7196
|
-
const n = e.split("|"), s = n[0],
|
|
7197
|
-
this.read(s,
|
|
7198
|
-
c && this.logger.warn(`${t}loading namespace ${
|
|
7266
|
+
const n = e.split("|"), s = n[0], a = n[1];
|
|
7267
|
+
this.read(s, a, "read", void 0, void 0, (c, r) => {
|
|
7268
|
+
c && this.logger.warn(`${t}loading namespace ${a} for language ${s} failed`, c), !c && r && this.logger.log(`${t}loaded namespace ${a} for language ${s}`, r), this.loaded(e, c, r);
|
|
7199
7269
|
});
|
|
7200
7270
|
}
|
|
7201
|
-
saveMissing(e, t, n, s,
|
|
7202
|
-
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {},
|
|
7271
|
+
saveMissing(e, t, n, s, a) {
|
|
7272
|
+
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, r = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
|
7203
7273
|
};
|
|
7204
7274
|
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
|
|
7205
7275
|
this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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!!!");
|
|
@@ -7209,17 +7279,17 @@ class ei extends k1 {
|
|
|
7209
7279
|
if (this.backend && this.backend.create) {
|
|
7210
7280
|
const g = {
|
|
7211
7281
|
...c,
|
|
7212
|
-
isUpdate:
|
|
7282
|
+
isUpdate: a
|
|
7213
7283
|
}, d = this.backend.create.bind(this.backend);
|
|
7214
7284
|
if (d.length < 6)
|
|
7215
7285
|
try {
|
|
7216
7286
|
let l;
|
|
7217
|
-
d.length === 5 ? l = d(e, t, n, s, g) : l = d(e, t, n, s), l && typeof l.then == "function" ? l.then((h) =>
|
|
7287
|
+
d.length === 5 ? l = d(e, t, n, s, g) : l = d(e, t, n, s), l && typeof l.then == "function" ? l.then((h) => r(null, h)).catch(r) : r(null, l);
|
|
7218
7288
|
} catch (l) {
|
|
7219
|
-
|
|
7289
|
+
r(l);
|
|
7220
7290
|
}
|
|
7221
7291
|
else
|
|
7222
|
-
d(e, t, n, s,
|
|
7292
|
+
d(e, t, n, s, r, g);
|
|
7223
7293
|
}
|
|
7224
7294
|
!e || !e[0] || this.store.addResource(e[0], t, n, s);
|
|
7225
7295
|
}
|
|
@@ -7282,7 +7352,7 @@ const $1 = () => ({
|
|
|
7282
7352
|
skipOnVariables: !0
|
|
7283
7353
|
}
|
|
7284
7354
|
}), F1 = (i) => (k(i.ns) && (i.ns = [i.ns]), k(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), k(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), u1 = () => {
|
|
7285
|
-
},
|
|
7355
|
+
}, n0 = (i) => {
|
|
7286
7356
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
|
7287
7357
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
|
7288
7358
|
});
|
|
@@ -7292,7 +7362,7 @@ class l1 extends k1 {
|
|
|
7292
7362
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
7293
7363
|
if (super(), this.options = F1(e), this.services = {}, this.logger = G, this.modules = {
|
|
7294
7364
|
external: []
|
|
7295
|
-
},
|
|
7365
|
+
}, n0(this), t && !this.isInitialized && !e.isClone) {
|
|
7296
7366
|
if (!this.options.initImmediate)
|
|
7297
7367
|
return this.init(e, t), this;
|
|
7298
7368
|
setTimeout(() => {
|
|
@@ -7313,25 +7383,25 @@ class l1 extends k1 {
|
|
|
7313
7383
|
...s.interpolation,
|
|
7314
7384
|
...this.options.interpolation
|
|
7315
7385
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
7316
|
-
const
|
|
7386
|
+
const a = (l) => l ? typeof l == "function" ? new l() : l : null;
|
|
7317
7387
|
if (!this.options.isClone) {
|
|
7318
|
-
this.modules.logger ? G.init(
|
|
7388
|
+
this.modules.logger ? G.init(a(this.modules.logger), this.options) : G.init(null, this.options);
|
|
7319
7389
|
let l;
|
|
7320
|
-
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l =
|
|
7390
|
+
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = e0);
|
|
7321
7391
|
const h = new W1(this.options);
|
|
7322
7392
|
this.store = new j1(this.options.resources, this.options);
|
|
7323
7393
|
const u = this.services;
|
|
7324
|
-
u.logger = G, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new
|
|
7394
|
+
u.logger = G, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new Q5(h, {
|
|
7325
7395
|
prepend: this.options.pluralSeparator,
|
|
7326
7396
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
7327
7397
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
7328
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (u.formatter =
|
|
7398
|
+
}), l && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (u.formatter = a(l), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new q5(this.options), u.utils = {
|
|
7329
7399
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
7330
|
-
}, u.backendConnector = new
|
|
7400
|
+
}, u.backendConnector = new i0(a(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
|
|
7331
7401
|
for (var w = arguments.length, L = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7332
7402
|
L[m - 1] = arguments[m];
|
|
7333
7403
|
e.emit(p, ...L);
|
|
7334
|
-
}), this.modules.languageDetector && (u.languageDetector =
|
|
7404
|
+
}), this.modules.languageDetector && (u.languageDetector = a(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = a(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new m1(this.services, this.options), this.translator.on("*", function(p) {
|
|
7335
7405
|
for (var w = arguments.length, L = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7336
7406
|
L[m - 1] = arguments[m];
|
|
7337
7407
|
e.emit(p, ...L);
|
|
@@ -7366,22 +7436,22 @@ class l1 extends k1 {
|
|
|
7366
7436
|
const s = k(e) ? e : this.language;
|
|
7367
7437
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
7368
7438
|
if (s && s.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
7369
|
-
const
|
|
7370
|
-
if (!
|
|
7371
|
-
this.services.languageUtils.toResolveHierarchy(
|
|
7372
|
-
d !== "cimode" &&
|
|
7439
|
+
const a = [], c = (r) => {
|
|
7440
|
+
if (!r || r === "cimode") return;
|
|
7441
|
+
this.services.languageUtils.toResolveHierarchy(r).forEach((d) => {
|
|
7442
|
+
d !== "cimode" && a.indexOf(d) < 0 && a.push(d);
|
|
7373
7443
|
});
|
|
7374
7444
|
};
|
|
7375
|
-
s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((g) => c(g)), this.options.preload && this.options.preload.forEach((
|
|
7376
|
-
!
|
|
7445
|
+
s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((g) => c(g)), this.options.preload && this.options.preload.forEach((r) => c(r)), this.services.backendConnector.load(a, this.options.ns, (r) => {
|
|
7446
|
+
!r && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(r);
|
|
7377
7447
|
});
|
|
7378
7448
|
} else
|
|
7379
7449
|
n(null);
|
|
7380
7450
|
}
|
|
7381
7451
|
reloadResources(e, t, n) {
|
|
7382
7452
|
const s = s1();
|
|
7383
|
-
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), n || (n = u1), this.services.backendConnector.reload(e, t, (
|
|
7384
|
-
s.resolve(), n(
|
|
7453
|
+
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), n || (n = u1), this.services.backendConnector.reload(e, t, (a) => {
|
|
7454
|
+
s.resolve(), n(a);
|
|
7385
7455
|
}), s;
|
|
7386
7456
|
}
|
|
7387
7457
|
use(e) {
|
|
@@ -7404,41 +7474,41 @@ class l1 extends k1 {
|
|
|
7404
7474
|
this.isLanguageChangingTo = e;
|
|
7405
7475
|
const s = s1();
|
|
7406
7476
|
this.emit("languageChanging", e);
|
|
7407
|
-
const
|
|
7477
|
+
const a = (g) => {
|
|
7408
7478
|
this.language = g, this.languages = this.services.languageUtils.toResolveHierarchy(g), this.resolvedLanguage = void 0, this.setResolvedLanguage(g);
|
|
7409
7479
|
}, c = (g, d) => {
|
|
7410
|
-
d ? (
|
|
7480
|
+
d ? (a(d), this.translator.changeLanguage(d), this.isLanguageChangingTo = void 0, this.emit("languageChanged", d), this.logger.log("languageChanged", d)) : this.isLanguageChangingTo = void 0, s.resolve(function() {
|
|
7411
7481
|
return n.t(...arguments);
|
|
7412
7482
|
}), t && t(g, function() {
|
|
7413
7483
|
return n.t(...arguments);
|
|
7414
7484
|
});
|
|
7415
|
-
},
|
|
7485
|
+
}, r = (g) => {
|
|
7416
7486
|
!e && !g && this.services.languageDetector && (g = []);
|
|
7417
7487
|
const d = k(g) ? g : this.services.languageUtils.getBestMatchFromCodes(g);
|
|
7418
|
-
d && (this.language ||
|
|
7488
|
+
d && (this.language || a(d), this.translator.language || this.translator.changeLanguage(d), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(d)), this.loadResources(d, (l) => {
|
|
7419
7489
|
c(l, d);
|
|
7420
7490
|
});
|
|
7421
7491
|
};
|
|
7422
|
-
return !e && this.services.languageDetector && !this.services.languageDetector.async ?
|
|
7492
|
+
return !e && this.services.languageDetector && !this.services.languageDetector.async ? r(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(r) : this.services.languageDetector.detect(r) : r(e), s;
|
|
7423
7493
|
}
|
|
7424
7494
|
getFixedT(e, t, n) {
|
|
7425
7495
|
var s = this;
|
|
7426
|
-
const
|
|
7496
|
+
const a = function(c, r) {
|
|
7427
7497
|
let g;
|
|
7428
|
-
if (typeof
|
|
7498
|
+
if (typeof r != "object") {
|
|
7429
7499
|
for (var d = arguments.length, l = new Array(d > 2 ? d - 2 : 0), h = 2; h < d; h++)
|
|
7430
7500
|
l[h - 2] = arguments[h];
|
|
7431
|
-
g = s.options.overloadTranslationOptionHandler([c,
|
|
7501
|
+
g = s.options.overloadTranslationOptionHandler([c, r].concat(l));
|
|
7432
7502
|
} else
|
|
7433
7503
|
g = {
|
|
7434
|
-
...
|
|
7504
|
+
...r
|
|
7435
7505
|
};
|
|
7436
|
-
g.lng = g.lng ||
|
|
7506
|
+
g.lng = g.lng || a.lng, g.lngs = g.lngs || a.lngs, g.ns = g.ns || a.ns, g.keyPrefix !== "" && (g.keyPrefix = g.keyPrefix || n || a.keyPrefix);
|
|
7437
7507
|
const u = s.options.keySeparator || ".";
|
|
7438
7508
|
let p;
|
|
7439
7509
|
return g.keyPrefix && Array.isArray(c) ? p = c.map((w) => `${g.keyPrefix}${u}${w}`) : p = g.keyPrefix ? `${g.keyPrefix}${u}${c}` : c, s.t(p, g);
|
|
7440
7510
|
};
|
|
7441
|
-
return k(e) ?
|
|
7511
|
+
return k(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = n, a;
|
|
7442
7512
|
}
|
|
7443
7513
|
t() {
|
|
7444
7514
|
return this.translator && this.translator.translate(...arguments);
|
|
@@ -7455,17 +7525,17 @@ class l1 extends k1 {
|
|
|
7455
7525
|
return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
|
|
7456
7526
|
if (!this.languages || !this.languages.length)
|
|
7457
7527
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
7458
|
-
const n = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1,
|
|
7528
|
+
const n = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
|
|
7459
7529
|
if (n.toLowerCase() === "cimode") return !0;
|
|
7460
|
-
const c = (
|
|
7461
|
-
const d = this.services.backendConnector.state[`${
|
|
7530
|
+
const c = (r, g) => {
|
|
7531
|
+
const d = this.services.backendConnector.state[`${r}|${g}`];
|
|
7462
7532
|
return d === -1 || d === 0 || d === 2;
|
|
7463
7533
|
};
|
|
7464
7534
|
if (t.precheck) {
|
|
7465
|
-
const
|
|
7466
|
-
if (
|
|
7535
|
+
const r = t.precheck(this, c);
|
|
7536
|
+
if (r !== void 0) return r;
|
|
7467
7537
|
}
|
|
7468
|
-
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(n, e) && (!s || c(
|
|
7538
|
+
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(n, e) && (!s || c(a, e)));
|
|
7469
7539
|
}
|
|
7470
7540
|
loadNamespaces(e, t) {
|
|
7471
7541
|
const n = s1();
|
|
@@ -7478,8 +7548,8 @@ class l1 extends k1 {
|
|
|
7478
7548
|
loadLanguages(e, t) {
|
|
7479
7549
|
const n = s1();
|
|
7480
7550
|
k(e) && (e = [e]);
|
|
7481
|
-
const s = this.options.preload || [],
|
|
7482
|
-
return
|
|
7551
|
+
const s = this.options.preload || [], a = e.filter((c) => s.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
|
|
7552
|
+
return a.length ? (this.options.preload = s.concat(a), this.loadResources((c) => {
|
|
7483
7553
|
n.resolve(), t && t(c);
|
|
7484
7554
|
}), n) : (t && t(), Promise.resolve());
|
|
7485
7555
|
}
|
|
@@ -7500,20 +7570,20 @@ class l1 extends k1 {
|
|
|
7500
7570
|
...this.options,
|
|
7501
7571
|
...e,
|
|
7502
7572
|
isClone: !0
|
|
7503
|
-
},
|
|
7504
|
-
return (e.debug !== void 0 || e.prefix !== void 0) && (
|
|
7505
|
-
r
|
|
7506
|
-
}),
|
|
7573
|
+
}, a = new l1(s);
|
|
7574
|
+
return (e.debug !== void 0 || e.prefix !== void 0) && (a.logger = a.logger.clone(e)), ["store", "services", "language"].forEach((r) => {
|
|
7575
|
+
a[r] = this[r];
|
|
7576
|
+
}), a.services = {
|
|
7507
7577
|
...this.services
|
|
7508
|
-
},
|
|
7509
|
-
hasLoadedNamespace:
|
|
7510
|
-
}, n && (
|
|
7578
|
+
}, a.services.utils = {
|
|
7579
|
+
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
7580
|
+
}, n && (a.store = new j1(this.store.data, s), a.services.resourceStore = a.store), a.translator = new m1(a.services, s), a.translator.on("*", function(r) {
|
|
7511
7581
|
for (var g = arguments.length, d = new Array(g > 1 ? g - 1 : 0), l = 1; l < g; l++)
|
|
7512
7582
|
d[l - 1] = arguments[l];
|
|
7513
|
-
|
|
7514
|
-
}),
|
|
7515
|
-
hasLoadedNamespace:
|
|
7516
|
-
},
|
|
7583
|
+
a.emit(r, ...d);
|
|
7584
|
+
}), a.init(s, t), a.translator.options = s, a.translator.backendConnector.services.utils = {
|
|
7585
|
+
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
7586
|
+
}, a;
|
|
7517
7587
|
}
|
|
7518
7588
|
toJSON() {
|
|
7519
7589
|
return {
|
|
@@ -7525,23 +7595,23 @@ class l1 extends k1 {
|
|
|
7525
7595
|
};
|
|
7526
7596
|
}
|
|
7527
7597
|
}
|
|
7528
|
-
const
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
function
|
|
7598
|
+
const S = l1.createInstance();
|
|
7599
|
+
S.createInstance = l1.createInstance;
|
|
7600
|
+
S.createInstance;
|
|
7601
|
+
S.dir;
|
|
7602
|
+
S.init;
|
|
7603
|
+
S.loadResources;
|
|
7604
|
+
S.reloadResources;
|
|
7605
|
+
S.use;
|
|
7606
|
+
S.changeLanguage;
|
|
7607
|
+
S.getFixedT;
|
|
7608
|
+
S.t;
|
|
7609
|
+
S.exists;
|
|
7610
|
+
S.setDefaultNamespace;
|
|
7611
|
+
S.hasLoadedNamespace;
|
|
7612
|
+
S.loadNamespaces;
|
|
7613
|
+
S.loadLanguages;
|
|
7614
|
+
function s0() {
|
|
7545
7615
|
if (console && console.warn) {
|
|
7546
7616
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
7547
7617
|
e[t] = arguments[t];
|
|
@@ -7552,7 +7622,7 @@ const Y1 = {};
|
|
|
7552
7622
|
function b1() {
|
|
7553
7623
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
7554
7624
|
e[t] = arguments[t];
|
|
7555
|
-
z(e[0]) && Y1[e[0]] || (z(e[0]) && (Y1[e[0]] = /* @__PURE__ */ new Date()),
|
|
7625
|
+
z(e[0]) && Y1[e[0]] || (z(e[0]) && (Y1[e[0]] = /* @__PURE__ */ new Date()), s0(...e));
|
|
7556
7626
|
}
|
|
7557
7627
|
const oe = (i, e) => () => {
|
|
7558
7628
|
if (i.isInitialized)
|
|
@@ -7571,24 +7641,24 @@ const oe = (i, e) => () => {
|
|
|
7571
7641
|
z(t) && (t = [t]), t.forEach((s) => {
|
|
7572
7642
|
i.options.ns.indexOf(s) < 0 && i.options.ns.push(s);
|
|
7573
7643
|
}), i.loadLanguages(e, oe(i, n));
|
|
7574
|
-
},
|
|
7644
|
+
}, o0 = function(i, e) {
|
|
7575
7645
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
7576
|
-
const n = e.languages[0], s = e.options ? e.options.fallbackLng : !1,
|
|
7646
|
+
const n = e.languages[0], s = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
|
|
7577
7647
|
if (n.toLowerCase() === "cimode") return !0;
|
|
7578
|
-
const c = (
|
|
7579
|
-
const d = e.services.backendConnector.state[`${
|
|
7648
|
+
const c = (r, g) => {
|
|
7649
|
+
const d = e.services.backendConnector.state[`${r}|${g}`];
|
|
7580
7650
|
return d === -1 || d === 2;
|
|
7581
7651
|
};
|
|
7582
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(n, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(n, i) && (!s || c(
|
|
7583
|
-
},
|
|
7652
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(n, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(n, i) && (!s || c(a, i)));
|
|
7653
|
+
}, r0 = function(i, e) {
|
|
7584
7654
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
7585
7655
|
return !e.languages || !e.languages.length ? (b1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
7586
7656
|
lng: t.lng,
|
|
7587
|
-
precheck: (s,
|
|
7588
|
-
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !
|
|
7657
|
+
precheck: (s, a) => {
|
|
7658
|
+
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !a(s.isLanguageChangingTo, i)) return !1;
|
|
7589
7659
|
}
|
|
7590
|
-
}) :
|
|
7591
|
-
}, z = (i) => typeof i == "string",
|
|
7660
|
+
}) : o0(i, e, t);
|
|
7661
|
+
}, z = (i) => typeof i == "string", a0 = (i) => typeof i == "object" && i !== null, l0 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, h0 = {
|
|
7592
7662
|
"&": "&",
|
|
7593
7663
|
"&": "&",
|
|
7594
7664
|
"<": "<",
|
|
@@ -7609,7 +7679,7 @@ const oe = (i, e) => () => {
|
|
|
7609
7679
|
"…": "…",
|
|
7610
7680
|
"/": "/",
|
|
7611
7681
|
"/": "/"
|
|
7612
|
-
},
|
|
7682
|
+
}, c0 = (i) => h0[i], d0 = (i) => i.replace(l0, c0);
|
|
7613
7683
|
let y1 = {
|
|
7614
7684
|
bindI18n: "languageChanged",
|
|
7615
7685
|
bindI18nStore: "",
|
|
@@ -7618,25 +7688,25 @@ let y1 = {
|
|
|
7618
7688
|
transWrapTextNodes: "",
|
|
7619
7689
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
7620
7690
|
useSuspense: !0,
|
|
7621
|
-
unescape:
|
|
7691
|
+
unescape: d0
|
|
7622
7692
|
};
|
|
7623
|
-
const
|
|
7693
|
+
const g0 = function() {
|
|
7624
7694
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7625
7695
|
y1 = {
|
|
7626
7696
|
...y1,
|
|
7627
7697
|
...i
|
|
7628
7698
|
};
|
|
7629
|
-
},
|
|
7699
|
+
}, u0 = () => y1;
|
|
7630
7700
|
let re;
|
|
7631
|
-
const
|
|
7701
|
+
const C0 = (i) => {
|
|
7632
7702
|
re = i;
|
|
7633
|
-
},
|
|
7703
|
+
}, p0 = () => re, f0 = {
|
|
7634
7704
|
type: "3rdParty",
|
|
7635
7705
|
init(i) {
|
|
7636
|
-
|
|
7706
|
+
g0(i.options.react), C0(i);
|
|
7637
7707
|
}
|
|
7638
|
-
},
|
|
7639
|
-
class
|
|
7708
|
+
}, m0 = t1();
|
|
7709
|
+
class w0 {
|
|
7640
7710
|
constructor() {
|
|
7641
7711
|
I1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
|
7642
7712
|
this.usedNamespaces = {};
|
|
@@ -7647,100 +7717,100 @@ class fi {
|
|
|
7647
7717
|
});
|
|
7648
7718
|
}
|
|
7649
7719
|
}
|
|
7650
|
-
const
|
|
7720
|
+
const k0 = (i, e) => {
|
|
7651
7721
|
const t = J();
|
|
7652
|
-
return
|
|
7722
|
+
return O(() => {
|
|
7653
7723
|
t.current = i;
|
|
7654
7724
|
}, [i, e]), t.current;
|
|
7655
|
-
}, ae = (i, e, t, n) => i.getFixedT(e, t, n),
|
|
7725
|
+
}, ae = (i, e, t, n) => i.getFixedT(e, t, n), L0 = (i, e, t, n) => j(ae(i, e, t, n), [i, e, t, n]), v0 = function(i) {
|
|
7656
7726
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7657
7727
|
const {
|
|
7658
7728
|
i18n: t
|
|
7659
7729
|
} = e, {
|
|
7660
7730
|
i18n: n,
|
|
7661
7731
|
defaultNS: s
|
|
7662
|
-
} = Q(
|
|
7663
|
-
if (
|
|
7732
|
+
} = Q(m0) || {}, a = t || n || p0();
|
|
7733
|
+
if (a && !a.reportNamespaces && (a.reportNamespaces = new w0()), !a) {
|
|
7664
7734
|
b1("You will need to pass in an i18next instance by using initReactI18next");
|
|
7665
|
-
const f = (v, N) => z(N) ? N :
|
|
7735
|
+
const f = (v, N) => z(N) ? N : a0(N) && z(N.defaultValue) ? N.defaultValue : Array.isArray(v) ? v[v.length - 1] : v, R = [f, {}, !1];
|
|
7666
7736
|
return R.t = f, R.i18n = {}, R.ready = !1, R;
|
|
7667
7737
|
}
|
|
7668
|
-
|
|
7738
|
+
a.options.react && a.options.react.wait !== void 0 && b1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
7669
7739
|
const c = {
|
|
7670
|
-
...
|
|
7671
|
-
...
|
|
7740
|
+
...u0(),
|
|
7741
|
+
...a.options.react,
|
|
7672
7742
|
...e
|
|
7673
7743
|
}, {
|
|
7674
|
-
useSuspense:
|
|
7744
|
+
useSuspense: r,
|
|
7675
7745
|
keyPrefix: g
|
|
7676
7746
|
} = c;
|
|
7677
7747
|
let d = i;
|
|
7678
|
-
d = z(d) ? [d] : d || ["translation"],
|
|
7679
|
-
const l = (
|
|
7748
|
+
d = z(d) ? [d] : d || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(d);
|
|
7749
|
+
const l = (a.isInitialized || a.initializedStoreOnce) && d.every((f) => r0(f, a, c)), h = L0(a, e.lng || null, c.nsMode === "fallback" ? d : d[0], g), u = () => h, p = () => ae(a, e.lng || null, c.nsMode === "fallback" ? d : d[0], g), [w, L] = V(u);
|
|
7680
7750
|
let m = d.join();
|
|
7681
7751
|
e.lng && (m = `${e.lng}${m}`);
|
|
7682
|
-
const E =
|
|
7683
|
-
|
|
7752
|
+
const E = k0(m), M = J(!0);
|
|
7753
|
+
O(() => {
|
|
7684
7754
|
const {
|
|
7685
7755
|
bindI18n: f,
|
|
7686
7756
|
bindI18nStore: R
|
|
7687
7757
|
} = c;
|
|
7688
|
-
M.current = !0, !l && !
|
|
7758
|
+
M.current = !0, !l && !r && (e.lng ? z1(a, e.lng, d, () => {
|
|
7689
7759
|
M.current && L(p);
|
|
7690
|
-
}) : U1(
|
|
7760
|
+
}) : U1(a, d, () => {
|
|
7691
7761
|
M.current && L(p);
|
|
7692
7762
|
})), l && E && E !== m && M.current && L(p);
|
|
7693
7763
|
const v = () => {
|
|
7694
7764
|
M.current && L(p);
|
|
7695
7765
|
};
|
|
7696
|
-
return f &&
|
|
7697
|
-
M.current = !1, f &&
|
|
7766
|
+
return f && a && a.on(f, v), R && a && a.store.on(R, v), () => {
|
|
7767
|
+
M.current = !1, f && a && f.split(" ").forEach((N) => a.off(N, v)), R && a && R.split(" ").forEach((N) => a.store.off(N, v));
|
|
7698
7768
|
};
|
|
7699
|
-
}, [
|
|
7769
|
+
}, [a, m]), O(() => {
|
|
7700
7770
|
M.current && l && L(u);
|
|
7701
|
-
}, [
|
|
7702
|
-
const H = [w,
|
|
7703
|
-
if (H.t = w, H.i18n =
|
|
7771
|
+
}, [a, g, l]);
|
|
7772
|
+
const H = [w, a, l];
|
|
7773
|
+
if (H.t = w, H.i18n = a, H.ready = l, l || !l && !r) return H;
|
|
7704
7774
|
throw new Promise((f) => {
|
|
7705
|
-
e.lng ? z1(
|
|
7775
|
+
e.lng ? z1(a, e.lng, d, () => f()) : U1(a, d, () => f());
|
|
7706
7776
|
});
|
|
7707
|
-
},
|
|
7708
|
-
placeholder:
|
|
7709
|
-
},
|
|
7710
|
-
placeholder:
|
|
7777
|
+
}, N0 = "Country", x0 = {
|
|
7778
|
+
placeholder: N0
|
|
7779
|
+
}, R0 = "Страна", M0 = {
|
|
7780
|
+
placeholder: R0
|
|
7711
7781
|
};
|
|
7712
|
-
|
|
7782
|
+
S.use(f0).init({
|
|
7713
7783
|
defaultNS: "common",
|
|
7714
7784
|
lng: "en",
|
|
7715
7785
|
resources: {
|
|
7716
7786
|
en: {
|
|
7717
|
-
common:
|
|
7787
|
+
common: x0
|
|
7718
7788
|
},
|
|
7719
7789
|
ru: {
|
|
7720
|
-
common:
|
|
7790
|
+
common: M0
|
|
7721
7791
|
}
|
|
7722
7792
|
}
|
|
7723
7793
|
});
|
|
7724
|
-
const
|
|
7794
|
+
const O0 = w1(
|
|
7725
7795
|
({
|
|
7726
7796
|
width: i,
|
|
7727
7797
|
selectedCity: e,
|
|
7728
7798
|
setSelectedCity: t,
|
|
7729
7799
|
onChange: n,
|
|
7730
7800
|
value: s,
|
|
7731
|
-
id:
|
|
7801
|
+
id: a,
|
|
7732
7802
|
disabled: c,
|
|
7733
|
-
required:
|
|
7803
|
+
required: r,
|
|
7734
7804
|
clearable: g,
|
|
7735
7805
|
error: d
|
|
7736
7806
|
}, l) => {
|
|
7737
|
-
const [h, u] =
|
|
7807
|
+
const [h, u] = V([]), [p, w] = V([]), [L, m] = V(!1), { locale: E, axiosPeople: M } = Q(Ce);
|
|
7738
7808
|
if (!M)
|
|
7739
7809
|
throw new Error(
|
|
7740
7810
|
`CountrySelect requires "axiosPeople" to fetch counties.
|
|
7741
7811
|
Please provide it via SNMTUiContext.`
|
|
7742
7812
|
);
|
|
7743
|
-
const { t: H } =
|
|
7813
|
+
const { t: H } = v0("common", { lng: E }), f = j(async () => {
|
|
7744
7814
|
m(!0);
|
|
7745
7815
|
try {
|
|
7746
7816
|
const v = await M.post("v1/countries/search");
|
|
@@ -7751,22 +7821,22 @@ const Ii = w1(
|
|
|
7751
7821
|
m(!1);
|
|
7752
7822
|
}
|
|
7753
7823
|
}, [M]);
|
|
7754
|
-
|
|
7824
|
+
O(() => {
|
|
7755
7825
|
f();
|
|
7756
|
-
}, []),
|
|
7826
|
+
}, []), O(() => {
|
|
7757
7827
|
if (e) {
|
|
7758
7828
|
const v = e.split("-")[1], N = p.filter(
|
|
7759
|
-
(
|
|
7829
|
+
(T) => T.name.includes(v)
|
|
7760
7830
|
);
|
|
7761
7831
|
if (N.length) {
|
|
7762
|
-
const
|
|
7832
|
+
const T = N.map((W) => ({
|
|
7763
7833
|
label: W.name,
|
|
7764
7834
|
value: W.name
|
|
7765
7835
|
}));
|
|
7766
|
-
n(
|
|
7836
|
+
n(T[0].value);
|
|
7767
7837
|
}
|
|
7768
7838
|
}
|
|
7769
|
-
}, [e, p, n]),
|
|
7839
|
+
}, [e, p, n]), O(() => {
|
|
7770
7840
|
const v = p.map((N) => ({
|
|
7771
7841
|
label: N.name,
|
|
7772
7842
|
value: N.name
|
|
@@ -7777,9 +7847,9 @@ const Ii = w1(
|
|
|
7777
7847
|
v === null ? (n(""), t && t("")) : (n(v), t && t(""));
|
|
7778
7848
|
};
|
|
7779
7849
|
return /* @__PURE__ */ o("div", { className: "snmt-country-select", children: /* @__PURE__ */ o(
|
|
7780
|
-
|
|
7850
|
+
S5,
|
|
7781
7851
|
{
|
|
7782
|
-
id:
|
|
7852
|
+
id: a,
|
|
7783
7853
|
width: i,
|
|
7784
7854
|
placeholder: H("placeholder"),
|
|
7785
7855
|
value: s,
|
|
@@ -7788,7 +7858,7 @@ const Ii = w1(
|
|
|
7788
7858
|
options: h,
|
|
7789
7859
|
disabled: c,
|
|
7790
7860
|
isLoading: L,
|
|
7791
|
-
required:
|
|
7861
|
+
required: r,
|
|
7792
7862
|
clearable: g,
|
|
7793
7863
|
error: d
|
|
7794
7864
|
}
|
|
@@ -7796,5 +7866,5 @@ const Ii = w1(
|
|
|
7796
7866
|
}
|
|
7797
7867
|
);
|
|
7798
7868
|
export {
|
|
7799
|
-
|
|
7869
|
+
O0 as CountrySelect
|
|
7800
7870
|
};
|