@snmt-react-ui/user-select 2.7.20 → 2.7.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/user-select.js +1119 -1005
- package/package.json +4 -4
package/dist/user-select.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Le = Object.defineProperty;
|
|
2
2
|
var ve = (i, e, t) => e in i ? Le(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var B1 = (i, e, t) => ve(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import "./index.css";
|
|
5
5
|
import { jsx as r, Fragment as i1, jsxs as C } from "react/jsx-runtime";
|
|
6
|
-
import { createContext as d1, forwardRef as k1, useRef as q, useImperativeHandle as _1, useState as T, useEffect as
|
|
6
|
+
import { createContext as d1, forwardRef as k1, useRef as q, useImperativeHandle as _1, useState as T, useEffect as j, useCallback as $, useMemo as Ne, useContext as r1 } from "react";
|
|
7
7
|
import { Select as xe, Flex as Re, Avatar as Me, Checkbox as be, Tooltip as ae, Typography as le, Tag as ye, Popover as Ee } from "antd";
|
|
8
8
|
import { SNMTUiContext as _e } from "@snmt-react-ui/core";
|
|
9
9
|
var He = Object.defineProperty, Ie = (i, e, t) => e in i ? He(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Oe = (i, e, t) => Ie(i, e + "", t), Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -14,13 +14,13 @@ function Ve() {
|
|
|
14
14
|
s1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const j1 = {};
|
|
18
18
|
function V1() {
|
|
19
19
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
20
20
|
e[t] = arguments[t];
|
|
21
|
-
s1(e[0]) &&
|
|
21
|
+
s1(e[0]) && j1[e[0]] || (s1(e[0]) && (j1[e[0]] = /* @__PURE__ */ new Date()), Ve(...e));
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const he = (i, e) => () => {
|
|
24
24
|
if (i.isInitialized)
|
|
25
25
|
e();
|
|
26
26
|
else {
|
|
@@ -32,20 +32,20 @@ const ce = (i, e) => () => {
|
|
|
32
32
|
i.on("initialized", t);
|
|
33
33
|
}
|
|
34
34
|
}, W1 = (i, e, t) => {
|
|
35
|
-
i.loadNamespaces(e,
|
|
35
|
+
i.loadNamespaces(e, he(i, t));
|
|
36
36
|
}, G1 = (i, e, t, s) => {
|
|
37
37
|
s1(t) && (t = [t]), t.forEach((n) => {
|
|
38
38
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
39
|
-
}), i.loadLanguages(e,
|
|
39
|
+
}), i.loadLanguages(e, he(i, s));
|
|
40
40
|
}, Ae = function(i, e) {
|
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
42
|
-
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1,
|
|
42
|
+
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
|
|
43
43
|
if (s.toLowerCase() === "cimode") return !0;
|
|
44
|
-
const
|
|
45
|
-
const g = e.services.backendConnector.state[`${
|
|
44
|
+
const c = (o, d) => {
|
|
45
|
+
const g = e.services.backendConnector.state[`${o}|${d}`];
|
|
46
46
|
return g === -1 || g === 2;
|
|
47
47
|
};
|
|
48
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !
|
|
48
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(a, i)));
|
|
49
49
|
}, Te = function(i, e) {
|
|
50
50
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
51
51
|
return !e.languages || !e.languages.length ? (V1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
@@ -54,7 +54,7 @@ const ce = (i, e) => () => {
|
|
|
54
54
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !n(s.isLanguageChangingTo, i)) return !1;
|
|
55
55
|
}
|
|
56
56
|
}) : Ae(i, e, t);
|
|
57
|
-
}, s1 = (i) => typeof i == "string",
|
|
57
|
+
}, s1 = (i) => typeof i == "string", Ze = (i) => typeof i == "object" && i !== null, De = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Be = {
|
|
58
58
|
"&": "&",
|
|
59
59
|
"&": "&",
|
|
60
60
|
"<": "<",
|
|
@@ -75,7 +75,7 @@ const ce = (i, e) => () => {
|
|
|
75
75
|
"…": "…",
|
|
76
76
|
"/": "/",
|
|
77
77
|
"/": "/"
|
|
78
|
-
},
|
|
78
|
+
}, je = (i) => Be[i], We = (i) => i.replace(De, je);
|
|
79
79
|
let Ge = {
|
|
80
80
|
bindI18n: "languageChanged",
|
|
81
81
|
bindI18nStore: "",
|
|
@@ -101,60 +101,60 @@ class Ye {
|
|
|
101
101
|
}
|
|
102
102
|
const Ue = (i, e) => {
|
|
103
103
|
const t = q();
|
|
104
|
-
return
|
|
104
|
+
return j(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
|
-
},
|
|
107
|
+
}, ce = (i, e, t, s) => i.getFixedT(e, t, s), ze = (i, e, t, s) => $(ce(i, e, t, s), [i, e, t, s]), Je = 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: s,
|
|
113
113
|
defaultNS: n
|
|
114
|
-
} = r1(Fe) || {},
|
|
115
|
-
if (
|
|
114
|
+
} = r1(Fe) || {}, a = t || s || Pe();
|
|
115
|
+
if (a && !a.reportNamespaces && (a.reportNamespaces = new Ye()), !a) {
|
|
116
116
|
V1("You will need to pass in an i18next instance by using initReactI18next");
|
|
117
|
-
const f = (x, v) => s1(v) ? v :
|
|
117
|
+
const f = (x, v) => s1(v) ? v : Ze(v) && s1(v.defaultValue) ? v.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
|
|
118
118
|
return N.t = f, N.i18n = {}, N.ready = !1, N;
|
|
119
119
|
}
|
|
120
|
-
|
|
121
|
-
const
|
|
120
|
+
a.options.react && a.options.react.wait !== void 0 && V1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
121
|
+
const c = {
|
|
122
122
|
...Ke(),
|
|
123
|
-
...
|
|
123
|
+
...a.options.react,
|
|
124
124
|
...e
|
|
125
125
|
}, {
|
|
126
|
-
useSuspense:
|
|
126
|
+
useSuspense: o,
|
|
127
127
|
keyPrefix: d
|
|
128
|
-
} =
|
|
128
|
+
} = c;
|
|
129
129
|
let g = i;
|
|
130
|
-
g = s1(g) ? [g] : g || ["translation"],
|
|
131
|
-
const l = (
|
|
130
|
+
g = s1(g) ? [g] : g || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(g);
|
|
131
|
+
const l = (a.isInitialized || a.initializedStoreOnce) && g.every((f) => Te(f, a, c)), h = ze(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => ce(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [w, k] = T(u);
|
|
132
132
|
let m = g.join();
|
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const _ = Ue(m), M = q(!0);
|
|
135
|
+
j(() => {
|
|
136
136
|
const {
|
|
137
137
|
bindI18n: f,
|
|
138
138
|
bindI18nStore: N
|
|
139
|
-
} =
|
|
140
|
-
M.current = !0, !l && !
|
|
139
|
+
} = c;
|
|
140
|
+
M.current = !0, !l && !o && (e.lng ? G1(a, e.lng, g, () => {
|
|
141
141
|
M.current && k(p);
|
|
142
|
-
}) : W1(
|
|
142
|
+
}) : W1(a, g, () => {
|
|
143
143
|
M.current && k(p);
|
|
144
|
-
})), l &&
|
|
144
|
+
})), l && _ && _ !== m && M.current && k(p);
|
|
145
145
|
const x = () => {
|
|
146
146
|
M.current && k(p);
|
|
147
147
|
};
|
|
148
|
-
return f &&
|
|
149
|
-
M.current = !1, f &&
|
|
148
|
+
return f && a && a.on(f, x), N && a && a.store.on(N, x), () => {
|
|
149
|
+
M.current = !1, f && a && f.split(" ").forEach((v) => a.off(v, x)), N && a && N.split(" ").forEach((v) => a.store.off(v, x));
|
|
150
150
|
};
|
|
151
|
-
}, [
|
|
151
|
+
}, [a, m]), j(() => {
|
|
152
152
|
M.current && l && k(u);
|
|
153
|
-
}, [
|
|
154
|
-
const S = [w,
|
|
155
|
-
if (S.t = w, S.i18n =
|
|
153
|
+
}, [a, d, l]);
|
|
154
|
+
const S = [w, a, l];
|
|
155
|
+
if (S.t = w, S.i18n = a, S.ready = l, l || !l && !o) return S;
|
|
156
156
|
throw new Promise((f) => {
|
|
157
|
-
e.lng ? G1(
|
|
157
|
+
e.lng ? G1(a, e.lng, g, () => f()) : W1(a, g, () => f());
|
|
158
158
|
});
|
|
159
159
|
}, p1 = ({
|
|
160
160
|
children: i,
|
|
@@ -162,9 +162,9 @@ const Ue = (i, e) => {
|
|
|
162
162
|
flexWrap: t = "nowrap",
|
|
163
163
|
alignItems: s = "normal",
|
|
164
164
|
justifyContent: n = "normal",
|
|
165
|
-
flex:
|
|
166
|
-
gap:
|
|
167
|
-
padding:
|
|
165
|
+
flex: a,
|
|
166
|
+
gap: c,
|
|
167
|
+
padding: o
|
|
168
168
|
}) => /* @__PURE__ */ r(
|
|
169
169
|
Re,
|
|
170
170
|
{
|
|
@@ -173,9 +173,9 @@ const Ue = (i, e) => {
|
|
|
173
173
|
wrap: t,
|
|
174
174
|
align: s,
|
|
175
175
|
justify: n,
|
|
176
|
-
flex:
|
|
177
|
-
gap:
|
|
178
|
-
style: { padding:
|
|
176
|
+
flex: a,
|
|
177
|
+
gap: c,
|
|
178
|
+
style: { padding: o },
|
|
179
179
|
children: i
|
|
180
180
|
}
|
|
181
181
|
), qe = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
|
|
@@ -193,39 +193,39 @@ const Ue = (i, e) => {
|
|
|
193
193
|
);
|
|
194
194
|
};
|
|
195
195
|
var Q = /* @__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))(Q || {});
|
|
196
|
-
const
|
|
196
|
+
const D1 = d1({
|
|
197
197
|
locale: "en",
|
|
198
198
|
theme: "light"
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
D1.Provider;
|
|
201
201
|
const Qe = ({
|
|
202
202
|
checked: i = !0,
|
|
203
203
|
indeterminate: e = !1,
|
|
204
204
|
children: t,
|
|
205
205
|
onChange: s,
|
|
206
206
|
disabled: n = !1,
|
|
207
|
-
disableUncheck:
|
|
207
|
+
disableUncheck: a = !1
|
|
208
208
|
}) => {
|
|
209
|
-
const [
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
const [c, o] = T(i), [d, g] = T(e);
|
|
210
|
+
j(() => {
|
|
211
|
+
o(i), g(e);
|
|
212
212
|
}, [i, e]);
|
|
213
|
-
const { theme: l } = r1(
|
|
213
|
+
const { theme: l } = r1(D1);
|
|
214
214
|
return /* @__PURE__ */ r(
|
|
215
215
|
be,
|
|
216
216
|
{
|
|
217
217
|
className: `snmt-checkbox snmt-checkbox-${l}`,
|
|
218
|
-
checked:
|
|
218
|
+
checked: c,
|
|
219
219
|
indeterminate: d,
|
|
220
|
-
onChange: (
|
|
221
|
-
|
|
220
|
+
onChange: (h) => {
|
|
221
|
+
a && c || (g(!1), o(h.target.checked), s && s(h));
|
|
222
222
|
},
|
|
223
223
|
disabled: n,
|
|
224
224
|
children: t
|
|
225
225
|
}
|
|
226
226
|
);
|
|
227
227
|
};
|
|
228
|
-
var
|
|
228
|
+
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 || {});
|
|
229
229
|
const de = d1({
|
|
230
230
|
locale: "en",
|
|
231
231
|
theme: "light"
|
|
@@ -259,28 +259,40 @@ const Xe = ({
|
|
|
259
259
|
)
|
|
260
260
|
}
|
|
261
261
|
), et = ({
|
|
262
|
-
width: i =
|
|
263
|
-
height: e =
|
|
264
|
-
color: t =
|
|
262
|
+
width: i = 20,
|
|
263
|
+
height: e = 20,
|
|
264
|
+
color: t = y.GREY_DARK_5,
|
|
265
265
|
className: s,
|
|
266
266
|
onClick: n
|
|
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: s,
|
|
274
273
|
onClick: n,
|
|
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__ */ r("circle", { cx: "8", cy: "8", r: "7.4", stroke: t, strokeWidth: "1.2" }),
|
|
279
|
-
/* @__PURE__ */ r("path", { d: "M7 6.5H9V12.5335H7V6.5Z", fill: t }),
|
|
280
278
|
/* @__PURE__ */ r(
|
|
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__ */ r(
|
|
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__ */ r(
|
|
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
|
)
|
|
@@ -581,41 +593,47 @@ const Xe = ({
|
|
|
581
593
|
)
|
|
582
594
|
] })
|
|
583
595
|
}
|
|
584
|
-
),
|
|
585
|
-
width: i =
|
|
586
|
-
height: e =
|
|
587
|
-
color: t =
|
|
596
|
+
), ht = ({
|
|
597
|
+
width: i = 20,
|
|
598
|
+
height: e = 20,
|
|
599
|
+
color: t = y.GREY_DARK_5,
|
|
588
600
|
className: s,
|
|
589
601
|
onClick: n
|
|
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: s,
|
|
597
608
|
onClick: n,
|
|
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__ */ r("circle", { cx: "8", cy: "8", r: "7.27273", stroke: t, strokeWidth: "1.45455" }),
|
|
602
613
|
/* @__PURE__ */ r(
|
|
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",
|
|
617
|
+
fill: t
|
|
618
|
+
}
|
|
619
|
+
),
|
|
620
|
+
/* @__PURE__ */ r(
|
|
621
|
+
"path",
|
|
622
|
+
{
|
|
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",
|
|
606
624
|
fill: t
|
|
607
625
|
}
|
|
608
626
|
),
|
|
609
627
|
/* @__PURE__ */ r(
|
|
610
628
|
"path",
|
|
611
629
|
{
|
|
612
|
-
d: "
|
|
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
|
+
), ct = ({
|
|
619
637
|
width: i = 20,
|
|
620
638
|
height: e = 20,
|
|
621
639
|
color: t = "#001E52",
|
|
@@ -995,6 +1013,39 @@ const Xe = ({
|
|
|
995
1013
|
]
|
|
996
1014
|
}
|
|
997
1015
|
), Lt = ({
|
|
1016
|
+
width: i = 20,
|
|
1017
|
+
height: e = 20,
|
|
1018
|
+
color: t = y.GREY_DARK_5,
|
|
1019
|
+
className: s,
|
|
1020
|
+
onClick: n
|
|
1021
|
+
}) => /* @__PURE__ */ C(
|
|
1022
|
+
"svg",
|
|
1023
|
+
{
|
|
1024
|
+
width: i,
|
|
1025
|
+
height: e,
|
|
1026
|
+
className: s,
|
|
1027
|
+
onClick: n,
|
|
1028
|
+
viewBox: "0 0 24 25",
|
|
1029
|
+
fill: "none",
|
|
1030
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1031
|
+
children: [
|
|
1032
|
+
/* @__PURE__ */ r(
|
|
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__ */ r(
|
|
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
|
+
), vt = ({
|
|
998
1049
|
width: i = 10,
|
|
999
1050
|
height: e = 10,
|
|
1000
1051
|
color: t = "#88A4FF",
|
|
@@ -1042,7 +1093,7 @@ const Xe = ({
|
|
|
1042
1093
|
)
|
|
1043
1094
|
]
|
|
1044
1095
|
}
|
|
1045
|
-
),
|
|
1096
|
+
), Nt = ({
|
|
1046
1097
|
width: i = 14,
|
|
1047
1098
|
height: e = 14,
|
|
1048
1099
|
color: t = "#8E8E93",
|
|
@@ -1070,7 +1121,7 @@ const Xe = ({
|
|
|
1070
1121
|
)
|
|
1071
1122
|
]
|
|
1072
1123
|
}
|
|
1073
|
-
),
|
|
1124
|
+
), xt = ({
|
|
1074
1125
|
width: i = 14,
|
|
1075
1126
|
height: e = 14,
|
|
1076
1127
|
color: t = "#FFB020",
|
|
@@ -1104,7 +1155,7 @@ const Xe = ({
|
|
|
1104
1155
|
)
|
|
1105
1156
|
]
|
|
1106
1157
|
}
|
|
1107
|
-
),
|
|
1158
|
+
), Rt = ({
|
|
1108
1159
|
width: i = 14,
|
|
1109
1160
|
height: e = 14,
|
|
1110
1161
|
color: t = "#D0421B",
|
|
@@ -1152,7 +1203,7 @@ const Xe = ({
|
|
|
1152
1203
|
)
|
|
1153
1204
|
]
|
|
1154
1205
|
}
|
|
1155
|
-
),
|
|
1206
|
+
), Mt = ({
|
|
1156
1207
|
width: i = 20,
|
|
1157
1208
|
height: e = 20,
|
|
1158
1209
|
color: t = "#070739",
|
|
@@ -1182,7 +1233,7 @@ const Xe = ({
|
|
|
1182
1233
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
1183
1234
|
]
|
|
1184
1235
|
}
|
|
1185
|
-
),
|
|
1236
|
+
), bt = ({
|
|
1186
1237
|
width: i = 20,
|
|
1187
1238
|
height: e = 20,
|
|
1188
1239
|
color: t = "#070739",
|
|
@@ -1220,7 +1271,7 @@ const Xe = ({
|
|
|
1220
1271
|
)
|
|
1221
1272
|
]
|
|
1222
1273
|
}
|
|
1223
|
-
),
|
|
1274
|
+
), yt = ({
|
|
1224
1275
|
width: i = 9,
|
|
1225
1276
|
height: e = 5,
|
|
1226
1277
|
color: t = "#001E52",
|
|
@@ -1246,7 +1297,7 @@ const Xe = ({
|
|
|
1246
1297
|
}
|
|
1247
1298
|
)
|
|
1248
1299
|
}
|
|
1249
|
-
),
|
|
1300
|
+
), Et = ({
|
|
1250
1301
|
width: i = 20,
|
|
1251
1302
|
height: e = 20,
|
|
1252
1303
|
color: t = "#F2F2F7",
|
|
@@ -1275,7 +1326,7 @@ const Xe = ({
|
|
|
1275
1326
|
)
|
|
1276
1327
|
]
|
|
1277
1328
|
}
|
|
1278
|
-
),
|
|
1329
|
+
), _t = ({
|
|
1279
1330
|
width: i = 20,
|
|
1280
1331
|
height: e = 20,
|
|
1281
1332
|
color: t = "#004ED7",
|
|
@@ -1304,7 +1355,7 @@ const Xe = ({
|
|
|
1304
1355
|
)
|
|
1305
1356
|
]
|
|
1306
1357
|
}
|
|
1307
|
-
),
|
|
1358
|
+
), Ht = ({
|
|
1308
1359
|
width: i = 10,
|
|
1309
1360
|
height: e = 10,
|
|
1310
1361
|
color: t = "#001E52",
|
|
@@ -1333,7 +1384,7 @@ const Xe = ({
|
|
|
1333
1384
|
)
|
|
1334
1385
|
]
|
|
1335
1386
|
}
|
|
1336
|
-
),
|
|
1387
|
+
), It = ({
|
|
1337
1388
|
width: i = 10,
|
|
1338
1389
|
height: e = 10,
|
|
1339
1390
|
color: t = "#001E52",
|
|
@@ -1370,9 +1421,9 @@ const Xe = ({
|
|
|
1370
1421
|
)
|
|
1371
1422
|
]
|
|
1372
1423
|
}
|
|
1373
|
-
),
|
|
1424
|
+
), Ot = ({
|
|
1374
1425
|
className: i,
|
|
1375
|
-
color: e =
|
|
1426
|
+
color: e = y.GREY_DARK_5,
|
|
1376
1427
|
height: t = 24,
|
|
1377
1428
|
width: s = 24,
|
|
1378
1429
|
onClick: n
|
|
@@ -1409,9 +1460,9 @@ const Xe = ({
|
|
|
1409
1460
|
)
|
|
1410
1461
|
]
|
|
1411
1462
|
}
|
|
1412
|
-
),
|
|
1463
|
+
), St = ({
|
|
1413
1464
|
className: i,
|
|
1414
|
-
color: e =
|
|
1465
|
+
color: e = y.GREY_DARK_5,
|
|
1415
1466
|
height: t = 20,
|
|
1416
1467
|
width: s = 20,
|
|
1417
1468
|
onClick: n
|
|
@@ -1436,9 +1487,9 @@ const Xe = ({
|
|
|
1436
1487
|
}
|
|
1437
1488
|
)
|
|
1438
1489
|
}
|
|
1439
|
-
),
|
|
1490
|
+
), Vt = ({
|
|
1440
1491
|
className: i,
|
|
1441
|
-
color: e =
|
|
1492
|
+
color: e = y.GREY_DARK_5,
|
|
1442
1493
|
height: t = 20,
|
|
1443
1494
|
width: s = 20,
|
|
1444
1495
|
onClick: n
|
|
@@ -1463,9 +1514,9 @@ const Xe = ({
|
|
|
1463
1514
|
}
|
|
1464
1515
|
)
|
|
1465
1516
|
}
|
|
1466
|
-
),
|
|
1517
|
+
), At = ({
|
|
1467
1518
|
className: i,
|
|
1468
|
-
color: e =
|
|
1519
|
+
color: e = y.GREY_DARK_5,
|
|
1469
1520
|
height: t = 5,
|
|
1470
1521
|
width: s = 10,
|
|
1471
1522
|
onClick: n
|
|
@@ -1487,9 +1538,9 @@ const Xe = ({
|
|
|
1487
1538
|
}
|
|
1488
1539
|
)
|
|
1489
1540
|
}
|
|
1490
|
-
),
|
|
1541
|
+
), Tt = ({
|
|
1491
1542
|
className: i,
|
|
1492
|
-
color: e =
|
|
1543
|
+
color: e = y.GREY_DARK_5,
|
|
1493
1544
|
height: t = 5,
|
|
1494
1545
|
width: s = 10,
|
|
1495
1546
|
onClick: n
|
|
@@ -1512,9 +1563,9 @@ const Xe = ({
|
|
|
1512
1563
|
}
|
|
1513
1564
|
)
|
|
1514
1565
|
}
|
|
1515
|
-
),
|
|
1566
|
+
), Zt = ({
|
|
1516
1567
|
className: i,
|
|
1517
|
-
color: e =
|
|
1568
|
+
color: e = y.GREY_DARK_5,
|
|
1518
1569
|
height: t = 24,
|
|
1519
1570
|
width: s = 24,
|
|
1520
1571
|
onClick: n
|
|
@@ -1553,7 +1604,7 @@ const Xe = ({
|
|
|
1553
1604
|
}
|
|
1554
1605
|
), Dt = ({
|
|
1555
1606
|
className: i,
|
|
1556
|
-
color: e =
|
|
1607
|
+
color: e = y.GREY_DARK_5,
|
|
1557
1608
|
height: t = 24,
|
|
1558
1609
|
width: s = 24,
|
|
1559
1610
|
onClick: n
|
|
@@ -1592,7 +1643,7 @@ const Xe = ({
|
|
|
1592
1643
|
}
|
|
1593
1644
|
), Bt = ({
|
|
1594
1645
|
className: i,
|
|
1595
|
-
color: e =
|
|
1646
|
+
color: e = y.GREY_DARK_5,
|
|
1596
1647
|
height: t = 24,
|
|
1597
1648
|
width: s = 24,
|
|
1598
1649
|
onClick: n
|
|
@@ -1619,7 +1670,7 @@ const Xe = ({
|
|
|
1619
1670
|
}
|
|
1620
1671
|
), jt = ({
|
|
1621
1672
|
className: i,
|
|
1622
|
-
color: e =
|
|
1673
|
+
color: e = y.GREY_DARK_5,
|
|
1623
1674
|
height: t = 24,
|
|
1624
1675
|
width: s = 24,
|
|
1625
1676
|
onClick: n
|
|
@@ -1676,9 +1727,9 @@ const Xe = ({
|
|
|
1676
1727
|
)
|
|
1677
1728
|
]
|
|
1678
1729
|
}
|
|
1679
|
-
),
|
|
1730
|
+
), Wt = ({
|
|
1680
1731
|
className: i,
|
|
1681
|
-
color: e =
|
|
1732
|
+
color: e = y.GREY_DARK_5,
|
|
1682
1733
|
height: t = 24,
|
|
1683
1734
|
width: s = 24,
|
|
1684
1735
|
onClick: n
|
|
@@ -1713,9 +1764,9 @@ const Xe = ({
|
|
|
1713
1764
|
)
|
|
1714
1765
|
]
|
|
1715
1766
|
}
|
|
1716
|
-
),
|
|
1767
|
+
), Gt = ({
|
|
1717
1768
|
className: i,
|
|
1718
|
-
color: e =
|
|
1769
|
+
color: e = y.GREY_DARK_3,
|
|
1719
1770
|
height: t = 14,
|
|
1720
1771
|
width: s = 14,
|
|
1721
1772
|
onClick: n
|
|
@@ -1750,9 +1801,9 @@ const Xe = ({
|
|
|
1750
1801
|
)
|
|
1751
1802
|
]
|
|
1752
1803
|
}
|
|
1753
|
-
),
|
|
1804
|
+
), Kt = ({
|
|
1754
1805
|
className: i,
|
|
1755
|
-
color: e =
|
|
1806
|
+
color: e = y.GREY_DARK_5,
|
|
1756
1807
|
height: t = 18,
|
|
1757
1808
|
onClick: s,
|
|
1758
1809
|
width: n = 18
|
|
@@ -1777,9 +1828,9 @@ const Xe = ({
|
|
|
1777
1828
|
}
|
|
1778
1829
|
)
|
|
1779
1830
|
}
|
|
1780
|
-
),
|
|
1831
|
+
), $t = ({
|
|
1781
1832
|
className: i,
|
|
1782
|
-
color: e =
|
|
1833
|
+
color: e = y.GREY_DARK_5,
|
|
1783
1834
|
height: t = 24,
|
|
1784
1835
|
width: s = 24,
|
|
1785
1836
|
onClick: n
|
|
@@ -1829,9 +1880,9 @@ const Xe = ({
|
|
|
1829
1880
|
)
|
|
1830
1881
|
]
|
|
1831
1882
|
}
|
|
1832
|
-
),
|
|
1883
|
+
), Pt = ({
|
|
1833
1884
|
className: i,
|
|
1834
|
-
color: e =
|
|
1885
|
+
color: e = y.GREY_DARK_5,
|
|
1835
1886
|
height: t = 24,
|
|
1836
1887
|
width: s = 24,
|
|
1837
1888
|
onClick: n
|
|
@@ -1866,9 +1917,9 @@ const Xe = ({
|
|
|
1866
1917
|
)
|
|
1867
1918
|
]
|
|
1868
1919
|
}
|
|
1869
|
-
),
|
|
1920
|
+
), Ft = ({
|
|
1870
1921
|
className: i,
|
|
1871
|
-
color: e =
|
|
1922
|
+
color: e = y.NOTIFICATION_WARNING_DARK,
|
|
1872
1923
|
height: t = 37,
|
|
1873
1924
|
width: s = 36,
|
|
1874
1925
|
onClick: n
|
|
@@ -1905,9 +1956,9 @@ const Xe = ({
|
|
|
1905
1956
|
)
|
|
1906
1957
|
]
|
|
1907
1958
|
}
|
|
1908
|
-
),
|
|
1959
|
+
), Yt = ({
|
|
1909
1960
|
className: i,
|
|
1910
|
-
color: e =
|
|
1961
|
+
color: e = y.GREY_DARK_5,
|
|
1911
1962
|
height: t = 24,
|
|
1912
1963
|
width: s = 24,
|
|
1913
1964
|
onClick: n
|
|
@@ -1931,9 +1982,9 @@ const Xe = ({
|
|
|
1931
1982
|
}
|
|
1932
1983
|
)
|
|
1933
1984
|
}
|
|
1934
|
-
),
|
|
1985
|
+
), Ut = ({
|
|
1935
1986
|
className: i,
|
|
1936
|
-
color: e =
|
|
1987
|
+
color: e = y.GREY_DARK_5,
|
|
1937
1988
|
height: t = 24,
|
|
1938
1989
|
width: s = 24,
|
|
1939
1990
|
onClick: n
|
|
@@ -1970,9 +2021,9 @@ const Xe = ({
|
|
|
1970
2021
|
)
|
|
1971
2022
|
]
|
|
1972
2023
|
}
|
|
1973
|
-
),
|
|
2024
|
+
), zt = ({
|
|
1974
2025
|
className: i,
|
|
1975
|
-
color: e =
|
|
2026
|
+
color: e = y.GREY_DARK_5,
|
|
1976
2027
|
height: t = 24,
|
|
1977
2028
|
width: s = 24,
|
|
1978
2029
|
onClick: n
|
|
@@ -2009,9 +2060,9 @@ const Xe = ({
|
|
|
2009
2060
|
)
|
|
2010
2061
|
]
|
|
2011
2062
|
}
|
|
2012
|
-
),
|
|
2063
|
+
), Jt = ({
|
|
2013
2064
|
className: i,
|
|
2014
|
-
color: e =
|
|
2065
|
+
color: e = y.GREY_DARK_5,
|
|
2015
2066
|
height: t = 24,
|
|
2016
2067
|
width: s = 24,
|
|
2017
2068
|
onClick: n
|
|
@@ -2078,9 +2129,9 @@ const Xe = ({
|
|
|
2078
2129
|
)
|
|
2079
2130
|
]
|
|
2080
2131
|
}
|
|
2081
|
-
),
|
|
2132
|
+
), qt = ({
|
|
2082
2133
|
className: i,
|
|
2083
|
-
color: e =
|
|
2134
|
+
color: e = y.GREY_DARK_5,
|
|
2084
2135
|
height: t = 24,
|
|
2085
2136
|
width: s = 24,
|
|
2086
2137
|
onClick: n
|
|
@@ -2135,9 +2186,9 @@ const Xe = ({
|
|
|
2135
2186
|
)
|
|
2136
2187
|
]
|
|
2137
2188
|
}
|
|
2138
|
-
),
|
|
2189
|
+
), Qt = ({
|
|
2139
2190
|
className: i,
|
|
2140
|
-
color: e =
|
|
2191
|
+
color: e = y.GREY_DARK_5,
|
|
2141
2192
|
height: t = 24,
|
|
2142
2193
|
width: s = 24,
|
|
2143
2194
|
onClick: n
|
|
@@ -2174,9 +2225,9 @@ const Xe = ({
|
|
|
2174
2225
|
)
|
|
2175
2226
|
]
|
|
2176
2227
|
}
|
|
2177
|
-
),
|
|
2228
|
+
), Xt = ({
|
|
2178
2229
|
className: i,
|
|
2179
|
-
color: e =
|
|
2230
|
+
color: e = y.GREY_DARK_5,
|
|
2180
2231
|
height: t = 24,
|
|
2181
2232
|
width: s = 24,
|
|
2182
2233
|
onClick: n
|
|
@@ -2223,9 +2274,9 @@ const Xe = ({
|
|
|
2223
2274
|
)
|
|
2224
2275
|
]
|
|
2225
2276
|
}
|
|
2226
|
-
),
|
|
2277
|
+
), e2 = ({
|
|
2227
2278
|
className: i,
|
|
2228
|
-
color: e =
|
|
2279
|
+
color: e = y.GREY_DARK_5,
|
|
2229
2280
|
height: t = 24,
|
|
2230
2281
|
width: s = 24,
|
|
2231
2282
|
onClick: n
|
|
@@ -2250,9 +2301,9 @@ const Xe = ({
|
|
|
2250
2301
|
}
|
|
2251
2302
|
)
|
|
2252
2303
|
}
|
|
2253
|
-
),
|
|
2304
|
+
), t2 = ({
|
|
2254
2305
|
className: i,
|
|
2255
|
-
color: e =
|
|
2306
|
+
color: e = y.GREY_DARK_5,
|
|
2256
2307
|
height: t = 20,
|
|
2257
2308
|
width: s = 20,
|
|
2258
2309
|
onClick: n
|
|
@@ -2267,7 +2318,7 @@ const Xe = ({
|
|
|
2267
2318
|
fill: "none",
|
|
2268
2319
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2269
2320
|
children: [
|
|
2270
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
2321
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: y.GREY_LIGHT_2 }),
|
|
2271
2322
|
/* @__PURE__ */ r(
|
|
2272
2323
|
"path",
|
|
2273
2324
|
{
|
|
@@ -2279,7 +2330,7 @@ const Xe = ({
|
|
|
2279
2330
|
)
|
|
2280
2331
|
]
|
|
2281
2332
|
}
|
|
2282
|
-
),
|
|
2333
|
+
), i2 = ({
|
|
2283
2334
|
className: i,
|
|
2284
2335
|
color: e = "#001E52",
|
|
2285
2336
|
height: t = 24,
|
|
@@ -2305,7 +2356,7 @@ const Xe = ({
|
|
|
2305
2356
|
}
|
|
2306
2357
|
)
|
|
2307
2358
|
}
|
|
2308
|
-
),
|
|
2359
|
+
), s2 = ({
|
|
2309
2360
|
className: i,
|
|
2310
2361
|
color: e = "#131314",
|
|
2311
2362
|
height: t = 20,
|
|
@@ -2333,7 +2384,7 @@ const Xe = ({
|
|
|
2333
2384
|
}
|
|
2334
2385
|
)
|
|
2335
2386
|
}
|
|
2336
|
-
),
|
|
2387
|
+
), n2 = ({
|
|
2337
2388
|
className: i,
|
|
2338
2389
|
color: e = "#001E52",
|
|
2339
2390
|
height: t = 24,
|
|
@@ -2371,7 +2422,7 @@ const Xe = ({
|
|
|
2371
2422
|
)
|
|
2372
2423
|
] }) })
|
|
2373
2424
|
}
|
|
2374
|
-
),
|
|
2425
|
+
), r2 = ({
|
|
2375
2426
|
width: i = 20,
|
|
2376
2427
|
height: e = 20,
|
|
2377
2428
|
color: t = "#001E52",
|
|
@@ -2427,7 +2478,7 @@ const Xe = ({
|
|
|
2427
2478
|
}
|
|
2428
2479
|
)
|
|
2429
2480
|
}
|
|
2430
|
-
),
|
|
2481
|
+
), o2 = ({
|
|
2431
2482
|
width: i = 24,
|
|
2432
2483
|
height: e = 24,
|
|
2433
2484
|
color: t = "#131314",
|
|
@@ -2460,10 +2511,10 @@ const Xe = ({
|
|
|
2460
2511
|
)
|
|
2461
2512
|
]
|
|
2462
2513
|
}
|
|
2463
|
-
),
|
|
2514
|
+
), a2 = ({
|
|
2464
2515
|
width: i = 24,
|
|
2465
2516
|
height: e = 24,
|
|
2466
|
-
color: t =
|
|
2517
|
+
color: t = y.GREY_DARK_2,
|
|
2467
2518
|
className: s,
|
|
2468
2519
|
onClick: n
|
|
2469
2520
|
}) => /* @__PURE__ */ C(
|
|
@@ -2499,10 +2550,10 @@ const Xe = ({
|
|
|
2499
2550
|
)
|
|
2500
2551
|
]
|
|
2501
2552
|
}
|
|
2502
|
-
),
|
|
2553
|
+
), l2 = ({
|
|
2503
2554
|
width: i = 24,
|
|
2504
2555
|
height: e = 24,
|
|
2505
|
-
color: t =
|
|
2556
|
+
color: t = y.GREY_DARK_2,
|
|
2506
2557
|
className: s,
|
|
2507
2558
|
onClick: n
|
|
2508
2559
|
}) => /* @__PURE__ */ r(
|
|
@@ -2526,10 +2577,10 @@ const Xe = ({
|
|
|
2526
2577
|
}
|
|
2527
2578
|
)
|
|
2528
2579
|
}
|
|
2529
|
-
),
|
|
2580
|
+
), h2 = ({
|
|
2530
2581
|
width: i = 24,
|
|
2531
2582
|
height: e = 24,
|
|
2532
|
-
color: t =
|
|
2583
|
+
color: t = y.GREY_DARK_2,
|
|
2533
2584
|
className: s,
|
|
2534
2585
|
onClick: n
|
|
2535
2586
|
}) => /* @__PURE__ */ C(
|
|
@@ -2569,7 +2620,7 @@ const Xe = ({
|
|
|
2569
2620
|
), c2 = ({
|
|
2570
2621
|
width: i = 24,
|
|
2571
2622
|
height: e = 24,
|
|
2572
|
-
color: t =
|
|
2623
|
+
color: t = y.GREY_DARK_2,
|
|
2573
2624
|
className: s,
|
|
2574
2625
|
onClick: n
|
|
2575
2626
|
}) => /* @__PURE__ */ r(
|
|
@@ -2593,10 +2644,10 @@ const Xe = ({
|
|
|
2593
2644
|
}
|
|
2594
2645
|
)
|
|
2595
2646
|
}
|
|
2596
|
-
),
|
|
2647
|
+
), d2 = ({
|
|
2597
2648
|
width: i = 24,
|
|
2598
2649
|
height: e = 24,
|
|
2599
|
-
color: t =
|
|
2650
|
+
color: t = y.GREY_DARK_2,
|
|
2600
2651
|
className: s,
|
|
2601
2652
|
onClick: n
|
|
2602
2653
|
}) => /* @__PURE__ */ r(
|
|
@@ -2620,7 +2671,7 @@ const Xe = ({
|
|
|
2620
2671
|
}
|
|
2621
2672
|
)
|
|
2622
2673
|
}
|
|
2623
|
-
),
|
|
2674
|
+
), g2 = ({
|
|
2624
2675
|
width: i = 20,
|
|
2625
2676
|
height: e = 20,
|
|
2626
2677
|
color: t = "#001E52",
|
|
@@ -2652,205 +2703,207 @@ const Xe = ({
|
|
|
2652
2703
|
height: t,
|
|
2653
2704
|
color: s,
|
|
2654
2705
|
className: n,
|
|
2655
|
-
disabled:
|
|
2656
|
-
onClick:
|
|
2706
|
+
disabled: a = !1,
|
|
2707
|
+
onClick: c
|
|
2657
2708
|
}) => {
|
|
2658
|
-
const [
|
|
2659
|
-
return
|
|
2709
|
+
const [o, d] = T(n), { theme: g } = r1(de), l = a ? g && g === "dark" ? y.GREY_LIGHT_4 : y.GREY_DARK_1 : s, h = a ? void 0 : c;
|
|
2710
|
+
return j(() => {
|
|
2660
2711
|
if (n) {
|
|
2661
|
-
|
|
2712
|
+
h && !a && d(`${n} clickable`);
|
|
2662
2713
|
return;
|
|
2663
2714
|
}
|
|
2664
|
-
|
|
2665
|
-
}, [
|
|
2715
|
+
h && !a && d("clickable");
|
|
2716
|
+
}, [h, n, a]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
2666
2717
|
switch (i) {
|
|
2667
2718
|
case "nextIcon":
|
|
2668
|
-
return
|
|
2719
|
+
return St({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2669
2720
|
case "prevIcon":
|
|
2670
|
-
return
|
|
2721
|
+
return Vt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2671
2722
|
case "arrowDown":
|
|
2672
|
-
return Xe({ width: e, height: t, color: l, className:
|
|
2723
|
+
return Xe({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2673
2724
|
case "info":
|
|
2674
|
-
return et({ width: e, height: t, color: l, className:
|
|
2725
|
+
return et({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2675
2726
|
case "arrowRight":
|
|
2676
|
-
return tt({ width: e, height: t, color: l, className:
|
|
2727
|
+
return tt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2677
2728
|
case "calendar":
|
|
2678
|
-
return it({ width: e, height: t, color: l, className:
|
|
2729
|
+
return it({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2679
2730
|
case "ok":
|
|
2680
|
-
return st({ width: e, height: t, color: l, className:
|
|
2731
|
+
return st({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2681
2732
|
case "cancel":
|
|
2682
|
-
return nt({ width: e, height: t, color: l, className:
|
|
2733
|
+
return nt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2683
2734
|
case "add":
|
|
2684
|
-
return rt({ width: e, height: t, color: l, className:
|
|
2735
|
+
return rt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2685
2736
|
case "list":
|
|
2686
|
-
return ot({ width: e, height: t, color: l, className:
|
|
2737
|
+
return ot({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2687
2738
|
case "dragAndDrop":
|
|
2688
|
-
return at({ width: e, height: t, color: l, className:
|
|
2739
|
+
return at({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2689
2740
|
case "filter":
|
|
2690
|
-
return lt({ width: e, height: t, color: l, className:
|
|
2741
|
+
return lt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2691
2742
|
case "attention":
|
|
2692
|
-
return
|
|
2743
|
+
return ht({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2693
2744
|
case "users":
|
|
2694
|
-
return
|
|
2745
|
+
return ct({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2695
2746
|
case "mySkillsMatrix":
|
|
2696
2747
|
return dt({
|
|
2697
2748
|
width: e,
|
|
2698
2749
|
height: t,
|
|
2699
2750
|
color: l,
|
|
2700
|
-
className:
|
|
2701
|
-
onClick:
|
|
2751
|
+
className: o,
|
|
2752
|
+
onClick: h
|
|
2702
2753
|
});
|
|
2703
2754
|
case "skills":
|
|
2704
|
-
return gt({ width: e, height: t, color: l, className:
|
|
2755
|
+
return gt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2705
2756
|
case "skillsMatrices":
|
|
2706
2757
|
return ut({
|
|
2707
2758
|
width: e,
|
|
2708
2759
|
height: t,
|
|
2709
2760
|
color: l,
|
|
2710
|
-
className:
|
|
2711
|
-
onClick:
|
|
2761
|
+
className: o,
|
|
2762
|
+
onClick: h
|
|
2712
2763
|
});
|
|
2713
2764
|
case "history":
|
|
2714
|
-
return Ct({ width: e, height: t, color: l, className:
|
|
2765
|
+
return Ct({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2715
2766
|
case "logOut":
|
|
2716
|
-
return pt({ width: e, height: t, color: l, className:
|
|
2767
|
+
return pt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2717
2768
|
case "settings":
|
|
2718
|
-
return ft({ width: e, height: t, color: l, className:
|
|
2769
|
+
return ft({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2719
2770
|
case "trash":
|
|
2720
|
-
return mt({ width: e, height: t, color: l, className:
|
|
2771
|
+
return mt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2721
2772
|
case "settings4":
|
|
2722
|
-
return wt({ width: e, height: t, color: l, className:
|
|
2773
|
+
return wt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2723
2774
|
case "success":
|
|
2724
|
-
return kt({ width: e, height: t, color: l, className:
|
|
2775
|
+
return kt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2776
|
+
case "checkCircle":
|
|
2777
|
+
return Lt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2725
2778
|
case "errorSmall":
|
|
2726
|
-
return
|
|
2779
|
+
return vt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2727
2780
|
case "infoMedium":
|
|
2728
|
-
return
|
|
2781
|
+
return Nt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2729
2782
|
case "attentionMedium":
|
|
2730
|
-
return
|
|
2783
|
+
return xt({
|
|
2731
2784
|
width: e,
|
|
2732
2785
|
height: t,
|
|
2733
2786
|
color: l,
|
|
2734
|
-
className:
|
|
2735
|
-
onClick:
|
|
2787
|
+
className: o,
|
|
2788
|
+
onClick: h
|
|
2736
2789
|
});
|
|
2737
2790
|
case "errorMedium":
|
|
2738
|
-
return
|
|
2791
|
+
return Rt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2739
2792
|
case "visibilityIcon":
|
|
2740
|
-
return
|
|
2793
|
+
return Mt({
|
|
2741
2794
|
width: e,
|
|
2742
2795
|
height: t,
|
|
2743
2796
|
color: l,
|
|
2744
|
-
className:
|
|
2745
|
-
onClick:
|
|
2797
|
+
className: o,
|
|
2798
|
+
onClick: h
|
|
2746
2799
|
});
|
|
2747
2800
|
case "visibilityOffIcon":
|
|
2748
|
-
return
|
|
2801
|
+
return bt({
|
|
2749
2802
|
width: e,
|
|
2750
2803
|
height: t,
|
|
2751
2804
|
color: l,
|
|
2752
|
-
className:
|
|
2753
|
-
onClick:
|
|
2805
|
+
className: o,
|
|
2806
|
+
onClick: h
|
|
2754
2807
|
});
|
|
2755
2808
|
case "selectArrowIcon":
|
|
2756
|
-
return
|
|
2809
|
+
return yt({
|
|
2757
2810
|
width: e,
|
|
2758
2811
|
height: t,
|
|
2759
2812
|
color: l,
|
|
2760
|
-
className:
|
|
2761
|
-
onClick:
|
|
2813
|
+
className: o,
|
|
2814
|
+
onClick: h
|
|
2762
2815
|
});
|
|
2763
2816
|
case "expandArrowIcon":
|
|
2764
|
-
return
|
|
2817
|
+
return Et({
|
|
2765
2818
|
width: e,
|
|
2766
2819
|
height: t,
|
|
2767
2820
|
color: l,
|
|
2768
|
-
className:
|
|
2769
|
-
onClick:
|
|
2821
|
+
className: o,
|
|
2822
|
+
onClick: h
|
|
2770
2823
|
});
|
|
2771
2824
|
case "expandActiveArrowIcon":
|
|
2772
|
-
return
|
|
2825
|
+
return _t({
|
|
2773
2826
|
width: e,
|
|
2774
2827
|
height: t,
|
|
2775
2828
|
color: l,
|
|
2776
|
-
className:
|
|
2777
|
-
onClick:
|
|
2829
|
+
className: o,
|
|
2830
|
+
onClick: h
|
|
2778
2831
|
});
|
|
2779
2832
|
case "sortUp":
|
|
2780
|
-
return
|
|
2833
|
+
return Ht({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2781
2834
|
case "sortDown":
|
|
2782
|
-
return
|
|
2835
|
+
return It({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2783
2836
|
case "search":
|
|
2784
|
-
return
|
|
2837
|
+
return Ot({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2785
2838
|
case "arrowUpFilled":
|
|
2786
|
-
return
|
|
2839
|
+
return Tt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2787
2840
|
case "arrowDownFilled":
|
|
2788
|
-
return
|
|
2841
|
+
return At({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2789
2842
|
case "link":
|
|
2790
|
-
return
|
|
2843
|
+
return Zt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2791
2844
|
case "telegram":
|
|
2792
|
-
return Bt({ width: e, height: t, color: l, className:
|
|
2845
|
+
return Bt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2793
2846
|
case "mail":
|
|
2794
|
-
return
|
|
2847
|
+
return Wt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2795
2848
|
case "github":
|
|
2796
|
-
return Dt({ width: e, height: t, color: l, className:
|
|
2849
|
+
return Dt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2797
2850
|
case "linkedIn":
|
|
2798
|
-
return jt({ width: e, height: t, color: l, className:
|
|
2851
|
+
return jt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2799
2852
|
case "emptyStateIcon":
|
|
2800
|
-
return
|
|
2853
|
+
return Gt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2801
2854
|
case "filtersIcon":
|
|
2802
|
-
return
|
|
2855
|
+
return Kt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2803
2856
|
case "dotMenuIcon":
|
|
2804
|
-
return
|
|
2857
|
+
return $t({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2805
2858
|
case "plusCircle":
|
|
2806
|
-
return
|
|
2859
|
+
return Pt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2807
2860
|
case "warning":
|
|
2808
|
-
return
|
|
2861
|
+
return Ft({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2809
2862
|
case "back":
|
|
2810
|
-
return
|
|
2863
|
+
return Yt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2811
2864
|
case "bell":
|
|
2812
|
-
return
|
|
2865
|
+
return Ut({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2813
2866
|
case "contract":
|
|
2814
|
-
return
|
|
2867
|
+
return Jt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2815
2868
|
case "trash2":
|
|
2816
|
-
return
|
|
2869
|
+
return zt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2817
2870
|
case "resourceManager":
|
|
2818
|
-
return
|
|
2871
|
+
return qt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2819
2872
|
case "settings2":
|
|
2820
|
-
return
|
|
2873
|
+
return Qt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2821
2874
|
case "image":
|
|
2822
|
-
return
|
|
2875
|
+
return Xt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2823
2876
|
case "edit":
|
|
2824
|
-
return
|
|
2877
|
+
return e2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2825
2878
|
case "filledArrowRight":
|
|
2826
|
-
return
|
|
2879
|
+
return t2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2827
2880
|
case "burgerMenu":
|
|
2828
|
-
return
|
|
2881
|
+
return i2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2829
2882
|
case "signOut":
|
|
2830
|
-
return
|
|
2883
|
+
return s2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2831
2884
|
case "refresh":
|
|
2832
|
-
return
|
|
2885
|
+
return n2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2833
2886
|
case "projects":
|
|
2834
|
-
return
|
|
2887
|
+
return r2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2835
2888
|
case "profile":
|
|
2836
|
-
return
|
|
2889
|
+
return g2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2837
2890
|
case "exit":
|
|
2838
|
-
return
|
|
2891
|
+
return o2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2839
2892
|
case "client":
|
|
2840
|
-
return
|
|
2893
|
+
return a2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2841
2894
|
case "calendar2":
|
|
2842
|
-
return
|
|
2895
|
+
return l2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2843
2896
|
case "openPointCircle":
|
|
2844
|
-
return
|
|
2897
|
+
return h2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2845
2898
|
case "community":
|
|
2846
|
-
return c2({ width: e, height: t, color: l, className:
|
|
2899
|
+
return c2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2847
2900
|
case "docs":
|
|
2848
|
-
return
|
|
2901
|
+
return d2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2849
2902
|
default:
|
|
2850
2903
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
2851
2904
|
}
|
|
2852
2905
|
})() });
|
|
2853
|
-
},
|
|
2906
|
+
}, u2 = ({ children: i, title: e, arrow: t = !0, open: s, placement: n = "top" }) => /* @__PURE__ */ r(
|
|
2854
2907
|
ae,
|
|
2855
2908
|
{
|
|
2856
2909
|
overlayClassName: "snmt-tooltip",
|
|
@@ -2860,54 +2913,54 @@ const Xe = ({
|
|
|
2860
2913
|
placement: n,
|
|
2861
2914
|
children: i
|
|
2862
2915
|
}
|
|
2863
|
-
), { Title:
|
|
2916
|
+
), { Title: C2, Text: p2 } = le, f2 = {
|
|
2864
2917
|
h1: 1,
|
|
2865
2918
|
h2: 2,
|
|
2866
2919
|
h3: 3,
|
|
2867
2920
|
h4: 4
|
|
2868
|
-
},
|
|
2921
|
+
}, m2 = k1(
|
|
2869
2922
|
({
|
|
2870
2923
|
align: i = "inherit",
|
|
2871
2924
|
variant: e = "body1",
|
|
2872
2925
|
color: t,
|
|
2873
2926
|
children: s,
|
|
2874
2927
|
onClick: n,
|
|
2875
|
-
collapsed:
|
|
2876
|
-
whiteSpace:
|
|
2928
|
+
collapsed: a,
|
|
2929
|
+
whiteSpace: c = "normal",
|
|
2877
2930
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2878
|
-
trim:
|
|
2931
|
+
trim: o = !1
|
|
2879
2932
|
}, d) => {
|
|
2880
2933
|
const g = q(null);
|
|
2881
2934
|
_1(d, () => g.current);
|
|
2882
|
-
const [l,
|
|
2883
|
-
|
|
2884
|
-
if (!
|
|
2935
|
+
const [l, h] = T(!1);
|
|
2936
|
+
j(() => {
|
|
2937
|
+
if (!o) return;
|
|
2885
2938
|
const m = () => {
|
|
2886
|
-
g.current &&
|
|
2887
|
-
},
|
|
2888
|
-
return g.current &&
|
|
2889
|
-
|
|
2939
|
+
g.current && h(g.current.scrollWidth > g.current.clientWidth);
|
|
2940
|
+
}, _ = new ResizeObserver(m);
|
|
2941
|
+
return g.current && _.observe(g.current), () => {
|
|
2942
|
+
_.disconnect();
|
|
2890
2943
|
};
|
|
2891
|
-
}, [
|
|
2944
|
+
}, [o, 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"), o && (p += " collapsed");
|
|
2895
2948
|
const w = {
|
|
2896
2949
|
className: p,
|
|
2897
|
-
style: { color: t, whiteSpace:
|
|
2950
|
+
style: { color: t, whiteSpace: o ? "nowrap" : c, display: o ? "block" : "" },
|
|
2898
2951
|
onClick: n,
|
|
2899
2952
|
ref: g
|
|
2900
|
-
}, k = u ? /* @__PURE__ */ r(
|
|
2901
|
-
return
|
|
2953
|
+
}, k = u ? /* @__PURE__ */ r(C2, { level: f2[e], ...w, children: s }) : /* @__PURE__ */ r(p2, { ...w, children: s });
|
|
2954
|
+
return o && l ? /* @__PURE__ */ r(u2, { placement: "top", title: s, children: k }) : k;
|
|
2902
2955
|
}
|
|
2903
2956
|
);
|
|
2904
|
-
var
|
|
2957
|
+
var E = /* @__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))(E || {});
|
|
2905
2958
|
const ge = d1({
|
|
2906
2959
|
locale: "en",
|
|
2907
2960
|
theme: "light"
|
|
2908
2961
|
});
|
|
2909
2962
|
ge.Provider;
|
|
2910
|
-
const
|
|
2963
|
+
const w2 = ({
|
|
2911
2964
|
width: i = 20,
|
|
2912
2965
|
height: e = 20,
|
|
2913
2966
|
color: t = "#001E52",
|
|
@@ -2934,35 +2987,47 @@ const m2 = ({
|
|
|
2934
2987
|
}
|
|
2935
2988
|
)
|
|
2936
2989
|
}
|
|
2937
|
-
),
|
|
2938
|
-
width: i =
|
|
2939
|
-
height: e =
|
|
2940
|
-
color: t =
|
|
2990
|
+
), k2 = ({
|
|
2991
|
+
width: i = 20,
|
|
2992
|
+
height: e = 20,
|
|
2993
|
+
color: t = E.GREY_DARK_5,
|
|
2941
2994
|
className: s,
|
|
2942
2995
|
onClick: n
|
|
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: s,
|
|
2950
3002
|
onClick: n,
|
|
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__ */ r("circle", { cx: "8", cy: "8", r: "7.4", stroke: t, strokeWidth: "1.2" }),
|
|
2955
|
-
/* @__PURE__ */ r("path", { d: "M7 6.5H9V12.5335H7V6.5Z", fill: t }),
|
|
2956
3007
|
/* @__PURE__ */ r(
|
|
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__ */ r(
|
|
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__ */ r(
|
|
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
|
+
), L2 = ({
|
|
2966
3031
|
width: i = 20,
|
|
2967
3032
|
height: e = 20,
|
|
2968
3033
|
color: t = "#001E52",
|
|
@@ -2997,7 +3062,7 @@ const m2 = ({
|
|
|
2997
3062
|
)
|
|
2998
3063
|
]
|
|
2999
3064
|
}
|
|
3000
|
-
),
|
|
3065
|
+
), v2 = ({
|
|
3001
3066
|
width: i = 18,
|
|
3002
3067
|
height: e = 18,
|
|
3003
3068
|
color: t = "#001E52",
|
|
@@ -3036,7 +3101,7 @@ const m2 = ({
|
|
|
3036
3101
|
)
|
|
3037
3102
|
]
|
|
3038
3103
|
}
|
|
3039
|
-
),
|
|
3104
|
+
), N2 = ({
|
|
3040
3105
|
width: i = 20,
|
|
3041
3106
|
height: e = 20,
|
|
3042
3107
|
color: t = "#001E52",
|
|
@@ -3062,7 +3127,7 @@ const m2 = ({
|
|
|
3062
3127
|
}
|
|
3063
3128
|
)
|
|
3064
3129
|
}
|
|
3065
|
-
),
|
|
3130
|
+
), x2 = ({
|
|
3066
3131
|
width: i = 20,
|
|
3067
3132
|
height: e = 20,
|
|
3068
3133
|
color: t = "#001E52",
|
|
@@ -3083,7 +3148,7 @@ const m2 = ({
|
|
|
3083
3148
|
/* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
|
3084
3149
|
]
|
|
3085
3150
|
}
|
|
3086
|
-
),
|
|
3151
|
+
), R2 = ({
|
|
3087
3152
|
width: i = 20,
|
|
3088
3153
|
height: e = 20,
|
|
3089
3154
|
color: t = "#001E52",
|
|
@@ -3115,7 +3180,7 @@ const m2 = ({
|
|
|
3115
3180
|
)
|
|
3116
3181
|
]
|
|
3117
3182
|
}
|
|
3118
|
-
),
|
|
3183
|
+
), M2 = ({
|
|
3119
3184
|
width: i = 20,
|
|
3120
3185
|
height: e = 20,
|
|
3121
3186
|
color: t = "#001E52",
|
|
@@ -3169,7 +3234,7 @@ const m2 = ({
|
|
|
3169
3234
|
)
|
|
3170
3235
|
]
|
|
3171
3236
|
}
|
|
3172
|
-
),
|
|
3237
|
+
), b2 = ({
|
|
3173
3238
|
width: i = 20,
|
|
3174
3239
|
height: e = 20,
|
|
3175
3240
|
color: t = "#001E52",
|
|
@@ -3208,7 +3273,7 @@ const m2 = ({
|
|
|
3208
3273
|
/* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
|
3209
3274
|
]
|
|
3210
3275
|
}
|
|
3211
|
-
),
|
|
3276
|
+
), y2 = ({
|
|
3212
3277
|
width: i = 16,
|
|
3213
3278
|
height: e = 12,
|
|
3214
3279
|
color: t = "#001E52",
|
|
@@ -3257,41 +3322,47 @@ const m2 = ({
|
|
|
3257
3322
|
)
|
|
3258
3323
|
] })
|
|
3259
3324
|
}
|
|
3260
|
-
),
|
|
3261
|
-
width: i =
|
|
3262
|
-
height: e =
|
|
3263
|
-
color: t =
|
|
3325
|
+
), E2 = ({
|
|
3326
|
+
width: i = 20,
|
|
3327
|
+
height: e = 20,
|
|
3328
|
+
color: t = E.GREY_DARK_5,
|
|
3264
3329
|
className: s,
|
|
3265
3330
|
onClick: n
|
|
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: s,
|
|
3273
3337
|
onClick: n,
|
|
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__ */ r("circle", { cx: "8", cy: "8", r: "7.27273", stroke: t, strokeWidth: "1.45455" }),
|
|
3278
3342
|
/* @__PURE__ */ r(
|
|
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__ */ r(
|
|
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__ */ r(
|
|
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
|
+
), _2 = ({
|
|
3295
3366
|
width: i = 20,
|
|
3296
3367
|
height: e = 20,
|
|
3297
3368
|
color: t = "#001E52",
|
|
@@ -3338,7 +3409,7 @@ const m2 = ({
|
|
|
3338
3409
|
)
|
|
3339
3410
|
]
|
|
3340
3411
|
}
|
|
3341
|
-
),
|
|
3412
|
+
), H2 = ({
|
|
3342
3413
|
width: i = 20,
|
|
3343
3414
|
height: e = 20,
|
|
3344
3415
|
color: t = "#001E52",
|
|
@@ -3371,7 +3442,7 @@ const m2 = ({
|
|
|
3371
3442
|
)
|
|
3372
3443
|
]
|
|
3373
3444
|
}
|
|
3374
|
-
),
|
|
3445
|
+
), I2 = ({
|
|
3375
3446
|
width: i = 20,
|
|
3376
3447
|
height: e = 20,
|
|
3377
3448
|
color: t = "#001E52",
|
|
@@ -3418,7 +3489,7 @@ const m2 = ({
|
|
|
3418
3489
|
)
|
|
3419
3490
|
]
|
|
3420
3491
|
}
|
|
3421
|
-
),
|
|
3492
|
+
), O2 = ({
|
|
3422
3493
|
width: i = 20,
|
|
3423
3494
|
height: e = 20,
|
|
3424
3495
|
color: t = "#001E52",
|
|
@@ -3451,7 +3522,7 @@ const m2 = ({
|
|
|
3451
3522
|
)
|
|
3452
3523
|
]
|
|
3453
3524
|
}
|
|
3454
|
-
),
|
|
3525
|
+
), S2 = ({
|
|
3455
3526
|
width: i = 18,
|
|
3456
3527
|
height: e = 16,
|
|
3457
3528
|
color: t = "#001E52",
|
|
@@ -3490,7 +3561,7 @@ const m2 = ({
|
|
|
3490
3561
|
)
|
|
3491
3562
|
]
|
|
3492
3563
|
}
|
|
3493
|
-
),
|
|
3564
|
+
), V2 = ({
|
|
3494
3565
|
width: i = 20,
|
|
3495
3566
|
height: e = 20,
|
|
3496
3567
|
color: t = "#001E52",
|
|
@@ -3523,7 +3594,7 @@ const m2 = ({
|
|
|
3523
3594
|
)
|
|
3524
3595
|
]
|
|
3525
3596
|
}
|
|
3526
|
-
),
|
|
3597
|
+
), A2 = ({
|
|
3527
3598
|
width: i = 20,
|
|
3528
3599
|
height: e = 20,
|
|
3529
3600
|
color: t = "#001E52",
|
|
@@ -3547,7 +3618,7 @@ const m2 = ({
|
|
|
3547
3618
|
}
|
|
3548
3619
|
)
|
|
3549
3620
|
}
|
|
3550
|
-
),
|
|
3621
|
+
), T2 = ({
|
|
3551
3622
|
width: i = 20,
|
|
3552
3623
|
height: e = 20,
|
|
3553
3624
|
color: t = "#001E52",
|
|
@@ -3580,7 +3651,7 @@ const m2 = ({
|
|
|
3580
3651
|
)
|
|
3581
3652
|
]
|
|
3582
3653
|
}
|
|
3583
|
-
),
|
|
3654
|
+
), Z2 = ({
|
|
3584
3655
|
width: i = 20,
|
|
3585
3656
|
height: e = 23,
|
|
3586
3657
|
color: t = "#001E52",
|
|
@@ -3671,6 +3742,39 @@ const m2 = ({
|
|
|
3671
3742
|
]
|
|
3672
3743
|
}
|
|
3673
3744
|
), B2 = ({
|
|
3745
|
+
width: i = 20,
|
|
3746
|
+
height: e = 20,
|
|
3747
|
+
color: t = E.GREY_DARK_5,
|
|
3748
|
+
className: s,
|
|
3749
|
+
onClick: n
|
|
3750
|
+
}) => /* @__PURE__ */ C(
|
|
3751
|
+
"svg",
|
|
3752
|
+
{
|
|
3753
|
+
width: i,
|
|
3754
|
+
height: e,
|
|
3755
|
+
className: s,
|
|
3756
|
+
onClick: n,
|
|
3757
|
+
viewBox: "0 0 24 25",
|
|
3758
|
+
fill: "none",
|
|
3759
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3760
|
+
children: [
|
|
3761
|
+
/* @__PURE__ */ r(
|
|
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__ */ r(
|
|
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
|
+
), j2 = ({
|
|
3674
3778
|
width: i = 10,
|
|
3675
3779
|
height: e = 10,
|
|
3676
3780
|
color: t = "#88A4FF",
|
|
@@ -3718,7 +3822,7 @@ const m2 = ({
|
|
|
3718
3822
|
)
|
|
3719
3823
|
]
|
|
3720
3824
|
}
|
|
3721
|
-
),
|
|
3825
|
+
), W2 = ({
|
|
3722
3826
|
width: i = 14,
|
|
3723
3827
|
height: e = 14,
|
|
3724
3828
|
color: t = "#8E8E93",
|
|
@@ -3746,7 +3850,7 @@ const m2 = ({
|
|
|
3746
3850
|
)
|
|
3747
3851
|
]
|
|
3748
3852
|
}
|
|
3749
|
-
),
|
|
3853
|
+
), G2 = ({
|
|
3750
3854
|
width: i = 14,
|
|
3751
3855
|
height: e = 14,
|
|
3752
3856
|
color: t = "#FFB020",
|
|
@@ -3780,7 +3884,7 @@ const m2 = ({
|
|
|
3780
3884
|
)
|
|
3781
3885
|
]
|
|
3782
3886
|
}
|
|
3783
|
-
),
|
|
3887
|
+
), K2 = ({
|
|
3784
3888
|
width: i = 14,
|
|
3785
3889
|
height: e = 14,
|
|
3786
3890
|
color: t = "#D0421B",
|
|
@@ -3828,7 +3932,7 @@ const m2 = ({
|
|
|
3828
3932
|
)
|
|
3829
3933
|
]
|
|
3830
3934
|
}
|
|
3831
|
-
),
|
|
3935
|
+
), $2 = ({
|
|
3832
3936
|
width: i = 20,
|
|
3833
3937
|
height: e = 20,
|
|
3834
3938
|
color: t = "#070739",
|
|
@@ -3858,7 +3962,7 @@ const m2 = ({
|
|
|
3858
3962
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
3859
3963
|
]
|
|
3860
3964
|
}
|
|
3861
|
-
),
|
|
3965
|
+
), P2 = ({
|
|
3862
3966
|
width: i = 20,
|
|
3863
3967
|
height: e = 20,
|
|
3864
3968
|
color: t = "#070739",
|
|
@@ -3896,7 +4000,7 @@ const m2 = ({
|
|
|
3896
4000
|
)
|
|
3897
4001
|
]
|
|
3898
4002
|
}
|
|
3899
|
-
),
|
|
4003
|
+
), F2 = ({
|
|
3900
4004
|
width: i = 9,
|
|
3901
4005
|
height: e = 5,
|
|
3902
4006
|
color: t = "#001E52",
|
|
@@ -3922,7 +4026,7 @@ const m2 = ({
|
|
|
3922
4026
|
}
|
|
3923
4027
|
)
|
|
3924
4028
|
}
|
|
3925
|
-
),
|
|
4029
|
+
), Y2 = ({
|
|
3926
4030
|
width: i = 20,
|
|
3927
4031
|
height: e = 20,
|
|
3928
4032
|
color: t = "#F2F2F7",
|
|
@@ -3951,7 +4055,7 @@ const m2 = ({
|
|
|
3951
4055
|
)
|
|
3952
4056
|
]
|
|
3953
4057
|
}
|
|
3954
|
-
),
|
|
4058
|
+
), U2 = ({
|
|
3955
4059
|
width: i = 20,
|
|
3956
4060
|
height: e = 20,
|
|
3957
4061
|
color: t = "#004ED7",
|
|
@@ -3980,7 +4084,7 @@ const m2 = ({
|
|
|
3980
4084
|
)
|
|
3981
4085
|
]
|
|
3982
4086
|
}
|
|
3983
|
-
),
|
|
4087
|
+
), z2 = ({
|
|
3984
4088
|
width: i = 10,
|
|
3985
4089
|
height: e = 10,
|
|
3986
4090
|
color: t = "#001E52",
|
|
@@ -4009,7 +4113,7 @@ const m2 = ({
|
|
|
4009
4113
|
)
|
|
4010
4114
|
]
|
|
4011
4115
|
}
|
|
4012
|
-
),
|
|
4116
|
+
), J2 = ({
|
|
4013
4117
|
width: i = 10,
|
|
4014
4118
|
height: e = 10,
|
|
4015
4119
|
color: t = "#001E52",
|
|
@@ -4046,9 +4150,9 @@ const m2 = ({
|
|
|
4046
4150
|
)
|
|
4047
4151
|
]
|
|
4048
4152
|
}
|
|
4049
|
-
),
|
|
4153
|
+
), q2 = ({
|
|
4050
4154
|
className: i,
|
|
4051
|
-
color: e =
|
|
4155
|
+
color: e = E.GREY_DARK_5,
|
|
4052
4156
|
height: t = 24,
|
|
4053
4157
|
width: s = 24,
|
|
4054
4158
|
onClick: n
|
|
@@ -4085,9 +4189,9 @@ const m2 = ({
|
|
|
4085
4189
|
)
|
|
4086
4190
|
]
|
|
4087
4191
|
}
|
|
4088
|
-
),
|
|
4192
|
+
), Q2 = ({
|
|
4089
4193
|
className: i,
|
|
4090
|
-
color: e =
|
|
4194
|
+
color: e = E.GREY_DARK_5,
|
|
4091
4195
|
height: t = 20,
|
|
4092
4196
|
width: s = 20,
|
|
4093
4197
|
onClick: n
|
|
@@ -4112,9 +4216,9 @@ const m2 = ({
|
|
|
4112
4216
|
}
|
|
4113
4217
|
)
|
|
4114
4218
|
}
|
|
4115
|
-
),
|
|
4219
|
+
), X2 = ({
|
|
4116
4220
|
className: i,
|
|
4117
|
-
color: e =
|
|
4221
|
+
color: e = E.GREY_DARK_5,
|
|
4118
4222
|
height: t = 20,
|
|
4119
4223
|
width: s = 20,
|
|
4120
4224
|
onClick: n
|
|
@@ -4139,9 +4243,9 @@ const m2 = ({
|
|
|
4139
4243
|
}
|
|
4140
4244
|
)
|
|
4141
4245
|
}
|
|
4142
|
-
),
|
|
4246
|
+
), e5 = ({
|
|
4143
4247
|
className: i,
|
|
4144
|
-
color: e =
|
|
4248
|
+
color: e = E.GREY_DARK_5,
|
|
4145
4249
|
height: t = 5,
|
|
4146
4250
|
width: s = 10,
|
|
4147
4251
|
onClick: n
|
|
@@ -4163,9 +4267,9 @@ const m2 = ({
|
|
|
4163
4267
|
}
|
|
4164
4268
|
)
|
|
4165
4269
|
}
|
|
4166
|
-
),
|
|
4270
|
+
), t5 = ({
|
|
4167
4271
|
className: i,
|
|
4168
|
-
color: e =
|
|
4272
|
+
color: e = E.GREY_DARK_5,
|
|
4169
4273
|
height: t = 5,
|
|
4170
4274
|
width: s = 10,
|
|
4171
4275
|
onClick: n
|
|
@@ -4188,9 +4292,9 @@ const m2 = ({
|
|
|
4188
4292
|
}
|
|
4189
4293
|
)
|
|
4190
4294
|
}
|
|
4191
|
-
),
|
|
4295
|
+
), i5 = ({
|
|
4192
4296
|
className: i,
|
|
4193
|
-
color: e =
|
|
4297
|
+
color: e = E.GREY_DARK_5,
|
|
4194
4298
|
height: t = 24,
|
|
4195
4299
|
width: s = 24,
|
|
4196
4300
|
onClick: n
|
|
@@ -4227,9 +4331,9 @@ const m2 = ({
|
|
|
4227
4331
|
)
|
|
4228
4332
|
]
|
|
4229
4333
|
}
|
|
4230
|
-
),
|
|
4334
|
+
), s5 = ({
|
|
4231
4335
|
className: i,
|
|
4232
|
-
color: e =
|
|
4336
|
+
color: e = E.GREY_DARK_5,
|
|
4233
4337
|
height: t = 24,
|
|
4234
4338
|
width: s = 24,
|
|
4235
4339
|
onClick: n
|
|
@@ -4266,9 +4370,9 @@ const m2 = ({
|
|
|
4266
4370
|
)
|
|
4267
4371
|
]
|
|
4268
4372
|
}
|
|
4269
|
-
),
|
|
4373
|
+
), n5 = ({
|
|
4270
4374
|
className: i,
|
|
4271
|
-
color: e =
|
|
4375
|
+
color: e = E.GREY_DARK_5,
|
|
4272
4376
|
height: t = 24,
|
|
4273
4377
|
width: s = 24,
|
|
4274
4378
|
onClick: n
|
|
@@ -4293,9 +4397,9 @@ const m2 = ({
|
|
|
4293
4397
|
}
|
|
4294
4398
|
)
|
|
4295
4399
|
}
|
|
4296
|
-
),
|
|
4400
|
+
), r5 = ({
|
|
4297
4401
|
className: i,
|
|
4298
|
-
color: e =
|
|
4402
|
+
color: e = E.GREY_DARK_5,
|
|
4299
4403
|
height: t = 24,
|
|
4300
4404
|
width: s = 24,
|
|
4301
4405
|
onClick: n
|
|
@@ -4352,9 +4456,9 @@ const m2 = ({
|
|
|
4352
4456
|
)
|
|
4353
4457
|
]
|
|
4354
4458
|
}
|
|
4355
|
-
),
|
|
4459
|
+
), o5 = ({
|
|
4356
4460
|
className: i,
|
|
4357
|
-
color: e =
|
|
4461
|
+
color: e = E.GREY_DARK_5,
|
|
4358
4462
|
height: t = 24,
|
|
4359
4463
|
width: s = 24,
|
|
4360
4464
|
onClick: n
|
|
@@ -4389,9 +4493,9 @@ const m2 = ({
|
|
|
4389
4493
|
)
|
|
4390
4494
|
]
|
|
4391
4495
|
}
|
|
4392
|
-
),
|
|
4496
|
+
), a5 = ({
|
|
4393
4497
|
className: i,
|
|
4394
|
-
color: e =
|
|
4498
|
+
color: e = E.GREY_DARK_3,
|
|
4395
4499
|
height: t = 14,
|
|
4396
4500
|
width: s = 14,
|
|
4397
4501
|
onClick: n
|
|
@@ -4426,9 +4530,9 @@ const m2 = ({
|
|
|
4426
4530
|
)
|
|
4427
4531
|
]
|
|
4428
4532
|
}
|
|
4429
|
-
),
|
|
4533
|
+
), l5 = ({
|
|
4430
4534
|
className: i,
|
|
4431
|
-
color: e =
|
|
4535
|
+
color: e = E.GREY_DARK_5,
|
|
4432
4536
|
height: t = 18,
|
|
4433
4537
|
onClick: s,
|
|
4434
4538
|
width: n = 18
|
|
@@ -4453,9 +4557,9 @@ const m2 = ({
|
|
|
4453
4557
|
}
|
|
4454
4558
|
)
|
|
4455
4559
|
}
|
|
4456
|
-
),
|
|
4560
|
+
), h5 = ({
|
|
4457
4561
|
className: i,
|
|
4458
|
-
color: e =
|
|
4562
|
+
color: e = E.GREY_DARK_5,
|
|
4459
4563
|
height: t = 24,
|
|
4460
4564
|
width: s = 24,
|
|
4461
4565
|
onClick: n
|
|
@@ -4505,9 +4609,9 @@ const m2 = ({
|
|
|
4505
4609
|
)
|
|
4506
4610
|
]
|
|
4507
4611
|
}
|
|
4508
|
-
),
|
|
4612
|
+
), c5 = ({
|
|
4509
4613
|
className: i,
|
|
4510
|
-
color: e =
|
|
4614
|
+
color: e = E.GREY_DARK_5,
|
|
4511
4615
|
height: t = 24,
|
|
4512
4616
|
width: s = 24,
|
|
4513
4617
|
onClick: n
|
|
@@ -4542,9 +4646,9 @@ const m2 = ({
|
|
|
4542
4646
|
)
|
|
4543
4647
|
]
|
|
4544
4648
|
}
|
|
4545
|
-
),
|
|
4649
|
+
), d5 = ({
|
|
4546
4650
|
className: i,
|
|
4547
|
-
color: e =
|
|
4651
|
+
color: e = E.NOTIFICATION_WARNING_DARK,
|
|
4548
4652
|
height: t = 37,
|
|
4549
4653
|
width: s = 36,
|
|
4550
4654
|
onClick: n
|
|
@@ -4581,9 +4685,9 @@ const m2 = ({
|
|
|
4581
4685
|
)
|
|
4582
4686
|
]
|
|
4583
4687
|
}
|
|
4584
|
-
),
|
|
4688
|
+
), g5 = ({
|
|
4585
4689
|
className: i,
|
|
4586
|
-
color: e =
|
|
4690
|
+
color: e = E.GREY_DARK_5,
|
|
4587
4691
|
height: t = 24,
|
|
4588
4692
|
width: s = 24,
|
|
4589
4693
|
onClick: n
|
|
@@ -4607,9 +4711,9 @@ const m2 = ({
|
|
|
4607
4711
|
}
|
|
4608
4712
|
)
|
|
4609
4713
|
}
|
|
4610
|
-
),
|
|
4714
|
+
), u5 = ({
|
|
4611
4715
|
className: i,
|
|
4612
|
-
color: e =
|
|
4716
|
+
color: e = E.GREY_DARK_5,
|
|
4613
4717
|
height: t = 24,
|
|
4614
4718
|
width: s = 24,
|
|
4615
4719
|
onClick: n
|
|
@@ -4646,9 +4750,9 @@ const m2 = ({
|
|
|
4646
4750
|
)
|
|
4647
4751
|
]
|
|
4648
4752
|
}
|
|
4649
|
-
),
|
|
4753
|
+
), C5 = ({
|
|
4650
4754
|
className: i,
|
|
4651
|
-
color: e =
|
|
4755
|
+
color: e = E.GREY_DARK_5,
|
|
4652
4756
|
height: t = 24,
|
|
4653
4757
|
width: s = 24,
|
|
4654
4758
|
onClick: n
|
|
@@ -4685,9 +4789,9 @@ const m2 = ({
|
|
|
4685
4789
|
)
|
|
4686
4790
|
]
|
|
4687
4791
|
}
|
|
4688
|
-
),
|
|
4792
|
+
), p5 = ({
|
|
4689
4793
|
className: i,
|
|
4690
|
-
color: e =
|
|
4794
|
+
color: e = E.GREY_DARK_5,
|
|
4691
4795
|
height: t = 24,
|
|
4692
4796
|
width: s = 24,
|
|
4693
4797
|
onClick: n
|
|
@@ -4754,9 +4858,9 @@ const m2 = ({
|
|
|
4754
4858
|
)
|
|
4755
4859
|
]
|
|
4756
4860
|
}
|
|
4757
|
-
),
|
|
4861
|
+
), f5 = ({
|
|
4758
4862
|
className: i,
|
|
4759
|
-
color: e =
|
|
4863
|
+
color: e = E.GREY_DARK_5,
|
|
4760
4864
|
height: t = 24,
|
|
4761
4865
|
width: s = 24,
|
|
4762
4866
|
onClick: n
|
|
@@ -4811,9 +4915,9 @@ const m2 = ({
|
|
|
4811
4915
|
)
|
|
4812
4916
|
]
|
|
4813
4917
|
}
|
|
4814
|
-
),
|
|
4918
|
+
), m5 = ({
|
|
4815
4919
|
className: i,
|
|
4816
|
-
color: e =
|
|
4920
|
+
color: e = E.GREY_DARK_5,
|
|
4817
4921
|
height: t = 24,
|
|
4818
4922
|
width: s = 24,
|
|
4819
4923
|
onClick: n
|
|
@@ -4850,9 +4954,9 @@ const m2 = ({
|
|
|
4850
4954
|
)
|
|
4851
4955
|
]
|
|
4852
4956
|
}
|
|
4853
|
-
),
|
|
4957
|
+
), w5 = ({
|
|
4854
4958
|
className: i,
|
|
4855
|
-
color: e =
|
|
4959
|
+
color: e = E.GREY_DARK_5,
|
|
4856
4960
|
height: t = 24,
|
|
4857
4961
|
width: s = 24,
|
|
4858
4962
|
onClick: n
|
|
@@ -4899,9 +5003,9 @@ const m2 = ({
|
|
|
4899
5003
|
)
|
|
4900
5004
|
]
|
|
4901
5005
|
}
|
|
4902
|
-
),
|
|
5006
|
+
), k5 = ({
|
|
4903
5007
|
className: i,
|
|
4904
|
-
color: e =
|
|
5008
|
+
color: e = E.GREY_DARK_5,
|
|
4905
5009
|
height: t = 24,
|
|
4906
5010
|
width: s = 24,
|
|
4907
5011
|
onClick: n
|
|
@@ -4926,9 +5030,9 @@ const m2 = ({
|
|
|
4926
5030
|
}
|
|
4927
5031
|
)
|
|
4928
5032
|
}
|
|
4929
|
-
),
|
|
5033
|
+
), L5 = ({
|
|
4930
5034
|
className: i,
|
|
4931
|
-
color: e =
|
|
5035
|
+
color: e = E.GREY_DARK_5,
|
|
4932
5036
|
height: t = 20,
|
|
4933
5037
|
width: s = 20,
|
|
4934
5038
|
onClick: n
|
|
@@ -4943,7 +5047,7 @@ const m2 = ({
|
|
|
4943
5047
|
fill: "none",
|
|
4944
5048
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4945
5049
|
children: [
|
|
4946
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
5050
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: E.GREY_LIGHT_2 }),
|
|
4947
5051
|
/* @__PURE__ */ r(
|
|
4948
5052
|
"path",
|
|
4949
5053
|
{
|
|
@@ -4955,7 +5059,7 @@ const m2 = ({
|
|
|
4955
5059
|
)
|
|
4956
5060
|
]
|
|
4957
5061
|
}
|
|
4958
|
-
),
|
|
5062
|
+
), v5 = ({
|
|
4959
5063
|
className: i,
|
|
4960
5064
|
color: e = "#001E52",
|
|
4961
5065
|
height: t = 24,
|
|
@@ -4981,7 +5085,7 @@ const m2 = ({
|
|
|
4981
5085
|
}
|
|
4982
5086
|
)
|
|
4983
5087
|
}
|
|
4984
|
-
),
|
|
5088
|
+
), N5 = ({
|
|
4985
5089
|
className: i,
|
|
4986
5090
|
color: e = "#131314",
|
|
4987
5091
|
height: t = 20,
|
|
@@ -5009,7 +5113,7 @@ const m2 = ({
|
|
|
5009
5113
|
}
|
|
5010
5114
|
)
|
|
5011
5115
|
}
|
|
5012
|
-
),
|
|
5116
|
+
), x5 = ({
|
|
5013
5117
|
className: i,
|
|
5014
5118
|
color: e = "#001E52",
|
|
5015
5119
|
height: t = 24,
|
|
@@ -5047,7 +5151,7 @@ const m2 = ({
|
|
|
5047
5151
|
)
|
|
5048
5152
|
] }) })
|
|
5049
5153
|
}
|
|
5050
|
-
),
|
|
5154
|
+
), R5 = ({
|
|
5051
5155
|
width: i = 20,
|
|
5052
5156
|
height: e = 20,
|
|
5053
5157
|
color: t = "#001E52",
|
|
@@ -5103,7 +5207,7 @@ const m2 = ({
|
|
|
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,10 +5240,10 @@ const m2 = ({
|
|
|
5136
5240
|
)
|
|
5137
5241
|
]
|
|
5138
5242
|
}
|
|
5139
|
-
),
|
|
5243
|
+
), b5 = ({
|
|
5140
5244
|
width: i = 24,
|
|
5141
5245
|
height: e = 24,
|
|
5142
|
-
color: t =
|
|
5246
|
+
color: t = E.GREY_DARK_2,
|
|
5143
5247
|
className: s,
|
|
5144
5248
|
onClick: n
|
|
5145
5249
|
}) => /* @__PURE__ */ C(
|
|
@@ -5175,10 +5279,10 @@ const m2 = ({
|
|
|
5175
5279
|
)
|
|
5176
5280
|
]
|
|
5177
5281
|
}
|
|
5178
|
-
),
|
|
5282
|
+
), y5 = ({
|
|
5179
5283
|
width: i = 24,
|
|
5180
5284
|
height: e = 24,
|
|
5181
|
-
color: t =
|
|
5285
|
+
color: t = E.GREY_DARK_2,
|
|
5182
5286
|
className: s,
|
|
5183
5287
|
onClick: n
|
|
5184
5288
|
}) => /* @__PURE__ */ r(
|
|
@@ -5202,10 +5306,10 @@ const m2 = ({
|
|
|
5202
5306
|
}
|
|
5203
5307
|
)
|
|
5204
5308
|
}
|
|
5205
|
-
),
|
|
5309
|
+
), E5 = ({
|
|
5206
5310
|
width: i = 24,
|
|
5207
5311
|
height: e = 24,
|
|
5208
|
-
color: t =
|
|
5312
|
+
color: t = E.GREY_DARK_2,
|
|
5209
5313
|
className: s,
|
|
5210
5314
|
onClick: n
|
|
5211
5315
|
}) => /* @__PURE__ */ C(
|
|
@@ -5242,10 +5346,10 @@ const m2 = ({
|
|
|
5242
5346
|
)
|
|
5243
5347
|
]
|
|
5244
5348
|
}
|
|
5245
|
-
),
|
|
5349
|
+
), _5 = ({
|
|
5246
5350
|
width: i = 24,
|
|
5247
5351
|
height: e = 24,
|
|
5248
|
-
color: t =
|
|
5352
|
+
color: t = E.GREY_DARK_2,
|
|
5249
5353
|
className: s,
|
|
5250
5354
|
onClick: n
|
|
5251
5355
|
}) => /* @__PURE__ */ r(
|
|
@@ -5269,10 +5373,10 @@ const m2 = ({
|
|
|
5269
5373
|
}
|
|
5270
5374
|
)
|
|
5271
5375
|
}
|
|
5272
|
-
),
|
|
5376
|
+
), H5 = ({
|
|
5273
5377
|
width: i = 24,
|
|
5274
5378
|
height: e = 24,
|
|
5275
|
-
color: t =
|
|
5379
|
+
color: t = E.GREY_DARK_2,
|
|
5276
5380
|
className: s,
|
|
5277
5381
|
onClick: n
|
|
5278
5382
|
}) => /* @__PURE__ */ r(
|
|
@@ -5296,7 +5400,7 @@ const m2 = ({
|
|
|
5296
5400
|
}
|
|
5297
5401
|
)
|
|
5298
5402
|
}
|
|
5299
|
-
),
|
|
5403
|
+
), I5 = ({
|
|
5300
5404
|
width: i = 20,
|
|
5301
5405
|
height: e = 20,
|
|
5302
5406
|
color: t = "#001E52",
|
|
@@ -5322,256 +5426,258 @@ const m2 = ({
|
|
|
5322
5426
|
}
|
|
5323
5427
|
)
|
|
5324
5428
|
}
|
|
5325
|
-
),
|
|
5429
|
+
), O5 = ({
|
|
5326
5430
|
name: i,
|
|
5327
5431
|
width: e,
|
|
5328
5432
|
height: t,
|
|
5329
5433
|
color: s,
|
|
5330
5434
|
className: n,
|
|
5331
|
-
disabled:
|
|
5332
|
-
onClick:
|
|
5435
|
+
disabled: a = !1,
|
|
5436
|
+
onClick: c
|
|
5333
5437
|
}) => {
|
|
5334
|
-
const [
|
|
5335
|
-
return
|
|
5438
|
+
const [o, d] = T(n), { theme: g } = r1(ge), l = a ? g && g === "dark" ? E.GREY_LIGHT_4 : E.GREY_DARK_1 : s, h = a ? void 0 : c;
|
|
5439
|
+
return j(() => {
|
|
5336
5440
|
if (n) {
|
|
5337
|
-
|
|
5441
|
+
h && !a && d(`${n} clickable`);
|
|
5338
5442
|
return;
|
|
5339
5443
|
}
|
|
5340
|
-
|
|
5341
|
-
}, [
|
|
5444
|
+
h && !a && d("clickable");
|
|
5445
|
+
}, [h, n, a]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
5342
5446
|
switch (i) {
|
|
5343
5447
|
case "nextIcon":
|
|
5344
|
-
return
|
|
5448
|
+
return Q2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5345
5449
|
case "prevIcon":
|
|
5346
|
-
return
|
|
5450
|
+
return X2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5347
5451
|
case "arrowDown":
|
|
5348
|
-
return
|
|
5452
|
+
return w2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5349
5453
|
case "info":
|
|
5350
|
-
return
|
|
5454
|
+
return k2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5351
5455
|
case "arrowRight":
|
|
5352
|
-
return
|
|
5456
|
+
return L2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5353
5457
|
case "calendar":
|
|
5354
|
-
return
|
|
5458
|
+
return v2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5355
5459
|
case "ok":
|
|
5356
|
-
return
|
|
5460
|
+
return N2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5357
5461
|
case "cancel":
|
|
5358
|
-
return
|
|
5462
|
+
return x2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5359
5463
|
case "add":
|
|
5360
|
-
return
|
|
5464
|
+
return R2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5361
5465
|
case "list":
|
|
5362
|
-
return
|
|
5466
|
+
return M2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5363
5467
|
case "dragAndDrop":
|
|
5364
|
-
return
|
|
5468
|
+
return b2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5365
5469
|
case "filter":
|
|
5366
|
-
return
|
|
5470
|
+
return y2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5367
5471
|
case "attention":
|
|
5368
|
-
return
|
|
5472
|
+
return E2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5369
5473
|
case "users":
|
|
5370
|
-
return
|
|
5474
|
+
return _2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5371
5475
|
case "mySkillsMatrix":
|
|
5372
|
-
return
|
|
5476
|
+
return H2({
|
|
5373
5477
|
width: e,
|
|
5374
5478
|
height: t,
|
|
5375
5479
|
color: l,
|
|
5376
|
-
className:
|
|
5377
|
-
onClick:
|
|
5480
|
+
className: o,
|
|
5481
|
+
onClick: h
|
|
5378
5482
|
});
|
|
5379
5483
|
case "skills":
|
|
5380
|
-
return
|
|
5484
|
+
return I2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5381
5485
|
case "skillsMatrices":
|
|
5382
|
-
return
|
|
5486
|
+
return O2({
|
|
5383
5487
|
width: e,
|
|
5384
5488
|
height: t,
|
|
5385
5489
|
color: l,
|
|
5386
|
-
className:
|
|
5387
|
-
onClick:
|
|
5490
|
+
className: o,
|
|
5491
|
+
onClick: h
|
|
5388
5492
|
});
|
|
5389
5493
|
case "history":
|
|
5390
|
-
return
|
|
5494
|
+
return S2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5391
5495
|
case "logOut":
|
|
5392
|
-
return
|
|
5496
|
+
return V2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5393
5497
|
case "settings":
|
|
5394
|
-
return
|
|
5498
|
+
return A2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5395
5499
|
case "trash":
|
|
5396
|
-
return
|
|
5500
|
+
return T2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5397
5501
|
case "settings4":
|
|
5398
|
-
return
|
|
5502
|
+
return Z2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5399
5503
|
case "success":
|
|
5400
|
-
return D2({ width: e, height: t, color: l, className:
|
|
5504
|
+
return D2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5505
|
+
case "checkCircle":
|
|
5506
|
+
return B2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5401
5507
|
case "errorSmall":
|
|
5402
|
-
return
|
|
5508
|
+
return j2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5403
5509
|
case "infoMedium":
|
|
5404
|
-
return
|
|
5510
|
+
return W2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5405
5511
|
case "attentionMedium":
|
|
5406
|
-
return
|
|
5512
|
+
return G2({
|
|
5407
5513
|
width: e,
|
|
5408
5514
|
height: t,
|
|
5409
5515
|
color: l,
|
|
5410
|
-
className:
|
|
5411
|
-
onClick:
|
|
5516
|
+
className: o,
|
|
5517
|
+
onClick: h
|
|
5412
5518
|
});
|
|
5413
5519
|
case "errorMedium":
|
|
5414
|
-
return
|
|
5520
|
+
return K2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5415
5521
|
case "visibilityIcon":
|
|
5416
|
-
return
|
|
5522
|
+
return $2({
|
|
5417
5523
|
width: e,
|
|
5418
5524
|
height: t,
|
|
5419
5525
|
color: l,
|
|
5420
|
-
className:
|
|
5421
|
-
onClick:
|
|
5526
|
+
className: o,
|
|
5527
|
+
onClick: h
|
|
5422
5528
|
});
|
|
5423
5529
|
case "visibilityOffIcon":
|
|
5424
|
-
return
|
|
5530
|
+
return P2({
|
|
5425
5531
|
width: e,
|
|
5426
5532
|
height: t,
|
|
5427
5533
|
color: l,
|
|
5428
|
-
className:
|
|
5429
|
-
onClick:
|
|
5534
|
+
className: o,
|
|
5535
|
+
onClick: h
|
|
5430
5536
|
});
|
|
5431
5537
|
case "selectArrowIcon":
|
|
5432
|
-
return
|
|
5538
|
+
return F2({
|
|
5433
5539
|
width: e,
|
|
5434
5540
|
height: t,
|
|
5435
5541
|
color: l,
|
|
5436
|
-
className:
|
|
5437
|
-
onClick:
|
|
5542
|
+
className: o,
|
|
5543
|
+
onClick: h
|
|
5438
5544
|
});
|
|
5439
5545
|
case "expandArrowIcon":
|
|
5440
|
-
return
|
|
5546
|
+
return Y2({
|
|
5441
5547
|
width: e,
|
|
5442
5548
|
height: t,
|
|
5443
5549
|
color: l,
|
|
5444
|
-
className:
|
|
5445
|
-
onClick:
|
|
5550
|
+
className: o,
|
|
5551
|
+
onClick: h
|
|
5446
5552
|
});
|
|
5447
5553
|
case "expandActiveArrowIcon":
|
|
5448
|
-
return
|
|
5554
|
+
return U2({
|
|
5449
5555
|
width: e,
|
|
5450
5556
|
height: t,
|
|
5451
5557
|
color: l,
|
|
5452
|
-
className:
|
|
5453
|
-
onClick:
|
|
5558
|
+
className: o,
|
|
5559
|
+
onClick: h
|
|
5454
5560
|
});
|
|
5455
5561
|
case "sortUp":
|
|
5456
|
-
return
|
|
5562
|
+
return z2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5457
5563
|
case "sortDown":
|
|
5458
|
-
return
|
|
5564
|
+
return J2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5459
5565
|
case "search":
|
|
5460
|
-
return
|
|
5566
|
+
return q2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5461
5567
|
case "arrowUpFilled":
|
|
5462
|
-
return
|
|
5568
|
+
return t5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5463
5569
|
case "arrowDownFilled":
|
|
5464
|
-
return
|
|
5570
|
+
return e5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5465
5571
|
case "link":
|
|
5466
|
-
return
|
|
5572
|
+
return i5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5467
5573
|
case "telegram":
|
|
5468
|
-
return
|
|
5574
|
+
return n5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5469
5575
|
case "mail":
|
|
5470
|
-
return
|
|
5576
|
+
return o5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5471
5577
|
case "github":
|
|
5472
|
-
return
|
|
5578
|
+
return s5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5473
5579
|
case "linkedIn":
|
|
5474
|
-
return
|
|
5580
|
+
return r5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5475
5581
|
case "emptyStateIcon":
|
|
5476
|
-
return
|
|
5582
|
+
return a5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5477
5583
|
case "filtersIcon":
|
|
5478
|
-
return
|
|
5584
|
+
return l5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5479
5585
|
case "dotMenuIcon":
|
|
5480
|
-
return
|
|
5586
|
+
return h5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5481
5587
|
case "plusCircle":
|
|
5482
|
-
return
|
|
5588
|
+
return c5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5483
5589
|
case "warning":
|
|
5484
|
-
return
|
|
5590
|
+
return d5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5485
5591
|
case "back":
|
|
5486
|
-
return
|
|
5592
|
+
return g5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5487
5593
|
case "bell":
|
|
5488
|
-
return
|
|
5594
|
+
return u5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5489
5595
|
case "contract":
|
|
5490
|
-
return
|
|
5596
|
+
return p5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5491
5597
|
case "trash2":
|
|
5492
|
-
return
|
|
5598
|
+
return C5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5493
5599
|
case "resourceManager":
|
|
5494
|
-
return
|
|
5600
|
+
return f5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5495
5601
|
case "settings2":
|
|
5496
|
-
return
|
|
5602
|
+
return m5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5497
5603
|
case "image":
|
|
5498
|
-
return
|
|
5604
|
+
return w5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5499
5605
|
case "edit":
|
|
5500
|
-
return
|
|
5606
|
+
return k5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5501
5607
|
case "filledArrowRight":
|
|
5502
|
-
return
|
|
5608
|
+
return L5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5503
5609
|
case "burgerMenu":
|
|
5504
|
-
return
|
|
5610
|
+
return v5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5505
5611
|
case "signOut":
|
|
5506
|
-
return
|
|
5612
|
+
return N5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5507
5613
|
case "refresh":
|
|
5508
|
-
return
|
|
5614
|
+
return x5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5509
5615
|
case "projects":
|
|
5510
|
-
return
|
|
5616
|
+
return R5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5511
5617
|
case "profile":
|
|
5512
|
-
return
|
|
5618
|
+
return I5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5513
5619
|
case "exit":
|
|
5514
|
-
return
|
|
5620
|
+
return M5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5515
5621
|
case "client":
|
|
5516
|
-
return
|
|
5622
|
+
return b5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5517
5623
|
case "calendar2":
|
|
5518
|
-
return
|
|
5624
|
+
return y5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5519
5625
|
case "openPointCircle":
|
|
5520
|
-
return
|
|
5626
|
+
return E5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5521
5627
|
case "community":
|
|
5522
|
-
return
|
|
5628
|
+
return _5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5523
5629
|
case "docs":
|
|
5524
|
-
return
|
|
5630
|
+
return H5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5525
5631
|
default:
|
|
5526
5632
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
5527
5633
|
}
|
|
5528
5634
|
})() });
|
|
5529
5635
|
};
|
|
5530
5636
|
var f1 = /* @__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))(f1 || {});
|
|
5531
|
-
const
|
|
5637
|
+
const S5 = d1({
|
|
5532
5638
|
locale: "en",
|
|
5533
5639
|
theme: "light"
|
|
5534
5640
|
});
|
|
5535
|
-
|
|
5641
|
+
S5.Provider;
|
|
5536
5642
|
const ue = ({
|
|
5537
5643
|
children: i,
|
|
5538
5644
|
width: e,
|
|
5539
5645
|
size: t = "small",
|
|
5540
5646
|
onClose: s,
|
|
5541
5647
|
closable: n = !0,
|
|
5542
|
-
disabled:
|
|
5648
|
+
disabled: a = !1
|
|
5543
5649
|
}) => {
|
|
5544
|
-
const
|
|
5545
|
-
|
|
5650
|
+
const c = t === "small" ? 10 : 12.5, o = () => {
|
|
5651
|
+
a || s == null || s();
|
|
5546
5652
|
};
|
|
5547
5653
|
return /* @__PURE__ */ r(
|
|
5548
5654
|
ye,
|
|
5549
5655
|
{
|
|
5550
|
-
className: `snmt-tag ${t} ${
|
|
5656
|
+
className: `snmt-tag ${t} ${a ? "disabled" : ""}`,
|
|
5551
5657
|
closeIcon: /* @__PURE__ */ r(
|
|
5552
|
-
|
|
5658
|
+
O5,
|
|
5553
5659
|
{
|
|
5554
5660
|
name: "errorSmall",
|
|
5555
|
-
color:
|
|
5556
|
-
width:
|
|
5557
|
-
height:
|
|
5558
|
-
onClick:
|
|
5661
|
+
color: a ? f1.GREY_DARK_1 : f1.GREY_DARK_2,
|
|
5662
|
+
width: c,
|
|
5663
|
+
height: c,
|
|
5664
|
+
onClick: o
|
|
5559
5665
|
}
|
|
5560
5666
|
),
|
|
5561
5667
|
bordered: !1,
|
|
5562
5668
|
style: { width: e ?? "fit-content" },
|
|
5563
5669
|
closable: n,
|
|
5564
5670
|
children: typeof i == "string" ? /* @__PURE__ */ r(
|
|
5565
|
-
|
|
5671
|
+
m2,
|
|
5566
5672
|
{
|
|
5567
5673
|
variant: t === "small" ? "body4" : "body2",
|
|
5568
|
-
color:
|
|
5674
|
+
color: a ? f1.GREY_DARK_2 : f1.GREY_DARK_5,
|
|
5569
5675
|
children: i
|
|
5570
5676
|
}
|
|
5571
5677
|
) : i
|
|
5572
5678
|
}
|
|
5573
5679
|
);
|
|
5574
|
-
},
|
|
5680
|
+
}, V5 = ({ children: i, title: e, arrow: t = !0, open: s, placement: n = "top" }) => /* @__PURE__ */ r(
|
|
5575
5681
|
ae,
|
|
5576
5682
|
{
|
|
5577
5683
|
overlayClassName: "snmt-tooltip",
|
|
@@ -5581,55 +5687,55 @@ const ue = ({
|
|
|
5581
5687
|
placement: n,
|
|
5582
5688
|
children: i
|
|
5583
5689
|
}
|
|
5584
|
-
), { Title:
|
|
5690
|
+
), { Title: A5, Text: T5 } = le, Z5 = {
|
|
5585
5691
|
h1: 1,
|
|
5586
5692
|
h2: 2,
|
|
5587
5693
|
h3: 3,
|
|
5588
5694
|
h4: 4
|
|
5589
|
-
},
|
|
5695
|
+
}, D5 = k1(
|
|
5590
5696
|
({
|
|
5591
5697
|
align: i = "inherit",
|
|
5592
5698
|
variant: e = "body1",
|
|
5593
5699
|
color: t,
|
|
5594
5700
|
children: s,
|
|
5595
5701
|
onClick: n,
|
|
5596
|
-
collapsed:
|
|
5597
|
-
whiteSpace:
|
|
5702
|
+
collapsed: a,
|
|
5703
|
+
whiteSpace: c = "normal",
|
|
5598
5704
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5599
|
-
trim:
|
|
5705
|
+
trim: o = !1
|
|
5600
5706
|
}, d) => {
|
|
5601
5707
|
const g = q(null);
|
|
5602
5708
|
_1(d, () => g.current);
|
|
5603
|
-
const [l,
|
|
5604
|
-
|
|
5605
|
-
if (!
|
|
5709
|
+
const [l, h] = T(!1);
|
|
5710
|
+
j(() => {
|
|
5711
|
+
if (!o) return;
|
|
5606
5712
|
const m = () => {
|
|
5607
|
-
g.current &&
|
|
5608
|
-
},
|
|
5609
|
-
return g.current &&
|
|
5610
|
-
|
|
5713
|
+
g.current && h(g.current.scrollWidth > g.current.clientWidth);
|
|
5714
|
+
}, _ = new ResizeObserver(m);
|
|
5715
|
+
return g.current && _.observe(g.current), () => {
|
|
5716
|
+
_.disconnect();
|
|
5611
5717
|
};
|
|
5612
|
-
}, [
|
|
5718
|
+
}, [o, 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"), o && (p += " collapsed");
|
|
5616
5722
|
const w = {
|
|
5617
5723
|
className: p,
|
|
5618
|
-
style: { color: t, whiteSpace:
|
|
5724
|
+
style: { color: t, whiteSpace: o ? "nowrap" : c, display: o ? "block" : "" },
|
|
5619
5725
|
onClick: n,
|
|
5620
5726
|
ref: g
|
|
5621
|
-
}, k = u ? /* @__PURE__ */ r(
|
|
5622
|
-
return
|
|
5727
|
+
}, k = u ? /* @__PURE__ */ r(A5, { level: Z5[e], ...w, children: s }) : /* @__PURE__ */ r(T5, { ...w, children: s });
|
|
5728
|
+
return o && l ? /* @__PURE__ */ r(V5, { placement: "top", title: s, children: k }) : k;
|
|
5623
5729
|
}
|
|
5624
|
-
),
|
|
5730
|
+
), B5 = ({
|
|
5625
5731
|
children: i,
|
|
5626
5732
|
content: e,
|
|
5627
5733
|
isOpen: t,
|
|
5628
5734
|
setIsOpen: s,
|
|
5629
5735
|
placement: n = "topRight",
|
|
5630
|
-
noPadding:
|
|
5736
|
+
noPadding: a = !1
|
|
5631
5737
|
}) => {
|
|
5632
|
-
const [
|
|
5738
|
+
const [c, o] = T(!1);
|
|
5633
5739
|
return /* @__PURE__ */ r(
|
|
5634
5740
|
Ee,
|
|
5635
5741
|
{
|
|
@@ -5637,16 +5743,16 @@ const ue = ({
|
|
|
5637
5743
|
arrow: !1,
|
|
5638
5744
|
placement: n,
|
|
5639
5745
|
trigger: "click",
|
|
5640
|
-
overlayClassName: `snmt-popover ${
|
|
5641
|
-
open: t ??
|
|
5746
|
+
overlayClassName: `snmt-popover ${a ? "" : "padding"}`,
|
|
5747
|
+
open: t ?? c,
|
|
5642
5748
|
onOpenChange: (d) => {
|
|
5643
|
-
|
|
5749
|
+
o(d), s == null || s(d);
|
|
5644
5750
|
},
|
|
5645
5751
|
children: /* @__PURE__ */ r("div", { className: "wrapper", children: i })
|
|
5646
5752
|
}
|
|
5647
5753
|
);
|
|
5648
5754
|
};
|
|
5649
|
-
var
|
|
5755
|
+
var j5 = { exports: {} };
|
|
5650
5756
|
(function(i, e) {
|
|
5651
5757
|
(function(t, s) {
|
|
5652
5758
|
i.exports = s();
|
|
@@ -5656,27 +5762,27 @@ var Bi = { exports: {} };
|
|
|
5656
5762
|
return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
|
|
5657
5763
|
} };
|
|
5658
5764
|
});
|
|
5659
|
-
})(
|
|
5660
|
-
const
|
|
5765
|
+
})(j5);
|
|
5766
|
+
const W5 = ({
|
|
5661
5767
|
values: i,
|
|
5662
5768
|
onTagClose: e,
|
|
5663
5769
|
maxWidth: t,
|
|
5664
5770
|
closable: s = !0,
|
|
5665
5771
|
disabled: n,
|
|
5666
|
-
options:
|
|
5667
|
-
extraOptions:
|
|
5772
|
+
options: a,
|
|
5773
|
+
extraOptions: c
|
|
5668
5774
|
}) => {
|
|
5669
|
-
const { locale:
|
|
5670
|
-
if (
|
|
5775
|
+
const { locale: o } = r1(D1), { t: d } = Je("common", { lng: o }), [g, l] = T(!1);
|
|
5776
|
+
if (j(() => {
|
|
5671
5777
|
i.length || l(!1);
|
|
5672
5778
|
}, [i]), !i.length)
|
|
5673
5779
|
return null;
|
|
5674
|
-
const
|
|
5780
|
+
const h = (u) => {
|
|
5675
5781
|
var p, w;
|
|
5676
|
-
return ((p =
|
|
5782
|
+
return ((p = a == null ? void 0 : a.find((k) => k.value === u)) == null ? void 0 : p.label) || ((w = c == null ? void 0 : c.find((k) => k.value === u)) == null ? void 0 : w.label) || u;
|
|
5677
5783
|
};
|
|
5678
5784
|
return /* @__PURE__ */ C(
|
|
5679
|
-
|
|
5785
|
+
B5,
|
|
5680
5786
|
{
|
|
5681
5787
|
content: (
|
|
5682
5788
|
// 90: paddings + margins + gaps and so on
|
|
@@ -5686,7 +5792,7 @@ const ji = ({
|
|
|
5686
5792
|
onClose: () => e(u),
|
|
5687
5793
|
closable: s,
|
|
5688
5794
|
disabled: n,
|
|
5689
|
-
children:
|
|
5795
|
+
children: h(u)
|
|
5690
5796
|
},
|
|
5691
5797
|
u
|
|
5692
5798
|
)) }) })
|
|
@@ -5716,33 +5822,33 @@ const ji = ({
|
|
|
5716
5822
|
placeholder: t,
|
|
5717
5823
|
mode: s,
|
|
5718
5824
|
search: n = !1,
|
|
5719
|
-
options:
|
|
5720
|
-
width:
|
|
5721
|
-
disabled:
|
|
5825
|
+
options: a,
|
|
5826
|
+
width: c,
|
|
5827
|
+
disabled: o = !1,
|
|
5722
5828
|
required: d = !1,
|
|
5723
5829
|
clearable: g = !1,
|
|
5724
5830
|
scrollThresholdValue: l = 50,
|
|
5725
|
-
onSearchChange:
|
|
5831
|
+
onSearchChange: h,
|
|
5726
5832
|
onDropdownVisibleChange: u,
|
|
5727
5833
|
onScrollToEnd: p,
|
|
5728
5834
|
onPopupScroll: w,
|
|
5729
5835
|
id: k,
|
|
5730
5836
|
extraOptions: m,
|
|
5731
|
-
dropdownRender:
|
|
5837
|
+
dropdownRender: _,
|
|
5732
5838
|
optionRender: M,
|
|
5733
5839
|
isLoading: S,
|
|
5734
5840
|
readOnly: f,
|
|
5735
5841
|
error: N
|
|
5736
5842
|
}, x) => {
|
|
5737
|
-
const [v, P] = T(!1), [J, F] = T(!1), [H,
|
|
5738
|
-
|
|
5843
|
+
const [v, P] = T(!1), [J, F] = T(!1), [H, D] = T(!0), [I, V] = T(i), Z = q(null);
|
|
5844
|
+
j(() => {
|
|
5739
5845
|
V(i);
|
|
5740
5846
|
}, [i]);
|
|
5741
5847
|
const W = (L) => {
|
|
5742
5848
|
P(L), u && u(L);
|
|
5743
5849
|
}, U = (L, b) => {
|
|
5744
|
-
var
|
|
5745
|
-
return !!((
|
|
5850
|
+
var B;
|
|
5851
|
+
return !!((B = b == null ? void 0 : b.label) != null && B.toString().toLowerCase().includes(L.toLowerCase()));
|
|
5746
5852
|
}, O = () => {
|
|
5747
5853
|
F(!0);
|
|
5748
5854
|
}, K = () => {
|
|
@@ -5750,8 +5856,8 @@ const ji = ({
|
|
|
5750
5856
|
}, G = $(
|
|
5751
5857
|
(L) => {
|
|
5752
5858
|
if (V(L), s) {
|
|
5753
|
-
const
|
|
5754
|
-
e == null || e(
|
|
5859
|
+
const B = L;
|
|
5860
|
+
e == null || e(B);
|
|
5755
5861
|
return;
|
|
5756
5862
|
}
|
|
5757
5863
|
const b = L;
|
|
@@ -5759,16 +5865,16 @@ const ji = ({
|
|
|
5759
5865
|
},
|
|
5760
5866
|
[s, e]
|
|
5761
5867
|
), e1 = $(() => {
|
|
5762
|
-
if (!(f ||
|
|
5868
|
+
if (!(f || o)) {
|
|
5763
5869
|
if (s) {
|
|
5764
5870
|
G([]);
|
|
5765
5871
|
return;
|
|
5766
5872
|
}
|
|
5767
5873
|
G("");
|
|
5768
5874
|
}
|
|
5769
|
-
}, [
|
|
5875
|
+
}, [o, G, s, f]), t1 = $(
|
|
5770
5876
|
(L) => {
|
|
5771
|
-
const b = I.filter((
|
|
5877
|
+
const b = I.filter((B) => B !== L);
|
|
5772
5878
|
G(b), V(b);
|
|
5773
5879
|
},
|
|
5774
5880
|
[G, I]
|
|
@@ -5786,32 +5892,32 @@ const ji = ({
|
|
|
5786
5892
|
b.scrollTop + b.offsetHeight >= b.scrollHeight - l && (p == null || p(!0)), w && await w(L);
|
|
5787
5893
|
}, o1 = $(
|
|
5788
5894
|
(L) => {
|
|
5789
|
-
var b,
|
|
5790
|
-
return ((b =
|
|
5895
|
+
var b, B;
|
|
5896
|
+
return ((b = a.find((a1) => a1.value === L)) == null ? void 0 : b.label) || ((B = m == null ? void 0 : m.find(
|
|
5791
5897
|
(a1) => a1.value === L
|
|
5792
|
-
)) == null ? void 0 :
|
|
5898
|
+
)) == null ? void 0 : B.label) || L;
|
|
5793
5899
|
},
|
|
5794
|
-
[m,
|
|
5900
|
+
[m, a]
|
|
5795
5901
|
), N1 = $(
|
|
5796
5902
|
(L) => {
|
|
5797
5903
|
var b;
|
|
5798
5904
|
return /* @__PURE__ */ r(
|
|
5799
|
-
|
|
5905
|
+
W5,
|
|
5800
5906
|
{
|
|
5801
5907
|
values: L,
|
|
5802
5908
|
onTagClose: t1,
|
|
5803
|
-
maxWidth: ((b =
|
|
5804
|
-
disabled:
|
|
5909
|
+
maxWidth: ((b = Z.current) == null ? void 0 : b.clientWidth) || 0,
|
|
5910
|
+
disabled: o,
|
|
5805
5911
|
closable: !f,
|
|
5806
|
-
options:
|
|
5912
|
+
options: a,
|
|
5807
5913
|
extraOptions: m
|
|
5808
5914
|
}
|
|
5809
5915
|
);
|
|
5810
5916
|
},
|
|
5811
|
-
[
|
|
5917
|
+
[o, m, t1, a, f]
|
|
5812
5918
|
), A = $(
|
|
5813
|
-
({ label: L, value: b, mode:
|
|
5814
|
-
[
|
|
5919
|
+
({ label: L, value: b, mode: B }) => B === "filter" ? g1(b) : /* @__PURE__ */ r("div", { onMouseDown: L1, className: "tag-wrapper", children: /* @__PURE__ */ r(ue, { onClose: () => t1(b), disabled: o, children: typeof L == "object" ? L : o1(b) }) }),
|
|
5920
|
+
[o, o1, t1, g1]
|
|
5815
5921
|
), z = 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(
|
|
@@ -5819,8 +5925,8 @@ const ji = ({
|
|
|
5819
5925
|
{
|
|
5820
5926
|
className: `snmt-select-1-15-6 ${J ? "snmt-select-focused" : ""}
|
|
5821
5927
|
${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
|
5822
|
-
ref:
|
|
5823
|
-
style: { width:
|
|
5928
|
+
ref: Z,
|
|
5929
|
+
style: { width: c },
|
|
5824
5930
|
children: [
|
|
5825
5931
|
/* @__PURE__ */ r(
|
|
5826
5932
|
xe,
|
|
@@ -5832,21 +5938,21 @@ const ji = ({
|
|
|
5832
5938
|
showSearch: !!n,
|
|
5833
5939
|
filterOption: n && U,
|
|
5834
5940
|
onDropdownVisibleChange: W,
|
|
5835
|
-
disabled:
|
|
5941
|
+
disabled: o,
|
|
5836
5942
|
value: I || void 0,
|
|
5837
5943
|
labelRender: (L) => {
|
|
5838
5944
|
const b = o1(L.value);
|
|
5839
|
-
return
|
|
5945
|
+
return o ? /* @__PURE__ */ r("span", { style: { color: Q.GREY_DARK_1 }, children: b }) : b;
|
|
5840
5946
|
},
|
|
5841
5947
|
mode: s === "filter" ? "multiple" : s,
|
|
5842
5948
|
onChange: G,
|
|
5843
5949
|
onFocus: O,
|
|
5844
5950
|
onBlur: K,
|
|
5845
5951
|
onSearch: (L) => {
|
|
5846
|
-
|
|
5952
|
+
D(!L), h && h(L);
|
|
5847
5953
|
},
|
|
5848
|
-
onSelect: () =>
|
|
5849
|
-
onDeselect: () =>
|
|
5954
|
+
onSelect: () => D(!0),
|
|
5955
|
+
onDeselect: () => D(!0),
|
|
5850
5956
|
tagRender: (L) => A({ ...L, mode: s }),
|
|
5851
5957
|
maxTagCount: "responsive",
|
|
5852
5958
|
maxTagPlaceholder: N1,
|
|
@@ -5858,13 +5964,13 @@ const ji = ({
|
|
|
5858
5964
|
{
|
|
5859
5965
|
onClick: e1,
|
|
5860
5966
|
style: {
|
|
5861
|
-
cursor:
|
|
5967
|
+
cursor: o ? "not-allowed" : "pointer"
|
|
5862
5968
|
},
|
|
5863
5969
|
children: /* @__PURE__ */ r(
|
|
5864
5970
|
u1,
|
|
5865
5971
|
{
|
|
5866
5972
|
name: "cancel",
|
|
5867
|
-
color:
|
|
5973
|
+
color: o ? Q.GREY_DARK_1 : Q.GREY_DARK_5
|
|
5868
5974
|
}
|
|
5869
5975
|
)
|
|
5870
5976
|
}
|
|
@@ -5873,14 +5979,14 @@ const ji = ({
|
|
|
5873
5979
|
u1,
|
|
5874
5980
|
{
|
|
5875
5981
|
name: "selectArrowIcon",
|
|
5876
|
-
color:
|
|
5982
|
+
color: o ? Q.GREY_DARK_1 : Q.GREY_DARK_5,
|
|
5877
5983
|
className: v ? "select-arrow-rotated" : "select-arrow",
|
|
5878
5984
|
onClick: () => P(!v)
|
|
5879
5985
|
}
|
|
5880
5986
|
)
|
|
5881
5987
|
] }) }),
|
|
5882
5988
|
removeIcon: /* @__PURE__ */ r(u1, { name: "errorSmall", color: Q.GREY_DARK_1 }),
|
|
5883
|
-
options:
|
|
5989
|
+
options: a,
|
|
5884
5990
|
optionRender: (L) => M ? M(L.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
5885
5991
|
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 12, children: [
|
|
5886
5992
|
s && /* @__PURE__ */ r(
|
|
@@ -5905,7 +6011,7 @@ const ji = ({
|
|
|
5905
6011
|
)
|
|
5906
6012
|
] }),
|
|
5907
6013
|
dropdownRender: (L) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
|
5908
|
-
/* @__PURE__ */ r("div", { className: "dropdown-menu", children:
|
|
6014
|
+
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: _ ? _(L) : L }),
|
|
5909
6015
|
S && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(K1, { size: 28 }) })
|
|
5910
6016
|
] })
|
|
5911
6017
|
}
|
|
@@ -5914,14 +6020,14 @@ const ji = ({
|
|
|
5914
6020
|
/* @__PURE__ */ r(
|
|
5915
6021
|
"label",
|
|
5916
6022
|
{
|
|
5917
|
-
className: `${J || z ? "label-floating" : ""} ${
|
|
6023
|
+
className: `${J || z ? "label-floating" : ""} ${o ? "label-disabled" : ""} ${J ? "label-focused" : ""} ${S ? "label-loading" : ""} ${N ? "label-error" : ""}`,
|
|
5918
6024
|
children: d ? `${t}*` : t
|
|
5919
6025
|
}
|
|
5920
6026
|
),
|
|
5921
6027
|
/* @__PURE__ */ r(
|
|
5922
6028
|
"fieldset",
|
|
5923
6029
|
{
|
|
5924
|
-
className: `${J ? "fieldset-focused" : ""} ${
|
|
6030
|
+
className: `${J ? "fieldset-focused" : ""} ${o ? "fieldset-disabled" : ""} ${z ? "fieldset-filled" : ""} ${N ? "fieldset-error" : ""}`,
|
|
5925
6031
|
children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: d ? `${t}*` : t }) })
|
|
5926
6032
|
}
|
|
5927
6033
|
)
|
|
@@ -5930,15 +6036,23 @@ const ji = ({
|
|
|
5930
6036
|
}
|
|
5931
6037
|
),
|
|
5932
6038
|
N && /* @__PURE__ */ C(p1, { justifyContent: "flex-start", gap: 6, children: [
|
|
5933
|
-
/* @__PURE__ */ r(
|
|
5934
|
-
|
|
6039
|
+
/* @__PURE__ */ r(
|
|
6040
|
+
u1,
|
|
6041
|
+
{
|
|
6042
|
+
name: "attention",
|
|
6043
|
+
color: Q.NOTIFICATION_ERROR_DARK,
|
|
6044
|
+
height: 16,
|
|
6045
|
+
width: 16
|
|
6046
|
+
}
|
|
6047
|
+
),
|
|
6048
|
+
typeof N == "string" ? /* @__PURE__ */ r(D5, { color: Q.NOTIFICATION_ERROR_DARK, variant: "body4", children: N }) : N
|
|
5935
6049
|
] })
|
|
5936
6050
|
] });
|
|
5937
6051
|
}
|
|
5938
6052
|
);
|
|
5939
|
-
function
|
|
6053
|
+
function G5(i, e = 500) {
|
|
5940
6054
|
const t = q();
|
|
5941
|
-
return
|
|
6055
|
+
return j(() => () => {
|
|
5942
6056
|
t.current && clearTimeout(t.current);
|
|
5943
6057
|
}, []), (...s) => {
|
|
5944
6058
|
const n = setTimeout(() => {
|
|
@@ -5949,7 +6063,7 @@ function Zi(i, e = 500) {
|
|
|
5949
6063
|
}
|
|
5950
6064
|
function P1(i) {
|
|
5951
6065
|
const e = q(i);
|
|
5952
|
-
return
|
|
6066
|
+
return j(() => {
|
|
5953
6067
|
e.current = i;
|
|
5954
6068
|
}, [i]), e.current;
|
|
5955
6069
|
}
|
|
@@ -5962,23 +6076,23 @@ const I1 = 100, l1 = {
|
|
|
5962
6076
|
onChange: t,
|
|
5963
6077
|
value: s,
|
|
5964
6078
|
id: n,
|
|
5965
|
-
disabled:
|
|
5966
|
-
scrollThresholdValue:
|
|
5967
|
-
placeholder:
|
|
6079
|
+
disabled: a,
|
|
6080
|
+
scrollThresholdValue: c,
|
|
6081
|
+
placeholder: o,
|
|
5968
6082
|
mode: d,
|
|
5969
6083
|
loadOnClosedState: g,
|
|
5970
6084
|
preloadOptions: l,
|
|
5971
|
-
extraOptions:
|
|
6085
|
+
extraOptions: h,
|
|
5972
6086
|
onDropdownVisibleChange: u,
|
|
5973
6087
|
optionRender: p,
|
|
5974
6088
|
dropdownRender: w,
|
|
5975
6089
|
readOnly: k,
|
|
5976
6090
|
clearable: m = !1,
|
|
5977
|
-
required:
|
|
6091
|
+
required: _ = !1,
|
|
5978
6092
|
error: M
|
|
5979
6093
|
}, S) => {
|
|
5980
|
-
const [f, N] = T(), [x, v] = T(l1), [P, J] = T(!1), [F, H] = T(), [
|
|
5981
|
-
|
|
6094
|
+
const [f, N] = T(), [x, v] = T(l1), [P, J] = T(!1), [F, H] = T(), [D, I] = T(!1), [V, Z] = T(
|
|
6095
|
+
h ?? []
|
|
5982
6096
|
), W = P1(x.offset), U = P1(F), [O, K] = T(!1), G = q(!1), e1 = $(
|
|
5983
6097
|
async ({
|
|
5984
6098
|
limit: A = I1,
|
|
@@ -5993,9 +6107,9 @@ const I1 = 100, l1 = {
|
|
|
5993
6107
|
search: L
|
|
5994
6108
|
});
|
|
5995
6109
|
N(
|
|
5996
|
-
(
|
|
5997
|
-
), v((
|
|
5998
|
-
...
|
|
6110
|
+
(B) => z === 0 ? b.options : [...B ?? [], ...b.options]
|
|
6111
|
+
), v((B) => ({
|
|
6112
|
+
...B,
|
|
5999
6113
|
count: b.count
|
|
6000
6114
|
}));
|
|
6001
6115
|
} catch (b) {
|
|
@@ -6005,7 +6119,7 @@ const I1 = 100, l1 = {
|
|
|
6005
6119
|
}
|
|
6006
6120
|
},
|
|
6007
6121
|
[i]
|
|
6008
|
-
), t1 =
|
|
6122
|
+
), t1 = G5((A) => {
|
|
6009
6123
|
H(A), A || v(l1);
|
|
6010
6124
|
}), g1 = $(
|
|
6011
6125
|
(A) => t1(A),
|
|
@@ -6024,33 +6138,33 @@ const I1 = 100, l1 = {
|
|
|
6024
6138
|
},
|
|
6025
6139
|
[u, F]
|
|
6026
6140
|
);
|
|
6027
|
-
|
|
6028
|
-
!G.current || P || (O ||
|
|
6029
|
-
}, [O,
|
|
6141
|
+
j(() => {
|
|
6142
|
+
!G.current || P || (O || D && (W !== x.offset || U !== F || !f)) && (e1({ offset: x.offset, limit: I1, search: F }), O && K(!1));
|
|
6143
|
+
}, [O, D, x.offset, F, W, U, f, P]), j(() => {
|
|
6030
6144
|
(g || l) && e1(l1), G.current = !0;
|
|
6031
|
-
}, []),
|
|
6032
|
-
|
|
6033
|
-
const z =
|
|
6145
|
+
}, []), j(() => {
|
|
6146
|
+
h && Z((A) => {
|
|
6147
|
+
const z = h.filter(
|
|
6034
6148
|
(L) => !A.some((b) => b.value === L.value)
|
|
6035
6149
|
);
|
|
6036
6150
|
return [...A, ...z];
|
|
6037
6151
|
});
|
|
6038
|
-
}, [
|
|
6152
|
+
}, [h]);
|
|
6039
6153
|
const o1 = $(
|
|
6040
6154
|
(A) => {
|
|
6041
6155
|
t && t(A);
|
|
6042
6156
|
let z = [];
|
|
6043
6157
|
if (d ? z = Array.isArray(A) ? A : [] : z = A ? [A] : [], F) {
|
|
6044
6158
|
const L = z.filter(
|
|
6045
|
-
(b) => !(V != null && V.some((
|
|
6159
|
+
(b) => !(V != null && V.some((B) => B.value === b))
|
|
6046
6160
|
);
|
|
6047
|
-
L.length > 0 &&
|
|
6161
|
+
L.length > 0 && Z((b = []) => [
|
|
6048
6162
|
...b,
|
|
6049
|
-
...L.map((
|
|
6050
|
-
const a1 = f == null ? void 0 : f.find((ke) => ke.value ===
|
|
6163
|
+
...L.map((B) => {
|
|
6164
|
+
const a1 = f == null ? void 0 : f.find((ke) => ke.value === B);
|
|
6051
6165
|
return {
|
|
6052
|
-
value:
|
|
6053
|
-
label: (a1 == null ? void 0 : a1.label) ??
|
|
6166
|
+
value: B,
|
|
6167
|
+
label: (a1 == null ? void 0 : a1.label) ?? B
|
|
6054
6168
|
};
|
|
6055
6169
|
})
|
|
6056
6170
|
]), H(void 0), v(l1), K(!0);
|
|
@@ -6064,21 +6178,21 @@ const I1 = 100, l1 = {
|
|
|
6064
6178
|
options: f || [],
|
|
6065
6179
|
onChange: o1,
|
|
6066
6180
|
ref: S,
|
|
6067
|
-
placeholder:
|
|
6181
|
+
placeholder: o,
|
|
6068
6182
|
search: !0,
|
|
6069
6183
|
value: s,
|
|
6070
6184
|
onSearchChange: g1,
|
|
6071
6185
|
onDropdownVisibleChange: v1,
|
|
6072
|
-
scrollThresholdValue:
|
|
6186
|
+
scrollThresholdValue: c,
|
|
6073
6187
|
onScrollToEnd: L1,
|
|
6074
|
-
disabled:
|
|
6188
|
+
disabled: a,
|
|
6075
6189
|
extraOptions: V,
|
|
6076
6190
|
isLoading: P,
|
|
6077
6191
|
optionRender: p,
|
|
6078
6192
|
dropdownRender: w,
|
|
6079
6193
|
readOnly: k,
|
|
6080
6194
|
clearable: m,
|
|
6081
|
-
required:
|
|
6195
|
+
required: _,
|
|
6082
6196
|
error: M
|
|
6083
6197
|
}),
|
|
6084
6198
|
[
|
|
@@ -6087,20 +6201,20 @@ const I1 = 100, l1 = {
|
|
|
6087
6201
|
f,
|
|
6088
6202
|
o1,
|
|
6089
6203
|
S,
|
|
6090
|
-
|
|
6204
|
+
o,
|
|
6091
6205
|
s,
|
|
6092
6206
|
g1,
|
|
6093
6207
|
v1,
|
|
6094
|
-
|
|
6208
|
+
c,
|
|
6095
6209
|
L1,
|
|
6096
|
-
|
|
6210
|
+
a,
|
|
6097
6211
|
V,
|
|
6098
6212
|
P,
|
|
6099
6213
|
p,
|
|
6100
6214
|
w,
|
|
6101
6215
|
k,
|
|
6102
6216
|
m,
|
|
6103
|
-
|
|
6217
|
+
_,
|
|
6104
6218
|
M
|
|
6105
6219
|
]
|
|
6106
6220
|
);
|
|
@@ -6112,7 +6226,7 @@ const I1 = 100, l1 = {
|
|
|
6112
6226
|
}
|
|
6113
6227
|
);
|
|
6114
6228
|
var R1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(R1 || {});
|
|
6115
|
-
const
|
|
6229
|
+
const K5 = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
6116
6230
|
const t = `no-repeat linear-gradient(${e}
|
|
6117
6231
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
|
6118
6232
|
width: i,
|
|
@@ -6121,7 +6235,7 @@ const Wi = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
|
6121
6235
|
};
|
|
6122
6236
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
|
|
6123
6237
|
};
|
|
6124
|
-
function
|
|
6238
|
+
function $5() {
|
|
6125
6239
|
if (console && console.warn) {
|
|
6126
6240
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
6127
6241
|
e[t] = arguments[t];
|
|
@@ -6132,7 +6246,7 @@ const Y1 = {};
|
|
|
6132
6246
|
function A1() {
|
|
6133
6247
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
6134
6248
|
e[t] = arguments[t];
|
|
6135
|
-
n1(e[0]) && Y1[e[0]] || (n1(e[0]) && (Y1[e[0]] = /* @__PURE__ */ new Date()),
|
|
6249
|
+
n1(e[0]) && Y1[e[0]] || (n1(e[0]) && (Y1[e[0]] = /* @__PURE__ */ new Date()), $5(...e));
|
|
6136
6250
|
}
|
|
6137
6251
|
const Ce = (i, e) => () => {
|
|
6138
6252
|
if (i.isInitialized)
|
|
@@ -6151,24 +6265,24 @@ const Ce = (i, e) => () => {
|
|
|
6151
6265
|
n1(t) && (t = [t]), t.forEach((n) => {
|
|
6152
6266
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
6153
6267
|
}), i.loadLanguages(e, Ce(i, s));
|
|
6154
|
-
},
|
|
6268
|
+
}, P5 = function(i, e) {
|
|
6155
6269
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6156
|
-
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1,
|
|
6270
|
+
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
|
|
6157
6271
|
if (s.toLowerCase() === "cimode") return !0;
|
|
6158
|
-
const
|
|
6159
|
-
const g = e.services.backendConnector.state[`${
|
|
6272
|
+
const c = (o, d) => {
|
|
6273
|
+
const g = e.services.backendConnector.state[`${o}|${d}`];
|
|
6160
6274
|
return g === -1 || g === 2;
|
|
6161
6275
|
};
|
|
6162
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !
|
|
6163
|
-
},
|
|
6276
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(a, i)));
|
|
6277
|
+
}, F5 = function(i, e) {
|
|
6164
6278
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6165
6279
|
return !e.languages || !e.languages.length ? (A1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
6166
6280
|
lng: t.lng,
|
|
6167
|
-
precheck: (n,
|
|
6168
|
-
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !
|
|
6281
|
+
precheck: (n, a) => {
|
|
6282
|
+
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !a(n.isLanguageChangingTo, i)) return !1;
|
|
6169
6283
|
}
|
|
6170
|
-
}) :
|
|
6171
|
-
}, n1 = (i) => typeof i == "string",
|
|
6284
|
+
}) : P5(i, e, t);
|
|
6285
|
+
}, n1 = (i) => typeof i == "string", Y5 = (i) => typeof i == "object" && i !== null, U5 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, z5 = {
|
|
6172
6286
|
"&": "&",
|
|
6173
6287
|
"&": "&",
|
|
6174
6288
|
"<": "<",
|
|
@@ -6189,7 +6303,7 @@ const Ce = (i, e) => () => {
|
|
|
6189
6303
|
"…": "…",
|
|
6190
6304
|
"/": "/",
|
|
6191
6305
|
"/": "/"
|
|
6192
|
-
},
|
|
6306
|
+
}, J5 = (i) => z5[i], q5 = (i) => i.replace(U5, J5);
|
|
6193
6307
|
let T1 = {
|
|
6194
6308
|
bindI18n: "languageChanged",
|
|
6195
6309
|
bindI18nStore: "",
|
|
@@ -6198,27 +6312,27 @@ let T1 = {
|
|
|
6198
6312
|
transWrapTextNodes: "",
|
|
6199
6313
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
6200
6314
|
useSuspense: !0,
|
|
6201
|
-
unescape:
|
|
6315
|
+
unescape: q5
|
|
6202
6316
|
};
|
|
6203
|
-
const
|
|
6317
|
+
const Q5 = function() {
|
|
6204
6318
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6205
6319
|
T1 = {
|
|
6206
6320
|
...T1,
|
|
6207
6321
|
...i
|
|
6208
6322
|
};
|
|
6209
|
-
},
|
|
6323
|
+
}, X5 = () => T1;
|
|
6210
6324
|
let pe;
|
|
6211
|
-
const
|
|
6325
|
+
const ei = (i) => {
|
|
6212
6326
|
pe = i;
|
|
6213
|
-
},
|
|
6327
|
+
}, ti = () => pe, ii = {
|
|
6214
6328
|
type: "3rdParty",
|
|
6215
6329
|
init(i) {
|
|
6216
|
-
|
|
6330
|
+
Q5(i.options.react), ei(i);
|
|
6217
6331
|
}
|
|
6218
|
-
},
|
|
6219
|
-
class
|
|
6332
|
+
}, si = d1();
|
|
6333
|
+
class ni {
|
|
6220
6334
|
constructor() {
|
|
6221
|
-
|
|
6335
|
+
B1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
|
6222
6336
|
this.usedNamespaces = {};
|
|
6223
6337
|
}
|
|
6224
6338
|
addUsedNamespaces(e) {
|
|
@@ -6227,62 +6341,62 @@ class i0 {
|
|
|
6227
6341
|
});
|
|
6228
6342
|
}
|
|
6229
6343
|
}
|
|
6230
|
-
const
|
|
6344
|
+
const ri = (i, e) => {
|
|
6231
6345
|
const t = q();
|
|
6232
|
-
return
|
|
6346
|
+
return j(() => {
|
|
6233
6347
|
t.current = i;
|
|
6234
6348
|
}, [i, e]), t.current;
|
|
6235
|
-
}, fe = (i, e, t, s) => i.getFixedT(e, t, s),
|
|
6349
|
+
}, fe = (i, e, t, s) => i.getFixedT(e, t, s), oi = (i, e, t, s) => $(fe(i, e, t, s), [i, e, t, s]), ai = function(i) {
|
|
6236
6350
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6237
6351
|
const {
|
|
6238
6352
|
i18n: t
|
|
6239
6353
|
} = e, {
|
|
6240
6354
|
i18n: s,
|
|
6241
6355
|
defaultNS: n
|
|
6242
|
-
} = r1(
|
|
6243
|
-
if (
|
|
6356
|
+
} = r1(si) || {}, a = t || s || ti();
|
|
6357
|
+
if (a && !a.reportNamespaces && (a.reportNamespaces = new ni()), !a) {
|
|
6244
6358
|
A1("You will need to pass in an i18next instance by using initReactI18next");
|
|
6245
|
-
const f = (x, v) => n1(v) ? v :
|
|
6359
|
+
const f = (x, v) => n1(v) ? v : Y5(v) && n1(v.defaultValue) ? v.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
|
|
6246
6360
|
return N.t = f, N.i18n = {}, N.ready = !1, N;
|
|
6247
6361
|
}
|
|
6248
|
-
|
|
6249
|
-
const
|
|
6250
|
-
...
|
|
6251
|
-
...
|
|
6362
|
+
a.options.react && a.options.react.wait !== void 0 && A1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
6363
|
+
const c = {
|
|
6364
|
+
...X5(),
|
|
6365
|
+
...a.options.react,
|
|
6252
6366
|
...e
|
|
6253
6367
|
}, {
|
|
6254
|
-
useSuspense:
|
|
6368
|
+
useSuspense: o,
|
|
6255
6369
|
keyPrefix: d
|
|
6256
|
-
} =
|
|
6370
|
+
} = c;
|
|
6257
6371
|
let g = i;
|
|
6258
|
-
g = n1(g) ? [g] : g || ["translation"],
|
|
6259
|
-
const l = (
|
|
6372
|
+
g = n1(g) ? [g] : g || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(g);
|
|
6373
|
+
const l = (a.isInitialized || a.initializedStoreOnce) && g.every((f) => F5(f, a, c)), h = oi(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => fe(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [w, k] = T(u);
|
|
6260
6374
|
let m = g.join();
|
|
6261
6375
|
e.lng && (m = `${e.lng}${m}`);
|
|
6262
|
-
const
|
|
6263
|
-
|
|
6376
|
+
const _ = ri(m), M = q(!0);
|
|
6377
|
+
j(() => {
|
|
6264
6378
|
const {
|
|
6265
6379
|
bindI18n: f,
|
|
6266
6380
|
bindI18nStore: N
|
|
6267
|
-
} =
|
|
6268
|
-
M.current = !0, !l && !
|
|
6381
|
+
} = c;
|
|
6382
|
+
M.current = !0, !l && !o && (e.lng ? z1(a, e.lng, g, () => {
|
|
6269
6383
|
M.current && k(p);
|
|
6270
|
-
}) : U1(
|
|
6384
|
+
}) : U1(a, g, () => {
|
|
6271
6385
|
M.current && k(p);
|
|
6272
|
-
})), l &&
|
|
6386
|
+
})), l && _ && _ !== m && M.current && k(p);
|
|
6273
6387
|
const x = () => {
|
|
6274
6388
|
M.current && k(p);
|
|
6275
6389
|
};
|
|
6276
|
-
return f &&
|
|
6277
|
-
M.current = !1, f &&
|
|
6390
|
+
return f && a && a.on(f, x), N && a && a.store.on(N, x), () => {
|
|
6391
|
+
M.current = !1, f && a && f.split(" ").forEach((v) => a.off(v, x)), N && a && N.split(" ").forEach((v) => a.store.off(v, x));
|
|
6278
6392
|
};
|
|
6279
|
-
}, [
|
|
6393
|
+
}, [a, m]), j(() => {
|
|
6280
6394
|
M.current && l && k(u);
|
|
6281
|
-
}, [
|
|
6282
|
-
const S = [w,
|
|
6283
|
-
if (S.t = w, S.i18n =
|
|
6395
|
+
}, [a, d, l]);
|
|
6396
|
+
const S = [w, a, l];
|
|
6397
|
+
if (S.t = w, S.i18n = a, S.ready = l, l || !l && !o) return S;
|
|
6284
6398
|
throw new Promise((f) => {
|
|
6285
|
-
e.lng ? z1(
|
|
6399
|
+
e.lng ? z1(a, e.lng, g, () => f()) : U1(a, g, () => f());
|
|
6286
6400
|
});
|
|
6287
6401
|
}, R = (i) => typeof i == "string", C1 = () => {
|
|
6288
6402
|
let i, e;
|
|
@@ -6290,17 +6404,17 @@ const s0 = (i, e) => {
|
|
|
6290
6404
|
i = s, e = n;
|
|
6291
6405
|
});
|
|
6292
6406
|
return t.resolve = i, t.reject = e, t;
|
|
6293
|
-
}, J1 = (i) => i == null ? "" : "" + i,
|
|
6407
|
+
}, J1 = (i) => i == null ? "" : "" + i, li = (i, e, t) => {
|
|
6294
6408
|
i.forEach((s) => {
|
|
6295
6409
|
e[s] && (t[s] = e[s]);
|
|
6296
6410
|
});
|
|
6297
|
-
},
|
|
6411
|
+
}, hi = /###/g, q1 = (i) => i && i.indexOf("###") > -1 ? i.replace(hi, ".") : i, Q1 = (i) => !i || R(i), m1 = (i, e, t) => {
|
|
6298
6412
|
const s = R(e) ? e.split(".") : e;
|
|
6299
6413
|
let n = 0;
|
|
6300
6414
|
for (; n < s.length - 1; ) {
|
|
6301
6415
|
if (Q1(i)) return {};
|
|
6302
|
-
const
|
|
6303
|
-
!i[
|
|
6416
|
+
const a = q1(s[n]);
|
|
6417
|
+
!i[a] && t && (i[a] = new t()), Object.prototype.hasOwnProperty.call(i, a) ? i = i[a] : i = {}, ++n;
|
|
6304
6418
|
}
|
|
6305
6419
|
return Q1(i) ? {} : {
|
|
6306
6420
|
obj: i,
|
|
@@ -6315,16 +6429,16 @@ const s0 = (i, e) => {
|
|
|
6315
6429
|
s[n] = t;
|
|
6316
6430
|
return;
|
|
6317
6431
|
}
|
|
6318
|
-
let
|
|
6319
|
-
for (;
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
},
|
|
6432
|
+
let a = e[e.length - 1], c = e.slice(0, e.length - 1), o = m1(i, c, Object);
|
|
6433
|
+
for (; o.obj === void 0 && c.length; )
|
|
6434
|
+
a = `${c[c.length - 1]}.${a}`, c = c.slice(0, c.length - 1), o = m1(i, c, Object), o && o.obj && typeof o.obj[`${o.k}.${a}`] < "u" && (o.obj = void 0);
|
|
6435
|
+
o.obj[`${o.k}.${a}`] = t;
|
|
6436
|
+
}, ci = (i, e, t, s) => {
|
|
6323
6437
|
const {
|
|
6324
6438
|
obj: n,
|
|
6325
|
-
k:
|
|
6439
|
+
k: a
|
|
6326
6440
|
} = m1(i, e, Object);
|
|
6327
|
-
n[
|
|
6441
|
+
n[a] = n[a] || [], n[a].push(t);
|
|
6328
6442
|
}, M1 = (i, e) => {
|
|
6329
6443
|
const {
|
|
6330
6444
|
obj: t,
|
|
@@ -6332,15 +6446,15 @@ const s0 = (i, e) => {
|
|
|
6332
6446
|
} = m1(i, e);
|
|
6333
6447
|
if (t)
|
|
6334
6448
|
return t[s];
|
|
6335
|
-
},
|
|
6449
|
+
}, di = (i, e, t) => {
|
|
6336
6450
|
const s = M1(i, t);
|
|
6337
6451
|
return s !== void 0 ? s : M1(e, t);
|
|
6338
6452
|
}, me = (i, e, t) => {
|
|
6339
6453
|
for (const s in e)
|
|
6340
6454
|
s !== "__proto__" && s !== "constructor" && (s in i ? R(i[s]) || i[s] instanceof String || R(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : me(i[s], e[s], t) : i[s] = e[s]);
|
|
6341
6455
|
return i;
|
|
6342
|
-
},
|
|
6343
|
-
var
|
|
6456
|
+
}, h1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
6457
|
+
var gi = {
|
|
6344
6458
|
"&": "&",
|
|
6345
6459
|
"<": "<",
|
|
6346
6460
|
">": ">",
|
|
@@ -6348,8 +6462,8 @@ var h0 = {
|
|
|
6348
6462
|
"'": "'",
|
|
6349
6463
|
"/": "/"
|
|
6350
6464
|
};
|
|
6351
|
-
const
|
|
6352
|
-
class
|
|
6465
|
+
const ui = (i) => R(i) ? i.replace(/[&<>"'\/]/g, (e) => gi[e]) : i;
|
|
6466
|
+
class Ci {
|
|
6353
6467
|
constructor(e) {
|
|
6354
6468
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
6355
6469
|
}
|
|
@@ -6361,38 +6475,38 @@ class g0 {
|
|
|
6361
6475
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
|
6362
6476
|
}
|
|
6363
6477
|
}
|
|
6364
|
-
const
|
|
6478
|
+
const pi = [" ", ",", "?", "!", ";"], fi = new Ci(20), mi = (i, e, t) => {
|
|
6365
6479
|
e = e || "", t = t || "";
|
|
6366
|
-
const s =
|
|
6480
|
+
const s = pi.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
|
|
6367
6481
|
if (s.length === 0) return !0;
|
|
6368
|
-
const n =
|
|
6369
|
-
let
|
|
6370
|
-
if (!
|
|
6371
|
-
const
|
|
6372
|
-
|
|
6373
|
-
}
|
|
6374
|
-
return
|
|
6375
|
-
},
|
|
6482
|
+
const n = fi.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
|
6483
|
+
let a = !n.test(i);
|
|
6484
|
+
if (!a) {
|
|
6485
|
+
const c = i.indexOf(t);
|
|
6486
|
+
c > 0 && !n.test(i.substring(0, c)) && (a = !0);
|
|
6487
|
+
}
|
|
6488
|
+
return a;
|
|
6489
|
+
}, Z1 = function(i, e) {
|
|
6376
6490
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
6377
6491
|
if (!i) return;
|
|
6378
6492
|
if (i[e]) return i[e];
|
|
6379
6493
|
const s = e.split(t);
|
|
6380
6494
|
let n = i;
|
|
6381
|
-
for (let
|
|
6495
|
+
for (let a = 0; a < s.length; ) {
|
|
6382
6496
|
if (!n || typeof n != "object")
|
|
6383
6497
|
return;
|
|
6384
|
-
let
|
|
6385
|
-
for (let d =
|
|
6386
|
-
if (d !==
|
|
6387
|
-
if (["string", "number", "boolean"].indexOf(typeof
|
|
6498
|
+
let c, o = "";
|
|
6499
|
+
for (let d = a; d < s.length; ++d)
|
|
6500
|
+
if (d !== a && (o += t), o += s[d], c = n[o], c !== void 0) {
|
|
6501
|
+
if (["string", "number", "boolean"].indexOf(typeof c) > -1 && d < s.length - 1)
|
|
6388
6502
|
continue;
|
|
6389
|
-
|
|
6503
|
+
a += d - a + 1;
|
|
6390
6504
|
break;
|
|
6391
6505
|
}
|
|
6392
|
-
n =
|
|
6506
|
+
n = c;
|
|
6393
6507
|
}
|
|
6394
6508
|
return n;
|
|
6395
|
-
}, b1 = (i) => i && i.replace("_", "-"),
|
|
6509
|
+
}, b1 = (i) => i && i.replace("_", "-"), wi = {
|
|
6396
6510
|
type: "logger",
|
|
6397
6511
|
log(i) {
|
|
6398
6512
|
this.output("log", i);
|
|
@@ -6414,7 +6528,7 @@ class y1 {
|
|
|
6414
6528
|
}
|
|
6415
6529
|
init(e) {
|
|
6416
6530
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6417
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
6531
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || wi, this.options = t, this.debug = t.debug;
|
|
6418
6532
|
}
|
|
6419
6533
|
log() {
|
|
6420
6534
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
@@ -6473,14 +6587,14 @@ class H1 {
|
|
|
6473
6587
|
emit(e) {
|
|
6474
6588
|
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
6475
6589
|
s[n - 1] = arguments[n];
|
|
6476
|
-
this.observers[e] && Array.from(this.observers[e].entries()).forEach((
|
|
6477
|
-
let [
|
|
6590
|
+
this.observers[e] && Array.from(this.observers[e].entries()).forEach((c) => {
|
|
6591
|
+
let [o, d] = c;
|
|
6478
6592
|
for (let g = 0; g < d; g++)
|
|
6479
|
-
|
|
6480
|
-
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((
|
|
6481
|
-
let [
|
|
6593
|
+
o(...s);
|
|
6594
|
+
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((c) => {
|
|
6595
|
+
let [o, d] = c;
|
|
6482
6596
|
for (let g = 0; g < d; g++)
|
|
6483
|
-
|
|
6597
|
+
o.apply(o, [e, ...s]);
|
|
6484
6598
|
});
|
|
6485
6599
|
}
|
|
6486
6600
|
}
|
|
@@ -6501,41 +6615,41 @@ class ee extends H1 {
|
|
|
6501
6615
|
}
|
|
6502
6616
|
getResource(e, t, s) {
|
|
6503
6617
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6504
|
-
const
|
|
6505
|
-
let
|
|
6506
|
-
e.indexOf(".") > -1 ?
|
|
6507
|
-
const d = M1(this.data,
|
|
6508
|
-
return !d && !t && !s && e.indexOf(".") > -1 && (e =
|
|
6618
|
+
const a = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
6619
|
+
let o;
|
|
6620
|
+
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], s && (Array.isArray(s) ? o.push(...s) : R(s) && a ? o.push(...s.split(a)) : o.push(s)));
|
|
6621
|
+
const d = M1(this.data, o);
|
|
6622
|
+
return !d && !t && !s && e.indexOf(".") > -1 && (e = o[0], t = o[1], s = o.slice(2).join(".")), d || !c || !R(s) ? d : Z1(this.data && this.data[e] && this.data[e][t], s, a);
|
|
6509
6623
|
}
|
|
6510
6624
|
addResource(e, t, s, n) {
|
|
6511
|
-
let
|
|
6625
|
+
let a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
6512
6626
|
silent: !1
|
|
6513
6627
|
};
|
|
6514
|
-
const
|
|
6515
|
-
let
|
|
6516
|
-
s && (
|
|
6628
|
+
const c = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator;
|
|
6629
|
+
let o = [e, t];
|
|
6630
|
+
s && (o = o.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (o = e.split("."), n = t, t = o[1]), this.addNamespaces(t), X1(this.data, o, n), a.silent || this.emit("added", e, t, s, n);
|
|
6517
6631
|
}
|
|
6518
6632
|
addResources(e, t, s) {
|
|
6519
6633
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
6520
6634
|
silent: !1
|
|
6521
6635
|
};
|
|
6522
|
-
for (const
|
|
6523
|
-
(R(s[
|
|
6636
|
+
for (const a in s)
|
|
6637
|
+
(R(s[a]) || Array.isArray(s[a])) && this.addResource(e, t, a, s[a], {
|
|
6524
6638
|
silent: !0
|
|
6525
6639
|
});
|
|
6526
6640
|
n.silent || this.emit("added", e, t, s);
|
|
6527
6641
|
}
|
|
6528
|
-
addResourceBundle(e, t, s, n,
|
|
6529
|
-
let
|
|
6642
|
+
addResourceBundle(e, t, s, n, a) {
|
|
6643
|
+
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
|
|
6530
6644
|
silent: !1,
|
|
6531
6645
|
skipCopy: !1
|
|
6532
|
-
},
|
|
6533
|
-
e.indexOf(".") > -1 && (
|
|
6534
|
-
let d = M1(this.data,
|
|
6535
|
-
|
|
6646
|
+
}, o = [e, t];
|
|
6647
|
+
e.indexOf(".") > -1 && (o = e.split("."), n = s, s = t, t = o[1]), this.addNamespaces(t);
|
|
6648
|
+
let d = M1(this.data, o) || {};
|
|
6649
|
+
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? me(d, s, a) : d = {
|
|
6536
6650
|
...d,
|
|
6537
6651
|
...s
|
|
6538
|
-
}, X1(this.data,
|
|
6652
|
+
}, X1(this.data, o, d), c.silent || this.emit("added", e, t, s);
|
|
6539
6653
|
}
|
|
6540
6654
|
removeResourceBundle(e, t) {
|
|
6541
6655
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -6565,8 +6679,8 @@ var we = {
|
|
|
6565
6679
|
this.processors[i.name] = i;
|
|
6566
6680
|
},
|
|
6567
6681
|
handle(i, e, t, s, n) {
|
|
6568
|
-
return i.forEach((
|
|
6569
|
-
this.processors[
|
|
6682
|
+
return i.forEach((a) => {
|
|
6683
|
+
this.processors[a] && (e = this.processors[a].process(e, t, s, n));
|
|
6570
6684
|
}), e;
|
|
6571
6685
|
}
|
|
6572
6686
|
};
|
|
@@ -6574,7 +6688,7 @@ const te = {};
|
|
|
6574
6688
|
class E1 extends H1 {
|
|
6575
6689
|
constructor(e) {
|
|
6576
6690
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6577
|
-
super(),
|
|
6691
|
+
super(), li(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = X.create("translator");
|
|
6578
6692
|
}
|
|
6579
6693
|
changeLanguage(e) {
|
|
6580
6694
|
e && (this.language = e);
|
|
@@ -6592,21 +6706,21 @@ class E1 extends H1 {
|
|
|
6592
6706
|
let s = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
|
|
6593
6707
|
s === void 0 && (s = ":");
|
|
6594
6708
|
const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
6595
|
-
let
|
|
6596
|
-
const
|
|
6597
|
-
if (
|
|
6709
|
+
let a = t.ns || this.options.defaultNS || [];
|
|
6710
|
+
const c = s && e.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !mi(e, s, n);
|
|
6711
|
+
if (c && !o) {
|
|
6598
6712
|
const d = e.match(this.interpolator.nestingRegexp);
|
|
6599
6713
|
if (d && d.length > 0)
|
|
6600
6714
|
return {
|
|
6601
6715
|
key: e,
|
|
6602
|
-
namespaces: R(
|
|
6716
|
+
namespaces: R(a) ? [a] : a
|
|
6603
6717
|
};
|
|
6604
6718
|
const g = e.split(s);
|
|
6605
|
-
(s !== n || s === n && this.options.ns.indexOf(g[0]) > -1) && (
|
|
6719
|
+
(s !== n || s === n && this.options.ns.indexOf(g[0]) > -1) && (a = g.shift()), e = g.join(n);
|
|
6606
6720
|
}
|
|
6607
6721
|
return {
|
|
6608
6722
|
key: e,
|
|
6609
|
-
namespaces: R(
|
|
6723
|
+
namespaces: R(a) ? [a] : a
|
|
6610
6724
|
};
|
|
6611
6725
|
}
|
|
6612
6726
|
translate(e, t, s) {
|
|
@@ -6614,96 +6728,96 @@ class E1 extends H1 {
|
|
|
6614
6728
|
...t
|
|
6615
6729
|
}), t || (t = {}), e == null) return "";
|
|
6616
6730
|
Array.isArray(e) || (e = [String(e)]);
|
|
6617
|
-
const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails,
|
|
6618
|
-
key:
|
|
6619
|
-
namespaces:
|
|
6620
|
-
} = this.extractFromKey(e[e.length - 1], t), d =
|
|
6731
|
+
const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
6732
|
+
key: c,
|
|
6733
|
+
namespaces: o
|
|
6734
|
+
} = this.extractFromKey(e[e.length - 1], t), d = o[o.length - 1], g = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
6621
6735
|
if (g && g.toLowerCase() === "cimode") {
|
|
6622
6736
|
if (l) {
|
|
6623
6737
|
const f = t.nsSeparator || this.options.nsSeparator;
|
|
6624
6738
|
return n ? {
|
|
6625
|
-
res: `${d}${f}${
|
|
6626
|
-
usedKey:
|
|
6627
|
-
exactUsedKey:
|
|
6739
|
+
res: `${d}${f}${c}`,
|
|
6740
|
+
usedKey: c,
|
|
6741
|
+
exactUsedKey: c,
|
|
6628
6742
|
usedLng: g,
|
|
6629
6743
|
usedNS: d,
|
|
6630
6744
|
usedParams: this.getUsedParamsDetails(t)
|
|
6631
|
-
} : `${d}${f}${
|
|
6745
|
+
} : `${d}${f}${c}`;
|
|
6632
6746
|
}
|
|
6633
6747
|
return n ? {
|
|
6634
|
-
res:
|
|
6635
|
-
usedKey:
|
|
6636
|
-
exactUsedKey:
|
|
6748
|
+
res: c,
|
|
6749
|
+
usedKey: c,
|
|
6750
|
+
exactUsedKey: c,
|
|
6637
6751
|
usedLng: g,
|
|
6638
6752
|
usedNS: d,
|
|
6639
6753
|
usedParams: this.getUsedParamsDetails(t)
|
|
6640
|
-
} :
|
|
6754
|
+
} : c;
|
|
6641
6755
|
}
|
|
6642
|
-
const
|
|
6643
|
-
let u =
|
|
6644
|
-
const p =
|
|
6645
|
-
if (M && u && S && m.indexOf(k) < 0 && !(R(
|
|
6756
|
+
const h = this.resolve(e, t);
|
|
6757
|
+
let u = h && h.res;
|
|
6758
|
+
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, k = 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, S = !R(u) && typeof u != "boolean" && typeof u != "number";
|
|
6759
|
+
if (M && u && S && m.indexOf(k) < 0 && !(R(_) && Array.isArray(u))) {
|
|
6646
6760
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
6647
6761
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
6648
6762
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
|
|
6649
6763
|
...t,
|
|
6650
|
-
ns:
|
|
6651
|
-
}) : `key '${
|
|
6652
|
-
return n ? (
|
|
6764
|
+
ns: o
|
|
6765
|
+
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
|
6766
|
+
return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
|
|
6653
6767
|
}
|
|
6654
|
-
if (
|
|
6768
|
+
if (a) {
|
|
6655
6769
|
const f = Array.isArray(u), N = f ? [] : {}, x = f ? w : p;
|
|
6656
6770
|
for (const v in u)
|
|
6657
6771
|
if (Object.prototype.hasOwnProperty.call(u, v)) {
|
|
6658
|
-
const P = `${x}${
|
|
6772
|
+
const P = `${x}${a}${v}`;
|
|
6659
6773
|
N[v] = this.translate(P, {
|
|
6660
6774
|
...t,
|
|
6661
6775
|
joinArrays: !1,
|
|
6662
|
-
ns:
|
|
6776
|
+
ns: o
|
|
6663
6777
|
}), N[v] === P && (N[v] = u[v]);
|
|
6664
6778
|
}
|
|
6665
6779
|
u = N;
|
|
6666
6780
|
}
|
|
6667
|
-
} else if (M && R(
|
|
6668
|
-
u = u.join(
|
|
6781
|
+
} else if (M && R(_) && Array.isArray(u))
|
|
6782
|
+
u = u.join(_), u && (u = this.extendTranslation(u, e, t, s));
|
|
6669
6783
|
else {
|
|
6670
6784
|
let f = !1, N = !1;
|
|
6671
6785
|
const x = t.count !== void 0 && !R(t.count), v = E1.hasDefaultValue(t), P = x ? this.pluralResolver.getSuffix(g, t.count, t) : "", J = t.ordinal && x ? this.pluralResolver.getSuffix(g, t.count, {
|
|
6672
6786
|
ordinal: !1
|
|
6673
6787
|
}) : "", F = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), H = F && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${P}`] || t[`defaultValue${J}`] || t.defaultValue;
|
|
6674
|
-
!this.isValidLookup(u) && v && (f = !0, u = H), this.isValidLookup(u) || (N = !0, u =
|
|
6788
|
+
!this.isValidLookup(u) && v && (f = !0, u = H), this.isValidLookup(u) || (N = !0, u = c);
|
|
6675
6789
|
const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : u, V = v && H !== u && this.options.updateMissing;
|
|
6676
6790
|
if (N || f || V) {
|
|
6677
|
-
if (this.logger.log(V ? "updateKey" : "missingKey", g, d,
|
|
6678
|
-
const O = this.resolve(
|
|
6791
|
+
if (this.logger.log(V ? "updateKey" : "missingKey", g, d, c, V ? H : u), a) {
|
|
6792
|
+
const O = this.resolve(c, {
|
|
6679
6793
|
...t,
|
|
6680
6794
|
keySeparator: !1
|
|
6681
6795
|
});
|
|
6682
6796
|
O && O.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
6683
6797
|
}
|
|
6684
|
-
let
|
|
6798
|
+
let Z = [];
|
|
6685
6799
|
const W = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
6686
6800
|
if (this.options.saveMissingTo === "fallback" && W && W[0])
|
|
6687
6801
|
for (let O = 0; O < W.length; O++)
|
|
6688
|
-
|
|
6689
|
-
else this.options.saveMissingTo === "all" ?
|
|
6802
|
+
Z.push(W[O]);
|
|
6803
|
+
else this.options.saveMissingTo === "all" ? Z = this.languageUtils.toResolveHierarchy(t.lng || this.language) : Z.push(t.lng || this.language);
|
|
6690
6804
|
const U = (O, K, G) => {
|
|
6691
6805
|
const e1 = v && G !== u ? G : I;
|
|
6692
6806
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(O, d, K, e1, V, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(O, d, K, e1, V, t), this.emit("missingKey", O, d, K, u);
|
|
6693
6807
|
};
|
|
6694
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && x ?
|
|
6808
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && x ? Z.forEach((O) => {
|
|
6695
6809
|
const K = this.pluralResolver.getSuffixes(O, t);
|
|
6696
6810
|
F && t[`defaultValue${this.options.pluralSeparator}zero`] && K.indexOf(`${this.options.pluralSeparator}zero`) < 0 && K.push(`${this.options.pluralSeparator}zero`), K.forEach((G) => {
|
|
6697
|
-
U([O],
|
|
6811
|
+
U([O], c + G, t[`defaultValue${G}`] || H);
|
|
6698
6812
|
});
|
|
6699
|
-
}) : U(
|
|
6813
|
+
}) : U(Z, c, H));
|
|
6700
6814
|
}
|
|
6701
|
-
u = this.extendTranslation(u, e, t,
|
|
6815
|
+
u = this.extendTranslation(u, e, t, h, s), N && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (N || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, f ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
|
|
6702
6816
|
}
|
|
6703
|
-
return n ? (
|
|
6817
|
+
return n ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
|
|
6704
6818
|
}
|
|
6705
|
-
extendTranslation(e, t, s, n,
|
|
6706
|
-
var
|
|
6819
|
+
extendTranslation(e, t, s, n, a) {
|
|
6820
|
+
var c = this;
|
|
6707
6821
|
if (this.i18nFormat && this.i18nFormat.parse)
|
|
6708
6822
|
e = this.i18nFormat.parse(e, {
|
|
6709
6823
|
...this.options.interpolation.defaultVariables,
|
|
@@ -6725,21 +6839,21 @@ class E1 extends H1 {
|
|
|
6725
6839
|
const u = e.match(this.interpolator.nestingRegexp);
|
|
6726
6840
|
l = u && u.length;
|
|
6727
6841
|
}
|
|
6728
|
-
let
|
|
6729
|
-
if (this.options.interpolation.defaultVariables && (
|
|
6842
|
+
let h = s.replace && !R(s.replace) ? s.replace : s;
|
|
6843
|
+
if (this.options.interpolation.defaultVariables && (h = {
|
|
6730
6844
|
...this.options.interpolation.defaultVariables,
|
|
6731
|
-
...
|
|
6732
|
-
}), e = this.interpolator.interpolate(e,
|
|
6845
|
+
...h
|
|
6846
|
+
}), e = this.interpolator.interpolate(e, h, s.lng || this.language || n.usedLng, s), g) {
|
|
6733
6847
|
const u = e.match(this.interpolator.nestingRegexp), p = u && u.length;
|
|
6734
6848
|
l < p && (s.nest = !1);
|
|
6735
6849
|
}
|
|
6736
6850
|
!s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
6737
6851
|
for (var u = arguments.length, p = new Array(u), w = 0; w < u; w++)
|
|
6738
6852
|
p[w] = arguments[w];
|
|
6739
|
-
return
|
|
6853
|
+
return a && a[0] === p[0] && !s.context ? (c.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : c.translate(...p, t);
|
|
6740
6854
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
6741
6855
|
}
|
|
6742
|
-
const
|
|
6856
|
+
const o = s.postProcess || this.options.postProcess, d = R(o) ? [o] : o;
|
|
6743
6857
|
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = we.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
6744
6858
|
i18nResolved: {
|
|
6745
6859
|
...n,
|
|
@@ -6749,24 +6863,24 @@ class E1 extends H1 {
|
|
|
6749
6863
|
} : s, this)), e;
|
|
6750
6864
|
}
|
|
6751
6865
|
resolve(e) {
|
|
6752
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n,
|
|
6866
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, a, c, o;
|
|
6753
6867
|
return R(e) && (e = [e]), e.forEach((d) => {
|
|
6754
6868
|
if (this.isValidLookup(s)) return;
|
|
6755
6869
|
const g = this.extractFromKey(d, t), l = g.key;
|
|
6756
6870
|
n = l;
|
|
6757
|
-
let
|
|
6758
|
-
this.options.fallbackNS && (
|
|
6871
|
+
let h = g.namespaces;
|
|
6872
|
+
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
|
6759
6873
|
const u = t.count !== void 0 && !R(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), w = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", k = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
6760
|
-
|
|
6761
|
-
this.isValidLookup(s) || (
|
|
6874
|
+
h.forEach((m) => {
|
|
6875
|
+
this.isValidLookup(s) || (o = m, !te[`${k[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (te[`${k[0]}-${m}`] = !0, this.logger.warn(`key "${n}" for languages "${k.join(", ")}" won't get resolved as namespace "${o}" 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!!!")), k.forEach((_) => {
|
|
6762
6876
|
if (this.isValidLookup(s)) return;
|
|
6763
|
-
|
|
6877
|
+
c = _;
|
|
6764
6878
|
const M = [l];
|
|
6765
6879
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
6766
|
-
this.i18nFormat.addLookupKeys(M, l,
|
|
6880
|
+
this.i18nFormat.addLookupKeys(M, l, _, m, t);
|
|
6767
6881
|
else {
|
|
6768
6882
|
let f;
|
|
6769
|
-
u && (f = this.pluralResolver.getSuffix(
|
|
6883
|
+
u && (f = this.pluralResolver.getSuffix(_, t.count, t));
|
|
6770
6884
|
const N = `${this.options.pluralSeparator}zero`, x = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
6771
6885
|
if (u && (M.push(l + f), t.ordinal && f.indexOf(x) === 0 && M.push(l + f.replace(x, this.options.pluralSeparator)), p && M.push(l + N)), w) {
|
|
6772
6886
|
const v = `${l}${this.options.contextSeparator}${t.context}`;
|
|
@@ -6775,15 +6889,15 @@ class E1 extends H1 {
|
|
|
6775
6889
|
}
|
|
6776
6890
|
let S;
|
|
6777
6891
|
for (; S = M.pop(); )
|
|
6778
|
-
this.isValidLookup(s) || (
|
|
6892
|
+
this.isValidLookup(s) || (a = S, s = this.getResource(_, m, S, t));
|
|
6779
6893
|
}));
|
|
6780
6894
|
});
|
|
6781
6895
|
}), {
|
|
6782
6896
|
res: s,
|
|
6783
6897
|
usedKey: n,
|
|
6784
|
-
exactUsedKey:
|
|
6785
|
-
usedLng:
|
|
6786
|
-
usedNS:
|
|
6898
|
+
exactUsedKey: a,
|
|
6899
|
+
usedLng: c,
|
|
6900
|
+
usedNS: o
|
|
6787
6901
|
};
|
|
6788
6902
|
}
|
|
6789
6903
|
isValidLookup(e) {
|
|
@@ -6804,8 +6918,8 @@ class E1 extends H1 {
|
|
|
6804
6918
|
n = {
|
|
6805
6919
|
...n
|
|
6806
6920
|
};
|
|
6807
|
-
for (const
|
|
6808
|
-
delete n[
|
|
6921
|
+
for (const a of t)
|
|
6922
|
+
delete n[a];
|
|
6809
6923
|
}
|
|
6810
6924
|
return n;
|
|
6811
6925
|
}
|
|
@@ -6860,10 +6974,10 @@ class ie {
|
|
|
6860
6974
|
if (t) return;
|
|
6861
6975
|
const n = this.getLanguagePartFromCode(s);
|
|
6862
6976
|
if (this.isSupportedCode(n)) return t = n;
|
|
6863
|
-
t = this.options.supportedLngs.find((
|
|
6864
|
-
if (
|
|
6865
|
-
if (!(
|
|
6866
|
-
return
|
|
6977
|
+
t = this.options.supportedLngs.find((a) => {
|
|
6978
|
+
if (a === n) return a;
|
|
6979
|
+
if (!(a.indexOf("-") < 0 && n.indexOf("-") < 0) && (a.indexOf("-") > 0 && n.indexOf("-") < 0 && a.substring(0, a.indexOf("-")) === n || a.indexOf(n) === 0 && n.length > 1))
|
|
6980
|
+
return a;
|
|
6867
6981
|
});
|
|
6868
6982
|
}), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
|
|
6869
6983
|
}
|
|
@@ -6875,15 +6989,15 @@ class ie {
|
|
|
6875
6989
|
return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
|
|
6876
6990
|
}
|
|
6877
6991
|
toResolveHierarchy(e, t) {
|
|
6878
|
-
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [],
|
|
6879
|
-
|
|
6992
|
+
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], a = (c) => {
|
|
6993
|
+
c && (this.isSupportedCode(c) ? n.push(c) : this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`));
|
|
6880
6994
|
};
|
|
6881
|
-
return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" &&
|
|
6882
|
-
n.indexOf(
|
|
6995
|
+
return R(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))) : R(e) && a(this.formatLanguageCode(e)), s.forEach((c) => {
|
|
6996
|
+
n.indexOf(c) < 0 && a(this.formatLanguageCode(c));
|
|
6883
6997
|
}), n;
|
|
6884
6998
|
}
|
|
6885
6999
|
}
|
|
6886
|
-
let
|
|
7000
|
+
let ki = [{
|
|
6887
7001
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
6888
7002
|
nr: [1, 2],
|
|
6889
7003
|
fc: 1
|
|
@@ -6975,7 +7089,7 @@ let m0 = [{
|
|
|
6975
7089
|
lngs: ["he", "iw"],
|
|
6976
7090
|
nr: [1, 2, 20, 21],
|
|
6977
7091
|
fc: 22
|
|
6978
|
-
}],
|
|
7092
|
+
}], Li = {
|
|
6979
7093
|
1: (i) => +(i > 1),
|
|
6980
7094
|
2: (i) => +(i != 1),
|
|
6981
7095
|
3: (i) => 0,
|
|
@@ -6999,28 +7113,28 @@ let m0 = [{
|
|
|
6999
7113
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
|
7000
7114
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
|
7001
7115
|
};
|
|
7002
|
-
const
|
|
7116
|
+
const vi = ["v1", "v2", "v3"], Ni = ["v4"], se = {
|
|
7003
7117
|
zero: 0,
|
|
7004
7118
|
one: 1,
|
|
7005
7119
|
two: 2,
|
|
7006
7120
|
few: 3,
|
|
7007
7121
|
many: 4,
|
|
7008
7122
|
other: 5
|
|
7009
|
-
},
|
|
7123
|
+
}, xi = () => {
|
|
7010
7124
|
const i = {};
|
|
7011
|
-
return
|
|
7125
|
+
return ki.forEach((e) => {
|
|
7012
7126
|
e.lngs.forEach((t) => {
|
|
7013
7127
|
i[t] = {
|
|
7014
7128
|
numbers: e.nr,
|
|
7015
|
-
plurals:
|
|
7129
|
+
plurals: Li[e.fc]
|
|
7016
7130
|
};
|
|
7017
7131
|
});
|
|
7018
7132
|
}), i;
|
|
7019
7133
|
};
|
|
7020
|
-
class
|
|
7134
|
+
class Ri {
|
|
7021
7135
|
constructor(e) {
|
|
7022
7136
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7023
|
-
this.languageUtils = e, this.options = t, this.logger = X.create("pluralResolver"), (!this.options.compatibilityJSON ||
|
|
7137
|
+
this.languageUtils = e, this.options = t, this.logger = X.create("pluralResolver"), (!this.options.compatibilityJSON || Ni.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 = xi(), this.pluralRulesCache = {};
|
|
7024
7138
|
}
|
|
7025
7139
|
addRule(e, t) {
|
|
7026
7140
|
this.rules[e] = t;
|
|
@@ -7031,23 +7145,23 @@ class N0 {
|
|
|
7031
7145
|
getRule(e) {
|
|
7032
7146
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7033
7147
|
if (this.shouldUseIntlApi()) {
|
|
7034
|
-
const s = b1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal",
|
|
7148
|
+
const s = b1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
|
|
7035
7149
|
cleanedCode: s,
|
|
7036
7150
|
type: n
|
|
7037
7151
|
});
|
|
7038
|
-
if (
|
|
7039
|
-
return this.pluralRulesCache[
|
|
7040
|
-
let
|
|
7152
|
+
if (a in this.pluralRulesCache)
|
|
7153
|
+
return this.pluralRulesCache[a];
|
|
7154
|
+
let c;
|
|
7041
7155
|
try {
|
|
7042
|
-
|
|
7156
|
+
c = new Intl.PluralRules(s, {
|
|
7043
7157
|
type: n
|
|
7044
7158
|
});
|
|
7045
7159
|
} catch {
|
|
7046
7160
|
if (!e.match(/-|_/)) return;
|
|
7047
7161
|
const d = this.languageUtils.getLanguagePartFromCode(e);
|
|
7048
|
-
|
|
7162
|
+
c = this.getRule(d, t);
|
|
7049
7163
|
}
|
|
7050
|
-
return this.pluralRulesCache[
|
|
7164
|
+
return this.pluralRulesCache[a] = c, c;
|
|
7051
7165
|
}
|
|
7052
7166
|
return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
|
|
7053
7167
|
}
|
|
@@ -7063,7 +7177,7 @@ class N0 {
|
|
|
7063
7177
|
getSuffixes(e) {
|
|
7064
7178
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7065
7179
|
const s = this.getRule(e, t);
|
|
7066
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n,
|
|
7180
|
+
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, a) => se[n] - se[a]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
|
|
7067
7181
|
}
|
|
7068
7182
|
getSuffix(e, t) {
|
|
7069
7183
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -7074,18 +7188,18 @@ class N0 {
|
|
|
7074
7188
|
const s = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t));
|
|
7075
7189
|
let n = e.numbers[s];
|
|
7076
7190
|
this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 && (n === 2 ? n = "plural" : n === 1 && (n = ""));
|
|
7077
|
-
const
|
|
7078
|
-
return this.options.compatibilityJSON === "v1" ? n === 1 ? "" : typeof n == "number" ? `_plural_${n.toString()}` :
|
|
7191
|
+
const a = () => this.options.prepend && n.toString() ? this.options.prepend + n.toString() : n.toString();
|
|
7192
|
+
return this.options.compatibilityJSON === "v1" ? n === 1 ? "" : typeof n == "number" ? `_plural_${n.toString()}` : a() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? a() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
|
7079
7193
|
}
|
|
7080
7194
|
shouldUseIntlApi() {
|
|
7081
|
-
return !
|
|
7195
|
+
return !vi.includes(this.options.compatibilityJSON);
|
|
7082
7196
|
}
|
|
7083
7197
|
}
|
|
7084
7198
|
const ne = function(i, e, t) {
|
|
7085
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0,
|
|
7086
|
-
return !
|
|
7199
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = di(i, e, t);
|
|
7200
|
+
return !a && n && R(t) && (a = Z1(i, t, s), a === void 0 && (a = Z1(e, t, s))), a;
|
|
7087
7201
|
}, S1 = (i) => i.replace(/\$/g, "$$$$");
|
|
7088
|
-
class
|
|
7202
|
+
class Mi {
|
|
7089
7203
|
constructor() {
|
|
7090
7204
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7091
7205
|
this.logger = X.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
@@ -7099,22 +7213,22 @@ class x0 {
|
|
|
7099
7213
|
escape: t,
|
|
7100
7214
|
escapeValue: s,
|
|
7101
7215
|
useRawValueToEscape: n,
|
|
7102
|
-
prefix:
|
|
7103
|
-
prefixEscaped:
|
|
7104
|
-
suffix:
|
|
7216
|
+
prefix: a,
|
|
7217
|
+
prefixEscaped: c,
|
|
7218
|
+
suffix: o,
|
|
7105
7219
|
suffixEscaped: d,
|
|
7106
7220
|
formatSeparator: g,
|
|
7107
7221
|
unescapeSuffix: l,
|
|
7108
|
-
unescapePrefix:
|
|
7222
|
+
unescapePrefix: h,
|
|
7109
7223
|
nestingPrefix: u,
|
|
7110
7224
|
nestingPrefixEscaped: p,
|
|
7111
7225
|
nestingSuffix: w,
|
|
7112
7226
|
nestingSuffixEscaped: k,
|
|
7113
7227
|
nestingOptionsSeparator: m,
|
|
7114
|
-
maxReplaces:
|
|
7228
|
+
maxReplaces: _,
|
|
7115
7229
|
alwaysFormat: M
|
|
7116
7230
|
} = e.interpolation;
|
|
7117
|
-
this.escape = t !== void 0 ? t :
|
|
7231
|
+
this.escape = t !== void 0 ? t : ui, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = a ? h1(a) : c || "{{", this.suffix = o ? h1(o) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = u ? h1(u) : p || h1("$t("), this.nestingSuffix = w ? h1(w) : k || h1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = _ || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
|
|
7118
7232
|
}
|
|
7119
7233
|
reset() {
|
|
7120
7234
|
this.options && this.init(this.options);
|
|
@@ -7124,15 +7238,15 @@ class x0 {
|
|
|
7124
7238
|
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}`);
|
|
7125
7239
|
}
|
|
7126
7240
|
interpolate(e, t, s, n) {
|
|
7127
|
-
let
|
|
7241
|
+
let a, c, o;
|
|
7128
7242
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
|
|
7129
7243
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
7130
|
-
const
|
|
7131
|
-
return this.alwaysFormat ? this.format(
|
|
7244
|
+
const _ = ne(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
7245
|
+
return this.alwaysFormat ? this.format(_, void 0, s, {
|
|
7132
7246
|
...n,
|
|
7133
7247
|
...t,
|
|
7134
7248
|
interpolationkey: p
|
|
7135
|
-
}) :
|
|
7249
|
+
}) : _;
|
|
7136
7250
|
}
|
|
7137
7251
|
const w = p.split(this.formatSeparator), k = w.shift().trim(), m = w.join(this.formatSeparator).trim();
|
|
7138
7252
|
return this.format(ne(t, d, k, this.options.keySeparator, this.options.ignoreJSONStructure), m, s, {
|
|
@@ -7142,7 +7256,7 @@ class x0 {
|
|
|
7142
7256
|
});
|
|
7143
7257
|
};
|
|
7144
7258
|
this.resetRegExp();
|
|
7145
|
-
const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler,
|
|
7259
|
+
const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, h = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
7146
7260
|
return [{
|
|
7147
7261
|
regex: this.regexpUnescape,
|
|
7148
7262
|
safeValue: (p) => S1(p)
|
|
@@ -7150,75 +7264,75 @@ class x0 {
|
|
|
7150
7264
|
regex: this.regexp,
|
|
7151
7265
|
safeValue: (p) => this.escapeValue ? S1(this.escape(p)) : S1(p)
|
|
7152
7266
|
}].forEach((p) => {
|
|
7153
|
-
for (
|
|
7154
|
-
const w =
|
|
7155
|
-
if (
|
|
7267
|
+
for (o = 0; a = p.regex.exec(e); ) {
|
|
7268
|
+
const w = a[1].trim();
|
|
7269
|
+
if (c = g(w), c === void 0)
|
|
7156
7270
|
if (typeof l == "function") {
|
|
7157
|
-
const m = l(e,
|
|
7158
|
-
|
|
7271
|
+
const m = l(e, a, n);
|
|
7272
|
+
c = R(m) ? m : "";
|
|
7159
7273
|
} else if (n && Object.prototype.hasOwnProperty.call(n, w))
|
|
7160
|
-
|
|
7161
|
-
else if (
|
|
7162
|
-
|
|
7274
|
+
c = "";
|
|
7275
|
+
else if (h) {
|
|
7276
|
+
c = a[0];
|
|
7163
7277
|
continue;
|
|
7164
7278
|
} else
|
|
7165
|
-
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`),
|
|
7166
|
-
else !R(
|
|
7167
|
-
const k = p.safeValue(
|
|
7168
|
-
if (e = e.replace(
|
|
7279
|
+
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), c = "";
|
|
7280
|
+
else !R(c) && !this.useRawValueToEscape && (c = J1(c));
|
|
7281
|
+
const k = p.safeValue(c);
|
|
7282
|
+
if (e = e.replace(a[0], k), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
7169
7283
|
break;
|
|
7170
7284
|
}
|
|
7171
7285
|
}), e;
|
|
7172
7286
|
}
|
|
7173
7287
|
nest(e, t) {
|
|
7174
|
-
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n,
|
|
7175
|
-
const
|
|
7288
|
+
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, a, c;
|
|
7289
|
+
const o = (d, g) => {
|
|
7176
7290
|
const l = this.nestingOptionsSeparator;
|
|
7177
7291
|
if (d.indexOf(l) < 0) return d;
|
|
7178
|
-
const
|
|
7179
|
-
let u = `{${
|
|
7180
|
-
d =
|
|
7292
|
+
const h = d.split(new RegExp(`${l}[ ]*{`));
|
|
7293
|
+
let u = `{${h[1]}`;
|
|
7294
|
+
d = h[0], u = this.interpolate(u, c);
|
|
7181
7295
|
const p = u.match(/'/g), w = u.match(/"/g);
|
|
7182
7296
|
(p && p.length % 2 === 0 && !w || w.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
|
|
7183
7297
|
try {
|
|
7184
|
-
|
|
7298
|
+
c = JSON.parse(u), g && (c = {
|
|
7185
7299
|
...g,
|
|
7186
|
-
...
|
|
7300
|
+
...c
|
|
7187
7301
|
});
|
|
7188
7302
|
} catch (k) {
|
|
7189
7303
|
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, k), `${d}${l}${u}`;
|
|
7190
7304
|
}
|
|
7191
|
-
return
|
|
7305
|
+
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, d;
|
|
7192
7306
|
};
|
|
7193
7307
|
for (; n = this.nestingRegexp.exec(e); ) {
|
|
7194
7308
|
let d = [];
|
|
7195
|
-
|
|
7309
|
+
c = {
|
|
7196
7310
|
...s
|
|
7197
|
-
},
|
|
7311
|
+
}, c = c.replace && !R(c.replace) ? c.replace : c, c.applyPostProcessor = !1, delete c.defaultValue;
|
|
7198
7312
|
let g = !1;
|
|
7199
7313
|
if (n[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(n[1])) {
|
|
7200
|
-
const l = n[1].split(this.formatSeparator).map((
|
|
7314
|
+
const l = n[1].split(this.formatSeparator).map((h) => h.trim());
|
|
7201
7315
|
n[1] = l.shift(), d = l, g = !0;
|
|
7202
7316
|
}
|
|
7203
|
-
if (
|
|
7204
|
-
R(
|
|
7317
|
+
if (a = t(o.call(this, n[1].trim(), c), c), a && n[0] === e && !R(a)) return a;
|
|
7318
|
+
R(a) || (a = J1(a)), a || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), a = ""), g && (a = d.reduce((l, h) => this.format(l, h, s.lng, {
|
|
7205
7319
|
...s,
|
|
7206
7320
|
interpolationkey: n[1].trim()
|
|
7207
|
-
}),
|
|
7321
|
+
}), a.trim())), e = e.replace(n[0], a), this.regexp.lastIndex = 0;
|
|
7208
7322
|
}
|
|
7209
7323
|
return e;
|
|
7210
7324
|
}
|
|
7211
7325
|
}
|
|
7212
|
-
const
|
|
7326
|
+
const bi = (i) => {
|
|
7213
7327
|
let e = i.toLowerCase().trim();
|
|
7214
7328
|
const t = {};
|
|
7215
7329
|
if (i.indexOf("(") > -1) {
|
|
7216
7330
|
const s = i.split("(");
|
|
7217
7331
|
e = s[0].toLowerCase().trim();
|
|
7218
7332
|
const n = s[1].substring(0, s[1].length - 1);
|
|
7219
|
-
e === "currency" && n.indexOf(":") < 0 ? t.currency || (t.currency = n.trim()) : e === "relativetime" && n.indexOf(":") < 0 ? t.range || (t.range = n.trim()) : n.split(";").forEach((
|
|
7220
|
-
if (
|
|
7221
|
-
const [
|
|
7333
|
+
e === "currency" && n.indexOf(":") < 0 ? t.currency || (t.currency = n.trim()) : e === "relativetime" && n.indexOf(":") < 0 ? t.range || (t.range = n.trim()) : n.split(";").forEach((c) => {
|
|
7334
|
+
if (c) {
|
|
7335
|
+
const [o, ...d] = c.split(":"), g = d.join(":").trim().replace(/^'+|'+$/g, ""), l = o.trim();
|
|
7222
7336
|
t[l] || (t[l] = g), g === "false" && (t[l] = !1), g === "true" && (t[l] = !0), isNaN(g) || (t[l] = parseInt(g, 10));
|
|
7223
7337
|
}
|
|
7224
7338
|
});
|
|
@@ -7227,53 +7341,53 @@ const R0 = (i) => {
|
|
|
7227
7341
|
formatName: e,
|
|
7228
7342
|
formatOptions: t
|
|
7229
7343
|
};
|
|
7230
|
-
},
|
|
7344
|
+
}, c1 = (i) => {
|
|
7231
7345
|
const e = {};
|
|
7232
7346
|
return (t, s, n) => {
|
|
7233
|
-
let
|
|
7234
|
-
n && n.interpolationkey && n.formatParams && n.formatParams[n.interpolationkey] && n[n.interpolationkey] && (
|
|
7235
|
-
...
|
|
7347
|
+
let a = n;
|
|
7348
|
+
n && n.interpolationkey && n.formatParams && n.formatParams[n.interpolationkey] && n[n.interpolationkey] && (a = {
|
|
7349
|
+
...a,
|
|
7236
7350
|
[n.interpolationkey]: void 0
|
|
7237
7351
|
});
|
|
7238
|
-
const
|
|
7239
|
-
let
|
|
7240
|
-
return
|
|
7352
|
+
const c = s + JSON.stringify(a);
|
|
7353
|
+
let o = e[c];
|
|
7354
|
+
return o || (o = i(b1(s), n), e[c] = o), o(t);
|
|
7241
7355
|
};
|
|
7242
7356
|
};
|
|
7243
|
-
class
|
|
7357
|
+
class yi {
|
|
7244
7358
|
constructor() {
|
|
7245
7359
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7246
7360
|
this.logger = X.create("formatter"), this.options = e, this.formats = {
|
|
7247
|
-
number:
|
|
7361
|
+
number: c1((t, s) => {
|
|
7248
7362
|
const n = new Intl.NumberFormat(t, {
|
|
7249
7363
|
...s
|
|
7250
7364
|
});
|
|
7251
|
-
return (
|
|
7365
|
+
return (a) => n.format(a);
|
|
7252
7366
|
}),
|
|
7253
|
-
currency:
|
|
7367
|
+
currency: c1((t, s) => {
|
|
7254
7368
|
const n = new Intl.NumberFormat(t, {
|
|
7255
7369
|
...s,
|
|
7256
7370
|
style: "currency"
|
|
7257
7371
|
});
|
|
7258
|
-
return (
|
|
7372
|
+
return (a) => n.format(a);
|
|
7259
7373
|
}),
|
|
7260
|
-
datetime:
|
|
7374
|
+
datetime: c1((t, s) => {
|
|
7261
7375
|
const n = new Intl.DateTimeFormat(t, {
|
|
7262
7376
|
...s
|
|
7263
7377
|
});
|
|
7264
|
-
return (
|
|
7378
|
+
return (a) => n.format(a);
|
|
7265
7379
|
}),
|
|
7266
|
-
relativetime:
|
|
7380
|
+
relativetime: c1((t, s) => {
|
|
7267
7381
|
const n = new Intl.RelativeTimeFormat(t, {
|
|
7268
7382
|
...s
|
|
7269
7383
|
});
|
|
7270
|
-
return (
|
|
7384
|
+
return (a) => n.format(a, s.range || "day");
|
|
7271
7385
|
}),
|
|
7272
|
-
list:
|
|
7386
|
+
list: c1((t, s) => {
|
|
7273
7387
|
const n = new Intl.ListFormat(t, {
|
|
7274
7388
|
...s
|
|
7275
7389
|
});
|
|
7276
|
-
return (
|
|
7390
|
+
return (a) => n.format(a);
|
|
7277
7391
|
})
|
|
7278
7392
|
}, this.init(e);
|
|
7279
7393
|
}
|
|
@@ -7287,25 +7401,25 @@ class M0 {
|
|
|
7287
7401
|
this.formats[e.toLowerCase().trim()] = t;
|
|
7288
7402
|
}
|
|
7289
7403
|
addCached(e, t) {
|
|
7290
|
-
this.formats[e.toLowerCase().trim()] =
|
|
7404
|
+
this.formats[e.toLowerCase().trim()] = c1(t);
|
|
7291
7405
|
}
|
|
7292
7406
|
format(e, t, s) {
|
|
7293
7407
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
7294
|
-
const
|
|
7295
|
-
if (
|
|
7296
|
-
const
|
|
7297
|
-
|
|
7408
|
+
const a = t.split(this.formatSeparator);
|
|
7409
|
+
if (a.length > 1 && a[0].indexOf("(") > 1 && a[0].indexOf(")") < 0 && a.find((o) => o.indexOf(")") > -1)) {
|
|
7410
|
+
const o = a.findIndex((d) => d.indexOf(")") > -1);
|
|
7411
|
+
a[0] = [a[0], ...a.splice(1, o)].join(this.formatSeparator);
|
|
7298
7412
|
}
|
|
7299
|
-
return
|
|
7413
|
+
return a.reduce((o, d) => {
|
|
7300
7414
|
const {
|
|
7301
7415
|
formatName: g,
|
|
7302
7416
|
formatOptions: l
|
|
7303
|
-
} =
|
|
7417
|
+
} = bi(d);
|
|
7304
7418
|
if (this.formats[g]) {
|
|
7305
|
-
let
|
|
7419
|
+
let h = o;
|
|
7306
7420
|
try {
|
|
7307
7421
|
const u = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = u.locale || u.lng || n.locale || n.lng || s;
|
|
7308
|
-
|
|
7422
|
+
h = this.formats[g](o, p, {
|
|
7309
7423
|
...l,
|
|
7310
7424
|
...n,
|
|
7311
7425
|
...u
|
|
@@ -7313,107 +7427,107 @@ class M0 {
|
|
|
7313
7427
|
} catch (u) {
|
|
7314
7428
|
this.logger.warn(u);
|
|
7315
7429
|
}
|
|
7316
|
-
return
|
|
7430
|
+
return h;
|
|
7317
7431
|
} else
|
|
7318
7432
|
this.logger.warn(`there was no format function for ${g}`);
|
|
7319
|
-
return
|
|
7433
|
+
return o;
|
|
7320
7434
|
}, e);
|
|
7321
7435
|
}
|
|
7322
7436
|
}
|
|
7323
|
-
const
|
|
7437
|
+
const Ei = (i, e) => {
|
|
7324
7438
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
|
7325
7439
|
};
|
|
7326
|
-
class
|
|
7440
|
+
class _i extends H1 {
|
|
7327
7441
|
constructor(e, t, s) {
|
|
7328
7442
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
7329
7443
|
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = X.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = n.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = n.maxRetries >= 0 ? n.maxRetries : 5, this.retryTimeout = n.retryTimeout >= 1 ? n.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, n.backend, n);
|
|
7330
7444
|
}
|
|
7331
7445
|
queueLoad(e, t, s, n) {
|
|
7332
|
-
const
|
|
7446
|
+
const a = {}, c = {}, o = {}, d = {};
|
|
7333
7447
|
return e.forEach((g) => {
|
|
7334
7448
|
let l = !0;
|
|
7335
|
-
t.forEach((
|
|
7336
|
-
const u = `${g}|${
|
|
7337
|
-
!s.reload && this.store.hasResourceBundle(g,
|
|
7338
|
-
}), l || (
|
|
7339
|
-
}), (Object.keys(
|
|
7340
|
-
pending:
|
|
7341
|
-
pendingCount: Object.keys(
|
|
7449
|
+
t.forEach((h) => {
|
|
7450
|
+
const u = `${g}|${h}`;
|
|
7451
|
+
!s.reload && this.store.hasResourceBundle(g, 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), d[h] === void 0 && (d[h] = !0)));
|
|
7452
|
+
}), l || (o[g] = !0);
|
|
7453
|
+
}), (Object.keys(a).length || Object.keys(c).length) && this.queue.push({
|
|
7454
|
+
pending: c,
|
|
7455
|
+
pendingCount: Object.keys(c).length,
|
|
7342
7456
|
loaded: {},
|
|
7343
7457
|
errors: [],
|
|
7344
7458
|
callback: n
|
|
7345
7459
|
}), {
|
|
7346
|
-
toLoad: Object.keys(
|
|
7347
|
-
pending: Object.keys(
|
|
7348
|
-
toLoadLanguages: Object.keys(
|
|
7460
|
+
toLoad: Object.keys(a),
|
|
7461
|
+
pending: Object.keys(c),
|
|
7462
|
+
toLoadLanguages: Object.keys(o),
|
|
7349
7463
|
toLoadNamespaces: Object.keys(d)
|
|
7350
7464
|
};
|
|
7351
7465
|
}
|
|
7352
7466
|
loaded(e, t, s) {
|
|
7353
|
-
const n = e.split("|"),
|
|
7354
|
-
t && this.emit("failedLoading",
|
|
7467
|
+
const n = e.split("|"), a = n[0], c = n[1];
|
|
7468
|
+
t && this.emit("failedLoading", a, c, t), !t && s && this.store.addResourceBundle(a, c, s, void 0, void 0, {
|
|
7355
7469
|
skipCopy: !0
|
|
7356
7470
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
|
7357
|
-
const
|
|
7471
|
+
const o = {};
|
|
7358
7472
|
this.queue.forEach((d) => {
|
|
7359
|
-
|
|
7360
|
-
|
|
7473
|
+
ci(d.loaded, [a], c), Ei(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
|
|
7474
|
+
o[g] || (o[g] = {});
|
|
7361
7475
|
const l = d.loaded[g];
|
|
7362
|
-
l.length && l.forEach((
|
|
7363
|
-
|
|
7476
|
+
l.length && l.forEach((h) => {
|
|
7477
|
+
o[g][h] === void 0 && (o[g][h] = !0);
|
|
7364
7478
|
});
|
|
7365
7479
|
}), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
|
|
7366
|
-
}), this.emit("loaded",
|
|
7480
|
+
}), this.emit("loaded", o), this.queue = this.queue.filter((d) => !d.done);
|
|
7367
7481
|
}
|
|
7368
7482
|
read(e, t, s) {
|
|
7369
|
-
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0,
|
|
7370
|
-
if (!e.length) return
|
|
7483
|
+
let n = 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;
|
|
7484
|
+
if (!e.length) return c(null, {});
|
|
7371
7485
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
7372
7486
|
this.waitingReads.push({
|
|
7373
7487
|
lng: e,
|
|
7374
7488
|
ns: t,
|
|
7375
7489
|
fcName: s,
|
|
7376
7490
|
tried: n,
|
|
7377
|
-
wait:
|
|
7378
|
-
callback:
|
|
7491
|
+
wait: a,
|
|
7492
|
+
callback: c
|
|
7379
7493
|
});
|
|
7380
7494
|
return;
|
|
7381
7495
|
}
|
|
7382
7496
|
this.readingCalls++;
|
|
7383
|
-
const
|
|
7497
|
+
const o = (g, l) => {
|
|
7384
7498
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
7385
|
-
const
|
|
7386
|
-
this.read(
|
|
7499
|
+
const h = this.waitingReads.shift();
|
|
7500
|
+
this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
|
|
7387
7501
|
}
|
|
7388
7502
|
if (g && l && n < this.maxRetries) {
|
|
7389
7503
|
setTimeout(() => {
|
|
7390
|
-
this.read.call(this, e, t, s, n + 1,
|
|
7391
|
-
},
|
|
7504
|
+
this.read.call(this, e, t, s, n + 1, a * 2, c);
|
|
7505
|
+
}, a);
|
|
7392
7506
|
return;
|
|
7393
7507
|
}
|
|
7394
|
-
|
|
7508
|
+
c(g, l);
|
|
7395
7509
|
}, d = this.backend[s].bind(this.backend);
|
|
7396
7510
|
if (d.length === 2) {
|
|
7397
7511
|
try {
|
|
7398
7512
|
const g = d(e, t);
|
|
7399
|
-
g && typeof g.then == "function" ? g.then((l) =>
|
|
7513
|
+
g && typeof g.then == "function" ? g.then((l) => o(null, l)).catch(o) : o(null, g);
|
|
7400
7514
|
} catch (g) {
|
|
7401
|
-
|
|
7515
|
+
o(g);
|
|
7402
7516
|
}
|
|
7403
7517
|
return;
|
|
7404
7518
|
}
|
|
7405
|
-
return d(e, t,
|
|
7519
|
+
return d(e, t, o);
|
|
7406
7520
|
}
|
|
7407
7521
|
prepareLoading(e, t) {
|
|
7408
7522
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = arguments.length > 3 ? arguments[3] : void 0;
|
|
7409
7523
|
if (!this.backend)
|
|
7410
7524
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), n && n();
|
|
7411
7525
|
R(e) && (e = this.languageUtils.toResolveHierarchy(e)), R(t) && (t = [t]);
|
|
7412
|
-
const
|
|
7413
|
-
if (!
|
|
7414
|
-
return
|
|
7415
|
-
|
|
7416
|
-
this.loadOne(
|
|
7526
|
+
const a = this.queueLoad(e, t, s, n);
|
|
7527
|
+
if (!a.toLoad.length)
|
|
7528
|
+
return a.pending.length || n(), null;
|
|
7529
|
+
a.toLoad.forEach((c) => {
|
|
7530
|
+
this.loadOne(c);
|
|
7417
7531
|
});
|
|
7418
7532
|
}
|
|
7419
7533
|
load(e, t, s) {
|
|
@@ -7426,13 +7540,13 @@ class y0 extends H1 {
|
|
|
7426
7540
|
}
|
|
7427
7541
|
loadOne(e) {
|
|
7428
7542
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
7429
|
-
const s = e.split("|"), n = s[0],
|
|
7430
|
-
this.read(n,
|
|
7431
|
-
|
|
7543
|
+
const s = e.split("|"), n = s[0], a = s[1];
|
|
7544
|
+
this.read(n, a, "read", void 0, void 0, (c, o) => {
|
|
7545
|
+
c && this.logger.warn(`${t}loading namespace ${a} for language ${n} failed`, c), !c && o && this.logger.log(`${t}loaded namespace ${a} for language ${n}`, o), this.loaded(e, c, o);
|
|
7432
7546
|
});
|
|
7433
7547
|
}
|
|
7434
|
-
saveMissing(e, t, s, n,
|
|
7435
|
-
let
|
|
7548
|
+
saveMissing(e, t, s, n, a) {
|
|
7549
|
+
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, o = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
|
7436
7550
|
};
|
|
7437
7551
|
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
|
|
7438
7552
|
this.logger.warn(`did not save key "${s}" 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!!!");
|
|
@@ -7441,18 +7555,18 @@ class y0 extends H1 {
|
|
|
7441
7555
|
if (!(s == null || s === "")) {
|
|
7442
7556
|
if (this.backend && this.backend.create) {
|
|
7443
7557
|
const d = {
|
|
7444
|
-
...
|
|
7445
|
-
isUpdate:
|
|
7558
|
+
...c,
|
|
7559
|
+
isUpdate: a
|
|
7446
7560
|
}, g = this.backend.create.bind(this.backend);
|
|
7447
7561
|
if (g.length < 6)
|
|
7448
7562
|
try {
|
|
7449
7563
|
let l;
|
|
7450
|
-
g.length === 5 ? l = g(e, t, s, n, d) : l = g(e, t, s, n), l && typeof l.then == "function" ? l.then((
|
|
7564
|
+
g.length === 5 ? l = g(e, t, s, n, d) : l = g(e, t, s, n), l && typeof l.then == "function" ? l.then((h) => o(null, h)).catch(o) : o(null, l);
|
|
7451
7565
|
} catch (l) {
|
|
7452
|
-
|
|
7566
|
+
o(l);
|
|
7453
7567
|
}
|
|
7454
7568
|
else
|
|
7455
|
-
g(e, t, s, n,
|
|
7569
|
+
g(e, t, s, n, o, d);
|
|
7456
7570
|
}
|
|
7457
7571
|
!e || !e[0] || this.store.addResource(e[0], t, s, n);
|
|
7458
7572
|
}
|
|
@@ -7515,7 +7629,7 @@ const re = () => ({
|
|
|
7515
7629
|
skipOnVariables: !0
|
|
7516
7630
|
}
|
|
7517
7631
|
}), oe = (i) => (R(i.ns) && (i.ns = [i.ns]), R(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), R(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), x1 = () => {
|
|
7518
|
-
},
|
|
7632
|
+
}, Hi = (i) => {
|
|
7519
7633
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
|
7520
7634
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
|
7521
7635
|
});
|
|
@@ -7525,7 +7639,7 @@ class w1 extends H1 {
|
|
|
7525
7639
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
7526
7640
|
if (super(), this.options = oe(e), this.services = {}, this.logger = X, this.modules = {
|
|
7527
7641
|
external: []
|
|
7528
|
-
},
|
|
7642
|
+
}, Hi(this), t && !this.isInitialized && !e.isClone) {
|
|
7529
7643
|
if (!this.options.initImmediate)
|
|
7530
7644
|
return this.init(e, t), this;
|
|
7531
7645
|
setTimeout(() => {
|
|
@@ -7546,25 +7660,25 @@ class w1 extends H1 {
|
|
|
7546
7660
|
...n.interpolation,
|
|
7547
7661
|
...this.options.interpolation
|
|
7548
7662
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
7549
|
-
const
|
|
7663
|
+
const a = (l) => l ? typeof l == "function" ? new l() : l : null;
|
|
7550
7664
|
if (!this.options.isClone) {
|
|
7551
|
-
this.modules.logger ? X.init(
|
|
7665
|
+
this.modules.logger ? X.init(a(this.modules.logger), this.options) : X.init(null, this.options);
|
|
7552
7666
|
let l;
|
|
7553
|
-
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l =
|
|
7554
|
-
const
|
|
7667
|
+
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = yi);
|
|
7668
|
+
const h = new ie(this.options);
|
|
7555
7669
|
this.store = new ee(this.options.resources, this.options);
|
|
7556
7670
|
const u = this.services;
|
|
7557
|
-
u.logger = X, u.resourceStore = this.store, u.languageUtils =
|
|
7671
|
+
u.logger = X, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new Ri(h, {
|
|
7558
7672
|
prepend: this.options.pluralSeparator,
|
|
7559
7673
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
7560
7674
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
7561
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter =
|
|
7675
|
+
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.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 Mi(this.options), u.utils = {
|
|
7562
7676
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
7563
|
-
}, u.backendConnector = new
|
|
7677
|
+
}, u.backendConnector = new _i(a(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
|
|
7564
7678
|
for (var w = arguments.length, k = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7565
7679
|
k[m - 1] = arguments[m];
|
|
7566
7680
|
e.emit(p, ...k);
|
|
7567
|
-
}), this.modules.languageDetector && (u.languageDetector =
|
|
7681
|
+
}), 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 E1(this.services, this.options), this.translator.on("*", function(p) {
|
|
7568
7682
|
for (var w = arguments.length, k = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7569
7683
|
k[m - 1] = arguments[m];
|
|
7570
7684
|
e.emit(p, ...k);
|
|
@@ -7586,8 +7700,8 @@ class w1 extends H1 {
|
|
|
7586
7700
|
};
|
|
7587
7701
|
});
|
|
7588
7702
|
const d = C1(), g = () => {
|
|
7589
|
-
const l = (
|
|
7590
|
-
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(u), s(
|
|
7703
|
+
const l = (h, u) => {
|
|
7704
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(u), s(h, u);
|
|
7591
7705
|
};
|
|
7592
7706
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return l(null, this.t.bind(this));
|
|
7593
7707
|
this.changeLanguage(this.options.lng, l);
|
|
@@ -7599,22 +7713,22 @@ class w1 extends H1 {
|
|
|
7599
7713
|
const n = R(e) ? e : this.language;
|
|
7600
7714
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
7601
7715
|
if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
|
7602
|
-
const
|
|
7603
|
-
if (!
|
|
7604
|
-
this.services.languageUtils.toResolveHierarchy(
|
|
7605
|
-
g !== "cimode" &&
|
|
7716
|
+
const a = [], c = (o) => {
|
|
7717
|
+
if (!o || o === "cimode") return;
|
|
7718
|
+
this.services.languageUtils.toResolveHierarchy(o).forEach((g) => {
|
|
7719
|
+
g !== "cimode" && a.indexOf(g) < 0 && a.push(g);
|
|
7606
7720
|
});
|
|
7607
7721
|
};
|
|
7608
|
-
n ?
|
|
7609
|
-
!
|
|
7722
|
+
n ? c(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => c(d)), this.options.preload && this.options.preload.forEach((o) => c(o)), this.services.backendConnector.load(a, this.options.ns, (o) => {
|
|
7723
|
+
!o && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(o);
|
|
7610
7724
|
});
|
|
7611
7725
|
} else
|
|
7612
7726
|
s(null);
|
|
7613
7727
|
}
|
|
7614
7728
|
reloadResources(e, t, s) {
|
|
7615
7729
|
const n = C1();
|
|
7616
|
-
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = x1), this.services.backendConnector.reload(e, t, (
|
|
7617
|
-
n.resolve(), s(
|
|
7730
|
+
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = x1), this.services.backendConnector.reload(e, t, (a) => {
|
|
7731
|
+
n.resolve(), s(a);
|
|
7618
7732
|
}), n;
|
|
7619
7733
|
}
|
|
7620
7734
|
use(e) {
|
|
@@ -7637,41 +7751,41 @@ class w1 extends H1 {
|
|
|
7637
7751
|
this.isLanguageChangingTo = e;
|
|
7638
7752
|
const n = C1();
|
|
7639
7753
|
this.emit("languageChanging", e);
|
|
7640
|
-
const
|
|
7754
|
+
const a = (d) => {
|
|
7641
7755
|
this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
|
|
7642
|
-
},
|
|
7643
|
-
g ? (
|
|
7756
|
+
}, c = (d, g) => {
|
|
7757
|
+
g ? (a(g), this.translator.changeLanguage(g), this.isLanguageChangingTo = void 0, this.emit("languageChanged", g), this.logger.log("languageChanged", g)) : this.isLanguageChangingTo = void 0, n.resolve(function() {
|
|
7644
7758
|
return s.t(...arguments);
|
|
7645
7759
|
}), t && t(d, function() {
|
|
7646
7760
|
return s.t(...arguments);
|
|
7647
7761
|
});
|
|
7648
|
-
},
|
|
7762
|
+
}, o = (d) => {
|
|
7649
7763
|
!e && !d && this.services.languageDetector && (d = []);
|
|
7650
7764
|
const g = R(d) ? d : this.services.languageUtils.getBestMatchFromCodes(d);
|
|
7651
|
-
g && (this.language ||
|
|
7652
|
-
|
|
7765
|
+
g && (this.language || a(g), this.translator.language || this.translator.changeLanguage(g), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(g)), this.loadResources(g, (l) => {
|
|
7766
|
+
c(l, g);
|
|
7653
7767
|
});
|
|
7654
7768
|
};
|
|
7655
|
-
return !e && this.services.languageDetector && !this.services.languageDetector.async ?
|
|
7769
|
+
return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), n;
|
|
7656
7770
|
}
|
|
7657
7771
|
getFixedT(e, t, s) {
|
|
7658
7772
|
var n = this;
|
|
7659
|
-
const
|
|
7773
|
+
const a = function(c, o) {
|
|
7660
7774
|
let d;
|
|
7661
|
-
if (typeof
|
|
7662
|
-
for (var g = arguments.length, l = new Array(g > 2 ? g - 2 : 0),
|
|
7663
|
-
l[
|
|
7664
|
-
d = n.options.overloadTranslationOptionHandler([
|
|
7775
|
+
if (typeof o != "object") {
|
|
7776
|
+
for (var g = arguments.length, l = new Array(g > 2 ? g - 2 : 0), h = 2; h < g; h++)
|
|
7777
|
+
l[h - 2] = arguments[h];
|
|
7778
|
+
d = n.options.overloadTranslationOptionHandler([c, o].concat(l));
|
|
7665
7779
|
} else
|
|
7666
7780
|
d = {
|
|
7667
|
-
...
|
|
7781
|
+
...o
|
|
7668
7782
|
};
|
|
7669
|
-
d.lng = d.lng ||
|
|
7783
|
+
d.lng = d.lng || a.lng, d.lngs = d.lngs || a.lngs, d.ns = d.ns || a.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || s || a.keyPrefix);
|
|
7670
7784
|
const u = n.options.keySeparator || ".";
|
|
7671
7785
|
let p;
|
|
7672
|
-
return d.keyPrefix && Array.isArray(
|
|
7786
|
+
return d.keyPrefix && Array.isArray(c) ? p = c.map((w) => `${d.keyPrefix}${u}${w}`) : p = d.keyPrefix ? `${d.keyPrefix}${u}${c}` : c, n.t(p, d);
|
|
7673
7787
|
};
|
|
7674
|
-
return R(e) ?
|
|
7788
|
+
return R(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = s, a;
|
|
7675
7789
|
}
|
|
7676
7790
|
t() {
|
|
7677
7791
|
return this.translator && this.translator.translate(...arguments);
|
|
@@ -7688,17 +7802,17 @@ class w1 extends H1 {
|
|
|
7688
7802
|
return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
|
|
7689
7803
|
if (!this.languages || !this.languages.length)
|
|
7690
7804
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
7691
|
-
const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1,
|
|
7805
|
+
const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
|
|
7692
7806
|
if (s.toLowerCase() === "cimode") return !0;
|
|
7693
|
-
const
|
|
7694
|
-
const g = this.services.backendConnector.state[`${
|
|
7807
|
+
const c = (o, d) => {
|
|
7808
|
+
const g = this.services.backendConnector.state[`${o}|${d}`];
|
|
7695
7809
|
return g === -1 || g === 0 || g === 2;
|
|
7696
7810
|
};
|
|
7697
7811
|
if (t.precheck) {
|
|
7698
|
-
const
|
|
7699
|
-
if (
|
|
7812
|
+
const o = t.precheck(this, c);
|
|
7813
|
+
if (o !== void 0) return o;
|
|
7700
7814
|
}
|
|
7701
|
-
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages ||
|
|
7815
|
+
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!n || c(a, e)));
|
|
7702
7816
|
}
|
|
7703
7817
|
loadNamespaces(e, t) {
|
|
7704
7818
|
const s = C1();
|
|
@@ -7711,9 +7825,9 @@ class w1 extends H1 {
|
|
|
7711
7825
|
loadLanguages(e, t) {
|
|
7712
7826
|
const s = C1();
|
|
7713
7827
|
R(e) && (e = [e]);
|
|
7714
|
-
const n = this.options.preload || [],
|
|
7715
|
-
return
|
|
7716
|
-
s.resolve(), t && t(
|
|
7828
|
+
const n = this.options.preload || [], a = e.filter((c) => n.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
|
|
7829
|
+
return a.length ? (this.options.preload = n.concat(a), this.loadResources((c) => {
|
|
7830
|
+
s.resolve(), t && t(c);
|
|
7717
7831
|
}), s) : (t && t(), Promise.resolve());
|
|
7718
7832
|
}
|
|
7719
7833
|
dir(e) {
|
|
@@ -7733,20 +7847,20 @@ class w1 extends H1 {
|
|
|
7733
7847
|
...this.options,
|
|
7734
7848
|
...e,
|
|
7735
7849
|
isClone: !0
|
|
7736
|
-
},
|
|
7737
|
-
return (e.debug !== void 0 || e.prefix !== void 0) && (
|
|
7738
|
-
o
|
|
7739
|
-
}),
|
|
7850
|
+
}, a = new w1(n);
|
|
7851
|
+
return (e.debug !== void 0 || e.prefix !== void 0) && (a.logger = a.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
|
|
7852
|
+
a[o] = this[o];
|
|
7853
|
+
}), a.services = {
|
|
7740
7854
|
...this.services
|
|
7741
|
-
},
|
|
7742
|
-
hasLoadedNamespace:
|
|
7743
|
-
}, s && (
|
|
7855
|
+
}, a.services.utils = {
|
|
7856
|
+
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
7857
|
+
}, s && (a.store = new ee(this.store.data, n), a.services.resourceStore = a.store), a.translator = new E1(a.services, n), a.translator.on("*", function(o) {
|
|
7744
7858
|
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), l = 1; l < d; l++)
|
|
7745
7859
|
g[l - 1] = arguments[l];
|
|
7746
|
-
|
|
7747
|
-
}),
|
|
7748
|
-
hasLoadedNamespace:
|
|
7749
|
-
},
|
|
7860
|
+
a.emit(o, ...g);
|
|
7861
|
+
}), a.init(n, t), a.translator.options = n, a.translator.backendConnector.services.utils = {
|
|
7862
|
+
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
7863
|
+
}, a;
|
|
7750
7864
|
}
|
|
7751
7865
|
toJSON() {
|
|
7752
7866
|
return {
|
|
@@ -7774,41 +7888,41 @@ Y.setDefaultNamespace;
|
|
|
7774
7888
|
Y.hasLoadedNamespace;
|
|
7775
7889
|
Y.loadNamespaces;
|
|
7776
7890
|
Y.loadLanguages;
|
|
7777
|
-
const
|
|
7778
|
-
archived:
|
|
7779
|
-
deleted:
|
|
7780
|
-
},
|
|
7781
|
-
archived:
|
|
7782
|
-
deleted:
|
|
7891
|
+
const Ii = "Archived", Oi = "Deleted", Si = {
|
|
7892
|
+
archived: Ii,
|
|
7893
|
+
deleted: Oi
|
|
7894
|
+
}, Vi = "Заархивирован", Ai = "Удалён", Ti = {
|
|
7895
|
+
archived: Vi,
|
|
7896
|
+
deleted: Ai
|
|
7783
7897
|
};
|
|
7784
|
-
Y.use(
|
|
7898
|
+
Y.use(ii).init({
|
|
7785
7899
|
defaultNS: "common",
|
|
7786
7900
|
lng: "en",
|
|
7787
7901
|
resources: {
|
|
7788
7902
|
en: {
|
|
7789
|
-
common:
|
|
7903
|
+
common: Si
|
|
7790
7904
|
},
|
|
7791
7905
|
ru: {
|
|
7792
|
-
common:
|
|
7906
|
+
common: Ti
|
|
7793
7907
|
}
|
|
7794
7908
|
}
|
|
7795
7909
|
});
|
|
7796
|
-
const
|
|
7910
|
+
const Ki = k1(
|
|
7797
7911
|
({
|
|
7798
7912
|
fetchParams: i,
|
|
7799
7913
|
mode: e = void 0,
|
|
7800
7914
|
placeholder: t,
|
|
7801
7915
|
disabled: s,
|
|
7802
7916
|
value: n,
|
|
7803
|
-
onChange:
|
|
7804
|
-
onError:
|
|
7805
|
-
allowEmpty:
|
|
7917
|
+
onChange: a,
|
|
7918
|
+
onError: c,
|
|
7919
|
+
allowEmpty: o = !1,
|
|
7806
7920
|
showAvatar: d = !1,
|
|
7807
7921
|
clearable: g,
|
|
7808
7922
|
required: l,
|
|
7809
|
-
error:
|
|
7923
|
+
error: h
|
|
7810
7924
|
}, u) => {
|
|
7811
|
-
const { axiosPeople: p, locale: w } = r1(_e), { t: k } =
|
|
7925
|
+
const { axiosPeople: p, locale: w } = r1(_e), { t: k } = ai("common", { lng: w }), [m, _] = T([]), [M, S] = T(!0), f = q(m), N = q(null);
|
|
7812
7926
|
if (_1(u, () => N.current), !p)
|
|
7813
7927
|
throw new Error(
|
|
7814
7928
|
`UserSelect requires "axiosPeople" to fetch users.
|
|
@@ -7816,21 +7930,21 @@ const W0 = k1(
|
|
|
7816
7930
|
);
|
|
7817
7931
|
const x = $(
|
|
7818
7932
|
(H) => {
|
|
7819
|
-
let
|
|
7820
|
-
return H.deletedAt && (
|
|
7933
|
+
let D = "";
|
|
7934
|
+
return H.deletedAt && (D += `[${k("deleted")}] `), H.status === R1.ARCHIVED && (D += `[${k("archived")}] `), `${D}${H.firstName} ${H.lastName}`;
|
|
7821
7935
|
},
|
|
7822
7936
|
[k]
|
|
7823
7937
|
), v = $(
|
|
7824
7938
|
async ({
|
|
7825
7939
|
offset: H,
|
|
7826
|
-
limit:
|
|
7940
|
+
limit: D,
|
|
7827
7941
|
search: I
|
|
7828
7942
|
}) => {
|
|
7829
|
-
var V,
|
|
7943
|
+
var V, Z, W;
|
|
7830
7944
|
try {
|
|
7831
7945
|
const U = await p.post("v1/users/search", {
|
|
7832
7946
|
offset: H,
|
|
7833
|
-
limit:
|
|
7947
|
+
limit: D,
|
|
7834
7948
|
search: I,
|
|
7835
7949
|
...i,
|
|
7836
7950
|
includeCount: !0
|
|
@@ -7844,27 +7958,27 @@ const W0 = k1(
|
|
|
7844
7958
|
count: K.count
|
|
7845
7959
|
};
|
|
7846
7960
|
} catch (U) {
|
|
7847
|
-
return
|
|
7961
|
+
return c && c({
|
|
7848
7962
|
status: ((V = U.response) == null ? void 0 : V.status) ?? 500,
|
|
7849
|
-
message: ((W = (
|
|
7963
|
+
message: ((W = (Z = U.response) == null ? void 0 : Z.data) == null ? void 0 : W.message) ?? "Error while fetching options"
|
|
7850
7964
|
}), {
|
|
7851
7965
|
options: [],
|
|
7852
7966
|
count: 0
|
|
7853
7967
|
};
|
|
7854
7968
|
}
|
|
7855
7969
|
},
|
|
7856
|
-
[p, i, x, d,
|
|
7970
|
+
[p, i, x, d, c]
|
|
7857
7971
|
), P = $(
|
|
7858
7972
|
async (H) => {
|
|
7859
|
-
var
|
|
7973
|
+
var D, I, V;
|
|
7860
7974
|
try {
|
|
7861
|
-
const
|
|
7975
|
+
const Z = H.filter(
|
|
7862
7976
|
(O) => !f.current.some((K) => K.value === O)
|
|
7863
7977
|
);
|
|
7864
7978
|
let W = [];
|
|
7865
|
-
|
|
7979
|
+
Z.length && (W = (await p.post("v1/users/search", {
|
|
7866
7980
|
filters: {
|
|
7867
|
-
id:
|
|
7981
|
+
id: Z,
|
|
7868
7982
|
status: [R1.ACTIVE, R1.ARCHIVED]
|
|
7869
7983
|
}
|
|
7870
7984
|
})).data.data);
|
|
@@ -7874,59 +7988,59 @@ const W0 = k1(
|
|
|
7874
7988
|
image: d ? O.avatarUrl : void 0
|
|
7875
7989
|
}));
|
|
7876
7990
|
return [...f.current, ...U];
|
|
7877
|
-
} catch (
|
|
7878
|
-
return
|
|
7879
|
-
status: ((
|
|
7880
|
-
message: ((V = (I =
|
|
7991
|
+
} catch (Z) {
|
|
7992
|
+
return c && c({
|
|
7993
|
+
status: ((D = Z.response) == null ? void 0 : D.status) ?? 500,
|
|
7994
|
+
message: ((V = (I = Z.response) == null ? void 0 : I.data) == null ? void 0 : V.message) ?? "Error while fetching selected items"
|
|
7881
7995
|
}), [];
|
|
7882
7996
|
}
|
|
7883
7997
|
},
|
|
7884
|
-
[p, x,
|
|
7998
|
+
[p, x, c, d]
|
|
7885
7999
|
);
|
|
7886
|
-
|
|
8000
|
+
j(() => {
|
|
7887
8001
|
f.current = m;
|
|
7888
|
-
}, [m]),
|
|
8002
|
+
}, [m]), j(() => {
|
|
7889
8003
|
var H;
|
|
7890
8004
|
(H = N.current) == null || H.refetchOptions();
|
|
7891
|
-
}, [i]),
|
|
8005
|
+
}, [i]), j(() => {
|
|
7892
8006
|
if (!n) {
|
|
7893
8007
|
S(!1);
|
|
7894
8008
|
return;
|
|
7895
8009
|
}
|
|
7896
8010
|
(async () => {
|
|
7897
|
-
const
|
|
7898
|
-
|
|
8011
|
+
const D = Array.isArray(n) ? n : [n], I = await P(D);
|
|
8012
|
+
_(I), S(!1);
|
|
7899
8013
|
})();
|
|
7900
8014
|
}, [P, n]);
|
|
7901
8015
|
const J = $(
|
|
7902
8016
|
async ({
|
|
7903
8017
|
limit: H,
|
|
7904
|
-
offset:
|
|
8018
|
+
offset: D,
|
|
7905
8019
|
search: I
|
|
7906
8020
|
}) => {
|
|
7907
|
-
const { count: V, ...
|
|
7908
|
-
offset:
|
|
8021
|
+
const { count: V, ...Z } = await v({
|
|
8022
|
+
offset: D,
|
|
7909
8023
|
limit: H,
|
|
7910
8024
|
search: I
|
|
7911
8025
|
});
|
|
7912
|
-
let W =
|
|
7913
|
-
return
|
|
8026
|
+
let W = Z.options;
|
|
8027
|
+
return o && D === 0 && (W = [{ value: null, label: "None" }, ...W]), {
|
|
7914
8028
|
options: W,
|
|
7915
8029
|
count: V,
|
|
7916
8030
|
limit: H
|
|
7917
8031
|
};
|
|
7918
8032
|
},
|
|
7919
|
-
[
|
|
8033
|
+
[o, v]
|
|
7920
8034
|
);
|
|
7921
8035
|
if (M)
|
|
7922
|
-
return /* @__PURE__ */ r(
|
|
8036
|
+
return /* @__PURE__ */ r(K5, {});
|
|
7923
8037
|
const F = {
|
|
7924
8038
|
ref: N,
|
|
7925
8039
|
placeholder: t,
|
|
7926
8040
|
disabled: s,
|
|
7927
8041
|
clearable: g,
|
|
7928
8042
|
required: l,
|
|
7929
|
-
error:
|
|
8043
|
+
error: h
|
|
7930
8044
|
};
|
|
7931
8045
|
return e ? /* @__PURE__ */ r(
|
|
7932
8046
|
F1,
|
|
@@ -7934,7 +8048,7 @@ const W0 = k1(
|
|
|
7934
8048
|
...F,
|
|
7935
8049
|
mode: e,
|
|
7936
8050
|
value: n,
|
|
7937
|
-
onChange:
|
|
8051
|
+
onChange: a,
|
|
7938
8052
|
loadOptions: J,
|
|
7939
8053
|
preloadOptions: !0,
|
|
7940
8054
|
extraOptions: m
|
|
@@ -7945,7 +8059,7 @@ const W0 = k1(
|
|
|
7945
8059
|
...F,
|
|
7946
8060
|
value: n,
|
|
7947
8061
|
mode: void 0,
|
|
7948
|
-
onChange:
|
|
8062
|
+
onChange: a,
|
|
7949
8063
|
loadOptions: J,
|
|
7950
8064
|
preloadOptions: !0,
|
|
7951
8065
|
extraOptions: m
|
|
@@ -7954,5 +8068,5 @@ const W0 = k1(
|
|
|
7954
8068
|
}
|
|
7955
8069
|
);
|
|
7956
8070
|
export {
|
|
7957
|
-
|
|
8071
|
+
Ki as UserSelect
|
|
7958
8072
|
};
|