@snmt-react-ui/user-select 2.7.15 → 2.7.17
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/index.css +1 -1
- package/dist/user-select.js +1090 -1066
- package/package.json +4 -4
package/dist/user-select.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var Le = Object.defineProperty;
|
|
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 j1 = (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,
|
|
7
|
-
import { Select as
|
|
8
|
-
import { SNMTUiContext as
|
|
9
|
-
var
|
|
10
|
-
function
|
|
6
|
+
import { createContext as d1, forwardRef as k1, useRef as q, useImperativeHandle as _1, useState as T, useEffect as Z, useCallback as $, useMemo as Ne, useContext as r1 } from "react";
|
|
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
|
+
import { SNMTUiContext as _e } from "@snmt-react-ui/core";
|
|
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 : {};
|
|
10
|
+
function Ve() {
|
|
11
11
|
if (console && console.warn) {
|
|
12
12
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
13
13
|
e[t] = arguments[t];
|
|
14
14
|
s1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
function
|
|
17
|
+
const Z1 = {};
|
|
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]) && Z1[e[0]] || (s1(e[0]) && (Z1[e[0]] = /* @__PURE__ */ new Date()), Ve(...e));
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const ce = (i, e) => () => {
|
|
24
24
|
if (i.isInitialized)
|
|
25
25
|
e();
|
|
26
26
|
else {
|
|
@@ -31,30 +31,30 @@ const le = (i, e) => () => {
|
|
|
31
31
|
};
|
|
32
32
|
i.on("initialized", t);
|
|
33
33
|
}
|
|
34
|
-
},
|
|
35
|
-
i.loadNamespaces(e,
|
|
36
|
-
},
|
|
34
|
+
}, W1 = (i, e, t) => {
|
|
35
|
+
i.loadNamespaces(e, ce(i, t));
|
|
36
|
+
}, G1 = (i, e, t, s) => {
|
|
37
37
|
s1(t) && (t = [t]), t.forEach((n) => {
|
|
38
38
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
39
|
-
}), i.loadLanguages(e,
|
|
40
|
-
},
|
|
39
|
+
}), i.loadLanguages(e, ce(i, s));
|
|
40
|
+
}, Ae = function(i, e) {
|
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
42
42
|
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
|
43
43
|
if (s.toLowerCase() === "cimode") return !0;
|
|
44
|
-
const
|
|
44
|
+
const h = (a, d) => {
|
|
45
45
|
const g = e.services.backendConnector.state[`${a}|${d}`];
|
|
46
46
|
return g === -1 || g === 2;
|
|
47
47
|
};
|
|
48
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !
|
|
49
|
-
},
|
|
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(o, i)));
|
|
49
|
+
}, Te = function(i, e) {
|
|
50
50
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
51
|
-
return !e.languages || !e.languages.length ? (
|
|
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, {
|
|
52
52
|
lng: t.lng,
|
|
53
53
|
precheck: (s, n) => {
|
|
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
|
-
}) :
|
|
57
|
-
}, s1 = (i) => typeof i == "string",
|
|
56
|
+
}) : Ae(i, e, t);
|
|
57
|
+
}, s1 = (i) => typeof i == "string", De = (i) => typeof i == "object" && i !== null, Be = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, je = {
|
|
58
58
|
"&": "&",
|
|
59
59
|
"&": "&",
|
|
60
60
|
"<": "<",
|
|
@@ -75,8 +75,8 @@ const le = (i, e) => () => {
|
|
|
75
75
|
"…": "…",
|
|
76
76
|
"/": "/",
|
|
77
77
|
"/": "/"
|
|
78
|
-
},
|
|
79
|
-
let
|
|
78
|
+
}, Ze = (i) => je[i], We = (i) => i.replace(Be, Ze);
|
|
79
|
+
let Ge = {
|
|
80
80
|
bindI18n: "languageChanged",
|
|
81
81
|
bindI18nStore: "",
|
|
82
82
|
transEmptyNodeValue: "",
|
|
@@ -84,14 +84,14 @@ let We = {
|
|
|
84
84
|
transWrapTextNodes: "",
|
|
85
85
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
86
86
|
useSuspense: !0,
|
|
87
|
-
unescape:
|
|
87
|
+
unescape: We
|
|
88
88
|
};
|
|
89
|
-
const
|
|
90
|
-
let
|
|
91
|
-
const
|
|
92
|
-
class
|
|
89
|
+
const Ke = () => Ge;
|
|
90
|
+
let $e;
|
|
91
|
+
const Pe = () => $e, Fe = d1();
|
|
92
|
+
class Ye {
|
|
93
93
|
constructor() {
|
|
94
|
-
|
|
94
|
+
Oe(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
|
95
95
|
}
|
|
96
96
|
addUsedNamespaces(e) {
|
|
97
97
|
e.forEach((t) => {
|
|
@@ -99,62 +99,62 @@ class Fe {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
const
|
|
103
|
-
const t =
|
|
104
|
-
return
|
|
102
|
+
const Ue = (i, e) => {
|
|
103
|
+
const t = q();
|
|
104
|
+
return Z(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
|
-
}, he = (i, e, t, s) => i.getFixedT(e, t, s),
|
|
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) {
|
|
108
108
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
109
109
|
const {
|
|
110
110
|
i18n: t
|
|
111
111
|
} = e, {
|
|
112
112
|
i18n: s,
|
|
113
113
|
defaultNS: n
|
|
114
|
-
} = r1(
|
|
115
|
-
if (o && !o.reportNamespaces && (o.reportNamespaces = new
|
|
116
|
-
|
|
117
|
-
const f = (x,
|
|
114
|
+
} = r1(Fe) || {}, o = t || s || Pe();
|
|
115
|
+
if (o && !o.reportNamespaces && (o.reportNamespaces = new Ye()), !o) {
|
|
116
|
+
V1("You will need to pass in an i18next instance by using initReactI18next");
|
|
117
|
+
const f = (x, v) => s1(v) ? v : De(v) && s1(v.defaultValue) ? v.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
|
|
118
118
|
return N.t = f, N.i18n = {}, N.ready = !1, N;
|
|
119
119
|
}
|
|
120
|
-
o.options.react && o.options.react.wait !== void 0 &&
|
|
121
|
-
const
|
|
122
|
-
...
|
|
120
|
+
o.options.react && o.options.react.wait !== void 0 && V1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
121
|
+
const h = {
|
|
122
|
+
...Ke(),
|
|
123
123
|
...o.options.react,
|
|
124
124
|
...e
|
|
125
125
|
}, {
|
|
126
126
|
useSuspense: a,
|
|
127
127
|
keyPrefix: d
|
|
128
|
-
} =
|
|
128
|
+
} = h;
|
|
129
129
|
let g = i;
|
|
130
130
|
g = s1(g) ? [g] : g || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(g);
|
|
131
|
-
const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) =>
|
|
131
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) => Te(f, o, h)), c = ze(o, e.lng || null, h.nsMode === "fallback" ? g : g[0], d), u = () => c, p = () => he(o, e.lng || null, h.nsMode === "fallback" ? g : g[0], d), [w, k] = T(u);
|
|
132
132
|
let m = g.join();
|
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const y = Ue(m), M = q(!0);
|
|
135
|
+
Z(() => {
|
|
136
136
|
const {
|
|
137
137
|
bindI18n: f,
|
|
138
138
|
bindI18nStore: N
|
|
139
|
-
} =
|
|
140
|
-
M.current = !0, !l && !a && (e.lng ?
|
|
141
|
-
M.current &&
|
|
142
|
-
}) :
|
|
143
|
-
M.current &&
|
|
144
|
-
})), l &&
|
|
139
|
+
} = h;
|
|
140
|
+
M.current = !0, !l && !a && (e.lng ? G1(o, e.lng, g, () => {
|
|
141
|
+
M.current && k(p);
|
|
142
|
+
}) : W1(o, g, () => {
|
|
143
|
+
M.current && k(p);
|
|
144
|
+
})), l && y && y !== m && M.current && k(p);
|
|
145
145
|
const x = () => {
|
|
146
|
-
M.current &&
|
|
146
|
+
M.current && k(p);
|
|
147
147
|
};
|
|
148
148
|
return f && o && o.on(f, x), N && o && o.store.on(N, x), () => {
|
|
149
|
-
M.current = !1, f && o && f.split(" ").forEach((
|
|
149
|
+
M.current = !1, f && o && f.split(" ").forEach((v) => o.off(v, x)), N && o && N.split(" ").forEach((v) => o.store.off(v, x));
|
|
150
150
|
};
|
|
151
|
-
}, [o, m]),
|
|
152
|
-
M.current && l &&
|
|
151
|
+
}, [o, m]), Z(() => {
|
|
152
|
+
M.current && l && k(u);
|
|
153
153
|
}, [o, d, l]);
|
|
154
|
-
const S = [
|
|
155
|
-
if (S.t =
|
|
154
|
+
const S = [w, o, l];
|
|
155
|
+
if (S.t = w, S.i18n = o, S.ready = l, l || !l && !a) return S;
|
|
156
156
|
throw new Promise((f) => {
|
|
157
|
-
e.lng ?
|
|
157
|
+
e.lng ? G1(o, e.lng, g, () => f()) : W1(o, g, () => f());
|
|
158
158
|
});
|
|
159
159
|
}, p1 = ({
|
|
160
160
|
children: i,
|
|
@@ -163,10 +163,10 @@ const Ye = (i, e) => {
|
|
|
163
163
|
alignItems: s = "normal",
|
|
164
164
|
justifyContent: n = "normal",
|
|
165
165
|
flex: o,
|
|
166
|
-
gap:
|
|
166
|
+
gap: h,
|
|
167
167
|
padding: a
|
|
168
168
|
}) => /* @__PURE__ */ r(
|
|
169
|
-
|
|
169
|
+
Re,
|
|
170
170
|
{
|
|
171
171
|
className: `snmt-flex${t === "inherit" ? " inherit" : ""}`,
|
|
172
172
|
vertical: e === "column",
|
|
@@ -174,14 +174,14 @@ const Ye = (i, e) => {
|
|
|
174
174
|
align: s,
|
|
175
175
|
justify: n,
|
|
176
176
|
flex: o,
|
|
177
|
-
gap:
|
|
177
|
+
gap: h,
|
|
178
178
|
style: { padding: a },
|
|
179
179
|
children: i
|
|
180
180
|
}
|
|
181
|
-
),
|
|
181
|
+
), qe = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
|
|
182
182
|
const n = typeof s.src == "string";
|
|
183
183
|
return /* @__PURE__ */ r(
|
|
184
|
-
|
|
184
|
+
Me,
|
|
185
185
|
{
|
|
186
186
|
className: `snmt-avatar ${n ? "image" : ""}`,
|
|
187
187
|
shape: i,
|
|
@@ -192,13 +192,13 @@ const Ye = (i, e) => {
|
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
194
|
};
|
|
195
|
-
var
|
|
196
|
-
const
|
|
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 B1 = d1({
|
|
197
197
|
locale: "en",
|
|
198
198
|
theme: "light"
|
|
199
199
|
});
|
|
200
|
-
|
|
201
|
-
const
|
|
200
|
+
B1.Provider;
|
|
201
|
+
const Qe = ({
|
|
202
202
|
checked: i = !0,
|
|
203
203
|
indeterminate: e = !1,
|
|
204
204
|
children: t,
|
|
@@ -206,32 +206,32 @@ const qe = ({
|
|
|
206
206
|
disabled: n = !1,
|
|
207
207
|
disableUncheck: o = !1
|
|
208
208
|
}) => {
|
|
209
|
-
const [
|
|
210
|
-
|
|
209
|
+
const [h, a] = T(i), [d, g] = T(e);
|
|
210
|
+
Z(() => {
|
|
211
211
|
a(i), g(e);
|
|
212
212
|
}, [i, e]);
|
|
213
|
-
const { theme: l } = r1(
|
|
213
|
+
const { theme: l } = r1(B1);
|
|
214
214
|
return /* @__PURE__ */ r(
|
|
215
|
-
|
|
215
|
+
be,
|
|
216
216
|
{
|
|
217
217
|
className: `snmt-checkbox snmt-checkbox-${l}`,
|
|
218
|
-
checked:
|
|
218
|
+
checked: h,
|
|
219
219
|
indeterminate: d,
|
|
220
|
-
onChange: (
|
|
221
|
-
o &&
|
|
220
|
+
onChange: (c) => {
|
|
221
|
+
o && h || (g(!1), a(c.target.checked), s && s(c));
|
|
222
222
|
},
|
|
223
223
|
disabled: n,
|
|
224
224
|
children: t
|
|
225
225
|
}
|
|
226
226
|
);
|
|
227
227
|
};
|
|
228
|
-
var
|
|
229
|
-
const
|
|
228
|
+
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 || {});
|
|
229
|
+
const de = d1({
|
|
230
230
|
locale: "en",
|
|
231
231
|
theme: "light"
|
|
232
232
|
});
|
|
233
|
-
|
|
234
|
-
const
|
|
233
|
+
de.Provider;
|
|
234
|
+
const Xe = ({
|
|
235
235
|
width: i = 20,
|
|
236
236
|
height: e = 20,
|
|
237
237
|
color: t = "#001E52",
|
|
@@ -258,7 +258,7 @@ const Qe = ({
|
|
|
258
258
|
}
|
|
259
259
|
)
|
|
260
260
|
}
|
|
261
|
-
),
|
|
261
|
+
), et = ({
|
|
262
262
|
width: i = 16,
|
|
263
263
|
height: e = 16,
|
|
264
264
|
color: t = "#001E52",
|
|
@@ -286,7 +286,7 @@ const Qe = ({
|
|
|
286
286
|
)
|
|
287
287
|
]
|
|
288
288
|
}
|
|
289
|
-
),
|
|
289
|
+
), tt = ({
|
|
290
290
|
width: i = 20,
|
|
291
291
|
height: e = 20,
|
|
292
292
|
color: t = "#001E52",
|
|
@@ -321,7 +321,7 @@ const Qe = ({
|
|
|
321
321
|
)
|
|
322
322
|
]
|
|
323
323
|
}
|
|
324
|
-
),
|
|
324
|
+
), it = ({
|
|
325
325
|
width: i = 18,
|
|
326
326
|
height: e = 18,
|
|
327
327
|
color: t = "#001E52",
|
|
@@ -360,7 +360,7 @@ const Qe = ({
|
|
|
360
360
|
)
|
|
361
361
|
]
|
|
362
362
|
}
|
|
363
|
-
),
|
|
363
|
+
), st = ({
|
|
364
364
|
width: i = 20,
|
|
365
365
|
height: e = 20,
|
|
366
366
|
color: t = "#001E52",
|
|
@@ -386,7 +386,7 @@ const Qe = ({
|
|
|
386
386
|
}
|
|
387
387
|
)
|
|
388
388
|
}
|
|
389
|
-
),
|
|
389
|
+
), nt = ({
|
|
390
390
|
width: i = 20,
|
|
391
391
|
height: e = 20,
|
|
392
392
|
color: t = "#001E52",
|
|
@@ -407,7 +407,7 @@ const Qe = ({
|
|
|
407
407
|
/* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
|
408
408
|
]
|
|
409
409
|
}
|
|
410
|
-
),
|
|
410
|
+
), rt = ({
|
|
411
411
|
width: i = 20,
|
|
412
412
|
height: e = 20,
|
|
413
413
|
color: t = "#001E52",
|
|
@@ -439,7 +439,7 @@ const Qe = ({
|
|
|
439
439
|
)
|
|
440
440
|
]
|
|
441
441
|
}
|
|
442
|
-
),
|
|
442
|
+
), ot = ({
|
|
443
443
|
width: i = 20,
|
|
444
444
|
height: e = 20,
|
|
445
445
|
color: t = "#001E52",
|
|
@@ -493,7 +493,7 @@ const Qe = ({
|
|
|
493
493
|
)
|
|
494
494
|
]
|
|
495
495
|
}
|
|
496
|
-
),
|
|
496
|
+
), at = ({
|
|
497
497
|
width: i = 20,
|
|
498
498
|
height: e = 20,
|
|
499
499
|
color: t = "#001E52",
|
|
@@ -532,7 +532,7 @@ const Qe = ({
|
|
|
532
532
|
/* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
|
533
533
|
]
|
|
534
534
|
}
|
|
535
|
-
),
|
|
535
|
+
), lt = ({
|
|
536
536
|
width: i = 16,
|
|
537
537
|
height: e = 12,
|
|
538
538
|
color: t = "#001E52",
|
|
@@ -581,7 +581,7 @@ const Qe = ({
|
|
|
581
581
|
)
|
|
582
582
|
] })
|
|
583
583
|
}
|
|
584
|
-
),
|
|
584
|
+
), ct = ({
|
|
585
585
|
width: i = 16,
|
|
586
586
|
height: e = 16,
|
|
587
587
|
color: t = "#001E52",
|
|
@@ -662,7 +662,7 @@ const Qe = ({
|
|
|
662
662
|
)
|
|
663
663
|
]
|
|
664
664
|
}
|
|
665
|
-
),
|
|
665
|
+
), dt = ({
|
|
666
666
|
width: i = 20,
|
|
667
667
|
height: e = 20,
|
|
668
668
|
color: t = "#001E52",
|
|
@@ -695,7 +695,7 @@ const Qe = ({
|
|
|
695
695
|
)
|
|
696
696
|
]
|
|
697
697
|
}
|
|
698
|
-
),
|
|
698
|
+
), gt = ({
|
|
699
699
|
width: i = 20,
|
|
700
700
|
height: e = 20,
|
|
701
701
|
color: t = "#001E52",
|
|
@@ -742,7 +742,7 @@ const Qe = ({
|
|
|
742
742
|
)
|
|
743
743
|
]
|
|
744
744
|
}
|
|
745
|
-
),
|
|
745
|
+
), ut = ({
|
|
746
746
|
width: i = 20,
|
|
747
747
|
height: e = 20,
|
|
748
748
|
color: t = "#001E52",
|
|
@@ -775,7 +775,7 @@ const Qe = ({
|
|
|
775
775
|
)
|
|
776
776
|
]
|
|
777
777
|
}
|
|
778
|
-
),
|
|
778
|
+
), Ct = ({
|
|
779
779
|
width: i = 18,
|
|
780
780
|
height: e = 16,
|
|
781
781
|
color: t = "#001E52",
|
|
@@ -814,7 +814,7 @@ const Qe = ({
|
|
|
814
814
|
)
|
|
815
815
|
]
|
|
816
816
|
}
|
|
817
|
-
),
|
|
817
|
+
), pt = ({
|
|
818
818
|
width: i = 20,
|
|
819
819
|
height: e = 20,
|
|
820
820
|
color: t = "#001E52",
|
|
@@ -847,7 +847,7 @@ const Qe = ({
|
|
|
847
847
|
)
|
|
848
848
|
]
|
|
849
849
|
}
|
|
850
|
-
),
|
|
850
|
+
), ft = ({
|
|
851
851
|
width: i = 20,
|
|
852
852
|
height: e = 20,
|
|
853
853
|
color: t = "#001E52",
|
|
@@ -871,7 +871,7 @@ const Qe = ({
|
|
|
871
871
|
}
|
|
872
872
|
)
|
|
873
873
|
}
|
|
874
|
-
),
|
|
874
|
+
), mt = ({
|
|
875
875
|
width: i = 20,
|
|
876
876
|
height: e = 20,
|
|
877
877
|
color: t = "#001E52",
|
|
@@ -904,7 +904,7 @@ const Qe = ({
|
|
|
904
904
|
)
|
|
905
905
|
]
|
|
906
906
|
}
|
|
907
|
-
),
|
|
907
|
+
), wt = ({
|
|
908
908
|
width: i = 20,
|
|
909
909
|
height: e = 23,
|
|
910
910
|
color: t = "#001E52",
|
|
@@ -965,7 +965,7 @@ const Qe = ({
|
|
|
965
965
|
)
|
|
966
966
|
]
|
|
967
967
|
}
|
|
968
|
-
),
|
|
968
|
+
), kt = ({
|
|
969
969
|
width: i = 14,
|
|
970
970
|
height: e = 14,
|
|
971
971
|
color: t = "#10B981",
|
|
@@ -994,7 +994,7 @@ const Qe = ({
|
|
|
994
994
|
)
|
|
995
995
|
]
|
|
996
996
|
}
|
|
997
|
-
),
|
|
997
|
+
), Lt = ({
|
|
998
998
|
width: i = 10,
|
|
999
999
|
height: e = 10,
|
|
1000
1000
|
color: t = "#88A4FF",
|
|
@@ -1042,7 +1042,7 @@ const Qe = ({
|
|
|
1042
1042
|
)
|
|
1043
1043
|
]
|
|
1044
1044
|
}
|
|
1045
|
-
),
|
|
1045
|
+
), vt = ({
|
|
1046
1046
|
width: i = 14,
|
|
1047
1047
|
height: e = 14,
|
|
1048
1048
|
color: t = "#8E8E93",
|
|
@@ -1070,7 +1070,7 @@ const Qe = ({
|
|
|
1070
1070
|
)
|
|
1071
1071
|
]
|
|
1072
1072
|
}
|
|
1073
|
-
),
|
|
1073
|
+
), Nt = ({
|
|
1074
1074
|
width: i = 14,
|
|
1075
1075
|
height: e = 14,
|
|
1076
1076
|
color: t = "#FFB020",
|
|
@@ -1104,7 +1104,7 @@ const Qe = ({
|
|
|
1104
1104
|
)
|
|
1105
1105
|
]
|
|
1106
1106
|
}
|
|
1107
|
-
),
|
|
1107
|
+
), xt = ({
|
|
1108
1108
|
width: i = 14,
|
|
1109
1109
|
height: e = 14,
|
|
1110
1110
|
color: t = "#D0421B",
|
|
@@ -1152,7 +1152,7 @@ const Qe = ({
|
|
|
1152
1152
|
)
|
|
1153
1153
|
]
|
|
1154
1154
|
}
|
|
1155
|
-
),
|
|
1155
|
+
), Rt = ({
|
|
1156
1156
|
width: i = 20,
|
|
1157
1157
|
height: e = 20,
|
|
1158
1158
|
color: t = "#070739",
|
|
@@ -1182,7 +1182,7 @@ const Qe = ({
|
|
|
1182
1182
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
1183
1183
|
]
|
|
1184
1184
|
}
|
|
1185
|
-
),
|
|
1185
|
+
), Mt = ({
|
|
1186
1186
|
width: i = 20,
|
|
1187
1187
|
height: e = 20,
|
|
1188
1188
|
color: t = "#070739",
|
|
@@ -1220,7 +1220,7 @@ const Qe = ({
|
|
|
1220
1220
|
)
|
|
1221
1221
|
]
|
|
1222
1222
|
}
|
|
1223
|
-
),
|
|
1223
|
+
), bt = ({
|
|
1224
1224
|
width: i = 9,
|
|
1225
1225
|
height: e = 5,
|
|
1226
1226
|
color: t = "#001E52",
|
|
@@ -1246,7 +1246,7 @@ const Qe = ({
|
|
|
1246
1246
|
}
|
|
1247
1247
|
)
|
|
1248
1248
|
}
|
|
1249
|
-
),
|
|
1249
|
+
), yt = ({
|
|
1250
1250
|
width: i = 20,
|
|
1251
1251
|
height: e = 20,
|
|
1252
1252
|
color: t = "#F2F2F7",
|
|
@@ -1275,7 +1275,7 @@ const Qe = ({
|
|
|
1275
1275
|
)
|
|
1276
1276
|
]
|
|
1277
1277
|
}
|
|
1278
|
-
),
|
|
1278
|
+
), Et = ({
|
|
1279
1279
|
width: i = 20,
|
|
1280
1280
|
height: e = 20,
|
|
1281
1281
|
color: t = "#004ED7",
|
|
@@ -1304,7 +1304,7 @@ const Qe = ({
|
|
|
1304
1304
|
)
|
|
1305
1305
|
]
|
|
1306
1306
|
}
|
|
1307
|
-
),
|
|
1307
|
+
), _t = ({
|
|
1308
1308
|
width: i = 10,
|
|
1309
1309
|
height: e = 10,
|
|
1310
1310
|
color: t = "#001E52",
|
|
@@ -1333,7 +1333,7 @@ const Qe = ({
|
|
|
1333
1333
|
)
|
|
1334
1334
|
]
|
|
1335
1335
|
}
|
|
1336
|
-
),
|
|
1336
|
+
), Ht = ({
|
|
1337
1337
|
width: i = 10,
|
|
1338
1338
|
height: e = 10,
|
|
1339
1339
|
color: t = "#001E52",
|
|
@@ -1370,9 +1370,9 @@ const Qe = ({
|
|
|
1370
1370
|
)
|
|
1371
1371
|
]
|
|
1372
1372
|
}
|
|
1373
|
-
),
|
|
1373
|
+
), It = ({
|
|
1374
1374
|
className: i,
|
|
1375
|
-
color: e =
|
|
1375
|
+
color: e = E.GREY_DARK_5,
|
|
1376
1376
|
height: t = 24,
|
|
1377
1377
|
width: s = 24,
|
|
1378
1378
|
onClick: n
|
|
@@ -1409,9 +1409,9 @@ const Qe = ({
|
|
|
1409
1409
|
)
|
|
1410
1410
|
]
|
|
1411
1411
|
}
|
|
1412
|
-
),
|
|
1412
|
+
), Ot = ({
|
|
1413
1413
|
className: i,
|
|
1414
|
-
color: e =
|
|
1414
|
+
color: e = E.GREY_DARK_5,
|
|
1415
1415
|
height: t = 20,
|
|
1416
1416
|
width: s = 20,
|
|
1417
1417
|
onClick: n
|
|
@@ -1436,9 +1436,9 @@ const Qe = ({
|
|
|
1436
1436
|
}
|
|
1437
1437
|
)
|
|
1438
1438
|
}
|
|
1439
|
-
),
|
|
1439
|
+
), St = ({
|
|
1440
1440
|
className: i,
|
|
1441
|
-
color: e =
|
|
1441
|
+
color: e = E.GREY_DARK_5,
|
|
1442
1442
|
height: t = 20,
|
|
1443
1443
|
width: s = 20,
|
|
1444
1444
|
onClick: n
|
|
@@ -1463,9 +1463,9 @@ const Qe = ({
|
|
|
1463
1463
|
}
|
|
1464
1464
|
)
|
|
1465
1465
|
}
|
|
1466
|
-
),
|
|
1466
|
+
), Vt = ({
|
|
1467
1467
|
className: i,
|
|
1468
|
-
color: e =
|
|
1468
|
+
color: e = E.GREY_DARK_5,
|
|
1469
1469
|
height: t = 5,
|
|
1470
1470
|
width: s = 10,
|
|
1471
1471
|
onClick: n
|
|
@@ -1487,9 +1487,9 @@ const Qe = ({
|
|
|
1487
1487
|
}
|
|
1488
1488
|
)
|
|
1489
1489
|
}
|
|
1490
|
-
),
|
|
1490
|
+
), At = ({
|
|
1491
1491
|
className: i,
|
|
1492
|
-
color: e =
|
|
1492
|
+
color: e = E.GREY_DARK_5,
|
|
1493
1493
|
height: t = 5,
|
|
1494
1494
|
width: s = 10,
|
|
1495
1495
|
onClick: n
|
|
@@ -1512,9 +1512,9 @@ const Qe = ({
|
|
|
1512
1512
|
}
|
|
1513
1513
|
)
|
|
1514
1514
|
}
|
|
1515
|
-
),
|
|
1515
|
+
), Tt = ({
|
|
1516
1516
|
className: i,
|
|
1517
|
-
color: e =
|
|
1517
|
+
color: e = E.GREY_DARK_5,
|
|
1518
1518
|
height: t = 24,
|
|
1519
1519
|
width: s = 24,
|
|
1520
1520
|
onClick: n
|
|
@@ -1551,9 +1551,9 @@ const Qe = ({
|
|
|
1551
1551
|
)
|
|
1552
1552
|
]
|
|
1553
1553
|
}
|
|
1554
|
-
),
|
|
1554
|
+
), Dt = ({
|
|
1555
1555
|
className: i,
|
|
1556
|
-
color: e =
|
|
1556
|
+
color: e = E.GREY_DARK_5,
|
|
1557
1557
|
height: t = 24,
|
|
1558
1558
|
width: s = 24,
|
|
1559
1559
|
onClick: n
|
|
@@ -1590,9 +1590,9 @@ const Qe = ({
|
|
|
1590
1590
|
)
|
|
1591
1591
|
]
|
|
1592
1592
|
}
|
|
1593
|
-
),
|
|
1593
|
+
), Bt = ({
|
|
1594
1594
|
className: i,
|
|
1595
|
-
color: e =
|
|
1595
|
+
color: e = E.GREY_DARK_5,
|
|
1596
1596
|
height: t = 24,
|
|
1597
1597
|
width: s = 24,
|
|
1598
1598
|
onClick: n
|
|
@@ -1617,9 +1617,9 @@ const Qe = ({
|
|
|
1617
1617
|
}
|
|
1618
1618
|
)
|
|
1619
1619
|
}
|
|
1620
|
-
),
|
|
1620
|
+
), jt = ({
|
|
1621
1621
|
className: i,
|
|
1622
|
-
color: e =
|
|
1622
|
+
color: e = E.GREY_DARK_5,
|
|
1623
1623
|
height: t = 24,
|
|
1624
1624
|
width: s = 24,
|
|
1625
1625
|
onClick: n
|
|
@@ -1676,9 +1676,9 @@ const Qe = ({
|
|
|
1676
1676
|
)
|
|
1677
1677
|
]
|
|
1678
1678
|
}
|
|
1679
|
-
),
|
|
1679
|
+
), Zt = ({
|
|
1680
1680
|
className: i,
|
|
1681
|
-
color: e =
|
|
1681
|
+
color: e = E.GREY_DARK_5,
|
|
1682
1682
|
height: t = 24,
|
|
1683
1683
|
width: s = 24,
|
|
1684
1684
|
onClick: n
|
|
@@ -1713,9 +1713,9 @@ const Qe = ({
|
|
|
1713
1713
|
)
|
|
1714
1714
|
]
|
|
1715
1715
|
}
|
|
1716
|
-
),
|
|
1716
|
+
), Wt = ({
|
|
1717
1717
|
className: i,
|
|
1718
|
-
color: e =
|
|
1718
|
+
color: e = E.GREY_DARK_3,
|
|
1719
1719
|
height: t = 14,
|
|
1720
1720
|
width: s = 14,
|
|
1721
1721
|
onClick: n
|
|
@@ -1750,9 +1750,9 @@ const Qe = ({
|
|
|
1750
1750
|
)
|
|
1751
1751
|
]
|
|
1752
1752
|
}
|
|
1753
|
-
),
|
|
1753
|
+
), Gt = ({
|
|
1754
1754
|
className: i,
|
|
1755
|
-
color: e =
|
|
1755
|
+
color: e = E.GREY_DARK_5,
|
|
1756
1756
|
height: t = 18,
|
|
1757
1757
|
onClick: s,
|
|
1758
1758
|
width: n = 18
|
|
@@ -1777,9 +1777,9 @@ const Qe = ({
|
|
|
1777
1777
|
}
|
|
1778
1778
|
)
|
|
1779
1779
|
}
|
|
1780
|
-
),
|
|
1780
|
+
), Kt = ({
|
|
1781
1781
|
className: i,
|
|
1782
|
-
color: e =
|
|
1782
|
+
color: e = E.GREY_DARK_5,
|
|
1783
1783
|
height: t = 24,
|
|
1784
1784
|
width: s = 24,
|
|
1785
1785
|
onClick: n
|
|
@@ -1829,9 +1829,9 @@ const Qe = ({
|
|
|
1829
1829
|
)
|
|
1830
1830
|
]
|
|
1831
1831
|
}
|
|
1832
|
-
),
|
|
1832
|
+
), $t = ({
|
|
1833
1833
|
className: i,
|
|
1834
|
-
color: e =
|
|
1834
|
+
color: e = E.GREY_DARK_5,
|
|
1835
1835
|
height: t = 24,
|
|
1836
1836
|
width: s = 24,
|
|
1837
1837
|
onClick: n
|
|
@@ -1866,9 +1866,9 @@ const Qe = ({
|
|
|
1866
1866
|
)
|
|
1867
1867
|
]
|
|
1868
1868
|
}
|
|
1869
|
-
),
|
|
1869
|
+
), Pt = ({
|
|
1870
1870
|
className: i,
|
|
1871
|
-
color: e =
|
|
1871
|
+
color: e = E.NOTIFICATION_WARNING_DARK,
|
|
1872
1872
|
height: t = 37,
|
|
1873
1873
|
width: s = 36,
|
|
1874
1874
|
onClick: n
|
|
@@ -1905,9 +1905,9 @@ const Qe = ({
|
|
|
1905
1905
|
)
|
|
1906
1906
|
]
|
|
1907
1907
|
}
|
|
1908
|
-
),
|
|
1908
|
+
), Ft = ({
|
|
1909
1909
|
className: i,
|
|
1910
|
-
color: e =
|
|
1910
|
+
color: e = E.GREY_DARK_5,
|
|
1911
1911
|
height: t = 24,
|
|
1912
1912
|
width: s = 24,
|
|
1913
1913
|
onClick: n
|
|
@@ -1931,9 +1931,9 @@ const Qe = ({
|
|
|
1931
1931
|
}
|
|
1932
1932
|
)
|
|
1933
1933
|
}
|
|
1934
|
-
),
|
|
1934
|
+
), Yt = ({
|
|
1935
1935
|
className: i,
|
|
1936
|
-
color: e =
|
|
1936
|
+
color: e = E.GREY_DARK_5,
|
|
1937
1937
|
height: t = 24,
|
|
1938
1938
|
width: s = 24,
|
|
1939
1939
|
onClick: n
|
|
@@ -1970,9 +1970,9 @@ const Qe = ({
|
|
|
1970
1970
|
)
|
|
1971
1971
|
]
|
|
1972
1972
|
}
|
|
1973
|
-
),
|
|
1973
|
+
), Ut = ({
|
|
1974
1974
|
className: i,
|
|
1975
|
-
color: e =
|
|
1975
|
+
color: e = E.GREY_DARK_5,
|
|
1976
1976
|
height: t = 24,
|
|
1977
1977
|
width: s = 24,
|
|
1978
1978
|
onClick: n
|
|
@@ -2009,9 +2009,9 @@ const Qe = ({
|
|
|
2009
2009
|
)
|
|
2010
2010
|
]
|
|
2011
2011
|
}
|
|
2012
|
-
),
|
|
2012
|
+
), zt = ({
|
|
2013
2013
|
className: i,
|
|
2014
|
-
color: e =
|
|
2014
|
+
color: e = E.GREY_DARK_5,
|
|
2015
2015
|
height: t = 24,
|
|
2016
2016
|
width: s = 24,
|
|
2017
2017
|
onClick: n
|
|
@@ -2078,9 +2078,9 @@ const Qe = ({
|
|
|
2078
2078
|
)
|
|
2079
2079
|
]
|
|
2080
2080
|
}
|
|
2081
|
-
),
|
|
2081
|
+
), Jt = ({
|
|
2082
2082
|
className: i,
|
|
2083
|
-
color: e =
|
|
2083
|
+
color: e = E.GREY_DARK_5,
|
|
2084
2084
|
height: t = 24,
|
|
2085
2085
|
width: s = 24,
|
|
2086
2086
|
onClick: n
|
|
@@ -2135,9 +2135,9 @@ const Qe = ({
|
|
|
2135
2135
|
)
|
|
2136
2136
|
]
|
|
2137
2137
|
}
|
|
2138
|
-
),
|
|
2138
|
+
), qt = ({
|
|
2139
2139
|
className: i,
|
|
2140
|
-
color: e =
|
|
2140
|
+
color: e = E.GREY_DARK_5,
|
|
2141
2141
|
height: t = 24,
|
|
2142
2142
|
width: s = 24,
|
|
2143
2143
|
onClick: n
|
|
@@ -2174,9 +2174,9 @@ const Qe = ({
|
|
|
2174
2174
|
)
|
|
2175
2175
|
]
|
|
2176
2176
|
}
|
|
2177
|
-
),
|
|
2177
|
+
), Qt = ({
|
|
2178
2178
|
className: i,
|
|
2179
|
-
color: e =
|
|
2179
|
+
color: e = E.GREY_DARK_5,
|
|
2180
2180
|
height: t = 24,
|
|
2181
2181
|
width: s = 24,
|
|
2182
2182
|
onClick: n
|
|
@@ -2223,9 +2223,9 @@ const Qe = ({
|
|
|
2223
2223
|
)
|
|
2224
2224
|
]
|
|
2225
2225
|
}
|
|
2226
|
-
),
|
|
2226
|
+
), Xt = ({
|
|
2227
2227
|
className: i,
|
|
2228
|
-
color: e =
|
|
2228
|
+
color: e = E.GREY_DARK_5,
|
|
2229
2229
|
height: t = 24,
|
|
2230
2230
|
width: s = 24,
|
|
2231
2231
|
onClick: n
|
|
@@ -2250,9 +2250,9 @@ const Qe = ({
|
|
|
2250
2250
|
}
|
|
2251
2251
|
)
|
|
2252
2252
|
}
|
|
2253
|
-
),
|
|
2253
|
+
), e2 = ({
|
|
2254
2254
|
className: i,
|
|
2255
|
-
color: e =
|
|
2255
|
+
color: e = E.GREY_DARK_5,
|
|
2256
2256
|
height: t = 20,
|
|
2257
2257
|
width: s = 20,
|
|
2258
2258
|
onClick: n
|
|
@@ -2267,7 +2267,7 @@ const Qe = ({
|
|
|
2267
2267
|
fill: "none",
|
|
2268
2268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2269
2269
|
children: [
|
|
2270
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
2270
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: E.GREY_LIGHT_2 }),
|
|
2271
2271
|
/* @__PURE__ */ r(
|
|
2272
2272
|
"path",
|
|
2273
2273
|
{
|
|
@@ -2279,7 +2279,7 @@ const Qe = ({
|
|
|
2279
2279
|
)
|
|
2280
2280
|
]
|
|
2281
2281
|
}
|
|
2282
|
-
),
|
|
2282
|
+
), t2 = ({
|
|
2283
2283
|
className: i,
|
|
2284
2284
|
color: e = "#001E52",
|
|
2285
2285
|
height: t = 24,
|
|
@@ -2305,7 +2305,7 @@ const Qe = ({
|
|
|
2305
2305
|
}
|
|
2306
2306
|
)
|
|
2307
2307
|
}
|
|
2308
|
-
),
|
|
2308
|
+
), i2 = ({
|
|
2309
2309
|
className: i,
|
|
2310
2310
|
color: e = "#131314",
|
|
2311
2311
|
height: t = 20,
|
|
@@ -2333,7 +2333,7 @@ const Qe = ({
|
|
|
2333
2333
|
}
|
|
2334
2334
|
)
|
|
2335
2335
|
}
|
|
2336
|
-
),
|
|
2336
|
+
), s2 = ({
|
|
2337
2337
|
className: i,
|
|
2338
2338
|
color: e = "#001E52",
|
|
2339
2339
|
height: t = 24,
|
|
@@ -2371,7 +2371,7 @@ const Qe = ({
|
|
|
2371
2371
|
)
|
|
2372
2372
|
] }) })
|
|
2373
2373
|
}
|
|
2374
|
-
),
|
|
2374
|
+
), n2 = ({
|
|
2375
2375
|
width: i = 20,
|
|
2376
2376
|
height: e = 20,
|
|
2377
2377
|
color: t = "#001E52",
|
|
@@ -2427,7 +2427,7 @@ const Qe = ({
|
|
|
2427
2427
|
}
|
|
2428
2428
|
)
|
|
2429
2429
|
}
|
|
2430
|
-
),
|
|
2430
|
+
), r2 = ({
|
|
2431
2431
|
width: i = 24,
|
|
2432
2432
|
height: e = 24,
|
|
2433
2433
|
color: t = "#131314",
|
|
@@ -2460,10 +2460,10 @@ const Qe = ({
|
|
|
2460
2460
|
)
|
|
2461
2461
|
]
|
|
2462
2462
|
}
|
|
2463
|
-
),
|
|
2463
|
+
), o2 = ({
|
|
2464
2464
|
width: i = 24,
|
|
2465
2465
|
height: e = 24,
|
|
2466
|
-
color: t =
|
|
2466
|
+
color: t = E.GREY_DARK_2,
|
|
2467
2467
|
className: s,
|
|
2468
2468
|
onClick: n
|
|
2469
2469
|
}) => /* @__PURE__ */ C(
|
|
@@ -2499,10 +2499,10 @@ const Qe = ({
|
|
|
2499
2499
|
)
|
|
2500
2500
|
]
|
|
2501
2501
|
}
|
|
2502
|
-
),
|
|
2502
|
+
), a2 = ({
|
|
2503
2503
|
width: i = 24,
|
|
2504
2504
|
height: e = 24,
|
|
2505
|
-
color: t =
|
|
2505
|
+
color: t = E.GREY_DARK_2,
|
|
2506
2506
|
className: s,
|
|
2507
2507
|
onClick: n
|
|
2508
2508
|
}) => /* @__PURE__ */ r(
|
|
@@ -2526,10 +2526,10 @@ const Qe = ({
|
|
|
2526
2526
|
}
|
|
2527
2527
|
)
|
|
2528
2528
|
}
|
|
2529
|
-
),
|
|
2529
|
+
), l2 = ({
|
|
2530
2530
|
width: i = 24,
|
|
2531
2531
|
height: e = 24,
|
|
2532
|
-
color: t =
|
|
2532
|
+
color: t = E.GREY_DARK_2,
|
|
2533
2533
|
className: s,
|
|
2534
2534
|
onClick: n
|
|
2535
2535
|
}) => /* @__PURE__ */ C(
|
|
@@ -2566,10 +2566,10 @@ const Qe = ({
|
|
|
2566
2566
|
)
|
|
2567
2567
|
]
|
|
2568
2568
|
}
|
|
2569
|
-
),
|
|
2569
|
+
), c2 = ({
|
|
2570
2570
|
width: i = 24,
|
|
2571
2571
|
height: e = 24,
|
|
2572
|
-
color: t =
|
|
2572
|
+
color: t = E.GREY_DARK_2,
|
|
2573
2573
|
className: s,
|
|
2574
2574
|
onClick: n
|
|
2575
2575
|
}) => /* @__PURE__ */ r(
|
|
@@ -2596,7 +2596,7 @@ const Qe = ({
|
|
|
2596
2596
|
), h2 = ({
|
|
2597
2597
|
width: i = 24,
|
|
2598
2598
|
height: e = 24,
|
|
2599
|
-
color: t =
|
|
2599
|
+
color: t = E.GREY_DARK_2,
|
|
2600
2600
|
className: s,
|
|
2601
2601
|
onClick: n
|
|
2602
2602
|
}) => /* @__PURE__ */ r(
|
|
@@ -2620,7 +2620,7 @@ const Qe = ({
|
|
|
2620
2620
|
}
|
|
2621
2621
|
)
|
|
2622
2622
|
}
|
|
2623
|
-
),
|
|
2623
|
+
), d2 = ({
|
|
2624
2624
|
width: i = 20,
|
|
2625
2625
|
height: e = 20,
|
|
2626
2626
|
color: t = "#001E52",
|
|
@@ -2653,209 +2653,219 @@ const Qe = ({
|
|
|
2653
2653
|
color: s,
|
|
2654
2654
|
className: n,
|
|
2655
2655
|
disabled: o = !1,
|
|
2656
|
-
onClick:
|
|
2656
|
+
onClick: h
|
|
2657
2657
|
}) => {
|
|
2658
|
-
const [a, d] =
|
|
2659
|
-
return
|
|
2658
|
+
const [a, d] = T(n), { theme: g } = r1(de), l = o ? g && g === "dark" ? E.GREY_LIGHT_4 : E.GREY_DARK_1 : s, c = o ? void 0 : h;
|
|
2659
|
+
return Z(() => {
|
|
2660
2660
|
if (n) {
|
|
2661
|
-
|
|
2661
|
+
c && !o && d(`${n} clickable`);
|
|
2662
2662
|
return;
|
|
2663
2663
|
}
|
|
2664
|
-
|
|
2665
|
-
}, [
|
|
2664
|
+
c && !o && d("clickable");
|
|
2665
|
+
}, [c, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
2666
2666
|
switch (i) {
|
|
2667
2667
|
case "nextIcon":
|
|
2668
|
-
return
|
|
2668
|
+
return Ot({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2669
2669
|
case "prevIcon":
|
|
2670
|
-
return
|
|
2670
|
+
return St({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2671
2671
|
case "arrowDown":
|
|
2672
|
-
return
|
|
2672
|
+
return Xe({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2673
2673
|
case "info":
|
|
2674
|
-
return
|
|
2674
|
+
return et({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2675
2675
|
case "arrowRight":
|
|
2676
|
-
return
|
|
2676
|
+
return tt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2677
2677
|
case "calendar":
|
|
2678
|
-
return
|
|
2678
|
+
return it({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2679
2679
|
case "ok":
|
|
2680
|
-
return
|
|
2680
|
+
return st({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2681
2681
|
case "cancel":
|
|
2682
|
-
return
|
|
2682
|
+
return nt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2683
2683
|
case "add":
|
|
2684
|
-
return
|
|
2684
|
+
return rt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2685
2685
|
case "list":
|
|
2686
|
-
return
|
|
2686
|
+
return ot({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2687
2687
|
case "dragAndDrop":
|
|
2688
|
-
return
|
|
2688
|
+
return at({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2689
2689
|
case "filter":
|
|
2690
|
-
return
|
|
2690
|
+
return lt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2691
2691
|
case "attention":
|
|
2692
|
-
return
|
|
2692
|
+
return ct({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2693
2693
|
case "users":
|
|
2694
|
-
return ht({ width: e, height: t, color: l, className: a, onClick:
|
|
2694
|
+
return ht({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2695
2695
|
case "mySkillsMatrix":
|
|
2696
|
-
return
|
|
2696
|
+
return dt({
|
|
2697
2697
|
width: e,
|
|
2698
2698
|
height: t,
|
|
2699
2699
|
color: l,
|
|
2700
2700
|
className: a,
|
|
2701
|
-
onClick:
|
|
2701
|
+
onClick: c
|
|
2702
2702
|
});
|
|
2703
2703
|
case "skills":
|
|
2704
|
-
return
|
|
2704
|
+
return gt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2705
2705
|
case "skillsMatrices":
|
|
2706
|
-
return
|
|
2706
|
+
return ut({
|
|
2707
2707
|
width: e,
|
|
2708
2708
|
height: t,
|
|
2709
2709
|
color: l,
|
|
2710
2710
|
className: a,
|
|
2711
|
-
onClick:
|
|
2711
|
+
onClick: c
|
|
2712
2712
|
});
|
|
2713
2713
|
case "history":
|
|
2714
|
-
return
|
|
2714
|
+
return Ct({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2715
2715
|
case "logOut":
|
|
2716
|
-
return
|
|
2716
|
+
return pt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2717
2717
|
case "settings":
|
|
2718
|
-
return
|
|
2718
|
+
return ft({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2719
2719
|
case "trash":
|
|
2720
|
-
return
|
|
2720
|
+
return mt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2721
2721
|
case "settings4":
|
|
2722
|
-
return
|
|
2722
|
+
return wt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2723
2723
|
case "success":
|
|
2724
|
-
return
|
|
2724
|
+
return kt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2725
2725
|
case "errorSmall":
|
|
2726
|
-
return
|
|
2726
|
+
return Lt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2727
2727
|
case "infoMedium":
|
|
2728
|
-
return
|
|
2728
|
+
return vt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2729
2729
|
case "attentionMedium":
|
|
2730
|
-
return
|
|
2730
|
+
return Nt({
|
|
2731
2731
|
width: e,
|
|
2732
2732
|
height: t,
|
|
2733
2733
|
color: l,
|
|
2734
2734
|
className: a,
|
|
2735
|
-
onClick:
|
|
2735
|
+
onClick: c
|
|
2736
2736
|
});
|
|
2737
2737
|
case "errorMedium":
|
|
2738
|
-
return
|
|
2738
|
+
return xt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2739
2739
|
case "visibilityIcon":
|
|
2740
|
-
return
|
|
2740
|
+
return Rt({
|
|
2741
2741
|
width: e,
|
|
2742
2742
|
height: t,
|
|
2743
2743
|
color: l,
|
|
2744
2744
|
className: a,
|
|
2745
|
-
onClick:
|
|
2745
|
+
onClick: c
|
|
2746
2746
|
});
|
|
2747
2747
|
case "visibilityOffIcon":
|
|
2748
|
-
return
|
|
2748
|
+
return Mt({
|
|
2749
2749
|
width: e,
|
|
2750
2750
|
height: t,
|
|
2751
2751
|
color: l,
|
|
2752
2752
|
className: a,
|
|
2753
|
-
onClick:
|
|
2753
|
+
onClick: c
|
|
2754
2754
|
});
|
|
2755
2755
|
case "selectArrowIcon":
|
|
2756
|
-
return
|
|
2756
|
+
return bt({
|
|
2757
2757
|
width: e,
|
|
2758
2758
|
height: t,
|
|
2759
2759
|
color: l,
|
|
2760
2760
|
className: a,
|
|
2761
|
-
onClick:
|
|
2761
|
+
onClick: c
|
|
2762
2762
|
});
|
|
2763
2763
|
case "expandArrowIcon":
|
|
2764
|
-
return
|
|
2764
|
+
return yt({
|
|
2765
2765
|
width: e,
|
|
2766
2766
|
height: t,
|
|
2767
2767
|
color: l,
|
|
2768
2768
|
className: a,
|
|
2769
|
-
onClick:
|
|
2769
|
+
onClick: c
|
|
2770
2770
|
});
|
|
2771
2771
|
case "expandActiveArrowIcon":
|
|
2772
|
-
return
|
|
2772
|
+
return Et({
|
|
2773
2773
|
width: e,
|
|
2774
2774
|
height: t,
|
|
2775
2775
|
color: l,
|
|
2776
2776
|
className: a,
|
|
2777
|
-
onClick:
|
|
2777
|
+
onClick: c
|
|
2778
2778
|
});
|
|
2779
2779
|
case "sortUp":
|
|
2780
|
-
return
|
|
2780
|
+
return _t({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2781
2781
|
case "sortDown":
|
|
2782
|
-
return
|
|
2782
|
+
return Ht({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2783
2783
|
case "search":
|
|
2784
|
-
return
|
|
2784
|
+
return It({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2785
2785
|
case "arrowUpFilled":
|
|
2786
|
-
return
|
|
2786
|
+
return At({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2787
2787
|
case "arrowDownFilled":
|
|
2788
|
-
return
|
|
2788
|
+
return Vt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2789
2789
|
case "link":
|
|
2790
|
-
return
|
|
2790
|
+
return Tt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2791
2791
|
case "telegram":
|
|
2792
|
-
return
|
|
2792
|
+
return Bt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2793
2793
|
case "mail":
|
|
2794
|
-
return
|
|
2794
|
+
return Zt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2795
2795
|
case "github":
|
|
2796
|
-
return
|
|
2796
|
+
return Dt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2797
2797
|
case "linkedIn":
|
|
2798
|
-
return
|
|
2798
|
+
return jt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2799
2799
|
case "emptyStateIcon":
|
|
2800
|
-
return
|
|
2800
|
+
return Wt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2801
2801
|
case "filtersIcon":
|
|
2802
|
-
return
|
|
2802
|
+
return Gt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2803
2803
|
case "dotMenuIcon":
|
|
2804
|
-
return
|
|
2804
|
+
return Kt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2805
2805
|
case "plusCircle":
|
|
2806
|
-
return
|
|
2806
|
+
return $t({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2807
2807
|
case "warning":
|
|
2808
|
-
return
|
|
2808
|
+
return Pt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2809
2809
|
case "back":
|
|
2810
|
-
return
|
|
2810
|
+
return Ft({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2811
2811
|
case "bell":
|
|
2812
|
-
return
|
|
2812
|
+
return Yt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2813
2813
|
case "contract":
|
|
2814
|
-
return
|
|
2814
|
+
return zt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2815
2815
|
case "trash2":
|
|
2816
|
-
return
|
|
2816
|
+
return Ut({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2817
2817
|
case "resourceManager":
|
|
2818
|
-
return
|
|
2818
|
+
return Jt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2819
2819
|
case "settings2":
|
|
2820
|
-
return
|
|
2820
|
+
return qt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2821
2821
|
case "image":
|
|
2822
|
-
return
|
|
2822
|
+
return Qt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2823
2823
|
case "edit":
|
|
2824
|
-
return
|
|
2824
|
+
return Xt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2825
2825
|
case "filledArrowRight":
|
|
2826
|
-
return
|
|
2826
|
+
return e2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2827
2827
|
case "burgerMenu":
|
|
2828
|
-
return
|
|
2828
|
+
return t2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2829
2829
|
case "signOut":
|
|
2830
|
-
return
|
|
2830
|
+
return i2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2831
2831
|
case "refresh":
|
|
2832
|
-
return
|
|
2832
|
+
return s2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2833
2833
|
case "projects":
|
|
2834
|
-
return
|
|
2834
|
+
return n2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2835
2835
|
case "profile":
|
|
2836
|
-
return
|
|
2836
|
+
return d2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2837
2837
|
case "exit":
|
|
2838
|
-
return
|
|
2838
|
+
return r2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2839
2839
|
case "client":
|
|
2840
|
-
return
|
|
2840
|
+
return o2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2841
2841
|
case "calendar2":
|
|
2842
|
-
return
|
|
2842
|
+
return a2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2843
2843
|
case "openPointCircle":
|
|
2844
|
-
return
|
|
2844
|
+
return l2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2845
2845
|
case "community":
|
|
2846
|
-
return
|
|
2846
|
+
return c2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2847
2847
|
case "docs":
|
|
2848
|
-
return h2({ width: e, height: t, color: l, className: a, onClick:
|
|
2848
|
+
return h2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2849
2849
|
default:
|
|
2850
2850
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
2851
2851
|
}
|
|
2852
2852
|
})() });
|
|
2853
|
-
}, {
|
|
2853
|
+
}, g2 = ({ children: i, title: e, arrow: t = !0, open: s, placement: n = "top" }) => /* @__PURE__ */ r(
|
|
2854
|
+
ae,
|
|
2855
|
+
{
|
|
2856
|
+
overlayClassName: "snmt-tooltip",
|
|
2857
|
+
title: e,
|
|
2858
|
+
arrow: t,
|
|
2859
|
+
open: s,
|
|
2860
|
+
placement: n,
|
|
2861
|
+
children: i
|
|
2862
|
+
}
|
|
2863
|
+
), { Title: u2, Text: C2 } = le, p2 = {
|
|
2854
2864
|
h1: 1,
|
|
2855
2865
|
h2: 2,
|
|
2856
2866
|
h3: 3,
|
|
2857
2867
|
h4: 4
|
|
2858
|
-
},
|
|
2868
|
+
}, f2 = k1(
|
|
2859
2869
|
({
|
|
2860
2870
|
align: i = "inherit",
|
|
2861
2871
|
variant: e = "body1",
|
|
@@ -2863,39 +2873,41 @@ const Qe = ({
|
|
|
2863
2873
|
children: s,
|
|
2864
2874
|
onClick: n,
|
|
2865
2875
|
collapsed: o,
|
|
2866
|
-
whiteSpace:
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2876
|
+
whiteSpace: h = "normal",
|
|
2877
|
+
/** This prop allows you to enable tooltip if text size is too big */
|
|
2878
|
+
trim: a = !1
|
|
2879
|
+
}, d) => {
|
|
2880
|
+
const g = q(null);
|
|
2881
|
+
_1(d, () => g.current);
|
|
2882
|
+
const [l, c] = T(!1);
|
|
2883
|
+
Z(() => {
|
|
2884
|
+
if (!a) return;
|
|
2885
|
+
const m = () => {
|
|
2886
|
+
g.current && c(g.current.scrollWidth > g.current.clientWidth);
|
|
2887
|
+
}, y = new ResizeObserver(m);
|
|
2888
|
+
return g.current && y.observe(g.current), () => {
|
|
2889
|
+
y.disconnect();
|
|
2890
|
+
};
|
|
2891
|
+
}, [a, l]);
|
|
2892
|
+
const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
2893
|
+
let p = `snmt-typography snmt-typography-${e}`;
|
|
2894
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed"), a && (p += " collapsed");
|
|
2895
|
+
const w = {
|
|
2896
|
+
className: p,
|
|
2897
|
+
style: { color: t, whiteSpace: a ? "nowrap" : h },
|
|
2898
|
+
onClick: n,
|
|
2899
|
+
ref: g
|
|
2900
|
+
}, k = u ? /* @__PURE__ */ r(u2, { level: p2[e], ...w, children: s }) : /* @__PURE__ */ r(C2, { ...w, children: s });
|
|
2901
|
+
return a && l ? /* @__PURE__ */ r(g2, { placement: "top", title: s, children: k }) : k;
|
|
2890
2902
|
}
|
|
2891
2903
|
);
|
|
2892
|
-
var
|
|
2893
|
-
const
|
|
2904
|
+
var _ = /* @__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))(_ || {});
|
|
2905
|
+
const ge = d1({
|
|
2894
2906
|
locale: "en",
|
|
2895
2907
|
theme: "light"
|
|
2896
2908
|
});
|
|
2897
|
-
|
|
2898
|
-
const
|
|
2909
|
+
ge.Provider;
|
|
2910
|
+
const m2 = ({
|
|
2899
2911
|
width: i = 20,
|
|
2900
2912
|
height: e = 20,
|
|
2901
2913
|
color: t = "#001E52",
|
|
@@ -2922,7 +2934,7 @@ const p2 = ({
|
|
|
2922
2934
|
}
|
|
2923
2935
|
)
|
|
2924
2936
|
}
|
|
2925
|
-
),
|
|
2937
|
+
), w2 = ({
|
|
2926
2938
|
width: i = 16,
|
|
2927
2939
|
height: e = 16,
|
|
2928
2940
|
color: t = "#001E52",
|
|
@@ -2950,7 +2962,7 @@ const p2 = ({
|
|
|
2950
2962
|
)
|
|
2951
2963
|
]
|
|
2952
2964
|
}
|
|
2953
|
-
),
|
|
2965
|
+
), k2 = ({
|
|
2954
2966
|
width: i = 20,
|
|
2955
2967
|
height: e = 20,
|
|
2956
2968
|
color: t = "#001E52",
|
|
@@ -2985,7 +2997,7 @@ const p2 = ({
|
|
|
2985
2997
|
)
|
|
2986
2998
|
]
|
|
2987
2999
|
}
|
|
2988
|
-
),
|
|
3000
|
+
), L2 = ({
|
|
2989
3001
|
width: i = 18,
|
|
2990
3002
|
height: e = 18,
|
|
2991
3003
|
color: t = "#001E52",
|
|
@@ -3024,7 +3036,7 @@ const p2 = ({
|
|
|
3024
3036
|
)
|
|
3025
3037
|
]
|
|
3026
3038
|
}
|
|
3027
|
-
),
|
|
3039
|
+
), v2 = ({
|
|
3028
3040
|
width: i = 20,
|
|
3029
3041
|
height: e = 20,
|
|
3030
3042
|
color: t = "#001E52",
|
|
@@ -3050,7 +3062,7 @@ const p2 = ({
|
|
|
3050
3062
|
}
|
|
3051
3063
|
)
|
|
3052
3064
|
}
|
|
3053
|
-
),
|
|
3065
|
+
), N2 = ({
|
|
3054
3066
|
width: i = 20,
|
|
3055
3067
|
height: e = 20,
|
|
3056
3068
|
color: t = "#001E52",
|
|
@@ -3071,7 +3083,7 @@ const p2 = ({
|
|
|
3071
3083
|
/* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
|
3072
3084
|
]
|
|
3073
3085
|
}
|
|
3074
|
-
),
|
|
3086
|
+
), x2 = ({
|
|
3075
3087
|
width: i = 20,
|
|
3076
3088
|
height: e = 20,
|
|
3077
3089
|
color: t = "#001E52",
|
|
@@ -3103,7 +3115,7 @@ const p2 = ({
|
|
|
3103
3115
|
)
|
|
3104
3116
|
]
|
|
3105
3117
|
}
|
|
3106
|
-
),
|
|
3118
|
+
), R2 = ({
|
|
3107
3119
|
width: i = 20,
|
|
3108
3120
|
height: e = 20,
|
|
3109
3121
|
color: t = "#001E52",
|
|
@@ -3157,7 +3169,7 @@ const p2 = ({
|
|
|
3157
3169
|
)
|
|
3158
3170
|
]
|
|
3159
3171
|
}
|
|
3160
|
-
),
|
|
3172
|
+
), M2 = ({
|
|
3161
3173
|
width: i = 20,
|
|
3162
3174
|
height: e = 20,
|
|
3163
3175
|
color: t = "#001E52",
|
|
@@ -3196,7 +3208,7 @@ const p2 = ({
|
|
|
3196
3208
|
/* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
|
3197
3209
|
]
|
|
3198
3210
|
}
|
|
3199
|
-
),
|
|
3211
|
+
), b2 = ({
|
|
3200
3212
|
width: i = 16,
|
|
3201
3213
|
height: e = 12,
|
|
3202
3214
|
color: t = "#001E52",
|
|
@@ -3245,7 +3257,7 @@ const p2 = ({
|
|
|
3245
3257
|
)
|
|
3246
3258
|
] })
|
|
3247
3259
|
}
|
|
3248
|
-
),
|
|
3260
|
+
), y2 = ({
|
|
3249
3261
|
width: i = 16,
|
|
3250
3262
|
height: e = 16,
|
|
3251
3263
|
color: t = "#001E52",
|
|
@@ -3279,7 +3291,7 @@ const p2 = ({
|
|
|
3279
3291
|
)
|
|
3280
3292
|
]
|
|
3281
3293
|
}
|
|
3282
|
-
),
|
|
3294
|
+
), E2 = ({
|
|
3283
3295
|
width: i = 20,
|
|
3284
3296
|
height: e = 20,
|
|
3285
3297
|
color: t = "#001E52",
|
|
@@ -3326,7 +3338,7 @@ const p2 = ({
|
|
|
3326
3338
|
)
|
|
3327
3339
|
]
|
|
3328
3340
|
}
|
|
3329
|
-
),
|
|
3341
|
+
), _2 = ({
|
|
3330
3342
|
width: i = 20,
|
|
3331
3343
|
height: e = 20,
|
|
3332
3344
|
color: t = "#001E52",
|
|
@@ -3359,7 +3371,7 @@ const p2 = ({
|
|
|
3359
3371
|
)
|
|
3360
3372
|
]
|
|
3361
3373
|
}
|
|
3362
|
-
),
|
|
3374
|
+
), H2 = ({
|
|
3363
3375
|
width: i = 20,
|
|
3364
3376
|
height: e = 20,
|
|
3365
3377
|
color: t = "#001E52",
|
|
@@ -3406,7 +3418,7 @@ const p2 = ({
|
|
|
3406
3418
|
)
|
|
3407
3419
|
]
|
|
3408
3420
|
}
|
|
3409
|
-
),
|
|
3421
|
+
), I2 = ({
|
|
3410
3422
|
width: i = 20,
|
|
3411
3423
|
height: e = 20,
|
|
3412
3424
|
color: t = "#001E52",
|
|
@@ -3439,7 +3451,7 @@ const p2 = ({
|
|
|
3439
3451
|
)
|
|
3440
3452
|
]
|
|
3441
3453
|
}
|
|
3442
|
-
),
|
|
3454
|
+
), O2 = ({
|
|
3443
3455
|
width: i = 18,
|
|
3444
3456
|
height: e = 16,
|
|
3445
3457
|
color: t = "#001E52",
|
|
@@ -3478,7 +3490,7 @@ const p2 = ({
|
|
|
3478
3490
|
)
|
|
3479
3491
|
]
|
|
3480
3492
|
}
|
|
3481
|
-
),
|
|
3493
|
+
), S2 = ({
|
|
3482
3494
|
width: i = 20,
|
|
3483
3495
|
height: e = 20,
|
|
3484
3496
|
color: t = "#001E52",
|
|
@@ -3511,7 +3523,7 @@ const p2 = ({
|
|
|
3511
3523
|
)
|
|
3512
3524
|
]
|
|
3513
3525
|
}
|
|
3514
|
-
),
|
|
3526
|
+
), V2 = ({
|
|
3515
3527
|
width: i = 20,
|
|
3516
3528
|
height: e = 20,
|
|
3517
3529
|
color: t = "#001E52",
|
|
@@ -3535,7 +3547,7 @@ const p2 = ({
|
|
|
3535
3547
|
}
|
|
3536
3548
|
)
|
|
3537
3549
|
}
|
|
3538
|
-
),
|
|
3550
|
+
), A2 = ({
|
|
3539
3551
|
width: i = 20,
|
|
3540
3552
|
height: e = 20,
|
|
3541
3553
|
color: t = "#001E52",
|
|
@@ -3568,7 +3580,7 @@ const p2 = ({
|
|
|
3568
3580
|
)
|
|
3569
3581
|
]
|
|
3570
3582
|
}
|
|
3571
|
-
),
|
|
3583
|
+
), T2 = ({
|
|
3572
3584
|
width: i = 20,
|
|
3573
3585
|
height: e = 23,
|
|
3574
3586
|
color: t = "#001E52",
|
|
@@ -3629,7 +3641,7 @@ const p2 = ({
|
|
|
3629
3641
|
)
|
|
3630
3642
|
]
|
|
3631
3643
|
}
|
|
3632
|
-
),
|
|
3644
|
+
), D2 = ({
|
|
3633
3645
|
width: i = 14,
|
|
3634
3646
|
height: e = 14,
|
|
3635
3647
|
color: t = "#10B981",
|
|
@@ -3658,7 +3670,7 @@ const p2 = ({
|
|
|
3658
3670
|
)
|
|
3659
3671
|
]
|
|
3660
3672
|
}
|
|
3661
|
-
),
|
|
3673
|
+
), B2 = ({
|
|
3662
3674
|
width: i = 10,
|
|
3663
3675
|
height: e = 10,
|
|
3664
3676
|
color: t = "#88A4FF",
|
|
@@ -3706,7 +3718,7 @@ const p2 = ({
|
|
|
3706
3718
|
)
|
|
3707
3719
|
]
|
|
3708
3720
|
}
|
|
3709
|
-
),
|
|
3721
|
+
), j2 = ({
|
|
3710
3722
|
width: i = 14,
|
|
3711
3723
|
height: e = 14,
|
|
3712
3724
|
color: t = "#8E8E93",
|
|
@@ -3734,7 +3746,7 @@ const p2 = ({
|
|
|
3734
3746
|
)
|
|
3735
3747
|
]
|
|
3736
3748
|
}
|
|
3737
|
-
),
|
|
3749
|
+
), Z2 = ({
|
|
3738
3750
|
width: i = 14,
|
|
3739
3751
|
height: e = 14,
|
|
3740
3752
|
color: t = "#FFB020",
|
|
@@ -3768,7 +3780,7 @@ const p2 = ({
|
|
|
3768
3780
|
)
|
|
3769
3781
|
]
|
|
3770
3782
|
}
|
|
3771
|
-
),
|
|
3783
|
+
), W2 = ({
|
|
3772
3784
|
width: i = 14,
|
|
3773
3785
|
height: e = 14,
|
|
3774
3786
|
color: t = "#D0421B",
|
|
@@ -3816,7 +3828,7 @@ const p2 = ({
|
|
|
3816
3828
|
)
|
|
3817
3829
|
]
|
|
3818
3830
|
}
|
|
3819
|
-
),
|
|
3831
|
+
), G2 = ({
|
|
3820
3832
|
width: i = 20,
|
|
3821
3833
|
height: e = 20,
|
|
3822
3834
|
color: t = "#070739",
|
|
@@ -3846,7 +3858,7 @@ const p2 = ({
|
|
|
3846
3858
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
3847
3859
|
]
|
|
3848
3860
|
}
|
|
3849
|
-
),
|
|
3861
|
+
), K2 = ({
|
|
3850
3862
|
width: i = 20,
|
|
3851
3863
|
height: e = 20,
|
|
3852
3864
|
color: t = "#070739",
|
|
@@ -3884,7 +3896,7 @@ const p2 = ({
|
|
|
3884
3896
|
)
|
|
3885
3897
|
]
|
|
3886
3898
|
}
|
|
3887
|
-
),
|
|
3899
|
+
), $2 = ({
|
|
3888
3900
|
width: i = 9,
|
|
3889
3901
|
height: e = 5,
|
|
3890
3902
|
color: t = "#001E52",
|
|
@@ -3910,7 +3922,7 @@ const p2 = ({
|
|
|
3910
3922
|
}
|
|
3911
3923
|
)
|
|
3912
3924
|
}
|
|
3913
|
-
),
|
|
3925
|
+
), P2 = ({
|
|
3914
3926
|
width: i = 20,
|
|
3915
3927
|
height: e = 20,
|
|
3916
3928
|
color: t = "#F2F2F7",
|
|
@@ -3939,7 +3951,7 @@ const p2 = ({
|
|
|
3939
3951
|
)
|
|
3940
3952
|
]
|
|
3941
3953
|
}
|
|
3942
|
-
),
|
|
3954
|
+
), F2 = ({
|
|
3943
3955
|
width: i = 20,
|
|
3944
3956
|
height: e = 20,
|
|
3945
3957
|
color: t = "#004ED7",
|
|
@@ -3968,7 +3980,7 @@ const p2 = ({
|
|
|
3968
3980
|
)
|
|
3969
3981
|
]
|
|
3970
3982
|
}
|
|
3971
|
-
),
|
|
3983
|
+
), Y2 = ({
|
|
3972
3984
|
width: i = 10,
|
|
3973
3985
|
height: e = 10,
|
|
3974
3986
|
color: t = "#001E52",
|
|
@@ -3997,7 +4009,7 @@ const p2 = ({
|
|
|
3997
4009
|
)
|
|
3998
4010
|
]
|
|
3999
4011
|
}
|
|
4000
|
-
),
|
|
4012
|
+
), U2 = ({
|
|
4001
4013
|
width: i = 10,
|
|
4002
4014
|
height: e = 10,
|
|
4003
4015
|
color: t = "#001E52",
|
|
@@ -4034,9 +4046,9 @@ const p2 = ({
|
|
|
4034
4046
|
)
|
|
4035
4047
|
]
|
|
4036
4048
|
}
|
|
4037
|
-
),
|
|
4049
|
+
), z2 = ({
|
|
4038
4050
|
className: i,
|
|
4039
|
-
color: e =
|
|
4051
|
+
color: e = _.GREY_DARK_5,
|
|
4040
4052
|
height: t = 24,
|
|
4041
4053
|
width: s = 24,
|
|
4042
4054
|
onClick: n
|
|
@@ -4073,9 +4085,9 @@ const p2 = ({
|
|
|
4073
4085
|
)
|
|
4074
4086
|
]
|
|
4075
4087
|
}
|
|
4076
|
-
),
|
|
4088
|
+
), J2 = ({
|
|
4077
4089
|
className: i,
|
|
4078
|
-
color: e =
|
|
4090
|
+
color: e = _.GREY_DARK_5,
|
|
4079
4091
|
height: t = 20,
|
|
4080
4092
|
width: s = 20,
|
|
4081
4093
|
onClick: n
|
|
@@ -4100,9 +4112,9 @@ const p2 = ({
|
|
|
4100
4112
|
}
|
|
4101
4113
|
)
|
|
4102
4114
|
}
|
|
4103
|
-
),
|
|
4115
|
+
), q2 = ({
|
|
4104
4116
|
className: i,
|
|
4105
|
-
color: e =
|
|
4117
|
+
color: e = _.GREY_DARK_5,
|
|
4106
4118
|
height: t = 20,
|
|
4107
4119
|
width: s = 20,
|
|
4108
4120
|
onClick: n
|
|
@@ -4127,9 +4139,9 @@ const p2 = ({
|
|
|
4127
4139
|
}
|
|
4128
4140
|
)
|
|
4129
4141
|
}
|
|
4130
|
-
),
|
|
4142
|
+
), Q2 = ({
|
|
4131
4143
|
className: i,
|
|
4132
|
-
color: e =
|
|
4144
|
+
color: e = _.GREY_DARK_5,
|
|
4133
4145
|
height: t = 5,
|
|
4134
4146
|
width: s = 10,
|
|
4135
4147
|
onClick: n
|
|
@@ -4151,9 +4163,9 @@ const p2 = ({
|
|
|
4151
4163
|
}
|
|
4152
4164
|
)
|
|
4153
4165
|
}
|
|
4154
|
-
),
|
|
4166
|
+
), X2 = ({
|
|
4155
4167
|
className: i,
|
|
4156
|
-
color: e =
|
|
4168
|
+
color: e = _.GREY_DARK_5,
|
|
4157
4169
|
height: t = 5,
|
|
4158
4170
|
width: s = 10,
|
|
4159
4171
|
onClick: n
|
|
@@ -4176,9 +4188,9 @@ const p2 = ({
|
|
|
4176
4188
|
}
|
|
4177
4189
|
)
|
|
4178
4190
|
}
|
|
4179
|
-
),
|
|
4191
|
+
), ei = ({
|
|
4180
4192
|
className: i,
|
|
4181
|
-
color: e =
|
|
4193
|
+
color: e = _.GREY_DARK_5,
|
|
4182
4194
|
height: t = 24,
|
|
4183
4195
|
width: s = 24,
|
|
4184
4196
|
onClick: n
|
|
@@ -4215,9 +4227,9 @@ const p2 = ({
|
|
|
4215
4227
|
)
|
|
4216
4228
|
]
|
|
4217
4229
|
}
|
|
4218
|
-
),
|
|
4230
|
+
), ti = ({
|
|
4219
4231
|
className: i,
|
|
4220
|
-
color: e =
|
|
4232
|
+
color: e = _.GREY_DARK_5,
|
|
4221
4233
|
height: t = 24,
|
|
4222
4234
|
width: s = 24,
|
|
4223
4235
|
onClick: n
|
|
@@ -4254,9 +4266,9 @@ const p2 = ({
|
|
|
4254
4266
|
)
|
|
4255
4267
|
]
|
|
4256
4268
|
}
|
|
4257
|
-
),
|
|
4269
|
+
), ii = ({
|
|
4258
4270
|
className: i,
|
|
4259
|
-
color: e =
|
|
4271
|
+
color: e = _.GREY_DARK_5,
|
|
4260
4272
|
height: t = 24,
|
|
4261
4273
|
width: s = 24,
|
|
4262
4274
|
onClick: n
|
|
@@ -4281,9 +4293,9 @@ const p2 = ({
|
|
|
4281
4293
|
}
|
|
4282
4294
|
)
|
|
4283
4295
|
}
|
|
4284
|
-
),
|
|
4296
|
+
), si = ({
|
|
4285
4297
|
className: i,
|
|
4286
|
-
color: e =
|
|
4298
|
+
color: e = _.GREY_DARK_5,
|
|
4287
4299
|
height: t = 24,
|
|
4288
4300
|
width: s = 24,
|
|
4289
4301
|
onClick: n
|
|
@@ -4340,9 +4352,9 @@ const p2 = ({
|
|
|
4340
4352
|
)
|
|
4341
4353
|
]
|
|
4342
4354
|
}
|
|
4343
|
-
),
|
|
4355
|
+
), ni = ({
|
|
4344
4356
|
className: i,
|
|
4345
|
-
color: e =
|
|
4357
|
+
color: e = _.GREY_DARK_5,
|
|
4346
4358
|
height: t = 24,
|
|
4347
4359
|
width: s = 24,
|
|
4348
4360
|
onClick: n
|
|
@@ -4377,9 +4389,9 @@ const p2 = ({
|
|
|
4377
4389
|
)
|
|
4378
4390
|
]
|
|
4379
4391
|
}
|
|
4380
|
-
),
|
|
4392
|
+
), ri = ({
|
|
4381
4393
|
className: i,
|
|
4382
|
-
color: e =
|
|
4394
|
+
color: e = _.GREY_DARK_3,
|
|
4383
4395
|
height: t = 14,
|
|
4384
4396
|
width: s = 14,
|
|
4385
4397
|
onClick: n
|
|
@@ -4414,9 +4426,9 @@ const p2 = ({
|
|
|
4414
4426
|
)
|
|
4415
4427
|
]
|
|
4416
4428
|
}
|
|
4417
|
-
),
|
|
4429
|
+
), oi = ({
|
|
4418
4430
|
className: i,
|
|
4419
|
-
color: e =
|
|
4431
|
+
color: e = _.GREY_DARK_5,
|
|
4420
4432
|
height: t = 18,
|
|
4421
4433
|
onClick: s,
|
|
4422
4434
|
width: n = 18
|
|
@@ -4441,9 +4453,9 @@ const p2 = ({
|
|
|
4441
4453
|
}
|
|
4442
4454
|
)
|
|
4443
4455
|
}
|
|
4444
|
-
),
|
|
4456
|
+
), ai = ({
|
|
4445
4457
|
className: i,
|
|
4446
|
-
color: e =
|
|
4458
|
+
color: e = _.GREY_DARK_5,
|
|
4447
4459
|
height: t = 24,
|
|
4448
4460
|
width: s = 24,
|
|
4449
4461
|
onClick: n
|
|
@@ -4493,9 +4505,9 @@ const p2 = ({
|
|
|
4493
4505
|
)
|
|
4494
4506
|
]
|
|
4495
4507
|
}
|
|
4496
|
-
),
|
|
4508
|
+
), li = ({
|
|
4497
4509
|
className: i,
|
|
4498
|
-
color: e =
|
|
4510
|
+
color: e = _.GREY_DARK_5,
|
|
4499
4511
|
height: t = 24,
|
|
4500
4512
|
width: s = 24,
|
|
4501
4513
|
onClick: n
|
|
@@ -4530,9 +4542,9 @@ const p2 = ({
|
|
|
4530
4542
|
)
|
|
4531
4543
|
]
|
|
4532
4544
|
}
|
|
4533
|
-
),
|
|
4545
|
+
), ci = ({
|
|
4534
4546
|
className: i,
|
|
4535
|
-
color: e =
|
|
4547
|
+
color: e = _.NOTIFICATION_WARNING_DARK,
|
|
4536
4548
|
height: t = 37,
|
|
4537
4549
|
width: s = 36,
|
|
4538
4550
|
onClick: n
|
|
@@ -4569,9 +4581,9 @@ const p2 = ({
|
|
|
4569
4581
|
)
|
|
4570
4582
|
]
|
|
4571
4583
|
}
|
|
4572
|
-
),
|
|
4584
|
+
), hi = ({
|
|
4573
4585
|
className: i,
|
|
4574
|
-
color: e =
|
|
4586
|
+
color: e = _.GREY_DARK_5,
|
|
4575
4587
|
height: t = 24,
|
|
4576
4588
|
width: s = 24,
|
|
4577
4589
|
onClick: n
|
|
@@ -4595,9 +4607,9 @@ const p2 = ({
|
|
|
4595
4607
|
}
|
|
4596
4608
|
)
|
|
4597
4609
|
}
|
|
4598
|
-
),
|
|
4610
|
+
), di = ({
|
|
4599
4611
|
className: i,
|
|
4600
|
-
color: e =
|
|
4612
|
+
color: e = _.GREY_DARK_5,
|
|
4601
4613
|
height: t = 24,
|
|
4602
4614
|
width: s = 24,
|
|
4603
4615
|
onClick: n
|
|
@@ -4634,9 +4646,9 @@ const p2 = ({
|
|
|
4634
4646
|
)
|
|
4635
4647
|
]
|
|
4636
4648
|
}
|
|
4637
|
-
),
|
|
4649
|
+
), gi = ({
|
|
4638
4650
|
className: i,
|
|
4639
|
-
color: e =
|
|
4651
|
+
color: e = _.GREY_DARK_5,
|
|
4640
4652
|
height: t = 24,
|
|
4641
4653
|
width: s = 24,
|
|
4642
4654
|
onClick: n
|
|
@@ -4673,9 +4685,9 @@ const p2 = ({
|
|
|
4673
4685
|
)
|
|
4674
4686
|
]
|
|
4675
4687
|
}
|
|
4676
|
-
),
|
|
4688
|
+
), ui = ({
|
|
4677
4689
|
className: i,
|
|
4678
|
-
color: e =
|
|
4690
|
+
color: e = _.GREY_DARK_5,
|
|
4679
4691
|
height: t = 24,
|
|
4680
4692
|
width: s = 24,
|
|
4681
4693
|
onClick: n
|
|
@@ -4742,9 +4754,9 @@ const p2 = ({
|
|
|
4742
4754
|
)
|
|
4743
4755
|
]
|
|
4744
4756
|
}
|
|
4745
|
-
),
|
|
4757
|
+
), Ci = ({
|
|
4746
4758
|
className: i,
|
|
4747
|
-
color: e =
|
|
4759
|
+
color: e = _.GREY_DARK_5,
|
|
4748
4760
|
height: t = 24,
|
|
4749
4761
|
width: s = 24,
|
|
4750
4762
|
onClick: n
|
|
@@ -4799,9 +4811,9 @@ const p2 = ({
|
|
|
4799
4811
|
)
|
|
4800
4812
|
]
|
|
4801
4813
|
}
|
|
4802
|
-
),
|
|
4814
|
+
), pi = ({
|
|
4803
4815
|
className: i,
|
|
4804
|
-
color: e =
|
|
4816
|
+
color: e = _.GREY_DARK_5,
|
|
4805
4817
|
height: t = 24,
|
|
4806
4818
|
width: s = 24,
|
|
4807
4819
|
onClick: n
|
|
@@ -4838,9 +4850,9 @@ const p2 = ({
|
|
|
4838
4850
|
)
|
|
4839
4851
|
]
|
|
4840
4852
|
}
|
|
4841
|
-
),
|
|
4853
|
+
), fi = ({
|
|
4842
4854
|
className: i,
|
|
4843
|
-
color: e =
|
|
4855
|
+
color: e = _.GREY_DARK_5,
|
|
4844
4856
|
height: t = 24,
|
|
4845
4857
|
width: s = 24,
|
|
4846
4858
|
onClick: n
|
|
@@ -4887,9 +4899,9 @@ const p2 = ({
|
|
|
4887
4899
|
)
|
|
4888
4900
|
]
|
|
4889
4901
|
}
|
|
4890
|
-
),
|
|
4902
|
+
), mi = ({
|
|
4891
4903
|
className: i,
|
|
4892
|
-
color: e =
|
|
4904
|
+
color: e = _.GREY_DARK_5,
|
|
4893
4905
|
height: t = 24,
|
|
4894
4906
|
width: s = 24,
|
|
4895
4907
|
onClick: n
|
|
@@ -4914,9 +4926,9 @@ const p2 = ({
|
|
|
4914
4926
|
}
|
|
4915
4927
|
)
|
|
4916
4928
|
}
|
|
4917
|
-
),
|
|
4929
|
+
), wi = ({
|
|
4918
4930
|
className: i,
|
|
4919
|
-
color: e =
|
|
4931
|
+
color: e = _.GREY_DARK_5,
|
|
4920
4932
|
height: t = 20,
|
|
4921
4933
|
width: s = 20,
|
|
4922
4934
|
onClick: n
|
|
@@ -4931,7 +4943,7 @@ const p2 = ({
|
|
|
4931
4943
|
fill: "none",
|
|
4932
4944
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4933
4945
|
children: [
|
|
4934
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
4946
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: _.GREY_LIGHT_2 }),
|
|
4935
4947
|
/* @__PURE__ */ r(
|
|
4936
4948
|
"path",
|
|
4937
4949
|
{
|
|
@@ -4943,7 +4955,7 @@ const p2 = ({
|
|
|
4943
4955
|
)
|
|
4944
4956
|
]
|
|
4945
4957
|
}
|
|
4946
|
-
),
|
|
4958
|
+
), ki = ({
|
|
4947
4959
|
className: i,
|
|
4948
4960
|
color: e = "#001E52",
|
|
4949
4961
|
height: t = 24,
|
|
@@ -4969,7 +4981,7 @@ const p2 = ({
|
|
|
4969
4981
|
}
|
|
4970
4982
|
)
|
|
4971
4983
|
}
|
|
4972
|
-
),
|
|
4984
|
+
), Li = ({
|
|
4973
4985
|
className: i,
|
|
4974
4986
|
color: e = "#131314",
|
|
4975
4987
|
height: t = 20,
|
|
@@ -4997,7 +5009,7 @@ const p2 = ({
|
|
|
4997
5009
|
}
|
|
4998
5010
|
)
|
|
4999
5011
|
}
|
|
5000
|
-
),
|
|
5012
|
+
), vi = ({
|
|
5001
5013
|
className: i,
|
|
5002
5014
|
color: e = "#001E52",
|
|
5003
5015
|
height: t = 24,
|
|
@@ -5035,7 +5047,7 @@ const p2 = ({
|
|
|
5035
5047
|
)
|
|
5036
5048
|
] }) })
|
|
5037
5049
|
}
|
|
5038
|
-
),
|
|
5050
|
+
), Ni = ({
|
|
5039
5051
|
width: i = 20,
|
|
5040
5052
|
height: e = 20,
|
|
5041
5053
|
color: t = "#001E52",
|
|
@@ -5091,7 +5103,7 @@ const p2 = ({
|
|
|
5091
5103
|
}
|
|
5092
5104
|
)
|
|
5093
5105
|
}
|
|
5094
|
-
),
|
|
5106
|
+
), xi = ({
|
|
5095
5107
|
width: i = 24,
|
|
5096
5108
|
height: e = 24,
|
|
5097
5109
|
color: t = "#131314",
|
|
@@ -5124,10 +5136,10 @@ const p2 = ({
|
|
|
5124
5136
|
)
|
|
5125
5137
|
]
|
|
5126
5138
|
}
|
|
5127
|
-
),
|
|
5139
|
+
), Ri = ({
|
|
5128
5140
|
width: i = 24,
|
|
5129
5141
|
height: e = 24,
|
|
5130
|
-
color: t =
|
|
5142
|
+
color: t = _.GREY_DARK_2,
|
|
5131
5143
|
className: s,
|
|
5132
5144
|
onClick: n
|
|
5133
5145
|
}) => /* @__PURE__ */ C(
|
|
@@ -5163,10 +5175,10 @@ const p2 = ({
|
|
|
5163
5175
|
)
|
|
5164
5176
|
]
|
|
5165
5177
|
}
|
|
5166
|
-
),
|
|
5178
|
+
), Mi = ({
|
|
5167
5179
|
width: i = 24,
|
|
5168
5180
|
height: e = 24,
|
|
5169
|
-
color: t =
|
|
5181
|
+
color: t = _.GREY_DARK_2,
|
|
5170
5182
|
className: s,
|
|
5171
5183
|
onClick: n
|
|
5172
5184
|
}) => /* @__PURE__ */ r(
|
|
@@ -5190,10 +5202,10 @@ const p2 = ({
|
|
|
5190
5202
|
}
|
|
5191
5203
|
)
|
|
5192
5204
|
}
|
|
5193
|
-
),
|
|
5205
|
+
), bi = ({
|
|
5194
5206
|
width: i = 24,
|
|
5195
5207
|
height: e = 24,
|
|
5196
|
-
color: t =
|
|
5208
|
+
color: t = _.GREY_DARK_2,
|
|
5197
5209
|
className: s,
|
|
5198
5210
|
onClick: n
|
|
5199
5211
|
}) => /* @__PURE__ */ C(
|
|
@@ -5230,10 +5242,10 @@ const p2 = ({
|
|
|
5230
5242
|
)
|
|
5231
5243
|
]
|
|
5232
5244
|
}
|
|
5233
|
-
),
|
|
5245
|
+
), yi = ({
|
|
5234
5246
|
width: i = 24,
|
|
5235
5247
|
height: e = 24,
|
|
5236
|
-
color: t =
|
|
5248
|
+
color: t = _.GREY_DARK_2,
|
|
5237
5249
|
className: s,
|
|
5238
5250
|
onClick: n
|
|
5239
5251
|
}) => /* @__PURE__ */ r(
|
|
@@ -5257,10 +5269,10 @@ const p2 = ({
|
|
|
5257
5269
|
}
|
|
5258
5270
|
)
|
|
5259
5271
|
}
|
|
5260
|
-
),
|
|
5272
|
+
), Ei = ({
|
|
5261
5273
|
width: i = 24,
|
|
5262
5274
|
height: e = 24,
|
|
5263
|
-
color: t =
|
|
5275
|
+
color: t = _.GREY_DARK_2,
|
|
5264
5276
|
className: s,
|
|
5265
5277
|
onClick: n
|
|
5266
5278
|
}) => /* @__PURE__ */ r(
|
|
@@ -5284,7 +5296,7 @@ const p2 = ({
|
|
|
5284
5296
|
}
|
|
5285
5297
|
)
|
|
5286
5298
|
}
|
|
5287
|
-
),
|
|
5299
|
+
), _i = ({
|
|
5288
5300
|
width: i = 20,
|
|
5289
5301
|
height: e = 20,
|
|
5290
5302
|
color: t = "#001E52",
|
|
@@ -5310,218 +5322,218 @@ const p2 = ({
|
|
|
5310
5322
|
}
|
|
5311
5323
|
)
|
|
5312
5324
|
}
|
|
5313
|
-
),
|
|
5325
|
+
), Hi = ({
|
|
5314
5326
|
name: i,
|
|
5315
5327
|
width: e,
|
|
5316
5328
|
height: t,
|
|
5317
5329
|
color: s,
|
|
5318
5330
|
className: n,
|
|
5319
5331
|
disabled: o = !1,
|
|
5320
|
-
onClick:
|
|
5332
|
+
onClick: h
|
|
5321
5333
|
}) => {
|
|
5322
|
-
const [a, d] =
|
|
5323
|
-
return
|
|
5334
|
+
const [a, d] = T(n), { theme: g } = r1(ge), l = o ? g && g === "dark" ? _.GREY_LIGHT_4 : _.GREY_DARK_1 : s, c = o ? void 0 : h;
|
|
5335
|
+
return Z(() => {
|
|
5324
5336
|
if (n) {
|
|
5325
|
-
|
|
5337
|
+
c && !o && d(`${n} clickable`);
|
|
5326
5338
|
return;
|
|
5327
5339
|
}
|
|
5328
|
-
|
|
5329
|
-
}, [
|
|
5340
|
+
c && !o && d("clickable");
|
|
5341
|
+
}, [c, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
5330
5342
|
switch (i) {
|
|
5331
5343
|
case "nextIcon":
|
|
5332
|
-
return
|
|
5344
|
+
return J2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5333
5345
|
case "prevIcon":
|
|
5334
|
-
return
|
|
5346
|
+
return q2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5335
5347
|
case "arrowDown":
|
|
5336
|
-
return
|
|
5348
|
+
return m2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5337
5349
|
case "info":
|
|
5338
|
-
return
|
|
5350
|
+
return w2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5339
5351
|
case "arrowRight":
|
|
5340
|
-
return
|
|
5352
|
+
return k2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5341
5353
|
case "calendar":
|
|
5342
|
-
return
|
|
5354
|
+
return L2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5343
5355
|
case "ok":
|
|
5344
|
-
return
|
|
5356
|
+
return v2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5345
5357
|
case "cancel":
|
|
5346
|
-
return
|
|
5358
|
+
return N2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5347
5359
|
case "add":
|
|
5348
|
-
return
|
|
5360
|
+
return x2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5349
5361
|
case "list":
|
|
5350
|
-
return
|
|
5362
|
+
return R2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5351
5363
|
case "dragAndDrop":
|
|
5352
|
-
return
|
|
5364
|
+
return M2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5353
5365
|
case "filter":
|
|
5354
|
-
return
|
|
5366
|
+
return b2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5355
5367
|
case "attention":
|
|
5356
|
-
return
|
|
5368
|
+
return y2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5357
5369
|
case "users":
|
|
5358
|
-
return
|
|
5370
|
+
return E2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5359
5371
|
case "mySkillsMatrix":
|
|
5360
|
-
return
|
|
5372
|
+
return _2({
|
|
5361
5373
|
width: e,
|
|
5362
5374
|
height: t,
|
|
5363
5375
|
color: l,
|
|
5364
5376
|
className: a,
|
|
5365
|
-
onClick:
|
|
5377
|
+
onClick: c
|
|
5366
5378
|
});
|
|
5367
5379
|
case "skills":
|
|
5368
|
-
return
|
|
5380
|
+
return H2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5369
5381
|
case "skillsMatrices":
|
|
5370
|
-
return
|
|
5382
|
+
return I2({
|
|
5371
5383
|
width: e,
|
|
5372
5384
|
height: t,
|
|
5373
5385
|
color: l,
|
|
5374
5386
|
className: a,
|
|
5375
|
-
onClick:
|
|
5387
|
+
onClick: c
|
|
5376
5388
|
});
|
|
5377
5389
|
case "history":
|
|
5378
|
-
return
|
|
5390
|
+
return O2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5379
5391
|
case "logOut":
|
|
5380
|
-
return
|
|
5392
|
+
return S2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5381
5393
|
case "settings":
|
|
5382
|
-
return
|
|
5394
|
+
return V2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5383
5395
|
case "trash":
|
|
5384
|
-
return
|
|
5396
|
+
return A2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5385
5397
|
case "settings4":
|
|
5386
|
-
return
|
|
5398
|
+
return T2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5387
5399
|
case "success":
|
|
5388
|
-
return
|
|
5400
|
+
return D2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5389
5401
|
case "errorSmall":
|
|
5390
|
-
return
|
|
5402
|
+
return B2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5391
5403
|
case "infoMedium":
|
|
5392
|
-
return
|
|
5404
|
+
return j2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5393
5405
|
case "attentionMedium":
|
|
5394
|
-
return
|
|
5406
|
+
return Z2({
|
|
5395
5407
|
width: e,
|
|
5396
5408
|
height: t,
|
|
5397
5409
|
color: l,
|
|
5398
5410
|
className: a,
|
|
5399
|
-
onClick:
|
|
5411
|
+
onClick: c
|
|
5400
5412
|
});
|
|
5401
5413
|
case "errorMedium":
|
|
5402
|
-
return
|
|
5414
|
+
return W2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5403
5415
|
case "visibilityIcon":
|
|
5404
|
-
return
|
|
5416
|
+
return G2({
|
|
5405
5417
|
width: e,
|
|
5406
5418
|
height: t,
|
|
5407
5419
|
color: l,
|
|
5408
5420
|
className: a,
|
|
5409
|
-
onClick:
|
|
5421
|
+
onClick: c
|
|
5410
5422
|
});
|
|
5411
5423
|
case "visibilityOffIcon":
|
|
5412
|
-
return
|
|
5424
|
+
return K2({
|
|
5413
5425
|
width: e,
|
|
5414
5426
|
height: t,
|
|
5415
5427
|
color: l,
|
|
5416
5428
|
className: a,
|
|
5417
|
-
onClick:
|
|
5429
|
+
onClick: c
|
|
5418
5430
|
});
|
|
5419
5431
|
case "selectArrowIcon":
|
|
5420
|
-
return
|
|
5432
|
+
return $2({
|
|
5421
5433
|
width: e,
|
|
5422
5434
|
height: t,
|
|
5423
5435
|
color: l,
|
|
5424
5436
|
className: a,
|
|
5425
|
-
onClick:
|
|
5437
|
+
onClick: c
|
|
5426
5438
|
});
|
|
5427
5439
|
case "expandArrowIcon":
|
|
5428
|
-
return
|
|
5440
|
+
return P2({
|
|
5429
5441
|
width: e,
|
|
5430
5442
|
height: t,
|
|
5431
5443
|
color: l,
|
|
5432
5444
|
className: a,
|
|
5433
|
-
onClick:
|
|
5445
|
+
onClick: c
|
|
5434
5446
|
});
|
|
5435
5447
|
case "expandActiveArrowIcon":
|
|
5436
|
-
return
|
|
5448
|
+
return F2({
|
|
5437
5449
|
width: e,
|
|
5438
5450
|
height: t,
|
|
5439
5451
|
color: l,
|
|
5440
5452
|
className: a,
|
|
5441
|
-
onClick:
|
|
5453
|
+
onClick: c
|
|
5442
5454
|
});
|
|
5443
5455
|
case "sortUp":
|
|
5444
|
-
return
|
|
5456
|
+
return Y2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5445
5457
|
case "sortDown":
|
|
5446
|
-
return
|
|
5458
|
+
return U2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5447
5459
|
case "search":
|
|
5448
|
-
return
|
|
5460
|
+
return z2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5449
5461
|
case "arrowUpFilled":
|
|
5450
|
-
return
|
|
5462
|
+
return X2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5451
5463
|
case "arrowDownFilled":
|
|
5452
|
-
return
|
|
5464
|
+
return Q2({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5453
5465
|
case "link":
|
|
5454
|
-
return
|
|
5466
|
+
return ei({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5455
5467
|
case "telegram":
|
|
5456
|
-
return
|
|
5468
|
+
return ii({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5457
5469
|
case "mail":
|
|
5458
|
-
return
|
|
5470
|
+
return ni({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5459
5471
|
case "github":
|
|
5460
|
-
return
|
|
5472
|
+
return ti({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5461
5473
|
case "linkedIn":
|
|
5462
|
-
return
|
|
5474
|
+
return si({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5463
5475
|
case "emptyStateIcon":
|
|
5464
|
-
return
|
|
5476
|
+
return ri({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5465
5477
|
case "filtersIcon":
|
|
5466
|
-
return
|
|
5478
|
+
return oi({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5467
5479
|
case "dotMenuIcon":
|
|
5468
|
-
return
|
|
5480
|
+
return ai({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5469
5481
|
case "plusCircle":
|
|
5470
|
-
return
|
|
5482
|
+
return li({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5471
5483
|
case "warning":
|
|
5472
|
-
return
|
|
5484
|
+
return ci({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5473
5485
|
case "back":
|
|
5474
|
-
return
|
|
5486
|
+
return hi({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5475
5487
|
case "bell":
|
|
5476
|
-
return
|
|
5488
|
+
return di({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5477
5489
|
case "contract":
|
|
5478
|
-
return
|
|
5490
|
+
return ui({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5479
5491
|
case "trash2":
|
|
5480
|
-
return
|
|
5492
|
+
return gi({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5481
5493
|
case "resourceManager":
|
|
5482
|
-
return
|
|
5494
|
+
return Ci({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5483
5495
|
case "settings2":
|
|
5484
|
-
return
|
|
5496
|
+
return pi({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5485
5497
|
case "image":
|
|
5486
|
-
return
|
|
5498
|
+
return fi({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5487
5499
|
case "edit":
|
|
5488
|
-
return
|
|
5500
|
+
return mi({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5489
5501
|
case "filledArrowRight":
|
|
5490
|
-
return
|
|
5502
|
+
return wi({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5491
5503
|
case "burgerMenu":
|
|
5492
|
-
return
|
|
5504
|
+
return ki({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5493
5505
|
case "signOut":
|
|
5494
|
-
return
|
|
5506
|
+
return Li({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5495
5507
|
case "refresh":
|
|
5496
|
-
return
|
|
5508
|
+
return vi({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5497
5509
|
case "projects":
|
|
5498
|
-
return
|
|
5510
|
+
return Ni({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5499
5511
|
case "profile":
|
|
5500
|
-
return
|
|
5512
|
+
return _i({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5501
5513
|
case "exit":
|
|
5502
|
-
return
|
|
5514
|
+
return xi({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5503
5515
|
case "client":
|
|
5504
|
-
return
|
|
5516
|
+
return Ri({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5505
5517
|
case "calendar2":
|
|
5506
|
-
return
|
|
5518
|
+
return Mi({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5507
5519
|
case "openPointCircle":
|
|
5508
|
-
return
|
|
5520
|
+
return bi({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5509
5521
|
case "community":
|
|
5510
|
-
return
|
|
5522
|
+
return yi({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5511
5523
|
case "docs":
|
|
5512
|
-
return
|
|
5524
|
+
return Ei({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5513
5525
|
default:
|
|
5514
5526
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
5515
5527
|
}
|
|
5516
5528
|
})() });
|
|
5517
5529
|
};
|
|
5518
5530
|
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 || {});
|
|
5519
|
-
const
|
|
5531
|
+
const Ii = d1({
|
|
5520
5532
|
locale: "en",
|
|
5521
5533
|
theme: "light"
|
|
5522
5534
|
});
|
|
5523
|
-
|
|
5524
|
-
const
|
|
5535
|
+
Ii.Provider;
|
|
5536
|
+
const ue = ({
|
|
5525
5537
|
children: i,
|
|
5526
5538
|
width: e,
|
|
5527
5539
|
size: t = "small",
|
|
@@ -5529,20 +5541,20 @@ const ge = ({
|
|
|
5529
5541
|
closable: n = !0,
|
|
5530
5542
|
disabled: o = !1
|
|
5531
5543
|
}) => {
|
|
5532
|
-
const
|
|
5544
|
+
const h = t === "small" ? 10 : 12.5, a = () => {
|
|
5533
5545
|
o || s == null || s();
|
|
5534
5546
|
};
|
|
5535
5547
|
return /* @__PURE__ */ r(
|
|
5536
|
-
|
|
5548
|
+
ye,
|
|
5537
5549
|
{
|
|
5538
5550
|
className: `snmt-tag ${t} ${o ? "disabled" : ""}`,
|
|
5539
5551
|
closeIcon: /* @__PURE__ */ r(
|
|
5540
|
-
|
|
5552
|
+
Hi,
|
|
5541
5553
|
{
|
|
5542
5554
|
name: "errorSmall",
|
|
5543
5555
|
color: o ? f1.GREY_DARK_1 : f1.GREY_DARK_2,
|
|
5544
|
-
width:
|
|
5545
|
-
height:
|
|
5556
|
+
width: h,
|
|
5557
|
+
height: h,
|
|
5546
5558
|
onClick: a
|
|
5547
5559
|
}
|
|
5548
5560
|
),
|
|
@@ -5550,7 +5562,7 @@ const ge = ({
|
|
|
5550
5562
|
style: { width: e ?? "fit-content" },
|
|
5551
5563
|
closable: n,
|
|
5552
5564
|
children: typeof i == "string" ? /* @__PURE__ */ r(
|
|
5553
|
-
|
|
5565
|
+
f2,
|
|
5554
5566
|
{
|
|
5555
5567
|
variant: t === "small" ? "body4" : "body2",
|
|
5556
5568
|
color: o ? f1.GREY_DARK_2 : f1.GREY_DARK_5,
|
|
@@ -5559,12 +5571,22 @@ const ge = ({
|
|
|
5559
5571
|
) : i
|
|
5560
5572
|
}
|
|
5561
5573
|
);
|
|
5562
|
-
}, {
|
|
5574
|
+
}, Oi = ({ children: i, title: e, arrow: t = !0, open: s, placement: n = "top" }) => /* @__PURE__ */ r(
|
|
5575
|
+
ae,
|
|
5576
|
+
{
|
|
5577
|
+
overlayClassName: "snmt-tooltip",
|
|
5578
|
+
title: e,
|
|
5579
|
+
arrow: t,
|
|
5580
|
+
open: s,
|
|
5581
|
+
placement: n,
|
|
5582
|
+
children: i
|
|
5583
|
+
}
|
|
5584
|
+
), { Title: Si, Text: Vi } = le, Ai = {
|
|
5563
5585
|
h1: 1,
|
|
5564
5586
|
h2: 2,
|
|
5565
5587
|
h3: 3,
|
|
5566
5588
|
h4: 4
|
|
5567
|
-
},
|
|
5589
|
+
}, Ti = k1(
|
|
5568
5590
|
({
|
|
5569
5591
|
align: i = "inherit",
|
|
5570
5592
|
variant: e = "body1",
|
|
@@ -5572,32 +5594,34 @@ const ge = ({
|
|
|
5572
5594
|
children: s,
|
|
5573
5595
|
onClick: n,
|
|
5574
5596
|
collapsed: o,
|
|
5575
|
-
whiteSpace:
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5597
|
+
whiteSpace: h = "normal",
|
|
5598
|
+
/** This prop allows you to enable tooltip if text size is too big */
|
|
5599
|
+
trim: a = !1
|
|
5600
|
+
}, d) => {
|
|
5601
|
+
const g = q(null);
|
|
5602
|
+
_1(d, () => g.current);
|
|
5603
|
+
const [l, c] = T(!1);
|
|
5604
|
+
Z(() => {
|
|
5605
|
+
if (!a) return;
|
|
5606
|
+
const m = () => {
|
|
5607
|
+
g.current && c(g.current.scrollWidth > g.current.clientWidth);
|
|
5608
|
+
}, y = new ResizeObserver(m);
|
|
5609
|
+
return g.current && y.observe(g.current), () => {
|
|
5610
|
+
y.disconnect();
|
|
5611
|
+
};
|
|
5612
|
+
}, [a, l]);
|
|
5613
|
+
const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5614
|
+
let p = `snmt-typography snmt-typography-${e}`;
|
|
5615
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed"), a && (p += " collapsed");
|
|
5616
|
+
const w = {
|
|
5617
|
+
className: p,
|
|
5618
|
+
style: { color: t, whiteSpace: a ? "nowrap" : h },
|
|
5619
|
+
onClick: n,
|
|
5620
|
+
ref: g
|
|
5621
|
+
}, k = u ? /* @__PURE__ */ r(Si, { level: Ai[e], ...w, children: s }) : /* @__PURE__ */ r(Vi, { ...w, children: s });
|
|
5622
|
+
return a && l ? /* @__PURE__ */ r(Oi, { placement: "top", title: s, children: k }) : k;
|
|
5623
|
+
}
|
|
5624
|
+
), Di = ({
|
|
5601
5625
|
children: i,
|
|
5602
5626
|
content: e,
|
|
5603
5627
|
isOpen: t,
|
|
@@ -5605,16 +5629,16 @@ const ge = ({
|
|
|
5605
5629
|
placement: n = "topRight",
|
|
5606
5630
|
noPadding: o = !1
|
|
5607
5631
|
}) => {
|
|
5608
|
-
const [
|
|
5632
|
+
const [h, a] = T(!1);
|
|
5609
5633
|
return /* @__PURE__ */ r(
|
|
5610
|
-
|
|
5634
|
+
Ee,
|
|
5611
5635
|
{
|
|
5612
5636
|
content: e,
|
|
5613
5637
|
arrow: !1,
|
|
5614
5638
|
placement: n,
|
|
5615
5639
|
trigger: "click",
|
|
5616
5640
|
overlayClassName: `snmt-popover ${o ? "" : "padding"}`,
|
|
5617
|
-
open: t ??
|
|
5641
|
+
open: t ?? h,
|
|
5618
5642
|
onOpenChange: (d) => {
|
|
5619
5643
|
a(d), s == null || s(d);
|
|
5620
5644
|
},
|
|
@@ -5622,47 +5646,47 @@ const ge = ({
|
|
|
5622
5646
|
}
|
|
5623
5647
|
);
|
|
5624
5648
|
};
|
|
5625
|
-
var
|
|
5649
|
+
var Bi = { exports: {} };
|
|
5626
5650
|
(function(i, e) {
|
|
5627
5651
|
(function(t, s) {
|
|
5628
5652
|
i.exports = s();
|
|
5629
|
-
})(
|
|
5653
|
+
})(Se, function() {
|
|
5630
5654
|
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t) {
|
|
5631
5655
|
var s = ["th", "st", "nd", "rd"], n = t % 100;
|
|
5632
5656
|
return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
|
|
5633
5657
|
} };
|
|
5634
5658
|
});
|
|
5635
|
-
})(
|
|
5636
|
-
const
|
|
5659
|
+
})(Bi);
|
|
5660
|
+
const ji = ({
|
|
5637
5661
|
values: i,
|
|
5638
5662
|
onTagClose: e,
|
|
5639
5663
|
maxWidth: t,
|
|
5640
5664
|
closable: s = !0,
|
|
5641
5665
|
disabled: n,
|
|
5642
5666
|
options: o,
|
|
5643
|
-
extraOptions:
|
|
5667
|
+
extraOptions: h
|
|
5644
5668
|
}) => {
|
|
5645
|
-
const { locale: a } = r1(
|
|
5646
|
-
if (
|
|
5669
|
+
const { locale: a } = r1(B1), { t: d } = Je("common", { lng: a }), [g, l] = T(!1);
|
|
5670
|
+
if (Z(() => {
|
|
5647
5671
|
i.length || l(!1);
|
|
5648
5672
|
}, [i]), !i.length)
|
|
5649
5673
|
return null;
|
|
5650
|
-
const
|
|
5651
|
-
var p,
|
|
5652
|
-
return ((p = o == null ? void 0 : o.find((
|
|
5674
|
+
const c = (u) => {
|
|
5675
|
+
var p, w;
|
|
5676
|
+
return ((p = o == null ? void 0 : o.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;
|
|
5653
5677
|
};
|
|
5654
5678
|
return /* @__PURE__ */ C(
|
|
5655
|
-
|
|
5679
|
+
Di,
|
|
5656
5680
|
{
|
|
5657
5681
|
content: (
|
|
5658
5682
|
// 90: paddings + margins + gaps and so on
|
|
5659
5683
|
/* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ r(p1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: u }) => /* @__PURE__ */ r(
|
|
5660
|
-
|
|
5684
|
+
ue,
|
|
5661
5685
|
{
|
|
5662
5686
|
onClose: () => e(u),
|
|
5663
5687
|
closable: s,
|
|
5664
5688
|
disabled: n,
|
|
5665
|
-
children:
|
|
5689
|
+
children: c(u)
|
|
5666
5690
|
},
|
|
5667
5691
|
u
|
|
5668
5692
|
)) }) })
|
|
@@ -5677,7 +5701,7 @@ const Ti = ({
|
|
|
5677
5701
|
]
|
|
5678
5702
|
}
|
|
5679
5703
|
);
|
|
5680
|
-
},
|
|
5704
|
+
}, K1 = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
5681
5705
|
const t = `no-repeat linear-gradient(${e}
|
|
5682
5706
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
|
5683
5707
|
width: i,
|
|
@@ -5685,7 +5709,7 @@ const Ti = ({
|
|
|
5685
5709
|
backgroundSize: "20% calc(200% + 20px)"
|
|
5686
5710
|
};
|
|
5687
5711
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
|
|
5688
|
-
},
|
|
5712
|
+
}, $1 = k1(
|
|
5689
5713
|
({
|
|
5690
5714
|
value: i,
|
|
5691
5715
|
onChange: e,
|
|
@@ -5693,90 +5717,90 @@ const Ti = ({
|
|
|
5693
5717
|
mode: s,
|
|
5694
5718
|
search: n = !1,
|
|
5695
5719
|
options: o,
|
|
5696
|
-
width:
|
|
5720
|
+
width: h,
|
|
5697
5721
|
disabled: a = !1,
|
|
5698
5722
|
required: d = !1,
|
|
5699
5723
|
clearable: g = !1,
|
|
5700
5724
|
scrollThresholdValue: l = 50,
|
|
5701
|
-
onSearchChange:
|
|
5725
|
+
onSearchChange: c,
|
|
5702
5726
|
onDropdownVisibleChange: u,
|
|
5703
5727
|
onScrollToEnd: p,
|
|
5704
|
-
onPopupScroll:
|
|
5705
|
-
id:
|
|
5728
|
+
onPopupScroll: w,
|
|
5729
|
+
id: k,
|
|
5706
5730
|
extraOptions: m,
|
|
5707
|
-
dropdownRender:
|
|
5731
|
+
dropdownRender: y,
|
|
5708
5732
|
optionRender: M,
|
|
5709
5733
|
isLoading: S,
|
|
5710
5734
|
readOnly: f,
|
|
5711
5735
|
error: N
|
|
5712
5736
|
}, x) => {
|
|
5713
|
-
const [
|
|
5714
|
-
|
|
5737
|
+
const [v, P] = T(!1), [J, F] = T(!1), [H, B] = T(!0), [I, V] = T(i), D = q(null);
|
|
5738
|
+
Z(() => {
|
|
5715
5739
|
V(i);
|
|
5716
5740
|
}, [i]);
|
|
5717
|
-
const
|
|
5718
|
-
P(
|
|
5719
|
-
}, U = (
|
|
5720
|
-
var
|
|
5721
|
-
return !!((
|
|
5722
|
-
},
|
|
5741
|
+
const W = (L) => {
|
|
5742
|
+
P(L), u && u(L);
|
|
5743
|
+
}, U = (L, b) => {
|
|
5744
|
+
var j;
|
|
5745
|
+
return !!((j = b == null ? void 0 : b.label) != null && j.toString().toLowerCase().includes(L.toLowerCase()));
|
|
5746
|
+
}, O = () => {
|
|
5723
5747
|
F(!0);
|
|
5724
5748
|
}, K = () => {
|
|
5725
5749
|
F(!1);
|
|
5726
|
-
},
|
|
5727
|
-
(
|
|
5728
|
-
if (V(
|
|
5729
|
-
const
|
|
5730
|
-
e == null || e(
|
|
5750
|
+
}, G = $(
|
|
5751
|
+
(L) => {
|
|
5752
|
+
if (V(L), s) {
|
|
5753
|
+
const j = L;
|
|
5754
|
+
e == null || e(j);
|
|
5731
5755
|
return;
|
|
5732
5756
|
}
|
|
5733
|
-
const b =
|
|
5757
|
+
const b = L;
|
|
5734
5758
|
e == null || e(b);
|
|
5735
5759
|
},
|
|
5736
5760
|
[s, e]
|
|
5737
5761
|
), e1 = $(() => {
|
|
5738
5762
|
if (!(f || a)) {
|
|
5739
5763
|
if (s) {
|
|
5740
|
-
|
|
5764
|
+
G([]);
|
|
5741
5765
|
return;
|
|
5742
5766
|
}
|
|
5743
|
-
|
|
5767
|
+
G("");
|
|
5744
5768
|
}
|
|
5745
|
-
}, [a,
|
|
5746
|
-
(
|
|
5747
|
-
const b =
|
|
5748
|
-
|
|
5769
|
+
}, [a, G, s, f]), t1 = $(
|
|
5770
|
+
(L) => {
|
|
5771
|
+
const b = I.filter((j) => j !== L);
|
|
5772
|
+
G(b), V(b);
|
|
5749
5773
|
},
|
|
5750
|
-
[
|
|
5774
|
+
[G, I]
|
|
5751
5775
|
), g1 = $(
|
|
5752
|
-
(
|
|
5776
|
+
(L) => (I == null ? void 0 : I.indexOf(L)) === 0 ? (
|
|
5753
5777
|
// if the search input is empty
|
|
5754
5778
|
// then display the placeholder, else do not display it
|
|
5755
|
-
/* @__PURE__ */ r("span", { className: "custom-placeholder", children:
|
|
5779
|
+
/* @__PURE__ */ r("span", { className: "custom-placeholder", children: H ? t : "" })
|
|
5756
5780
|
) : /* @__PURE__ */ r(i1, {}),
|
|
5757
|
-
[
|
|
5758
|
-
), L1 = (
|
|
5759
|
-
|
|
5760
|
-
}, v1 = async (
|
|
5761
|
-
const { target: b } =
|
|
5762
|
-
b.scrollTop + b.offsetHeight >= b.scrollHeight - l && (p == null || p(!0)),
|
|
5781
|
+
[H, I, t]
|
|
5782
|
+
), L1 = (L) => {
|
|
5783
|
+
L.preventDefault(), L.stopPropagation();
|
|
5784
|
+
}, v1 = async (L) => {
|
|
5785
|
+
const { target: b } = L;
|
|
5786
|
+
b.scrollTop + b.offsetHeight >= b.scrollHeight - l && (p == null || p(!0)), w && await w(L);
|
|
5763
5787
|
}, o1 = $(
|
|
5764
|
-
(
|
|
5765
|
-
var b,
|
|
5766
|
-
return ((b = o.find((a1) => a1.value ===
|
|
5767
|
-
(a1) => a1.value ===
|
|
5768
|
-
)) == null ? void 0 :
|
|
5788
|
+
(L) => {
|
|
5789
|
+
var b, j;
|
|
5790
|
+
return ((b = o.find((a1) => a1.value === L)) == null ? void 0 : b.label) || ((j = m == null ? void 0 : m.find(
|
|
5791
|
+
(a1) => a1.value === L
|
|
5792
|
+
)) == null ? void 0 : j.label) || L;
|
|
5769
5793
|
},
|
|
5770
5794
|
[m, o]
|
|
5771
5795
|
), N1 = $(
|
|
5772
|
-
(
|
|
5796
|
+
(L) => {
|
|
5773
5797
|
var b;
|
|
5774
5798
|
return /* @__PURE__ */ r(
|
|
5775
|
-
|
|
5799
|
+
ji,
|
|
5776
5800
|
{
|
|
5777
|
-
values:
|
|
5801
|
+
values: L,
|
|
5778
5802
|
onTagClose: t1,
|
|
5779
|
-
maxWidth: ((b =
|
|
5803
|
+
maxWidth: ((b = D.current) == null ? void 0 : b.clientWidth) || 0,
|
|
5780
5804
|
disabled: a,
|
|
5781
5805
|
closable: !f,
|
|
5782
5806
|
options: o,
|
|
@@ -5786,50 +5810,50 @@ const Ti = ({
|
|
|
5786
5810
|
},
|
|
5787
5811
|
[a, m, t1, o, f]
|
|
5788
5812
|
), A = $(
|
|
5789
|
-
({ label:
|
|
5813
|
+
({ label: L, value: b, mode: j }) => j === "filter" ? g1(b) : /* @__PURE__ */ r("div", { onMouseDown: L1, className: "tag-wrapper", children: /* @__PURE__ */ r(ue, { onClose: () => t1(b), disabled: a, children: typeof L == "object" ? L : o1(b) }) }),
|
|
5790
5814
|
[a, o1, t1, g1]
|
|
5791
|
-
), z = Array.isArray(
|
|
5815
|
+
), z = Array.isArray(I) && I.length > 0 || !!I && typeof I == "string" && I.trim() !== "";
|
|
5792
5816
|
return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
|
|
5793
5817
|
/* @__PURE__ */ C(
|
|
5794
5818
|
"div",
|
|
5795
5819
|
{
|
|
5796
5820
|
className: `snmt-select-1-15-6 ${J ? "snmt-select-focused" : ""}
|
|
5797
5821
|
${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
|
5798
|
-
ref:
|
|
5799
|
-
style: { width:
|
|
5822
|
+
ref: D,
|
|
5823
|
+
style: { width: h },
|
|
5800
5824
|
children: [
|
|
5801
5825
|
/* @__PURE__ */ r(
|
|
5802
|
-
|
|
5826
|
+
xe,
|
|
5803
5827
|
{
|
|
5804
5828
|
className: "snmt-select-blank",
|
|
5805
5829
|
popupClassName: f ? "dropdown-read-only" : "",
|
|
5806
|
-
id:
|
|
5830
|
+
id: k,
|
|
5807
5831
|
ref: x,
|
|
5808
5832
|
showSearch: !!n,
|
|
5809
5833
|
filterOption: n && U,
|
|
5810
|
-
onDropdownVisibleChange:
|
|
5834
|
+
onDropdownVisibleChange: W,
|
|
5811
5835
|
disabled: a,
|
|
5812
|
-
value:
|
|
5813
|
-
labelRender: (
|
|
5814
|
-
const b = o1(
|
|
5815
|
-
return a ? /* @__PURE__ */ r("span", { style: { color:
|
|
5836
|
+
value: I || void 0,
|
|
5837
|
+
labelRender: (L) => {
|
|
5838
|
+
const b = o1(L.value);
|
|
5839
|
+
return a ? /* @__PURE__ */ r("span", { style: { color: Q.GREY_DARK_1 }, children: b }) : b;
|
|
5816
5840
|
},
|
|
5817
5841
|
mode: s === "filter" ? "multiple" : s,
|
|
5818
|
-
onChange:
|
|
5819
|
-
onFocus:
|
|
5842
|
+
onChange: G,
|
|
5843
|
+
onFocus: O,
|
|
5820
5844
|
onBlur: K,
|
|
5821
|
-
onSearch: (
|
|
5822
|
-
|
|
5845
|
+
onSearch: (L) => {
|
|
5846
|
+
B(!L), c && c(L);
|
|
5823
5847
|
},
|
|
5824
|
-
onSelect: () =>
|
|
5825
|
-
onDeselect: () =>
|
|
5826
|
-
tagRender: (
|
|
5848
|
+
onSelect: () => B(!0),
|
|
5849
|
+
onDeselect: () => B(!0),
|
|
5850
|
+
tagRender: (L) => A({ ...L, mode: s }),
|
|
5827
5851
|
maxTagCount: "responsive",
|
|
5828
5852
|
maxTagPlaceholder: N1,
|
|
5829
5853
|
onPopupScroll: v1,
|
|
5830
|
-
prefix: S && /* @__PURE__ */ r(
|
|
5854
|
+
prefix: S && /* @__PURE__ */ r(K1, { size: 15 }),
|
|
5831
5855
|
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(i1, { children: [
|
|
5832
|
-
|
|
5856
|
+
I && !!I.length && (s || g) && /* @__PURE__ */ r(
|
|
5833
5857
|
"div",
|
|
5834
5858
|
{
|
|
5835
5859
|
onClick: e1,
|
|
@@ -5840,7 +5864,7 @@ const Ti = ({
|
|
|
5840
5864
|
u1,
|
|
5841
5865
|
{
|
|
5842
5866
|
name: "cancel",
|
|
5843
|
-
color: a ?
|
|
5867
|
+
color: a ? Q.GREY_DARK_1 : Q.GREY_DARK_5
|
|
5844
5868
|
}
|
|
5845
5869
|
)
|
|
5846
5870
|
}
|
|
@@ -5849,40 +5873,40 @@ const Ti = ({
|
|
|
5849
5873
|
u1,
|
|
5850
5874
|
{
|
|
5851
5875
|
name: "selectArrowIcon",
|
|
5852
|
-
color: a ?
|
|
5853
|
-
className:
|
|
5854
|
-
onClick: () => P(!
|
|
5876
|
+
color: a ? Q.GREY_DARK_1 : Q.GREY_DARK_5,
|
|
5877
|
+
className: v ? "select-arrow-rotated" : "select-arrow",
|
|
5878
|
+
onClick: () => P(!v)
|
|
5855
5879
|
}
|
|
5856
5880
|
)
|
|
5857
5881
|
] }) }),
|
|
5858
|
-
removeIcon: /* @__PURE__ */ r(u1, { name: "errorSmall", color:
|
|
5882
|
+
removeIcon: /* @__PURE__ */ r(u1, { name: "errorSmall", color: Q.GREY_DARK_1 }),
|
|
5859
5883
|
options: o,
|
|
5860
|
-
optionRender: (
|
|
5884
|
+
optionRender: (L) => M ? M(L.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
5861
5885
|
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 12, children: [
|
|
5862
5886
|
s && /* @__PURE__ */ r(
|
|
5863
|
-
|
|
5887
|
+
Qe,
|
|
5864
5888
|
{
|
|
5865
|
-
checked: !!(
|
|
5889
|
+
checked: !!(I != null && I.includes(L.value))
|
|
5866
5890
|
}
|
|
5867
5891
|
),
|
|
5868
5892
|
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 8, children: [
|
|
5869
|
-
|
|
5870
|
-
/* @__PURE__ */ r("span", { children:
|
|
5893
|
+
L.data.image && /* @__PURE__ */ r(qe, { src: L.data.image, size: 20 }),
|
|
5894
|
+
/* @__PURE__ */ r("span", { children: L.label })
|
|
5871
5895
|
] })
|
|
5872
5896
|
] }),
|
|
5873
|
-
!s &&
|
|
5897
|
+
!s && I === L.value && /* @__PURE__ */ r(
|
|
5874
5898
|
u1,
|
|
5875
5899
|
{
|
|
5876
5900
|
name: "ok",
|
|
5877
|
-
color:
|
|
5901
|
+
color: Q.BLUE_PRIMARY,
|
|
5878
5902
|
width: 16,
|
|
5879
5903
|
height: 16
|
|
5880
5904
|
}
|
|
5881
5905
|
)
|
|
5882
5906
|
] }),
|
|
5883
|
-
dropdownRender: (
|
|
5884
|
-
/* @__PURE__ */ r("div", { className: "dropdown-menu", children:
|
|
5885
|
-
S && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(
|
|
5907
|
+
dropdownRender: (L) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
|
5908
|
+
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: y ? y(L) : L }),
|
|
5909
|
+
S && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(K1, { size: 28 }) })
|
|
5886
5910
|
] })
|
|
5887
5911
|
}
|
|
5888
5912
|
),
|
|
@@ -5906,15 +5930,15 @@ const Ti = ({
|
|
|
5906
5930
|
}
|
|
5907
5931
|
),
|
|
5908
5932
|
N && /* @__PURE__ */ C(p1, { justifyContent: "flex-start", gap: 6, children: [
|
|
5909
|
-
/* @__PURE__ */ r(u1, { name: "attention", color:
|
|
5910
|
-
typeof N == "string" ? /* @__PURE__ */ r(
|
|
5933
|
+
/* @__PURE__ */ r(u1, { name: "attention", color: Q.NOTIFICATION_ERROR_DARK }),
|
|
5934
|
+
typeof N == "string" ? /* @__PURE__ */ r(Ti, { color: Q.NOTIFICATION_ERROR_DARK, variant: "body4", children: N }) : N
|
|
5911
5935
|
] })
|
|
5912
5936
|
] });
|
|
5913
5937
|
}
|
|
5914
5938
|
);
|
|
5915
|
-
function
|
|
5916
|
-
const t =
|
|
5917
|
-
return
|
|
5939
|
+
function Zi(i, e = 500) {
|
|
5940
|
+
const t = q();
|
|
5941
|
+
return Z(() => () => {
|
|
5918
5942
|
t.current && clearTimeout(t.current);
|
|
5919
5943
|
}, []), (...s) => {
|
|
5920
5944
|
const n = setTimeout(() => {
|
|
@@ -5923,15 +5947,15 @@ function Di(i, e = 500) {
|
|
|
5923
5947
|
clearTimeout(t.current), t.current = n;
|
|
5924
5948
|
};
|
|
5925
5949
|
}
|
|
5926
|
-
function
|
|
5927
|
-
const e =
|
|
5928
|
-
return
|
|
5950
|
+
function P1(i) {
|
|
5951
|
+
const e = q(i);
|
|
5952
|
+
return Z(() => {
|
|
5929
5953
|
e.current = i;
|
|
5930
5954
|
}, [i]), e.current;
|
|
5931
5955
|
}
|
|
5932
|
-
const
|
|
5956
|
+
const I1 = 100, l1 = {
|
|
5933
5957
|
offset: 0
|
|
5934
|
-
},
|
|
5958
|
+
}, F1 = k1(
|
|
5935
5959
|
({
|
|
5936
5960
|
loadOptions: i,
|
|
5937
5961
|
width: e,
|
|
@@ -5939,39 +5963,39 @@ const H1 = 100, l1 = {
|
|
|
5939
5963
|
value: s,
|
|
5940
5964
|
id: n,
|
|
5941
5965
|
disabled: o,
|
|
5942
|
-
scrollThresholdValue:
|
|
5966
|
+
scrollThresholdValue: h,
|
|
5943
5967
|
placeholder: a,
|
|
5944
5968
|
mode: d,
|
|
5945
5969
|
loadOnClosedState: g,
|
|
5946
5970
|
preloadOptions: l,
|
|
5947
|
-
extraOptions:
|
|
5971
|
+
extraOptions: c,
|
|
5948
5972
|
onDropdownVisibleChange: u,
|
|
5949
5973
|
optionRender: p,
|
|
5950
|
-
dropdownRender:
|
|
5951
|
-
readOnly:
|
|
5974
|
+
dropdownRender: w,
|
|
5975
|
+
readOnly: k,
|
|
5952
5976
|
clearable: m = !1,
|
|
5953
|
-
required:
|
|
5977
|
+
required: y = !1,
|
|
5954
5978
|
error: M
|
|
5955
5979
|
}, S) => {
|
|
5956
|
-
const [f, N] =
|
|
5957
|
-
|
|
5958
|
-
),
|
|
5980
|
+
const [f, N] = T(), [x, v] = T(l1), [P, J] = T(!1), [F, H] = T(), [B, I] = T(!1), [V, D] = T(
|
|
5981
|
+
c ?? []
|
|
5982
|
+
), W = P1(x.offset), U = P1(F), [O, K] = T(!1), G = q(!1), e1 = $(
|
|
5959
5983
|
async ({
|
|
5960
|
-
limit: A =
|
|
5984
|
+
limit: A = I1,
|
|
5961
5985
|
offset: z,
|
|
5962
|
-
search:
|
|
5986
|
+
search: L
|
|
5963
5987
|
}) => {
|
|
5964
5988
|
J(!0);
|
|
5965
5989
|
try {
|
|
5966
5990
|
const b = await i({
|
|
5967
5991
|
limit: A,
|
|
5968
5992
|
offset: z,
|
|
5969
|
-
search:
|
|
5993
|
+
search: L
|
|
5970
5994
|
});
|
|
5971
5995
|
N(
|
|
5972
|
-
(
|
|
5973
|
-
),
|
|
5974
|
-
...
|
|
5996
|
+
(j) => z === 0 ? b.options : [...j ?? [], ...b.options]
|
|
5997
|
+
), v((j) => ({
|
|
5998
|
+
...j,
|
|
5975
5999
|
count: b.count
|
|
5976
6000
|
}));
|
|
5977
6001
|
} catch (b) {
|
|
@@ -5981,59 +6005,59 @@ const H1 = 100, l1 = {
|
|
|
5981
6005
|
}
|
|
5982
6006
|
},
|
|
5983
6007
|
[i]
|
|
5984
|
-
), t1 =
|
|
5985
|
-
|
|
6008
|
+
), t1 = Zi((A) => {
|
|
6009
|
+
H(A), A || v(l1);
|
|
5986
6010
|
}), g1 = $(
|
|
5987
6011
|
(A) => t1(A),
|
|
5988
6012
|
[t1]
|
|
5989
6013
|
), L1 = $(
|
|
5990
6014
|
async (A) => {
|
|
5991
|
-
P || A && x.count && x.count > ((f == null ? void 0 : f.length) ?? 0) &&
|
|
6015
|
+
P || A && x.count && x.count > ((f == null ? void 0 : f.length) ?? 0) && v((z) => ({
|
|
5992
6016
|
...z,
|
|
5993
|
-
offset: z.offset +
|
|
6017
|
+
offset: z.offset + I1
|
|
5994
6018
|
}));
|
|
5995
6019
|
},
|
|
5996
6020
|
[P, f == null ? void 0 : f.length, x.count]
|
|
5997
6021
|
), v1 = $(
|
|
5998
6022
|
(A) => {
|
|
5999
|
-
|
|
6023
|
+
I(A), !A && F && (H(void 0), v(l1), K(!0)), u == null || u(A);
|
|
6000
6024
|
},
|
|
6001
6025
|
[u, F]
|
|
6002
6026
|
);
|
|
6003
|
-
|
|
6004
|
-
!
|
|
6005
|
-
}, [
|
|
6006
|
-
(g || l) && e1(l1),
|
|
6007
|
-
}, []),
|
|
6008
|
-
|
|
6009
|
-
const z =
|
|
6010
|
-
(
|
|
6027
|
+
Z(() => {
|
|
6028
|
+
!G.current || P || (O || B && (W !== x.offset || U !== F || !f)) && (e1({ offset: x.offset, limit: I1, search: F }), O && K(!1));
|
|
6029
|
+
}, [O, B, x.offset, F, W, U, f, P]), Z(() => {
|
|
6030
|
+
(g || l) && e1(l1), G.current = !0;
|
|
6031
|
+
}, []), Z(() => {
|
|
6032
|
+
c && D((A) => {
|
|
6033
|
+
const z = c.filter(
|
|
6034
|
+
(L) => !A.some((b) => b.value === L.value)
|
|
6011
6035
|
);
|
|
6012
6036
|
return [...A, ...z];
|
|
6013
6037
|
});
|
|
6014
|
-
}, [
|
|
6038
|
+
}, [c]);
|
|
6015
6039
|
const o1 = $(
|
|
6016
6040
|
(A) => {
|
|
6017
6041
|
t && t(A);
|
|
6018
6042
|
let z = [];
|
|
6019
6043
|
if (d ? z = Array.isArray(A) ? A : [] : z = A ? [A] : [], F) {
|
|
6020
|
-
const
|
|
6021
|
-
(b) => !(V != null && V.some((
|
|
6044
|
+
const L = z.filter(
|
|
6045
|
+
(b) => !(V != null && V.some((j) => j.value === b))
|
|
6022
6046
|
);
|
|
6023
|
-
|
|
6047
|
+
L.length > 0 && D((b = []) => [
|
|
6024
6048
|
...b,
|
|
6025
|
-
...
|
|
6026
|
-
const a1 = f == null ? void 0 : f.find((
|
|
6049
|
+
...L.map((j) => {
|
|
6050
|
+
const a1 = f == null ? void 0 : f.find((ke) => ke.value === j);
|
|
6027
6051
|
return {
|
|
6028
|
-
value:
|
|
6029
|
-
label: (a1 == null ? void 0 : a1.label) ??
|
|
6052
|
+
value: j,
|
|
6053
|
+
label: (a1 == null ? void 0 : a1.label) ?? j
|
|
6030
6054
|
};
|
|
6031
6055
|
})
|
|
6032
|
-
]),
|
|
6056
|
+
]), H(void 0), v(l1), K(!0);
|
|
6033
6057
|
}
|
|
6034
6058
|
},
|
|
6035
6059
|
[t, F, d, f, V]
|
|
6036
|
-
), N1 =
|
|
6060
|
+
), N1 = Ne(
|
|
6037
6061
|
() => ({
|
|
6038
6062
|
id: n,
|
|
6039
6063
|
width: e,
|
|
@@ -6045,16 +6069,16 @@ const H1 = 100, l1 = {
|
|
|
6045
6069
|
value: s,
|
|
6046
6070
|
onSearchChange: g1,
|
|
6047
6071
|
onDropdownVisibleChange: v1,
|
|
6048
|
-
scrollThresholdValue:
|
|
6072
|
+
scrollThresholdValue: h,
|
|
6049
6073
|
onScrollToEnd: L1,
|
|
6050
6074
|
disabled: o,
|
|
6051
6075
|
extraOptions: V,
|
|
6052
6076
|
isLoading: P,
|
|
6053
6077
|
optionRender: p,
|
|
6054
|
-
dropdownRender:
|
|
6055
|
-
readOnly:
|
|
6078
|
+
dropdownRender: w,
|
|
6079
|
+
readOnly: k,
|
|
6056
6080
|
clearable: m,
|
|
6057
|
-
required:
|
|
6081
|
+
required: y,
|
|
6058
6082
|
error: M
|
|
6059
6083
|
}),
|
|
6060
6084
|
[
|
|
@@ -6067,28 +6091,28 @@ const H1 = 100, l1 = {
|
|
|
6067
6091
|
s,
|
|
6068
6092
|
g1,
|
|
6069
6093
|
v1,
|
|
6070
|
-
|
|
6094
|
+
h,
|
|
6071
6095
|
L1,
|
|
6072
6096
|
o,
|
|
6073
6097
|
V,
|
|
6074
6098
|
P,
|
|
6075
6099
|
p,
|
|
6100
|
+
w,
|
|
6076
6101
|
k,
|
|
6077
|
-
v,
|
|
6078
6102
|
m,
|
|
6079
|
-
|
|
6103
|
+
y,
|
|
6080
6104
|
M
|
|
6081
6105
|
]
|
|
6082
6106
|
);
|
|
6083
|
-
return
|
|
6107
|
+
return _1(S, () => ({
|
|
6084
6108
|
refetchOptions: async () => {
|
|
6085
|
-
|
|
6109
|
+
v(l1), H(void 0), K(!0);
|
|
6086
6110
|
}
|
|
6087
|
-
})), d ? /* @__PURE__ */ r(
|
|
6111
|
+
})), d ? /* @__PURE__ */ r($1, { ...N1, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r($1, { ...N1, value: s }) });
|
|
6088
6112
|
}
|
|
6089
6113
|
);
|
|
6090
6114
|
var R1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(R1 || {});
|
|
6091
|
-
const
|
|
6115
|
+
const Wi = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
6092
6116
|
const t = `no-repeat linear-gradient(${e}
|
|
6093
6117
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
|
6094
6118
|
width: i,
|
|
@@ -6097,20 +6121,20 @@ const Bi = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
|
6097
6121
|
};
|
|
6098
6122
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
|
|
6099
6123
|
};
|
|
6100
|
-
function
|
|
6124
|
+
function Gi() {
|
|
6101
6125
|
if (console && console.warn) {
|
|
6102
6126
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
6103
6127
|
e[t] = arguments[t];
|
|
6104
6128
|
n1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
|
6105
6129
|
}
|
|
6106
6130
|
}
|
|
6107
|
-
const
|
|
6108
|
-
function
|
|
6131
|
+
const Y1 = {};
|
|
6132
|
+
function A1() {
|
|
6109
6133
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
6110
6134
|
e[t] = arguments[t];
|
|
6111
|
-
n1(e[0]) &&
|
|
6135
|
+
n1(e[0]) && Y1[e[0]] || (n1(e[0]) && (Y1[e[0]] = /* @__PURE__ */ new Date()), Gi(...e));
|
|
6112
6136
|
}
|
|
6113
|
-
const
|
|
6137
|
+
const Ce = (i, e) => () => {
|
|
6114
6138
|
if (i.isInitialized)
|
|
6115
6139
|
e();
|
|
6116
6140
|
else {
|
|
@@ -6121,30 +6145,30 @@ const ue = (i, e) => () => {
|
|
|
6121
6145
|
};
|
|
6122
6146
|
i.on("initialized", t);
|
|
6123
6147
|
}
|
|
6124
|
-
},
|
|
6125
|
-
i.loadNamespaces(e,
|
|
6126
|
-
},
|
|
6148
|
+
}, U1 = (i, e, t) => {
|
|
6149
|
+
i.loadNamespaces(e, Ce(i, t));
|
|
6150
|
+
}, z1 = (i, e, t, s) => {
|
|
6127
6151
|
n1(t) && (t = [t]), t.forEach((n) => {
|
|
6128
6152
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
6129
|
-
}), i.loadLanguages(e,
|
|
6130
|
-
},
|
|
6153
|
+
}), i.loadLanguages(e, Ce(i, s));
|
|
6154
|
+
}, Ki = function(i, e) {
|
|
6131
6155
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6132
6156
|
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
|
6133
6157
|
if (s.toLowerCase() === "cimode") return !0;
|
|
6134
|
-
const
|
|
6158
|
+
const h = (a, d) => {
|
|
6135
6159
|
const g = e.services.backendConnector.state[`${a}|${d}`];
|
|
6136
6160
|
return g === -1 || g === 2;
|
|
6137
6161
|
};
|
|
6138
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !
|
|
6139
|
-
},
|
|
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(o, i)));
|
|
6163
|
+
}, $i = function(i, e) {
|
|
6140
6164
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6141
|
-
return !e.languages || !e.languages.length ? (
|
|
6165
|
+
return !e.languages || !e.languages.length ? (A1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
6142
6166
|
lng: t.lng,
|
|
6143
6167
|
precheck: (n, o) => {
|
|
6144
6168
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !o(n.isLanguageChangingTo, i)) return !1;
|
|
6145
6169
|
}
|
|
6146
|
-
}) :
|
|
6147
|
-
}, n1 = (i) => typeof i == "string",
|
|
6170
|
+
}) : Ki(i, e, t);
|
|
6171
|
+
}, n1 = (i) => typeof i == "string", Pi = (i) => typeof i == "object" && i !== null, Fi = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Yi = {
|
|
6148
6172
|
"&": "&",
|
|
6149
6173
|
"&": "&",
|
|
6150
6174
|
"<": "<",
|
|
@@ -6165,8 +6189,8 @@ const ue = (i, e) => () => {
|
|
|
6165
6189
|
"…": "…",
|
|
6166
6190
|
"/": "/",
|
|
6167
6191
|
"/": "/"
|
|
6168
|
-
},
|
|
6169
|
-
let
|
|
6192
|
+
}, Ui = (i) => Yi[i], zi = (i) => i.replace(Fi, Ui);
|
|
6193
|
+
let T1 = {
|
|
6170
6194
|
bindI18n: "languageChanged",
|
|
6171
6195
|
bindI18nStore: "",
|
|
6172
6196
|
transEmptyNodeValue: "",
|
|
@@ -6174,27 +6198,27 @@ let A1 = {
|
|
|
6174
6198
|
transWrapTextNodes: "",
|
|
6175
6199
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
6176
6200
|
useSuspense: !0,
|
|
6177
|
-
unescape:
|
|
6201
|
+
unescape: zi
|
|
6178
6202
|
};
|
|
6179
|
-
const
|
|
6203
|
+
const Ji = function() {
|
|
6180
6204
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6181
|
-
|
|
6182
|
-
...
|
|
6205
|
+
T1 = {
|
|
6206
|
+
...T1,
|
|
6183
6207
|
...i
|
|
6184
6208
|
};
|
|
6185
|
-
},
|
|
6186
|
-
let
|
|
6187
|
-
const
|
|
6188
|
-
|
|
6189
|
-
},
|
|
6209
|
+
}, qi = () => T1;
|
|
6210
|
+
let pe;
|
|
6211
|
+
const Qi = (i) => {
|
|
6212
|
+
pe = i;
|
|
6213
|
+
}, Xi = () => pe, e0 = {
|
|
6190
6214
|
type: "3rdParty",
|
|
6191
6215
|
init(i) {
|
|
6192
|
-
|
|
6216
|
+
Ji(i.options.react), Qi(i);
|
|
6193
6217
|
}
|
|
6194
|
-
},
|
|
6195
|
-
class
|
|
6218
|
+
}, t0 = d1();
|
|
6219
|
+
class i0 {
|
|
6196
6220
|
constructor() {
|
|
6197
|
-
|
|
6221
|
+
j1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
|
6198
6222
|
this.usedNamespaces = {};
|
|
6199
6223
|
}
|
|
6200
6224
|
addUsedNamespaces(e) {
|
|
@@ -6203,62 +6227,62 @@ class Xi {
|
|
|
6203
6227
|
});
|
|
6204
6228
|
}
|
|
6205
6229
|
}
|
|
6206
|
-
const
|
|
6207
|
-
const t =
|
|
6208
|
-
return
|
|
6230
|
+
const s0 = (i, e) => {
|
|
6231
|
+
const t = q();
|
|
6232
|
+
return Z(() => {
|
|
6209
6233
|
t.current = i;
|
|
6210
6234
|
}, [i, e]), t.current;
|
|
6211
|
-
},
|
|
6235
|
+
}, fe = (i, e, t, s) => i.getFixedT(e, t, s), n0 = (i, e, t, s) => $(fe(i, e, t, s), [i, e, t, s]), r0 = function(i) {
|
|
6212
6236
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6213
6237
|
const {
|
|
6214
6238
|
i18n: t
|
|
6215
6239
|
} = e, {
|
|
6216
6240
|
i18n: s,
|
|
6217
6241
|
defaultNS: n
|
|
6218
|
-
} = r1(
|
|
6219
|
-
if (o && !o.reportNamespaces && (o.reportNamespaces = new
|
|
6220
|
-
|
|
6221
|
-
const f = (x,
|
|
6242
|
+
} = r1(t0) || {}, o = t || s || Xi();
|
|
6243
|
+
if (o && !o.reportNamespaces && (o.reportNamespaces = new i0()), !o) {
|
|
6244
|
+
A1("You will need to pass in an i18next instance by using initReactI18next");
|
|
6245
|
+
const f = (x, v) => n1(v) ? v : Pi(v) && n1(v.defaultValue) ? v.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
|
|
6222
6246
|
return N.t = f, N.i18n = {}, N.ready = !1, N;
|
|
6223
6247
|
}
|
|
6224
|
-
o.options.react && o.options.react.wait !== void 0 &&
|
|
6225
|
-
const
|
|
6226
|
-
...
|
|
6248
|
+
o.options.react && o.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
|
+
const h = {
|
|
6250
|
+
...qi(),
|
|
6227
6251
|
...o.options.react,
|
|
6228
6252
|
...e
|
|
6229
6253
|
}, {
|
|
6230
6254
|
useSuspense: a,
|
|
6231
6255
|
keyPrefix: d
|
|
6232
|
-
} =
|
|
6256
|
+
} = h;
|
|
6233
6257
|
let g = i;
|
|
6234
6258
|
g = n1(g) ? [g] : g || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(g);
|
|
6235
|
-
const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) =>
|
|
6259
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) => $i(f, o, h)), c = n0(o, e.lng || null, h.nsMode === "fallback" ? g : g[0], d), u = () => c, p = () => fe(o, e.lng || null, h.nsMode === "fallback" ? g : g[0], d), [w, k] = T(u);
|
|
6236
6260
|
let m = g.join();
|
|
6237
6261
|
e.lng && (m = `${e.lng}${m}`);
|
|
6238
|
-
const
|
|
6239
|
-
|
|
6262
|
+
const y = s0(m), M = q(!0);
|
|
6263
|
+
Z(() => {
|
|
6240
6264
|
const {
|
|
6241
6265
|
bindI18n: f,
|
|
6242
6266
|
bindI18nStore: N
|
|
6243
|
-
} =
|
|
6244
|
-
M.current = !0, !l && !a && (e.lng ?
|
|
6245
|
-
M.current &&
|
|
6246
|
-
}) :
|
|
6247
|
-
M.current &&
|
|
6248
|
-
})), l &&
|
|
6267
|
+
} = h;
|
|
6268
|
+
M.current = !0, !l && !a && (e.lng ? z1(o, e.lng, g, () => {
|
|
6269
|
+
M.current && k(p);
|
|
6270
|
+
}) : U1(o, g, () => {
|
|
6271
|
+
M.current && k(p);
|
|
6272
|
+
})), l && y && y !== m && M.current && k(p);
|
|
6249
6273
|
const x = () => {
|
|
6250
|
-
M.current &&
|
|
6274
|
+
M.current && k(p);
|
|
6251
6275
|
};
|
|
6252
6276
|
return f && o && o.on(f, x), N && o && o.store.on(N, x), () => {
|
|
6253
|
-
M.current = !1, f && o && f.split(" ").forEach((
|
|
6277
|
+
M.current = !1, f && o && f.split(" ").forEach((v) => o.off(v, x)), N && o && N.split(" ").forEach((v) => o.store.off(v, x));
|
|
6254
6278
|
};
|
|
6255
|
-
}, [o, m]),
|
|
6256
|
-
M.current && l &&
|
|
6279
|
+
}, [o, m]), Z(() => {
|
|
6280
|
+
M.current && l && k(u);
|
|
6257
6281
|
}, [o, d, l]);
|
|
6258
|
-
const S = [
|
|
6259
|
-
if (S.t =
|
|
6282
|
+
const S = [w, o, l];
|
|
6283
|
+
if (S.t = w, S.i18n = o, S.ready = l, l || !l && !a) return S;
|
|
6260
6284
|
throw new Promise((f) => {
|
|
6261
|
-
e.lng ?
|
|
6285
|
+
e.lng ? z1(o, e.lng, g, () => f()) : U1(o, g, () => f());
|
|
6262
6286
|
});
|
|
6263
6287
|
}, R = (i) => typeof i == "string", C1 = () => {
|
|
6264
6288
|
let i, e;
|
|
@@ -6266,23 +6290,23 @@ const e0 = (i, e) => {
|
|
|
6266
6290
|
i = s, e = n;
|
|
6267
6291
|
});
|
|
6268
6292
|
return t.resolve = i, t.reject = e, t;
|
|
6269
|
-
},
|
|
6293
|
+
}, J1 = (i) => i == null ? "" : "" + i, o0 = (i, e, t) => {
|
|
6270
6294
|
i.forEach((s) => {
|
|
6271
6295
|
e[s] && (t[s] = e[s]);
|
|
6272
6296
|
});
|
|
6273
|
-
},
|
|
6297
|
+
}, a0 = /###/g, q1 = (i) => i && i.indexOf("###") > -1 ? i.replace(a0, ".") : i, Q1 = (i) => !i || R(i), m1 = (i, e, t) => {
|
|
6274
6298
|
const s = R(e) ? e.split(".") : e;
|
|
6275
6299
|
let n = 0;
|
|
6276
6300
|
for (; n < s.length - 1; ) {
|
|
6277
|
-
if (
|
|
6278
|
-
const o =
|
|
6301
|
+
if (Q1(i)) return {};
|
|
6302
|
+
const o = q1(s[n]);
|
|
6279
6303
|
!i[o] && t && (i[o] = new t()), Object.prototype.hasOwnProperty.call(i, o) ? i = i[o] : i = {}, ++n;
|
|
6280
6304
|
}
|
|
6281
|
-
return
|
|
6305
|
+
return Q1(i) ? {} : {
|
|
6282
6306
|
obj: i,
|
|
6283
|
-
k:
|
|
6307
|
+
k: q1(s[n])
|
|
6284
6308
|
};
|
|
6285
|
-
},
|
|
6309
|
+
}, X1 = (i, e, t) => {
|
|
6286
6310
|
const {
|
|
6287
6311
|
obj: s,
|
|
6288
6312
|
k: n
|
|
@@ -6291,11 +6315,11 @@ const e0 = (i, e) => {
|
|
|
6291
6315
|
s[n] = t;
|
|
6292
6316
|
return;
|
|
6293
6317
|
}
|
|
6294
|
-
let o = e[e.length - 1],
|
|
6295
|
-
for (; a.obj === void 0 &&
|
|
6296
|
-
o = `${
|
|
6318
|
+
let o = e[e.length - 1], h = e.slice(0, e.length - 1), a = m1(i, h, Object);
|
|
6319
|
+
for (; a.obj === void 0 && h.length; )
|
|
6320
|
+
o = `${h[h.length - 1]}.${o}`, h = h.slice(0, h.length - 1), a = m1(i, h, Object), a && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
|
|
6297
6321
|
a.obj[`${a.k}.${o}`] = t;
|
|
6298
|
-
},
|
|
6322
|
+
}, l0 = (i, e, t, s) => {
|
|
6299
6323
|
const {
|
|
6300
6324
|
obj: n,
|
|
6301
6325
|
k: o
|
|
@@ -6308,15 +6332,15 @@ const e0 = (i, e) => {
|
|
|
6308
6332
|
} = m1(i, e);
|
|
6309
6333
|
if (t)
|
|
6310
6334
|
return t[s];
|
|
6311
|
-
},
|
|
6335
|
+
}, c0 = (i, e, t) => {
|
|
6312
6336
|
const s = M1(i, t);
|
|
6313
6337
|
return s !== void 0 ? s : M1(e, t);
|
|
6314
|
-
},
|
|
6338
|
+
}, me = (i, e, t) => {
|
|
6315
6339
|
for (const s in e)
|
|
6316
|
-
s !== "__proto__" && s !== "constructor" && (s in i ? R(i[s]) || i[s] instanceof String || R(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) :
|
|
6340
|
+
s !== "__proto__" && s !== "constructor" && (s in i ? R(i[s]) || i[s] instanceof String || R(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : me(i[s], e[s], t) : i[s] = e[s]);
|
|
6317
6341
|
return i;
|
|
6318
|
-
},
|
|
6319
|
-
var
|
|
6342
|
+
}, c1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
6343
|
+
var h0 = {
|
|
6320
6344
|
"&": "&",
|
|
6321
6345
|
"<": "<",
|
|
6322
6346
|
">": ">",
|
|
@@ -6324,8 +6348,8 @@ var a0 = {
|
|
|
6324
6348
|
"'": "'",
|
|
6325
6349
|
"/": "/"
|
|
6326
6350
|
};
|
|
6327
|
-
const
|
|
6328
|
-
class
|
|
6351
|
+
const d0 = (i) => R(i) ? i.replace(/[&<>"'\/]/g, (e) => h0[e]) : i;
|
|
6352
|
+
class g0 {
|
|
6329
6353
|
constructor(e) {
|
|
6330
6354
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
6331
6355
|
}
|
|
@@ -6337,18 +6361,18 @@ class h0 {
|
|
|
6337
6361
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
|
6338
6362
|
}
|
|
6339
6363
|
}
|
|
6340
|
-
const
|
|
6364
|
+
const u0 = [" ", ",", "?", "!", ";"], C0 = new g0(20), p0 = (i, e, t) => {
|
|
6341
6365
|
e = e || "", t = t || "";
|
|
6342
|
-
const s =
|
|
6366
|
+
const s = u0.filter((h) => e.indexOf(h) < 0 && t.indexOf(h) < 0);
|
|
6343
6367
|
if (s.length === 0) return !0;
|
|
6344
|
-
const n =
|
|
6368
|
+
const n = C0.getRegExp(`(${s.map((h) => h === "?" ? "\\?" : h).join("|")})`);
|
|
6345
6369
|
let o = !n.test(i);
|
|
6346
6370
|
if (!o) {
|
|
6347
|
-
const
|
|
6348
|
-
|
|
6371
|
+
const h = i.indexOf(t);
|
|
6372
|
+
h > 0 && !n.test(i.substring(0, h)) && (o = !0);
|
|
6349
6373
|
}
|
|
6350
6374
|
return o;
|
|
6351
|
-
},
|
|
6375
|
+
}, D1 = function(i, e) {
|
|
6352
6376
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
6353
6377
|
if (!i) return;
|
|
6354
6378
|
if (i[e]) return i[e];
|
|
@@ -6357,18 +6381,18 @@ const c0 = [" ", ",", "?", "!", ";"], d0 = new h0(20), g0 = (i, e, t) => {
|
|
|
6357
6381
|
for (let o = 0; o < s.length; ) {
|
|
6358
6382
|
if (!n || typeof n != "object")
|
|
6359
6383
|
return;
|
|
6360
|
-
let
|
|
6384
|
+
let h, a = "";
|
|
6361
6385
|
for (let d = o; d < s.length; ++d)
|
|
6362
|
-
if (d !== o && (a += t), a += s[d],
|
|
6363
|
-
if (["string", "number", "boolean"].indexOf(typeof
|
|
6386
|
+
if (d !== o && (a += t), a += s[d], h = n[a], h !== void 0) {
|
|
6387
|
+
if (["string", "number", "boolean"].indexOf(typeof h) > -1 && d < s.length - 1)
|
|
6364
6388
|
continue;
|
|
6365
6389
|
o += d - o + 1;
|
|
6366
6390
|
break;
|
|
6367
6391
|
}
|
|
6368
|
-
n =
|
|
6392
|
+
n = h;
|
|
6369
6393
|
}
|
|
6370
6394
|
return n;
|
|
6371
|
-
}, b1 = (i) => i && i.replace("_", "-"),
|
|
6395
|
+
}, b1 = (i) => i && i.replace("_", "-"), f0 = {
|
|
6372
6396
|
type: "logger",
|
|
6373
6397
|
log(i) {
|
|
6374
6398
|
this.output("log", i);
|
|
@@ -6390,7 +6414,7 @@ class y1 {
|
|
|
6390
6414
|
}
|
|
6391
6415
|
init(e) {
|
|
6392
6416
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6393
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
6417
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || f0, this.options = t, this.debug = t.debug;
|
|
6394
6418
|
}
|
|
6395
6419
|
log() {
|
|
6396
6420
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
@@ -6425,8 +6449,8 @@ class y1 {
|
|
|
6425
6449
|
return e = e || this.options, e.prefix = e.prefix || this.prefix, new y1(this.logger, e);
|
|
6426
6450
|
}
|
|
6427
6451
|
}
|
|
6428
|
-
var
|
|
6429
|
-
class
|
|
6452
|
+
var X = new y1();
|
|
6453
|
+
class H1 {
|
|
6430
6454
|
constructor() {
|
|
6431
6455
|
this.observers = {};
|
|
6432
6456
|
}
|
|
@@ -6449,18 +6473,18 @@ class _1 {
|
|
|
6449
6473
|
emit(e) {
|
|
6450
6474
|
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
6451
6475
|
s[n - 1] = arguments[n];
|
|
6452
|
-
this.observers[e] && Array.from(this.observers[e].entries()).forEach((
|
|
6453
|
-
let [a, d] =
|
|
6476
|
+
this.observers[e] && Array.from(this.observers[e].entries()).forEach((h) => {
|
|
6477
|
+
let [a, d] = h;
|
|
6454
6478
|
for (let g = 0; g < d; g++)
|
|
6455
6479
|
a(...s);
|
|
6456
|
-
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((
|
|
6457
|
-
let [a, d] =
|
|
6480
|
+
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((h) => {
|
|
6481
|
+
let [a, d] = h;
|
|
6458
6482
|
for (let g = 0; g < d; g++)
|
|
6459
6483
|
a.apply(a, [e, ...s]);
|
|
6460
6484
|
});
|
|
6461
6485
|
}
|
|
6462
6486
|
}
|
|
6463
|
-
class
|
|
6487
|
+
class ee extends H1 {
|
|
6464
6488
|
constructor(e) {
|
|
6465
6489
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
6466
6490
|
ns: ["translation"],
|
|
@@ -6477,19 +6501,19 @@ class X1 extends _1 {
|
|
|
6477
6501
|
}
|
|
6478
6502
|
getResource(e, t, s) {
|
|
6479
6503
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6480
|
-
const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator,
|
|
6504
|
+
const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, h = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
6481
6505
|
let a;
|
|
6482
6506
|
e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], s && (Array.isArray(s) ? a.push(...s) : R(s) && o ? a.push(...s.split(o)) : a.push(s)));
|
|
6483
6507
|
const d = M1(this.data, a);
|
|
6484
|
-
return !d && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), d || !
|
|
6508
|
+
return !d && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), d || !h || !R(s) ? d : D1(this.data && this.data[e] && this.data[e][t], s, o);
|
|
6485
6509
|
}
|
|
6486
6510
|
addResource(e, t, s, n) {
|
|
6487
6511
|
let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
6488
6512
|
silent: !1
|
|
6489
6513
|
};
|
|
6490
|
-
const
|
|
6514
|
+
const h = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
|
|
6491
6515
|
let a = [e, t];
|
|
6492
|
-
s && (a = a.concat(
|
|
6516
|
+
s && (a = a.concat(h ? s.split(h) : s)), e.indexOf(".") > -1 && (a = e.split("."), n = t, t = a[1]), this.addNamespaces(t), X1(this.data, a, n), o.silent || this.emit("added", e, t, s, n);
|
|
6493
6517
|
}
|
|
6494
6518
|
addResources(e, t, s) {
|
|
6495
6519
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -6502,16 +6526,16 @@ class X1 extends _1 {
|
|
|
6502
6526
|
n.silent || this.emit("added", e, t, s);
|
|
6503
6527
|
}
|
|
6504
6528
|
addResourceBundle(e, t, s, n, o) {
|
|
6505
|
-
let
|
|
6529
|
+
let h = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
|
|
6506
6530
|
silent: !1,
|
|
6507
6531
|
skipCopy: !1
|
|
6508
6532
|
}, a = [e, t];
|
|
6509
6533
|
e.indexOf(".") > -1 && (a = e.split("."), n = s, s = t, t = a[1]), this.addNamespaces(t);
|
|
6510
6534
|
let d = M1(this.data, a) || {};
|
|
6511
|
-
|
|
6535
|
+
h.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? me(d, s, o) : d = {
|
|
6512
6536
|
...d,
|
|
6513
6537
|
...s
|
|
6514
|
-
},
|
|
6538
|
+
}, X1(this.data, a, d), h.silent || this.emit("added", e, t, s);
|
|
6515
6539
|
}
|
|
6516
6540
|
removeResourceBundle(e, t) {
|
|
6517
6541
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -6535,7 +6559,7 @@ class X1 extends _1 {
|
|
|
6535
6559
|
return this.data;
|
|
6536
6560
|
}
|
|
6537
6561
|
}
|
|
6538
|
-
var
|
|
6562
|
+
var we = {
|
|
6539
6563
|
processors: {},
|
|
6540
6564
|
addPostProcessor(i) {
|
|
6541
6565
|
this.processors[i.name] = i;
|
|
@@ -6546,11 +6570,11 @@ var me = {
|
|
|
6546
6570
|
}), e;
|
|
6547
6571
|
}
|
|
6548
6572
|
};
|
|
6549
|
-
const
|
|
6550
|
-
class E1 extends
|
|
6573
|
+
const te = {};
|
|
6574
|
+
class E1 extends H1 {
|
|
6551
6575
|
constructor(e) {
|
|
6552
6576
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6553
|
-
super(),
|
|
6577
|
+
super(), o0(["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");
|
|
6554
6578
|
}
|
|
6555
6579
|
changeLanguage(e) {
|
|
6556
6580
|
e && (this.language = e);
|
|
@@ -6569,8 +6593,8 @@ class E1 extends _1 {
|
|
|
6569
6593
|
s === void 0 && (s = ":");
|
|
6570
6594
|
const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
6571
6595
|
let o = t.ns || this.options.defaultNS || [];
|
|
6572
|
-
const
|
|
6573
|
-
if (
|
|
6596
|
+
const h = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !p0(e, s, n);
|
|
6597
|
+
if (h && !a) {
|
|
6574
6598
|
const d = e.match(this.interpolator.nestingRegexp);
|
|
6575
6599
|
if (d && d.length > 0)
|
|
6576
6600
|
return {
|
|
@@ -6591,95 +6615,95 @@ class E1 extends _1 {
|
|
|
6591
6615
|
}), t || (t = {}), e == null) return "";
|
|
6592
6616
|
Array.isArray(e) || (e = [String(e)]);
|
|
6593
6617
|
const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, o = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
6594
|
-
key:
|
|
6618
|
+
key: h,
|
|
6595
6619
|
namespaces: a
|
|
6596
6620
|
} = this.extractFromKey(e[e.length - 1], t), d = a[a.length - 1], g = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
6597
6621
|
if (g && g.toLowerCase() === "cimode") {
|
|
6598
6622
|
if (l) {
|
|
6599
6623
|
const f = t.nsSeparator || this.options.nsSeparator;
|
|
6600
6624
|
return n ? {
|
|
6601
|
-
res: `${d}${f}${
|
|
6602
|
-
usedKey:
|
|
6603
|
-
exactUsedKey:
|
|
6625
|
+
res: `${d}${f}${h}`,
|
|
6626
|
+
usedKey: h,
|
|
6627
|
+
exactUsedKey: h,
|
|
6604
6628
|
usedLng: g,
|
|
6605
6629
|
usedNS: d,
|
|
6606
6630
|
usedParams: this.getUsedParamsDetails(t)
|
|
6607
|
-
} : `${d}${f}${
|
|
6631
|
+
} : `${d}${f}${h}`;
|
|
6608
6632
|
}
|
|
6609
6633
|
return n ? {
|
|
6610
|
-
res:
|
|
6611
|
-
usedKey:
|
|
6612
|
-
exactUsedKey:
|
|
6634
|
+
res: h,
|
|
6635
|
+
usedKey: h,
|
|
6636
|
+
exactUsedKey: h,
|
|
6613
6637
|
usedLng: g,
|
|
6614
6638
|
usedNS: d,
|
|
6615
6639
|
usedParams: this.getUsedParamsDetails(t)
|
|
6616
|
-
} :
|
|
6640
|
+
} : h;
|
|
6617
6641
|
}
|
|
6618
|
-
const
|
|
6619
|
-
let u =
|
|
6620
|
-
const p =
|
|
6621
|
-
if (M && u && S && m.indexOf(
|
|
6642
|
+
const c = this.resolve(e, t);
|
|
6643
|
+
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]"], y = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject, S = !R(u) && typeof u != "boolean" && typeof u != "number";
|
|
6645
|
+
if (M && u && S && m.indexOf(k) < 0 && !(R(y) && Array.isArray(u))) {
|
|
6622
6646
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
6623
6647
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
6624
6648
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
|
|
6625
6649
|
...t,
|
|
6626
6650
|
ns: a
|
|
6627
|
-
}) : `key '${
|
|
6628
|
-
return n ? (
|
|
6651
|
+
}) : `key '${h} (${this.language})' returned an object instead of string.`;
|
|
6652
|
+
return n ? (c.res = f, c.usedParams = this.getUsedParamsDetails(t), c) : f;
|
|
6629
6653
|
}
|
|
6630
6654
|
if (o) {
|
|
6631
|
-
const f = Array.isArray(u), N = f ? [] : {}, x = f ?
|
|
6632
|
-
for (const
|
|
6633
|
-
if (Object.prototype.hasOwnProperty.call(u,
|
|
6634
|
-
const P = `${x}${o}${
|
|
6635
|
-
N[
|
|
6655
|
+
const f = Array.isArray(u), N = f ? [] : {}, x = f ? w : p;
|
|
6656
|
+
for (const v in u)
|
|
6657
|
+
if (Object.prototype.hasOwnProperty.call(u, v)) {
|
|
6658
|
+
const P = `${x}${o}${v}`;
|
|
6659
|
+
N[v] = this.translate(P, {
|
|
6636
6660
|
...t,
|
|
6637
6661
|
joinArrays: !1,
|
|
6638
6662
|
ns: a
|
|
6639
|
-
}), N[
|
|
6663
|
+
}), N[v] === P && (N[v] = u[v]);
|
|
6640
6664
|
}
|
|
6641
6665
|
u = N;
|
|
6642
6666
|
}
|
|
6643
|
-
} else if (M && R(
|
|
6644
|
-
u = u.join(
|
|
6667
|
+
} else if (M && R(y) && Array.isArray(u))
|
|
6668
|
+
u = u.join(y), u && (u = this.extendTranslation(u, e, t, s));
|
|
6645
6669
|
else {
|
|
6646
6670
|
let f = !1, N = !1;
|
|
6647
|
-
const x = t.count !== void 0 && !R(t.count),
|
|
6671
|
+
const x = t.count !== void 0 && !R(t.count), v = E1.hasDefaultValue(t), P = x ? this.pluralResolver.getSuffix(g, t.count, t) : "", J = t.ordinal && x ? this.pluralResolver.getSuffix(g, t.count, {
|
|
6648
6672
|
ordinal: !1
|
|
6649
|
-
}) : "", F = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(),
|
|
6650
|
-
!this.isValidLookup(u) &&
|
|
6651
|
-
const
|
|
6673
|
+
}) : "", F = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), H = F && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${P}`] || t[`defaultValue${J}`] || t.defaultValue;
|
|
6674
|
+
!this.isValidLookup(u) && v && (f = !0, u = H), this.isValidLookup(u) || (N = !0, u = h);
|
|
6675
|
+
const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : u, V = v && H !== u && this.options.updateMissing;
|
|
6652
6676
|
if (N || f || V) {
|
|
6653
|
-
if (this.logger.log(V ? "updateKey" : "missingKey", g, d,
|
|
6654
|
-
const
|
|
6677
|
+
if (this.logger.log(V ? "updateKey" : "missingKey", g, d, h, V ? H : u), o) {
|
|
6678
|
+
const O = this.resolve(h, {
|
|
6655
6679
|
...t,
|
|
6656
6680
|
keySeparator: !1
|
|
6657
6681
|
});
|
|
6658
|
-
|
|
6659
|
-
}
|
|
6660
|
-
let
|
|
6661
|
-
const
|
|
6662
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
6663
|
-
for (let
|
|
6664
|
-
|
|
6665
|
-
else this.options.saveMissingTo === "all" ?
|
|
6666
|
-
const U = (
|
|
6667
|
-
const e1 =
|
|
6668
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
6682
|
+
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
|
+
}
|
|
6684
|
+
let D = [];
|
|
6685
|
+
const W = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
6686
|
+
if (this.options.saveMissingTo === "fallback" && W && W[0])
|
|
6687
|
+
for (let O = 0; O < W.length; O++)
|
|
6688
|
+
D.push(W[O]);
|
|
6689
|
+
else this.options.saveMissingTo === "all" ? D = this.languageUtils.toResolveHierarchy(t.lng || this.language) : D.push(t.lng || this.language);
|
|
6690
|
+
const U = (O, K, G) => {
|
|
6691
|
+
const e1 = v && G !== u ? G : I;
|
|
6692
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(O, d, K, e1, V, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(O, d, K, e1, V, t), this.emit("missingKey", O, d, K, u);
|
|
6669
6693
|
};
|
|
6670
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && x ?
|
|
6671
|
-
const K = this.pluralResolver.getSuffixes(
|
|
6672
|
-
F && t[`defaultValue${this.options.pluralSeparator}zero`] && K.indexOf(`${this.options.pluralSeparator}zero`) < 0 && K.push(`${this.options.pluralSeparator}zero`), K.forEach((
|
|
6673
|
-
U([
|
|
6694
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && x ? D.forEach((O) => {
|
|
6695
|
+
const K = this.pluralResolver.getSuffixes(O, t);
|
|
6696
|
+
F && t[`defaultValue${this.options.pluralSeparator}zero`] && K.indexOf(`${this.options.pluralSeparator}zero`) < 0 && K.push(`${this.options.pluralSeparator}zero`), K.forEach((G) => {
|
|
6697
|
+
U([O], h + G, t[`defaultValue${G}`] || H);
|
|
6674
6698
|
});
|
|
6675
|
-
}) : U(
|
|
6699
|
+
}) : U(D, h, H));
|
|
6676
6700
|
}
|
|
6677
|
-
u = this.extendTranslation(u, e, t,
|
|
6701
|
+
u = this.extendTranslation(u, e, t, c, s), N && u === h && this.options.appendNamespaceToMissingKey && (u = `${d}:${h}`), (N || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${h}` : h, f ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
|
|
6678
6702
|
}
|
|
6679
|
-
return n ? (
|
|
6703
|
+
return n ? (c.res = u, c.usedParams = this.getUsedParamsDetails(t), c) : u;
|
|
6680
6704
|
}
|
|
6681
6705
|
extendTranslation(e, t, s, n, o) {
|
|
6682
|
-
var
|
|
6706
|
+
var h = this;
|
|
6683
6707
|
if (this.i18nFormat && this.i18nFormat.parse)
|
|
6684
6708
|
e = this.i18nFormat.parse(e, {
|
|
6685
6709
|
...this.options.interpolation.defaultVariables,
|
|
@@ -6701,22 +6725,22 @@ class E1 extends _1 {
|
|
|
6701
6725
|
const u = e.match(this.interpolator.nestingRegexp);
|
|
6702
6726
|
l = u && u.length;
|
|
6703
6727
|
}
|
|
6704
|
-
let
|
|
6705
|
-
if (this.options.interpolation.defaultVariables && (
|
|
6728
|
+
let c = s.replace && !R(s.replace) ? s.replace : s;
|
|
6729
|
+
if (this.options.interpolation.defaultVariables && (c = {
|
|
6706
6730
|
...this.options.interpolation.defaultVariables,
|
|
6707
|
-
...
|
|
6708
|
-
}), e = this.interpolator.interpolate(e,
|
|
6731
|
+
...c
|
|
6732
|
+
}), e = this.interpolator.interpolate(e, c, s.lng || this.language || n.usedLng, s), g) {
|
|
6709
6733
|
const u = e.match(this.interpolator.nestingRegexp), p = u && u.length;
|
|
6710
6734
|
l < p && (s.nest = !1);
|
|
6711
6735
|
}
|
|
6712
6736
|
!s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
6713
|
-
for (var u = arguments.length, p = new Array(u),
|
|
6714
|
-
p[
|
|
6715
|
-
return o && o[0] === p[0] && !s.context ? (
|
|
6737
|
+
for (var u = arguments.length, p = new Array(u), w = 0; w < u; w++)
|
|
6738
|
+
p[w] = arguments[w];
|
|
6739
|
+
return o && o[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);
|
|
6716
6740
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
6717
6741
|
}
|
|
6718
6742
|
const a = s.postProcess || this.options.postProcess, d = R(a) ? [a] : a;
|
|
6719
|
-
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e =
|
|
6743
|
+
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = we.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
6720
6744
|
i18nResolved: {
|
|
6721
6745
|
...n,
|
|
6722
6746
|
usedParams: this.getUsedParamsDetails(s)
|
|
@@ -6725,40 +6749,40 @@ class E1 extends _1 {
|
|
|
6725
6749
|
} : s, this)), e;
|
|
6726
6750
|
}
|
|
6727
6751
|
resolve(e) {
|
|
6728
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o,
|
|
6752
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o, h, a;
|
|
6729
6753
|
return R(e) && (e = [e]), e.forEach((d) => {
|
|
6730
6754
|
if (this.isValidLookup(s)) return;
|
|
6731
6755
|
const g = this.extractFromKey(d, t), l = g.key;
|
|
6732
6756
|
n = l;
|
|
6733
|
-
let
|
|
6734
|
-
this.options.fallbackNS && (
|
|
6735
|
-
const u = t.count !== void 0 && !R(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(),
|
|
6736
|
-
|
|
6737
|
-
this.isValidLookup(s) || (a = m, !
|
|
6757
|
+
let c = g.namespaces;
|
|
6758
|
+
this.options.fallbackNS && (c = c.concat(this.options.fallbackNS));
|
|
6759
|
+
const u = t.count !== void 0 && !R(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), w = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", k = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
6760
|
+
c.forEach((m) => {
|
|
6761
|
+
this.isValidLookup(s) || (a = m, !te[`${k[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (te[`${k[0]}-${m}`] = !0, this.logger.warn(`key "${n}" for languages "${k.join(", ")}" won't get resolved as namespace "${a}" 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((y) => {
|
|
6738
6762
|
if (this.isValidLookup(s)) return;
|
|
6739
|
-
|
|
6763
|
+
h = y;
|
|
6740
6764
|
const M = [l];
|
|
6741
6765
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
6742
|
-
this.i18nFormat.addLookupKeys(M, l,
|
|
6766
|
+
this.i18nFormat.addLookupKeys(M, l, y, m, t);
|
|
6743
6767
|
else {
|
|
6744
6768
|
let f;
|
|
6745
|
-
u && (f = this.pluralResolver.getSuffix(
|
|
6769
|
+
u && (f = this.pluralResolver.getSuffix(y, t.count, t));
|
|
6746
6770
|
const N = `${this.options.pluralSeparator}zero`, x = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
6747
|
-
if (u && (M.push(l + f), t.ordinal && f.indexOf(x) === 0 && M.push(l + f.replace(x, this.options.pluralSeparator)), p && M.push(l + N)),
|
|
6748
|
-
const
|
|
6749
|
-
M.push(
|
|
6771
|
+
if (u && (M.push(l + f), t.ordinal && f.indexOf(x) === 0 && M.push(l + f.replace(x, this.options.pluralSeparator)), p && M.push(l + N)), w) {
|
|
6772
|
+
const v = `${l}${this.options.contextSeparator}${t.context}`;
|
|
6773
|
+
M.push(v), u && (M.push(v + f), t.ordinal && f.indexOf(x) === 0 && M.push(v + f.replace(x, this.options.pluralSeparator)), p && M.push(v + N));
|
|
6750
6774
|
}
|
|
6751
6775
|
}
|
|
6752
6776
|
let S;
|
|
6753
6777
|
for (; S = M.pop(); )
|
|
6754
|
-
this.isValidLookup(s) || (o = S, s = this.getResource(
|
|
6778
|
+
this.isValidLookup(s) || (o = S, s = this.getResource(y, m, S, t));
|
|
6755
6779
|
}));
|
|
6756
6780
|
});
|
|
6757
6781
|
}), {
|
|
6758
6782
|
res: s,
|
|
6759
6783
|
usedKey: n,
|
|
6760
6784
|
exactUsedKey: o,
|
|
6761
|
-
usedLng:
|
|
6785
|
+
usedLng: h,
|
|
6762
6786
|
usedNS: a
|
|
6763
6787
|
};
|
|
6764
6788
|
}
|
|
@@ -6793,10 +6817,10 @@ class E1 extends _1 {
|
|
|
6793
6817
|
return !1;
|
|
6794
6818
|
}
|
|
6795
6819
|
}
|
|
6796
|
-
const
|
|
6797
|
-
class
|
|
6820
|
+
const O1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
|
6821
|
+
class ie {
|
|
6798
6822
|
constructor(e) {
|
|
6799
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
6823
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = X.create("languageUtils");
|
|
6800
6824
|
}
|
|
6801
6825
|
getScriptPartFromCode(e) {
|
|
6802
6826
|
if (e = b1(e), !e || e.indexOf("-") < 0) return null;
|
|
@@ -6818,7 +6842,7 @@ class te {
|
|
|
6818
6842
|
}
|
|
6819
6843
|
const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
6820
6844
|
let s = e.split("-");
|
|
6821
|
-
return this.options.lowerCaseLng ? s = s.map((n) => n.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] =
|
|
6845
|
+
return this.options.lowerCaseLng ? s = s.map((n) => n.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = O1(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = O1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = O1(s[2].toLowerCase()))), s.join("-");
|
|
6822
6846
|
}
|
|
6823
6847
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
6824
6848
|
}
|
|
@@ -6851,15 +6875,15 @@ class te {
|
|
|
6851
6875
|
return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
|
|
6852
6876
|
}
|
|
6853
6877
|
toResolveHierarchy(e, t) {
|
|
6854
|
-
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], o = (
|
|
6855
|
-
|
|
6878
|
+
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], o = (h) => {
|
|
6879
|
+
h && (this.isSupportedCode(h) ? n.push(h) : this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`));
|
|
6856
6880
|
};
|
|
6857
|
-
return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(e))) : R(e) && o(this.formatLanguageCode(e)), s.forEach((
|
|
6858
|
-
n.indexOf(
|
|
6881
|
+
return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(e))) : R(e) && o(this.formatLanguageCode(e)), s.forEach((h) => {
|
|
6882
|
+
n.indexOf(h) < 0 && o(this.formatLanguageCode(h));
|
|
6859
6883
|
}), n;
|
|
6860
6884
|
}
|
|
6861
6885
|
}
|
|
6862
|
-
let
|
|
6886
|
+
let m0 = [{
|
|
6863
6887
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
6864
6888
|
nr: [1, 2],
|
|
6865
6889
|
fc: 1
|
|
@@ -6951,7 +6975,7 @@ let C0 = [{
|
|
|
6951
6975
|
lngs: ["he", "iw"],
|
|
6952
6976
|
nr: [1, 2, 20, 21],
|
|
6953
6977
|
fc: 22
|
|
6954
|
-
}],
|
|
6978
|
+
}], w0 = {
|
|
6955
6979
|
1: (i) => +(i > 1),
|
|
6956
6980
|
2: (i) => +(i != 1),
|
|
6957
6981
|
3: (i) => 0,
|
|
@@ -6975,28 +6999,28 @@ let C0 = [{
|
|
|
6975
6999
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
|
6976
7000
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
|
6977
7001
|
};
|
|
6978
|
-
const
|
|
7002
|
+
const k0 = ["v1", "v2", "v3"], L0 = ["v4"], se = {
|
|
6979
7003
|
zero: 0,
|
|
6980
7004
|
one: 1,
|
|
6981
7005
|
two: 2,
|
|
6982
7006
|
few: 3,
|
|
6983
7007
|
many: 4,
|
|
6984
7008
|
other: 5
|
|
6985
|
-
},
|
|
7009
|
+
}, v0 = () => {
|
|
6986
7010
|
const i = {};
|
|
6987
|
-
return
|
|
7011
|
+
return m0.forEach((e) => {
|
|
6988
7012
|
e.lngs.forEach((t) => {
|
|
6989
7013
|
i[t] = {
|
|
6990
7014
|
numbers: e.nr,
|
|
6991
|
-
plurals:
|
|
7015
|
+
plurals: w0[e.fc]
|
|
6992
7016
|
};
|
|
6993
7017
|
});
|
|
6994
7018
|
}), i;
|
|
6995
7019
|
};
|
|
6996
|
-
class
|
|
7020
|
+
class N0 {
|
|
6997
7021
|
constructor(e) {
|
|
6998
7022
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6999
|
-
this.languageUtils = e, this.options = t, this.logger =
|
|
7023
|
+
this.languageUtils = e, this.options = t, this.logger = X.create("pluralResolver"), (!this.options.compatibilityJSON || L0.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 = v0(), this.pluralRulesCache = {};
|
|
7000
7024
|
}
|
|
7001
7025
|
addRule(e, t) {
|
|
7002
7026
|
this.rules[e] = t;
|
|
@@ -7013,17 +7037,17 @@ class k0 {
|
|
|
7013
7037
|
});
|
|
7014
7038
|
if (o in this.pluralRulesCache)
|
|
7015
7039
|
return this.pluralRulesCache[o];
|
|
7016
|
-
let
|
|
7040
|
+
let h;
|
|
7017
7041
|
try {
|
|
7018
|
-
|
|
7042
|
+
h = new Intl.PluralRules(s, {
|
|
7019
7043
|
type: n
|
|
7020
7044
|
});
|
|
7021
7045
|
} catch {
|
|
7022
7046
|
if (!e.match(/-|_/)) return;
|
|
7023
7047
|
const d = this.languageUtils.getLanguagePartFromCode(e);
|
|
7024
|
-
|
|
7048
|
+
h = this.getRule(d, t);
|
|
7025
7049
|
}
|
|
7026
|
-
return this.pluralRulesCache[o] =
|
|
7050
|
+
return this.pluralRulesCache[o] = h, h;
|
|
7027
7051
|
}
|
|
7028
7052
|
return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
|
|
7029
7053
|
}
|
|
@@ -7039,7 +7063,7 @@ class k0 {
|
|
|
7039
7063
|
getSuffixes(e) {
|
|
7040
7064
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7041
7065
|
const s = this.getRule(e, t);
|
|
7042
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, o) =>
|
|
7066
|
+
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, o) => se[n] - se[o]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
|
|
7043
7067
|
}
|
|
7044
7068
|
getSuffix(e, t) {
|
|
7045
7069
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -7054,17 +7078,17 @@ class k0 {
|
|
|
7054
7078
|
return this.options.compatibilityJSON === "v1" ? n === 1 ? "" : typeof n == "number" ? `_plural_${n.toString()}` : o() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? o() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
|
7055
7079
|
}
|
|
7056
7080
|
shouldUseIntlApi() {
|
|
7057
|
-
return !
|
|
7081
|
+
return !k0.includes(this.options.compatibilityJSON);
|
|
7058
7082
|
}
|
|
7059
7083
|
}
|
|
7060
|
-
const
|
|
7061
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o =
|
|
7062
|
-
return !o && n && R(t) && (o =
|
|
7063
|
-
},
|
|
7064
|
-
class
|
|
7084
|
+
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, o = c0(i, e, t);
|
|
7086
|
+
return !o && n && R(t) && (o = D1(i, t, s), o === void 0 && (o = D1(e, t, s))), o;
|
|
7087
|
+
}, S1 = (i) => i.replace(/\$/g, "$$$$");
|
|
7088
|
+
class x0 {
|
|
7065
7089
|
constructor() {
|
|
7066
7090
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7067
|
-
this.logger =
|
|
7091
|
+
this.logger = X.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
7068
7092
|
}
|
|
7069
7093
|
init() {
|
|
7070
7094
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -7076,21 +7100,21 @@ class L0 {
|
|
|
7076
7100
|
escapeValue: s,
|
|
7077
7101
|
useRawValueToEscape: n,
|
|
7078
7102
|
prefix: o,
|
|
7079
|
-
prefixEscaped:
|
|
7103
|
+
prefixEscaped: h,
|
|
7080
7104
|
suffix: a,
|
|
7081
7105
|
suffixEscaped: d,
|
|
7082
7106
|
formatSeparator: g,
|
|
7083
7107
|
unescapeSuffix: l,
|
|
7084
|
-
unescapePrefix:
|
|
7108
|
+
unescapePrefix: c,
|
|
7085
7109
|
nestingPrefix: u,
|
|
7086
7110
|
nestingPrefixEscaped: p,
|
|
7087
|
-
nestingSuffix:
|
|
7088
|
-
nestingSuffixEscaped:
|
|
7111
|
+
nestingSuffix: w,
|
|
7112
|
+
nestingSuffixEscaped: k,
|
|
7089
7113
|
nestingOptionsSeparator: m,
|
|
7090
|
-
maxReplaces:
|
|
7114
|
+
maxReplaces: y,
|
|
7091
7115
|
alwaysFormat: M
|
|
7092
7116
|
} = e.interpolation;
|
|
7093
|
-
this.escape = t !== void 0 ? t :
|
|
7117
|
+
this.escape = t !== void 0 ? t : d0, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? c1(o) : h || "{{", this.suffix = a ? c1(a) : d || "}}", this.formatSeparator = g || ",", 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 = y || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
|
|
7094
7118
|
}
|
|
7095
7119
|
reset() {
|
|
7096
7120
|
this.options && this.init(this.options);
|
|
@@ -7100,84 +7124,84 @@ class L0 {
|
|
|
7100
7124
|
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}`);
|
|
7101
7125
|
}
|
|
7102
7126
|
interpolate(e, t, s, n) {
|
|
7103
|
-
let o,
|
|
7127
|
+
let o, h, a;
|
|
7104
7128
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
|
|
7105
7129
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
7106
|
-
const
|
|
7107
|
-
return this.alwaysFormat ? this.format(
|
|
7130
|
+
const y = ne(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
7131
|
+
return this.alwaysFormat ? this.format(y, void 0, s, {
|
|
7108
7132
|
...n,
|
|
7109
7133
|
...t,
|
|
7110
7134
|
interpolationkey: p
|
|
7111
|
-
}) :
|
|
7135
|
+
}) : y;
|
|
7112
7136
|
}
|
|
7113
|
-
const
|
|
7114
|
-
return this.format(
|
|
7137
|
+
const w = p.split(this.formatSeparator), k = w.shift().trim(), m = w.join(this.formatSeparator).trim();
|
|
7138
|
+
return this.format(ne(t, d, k, this.options.keySeparator, this.options.ignoreJSONStructure), m, s, {
|
|
7115
7139
|
...n,
|
|
7116
7140
|
...t,
|
|
7117
|
-
interpolationkey:
|
|
7141
|
+
interpolationkey: k
|
|
7118
7142
|
});
|
|
7119
7143
|
};
|
|
7120
7144
|
this.resetRegExp();
|
|
7121
|
-
const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler,
|
|
7145
|
+
const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, c = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
7122
7146
|
return [{
|
|
7123
7147
|
regex: this.regexpUnescape,
|
|
7124
|
-
safeValue: (p) =>
|
|
7148
|
+
safeValue: (p) => S1(p)
|
|
7125
7149
|
}, {
|
|
7126
7150
|
regex: this.regexp,
|
|
7127
|
-
safeValue: (p) => this.escapeValue ?
|
|
7151
|
+
safeValue: (p) => this.escapeValue ? S1(this.escape(p)) : S1(p)
|
|
7128
7152
|
}].forEach((p) => {
|
|
7129
7153
|
for (a = 0; o = p.regex.exec(e); ) {
|
|
7130
|
-
const
|
|
7131
|
-
if (
|
|
7154
|
+
const w = o[1].trim();
|
|
7155
|
+
if (h = g(w), h === void 0)
|
|
7132
7156
|
if (typeof l == "function") {
|
|
7133
7157
|
const m = l(e, o, n);
|
|
7134
|
-
|
|
7135
|
-
} else if (n && Object.prototype.hasOwnProperty.call(n,
|
|
7136
|
-
|
|
7137
|
-
else if (
|
|
7138
|
-
|
|
7158
|
+
h = R(m) ? m : "";
|
|
7159
|
+
} else if (n && Object.prototype.hasOwnProperty.call(n, w))
|
|
7160
|
+
h = "";
|
|
7161
|
+
else if (c) {
|
|
7162
|
+
h = o[0];
|
|
7139
7163
|
continue;
|
|
7140
7164
|
} else
|
|
7141
|
-
this.logger.warn(`missed to pass in variable ${
|
|
7142
|
-
else !R(
|
|
7143
|
-
const
|
|
7144
|
-
if (e = e.replace(o[0],
|
|
7165
|
+
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), h = "";
|
|
7166
|
+
else !R(h) && !this.useRawValueToEscape && (h = J1(h));
|
|
7167
|
+
const k = p.safeValue(h);
|
|
7168
|
+
if (e = e.replace(o[0], k), c ? (p.regex.lastIndex += h.length, p.regex.lastIndex -= o[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
|
|
7145
7169
|
break;
|
|
7146
7170
|
}
|
|
7147
7171
|
}), e;
|
|
7148
7172
|
}
|
|
7149
7173
|
nest(e, t) {
|
|
7150
|
-
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, o,
|
|
7174
|
+
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, o, h;
|
|
7151
7175
|
const a = (d, g) => {
|
|
7152
7176
|
const l = this.nestingOptionsSeparator;
|
|
7153
7177
|
if (d.indexOf(l) < 0) return d;
|
|
7154
|
-
const
|
|
7155
|
-
let u = `{${
|
|
7156
|
-
d =
|
|
7157
|
-
const p = u.match(/'/g),
|
|
7158
|
-
(p && p.length % 2 === 0 && !
|
|
7178
|
+
const c = d.split(new RegExp(`${l}[ ]*{`));
|
|
7179
|
+
let u = `{${c[1]}`;
|
|
7180
|
+
d = c[0], u = this.interpolate(u, h);
|
|
7181
|
+
const p = u.match(/'/g), w = u.match(/"/g);
|
|
7182
|
+
(p && p.length % 2 === 0 && !w || w.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
|
|
7159
7183
|
try {
|
|
7160
|
-
|
|
7184
|
+
h = JSON.parse(u), g && (h = {
|
|
7161
7185
|
...g,
|
|
7162
|
-
...
|
|
7186
|
+
...h
|
|
7163
7187
|
});
|
|
7164
|
-
} catch (
|
|
7165
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${d}`,
|
|
7188
|
+
} catch (k) {
|
|
7189
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, k), `${d}${l}${u}`;
|
|
7166
7190
|
}
|
|
7167
|
-
return
|
|
7191
|
+
return h.defaultValue && h.defaultValue.indexOf(this.prefix) > -1 && delete h.defaultValue, d;
|
|
7168
7192
|
};
|
|
7169
7193
|
for (; n = this.nestingRegexp.exec(e); ) {
|
|
7170
7194
|
let d = [];
|
|
7171
|
-
|
|
7195
|
+
h = {
|
|
7172
7196
|
...s
|
|
7173
|
-
},
|
|
7197
|
+
}, h = h.replace && !R(h.replace) ? h.replace : h, h.applyPostProcessor = !1, delete h.defaultValue;
|
|
7174
7198
|
let g = !1;
|
|
7175
7199
|
if (n[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(n[1])) {
|
|
7176
|
-
const l = n[1].split(this.formatSeparator).map((
|
|
7200
|
+
const l = n[1].split(this.formatSeparator).map((c) => c.trim());
|
|
7177
7201
|
n[1] = l.shift(), d = l, g = !0;
|
|
7178
7202
|
}
|
|
7179
|
-
if (o = t(a.call(this, n[1].trim(),
|
|
7180
|
-
R(o) || (o =
|
|
7203
|
+
if (o = t(a.call(this, n[1].trim(), h), h), o && n[0] === e && !R(o)) return o;
|
|
7204
|
+
R(o) || (o = J1(o)), o || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), o = ""), g && (o = d.reduce((l, c) => this.format(l, c, s.lng, {
|
|
7181
7205
|
...s,
|
|
7182
7206
|
interpolationkey: n[1].trim()
|
|
7183
7207
|
}), o.trim())), e = e.replace(n[0], o), this.regexp.lastIndex = 0;
|
|
@@ -7185,16 +7209,16 @@ class L0 {
|
|
|
7185
7209
|
return e;
|
|
7186
7210
|
}
|
|
7187
7211
|
}
|
|
7188
|
-
const
|
|
7212
|
+
const R0 = (i) => {
|
|
7189
7213
|
let e = i.toLowerCase().trim();
|
|
7190
7214
|
const t = {};
|
|
7191
7215
|
if (i.indexOf("(") > -1) {
|
|
7192
7216
|
const s = i.split("(");
|
|
7193
7217
|
e = s[0].toLowerCase().trim();
|
|
7194
7218
|
const n = s[1].substring(0, s[1].length - 1);
|
|
7195
|
-
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((
|
|
7196
|
-
if (
|
|
7197
|
-
const [a, ...d] =
|
|
7219
|
+
e === "currency" && n.indexOf(":") < 0 ? t.currency || (t.currency = n.trim()) : e === "relativetime" && n.indexOf(":") < 0 ? t.range || (t.range = n.trim()) : n.split(";").forEach((h) => {
|
|
7220
|
+
if (h) {
|
|
7221
|
+
const [a, ...d] = h.split(":"), g = d.join(":").trim().replace(/^'+|'+$/g, ""), l = a.trim();
|
|
7198
7222
|
t[l] || (t[l] = g), g === "false" && (t[l] = !1), g === "true" && (t[l] = !0), isNaN(g) || (t[l] = parseInt(g, 10));
|
|
7199
7223
|
}
|
|
7200
7224
|
});
|
|
@@ -7203,7 +7227,7 @@ const v0 = (i) => {
|
|
|
7203
7227
|
formatName: e,
|
|
7204
7228
|
formatOptions: t
|
|
7205
7229
|
};
|
|
7206
|
-
},
|
|
7230
|
+
}, h1 = (i) => {
|
|
7207
7231
|
const e = {};
|
|
7208
7232
|
return (t, s, n) => {
|
|
7209
7233
|
let o = n;
|
|
@@ -7211,41 +7235,41 @@ const v0 = (i) => {
|
|
|
7211
7235
|
...o,
|
|
7212
7236
|
[n.interpolationkey]: void 0
|
|
7213
7237
|
});
|
|
7214
|
-
const
|
|
7215
|
-
let a = e[
|
|
7216
|
-
return a || (a = i(b1(s), n), e[
|
|
7238
|
+
const h = s + JSON.stringify(o);
|
|
7239
|
+
let a = e[h];
|
|
7240
|
+
return a || (a = i(b1(s), n), e[h] = a), a(t);
|
|
7217
7241
|
};
|
|
7218
7242
|
};
|
|
7219
|
-
class
|
|
7243
|
+
class M0 {
|
|
7220
7244
|
constructor() {
|
|
7221
7245
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7222
|
-
this.logger =
|
|
7223
|
-
number:
|
|
7246
|
+
this.logger = X.create("formatter"), this.options = e, this.formats = {
|
|
7247
|
+
number: h1((t, s) => {
|
|
7224
7248
|
const n = new Intl.NumberFormat(t, {
|
|
7225
7249
|
...s
|
|
7226
7250
|
});
|
|
7227
7251
|
return (o) => n.format(o);
|
|
7228
7252
|
}),
|
|
7229
|
-
currency:
|
|
7253
|
+
currency: h1((t, s) => {
|
|
7230
7254
|
const n = new Intl.NumberFormat(t, {
|
|
7231
7255
|
...s,
|
|
7232
7256
|
style: "currency"
|
|
7233
7257
|
});
|
|
7234
7258
|
return (o) => n.format(o);
|
|
7235
7259
|
}),
|
|
7236
|
-
datetime:
|
|
7260
|
+
datetime: h1((t, s) => {
|
|
7237
7261
|
const n = new Intl.DateTimeFormat(t, {
|
|
7238
7262
|
...s
|
|
7239
7263
|
});
|
|
7240
7264
|
return (o) => n.format(o);
|
|
7241
7265
|
}),
|
|
7242
|
-
relativetime:
|
|
7266
|
+
relativetime: h1((t, s) => {
|
|
7243
7267
|
const n = new Intl.RelativeTimeFormat(t, {
|
|
7244
7268
|
...s
|
|
7245
7269
|
});
|
|
7246
7270
|
return (o) => n.format(o, s.range || "day");
|
|
7247
7271
|
}),
|
|
7248
|
-
list:
|
|
7272
|
+
list: h1((t, s) => {
|
|
7249
7273
|
const n = new Intl.ListFormat(t, {
|
|
7250
7274
|
...s
|
|
7251
7275
|
});
|
|
@@ -7263,7 +7287,7 @@ class N0 {
|
|
|
7263
7287
|
this.formats[e.toLowerCase().trim()] = t;
|
|
7264
7288
|
}
|
|
7265
7289
|
addCached(e, t) {
|
|
7266
|
-
this.formats[e.toLowerCase().trim()] =
|
|
7290
|
+
this.formats[e.toLowerCase().trim()] = h1(t);
|
|
7267
7291
|
}
|
|
7268
7292
|
format(e, t, s) {
|
|
7269
7293
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -7276,12 +7300,12 @@ class N0 {
|
|
|
7276
7300
|
const {
|
|
7277
7301
|
formatName: g,
|
|
7278
7302
|
formatOptions: l
|
|
7279
|
-
} =
|
|
7303
|
+
} = R0(d);
|
|
7280
7304
|
if (this.formats[g]) {
|
|
7281
|
-
let
|
|
7305
|
+
let c = a;
|
|
7282
7306
|
try {
|
|
7283
7307
|
const u = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = u.locale || u.lng || n.locale || n.lng || s;
|
|
7284
|
-
|
|
7308
|
+
c = this.formats[g](a, p, {
|
|
7285
7309
|
...l,
|
|
7286
7310
|
...n,
|
|
7287
7311
|
...u
|
|
@@ -7289,61 +7313,61 @@ class N0 {
|
|
|
7289
7313
|
} catch (u) {
|
|
7290
7314
|
this.logger.warn(u);
|
|
7291
7315
|
}
|
|
7292
|
-
return
|
|
7316
|
+
return c;
|
|
7293
7317
|
} else
|
|
7294
7318
|
this.logger.warn(`there was no format function for ${g}`);
|
|
7295
7319
|
return a;
|
|
7296
7320
|
}, e);
|
|
7297
7321
|
}
|
|
7298
7322
|
}
|
|
7299
|
-
const
|
|
7323
|
+
const b0 = (i, e) => {
|
|
7300
7324
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
|
7301
7325
|
};
|
|
7302
|
-
class
|
|
7326
|
+
class y0 extends H1 {
|
|
7303
7327
|
constructor(e, t, s) {
|
|
7304
7328
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
7305
|
-
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger =
|
|
7329
|
+
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);
|
|
7306
7330
|
}
|
|
7307
7331
|
queueLoad(e, t, s, n) {
|
|
7308
|
-
const o = {},
|
|
7332
|
+
const o = {}, h = {}, a = {}, d = {};
|
|
7309
7333
|
return e.forEach((g) => {
|
|
7310
7334
|
let l = !0;
|
|
7311
|
-
t.forEach((
|
|
7312
|
-
const u = `${g}|${
|
|
7313
|
-
!s.reload && this.store.hasResourceBundle(g,
|
|
7335
|
+
t.forEach((c) => {
|
|
7336
|
+
const u = `${g}|${c}`;
|
|
7337
|
+
!s.reload && this.store.hasResourceBundle(g, 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), o[u] === void 0 && (o[u] = !0), d[c] === void 0 && (d[c] = !0)));
|
|
7314
7338
|
}), l || (a[g] = !0);
|
|
7315
|
-
}), (Object.keys(o).length || Object.keys(
|
|
7316
|
-
pending:
|
|
7317
|
-
pendingCount: Object.keys(
|
|
7339
|
+
}), (Object.keys(o).length || Object.keys(h).length) && this.queue.push({
|
|
7340
|
+
pending: h,
|
|
7341
|
+
pendingCount: Object.keys(h).length,
|
|
7318
7342
|
loaded: {},
|
|
7319
7343
|
errors: [],
|
|
7320
7344
|
callback: n
|
|
7321
7345
|
}), {
|
|
7322
7346
|
toLoad: Object.keys(o),
|
|
7323
|
-
pending: Object.keys(
|
|
7347
|
+
pending: Object.keys(h),
|
|
7324
7348
|
toLoadLanguages: Object.keys(a),
|
|
7325
7349
|
toLoadNamespaces: Object.keys(d)
|
|
7326
7350
|
};
|
|
7327
7351
|
}
|
|
7328
7352
|
loaded(e, t, s) {
|
|
7329
|
-
const n = e.split("|"), o = n[0],
|
|
7330
|
-
t && this.emit("failedLoading", o,
|
|
7353
|
+
const n = e.split("|"), o = n[0], h = n[1];
|
|
7354
|
+
t && this.emit("failedLoading", o, h, t), !t && s && this.store.addResourceBundle(o, h, s, void 0, void 0, {
|
|
7331
7355
|
skipCopy: !0
|
|
7332
7356
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
|
7333
7357
|
const a = {};
|
|
7334
7358
|
this.queue.forEach((d) => {
|
|
7335
|
-
|
|
7359
|
+
l0(d.loaded, [o], h), b0(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
|
|
7336
7360
|
a[g] || (a[g] = {});
|
|
7337
7361
|
const l = d.loaded[g];
|
|
7338
|
-
l.length && l.forEach((
|
|
7339
|
-
a[g][
|
|
7362
|
+
l.length && l.forEach((c) => {
|
|
7363
|
+
a[g][c] === void 0 && (a[g][c] = !0);
|
|
7340
7364
|
});
|
|
7341
7365
|
}), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
|
|
7342
7366
|
}), this.emit("loaded", a), this.queue = this.queue.filter((d) => !d.done);
|
|
7343
7367
|
}
|
|
7344
7368
|
read(e, t, s) {
|
|
7345
|
-
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout,
|
|
7346
|
-
if (!e.length) return
|
|
7369
|
+
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, h = arguments.length > 5 ? arguments[5] : void 0;
|
|
7370
|
+
if (!e.length) return h(null, {});
|
|
7347
7371
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
7348
7372
|
this.waitingReads.push({
|
|
7349
7373
|
lng: e,
|
|
@@ -7351,23 +7375,23 @@ class R0 extends _1 {
|
|
|
7351
7375
|
fcName: s,
|
|
7352
7376
|
tried: n,
|
|
7353
7377
|
wait: o,
|
|
7354
|
-
callback:
|
|
7378
|
+
callback: h
|
|
7355
7379
|
});
|
|
7356
7380
|
return;
|
|
7357
7381
|
}
|
|
7358
7382
|
this.readingCalls++;
|
|
7359
7383
|
const a = (g, l) => {
|
|
7360
7384
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
7361
|
-
const
|
|
7362
|
-
this.read(
|
|
7385
|
+
const c = this.waitingReads.shift();
|
|
7386
|
+
this.read(c.lng, c.ns, c.fcName, c.tried, c.wait, c.callback);
|
|
7363
7387
|
}
|
|
7364
7388
|
if (g && l && n < this.maxRetries) {
|
|
7365
7389
|
setTimeout(() => {
|
|
7366
|
-
this.read.call(this, e, t, s, n + 1, o * 2,
|
|
7390
|
+
this.read.call(this, e, t, s, n + 1, o * 2, h);
|
|
7367
7391
|
}, o);
|
|
7368
7392
|
return;
|
|
7369
7393
|
}
|
|
7370
|
-
|
|
7394
|
+
h(g, l);
|
|
7371
7395
|
}, d = this.backend[s].bind(this.backend);
|
|
7372
7396
|
if (d.length === 2) {
|
|
7373
7397
|
try {
|
|
@@ -7388,8 +7412,8 @@ class R0 extends _1 {
|
|
|
7388
7412
|
const o = this.queueLoad(e, t, s, n);
|
|
7389
7413
|
if (!o.toLoad.length)
|
|
7390
7414
|
return o.pending.length || n(), null;
|
|
7391
|
-
o.toLoad.forEach((
|
|
7392
|
-
this.loadOne(
|
|
7415
|
+
o.toLoad.forEach((h) => {
|
|
7416
|
+
this.loadOne(h);
|
|
7393
7417
|
});
|
|
7394
7418
|
}
|
|
7395
7419
|
load(e, t, s) {
|
|
@@ -7403,12 +7427,12 @@ class R0 extends _1 {
|
|
|
7403
7427
|
loadOne(e) {
|
|
7404
7428
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
7405
7429
|
const s = e.split("|"), n = s[0], o = s[1];
|
|
7406
|
-
this.read(n, o, "read", void 0, void 0, (
|
|
7407
|
-
|
|
7430
|
+
this.read(n, o, "read", void 0, void 0, (h, a) => {
|
|
7431
|
+
h && this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`, h), !h && a && this.logger.log(`${t}loaded namespace ${o} for language ${n}`, a), this.loaded(e, h, a);
|
|
7408
7432
|
});
|
|
7409
7433
|
}
|
|
7410
7434
|
saveMissing(e, t, s, n, o) {
|
|
7411
|
-
let
|
|
7435
|
+
let h = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, a = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
|
7412
7436
|
};
|
|
7413
7437
|
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
|
|
7414
7438
|
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!!!");
|
|
@@ -7417,13 +7441,13 @@ class R0 extends _1 {
|
|
|
7417
7441
|
if (!(s == null || s === "")) {
|
|
7418
7442
|
if (this.backend && this.backend.create) {
|
|
7419
7443
|
const d = {
|
|
7420
|
-
...
|
|
7444
|
+
...h,
|
|
7421
7445
|
isUpdate: o
|
|
7422
7446
|
}, g = this.backend.create.bind(this.backend);
|
|
7423
7447
|
if (g.length < 6)
|
|
7424
7448
|
try {
|
|
7425
7449
|
let l;
|
|
7426
|
-
g.length === 5 ? l = g(e, t, s, n, d) : l = g(e, t, s, n), l && typeof l.then == "function" ? l.then((
|
|
7450
|
+
g.length === 5 ? l = g(e, t, s, n, d) : l = g(e, t, s, n), l && typeof l.then == "function" ? l.then((c) => a(null, c)).catch(a) : a(null, l);
|
|
7427
7451
|
} catch (l) {
|
|
7428
7452
|
a(l);
|
|
7429
7453
|
}
|
|
@@ -7434,7 +7458,7 @@ class R0 extends _1 {
|
|
|
7434
7458
|
}
|
|
7435
7459
|
}
|
|
7436
7460
|
}
|
|
7437
|
-
const
|
|
7461
|
+
const re = () => ({
|
|
7438
7462
|
debug: !1,
|
|
7439
7463
|
initImmediate: !0,
|
|
7440
7464
|
ns: ["translation"],
|
|
@@ -7490,18 +7514,18 @@ const ne = () => ({
|
|
|
7490
7514
|
maxReplaces: 1e3,
|
|
7491
7515
|
skipOnVariables: !0
|
|
7492
7516
|
}
|
|
7493
|
-
}),
|
|
7494
|
-
},
|
|
7517
|
+
}), oe = (i) => (R(i.ns) && (i.ns = [i.ns]), R(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), R(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), x1 = () => {
|
|
7518
|
+
}, E0 = (i) => {
|
|
7495
7519
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
|
7496
7520
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
|
7497
7521
|
});
|
|
7498
7522
|
};
|
|
7499
|
-
class w1 extends
|
|
7523
|
+
class w1 extends H1 {
|
|
7500
7524
|
constructor() {
|
|
7501
7525
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
7502
|
-
if (super(), this.options =
|
|
7526
|
+
if (super(), this.options = oe(e), this.services = {}, this.logger = X, this.modules = {
|
|
7503
7527
|
external: []
|
|
7504
|
-
},
|
|
7528
|
+
}, E0(this), t && !this.isInitialized && !e.isClone) {
|
|
7505
7529
|
if (!this.options.initImmediate)
|
|
7506
7530
|
return this.init(e, t), this;
|
|
7507
7531
|
setTimeout(() => {
|
|
@@ -7513,37 +7537,37 @@ class w1 extends _1 {
|
|
|
7513
7537
|
var e = this;
|
|
7514
7538
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
|
|
7515
7539
|
this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (R(t.ns) ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
|
|
7516
|
-
const n =
|
|
7540
|
+
const n = re();
|
|
7517
7541
|
this.options = {
|
|
7518
7542
|
...n,
|
|
7519
7543
|
...this.options,
|
|
7520
|
-
...
|
|
7544
|
+
...oe(t)
|
|
7521
7545
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
7522
7546
|
...n.interpolation,
|
|
7523
7547
|
...this.options.interpolation
|
|
7524
7548
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
7525
7549
|
const o = (l) => l ? typeof l == "function" ? new l() : l : null;
|
|
7526
7550
|
if (!this.options.isClone) {
|
|
7527
|
-
this.modules.logger ?
|
|
7551
|
+
this.modules.logger ? X.init(o(this.modules.logger), this.options) : X.init(null, this.options);
|
|
7528
7552
|
let l;
|
|
7529
|
-
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l =
|
|
7530
|
-
const
|
|
7531
|
-
this.store = new
|
|
7553
|
+
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = M0);
|
|
7554
|
+
const c = new ie(this.options);
|
|
7555
|
+
this.store = new ee(this.options.resources, this.options);
|
|
7532
7556
|
const u = this.services;
|
|
7533
|
-
u.logger =
|
|
7557
|
+
u.logger = X, u.resourceStore = this.store, u.languageUtils = c, u.pluralResolver = new N0(c, {
|
|
7534
7558
|
prepend: this.options.pluralSeparator,
|
|
7535
7559
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
7536
7560
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
7537
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = o(l), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new
|
|
7561
|
+
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = o(l), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new x0(this.options), u.utils = {
|
|
7538
7562
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
7539
|
-
}, u.backendConnector = new
|
|
7540
|
-
for (var
|
|
7541
|
-
|
|
7542
|
-
e.emit(p, ...
|
|
7563
|
+
}, u.backendConnector = new y0(o(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
|
|
7564
|
+
for (var w = arguments.length, k = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7565
|
+
k[m - 1] = arguments[m];
|
|
7566
|
+
e.emit(p, ...k);
|
|
7543
7567
|
}), this.modules.languageDetector && (u.languageDetector = o(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = o(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new E1(this.services, this.options), this.translator.on("*", function(p) {
|
|
7544
|
-
for (var
|
|
7545
|
-
|
|
7546
|
-
e.emit(p, ...
|
|
7568
|
+
for (var w = arguments.length, k = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7569
|
+
k[m - 1] = arguments[m];
|
|
7570
|
+
e.emit(p, ...k);
|
|
7547
7571
|
}), this.modules.external.forEach((p) => {
|
|
7548
7572
|
p.init && p.init(this);
|
|
7549
7573
|
});
|
|
@@ -7562,8 +7586,8 @@ class w1 extends _1 {
|
|
|
7562
7586
|
};
|
|
7563
7587
|
});
|
|
7564
7588
|
const d = C1(), g = () => {
|
|
7565
|
-
const l = (
|
|
7566
|
-
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(u), s(
|
|
7589
|
+
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), d.resolve(u), s(c, u);
|
|
7567
7591
|
};
|
|
7568
7592
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return l(null, this.t.bind(this));
|
|
7569
7593
|
this.changeLanguage(this.options.lng, l);
|
|
@@ -7575,13 +7599,13 @@ class w1 extends _1 {
|
|
|
7575
7599
|
const n = R(e) ? e : this.language;
|
|
7576
7600
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
7577
7601
|
if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
|
7578
|
-
const o = [],
|
|
7602
|
+
const o = [], h = (a) => {
|
|
7579
7603
|
if (!a || a === "cimode") return;
|
|
7580
7604
|
this.services.languageUtils.toResolveHierarchy(a).forEach((g) => {
|
|
7581
7605
|
g !== "cimode" && o.indexOf(g) < 0 && o.push(g);
|
|
7582
7606
|
});
|
|
7583
7607
|
};
|
|
7584
|
-
n ?
|
|
7608
|
+
n ? h(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => h(d)), this.options.preload && this.options.preload.forEach((a) => h(a)), this.services.backendConnector.load(o, this.options.ns, (a) => {
|
|
7585
7609
|
!a && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(a);
|
|
7586
7610
|
});
|
|
7587
7611
|
} else
|
|
@@ -7596,7 +7620,7 @@ class w1 extends _1 {
|
|
|
7596
7620
|
use(e) {
|
|
7597
7621
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
7598
7622
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
7599
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
7623
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && we.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
7600
7624
|
}
|
|
7601
7625
|
setResolvedLanguage(e) {
|
|
7602
7626
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
|
|
@@ -7615,7 +7639,7 @@ class w1 extends _1 {
|
|
|
7615
7639
|
this.emit("languageChanging", e);
|
|
7616
7640
|
const o = (d) => {
|
|
7617
7641
|
this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
|
|
7618
|
-
},
|
|
7642
|
+
}, h = (d, g) => {
|
|
7619
7643
|
g ? (o(g), this.translator.changeLanguage(g), this.isLanguageChangingTo = void 0, this.emit("languageChanged", g), this.logger.log("languageChanged", g)) : this.isLanguageChangingTo = void 0, n.resolve(function() {
|
|
7620
7644
|
return s.t(...arguments);
|
|
7621
7645
|
}), t && t(d, function() {
|
|
@@ -7625,19 +7649,19 @@ class w1 extends _1 {
|
|
|
7625
7649
|
!e && !d && this.services.languageDetector && (d = []);
|
|
7626
7650
|
const g = R(d) ? d : this.services.languageUtils.getBestMatchFromCodes(d);
|
|
7627
7651
|
g && (this.language || o(g), this.translator.language || this.translator.changeLanguage(g), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(g)), this.loadResources(g, (l) => {
|
|
7628
|
-
|
|
7652
|
+
h(l, g);
|
|
7629
7653
|
});
|
|
7630
7654
|
};
|
|
7631
7655
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), n;
|
|
7632
7656
|
}
|
|
7633
7657
|
getFixedT(e, t, s) {
|
|
7634
7658
|
var n = this;
|
|
7635
|
-
const o = function(
|
|
7659
|
+
const o = function(h, a) {
|
|
7636
7660
|
let d;
|
|
7637
7661
|
if (typeof a != "object") {
|
|
7638
|
-
for (var g = arguments.length, l = new Array(g > 2 ? g - 2 : 0),
|
|
7639
|
-
l[
|
|
7640
|
-
d = n.options.overloadTranslationOptionHandler([
|
|
7662
|
+
for (var g = arguments.length, l = new Array(g > 2 ? g - 2 : 0), c = 2; c < g; c++)
|
|
7663
|
+
l[c - 2] = arguments[c];
|
|
7664
|
+
d = n.options.overloadTranslationOptionHandler([h, a].concat(l));
|
|
7641
7665
|
} else
|
|
7642
7666
|
d = {
|
|
7643
7667
|
...a
|
|
@@ -7645,7 +7669,7 @@ class w1 extends _1 {
|
|
|
7645
7669
|
d.lng = d.lng || o.lng, d.lngs = d.lngs || o.lngs, d.ns = d.ns || o.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || s || o.keyPrefix);
|
|
7646
7670
|
const u = n.options.keySeparator || ".";
|
|
7647
7671
|
let p;
|
|
7648
|
-
return d.keyPrefix && Array.isArray(
|
|
7672
|
+
return d.keyPrefix && Array.isArray(h) ? p = h.map((w) => `${d.keyPrefix}${u}${w}`) : p = d.keyPrefix ? `${d.keyPrefix}${u}${h}` : h, n.t(p, d);
|
|
7649
7673
|
};
|
|
7650
7674
|
return R(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = s, o;
|
|
7651
7675
|
}
|
|
@@ -7666,15 +7690,15 @@ class w1 extends _1 {
|
|
|
7666
7690
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
7667
7691
|
const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1, o = this.languages[this.languages.length - 1];
|
|
7668
7692
|
if (s.toLowerCase() === "cimode") return !0;
|
|
7669
|
-
const
|
|
7693
|
+
const h = (a, d) => {
|
|
7670
7694
|
const g = this.services.backendConnector.state[`${a}|${d}`];
|
|
7671
7695
|
return g === -1 || g === 0 || g === 2;
|
|
7672
7696
|
};
|
|
7673
7697
|
if (t.precheck) {
|
|
7674
|
-
const a = t.precheck(this,
|
|
7698
|
+
const a = t.precheck(this, h);
|
|
7675
7699
|
if (a !== void 0) return a;
|
|
7676
7700
|
}
|
|
7677
|
-
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages ||
|
|
7701
|
+
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || h(s, e) && (!n || h(o, e)));
|
|
7678
7702
|
}
|
|
7679
7703
|
loadNamespaces(e, t) {
|
|
7680
7704
|
const s = C1();
|
|
@@ -7687,14 +7711,14 @@ class w1 extends _1 {
|
|
|
7687
7711
|
loadLanguages(e, t) {
|
|
7688
7712
|
const s = C1();
|
|
7689
7713
|
R(e) && (e = [e]);
|
|
7690
|
-
const n = this.options.preload || [], o = e.filter((
|
|
7691
|
-
return o.length ? (this.options.preload = n.concat(o), this.loadResources((
|
|
7692
|
-
s.resolve(), t && t(
|
|
7714
|
+
const n = this.options.preload || [], o = e.filter((h) => n.indexOf(h) < 0 && this.services.languageUtils.isSupportedCode(h));
|
|
7715
|
+
return o.length ? (this.options.preload = n.concat(o), this.loadResources((h) => {
|
|
7716
|
+
s.resolve(), t && t(h);
|
|
7693
7717
|
}), s) : (t && t(), Promise.resolve());
|
|
7694
7718
|
}
|
|
7695
7719
|
dir(e) {
|
|
7696
7720
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
|
|
7697
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new
|
|
7721
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new ie(re());
|
|
7698
7722
|
return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
7699
7723
|
}
|
|
7700
7724
|
static createInstance() {
|
|
@@ -7716,7 +7740,7 @@ class w1 extends _1 {
|
|
|
7716
7740
|
...this.services
|
|
7717
7741
|
}, o.services.utils = {
|
|
7718
7742
|
hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
|
|
7719
|
-
}, s && (o.store = new
|
|
7743
|
+
}, s && (o.store = new ee(this.store.data, n), o.services.resourceStore = o.store), o.translator = new E1(o.services, n), o.translator.on("*", function(a) {
|
|
7720
7744
|
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), l = 1; l < d; l++)
|
|
7721
7745
|
g[l - 1] = arguments[l];
|
|
7722
7746
|
o.emit(a, ...g);
|
|
@@ -7750,26 +7774,26 @@ Y.setDefaultNamespace;
|
|
|
7750
7774
|
Y.hasLoadedNamespace;
|
|
7751
7775
|
Y.loadNamespaces;
|
|
7752
7776
|
Y.loadLanguages;
|
|
7753
|
-
const
|
|
7754
|
-
archived: b0,
|
|
7755
|
-
deleted: y0
|
|
7756
|
-
}, _0 = "Заархивирован", H0 = "Удалён", I0 = {
|
|
7777
|
+
const _0 = "Archived", H0 = "Deleted", I0 = {
|
|
7757
7778
|
archived: _0,
|
|
7758
7779
|
deleted: H0
|
|
7780
|
+
}, O0 = "Заархивирован", S0 = "Удалён", V0 = {
|
|
7781
|
+
archived: O0,
|
|
7782
|
+
deleted: S0
|
|
7759
7783
|
};
|
|
7760
|
-
Y.use(
|
|
7784
|
+
Y.use(e0).init({
|
|
7761
7785
|
defaultNS: "common",
|
|
7762
7786
|
lng: "en",
|
|
7763
7787
|
resources: {
|
|
7764
7788
|
en: {
|
|
7765
|
-
common:
|
|
7789
|
+
common: I0
|
|
7766
7790
|
},
|
|
7767
7791
|
ru: {
|
|
7768
|
-
common:
|
|
7792
|
+
common: V0
|
|
7769
7793
|
}
|
|
7770
7794
|
}
|
|
7771
7795
|
});
|
|
7772
|
-
const
|
|
7796
|
+
const W0 = k1(
|
|
7773
7797
|
({
|
|
7774
7798
|
fetchParams: i,
|
|
7775
7799
|
mode: e = void 0,
|
|
@@ -7777,135 +7801,135 @@ const B0 = k1(
|
|
|
7777
7801
|
disabled: s,
|
|
7778
7802
|
value: n,
|
|
7779
7803
|
onChange: o,
|
|
7780
|
-
onError:
|
|
7804
|
+
onError: h,
|
|
7781
7805
|
allowEmpty: a = !1,
|
|
7782
7806
|
showAvatar: d = !1,
|
|
7783
7807
|
clearable: g,
|
|
7784
7808
|
required: l,
|
|
7785
|
-
error:
|
|
7809
|
+
error: c
|
|
7786
7810
|
}, u) => {
|
|
7787
|
-
const { axiosPeople: p, locale:
|
|
7788
|
-
if (
|
|
7811
|
+
const { axiosPeople: p, locale: w } = r1(_e), { t: k } = r0("common", { lng: w }), [m, y] = T([]), [M, S] = T(!0), f = q(m), N = q(null);
|
|
7812
|
+
if (_1(u, () => N.current), !p)
|
|
7789
7813
|
throw new Error(
|
|
7790
7814
|
`UserSelect requires "axiosPeople" to fetch users.
|
|
7791
7815
|
Please provide it via SNMTUiContext.`
|
|
7792
7816
|
);
|
|
7793
7817
|
const x = $(
|
|
7794
|
-
(
|
|
7795
|
-
let
|
|
7796
|
-
return
|
|
7818
|
+
(H) => {
|
|
7819
|
+
let B = "";
|
|
7820
|
+
return H.deletedAt && (B += `[${k("deleted")}] `), H.status === R1.ARCHIVED && (B += `[${k("archived")}] `), `${B}${H.firstName} ${H.lastName}`;
|
|
7797
7821
|
},
|
|
7798
|
-
[
|
|
7799
|
-
),
|
|
7822
|
+
[k]
|
|
7823
|
+
), v = $(
|
|
7800
7824
|
async ({
|
|
7801
|
-
offset:
|
|
7802
|
-
limit:
|
|
7803
|
-
search:
|
|
7825
|
+
offset: H,
|
|
7826
|
+
limit: B,
|
|
7827
|
+
search: I
|
|
7804
7828
|
}) => {
|
|
7805
|
-
var V,
|
|
7829
|
+
var V, D, W;
|
|
7806
7830
|
try {
|
|
7807
7831
|
const U = await p.post("v1/users/search", {
|
|
7808
|
-
offset:
|
|
7809
|
-
limit:
|
|
7810
|
-
search:
|
|
7832
|
+
offset: H,
|
|
7833
|
+
limit: B,
|
|
7834
|
+
search: I,
|
|
7811
7835
|
...i,
|
|
7812
7836
|
includeCount: !0
|
|
7813
|
-
}), { data:
|
|
7837
|
+
}), { data: O, metadata: K } = U.data;
|
|
7814
7838
|
return {
|
|
7815
|
-
options:
|
|
7816
|
-
value:
|
|
7817
|
-
label: x(
|
|
7818
|
-
image: d ?
|
|
7839
|
+
options: O.map((G) => ({
|
|
7840
|
+
value: G.id,
|
|
7841
|
+
label: x(G),
|
|
7842
|
+
image: d ? G.avatarUrl : void 0
|
|
7819
7843
|
})),
|
|
7820
7844
|
count: K.count
|
|
7821
7845
|
};
|
|
7822
7846
|
} catch (U) {
|
|
7823
|
-
return
|
|
7847
|
+
return h && h({
|
|
7824
7848
|
status: ((V = U.response) == null ? void 0 : V.status) ?? 500,
|
|
7825
|
-
message: ((
|
|
7849
|
+
message: ((W = (D = U.response) == null ? void 0 : D.data) == null ? void 0 : W.message) ?? "Error while fetching options"
|
|
7826
7850
|
}), {
|
|
7827
7851
|
options: [],
|
|
7828
7852
|
count: 0
|
|
7829
7853
|
};
|
|
7830
7854
|
}
|
|
7831
7855
|
},
|
|
7832
|
-
[p, i, x, d,
|
|
7856
|
+
[p, i, x, d, h]
|
|
7833
7857
|
), P = $(
|
|
7834
|
-
async (
|
|
7835
|
-
var
|
|
7858
|
+
async (H) => {
|
|
7859
|
+
var B, I, V;
|
|
7836
7860
|
try {
|
|
7837
|
-
const
|
|
7838
|
-
(
|
|
7861
|
+
const D = H.filter(
|
|
7862
|
+
(O) => !f.current.some((K) => K.value === O)
|
|
7839
7863
|
);
|
|
7840
|
-
let
|
|
7841
|
-
|
|
7864
|
+
let W = [];
|
|
7865
|
+
D.length && (W = (await p.post("v1/users/search", {
|
|
7842
7866
|
filters: {
|
|
7843
|
-
id:
|
|
7867
|
+
id: D,
|
|
7844
7868
|
status: [R1.ACTIVE, R1.ARCHIVED]
|
|
7845
7869
|
}
|
|
7846
7870
|
})).data.data);
|
|
7847
|
-
const U =
|
|
7848
|
-
value:
|
|
7849
|
-
label: x(
|
|
7850
|
-
image: d ?
|
|
7871
|
+
const U = W.map((O) => ({
|
|
7872
|
+
value: O.id,
|
|
7873
|
+
label: x(O),
|
|
7874
|
+
image: d ? O.avatarUrl : void 0
|
|
7851
7875
|
}));
|
|
7852
7876
|
return [...f.current, ...U];
|
|
7853
|
-
} catch (
|
|
7854
|
-
return
|
|
7855
|
-
status: ((
|
|
7856
|
-
message: ((V = (
|
|
7877
|
+
} catch (D) {
|
|
7878
|
+
return h && h({
|
|
7879
|
+
status: ((B = D.response) == null ? void 0 : B.status) ?? 500,
|
|
7880
|
+
message: ((V = (I = D.response) == null ? void 0 : I.data) == null ? void 0 : V.message) ?? "Error while fetching selected items"
|
|
7857
7881
|
}), [];
|
|
7858
7882
|
}
|
|
7859
7883
|
},
|
|
7860
|
-
[p, x,
|
|
7884
|
+
[p, x, h, d]
|
|
7861
7885
|
);
|
|
7862
|
-
|
|
7886
|
+
Z(() => {
|
|
7863
7887
|
f.current = m;
|
|
7864
|
-
}, [m]),
|
|
7865
|
-
var
|
|
7866
|
-
(
|
|
7867
|
-
}, [i]),
|
|
7888
|
+
}, [m]), Z(() => {
|
|
7889
|
+
var H;
|
|
7890
|
+
(H = N.current) == null || H.refetchOptions();
|
|
7891
|
+
}, [i]), Z(() => {
|
|
7868
7892
|
if (!n) {
|
|
7869
7893
|
S(!1);
|
|
7870
7894
|
return;
|
|
7871
7895
|
}
|
|
7872
7896
|
(async () => {
|
|
7873
|
-
const
|
|
7874
|
-
|
|
7897
|
+
const B = Array.isArray(n) ? n : [n], I = await P(B);
|
|
7898
|
+
y(I), S(!1);
|
|
7875
7899
|
})();
|
|
7876
7900
|
}, [P, n]);
|
|
7877
7901
|
const J = $(
|
|
7878
7902
|
async ({
|
|
7879
|
-
limit:
|
|
7880
|
-
offset:
|
|
7881
|
-
search:
|
|
7903
|
+
limit: H,
|
|
7904
|
+
offset: B,
|
|
7905
|
+
search: I
|
|
7882
7906
|
}) => {
|
|
7883
|
-
const { count: V, ...
|
|
7884
|
-
offset:
|
|
7885
|
-
limit:
|
|
7886
|
-
search:
|
|
7907
|
+
const { count: V, ...D } = await v({
|
|
7908
|
+
offset: B,
|
|
7909
|
+
limit: H,
|
|
7910
|
+
search: I
|
|
7887
7911
|
});
|
|
7888
|
-
let
|
|
7889
|
-
return a &&
|
|
7890
|
-
options:
|
|
7912
|
+
let W = D.options;
|
|
7913
|
+
return a && B === 0 && (W = [{ value: null, label: "None" }, ...W]), {
|
|
7914
|
+
options: W,
|
|
7891
7915
|
count: V,
|
|
7892
|
-
limit:
|
|
7916
|
+
limit: H
|
|
7893
7917
|
};
|
|
7894
7918
|
},
|
|
7895
|
-
[a,
|
|
7919
|
+
[a, v]
|
|
7896
7920
|
);
|
|
7897
7921
|
if (M)
|
|
7898
|
-
return /* @__PURE__ */ r(
|
|
7922
|
+
return /* @__PURE__ */ r(Wi, {});
|
|
7899
7923
|
const F = {
|
|
7900
7924
|
ref: N,
|
|
7901
7925
|
placeholder: t,
|
|
7902
7926
|
disabled: s,
|
|
7903
7927
|
clearable: g,
|
|
7904
7928
|
required: l,
|
|
7905
|
-
error:
|
|
7929
|
+
error: c
|
|
7906
7930
|
};
|
|
7907
7931
|
return e ? /* @__PURE__ */ r(
|
|
7908
|
-
|
|
7932
|
+
F1,
|
|
7909
7933
|
{
|
|
7910
7934
|
...F,
|
|
7911
7935
|
mode: e,
|
|
@@ -7916,7 +7940,7 @@ const B0 = k1(
|
|
|
7916
7940
|
extraOptions: m
|
|
7917
7941
|
}
|
|
7918
7942
|
) : /* @__PURE__ */ r(
|
|
7919
|
-
|
|
7943
|
+
F1,
|
|
7920
7944
|
{
|
|
7921
7945
|
...F,
|
|
7922
7946
|
value: n,
|
|
@@ -7930,5 +7954,5 @@ const B0 = k1(
|
|
|
7930
7954
|
}
|
|
7931
7955
|
);
|
|
7932
7956
|
export {
|
|
7933
|
-
|
|
7957
|
+
W0 as UserSelect
|
|
7934
7958
|
};
|