@snmt-react-ui/user-select 2.8.3 → 2.8.5
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 +862 -792
- package/package.json +4 -4
package/dist/user-select.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createContext as d1, forwardRef as k1, useRef as q, useImperativeHandle
|
|
|
7
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
8
|
import { SNMTUiContext as Ee } from "@snmt-react-ui/core";
|
|
9
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
|
|
10
|
+
function Ve() {
|
|
11
11
|
if (console && console.warn) {
|
|
12
12
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
13
13
|
e[t] = arguments[t];
|
|
@@ -15,10 +15,10 @@ function Se() {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
const j1 = {};
|
|
18
|
-
function
|
|
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]) && j1[e[0]] || (s1(e[0]) && (j1[e[0]] = /* @__PURE__ */ new Date()),
|
|
21
|
+
s1(e[0]) && j1[e[0]] || (s1(e[0]) && (j1[e[0]] = /* @__PURE__ */ new Date()), Ve(...e));
|
|
22
22
|
}
|
|
23
23
|
const le = (i, e) => () => {
|
|
24
24
|
if (i.isInitialized)
|
|
@@ -31,29 +31,29 @@ const le = (i, e) => () => {
|
|
|
31
31
|
};
|
|
32
32
|
i.on("initialized", t);
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, G1 = (i, e, t) => {
|
|
35
35
|
i.loadNamespaces(e, le(i, t));
|
|
36
|
-
},
|
|
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
39
|
}), i.loadLanguages(e, le(i, s));
|
|
40
|
-
},
|
|
40
|
+
}, Se = function(i, e) {
|
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
42
|
-
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1,
|
|
42
|
+
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
|
|
43
43
|
if (s.toLowerCase() === "cimode") return !0;
|
|
44
|
-
const c = (
|
|
45
|
-
const d = e.services.backendConnector.state[`${
|
|
44
|
+
const c = (o, g) => {
|
|
45
|
+
const d = e.services.backendConnector.state[`${o}|${g}`];
|
|
46
46
|
return d === -1 || d === 2;
|
|
47
47
|
};
|
|
48
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(
|
|
48
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(a, i)));
|
|
49
49
|
}, 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
|
-
}) :
|
|
56
|
+
}) : Se(i, e, t);
|
|
57
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
|
"&": "&",
|
|
@@ -76,7 +76,7 @@ const le = (i, e) => () => {
|
|
|
76
76
|
"/": "/",
|
|
77
77
|
"/": "/"
|
|
78
78
|
}, Be = (i) => De[i], je = (i) => i.replace(Ze, Be);
|
|
79
|
-
let
|
|
79
|
+
let Ge = {
|
|
80
80
|
bindI18n: "languageChanged",
|
|
81
81
|
bindI18nStore: "",
|
|
82
82
|
transEmptyNodeValue: "",
|
|
@@ -86,7 +86,7 @@ let We = {
|
|
|
86
86
|
useSuspense: !0,
|
|
87
87
|
unescape: je
|
|
88
88
|
};
|
|
89
|
-
const
|
|
89
|
+
const We = () => Ge;
|
|
90
90
|
let Ke;
|
|
91
91
|
const $e = () => Ke, Pe = d1();
|
|
92
92
|
class Fe {
|
|
@@ -111,24 +111,24 @@ const Ye = (i, e) => {
|
|
|
111
111
|
} = e, {
|
|
112
112
|
i18n: s,
|
|
113
113
|
defaultNS: n
|
|
114
|
-
} = r1(Pe) || {},
|
|
115
|
-
if (
|
|
116
|
-
|
|
114
|
+
} = r1(Pe) || {}, a = t || s || $e();
|
|
115
|
+
if (a && !a.reportNamespaces && (a.reportNamespaces = new Fe()), !a) {
|
|
116
|
+
S1("You will need to pass in an i18next instance by using initReactI18next");
|
|
117
117
|
const f = (x, v) => s1(v) ? v : Te(v) && s1(v.defaultValue) ? v.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
|
|
118
118
|
return N.t = f, N.i18n = {}, N.ready = !1, N;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
a.options.react && a.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
|
+
...We(),
|
|
123
|
+
...a.options.react,
|
|
124
124
|
...e
|
|
125
125
|
}, {
|
|
126
|
-
useSuspense:
|
|
126
|
+
useSuspense: o,
|
|
127
127
|
keyPrefix: g
|
|
128
128
|
} = c;
|
|
129
129
|
let d = i;
|
|
130
|
-
d = s1(d) ? [d] : d || ["translation"],
|
|
131
|
-
const l = (
|
|
130
|
+
d = s1(d) ? [d] : d || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(d);
|
|
131
|
+
const l = (a.isInitialized || a.initializedStoreOnce) && d.every((f) => Ae(f, a, c)), h = Ue(a, e.lng || null, c.nsMode === "fallback" ? d : d[0], g), u = () => h, p = () => he(a, e.lng || null, c.nsMode === "fallback" ? d : d[0], g), [w, k] = T(u);
|
|
132
132
|
let m = d.join();
|
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
|
134
134
|
const _ = Ye(m), M = q(!0);
|
|
@@ -137,24 +137,24 @@ const Ye = (i, e) => {
|
|
|
137
137
|
bindI18n: f,
|
|
138
138
|
bindI18nStore: N
|
|
139
139
|
} = c;
|
|
140
|
-
M.current = !0, !l && !
|
|
140
|
+
M.current = !0, !l && !o && (e.lng ? W1(a, e.lng, d, () => {
|
|
141
141
|
M.current && k(p);
|
|
142
|
-
}) :
|
|
142
|
+
}) : G1(a, d, () => {
|
|
143
143
|
M.current && k(p);
|
|
144
144
|
})), l && _ && _ !== m && M.current && k(p);
|
|
145
145
|
const x = () => {
|
|
146
146
|
M.current && k(p);
|
|
147
147
|
};
|
|
148
|
-
return f &&
|
|
149
|
-
M.current = !1, f &&
|
|
148
|
+
return f && a && a.on(f, x), N && a && a.store.on(N, x), () => {
|
|
149
|
+
M.current = !1, f && a && f.split(" ").forEach((v) => a.off(v, x)), N && a && N.split(" ").forEach((v) => a.store.off(v, x));
|
|
150
150
|
};
|
|
151
|
-
}, [
|
|
151
|
+
}, [a, m]), j(() => {
|
|
152
152
|
M.current && l && k(u);
|
|
153
|
-
}, [
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
153
|
+
}, [a, g, l]);
|
|
154
|
+
const V = [w, a, l];
|
|
155
|
+
if (V.t = w, V.i18n = a, V.ready = l, l || !l && !o) return V;
|
|
156
156
|
throw new Promise((f) => {
|
|
157
|
-
e.lng ?
|
|
157
|
+
e.lng ? W1(a, e.lng, d, () => f()) : G1(a, d, () => f());
|
|
158
158
|
});
|
|
159
159
|
}, p1 = ({
|
|
160
160
|
children: i,
|
|
@@ -162,9 +162,9 @@ const Ye = (i, e) => {
|
|
|
162
162
|
flexWrap: t = "nowrap",
|
|
163
163
|
alignItems: s = "normal",
|
|
164
164
|
justifyContent: n = "normal",
|
|
165
|
-
flex:
|
|
165
|
+
flex: a,
|
|
166
166
|
gap: c,
|
|
167
|
-
padding:
|
|
167
|
+
padding: o
|
|
168
168
|
}) => /* @__PURE__ */ r(
|
|
169
169
|
xe,
|
|
170
170
|
{
|
|
@@ -173,9 +173,9 @@ const Ye = (i, e) => {
|
|
|
173
173
|
wrap: t,
|
|
174
174
|
align: s,
|
|
175
175
|
justify: n,
|
|
176
|
-
flex:
|
|
176
|
+
flex: a,
|
|
177
177
|
gap: c,
|
|
178
|
-
style: { padding:
|
|
178
|
+
style: { padding: o },
|
|
179
179
|
children: i
|
|
180
180
|
}
|
|
181
181
|
), Je = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
|
|
@@ -204,11 +204,11 @@ const qe = ({
|
|
|
204
204
|
children: t,
|
|
205
205
|
onChange: s,
|
|
206
206
|
disabled: n = !1,
|
|
207
|
-
disableUncheck:
|
|
207
|
+
disableUncheck: a = !1
|
|
208
208
|
}) => {
|
|
209
|
-
const [c,
|
|
209
|
+
const [c, o] = T(i), [g, d] = T(e);
|
|
210
210
|
j(() => {
|
|
211
|
-
|
|
211
|
+
o(i), d(e);
|
|
212
212
|
}, [i, e]);
|
|
213
213
|
const { theme: l } = r1(D1);
|
|
214
214
|
return /* @__PURE__ */ r(
|
|
@@ -218,14 +218,14 @@ const qe = ({
|
|
|
218
218
|
checked: c,
|
|
219
219
|
indeterminate: g,
|
|
220
220
|
onChange: (h) => {
|
|
221
|
-
|
|
221
|
+
a && c || (d(!1), o(h.target.checked), s && s(h));
|
|
222
222
|
},
|
|
223
223
|
disabled: n,
|
|
224
224
|
children: t
|
|
225
225
|
}
|
|
226
226
|
);
|
|
227
227
|
};
|
|
228
|
-
var
|
|
228
|
+
var b = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(b || {});
|
|
229
229
|
const ce = d1({
|
|
230
230
|
locale: "en",
|
|
231
231
|
theme: "light"
|
|
@@ -261,7 +261,7 @@ const Qe = ({
|
|
|
261
261
|
), Xe = ({
|
|
262
262
|
width: i = 20,
|
|
263
263
|
height: e = 20,
|
|
264
|
-
color: t =
|
|
264
|
+
color: t = b.GREY_DARK_5,
|
|
265
265
|
className: s,
|
|
266
266
|
onClick: n
|
|
267
267
|
}) => /* @__PURE__ */ C(
|
|
@@ -596,7 +596,7 @@ const Qe = ({
|
|
|
596
596
|
), lt = ({
|
|
597
597
|
width: i = 20,
|
|
598
598
|
height: e = 20,
|
|
599
|
-
color: t =
|
|
599
|
+
color: t = b.GREY_DARK_5,
|
|
600
600
|
className: s,
|
|
601
601
|
onClick: n
|
|
602
602
|
}) => /* @__PURE__ */ C(
|
|
@@ -1015,7 +1015,7 @@ const Qe = ({
|
|
|
1015
1015
|
), kt = ({
|
|
1016
1016
|
width: i = 20,
|
|
1017
1017
|
height: e = 20,
|
|
1018
|
-
color: t =
|
|
1018
|
+
color: t = b.GREY_DARK_5,
|
|
1019
1019
|
className: s,
|
|
1020
1020
|
onClick: n
|
|
1021
1021
|
}) => /* @__PURE__ */ C(
|
|
@@ -1423,7 +1423,7 @@ const Qe = ({
|
|
|
1423
1423
|
}
|
|
1424
1424
|
), It = ({
|
|
1425
1425
|
className: i,
|
|
1426
|
-
color: e =
|
|
1426
|
+
color: e = b.GREY_DARK_5,
|
|
1427
1427
|
height: t = 24,
|
|
1428
1428
|
width: s = 24,
|
|
1429
1429
|
onClick: n
|
|
@@ -1462,7 +1462,7 @@ const Qe = ({
|
|
|
1462
1462
|
}
|
|
1463
1463
|
), Ot = ({
|
|
1464
1464
|
className: i,
|
|
1465
|
-
color: e =
|
|
1465
|
+
color: e = b.GREY_DARK_5,
|
|
1466
1466
|
height: t = 20,
|
|
1467
1467
|
width: s = 20,
|
|
1468
1468
|
onClick: n
|
|
@@ -1487,9 +1487,9 @@ const Qe = ({
|
|
|
1487
1487
|
}
|
|
1488
1488
|
)
|
|
1489
1489
|
}
|
|
1490
|
-
),
|
|
1490
|
+
), Vt = ({
|
|
1491
1491
|
className: i,
|
|
1492
|
-
color: e =
|
|
1492
|
+
color: e = b.GREY_DARK_5,
|
|
1493
1493
|
height: t = 20,
|
|
1494
1494
|
width: s = 20,
|
|
1495
1495
|
onClick: n
|
|
@@ -1514,9 +1514,9 @@ const Qe = ({
|
|
|
1514
1514
|
}
|
|
1515
1515
|
)
|
|
1516
1516
|
}
|
|
1517
|
-
),
|
|
1517
|
+
), St = ({
|
|
1518
1518
|
className: i,
|
|
1519
|
-
color: e =
|
|
1519
|
+
color: e = b.GREY_DARK_5,
|
|
1520
1520
|
height: t = 5,
|
|
1521
1521
|
width: s = 10,
|
|
1522
1522
|
onClick: n
|
|
@@ -1540,7 +1540,7 @@ const Qe = ({
|
|
|
1540
1540
|
}
|
|
1541
1541
|
), At = ({
|
|
1542
1542
|
className: i,
|
|
1543
|
-
color: e =
|
|
1543
|
+
color: e = b.GREY_DARK_5,
|
|
1544
1544
|
height: t = 5,
|
|
1545
1545
|
width: s = 10,
|
|
1546
1546
|
onClick: n
|
|
@@ -1565,7 +1565,7 @@ const Qe = ({
|
|
|
1565
1565
|
}
|
|
1566
1566
|
), Tt = ({
|
|
1567
1567
|
className: i,
|
|
1568
|
-
color: e =
|
|
1568
|
+
color: e = b.GREY_DARK_5,
|
|
1569
1569
|
height: t = 24,
|
|
1570
1570
|
width: s = 24,
|
|
1571
1571
|
onClick: n
|
|
@@ -1604,7 +1604,7 @@ const Qe = ({
|
|
|
1604
1604
|
}
|
|
1605
1605
|
), Zt = ({
|
|
1606
1606
|
className: i,
|
|
1607
|
-
color: e =
|
|
1607
|
+
color: e = b.GREY_DARK_5,
|
|
1608
1608
|
height: t = 24,
|
|
1609
1609
|
width: s = 24,
|
|
1610
1610
|
onClick: n
|
|
@@ -1643,7 +1643,7 @@ const Qe = ({
|
|
|
1643
1643
|
}
|
|
1644
1644
|
), Dt = ({
|
|
1645
1645
|
className: i,
|
|
1646
|
-
color: e =
|
|
1646
|
+
color: e = b.GREY_DARK_5,
|
|
1647
1647
|
height: t = 24,
|
|
1648
1648
|
width: s = 24,
|
|
1649
1649
|
onClick: n
|
|
@@ -1670,7 +1670,7 @@ const Qe = ({
|
|
|
1670
1670
|
}
|
|
1671
1671
|
), Bt = ({
|
|
1672
1672
|
className: i,
|
|
1673
|
-
color: e =
|
|
1673
|
+
color: e = b.GREY_DARK_5,
|
|
1674
1674
|
height: t = 24,
|
|
1675
1675
|
width: s = 24,
|
|
1676
1676
|
onClick: n
|
|
@@ -1729,7 +1729,7 @@ const Qe = ({
|
|
|
1729
1729
|
}
|
|
1730
1730
|
), jt = ({
|
|
1731
1731
|
className: i,
|
|
1732
|
-
color: e =
|
|
1732
|
+
color: e = b.GREY_DARK_5,
|
|
1733
1733
|
height: t = 24,
|
|
1734
1734
|
width: s = 24,
|
|
1735
1735
|
onClick: n
|
|
@@ -1764,9 +1764,9 @@ const Qe = ({
|
|
|
1764
1764
|
)
|
|
1765
1765
|
]
|
|
1766
1766
|
}
|
|
1767
|
-
),
|
|
1767
|
+
), Gt = ({
|
|
1768
1768
|
className: i,
|
|
1769
|
-
color: e =
|
|
1769
|
+
color: e = b.GREY_DARK_3,
|
|
1770
1770
|
height: t = 14,
|
|
1771
1771
|
width: s = 14,
|
|
1772
1772
|
onClick: n
|
|
@@ -1801,9 +1801,9 @@ const Qe = ({
|
|
|
1801
1801
|
)
|
|
1802
1802
|
]
|
|
1803
1803
|
}
|
|
1804
|
-
),
|
|
1804
|
+
), Wt = ({
|
|
1805
1805
|
className: i,
|
|
1806
|
-
color: e =
|
|
1806
|
+
color: e = b.GREY_DARK_5,
|
|
1807
1807
|
height: t = 18,
|
|
1808
1808
|
onClick: s,
|
|
1809
1809
|
width: n = 18
|
|
@@ -1830,7 +1830,7 @@ const Qe = ({
|
|
|
1830
1830
|
}
|
|
1831
1831
|
), Kt = ({
|
|
1832
1832
|
className: i,
|
|
1833
|
-
color: e =
|
|
1833
|
+
color: e = b.GREY_DARK_5,
|
|
1834
1834
|
height: t = 24,
|
|
1835
1835
|
width: s = 24,
|
|
1836
1836
|
onClick: n
|
|
@@ -1882,7 +1882,7 @@ const Qe = ({
|
|
|
1882
1882
|
}
|
|
1883
1883
|
), $t = ({
|
|
1884
1884
|
className: i,
|
|
1885
|
-
color: e =
|
|
1885
|
+
color: e = b.GREY_DARK_5,
|
|
1886
1886
|
height: t = 24,
|
|
1887
1887
|
width: s = 24,
|
|
1888
1888
|
onClick: n
|
|
@@ -1919,7 +1919,7 @@ const Qe = ({
|
|
|
1919
1919
|
}
|
|
1920
1920
|
), Pt = ({
|
|
1921
1921
|
className: i,
|
|
1922
|
-
color: e =
|
|
1922
|
+
color: e = b.NOTIFICATION_WARNING_DARK,
|
|
1923
1923
|
height: t = 37,
|
|
1924
1924
|
width: s = 36,
|
|
1925
1925
|
onClick: n
|
|
@@ -1958,7 +1958,7 @@ const Qe = ({
|
|
|
1958
1958
|
}
|
|
1959
1959
|
), Ft = ({
|
|
1960
1960
|
className: i,
|
|
1961
|
-
color: e =
|
|
1961
|
+
color: e = b.GREY_DARK_5,
|
|
1962
1962
|
height: t = 24,
|
|
1963
1963
|
width: s = 24,
|
|
1964
1964
|
onClick: n
|
|
@@ -1984,7 +1984,7 @@ const Qe = ({
|
|
|
1984
1984
|
}
|
|
1985
1985
|
), Yt = ({
|
|
1986
1986
|
className: i,
|
|
1987
|
-
color: e =
|
|
1987
|
+
color: e = b.GREY_DARK_5,
|
|
1988
1988
|
height: t = 24,
|
|
1989
1989
|
width: s = 24,
|
|
1990
1990
|
onClick: n
|
|
@@ -2023,7 +2023,7 @@ const Qe = ({
|
|
|
2023
2023
|
}
|
|
2024
2024
|
), Ut = ({
|
|
2025
2025
|
className: i,
|
|
2026
|
-
color: e =
|
|
2026
|
+
color: e = b.GREY_DARK_5,
|
|
2027
2027
|
height: t = 24,
|
|
2028
2028
|
width: s = 24,
|
|
2029
2029
|
onClick: n
|
|
@@ -2062,7 +2062,40 @@ const Qe = ({
|
|
|
2062
2062
|
}
|
|
2063
2063
|
), zt = ({
|
|
2064
2064
|
className: i,
|
|
2065
|
-
color: e =
|
|
2065
|
+
color: e = b.GREY_DARK_5,
|
|
2066
|
+
height: t = 20,
|
|
2067
|
+
width: s = 20,
|
|
2068
|
+
onClick: n
|
|
2069
|
+
}) => /* @__PURE__ */ C(
|
|
2070
|
+
"svg",
|
|
2071
|
+
{
|
|
2072
|
+
onClick: n,
|
|
2073
|
+
className: i,
|
|
2074
|
+
width: s,
|
|
2075
|
+
height: t,
|
|
2076
|
+
viewBox: "0 0 24 25",
|
|
2077
|
+
fill: "none",
|
|
2078
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2079
|
+
children: [
|
|
2080
|
+
/* @__PURE__ */ r(
|
|
2081
|
+
"path",
|
|
2082
|
+
{
|
|
2083
|
+
d: "M9.75 19.75H19.25V10.25H9.75V19.75ZM20.75 19.9004C20.7498 20.6457 20.1457 21.2498 19.4004 21.25H9.59961C8.85433 21.2498 8.25021 20.6457 8.25 19.9004V10.0996C8.25021 9.35433 8.85433 8.75021 9.59961 8.75H19.4004C20.1457 8.75021 20.7498 9.35433 20.75 10.0996V19.9004Z",
|
|
2084
|
+
fill: e
|
|
2085
|
+
}
|
|
2086
|
+
),
|
|
2087
|
+
/* @__PURE__ */ r(
|
|
2088
|
+
"path",
|
|
2089
|
+
{
|
|
2090
|
+
d: "M15.75 9.5C15.75 9.91421 15.4142 10.25 15 10.25C14.5858 10.25 14.25 9.91421 14.25 9.5V5.25H4.75V14.75H9C9.41421 14.75 9.75 15.0858 9.75 15.5C9.75 15.9142 9.41421 16.25 9 16.25H4.59961C3.85433 16.2498 3.25021 15.6457 3.25 14.9004V5.09961C3.25021 4.35433 3.85433 3.75021 4.59961 3.75H14.4004C15.1457 3.75021 15.7498 4.35433 15.75 5.09961V9.5Z",
|
|
2091
|
+
fill: e
|
|
2092
|
+
}
|
|
2093
|
+
)
|
|
2094
|
+
]
|
|
2095
|
+
}
|
|
2096
|
+
), Jt = ({
|
|
2097
|
+
className: i,
|
|
2098
|
+
color: e = b.GREY_DARK_5,
|
|
2066
2099
|
height: t = 24,
|
|
2067
2100
|
width: s = 24,
|
|
2068
2101
|
onClick: n
|
|
@@ -2129,9 +2162,9 @@ const Qe = ({
|
|
|
2129
2162
|
)
|
|
2130
2163
|
]
|
|
2131
2164
|
}
|
|
2132
|
-
),
|
|
2165
|
+
), qt = ({
|
|
2133
2166
|
className: i,
|
|
2134
|
-
color: e =
|
|
2167
|
+
color: e = b.GREY_DARK_5,
|
|
2135
2168
|
height: t = 24,
|
|
2136
2169
|
width: s = 24,
|
|
2137
2170
|
onClick: n
|
|
@@ -2186,9 +2219,9 @@ const Qe = ({
|
|
|
2186
2219
|
)
|
|
2187
2220
|
]
|
|
2188
2221
|
}
|
|
2189
|
-
),
|
|
2222
|
+
), Qt = ({
|
|
2190
2223
|
className: i,
|
|
2191
|
-
color: e =
|
|
2224
|
+
color: e = b.GREY_DARK_5,
|
|
2192
2225
|
height: t = 24,
|
|
2193
2226
|
width: s = 24,
|
|
2194
2227
|
onClick: n
|
|
@@ -2225,9 +2258,9 @@ const Qe = ({
|
|
|
2225
2258
|
)
|
|
2226
2259
|
]
|
|
2227
2260
|
}
|
|
2228
|
-
),
|
|
2261
|
+
), Xt = ({
|
|
2229
2262
|
className: i,
|
|
2230
|
-
color: e =
|
|
2263
|
+
color: e = b.GREY_DARK_5,
|
|
2231
2264
|
height: t = 24,
|
|
2232
2265
|
width: s = 24,
|
|
2233
2266
|
onClick: n
|
|
@@ -2274,9 +2307,9 @@ const Qe = ({
|
|
|
2274
2307
|
)
|
|
2275
2308
|
]
|
|
2276
2309
|
}
|
|
2277
|
-
),
|
|
2310
|
+
), e2 = ({
|
|
2278
2311
|
className: i,
|
|
2279
|
-
color: e =
|
|
2312
|
+
color: e = b.GREY_DARK_5,
|
|
2280
2313
|
height: t = 24,
|
|
2281
2314
|
width: s = 24,
|
|
2282
2315
|
onClick: n
|
|
@@ -2301,9 +2334,9 @@ const Qe = ({
|
|
|
2301
2334
|
}
|
|
2302
2335
|
)
|
|
2303
2336
|
}
|
|
2304
|
-
),
|
|
2337
|
+
), t2 = ({
|
|
2305
2338
|
className: i,
|
|
2306
|
-
color: e =
|
|
2339
|
+
color: e = b.GREY_DARK_5,
|
|
2307
2340
|
height: t = 20,
|
|
2308
2341
|
width: s = 20,
|
|
2309
2342
|
onClick: n
|
|
@@ -2318,7 +2351,7 @@ const Qe = ({
|
|
|
2318
2351
|
fill: "none",
|
|
2319
2352
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2320
2353
|
children: [
|
|
2321
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
2354
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: b.GREY_LIGHT_2 }),
|
|
2322
2355
|
/* @__PURE__ */ r(
|
|
2323
2356
|
"path",
|
|
2324
2357
|
{
|
|
@@ -2330,7 +2363,7 @@ const Qe = ({
|
|
|
2330
2363
|
)
|
|
2331
2364
|
]
|
|
2332
2365
|
}
|
|
2333
|
-
),
|
|
2366
|
+
), i2 = ({
|
|
2334
2367
|
className: i,
|
|
2335
2368
|
color: e = "#001E52",
|
|
2336
2369
|
height: t = 24,
|
|
@@ -2356,7 +2389,7 @@ const Qe = ({
|
|
|
2356
2389
|
}
|
|
2357
2390
|
)
|
|
2358
2391
|
}
|
|
2359
|
-
),
|
|
2392
|
+
), s2 = ({
|
|
2360
2393
|
className: i,
|
|
2361
2394
|
color: e = "#131314",
|
|
2362
2395
|
height: t = 20,
|
|
@@ -2384,7 +2417,7 @@ const Qe = ({
|
|
|
2384
2417
|
}
|
|
2385
2418
|
)
|
|
2386
2419
|
}
|
|
2387
|
-
),
|
|
2420
|
+
), n2 = ({
|
|
2388
2421
|
className: i,
|
|
2389
2422
|
color: e = "#001E52",
|
|
2390
2423
|
height: t = 24,
|
|
@@ -2422,7 +2455,7 @@ const Qe = ({
|
|
|
2422
2455
|
)
|
|
2423
2456
|
] }) })
|
|
2424
2457
|
}
|
|
2425
|
-
),
|
|
2458
|
+
), r2 = ({
|
|
2426
2459
|
width: i = 20,
|
|
2427
2460
|
height: e = 20,
|
|
2428
2461
|
color: t = "#001E52",
|
|
@@ -2478,7 +2511,7 @@ const Qe = ({
|
|
|
2478
2511
|
}
|
|
2479
2512
|
)
|
|
2480
2513
|
}
|
|
2481
|
-
),
|
|
2514
|
+
), o2 = ({
|
|
2482
2515
|
width: i = 24,
|
|
2483
2516
|
height: e = 24,
|
|
2484
2517
|
color: t = "#131314",
|
|
@@ -2511,10 +2544,10 @@ const Qe = ({
|
|
|
2511
2544
|
)
|
|
2512
2545
|
]
|
|
2513
2546
|
}
|
|
2514
|
-
),
|
|
2547
|
+
), a2 = ({
|
|
2515
2548
|
width: i = 24,
|
|
2516
2549
|
height: e = 24,
|
|
2517
|
-
color: t =
|
|
2550
|
+
color: t = b.GREY_DARK_2,
|
|
2518
2551
|
className: s,
|
|
2519
2552
|
onClick: n
|
|
2520
2553
|
}) => /* @__PURE__ */ C(
|
|
@@ -2550,10 +2583,10 @@ const Qe = ({
|
|
|
2550
2583
|
)
|
|
2551
2584
|
]
|
|
2552
2585
|
}
|
|
2553
|
-
),
|
|
2586
|
+
), l2 = ({
|
|
2554
2587
|
width: i = 24,
|
|
2555
2588
|
height: e = 24,
|
|
2556
|
-
color: t =
|
|
2589
|
+
color: t = b.GREY_DARK_2,
|
|
2557
2590
|
className: s,
|
|
2558
2591
|
onClick: n
|
|
2559
2592
|
}) => /* @__PURE__ */ r(
|
|
@@ -2577,10 +2610,10 @@ const Qe = ({
|
|
|
2577
2610
|
}
|
|
2578
2611
|
)
|
|
2579
2612
|
}
|
|
2580
|
-
),
|
|
2613
|
+
), h2 = ({
|
|
2581
2614
|
width: i = 24,
|
|
2582
2615
|
height: e = 24,
|
|
2583
|
-
color: t =
|
|
2616
|
+
color: t = b.GREY_DARK_2,
|
|
2584
2617
|
className: s,
|
|
2585
2618
|
onClick: n
|
|
2586
2619
|
}) => /* @__PURE__ */ C(
|
|
@@ -2617,10 +2650,10 @@ const Qe = ({
|
|
|
2617
2650
|
)
|
|
2618
2651
|
]
|
|
2619
2652
|
}
|
|
2620
|
-
),
|
|
2653
|
+
), c2 = ({
|
|
2621
2654
|
width: i = 24,
|
|
2622
2655
|
height: e = 24,
|
|
2623
|
-
color: t =
|
|
2656
|
+
color: t = b.GREY_DARK_2,
|
|
2624
2657
|
className: s,
|
|
2625
2658
|
onClick: n
|
|
2626
2659
|
}) => /* @__PURE__ */ r(
|
|
@@ -2644,10 +2677,10 @@ const Qe = ({
|
|
|
2644
2677
|
}
|
|
2645
2678
|
)
|
|
2646
2679
|
}
|
|
2647
|
-
),
|
|
2680
|
+
), d2 = ({
|
|
2648
2681
|
width: i = 24,
|
|
2649
2682
|
height: e = 24,
|
|
2650
|
-
color: t =
|
|
2683
|
+
color: t = b.GREY_DARK_2,
|
|
2651
2684
|
className: s,
|
|
2652
2685
|
onClick: n
|
|
2653
2686
|
}) => /* @__PURE__ */ r(
|
|
@@ -2671,7 +2704,7 @@ const Qe = ({
|
|
|
2671
2704
|
}
|
|
2672
2705
|
)
|
|
2673
2706
|
}
|
|
2674
|
-
),
|
|
2707
|
+
), g2 = ({
|
|
2675
2708
|
width: i = 20,
|
|
2676
2709
|
height: e = 20,
|
|
2677
2710
|
color: t = "#001E52",
|
|
@@ -2703,98 +2736,98 @@ const Qe = ({
|
|
|
2703
2736
|
height: t,
|
|
2704
2737
|
color: s,
|
|
2705
2738
|
className: n,
|
|
2706
|
-
disabled:
|
|
2739
|
+
disabled: a = !1,
|
|
2707
2740
|
onClick: c
|
|
2708
2741
|
}) => {
|
|
2709
|
-
const [
|
|
2742
|
+
const [o, g] = T(n), { theme: d } = r1(ce), l = a ? d && d === "dark" ? b.GREY_LIGHT_4 : b.GREY_DARK_1 : s, h = a ? void 0 : c;
|
|
2710
2743
|
return j(() => {
|
|
2711
2744
|
if (n) {
|
|
2712
|
-
h && !
|
|
2745
|
+
h && !a && g(`${n} clickable`);
|
|
2713
2746
|
return;
|
|
2714
2747
|
}
|
|
2715
|
-
h && !
|
|
2716
|
-
}, [h, n,
|
|
2748
|
+
h && !a && g("clickable");
|
|
2749
|
+
}, [h, n, a]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
2717
2750
|
switch (i) {
|
|
2718
2751
|
case "nextIcon":
|
|
2719
|
-
return Ot({ width: e, height: t, color: l, className:
|
|
2752
|
+
return Ot({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2720
2753
|
case "prevIcon":
|
|
2721
|
-
return
|
|
2754
|
+
return Vt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2722
2755
|
case "arrowDown":
|
|
2723
|
-
return Qe({ width: e, height: t, color: l, className:
|
|
2756
|
+
return Qe({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2724
2757
|
case "info":
|
|
2725
|
-
return Xe({ width: e, height: t, color: l, className:
|
|
2758
|
+
return Xe({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2726
2759
|
case "arrowRight":
|
|
2727
|
-
return et({ width: e, height: t, color: l, className:
|
|
2760
|
+
return et({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2728
2761
|
case "calendar":
|
|
2729
|
-
return tt({ width: e, height: t, color: l, className:
|
|
2762
|
+
return tt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2730
2763
|
case "ok":
|
|
2731
|
-
return it({ width: e, height: t, color: l, className:
|
|
2764
|
+
return it({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2732
2765
|
case "cancel":
|
|
2733
|
-
return st({ width: e, height: t, color: l, className:
|
|
2766
|
+
return st({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2734
2767
|
case "add":
|
|
2735
|
-
return nt({ width: e, height: t, color: l, className:
|
|
2768
|
+
return nt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2736
2769
|
case "list":
|
|
2737
|
-
return rt({ width: e, height: t, color: l, className:
|
|
2770
|
+
return rt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2738
2771
|
case "dragAndDrop":
|
|
2739
|
-
return ot({ width: e, height: t, color: l, className:
|
|
2772
|
+
return ot({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2740
2773
|
case "filter":
|
|
2741
|
-
return at({ width: e, height: t, color: l, className:
|
|
2774
|
+
return at({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2742
2775
|
case "attention":
|
|
2743
|
-
return lt({ width: e, height: t, color: l, className:
|
|
2776
|
+
return lt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2744
2777
|
case "users":
|
|
2745
|
-
return ht({ width: e, height: t, color: l, className:
|
|
2778
|
+
return ht({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2746
2779
|
case "mySkillsMatrix":
|
|
2747
2780
|
return ct({
|
|
2748
2781
|
width: e,
|
|
2749
2782
|
height: t,
|
|
2750
2783
|
color: l,
|
|
2751
|
-
className:
|
|
2784
|
+
className: o,
|
|
2752
2785
|
onClick: h
|
|
2753
2786
|
});
|
|
2754
2787
|
case "skills":
|
|
2755
|
-
return dt({ width: e, height: t, color: l, className:
|
|
2788
|
+
return dt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2756
2789
|
case "skillsMatrices":
|
|
2757
2790
|
return gt({
|
|
2758
2791
|
width: e,
|
|
2759
2792
|
height: t,
|
|
2760
2793
|
color: l,
|
|
2761
|
-
className:
|
|
2794
|
+
className: o,
|
|
2762
2795
|
onClick: h
|
|
2763
2796
|
});
|
|
2764
2797
|
case "history":
|
|
2765
|
-
return ut({ width: e, height: t, color: l, className:
|
|
2798
|
+
return ut({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2766
2799
|
case "logOut":
|
|
2767
|
-
return Ct({ width: e, height: t, color: l, className:
|
|
2800
|
+
return Ct({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2768
2801
|
case "settings":
|
|
2769
|
-
return pt({ width: e, height: t, color: l, className:
|
|
2802
|
+
return pt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2770
2803
|
case "trash":
|
|
2771
|
-
return ft({ width: e, height: t, color: l, className:
|
|
2804
|
+
return ft({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2772
2805
|
case "settings4":
|
|
2773
|
-
return mt({ width: e, height: t, color: l, className:
|
|
2806
|
+
return mt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2774
2807
|
case "success":
|
|
2775
|
-
return wt({ width: e, height: t, color: l, className:
|
|
2808
|
+
return wt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2776
2809
|
case "checkCircle":
|
|
2777
|
-
return kt({ width: e, height: t, color: l, className:
|
|
2810
|
+
return kt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2778
2811
|
case "errorSmall":
|
|
2779
|
-
return Lt({ width: e, height: t, color: l, className:
|
|
2812
|
+
return Lt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2780
2813
|
case "infoMedium":
|
|
2781
|
-
return vt({ width: e, height: t, color: l, className:
|
|
2814
|
+
return vt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2782
2815
|
case "attentionMedium":
|
|
2783
2816
|
return Nt({
|
|
2784
2817
|
width: e,
|
|
2785
2818
|
height: t,
|
|
2786
2819
|
color: l,
|
|
2787
|
-
className:
|
|
2820
|
+
className: o,
|
|
2788
2821
|
onClick: h
|
|
2789
2822
|
});
|
|
2790
2823
|
case "errorMedium":
|
|
2791
|
-
return xt({ width: e, height: t, color: l, className:
|
|
2824
|
+
return xt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2792
2825
|
case "visibilityIcon":
|
|
2793
2826
|
return Rt({
|
|
2794
2827
|
width: e,
|
|
2795
2828
|
height: t,
|
|
2796
2829
|
color: l,
|
|
2797
|
-
className:
|
|
2830
|
+
className: o,
|
|
2798
2831
|
onClick: h
|
|
2799
2832
|
});
|
|
2800
2833
|
case "visibilityOffIcon":
|
|
@@ -2802,7 +2835,7 @@ const Qe = ({
|
|
|
2802
2835
|
width: e,
|
|
2803
2836
|
height: t,
|
|
2804
2837
|
color: l,
|
|
2805
|
-
className:
|
|
2838
|
+
className: o,
|
|
2806
2839
|
onClick: h
|
|
2807
2840
|
});
|
|
2808
2841
|
case "selectArrowIcon":
|
|
@@ -2810,7 +2843,7 @@ const Qe = ({
|
|
|
2810
2843
|
width: e,
|
|
2811
2844
|
height: t,
|
|
2812
2845
|
color: l,
|
|
2813
|
-
className:
|
|
2846
|
+
className: o,
|
|
2814
2847
|
onClick: h
|
|
2815
2848
|
});
|
|
2816
2849
|
case "expandArrowIcon":
|
|
@@ -2818,7 +2851,7 @@ const Qe = ({
|
|
|
2818
2851
|
width: e,
|
|
2819
2852
|
height: t,
|
|
2820
2853
|
color: l,
|
|
2821
|
-
className:
|
|
2854
|
+
className: o,
|
|
2822
2855
|
onClick: h
|
|
2823
2856
|
});
|
|
2824
2857
|
case "expandActiveArrowIcon":
|
|
@@ -2826,106 +2859,108 @@ const Qe = ({
|
|
|
2826
2859
|
width: e,
|
|
2827
2860
|
height: t,
|
|
2828
2861
|
color: l,
|
|
2829
|
-
className:
|
|
2862
|
+
className: o,
|
|
2830
2863
|
onClick: h
|
|
2831
2864
|
});
|
|
2832
2865
|
case "sortUp":
|
|
2833
|
-
return _t({ width: e, height: t, color: l, className:
|
|
2866
|
+
return _t({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2834
2867
|
case "sortDown":
|
|
2835
|
-
return Ht({ width: e, height: t, color: l, className:
|
|
2868
|
+
return Ht({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2836
2869
|
case "search":
|
|
2837
|
-
return It({ width: e, height: t, color: l, className:
|
|
2870
|
+
return It({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2838
2871
|
case "arrowUpFilled":
|
|
2839
|
-
return At({ width: e, height: t, color: l, className:
|
|
2872
|
+
return At({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2840
2873
|
case "arrowDownFilled":
|
|
2841
|
-
return
|
|
2874
|
+
return St({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2842
2875
|
case "link":
|
|
2843
|
-
return Tt({ width: e, height: t, color: l, className:
|
|
2876
|
+
return Tt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2844
2877
|
case "telegram":
|
|
2845
|
-
return Dt({ width: e, height: t, color: l, className:
|
|
2878
|
+
return Dt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2846
2879
|
case "mail":
|
|
2847
|
-
return jt({ width: e, height: t, color: l, className:
|
|
2880
|
+
return jt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2848
2881
|
case "github":
|
|
2849
|
-
return Zt({ width: e, height: t, color: l, className:
|
|
2882
|
+
return Zt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2850
2883
|
case "linkedIn":
|
|
2851
|
-
return Bt({ width: e, height: t, color: l, className:
|
|
2884
|
+
return Bt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2852
2885
|
case "emptyStateIcon":
|
|
2853
|
-
return
|
|
2886
|
+
return Gt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2854
2887
|
case "filtersIcon":
|
|
2855
|
-
return
|
|
2888
|
+
return Wt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2856
2889
|
case "dotMenuIcon":
|
|
2857
|
-
return Kt({ width: e, height: t, color: l, className:
|
|
2890
|
+
return Kt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2858
2891
|
case "plusCircle":
|
|
2859
|
-
return $t({ width: e, height: t, color: l, className:
|
|
2892
|
+
return $t({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2860
2893
|
case "warning":
|
|
2861
|
-
return Pt({ width: e, height: t, color: l, className:
|
|
2894
|
+
return Pt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2862
2895
|
case "back":
|
|
2863
|
-
return Ft({ width: e, height: t, color: l, className:
|
|
2896
|
+
return Ft({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2864
2897
|
case "bell":
|
|
2865
|
-
return Yt({ width: e, height: t, color: l, className:
|
|
2898
|
+
return Yt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2899
|
+
case "copy":
|
|
2900
|
+
return zt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2866
2901
|
case "contract":
|
|
2867
|
-
return
|
|
2902
|
+
return Jt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2868
2903
|
case "trash2":
|
|
2869
|
-
return Ut({ width: e, height: t, color: l, className:
|
|
2904
|
+
return Ut({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2870
2905
|
case "resourceManager":
|
|
2871
|
-
return
|
|
2906
|
+
return qt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2872
2907
|
case "settings2":
|
|
2873
|
-
return
|
|
2908
|
+
return Qt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2874
2909
|
case "image":
|
|
2875
|
-
return
|
|
2910
|
+
return Xt({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2876
2911
|
case "edit":
|
|
2877
|
-
return
|
|
2912
|
+
return e2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2878
2913
|
case "filledArrowRight":
|
|
2879
|
-
return
|
|
2914
|
+
return t2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2880
2915
|
case "burgerMenu":
|
|
2881
|
-
return
|
|
2916
|
+
return i2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2882
2917
|
case "signOut":
|
|
2883
|
-
return
|
|
2918
|
+
return s2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2884
2919
|
case "refresh":
|
|
2885
|
-
return
|
|
2920
|
+
return n2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2886
2921
|
case "projects":
|
|
2887
|
-
return
|
|
2922
|
+
return r2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2888
2923
|
case "profile":
|
|
2889
|
-
return
|
|
2924
|
+
return g2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2890
2925
|
case "exit":
|
|
2891
|
-
return
|
|
2926
|
+
return o2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2892
2927
|
case "client":
|
|
2893
|
-
return
|
|
2928
|
+
return a2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2894
2929
|
case "calendar2":
|
|
2895
|
-
return
|
|
2930
|
+
return l2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2896
2931
|
case "openPointCircle":
|
|
2897
|
-
return
|
|
2932
|
+
return h2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2898
2933
|
case "community":
|
|
2899
|
-
return
|
|
2934
|
+
return c2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2900
2935
|
case "docs":
|
|
2901
|
-
return
|
|
2936
|
+
return d2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
2902
2937
|
default:
|
|
2903
2938
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
2904
2939
|
}
|
|
2905
2940
|
})() });
|
|
2906
|
-
}, { Title:
|
|
2941
|
+
}, { Title: u2, Text: C2 } = ae, p2 = {
|
|
2907
2942
|
h1: 1,
|
|
2908
2943
|
h2: 2,
|
|
2909
2944
|
h3: 3,
|
|
2910
2945
|
h4: 4
|
|
2911
|
-
},
|
|
2946
|
+
}, f2 = k1(
|
|
2912
2947
|
({
|
|
2913
2948
|
align: i = "inherit",
|
|
2914
2949
|
variant: e = "body1",
|
|
2915
2950
|
color: t,
|
|
2916
2951
|
children: s,
|
|
2917
2952
|
onClick: n,
|
|
2918
|
-
collapsed:
|
|
2953
|
+
collapsed: a,
|
|
2919
2954
|
whiteSpace: c = "normal",
|
|
2920
2955
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2921
|
-
trim:
|
|
2956
|
+
trim: o = !1
|
|
2922
2957
|
}, g) => {
|
|
2923
2958
|
const d = q(null);
|
|
2924
2959
|
_1(g, () => d.current);
|
|
2925
2960
|
const [l, h] = T(!1);
|
|
2926
2961
|
j(() => {
|
|
2927
2962
|
var k;
|
|
2928
|
-
if (!
|
|
2963
|
+
if (!o) return;
|
|
2929
2964
|
const m = () => {
|
|
2930
2965
|
d.current && h(d.current.scrollWidth > d.current.clientWidth);
|
|
2931
2966
|
};
|
|
@@ -2934,32 +2969,32 @@ const Qe = ({
|
|
|
2934
2969
|
return d.current && _.observe(d.current), (k = d.current) != null && k.parentElement && _.observe(d.current.parentElement), () => {
|
|
2935
2970
|
_.disconnect();
|
|
2936
2971
|
};
|
|
2937
|
-
}, [
|
|
2972
|
+
}, [o]);
|
|
2938
2973
|
const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
2939
2974
|
let p = `snmt-typography snmt-typography-${e}`;
|
|
2940
|
-
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`),
|
|
2975
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), a && (p += " collapsed");
|
|
2941
2976
|
const w = {
|
|
2942
2977
|
className: p,
|
|
2943
|
-
style: { color: t, whiteSpace:
|
|
2978
|
+
style: { color: t, whiteSpace: o ? "nowrap" : c, display: o ? "block" : "" },
|
|
2944
2979
|
onClick: n,
|
|
2945
2980
|
ref: d,
|
|
2946
|
-
ellipsis:
|
|
2981
|
+
ellipsis: o && l ? {
|
|
2947
2982
|
tooltip: {
|
|
2948
2983
|
title: s,
|
|
2949
2984
|
overlayClassName: "snmt-tooltip"
|
|
2950
2985
|
}
|
|
2951
2986
|
} : void 0
|
|
2952
2987
|
};
|
|
2953
|
-
return u ? /* @__PURE__ */ r(
|
|
2988
|
+
return u ? /* @__PURE__ */ r(u2, { level: p2[e], ...w, children: s }) : /* @__PURE__ */ r(C2, { ...w, children: s });
|
|
2954
2989
|
}
|
|
2955
2990
|
);
|
|
2956
|
-
var
|
|
2991
|
+
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 || {});
|
|
2957
2992
|
const de = d1({
|
|
2958
2993
|
locale: "en",
|
|
2959
2994
|
theme: "light"
|
|
2960
2995
|
});
|
|
2961
2996
|
de.Provider;
|
|
2962
|
-
const
|
|
2997
|
+
const m2 = ({
|
|
2963
2998
|
width: i = 20,
|
|
2964
2999
|
height: e = 20,
|
|
2965
3000
|
color: t = "#001E52",
|
|
@@ -2986,10 +3021,10 @@ const f2 = ({
|
|
|
2986
3021
|
}
|
|
2987
3022
|
)
|
|
2988
3023
|
}
|
|
2989
|
-
),
|
|
3024
|
+
), w2 = ({
|
|
2990
3025
|
width: i = 20,
|
|
2991
3026
|
height: e = 20,
|
|
2992
|
-
color: t =
|
|
3027
|
+
color: t = y.GREY_DARK_5,
|
|
2993
3028
|
className: s,
|
|
2994
3029
|
onClick: n
|
|
2995
3030
|
}) => /* @__PURE__ */ C(
|
|
@@ -3026,7 +3061,7 @@ const f2 = ({
|
|
|
3026
3061
|
)
|
|
3027
3062
|
]
|
|
3028
3063
|
}
|
|
3029
|
-
),
|
|
3064
|
+
), k2 = ({
|
|
3030
3065
|
width: i = 20,
|
|
3031
3066
|
height: e = 20,
|
|
3032
3067
|
color: t = "#001E52",
|
|
@@ -3061,7 +3096,7 @@ const f2 = ({
|
|
|
3061
3096
|
)
|
|
3062
3097
|
]
|
|
3063
3098
|
}
|
|
3064
|
-
),
|
|
3099
|
+
), L2 = ({
|
|
3065
3100
|
width: i = 18,
|
|
3066
3101
|
height: e = 18,
|
|
3067
3102
|
color: t = "#001E52",
|
|
@@ -3100,7 +3135,7 @@ const f2 = ({
|
|
|
3100
3135
|
)
|
|
3101
3136
|
]
|
|
3102
3137
|
}
|
|
3103
|
-
),
|
|
3138
|
+
), v2 = ({
|
|
3104
3139
|
width: i = 20,
|
|
3105
3140
|
height: e = 20,
|
|
3106
3141
|
color: t = "#001E52",
|
|
@@ -3126,7 +3161,7 @@ const f2 = ({
|
|
|
3126
3161
|
}
|
|
3127
3162
|
)
|
|
3128
3163
|
}
|
|
3129
|
-
),
|
|
3164
|
+
), N2 = ({
|
|
3130
3165
|
width: i = 20,
|
|
3131
3166
|
height: e = 20,
|
|
3132
3167
|
color: t = "#001E52",
|
|
@@ -3147,7 +3182,7 @@ const f2 = ({
|
|
|
3147
3182
|
/* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
|
3148
3183
|
]
|
|
3149
3184
|
}
|
|
3150
|
-
),
|
|
3185
|
+
), x2 = ({
|
|
3151
3186
|
width: i = 20,
|
|
3152
3187
|
height: e = 20,
|
|
3153
3188
|
color: t = "#001E52",
|
|
@@ -3179,7 +3214,7 @@ const f2 = ({
|
|
|
3179
3214
|
)
|
|
3180
3215
|
]
|
|
3181
3216
|
}
|
|
3182
|
-
),
|
|
3217
|
+
), R2 = ({
|
|
3183
3218
|
width: i = 20,
|
|
3184
3219
|
height: e = 20,
|
|
3185
3220
|
color: t = "#001E52",
|
|
@@ -3233,7 +3268,7 @@ const f2 = ({
|
|
|
3233
3268
|
)
|
|
3234
3269
|
]
|
|
3235
3270
|
}
|
|
3236
|
-
),
|
|
3271
|
+
), M2 = ({
|
|
3237
3272
|
width: i = 20,
|
|
3238
3273
|
height: e = 20,
|
|
3239
3274
|
color: t = "#001E52",
|
|
@@ -3272,7 +3307,7 @@ const f2 = ({
|
|
|
3272
3307
|
/* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
|
3273
3308
|
]
|
|
3274
3309
|
}
|
|
3275
|
-
),
|
|
3310
|
+
), b2 = ({
|
|
3276
3311
|
width: i = 16,
|
|
3277
3312
|
height: e = 12,
|
|
3278
3313
|
color: t = "#001E52",
|
|
@@ -3321,10 +3356,10 @@ const f2 = ({
|
|
|
3321
3356
|
)
|
|
3322
3357
|
] })
|
|
3323
3358
|
}
|
|
3324
|
-
),
|
|
3359
|
+
), y2 = ({
|
|
3325
3360
|
width: i = 20,
|
|
3326
3361
|
height: e = 20,
|
|
3327
|
-
color: t =
|
|
3362
|
+
color: t = y.GREY_DARK_5,
|
|
3328
3363
|
className: s,
|
|
3329
3364
|
onClick: n
|
|
3330
3365
|
}) => /* @__PURE__ */ C(
|
|
@@ -3361,7 +3396,7 @@ const f2 = ({
|
|
|
3361
3396
|
)
|
|
3362
3397
|
]
|
|
3363
3398
|
}
|
|
3364
|
-
),
|
|
3399
|
+
), E2 = ({
|
|
3365
3400
|
width: i = 20,
|
|
3366
3401
|
height: e = 20,
|
|
3367
3402
|
color: t = "#001E52",
|
|
@@ -3408,7 +3443,7 @@ const f2 = ({
|
|
|
3408
3443
|
)
|
|
3409
3444
|
]
|
|
3410
3445
|
}
|
|
3411
|
-
),
|
|
3446
|
+
), _2 = ({
|
|
3412
3447
|
width: i = 20,
|
|
3413
3448
|
height: e = 20,
|
|
3414
3449
|
color: t = "#001E52",
|
|
@@ -3441,7 +3476,7 @@ const f2 = ({
|
|
|
3441
3476
|
)
|
|
3442
3477
|
]
|
|
3443
3478
|
}
|
|
3444
|
-
),
|
|
3479
|
+
), H2 = ({
|
|
3445
3480
|
width: i = 20,
|
|
3446
3481
|
height: e = 20,
|
|
3447
3482
|
color: t = "#001E52",
|
|
@@ -3488,7 +3523,7 @@ const f2 = ({
|
|
|
3488
3523
|
)
|
|
3489
3524
|
]
|
|
3490
3525
|
}
|
|
3491
|
-
),
|
|
3526
|
+
), I2 = ({
|
|
3492
3527
|
width: i = 20,
|
|
3493
3528
|
height: e = 20,
|
|
3494
3529
|
color: t = "#001E52",
|
|
@@ -3521,7 +3556,7 @@ const f2 = ({
|
|
|
3521
3556
|
)
|
|
3522
3557
|
]
|
|
3523
3558
|
}
|
|
3524
|
-
),
|
|
3559
|
+
), O2 = ({
|
|
3525
3560
|
width: i = 18,
|
|
3526
3561
|
height: e = 16,
|
|
3527
3562
|
color: t = "#001E52",
|
|
@@ -3560,7 +3595,7 @@ const f2 = ({
|
|
|
3560
3595
|
)
|
|
3561
3596
|
]
|
|
3562
3597
|
}
|
|
3563
|
-
),
|
|
3598
|
+
), V2 = ({
|
|
3564
3599
|
width: i = 20,
|
|
3565
3600
|
height: e = 20,
|
|
3566
3601
|
color: t = "#001E52",
|
|
@@ -3617,7 +3652,7 @@ const f2 = ({
|
|
|
3617
3652
|
}
|
|
3618
3653
|
)
|
|
3619
3654
|
}
|
|
3620
|
-
),
|
|
3655
|
+
), A2 = ({
|
|
3621
3656
|
width: i = 20,
|
|
3622
3657
|
height: e = 20,
|
|
3623
3658
|
color: t = "#001E52",
|
|
@@ -3650,7 +3685,7 @@ const f2 = ({
|
|
|
3650
3685
|
)
|
|
3651
3686
|
]
|
|
3652
3687
|
}
|
|
3653
|
-
),
|
|
3688
|
+
), T2 = ({
|
|
3654
3689
|
width: i = 20,
|
|
3655
3690
|
height: e = 23,
|
|
3656
3691
|
color: t = "#001E52",
|
|
@@ -3711,7 +3746,7 @@ const f2 = ({
|
|
|
3711
3746
|
)
|
|
3712
3747
|
]
|
|
3713
3748
|
}
|
|
3714
|
-
),
|
|
3749
|
+
), Z2 = ({
|
|
3715
3750
|
width: i = 14,
|
|
3716
3751
|
height: e = 14,
|
|
3717
3752
|
color: t = "#10B981",
|
|
@@ -3740,10 +3775,10 @@ const f2 = ({
|
|
|
3740
3775
|
)
|
|
3741
3776
|
]
|
|
3742
3777
|
}
|
|
3743
|
-
),
|
|
3778
|
+
), D2 = ({
|
|
3744
3779
|
width: i = 20,
|
|
3745
3780
|
height: e = 20,
|
|
3746
|
-
color: t =
|
|
3781
|
+
color: t = y.GREY_DARK_5,
|
|
3747
3782
|
className: s,
|
|
3748
3783
|
onClick: n
|
|
3749
3784
|
}) => /* @__PURE__ */ C(
|
|
@@ -3773,7 +3808,7 @@ const f2 = ({
|
|
|
3773
3808
|
)
|
|
3774
3809
|
]
|
|
3775
3810
|
}
|
|
3776
|
-
),
|
|
3811
|
+
), B2 = ({
|
|
3777
3812
|
width: i = 10,
|
|
3778
3813
|
height: e = 10,
|
|
3779
3814
|
color: t = "#88A4FF",
|
|
@@ -3821,7 +3856,7 @@ const f2 = ({
|
|
|
3821
3856
|
)
|
|
3822
3857
|
]
|
|
3823
3858
|
}
|
|
3824
|
-
),
|
|
3859
|
+
), j2 = ({
|
|
3825
3860
|
width: i = 14,
|
|
3826
3861
|
height: e = 14,
|
|
3827
3862
|
color: t = "#8E8E93",
|
|
@@ -3849,7 +3884,7 @@ const f2 = ({
|
|
|
3849
3884
|
)
|
|
3850
3885
|
]
|
|
3851
3886
|
}
|
|
3852
|
-
),
|
|
3887
|
+
), G2 = ({
|
|
3853
3888
|
width: i = 14,
|
|
3854
3889
|
height: e = 14,
|
|
3855
3890
|
color: t = "#FFB020",
|
|
@@ -3931,7 +3966,7 @@ const f2 = ({
|
|
|
3931
3966
|
)
|
|
3932
3967
|
]
|
|
3933
3968
|
}
|
|
3934
|
-
),
|
|
3969
|
+
), K2 = ({
|
|
3935
3970
|
width: i = 20,
|
|
3936
3971
|
height: e = 20,
|
|
3937
3972
|
color: t = "#070739",
|
|
@@ -3961,7 +3996,7 @@ const f2 = ({
|
|
|
3961
3996
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
3962
3997
|
]
|
|
3963
3998
|
}
|
|
3964
|
-
),
|
|
3999
|
+
), $2 = ({
|
|
3965
4000
|
width: i = 20,
|
|
3966
4001
|
height: e = 20,
|
|
3967
4002
|
color: t = "#070739",
|
|
@@ -3999,7 +4034,7 @@ const f2 = ({
|
|
|
3999
4034
|
)
|
|
4000
4035
|
]
|
|
4001
4036
|
}
|
|
4002
|
-
),
|
|
4037
|
+
), P2 = ({
|
|
4003
4038
|
width: i = 9,
|
|
4004
4039
|
height: e = 5,
|
|
4005
4040
|
color: t = "#001E52",
|
|
@@ -4025,7 +4060,7 @@ const f2 = ({
|
|
|
4025
4060
|
}
|
|
4026
4061
|
)
|
|
4027
4062
|
}
|
|
4028
|
-
),
|
|
4063
|
+
), F2 = ({
|
|
4029
4064
|
width: i = 20,
|
|
4030
4065
|
height: e = 20,
|
|
4031
4066
|
color: t = "#F2F2F7",
|
|
@@ -4054,7 +4089,7 @@ const f2 = ({
|
|
|
4054
4089
|
)
|
|
4055
4090
|
]
|
|
4056
4091
|
}
|
|
4057
|
-
),
|
|
4092
|
+
), Y2 = ({
|
|
4058
4093
|
width: i = 20,
|
|
4059
4094
|
height: e = 20,
|
|
4060
4095
|
color: t = "#004ED7",
|
|
@@ -4083,7 +4118,7 @@ const f2 = ({
|
|
|
4083
4118
|
)
|
|
4084
4119
|
]
|
|
4085
4120
|
}
|
|
4086
|
-
),
|
|
4121
|
+
), U2 = ({
|
|
4087
4122
|
width: i = 10,
|
|
4088
4123
|
height: e = 10,
|
|
4089
4124
|
color: t = "#001E52",
|
|
@@ -4112,7 +4147,7 @@ const f2 = ({
|
|
|
4112
4147
|
)
|
|
4113
4148
|
]
|
|
4114
4149
|
}
|
|
4115
|
-
),
|
|
4150
|
+
), z2 = ({
|
|
4116
4151
|
width: i = 10,
|
|
4117
4152
|
height: e = 10,
|
|
4118
4153
|
color: t = "#001E52",
|
|
@@ -4149,9 +4184,9 @@ const f2 = ({
|
|
|
4149
4184
|
)
|
|
4150
4185
|
]
|
|
4151
4186
|
}
|
|
4152
|
-
),
|
|
4187
|
+
), J2 = ({
|
|
4153
4188
|
className: i,
|
|
4154
|
-
color: e =
|
|
4189
|
+
color: e = y.GREY_DARK_5,
|
|
4155
4190
|
height: t = 24,
|
|
4156
4191
|
width: s = 24,
|
|
4157
4192
|
onClick: n
|
|
@@ -4188,9 +4223,9 @@ const f2 = ({
|
|
|
4188
4223
|
)
|
|
4189
4224
|
]
|
|
4190
4225
|
}
|
|
4191
|
-
),
|
|
4226
|
+
), q2 = ({
|
|
4192
4227
|
className: i,
|
|
4193
|
-
color: e =
|
|
4228
|
+
color: e = y.GREY_DARK_5,
|
|
4194
4229
|
height: t = 20,
|
|
4195
4230
|
width: s = 20,
|
|
4196
4231
|
onClick: n
|
|
@@ -4215,9 +4250,9 @@ const f2 = ({
|
|
|
4215
4250
|
}
|
|
4216
4251
|
)
|
|
4217
4252
|
}
|
|
4218
|
-
),
|
|
4253
|
+
), Q2 = ({
|
|
4219
4254
|
className: i,
|
|
4220
|
-
color: e =
|
|
4255
|
+
color: e = y.GREY_DARK_5,
|
|
4221
4256
|
height: t = 20,
|
|
4222
4257
|
width: s = 20,
|
|
4223
4258
|
onClick: n
|
|
@@ -4242,9 +4277,9 @@ const f2 = ({
|
|
|
4242
4277
|
}
|
|
4243
4278
|
)
|
|
4244
4279
|
}
|
|
4245
|
-
),
|
|
4280
|
+
), X2 = ({
|
|
4246
4281
|
className: i,
|
|
4247
|
-
color: e =
|
|
4282
|
+
color: e = y.GREY_DARK_5,
|
|
4248
4283
|
height: t = 5,
|
|
4249
4284
|
width: s = 10,
|
|
4250
4285
|
onClick: n
|
|
@@ -4266,9 +4301,9 @@ const f2 = ({
|
|
|
4266
4301
|
}
|
|
4267
4302
|
)
|
|
4268
4303
|
}
|
|
4269
|
-
),
|
|
4304
|
+
), e5 = ({
|
|
4270
4305
|
className: i,
|
|
4271
|
-
color: e =
|
|
4306
|
+
color: e = y.GREY_DARK_5,
|
|
4272
4307
|
height: t = 5,
|
|
4273
4308
|
width: s = 10,
|
|
4274
4309
|
onClick: n
|
|
@@ -4291,9 +4326,9 @@ const f2 = ({
|
|
|
4291
4326
|
}
|
|
4292
4327
|
)
|
|
4293
4328
|
}
|
|
4294
|
-
),
|
|
4329
|
+
), t5 = ({
|
|
4295
4330
|
className: i,
|
|
4296
|
-
color: e =
|
|
4331
|
+
color: e = y.GREY_DARK_5,
|
|
4297
4332
|
height: t = 24,
|
|
4298
4333
|
width: s = 24,
|
|
4299
4334
|
onClick: n
|
|
@@ -4330,9 +4365,9 @@ const f2 = ({
|
|
|
4330
4365
|
)
|
|
4331
4366
|
]
|
|
4332
4367
|
}
|
|
4333
|
-
),
|
|
4368
|
+
), i5 = ({
|
|
4334
4369
|
className: i,
|
|
4335
|
-
color: e =
|
|
4370
|
+
color: e = y.GREY_DARK_5,
|
|
4336
4371
|
height: t = 24,
|
|
4337
4372
|
width: s = 24,
|
|
4338
4373
|
onClick: n
|
|
@@ -4369,9 +4404,9 @@ const f2 = ({
|
|
|
4369
4404
|
)
|
|
4370
4405
|
]
|
|
4371
4406
|
}
|
|
4372
|
-
),
|
|
4407
|
+
), s5 = ({
|
|
4373
4408
|
className: i,
|
|
4374
|
-
color: e =
|
|
4409
|
+
color: e = y.GREY_DARK_5,
|
|
4375
4410
|
height: t = 24,
|
|
4376
4411
|
width: s = 24,
|
|
4377
4412
|
onClick: n
|
|
@@ -4396,9 +4431,9 @@ const f2 = ({
|
|
|
4396
4431
|
}
|
|
4397
4432
|
)
|
|
4398
4433
|
}
|
|
4399
|
-
),
|
|
4434
|
+
), n5 = ({
|
|
4400
4435
|
className: i,
|
|
4401
|
-
color: e =
|
|
4436
|
+
color: e = y.GREY_DARK_5,
|
|
4402
4437
|
height: t = 24,
|
|
4403
4438
|
width: s = 24,
|
|
4404
4439
|
onClick: n
|
|
@@ -4455,9 +4490,9 @@ const f2 = ({
|
|
|
4455
4490
|
)
|
|
4456
4491
|
]
|
|
4457
4492
|
}
|
|
4458
|
-
),
|
|
4493
|
+
), r5 = ({
|
|
4459
4494
|
className: i,
|
|
4460
|
-
color: e =
|
|
4495
|
+
color: e = y.GREY_DARK_5,
|
|
4461
4496
|
height: t = 24,
|
|
4462
4497
|
width: s = 24,
|
|
4463
4498
|
onClick: n
|
|
@@ -4492,9 +4527,9 @@ const f2 = ({
|
|
|
4492
4527
|
)
|
|
4493
4528
|
]
|
|
4494
4529
|
}
|
|
4495
|
-
),
|
|
4530
|
+
), o5 = ({
|
|
4496
4531
|
className: i,
|
|
4497
|
-
color: e =
|
|
4532
|
+
color: e = y.GREY_DARK_3,
|
|
4498
4533
|
height: t = 14,
|
|
4499
4534
|
width: s = 14,
|
|
4500
4535
|
onClick: n
|
|
@@ -4529,9 +4564,9 @@ const f2 = ({
|
|
|
4529
4564
|
)
|
|
4530
4565
|
]
|
|
4531
4566
|
}
|
|
4532
|
-
),
|
|
4567
|
+
), a5 = ({
|
|
4533
4568
|
className: i,
|
|
4534
|
-
color: e =
|
|
4569
|
+
color: e = y.GREY_DARK_5,
|
|
4535
4570
|
height: t = 18,
|
|
4536
4571
|
onClick: s,
|
|
4537
4572
|
width: n = 18
|
|
@@ -4556,9 +4591,9 @@ const f2 = ({
|
|
|
4556
4591
|
}
|
|
4557
4592
|
)
|
|
4558
4593
|
}
|
|
4559
|
-
),
|
|
4594
|
+
), l5 = ({
|
|
4560
4595
|
className: i,
|
|
4561
|
-
color: e =
|
|
4596
|
+
color: e = y.GREY_DARK_5,
|
|
4562
4597
|
height: t = 24,
|
|
4563
4598
|
width: s = 24,
|
|
4564
4599
|
onClick: n
|
|
@@ -4608,9 +4643,9 @@ const f2 = ({
|
|
|
4608
4643
|
)
|
|
4609
4644
|
]
|
|
4610
4645
|
}
|
|
4611
|
-
),
|
|
4646
|
+
), h5 = ({
|
|
4612
4647
|
className: i,
|
|
4613
|
-
color: e =
|
|
4648
|
+
color: e = y.GREY_DARK_5,
|
|
4614
4649
|
height: t = 24,
|
|
4615
4650
|
width: s = 24,
|
|
4616
4651
|
onClick: n
|
|
@@ -4645,9 +4680,9 @@ const f2 = ({
|
|
|
4645
4680
|
)
|
|
4646
4681
|
]
|
|
4647
4682
|
}
|
|
4648
|
-
),
|
|
4683
|
+
), c5 = ({
|
|
4649
4684
|
className: i,
|
|
4650
|
-
color: e =
|
|
4685
|
+
color: e = y.NOTIFICATION_WARNING_DARK,
|
|
4651
4686
|
height: t = 37,
|
|
4652
4687
|
width: s = 36,
|
|
4653
4688
|
onClick: n
|
|
@@ -4684,9 +4719,9 @@ const f2 = ({
|
|
|
4684
4719
|
)
|
|
4685
4720
|
]
|
|
4686
4721
|
}
|
|
4687
|
-
),
|
|
4722
|
+
), d5 = ({
|
|
4688
4723
|
className: i,
|
|
4689
|
-
color: e =
|
|
4724
|
+
color: e = y.GREY_DARK_5,
|
|
4690
4725
|
height: t = 24,
|
|
4691
4726
|
width: s = 24,
|
|
4692
4727
|
onClick: n
|
|
@@ -4710,9 +4745,9 @@ const f2 = ({
|
|
|
4710
4745
|
}
|
|
4711
4746
|
)
|
|
4712
4747
|
}
|
|
4713
|
-
),
|
|
4748
|
+
), g5 = ({
|
|
4714
4749
|
className: i,
|
|
4715
|
-
color: e =
|
|
4750
|
+
color: e = y.GREY_DARK_5,
|
|
4716
4751
|
height: t = 24,
|
|
4717
4752
|
width: s = 24,
|
|
4718
4753
|
onClick: n
|
|
@@ -4749,9 +4784,9 @@ const f2 = ({
|
|
|
4749
4784
|
)
|
|
4750
4785
|
]
|
|
4751
4786
|
}
|
|
4752
|
-
),
|
|
4787
|
+
), u5 = ({
|
|
4753
4788
|
className: i,
|
|
4754
|
-
color: e =
|
|
4789
|
+
color: e = y.GREY_DARK_5,
|
|
4755
4790
|
height: t = 24,
|
|
4756
4791
|
width: s = 24,
|
|
4757
4792
|
onClick: n
|
|
@@ -4788,9 +4823,42 @@ const f2 = ({
|
|
|
4788
4823
|
)
|
|
4789
4824
|
]
|
|
4790
4825
|
}
|
|
4791
|
-
),
|
|
4826
|
+
), C5 = ({
|
|
4792
4827
|
className: i,
|
|
4793
|
-
color: e =
|
|
4828
|
+
color: e = y.GREY_DARK_5,
|
|
4829
|
+
height: t = 20,
|
|
4830
|
+
width: s = 20,
|
|
4831
|
+
onClick: n
|
|
4832
|
+
}) => /* @__PURE__ */ C(
|
|
4833
|
+
"svg",
|
|
4834
|
+
{
|
|
4835
|
+
onClick: n,
|
|
4836
|
+
className: i,
|
|
4837
|
+
width: s,
|
|
4838
|
+
height: t,
|
|
4839
|
+
viewBox: "0 0 24 25",
|
|
4840
|
+
fill: "none",
|
|
4841
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4842
|
+
children: [
|
|
4843
|
+
/* @__PURE__ */ r(
|
|
4844
|
+
"path",
|
|
4845
|
+
{
|
|
4846
|
+
d: "M9.75 19.75H19.25V10.25H9.75V19.75ZM20.75 19.9004C20.7498 20.6457 20.1457 21.2498 19.4004 21.25H9.59961C8.85433 21.2498 8.25021 20.6457 8.25 19.9004V10.0996C8.25021 9.35433 8.85433 8.75021 9.59961 8.75H19.4004C20.1457 8.75021 20.7498 9.35433 20.75 10.0996V19.9004Z",
|
|
4847
|
+
fill: e
|
|
4848
|
+
}
|
|
4849
|
+
),
|
|
4850
|
+
/* @__PURE__ */ r(
|
|
4851
|
+
"path",
|
|
4852
|
+
{
|
|
4853
|
+
d: "M15.75 9.5C15.75 9.91421 15.4142 10.25 15 10.25C14.5858 10.25 14.25 9.91421 14.25 9.5V5.25H4.75V14.75H9C9.41421 14.75 9.75 15.0858 9.75 15.5C9.75 15.9142 9.41421 16.25 9 16.25H4.59961C3.85433 16.2498 3.25021 15.6457 3.25 14.9004V5.09961C3.25021 4.35433 3.85433 3.75021 4.59961 3.75H14.4004C15.1457 3.75021 15.7498 4.35433 15.75 5.09961V9.5Z",
|
|
4854
|
+
fill: e
|
|
4855
|
+
}
|
|
4856
|
+
)
|
|
4857
|
+
]
|
|
4858
|
+
}
|
|
4859
|
+
), p5 = ({
|
|
4860
|
+
className: i,
|
|
4861
|
+
color: e = y.GREY_DARK_5,
|
|
4794
4862
|
height: t = 24,
|
|
4795
4863
|
width: s = 24,
|
|
4796
4864
|
onClick: n
|
|
@@ -4857,9 +4925,9 @@ const f2 = ({
|
|
|
4857
4925
|
)
|
|
4858
4926
|
]
|
|
4859
4927
|
}
|
|
4860
|
-
),
|
|
4928
|
+
), f5 = ({
|
|
4861
4929
|
className: i,
|
|
4862
|
-
color: e =
|
|
4930
|
+
color: e = y.GREY_DARK_5,
|
|
4863
4931
|
height: t = 24,
|
|
4864
4932
|
width: s = 24,
|
|
4865
4933
|
onClick: n
|
|
@@ -4914,9 +4982,9 @@ const f2 = ({
|
|
|
4914
4982
|
)
|
|
4915
4983
|
]
|
|
4916
4984
|
}
|
|
4917
|
-
),
|
|
4985
|
+
), m5 = ({
|
|
4918
4986
|
className: i,
|
|
4919
|
-
color: e =
|
|
4987
|
+
color: e = y.GREY_DARK_5,
|
|
4920
4988
|
height: t = 24,
|
|
4921
4989
|
width: s = 24,
|
|
4922
4990
|
onClick: n
|
|
@@ -4953,9 +5021,9 @@ const f2 = ({
|
|
|
4953
5021
|
)
|
|
4954
5022
|
]
|
|
4955
5023
|
}
|
|
4956
|
-
),
|
|
5024
|
+
), w5 = ({
|
|
4957
5025
|
className: i,
|
|
4958
|
-
color: e =
|
|
5026
|
+
color: e = y.GREY_DARK_5,
|
|
4959
5027
|
height: t = 24,
|
|
4960
5028
|
width: s = 24,
|
|
4961
5029
|
onClick: n
|
|
@@ -5002,9 +5070,9 @@ const f2 = ({
|
|
|
5002
5070
|
)
|
|
5003
5071
|
]
|
|
5004
5072
|
}
|
|
5005
|
-
),
|
|
5073
|
+
), k5 = ({
|
|
5006
5074
|
className: i,
|
|
5007
|
-
color: e =
|
|
5075
|
+
color: e = y.GREY_DARK_5,
|
|
5008
5076
|
height: t = 24,
|
|
5009
5077
|
width: s = 24,
|
|
5010
5078
|
onClick: n
|
|
@@ -5029,9 +5097,9 @@ const f2 = ({
|
|
|
5029
5097
|
}
|
|
5030
5098
|
)
|
|
5031
5099
|
}
|
|
5032
|
-
),
|
|
5100
|
+
), L5 = ({
|
|
5033
5101
|
className: i,
|
|
5034
|
-
color: e =
|
|
5102
|
+
color: e = y.GREY_DARK_5,
|
|
5035
5103
|
height: t = 20,
|
|
5036
5104
|
width: s = 20,
|
|
5037
5105
|
onClick: n
|
|
@@ -5046,7 +5114,7 @@ const f2 = ({
|
|
|
5046
5114
|
fill: "none",
|
|
5047
5115
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5048
5116
|
children: [
|
|
5049
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
5117
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: y.GREY_LIGHT_2 }),
|
|
5050
5118
|
/* @__PURE__ */ r(
|
|
5051
5119
|
"path",
|
|
5052
5120
|
{
|
|
@@ -5058,7 +5126,7 @@ const f2 = ({
|
|
|
5058
5126
|
)
|
|
5059
5127
|
]
|
|
5060
5128
|
}
|
|
5061
|
-
),
|
|
5129
|
+
), v5 = ({
|
|
5062
5130
|
className: i,
|
|
5063
5131
|
color: e = "#001E52",
|
|
5064
5132
|
height: t = 24,
|
|
@@ -5084,7 +5152,7 @@ const f2 = ({
|
|
|
5084
5152
|
}
|
|
5085
5153
|
)
|
|
5086
5154
|
}
|
|
5087
|
-
),
|
|
5155
|
+
), N5 = ({
|
|
5088
5156
|
className: i,
|
|
5089
5157
|
color: e = "#131314",
|
|
5090
5158
|
height: t = 20,
|
|
@@ -5112,7 +5180,7 @@ const f2 = ({
|
|
|
5112
5180
|
}
|
|
5113
5181
|
)
|
|
5114
5182
|
}
|
|
5115
|
-
),
|
|
5183
|
+
), x5 = ({
|
|
5116
5184
|
className: i,
|
|
5117
5185
|
color: e = "#001E52",
|
|
5118
5186
|
height: t = 24,
|
|
@@ -5150,7 +5218,7 @@ const f2 = ({
|
|
|
5150
5218
|
)
|
|
5151
5219
|
] }) })
|
|
5152
5220
|
}
|
|
5153
|
-
),
|
|
5221
|
+
), R5 = ({
|
|
5154
5222
|
width: i = 20,
|
|
5155
5223
|
height: e = 20,
|
|
5156
5224
|
color: t = "#001E52",
|
|
@@ -5206,7 +5274,7 @@ const f2 = ({
|
|
|
5206
5274
|
}
|
|
5207
5275
|
)
|
|
5208
5276
|
}
|
|
5209
|
-
),
|
|
5277
|
+
), M5 = ({
|
|
5210
5278
|
width: i = 24,
|
|
5211
5279
|
height: e = 24,
|
|
5212
5280
|
color: t = "#131314",
|
|
@@ -5239,10 +5307,10 @@ const f2 = ({
|
|
|
5239
5307
|
)
|
|
5240
5308
|
]
|
|
5241
5309
|
}
|
|
5242
|
-
),
|
|
5310
|
+
), b5 = ({
|
|
5243
5311
|
width: i = 24,
|
|
5244
5312
|
height: e = 24,
|
|
5245
|
-
color: t =
|
|
5313
|
+
color: t = y.GREY_DARK_2,
|
|
5246
5314
|
className: s,
|
|
5247
5315
|
onClick: n
|
|
5248
5316
|
}) => /* @__PURE__ */ C(
|
|
@@ -5278,10 +5346,10 @@ const f2 = ({
|
|
|
5278
5346
|
)
|
|
5279
5347
|
]
|
|
5280
5348
|
}
|
|
5281
|
-
),
|
|
5349
|
+
), y5 = ({
|
|
5282
5350
|
width: i = 24,
|
|
5283
5351
|
height: e = 24,
|
|
5284
|
-
color: t =
|
|
5352
|
+
color: t = y.GREY_DARK_2,
|
|
5285
5353
|
className: s,
|
|
5286
5354
|
onClick: n
|
|
5287
5355
|
}) => /* @__PURE__ */ r(
|
|
@@ -5305,10 +5373,10 @@ const f2 = ({
|
|
|
5305
5373
|
}
|
|
5306
5374
|
)
|
|
5307
5375
|
}
|
|
5308
|
-
),
|
|
5376
|
+
), E5 = ({
|
|
5309
5377
|
width: i = 24,
|
|
5310
5378
|
height: e = 24,
|
|
5311
|
-
color: t =
|
|
5379
|
+
color: t = y.GREY_DARK_2,
|
|
5312
5380
|
className: s,
|
|
5313
5381
|
onClick: n
|
|
5314
5382
|
}) => /* @__PURE__ */ C(
|
|
@@ -5345,10 +5413,10 @@ const f2 = ({
|
|
|
5345
5413
|
)
|
|
5346
5414
|
]
|
|
5347
5415
|
}
|
|
5348
|
-
),
|
|
5416
|
+
), _5 = ({
|
|
5349
5417
|
width: i = 24,
|
|
5350
5418
|
height: e = 24,
|
|
5351
|
-
color: t =
|
|
5419
|
+
color: t = y.GREY_DARK_2,
|
|
5352
5420
|
className: s,
|
|
5353
5421
|
onClick: n
|
|
5354
5422
|
}) => /* @__PURE__ */ r(
|
|
@@ -5372,10 +5440,10 @@ const f2 = ({
|
|
|
5372
5440
|
}
|
|
5373
5441
|
)
|
|
5374
5442
|
}
|
|
5375
|
-
),
|
|
5443
|
+
), H5 = ({
|
|
5376
5444
|
width: i = 24,
|
|
5377
5445
|
height: e = 24,
|
|
5378
|
-
color: t =
|
|
5446
|
+
color: t = y.GREY_DARK_2,
|
|
5379
5447
|
className: s,
|
|
5380
5448
|
onClick: n
|
|
5381
5449
|
}) => /* @__PURE__ */ r(
|
|
@@ -5399,7 +5467,7 @@ const f2 = ({
|
|
|
5399
5467
|
}
|
|
5400
5468
|
)
|
|
5401
5469
|
}
|
|
5402
|
-
),
|
|
5470
|
+
), I5 = ({
|
|
5403
5471
|
width: i = 20,
|
|
5404
5472
|
height: e = 20,
|
|
5405
5473
|
color: t = "#001E52",
|
|
@@ -5425,280 +5493,282 @@ const f2 = ({
|
|
|
5425
5493
|
}
|
|
5426
5494
|
)
|
|
5427
5495
|
}
|
|
5428
|
-
),
|
|
5496
|
+
), O5 = ({
|
|
5429
5497
|
name: i,
|
|
5430
5498
|
width: e,
|
|
5431
5499
|
height: t,
|
|
5432
5500
|
color: s,
|
|
5433
5501
|
className: n,
|
|
5434
|
-
disabled:
|
|
5502
|
+
disabled: a = !1,
|
|
5435
5503
|
onClick: c
|
|
5436
5504
|
}) => {
|
|
5437
|
-
const [
|
|
5505
|
+
const [o, g] = T(n), { theme: d } = r1(de), l = a ? d && d === "dark" ? y.GREY_LIGHT_4 : y.GREY_DARK_1 : s, h = a ? void 0 : c;
|
|
5438
5506
|
return j(() => {
|
|
5439
5507
|
if (n) {
|
|
5440
|
-
h && !
|
|
5508
|
+
h && !a && g(`${n} clickable`);
|
|
5441
5509
|
return;
|
|
5442
5510
|
}
|
|
5443
|
-
h && !
|
|
5444
|
-
}, [h, n,
|
|
5511
|
+
h && !a && g("clickable");
|
|
5512
|
+
}, [h, n, a]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
5445
5513
|
switch (i) {
|
|
5446
5514
|
case "nextIcon":
|
|
5447
|
-
return
|
|
5515
|
+
return q2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5448
5516
|
case "prevIcon":
|
|
5449
|
-
return
|
|
5517
|
+
return Q2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5450
5518
|
case "arrowDown":
|
|
5451
|
-
return
|
|
5519
|
+
return m2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5452
5520
|
case "info":
|
|
5453
|
-
return
|
|
5521
|
+
return w2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5454
5522
|
case "arrowRight":
|
|
5455
|
-
return
|
|
5523
|
+
return k2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5456
5524
|
case "calendar":
|
|
5457
|
-
return
|
|
5525
|
+
return L2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5458
5526
|
case "ok":
|
|
5459
|
-
return
|
|
5527
|
+
return v2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5460
5528
|
case "cancel":
|
|
5461
|
-
return
|
|
5529
|
+
return N2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5462
5530
|
case "add":
|
|
5463
|
-
return
|
|
5531
|
+
return x2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5464
5532
|
case "list":
|
|
5465
|
-
return
|
|
5533
|
+
return R2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5466
5534
|
case "dragAndDrop":
|
|
5467
|
-
return
|
|
5535
|
+
return M2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5468
5536
|
case "filter":
|
|
5469
|
-
return
|
|
5537
|
+
return b2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5470
5538
|
case "attention":
|
|
5471
|
-
return
|
|
5539
|
+
return y2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5472
5540
|
case "users":
|
|
5473
|
-
return
|
|
5541
|
+
return E2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5474
5542
|
case "mySkillsMatrix":
|
|
5475
|
-
return
|
|
5543
|
+
return _2({
|
|
5476
5544
|
width: e,
|
|
5477
5545
|
height: t,
|
|
5478
5546
|
color: l,
|
|
5479
|
-
className:
|
|
5547
|
+
className: o,
|
|
5480
5548
|
onClick: h
|
|
5481
5549
|
});
|
|
5482
5550
|
case "skills":
|
|
5483
|
-
return
|
|
5551
|
+
return H2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5484
5552
|
case "skillsMatrices":
|
|
5485
|
-
return
|
|
5553
|
+
return I2({
|
|
5486
5554
|
width: e,
|
|
5487
5555
|
height: t,
|
|
5488
5556
|
color: l,
|
|
5489
|
-
className:
|
|
5557
|
+
className: o,
|
|
5490
5558
|
onClick: h
|
|
5491
5559
|
});
|
|
5492
5560
|
case "history":
|
|
5493
|
-
return
|
|
5561
|
+
return O2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5494
5562
|
case "logOut":
|
|
5495
|
-
return
|
|
5563
|
+
return V2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5496
5564
|
case "settings":
|
|
5497
|
-
return S2({ width: e, height: t, color: l, className:
|
|
5565
|
+
return S2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5498
5566
|
case "trash":
|
|
5499
|
-
return
|
|
5567
|
+
return A2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5500
5568
|
case "settings4":
|
|
5501
|
-
return
|
|
5569
|
+
return T2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5502
5570
|
case "success":
|
|
5503
|
-
return
|
|
5571
|
+
return Z2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5504
5572
|
case "checkCircle":
|
|
5505
|
-
return
|
|
5573
|
+
return D2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5506
5574
|
case "errorSmall":
|
|
5507
|
-
return
|
|
5575
|
+
return B2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5508
5576
|
case "infoMedium":
|
|
5509
|
-
return
|
|
5577
|
+
return j2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5510
5578
|
case "attentionMedium":
|
|
5511
|
-
return
|
|
5579
|
+
return G2({
|
|
5512
5580
|
width: e,
|
|
5513
5581
|
height: t,
|
|
5514
5582
|
color: l,
|
|
5515
|
-
className:
|
|
5583
|
+
className: o,
|
|
5516
5584
|
onClick: h
|
|
5517
5585
|
});
|
|
5518
5586
|
case "errorMedium":
|
|
5519
|
-
return W2({ width: e, height: t, color: l, className:
|
|
5587
|
+
return W2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5520
5588
|
case "visibilityIcon":
|
|
5521
|
-
return
|
|
5589
|
+
return K2({
|
|
5522
5590
|
width: e,
|
|
5523
5591
|
height: t,
|
|
5524
5592
|
color: l,
|
|
5525
|
-
className:
|
|
5593
|
+
className: o,
|
|
5526
5594
|
onClick: h
|
|
5527
5595
|
});
|
|
5528
5596
|
case "visibilityOffIcon":
|
|
5529
|
-
return
|
|
5597
|
+
return $2({
|
|
5530
5598
|
width: e,
|
|
5531
5599
|
height: t,
|
|
5532
5600
|
color: l,
|
|
5533
|
-
className:
|
|
5601
|
+
className: o,
|
|
5534
5602
|
onClick: h
|
|
5535
5603
|
});
|
|
5536
5604
|
case "selectArrowIcon":
|
|
5537
|
-
return
|
|
5605
|
+
return P2({
|
|
5538
5606
|
width: e,
|
|
5539
5607
|
height: t,
|
|
5540
5608
|
color: l,
|
|
5541
|
-
className:
|
|
5609
|
+
className: o,
|
|
5542
5610
|
onClick: h
|
|
5543
5611
|
});
|
|
5544
5612
|
case "expandArrowIcon":
|
|
5545
|
-
return
|
|
5613
|
+
return F2({
|
|
5546
5614
|
width: e,
|
|
5547
5615
|
height: t,
|
|
5548
5616
|
color: l,
|
|
5549
|
-
className:
|
|
5617
|
+
className: o,
|
|
5550
5618
|
onClick: h
|
|
5551
5619
|
});
|
|
5552
5620
|
case "expandActiveArrowIcon":
|
|
5553
|
-
return
|
|
5621
|
+
return Y2({
|
|
5554
5622
|
width: e,
|
|
5555
5623
|
height: t,
|
|
5556
5624
|
color: l,
|
|
5557
|
-
className:
|
|
5625
|
+
className: o,
|
|
5558
5626
|
onClick: h
|
|
5559
5627
|
});
|
|
5560
5628
|
case "sortUp":
|
|
5561
|
-
return
|
|
5629
|
+
return U2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5562
5630
|
case "sortDown":
|
|
5563
|
-
return
|
|
5631
|
+
return z2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5564
5632
|
case "search":
|
|
5565
|
-
return
|
|
5633
|
+
return J2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5566
5634
|
case "arrowUpFilled":
|
|
5567
|
-
return
|
|
5635
|
+
return e5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5568
5636
|
case "arrowDownFilled":
|
|
5569
|
-
return
|
|
5637
|
+
return X2({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5570
5638
|
case "link":
|
|
5571
|
-
return
|
|
5639
|
+
return t5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5572
5640
|
case "telegram":
|
|
5573
|
-
return
|
|
5641
|
+
return s5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5574
5642
|
case "mail":
|
|
5575
|
-
return
|
|
5643
|
+
return r5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5576
5644
|
case "github":
|
|
5577
|
-
return
|
|
5645
|
+
return i5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5578
5646
|
case "linkedIn":
|
|
5579
|
-
return
|
|
5647
|
+
return n5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5580
5648
|
case "emptyStateIcon":
|
|
5581
|
-
return
|
|
5649
|
+
return o5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5582
5650
|
case "filtersIcon":
|
|
5583
|
-
return
|
|
5651
|
+
return a5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5584
5652
|
case "dotMenuIcon":
|
|
5585
|
-
return
|
|
5653
|
+
return l5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5586
5654
|
case "plusCircle":
|
|
5587
|
-
return
|
|
5655
|
+
return h5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5588
5656
|
case "warning":
|
|
5589
|
-
return
|
|
5657
|
+
return c5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5590
5658
|
case "back":
|
|
5591
|
-
return
|
|
5659
|
+
return d5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5592
5660
|
case "bell":
|
|
5593
|
-
return
|
|
5661
|
+
return g5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5662
|
+
case "copy":
|
|
5663
|
+
return C5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5594
5664
|
case "contract":
|
|
5595
|
-
return
|
|
5665
|
+
return p5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5596
5666
|
case "trash2":
|
|
5597
|
-
return
|
|
5667
|
+
return u5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5598
5668
|
case "resourceManager":
|
|
5599
|
-
return
|
|
5669
|
+
return f5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5600
5670
|
case "settings2":
|
|
5601
|
-
return
|
|
5671
|
+
return m5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5602
5672
|
case "image":
|
|
5603
|
-
return
|
|
5673
|
+
return w5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5604
5674
|
case "edit":
|
|
5605
|
-
return
|
|
5675
|
+
return k5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5606
5676
|
case "filledArrowRight":
|
|
5607
|
-
return
|
|
5677
|
+
return L5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5608
5678
|
case "burgerMenu":
|
|
5609
|
-
return
|
|
5679
|
+
return v5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5610
5680
|
case "signOut":
|
|
5611
|
-
return
|
|
5681
|
+
return N5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5612
5682
|
case "refresh":
|
|
5613
|
-
return
|
|
5683
|
+
return x5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5614
5684
|
case "projects":
|
|
5615
|
-
return
|
|
5685
|
+
return R5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5616
5686
|
case "profile":
|
|
5617
|
-
return
|
|
5687
|
+
return I5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5618
5688
|
case "exit":
|
|
5619
|
-
return
|
|
5689
|
+
return M5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5620
5690
|
case "client":
|
|
5621
|
-
return
|
|
5691
|
+
return b5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5622
5692
|
case "calendar2":
|
|
5623
|
-
return
|
|
5693
|
+
return y5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5624
5694
|
case "openPointCircle":
|
|
5625
|
-
return
|
|
5695
|
+
return E5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5626
5696
|
case "community":
|
|
5627
|
-
return
|
|
5697
|
+
return _5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5628
5698
|
case "docs":
|
|
5629
|
-
return
|
|
5699
|
+
return H5({ width: e, height: t, color: l, className: o, onClick: h });
|
|
5630
5700
|
default:
|
|
5631
5701
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
5632
5702
|
}
|
|
5633
5703
|
})() });
|
|
5634
5704
|
};
|
|
5635
5705
|
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 || {});
|
|
5636
|
-
const
|
|
5706
|
+
const V5 = d1({
|
|
5637
5707
|
locale: "en",
|
|
5638
5708
|
theme: "light"
|
|
5639
5709
|
});
|
|
5640
|
-
|
|
5710
|
+
V5.Provider;
|
|
5641
5711
|
const ge = ({
|
|
5642
5712
|
children: i,
|
|
5643
5713
|
width: e,
|
|
5644
5714
|
size: t = "small",
|
|
5645
5715
|
onClose: s,
|
|
5646
5716
|
closable: n = !0,
|
|
5647
|
-
disabled:
|
|
5717
|
+
disabled: a = !1
|
|
5648
5718
|
}) => {
|
|
5649
|
-
const c = t === "small" ? 10 : 12.5,
|
|
5650
|
-
|
|
5719
|
+
const c = t === "small" ? 10 : 12.5, o = () => {
|
|
5720
|
+
a || s == null || s();
|
|
5651
5721
|
};
|
|
5652
5722
|
return /* @__PURE__ */ r(
|
|
5653
5723
|
be,
|
|
5654
5724
|
{
|
|
5655
|
-
className: `snmt-tag ${t} ${
|
|
5725
|
+
className: `snmt-tag ${t} ${a ? "disabled" : ""}`,
|
|
5656
5726
|
closeIcon: /* @__PURE__ */ r(
|
|
5657
|
-
|
|
5727
|
+
O5,
|
|
5658
5728
|
{
|
|
5659
5729
|
name: "errorSmall",
|
|
5660
|
-
color:
|
|
5730
|
+
color: a ? f1.GREY_DARK_1 : f1.GREY_DARK_2,
|
|
5661
5731
|
width: c,
|
|
5662
5732
|
height: c,
|
|
5663
|
-
onClick:
|
|
5733
|
+
onClick: o
|
|
5664
5734
|
}
|
|
5665
5735
|
),
|
|
5666
5736
|
bordered: !1,
|
|
5667
5737
|
style: { width: e ?? "fit-content" },
|
|
5668
5738
|
closable: n,
|
|
5669
5739
|
children: typeof i == "string" ? /* @__PURE__ */ r(
|
|
5670
|
-
|
|
5740
|
+
f2,
|
|
5671
5741
|
{
|
|
5672
5742
|
variant: t === "small" ? "body4" : "body2",
|
|
5673
|
-
color:
|
|
5743
|
+
color: a ? f1.GREY_DARK_2 : f1.GREY_DARK_5,
|
|
5674
5744
|
children: i
|
|
5675
5745
|
}
|
|
5676
5746
|
) : i
|
|
5677
5747
|
}
|
|
5678
5748
|
);
|
|
5679
|
-
}, { Title:
|
|
5749
|
+
}, { Title: S5, Text: A5 } = ae, T5 = {
|
|
5680
5750
|
h1: 1,
|
|
5681
5751
|
h2: 2,
|
|
5682
5752
|
h3: 3,
|
|
5683
5753
|
h4: 4
|
|
5684
|
-
},
|
|
5754
|
+
}, Z5 = k1(
|
|
5685
5755
|
({
|
|
5686
5756
|
align: i = "inherit",
|
|
5687
5757
|
variant: e = "body1",
|
|
5688
5758
|
color: t,
|
|
5689
5759
|
children: s,
|
|
5690
5760
|
onClick: n,
|
|
5691
|
-
collapsed:
|
|
5761
|
+
collapsed: a,
|
|
5692
5762
|
whiteSpace: c = "normal",
|
|
5693
5763
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5694
|
-
trim:
|
|
5764
|
+
trim: o = !1
|
|
5695
5765
|
}, g) => {
|
|
5696
5766
|
const d = q(null);
|
|
5697
5767
|
_1(g, () => d.current);
|
|
5698
5768
|
const [l, h] = T(!1);
|
|
5699
5769
|
j(() => {
|
|
5700
5770
|
var k;
|
|
5701
|
-
if (!
|
|
5771
|
+
if (!o) return;
|
|
5702
5772
|
const m = () => {
|
|
5703
5773
|
d.current && h(d.current.scrollWidth > d.current.clientWidth);
|
|
5704
5774
|
};
|
|
@@ -5707,33 +5777,33 @@ const ge = ({
|
|
|
5707
5777
|
return d.current && _.observe(d.current), (k = d.current) != null && k.parentElement && _.observe(d.current.parentElement), () => {
|
|
5708
5778
|
_.disconnect();
|
|
5709
5779
|
};
|
|
5710
|
-
}, [
|
|
5780
|
+
}, [o]);
|
|
5711
5781
|
const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5712
5782
|
let p = `snmt-typography snmt-typography-${e}`;
|
|
5713
|
-
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`),
|
|
5783
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), a && (p += " collapsed");
|
|
5714
5784
|
const w = {
|
|
5715
5785
|
className: p,
|
|
5716
|
-
style: { color: t, whiteSpace:
|
|
5786
|
+
style: { color: t, whiteSpace: o ? "nowrap" : c, display: o ? "block" : "" },
|
|
5717
5787
|
onClick: n,
|
|
5718
5788
|
ref: d,
|
|
5719
|
-
ellipsis:
|
|
5789
|
+
ellipsis: o && l ? {
|
|
5720
5790
|
tooltip: {
|
|
5721
5791
|
title: s,
|
|
5722
5792
|
overlayClassName: "snmt-tooltip"
|
|
5723
5793
|
}
|
|
5724
5794
|
} : void 0
|
|
5725
5795
|
};
|
|
5726
|
-
return u ? /* @__PURE__ */ r(
|
|
5796
|
+
return u ? /* @__PURE__ */ r(S5, { level: T5[e], ...w, children: s }) : /* @__PURE__ */ r(A5, { ...w, children: s });
|
|
5727
5797
|
}
|
|
5728
|
-
),
|
|
5798
|
+
), D5 = ({
|
|
5729
5799
|
children: i,
|
|
5730
5800
|
content: e,
|
|
5731
5801
|
isOpen: t,
|
|
5732
5802
|
setIsOpen: s,
|
|
5733
5803
|
placement: n = "topRight",
|
|
5734
|
-
noPadding:
|
|
5804
|
+
noPadding: a = !1
|
|
5735
5805
|
}) => {
|
|
5736
|
-
const [c,
|
|
5806
|
+
const [c, o] = T(!1);
|
|
5737
5807
|
return /* @__PURE__ */ r(
|
|
5738
5808
|
ye,
|
|
5739
5809
|
{
|
|
@@ -5741,16 +5811,16 @@ const ge = ({
|
|
|
5741
5811
|
arrow: !1,
|
|
5742
5812
|
placement: n,
|
|
5743
5813
|
trigger: "click",
|
|
5744
|
-
overlayClassName: `snmt-popover ${
|
|
5814
|
+
overlayClassName: `snmt-popover ${a ? "" : "padding"}`,
|
|
5745
5815
|
open: t ?? c,
|
|
5746
5816
|
onOpenChange: (g) => {
|
|
5747
|
-
|
|
5817
|
+
o(g), s == null || s(g);
|
|
5748
5818
|
},
|
|
5749
5819
|
children: /* @__PURE__ */ r("div", { className: "wrapper", children: i })
|
|
5750
5820
|
}
|
|
5751
5821
|
);
|
|
5752
5822
|
};
|
|
5753
|
-
var
|
|
5823
|
+
var B5 = { exports: {} };
|
|
5754
5824
|
(function(i, e) {
|
|
5755
5825
|
(function(t, s) {
|
|
5756
5826
|
i.exports = s();
|
|
@@ -5760,27 +5830,27 @@ var Z5 = { exports: {} };
|
|
|
5760
5830
|
return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
|
|
5761
5831
|
} };
|
|
5762
5832
|
});
|
|
5763
|
-
})(
|
|
5764
|
-
const
|
|
5833
|
+
})(B5);
|
|
5834
|
+
const j5 = ({
|
|
5765
5835
|
values: i,
|
|
5766
5836
|
onTagClose: e,
|
|
5767
5837
|
maxWidth: t,
|
|
5768
5838
|
closable: s = !0,
|
|
5769
5839
|
disabled: n,
|
|
5770
|
-
options:
|
|
5840
|
+
options: a,
|
|
5771
5841
|
extraOptions: c
|
|
5772
5842
|
}) => {
|
|
5773
|
-
const { locale:
|
|
5843
|
+
const { locale: o } = r1(D1), { t: g } = ze("common", { lng: o }), [d, l] = T(!1);
|
|
5774
5844
|
if (j(() => {
|
|
5775
5845
|
i.length || l(!1);
|
|
5776
5846
|
}, [i]), !i.length)
|
|
5777
5847
|
return null;
|
|
5778
5848
|
const h = (u) => {
|
|
5779
5849
|
var p, w;
|
|
5780
|
-
return ((p =
|
|
5850
|
+
return ((p = a == null ? void 0 : a.find((k) => k.value === u)) == null ? void 0 : p.label) || ((w = c == null ? void 0 : c.find((k) => k.value === u)) == null ? void 0 : w.label) || u;
|
|
5781
5851
|
};
|
|
5782
5852
|
return /* @__PURE__ */ C(
|
|
5783
|
-
|
|
5853
|
+
D5,
|
|
5784
5854
|
{
|
|
5785
5855
|
content: (
|
|
5786
5856
|
// 90: paddings + margins + gaps and so on
|
|
@@ -5805,12 +5875,12 @@ const D5 = ({
|
|
|
5805
5875
|
]
|
|
5806
5876
|
}
|
|
5807
5877
|
);
|
|
5808
|
-
},
|
|
5878
|
+
}, G5 = {
|
|
5809
5879
|
small: 20,
|
|
5810
5880
|
medium: 28,
|
|
5811
5881
|
large: 48
|
|
5812
5882
|
}, K1 = ({ size: i = "medium", color: e = "#004ed7" }) => {
|
|
5813
|
-
const t =
|
|
5883
|
+
const t = G5[i], s = `no-repeat linear-gradient(${e}
|
|
5814
5884
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, n = {
|
|
5815
5885
|
width: t,
|
|
5816
5886
|
background: `${s} 0% 100%, ${s} 50% 100%, ${s} 100% 100%`,
|
|
@@ -5824,9 +5894,9 @@ const D5 = ({
|
|
|
5824
5894
|
placeholder: t,
|
|
5825
5895
|
mode: s,
|
|
5826
5896
|
search: n = !1,
|
|
5827
|
-
options:
|
|
5897
|
+
options: a,
|
|
5828
5898
|
width: c,
|
|
5829
|
-
disabled:
|
|
5899
|
+
disabled: o = !1,
|
|
5830
5900
|
required: g = !1,
|
|
5831
5901
|
clearable: d = !1,
|
|
5832
5902
|
scrollThresholdValue: l = 50,
|
|
@@ -5838,48 +5908,48 @@ const D5 = ({
|
|
|
5838
5908
|
extraOptions: m,
|
|
5839
5909
|
dropdownRender: _,
|
|
5840
5910
|
optionRender: M,
|
|
5841
|
-
isLoading:
|
|
5911
|
+
isLoading: V,
|
|
5842
5912
|
readOnly: f,
|
|
5843
5913
|
error: N
|
|
5844
5914
|
}, x) => {
|
|
5845
|
-
const [v, P] = T(!1), [J, F] = T(!1), [H, D] = T(!0), [I,
|
|
5915
|
+
const [v, P] = T(!1), [J, F] = T(!1), [H, D] = T(!0), [I, S] = T(i), Z = q(null);
|
|
5846
5916
|
j(() => {
|
|
5847
|
-
|
|
5917
|
+
S(i);
|
|
5848
5918
|
}, [i]);
|
|
5849
|
-
const
|
|
5919
|
+
const G = (L) => {
|
|
5850
5920
|
P(L), u && u(L);
|
|
5851
|
-
}, U = (L,
|
|
5921
|
+
}, U = (L, E) => {
|
|
5852
5922
|
var B;
|
|
5853
|
-
return !!((B =
|
|
5923
|
+
return !!((B = E == null ? void 0 : E.label) != null && B.toString().toLowerCase().includes(L.toLowerCase()));
|
|
5854
5924
|
}, O = () => {
|
|
5855
5925
|
F(!0);
|
|
5856
5926
|
}, K = () => {
|
|
5857
5927
|
F(!1);
|
|
5858
|
-
},
|
|
5928
|
+
}, W = $(
|
|
5859
5929
|
(L) => {
|
|
5860
|
-
if (
|
|
5930
|
+
if (S(L), s) {
|
|
5861
5931
|
const B = L;
|
|
5862
5932
|
e == null || e(B);
|
|
5863
5933
|
return;
|
|
5864
5934
|
}
|
|
5865
|
-
const
|
|
5866
|
-
e == null || e(
|
|
5935
|
+
const E = L;
|
|
5936
|
+
e == null || e(E);
|
|
5867
5937
|
},
|
|
5868
5938
|
[s, e]
|
|
5869
5939
|
), e1 = $(() => {
|
|
5870
|
-
if (!(f ||
|
|
5940
|
+
if (!(f || o)) {
|
|
5871
5941
|
if (s) {
|
|
5872
|
-
|
|
5942
|
+
W([]);
|
|
5873
5943
|
return;
|
|
5874
5944
|
}
|
|
5875
|
-
|
|
5945
|
+
W("");
|
|
5876
5946
|
}
|
|
5877
|
-
}, [
|
|
5947
|
+
}, [o, W, s, f]), t1 = $(
|
|
5878
5948
|
(L) => {
|
|
5879
|
-
const
|
|
5880
|
-
|
|
5949
|
+
const E = I.filter((B) => B !== L);
|
|
5950
|
+
W(E), S(E);
|
|
5881
5951
|
},
|
|
5882
|
-
[
|
|
5952
|
+
[W, I]
|
|
5883
5953
|
), g1 = $(
|
|
5884
5954
|
(L) => (I == null ? void 0 : I.indexOf(L)) === 0 ? (
|
|
5885
5955
|
// if the search input is empty
|
|
@@ -5890,36 +5960,36 @@ const D5 = ({
|
|
|
5890
5960
|
), L1 = (L) => {
|
|
5891
5961
|
L.preventDefault(), L.stopPropagation();
|
|
5892
5962
|
}, v1 = async (L) => {
|
|
5893
|
-
const { target:
|
|
5894
|
-
|
|
5963
|
+
const { target: E } = L;
|
|
5964
|
+
E.scrollTop + E.offsetHeight >= E.scrollHeight - l && (p == null || p(!0)), w && await w(L);
|
|
5895
5965
|
}, o1 = $(
|
|
5896
5966
|
(L) => {
|
|
5897
|
-
var
|
|
5898
|
-
return ((
|
|
5967
|
+
var E, B;
|
|
5968
|
+
return ((E = a.find((a1) => a1.value === L)) == null ? void 0 : E.label) || ((B = m == null ? void 0 : m.find(
|
|
5899
5969
|
(a1) => a1.value === L
|
|
5900
5970
|
)) == null ? void 0 : B.label) || L;
|
|
5901
5971
|
},
|
|
5902
|
-
[m,
|
|
5972
|
+
[m, a]
|
|
5903
5973
|
), N1 = $(
|
|
5904
5974
|
(L) => {
|
|
5905
|
-
var
|
|
5975
|
+
var E;
|
|
5906
5976
|
return /* @__PURE__ */ r(
|
|
5907
|
-
|
|
5977
|
+
j5,
|
|
5908
5978
|
{
|
|
5909
5979
|
values: L,
|
|
5910
5980
|
onTagClose: t1,
|
|
5911
|
-
maxWidth: ((
|
|
5912
|
-
disabled:
|
|
5981
|
+
maxWidth: ((E = Z.current) == null ? void 0 : E.clientWidth) || 0,
|
|
5982
|
+
disabled: o,
|
|
5913
5983
|
closable: !f,
|
|
5914
|
-
options:
|
|
5984
|
+
options: a,
|
|
5915
5985
|
extraOptions: m
|
|
5916
5986
|
}
|
|
5917
5987
|
);
|
|
5918
5988
|
},
|
|
5919
|
-
[
|
|
5989
|
+
[o, m, t1, a, f]
|
|
5920
5990
|
), A = $(
|
|
5921
|
-
({ label: L, value:
|
|
5922
|
-
[
|
|
5991
|
+
({ label: L, value: E, mode: B }) => B === "filter" ? g1(E) : /* @__PURE__ */ r("div", { onMouseDown: L1, className: "tag-wrapper", children: /* @__PURE__ */ r(ge, { onClose: () => t1(E), disabled: o, children: typeof L == "object" ? L : o1(E) }) }),
|
|
5992
|
+
[o, o1, t1, g1]
|
|
5923
5993
|
), z = Array.isArray(I) && I.length > 0 || !!I && typeof I == "string" && I.trim() !== "";
|
|
5924
5994
|
return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
|
|
5925
5995
|
/* @__PURE__ */ C(
|
|
@@ -5939,15 +6009,15 @@ const D5 = ({
|
|
|
5939
6009
|
ref: x,
|
|
5940
6010
|
showSearch: !!n,
|
|
5941
6011
|
filterOption: n && U,
|
|
5942
|
-
onDropdownVisibleChange:
|
|
5943
|
-
disabled:
|
|
6012
|
+
onDropdownVisibleChange: G,
|
|
6013
|
+
disabled: o,
|
|
5944
6014
|
value: I || void 0,
|
|
5945
6015
|
labelRender: (L) => {
|
|
5946
|
-
const
|
|
5947
|
-
return
|
|
6016
|
+
const E = o1(L.value);
|
|
6017
|
+
return o ? /* @__PURE__ */ r("span", { style: { color: Q.GREY_DARK_1 }, children: E }) : E;
|
|
5948
6018
|
},
|
|
5949
6019
|
mode: s === "filter" ? "multiple" : s,
|
|
5950
|
-
onChange:
|
|
6020
|
+
onChange: W,
|
|
5951
6021
|
onFocus: O,
|
|
5952
6022
|
onBlur: K,
|
|
5953
6023
|
onSearch: (L) => {
|
|
@@ -5959,20 +6029,20 @@ const D5 = ({
|
|
|
5959
6029
|
maxTagCount: "responsive",
|
|
5960
6030
|
maxTagPlaceholder: N1,
|
|
5961
6031
|
onPopupScroll: v1,
|
|
5962
|
-
prefix:
|
|
6032
|
+
prefix: V && /* @__PURE__ */ r(K1, { size: "small" }),
|
|
5963
6033
|
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(i1, { children: [
|
|
5964
6034
|
I && !!I.length && (s || d) && /* @__PURE__ */ r(
|
|
5965
6035
|
"div",
|
|
5966
6036
|
{
|
|
5967
6037
|
onClick: e1,
|
|
5968
6038
|
style: {
|
|
5969
|
-
cursor:
|
|
6039
|
+
cursor: o ? "not-allowed" : "pointer"
|
|
5970
6040
|
},
|
|
5971
6041
|
children: /* @__PURE__ */ r(
|
|
5972
6042
|
u1,
|
|
5973
6043
|
{
|
|
5974
6044
|
name: "cancel",
|
|
5975
|
-
color:
|
|
6045
|
+
color: o ? Q.GREY_DARK_1 : Q.GREY_DARK_5
|
|
5976
6046
|
}
|
|
5977
6047
|
)
|
|
5978
6048
|
}
|
|
@@ -5981,14 +6051,14 @@ const D5 = ({
|
|
|
5981
6051
|
u1,
|
|
5982
6052
|
{
|
|
5983
6053
|
name: "selectArrowIcon",
|
|
5984
|
-
color:
|
|
6054
|
+
color: o ? Q.GREY_DARK_1 : Q.GREY_DARK_5,
|
|
5985
6055
|
className: v ? "select-arrow-rotated" : "select-arrow",
|
|
5986
6056
|
onClick: () => P(!v)
|
|
5987
6057
|
}
|
|
5988
6058
|
)
|
|
5989
6059
|
] }) }),
|
|
5990
6060
|
removeIcon: /* @__PURE__ */ r(u1, { name: "errorSmall", color: Q.GREY_DARK_1 }),
|
|
5991
|
-
options:
|
|
6061
|
+
options: a,
|
|
5992
6062
|
optionRender: (L) => M ? M(L.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
5993
6063
|
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 12, children: [
|
|
5994
6064
|
s && /* @__PURE__ */ r(
|
|
@@ -6014,7 +6084,7 @@ const D5 = ({
|
|
|
6014
6084
|
] }),
|
|
6015
6085
|
dropdownRender: (L) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
|
6016
6086
|
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: _ ? _(L) : L }),
|
|
6017
|
-
|
|
6087
|
+
V && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(K1, {}) })
|
|
6018
6088
|
] })
|
|
6019
6089
|
}
|
|
6020
6090
|
),
|
|
@@ -6022,14 +6092,14 @@ const D5 = ({
|
|
|
6022
6092
|
/* @__PURE__ */ r(
|
|
6023
6093
|
"label",
|
|
6024
6094
|
{
|
|
6025
|
-
className: `${J || z ? "label-floating" : ""} ${
|
|
6095
|
+
className: `${J || z ? "label-floating" : ""} ${o ? "label-disabled" : ""} ${J ? "label-focused" : ""} ${V ? "label-loading" : ""} ${N ? "label-error" : ""}`,
|
|
6026
6096
|
children: g ? `${t}*` : t
|
|
6027
6097
|
}
|
|
6028
6098
|
),
|
|
6029
6099
|
/* @__PURE__ */ r(
|
|
6030
6100
|
"fieldset",
|
|
6031
6101
|
{
|
|
6032
|
-
className: `${J ? "fieldset-focused" : ""} ${
|
|
6102
|
+
className: `${J ? "fieldset-focused" : ""} ${o ? "fieldset-disabled" : ""} ${z ? "fieldset-filled" : ""} ${N ? "fieldset-error" : ""}`,
|
|
6033
6103
|
children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: g ? `${t}*` : t }) })
|
|
6034
6104
|
}
|
|
6035
6105
|
)
|
|
@@ -6047,12 +6117,12 @@ const D5 = ({
|
|
|
6047
6117
|
width: 16
|
|
6048
6118
|
}
|
|
6049
6119
|
),
|
|
6050
|
-
typeof N == "string" ? /* @__PURE__ */ r(
|
|
6120
|
+
typeof N == "string" ? /* @__PURE__ */ r(Z5, { color: Q.NOTIFICATION_ERROR_DARK, variant: "body4", children: N }) : N
|
|
6051
6121
|
] })
|
|
6052
6122
|
] });
|
|
6053
6123
|
}
|
|
6054
6124
|
);
|
|
6055
|
-
function
|
|
6125
|
+
function W5(i, e = 500) {
|
|
6056
6126
|
const t = q();
|
|
6057
6127
|
return j(() => () => {
|
|
6058
6128
|
t.current && clearTimeout(t.current);
|
|
@@ -6078,9 +6148,9 @@ const I1 = 100, l1 = {
|
|
|
6078
6148
|
onChange: t,
|
|
6079
6149
|
value: s,
|
|
6080
6150
|
id: n,
|
|
6081
|
-
disabled:
|
|
6151
|
+
disabled: a,
|
|
6082
6152
|
scrollThresholdValue: c,
|
|
6083
|
-
placeholder:
|
|
6153
|
+
placeholder: o,
|
|
6084
6154
|
mode: g,
|
|
6085
6155
|
loadOnClosedState: d,
|
|
6086
6156
|
preloadOptions: l,
|
|
@@ -6092,10 +6162,10 @@ const I1 = 100, l1 = {
|
|
|
6092
6162
|
clearable: m = !1,
|
|
6093
6163
|
required: _ = !1,
|
|
6094
6164
|
error: M
|
|
6095
|
-
},
|
|
6096
|
-
const [f, N] = T(), [x, v] = T(l1), [P, J] = T(!1), [F, H] = T(), [D, I] = T(!1), [
|
|
6165
|
+
}, V) => {
|
|
6166
|
+
const [f, N] = T(), [x, v] = T(l1), [P, J] = T(!1), [F, H] = T(), [D, I] = T(!1), [S, Z] = T(
|
|
6097
6167
|
h ?? []
|
|
6098
|
-
),
|
|
6168
|
+
), G = P1(x.offset), U = P1(F), [O, K] = T(!1), W = q(!1), e1 = $(
|
|
6099
6169
|
async ({
|
|
6100
6170
|
limit: A = I1,
|
|
6101
6171
|
offset: z,
|
|
@@ -6103,25 +6173,25 @@ const I1 = 100, l1 = {
|
|
|
6103
6173
|
}) => {
|
|
6104
6174
|
J(!0);
|
|
6105
6175
|
try {
|
|
6106
|
-
const
|
|
6176
|
+
const E = await i({
|
|
6107
6177
|
limit: A,
|
|
6108
6178
|
offset: z,
|
|
6109
6179
|
search: L
|
|
6110
6180
|
});
|
|
6111
6181
|
N(
|
|
6112
|
-
(B) => z === 0 ?
|
|
6182
|
+
(B) => z === 0 ? E.options : [...B ?? [], ...E.options]
|
|
6113
6183
|
), v((B) => ({
|
|
6114
6184
|
...B,
|
|
6115
|
-
count:
|
|
6185
|
+
count: E.count
|
|
6116
6186
|
}));
|
|
6117
|
-
} catch (
|
|
6118
|
-
return console.error("AsyncSelect. fetchOptions error",
|
|
6187
|
+
} catch (E) {
|
|
6188
|
+
return console.error("AsyncSelect. fetchOptions error", E), [];
|
|
6119
6189
|
} finally {
|
|
6120
6190
|
J(!1);
|
|
6121
6191
|
}
|
|
6122
6192
|
},
|
|
6123
6193
|
[i]
|
|
6124
|
-
), t1 =
|
|
6194
|
+
), t1 = W5((A) => {
|
|
6125
6195
|
H(A), A || v(l1);
|
|
6126
6196
|
}), g1 = $(
|
|
6127
6197
|
(A) => t1(A),
|
|
@@ -6141,13 +6211,13 @@ const I1 = 100, l1 = {
|
|
|
6141
6211
|
[u, F]
|
|
6142
6212
|
);
|
|
6143
6213
|
j(() => {
|
|
6144
|
-
!
|
|
6145
|
-
}, [O, D, x.offset, F,
|
|
6146
|
-
(d || l) && e1(l1),
|
|
6214
|
+
!W.current || P || (O || D && (G !== x.offset || U !== F || !f)) && (e1({ offset: x.offset, limit: I1, search: F }), O && K(!1));
|
|
6215
|
+
}, [O, D, x.offset, F, G, U, f, P]), j(() => {
|
|
6216
|
+
(d || l) && e1(l1), W.current = !0;
|
|
6147
6217
|
}, []), j(() => {
|
|
6148
6218
|
h && Z((A) => {
|
|
6149
6219
|
const z = h.filter(
|
|
6150
|
-
(L) => !A.some((
|
|
6220
|
+
(L) => !A.some((E) => E.value === L.value)
|
|
6151
6221
|
);
|
|
6152
6222
|
return [...A, ...z];
|
|
6153
6223
|
});
|
|
@@ -6158,10 +6228,10 @@ const I1 = 100, l1 = {
|
|
|
6158
6228
|
let z = [];
|
|
6159
6229
|
if (g ? z = Array.isArray(A) ? A : [] : z = A ? [A] : [], F) {
|
|
6160
6230
|
const L = z.filter(
|
|
6161
|
-
(
|
|
6231
|
+
(E) => !(S != null && S.some((B) => B.value === E))
|
|
6162
6232
|
);
|
|
6163
|
-
L.length > 0 && Z((
|
|
6164
|
-
...
|
|
6233
|
+
L.length > 0 && Z((E = []) => [
|
|
6234
|
+
...E,
|
|
6165
6235
|
...L.map((B) => {
|
|
6166
6236
|
const a1 = f == null ? void 0 : f.find((we) => we.value === B);
|
|
6167
6237
|
return {
|
|
@@ -6172,23 +6242,23 @@ const I1 = 100, l1 = {
|
|
|
6172
6242
|
]), H(void 0), v(l1), K(!0);
|
|
6173
6243
|
}
|
|
6174
6244
|
},
|
|
6175
|
-
[t, F, g, f,
|
|
6245
|
+
[t, F, g, f, S]
|
|
6176
6246
|
), N1 = ve(
|
|
6177
6247
|
() => ({
|
|
6178
6248
|
id: n,
|
|
6179
6249
|
width: e,
|
|
6180
6250
|
options: f || [],
|
|
6181
6251
|
onChange: o1,
|
|
6182
|
-
ref:
|
|
6183
|
-
placeholder:
|
|
6252
|
+
ref: V,
|
|
6253
|
+
placeholder: o,
|
|
6184
6254
|
search: !0,
|
|
6185
6255
|
value: s,
|
|
6186
6256
|
onSearchChange: g1,
|
|
6187
6257
|
onDropdownVisibleChange: v1,
|
|
6188
6258
|
scrollThresholdValue: c,
|
|
6189
6259
|
onScrollToEnd: L1,
|
|
6190
|
-
disabled:
|
|
6191
|
-
extraOptions:
|
|
6260
|
+
disabled: a,
|
|
6261
|
+
extraOptions: S,
|
|
6192
6262
|
isLoading: P,
|
|
6193
6263
|
optionRender: p,
|
|
6194
6264
|
dropdownRender: w,
|
|
@@ -6202,15 +6272,15 @@ const I1 = 100, l1 = {
|
|
|
6202
6272
|
e,
|
|
6203
6273
|
f,
|
|
6204
6274
|
o1,
|
|
6205
|
-
|
|
6206
|
-
|
|
6275
|
+
V,
|
|
6276
|
+
o,
|
|
6207
6277
|
s,
|
|
6208
6278
|
g1,
|
|
6209
6279
|
v1,
|
|
6210
6280
|
c,
|
|
6211
6281
|
L1,
|
|
6212
|
-
|
|
6213
|
-
|
|
6282
|
+
a,
|
|
6283
|
+
S,
|
|
6214
6284
|
P,
|
|
6215
6285
|
p,
|
|
6216
6286
|
w,
|
|
@@ -6220,7 +6290,7 @@ const I1 = 100, l1 = {
|
|
|
6220
6290
|
M
|
|
6221
6291
|
]
|
|
6222
6292
|
);
|
|
6223
|
-
return _1(
|
|
6293
|
+
return _1(V, () => ({
|
|
6224
6294
|
refetchOptions: async () => {
|
|
6225
6295
|
v(l1), H(void 0), K(!0);
|
|
6226
6296
|
}
|
|
@@ -6228,12 +6298,12 @@ const I1 = 100, l1 = {
|
|
|
6228
6298
|
}
|
|
6229
6299
|
);
|
|
6230
6300
|
var R1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(R1 || {});
|
|
6231
|
-
const
|
|
6301
|
+
const K5 = {
|
|
6232
6302
|
small: 20,
|
|
6233
6303
|
medium: 28,
|
|
6234
6304
|
large: 48
|
|
6235
|
-
},
|
|
6236
|
-
const t =
|
|
6305
|
+
}, $5 = ({ size: i = "medium", color: e = "#004ed7" }) => {
|
|
6306
|
+
const t = K5[i], s = `no-repeat linear-gradient(${e}
|
|
6237
6307
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, n = {
|
|
6238
6308
|
width: t,
|
|
6239
6309
|
background: `${s} 0% 100%, ${s} 50% 100%, ${s} 100% 100%`,
|
|
@@ -6241,7 +6311,7 @@ const W5 = {
|
|
|
6241
6311
|
};
|
|
6242
6312
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: n });
|
|
6243
6313
|
};
|
|
6244
|
-
function
|
|
6314
|
+
function P5() {
|
|
6245
6315
|
if (console && console.warn) {
|
|
6246
6316
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
6247
6317
|
e[t] = arguments[t];
|
|
@@ -6252,7 +6322,7 @@ const Y1 = {};
|
|
|
6252
6322
|
function A1() {
|
|
6253
6323
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
6254
6324
|
e[t] = arguments[t];
|
|
6255
|
-
n1(e[0]) && Y1[e[0]] || (n1(e[0]) && (Y1[e[0]] = /* @__PURE__ */ new Date()),
|
|
6325
|
+
n1(e[0]) && Y1[e[0]] || (n1(e[0]) && (Y1[e[0]] = /* @__PURE__ */ new Date()), P5(...e));
|
|
6256
6326
|
}
|
|
6257
6327
|
const ue = (i, e) => () => {
|
|
6258
6328
|
if (i.isInitialized)
|
|
@@ -6271,24 +6341,24 @@ const ue = (i, e) => () => {
|
|
|
6271
6341
|
n1(t) && (t = [t]), t.forEach((n) => {
|
|
6272
6342
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
6273
6343
|
}), i.loadLanguages(e, ue(i, s));
|
|
6274
|
-
},
|
|
6344
|
+
}, F5 = function(i, e) {
|
|
6275
6345
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6276
|
-
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1,
|
|
6346
|
+
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
|
|
6277
6347
|
if (s.toLowerCase() === "cimode") return !0;
|
|
6278
|
-
const c = (
|
|
6279
|
-
const d = e.services.backendConnector.state[`${
|
|
6348
|
+
const c = (o, g) => {
|
|
6349
|
+
const d = e.services.backendConnector.state[`${o}|${g}`];
|
|
6280
6350
|
return d === -1 || d === 2;
|
|
6281
6351
|
};
|
|
6282
|
-
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(
|
|
6283
|
-
},
|
|
6352
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(a, i)));
|
|
6353
|
+
}, Y5 = function(i, e) {
|
|
6284
6354
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6285
6355
|
return !e.languages || !e.languages.length ? (A1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
6286
6356
|
lng: t.lng,
|
|
6287
|
-
precheck: (n,
|
|
6288
|
-
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !
|
|
6357
|
+
precheck: (n, a) => {
|
|
6358
|
+
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !a(n.isLanguageChangingTo, i)) return !1;
|
|
6289
6359
|
}
|
|
6290
|
-
}) :
|
|
6291
|
-
}, n1 = (i) => typeof i == "string",
|
|
6360
|
+
}) : F5(i, e, t);
|
|
6361
|
+
}, n1 = (i) => typeof i == "string", U5 = (i) => typeof i == "object" && i !== null, z5 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, J5 = {
|
|
6292
6362
|
"&": "&",
|
|
6293
6363
|
"&": "&",
|
|
6294
6364
|
"<": "<",
|
|
@@ -6309,7 +6379,7 @@ const ue = (i, e) => () => {
|
|
|
6309
6379
|
"…": "…",
|
|
6310
6380
|
"/": "/",
|
|
6311
6381
|
"/": "/"
|
|
6312
|
-
},
|
|
6382
|
+
}, q5 = (i) => J5[i], Q5 = (i) => i.replace(z5, q5);
|
|
6313
6383
|
let T1 = {
|
|
6314
6384
|
bindI18n: "languageChanged",
|
|
6315
6385
|
bindI18nStore: "",
|
|
@@ -6318,25 +6388,25 @@ let T1 = {
|
|
|
6318
6388
|
transWrapTextNodes: "",
|
|
6319
6389
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
6320
6390
|
useSuspense: !0,
|
|
6321
|
-
unescape:
|
|
6391
|
+
unescape: Q5
|
|
6322
6392
|
};
|
|
6323
|
-
const
|
|
6393
|
+
const X5 = function() {
|
|
6324
6394
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6325
6395
|
T1 = {
|
|
6326
6396
|
...T1,
|
|
6327
6397
|
...i
|
|
6328
6398
|
};
|
|
6329
|
-
},
|
|
6399
|
+
}, e0 = () => T1;
|
|
6330
6400
|
let Ce;
|
|
6331
|
-
const
|
|
6401
|
+
const t0 = (i) => {
|
|
6332
6402
|
Ce = i;
|
|
6333
|
-
},
|
|
6403
|
+
}, i0 = () => Ce, s0 = {
|
|
6334
6404
|
type: "3rdParty",
|
|
6335
6405
|
init(i) {
|
|
6336
|
-
|
|
6406
|
+
X5(i.options.react), t0(i);
|
|
6337
6407
|
}
|
|
6338
|
-
},
|
|
6339
|
-
class
|
|
6408
|
+
}, n0 = d1();
|
|
6409
|
+
class r0 {
|
|
6340
6410
|
constructor() {
|
|
6341
6411
|
B1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
|
6342
6412
|
this.usedNamespaces = {};
|
|
@@ -6347,62 +6417,62 @@ class si {
|
|
|
6347
6417
|
});
|
|
6348
6418
|
}
|
|
6349
6419
|
}
|
|
6350
|
-
const
|
|
6420
|
+
const o0 = (i, e) => {
|
|
6351
6421
|
const t = q();
|
|
6352
6422
|
return j(() => {
|
|
6353
6423
|
t.current = i;
|
|
6354
6424
|
}, [i, e]), t.current;
|
|
6355
|
-
}, pe = (i, e, t, s) => i.getFixedT(e, t, s),
|
|
6425
|
+
}, pe = (i, e, t, s) => i.getFixedT(e, t, s), a0 = (i, e, t, s) => $(pe(i, e, t, s), [i, e, t, s]), l0 = function(i) {
|
|
6356
6426
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6357
6427
|
const {
|
|
6358
6428
|
i18n: t
|
|
6359
6429
|
} = e, {
|
|
6360
6430
|
i18n: s,
|
|
6361
6431
|
defaultNS: n
|
|
6362
|
-
} = r1(
|
|
6363
|
-
if (
|
|
6432
|
+
} = r1(n0) || {}, a = t || s || i0();
|
|
6433
|
+
if (a && !a.reportNamespaces && (a.reportNamespaces = new r0()), !a) {
|
|
6364
6434
|
A1("You will need to pass in an i18next instance by using initReactI18next");
|
|
6365
|
-
const f = (x, v) => n1(v) ? v :
|
|
6435
|
+
const f = (x, v) => n1(v) ? v : U5(v) && n1(v.defaultValue) ? v.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
|
|
6366
6436
|
return N.t = f, N.i18n = {}, N.ready = !1, N;
|
|
6367
6437
|
}
|
|
6368
|
-
|
|
6438
|
+
a.options.react && a.options.react.wait !== void 0 && A1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
6369
6439
|
const c = {
|
|
6370
|
-
...
|
|
6371
|
-
...
|
|
6440
|
+
...e0(),
|
|
6441
|
+
...a.options.react,
|
|
6372
6442
|
...e
|
|
6373
6443
|
}, {
|
|
6374
|
-
useSuspense:
|
|
6444
|
+
useSuspense: o,
|
|
6375
6445
|
keyPrefix: g
|
|
6376
6446
|
} = c;
|
|
6377
6447
|
let d = i;
|
|
6378
|
-
d = n1(d) ? [d] : d || ["translation"],
|
|
6379
|
-
const l = (
|
|
6448
|
+
d = n1(d) ? [d] : d || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(d);
|
|
6449
|
+
const l = (a.isInitialized || a.initializedStoreOnce) && d.every((f) => Y5(f, a, c)), h = a0(a, e.lng || null, c.nsMode === "fallback" ? d : d[0], g), u = () => h, p = () => pe(a, e.lng || null, c.nsMode === "fallback" ? d : d[0], g), [w, k] = T(u);
|
|
6380
6450
|
let m = d.join();
|
|
6381
6451
|
e.lng && (m = `${e.lng}${m}`);
|
|
6382
|
-
const _ =
|
|
6452
|
+
const _ = o0(m), M = q(!0);
|
|
6383
6453
|
j(() => {
|
|
6384
6454
|
const {
|
|
6385
6455
|
bindI18n: f,
|
|
6386
6456
|
bindI18nStore: N
|
|
6387
6457
|
} = c;
|
|
6388
|
-
M.current = !0, !l && !
|
|
6458
|
+
M.current = !0, !l && !o && (e.lng ? z1(a, e.lng, d, () => {
|
|
6389
6459
|
M.current && k(p);
|
|
6390
|
-
}) : U1(
|
|
6460
|
+
}) : U1(a, d, () => {
|
|
6391
6461
|
M.current && k(p);
|
|
6392
6462
|
})), l && _ && _ !== m && M.current && k(p);
|
|
6393
6463
|
const x = () => {
|
|
6394
6464
|
M.current && k(p);
|
|
6395
6465
|
};
|
|
6396
|
-
return f &&
|
|
6397
|
-
M.current = !1, f &&
|
|
6466
|
+
return f && a && a.on(f, x), N && a && a.store.on(N, x), () => {
|
|
6467
|
+
M.current = !1, f && a && f.split(" ").forEach((v) => a.off(v, x)), N && a && N.split(" ").forEach((v) => a.store.off(v, x));
|
|
6398
6468
|
};
|
|
6399
|
-
}, [
|
|
6469
|
+
}, [a, m]), j(() => {
|
|
6400
6470
|
M.current && l && k(u);
|
|
6401
|
-
}, [
|
|
6402
|
-
const
|
|
6403
|
-
if (
|
|
6471
|
+
}, [a, g, l]);
|
|
6472
|
+
const V = [w, a, l];
|
|
6473
|
+
if (V.t = w, V.i18n = a, V.ready = l, l || !l && !o) return V;
|
|
6404
6474
|
throw new Promise((f) => {
|
|
6405
|
-
e.lng ? z1(
|
|
6475
|
+
e.lng ? z1(a, e.lng, d, () => f()) : U1(a, d, () => f());
|
|
6406
6476
|
});
|
|
6407
6477
|
}, R = (i) => typeof i == "string", C1 = () => {
|
|
6408
6478
|
let i, e;
|
|
@@ -6410,17 +6480,17 @@ const ni = (i, e) => {
|
|
|
6410
6480
|
i = s, e = n;
|
|
6411
6481
|
});
|
|
6412
6482
|
return t.resolve = i, t.reject = e, t;
|
|
6413
|
-
}, J1 = (i) => i == null ? "" : "" + i,
|
|
6483
|
+
}, J1 = (i) => i == null ? "" : "" + i, h0 = (i, e, t) => {
|
|
6414
6484
|
i.forEach((s) => {
|
|
6415
6485
|
e[s] && (t[s] = e[s]);
|
|
6416
6486
|
});
|
|
6417
|
-
},
|
|
6487
|
+
}, c0 = /###/g, q1 = (i) => i && i.indexOf("###") > -1 ? i.replace(c0, ".") : i, Q1 = (i) => !i || R(i), m1 = (i, e, t) => {
|
|
6418
6488
|
const s = R(e) ? e.split(".") : e;
|
|
6419
6489
|
let n = 0;
|
|
6420
6490
|
for (; n < s.length - 1; ) {
|
|
6421
6491
|
if (Q1(i)) return {};
|
|
6422
|
-
const
|
|
6423
|
-
!i[
|
|
6492
|
+
const a = q1(s[n]);
|
|
6493
|
+
!i[a] && t && (i[a] = new t()), Object.prototype.hasOwnProperty.call(i, a) ? i = i[a] : i = {}, ++n;
|
|
6424
6494
|
}
|
|
6425
6495
|
return Q1(i) ? {} : {
|
|
6426
6496
|
obj: i,
|
|
@@ -6435,16 +6505,16 @@ const ni = (i, e) => {
|
|
|
6435
6505
|
s[n] = t;
|
|
6436
6506
|
return;
|
|
6437
6507
|
}
|
|
6438
|
-
let
|
|
6439
|
-
for (;
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
},
|
|
6508
|
+
let a = e[e.length - 1], c = e.slice(0, e.length - 1), o = m1(i, c, Object);
|
|
6509
|
+
for (; o.obj === void 0 && c.length; )
|
|
6510
|
+
a = `${c[c.length - 1]}.${a}`, c = c.slice(0, c.length - 1), o = m1(i, c, Object), o && o.obj && typeof o.obj[`${o.k}.${a}`] < "u" && (o.obj = void 0);
|
|
6511
|
+
o.obj[`${o.k}.${a}`] = t;
|
|
6512
|
+
}, d0 = (i, e, t, s) => {
|
|
6443
6513
|
const {
|
|
6444
6514
|
obj: n,
|
|
6445
|
-
k:
|
|
6515
|
+
k: a
|
|
6446
6516
|
} = m1(i, e, Object);
|
|
6447
|
-
n[
|
|
6517
|
+
n[a] = n[a] || [], n[a].push(t);
|
|
6448
6518
|
}, M1 = (i, e) => {
|
|
6449
6519
|
const {
|
|
6450
6520
|
obj: t,
|
|
@@ -6452,7 +6522,7 @@ const ni = (i, e) => {
|
|
|
6452
6522
|
} = m1(i, e);
|
|
6453
6523
|
if (t)
|
|
6454
6524
|
return t[s];
|
|
6455
|
-
},
|
|
6525
|
+
}, g0 = (i, e, t) => {
|
|
6456
6526
|
const s = M1(i, t);
|
|
6457
6527
|
return s !== void 0 ? s : M1(e, t);
|
|
6458
6528
|
}, fe = (i, e, t) => {
|
|
@@ -6460,7 +6530,7 @@ const ni = (i, e) => {
|
|
|
6460
6530
|
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]);
|
|
6461
6531
|
return i;
|
|
6462
6532
|
}, h1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
6463
|
-
var
|
|
6533
|
+
var u0 = {
|
|
6464
6534
|
"&": "&",
|
|
6465
6535
|
"<": "<",
|
|
6466
6536
|
">": ">",
|
|
@@ -6468,8 +6538,8 @@ var di = {
|
|
|
6468
6538
|
"'": "'",
|
|
6469
6539
|
"/": "/"
|
|
6470
6540
|
};
|
|
6471
|
-
const
|
|
6472
|
-
class
|
|
6541
|
+
const C0 = (i) => R(i) ? i.replace(/[&<>"'\/]/g, (e) => u0[e]) : i;
|
|
6542
|
+
class p0 {
|
|
6473
6543
|
constructor(e) {
|
|
6474
6544
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
6475
6545
|
}
|
|
@@ -6481,38 +6551,38 @@ class ui {
|
|
|
6481
6551
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
|
6482
6552
|
}
|
|
6483
6553
|
}
|
|
6484
|
-
const
|
|
6554
|
+
const f0 = [" ", ",", "?", "!", ";"], m0 = new p0(20), w0 = (i, e, t) => {
|
|
6485
6555
|
e = e || "", t = t || "";
|
|
6486
|
-
const s =
|
|
6556
|
+
const s = f0.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
|
|
6487
6557
|
if (s.length === 0) return !0;
|
|
6488
|
-
const n =
|
|
6489
|
-
let
|
|
6490
|
-
if (!
|
|
6558
|
+
const n = m0.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
|
6559
|
+
let a = !n.test(i);
|
|
6560
|
+
if (!a) {
|
|
6491
6561
|
const c = i.indexOf(t);
|
|
6492
|
-
c > 0 && !n.test(i.substring(0, c)) && (
|
|
6562
|
+
c > 0 && !n.test(i.substring(0, c)) && (a = !0);
|
|
6493
6563
|
}
|
|
6494
|
-
return
|
|
6564
|
+
return a;
|
|
6495
6565
|
}, Z1 = function(i, e) {
|
|
6496
6566
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
6497
6567
|
if (!i) return;
|
|
6498
6568
|
if (i[e]) return i[e];
|
|
6499
6569
|
const s = e.split(t);
|
|
6500
6570
|
let n = i;
|
|
6501
|
-
for (let
|
|
6571
|
+
for (let a = 0; a < s.length; ) {
|
|
6502
6572
|
if (!n || typeof n != "object")
|
|
6503
6573
|
return;
|
|
6504
|
-
let c,
|
|
6505
|
-
for (let g =
|
|
6506
|
-
if (g !==
|
|
6574
|
+
let c, o = "";
|
|
6575
|
+
for (let g = a; g < s.length; ++g)
|
|
6576
|
+
if (g !== a && (o += t), o += s[g], c = n[o], c !== void 0) {
|
|
6507
6577
|
if (["string", "number", "boolean"].indexOf(typeof c) > -1 && g < s.length - 1)
|
|
6508
6578
|
continue;
|
|
6509
|
-
|
|
6579
|
+
a += g - a + 1;
|
|
6510
6580
|
break;
|
|
6511
6581
|
}
|
|
6512
6582
|
n = c;
|
|
6513
6583
|
}
|
|
6514
6584
|
return n;
|
|
6515
|
-
}, b1 = (i) => i && i.replace("_", "-"),
|
|
6585
|
+
}, b1 = (i) => i && i.replace("_", "-"), k0 = {
|
|
6516
6586
|
type: "logger",
|
|
6517
6587
|
log(i) {
|
|
6518
6588
|
this.output("log", i);
|
|
@@ -6534,7 +6604,7 @@ class y1 {
|
|
|
6534
6604
|
}
|
|
6535
6605
|
init(e) {
|
|
6536
6606
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6537
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
6607
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || k0, this.options = t, this.debug = t.debug;
|
|
6538
6608
|
}
|
|
6539
6609
|
log() {
|
|
6540
6610
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
@@ -6594,13 +6664,13 @@ class H1 {
|
|
|
6594
6664
|
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
6595
6665
|
s[n - 1] = arguments[n];
|
|
6596
6666
|
this.observers[e] && Array.from(this.observers[e].entries()).forEach((c) => {
|
|
6597
|
-
let [
|
|
6667
|
+
let [o, g] = c;
|
|
6598
6668
|
for (let d = 0; d < g; d++)
|
|
6599
|
-
|
|
6669
|
+
o(...s);
|
|
6600
6670
|
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((c) => {
|
|
6601
|
-
let [
|
|
6671
|
+
let [o, g] = c;
|
|
6602
6672
|
for (let d = 0; d < g; d++)
|
|
6603
|
-
|
|
6673
|
+
o.apply(o, [e, ...s]);
|
|
6604
6674
|
});
|
|
6605
6675
|
}
|
|
6606
6676
|
}
|
|
@@ -6621,41 +6691,41 @@ class ee extends H1 {
|
|
|
6621
6691
|
}
|
|
6622
6692
|
getResource(e, t, s) {
|
|
6623
6693
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6624
|
-
const
|
|
6625
|
-
let
|
|
6626
|
-
e.indexOf(".") > -1 ?
|
|
6627
|
-
const g = M1(this.data,
|
|
6628
|
-
return !g && !t && !s && e.indexOf(".") > -1 && (e =
|
|
6694
|
+
const a = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
6695
|
+
let o;
|
|
6696
|
+
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], s && (Array.isArray(s) ? o.push(...s) : R(s) && a ? o.push(...s.split(a)) : o.push(s)));
|
|
6697
|
+
const g = M1(this.data, o);
|
|
6698
|
+
return !g && !t && !s && e.indexOf(".") > -1 && (e = o[0], t = o[1], s = o.slice(2).join(".")), g || !c || !R(s) ? g : Z1(this.data && this.data[e] && this.data[e][t], s, a);
|
|
6629
6699
|
}
|
|
6630
6700
|
addResource(e, t, s, n) {
|
|
6631
|
-
let
|
|
6701
|
+
let a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
6632
6702
|
silent: !1
|
|
6633
6703
|
};
|
|
6634
|
-
const c =
|
|
6635
|
-
let
|
|
6636
|
-
s && (
|
|
6704
|
+
const c = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator;
|
|
6705
|
+
let o = [e, t];
|
|
6706
|
+
s && (o = o.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (o = e.split("."), n = t, t = o[1]), this.addNamespaces(t), X1(this.data, o, n), a.silent || this.emit("added", e, t, s, n);
|
|
6637
6707
|
}
|
|
6638
6708
|
addResources(e, t, s) {
|
|
6639
6709
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
6640
6710
|
silent: !1
|
|
6641
6711
|
};
|
|
6642
|
-
for (const
|
|
6643
|
-
(R(s[
|
|
6712
|
+
for (const a in s)
|
|
6713
|
+
(R(s[a]) || Array.isArray(s[a])) && this.addResource(e, t, a, s[a], {
|
|
6644
6714
|
silent: !0
|
|
6645
6715
|
});
|
|
6646
6716
|
n.silent || this.emit("added", e, t, s);
|
|
6647
6717
|
}
|
|
6648
|
-
addResourceBundle(e, t, s, n,
|
|
6718
|
+
addResourceBundle(e, t, s, n, a) {
|
|
6649
6719
|
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
|
|
6650
6720
|
silent: !1,
|
|
6651
6721
|
skipCopy: !1
|
|
6652
|
-
},
|
|
6653
|
-
e.indexOf(".") > -1 && (
|
|
6654
|
-
let g = M1(this.data,
|
|
6655
|
-
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? fe(g, s,
|
|
6722
|
+
}, o = [e, t];
|
|
6723
|
+
e.indexOf(".") > -1 && (o = e.split("."), n = s, s = t, t = o[1]), this.addNamespaces(t);
|
|
6724
|
+
let g = M1(this.data, o) || {};
|
|
6725
|
+
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? fe(g, s, a) : g = {
|
|
6656
6726
|
...g,
|
|
6657
6727
|
...s
|
|
6658
|
-
}, X1(this.data,
|
|
6728
|
+
}, X1(this.data, o, g), c.silent || this.emit("added", e, t, s);
|
|
6659
6729
|
}
|
|
6660
6730
|
removeResourceBundle(e, t) {
|
|
6661
6731
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -6685,8 +6755,8 @@ var me = {
|
|
|
6685
6755
|
this.processors[i.name] = i;
|
|
6686
6756
|
},
|
|
6687
6757
|
handle(i, e, t, s, n) {
|
|
6688
|
-
return i.forEach((
|
|
6689
|
-
this.processors[
|
|
6758
|
+
return i.forEach((a) => {
|
|
6759
|
+
this.processors[a] && (e = this.processors[a].process(e, t, s, n));
|
|
6690
6760
|
}), e;
|
|
6691
6761
|
}
|
|
6692
6762
|
};
|
|
@@ -6694,7 +6764,7 @@ const te = {};
|
|
|
6694
6764
|
class E1 extends H1 {
|
|
6695
6765
|
constructor(e) {
|
|
6696
6766
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6697
|
-
super(),
|
|
6767
|
+
super(), h0(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = X.create("translator");
|
|
6698
6768
|
}
|
|
6699
6769
|
changeLanguage(e) {
|
|
6700
6770
|
e && (this.language = e);
|
|
@@ -6712,21 +6782,21 @@ class E1 extends H1 {
|
|
|
6712
6782
|
let s = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
|
|
6713
6783
|
s === void 0 && (s = ":");
|
|
6714
6784
|
const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
6715
|
-
let
|
|
6716
|
-
const c = s && e.indexOf(s) > -1,
|
|
6717
|
-
if (c && !
|
|
6785
|
+
let a = t.ns || this.options.defaultNS || [];
|
|
6786
|
+
const c = s && e.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !w0(e, s, n);
|
|
6787
|
+
if (c && !o) {
|
|
6718
6788
|
const g = e.match(this.interpolator.nestingRegexp);
|
|
6719
6789
|
if (g && g.length > 0)
|
|
6720
6790
|
return {
|
|
6721
6791
|
key: e,
|
|
6722
|
-
namespaces: R(
|
|
6792
|
+
namespaces: R(a) ? [a] : a
|
|
6723
6793
|
};
|
|
6724
6794
|
const d = e.split(s);
|
|
6725
|
-
(s !== n || s === n && this.options.ns.indexOf(d[0]) > -1) && (
|
|
6795
|
+
(s !== n || s === n && this.options.ns.indexOf(d[0]) > -1) && (a = d.shift()), e = d.join(n);
|
|
6726
6796
|
}
|
|
6727
6797
|
return {
|
|
6728
6798
|
key: e,
|
|
6729
|
-
namespaces: R(
|
|
6799
|
+
namespaces: R(a) ? [a] : a
|
|
6730
6800
|
};
|
|
6731
6801
|
}
|
|
6732
6802
|
translate(e, t, s) {
|
|
@@ -6734,10 +6804,10 @@ class E1 extends H1 {
|
|
|
6734
6804
|
...t
|
|
6735
6805
|
}), t || (t = {}), e == null) return "";
|
|
6736
6806
|
Array.isArray(e) || (e = [String(e)]);
|
|
6737
|
-
const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails,
|
|
6807
|
+
const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
6738
6808
|
key: c,
|
|
6739
|
-
namespaces:
|
|
6740
|
-
} = this.extractFromKey(e[e.length - 1], t), g =
|
|
6809
|
+
namespaces: o
|
|
6810
|
+
} = this.extractFromKey(e[e.length - 1], t), g = o[o.length - 1], d = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
6741
6811
|
if (d && d.toLowerCase() === "cimode") {
|
|
6742
6812
|
if (l) {
|
|
6743
6813
|
const f = t.nsSeparator || this.options.nsSeparator;
|
|
@@ -6761,25 +6831,25 @@ class E1 extends H1 {
|
|
|
6761
6831
|
}
|
|
6762
6832
|
const h = this.resolve(e, t);
|
|
6763
6833
|
let u = h && h.res;
|
|
6764
|
-
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, k = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"], _ = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject,
|
|
6765
|
-
if (M && u &&
|
|
6834
|
+
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, k = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"], _ = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject, V = !R(u) && typeof u != "boolean" && typeof u != "number";
|
|
6835
|
+
if (M && u && V && m.indexOf(k) < 0 && !(R(_) && Array.isArray(u))) {
|
|
6766
6836
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
6767
6837
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
6768
6838
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
|
|
6769
6839
|
...t,
|
|
6770
|
-
ns:
|
|
6840
|
+
ns: o
|
|
6771
6841
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
|
6772
6842
|
return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
|
|
6773
6843
|
}
|
|
6774
|
-
if (
|
|
6844
|
+
if (a) {
|
|
6775
6845
|
const f = Array.isArray(u), N = f ? [] : {}, x = f ? w : p;
|
|
6776
6846
|
for (const v in u)
|
|
6777
6847
|
if (Object.prototype.hasOwnProperty.call(u, v)) {
|
|
6778
|
-
const P = `${x}${
|
|
6848
|
+
const P = `${x}${a}${v}`;
|
|
6779
6849
|
N[v] = this.translate(P, {
|
|
6780
6850
|
...t,
|
|
6781
6851
|
joinArrays: !1,
|
|
6782
|
-
ns:
|
|
6852
|
+
ns: o
|
|
6783
6853
|
}), N[v] === P && (N[v] = u[v]);
|
|
6784
6854
|
}
|
|
6785
6855
|
u = N;
|
|
@@ -6792,9 +6862,9 @@ class E1 extends H1 {
|
|
|
6792
6862
|
ordinal: !1
|
|
6793
6863
|
}) : "", F = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), H = F && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${P}`] || t[`defaultValue${J}`] || t.defaultValue;
|
|
6794
6864
|
!this.isValidLookup(u) && v && (f = !0, u = H), this.isValidLookup(u) || (N = !0, u = c);
|
|
6795
|
-
const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : u,
|
|
6796
|
-
if (N || f ||
|
|
6797
|
-
if (this.logger.log(
|
|
6865
|
+
const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : u, S = v && H !== u && this.options.updateMissing;
|
|
6866
|
+
if (N || f || S) {
|
|
6867
|
+
if (this.logger.log(S ? "updateKey" : "missingKey", d, g, c, S ? H : u), a) {
|
|
6798
6868
|
const O = this.resolve(c, {
|
|
6799
6869
|
...t,
|
|
6800
6870
|
keySeparator: !1
|
|
@@ -6802,19 +6872,19 @@ class E1 extends H1 {
|
|
|
6802
6872
|
O && O.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
6803
6873
|
}
|
|
6804
6874
|
let Z = [];
|
|
6805
|
-
const
|
|
6806
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
6807
|
-
for (let O = 0; O <
|
|
6808
|
-
Z.push(
|
|
6875
|
+
const G = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
6876
|
+
if (this.options.saveMissingTo === "fallback" && G && G[0])
|
|
6877
|
+
for (let O = 0; O < G.length; O++)
|
|
6878
|
+
Z.push(G[O]);
|
|
6809
6879
|
else this.options.saveMissingTo === "all" ? Z = this.languageUtils.toResolveHierarchy(t.lng || this.language) : Z.push(t.lng || this.language);
|
|
6810
|
-
const U = (O, K,
|
|
6811
|
-
const e1 = v &&
|
|
6812
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(O, g, K, e1,
|
|
6880
|
+
const U = (O, K, W) => {
|
|
6881
|
+
const e1 = v && W !== u ? W : I;
|
|
6882
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(O, g, K, e1, S, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(O, g, K, e1, S, t), this.emit("missingKey", O, g, K, u);
|
|
6813
6883
|
};
|
|
6814
6884
|
this.options.saveMissing && (this.options.saveMissingPlurals && x ? Z.forEach((O) => {
|
|
6815
6885
|
const K = this.pluralResolver.getSuffixes(O, t);
|
|
6816
|
-
F && t[`defaultValue${this.options.pluralSeparator}zero`] && K.indexOf(`${this.options.pluralSeparator}zero`) < 0 && K.push(`${this.options.pluralSeparator}zero`), K.forEach((
|
|
6817
|
-
U([O], c +
|
|
6886
|
+
F && t[`defaultValue${this.options.pluralSeparator}zero`] && K.indexOf(`${this.options.pluralSeparator}zero`) < 0 && K.push(`${this.options.pluralSeparator}zero`), K.forEach((W) => {
|
|
6887
|
+
U([O], c + W, t[`defaultValue${W}`] || H);
|
|
6818
6888
|
});
|
|
6819
6889
|
}) : U(Z, c, H));
|
|
6820
6890
|
}
|
|
@@ -6822,7 +6892,7 @@ class E1 extends H1 {
|
|
|
6822
6892
|
}
|
|
6823
6893
|
return n ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
|
|
6824
6894
|
}
|
|
6825
|
-
extendTranslation(e, t, s, n,
|
|
6895
|
+
extendTranslation(e, t, s, n, a) {
|
|
6826
6896
|
var c = this;
|
|
6827
6897
|
if (this.i18nFormat && this.i18nFormat.parse)
|
|
6828
6898
|
e = this.i18nFormat.parse(e, {
|
|
@@ -6856,10 +6926,10 @@ class E1 extends H1 {
|
|
|
6856
6926
|
!s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
6857
6927
|
for (var u = arguments.length, p = new Array(u), w = 0; w < u; w++)
|
|
6858
6928
|
p[w] = arguments[w];
|
|
6859
|
-
return
|
|
6929
|
+
return a && a[0] === p[0] && !s.context ? (c.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : c.translate(...p, t);
|
|
6860
6930
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
6861
6931
|
}
|
|
6862
|
-
const
|
|
6932
|
+
const o = s.postProcess || this.options.postProcess, g = R(o) ? [o] : o;
|
|
6863
6933
|
return e != null && g && g.length && s.applyPostProcessor !== !1 && (e = me.handle(g, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
6864
6934
|
i18nResolved: {
|
|
6865
6935
|
...n,
|
|
@@ -6869,7 +6939,7 @@ class E1 extends H1 {
|
|
|
6869
6939
|
} : s, this)), e;
|
|
6870
6940
|
}
|
|
6871
6941
|
resolve(e) {
|
|
6872
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n,
|
|
6942
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, a, c, o;
|
|
6873
6943
|
return R(e) && (e = [e]), e.forEach((g) => {
|
|
6874
6944
|
if (this.isValidLookup(s)) return;
|
|
6875
6945
|
const d = this.extractFromKey(g, t), l = d.key;
|
|
@@ -6878,7 +6948,7 @@ class E1 extends H1 {
|
|
|
6878
6948
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
|
6879
6949
|
const u = t.count !== void 0 && !R(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), w = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", k = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
6880
6950
|
h.forEach((m) => {
|
|
6881
|
-
this.isValidLookup(s) || (
|
|
6951
|
+
this.isValidLookup(s) || (o = m, !te[`${k[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (te[`${k[0]}-${m}`] = !0, this.logger.warn(`key "${n}" for languages "${k.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k.forEach((_) => {
|
|
6882
6952
|
if (this.isValidLookup(s)) return;
|
|
6883
6953
|
c = _;
|
|
6884
6954
|
const M = [l];
|
|
@@ -6893,17 +6963,17 @@ class E1 extends H1 {
|
|
|
6893
6963
|
M.push(v), u && (M.push(v + f), t.ordinal && f.indexOf(x) === 0 && M.push(v + f.replace(x, this.options.pluralSeparator)), p && M.push(v + N));
|
|
6894
6964
|
}
|
|
6895
6965
|
}
|
|
6896
|
-
let
|
|
6897
|
-
for (;
|
|
6898
|
-
this.isValidLookup(s) || (
|
|
6966
|
+
let V;
|
|
6967
|
+
for (; V = M.pop(); )
|
|
6968
|
+
this.isValidLookup(s) || (a = V, s = this.getResource(_, m, V, t));
|
|
6899
6969
|
}));
|
|
6900
6970
|
});
|
|
6901
6971
|
}), {
|
|
6902
6972
|
res: s,
|
|
6903
6973
|
usedKey: n,
|
|
6904
|
-
exactUsedKey:
|
|
6974
|
+
exactUsedKey: a,
|
|
6905
6975
|
usedLng: c,
|
|
6906
|
-
usedNS:
|
|
6976
|
+
usedNS: o
|
|
6907
6977
|
};
|
|
6908
6978
|
}
|
|
6909
6979
|
isValidLookup(e) {
|
|
@@ -6924,8 +6994,8 @@ class E1 extends H1 {
|
|
|
6924
6994
|
n = {
|
|
6925
6995
|
...n
|
|
6926
6996
|
};
|
|
6927
|
-
for (const
|
|
6928
|
-
delete n[
|
|
6997
|
+
for (const a of t)
|
|
6998
|
+
delete n[a];
|
|
6929
6999
|
}
|
|
6930
7000
|
return n;
|
|
6931
7001
|
}
|
|
@@ -6980,10 +7050,10 @@ class ie {
|
|
|
6980
7050
|
if (t) return;
|
|
6981
7051
|
const n = this.getLanguagePartFromCode(s);
|
|
6982
7052
|
if (this.isSupportedCode(n)) return t = n;
|
|
6983
|
-
t = this.options.supportedLngs.find((
|
|
6984
|
-
if (
|
|
6985
|
-
if (!(
|
|
6986
|
-
return
|
|
7053
|
+
t = this.options.supportedLngs.find((a) => {
|
|
7054
|
+
if (a === n) return a;
|
|
7055
|
+
if (!(a.indexOf("-") < 0 && n.indexOf("-") < 0) && (a.indexOf("-") > 0 && n.indexOf("-") < 0 && a.substring(0, a.indexOf("-")) === n || a.indexOf(n) === 0 && n.length > 1))
|
|
7056
|
+
return a;
|
|
6987
7057
|
});
|
|
6988
7058
|
}), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
|
|
6989
7059
|
}
|
|
@@ -6995,15 +7065,15 @@ class ie {
|
|
|
6995
7065
|
return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
|
|
6996
7066
|
}
|
|
6997
7067
|
toResolveHierarchy(e, t) {
|
|
6998
|
-
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [],
|
|
7068
|
+
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], a = (c) => {
|
|
6999
7069
|
c && (this.isSupportedCode(c) ? n.push(c) : this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`));
|
|
7000
7070
|
};
|
|
7001
|
-
return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" &&
|
|
7002
|
-
n.indexOf(c) < 0 &&
|
|
7071
|
+
return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(e))) : R(e) && a(this.formatLanguageCode(e)), s.forEach((c) => {
|
|
7072
|
+
n.indexOf(c) < 0 && a(this.formatLanguageCode(c));
|
|
7003
7073
|
}), n;
|
|
7004
7074
|
}
|
|
7005
7075
|
}
|
|
7006
|
-
let
|
|
7076
|
+
let L0 = [{
|
|
7007
7077
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
7008
7078
|
nr: [1, 2],
|
|
7009
7079
|
fc: 1
|
|
@@ -7095,7 +7165,7 @@ let wi = [{
|
|
|
7095
7165
|
lngs: ["he", "iw"],
|
|
7096
7166
|
nr: [1, 2, 20, 21],
|
|
7097
7167
|
fc: 22
|
|
7098
|
-
}],
|
|
7168
|
+
}], v0 = {
|
|
7099
7169
|
1: (i) => +(i > 1),
|
|
7100
7170
|
2: (i) => +(i != 1),
|
|
7101
7171
|
3: (i) => 0,
|
|
@@ -7119,28 +7189,28 @@ let wi = [{
|
|
|
7119
7189
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
|
7120
7190
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
|
7121
7191
|
};
|
|
7122
|
-
const
|
|
7192
|
+
const N0 = ["v1", "v2", "v3"], x0 = ["v4"], se = {
|
|
7123
7193
|
zero: 0,
|
|
7124
7194
|
one: 1,
|
|
7125
7195
|
two: 2,
|
|
7126
7196
|
few: 3,
|
|
7127
7197
|
many: 4,
|
|
7128
7198
|
other: 5
|
|
7129
|
-
},
|
|
7199
|
+
}, R0 = () => {
|
|
7130
7200
|
const i = {};
|
|
7131
|
-
return
|
|
7201
|
+
return L0.forEach((e) => {
|
|
7132
7202
|
e.lngs.forEach((t) => {
|
|
7133
7203
|
i[t] = {
|
|
7134
7204
|
numbers: e.nr,
|
|
7135
|
-
plurals:
|
|
7205
|
+
plurals: v0[e.fc]
|
|
7136
7206
|
};
|
|
7137
7207
|
});
|
|
7138
7208
|
}), i;
|
|
7139
7209
|
};
|
|
7140
|
-
class
|
|
7210
|
+
class M0 {
|
|
7141
7211
|
constructor(e) {
|
|
7142
7212
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7143
|
-
this.languageUtils = e, this.options = t, this.logger = X.create("pluralResolver"), (!this.options.compatibilityJSON ||
|
|
7213
|
+
this.languageUtils = e, this.options = t, this.logger = X.create("pluralResolver"), (!this.options.compatibilityJSON || x0.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 = R0(), this.pluralRulesCache = {};
|
|
7144
7214
|
}
|
|
7145
7215
|
addRule(e, t) {
|
|
7146
7216
|
this.rules[e] = t;
|
|
@@ -7151,12 +7221,12 @@ class xi {
|
|
|
7151
7221
|
getRule(e) {
|
|
7152
7222
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7153
7223
|
if (this.shouldUseIntlApi()) {
|
|
7154
|
-
const s = b1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal",
|
|
7224
|
+
const s = b1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
|
|
7155
7225
|
cleanedCode: s,
|
|
7156
7226
|
type: n
|
|
7157
7227
|
});
|
|
7158
|
-
if (
|
|
7159
|
-
return this.pluralRulesCache[
|
|
7228
|
+
if (a in this.pluralRulesCache)
|
|
7229
|
+
return this.pluralRulesCache[a];
|
|
7160
7230
|
let c;
|
|
7161
7231
|
try {
|
|
7162
7232
|
c = new Intl.PluralRules(s, {
|
|
@@ -7167,7 +7237,7 @@ class xi {
|
|
|
7167
7237
|
const g = this.languageUtils.getLanguagePartFromCode(e);
|
|
7168
7238
|
c = this.getRule(g, t);
|
|
7169
7239
|
}
|
|
7170
|
-
return this.pluralRulesCache[
|
|
7240
|
+
return this.pluralRulesCache[a] = c, c;
|
|
7171
7241
|
}
|
|
7172
7242
|
return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
|
|
7173
7243
|
}
|
|
@@ -7183,7 +7253,7 @@ class xi {
|
|
|
7183
7253
|
getSuffixes(e) {
|
|
7184
7254
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7185
7255
|
const s = this.getRule(e, t);
|
|
7186
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n,
|
|
7256
|
+
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, a) => se[n] - se[a]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
|
|
7187
7257
|
}
|
|
7188
7258
|
getSuffix(e, t) {
|
|
7189
7259
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -7194,18 +7264,18 @@ class xi {
|
|
|
7194
7264
|
const s = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t));
|
|
7195
7265
|
let n = e.numbers[s];
|
|
7196
7266
|
this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 && (n === 2 ? n = "plural" : n === 1 && (n = ""));
|
|
7197
|
-
const
|
|
7198
|
-
return this.options.compatibilityJSON === "v1" ? n === 1 ? "" : typeof n == "number" ? `_plural_${n.toString()}` :
|
|
7267
|
+
const a = () => this.options.prepend && n.toString() ? this.options.prepend + n.toString() : n.toString();
|
|
7268
|
+
return this.options.compatibilityJSON === "v1" ? n === 1 ? "" : typeof n == "number" ? `_plural_${n.toString()}` : a() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? a() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
|
7199
7269
|
}
|
|
7200
7270
|
shouldUseIntlApi() {
|
|
7201
|
-
return !
|
|
7271
|
+
return !N0.includes(this.options.compatibilityJSON);
|
|
7202
7272
|
}
|
|
7203
7273
|
}
|
|
7204
7274
|
const ne = function(i, e, t) {
|
|
7205
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0,
|
|
7206
|
-
return !
|
|
7207
|
-
},
|
|
7208
|
-
class
|
|
7275
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = g0(i, e, t);
|
|
7276
|
+
return !a && n && R(t) && (a = Z1(i, t, s), a === void 0 && (a = Z1(e, t, s))), a;
|
|
7277
|
+
}, V1 = (i) => i.replace(/\$/g, "$$$$");
|
|
7278
|
+
class b0 {
|
|
7209
7279
|
constructor() {
|
|
7210
7280
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7211
7281
|
this.logger = X.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
@@ -7219,9 +7289,9 @@ class Ri {
|
|
|
7219
7289
|
escape: t,
|
|
7220
7290
|
escapeValue: s,
|
|
7221
7291
|
useRawValueToEscape: n,
|
|
7222
|
-
prefix:
|
|
7292
|
+
prefix: a,
|
|
7223
7293
|
prefixEscaped: c,
|
|
7224
|
-
suffix:
|
|
7294
|
+
suffix: o,
|
|
7225
7295
|
suffixEscaped: g,
|
|
7226
7296
|
formatSeparator: d,
|
|
7227
7297
|
unescapeSuffix: l,
|
|
@@ -7234,7 +7304,7 @@ class Ri {
|
|
|
7234
7304
|
maxReplaces: _,
|
|
7235
7305
|
alwaysFormat: M
|
|
7236
7306
|
} = e.interpolation;
|
|
7237
|
-
this.escape = t !== void 0 ? t :
|
|
7307
|
+
this.escape = t !== void 0 ? t : C0, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = a ? h1(a) : c || "{{", this.suffix = o ? h1(o) : g || "}}", this.formatSeparator = d || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = u ? h1(u) : p || h1("$t("), this.nestingSuffix = w ? h1(w) : k || h1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = _ || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
|
|
7238
7308
|
}
|
|
7239
7309
|
reset() {
|
|
7240
7310
|
this.options && this.init(this.options);
|
|
@@ -7244,7 +7314,7 @@ class Ri {
|
|
|
7244
7314
|
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}`);
|
|
7245
7315
|
}
|
|
7246
7316
|
interpolate(e, t, s, n) {
|
|
7247
|
-
let
|
|
7317
|
+
let a, c, o;
|
|
7248
7318
|
const g = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, d = (p) => {
|
|
7249
7319
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
7250
7320
|
const _ = ne(t, g, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
@@ -7265,34 +7335,34 @@ class Ri {
|
|
|
7265
7335
|
const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, h = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
7266
7336
|
return [{
|
|
7267
7337
|
regex: this.regexpUnescape,
|
|
7268
|
-
safeValue: (p) =>
|
|
7338
|
+
safeValue: (p) => V1(p)
|
|
7269
7339
|
}, {
|
|
7270
7340
|
regex: this.regexp,
|
|
7271
|
-
safeValue: (p) => this.escapeValue ?
|
|
7341
|
+
safeValue: (p) => this.escapeValue ? V1(this.escape(p)) : V1(p)
|
|
7272
7342
|
}].forEach((p) => {
|
|
7273
|
-
for (
|
|
7274
|
-
const w =
|
|
7343
|
+
for (o = 0; a = p.regex.exec(e); ) {
|
|
7344
|
+
const w = a[1].trim();
|
|
7275
7345
|
if (c = d(w), c === void 0)
|
|
7276
7346
|
if (typeof l == "function") {
|
|
7277
|
-
const m = l(e,
|
|
7347
|
+
const m = l(e, a, n);
|
|
7278
7348
|
c = R(m) ? m : "";
|
|
7279
7349
|
} else if (n && Object.prototype.hasOwnProperty.call(n, w))
|
|
7280
7350
|
c = "";
|
|
7281
7351
|
else if (h) {
|
|
7282
|
-
c =
|
|
7352
|
+
c = a[0];
|
|
7283
7353
|
continue;
|
|
7284
7354
|
} else
|
|
7285
7355
|
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), c = "";
|
|
7286
7356
|
else !R(c) && !this.useRawValueToEscape && (c = J1(c));
|
|
7287
7357
|
const k = p.safeValue(c);
|
|
7288
|
-
if (e = e.replace(
|
|
7358
|
+
if (e = e.replace(a[0], k), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
7289
7359
|
break;
|
|
7290
7360
|
}
|
|
7291
7361
|
}), e;
|
|
7292
7362
|
}
|
|
7293
7363
|
nest(e, t) {
|
|
7294
|
-
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n,
|
|
7295
|
-
const
|
|
7364
|
+
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, a, c;
|
|
7365
|
+
const o = (g, d) => {
|
|
7296
7366
|
const l = this.nestingOptionsSeparator;
|
|
7297
7367
|
if (g.indexOf(l) < 0) return g;
|
|
7298
7368
|
const h = g.split(new RegExp(`${l}[ ]*{`));
|
|
@@ -7320,16 +7390,16 @@ class Ri {
|
|
|
7320
7390
|
const l = n[1].split(this.formatSeparator).map((h) => h.trim());
|
|
7321
7391
|
n[1] = l.shift(), g = l, d = !0;
|
|
7322
7392
|
}
|
|
7323
|
-
if (
|
|
7324
|
-
R(
|
|
7393
|
+
if (a = t(o.call(this, n[1].trim(), c), c), a && n[0] === e && !R(a)) return a;
|
|
7394
|
+
R(a) || (a = J1(a)), a || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), a = ""), d && (a = g.reduce((l, h) => this.format(l, h, s.lng, {
|
|
7325
7395
|
...s,
|
|
7326
7396
|
interpolationkey: n[1].trim()
|
|
7327
|
-
}),
|
|
7397
|
+
}), a.trim())), e = e.replace(n[0], a), this.regexp.lastIndex = 0;
|
|
7328
7398
|
}
|
|
7329
7399
|
return e;
|
|
7330
7400
|
}
|
|
7331
7401
|
}
|
|
7332
|
-
const
|
|
7402
|
+
const y0 = (i) => {
|
|
7333
7403
|
let e = i.toLowerCase().trim();
|
|
7334
7404
|
const t = {};
|
|
7335
7405
|
if (i.indexOf("(") > -1) {
|
|
@@ -7338,7 +7408,7 @@ const Mi = (i) => {
|
|
|
7338
7408
|
const n = s[1].substring(0, s[1].length - 1);
|
|
7339
7409
|
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) => {
|
|
7340
7410
|
if (c) {
|
|
7341
|
-
const [
|
|
7411
|
+
const [o, ...g] = c.split(":"), d = g.join(":").trim().replace(/^'+|'+$/g, ""), l = o.trim();
|
|
7342
7412
|
t[l] || (t[l] = d), d === "false" && (t[l] = !1), d === "true" && (t[l] = !0), isNaN(d) || (t[l] = parseInt(d, 10));
|
|
7343
7413
|
}
|
|
7344
7414
|
});
|
|
@@ -7350,17 +7420,17 @@ const Mi = (i) => {
|
|
|
7350
7420
|
}, c1 = (i) => {
|
|
7351
7421
|
const e = {};
|
|
7352
7422
|
return (t, s, n) => {
|
|
7353
|
-
let
|
|
7354
|
-
n && n.interpolationkey && n.formatParams && n.formatParams[n.interpolationkey] && n[n.interpolationkey] && (
|
|
7355
|
-
...
|
|
7423
|
+
let a = n;
|
|
7424
|
+
n && n.interpolationkey && n.formatParams && n.formatParams[n.interpolationkey] && n[n.interpolationkey] && (a = {
|
|
7425
|
+
...a,
|
|
7356
7426
|
[n.interpolationkey]: void 0
|
|
7357
7427
|
});
|
|
7358
|
-
const c = s + JSON.stringify(
|
|
7359
|
-
let
|
|
7360
|
-
return
|
|
7428
|
+
const c = s + JSON.stringify(a);
|
|
7429
|
+
let o = e[c];
|
|
7430
|
+
return o || (o = i(b1(s), n), e[c] = o), o(t);
|
|
7361
7431
|
};
|
|
7362
7432
|
};
|
|
7363
|
-
class
|
|
7433
|
+
class E0 {
|
|
7364
7434
|
constructor() {
|
|
7365
7435
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7366
7436
|
this.logger = X.create("formatter"), this.options = e, this.formats = {
|
|
@@ -7368,32 +7438,32 @@ class bi {
|
|
|
7368
7438
|
const n = new Intl.NumberFormat(t, {
|
|
7369
7439
|
...s
|
|
7370
7440
|
});
|
|
7371
|
-
return (
|
|
7441
|
+
return (a) => n.format(a);
|
|
7372
7442
|
}),
|
|
7373
7443
|
currency: c1((t, s) => {
|
|
7374
7444
|
const n = new Intl.NumberFormat(t, {
|
|
7375
7445
|
...s,
|
|
7376
7446
|
style: "currency"
|
|
7377
7447
|
});
|
|
7378
|
-
return (
|
|
7448
|
+
return (a) => n.format(a);
|
|
7379
7449
|
}),
|
|
7380
7450
|
datetime: c1((t, s) => {
|
|
7381
7451
|
const n = new Intl.DateTimeFormat(t, {
|
|
7382
7452
|
...s
|
|
7383
7453
|
});
|
|
7384
|
-
return (
|
|
7454
|
+
return (a) => n.format(a);
|
|
7385
7455
|
}),
|
|
7386
7456
|
relativetime: c1((t, s) => {
|
|
7387
7457
|
const n = new Intl.RelativeTimeFormat(t, {
|
|
7388
7458
|
...s
|
|
7389
7459
|
});
|
|
7390
|
-
return (
|
|
7460
|
+
return (a) => n.format(a, s.range || "day");
|
|
7391
7461
|
}),
|
|
7392
7462
|
list: c1((t, s) => {
|
|
7393
7463
|
const n = new Intl.ListFormat(t, {
|
|
7394
7464
|
...s
|
|
7395
7465
|
});
|
|
7396
|
-
return (
|
|
7466
|
+
return (a) => n.format(a);
|
|
7397
7467
|
})
|
|
7398
7468
|
}, this.init(e);
|
|
7399
7469
|
}
|
|
@@ -7411,21 +7481,21 @@ class bi {
|
|
|
7411
7481
|
}
|
|
7412
7482
|
format(e, t, s) {
|
|
7413
7483
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
7414
|
-
const
|
|
7415
|
-
if (
|
|
7416
|
-
const
|
|
7417
|
-
|
|
7484
|
+
const a = t.split(this.formatSeparator);
|
|
7485
|
+
if (a.length > 1 && a[0].indexOf("(") > 1 && a[0].indexOf(")") < 0 && a.find((o) => o.indexOf(")") > -1)) {
|
|
7486
|
+
const o = a.findIndex((g) => g.indexOf(")") > -1);
|
|
7487
|
+
a[0] = [a[0], ...a.splice(1, o)].join(this.formatSeparator);
|
|
7418
7488
|
}
|
|
7419
|
-
return
|
|
7489
|
+
return a.reduce((o, g) => {
|
|
7420
7490
|
const {
|
|
7421
7491
|
formatName: d,
|
|
7422
7492
|
formatOptions: l
|
|
7423
|
-
} =
|
|
7493
|
+
} = y0(g);
|
|
7424
7494
|
if (this.formats[d]) {
|
|
7425
|
-
let h =
|
|
7495
|
+
let h = o;
|
|
7426
7496
|
try {
|
|
7427
7497
|
const u = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = u.locale || u.lng || n.locale || n.lng || s;
|
|
7428
|
-
h = this.formats[d](
|
|
7498
|
+
h = this.formats[d](o, p, {
|
|
7429
7499
|
...l,
|
|
7430
7500
|
...n,
|
|
7431
7501
|
...u
|
|
@@ -7436,57 +7506,57 @@ class bi {
|
|
|
7436
7506
|
return h;
|
|
7437
7507
|
} else
|
|
7438
7508
|
this.logger.warn(`there was no format function for ${d}`);
|
|
7439
|
-
return
|
|
7509
|
+
return o;
|
|
7440
7510
|
}, e);
|
|
7441
7511
|
}
|
|
7442
7512
|
}
|
|
7443
|
-
const
|
|
7513
|
+
const _0 = (i, e) => {
|
|
7444
7514
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
|
7445
7515
|
};
|
|
7446
|
-
class
|
|
7516
|
+
class H0 extends H1 {
|
|
7447
7517
|
constructor(e, t, s) {
|
|
7448
7518
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
7449
7519
|
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = X.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = n.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = n.maxRetries >= 0 ? n.maxRetries : 5, this.retryTimeout = n.retryTimeout >= 1 ? n.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, n.backend, n);
|
|
7450
7520
|
}
|
|
7451
7521
|
queueLoad(e, t, s, n) {
|
|
7452
|
-
const
|
|
7522
|
+
const a = {}, c = {}, o = {}, g = {};
|
|
7453
7523
|
return e.forEach((d) => {
|
|
7454
7524
|
let l = !0;
|
|
7455
7525
|
t.forEach((h) => {
|
|
7456
7526
|
const u = `${d}|${h}`;
|
|
7457
|
-
!s.reload && this.store.hasResourceBundle(d, h) ? this.state[u] = 2 : this.state[u] < 0 || (this.state[u] === 1 ? c[u] === void 0 && (c[u] = !0) : (this.state[u] = 1, l = !1, c[u] === void 0 && (c[u] = !0),
|
|
7458
|
-
}), l || (
|
|
7459
|
-
}), (Object.keys(
|
|
7527
|
+
!s.reload && this.store.hasResourceBundle(d, h) ? this.state[u] = 2 : this.state[u] < 0 || (this.state[u] === 1 ? c[u] === void 0 && (c[u] = !0) : (this.state[u] = 1, l = !1, c[u] === void 0 && (c[u] = !0), a[u] === void 0 && (a[u] = !0), g[h] === void 0 && (g[h] = !0)));
|
|
7528
|
+
}), l || (o[d] = !0);
|
|
7529
|
+
}), (Object.keys(a).length || Object.keys(c).length) && this.queue.push({
|
|
7460
7530
|
pending: c,
|
|
7461
7531
|
pendingCount: Object.keys(c).length,
|
|
7462
7532
|
loaded: {},
|
|
7463
7533
|
errors: [],
|
|
7464
7534
|
callback: n
|
|
7465
7535
|
}), {
|
|
7466
|
-
toLoad: Object.keys(
|
|
7536
|
+
toLoad: Object.keys(a),
|
|
7467
7537
|
pending: Object.keys(c),
|
|
7468
|
-
toLoadLanguages: Object.keys(
|
|
7538
|
+
toLoadLanguages: Object.keys(o),
|
|
7469
7539
|
toLoadNamespaces: Object.keys(g)
|
|
7470
7540
|
};
|
|
7471
7541
|
}
|
|
7472
7542
|
loaded(e, t, s) {
|
|
7473
|
-
const n = e.split("|"),
|
|
7474
|
-
t && this.emit("failedLoading",
|
|
7543
|
+
const n = e.split("|"), a = n[0], c = n[1];
|
|
7544
|
+
t && this.emit("failedLoading", a, c, t), !t && s && this.store.addResourceBundle(a, c, s, void 0, void 0, {
|
|
7475
7545
|
skipCopy: !0
|
|
7476
7546
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
|
7477
|
-
const
|
|
7547
|
+
const o = {};
|
|
7478
7548
|
this.queue.forEach((g) => {
|
|
7479
|
-
|
|
7480
|
-
|
|
7549
|
+
d0(g.loaded, [a], c), _0(g, e), t && g.errors.push(t), g.pendingCount === 0 && !g.done && (Object.keys(g.loaded).forEach((d) => {
|
|
7550
|
+
o[d] || (o[d] = {});
|
|
7481
7551
|
const l = g.loaded[d];
|
|
7482
7552
|
l.length && l.forEach((h) => {
|
|
7483
|
-
|
|
7553
|
+
o[d][h] === void 0 && (o[d][h] = !0);
|
|
7484
7554
|
});
|
|
7485
7555
|
}), g.done = !0, g.errors.length ? g.callback(g.errors) : g.callback());
|
|
7486
|
-
}), this.emit("loaded",
|
|
7556
|
+
}), this.emit("loaded", o), this.queue = this.queue.filter((g) => !g.done);
|
|
7487
7557
|
}
|
|
7488
7558
|
read(e, t, s) {
|
|
7489
|
-
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0,
|
|
7559
|
+
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, c = arguments.length > 5 ? arguments[5] : void 0;
|
|
7490
7560
|
if (!e.length) return c(null, {});
|
|
7491
7561
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
7492
7562
|
this.waitingReads.push({
|
|
@@ -7494,21 +7564,21 @@ class Ei extends H1 {
|
|
|
7494
7564
|
ns: t,
|
|
7495
7565
|
fcName: s,
|
|
7496
7566
|
tried: n,
|
|
7497
|
-
wait:
|
|
7567
|
+
wait: a,
|
|
7498
7568
|
callback: c
|
|
7499
7569
|
});
|
|
7500
7570
|
return;
|
|
7501
7571
|
}
|
|
7502
7572
|
this.readingCalls++;
|
|
7503
|
-
const
|
|
7573
|
+
const o = (d, l) => {
|
|
7504
7574
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
7505
7575
|
const h = this.waitingReads.shift();
|
|
7506
7576
|
this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
|
|
7507
7577
|
}
|
|
7508
7578
|
if (d && l && n < this.maxRetries) {
|
|
7509
7579
|
setTimeout(() => {
|
|
7510
|
-
this.read.call(this, e, t, s, n + 1,
|
|
7511
|
-
},
|
|
7580
|
+
this.read.call(this, e, t, s, n + 1, a * 2, c);
|
|
7581
|
+
}, a);
|
|
7512
7582
|
return;
|
|
7513
7583
|
}
|
|
7514
7584
|
c(d, l);
|
|
@@ -7516,23 +7586,23 @@ class Ei extends H1 {
|
|
|
7516
7586
|
if (g.length === 2) {
|
|
7517
7587
|
try {
|
|
7518
7588
|
const d = g(e, t);
|
|
7519
|
-
d && typeof d.then == "function" ? d.then((l) =>
|
|
7589
|
+
d && typeof d.then == "function" ? d.then((l) => o(null, l)).catch(o) : o(null, d);
|
|
7520
7590
|
} catch (d) {
|
|
7521
|
-
|
|
7591
|
+
o(d);
|
|
7522
7592
|
}
|
|
7523
7593
|
return;
|
|
7524
7594
|
}
|
|
7525
|
-
return g(e, t,
|
|
7595
|
+
return g(e, t, o);
|
|
7526
7596
|
}
|
|
7527
7597
|
prepareLoading(e, t) {
|
|
7528
7598
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = arguments.length > 3 ? arguments[3] : void 0;
|
|
7529
7599
|
if (!this.backend)
|
|
7530
7600
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), n && n();
|
|
7531
7601
|
R(e) && (e = this.languageUtils.toResolveHierarchy(e)), R(t) && (t = [t]);
|
|
7532
|
-
const
|
|
7533
|
-
if (!
|
|
7534
|
-
return
|
|
7535
|
-
|
|
7602
|
+
const a = this.queueLoad(e, t, s, n);
|
|
7603
|
+
if (!a.toLoad.length)
|
|
7604
|
+
return a.pending.length || n(), null;
|
|
7605
|
+
a.toLoad.forEach((c) => {
|
|
7536
7606
|
this.loadOne(c);
|
|
7537
7607
|
});
|
|
7538
7608
|
}
|
|
@@ -7546,13 +7616,13 @@ class Ei extends H1 {
|
|
|
7546
7616
|
}
|
|
7547
7617
|
loadOne(e) {
|
|
7548
7618
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
7549
|
-
const s = e.split("|"), n = s[0],
|
|
7550
|
-
this.read(n,
|
|
7551
|
-
c && this.logger.warn(`${t}loading namespace ${
|
|
7619
|
+
const s = e.split("|"), n = s[0], a = s[1];
|
|
7620
|
+
this.read(n, a, "read", void 0, void 0, (c, o) => {
|
|
7621
|
+
c && this.logger.warn(`${t}loading namespace ${a} for language ${n} failed`, c), !c && o && this.logger.log(`${t}loaded namespace ${a} for language ${n}`, o), this.loaded(e, c, o);
|
|
7552
7622
|
});
|
|
7553
7623
|
}
|
|
7554
|
-
saveMissing(e, t, s, n,
|
|
7555
|
-
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {},
|
|
7624
|
+
saveMissing(e, t, s, n, a) {
|
|
7625
|
+
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, o = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
|
7556
7626
|
};
|
|
7557
7627
|
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
|
|
7558
7628
|
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!!!");
|
|
@@ -7562,17 +7632,17 @@ class Ei extends H1 {
|
|
|
7562
7632
|
if (this.backend && this.backend.create) {
|
|
7563
7633
|
const g = {
|
|
7564
7634
|
...c,
|
|
7565
|
-
isUpdate:
|
|
7635
|
+
isUpdate: a
|
|
7566
7636
|
}, d = this.backend.create.bind(this.backend);
|
|
7567
7637
|
if (d.length < 6)
|
|
7568
7638
|
try {
|
|
7569
7639
|
let l;
|
|
7570
|
-
d.length === 5 ? l = d(e, t, s, n, g) : l = d(e, t, s, n), l && typeof l.then == "function" ? l.then((h) =>
|
|
7640
|
+
d.length === 5 ? l = d(e, t, s, n, g) : l = d(e, t, s, n), l && typeof l.then == "function" ? l.then((h) => o(null, h)).catch(o) : o(null, l);
|
|
7571
7641
|
} catch (l) {
|
|
7572
|
-
|
|
7642
|
+
o(l);
|
|
7573
7643
|
}
|
|
7574
7644
|
else
|
|
7575
|
-
d(e, t, s, n,
|
|
7645
|
+
d(e, t, s, n, o, g);
|
|
7576
7646
|
}
|
|
7577
7647
|
!e || !e[0] || this.store.addResource(e[0], t, s, n);
|
|
7578
7648
|
}
|
|
@@ -7635,7 +7705,7 @@ const re = () => ({
|
|
|
7635
7705
|
skipOnVariables: !0
|
|
7636
7706
|
}
|
|
7637
7707
|
}), oe = (i) => (R(i.ns) && (i.ns = [i.ns]), R(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), R(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), x1 = () => {
|
|
7638
|
-
},
|
|
7708
|
+
}, I0 = (i) => {
|
|
7639
7709
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
|
7640
7710
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
|
7641
7711
|
});
|
|
@@ -7645,7 +7715,7 @@ class w1 extends H1 {
|
|
|
7645
7715
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
7646
7716
|
if (super(), this.options = oe(e), this.services = {}, this.logger = X, this.modules = {
|
|
7647
7717
|
external: []
|
|
7648
|
-
},
|
|
7718
|
+
}, I0(this), t && !this.isInitialized && !e.isClone) {
|
|
7649
7719
|
if (!this.options.initImmediate)
|
|
7650
7720
|
return this.init(e, t), this;
|
|
7651
7721
|
setTimeout(() => {
|
|
@@ -7666,25 +7736,25 @@ class w1 extends H1 {
|
|
|
7666
7736
|
...n.interpolation,
|
|
7667
7737
|
...this.options.interpolation
|
|
7668
7738
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
7669
|
-
const
|
|
7739
|
+
const a = (l) => l ? typeof l == "function" ? new l() : l : null;
|
|
7670
7740
|
if (!this.options.isClone) {
|
|
7671
|
-
this.modules.logger ? X.init(
|
|
7741
|
+
this.modules.logger ? X.init(a(this.modules.logger), this.options) : X.init(null, this.options);
|
|
7672
7742
|
let l;
|
|
7673
|
-
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l =
|
|
7743
|
+
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = E0);
|
|
7674
7744
|
const h = new ie(this.options);
|
|
7675
7745
|
this.store = new ee(this.options.resources, this.options);
|
|
7676
7746
|
const u = this.services;
|
|
7677
|
-
u.logger = X, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new
|
|
7747
|
+
u.logger = X, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new M0(h, {
|
|
7678
7748
|
prepend: this.options.pluralSeparator,
|
|
7679
7749
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
7680
7750
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
7681
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter =
|
|
7751
|
+
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = a(l), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new b0(this.options), u.utils = {
|
|
7682
7752
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
7683
|
-
}, u.backendConnector = new
|
|
7753
|
+
}, u.backendConnector = new H0(a(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
|
|
7684
7754
|
for (var w = arguments.length, k = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7685
7755
|
k[m - 1] = arguments[m];
|
|
7686
7756
|
e.emit(p, ...k);
|
|
7687
|
-
}), this.modules.languageDetector && (u.languageDetector =
|
|
7757
|
+
}), this.modules.languageDetector && (u.languageDetector = a(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = a(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new E1(this.services, this.options), this.translator.on("*", function(p) {
|
|
7688
7758
|
for (var w = arguments.length, k = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7689
7759
|
k[m - 1] = arguments[m];
|
|
7690
7760
|
e.emit(p, ...k);
|
|
@@ -7719,22 +7789,22 @@ class w1 extends H1 {
|
|
|
7719
7789
|
const n = R(e) ? e : this.language;
|
|
7720
7790
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
7721
7791
|
if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
|
7722
|
-
const
|
|
7723
|
-
if (!
|
|
7724
|
-
this.services.languageUtils.toResolveHierarchy(
|
|
7725
|
-
d !== "cimode" &&
|
|
7792
|
+
const a = [], c = (o) => {
|
|
7793
|
+
if (!o || o === "cimode") return;
|
|
7794
|
+
this.services.languageUtils.toResolveHierarchy(o).forEach((d) => {
|
|
7795
|
+
d !== "cimode" && a.indexOf(d) < 0 && a.push(d);
|
|
7726
7796
|
});
|
|
7727
7797
|
};
|
|
7728
|
-
n ? c(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((g) => c(g)), this.options.preload && this.options.preload.forEach((
|
|
7729
|
-
!
|
|
7798
|
+
n ? c(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((g) => c(g)), this.options.preload && this.options.preload.forEach((o) => c(o)), this.services.backendConnector.load(a, this.options.ns, (o) => {
|
|
7799
|
+
!o && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(o);
|
|
7730
7800
|
});
|
|
7731
7801
|
} else
|
|
7732
7802
|
s(null);
|
|
7733
7803
|
}
|
|
7734
7804
|
reloadResources(e, t, s) {
|
|
7735
7805
|
const n = C1();
|
|
7736
|
-
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = x1), this.services.backendConnector.reload(e, t, (
|
|
7737
|
-
n.resolve(), s(
|
|
7806
|
+
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = x1), this.services.backendConnector.reload(e, t, (a) => {
|
|
7807
|
+
n.resolve(), s(a);
|
|
7738
7808
|
}), n;
|
|
7739
7809
|
}
|
|
7740
7810
|
use(e) {
|
|
@@ -7757,41 +7827,41 @@ class w1 extends H1 {
|
|
|
7757
7827
|
this.isLanguageChangingTo = e;
|
|
7758
7828
|
const n = C1();
|
|
7759
7829
|
this.emit("languageChanging", e);
|
|
7760
|
-
const
|
|
7830
|
+
const a = (g) => {
|
|
7761
7831
|
this.language = g, this.languages = this.services.languageUtils.toResolveHierarchy(g), this.resolvedLanguage = void 0, this.setResolvedLanguage(g);
|
|
7762
7832
|
}, c = (g, d) => {
|
|
7763
|
-
d ? (
|
|
7833
|
+
d ? (a(d), this.translator.changeLanguage(d), this.isLanguageChangingTo = void 0, this.emit("languageChanged", d), this.logger.log("languageChanged", d)) : this.isLanguageChangingTo = void 0, n.resolve(function() {
|
|
7764
7834
|
return s.t(...arguments);
|
|
7765
7835
|
}), t && t(g, function() {
|
|
7766
7836
|
return s.t(...arguments);
|
|
7767
7837
|
});
|
|
7768
|
-
},
|
|
7838
|
+
}, o = (g) => {
|
|
7769
7839
|
!e && !g && this.services.languageDetector && (g = []);
|
|
7770
7840
|
const d = R(g) ? g : this.services.languageUtils.getBestMatchFromCodes(g);
|
|
7771
|
-
d && (this.language ||
|
|
7841
|
+
d && (this.language || a(d), this.translator.language || this.translator.changeLanguage(d), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(d)), this.loadResources(d, (l) => {
|
|
7772
7842
|
c(l, d);
|
|
7773
7843
|
});
|
|
7774
7844
|
};
|
|
7775
|
-
return !e && this.services.languageDetector && !this.services.languageDetector.async ?
|
|
7845
|
+
return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), n;
|
|
7776
7846
|
}
|
|
7777
7847
|
getFixedT(e, t, s) {
|
|
7778
7848
|
var n = this;
|
|
7779
|
-
const
|
|
7849
|
+
const a = function(c, o) {
|
|
7780
7850
|
let g;
|
|
7781
|
-
if (typeof
|
|
7851
|
+
if (typeof o != "object") {
|
|
7782
7852
|
for (var d = arguments.length, l = new Array(d > 2 ? d - 2 : 0), h = 2; h < d; h++)
|
|
7783
7853
|
l[h - 2] = arguments[h];
|
|
7784
|
-
g = n.options.overloadTranslationOptionHandler([c,
|
|
7854
|
+
g = n.options.overloadTranslationOptionHandler([c, o].concat(l));
|
|
7785
7855
|
} else
|
|
7786
7856
|
g = {
|
|
7787
|
-
...
|
|
7857
|
+
...o
|
|
7788
7858
|
};
|
|
7789
|
-
g.lng = g.lng ||
|
|
7859
|
+
g.lng = g.lng || a.lng, g.lngs = g.lngs || a.lngs, g.ns = g.ns || a.ns, g.keyPrefix !== "" && (g.keyPrefix = g.keyPrefix || s || a.keyPrefix);
|
|
7790
7860
|
const u = n.options.keySeparator || ".";
|
|
7791
7861
|
let p;
|
|
7792
7862
|
return g.keyPrefix && Array.isArray(c) ? p = c.map((w) => `${g.keyPrefix}${u}${w}`) : p = g.keyPrefix ? `${g.keyPrefix}${u}${c}` : c, n.t(p, g);
|
|
7793
7863
|
};
|
|
7794
|
-
return R(e) ?
|
|
7864
|
+
return R(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = s, a;
|
|
7795
7865
|
}
|
|
7796
7866
|
t() {
|
|
7797
7867
|
return this.translator && this.translator.translate(...arguments);
|
|
@@ -7808,17 +7878,17 @@ class w1 extends H1 {
|
|
|
7808
7878
|
return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
|
|
7809
7879
|
if (!this.languages || !this.languages.length)
|
|
7810
7880
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
7811
|
-
const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1,
|
|
7881
|
+
const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
|
|
7812
7882
|
if (s.toLowerCase() === "cimode") return !0;
|
|
7813
|
-
const c = (
|
|
7814
|
-
const d = this.services.backendConnector.state[`${
|
|
7883
|
+
const c = (o, g) => {
|
|
7884
|
+
const d = this.services.backendConnector.state[`${o}|${g}`];
|
|
7815
7885
|
return d === -1 || d === 0 || d === 2;
|
|
7816
7886
|
};
|
|
7817
7887
|
if (t.precheck) {
|
|
7818
|
-
const
|
|
7819
|
-
if (
|
|
7888
|
+
const o = t.precheck(this, c);
|
|
7889
|
+
if (o !== void 0) return o;
|
|
7820
7890
|
}
|
|
7821
|
-
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!n || c(
|
|
7891
|
+
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!n || c(a, e)));
|
|
7822
7892
|
}
|
|
7823
7893
|
loadNamespaces(e, t) {
|
|
7824
7894
|
const s = C1();
|
|
@@ -7831,8 +7901,8 @@ class w1 extends H1 {
|
|
|
7831
7901
|
loadLanguages(e, t) {
|
|
7832
7902
|
const s = C1();
|
|
7833
7903
|
R(e) && (e = [e]);
|
|
7834
|
-
const n = this.options.preload || [],
|
|
7835
|
-
return
|
|
7904
|
+
const n = this.options.preload || [], a = e.filter((c) => n.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
|
|
7905
|
+
return a.length ? (this.options.preload = n.concat(a), this.loadResources((c) => {
|
|
7836
7906
|
s.resolve(), t && t(c);
|
|
7837
7907
|
}), s) : (t && t(), Promise.resolve());
|
|
7838
7908
|
}
|
|
@@ -7853,20 +7923,20 @@ class w1 extends H1 {
|
|
|
7853
7923
|
...this.options,
|
|
7854
7924
|
...e,
|
|
7855
7925
|
isClone: !0
|
|
7856
|
-
},
|
|
7857
|
-
return (e.debug !== void 0 || e.prefix !== void 0) && (
|
|
7858
|
-
o
|
|
7859
|
-
}),
|
|
7926
|
+
}, a = new w1(n);
|
|
7927
|
+
return (e.debug !== void 0 || e.prefix !== void 0) && (a.logger = a.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
|
|
7928
|
+
a[o] = this[o];
|
|
7929
|
+
}), a.services = {
|
|
7860
7930
|
...this.services
|
|
7861
|
-
},
|
|
7862
|
-
hasLoadedNamespace:
|
|
7863
|
-
}, s && (
|
|
7931
|
+
}, a.services.utils = {
|
|
7932
|
+
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
7933
|
+
}, s && (a.store = new ee(this.store.data, n), a.services.resourceStore = a.store), a.translator = new E1(a.services, n), a.translator.on("*", function(o) {
|
|
7864
7934
|
for (var g = arguments.length, d = new Array(g > 1 ? g - 1 : 0), l = 1; l < g; l++)
|
|
7865
7935
|
d[l - 1] = arguments[l];
|
|
7866
|
-
|
|
7867
|
-
}),
|
|
7868
|
-
hasLoadedNamespace:
|
|
7869
|
-
},
|
|
7936
|
+
a.emit(o, ...d);
|
|
7937
|
+
}), a.init(n, t), a.translator.options = n, a.translator.backendConnector.services.utils = {
|
|
7938
|
+
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
7939
|
+
}, a;
|
|
7870
7940
|
}
|
|
7871
7941
|
toJSON() {
|
|
7872
7942
|
return {
|
|
@@ -7894,41 +7964,41 @@ Y.setDefaultNamespace;
|
|
|
7894
7964
|
Y.hasLoadedNamespace;
|
|
7895
7965
|
Y.loadNamespaces;
|
|
7896
7966
|
Y.loadLanguages;
|
|
7897
|
-
const
|
|
7898
|
-
archived:
|
|
7899
|
-
deleted:
|
|
7900
|
-
},
|
|
7901
|
-
archived:
|
|
7902
|
-
deleted:
|
|
7967
|
+
const O0 = "Archived", V0 = "Deleted", S0 = {
|
|
7968
|
+
archived: O0,
|
|
7969
|
+
deleted: V0
|
|
7970
|
+
}, A0 = "Заархивирован", T0 = "Удалён", Z0 = {
|
|
7971
|
+
archived: A0,
|
|
7972
|
+
deleted: T0
|
|
7903
7973
|
};
|
|
7904
|
-
Y.use(
|
|
7974
|
+
Y.use(s0).init({
|
|
7905
7975
|
defaultNS: "common",
|
|
7906
7976
|
lng: "en",
|
|
7907
7977
|
resources: {
|
|
7908
7978
|
en: {
|
|
7909
|
-
common:
|
|
7979
|
+
common: S0
|
|
7910
7980
|
},
|
|
7911
7981
|
ru: {
|
|
7912
|
-
common:
|
|
7982
|
+
common: Z0
|
|
7913
7983
|
}
|
|
7914
7984
|
}
|
|
7915
7985
|
});
|
|
7916
|
-
const
|
|
7986
|
+
const $0 = k1(
|
|
7917
7987
|
({
|
|
7918
7988
|
fetchParams: i,
|
|
7919
7989
|
mode: e = void 0,
|
|
7920
7990
|
placeholder: t,
|
|
7921
7991
|
disabled: s,
|
|
7922
7992
|
value: n,
|
|
7923
|
-
onChange:
|
|
7993
|
+
onChange: a,
|
|
7924
7994
|
onError: c,
|
|
7925
|
-
allowEmpty:
|
|
7995
|
+
allowEmpty: o = !1,
|
|
7926
7996
|
showAvatar: g = !1,
|
|
7927
7997
|
clearable: d,
|
|
7928
7998
|
required: l,
|
|
7929
7999
|
error: h
|
|
7930
8000
|
}, u) => {
|
|
7931
|
-
const { axiosPeople: p, locale: w } = r1(Ee), { t: k } =
|
|
8001
|
+
const { axiosPeople: p, locale: w } = r1(Ee), { t: k } = l0("common", { lng: w }), [m, _] = T([]), [M, V] = T(!0), f = q(m), N = q(null);
|
|
7932
8002
|
if (_1(u, () => N.current), !p)
|
|
7933
8003
|
throw new Error(
|
|
7934
8004
|
`UserSelect requires "axiosPeople" to fetch users.
|
|
@@ -7946,7 +8016,7 @@ const Gi = k1(
|
|
|
7946
8016
|
limit: D,
|
|
7947
8017
|
search: I
|
|
7948
8018
|
}) => {
|
|
7949
|
-
var
|
|
8019
|
+
var S, Z, G;
|
|
7950
8020
|
try {
|
|
7951
8021
|
const U = await p.post("v1/users/search", {
|
|
7952
8022
|
offset: H,
|
|
@@ -7956,17 +8026,17 @@ const Gi = k1(
|
|
|
7956
8026
|
includeCount: !0
|
|
7957
8027
|
}), { data: O, metadata: K } = U.data;
|
|
7958
8028
|
return {
|
|
7959
|
-
options: O.map((
|
|
7960
|
-
value:
|
|
7961
|
-
label: x(
|
|
7962
|
-
image: g ?
|
|
8029
|
+
options: O.map((W) => ({
|
|
8030
|
+
value: W.id,
|
|
8031
|
+
label: x(W),
|
|
8032
|
+
image: g ? W.avatarUrl : void 0
|
|
7963
8033
|
})),
|
|
7964
8034
|
count: K.count
|
|
7965
8035
|
};
|
|
7966
8036
|
} catch (U) {
|
|
7967
8037
|
return c && c({
|
|
7968
|
-
status: ((
|
|
7969
|
-
message: ((
|
|
8038
|
+
status: ((S = U.response) == null ? void 0 : S.status) ?? 500,
|
|
8039
|
+
message: ((G = (Z = U.response) == null ? void 0 : Z.data) == null ? void 0 : G.message) ?? "Error while fetching options"
|
|
7970
8040
|
}), {
|
|
7971
8041
|
options: [],
|
|
7972
8042
|
count: 0
|
|
@@ -7976,19 +8046,19 @@ const Gi = k1(
|
|
|
7976
8046
|
[p, i, x, g, c]
|
|
7977
8047
|
), P = $(
|
|
7978
8048
|
async (H) => {
|
|
7979
|
-
var D, I,
|
|
8049
|
+
var D, I, S;
|
|
7980
8050
|
try {
|
|
7981
8051
|
const Z = H.filter(
|
|
7982
8052
|
(O) => !f.current.some((K) => K.value === O)
|
|
7983
8053
|
);
|
|
7984
|
-
let
|
|
7985
|
-
Z.length && (
|
|
8054
|
+
let G = [];
|
|
8055
|
+
Z.length && (G = (await p.post("v1/users/search", {
|
|
7986
8056
|
filters: {
|
|
7987
8057
|
id: Z,
|
|
7988
8058
|
status: [R1.ACTIVE, R1.ARCHIVED]
|
|
7989
8059
|
}
|
|
7990
8060
|
})).data.data);
|
|
7991
|
-
const U =
|
|
8061
|
+
const U = G.map((O) => ({
|
|
7992
8062
|
value: O.id,
|
|
7993
8063
|
label: x(O),
|
|
7994
8064
|
image: g ? O.avatarUrl : void 0
|
|
@@ -7997,7 +8067,7 @@ const Gi = k1(
|
|
|
7997
8067
|
} catch (Z) {
|
|
7998
8068
|
return c && c({
|
|
7999
8069
|
status: ((D = Z.response) == null ? void 0 : D.status) ?? 500,
|
|
8000
|
-
message: ((
|
|
8070
|
+
message: ((S = (I = Z.response) == null ? void 0 : I.data) == null ? void 0 : S.message) ?? "Error while fetching selected items"
|
|
8001
8071
|
}), [];
|
|
8002
8072
|
}
|
|
8003
8073
|
},
|
|
@@ -8010,12 +8080,12 @@ const Gi = k1(
|
|
|
8010
8080
|
(H = N.current) == null || H.refetchOptions();
|
|
8011
8081
|
}, [i]), j(() => {
|
|
8012
8082
|
if (!n) {
|
|
8013
|
-
|
|
8083
|
+
V(!1);
|
|
8014
8084
|
return;
|
|
8015
8085
|
}
|
|
8016
8086
|
(async () => {
|
|
8017
8087
|
const D = Array.isArray(n) ? n : [n], I = await P(D);
|
|
8018
|
-
_(I),
|
|
8088
|
+
_(I), V(!1);
|
|
8019
8089
|
})();
|
|
8020
8090
|
}, [P, n]);
|
|
8021
8091
|
const J = $(
|
|
@@ -8024,22 +8094,22 @@ const Gi = k1(
|
|
|
8024
8094
|
offset: D,
|
|
8025
8095
|
search: I
|
|
8026
8096
|
}) => {
|
|
8027
|
-
const { count:
|
|
8097
|
+
const { count: S, ...Z } = await v({
|
|
8028
8098
|
offset: D,
|
|
8029
8099
|
limit: H,
|
|
8030
8100
|
search: I
|
|
8031
8101
|
});
|
|
8032
|
-
let
|
|
8033
|
-
return
|
|
8034
|
-
options:
|
|
8035
|
-
count:
|
|
8102
|
+
let G = Z.options;
|
|
8103
|
+
return o && D === 0 && (G = [{ value: null, label: "None" }, ...G]), {
|
|
8104
|
+
options: G,
|
|
8105
|
+
count: S,
|
|
8036
8106
|
limit: H
|
|
8037
8107
|
};
|
|
8038
8108
|
},
|
|
8039
|
-
[
|
|
8109
|
+
[o, v]
|
|
8040
8110
|
);
|
|
8041
8111
|
if (M)
|
|
8042
|
-
return /* @__PURE__ */ r(
|
|
8112
|
+
return /* @__PURE__ */ r($5, {});
|
|
8043
8113
|
const F = {
|
|
8044
8114
|
ref: N,
|
|
8045
8115
|
placeholder: t,
|
|
@@ -8054,7 +8124,7 @@ const Gi = k1(
|
|
|
8054
8124
|
...F,
|
|
8055
8125
|
mode: e,
|
|
8056
8126
|
value: n,
|
|
8057
|
-
onChange:
|
|
8127
|
+
onChange: a,
|
|
8058
8128
|
loadOptions: J,
|
|
8059
8129
|
preloadOptions: !0,
|
|
8060
8130
|
extraOptions: m
|
|
@@ -8065,7 +8135,7 @@ const Gi = k1(
|
|
|
8065
8135
|
...F,
|
|
8066
8136
|
value: n,
|
|
8067
8137
|
mode: void 0,
|
|
8068
|
-
onChange:
|
|
8138
|
+
onChange: a,
|
|
8069
8139
|
loadOptions: J,
|
|
8070
8140
|
preloadOptions: !0,
|
|
8071
8141
|
extraOptions: m
|
|
@@ -8074,5 +8144,5 @@ const Gi = k1(
|
|
|
8074
8144
|
}
|
|
8075
8145
|
);
|
|
8076
8146
|
export {
|
|
8077
|
-
|
|
8147
|
+
$0 as UserSelect
|
|
8078
8148
|
};
|