@snmt-react-ui/user-select 2.7.21 → 2.7.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/user-select.js +1050 -1080
- package/package.json +4 -4
package/dist/user-select.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var ke = Object.defineProperty;
|
|
2
|
+
var Le = (i, e, t) => e in i ? ke(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var D1 = (i, e, t) => Le(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, useState as B, useRef as X, useEffect as G, useCallback as $, useMemo as ve, useImperativeHandle as oe, useContext as r1 } from "react";
|
|
7
|
+
import { Select as Ne, Flex as xe, Avatar as Re, Checkbox as Me, Typography as ae, Tag as be, Popover as ye } from "antd";
|
|
8
|
+
import { SNMTUiContext as Ee } from "@snmt-react-ui/core";
|
|
9
|
+
var _e = Object.defineProperty, He = (i, e, t) => e in i ? _e(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Ie = (i, e, t) => He(i, e + "", t), Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
|
+
function Se() {
|
|
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 B1 = {};
|
|
18
|
+
function S1() {
|
|
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]) && B1[e[0]] || (s1(e[0]) && (B1[e[0]] = /* @__PURE__ */ new Date()), Se(...e));
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const le = (i, e) => () => {
|
|
24
24
|
if (i.isInitialized)
|
|
25
25
|
e();
|
|
26
26
|
else {
|
|
@@ -31,30 +31,30 @@ const he = (i, e) => () => {
|
|
|
31
31
|
};
|
|
32
32
|
i.on("initialized", t);
|
|
33
33
|
}
|
|
34
|
-
},
|
|
35
|
-
i.loadNamespaces(e,
|
|
36
|
-
},
|
|
34
|
+
}, j1 = (i, e, t) => {
|
|
35
|
+
i.loadNamespaces(e, le(i, t));
|
|
36
|
+
}, W1 = (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, le(i, s));
|
|
40
|
+
}, Ve = function(i, e) {
|
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
42
|
-
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1,
|
|
42
|
+
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
|
43
43
|
if (s.toLowerCase() === "cimode") return !0;
|
|
44
|
-
const c = (
|
|
45
|
-
const g = e.services.backendConnector.state[`${
|
|
44
|
+
const c = (a, d) => {
|
|
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 && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(
|
|
49
|
-
},
|
|
48
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(o, i)));
|
|
49
|
+
}, Ae = 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 ? (S1("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
|
+
}) : Ve(i, e, t);
|
|
57
|
+
}, s1 = (i) => typeof i == "string", Te = (i) => typeof i == "object" && i !== null, Ze = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, De = {
|
|
58
58
|
"&": "&",
|
|
59
59
|
"&": "&",
|
|
60
60
|
"<": "<",
|
|
@@ -75,8 +75,8 @@ const he = (i, e) => () => {
|
|
|
75
75
|
"…": "…",
|
|
76
76
|
"/": "/",
|
|
77
77
|
"/": "/"
|
|
78
|
-
},
|
|
79
|
-
let
|
|
78
|
+
}, Be = (i) => De[i], je = (i) => i.replace(Ze, Be);
|
|
79
|
+
let We = {
|
|
80
80
|
bindI18n: "languageChanged",
|
|
81
81
|
bindI18nStore: "",
|
|
82
82
|
transEmptyNodeValue: "",
|
|
@@ -84,14 +84,14 @@ let Ge = {
|
|
|
84
84
|
transWrapTextNodes: "",
|
|
85
85
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
86
86
|
useSuspense: !0,
|
|
87
|
-
unescape:
|
|
87
|
+
unescape: je
|
|
88
88
|
};
|
|
89
|
-
const
|
|
90
|
-
let
|
|
91
|
-
const
|
|
92
|
-
class
|
|
89
|
+
const Ge = () => We;
|
|
90
|
+
let Ke;
|
|
91
|
+
const $e = () => Ke, Pe = d1();
|
|
92
|
+
class Fe {
|
|
93
93
|
constructor() {
|
|
94
|
-
|
|
94
|
+
Ie(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
|
95
95
|
}
|
|
96
96
|
addUsedNamespaces(e) {
|
|
97
97
|
e.forEach((t) => {
|
|
@@ -99,62 +99,62 @@ class Ye {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
const
|
|
103
|
-
const t =
|
|
104
|
-
return
|
|
102
|
+
const Ye = (i, e) => {
|
|
103
|
+
const t = X();
|
|
104
|
+
return G(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
|
-
},
|
|
107
|
+
}, he = (i, e, t, s) => i.getFixedT(e, t, s), Ue = (i, e, t, s) => $(he(i, e, t, s), [i, e, t, s]), ze = 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 (
|
|
116
|
-
|
|
117
|
-
const f = (x,
|
|
114
|
+
} = r1(Pe) || {}, o = t || s || $e();
|
|
115
|
+
if (o && !o.reportNamespaces && (o.reportNamespaces = new Fe()), !o) {
|
|
116
|
+
S1("You will need to pass in an i18next instance by using initReactI18next");
|
|
117
|
+
const f = (x, L) => s1(L) ? L : Te(L) && s1(L.defaultValue) ? L.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
|
-
|
|
120
|
+
o.options.react && o.options.react.wait !== void 0 && S1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
121
121
|
const c = {
|
|
122
|
-
...
|
|
123
|
-
...
|
|
122
|
+
...Ge(),
|
|
123
|
+
...o.options.react,
|
|
124
124
|
...e
|
|
125
125
|
}, {
|
|
126
|
-
useSuspense:
|
|
126
|
+
useSuspense: a,
|
|
127
127
|
keyPrefix: d
|
|
128
128
|
} = c;
|
|
129
129
|
let g = i;
|
|
130
|
-
g = s1(g) ? [g] : g || ["translation"],
|
|
131
|
-
const l = (
|
|
130
|
+
g = s1(g) ? [g] : g || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(g);
|
|
131
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) => Ae(f, o, c)), h = Ue(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => he(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [k, v] = B(u);
|
|
132
132
|
let m = g.join();
|
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const O = Ye(m), M = X(!0);
|
|
135
|
+
G(() => {
|
|
136
136
|
const {
|
|
137
137
|
bindI18n: f,
|
|
138
138
|
bindI18nStore: N
|
|
139
139
|
} = c;
|
|
140
|
-
M.current = !0, !l && !
|
|
141
|
-
M.current &&
|
|
142
|
-
}) :
|
|
143
|
-
M.current &&
|
|
144
|
-
})), l &&
|
|
140
|
+
M.current = !0, !l && !a && (e.lng ? W1(o, e.lng, g, () => {
|
|
141
|
+
M.current && v(p);
|
|
142
|
+
}) : j1(o, g, () => {
|
|
143
|
+
M.current && v(p);
|
|
144
|
+
})), l && O && O !== m && M.current && v(p);
|
|
145
145
|
const x = () => {
|
|
146
|
-
M.current &&
|
|
146
|
+
M.current && v(p);
|
|
147
147
|
};
|
|
148
|
-
return f &&
|
|
149
|
-
M.current = !1, f &&
|
|
148
|
+
return f && o && o.on(f, x), N && o && o.store.on(N, x), () => {
|
|
149
|
+
M.current = !1, f && o && f.split(" ").forEach((L) => o.off(L, x)), N && o && N.split(" ").forEach((L) => o.store.off(L, x));
|
|
150
150
|
};
|
|
151
|
-
}, [
|
|
152
|
-
M.current && l &&
|
|
153
|
-
}, [
|
|
154
|
-
const S = [
|
|
155
|
-
if (S.t =
|
|
151
|
+
}, [o, m]), G(() => {
|
|
152
|
+
M.current && l && v(u);
|
|
153
|
+
}, [o, d, l]);
|
|
154
|
+
const S = [k, o, l];
|
|
155
|
+
if (S.t = k, S.i18n = o, S.ready = l, l || !l && !a) return S;
|
|
156
156
|
throw new Promise((f) => {
|
|
157
|
-
e.lng ?
|
|
157
|
+
e.lng ? W1(o, e.lng, g, () => f()) : j1(o, g, () => f());
|
|
158
158
|
});
|
|
159
159
|
}, p1 = ({
|
|
160
160
|
children: i,
|
|
@@ -162,26 +162,26 @@ const Ue = (i, e) => {
|
|
|
162
162
|
flexWrap: t = "nowrap",
|
|
163
163
|
alignItems: s = "normal",
|
|
164
164
|
justifyContent: n = "normal",
|
|
165
|
-
flex:
|
|
165
|
+
flex: o,
|
|
166
166
|
gap: c,
|
|
167
|
-
padding:
|
|
167
|
+
padding: a
|
|
168
168
|
}) => /* @__PURE__ */ r(
|
|
169
|
-
|
|
169
|
+
xe,
|
|
170
170
|
{
|
|
171
171
|
className: `snmt-flex${t === "inherit" ? " inherit" : ""}`,
|
|
172
172
|
vertical: e === "column",
|
|
173
173
|
wrap: t,
|
|
174
174
|
align: s,
|
|
175
175
|
justify: n,
|
|
176
|
-
flex:
|
|
176
|
+
flex: o,
|
|
177
177
|
gap: c,
|
|
178
|
-
style: { padding:
|
|
178
|
+
style: { padding: a },
|
|
179
179
|
children: i
|
|
180
180
|
}
|
|
181
|
-
),
|
|
181
|
+
), Je = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
|
|
182
182
|
const n = typeof s.src == "string";
|
|
183
183
|
return /* @__PURE__ */ r(
|
|
184
|
-
|
|
184
|
+
Re,
|
|
185
185
|
{
|
|
186
186
|
className: `snmt-avatar ${n ? "image" : ""}`,
|
|
187
187
|
shape: i,
|
|
@@ -193,32 +193,32 @@ const Ue = (i, e) => {
|
|
|
193
193
|
);
|
|
194
194
|
};
|
|
195
195
|
var Q = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(Q || {});
|
|
196
|
-
const
|
|
196
|
+
const Z1 = d1({
|
|
197
197
|
locale: "en",
|
|
198
198
|
theme: "light"
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
Z1.Provider;
|
|
201
201
|
const Qe = ({
|
|
202
202
|
checked: i = !0,
|
|
203
203
|
indeterminate: e = !1,
|
|
204
204
|
children: t,
|
|
205
205
|
onChange: s,
|
|
206
206
|
disabled: n = !1,
|
|
207
|
-
disableUncheck:
|
|
207
|
+
disableUncheck: o = !1
|
|
208
208
|
}) => {
|
|
209
|
-
const [c,
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
const [c, a] = B(i), [d, g] = B(e);
|
|
210
|
+
G(() => {
|
|
211
|
+
a(i), g(e);
|
|
212
212
|
}, [i, e]);
|
|
213
|
-
const { theme: l } = r1(
|
|
213
|
+
const { theme: l } = r1(Z1);
|
|
214
214
|
return /* @__PURE__ */ r(
|
|
215
|
-
|
|
215
|
+
Me,
|
|
216
216
|
{
|
|
217
217
|
className: `snmt-checkbox snmt-checkbox-${l}`,
|
|
218
218
|
checked: c,
|
|
219
219
|
indeterminate: d,
|
|
220
220
|
onChange: (h) => {
|
|
221
|
-
|
|
221
|
+
o && c || (g(!1), a(h.target.checked), s && s(h));
|
|
222
222
|
},
|
|
223
223
|
disabled: n,
|
|
224
224
|
children: t
|
|
@@ -226,12 +226,12 @@ const Qe = ({
|
|
|
226
226
|
);
|
|
227
227
|
};
|
|
228
228
|
var y = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(y || {});
|
|
229
|
-
const
|
|
229
|
+
const ce = d1({
|
|
230
230
|
locale: "en",
|
|
231
231
|
theme: "light"
|
|
232
232
|
});
|
|
233
|
-
|
|
234
|
-
const
|
|
233
|
+
ce.Provider;
|
|
234
|
+
const qe = ({
|
|
235
235
|
width: i = 20,
|
|
236
236
|
height: e = 20,
|
|
237
237
|
color: t = "#001E52",
|
|
@@ -258,7 +258,7 @@ const Xe = ({
|
|
|
258
258
|
}
|
|
259
259
|
)
|
|
260
260
|
}
|
|
261
|
-
),
|
|
261
|
+
), Xe = ({
|
|
262
262
|
width: i = 20,
|
|
263
263
|
height: e = 20,
|
|
264
264
|
color: t = y.GREY_DARK_5,
|
|
@@ -298,7 +298,7 @@ const Xe = ({
|
|
|
298
298
|
)
|
|
299
299
|
]
|
|
300
300
|
}
|
|
301
|
-
),
|
|
301
|
+
), et = ({
|
|
302
302
|
width: i = 20,
|
|
303
303
|
height: e = 20,
|
|
304
304
|
color: t = "#001E52",
|
|
@@ -333,7 +333,7 @@ const Xe = ({
|
|
|
333
333
|
)
|
|
334
334
|
]
|
|
335
335
|
}
|
|
336
|
-
),
|
|
336
|
+
), tt = ({
|
|
337
337
|
width: i = 18,
|
|
338
338
|
height: e = 18,
|
|
339
339
|
color: t = "#001E52",
|
|
@@ -372,7 +372,7 @@ const Xe = ({
|
|
|
372
372
|
)
|
|
373
373
|
]
|
|
374
374
|
}
|
|
375
|
-
),
|
|
375
|
+
), it = ({
|
|
376
376
|
width: i = 20,
|
|
377
377
|
height: e = 20,
|
|
378
378
|
color: t = "#001E52",
|
|
@@ -398,7 +398,7 @@ const Xe = ({
|
|
|
398
398
|
}
|
|
399
399
|
)
|
|
400
400
|
}
|
|
401
|
-
),
|
|
401
|
+
), st = ({
|
|
402
402
|
width: i = 20,
|
|
403
403
|
height: e = 20,
|
|
404
404
|
color: t = "#001E52",
|
|
@@ -419,7 +419,7 @@ const Xe = ({
|
|
|
419
419
|
/* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
|
420
420
|
]
|
|
421
421
|
}
|
|
422
|
-
),
|
|
422
|
+
), nt = ({
|
|
423
423
|
width: i = 20,
|
|
424
424
|
height: e = 20,
|
|
425
425
|
color: t = "#001E52",
|
|
@@ -451,7 +451,7 @@ const Xe = ({
|
|
|
451
451
|
)
|
|
452
452
|
]
|
|
453
453
|
}
|
|
454
|
-
),
|
|
454
|
+
), rt = ({
|
|
455
455
|
width: i = 20,
|
|
456
456
|
height: e = 20,
|
|
457
457
|
color: t = "#001E52",
|
|
@@ -505,7 +505,7 @@ const Xe = ({
|
|
|
505
505
|
)
|
|
506
506
|
]
|
|
507
507
|
}
|
|
508
|
-
),
|
|
508
|
+
), ot = ({
|
|
509
509
|
width: i = 20,
|
|
510
510
|
height: e = 20,
|
|
511
511
|
color: t = "#001E52",
|
|
@@ -544,7 +544,7 @@ const Xe = ({
|
|
|
544
544
|
/* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
|
545
545
|
]
|
|
546
546
|
}
|
|
547
|
-
),
|
|
547
|
+
), at = ({
|
|
548
548
|
width: i = 16,
|
|
549
549
|
height: e = 12,
|
|
550
550
|
color: t = "#001E52",
|
|
@@ -593,7 +593,7 @@ const Xe = ({
|
|
|
593
593
|
)
|
|
594
594
|
] })
|
|
595
595
|
}
|
|
596
|
-
),
|
|
596
|
+
), lt = ({
|
|
597
597
|
width: i = 20,
|
|
598
598
|
height: e = 20,
|
|
599
599
|
color: t = y.GREY_DARK_5,
|
|
@@ -633,7 +633,7 @@ const Xe = ({
|
|
|
633
633
|
)
|
|
634
634
|
]
|
|
635
635
|
}
|
|
636
|
-
),
|
|
636
|
+
), ht = ({
|
|
637
637
|
width: i = 20,
|
|
638
638
|
height: e = 20,
|
|
639
639
|
color: t = "#001E52",
|
|
@@ -680,7 +680,7 @@ const Xe = ({
|
|
|
680
680
|
)
|
|
681
681
|
]
|
|
682
682
|
}
|
|
683
|
-
),
|
|
683
|
+
), ct = ({
|
|
684
684
|
width: i = 20,
|
|
685
685
|
height: e = 20,
|
|
686
686
|
color: t = "#001E52",
|
|
@@ -713,7 +713,7 @@ const Xe = ({
|
|
|
713
713
|
)
|
|
714
714
|
]
|
|
715
715
|
}
|
|
716
|
-
),
|
|
716
|
+
), dt = ({
|
|
717
717
|
width: i = 20,
|
|
718
718
|
height: e = 20,
|
|
719
719
|
color: t = "#001E52",
|
|
@@ -760,7 +760,7 @@ const Xe = ({
|
|
|
760
760
|
)
|
|
761
761
|
]
|
|
762
762
|
}
|
|
763
|
-
),
|
|
763
|
+
), gt = ({
|
|
764
764
|
width: i = 20,
|
|
765
765
|
height: e = 20,
|
|
766
766
|
color: t = "#001E52",
|
|
@@ -793,7 +793,7 @@ const Xe = ({
|
|
|
793
793
|
)
|
|
794
794
|
]
|
|
795
795
|
}
|
|
796
|
-
),
|
|
796
|
+
), ut = ({
|
|
797
797
|
width: i = 18,
|
|
798
798
|
height: e = 16,
|
|
799
799
|
color: t = "#001E52",
|
|
@@ -832,7 +832,7 @@ const Xe = ({
|
|
|
832
832
|
)
|
|
833
833
|
]
|
|
834
834
|
}
|
|
835
|
-
),
|
|
835
|
+
), Ct = ({
|
|
836
836
|
width: i = 20,
|
|
837
837
|
height: e = 20,
|
|
838
838
|
color: t = "#001E52",
|
|
@@ -865,7 +865,7 @@ const Xe = ({
|
|
|
865
865
|
)
|
|
866
866
|
]
|
|
867
867
|
}
|
|
868
|
-
),
|
|
868
|
+
), pt = ({
|
|
869
869
|
width: i = 20,
|
|
870
870
|
height: e = 20,
|
|
871
871
|
color: t = "#001E52",
|
|
@@ -889,7 +889,7 @@ const Xe = ({
|
|
|
889
889
|
}
|
|
890
890
|
)
|
|
891
891
|
}
|
|
892
|
-
),
|
|
892
|
+
), ft = ({
|
|
893
893
|
width: i = 20,
|
|
894
894
|
height: e = 20,
|
|
895
895
|
color: t = "#001E52",
|
|
@@ -922,7 +922,7 @@ const Xe = ({
|
|
|
922
922
|
)
|
|
923
923
|
]
|
|
924
924
|
}
|
|
925
|
-
),
|
|
925
|
+
), mt = ({
|
|
926
926
|
width: i = 20,
|
|
927
927
|
height: e = 23,
|
|
928
928
|
color: t = "#001E52",
|
|
@@ -983,7 +983,7 @@ const Xe = ({
|
|
|
983
983
|
)
|
|
984
984
|
]
|
|
985
985
|
}
|
|
986
|
-
),
|
|
986
|
+
), wt = ({
|
|
987
987
|
width: i = 14,
|
|
988
988
|
height: e = 14,
|
|
989
989
|
color: t = "#10B981",
|
|
@@ -1012,7 +1012,7 @@ const Xe = ({
|
|
|
1012
1012
|
)
|
|
1013
1013
|
]
|
|
1014
1014
|
}
|
|
1015
|
-
),
|
|
1015
|
+
), kt = ({
|
|
1016
1016
|
width: i = 20,
|
|
1017
1017
|
height: e = 20,
|
|
1018
1018
|
color: t = y.GREY_DARK_5,
|
|
@@ -1045,7 +1045,7 @@ const Xe = ({
|
|
|
1045
1045
|
)
|
|
1046
1046
|
]
|
|
1047
1047
|
}
|
|
1048
|
-
),
|
|
1048
|
+
), Lt = ({
|
|
1049
1049
|
width: i = 10,
|
|
1050
1050
|
height: e = 10,
|
|
1051
1051
|
color: t = "#88A4FF",
|
|
@@ -1093,7 +1093,7 @@ const Xe = ({
|
|
|
1093
1093
|
)
|
|
1094
1094
|
]
|
|
1095
1095
|
}
|
|
1096
|
-
),
|
|
1096
|
+
), vt = ({
|
|
1097
1097
|
width: i = 14,
|
|
1098
1098
|
height: e = 14,
|
|
1099
1099
|
color: t = "#8E8E93",
|
|
@@ -1121,7 +1121,7 @@ const Xe = ({
|
|
|
1121
1121
|
)
|
|
1122
1122
|
]
|
|
1123
1123
|
}
|
|
1124
|
-
),
|
|
1124
|
+
), Nt = ({
|
|
1125
1125
|
width: i = 14,
|
|
1126
1126
|
height: e = 14,
|
|
1127
1127
|
color: t = "#FFB020",
|
|
@@ -1155,7 +1155,7 @@ const Xe = ({
|
|
|
1155
1155
|
)
|
|
1156
1156
|
]
|
|
1157
1157
|
}
|
|
1158
|
-
),
|
|
1158
|
+
), xt = ({
|
|
1159
1159
|
width: i = 14,
|
|
1160
1160
|
height: e = 14,
|
|
1161
1161
|
color: t = "#D0421B",
|
|
@@ -1203,7 +1203,7 @@ const Xe = ({
|
|
|
1203
1203
|
)
|
|
1204
1204
|
]
|
|
1205
1205
|
}
|
|
1206
|
-
),
|
|
1206
|
+
), Rt = ({
|
|
1207
1207
|
width: i = 20,
|
|
1208
1208
|
height: e = 20,
|
|
1209
1209
|
color: t = "#070739",
|
|
@@ -1233,7 +1233,7 @@ const Xe = ({
|
|
|
1233
1233
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
1234
1234
|
]
|
|
1235
1235
|
}
|
|
1236
|
-
),
|
|
1236
|
+
), Mt = ({
|
|
1237
1237
|
width: i = 20,
|
|
1238
1238
|
height: e = 20,
|
|
1239
1239
|
color: t = "#070739",
|
|
@@ -1271,7 +1271,7 @@ const Xe = ({
|
|
|
1271
1271
|
)
|
|
1272
1272
|
]
|
|
1273
1273
|
}
|
|
1274
|
-
),
|
|
1274
|
+
), bt = ({
|
|
1275
1275
|
width: i = 9,
|
|
1276
1276
|
height: e = 5,
|
|
1277
1277
|
color: t = "#001E52",
|
|
@@ -1297,7 +1297,7 @@ const Xe = ({
|
|
|
1297
1297
|
}
|
|
1298
1298
|
)
|
|
1299
1299
|
}
|
|
1300
|
-
),
|
|
1300
|
+
), yt = ({
|
|
1301
1301
|
width: i = 20,
|
|
1302
1302
|
height: e = 20,
|
|
1303
1303
|
color: t = "#F2F2F7",
|
|
@@ -1326,7 +1326,7 @@ const Xe = ({
|
|
|
1326
1326
|
)
|
|
1327
1327
|
]
|
|
1328
1328
|
}
|
|
1329
|
-
),
|
|
1329
|
+
), Et = ({
|
|
1330
1330
|
width: i = 20,
|
|
1331
1331
|
height: e = 20,
|
|
1332
1332
|
color: t = "#004ED7",
|
|
@@ -1355,7 +1355,7 @@ const Xe = ({
|
|
|
1355
1355
|
)
|
|
1356
1356
|
]
|
|
1357
1357
|
}
|
|
1358
|
-
),
|
|
1358
|
+
), _t = ({
|
|
1359
1359
|
width: i = 10,
|
|
1360
1360
|
height: e = 10,
|
|
1361
1361
|
color: t = "#001E52",
|
|
@@ -1384,7 +1384,7 @@ const Xe = ({
|
|
|
1384
1384
|
)
|
|
1385
1385
|
]
|
|
1386
1386
|
}
|
|
1387
|
-
),
|
|
1387
|
+
), Ht = ({
|
|
1388
1388
|
width: i = 10,
|
|
1389
1389
|
height: e = 10,
|
|
1390
1390
|
color: t = "#001E52",
|
|
@@ -1421,7 +1421,7 @@ const Xe = ({
|
|
|
1421
1421
|
)
|
|
1422
1422
|
]
|
|
1423
1423
|
}
|
|
1424
|
-
),
|
|
1424
|
+
), It = ({
|
|
1425
1425
|
className: i,
|
|
1426
1426
|
color: e = y.GREY_DARK_5,
|
|
1427
1427
|
height: t = 24,
|
|
@@ -1460,7 +1460,7 @@ const Xe = ({
|
|
|
1460
1460
|
)
|
|
1461
1461
|
]
|
|
1462
1462
|
}
|
|
1463
|
-
),
|
|
1463
|
+
), Ot = ({
|
|
1464
1464
|
className: i,
|
|
1465
1465
|
color: e = y.GREY_DARK_5,
|
|
1466
1466
|
height: t = 20,
|
|
@@ -1487,7 +1487,7 @@ const Xe = ({
|
|
|
1487
1487
|
}
|
|
1488
1488
|
)
|
|
1489
1489
|
}
|
|
1490
|
-
),
|
|
1490
|
+
), St = ({
|
|
1491
1491
|
className: i,
|
|
1492
1492
|
color: e = y.GREY_DARK_5,
|
|
1493
1493
|
height: t = 20,
|
|
@@ -1514,7 +1514,7 @@ const Xe = ({
|
|
|
1514
1514
|
}
|
|
1515
1515
|
)
|
|
1516
1516
|
}
|
|
1517
|
-
),
|
|
1517
|
+
), Vt = ({
|
|
1518
1518
|
className: i,
|
|
1519
1519
|
color: e = y.GREY_DARK_5,
|
|
1520
1520
|
height: t = 5,
|
|
@@ -1538,7 +1538,7 @@ const Xe = ({
|
|
|
1538
1538
|
}
|
|
1539
1539
|
)
|
|
1540
1540
|
}
|
|
1541
|
-
),
|
|
1541
|
+
), At = ({
|
|
1542
1542
|
className: i,
|
|
1543
1543
|
color: e = y.GREY_DARK_5,
|
|
1544
1544
|
height: t = 5,
|
|
@@ -1563,7 +1563,7 @@ const Xe = ({
|
|
|
1563
1563
|
}
|
|
1564
1564
|
)
|
|
1565
1565
|
}
|
|
1566
|
-
),
|
|
1566
|
+
), Tt = ({
|
|
1567
1567
|
className: i,
|
|
1568
1568
|
color: e = y.GREY_DARK_5,
|
|
1569
1569
|
height: t = 24,
|
|
@@ -1602,7 +1602,7 @@ const Xe = ({
|
|
|
1602
1602
|
)
|
|
1603
1603
|
]
|
|
1604
1604
|
}
|
|
1605
|
-
),
|
|
1605
|
+
), Zt = ({
|
|
1606
1606
|
className: i,
|
|
1607
1607
|
color: e = y.GREY_DARK_5,
|
|
1608
1608
|
height: t = 24,
|
|
@@ -1641,7 +1641,7 @@ const Xe = ({
|
|
|
1641
1641
|
)
|
|
1642
1642
|
]
|
|
1643
1643
|
}
|
|
1644
|
-
),
|
|
1644
|
+
), Dt = ({
|
|
1645
1645
|
className: i,
|
|
1646
1646
|
color: e = y.GREY_DARK_5,
|
|
1647
1647
|
height: t = 24,
|
|
@@ -1668,7 +1668,7 @@ const Xe = ({
|
|
|
1668
1668
|
}
|
|
1669
1669
|
)
|
|
1670
1670
|
}
|
|
1671
|
-
),
|
|
1671
|
+
), Bt = ({
|
|
1672
1672
|
className: i,
|
|
1673
1673
|
color: e = y.GREY_DARK_5,
|
|
1674
1674
|
height: t = 24,
|
|
@@ -1727,7 +1727,7 @@ const Xe = ({
|
|
|
1727
1727
|
)
|
|
1728
1728
|
]
|
|
1729
1729
|
}
|
|
1730
|
-
),
|
|
1730
|
+
), jt = ({
|
|
1731
1731
|
className: i,
|
|
1732
1732
|
color: e = y.GREY_DARK_5,
|
|
1733
1733
|
height: t = 24,
|
|
@@ -1764,7 +1764,7 @@ const Xe = ({
|
|
|
1764
1764
|
)
|
|
1765
1765
|
]
|
|
1766
1766
|
}
|
|
1767
|
-
),
|
|
1767
|
+
), Wt = ({
|
|
1768
1768
|
className: i,
|
|
1769
1769
|
color: e = y.GREY_DARK_3,
|
|
1770
1770
|
height: t = 14,
|
|
@@ -1801,7 +1801,7 @@ const Xe = ({
|
|
|
1801
1801
|
)
|
|
1802
1802
|
]
|
|
1803
1803
|
}
|
|
1804
|
-
),
|
|
1804
|
+
), Gt = ({
|
|
1805
1805
|
className: i,
|
|
1806
1806
|
color: e = y.GREY_DARK_5,
|
|
1807
1807
|
height: t = 18,
|
|
@@ -1828,7 +1828,7 @@ const Xe = ({
|
|
|
1828
1828
|
}
|
|
1829
1829
|
)
|
|
1830
1830
|
}
|
|
1831
|
-
),
|
|
1831
|
+
), Kt = ({
|
|
1832
1832
|
className: i,
|
|
1833
1833
|
color: e = y.GREY_DARK_5,
|
|
1834
1834
|
height: t = 24,
|
|
@@ -1880,7 +1880,7 @@ const Xe = ({
|
|
|
1880
1880
|
)
|
|
1881
1881
|
]
|
|
1882
1882
|
}
|
|
1883
|
-
),
|
|
1883
|
+
), $t = ({
|
|
1884
1884
|
className: i,
|
|
1885
1885
|
color: e = y.GREY_DARK_5,
|
|
1886
1886
|
height: t = 24,
|
|
@@ -1917,7 +1917,7 @@ const Xe = ({
|
|
|
1917
1917
|
)
|
|
1918
1918
|
]
|
|
1919
1919
|
}
|
|
1920
|
-
),
|
|
1920
|
+
), Pt = ({
|
|
1921
1921
|
className: i,
|
|
1922
1922
|
color: e = y.NOTIFICATION_WARNING_DARK,
|
|
1923
1923
|
height: t = 37,
|
|
@@ -1956,7 +1956,7 @@ const Xe = ({
|
|
|
1956
1956
|
)
|
|
1957
1957
|
]
|
|
1958
1958
|
}
|
|
1959
|
-
),
|
|
1959
|
+
), Ft = ({
|
|
1960
1960
|
className: i,
|
|
1961
1961
|
color: e = y.GREY_DARK_5,
|
|
1962
1962
|
height: t = 24,
|
|
@@ -1982,7 +1982,7 @@ const Xe = ({
|
|
|
1982
1982
|
}
|
|
1983
1983
|
)
|
|
1984
1984
|
}
|
|
1985
|
-
),
|
|
1985
|
+
), Yt = ({
|
|
1986
1986
|
className: i,
|
|
1987
1987
|
color: e = y.GREY_DARK_5,
|
|
1988
1988
|
height: t = 24,
|
|
@@ -2021,7 +2021,7 @@ const Xe = ({
|
|
|
2021
2021
|
)
|
|
2022
2022
|
]
|
|
2023
2023
|
}
|
|
2024
|
-
),
|
|
2024
|
+
), Ut = ({
|
|
2025
2025
|
className: i,
|
|
2026
2026
|
color: e = y.GREY_DARK_5,
|
|
2027
2027
|
height: t = 24,
|
|
@@ -2060,7 +2060,7 @@ const Xe = ({
|
|
|
2060
2060
|
)
|
|
2061
2061
|
]
|
|
2062
2062
|
}
|
|
2063
|
-
),
|
|
2063
|
+
), zt = ({
|
|
2064
2064
|
className: i,
|
|
2065
2065
|
color: e = y.GREY_DARK_5,
|
|
2066
2066
|
height: t = 24,
|
|
@@ -2129,7 +2129,7 @@ const Xe = ({
|
|
|
2129
2129
|
)
|
|
2130
2130
|
]
|
|
2131
2131
|
}
|
|
2132
|
-
),
|
|
2132
|
+
), Jt = ({
|
|
2133
2133
|
className: i,
|
|
2134
2134
|
color: e = y.GREY_DARK_5,
|
|
2135
2135
|
height: t = 24,
|
|
@@ -2225,7 +2225,7 @@ const Xe = ({
|
|
|
2225
2225
|
)
|
|
2226
2226
|
]
|
|
2227
2227
|
}
|
|
2228
|
-
),
|
|
2228
|
+
), qt = ({
|
|
2229
2229
|
className: i,
|
|
2230
2230
|
color: e = y.GREY_DARK_5,
|
|
2231
2231
|
height: t = 24,
|
|
@@ -2274,7 +2274,7 @@ const Xe = ({
|
|
|
2274
2274
|
)
|
|
2275
2275
|
]
|
|
2276
2276
|
}
|
|
2277
|
-
),
|
|
2277
|
+
), Xt = ({
|
|
2278
2278
|
className: i,
|
|
2279
2279
|
color: e = y.GREY_DARK_5,
|
|
2280
2280
|
height: t = 24,
|
|
@@ -2301,7 +2301,7 @@ const Xe = ({
|
|
|
2301
2301
|
}
|
|
2302
2302
|
)
|
|
2303
2303
|
}
|
|
2304
|
-
),
|
|
2304
|
+
), e2 = ({
|
|
2305
2305
|
className: i,
|
|
2306
2306
|
color: e = y.GREY_DARK_5,
|
|
2307
2307
|
height: t = 20,
|
|
@@ -2330,7 +2330,7 @@ const Xe = ({
|
|
|
2330
2330
|
)
|
|
2331
2331
|
]
|
|
2332
2332
|
}
|
|
2333
|
-
),
|
|
2333
|
+
), t2 = ({
|
|
2334
2334
|
className: i,
|
|
2335
2335
|
color: e = "#001E52",
|
|
2336
2336
|
height: t = 24,
|
|
@@ -2356,7 +2356,7 @@ const Xe = ({
|
|
|
2356
2356
|
}
|
|
2357
2357
|
)
|
|
2358
2358
|
}
|
|
2359
|
-
),
|
|
2359
|
+
), i2 = ({
|
|
2360
2360
|
className: i,
|
|
2361
2361
|
color: e = "#131314",
|
|
2362
2362
|
height: t = 20,
|
|
@@ -2384,7 +2384,7 @@ const Xe = ({
|
|
|
2384
2384
|
}
|
|
2385
2385
|
)
|
|
2386
2386
|
}
|
|
2387
|
-
),
|
|
2387
|
+
), s2 = ({
|
|
2388
2388
|
className: i,
|
|
2389
2389
|
color: e = "#001E52",
|
|
2390
2390
|
height: t = 24,
|
|
@@ -2422,7 +2422,7 @@ const Xe = ({
|
|
|
2422
2422
|
)
|
|
2423
2423
|
] }) })
|
|
2424
2424
|
}
|
|
2425
|
-
),
|
|
2425
|
+
), n2 = ({
|
|
2426
2426
|
width: i = 20,
|
|
2427
2427
|
height: e = 20,
|
|
2428
2428
|
color: t = "#001E52",
|
|
@@ -2478,7 +2478,7 @@ const Xe = ({
|
|
|
2478
2478
|
}
|
|
2479
2479
|
)
|
|
2480
2480
|
}
|
|
2481
|
-
),
|
|
2481
|
+
), r2 = ({
|
|
2482
2482
|
width: i = 24,
|
|
2483
2483
|
height: e = 24,
|
|
2484
2484
|
color: t = "#131314",
|
|
@@ -2511,7 +2511,7 @@ const Xe = ({
|
|
|
2511
2511
|
)
|
|
2512
2512
|
]
|
|
2513
2513
|
}
|
|
2514
|
-
),
|
|
2514
|
+
), o2 = ({
|
|
2515
2515
|
width: i = 24,
|
|
2516
2516
|
height: e = 24,
|
|
2517
2517
|
color: t = y.GREY_DARK_2,
|
|
@@ -2550,7 +2550,7 @@ const Xe = ({
|
|
|
2550
2550
|
)
|
|
2551
2551
|
]
|
|
2552
2552
|
}
|
|
2553
|
-
),
|
|
2553
|
+
), a2 = ({
|
|
2554
2554
|
width: i = 24,
|
|
2555
2555
|
height: e = 24,
|
|
2556
2556
|
color: t = y.GREY_DARK_2,
|
|
@@ -2577,7 +2577,7 @@ const Xe = ({
|
|
|
2577
2577
|
}
|
|
2578
2578
|
)
|
|
2579
2579
|
}
|
|
2580
|
-
),
|
|
2580
|
+
), l2 = ({
|
|
2581
2581
|
width: i = 24,
|
|
2582
2582
|
height: e = 24,
|
|
2583
2583
|
color: t = y.GREY_DARK_2,
|
|
@@ -2617,7 +2617,7 @@ const Xe = ({
|
|
|
2617
2617
|
)
|
|
2618
2618
|
]
|
|
2619
2619
|
}
|
|
2620
|
-
),
|
|
2620
|
+
), h2 = ({
|
|
2621
2621
|
width: i = 24,
|
|
2622
2622
|
height: e = 24,
|
|
2623
2623
|
color: t = y.GREY_DARK_2,
|
|
@@ -2644,7 +2644,7 @@ const Xe = ({
|
|
|
2644
2644
|
}
|
|
2645
2645
|
)
|
|
2646
2646
|
}
|
|
2647
|
-
),
|
|
2647
|
+
), c2 = ({
|
|
2648
2648
|
width: i = 24,
|
|
2649
2649
|
height: e = 24,
|
|
2650
2650
|
color: t = y.GREY_DARK_2,
|
|
@@ -2671,7 +2671,7 @@ const Xe = ({
|
|
|
2671
2671
|
}
|
|
2672
2672
|
)
|
|
2673
2673
|
}
|
|
2674
|
-
),
|
|
2674
|
+
), d2 = ({
|
|
2675
2675
|
width: i = 20,
|
|
2676
2676
|
height: e = 20,
|
|
2677
2677
|
color: t = "#001E52",
|
|
@@ -2703,264 +2703,249 @@ const Xe = ({
|
|
|
2703
2703
|
height: t,
|
|
2704
2704
|
color: s,
|
|
2705
2705
|
className: n,
|
|
2706
|
-
disabled:
|
|
2706
|
+
disabled: o = !1,
|
|
2707
2707
|
onClick: c
|
|
2708
2708
|
}) => {
|
|
2709
|
-
const [
|
|
2710
|
-
return
|
|
2709
|
+
const [a, d] = B(n), { theme: g } = r1(ce), l = o ? g && g === "dark" ? y.GREY_LIGHT_4 : y.GREY_DARK_1 : s, h = o ? void 0 : c;
|
|
2710
|
+
return G(() => {
|
|
2711
2711
|
if (n) {
|
|
2712
|
-
h && !
|
|
2712
|
+
h && !o && d(`${n} clickable`);
|
|
2713
2713
|
return;
|
|
2714
2714
|
}
|
|
2715
|
-
h && !
|
|
2716
|
-
}, [h, n,
|
|
2715
|
+
h && !o && d("clickable");
|
|
2716
|
+
}, [h, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
2717
2717
|
switch (i) {
|
|
2718
2718
|
case "nextIcon":
|
|
2719
|
-
return
|
|
2719
|
+
return Ot({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2720
2720
|
case "prevIcon":
|
|
2721
|
-
return
|
|
2721
|
+
return St({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2722
2722
|
case "arrowDown":
|
|
2723
|
-
return
|
|
2723
|
+
return qe({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2724
2724
|
case "info":
|
|
2725
|
-
return
|
|
2725
|
+
return Xe({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2726
2726
|
case "arrowRight":
|
|
2727
|
-
return
|
|
2727
|
+
return et({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2728
2728
|
case "calendar":
|
|
2729
|
-
return
|
|
2729
|
+
return tt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2730
2730
|
case "ok":
|
|
2731
|
-
return
|
|
2731
|
+
return it({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2732
2732
|
case "cancel":
|
|
2733
|
-
return
|
|
2733
|
+
return st({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2734
2734
|
case "add":
|
|
2735
|
-
return
|
|
2735
|
+
return nt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2736
2736
|
case "list":
|
|
2737
|
-
return
|
|
2737
|
+
return rt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2738
2738
|
case "dragAndDrop":
|
|
2739
|
-
return
|
|
2739
|
+
return ot({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2740
2740
|
case "filter":
|
|
2741
|
-
return
|
|
2741
|
+
return at({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2742
2742
|
case "attention":
|
|
2743
|
-
return
|
|
2743
|
+
return lt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2744
2744
|
case "users":
|
|
2745
|
-
return
|
|
2745
|
+
return ht({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2746
2746
|
case "mySkillsMatrix":
|
|
2747
|
-
return
|
|
2747
|
+
return ct({
|
|
2748
2748
|
width: e,
|
|
2749
2749
|
height: t,
|
|
2750
2750
|
color: l,
|
|
2751
|
-
className:
|
|
2751
|
+
className: a,
|
|
2752
2752
|
onClick: h
|
|
2753
2753
|
});
|
|
2754
2754
|
case "skills":
|
|
2755
|
-
return
|
|
2755
|
+
return dt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2756
2756
|
case "skillsMatrices":
|
|
2757
|
-
return
|
|
2757
|
+
return gt({
|
|
2758
2758
|
width: e,
|
|
2759
2759
|
height: t,
|
|
2760
2760
|
color: l,
|
|
2761
|
-
className:
|
|
2761
|
+
className: a,
|
|
2762
2762
|
onClick: h
|
|
2763
2763
|
});
|
|
2764
2764
|
case "history":
|
|
2765
|
-
return
|
|
2765
|
+
return ut({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2766
2766
|
case "logOut":
|
|
2767
|
-
return
|
|
2767
|
+
return Ct({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2768
2768
|
case "settings":
|
|
2769
|
-
return
|
|
2769
|
+
return pt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2770
2770
|
case "trash":
|
|
2771
|
-
return
|
|
2771
|
+
return ft({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2772
2772
|
case "settings4":
|
|
2773
|
-
return
|
|
2773
|
+
return mt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2774
2774
|
case "success":
|
|
2775
|
-
return
|
|
2775
|
+
return wt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2776
2776
|
case "checkCircle":
|
|
2777
|
-
return
|
|
2777
|
+
return kt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2778
2778
|
case "errorSmall":
|
|
2779
|
-
return
|
|
2779
|
+
return Lt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2780
2780
|
case "infoMedium":
|
|
2781
|
-
return
|
|
2781
|
+
return vt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2782
2782
|
case "attentionMedium":
|
|
2783
|
-
return
|
|
2783
|
+
return Nt({
|
|
2784
2784
|
width: e,
|
|
2785
2785
|
height: t,
|
|
2786
2786
|
color: l,
|
|
2787
|
-
className:
|
|
2787
|
+
className: a,
|
|
2788
2788
|
onClick: h
|
|
2789
2789
|
});
|
|
2790
2790
|
case "errorMedium":
|
|
2791
|
-
return
|
|
2791
|
+
return xt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2792
2792
|
case "visibilityIcon":
|
|
2793
|
-
return
|
|
2793
|
+
return Rt({
|
|
2794
2794
|
width: e,
|
|
2795
2795
|
height: t,
|
|
2796
2796
|
color: l,
|
|
2797
|
-
className:
|
|
2797
|
+
className: a,
|
|
2798
2798
|
onClick: h
|
|
2799
2799
|
});
|
|
2800
2800
|
case "visibilityOffIcon":
|
|
2801
|
-
return
|
|
2801
|
+
return Mt({
|
|
2802
2802
|
width: e,
|
|
2803
2803
|
height: t,
|
|
2804
2804
|
color: l,
|
|
2805
|
-
className:
|
|
2805
|
+
className: a,
|
|
2806
2806
|
onClick: h
|
|
2807
2807
|
});
|
|
2808
2808
|
case "selectArrowIcon":
|
|
2809
|
-
return
|
|
2809
|
+
return bt({
|
|
2810
2810
|
width: e,
|
|
2811
2811
|
height: t,
|
|
2812
2812
|
color: l,
|
|
2813
|
-
className:
|
|
2813
|
+
className: a,
|
|
2814
2814
|
onClick: h
|
|
2815
2815
|
});
|
|
2816
2816
|
case "expandArrowIcon":
|
|
2817
|
-
return
|
|
2817
|
+
return yt({
|
|
2818
2818
|
width: e,
|
|
2819
2819
|
height: t,
|
|
2820
2820
|
color: l,
|
|
2821
|
-
className:
|
|
2821
|
+
className: a,
|
|
2822
2822
|
onClick: h
|
|
2823
2823
|
});
|
|
2824
2824
|
case "expandActiveArrowIcon":
|
|
2825
|
-
return
|
|
2825
|
+
return Et({
|
|
2826
2826
|
width: e,
|
|
2827
2827
|
height: t,
|
|
2828
2828
|
color: l,
|
|
2829
|
-
className:
|
|
2829
|
+
className: a,
|
|
2830
2830
|
onClick: h
|
|
2831
2831
|
});
|
|
2832
2832
|
case "sortUp":
|
|
2833
|
-
return
|
|
2833
|
+
return _t({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2834
2834
|
case "sortDown":
|
|
2835
|
-
return
|
|
2835
|
+
return Ht({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2836
2836
|
case "search":
|
|
2837
|
-
return
|
|
2837
|
+
return It({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2838
2838
|
case "arrowUpFilled":
|
|
2839
|
-
return
|
|
2839
|
+
return At({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2840
2840
|
case "arrowDownFilled":
|
|
2841
|
-
return
|
|
2841
|
+
return Vt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2842
2842
|
case "link":
|
|
2843
|
-
return
|
|
2843
|
+
return Tt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2844
2844
|
case "telegram":
|
|
2845
|
-
return
|
|
2845
|
+
return Dt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2846
2846
|
case "mail":
|
|
2847
|
-
return
|
|
2847
|
+
return jt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2848
2848
|
case "github":
|
|
2849
|
-
return
|
|
2849
|
+
return Zt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2850
2850
|
case "linkedIn":
|
|
2851
|
-
return
|
|
2851
|
+
return Bt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2852
2852
|
case "emptyStateIcon":
|
|
2853
|
-
return
|
|
2853
|
+
return Wt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2854
2854
|
case "filtersIcon":
|
|
2855
|
-
return
|
|
2855
|
+
return Gt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2856
2856
|
case "dotMenuIcon":
|
|
2857
|
-
return
|
|
2857
|
+
return Kt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2858
2858
|
case "plusCircle":
|
|
2859
|
-
return
|
|
2859
|
+
return $t({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2860
2860
|
case "warning":
|
|
2861
|
-
return
|
|
2861
|
+
return Pt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2862
2862
|
case "back":
|
|
2863
|
-
return
|
|
2863
|
+
return Ft({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2864
2864
|
case "bell":
|
|
2865
|
-
return
|
|
2865
|
+
return Yt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2866
2866
|
case "contract":
|
|
2867
|
-
return
|
|
2867
|
+
return zt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2868
2868
|
case "trash2":
|
|
2869
|
-
return
|
|
2869
|
+
return Ut({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2870
2870
|
case "resourceManager":
|
|
2871
|
-
return
|
|
2871
|
+
return Jt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2872
2872
|
case "settings2":
|
|
2873
|
-
return Qt({ width: e, height: t, color: l, className:
|
|
2873
|
+
return Qt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2874
2874
|
case "image":
|
|
2875
|
-
return
|
|
2875
|
+
return qt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2876
2876
|
case "edit":
|
|
2877
|
-
return
|
|
2877
|
+
return Xt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2878
2878
|
case "filledArrowRight":
|
|
2879
|
-
return
|
|
2879
|
+
return e2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2880
2880
|
case "burgerMenu":
|
|
2881
|
-
return
|
|
2881
|
+
return t2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2882
2882
|
case "signOut":
|
|
2883
|
-
return
|
|
2883
|
+
return i2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2884
2884
|
case "refresh":
|
|
2885
|
-
return
|
|
2885
|
+
return s2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2886
2886
|
case "projects":
|
|
2887
|
-
return
|
|
2887
|
+
return n2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2888
2888
|
case "profile":
|
|
2889
|
-
return
|
|
2889
|
+
return d2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2890
2890
|
case "exit":
|
|
2891
|
-
return
|
|
2891
|
+
return r2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2892
2892
|
case "client":
|
|
2893
|
-
return
|
|
2893
|
+
return o2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2894
2894
|
case "calendar2":
|
|
2895
|
-
return
|
|
2895
|
+
return a2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2896
2896
|
case "openPointCircle":
|
|
2897
|
-
return
|
|
2897
|
+
return l2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2898
2898
|
case "community":
|
|
2899
|
-
return
|
|
2899
|
+
return h2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2900
2900
|
case "docs":
|
|
2901
|
-
return
|
|
2901
|
+
return c2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2902
2902
|
default:
|
|
2903
2903
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
2904
2904
|
}
|
|
2905
2905
|
})() });
|
|
2906
|
-
},
|
|
2907
|
-
ae,
|
|
2908
|
-
{
|
|
2909
|
-
overlayClassName: "snmt-tooltip",
|
|
2910
|
-
title: e,
|
|
2911
|
-
arrow: t,
|
|
2912
|
-
open: s,
|
|
2913
|
-
placement: n,
|
|
2914
|
-
children: i
|
|
2915
|
-
}
|
|
2916
|
-
), { Title: C2, Text: p2 } = le, f2 = {
|
|
2906
|
+
}, { Title: g2, Text: u2 } = ae, C2 = {
|
|
2917
2907
|
h1: 1,
|
|
2918
2908
|
h2: 2,
|
|
2919
2909
|
h3: 3,
|
|
2920
2910
|
h4: 4
|
|
2921
|
-
},
|
|
2911
|
+
}, p2 = k1(
|
|
2922
2912
|
({
|
|
2923
2913
|
align: i = "inherit",
|
|
2924
2914
|
variant: e = "body1",
|
|
2925
2915
|
color: t,
|
|
2926
2916
|
children: s,
|
|
2927
2917
|
onClick: n,
|
|
2928
|
-
collapsed:
|
|
2918
|
+
collapsed: o,
|
|
2929
2919
|
whiteSpace: c = "normal",
|
|
2930
2920
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2931
|
-
trim:
|
|
2921
|
+
trim: a = !1
|
|
2932
2922
|
}, d) => {
|
|
2933
|
-
const g =
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
g.current && h(g.current.scrollWidth > g.current.clientWidth);
|
|
2940
|
-
}, _ = new ResizeObserver(m);
|
|
2941
|
-
return g.current && _.observe(g.current), () => {
|
|
2942
|
-
_.disconnect();
|
|
2943
|
-
};
|
|
2944
|
-
}, [o, l]);
|
|
2945
|
-
const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
2946
|
-
let p = `snmt-typography snmt-typography-${e}`;
|
|
2947
|
-
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), a && (p += " collapsed"), o && (p += " collapsed");
|
|
2948
|
-
const w = {
|
|
2949
|
-
className: p,
|
|
2950
|
-
style: { color: t, whiteSpace: o ? "nowrap" : c, display: o ? "block" : "" },
|
|
2923
|
+
const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
2924
|
+
let l = `snmt-typography snmt-typography-${e}`;
|
|
2925
|
+
i && i !== "inherit" && (l += ` snmt-typography-align-${i}`), o && (l += " collapsed");
|
|
2926
|
+
const h = {
|
|
2927
|
+
className: l,
|
|
2928
|
+
style: { color: t, whiteSpace: a ? "nowrap" : c, display: a ? "block" : "" },
|
|
2951
2929
|
onClick: n,
|
|
2952
|
-
ref:
|
|
2953
|
-
|
|
2954
|
-
|
|
2930
|
+
ref: d,
|
|
2931
|
+
ellipsis: a ? {
|
|
2932
|
+
tooltip: {
|
|
2933
|
+
title: s,
|
|
2934
|
+
arrow: !0,
|
|
2935
|
+
overlayClassName: "snmt-tooltip"
|
|
2936
|
+
}
|
|
2937
|
+
} : void 0
|
|
2938
|
+
};
|
|
2939
|
+
return g ? /* @__PURE__ */ r(g2, { level: C2[e], ...h, children: s }) : /* @__PURE__ */ r(u2, { ...h, children: s });
|
|
2955
2940
|
}
|
|
2956
2941
|
);
|
|
2957
2942
|
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 || {});
|
|
2958
|
-
const
|
|
2943
|
+
const de = d1({
|
|
2959
2944
|
locale: "en",
|
|
2960
2945
|
theme: "light"
|
|
2961
2946
|
});
|
|
2962
|
-
|
|
2963
|
-
const
|
|
2947
|
+
de.Provider;
|
|
2948
|
+
const f2 = ({
|
|
2964
2949
|
width: i = 20,
|
|
2965
2950
|
height: e = 20,
|
|
2966
2951
|
color: t = "#001E52",
|
|
@@ -2987,7 +2972,7 @@ const w2 = ({
|
|
|
2987
2972
|
}
|
|
2988
2973
|
)
|
|
2989
2974
|
}
|
|
2990
|
-
),
|
|
2975
|
+
), m2 = ({
|
|
2991
2976
|
width: i = 20,
|
|
2992
2977
|
height: e = 20,
|
|
2993
2978
|
color: t = E.GREY_DARK_5,
|
|
@@ -3027,7 +3012,7 @@ const w2 = ({
|
|
|
3027
3012
|
)
|
|
3028
3013
|
]
|
|
3029
3014
|
}
|
|
3030
|
-
),
|
|
3015
|
+
), w2 = ({
|
|
3031
3016
|
width: i = 20,
|
|
3032
3017
|
height: e = 20,
|
|
3033
3018
|
color: t = "#001E52",
|
|
@@ -3062,7 +3047,7 @@ const w2 = ({
|
|
|
3062
3047
|
)
|
|
3063
3048
|
]
|
|
3064
3049
|
}
|
|
3065
|
-
),
|
|
3050
|
+
), k2 = ({
|
|
3066
3051
|
width: i = 18,
|
|
3067
3052
|
height: e = 18,
|
|
3068
3053
|
color: t = "#001E52",
|
|
@@ -3101,7 +3086,7 @@ const w2 = ({
|
|
|
3101
3086
|
)
|
|
3102
3087
|
]
|
|
3103
3088
|
}
|
|
3104
|
-
),
|
|
3089
|
+
), L2 = ({
|
|
3105
3090
|
width: i = 20,
|
|
3106
3091
|
height: e = 20,
|
|
3107
3092
|
color: t = "#001E52",
|
|
@@ -3127,7 +3112,7 @@ const w2 = ({
|
|
|
3127
3112
|
}
|
|
3128
3113
|
)
|
|
3129
3114
|
}
|
|
3130
|
-
),
|
|
3115
|
+
), v2 = ({
|
|
3131
3116
|
width: i = 20,
|
|
3132
3117
|
height: e = 20,
|
|
3133
3118
|
color: t = "#001E52",
|
|
@@ -3148,7 +3133,7 @@ const w2 = ({
|
|
|
3148
3133
|
/* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
|
3149
3134
|
]
|
|
3150
3135
|
}
|
|
3151
|
-
),
|
|
3136
|
+
), N2 = ({
|
|
3152
3137
|
width: i = 20,
|
|
3153
3138
|
height: e = 20,
|
|
3154
3139
|
color: t = "#001E52",
|
|
@@ -3180,7 +3165,7 @@ const w2 = ({
|
|
|
3180
3165
|
)
|
|
3181
3166
|
]
|
|
3182
3167
|
}
|
|
3183
|
-
),
|
|
3168
|
+
), x2 = ({
|
|
3184
3169
|
width: i = 20,
|
|
3185
3170
|
height: e = 20,
|
|
3186
3171
|
color: t = "#001E52",
|
|
@@ -3234,7 +3219,7 @@ const w2 = ({
|
|
|
3234
3219
|
)
|
|
3235
3220
|
]
|
|
3236
3221
|
}
|
|
3237
|
-
),
|
|
3222
|
+
), R2 = ({
|
|
3238
3223
|
width: i = 20,
|
|
3239
3224
|
height: e = 20,
|
|
3240
3225
|
color: t = "#001E52",
|
|
@@ -3273,7 +3258,7 @@ const w2 = ({
|
|
|
3273
3258
|
/* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
|
3274
3259
|
]
|
|
3275
3260
|
}
|
|
3276
|
-
),
|
|
3261
|
+
), M2 = ({
|
|
3277
3262
|
width: i = 16,
|
|
3278
3263
|
height: e = 12,
|
|
3279
3264
|
color: t = "#001E52",
|
|
@@ -3322,7 +3307,7 @@ const w2 = ({
|
|
|
3322
3307
|
)
|
|
3323
3308
|
] })
|
|
3324
3309
|
}
|
|
3325
|
-
),
|
|
3310
|
+
), b2 = ({
|
|
3326
3311
|
width: i = 20,
|
|
3327
3312
|
height: e = 20,
|
|
3328
3313
|
color: t = E.GREY_DARK_5,
|
|
@@ -3362,7 +3347,7 @@ const w2 = ({
|
|
|
3362
3347
|
)
|
|
3363
3348
|
]
|
|
3364
3349
|
}
|
|
3365
|
-
),
|
|
3350
|
+
), y2 = ({
|
|
3366
3351
|
width: i = 20,
|
|
3367
3352
|
height: e = 20,
|
|
3368
3353
|
color: t = "#001E52",
|
|
@@ -3409,7 +3394,7 @@ const w2 = ({
|
|
|
3409
3394
|
)
|
|
3410
3395
|
]
|
|
3411
3396
|
}
|
|
3412
|
-
),
|
|
3397
|
+
), E2 = ({
|
|
3413
3398
|
width: i = 20,
|
|
3414
3399
|
height: e = 20,
|
|
3415
3400
|
color: t = "#001E52",
|
|
@@ -3442,7 +3427,7 @@ const w2 = ({
|
|
|
3442
3427
|
)
|
|
3443
3428
|
]
|
|
3444
3429
|
}
|
|
3445
|
-
),
|
|
3430
|
+
), _2 = ({
|
|
3446
3431
|
width: i = 20,
|
|
3447
3432
|
height: e = 20,
|
|
3448
3433
|
color: t = "#001E52",
|
|
@@ -3489,7 +3474,7 @@ const w2 = ({
|
|
|
3489
3474
|
)
|
|
3490
3475
|
]
|
|
3491
3476
|
}
|
|
3492
|
-
),
|
|
3477
|
+
), H2 = ({
|
|
3493
3478
|
width: i = 20,
|
|
3494
3479
|
height: e = 20,
|
|
3495
3480
|
color: t = "#001E52",
|
|
@@ -3522,7 +3507,7 @@ const w2 = ({
|
|
|
3522
3507
|
)
|
|
3523
3508
|
]
|
|
3524
3509
|
}
|
|
3525
|
-
),
|
|
3510
|
+
), I2 = ({
|
|
3526
3511
|
width: i = 18,
|
|
3527
3512
|
height: e = 16,
|
|
3528
3513
|
color: t = "#001E52",
|
|
@@ -3561,7 +3546,7 @@ const w2 = ({
|
|
|
3561
3546
|
)
|
|
3562
3547
|
]
|
|
3563
3548
|
}
|
|
3564
|
-
),
|
|
3549
|
+
), O2 = ({
|
|
3565
3550
|
width: i = 20,
|
|
3566
3551
|
height: e = 20,
|
|
3567
3552
|
color: t = "#001E52",
|
|
@@ -3594,7 +3579,7 @@ const w2 = ({
|
|
|
3594
3579
|
)
|
|
3595
3580
|
]
|
|
3596
3581
|
}
|
|
3597
|
-
),
|
|
3582
|
+
), S2 = ({
|
|
3598
3583
|
width: i = 20,
|
|
3599
3584
|
height: e = 20,
|
|
3600
3585
|
color: t = "#001E52",
|
|
@@ -3618,7 +3603,7 @@ const w2 = ({
|
|
|
3618
3603
|
}
|
|
3619
3604
|
)
|
|
3620
3605
|
}
|
|
3621
|
-
),
|
|
3606
|
+
), V2 = ({
|
|
3622
3607
|
width: i = 20,
|
|
3623
3608
|
height: e = 20,
|
|
3624
3609
|
color: t = "#001E52",
|
|
@@ -3651,7 +3636,7 @@ const w2 = ({
|
|
|
3651
3636
|
)
|
|
3652
3637
|
]
|
|
3653
3638
|
}
|
|
3654
|
-
),
|
|
3639
|
+
), A2 = ({
|
|
3655
3640
|
width: i = 20,
|
|
3656
3641
|
height: e = 23,
|
|
3657
3642
|
color: t = "#001E52",
|
|
@@ -3712,7 +3697,7 @@ const w2 = ({
|
|
|
3712
3697
|
)
|
|
3713
3698
|
]
|
|
3714
3699
|
}
|
|
3715
|
-
),
|
|
3700
|
+
), T2 = ({
|
|
3716
3701
|
width: i = 14,
|
|
3717
3702
|
height: e = 14,
|
|
3718
3703
|
color: t = "#10B981",
|
|
@@ -3741,7 +3726,7 @@ const w2 = ({
|
|
|
3741
3726
|
)
|
|
3742
3727
|
]
|
|
3743
3728
|
}
|
|
3744
|
-
),
|
|
3729
|
+
), Z2 = ({
|
|
3745
3730
|
width: i = 20,
|
|
3746
3731
|
height: e = 20,
|
|
3747
3732
|
color: t = E.GREY_DARK_5,
|
|
@@ -3774,7 +3759,7 @@ const w2 = ({
|
|
|
3774
3759
|
)
|
|
3775
3760
|
]
|
|
3776
3761
|
}
|
|
3777
|
-
),
|
|
3762
|
+
), D2 = ({
|
|
3778
3763
|
width: i = 10,
|
|
3779
3764
|
height: e = 10,
|
|
3780
3765
|
color: t = "#88A4FF",
|
|
@@ -3822,7 +3807,7 @@ const w2 = ({
|
|
|
3822
3807
|
)
|
|
3823
3808
|
]
|
|
3824
3809
|
}
|
|
3825
|
-
),
|
|
3810
|
+
), B2 = ({
|
|
3826
3811
|
width: i = 14,
|
|
3827
3812
|
height: e = 14,
|
|
3828
3813
|
color: t = "#8E8E93",
|
|
@@ -3850,7 +3835,7 @@ const w2 = ({
|
|
|
3850
3835
|
)
|
|
3851
3836
|
]
|
|
3852
3837
|
}
|
|
3853
|
-
),
|
|
3838
|
+
), j2 = ({
|
|
3854
3839
|
width: i = 14,
|
|
3855
3840
|
height: e = 14,
|
|
3856
3841
|
color: t = "#FFB020",
|
|
@@ -3884,7 +3869,7 @@ const w2 = ({
|
|
|
3884
3869
|
)
|
|
3885
3870
|
]
|
|
3886
3871
|
}
|
|
3887
|
-
),
|
|
3872
|
+
), W2 = ({
|
|
3888
3873
|
width: i = 14,
|
|
3889
3874
|
height: e = 14,
|
|
3890
3875
|
color: t = "#D0421B",
|
|
@@ -3932,7 +3917,7 @@ const w2 = ({
|
|
|
3932
3917
|
)
|
|
3933
3918
|
]
|
|
3934
3919
|
}
|
|
3935
|
-
),
|
|
3920
|
+
), G2 = ({
|
|
3936
3921
|
width: i = 20,
|
|
3937
3922
|
height: e = 20,
|
|
3938
3923
|
color: t = "#070739",
|
|
@@ -3962,7 +3947,7 @@ const w2 = ({
|
|
|
3962
3947
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
3963
3948
|
]
|
|
3964
3949
|
}
|
|
3965
|
-
),
|
|
3950
|
+
), K2 = ({
|
|
3966
3951
|
width: i = 20,
|
|
3967
3952
|
height: e = 20,
|
|
3968
3953
|
color: t = "#070739",
|
|
@@ -4000,7 +3985,7 @@ const w2 = ({
|
|
|
4000
3985
|
)
|
|
4001
3986
|
]
|
|
4002
3987
|
}
|
|
4003
|
-
),
|
|
3988
|
+
), $2 = ({
|
|
4004
3989
|
width: i = 9,
|
|
4005
3990
|
height: e = 5,
|
|
4006
3991
|
color: t = "#001E52",
|
|
@@ -4026,7 +4011,7 @@ const w2 = ({
|
|
|
4026
4011
|
}
|
|
4027
4012
|
)
|
|
4028
4013
|
}
|
|
4029
|
-
),
|
|
4014
|
+
), P2 = ({
|
|
4030
4015
|
width: i = 20,
|
|
4031
4016
|
height: e = 20,
|
|
4032
4017
|
color: t = "#F2F2F7",
|
|
@@ -4055,7 +4040,7 @@ const w2 = ({
|
|
|
4055
4040
|
)
|
|
4056
4041
|
]
|
|
4057
4042
|
}
|
|
4058
|
-
),
|
|
4043
|
+
), F2 = ({
|
|
4059
4044
|
width: i = 20,
|
|
4060
4045
|
height: e = 20,
|
|
4061
4046
|
color: t = "#004ED7",
|
|
@@ -4084,7 +4069,7 @@ const w2 = ({
|
|
|
4084
4069
|
)
|
|
4085
4070
|
]
|
|
4086
4071
|
}
|
|
4087
|
-
),
|
|
4072
|
+
), Y2 = ({
|
|
4088
4073
|
width: i = 10,
|
|
4089
4074
|
height: e = 10,
|
|
4090
4075
|
color: t = "#001E52",
|
|
@@ -4113,7 +4098,7 @@ const w2 = ({
|
|
|
4113
4098
|
)
|
|
4114
4099
|
]
|
|
4115
4100
|
}
|
|
4116
|
-
),
|
|
4101
|
+
), U2 = ({
|
|
4117
4102
|
width: i = 10,
|
|
4118
4103
|
height: e = 10,
|
|
4119
4104
|
color: t = "#001E52",
|
|
@@ -4150,7 +4135,7 @@ const w2 = ({
|
|
|
4150
4135
|
)
|
|
4151
4136
|
]
|
|
4152
4137
|
}
|
|
4153
|
-
),
|
|
4138
|
+
), z2 = ({
|
|
4154
4139
|
className: i,
|
|
4155
4140
|
color: e = E.GREY_DARK_5,
|
|
4156
4141
|
height: t = 24,
|
|
@@ -4189,7 +4174,7 @@ const w2 = ({
|
|
|
4189
4174
|
)
|
|
4190
4175
|
]
|
|
4191
4176
|
}
|
|
4192
|
-
),
|
|
4177
|
+
), J2 = ({
|
|
4193
4178
|
className: i,
|
|
4194
4179
|
color: e = E.GREY_DARK_5,
|
|
4195
4180
|
height: t = 20,
|
|
@@ -4216,7 +4201,7 @@ const w2 = ({
|
|
|
4216
4201
|
}
|
|
4217
4202
|
)
|
|
4218
4203
|
}
|
|
4219
|
-
),
|
|
4204
|
+
), Q2 = ({
|
|
4220
4205
|
className: i,
|
|
4221
4206
|
color: e = E.GREY_DARK_5,
|
|
4222
4207
|
height: t = 20,
|
|
@@ -4243,7 +4228,7 @@ const w2 = ({
|
|
|
4243
4228
|
}
|
|
4244
4229
|
)
|
|
4245
4230
|
}
|
|
4246
|
-
),
|
|
4231
|
+
), q2 = ({
|
|
4247
4232
|
className: i,
|
|
4248
4233
|
color: e = E.GREY_DARK_5,
|
|
4249
4234
|
height: t = 5,
|
|
@@ -4267,7 +4252,7 @@ const w2 = ({
|
|
|
4267
4252
|
}
|
|
4268
4253
|
)
|
|
4269
4254
|
}
|
|
4270
|
-
),
|
|
4255
|
+
), X2 = ({
|
|
4271
4256
|
className: i,
|
|
4272
4257
|
color: e = E.GREY_DARK_5,
|
|
4273
4258
|
height: t = 5,
|
|
@@ -4292,7 +4277,7 @@ const w2 = ({
|
|
|
4292
4277
|
}
|
|
4293
4278
|
)
|
|
4294
4279
|
}
|
|
4295
|
-
),
|
|
4280
|
+
), e5 = ({
|
|
4296
4281
|
className: i,
|
|
4297
4282
|
color: e = E.GREY_DARK_5,
|
|
4298
4283
|
height: t = 24,
|
|
@@ -4331,7 +4316,7 @@ const w2 = ({
|
|
|
4331
4316
|
)
|
|
4332
4317
|
]
|
|
4333
4318
|
}
|
|
4334
|
-
),
|
|
4319
|
+
), t5 = ({
|
|
4335
4320
|
className: i,
|
|
4336
4321
|
color: e = E.GREY_DARK_5,
|
|
4337
4322
|
height: t = 24,
|
|
@@ -4370,7 +4355,7 @@ const w2 = ({
|
|
|
4370
4355
|
)
|
|
4371
4356
|
]
|
|
4372
4357
|
}
|
|
4373
|
-
),
|
|
4358
|
+
), i5 = ({
|
|
4374
4359
|
className: i,
|
|
4375
4360
|
color: e = E.GREY_DARK_5,
|
|
4376
4361
|
height: t = 24,
|
|
@@ -4397,7 +4382,7 @@ const w2 = ({
|
|
|
4397
4382
|
}
|
|
4398
4383
|
)
|
|
4399
4384
|
}
|
|
4400
|
-
),
|
|
4385
|
+
), s5 = ({
|
|
4401
4386
|
className: i,
|
|
4402
4387
|
color: e = E.GREY_DARK_5,
|
|
4403
4388
|
height: t = 24,
|
|
@@ -4456,7 +4441,7 @@ const w2 = ({
|
|
|
4456
4441
|
)
|
|
4457
4442
|
]
|
|
4458
4443
|
}
|
|
4459
|
-
),
|
|
4444
|
+
), n5 = ({
|
|
4460
4445
|
className: i,
|
|
4461
4446
|
color: e = E.GREY_DARK_5,
|
|
4462
4447
|
height: t = 24,
|
|
@@ -4493,7 +4478,7 @@ const w2 = ({
|
|
|
4493
4478
|
)
|
|
4494
4479
|
]
|
|
4495
4480
|
}
|
|
4496
|
-
),
|
|
4481
|
+
), r5 = ({
|
|
4497
4482
|
className: i,
|
|
4498
4483
|
color: e = E.GREY_DARK_3,
|
|
4499
4484
|
height: t = 14,
|
|
@@ -4530,7 +4515,7 @@ const w2 = ({
|
|
|
4530
4515
|
)
|
|
4531
4516
|
]
|
|
4532
4517
|
}
|
|
4533
|
-
),
|
|
4518
|
+
), o5 = ({
|
|
4534
4519
|
className: i,
|
|
4535
4520
|
color: e = E.GREY_DARK_5,
|
|
4536
4521
|
height: t = 18,
|
|
@@ -4557,7 +4542,7 @@ const w2 = ({
|
|
|
4557
4542
|
}
|
|
4558
4543
|
)
|
|
4559
4544
|
}
|
|
4560
|
-
),
|
|
4545
|
+
), a5 = ({
|
|
4561
4546
|
className: i,
|
|
4562
4547
|
color: e = E.GREY_DARK_5,
|
|
4563
4548
|
height: t = 24,
|
|
@@ -4609,7 +4594,7 @@ const w2 = ({
|
|
|
4609
4594
|
)
|
|
4610
4595
|
]
|
|
4611
4596
|
}
|
|
4612
|
-
),
|
|
4597
|
+
), l5 = ({
|
|
4613
4598
|
className: i,
|
|
4614
4599
|
color: e = E.GREY_DARK_5,
|
|
4615
4600
|
height: t = 24,
|
|
@@ -4646,7 +4631,7 @@ const w2 = ({
|
|
|
4646
4631
|
)
|
|
4647
4632
|
]
|
|
4648
4633
|
}
|
|
4649
|
-
),
|
|
4634
|
+
), h5 = ({
|
|
4650
4635
|
className: i,
|
|
4651
4636
|
color: e = E.NOTIFICATION_WARNING_DARK,
|
|
4652
4637
|
height: t = 37,
|
|
@@ -4685,7 +4670,7 @@ const w2 = ({
|
|
|
4685
4670
|
)
|
|
4686
4671
|
]
|
|
4687
4672
|
}
|
|
4688
|
-
),
|
|
4673
|
+
), c5 = ({
|
|
4689
4674
|
className: i,
|
|
4690
4675
|
color: e = E.GREY_DARK_5,
|
|
4691
4676
|
height: t = 24,
|
|
@@ -4711,7 +4696,7 @@ const w2 = ({
|
|
|
4711
4696
|
}
|
|
4712
4697
|
)
|
|
4713
4698
|
}
|
|
4714
|
-
),
|
|
4699
|
+
), d5 = ({
|
|
4715
4700
|
className: i,
|
|
4716
4701
|
color: e = E.GREY_DARK_5,
|
|
4717
4702
|
height: t = 24,
|
|
@@ -4750,7 +4735,7 @@ const w2 = ({
|
|
|
4750
4735
|
)
|
|
4751
4736
|
]
|
|
4752
4737
|
}
|
|
4753
|
-
),
|
|
4738
|
+
), g5 = ({
|
|
4754
4739
|
className: i,
|
|
4755
4740
|
color: e = E.GREY_DARK_5,
|
|
4756
4741
|
height: t = 24,
|
|
@@ -4789,7 +4774,7 @@ const w2 = ({
|
|
|
4789
4774
|
)
|
|
4790
4775
|
]
|
|
4791
4776
|
}
|
|
4792
|
-
),
|
|
4777
|
+
), u5 = ({
|
|
4793
4778
|
className: i,
|
|
4794
4779
|
color: e = E.GREY_DARK_5,
|
|
4795
4780
|
height: t = 24,
|
|
@@ -4858,7 +4843,7 @@ const w2 = ({
|
|
|
4858
4843
|
)
|
|
4859
4844
|
]
|
|
4860
4845
|
}
|
|
4861
|
-
),
|
|
4846
|
+
), C5 = ({
|
|
4862
4847
|
className: i,
|
|
4863
4848
|
color: e = E.GREY_DARK_5,
|
|
4864
4849
|
height: t = 24,
|
|
@@ -4915,7 +4900,7 @@ const w2 = ({
|
|
|
4915
4900
|
)
|
|
4916
4901
|
]
|
|
4917
4902
|
}
|
|
4918
|
-
),
|
|
4903
|
+
), p5 = ({
|
|
4919
4904
|
className: i,
|
|
4920
4905
|
color: e = E.GREY_DARK_5,
|
|
4921
4906
|
height: t = 24,
|
|
@@ -4954,7 +4939,7 @@ const w2 = ({
|
|
|
4954
4939
|
)
|
|
4955
4940
|
]
|
|
4956
4941
|
}
|
|
4957
|
-
),
|
|
4942
|
+
), f5 = ({
|
|
4958
4943
|
className: i,
|
|
4959
4944
|
color: e = E.GREY_DARK_5,
|
|
4960
4945
|
height: t = 24,
|
|
@@ -5003,7 +4988,7 @@ const w2 = ({
|
|
|
5003
4988
|
)
|
|
5004
4989
|
]
|
|
5005
4990
|
}
|
|
5006
|
-
),
|
|
4991
|
+
), m5 = ({
|
|
5007
4992
|
className: i,
|
|
5008
4993
|
color: e = E.GREY_DARK_5,
|
|
5009
4994
|
height: t = 24,
|
|
@@ -5030,7 +5015,7 @@ const w2 = ({
|
|
|
5030
5015
|
}
|
|
5031
5016
|
)
|
|
5032
5017
|
}
|
|
5033
|
-
),
|
|
5018
|
+
), w5 = ({
|
|
5034
5019
|
className: i,
|
|
5035
5020
|
color: e = E.GREY_DARK_5,
|
|
5036
5021
|
height: t = 20,
|
|
@@ -5059,7 +5044,7 @@ const w2 = ({
|
|
|
5059
5044
|
)
|
|
5060
5045
|
]
|
|
5061
5046
|
}
|
|
5062
|
-
),
|
|
5047
|
+
), k5 = ({
|
|
5063
5048
|
className: i,
|
|
5064
5049
|
color: e = "#001E52",
|
|
5065
5050
|
height: t = 24,
|
|
@@ -5085,7 +5070,7 @@ const w2 = ({
|
|
|
5085
5070
|
}
|
|
5086
5071
|
)
|
|
5087
5072
|
}
|
|
5088
|
-
),
|
|
5073
|
+
), L5 = ({
|
|
5089
5074
|
className: i,
|
|
5090
5075
|
color: e = "#131314",
|
|
5091
5076
|
height: t = 20,
|
|
@@ -5113,7 +5098,7 @@ const w2 = ({
|
|
|
5113
5098
|
}
|
|
5114
5099
|
)
|
|
5115
5100
|
}
|
|
5116
|
-
),
|
|
5101
|
+
), v5 = ({
|
|
5117
5102
|
className: i,
|
|
5118
5103
|
color: e = "#001E52",
|
|
5119
5104
|
height: t = 24,
|
|
@@ -5151,7 +5136,7 @@ const w2 = ({
|
|
|
5151
5136
|
)
|
|
5152
5137
|
] }) })
|
|
5153
5138
|
}
|
|
5154
|
-
),
|
|
5139
|
+
), N5 = ({
|
|
5155
5140
|
width: i = 20,
|
|
5156
5141
|
height: e = 20,
|
|
5157
5142
|
color: t = "#001E52",
|
|
@@ -5207,7 +5192,7 @@ const w2 = ({
|
|
|
5207
5192
|
}
|
|
5208
5193
|
)
|
|
5209
5194
|
}
|
|
5210
|
-
),
|
|
5195
|
+
), x5 = ({
|
|
5211
5196
|
width: i = 24,
|
|
5212
5197
|
height: e = 24,
|
|
5213
5198
|
color: t = "#131314",
|
|
@@ -5240,7 +5225,7 @@ const w2 = ({
|
|
|
5240
5225
|
)
|
|
5241
5226
|
]
|
|
5242
5227
|
}
|
|
5243
|
-
),
|
|
5228
|
+
), R5 = ({
|
|
5244
5229
|
width: i = 24,
|
|
5245
5230
|
height: e = 24,
|
|
5246
5231
|
color: t = E.GREY_DARK_2,
|
|
@@ -5279,7 +5264,7 @@ const w2 = ({
|
|
|
5279
5264
|
)
|
|
5280
5265
|
]
|
|
5281
5266
|
}
|
|
5282
|
-
),
|
|
5267
|
+
), M5 = ({
|
|
5283
5268
|
width: i = 24,
|
|
5284
5269
|
height: e = 24,
|
|
5285
5270
|
color: t = E.GREY_DARK_2,
|
|
@@ -5306,7 +5291,7 @@ const w2 = ({
|
|
|
5306
5291
|
}
|
|
5307
5292
|
)
|
|
5308
5293
|
}
|
|
5309
|
-
),
|
|
5294
|
+
), b5 = ({
|
|
5310
5295
|
width: i = 24,
|
|
5311
5296
|
height: e = 24,
|
|
5312
5297
|
color: t = E.GREY_DARK_2,
|
|
@@ -5346,7 +5331,7 @@ const w2 = ({
|
|
|
5346
5331
|
)
|
|
5347
5332
|
]
|
|
5348
5333
|
}
|
|
5349
|
-
),
|
|
5334
|
+
), y5 = ({
|
|
5350
5335
|
width: i = 24,
|
|
5351
5336
|
height: e = 24,
|
|
5352
5337
|
color: t = E.GREY_DARK_2,
|
|
@@ -5373,7 +5358,7 @@ const w2 = ({
|
|
|
5373
5358
|
}
|
|
5374
5359
|
)
|
|
5375
5360
|
}
|
|
5376
|
-
),
|
|
5361
|
+
), E5 = ({
|
|
5377
5362
|
width: i = 24,
|
|
5378
5363
|
height: e = 24,
|
|
5379
5364
|
color: t = E.GREY_DARK_2,
|
|
@@ -5400,7 +5385,7 @@ const w2 = ({
|
|
|
5400
5385
|
}
|
|
5401
5386
|
)
|
|
5402
5387
|
}
|
|
5403
|
-
),
|
|
5388
|
+
), _5 = ({
|
|
5404
5389
|
width: i = 20,
|
|
5405
5390
|
height: e = 20,
|
|
5406
5391
|
color: t = "#001E52",
|
|
@@ -5426,368 +5411,353 @@ const w2 = ({
|
|
|
5426
5411
|
}
|
|
5427
5412
|
)
|
|
5428
5413
|
}
|
|
5429
|
-
),
|
|
5414
|
+
), H5 = ({
|
|
5430
5415
|
name: i,
|
|
5431
5416
|
width: e,
|
|
5432
5417
|
height: t,
|
|
5433
5418
|
color: s,
|
|
5434
5419
|
className: n,
|
|
5435
|
-
disabled:
|
|
5420
|
+
disabled: o = !1,
|
|
5436
5421
|
onClick: c
|
|
5437
5422
|
}) => {
|
|
5438
|
-
const [
|
|
5439
|
-
return
|
|
5423
|
+
const [a, d] = B(n), { theme: g } = r1(de), l = o ? g && g === "dark" ? E.GREY_LIGHT_4 : E.GREY_DARK_1 : s, h = o ? void 0 : c;
|
|
5424
|
+
return G(() => {
|
|
5440
5425
|
if (n) {
|
|
5441
|
-
h && !
|
|
5426
|
+
h && !o && d(`${n} clickable`);
|
|
5442
5427
|
return;
|
|
5443
5428
|
}
|
|
5444
|
-
h && !
|
|
5445
|
-
}, [h, n,
|
|
5429
|
+
h && !o && d("clickable");
|
|
5430
|
+
}, [h, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
5446
5431
|
switch (i) {
|
|
5447
5432
|
case "nextIcon":
|
|
5448
|
-
return
|
|
5433
|
+
return J2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5449
5434
|
case "prevIcon":
|
|
5450
|
-
return
|
|
5435
|
+
return Q2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5451
5436
|
case "arrowDown":
|
|
5452
|
-
return
|
|
5437
|
+
return f2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5453
5438
|
case "info":
|
|
5454
|
-
return
|
|
5439
|
+
return m2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5455
5440
|
case "arrowRight":
|
|
5456
|
-
return
|
|
5441
|
+
return w2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5457
5442
|
case "calendar":
|
|
5458
|
-
return
|
|
5443
|
+
return k2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5459
5444
|
case "ok":
|
|
5460
|
-
return
|
|
5445
|
+
return L2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5461
5446
|
case "cancel":
|
|
5462
|
-
return
|
|
5447
|
+
return v2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5463
5448
|
case "add":
|
|
5464
|
-
return
|
|
5449
|
+
return N2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5465
5450
|
case "list":
|
|
5466
|
-
return
|
|
5451
|
+
return x2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5467
5452
|
case "dragAndDrop":
|
|
5468
|
-
return
|
|
5453
|
+
return R2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5469
5454
|
case "filter":
|
|
5470
|
-
return
|
|
5455
|
+
return M2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5471
5456
|
case "attention":
|
|
5472
|
-
return
|
|
5457
|
+
return b2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5473
5458
|
case "users":
|
|
5474
|
-
return
|
|
5459
|
+
return y2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5475
5460
|
case "mySkillsMatrix":
|
|
5476
|
-
return
|
|
5461
|
+
return E2({
|
|
5477
5462
|
width: e,
|
|
5478
5463
|
height: t,
|
|
5479
5464
|
color: l,
|
|
5480
|
-
className:
|
|
5465
|
+
className: a,
|
|
5481
5466
|
onClick: h
|
|
5482
5467
|
});
|
|
5483
5468
|
case "skills":
|
|
5484
|
-
return
|
|
5469
|
+
return _2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5485
5470
|
case "skillsMatrices":
|
|
5486
|
-
return
|
|
5471
|
+
return H2({
|
|
5487
5472
|
width: e,
|
|
5488
5473
|
height: t,
|
|
5489
5474
|
color: l,
|
|
5490
|
-
className:
|
|
5475
|
+
className: a,
|
|
5491
5476
|
onClick: h
|
|
5492
5477
|
});
|
|
5493
5478
|
case "history":
|
|
5494
|
-
return
|
|
5479
|
+
return I2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5495
5480
|
case "logOut":
|
|
5496
|
-
return
|
|
5481
|
+
return O2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5497
5482
|
case "settings":
|
|
5498
|
-
return
|
|
5483
|
+
return S2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5499
5484
|
case "trash":
|
|
5500
|
-
return
|
|
5485
|
+
return V2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5501
5486
|
case "settings4":
|
|
5502
|
-
return
|
|
5487
|
+
return A2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5503
5488
|
case "success":
|
|
5504
|
-
return
|
|
5489
|
+
return T2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5505
5490
|
case "checkCircle":
|
|
5506
|
-
return
|
|
5491
|
+
return Z2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5507
5492
|
case "errorSmall":
|
|
5508
|
-
return
|
|
5493
|
+
return D2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5509
5494
|
case "infoMedium":
|
|
5510
|
-
return
|
|
5495
|
+
return B2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5511
5496
|
case "attentionMedium":
|
|
5512
|
-
return
|
|
5497
|
+
return j2({
|
|
5513
5498
|
width: e,
|
|
5514
5499
|
height: t,
|
|
5515
5500
|
color: l,
|
|
5516
|
-
className:
|
|
5501
|
+
className: a,
|
|
5517
5502
|
onClick: h
|
|
5518
5503
|
});
|
|
5519
5504
|
case "errorMedium":
|
|
5520
|
-
return
|
|
5505
|
+
return W2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5521
5506
|
case "visibilityIcon":
|
|
5522
|
-
return
|
|
5507
|
+
return G2({
|
|
5523
5508
|
width: e,
|
|
5524
5509
|
height: t,
|
|
5525
5510
|
color: l,
|
|
5526
|
-
className:
|
|
5511
|
+
className: a,
|
|
5527
5512
|
onClick: h
|
|
5528
5513
|
});
|
|
5529
5514
|
case "visibilityOffIcon":
|
|
5530
|
-
return
|
|
5515
|
+
return K2({
|
|
5531
5516
|
width: e,
|
|
5532
5517
|
height: t,
|
|
5533
5518
|
color: l,
|
|
5534
|
-
className:
|
|
5519
|
+
className: a,
|
|
5535
5520
|
onClick: h
|
|
5536
5521
|
});
|
|
5537
5522
|
case "selectArrowIcon":
|
|
5538
|
-
return
|
|
5523
|
+
return $2({
|
|
5539
5524
|
width: e,
|
|
5540
5525
|
height: t,
|
|
5541
5526
|
color: l,
|
|
5542
|
-
className:
|
|
5527
|
+
className: a,
|
|
5543
5528
|
onClick: h
|
|
5544
5529
|
});
|
|
5545
5530
|
case "expandArrowIcon":
|
|
5546
|
-
return
|
|
5531
|
+
return P2({
|
|
5547
5532
|
width: e,
|
|
5548
5533
|
height: t,
|
|
5549
5534
|
color: l,
|
|
5550
|
-
className:
|
|
5535
|
+
className: a,
|
|
5551
5536
|
onClick: h
|
|
5552
5537
|
});
|
|
5553
5538
|
case "expandActiveArrowIcon":
|
|
5554
|
-
return
|
|
5539
|
+
return F2({
|
|
5555
5540
|
width: e,
|
|
5556
5541
|
height: t,
|
|
5557
5542
|
color: l,
|
|
5558
|
-
className:
|
|
5543
|
+
className: a,
|
|
5559
5544
|
onClick: h
|
|
5560
5545
|
});
|
|
5561
5546
|
case "sortUp":
|
|
5562
|
-
return
|
|
5547
|
+
return Y2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5563
5548
|
case "sortDown":
|
|
5564
|
-
return
|
|
5549
|
+
return U2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5565
5550
|
case "search":
|
|
5566
|
-
return
|
|
5551
|
+
return z2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5567
5552
|
case "arrowUpFilled":
|
|
5568
|
-
return
|
|
5553
|
+
return X2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5569
5554
|
case "arrowDownFilled":
|
|
5570
|
-
return
|
|
5555
|
+
return q2({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5571
5556
|
case "link":
|
|
5572
|
-
return
|
|
5557
|
+
return e5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5573
5558
|
case "telegram":
|
|
5574
|
-
return
|
|
5559
|
+
return i5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5575
5560
|
case "mail":
|
|
5576
|
-
return
|
|
5561
|
+
return n5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5577
5562
|
case "github":
|
|
5578
|
-
return
|
|
5563
|
+
return t5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5579
5564
|
case "linkedIn":
|
|
5580
|
-
return
|
|
5565
|
+
return s5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5581
5566
|
case "emptyStateIcon":
|
|
5582
|
-
return
|
|
5567
|
+
return r5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5583
5568
|
case "filtersIcon":
|
|
5584
|
-
return
|
|
5569
|
+
return o5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5585
5570
|
case "dotMenuIcon":
|
|
5586
|
-
return
|
|
5571
|
+
return a5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5587
5572
|
case "plusCircle":
|
|
5588
|
-
return
|
|
5573
|
+
return l5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5589
5574
|
case "warning":
|
|
5590
|
-
return
|
|
5575
|
+
return h5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5591
5576
|
case "back":
|
|
5592
|
-
return
|
|
5577
|
+
return c5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5593
5578
|
case "bell":
|
|
5594
|
-
return
|
|
5579
|
+
return d5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5595
5580
|
case "contract":
|
|
5596
|
-
return
|
|
5581
|
+
return u5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5597
5582
|
case "trash2":
|
|
5598
|
-
return
|
|
5583
|
+
return g5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5599
5584
|
case "resourceManager":
|
|
5600
|
-
return
|
|
5585
|
+
return C5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5601
5586
|
case "settings2":
|
|
5602
|
-
return
|
|
5587
|
+
return p5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5603
5588
|
case "image":
|
|
5604
|
-
return
|
|
5589
|
+
return f5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5605
5590
|
case "edit":
|
|
5606
|
-
return
|
|
5591
|
+
return m5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5607
5592
|
case "filledArrowRight":
|
|
5608
|
-
return
|
|
5593
|
+
return w5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5609
5594
|
case "burgerMenu":
|
|
5610
|
-
return
|
|
5595
|
+
return k5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5611
5596
|
case "signOut":
|
|
5612
|
-
return
|
|
5597
|
+
return L5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5613
5598
|
case "refresh":
|
|
5614
|
-
return
|
|
5599
|
+
return v5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5615
5600
|
case "projects":
|
|
5616
|
-
return
|
|
5601
|
+
return N5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5617
5602
|
case "profile":
|
|
5618
|
-
return
|
|
5603
|
+
return _5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5619
5604
|
case "exit":
|
|
5620
|
-
return
|
|
5605
|
+
return x5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5621
5606
|
case "client":
|
|
5622
|
-
return
|
|
5607
|
+
return R5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5623
5608
|
case "calendar2":
|
|
5624
|
-
return
|
|
5609
|
+
return M5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5625
5610
|
case "openPointCircle":
|
|
5626
|
-
return
|
|
5611
|
+
return b5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5627
5612
|
case "community":
|
|
5628
|
-
return
|
|
5613
|
+
return y5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5629
5614
|
case "docs":
|
|
5630
|
-
return
|
|
5615
|
+
return E5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5631
5616
|
default:
|
|
5632
5617
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
5633
5618
|
}
|
|
5634
5619
|
})() });
|
|
5635
5620
|
};
|
|
5636
5621
|
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 || {});
|
|
5637
|
-
const
|
|
5622
|
+
const I5 = d1({
|
|
5638
5623
|
locale: "en",
|
|
5639
5624
|
theme: "light"
|
|
5640
5625
|
});
|
|
5641
|
-
|
|
5642
|
-
const
|
|
5626
|
+
I5.Provider;
|
|
5627
|
+
const ge = ({
|
|
5643
5628
|
children: i,
|
|
5644
5629
|
width: e,
|
|
5645
5630
|
size: t = "small",
|
|
5646
5631
|
onClose: s,
|
|
5647
5632
|
closable: n = !0,
|
|
5648
|
-
disabled:
|
|
5633
|
+
disabled: o = !1
|
|
5649
5634
|
}) => {
|
|
5650
|
-
const c = t === "small" ? 10 : 12.5,
|
|
5651
|
-
|
|
5635
|
+
const c = t === "small" ? 10 : 12.5, a = () => {
|
|
5636
|
+
o || s == null || s();
|
|
5652
5637
|
};
|
|
5653
5638
|
return /* @__PURE__ */ r(
|
|
5654
|
-
|
|
5639
|
+
be,
|
|
5655
5640
|
{
|
|
5656
|
-
className: `snmt-tag ${t} ${
|
|
5641
|
+
className: `snmt-tag ${t} ${o ? "disabled" : ""}`,
|
|
5657
5642
|
closeIcon: /* @__PURE__ */ r(
|
|
5658
|
-
|
|
5643
|
+
H5,
|
|
5659
5644
|
{
|
|
5660
5645
|
name: "errorSmall",
|
|
5661
|
-
color:
|
|
5646
|
+
color: o ? f1.GREY_DARK_1 : f1.GREY_DARK_2,
|
|
5662
5647
|
width: c,
|
|
5663
5648
|
height: c,
|
|
5664
|
-
onClick:
|
|
5649
|
+
onClick: a
|
|
5665
5650
|
}
|
|
5666
5651
|
),
|
|
5667
5652
|
bordered: !1,
|
|
5668
5653
|
style: { width: e ?? "fit-content" },
|
|
5669
5654
|
closable: n,
|
|
5670
5655
|
children: typeof i == "string" ? /* @__PURE__ */ r(
|
|
5671
|
-
|
|
5656
|
+
p2,
|
|
5672
5657
|
{
|
|
5673
5658
|
variant: t === "small" ? "body4" : "body2",
|
|
5674
|
-
color:
|
|
5659
|
+
color: o ? f1.GREY_DARK_2 : f1.GREY_DARK_5,
|
|
5675
5660
|
children: i
|
|
5676
5661
|
}
|
|
5677
5662
|
) : i
|
|
5678
5663
|
}
|
|
5679
5664
|
);
|
|
5680
|
-
},
|
|
5681
|
-
ae,
|
|
5682
|
-
{
|
|
5683
|
-
overlayClassName: "snmt-tooltip",
|
|
5684
|
-
title: e,
|
|
5685
|
-
arrow: t,
|
|
5686
|
-
open: s,
|
|
5687
|
-
placement: n,
|
|
5688
|
-
children: i
|
|
5689
|
-
}
|
|
5690
|
-
), { Title: A5, Text: T5 } = le, Z5 = {
|
|
5665
|
+
}, { Title: O5, Text: S5 } = ae, V5 = {
|
|
5691
5666
|
h1: 1,
|
|
5692
5667
|
h2: 2,
|
|
5693
5668
|
h3: 3,
|
|
5694
5669
|
h4: 4
|
|
5695
|
-
},
|
|
5670
|
+
}, A5 = k1(
|
|
5696
5671
|
({
|
|
5697
5672
|
align: i = "inherit",
|
|
5698
5673
|
variant: e = "body1",
|
|
5699
5674
|
color: t,
|
|
5700
5675
|
children: s,
|
|
5701
5676
|
onClick: n,
|
|
5702
|
-
collapsed:
|
|
5677
|
+
collapsed: o,
|
|
5703
5678
|
whiteSpace: c = "normal",
|
|
5704
5679
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5705
|
-
trim:
|
|
5680
|
+
trim: a = !1
|
|
5706
5681
|
}, d) => {
|
|
5707
|
-
const g =
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
g.current && h(g.current.scrollWidth > g.current.clientWidth);
|
|
5714
|
-
}, _ = new ResizeObserver(m);
|
|
5715
|
-
return g.current && _.observe(g.current), () => {
|
|
5716
|
-
_.disconnect();
|
|
5717
|
-
};
|
|
5718
|
-
}, [o, l]);
|
|
5719
|
-
const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5720
|
-
let p = `snmt-typography snmt-typography-${e}`;
|
|
5721
|
-
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), a && (p += " collapsed"), o && (p += " collapsed");
|
|
5722
|
-
const w = {
|
|
5723
|
-
className: p,
|
|
5724
|
-
style: { color: t, whiteSpace: o ? "nowrap" : c, display: o ? "block" : "" },
|
|
5682
|
+
const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5683
|
+
let l = `snmt-typography snmt-typography-${e}`;
|
|
5684
|
+
i && i !== "inherit" && (l += ` snmt-typography-align-${i}`), o && (l += " collapsed");
|
|
5685
|
+
const h = {
|
|
5686
|
+
className: l,
|
|
5687
|
+
style: { color: t, whiteSpace: a ? "nowrap" : c, display: a ? "block" : "" },
|
|
5725
5688
|
onClick: n,
|
|
5726
|
-
ref:
|
|
5727
|
-
|
|
5728
|
-
|
|
5689
|
+
ref: d,
|
|
5690
|
+
ellipsis: a ? {
|
|
5691
|
+
tooltip: {
|
|
5692
|
+
title: s,
|
|
5693
|
+
arrow: !0,
|
|
5694
|
+
overlayClassName: "snmt-tooltip"
|
|
5695
|
+
}
|
|
5696
|
+
} : void 0
|
|
5697
|
+
};
|
|
5698
|
+
return g ? /* @__PURE__ */ r(O5, { level: V5[e], ...h, children: s }) : /* @__PURE__ */ r(S5, { ...h, children: s });
|
|
5729
5699
|
}
|
|
5730
|
-
),
|
|
5700
|
+
), T5 = ({
|
|
5731
5701
|
children: i,
|
|
5732
5702
|
content: e,
|
|
5733
5703
|
isOpen: t,
|
|
5734
5704
|
setIsOpen: s,
|
|
5735
5705
|
placement: n = "topRight",
|
|
5736
|
-
noPadding:
|
|
5706
|
+
noPadding: o = !1
|
|
5737
5707
|
}) => {
|
|
5738
|
-
const [c,
|
|
5708
|
+
const [c, a] = B(!1);
|
|
5739
5709
|
return /* @__PURE__ */ r(
|
|
5740
|
-
|
|
5710
|
+
ye,
|
|
5741
5711
|
{
|
|
5742
5712
|
content: e,
|
|
5743
5713
|
arrow: !1,
|
|
5744
5714
|
placement: n,
|
|
5745
5715
|
trigger: "click",
|
|
5746
|
-
overlayClassName: `snmt-popover ${
|
|
5716
|
+
overlayClassName: `snmt-popover ${o ? "" : "padding"}`,
|
|
5747
5717
|
open: t ?? c,
|
|
5748
5718
|
onOpenChange: (d) => {
|
|
5749
|
-
|
|
5719
|
+
a(d), s == null || s(d);
|
|
5750
5720
|
},
|
|
5751
5721
|
children: /* @__PURE__ */ r("div", { className: "wrapper", children: i })
|
|
5752
5722
|
}
|
|
5753
5723
|
);
|
|
5754
5724
|
};
|
|
5755
|
-
var
|
|
5725
|
+
var Z5 = { exports: {} };
|
|
5756
5726
|
(function(i, e) {
|
|
5757
5727
|
(function(t, s) {
|
|
5758
5728
|
i.exports = s();
|
|
5759
|
-
})(
|
|
5729
|
+
})(Oe, function() {
|
|
5760
5730
|
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) {
|
|
5761
5731
|
var s = ["th", "st", "nd", "rd"], n = t % 100;
|
|
5762
5732
|
return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
|
|
5763
5733
|
} };
|
|
5764
5734
|
});
|
|
5765
|
-
})(
|
|
5766
|
-
const
|
|
5735
|
+
})(Z5);
|
|
5736
|
+
const D5 = ({
|
|
5767
5737
|
values: i,
|
|
5768
5738
|
onTagClose: e,
|
|
5769
5739
|
maxWidth: t,
|
|
5770
5740
|
closable: s = !0,
|
|
5771
5741
|
disabled: n,
|
|
5772
|
-
options:
|
|
5742
|
+
options: o,
|
|
5773
5743
|
extraOptions: c
|
|
5774
5744
|
}) => {
|
|
5775
|
-
const { locale:
|
|
5776
|
-
if (
|
|
5745
|
+
const { locale: a } = r1(Z1), { t: d } = ze("common", { lng: a }), [g, l] = B(!1);
|
|
5746
|
+
if (G(() => {
|
|
5777
5747
|
i.length || l(!1);
|
|
5778
5748
|
}, [i]), !i.length)
|
|
5779
5749
|
return null;
|
|
5780
5750
|
const h = (u) => {
|
|
5781
|
-
var p,
|
|
5782
|
-
return ((p =
|
|
5751
|
+
var p, k;
|
|
5752
|
+
return ((p = o == null ? void 0 : o.find((v) => v.value === u)) == null ? void 0 : p.label) || ((k = c == null ? void 0 : c.find((v) => v.value === u)) == null ? void 0 : k.label) || u;
|
|
5783
5753
|
};
|
|
5784
5754
|
return /* @__PURE__ */ C(
|
|
5785
|
-
|
|
5755
|
+
T5,
|
|
5786
5756
|
{
|
|
5787
5757
|
content: (
|
|
5788
5758
|
// 90: paddings + margins + gaps and so on
|
|
5789
5759
|
/* @__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(
|
|
5790
|
-
|
|
5760
|
+
ge,
|
|
5791
5761
|
{
|
|
5792
5762
|
onClose: () => e(u),
|
|
5793
5763
|
closable: s,
|
|
@@ -5807,7 +5777,7 @@ const W5 = ({
|
|
|
5807
5777
|
]
|
|
5808
5778
|
}
|
|
5809
5779
|
);
|
|
5810
|
-
},
|
|
5780
|
+
}, G1 = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
5811
5781
|
const t = `no-repeat linear-gradient(${e}
|
|
5812
5782
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
|
5813
5783
|
width: i,
|
|
@@ -5815,162 +5785,162 @@ const W5 = ({
|
|
|
5815
5785
|
backgroundSize: "20% calc(200% + 20px)"
|
|
5816
5786
|
};
|
|
5817
5787
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
|
|
5818
|
-
},
|
|
5788
|
+
}, K1 = k1(
|
|
5819
5789
|
({
|
|
5820
5790
|
value: i,
|
|
5821
5791
|
onChange: e,
|
|
5822
5792
|
placeholder: t,
|
|
5823
5793
|
mode: s,
|
|
5824
5794
|
search: n = !1,
|
|
5825
|
-
options:
|
|
5795
|
+
options: o,
|
|
5826
5796
|
width: c,
|
|
5827
|
-
disabled:
|
|
5797
|
+
disabled: a = !1,
|
|
5828
5798
|
required: d = !1,
|
|
5829
5799
|
clearable: g = !1,
|
|
5830
5800
|
scrollThresholdValue: l = 50,
|
|
5831
5801
|
onSearchChange: h,
|
|
5832
5802
|
onDropdownVisibleChange: u,
|
|
5833
5803
|
onScrollToEnd: p,
|
|
5834
|
-
onPopupScroll:
|
|
5835
|
-
id:
|
|
5804
|
+
onPopupScroll: k,
|
|
5805
|
+
id: v,
|
|
5836
5806
|
extraOptions: m,
|
|
5837
|
-
dropdownRender:
|
|
5807
|
+
dropdownRender: O,
|
|
5838
5808
|
optionRender: M,
|
|
5839
5809
|
isLoading: S,
|
|
5840
5810
|
readOnly: f,
|
|
5841
5811
|
error: N
|
|
5842
5812
|
}, x) => {
|
|
5843
|
-
const [
|
|
5844
|
-
|
|
5813
|
+
const [L, P] = B(!1), [J, F] = B(!1), [_, Z] = B(!0), [H, V] = B(i), T = X(null);
|
|
5814
|
+
G(() => {
|
|
5845
5815
|
V(i);
|
|
5846
5816
|
}, [i]);
|
|
5847
|
-
const
|
|
5848
|
-
P(
|
|
5849
|
-
}, U = (
|
|
5850
|
-
var
|
|
5851
|
-
return !!((
|
|
5852
|
-
},
|
|
5817
|
+
const j = (w) => {
|
|
5818
|
+
P(w), u && u(w);
|
|
5819
|
+
}, U = (w, b) => {
|
|
5820
|
+
var D;
|
|
5821
|
+
return !!((D = b == null ? void 0 : b.label) != null && D.toString().toLowerCase().includes(w.toLowerCase()));
|
|
5822
|
+
}, I = () => {
|
|
5853
5823
|
F(!0);
|
|
5854
5824
|
}, K = () => {
|
|
5855
5825
|
F(!1);
|
|
5856
|
-
},
|
|
5857
|
-
(
|
|
5858
|
-
if (V(
|
|
5859
|
-
const
|
|
5860
|
-
e == null || e(
|
|
5826
|
+
}, W = $(
|
|
5827
|
+
(w) => {
|
|
5828
|
+
if (V(w), s) {
|
|
5829
|
+
const D = w;
|
|
5830
|
+
e == null || e(D);
|
|
5861
5831
|
return;
|
|
5862
5832
|
}
|
|
5863
|
-
const b =
|
|
5833
|
+
const b = w;
|
|
5864
5834
|
e == null || e(b);
|
|
5865
5835
|
},
|
|
5866
5836
|
[s, e]
|
|
5867
5837
|
), e1 = $(() => {
|
|
5868
|
-
if (!(f ||
|
|
5838
|
+
if (!(f || a)) {
|
|
5869
5839
|
if (s) {
|
|
5870
|
-
|
|
5840
|
+
W([]);
|
|
5871
5841
|
return;
|
|
5872
5842
|
}
|
|
5873
|
-
|
|
5843
|
+
W("");
|
|
5874
5844
|
}
|
|
5875
|
-
}, [
|
|
5876
|
-
(
|
|
5877
|
-
const b =
|
|
5878
|
-
|
|
5845
|
+
}, [a, W, s, f]), t1 = $(
|
|
5846
|
+
(w) => {
|
|
5847
|
+
const b = H.filter((D) => D !== w);
|
|
5848
|
+
W(b), V(b);
|
|
5879
5849
|
},
|
|
5880
|
-
[
|
|
5850
|
+
[W, H]
|
|
5881
5851
|
), g1 = $(
|
|
5882
|
-
(
|
|
5852
|
+
(w) => (H == null ? void 0 : H.indexOf(w)) === 0 ? (
|
|
5883
5853
|
// if the search input is empty
|
|
5884
5854
|
// then display the placeholder, else do not display it
|
|
5885
|
-
/* @__PURE__ */ r("span", { className: "custom-placeholder", children:
|
|
5855
|
+
/* @__PURE__ */ r("span", { className: "custom-placeholder", children: _ ? t : "" })
|
|
5886
5856
|
) : /* @__PURE__ */ r(i1, {}),
|
|
5887
|
-
[
|
|
5888
|
-
), L1 = (
|
|
5889
|
-
|
|
5890
|
-
}, v1 = async (
|
|
5891
|
-
const { target: b } =
|
|
5892
|
-
b.scrollTop + b.offsetHeight >= b.scrollHeight - l && (p == null || p(!0)),
|
|
5857
|
+
[_, H, t]
|
|
5858
|
+
), L1 = (w) => {
|
|
5859
|
+
w.preventDefault(), w.stopPropagation();
|
|
5860
|
+
}, v1 = async (w) => {
|
|
5861
|
+
const { target: b } = w;
|
|
5862
|
+
b.scrollTop + b.offsetHeight >= b.scrollHeight - l && (p == null || p(!0)), k && await k(w);
|
|
5893
5863
|
}, o1 = $(
|
|
5894
|
-
(
|
|
5895
|
-
var b,
|
|
5896
|
-
return ((b =
|
|
5897
|
-
(a1) => a1.value ===
|
|
5898
|
-
)) == null ? void 0 :
|
|
5864
|
+
(w) => {
|
|
5865
|
+
var b, D;
|
|
5866
|
+
return ((b = o.find((a1) => a1.value === w)) == null ? void 0 : b.label) || ((D = m == null ? void 0 : m.find(
|
|
5867
|
+
(a1) => a1.value === w
|
|
5868
|
+
)) == null ? void 0 : D.label) || w;
|
|
5899
5869
|
},
|
|
5900
|
-
[m,
|
|
5870
|
+
[m, o]
|
|
5901
5871
|
), N1 = $(
|
|
5902
|
-
(
|
|
5872
|
+
(w) => {
|
|
5903
5873
|
var b;
|
|
5904
5874
|
return /* @__PURE__ */ r(
|
|
5905
|
-
|
|
5875
|
+
D5,
|
|
5906
5876
|
{
|
|
5907
|
-
values:
|
|
5877
|
+
values: w,
|
|
5908
5878
|
onTagClose: t1,
|
|
5909
|
-
maxWidth: ((b =
|
|
5910
|
-
disabled:
|
|
5879
|
+
maxWidth: ((b = T.current) == null ? void 0 : b.clientWidth) || 0,
|
|
5880
|
+
disabled: a,
|
|
5911
5881
|
closable: !f,
|
|
5912
|
-
options:
|
|
5882
|
+
options: o,
|
|
5913
5883
|
extraOptions: m
|
|
5914
5884
|
}
|
|
5915
5885
|
);
|
|
5916
5886
|
},
|
|
5917
|
-
[
|
|
5887
|
+
[a, m, t1, o, f]
|
|
5918
5888
|
), A = $(
|
|
5919
|
-
({ label:
|
|
5920
|
-
[
|
|
5921
|
-
), z = Array.isArray(
|
|
5889
|
+
({ label: w, value: b, mode: D }) => D === "filter" ? g1(b) : /* @__PURE__ */ r("div", { onMouseDown: L1, className: "tag-wrapper", children: /* @__PURE__ */ r(ge, { onClose: () => t1(b), disabled: a, children: typeof w == "object" ? w : o1(b) }) }),
|
|
5890
|
+
[a, o1, t1, g1]
|
|
5891
|
+
), z = Array.isArray(H) && H.length > 0 || !!H && typeof H == "string" && H.trim() !== "";
|
|
5922
5892
|
return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
|
|
5923
5893
|
/* @__PURE__ */ C(
|
|
5924
5894
|
"div",
|
|
5925
5895
|
{
|
|
5926
5896
|
className: `snmt-select-1-15-6 ${J ? "snmt-select-focused" : ""}
|
|
5927
5897
|
${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
|
5928
|
-
ref:
|
|
5898
|
+
ref: T,
|
|
5929
5899
|
style: { width: c },
|
|
5930
5900
|
children: [
|
|
5931
5901
|
/* @__PURE__ */ r(
|
|
5932
|
-
|
|
5902
|
+
Ne,
|
|
5933
5903
|
{
|
|
5934
5904
|
className: "snmt-select-blank",
|
|
5935
5905
|
popupClassName: f ? "dropdown-read-only" : "",
|
|
5936
|
-
id:
|
|
5906
|
+
id: v,
|
|
5937
5907
|
ref: x,
|
|
5938
5908
|
showSearch: !!n,
|
|
5939
5909
|
filterOption: n && U,
|
|
5940
|
-
onDropdownVisibleChange:
|
|
5941
|
-
disabled:
|
|
5942
|
-
value:
|
|
5943
|
-
labelRender: (
|
|
5944
|
-
const b = o1(
|
|
5945
|
-
return
|
|
5910
|
+
onDropdownVisibleChange: j,
|
|
5911
|
+
disabled: a,
|
|
5912
|
+
value: H || void 0,
|
|
5913
|
+
labelRender: (w) => {
|
|
5914
|
+
const b = o1(w.value);
|
|
5915
|
+
return a ? /* @__PURE__ */ r("span", { style: { color: Q.GREY_DARK_1 }, children: b }) : b;
|
|
5946
5916
|
},
|
|
5947
5917
|
mode: s === "filter" ? "multiple" : s,
|
|
5948
|
-
onChange:
|
|
5949
|
-
onFocus:
|
|
5918
|
+
onChange: W,
|
|
5919
|
+
onFocus: I,
|
|
5950
5920
|
onBlur: K,
|
|
5951
|
-
onSearch: (
|
|
5952
|
-
|
|
5921
|
+
onSearch: (w) => {
|
|
5922
|
+
Z(!w), h && h(w);
|
|
5953
5923
|
},
|
|
5954
|
-
onSelect: () =>
|
|
5955
|
-
onDeselect: () =>
|
|
5956
|
-
tagRender: (
|
|
5924
|
+
onSelect: () => Z(!0),
|
|
5925
|
+
onDeselect: () => Z(!0),
|
|
5926
|
+
tagRender: (w) => A({ ...w, mode: s }),
|
|
5957
5927
|
maxTagCount: "responsive",
|
|
5958
5928
|
maxTagPlaceholder: N1,
|
|
5959
5929
|
onPopupScroll: v1,
|
|
5960
|
-
prefix: S && /* @__PURE__ */ r(
|
|
5930
|
+
prefix: S && /* @__PURE__ */ r(G1, { size: 15 }),
|
|
5961
5931
|
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(i1, { children: [
|
|
5962
|
-
|
|
5932
|
+
H && !!H.length && (s || g) && /* @__PURE__ */ r(
|
|
5963
5933
|
"div",
|
|
5964
5934
|
{
|
|
5965
5935
|
onClick: e1,
|
|
5966
5936
|
style: {
|
|
5967
|
-
cursor:
|
|
5937
|
+
cursor: a ? "not-allowed" : "pointer"
|
|
5968
5938
|
},
|
|
5969
5939
|
children: /* @__PURE__ */ r(
|
|
5970
5940
|
u1,
|
|
5971
5941
|
{
|
|
5972
5942
|
name: "cancel",
|
|
5973
|
-
color:
|
|
5943
|
+
color: a ? Q.GREY_DARK_1 : Q.GREY_DARK_5
|
|
5974
5944
|
}
|
|
5975
5945
|
)
|
|
5976
5946
|
}
|
|
@@ -5979,28 +5949,28 @@ const W5 = ({
|
|
|
5979
5949
|
u1,
|
|
5980
5950
|
{
|
|
5981
5951
|
name: "selectArrowIcon",
|
|
5982
|
-
color:
|
|
5983
|
-
className:
|
|
5984
|
-
onClick: () => P(!
|
|
5952
|
+
color: a ? Q.GREY_DARK_1 : Q.GREY_DARK_5,
|
|
5953
|
+
className: L ? "select-arrow-rotated" : "select-arrow",
|
|
5954
|
+
onClick: () => P(!L)
|
|
5985
5955
|
}
|
|
5986
5956
|
)
|
|
5987
5957
|
] }) }),
|
|
5988
5958
|
removeIcon: /* @__PURE__ */ r(u1, { name: "errorSmall", color: Q.GREY_DARK_1 }),
|
|
5989
|
-
options:
|
|
5990
|
-
optionRender: (
|
|
5959
|
+
options: o,
|
|
5960
|
+
optionRender: (w) => M ? M(w.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
5991
5961
|
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 12, children: [
|
|
5992
5962
|
s && /* @__PURE__ */ r(
|
|
5993
5963
|
Qe,
|
|
5994
5964
|
{
|
|
5995
|
-
checked: !!(
|
|
5965
|
+
checked: !!(H != null && H.includes(w.value))
|
|
5996
5966
|
}
|
|
5997
5967
|
),
|
|
5998
5968
|
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 8, children: [
|
|
5999
|
-
|
|
6000
|
-
/* @__PURE__ */ r("span", { children:
|
|
5969
|
+
w.data.image && /* @__PURE__ */ r(Je, { src: w.data.image, size: 20 }),
|
|
5970
|
+
/* @__PURE__ */ r("span", { children: w.label })
|
|
6001
5971
|
] })
|
|
6002
5972
|
] }),
|
|
6003
|
-
!s &&
|
|
5973
|
+
!s && H === w.value && /* @__PURE__ */ r(
|
|
6004
5974
|
u1,
|
|
6005
5975
|
{
|
|
6006
5976
|
name: "ok",
|
|
@@ -6010,9 +5980,9 @@ const W5 = ({
|
|
|
6010
5980
|
}
|
|
6011
5981
|
)
|
|
6012
5982
|
] }),
|
|
6013
|
-
dropdownRender: (
|
|
6014
|
-
/* @__PURE__ */ r("div", { className: "dropdown-menu", children:
|
|
6015
|
-
S && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(
|
|
5983
|
+
dropdownRender: (w) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
|
5984
|
+
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: O ? O(w) : w }),
|
|
5985
|
+
S && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(G1, { size: 28 }) })
|
|
6016
5986
|
] })
|
|
6017
5987
|
}
|
|
6018
5988
|
),
|
|
@@ -6020,14 +5990,14 @@ const W5 = ({
|
|
|
6020
5990
|
/* @__PURE__ */ r(
|
|
6021
5991
|
"label",
|
|
6022
5992
|
{
|
|
6023
|
-
className: `${J || z ? "label-floating" : ""} ${
|
|
5993
|
+
className: `${J || z ? "label-floating" : ""} ${a ? "label-disabled" : ""} ${J ? "label-focused" : ""} ${S ? "label-loading" : ""} ${N ? "label-error" : ""}`,
|
|
6024
5994
|
children: d ? `${t}*` : t
|
|
6025
5995
|
}
|
|
6026
5996
|
),
|
|
6027
5997
|
/* @__PURE__ */ r(
|
|
6028
5998
|
"fieldset",
|
|
6029
5999
|
{
|
|
6030
|
-
className: `${J ? "fieldset-focused" : ""} ${
|
|
6000
|
+
className: `${J ? "fieldset-focused" : ""} ${a ? "fieldset-disabled" : ""} ${z ? "fieldset-filled" : ""} ${N ? "fieldset-error" : ""}`,
|
|
6031
6001
|
children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: d ? `${t}*` : t }) })
|
|
6032
6002
|
}
|
|
6033
6003
|
)
|
|
@@ -6045,14 +6015,14 @@ const W5 = ({
|
|
|
6045
6015
|
width: 16
|
|
6046
6016
|
}
|
|
6047
6017
|
),
|
|
6048
|
-
typeof N == "string" ? /* @__PURE__ */ r(
|
|
6018
|
+
typeof N == "string" ? /* @__PURE__ */ r(A5, { color: Q.NOTIFICATION_ERROR_DARK, variant: "body4", children: N }) : N
|
|
6049
6019
|
] })
|
|
6050
6020
|
] });
|
|
6051
6021
|
}
|
|
6052
6022
|
);
|
|
6053
|
-
function
|
|
6054
|
-
const t =
|
|
6055
|
-
return
|
|
6023
|
+
function B5(i, e = 500) {
|
|
6024
|
+
const t = X();
|
|
6025
|
+
return G(() => () => {
|
|
6056
6026
|
t.current && clearTimeout(t.current);
|
|
6057
6027
|
}, []), (...s) => {
|
|
6058
6028
|
const n = setTimeout(() => {
|
|
@@ -6061,55 +6031,55 @@ function G5(i, e = 500) {
|
|
|
6061
6031
|
clearTimeout(t.current), t.current = n;
|
|
6062
6032
|
};
|
|
6063
6033
|
}
|
|
6064
|
-
function
|
|
6065
|
-
const e =
|
|
6066
|
-
return
|
|
6034
|
+
function $1(i) {
|
|
6035
|
+
const e = X(i);
|
|
6036
|
+
return G(() => {
|
|
6067
6037
|
e.current = i;
|
|
6068
6038
|
}, [i]), e.current;
|
|
6069
6039
|
}
|
|
6070
|
-
const
|
|
6040
|
+
const H1 = 100, l1 = {
|
|
6071
6041
|
offset: 0
|
|
6072
|
-
},
|
|
6042
|
+
}, P1 = k1(
|
|
6073
6043
|
({
|
|
6074
6044
|
loadOptions: i,
|
|
6075
6045
|
width: e,
|
|
6076
6046
|
onChange: t,
|
|
6077
6047
|
value: s,
|
|
6078
6048
|
id: n,
|
|
6079
|
-
disabled:
|
|
6049
|
+
disabled: o,
|
|
6080
6050
|
scrollThresholdValue: c,
|
|
6081
|
-
placeholder:
|
|
6051
|
+
placeholder: a,
|
|
6082
6052
|
mode: d,
|
|
6083
6053
|
loadOnClosedState: g,
|
|
6084
6054
|
preloadOptions: l,
|
|
6085
6055
|
extraOptions: h,
|
|
6086
6056
|
onDropdownVisibleChange: u,
|
|
6087
6057
|
optionRender: p,
|
|
6088
|
-
dropdownRender:
|
|
6089
|
-
readOnly:
|
|
6058
|
+
dropdownRender: k,
|
|
6059
|
+
readOnly: v,
|
|
6090
6060
|
clearable: m = !1,
|
|
6091
|
-
required:
|
|
6061
|
+
required: O = !1,
|
|
6092
6062
|
error: M
|
|
6093
6063
|
}, S) => {
|
|
6094
|
-
const [f, N] =
|
|
6064
|
+
const [f, N] = B(), [x, L] = B(l1), [P, J] = B(!1), [F, _] = B(), [Z, H] = B(!1), [V, T] = B(
|
|
6095
6065
|
h ?? []
|
|
6096
|
-
),
|
|
6066
|
+
), j = $1(x.offset), U = $1(F), [I, K] = B(!1), W = X(!1), e1 = $(
|
|
6097
6067
|
async ({
|
|
6098
|
-
limit: A =
|
|
6068
|
+
limit: A = H1,
|
|
6099
6069
|
offset: z,
|
|
6100
|
-
search:
|
|
6070
|
+
search: w
|
|
6101
6071
|
}) => {
|
|
6102
6072
|
J(!0);
|
|
6103
6073
|
try {
|
|
6104
6074
|
const b = await i({
|
|
6105
6075
|
limit: A,
|
|
6106
6076
|
offset: z,
|
|
6107
|
-
search:
|
|
6077
|
+
search: w
|
|
6108
6078
|
});
|
|
6109
6079
|
N(
|
|
6110
|
-
(
|
|
6111
|
-
),
|
|
6112
|
-
...
|
|
6080
|
+
(D) => z === 0 ? b.options : [...D ?? [], ...b.options]
|
|
6081
|
+
), L((D) => ({
|
|
6082
|
+
...D,
|
|
6113
6083
|
count: b.count
|
|
6114
6084
|
}));
|
|
6115
6085
|
} catch (b) {
|
|
@@ -6119,33 +6089,33 @@ const I1 = 100, l1 = {
|
|
|
6119
6089
|
}
|
|
6120
6090
|
},
|
|
6121
6091
|
[i]
|
|
6122
|
-
), t1 =
|
|
6123
|
-
|
|
6092
|
+
), t1 = B5((A) => {
|
|
6093
|
+
_(A), A || L(l1);
|
|
6124
6094
|
}), g1 = $(
|
|
6125
6095
|
(A) => t1(A),
|
|
6126
6096
|
[t1]
|
|
6127
6097
|
), L1 = $(
|
|
6128
6098
|
async (A) => {
|
|
6129
|
-
P || A && x.count && x.count > ((f == null ? void 0 : f.length) ?? 0) &&
|
|
6099
|
+
P || A && x.count && x.count > ((f == null ? void 0 : f.length) ?? 0) && L((z) => ({
|
|
6130
6100
|
...z,
|
|
6131
|
-
offset: z.offset +
|
|
6101
|
+
offset: z.offset + H1
|
|
6132
6102
|
}));
|
|
6133
6103
|
},
|
|
6134
6104
|
[P, f == null ? void 0 : f.length, x.count]
|
|
6135
6105
|
), v1 = $(
|
|
6136
6106
|
(A) => {
|
|
6137
|
-
|
|
6107
|
+
H(A), !A && F && (_(void 0), L(l1), K(!0)), u == null || u(A);
|
|
6138
6108
|
},
|
|
6139
6109
|
[u, F]
|
|
6140
6110
|
);
|
|
6141
|
-
|
|
6142
|
-
!
|
|
6143
|
-
}, [
|
|
6144
|
-
(g || l) && e1(l1),
|
|
6145
|
-
}, []),
|
|
6146
|
-
h &&
|
|
6111
|
+
G(() => {
|
|
6112
|
+
!W.current || P || (I || Z && (j !== x.offset || U !== F || !f)) && (e1({ offset: x.offset, limit: H1, search: F }), I && K(!1));
|
|
6113
|
+
}, [I, Z, x.offset, F, j, U, f, P]), G(() => {
|
|
6114
|
+
(g || l) && e1(l1), W.current = !0;
|
|
6115
|
+
}, []), G(() => {
|
|
6116
|
+
h && T((A) => {
|
|
6147
6117
|
const z = h.filter(
|
|
6148
|
-
(
|
|
6118
|
+
(w) => !A.some((b) => b.value === w.value)
|
|
6149
6119
|
);
|
|
6150
6120
|
return [...A, ...z];
|
|
6151
6121
|
});
|
|
@@ -6155,44 +6125,44 @@ const I1 = 100, l1 = {
|
|
|
6155
6125
|
t && t(A);
|
|
6156
6126
|
let z = [];
|
|
6157
6127
|
if (d ? z = Array.isArray(A) ? A : [] : z = A ? [A] : [], F) {
|
|
6158
|
-
const
|
|
6159
|
-
(b) => !(V != null && V.some((
|
|
6128
|
+
const w = z.filter(
|
|
6129
|
+
(b) => !(V != null && V.some((D) => D.value === b))
|
|
6160
6130
|
);
|
|
6161
|
-
|
|
6131
|
+
w.length > 0 && T((b = []) => [
|
|
6162
6132
|
...b,
|
|
6163
|
-
...
|
|
6164
|
-
const a1 = f == null ? void 0 : f.find((
|
|
6133
|
+
...w.map((D) => {
|
|
6134
|
+
const a1 = f == null ? void 0 : f.find((we) => we.value === D);
|
|
6165
6135
|
return {
|
|
6166
|
-
value:
|
|
6167
|
-
label: (a1 == null ? void 0 : a1.label) ??
|
|
6136
|
+
value: D,
|
|
6137
|
+
label: (a1 == null ? void 0 : a1.label) ?? D
|
|
6168
6138
|
};
|
|
6169
6139
|
})
|
|
6170
|
-
]),
|
|
6140
|
+
]), _(void 0), L(l1), K(!0);
|
|
6171
6141
|
}
|
|
6172
6142
|
},
|
|
6173
6143
|
[t, F, d, f, V]
|
|
6174
|
-
), N1 =
|
|
6144
|
+
), N1 = ve(
|
|
6175
6145
|
() => ({
|
|
6176
6146
|
id: n,
|
|
6177
6147
|
width: e,
|
|
6178
6148
|
options: f || [],
|
|
6179
6149
|
onChange: o1,
|
|
6180
6150
|
ref: S,
|
|
6181
|
-
placeholder:
|
|
6151
|
+
placeholder: a,
|
|
6182
6152
|
search: !0,
|
|
6183
6153
|
value: s,
|
|
6184
6154
|
onSearchChange: g1,
|
|
6185
6155
|
onDropdownVisibleChange: v1,
|
|
6186
6156
|
scrollThresholdValue: c,
|
|
6187
6157
|
onScrollToEnd: L1,
|
|
6188
|
-
disabled:
|
|
6158
|
+
disabled: o,
|
|
6189
6159
|
extraOptions: V,
|
|
6190
6160
|
isLoading: P,
|
|
6191
6161
|
optionRender: p,
|
|
6192
|
-
dropdownRender:
|
|
6193
|
-
readOnly:
|
|
6162
|
+
dropdownRender: k,
|
|
6163
|
+
readOnly: v,
|
|
6194
6164
|
clearable: m,
|
|
6195
|
-
required:
|
|
6165
|
+
required: O,
|
|
6196
6166
|
error: M
|
|
6197
6167
|
}),
|
|
6198
6168
|
[
|
|
@@ -6201,32 +6171,32 @@ const I1 = 100, l1 = {
|
|
|
6201
6171
|
f,
|
|
6202
6172
|
o1,
|
|
6203
6173
|
S,
|
|
6204
|
-
|
|
6174
|
+
a,
|
|
6205
6175
|
s,
|
|
6206
6176
|
g1,
|
|
6207
6177
|
v1,
|
|
6208
6178
|
c,
|
|
6209
6179
|
L1,
|
|
6210
|
-
|
|
6180
|
+
o,
|
|
6211
6181
|
V,
|
|
6212
6182
|
P,
|
|
6213
6183
|
p,
|
|
6214
|
-
w,
|
|
6215
6184
|
k,
|
|
6185
|
+
v,
|
|
6216
6186
|
m,
|
|
6217
|
-
|
|
6187
|
+
O,
|
|
6218
6188
|
M
|
|
6219
6189
|
]
|
|
6220
6190
|
);
|
|
6221
|
-
return
|
|
6191
|
+
return oe(S, () => ({
|
|
6222
6192
|
refetchOptions: async () => {
|
|
6223
|
-
|
|
6193
|
+
L(l1), _(void 0), K(!0);
|
|
6224
6194
|
}
|
|
6225
|
-
})), d ? /* @__PURE__ */ r(
|
|
6195
|
+
})), d ? /* @__PURE__ */ r(K1, { ...N1, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(K1, { ...N1, value: s }) });
|
|
6226
6196
|
}
|
|
6227
6197
|
);
|
|
6228
6198
|
var R1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(R1 || {});
|
|
6229
|
-
const
|
|
6199
|
+
const j5 = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
6230
6200
|
const t = `no-repeat linear-gradient(${e}
|
|
6231
6201
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
|
6232
6202
|
width: i,
|
|
@@ -6235,20 +6205,20 @@ const K5 = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
|
6235
6205
|
};
|
|
6236
6206
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
|
|
6237
6207
|
};
|
|
6238
|
-
function
|
|
6208
|
+
function W5() {
|
|
6239
6209
|
if (console && console.warn) {
|
|
6240
6210
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
6241
6211
|
e[t] = arguments[t];
|
|
6242
6212
|
n1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
|
6243
6213
|
}
|
|
6244
6214
|
}
|
|
6245
|
-
const
|
|
6246
|
-
function
|
|
6215
|
+
const F1 = {};
|
|
6216
|
+
function V1() {
|
|
6247
6217
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
6248
6218
|
e[t] = arguments[t];
|
|
6249
|
-
n1(e[0]) &&
|
|
6219
|
+
n1(e[0]) && F1[e[0]] || (n1(e[0]) && (F1[e[0]] = /* @__PURE__ */ new Date()), W5(...e));
|
|
6250
6220
|
}
|
|
6251
|
-
const
|
|
6221
|
+
const ue = (i, e) => () => {
|
|
6252
6222
|
if (i.isInitialized)
|
|
6253
6223
|
e();
|
|
6254
6224
|
else {
|
|
@@ -6259,30 +6229,30 @@ const Ce = (i, e) => () => {
|
|
|
6259
6229
|
};
|
|
6260
6230
|
i.on("initialized", t);
|
|
6261
6231
|
}
|
|
6262
|
-
},
|
|
6263
|
-
i.loadNamespaces(e,
|
|
6264
|
-
},
|
|
6232
|
+
}, Y1 = (i, e, t) => {
|
|
6233
|
+
i.loadNamespaces(e, ue(i, t));
|
|
6234
|
+
}, U1 = (i, e, t, s) => {
|
|
6265
6235
|
n1(t) && (t = [t]), t.forEach((n) => {
|
|
6266
6236
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
6267
|
-
}), i.loadLanguages(e,
|
|
6268
|
-
},
|
|
6237
|
+
}), i.loadLanguages(e, ue(i, s));
|
|
6238
|
+
}, G5 = function(i, e) {
|
|
6269
6239
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6270
|
-
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1,
|
|
6240
|
+
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
|
6271
6241
|
if (s.toLowerCase() === "cimode") return !0;
|
|
6272
|
-
const c = (
|
|
6273
|
-
const g = e.services.backendConnector.state[`${
|
|
6242
|
+
const c = (a, d) => {
|
|
6243
|
+
const g = e.services.backendConnector.state[`${a}|${d}`];
|
|
6274
6244
|
return g === -1 || g === 2;
|
|
6275
6245
|
};
|
|
6276
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(
|
|
6277
|
-
},
|
|
6246
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(o, i)));
|
|
6247
|
+
}, K5 = function(i, e) {
|
|
6278
6248
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6279
|
-
return !e.languages || !e.languages.length ? (
|
|
6249
|
+
return !e.languages || !e.languages.length ? (V1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
6280
6250
|
lng: t.lng,
|
|
6281
|
-
precheck: (n,
|
|
6282
|
-
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !
|
|
6251
|
+
precheck: (n, o) => {
|
|
6252
|
+
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !o(n.isLanguageChangingTo, i)) return !1;
|
|
6283
6253
|
}
|
|
6284
|
-
}) :
|
|
6285
|
-
}, n1 = (i) => typeof i == "string",
|
|
6254
|
+
}) : G5(i, e, t);
|
|
6255
|
+
}, n1 = (i) => typeof i == "string", $5 = (i) => typeof i == "object" && i !== null, P5 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, F5 = {
|
|
6286
6256
|
"&": "&",
|
|
6287
6257
|
"&": "&",
|
|
6288
6258
|
"<": "<",
|
|
@@ -6303,8 +6273,8 @@ const Ce = (i, e) => () => {
|
|
|
6303
6273
|
"…": "…",
|
|
6304
6274
|
"/": "/",
|
|
6305
6275
|
"/": "/"
|
|
6306
|
-
},
|
|
6307
|
-
let
|
|
6276
|
+
}, Y5 = (i) => F5[i], U5 = (i) => i.replace(P5, Y5);
|
|
6277
|
+
let A1 = {
|
|
6308
6278
|
bindI18n: "languageChanged",
|
|
6309
6279
|
bindI18nStore: "",
|
|
6310
6280
|
transEmptyNodeValue: "",
|
|
@@ -6312,27 +6282,27 @@ let T1 = {
|
|
|
6312
6282
|
transWrapTextNodes: "",
|
|
6313
6283
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
6314
6284
|
useSuspense: !0,
|
|
6315
|
-
unescape:
|
|
6285
|
+
unescape: U5
|
|
6316
6286
|
};
|
|
6317
|
-
const
|
|
6287
|
+
const z5 = function() {
|
|
6318
6288
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6319
|
-
|
|
6320
|
-
...
|
|
6289
|
+
A1 = {
|
|
6290
|
+
...A1,
|
|
6321
6291
|
...i
|
|
6322
6292
|
};
|
|
6323
|
-
},
|
|
6324
|
-
let
|
|
6325
|
-
const
|
|
6326
|
-
|
|
6327
|
-
},
|
|
6293
|
+
}, J5 = () => A1;
|
|
6294
|
+
let Ce;
|
|
6295
|
+
const Q5 = (i) => {
|
|
6296
|
+
Ce = i;
|
|
6297
|
+
}, q5 = () => Ce, X5 = {
|
|
6328
6298
|
type: "3rdParty",
|
|
6329
6299
|
init(i) {
|
|
6330
|
-
|
|
6300
|
+
z5(i.options.react), Q5(i);
|
|
6331
6301
|
}
|
|
6332
|
-
},
|
|
6333
|
-
class
|
|
6302
|
+
}, ei = d1();
|
|
6303
|
+
class ti {
|
|
6334
6304
|
constructor() {
|
|
6335
|
-
|
|
6305
|
+
D1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
|
6336
6306
|
this.usedNamespaces = {};
|
|
6337
6307
|
}
|
|
6338
6308
|
addUsedNamespaces(e) {
|
|
@@ -6341,62 +6311,62 @@ class ni {
|
|
|
6341
6311
|
});
|
|
6342
6312
|
}
|
|
6343
6313
|
}
|
|
6344
|
-
const
|
|
6345
|
-
const t =
|
|
6346
|
-
return
|
|
6314
|
+
const ii = (i, e) => {
|
|
6315
|
+
const t = X();
|
|
6316
|
+
return G(() => {
|
|
6347
6317
|
t.current = i;
|
|
6348
6318
|
}, [i, e]), t.current;
|
|
6349
|
-
},
|
|
6319
|
+
}, pe = (i, e, t, s) => i.getFixedT(e, t, s), si = (i, e, t, s) => $(pe(i, e, t, s), [i, e, t, s]), ni = function(i) {
|
|
6350
6320
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6351
6321
|
const {
|
|
6352
6322
|
i18n: t
|
|
6353
6323
|
} = e, {
|
|
6354
6324
|
i18n: s,
|
|
6355
6325
|
defaultNS: n
|
|
6356
|
-
} = r1(
|
|
6357
|
-
if (
|
|
6358
|
-
|
|
6359
|
-
const f = (x,
|
|
6326
|
+
} = r1(ei) || {}, o = t || s || q5();
|
|
6327
|
+
if (o && !o.reportNamespaces && (o.reportNamespaces = new ti()), !o) {
|
|
6328
|
+
V1("You will need to pass in an i18next instance by using initReactI18next");
|
|
6329
|
+
const f = (x, L) => n1(L) ? L : $5(L) && n1(L.defaultValue) ? L.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
|
|
6360
6330
|
return N.t = f, N.i18n = {}, N.ready = !1, N;
|
|
6361
6331
|
}
|
|
6362
|
-
|
|
6332
|
+
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.");
|
|
6363
6333
|
const c = {
|
|
6364
|
-
...
|
|
6365
|
-
...
|
|
6334
|
+
...J5(),
|
|
6335
|
+
...o.options.react,
|
|
6366
6336
|
...e
|
|
6367
6337
|
}, {
|
|
6368
|
-
useSuspense:
|
|
6338
|
+
useSuspense: a,
|
|
6369
6339
|
keyPrefix: d
|
|
6370
6340
|
} = c;
|
|
6371
6341
|
let g = i;
|
|
6372
|
-
g = n1(g) ? [g] : g || ["translation"],
|
|
6373
|
-
const l = (
|
|
6342
|
+
g = n1(g) ? [g] : g || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(g);
|
|
6343
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) => K5(f, o, c)), h = si(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => pe(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [k, v] = B(u);
|
|
6374
6344
|
let m = g.join();
|
|
6375
6345
|
e.lng && (m = `${e.lng}${m}`);
|
|
6376
|
-
const
|
|
6377
|
-
|
|
6346
|
+
const O = ii(m), M = X(!0);
|
|
6347
|
+
G(() => {
|
|
6378
6348
|
const {
|
|
6379
6349
|
bindI18n: f,
|
|
6380
6350
|
bindI18nStore: N
|
|
6381
6351
|
} = c;
|
|
6382
|
-
M.current = !0, !l && !
|
|
6383
|
-
M.current &&
|
|
6384
|
-
}) :
|
|
6385
|
-
M.current &&
|
|
6386
|
-
})), l &&
|
|
6352
|
+
M.current = !0, !l && !a && (e.lng ? U1(o, e.lng, g, () => {
|
|
6353
|
+
M.current && v(p);
|
|
6354
|
+
}) : Y1(o, g, () => {
|
|
6355
|
+
M.current && v(p);
|
|
6356
|
+
})), l && O && O !== m && M.current && v(p);
|
|
6387
6357
|
const x = () => {
|
|
6388
|
-
M.current &&
|
|
6358
|
+
M.current && v(p);
|
|
6389
6359
|
};
|
|
6390
|
-
return f &&
|
|
6391
|
-
M.current = !1, f &&
|
|
6360
|
+
return f && o && o.on(f, x), N && o && o.store.on(N, x), () => {
|
|
6361
|
+
M.current = !1, f && o && f.split(" ").forEach((L) => o.off(L, x)), N && o && N.split(" ").forEach((L) => o.store.off(L, x));
|
|
6392
6362
|
};
|
|
6393
|
-
}, [
|
|
6394
|
-
M.current && l &&
|
|
6395
|
-
}, [
|
|
6396
|
-
const S = [
|
|
6397
|
-
if (S.t =
|
|
6363
|
+
}, [o, m]), G(() => {
|
|
6364
|
+
M.current && l && v(u);
|
|
6365
|
+
}, [o, d, l]);
|
|
6366
|
+
const S = [k, o, l];
|
|
6367
|
+
if (S.t = k, S.i18n = o, S.ready = l, l || !l && !a) return S;
|
|
6398
6368
|
throw new Promise((f) => {
|
|
6399
|
-
e.lng ?
|
|
6369
|
+
e.lng ? U1(o, e.lng, g, () => f()) : Y1(o, g, () => f());
|
|
6400
6370
|
});
|
|
6401
6371
|
}, R = (i) => typeof i == "string", C1 = () => {
|
|
6402
6372
|
let i, e;
|
|
@@ -6404,23 +6374,23 @@ const ri = (i, e) => {
|
|
|
6404
6374
|
i = s, e = n;
|
|
6405
6375
|
});
|
|
6406
6376
|
return t.resolve = i, t.reject = e, t;
|
|
6407
|
-
},
|
|
6377
|
+
}, z1 = (i) => i == null ? "" : "" + i, ri = (i, e, t) => {
|
|
6408
6378
|
i.forEach((s) => {
|
|
6409
6379
|
e[s] && (t[s] = e[s]);
|
|
6410
6380
|
});
|
|
6411
|
-
},
|
|
6381
|
+
}, oi = /###/g, J1 = (i) => i && i.indexOf("###") > -1 ? i.replace(oi, ".") : i, Q1 = (i) => !i || R(i), m1 = (i, e, t) => {
|
|
6412
6382
|
const s = R(e) ? e.split(".") : e;
|
|
6413
6383
|
let n = 0;
|
|
6414
6384
|
for (; n < s.length - 1; ) {
|
|
6415
6385
|
if (Q1(i)) return {};
|
|
6416
|
-
const
|
|
6417
|
-
!i[
|
|
6386
|
+
const o = J1(s[n]);
|
|
6387
|
+
!i[o] && t && (i[o] = new t()), Object.prototype.hasOwnProperty.call(i, o) ? i = i[o] : i = {}, ++n;
|
|
6418
6388
|
}
|
|
6419
6389
|
return Q1(i) ? {} : {
|
|
6420
6390
|
obj: i,
|
|
6421
|
-
k:
|
|
6391
|
+
k: J1(s[n])
|
|
6422
6392
|
};
|
|
6423
|
-
},
|
|
6393
|
+
}, q1 = (i, e, t) => {
|
|
6424
6394
|
const {
|
|
6425
6395
|
obj: s,
|
|
6426
6396
|
k: n
|
|
@@ -6429,16 +6399,16 @@ const ri = (i, e) => {
|
|
|
6429
6399
|
s[n] = t;
|
|
6430
6400
|
return;
|
|
6431
6401
|
}
|
|
6432
|
-
let
|
|
6433
|
-
for (;
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
},
|
|
6402
|
+
let o = e[e.length - 1], c = e.slice(0, e.length - 1), a = m1(i, c, Object);
|
|
6403
|
+
for (; a.obj === void 0 && c.length; )
|
|
6404
|
+
o = `${c[c.length - 1]}.${o}`, c = c.slice(0, c.length - 1), a = m1(i, c, Object), a && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
|
|
6405
|
+
a.obj[`${a.k}.${o}`] = t;
|
|
6406
|
+
}, ai = (i, e, t, s) => {
|
|
6437
6407
|
const {
|
|
6438
6408
|
obj: n,
|
|
6439
|
-
k:
|
|
6409
|
+
k: o
|
|
6440
6410
|
} = m1(i, e, Object);
|
|
6441
|
-
n[
|
|
6411
|
+
n[o] = n[o] || [], n[o].push(t);
|
|
6442
6412
|
}, M1 = (i, e) => {
|
|
6443
6413
|
const {
|
|
6444
6414
|
obj: t,
|
|
@@ -6446,15 +6416,15 @@ const ri = (i, e) => {
|
|
|
6446
6416
|
} = m1(i, e);
|
|
6447
6417
|
if (t)
|
|
6448
6418
|
return t[s];
|
|
6449
|
-
},
|
|
6419
|
+
}, li = (i, e, t) => {
|
|
6450
6420
|
const s = M1(i, t);
|
|
6451
6421
|
return s !== void 0 ? s : M1(e, t);
|
|
6452
|
-
},
|
|
6422
|
+
}, fe = (i, e, t) => {
|
|
6453
6423
|
for (const s in e)
|
|
6454
|
-
s !== "__proto__" && s !== "constructor" && (s in i ? R(i[s]) || i[s] instanceof String || R(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) :
|
|
6424
|
+
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]) : fe(i[s], e[s], t) : i[s] = e[s]);
|
|
6455
6425
|
return i;
|
|
6456
6426
|
}, h1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
6457
|
-
var
|
|
6427
|
+
var hi = {
|
|
6458
6428
|
"&": "&",
|
|
6459
6429
|
"<": "<",
|
|
6460
6430
|
">": ">",
|
|
@@ -6462,8 +6432,8 @@ var gi = {
|
|
|
6462
6432
|
"'": "'",
|
|
6463
6433
|
"/": "/"
|
|
6464
6434
|
};
|
|
6465
|
-
const
|
|
6466
|
-
class
|
|
6435
|
+
const ci = (i) => R(i) ? i.replace(/[&<>"'\/]/g, (e) => hi[e]) : i;
|
|
6436
|
+
class di {
|
|
6467
6437
|
constructor(e) {
|
|
6468
6438
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
6469
6439
|
}
|
|
@@ -6475,38 +6445,38 @@ class Ci {
|
|
|
6475
6445
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
|
6476
6446
|
}
|
|
6477
6447
|
}
|
|
6478
|
-
const
|
|
6448
|
+
const gi = [" ", ",", "?", "!", ";"], ui = new di(20), Ci = (i, e, t) => {
|
|
6479
6449
|
e = e || "", t = t || "";
|
|
6480
|
-
const s =
|
|
6450
|
+
const s = gi.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
|
|
6481
6451
|
if (s.length === 0) return !0;
|
|
6482
|
-
const n =
|
|
6483
|
-
let
|
|
6484
|
-
if (!
|
|
6452
|
+
const n = ui.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
|
6453
|
+
let o = !n.test(i);
|
|
6454
|
+
if (!o) {
|
|
6485
6455
|
const c = i.indexOf(t);
|
|
6486
|
-
c > 0 && !n.test(i.substring(0, c)) && (
|
|
6456
|
+
c > 0 && !n.test(i.substring(0, c)) && (o = !0);
|
|
6487
6457
|
}
|
|
6488
|
-
return
|
|
6489
|
-
},
|
|
6458
|
+
return o;
|
|
6459
|
+
}, T1 = function(i, e) {
|
|
6490
6460
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
6491
6461
|
if (!i) return;
|
|
6492
6462
|
if (i[e]) return i[e];
|
|
6493
6463
|
const s = e.split(t);
|
|
6494
6464
|
let n = i;
|
|
6495
|
-
for (let
|
|
6465
|
+
for (let o = 0; o < s.length; ) {
|
|
6496
6466
|
if (!n || typeof n != "object")
|
|
6497
6467
|
return;
|
|
6498
|
-
let c,
|
|
6499
|
-
for (let d =
|
|
6500
|
-
if (d !==
|
|
6468
|
+
let c, a = "";
|
|
6469
|
+
for (let d = o; d < s.length; ++d)
|
|
6470
|
+
if (d !== o && (a += t), a += s[d], c = n[a], c !== void 0) {
|
|
6501
6471
|
if (["string", "number", "boolean"].indexOf(typeof c) > -1 && d < s.length - 1)
|
|
6502
6472
|
continue;
|
|
6503
|
-
|
|
6473
|
+
o += d - o + 1;
|
|
6504
6474
|
break;
|
|
6505
6475
|
}
|
|
6506
6476
|
n = c;
|
|
6507
6477
|
}
|
|
6508
6478
|
return n;
|
|
6509
|
-
}, b1 = (i) => i && i.replace("_", "-"),
|
|
6479
|
+
}, b1 = (i) => i && i.replace("_", "-"), pi = {
|
|
6510
6480
|
type: "logger",
|
|
6511
6481
|
log(i) {
|
|
6512
6482
|
this.output("log", i);
|
|
@@ -6528,7 +6498,7 @@ class y1 {
|
|
|
6528
6498
|
}
|
|
6529
6499
|
init(e) {
|
|
6530
6500
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6531
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
6501
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || pi, this.options = t, this.debug = t.debug;
|
|
6532
6502
|
}
|
|
6533
6503
|
log() {
|
|
6534
6504
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
@@ -6563,8 +6533,8 @@ class y1 {
|
|
|
6563
6533
|
return e = e || this.options, e.prefix = e.prefix || this.prefix, new y1(this.logger, e);
|
|
6564
6534
|
}
|
|
6565
6535
|
}
|
|
6566
|
-
var
|
|
6567
|
-
class
|
|
6536
|
+
var q = new y1();
|
|
6537
|
+
class _1 {
|
|
6568
6538
|
constructor() {
|
|
6569
6539
|
this.observers = {};
|
|
6570
6540
|
}
|
|
@@ -6588,17 +6558,17 @@ class H1 {
|
|
|
6588
6558
|
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
6589
6559
|
s[n - 1] = arguments[n];
|
|
6590
6560
|
this.observers[e] && Array.from(this.observers[e].entries()).forEach((c) => {
|
|
6591
|
-
let [
|
|
6561
|
+
let [a, d] = c;
|
|
6592
6562
|
for (let g = 0; g < d; g++)
|
|
6593
|
-
|
|
6563
|
+
a(...s);
|
|
6594
6564
|
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((c) => {
|
|
6595
|
-
let [
|
|
6565
|
+
let [a, d] = c;
|
|
6596
6566
|
for (let g = 0; g < d; g++)
|
|
6597
|
-
|
|
6567
|
+
a.apply(a, [e, ...s]);
|
|
6598
6568
|
});
|
|
6599
6569
|
}
|
|
6600
6570
|
}
|
|
6601
|
-
class
|
|
6571
|
+
class X1 extends _1 {
|
|
6602
6572
|
constructor(e) {
|
|
6603
6573
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
6604
6574
|
ns: ["translation"],
|
|
@@ -6615,41 +6585,41 @@ class ee extends H1 {
|
|
|
6615
6585
|
}
|
|
6616
6586
|
getResource(e, t, s) {
|
|
6617
6587
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6618
|
-
const
|
|
6619
|
-
let
|
|
6620
|
-
e.indexOf(".") > -1 ?
|
|
6621
|
-
const d = M1(this.data,
|
|
6622
|
-
return !d && !t && !s && e.indexOf(".") > -1 && (e =
|
|
6588
|
+
const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
6589
|
+
let a;
|
|
6590
|
+
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)));
|
|
6591
|
+
const d = M1(this.data, a);
|
|
6592
|
+
return !d && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), d || !c || !R(s) ? d : T1(this.data && this.data[e] && this.data[e][t], s, o);
|
|
6623
6593
|
}
|
|
6624
6594
|
addResource(e, t, s, n) {
|
|
6625
|
-
let
|
|
6595
|
+
let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
6626
6596
|
silent: !1
|
|
6627
6597
|
};
|
|
6628
|
-
const c =
|
|
6629
|
-
let
|
|
6630
|
-
s && (
|
|
6598
|
+
const c = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
|
|
6599
|
+
let a = [e, t];
|
|
6600
|
+
s && (a = a.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (a = e.split("."), n = t, t = a[1]), this.addNamespaces(t), q1(this.data, a, n), o.silent || this.emit("added", e, t, s, n);
|
|
6631
6601
|
}
|
|
6632
6602
|
addResources(e, t, s) {
|
|
6633
6603
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
6634
6604
|
silent: !1
|
|
6635
6605
|
};
|
|
6636
|
-
for (const
|
|
6637
|
-
(R(s[
|
|
6606
|
+
for (const o in s)
|
|
6607
|
+
(R(s[o]) || Array.isArray(s[o])) && this.addResource(e, t, o, s[o], {
|
|
6638
6608
|
silent: !0
|
|
6639
6609
|
});
|
|
6640
6610
|
n.silent || this.emit("added", e, t, s);
|
|
6641
6611
|
}
|
|
6642
|
-
addResourceBundle(e, t, s, n,
|
|
6612
|
+
addResourceBundle(e, t, s, n, o) {
|
|
6643
6613
|
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
|
|
6644
6614
|
silent: !1,
|
|
6645
6615
|
skipCopy: !1
|
|
6646
|
-
},
|
|
6647
|
-
e.indexOf(".") > -1 && (
|
|
6648
|
-
let d = M1(this.data,
|
|
6649
|
-
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ?
|
|
6616
|
+
}, a = [e, t];
|
|
6617
|
+
e.indexOf(".") > -1 && (a = e.split("."), n = s, s = t, t = a[1]), this.addNamespaces(t);
|
|
6618
|
+
let d = M1(this.data, a) || {};
|
|
6619
|
+
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? fe(d, s, o) : d = {
|
|
6650
6620
|
...d,
|
|
6651
6621
|
...s
|
|
6652
|
-
},
|
|
6622
|
+
}, q1(this.data, a, d), c.silent || this.emit("added", e, t, s);
|
|
6653
6623
|
}
|
|
6654
6624
|
removeResourceBundle(e, t) {
|
|
6655
6625
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -6673,22 +6643,22 @@ class ee extends H1 {
|
|
|
6673
6643
|
return this.data;
|
|
6674
6644
|
}
|
|
6675
6645
|
}
|
|
6676
|
-
var
|
|
6646
|
+
var me = {
|
|
6677
6647
|
processors: {},
|
|
6678
6648
|
addPostProcessor(i) {
|
|
6679
6649
|
this.processors[i.name] = i;
|
|
6680
6650
|
},
|
|
6681
6651
|
handle(i, e, t, s, n) {
|
|
6682
|
-
return i.forEach((
|
|
6683
|
-
this.processors[
|
|
6652
|
+
return i.forEach((o) => {
|
|
6653
|
+
this.processors[o] && (e = this.processors[o].process(e, t, s, n));
|
|
6684
6654
|
}), e;
|
|
6685
6655
|
}
|
|
6686
6656
|
};
|
|
6687
|
-
const
|
|
6688
|
-
class E1 extends
|
|
6657
|
+
const ee = {};
|
|
6658
|
+
class E1 extends _1 {
|
|
6689
6659
|
constructor(e) {
|
|
6690
6660
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6691
|
-
super(),
|
|
6661
|
+
super(), ri(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = q.create("translator");
|
|
6692
6662
|
}
|
|
6693
6663
|
changeLanguage(e) {
|
|
6694
6664
|
e && (this.language = e);
|
|
@@ -6706,21 +6676,21 @@ class E1 extends H1 {
|
|
|
6706
6676
|
let s = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
|
|
6707
6677
|
s === void 0 && (s = ":");
|
|
6708
6678
|
const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
6709
|
-
let
|
|
6710
|
-
const c = s && e.indexOf(s) > -1,
|
|
6711
|
-
if (c && !
|
|
6679
|
+
let o = t.ns || this.options.defaultNS || [];
|
|
6680
|
+
const c = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Ci(e, s, n);
|
|
6681
|
+
if (c && !a) {
|
|
6712
6682
|
const d = e.match(this.interpolator.nestingRegexp);
|
|
6713
6683
|
if (d && d.length > 0)
|
|
6714
6684
|
return {
|
|
6715
6685
|
key: e,
|
|
6716
|
-
namespaces: R(
|
|
6686
|
+
namespaces: R(o) ? [o] : o
|
|
6717
6687
|
};
|
|
6718
6688
|
const g = e.split(s);
|
|
6719
|
-
(s !== n || s === n && this.options.ns.indexOf(g[0]) > -1) && (
|
|
6689
|
+
(s !== n || s === n && this.options.ns.indexOf(g[0]) > -1) && (o = g.shift()), e = g.join(n);
|
|
6720
6690
|
}
|
|
6721
6691
|
return {
|
|
6722
6692
|
key: e,
|
|
6723
|
-
namespaces: R(
|
|
6693
|
+
namespaces: R(o) ? [o] : o
|
|
6724
6694
|
};
|
|
6725
6695
|
}
|
|
6726
6696
|
translate(e, t, s) {
|
|
@@ -6728,10 +6698,10 @@ class E1 extends H1 {
|
|
|
6728
6698
|
...t
|
|
6729
6699
|
}), t || (t = {}), e == null) return "";
|
|
6730
6700
|
Array.isArray(e) || (e = [String(e)]);
|
|
6731
|
-
const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails,
|
|
6701
|
+
const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, o = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
6732
6702
|
key: c,
|
|
6733
|
-
namespaces:
|
|
6734
|
-
} = this.extractFromKey(e[e.length - 1], t), d =
|
|
6703
|
+
namespaces: a
|
|
6704
|
+
} = this.extractFromKey(e[e.length - 1], t), d = a[a.length - 1], g = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
6735
6705
|
if (g && g.toLowerCase() === "cimode") {
|
|
6736
6706
|
if (l) {
|
|
6737
6707
|
const f = t.nsSeparator || this.options.nsSeparator;
|
|
@@ -6755,68 +6725,68 @@ class E1 extends H1 {
|
|
|
6755
6725
|
}
|
|
6756
6726
|
const h = this.resolve(e, t);
|
|
6757
6727
|
let u = h && h.res;
|
|
6758
|
-
const p = h && h.usedKey || c,
|
|
6759
|
-
if (M && u && S && m.indexOf(
|
|
6728
|
+
const p = h && h.usedKey || c, k = h && h.exactUsedKey || c, v = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"], O = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject, S = !R(u) && typeof u != "boolean" && typeof u != "number";
|
|
6729
|
+
if (M && u && S && m.indexOf(v) < 0 && !(R(O) && Array.isArray(u))) {
|
|
6760
6730
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
6761
6731
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
6762
6732
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
|
|
6763
6733
|
...t,
|
|
6764
|
-
ns:
|
|
6734
|
+
ns: a
|
|
6765
6735
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
|
6766
6736
|
return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
|
|
6767
6737
|
}
|
|
6768
|
-
if (
|
|
6769
|
-
const f = Array.isArray(u), N = f ? [] : {}, x = f ?
|
|
6770
|
-
for (const
|
|
6771
|
-
if (Object.prototype.hasOwnProperty.call(u,
|
|
6772
|
-
const P = `${x}${
|
|
6773
|
-
N[
|
|
6738
|
+
if (o) {
|
|
6739
|
+
const f = Array.isArray(u), N = f ? [] : {}, x = f ? k : p;
|
|
6740
|
+
for (const L in u)
|
|
6741
|
+
if (Object.prototype.hasOwnProperty.call(u, L)) {
|
|
6742
|
+
const P = `${x}${o}${L}`;
|
|
6743
|
+
N[L] = this.translate(P, {
|
|
6774
6744
|
...t,
|
|
6775
6745
|
joinArrays: !1,
|
|
6776
|
-
ns:
|
|
6777
|
-
}), N[
|
|
6746
|
+
ns: a
|
|
6747
|
+
}), N[L] === P && (N[L] = u[L]);
|
|
6778
6748
|
}
|
|
6779
6749
|
u = N;
|
|
6780
6750
|
}
|
|
6781
|
-
} else if (M && R(
|
|
6782
|
-
u = u.join(
|
|
6751
|
+
} else if (M && R(O) && Array.isArray(u))
|
|
6752
|
+
u = u.join(O), u && (u = this.extendTranslation(u, e, t, s));
|
|
6783
6753
|
else {
|
|
6784
6754
|
let f = !1, N = !1;
|
|
6785
|
-
const x = t.count !== void 0 && !R(t.count),
|
|
6755
|
+
const x = t.count !== void 0 && !R(t.count), L = E1.hasDefaultValue(t), P = x ? this.pluralResolver.getSuffix(g, t.count, t) : "", J = t.ordinal && x ? this.pluralResolver.getSuffix(g, t.count, {
|
|
6786
6756
|
ordinal: !1
|
|
6787
|
-
}) : "", F = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(),
|
|
6788
|
-
!this.isValidLookup(u) &&
|
|
6789
|
-
const
|
|
6757
|
+
}) : "", F = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), _ = F && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${P}`] || t[`defaultValue${J}`] || t.defaultValue;
|
|
6758
|
+
!this.isValidLookup(u) && L && (f = !0, u = _), this.isValidLookup(u) || (N = !0, u = c);
|
|
6759
|
+
const H = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : u, V = L && _ !== u && this.options.updateMissing;
|
|
6790
6760
|
if (N || f || V) {
|
|
6791
|
-
if (this.logger.log(V ? "updateKey" : "missingKey", g, d, c, V ?
|
|
6792
|
-
const
|
|
6761
|
+
if (this.logger.log(V ? "updateKey" : "missingKey", g, d, c, V ? _ : u), o) {
|
|
6762
|
+
const I = this.resolve(c, {
|
|
6793
6763
|
...t,
|
|
6794
6764
|
keySeparator: !1
|
|
6795
6765
|
});
|
|
6796
|
-
|
|
6797
|
-
}
|
|
6798
|
-
let
|
|
6799
|
-
const
|
|
6800
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
6801
|
-
for (let
|
|
6802
|
-
|
|
6803
|
-
else this.options.saveMissingTo === "all" ?
|
|
6804
|
-
const U = (
|
|
6805
|
-
const e1 =
|
|
6806
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
6766
|
+
I && I.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.");
|
|
6767
|
+
}
|
|
6768
|
+
let T = [];
|
|
6769
|
+
const j = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
6770
|
+
if (this.options.saveMissingTo === "fallback" && j && j[0])
|
|
6771
|
+
for (let I = 0; I < j.length; I++)
|
|
6772
|
+
T.push(j[I]);
|
|
6773
|
+
else this.options.saveMissingTo === "all" ? T = this.languageUtils.toResolveHierarchy(t.lng || this.language) : T.push(t.lng || this.language);
|
|
6774
|
+
const U = (I, K, W) => {
|
|
6775
|
+
const e1 = L && W !== u ? W : H;
|
|
6776
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(I, d, K, e1, V, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(I, d, K, e1, V, t), this.emit("missingKey", I, d, K, u);
|
|
6807
6777
|
};
|
|
6808
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && x ?
|
|
6809
|
-
const K = this.pluralResolver.getSuffixes(
|
|
6810
|
-
F && t[`defaultValue${this.options.pluralSeparator}zero`] && K.indexOf(`${this.options.pluralSeparator}zero`) < 0 && K.push(`${this.options.pluralSeparator}zero`), K.forEach((
|
|
6811
|
-
U([
|
|
6778
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && x ? T.forEach((I) => {
|
|
6779
|
+
const K = this.pluralResolver.getSuffixes(I, t);
|
|
6780
|
+
F && t[`defaultValue${this.options.pluralSeparator}zero`] && K.indexOf(`${this.options.pluralSeparator}zero`) < 0 && K.push(`${this.options.pluralSeparator}zero`), K.forEach((W) => {
|
|
6781
|
+
U([I], c + W, t[`defaultValue${W}`] || _);
|
|
6812
6782
|
});
|
|
6813
|
-
}) : U(
|
|
6783
|
+
}) : U(T, c, _));
|
|
6814
6784
|
}
|
|
6815
6785
|
u = this.extendTranslation(u, e, t, h, s), N && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (N || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, f ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
|
|
6816
6786
|
}
|
|
6817
6787
|
return n ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
|
|
6818
6788
|
}
|
|
6819
|
-
extendTranslation(e, t, s, n,
|
|
6789
|
+
extendTranslation(e, t, s, n, o) {
|
|
6820
6790
|
var c = this;
|
|
6821
6791
|
if (this.i18nFormat && this.i18nFormat.parse)
|
|
6822
6792
|
e = this.i18nFormat.parse(e, {
|
|
@@ -6848,13 +6818,13 @@ class E1 extends H1 {
|
|
|
6848
6818
|
l < p && (s.nest = !1);
|
|
6849
6819
|
}
|
|
6850
6820
|
!s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
6851
|
-
for (var u = arguments.length, p = new Array(u),
|
|
6852
|
-
p[
|
|
6853
|
-
return
|
|
6821
|
+
for (var u = arguments.length, p = new Array(u), k = 0; k < u; k++)
|
|
6822
|
+
p[k] = arguments[k];
|
|
6823
|
+
return o && o[0] === p[0] && !s.context ? (c.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : c.translate(...p, t);
|
|
6854
6824
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
6855
6825
|
}
|
|
6856
|
-
const
|
|
6857
|
-
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e =
|
|
6826
|
+
const a = s.postProcess || this.options.postProcess, d = R(a) ? [a] : a;
|
|
6827
|
+
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = me.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
6858
6828
|
i18nResolved: {
|
|
6859
6829
|
...n,
|
|
6860
6830
|
usedParams: this.getUsedParamsDetails(s)
|
|
@@ -6863,41 +6833,41 @@ class E1 extends H1 {
|
|
|
6863
6833
|
} : s, this)), e;
|
|
6864
6834
|
}
|
|
6865
6835
|
resolve(e) {
|
|
6866
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n,
|
|
6836
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o, c, a;
|
|
6867
6837
|
return R(e) && (e = [e]), e.forEach((d) => {
|
|
6868
6838
|
if (this.isValidLookup(s)) return;
|
|
6869
6839
|
const g = this.extractFromKey(d, t), l = g.key;
|
|
6870
6840
|
n = l;
|
|
6871
6841
|
let h = g.namespaces;
|
|
6872
6842
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
|
6873
|
-
const u = t.count !== void 0 && !R(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(),
|
|
6843
|
+
const u = t.count !== void 0 && !R(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), k = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
6874
6844
|
h.forEach((m) => {
|
|
6875
|
-
this.isValidLookup(s) || (
|
|
6845
|
+
this.isValidLookup(s) || (a = m, !ee[`${v[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (ee[`${v[0]}-${m}`] = !0, this.logger.warn(`key "${n}" for languages "${v.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!!!")), v.forEach((O) => {
|
|
6876
6846
|
if (this.isValidLookup(s)) return;
|
|
6877
|
-
c =
|
|
6847
|
+
c = O;
|
|
6878
6848
|
const M = [l];
|
|
6879
6849
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
6880
|
-
this.i18nFormat.addLookupKeys(M, l,
|
|
6850
|
+
this.i18nFormat.addLookupKeys(M, l, O, m, t);
|
|
6881
6851
|
else {
|
|
6882
6852
|
let f;
|
|
6883
|
-
u && (f = this.pluralResolver.getSuffix(
|
|
6853
|
+
u && (f = this.pluralResolver.getSuffix(O, t.count, t));
|
|
6884
6854
|
const N = `${this.options.pluralSeparator}zero`, x = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
6885
|
-
if (u && (M.push(l + f), t.ordinal && f.indexOf(x) === 0 && M.push(l + f.replace(x, this.options.pluralSeparator)), p && M.push(l + N)),
|
|
6886
|
-
const
|
|
6887
|
-
M.push(
|
|
6855
|
+
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)), k) {
|
|
6856
|
+
const L = `${l}${this.options.contextSeparator}${t.context}`;
|
|
6857
|
+
M.push(L), 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));
|
|
6888
6858
|
}
|
|
6889
6859
|
}
|
|
6890
6860
|
let S;
|
|
6891
6861
|
for (; S = M.pop(); )
|
|
6892
|
-
this.isValidLookup(s) || (
|
|
6862
|
+
this.isValidLookup(s) || (o = S, s = this.getResource(O, m, S, t));
|
|
6893
6863
|
}));
|
|
6894
6864
|
});
|
|
6895
6865
|
}), {
|
|
6896
6866
|
res: s,
|
|
6897
6867
|
usedKey: n,
|
|
6898
|
-
exactUsedKey:
|
|
6868
|
+
exactUsedKey: o,
|
|
6899
6869
|
usedLng: c,
|
|
6900
|
-
usedNS:
|
|
6870
|
+
usedNS: a
|
|
6901
6871
|
};
|
|
6902
6872
|
}
|
|
6903
6873
|
isValidLookup(e) {
|
|
@@ -6918,8 +6888,8 @@ class E1 extends H1 {
|
|
|
6918
6888
|
n = {
|
|
6919
6889
|
...n
|
|
6920
6890
|
};
|
|
6921
|
-
for (const
|
|
6922
|
-
delete n[
|
|
6891
|
+
for (const o of t)
|
|
6892
|
+
delete n[o];
|
|
6923
6893
|
}
|
|
6924
6894
|
return n;
|
|
6925
6895
|
}
|
|
@@ -6931,10 +6901,10 @@ class E1 extends H1 {
|
|
|
6931
6901
|
return !1;
|
|
6932
6902
|
}
|
|
6933
6903
|
}
|
|
6934
|
-
const
|
|
6935
|
-
class
|
|
6904
|
+
const I1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
|
6905
|
+
class te {
|
|
6936
6906
|
constructor(e) {
|
|
6937
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
6907
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = q.create("languageUtils");
|
|
6938
6908
|
}
|
|
6939
6909
|
getScriptPartFromCode(e) {
|
|
6940
6910
|
if (e = b1(e), !e || e.indexOf("-") < 0) return null;
|
|
@@ -6956,7 +6926,7 @@ class ie {
|
|
|
6956
6926
|
}
|
|
6957
6927
|
const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
6958
6928
|
let s = e.split("-");
|
|
6959
|
-
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] =
|
|
6929
|
+
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] = I1(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] = I1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = I1(s[2].toLowerCase()))), s.join("-");
|
|
6960
6930
|
}
|
|
6961
6931
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
6962
6932
|
}
|
|
@@ -6974,10 +6944,10 @@ class ie {
|
|
|
6974
6944
|
if (t) return;
|
|
6975
6945
|
const n = this.getLanguagePartFromCode(s);
|
|
6976
6946
|
if (this.isSupportedCode(n)) return t = n;
|
|
6977
|
-
t = this.options.supportedLngs.find((
|
|
6978
|
-
if (
|
|
6979
|
-
if (!(
|
|
6980
|
-
return
|
|
6947
|
+
t = this.options.supportedLngs.find((o) => {
|
|
6948
|
+
if (o === n) return o;
|
|
6949
|
+
if (!(o.indexOf("-") < 0 && n.indexOf("-") < 0) && (o.indexOf("-") > 0 && n.indexOf("-") < 0 && o.substring(0, o.indexOf("-")) === n || o.indexOf(n) === 0 && n.length > 1))
|
|
6950
|
+
return o;
|
|
6981
6951
|
});
|
|
6982
6952
|
}), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
|
|
6983
6953
|
}
|
|
@@ -6989,15 +6959,15 @@ class ie {
|
|
|
6989
6959
|
return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
|
|
6990
6960
|
}
|
|
6991
6961
|
toResolveHierarchy(e, t) {
|
|
6992
|
-
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [],
|
|
6962
|
+
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], o = (c) => {
|
|
6993
6963
|
c && (this.isSupportedCode(c) ? n.push(c) : this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`));
|
|
6994
6964
|
};
|
|
6995
|
-
return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" &&
|
|
6996
|
-
n.indexOf(c) < 0 &&
|
|
6965
|
+
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((c) => {
|
|
6966
|
+
n.indexOf(c) < 0 && o(this.formatLanguageCode(c));
|
|
6997
6967
|
}), n;
|
|
6998
6968
|
}
|
|
6999
6969
|
}
|
|
7000
|
-
let
|
|
6970
|
+
let fi = [{
|
|
7001
6971
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
7002
6972
|
nr: [1, 2],
|
|
7003
6973
|
fc: 1
|
|
@@ -7089,7 +7059,7 @@ let ki = [{
|
|
|
7089
7059
|
lngs: ["he", "iw"],
|
|
7090
7060
|
nr: [1, 2, 20, 21],
|
|
7091
7061
|
fc: 22
|
|
7092
|
-
}],
|
|
7062
|
+
}], mi = {
|
|
7093
7063
|
1: (i) => +(i > 1),
|
|
7094
7064
|
2: (i) => +(i != 1),
|
|
7095
7065
|
3: (i) => 0,
|
|
@@ -7113,28 +7083,28 @@ let ki = [{
|
|
|
7113
7083
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
|
7114
7084
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
|
7115
7085
|
};
|
|
7116
|
-
const
|
|
7086
|
+
const wi = ["v1", "v2", "v3"], ki = ["v4"], ie = {
|
|
7117
7087
|
zero: 0,
|
|
7118
7088
|
one: 1,
|
|
7119
7089
|
two: 2,
|
|
7120
7090
|
few: 3,
|
|
7121
7091
|
many: 4,
|
|
7122
7092
|
other: 5
|
|
7123
|
-
},
|
|
7093
|
+
}, Li = () => {
|
|
7124
7094
|
const i = {};
|
|
7125
|
-
return
|
|
7095
|
+
return fi.forEach((e) => {
|
|
7126
7096
|
e.lngs.forEach((t) => {
|
|
7127
7097
|
i[t] = {
|
|
7128
7098
|
numbers: e.nr,
|
|
7129
|
-
plurals:
|
|
7099
|
+
plurals: mi[e.fc]
|
|
7130
7100
|
};
|
|
7131
7101
|
});
|
|
7132
7102
|
}), i;
|
|
7133
7103
|
};
|
|
7134
|
-
class
|
|
7104
|
+
class vi {
|
|
7135
7105
|
constructor(e) {
|
|
7136
7106
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7137
|
-
this.languageUtils = e, this.options = t, this.logger =
|
|
7107
|
+
this.languageUtils = e, this.options = t, this.logger = q.create("pluralResolver"), (!this.options.compatibilityJSON || ki.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 = Li(), this.pluralRulesCache = {};
|
|
7138
7108
|
}
|
|
7139
7109
|
addRule(e, t) {
|
|
7140
7110
|
this.rules[e] = t;
|
|
@@ -7145,12 +7115,12 @@ class Ri {
|
|
|
7145
7115
|
getRule(e) {
|
|
7146
7116
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7147
7117
|
if (this.shouldUseIntlApi()) {
|
|
7148
|
-
const s = b1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal",
|
|
7118
|
+
const s = b1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", o = JSON.stringify({
|
|
7149
7119
|
cleanedCode: s,
|
|
7150
7120
|
type: n
|
|
7151
7121
|
});
|
|
7152
|
-
if (
|
|
7153
|
-
return this.pluralRulesCache[
|
|
7122
|
+
if (o in this.pluralRulesCache)
|
|
7123
|
+
return this.pluralRulesCache[o];
|
|
7154
7124
|
let c;
|
|
7155
7125
|
try {
|
|
7156
7126
|
c = new Intl.PluralRules(s, {
|
|
@@ -7161,7 +7131,7 @@ class Ri {
|
|
|
7161
7131
|
const d = this.languageUtils.getLanguagePartFromCode(e);
|
|
7162
7132
|
c = this.getRule(d, t);
|
|
7163
7133
|
}
|
|
7164
|
-
return this.pluralRulesCache[
|
|
7134
|
+
return this.pluralRulesCache[o] = c, c;
|
|
7165
7135
|
}
|
|
7166
7136
|
return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
|
|
7167
7137
|
}
|
|
@@ -7177,7 +7147,7 @@ class Ri {
|
|
|
7177
7147
|
getSuffixes(e) {
|
|
7178
7148
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7179
7149
|
const s = this.getRule(e, t);
|
|
7180
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n,
|
|
7150
|
+
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, o) => ie[n] - ie[o]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
|
|
7181
7151
|
}
|
|
7182
7152
|
getSuffix(e, t) {
|
|
7183
7153
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -7188,21 +7158,21 @@ class Ri {
|
|
|
7188
7158
|
const s = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t));
|
|
7189
7159
|
let n = e.numbers[s];
|
|
7190
7160
|
this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 && (n === 2 ? n = "plural" : n === 1 && (n = ""));
|
|
7191
|
-
const
|
|
7192
|
-
return this.options.compatibilityJSON === "v1" ? n === 1 ? "" : typeof n == "number" ? `_plural_${n.toString()}` :
|
|
7161
|
+
const o = () => this.options.prepend && n.toString() ? this.options.prepend + n.toString() : n.toString();
|
|
7162
|
+
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();
|
|
7193
7163
|
}
|
|
7194
7164
|
shouldUseIntlApi() {
|
|
7195
|
-
return !
|
|
7165
|
+
return !wi.includes(this.options.compatibilityJSON);
|
|
7196
7166
|
}
|
|
7197
7167
|
}
|
|
7198
|
-
const
|
|
7199
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0,
|
|
7200
|
-
return !
|
|
7201
|
-
},
|
|
7202
|
-
class
|
|
7168
|
+
const se = function(i, e, t) {
|
|
7169
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = li(i, e, t);
|
|
7170
|
+
return !o && n && R(t) && (o = T1(i, t, s), o === void 0 && (o = T1(e, t, s))), o;
|
|
7171
|
+
}, O1 = (i) => i.replace(/\$/g, "$$$$");
|
|
7172
|
+
class Ni {
|
|
7203
7173
|
constructor() {
|
|
7204
7174
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7205
|
-
this.logger =
|
|
7175
|
+
this.logger = q.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
7206
7176
|
}
|
|
7207
7177
|
init() {
|
|
7208
7178
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -7213,22 +7183,22 @@ class Mi {
|
|
|
7213
7183
|
escape: t,
|
|
7214
7184
|
escapeValue: s,
|
|
7215
7185
|
useRawValueToEscape: n,
|
|
7216
|
-
prefix:
|
|
7186
|
+
prefix: o,
|
|
7217
7187
|
prefixEscaped: c,
|
|
7218
|
-
suffix:
|
|
7188
|
+
suffix: a,
|
|
7219
7189
|
suffixEscaped: d,
|
|
7220
7190
|
formatSeparator: g,
|
|
7221
7191
|
unescapeSuffix: l,
|
|
7222
7192
|
unescapePrefix: h,
|
|
7223
7193
|
nestingPrefix: u,
|
|
7224
7194
|
nestingPrefixEscaped: p,
|
|
7225
|
-
nestingSuffix:
|
|
7226
|
-
nestingSuffixEscaped:
|
|
7195
|
+
nestingSuffix: k,
|
|
7196
|
+
nestingSuffixEscaped: v,
|
|
7227
7197
|
nestingOptionsSeparator: m,
|
|
7228
|
-
maxReplaces:
|
|
7198
|
+
maxReplaces: O,
|
|
7229
7199
|
alwaysFormat: M
|
|
7230
7200
|
} = e.interpolation;
|
|
7231
|
-
this.escape = t !== void 0 ? t :
|
|
7201
|
+
this.escape = t !== void 0 ? t : ci, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? h1(o) : c || "{{", this.suffix = a ? h1(a) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = u ? h1(u) : p || h1("$t("), this.nestingSuffix = k ? h1(k) : v || h1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = O || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
|
|
7232
7202
|
}
|
|
7233
7203
|
reset() {
|
|
7234
7204
|
this.options && this.init(this.options);
|
|
@@ -7238,69 +7208,69 @@ class Mi {
|
|
|
7238
7208
|
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}`);
|
|
7239
7209
|
}
|
|
7240
7210
|
interpolate(e, t, s, n) {
|
|
7241
|
-
let
|
|
7211
|
+
let o, c, a;
|
|
7242
7212
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
|
|
7243
7213
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
7244
|
-
const
|
|
7245
|
-
return this.alwaysFormat ? this.format(
|
|
7214
|
+
const O = se(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
7215
|
+
return this.alwaysFormat ? this.format(O, void 0, s, {
|
|
7246
7216
|
...n,
|
|
7247
7217
|
...t,
|
|
7248
7218
|
interpolationkey: p
|
|
7249
|
-
}) :
|
|
7219
|
+
}) : O;
|
|
7250
7220
|
}
|
|
7251
|
-
const
|
|
7252
|
-
return this.format(
|
|
7221
|
+
const k = p.split(this.formatSeparator), v = k.shift().trim(), m = k.join(this.formatSeparator).trim();
|
|
7222
|
+
return this.format(se(t, d, v, this.options.keySeparator, this.options.ignoreJSONStructure), m, s, {
|
|
7253
7223
|
...n,
|
|
7254
7224
|
...t,
|
|
7255
|
-
interpolationkey:
|
|
7225
|
+
interpolationkey: v
|
|
7256
7226
|
});
|
|
7257
7227
|
};
|
|
7258
7228
|
this.resetRegExp();
|
|
7259
7229
|
const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, h = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
7260
7230
|
return [{
|
|
7261
7231
|
regex: this.regexpUnescape,
|
|
7262
|
-
safeValue: (p) =>
|
|
7232
|
+
safeValue: (p) => O1(p)
|
|
7263
7233
|
}, {
|
|
7264
7234
|
regex: this.regexp,
|
|
7265
|
-
safeValue: (p) => this.escapeValue ?
|
|
7235
|
+
safeValue: (p) => this.escapeValue ? O1(this.escape(p)) : O1(p)
|
|
7266
7236
|
}].forEach((p) => {
|
|
7267
|
-
for (
|
|
7268
|
-
const
|
|
7269
|
-
if (c = g(
|
|
7237
|
+
for (a = 0; o = p.regex.exec(e); ) {
|
|
7238
|
+
const k = o[1].trim();
|
|
7239
|
+
if (c = g(k), c === void 0)
|
|
7270
7240
|
if (typeof l == "function") {
|
|
7271
|
-
const m = l(e,
|
|
7241
|
+
const m = l(e, o, n);
|
|
7272
7242
|
c = R(m) ? m : "";
|
|
7273
|
-
} else if (n && Object.prototype.hasOwnProperty.call(n,
|
|
7243
|
+
} else if (n && Object.prototype.hasOwnProperty.call(n, k))
|
|
7274
7244
|
c = "";
|
|
7275
7245
|
else if (h) {
|
|
7276
|
-
c =
|
|
7246
|
+
c = o[0];
|
|
7277
7247
|
continue;
|
|
7278
7248
|
} else
|
|
7279
|
-
this.logger.warn(`missed to pass in variable ${
|
|
7280
|
-
else !R(c) && !this.useRawValueToEscape && (c =
|
|
7281
|
-
const
|
|
7282
|
-
if (e = e.replace(
|
|
7249
|
+
this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), c = "";
|
|
7250
|
+
else !R(c) && !this.useRawValueToEscape && (c = z1(c));
|
|
7251
|
+
const v = p.safeValue(c);
|
|
7252
|
+
if (e = e.replace(o[0], v), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= o[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
|
|
7283
7253
|
break;
|
|
7284
7254
|
}
|
|
7285
7255
|
}), e;
|
|
7286
7256
|
}
|
|
7287
7257
|
nest(e, t) {
|
|
7288
|
-
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n,
|
|
7289
|
-
const
|
|
7258
|
+
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, o, c;
|
|
7259
|
+
const a = (d, g) => {
|
|
7290
7260
|
const l = this.nestingOptionsSeparator;
|
|
7291
7261
|
if (d.indexOf(l) < 0) return d;
|
|
7292
7262
|
const h = d.split(new RegExp(`${l}[ ]*{`));
|
|
7293
7263
|
let u = `{${h[1]}`;
|
|
7294
7264
|
d = h[0], u = this.interpolate(u, c);
|
|
7295
|
-
const p = u.match(/'/g),
|
|
7296
|
-
(p && p.length % 2 === 0 && !
|
|
7265
|
+
const p = u.match(/'/g), k = u.match(/"/g);
|
|
7266
|
+
(p && p.length % 2 === 0 && !k || k.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
|
|
7297
7267
|
try {
|
|
7298
7268
|
c = JSON.parse(u), g && (c = {
|
|
7299
7269
|
...g,
|
|
7300
7270
|
...c
|
|
7301
7271
|
});
|
|
7302
|
-
} catch (
|
|
7303
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${d}`,
|
|
7272
|
+
} catch (v) {
|
|
7273
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, v), `${d}${l}${u}`;
|
|
7304
7274
|
}
|
|
7305
7275
|
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, d;
|
|
7306
7276
|
};
|
|
@@ -7314,16 +7284,16 @@ class Mi {
|
|
|
7314
7284
|
const l = n[1].split(this.formatSeparator).map((h) => h.trim());
|
|
7315
7285
|
n[1] = l.shift(), d = l, g = !0;
|
|
7316
7286
|
}
|
|
7317
|
-
if (
|
|
7318
|
-
R(
|
|
7287
|
+
if (o = t(a.call(this, n[1].trim(), c), c), o && n[0] === e && !R(o)) return o;
|
|
7288
|
+
R(o) || (o = z1(o)), o || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), o = ""), g && (o = d.reduce((l, h) => this.format(l, h, s.lng, {
|
|
7319
7289
|
...s,
|
|
7320
7290
|
interpolationkey: n[1].trim()
|
|
7321
|
-
}),
|
|
7291
|
+
}), o.trim())), e = e.replace(n[0], o), this.regexp.lastIndex = 0;
|
|
7322
7292
|
}
|
|
7323
7293
|
return e;
|
|
7324
7294
|
}
|
|
7325
7295
|
}
|
|
7326
|
-
const
|
|
7296
|
+
const xi = (i) => {
|
|
7327
7297
|
let e = i.toLowerCase().trim();
|
|
7328
7298
|
const t = {};
|
|
7329
7299
|
if (i.indexOf("(") > -1) {
|
|
@@ -7332,7 +7302,7 @@ const bi = (i) => {
|
|
|
7332
7302
|
const n = s[1].substring(0, s[1].length - 1);
|
|
7333
7303
|
e === "currency" && n.indexOf(":") < 0 ? t.currency || (t.currency = n.trim()) : e === "relativetime" && n.indexOf(":") < 0 ? t.range || (t.range = n.trim()) : n.split(";").forEach((c) => {
|
|
7334
7304
|
if (c) {
|
|
7335
|
-
const [
|
|
7305
|
+
const [a, ...d] = c.split(":"), g = d.join(":").trim().replace(/^'+|'+$/g, ""), l = a.trim();
|
|
7336
7306
|
t[l] || (t[l] = g), g === "false" && (t[l] = !1), g === "true" && (t[l] = !0), isNaN(g) || (t[l] = parseInt(g, 10));
|
|
7337
7307
|
}
|
|
7338
7308
|
});
|
|
@@ -7344,50 +7314,50 @@ const bi = (i) => {
|
|
|
7344
7314
|
}, c1 = (i) => {
|
|
7345
7315
|
const e = {};
|
|
7346
7316
|
return (t, s, n) => {
|
|
7347
|
-
let
|
|
7348
|
-
n && n.interpolationkey && n.formatParams && n.formatParams[n.interpolationkey] && n[n.interpolationkey] && (
|
|
7349
|
-
...
|
|
7317
|
+
let o = n;
|
|
7318
|
+
n && n.interpolationkey && n.formatParams && n.formatParams[n.interpolationkey] && n[n.interpolationkey] && (o = {
|
|
7319
|
+
...o,
|
|
7350
7320
|
[n.interpolationkey]: void 0
|
|
7351
7321
|
});
|
|
7352
|
-
const c = s + JSON.stringify(
|
|
7353
|
-
let
|
|
7354
|
-
return
|
|
7322
|
+
const c = s + JSON.stringify(o);
|
|
7323
|
+
let a = e[c];
|
|
7324
|
+
return a || (a = i(b1(s), n), e[c] = a), a(t);
|
|
7355
7325
|
};
|
|
7356
7326
|
};
|
|
7357
|
-
class
|
|
7327
|
+
class Ri {
|
|
7358
7328
|
constructor() {
|
|
7359
7329
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7360
|
-
this.logger =
|
|
7330
|
+
this.logger = q.create("formatter"), this.options = e, this.formats = {
|
|
7361
7331
|
number: c1((t, s) => {
|
|
7362
7332
|
const n = new Intl.NumberFormat(t, {
|
|
7363
7333
|
...s
|
|
7364
7334
|
});
|
|
7365
|
-
return (
|
|
7335
|
+
return (o) => n.format(o);
|
|
7366
7336
|
}),
|
|
7367
7337
|
currency: c1((t, s) => {
|
|
7368
7338
|
const n = new Intl.NumberFormat(t, {
|
|
7369
7339
|
...s,
|
|
7370
7340
|
style: "currency"
|
|
7371
7341
|
});
|
|
7372
|
-
return (
|
|
7342
|
+
return (o) => n.format(o);
|
|
7373
7343
|
}),
|
|
7374
7344
|
datetime: c1((t, s) => {
|
|
7375
7345
|
const n = new Intl.DateTimeFormat(t, {
|
|
7376
7346
|
...s
|
|
7377
7347
|
});
|
|
7378
|
-
return (
|
|
7348
|
+
return (o) => n.format(o);
|
|
7379
7349
|
}),
|
|
7380
7350
|
relativetime: c1((t, s) => {
|
|
7381
7351
|
const n = new Intl.RelativeTimeFormat(t, {
|
|
7382
7352
|
...s
|
|
7383
7353
|
});
|
|
7384
|
-
return (
|
|
7354
|
+
return (o) => n.format(o, s.range || "day");
|
|
7385
7355
|
}),
|
|
7386
7356
|
list: c1((t, s) => {
|
|
7387
7357
|
const n = new Intl.ListFormat(t, {
|
|
7388
7358
|
...s
|
|
7389
7359
|
});
|
|
7390
|
-
return (
|
|
7360
|
+
return (o) => n.format(o);
|
|
7391
7361
|
})
|
|
7392
7362
|
}, this.init(e);
|
|
7393
7363
|
}
|
|
@@ -7405,21 +7375,21 @@ class yi {
|
|
|
7405
7375
|
}
|
|
7406
7376
|
format(e, t, s) {
|
|
7407
7377
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
7408
|
-
const
|
|
7409
|
-
if (
|
|
7410
|
-
const
|
|
7411
|
-
|
|
7378
|
+
const o = t.split(this.formatSeparator);
|
|
7379
|
+
if (o.length > 1 && o[0].indexOf("(") > 1 && o[0].indexOf(")") < 0 && o.find((a) => a.indexOf(")") > -1)) {
|
|
7380
|
+
const a = o.findIndex((d) => d.indexOf(")") > -1);
|
|
7381
|
+
o[0] = [o[0], ...o.splice(1, a)].join(this.formatSeparator);
|
|
7412
7382
|
}
|
|
7413
|
-
return
|
|
7383
|
+
return o.reduce((a, d) => {
|
|
7414
7384
|
const {
|
|
7415
7385
|
formatName: g,
|
|
7416
7386
|
formatOptions: l
|
|
7417
|
-
} =
|
|
7387
|
+
} = xi(d);
|
|
7418
7388
|
if (this.formats[g]) {
|
|
7419
|
-
let h =
|
|
7389
|
+
let h = a;
|
|
7420
7390
|
try {
|
|
7421
7391
|
const u = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = u.locale || u.lng || n.locale || n.lng || s;
|
|
7422
|
-
h = this.formats[g](
|
|
7392
|
+
h = this.formats[g](a, p, {
|
|
7423
7393
|
...l,
|
|
7424
7394
|
...n,
|
|
7425
7395
|
...u
|
|
@@ -7430,57 +7400,57 @@ class yi {
|
|
|
7430
7400
|
return h;
|
|
7431
7401
|
} else
|
|
7432
7402
|
this.logger.warn(`there was no format function for ${g}`);
|
|
7433
|
-
return
|
|
7403
|
+
return a;
|
|
7434
7404
|
}, e);
|
|
7435
7405
|
}
|
|
7436
7406
|
}
|
|
7437
|
-
const
|
|
7407
|
+
const Mi = (i, e) => {
|
|
7438
7408
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
|
7439
7409
|
};
|
|
7440
|
-
class
|
|
7410
|
+
class bi extends _1 {
|
|
7441
7411
|
constructor(e, t, s) {
|
|
7442
7412
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
7443
|
-
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger =
|
|
7413
|
+
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = q.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);
|
|
7444
7414
|
}
|
|
7445
7415
|
queueLoad(e, t, s, n) {
|
|
7446
|
-
const
|
|
7416
|
+
const o = {}, c = {}, a = {}, d = {};
|
|
7447
7417
|
return e.forEach((g) => {
|
|
7448
7418
|
let l = !0;
|
|
7449
7419
|
t.forEach((h) => {
|
|
7450
7420
|
const u = `${g}|${h}`;
|
|
7451
|
-
!s.reload && this.store.hasResourceBundle(g, h) ? this.state[u] = 2 : this.state[u] < 0 || (this.state[u] === 1 ? c[u] === void 0 && (c[u] = !0) : (this.state[u] = 1, l = !1, c[u] === void 0 && (c[u] = !0),
|
|
7452
|
-
}), l || (
|
|
7453
|
-
}), (Object.keys(
|
|
7421
|
+
!s.reload && this.store.hasResourceBundle(g, h) ? this.state[u] = 2 : this.state[u] < 0 || (this.state[u] === 1 ? c[u] === void 0 && (c[u] = !0) : (this.state[u] = 1, l = !1, c[u] === void 0 && (c[u] = !0), o[u] === void 0 && (o[u] = !0), d[h] === void 0 && (d[h] = !0)));
|
|
7422
|
+
}), l || (a[g] = !0);
|
|
7423
|
+
}), (Object.keys(o).length || Object.keys(c).length) && this.queue.push({
|
|
7454
7424
|
pending: c,
|
|
7455
7425
|
pendingCount: Object.keys(c).length,
|
|
7456
7426
|
loaded: {},
|
|
7457
7427
|
errors: [],
|
|
7458
7428
|
callback: n
|
|
7459
7429
|
}), {
|
|
7460
|
-
toLoad: Object.keys(
|
|
7430
|
+
toLoad: Object.keys(o),
|
|
7461
7431
|
pending: Object.keys(c),
|
|
7462
|
-
toLoadLanguages: Object.keys(
|
|
7432
|
+
toLoadLanguages: Object.keys(a),
|
|
7463
7433
|
toLoadNamespaces: Object.keys(d)
|
|
7464
7434
|
};
|
|
7465
7435
|
}
|
|
7466
7436
|
loaded(e, t, s) {
|
|
7467
|
-
const n = e.split("|"),
|
|
7468
|
-
t && this.emit("failedLoading",
|
|
7437
|
+
const n = e.split("|"), o = n[0], c = n[1];
|
|
7438
|
+
t && this.emit("failedLoading", o, c, t), !t && s && this.store.addResourceBundle(o, c, s, void 0, void 0, {
|
|
7469
7439
|
skipCopy: !0
|
|
7470
7440
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
|
7471
|
-
const
|
|
7441
|
+
const a = {};
|
|
7472
7442
|
this.queue.forEach((d) => {
|
|
7473
|
-
|
|
7474
|
-
|
|
7443
|
+
ai(d.loaded, [o], c), Mi(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
|
|
7444
|
+
a[g] || (a[g] = {});
|
|
7475
7445
|
const l = d.loaded[g];
|
|
7476
7446
|
l.length && l.forEach((h) => {
|
|
7477
|
-
|
|
7447
|
+
a[g][h] === void 0 && (a[g][h] = !0);
|
|
7478
7448
|
});
|
|
7479
7449
|
}), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
|
|
7480
|
-
}), this.emit("loaded",
|
|
7450
|
+
}), this.emit("loaded", a), this.queue = this.queue.filter((d) => !d.done);
|
|
7481
7451
|
}
|
|
7482
7452
|
read(e, t, s) {
|
|
7483
|
-
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0,
|
|
7453
|
+
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, c = arguments.length > 5 ? arguments[5] : void 0;
|
|
7484
7454
|
if (!e.length) return c(null, {});
|
|
7485
7455
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
7486
7456
|
this.waitingReads.push({
|
|
@@ -7488,21 +7458,21 @@ class _i extends H1 {
|
|
|
7488
7458
|
ns: t,
|
|
7489
7459
|
fcName: s,
|
|
7490
7460
|
tried: n,
|
|
7491
|
-
wait:
|
|
7461
|
+
wait: o,
|
|
7492
7462
|
callback: c
|
|
7493
7463
|
});
|
|
7494
7464
|
return;
|
|
7495
7465
|
}
|
|
7496
7466
|
this.readingCalls++;
|
|
7497
|
-
const
|
|
7467
|
+
const a = (g, l) => {
|
|
7498
7468
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
7499
7469
|
const h = this.waitingReads.shift();
|
|
7500
7470
|
this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
|
|
7501
7471
|
}
|
|
7502
7472
|
if (g && l && n < this.maxRetries) {
|
|
7503
7473
|
setTimeout(() => {
|
|
7504
|
-
this.read.call(this, e, t, s, n + 1,
|
|
7505
|
-
},
|
|
7474
|
+
this.read.call(this, e, t, s, n + 1, o * 2, c);
|
|
7475
|
+
}, o);
|
|
7506
7476
|
return;
|
|
7507
7477
|
}
|
|
7508
7478
|
c(g, l);
|
|
@@ -7510,23 +7480,23 @@ class _i extends H1 {
|
|
|
7510
7480
|
if (d.length === 2) {
|
|
7511
7481
|
try {
|
|
7512
7482
|
const g = d(e, t);
|
|
7513
|
-
g && typeof g.then == "function" ? g.then((l) =>
|
|
7483
|
+
g && typeof g.then == "function" ? g.then((l) => a(null, l)).catch(a) : a(null, g);
|
|
7514
7484
|
} catch (g) {
|
|
7515
|
-
|
|
7485
|
+
a(g);
|
|
7516
7486
|
}
|
|
7517
7487
|
return;
|
|
7518
7488
|
}
|
|
7519
|
-
return d(e, t,
|
|
7489
|
+
return d(e, t, a);
|
|
7520
7490
|
}
|
|
7521
7491
|
prepareLoading(e, t) {
|
|
7522
7492
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = arguments.length > 3 ? arguments[3] : void 0;
|
|
7523
7493
|
if (!this.backend)
|
|
7524
7494
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), n && n();
|
|
7525
7495
|
R(e) && (e = this.languageUtils.toResolveHierarchy(e)), R(t) && (t = [t]);
|
|
7526
|
-
const
|
|
7527
|
-
if (!
|
|
7528
|
-
return
|
|
7529
|
-
|
|
7496
|
+
const o = this.queueLoad(e, t, s, n);
|
|
7497
|
+
if (!o.toLoad.length)
|
|
7498
|
+
return o.pending.length || n(), null;
|
|
7499
|
+
o.toLoad.forEach((c) => {
|
|
7530
7500
|
this.loadOne(c);
|
|
7531
7501
|
});
|
|
7532
7502
|
}
|
|
@@ -7540,13 +7510,13 @@ class _i extends H1 {
|
|
|
7540
7510
|
}
|
|
7541
7511
|
loadOne(e) {
|
|
7542
7512
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
7543
|
-
const s = e.split("|"), n = s[0],
|
|
7544
|
-
this.read(n,
|
|
7545
|
-
c && this.logger.warn(`${t}loading namespace ${
|
|
7513
|
+
const s = e.split("|"), n = s[0], o = s[1];
|
|
7514
|
+
this.read(n, o, "read", void 0, void 0, (c, a) => {
|
|
7515
|
+
c && this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`, c), !c && a && this.logger.log(`${t}loaded namespace ${o} for language ${n}`, a), this.loaded(e, c, a);
|
|
7546
7516
|
});
|
|
7547
7517
|
}
|
|
7548
|
-
saveMissing(e, t, s, n,
|
|
7549
|
-
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {},
|
|
7518
|
+
saveMissing(e, t, s, n, o) {
|
|
7519
|
+
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, a = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
|
7550
7520
|
};
|
|
7551
7521
|
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
|
|
7552
7522
|
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!!!");
|
|
@@ -7556,23 +7526,23 @@ class _i extends H1 {
|
|
|
7556
7526
|
if (this.backend && this.backend.create) {
|
|
7557
7527
|
const d = {
|
|
7558
7528
|
...c,
|
|
7559
|
-
isUpdate:
|
|
7529
|
+
isUpdate: o
|
|
7560
7530
|
}, g = this.backend.create.bind(this.backend);
|
|
7561
7531
|
if (g.length < 6)
|
|
7562
7532
|
try {
|
|
7563
7533
|
let l;
|
|
7564
|
-
g.length === 5 ? l = g(e, t, s, n, d) : l = g(e, t, s, n), l && typeof l.then == "function" ? l.then((h) =>
|
|
7534
|
+
g.length === 5 ? l = g(e, t, s, n, d) : l = g(e, t, s, n), l && typeof l.then == "function" ? l.then((h) => a(null, h)).catch(a) : a(null, l);
|
|
7565
7535
|
} catch (l) {
|
|
7566
|
-
|
|
7536
|
+
a(l);
|
|
7567
7537
|
}
|
|
7568
7538
|
else
|
|
7569
|
-
g(e, t, s, n,
|
|
7539
|
+
g(e, t, s, n, a, d);
|
|
7570
7540
|
}
|
|
7571
7541
|
!e || !e[0] || this.store.addResource(e[0], t, s, n);
|
|
7572
7542
|
}
|
|
7573
7543
|
}
|
|
7574
7544
|
}
|
|
7575
|
-
const
|
|
7545
|
+
const ne = () => ({
|
|
7576
7546
|
debug: !1,
|
|
7577
7547
|
initImmediate: !0,
|
|
7578
7548
|
ns: ["translation"],
|
|
@@ -7628,18 +7598,18 @@ const re = () => ({
|
|
|
7628
7598
|
maxReplaces: 1e3,
|
|
7629
7599
|
skipOnVariables: !0
|
|
7630
7600
|
}
|
|
7631
|
-
}),
|
|
7632
|
-
},
|
|
7601
|
+
}), re = (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 = () => {
|
|
7602
|
+
}, yi = (i) => {
|
|
7633
7603
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
|
7634
7604
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
|
7635
7605
|
});
|
|
7636
7606
|
};
|
|
7637
|
-
class w1 extends
|
|
7607
|
+
class w1 extends _1 {
|
|
7638
7608
|
constructor() {
|
|
7639
7609
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
7640
|
-
if (super(), this.options =
|
|
7610
|
+
if (super(), this.options = re(e), this.services = {}, this.logger = q, this.modules = {
|
|
7641
7611
|
external: []
|
|
7642
|
-
},
|
|
7612
|
+
}, yi(this), t && !this.isInitialized && !e.isClone) {
|
|
7643
7613
|
if (!this.options.initImmediate)
|
|
7644
7614
|
return this.init(e, t), this;
|
|
7645
7615
|
setTimeout(() => {
|
|
@@ -7651,37 +7621,37 @@ class w1 extends H1 {
|
|
|
7651
7621
|
var e = this;
|
|
7652
7622
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
|
|
7653
7623
|
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]));
|
|
7654
|
-
const n =
|
|
7624
|
+
const n = ne();
|
|
7655
7625
|
this.options = {
|
|
7656
7626
|
...n,
|
|
7657
7627
|
...this.options,
|
|
7658
|
-
...
|
|
7628
|
+
...re(t)
|
|
7659
7629
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
7660
7630
|
...n.interpolation,
|
|
7661
7631
|
...this.options.interpolation
|
|
7662
7632
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
7663
|
-
const
|
|
7633
|
+
const o = (l) => l ? typeof l == "function" ? new l() : l : null;
|
|
7664
7634
|
if (!this.options.isClone) {
|
|
7665
|
-
this.modules.logger ?
|
|
7635
|
+
this.modules.logger ? q.init(o(this.modules.logger), this.options) : q.init(null, this.options);
|
|
7666
7636
|
let l;
|
|
7667
|
-
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l =
|
|
7668
|
-
const h = new
|
|
7669
|
-
this.store = new
|
|
7637
|
+
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = Ri);
|
|
7638
|
+
const h = new te(this.options);
|
|
7639
|
+
this.store = new X1(this.options.resources, this.options);
|
|
7670
7640
|
const u = this.services;
|
|
7671
|
-
u.logger =
|
|
7641
|
+
u.logger = q, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new vi(h, {
|
|
7672
7642
|
prepend: this.options.pluralSeparator,
|
|
7673
7643
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
7674
7644
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
7675
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter =
|
|
7645
|
+
}), 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 Ni(this.options), u.utils = {
|
|
7676
7646
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
7677
|
-
}, u.backendConnector = new
|
|
7678
|
-
for (var
|
|
7679
|
-
|
|
7680
|
-
e.emit(p, ...
|
|
7681
|
-
}), this.modules.languageDetector && (u.languageDetector =
|
|
7682
|
-
for (var
|
|
7683
|
-
|
|
7684
|
-
e.emit(p, ...
|
|
7647
|
+
}, u.backendConnector = new bi(o(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
|
|
7648
|
+
for (var k = arguments.length, v = new Array(k > 1 ? k - 1 : 0), m = 1; m < k; m++)
|
|
7649
|
+
v[m - 1] = arguments[m];
|
|
7650
|
+
e.emit(p, ...v);
|
|
7651
|
+
}), 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) {
|
|
7652
|
+
for (var k = arguments.length, v = new Array(k > 1 ? k - 1 : 0), m = 1; m < k; m++)
|
|
7653
|
+
v[m - 1] = arguments[m];
|
|
7654
|
+
e.emit(p, ...v);
|
|
7685
7655
|
}), this.modules.external.forEach((p) => {
|
|
7686
7656
|
p.init && p.init(this);
|
|
7687
7657
|
});
|
|
@@ -7713,28 +7683,28 @@ class w1 extends H1 {
|
|
|
7713
7683
|
const n = R(e) ? e : this.language;
|
|
7714
7684
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
7715
7685
|
if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
|
7716
|
-
const
|
|
7717
|
-
if (!
|
|
7718
|
-
this.services.languageUtils.toResolveHierarchy(
|
|
7719
|
-
g !== "cimode" &&
|
|
7686
|
+
const o = [], c = (a) => {
|
|
7687
|
+
if (!a || a === "cimode") return;
|
|
7688
|
+
this.services.languageUtils.toResolveHierarchy(a).forEach((g) => {
|
|
7689
|
+
g !== "cimode" && o.indexOf(g) < 0 && o.push(g);
|
|
7720
7690
|
});
|
|
7721
7691
|
};
|
|
7722
|
-
n ? c(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => c(d)), this.options.preload && this.options.preload.forEach((
|
|
7723
|
-
!
|
|
7692
|
+
n ? c(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => c(d)), this.options.preload && this.options.preload.forEach((a) => c(a)), this.services.backendConnector.load(o, this.options.ns, (a) => {
|
|
7693
|
+
!a && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(a);
|
|
7724
7694
|
});
|
|
7725
7695
|
} else
|
|
7726
7696
|
s(null);
|
|
7727
7697
|
}
|
|
7728
7698
|
reloadResources(e, t, s) {
|
|
7729
7699
|
const n = C1();
|
|
7730
|
-
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = x1), this.services.backendConnector.reload(e, t, (
|
|
7731
|
-
n.resolve(), s(
|
|
7700
|
+
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = x1), this.services.backendConnector.reload(e, t, (o) => {
|
|
7701
|
+
n.resolve(), s(o);
|
|
7732
7702
|
}), n;
|
|
7733
7703
|
}
|
|
7734
7704
|
use(e) {
|
|
7735
7705
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
7736
7706
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
7737
|
-
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" &&
|
|
7707
|
+
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" && me.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
7738
7708
|
}
|
|
7739
7709
|
setResolvedLanguage(e) {
|
|
7740
7710
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
|
|
@@ -7751,41 +7721,41 @@ class w1 extends H1 {
|
|
|
7751
7721
|
this.isLanguageChangingTo = e;
|
|
7752
7722
|
const n = C1();
|
|
7753
7723
|
this.emit("languageChanging", e);
|
|
7754
|
-
const
|
|
7724
|
+
const o = (d) => {
|
|
7755
7725
|
this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
|
|
7756
7726
|
}, c = (d, g) => {
|
|
7757
|
-
g ? (
|
|
7727
|
+
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() {
|
|
7758
7728
|
return s.t(...arguments);
|
|
7759
7729
|
}), t && t(d, function() {
|
|
7760
7730
|
return s.t(...arguments);
|
|
7761
7731
|
});
|
|
7762
|
-
},
|
|
7732
|
+
}, a = (d) => {
|
|
7763
7733
|
!e && !d && this.services.languageDetector && (d = []);
|
|
7764
7734
|
const g = R(d) ? d : this.services.languageUtils.getBestMatchFromCodes(d);
|
|
7765
|
-
g && (this.language ||
|
|
7735
|
+
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) => {
|
|
7766
7736
|
c(l, g);
|
|
7767
7737
|
});
|
|
7768
7738
|
};
|
|
7769
|
-
return !e && this.services.languageDetector && !this.services.languageDetector.async ?
|
|
7739
|
+
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;
|
|
7770
7740
|
}
|
|
7771
7741
|
getFixedT(e, t, s) {
|
|
7772
7742
|
var n = this;
|
|
7773
|
-
const
|
|
7743
|
+
const o = function(c, a) {
|
|
7774
7744
|
let d;
|
|
7775
|
-
if (typeof
|
|
7745
|
+
if (typeof a != "object") {
|
|
7776
7746
|
for (var g = arguments.length, l = new Array(g > 2 ? g - 2 : 0), h = 2; h < g; h++)
|
|
7777
7747
|
l[h - 2] = arguments[h];
|
|
7778
|
-
d = n.options.overloadTranslationOptionHandler([c,
|
|
7748
|
+
d = n.options.overloadTranslationOptionHandler([c, a].concat(l));
|
|
7779
7749
|
} else
|
|
7780
7750
|
d = {
|
|
7781
|
-
...
|
|
7751
|
+
...a
|
|
7782
7752
|
};
|
|
7783
|
-
d.lng = d.lng ||
|
|
7753
|
+
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);
|
|
7784
7754
|
const u = n.options.keySeparator || ".";
|
|
7785
7755
|
let p;
|
|
7786
|
-
return d.keyPrefix && Array.isArray(c) ? p = c.map((
|
|
7756
|
+
return d.keyPrefix && Array.isArray(c) ? p = c.map((k) => `${d.keyPrefix}${u}${k}`) : p = d.keyPrefix ? `${d.keyPrefix}${u}${c}` : c, n.t(p, d);
|
|
7787
7757
|
};
|
|
7788
|
-
return R(e) ?
|
|
7758
|
+
return R(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = s, o;
|
|
7789
7759
|
}
|
|
7790
7760
|
t() {
|
|
7791
7761
|
return this.translator && this.translator.translate(...arguments);
|
|
@@ -7802,17 +7772,17 @@ class w1 extends H1 {
|
|
|
7802
7772
|
return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
|
|
7803
7773
|
if (!this.languages || !this.languages.length)
|
|
7804
7774
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
7805
|
-
const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1,
|
|
7775
|
+
const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1, o = this.languages[this.languages.length - 1];
|
|
7806
7776
|
if (s.toLowerCase() === "cimode") return !0;
|
|
7807
|
-
const c = (
|
|
7808
|
-
const g = this.services.backendConnector.state[`${
|
|
7777
|
+
const c = (a, d) => {
|
|
7778
|
+
const g = this.services.backendConnector.state[`${a}|${d}`];
|
|
7809
7779
|
return g === -1 || g === 0 || g === 2;
|
|
7810
7780
|
};
|
|
7811
7781
|
if (t.precheck) {
|
|
7812
|
-
const
|
|
7813
|
-
if (
|
|
7782
|
+
const a = t.precheck(this, c);
|
|
7783
|
+
if (a !== void 0) return a;
|
|
7814
7784
|
}
|
|
7815
|
-
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!n || c(
|
|
7785
|
+
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!n || c(o, e)));
|
|
7816
7786
|
}
|
|
7817
7787
|
loadNamespaces(e, t) {
|
|
7818
7788
|
const s = C1();
|
|
@@ -7825,14 +7795,14 @@ class w1 extends H1 {
|
|
|
7825
7795
|
loadLanguages(e, t) {
|
|
7826
7796
|
const s = C1();
|
|
7827
7797
|
R(e) && (e = [e]);
|
|
7828
|
-
const n = this.options.preload || [],
|
|
7829
|
-
return
|
|
7798
|
+
const n = this.options.preload || [], o = e.filter((c) => n.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
|
|
7799
|
+
return o.length ? (this.options.preload = n.concat(o), this.loadResources((c) => {
|
|
7830
7800
|
s.resolve(), t && t(c);
|
|
7831
7801
|
}), s) : (t && t(), Promise.resolve());
|
|
7832
7802
|
}
|
|
7833
7803
|
dir(e) {
|
|
7834
7804
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
|
|
7835
|
-
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
|
|
7805
|
+
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 te(ne());
|
|
7836
7806
|
return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
7837
7807
|
}
|
|
7838
7808
|
static createInstance() {
|
|
@@ -7847,20 +7817,20 @@ class w1 extends H1 {
|
|
|
7847
7817
|
...this.options,
|
|
7848
7818
|
...e,
|
|
7849
7819
|
isClone: !0
|
|
7850
|
-
},
|
|
7851
|
-
return (e.debug !== void 0 || e.prefix !== void 0) && (
|
|
7852
|
-
a
|
|
7853
|
-
}),
|
|
7820
|
+
}, o = new w1(n);
|
|
7821
|
+
return (e.debug !== void 0 || e.prefix !== void 0) && (o.logger = o.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
|
|
7822
|
+
o[a] = this[a];
|
|
7823
|
+
}), o.services = {
|
|
7854
7824
|
...this.services
|
|
7855
|
-
},
|
|
7856
|
-
hasLoadedNamespace:
|
|
7857
|
-
}, s && (
|
|
7825
|
+
}, o.services.utils = {
|
|
7826
|
+
hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
|
|
7827
|
+
}, s && (o.store = new X1(this.store.data, n), o.services.resourceStore = o.store), o.translator = new E1(o.services, n), o.translator.on("*", function(a) {
|
|
7858
7828
|
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), l = 1; l < d; l++)
|
|
7859
7829
|
g[l - 1] = arguments[l];
|
|
7860
|
-
|
|
7861
|
-
}),
|
|
7862
|
-
hasLoadedNamespace:
|
|
7863
|
-
},
|
|
7830
|
+
o.emit(a, ...g);
|
|
7831
|
+
}), o.init(n, t), o.translator.options = n, o.translator.backendConnector.services.utils = {
|
|
7832
|
+
hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
|
|
7833
|
+
}, o;
|
|
7864
7834
|
}
|
|
7865
7835
|
toJSON() {
|
|
7866
7836
|
return {
|
|
@@ -7888,79 +7858,79 @@ Y.setDefaultNamespace;
|
|
|
7888
7858
|
Y.hasLoadedNamespace;
|
|
7889
7859
|
Y.loadNamespaces;
|
|
7890
7860
|
Y.loadLanguages;
|
|
7891
|
-
const
|
|
7861
|
+
const Ei = "Archived", _i = "Deleted", Hi = {
|
|
7862
|
+
archived: Ei,
|
|
7863
|
+
deleted: _i
|
|
7864
|
+
}, Ii = "Заархивирован", Oi = "Удалён", Si = {
|
|
7892
7865
|
archived: Ii,
|
|
7893
7866
|
deleted: Oi
|
|
7894
|
-
}, Vi = "Заархивирован", Ai = "Удалён", Ti = {
|
|
7895
|
-
archived: Vi,
|
|
7896
|
-
deleted: Ai
|
|
7897
7867
|
};
|
|
7898
|
-
Y.use(
|
|
7868
|
+
Y.use(X5).init({
|
|
7899
7869
|
defaultNS: "common",
|
|
7900
7870
|
lng: "en",
|
|
7901
7871
|
resources: {
|
|
7902
7872
|
en: {
|
|
7903
|
-
common:
|
|
7873
|
+
common: Hi
|
|
7904
7874
|
},
|
|
7905
7875
|
ru: {
|
|
7906
|
-
common:
|
|
7876
|
+
common: Si
|
|
7907
7877
|
}
|
|
7908
7878
|
}
|
|
7909
7879
|
});
|
|
7910
|
-
const
|
|
7880
|
+
const ji = k1(
|
|
7911
7881
|
({
|
|
7912
7882
|
fetchParams: i,
|
|
7913
7883
|
mode: e = void 0,
|
|
7914
7884
|
placeholder: t,
|
|
7915
7885
|
disabled: s,
|
|
7916
7886
|
value: n,
|
|
7917
|
-
onChange:
|
|
7887
|
+
onChange: o,
|
|
7918
7888
|
onError: c,
|
|
7919
|
-
allowEmpty:
|
|
7889
|
+
allowEmpty: a = !1,
|
|
7920
7890
|
showAvatar: d = !1,
|
|
7921
7891
|
clearable: g,
|
|
7922
7892
|
required: l,
|
|
7923
7893
|
error: h
|
|
7924
7894
|
}, u) => {
|
|
7925
|
-
const { axiosPeople: p, locale:
|
|
7926
|
-
if (
|
|
7895
|
+
const { axiosPeople: p, locale: k } = r1(Ee), { t: v } = ni("common", { lng: k }), [m, O] = B([]), [M, S] = B(!0), f = X(m), N = X(null);
|
|
7896
|
+
if (oe(u, () => N.current), !p)
|
|
7927
7897
|
throw new Error(
|
|
7928
7898
|
`UserSelect requires "axiosPeople" to fetch users.
|
|
7929
7899
|
Please provide it via SNMTUiContext.`
|
|
7930
7900
|
);
|
|
7931
7901
|
const x = $(
|
|
7932
|
-
(
|
|
7933
|
-
let
|
|
7934
|
-
return
|
|
7902
|
+
(_) => {
|
|
7903
|
+
let Z = "";
|
|
7904
|
+
return _.deletedAt && (Z += `[${v("deleted")}] `), _.status === R1.ARCHIVED && (Z += `[${v("archived")}] `), `${Z}${_.firstName} ${_.lastName}`;
|
|
7935
7905
|
},
|
|
7936
|
-
[
|
|
7937
|
-
),
|
|
7906
|
+
[v]
|
|
7907
|
+
), L = $(
|
|
7938
7908
|
async ({
|
|
7939
|
-
offset:
|
|
7940
|
-
limit:
|
|
7941
|
-
search:
|
|
7909
|
+
offset: _,
|
|
7910
|
+
limit: Z,
|
|
7911
|
+
search: H
|
|
7942
7912
|
}) => {
|
|
7943
|
-
var V,
|
|
7913
|
+
var V, T, j;
|
|
7944
7914
|
try {
|
|
7945
7915
|
const U = await p.post("v1/users/search", {
|
|
7946
|
-
offset:
|
|
7947
|
-
limit:
|
|
7948
|
-
search:
|
|
7916
|
+
offset: _,
|
|
7917
|
+
limit: Z,
|
|
7918
|
+
search: H,
|
|
7949
7919
|
...i,
|
|
7950
7920
|
includeCount: !0
|
|
7951
|
-
}), { data:
|
|
7921
|
+
}), { data: I, metadata: K } = U.data;
|
|
7952
7922
|
return {
|
|
7953
|
-
options:
|
|
7954
|
-
value:
|
|
7955
|
-
label: x(
|
|
7956
|
-
image: d ?
|
|
7923
|
+
options: I.map((W) => ({
|
|
7924
|
+
value: W.id,
|
|
7925
|
+
label: x(W),
|
|
7926
|
+
image: d ? W.avatarUrl : void 0
|
|
7957
7927
|
})),
|
|
7958
7928
|
count: K.count
|
|
7959
7929
|
};
|
|
7960
7930
|
} catch (U) {
|
|
7961
7931
|
return c && c({
|
|
7962
7932
|
status: ((V = U.response) == null ? void 0 : V.status) ?? 500,
|
|
7963
|
-
message: ((
|
|
7933
|
+
message: ((j = (T = U.response) == null ? void 0 : T.data) == null ? void 0 : j.message) ?? "Error while fetching options"
|
|
7964
7934
|
}), {
|
|
7965
7935
|
options: [],
|
|
7966
7936
|
count: 0
|
|
@@ -7969,71 +7939,71 @@ const Ki = k1(
|
|
|
7969
7939
|
},
|
|
7970
7940
|
[p, i, x, d, c]
|
|
7971
7941
|
), P = $(
|
|
7972
|
-
async (
|
|
7973
|
-
var
|
|
7942
|
+
async (_) => {
|
|
7943
|
+
var Z, H, V;
|
|
7974
7944
|
try {
|
|
7975
|
-
const
|
|
7976
|
-
(
|
|
7945
|
+
const T = _.filter(
|
|
7946
|
+
(I) => !f.current.some((K) => K.value === I)
|
|
7977
7947
|
);
|
|
7978
|
-
let
|
|
7979
|
-
|
|
7948
|
+
let j = [];
|
|
7949
|
+
T.length && (j = (await p.post("v1/users/search", {
|
|
7980
7950
|
filters: {
|
|
7981
|
-
id:
|
|
7951
|
+
id: T,
|
|
7982
7952
|
status: [R1.ACTIVE, R1.ARCHIVED]
|
|
7983
7953
|
}
|
|
7984
7954
|
})).data.data);
|
|
7985
|
-
const U =
|
|
7986
|
-
value:
|
|
7987
|
-
label: x(
|
|
7988
|
-
image: d ?
|
|
7955
|
+
const U = j.map((I) => ({
|
|
7956
|
+
value: I.id,
|
|
7957
|
+
label: x(I),
|
|
7958
|
+
image: d ? I.avatarUrl : void 0
|
|
7989
7959
|
}));
|
|
7990
7960
|
return [...f.current, ...U];
|
|
7991
|
-
} catch (
|
|
7961
|
+
} catch (T) {
|
|
7992
7962
|
return c && c({
|
|
7993
|
-
status: ((
|
|
7994
|
-
message: ((V = (
|
|
7963
|
+
status: ((Z = T.response) == null ? void 0 : Z.status) ?? 500,
|
|
7964
|
+
message: ((V = (H = T.response) == null ? void 0 : H.data) == null ? void 0 : V.message) ?? "Error while fetching selected items"
|
|
7995
7965
|
}), [];
|
|
7996
7966
|
}
|
|
7997
7967
|
},
|
|
7998
7968
|
[p, x, c, d]
|
|
7999
7969
|
);
|
|
8000
|
-
|
|
7970
|
+
G(() => {
|
|
8001
7971
|
f.current = m;
|
|
8002
|
-
}, [m]),
|
|
8003
|
-
var
|
|
8004
|
-
(
|
|
8005
|
-
}, [i]),
|
|
7972
|
+
}, [m]), G(() => {
|
|
7973
|
+
var _;
|
|
7974
|
+
(_ = N.current) == null || _.refetchOptions();
|
|
7975
|
+
}, [i]), G(() => {
|
|
8006
7976
|
if (!n) {
|
|
8007
7977
|
S(!1);
|
|
8008
7978
|
return;
|
|
8009
7979
|
}
|
|
8010
7980
|
(async () => {
|
|
8011
|
-
const
|
|
8012
|
-
|
|
7981
|
+
const Z = Array.isArray(n) ? n : [n], H = await P(Z);
|
|
7982
|
+
O(H), S(!1);
|
|
8013
7983
|
})();
|
|
8014
7984
|
}, [P, n]);
|
|
8015
7985
|
const J = $(
|
|
8016
7986
|
async ({
|
|
8017
|
-
limit:
|
|
8018
|
-
offset:
|
|
8019
|
-
search:
|
|
7987
|
+
limit: _,
|
|
7988
|
+
offset: Z,
|
|
7989
|
+
search: H
|
|
8020
7990
|
}) => {
|
|
8021
|
-
const { count: V, ...
|
|
8022
|
-
offset:
|
|
8023
|
-
limit:
|
|
8024
|
-
search:
|
|
7991
|
+
const { count: V, ...T } = await L({
|
|
7992
|
+
offset: Z,
|
|
7993
|
+
limit: _,
|
|
7994
|
+
search: H
|
|
8025
7995
|
});
|
|
8026
|
-
let
|
|
8027
|
-
return
|
|
8028
|
-
options:
|
|
7996
|
+
let j = T.options;
|
|
7997
|
+
return a && Z === 0 && (j = [{ value: null, label: "None" }, ...j]), {
|
|
7998
|
+
options: j,
|
|
8029
7999
|
count: V,
|
|
8030
|
-
limit:
|
|
8000
|
+
limit: _
|
|
8031
8001
|
};
|
|
8032
8002
|
},
|
|
8033
|
-
[
|
|
8003
|
+
[a, L]
|
|
8034
8004
|
);
|
|
8035
8005
|
if (M)
|
|
8036
|
-
return /* @__PURE__ */ r(
|
|
8006
|
+
return /* @__PURE__ */ r(j5, {});
|
|
8037
8007
|
const F = {
|
|
8038
8008
|
ref: N,
|
|
8039
8009
|
placeholder: t,
|
|
@@ -8043,23 +8013,23 @@ const Ki = k1(
|
|
|
8043
8013
|
error: h
|
|
8044
8014
|
};
|
|
8045
8015
|
return e ? /* @__PURE__ */ r(
|
|
8046
|
-
|
|
8016
|
+
P1,
|
|
8047
8017
|
{
|
|
8048
8018
|
...F,
|
|
8049
8019
|
mode: e,
|
|
8050
8020
|
value: n,
|
|
8051
|
-
onChange:
|
|
8021
|
+
onChange: o,
|
|
8052
8022
|
loadOptions: J,
|
|
8053
8023
|
preloadOptions: !0,
|
|
8054
8024
|
extraOptions: m
|
|
8055
8025
|
}
|
|
8056
8026
|
) : /* @__PURE__ */ r(
|
|
8057
|
-
|
|
8027
|
+
P1,
|
|
8058
8028
|
{
|
|
8059
8029
|
...F,
|
|
8060
8030
|
value: n,
|
|
8061
8031
|
mode: void 0,
|
|
8062
|
-
onChange:
|
|
8032
|
+
onChange: o,
|
|
8063
8033
|
loadOptions: J,
|
|
8064
8034
|
preloadOptions: !0,
|
|
8065
8035
|
extraOptions: m
|
|
@@ -8068,5 +8038,5 @@ const Ki = k1(
|
|
|
8068
8038
|
}
|
|
8069
8039
|
);
|
|
8070
8040
|
export {
|
|
8071
|
-
|
|
8041
|
+
ji as UserSelect
|
|
8072
8042
|
};
|