@snmt-react-ui/user-select 2.12.10 → 2.12.11
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 +860 -808
- package/package.json +4 -4
package/dist/user-select.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var H2 = Object.defineProperty;
|
|
2
2
|
var _2 = (l, e, t) => e in l ? H2(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var j1 = (l, e, t) => _2(l, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import "./index.css";
|
|
5
5
|
import { jsx as n, Fragment as i1, jsxs as g } from "react/jsx-runtime";
|
|
6
|
-
import { forwardRef as
|
|
6
|
+
import { forwardRef as o1, useState as K, useRef as J, useCallback as F, useEffect as S, useMemo as U1, useImperativeHandle as h1, useContext as s1, createContext as p2 } from "react";
|
|
7
7
|
import { Select as b2, Tag as P1, Flex as y2, Checkbox as E2, Avatar as A2, Typography as N1, Popover as D2 } from "antd";
|
|
8
8
|
import { COLORS as h, SNMTUiContext as c1 } from "@snmt-react-ui/core";
|
|
9
9
|
var K2 = Object.defineProperty, G2 = (l, e, t) => e in l ? K2(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, B2 = (l, e, t) => G2(l, e + "", t), S2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -20,7 +20,7 @@ function O1() {
|
|
|
20
20
|
e[t] = arguments[t];
|
|
21
21
|
r1(e[0]) && W1[e[0]] || (r1(e[0]) && (W1[e[0]] = /* @__PURE__ */ new Date()), Y2(...e));
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const u2 = (l, e) => () => {
|
|
24
24
|
if (l.isInitialized)
|
|
25
25
|
e();
|
|
26
26
|
else {
|
|
@@ -32,18 +32,18 @@ const p2 = (l, e) => () => {
|
|
|
32
32
|
l.on("initialized", t);
|
|
33
33
|
}
|
|
34
34
|
}, z1 = (l, e, t) => {
|
|
35
|
-
l.loadNamespaces(e,
|
|
35
|
+
l.loadNamespaces(e, u2(l, t));
|
|
36
36
|
}, J1 = (l, e, t, i) => {
|
|
37
37
|
r1(t) && (t = [t]), t.forEach((s) => {
|
|
38
38
|
l.options.ns.indexOf(s) < 0 && l.options.ns.push(s);
|
|
39
|
-
}), l.loadLanguages(e,
|
|
39
|
+
}), l.loadLanguages(e, u2(l, i));
|
|
40
40
|
}, O2 = function(l, e) {
|
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
42
42
|
const i = e.languages[0], s = e.options ? e.options.fallbackLng : !1, C = e.languages[e.languages.length - 1];
|
|
43
43
|
if (i.toLowerCase() === "cimode") return !0;
|
|
44
|
-
const c = (d,
|
|
45
|
-
const
|
|
46
|
-
return
|
|
44
|
+
const c = (d, o) => {
|
|
45
|
+
const a = e.services.backendConnector.state[`${d}|${o}`];
|
|
46
|
+
return a === -1 || a === 2;
|
|
47
47
|
};
|
|
48
48
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, l) ? !1 : !!(e.hasResourceBundle(i, l) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(i, l) && (!s || c(C, l)));
|
|
49
49
|
}, I2 = function(l, e) {
|
|
@@ -75,7 +75,7 @@ const p2 = (l, e) => () => {
|
|
|
75
75
|
"…": "…",
|
|
76
76
|
"/": "/",
|
|
77
77
|
"/": "/"
|
|
78
|
-
},
|
|
78
|
+
}, F2 = (l) => P2[l], j2 = (l) => l.replace(T2, F2);
|
|
79
79
|
let U2 = {
|
|
80
80
|
bindI18n: "languageChanged",
|
|
81
81
|
bindI18nStore: "",
|
|
@@ -84,11 +84,11 @@ let U2 = {
|
|
|
84
84
|
transWrapTextNodes: "",
|
|
85
85
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
86
86
|
useSuspense: !0,
|
|
87
|
-
unescape:
|
|
87
|
+
unescape: j2
|
|
88
88
|
};
|
|
89
89
|
const W2 = () => U2;
|
|
90
90
|
let z2;
|
|
91
|
-
const J2 = () => z2, q2 =
|
|
91
|
+
const J2 = () => z2, q2 = p2();
|
|
92
92
|
class Q2 {
|
|
93
93
|
constructor() {
|
|
94
94
|
B2(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
|
@@ -104,7 +104,7 @@ const X2 = (l, e) => {
|
|
|
104
104
|
return S(() => {
|
|
105
105
|
t.current = l;
|
|
106
106
|
}, [l, e]), t.current;
|
|
107
|
-
}, L2 = (l, e, t, i) => l.getFixedT(e, t, i), e5 = (l, e, t, i) =>
|
|
107
|
+
}, L2 = (l, e, t, i) => l.getFixedT(e, t, i), e5 = (l, e, t, i) => F(L2(l, e, t, i), [l, e, t, i]), t5 = function(l) {
|
|
108
108
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
109
109
|
const {
|
|
110
110
|
i18n: t
|
|
@@ -124,37 +124,37 @@ const X2 = (l, e) => {
|
|
|
124
124
|
...e
|
|
125
125
|
}, {
|
|
126
126
|
useSuspense: d,
|
|
127
|
-
keyPrefix:
|
|
127
|
+
keyPrefix: o
|
|
128
128
|
} = c;
|
|
129
|
-
let
|
|
130
|
-
|
|
131
|
-
const r = (C.isInitialized || C.initializedStoreOnce) &&
|
|
132
|
-
let
|
|
133
|
-
e.lng && (
|
|
134
|
-
const x = X2(
|
|
129
|
+
let a = l;
|
|
130
|
+
a = r1(a) ? [a] : a || ["translation"], C.reportNamespaces.addUsedNamespaces && C.reportNamespaces.addUsedNamespaces(a);
|
|
131
|
+
const r = (C.isInitialized || C.initializedStoreOnce) && a.every((v) => I2(v, C, c)), p = e5(C, e.lng || null, c.nsMode === "fallback" ? a : a[0], o), w = () => p, f = () => L2(C, e.lng || null, c.nsMode === "fallback" ? a : a[0], o), [L, m] = K(w);
|
|
132
|
+
let u = a.join();
|
|
133
|
+
e.lng && (u = `${e.lng}${u}`);
|
|
134
|
+
const x = X2(u), R = J(!0);
|
|
135
135
|
S(() => {
|
|
136
136
|
const {
|
|
137
137
|
bindI18n: v,
|
|
138
138
|
bindI18nStore: k
|
|
139
139
|
} = c;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}) : z1(C,
|
|
143
|
-
|
|
144
|
-
})), r && x && x !==
|
|
140
|
+
R.current = !0, !r && !d && (e.lng ? J1(C, e.lng, a, () => {
|
|
141
|
+
R.current && m(f);
|
|
142
|
+
}) : z1(C, a, () => {
|
|
143
|
+
R.current && m(f);
|
|
144
|
+
})), r && x && x !== u && R.current && m(f);
|
|
145
145
|
const Z = () => {
|
|
146
|
-
|
|
146
|
+
R.current && m(f);
|
|
147
147
|
};
|
|
148
148
|
return v && C && C.on(v, Z), k && C && C.store.on(k, Z), () => {
|
|
149
|
-
|
|
149
|
+
R.current = !1, v && C && v.split(" ").forEach((N) => C.off(N, Z)), k && C && k.split(" ").forEach((N) => C.store.off(N, Z));
|
|
150
150
|
};
|
|
151
|
-
}, [C,
|
|
152
|
-
|
|
153
|
-
}, [C,
|
|
151
|
+
}, [C, u]), S(() => {
|
|
152
|
+
R.current && r && m(w);
|
|
153
|
+
}, [C, o, r]);
|
|
154
154
|
const A = [L, C, r];
|
|
155
155
|
if (A.t = L, A.i18n = C, A.ready = r, r || !r && !d) return A;
|
|
156
156
|
throw new Promise((v) => {
|
|
157
|
-
e.lng ? J1(C, e.lng,
|
|
157
|
+
e.lng ? J1(C, e.lng, a, () => v()) : z1(C, a, () => v());
|
|
158
158
|
});
|
|
159
159
|
}, m1 = ({
|
|
160
160
|
children: l,
|
|
@@ -183,7 +183,7 @@ const X2 = (l, e) => {
|
|
|
183
183
|
h2: 2,
|
|
184
184
|
h3: 3,
|
|
185
185
|
h4: 4
|
|
186
|
-
}, q1 =
|
|
186
|
+
}, q1 = o1(
|
|
187
187
|
({
|
|
188
188
|
align: l = "inherit",
|
|
189
189
|
variant: e = "body1",
|
|
@@ -194,19 +194,19 @@ const X2 = (l, e) => {
|
|
|
194
194
|
whiteSpace: c = "normal",
|
|
195
195
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
196
196
|
trim: d = !1
|
|
197
|
-
},
|
|
198
|
-
const
|
|
199
|
-
h1(
|
|
200
|
-
const [r,
|
|
197
|
+
}, o) => {
|
|
198
|
+
const a = J(null);
|
|
199
|
+
h1(o, () => a.current);
|
|
200
|
+
const [r, p] = K(!1);
|
|
201
201
|
S(() => {
|
|
202
202
|
var m;
|
|
203
203
|
if (!d) return;
|
|
204
|
-
const
|
|
205
|
-
|
|
204
|
+
const u = () => {
|
|
205
|
+
a.current && p(a.current.scrollWidth > a.current.clientWidth);
|
|
206
206
|
};
|
|
207
|
-
|
|
208
|
-
const x = new ResizeObserver(
|
|
209
|
-
return
|
|
207
|
+
u();
|
|
208
|
+
const x = new ResizeObserver(u);
|
|
209
|
+
return a.current && x.observe(a.current), (m = a.current) != null && m.parentElement && x.observe(a.current.parentElement), () => {
|
|
210
210
|
x.disconnect();
|
|
211
211
|
};
|
|
212
212
|
}, [d]);
|
|
@@ -217,7 +217,7 @@ const X2 = (l, e) => {
|
|
|
217
217
|
className: f,
|
|
218
218
|
style: { color: t, whiteSpace: d ? "nowrap" : c, display: d ? "block" : "" },
|
|
219
219
|
onClick: s,
|
|
220
|
-
ref:
|
|
220
|
+
ref: a,
|
|
221
221
|
ellipsis: d && r ? {
|
|
222
222
|
tooltip: {
|
|
223
223
|
title: i,
|
|
@@ -270,12 +270,12 @@ const X2 = (l, e) => {
|
|
|
270
270
|
]
|
|
271
271
|
}
|
|
272
272
|
);
|
|
273
|
-
}, { Title:
|
|
273
|
+
}, { Title: a5, Text: o5 } = N1, r5 = {
|
|
274
274
|
h1: 1,
|
|
275
275
|
h2: 2,
|
|
276
276
|
h3: 3,
|
|
277
277
|
h4: 4
|
|
278
|
-
}, C5 =
|
|
278
|
+
}, C5 = o1(
|
|
279
279
|
({
|
|
280
280
|
align: l = "inherit",
|
|
281
281
|
variant: e = "body1",
|
|
@@ -286,19 +286,19 @@ const X2 = (l, e) => {
|
|
|
286
286
|
whiteSpace: c = "normal",
|
|
287
287
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
288
288
|
trim: d = !1
|
|
289
|
-
},
|
|
290
|
-
const
|
|
291
|
-
h1(
|
|
292
|
-
const [r,
|
|
289
|
+
}, o) => {
|
|
290
|
+
const a = J(null);
|
|
291
|
+
h1(o, () => a.current);
|
|
292
|
+
const [r, p] = K(!1);
|
|
293
293
|
S(() => {
|
|
294
294
|
var m;
|
|
295
295
|
if (!d) return;
|
|
296
|
-
const
|
|
297
|
-
|
|
296
|
+
const u = () => {
|
|
297
|
+
a.current && p(a.current.scrollWidth > a.current.clientWidth);
|
|
298
298
|
};
|
|
299
|
-
|
|
300
|
-
const x = new ResizeObserver(
|
|
301
|
-
return
|
|
299
|
+
u();
|
|
300
|
+
const x = new ResizeObserver(u);
|
|
301
|
+
return a.current && x.observe(a.current), (m = a.current) != null && m.parentElement && x.observe(a.current.parentElement), () => {
|
|
302
302
|
x.disconnect();
|
|
303
303
|
};
|
|
304
304
|
}, [d]);
|
|
@@ -309,7 +309,7 @@ const X2 = (l, e) => {
|
|
|
309
309
|
className: f,
|
|
310
310
|
style: { color: t, whiteSpace: d ? "nowrap" : c, display: d ? "block" : "" },
|
|
311
311
|
onClick: s,
|
|
312
|
-
ref:
|
|
312
|
+
ref: a,
|
|
313
313
|
ellipsis: d && r ? {
|
|
314
314
|
tooltip: {
|
|
315
315
|
title: i,
|
|
@@ -317,7 +317,7 @@ const X2 = (l, e) => {
|
|
|
317
317
|
}
|
|
318
318
|
} : void 0
|
|
319
319
|
};
|
|
320
|
-
return w ? /* @__PURE__ */ n(
|
|
320
|
+
return w ? /* @__PURE__ */ n(a5, { level: r5[e], ...L, children: i }) : /* @__PURE__ */ n(o5, { ...L, children: i });
|
|
321
321
|
}
|
|
322
322
|
), h5 = ({
|
|
323
323
|
checked: l = !0,
|
|
@@ -327,9 +327,9 @@ const X2 = (l, e) => {
|
|
|
327
327
|
disabled: s = !1,
|
|
328
328
|
disableUncheck: C = !1
|
|
329
329
|
}) => {
|
|
330
|
-
const [c, d] = K(l), [
|
|
330
|
+
const [c, d] = K(l), [o, a] = K(e);
|
|
331
331
|
S(() => {
|
|
332
|
-
d(l),
|
|
332
|
+
d(l), a(e);
|
|
333
333
|
}, [l, e]);
|
|
334
334
|
const { theme: r } = s1(c1);
|
|
335
335
|
return /* @__PURE__ */ n(
|
|
@@ -337,9 +337,9 @@ const X2 = (l, e) => {
|
|
|
337
337
|
{
|
|
338
338
|
className: `snmt-checkbox snmt-checkbox-${r}`,
|
|
339
339
|
checked: c,
|
|
340
|
-
indeterminate:
|
|
341
|
-
onChange: (
|
|
342
|
-
C && c || (
|
|
340
|
+
indeterminate: o,
|
|
341
|
+
onChange: (p) => {
|
|
342
|
+
C && c || (a(!1), d(p.target.checked), i && i(p));
|
|
343
343
|
},
|
|
344
344
|
disabled: s,
|
|
345
345
|
children: t && /* @__PURE__ */ n(
|
|
@@ -489,7 +489,7 @@ const X2 = (l, e) => {
|
|
|
489
489
|
)
|
|
490
490
|
]
|
|
491
491
|
}
|
|
492
|
-
),
|
|
492
|
+
), p5 = ({
|
|
493
493
|
width: l = 20,
|
|
494
494
|
height: e = 20,
|
|
495
495
|
color: t = h.GREY_DARK_5,
|
|
@@ -516,7 +516,7 @@ const X2 = (l, e) => {
|
|
|
516
516
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_1_2043", children: /* @__PURE__ */ n("rect", { width: "24", height: "24", fill: "white", transform: "translate(0.5 0.5)" }) }) })
|
|
517
517
|
]
|
|
518
518
|
}
|
|
519
|
-
),
|
|
519
|
+
), u5 = ({
|
|
520
520
|
width: l = 20,
|
|
521
521
|
height: e = 20,
|
|
522
522
|
color: t = h.GREY_DARK_5,
|
|
@@ -796,7 +796,7 @@ const X2 = (l, e) => {
|
|
|
796
796
|
}
|
|
797
797
|
)
|
|
798
798
|
}
|
|
799
|
-
),
|
|
799
|
+
), V5 = ({
|
|
800
800
|
width: l = 20,
|
|
801
801
|
height: e = 20,
|
|
802
802
|
color: t = h.GREY_DARK_5,
|
|
@@ -857,7 +857,7 @@ const X2 = (l, e) => {
|
|
|
857
857
|
)
|
|
858
858
|
]
|
|
859
859
|
}
|
|
860
|
-
),
|
|
860
|
+
), R5 = ({
|
|
861
861
|
width: l = 20,
|
|
862
862
|
height: e = 20,
|
|
863
863
|
color: t = h.GREY_DARK_5,
|
|
@@ -1537,7 +1537,7 @@ const X2 = (l, e) => {
|
|
|
1537
1537
|
)
|
|
1538
1538
|
]
|
|
1539
1539
|
}
|
|
1540
|
-
),
|
|
1540
|
+
), F5 = ({
|
|
1541
1541
|
width: l = 20,
|
|
1542
1542
|
height: e = 20,
|
|
1543
1543
|
color: t = h.GREY_DARK_5,
|
|
@@ -1584,7 +1584,7 @@ const X2 = (l, e) => {
|
|
|
1584
1584
|
)
|
|
1585
1585
|
]
|
|
1586
1586
|
}
|
|
1587
|
-
),
|
|
1587
|
+
), j5 = ({
|
|
1588
1588
|
className: l,
|
|
1589
1589
|
color: e = h.GREY_DARK_5,
|
|
1590
1590
|
height: t = 20,
|
|
@@ -2074,7 +2074,7 @@ const X2 = (l, e) => {
|
|
|
2074
2074
|
)
|
|
2075
2075
|
]
|
|
2076
2076
|
}
|
|
2077
|
-
),
|
|
2077
|
+
), a7 = ({
|
|
2078
2078
|
className: l,
|
|
2079
2079
|
color: e = h.GREY_DARK_5,
|
|
2080
2080
|
height: t = 20,
|
|
@@ -2107,7 +2107,7 @@ const X2 = (l, e) => {
|
|
|
2107
2107
|
)
|
|
2108
2108
|
]
|
|
2109
2109
|
}
|
|
2110
|
-
),
|
|
2110
|
+
), o7 = ({
|
|
2111
2111
|
className: l,
|
|
2112
2112
|
color: e = h.GREY_DARK_5,
|
|
2113
2113
|
height: t = 20,
|
|
@@ -2442,7 +2442,7 @@ const X2 = (l, e) => {
|
|
|
2442
2442
|
)
|
|
2443
2443
|
]
|
|
2444
2444
|
}
|
|
2445
|
-
),
|
|
2445
|
+
), p7 = ({
|
|
2446
2446
|
width: l = 20,
|
|
2447
2447
|
height: e = 20,
|
|
2448
2448
|
color: t = h.GREY_DARK_5,
|
|
@@ -2482,7 +2482,7 @@ const X2 = (l, e) => {
|
|
|
2482
2482
|
)
|
|
2483
2483
|
]
|
|
2484
2484
|
}
|
|
2485
|
-
),
|
|
2485
|
+
), u7 = ({
|
|
2486
2486
|
width: l = 20,
|
|
2487
2487
|
height: e = 20,
|
|
2488
2488
|
color: t = h.GREY_DARK_5,
|
|
@@ -2549,7 +2549,7 @@ const X2 = (l, e) => {
|
|
|
2549
2549
|
color: t = h.GREY_DARK_5,
|
|
2550
2550
|
className: i,
|
|
2551
2551
|
onClick: s
|
|
2552
|
-
}) => /* @__PURE__ */
|
|
2552
|
+
}) => /* @__PURE__ */ g(
|
|
2553
2553
|
"svg",
|
|
2554
2554
|
{
|
|
2555
2555
|
width: l,
|
|
@@ -2559,16 +2559,29 @@ const X2 = (l, e) => {
|
|
|
2559
2559
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2560
2560
|
className: i,
|
|
2561
2561
|
onClick: s,
|
|
2562
|
-
children:
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2562
|
+
children: [
|
|
2563
|
+
/* @__PURE__ */ n(
|
|
2564
|
+
"path",
|
|
2565
|
+
{
|
|
2566
|
+
d: "M20.25 19V6.81055L16.1895 2.75L7 2.75C6.58579 2.75 6.25 2.41421 6.25 2C6.25 1.58579 6.58579 1.25 7 1.25L16.5 1.25C16.6989 1.25 16.8896 1.32907 17.0303 1.46973L21.5303 5.96973C21.6709 6.11038 21.75 6.30109 21.75 6.5V19C21.75 19.4142 21.4142 19.75 21 19.75C20.5858 19.75 20.25 19.4142 20.25 19Z",
|
|
2567
|
+
fill: t
|
|
2568
|
+
}
|
|
2569
|
+
),
|
|
2570
|
+
/* @__PURE__ */ n(
|
|
2571
|
+
"path",
|
|
2572
|
+
{
|
|
2573
|
+
d: "M18.75 20.5C18.75 21.7426 17.7426 22.75 16.5 22.75H4.5C3.25736 22.75 2.25 21.7426 2.25 20.5V6.5C2.25 5.25736 3.25736 4.25 4.5 4.25H14.252C14.6098 4.25013 14.953 4.39245 15.2061 4.64551L18.3545 7.79395C18.6076 8.04701 18.7499 8.39018 18.75 8.74805V20.5ZM3.75 20.5C3.75 20.9142 4.08579 21.25 4.5 21.25H16.5C16.9142 21.25 17.25 20.9142 17.25 20.5V8.81055L14.1895 5.75H4.5C4.08579 5.75 3.75 6.08579 3.75 6.5V20.5Z",
|
|
2574
|
+
fill: t
|
|
2575
|
+
}
|
|
2576
|
+
),
|
|
2577
|
+
/* @__PURE__ */ n(
|
|
2578
|
+
"path",
|
|
2579
|
+
{
|
|
2580
|
+
d: "M13.25 5C13.25 4.58579 13.5858 4.25 14 4.25C14.4142 4.25 14.75 4.58579 14.75 5V8.25H18C18.4142 8.25 18.75 8.58579 18.75 9C18.75 9.41421 18.4142 9.75 18 9.75H14.5996C13.8543 9.74979 13.2502 9.14567 13.25 8.40039V5Z",
|
|
2581
|
+
fill: t
|
|
2582
|
+
}
|
|
2583
|
+
)
|
|
2584
|
+
]
|
|
2572
2585
|
}
|
|
2573
2586
|
), m7 = ({
|
|
2574
2587
|
width: l = 20,
|
|
@@ -2594,7 +2607,7 @@ const X2 = (l, e) => {
|
|
|
2594
2607
|
}
|
|
2595
2608
|
)
|
|
2596
2609
|
}
|
|
2597
|
-
),
|
|
2610
|
+
), u1 = ({
|
|
2598
2611
|
name: l,
|
|
2599
2612
|
width: e,
|
|
2600
2613
|
height: t,
|
|
@@ -2603,159 +2616,159 @@ const X2 = (l, e) => {
|
|
|
2603
2616
|
disabled: C = !1,
|
|
2604
2617
|
onClick: c
|
|
2605
2618
|
}) => {
|
|
2606
|
-
const { theme: d } = s1(c1),
|
|
2619
|
+
const { theme: d } = s1(c1), o = C ? d && d === "dark" ? h.GREY_LIGHT_4 : h.GREY_DARK_1 : i, a = C ? void 0 : c, r = c && !C ? `${s || ""} clickable` : s;
|
|
2607
2620
|
return /* @__PURE__ */ n(i1, { children: (() => {
|
|
2608
2621
|
switch (l) {
|
|
2609
2622
|
case "arrow1Down":
|
|
2610
|
-
return c5({ width: e, height: t, color:
|
|
2623
|
+
return c5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2611
2624
|
case "arrow1Up":
|
|
2612
|
-
return d5({ width: e, height: t, color:
|
|
2625
|
+
return d5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2613
2626
|
case "arrow1Right":
|
|
2614
|
-
return g5({ width: e, height: t, color:
|
|
2627
|
+
return g5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2615
2628
|
case "arrow1Left":
|
|
2616
|
-
return w5({ width: e, height: t, color:
|
|
2629
|
+
return w5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2617
2630
|
case "info":
|
|
2618
|
-
return f5({ width: e, height: t, color:
|
|
2631
|
+
return f5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2619
2632
|
case "archive":
|
|
2620
|
-
return v5({ width: e, height: t, color:
|
|
2633
|
+
return v5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2621
2634
|
case "unarchive":
|
|
2622
|
-
return k5({ width: e, height: t, color:
|
|
2635
|
+
return k5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2623
2636
|
case "calendar":
|
|
2624
|
-
return N5({ width: e, height: t, color:
|
|
2637
|
+
return N5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2625
2638
|
case "check":
|
|
2626
|
-
return M5({ width: e, height: t, color:
|
|
2639
|
+
return M5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2627
2640
|
case "cancel":
|
|
2628
|
-
return x5({ width: e, height: t, color:
|
|
2641
|
+
return x5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2629
2642
|
case "add":
|
|
2630
|
-
return Z5({ width: e, height: t, color:
|
|
2643
|
+
return Z5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2631
2644
|
case "list":
|
|
2632
|
-
return
|
|
2645
|
+
return V5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2633
2646
|
case "dragAndDrop":
|
|
2634
|
-
return
|
|
2647
|
+
return R5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2635
2648
|
case "filter1":
|
|
2636
|
-
return H5({ width: e, height: t, color:
|
|
2649
|
+
return H5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2637
2650
|
case "filter2":
|
|
2638
|
-
return t7({ width: e, height: t, color:
|
|
2651
|
+
return t7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2639
2652
|
case "attention":
|
|
2640
|
-
return _5({ width: e, height: t, color:
|
|
2653
|
+
return _5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2641
2654
|
case "users":
|
|
2642
|
-
return b5({ width: e, height: t, color:
|
|
2655
|
+
return b5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2643
2656
|
case "mySkillsMatrix":
|
|
2644
2657
|
return y5({
|
|
2645
2658
|
width: e,
|
|
2646
2659
|
height: t,
|
|
2647
|
-
color:
|
|
2660
|
+
color: o,
|
|
2648
2661
|
className: r,
|
|
2649
|
-
onClick:
|
|
2662
|
+
onClick: a
|
|
2650
2663
|
});
|
|
2651
2664
|
case "skills":
|
|
2652
|
-
return E5({ width: e, height: t, color:
|
|
2665
|
+
return E5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2653
2666
|
case "skillsMatrices":
|
|
2654
2667
|
return A5({
|
|
2655
2668
|
width: e,
|
|
2656
2669
|
height: t,
|
|
2657
|
-
color:
|
|
2670
|
+
color: o,
|
|
2658
2671
|
className: r,
|
|
2659
|
-
onClick:
|
|
2672
|
+
onClick: a
|
|
2660
2673
|
});
|
|
2661
2674
|
case "history":
|
|
2662
|
-
return D5({ width: e, height: t, color:
|
|
2675
|
+
return D5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2663
2676
|
case "logOut":
|
|
2664
|
-
return K5({ width: e, height: t, color:
|
|
2677
|
+
return K5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2665
2678
|
case "settings":
|
|
2666
|
-
return G5({ width: e, height: t, color:
|
|
2679
|
+
return G5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2667
2680
|
case "trash":
|
|
2668
|
-
return B5({ width: e, height: t, color:
|
|
2681
|
+
return B5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2669
2682
|
case "settings2":
|
|
2670
|
-
return S5({ width: e, height: t, color:
|
|
2683
|
+
return S5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2671
2684
|
case "checkCircle":
|
|
2672
|
-
return Y5({ width: e, height: t, color:
|
|
2685
|
+
return Y5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2673
2686
|
case "cancelCircle":
|
|
2674
|
-
return O5({ width: e, height: t, color:
|
|
2687
|
+
return O5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2675
2688
|
case "visibilityIcon":
|
|
2676
2689
|
return I5({
|
|
2677
2690
|
width: e,
|
|
2678
2691
|
height: t,
|
|
2679
|
-
color:
|
|
2692
|
+
color: o,
|
|
2680
2693
|
className: r,
|
|
2681
|
-
onClick:
|
|
2694
|
+
onClick: a
|
|
2682
2695
|
});
|
|
2683
2696
|
case "visibilityOffIcon":
|
|
2684
2697
|
return $5({
|
|
2685
2698
|
width: e,
|
|
2686
2699
|
height: t,
|
|
2687
|
-
color:
|
|
2700
|
+
color: o,
|
|
2688
2701
|
className: r,
|
|
2689
|
-
onClick:
|
|
2702
|
+
onClick: a
|
|
2690
2703
|
});
|
|
2691
2704
|
case "sortUp":
|
|
2692
|
-
return T5({ width: e, height: t, color:
|
|
2705
|
+
return T5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2693
2706
|
case "sortDown":
|
|
2694
|
-
return P5({ width: e, height: t, color:
|
|
2707
|
+
return P5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2695
2708
|
case "sortDouble":
|
|
2696
|
-
return
|
|
2709
|
+
return F5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2697
2710
|
case "search":
|
|
2698
|
-
return
|
|
2711
|
+
return j5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2699
2712
|
case "arrowUpFilled":
|
|
2700
|
-
return W5({ width: e, height: t, color:
|
|
2713
|
+
return W5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2701
2714
|
case "arrowDownFilled":
|
|
2702
|
-
return U5({ width: e, height: t, color:
|
|
2715
|
+
return U5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2703
2716
|
case "arrow2Up":
|
|
2704
|
-
return
|
|
2717
|
+
return p5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2705
2718
|
case "arrow2Right":
|
|
2706
|
-
return
|
|
2719
|
+
return u5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2707
2720
|
case "arrow2Down":
|
|
2708
|
-
return L5({ width: e, height: t, color:
|
|
2721
|
+
return L5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2709
2722
|
case "arrow2Left":
|
|
2710
|
-
return m5({ width: e, height: t, color:
|
|
2723
|
+
return m5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2711
2724
|
case "link":
|
|
2712
|
-
return z5({ width: e, height: t, color:
|
|
2725
|
+
return z5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2713
2726
|
case "telegram":
|
|
2714
|
-
return q5({ width: e, height: t, color:
|
|
2727
|
+
return q5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2715
2728
|
case "mail":
|
|
2716
|
-
return X5({ width: e, height: t, color:
|
|
2729
|
+
return X5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2717
2730
|
case "github":
|
|
2718
|
-
return J5({ width: e, height: t, color:
|
|
2731
|
+
return J5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2719
2732
|
case "linkedIn":
|
|
2720
|
-
return Q5({ width: e, height: t, color:
|
|
2733
|
+
return Q5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2721
2734
|
case "emptyStateIcon":
|
|
2722
|
-
return e7({ width: e, height: t, color:
|
|
2735
|
+
return e7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2723
2736
|
case "dotMenuIcon":
|
|
2724
|
-
return i7({ width: e, height: t, color:
|
|
2737
|
+
return i7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2725
2738
|
case "plusCircle":
|
|
2726
|
-
return l7({ width: e, height: t, color:
|
|
2739
|
+
return l7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2727
2740
|
case "warning":
|
|
2728
|
-
return s7({ width: e, height: t, color:
|
|
2741
|
+
return s7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2729
2742
|
case "bell":
|
|
2730
|
-
return n7({ width: e, height: t, color:
|
|
2743
|
+
return n7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2731
2744
|
case "copy":
|
|
2732
|
-
return
|
|
2745
|
+
return a7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2733
2746
|
case "contract":
|
|
2734
|
-
return
|
|
2747
|
+
return o7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2735
2748
|
case "resourceManager":
|
|
2736
|
-
return r7({ width: e, height: t, color:
|
|
2749
|
+
return r7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2737
2750
|
case "image":
|
|
2738
|
-
return C7({ width: e, height: t, color:
|
|
2751
|
+
return C7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2739
2752
|
case "edit":
|
|
2740
|
-
return h7({ width: e, height: t, color:
|
|
2753
|
+
return h7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2741
2754
|
case "burgerMenu":
|
|
2742
|
-
return c7({ width: e, height: t, color:
|
|
2755
|
+
return c7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2743
2756
|
case "refresh":
|
|
2744
|
-
return d7({ width: e, height: t, color:
|
|
2757
|
+
return d7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2745
2758
|
case "projects":
|
|
2746
|
-
return g7({ width: e, height: t, color:
|
|
2759
|
+
return g7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2747
2760
|
case "user":
|
|
2748
|
-
return f7({ width: e, height: t, color:
|
|
2761
|
+
return f7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2749
2762
|
case "exit":
|
|
2750
|
-
return w7({ width: e, height: t, color:
|
|
2763
|
+
return w7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2751
2764
|
case "status":
|
|
2752
|
-
return
|
|
2765
|
+
return p7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2753
2766
|
case "community":
|
|
2754
|
-
return
|
|
2767
|
+
return u7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2755
2768
|
case "docs":
|
|
2756
|
-
return L7({ width: e, height: t, color:
|
|
2769
|
+
return L7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2757
2770
|
case "unpaidLeave":
|
|
2758
|
-
return m7({ width: e, height: t, color:
|
|
2771
|
+
return m7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2759
2772
|
default:
|
|
2760
2773
|
return /* @__PURE__ */ n(i1, { children: "No Icon provided" });
|
|
2761
2774
|
}
|
|
@@ -2765,7 +2778,7 @@ const X2 = (l, e) => {
|
|
|
2765
2778
|
h2: 2,
|
|
2766
2779
|
h3: 3,
|
|
2767
2780
|
h4: 4
|
|
2768
|
-
}, M7 =
|
|
2781
|
+
}, M7 = o1(
|
|
2769
2782
|
({
|
|
2770
2783
|
align: l = "inherit",
|
|
2771
2784
|
variant: e = "body1",
|
|
@@ -2776,19 +2789,19 @@ const X2 = (l, e) => {
|
|
|
2776
2789
|
whiteSpace: c = "normal",
|
|
2777
2790
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2778
2791
|
trim: d = !1
|
|
2779
|
-
},
|
|
2780
|
-
const
|
|
2781
|
-
h1(
|
|
2782
|
-
const [r,
|
|
2792
|
+
}, o) => {
|
|
2793
|
+
const a = J(null);
|
|
2794
|
+
h1(o, () => a.current);
|
|
2795
|
+
const [r, p] = K(!1);
|
|
2783
2796
|
S(() => {
|
|
2784
2797
|
var m;
|
|
2785
2798
|
if (!d) return;
|
|
2786
|
-
const
|
|
2787
|
-
|
|
2799
|
+
const u = () => {
|
|
2800
|
+
a.current && p(a.current.scrollWidth > a.current.clientWidth);
|
|
2788
2801
|
};
|
|
2789
|
-
|
|
2790
|
-
const x = new ResizeObserver(
|
|
2791
|
-
return
|
|
2802
|
+
u();
|
|
2803
|
+
const x = new ResizeObserver(u);
|
|
2804
|
+
return a.current && x.observe(a.current), (m = a.current) != null && m.parentElement && x.observe(a.current.parentElement), () => {
|
|
2792
2805
|
x.disconnect();
|
|
2793
2806
|
};
|
|
2794
2807
|
}, [d]);
|
|
@@ -2799,7 +2812,7 @@ const X2 = (l, e) => {
|
|
|
2799
2812
|
className: f,
|
|
2800
2813
|
style: { color: t, whiteSpace: d ? "nowrap" : c, display: d ? "block" : "" },
|
|
2801
2814
|
onClick: s,
|
|
2802
|
-
ref:
|
|
2815
|
+
ref: a,
|
|
2803
2816
|
ellipsis: d && r ? {
|
|
2804
2817
|
tooltip: {
|
|
2805
2818
|
title: i,
|
|
@@ -2857,7 +2870,7 @@ const X2 = (l, e) => {
|
|
|
2857
2870
|
}
|
|
2858
2871
|
)
|
|
2859
2872
|
}
|
|
2860
|
-
),
|
|
2873
|
+
), V7 = ({
|
|
2861
2874
|
width: l = 20,
|
|
2862
2875
|
height: e = 20,
|
|
2863
2876
|
color: t = h.GREY_DARK_5,
|
|
@@ -2881,7 +2894,7 @@ const X2 = (l, e) => {
|
|
|
2881
2894
|
}
|
|
2882
2895
|
)
|
|
2883
2896
|
}
|
|
2884
|
-
),
|
|
2897
|
+
), R7 = ({
|
|
2885
2898
|
width: l = 20,
|
|
2886
2899
|
height: e = 20,
|
|
2887
2900
|
color: t = h.GREY_DARK_5,
|
|
@@ -3535,7 +3548,7 @@ const X2 = (l, e) => {
|
|
|
3535
3548
|
)
|
|
3536
3549
|
]
|
|
3537
3550
|
}
|
|
3538
|
-
),
|
|
3551
|
+
), F7 = ({
|
|
3539
3552
|
width: l = 20,
|
|
3540
3553
|
height: e = 20,
|
|
3541
3554
|
color: t = h.GREY_DARK_5,
|
|
@@ -3582,7 +3595,7 @@ const X2 = (l, e) => {
|
|
|
3582
3595
|
)
|
|
3583
3596
|
]
|
|
3584
3597
|
}
|
|
3585
|
-
),
|
|
3598
|
+
), j7 = ({
|
|
3586
3599
|
width: l = 20,
|
|
3587
3600
|
height: e = 20,
|
|
3588
3601
|
color: t = h.GREY_DARK_5,
|
|
@@ -4074,7 +4087,7 @@ const X2 = (l, e) => {
|
|
|
4074
4087
|
)
|
|
4075
4088
|
]
|
|
4076
4089
|
}
|
|
4077
|
-
),
|
|
4090
|
+
), a9 = ({
|
|
4078
4091
|
className: l,
|
|
4079
4092
|
color: e = h.GREY_DARK_5,
|
|
4080
4093
|
height: t = 5,
|
|
@@ -4098,7 +4111,7 @@ const X2 = (l, e) => {
|
|
|
4098
4111
|
}
|
|
4099
4112
|
)
|
|
4100
4113
|
}
|
|
4101
|
-
),
|
|
4114
|
+
), o9 = ({
|
|
4102
4115
|
className: l,
|
|
4103
4116
|
color: e = h.GREY_DARK_5,
|
|
4104
4117
|
height: t = 5,
|
|
@@ -4421,7 +4434,7 @@ const X2 = (l, e) => {
|
|
|
4421
4434
|
)
|
|
4422
4435
|
]
|
|
4423
4436
|
}
|
|
4424
|
-
),
|
|
4437
|
+
), p9 = ({
|
|
4425
4438
|
className: l,
|
|
4426
4439
|
color: e = h.GREY_DARK_5,
|
|
4427
4440
|
height: t = 20,
|
|
@@ -4458,7 +4471,7 @@ const X2 = (l, e) => {
|
|
|
4458
4471
|
)
|
|
4459
4472
|
]
|
|
4460
4473
|
}
|
|
4461
|
-
),
|
|
4474
|
+
), u9 = ({
|
|
4462
4475
|
className: l,
|
|
4463
4476
|
color: e = h.GREY_DARK_5,
|
|
4464
4477
|
height: t = 20,
|
|
@@ -4809,7 +4822,7 @@ const X2 = (l, e) => {
|
|
|
4809
4822
|
)
|
|
4810
4823
|
]
|
|
4811
4824
|
}
|
|
4812
|
-
),
|
|
4825
|
+
), V9 = ({
|
|
4813
4826
|
width: l = 20,
|
|
4814
4827
|
height: e = 20,
|
|
4815
4828
|
color: t = h.GREY_DARK_5,
|
|
@@ -4833,7 +4846,7 @@ const X2 = (l, e) => {
|
|
|
4833
4846
|
}
|
|
4834
4847
|
)
|
|
4835
4848
|
}
|
|
4836
|
-
),
|
|
4849
|
+
), R9 = ({
|
|
4837
4850
|
width: l = 24,
|
|
4838
4851
|
height: e = 24,
|
|
4839
4852
|
color: t = "#131314",
|
|
@@ -5006,7 +5019,7 @@ const X2 = (l, e) => {
|
|
|
5006
5019
|
color: t = h.GREY_DARK_5,
|
|
5007
5020
|
className: i,
|
|
5008
5021
|
onClick: s
|
|
5009
|
-
}) => /* @__PURE__ */
|
|
5022
|
+
}) => /* @__PURE__ */ g(
|
|
5010
5023
|
"svg",
|
|
5011
5024
|
{
|
|
5012
5025
|
width: l,
|
|
@@ -5016,16 +5029,29 @@ const X2 = (l, e) => {
|
|
|
5016
5029
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5017
5030
|
className: i,
|
|
5018
5031
|
onClick: s,
|
|
5019
|
-
children:
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5032
|
+
children: [
|
|
5033
|
+
/* @__PURE__ */ n(
|
|
5034
|
+
"path",
|
|
5035
|
+
{
|
|
5036
|
+
d: "M20.25 19V6.81055L16.1895 2.75L7 2.75C6.58579 2.75 6.25 2.41421 6.25 2C6.25 1.58579 6.58579 1.25 7 1.25L16.5 1.25C16.6989 1.25 16.8896 1.32907 17.0303 1.46973L21.5303 5.96973C21.6709 6.11038 21.75 6.30109 21.75 6.5V19C21.75 19.4142 21.4142 19.75 21 19.75C20.5858 19.75 20.25 19.4142 20.25 19Z",
|
|
5037
|
+
fill: t
|
|
5038
|
+
}
|
|
5039
|
+
),
|
|
5040
|
+
/* @__PURE__ */ n(
|
|
5041
|
+
"path",
|
|
5042
|
+
{
|
|
5043
|
+
d: "M18.75 20.5C18.75 21.7426 17.7426 22.75 16.5 22.75H4.5C3.25736 22.75 2.25 21.7426 2.25 20.5V6.5C2.25 5.25736 3.25736 4.25 4.5 4.25H14.252C14.6098 4.25013 14.953 4.39245 15.2061 4.64551L18.3545 7.79395C18.6076 8.04701 18.7499 8.39018 18.75 8.74805V20.5ZM3.75 20.5C3.75 20.9142 4.08579 21.25 4.5 21.25H16.5C16.9142 21.25 17.25 20.9142 17.25 20.5V8.81055L14.1895 5.75H4.5C4.08579 5.75 3.75 6.08579 3.75 6.5V20.5Z",
|
|
5044
|
+
fill: t
|
|
5045
|
+
}
|
|
5046
|
+
),
|
|
5047
|
+
/* @__PURE__ */ n(
|
|
5048
|
+
"path",
|
|
5049
|
+
{
|
|
5050
|
+
d: "M13.25 5C13.25 4.58579 13.5858 4.25 14 4.25C14.4142 4.25 14.75 4.58579 14.75 5V8.25H18C18.4142 8.25 18.75 8.58579 18.75 9C18.75 9.41421 18.4142 9.75 18 9.75H14.5996C13.8543 9.74979 13.2502 9.14567 13.25 8.40039V5Z",
|
|
5051
|
+
fill: t
|
|
5052
|
+
}
|
|
5053
|
+
)
|
|
5054
|
+
]
|
|
5029
5055
|
}
|
|
5030
5056
|
), E9 = ({
|
|
5031
5057
|
width: l = 20,
|
|
@@ -5060,159 +5086,159 @@ const X2 = (l, e) => {
|
|
|
5060
5086
|
disabled: C = !1,
|
|
5061
5087
|
onClick: c
|
|
5062
5088
|
}) => {
|
|
5063
|
-
const { theme: d } = s1(c1),
|
|
5089
|
+
const { theme: d } = s1(c1), o = C ? d && d === "dark" ? h.GREY_LIGHT_4 : h.GREY_DARK_1 : i, a = C ? void 0 : c, r = c && !C ? `${s || ""} clickable` : s;
|
|
5064
5090
|
return /* @__PURE__ */ n(i1, { children: (() => {
|
|
5065
5091
|
switch (l) {
|
|
5066
5092
|
case "arrow1Down":
|
|
5067
|
-
return x7({ width: e, height: t, color:
|
|
5093
|
+
return x7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5068
5094
|
case "arrow1Up":
|
|
5069
|
-
return Z7({ width: e, height: t, color:
|
|
5095
|
+
return Z7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5070
5096
|
case "arrow1Right":
|
|
5071
|
-
return
|
|
5097
|
+
return V7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5072
5098
|
case "arrow1Left":
|
|
5073
|
-
return
|
|
5099
|
+
return R7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5074
5100
|
case "info":
|
|
5075
|
-
return H7({ width: e, height: t, color:
|
|
5101
|
+
return H7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5076
5102
|
case "archive":
|
|
5077
|
-
return A7({ width: e, height: t, color:
|
|
5103
|
+
return A7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5078
5104
|
case "unarchive":
|
|
5079
|
-
return D7({ width: e, height: t, color:
|
|
5105
|
+
return D7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5080
5106
|
case "calendar":
|
|
5081
|
-
return K7({ width: e, height: t, color:
|
|
5107
|
+
return K7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5082
5108
|
case "check":
|
|
5083
|
-
return G7({ width: e, height: t, color:
|
|
5109
|
+
return G7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5084
5110
|
case "cancel":
|
|
5085
|
-
return B7({ width: e, height: t, color:
|
|
5111
|
+
return B7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5086
5112
|
case "add":
|
|
5087
|
-
return S7({ width: e, height: t, color:
|
|
5113
|
+
return S7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5088
5114
|
case "list":
|
|
5089
|
-
return Y7({ width: e, height: t, color:
|
|
5115
|
+
return Y7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5090
5116
|
case "dragAndDrop":
|
|
5091
|
-
return O7({ width: e, height: t, color:
|
|
5117
|
+
return O7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5092
5118
|
case "filter1":
|
|
5093
|
-
return I7({ width: e, height: t, color:
|
|
5119
|
+
return I7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5094
5120
|
case "filter2":
|
|
5095
|
-
return w9({ width: e, height: t, color:
|
|
5121
|
+
return w9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5096
5122
|
case "attention":
|
|
5097
|
-
return $7({ width: e, height: t, color:
|
|
5123
|
+
return $7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5098
5124
|
case "users":
|
|
5099
|
-
return T7({ width: e, height: t, color:
|
|
5125
|
+
return T7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5100
5126
|
case "mySkillsMatrix":
|
|
5101
5127
|
return P7({
|
|
5102
5128
|
width: e,
|
|
5103
5129
|
height: t,
|
|
5104
|
-
color:
|
|
5130
|
+
color: o,
|
|
5105
5131
|
className: r,
|
|
5106
|
-
onClick:
|
|
5132
|
+
onClick: a
|
|
5107
5133
|
});
|
|
5108
5134
|
case "skills":
|
|
5109
|
-
return
|
|
5135
|
+
return F7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5110
5136
|
case "skillsMatrices":
|
|
5111
|
-
return
|
|
5137
|
+
return j7({
|
|
5112
5138
|
width: e,
|
|
5113
5139
|
height: t,
|
|
5114
|
-
color:
|
|
5140
|
+
color: o,
|
|
5115
5141
|
className: r,
|
|
5116
|
-
onClick:
|
|
5142
|
+
onClick: a
|
|
5117
5143
|
});
|
|
5118
5144
|
case "history":
|
|
5119
|
-
return U7({ width: e, height: t, color:
|
|
5145
|
+
return U7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5120
5146
|
case "logOut":
|
|
5121
|
-
return W7({ width: e, height: t, color:
|
|
5147
|
+
return W7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5122
5148
|
case "settings":
|
|
5123
|
-
return z7({ width: e, height: t, color:
|
|
5149
|
+
return z7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5124
5150
|
case "trash":
|
|
5125
|
-
return J7({ width: e, height: t, color:
|
|
5151
|
+
return J7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5126
5152
|
case "settings2":
|
|
5127
|
-
return q7({ width: e, height: t, color:
|
|
5153
|
+
return q7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5128
5154
|
case "checkCircle":
|
|
5129
|
-
return Q7({ width: e, height: t, color:
|
|
5155
|
+
return Q7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5130
5156
|
case "cancelCircle":
|
|
5131
|
-
return X7({ width: e, height: t, color:
|
|
5157
|
+
return X7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5132
5158
|
case "visibilityIcon":
|
|
5133
5159
|
return e9({
|
|
5134
5160
|
width: e,
|
|
5135
5161
|
height: t,
|
|
5136
|
-
color:
|
|
5162
|
+
color: o,
|
|
5137
5163
|
className: r,
|
|
5138
|
-
onClick:
|
|
5164
|
+
onClick: a
|
|
5139
5165
|
});
|
|
5140
5166
|
case "visibilityOffIcon":
|
|
5141
5167
|
return t9({
|
|
5142
5168
|
width: e,
|
|
5143
5169
|
height: t,
|
|
5144
|
-
color:
|
|
5170
|
+
color: o,
|
|
5145
5171
|
className: r,
|
|
5146
|
-
onClick:
|
|
5172
|
+
onClick: a
|
|
5147
5173
|
});
|
|
5148
5174
|
case "sortUp":
|
|
5149
|
-
return i9({ width: e, height: t, color:
|
|
5175
|
+
return i9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5150
5176
|
case "sortDown":
|
|
5151
|
-
return l9({ width: e, height: t, color:
|
|
5177
|
+
return l9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5152
5178
|
case "sortDouble":
|
|
5153
|
-
return s9({ width: e, height: t, color:
|
|
5179
|
+
return s9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5154
5180
|
case "search":
|
|
5155
|
-
return n9({ width: e, height: t, color:
|
|
5181
|
+
return n9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5156
5182
|
case "arrowUpFilled":
|
|
5157
|
-
return
|
|
5183
|
+
return o9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5158
5184
|
case "arrowDownFilled":
|
|
5159
|
-
return
|
|
5185
|
+
return a9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5160
5186
|
case "arrow2Up":
|
|
5161
|
-
return _7({ width: e, height: t, color:
|
|
5187
|
+
return _7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5162
5188
|
case "arrow2Right":
|
|
5163
|
-
return b7({ width: e, height: t, color:
|
|
5189
|
+
return b7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5164
5190
|
case "arrow2Down":
|
|
5165
|
-
return y7({ width: e, height: t, color:
|
|
5191
|
+
return y7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5166
5192
|
case "arrow2Left":
|
|
5167
|
-
return E7({ width: e, height: t, color:
|
|
5193
|
+
return E7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5168
5194
|
case "link":
|
|
5169
|
-
return r9({ width: e, height: t, color:
|
|
5195
|
+
return r9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5170
5196
|
case "telegram":
|
|
5171
|
-
return h9({ width: e, height: t, color:
|
|
5197
|
+
return h9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5172
5198
|
case "mail":
|
|
5173
|
-
return d9({ width: e, height: t, color:
|
|
5199
|
+
return d9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5174
5200
|
case "github":
|
|
5175
|
-
return C9({ width: e, height: t, color:
|
|
5201
|
+
return C9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5176
5202
|
case "linkedIn":
|
|
5177
|
-
return c9({ width: e, height: t, color:
|
|
5203
|
+
return c9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5178
5204
|
case "emptyStateIcon":
|
|
5179
|
-
return g9({ width: e, height: t, color:
|
|
5205
|
+
return g9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5180
5206
|
case "dotMenuIcon":
|
|
5181
|
-
return f9({ width: e, height: t, color:
|
|
5207
|
+
return f9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5182
5208
|
case "plusCircle":
|
|
5183
|
-
return
|
|
5209
|
+
return p9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5184
5210
|
case "warning":
|
|
5185
|
-
return
|
|
5211
|
+
return u9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5186
5212
|
case "bell":
|
|
5187
|
-
return L9({ width: e, height: t, color:
|
|
5213
|
+
return L9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5188
5214
|
case "copy":
|
|
5189
|
-
return m9({ width: e, height: t, color:
|
|
5215
|
+
return m9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5190
5216
|
case "contract":
|
|
5191
|
-
return v9({ width: e, height: t, color:
|
|
5217
|
+
return v9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5192
5218
|
case "resourceManager":
|
|
5193
|
-
return k9({ width: e, height: t, color:
|
|
5219
|
+
return k9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5194
5220
|
case "image":
|
|
5195
|
-
return N9({ width: e, height: t, color:
|
|
5221
|
+
return N9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5196
5222
|
case "edit":
|
|
5197
|
-
return M9({ width: e, height: t, color:
|
|
5223
|
+
return M9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5198
5224
|
case "burgerMenu":
|
|
5199
|
-
return x9({ width: e, height: t, color:
|
|
5225
|
+
return x9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5200
5226
|
case "refresh":
|
|
5201
|
-
return Z9({ width: e, height: t, color:
|
|
5227
|
+
return Z9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5202
5228
|
case "projects":
|
|
5203
|
-
return
|
|
5229
|
+
return V9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5204
5230
|
case "user":
|
|
5205
|
-
return H9({ width: e, height: t, color:
|
|
5231
|
+
return H9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5206
5232
|
case "exit":
|
|
5207
|
-
return
|
|
5233
|
+
return R9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5208
5234
|
case "status":
|
|
5209
|
-
return _9({ width: e, height: t, color:
|
|
5235
|
+
return _9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5210
5236
|
case "community":
|
|
5211
|
-
return b9({ width: e, height: t, color:
|
|
5237
|
+
return b9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5212
5238
|
case "docs":
|
|
5213
|
-
return y9({ width: e, height: t, color:
|
|
5239
|
+
return y9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5214
5240
|
case "unpaidLeave":
|
|
5215
|
-
return E9({ width: e, height: t, color:
|
|
5241
|
+
return E9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5216
5242
|
default:
|
|
5217
5243
|
return /* @__PURE__ */ n(i1, { children: "No Icon provided" });
|
|
5218
5244
|
}
|
|
@@ -5260,7 +5286,7 @@ const X2 = (l, e) => {
|
|
|
5260
5286
|
h2: 2,
|
|
5261
5287
|
h3: 3,
|
|
5262
5288
|
h4: 4
|
|
5263
|
-
}, B9 =
|
|
5289
|
+
}, B9 = o1(
|
|
5264
5290
|
({
|
|
5265
5291
|
align: l = "inherit",
|
|
5266
5292
|
variant: e = "body1",
|
|
@@ -5271,19 +5297,19 @@ const X2 = (l, e) => {
|
|
|
5271
5297
|
whiteSpace: c = "normal",
|
|
5272
5298
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5273
5299
|
trim: d = !1
|
|
5274
|
-
},
|
|
5275
|
-
const
|
|
5276
|
-
h1(
|
|
5277
|
-
const [r,
|
|
5300
|
+
}, o) => {
|
|
5301
|
+
const a = J(null);
|
|
5302
|
+
h1(o, () => a.current);
|
|
5303
|
+
const [r, p] = K(!1);
|
|
5278
5304
|
S(() => {
|
|
5279
5305
|
var m;
|
|
5280
5306
|
if (!d) return;
|
|
5281
|
-
const
|
|
5282
|
-
|
|
5307
|
+
const u = () => {
|
|
5308
|
+
a.current && p(a.current.scrollWidth > a.current.clientWidth);
|
|
5283
5309
|
};
|
|
5284
|
-
|
|
5285
|
-
const x = new ResizeObserver(
|
|
5286
|
-
return
|
|
5310
|
+
u();
|
|
5311
|
+
const x = new ResizeObserver(u);
|
|
5312
|
+
return a.current && x.observe(a.current), (m = a.current) != null && m.parentElement && x.observe(a.current.parentElement), () => {
|
|
5287
5313
|
x.disconnect();
|
|
5288
5314
|
};
|
|
5289
5315
|
}, [d]);
|
|
@@ -5294,7 +5320,7 @@ const X2 = (l, e) => {
|
|
|
5294
5320
|
className: f,
|
|
5295
5321
|
style: { color: t, whiteSpace: d ? "nowrap" : c, display: d ? "block" : "" },
|
|
5296
5322
|
onClick: s,
|
|
5297
|
-
ref:
|
|
5323
|
+
ref: a,
|
|
5298
5324
|
ellipsis: d && r ? {
|
|
5299
5325
|
tooltip: {
|
|
5300
5326
|
title: i,
|
|
@@ -5313,7 +5339,7 @@ const X2 = (l, e) => {
|
|
|
5313
5339
|
noPadding: C = !1,
|
|
5314
5340
|
trigger: c = "click"
|
|
5315
5341
|
}) => {
|
|
5316
|
-
const [d,
|
|
5342
|
+
const [d, o] = K(!1);
|
|
5317
5343
|
return /* @__PURE__ */ n(
|
|
5318
5344
|
D2,
|
|
5319
5345
|
{
|
|
@@ -5323,8 +5349,8 @@ const X2 = (l, e) => {
|
|
|
5323
5349
|
trigger: c,
|
|
5324
5350
|
overlayClassName: `snmt-popover ${C ? "" : "padding"}`,
|
|
5325
5351
|
open: t ?? d,
|
|
5326
|
-
onOpenChange: (
|
|
5327
|
-
a
|
|
5352
|
+
onOpenChange: (a) => {
|
|
5353
|
+
o(a), i == null || i(a);
|
|
5328
5354
|
},
|
|
5329
5355
|
children: /* @__PURE__ */ n("div", { className: "wrapper", children: l })
|
|
5330
5356
|
}
|
|
@@ -5334,7 +5360,7 @@ const X2 = (l, e) => {
|
|
|
5334
5360
|
h2: 2,
|
|
5335
5361
|
h3: 3,
|
|
5336
5362
|
h4: 4
|
|
5337
|
-
}, v2 =
|
|
5363
|
+
}, v2 = o1(
|
|
5338
5364
|
({
|
|
5339
5365
|
align: l = "inherit",
|
|
5340
5366
|
variant: e = "body1",
|
|
@@ -5345,19 +5371,19 @@ const X2 = (l, e) => {
|
|
|
5345
5371
|
whiteSpace: c = "normal",
|
|
5346
5372
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5347
5373
|
trim: d = !1
|
|
5348
|
-
},
|
|
5349
|
-
const
|
|
5350
|
-
h1(
|
|
5351
|
-
const [r,
|
|
5374
|
+
}, o) => {
|
|
5375
|
+
const a = J(null);
|
|
5376
|
+
h1(o, () => a.current);
|
|
5377
|
+
const [r, p] = K(!1);
|
|
5352
5378
|
S(() => {
|
|
5353
5379
|
var m;
|
|
5354
5380
|
if (!d) return;
|
|
5355
|
-
const
|
|
5356
|
-
|
|
5381
|
+
const u = () => {
|
|
5382
|
+
a.current && p(a.current.scrollWidth > a.current.clientWidth);
|
|
5357
5383
|
};
|
|
5358
|
-
|
|
5359
|
-
const x = new ResizeObserver(
|
|
5360
|
-
return
|
|
5384
|
+
u();
|
|
5385
|
+
const x = new ResizeObserver(u);
|
|
5386
|
+
return a.current && x.observe(a.current), (m = a.current) != null && m.parentElement && x.observe(a.current.parentElement), () => {
|
|
5361
5387
|
x.disconnect();
|
|
5362
5388
|
};
|
|
5363
5389
|
}, [d]);
|
|
@@ -5368,7 +5394,7 @@ const X2 = (l, e) => {
|
|
|
5368
5394
|
className: f,
|
|
5369
5395
|
style: { color: t, whiteSpace: d ? "nowrap" : c, display: d ? "block" : "" },
|
|
5370
5396
|
onClick: s,
|
|
5371
|
-
ref:
|
|
5397
|
+
ref: a,
|
|
5372
5398
|
ellipsis: d && r ? {
|
|
5373
5399
|
tooltip: {
|
|
5374
5400
|
title: i,
|
|
@@ -5450,7 +5476,7 @@ const X2 = (l, e) => {
|
|
|
5450
5476
|
}
|
|
5451
5477
|
)
|
|
5452
5478
|
}
|
|
5453
|
-
),
|
|
5479
|
+
), F9 = ({
|
|
5454
5480
|
width: l = 20,
|
|
5455
5481
|
height: e = 20,
|
|
5456
5482
|
color: t = h.GREY_DARK_5,
|
|
@@ -5475,7 +5501,7 @@ const X2 = (l, e) => {
|
|
|
5475
5501
|
}
|
|
5476
5502
|
)
|
|
5477
5503
|
}
|
|
5478
|
-
),
|
|
5504
|
+
), j9 = ({
|
|
5479
5505
|
width: l = 20,
|
|
5480
5506
|
height: e = 20,
|
|
5481
5507
|
color: t = h.GREY_DARK_5,
|
|
@@ -5970,7 +5996,7 @@ const X2 = (l, e) => {
|
|
|
5970
5996
|
)
|
|
5971
5997
|
]
|
|
5972
5998
|
}
|
|
5973
|
-
),
|
|
5999
|
+
), a0 = ({
|
|
5974
6000
|
width: l = 20,
|
|
5975
6001
|
height: e = 20,
|
|
5976
6002
|
color: t = h.GREY_DARK_5,
|
|
@@ -6010,7 +6036,7 @@ const X2 = (l, e) => {
|
|
|
6010
6036
|
)
|
|
6011
6037
|
]
|
|
6012
6038
|
}
|
|
6013
|
-
),
|
|
6039
|
+
), o0 = ({
|
|
6014
6040
|
width: l = 20,
|
|
6015
6041
|
height: e = 20,
|
|
6016
6042
|
color: t = h.GREY_DARK_5,
|
|
@@ -6363,7 +6389,7 @@ const X2 = (l, e) => {
|
|
|
6363
6389
|
)
|
|
6364
6390
|
]
|
|
6365
6391
|
}
|
|
6366
|
-
),
|
|
6392
|
+
), p0 = ({
|
|
6367
6393
|
width: l = 20,
|
|
6368
6394
|
height: e = 20,
|
|
6369
6395
|
color: t = h.GREY_DARK_5,
|
|
@@ -6396,7 +6422,7 @@ const X2 = (l, e) => {
|
|
|
6396
6422
|
)
|
|
6397
6423
|
]
|
|
6398
6424
|
}
|
|
6399
|
-
),
|
|
6425
|
+
), u0 = ({
|
|
6400
6426
|
width: l = 20,
|
|
6401
6427
|
height: e = 20,
|
|
6402
6428
|
color: t = h.GREY_DARK_5,
|
|
@@ -6692,7 +6718,7 @@ const X2 = (l, e) => {
|
|
|
6692
6718
|
}
|
|
6693
6719
|
)
|
|
6694
6720
|
}
|
|
6695
|
-
),
|
|
6721
|
+
), V0 = ({
|
|
6696
6722
|
className: l,
|
|
6697
6723
|
color: e = h.GREY_DARK_5,
|
|
6698
6724
|
height: t = 20,
|
|
@@ -6725,7 +6751,7 @@ const X2 = (l, e) => {
|
|
|
6725
6751
|
)
|
|
6726
6752
|
]
|
|
6727
6753
|
}
|
|
6728
|
-
),
|
|
6754
|
+
), R0 = ({
|
|
6729
6755
|
className: l,
|
|
6730
6756
|
color: e = h.GREY_DARK_5,
|
|
6731
6757
|
height: t = 20,
|
|
@@ -7402,7 +7428,7 @@ const X2 = (l, e) => {
|
|
|
7402
7428
|
}
|
|
7403
7429
|
)
|
|
7404
7430
|
}
|
|
7405
|
-
),
|
|
7431
|
+
), F0 = ({
|
|
7406
7432
|
width: l = 24,
|
|
7407
7433
|
height: e = 24,
|
|
7408
7434
|
color: t = "#131314",
|
|
@@ -7435,7 +7461,7 @@ const X2 = (l, e) => {
|
|
|
7435
7461
|
)
|
|
7436
7462
|
]
|
|
7437
7463
|
}
|
|
7438
|
-
),
|
|
7464
|
+
), j0 = ({
|
|
7439
7465
|
width: l = 20,
|
|
7440
7466
|
height: e = 20,
|
|
7441
7467
|
color: t = h.GREY_DARK_5,
|
|
@@ -7575,7 +7601,7 @@ const X2 = (l, e) => {
|
|
|
7575
7601
|
color: t = h.GREY_DARK_5,
|
|
7576
7602
|
className: i,
|
|
7577
7603
|
onClick: s
|
|
7578
|
-
}) => /* @__PURE__ */
|
|
7604
|
+
}) => /* @__PURE__ */ g(
|
|
7579
7605
|
"svg",
|
|
7580
7606
|
{
|
|
7581
7607
|
width: l,
|
|
@@ -7585,16 +7611,29 @@ const X2 = (l, e) => {
|
|
|
7585
7611
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7586
7612
|
className: i,
|
|
7587
7613
|
onClick: s,
|
|
7588
|
-
children:
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7614
|
+
children: [
|
|
7615
|
+
/* @__PURE__ */ n(
|
|
7616
|
+
"path",
|
|
7617
|
+
{
|
|
7618
|
+
d: "M20.25 19V6.81055L16.1895 2.75L7 2.75C6.58579 2.75 6.25 2.41421 6.25 2C6.25 1.58579 6.58579 1.25 7 1.25L16.5 1.25C16.6989 1.25 16.8896 1.32907 17.0303 1.46973L21.5303 5.96973C21.6709 6.11038 21.75 6.30109 21.75 6.5V19C21.75 19.4142 21.4142 19.75 21 19.75C20.5858 19.75 20.25 19.4142 20.25 19Z",
|
|
7619
|
+
fill: t
|
|
7620
|
+
}
|
|
7621
|
+
),
|
|
7622
|
+
/* @__PURE__ */ n(
|
|
7623
|
+
"path",
|
|
7624
|
+
{
|
|
7625
|
+
d: "M18.75 20.5C18.75 21.7426 17.7426 22.75 16.5 22.75H4.5C3.25736 22.75 2.25 21.7426 2.25 20.5V6.5C2.25 5.25736 3.25736 4.25 4.5 4.25H14.252C14.6098 4.25013 14.953 4.39245 15.2061 4.64551L18.3545 7.79395C18.6076 8.04701 18.7499 8.39018 18.75 8.74805V20.5ZM3.75 20.5C3.75 20.9142 4.08579 21.25 4.5 21.25H16.5C16.9142 21.25 17.25 20.9142 17.25 20.5V8.81055L14.1895 5.75H4.5C4.08579 5.75 3.75 6.08579 3.75 6.5V20.5Z",
|
|
7626
|
+
fill: t
|
|
7627
|
+
}
|
|
7628
|
+
),
|
|
7629
|
+
/* @__PURE__ */ n(
|
|
7630
|
+
"path",
|
|
7631
|
+
{
|
|
7632
|
+
d: "M13.25 5C13.25 4.58579 13.5858 4.25 14 4.25C14.4142 4.25 14.75 4.58579 14.75 5V8.25H18C18.4142 8.25 18.75 8.58579 18.75 9C18.75 9.41421 18.4142 9.75 18 9.75H14.5996C13.8543 9.74979 13.2502 9.14567 13.25 8.40039V5Z",
|
|
7633
|
+
fill: t
|
|
7634
|
+
}
|
|
7635
|
+
)
|
|
7636
|
+
]
|
|
7598
7637
|
}
|
|
7599
7638
|
), J0 = ({
|
|
7600
7639
|
width: l = 20,
|
|
@@ -7629,159 +7668,159 @@ const X2 = (l, e) => {
|
|
|
7629
7668
|
disabled: C = !1,
|
|
7630
7669
|
onClick: c
|
|
7631
7670
|
}) => {
|
|
7632
|
-
const { theme: d } = s1(c1),
|
|
7671
|
+
const { theme: d } = s1(c1), o = C ? d && d === "dark" ? h.GREY_LIGHT_4 : h.GREY_DARK_1 : i, a = C ? void 0 : c, r = c && !C ? `${s || ""} clickable` : s;
|
|
7633
7672
|
return /* @__PURE__ */ n(i1, { children: (() => {
|
|
7634
7673
|
switch (l) {
|
|
7635
7674
|
case "arrow1Down":
|
|
7636
|
-
return $9({ width: e, height: t, color:
|
|
7675
|
+
return $9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7637
7676
|
case "arrow1Up":
|
|
7638
|
-
return T9({ width: e, height: t, color:
|
|
7677
|
+
return T9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7639
7678
|
case "arrow1Right":
|
|
7640
|
-
return P9({ width: e, height: t, color:
|
|
7679
|
+
return P9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7641
7680
|
case "arrow1Left":
|
|
7642
|
-
return
|
|
7681
|
+
return F9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7643
7682
|
case "info":
|
|
7644
|
-
return
|
|
7683
|
+
return j9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7645
7684
|
case "archive":
|
|
7646
|
-
return q9({ width: e, height: t, color:
|
|
7685
|
+
return q9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7647
7686
|
case "unarchive":
|
|
7648
|
-
return Q9({ width: e, height: t, color:
|
|
7687
|
+
return Q9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7649
7688
|
case "calendar":
|
|
7650
|
-
return X9({ width: e, height: t, color:
|
|
7689
|
+
return X9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7651
7690
|
case "check":
|
|
7652
|
-
return e0({ width: e, height: t, color:
|
|
7691
|
+
return e0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7653
7692
|
case "cancel":
|
|
7654
|
-
return t0({ width: e, height: t, color:
|
|
7693
|
+
return t0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7655
7694
|
case "add":
|
|
7656
|
-
return i0({ width: e, height: t, color:
|
|
7695
|
+
return i0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7657
7696
|
case "list":
|
|
7658
|
-
return l0({ width: e, height: t, color:
|
|
7697
|
+
return l0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7659
7698
|
case "dragAndDrop":
|
|
7660
|
-
return s0({ width: e, height: t, color:
|
|
7699
|
+
return s0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7661
7700
|
case "filter1":
|
|
7662
|
-
return n0({ width: e, height: t, color:
|
|
7701
|
+
return n0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7663
7702
|
case "filter2":
|
|
7664
|
-
return E0({ width: e, height: t, color:
|
|
7703
|
+
return E0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7665
7704
|
case "attention":
|
|
7666
|
-
return
|
|
7705
|
+
return a0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7667
7706
|
case "users":
|
|
7668
|
-
return
|
|
7707
|
+
return o0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7669
7708
|
case "mySkillsMatrix":
|
|
7670
7709
|
return r0({
|
|
7671
7710
|
width: e,
|
|
7672
7711
|
height: t,
|
|
7673
|
-
color:
|
|
7712
|
+
color: o,
|
|
7674
7713
|
className: r,
|
|
7675
|
-
onClick:
|
|
7714
|
+
onClick: a
|
|
7676
7715
|
});
|
|
7677
7716
|
case "skills":
|
|
7678
|
-
return C0({ width: e, height: t, color:
|
|
7717
|
+
return C0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7679
7718
|
case "skillsMatrices":
|
|
7680
7719
|
return h0({
|
|
7681
7720
|
width: e,
|
|
7682
7721
|
height: t,
|
|
7683
|
-
color:
|
|
7722
|
+
color: o,
|
|
7684
7723
|
className: r,
|
|
7685
|
-
onClick:
|
|
7724
|
+
onClick: a
|
|
7686
7725
|
});
|
|
7687
7726
|
case "history":
|
|
7688
|
-
return c0({ width: e, height: t, color:
|
|
7727
|
+
return c0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7689
7728
|
case "logOut":
|
|
7690
|
-
return d0({ width: e, height: t, color:
|
|
7729
|
+
return d0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7691
7730
|
case "settings":
|
|
7692
|
-
return g0({ width: e, height: t, color:
|
|
7731
|
+
return g0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7693
7732
|
case "trash":
|
|
7694
|
-
return w0({ width: e, height: t, color:
|
|
7733
|
+
return w0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7695
7734
|
case "settings2":
|
|
7696
|
-
return f0({ width: e, height: t, color:
|
|
7735
|
+
return f0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7697
7736
|
case "checkCircle":
|
|
7698
|
-
return
|
|
7737
|
+
return p0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7699
7738
|
case "cancelCircle":
|
|
7700
|
-
return
|
|
7739
|
+
return u0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7701
7740
|
case "visibilityIcon":
|
|
7702
7741
|
return L0({
|
|
7703
7742
|
width: e,
|
|
7704
7743
|
height: t,
|
|
7705
|
-
color:
|
|
7744
|
+
color: o,
|
|
7706
7745
|
className: r,
|
|
7707
|
-
onClick:
|
|
7746
|
+
onClick: a
|
|
7708
7747
|
});
|
|
7709
7748
|
case "visibilityOffIcon":
|
|
7710
7749
|
return m0({
|
|
7711
7750
|
width: e,
|
|
7712
7751
|
height: t,
|
|
7713
|
-
color:
|
|
7752
|
+
color: o,
|
|
7714
7753
|
className: r,
|
|
7715
|
-
onClick:
|
|
7754
|
+
onClick: a
|
|
7716
7755
|
});
|
|
7717
7756
|
case "sortUp":
|
|
7718
|
-
return v0({ width: e, height: t, color:
|
|
7757
|
+
return v0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7719
7758
|
case "sortDown":
|
|
7720
|
-
return k0({ width: e, height: t, color:
|
|
7759
|
+
return k0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7721
7760
|
case "sortDouble":
|
|
7722
|
-
return N0({ width: e, height: t, color:
|
|
7761
|
+
return N0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7723
7762
|
case "search":
|
|
7724
|
-
return M0({ width: e, height: t, color:
|
|
7763
|
+
return M0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7725
7764
|
case "arrowUpFilled":
|
|
7726
|
-
return Z0({ width: e, height: t, color:
|
|
7765
|
+
return Z0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7727
7766
|
case "arrowDownFilled":
|
|
7728
|
-
return x0({ width: e, height: t, color:
|
|
7767
|
+
return x0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7729
7768
|
case "arrow2Up":
|
|
7730
|
-
return U9({ width: e, height: t, color:
|
|
7769
|
+
return U9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7731
7770
|
case "arrow2Right":
|
|
7732
|
-
return W9({ width: e, height: t, color:
|
|
7771
|
+
return W9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7733
7772
|
case "arrow2Down":
|
|
7734
|
-
return z9({ width: e, height: t, color:
|
|
7773
|
+
return z9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7735
7774
|
case "arrow2Left":
|
|
7736
|
-
return J9({ width: e, height: t, color:
|
|
7775
|
+
return J9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7737
7776
|
case "link":
|
|
7738
|
-
return
|
|
7777
|
+
return V0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7739
7778
|
case "telegram":
|
|
7740
|
-
return H0({ width: e, height: t, color:
|
|
7779
|
+
return H0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7741
7780
|
case "mail":
|
|
7742
|
-
return b0({ width: e, height: t, color:
|
|
7781
|
+
return b0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7743
7782
|
case "github":
|
|
7744
|
-
return
|
|
7783
|
+
return R0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7745
7784
|
case "linkedIn":
|
|
7746
|
-
return _0({ width: e, height: t, color:
|
|
7785
|
+
return _0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7747
7786
|
case "emptyStateIcon":
|
|
7748
|
-
return y0({ width: e, height: t, color:
|
|
7787
|
+
return y0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7749
7788
|
case "dotMenuIcon":
|
|
7750
|
-
return A0({ width: e, height: t, color:
|
|
7789
|
+
return A0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7751
7790
|
case "plusCircle":
|
|
7752
|
-
return D0({ width: e, height: t, color:
|
|
7791
|
+
return D0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7753
7792
|
case "warning":
|
|
7754
|
-
return K0({ width: e, height: t, color:
|
|
7793
|
+
return K0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7755
7794
|
case "bell":
|
|
7756
|
-
return G0({ width: e, height: t, color:
|
|
7795
|
+
return G0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7757
7796
|
case "copy":
|
|
7758
|
-
return B0({ width: e, height: t, color:
|
|
7797
|
+
return B0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7759
7798
|
case "contract":
|
|
7760
|
-
return S0({ width: e, height: t, color:
|
|
7799
|
+
return S0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7761
7800
|
case "resourceManager":
|
|
7762
|
-
return Y0({ width: e, height: t, color:
|
|
7801
|
+
return Y0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7763
7802
|
case "image":
|
|
7764
|
-
return O0({ width: e, height: t, color:
|
|
7803
|
+
return O0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7765
7804
|
case "edit":
|
|
7766
|
-
return I0({ width: e, height: t, color:
|
|
7805
|
+
return I0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7767
7806
|
case "burgerMenu":
|
|
7768
|
-
return $0({ width: e, height: t, color:
|
|
7807
|
+
return $0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7769
7808
|
case "refresh":
|
|
7770
|
-
return T0({ width: e, height: t, color:
|
|
7809
|
+
return T0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7771
7810
|
case "projects":
|
|
7772
|
-
return P0({ width: e, height: t, color:
|
|
7811
|
+
return P0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7773
7812
|
case "user":
|
|
7774
|
-
return
|
|
7813
|
+
return j0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7775
7814
|
case "exit":
|
|
7776
|
-
return
|
|
7815
|
+
return F0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7777
7816
|
case "status":
|
|
7778
|
-
return U0({ width: e, height: t, color:
|
|
7817
|
+
return U0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7779
7818
|
case "community":
|
|
7780
|
-
return W0({ width: e, height: t, color:
|
|
7819
|
+
return W0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7781
7820
|
case "docs":
|
|
7782
|
-
return z0({ width: e, height: t, color:
|
|
7821
|
+
return z0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7783
7822
|
case "unpaidLeave":
|
|
7784
|
-
return J0({ width: e, height: t, color:
|
|
7823
|
+
return J0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7785
7824
|
default:
|
|
7786
7825
|
return /* @__PURE__ */ n(i1, { children: "No Icon provided" });
|
|
7787
7826
|
}
|
|
@@ -7883,14 +7922,14 @@ const e4 = ({
|
|
|
7883
7922
|
extraOptions: c,
|
|
7884
7923
|
selectedItemVariant: d = "default"
|
|
7885
7924
|
}) => {
|
|
7886
|
-
const { locale:
|
|
7925
|
+
const { locale: o } = s1(c1), { t: a } = t5("common", { lng: o }), [r, p] = K(!1);
|
|
7887
7926
|
if (S(() => {
|
|
7888
|
-
l.length ||
|
|
7927
|
+
l.length || p(!1);
|
|
7889
7928
|
}, [l]), !l.length)
|
|
7890
7929
|
return null;
|
|
7891
7930
|
const w = (f) => {
|
|
7892
7931
|
var L, m;
|
|
7893
|
-
return ((L = C == null ? void 0 : C.find((
|
|
7932
|
+
return ((L = C == null ? void 0 : C.find((u) => u.value === f)) == null ? void 0 : L.label) || ((m = c == null ? void 0 : c.find((u) => u.value === f)) == null ? void 0 : m.label) || f;
|
|
7894
7933
|
};
|
|
7895
7934
|
return /* @__PURE__ */ g(
|
|
7896
7935
|
S9,
|
|
@@ -7924,11 +7963,11 @@ const e4 = ({
|
|
|
7924
7963
|
),
|
|
7925
7964
|
placement: "bottomRight",
|
|
7926
7965
|
isOpen: r,
|
|
7927
|
-
setIsOpen:
|
|
7966
|
+
setIsOpen: p,
|
|
7928
7967
|
children: [
|
|
7929
7968
|
l.length,
|
|
7930
7969
|
" ",
|
|
7931
|
-
|
|
7970
|
+
a("more")
|
|
7932
7971
|
]
|
|
7933
7972
|
}
|
|
7934
7973
|
);
|
|
@@ -8041,7 +8080,7 @@ const e4 = ({
|
|
|
8041
8080
|
}
|
|
8042
8081
|
)
|
|
8043
8082
|
}
|
|
8044
|
-
),
|
|
8083
|
+
), a4 = ({
|
|
8045
8084
|
width: l = 20,
|
|
8046
8085
|
height: e = 20,
|
|
8047
8086
|
color: t = h.GREY_DARK_5,
|
|
@@ -8081,7 +8120,7 @@ const e4 = ({
|
|
|
8081
8120
|
)
|
|
8082
8121
|
]
|
|
8083
8122
|
}
|
|
8084
|
-
),
|
|
8123
|
+
), o4 = ({
|
|
8085
8124
|
width: l = 20,
|
|
8086
8125
|
height: e = 20,
|
|
8087
8126
|
color: t = h.GREY_DARK_5,
|
|
@@ -8364,7 +8403,7 @@ const e4 = ({
|
|
|
8364
8403
|
}
|
|
8365
8404
|
)
|
|
8366
8405
|
}
|
|
8367
|
-
),
|
|
8406
|
+
), p4 = ({
|
|
8368
8407
|
width: l = 20,
|
|
8369
8408
|
height: e = 20,
|
|
8370
8409
|
color: t = h.GREY_DARK_5,
|
|
@@ -8388,7 +8427,7 @@ const e4 = ({
|
|
|
8388
8427
|
}
|
|
8389
8428
|
)
|
|
8390
8429
|
}
|
|
8391
|
-
),
|
|
8430
|
+
), u4 = ({
|
|
8392
8431
|
width: l = 20,
|
|
8393
8432
|
height: e = 20,
|
|
8394
8433
|
color: t = h.GREY_DARK_5,
|
|
@@ -8790,7 +8829,7 @@ const e4 = ({
|
|
|
8790
8829
|
)
|
|
8791
8830
|
]
|
|
8792
8831
|
}
|
|
8793
|
-
),
|
|
8832
|
+
), V4 = ({
|
|
8794
8833
|
width: l = 20,
|
|
8795
8834
|
height: e = 20,
|
|
8796
8835
|
color: t = h.GREY_DARK_5,
|
|
@@ -8823,7 +8862,7 @@ const e4 = ({
|
|
|
8823
8862
|
)
|
|
8824
8863
|
]
|
|
8825
8864
|
}
|
|
8826
|
-
),
|
|
8865
|
+
), R4 = ({
|
|
8827
8866
|
width: l = 20,
|
|
8828
8867
|
height: e = 20,
|
|
8829
8868
|
color: t = h.GREY_DARK_5,
|
|
@@ -9434,7 +9473,7 @@ const e4 = ({
|
|
|
9434
9473
|
)
|
|
9435
9474
|
]
|
|
9436
9475
|
}
|
|
9437
|
-
),
|
|
9476
|
+
), F4 = ({
|
|
9438
9477
|
className: l,
|
|
9439
9478
|
color: e = h.GREY_DARK_5,
|
|
9440
9479
|
height: t = 20,
|
|
@@ -9471,7 +9510,7 @@ const e4 = ({
|
|
|
9471
9510
|
)
|
|
9472
9511
|
]
|
|
9473
9512
|
}
|
|
9474
|
-
),
|
|
9513
|
+
), j4 = ({
|
|
9475
9514
|
className: l,
|
|
9476
9515
|
color: e = h.GREY_DARK_5,
|
|
9477
9516
|
height: t = 20,
|
|
@@ -10001,7 +10040,7 @@ const e4 = ({
|
|
|
10001
10040
|
)
|
|
10002
10041
|
]
|
|
10003
10042
|
}
|
|
10004
|
-
),
|
|
10043
|
+
), a6 = ({
|
|
10005
10044
|
width: l = 20,
|
|
10006
10045
|
height: e = 20,
|
|
10007
10046
|
color: t = h.GREY_DARK_5,
|
|
@@ -10034,7 +10073,7 @@ const e4 = ({
|
|
|
10034
10073
|
)
|
|
10035
10074
|
]
|
|
10036
10075
|
}
|
|
10037
|
-
),
|
|
10076
|
+
), o6 = ({
|
|
10038
10077
|
width: l = 20,
|
|
10039
10078
|
height: e = 20,
|
|
10040
10079
|
color: t = h.GREY_DARK_5,
|
|
@@ -10141,7 +10180,7 @@ const e4 = ({
|
|
|
10141
10180
|
color: t = h.GREY_DARK_5,
|
|
10142
10181
|
className: i,
|
|
10143
10182
|
onClick: s
|
|
10144
|
-
}) => /* @__PURE__ */
|
|
10183
|
+
}) => /* @__PURE__ */ g(
|
|
10145
10184
|
"svg",
|
|
10146
10185
|
{
|
|
10147
10186
|
width: l,
|
|
@@ -10151,16 +10190,29 @@ const e4 = ({
|
|
|
10151
10190
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10152
10191
|
className: i,
|
|
10153
10192
|
onClick: s,
|
|
10154
|
-
children:
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10193
|
+
children: [
|
|
10194
|
+
/* @__PURE__ */ n(
|
|
10195
|
+
"path",
|
|
10196
|
+
{
|
|
10197
|
+
d: "M20.25 19V6.81055L16.1895 2.75L7 2.75C6.58579 2.75 6.25 2.41421 6.25 2C6.25 1.58579 6.58579 1.25 7 1.25L16.5 1.25C16.6989 1.25 16.8896 1.32907 17.0303 1.46973L21.5303 5.96973C21.6709 6.11038 21.75 6.30109 21.75 6.5V19C21.75 19.4142 21.4142 19.75 21 19.75C20.5858 19.75 20.25 19.4142 20.25 19Z",
|
|
10198
|
+
fill: t
|
|
10199
|
+
}
|
|
10200
|
+
),
|
|
10201
|
+
/* @__PURE__ */ n(
|
|
10202
|
+
"path",
|
|
10203
|
+
{
|
|
10204
|
+
d: "M18.75 20.5C18.75 21.7426 17.7426 22.75 16.5 22.75H4.5C3.25736 22.75 2.25 21.7426 2.25 20.5V6.5C2.25 5.25736 3.25736 4.25 4.5 4.25H14.252C14.6098 4.25013 14.953 4.39245 15.2061 4.64551L18.3545 7.79395C18.6076 8.04701 18.7499 8.39018 18.75 8.74805V20.5ZM3.75 20.5C3.75 20.9142 4.08579 21.25 4.5 21.25H16.5C16.9142 21.25 17.25 20.9142 17.25 20.5V8.81055L14.1895 5.75H4.5C4.08579 5.75 3.75 6.08579 3.75 6.5V20.5Z",
|
|
10205
|
+
fill: t
|
|
10206
|
+
}
|
|
10207
|
+
),
|
|
10208
|
+
/* @__PURE__ */ n(
|
|
10209
|
+
"path",
|
|
10210
|
+
{
|
|
10211
|
+
d: "M13.25 5C13.25 4.58579 13.5858 4.25 14 4.25C14.4142 4.25 14.75 4.58579 14.75 5V8.25H18C18.4142 8.25 18.75 8.58579 18.75 9C18.75 9.41421 18.4142 9.75 18 9.75H14.5996C13.8543 9.74979 13.2502 9.14567 13.25 8.40039V5Z",
|
|
10212
|
+
fill: t
|
|
10213
|
+
}
|
|
10214
|
+
)
|
|
10215
|
+
]
|
|
10164
10216
|
}
|
|
10165
10217
|
), h6 = ({
|
|
10166
10218
|
width: l = 20,
|
|
@@ -10195,159 +10247,159 @@ const e4 = ({
|
|
|
10195
10247
|
disabled: C = !1,
|
|
10196
10248
|
onClick: c
|
|
10197
10249
|
}) => {
|
|
10198
|
-
const { theme: d } = s1(c1),
|
|
10250
|
+
const { theme: d } = s1(c1), o = C ? d && d === "dark" ? h.GREY_LIGHT_4 : h.GREY_DARK_1 : i, a = C ? void 0 : c, r = c && !C ? `${s || ""} clickable` : s;
|
|
10199
10251
|
return /* @__PURE__ */ n(i1, { children: (() => {
|
|
10200
10252
|
switch (l) {
|
|
10201
10253
|
case "arrow1Down":
|
|
10202
|
-
return i4({ width: e, height: t, color:
|
|
10254
|
+
return i4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10203
10255
|
case "arrow1Up":
|
|
10204
|
-
return l4({ width: e, height: t, color:
|
|
10256
|
+
return l4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10205
10257
|
case "arrow1Right":
|
|
10206
|
-
return s4({ width: e, height: t, color:
|
|
10258
|
+
return s4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10207
10259
|
case "arrow1Left":
|
|
10208
|
-
return n4({ width: e, height: t, color:
|
|
10260
|
+
return n4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10209
10261
|
case "info":
|
|
10210
|
-
return
|
|
10262
|
+
return a4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10211
10263
|
case "archive":
|
|
10212
|
-
return c4({ width: e, height: t, color:
|
|
10264
|
+
return c4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10213
10265
|
case "unarchive":
|
|
10214
|
-
return d4({ width: e, height: t, color:
|
|
10266
|
+
return d4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10215
10267
|
case "calendar":
|
|
10216
|
-
return g4({ width: e, height: t, color:
|
|
10268
|
+
return g4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10217
10269
|
case "check":
|
|
10218
|
-
return w4({ width: e, height: t, color:
|
|
10270
|
+
return w4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10219
10271
|
case "cancel":
|
|
10220
|
-
return f4({ width: e, height: t, color:
|
|
10272
|
+
return f4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10221
10273
|
case "add":
|
|
10222
|
-
return
|
|
10274
|
+
return p4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10223
10275
|
case "list":
|
|
10224
|
-
return
|
|
10276
|
+
return u4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10225
10277
|
case "dragAndDrop":
|
|
10226
|
-
return L4({ width: e, height: t, color:
|
|
10278
|
+
return L4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10227
10279
|
case "filter1":
|
|
10228
|
-
return m4({ width: e, height: t, color:
|
|
10280
|
+
return m4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10229
10281
|
case "filter2":
|
|
10230
|
-
return
|
|
10282
|
+
return j4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10231
10283
|
case "attention":
|
|
10232
|
-
return v4({ width: e, height: t, color:
|
|
10284
|
+
return v4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10233
10285
|
case "users":
|
|
10234
|
-
return k4({ width: e, height: t, color:
|
|
10286
|
+
return k4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10235
10287
|
case "mySkillsMatrix":
|
|
10236
10288
|
return N4({
|
|
10237
10289
|
width: e,
|
|
10238
10290
|
height: t,
|
|
10239
|
-
color:
|
|
10291
|
+
color: o,
|
|
10240
10292
|
className: r,
|
|
10241
|
-
onClick:
|
|
10293
|
+
onClick: a
|
|
10242
10294
|
});
|
|
10243
10295
|
case "skills":
|
|
10244
|
-
return M4({ width: e, height: t, color:
|
|
10296
|
+
return M4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10245
10297
|
case "skillsMatrices":
|
|
10246
10298
|
return x4({
|
|
10247
10299
|
width: e,
|
|
10248
10300
|
height: t,
|
|
10249
|
-
color:
|
|
10301
|
+
color: o,
|
|
10250
10302
|
className: r,
|
|
10251
|
-
onClick:
|
|
10303
|
+
onClick: a
|
|
10252
10304
|
});
|
|
10253
10305
|
case "history":
|
|
10254
|
-
return Z4({ width: e, height: t, color:
|
|
10306
|
+
return Z4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10255
10307
|
case "logOut":
|
|
10256
|
-
return
|
|
10308
|
+
return V4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10257
10309
|
case "settings":
|
|
10258
|
-
return
|
|
10310
|
+
return R4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10259
10311
|
case "trash":
|
|
10260
|
-
return H4({ width: e, height: t, color:
|
|
10312
|
+
return H4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10261
10313
|
case "settings2":
|
|
10262
|
-
return _4({ width: e, height: t, color:
|
|
10314
|
+
return _4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10263
10315
|
case "checkCircle":
|
|
10264
|
-
return b4({ width: e, height: t, color:
|
|
10316
|
+
return b4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10265
10317
|
case "cancelCircle":
|
|
10266
|
-
return y4({ width: e, height: t, color:
|
|
10318
|
+
return y4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10267
10319
|
case "visibilityIcon":
|
|
10268
10320
|
return E4({
|
|
10269
10321
|
width: e,
|
|
10270
10322
|
height: t,
|
|
10271
|
-
color:
|
|
10323
|
+
color: o,
|
|
10272
10324
|
className: r,
|
|
10273
|
-
onClick:
|
|
10325
|
+
onClick: a
|
|
10274
10326
|
});
|
|
10275
10327
|
case "visibilityOffIcon":
|
|
10276
10328
|
return A4({
|
|
10277
10329
|
width: e,
|
|
10278
10330
|
height: t,
|
|
10279
|
-
color:
|
|
10331
|
+
color: o,
|
|
10280
10332
|
className: r,
|
|
10281
|
-
onClick:
|
|
10333
|
+
onClick: a
|
|
10282
10334
|
});
|
|
10283
10335
|
case "sortUp":
|
|
10284
|
-
return D4({ width: e, height: t, color:
|
|
10336
|
+
return D4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10285
10337
|
case "sortDown":
|
|
10286
|
-
return K4({ width: e, height: t, color:
|
|
10338
|
+
return K4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10287
10339
|
case "sortDouble":
|
|
10288
|
-
return G4({ width: e, height: t, color:
|
|
10340
|
+
return G4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10289
10341
|
case "search":
|
|
10290
|
-
return B4({ width: e, height: t, color:
|
|
10342
|
+
return B4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10291
10343
|
case "arrowUpFilled":
|
|
10292
|
-
return Y4({ width: e, height: t, color:
|
|
10344
|
+
return Y4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10293
10345
|
case "arrowDownFilled":
|
|
10294
|
-
return S4({ width: e, height: t, color:
|
|
10346
|
+
return S4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10295
10347
|
case "arrow2Up":
|
|
10296
|
-
return
|
|
10348
|
+
return o4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10297
10349
|
case "arrow2Right":
|
|
10298
|
-
return r4({ width: e, height: t, color:
|
|
10350
|
+
return r4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10299
10351
|
case "arrow2Down":
|
|
10300
|
-
return C4({ width: e, height: t, color:
|
|
10352
|
+
return C4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10301
10353
|
case "arrow2Left":
|
|
10302
|
-
return h4({ width: e, height: t, color:
|
|
10354
|
+
return h4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10303
10355
|
case "link":
|
|
10304
|
-
return O4({ width: e, height: t, color:
|
|
10356
|
+
return O4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10305
10357
|
case "telegram":
|
|
10306
|
-
return $4({ width: e, height: t, color:
|
|
10358
|
+
return $4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10307
10359
|
case "mail":
|
|
10308
|
-
return P4({ width: e, height: t, color:
|
|
10360
|
+
return P4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10309
10361
|
case "github":
|
|
10310
|
-
return I4({ width: e, height: t, color:
|
|
10362
|
+
return I4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10311
10363
|
case "linkedIn":
|
|
10312
|
-
return T4({ width: e, height: t, color:
|
|
10364
|
+
return T4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10313
10365
|
case "emptyStateIcon":
|
|
10314
|
-
return
|
|
10366
|
+
return F4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10315
10367
|
case "dotMenuIcon":
|
|
10316
|
-
return U4({ width: e, height: t, color:
|
|
10368
|
+
return U4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10317
10369
|
case "plusCircle":
|
|
10318
|
-
return W4({ width: e, height: t, color:
|
|
10370
|
+
return W4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10319
10371
|
case "warning":
|
|
10320
|
-
return z4({ width: e, height: t, color:
|
|
10372
|
+
return z4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10321
10373
|
case "bell":
|
|
10322
|
-
return J4({ width: e, height: t, color:
|
|
10374
|
+
return J4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10323
10375
|
case "copy":
|
|
10324
|
-
return q4({ width: e, height: t, color:
|
|
10376
|
+
return q4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10325
10377
|
case "contract":
|
|
10326
|
-
return Q4({ width: e, height: t, color:
|
|
10378
|
+
return Q4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10327
10379
|
case "resourceManager":
|
|
10328
|
-
return X4({ width: e, height: t, color:
|
|
10380
|
+
return X4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10329
10381
|
case "image":
|
|
10330
|
-
return e6({ width: e, height: t, color:
|
|
10382
|
+
return e6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10331
10383
|
case "edit":
|
|
10332
|
-
return t6({ width: e, height: t, color:
|
|
10384
|
+
return t6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10333
10385
|
case "burgerMenu":
|
|
10334
|
-
return i6({ width: e, height: t, color:
|
|
10386
|
+
return i6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10335
10387
|
case "refresh":
|
|
10336
|
-
return l6({ width: e, height: t, color:
|
|
10388
|
+
return l6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10337
10389
|
case "projects":
|
|
10338
|
-
return s6({ width: e, height: t, color:
|
|
10390
|
+
return s6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10339
10391
|
case "user":
|
|
10340
|
-
return
|
|
10392
|
+
return a6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10341
10393
|
case "exit":
|
|
10342
|
-
return n6({ width: e, height: t, color:
|
|
10394
|
+
return n6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10343
10395
|
case "status":
|
|
10344
|
-
return
|
|
10396
|
+
return o6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10345
10397
|
case "community":
|
|
10346
|
-
return r6({ width: e, height: t, color:
|
|
10398
|
+
return r6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10347
10399
|
case "docs":
|
|
10348
|
-
return C6({ width: e, height: t, color:
|
|
10400
|
+
return C6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10349
10401
|
case "unpaidLeave":
|
|
10350
|
-
return h6({ width: e, height: t, color:
|
|
10402
|
+
return h6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10351
10403
|
default:
|
|
10352
10404
|
return /* @__PURE__ */ n(i1, { children: "No Icon provided" });
|
|
10353
10405
|
}
|
|
@@ -10383,7 +10435,7 @@ function g6(l, e) {
|
|
|
10383
10435
|
function w6(l, e) {
|
|
10384
10436
|
return e ? h.GREY_DARK_2 : l ? h.GREY_LIGHT_0 : h.GREY_DARK_4;
|
|
10385
10437
|
}
|
|
10386
|
-
const f6 =
|
|
10438
|
+
const f6 = o1((l, e) => {
|
|
10387
10439
|
const {
|
|
10388
10440
|
value: t,
|
|
10389
10441
|
onChange: i,
|
|
@@ -10391,17 +10443,17 @@ const f6 = a1((l, e) => {
|
|
|
10391
10443
|
mode: C,
|
|
10392
10444
|
search: c = !1,
|
|
10393
10445
|
options: d,
|
|
10394
|
-
width:
|
|
10395
|
-
disabled:
|
|
10446
|
+
width: o,
|
|
10447
|
+
disabled: a = !1,
|
|
10396
10448
|
required: r = !1,
|
|
10397
|
-
clearable:
|
|
10449
|
+
clearable: p = !0,
|
|
10398
10450
|
scrollThresholdValue: w = 50,
|
|
10399
10451
|
onSearchChange: f,
|
|
10400
10452
|
onDropdownVisibleChange: L,
|
|
10401
10453
|
onScrollToEnd: m,
|
|
10402
|
-
onPopupScroll:
|
|
10454
|
+
onPopupScroll: u,
|
|
10403
10455
|
id: x,
|
|
10404
|
-
extraOptions:
|
|
10456
|
+
extraOptions: R,
|
|
10405
10457
|
dropdownRender: A,
|
|
10406
10458
|
optionRender: v,
|
|
10407
10459
|
isLoading: k,
|
|
@@ -10423,16 +10475,16 @@ const f6 = a1((l, e) => {
|
|
|
10423
10475
|
return !!((I = y == null ? void 0 : y.label) != null && I.toString().toLowerCase().includes(M.toLowerCase()));
|
|
10424
10476
|
}, Z1 = () => {
|
|
10425
10477
|
P(!0);
|
|
10426
|
-
},
|
|
10478
|
+
}, V1 = () => {
|
|
10427
10479
|
P(!1);
|
|
10428
|
-
}, l1 =
|
|
10480
|
+
}, l1 = F(
|
|
10429
10481
|
(M) => {
|
|
10430
10482
|
let y = null;
|
|
10431
10483
|
if (d1) {
|
|
10432
10484
|
const I = Array.isArray(M) ? M : [];
|
|
10433
10485
|
y = I.length > 1 ? [I[I.length - 1]] : I;
|
|
10434
|
-
const
|
|
10435
|
-
i == null || i(
|
|
10486
|
+
const a1 = y.length > 0 ? y[0] : null;
|
|
10487
|
+
i == null || i(a1), B(y);
|
|
10436
10488
|
return;
|
|
10437
10489
|
}
|
|
10438
10490
|
if (C && C !== "single") {
|
|
@@ -10443,21 +10495,21 @@ const f6 = a1((l, e) => {
|
|
|
10443
10495
|
y = Array.isArray(M) ? null : M || null, i == null || i(y), B(y);
|
|
10444
10496
|
},
|
|
10445
10497
|
[C, i, d1]
|
|
10446
|
-
),
|
|
10447
|
-
if (!(Z ||
|
|
10498
|
+
), R1 = F(() => {
|
|
10499
|
+
if (!(Z || a)) {
|
|
10448
10500
|
if (C) {
|
|
10449
10501
|
l1([]);
|
|
10450
10502
|
return;
|
|
10451
10503
|
}
|
|
10452
10504
|
l1("");
|
|
10453
10505
|
}
|
|
10454
|
-
}, [
|
|
10506
|
+
}, [a, l1, C, Z]), g1 = F(
|
|
10455
10507
|
(M) => {
|
|
10456
10508
|
const y = b.filter((I) => I !== M);
|
|
10457
10509
|
l1(y), B(y);
|
|
10458
10510
|
},
|
|
10459
10511
|
[l1, b]
|
|
10460
|
-
), E =
|
|
10512
|
+
), E = F(
|
|
10461
10513
|
(M) => (b == null ? void 0 : b.indexOf(M)) === 0 ? (
|
|
10462
10514
|
// if the search input is empty
|
|
10463
10515
|
// then display the placeholder, else do not display it
|
|
@@ -10468,14 +10520,14 @@ const f6 = a1((l, e) => {
|
|
|
10468
10520
|
M.preventDefault(), M.stopPropagation();
|
|
10469
10521
|
}, X = async (M) => {
|
|
10470
10522
|
const { target: y } = M;
|
|
10471
|
-
y.scrollTop + y.offsetHeight >= y.scrollHeight - w && (m == null || m(!0)),
|
|
10472
|
-
},
|
|
10523
|
+
y.scrollTop + y.offsetHeight >= y.scrollHeight - w && (m == null || m(!0)), u && await u(M);
|
|
10524
|
+
}, j = F(
|
|
10473
10525
|
(M) => {
|
|
10474
10526
|
var y, I;
|
|
10475
|
-
return ((y = d.find((
|
|
10527
|
+
return ((y = d.find((a1) => a1.value === M)) == null ? void 0 : y.label) || ((I = R == null ? void 0 : R.find((a1) => a1.value === M)) == null ? void 0 : I.label) || M;
|
|
10476
10528
|
},
|
|
10477
|
-
[
|
|
10478
|
-
), q =
|
|
10529
|
+
[R, d]
|
|
10530
|
+
), q = F(
|
|
10479
10531
|
(M, y = "default") => {
|
|
10480
10532
|
var I;
|
|
10481
10533
|
return /* @__PURE__ */ n(
|
|
@@ -10484,33 +10536,33 @@ const f6 = a1((l, e) => {
|
|
|
10484
10536
|
values: M,
|
|
10485
10537
|
onTagClose: g1,
|
|
10486
10538
|
maxWidth: ((I = n1.current) == null ? void 0 : I.clientWidth) || 0,
|
|
10487
|
-
disabled:
|
|
10539
|
+
disabled: a,
|
|
10488
10540
|
closable: !Z,
|
|
10489
10541
|
options: d,
|
|
10490
|
-
extraOptions:
|
|
10542
|
+
extraOptions: R,
|
|
10491
10543
|
selectedItemVariant: y
|
|
10492
10544
|
}
|
|
10493
10545
|
);
|
|
10494
10546
|
},
|
|
10495
|
-
[
|
|
10496
|
-
), e1 =
|
|
10547
|
+
[a, R, g1, d, Z]
|
|
10548
|
+
), e1 = F(
|
|
10497
10549
|
({ label: M, value: y, mode: I }) => {
|
|
10498
10550
|
if (I === "filter")
|
|
10499
10551
|
return E(y);
|
|
10500
10552
|
{
|
|
10501
|
-
const
|
|
10553
|
+
const a1 = Y === "badge" && d.find((R2) => R2.label === M), F1 = typeof M == "object" ? M : j(y);
|
|
10502
10554
|
return /* @__PURE__ */ n("div", { onMouseDown: z, className: "tag-wrapper", children: Y === "badge" ? /* @__PURE__ */ n(
|
|
10503
10555
|
k2,
|
|
10504
10556
|
{
|
|
10505
10557
|
variant: "regular",
|
|
10506
10558
|
size: "small",
|
|
10507
|
-
color:
|
|
10508
|
-
text:
|
|
10559
|
+
color: a1 ? a1.color : "cyan",
|
|
10560
|
+
text: F1
|
|
10509
10561
|
}
|
|
10510
|
-
) : /* @__PURE__ */ n(m2, { onClose: () => g1(y), disabled:
|
|
10562
|
+
) : /* @__PURE__ */ n(m2, { onClose: () => g1(y), disabled: a, children: F1 }) });
|
|
10511
10563
|
}
|
|
10512
10564
|
},
|
|
10513
|
-
[
|
|
10565
|
+
[a, j, g1, E, Y, d]
|
|
10514
10566
|
), H1 = Array.isArray(b) && b.length > 0 || !!b && typeof b == "string" && b.trim() !== "";
|
|
10515
10567
|
return /* @__PURE__ */ g(
|
|
10516
10568
|
"div",
|
|
@@ -10526,7 +10578,7 @@ const f6 = a1((l, e) => {
|
|
|
10526
10578
|
${Q === "static" ? "snmt-select-static" : ""}
|
|
10527
10579
|
${$ === "borderless" ? "snmt-select-borderless" : ""}`,
|
|
10528
10580
|
ref: n1,
|
|
10529
|
-
style: { width:
|
|
10581
|
+
style: { width: o },
|
|
10530
10582
|
children: [
|
|
10531
10583
|
/* @__PURE__ */ n(
|
|
10532
10584
|
b2,
|
|
@@ -10538,17 +10590,17 @@ const f6 = a1((l, e) => {
|
|
|
10538
10590
|
showSearch: !!c,
|
|
10539
10591
|
filterOption: c && x1,
|
|
10540
10592
|
onDropdownVisibleChange: M1,
|
|
10541
|
-
disabled:
|
|
10593
|
+
disabled: a,
|
|
10542
10594
|
value: b || void 0,
|
|
10543
10595
|
labelRender: (M) => {
|
|
10544
|
-
const y =
|
|
10545
|
-
return
|
|
10596
|
+
const y = j(M.value);
|
|
10597
|
+
return a ? /* @__PURE__ */ n("span", { style: { color: h.GREY_DARK_1 }, children: y }) : y;
|
|
10546
10598
|
},
|
|
10547
|
-
mode:
|
|
10599
|
+
mode: p6(C, d1),
|
|
10548
10600
|
variant: $,
|
|
10549
10601
|
onChange: l1,
|
|
10550
10602
|
onFocus: Z1,
|
|
10551
|
-
onBlur:
|
|
10603
|
+
onBlur: V1,
|
|
10552
10604
|
onMouseEnter: () => O(!0),
|
|
10553
10605
|
onMouseLeave: () => O(!1),
|
|
10554
10606
|
onSearch: (M) => {
|
|
@@ -10562,18 +10614,18 @@ const f6 = a1((l, e) => {
|
|
|
10562
10614
|
onPopupScroll: X,
|
|
10563
10615
|
prefix: k && /* @__PURE__ */ n(Q1, { size: "small" }),
|
|
10564
10616
|
suffixIcon: /* @__PURE__ */ n("div", { className: "wrapper-suffix-icon", children: C !== "filter" && /* @__PURE__ */ g(i1, { children: [
|
|
10565
|
-
b && !!b.length &&
|
|
10617
|
+
b && !!b.length && p && /* @__PURE__ */ n(
|
|
10566
10618
|
"div",
|
|
10567
10619
|
{
|
|
10568
|
-
onClick:
|
|
10620
|
+
onClick: R1,
|
|
10569
10621
|
style: {
|
|
10570
|
-
cursor:
|
|
10622
|
+
cursor: a ? "not-allowed" : "pointer"
|
|
10571
10623
|
},
|
|
10572
10624
|
children: /* @__PURE__ */ n(
|
|
10573
|
-
|
|
10625
|
+
u1,
|
|
10574
10626
|
{
|
|
10575
10627
|
name: "cancel",
|
|
10576
|
-
color:
|
|
10628
|
+
color: a ? h.GREY_DARK_1 : h.GREY_DARK_2
|
|
10577
10629
|
}
|
|
10578
10630
|
)
|
|
10579
10631
|
}
|
|
@@ -10586,16 +10638,16 @@ const f6 = a1((l, e) => {
|
|
|
10586
10638
|
}
|
|
10587
10639
|
),
|
|
10588
10640
|
$ === "outlined" && /* @__PURE__ */ n(
|
|
10589
|
-
|
|
10641
|
+
u1,
|
|
10590
10642
|
{
|
|
10591
10643
|
name: "arrow2Down",
|
|
10592
|
-
color:
|
|
10644
|
+
color: a ? h.GREY_DARK_1 : h.GREY_DARK_2,
|
|
10593
10645
|
className: H ? "select-arrow-rotated" : "select-arrow",
|
|
10594
10646
|
onClick: () => G(!H)
|
|
10595
10647
|
}
|
|
10596
10648
|
)
|
|
10597
10649
|
] }) }),
|
|
10598
|
-
removeIcon: /* @__PURE__ */ n(
|
|
10650
|
+
removeIcon: /* @__PURE__ */ n(u1, { name: "cancelCircle", color: h.GREY_DARK_1 }),
|
|
10599
10651
|
options: d,
|
|
10600
10652
|
optionRender: (M) => v ? v(M.data) : /* @__PURE__ */ g(m1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
10601
10653
|
/* @__PURE__ */ g(m1, { alignItems: "center", gap: 12, children: [
|
|
@@ -10617,7 +10669,7 @@ const f6 = a1((l, e) => {
|
|
|
10617
10669
|
/* @__PURE__ */ n("span", { children: M.label })
|
|
10618
10670
|
] })
|
|
10619
10671
|
] }),
|
|
10620
|
-
!C && b === M.value && /* @__PURE__ */ n(
|
|
10672
|
+
!C && b === M.value && /* @__PURE__ */ n(u1, { name: "check", color: h.BLUE_DARK_1 })
|
|
10621
10673
|
] }),
|
|
10622
10674
|
dropdownRender: (M) => /* @__PURE__ */ g("div", { className: "dropdown-container", children: [
|
|
10623
10675
|
/* @__PURE__ */ n("div", { className: "dropdown-menu", children: A ? A(M) : M }),
|
|
@@ -10628,14 +10680,14 @@ const f6 = a1((l, e) => {
|
|
|
10628
10680
|
s && $ !== "borderless" && /* @__PURE__ */ n(
|
|
10629
10681
|
"label",
|
|
10630
10682
|
{
|
|
10631
|
-
className: `${T || H1 ? "label-floating" : ""} ${
|
|
10683
|
+
className: `${T || H1 ? "label-floating" : ""} ${a ? "label-disabled" : ""} ${T ? "label-focused" : ""} ${k ? "label-loading" : ""} ${N ? "label-error" : ""}`,
|
|
10632
10684
|
children: r ? `${s}*` : s
|
|
10633
10685
|
}
|
|
10634
10686
|
),
|
|
10635
10687
|
/* @__PURE__ */ n(
|
|
10636
10688
|
"fieldset",
|
|
10637
10689
|
{
|
|
10638
|
-
className: `${T ? "fieldset-focused" : ""} ${
|
|
10690
|
+
className: `${T ? "fieldset-focused" : ""} ${a ? "fieldset-disabled" : ""} ${H1 ? "fieldset-filled" : ""} ${N ? "fieldset-error" : ""}
|
|
10639
10691
|
${D ? "fieldset-hovered" : ""}`,
|
|
10640
10692
|
children: /* @__PURE__ */ n("legend", { children: s && $ !== "borderless" && /* @__PURE__ */ n("span", { children: r ? `${s}*` : s }) })
|
|
10641
10693
|
}
|
|
@@ -10645,7 +10697,7 @@ const f6 = a1((l, e) => {
|
|
|
10645
10697
|
),
|
|
10646
10698
|
N && /* @__PURE__ */ g(m1, { justifyContent: "flex-start", gap: 6, children: [
|
|
10647
10699
|
/* @__PURE__ */ n(
|
|
10648
|
-
|
|
10700
|
+
u1,
|
|
10649
10701
|
{
|
|
10650
10702
|
name: "attention",
|
|
10651
10703
|
color: h.NOTIFICATION_ERROR_DARK,
|
|
@@ -10659,10 +10711,10 @@ const f6 = a1((l, e) => {
|
|
|
10659
10711
|
}
|
|
10660
10712
|
);
|
|
10661
10713
|
});
|
|
10662
|
-
function
|
|
10714
|
+
function p6(l, e) {
|
|
10663
10715
|
return l === "filter" || e ? "multiple" : l === "single" ? void 0 : l;
|
|
10664
10716
|
}
|
|
10665
|
-
function
|
|
10717
|
+
function u6(l, e = 500) {
|
|
10666
10718
|
const t = J();
|
|
10667
10719
|
return S(() => () => {
|
|
10668
10720
|
t.current && clearTimeout(t.current);
|
|
@@ -10681,7 +10733,7 @@ function X1(l) {
|
|
|
10681
10733
|
}
|
|
10682
10734
|
const B1 = 100, w1 = {
|
|
10683
10735
|
offset: 0
|
|
10684
|
-
}, e2 =
|
|
10736
|
+
}, e2 = o1((l, e) => {
|
|
10685
10737
|
const {
|
|
10686
10738
|
loadOptions: t,
|
|
10687
10739
|
width: i,
|
|
@@ -10689,22 +10741,22 @@ const B1 = 100, w1 = {
|
|
|
10689
10741
|
id: C,
|
|
10690
10742
|
disabled: c,
|
|
10691
10743
|
scrollThresholdValue: d,
|
|
10692
|
-
placeholder:
|
|
10693
|
-
mode:
|
|
10744
|
+
placeholder: o,
|
|
10745
|
+
mode: a,
|
|
10694
10746
|
loadOnClosedState: r,
|
|
10695
|
-
preloadOptions:
|
|
10747
|
+
preloadOptions: p,
|
|
10696
10748
|
extraOptions: w,
|
|
10697
10749
|
onDropdownVisibleChange: f,
|
|
10698
10750
|
optionRender: L,
|
|
10699
10751
|
dropdownRender: m,
|
|
10700
|
-
readOnly:
|
|
10752
|
+
readOnly: u,
|
|
10701
10753
|
clearable: x = !0,
|
|
10702
|
-
required:
|
|
10754
|
+
required: R = !1,
|
|
10703
10755
|
error: A,
|
|
10704
10756
|
variant: v = "outlined"
|
|
10705
10757
|
} = l, [k, Z] = K(), [N, Y] = K(w1), [$, Q] = K(!1), [H, G] = K(), [T, P] = K(!1), [D, O] = K(
|
|
10706
10758
|
w ?? []
|
|
10707
|
-
), W = X1(N.offset), _ = X1(H), [b, B] = K(!1), n1 = J(!1), d1 =
|
|
10759
|
+
), W = X1(N.offset), _ = X1(H), [b, B] = K(!1), n1 = J(!1), d1 = F(
|
|
10708
10760
|
async ({
|
|
10709
10761
|
limit: E = B1,
|
|
10710
10762
|
offset: z,
|
|
@@ -10712,30 +10764,30 @@ const B1 = 100, w1 = {
|
|
|
10712
10764
|
}) => {
|
|
10713
10765
|
Q(!0);
|
|
10714
10766
|
try {
|
|
10715
|
-
const
|
|
10767
|
+
const j = await t({
|
|
10716
10768
|
limit: E,
|
|
10717
10769
|
offset: z,
|
|
10718
10770
|
search: X
|
|
10719
10771
|
});
|
|
10720
10772
|
Z(
|
|
10721
|
-
(q) => z === 0 ?
|
|
10773
|
+
(q) => z === 0 ? j.options : [...q ?? [], ...j.options]
|
|
10722
10774
|
), Y((q) => ({
|
|
10723
10775
|
...q,
|
|
10724
|
-
count:
|
|
10776
|
+
count: j.count
|
|
10725
10777
|
}));
|
|
10726
|
-
} catch (
|
|
10727
|
-
return console.error("AsyncSelect. fetchOptions error",
|
|
10778
|
+
} catch (j) {
|
|
10779
|
+
return console.error("AsyncSelect. fetchOptions error", j), [];
|
|
10728
10780
|
} finally {
|
|
10729
10781
|
Q(!1);
|
|
10730
10782
|
}
|
|
10731
10783
|
},
|
|
10732
10784
|
[t]
|
|
10733
|
-
), M1 =
|
|
10785
|
+
), M1 = u6((E) => {
|
|
10734
10786
|
G(E), E || Y(w1);
|
|
10735
|
-
}), x1 =
|
|
10787
|
+
}), x1 = F(
|
|
10736
10788
|
(E) => M1(E),
|
|
10737
10789
|
[M1]
|
|
10738
|
-
), Z1 =
|
|
10790
|
+
), Z1 = F(
|
|
10739
10791
|
async (E) => {
|
|
10740
10792
|
$ || E && N.count && N.count > ((k == null ? void 0 : k.length) ?? 0) && Y((z) => ({
|
|
10741
10793
|
...z,
|
|
@@ -10743,7 +10795,7 @@ const B1 = 100, w1 = {
|
|
|
10743
10795
|
}));
|
|
10744
10796
|
},
|
|
10745
10797
|
[$, k == null ? void 0 : k.length, N.count]
|
|
10746
|
-
),
|
|
10798
|
+
), V1 = F(
|
|
10747
10799
|
(E) => {
|
|
10748
10800
|
P(E), !E && H && (G(void 0), Y(w1), B(!0)), f == null || f(E);
|
|
10749
10801
|
},
|
|
@@ -10752,25 +10804,25 @@ const B1 = 100, w1 = {
|
|
|
10752
10804
|
S(() => {
|
|
10753
10805
|
!n1.current || $ || (b || T && (W !== N.offset || _ !== H || !k)) && (d1({ offset: N.offset, limit: B1, search: H }), b && B(!1));
|
|
10754
10806
|
}, [b, T, N.offset, H, W, _, k, $]), S(() => {
|
|
10755
|
-
(r ||
|
|
10807
|
+
(r || p) && d1(w1), n1.current = !0;
|
|
10756
10808
|
}, []), S(() => {
|
|
10757
10809
|
w && O((E) => {
|
|
10758
10810
|
const z = w.filter(
|
|
10759
|
-
(X) => !E.some((
|
|
10811
|
+
(X) => !E.some((j) => j.value === X.value)
|
|
10760
10812
|
);
|
|
10761
10813
|
return [...E, ...z];
|
|
10762
10814
|
});
|
|
10763
10815
|
}, [w]);
|
|
10764
|
-
const l1 =
|
|
10816
|
+
const l1 = F(
|
|
10765
10817
|
(E) => {
|
|
10766
10818
|
s && s(E);
|
|
10767
10819
|
let z = [];
|
|
10768
|
-
if (
|
|
10820
|
+
if (a ? z = Array.isArray(E) ? E : [] : z = E ? [E] : [], H) {
|
|
10769
10821
|
const X = z.filter(
|
|
10770
|
-
(
|
|
10822
|
+
(j) => !(D != null && D.some((q) => q.value === j))
|
|
10771
10823
|
);
|
|
10772
|
-
X.length > 0 && O((
|
|
10773
|
-
...
|
|
10824
|
+
X.length > 0 && O((j = []) => [
|
|
10825
|
+
...j,
|
|
10774
10826
|
...X.map((q) => {
|
|
10775
10827
|
const e1 = k == null ? void 0 : k.find((H1) => H1.value === q);
|
|
10776
10828
|
return {
|
|
@@ -10783,26 +10835,26 @@ const B1 = 100, w1 = {
|
|
|
10783
10835
|
]), G(void 0), Y(w1), B(!0);
|
|
10784
10836
|
}
|
|
10785
10837
|
},
|
|
10786
|
-
[s, H,
|
|
10787
|
-
),
|
|
10838
|
+
[s, H, a, k, D]
|
|
10839
|
+
), R1 = U1(
|
|
10788
10840
|
() => ({
|
|
10789
10841
|
id: C,
|
|
10790
10842
|
width: i,
|
|
10791
10843
|
onChange: l1,
|
|
10792
10844
|
ref: e,
|
|
10793
|
-
placeholder:
|
|
10845
|
+
placeholder: o,
|
|
10794
10846
|
search: !0,
|
|
10795
10847
|
onSearchChange: x1,
|
|
10796
|
-
onDropdownVisibleChange:
|
|
10848
|
+
onDropdownVisibleChange: V1,
|
|
10797
10849
|
scrollThresholdValue: d,
|
|
10798
10850
|
onScrollToEnd: Z1,
|
|
10799
10851
|
disabled: c,
|
|
10800
10852
|
isLoading: $,
|
|
10801
10853
|
optionRender: L,
|
|
10802
10854
|
dropdownRender: m,
|
|
10803
|
-
readOnly:
|
|
10855
|
+
readOnly: u,
|
|
10804
10856
|
clearable: x,
|
|
10805
|
-
required:
|
|
10857
|
+
required: R,
|
|
10806
10858
|
error: A,
|
|
10807
10859
|
variant: v
|
|
10808
10860
|
}),
|
|
@@ -10811,18 +10863,18 @@ const B1 = 100, w1 = {
|
|
|
10811
10863
|
i,
|
|
10812
10864
|
l1,
|
|
10813
10865
|
e,
|
|
10814
|
-
|
|
10866
|
+
o,
|
|
10815
10867
|
x1,
|
|
10816
|
-
|
|
10868
|
+
V1,
|
|
10817
10869
|
d,
|
|
10818
10870
|
Z1,
|
|
10819
10871
|
c,
|
|
10820
10872
|
$,
|
|
10821
10873
|
L,
|
|
10822
10874
|
m,
|
|
10823
|
-
|
|
10875
|
+
u,
|
|
10824
10876
|
x,
|
|
10825
|
-
|
|
10877
|
+
R,
|
|
10826
10878
|
A,
|
|
10827
10879
|
v
|
|
10828
10880
|
]
|
|
@@ -10833,22 +10885,22 @@ const B1 = 100, w1 = {
|
|
|
10833
10885
|
}
|
|
10834
10886
|
}));
|
|
10835
10887
|
const g1 = U1(() => {
|
|
10836
|
-
const E =
|
|
10837
|
-
mode:
|
|
10888
|
+
const E = a && a !== "single", z = l.selectedItemVariant === "badge", X = z ? k || [] : k || [], j = D, q = l, e1 = E ? {
|
|
10889
|
+
mode: a,
|
|
10838
10890
|
overflowBehaviour: q.overflowBehaviour,
|
|
10839
10891
|
value: q.value
|
|
10840
10892
|
} : {
|
|
10841
|
-
mode:
|
|
10893
|
+
mode: a,
|
|
10842
10894
|
value: l.value
|
|
10843
10895
|
};
|
|
10844
10896
|
return {
|
|
10845
|
-
...
|
|
10897
|
+
...R1,
|
|
10846
10898
|
...e1,
|
|
10847
10899
|
selectedItemVariant: l.selectedItemVariant,
|
|
10848
10900
|
options: X,
|
|
10849
|
-
extraOptions:
|
|
10901
|
+
extraOptions: j
|
|
10850
10902
|
};
|
|
10851
|
-
}, [
|
|
10903
|
+
}, [a, l, R1, D, k]);
|
|
10852
10904
|
return /* @__PURE__ */ n("div", { className: "snmt-async-select", children: /* @__PURE__ */ n(f6, { ...g1 }) });
|
|
10853
10905
|
});
|
|
10854
10906
|
var y1 = /* @__PURE__ */ ((l) => (l.ACTIVE = "Active", l.ARCHIVED = "Archived", l))(y1 || {});
|
|
@@ -10899,9 +10951,9 @@ const N2 = (l, e) => () => {
|
|
|
10899
10951
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
10900
10952
|
const i = e.languages[0], s = e.options ? e.options.fallbackLng : !1, C = e.languages[e.languages.length - 1];
|
|
10901
10953
|
if (i.toLowerCase() === "cimode") return !0;
|
|
10902
|
-
const c = (d,
|
|
10903
|
-
const
|
|
10904
|
-
return
|
|
10954
|
+
const c = (d, o) => {
|
|
10955
|
+
const a = e.services.backendConnector.state[`${d}|${o}`];
|
|
10956
|
+
return a === -1 || a === 2;
|
|
10905
10957
|
};
|
|
10906
10958
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, l) ? !1 : !!(e.hasResourceBundle(i, l) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(i, l) && (!s || c(C, l)));
|
|
10907
10959
|
}, N6 = function(l, e) {
|
|
@@ -10933,7 +10985,7 @@ const N2 = (l, e) => () => {
|
|
|
10933
10985
|
"…": "…",
|
|
10934
10986
|
"/": "/",
|
|
10935
10987
|
"/": "/"
|
|
10936
|
-
},
|
|
10988
|
+
}, V6 = (l) => Z6[l], R6 = (l) => l.replace(x6, V6);
|
|
10937
10989
|
let $1 = {
|
|
10938
10990
|
bindI18n: "languageChanged",
|
|
10939
10991
|
bindI18nStore: "",
|
|
@@ -10942,7 +10994,7 @@ let $1 = {
|
|
|
10942
10994
|
transWrapTextNodes: "",
|
|
10943
10995
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
10944
10996
|
useSuspense: !0,
|
|
10945
|
-
unescape:
|
|
10997
|
+
unescape: R6
|
|
10946
10998
|
};
|
|
10947
10999
|
const H6 = function() {
|
|
10948
11000
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -10959,10 +11011,10 @@ const b6 = (l) => {
|
|
|
10959
11011
|
init(l) {
|
|
10960
11012
|
H6(l.options.react), b6(l);
|
|
10961
11013
|
}
|
|
10962
|
-
}, A6 =
|
|
11014
|
+
}, A6 = p2();
|
|
10963
11015
|
class D6 {
|
|
10964
11016
|
constructor() {
|
|
10965
|
-
|
|
11017
|
+
j1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
|
10966
11018
|
this.usedNamespaces = {};
|
|
10967
11019
|
}
|
|
10968
11020
|
addUsedNamespaces(e) {
|
|
@@ -10976,7 +11028,7 @@ const K6 = (l, e) => {
|
|
|
10976
11028
|
return S(() => {
|
|
10977
11029
|
t.current = l;
|
|
10978
11030
|
}, [l, e]), t.current;
|
|
10979
|
-
}, x2 = (l, e, t, i) => l.getFixedT(e, t, i), G6 = (l, e, t, i) =>
|
|
11031
|
+
}, x2 = (l, e, t, i) => l.getFixedT(e, t, i), G6 = (l, e, t, i) => F(x2(l, e, t, i), [l, e, t, i]), B6 = function(l) {
|
|
10980
11032
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
10981
11033
|
const {
|
|
10982
11034
|
i18n: t
|
|
@@ -10996,39 +11048,39 @@ const K6 = (l, e) => {
|
|
|
10996
11048
|
...e
|
|
10997
11049
|
}, {
|
|
10998
11050
|
useSuspense: d,
|
|
10999
|
-
keyPrefix:
|
|
11051
|
+
keyPrefix: o
|
|
11000
11052
|
} = c;
|
|
11001
|
-
let
|
|
11002
|
-
|
|
11003
|
-
const r = (C.isInitialized || C.initializedStoreOnce) &&
|
|
11004
|
-
let
|
|
11005
|
-
e.lng && (
|
|
11006
|
-
const x = K6(
|
|
11053
|
+
let a = l;
|
|
11054
|
+
a = C1(a) ? [a] : a || ["translation"], C.reportNamespaces.addUsedNamespaces && C.reportNamespaces.addUsedNamespaces(a);
|
|
11055
|
+
const r = (C.isInitialized || C.initializedStoreOnce) && a.every((v) => N6(v, C, c)), p = G6(C, e.lng || null, c.nsMode === "fallback" ? a : a[0], o), w = () => p, f = () => x2(C, e.lng || null, c.nsMode === "fallback" ? a : a[0], o), [L, m] = K(w);
|
|
11056
|
+
let u = a.join();
|
|
11057
|
+
e.lng && (u = `${e.lng}${u}`);
|
|
11058
|
+
const x = K6(u), R = J(!0);
|
|
11007
11059
|
S(() => {
|
|
11008
11060
|
const {
|
|
11009
11061
|
bindI18n: v,
|
|
11010
11062
|
bindI18nStore: k
|
|
11011
11063
|
} = c;
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
}) : i2(C,
|
|
11015
|
-
|
|
11016
|
-
})), r && x && x !==
|
|
11064
|
+
R.current = !0, !r && !d && (e.lng ? l2(C, e.lng, a, () => {
|
|
11065
|
+
R.current && m(f);
|
|
11066
|
+
}) : i2(C, a, () => {
|
|
11067
|
+
R.current && m(f);
|
|
11068
|
+
})), r && x && x !== u && R.current && m(f);
|
|
11017
11069
|
const Z = () => {
|
|
11018
|
-
|
|
11070
|
+
R.current && m(f);
|
|
11019
11071
|
};
|
|
11020
11072
|
return v && C && C.on(v, Z), k && C && C.store.on(k, Z), () => {
|
|
11021
|
-
|
|
11073
|
+
R.current = !1, v && C && v.split(" ").forEach((N) => C.off(N, Z)), k && C && k.split(" ").forEach((N) => C.store.off(N, Z));
|
|
11022
11074
|
};
|
|
11023
|
-
}, [C,
|
|
11024
|
-
|
|
11025
|
-
}, [C,
|
|
11075
|
+
}, [C, u]), S(() => {
|
|
11076
|
+
R.current && r && m(w);
|
|
11077
|
+
}, [C, o, r]);
|
|
11026
11078
|
const A = [L, C, r];
|
|
11027
11079
|
if (A.t = L, A.i18n = C, A.ready = r, r || !r && !d) return A;
|
|
11028
11080
|
throw new Promise((v) => {
|
|
11029
|
-
e.lng ? l2(C, e.lng,
|
|
11081
|
+
e.lng ? l2(C, e.lng, a, () => v()) : i2(C, a, () => v());
|
|
11030
11082
|
});
|
|
11031
|
-
},
|
|
11083
|
+
}, V = (l) => typeof l == "string", L1 = () => {
|
|
11032
11084
|
let l, e;
|
|
11033
11085
|
const t = new Promise((i, s) => {
|
|
11034
11086
|
l = i, e = s;
|
|
@@ -11038,19 +11090,19 @@ const K6 = (l, e) => {
|
|
|
11038
11090
|
l.forEach((i) => {
|
|
11039
11091
|
e[i] && (t[i] = e[i]);
|
|
11040
11092
|
});
|
|
11041
|
-
}, Y6 = /###/g, n2 = (l) => l && l.indexOf("###") > -1 ? l.replace(Y6, ".") : l,
|
|
11042
|
-
const i =
|
|
11093
|
+
}, Y6 = /###/g, n2 = (l) => l && l.indexOf("###") > -1 ? l.replace(Y6, ".") : l, a2 = (l) => !l || V(l), v1 = (l, e, t) => {
|
|
11094
|
+
const i = V(e) ? e.split(".") : e;
|
|
11043
11095
|
let s = 0;
|
|
11044
11096
|
for (; s < i.length - 1; ) {
|
|
11045
|
-
if (
|
|
11097
|
+
if (a2(l)) return {};
|
|
11046
11098
|
const C = n2(i[s]);
|
|
11047
11099
|
!l[C] && t && (l[C] = new t()), Object.prototype.hasOwnProperty.call(l, C) ? l = l[C] : l = {}, ++s;
|
|
11048
11100
|
}
|
|
11049
|
-
return
|
|
11101
|
+
return a2(l) ? {} : {
|
|
11050
11102
|
obj: l,
|
|
11051
11103
|
k: n2(i[s])
|
|
11052
11104
|
};
|
|
11053
|
-
},
|
|
11105
|
+
}, o2 = (l, e, t) => {
|
|
11054
11106
|
const {
|
|
11055
11107
|
obj: i,
|
|
11056
11108
|
k: s
|
|
@@ -11081,7 +11133,7 @@ const K6 = (l, e) => {
|
|
|
11081
11133
|
return i !== void 0 ? i : E1(e, t);
|
|
11082
11134
|
}, Z2 = (l, e, t) => {
|
|
11083
11135
|
for (const i in e)
|
|
11084
|
-
i !== "__proto__" && i !== "constructor" && (i in l ?
|
|
11136
|
+
i !== "__proto__" && i !== "constructor" && (i in l ? V(l[i]) || l[i] instanceof String || V(e[i]) || e[i] instanceof String ? t && (l[i] = e[i]) : Z2(l[i], e[i], t) : l[i] = e[i]);
|
|
11085
11137
|
return l;
|
|
11086
11138
|
}, f1 = (l) => l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
11087
11139
|
var $6 = {
|
|
@@ -11092,7 +11144,7 @@ var $6 = {
|
|
|
11092
11144
|
"'": "'",
|
|
11093
11145
|
"/": "/"
|
|
11094
11146
|
};
|
|
11095
|
-
const T6 = (l) =>
|
|
11147
|
+
const T6 = (l) => V(l) ? l.replace(/[&<>"'\/]/g, (e) => $6[e]) : l;
|
|
11096
11148
|
class P6 {
|
|
11097
11149
|
constructor(e) {
|
|
11098
11150
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
@@ -11105,11 +11157,11 @@ class P6 {
|
|
|
11105
11157
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, i), this.regExpQueue.push(e), i;
|
|
11106
11158
|
}
|
|
11107
11159
|
}
|
|
11108
|
-
const
|
|
11160
|
+
const F6 = [" ", ",", "?", "!", ";"], j6 = new P6(20), U6 = (l, e, t) => {
|
|
11109
11161
|
e = e || "", t = t || "";
|
|
11110
|
-
const i =
|
|
11162
|
+
const i = F6.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
|
|
11111
11163
|
if (i.length === 0) return !0;
|
|
11112
|
-
const s =
|
|
11164
|
+
const s = j6.getRegExp(`(${i.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
|
11113
11165
|
let C = !s.test(l);
|
|
11114
11166
|
if (!C) {
|
|
11115
11167
|
const c = l.indexOf(t);
|
|
@@ -11126,11 +11178,11 @@ const j6 = [" ", ",", "?", "!", ";"], F6 = new P6(20), U6 = (l, e, t) => {
|
|
|
11126
11178
|
if (!s || typeof s != "object")
|
|
11127
11179
|
return;
|
|
11128
11180
|
let c, d = "";
|
|
11129
|
-
for (let
|
|
11130
|
-
if (
|
|
11131
|
-
if (["string", "number", "boolean"].indexOf(typeof c) > -1 &&
|
|
11181
|
+
for (let o = C; o < i.length; ++o)
|
|
11182
|
+
if (o !== C && (d += t), d += i[o], c = s[d], c !== void 0) {
|
|
11183
|
+
if (["string", "number", "boolean"].indexOf(typeof c) > -1 && o < i.length - 1)
|
|
11132
11184
|
continue;
|
|
11133
|
-
C +=
|
|
11185
|
+
C += o - C + 1;
|
|
11134
11186
|
break;
|
|
11135
11187
|
}
|
|
11136
11188
|
s = c;
|
|
@@ -11181,7 +11233,7 @@ class D1 {
|
|
|
11181
11233
|
return this.forward(t, "warn", "WARNING DEPRECATED: ", !0);
|
|
11182
11234
|
}
|
|
11183
11235
|
forward(e, t, i, s) {
|
|
11184
|
-
return s && !this.debug ? null : (
|
|
11236
|
+
return s && !this.debug ? null : (V(e[0]) && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
11185
11237
|
}
|
|
11186
11238
|
create(e) {
|
|
11187
11239
|
return new D1(this.logger, {
|
|
@@ -11218,12 +11270,12 @@ class G1 {
|
|
|
11218
11270
|
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
11219
11271
|
i[s - 1] = arguments[s];
|
|
11220
11272
|
this.observers[e] && Array.from(this.observers[e].entries()).forEach((c) => {
|
|
11221
|
-
let [d,
|
|
11222
|
-
for (let
|
|
11273
|
+
let [d, o] = c;
|
|
11274
|
+
for (let a = 0; a < o; a++)
|
|
11223
11275
|
d(...i);
|
|
11224
11276
|
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((c) => {
|
|
11225
|
-
let [d,
|
|
11226
|
-
for (let
|
|
11277
|
+
let [d, o] = c;
|
|
11278
|
+
for (let a = 0; a < o; a++)
|
|
11227
11279
|
d.apply(d, [e, ...i]);
|
|
11228
11280
|
});
|
|
11229
11281
|
}
|
|
@@ -11247,9 +11299,9 @@ class r2 extends G1 {
|
|
|
11247
11299
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
11248
11300
|
const C = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, c = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
11249
11301
|
let d;
|
|
11250
|
-
e.indexOf(".") > -1 ? d = e.split(".") : (d = [e, t], i && (Array.isArray(i) ? d.push(...i) :
|
|
11251
|
-
const
|
|
11252
|
-
return !
|
|
11302
|
+
e.indexOf(".") > -1 ? d = e.split(".") : (d = [e, t], i && (Array.isArray(i) ? d.push(...i) : V(i) && C ? d.push(...i.split(C)) : d.push(i)));
|
|
11303
|
+
const o = E1(this.data, d);
|
|
11304
|
+
return !o && !t && !i && e.indexOf(".") > -1 && (e = d[0], t = d[1], i = d.slice(2).join(".")), o || !c || !V(i) ? o : T1(this.data && this.data[e] && this.data[e][t], i, C);
|
|
11253
11305
|
}
|
|
11254
11306
|
addResource(e, t, i, s) {
|
|
11255
11307
|
let C = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -11257,14 +11309,14 @@ class r2 extends G1 {
|
|
|
11257
11309
|
};
|
|
11258
11310
|
const c = C.keySeparator !== void 0 ? C.keySeparator : this.options.keySeparator;
|
|
11259
11311
|
let d = [e, t];
|
|
11260
|
-
i && (d = d.concat(c ? i.split(c) : i)), e.indexOf(".") > -1 && (d = e.split("."), s = t, t = d[1]), this.addNamespaces(t),
|
|
11312
|
+
i && (d = d.concat(c ? i.split(c) : i)), e.indexOf(".") > -1 && (d = e.split("."), s = t, t = d[1]), this.addNamespaces(t), o2(this.data, d, s), C.silent || this.emit("added", e, t, i, s);
|
|
11261
11313
|
}
|
|
11262
11314
|
addResources(e, t, i) {
|
|
11263
11315
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
11264
11316
|
silent: !1
|
|
11265
11317
|
};
|
|
11266
11318
|
for (const C in i)
|
|
11267
|
-
(
|
|
11319
|
+
(V(i[C]) || Array.isArray(i[C])) && this.addResource(e, t, C, i[C], {
|
|
11268
11320
|
silent: !0
|
|
11269
11321
|
});
|
|
11270
11322
|
s.silent || this.emit("added", e, t, i);
|
|
@@ -11275,11 +11327,11 @@ class r2 extends G1 {
|
|
|
11275
11327
|
skipCopy: !1
|
|
11276
11328
|
}, d = [e, t];
|
|
11277
11329
|
e.indexOf(".") > -1 && (d = e.split("."), s = i, i = t, t = d[1]), this.addNamespaces(t);
|
|
11278
|
-
let
|
|
11279
|
-
c.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? Z2(
|
|
11280
|
-
...
|
|
11330
|
+
let o = E1(this.data, d) || {};
|
|
11331
|
+
c.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? Z2(o, i, C) : o = {
|
|
11332
|
+
...o,
|
|
11281
11333
|
...i
|
|
11282
|
-
},
|
|
11334
|
+
}, o2(this.data, d, o), c.silent || this.emit("added", e, t, i);
|
|
11283
11335
|
}
|
|
11284
11336
|
removeResourceBundle(e, t) {
|
|
11285
11337
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -11303,7 +11355,7 @@ class r2 extends G1 {
|
|
|
11303
11355
|
return this.data;
|
|
11304
11356
|
}
|
|
11305
11357
|
}
|
|
11306
|
-
var
|
|
11358
|
+
var V2 = {
|
|
11307
11359
|
processors: {},
|
|
11308
11360
|
addPostProcessor(l) {
|
|
11309
11361
|
this.processors[l.name] = l;
|
|
@@ -11339,18 +11391,18 @@ class K1 extends G1 {
|
|
|
11339
11391
|
let C = t.ns || this.options.defaultNS || [];
|
|
11340
11392
|
const c = i && e.indexOf(i) > -1, d = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !U6(e, i, s);
|
|
11341
11393
|
if (c && !d) {
|
|
11342
|
-
const
|
|
11343
|
-
if (
|
|
11394
|
+
const o = e.match(this.interpolator.nestingRegexp);
|
|
11395
|
+
if (o && o.length > 0)
|
|
11344
11396
|
return {
|
|
11345
11397
|
key: e,
|
|
11346
|
-
namespaces:
|
|
11398
|
+
namespaces: V(C) ? [C] : C
|
|
11347
11399
|
};
|
|
11348
|
-
const
|
|
11349
|
-
(i !== s || i === s && this.options.ns.indexOf(
|
|
11400
|
+
const a = e.split(i);
|
|
11401
|
+
(i !== s || i === s && this.options.ns.indexOf(a[0]) > -1) && (C = a.shift()), e = a.join(s);
|
|
11350
11402
|
}
|
|
11351
11403
|
return {
|
|
11352
11404
|
key: e,
|
|
11353
|
-
namespaces:
|
|
11405
|
+
namespaces: V(C) ? [C] : C
|
|
11354
11406
|
};
|
|
11355
11407
|
}
|
|
11356
11408
|
translate(e, t, i) {
|
|
@@ -11361,39 +11413,39 @@ class K1 extends G1 {
|
|
|
11361
11413
|
const s = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, C = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
11362
11414
|
key: c,
|
|
11363
11415
|
namespaces: d
|
|
11364
|
-
} = this.extractFromKey(e[e.length - 1], t),
|
|
11365
|
-
if (
|
|
11416
|
+
} = this.extractFromKey(e[e.length - 1], t), o = d[d.length - 1], a = t.lng || this.language, r = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
11417
|
+
if (a && a.toLowerCase() === "cimode") {
|
|
11366
11418
|
if (r) {
|
|
11367
11419
|
const v = t.nsSeparator || this.options.nsSeparator;
|
|
11368
11420
|
return s ? {
|
|
11369
|
-
res: `${
|
|
11421
|
+
res: `${o}${v}${c}`,
|
|
11370
11422
|
usedKey: c,
|
|
11371
11423
|
exactUsedKey: c,
|
|
11372
|
-
usedLng:
|
|
11373
|
-
usedNS:
|
|
11424
|
+
usedLng: a,
|
|
11425
|
+
usedNS: o,
|
|
11374
11426
|
usedParams: this.getUsedParamsDetails(t)
|
|
11375
|
-
} : `${
|
|
11427
|
+
} : `${o}${v}${c}`;
|
|
11376
11428
|
}
|
|
11377
11429
|
return s ? {
|
|
11378
11430
|
res: c,
|
|
11379
11431
|
usedKey: c,
|
|
11380
11432
|
exactUsedKey: c,
|
|
11381
|
-
usedLng:
|
|
11382
|
-
usedNS:
|
|
11433
|
+
usedLng: a,
|
|
11434
|
+
usedNS: o,
|
|
11383
11435
|
usedParams: this.getUsedParamsDetails(t)
|
|
11384
11436
|
} : c;
|
|
11385
11437
|
}
|
|
11386
|
-
const
|
|
11387
|
-
let w =
|
|
11388
|
-
const f =
|
|
11389
|
-
if (
|
|
11438
|
+
const p = this.resolve(e, t);
|
|
11439
|
+
let w = p && p.res;
|
|
11440
|
+
const f = p && p.usedKey || c, L = p && p.exactUsedKey || c, m = Object.prototype.toString.apply(w), u = ["[object Number]", "[object Function]", "[object RegExp]"], x = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, R = !this.i18nFormat || this.i18nFormat.handleAsObject, A = !V(w) && typeof w != "boolean" && typeof w != "number";
|
|
11441
|
+
if (R && w && A && u.indexOf(m) < 0 && !(V(x) && Array.isArray(w))) {
|
|
11390
11442
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
11391
11443
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
11392
11444
|
const v = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(f, w, {
|
|
11393
11445
|
...t,
|
|
11394
11446
|
ns: d
|
|
11395
11447
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
|
11396
|
-
return s ? (
|
|
11448
|
+
return s ? (p.res = v, p.usedParams = this.getUsedParamsDetails(t), p) : v;
|
|
11397
11449
|
}
|
|
11398
11450
|
if (C) {
|
|
11399
11451
|
const v = Array.isArray(w), k = v ? [] : {}, Z = v ? L : f;
|
|
@@ -11408,17 +11460,17 @@ class K1 extends G1 {
|
|
|
11408
11460
|
}
|
|
11409
11461
|
w = k;
|
|
11410
11462
|
}
|
|
11411
|
-
} else if (
|
|
11463
|
+
} else if (R && V(x) && Array.isArray(w))
|
|
11412
11464
|
w = w.join(x), w && (w = this.extendTranslation(w, e, t, i));
|
|
11413
11465
|
else {
|
|
11414
11466
|
let v = !1, k = !1;
|
|
11415
|
-
const Z = t.count !== void 0 && !
|
|
11467
|
+
const Z = t.count !== void 0 && !V(t.count), N = K1.hasDefaultValue(t), Y = Z ? this.pluralResolver.getSuffix(a, t.count, t) : "", $ = t.ordinal && Z ? this.pluralResolver.getSuffix(a, t.count, {
|
|
11416
11468
|
ordinal: !1
|
|
11417
11469
|
}) : "", Q = Z && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), H = Q && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${Y}`] || t[`defaultValue${$}`] || t.defaultValue;
|
|
11418
11470
|
!this.isValidLookup(w) && N && (v = !0, w = H), this.isValidLookup(w) || (k = !0, w = c);
|
|
11419
11471
|
const T = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && k ? void 0 : w, P = N && H !== w && this.options.updateMissing;
|
|
11420
11472
|
if (k || v || P) {
|
|
11421
|
-
if (this.logger.log(P ? "updateKey" : "missingKey",
|
|
11473
|
+
if (this.logger.log(P ? "updateKey" : "missingKey", a, o, c, P ? H : w), C) {
|
|
11422
11474
|
const _ = this.resolve(c, {
|
|
11423
11475
|
...t,
|
|
11424
11476
|
keySeparator: !1
|
|
@@ -11433,7 +11485,7 @@ class K1 extends G1 {
|
|
|
11433
11485
|
else this.options.saveMissingTo === "all" ? D = this.languageUtils.toResolveHierarchy(t.lng || this.language) : D.push(t.lng || this.language);
|
|
11434
11486
|
const W = (_, b, B) => {
|
|
11435
11487
|
const n1 = N && B !== w ? B : T;
|
|
11436
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(_,
|
|
11488
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(_, o, b, n1, P, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(_, o, b, n1, P, t), this.emit("missingKey", _, o, b, w);
|
|
11437
11489
|
};
|
|
11438
11490
|
this.options.saveMissing && (this.options.saveMissingPlurals && Z ? D.forEach((_) => {
|
|
11439
11491
|
const b = this.pluralResolver.getSuffixes(_, t);
|
|
@@ -11442,9 +11494,9 @@ class K1 extends G1 {
|
|
|
11442
11494
|
});
|
|
11443
11495
|
}) : W(D, c, H));
|
|
11444
11496
|
}
|
|
11445
|
-
w = this.extendTranslation(w, e, t,
|
|
11497
|
+
w = this.extendTranslation(w, e, t, p, i), k && w === c && this.options.appendNamespaceToMissingKey && (w = `${o}:${c}`), (k || v) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? w = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${o}:${c}` : c, v ? w : void 0) : w = this.options.parseMissingKeyHandler(w));
|
|
11446
11498
|
}
|
|
11447
|
-
return s ? (
|
|
11499
|
+
return s ? (p.res = w, p.usedParams = this.getUsedParamsDetails(t), p) : w;
|
|
11448
11500
|
}
|
|
11449
11501
|
extendTranslation(e, t, i, s, C) {
|
|
11450
11502
|
var c = this;
|
|
@@ -11463,17 +11515,17 @@ class K1 extends G1 {
|
|
|
11463
11515
|
...i.interpolation
|
|
11464
11516
|
}
|
|
11465
11517
|
});
|
|
11466
|
-
const
|
|
11518
|
+
const a = V(e) && (i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
11467
11519
|
let r;
|
|
11468
|
-
if (
|
|
11520
|
+
if (a) {
|
|
11469
11521
|
const w = e.match(this.interpolator.nestingRegexp);
|
|
11470
11522
|
r = w && w.length;
|
|
11471
11523
|
}
|
|
11472
|
-
let
|
|
11473
|
-
if (this.options.interpolation.defaultVariables && (
|
|
11524
|
+
let p = i.replace && !V(i.replace) ? i.replace : i;
|
|
11525
|
+
if (this.options.interpolation.defaultVariables && (p = {
|
|
11474
11526
|
...this.options.interpolation.defaultVariables,
|
|
11475
|
-
...
|
|
11476
|
-
}), e = this.interpolator.interpolate(e,
|
|
11527
|
+
...p
|
|
11528
|
+
}), e = this.interpolator.interpolate(e, p, i.lng || this.language || s.usedLng, i), a) {
|
|
11477
11529
|
const w = e.match(this.interpolator.nestingRegexp), f = w && w.length;
|
|
11478
11530
|
r < f && (i.nest = !1);
|
|
11479
11531
|
}
|
|
@@ -11483,8 +11535,8 @@ class K1 extends G1 {
|
|
|
11483
11535
|
return C && C[0] === f[0] && !i.context ? (c.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : c.translate(...f, t);
|
|
11484
11536
|
}, i)), i.interpolation && this.interpolator.reset();
|
|
11485
11537
|
}
|
|
11486
|
-
const d = i.postProcess || this.options.postProcess,
|
|
11487
|
-
return e != null &&
|
|
11538
|
+
const d = i.postProcess || this.options.postProcess, o = V(d) ? [d] : d;
|
|
11539
|
+
return e != null && o && o.length && i.applyPostProcessor !== !1 && (e = V2.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
11488
11540
|
i18nResolved: {
|
|
11489
11541
|
...s,
|
|
11490
11542
|
usedParams: this.getUsedParamsDetails(i)
|
|
@@ -11494,32 +11546,32 @@ class K1 extends G1 {
|
|
|
11494
11546
|
}
|
|
11495
11547
|
resolve(e) {
|
|
11496
11548
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i, s, C, c, d;
|
|
11497
|
-
return
|
|
11549
|
+
return V(e) && (e = [e]), e.forEach((o) => {
|
|
11498
11550
|
if (this.isValidLookup(i)) return;
|
|
11499
|
-
const
|
|
11551
|
+
const a = this.extractFromKey(o, t), r = a.key;
|
|
11500
11552
|
s = r;
|
|
11501
|
-
let
|
|
11502
|
-
this.options.fallbackNS && (
|
|
11503
|
-
const w = t.count !== void 0 && !
|
|
11504
|
-
|
|
11505
|
-
this.isValidLookup(i) || (d =
|
|
11553
|
+
let p = a.namespaces;
|
|
11554
|
+
this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
|
|
11555
|
+
const w = t.count !== void 0 && !V(t.count), f = w && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), L = t.context !== void 0 && (V(t.context) || typeof t.context == "number") && t.context !== "", m = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
11556
|
+
p.forEach((u) => {
|
|
11557
|
+
this.isValidLookup(i) || (d = u, !C2[`${m[0]}-${u}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(d) && (C2[`${m[0]}-${u}`] = !0, this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${d}" 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!!!")), m.forEach((x) => {
|
|
11506
11558
|
if (this.isValidLookup(i)) return;
|
|
11507
11559
|
c = x;
|
|
11508
|
-
const
|
|
11560
|
+
const R = [r];
|
|
11509
11561
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
11510
|
-
this.i18nFormat.addLookupKeys(
|
|
11562
|
+
this.i18nFormat.addLookupKeys(R, r, x, u, t);
|
|
11511
11563
|
else {
|
|
11512
11564
|
let v;
|
|
11513
11565
|
w && (v = this.pluralResolver.getSuffix(x, t.count, t));
|
|
11514
11566
|
const k = `${this.options.pluralSeparator}zero`, Z = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
11515
|
-
if (w && (
|
|
11567
|
+
if (w && (R.push(r + v), t.ordinal && v.indexOf(Z) === 0 && R.push(r + v.replace(Z, this.options.pluralSeparator)), f && R.push(r + k)), L) {
|
|
11516
11568
|
const N = `${r}${this.options.contextSeparator}${t.context}`;
|
|
11517
|
-
|
|
11569
|
+
R.push(N), w && (R.push(N + v), t.ordinal && v.indexOf(Z) === 0 && R.push(N + v.replace(Z, this.options.pluralSeparator)), f && R.push(N + k));
|
|
11518
11570
|
}
|
|
11519
11571
|
}
|
|
11520
11572
|
let A;
|
|
11521
|
-
for (; A =
|
|
11522
|
-
this.isValidLookup(i) || (C = A, i = this.getResource(x,
|
|
11573
|
+
for (; A = R.pop(); )
|
|
11574
|
+
this.isValidLookup(i) || (C = A, i = this.getResource(x, u, A, t));
|
|
11523
11575
|
}));
|
|
11524
11576
|
});
|
|
11525
11577
|
}), {
|
|
@@ -11539,7 +11591,7 @@ class K1 extends G1 {
|
|
|
11539
11591
|
}
|
|
11540
11592
|
getUsedParamsDetails() {
|
|
11541
11593
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
11542
|
-
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], i = e.replace && !
|
|
11594
|
+
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], i = e.replace && !V(e.replace);
|
|
11543
11595
|
let s = i ? e.replace : e;
|
|
11544
11596
|
if (i && typeof e.count < "u" && (s.count = e.count), this.options.interpolation.defaultVariables && (s = {
|
|
11545
11597
|
...this.options.interpolation.defaultVariables,
|
|
@@ -11577,7 +11629,7 @@ class h2 {
|
|
|
11577
11629
|
return this.formatLanguageCode(t[0]);
|
|
11578
11630
|
}
|
|
11579
11631
|
formatLanguageCode(e) {
|
|
11580
|
-
if (
|
|
11632
|
+
if (V(e) && e.indexOf("-") > -1) {
|
|
11581
11633
|
if (typeof Intl < "u" && typeof Intl.getCanonicalLocales < "u")
|
|
11582
11634
|
try {
|
|
11583
11635
|
let s = Intl.getCanonicalLocales(e)[0];
|
|
@@ -11613,7 +11665,7 @@ class h2 {
|
|
|
11613
11665
|
}
|
|
11614
11666
|
getFallbackCodes(e, t) {
|
|
11615
11667
|
if (!e) return [];
|
|
11616
|
-
if (typeof e == "function" && (e = e(t)),
|
|
11668
|
+
if (typeof e == "function" && (e = e(t)), V(e) && (e = [e]), Array.isArray(e)) return e;
|
|
11617
11669
|
if (!t) return e.default || [];
|
|
11618
11670
|
let i = e[t];
|
|
11619
11671
|
return i || (i = e[this.getScriptPartFromCode(t)]), i || (i = e[this.formatLanguageCode(t)]), i || (i = e[this.getLanguagePartFromCode(t)]), i || (i = e.default), i || [];
|
|
@@ -11622,7 +11674,7 @@ class h2 {
|
|
|
11622
11674
|
const i = this.getFallbackCodes(t || this.options.fallbackLng || [], e), s = [], C = (c) => {
|
|
11623
11675
|
c && (this.isSupportedCode(c) ? s.push(c) : this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`));
|
|
11624
11676
|
};
|
|
11625
|
-
return
|
|
11677
|
+
return V(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && C(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && C(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && C(this.getLanguagePartFromCode(e))) : V(e) && C(this.formatLanguageCode(e)), i.forEach((c) => {
|
|
11626
11678
|
s.indexOf(c) < 0 && C(this.formatLanguageCode(c));
|
|
11627
11679
|
}), s;
|
|
11628
11680
|
}
|
|
@@ -11788,8 +11840,8 @@ class e8 {
|
|
|
11788
11840
|
});
|
|
11789
11841
|
} catch {
|
|
11790
11842
|
if (!e.match(/-|_/)) return;
|
|
11791
|
-
const
|
|
11792
|
-
c = this.getRule(
|
|
11843
|
+
const o = this.languageUtils.getLanguagePartFromCode(e);
|
|
11844
|
+
c = this.getRule(o, t);
|
|
11793
11845
|
}
|
|
11794
11846
|
return this.pluralRulesCache[C] = c, c;
|
|
11795
11847
|
}
|
|
@@ -11827,7 +11879,7 @@ class e8 {
|
|
|
11827
11879
|
}
|
|
11828
11880
|
const d2 = function(l, e, t) {
|
|
11829
11881
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, C = I6(l, e, t);
|
|
11830
|
-
return !C && s &&
|
|
11882
|
+
return !C && s && V(t) && (C = T1(l, t, i), C === void 0 && (C = T1(e, t, i))), C;
|
|
11831
11883
|
}, Y1 = (l) => l.replace(/\$/g, "$$$$");
|
|
11832
11884
|
class t8 {
|
|
11833
11885
|
constructor() {
|
|
@@ -11846,19 +11898,19 @@ class t8 {
|
|
|
11846
11898
|
prefix: C,
|
|
11847
11899
|
prefixEscaped: c,
|
|
11848
11900
|
suffix: d,
|
|
11849
|
-
suffixEscaped:
|
|
11850
|
-
formatSeparator:
|
|
11901
|
+
suffixEscaped: o,
|
|
11902
|
+
formatSeparator: a,
|
|
11851
11903
|
unescapeSuffix: r,
|
|
11852
|
-
unescapePrefix:
|
|
11904
|
+
unescapePrefix: p,
|
|
11853
11905
|
nestingPrefix: w,
|
|
11854
11906
|
nestingPrefixEscaped: f,
|
|
11855
11907
|
nestingSuffix: L,
|
|
11856
11908
|
nestingSuffixEscaped: m,
|
|
11857
|
-
nestingOptionsSeparator:
|
|
11909
|
+
nestingOptionsSeparator: u,
|
|
11858
11910
|
maxReplaces: x,
|
|
11859
|
-
alwaysFormat:
|
|
11911
|
+
alwaysFormat: R
|
|
11860
11912
|
} = e.interpolation;
|
|
11861
|
-
this.escape = t !== void 0 ? t : T6, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = C ? f1(C) : c || "{{", this.suffix = d ? f1(d) :
|
|
11913
|
+
this.escape = t !== void 0 ? t : T6, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = C ? f1(C) : c || "{{", this.suffix = d ? f1(d) : o || "}}", this.formatSeparator = a || ",", this.unescapePrefix = r ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : r || "", this.nestingPrefix = w ? f1(w) : f || f1("$t("), this.nestingSuffix = L ? f1(L) : m || f1(")"), this.nestingOptionsSeparator = u || ",", this.maxReplaces = x || 1e3, this.alwaysFormat = R !== void 0 ? R : !1, this.resetRegExp();
|
|
11862
11914
|
}
|
|
11863
11915
|
reset() {
|
|
11864
11916
|
this.options && this.init(this.options);
|
|
@@ -11869,24 +11921,24 @@ class t8 {
|
|
|
11869
11921
|
}
|
|
11870
11922
|
interpolate(e, t, i, s) {
|
|
11871
11923
|
let C, c, d;
|
|
11872
|
-
const
|
|
11924
|
+
const o = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, a = (f) => {
|
|
11873
11925
|
if (f.indexOf(this.formatSeparator) < 0) {
|
|
11874
|
-
const x = d2(t,
|
|
11926
|
+
const x = d2(t, o, f, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
11875
11927
|
return this.alwaysFormat ? this.format(x, void 0, i, {
|
|
11876
11928
|
...s,
|
|
11877
11929
|
...t,
|
|
11878
11930
|
interpolationkey: f
|
|
11879
11931
|
}) : x;
|
|
11880
11932
|
}
|
|
11881
|
-
const L = f.split(this.formatSeparator), m = L.shift().trim(),
|
|
11882
|
-
return this.format(d2(t,
|
|
11933
|
+
const L = f.split(this.formatSeparator), m = L.shift().trim(), u = L.join(this.formatSeparator).trim();
|
|
11934
|
+
return this.format(d2(t, o, m, this.options.keySeparator, this.options.ignoreJSONStructure), u, i, {
|
|
11883
11935
|
...s,
|
|
11884
11936
|
...t,
|
|
11885
11937
|
interpolationkey: m
|
|
11886
11938
|
});
|
|
11887
11939
|
};
|
|
11888
11940
|
this.resetRegExp();
|
|
11889
|
-
const r = s && s.missingInterpolationHandler || this.options.missingInterpolationHandler,
|
|
11941
|
+
const r = s && s.missingInterpolationHandler || this.options.missingInterpolationHandler, p = s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
11890
11942
|
return [{
|
|
11891
11943
|
regex: this.regexpUnescape,
|
|
11892
11944
|
safeValue: (f) => Y1(f)
|
|
@@ -11896,56 +11948,56 @@ class t8 {
|
|
|
11896
11948
|
}].forEach((f) => {
|
|
11897
11949
|
for (d = 0; C = f.regex.exec(e); ) {
|
|
11898
11950
|
const L = C[1].trim();
|
|
11899
|
-
if (c =
|
|
11951
|
+
if (c = a(L), c === void 0)
|
|
11900
11952
|
if (typeof r == "function") {
|
|
11901
|
-
const
|
|
11902
|
-
c =
|
|
11953
|
+
const u = r(e, C, s);
|
|
11954
|
+
c = V(u) ? u : "";
|
|
11903
11955
|
} else if (s && Object.prototype.hasOwnProperty.call(s, L))
|
|
11904
11956
|
c = "";
|
|
11905
|
-
else if (
|
|
11957
|
+
else if (p) {
|
|
11906
11958
|
c = C[0];
|
|
11907
11959
|
continue;
|
|
11908
11960
|
} else
|
|
11909
11961
|
this.logger.warn(`missed to pass in variable ${L} for interpolating ${e}`), c = "";
|
|
11910
|
-
else !
|
|
11962
|
+
else !V(c) && !this.useRawValueToEscape && (c = s2(c));
|
|
11911
11963
|
const m = f.safeValue(c);
|
|
11912
|
-
if (e = e.replace(C[0], m),
|
|
11964
|
+
if (e = e.replace(C[0], m), p ? (f.regex.lastIndex += c.length, f.regex.lastIndex -= C[0].length) : f.regex.lastIndex = 0, d++, d >= this.maxReplaces)
|
|
11913
11965
|
break;
|
|
11914
11966
|
}
|
|
11915
11967
|
}), e;
|
|
11916
11968
|
}
|
|
11917
11969
|
nest(e, t) {
|
|
11918
11970
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, C, c;
|
|
11919
|
-
const d = (
|
|
11971
|
+
const d = (o, a) => {
|
|
11920
11972
|
const r = this.nestingOptionsSeparator;
|
|
11921
|
-
if (
|
|
11922
|
-
const
|
|
11923
|
-
let w = `{${
|
|
11924
|
-
|
|
11973
|
+
if (o.indexOf(r) < 0) return o;
|
|
11974
|
+
const p = o.split(new RegExp(`${r}[ ]*{`));
|
|
11975
|
+
let w = `{${p[1]}`;
|
|
11976
|
+
o = p[0], w = this.interpolate(w, c);
|
|
11925
11977
|
const f = w.match(/'/g), L = w.match(/"/g);
|
|
11926
11978
|
(f && f.length % 2 === 0 && !L || L.length % 2 !== 0) && (w = w.replace(/'/g, '"'));
|
|
11927
11979
|
try {
|
|
11928
|
-
c = JSON.parse(w),
|
|
11929
|
-
...
|
|
11980
|
+
c = JSON.parse(w), a && (c = {
|
|
11981
|
+
...a,
|
|
11930
11982
|
...c
|
|
11931
11983
|
});
|
|
11932
11984
|
} catch (m) {
|
|
11933
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${
|
|
11985
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${o}`, m), `${o}${r}${w}`;
|
|
11934
11986
|
}
|
|
11935
|
-
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue,
|
|
11987
|
+
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, o;
|
|
11936
11988
|
};
|
|
11937
11989
|
for (; s = this.nestingRegexp.exec(e); ) {
|
|
11938
|
-
let
|
|
11990
|
+
let o = [];
|
|
11939
11991
|
c = {
|
|
11940
11992
|
...i
|
|
11941
|
-
}, c = c.replace && !
|
|
11942
|
-
let
|
|
11993
|
+
}, c = c.replace && !V(c.replace) ? c.replace : c, c.applyPostProcessor = !1, delete c.defaultValue;
|
|
11994
|
+
let a = !1;
|
|
11943
11995
|
if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
|
|
11944
|
-
const r = s[1].split(this.formatSeparator).map((
|
|
11945
|
-
s[1] = r.shift(),
|
|
11996
|
+
const r = s[1].split(this.formatSeparator).map((p) => p.trim());
|
|
11997
|
+
s[1] = r.shift(), o = r, a = !0;
|
|
11946
11998
|
}
|
|
11947
|
-
if (C = t(d.call(this, s[1].trim(), c), c), C && s[0] === e && !
|
|
11948
|
-
|
|
11999
|
+
if (C = t(d.call(this, s[1].trim(), c), c), C && s[0] === e && !V(C)) return C;
|
|
12000
|
+
V(C) || (C = s2(C)), C || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), C = ""), a && (C = o.reduce((r, p) => this.format(r, p, i.lng, {
|
|
11949
12001
|
...i,
|
|
11950
12002
|
interpolationkey: s[1].trim()
|
|
11951
12003
|
}), C.trim())), e = e.replace(s[0], C), this.regexp.lastIndex = 0;
|
|
@@ -11962,8 +12014,8 @@ const i8 = (l) => {
|
|
|
11962
12014
|
const s = i[1].substring(0, i[1].length - 1);
|
|
11963
12015
|
e === "currency" && s.indexOf(":") < 0 ? t.currency || (t.currency = s.trim()) : e === "relativetime" && s.indexOf(":") < 0 ? t.range || (t.range = s.trim()) : s.split(";").forEach((c) => {
|
|
11964
12016
|
if (c) {
|
|
11965
|
-
const [d, ...
|
|
11966
|
-
t[r] || (t[r] =
|
|
12017
|
+
const [d, ...o] = c.split(":"), a = o.join(":").trim().replace(/^'+|'+$/g, ""), r = d.trim();
|
|
12018
|
+
t[r] || (t[r] = a), a === "false" && (t[r] = !1), a === "true" && (t[r] = !0), isNaN(a) || (t[r] = parseInt(a, 10));
|
|
11967
12019
|
}
|
|
11968
12020
|
});
|
|
11969
12021
|
}
|
|
@@ -11971,7 +12023,7 @@ const i8 = (l) => {
|
|
|
11971
12023
|
formatName: e,
|
|
11972
12024
|
formatOptions: t
|
|
11973
12025
|
};
|
|
11974
|
-
},
|
|
12026
|
+
}, p1 = (l) => {
|
|
11975
12027
|
const e = {};
|
|
11976
12028
|
return (t, i, s) => {
|
|
11977
12029
|
let C = s;
|
|
@@ -11988,32 +12040,32 @@ class l8 {
|
|
|
11988
12040
|
constructor() {
|
|
11989
12041
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
11990
12042
|
this.logger = t1.create("formatter"), this.options = e, this.formats = {
|
|
11991
|
-
number:
|
|
12043
|
+
number: p1((t, i) => {
|
|
11992
12044
|
const s = new Intl.NumberFormat(t, {
|
|
11993
12045
|
...i
|
|
11994
12046
|
});
|
|
11995
12047
|
return (C) => s.format(C);
|
|
11996
12048
|
}),
|
|
11997
|
-
currency:
|
|
12049
|
+
currency: p1((t, i) => {
|
|
11998
12050
|
const s = new Intl.NumberFormat(t, {
|
|
11999
12051
|
...i,
|
|
12000
12052
|
style: "currency"
|
|
12001
12053
|
});
|
|
12002
12054
|
return (C) => s.format(C);
|
|
12003
12055
|
}),
|
|
12004
|
-
datetime:
|
|
12056
|
+
datetime: p1((t, i) => {
|
|
12005
12057
|
const s = new Intl.DateTimeFormat(t, {
|
|
12006
12058
|
...i
|
|
12007
12059
|
});
|
|
12008
12060
|
return (C) => s.format(C);
|
|
12009
12061
|
}),
|
|
12010
|
-
relativetime:
|
|
12062
|
+
relativetime: p1((t, i) => {
|
|
12011
12063
|
const s = new Intl.RelativeTimeFormat(t, {
|
|
12012
12064
|
...i
|
|
12013
12065
|
});
|
|
12014
12066
|
return (C) => s.format(C, i.range || "day");
|
|
12015
12067
|
}),
|
|
12016
|
-
list:
|
|
12068
|
+
list: p1((t, i) => {
|
|
12017
12069
|
const s = new Intl.ListFormat(t, {
|
|
12018
12070
|
...i
|
|
12019
12071
|
});
|
|
@@ -12031,25 +12083,25 @@ class l8 {
|
|
|
12031
12083
|
this.formats[e.toLowerCase().trim()] = t;
|
|
12032
12084
|
}
|
|
12033
12085
|
addCached(e, t) {
|
|
12034
|
-
this.formats[e.toLowerCase().trim()] =
|
|
12086
|
+
this.formats[e.toLowerCase().trim()] = p1(t);
|
|
12035
12087
|
}
|
|
12036
12088
|
format(e, t, i) {
|
|
12037
12089
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
12038
12090
|
const C = t.split(this.formatSeparator);
|
|
12039
12091
|
if (C.length > 1 && C[0].indexOf("(") > 1 && C[0].indexOf(")") < 0 && C.find((d) => d.indexOf(")") > -1)) {
|
|
12040
|
-
const d = C.findIndex((
|
|
12092
|
+
const d = C.findIndex((o) => o.indexOf(")") > -1);
|
|
12041
12093
|
C[0] = [C[0], ...C.splice(1, d)].join(this.formatSeparator);
|
|
12042
12094
|
}
|
|
12043
|
-
return C.reduce((d,
|
|
12095
|
+
return C.reduce((d, o) => {
|
|
12044
12096
|
const {
|
|
12045
|
-
formatName:
|
|
12097
|
+
formatName: a,
|
|
12046
12098
|
formatOptions: r
|
|
12047
|
-
} = i8(
|
|
12048
|
-
if (this.formats[
|
|
12049
|
-
let
|
|
12099
|
+
} = i8(o);
|
|
12100
|
+
if (this.formats[a]) {
|
|
12101
|
+
let p = d;
|
|
12050
12102
|
try {
|
|
12051
12103
|
const w = s && s.formatParams && s.formatParams[s.interpolationkey] || {}, f = w.locale || w.lng || s.locale || s.lng || i;
|
|
12052
|
-
|
|
12104
|
+
p = this.formats[a](d, f, {
|
|
12053
12105
|
...r,
|
|
12054
12106
|
...s,
|
|
12055
12107
|
...w
|
|
@@ -12057,9 +12109,9 @@ class l8 {
|
|
|
12057
12109
|
} catch (w) {
|
|
12058
12110
|
this.logger.warn(w);
|
|
12059
12111
|
}
|
|
12060
|
-
return
|
|
12112
|
+
return p;
|
|
12061
12113
|
} else
|
|
12062
|
-
this.logger.warn(`there was no format function for ${
|
|
12114
|
+
this.logger.warn(`there was no format function for ${a}`);
|
|
12063
12115
|
return d;
|
|
12064
12116
|
}, e);
|
|
12065
12117
|
}
|
|
@@ -12073,13 +12125,13 @@ class n8 extends G1 {
|
|
|
12073
12125
|
super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = t1.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, s.backend, s);
|
|
12074
12126
|
}
|
|
12075
12127
|
queueLoad(e, t, i, s) {
|
|
12076
|
-
const C = {}, c = {}, d = {},
|
|
12077
|
-
return e.forEach((
|
|
12128
|
+
const C = {}, c = {}, d = {}, o = {};
|
|
12129
|
+
return e.forEach((a) => {
|
|
12078
12130
|
let r = !0;
|
|
12079
|
-
t.forEach((
|
|
12080
|
-
const w = `${
|
|
12081
|
-
!i.reload && this.store.hasResourceBundle(
|
|
12082
|
-
}), r || (d[
|
|
12131
|
+
t.forEach((p) => {
|
|
12132
|
+
const w = `${a}|${p}`;
|
|
12133
|
+
!i.reload && this.store.hasResourceBundle(a, p) ? this.state[w] = 2 : this.state[w] < 0 || (this.state[w] === 1 ? c[w] === void 0 && (c[w] = !0) : (this.state[w] = 1, r = !1, c[w] === void 0 && (c[w] = !0), C[w] === void 0 && (C[w] = !0), o[p] === void 0 && (o[p] = !0)));
|
|
12134
|
+
}), r || (d[a] = !0);
|
|
12083
12135
|
}), (Object.keys(C).length || Object.keys(c).length) && this.queue.push({
|
|
12084
12136
|
pending: c,
|
|
12085
12137
|
pendingCount: Object.keys(c).length,
|
|
@@ -12090,7 +12142,7 @@ class n8 extends G1 {
|
|
|
12090
12142
|
toLoad: Object.keys(C),
|
|
12091
12143
|
pending: Object.keys(c),
|
|
12092
12144
|
toLoadLanguages: Object.keys(d),
|
|
12093
|
-
toLoadNamespaces: Object.keys(
|
|
12145
|
+
toLoadNamespaces: Object.keys(o)
|
|
12094
12146
|
};
|
|
12095
12147
|
}
|
|
12096
12148
|
loaded(e, t, i) {
|
|
@@ -12099,15 +12151,15 @@ class n8 extends G1 {
|
|
|
12099
12151
|
skipCopy: !0
|
|
12100
12152
|
}), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
|
|
12101
12153
|
const d = {};
|
|
12102
|
-
this.queue.forEach((
|
|
12103
|
-
O6(
|
|
12104
|
-
d[
|
|
12105
|
-
const r =
|
|
12106
|
-
r.length && r.forEach((
|
|
12107
|
-
d[
|
|
12154
|
+
this.queue.forEach((o) => {
|
|
12155
|
+
O6(o.loaded, [C], c), s8(o, e), t && o.errors.push(t), o.pendingCount === 0 && !o.done && (Object.keys(o.loaded).forEach((a) => {
|
|
12156
|
+
d[a] || (d[a] = {});
|
|
12157
|
+
const r = o.loaded[a];
|
|
12158
|
+
r.length && r.forEach((p) => {
|
|
12159
|
+
d[a][p] === void 0 && (d[a][p] = !0);
|
|
12108
12160
|
});
|
|
12109
|
-
}),
|
|
12110
|
-
}), this.emit("loaded", d), this.queue = this.queue.filter((
|
|
12161
|
+
}), o.done = !0, o.errors.length ? o.callback(o.errors) : o.callback());
|
|
12162
|
+
}), this.emit("loaded", d), this.queue = this.queue.filter((o) => !o.done);
|
|
12111
12163
|
}
|
|
12112
12164
|
read(e, t, i) {
|
|
12113
12165
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, C = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, c = arguments.length > 5 ? arguments[5] : void 0;
|
|
@@ -12124,35 +12176,35 @@ class n8 extends G1 {
|
|
|
12124
12176
|
return;
|
|
12125
12177
|
}
|
|
12126
12178
|
this.readingCalls++;
|
|
12127
|
-
const d = (
|
|
12179
|
+
const d = (a, r) => {
|
|
12128
12180
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
12129
|
-
const
|
|
12130
|
-
this.read(
|
|
12181
|
+
const p = this.waitingReads.shift();
|
|
12182
|
+
this.read(p.lng, p.ns, p.fcName, p.tried, p.wait, p.callback);
|
|
12131
12183
|
}
|
|
12132
|
-
if (
|
|
12184
|
+
if (a && r && s < this.maxRetries) {
|
|
12133
12185
|
setTimeout(() => {
|
|
12134
12186
|
this.read.call(this, e, t, i, s + 1, C * 2, c);
|
|
12135
12187
|
}, C);
|
|
12136
12188
|
return;
|
|
12137
12189
|
}
|
|
12138
|
-
c(
|
|
12139
|
-
},
|
|
12140
|
-
if (
|
|
12190
|
+
c(a, r);
|
|
12191
|
+
}, o = this.backend[i].bind(this.backend);
|
|
12192
|
+
if (o.length === 2) {
|
|
12141
12193
|
try {
|
|
12142
|
-
const
|
|
12143
|
-
|
|
12144
|
-
} catch (
|
|
12145
|
-
d(
|
|
12194
|
+
const a = o(e, t);
|
|
12195
|
+
a && typeof a.then == "function" ? a.then((r) => d(null, r)).catch(d) : d(null, a);
|
|
12196
|
+
} catch (a) {
|
|
12197
|
+
d(a);
|
|
12146
12198
|
}
|
|
12147
12199
|
return;
|
|
12148
12200
|
}
|
|
12149
|
-
return
|
|
12201
|
+
return o(e, t, d);
|
|
12150
12202
|
}
|
|
12151
12203
|
prepareLoading(e, t) {
|
|
12152
12204
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = arguments.length > 3 ? arguments[3] : void 0;
|
|
12153
12205
|
if (!this.backend)
|
|
12154
12206
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), s && s();
|
|
12155
|
-
|
|
12207
|
+
V(e) && (e = this.languageUtils.toResolveHierarchy(e)), V(t) && (t = [t]);
|
|
12156
12208
|
const C = this.queueLoad(e, t, i, s);
|
|
12157
12209
|
if (!C.toLoad.length)
|
|
12158
12210
|
return C.pending.length || s(), null;
|
|
@@ -12184,19 +12236,19 @@ class n8 extends G1 {
|
|
|
12184
12236
|
}
|
|
12185
12237
|
if (!(i == null || i === "")) {
|
|
12186
12238
|
if (this.backend && this.backend.create) {
|
|
12187
|
-
const
|
|
12239
|
+
const o = {
|
|
12188
12240
|
...c,
|
|
12189
12241
|
isUpdate: C
|
|
12190
|
-
},
|
|
12191
|
-
if (
|
|
12242
|
+
}, a = this.backend.create.bind(this.backend);
|
|
12243
|
+
if (a.length < 6)
|
|
12192
12244
|
try {
|
|
12193
12245
|
let r;
|
|
12194
|
-
|
|
12246
|
+
a.length === 5 ? r = a(e, t, i, s, o) : r = a(e, t, i, s), r && typeof r.then == "function" ? r.then((p) => d(null, p)).catch(d) : d(null, r);
|
|
12195
12247
|
} catch (r) {
|
|
12196
12248
|
d(r);
|
|
12197
12249
|
}
|
|
12198
12250
|
else
|
|
12199
|
-
|
|
12251
|
+
a(e, t, i, s, d, o);
|
|
12200
12252
|
}
|
|
12201
12253
|
!e || !e[0] || this.store.addResource(e[0], t, i, s);
|
|
12202
12254
|
}
|
|
@@ -12237,7 +12289,7 @@ const g2 = () => ({
|
|
|
12237
12289
|
appendNamespaceToCIMode: !1,
|
|
12238
12290
|
overloadTranslationOptionHandler: (l) => {
|
|
12239
12291
|
let e = {};
|
|
12240
|
-
if (typeof l[1] == "object" && (e = l[1]),
|
|
12292
|
+
if (typeof l[1] == "object" && (e = l[1]), V(l[1]) && (e.defaultValue = l[1]), V(l[2]) && (e.tDescription = l[2]), typeof l[2] == "object" || typeof l[3] == "object") {
|
|
12241
12293
|
const t = l[3] || l[2];
|
|
12242
12294
|
Object.keys(t).forEach((i) => {
|
|
12243
12295
|
e[i] = t[i];
|
|
@@ -12258,8 +12310,8 @@ const g2 = () => ({
|
|
|
12258
12310
|
maxReplaces: 1e3,
|
|
12259
12311
|
skipOnVariables: !0
|
|
12260
12312
|
}
|
|
12261
|
-
}), w2 = (l) => (
|
|
12262
|
-
},
|
|
12313
|
+
}), w2 = (l) => (V(l.ns) && (l.ns = [l.ns]), V(l.fallbackLng) && (l.fallbackLng = [l.fallbackLng]), V(l.fallbackNS) && (l.fallbackNS = [l.fallbackNS]), l.supportedLngs && l.supportedLngs.indexOf("cimode") < 0 && (l.supportedLngs = l.supportedLngs.concat(["cimode"])), l), b1 = () => {
|
|
12314
|
+
}, a8 = (l) => {
|
|
12263
12315
|
Object.getOwnPropertyNames(Object.getPrototypeOf(l)).forEach((t) => {
|
|
12264
12316
|
typeof l[t] == "function" && (l[t] = l[t].bind(l));
|
|
12265
12317
|
});
|
|
@@ -12269,7 +12321,7 @@ class k1 extends G1 {
|
|
|
12269
12321
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
12270
12322
|
if (super(), this.options = w2(e), this.services = {}, this.logger = t1, this.modules = {
|
|
12271
12323
|
external: []
|
|
12272
|
-
},
|
|
12324
|
+
}, a8(this), t && !this.isInitialized && !e.isClone) {
|
|
12273
12325
|
if (!this.options.initImmediate)
|
|
12274
12326
|
return this.init(e, t), this;
|
|
12275
12327
|
setTimeout(() => {
|
|
@@ -12280,7 +12332,7 @@ class k1 extends G1 {
|
|
|
12280
12332
|
init() {
|
|
12281
12333
|
var e = this;
|
|
12282
12334
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
12283
|
-
this.isInitializing = !0, typeof t == "function" && (i = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (
|
|
12335
|
+
this.isInitializing = !0, typeof t == "function" && (i = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (V(t.ns) ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
|
|
12284
12336
|
const s = g2();
|
|
12285
12337
|
this.options = {
|
|
12286
12338
|
...s,
|
|
@@ -12295,22 +12347,22 @@ class k1 extends G1 {
|
|
|
12295
12347
|
this.modules.logger ? t1.init(C(this.modules.logger), this.options) : t1.init(null, this.options);
|
|
12296
12348
|
let r;
|
|
12297
12349
|
this.modules.formatter ? r = this.modules.formatter : typeof Intl < "u" && (r = l8);
|
|
12298
|
-
const
|
|
12350
|
+
const p = new h2(this.options);
|
|
12299
12351
|
this.store = new r2(this.options.resources, this.options);
|
|
12300
12352
|
const w = this.services;
|
|
12301
|
-
w.logger = t1, w.resourceStore = this.store, w.languageUtils =
|
|
12353
|
+
w.logger = t1, w.resourceStore = this.store, w.languageUtils = p, w.pluralResolver = new e8(p, {
|
|
12302
12354
|
prepend: this.options.pluralSeparator,
|
|
12303
12355
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
12304
12356
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
12305
12357
|
}), r && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (w.formatter = C(r), w.formatter.init(w, this.options), this.options.interpolation.format = w.formatter.format.bind(w.formatter)), w.interpolator = new t8(this.options), w.utils = {
|
|
12306
12358
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
12307
12359
|
}, w.backendConnector = new n8(C(this.modules.backend), w.resourceStore, w, this.options), w.backendConnector.on("*", function(f) {
|
|
12308
|
-
for (var L = arguments.length, m = new Array(L > 1 ? L - 1 : 0),
|
|
12309
|
-
m[
|
|
12360
|
+
for (var L = arguments.length, m = new Array(L > 1 ? L - 1 : 0), u = 1; u < L; u++)
|
|
12361
|
+
m[u - 1] = arguments[u];
|
|
12310
12362
|
e.emit(f, ...m);
|
|
12311
12363
|
}), this.modules.languageDetector && (w.languageDetector = C(this.modules.languageDetector), w.languageDetector.init && w.languageDetector.init(w, this.options.detection, this.options)), this.modules.i18nFormat && (w.i18nFormat = C(this.modules.i18nFormat), w.i18nFormat.init && w.i18nFormat.init(this)), this.translator = new K1(this.services, this.options), this.translator.on("*", function(f) {
|
|
12312
|
-
for (var L = arguments.length, m = new Array(L > 1 ? L - 1 : 0),
|
|
12313
|
-
m[
|
|
12364
|
+
for (var L = arguments.length, m = new Array(L > 1 ? L - 1 : 0), u = 1; u < L; u++)
|
|
12365
|
+
m[u - 1] = arguments[u];
|
|
12314
12366
|
e.emit(f, ...m);
|
|
12315
12367
|
}), this.modules.external.forEach((f) => {
|
|
12316
12368
|
f.init && f.init(this);
|
|
@@ -12329,27 +12381,27 @@ class k1 extends G1 {
|
|
|
12329
12381
|
return e.store[r](...arguments), e;
|
|
12330
12382
|
};
|
|
12331
12383
|
});
|
|
12332
|
-
const
|
|
12333
|
-
const r = (
|
|
12334
|
-
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options),
|
|
12384
|
+
const o = L1(), a = () => {
|
|
12385
|
+
const r = (p, w) => {
|
|
12386
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(w), i(p, w);
|
|
12335
12387
|
};
|
|
12336
12388
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return r(null, this.t.bind(this));
|
|
12337
12389
|
this.changeLanguage(this.options.lng, r);
|
|
12338
12390
|
};
|
|
12339
|
-
return this.options.resources || !this.options.initImmediate ?
|
|
12391
|
+
return this.options.resources || !this.options.initImmediate ? a() : setTimeout(a, 0), o;
|
|
12340
12392
|
}
|
|
12341
12393
|
loadResources(e) {
|
|
12342
12394
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b1;
|
|
12343
|
-
const s =
|
|
12395
|
+
const s = V(e) ? e : this.language;
|
|
12344
12396
|
if (typeof e == "function" && (i = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
12345
12397
|
if (s && s.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return i();
|
|
12346
12398
|
const C = [], c = (d) => {
|
|
12347
12399
|
if (!d || d === "cimode") return;
|
|
12348
|
-
this.services.languageUtils.toResolveHierarchy(d).forEach((
|
|
12349
|
-
|
|
12400
|
+
this.services.languageUtils.toResolveHierarchy(d).forEach((a) => {
|
|
12401
|
+
a !== "cimode" && C.indexOf(a) < 0 && C.push(a);
|
|
12350
12402
|
});
|
|
12351
12403
|
};
|
|
12352
|
-
s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((
|
|
12404
|
+
s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((o) => c(o)), this.options.preload && this.options.preload.forEach((d) => c(d)), this.services.backendConnector.load(C, this.options.ns, (d) => {
|
|
12353
12405
|
!d && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), i(d);
|
|
12354
12406
|
});
|
|
12355
12407
|
} else
|
|
@@ -12364,7 +12416,7 @@ class k1 extends G1 {
|
|
|
12364
12416
|
use(e) {
|
|
12365
12417
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
12366
12418
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
12367
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
12419
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && V2.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
12368
12420
|
}
|
|
12369
12421
|
setResolvedLanguage(e) {
|
|
12370
12422
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
|
|
@@ -12381,19 +12433,19 @@ class k1 extends G1 {
|
|
|
12381
12433
|
this.isLanguageChangingTo = e;
|
|
12382
12434
|
const s = L1();
|
|
12383
12435
|
this.emit("languageChanging", e);
|
|
12384
|
-
const C = (
|
|
12385
|
-
this.language =
|
|
12386
|
-
}, c = (
|
|
12387
|
-
|
|
12436
|
+
const C = (o) => {
|
|
12437
|
+
this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
|
|
12438
|
+
}, c = (o, a) => {
|
|
12439
|
+
a ? (C(a), this.translator.changeLanguage(a), this.isLanguageChangingTo = void 0, this.emit("languageChanged", a), this.logger.log("languageChanged", a)) : this.isLanguageChangingTo = void 0, s.resolve(function() {
|
|
12388
12440
|
return i.t(...arguments);
|
|
12389
|
-
}), t && t(
|
|
12441
|
+
}), t && t(o, function() {
|
|
12390
12442
|
return i.t(...arguments);
|
|
12391
12443
|
});
|
|
12392
|
-
}, d = (
|
|
12393
|
-
!e && !
|
|
12394
|
-
const
|
|
12395
|
-
|
|
12396
|
-
c(r,
|
|
12444
|
+
}, d = (o) => {
|
|
12445
|
+
!e && !o && this.services.languageDetector && (o = []);
|
|
12446
|
+
const a = V(o) ? o : this.services.languageUtils.getBestMatchFromCodes(o);
|
|
12447
|
+
a && (this.language || C(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(a)), this.loadResources(a, (r) => {
|
|
12448
|
+
c(r, a);
|
|
12397
12449
|
});
|
|
12398
12450
|
};
|
|
12399
12451
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? d(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(d) : this.services.languageDetector.detect(d) : d(e), s;
|
|
@@ -12401,21 +12453,21 @@ class k1 extends G1 {
|
|
|
12401
12453
|
getFixedT(e, t, i) {
|
|
12402
12454
|
var s = this;
|
|
12403
12455
|
const C = function(c, d) {
|
|
12404
|
-
let
|
|
12456
|
+
let o;
|
|
12405
12457
|
if (typeof d != "object") {
|
|
12406
|
-
for (var
|
|
12407
|
-
r[
|
|
12408
|
-
|
|
12458
|
+
for (var a = arguments.length, r = new Array(a > 2 ? a - 2 : 0), p = 2; p < a; p++)
|
|
12459
|
+
r[p - 2] = arguments[p];
|
|
12460
|
+
o = s.options.overloadTranslationOptionHandler([c, d].concat(r));
|
|
12409
12461
|
} else
|
|
12410
|
-
|
|
12462
|
+
o = {
|
|
12411
12463
|
...d
|
|
12412
12464
|
};
|
|
12413
|
-
|
|
12465
|
+
o.lng = o.lng || C.lng, o.lngs = o.lngs || C.lngs, o.ns = o.ns || C.ns, o.keyPrefix !== "" && (o.keyPrefix = o.keyPrefix || i || C.keyPrefix);
|
|
12414
12466
|
const w = s.options.keySeparator || ".";
|
|
12415
12467
|
let f;
|
|
12416
|
-
return
|
|
12468
|
+
return o.keyPrefix && Array.isArray(c) ? f = c.map((L) => `${o.keyPrefix}${w}${L}`) : f = o.keyPrefix ? `${o.keyPrefix}${w}${c}` : c, s.t(f, o);
|
|
12417
12469
|
};
|
|
12418
|
-
return
|
|
12470
|
+
return V(e) ? C.lng = e : C.lngs = e, C.ns = t, C.keyPrefix = i, C;
|
|
12419
12471
|
}
|
|
12420
12472
|
t() {
|
|
12421
12473
|
return this.translator && this.translator.translate(...arguments);
|
|
@@ -12434,9 +12486,9 @@ class k1 extends G1 {
|
|
|
12434
12486
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
12435
12487
|
const i = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, C = this.languages[this.languages.length - 1];
|
|
12436
12488
|
if (i.toLowerCase() === "cimode") return !0;
|
|
12437
|
-
const c = (d,
|
|
12438
|
-
const
|
|
12439
|
-
return
|
|
12489
|
+
const c = (d, o) => {
|
|
12490
|
+
const a = this.services.backendConnector.state[`${d}|${o}`];
|
|
12491
|
+
return a === -1 || a === 0 || a === 2;
|
|
12440
12492
|
};
|
|
12441
12493
|
if (t.precheck) {
|
|
12442
12494
|
const d = t.precheck(this, c);
|
|
@@ -12446,7 +12498,7 @@ class k1 extends G1 {
|
|
|
12446
12498
|
}
|
|
12447
12499
|
loadNamespaces(e, t) {
|
|
12448
12500
|
const i = L1();
|
|
12449
|
-
return this.options.ns ? (
|
|
12501
|
+
return this.options.ns ? (V(e) && (e = [e]), e.forEach((s) => {
|
|
12450
12502
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
12451
12503
|
}), this.loadResources((s) => {
|
|
12452
12504
|
i.resolve(), t && t(s);
|
|
@@ -12454,7 +12506,7 @@ class k1 extends G1 {
|
|
|
12454
12506
|
}
|
|
12455
12507
|
loadLanguages(e, t) {
|
|
12456
12508
|
const i = L1();
|
|
12457
|
-
|
|
12509
|
+
V(e) && (e = [e]);
|
|
12458
12510
|
const s = this.options.preload || [], C = e.filter((c) => s.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
|
|
12459
12511
|
return C.length ? (this.options.preload = s.concat(C), this.loadResources((c) => {
|
|
12460
12512
|
i.resolve(), t && t(c);
|
|
@@ -12485,9 +12537,9 @@ class k1 extends G1 {
|
|
|
12485
12537
|
}, C.services.utils = {
|
|
12486
12538
|
hasLoadedNamespace: C.hasLoadedNamespace.bind(C)
|
|
12487
12539
|
}, i && (C.store = new r2(this.store.data, s), C.services.resourceStore = C.store), C.translator = new K1(C.services, s), C.translator.on("*", function(d) {
|
|
12488
|
-
for (var
|
|
12489
|
-
|
|
12490
|
-
C.emit(d, ...
|
|
12540
|
+
for (var o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), r = 1; r < o; r++)
|
|
12541
|
+
a[r - 1] = arguments[r];
|
|
12542
|
+
C.emit(d, ...a);
|
|
12491
12543
|
}), C.init(s, t), C.translator.options = s, C.translator.backendConnector.services.utils = {
|
|
12492
12544
|
hasLoadedNamespace: C.hasLoadedNamespace.bind(C)
|
|
12493
12545
|
}, C;
|
|
@@ -12518,8 +12570,8 @@ U.setDefaultNamespace;
|
|
|
12518
12570
|
U.hasLoadedNamespace;
|
|
12519
12571
|
U.loadNamespaces;
|
|
12520
12572
|
U.loadLanguages;
|
|
12521
|
-
const
|
|
12522
|
-
archived:
|
|
12573
|
+
const o8 = "Archived", r8 = "Deleted", C8 = {
|
|
12574
|
+
archived: o8,
|
|
12523
12575
|
deleted: r8
|
|
12524
12576
|
}, h8 = "Заархивирован", c8 = "Удалён", d8 = {
|
|
12525
12577
|
archived: h8,
|
|
@@ -12537,7 +12589,7 @@ U.use(E6).init({
|
|
|
12537
12589
|
}
|
|
12538
12590
|
}
|
|
12539
12591
|
});
|
|
12540
|
-
const m8 =
|
|
12592
|
+
const m8 = o1(
|
|
12541
12593
|
({
|
|
12542
12594
|
fetchParams: l,
|
|
12543
12595
|
mode: e = void 0,
|
|
@@ -12547,24 +12599,24 @@ const m8 = a1(
|
|
|
12547
12599
|
onChange: C,
|
|
12548
12600
|
onError: c,
|
|
12549
12601
|
allowEmpty: d = !1,
|
|
12550
|
-
showAvatar:
|
|
12551
|
-
clearable:
|
|
12602
|
+
showAvatar: o = !1,
|
|
12603
|
+
clearable: a,
|
|
12552
12604
|
required: r,
|
|
12553
|
-
error:
|
|
12605
|
+
error: p
|
|
12554
12606
|
}, w) => {
|
|
12555
|
-
const { axiosPeople: f, locale: L } = s1(c1), { t: m } = B6("common", { lng: L }), [
|
|
12607
|
+
const { axiosPeople: f, locale: L } = s1(c1), { t: m } = B6("common", { lng: L }), [u, x] = K([]), [R, A] = K(!0), v = J(u), k = J(null);
|
|
12556
12608
|
if (h1(w, () => k.current), !f)
|
|
12557
12609
|
throw new Error(
|
|
12558
12610
|
`UserSelect requires "axiosPeople" to fetch users.
|
|
12559
12611
|
Please provide it via SNMTUiContext.`
|
|
12560
12612
|
);
|
|
12561
|
-
const Z =
|
|
12613
|
+
const Z = F(
|
|
12562
12614
|
(H) => {
|
|
12563
12615
|
let G = "";
|
|
12564
12616
|
return H.deletedAt && (G += `[${m("deleted")}] `), H.status === y1.ARCHIVED && (G += `[${m("archived")}] `), `${G}${H.firstName} ${H.lastName}`;
|
|
12565
12617
|
},
|
|
12566
12618
|
[m]
|
|
12567
|
-
), N =
|
|
12619
|
+
), N = F(
|
|
12568
12620
|
async ({
|
|
12569
12621
|
offset: H,
|
|
12570
12622
|
limit: G,
|
|
@@ -12583,7 +12635,7 @@ const m8 = a1(
|
|
|
12583
12635
|
options: _.map((B) => ({
|
|
12584
12636
|
value: B.id,
|
|
12585
12637
|
label: Z(B),
|
|
12586
|
-
image:
|
|
12638
|
+
image: o ? B.avatarUrl : void 0,
|
|
12587
12639
|
imageFallbackText: B.avatarUrl ? "" : f2(`${B.firstName} ${B.lastName}`)
|
|
12588
12640
|
})),
|
|
12589
12641
|
count: b.count
|
|
@@ -12598,8 +12650,8 @@ const m8 = a1(
|
|
|
12598
12650
|
};
|
|
12599
12651
|
}
|
|
12600
12652
|
},
|
|
12601
|
-
[f, l, Z,
|
|
12602
|
-
), Y =
|
|
12653
|
+
[f, l, Z, o, c]
|
|
12654
|
+
), Y = F(
|
|
12603
12655
|
async (H) => {
|
|
12604
12656
|
var G, T, P;
|
|
12605
12657
|
try {
|
|
@@ -12616,7 +12668,7 @@ const m8 = a1(
|
|
|
12616
12668
|
const W = O.map((_) => ({
|
|
12617
12669
|
value: _.id,
|
|
12618
12670
|
label: Z(_),
|
|
12619
|
-
image:
|
|
12671
|
+
image: o ? _.avatarUrl : void 0,
|
|
12620
12672
|
imageFallbackText: _.avatarUrl ? "" : f2(`${_.firstName} ${_.lastName}`)
|
|
12621
12673
|
}));
|
|
12622
12674
|
return [...v.current, ...W];
|
|
@@ -12627,11 +12679,11 @@ const m8 = a1(
|
|
|
12627
12679
|
}), [];
|
|
12628
12680
|
}
|
|
12629
12681
|
},
|
|
12630
|
-
[f, Z, c,
|
|
12682
|
+
[f, Z, c, o]
|
|
12631
12683
|
);
|
|
12632
12684
|
S(() => {
|
|
12633
|
-
v.current =
|
|
12634
|
-
}, [
|
|
12685
|
+
v.current = u;
|
|
12686
|
+
}, [u]), S(() => {
|
|
12635
12687
|
var H;
|
|
12636
12688
|
(H = k.current) == null || H.refetchOptions();
|
|
12637
12689
|
}, [l]), S(() => {
|
|
@@ -12644,7 +12696,7 @@ const m8 = a1(
|
|
|
12644
12696
|
x(T), A(!1);
|
|
12645
12697
|
})();
|
|
12646
12698
|
}, [Y, s]);
|
|
12647
|
-
const $ =
|
|
12699
|
+
const $ = F(
|
|
12648
12700
|
async ({
|
|
12649
12701
|
limit: H,
|
|
12650
12702
|
offset: G,
|
|
@@ -12664,15 +12716,15 @@ const m8 = a1(
|
|
|
12664
12716
|
},
|
|
12665
12717
|
[d, N]
|
|
12666
12718
|
);
|
|
12667
|
-
if (
|
|
12719
|
+
if (R)
|
|
12668
12720
|
return /* @__PURE__ */ n(m6, {});
|
|
12669
12721
|
const Q = {
|
|
12670
12722
|
ref: k,
|
|
12671
12723
|
placeholder: t,
|
|
12672
12724
|
disabled: i,
|
|
12673
|
-
clearable:
|
|
12725
|
+
clearable: a,
|
|
12674
12726
|
required: r,
|
|
12675
|
-
error:
|
|
12727
|
+
error: p
|
|
12676
12728
|
};
|
|
12677
12729
|
return e && e !== "single" ? /* @__PURE__ */ n(
|
|
12678
12730
|
e2,
|
|
@@ -12683,7 +12735,7 @@ const m8 = a1(
|
|
|
12683
12735
|
onChange: C,
|
|
12684
12736
|
loadOptions: $,
|
|
12685
12737
|
preloadOptions: !0,
|
|
12686
|
-
extraOptions:
|
|
12738
|
+
extraOptions: u
|
|
12687
12739
|
}
|
|
12688
12740
|
) : /* @__PURE__ */ n(
|
|
12689
12741
|
e2,
|
|
@@ -12694,7 +12746,7 @@ const m8 = a1(
|
|
|
12694
12746
|
onChange: C,
|
|
12695
12747
|
loadOptions: $,
|
|
12696
12748
|
preloadOptions: !0,
|
|
12697
|
-
extraOptions:
|
|
12749
|
+
extraOptions: u
|
|
12698
12750
|
}
|
|
12699
12751
|
);
|
|
12700
12752
|
}
|
|
@@ -12702,8 +12754,8 @@ const m8 = a1(
|
|
|
12702
12754
|
var t, i, s, C;
|
|
12703
12755
|
let e = "";
|
|
12704
12756
|
if (l) {
|
|
12705
|
-
const c = l.trim().split(" ").filter(Boolean), d = ((i = (t = c[0]) == null ? void 0 : t[0]) == null ? void 0 : i.toUpperCase()) ?? "",
|
|
12706
|
-
e = `${d}${
|
|
12757
|
+
const c = l.trim().split(" ").filter(Boolean), d = ((i = (t = c[0]) == null ? void 0 : t[0]) == null ? void 0 : i.toUpperCase()) ?? "", o = ((C = (s = c[1]) == null ? void 0 : s[0]) == null ? void 0 : C.toUpperCase()) ?? "";
|
|
12758
|
+
e = `${d}${o}`;
|
|
12707
12759
|
}
|
|
12708
12760
|
return e;
|
|
12709
12761
|
};
|