@snmt-react-ui/country-select 2.6.19 → 2.6.21
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 +896 -782
- 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 pe } from "@snmt-react-ui/core";
|
|
7
7
|
import { Select as fe, Flex as me, Avatar as we, Checkbox as ke, Tooltip as J1, Typography as Q1, Tag as Le, Popover as ve } from "antd";
|
|
8
|
-
import { createContext as t1, forwardRef as w1, useRef as J, useImperativeHandle as q1, useState as O, useEffect as S, useCallback as
|
|
8
|
+
import { createContext as t1, forwardRef as w1, useRef as J, useImperativeHandle as q1, useState as O, useEffect as S, useCallback as j, useContext as Q } from "react";
|
|
9
9
|
var Ne = Object.defineProperty, xe = (i, e, t) => e in i ? Ne(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Re = (i, e, t) => xe(i, e + "", t), Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
10
|
function be() {
|
|
11
11
|
if (console && console.warn) {
|
|
@@ -39,14 +39,14 @@ const X1 = (i, e) => () => {
|
|
|
39
39
|
}), i.loadLanguages(e, X1(i, n));
|
|
40
40
|
}, ye = 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(
|
|
49
|
-
},
|
|
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
|
+
}, _e = 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, {
|
|
52
52
|
lng: t.lng,
|
|
@@ -54,7 +54,7 @@ const X1 = (i, e) => () => {
|
|
|
54
54
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !s(n.isLanguageChangingTo, i)) return !1;
|
|
55
55
|
}
|
|
56
56
|
}) : ye(i, e, t);
|
|
57
|
-
}, U = (i) => typeof i == "string",
|
|
57
|
+
}, U = (i) => typeof i == "string", Ee = (i) => typeof i == "object" && i !== null, He = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ie = {
|
|
58
58
|
"&": "&",
|
|
59
59
|
"&": "&",
|
|
60
60
|
"<": "<",
|
|
@@ -88,8 +88,8 @@ let Ve = {
|
|
|
88
88
|
};
|
|
89
89
|
const Ae = () => Ve;
|
|
90
90
|
let Te;
|
|
91
|
-
const
|
|
92
|
-
class
|
|
91
|
+
const Ze = () => Te, De = t1();
|
|
92
|
+
class Be {
|
|
93
93
|
constructor() {
|
|
94
94
|
Re(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
|
95
95
|
}
|
|
@@ -99,62 +99,62 @@ class De {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
const
|
|
102
|
+
const je = (i, e) => {
|
|
103
103
|
const t = J();
|
|
104
104
|
return S(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
|
-
}, ee = (i, e, t, n) => i.getFixedT(e, t, n),
|
|
107
|
+
}, ee = (i, e, t, n) => i.getFixedT(e, t, n), Ge = (i, e, t, n) => j(ee(i, e, t, n), [i, e, t, n]), We = function(i) {
|
|
108
108
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
109
109
|
const {
|
|
110
110
|
i18n: t
|
|
111
111
|
} = e, {
|
|
112
112
|
i18n: n,
|
|
113
113
|
defaultNS: s
|
|
114
|
-
} = Q(
|
|
115
|
-
if (
|
|
114
|
+
} = Q(De) || {}, a = t || n || Ze();
|
|
115
|
+
if (a && !a.reportNamespaces && (a.reportNamespaces = new Be()), !a) {
|
|
116
116
|
R1("You will need to pass in an i18next instance by using initReactI18next");
|
|
117
|
-
const f = (v, N) => U(N) ? N :
|
|
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
122
|
...Ae(),
|
|
123
|
-
...
|
|
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) => _e(f, a, c)), h = Ge(a, e.lng || null, c.nsMode === "fallback" ? d : d[0], g), u = () => h, p = () => ee(a, e.lng || null, c.nsMode === "fallback" ? d : d[0], g), [w, L] = O(u);
|
|
132
132
|
let m = d.join();
|
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
|
134
|
-
const
|
|
134
|
+
const _ = je(m), M = J(!0);
|
|
135
135
|
S(() => {
|
|
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 ? V1(a, e.lng, d, () => {
|
|
141
141
|
M.current && L(p);
|
|
142
|
-
}) : S1(
|
|
142
|
+
}) : S1(a, d, () => {
|
|
143
143
|
M.current && L(p);
|
|
144
|
-
})), l &&
|
|
144
|
+
})), l && _ && _ !== 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]), S(() => {
|
|
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 ? V1(
|
|
157
|
+
e.lng ? V1(a, e.lng, d, () => f()) : S1(a, d, () => f());
|
|
158
158
|
});
|
|
159
159
|
}, o1 = ({
|
|
160
160
|
children: i,
|
|
@@ -162,9 +162,9 @@ const Ze = (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
|
me,
|
|
170
170
|
{
|
|
@@ -173,9 +173,9 @@ const Ze = (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
|
), Ke = ({ shape: i = "circle", size: e = 32, children: t, ...n }) => {
|
|
@@ -192,25 +192,25 @@ const Ze = (i, e) => {
|
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
194
|
};
|
|
195
|
-
var
|
|
196
|
-
const
|
|
195
|
+
var B = /* @__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))(B || {});
|
|
196
|
+
const _1 = t1({
|
|
197
197
|
locale: "en",
|
|
198
198
|
theme: "light"
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_1.Provider;
|
|
201
201
|
const Pe = ({
|
|
202
202
|
checked: i = !0,
|
|
203
203
|
indeterminate: e = !1,
|
|
204
204
|
children: t,
|
|
205
205
|
onChange: n,
|
|
206
206
|
disabled: s = !1,
|
|
207
|
-
disableUncheck:
|
|
207
|
+
disableUncheck: a = !1
|
|
208
208
|
}) => {
|
|
209
|
-
const [c,
|
|
209
|
+
const [c, r] = O(i), [g, d] = O(e);
|
|
210
210
|
S(() => {
|
|
211
|
-
|
|
211
|
+
r(i), d(e);
|
|
212
212
|
}, [i, e]);
|
|
213
|
-
const { theme: l } = Q(
|
|
213
|
+
const { theme: l } = Q(_1);
|
|
214
214
|
return /* @__PURE__ */ o(
|
|
215
215
|
ke,
|
|
216
216
|
{
|
|
@@ -218,7 +218,7 @@ const Pe = ({
|
|
|
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
|
|
@@ -259,28 +259,40 @@ const $e = ({
|
|
|
259
259
|
)
|
|
260
260
|
}
|
|
261
261
|
), Fe = ({
|
|
262
|
-
width: i =
|
|
263
|
-
height: e =
|
|
264
|
-
color: t =
|
|
262
|
+
width: i = 20,
|
|
263
|
+
height: e = 20,
|
|
264
|
+
color: t = b.GREY_DARK_5,
|
|
265
265
|
className: n,
|
|
266
266
|
onClick: s
|
|
267
267
|
}) => /* @__PURE__ */ C(
|
|
268
268
|
"svg",
|
|
269
269
|
{
|
|
270
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
271
270
|
width: i,
|
|
272
271
|
height: e,
|
|
273
272
|
className: n,
|
|
274
273
|
onClick: s,
|
|
275
|
-
viewBox: "0 0
|
|
274
|
+
viewBox: "0 0 24 25",
|
|
276
275
|
fill: "none",
|
|
276
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
277
277
|
children: [
|
|
278
|
-
/* @__PURE__ */ o("circle", { cx: "8", cy: "8", r: "7.4", stroke: t, strokeWidth: "1.2" }),
|
|
279
|
-
/* @__PURE__ */ o("path", { d: "M7 6.5H9V12.5335H7V6.5Z", fill: t }),
|
|
280
278
|
/* @__PURE__ */ o(
|
|
281
279
|
"path",
|
|
282
280
|
{
|
|
283
|
-
d: "
|
|
281
|
+
d: "M11.25 17L11.25 12C11.25 11.5858 11.5858 11.25 12 11.25C12.4142 11.25 12.75 11.5858 12.75 12V17C12.75 17.4142 12.4142 17.75 12 17.75C11.5858 17.75 11.25 17.4142 11.25 17Z",
|
|
282
|
+
fill: t
|
|
283
|
+
}
|
|
284
|
+
),
|
|
285
|
+
/* @__PURE__ */ o(
|
|
286
|
+
"path",
|
|
287
|
+
{
|
|
288
|
+
d: "M11.4523 7.49701C11.7294 7.18913 12.204 7.16426 12.5118 7.44135C12.8197 7.71844 12.8446 8.19304 12.5675 8.50092L12.5577 8.51166C12.2806 8.81954 11.806 8.84442 11.4982 8.56732C11.1904 8.29021 11.1655 7.81558 11.4425 7.50775L11.4523 7.49701Z",
|
|
289
|
+
fill: t
|
|
290
|
+
}
|
|
291
|
+
),
|
|
292
|
+
/* @__PURE__ */ o(
|
|
293
|
+
"path",
|
|
294
|
+
{
|
|
295
|
+
d: "M21.25 12.5C21.25 7.39137 17.1086 3.25 12 3.25C6.89137 3.25 2.75 7.39137 2.75 12.5C2.75 17.6086 6.89137 21.75 12 21.75C17.1086 21.75 21.25 17.6086 21.25 12.5ZM22.75 12.5C22.75 18.4371 17.9371 23.25 12 23.25C6.06294 23.25 1.25 18.4371 1.25 12.5C1.25 6.56294 6.06294 1.75 12 1.75C17.9371 1.75 22.75 6.56294 22.75 12.5Z",
|
|
284
296
|
fill: t
|
|
285
297
|
}
|
|
286
298
|
)
|
|
@@ -532,7 +544,7 @@ const $e = ({
|
|
|
532
544
|
/* @__PURE__ */ o("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
|
533
545
|
]
|
|
534
546
|
}
|
|
535
|
-
),
|
|
547
|
+
), e2 = ({
|
|
536
548
|
width: i = 16,
|
|
537
549
|
height: e = 12,
|
|
538
550
|
color: t = "#001E52",
|
|
@@ -581,41 +593,47 @@ const $e = ({
|
|
|
581
593
|
)
|
|
582
594
|
] })
|
|
583
595
|
}
|
|
584
|
-
),
|
|
585
|
-
width: i =
|
|
586
|
-
height: e =
|
|
587
|
-
color: t =
|
|
596
|
+
), t2 = ({
|
|
597
|
+
width: i = 20,
|
|
598
|
+
height: e = 20,
|
|
599
|
+
color: t = b.GREY_DARK_5,
|
|
588
600
|
className: n,
|
|
589
601
|
onClick: s
|
|
590
602
|
}) => /* @__PURE__ */ C(
|
|
591
603
|
"svg",
|
|
592
604
|
{
|
|
593
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
594
605
|
width: i,
|
|
595
606
|
height: e,
|
|
596
607
|
className: n,
|
|
597
608
|
onClick: s,
|
|
598
|
-
viewBox: "0 0
|
|
609
|
+
viewBox: "0 0 24 25",
|
|
599
610
|
fill: "none",
|
|
611
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
600
612
|
children: [
|
|
601
|
-
/* @__PURE__ */ o("circle", { cx: "8", cy: "8", r: "7.27273", stroke: t, strokeWidth: "1.45455" }),
|
|
602
613
|
/* @__PURE__ */ o(
|
|
603
614
|
"path",
|
|
604
615
|
{
|
|
605
|
-
d: "
|
|
616
|
+
d: "M11.25 13.5L11.25 7.5C11.25 7.08579 11.5858 6.75 12 6.75C12.4142 6.75 12.75 7.08579 12.75 7.5L12.75 13.5C12.75 13.9142 12.4142 14.25 12 14.25C11.5858 14.25 11.25 13.9142 11.25 13.5Z",
|
|
606
617
|
fill: t
|
|
607
618
|
}
|
|
608
619
|
),
|
|
609
620
|
/* @__PURE__ */ o(
|
|
610
621
|
"path",
|
|
611
622
|
{
|
|
612
|
-
d: "
|
|
623
|
+
d: "M11.4523 16.997C11.7294 16.6891 12.204 16.6643 12.5118 16.9413C12.8197 17.2184 12.8446 17.693 12.5675 18.0009L12.5577 18.0117C12.2806 18.3195 11.806 18.3444 11.4982 18.0673C11.1904 17.7902 11.1655 17.3156 11.4425 17.0078L11.4523 16.997Z",
|
|
624
|
+
fill: t
|
|
625
|
+
}
|
|
626
|
+
),
|
|
627
|
+
/* @__PURE__ */ o(
|
|
628
|
+
"path",
|
|
629
|
+
{
|
|
630
|
+
d: "M21.25 12.5C21.25 7.39137 17.1086 3.25 12 3.25C6.89137 3.25 2.75 7.39137 2.75 12.5C2.75 17.6086 6.89137 21.75 12 21.75C17.1086 21.75 21.25 17.6086 21.25 12.5ZM22.75 12.5C22.75 18.4371 17.9371 23.25 12 23.25C6.06294 23.25 1.25 18.4371 1.25 12.5C1.25 6.56294 6.06294 1.75 12 1.75C17.9371 1.75 22.75 6.56294 22.75 12.5Z",
|
|
613
631
|
fill: t
|
|
614
632
|
}
|
|
615
633
|
)
|
|
616
634
|
]
|
|
617
635
|
}
|
|
618
|
-
),
|
|
636
|
+
), i2 = ({
|
|
619
637
|
width: i = 20,
|
|
620
638
|
height: e = 20,
|
|
621
639
|
color: t = "#001E52",
|
|
@@ -662,7 +680,7 @@ const $e = ({
|
|
|
662
680
|
)
|
|
663
681
|
]
|
|
664
682
|
}
|
|
665
|
-
),
|
|
683
|
+
), n2 = ({
|
|
666
684
|
width: i = 20,
|
|
667
685
|
height: e = 20,
|
|
668
686
|
color: t = "#001E52",
|
|
@@ -695,7 +713,7 @@ const $e = ({
|
|
|
695
713
|
)
|
|
696
714
|
]
|
|
697
715
|
}
|
|
698
|
-
),
|
|
716
|
+
), s2 = ({
|
|
699
717
|
width: i = 20,
|
|
700
718
|
height: e = 20,
|
|
701
719
|
color: t = "#001E52",
|
|
@@ -742,7 +760,7 @@ const $e = ({
|
|
|
742
760
|
)
|
|
743
761
|
]
|
|
744
762
|
}
|
|
745
|
-
),
|
|
763
|
+
), o2 = ({
|
|
746
764
|
width: i = 20,
|
|
747
765
|
height: e = 20,
|
|
748
766
|
color: t = "#001E52",
|
|
@@ -775,7 +793,7 @@ const $e = ({
|
|
|
775
793
|
)
|
|
776
794
|
]
|
|
777
795
|
}
|
|
778
|
-
),
|
|
796
|
+
), r2 = ({
|
|
779
797
|
width: i = 18,
|
|
780
798
|
height: e = 16,
|
|
781
799
|
color: t = "#001E52",
|
|
@@ -814,7 +832,7 @@ const $e = ({
|
|
|
814
832
|
)
|
|
815
833
|
]
|
|
816
834
|
}
|
|
817
|
-
),
|
|
835
|
+
), a2 = ({
|
|
818
836
|
width: i = 20,
|
|
819
837
|
height: e = 20,
|
|
820
838
|
color: t = "#001E52",
|
|
@@ -847,7 +865,7 @@ const $e = ({
|
|
|
847
865
|
)
|
|
848
866
|
]
|
|
849
867
|
}
|
|
850
|
-
),
|
|
868
|
+
), l2 = ({
|
|
851
869
|
width: i = 20,
|
|
852
870
|
height: e = 20,
|
|
853
871
|
color: t = "#001E52",
|
|
@@ -871,7 +889,7 @@ const $e = ({
|
|
|
871
889
|
}
|
|
872
890
|
)
|
|
873
891
|
}
|
|
874
|
-
),
|
|
892
|
+
), h2 = ({
|
|
875
893
|
width: i = 20,
|
|
876
894
|
height: e = 20,
|
|
877
895
|
color: t = "#001E52",
|
|
@@ -904,7 +922,7 @@ const $e = ({
|
|
|
904
922
|
)
|
|
905
923
|
]
|
|
906
924
|
}
|
|
907
|
-
),
|
|
925
|
+
), c2 = ({
|
|
908
926
|
width: i = 20,
|
|
909
927
|
height: e = 23,
|
|
910
928
|
color: t = "#001E52",
|
|
@@ -965,7 +983,7 @@ const $e = ({
|
|
|
965
983
|
)
|
|
966
984
|
]
|
|
967
985
|
}
|
|
968
|
-
),
|
|
986
|
+
), d2 = ({
|
|
969
987
|
width: i = 14,
|
|
970
988
|
height: e = 14,
|
|
971
989
|
color: t = "#10B981",
|
|
@@ -994,7 +1012,40 @@ const $e = ({
|
|
|
994
1012
|
)
|
|
995
1013
|
]
|
|
996
1014
|
}
|
|
997
|
-
),
|
|
1015
|
+
), g2 = ({
|
|
1016
|
+
width: i = 20,
|
|
1017
|
+
height: e = 20,
|
|
1018
|
+
color: t = b.GREY_DARK_5,
|
|
1019
|
+
className: n,
|
|
1020
|
+
onClick: s
|
|
1021
|
+
}) => /* @__PURE__ */ C(
|
|
1022
|
+
"svg",
|
|
1023
|
+
{
|
|
1024
|
+
width: i,
|
|
1025
|
+
height: e,
|
|
1026
|
+
className: n,
|
|
1027
|
+
onClick: s,
|
|
1028
|
+
viewBox: "0 0 24 25",
|
|
1029
|
+
fill: "none",
|
|
1030
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1031
|
+
children: [
|
|
1032
|
+
/* @__PURE__ */ o(
|
|
1033
|
+
"path",
|
|
1034
|
+
{
|
|
1035
|
+
d: "M6.46978 13.5303C6.17689 13.2374 6.17689 12.7626 6.46978 12.4697C6.76268 12.1768 7.23755 12.1768 7.53044 12.4697L9.99979 14.939L16.4694 8.46941C16.7622 8.17662 17.2371 8.17683 17.5301 8.46941C17.823 8.7623 17.823 9.23717 17.5301 9.53007L10.5301 16.53C10.2372 16.8229 9.76236 16.8229 9.46946 16.53L6.46978 13.5303Z",
|
|
1036
|
+
fill: t
|
|
1037
|
+
}
|
|
1038
|
+
),
|
|
1039
|
+
/* @__PURE__ */ o(
|
|
1040
|
+
"path",
|
|
1041
|
+
{
|
|
1042
|
+
d: "M21.25 12.5C21.25 7.39137 17.1086 3.25 12 3.25C6.89137 3.25 2.75 7.39137 2.75 12.5C2.75 17.6086 6.89137 21.75 12 21.75C17.1086 21.75 21.25 17.6086 21.25 12.5ZM22.75 12.5C22.75 18.4371 17.9371 23.25 12 23.25C6.06294 23.25 1.25 18.4371 1.25 12.5C1.25 6.56294 6.06294 1.75 12 1.75C17.9371 1.75 22.75 6.56294 22.75 12.5Z",
|
|
1043
|
+
fill: t
|
|
1044
|
+
}
|
|
1045
|
+
)
|
|
1046
|
+
]
|
|
1047
|
+
}
|
|
1048
|
+
), u2 = ({
|
|
998
1049
|
width: i = 10,
|
|
999
1050
|
height: e = 10,
|
|
1000
1051
|
color: t = "#88A4FF",
|
|
@@ -1042,7 +1093,7 @@ const $e = ({
|
|
|
1042
1093
|
)
|
|
1043
1094
|
]
|
|
1044
1095
|
}
|
|
1045
|
-
),
|
|
1096
|
+
), C2 = ({
|
|
1046
1097
|
width: i = 14,
|
|
1047
1098
|
height: e = 14,
|
|
1048
1099
|
color: t = "#8E8E93",
|
|
@@ -1070,7 +1121,7 @@ const $e = ({
|
|
|
1070
1121
|
)
|
|
1071
1122
|
]
|
|
1072
1123
|
}
|
|
1073
|
-
),
|
|
1124
|
+
), p2 = ({
|
|
1074
1125
|
width: i = 14,
|
|
1075
1126
|
height: e = 14,
|
|
1076
1127
|
color: t = "#FFB020",
|
|
@@ -1104,7 +1155,7 @@ const $e = ({
|
|
|
1104
1155
|
)
|
|
1105
1156
|
]
|
|
1106
1157
|
}
|
|
1107
|
-
),
|
|
1158
|
+
), f2 = ({
|
|
1108
1159
|
width: i = 14,
|
|
1109
1160
|
height: e = 14,
|
|
1110
1161
|
color: t = "#D0421B",
|
|
@@ -1152,7 +1203,7 @@ const $e = ({
|
|
|
1152
1203
|
)
|
|
1153
1204
|
]
|
|
1154
1205
|
}
|
|
1155
|
-
),
|
|
1206
|
+
), m2 = ({
|
|
1156
1207
|
width: i = 20,
|
|
1157
1208
|
height: e = 20,
|
|
1158
1209
|
color: t = "#070739",
|
|
@@ -1182,7 +1233,7 @@ const $e = ({
|
|
|
1182
1233
|
/* @__PURE__ */ o("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
1183
1234
|
]
|
|
1184
1235
|
}
|
|
1185
|
-
),
|
|
1236
|
+
), w2 = ({
|
|
1186
1237
|
width: i = 20,
|
|
1187
1238
|
height: e = 20,
|
|
1188
1239
|
color: t = "#070739",
|
|
@@ -1220,7 +1271,7 @@ const $e = ({
|
|
|
1220
1271
|
)
|
|
1221
1272
|
]
|
|
1222
1273
|
}
|
|
1223
|
-
),
|
|
1274
|
+
), k2 = ({
|
|
1224
1275
|
width: i = 9,
|
|
1225
1276
|
height: e = 5,
|
|
1226
1277
|
color: t = "#001E52",
|
|
@@ -1246,7 +1297,7 @@ const $e = ({
|
|
|
1246
1297
|
}
|
|
1247
1298
|
)
|
|
1248
1299
|
}
|
|
1249
|
-
),
|
|
1300
|
+
), L2 = ({
|
|
1250
1301
|
width: i = 20,
|
|
1251
1302
|
height: e = 20,
|
|
1252
1303
|
color: t = "#F2F2F7",
|
|
@@ -1275,7 +1326,7 @@ const $e = ({
|
|
|
1275
1326
|
)
|
|
1276
1327
|
]
|
|
1277
1328
|
}
|
|
1278
|
-
),
|
|
1329
|
+
), v2 = ({
|
|
1279
1330
|
width: i = 20,
|
|
1280
1331
|
height: e = 20,
|
|
1281
1332
|
color: t = "#004ED7",
|
|
@@ -1304,7 +1355,7 @@ const $e = ({
|
|
|
1304
1355
|
)
|
|
1305
1356
|
]
|
|
1306
1357
|
}
|
|
1307
|
-
),
|
|
1358
|
+
), N2 = ({
|
|
1308
1359
|
width: i = 10,
|
|
1309
1360
|
height: e = 10,
|
|
1310
1361
|
color: t = "#001E52",
|
|
@@ -1333,7 +1384,7 @@ const $e = ({
|
|
|
1333
1384
|
)
|
|
1334
1385
|
]
|
|
1335
1386
|
}
|
|
1336
|
-
),
|
|
1387
|
+
), x2 = ({
|
|
1337
1388
|
width: i = 10,
|
|
1338
1389
|
height: e = 10,
|
|
1339
1390
|
color: t = "#001E52",
|
|
@@ -1370,7 +1421,7 @@ const $e = ({
|
|
|
1370
1421
|
)
|
|
1371
1422
|
]
|
|
1372
1423
|
}
|
|
1373
|
-
),
|
|
1424
|
+
), R2 = ({
|
|
1374
1425
|
className: i,
|
|
1375
1426
|
color: e = b.GREY_DARK_5,
|
|
1376
1427
|
height: t = 24,
|
|
@@ -1409,7 +1460,7 @@ const $e = ({
|
|
|
1409
1460
|
)
|
|
1410
1461
|
]
|
|
1411
1462
|
}
|
|
1412
|
-
),
|
|
1463
|
+
), M2 = ({
|
|
1413
1464
|
className: i,
|
|
1414
1465
|
color: e = b.GREY_DARK_5,
|
|
1415
1466
|
height: t = 20,
|
|
@@ -1436,7 +1487,7 @@ const $e = ({
|
|
|
1436
1487
|
}
|
|
1437
1488
|
)
|
|
1438
1489
|
}
|
|
1439
|
-
),
|
|
1490
|
+
), b2 = ({
|
|
1440
1491
|
className: i,
|
|
1441
1492
|
color: e = b.GREY_DARK_5,
|
|
1442
1493
|
height: t = 20,
|
|
@@ -1463,7 +1514,7 @@ const $e = ({
|
|
|
1463
1514
|
}
|
|
1464
1515
|
)
|
|
1465
1516
|
}
|
|
1466
|
-
),
|
|
1517
|
+
), y2 = ({
|
|
1467
1518
|
className: i,
|
|
1468
1519
|
color: e = b.GREY_DARK_5,
|
|
1469
1520
|
height: t = 5,
|
|
@@ -1487,7 +1538,7 @@ const $e = ({
|
|
|
1487
1538
|
}
|
|
1488
1539
|
)
|
|
1489
1540
|
}
|
|
1490
|
-
),
|
|
1541
|
+
), _2 = ({
|
|
1491
1542
|
className: i,
|
|
1492
1543
|
color: e = b.GREY_DARK_5,
|
|
1493
1544
|
height: t = 5,
|
|
@@ -1512,7 +1563,7 @@ const $e = ({
|
|
|
1512
1563
|
}
|
|
1513
1564
|
)
|
|
1514
1565
|
}
|
|
1515
|
-
),
|
|
1566
|
+
), E2 = ({
|
|
1516
1567
|
className: i,
|
|
1517
1568
|
color: e = b.GREY_DARK_5,
|
|
1518
1569
|
height: t = 24,
|
|
@@ -1551,7 +1602,7 @@ const $e = ({
|
|
|
1551
1602
|
)
|
|
1552
1603
|
]
|
|
1553
1604
|
}
|
|
1554
|
-
),
|
|
1605
|
+
), H2 = ({
|
|
1555
1606
|
className: i,
|
|
1556
1607
|
color: e = b.GREY_DARK_5,
|
|
1557
1608
|
height: t = 24,
|
|
@@ -1590,7 +1641,7 @@ const $e = ({
|
|
|
1590
1641
|
)
|
|
1591
1642
|
]
|
|
1592
1643
|
}
|
|
1593
|
-
),
|
|
1644
|
+
), I2 = ({
|
|
1594
1645
|
className: i,
|
|
1595
1646
|
color: e = b.GREY_DARK_5,
|
|
1596
1647
|
height: t = 24,
|
|
@@ -1617,7 +1668,7 @@ const $e = ({
|
|
|
1617
1668
|
}
|
|
1618
1669
|
)
|
|
1619
1670
|
}
|
|
1620
|
-
),
|
|
1671
|
+
), O2 = ({
|
|
1621
1672
|
className: i,
|
|
1622
1673
|
color: e = b.GREY_DARK_5,
|
|
1623
1674
|
height: t = 24,
|
|
@@ -1676,7 +1727,7 @@ const $e = ({
|
|
|
1676
1727
|
)
|
|
1677
1728
|
]
|
|
1678
1729
|
}
|
|
1679
|
-
),
|
|
1730
|
+
), S2 = ({
|
|
1680
1731
|
className: i,
|
|
1681
1732
|
color: e = b.GREY_DARK_5,
|
|
1682
1733
|
height: t = 24,
|
|
@@ -1713,7 +1764,7 @@ const $e = ({
|
|
|
1713
1764
|
)
|
|
1714
1765
|
]
|
|
1715
1766
|
}
|
|
1716
|
-
),
|
|
1767
|
+
), V2 = ({
|
|
1717
1768
|
className: i,
|
|
1718
1769
|
color: e = b.GREY_DARK_3,
|
|
1719
1770
|
height: t = 14,
|
|
@@ -1750,7 +1801,7 @@ const $e = ({
|
|
|
1750
1801
|
)
|
|
1751
1802
|
]
|
|
1752
1803
|
}
|
|
1753
|
-
),
|
|
1804
|
+
), A2 = ({
|
|
1754
1805
|
className: i,
|
|
1755
1806
|
color: e = b.GREY_DARK_5,
|
|
1756
1807
|
height: t = 18,
|
|
@@ -1777,7 +1828,7 @@ const $e = ({
|
|
|
1777
1828
|
}
|
|
1778
1829
|
)
|
|
1779
1830
|
}
|
|
1780
|
-
),
|
|
1831
|
+
), T2 = ({
|
|
1781
1832
|
className: i,
|
|
1782
1833
|
color: e = b.GREY_DARK_5,
|
|
1783
1834
|
height: t = 24,
|
|
@@ -1829,7 +1880,7 @@ const $e = ({
|
|
|
1829
1880
|
)
|
|
1830
1881
|
]
|
|
1831
1882
|
}
|
|
1832
|
-
),
|
|
1883
|
+
), Z2 = ({
|
|
1833
1884
|
className: i,
|
|
1834
1885
|
color: e = b.GREY_DARK_5,
|
|
1835
1886
|
height: t = 24,
|
|
@@ -1866,7 +1917,7 @@ const $e = ({
|
|
|
1866
1917
|
)
|
|
1867
1918
|
]
|
|
1868
1919
|
}
|
|
1869
|
-
),
|
|
1920
|
+
), D2 = ({
|
|
1870
1921
|
className: i,
|
|
1871
1922
|
color: e = b.NOTIFICATION_WARNING_DARK,
|
|
1872
1923
|
height: t = 37,
|
|
@@ -1905,7 +1956,7 @@ const $e = ({
|
|
|
1905
1956
|
)
|
|
1906
1957
|
]
|
|
1907
1958
|
}
|
|
1908
|
-
),
|
|
1959
|
+
), B2 = ({
|
|
1909
1960
|
className: i,
|
|
1910
1961
|
color: e = b.GREY_DARK_5,
|
|
1911
1962
|
height: t = 24,
|
|
@@ -1931,7 +1982,7 @@ const $e = ({
|
|
|
1931
1982
|
}
|
|
1932
1983
|
)
|
|
1933
1984
|
}
|
|
1934
|
-
),
|
|
1985
|
+
), j2 = ({
|
|
1935
1986
|
className: i,
|
|
1936
1987
|
color: e = b.GREY_DARK_5,
|
|
1937
1988
|
height: t = 24,
|
|
@@ -1970,7 +2021,7 @@ const $e = ({
|
|
|
1970
2021
|
)
|
|
1971
2022
|
]
|
|
1972
2023
|
}
|
|
1973
|
-
),
|
|
2024
|
+
), G2 = ({
|
|
1974
2025
|
className: i,
|
|
1975
2026
|
color: e = b.GREY_DARK_5,
|
|
1976
2027
|
height: t = 24,
|
|
@@ -2009,7 +2060,7 @@ const $e = ({
|
|
|
2009
2060
|
)
|
|
2010
2061
|
]
|
|
2011
2062
|
}
|
|
2012
|
-
),
|
|
2063
|
+
), W2 = ({
|
|
2013
2064
|
className: i,
|
|
2014
2065
|
color: e = b.GREY_DARK_5,
|
|
2015
2066
|
height: t = 24,
|
|
@@ -2078,7 +2129,7 @@ const $e = ({
|
|
|
2078
2129
|
)
|
|
2079
2130
|
]
|
|
2080
2131
|
}
|
|
2081
|
-
),
|
|
2132
|
+
), K2 = ({
|
|
2082
2133
|
className: i,
|
|
2083
2134
|
color: e = b.GREY_DARK_5,
|
|
2084
2135
|
height: t = 24,
|
|
@@ -2135,7 +2186,7 @@ const $e = ({
|
|
|
2135
2186
|
)
|
|
2136
2187
|
]
|
|
2137
2188
|
}
|
|
2138
|
-
),
|
|
2189
|
+
), P2 = ({
|
|
2139
2190
|
className: i,
|
|
2140
2191
|
color: e = b.GREY_DARK_5,
|
|
2141
2192
|
height: t = 24,
|
|
@@ -2174,7 +2225,7 @@ const $e = ({
|
|
|
2174
2225
|
)
|
|
2175
2226
|
]
|
|
2176
2227
|
}
|
|
2177
|
-
),
|
|
2228
|
+
), $2 = ({
|
|
2178
2229
|
className: i,
|
|
2179
2230
|
color: e = b.GREY_DARK_5,
|
|
2180
2231
|
height: t = 24,
|
|
@@ -2223,7 +2274,7 @@ const $e = ({
|
|
|
2223
2274
|
)
|
|
2224
2275
|
]
|
|
2225
2276
|
}
|
|
2226
|
-
),
|
|
2277
|
+
), F2 = ({
|
|
2227
2278
|
className: i,
|
|
2228
2279
|
color: e = b.GREY_DARK_5,
|
|
2229
2280
|
height: t = 24,
|
|
@@ -2250,7 +2301,7 @@ const $e = ({
|
|
|
2250
2301
|
}
|
|
2251
2302
|
)
|
|
2252
2303
|
}
|
|
2253
|
-
),
|
|
2304
|
+
), Y2 = ({
|
|
2254
2305
|
className: i,
|
|
2255
2306
|
color: e = b.GREY_DARK_5,
|
|
2256
2307
|
height: t = 20,
|
|
@@ -2279,7 +2330,7 @@ const $e = ({
|
|
|
2279
2330
|
)
|
|
2280
2331
|
]
|
|
2281
2332
|
}
|
|
2282
|
-
),
|
|
2333
|
+
), U2 = ({
|
|
2283
2334
|
className: i,
|
|
2284
2335
|
color: e = "#001E52",
|
|
2285
2336
|
height: t = 24,
|
|
@@ -2305,7 +2356,7 @@ const $e = ({
|
|
|
2305
2356
|
}
|
|
2306
2357
|
)
|
|
2307
2358
|
}
|
|
2308
|
-
),
|
|
2359
|
+
), z2 = ({
|
|
2309
2360
|
className: i,
|
|
2310
2361
|
color: e = "#131314",
|
|
2311
2362
|
height: t = 20,
|
|
@@ -2333,7 +2384,7 @@ const $e = ({
|
|
|
2333
2384
|
}
|
|
2334
2385
|
)
|
|
2335
2386
|
}
|
|
2336
|
-
),
|
|
2387
|
+
), J2 = ({
|
|
2337
2388
|
className: i,
|
|
2338
2389
|
color: e = "#001E52",
|
|
2339
2390
|
height: t = 24,
|
|
@@ -2371,7 +2422,7 @@ const $e = ({
|
|
|
2371
2422
|
)
|
|
2372
2423
|
] }) })
|
|
2373
2424
|
}
|
|
2374
|
-
),
|
|
2425
|
+
), Q2 = ({
|
|
2375
2426
|
width: i = 20,
|
|
2376
2427
|
height: e = 20,
|
|
2377
2428
|
color: t = "#001E52",
|
|
@@ -2427,7 +2478,7 @@ const $e = ({
|
|
|
2427
2478
|
}
|
|
2428
2479
|
)
|
|
2429
2480
|
}
|
|
2430
|
-
),
|
|
2481
|
+
), q2 = ({
|
|
2431
2482
|
width: i = 24,
|
|
2432
2483
|
height: e = 24,
|
|
2433
2484
|
color: t = "#131314",
|
|
@@ -2460,7 +2511,7 @@ const $e = ({
|
|
|
2460
2511
|
)
|
|
2461
2512
|
]
|
|
2462
2513
|
}
|
|
2463
|
-
),
|
|
2514
|
+
), X2 = ({
|
|
2464
2515
|
width: i = 24,
|
|
2465
2516
|
height: e = 24,
|
|
2466
2517
|
color: t = b.GREY_DARK_2,
|
|
@@ -2499,7 +2550,7 @@ const $e = ({
|
|
|
2499
2550
|
)
|
|
2500
2551
|
]
|
|
2501
2552
|
}
|
|
2502
|
-
),
|
|
2553
|
+
), et = ({
|
|
2503
2554
|
width: i = 24,
|
|
2504
2555
|
height: e = 24,
|
|
2505
2556
|
color: t = b.GREY_DARK_2,
|
|
@@ -2526,7 +2577,7 @@ const $e = ({
|
|
|
2526
2577
|
}
|
|
2527
2578
|
)
|
|
2528
2579
|
}
|
|
2529
|
-
),
|
|
2580
|
+
), tt = ({
|
|
2530
2581
|
width: i = 24,
|
|
2531
2582
|
height: e = 24,
|
|
2532
2583
|
color: t = b.GREY_DARK_2,
|
|
@@ -2566,7 +2617,7 @@ const $e = ({
|
|
|
2566
2617
|
)
|
|
2567
2618
|
]
|
|
2568
2619
|
}
|
|
2569
|
-
),
|
|
2620
|
+
), it = ({
|
|
2570
2621
|
width: i = 24,
|
|
2571
2622
|
height: e = 24,
|
|
2572
2623
|
color: t = b.GREY_DARK_2,
|
|
@@ -2593,7 +2644,7 @@ const $e = ({
|
|
|
2593
2644
|
}
|
|
2594
2645
|
)
|
|
2595
2646
|
}
|
|
2596
|
-
),
|
|
2647
|
+
), nt = ({
|
|
2597
2648
|
width: i = 24,
|
|
2598
2649
|
height: e = 24,
|
|
2599
2650
|
color: t = b.GREY_DARK_2,
|
|
@@ -2620,7 +2671,7 @@ const $e = ({
|
|
|
2620
2671
|
}
|
|
2621
2672
|
)
|
|
2622
2673
|
}
|
|
2623
|
-
),
|
|
2674
|
+
), st = ({
|
|
2624
2675
|
width: i = 20,
|
|
2625
2676
|
height: e = 20,
|
|
2626
2677
|
color: t = "#001E52",
|
|
@@ -2652,205 +2703,207 @@ const $e = ({
|
|
|
2652
2703
|
height: t,
|
|
2653
2704
|
color: n,
|
|
2654
2705
|
className: s,
|
|
2655
|
-
disabled:
|
|
2706
|
+
disabled: a = !1,
|
|
2656
2707
|
onClick: c
|
|
2657
2708
|
}) => {
|
|
2658
|
-
const [
|
|
2709
|
+
const [r, g] = O(s), { theme: d } = Q(te), l = a ? d && d === "dark" ? b.GREY_LIGHT_4 : b.GREY_DARK_1 : n, h = a ? void 0 : c;
|
|
2659
2710
|
return S(() => {
|
|
2660
2711
|
if (s) {
|
|
2661
|
-
h && !
|
|
2712
|
+
h && !a && g(`${s} clickable`);
|
|
2662
2713
|
return;
|
|
2663
2714
|
}
|
|
2664
|
-
h && !
|
|
2665
|
-
}, [h, s,
|
|
2715
|
+
h && !a && g("clickable");
|
|
2716
|
+
}, [h, s, a]), /* @__PURE__ */ o(Y, { children: (() => {
|
|
2666
2717
|
switch (i) {
|
|
2667
2718
|
case "nextIcon":
|
|
2668
|
-
return
|
|
2719
|
+
return M2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2669
2720
|
case "prevIcon":
|
|
2670
|
-
return
|
|
2721
|
+
return b2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2671
2722
|
case "arrowDown":
|
|
2672
|
-
return $e({ width: e, height: t, color: l, className:
|
|
2723
|
+
return $e({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2673
2724
|
case "info":
|
|
2674
|
-
return Fe({ width: e, height: t, color: l, className:
|
|
2725
|
+
return Fe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2675
2726
|
case "arrowRight":
|
|
2676
|
-
return Ye({ width: e, height: t, color: l, className:
|
|
2727
|
+
return Ye({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2677
2728
|
case "calendar":
|
|
2678
|
-
return Ue({ width: e, height: t, color: l, className:
|
|
2729
|
+
return Ue({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2679
2730
|
case "ok":
|
|
2680
|
-
return ze({ width: e, height: t, color: l, className:
|
|
2731
|
+
return ze({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2681
2732
|
case "cancel":
|
|
2682
|
-
return Je({ width: e, height: t, color: l, className:
|
|
2733
|
+
return Je({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2683
2734
|
case "add":
|
|
2684
|
-
return Qe({ width: e, height: t, color: l, className:
|
|
2735
|
+
return Qe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2685
2736
|
case "list":
|
|
2686
|
-
return qe({ width: e, height: t, color: l, className:
|
|
2737
|
+
return qe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2687
2738
|
case "dragAndDrop":
|
|
2688
|
-
return Xe({ width: e, height: t, color: l, className:
|
|
2739
|
+
return Xe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2689
2740
|
case "filter":
|
|
2690
|
-
return
|
|
2741
|
+
return e2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2691
2742
|
case "attention":
|
|
2692
|
-
return
|
|
2743
|
+
return t2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2693
2744
|
case "users":
|
|
2694
|
-
return
|
|
2745
|
+
return i2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2695
2746
|
case "mySkillsMatrix":
|
|
2696
|
-
return
|
|
2747
|
+
return n2({
|
|
2697
2748
|
width: e,
|
|
2698
2749
|
height: t,
|
|
2699
2750
|
color: l,
|
|
2700
|
-
className:
|
|
2751
|
+
className: r,
|
|
2701
2752
|
onClick: h
|
|
2702
2753
|
});
|
|
2703
2754
|
case "skills":
|
|
2704
|
-
return
|
|
2755
|
+
return s2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2705
2756
|
case "skillsMatrices":
|
|
2706
|
-
return
|
|
2757
|
+
return o2({
|
|
2707
2758
|
width: e,
|
|
2708
2759
|
height: t,
|
|
2709
2760
|
color: l,
|
|
2710
|
-
className:
|
|
2761
|
+
className: r,
|
|
2711
2762
|
onClick: h
|
|
2712
2763
|
});
|
|
2713
2764
|
case "history":
|
|
2714
|
-
return
|
|
2765
|
+
return r2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2715
2766
|
case "logOut":
|
|
2716
|
-
return
|
|
2767
|
+
return a2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2717
2768
|
case "settings":
|
|
2718
|
-
return
|
|
2769
|
+
return l2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2719
2770
|
case "trash":
|
|
2720
|
-
return
|
|
2771
|
+
return h2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2721
2772
|
case "settings4":
|
|
2722
|
-
return
|
|
2773
|
+
return c2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2723
2774
|
case "success":
|
|
2724
|
-
return
|
|
2775
|
+
return d2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2776
|
+
case "checkCircle":
|
|
2777
|
+
return g2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2725
2778
|
case "errorSmall":
|
|
2726
|
-
return
|
|
2779
|
+
return u2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2727
2780
|
case "infoMedium":
|
|
2728
|
-
return
|
|
2781
|
+
return C2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2729
2782
|
case "attentionMedium":
|
|
2730
|
-
return
|
|
2783
|
+
return p2({
|
|
2731
2784
|
width: e,
|
|
2732
2785
|
height: t,
|
|
2733
2786
|
color: l,
|
|
2734
|
-
className:
|
|
2787
|
+
className: r,
|
|
2735
2788
|
onClick: h
|
|
2736
2789
|
});
|
|
2737
2790
|
case "errorMedium":
|
|
2738
|
-
return
|
|
2791
|
+
return f2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2739
2792
|
case "visibilityIcon":
|
|
2740
|
-
return
|
|
2793
|
+
return m2({
|
|
2741
2794
|
width: e,
|
|
2742
2795
|
height: t,
|
|
2743
2796
|
color: l,
|
|
2744
|
-
className:
|
|
2797
|
+
className: r,
|
|
2745
2798
|
onClick: h
|
|
2746
2799
|
});
|
|
2747
2800
|
case "visibilityOffIcon":
|
|
2748
|
-
return
|
|
2801
|
+
return w2({
|
|
2749
2802
|
width: e,
|
|
2750
2803
|
height: t,
|
|
2751
2804
|
color: l,
|
|
2752
|
-
className:
|
|
2805
|
+
className: r,
|
|
2753
2806
|
onClick: h
|
|
2754
2807
|
});
|
|
2755
2808
|
case "selectArrowIcon":
|
|
2756
|
-
return
|
|
2809
|
+
return k2({
|
|
2757
2810
|
width: e,
|
|
2758
2811
|
height: t,
|
|
2759
2812
|
color: l,
|
|
2760
|
-
className:
|
|
2813
|
+
className: r,
|
|
2761
2814
|
onClick: h
|
|
2762
2815
|
});
|
|
2763
2816
|
case "expandArrowIcon":
|
|
2764
|
-
return
|
|
2817
|
+
return L2({
|
|
2765
2818
|
width: e,
|
|
2766
2819
|
height: t,
|
|
2767
2820
|
color: l,
|
|
2768
|
-
className:
|
|
2821
|
+
className: r,
|
|
2769
2822
|
onClick: h
|
|
2770
2823
|
});
|
|
2771
2824
|
case "expandActiveArrowIcon":
|
|
2772
|
-
return
|
|
2825
|
+
return v2({
|
|
2773
2826
|
width: e,
|
|
2774
2827
|
height: t,
|
|
2775
2828
|
color: l,
|
|
2776
|
-
className:
|
|
2829
|
+
className: r,
|
|
2777
2830
|
onClick: h
|
|
2778
2831
|
});
|
|
2779
2832
|
case "sortUp":
|
|
2780
|
-
return
|
|
2833
|
+
return N2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2781
2834
|
case "sortDown":
|
|
2782
|
-
return
|
|
2835
|
+
return x2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2783
2836
|
case "search":
|
|
2784
|
-
return
|
|
2837
|
+
return R2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2785
2838
|
case "arrowUpFilled":
|
|
2786
|
-
return
|
|
2839
|
+
return _2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2787
2840
|
case "arrowDownFilled":
|
|
2788
|
-
return
|
|
2841
|
+
return y2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2789
2842
|
case "link":
|
|
2790
|
-
return
|
|
2843
|
+
return E2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2791
2844
|
case "telegram":
|
|
2792
|
-
return
|
|
2845
|
+
return I2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2793
2846
|
case "mail":
|
|
2794
|
-
return
|
|
2847
|
+
return S2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2795
2848
|
case "github":
|
|
2796
|
-
return
|
|
2849
|
+
return H2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2797
2850
|
case "linkedIn":
|
|
2798
|
-
return
|
|
2851
|
+
return O2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2799
2852
|
case "emptyStateIcon":
|
|
2800
|
-
return
|
|
2853
|
+
return V2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2801
2854
|
case "filtersIcon":
|
|
2802
|
-
return
|
|
2855
|
+
return A2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2803
2856
|
case "dotMenuIcon":
|
|
2804
|
-
return
|
|
2857
|
+
return T2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2805
2858
|
case "plusCircle":
|
|
2806
|
-
return
|
|
2859
|
+
return Z2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2807
2860
|
case "warning":
|
|
2808
|
-
return
|
|
2861
|
+
return D2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2809
2862
|
case "back":
|
|
2810
|
-
return
|
|
2863
|
+
return B2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2811
2864
|
case "bell":
|
|
2812
|
-
return
|
|
2865
|
+
return j2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2813
2866
|
case "contract":
|
|
2814
|
-
return
|
|
2867
|
+
return W2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2815
2868
|
case "trash2":
|
|
2816
|
-
return
|
|
2869
|
+
return G2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2817
2870
|
case "resourceManager":
|
|
2818
|
-
return
|
|
2871
|
+
return K2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2819
2872
|
case "settings2":
|
|
2820
|
-
return
|
|
2873
|
+
return P2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2821
2874
|
case "image":
|
|
2822
|
-
return
|
|
2875
|
+
return $2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2823
2876
|
case "edit":
|
|
2824
|
-
return
|
|
2877
|
+
return F2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2825
2878
|
case "filledArrowRight":
|
|
2826
|
-
return
|
|
2879
|
+
return Y2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2827
2880
|
case "burgerMenu":
|
|
2828
|
-
return
|
|
2881
|
+
return U2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2829
2882
|
case "signOut":
|
|
2830
|
-
return
|
|
2883
|
+
return z2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2831
2884
|
case "refresh":
|
|
2832
|
-
return
|
|
2885
|
+
return J2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2833
2886
|
case "projects":
|
|
2834
|
-
return
|
|
2887
|
+
return Q2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2835
2888
|
case "profile":
|
|
2836
|
-
return
|
|
2889
|
+
return st({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2837
2890
|
case "exit":
|
|
2838
|
-
return
|
|
2891
|
+
return q2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2839
2892
|
case "client":
|
|
2840
|
-
return
|
|
2893
|
+
return X2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2841
2894
|
case "calendar2":
|
|
2842
|
-
return
|
|
2895
|
+
return et({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2843
2896
|
case "openPointCircle":
|
|
2844
|
-
return
|
|
2897
|
+
return tt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2845
2898
|
case "community":
|
|
2846
|
-
return
|
|
2899
|
+
return it({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2847
2900
|
case "docs":
|
|
2848
|
-
return
|
|
2901
|
+
return nt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
2849
2902
|
default:
|
|
2850
2903
|
return /* @__PURE__ */ o(Y, { children: "No Icon provided" });
|
|
2851
2904
|
}
|
|
2852
2905
|
})() });
|
|
2853
|
-
},
|
|
2906
|
+
}, ot = ({ children: i, title: e, arrow: t = !0, open: n, placement: s = "top" }) => /* @__PURE__ */ o(
|
|
2854
2907
|
J1,
|
|
2855
2908
|
{
|
|
2856
2909
|
overlayClassName: "snmt-tooltip",
|
|
@@ -2860,45 +2913,45 @@ const $e = ({
|
|
|
2860
2913
|
placement: s,
|
|
2861
2914
|
children: i
|
|
2862
2915
|
}
|
|
2863
|
-
), { Title:
|
|
2916
|
+
), { Title: rt, Text: at } = Q1, lt = {
|
|
2864
2917
|
h1: 1,
|
|
2865
2918
|
h2: 2,
|
|
2866
2919
|
h3: 3,
|
|
2867
2920
|
h4: 4
|
|
2868
|
-
},
|
|
2921
|
+
}, ht = w1(
|
|
2869
2922
|
({
|
|
2870
2923
|
align: i = "inherit",
|
|
2871
2924
|
variant: e = "body1",
|
|
2872
2925
|
color: t,
|
|
2873
2926
|
children: n,
|
|
2874
2927
|
onClick: s,
|
|
2875
|
-
collapsed:
|
|
2928
|
+
collapsed: a,
|
|
2876
2929
|
whiteSpace: c = "normal",
|
|
2877
2930
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2878
|
-
trim:
|
|
2931
|
+
trim: r = !1
|
|
2879
2932
|
}, g) => {
|
|
2880
2933
|
const d = J(null);
|
|
2881
2934
|
q1(g, () => d.current);
|
|
2882
2935
|
const [l, h] = O(!1);
|
|
2883
2936
|
S(() => {
|
|
2884
|
-
if (!
|
|
2937
|
+
if (!r) return;
|
|
2885
2938
|
const m = () => {
|
|
2886
2939
|
d.current && h(d.current.scrollWidth > d.current.clientWidth);
|
|
2887
|
-
},
|
|
2888
|
-
return d.current &&
|
|
2889
|
-
|
|
2940
|
+
}, _ = new ResizeObserver(m);
|
|
2941
|
+
return d.current && _.observe(d.current), () => {
|
|
2942
|
+
_.disconnect();
|
|
2890
2943
|
};
|
|
2891
|
-
}, [
|
|
2944
|
+
}, [r, l]);
|
|
2892
2945
|
const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
2893
2946
|
let p = `snmt-typography snmt-typography-${e}`;
|
|
2894
|
-
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`),
|
|
2947
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), a && (p += " collapsed"), r && (p += " collapsed");
|
|
2895
2948
|
const w = {
|
|
2896
2949
|
className: p,
|
|
2897
|
-
style: { color: t, whiteSpace:
|
|
2950
|
+
style: { color: t, whiteSpace: r ? "nowrap" : c, display: r ? "block" : "" },
|
|
2898
2951
|
onClick: s,
|
|
2899
2952
|
ref: d
|
|
2900
|
-
}, L = u ? /* @__PURE__ */ o(
|
|
2901
|
-
return
|
|
2953
|
+
}, L = u ? /* @__PURE__ */ o(rt, { level: lt[e], ...w, children: n }) : /* @__PURE__ */ o(at, { ...w, children: n });
|
|
2954
|
+
return r && l ? /* @__PURE__ */ o(ot, { placement: "top", title: n, children: L }) : L;
|
|
2902
2955
|
}
|
|
2903
2956
|
);
|
|
2904
2957
|
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 || {});
|
|
@@ -2907,7 +2960,7 @@ const ie = t1({
|
|
|
2907
2960
|
theme: "light"
|
|
2908
2961
|
});
|
|
2909
2962
|
ie.Provider;
|
|
2910
|
-
const
|
|
2963
|
+
const ct = ({
|
|
2911
2964
|
width: i = 20,
|
|
2912
2965
|
height: e = 20,
|
|
2913
2966
|
color: t = "#001E52",
|
|
@@ -2934,35 +2987,47 @@ const h2 = ({
|
|
|
2934
2987
|
}
|
|
2935
2988
|
)
|
|
2936
2989
|
}
|
|
2937
|
-
),
|
|
2938
|
-
width: i =
|
|
2939
|
-
height: e =
|
|
2940
|
-
color: t =
|
|
2990
|
+
), dt = ({
|
|
2991
|
+
width: i = 20,
|
|
2992
|
+
height: e = 20,
|
|
2993
|
+
color: t = y.GREY_DARK_5,
|
|
2941
2994
|
className: n,
|
|
2942
2995
|
onClick: s
|
|
2943
2996
|
}) => /* @__PURE__ */ C(
|
|
2944
2997
|
"svg",
|
|
2945
2998
|
{
|
|
2946
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2947
2999
|
width: i,
|
|
2948
3000
|
height: e,
|
|
2949
3001
|
className: n,
|
|
2950
3002
|
onClick: s,
|
|
2951
|
-
viewBox: "0 0
|
|
3003
|
+
viewBox: "0 0 24 25",
|
|
2952
3004
|
fill: "none",
|
|
3005
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2953
3006
|
children: [
|
|
2954
|
-
/* @__PURE__ */ o("circle", { cx: "8", cy: "8", r: "7.4", stroke: t, strokeWidth: "1.2" }),
|
|
2955
|
-
/* @__PURE__ */ o("path", { d: "M7 6.5H9V12.5335H7V6.5Z", fill: t }),
|
|
2956
3007
|
/* @__PURE__ */ o(
|
|
2957
3008
|
"path",
|
|
2958
3009
|
{
|
|
2959
|
-
d: "
|
|
3010
|
+
d: "M11.25 17L11.25 12C11.25 11.5858 11.5858 11.25 12 11.25C12.4142 11.25 12.75 11.5858 12.75 12V17C12.75 17.4142 12.4142 17.75 12 17.75C11.5858 17.75 11.25 17.4142 11.25 17Z",
|
|
3011
|
+
fill: t
|
|
3012
|
+
}
|
|
3013
|
+
),
|
|
3014
|
+
/* @__PURE__ */ o(
|
|
3015
|
+
"path",
|
|
3016
|
+
{
|
|
3017
|
+
d: "M11.4523 7.49701C11.7294 7.18913 12.204 7.16426 12.5118 7.44135C12.8197 7.71844 12.8446 8.19304 12.5675 8.50092L12.5577 8.51166C12.2806 8.81954 11.806 8.84442 11.4982 8.56732C11.1904 8.29021 11.1655 7.81558 11.4425 7.50775L11.4523 7.49701Z",
|
|
3018
|
+
fill: t
|
|
3019
|
+
}
|
|
3020
|
+
),
|
|
3021
|
+
/* @__PURE__ */ o(
|
|
3022
|
+
"path",
|
|
3023
|
+
{
|
|
3024
|
+
d: "M21.25 12.5C21.25 7.39137 17.1086 3.25 12 3.25C6.89137 3.25 2.75 7.39137 2.75 12.5C2.75 17.6086 6.89137 21.75 12 21.75C17.1086 21.75 21.25 17.6086 21.25 12.5ZM22.75 12.5C22.75 18.4371 17.9371 23.25 12 23.25C6.06294 23.25 1.25 18.4371 1.25 12.5C1.25 6.56294 6.06294 1.75 12 1.75C17.9371 1.75 22.75 6.56294 22.75 12.5Z",
|
|
2960
3025
|
fill: t
|
|
2961
3026
|
}
|
|
2962
3027
|
)
|
|
2963
3028
|
]
|
|
2964
3029
|
}
|
|
2965
|
-
),
|
|
3030
|
+
), gt = ({
|
|
2966
3031
|
width: i = 20,
|
|
2967
3032
|
height: e = 20,
|
|
2968
3033
|
color: t = "#001E52",
|
|
@@ -2997,7 +3062,7 @@ const h2 = ({
|
|
|
2997
3062
|
)
|
|
2998
3063
|
]
|
|
2999
3064
|
}
|
|
3000
|
-
),
|
|
3065
|
+
), ut = ({
|
|
3001
3066
|
width: i = 18,
|
|
3002
3067
|
height: e = 18,
|
|
3003
3068
|
color: t = "#001E52",
|
|
@@ -3036,7 +3101,7 @@ const h2 = ({
|
|
|
3036
3101
|
)
|
|
3037
3102
|
]
|
|
3038
3103
|
}
|
|
3039
|
-
),
|
|
3104
|
+
), Ct = ({
|
|
3040
3105
|
width: i = 20,
|
|
3041
3106
|
height: e = 20,
|
|
3042
3107
|
color: t = "#001E52",
|
|
@@ -3062,7 +3127,7 @@ const h2 = ({
|
|
|
3062
3127
|
}
|
|
3063
3128
|
)
|
|
3064
3129
|
}
|
|
3065
|
-
),
|
|
3130
|
+
), pt = ({
|
|
3066
3131
|
width: i = 20,
|
|
3067
3132
|
height: e = 20,
|
|
3068
3133
|
color: t = "#001E52",
|
|
@@ -3083,7 +3148,7 @@ const h2 = ({
|
|
|
3083
3148
|
/* @__PURE__ */ o("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
|
3084
3149
|
]
|
|
3085
3150
|
}
|
|
3086
|
-
),
|
|
3151
|
+
), ft = ({
|
|
3087
3152
|
width: i = 20,
|
|
3088
3153
|
height: e = 20,
|
|
3089
3154
|
color: t = "#001E52",
|
|
@@ -3115,7 +3180,7 @@ const h2 = ({
|
|
|
3115
3180
|
)
|
|
3116
3181
|
]
|
|
3117
3182
|
}
|
|
3118
|
-
),
|
|
3183
|
+
), mt = ({
|
|
3119
3184
|
width: i = 20,
|
|
3120
3185
|
height: e = 20,
|
|
3121
3186
|
color: t = "#001E52",
|
|
@@ -3169,7 +3234,7 @@ const h2 = ({
|
|
|
3169
3234
|
)
|
|
3170
3235
|
]
|
|
3171
3236
|
}
|
|
3172
|
-
),
|
|
3237
|
+
), wt = ({
|
|
3173
3238
|
width: i = 20,
|
|
3174
3239
|
height: e = 20,
|
|
3175
3240
|
color: t = "#001E52",
|
|
@@ -3208,7 +3273,7 @@ const h2 = ({
|
|
|
3208
3273
|
/* @__PURE__ */ o("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
|
3209
3274
|
]
|
|
3210
3275
|
}
|
|
3211
|
-
),
|
|
3276
|
+
), kt = ({
|
|
3212
3277
|
width: i = 16,
|
|
3213
3278
|
height: e = 12,
|
|
3214
3279
|
color: t = "#001E52",
|
|
@@ -3257,41 +3322,47 @@ const h2 = ({
|
|
|
3257
3322
|
)
|
|
3258
3323
|
] })
|
|
3259
3324
|
}
|
|
3260
|
-
),
|
|
3261
|
-
width: i =
|
|
3262
|
-
height: e =
|
|
3263
|
-
color: t =
|
|
3325
|
+
), Lt = ({
|
|
3326
|
+
width: i = 20,
|
|
3327
|
+
height: e = 20,
|
|
3328
|
+
color: t = y.GREY_DARK_5,
|
|
3264
3329
|
className: n,
|
|
3265
3330
|
onClick: s
|
|
3266
3331
|
}) => /* @__PURE__ */ C(
|
|
3267
3332
|
"svg",
|
|
3268
3333
|
{
|
|
3269
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3270
3334
|
width: i,
|
|
3271
3335
|
height: e,
|
|
3272
3336
|
className: n,
|
|
3273
3337
|
onClick: s,
|
|
3274
|
-
viewBox: "0 0
|
|
3338
|
+
viewBox: "0 0 24 25",
|
|
3275
3339
|
fill: "none",
|
|
3340
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3276
3341
|
children: [
|
|
3277
|
-
/* @__PURE__ */ o("circle", { cx: "8", cy: "8", r: "7.27273", stroke: t, strokeWidth: "1.45455" }),
|
|
3278
3342
|
/* @__PURE__ */ o(
|
|
3279
3343
|
"path",
|
|
3280
3344
|
{
|
|
3281
|
-
d: "
|
|
3345
|
+
d: "M11.25 13.5L11.25 7.5C11.25 7.08579 11.5858 6.75 12 6.75C12.4142 6.75 12.75 7.08579 12.75 7.5L12.75 13.5C12.75 13.9142 12.4142 14.25 12 14.25C11.5858 14.25 11.25 13.9142 11.25 13.5Z",
|
|
3346
|
+
fill: t
|
|
3347
|
+
}
|
|
3348
|
+
),
|
|
3349
|
+
/* @__PURE__ */ o(
|
|
3350
|
+
"path",
|
|
3351
|
+
{
|
|
3352
|
+
d: "M11.4523 16.997C11.7294 16.6891 12.204 16.6643 12.5118 16.9413C12.8197 17.2184 12.8446 17.693 12.5675 18.0009L12.5577 18.0117C12.2806 18.3195 11.806 18.3444 11.4982 18.0673C11.1904 17.7902 11.1655 17.3156 11.4425 17.0078L11.4523 16.997Z",
|
|
3282
3353
|
fill: t
|
|
3283
3354
|
}
|
|
3284
3355
|
),
|
|
3285
3356
|
/* @__PURE__ */ o(
|
|
3286
3357
|
"path",
|
|
3287
3358
|
{
|
|
3288
|
-
d: "
|
|
3359
|
+
d: "M21.25 12.5C21.25 7.39137 17.1086 3.25 12 3.25C6.89137 3.25 2.75 7.39137 2.75 12.5C2.75 17.6086 6.89137 21.75 12 21.75C17.1086 21.75 21.25 17.6086 21.25 12.5ZM22.75 12.5C22.75 18.4371 17.9371 23.25 12 23.25C6.06294 23.25 1.25 18.4371 1.25 12.5C1.25 6.56294 6.06294 1.75 12 1.75C17.9371 1.75 22.75 6.56294 22.75 12.5Z",
|
|
3289
3360
|
fill: t
|
|
3290
3361
|
}
|
|
3291
3362
|
)
|
|
3292
3363
|
]
|
|
3293
3364
|
}
|
|
3294
|
-
),
|
|
3365
|
+
), vt = ({
|
|
3295
3366
|
width: i = 20,
|
|
3296
3367
|
height: e = 20,
|
|
3297
3368
|
color: t = "#001E52",
|
|
@@ -3338,7 +3409,7 @@ const h2 = ({
|
|
|
3338
3409
|
)
|
|
3339
3410
|
]
|
|
3340
3411
|
}
|
|
3341
|
-
),
|
|
3412
|
+
), Nt = ({
|
|
3342
3413
|
width: i = 20,
|
|
3343
3414
|
height: e = 20,
|
|
3344
3415
|
color: t = "#001E52",
|
|
@@ -3371,7 +3442,7 @@ const h2 = ({
|
|
|
3371
3442
|
)
|
|
3372
3443
|
]
|
|
3373
3444
|
}
|
|
3374
|
-
),
|
|
3445
|
+
), xt = ({
|
|
3375
3446
|
width: i = 20,
|
|
3376
3447
|
height: e = 20,
|
|
3377
3448
|
color: t = "#001E52",
|
|
@@ -3418,7 +3489,7 @@ const h2 = ({
|
|
|
3418
3489
|
)
|
|
3419
3490
|
]
|
|
3420
3491
|
}
|
|
3421
|
-
),
|
|
3492
|
+
), Rt = ({
|
|
3422
3493
|
width: i = 20,
|
|
3423
3494
|
height: e = 20,
|
|
3424
3495
|
color: t = "#001E52",
|
|
@@ -3451,7 +3522,7 @@ const h2 = ({
|
|
|
3451
3522
|
)
|
|
3452
3523
|
]
|
|
3453
3524
|
}
|
|
3454
|
-
),
|
|
3525
|
+
), Mt = ({
|
|
3455
3526
|
width: i = 18,
|
|
3456
3527
|
height: e = 16,
|
|
3457
3528
|
color: t = "#001E52",
|
|
@@ -3490,7 +3561,7 @@ const h2 = ({
|
|
|
3490
3561
|
)
|
|
3491
3562
|
]
|
|
3492
3563
|
}
|
|
3493
|
-
),
|
|
3564
|
+
), bt = ({
|
|
3494
3565
|
width: i = 20,
|
|
3495
3566
|
height: e = 20,
|
|
3496
3567
|
color: t = "#001E52",
|
|
@@ -3523,7 +3594,7 @@ const h2 = ({
|
|
|
3523
3594
|
)
|
|
3524
3595
|
]
|
|
3525
3596
|
}
|
|
3526
|
-
),
|
|
3597
|
+
), yt = ({
|
|
3527
3598
|
width: i = 20,
|
|
3528
3599
|
height: e = 20,
|
|
3529
3600
|
color: t = "#001E52",
|
|
@@ -3547,7 +3618,7 @@ const h2 = ({
|
|
|
3547
3618
|
}
|
|
3548
3619
|
)
|
|
3549
3620
|
}
|
|
3550
|
-
),
|
|
3621
|
+
), _t = ({
|
|
3551
3622
|
width: i = 20,
|
|
3552
3623
|
height: e = 20,
|
|
3553
3624
|
color: t = "#001E52",
|
|
@@ -3580,7 +3651,7 @@ const h2 = ({
|
|
|
3580
3651
|
)
|
|
3581
3652
|
]
|
|
3582
3653
|
}
|
|
3583
|
-
),
|
|
3654
|
+
), Et = ({
|
|
3584
3655
|
width: i = 20,
|
|
3585
3656
|
height: e = 23,
|
|
3586
3657
|
color: t = "#001E52",
|
|
@@ -3641,7 +3712,7 @@ const h2 = ({
|
|
|
3641
3712
|
)
|
|
3642
3713
|
]
|
|
3643
3714
|
}
|
|
3644
|
-
),
|
|
3715
|
+
), Ht = ({
|
|
3645
3716
|
width: i = 14,
|
|
3646
3717
|
height: e = 14,
|
|
3647
3718
|
color: t = "#10B981",
|
|
@@ -3670,7 +3741,40 @@ const h2 = ({
|
|
|
3670
3741
|
)
|
|
3671
3742
|
]
|
|
3672
3743
|
}
|
|
3673
|
-
),
|
|
3744
|
+
), It = ({
|
|
3745
|
+
width: i = 20,
|
|
3746
|
+
height: e = 20,
|
|
3747
|
+
color: t = y.GREY_DARK_5,
|
|
3748
|
+
className: n,
|
|
3749
|
+
onClick: s
|
|
3750
|
+
}) => /* @__PURE__ */ C(
|
|
3751
|
+
"svg",
|
|
3752
|
+
{
|
|
3753
|
+
width: i,
|
|
3754
|
+
height: e,
|
|
3755
|
+
className: n,
|
|
3756
|
+
onClick: s,
|
|
3757
|
+
viewBox: "0 0 24 25",
|
|
3758
|
+
fill: "none",
|
|
3759
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3760
|
+
children: [
|
|
3761
|
+
/* @__PURE__ */ o(
|
|
3762
|
+
"path",
|
|
3763
|
+
{
|
|
3764
|
+
d: "M6.46978 13.5303C6.17689 13.2374 6.17689 12.7626 6.46978 12.4697C6.76268 12.1768 7.23755 12.1768 7.53044 12.4697L9.99979 14.939L16.4694 8.46941C16.7622 8.17662 17.2371 8.17683 17.5301 8.46941C17.823 8.7623 17.823 9.23717 17.5301 9.53007L10.5301 16.53C10.2372 16.8229 9.76236 16.8229 9.46946 16.53L6.46978 13.5303Z",
|
|
3765
|
+
fill: t
|
|
3766
|
+
}
|
|
3767
|
+
),
|
|
3768
|
+
/* @__PURE__ */ o(
|
|
3769
|
+
"path",
|
|
3770
|
+
{
|
|
3771
|
+
d: "M21.25 12.5C21.25 7.39137 17.1086 3.25 12 3.25C6.89137 3.25 2.75 7.39137 2.75 12.5C2.75 17.6086 6.89137 21.75 12 21.75C17.1086 21.75 21.25 17.6086 21.25 12.5ZM22.75 12.5C22.75 18.4371 17.9371 23.25 12 23.25C6.06294 23.25 1.25 18.4371 1.25 12.5C1.25 6.56294 6.06294 1.75 12 1.75C17.9371 1.75 22.75 6.56294 22.75 12.5Z",
|
|
3772
|
+
fill: t
|
|
3773
|
+
}
|
|
3774
|
+
)
|
|
3775
|
+
]
|
|
3776
|
+
}
|
|
3777
|
+
), Ot = ({
|
|
3674
3778
|
width: i = 10,
|
|
3675
3779
|
height: e = 10,
|
|
3676
3780
|
color: t = "#88A4FF",
|
|
@@ -3718,7 +3822,7 @@ const h2 = ({
|
|
|
3718
3822
|
)
|
|
3719
3823
|
]
|
|
3720
3824
|
}
|
|
3721
|
-
),
|
|
3825
|
+
), St = ({
|
|
3722
3826
|
width: i = 14,
|
|
3723
3827
|
height: e = 14,
|
|
3724
3828
|
color: t = "#8E8E93",
|
|
@@ -3746,7 +3850,7 @@ const h2 = ({
|
|
|
3746
3850
|
)
|
|
3747
3851
|
]
|
|
3748
3852
|
}
|
|
3749
|
-
),
|
|
3853
|
+
), Vt = ({
|
|
3750
3854
|
width: i = 14,
|
|
3751
3855
|
height: e = 14,
|
|
3752
3856
|
color: t = "#FFB020",
|
|
@@ -3780,7 +3884,7 @@ const h2 = ({
|
|
|
3780
3884
|
)
|
|
3781
3885
|
]
|
|
3782
3886
|
}
|
|
3783
|
-
),
|
|
3887
|
+
), At = ({
|
|
3784
3888
|
width: i = 14,
|
|
3785
3889
|
height: e = 14,
|
|
3786
3890
|
color: t = "#D0421B",
|
|
@@ -3828,7 +3932,7 @@ const h2 = ({
|
|
|
3828
3932
|
)
|
|
3829
3933
|
]
|
|
3830
3934
|
}
|
|
3831
|
-
),
|
|
3935
|
+
), Tt = ({
|
|
3832
3936
|
width: i = 20,
|
|
3833
3937
|
height: e = 20,
|
|
3834
3938
|
color: t = "#070739",
|
|
@@ -3858,7 +3962,7 @@ const h2 = ({
|
|
|
3858
3962
|
/* @__PURE__ */ o("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
3859
3963
|
]
|
|
3860
3964
|
}
|
|
3861
|
-
),
|
|
3965
|
+
), Zt = ({
|
|
3862
3966
|
width: i = 20,
|
|
3863
3967
|
height: e = 20,
|
|
3864
3968
|
color: t = "#070739",
|
|
@@ -3896,7 +4000,7 @@ const h2 = ({
|
|
|
3896
4000
|
)
|
|
3897
4001
|
]
|
|
3898
4002
|
}
|
|
3899
|
-
),
|
|
4003
|
+
), Dt = ({
|
|
3900
4004
|
width: i = 9,
|
|
3901
4005
|
height: e = 5,
|
|
3902
4006
|
color: t = "#001E52",
|
|
@@ -3922,7 +4026,7 @@ const h2 = ({
|
|
|
3922
4026
|
}
|
|
3923
4027
|
)
|
|
3924
4028
|
}
|
|
3925
|
-
),
|
|
4029
|
+
), Bt = ({
|
|
3926
4030
|
width: i = 20,
|
|
3927
4031
|
height: e = 20,
|
|
3928
4032
|
color: t = "#F2F2F7",
|
|
@@ -3951,7 +4055,7 @@ const h2 = ({
|
|
|
3951
4055
|
)
|
|
3952
4056
|
]
|
|
3953
4057
|
}
|
|
3954
|
-
),
|
|
4058
|
+
), jt = ({
|
|
3955
4059
|
width: i = 20,
|
|
3956
4060
|
height: e = 20,
|
|
3957
4061
|
color: t = "#004ED7",
|
|
@@ -3980,7 +4084,7 @@ const h2 = ({
|
|
|
3980
4084
|
)
|
|
3981
4085
|
]
|
|
3982
4086
|
}
|
|
3983
|
-
),
|
|
4087
|
+
), Gt = ({
|
|
3984
4088
|
width: i = 10,
|
|
3985
4089
|
height: e = 10,
|
|
3986
4090
|
color: t = "#001E52",
|
|
@@ -4009,7 +4113,7 @@ const h2 = ({
|
|
|
4009
4113
|
)
|
|
4010
4114
|
]
|
|
4011
4115
|
}
|
|
4012
|
-
),
|
|
4116
|
+
), Wt = ({
|
|
4013
4117
|
width: i = 10,
|
|
4014
4118
|
height: e = 10,
|
|
4015
4119
|
color: t = "#001E52",
|
|
@@ -4046,7 +4150,7 @@ const h2 = ({
|
|
|
4046
4150
|
)
|
|
4047
4151
|
]
|
|
4048
4152
|
}
|
|
4049
|
-
),
|
|
4153
|
+
), Kt = ({
|
|
4050
4154
|
className: i,
|
|
4051
4155
|
color: e = y.GREY_DARK_5,
|
|
4052
4156
|
height: t = 24,
|
|
@@ -4085,7 +4189,7 @@ const h2 = ({
|
|
|
4085
4189
|
)
|
|
4086
4190
|
]
|
|
4087
4191
|
}
|
|
4088
|
-
),
|
|
4192
|
+
), Pt = ({
|
|
4089
4193
|
className: i,
|
|
4090
4194
|
color: e = y.GREY_DARK_5,
|
|
4091
4195
|
height: t = 20,
|
|
@@ -4112,7 +4216,7 @@ const h2 = ({
|
|
|
4112
4216
|
}
|
|
4113
4217
|
)
|
|
4114
4218
|
}
|
|
4115
|
-
),
|
|
4219
|
+
), $t = ({
|
|
4116
4220
|
className: i,
|
|
4117
4221
|
color: e = y.GREY_DARK_5,
|
|
4118
4222
|
height: t = 20,
|
|
@@ -4139,7 +4243,7 @@ const h2 = ({
|
|
|
4139
4243
|
}
|
|
4140
4244
|
)
|
|
4141
4245
|
}
|
|
4142
|
-
),
|
|
4246
|
+
), Ft = ({
|
|
4143
4247
|
className: i,
|
|
4144
4248
|
color: e = y.GREY_DARK_5,
|
|
4145
4249
|
height: t = 5,
|
|
@@ -4163,7 +4267,7 @@ const h2 = ({
|
|
|
4163
4267
|
}
|
|
4164
4268
|
)
|
|
4165
4269
|
}
|
|
4166
|
-
),
|
|
4270
|
+
), Yt = ({
|
|
4167
4271
|
className: i,
|
|
4168
4272
|
color: e = y.GREY_DARK_5,
|
|
4169
4273
|
height: t = 5,
|
|
@@ -4188,7 +4292,7 @@ const h2 = ({
|
|
|
4188
4292
|
}
|
|
4189
4293
|
)
|
|
4190
4294
|
}
|
|
4191
|
-
),
|
|
4295
|
+
), Ut = ({
|
|
4192
4296
|
className: i,
|
|
4193
4297
|
color: e = y.GREY_DARK_5,
|
|
4194
4298
|
height: t = 24,
|
|
@@ -4227,7 +4331,7 @@ const h2 = ({
|
|
|
4227
4331
|
)
|
|
4228
4332
|
]
|
|
4229
4333
|
}
|
|
4230
|
-
),
|
|
4334
|
+
), zt = ({
|
|
4231
4335
|
className: i,
|
|
4232
4336
|
color: e = y.GREY_DARK_5,
|
|
4233
4337
|
height: t = 24,
|
|
@@ -4266,7 +4370,7 @@ const h2 = ({
|
|
|
4266
4370
|
)
|
|
4267
4371
|
]
|
|
4268
4372
|
}
|
|
4269
|
-
),
|
|
4373
|
+
), Jt = ({
|
|
4270
4374
|
className: i,
|
|
4271
4375
|
color: e = y.GREY_DARK_5,
|
|
4272
4376
|
height: t = 24,
|
|
@@ -4293,7 +4397,7 @@ const h2 = ({
|
|
|
4293
4397
|
}
|
|
4294
4398
|
)
|
|
4295
4399
|
}
|
|
4296
|
-
),
|
|
4400
|
+
), Qt = ({
|
|
4297
4401
|
className: i,
|
|
4298
4402
|
color: e = y.GREY_DARK_5,
|
|
4299
4403
|
height: t = 24,
|
|
@@ -4352,7 +4456,7 @@ const h2 = ({
|
|
|
4352
4456
|
)
|
|
4353
4457
|
]
|
|
4354
4458
|
}
|
|
4355
|
-
),
|
|
4459
|
+
), qt = ({
|
|
4356
4460
|
className: i,
|
|
4357
4461
|
color: e = y.GREY_DARK_5,
|
|
4358
4462
|
height: t = 24,
|
|
@@ -4389,7 +4493,7 @@ const h2 = ({
|
|
|
4389
4493
|
)
|
|
4390
4494
|
]
|
|
4391
4495
|
}
|
|
4392
|
-
),
|
|
4496
|
+
), Xt = ({
|
|
4393
4497
|
className: i,
|
|
4394
4498
|
color: e = y.GREY_DARK_3,
|
|
4395
4499
|
height: t = 14,
|
|
@@ -4426,7 +4530,7 @@ const h2 = ({
|
|
|
4426
4530
|
)
|
|
4427
4531
|
]
|
|
4428
4532
|
}
|
|
4429
|
-
),
|
|
4533
|
+
), e5 = ({
|
|
4430
4534
|
className: i,
|
|
4431
4535
|
color: e = y.GREY_DARK_5,
|
|
4432
4536
|
height: t = 18,
|
|
@@ -4453,7 +4557,7 @@ const h2 = ({
|
|
|
4453
4557
|
}
|
|
4454
4558
|
)
|
|
4455
4559
|
}
|
|
4456
|
-
),
|
|
4560
|
+
), t5 = ({
|
|
4457
4561
|
className: i,
|
|
4458
4562
|
color: e = y.GREY_DARK_5,
|
|
4459
4563
|
height: t = 24,
|
|
@@ -4505,7 +4609,7 @@ const h2 = ({
|
|
|
4505
4609
|
)
|
|
4506
4610
|
]
|
|
4507
4611
|
}
|
|
4508
|
-
),
|
|
4612
|
+
), i5 = ({
|
|
4509
4613
|
className: i,
|
|
4510
4614
|
color: e = y.GREY_DARK_5,
|
|
4511
4615
|
height: t = 24,
|
|
@@ -4542,7 +4646,7 @@ const h2 = ({
|
|
|
4542
4646
|
)
|
|
4543
4647
|
]
|
|
4544
4648
|
}
|
|
4545
|
-
),
|
|
4649
|
+
), n5 = ({
|
|
4546
4650
|
className: i,
|
|
4547
4651
|
color: e = y.NOTIFICATION_WARNING_DARK,
|
|
4548
4652
|
height: t = 37,
|
|
@@ -4581,7 +4685,7 @@ const h2 = ({
|
|
|
4581
4685
|
)
|
|
4582
4686
|
]
|
|
4583
4687
|
}
|
|
4584
|
-
),
|
|
4688
|
+
), s5 = ({
|
|
4585
4689
|
className: i,
|
|
4586
4690
|
color: e = y.GREY_DARK_5,
|
|
4587
4691
|
height: t = 24,
|
|
@@ -4607,7 +4711,7 @@ const h2 = ({
|
|
|
4607
4711
|
}
|
|
4608
4712
|
)
|
|
4609
4713
|
}
|
|
4610
|
-
),
|
|
4714
|
+
), o5 = ({
|
|
4611
4715
|
className: i,
|
|
4612
4716
|
color: e = y.GREY_DARK_5,
|
|
4613
4717
|
height: t = 24,
|
|
@@ -4646,7 +4750,7 @@ const h2 = ({
|
|
|
4646
4750
|
)
|
|
4647
4751
|
]
|
|
4648
4752
|
}
|
|
4649
|
-
),
|
|
4753
|
+
), r5 = ({
|
|
4650
4754
|
className: i,
|
|
4651
4755
|
color: e = y.GREY_DARK_5,
|
|
4652
4756
|
height: t = 24,
|
|
@@ -4685,7 +4789,7 @@ const h2 = ({
|
|
|
4685
4789
|
)
|
|
4686
4790
|
]
|
|
4687
4791
|
}
|
|
4688
|
-
),
|
|
4792
|
+
), a5 = ({
|
|
4689
4793
|
className: i,
|
|
4690
4794
|
color: e = y.GREY_DARK_5,
|
|
4691
4795
|
height: t = 24,
|
|
@@ -4754,7 +4858,7 @@ const h2 = ({
|
|
|
4754
4858
|
)
|
|
4755
4859
|
]
|
|
4756
4860
|
}
|
|
4757
|
-
),
|
|
4861
|
+
), l5 = ({
|
|
4758
4862
|
className: i,
|
|
4759
4863
|
color: e = y.GREY_DARK_5,
|
|
4760
4864
|
height: t = 24,
|
|
@@ -4811,7 +4915,7 @@ const h2 = ({
|
|
|
4811
4915
|
)
|
|
4812
4916
|
]
|
|
4813
4917
|
}
|
|
4814
|
-
),
|
|
4918
|
+
), h5 = ({
|
|
4815
4919
|
className: i,
|
|
4816
4920
|
color: e = y.GREY_DARK_5,
|
|
4817
4921
|
height: t = 24,
|
|
@@ -4850,7 +4954,7 @@ const h2 = ({
|
|
|
4850
4954
|
)
|
|
4851
4955
|
]
|
|
4852
4956
|
}
|
|
4853
|
-
),
|
|
4957
|
+
), c5 = ({
|
|
4854
4958
|
className: i,
|
|
4855
4959
|
color: e = y.GREY_DARK_5,
|
|
4856
4960
|
height: t = 24,
|
|
@@ -4899,7 +5003,7 @@ const h2 = ({
|
|
|
4899
5003
|
)
|
|
4900
5004
|
]
|
|
4901
5005
|
}
|
|
4902
|
-
),
|
|
5006
|
+
), d5 = ({
|
|
4903
5007
|
className: i,
|
|
4904
5008
|
color: e = y.GREY_DARK_5,
|
|
4905
5009
|
height: t = 24,
|
|
@@ -4926,7 +5030,7 @@ const h2 = ({
|
|
|
4926
5030
|
}
|
|
4927
5031
|
)
|
|
4928
5032
|
}
|
|
4929
|
-
),
|
|
5033
|
+
), g5 = ({
|
|
4930
5034
|
className: i,
|
|
4931
5035
|
color: e = y.GREY_DARK_5,
|
|
4932
5036
|
height: t = 20,
|
|
@@ -4955,7 +5059,7 @@ const h2 = ({
|
|
|
4955
5059
|
)
|
|
4956
5060
|
]
|
|
4957
5061
|
}
|
|
4958
|
-
),
|
|
5062
|
+
), u5 = ({
|
|
4959
5063
|
className: i,
|
|
4960
5064
|
color: e = "#001E52",
|
|
4961
5065
|
height: t = 24,
|
|
@@ -4981,7 +5085,7 @@ const h2 = ({
|
|
|
4981
5085
|
}
|
|
4982
5086
|
)
|
|
4983
5087
|
}
|
|
4984
|
-
),
|
|
5088
|
+
), C5 = ({
|
|
4985
5089
|
className: i,
|
|
4986
5090
|
color: e = "#131314",
|
|
4987
5091
|
height: t = 20,
|
|
@@ -5009,7 +5113,7 @@ const h2 = ({
|
|
|
5009
5113
|
}
|
|
5010
5114
|
)
|
|
5011
5115
|
}
|
|
5012
|
-
),
|
|
5116
|
+
), p5 = ({
|
|
5013
5117
|
className: i,
|
|
5014
5118
|
color: e = "#001E52",
|
|
5015
5119
|
height: t = 24,
|
|
@@ -5047,7 +5151,7 @@ const h2 = ({
|
|
|
5047
5151
|
)
|
|
5048
5152
|
] }) })
|
|
5049
5153
|
}
|
|
5050
|
-
),
|
|
5154
|
+
), f5 = ({
|
|
5051
5155
|
width: i = 20,
|
|
5052
5156
|
height: e = 20,
|
|
5053
5157
|
color: t = "#001E52",
|
|
@@ -5103,7 +5207,7 @@ const h2 = ({
|
|
|
5103
5207
|
}
|
|
5104
5208
|
)
|
|
5105
5209
|
}
|
|
5106
|
-
),
|
|
5210
|
+
), m5 = ({
|
|
5107
5211
|
width: i = 24,
|
|
5108
5212
|
height: e = 24,
|
|
5109
5213
|
color: t = "#131314",
|
|
@@ -5136,7 +5240,7 @@ const h2 = ({
|
|
|
5136
5240
|
)
|
|
5137
5241
|
]
|
|
5138
5242
|
}
|
|
5139
|
-
),
|
|
5243
|
+
), w5 = ({
|
|
5140
5244
|
width: i = 24,
|
|
5141
5245
|
height: e = 24,
|
|
5142
5246
|
color: t = y.GREY_DARK_2,
|
|
@@ -5175,7 +5279,7 @@ const h2 = ({
|
|
|
5175
5279
|
)
|
|
5176
5280
|
]
|
|
5177
5281
|
}
|
|
5178
|
-
),
|
|
5282
|
+
), k5 = ({
|
|
5179
5283
|
width: i = 24,
|
|
5180
5284
|
height: e = 24,
|
|
5181
5285
|
color: t = y.GREY_DARK_2,
|
|
@@ -5202,7 +5306,7 @@ const h2 = ({
|
|
|
5202
5306
|
}
|
|
5203
5307
|
)
|
|
5204
5308
|
}
|
|
5205
|
-
),
|
|
5309
|
+
), L5 = ({
|
|
5206
5310
|
width: i = 24,
|
|
5207
5311
|
height: e = 24,
|
|
5208
5312
|
color: t = y.GREY_DARK_2,
|
|
@@ -5242,7 +5346,7 @@ const h2 = ({
|
|
|
5242
5346
|
)
|
|
5243
5347
|
]
|
|
5244
5348
|
}
|
|
5245
|
-
),
|
|
5349
|
+
), v5 = ({
|
|
5246
5350
|
width: i = 24,
|
|
5247
5351
|
height: e = 24,
|
|
5248
5352
|
color: t = y.GREY_DARK_2,
|
|
@@ -5269,7 +5373,7 @@ const h2 = ({
|
|
|
5269
5373
|
}
|
|
5270
5374
|
)
|
|
5271
5375
|
}
|
|
5272
|
-
),
|
|
5376
|
+
), N5 = ({
|
|
5273
5377
|
width: i = 24,
|
|
5274
5378
|
height: e = 24,
|
|
5275
5379
|
color: t = y.GREY_DARK_2,
|
|
@@ -5296,7 +5400,7 @@ const h2 = ({
|
|
|
5296
5400
|
}
|
|
5297
5401
|
)
|
|
5298
5402
|
}
|
|
5299
|
-
),
|
|
5403
|
+
), x5 = ({
|
|
5300
5404
|
width: i = 20,
|
|
5301
5405
|
height: e = 20,
|
|
5302
5406
|
color: t = "#001E52",
|
|
@@ -5322,256 +5426,258 @@ const h2 = ({
|
|
|
5322
5426
|
}
|
|
5323
5427
|
)
|
|
5324
5428
|
}
|
|
5325
|
-
),
|
|
5429
|
+
), R5 = ({
|
|
5326
5430
|
name: i,
|
|
5327
5431
|
width: e,
|
|
5328
5432
|
height: t,
|
|
5329
5433
|
color: n,
|
|
5330
5434
|
className: s,
|
|
5331
|
-
disabled:
|
|
5435
|
+
disabled: a = !1,
|
|
5332
5436
|
onClick: c
|
|
5333
5437
|
}) => {
|
|
5334
|
-
const [
|
|
5438
|
+
const [r, g] = O(s), { theme: d } = Q(ie), l = a ? d && d === "dark" ? y.GREY_LIGHT_4 : y.GREY_DARK_1 : n, h = a ? void 0 : c;
|
|
5335
5439
|
return S(() => {
|
|
5336
5440
|
if (s) {
|
|
5337
|
-
h && !
|
|
5441
|
+
h && !a && g(`${s} clickable`);
|
|
5338
5442
|
return;
|
|
5339
5443
|
}
|
|
5340
|
-
h && !
|
|
5341
|
-
}, [h, s,
|
|
5444
|
+
h && !a && g("clickable");
|
|
5445
|
+
}, [h, s, a]), /* @__PURE__ */ o(Y, { children: (() => {
|
|
5342
5446
|
switch (i) {
|
|
5343
5447
|
case "nextIcon":
|
|
5344
|
-
return
|
|
5448
|
+
return Pt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5345
5449
|
case "prevIcon":
|
|
5346
|
-
return
|
|
5450
|
+
return $t({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5347
5451
|
case "arrowDown":
|
|
5348
|
-
return
|
|
5452
|
+
return ct({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5349
5453
|
case "info":
|
|
5350
|
-
return
|
|
5454
|
+
return dt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5351
5455
|
case "arrowRight":
|
|
5352
|
-
return
|
|
5456
|
+
return gt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5353
5457
|
case "calendar":
|
|
5354
|
-
return
|
|
5458
|
+
return ut({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5355
5459
|
case "ok":
|
|
5356
|
-
return
|
|
5460
|
+
return Ct({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5357
5461
|
case "cancel":
|
|
5358
|
-
return
|
|
5462
|
+
return pt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5359
5463
|
case "add":
|
|
5360
|
-
return
|
|
5464
|
+
return ft({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5361
5465
|
case "list":
|
|
5362
|
-
return
|
|
5466
|
+
return mt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5363
5467
|
case "dragAndDrop":
|
|
5364
|
-
return
|
|
5468
|
+
return wt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5365
5469
|
case "filter":
|
|
5366
|
-
return
|
|
5470
|
+
return kt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5367
5471
|
case "attention":
|
|
5368
|
-
return
|
|
5472
|
+
return Lt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5369
5473
|
case "users":
|
|
5370
|
-
return
|
|
5474
|
+
return vt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5371
5475
|
case "mySkillsMatrix":
|
|
5372
|
-
return
|
|
5476
|
+
return Nt({
|
|
5373
5477
|
width: e,
|
|
5374
5478
|
height: t,
|
|
5375
5479
|
color: l,
|
|
5376
|
-
className:
|
|
5480
|
+
className: r,
|
|
5377
5481
|
onClick: h
|
|
5378
5482
|
});
|
|
5379
5483
|
case "skills":
|
|
5380
|
-
return
|
|
5484
|
+
return xt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5381
5485
|
case "skillsMatrices":
|
|
5382
|
-
return
|
|
5486
|
+
return Rt({
|
|
5383
5487
|
width: e,
|
|
5384
5488
|
height: t,
|
|
5385
5489
|
color: l,
|
|
5386
|
-
className:
|
|
5490
|
+
className: r,
|
|
5387
5491
|
onClick: h
|
|
5388
5492
|
});
|
|
5389
5493
|
case "history":
|
|
5390
|
-
return
|
|
5494
|
+
return Mt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5391
5495
|
case "logOut":
|
|
5392
|
-
return
|
|
5496
|
+
return bt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5393
5497
|
case "settings":
|
|
5394
|
-
return
|
|
5498
|
+
return yt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5395
5499
|
case "trash":
|
|
5396
|
-
return
|
|
5500
|
+
return _t({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5397
5501
|
case "settings4":
|
|
5398
|
-
return
|
|
5502
|
+
return Et({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5399
5503
|
case "success":
|
|
5400
|
-
return
|
|
5504
|
+
return Ht({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5505
|
+
case "checkCircle":
|
|
5506
|
+
return It({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5401
5507
|
case "errorSmall":
|
|
5402
|
-
return
|
|
5508
|
+
return Ot({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5403
5509
|
case "infoMedium":
|
|
5404
|
-
return
|
|
5510
|
+
return St({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5405
5511
|
case "attentionMedium":
|
|
5406
|
-
return
|
|
5512
|
+
return Vt({
|
|
5407
5513
|
width: e,
|
|
5408
5514
|
height: t,
|
|
5409
5515
|
color: l,
|
|
5410
|
-
className:
|
|
5516
|
+
className: r,
|
|
5411
5517
|
onClick: h
|
|
5412
5518
|
});
|
|
5413
5519
|
case "errorMedium":
|
|
5414
|
-
return
|
|
5520
|
+
return At({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5415
5521
|
case "visibilityIcon":
|
|
5416
|
-
return
|
|
5522
|
+
return Tt({
|
|
5417
5523
|
width: e,
|
|
5418
5524
|
height: t,
|
|
5419
5525
|
color: l,
|
|
5420
|
-
className:
|
|
5526
|
+
className: r,
|
|
5421
5527
|
onClick: h
|
|
5422
5528
|
});
|
|
5423
5529
|
case "visibilityOffIcon":
|
|
5424
|
-
return
|
|
5530
|
+
return Zt({
|
|
5425
5531
|
width: e,
|
|
5426
5532
|
height: t,
|
|
5427
5533
|
color: l,
|
|
5428
|
-
className:
|
|
5534
|
+
className: r,
|
|
5429
5535
|
onClick: h
|
|
5430
5536
|
});
|
|
5431
5537
|
case "selectArrowIcon":
|
|
5432
|
-
return
|
|
5538
|
+
return Dt({
|
|
5433
5539
|
width: e,
|
|
5434
5540
|
height: t,
|
|
5435
5541
|
color: l,
|
|
5436
|
-
className:
|
|
5542
|
+
className: r,
|
|
5437
5543
|
onClick: h
|
|
5438
5544
|
});
|
|
5439
5545
|
case "expandArrowIcon":
|
|
5440
|
-
return
|
|
5546
|
+
return Bt({
|
|
5441
5547
|
width: e,
|
|
5442
5548
|
height: t,
|
|
5443
5549
|
color: l,
|
|
5444
|
-
className:
|
|
5550
|
+
className: r,
|
|
5445
5551
|
onClick: h
|
|
5446
5552
|
});
|
|
5447
5553
|
case "expandActiveArrowIcon":
|
|
5448
|
-
return
|
|
5554
|
+
return jt({
|
|
5449
5555
|
width: e,
|
|
5450
5556
|
height: t,
|
|
5451
5557
|
color: l,
|
|
5452
|
-
className:
|
|
5558
|
+
className: r,
|
|
5453
5559
|
onClick: h
|
|
5454
5560
|
});
|
|
5455
5561
|
case "sortUp":
|
|
5456
|
-
return
|
|
5562
|
+
return Gt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5457
5563
|
case "sortDown":
|
|
5458
|
-
return
|
|
5564
|
+
return Wt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5459
5565
|
case "search":
|
|
5460
|
-
return
|
|
5566
|
+
return Kt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5461
5567
|
case "arrowUpFilled":
|
|
5462
|
-
return
|
|
5568
|
+
return Yt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5463
5569
|
case "arrowDownFilled":
|
|
5464
|
-
return
|
|
5570
|
+
return Ft({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5465
5571
|
case "link":
|
|
5466
|
-
return
|
|
5572
|
+
return Ut({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5467
5573
|
case "telegram":
|
|
5468
|
-
return
|
|
5574
|
+
return Jt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5469
5575
|
case "mail":
|
|
5470
|
-
return
|
|
5576
|
+
return qt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5471
5577
|
case "github":
|
|
5472
|
-
return
|
|
5578
|
+
return zt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5473
5579
|
case "linkedIn":
|
|
5474
|
-
return
|
|
5580
|
+
return Qt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5475
5581
|
case "emptyStateIcon":
|
|
5476
|
-
return
|
|
5582
|
+
return Xt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5477
5583
|
case "filtersIcon":
|
|
5478
|
-
return
|
|
5584
|
+
return e5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5479
5585
|
case "dotMenuIcon":
|
|
5480
|
-
return
|
|
5586
|
+
return t5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5481
5587
|
case "plusCircle":
|
|
5482
|
-
return
|
|
5588
|
+
return i5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5483
5589
|
case "warning":
|
|
5484
|
-
return
|
|
5590
|
+
return n5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5485
5591
|
case "back":
|
|
5486
|
-
return
|
|
5592
|
+
return s5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5487
5593
|
case "bell":
|
|
5488
|
-
return
|
|
5594
|
+
return o5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5489
5595
|
case "contract":
|
|
5490
|
-
return
|
|
5596
|
+
return a5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5491
5597
|
case "trash2":
|
|
5492
|
-
return
|
|
5598
|
+
return r5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5493
5599
|
case "resourceManager":
|
|
5494
|
-
return
|
|
5600
|
+
return l5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5495
5601
|
case "settings2":
|
|
5496
|
-
return
|
|
5602
|
+
return h5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5497
5603
|
case "image":
|
|
5498
|
-
return
|
|
5604
|
+
return c5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5499
5605
|
case "edit":
|
|
5500
|
-
return
|
|
5606
|
+
return d5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5501
5607
|
case "filledArrowRight":
|
|
5502
|
-
return
|
|
5608
|
+
return g5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5503
5609
|
case "burgerMenu":
|
|
5504
|
-
return
|
|
5610
|
+
return u5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5505
5611
|
case "signOut":
|
|
5506
|
-
return
|
|
5612
|
+
return C5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5507
5613
|
case "refresh":
|
|
5508
|
-
return
|
|
5614
|
+
return p5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5509
5615
|
case "projects":
|
|
5510
|
-
return
|
|
5616
|
+
return f5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5511
5617
|
case "profile":
|
|
5512
|
-
return
|
|
5618
|
+
return x5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5513
5619
|
case "exit":
|
|
5514
|
-
return
|
|
5620
|
+
return m5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5515
5621
|
case "client":
|
|
5516
|
-
return
|
|
5622
|
+
return w5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5517
5623
|
case "calendar2":
|
|
5518
|
-
return
|
|
5624
|
+
return k5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5519
5625
|
case "openPointCircle":
|
|
5520
|
-
return
|
|
5626
|
+
return L5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5521
5627
|
case "community":
|
|
5522
|
-
return
|
|
5628
|
+
return v5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5523
5629
|
case "docs":
|
|
5524
|
-
return
|
|
5630
|
+
return N5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
5525
5631
|
default:
|
|
5526
5632
|
return /* @__PURE__ */ o(Y, { children: "No Icon provided" });
|
|
5527
5633
|
}
|
|
5528
5634
|
})() });
|
|
5529
5635
|
};
|
|
5530
5636
|
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 || {});
|
|
5531
|
-
const
|
|
5637
|
+
const M5 = t1({
|
|
5532
5638
|
locale: "en",
|
|
5533
5639
|
theme: "light"
|
|
5534
5640
|
});
|
|
5535
|
-
|
|
5641
|
+
M5.Provider;
|
|
5536
5642
|
const ne = ({
|
|
5537
5643
|
children: i,
|
|
5538
5644
|
width: e,
|
|
5539
5645
|
size: t = "small",
|
|
5540
5646
|
onClose: n,
|
|
5541
5647
|
closable: s = !0,
|
|
5542
|
-
disabled:
|
|
5648
|
+
disabled: a = !1
|
|
5543
5649
|
}) => {
|
|
5544
|
-
const c = t === "small" ? 10 : 12.5,
|
|
5545
|
-
|
|
5650
|
+
const c = t === "small" ? 10 : 12.5, r = () => {
|
|
5651
|
+
a || n == null || n();
|
|
5546
5652
|
};
|
|
5547
5653
|
return /* @__PURE__ */ o(
|
|
5548
5654
|
Le,
|
|
5549
5655
|
{
|
|
5550
|
-
className: `snmt-tag ${t} ${
|
|
5656
|
+
className: `snmt-tag ${t} ${a ? "disabled" : ""}`,
|
|
5551
5657
|
closeIcon: /* @__PURE__ */ o(
|
|
5552
|
-
|
|
5658
|
+
R5,
|
|
5553
5659
|
{
|
|
5554
5660
|
name: "errorSmall",
|
|
5555
|
-
color:
|
|
5661
|
+
color: a ? r1.GREY_DARK_1 : r1.GREY_DARK_2,
|
|
5556
5662
|
width: c,
|
|
5557
5663
|
height: c,
|
|
5558
|
-
onClick:
|
|
5664
|
+
onClick: r
|
|
5559
5665
|
}
|
|
5560
5666
|
),
|
|
5561
5667
|
bordered: !1,
|
|
5562
5668
|
style: { width: e ?? "fit-content" },
|
|
5563
5669
|
closable: s,
|
|
5564
5670
|
children: typeof i == "string" ? /* @__PURE__ */ o(
|
|
5565
|
-
|
|
5671
|
+
ht,
|
|
5566
5672
|
{
|
|
5567
5673
|
variant: t === "small" ? "body4" : "body2",
|
|
5568
|
-
color:
|
|
5674
|
+
color: a ? r1.GREY_DARK_2 : r1.GREY_DARK_5,
|
|
5569
5675
|
children: i
|
|
5570
5676
|
}
|
|
5571
5677
|
) : i
|
|
5572
5678
|
}
|
|
5573
5679
|
);
|
|
5574
|
-
},
|
|
5680
|
+
}, b5 = ({ children: i, title: e, arrow: t = !0, open: n, placement: s = "top" }) => /* @__PURE__ */ o(
|
|
5575
5681
|
J1,
|
|
5576
5682
|
{
|
|
5577
5683
|
overlayClassName: "snmt-tooltip",
|
|
@@ -5581,55 +5687,55 @@ const ne = ({
|
|
|
5581
5687
|
placement: s,
|
|
5582
5688
|
children: i
|
|
5583
5689
|
}
|
|
5584
|
-
), { Title:
|
|
5690
|
+
), { Title: y5, Text: _5 } = Q1, E5 = {
|
|
5585
5691
|
h1: 1,
|
|
5586
5692
|
h2: 2,
|
|
5587
5693
|
h3: 3,
|
|
5588
5694
|
h4: 4
|
|
5589
|
-
},
|
|
5695
|
+
}, H5 = w1(
|
|
5590
5696
|
({
|
|
5591
5697
|
align: i = "inherit",
|
|
5592
5698
|
variant: e = "body1",
|
|
5593
5699
|
color: t,
|
|
5594
5700
|
children: n,
|
|
5595
5701
|
onClick: s,
|
|
5596
|
-
collapsed:
|
|
5702
|
+
collapsed: a,
|
|
5597
5703
|
whiteSpace: c = "normal",
|
|
5598
5704
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5599
|
-
trim:
|
|
5705
|
+
trim: r = !1
|
|
5600
5706
|
}, g) => {
|
|
5601
5707
|
const d = J(null);
|
|
5602
5708
|
q1(g, () => d.current);
|
|
5603
5709
|
const [l, h] = O(!1);
|
|
5604
5710
|
S(() => {
|
|
5605
|
-
if (!
|
|
5711
|
+
if (!r) return;
|
|
5606
5712
|
const m = () => {
|
|
5607
5713
|
d.current && h(d.current.scrollWidth > d.current.clientWidth);
|
|
5608
|
-
},
|
|
5609
|
-
return d.current &&
|
|
5610
|
-
|
|
5714
|
+
}, _ = new ResizeObserver(m);
|
|
5715
|
+
return d.current && _.observe(d.current), () => {
|
|
5716
|
+
_.disconnect();
|
|
5611
5717
|
};
|
|
5612
|
-
}, [
|
|
5718
|
+
}, [r, l]);
|
|
5613
5719
|
const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5614
5720
|
let p = `snmt-typography snmt-typography-${e}`;
|
|
5615
|
-
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`),
|
|
5721
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), a && (p += " collapsed"), r && (p += " collapsed");
|
|
5616
5722
|
const w = {
|
|
5617
5723
|
className: p,
|
|
5618
|
-
style: { color: t, whiteSpace:
|
|
5724
|
+
style: { color: t, whiteSpace: r ? "nowrap" : c, display: r ? "block" : "" },
|
|
5619
5725
|
onClick: s,
|
|
5620
5726
|
ref: d
|
|
5621
|
-
}, L = u ? /* @__PURE__ */ o(
|
|
5622
|
-
return
|
|
5727
|
+
}, L = u ? /* @__PURE__ */ o(y5, { level: E5[e], ...w, children: n }) : /* @__PURE__ */ o(_5, { ...w, children: n });
|
|
5728
|
+
return r && l ? /* @__PURE__ */ o(b5, { placement: "top", title: n, children: L }) : L;
|
|
5623
5729
|
}
|
|
5624
|
-
),
|
|
5730
|
+
), I5 = ({
|
|
5625
5731
|
children: i,
|
|
5626
5732
|
content: e,
|
|
5627
5733
|
isOpen: t,
|
|
5628
5734
|
setIsOpen: n,
|
|
5629
5735
|
placement: s = "topRight",
|
|
5630
|
-
noPadding:
|
|
5736
|
+
noPadding: a = !1
|
|
5631
5737
|
}) => {
|
|
5632
|
-
const [c,
|
|
5738
|
+
const [c, r] = O(!1);
|
|
5633
5739
|
return /* @__PURE__ */ o(
|
|
5634
5740
|
ve,
|
|
5635
5741
|
{
|
|
@@ -5637,16 +5743,16 @@ const ne = ({
|
|
|
5637
5743
|
arrow: !1,
|
|
5638
5744
|
placement: s,
|
|
5639
5745
|
trigger: "click",
|
|
5640
|
-
overlayClassName: `snmt-popover ${
|
|
5746
|
+
overlayClassName: `snmt-popover ${a ? "" : "padding"}`,
|
|
5641
5747
|
open: t ?? c,
|
|
5642
5748
|
onOpenChange: (g) => {
|
|
5643
|
-
|
|
5749
|
+
r(g), n == null || n(g);
|
|
5644
5750
|
},
|
|
5645
5751
|
children: /* @__PURE__ */ o("div", { className: "wrapper", children: i })
|
|
5646
5752
|
}
|
|
5647
5753
|
);
|
|
5648
5754
|
};
|
|
5649
|
-
var
|
|
5755
|
+
var O5 = { exports: {} };
|
|
5650
5756
|
(function(i, e) {
|
|
5651
5757
|
(function(t, n) {
|
|
5652
5758
|
i.exports = n();
|
|
@@ -5656,27 +5762,27 @@ var Hi = { exports: {} };
|
|
|
5656
5762
|
return "[" + t + (n[(s - 20) % 10] || n[s] || n[0]) + "]";
|
|
5657
5763
|
} };
|
|
5658
5764
|
});
|
|
5659
|
-
})(
|
|
5660
|
-
const
|
|
5765
|
+
})(O5);
|
|
5766
|
+
const S5 = ({
|
|
5661
5767
|
values: i,
|
|
5662
5768
|
onTagClose: e,
|
|
5663
5769
|
maxWidth: t,
|
|
5664
5770
|
closable: n = !0,
|
|
5665
5771
|
disabled: s,
|
|
5666
|
-
options:
|
|
5772
|
+
options: a,
|
|
5667
5773
|
extraOptions: c
|
|
5668
5774
|
}) => {
|
|
5669
|
-
const { locale:
|
|
5775
|
+
const { locale: r } = Q(_1), { t: g } = We("common", { lng: r }), [d, l] = O(!1);
|
|
5670
5776
|
if (S(() => {
|
|
5671
5777
|
i.length || l(!1);
|
|
5672
5778
|
}, [i]), !i.length)
|
|
5673
5779
|
return null;
|
|
5674
5780
|
const h = (u) => {
|
|
5675
5781
|
var p, w;
|
|
5676
|
-
return ((p =
|
|
5782
|
+
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;
|
|
5677
5783
|
};
|
|
5678
5784
|
return /* @__PURE__ */ C(
|
|
5679
|
-
|
|
5785
|
+
I5,
|
|
5680
5786
|
{
|
|
5681
5787
|
content: (
|
|
5682
5788
|
// 90: paddings + margins + gaps and so on
|
|
@@ -5709,16 +5815,16 @@ const Ii = ({
|
|
|
5709
5815
|
backgroundSize: "20% calc(200% + 20px)"
|
|
5710
5816
|
};
|
|
5711
5817
|
return /* @__PURE__ */ o("span", { className: "snmt-loader", style: n });
|
|
5712
|
-
},
|
|
5818
|
+
}, V5 = w1(
|
|
5713
5819
|
({
|
|
5714
5820
|
value: i,
|
|
5715
5821
|
onChange: e,
|
|
5716
5822
|
placeholder: t,
|
|
5717
5823
|
mode: n,
|
|
5718
5824
|
search: s = !1,
|
|
5719
|
-
options:
|
|
5825
|
+
options: a,
|
|
5720
5826
|
width: c,
|
|
5721
|
-
disabled:
|
|
5827
|
+
disabled: r = !1,
|
|
5722
5828
|
required: g = !1,
|
|
5723
5829
|
clearable: d = !1,
|
|
5724
5830
|
scrollThresholdValue: l = 50,
|
|
@@ -5728,51 +5834,51 @@ const Ii = ({
|
|
|
5728
5834
|
onPopupScroll: w,
|
|
5729
5835
|
id: L,
|
|
5730
5836
|
extraOptions: m,
|
|
5731
|
-
dropdownRender:
|
|
5837
|
+
dropdownRender: _,
|
|
5732
5838
|
optionRender: M,
|
|
5733
5839
|
isLoading: H,
|
|
5734
5840
|
readOnly: f,
|
|
5735
5841
|
error: R
|
|
5736
5842
|
}, v) => {
|
|
5737
|
-
const [N,
|
|
5843
|
+
const [N, Z] = O(!1), [W, i1] = O(!1), [$, h1] = O(!0), [I, K] = O(i), F = J(null);
|
|
5738
5844
|
S(() => {
|
|
5739
5845
|
K(i);
|
|
5740
5846
|
}, [i]);
|
|
5741
5847
|
const q = (x) => {
|
|
5742
|
-
|
|
5743
|
-
}, c1 = (x,
|
|
5744
|
-
var
|
|
5745
|
-
return !!((
|
|
5848
|
+
Z(x), u && u(x);
|
|
5849
|
+
}, c1 = (x, E) => {
|
|
5850
|
+
var D;
|
|
5851
|
+
return !!((D = E == null ? void 0 : E.label) != null && D.toString().toLowerCase().includes(x.toLowerCase()));
|
|
5746
5852
|
}, A = () => {
|
|
5747
5853
|
i1(!0);
|
|
5748
5854
|
}, P = () => {
|
|
5749
5855
|
i1(!1);
|
|
5750
|
-
}, T =
|
|
5856
|
+
}, T = j(
|
|
5751
5857
|
(x) => {
|
|
5752
5858
|
if (K(x), n) {
|
|
5753
|
-
const
|
|
5754
|
-
e == null || e(
|
|
5859
|
+
const D = x;
|
|
5860
|
+
e == null || e(D);
|
|
5755
5861
|
return;
|
|
5756
5862
|
}
|
|
5757
|
-
const
|
|
5758
|
-
e == null || e(
|
|
5863
|
+
const E = x;
|
|
5864
|
+
e == null || e(E);
|
|
5759
5865
|
},
|
|
5760
5866
|
[n, e]
|
|
5761
|
-
), d1 =
|
|
5762
|
-
if (!(f ||
|
|
5867
|
+
), d1 = j(() => {
|
|
5868
|
+
if (!(f || r)) {
|
|
5763
5869
|
if (n) {
|
|
5764
5870
|
T([]);
|
|
5765
5871
|
return;
|
|
5766
5872
|
}
|
|
5767
5873
|
T("");
|
|
5768
5874
|
}
|
|
5769
|
-
}, [
|
|
5875
|
+
}, [r, T, n, f]), g1 = j(
|
|
5770
5876
|
(x) => {
|
|
5771
|
-
const
|
|
5772
|
-
T(
|
|
5877
|
+
const E = I.filter((D) => D !== x);
|
|
5878
|
+
T(E), K(E);
|
|
5773
5879
|
},
|
|
5774
5880
|
[T, I]
|
|
5775
|
-
),
|
|
5881
|
+
), E1 = j(
|
|
5776
5882
|
(x) => (I == null ? void 0 : I.indexOf(x)) === 0 ? (
|
|
5777
5883
|
// if the search input is empty
|
|
5778
5884
|
// then display the placeholder, else do not display it
|
|
@@ -5782,42 +5888,42 @@ const Ii = ({
|
|
|
5782
5888
|
), he = (x) => {
|
|
5783
5889
|
x.preventDefault(), x.stopPropagation();
|
|
5784
5890
|
}, ce = async (x) => {
|
|
5785
|
-
const { target:
|
|
5786
|
-
|
|
5787
|
-
}, L1 =
|
|
5891
|
+
const { target: E } = x;
|
|
5892
|
+
E.scrollTop + E.offsetHeight >= E.scrollHeight - l && (p == null || p(!0)), w && await w(x);
|
|
5893
|
+
}, L1 = j(
|
|
5788
5894
|
(x) => {
|
|
5789
|
-
var
|
|
5790
|
-
return ((
|
|
5895
|
+
var E, D;
|
|
5896
|
+
return ((E = a.find((v1) => v1.value === x)) == null ? void 0 : E.label) || ((D = m == null ? void 0 : m.find(
|
|
5791
5897
|
(v1) => v1.value === x
|
|
5792
|
-
)) == null ? void 0 :
|
|
5898
|
+
)) == null ? void 0 : D.label) || x;
|
|
5793
5899
|
},
|
|
5794
|
-
[m,
|
|
5795
|
-
), de =
|
|
5900
|
+
[m, a]
|
|
5901
|
+
), de = j(
|
|
5796
5902
|
(x) => {
|
|
5797
|
-
var
|
|
5903
|
+
var E;
|
|
5798
5904
|
return /* @__PURE__ */ o(
|
|
5799
|
-
|
|
5905
|
+
S5,
|
|
5800
5906
|
{
|
|
5801
5907
|
values: x,
|
|
5802
5908
|
onTagClose: g1,
|
|
5803
|
-
maxWidth: ((
|
|
5804
|
-
disabled:
|
|
5909
|
+
maxWidth: ((E = F.current) == null ? void 0 : E.clientWidth) || 0,
|
|
5910
|
+
disabled: r,
|
|
5805
5911
|
closable: !f,
|
|
5806
|
-
options:
|
|
5912
|
+
options: a,
|
|
5807
5913
|
extraOptions: m
|
|
5808
5914
|
}
|
|
5809
5915
|
);
|
|
5810
5916
|
},
|
|
5811
|
-
[
|
|
5812
|
-
), ge =
|
|
5813
|
-
({ label: x, value:
|
|
5814
|
-
[
|
|
5917
|
+
[r, m, g1, a, f]
|
|
5918
|
+
), ge = j(
|
|
5919
|
+
({ label: x, value: E, mode: D }) => D === "filter" ? E1(E) : /* @__PURE__ */ o("div", { onMouseDown: he, className: "tag-wrapper", children: /* @__PURE__ */ o(ne, { onClose: () => g1(E), disabled: r, children: typeof x == "object" ? x : L1(E) }) }),
|
|
5920
|
+
[r, L1, g1, E1]
|
|
5815
5921
|
), H1 = Array.isArray(I) && I.length > 0 || !!I && typeof I == "string" && I.trim() !== "";
|
|
5816
5922
|
return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
|
|
5817
5923
|
/* @__PURE__ */ C(
|
|
5818
5924
|
"div",
|
|
5819
5925
|
{
|
|
5820
|
-
className: `snmt-select-1-15-6 ${
|
|
5926
|
+
className: `snmt-select-1-15-6 ${W ? "snmt-select-focused" : ""}
|
|
5821
5927
|
${n ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
|
5822
5928
|
ref: F,
|
|
5823
5929
|
style: { width: c },
|
|
@@ -5832,11 +5938,11 @@ const Ii = ({
|
|
|
5832
5938
|
showSearch: !!s,
|
|
5833
5939
|
filterOption: s && c1,
|
|
5834
5940
|
onDropdownVisibleChange: q,
|
|
5835
|
-
disabled:
|
|
5941
|
+
disabled: r,
|
|
5836
5942
|
value: I || void 0,
|
|
5837
5943
|
labelRender: (x) => {
|
|
5838
|
-
const
|
|
5839
|
-
return
|
|
5944
|
+
const E = L1(x.value);
|
|
5945
|
+
return r ? /* @__PURE__ */ o("span", { style: { color: B.GREY_DARK_1 }, children: E }) : E;
|
|
5840
5946
|
},
|
|
5841
5947
|
mode: n === "filter" ? "multiple" : n,
|
|
5842
5948
|
onChange: T,
|
|
@@ -5858,13 +5964,13 @@ const Ii = ({
|
|
|
5858
5964
|
{
|
|
5859
5965
|
onClick: d1,
|
|
5860
5966
|
style: {
|
|
5861
|
-
cursor:
|
|
5967
|
+
cursor: r ? "not-allowed" : "pointer"
|
|
5862
5968
|
},
|
|
5863
5969
|
children: /* @__PURE__ */ o(
|
|
5864
5970
|
n1,
|
|
5865
5971
|
{
|
|
5866
5972
|
name: "cancel",
|
|
5867
|
-
color:
|
|
5973
|
+
color: r ? B.GREY_DARK_1 : B.GREY_DARK_5
|
|
5868
5974
|
}
|
|
5869
5975
|
)
|
|
5870
5976
|
}
|
|
@@ -5873,14 +5979,14 @@ const Ii = ({
|
|
|
5873
5979
|
n1,
|
|
5874
5980
|
{
|
|
5875
5981
|
name: "selectArrowIcon",
|
|
5876
|
-
color:
|
|
5982
|
+
color: r ? B.GREY_DARK_1 : B.GREY_DARK_5,
|
|
5877
5983
|
className: N ? "select-arrow-rotated" : "select-arrow",
|
|
5878
|
-
onClick: () =>
|
|
5984
|
+
onClick: () => Z(!N)
|
|
5879
5985
|
}
|
|
5880
5986
|
)
|
|
5881
5987
|
] }) }),
|
|
5882
|
-
removeIcon: /* @__PURE__ */ o(n1, { name: "errorSmall", color:
|
|
5883
|
-
options:
|
|
5988
|
+
removeIcon: /* @__PURE__ */ o(n1, { name: "errorSmall", color: B.GREY_DARK_1 }),
|
|
5989
|
+
options: a,
|
|
5884
5990
|
optionRender: (x) => M ? M(x.data) : /* @__PURE__ */ C(o1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
5885
5991
|
/* @__PURE__ */ C(o1, { alignItems: "center", gap: 12, children: [
|
|
5886
5992
|
n && /* @__PURE__ */ o(
|
|
@@ -5898,14 +6004,14 @@ const Ii = ({
|
|
|
5898
6004
|
n1,
|
|
5899
6005
|
{
|
|
5900
6006
|
name: "ok",
|
|
5901
|
-
color:
|
|
6007
|
+
color: B.BLUE_PRIMARY,
|
|
5902
6008
|
width: 16,
|
|
5903
6009
|
height: 16
|
|
5904
6010
|
}
|
|
5905
6011
|
)
|
|
5906
6012
|
] }),
|
|
5907
6013
|
dropdownRender: (x) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
|
5908
|
-
/* @__PURE__ */ o("div", { className: "dropdown-menu", children:
|
|
6014
|
+
/* @__PURE__ */ o("div", { className: "dropdown-menu", children: _ ? _(x) : x }),
|
|
5909
6015
|
H && /* @__PURE__ */ o("div", { className: "loading-overlay", children: /* @__PURE__ */ o(A1, { size: 28 }) })
|
|
5910
6016
|
] })
|
|
5911
6017
|
}
|
|
@@ -5914,14 +6020,14 @@ const Ii = ({
|
|
|
5914
6020
|
/* @__PURE__ */ o(
|
|
5915
6021
|
"label",
|
|
5916
6022
|
{
|
|
5917
|
-
className: `${
|
|
6023
|
+
className: `${W || H1 ? "label-floating" : ""} ${r ? "label-disabled" : ""} ${W ? "label-focused" : ""} ${H ? "label-loading" : ""} ${R ? "label-error" : ""}`,
|
|
5918
6024
|
children: g ? `${t}*` : t
|
|
5919
6025
|
}
|
|
5920
6026
|
),
|
|
5921
6027
|
/* @__PURE__ */ o(
|
|
5922
6028
|
"fieldset",
|
|
5923
6029
|
{
|
|
5924
|
-
className: `${
|
|
6030
|
+
className: `${W ? "fieldset-focused" : ""} ${r ? "fieldset-disabled" : ""} ${H1 ? "fieldset-filled" : ""} ${R ? "fieldset-error" : ""}`,
|
|
5925
6031
|
children: /* @__PURE__ */ o("legend", { children: /* @__PURE__ */ o("span", { children: g ? `${t}*` : t }) })
|
|
5926
6032
|
}
|
|
5927
6033
|
)
|
|
@@ -5930,8 +6036,16 @@ const Ii = ({
|
|
|
5930
6036
|
}
|
|
5931
6037
|
),
|
|
5932
6038
|
R && /* @__PURE__ */ C(o1, { justifyContent: "flex-start", gap: 6, children: [
|
|
5933
|
-
/* @__PURE__ */ o(
|
|
5934
|
-
|
|
6039
|
+
/* @__PURE__ */ o(
|
|
6040
|
+
n1,
|
|
6041
|
+
{
|
|
6042
|
+
name: "attention",
|
|
6043
|
+
color: B.NOTIFICATION_ERROR_DARK,
|
|
6044
|
+
height: 16,
|
|
6045
|
+
width: 16
|
|
6046
|
+
}
|
|
6047
|
+
),
|
|
6048
|
+
typeof R == "string" ? /* @__PURE__ */ o(H5, { color: B.NOTIFICATION_ERROR_DARK, variant: "body4", children: R }) : R
|
|
5935
6049
|
] })
|
|
5936
6050
|
] });
|
|
5937
6051
|
}
|
|
@@ -5941,23 +6055,23 @@ const Ii = ({
|
|
|
5941
6055
|
i = n, e = s;
|
|
5942
6056
|
});
|
|
5943
6057
|
return t.resolve = i, t.reject = e, t;
|
|
5944
|
-
}, T1 = (i) => i == null ? "" : "" + i,
|
|
6058
|
+
}, T1 = (i) => i == null ? "" : "" + i, A5 = (i, e, t) => {
|
|
5945
6059
|
i.forEach((n) => {
|
|
5946
6060
|
e[n] && (t[n] = e[n]);
|
|
5947
6061
|
});
|
|
5948
|
-
},
|
|
6062
|
+
}, T5 = /###/g, Z1 = (i) => i && i.indexOf("###") > -1 ? i.replace(T5, ".") : i, D1 = (i) => !i || k(i), a1 = (i, e, t) => {
|
|
5949
6063
|
const n = k(e) ? e.split(".") : e;
|
|
5950
6064
|
let s = 0;
|
|
5951
6065
|
for (; s < n.length - 1; ) {
|
|
5952
|
-
if (
|
|
5953
|
-
const
|
|
5954
|
-
!i[
|
|
6066
|
+
if (D1(i)) return {};
|
|
6067
|
+
const a = Z1(n[s]);
|
|
6068
|
+
!i[a] && t && (i[a] = new t()), Object.prototype.hasOwnProperty.call(i, a) ? i = i[a] : i = {}, ++s;
|
|
5955
6069
|
}
|
|
5956
|
-
return
|
|
6070
|
+
return D1(i) ? {} : {
|
|
5957
6071
|
obj: i,
|
|
5958
|
-
k:
|
|
6072
|
+
k: Z1(n[s])
|
|
5959
6073
|
};
|
|
5960
|
-
},
|
|
6074
|
+
}, B1 = (i, e, t) => {
|
|
5961
6075
|
const {
|
|
5962
6076
|
obj: n,
|
|
5963
6077
|
k: s
|
|
@@ -5966,16 +6080,16 @@ const Ii = ({
|
|
|
5966
6080
|
n[s] = t;
|
|
5967
6081
|
return;
|
|
5968
6082
|
}
|
|
5969
|
-
let
|
|
5970
|
-
for (;
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
},
|
|
6083
|
+
let a = e[e.length - 1], c = e.slice(0, e.length - 1), r = a1(i, c, Object);
|
|
6084
|
+
for (; r.obj === void 0 && c.length; )
|
|
6085
|
+
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);
|
|
6086
|
+
r.obj[`${r.k}.${a}`] = t;
|
|
6087
|
+
}, Z5 = (i, e, t, n) => {
|
|
5974
6088
|
const {
|
|
5975
6089
|
obj: s,
|
|
5976
|
-
k:
|
|
6090
|
+
k: a
|
|
5977
6091
|
} = a1(i, e, Object);
|
|
5978
|
-
s[
|
|
6092
|
+
s[a] = s[a] || [], s[a].push(t);
|
|
5979
6093
|
}, C1 = (i, e) => {
|
|
5980
6094
|
const {
|
|
5981
6095
|
obj: t,
|
|
@@ -5983,7 +6097,7 @@ const Ii = ({
|
|
|
5983
6097
|
} = a1(i, e);
|
|
5984
6098
|
if (t)
|
|
5985
6099
|
return t[n];
|
|
5986
|
-
},
|
|
6100
|
+
}, D5 = (i, e, t) => {
|
|
5987
6101
|
const n = C1(i, t);
|
|
5988
6102
|
return n !== void 0 ? n : C1(e, t);
|
|
5989
6103
|
}, se = (i, e, t) => {
|
|
@@ -5991,7 +6105,7 @@ const Ii = ({
|
|
|
5991
6105
|
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]) : se(i[n], e[n], t) : i[n] = e[n]);
|
|
5992
6106
|
return i;
|
|
5993
6107
|
}, X = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
5994
|
-
var
|
|
6108
|
+
var B5 = {
|
|
5995
6109
|
"&": "&",
|
|
5996
6110
|
"<": "<",
|
|
5997
6111
|
">": ">",
|
|
@@ -5999,8 +6113,8 @@ var Bi = {
|
|
|
5999
6113
|
"'": "'",
|
|
6000
6114
|
"/": "/"
|
|
6001
6115
|
};
|
|
6002
|
-
const
|
|
6003
|
-
class
|
|
6116
|
+
const j5 = (i) => k(i) ? i.replace(/[&<>"'\/]/g, (e) => B5[e]) : i;
|
|
6117
|
+
class G5 {
|
|
6004
6118
|
constructor(e) {
|
|
6005
6119
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
6006
6120
|
}
|
|
@@ -6012,38 +6126,38 @@ class Di {
|
|
|
6012
6126
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
|
|
6013
6127
|
}
|
|
6014
6128
|
}
|
|
6015
|
-
const
|
|
6129
|
+
const W5 = [" ", ",", "?", "!", ";"], K5 = new G5(20), P5 = (i, e, t) => {
|
|
6016
6130
|
e = e || "", t = t || "";
|
|
6017
|
-
const n =
|
|
6131
|
+
const n = W5.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
|
|
6018
6132
|
if (n.length === 0) return !0;
|
|
6019
|
-
const s =
|
|
6020
|
-
let
|
|
6021
|
-
if (!
|
|
6133
|
+
const s = K5.getRegExp(`(${n.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
|
6134
|
+
let a = !s.test(i);
|
|
6135
|
+
if (!a) {
|
|
6022
6136
|
const c = i.indexOf(t);
|
|
6023
|
-
c > 0 && !s.test(i.substring(0, c)) && (
|
|
6137
|
+
c > 0 && !s.test(i.substring(0, c)) && (a = !0);
|
|
6024
6138
|
}
|
|
6025
|
-
return
|
|
6139
|
+
return a;
|
|
6026
6140
|
}, M1 = function(i, e) {
|
|
6027
6141
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
6028
6142
|
if (!i) return;
|
|
6029
6143
|
if (i[e]) return i[e];
|
|
6030
6144
|
const n = e.split(t);
|
|
6031
6145
|
let s = i;
|
|
6032
|
-
for (let
|
|
6146
|
+
for (let a = 0; a < n.length; ) {
|
|
6033
6147
|
if (!s || typeof s != "object")
|
|
6034
6148
|
return;
|
|
6035
|
-
let c,
|
|
6036
|
-
for (let g =
|
|
6037
|
-
if (g !==
|
|
6149
|
+
let c, r = "";
|
|
6150
|
+
for (let g = a; g < n.length; ++g)
|
|
6151
|
+
if (g !== a && (r += t), r += n[g], c = s[r], c !== void 0) {
|
|
6038
6152
|
if (["string", "number", "boolean"].indexOf(typeof c) > -1 && g < n.length - 1)
|
|
6039
6153
|
continue;
|
|
6040
|
-
|
|
6154
|
+
a += g - a + 1;
|
|
6041
6155
|
break;
|
|
6042
6156
|
}
|
|
6043
6157
|
s = c;
|
|
6044
6158
|
}
|
|
6045
6159
|
return s;
|
|
6046
|
-
}, p1 = (i) => i && i.replace("_", "-"),
|
|
6160
|
+
}, p1 = (i) => i && i.replace("_", "-"), $5 = {
|
|
6047
6161
|
type: "logger",
|
|
6048
6162
|
log(i) {
|
|
6049
6163
|
this.output("log", i);
|
|
@@ -6065,7 +6179,7 @@ class f1 {
|
|
|
6065
6179
|
}
|
|
6066
6180
|
init(e) {
|
|
6067
6181
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6068
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
6182
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || $5, this.options = t, this.debug = t.debug;
|
|
6069
6183
|
}
|
|
6070
6184
|
log() {
|
|
6071
6185
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
@@ -6100,7 +6214,7 @@ class f1 {
|
|
|
6100
6214
|
return e = e || this.options, e.prefix = e.prefix || this.prefix, new f1(this.logger, e);
|
|
6101
6215
|
}
|
|
6102
6216
|
}
|
|
6103
|
-
var
|
|
6217
|
+
var G = new f1();
|
|
6104
6218
|
class k1 {
|
|
6105
6219
|
constructor() {
|
|
6106
6220
|
this.observers = {};
|
|
@@ -6125,17 +6239,17 @@ class k1 {
|
|
|
6125
6239
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
6126
6240
|
n[s - 1] = arguments[s];
|
|
6127
6241
|
this.observers[e] && Array.from(this.observers[e].entries()).forEach((c) => {
|
|
6128
|
-
let [
|
|
6242
|
+
let [r, g] = c;
|
|
6129
6243
|
for (let d = 0; d < g; d++)
|
|
6130
|
-
|
|
6244
|
+
r(...n);
|
|
6131
6245
|
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((c) => {
|
|
6132
|
-
let [
|
|
6246
|
+
let [r, g] = c;
|
|
6133
6247
|
for (let d = 0; d < g; d++)
|
|
6134
|
-
|
|
6248
|
+
r.apply(r, [e, ...n]);
|
|
6135
6249
|
});
|
|
6136
6250
|
}
|
|
6137
6251
|
}
|
|
6138
|
-
class
|
|
6252
|
+
class j1 extends k1 {
|
|
6139
6253
|
constructor(e) {
|
|
6140
6254
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
6141
6255
|
ns: ["translation"],
|
|
@@ -6152,41 +6266,41 @@ class Z1 extends k1 {
|
|
|
6152
6266
|
}
|
|
6153
6267
|
getResource(e, t, n) {
|
|
6154
6268
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6155
|
-
const
|
|
6156
|
-
let
|
|
6157
|
-
e.indexOf(".") > -1 ?
|
|
6158
|
-
const g = C1(this.data,
|
|
6159
|
-
return !g && !t && !n && e.indexOf(".") > -1 && (e =
|
|
6269
|
+
const a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, c = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
6270
|
+
let r;
|
|
6271
|
+
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)));
|
|
6272
|
+
const g = C1(this.data, r);
|
|
6273
|
+
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);
|
|
6160
6274
|
}
|
|
6161
6275
|
addResource(e, t, n, s) {
|
|
6162
|
-
let
|
|
6276
|
+
let a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
6163
6277
|
silent: !1
|
|
6164
6278
|
};
|
|
6165
|
-
const c =
|
|
6166
|
-
let
|
|
6167
|
-
n && (
|
|
6279
|
+
const c = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator;
|
|
6280
|
+
let r = [e, t];
|
|
6281
|
+
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);
|
|
6168
6282
|
}
|
|
6169
6283
|
addResources(e, t, n) {
|
|
6170
6284
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
6171
6285
|
silent: !1
|
|
6172
6286
|
};
|
|
6173
|
-
for (const
|
|
6174
|
-
(k(n[
|
|
6287
|
+
for (const a in n)
|
|
6288
|
+
(k(n[a]) || Array.isArray(n[a])) && this.addResource(e, t, a, n[a], {
|
|
6175
6289
|
silent: !0
|
|
6176
6290
|
});
|
|
6177
6291
|
s.silent || this.emit("added", e, t, n);
|
|
6178
6292
|
}
|
|
6179
|
-
addResourceBundle(e, t, n, s,
|
|
6293
|
+
addResourceBundle(e, t, n, s, a) {
|
|
6180
6294
|
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
|
|
6181
6295
|
silent: !1,
|
|
6182
6296
|
skipCopy: !1
|
|
6183
|
-
},
|
|
6184
|
-
e.indexOf(".") > -1 && (
|
|
6185
|
-
let g = C1(this.data,
|
|
6186
|
-
c.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? se(g, n,
|
|
6297
|
+
}, r = [e, t];
|
|
6298
|
+
e.indexOf(".") > -1 && (r = e.split("."), s = n, n = t, t = r[1]), this.addNamespaces(t);
|
|
6299
|
+
let g = C1(this.data, r) || {};
|
|
6300
|
+
c.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? se(g, n, a) : g = {
|
|
6187
6301
|
...g,
|
|
6188
6302
|
...n
|
|
6189
|
-
},
|
|
6303
|
+
}, B1(this.data, r, g), c.silent || this.emit("added", e, t, n);
|
|
6190
6304
|
}
|
|
6191
6305
|
removeResourceBundle(e, t) {
|
|
6192
6306
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -6216,16 +6330,16 @@ var oe = {
|
|
|
6216
6330
|
this.processors[i.name] = i;
|
|
6217
6331
|
},
|
|
6218
6332
|
handle(i, e, t, n, s) {
|
|
6219
|
-
return i.forEach((
|
|
6220
|
-
this.processors[
|
|
6333
|
+
return i.forEach((a) => {
|
|
6334
|
+
this.processors[a] && (e = this.processors[a].process(e, t, n, s));
|
|
6221
6335
|
}), e;
|
|
6222
6336
|
}
|
|
6223
6337
|
};
|
|
6224
|
-
const
|
|
6338
|
+
const G1 = {};
|
|
6225
6339
|
class m1 extends k1 {
|
|
6226
6340
|
constructor(e) {
|
|
6227
6341
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6228
|
-
super(),
|
|
6342
|
+
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");
|
|
6229
6343
|
}
|
|
6230
6344
|
changeLanguage(e) {
|
|
6231
6345
|
e && (this.language = e);
|
|
@@ -6243,21 +6357,21 @@ class m1 extends k1 {
|
|
|
6243
6357
|
let n = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
|
|
6244
6358
|
n === void 0 && (n = ":");
|
|
6245
6359
|
const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
6246
|
-
let
|
|
6247
|
-
const c = n && e.indexOf(n) > -1,
|
|
6248
|
-
if (c && !
|
|
6360
|
+
let a = t.ns || this.options.defaultNS || [];
|
|
6361
|
+
const c = n && e.indexOf(n) > -1, r = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !P5(e, n, s);
|
|
6362
|
+
if (c && !r) {
|
|
6249
6363
|
const g = e.match(this.interpolator.nestingRegexp);
|
|
6250
6364
|
if (g && g.length > 0)
|
|
6251
6365
|
return {
|
|
6252
6366
|
key: e,
|
|
6253
|
-
namespaces: k(
|
|
6367
|
+
namespaces: k(a) ? [a] : a
|
|
6254
6368
|
};
|
|
6255
6369
|
const d = e.split(n);
|
|
6256
|
-
(n !== s || n === s && this.options.ns.indexOf(d[0]) > -1) && (
|
|
6370
|
+
(n !== s || n === s && this.options.ns.indexOf(d[0]) > -1) && (a = d.shift()), e = d.join(s);
|
|
6257
6371
|
}
|
|
6258
6372
|
return {
|
|
6259
6373
|
key: e,
|
|
6260
|
-
namespaces: k(
|
|
6374
|
+
namespaces: k(a) ? [a] : a
|
|
6261
6375
|
};
|
|
6262
6376
|
}
|
|
6263
6377
|
translate(e, t, n) {
|
|
@@ -6265,10 +6379,10 @@ class m1 extends k1 {
|
|
|
6265
6379
|
...t
|
|
6266
6380
|
}), t || (t = {}), e == null) return "";
|
|
6267
6381
|
Array.isArray(e) || (e = [String(e)]);
|
|
6268
|
-
const s = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails,
|
|
6382
|
+
const s = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
6269
6383
|
key: c,
|
|
6270
|
-
namespaces:
|
|
6271
|
-
} = this.extractFromKey(e[e.length - 1], t), g =
|
|
6384
|
+
namespaces: r
|
|
6385
|
+
} = this.extractFromKey(e[e.length - 1], t), g = r[r.length - 1], d = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
6272
6386
|
if (d && d.toLowerCase() === "cimode") {
|
|
6273
6387
|
if (l) {
|
|
6274
6388
|
const f = t.nsSeparator || this.options.nsSeparator;
|
|
@@ -6292,40 +6406,40 @@ class m1 extends k1 {
|
|
|
6292
6406
|
}
|
|
6293
6407
|
const h = this.resolve(e, t);
|
|
6294
6408
|
let u = h && h.res;
|
|
6295
|
-
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, L = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"],
|
|
6296
|
-
if (M && u && H && m.indexOf(L) < 0 && !(k(
|
|
6409
|
+
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, L = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"], _ = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject, H = !k(u) && typeof u != "boolean" && typeof u != "number";
|
|
6410
|
+
if (M && u && H && m.indexOf(L) < 0 && !(k(_) && Array.isArray(u))) {
|
|
6297
6411
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
6298
6412
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
6299
6413
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
|
|
6300
6414
|
...t,
|
|
6301
|
-
ns:
|
|
6415
|
+
ns: r
|
|
6302
6416
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
|
6303
6417
|
return s ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
|
|
6304
6418
|
}
|
|
6305
|
-
if (
|
|
6419
|
+
if (a) {
|
|
6306
6420
|
const f = Array.isArray(u), R = f ? [] : {}, v = f ? w : p;
|
|
6307
6421
|
for (const N in u)
|
|
6308
6422
|
if (Object.prototype.hasOwnProperty.call(u, N)) {
|
|
6309
|
-
const
|
|
6310
|
-
R[N] = this.translate(
|
|
6423
|
+
const Z = `${v}${a}${N}`;
|
|
6424
|
+
R[N] = this.translate(Z, {
|
|
6311
6425
|
...t,
|
|
6312
6426
|
joinArrays: !1,
|
|
6313
|
-
ns:
|
|
6314
|
-
}), R[N] ===
|
|
6427
|
+
ns: r
|
|
6428
|
+
}), R[N] === Z && (R[N] = u[N]);
|
|
6315
6429
|
}
|
|
6316
6430
|
u = R;
|
|
6317
6431
|
}
|
|
6318
|
-
} else if (M && k(
|
|
6319
|
-
u = u.join(
|
|
6432
|
+
} else if (M && k(_) && Array.isArray(u))
|
|
6433
|
+
u = u.join(_), u && (u = this.extendTranslation(u, e, t, n));
|
|
6320
6434
|
else {
|
|
6321
6435
|
let f = !1, R = !1;
|
|
6322
|
-
const v = t.count !== void 0 && !k(t.count), N = m1.hasDefaultValue(t),
|
|
6436
|
+
const v = t.count !== void 0 && !k(t.count), N = m1.hasDefaultValue(t), Z = v ? this.pluralResolver.getSuffix(d, t.count, t) : "", W = t.ordinal && v ? this.pluralResolver.getSuffix(d, t.count, {
|
|
6323
6437
|
ordinal: !1
|
|
6324
|
-
}) : "", i1 = v && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), $ = i1 && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${
|
|
6438
|
+
}) : "", i1 = v && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), $ = i1 && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${Z}`] || t[`defaultValue${W}`] || t.defaultValue;
|
|
6325
6439
|
!this.isValidLookup(u) && N && (f = !0, u = $), this.isValidLookup(u) || (R = !0, u = c);
|
|
6326
6440
|
const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && R ? void 0 : u, K = N && $ !== u && this.options.updateMissing;
|
|
6327
6441
|
if (R || f || K) {
|
|
6328
|
-
if (this.logger.log(K ? "updateKey" : "missingKey", d, g, c, K ? $ : u),
|
|
6442
|
+
if (this.logger.log(K ? "updateKey" : "missingKey", d, g, c, K ? $ : u), a) {
|
|
6329
6443
|
const A = this.resolve(c, {
|
|
6330
6444
|
...t,
|
|
6331
6445
|
keySeparator: !1
|
|
@@ -6353,7 +6467,7 @@ class m1 extends k1 {
|
|
|
6353
6467
|
}
|
|
6354
6468
|
return s ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
|
|
6355
6469
|
}
|
|
6356
|
-
extendTranslation(e, t, n, s,
|
|
6470
|
+
extendTranslation(e, t, n, s, a) {
|
|
6357
6471
|
var c = this;
|
|
6358
6472
|
if (this.i18nFormat && this.i18nFormat.parse)
|
|
6359
6473
|
e = this.i18nFormat.parse(e, {
|
|
@@ -6387,10 +6501,10 @@ class m1 extends k1 {
|
|
|
6387
6501
|
!n.lng && this.options.compatibilityAPI !== "v1" && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
6388
6502
|
for (var u = arguments.length, p = new Array(u), w = 0; w < u; w++)
|
|
6389
6503
|
p[w] = arguments[w];
|
|
6390
|
-
return
|
|
6504
|
+
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);
|
|
6391
6505
|
}, n)), n.interpolation && this.interpolator.reset();
|
|
6392
6506
|
}
|
|
6393
|
-
const
|
|
6507
|
+
const r = n.postProcess || this.options.postProcess, g = k(r) ? [r] : r;
|
|
6394
6508
|
return e != null && g && g.length && n.applyPostProcessor !== !1 && (e = oe.handle(g, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
6395
6509
|
i18nResolved: {
|
|
6396
6510
|
...s,
|
|
@@ -6400,7 +6514,7 @@ class m1 extends k1 {
|
|
|
6400
6514
|
} : n, this)), e;
|
|
6401
6515
|
}
|
|
6402
6516
|
resolve(e) {
|
|
6403
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n, s,
|
|
6517
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n, s, a, c, r;
|
|
6404
6518
|
return k(e) && (e = [e]), e.forEach((g) => {
|
|
6405
6519
|
if (this.isValidLookup(n)) return;
|
|
6406
6520
|
const d = this.extractFromKey(g, t), l = d.key;
|
|
@@ -6409,15 +6523,15 @@ class m1 extends k1 {
|
|
|
6409
6523
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
|
6410
6524
|
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);
|
|
6411
6525
|
h.forEach((m) => {
|
|
6412
|
-
this.isValidLookup(n) || (
|
|
6526
|
+
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((_) => {
|
|
6413
6527
|
if (this.isValidLookup(n)) return;
|
|
6414
|
-
c =
|
|
6528
|
+
c = _;
|
|
6415
6529
|
const M = [l];
|
|
6416
6530
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
6417
|
-
this.i18nFormat.addLookupKeys(M, l,
|
|
6531
|
+
this.i18nFormat.addLookupKeys(M, l, _, m, t);
|
|
6418
6532
|
else {
|
|
6419
6533
|
let f;
|
|
6420
|
-
u && (f = this.pluralResolver.getSuffix(
|
|
6534
|
+
u && (f = this.pluralResolver.getSuffix(_, t.count, t));
|
|
6421
6535
|
const R = `${this.options.pluralSeparator}zero`, v = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
6422
6536
|
if (u && (M.push(l + f), t.ordinal && f.indexOf(v) === 0 && M.push(l + f.replace(v, this.options.pluralSeparator)), p && M.push(l + R)), w) {
|
|
6423
6537
|
const N = `${l}${this.options.contextSeparator}${t.context}`;
|
|
@@ -6426,15 +6540,15 @@ class m1 extends k1 {
|
|
|
6426
6540
|
}
|
|
6427
6541
|
let H;
|
|
6428
6542
|
for (; H = M.pop(); )
|
|
6429
|
-
this.isValidLookup(n) || (
|
|
6543
|
+
this.isValidLookup(n) || (a = H, n = this.getResource(_, m, H, t));
|
|
6430
6544
|
}));
|
|
6431
6545
|
});
|
|
6432
6546
|
}), {
|
|
6433
6547
|
res: n,
|
|
6434
6548
|
usedKey: s,
|
|
6435
|
-
exactUsedKey:
|
|
6549
|
+
exactUsedKey: a,
|
|
6436
6550
|
usedLng: c,
|
|
6437
|
-
usedNS:
|
|
6551
|
+
usedNS: r
|
|
6438
6552
|
};
|
|
6439
6553
|
}
|
|
6440
6554
|
isValidLookup(e) {
|
|
@@ -6455,8 +6569,8 @@ class m1 extends k1 {
|
|
|
6455
6569
|
s = {
|
|
6456
6570
|
...s
|
|
6457
6571
|
};
|
|
6458
|
-
for (const
|
|
6459
|
-
delete s[
|
|
6572
|
+
for (const a of t)
|
|
6573
|
+
delete s[a];
|
|
6460
6574
|
}
|
|
6461
6575
|
return s;
|
|
6462
6576
|
}
|
|
@@ -6469,9 +6583,9 @@ class m1 extends k1 {
|
|
|
6469
6583
|
}
|
|
6470
6584
|
}
|
|
6471
6585
|
const N1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
|
6472
|
-
class
|
|
6586
|
+
class W1 {
|
|
6473
6587
|
constructor(e) {
|
|
6474
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
6588
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = G.create("languageUtils");
|
|
6475
6589
|
}
|
|
6476
6590
|
getScriptPartFromCode(e) {
|
|
6477
6591
|
if (e = p1(e), !e || e.indexOf("-") < 0) return null;
|
|
@@ -6511,10 +6625,10 @@ class G1 {
|
|
|
6511
6625
|
if (t) return;
|
|
6512
6626
|
const s = this.getLanguagePartFromCode(n);
|
|
6513
6627
|
if (this.isSupportedCode(s)) return t = s;
|
|
6514
|
-
t = this.options.supportedLngs.find((
|
|
6515
|
-
if (
|
|
6516
|
-
if (!(
|
|
6517
|
-
return
|
|
6628
|
+
t = this.options.supportedLngs.find((a) => {
|
|
6629
|
+
if (a === s) return a;
|
|
6630
|
+
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))
|
|
6631
|
+
return a;
|
|
6518
6632
|
});
|
|
6519
6633
|
}), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
|
|
6520
6634
|
}
|
|
@@ -6526,15 +6640,15 @@ class G1 {
|
|
|
6526
6640
|
return n || (n = e[this.getScriptPartFromCode(t)]), n || (n = e[this.formatLanguageCode(t)]), n || (n = e[this.getLanguagePartFromCode(t)]), n || (n = e.default), n || [];
|
|
6527
6641
|
}
|
|
6528
6642
|
toResolveHierarchy(e, t) {
|
|
6529
|
-
const n = this.getFallbackCodes(t || this.options.fallbackLng || [], e), s = [],
|
|
6643
|
+
const n = this.getFallbackCodes(t || this.options.fallbackLng || [], e), s = [], a = (c) => {
|
|
6530
6644
|
c && (this.isSupportedCode(c) ? s.push(c) : this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`));
|
|
6531
6645
|
};
|
|
6532
|
-
return k(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" &&
|
|
6533
|
-
s.indexOf(c) < 0 &&
|
|
6646
|
+
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) => {
|
|
6647
|
+
s.indexOf(c) < 0 && a(this.formatLanguageCode(c));
|
|
6534
6648
|
}), s;
|
|
6535
6649
|
}
|
|
6536
6650
|
}
|
|
6537
|
-
let
|
|
6651
|
+
let F5 = [{
|
|
6538
6652
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
6539
6653
|
nr: [1, 2],
|
|
6540
6654
|
fc: 1
|
|
@@ -6626,7 +6740,7 @@ let Pi = [{
|
|
|
6626
6740
|
lngs: ["he", "iw"],
|
|
6627
6741
|
nr: [1, 2, 20, 21],
|
|
6628
6742
|
fc: 22
|
|
6629
|
-
}],
|
|
6743
|
+
}], Y5 = {
|
|
6630
6744
|
1: (i) => +(i > 1),
|
|
6631
6745
|
2: (i) => +(i != 1),
|
|
6632
6746
|
3: (i) => 0,
|
|
@@ -6650,28 +6764,28 @@ let Pi = [{
|
|
|
6650
6764
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
|
6651
6765
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
|
6652
6766
|
};
|
|
6653
|
-
const
|
|
6767
|
+
const U5 = ["v1", "v2", "v3"], z5 = ["v4"], K1 = {
|
|
6654
6768
|
zero: 0,
|
|
6655
6769
|
one: 1,
|
|
6656
6770
|
two: 2,
|
|
6657
6771
|
few: 3,
|
|
6658
6772
|
many: 4,
|
|
6659
6773
|
other: 5
|
|
6660
|
-
},
|
|
6774
|
+
}, J5 = () => {
|
|
6661
6775
|
const i = {};
|
|
6662
|
-
return
|
|
6776
|
+
return F5.forEach((e) => {
|
|
6663
6777
|
e.lngs.forEach((t) => {
|
|
6664
6778
|
i[t] = {
|
|
6665
6779
|
numbers: e.nr,
|
|
6666
|
-
plurals:
|
|
6780
|
+
plurals: Y5[e.fc]
|
|
6667
6781
|
};
|
|
6668
6782
|
});
|
|
6669
6783
|
}), i;
|
|
6670
6784
|
};
|
|
6671
|
-
class
|
|
6785
|
+
class Q5 {
|
|
6672
6786
|
constructor(e) {
|
|
6673
6787
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6674
|
-
this.languageUtils = e, this.options = t, this.logger =
|
|
6788
|
+
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 = {};
|
|
6675
6789
|
}
|
|
6676
6790
|
addRule(e, t) {
|
|
6677
6791
|
this.rules[e] = t;
|
|
@@ -6682,12 +6796,12 @@ class zi {
|
|
|
6682
6796
|
getRule(e) {
|
|
6683
6797
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6684
6798
|
if (this.shouldUseIntlApi()) {
|
|
6685
|
-
const n = p1(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal",
|
|
6799
|
+
const n = p1(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
|
|
6686
6800
|
cleanedCode: n,
|
|
6687
6801
|
type: s
|
|
6688
6802
|
});
|
|
6689
|
-
if (
|
|
6690
|
-
return this.pluralRulesCache[
|
|
6803
|
+
if (a in this.pluralRulesCache)
|
|
6804
|
+
return this.pluralRulesCache[a];
|
|
6691
6805
|
let c;
|
|
6692
6806
|
try {
|
|
6693
6807
|
c = new Intl.PluralRules(n, {
|
|
@@ -6698,7 +6812,7 @@ class zi {
|
|
|
6698
6812
|
const g = this.languageUtils.getLanguagePartFromCode(e);
|
|
6699
6813
|
c = this.getRule(g, t);
|
|
6700
6814
|
}
|
|
6701
|
-
return this.pluralRulesCache[
|
|
6815
|
+
return this.pluralRulesCache[a] = c, c;
|
|
6702
6816
|
}
|
|
6703
6817
|
return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
|
|
6704
6818
|
}
|
|
@@ -6714,7 +6828,7 @@ class zi {
|
|
|
6714
6828
|
getSuffixes(e) {
|
|
6715
6829
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6716
6830
|
const n = this.getRule(e, t);
|
|
6717
|
-
return n ? this.shouldUseIntlApi() ? n.resolvedOptions().pluralCategories.sort((s,
|
|
6831
|
+
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)) : [];
|
|
6718
6832
|
}
|
|
6719
6833
|
getSuffix(e, t) {
|
|
6720
6834
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -6725,21 +6839,21 @@ class zi {
|
|
|
6725
6839
|
const n = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t));
|
|
6726
6840
|
let s = e.numbers[n];
|
|
6727
6841
|
this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 && (s === 2 ? s = "plural" : s === 1 && (s = ""));
|
|
6728
|
-
const
|
|
6729
|
-
return this.options.compatibilityJSON === "v1" ? s === 1 ? "" : typeof s == "number" ? `_plural_${s.toString()}` :
|
|
6842
|
+
const a = () => this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
|
6843
|
+
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();
|
|
6730
6844
|
}
|
|
6731
6845
|
shouldUseIntlApi() {
|
|
6732
|
-
return !
|
|
6846
|
+
return !U5.includes(this.options.compatibilityJSON);
|
|
6733
6847
|
}
|
|
6734
6848
|
}
|
|
6735
6849
|
const P1 = function(i, e, t) {
|
|
6736
|
-
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0,
|
|
6737
|
-
return !
|
|
6850
|
+
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);
|
|
6851
|
+
return !a && s && k(t) && (a = M1(i, t, n), a === void 0 && (a = M1(e, t, n))), a;
|
|
6738
6852
|
}, x1 = (i) => i.replace(/\$/g, "$$$$");
|
|
6739
|
-
class
|
|
6853
|
+
class q5 {
|
|
6740
6854
|
constructor() {
|
|
6741
6855
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6742
|
-
this.logger =
|
|
6856
|
+
this.logger = G.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
6743
6857
|
}
|
|
6744
6858
|
init() {
|
|
6745
6859
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -6750,9 +6864,9 @@ class Ji {
|
|
|
6750
6864
|
escape: t,
|
|
6751
6865
|
escapeValue: n,
|
|
6752
6866
|
useRawValueToEscape: s,
|
|
6753
|
-
prefix:
|
|
6867
|
+
prefix: a,
|
|
6754
6868
|
prefixEscaped: c,
|
|
6755
|
-
suffix:
|
|
6869
|
+
suffix: r,
|
|
6756
6870
|
suffixEscaped: g,
|
|
6757
6871
|
formatSeparator: d,
|
|
6758
6872
|
unescapeSuffix: l,
|
|
@@ -6762,10 +6876,10 @@ class Ji {
|
|
|
6762
6876
|
nestingSuffix: w,
|
|
6763
6877
|
nestingSuffixEscaped: L,
|
|
6764
6878
|
nestingOptionsSeparator: m,
|
|
6765
|
-
maxReplaces:
|
|
6879
|
+
maxReplaces: _,
|
|
6766
6880
|
alwaysFormat: M
|
|
6767
6881
|
} = e.interpolation;
|
|
6768
|
-
this.escape = t !== void 0 ? t :
|
|
6882
|
+
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 = _ || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
|
|
6769
6883
|
}
|
|
6770
6884
|
reset() {
|
|
6771
6885
|
this.options && this.init(this.options);
|
|
@@ -6775,15 +6889,15 @@ class Ji {
|
|
|
6775
6889
|
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}`);
|
|
6776
6890
|
}
|
|
6777
6891
|
interpolate(e, t, n, s) {
|
|
6778
|
-
let
|
|
6892
|
+
let a, c, r;
|
|
6779
6893
|
const g = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, d = (p) => {
|
|
6780
6894
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
6781
|
-
const
|
|
6782
|
-
return this.alwaysFormat ? this.format(
|
|
6895
|
+
const _ = P1(t, g, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
6896
|
+
return this.alwaysFormat ? this.format(_, void 0, n, {
|
|
6783
6897
|
...s,
|
|
6784
6898
|
...t,
|
|
6785
6899
|
interpolationkey: p
|
|
6786
|
-
}) :
|
|
6900
|
+
}) : _;
|
|
6787
6901
|
}
|
|
6788
6902
|
const w = p.split(this.formatSeparator), L = w.shift().trim(), m = w.join(this.formatSeparator).trim();
|
|
6789
6903
|
return this.format(P1(t, g, L, this.options.keySeparator, this.options.ignoreJSONStructure), m, n, {
|
|
@@ -6801,29 +6915,29 @@ class Ji {
|
|
|
6801
6915
|
regex: this.regexp,
|
|
6802
6916
|
safeValue: (p) => this.escapeValue ? x1(this.escape(p)) : x1(p)
|
|
6803
6917
|
}].forEach((p) => {
|
|
6804
|
-
for (
|
|
6805
|
-
const w =
|
|
6918
|
+
for (r = 0; a = p.regex.exec(e); ) {
|
|
6919
|
+
const w = a[1].trim();
|
|
6806
6920
|
if (c = d(w), c === void 0)
|
|
6807
6921
|
if (typeof l == "function") {
|
|
6808
|
-
const m = l(e,
|
|
6922
|
+
const m = l(e, a, s);
|
|
6809
6923
|
c = k(m) ? m : "";
|
|
6810
6924
|
} else if (s && Object.prototype.hasOwnProperty.call(s, w))
|
|
6811
6925
|
c = "";
|
|
6812
6926
|
else if (h) {
|
|
6813
|
-
c =
|
|
6927
|
+
c = a[0];
|
|
6814
6928
|
continue;
|
|
6815
6929
|
} else
|
|
6816
6930
|
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), c = "";
|
|
6817
6931
|
else !k(c) && !this.useRawValueToEscape && (c = T1(c));
|
|
6818
6932
|
const L = p.safeValue(c);
|
|
6819
|
-
if (e = e.replace(
|
|
6933
|
+
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)
|
|
6820
6934
|
break;
|
|
6821
6935
|
}
|
|
6822
6936
|
}), e;
|
|
6823
6937
|
}
|
|
6824
6938
|
nest(e, t) {
|
|
6825
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s,
|
|
6826
|
-
const
|
|
6939
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, a, c;
|
|
6940
|
+
const r = (g, d) => {
|
|
6827
6941
|
const l = this.nestingOptionsSeparator;
|
|
6828
6942
|
if (g.indexOf(l) < 0) return g;
|
|
6829
6943
|
const h = g.split(new RegExp(`${l}[ ]*{`));
|
|
@@ -6851,16 +6965,16 @@ class Ji {
|
|
|
6851
6965
|
const l = s[1].split(this.formatSeparator).map((h) => h.trim());
|
|
6852
6966
|
s[1] = l.shift(), g = l, d = !0;
|
|
6853
6967
|
}
|
|
6854
|
-
if (
|
|
6855
|
-
k(
|
|
6968
|
+
if (a = t(r.call(this, s[1].trim(), c), c), a && s[0] === e && !k(a)) return a;
|
|
6969
|
+
k(a) || (a = T1(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, {
|
|
6856
6970
|
...n,
|
|
6857
6971
|
interpolationkey: s[1].trim()
|
|
6858
|
-
}),
|
|
6972
|
+
}), a.trim())), e = e.replace(s[0], a), this.regexp.lastIndex = 0;
|
|
6859
6973
|
}
|
|
6860
6974
|
return e;
|
|
6861
6975
|
}
|
|
6862
6976
|
}
|
|
6863
|
-
const
|
|
6977
|
+
const X5 = (i) => {
|
|
6864
6978
|
let e = i.toLowerCase().trim();
|
|
6865
6979
|
const t = {};
|
|
6866
6980
|
if (i.indexOf("(") > -1) {
|
|
@@ -6869,7 +6983,7 @@ const Qi = (i) => {
|
|
|
6869
6983
|
const s = n[1].substring(0, n[1].length - 1);
|
|
6870
6984
|
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) => {
|
|
6871
6985
|
if (c) {
|
|
6872
|
-
const [
|
|
6986
|
+
const [r, ...g] = c.split(":"), d = g.join(":").trim().replace(/^'+|'+$/g, ""), l = r.trim();
|
|
6873
6987
|
t[l] || (t[l] = d), d === "false" && (t[l] = !1), d === "true" && (t[l] = !0), isNaN(d) || (t[l] = parseInt(d, 10));
|
|
6874
6988
|
}
|
|
6875
6989
|
});
|
|
@@ -6881,50 +6995,50 @@ const Qi = (i) => {
|
|
|
6881
6995
|
}, e1 = (i) => {
|
|
6882
6996
|
const e = {};
|
|
6883
6997
|
return (t, n, s) => {
|
|
6884
|
-
let
|
|
6885
|
-
s && s.interpolationkey && s.formatParams && s.formatParams[s.interpolationkey] && s[s.interpolationkey] && (
|
|
6886
|
-
...
|
|
6998
|
+
let a = s;
|
|
6999
|
+
s && s.interpolationkey && s.formatParams && s.formatParams[s.interpolationkey] && s[s.interpolationkey] && (a = {
|
|
7000
|
+
...a,
|
|
6887
7001
|
[s.interpolationkey]: void 0
|
|
6888
7002
|
});
|
|
6889
|
-
const c = n + JSON.stringify(
|
|
6890
|
-
let
|
|
6891
|
-
return
|
|
7003
|
+
const c = n + JSON.stringify(a);
|
|
7004
|
+
let r = e[c];
|
|
7005
|
+
return r || (r = i(p1(n), s), e[c] = r), r(t);
|
|
6892
7006
|
};
|
|
6893
7007
|
};
|
|
6894
|
-
class
|
|
7008
|
+
class ei {
|
|
6895
7009
|
constructor() {
|
|
6896
7010
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6897
|
-
this.logger =
|
|
7011
|
+
this.logger = G.create("formatter"), this.options = e, this.formats = {
|
|
6898
7012
|
number: e1((t, n) => {
|
|
6899
7013
|
const s = new Intl.NumberFormat(t, {
|
|
6900
7014
|
...n
|
|
6901
7015
|
});
|
|
6902
|
-
return (
|
|
7016
|
+
return (a) => s.format(a);
|
|
6903
7017
|
}),
|
|
6904
7018
|
currency: e1((t, n) => {
|
|
6905
7019
|
const s = new Intl.NumberFormat(t, {
|
|
6906
7020
|
...n,
|
|
6907
7021
|
style: "currency"
|
|
6908
7022
|
});
|
|
6909
|
-
return (
|
|
7023
|
+
return (a) => s.format(a);
|
|
6910
7024
|
}),
|
|
6911
7025
|
datetime: e1((t, n) => {
|
|
6912
7026
|
const s = new Intl.DateTimeFormat(t, {
|
|
6913
7027
|
...n
|
|
6914
7028
|
});
|
|
6915
|
-
return (
|
|
7029
|
+
return (a) => s.format(a);
|
|
6916
7030
|
}),
|
|
6917
7031
|
relativetime: e1((t, n) => {
|
|
6918
7032
|
const s = new Intl.RelativeTimeFormat(t, {
|
|
6919
7033
|
...n
|
|
6920
7034
|
});
|
|
6921
|
-
return (
|
|
7035
|
+
return (a) => s.format(a, n.range || "day");
|
|
6922
7036
|
}),
|
|
6923
7037
|
list: e1((t, n) => {
|
|
6924
7038
|
const s = new Intl.ListFormat(t, {
|
|
6925
7039
|
...n
|
|
6926
7040
|
});
|
|
6927
|
-
return (
|
|
7041
|
+
return (a) => s.format(a);
|
|
6928
7042
|
})
|
|
6929
7043
|
}, this.init(e);
|
|
6930
7044
|
}
|
|
@@ -6942,21 +7056,21 @@ class qi {
|
|
|
6942
7056
|
}
|
|
6943
7057
|
format(e, t, n) {
|
|
6944
7058
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6945
|
-
const
|
|
6946
|
-
if (
|
|
6947
|
-
const
|
|
6948
|
-
|
|
7059
|
+
const a = t.split(this.formatSeparator);
|
|
7060
|
+
if (a.length > 1 && a[0].indexOf("(") > 1 && a[0].indexOf(")") < 0 && a.find((r) => r.indexOf(")") > -1)) {
|
|
7061
|
+
const r = a.findIndex((g) => g.indexOf(")") > -1);
|
|
7062
|
+
a[0] = [a[0], ...a.splice(1, r)].join(this.formatSeparator);
|
|
6949
7063
|
}
|
|
6950
|
-
return
|
|
7064
|
+
return a.reduce((r, g) => {
|
|
6951
7065
|
const {
|
|
6952
7066
|
formatName: d,
|
|
6953
7067
|
formatOptions: l
|
|
6954
|
-
} =
|
|
7068
|
+
} = X5(g);
|
|
6955
7069
|
if (this.formats[d]) {
|
|
6956
|
-
let h =
|
|
7070
|
+
let h = r;
|
|
6957
7071
|
try {
|
|
6958
7072
|
const u = s && s.formatParams && s.formatParams[s.interpolationkey] || {}, p = u.locale || u.lng || s.locale || s.lng || n;
|
|
6959
|
-
h = this.formats[d](
|
|
7073
|
+
h = this.formats[d](r, p, {
|
|
6960
7074
|
...l,
|
|
6961
7075
|
...s,
|
|
6962
7076
|
...u
|
|
@@ -6967,57 +7081,57 @@ class qi {
|
|
|
6967
7081
|
return h;
|
|
6968
7082
|
} else
|
|
6969
7083
|
this.logger.warn(`there was no format function for ${d}`);
|
|
6970
|
-
return
|
|
7084
|
+
return r;
|
|
6971
7085
|
}, e);
|
|
6972
7086
|
}
|
|
6973
7087
|
}
|
|
6974
|
-
const
|
|
7088
|
+
const ti = (i, e) => {
|
|
6975
7089
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
|
6976
7090
|
};
|
|
6977
|
-
class
|
|
7091
|
+
class ii extends k1 {
|
|
6978
7092
|
constructor(e, t, n) {
|
|
6979
7093
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6980
|
-
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger =
|
|
7094
|
+
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);
|
|
6981
7095
|
}
|
|
6982
7096
|
queueLoad(e, t, n, s) {
|
|
6983
|
-
const
|
|
7097
|
+
const a = {}, c = {}, r = {}, g = {};
|
|
6984
7098
|
return e.forEach((d) => {
|
|
6985
7099
|
let l = !0;
|
|
6986
7100
|
t.forEach((h) => {
|
|
6987
7101
|
const u = `${d}|${h}`;
|
|
6988
|
-
!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),
|
|
6989
|
-
}), l || (
|
|
6990
|
-
}), (Object.keys(
|
|
7102
|
+
!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)));
|
|
7103
|
+
}), l || (r[d] = !0);
|
|
7104
|
+
}), (Object.keys(a).length || Object.keys(c).length) && this.queue.push({
|
|
6991
7105
|
pending: c,
|
|
6992
7106
|
pendingCount: Object.keys(c).length,
|
|
6993
7107
|
loaded: {},
|
|
6994
7108
|
errors: [],
|
|
6995
7109
|
callback: s
|
|
6996
7110
|
}), {
|
|
6997
|
-
toLoad: Object.keys(
|
|
7111
|
+
toLoad: Object.keys(a),
|
|
6998
7112
|
pending: Object.keys(c),
|
|
6999
|
-
toLoadLanguages: Object.keys(
|
|
7113
|
+
toLoadLanguages: Object.keys(r),
|
|
7000
7114
|
toLoadNamespaces: Object.keys(g)
|
|
7001
7115
|
};
|
|
7002
7116
|
}
|
|
7003
7117
|
loaded(e, t, n) {
|
|
7004
|
-
const s = e.split("|"),
|
|
7005
|
-
t && this.emit("failedLoading",
|
|
7118
|
+
const s = e.split("|"), a = s[0], c = s[1];
|
|
7119
|
+
t && this.emit("failedLoading", a, c, t), !t && n && this.store.addResourceBundle(a, c, n, void 0, void 0, {
|
|
7006
7120
|
skipCopy: !0
|
|
7007
7121
|
}), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
7008
|
-
const
|
|
7122
|
+
const r = {};
|
|
7009
7123
|
this.queue.forEach((g) => {
|
|
7010
|
-
|
|
7011
|
-
|
|
7124
|
+
Z5(g.loaded, [a], c), ti(g, e), t && g.errors.push(t), g.pendingCount === 0 && !g.done && (Object.keys(g.loaded).forEach((d) => {
|
|
7125
|
+
r[d] || (r[d] = {});
|
|
7012
7126
|
const l = g.loaded[d];
|
|
7013
7127
|
l.length && l.forEach((h) => {
|
|
7014
|
-
|
|
7128
|
+
r[d][h] === void 0 && (r[d][h] = !0);
|
|
7015
7129
|
});
|
|
7016
7130
|
}), g.done = !0, g.errors.length ? g.callback(g.errors) : g.callback());
|
|
7017
|
-
}), this.emit("loaded",
|
|
7131
|
+
}), this.emit("loaded", r), this.queue = this.queue.filter((g) => !g.done);
|
|
7018
7132
|
}
|
|
7019
7133
|
read(e, t, n) {
|
|
7020
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0,
|
|
7134
|
+
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;
|
|
7021
7135
|
if (!e.length) return c(null, {});
|
|
7022
7136
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
7023
7137
|
this.waitingReads.push({
|
|
@@ -7025,21 +7139,21 @@ class e5 extends k1 {
|
|
|
7025
7139
|
ns: t,
|
|
7026
7140
|
fcName: n,
|
|
7027
7141
|
tried: s,
|
|
7028
|
-
wait:
|
|
7142
|
+
wait: a,
|
|
7029
7143
|
callback: c
|
|
7030
7144
|
});
|
|
7031
7145
|
return;
|
|
7032
7146
|
}
|
|
7033
7147
|
this.readingCalls++;
|
|
7034
|
-
const
|
|
7148
|
+
const r = (d, l) => {
|
|
7035
7149
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
7036
7150
|
const h = this.waitingReads.shift();
|
|
7037
7151
|
this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
|
|
7038
7152
|
}
|
|
7039
7153
|
if (d && l && s < this.maxRetries) {
|
|
7040
7154
|
setTimeout(() => {
|
|
7041
|
-
this.read.call(this, e, t, n, s + 1,
|
|
7042
|
-
},
|
|
7155
|
+
this.read.call(this, e, t, n, s + 1, a * 2, c);
|
|
7156
|
+
}, a);
|
|
7043
7157
|
return;
|
|
7044
7158
|
}
|
|
7045
7159
|
c(d, l);
|
|
@@ -7047,23 +7161,23 @@ class e5 extends k1 {
|
|
|
7047
7161
|
if (g.length === 2) {
|
|
7048
7162
|
try {
|
|
7049
7163
|
const d = g(e, t);
|
|
7050
|
-
d && typeof d.then == "function" ? d.then((l) =>
|
|
7164
|
+
d && typeof d.then == "function" ? d.then((l) => r(null, l)).catch(r) : r(null, d);
|
|
7051
7165
|
} catch (d) {
|
|
7052
|
-
|
|
7166
|
+
r(d);
|
|
7053
7167
|
}
|
|
7054
7168
|
return;
|
|
7055
7169
|
}
|
|
7056
|
-
return g(e, t,
|
|
7170
|
+
return g(e, t, r);
|
|
7057
7171
|
}
|
|
7058
7172
|
prepareLoading(e, t) {
|
|
7059
7173
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = arguments.length > 3 ? arguments[3] : void 0;
|
|
7060
7174
|
if (!this.backend)
|
|
7061
7175
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), s && s();
|
|
7062
7176
|
k(e) && (e = this.languageUtils.toResolveHierarchy(e)), k(t) && (t = [t]);
|
|
7063
|
-
const
|
|
7064
|
-
if (!
|
|
7065
|
-
return
|
|
7066
|
-
|
|
7177
|
+
const a = this.queueLoad(e, t, n, s);
|
|
7178
|
+
if (!a.toLoad.length)
|
|
7179
|
+
return a.pending.length || s(), null;
|
|
7180
|
+
a.toLoad.forEach((c) => {
|
|
7067
7181
|
this.loadOne(c);
|
|
7068
7182
|
});
|
|
7069
7183
|
}
|
|
@@ -7077,13 +7191,13 @@ class e5 extends k1 {
|
|
|
7077
7191
|
}
|
|
7078
7192
|
loadOne(e) {
|
|
7079
7193
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
7080
|
-
const n = e.split("|"), s = n[0],
|
|
7081
|
-
this.read(s,
|
|
7082
|
-
c && this.logger.warn(`${t}loading namespace ${
|
|
7194
|
+
const n = e.split("|"), s = n[0], a = n[1];
|
|
7195
|
+
this.read(s, a, "read", void 0, void 0, (c, r) => {
|
|
7196
|
+
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);
|
|
7083
7197
|
});
|
|
7084
7198
|
}
|
|
7085
|
-
saveMissing(e, t, n, s,
|
|
7086
|
-
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {},
|
|
7199
|
+
saveMissing(e, t, n, s, a) {
|
|
7200
|
+
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, r = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
|
7087
7201
|
};
|
|
7088
7202
|
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
|
|
7089
7203
|
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!!!");
|
|
@@ -7093,17 +7207,17 @@ class e5 extends k1 {
|
|
|
7093
7207
|
if (this.backend && this.backend.create) {
|
|
7094
7208
|
const g = {
|
|
7095
7209
|
...c,
|
|
7096
|
-
isUpdate:
|
|
7210
|
+
isUpdate: a
|
|
7097
7211
|
}, d = this.backend.create.bind(this.backend);
|
|
7098
7212
|
if (d.length < 6)
|
|
7099
7213
|
try {
|
|
7100
7214
|
let l;
|
|
7101
|
-
d.length === 5 ? l = d(e, t, n, s, g) : l = d(e, t, n, s), l && typeof l.then == "function" ? l.then((h) =>
|
|
7215
|
+
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);
|
|
7102
7216
|
} catch (l) {
|
|
7103
|
-
|
|
7217
|
+
r(l);
|
|
7104
7218
|
}
|
|
7105
7219
|
else
|
|
7106
|
-
d(e, t, n, s,
|
|
7220
|
+
d(e, t, n, s, r, g);
|
|
7107
7221
|
}
|
|
7108
7222
|
!e || !e[0] || this.store.addResource(e[0], t, n, s);
|
|
7109
7223
|
}
|
|
@@ -7166,7 +7280,7 @@ const $1 = () => ({
|
|
|
7166
7280
|
skipOnVariables: !0
|
|
7167
7281
|
}
|
|
7168
7282
|
}), 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 = () => {
|
|
7169
|
-
},
|
|
7283
|
+
}, ni = (i) => {
|
|
7170
7284
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
|
7171
7285
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
|
7172
7286
|
});
|
|
@@ -7174,9 +7288,9 @@ const $1 = () => ({
|
|
|
7174
7288
|
class l1 extends k1 {
|
|
7175
7289
|
constructor() {
|
|
7176
7290
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
7177
|
-
if (super(), this.options = F1(e), this.services = {}, this.logger =
|
|
7291
|
+
if (super(), this.options = F1(e), this.services = {}, this.logger = G, this.modules = {
|
|
7178
7292
|
external: []
|
|
7179
|
-
},
|
|
7293
|
+
}, ni(this), t && !this.isInitialized && !e.isClone) {
|
|
7180
7294
|
if (!this.options.initImmediate)
|
|
7181
7295
|
return this.init(e, t), this;
|
|
7182
7296
|
setTimeout(() => {
|
|
@@ -7197,25 +7311,25 @@ class l1 extends k1 {
|
|
|
7197
7311
|
...s.interpolation,
|
|
7198
7312
|
...this.options.interpolation
|
|
7199
7313
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
7200
|
-
const
|
|
7314
|
+
const a = (l) => l ? typeof l == "function" ? new l() : l : null;
|
|
7201
7315
|
if (!this.options.isClone) {
|
|
7202
|
-
this.modules.logger ?
|
|
7316
|
+
this.modules.logger ? G.init(a(this.modules.logger), this.options) : G.init(null, this.options);
|
|
7203
7317
|
let l;
|
|
7204
|
-
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l =
|
|
7205
|
-
const h = new
|
|
7206
|
-
this.store = new
|
|
7318
|
+
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = ei);
|
|
7319
|
+
const h = new W1(this.options);
|
|
7320
|
+
this.store = new j1(this.options.resources, this.options);
|
|
7207
7321
|
const u = this.services;
|
|
7208
|
-
u.logger =
|
|
7322
|
+
u.logger = G, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new Q5(h, {
|
|
7209
7323
|
prepend: this.options.pluralSeparator,
|
|
7210
7324
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
7211
7325
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
7212
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (u.formatter =
|
|
7326
|
+
}), 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 = {
|
|
7213
7327
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
7214
|
-
}, u.backendConnector = new
|
|
7328
|
+
}, u.backendConnector = new ii(a(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
|
|
7215
7329
|
for (var w = arguments.length, L = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7216
7330
|
L[m - 1] = arguments[m];
|
|
7217
7331
|
e.emit(p, ...L);
|
|
7218
|
-
}), this.modules.languageDetector && (u.languageDetector =
|
|
7332
|
+
}), 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) {
|
|
7219
7333
|
for (var w = arguments.length, L = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7220
7334
|
L[m - 1] = arguments[m];
|
|
7221
7335
|
e.emit(p, ...L);
|
|
@@ -7250,22 +7364,22 @@ class l1 extends k1 {
|
|
|
7250
7364
|
const s = k(e) ? e : this.language;
|
|
7251
7365
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
7252
7366
|
if (s && s.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
7253
|
-
const
|
|
7254
|
-
if (!
|
|
7255
|
-
this.services.languageUtils.toResolveHierarchy(
|
|
7256
|
-
d !== "cimode" &&
|
|
7367
|
+
const a = [], c = (r) => {
|
|
7368
|
+
if (!r || r === "cimode") return;
|
|
7369
|
+
this.services.languageUtils.toResolveHierarchy(r).forEach((d) => {
|
|
7370
|
+
d !== "cimode" && a.indexOf(d) < 0 && a.push(d);
|
|
7257
7371
|
});
|
|
7258
7372
|
};
|
|
7259
|
-
s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((g) => c(g)), this.options.preload && this.options.preload.forEach((
|
|
7260
|
-
!
|
|
7373
|
+
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) => {
|
|
7374
|
+
!r && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(r);
|
|
7261
7375
|
});
|
|
7262
7376
|
} else
|
|
7263
7377
|
n(null);
|
|
7264
7378
|
}
|
|
7265
7379
|
reloadResources(e, t, n) {
|
|
7266
7380
|
const s = s1();
|
|
7267
|
-
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, (
|
|
7268
|
-
s.resolve(), n(
|
|
7381
|
+
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) => {
|
|
7382
|
+
s.resolve(), n(a);
|
|
7269
7383
|
}), s;
|
|
7270
7384
|
}
|
|
7271
7385
|
use(e) {
|
|
@@ -7288,41 +7402,41 @@ class l1 extends k1 {
|
|
|
7288
7402
|
this.isLanguageChangingTo = e;
|
|
7289
7403
|
const s = s1();
|
|
7290
7404
|
this.emit("languageChanging", e);
|
|
7291
|
-
const
|
|
7405
|
+
const a = (g) => {
|
|
7292
7406
|
this.language = g, this.languages = this.services.languageUtils.toResolveHierarchy(g), this.resolvedLanguage = void 0, this.setResolvedLanguage(g);
|
|
7293
7407
|
}, c = (g, d) => {
|
|
7294
|
-
d ? (
|
|
7408
|
+
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() {
|
|
7295
7409
|
return n.t(...arguments);
|
|
7296
7410
|
}), t && t(g, function() {
|
|
7297
7411
|
return n.t(...arguments);
|
|
7298
7412
|
});
|
|
7299
|
-
},
|
|
7413
|
+
}, r = (g) => {
|
|
7300
7414
|
!e && !g && this.services.languageDetector && (g = []);
|
|
7301
7415
|
const d = k(g) ? g : this.services.languageUtils.getBestMatchFromCodes(g);
|
|
7302
|
-
d && (this.language ||
|
|
7416
|
+
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) => {
|
|
7303
7417
|
c(l, d);
|
|
7304
7418
|
});
|
|
7305
7419
|
};
|
|
7306
|
-
return !e && this.services.languageDetector && !this.services.languageDetector.async ?
|
|
7420
|
+
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;
|
|
7307
7421
|
}
|
|
7308
7422
|
getFixedT(e, t, n) {
|
|
7309
7423
|
var s = this;
|
|
7310
|
-
const
|
|
7424
|
+
const a = function(c, r) {
|
|
7311
7425
|
let g;
|
|
7312
|
-
if (typeof
|
|
7426
|
+
if (typeof r != "object") {
|
|
7313
7427
|
for (var d = arguments.length, l = new Array(d > 2 ? d - 2 : 0), h = 2; h < d; h++)
|
|
7314
7428
|
l[h - 2] = arguments[h];
|
|
7315
|
-
g = s.options.overloadTranslationOptionHandler([c,
|
|
7429
|
+
g = s.options.overloadTranslationOptionHandler([c, r].concat(l));
|
|
7316
7430
|
} else
|
|
7317
7431
|
g = {
|
|
7318
|
-
...
|
|
7432
|
+
...r
|
|
7319
7433
|
};
|
|
7320
|
-
g.lng = g.lng ||
|
|
7434
|
+
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);
|
|
7321
7435
|
const u = s.options.keySeparator || ".";
|
|
7322
7436
|
let p;
|
|
7323
7437
|
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);
|
|
7324
7438
|
};
|
|
7325
|
-
return k(e) ?
|
|
7439
|
+
return k(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = n, a;
|
|
7326
7440
|
}
|
|
7327
7441
|
t() {
|
|
7328
7442
|
return this.translator && this.translator.translate(...arguments);
|
|
@@ -7339,17 +7453,17 @@ class l1 extends k1 {
|
|
|
7339
7453
|
return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
|
|
7340
7454
|
if (!this.languages || !this.languages.length)
|
|
7341
7455
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
7342
|
-
const n = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1,
|
|
7456
|
+
const n = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
|
|
7343
7457
|
if (n.toLowerCase() === "cimode") return !0;
|
|
7344
|
-
const c = (
|
|
7345
|
-
const d = this.services.backendConnector.state[`${
|
|
7458
|
+
const c = (r, g) => {
|
|
7459
|
+
const d = this.services.backendConnector.state[`${r}|${g}`];
|
|
7346
7460
|
return d === -1 || d === 0 || d === 2;
|
|
7347
7461
|
};
|
|
7348
7462
|
if (t.precheck) {
|
|
7349
|
-
const
|
|
7350
|
-
if (
|
|
7463
|
+
const r = t.precheck(this, c);
|
|
7464
|
+
if (r !== void 0) return r;
|
|
7351
7465
|
}
|
|
7352
|
-
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(n, e) && (!s || c(
|
|
7466
|
+
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(n, e) && (!s || c(a, e)));
|
|
7353
7467
|
}
|
|
7354
7468
|
loadNamespaces(e, t) {
|
|
7355
7469
|
const n = s1();
|
|
@@ -7362,14 +7476,14 @@ class l1 extends k1 {
|
|
|
7362
7476
|
loadLanguages(e, t) {
|
|
7363
7477
|
const n = s1();
|
|
7364
7478
|
k(e) && (e = [e]);
|
|
7365
|
-
const s = this.options.preload || [],
|
|
7366
|
-
return
|
|
7479
|
+
const s = this.options.preload || [], a = e.filter((c) => s.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
|
|
7480
|
+
return a.length ? (this.options.preload = s.concat(a), this.loadResources((c) => {
|
|
7367
7481
|
n.resolve(), t && t(c);
|
|
7368
7482
|
}), n) : (t && t(), Promise.resolve());
|
|
7369
7483
|
}
|
|
7370
7484
|
dir(e) {
|
|
7371
7485
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
|
|
7372
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = this.services && this.services.languageUtils || new
|
|
7486
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = this.services && this.services.languageUtils || new W1($1());
|
|
7373
7487
|
return t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
7374
7488
|
}
|
|
7375
7489
|
static createInstance() {
|
|
@@ -7384,20 +7498,20 @@ class l1 extends k1 {
|
|
|
7384
7498
|
...this.options,
|
|
7385
7499
|
...e,
|
|
7386
7500
|
isClone: !0
|
|
7387
|
-
},
|
|
7388
|
-
return (e.debug !== void 0 || e.prefix !== void 0) && (
|
|
7389
|
-
r
|
|
7390
|
-
}),
|
|
7501
|
+
}, a = new l1(s);
|
|
7502
|
+
return (e.debug !== void 0 || e.prefix !== void 0) && (a.logger = a.logger.clone(e)), ["store", "services", "language"].forEach((r) => {
|
|
7503
|
+
a[r] = this[r];
|
|
7504
|
+
}), a.services = {
|
|
7391
7505
|
...this.services
|
|
7392
|
-
},
|
|
7393
|
-
hasLoadedNamespace:
|
|
7394
|
-
}, n && (
|
|
7506
|
+
}, a.services.utils = {
|
|
7507
|
+
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
7508
|
+
}, 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) {
|
|
7395
7509
|
for (var g = arguments.length, d = new Array(g > 1 ? g - 1 : 0), l = 1; l < g; l++)
|
|
7396
7510
|
d[l - 1] = arguments[l];
|
|
7397
|
-
|
|
7398
|
-
}),
|
|
7399
|
-
hasLoadedNamespace:
|
|
7400
|
-
},
|
|
7511
|
+
a.emit(r, ...d);
|
|
7512
|
+
}), a.init(s, t), a.translator.options = s, a.translator.backendConnector.services.utils = {
|
|
7513
|
+
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
7514
|
+
}, a;
|
|
7401
7515
|
}
|
|
7402
7516
|
toJSON() {
|
|
7403
7517
|
return {
|
|
@@ -7425,7 +7539,7 @@ V.setDefaultNamespace;
|
|
|
7425
7539
|
V.hasLoadedNamespace;
|
|
7426
7540
|
V.loadNamespaces;
|
|
7427
7541
|
V.loadLanguages;
|
|
7428
|
-
function
|
|
7542
|
+
function si() {
|
|
7429
7543
|
if (console && console.warn) {
|
|
7430
7544
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
7431
7545
|
e[t] = arguments[t];
|
|
@@ -7436,7 +7550,7 @@ const Y1 = {};
|
|
|
7436
7550
|
function b1() {
|
|
7437
7551
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
7438
7552
|
e[t] = arguments[t];
|
|
7439
|
-
z(e[0]) && Y1[e[0]] || (z(e[0]) && (Y1[e[0]] = /* @__PURE__ */ new Date()),
|
|
7553
|
+
z(e[0]) && Y1[e[0]] || (z(e[0]) && (Y1[e[0]] = /* @__PURE__ */ new Date()), si(...e));
|
|
7440
7554
|
}
|
|
7441
7555
|
const re = (i, e) => () => {
|
|
7442
7556
|
if (i.isInitialized)
|
|
@@ -7455,24 +7569,24 @@ const re = (i, e) => () => {
|
|
|
7455
7569
|
z(t) && (t = [t]), t.forEach((s) => {
|
|
7456
7570
|
i.options.ns.indexOf(s) < 0 && i.options.ns.push(s);
|
|
7457
7571
|
}), i.loadLanguages(e, re(i, n));
|
|
7458
|
-
},
|
|
7572
|
+
}, oi = function(i, e) {
|
|
7459
7573
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
7460
|
-
const n = e.languages[0], s = e.options ? e.options.fallbackLng : !1,
|
|
7574
|
+
const n = e.languages[0], s = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
|
|
7461
7575
|
if (n.toLowerCase() === "cimode") return !0;
|
|
7462
|
-
const c = (
|
|
7463
|
-
const d = e.services.backendConnector.state[`${
|
|
7576
|
+
const c = (r, g) => {
|
|
7577
|
+
const d = e.services.backendConnector.state[`${r}|${g}`];
|
|
7464
7578
|
return d === -1 || d === 2;
|
|
7465
7579
|
};
|
|
7466
|
-
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(
|
|
7467
|
-
},
|
|
7580
|
+
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)));
|
|
7581
|
+
}, ri = function(i, e) {
|
|
7468
7582
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
7469
7583
|
return !e.languages || !e.languages.length ? (b1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
7470
7584
|
lng: t.lng,
|
|
7471
|
-
precheck: (s,
|
|
7472
|
-
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !
|
|
7585
|
+
precheck: (s, a) => {
|
|
7586
|
+
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !a(s.isLanguageChangingTo, i)) return !1;
|
|
7473
7587
|
}
|
|
7474
|
-
}) :
|
|
7475
|
-
}, z = (i) => typeof i == "string",
|
|
7588
|
+
}) : oi(i, e, t);
|
|
7589
|
+
}, z = (i) => typeof i == "string", ai = (i) => typeof i == "object" && i !== null, li = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, hi = {
|
|
7476
7590
|
"&": "&",
|
|
7477
7591
|
"&": "&",
|
|
7478
7592
|
"<": "<",
|
|
@@ -7493,7 +7607,7 @@ const re = (i, e) => () => {
|
|
|
7493
7607
|
"…": "…",
|
|
7494
7608
|
"/": "/",
|
|
7495
7609
|
"/": "/"
|
|
7496
|
-
},
|
|
7610
|
+
}, ci = (i) => hi[i], di = (i) => i.replace(li, ci);
|
|
7497
7611
|
let y1 = {
|
|
7498
7612
|
bindI18n: "languageChanged",
|
|
7499
7613
|
bindI18nStore: "",
|
|
@@ -7502,25 +7616,25 @@ let y1 = {
|
|
|
7502
7616
|
transWrapTextNodes: "",
|
|
7503
7617
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
7504
7618
|
useSuspense: !0,
|
|
7505
|
-
unescape:
|
|
7619
|
+
unescape: di
|
|
7506
7620
|
};
|
|
7507
|
-
const
|
|
7621
|
+
const gi = function() {
|
|
7508
7622
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7509
7623
|
y1 = {
|
|
7510
7624
|
...y1,
|
|
7511
7625
|
...i
|
|
7512
7626
|
};
|
|
7513
|
-
},
|
|
7627
|
+
}, ui = () => y1;
|
|
7514
7628
|
let ae;
|
|
7515
|
-
const
|
|
7629
|
+
const Ci = (i) => {
|
|
7516
7630
|
ae = i;
|
|
7517
|
-
},
|
|
7631
|
+
}, pi = () => ae, fi = {
|
|
7518
7632
|
type: "3rdParty",
|
|
7519
7633
|
init(i) {
|
|
7520
|
-
|
|
7634
|
+
gi(i.options.react), Ci(i);
|
|
7521
7635
|
}
|
|
7522
|
-
},
|
|
7523
|
-
class
|
|
7636
|
+
}, mi = t1();
|
|
7637
|
+
class wi {
|
|
7524
7638
|
constructor() {
|
|
7525
7639
|
I1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
|
7526
7640
|
this.usedNamespaces = {};
|
|
@@ -7531,100 +7645,100 @@ class f5 {
|
|
|
7531
7645
|
});
|
|
7532
7646
|
}
|
|
7533
7647
|
}
|
|
7534
|
-
const
|
|
7648
|
+
const ki = (i, e) => {
|
|
7535
7649
|
const t = J();
|
|
7536
7650
|
return S(() => {
|
|
7537
7651
|
t.current = i;
|
|
7538
7652
|
}, [i, e]), t.current;
|
|
7539
|
-
}, le = (i, e, t, n) => i.getFixedT(e, t, n),
|
|
7653
|
+
}, le = (i, e, t, n) => i.getFixedT(e, t, n), Li = (i, e, t, n) => j(le(i, e, t, n), [i, e, t, n]), vi = function(i) {
|
|
7540
7654
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7541
7655
|
const {
|
|
7542
7656
|
i18n: t
|
|
7543
7657
|
} = e, {
|
|
7544
7658
|
i18n: n,
|
|
7545
7659
|
defaultNS: s
|
|
7546
|
-
} = Q(
|
|
7547
|
-
if (
|
|
7660
|
+
} = Q(mi) || {}, a = t || n || pi();
|
|
7661
|
+
if (a && !a.reportNamespaces && (a.reportNamespaces = new wi()), !a) {
|
|
7548
7662
|
b1("You will need to pass in an i18next instance by using initReactI18next");
|
|
7549
|
-
const f = (v, N) => z(N) ? N :
|
|
7663
|
+
const f = (v, N) => z(N) ? N : ai(N) && z(N.defaultValue) ? N.defaultValue : Array.isArray(v) ? v[v.length - 1] : v, R = [f, {}, !1];
|
|
7550
7664
|
return R.t = f, R.i18n = {}, R.ready = !1, R;
|
|
7551
7665
|
}
|
|
7552
|
-
|
|
7666
|
+
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.");
|
|
7553
7667
|
const c = {
|
|
7554
|
-
...
|
|
7555
|
-
...
|
|
7668
|
+
...ui(),
|
|
7669
|
+
...a.options.react,
|
|
7556
7670
|
...e
|
|
7557
7671
|
}, {
|
|
7558
|
-
useSuspense:
|
|
7672
|
+
useSuspense: r,
|
|
7559
7673
|
keyPrefix: g
|
|
7560
7674
|
} = c;
|
|
7561
7675
|
let d = i;
|
|
7562
|
-
d = z(d) ? [d] : d || ["translation"],
|
|
7563
|
-
const l = (
|
|
7676
|
+
d = z(d) ? [d] : d || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(d);
|
|
7677
|
+
const l = (a.isInitialized || a.initializedStoreOnce) && d.every((f) => ri(f, a, c)), h = Li(a, e.lng || null, c.nsMode === "fallback" ? d : d[0], g), u = () => h, p = () => le(a, e.lng || null, c.nsMode === "fallback" ? d : d[0], g), [w, L] = O(u);
|
|
7564
7678
|
let m = d.join();
|
|
7565
7679
|
e.lng && (m = `${e.lng}${m}`);
|
|
7566
|
-
const
|
|
7680
|
+
const _ = ki(m), M = J(!0);
|
|
7567
7681
|
S(() => {
|
|
7568
7682
|
const {
|
|
7569
7683
|
bindI18n: f,
|
|
7570
7684
|
bindI18nStore: R
|
|
7571
7685
|
} = c;
|
|
7572
|
-
M.current = !0, !l && !
|
|
7686
|
+
M.current = !0, !l && !r && (e.lng ? z1(a, e.lng, d, () => {
|
|
7573
7687
|
M.current && L(p);
|
|
7574
|
-
}) : U1(
|
|
7688
|
+
}) : U1(a, d, () => {
|
|
7575
7689
|
M.current && L(p);
|
|
7576
|
-
})), l &&
|
|
7690
|
+
})), l && _ && _ !== m && M.current && L(p);
|
|
7577
7691
|
const v = () => {
|
|
7578
7692
|
M.current && L(p);
|
|
7579
7693
|
};
|
|
7580
|
-
return f &&
|
|
7581
|
-
M.current = !1, f &&
|
|
7694
|
+
return f && a && a.on(f, v), R && a && a.store.on(R, v), () => {
|
|
7695
|
+
M.current = !1, f && a && f.split(" ").forEach((N) => a.off(N, v)), R && a && R.split(" ").forEach((N) => a.store.off(N, v));
|
|
7582
7696
|
};
|
|
7583
|
-
}, [
|
|
7697
|
+
}, [a, m]), S(() => {
|
|
7584
7698
|
M.current && l && L(u);
|
|
7585
|
-
}, [
|
|
7586
|
-
const H = [w,
|
|
7587
|
-
if (H.t = w, H.i18n =
|
|
7699
|
+
}, [a, g, l]);
|
|
7700
|
+
const H = [w, a, l];
|
|
7701
|
+
if (H.t = w, H.i18n = a, H.ready = l, l || !l && !r) return H;
|
|
7588
7702
|
throw new Promise((f) => {
|
|
7589
|
-
e.lng ? z1(
|
|
7703
|
+
e.lng ? z1(a, e.lng, d, () => f()) : U1(a, d, () => f());
|
|
7590
7704
|
});
|
|
7591
|
-
},
|
|
7592
|
-
placeholder:
|
|
7593
|
-
},
|
|
7594
|
-
placeholder:
|
|
7705
|
+
}, Ni = "Country", xi = {
|
|
7706
|
+
placeholder: Ni
|
|
7707
|
+
}, Ri = "Страна", Mi = {
|
|
7708
|
+
placeholder: Ri
|
|
7595
7709
|
};
|
|
7596
|
-
V.use(
|
|
7710
|
+
V.use(fi).init({
|
|
7597
7711
|
defaultNS: "common",
|
|
7598
7712
|
lng: "en",
|
|
7599
7713
|
resources: {
|
|
7600
7714
|
en: {
|
|
7601
|
-
common:
|
|
7715
|
+
common: xi
|
|
7602
7716
|
},
|
|
7603
7717
|
ru: {
|
|
7604
|
-
common:
|
|
7718
|
+
common: Mi
|
|
7605
7719
|
}
|
|
7606
7720
|
}
|
|
7607
7721
|
});
|
|
7608
|
-
const
|
|
7722
|
+
const Si = w1(
|
|
7609
7723
|
({
|
|
7610
7724
|
width: i,
|
|
7611
7725
|
selectedCity: e,
|
|
7612
7726
|
setSelectedCity: t,
|
|
7613
7727
|
onChange: n,
|
|
7614
7728
|
value: s,
|
|
7615
|
-
id:
|
|
7729
|
+
id: a,
|
|
7616
7730
|
disabled: c,
|
|
7617
|
-
required:
|
|
7731
|
+
required: r,
|
|
7618
7732
|
clearable: g,
|
|
7619
7733
|
error: d
|
|
7620
7734
|
}, l) => {
|
|
7621
|
-
const [h, u] = O([]), [p, w] = O([]), [L, m] = O(!1), { locale:
|
|
7735
|
+
const [h, u] = O([]), [p, w] = O([]), [L, m] = O(!1), { locale: _, axiosPeople: M } = Q(pe);
|
|
7622
7736
|
if (!M)
|
|
7623
7737
|
throw new Error(
|
|
7624
7738
|
`CountrySelect requires "axiosPeople" to fetch counties.
|
|
7625
7739
|
Please provide it via SNMTUiContext.`
|
|
7626
7740
|
);
|
|
7627
|
-
const { t: H } =
|
|
7741
|
+
const { t: H } = vi("common", { lng: _ }), f = j(async () => {
|
|
7628
7742
|
m(!0);
|
|
7629
7743
|
try {
|
|
7630
7744
|
const v = await M.post("v1/countries/search");
|
|
@@ -7640,14 +7754,14 @@ const I5 = w1(
|
|
|
7640
7754
|
}, []), S(() => {
|
|
7641
7755
|
if (e) {
|
|
7642
7756
|
const v = e.split("-")[1], N = p.filter(
|
|
7643
|
-
(
|
|
7757
|
+
(Z) => Z.name.includes(v)
|
|
7644
7758
|
);
|
|
7645
7759
|
if (N.length) {
|
|
7646
|
-
const
|
|
7647
|
-
label:
|
|
7648
|
-
value:
|
|
7760
|
+
const Z = N.map((W) => ({
|
|
7761
|
+
label: W.name,
|
|
7762
|
+
value: W.name
|
|
7649
7763
|
}));
|
|
7650
|
-
n(
|
|
7764
|
+
n(Z[0].value);
|
|
7651
7765
|
}
|
|
7652
7766
|
}
|
|
7653
7767
|
}, [e, p, n]), S(() => {
|
|
@@ -7661,9 +7775,9 @@ const I5 = w1(
|
|
|
7661
7775
|
v === null ? (n(""), t && t("")) : (n(v), t && t(""));
|
|
7662
7776
|
};
|
|
7663
7777
|
return /* @__PURE__ */ o("div", { className: "snmt-country-select", children: /* @__PURE__ */ o(
|
|
7664
|
-
|
|
7778
|
+
V5,
|
|
7665
7779
|
{
|
|
7666
|
-
id:
|
|
7780
|
+
id: a,
|
|
7667
7781
|
width: i,
|
|
7668
7782
|
placeholder: H("placeholder"),
|
|
7669
7783
|
value: s,
|
|
@@ -7672,7 +7786,7 @@ const I5 = w1(
|
|
|
7672
7786
|
options: h,
|
|
7673
7787
|
disabled: c,
|
|
7674
7788
|
isLoading: L,
|
|
7675
|
-
required:
|
|
7789
|
+
required: r,
|
|
7676
7790
|
clearable: g,
|
|
7677
7791
|
error: d
|
|
7678
7792
|
}
|
|
@@ -7680,5 +7794,5 @@ const I5 = w1(
|
|
|
7680
7794
|
}
|
|
7681
7795
|
);
|
|
7682
7796
|
export {
|
|
7683
|
-
|
|
7797
|
+
Si as CountrySelect
|
|
7684
7798
|
};
|