@snmt-react-ui/user-select 2.7.20 → 2.7.22
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 +1159 -1039
- 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,11 +14,11 @@ 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
23
|
const ce = (i, e) => () => {
|
|
24
24
|
if (i.isInitialized)
|
|
@@ -39,13 +39,13 @@ const ce = (i, e) => () => {
|
|
|
39
39
|
}), i.loadLanguages(e, ce(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 h = (
|
|
45
|
-
const
|
|
46
|
-
return
|
|
44
|
+
const h = (o, g) => {
|
|
45
|
+
const d = e.services.backendConnector.state[`${o}|${g}`];
|
|
46
|
+
return d === -1 || d === 2;
|
|
47
47
|
};
|
|
48
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(s, i) && (!n || h(
|
|
48
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(s, i) && (!n || h(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,7 +101,7 @@ 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
|
}, he = (i, e, t, s) => i.getFixedT(e, t, s), ze = (i, e, t, s) => $(he(i, e, t, s), [i, e, t, s]), Je = function(i) {
|
|
@@ -111,50 +111,50 @@ const Ue = (i, e) => {
|
|
|
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 = (
|
|
118
|
-
return
|
|
117
|
+
const f = (R, v) => s1(v) ? v : Ze(v) && s1(v.defaultValue) ? v.defaultValue : Array.isArray(R) ? R[R.length - 1] : R, x = [f, {}, !1];
|
|
118
|
+
return x.t = f, x.i18n = {}, x.ready = !1, x;
|
|
119
119
|
}
|
|
120
|
-
|
|
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
121
|
const h = {
|
|
122
122
|
...Ke(),
|
|
123
|
-
...
|
|
123
|
+
...a.options.react,
|
|
124
124
|
...e
|
|
125
125
|
}, {
|
|
126
|
-
useSuspense:
|
|
127
|
-
keyPrefix:
|
|
126
|
+
useSuspense: o,
|
|
127
|
+
keyPrefix: g
|
|
128
128
|
} = h;
|
|
129
|
-
let
|
|
130
|
-
|
|
131
|
-
const l = (
|
|
132
|
-
let m =
|
|
129
|
+
let d = i;
|
|
130
|
+
d = s1(d) ? [d] : d || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(d);
|
|
131
|
+
const l = (a.isInitialized || a.initializedStoreOnce) && d.every((f) => Te(f, a, h)), c = ze(a, e.lng || null, h.nsMode === "fallback" ? d : d[0], g), u = () => c, p = () => he(a, e.lng || null, h.nsMode === "fallback" ? d : d[0], g), [w, k] = T(u);
|
|
132
|
+
let m = d.join();
|
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const _ = Ue(m), N = q(!0);
|
|
135
|
+
j(() => {
|
|
136
136
|
const {
|
|
137
137
|
bindI18n: f,
|
|
138
|
-
bindI18nStore:
|
|
138
|
+
bindI18nStore: x
|
|
139
139
|
} = h;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}) : W1(
|
|
143
|
-
|
|
144
|
-
})), l &&
|
|
145
|
-
const
|
|
146
|
-
|
|
140
|
+
N.current = !0, !l && !o && (e.lng ? G1(a, e.lng, d, () => {
|
|
141
|
+
N.current && k(p);
|
|
142
|
+
}) : W1(a, d, () => {
|
|
143
|
+
N.current && k(p);
|
|
144
|
+
})), l && _ && _ !== m && N.current && k(p);
|
|
145
|
+
const R = () => {
|
|
146
|
+
N.current && k(p);
|
|
147
147
|
};
|
|
148
|
-
return f &&
|
|
149
|
-
|
|
148
|
+
return f && a && a.on(f, R), x && a && a.store.on(x, R), () => {
|
|
149
|
+
N.current = !1, f && a && f.split(" ").forEach((v) => a.off(v, R)), x && a && x.split(" ").forEach((v) => a.store.off(v, R));
|
|
150
150
|
};
|
|
151
|
-
}, [
|
|
152
|
-
|
|
153
|
-
}, [
|
|
154
|
-
const S = [w,
|
|
155
|
-
if (S.t = w, S.i18n =
|
|
151
|
+
}, [a, m]), j(() => {
|
|
152
|
+
N.current && l && k(u);
|
|
153
|
+
}, [a, g, 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, d, () => f()) : W1(a, d, () => 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:
|
|
165
|
+
flex: a,
|
|
166
166
|
gap: h,
|
|
167
|
-
padding:
|
|
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:
|
|
176
|
+
flex: a,
|
|
177
177
|
gap: h,
|
|
178
|
-
style: { padding:
|
|
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 [h,
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
const [h, o] = T(i), [g, d] = T(e);
|
|
210
|
+
j(() => {
|
|
211
|
+
o(i), d(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
218
|
checked: h,
|
|
219
|
-
indeterminate:
|
|
219
|
+
indeterminate: g,
|
|
220
220
|
onChange: (c) => {
|
|
221
|
-
|
|
221
|
+
a && h || (d(!1), o(c.target.checked), s && s(c));
|
|
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
|
)
|
|
@@ -582,34 +594,40 @@ const Xe = ({
|
|
|
582
594
|
] })
|
|
583
595
|
}
|
|
584
596
|
), ct = ({
|
|
585
|
-
width: i =
|
|
586
|
-
height: e =
|
|
587
|
-
color: t =
|
|
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",
|
|
606
617
|
fill: t
|
|
607
618
|
}
|
|
608
619
|
),
|
|
609
620
|
/* @__PURE__ */ r(
|
|
610
621
|
"path",
|
|
611
622
|
{
|
|
612
|
-
d: "
|
|
623
|
+
d: "M11.4523 16.997C11.7294 16.6891 12.204 16.6643 12.5118 16.9413C12.8197 17.2184 12.8446 17.693 12.5675 18.0009L12.5577 18.0117C12.2806 18.3195 11.806 18.3444 11.4982 18.0673C11.1904 17.7902 11.1655 17.3156 11.4425 17.0078L11.4523 16.997Z",
|
|
624
|
+
fill: t
|
|
625
|
+
}
|
|
626
|
+
),
|
|
627
|
+
/* @__PURE__ */ r(
|
|
628
|
+
"path",
|
|
629
|
+
{
|
|
630
|
+
d: "M21.25 12.5C21.25 7.39137 17.1086 3.25 12 3.25C6.89137 3.25 2.75 7.39137 2.75 12.5C2.75 17.6086 6.89137 21.75 12 21.75C17.1086 21.75 21.25 17.6086 21.25 12.5ZM22.75 12.5C22.75 18.4371 17.9371 23.25 12 23.25C6.06294 23.25 1.25 18.4371 1.25 12.5C1.25 6.56294 6.06294 1.75 12 1.75C17.9371 1.75 22.75 6.56294 22.75 12.5Z",
|
|
613
631
|
fill: t
|
|
614
632
|
}
|
|
615
633
|
)
|
|
@@ -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
|
+
), c2 = ({
|
|
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(
|
|
@@ -2566,10 +2617,10 @@ const Xe = ({
|
|
|
2566
2617
|
)
|
|
2567
2618
|
]
|
|
2568
2619
|
}
|
|
2569
|
-
),
|
|
2620
|
+
), h2 = ({
|
|
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:
|
|
2706
|
+
disabled: a = !1,
|
|
2656
2707
|
onClick: h
|
|
2657
2708
|
}) => {
|
|
2658
|
-
const [
|
|
2659
|
-
return
|
|
2709
|
+
const [o, g] = T(n), { theme: d } = r1(de), l = a ? d && d === "dark" ? y.GREY_LIGHT_4 : y.GREY_DARK_1 : s, c = a ? void 0 : h;
|
|
2710
|
+
return j(() => {
|
|
2660
2711
|
if (n) {
|
|
2661
|
-
c && !
|
|
2712
|
+
c && !a && g(`${n} clickable`);
|
|
2662
2713
|
return;
|
|
2663
2714
|
}
|
|
2664
|
-
c && !
|
|
2665
|
-
}, [c, n,
|
|
2715
|
+
c && !a && g("clickable");
|
|
2716
|
+
}, [c, 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: c });
|
|
2669
2720
|
case "prevIcon":
|
|
2670
|
-
return
|
|
2721
|
+
return Vt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
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: c });
|
|
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: c });
|
|
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: c });
|
|
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: c });
|
|
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: c });
|
|
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: c });
|
|
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: c });
|
|
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: c });
|
|
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: c });
|
|
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: c });
|
|
2691
2742
|
case "attention":
|
|
2692
|
-
return ct({ width: e, height: t, color: l, className:
|
|
2743
|
+
return ct({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2693
2744
|
case "users":
|
|
2694
|
-
return ht({ width: e, height: t, color: l, className:
|
|
2745
|
+
return ht({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2695
2746
|
case "mySkillsMatrix":
|
|
2696
2747
|
return dt({
|
|
2697
2748
|
width: e,
|
|
2698
2749
|
height: t,
|
|
2699
2750
|
color: l,
|
|
2700
|
-
className:
|
|
2751
|
+
className: o,
|
|
2701
2752
|
onClick: c
|
|
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: c });
|
|
2705
2756
|
case "skillsMatrices":
|
|
2706
2757
|
return ut({
|
|
2707
2758
|
width: e,
|
|
2708
2759
|
height: t,
|
|
2709
2760
|
color: l,
|
|
2710
|
-
className:
|
|
2761
|
+
className: o,
|
|
2711
2762
|
onClick: c
|
|
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: c });
|
|
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: c });
|
|
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: c });
|
|
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: c });
|
|
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: c });
|
|
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: c });
|
|
2776
|
+
case "checkCircle":
|
|
2777
|
+
return Lt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2725
2778
|
case "errorSmall":
|
|
2726
|
-
return
|
|
2779
|
+
return vt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2727
2780
|
case "infoMedium":
|
|
2728
|
-
return
|
|
2781
|
+
return Nt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2729
2782
|
case "attentionMedium":
|
|
2730
|
-
return
|
|
2783
|
+
return xt({
|
|
2731
2784
|
width: e,
|
|
2732
2785
|
height: t,
|
|
2733
2786
|
color: l,
|
|
2734
|
-
className:
|
|
2787
|
+
className: o,
|
|
2735
2788
|
onClick: c
|
|
2736
2789
|
});
|
|
2737
2790
|
case "errorMedium":
|
|
2738
|
-
return
|
|
2791
|
+
return Rt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2739
2792
|
case "visibilityIcon":
|
|
2740
|
-
return
|
|
2793
|
+
return Mt({
|
|
2741
2794
|
width: e,
|
|
2742
2795
|
height: t,
|
|
2743
2796
|
color: l,
|
|
2744
|
-
className:
|
|
2797
|
+
className: o,
|
|
2745
2798
|
onClick: c
|
|
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:
|
|
2805
|
+
className: o,
|
|
2753
2806
|
onClick: c
|
|
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:
|
|
2813
|
+
className: o,
|
|
2761
2814
|
onClick: c
|
|
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:
|
|
2821
|
+
className: o,
|
|
2769
2822
|
onClick: c
|
|
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:
|
|
2829
|
+
className: o,
|
|
2777
2830
|
onClick: c
|
|
2778
2831
|
});
|
|
2779
2832
|
case "sortUp":
|
|
2780
|
-
return
|
|
2833
|
+
return Ht({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2781
2834
|
case "sortDown":
|
|
2782
|
-
return
|
|
2835
|
+
return It({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2783
2836
|
case "search":
|
|
2784
|
-
return
|
|
2837
|
+
return Ot({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2785
2838
|
case "arrowUpFilled":
|
|
2786
|
-
return
|
|
2839
|
+
return Tt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2787
2840
|
case "arrowDownFilled":
|
|
2788
|
-
return
|
|
2841
|
+
return At({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2789
2842
|
case "link":
|
|
2790
|
-
return
|
|
2843
|
+
return Zt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
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: c });
|
|
2793
2846
|
case "mail":
|
|
2794
|
-
return
|
|
2847
|
+
return Wt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
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: c });
|
|
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: c });
|
|
2799
2852
|
case "emptyStateIcon":
|
|
2800
|
-
return
|
|
2853
|
+
return Gt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2801
2854
|
case "filtersIcon":
|
|
2802
|
-
return
|
|
2855
|
+
return Kt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2803
2856
|
case "dotMenuIcon":
|
|
2804
|
-
return
|
|
2857
|
+
return $t({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2805
2858
|
case "plusCircle":
|
|
2806
|
-
return
|
|
2859
|
+
return Pt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2807
2860
|
case "warning":
|
|
2808
|
-
return
|
|
2861
|
+
return Ft({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2809
2862
|
case "back":
|
|
2810
|
-
return
|
|
2863
|
+
return Yt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2811
2864
|
case "bell":
|
|
2812
|
-
return
|
|
2865
|
+
return Ut({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2813
2866
|
case "contract":
|
|
2814
|
-
return
|
|
2867
|
+
return Jt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2815
2868
|
case "trash2":
|
|
2816
|
-
return
|
|
2869
|
+
return zt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2817
2870
|
case "resourceManager":
|
|
2818
|
-
return
|
|
2871
|
+
return qt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2819
2872
|
case "settings2":
|
|
2820
|
-
return
|
|
2873
|
+
return Qt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2821
2874
|
case "image":
|
|
2822
|
-
return
|
|
2875
|
+
return Xt({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2823
2876
|
case "edit":
|
|
2824
|
-
return
|
|
2877
|
+
return e2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2825
2878
|
case "filledArrowRight":
|
|
2826
|
-
return
|
|
2879
|
+
return t2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2827
2880
|
case "burgerMenu":
|
|
2828
|
-
return
|
|
2881
|
+
return i2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2829
2882
|
case "signOut":
|
|
2830
|
-
return
|
|
2883
|
+
return s2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2831
2884
|
case "refresh":
|
|
2832
|
-
return
|
|
2885
|
+
return n2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2833
2886
|
case "projects":
|
|
2834
|
-
return
|
|
2887
|
+
return r2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2835
2888
|
case "profile":
|
|
2836
|
-
return
|
|
2889
|
+
return g2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2837
2890
|
case "exit":
|
|
2838
|
-
return
|
|
2891
|
+
return o2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2839
2892
|
case "client":
|
|
2840
|
-
return
|
|
2893
|
+
return a2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2841
2894
|
case "calendar2":
|
|
2842
|
-
return
|
|
2895
|
+
return l2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2843
2896
|
case "openPointCircle":
|
|
2844
|
-
return
|
|
2897
|
+
return c2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2845
2898
|
case "community":
|
|
2846
|
-
return
|
|
2899
|
+
return h2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
2847
2900
|
case "docs":
|
|
2848
|
-
return
|
|
2901
|
+
return d2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
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,57 @@ 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:
|
|
2928
|
+
collapsed: a,
|
|
2876
2929
|
whiteSpace: h = "normal",
|
|
2877
2930
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2878
|
-
trim:
|
|
2879
|
-
},
|
|
2880
|
-
const
|
|
2881
|
-
_1(
|
|
2931
|
+
trim: o = !1
|
|
2932
|
+
}, g) => {
|
|
2933
|
+
const d = q(null);
|
|
2934
|
+
_1(g, () => d.current);
|
|
2882
2935
|
const [l, c] = T(!1);
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2936
|
+
j(() => {
|
|
2937
|
+
var m;
|
|
2938
|
+
if (!o) return;
|
|
2939
|
+
const _ = () => {
|
|
2940
|
+
d.current && c(d.current.scrollWidth > d.current.clientWidth);
|
|
2941
|
+
};
|
|
2942
|
+
_();
|
|
2943
|
+
const N = new ResizeObserver(_);
|
|
2944
|
+
return d.current && N.observe(d.current), (m = d.current) != null && m.parentElement && N.observe(d.current.parentElement), () => {
|
|
2945
|
+
N.disconnect();
|
|
2890
2946
|
};
|
|
2891
|
-
}, [
|
|
2947
|
+
}, [o]);
|
|
2892
2948
|
const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
2893
2949
|
let p = `snmt-typography snmt-typography-${e}`;
|
|
2894
|
-
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`),
|
|
2950
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), a && (p += " collapsed"), o && (p += " collapsed");
|
|
2895
2951
|
const w = {
|
|
2896
2952
|
className: p,
|
|
2897
|
-
style: { color: t, whiteSpace:
|
|
2953
|
+
style: { color: t, whiteSpace: o ? "nowrap" : h, display: o ? "block" : "" },
|
|
2898
2954
|
onClick: n,
|
|
2899
|
-
ref:
|
|
2900
|
-
}, k = u ? /* @__PURE__ */ r(
|
|
2901
|
-
return
|
|
2955
|
+
ref: d
|
|
2956
|
+
}, k = u ? /* @__PURE__ */ r(C2, { level: f2[e], ...w, children: s }) : /* @__PURE__ */ r(p2, { ...w, children: s });
|
|
2957
|
+
return o && l ? /* @__PURE__ */ r(u2, { placement: "top", title: s, children: k }) : k;
|
|
2902
2958
|
}
|
|
2903
2959
|
);
|
|
2904
|
-
var
|
|
2960
|
+
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
2961
|
const ge = d1({
|
|
2906
2962
|
locale: "en",
|
|
2907
2963
|
theme: "light"
|
|
2908
2964
|
});
|
|
2909
2965
|
ge.Provider;
|
|
2910
|
-
const
|
|
2966
|
+
const w2 = ({
|
|
2911
2967
|
width: i = 20,
|
|
2912
2968
|
height: e = 20,
|
|
2913
2969
|
color: t = "#001E52",
|
|
@@ -2934,35 +2990,47 @@ const m2 = ({
|
|
|
2934
2990
|
}
|
|
2935
2991
|
)
|
|
2936
2992
|
}
|
|
2937
|
-
),
|
|
2938
|
-
width: i =
|
|
2939
|
-
height: e =
|
|
2940
|
-
color: t =
|
|
2993
|
+
), k2 = ({
|
|
2994
|
+
width: i = 20,
|
|
2995
|
+
height: e = 20,
|
|
2996
|
+
color: t = E.GREY_DARK_5,
|
|
2941
2997
|
className: s,
|
|
2942
2998
|
onClick: n
|
|
2943
2999
|
}) => /* @__PURE__ */ C(
|
|
2944
3000
|
"svg",
|
|
2945
3001
|
{
|
|
2946
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2947
3002
|
width: i,
|
|
2948
3003
|
height: e,
|
|
2949
3004
|
className: s,
|
|
2950
3005
|
onClick: n,
|
|
2951
|
-
viewBox: "0 0
|
|
3006
|
+
viewBox: "0 0 24 25",
|
|
2952
3007
|
fill: "none",
|
|
3008
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2953
3009
|
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
3010
|
/* @__PURE__ */ r(
|
|
2957
3011
|
"path",
|
|
2958
3012
|
{
|
|
2959
|
-
d: "
|
|
3013
|
+
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",
|
|
3014
|
+
fill: t
|
|
3015
|
+
}
|
|
3016
|
+
),
|
|
3017
|
+
/* @__PURE__ */ r(
|
|
3018
|
+
"path",
|
|
3019
|
+
{
|
|
3020
|
+
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",
|
|
3021
|
+
fill: t
|
|
3022
|
+
}
|
|
3023
|
+
),
|
|
3024
|
+
/* @__PURE__ */ r(
|
|
3025
|
+
"path",
|
|
3026
|
+
{
|
|
3027
|
+
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
3028
|
fill: t
|
|
2961
3029
|
}
|
|
2962
3030
|
)
|
|
2963
3031
|
]
|
|
2964
3032
|
}
|
|
2965
|
-
),
|
|
3033
|
+
), L2 = ({
|
|
2966
3034
|
width: i = 20,
|
|
2967
3035
|
height: e = 20,
|
|
2968
3036
|
color: t = "#001E52",
|
|
@@ -2997,7 +3065,7 @@ const m2 = ({
|
|
|
2997
3065
|
)
|
|
2998
3066
|
]
|
|
2999
3067
|
}
|
|
3000
|
-
),
|
|
3068
|
+
), v2 = ({
|
|
3001
3069
|
width: i = 18,
|
|
3002
3070
|
height: e = 18,
|
|
3003
3071
|
color: t = "#001E52",
|
|
@@ -3036,7 +3104,7 @@ const m2 = ({
|
|
|
3036
3104
|
)
|
|
3037
3105
|
]
|
|
3038
3106
|
}
|
|
3039
|
-
),
|
|
3107
|
+
), N2 = ({
|
|
3040
3108
|
width: i = 20,
|
|
3041
3109
|
height: e = 20,
|
|
3042
3110
|
color: t = "#001E52",
|
|
@@ -3062,7 +3130,7 @@ const m2 = ({
|
|
|
3062
3130
|
}
|
|
3063
3131
|
)
|
|
3064
3132
|
}
|
|
3065
|
-
),
|
|
3133
|
+
), x2 = ({
|
|
3066
3134
|
width: i = 20,
|
|
3067
3135
|
height: e = 20,
|
|
3068
3136
|
color: t = "#001E52",
|
|
@@ -3083,7 +3151,7 @@ const m2 = ({
|
|
|
3083
3151
|
/* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
|
3084
3152
|
]
|
|
3085
3153
|
}
|
|
3086
|
-
),
|
|
3154
|
+
), R2 = ({
|
|
3087
3155
|
width: i = 20,
|
|
3088
3156
|
height: e = 20,
|
|
3089
3157
|
color: t = "#001E52",
|
|
@@ -3115,7 +3183,7 @@ const m2 = ({
|
|
|
3115
3183
|
)
|
|
3116
3184
|
]
|
|
3117
3185
|
}
|
|
3118
|
-
),
|
|
3186
|
+
), M2 = ({
|
|
3119
3187
|
width: i = 20,
|
|
3120
3188
|
height: e = 20,
|
|
3121
3189
|
color: t = "#001E52",
|
|
@@ -3169,7 +3237,7 @@ const m2 = ({
|
|
|
3169
3237
|
)
|
|
3170
3238
|
]
|
|
3171
3239
|
}
|
|
3172
|
-
),
|
|
3240
|
+
), b2 = ({
|
|
3173
3241
|
width: i = 20,
|
|
3174
3242
|
height: e = 20,
|
|
3175
3243
|
color: t = "#001E52",
|
|
@@ -3208,7 +3276,7 @@ const m2 = ({
|
|
|
3208
3276
|
/* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
|
3209
3277
|
]
|
|
3210
3278
|
}
|
|
3211
|
-
),
|
|
3279
|
+
), y2 = ({
|
|
3212
3280
|
width: i = 16,
|
|
3213
3281
|
height: e = 12,
|
|
3214
3282
|
color: t = "#001E52",
|
|
@@ -3257,41 +3325,47 @@ const m2 = ({
|
|
|
3257
3325
|
)
|
|
3258
3326
|
] })
|
|
3259
3327
|
}
|
|
3260
|
-
),
|
|
3261
|
-
width: i =
|
|
3262
|
-
height: e =
|
|
3263
|
-
color: t =
|
|
3328
|
+
), E2 = ({
|
|
3329
|
+
width: i = 20,
|
|
3330
|
+
height: e = 20,
|
|
3331
|
+
color: t = E.GREY_DARK_5,
|
|
3264
3332
|
className: s,
|
|
3265
3333
|
onClick: n
|
|
3266
3334
|
}) => /* @__PURE__ */ C(
|
|
3267
3335
|
"svg",
|
|
3268
3336
|
{
|
|
3269
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3270
3337
|
width: i,
|
|
3271
3338
|
height: e,
|
|
3272
3339
|
className: s,
|
|
3273
3340
|
onClick: n,
|
|
3274
|
-
viewBox: "0 0
|
|
3341
|
+
viewBox: "0 0 24 25",
|
|
3275
3342
|
fill: "none",
|
|
3343
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3276
3344
|
children: [
|
|
3277
|
-
/* @__PURE__ */ r("circle", { cx: "8", cy: "8", r: "7.27273", stroke: t, strokeWidth: "1.45455" }),
|
|
3278
3345
|
/* @__PURE__ */ r(
|
|
3279
3346
|
"path",
|
|
3280
3347
|
{
|
|
3281
|
-
d: "
|
|
3348
|
+
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",
|
|
3349
|
+
fill: t
|
|
3350
|
+
}
|
|
3351
|
+
),
|
|
3352
|
+
/* @__PURE__ */ r(
|
|
3353
|
+
"path",
|
|
3354
|
+
{
|
|
3355
|
+
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
3356
|
fill: t
|
|
3283
3357
|
}
|
|
3284
3358
|
),
|
|
3285
3359
|
/* @__PURE__ */ r(
|
|
3286
3360
|
"path",
|
|
3287
3361
|
{
|
|
3288
|
-
d: "
|
|
3362
|
+
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
3363
|
fill: t
|
|
3290
3364
|
}
|
|
3291
3365
|
)
|
|
3292
3366
|
]
|
|
3293
3367
|
}
|
|
3294
|
-
),
|
|
3368
|
+
), _2 = ({
|
|
3295
3369
|
width: i = 20,
|
|
3296
3370
|
height: e = 20,
|
|
3297
3371
|
color: t = "#001E52",
|
|
@@ -3338,7 +3412,7 @@ const m2 = ({
|
|
|
3338
3412
|
)
|
|
3339
3413
|
]
|
|
3340
3414
|
}
|
|
3341
|
-
),
|
|
3415
|
+
), H2 = ({
|
|
3342
3416
|
width: i = 20,
|
|
3343
3417
|
height: e = 20,
|
|
3344
3418
|
color: t = "#001E52",
|
|
@@ -3371,7 +3445,7 @@ const m2 = ({
|
|
|
3371
3445
|
)
|
|
3372
3446
|
]
|
|
3373
3447
|
}
|
|
3374
|
-
),
|
|
3448
|
+
), I2 = ({
|
|
3375
3449
|
width: i = 20,
|
|
3376
3450
|
height: e = 20,
|
|
3377
3451
|
color: t = "#001E52",
|
|
@@ -3418,7 +3492,7 @@ const m2 = ({
|
|
|
3418
3492
|
)
|
|
3419
3493
|
]
|
|
3420
3494
|
}
|
|
3421
|
-
),
|
|
3495
|
+
), O2 = ({
|
|
3422
3496
|
width: i = 20,
|
|
3423
3497
|
height: e = 20,
|
|
3424
3498
|
color: t = "#001E52",
|
|
@@ -3451,7 +3525,7 @@ const m2 = ({
|
|
|
3451
3525
|
)
|
|
3452
3526
|
]
|
|
3453
3527
|
}
|
|
3454
|
-
),
|
|
3528
|
+
), S2 = ({
|
|
3455
3529
|
width: i = 18,
|
|
3456
3530
|
height: e = 16,
|
|
3457
3531
|
color: t = "#001E52",
|
|
@@ -3490,7 +3564,7 @@ const m2 = ({
|
|
|
3490
3564
|
)
|
|
3491
3565
|
]
|
|
3492
3566
|
}
|
|
3493
|
-
),
|
|
3567
|
+
), V2 = ({
|
|
3494
3568
|
width: i = 20,
|
|
3495
3569
|
height: e = 20,
|
|
3496
3570
|
color: t = "#001E52",
|
|
@@ -3523,7 +3597,7 @@ const m2 = ({
|
|
|
3523
3597
|
)
|
|
3524
3598
|
]
|
|
3525
3599
|
}
|
|
3526
|
-
),
|
|
3600
|
+
), A2 = ({
|
|
3527
3601
|
width: i = 20,
|
|
3528
3602
|
height: e = 20,
|
|
3529
3603
|
color: t = "#001E52",
|
|
@@ -3547,7 +3621,7 @@ const m2 = ({
|
|
|
3547
3621
|
}
|
|
3548
3622
|
)
|
|
3549
3623
|
}
|
|
3550
|
-
),
|
|
3624
|
+
), T2 = ({
|
|
3551
3625
|
width: i = 20,
|
|
3552
3626
|
height: e = 20,
|
|
3553
3627
|
color: t = "#001E52",
|
|
@@ -3580,7 +3654,7 @@ const m2 = ({
|
|
|
3580
3654
|
)
|
|
3581
3655
|
]
|
|
3582
3656
|
}
|
|
3583
|
-
),
|
|
3657
|
+
), Z2 = ({
|
|
3584
3658
|
width: i = 20,
|
|
3585
3659
|
height: e = 23,
|
|
3586
3660
|
color: t = "#001E52",
|
|
@@ -3671,6 +3745,39 @@ const m2 = ({
|
|
|
3671
3745
|
]
|
|
3672
3746
|
}
|
|
3673
3747
|
), B2 = ({
|
|
3748
|
+
width: i = 20,
|
|
3749
|
+
height: e = 20,
|
|
3750
|
+
color: t = E.GREY_DARK_5,
|
|
3751
|
+
className: s,
|
|
3752
|
+
onClick: n
|
|
3753
|
+
}) => /* @__PURE__ */ C(
|
|
3754
|
+
"svg",
|
|
3755
|
+
{
|
|
3756
|
+
width: i,
|
|
3757
|
+
height: e,
|
|
3758
|
+
className: s,
|
|
3759
|
+
onClick: n,
|
|
3760
|
+
viewBox: "0 0 24 25",
|
|
3761
|
+
fill: "none",
|
|
3762
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3763
|
+
children: [
|
|
3764
|
+
/* @__PURE__ */ r(
|
|
3765
|
+
"path",
|
|
3766
|
+
{
|
|
3767
|
+
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",
|
|
3768
|
+
fill: t
|
|
3769
|
+
}
|
|
3770
|
+
),
|
|
3771
|
+
/* @__PURE__ */ r(
|
|
3772
|
+
"path",
|
|
3773
|
+
{
|
|
3774
|
+
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",
|
|
3775
|
+
fill: t
|
|
3776
|
+
}
|
|
3777
|
+
)
|
|
3778
|
+
]
|
|
3779
|
+
}
|
|
3780
|
+
), j2 = ({
|
|
3674
3781
|
width: i = 10,
|
|
3675
3782
|
height: e = 10,
|
|
3676
3783
|
color: t = "#88A4FF",
|
|
@@ -3718,7 +3825,7 @@ const m2 = ({
|
|
|
3718
3825
|
)
|
|
3719
3826
|
]
|
|
3720
3827
|
}
|
|
3721
|
-
),
|
|
3828
|
+
), W2 = ({
|
|
3722
3829
|
width: i = 14,
|
|
3723
3830
|
height: e = 14,
|
|
3724
3831
|
color: t = "#8E8E93",
|
|
@@ -3746,7 +3853,7 @@ const m2 = ({
|
|
|
3746
3853
|
)
|
|
3747
3854
|
]
|
|
3748
3855
|
}
|
|
3749
|
-
),
|
|
3856
|
+
), G2 = ({
|
|
3750
3857
|
width: i = 14,
|
|
3751
3858
|
height: e = 14,
|
|
3752
3859
|
color: t = "#FFB020",
|
|
@@ -3780,7 +3887,7 @@ const m2 = ({
|
|
|
3780
3887
|
)
|
|
3781
3888
|
]
|
|
3782
3889
|
}
|
|
3783
|
-
),
|
|
3890
|
+
), K2 = ({
|
|
3784
3891
|
width: i = 14,
|
|
3785
3892
|
height: e = 14,
|
|
3786
3893
|
color: t = "#D0421B",
|
|
@@ -3828,7 +3935,7 @@ const m2 = ({
|
|
|
3828
3935
|
)
|
|
3829
3936
|
]
|
|
3830
3937
|
}
|
|
3831
|
-
),
|
|
3938
|
+
), $2 = ({
|
|
3832
3939
|
width: i = 20,
|
|
3833
3940
|
height: e = 20,
|
|
3834
3941
|
color: t = "#070739",
|
|
@@ -3858,7 +3965,7 @@ const m2 = ({
|
|
|
3858
3965
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
3859
3966
|
]
|
|
3860
3967
|
}
|
|
3861
|
-
),
|
|
3968
|
+
), P2 = ({
|
|
3862
3969
|
width: i = 20,
|
|
3863
3970
|
height: e = 20,
|
|
3864
3971
|
color: t = "#070739",
|
|
@@ -3896,7 +4003,7 @@ const m2 = ({
|
|
|
3896
4003
|
)
|
|
3897
4004
|
]
|
|
3898
4005
|
}
|
|
3899
|
-
),
|
|
4006
|
+
), F2 = ({
|
|
3900
4007
|
width: i = 9,
|
|
3901
4008
|
height: e = 5,
|
|
3902
4009
|
color: t = "#001E52",
|
|
@@ -3922,7 +4029,7 @@ const m2 = ({
|
|
|
3922
4029
|
}
|
|
3923
4030
|
)
|
|
3924
4031
|
}
|
|
3925
|
-
),
|
|
4032
|
+
), Y2 = ({
|
|
3926
4033
|
width: i = 20,
|
|
3927
4034
|
height: e = 20,
|
|
3928
4035
|
color: t = "#F2F2F7",
|
|
@@ -3951,7 +4058,7 @@ const m2 = ({
|
|
|
3951
4058
|
)
|
|
3952
4059
|
]
|
|
3953
4060
|
}
|
|
3954
|
-
),
|
|
4061
|
+
), U2 = ({
|
|
3955
4062
|
width: i = 20,
|
|
3956
4063
|
height: e = 20,
|
|
3957
4064
|
color: t = "#004ED7",
|
|
@@ -3980,7 +4087,7 @@ const m2 = ({
|
|
|
3980
4087
|
)
|
|
3981
4088
|
]
|
|
3982
4089
|
}
|
|
3983
|
-
),
|
|
4090
|
+
), z2 = ({
|
|
3984
4091
|
width: i = 10,
|
|
3985
4092
|
height: e = 10,
|
|
3986
4093
|
color: t = "#001E52",
|
|
@@ -4009,7 +4116,7 @@ const m2 = ({
|
|
|
4009
4116
|
)
|
|
4010
4117
|
]
|
|
4011
4118
|
}
|
|
4012
|
-
),
|
|
4119
|
+
), J2 = ({
|
|
4013
4120
|
width: i = 10,
|
|
4014
4121
|
height: e = 10,
|
|
4015
4122
|
color: t = "#001E52",
|
|
@@ -4046,9 +4153,9 @@ const m2 = ({
|
|
|
4046
4153
|
)
|
|
4047
4154
|
]
|
|
4048
4155
|
}
|
|
4049
|
-
),
|
|
4156
|
+
), q2 = ({
|
|
4050
4157
|
className: i,
|
|
4051
|
-
color: e =
|
|
4158
|
+
color: e = E.GREY_DARK_5,
|
|
4052
4159
|
height: t = 24,
|
|
4053
4160
|
width: s = 24,
|
|
4054
4161
|
onClick: n
|
|
@@ -4085,9 +4192,9 @@ const m2 = ({
|
|
|
4085
4192
|
)
|
|
4086
4193
|
]
|
|
4087
4194
|
}
|
|
4088
|
-
),
|
|
4195
|
+
), Q2 = ({
|
|
4089
4196
|
className: i,
|
|
4090
|
-
color: e =
|
|
4197
|
+
color: e = E.GREY_DARK_5,
|
|
4091
4198
|
height: t = 20,
|
|
4092
4199
|
width: s = 20,
|
|
4093
4200
|
onClick: n
|
|
@@ -4112,9 +4219,9 @@ const m2 = ({
|
|
|
4112
4219
|
}
|
|
4113
4220
|
)
|
|
4114
4221
|
}
|
|
4115
|
-
),
|
|
4222
|
+
), X2 = ({
|
|
4116
4223
|
className: i,
|
|
4117
|
-
color: e =
|
|
4224
|
+
color: e = E.GREY_DARK_5,
|
|
4118
4225
|
height: t = 20,
|
|
4119
4226
|
width: s = 20,
|
|
4120
4227
|
onClick: n
|
|
@@ -4139,9 +4246,9 @@ const m2 = ({
|
|
|
4139
4246
|
}
|
|
4140
4247
|
)
|
|
4141
4248
|
}
|
|
4142
|
-
),
|
|
4249
|
+
), e5 = ({
|
|
4143
4250
|
className: i,
|
|
4144
|
-
color: e =
|
|
4251
|
+
color: e = E.GREY_DARK_5,
|
|
4145
4252
|
height: t = 5,
|
|
4146
4253
|
width: s = 10,
|
|
4147
4254
|
onClick: n
|
|
@@ -4163,9 +4270,9 @@ const m2 = ({
|
|
|
4163
4270
|
}
|
|
4164
4271
|
)
|
|
4165
4272
|
}
|
|
4166
|
-
),
|
|
4273
|
+
), t5 = ({
|
|
4167
4274
|
className: i,
|
|
4168
|
-
color: e =
|
|
4275
|
+
color: e = E.GREY_DARK_5,
|
|
4169
4276
|
height: t = 5,
|
|
4170
4277
|
width: s = 10,
|
|
4171
4278
|
onClick: n
|
|
@@ -4188,9 +4295,9 @@ const m2 = ({
|
|
|
4188
4295
|
}
|
|
4189
4296
|
)
|
|
4190
4297
|
}
|
|
4191
|
-
),
|
|
4298
|
+
), i5 = ({
|
|
4192
4299
|
className: i,
|
|
4193
|
-
color: e =
|
|
4300
|
+
color: e = E.GREY_DARK_5,
|
|
4194
4301
|
height: t = 24,
|
|
4195
4302
|
width: s = 24,
|
|
4196
4303
|
onClick: n
|
|
@@ -4227,9 +4334,9 @@ const m2 = ({
|
|
|
4227
4334
|
)
|
|
4228
4335
|
]
|
|
4229
4336
|
}
|
|
4230
|
-
),
|
|
4337
|
+
), s5 = ({
|
|
4231
4338
|
className: i,
|
|
4232
|
-
color: e =
|
|
4339
|
+
color: e = E.GREY_DARK_5,
|
|
4233
4340
|
height: t = 24,
|
|
4234
4341
|
width: s = 24,
|
|
4235
4342
|
onClick: n
|
|
@@ -4266,9 +4373,9 @@ const m2 = ({
|
|
|
4266
4373
|
)
|
|
4267
4374
|
]
|
|
4268
4375
|
}
|
|
4269
|
-
),
|
|
4376
|
+
), n5 = ({
|
|
4270
4377
|
className: i,
|
|
4271
|
-
color: e =
|
|
4378
|
+
color: e = E.GREY_DARK_5,
|
|
4272
4379
|
height: t = 24,
|
|
4273
4380
|
width: s = 24,
|
|
4274
4381
|
onClick: n
|
|
@@ -4293,9 +4400,9 @@ const m2 = ({
|
|
|
4293
4400
|
}
|
|
4294
4401
|
)
|
|
4295
4402
|
}
|
|
4296
|
-
),
|
|
4403
|
+
), r5 = ({
|
|
4297
4404
|
className: i,
|
|
4298
|
-
color: e =
|
|
4405
|
+
color: e = E.GREY_DARK_5,
|
|
4299
4406
|
height: t = 24,
|
|
4300
4407
|
width: s = 24,
|
|
4301
4408
|
onClick: n
|
|
@@ -4352,9 +4459,9 @@ const m2 = ({
|
|
|
4352
4459
|
)
|
|
4353
4460
|
]
|
|
4354
4461
|
}
|
|
4355
|
-
),
|
|
4462
|
+
), o5 = ({
|
|
4356
4463
|
className: i,
|
|
4357
|
-
color: e =
|
|
4464
|
+
color: e = E.GREY_DARK_5,
|
|
4358
4465
|
height: t = 24,
|
|
4359
4466
|
width: s = 24,
|
|
4360
4467
|
onClick: n
|
|
@@ -4389,9 +4496,9 @@ const m2 = ({
|
|
|
4389
4496
|
)
|
|
4390
4497
|
]
|
|
4391
4498
|
}
|
|
4392
|
-
),
|
|
4499
|
+
), a5 = ({
|
|
4393
4500
|
className: i,
|
|
4394
|
-
color: e =
|
|
4501
|
+
color: e = E.GREY_DARK_3,
|
|
4395
4502
|
height: t = 14,
|
|
4396
4503
|
width: s = 14,
|
|
4397
4504
|
onClick: n
|
|
@@ -4426,9 +4533,9 @@ const m2 = ({
|
|
|
4426
4533
|
)
|
|
4427
4534
|
]
|
|
4428
4535
|
}
|
|
4429
|
-
),
|
|
4536
|
+
), l5 = ({
|
|
4430
4537
|
className: i,
|
|
4431
|
-
color: e =
|
|
4538
|
+
color: e = E.GREY_DARK_5,
|
|
4432
4539
|
height: t = 18,
|
|
4433
4540
|
onClick: s,
|
|
4434
4541
|
width: n = 18
|
|
@@ -4453,9 +4560,9 @@ const m2 = ({
|
|
|
4453
4560
|
}
|
|
4454
4561
|
)
|
|
4455
4562
|
}
|
|
4456
|
-
),
|
|
4563
|
+
), c5 = ({
|
|
4457
4564
|
className: i,
|
|
4458
|
-
color: e =
|
|
4565
|
+
color: e = E.GREY_DARK_5,
|
|
4459
4566
|
height: t = 24,
|
|
4460
4567
|
width: s = 24,
|
|
4461
4568
|
onClick: n
|
|
@@ -4505,9 +4612,9 @@ const m2 = ({
|
|
|
4505
4612
|
)
|
|
4506
4613
|
]
|
|
4507
4614
|
}
|
|
4508
|
-
),
|
|
4615
|
+
), h5 = ({
|
|
4509
4616
|
className: i,
|
|
4510
|
-
color: e =
|
|
4617
|
+
color: e = E.GREY_DARK_5,
|
|
4511
4618
|
height: t = 24,
|
|
4512
4619
|
width: s = 24,
|
|
4513
4620
|
onClick: n
|
|
@@ -4542,9 +4649,9 @@ const m2 = ({
|
|
|
4542
4649
|
)
|
|
4543
4650
|
]
|
|
4544
4651
|
}
|
|
4545
|
-
),
|
|
4652
|
+
), d5 = ({
|
|
4546
4653
|
className: i,
|
|
4547
|
-
color: e =
|
|
4654
|
+
color: e = E.NOTIFICATION_WARNING_DARK,
|
|
4548
4655
|
height: t = 37,
|
|
4549
4656
|
width: s = 36,
|
|
4550
4657
|
onClick: n
|
|
@@ -4581,9 +4688,9 @@ const m2 = ({
|
|
|
4581
4688
|
)
|
|
4582
4689
|
]
|
|
4583
4690
|
}
|
|
4584
|
-
),
|
|
4691
|
+
), g5 = ({
|
|
4585
4692
|
className: i,
|
|
4586
|
-
color: e =
|
|
4693
|
+
color: e = E.GREY_DARK_5,
|
|
4587
4694
|
height: t = 24,
|
|
4588
4695
|
width: s = 24,
|
|
4589
4696
|
onClick: n
|
|
@@ -4607,9 +4714,9 @@ const m2 = ({
|
|
|
4607
4714
|
}
|
|
4608
4715
|
)
|
|
4609
4716
|
}
|
|
4610
|
-
),
|
|
4717
|
+
), u5 = ({
|
|
4611
4718
|
className: i,
|
|
4612
|
-
color: e =
|
|
4719
|
+
color: e = E.GREY_DARK_5,
|
|
4613
4720
|
height: t = 24,
|
|
4614
4721
|
width: s = 24,
|
|
4615
4722
|
onClick: n
|
|
@@ -4646,9 +4753,9 @@ const m2 = ({
|
|
|
4646
4753
|
)
|
|
4647
4754
|
]
|
|
4648
4755
|
}
|
|
4649
|
-
),
|
|
4756
|
+
), C5 = ({
|
|
4650
4757
|
className: i,
|
|
4651
|
-
color: e =
|
|
4758
|
+
color: e = E.GREY_DARK_5,
|
|
4652
4759
|
height: t = 24,
|
|
4653
4760
|
width: s = 24,
|
|
4654
4761
|
onClick: n
|
|
@@ -4685,9 +4792,9 @@ const m2 = ({
|
|
|
4685
4792
|
)
|
|
4686
4793
|
]
|
|
4687
4794
|
}
|
|
4688
|
-
),
|
|
4795
|
+
), p5 = ({
|
|
4689
4796
|
className: i,
|
|
4690
|
-
color: e =
|
|
4797
|
+
color: e = E.GREY_DARK_5,
|
|
4691
4798
|
height: t = 24,
|
|
4692
4799
|
width: s = 24,
|
|
4693
4800
|
onClick: n
|
|
@@ -4754,9 +4861,9 @@ const m2 = ({
|
|
|
4754
4861
|
)
|
|
4755
4862
|
]
|
|
4756
4863
|
}
|
|
4757
|
-
),
|
|
4864
|
+
), f5 = ({
|
|
4758
4865
|
className: i,
|
|
4759
|
-
color: e =
|
|
4866
|
+
color: e = E.GREY_DARK_5,
|
|
4760
4867
|
height: t = 24,
|
|
4761
4868
|
width: s = 24,
|
|
4762
4869
|
onClick: n
|
|
@@ -4811,9 +4918,9 @@ const m2 = ({
|
|
|
4811
4918
|
)
|
|
4812
4919
|
]
|
|
4813
4920
|
}
|
|
4814
|
-
),
|
|
4921
|
+
), m5 = ({
|
|
4815
4922
|
className: i,
|
|
4816
|
-
color: e =
|
|
4923
|
+
color: e = E.GREY_DARK_5,
|
|
4817
4924
|
height: t = 24,
|
|
4818
4925
|
width: s = 24,
|
|
4819
4926
|
onClick: n
|
|
@@ -4850,9 +4957,9 @@ const m2 = ({
|
|
|
4850
4957
|
)
|
|
4851
4958
|
]
|
|
4852
4959
|
}
|
|
4853
|
-
),
|
|
4960
|
+
), w5 = ({
|
|
4854
4961
|
className: i,
|
|
4855
|
-
color: e =
|
|
4962
|
+
color: e = E.GREY_DARK_5,
|
|
4856
4963
|
height: t = 24,
|
|
4857
4964
|
width: s = 24,
|
|
4858
4965
|
onClick: n
|
|
@@ -4899,9 +5006,9 @@ const m2 = ({
|
|
|
4899
5006
|
)
|
|
4900
5007
|
]
|
|
4901
5008
|
}
|
|
4902
|
-
),
|
|
5009
|
+
), k5 = ({
|
|
4903
5010
|
className: i,
|
|
4904
|
-
color: e =
|
|
5011
|
+
color: e = E.GREY_DARK_5,
|
|
4905
5012
|
height: t = 24,
|
|
4906
5013
|
width: s = 24,
|
|
4907
5014
|
onClick: n
|
|
@@ -4926,9 +5033,9 @@ const m2 = ({
|
|
|
4926
5033
|
}
|
|
4927
5034
|
)
|
|
4928
5035
|
}
|
|
4929
|
-
),
|
|
5036
|
+
), L5 = ({
|
|
4930
5037
|
className: i,
|
|
4931
|
-
color: e =
|
|
5038
|
+
color: e = E.GREY_DARK_5,
|
|
4932
5039
|
height: t = 20,
|
|
4933
5040
|
width: s = 20,
|
|
4934
5041
|
onClick: n
|
|
@@ -4943,7 +5050,7 @@ const m2 = ({
|
|
|
4943
5050
|
fill: "none",
|
|
4944
5051
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4945
5052
|
children: [
|
|
4946
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
5053
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: E.GREY_LIGHT_2 }),
|
|
4947
5054
|
/* @__PURE__ */ r(
|
|
4948
5055
|
"path",
|
|
4949
5056
|
{
|
|
@@ -4955,7 +5062,7 @@ const m2 = ({
|
|
|
4955
5062
|
)
|
|
4956
5063
|
]
|
|
4957
5064
|
}
|
|
4958
|
-
),
|
|
5065
|
+
), v5 = ({
|
|
4959
5066
|
className: i,
|
|
4960
5067
|
color: e = "#001E52",
|
|
4961
5068
|
height: t = 24,
|
|
@@ -4981,7 +5088,7 @@ const m2 = ({
|
|
|
4981
5088
|
}
|
|
4982
5089
|
)
|
|
4983
5090
|
}
|
|
4984
|
-
),
|
|
5091
|
+
), N5 = ({
|
|
4985
5092
|
className: i,
|
|
4986
5093
|
color: e = "#131314",
|
|
4987
5094
|
height: t = 20,
|
|
@@ -5009,7 +5116,7 @@ const m2 = ({
|
|
|
5009
5116
|
}
|
|
5010
5117
|
)
|
|
5011
5118
|
}
|
|
5012
|
-
),
|
|
5119
|
+
), x5 = ({
|
|
5013
5120
|
className: i,
|
|
5014
5121
|
color: e = "#001E52",
|
|
5015
5122
|
height: t = 24,
|
|
@@ -5047,7 +5154,7 @@ const m2 = ({
|
|
|
5047
5154
|
)
|
|
5048
5155
|
] }) })
|
|
5049
5156
|
}
|
|
5050
|
-
),
|
|
5157
|
+
), R5 = ({
|
|
5051
5158
|
width: i = 20,
|
|
5052
5159
|
height: e = 20,
|
|
5053
5160
|
color: t = "#001E52",
|
|
@@ -5103,7 +5210,7 @@ const m2 = ({
|
|
|
5103
5210
|
}
|
|
5104
5211
|
)
|
|
5105
5212
|
}
|
|
5106
|
-
),
|
|
5213
|
+
), M5 = ({
|
|
5107
5214
|
width: i = 24,
|
|
5108
5215
|
height: e = 24,
|
|
5109
5216
|
color: t = "#131314",
|
|
@@ -5136,10 +5243,10 @@ const m2 = ({
|
|
|
5136
5243
|
)
|
|
5137
5244
|
]
|
|
5138
5245
|
}
|
|
5139
|
-
),
|
|
5246
|
+
), b5 = ({
|
|
5140
5247
|
width: i = 24,
|
|
5141
5248
|
height: e = 24,
|
|
5142
|
-
color: t =
|
|
5249
|
+
color: t = E.GREY_DARK_2,
|
|
5143
5250
|
className: s,
|
|
5144
5251
|
onClick: n
|
|
5145
5252
|
}) => /* @__PURE__ */ C(
|
|
@@ -5175,10 +5282,10 @@ const m2 = ({
|
|
|
5175
5282
|
)
|
|
5176
5283
|
]
|
|
5177
5284
|
}
|
|
5178
|
-
),
|
|
5285
|
+
), y5 = ({
|
|
5179
5286
|
width: i = 24,
|
|
5180
5287
|
height: e = 24,
|
|
5181
|
-
color: t =
|
|
5288
|
+
color: t = E.GREY_DARK_2,
|
|
5182
5289
|
className: s,
|
|
5183
5290
|
onClick: n
|
|
5184
5291
|
}) => /* @__PURE__ */ r(
|
|
@@ -5202,10 +5309,10 @@ const m2 = ({
|
|
|
5202
5309
|
}
|
|
5203
5310
|
)
|
|
5204
5311
|
}
|
|
5205
|
-
),
|
|
5312
|
+
), E5 = ({
|
|
5206
5313
|
width: i = 24,
|
|
5207
5314
|
height: e = 24,
|
|
5208
|
-
color: t =
|
|
5315
|
+
color: t = E.GREY_DARK_2,
|
|
5209
5316
|
className: s,
|
|
5210
5317
|
onClick: n
|
|
5211
5318
|
}) => /* @__PURE__ */ C(
|
|
@@ -5242,10 +5349,10 @@ const m2 = ({
|
|
|
5242
5349
|
)
|
|
5243
5350
|
]
|
|
5244
5351
|
}
|
|
5245
|
-
),
|
|
5352
|
+
), _5 = ({
|
|
5246
5353
|
width: i = 24,
|
|
5247
5354
|
height: e = 24,
|
|
5248
|
-
color: t =
|
|
5355
|
+
color: t = E.GREY_DARK_2,
|
|
5249
5356
|
className: s,
|
|
5250
5357
|
onClick: n
|
|
5251
5358
|
}) => /* @__PURE__ */ r(
|
|
@@ -5269,10 +5376,10 @@ const m2 = ({
|
|
|
5269
5376
|
}
|
|
5270
5377
|
)
|
|
5271
5378
|
}
|
|
5272
|
-
),
|
|
5379
|
+
), H5 = ({
|
|
5273
5380
|
width: i = 24,
|
|
5274
5381
|
height: e = 24,
|
|
5275
|
-
color: t =
|
|
5382
|
+
color: t = E.GREY_DARK_2,
|
|
5276
5383
|
className: s,
|
|
5277
5384
|
onClick: n
|
|
5278
5385
|
}) => /* @__PURE__ */ r(
|
|
@@ -5296,7 +5403,7 @@ const m2 = ({
|
|
|
5296
5403
|
}
|
|
5297
5404
|
)
|
|
5298
5405
|
}
|
|
5299
|
-
),
|
|
5406
|
+
), I5 = ({
|
|
5300
5407
|
width: i = 20,
|
|
5301
5408
|
height: e = 20,
|
|
5302
5409
|
color: t = "#001E52",
|
|
@@ -5322,256 +5429,258 @@ const m2 = ({
|
|
|
5322
5429
|
}
|
|
5323
5430
|
)
|
|
5324
5431
|
}
|
|
5325
|
-
),
|
|
5432
|
+
), O5 = ({
|
|
5326
5433
|
name: i,
|
|
5327
5434
|
width: e,
|
|
5328
5435
|
height: t,
|
|
5329
5436
|
color: s,
|
|
5330
5437
|
className: n,
|
|
5331
|
-
disabled:
|
|
5438
|
+
disabled: a = !1,
|
|
5332
5439
|
onClick: h
|
|
5333
5440
|
}) => {
|
|
5334
|
-
const [
|
|
5335
|
-
return
|
|
5441
|
+
const [o, g] = T(n), { theme: d } = r1(ge), l = a ? d && d === "dark" ? E.GREY_LIGHT_4 : E.GREY_DARK_1 : s, c = a ? void 0 : h;
|
|
5442
|
+
return j(() => {
|
|
5336
5443
|
if (n) {
|
|
5337
|
-
c && !
|
|
5444
|
+
c && !a && g(`${n} clickable`);
|
|
5338
5445
|
return;
|
|
5339
5446
|
}
|
|
5340
|
-
c && !
|
|
5341
|
-
}, [c, n,
|
|
5447
|
+
c && !a && g("clickable");
|
|
5448
|
+
}, [c, n, a]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
5342
5449
|
switch (i) {
|
|
5343
5450
|
case "nextIcon":
|
|
5344
|
-
return
|
|
5451
|
+
return Q2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5345
5452
|
case "prevIcon":
|
|
5346
|
-
return
|
|
5453
|
+
return X2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5347
5454
|
case "arrowDown":
|
|
5348
|
-
return
|
|
5455
|
+
return w2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5349
5456
|
case "info":
|
|
5350
|
-
return
|
|
5457
|
+
return k2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5351
5458
|
case "arrowRight":
|
|
5352
|
-
return
|
|
5459
|
+
return L2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5353
5460
|
case "calendar":
|
|
5354
|
-
return
|
|
5461
|
+
return v2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5355
5462
|
case "ok":
|
|
5356
|
-
return
|
|
5463
|
+
return N2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5357
5464
|
case "cancel":
|
|
5358
|
-
return
|
|
5465
|
+
return x2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5359
5466
|
case "add":
|
|
5360
|
-
return
|
|
5467
|
+
return R2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5361
5468
|
case "list":
|
|
5362
|
-
return
|
|
5469
|
+
return M2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5363
5470
|
case "dragAndDrop":
|
|
5364
|
-
return
|
|
5471
|
+
return b2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5365
5472
|
case "filter":
|
|
5366
|
-
return
|
|
5473
|
+
return y2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5367
5474
|
case "attention":
|
|
5368
|
-
return
|
|
5475
|
+
return E2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5369
5476
|
case "users":
|
|
5370
|
-
return
|
|
5477
|
+
return _2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5371
5478
|
case "mySkillsMatrix":
|
|
5372
|
-
return
|
|
5479
|
+
return H2({
|
|
5373
5480
|
width: e,
|
|
5374
5481
|
height: t,
|
|
5375
5482
|
color: l,
|
|
5376
|
-
className:
|
|
5483
|
+
className: o,
|
|
5377
5484
|
onClick: c
|
|
5378
5485
|
});
|
|
5379
5486
|
case "skills":
|
|
5380
|
-
return
|
|
5487
|
+
return I2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5381
5488
|
case "skillsMatrices":
|
|
5382
|
-
return
|
|
5489
|
+
return O2({
|
|
5383
5490
|
width: e,
|
|
5384
5491
|
height: t,
|
|
5385
5492
|
color: l,
|
|
5386
|
-
className:
|
|
5493
|
+
className: o,
|
|
5387
5494
|
onClick: c
|
|
5388
5495
|
});
|
|
5389
5496
|
case "history":
|
|
5390
|
-
return
|
|
5497
|
+
return S2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5391
5498
|
case "logOut":
|
|
5392
|
-
return
|
|
5499
|
+
return V2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5393
5500
|
case "settings":
|
|
5394
|
-
return
|
|
5501
|
+
return A2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5395
5502
|
case "trash":
|
|
5396
|
-
return
|
|
5503
|
+
return T2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5397
5504
|
case "settings4":
|
|
5398
|
-
return
|
|
5505
|
+
return Z2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5399
5506
|
case "success":
|
|
5400
|
-
return D2({ width: e, height: t, color: l, className:
|
|
5507
|
+
return D2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5508
|
+
case "checkCircle":
|
|
5509
|
+
return B2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5401
5510
|
case "errorSmall":
|
|
5402
|
-
return
|
|
5511
|
+
return j2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5403
5512
|
case "infoMedium":
|
|
5404
|
-
return
|
|
5513
|
+
return W2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5405
5514
|
case "attentionMedium":
|
|
5406
|
-
return
|
|
5515
|
+
return G2({
|
|
5407
5516
|
width: e,
|
|
5408
5517
|
height: t,
|
|
5409
5518
|
color: l,
|
|
5410
|
-
className:
|
|
5519
|
+
className: o,
|
|
5411
5520
|
onClick: c
|
|
5412
5521
|
});
|
|
5413
5522
|
case "errorMedium":
|
|
5414
|
-
return
|
|
5523
|
+
return K2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5415
5524
|
case "visibilityIcon":
|
|
5416
|
-
return
|
|
5525
|
+
return $2({
|
|
5417
5526
|
width: e,
|
|
5418
5527
|
height: t,
|
|
5419
5528
|
color: l,
|
|
5420
|
-
className:
|
|
5529
|
+
className: o,
|
|
5421
5530
|
onClick: c
|
|
5422
5531
|
});
|
|
5423
5532
|
case "visibilityOffIcon":
|
|
5424
|
-
return
|
|
5533
|
+
return P2({
|
|
5425
5534
|
width: e,
|
|
5426
5535
|
height: t,
|
|
5427
5536
|
color: l,
|
|
5428
|
-
className:
|
|
5537
|
+
className: o,
|
|
5429
5538
|
onClick: c
|
|
5430
5539
|
});
|
|
5431
5540
|
case "selectArrowIcon":
|
|
5432
|
-
return
|
|
5541
|
+
return F2({
|
|
5433
5542
|
width: e,
|
|
5434
5543
|
height: t,
|
|
5435
5544
|
color: l,
|
|
5436
|
-
className:
|
|
5545
|
+
className: o,
|
|
5437
5546
|
onClick: c
|
|
5438
5547
|
});
|
|
5439
5548
|
case "expandArrowIcon":
|
|
5440
|
-
return
|
|
5549
|
+
return Y2({
|
|
5441
5550
|
width: e,
|
|
5442
5551
|
height: t,
|
|
5443
5552
|
color: l,
|
|
5444
|
-
className:
|
|
5553
|
+
className: o,
|
|
5445
5554
|
onClick: c
|
|
5446
5555
|
});
|
|
5447
5556
|
case "expandActiveArrowIcon":
|
|
5448
|
-
return
|
|
5557
|
+
return U2({
|
|
5449
5558
|
width: e,
|
|
5450
5559
|
height: t,
|
|
5451
5560
|
color: l,
|
|
5452
|
-
className:
|
|
5561
|
+
className: o,
|
|
5453
5562
|
onClick: c
|
|
5454
5563
|
});
|
|
5455
5564
|
case "sortUp":
|
|
5456
|
-
return
|
|
5565
|
+
return z2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5457
5566
|
case "sortDown":
|
|
5458
|
-
return
|
|
5567
|
+
return J2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5459
5568
|
case "search":
|
|
5460
|
-
return
|
|
5569
|
+
return q2({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5461
5570
|
case "arrowUpFilled":
|
|
5462
|
-
return
|
|
5571
|
+
return t5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5463
5572
|
case "arrowDownFilled":
|
|
5464
|
-
return
|
|
5573
|
+
return e5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5465
5574
|
case "link":
|
|
5466
|
-
return
|
|
5575
|
+
return i5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5467
5576
|
case "telegram":
|
|
5468
|
-
return
|
|
5577
|
+
return n5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5469
5578
|
case "mail":
|
|
5470
|
-
return
|
|
5579
|
+
return o5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5471
5580
|
case "github":
|
|
5472
|
-
return
|
|
5581
|
+
return s5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5473
5582
|
case "linkedIn":
|
|
5474
|
-
return
|
|
5583
|
+
return r5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5475
5584
|
case "emptyStateIcon":
|
|
5476
|
-
return
|
|
5585
|
+
return a5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5477
5586
|
case "filtersIcon":
|
|
5478
|
-
return
|
|
5587
|
+
return l5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5479
5588
|
case "dotMenuIcon":
|
|
5480
|
-
return
|
|
5589
|
+
return c5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5481
5590
|
case "plusCircle":
|
|
5482
|
-
return
|
|
5591
|
+
return h5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5483
5592
|
case "warning":
|
|
5484
|
-
return
|
|
5593
|
+
return d5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5485
5594
|
case "back":
|
|
5486
|
-
return
|
|
5595
|
+
return g5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5487
5596
|
case "bell":
|
|
5488
|
-
return
|
|
5597
|
+
return u5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5489
5598
|
case "contract":
|
|
5490
|
-
return
|
|
5599
|
+
return p5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5491
5600
|
case "trash2":
|
|
5492
|
-
return
|
|
5601
|
+
return C5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5493
5602
|
case "resourceManager":
|
|
5494
|
-
return
|
|
5603
|
+
return f5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5495
5604
|
case "settings2":
|
|
5496
|
-
return
|
|
5605
|
+
return m5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5497
5606
|
case "image":
|
|
5498
|
-
return
|
|
5607
|
+
return w5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5499
5608
|
case "edit":
|
|
5500
|
-
return
|
|
5609
|
+
return k5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5501
5610
|
case "filledArrowRight":
|
|
5502
|
-
return
|
|
5611
|
+
return L5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5503
5612
|
case "burgerMenu":
|
|
5504
|
-
return
|
|
5613
|
+
return v5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5505
5614
|
case "signOut":
|
|
5506
|
-
return
|
|
5615
|
+
return N5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5507
5616
|
case "refresh":
|
|
5508
|
-
return
|
|
5617
|
+
return x5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5509
5618
|
case "projects":
|
|
5510
|
-
return
|
|
5619
|
+
return R5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5511
5620
|
case "profile":
|
|
5512
|
-
return
|
|
5621
|
+
return I5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5513
5622
|
case "exit":
|
|
5514
|
-
return
|
|
5623
|
+
return M5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5515
5624
|
case "client":
|
|
5516
|
-
return
|
|
5625
|
+
return b5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5517
5626
|
case "calendar2":
|
|
5518
|
-
return
|
|
5627
|
+
return y5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5519
5628
|
case "openPointCircle":
|
|
5520
|
-
return
|
|
5629
|
+
return E5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5521
5630
|
case "community":
|
|
5522
|
-
return
|
|
5631
|
+
return _5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5523
5632
|
case "docs":
|
|
5524
|
-
return
|
|
5633
|
+
return H5({ width: e, height: t, color: l, className: o, onClick: c });
|
|
5525
5634
|
default:
|
|
5526
5635
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
5527
5636
|
}
|
|
5528
5637
|
})() });
|
|
5529
5638
|
};
|
|
5530
5639
|
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
|
|
5640
|
+
const S5 = d1({
|
|
5532
5641
|
locale: "en",
|
|
5533
5642
|
theme: "light"
|
|
5534
5643
|
});
|
|
5535
|
-
|
|
5644
|
+
S5.Provider;
|
|
5536
5645
|
const ue = ({
|
|
5537
5646
|
children: i,
|
|
5538
5647
|
width: e,
|
|
5539
5648
|
size: t = "small",
|
|
5540
5649
|
onClose: s,
|
|
5541
5650
|
closable: n = !0,
|
|
5542
|
-
disabled:
|
|
5651
|
+
disabled: a = !1
|
|
5543
5652
|
}) => {
|
|
5544
|
-
const h = t === "small" ? 10 : 12.5,
|
|
5545
|
-
|
|
5653
|
+
const h = t === "small" ? 10 : 12.5, o = () => {
|
|
5654
|
+
a || s == null || s();
|
|
5546
5655
|
};
|
|
5547
5656
|
return /* @__PURE__ */ r(
|
|
5548
5657
|
ye,
|
|
5549
5658
|
{
|
|
5550
|
-
className: `snmt-tag ${t} ${
|
|
5659
|
+
className: `snmt-tag ${t} ${a ? "disabled" : ""}`,
|
|
5551
5660
|
closeIcon: /* @__PURE__ */ r(
|
|
5552
|
-
|
|
5661
|
+
O5,
|
|
5553
5662
|
{
|
|
5554
5663
|
name: "errorSmall",
|
|
5555
|
-
color:
|
|
5664
|
+
color: a ? f1.GREY_DARK_1 : f1.GREY_DARK_2,
|
|
5556
5665
|
width: h,
|
|
5557
5666
|
height: h,
|
|
5558
|
-
onClick:
|
|
5667
|
+
onClick: o
|
|
5559
5668
|
}
|
|
5560
5669
|
),
|
|
5561
5670
|
bordered: !1,
|
|
5562
5671
|
style: { width: e ?? "fit-content" },
|
|
5563
5672
|
closable: n,
|
|
5564
5673
|
children: typeof i == "string" ? /* @__PURE__ */ r(
|
|
5565
|
-
|
|
5674
|
+
m2,
|
|
5566
5675
|
{
|
|
5567
5676
|
variant: t === "small" ? "body4" : "body2",
|
|
5568
|
-
color:
|
|
5677
|
+
color: a ? f1.GREY_DARK_2 : f1.GREY_DARK_5,
|
|
5569
5678
|
children: i
|
|
5570
5679
|
}
|
|
5571
5680
|
) : i
|
|
5572
5681
|
}
|
|
5573
5682
|
);
|
|
5574
|
-
},
|
|
5683
|
+
}, V5 = ({ children: i, title: e, arrow: t = !0, open: s, placement: n = "top" }) => /* @__PURE__ */ r(
|
|
5575
5684
|
ae,
|
|
5576
5685
|
{
|
|
5577
5686
|
overlayClassName: "snmt-tooltip",
|
|
@@ -5581,55 +5690,58 @@ const ue = ({
|
|
|
5581
5690
|
placement: n,
|
|
5582
5691
|
children: i
|
|
5583
5692
|
}
|
|
5584
|
-
), { Title:
|
|
5693
|
+
), { Title: A5, Text: T5 } = le, Z5 = {
|
|
5585
5694
|
h1: 1,
|
|
5586
5695
|
h2: 2,
|
|
5587
5696
|
h3: 3,
|
|
5588
5697
|
h4: 4
|
|
5589
|
-
},
|
|
5698
|
+
}, D5 = k1(
|
|
5590
5699
|
({
|
|
5591
5700
|
align: i = "inherit",
|
|
5592
5701
|
variant: e = "body1",
|
|
5593
5702
|
color: t,
|
|
5594
5703
|
children: s,
|
|
5595
5704
|
onClick: n,
|
|
5596
|
-
collapsed:
|
|
5705
|
+
collapsed: a,
|
|
5597
5706
|
whiteSpace: h = "normal",
|
|
5598
5707
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5599
|
-
trim:
|
|
5600
|
-
},
|
|
5601
|
-
const
|
|
5602
|
-
_1(
|
|
5708
|
+
trim: o = !1
|
|
5709
|
+
}, g) => {
|
|
5710
|
+
const d = q(null);
|
|
5711
|
+
_1(g, () => d.current);
|
|
5603
5712
|
const [l, c] = T(!1);
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5713
|
+
j(() => {
|
|
5714
|
+
var m;
|
|
5715
|
+
if (!o) return;
|
|
5716
|
+
const _ = () => {
|
|
5717
|
+
d.current && c(d.current.scrollWidth > d.current.clientWidth);
|
|
5718
|
+
};
|
|
5719
|
+
_();
|
|
5720
|
+
const N = new ResizeObserver(_);
|
|
5721
|
+
return d.current && N.observe(d.current), (m = d.current) != null && m.parentElement && N.observe(d.current.parentElement), () => {
|
|
5722
|
+
N.disconnect();
|
|
5611
5723
|
};
|
|
5612
|
-
}, [
|
|
5724
|
+
}, [o]);
|
|
5613
5725
|
const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5614
5726
|
let p = `snmt-typography snmt-typography-${e}`;
|
|
5615
|
-
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`),
|
|
5727
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), a && (p += " collapsed"), o && (p += " collapsed");
|
|
5616
5728
|
const w = {
|
|
5617
5729
|
className: p,
|
|
5618
|
-
style: { color: t, whiteSpace:
|
|
5730
|
+
style: { color: t, whiteSpace: o ? "nowrap" : h, display: o ? "block" : "" },
|
|
5619
5731
|
onClick: n,
|
|
5620
|
-
ref:
|
|
5621
|
-
}, k = u ? /* @__PURE__ */ r(
|
|
5622
|
-
return
|
|
5732
|
+
ref: d
|
|
5733
|
+
}, k = u ? /* @__PURE__ */ r(A5, { level: Z5[e], ...w, children: s }) : /* @__PURE__ */ r(T5, { ...w, children: s });
|
|
5734
|
+
return o && l ? /* @__PURE__ */ r(V5, { placement: "top", title: s, children: k }) : k;
|
|
5623
5735
|
}
|
|
5624
|
-
),
|
|
5736
|
+
), B5 = ({
|
|
5625
5737
|
children: i,
|
|
5626
5738
|
content: e,
|
|
5627
5739
|
isOpen: t,
|
|
5628
5740
|
setIsOpen: s,
|
|
5629
5741
|
placement: n = "topRight",
|
|
5630
|
-
noPadding:
|
|
5742
|
+
noPadding: a = !1
|
|
5631
5743
|
}) => {
|
|
5632
|
-
const [h,
|
|
5744
|
+
const [h, o] = T(!1);
|
|
5633
5745
|
return /* @__PURE__ */ r(
|
|
5634
5746
|
Ee,
|
|
5635
5747
|
{
|
|
@@ -5637,16 +5749,16 @@ const ue = ({
|
|
|
5637
5749
|
arrow: !1,
|
|
5638
5750
|
placement: n,
|
|
5639
5751
|
trigger: "click",
|
|
5640
|
-
overlayClassName: `snmt-popover ${
|
|
5752
|
+
overlayClassName: `snmt-popover ${a ? "" : "padding"}`,
|
|
5641
5753
|
open: t ?? h,
|
|
5642
|
-
onOpenChange: (
|
|
5643
|
-
|
|
5754
|
+
onOpenChange: (g) => {
|
|
5755
|
+
o(g), s == null || s(g);
|
|
5644
5756
|
},
|
|
5645
5757
|
children: /* @__PURE__ */ r("div", { className: "wrapper", children: i })
|
|
5646
5758
|
}
|
|
5647
5759
|
);
|
|
5648
5760
|
};
|
|
5649
|
-
var
|
|
5761
|
+
var j5 = { exports: {} };
|
|
5650
5762
|
(function(i, e) {
|
|
5651
5763
|
(function(t, s) {
|
|
5652
5764
|
i.exports = s();
|
|
@@ -5656,27 +5768,27 @@ var Bi = { exports: {} };
|
|
|
5656
5768
|
return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
|
|
5657
5769
|
} };
|
|
5658
5770
|
});
|
|
5659
|
-
})(
|
|
5660
|
-
const
|
|
5771
|
+
})(j5);
|
|
5772
|
+
const W5 = ({
|
|
5661
5773
|
values: i,
|
|
5662
5774
|
onTagClose: e,
|
|
5663
5775
|
maxWidth: t,
|
|
5664
5776
|
closable: s = !0,
|
|
5665
5777
|
disabled: n,
|
|
5666
|
-
options:
|
|
5778
|
+
options: a,
|
|
5667
5779
|
extraOptions: h
|
|
5668
5780
|
}) => {
|
|
5669
|
-
const { locale:
|
|
5670
|
-
if (
|
|
5781
|
+
const { locale: o } = r1(D1), { t: g } = Je("common", { lng: o }), [d, l] = T(!1);
|
|
5782
|
+
if (j(() => {
|
|
5671
5783
|
i.length || l(!1);
|
|
5672
5784
|
}, [i]), !i.length)
|
|
5673
5785
|
return null;
|
|
5674
5786
|
const c = (u) => {
|
|
5675
5787
|
var p, w;
|
|
5676
|
-
return ((p =
|
|
5788
|
+
return ((p = a == null ? void 0 : a.find((k) => k.value === u)) == null ? void 0 : p.label) || ((w = h == null ? void 0 : h.find((k) => k.value === u)) == null ? void 0 : w.label) || u;
|
|
5677
5789
|
};
|
|
5678
5790
|
return /* @__PURE__ */ C(
|
|
5679
|
-
|
|
5791
|
+
B5,
|
|
5680
5792
|
{
|
|
5681
5793
|
content: (
|
|
5682
5794
|
// 90: paddings + margins + gaps and so on
|
|
@@ -5692,12 +5804,12 @@ const ji = ({
|
|
|
5692
5804
|
)) }) })
|
|
5693
5805
|
),
|
|
5694
5806
|
placement: "bottomRight",
|
|
5695
|
-
isOpen:
|
|
5807
|
+
isOpen: d,
|
|
5696
5808
|
setIsOpen: l,
|
|
5697
5809
|
children: [
|
|
5698
5810
|
i.length,
|
|
5699
5811
|
" ",
|
|
5700
|
-
|
|
5812
|
+
g("more")
|
|
5701
5813
|
]
|
|
5702
5814
|
}
|
|
5703
5815
|
);
|
|
@@ -5716,11 +5828,11 @@ const ji = ({
|
|
|
5716
5828
|
placeholder: t,
|
|
5717
5829
|
mode: s,
|
|
5718
5830
|
search: n = !1,
|
|
5719
|
-
options:
|
|
5831
|
+
options: a,
|
|
5720
5832
|
width: h,
|
|
5721
|
-
disabled:
|
|
5722
|
-
required:
|
|
5723
|
-
clearable:
|
|
5833
|
+
disabled: o = !1,
|
|
5834
|
+
required: g = !1,
|
|
5835
|
+
clearable: d = !1,
|
|
5724
5836
|
scrollThresholdValue: l = 50,
|
|
5725
5837
|
onSearchChange: c,
|
|
5726
5838
|
onDropdownVisibleChange: u,
|
|
@@ -5728,21 +5840,21 @@ const ji = ({
|
|
|
5728
5840
|
onPopupScroll: w,
|
|
5729
5841
|
id: k,
|
|
5730
5842
|
extraOptions: m,
|
|
5731
|
-
dropdownRender:
|
|
5732
|
-
optionRender:
|
|
5843
|
+
dropdownRender: _,
|
|
5844
|
+
optionRender: N,
|
|
5733
5845
|
isLoading: S,
|
|
5734
5846
|
readOnly: f,
|
|
5735
|
-
error:
|
|
5736
|
-
},
|
|
5737
|
-
const [v, P] = T(!1), [J, F] = T(!1), [H,
|
|
5738
|
-
|
|
5847
|
+
error: x
|
|
5848
|
+
}, R) => {
|
|
5849
|
+
const [v, P] = T(!1), [J, F] = T(!1), [H, D] = T(!0), [I, V] = T(i), Z = q(null);
|
|
5850
|
+
j(() => {
|
|
5739
5851
|
V(i);
|
|
5740
5852
|
}, [i]);
|
|
5741
5853
|
const W = (L) => {
|
|
5742
5854
|
P(L), u && u(L);
|
|
5743
5855
|
}, U = (L, b) => {
|
|
5744
|
-
var
|
|
5745
|
-
return !!((
|
|
5856
|
+
var B;
|
|
5857
|
+
return !!((B = b == null ? void 0 : b.label) != null && B.toString().toLowerCase().includes(L.toLowerCase()));
|
|
5746
5858
|
}, O = () => {
|
|
5747
5859
|
F(!0);
|
|
5748
5860
|
}, K = () => {
|
|
@@ -5750,8 +5862,8 @@ const ji = ({
|
|
|
5750
5862
|
}, G = $(
|
|
5751
5863
|
(L) => {
|
|
5752
5864
|
if (V(L), s) {
|
|
5753
|
-
const
|
|
5754
|
-
e == null || e(
|
|
5865
|
+
const B = L;
|
|
5866
|
+
e == null || e(B);
|
|
5755
5867
|
return;
|
|
5756
5868
|
}
|
|
5757
5869
|
const b = L;
|
|
@@ -5759,16 +5871,16 @@ const ji = ({
|
|
|
5759
5871
|
},
|
|
5760
5872
|
[s, e]
|
|
5761
5873
|
), e1 = $(() => {
|
|
5762
|
-
if (!(f ||
|
|
5874
|
+
if (!(f || o)) {
|
|
5763
5875
|
if (s) {
|
|
5764
5876
|
G([]);
|
|
5765
5877
|
return;
|
|
5766
5878
|
}
|
|
5767
5879
|
G("");
|
|
5768
5880
|
}
|
|
5769
|
-
}, [
|
|
5881
|
+
}, [o, G, s, f]), t1 = $(
|
|
5770
5882
|
(L) => {
|
|
5771
|
-
const b = I.filter((
|
|
5883
|
+
const b = I.filter((B) => B !== L);
|
|
5772
5884
|
G(b), V(b);
|
|
5773
5885
|
},
|
|
5774
5886
|
[G, I]
|
|
@@ -5786,32 +5898,32 @@ const ji = ({
|
|
|
5786
5898
|
b.scrollTop + b.offsetHeight >= b.scrollHeight - l && (p == null || p(!0)), w && await w(L);
|
|
5787
5899
|
}, o1 = $(
|
|
5788
5900
|
(L) => {
|
|
5789
|
-
var b,
|
|
5790
|
-
return ((b =
|
|
5901
|
+
var b, B;
|
|
5902
|
+
return ((b = a.find((a1) => a1.value === L)) == null ? void 0 : b.label) || ((B = m == null ? void 0 : m.find(
|
|
5791
5903
|
(a1) => a1.value === L
|
|
5792
|
-
)) == null ? void 0 :
|
|
5904
|
+
)) == null ? void 0 : B.label) || L;
|
|
5793
5905
|
},
|
|
5794
|
-
[m,
|
|
5906
|
+
[m, a]
|
|
5795
5907
|
), N1 = $(
|
|
5796
5908
|
(L) => {
|
|
5797
5909
|
var b;
|
|
5798
5910
|
return /* @__PURE__ */ r(
|
|
5799
|
-
|
|
5911
|
+
W5,
|
|
5800
5912
|
{
|
|
5801
5913
|
values: L,
|
|
5802
5914
|
onTagClose: t1,
|
|
5803
|
-
maxWidth: ((b =
|
|
5804
|
-
disabled:
|
|
5915
|
+
maxWidth: ((b = Z.current) == null ? void 0 : b.clientWidth) || 0,
|
|
5916
|
+
disabled: o,
|
|
5805
5917
|
closable: !f,
|
|
5806
|
-
options:
|
|
5918
|
+
options: a,
|
|
5807
5919
|
extraOptions: m
|
|
5808
5920
|
}
|
|
5809
5921
|
);
|
|
5810
5922
|
},
|
|
5811
|
-
[
|
|
5923
|
+
[o, m, t1, a, f]
|
|
5812
5924
|
), A = $(
|
|
5813
|
-
({ label: L, value: b, mode:
|
|
5814
|
-
[
|
|
5925
|
+
({ 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) }) }),
|
|
5926
|
+
[o, o1, t1, g1]
|
|
5815
5927
|
), z = Array.isArray(I) && I.length > 0 || !!I && typeof I == "string" && I.trim() !== "";
|
|
5816
5928
|
return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
|
|
5817
5929
|
/* @__PURE__ */ C(
|
|
@@ -5819,7 +5931,7 @@ const ji = ({
|
|
|
5819
5931
|
{
|
|
5820
5932
|
className: `snmt-select-1-15-6 ${J ? "snmt-select-focused" : ""}
|
|
5821
5933
|
${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
|
5822
|
-
ref:
|
|
5934
|
+
ref: Z,
|
|
5823
5935
|
style: { width: h },
|
|
5824
5936
|
children: [
|
|
5825
5937
|
/* @__PURE__ */ r(
|
|
@@ -5828,43 +5940,43 @@ const ji = ({
|
|
|
5828
5940
|
className: "snmt-select-blank",
|
|
5829
5941
|
popupClassName: f ? "dropdown-read-only" : "",
|
|
5830
5942
|
id: k,
|
|
5831
|
-
ref:
|
|
5943
|
+
ref: R,
|
|
5832
5944
|
showSearch: !!n,
|
|
5833
5945
|
filterOption: n && U,
|
|
5834
5946
|
onDropdownVisibleChange: W,
|
|
5835
|
-
disabled:
|
|
5947
|
+
disabled: o,
|
|
5836
5948
|
value: I || void 0,
|
|
5837
5949
|
labelRender: (L) => {
|
|
5838
5950
|
const b = o1(L.value);
|
|
5839
|
-
return
|
|
5951
|
+
return o ? /* @__PURE__ */ r("span", { style: { color: Q.GREY_DARK_1 }, children: b }) : b;
|
|
5840
5952
|
},
|
|
5841
5953
|
mode: s === "filter" ? "multiple" : s,
|
|
5842
5954
|
onChange: G,
|
|
5843
5955
|
onFocus: O,
|
|
5844
5956
|
onBlur: K,
|
|
5845
5957
|
onSearch: (L) => {
|
|
5846
|
-
|
|
5958
|
+
D(!L), c && c(L);
|
|
5847
5959
|
},
|
|
5848
|
-
onSelect: () =>
|
|
5849
|
-
onDeselect: () =>
|
|
5960
|
+
onSelect: () => D(!0),
|
|
5961
|
+
onDeselect: () => D(!0),
|
|
5850
5962
|
tagRender: (L) => A({ ...L, mode: s }),
|
|
5851
5963
|
maxTagCount: "responsive",
|
|
5852
5964
|
maxTagPlaceholder: N1,
|
|
5853
5965
|
onPopupScroll: v1,
|
|
5854
5966
|
prefix: S && /* @__PURE__ */ r(K1, { size: 15 }),
|
|
5855
5967
|
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(i1, { children: [
|
|
5856
|
-
I && !!I.length && (s ||
|
|
5968
|
+
I && !!I.length && (s || d) && /* @__PURE__ */ r(
|
|
5857
5969
|
"div",
|
|
5858
5970
|
{
|
|
5859
5971
|
onClick: e1,
|
|
5860
5972
|
style: {
|
|
5861
|
-
cursor:
|
|
5973
|
+
cursor: o ? "not-allowed" : "pointer"
|
|
5862
5974
|
},
|
|
5863
5975
|
children: /* @__PURE__ */ r(
|
|
5864
5976
|
u1,
|
|
5865
5977
|
{
|
|
5866
5978
|
name: "cancel",
|
|
5867
|
-
color:
|
|
5979
|
+
color: o ? Q.GREY_DARK_1 : Q.GREY_DARK_5
|
|
5868
5980
|
}
|
|
5869
5981
|
)
|
|
5870
5982
|
}
|
|
@@ -5873,15 +5985,15 @@ const ji = ({
|
|
|
5873
5985
|
u1,
|
|
5874
5986
|
{
|
|
5875
5987
|
name: "selectArrowIcon",
|
|
5876
|
-
color:
|
|
5988
|
+
color: o ? Q.GREY_DARK_1 : Q.GREY_DARK_5,
|
|
5877
5989
|
className: v ? "select-arrow-rotated" : "select-arrow",
|
|
5878
5990
|
onClick: () => P(!v)
|
|
5879
5991
|
}
|
|
5880
5992
|
)
|
|
5881
5993
|
] }) }),
|
|
5882
5994
|
removeIcon: /* @__PURE__ */ r(u1, { name: "errorSmall", color: Q.GREY_DARK_1 }),
|
|
5883
|
-
options:
|
|
5884
|
-
optionRender: (L) =>
|
|
5995
|
+
options: a,
|
|
5996
|
+
optionRender: (L) => N ? N(L.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
5885
5997
|
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 12, children: [
|
|
5886
5998
|
s && /* @__PURE__ */ r(
|
|
5887
5999
|
Qe,
|
|
@@ -5905,7 +6017,7 @@ const ji = ({
|
|
|
5905
6017
|
)
|
|
5906
6018
|
] }),
|
|
5907
6019
|
dropdownRender: (L) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
|
5908
|
-
/* @__PURE__ */ r("div", { className: "dropdown-menu", children:
|
|
6020
|
+
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: _ ? _(L) : L }),
|
|
5909
6021
|
S && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(K1, { size: 28 }) })
|
|
5910
6022
|
] })
|
|
5911
6023
|
}
|
|
@@ -5914,31 +6026,39 @@ const ji = ({
|
|
|
5914
6026
|
/* @__PURE__ */ r(
|
|
5915
6027
|
"label",
|
|
5916
6028
|
{
|
|
5917
|
-
className: `${J || z ? "label-floating" : ""} ${
|
|
5918
|
-
children:
|
|
6029
|
+
className: `${J || z ? "label-floating" : ""} ${o ? "label-disabled" : ""} ${J ? "label-focused" : ""} ${S ? "label-loading" : ""} ${x ? "label-error" : ""}`,
|
|
6030
|
+
children: g ? `${t}*` : t
|
|
5919
6031
|
}
|
|
5920
6032
|
),
|
|
5921
6033
|
/* @__PURE__ */ r(
|
|
5922
6034
|
"fieldset",
|
|
5923
6035
|
{
|
|
5924
|
-
className: `${J ? "fieldset-focused" : ""} ${
|
|
5925
|
-
children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children:
|
|
6036
|
+
className: `${J ? "fieldset-focused" : ""} ${o ? "fieldset-disabled" : ""} ${z ? "fieldset-filled" : ""} ${x ? "fieldset-error" : ""}`,
|
|
6037
|
+
children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: g ? `${t}*` : t }) })
|
|
5926
6038
|
}
|
|
5927
6039
|
)
|
|
5928
6040
|
] })
|
|
5929
6041
|
]
|
|
5930
6042
|
}
|
|
5931
6043
|
),
|
|
5932
|
-
|
|
5933
|
-
/* @__PURE__ */ r(
|
|
5934
|
-
|
|
6044
|
+
x && /* @__PURE__ */ C(p1, { justifyContent: "flex-start", gap: 6, children: [
|
|
6045
|
+
/* @__PURE__ */ r(
|
|
6046
|
+
u1,
|
|
6047
|
+
{
|
|
6048
|
+
name: "attention",
|
|
6049
|
+
color: Q.NOTIFICATION_ERROR_DARK,
|
|
6050
|
+
height: 16,
|
|
6051
|
+
width: 16
|
|
6052
|
+
}
|
|
6053
|
+
),
|
|
6054
|
+
typeof x == "string" ? /* @__PURE__ */ r(D5, { color: Q.NOTIFICATION_ERROR_DARK, variant: "body4", children: x }) : x
|
|
5935
6055
|
] })
|
|
5936
6056
|
] });
|
|
5937
6057
|
}
|
|
5938
6058
|
);
|
|
5939
|
-
function
|
|
6059
|
+
function G5(i, e = 500) {
|
|
5940
6060
|
const t = q();
|
|
5941
|
-
return
|
|
6061
|
+
return j(() => () => {
|
|
5942
6062
|
t.current && clearTimeout(t.current);
|
|
5943
6063
|
}, []), (...s) => {
|
|
5944
6064
|
const n = setTimeout(() => {
|
|
@@ -5949,7 +6069,7 @@ function Zi(i, e = 500) {
|
|
|
5949
6069
|
}
|
|
5950
6070
|
function P1(i) {
|
|
5951
6071
|
const e = q(i);
|
|
5952
|
-
return
|
|
6072
|
+
return j(() => {
|
|
5953
6073
|
e.current = i;
|
|
5954
6074
|
}, [i]), e.current;
|
|
5955
6075
|
}
|
|
@@ -5962,11 +6082,11 @@ const I1 = 100, l1 = {
|
|
|
5962
6082
|
onChange: t,
|
|
5963
6083
|
value: s,
|
|
5964
6084
|
id: n,
|
|
5965
|
-
disabled:
|
|
6085
|
+
disabled: a,
|
|
5966
6086
|
scrollThresholdValue: h,
|
|
5967
|
-
placeholder:
|
|
5968
|
-
mode:
|
|
5969
|
-
loadOnClosedState:
|
|
6087
|
+
placeholder: o,
|
|
6088
|
+
mode: g,
|
|
6089
|
+
loadOnClosedState: d,
|
|
5970
6090
|
preloadOptions: l,
|
|
5971
6091
|
extraOptions: c,
|
|
5972
6092
|
onDropdownVisibleChange: u,
|
|
@@ -5974,12 +6094,12 @@ const I1 = 100, l1 = {
|
|
|
5974
6094
|
dropdownRender: w,
|
|
5975
6095
|
readOnly: k,
|
|
5976
6096
|
clearable: m = !1,
|
|
5977
|
-
required:
|
|
5978
|
-
error:
|
|
6097
|
+
required: _ = !1,
|
|
6098
|
+
error: N
|
|
5979
6099
|
}, S) => {
|
|
5980
|
-
const [f,
|
|
6100
|
+
const [f, x] = T(), [R, v] = T(l1), [P, J] = T(!1), [F, H] = T(), [D, I] = T(!1), [V, Z] = T(
|
|
5981
6101
|
c ?? []
|
|
5982
|
-
), W = P1(
|
|
6102
|
+
), W = P1(R.offset), U = P1(F), [O, K] = T(!1), G = q(!1), e1 = $(
|
|
5983
6103
|
async ({
|
|
5984
6104
|
limit: A = I1,
|
|
5985
6105
|
offset: z,
|
|
@@ -5992,10 +6112,10 @@ const I1 = 100, l1 = {
|
|
|
5992
6112
|
offset: z,
|
|
5993
6113
|
search: L
|
|
5994
6114
|
});
|
|
5995
|
-
|
|
5996
|
-
(
|
|
5997
|
-
), v((
|
|
5998
|
-
...
|
|
6115
|
+
x(
|
|
6116
|
+
(B) => z === 0 ? b.options : [...B ?? [], ...b.options]
|
|
6117
|
+
), v((B) => ({
|
|
6118
|
+
...B,
|
|
5999
6119
|
count: b.count
|
|
6000
6120
|
}));
|
|
6001
6121
|
} catch (b) {
|
|
@@ -6005,31 +6125,31 @@ const I1 = 100, l1 = {
|
|
|
6005
6125
|
}
|
|
6006
6126
|
},
|
|
6007
6127
|
[i]
|
|
6008
|
-
), t1 =
|
|
6128
|
+
), t1 = G5((A) => {
|
|
6009
6129
|
H(A), A || v(l1);
|
|
6010
6130
|
}), g1 = $(
|
|
6011
6131
|
(A) => t1(A),
|
|
6012
6132
|
[t1]
|
|
6013
6133
|
), L1 = $(
|
|
6014
6134
|
async (A) => {
|
|
6015
|
-
P || A &&
|
|
6135
|
+
P || A && R.count && R.count > ((f == null ? void 0 : f.length) ?? 0) && v((z) => ({
|
|
6016
6136
|
...z,
|
|
6017
6137
|
offset: z.offset + I1
|
|
6018
6138
|
}));
|
|
6019
6139
|
},
|
|
6020
|
-
[P, f == null ? void 0 : f.length,
|
|
6140
|
+
[P, f == null ? void 0 : f.length, R.count]
|
|
6021
6141
|
), v1 = $(
|
|
6022
6142
|
(A) => {
|
|
6023
6143
|
I(A), !A && F && (H(void 0), v(l1), K(!0)), u == null || u(A);
|
|
6024
6144
|
},
|
|
6025
6145
|
[u, F]
|
|
6026
6146
|
);
|
|
6027
|
-
|
|
6028
|
-
!G.current || P || (O ||
|
|
6029
|
-
}, [O,
|
|
6030
|
-
(
|
|
6031
|
-
}, []),
|
|
6032
|
-
c &&
|
|
6147
|
+
j(() => {
|
|
6148
|
+
!G.current || P || (O || D && (W !== R.offset || U !== F || !f)) && (e1({ offset: R.offset, limit: I1, search: F }), O && K(!1));
|
|
6149
|
+
}, [O, D, R.offset, F, W, U, f, P]), j(() => {
|
|
6150
|
+
(d || l) && e1(l1), G.current = !0;
|
|
6151
|
+
}, []), j(() => {
|
|
6152
|
+
c && Z((A) => {
|
|
6033
6153
|
const z = c.filter(
|
|
6034
6154
|
(L) => !A.some((b) => b.value === L.value)
|
|
6035
6155
|
);
|
|
@@ -6040,23 +6160,23 @@ const I1 = 100, l1 = {
|
|
|
6040
6160
|
(A) => {
|
|
6041
6161
|
t && t(A);
|
|
6042
6162
|
let z = [];
|
|
6043
|
-
if (
|
|
6163
|
+
if (g ? z = Array.isArray(A) ? A : [] : z = A ? [A] : [], F) {
|
|
6044
6164
|
const L = z.filter(
|
|
6045
|
-
(b) => !(V != null && V.some((
|
|
6165
|
+
(b) => !(V != null && V.some((B) => B.value === b))
|
|
6046
6166
|
);
|
|
6047
|
-
L.length > 0 &&
|
|
6167
|
+
L.length > 0 && Z((b = []) => [
|
|
6048
6168
|
...b,
|
|
6049
|
-
...L.map((
|
|
6050
|
-
const a1 = f == null ? void 0 : f.find((ke) => ke.value ===
|
|
6169
|
+
...L.map((B) => {
|
|
6170
|
+
const a1 = f == null ? void 0 : f.find((ke) => ke.value === B);
|
|
6051
6171
|
return {
|
|
6052
|
-
value:
|
|
6053
|
-
label: (a1 == null ? void 0 : a1.label) ??
|
|
6172
|
+
value: B,
|
|
6173
|
+
label: (a1 == null ? void 0 : a1.label) ?? B
|
|
6054
6174
|
};
|
|
6055
6175
|
})
|
|
6056
6176
|
]), H(void 0), v(l1), K(!0);
|
|
6057
6177
|
}
|
|
6058
6178
|
},
|
|
6059
|
-
[t, F,
|
|
6179
|
+
[t, F, g, f, V]
|
|
6060
6180
|
), N1 = Ne(
|
|
6061
6181
|
() => ({
|
|
6062
6182
|
id: n,
|
|
@@ -6064,22 +6184,22 @@ const I1 = 100, l1 = {
|
|
|
6064
6184
|
options: f || [],
|
|
6065
6185
|
onChange: o1,
|
|
6066
6186
|
ref: S,
|
|
6067
|
-
placeholder:
|
|
6187
|
+
placeholder: o,
|
|
6068
6188
|
search: !0,
|
|
6069
6189
|
value: s,
|
|
6070
6190
|
onSearchChange: g1,
|
|
6071
6191
|
onDropdownVisibleChange: v1,
|
|
6072
6192
|
scrollThresholdValue: h,
|
|
6073
6193
|
onScrollToEnd: L1,
|
|
6074
|
-
disabled:
|
|
6194
|
+
disabled: a,
|
|
6075
6195
|
extraOptions: V,
|
|
6076
6196
|
isLoading: P,
|
|
6077
6197
|
optionRender: p,
|
|
6078
6198
|
dropdownRender: w,
|
|
6079
6199
|
readOnly: k,
|
|
6080
6200
|
clearable: m,
|
|
6081
|
-
required:
|
|
6082
|
-
error:
|
|
6201
|
+
required: _,
|
|
6202
|
+
error: N
|
|
6083
6203
|
}),
|
|
6084
6204
|
[
|
|
6085
6205
|
n,
|
|
@@ -6087,32 +6207,32 @@ const I1 = 100, l1 = {
|
|
|
6087
6207
|
f,
|
|
6088
6208
|
o1,
|
|
6089
6209
|
S,
|
|
6090
|
-
|
|
6210
|
+
o,
|
|
6091
6211
|
s,
|
|
6092
6212
|
g1,
|
|
6093
6213
|
v1,
|
|
6094
6214
|
h,
|
|
6095
6215
|
L1,
|
|
6096
|
-
|
|
6216
|
+
a,
|
|
6097
6217
|
V,
|
|
6098
6218
|
P,
|
|
6099
6219
|
p,
|
|
6100
6220
|
w,
|
|
6101
6221
|
k,
|
|
6102
6222
|
m,
|
|
6103
|
-
|
|
6104
|
-
|
|
6223
|
+
_,
|
|
6224
|
+
N
|
|
6105
6225
|
]
|
|
6106
6226
|
);
|
|
6107
6227
|
return _1(S, () => ({
|
|
6108
6228
|
refetchOptions: async () => {
|
|
6109
6229
|
v(l1), H(void 0), K(!0);
|
|
6110
6230
|
}
|
|
6111
|
-
})),
|
|
6231
|
+
})), g ? /* @__PURE__ */ r($1, { ...N1, value: s, mode: g }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r($1, { ...N1, value: s }) });
|
|
6112
6232
|
}
|
|
6113
6233
|
);
|
|
6114
6234
|
var R1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(R1 || {});
|
|
6115
|
-
const
|
|
6235
|
+
const K5 = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
6116
6236
|
const t = `no-repeat linear-gradient(${e}
|
|
6117
6237
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
|
6118
6238
|
width: i,
|
|
@@ -6121,7 +6241,7 @@ const Wi = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
|
6121
6241
|
};
|
|
6122
6242
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
|
|
6123
6243
|
};
|
|
6124
|
-
function
|
|
6244
|
+
function $5() {
|
|
6125
6245
|
if (console && console.warn) {
|
|
6126
6246
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
6127
6247
|
e[t] = arguments[t];
|
|
@@ -6132,7 +6252,7 @@ const Y1 = {};
|
|
|
6132
6252
|
function A1() {
|
|
6133
6253
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
6134
6254
|
e[t] = arguments[t];
|
|
6135
|
-
n1(e[0]) && Y1[e[0]] || (n1(e[0]) && (Y1[e[0]] = /* @__PURE__ */ new Date()),
|
|
6255
|
+
n1(e[0]) && Y1[e[0]] || (n1(e[0]) && (Y1[e[0]] = /* @__PURE__ */ new Date()), $5(...e));
|
|
6136
6256
|
}
|
|
6137
6257
|
const Ce = (i, e) => () => {
|
|
6138
6258
|
if (i.isInitialized)
|
|
@@ -6151,24 +6271,24 @@ const Ce = (i, e) => () => {
|
|
|
6151
6271
|
n1(t) && (t = [t]), t.forEach((n) => {
|
|
6152
6272
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
6153
6273
|
}), i.loadLanguages(e, Ce(i, s));
|
|
6154
|
-
},
|
|
6274
|
+
}, P5 = function(i, e) {
|
|
6155
6275
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6156
|
-
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1,
|
|
6276
|
+
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
|
|
6157
6277
|
if (s.toLowerCase() === "cimode") return !0;
|
|
6158
|
-
const h = (
|
|
6159
|
-
const
|
|
6160
|
-
return
|
|
6278
|
+
const h = (o, g) => {
|
|
6279
|
+
const d = e.services.backendConnector.state[`${o}|${g}`];
|
|
6280
|
+
return d === -1 || d === 2;
|
|
6161
6281
|
};
|
|
6162
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(s, i) && (!n || h(
|
|
6163
|
-
},
|
|
6282
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(s, i) && (!n || h(a, i)));
|
|
6283
|
+
}, F5 = function(i, e) {
|
|
6164
6284
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6165
6285
|
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
6286
|
lng: t.lng,
|
|
6167
|
-
precheck: (n,
|
|
6168
|
-
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !
|
|
6287
|
+
precheck: (n, a) => {
|
|
6288
|
+
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !a(n.isLanguageChangingTo, i)) return !1;
|
|
6169
6289
|
}
|
|
6170
|
-
}) :
|
|
6171
|
-
}, n1 = (i) => typeof i == "string",
|
|
6290
|
+
}) : P5(i, e, t);
|
|
6291
|
+
}, 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
6292
|
"&": "&",
|
|
6173
6293
|
"&": "&",
|
|
6174
6294
|
"<": "<",
|
|
@@ -6189,7 +6309,7 @@ const Ce = (i, e) => () => {
|
|
|
6189
6309
|
"…": "…",
|
|
6190
6310
|
"/": "/",
|
|
6191
6311
|
"/": "/"
|
|
6192
|
-
},
|
|
6312
|
+
}, J5 = (i) => z5[i], q5 = (i) => i.replace(U5, J5);
|
|
6193
6313
|
let T1 = {
|
|
6194
6314
|
bindI18n: "languageChanged",
|
|
6195
6315
|
bindI18nStore: "",
|
|
@@ -6198,27 +6318,27 @@ let T1 = {
|
|
|
6198
6318
|
transWrapTextNodes: "",
|
|
6199
6319
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
6200
6320
|
useSuspense: !0,
|
|
6201
|
-
unescape:
|
|
6321
|
+
unescape: q5
|
|
6202
6322
|
};
|
|
6203
|
-
const
|
|
6323
|
+
const Q5 = function() {
|
|
6204
6324
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6205
6325
|
T1 = {
|
|
6206
6326
|
...T1,
|
|
6207
6327
|
...i
|
|
6208
6328
|
};
|
|
6209
|
-
},
|
|
6329
|
+
}, X5 = () => T1;
|
|
6210
6330
|
let pe;
|
|
6211
|
-
const
|
|
6331
|
+
const ei = (i) => {
|
|
6212
6332
|
pe = i;
|
|
6213
|
-
},
|
|
6333
|
+
}, ti = () => pe, ii = {
|
|
6214
6334
|
type: "3rdParty",
|
|
6215
6335
|
init(i) {
|
|
6216
|
-
|
|
6336
|
+
Q5(i.options.react), ei(i);
|
|
6217
6337
|
}
|
|
6218
|
-
},
|
|
6219
|
-
class
|
|
6338
|
+
}, si = d1();
|
|
6339
|
+
class ni {
|
|
6220
6340
|
constructor() {
|
|
6221
|
-
|
|
6341
|
+
B1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
|
6222
6342
|
this.usedNamespaces = {};
|
|
6223
6343
|
}
|
|
6224
6344
|
addUsedNamespaces(e) {
|
|
@@ -6227,80 +6347,80 @@ class i0 {
|
|
|
6227
6347
|
});
|
|
6228
6348
|
}
|
|
6229
6349
|
}
|
|
6230
|
-
const
|
|
6350
|
+
const ri = (i, e) => {
|
|
6231
6351
|
const t = q();
|
|
6232
|
-
return
|
|
6352
|
+
return j(() => {
|
|
6233
6353
|
t.current = i;
|
|
6234
6354
|
}, [i, e]), t.current;
|
|
6235
|
-
}, fe = (i, e, t, s) => i.getFixedT(e, t, s),
|
|
6355
|
+
}, 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
6356
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6237
6357
|
const {
|
|
6238
6358
|
i18n: t
|
|
6239
6359
|
} = e, {
|
|
6240
6360
|
i18n: s,
|
|
6241
6361
|
defaultNS: n
|
|
6242
|
-
} = r1(
|
|
6243
|
-
if (
|
|
6362
|
+
} = r1(si) || {}, a = t || s || ti();
|
|
6363
|
+
if (a && !a.reportNamespaces && (a.reportNamespaces = new ni()), !a) {
|
|
6244
6364
|
A1("You will need to pass in an i18next instance by using initReactI18next");
|
|
6245
|
-
const f = (
|
|
6246
|
-
return
|
|
6365
|
+
const f = (R, v) => n1(v) ? v : Y5(v) && n1(v.defaultValue) ? v.defaultValue : Array.isArray(R) ? R[R.length - 1] : R, x = [f, {}, !1];
|
|
6366
|
+
return x.t = f, x.i18n = {}, x.ready = !1, x;
|
|
6247
6367
|
}
|
|
6248
|
-
|
|
6368
|
+
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.");
|
|
6249
6369
|
const h = {
|
|
6250
|
-
...
|
|
6251
|
-
...
|
|
6370
|
+
...X5(),
|
|
6371
|
+
...a.options.react,
|
|
6252
6372
|
...e
|
|
6253
6373
|
}, {
|
|
6254
|
-
useSuspense:
|
|
6255
|
-
keyPrefix:
|
|
6374
|
+
useSuspense: o,
|
|
6375
|
+
keyPrefix: g
|
|
6256
6376
|
} = h;
|
|
6257
|
-
let
|
|
6258
|
-
|
|
6259
|
-
const l = (
|
|
6260
|
-
let m =
|
|
6377
|
+
let d = i;
|
|
6378
|
+
d = n1(d) ? [d] : d || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(d);
|
|
6379
|
+
const l = (a.isInitialized || a.initializedStoreOnce) && d.every((f) => F5(f, a, h)), c = oi(a, e.lng || null, h.nsMode === "fallback" ? d : d[0], g), u = () => c, p = () => fe(a, e.lng || null, h.nsMode === "fallback" ? d : d[0], g), [w, k] = T(u);
|
|
6380
|
+
let m = d.join();
|
|
6261
6381
|
e.lng && (m = `${e.lng}${m}`);
|
|
6262
|
-
const
|
|
6263
|
-
|
|
6382
|
+
const _ = ri(m), N = q(!0);
|
|
6383
|
+
j(() => {
|
|
6264
6384
|
const {
|
|
6265
6385
|
bindI18n: f,
|
|
6266
|
-
bindI18nStore:
|
|
6386
|
+
bindI18nStore: x
|
|
6267
6387
|
} = h;
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
}) : U1(
|
|
6271
|
-
|
|
6272
|
-
})), l &&
|
|
6273
|
-
const
|
|
6274
|
-
|
|
6388
|
+
N.current = !0, !l && !o && (e.lng ? z1(a, e.lng, d, () => {
|
|
6389
|
+
N.current && k(p);
|
|
6390
|
+
}) : U1(a, d, () => {
|
|
6391
|
+
N.current && k(p);
|
|
6392
|
+
})), l && _ && _ !== m && N.current && k(p);
|
|
6393
|
+
const R = () => {
|
|
6394
|
+
N.current && k(p);
|
|
6275
6395
|
};
|
|
6276
|
-
return f &&
|
|
6277
|
-
|
|
6396
|
+
return f && a && a.on(f, R), x && a && a.store.on(x, R), () => {
|
|
6397
|
+
N.current = !1, f && a && f.split(" ").forEach((v) => a.off(v, R)), x && a && x.split(" ").forEach((v) => a.store.off(v, R));
|
|
6278
6398
|
};
|
|
6279
|
-
}, [
|
|
6280
|
-
|
|
6281
|
-
}, [
|
|
6282
|
-
const S = [w,
|
|
6283
|
-
if (S.t = w, S.i18n =
|
|
6399
|
+
}, [a, m]), j(() => {
|
|
6400
|
+
N.current && l && k(u);
|
|
6401
|
+
}, [a, g, l]);
|
|
6402
|
+
const S = [w, a, l];
|
|
6403
|
+
if (S.t = w, S.i18n = a, S.ready = l, l || !l && !o) return S;
|
|
6284
6404
|
throw new Promise((f) => {
|
|
6285
|
-
e.lng ? z1(
|
|
6405
|
+
e.lng ? z1(a, e.lng, d, () => f()) : U1(a, d, () => f());
|
|
6286
6406
|
});
|
|
6287
|
-
},
|
|
6407
|
+
}, M = (i) => typeof i == "string", C1 = () => {
|
|
6288
6408
|
let i, e;
|
|
6289
6409
|
const t = new Promise((s, n) => {
|
|
6290
6410
|
i = s, e = n;
|
|
6291
6411
|
});
|
|
6292
6412
|
return t.resolve = i, t.reject = e, t;
|
|
6293
|
-
}, J1 = (i) => i == null ? "" : "" + i,
|
|
6413
|
+
}, J1 = (i) => i == null ? "" : "" + i, li = (i, e, t) => {
|
|
6294
6414
|
i.forEach((s) => {
|
|
6295
6415
|
e[s] && (t[s] = e[s]);
|
|
6296
6416
|
});
|
|
6297
|
-
},
|
|
6298
|
-
const s =
|
|
6417
|
+
}, ci = /###/g, q1 = (i) => i && i.indexOf("###") > -1 ? i.replace(ci, ".") : i, Q1 = (i) => !i || M(i), m1 = (i, e, t) => {
|
|
6418
|
+
const s = M(e) ? e.split(".") : e;
|
|
6299
6419
|
let n = 0;
|
|
6300
6420
|
for (; n < s.length - 1; ) {
|
|
6301
6421
|
if (Q1(i)) return {};
|
|
6302
|
-
const
|
|
6303
|
-
!i[
|
|
6422
|
+
const a = q1(s[n]);
|
|
6423
|
+
!i[a] && t && (i[a] = new t()), Object.prototype.hasOwnProperty.call(i, a) ? i = i[a] : i = {}, ++n;
|
|
6304
6424
|
}
|
|
6305
6425
|
return Q1(i) ? {} : {
|
|
6306
6426
|
obj: i,
|
|
@@ -6315,16 +6435,16 @@ const s0 = (i, e) => {
|
|
|
6315
6435
|
s[n] = t;
|
|
6316
6436
|
return;
|
|
6317
6437
|
}
|
|
6318
|
-
let
|
|
6319
|
-
for (;
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
},
|
|
6438
|
+
let a = e[e.length - 1], h = e.slice(0, e.length - 1), o = m1(i, h, Object);
|
|
6439
|
+
for (; o.obj === void 0 && h.length; )
|
|
6440
|
+
a = `${h[h.length - 1]}.${a}`, h = h.slice(0, h.length - 1), o = m1(i, h, Object), o && o.obj && typeof o.obj[`${o.k}.${a}`] < "u" && (o.obj = void 0);
|
|
6441
|
+
o.obj[`${o.k}.${a}`] = t;
|
|
6442
|
+
}, hi = (i, e, t, s) => {
|
|
6323
6443
|
const {
|
|
6324
6444
|
obj: n,
|
|
6325
|
-
k:
|
|
6445
|
+
k: a
|
|
6326
6446
|
} = m1(i, e, Object);
|
|
6327
|
-
n[
|
|
6447
|
+
n[a] = n[a] || [], n[a].push(t);
|
|
6328
6448
|
}, M1 = (i, e) => {
|
|
6329
6449
|
const {
|
|
6330
6450
|
obj: t,
|
|
@@ -6332,15 +6452,15 @@ const s0 = (i, e) => {
|
|
|
6332
6452
|
} = m1(i, e);
|
|
6333
6453
|
if (t)
|
|
6334
6454
|
return t[s];
|
|
6335
|
-
},
|
|
6455
|
+
}, di = (i, e, t) => {
|
|
6336
6456
|
const s = M1(i, t);
|
|
6337
6457
|
return s !== void 0 ? s : M1(e, t);
|
|
6338
6458
|
}, me = (i, e, t) => {
|
|
6339
6459
|
for (const s in e)
|
|
6340
|
-
s !== "__proto__" && s !== "constructor" && (s in i ?
|
|
6460
|
+
s !== "__proto__" && s !== "constructor" && (s in i ? M(i[s]) || i[s] instanceof String || M(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : me(i[s], e[s], t) : i[s] = e[s]);
|
|
6341
6461
|
return i;
|
|
6342
6462
|
}, c1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
6343
|
-
var
|
|
6463
|
+
var gi = {
|
|
6344
6464
|
"&": "&",
|
|
6345
6465
|
"<": "<",
|
|
6346
6466
|
">": ">",
|
|
@@ -6348,8 +6468,8 @@ var h0 = {
|
|
|
6348
6468
|
"'": "'",
|
|
6349
6469
|
"/": "/"
|
|
6350
6470
|
};
|
|
6351
|
-
const
|
|
6352
|
-
class
|
|
6471
|
+
const ui = (i) => M(i) ? i.replace(/[&<>"'\/]/g, (e) => gi[e]) : i;
|
|
6472
|
+
class Ci {
|
|
6353
6473
|
constructor(e) {
|
|
6354
6474
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
6355
6475
|
}
|
|
@@ -6361,38 +6481,38 @@ class g0 {
|
|
|
6361
6481
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
|
6362
6482
|
}
|
|
6363
6483
|
}
|
|
6364
|
-
const
|
|
6484
|
+
const pi = [" ", ",", "?", "!", ";"], fi = new Ci(20), mi = (i, e, t) => {
|
|
6365
6485
|
e = e || "", t = t || "";
|
|
6366
|
-
const s =
|
|
6486
|
+
const s = pi.filter((h) => e.indexOf(h) < 0 && t.indexOf(h) < 0);
|
|
6367
6487
|
if (s.length === 0) return !0;
|
|
6368
|
-
const n =
|
|
6369
|
-
let
|
|
6370
|
-
if (!
|
|
6488
|
+
const n = fi.getRegExp(`(${s.map((h) => h === "?" ? "\\?" : h).join("|")})`);
|
|
6489
|
+
let a = !n.test(i);
|
|
6490
|
+
if (!a) {
|
|
6371
6491
|
const h = i.indexOf(t);
|
|
6372
|
-
h > 0 && !n.test(i.substring(0, h)) && (
|
|
6492
|
+
h > 0 && !n.test(i.substring(0, h)) && (a = !0);
|
|
6373
6493
|
}
|
|
6374
|
-
return
|
|
6375
|
-
},
|
|
6494
|
+
return a;
|
|
6495
|
+
}, Z1 = function(i, e) {
|
|
6376
6496
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
6377
6497
|
if (!i) return;
|
|
6378
6498
|
if (i[e]) return i[e];
|
|
6379
6499
|
const s = e.split(t);
|
|
6380
6500
|
let n = i;
|
|
6381
|
-
for (let
|
|
6501
|
+
for (let a = 0; a < s.length; ) {
|
|
6382
6502
|
if (!n || typeof n != "object")
|
|
6383
6503
|
return;
|
|
6384
|
-
let h,
|
|
6385
|
-
for (let
|
|
6386
|
-
if (
|
|
6387
|
-
if (["string", "number", "boolean"].indexOf(typeof h) > -1 &&
|
|
6504
|
+
let h, o = "";
|
|
6505
|
+
for (let g = a; g < s.length; ++g)
|
|
6506
|
+
if (g !== a && (o += t), o += s[g], h = n[o], h !== void 0) {
|
|
6507
|
+
if (["string", "number", "boolean"].indexOf(typeof h) > -1 && g < s.length - 1)
|
|
6388
6508
|
continue;
|
|
6389
|
-
|
|
6509
|
+
a += g - a + 1;
|
|
6390
6510
|
break;
|
|
6391
6511
|
}
|
|
6392
6512
|
n = h;
|
|
6393
6513
|
}
|
|
6394
6514
|
return n;
|
|
6395
|
-
}, b1 = (i) => i && i.replace("_", "-"),
|
|
6515
|
+
}, b1 = (i) => i && i.replace("_", "-"), wi = {
|
|
6396
6516
|
type: "logger",
|
|
6397
6517
|
log(i) {
|
|
6398
6518
|
this.output("log", i);
|
|
@@ -6414,7 +6534,7 @@ class y1 {
|
|
|
6414
6534
|
}
|
|
6415
6535
|
init(e) {
|
|
6416
6536
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6417
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
6537
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || wi, this.options = t, this.debug = t.debug;
|
|
6418
6538
|
}
|
|
6419
6539
|
log() {
|
|
6420
6540
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
@@ -6437,7 +6557,7 @@ class y1 {
|
|
|
6437
6557
|
return this.forward(t, "warn", "WARNING DEPRECATED: ", !0);
|
|
6438
6558
|
}
|
|
6439
6559
|
forward(e, t, s, n) {
|
|
6440
|
-
return n && !this.debug ? null : (
|
|
6560
|
+
return n && !this.debug ? null : (M(e[0]) && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
6441
6561
|
}
|
|
6442
6562
|
create(e) {
|
|
6443
6563
|
return new y1(this.logger, {
|
|
@@ -6474,13 +6594,13 @@ class H1 {
|
|
|
6474
6594
|
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
6475
6595
|
s[n - 1] = arguments[n];
|
|
6476
6596
|
this.observers[e] && Array.from(this.observers[e].entries()).forEach((h) => {
|
|
6477
|
-
let [
|
|
6478
|
-
for (let
|
|
6479
|
-
|
|
6597
|
+
let [o, g] = h;
|
|
6598
|
+
for (let d = 0; d < g; d++)
|
|
6599
|
+
o(...s);
|
|
6480
6600
|
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((h) => {
|
|
6481
|
-
let [
|
|
6482
|
-
for (let
|
|
6483
|
-
|
|
6601
|
+
let [o, g] = h;
|
|
6602
|
+
for (let d = 0; d < g; d++)
|
|
6603
|
+
o.apply(o, [e, ...s]);
|
|
6484
6604
|
});
|
|
6485
6605
|
}
|
|
6486
6606
|
}
|
|
@@ -6501,41 +6621,41 @@ class ee extends H1 {
|
|
|
6501
6621
|
}
|
|
6502
6622
|
getResource(e, t, s) {
|
|
6503
6623
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6504
|
-
const
|
|
6505
|
-
let
|
|
6506
|
-
e.indexOf(".") > -1 ?
|
|
6507
|
-
const
|
|
6508
|
-
return !
|
|
6624
|
+
const a = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, h = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
6625
|
+
let o;
|
|
6626
|
+
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], s && (Array.isArray(s) ? o.push(...s) : M(s) && a ? o.push(...s.split(a)) : o.push(s)));
|
|
6627
|
+
const g = M1(this.data, o);
|
|
6628
|
+
return !g && !t && !s && e.indexOf(".") > -1 && (e = o[0], t = o[1], s = o.slice(2).join(".")), g || !h || !M(s) ? g : Z1(this.data && this.data[e] && this.data[e][t], s, a);
|
|
6509
6629
|
}
|
|
6510
6630
|
addResource(e, t, s, n) {
|
|
6511
|
-
let
|
|
6631
|
+
let a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
6512
6632
|
silent: !1
|
|
6513
6633
|
};
|
|
6514
|
-
const h =
|
|
6515
|
-
let
|
|
6516
|
-
s && (
|
|
6634
|
+
const h = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator;
|
|
6635
|
+
let o = [e, t];
|
|
6636
|
+
s && (o = o.concat(h ? s.split(h) : 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
6637
|
}
|
|
6518
6638
|
addResources(e, t, s) {
|
|
6519
6639
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
6520
6640
|
silent: !1
|
|
6521
6641
|
};
|
|
6522
|
-
for (const
|
|
6523
|
-
(
|
|
6642
|
+
for (const a in s)
|
|
6643
|
+
(M(s[a]) || Array.isArray(s[a])) && this.addResource(e, t, a, s[a], {
|
|
6524
6644
|
silent: !0
|
|
6525
6645
|
});
|
|
6526
6646
|
n.silent || this.emit("added", e, t, s);
|
|
6527
6647
|
}
|
|
6528
|
-
addResourceBundle(e, t, s, n,
|
|
6648
|
+
addResourceBundle(e, t, s, n, a) {
|
|
6529
6649
|
let h = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
|
|
6530
6650
|
silent: !1,
|
|
6531
6651
|
skipCopy: !1
|
|
6532
|
-
},
|
|
6533
|
-
e.indexOf(".") > -1 && (
|
|
6534
|
-
let
|
|
6535
|
-
h.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? me(
|
|
6536
|
-
...
|
|
6652
|
+
}, o = [e, t];
|
|
6653
|
+
e.indexOf(".") > -1 && (o = e.split("."), n = s, s = t, t = o[1]), this.addNamespaces(t);
|
|
6654
|
+
let g = M1(this.data, o) || {};
|
|
6655
|
+
h.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? me(g, s, a) : g = {
|
|
6656
|
+
...g,
|
|
6537
6657
|
...s
|
|
6538
|
-
}, X1(this.data,
|
|
6658
|
+
}, X1(this.data, o, g), h.silent || this.emit("added", e, t, s);
|
|
6539
6659
|
}
|
|
6540
6660
|
removeResourceBundle(e, t) {
|
|
6541
6661
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -6565,8 +6685,8 @@ var we = {
|
|
|
6565
6685
|
this.processors[i.name] = i;
|
|
6566
6686
|
},
|
|
6567
6687
|
handle(i, e, t, s, n) {
|
|
6568
|
-
return i.forEach((
|
|
6569
|
-
this.processors[
|
|
6688
|
+
return i.forEach((a) => {
|
|
6689
|
+
this.processors[a] && (e = this.processors[a].process(e, t, s, n));
|
|
6570
6690
|
}), e;
|
|
6571
6691
|
}
|
|
6572
6692
|
};
|
|
@@ -6574,7 +6694,7 @@ const te = {};
|
|
|
6574
6694
|
class E1 extends H1 {
|
|
6575
6695
|
constructor(e) {
|
|
6576
6696
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6577
|
-
super(),
|
|
6697
|
+
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
6698
|
}
|
|
6579
6699
|
changeLanguage(e) {
|
|
6580
6700
|
e && (this.language = e);
|
|
@@ -6592,21 +6712,21 @@ class E1 extends H1 {
|
|
|
6592
6712
|
let s = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
|
|
6593
6713
|
s === void 0 && (s = ":");
|
|
6594
6714
|
const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
6595
|
-
let
|
|
6596
|
-
const h = s && e.indexOf(s) > -1,
|
|
6597
|
-
if (h && !
|
|
6598
|
-
const
|
|
6599
|
-
if (
|
|
6715
|
+
let a = t.ns || this.options.defaultNS || [];
|
|
6716
|
+
const h = s && e.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !mi(e, s, n);
|
|
6717
|
+
if (h && !o) {
|
|
6718
|
+
const g = e.match(this.interpolator.nestingRegexp);
|
|
6719
|
+
if (g && g.length > 0)
|
|
6600
6720
|
return {
|
|
6601
6721
|
key: e,
|
|
6602
|
-
namespaces:
|
|
6722
|
+
namespaces: M(a) ? [a] : a
|
|
6603
6723
|
};
|
|
6604
|
-
const
|
|
6605
|
-
(s !== n || s === n && this.options.ns.indexOf(
|
|
6724
|
+
const d = e.split(s);
|
|
6725
|
+
(s !== n || s === n && this.options.ns.indexOf(d[0]) > -1) && (a = d.shift()), e = d.join(n);
|
|
6606
6726
|
}
|
|
6607
6727
|
return {
|
|
6608
6728
|
key: e,
|
|
6609
|
-
namespaces:
|
|
6729
|
+
namespaces: M(a) ? [a] : a
|
|
6610
6730
|
};
|
|
6611
6731
|
}
|
|
6612
6732
|
translate(e, t, s) {
|
|
@@ -6614,95 +6734,95 @@ class E1 extends H1 {
|
|
|
6614
6734
|
...t
|
|
6615
6735
|
}), t || (t = {}), e == null) return "";
|
|
6616
6736
|
Array.isArray(e) || (e = [String(e)]);
|
|
6617
|
-
const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails,
|
|
6737
|
+
const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
6618
6738
|
key: h,
|
|
6619
|
-
namespaces:
|
|
6620
|
-
} = this.extractFromKey(e[e.length - 1], t),
|
|
6621
|
-
if (
|
|
6739
|
+
namespaces: o
|
|
6740
|
+
} = this.extractFromKey(e[e.length - 1], t), g = o[o.length - 1], d = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
6741
|
+
if (d && d.toLowerCase() === "cimode") {
|
|
6622
6742
|
if (l) {
|
|
6623
6743
|
const f = t.nsSeparator || this.options.nsSeparator;
|
|
6624
6744
|
return n ? {
|
|
6625
|
-
res: `${
|
|
6745
|
+
res: `${g}${f}${h}`,
|
|
6626
6746
|
usedKey: h,
|
|
6627
6747
|
exactUsedKey: h,
|
|
6628
|
-
usedLng:
|
|
6629
|
-
usedNS:
|
|
6748
|
+
usedLng: d,
|
|
6749
|
+
usedNS: g,
|
|
6630
6750
|
usedParams: this.getUsedParamsDetails(t)
|
|
6631
|
-
} : `${
|
|
6751
|
+
} : `${g}${f}${h}`;
|
|
6632
6752
|
}
|
|
6633
6753
|
return n ? {
|
|
6634
6754
|
res: h,
|
|
6635
6755
|
usedKey: h,
|
|
6636
6756
|
exactUsedKey: h,
|
|
6637
|
-
usedLng:
|
|
6638
|
-
usedNS:
|
|
6757
|
+
usedLng: d,
|
|
6758
|
+
usedNS: g,
|
|
6639
6759
|
usedParams: this.getUsedParamsDetails(t)
|
|
6640
6760
|
} : h;
|
|
6641
6761
|
}
|
|
6642
6762
|
const c = this.resolve(e, t);
|
|
6643
6763
|
let u = c && c.res;
|
|
6644
|
-
const p = c && c.usedKey || h, w = c && c.exactUsedKey || h, k = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"],
|
|
6645
|
-
if (
|
|
6764
|
+
const p = c && c.usedKey || h, w = c && c.exactUsedKey || h, k = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"], _ = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, N = !this.i18nFormat || this.i18nFormat.handleAsObject, S = !M(u) && typeof u != "boolean" && typeof u != "number";
|
|
6765
|
+
if (N && u && S && m.indexOf(k) < 0 && !(M(_) && Array.isArray(u))) {
|
|
6646
6766
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
6647
6767
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
6648
6768
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
|
|
6649
6769
|
...t,
|
|
6650
|
-
ns:
|
|
6770
|
+
ns: o
|
|
6651
6771
|
}) : `key '${h} (${this.language})' returned an object instead of string.`;
|
|
6652
6772
|
return n ? (c.res = f, c.usedParams = this.getUsedParamsDetails(t), c) : f;
|
|
6653
6773
|
}
|
|
6654
|
-
if (
|
|
6655
|
-
const f = Array.isArray(u),
|
|
6774
|
+
if (a) {
|
|
6775
|
+
const f = Array.isArray(u), x = f ? [] : {}, R = f ? w : p;
|
|
6656
6776
|
for (const v in u)
|
|
6657
6777
|
if (Object.prototype.hasOwnProperty.call(u, v)) {
|
|
6658
|
-
const P = `${
|
|
6659
|
-
|
|
6778
|
+
const P = `${R}${a}${v}`;
|
|
6779
|
+
x[v] = this.translate(P, {
|
|
6660
6780
|
...t,
|
|
6661
6781
|
joinArrays: !1,
|
|
6662
|
-
ns:
|
|
6663
|
-
}),
|
|
6782
|
+
ns: o
|
|
6783
|
+
}), x[v] === P && (x[v] = u[v]);
|
|
6664
6784
|
}
|
|
6665
|
-
u =
|
|
6785
|
+
u = x;
|
|
6666
6786
|
}
|
|
6667
|
-
} else if (
|
|
6668
|
-
u = u.join(
|
|
6787
|
+
} else if (N && M(_) && Array.isArray(u))
|
|
6788
|
+
u = u.join(_), u && (u = this.extendTranslation(u, e, t, s));
|
|
6669
6789
|
else {
|
|
6670
|
-
let f = !1,
|
|
6671
|
-
const
|
|
6790
|
+
let f = !1, x = !1;
|
|
6791
|
+
const R = t.count !== void 0 && !M(t.count), v = E1.hasDefaultValue(t), P = R ? this.pluralResolver.getSuffix(d, t.count, t) : "", J = t.ordinal && R ? this.pluralResolver.getSuffix(d, t.count, {
|
|
6672
6792
|
ordinal: !1
|
|
6673
|
-
}) : "", F =
|
|
6674
|
-
!this.isValidLookup(u) && v && (f = !0, u = H), this.isValidLookup(u) || (
|
|
6675
|
-
const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
6676
|
-
if (
|
|
6677
|
-
if (this.logger.log(V ? "updateKey" : "missingKey",
|
|
6793
|
+
}) : "", F = R && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), H = F && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${P}`] || t[`defaultValue${J}`] || t.defaultValue;
|
|
6794
|
+
!this.isValidLookup(u) && v && (f = !0, u = H), this.isValidLookup(u) || (x = !0, u = h);
|
|
6795
|
+
const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && x ? void 0 : u, V = v && H !== u && this.options.updateMissing;
|
|
6796
|
+
if (x || f || V) {
|
|
6797
|
+
if (this.logger.log(V ? "updateKey" : "missingKey", d, g, h, V ? H : u), a) {
|
|
6678
6798
|
const O = this.resolve(h, {
|
|
6679
6799
|
...t,
|
|
6680
6800
|
keySeparator: !1
|
|
6681
6801
|
});
|
|
6682
6802
|
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
6803
|
}
|
|
6684
|
-
let
|
|
6804
|
+
let Z = [];
|
|
6685
6805
|
const W = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
6686
6806
|
if (this.options.saveMissingTo === "fallback" && W && W[0])
|
|
6687
6807
|
for (let O = 0; O < W.length; O++)
|
|
6688
|
-
|
|
6689
|
-
else this.options.saveMissingTo === "all" ?
|
|
6808
|
+
Z.push(W[O]);
|
|
6809
|
+
else this.options.saveMissingTo === "all" ? Z = this.languageUtils.toResolveHierarchy(t.lng || this.language) : Z.push(t.lng || this.language);
|
|
6690
6810
|
const U = (O, K, G) => {
|
|
6691
6811
|
const e1 = v && G !== u ? G : I;
|
|
6692
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(O,
|
|
6812
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(O, g, K, e1, V, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(O, g, K, e1, V, t), this.emit("missingKey", O, g, K, u);
|
|
6693
6813
|
};
|
|
6694
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
6814
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && R ? Z.forEach((O) => {
|
|
6695
6815
|
const K = this.pluralResolver.getSuffixes(O, t);
|
|
6696
6816
|
F && t[`defaultValue${this.options.pluralSeparator}zero`] && K.indexOf(`${this.options.pluralSeparator}zero`) < 0 && K.push(`${this.options.pluralSeparator}zero`), K.forEach((G) => {
|
|
6697
6817
|
U([O], h + G, t[`defaultValue${G}`] || H);
|
|
6698
6818
|
});
|
|
6699
|
-
}) : U(
|
|
6819
|
+
}) : U(Z, h, H));
|
|
6700
6820
|
}
|
|
6701
|
-
u = this.extendTranslation(u, e, t, c, s),
|
|
6821
|
+
u = this.extendTranslation(u, e, t, c, s), x && u === h && this.options.appendNamespaceToMissingKey && (u = `${g}:${h}`), (x || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${g}:${h}` : h, f ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
|
|
6702
6822
|
}
|
|
6703
6823
|
return n ? (c.res = u, c.usedParams = this.getUsedParamsDetails(t), c) : u;
|
|
6704
6824
|
}
|
|
6705
|
-
extendTranslation(e, t, s, n,
|
|
6825
|
+
extendTranslation(e, t, s, n, a) {
|
|
6706
6826
|
var h = this;
|
|
6707
6827
|
if (this.i18nFormat && this.i18nFormat.parse)
|
|
6708
6828
|
e = this.i18nFormat.parse(e, {
|
|
@@ -6719,28 +6839,28 @@ class E1 extends H1 {
|
|
|
6719
6839
|
...s.interpolation
|
|
6720
6840
|
}
|
|
6721
6841
|
});
|
|
6722
|
-
const
|
|
6842
|
+
const d = M(e) && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
6723
6843
|
let l;
|
|
6724
|
-
if (
|
|
6844
|
+
if (d) {
|
|
6725
6845
|
const u = e.match(this.interpolator.nestingRegexp);
|
|
6726
6846
|
l = u && u.length;
|
|
6727
6847
|
}
|
|
6728
|
-
let c = s.replace && !
|
|
6848
|
+
let c = s.replace && !M(s.replace) ? s.replace : s;
|
|
6729
6849
|
if (this.options.interpolation.defaultVariables && (c = {
|
|
6730
6850
|
...this.options.interpolation.defaultVariables,
|
|
6731
6851
|
...c
|
|
6732
|
-
}), e = this.interpolator.interpolate(e, c, s.lng || this.language || n.usedLng, s),
|
|
6852
|
+
}), e = this.interpolator.interpolate(e, c, s.lng || this.language || n.usedLng, s), d) {
|
|
6733
6853
|
const u = e.match(this.interpolator.nestingRegexp), p = u && u.length;
|
|
6734
6854
|
l < p && (s.nest = !1);
|
|
6735
6855
|
}
|
|
6736
6856
|
!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
6857
|
for (var u = arguments.length, p = new Array(u), w = 0; w < u; w++)
|
|
6738
6858
|
p[w] = arguments[w];
|
|
6739
|
-
return
|
|
6859
|
+
return a && a[0] === p[0] && !s.context ? (h.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : h.translate(...p, t);
|
|
6740
6860
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
6741
6861
|
}
|
|
6742
|
-
const
|
|
6743
|
-
return e != null &&
|
|
6862
|
+
const o = s.postProcess || this.options.postProcess, g = M(o) ? [o] : o;
|
|
6863
|
+
return e != null && g && g.length && s.applyPostProcessor !== !1 && (e = we.handle(g, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
6744
6864
|
i18nResolved: {
|
|
6745
6865
|
...n,
|
|
6746
6866
|
usedParams: this.getUsedParamsDetails(s)
|
|
@@ -6749,41 +6869,41 @@ class E1 extends H1 {
|
|
|
6749
6869
|
} : s, this)), e;
|
|
6750
6870
|
}
|
|
6751
6871
|
resolve(e) {
|
|
6752
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n,
|
|
6753
|
-
return
|
|
6872
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, a, h, o;
|
|
6873
|
+
return M(e) && (e = [e]), e.forEach((g) => {
|
|
6754
6874
|
if (this.isValidLookup(s)) return;
|
|
6755
|
-
const
|
|
6875
|
+
const d = this.extractFromKey(g, t), l = d.key;
|
|
6756
6876
|
n = l;
|
|
6757
|
-
let c =
|
|
6877
|
+
let c = d.namespaces;
|
|
6758
6878
|
this.options.fallbackNS && (c = c.concat(this.options.fallbackNS));
|
|
6759
|
-
const u = t.count !== void 0 && !
|
|
6879
|
+
const u = t.count !== void 0 && !M(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), w = t.context !== void 0 && (M(t.context) || typeof t.context == "number") && t.context !== "", k = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
6760
6880
|
c.forEach((m) => {
|
|
6761
|
-
this.isValidLookup(s) || (
|
|
6881
|
+
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
6882
|
if (this.isValidLookup(s)) return;
|
|
6763
|
-
h =
|
|
6764
|
-
const
|
|
6883
|
+
h = _;
|
|
6884
|
+
const N = [l];
|
|
6765
6885
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
6766
|
-
this.i18nFormat.addLookupKeys(
|
|
6886
|
+
this.i18nFormat.addLookupKeys(N, l, _, m, t);
|
|
6767
6887
|
else {
|
|
6768
6888
|
let f;
|
|
6769
|
-
u && (f = this.pluralResolver.getSuffix(
|
|
6770
|
-
const
|
|
6771
|
-
if (u && (
|
|
6889
|
+
u && (f = this.pluralResolver.getSuffix(_, t.count, t));
|
|
6890
|
+
const x = `${this.options.pluralSeparator}zero`, R = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
6891
|
+
if (u && (N.push(l + f), t.ordinal && f.indexOf(R) === 0 && N.push(l + f.replace(R, this.options.pluralSeparator)), p && N.push(l + x)), w) {
|
|
6772
6892
|
const v = `${l}${this.options.contextSeparator}${t.context}`;
|
|
6773
|
-
|
|
6893
|
+
N.push(v), u && (N.push(v + f), t.ordinal && f.indexOf(R) === 0 && N.push(v + f.replace(R, this.options.pluralSeparator)), p && N.push(v + x));
|
|
6774
6894
|
}
|
|
6775
6895
|
}
|
|
6776
6896
|
let S;
|
|
6777
|
-
for (; S =
|
|
6778
|
-
this.isValidLookup(s) || (
|
|
6897
|
+
for (; S = N.pop(); )
|
|
6898
|
+
this.isValidLookup(s) || (a = S, s = this.getResource(_, m, S, t));
|
|
6779
6899
|
}));
|
|
6780
6900
|
});
|
|
6781
6901
|
}), {
|
|
6782
6902
|
res: s,
|
|
6783
6903
|
usedKey: n,
|
|
6784
|
-
exactUsedKey:
|
|
6904
|
+
exactUsedKey: a,
|
|
6785
6905
|
usedLng: h,
|
|
6786
|
-
usedNS:
|
|
6906
|
+
usedNS: o
|
|
6787
6907
|
};
|
|
6788
6908
|
}
|
|
6789
6909
|
isValidLookup(e) {
|
|
@@ -6795,7 +6915,7 @@ class E1 extends H1 {
|
|
|
6795
6915
|
}
|
|
6796
6916
|
getUsedParamsDetails() {
|
|
6797
6917
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6798
|
-
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = e.replace && !
|
|
6918
|
+
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = e.replace && !M(e.replace);
|
|
6799
6919
|
let n = s ? e.replace : e;
|
|
6800
6920
|
if (s && typeof e.count < "u" && (n.count = e.count), this.options.interpolation.defaultVariables && (n = {
|
|
6801
6921
|
...this.options.interpolation.defaultVariables,
|
|
@@ -6804,8 +6924,8 @@ class E1 extends H1 {
|
|
|
6804
6924
|
n = {
|
|
6805
6925
|
...n
|
|
6806
6926
|
};
|
|
6807
|
-
for (const
|
|
6808
|
-
delete n[
|
|
6927
|
+
for (const a of t)
|
|
6928
|
+
delete n[a];
|
|
6809
6929
|
}
|
|
6810
6930
|
return n;
|
|
6811
6931
|
}
|
|
@@ -6833,7 +6953,7 @@ class ie {
|
|
|
6833
6953
|
return this.formatLanguageCode(t[0]);
|
|
6834
6954
|
}
|
|
6835
6955
|
formatLanguageCode(e) {
|
|
6836
|
-
if (
|
|
6956
|
+
if (M(e) && e.indexOf("-") > -1) {
|
|
6837
6957
|
if (typeof Intl < "u" && typeof Intl.getCanonicalLocales < "u")
|
|
6838
6958
|
try {
|
|
6839
6959
|
let n = Intl.getCanonicalLocales(e)[0];
|
|
@@ -6860,30 +6980,30 @@ class ie {
|
|
|
6860
6980
|
if (t) return;
|
|
6861
6981
|
const n = this.getLanguagePartFromCode(s);
|
|
6862
6982
|
if (this.isSupportedCode(n)) return t = n;
|
|
6863
|
-
t = this.options.supportedLngs.find((
|
|
6864
|
-
if (
|
|
6865
|
-
if (!(
|
|
6866
|
-
return
|
|
6983
|
+
t = this.options.supportedLngs.find((a) => {
|
|
6984
|
+
if (a === n) return a;
|
|
6985
|
+
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))
|
|
6986
|
+
return a;
|
|
6867
6987
|
});
|
|
6868
6988
|
}), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
|
|
6869
6989
|
}
|
|
6870
6990
|
getFallbackCodes(e, t) {
|
|
6871
6991
|
if (!e) return [];
|
|
6872
|
-
if (typeof e == "function" && (e = e(t)),
|
|
6992
|
+
if (typeof e == "function" && (e = e(t)), M(e) && (e = [e]), Array.isArray(e)) return e;
|
|
6873
6993
|
if (!t) return e.default || [];
|
|
6874
6994
|
let s = e[t];
|
|
6875
6995
|
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
6996
|
}
|
|
6877
6997
|
toResolveHierarchy(e, t) {
|
|
6878
|
-
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [],
|
|
6998
|
+
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], a = (h) => {
|
|
6879
6999
|
h && (this.isSupportedCode(h) ? n.push(h) : this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`));
|
|
6880
7000
|
};
|
|
6881
|
-
return
|
|
6882
|
-
n.indexOf(h) < 0 &&
|
|
7001
|
+
return M(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))) : M(e) && a(this.formatLanguageCode(e)), s.forEach((h) => {
|
|
7002
|
+
n.indexOf(h) < 0 && a(this.formatLanguageCode(h));
|
|
6883
7003
|
}), n;
|
|
6884
7004
|
}
|
|
6885
7005
|
}
|
|
6886
|
-
let
|
|
7006
|
+
let ki = [{
|
|
6887
7007
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
6888
7008
|
nr: [1, 2],
|
|
6889
7009
|
fc: 1
|
|
@@ -6975,7 +7095,7 @@ let m0 = [{
|
|
|
6975
7095
|
lngs: ["he", "iw"],
|
|
6976
7096
|
nr: [1, 2, 20, 21],
|
|
6977
7097
|
fc: 22
|
|
6978
|
-
}],
|
|
7098
|
+
}], Li = {
|
|
6979
7099
|
1: (i) => +(i > 1),
|
|
6980
7100
|
2: (i) => +(i != 1),
|
|
6981
7101
|
3: (i) => 0,
|
|
@@ -6999,28 +7119,28 @@ let m0 = [{
|
|
|
6999
7119
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
|
7000
7120
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
|
7001
7121
|
};
|
|
7002
|
-
const
|
|
7122
|
+
const vi = ["v1", "v2", "v3"], Ni = ["v4"], se = {
|
|
7003
7123
|
zero: 0,
|
|
7004
7124
|
one: 1,
|
|
7005
7125
|
two: 2,
|
|
7006
7126
|
few: 3,
|
|
7007
7127
|
many: 4,
|
|
7008
7128
|
other: 5
|
|
7009
|
-
},
|
|
7129
|
+
}, xi = () => {
|
|
7010
7130
|
const i = {};
|
|
7011
|
-
return
|
|
7131
|
+
return ki.forEach((e) => {
|
|
7012
7132
|
e.lngs.forEach((t) => {
|
|
7013
7133
|
i[t] = {
|
|
7014
7134
|
numbers: e.nr,
|
|
7015
|
-
plurals:
|
|
7135
|
+
plurals: Li[e.fc]
|
|
7016
7136
|
};
|
|
7017
7137
|
});
|
|
7018
7138
|
}), i;
|
|
7019
7139
|
};
|
|
7020
|
-
class
|
|
7140
|
+
class Ri {
|
|
7021
7141
|
constructor(e) {
|
|
7022
7142
|
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 ||
|
|
7143
|
+
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
7144
|
}
|
|
7025
7145
|
addRule(e, t) {
|
|
7026
7146
|
this.rules[e] = t;
|
|
@@ -7031,12 +7151,12 @@ class N0 {
|
|
|
7031
7151
|
getRule(e) {
|
|
7032
7152
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7033
7153
|
if (this.shouldUseIntlApi()) {
|
|
7034
|
-
const s = b1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal",
|
|
7154
|
+
const s = b1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
|
|
7035
7155
|
cleanedCode: s,
|
|
7036
7156
|
type: n
|
|
7037
7157
|
});
|
|
7038
|
-
if (
|
|
7039
|
-
return this.pluralRulesCache[
|
|
7158
|
+
if (a in this.pluralRulesCache)
|
|
7159
|
+
return this.pluralRulesCache[a];
|
|
7040
7160
|
let h;
|
|
7041
7161
|
try {
|
|
7042
7162
|
h = new Intl.PluralRules(s, {
|
|
@@ -7044,10 +7164,10 @@ class N0 {
|
|
|
7044
7164
|
});
|
|
7045
7165
|
} catch {
|
|
7046
7166
|
if (!e.match(/-|_/)) return;
|
|
7047
|
-
const
|
|
7048
|
-
h = this.getRule(
|
|
7167
|
+
const g = this.languageUtils.getLanguagePartFromCode(e);
|
|
7168
|
+
h = this.getRule(g, t);
|
|
7049
7169
|
}
|
|
7050
|
-
return this.pluralRulesCache[
|
|
7170
|
+
return this.pluralRulesCache[a] = h, h;
|
|
7051
7171
|
}
|
|
7052
7172
|
return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
|
|
7053
7173
|
}
|
|
@@ -7063,7 +7183,7 @@ class N0 {
|
|
|
7063
7183
|
getSuffixes(e) {
|
|
7064
7184
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7065
7185
|
const s = this.getRule(e, t);
|
|
7066
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n,
|
|
7186
|
+
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
7187
|
}
|
|
7068
7188
|
getSuffix(e, t) {
|
|
7069
7189
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -7074,18 +7194,18 @@ class N0 {
|
|
|
7074
7194
|
const s = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t));
|
|
7075
7195
|
let n = e.numbers[s];
|
|
7076
7196
|
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()}` :
|
|
7197
|
+
const a = () => this.options.prepend && n.toString() ? this.options.prepend + n.toString() : n.toString();
|
|
7198
|
+
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
7199
|
}
|
|
7080
7200
|
shouldUseIntlApi() {
|
|
7081
|
-
return !
|
|
7201
|
+
return !vi.includes(this.options.compatibilityJSON);
|
|
7082
7202
|
}
|
|
7083
7203
|
}
|
|
7084
7204
|
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 !
|
|
7205
|
+
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);
|
|
7206
|
+
return !a && n && M(t) && (a = Z1(i, t, s), a === void 0 && (a = Z1(e, t, s))), a;
|
|
7087
7207
|
}, S1 = (i) => i.replace(/\$/g, "$$$$");
|
|
7088
|
-
class
|
|
7208
|
+
class Mi {
|
|
7089
7209
|
constructor() {
|
|
7090
7210
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7091
7211
|
this.logger = X.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
@@ -7099,11 +7219,11 @@ class x0 {
|
|
|
7099
7219
|
escape: t,
|
|
7100
7220
|
escapeValue: s,
|
|
7101
7221
|
useRawValueToEscape: n,
|
|
7102
|
-
prefix:
|
|
7222
|
+
prefix: a,
|
|
7103
7223
|
prefixEscaped: h,
|
|
7104
|
-
suffix:
|
|
7105
|
-
suffixEscaped:
|
|
7106
|
-
formatSeparator:
|
|
7224
|
+
suffix: o,
|
|
7225
|
+
suffixEscaped: g,
|
|
7226
|
+
formatSeparator: d,
|
|
7107
7227
|
unescapeSuffix: l,
|
|
7108
7228
|
unescapePrefix: c,
|
|
7109
7229
|
nestingPrefix: u,
|
|
@@ -7111,10 +7231,10 @@ class x0 {
|
|
|
7111
7231
|
nestingSuffix: w,
|
|
7112
7232
|
nestingSuffixEscaped: k,
|
|
7113
7233
|
nestingOptionsSeparator: m,
|
|
7114
|
-
maxReplaces:
|
|
7115
|
-
alwaysFormat:
|
|
7234
|
+
maxReplaces: _,
|
|
7235
|
+
alwaysFormat: N
|
|
7116
7236
|
} = e.interpolation;
|
|
7117
|
-
this.escape = t !== void 0 ? t :
|
|
7237
|
+
this.escape = t !== void 0 ? t : ui, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = a ? c1(a) : h || "{{", this.suffix = o ? c1(o) : g || "}}", this.formatSeparator = d || ",", this.unescapePrefix = l ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = u ? c1(u) : p || c1("$t("), this.nestingSuffix = w ? c1(w) : k || c1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = _ || 1e3, this.alwaysFormat = N !== void 0 ? N : !1, this.resetRegExp();
|
|
7118
7238
|
}
|
|
7119
7239
|
reset() {
|
|
7120
7240
|
this.options && this.init(this.options);
|
|
@@ -7124,18 +7244,18 @@ class x0 {
|
|
|
7124
7244
|
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
7245
|
}
|
|
7126
7246
|
interpolate(e, t, s, n) {
|
|
7127
|
-
let
|
|
7128
|
-
const
|
|
7247
|
+
let a, h, o;
|
|
7248
|
+
const g = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, d = (p) => {
|
|
7129
7249
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
7130
|
-
const
|
|
7131
|
-
return this.alwaysFormat ? this.format(
|
|
7250
|
+
const _ = ne(t, g, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
7251
|
+
return this.alwaysFormat ? this.format(_, void 0, s, {
|
|
7132
7252
|
...n,
|
|
7133
7253
|
...t,
|
|
7134
7254
|
interpolationkey: p
|
|
7135
|
-
}) :
|
|
7255
|
+
}) : _;
|
|
7136
7256
|
}
|
|
7137
7257
|
const w = p.split(this.formatSeparator), k = w.shift().trim(), m = w.join(this.formatSeparator).trim();
|
|
7138
|
-
return this.format(ne(t,
|
|
7258
|
+
return this.format(ne(t, g, k, this.options.keySeparator, this.options.ignoreJSONStructure), m, s, {
|
|
7139
7259
|
...n,
|
|
7140
7260
|
...t,
|
|
7141
7261
|
interpolationkey: k
|
|
@@ -7150,66 +7270,66 @@ class x0 {
|
|
|
7150
7270
|
regex: this.regexp,
|
|
7151
7271
|
safeValue: (p) => this.escapeValue ? S1(this.escape(p)) : S1(p)
|
|
7152
7272
|
}].forEach((p) => {
|
|
7153
|
-
for (
|
|
7154
|
-
const w =
|
|
7155
|
-
if (h =
|
|
7273
|
+
for (o = 0; a = p.regex.exec(e); ) {
|
|
7274
|
+
const w = a[1].trim();
|
|
7275
|
+
if (h = d(w), h === void 0)
|
|
7156
7276
|
if (typeof l == "function") {
|
|
7157
|
-
const m = l(e,
|
|
7158
|
-
h =
|
|
7277
|
+
const m = l(e, a, n);
|
|
7278
|
+
h = M(m) ? m : "";
|
|
7159
7279
|
} else if (n && Object.prototype.hasOwnProperty.call(n, w))
|
|
7160
7280
|
h = "";
|
|
7161
7281
|
else if (c) {
|
|
7162
|
-
h =
|
|
7282
|
+
h = a[0];
|
|
7163
7283
|
continue;
|
|
7164
7284
|
} else
|
|
7165
7285
|
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), h = "";
|
|
7166
|
-
else !
|
|
7286
|
+
else !M(h) && !this.useRawValueToEscape && (h = J1(h));
|
|
7167
7287
|
const k = p.safeValue(h);
|
|
7168
|
-
if (e = e.replace(
|
|
7288
|
+
if (e = e.replace(a[0], k), c ? (p.regex.lastIndex += h.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
7169
7289
|
break;
|
|
7170
7290
|
}
|
|
7171
7291
|
}), e;
|
|
7172
7292
|
}
|
|
7173
7293
|
nest(e, t) {
|
|
7174
|
-
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n,
|
|
7175
|
-
const
|
|
7294
|
+
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, a, h;
|
|
7295
|
+
const o = (g, d) => {
|
|
7176
7296
|
const l = this.nestingOptionsSeparator;
|
|
7177
|
-
if (
|
|
7178
|
-
const c =
|
|
7297
|
+
if (g.indexOf(l) < 0) return g;
|
|
7298
|
+
const c = g.split(new RegExp(`${l}[ ]*{`));
|
|
7179
7299
|
let u = `{${c[1]}`;
|
|
7180
|
-
|
|
7300
|
+
g = c[0], u = this.interpolate(u, h);
|
|
7181
7301
|
const p = u.match(/'/g), w = u.match(/"/g);
|
|
7182
7302
|
(p && p.length % 2 === 0 && !w || w.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
|
|
7183
7303
|
try {
|
|
7184
|
-
h = JSON.parse(u),
|
|
7185
|
-
...
|
|
7304
|
+
h = JSON.parse(u), d && (h = {
|
|
7305
|
+
...d,
|
|
7186
7306
|
...h
|
|
7187
7307
|
});
|
|
7188
7308
|
} catch (k) {
|
|
7189
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${
|
|
7309
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${g}`, k), `${g}${l}${u}`;
|
|
7190
7310
|
}
|
|
7191
|
-
return h.defaultValue && h.defaultValue.indexOf(this.prefix) > -1 && delete h.defaultValue,
|
|
7311
|
+
return h.defaultValue && h.defaultValue.indexOf(this.prefix) > -1 && delete h.defaultValue, g;
|
|
7192
7312
|
};
|
|
7193
7313
|
for (; n = this.nestingRegexp.exec(e); ) {
|
|
7194
|
-
let
|
|
7314
|
+
let g = [];
|
|
7195
7315
|
h = {
|
|
7196
7316
|
...s
|
|
7197
|
-
}, h = h.replace && !
|
|
7198
|
-
let
|
|
7317
|
+
}, h = h.replace && !M(h.replace) ? h.replace : h, h.applyPostProcessor = !1, delete h.defaultValue;
|
|
7318
|
+
let d = !1;
|
|
7199
7319
|
if (n[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(n[1])) {
|
|
7200
7320
|
const l = n[1].split(this.formatSeparator).map((c) => c.trim());
|
|
7201
|
-
n[1] = l.shift(),
|
|
7321
|
+
n[1] = l.shift(), g = l, d = !0;
|
|
7202
7322
|
}
|
|
7203
|
-
if (
|
|
7204
|
-
|
|
7323
|
+
if (a = t(o.call(this, n[1].trim(), h), h), a && n[0] === e && !M(a)) return a;
|
|
7324
|
+
M(a) || (a = J1(a)), a || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), a = ""), d && (a = g.reduce((l, c) => this.format(l, c, s.lng, {
|
|
7205
7325
|
...s,
|
|
7206
7326
|
interpolationkey: n[1].trim()
|
|
7207
|
-
}),
|
|
7327
|
+
}), a.trim())), e = e.replace(n[0], a), this.regexp.lastIndex = 0;
|
|
7208
7328
|
}
|
|
7209
7329
|
return e;
|
|
7210
7330
|
}
|
|
7211
7331
|
}
|
|
7212
|
-
const
|
|
7332
|
+
const bi = (i) => {
|
|
7213
7333
|
let e = i.toLowerCase().trim();
|
|
7214
7334
|
const t = {};
|
|
7215
7335
|
if (i.indexOf("(") > -1) {
|
|
@@ -7218,8 +7338,8 @@ const R0 = (i) => {
|
|
|
7218
7338
|
const n = s[1].substring(0, s[1].length - 1);
|
|
7219
7339
|
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((h) => {
|
|
7220
7340
|
if (h) {
|
|
7221
|
-
const [
|
|
7222
|
-
t[l] || (t[l] =
|
|
7341
|
+
const [o, ...g] = h.split(":"), d = g.join(":").trim().replace(/^'+|'+$/g, ""), l = o.trim();
|
|
7342
|
+
t[l] || (t[l] = d), d === "false" && (t[l] = !1), d === "true" && (t[l] = !0), isNaN(d) || (t[l] = parseInt(d, 10));
|
|
7223
7343
|
}
|
|
7224
7344
|
});
|
|
7225
7345
|
}
|
|
@@ -7230,17 +7350,17 @@ const R0 = (i) => {
|
|
|
7230
7350
|
}, h1 = (i) => {
|
|
7231
7351
|
const e = {};
|
|
7232
7352
|
return (t, s, n) => {
|
|
7233
|
-
let
|
|
7234
|
-
n && n.interpolationkey && n.formatParams && n.formatParams[n.interpolationkey] && n[n.interpolationkey] && (
|
|
7235
|
-
...
|
|
7353
|
+
let a = n;
|
|
7354
|
+
n && n.interpolationkey && n.formatParams && n.formatParams[n.interpolationkey] && n[n.interpolationkey] && (a = {
|
|
7355
|
+
...a,
|
|
7236
7356
|
[n.interpolationkey]: void 0
|
|
7237
7357
|
});
|
|
7238
|
-
const h = s + JSON.stringify(
|
|
7239
|
-
let
|
|
7240
|
-
return
|
|
7358
|
+
const h = s + JSON.stringify(a);
|
|
7359
|
+
let o = e[h];
|
|
7360
|
+
return o || (o = i(b1(s), n), e[h] = o), o(t);
|
|
7241
7361
|
};
|
|
7242
7362
|
};
|
|
7243
|
-
class
|
|
7363
|
+
class yi {
|
|
7244
7364
|
constructor() {
|
|
7245
7365
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7246
7366
|
this.logger = X.create("formatter"), this.options = e, this.formats = {
|
|
@@ -7248,32 +7368,32 @@ class M0 {
|
|
|
7248
7368
|
const n = new Intl.NumberFormat(t, {
|
|
7249
7369
|
...s
|
|
7250
7370
|
});
|
|
7251
|
-
return (
|
|
7371
|
+
return (a) => n.format(a);
|
|
7252
7372
|
}),
|
|
7253
7373
|
currency: h1((t, s) => {
|
|
7254
7374
|
const n = new Intl.NumberFormat(t, {
|
|
7255
7375
|
...s,
|
|
7256
7376
|
style: "currency"
|
|
7257
7377
|
});
|
|
7258
|
-
return (
|
|
7378
|
+
return (a) => n.format(a);
|
|
7259
7379
|
}),
|
|
7260
7380
|
datetime: h1((t, s) => {
|
|
7261
7381
|
const n = new Intl.DateTimeFormat(t, {
|
|
7262
7382
|
...s
|
|
7263
7383
|
});
|
|
7264
|
-
return (
|
|
7384
|
+
return (a) => n.format(a);
|
|
7265
7385
|
}),
|
|
7266
7386
|
relativetime: h1((t, s) => {
|
|
7267
7387
|
const n = new Intl.RelativeTimeFormat(t, {
|
|
7268
7388
|
...s
|
|
7269
7389
|
});
|
|
7270
|
-
return (
|
|
7390
|
+
return (a) => n.format(a, s.range || "day");
|
|
7271
7391
|
}),
|
|
7272
7392
|
list: h1((t, s) => {
|
|
7273
7393
|
const n = new Intl.ListFormat(t, {
|
|
7274
7394
|
...s
|
|
7275
7395
|
});
|
|
7276
|
-
return (
|
|
7396
|
+
return (a) => n.format(a);
|
|
7277
7397
|
})
|
|
7278
7398
|
}, this.init(e);
|
|
7279
7399
|
}
|
|
@@ -7291,21 +7411,21 @@ class M0 {
|
|
|
7291
7411
|
}
|
|
7292
7412
|
format(e, t, s) {
|
|
7293
7413
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
7294
|
-
const
|
|
7295
|
-
if (
|
|
7296
|
-
const
|
|
7297
|
-
|
|
7414
|
+
const a = t.split(this.formatSeparator);
|
|
7415
|
+
if (a.length > 1 && a[0].indexOf("(") > 1 && a[0].indexOf(")") < 0 && a.find((o) => o.indexOf(")") > -1)) {
|
|
7416
|
+
const o = a.findIndex((g) => g.indexOf(")") > -1);
|
|
7417
|
+
a[0] = [a[0], ...a.splice(1, o)].join(this.formatSeparator);
|
|
7298
7418
|
}
|
|
7299
|
-
return
|
|
7419
|
+
return a.reduce((o, g) => {
|
|
7300
7420
|
const {
|
|
7301
|
-
formatName:
|
|
7421
|
+
formatName: d,
|
|
7302
7422
|
formatOptions: l
|
|
7303
|
-
} =
|
|
7304
|
-
if (this.formats[
|
|
7305
|
-
let c =
|
|
7423
|
+
} = bi(g);
|
|
7424
|
+
if (this.formats[d]) {
|
|
7425
|
+
let c = o;
|
|
7306
7426
|
try {
|
|
7307
7427
|
const u = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = u.locale || u.lng || n.locale || n.lng || s;
|
|
7308
|
-
c = this.formats[
|
|
7428
|
+
c = this.formats[d](o, p, {
|
|
7309
7429
|
...l,
|
|
7310
7430
|
...n,
|
|
7311
7431
|
...u
|
|
@@ -7315,58 +7435,58 @@ class M0 {
|
|
|
7315
7435
|
}
|
|
7316
7436
|
return c;
|
|
7317
7437
|
} else
|
|
7318
|
-
this.logger.warn(`there was no format function for ${
|
|
7319
|
-
return
|
|
7438
|
+
this.logger.warn(`there was no format function for ${d}`);
|
|
7439
|
+
return o;
|
|
7320
7440
|
}, e);
|
|
7321
7441
|
}
|
|
7322
7442
|
}
|
|
7323
|
-
const
|
|
7443
|
+
const Ei = (i, e) => {
|
|
7324
7444
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
|
7325
7445
|
};
|
|
7326
|
-
class
|
|
7446
|
+
class _i extends H1 {
|
|
7327
7447
|
constructor(e, t, s) {
|
|
7328
7448
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
7329
7449
|
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
7450
|
}
|
|
7331
7451
|
queueLoad(e, t, s, n) {
|
|
7332
|
-
const
|
|
7333
|
-
return e.forEach((
|
|
7452
|
+
const a = {}, h = {}, o = {}, g = {};
|
|
7453
|
+
return e.forEach((d) => {
|
|
7334
7454
|
let l = !0;
|
|
7335
7455
|
t.forEach((c) => {
|
|
7336
|
-
const u = `${
|
|
7337
|
-
!s.reload && this.store.hasResourceBundle(
|
|
7338
|
-
}), l || (
|
|
7339
|
-
}), (Object.keys(
|
|
7456
|
+
const u = `${d}|${c}`;
|
|
7457
|
+
!s.reload && this.store.hasResourceBundle(d, c) ? this.state[u] = 2 : this.state[u] < 0 || (this.state[u] === 1 ? h[u] === void 0 && (h[u] = !0) : (this.state[u] = 1, l = !1, h[u] === void 0 && (h[u] = !0), a[u] === void 0 && (a[u] = !0), g[c] === void 0 && (g[c] = !0)));
|
|
7458
|
+
}), l || (o[d] = !0);
|
|
7459
|
+
}), (Object.keys(a).length || Object.keys(h).length) && this.queue.push({
|
|
7340
7460
|
pending: h,
|
|
7341
7461
|
pendingCount: Object.keys(h).length,
|
|
7342
7462
|
loaded: {},
|
|
7343
7463
|
errors: [],
|
|
7344
7464
|
callback: n
|
|
7345
7465
|
}), {
|
|
7346
|
-
toLoad: Object.keys(
|
|
7466
|
+
toLoad: Object.keys(a),
|
|
7347
7467
|
pending: Object.keys(h),
|
|
7348
|
-
toLoadLanguages: Object.keys(
|
|
7349
|
-
toLoadNamespaces: Object.keys(
|
|
7468
|
+
toLoadLanguages: Object.keys(o),
|
|
7469
|
+
toLoadNamespaces: Object.keys(g)
|
|
7350
7470
|
};
|
|
7351
7471
|
}
|
|
7352
7472
|
loaded(e, t, s) {
|
|
7353
|
-
const n = e.split("|"),
|
|
7354
|
-
t && this.emit("failedLoading",
|
|
7473
|
+
const n = e.split("|"), a = n[0], h = n[1];
|
|
7474
|
+
t && this.emit("failedLoading", a, h, t), !t && s && this.store.addResourceBundle(a, h, s, void 0, void 0, {
|
|
7355
7475
|
skipCopy: !0
|
|
7356
7476
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
|
7357
|
-
const
|
|
7358
|
-
this.queue.forEach((
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
const l =
|
|
7477
|
+
const o = {};
|
|
7478
|
+
this.queue.forEach((g) => {
|
|
7479
|
+
hi(g.loaded, [a], h), Ei(g, e), t && g.errors.push(t), g.pendingCount === 0 && !g.done && (Object.keys(g.loaded).forEach((d) => {
|
|
7480
|
+
o[d] || (o[d] = {});
|
|
7481
|
+
const l = g.loaded[d];
|
|
7362
7482
|
l.length && l.forEach((c) => {
|
|
7363
|
-
|
|
7483
|
+
o[d][c] === void 0 && (o[d][c] = !0);
|
|
7364
7484
|
});
|
|
7365
|
-
}),
|
|
7366
|
-
}), this.emit("loaded",
|
|
7485
|
+
}), g.done = !0, g.errors.length ? g.callback(g.errors) : g.callback());
|
|
7486
|
+
}), this.emit("loaded", o), this.queue = this.queue.filter((g) => !g.done);
|
|
7367
7487
|
}
|
|
7368
7488
|
read(e, t, s) {
|
|
7369
|
-
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0,
|
|
7489
|
+
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, h = arguments.length > 5 ? arguments[5] : void 0;
|
|
7370
7490
|
if (!e.length) return h(null, {});
|
|
7371
7491
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
7372
7492
|
this.waitingReads.push({
|
|
@@ -7374,45 +7494,45 @@ class y0 extends H1 {
|
|
|
7374
7494
|
ns: t,
|
|
7375
7495
|
fcName: s,
|
|
7376
7496
|
tried: n,
|
|
7377
|
-
wait:
|
|
7497
|
+
wait: a,
|
|
7378
7498
|
callback: h
|
|
7379
7499
|
});
|
|
7380
7500
|
return;
|
|
7381
7501
|
}
|
|
7382
7502
|
this.readingCalls++;
|
|
7383
|
-
const
|
|
7503
|
+
const o = (d, l) => {
|
|
7384
7504
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
7385
7505
|
const c = this.waitingReads.shift();
|
|
7386
7506
|
this.read(c.lng, c.ns, c.fcName, c.tried, c.wait, c.callback);
|
|
7387
7507
|
}
|
|
7388
|
-
if (
|
|
7508
|
+
if (d && l && n < this.maxRetries) {
|
|
7389
7509
|
setTimeout(() => {
|
|
7390
|
-
this.read.call(this, e, t, s, n + 1,
|
|
7391
|
-
},
|
|
7510
|
+
this.read.call(this, e, t, s, n + 1, a * 2, h);
|
|
7511
|
+
}, a);
|
|
7392
7512
|
return;
|
|
7393
7513
|
}
|
|
7394
|
-
h(
|
|
7395
|
-
},
|
|
7396
|
-
if (
|
|
7514
|
+
h(d, l);
|
|
7515
|
+
}, g = this.backend[s].bind(this.backend);
|
|
7516
|
+
if (g.length === 2) {
|
|
7397
7517
|
try {
|
|
7398
|
-
const
|
|
7399
|
-
|
|
7400
|
-
} catch (
|
|
7401
|
-
|
|
7518
|
+
const d = g(e, t);
|
|
7519
|
+
d && typeof d.then == "function" ? d.then((l) => o(null, l)).catch(o) : o(null, d);
|
|
7520
|
+
} catch (d) {
|
|
7521
|
+
o(d);
|
|
7402
7522
|
}
|
|
7403
7523
|
return;
|
|
7404
7524
|
}
|
|
7405
|
-
return
|
|
7525
|
+
return g(e, t, o);
|
|
7406
7526
|
}
|
|
7407
7527
|
prepareLoading(e, t) {
|
|
7408
7528
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = arguments.length > 3 ? arguments[3] : void 0;
|
|
7409
7529
|
if (!this.backend)
|
|
7410
7530
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), n && n();
|
|
7411
|
-
|
|
7412
|
-
const
|
|
7413
|
-
if (!
|
|
7414
|
-
return
|
|
7415
|
-
|
|
7531
|
+
M(e) && (e = this.languageUtils.toResolveHierarchy(e)), M(t) && (t = [t]);
|
|
7532
|
+
const a = this.queueLoad(e, t, s, n);
|
|
7533
|
+
if (!a.toLoad.length)
|
|
7534
|
+
return a.pending.length || n(), null;
|
|
7535
|
+
a.toLoad.forEach((h) => {
|
|
7416
7536
|
this.loadOne(h);
|
|
7417
7537
|
});
|
|
7418
7538
|
}
|
|
@@ -7426,13 +7546,13 @@ class y0 extends H1 {
|
|
|
7426
7546
|
}
|
|
7427
7547
|
loadOne(e) {
|
|
7428
7548
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
7429
|
-
const s = e.split("|"), n = s[0],
|
|
7430
|
-
this.read(n,
|
|
7431
|
-
h && this.logger.warn(`${t}loading namespace ${
|
|
7549
|
+
const s = e.split("|"), n = s[0], a = s[1];
|
|
7550
|
+
this.read(n, a, "read", void 0, void 0, (h, o) => {
|
|
7551
|
+
h && this.logger.warn(`${t}loading namespace ${a} for language ${n} failed`, h), !h && o && this.logger.log(`${t}loaded namespace ${a} for language ${n}`, o), this.loaded(e, h, o);
|
|
7432
7552
|
});
|
|
7433
7553
|
}
|
|
7434
|
-
saveMissing(e, t, s, n,
|
|
7435
|
-
let h = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {},
|
|
7554
|
+
saveMissing(e, t, s, n, a) {
|
|
7555
|
+
let h = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, o = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
|
7436
7556
|
};
|
|
7437
7557
|
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
|
|
7438
7558
|
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!!!");
|
|
@@ -7440,19 +7560,19 @@ class y0 extends H1 {
|
|
|
7440
7560
|
}
|
|
7441
7561
|
if (!(s == null || s === "")) {
|
|
7442
7562
|
if (this.backend && this.backend.create) {
|
|
7443
|
-
const
|
|
7563
|
+
const g = {
|
|
7444
7564
|
...h,
|
|
7445
|
-
isUpdate:
|
|
7446
|
-
},
|
|
7447
|
-
if (
|
|
7565
|
+
isUpdate: a
|
|
7566
|
+
}, d = this.backend.create.bind(this.backend);
|
|
7567
|
+
if (d.length < 6)
|
|
7448
7568
|
try {
|
|
7449
7569
|
let l;
|
|
7450
|
-
|
|
7570
|
+
d.length === 5 ? l = d(e, t, s, n, g) : l = d(e, t, s, n), l && typeof l.then == "function" ? l.then((c) => o(null, c)).catch(o) : o(null, l);
|
|
7451
7571
|
} catch (l) {
|
|
7452
|
-
|
|
7572
|
+
o(l);
|
|
7453
7573
|
}
|
|
7454
7574
|
else
|
|
7455
|
-
|
|
7575
|
+
d(e, t, s, n, o, g);
|
|
7456
7576
|
}
|
|
7457
7577
|
!e || !e[0] || this.store.addResource(e[0], t, s, n);
|
|
7458
7578
|
}
|
|
@@ -7493,7 +7613,7 @@ const re = () => ({
|
|
|
7493
7613
|
appendNamespaceToCIMode: !1,
|
|
7494
7614
|
overloadTranslationOptionHandler: (i) => {
|
|
7495
7615
|
let e = {};
|
|
7496
|
-
if (typeof i[1] == "object" && (e = i[1]),
|
|
7616
|
+
if (typeof i[1] == "object" && (e = i[1]), M(i[1]) && (e.defaultValue = i[1]), M(i[2]) && (e.tDescription = i[2]), typeof i[2] == "object" || typeof i[3] == "object") {
|
|
7497
7617
|
const t = i[3] || i[2];
|
|
7498
7618
|
Object.keys(t).forEach((s) => {
|
|
7499
7619
|
e[s] = t[s];
|
|
@@ -7514,8 +7634,8 @@ const re = () => ({
|
|
|
7514
7634
|
maxReplaces: 1e3,
|
|
7515
7635
|
skipOnVariables: !0
|
|
7516
7636
|
}
|
|
7517
|
-
}), oe = (i) => (
|
|
7518
|
-
},
|
|
7637
|
+
}), oe = (i) => (M(i.ns) && (i.ns = [i.ns]), M(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), M(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), x1 = () => {
|
|
7638
|
+
}, Hi = (i) => {
|
|
7519
7639
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
|
7520
7640
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
|
7521
7641
|
});
|
|
@@ -7525,7 +7645,7 @@ class w1 extends H1 {
|
|
|
7525
7645
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
7526
7646
|
if (super(), this.options = oe(e), this.services = {}, this.logger = X, this.modules = {
|
|
7527
7647
|
external: []
|
|
7528
|
-
},
|
|
7648
|
+
}, Hi(this), t && !this.isInitialized && !e.isClone) {
|
|
7529
7649
|
if (!this.options.initImmediate)
|
|
7530
7650
|
return this.init(e, t), this;
|
|
7531
7651
|
setTimeout(() => {
|
|
@@ -7536,7 +7656,7 @@ class w1 extends H1 {
|
|
|
7536
7656
|
init() {
|
|
7537
7657
|
var e = this;
|
|
7538
7658
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
|
|
7539
|
-
this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (
|
|
7659
|
+
this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (M(t.ns) ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
|
|
7540
7660
|
const n = re();
|
|
7541
7661
|
this.options = {
|
|
7542
7662
|
...n,
|
|
@@ -7546,25 +7666,25 @@ class w1 extends H1 {
|
|
|
7546
7666
|
...n.interpolation,
|
|
7547
7667
|
...this.options.interpolation
|
|
7548
7668
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
7549
|
-
const
|
|
7669
|
+
const a = (l) => l ? typeof l == "function" ? new l() : l : null;
|
|
7550
7670
|
if (!this.options.isClone) {
|
|
7551
|
-
this.modules.logger ? X.init(
|
|
7671
|
+
this.modules.logger ? X.init(a(this.modules.logger), this.options) : X.init(null, this.options);
|
|
7552
7672
|
let l;
|
|
7553
|
-
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l =
|
|
7673
|
+
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = yi);
|
|
7554
7674
|
const c = new ie(this.options);
|
|
7555
7675
|
this.store = new ee(this.options.resources, this.options);
|
|
7556
7676
|
const u = this.services;
|
|
7557
|
-
u.logger = X, u.resourceStore = this.store, u.languageUtils = c, u.pluralResolver = new
|
|
7677
|
+
u.logger = X, u.resourceStore = this.store, u.languageUtils = c, u.pluralResolver = new Ri(c, {
|
|
7558
7678
|
prepend: this.options.pluralSeparator,
|
|
7559
7679
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
7560
7680
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
7561
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter =
|
|
7681
|
+
}), 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
7682
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
7563
|
-
}, u.backendConnector = new
|
|
7683
|
+
}, u.backendConnector = new _i(a(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
|
|
7564
7684
|
for (var w = arguments.length, k = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7565
7685
|
k[m - 1] = arguments[m];
|
|
7566
7686
|
e.emit(p, ...k);
|
|
7567
|
-
}), this.modules.languageDetector && (u.languageDetector =
|
|
7687
|
+
}), 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
7688
|
for (var w = arguments.length, k = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7569
7689
|
k[m - 1] = arguments[m];
|
|
7570
7690
|
e.emit(p, ...k);
|
|
@@ -7585,36 +7705,36 @@ class w1 extends H1 {
|
|
|
7585
7705
|
return e.store[l](...arguments), e;
|
|
7586
7706
|
};
|
|
7587
7707
|
});
|
|
7588
|
-
const
|
|
7708
|
+
const g = C1(), d = () => {
|
|
7589
7709
|
const l = (c, u) => {
|
|
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),
|
|
7710
|
+
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), g.resolve(u), s(c, u);
|
|
7591
7711
|
};
|
|
7592
7712
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return l(null, this.t.bind(this));
|
|
7593
7713
|
this.changeLanguage(this.options.lng, l);
|
|
7594
7714
|
};
|
|
7595
|
-
return this.options.resources || !this.options.initImmediate ?
|
|
7715
|
+
return this.options.resources || !this.options.initImmediate ? d() : setTimeout(d, 0), g;
|
|
7596
7716
|
}
|
|
7597
7717
|
loadResources(e) {
|
|
7598
7718
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : x1;
|
|
7599
|
-
const n =
|
|
7719
|
+
const n = M(e) ? e : this.language;
|
|
7600
7720
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
7601
7721
|
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
|
-
|
|
7722
|
+
const a = [], h = (o) => {
|
|
7723
|
+
if (!o || o === "cimode") return;
|
|
7724
|
+
this.services.languageUtils.toResolveHierarchy(o).forEach((d) => {
|
|
7725
|
+
d !== "cimode" && a.indexOf(d) < 0 && a.push(d);
|
|
7606
7726
|
});
|
|
7607
7727
|
};
|
|
7608
|
-
n ? h(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((
|
|
7609
|
-
!
|
|
7728
|
+
n ? h(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((g) => h(g)), this.options.preload && this.options.preload.forEach((o) => h(o)), this.services.backendConnector.load(a, this.options.ns, (o) => {
|
|
7729
|
+
!o && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(o);
|
|
7610
7730
|
});
|
|
7611
7731
|
} else
|
|
7612
7732
|
s(null);
|
|
7613
7733
|
}
|
|
7614
7734
|
reloadResources(e, t, s) {
|
|
7615
7735
|
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(
|
|
7736
|
+
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) => {
|
|
7737
|
+
n.resolve(), s(a);
|
|
7618
7738
|
}), n;
|
|
7619
7739
|
}
|
|
7620
7740
|
use(e) {
|
|
@@ -7637,41 +7757,41 @@ class w1 extends H1 {
|
|
|
7637
7757
|
this.isLanguageChangingTo = e;
|
|
7638
7758
|
const n = C1();
|
|
7639
7759
|
this.emit("languageChanging", e);
|
|
7640
|
-
const
|
|
7641
|
-
this.language =
|
|
7642
|
-
}, h = (
|
|
7643
|
-
|
|
7760
|
+
const a = (g) => {
|
|
7761
|
+
this.language = g, this.languages = this.services.languageUtils.toResolveHierarchy(g), this.resolvedLanguage = void 0, this.setResolvedLanguage(g);
|
|
7762
|
+
}, h = (g, d) => {
|
|
7763
|
+
d ? (a(d), this.translator.changeLanguage(d), this.isLanguageChangingTo = void 0, this.emit("languageChanged", d), this.logger.log("languageChanged", d)) : this.isLanguageChangingTo = void 0, n.resolve(function() {
|
|
7644
7764
|
return s.t(...arguments);
|
|
7645
|
-
}), t && t(
|
|
7765
|
+
}), t && t(g, function() {
|
|
7646
7766
|
return s.t(...arguments);
|
|
7647
7767
|
});
|
|
7648
|
-
},
|
|
7649
|
-
!e && !
|
|
7650
|
-
const
|
|
7651
|
-
|
|
7652
|
-
h(l,
|
|
7768
|
+
}, o = (g) => {
|
|
7769
|
+
!e && !g && this.services.languageDetector && (g = []);
|
|
7770
|
+
const d = M(g) ? g : this.services.languageUtils.getBestMatchFromCodes(g);
|
|
7771
|
+
d && (this.language || a(d), this.translator.language || this.translator.changeLanguage(d), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(d)), this.loadResources(d, (l) => {
|
|
7772
|
+
h(l, d);
|
|
7653
7773
|
});
|
|
7654
7774
|
};
|
|
7655
|
-
return !e && this.services.languageDetector && !this.services.languageDetector.async ?
|
|
7775
|
+
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
7776
|
}
|
|
7657
7777
|
getFixedT(e, t, s) {
|
|
7658
7778
|
var n = this;
|
|
7659
|
-
const
|
|
7660
|
-
let
|
|
7661
|
-
if (typeof
|
|
7662
|
-
for (var
|
|
7779
|
+
const a = function(h, o) {
|
|
7780
|
+
let g;
|
|
7781
|
+
if (typeof o != "object") {
|
|
7782
|
+
for (var d = arguments.length, l = new Array(d > 2 ? d - 2 : 0), c = 2; c < d; c++)
|
|
7663
7783
|
l[c - 2] = arguments[c];
|
|
7664
|
-
|
|
7784
|
+
g = n.options.overloadTranslationOptionHandler([h, o].concat(l));
|
|
7665
7785
|
} else
|
|
7666
|
-
|
|
7667
|
-
...
|
|
7786
|
+
g = {
|
|
7787
|
+
...o
|
|
7668
7788
|
};
|
|
7669
|
-
|
|
7789
|
+
g.lng = g.lng || a.lng, g.lngs = g.lngs || a.lngs, g.ns = g.ns || a.ns, g.keyPrefix !== "" && (g.keyPrefix = g.keyPrefix || s || a.keyPrefix);
|
|
7670
7790
|
const u = n.options.keySeparator || ".";
|
|
7671
7791
|
let p;
|
|
7672
|
-
return
|
|
7792
|
+
return g.keyPrefix && Array.isArray(h) ? p = h.map((w) => `${g.keyPrefix}${u}${w}`) : p = g.keyPrefix ? `${g.keyPrefix}${u}${h}` : h, n.t(p, g);
|
|
7673
7793
|
};
|
|
7674
|
-
return
|
|
7794
|
+
return M(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = s, a;
|
|
7675
7795
|
}
|
|
7676
7796
|
t() {
|
|
7677
7797
|
return this.translator && this.translator.translate(...arguments);
|
|
@@ -7688,21 +7808,21 @@ class w1 extends H1 {
|
|
|
7688
7808
|
return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
|
|
7689
7809
|
if (!this.languages || !this.languages.length)
|
|
7690
7810
|
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,
|
|
7811
|
+
const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
|
|
7692
7812
|
if (s.toLowerCase() === "cimode") return !0;
|
|
7693
|
-
const h = (
|
|
7694
|
-
const
|
|
7695
|
-
return
|
|
7813
|
+
const h = (o, g) => {
|
|
7814
|
+
const d = this.services.backendConnector.state[`${o}|${g}`];
|
|
7815
|
+
return d === -1 || d === 0 || d === 2;
|
|
7696
7816
|
};
|
|
7697
7817
|
if (t.precheck) {
|
|
7698
|
-
const
|
|
7699
|
-
if (
|
|
7818
|
+
const o = t.precheck(this, h);
|
|
7819
|
+
if (o !== void 0) return o;
|
|
7700
7820
|
}
|
|
7701
|
-
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || h(s, e) && (!n || h(
|
|
7821
|
+
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || h(s, e) && (!n || h(a, e)));
|
|
7702
7822
|
}
|
|
7703
7823
|
loadNamespaces(e, t) {
|
|
7704
7824
|
const s = C1();
|
|
7705
|
-
return this.options.ns ? (
|
|
7825
|
+
return this.options.ns ? (M(e) && (e = [e]), e.forEach((n) => {
|
|
7706
7826
|
this.options.ns.indexOf(n) < 0 && this.options.ns.push(n);
|
|
7707
7827
|
}), this.loadResources((n) => {
|
|
7708
7828
|
s.resolve(), t && t(n);
|
|
@@ -7710,9 +7830,9 @@ class w1 extends H1 {
|
|
|
7710
7830
|
}
|
|
7711
7831
|
loadLanguages(e, t) {
|
|
7712
7832
|
const s = C1();
|
|
7713
|
-
|
|
7714
|
-
const n = this.options.preload || [],
|
|
7715
|
-
return
|
|
7833
|
+
M(e) && (e = [e]);
|
|
7834
|
+
const n = this.options.preload || [], a = e.filter((h) => n.indexOf(h) < 0 && this.services.languageUtils.isSupportedCode(h));
|
|
7835
|
+
return a.length ? (this.options.preload = n.concat(a), this.loadResources((h) => {
|
|
7716
7836
|
s.resolve(), t && t(h);
|
|
7717
7837
|
}), s) : (t && t(), Promise.resolve());
|
|
7718
7838
|
}
|
|
@@ -7733,20 +7853,20 @@ class w1 extends H1 {
|
|
|
7733
7853
|
...this.options,
|
|
7734
7854
|
...e,
|
|
7735
7855
|
isClone: !0
|
|
7736
|
-
},
|
|
7737
|
-
return (e.debug !== void 0 || e.prefix !== void 0) && (
|
|
7738
|
-
o
|
|
7739
|
-
}),
|
|
7856
|
+
}, a = new w1(n);
|
|
7857
|
+
return (e.debug !== void 0 || e.prefix !== void 0) && (a.logger = a.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
|
|
7858
|
+
a[o] = this[o];
|
|
7859
|
+
}), a.services = {
|
|
7740
7860
|
...this.services
|
|
7741
|
-
},
|
|
7742
|
-
hasLoadedNamespace:
|
|
7743
|
-
}, s && (
|
|
7744
|
-
for (var
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
}),
|
|
7748
|
-
hasLoadedNamespace:
|
|
7749
|
-
},
|
|
7861
|
+
}, a.services.utils = {
|
|
7862
|
+
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
7863
|
+
}, 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) {
|
|
7864
|
+
for (var g = arguments.length, d = new Array(g > 1 ? g - 1 : 0), l = 1; l < g; l++)
|
|
7865
|
+
d[l - 1] = arguments[l];
|
|
7866
|
+
a.emit(o, ...d);
|
|
7867
|
+
}), a.init(n, t), a.translator.options = n, a.translator.backendConnector.services.utils = {
|
|
7868
|
+
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
7869
|
+
}, a;
|
|
7750
7870
|
}
|
|
7751
7871
|
toJSON() {
|
|
7752
7872
|
return {
|
|
@@ -7774,63 +7894,63 @@ Y.setDefaultNamespace;
|
|
|
7774
7894
|
Y.hasLoadedNamespace;
|
|
7775
7895
|
Y.loadNamespaces;
|
|
7776
7896
|
Y.loadLanguages;
|
|
7777
|
-
const
|
|
7778
|
-
archived:
|
|
7779
|
-
deleted:
|
|
7780
|
-
},
|
|
7781
|
-
archived:
|
|
7782
|
-
deleted:
|
|
7897
|
+
const Ii = "Archived", Oi = "Deleted", Si = {
|
|
7898
|
+
archived: Ii,
|
|
7899
|
+
deleted: Oi
|
|
7900
|
+
}, Vi = "Заархивирован", Ai = "Удалён", Ti = {
|
|
7901
|
+
archived: Vi,
|
|
7902
|
+
deleted: Ai
|
|
7783
7903
|
};
|
|
7784
|
-
Y.use(
|
|
7904
|
+
Y.use(ii).init({
|
|
7785
7905
|
defaultNS: "common",
|
|
7786
7906
|
lng: "en",
|
|
7787
7907
|
resources: {
|
|
7788
7908
|
en: {
|
|
7789
|
-
common:
|
|
7909
|
+
common: Si
|
|
7790
7910
|
},
|
|
7791
7911
|
ru: {
|
|
7792
|
-
common:
|
|
7912
|
+
common: Ti
|
|
7793
7913
|
}
|
|
7794
7914
|
}
|
|
7795
7915
|
});
|
|
7796
|
-
const
|
|
7916
|
+
const Ki = k1(
|
|
7797
7917
|
({
|
|
7798
7918
|
fetchParams: i,
|
|
7799
7919
|
mode: e = void 0,
|
|
7800
7920
|
placeholder: t,
|
|
7801
7921
|
disabled: s,
|
|
7802
7922
|
value: n,
|
|
7803
|
-
onChange:
|
|
7923
|
+
onChange: a,
|
|
7804
7924
|
onError: h,
|
|
7805
|
-
allowEmpty:
|
|
7806
|
-
showAvatar:
|
|
7807
|
-
clearable:
|
|
7925
|
+
allowEmpty: o = !1,
|
|
7926
|
+
showAvatar: g = !1,
|
|
7927
|
+
clearable: d,
|
|
7808
7928
|
required: l,
|
|
7809
7929
|
error: c
|
|
7810
7930
|
}, u) => {
|
|
7811
|
-
const { axiosPeople: p, locale: w } = r1(_e), { t: k } =
|
|
7812
|
-
if (_1(u, () =>
|
|
7931
|
+
const { axiosPeople: p, locale: w } = r1(_e), { t: k } = ai("common", { lng: w }), [m, _] = T([]), [N, S] = T(!0), f = q(m), x = q(null);
|
|
7932
|
+
if (_1(u, () => x.current), !p)
|
|
7813
7933
|
throw new Error(
|
|
7814
7934
|
`UserSelect requires "axiosPeople" to fetch users.
|
|
7815
7935
|
Please provide it via SNMTUiContext.`
|
|
7816
7936
|
);
|
|
7817
|
-
const
|
|
7937
|
+
const R = $(
|
|
7818
7938
|
(H) => {
|
|
7819
|
-
let
|
|
7820
|
-
return H.deletedAt && (
|
|
7939
|
+
let D = "";
|
|
7940
|
+
return H.deletedAt && (D += `[${k("deleted")}] `), H.status === R1.ARCHIVED && (D += `[${k("archived")}] `), `${D}${H.firstName} ${H.lastName}`;
|
|
7821
7941
|
},
|
|
7822
7942
|
[k]
|
|
7823
7943
|
), v = $(
|
|
7824
7944
|
async ({
|
|
7825
7945
|
offset: H,
|
|
7826
|
-
limit:
|
|
7946
|
+
limit: D,
|
|
7827
7947
|
search: I
|
|
7828
7948
|
}) => {
|
|
7829
|
-
var V,
|
|
7949
|
+
var V, Z, W;
|
|
7830
7950
|
try {
|
|
7831
7951
|
const U = await p.post("v1/users/search", {
|
|
7832
7952
|
offset: H,
|
|
7833
|
-
limit:
|
|
7953
|
+
limit: D,
|
|
7834
7954
|
search: I,
|
|
7835
7955
|
...i,
|
|
7836
7956
|
includeCount: !0
|
|
@@ -7838,93 +7958,93 @@ const W0 = k1(
|
|
|
7838
7958
|
return {
|
|
7839
7959
|
options: O.map((G) => ({
|
|
7840
7960
|
value: G.id,
|
|
7841
|
-
label:
|
|
7842
|
-
image:
|
|
7961
|
+
label: R(G),
|
|
7962
|
+
image: g ? G.avatarUrl : void 0
|
|
7843
7963
|
})),
|
|
7844
7964
|
count: K.count
|
|
7845
7965
|
};
|
|
7846
7966
|
} catch (U) {
|
|
7847
7967
|
return h && h({
|
|
7848
7968
|
status: ((V = U.response) == null ? void 0 : V.status) ?? 500,
|
|
7849
|
-
message: ((W = (
|
|
7969
|
+
message: ((W = (Z = U.response) == null ? void 0 : Z.data) == null ? void 0 : W.message) ?? "Error while fetching options"
|
|
7850
7970
|
}), {
|
|
7851
7971
|
options: [],
|
|
7852
7972
|
count: 0
|
|
7853
7973
|
};
|
|
7854
7974
|
}
|
|
7855
7975
|
},
|
|
7856
|
-
[p, i,
|
|
7976
|
+
[p, i, R, g, h]
|
|
7857
7977
|
), P = $(
|
|
7858
7978
|
async (H) => {
|
|
7859
|
-
var
|
|
7979
|
+
var D, I, V;
|
|
7860
7980
|
try {
|
|
7861
|
-
const
|
|
7981
|
+
const Z = H.filter(
|
|
7862
7982
|
(O) => !f.current.some((K) => K.value === O)
|
|
7863
7983
|
);
|
|
7864
7984
|
let W = [];
|
|
7865
|
-
|
|
7985
|
+
Z.length && (W = (await p.post("v1/users/search", {
|
|
7866
7986
|
filters: {
|
|
7867
|
-
id:
|
|
7987
|
+
id: Z,
|
|
7868
7988
|
status: [R1.ACTIVE, R1.ARCHIVED]
|
|
7869
7989
|
}
|
|
7870
7990
|
})).data.data);
|
|
7871
7991
|
const U = W.map((O) => ({
|
|
7872
7992
|
value: O.id,
|
|
7873
|
-
label:
|
|
7874
|
-
image:
|
|
7993
|
+
label: R(O),
|
|
7994
|
+
image: g ? O.avatarUrl : void 0
|
|
7875
7995
|
}));
|
|
7876
7996
|
return [...f.current, ...U];
|
|
7877
|
-
} catch (
|
|
7997
|
+
} catch (Z) {
|
|
7878
7998
|
return h && h({
|
|
7879
|
-
status: ((
|
|
7880
|
-
message: ((V = (I =
|
|
7999
|
+
status: ((D = Z.response) == null ? void 0 : D.status) ?? 500,
|
|
8000
|
+
message: ((V = (I = Z.response) == null ? void 0 : I.data) == null ? void 0 : V.message) ?? "Error while fetching selected items"
|
|
7881
8001
|
}), [];
|
|
7882
8002
|
}
|
|
7883
8003
|
},
|
|
7884
|
-
[p,
|
|
8004
|
+
[p, R, h, g]
|
|
7885
8005
|
);
|
|
7886
|
-
|
|
8006
|
+
j(() => {
|
|
7887
8007
|
f.current = m;
|
|
7888
|
-
}, [m]),
|
|
8008
|
+
}, [m]), j(() => {
|
|
7889
8009
|
var H;
|
|
7890
|
-
(H =
|
|
7891
|
-
}, [i]),
|
|
8010
|
+
(H = x.current) == null || H.refetchOptions();
|
|
8011
|
+
}, [i]), j(() => {
|
|
7892
8012
|
if (!n) {
|
|
7893
8013
|
S(!1);
|
|
7894
8014
|
return;
|
|
7895
8015
|
}
|
|
7896
8016
|
(async () => {
|
|
7897
|
-
const
|
|
7898
|
-
|
|
8017
|
+
const D = Array.isArray(n) ? n : [n], I = await P(D);
|
|
8018
|
+
_(I), S(!1);
|
|
7899
8019
|
})();
|
|
7900
8020
|
}, [P, n]);
|
|
7901
8021
|
const J = $(
|
|
7902
8022
|
async ({
|
|
7903
8023
|
limit: H,
|
|
7904
|
-
offset:
|
|
8024
|
+
offset: D,
|
|
7905
8025
|
search: I
|
|
7906
8026
|
}) => {
|
|
7907
|
-
const { count: V, ...
|
|
7908
|
-
offset:
|
|
8027
|
+
const { count: V, ...Z } = await v({
|
|
8028
|
+
offset: D,
|
|
7909
8029
|
limit: H,
|
|
7910
8030
|
search: I
|
|
7911
8031
|
});
|
|
7912
|
-
let W =
|
|
7913
|
-
return
|
|
8032
|
+
let W = Z.options;
|
|
8033
|
+
return o && D === 0 && (W = [{ value: null, label: "None" }, ...W]), {
|
|
7914
8034
|
options: W,
|
|
7915
8035
|
count: V,
|
|
7916
8036
|
limit: H
|
|
7917
8037
|
};
|
|
7918
8038
|
},
|
|
7919
|
-
[
|
|
8039
|
+
[o, v]
|
|
7920
8040
|
);
|
|
7921
|
-
if (
|
|
7922
|
-
return /* @__PURE__ */ r(
|
|
8041
|
+
if (N)
|
|
8042
|
+
return /* @__PURE__ */ r(K5, {});
|
|
7923
8043
|
const F = {
|
|
7924
|
-
ref:
|
|
8044
|
+
ref: x,
|
|
7925
8045
|
placeholder: t,
|
|
7926
8046
|
disabled: s,
|
|
7927
|
-
clearable:
|
|
8047
|
+
clearable: d,
|
|
7928
8048
|
required: l,
|
|
7929
8049
|
error: c
|
|
7930
8050
|
};
|
|
@@ -7934,7 +8054,7 @@ const W0 = k1(
|
|
|
7934
8054
|
...F,
|
|
7935
8055
|
mode: e,
|
|
7936
8056
|
value: n,
|
|
7937
|
-
onChange:
|
|
8057
|
+
onChange: a,
|
|
7938
8058
|
loadOptions: J,
|
|
7939
8059
|
preloadOptions: !0,
|
|
7940
8060
|
extraOptions: m
|
|
@@ -7945,7 +8065,7 @@ const W0 = k1(
|
|
|
7945
8065
|
...F,
|
|
7946
8066
|
value: n,
|
|
7947
8067
|
mode: void 0,
|
|
7948
|
-
onChange:
|
|
8068
|
+
onChange: a,
|
|
7949
8069
|
loadOptions: J,
|
|
7950
8070
|
preloadOptions: !0,
|
|
7951
8071
|
extraOptions: m
|
|
@@ -7954,5 +8074,5 @@ const W0 = k1(
|
|
|
7954
8074
|
}
|
|
7955
8075
|
);
|
|
7956
8076
|
export {
|
|
7957
|
-
|
|
8077
|
+
Ki as UserSelect
|
|
7958
8078
|
};
|