@snmt-react-ui/country-select 2.2.0 → 2.2.1
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/country-select.js +1112 -1089
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/country-select.js
CHANGED
@@ -1,37 +1,37 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
1
|
+
var ie = Object.defineProperty;
|
2
|
+
var se = (i, e, t) => e in i ? ie(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
3
|
+
var x1 = (i, e, t) => se(i, typeof e != "symbol" ? e + "" : e, t);
|
4
4
|
import "./index.css";
|
5
|
-
import { jsx as n,
|
6
|
-
import { SNMTUiContext as
|
7
|
-
import { Select as
|
8
|
-
import { createContext as
|
9
|
-
const
|
5
|
+
import { jsx as n, Fragment as z, jsxs as u } from "react/jsx-runtime";
|
6
|
+
import { SNMTUiContext as oe } from "@snmt-react-ui/core";
|
7
|
+
import { Select as ne, Flex as re, Avatar as le, Checkbox as ae, Typography as Z1, Tag as D1, Popover as he } from "antd";
|
8
|
+
import { createContext as e1, forwardRef as u1, useState as S, useRef as N1, useEffect as A, useCallback as Z, useContext as t1 } from "react";
|
9
|
+
const a1 = ({
|
10
10
|
children: i,
|
11
11
|
direction: e = "row",
|
12
12
|
flexWrap: t = "nowrap",
|
13
13
|
alignItems: s = "normal",
|
14
14
|
justifyContent: o = "normal",
|
15
|
-
flex:
|
15
|
+
flex: l,
|
16
16
|
gap: c,
|
17
17
|
padding: r
|
18
18
|
}) => /* @__PURE__ */ n(
|
19
|
-
|
19
|
+
re,
|
20
20
|
{
|
21
21
|
className: `snmt-flex${t === "inherit" ? " inherit" : ""}`,
|
22
22
|
vertical: e === "column",
|
23
23
|
wrap: t,
|
24
24
|
align: s,
|
25
25
|
justify: o,
|
26
|
-
flex:
|
26
|
+
flex: l,
|
27
27
|
gap: c,
|
28
28
|
style: { padding: r },
|
29
29
|
children: i
|
30
30
|
}
|
31
|
-
),
|
31
|
+
), ce = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
|
32
32
|
const o = typeof s.src == "string";
|
33
33
|
return /* @__PURE__ */ n(
|
34
|
-
|
34
|
+
le,
|
35
35
|
{
|
36
36
|
className: `snmt-avatar ${o ? "image" : ""}`,
|
37
37
|
shape: i,
|
@@ -42,46 +42,46 @@ const n1 = ({
|
|
42
42
|
}
|
43
43
|
);
|
44
44
|
};
|
45
|
-
var
|
46
|
-
const
|
45
|
+
var U = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(U || {});
|
46
|
+
const T1 = e1({
|
47
47
|
locale: "en",
|
48
48
|
theme: "light"
|
49
49
|
});
|
50
|
-
|
51
|
-
const
|
50
|
+
T1.Provider;
|
51
|
+
const de = ({
|
52
52
|
checked: i = !0,
|
53
53
|
indeterminate: e = !1,
|
54
54
|
children: t,
|
55
55
|
onChange: s,
|
56
56
|
disabled: o = !1,
|
57
|
-
disableUncheck:
|
57
|
+
disableUncheck: l = !1
|
58
58
|
}) => {
|
59
59
|
const [c, r] = S(i), [d, g] = S(e);
|
60
60
|
A(() => {
|
61
61
|
r(i), g(e);
|
62
62
|
}, [i, e]);
|
63
|
-
const { theme:
|
63
|
+
const { theme: a } = t1(T1);
|
64
64
|
return /* @__PURE__ */ n(
|
65
|
-
|
65
|
+
ae,
|
66
66
|
{
|
67
|
-
className: `snmt-checkbox snmt-checkbox-${
|
67
|
+
className: `snmt-checkbox snmt-checkbox-${a}`,
|
68
68
|
checked: c,
|
69
69
|
indeterminate: d,
|
70
70
|
onChange: (h) => {
|
71
|
-
|
71
|
+
l && c || (g(!1), r(h.target.checked), s && s(h));
|
72
72
|
},
|
73
73
|
disabled: o,
|
74
74
|
children: t
|
75
75
|
}
|
76
76
|
);
|
77
77
|
};
|
78
|
-
var
|
79
|
-
const
|
78
|
+
var m = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(m || {});
|
79
|
+
const G1 = e1({
|
80
80
|
locale: "en",
|
81
81
|
theme: "light"
|
82
82
|
});
|
83
|
-
|
84
|
-
const
|
83
|
+
G1.Provider;
|
84
|
+
const ge = ({
|
85
85
|
width: i = 20,
|
86
86
|
height: e = 20,
|
87
87
|
color: t = "#001E52",
|
@@ -108,7 +108,7 @@ const ae = ({
|
|
108
108
|
}
|
109
109
|
)
|
110
110
|
}
|
111
|
-
),
|
111
|
+
), ue = ({
|
112
112
|
width: i = 20,
|
113
113
|
height: e = 20,
|
114
114
|
color: t = "#001E52",
|
@@ -135,7 +135,7 @@ const ae = ({
|
|
135
135
|
}
|
136
136
|
)
|
137
137
|
}
|
138
|
-
),
|
138
|
+
), Ce = ({
|
139
139
|
width: i = 16,
|
140
140
|
height: e = 16,
|
141
141
|
color: t = "#001E52",
|
@@ -163,7 +163,7 @@ const ae = ({
|
|
163
163
|
)
|
164
164
|
]
|
165
165
|
}
|
166
|
-
),
|
166
|
+
), pe = ({
|
167
167
|
width: i = 20,
|
168
168
|
height: e = 20,
|
169
169
|
color: t = "#001E52",
|
@@ -198,7 +198,7 @@ const ae = ({
|
|
198
198
|
)
|
199
199
|
]
|
200
200
|
}
|
201
|
-
),
|
201
|
+
), fe = ({
|
202
202
|
width: i = 18,
|
203
203
|
height: e = 18,
|
204
204
|
color: t = "#001E52",
|
@@ -237,7 +237,7 @@ const ae = ({
|
|
237
237
|
)
|
238
238
|
]
|
239
239
|
}
|
240
|
-
),
|
240
|
+
), we = ({
|
241
241
|
width: i = 20,
|
242
242
|
height: e = 20,
|
243
243
|
color: t = "#001E52",
|
@@ -263,7 +263,7 @@ const ae = ({
|
|
263
263
|
}
|
264
264
|
)
|
265
265
|
}
|
266
|
-
),
|
266
|
+
), me = ({
|
267
267
|
width: i = 20,
|
268
268
|
height: e = 20,
|
269
269
|
color: t = "#001E52",
|
@@ -284,7 +284,7 @@ const ae = ({
|
|
284
284
|
/* @__PURE__ */ n("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
285
285
|
]
|
286
286
|
}
|
287
|
-
),
|
287
|
+
), ke = ({
|
288
288
|
width: i = 20,
|
289
289
|
height: e = 20,
|
290
290
|
color: t = "#001E52",
|
@@ -316,7 +316,7 @@ const ae = ({
|
|
316
316
|
)
|
317
317
|
]
|
318
318
|
}
|
319
|
-
),
|
319
|
+
), Le = ({
|
320
320
|
width: i = 20,
|
321
321
|
height: e = 20,
|
322
322
|
color: t = "#001E52",
|
@@ -370,7 +370,7 @@ const ae = ({
|
|
370
370
|
)
|
371
371
|
]
|
372
372
|
}
|
373
|
-
),
|
373
|
+
), ve = ({
|
374
374
|
width: i = 20,
|
375
375
|
height: e = 20,
|
376
376
|
color: t = "#001E52",
|
@@ -409,7 +409,7 @@ const ae = ({
|
|
409
409
|
/* @__PURE__ */ n("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
410
410
|
]
|
411
411
|
}
|
412
|
-
),
|
412
|
+
), Ne = ({
|
413
413
|
width: i = 16,
|
414
414
|
height: e = 12,
|
415
415
|
color: t = "#001E52",
|
@@ -458,7 +458,7 @@ const ae = ({
|
|
458
458
|
)
|
459
459
|
] })
|
460
460
|
}
|
461
|
-
),
|
461
|
+
), xe = ({
|
462
462
|
width: i = 16,
|
463
463
|
height: e = 16,
|
464
464
|
color: t = "#001E52",
|
@@ -492,7 +492,7 @@ const ae = ({
|
|
492
492
|
)
|
493
493
|
]
|
494
494
|
}
|
495
|
-
),
|
495
|
+
), Re = ({
|
496
496
|
width: i = 10,
|
497
497
|
height: e = 10,
|
498
498
|
color: t = "#001E52",
|
@@ -531,7 +531,7 @@ const ae = ({
|
|
531
531
|
)
|
532
532
|
] })
|
533
533
|
}
|
534
|
-
),
|
534
|
+
), Me = ({
|
535
535
|
width: i = 16,
|
536
536
|
height: e = 16,
|
537
537
|
color: t = "#001E52",
|
@@ -567,7 +567,7 @@ const ae = ({
|
|
567
567
|
)
|
568
568
|
]
|
569
569
|
}
|
570
|
-
),
|
570
|
+
), ye = ({
|
571
571
|
width: i = 11,
|
572
572
|
height: e = 32,
|
573
573
|
color: t = "#001E52",
|
@@ -605,7 +605,7 @@ const ae = ({
|
|
605
605
|
/* @__PURE__ */ n("circle", { cx: "3", cy: "3", r: "3", fill: t })
|
606
606
|
]
|
607
607
|
}
|
608
|
-
),
|
608
|
+
), be = ({
|
609
609
|
width: i = 20,
|
610
610
|
height: e = 20,
|
611
611
|
color: t = "#001E52",
|
@@ -652,7 +652,7 @@ const ae = ({
|
|
652
652
|
)
|
653
653
|
]
|
654
654
|
}
|
655
|
-
),
|
655
|
+
), Ee = ({
|
656
656
|
width: i = 20,
|
657
657
|
height: e = 20,
|
658
658
|
color: t = "#001E52",
|
@@ -685,7 +685,7 @@ const ae = ({
|
|
685
685
|
)
|
686
686
|
]
|
687
687
|
}
|
688
|
-
),
|
688
|
+
), _e = ({
|
689
689
|
width: i = 20,
|
690
690
|
height: e = 20,
|
691
691
|
color: t = "#001E52",
|
@@ -732,7 +732,7 @@ const ae = ({
|
|
732
732
|
)
|
733
733
|
]
|
734
734
|
}
|
735
|
-
),
|
735
|
+
), He = ({
|
736
736
|
width: i = 20,
|
737
737
|
height: e = 20,
|
738
738
|
color: t = "#001E52",
|
@@ -765,7 +765,7 @@ const ae = ({
|
|
765
765
|
)
|
766
766
|
]
|
767
767
|
}
|
768
|
-
),
|
768
|
+
), Ve = ({
|
769
769
|
width: i = 18,
|
770
770
|
height: e = 16,
|
771
771
|
color: t = "#001E52",
|
@@ -804,7 +804,7 @@ const ae = ({
|
|
804
804
|
)
|
805
805
|
]
|
806
806
|
}
|
807
|
-
),
|
807
|
+
), Ie = ({
|
808
808
|
width: i = 20,
|
809
809
|
height: e = 20,
|
810
810
|
color: t = "#001E52",
|
@@ -837,7 +837,7 @@ const ae = ({
|
|
837
837
|
)
|
838
838
|
]
|
839
839
|
}
|
840
|
-
),
|
840
|
+
), Se = ({
|
841
841
|
width: i = 20,
|
842
842
|
height: e = 20,
|
843
843
|
color: t = "#001E52",
|
@@ -861,7 +861,7 @@ const ae = ({
|
|
861
861
|
}
|
862
862
|
)
|
863
863
|
}
|
864
|
-
),
|
864
|
+
), Oe = ({
|
865
865
|
width: i = 20,
|
866
866
|
height: e = 20,
|
867
867
|
color: t = "#001E52",
|
@@ -908,7 +908,7 @@ const ae = ({
|
|
908
908
|
)
|
909
909
|
]
|
910
910
|
}
|
911
|
-
),
|
911
|
+
), Ae = ({
|
912
912
|
width: i = 20,
|
913
913
|
height: e = 20,
|
914
914
|
color: t = "#001E52",
|
@@ -941,7 +941,7 @@ const ae = ({
|
|
941
941
|
)
|
942
942
|
]
|
943
943
|
}
|
944
|
-
),
|
944
|
+
), Be = ({
|
945
945
|
width: i = 20,
|
946
946
|
height: e = 20,
|
947
947
|
color: t = "#001E52",
|
@@ -974,7 +974,7 @@ const ae = ({
|
|
974
974
|
)
|
975
975
|
]
|
976
976
|
}
|
977
|
-
),
|
977
|
+
), We = ({
|
978
978
|
width: i = 20,
|
979
979
|
height: e = 23,
|
980
980
|
color: t = "#001E52",
|
@@ -1035,7 +1035,7 @@ const ae = ({
|
|
1035
1035
|
)
|
1036
1036
|
]
|
1037
1037
|
}
|
1038
|
-
),
|
1038
|
+
), je = ({
|
1039
1039
|
width: i = 20,
|
1040
1040
|
height: e = 20,
|
1041
1041
|
color: t = "#001E52",
|
@@ -1075,7 +1075,7 @@ const ae = ({
|
|
1075
1075
|
)
|
1076
1076
|
]
|
1077
1077
|
}
|
1078
|
-
),
|
1078
|
+
), Ze = ({
|
1079
1079
|
width: i = 32,
|
1080
1080
|
height: e = 25,
|
1081
1081
|
color: t = "#001E52",
|
@@ -1103,7 +1103,7 @@ const ae = ({
|
|
1103
1103
|
)
|
1104
1104
|
]
|
1105
1105
|
}
|
1106
|
-
),
|
1106
|
+
), De = ({
|
1107
1107
|
width: i = 14,
|
1108
1108
|
height: e = 14,
|
1109
1109
|
color: t = "#10B981",
|
@@ -1132,7 +1132,7 @@ const ae = ({
|
|
1132
1132
|
)
|
1133
1133
|
]
|
1134
1134
|
}
|
1135
|
-
),
|
1135
|
+
), Te = ({
|
1136
1136
|
width: i = 11,
|
1137
1137
|
height: e = 11,
|
1138
1138
|
color: t = "#FFB020",
|
@@ -1166,7 +1166,7 @@ const ae = ({
|
|
1166
1166
|
)
|
1167
1167
|
]
|
1168
1168
|
}
|
1169
|
-
),
|
1169
|
+
), Ge = ({
|
1170
1170
|
width: i = 10,
|
1171
1171
|
height: e = 10,
|
1172
1172
|
color: t = "#88A4FF",
|
@@ -1214,7 +1214,7 @@ const ae = ({
|
|
1214
1214
|
)
|
1215
1215
|
]
|
1216
1216
|
}
|
1217
|
-
),
|
1217
|
+
), Ke = ({
|
1218
1218
|
width: i = 14,
|
1219
1219
|
height: e = 14,
|
1220
1220
|
color: t = "#8E8E93",
|
@@ -1242,7 +1242,7 @@ const ae = ({
|
|
1242
1242
|
)
|
1243
1243
|
]
|
1244
1244
|
}
|
1245
|
-
),
|
1245
|
+
), Pe = ({
|
1246
1246
|
width: i = 14,
|
1247
1247
|
height: e = 14,
|
1248
1248
|
color: t = "#FFB020",
|
@@ -1276,7 +1276,7 @@ const ae = ({
|
|
1276
1276
|
)
|
1277
1277
|
]
|
1278
1278
|
}
|
1279
|
-
),
|
1279
|
+
), Fe = ({
|
1280
1280
|
width: i = 14,
|
1281
1281
|
height: e = 14,
|
1282
1282
|
color: t = "#D0421B",
|
@@ -1324,7 +1324,7 @@ const ae = ({
|
|
1324
1324
|
)
|
1325
1325
|
]
|
1326
1326
|
}
|
1327
|
-
),
|
1327
|
+
), $e = ({
|
1328
1328
|
width: i = 20,
|
1329
1329
|
height: e = 20,
|
1330
1330
|
color: t = "#070739",
|
@@ -1354,7 +1354,7 @@ const ae = ({
|
|
1354
1354
|
/* @__PURE__ */ n("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
1355
1355
|
]
|
1356
1356
|
}
|
1357
|
-
),
|
1357
|
+
), Ye = ({
|
1358
1358
|
width: i = 20,
|
1359
1359
|
height: e = 20,
|
1360
1360
|
color: t = "#070739",
|
@@ -1392,7 +1392,7 @@ const ae = ({
|
|
1392
1392
|
)
|
1393
1393
|
]
|
1394
1394
|
}
|
1395
|
-
),
|
1395
|
+
), Ue = ({
|
1396
1396
|
width: i = 9,
|
1397
1397
|
height: e = 5,
|
1398
1398
|
color: t = "#001E52",
|
@@ -1418,7 +1418,7 @@ const ae = ({
|
|
1418
1418
|
}
|
1419
1419
|
)
|
1420
1420
|
}
|
1421
|
-
),
|
1421
|
+
), ze = ({
|
1422
1422
|
width: i = 20,
|
1423
1423
|
height: e = 20,
|
1424
1424
|
color: t = "#F2F2F7",
|
@@ -1447,7 +1447,7 @@ const ae = ({
|
|
1447
1447
|
)
|
1448
1448
|
]
|
1449
1449
|
}
|
1450
|
-
),
|
1450
|
+
), Je = ({
|
1451
1451
|
width: i = 20,
|
1452
1452
|
height: e = 20,
|
1453
1453
|
color: t = "#004ED7",
|
@@ -1476,7 +1476,7 @@ const ae = ({
|
|
1476
1476
|
)
|
1477
1477
|
]
|
1478
1478
|
}
|
1479
|
-
),
|
1479
|
+
), Qe = ({
|
1480
1480
|
width: i = 248,
|
1481
1481
|
height: e = 248,
|
1482
1482
|
color: t = "#070739",
|
@@ -1513,7 +1513,7 @@ const ae = ({
|
|
1513
1513
|
)
|
1514
1514
|
]
|
1515
1515
|
}
|
1516
|
-
),
|
1516
|
+
), qe = ({
|
1517
1517
|
width: i = 24,
|
1518
1518
|
height: e = 24,
|
1519
1519
|
color: t = "#001E52",
|
@@ -1552,7 +1552,7 @@ const ae = ({
|
|
1552
1552
|
)
|
1553
1553
|
]
|
1554
1554
|
}
|
1555
|
-
),
|
1555
|
+
), Xe = ({
|
1556
1556
|
width: i = 10,
|
1557
1557
|
height: e = 10,
|
1558
1558
|
color: t = "#001E52",
|
@@ -1581,7 +1581,7 @@ const ae = ({
|
|
1581
1581
|
)
|
1582
1582
|
]
|
1583
1583
|
}
|
1584
|
-
),
|
1584
|
+
), et = ({
|
1585
1585
|
width: i = 10,
|
1586
1586
|
height: e = 10,
|
1587
1587
|
color: t = "#001E52",
|
@@ -1618,10 +1618,10 @@ const ae = ({
|
|
1618
1618
|
)
|
1619
1619
|
]
|
1620
1620
|
}
|
1621
|
-
),
|
1621
|
+
), tt = ({
|
1622
1622
|
width: i = 24,
|
1623
1623
|
height: e = 24,
|
1624
|
-
color: t =
|
1624
|
+
color: t = m.GREY_DARK_5,
|
1625
1625
|
className: s,
|
1626
1626
|
onClick: o
|
1627
1627
|
}) => /* @__PURE__ */ u(
|
@@ -1657,10 +1657,10 @@ const ae = ({
|
|
1657
1657
|
)
|
1658
1658
|
]
|
1659
1659
|
}
|
1660
|
-
),
|
1660
|
+
), it = ({
|
1661
1661
|
width: i = 20,
|
1662
1662
|
height: e = 20,
|
1663
|
-
color: t =
|
1663
|
+
color: t = m.GREY_DARK_1,
|
1664
1664
|
className: s,
|
1665
1665
|
onClick: o
|
1666
1666
|
}) => /* @__PURE__ */ u(
|
@@ -1690,10 +1690,10 @@ const ae = ({
|
|
1690
1690
|
)
|
1691
1691
|
]
|
1692
1692
|
}
|
1693
|
-
),
|
1693
|
+
), st = ({
|
1694
1694
|
width: i = 81,
|
1695
1695
|
height: e = 80,
|
1696
|
-
color: t =
|
1696
|
+
color: t = m.GREY_DARK_5,
|
1697
1697
|
className: s,
|
1698
1698
|
onClick: o
|
1699
1699
|
}) => /* @__PURE__ */ u(
|
@@ -1739,9 +1739,9 @@ const ae = ({
|
|
1739
1739
|
)
|
1740
1740
|
]
|
1741
1741
|
}
|
1742
|
-
),
|
1742
|
+
), ot = ({
|
1743
1743
|
className: i,
|
1744
|
-
color: e =
|
1744
|
+
color: e = m.GREY_DARK_5,
|
1745
1745
|
height: t = 20,
|
1746
1746
|
width: s = 20,
|
1747
1747
|
onClick: o
|
@@ -1766,9 +1766,9 @@ const ae = ({
|
|
1766
1766
|
}
|
1767
1767
|
)
|
1768
1768
|
}
|
1769
|
-
),
|
1769
|
+
), nt = ({
|
1770
1770
|
className: i,
|
1771
|
-
color: e =
|
1771
|
+
color: e = m.GREY_DARK_5,
|
1772
1772
|
height: t = 20,
|
1773
1773
|
width: s = 20,
|
1774
1774
|
onClick: o
|
@@ -1793,9 +1793,9 @@ const ae = ({
|
|
1793
1793
|
}
|
1794
1794
|
)
|
1795
1795
|
}
|
1796
|
-
),
|
1796
|
+
), rt = ({
|
1797
1797
|
className: i,
|
1798
|
-
color: e =
|
1798
|
+
color: e = m.GREY_DARK_5,
|
1799
1799
|
height: t = 5,
|
1800
1800
|
width: s = 10,
|
1801
1801
|
onClick: o
|
@@ -1817,9 +1817,9 @@ const ae = ({
|
|
1817
1817
|
}
|
1818
1818
|
)
|
1819
1819
|
}
|
1820
|
-
),
|
1820
|
+
), lt = ({
|
1821
1821
|
className: i,
|
1822
|
-
color: e =
|
1822
|
+
color: e = m.GREY_DARK_5,
|
1823
1823
|
height: t = 5,
|
1824
1824
|
width: s = 10,
|
1825
1825
|
onClick: o
|
@@ -1842,9 +1842,9 @@ const ae = ({
|
|
1842
1842
|
}
|
1843
1843
|
)
|
1844
1844
|
}
|
1845
|
-
),
|
1845
|
+
), at = ({
|
1846
1846
|
className: i,
|
1847
|
-
color: e =
|
1847
|
+
color: e = m.GREY_DARK_5,
|
1848
1848
|
height: t = 24,
|
1849
1849
|
width: s = 24,
|
1850
1850
|
onClick: o
|
@@ -1881,9 +1881,9 @@ const ae = ({
|
|
1881
1881
|
)
|
1882
1882
|
]
|
1883
1883
|
}
|
1884
|
-
),
|
1884
|
+
), ht = ({
|
1885
1885
|
className: i,
|
1886
|
-
color: e =
|
1886
|
+
color: e = m.GREY_DARK_5,
|
1887
1887
|
height: t = 24,
|
1888
1888
|
width: s = 24,
|
1889
1889
|
onClick: o
|
@@ -1920,9 +1920,9 @@ const ae = ({
|
|
1920
1920
|
)
|
1921
1921
|
]
|
1922
1922
|
}
|
1923
|
-
),
|
1923
|
+
), ct = ({
|
1924
1924
|
className: i,
|
1925
|
-
color: e =
|
1925
|
+
color: e = m.GREY_DARK_5,
|
1926
1926
|
height: t = 24,
|
1927
1927
|
width: s = 24,
|
1928
1928
|
onClick: o
|
@@ -1947,9 +1947,9 @@ const ae = ({
|
|
1947
1947
|
}
|
1948
1948
|
)
|
1949
1949
|
}
|
1950
|
-
),
|
1950
|
+
), dt = ({
|
1951
1951
|
className: i,
|
1952
|
-
color: e =
|
1952
|
+
color: e = m.GREY_DARK_5,
|
1953
1953
|
height: t = 24,
|
1954
1954
|
width: s = 24,
|
1955
1955
|
onClick: o
|
@@ -2006,9 +2006,9 @@ const ae = ({
|
|
2006
2006
|
)
|
2007
2007
|
]
|
2008
2008
|
}
|
2009
|
-
),
|
2009
|
+
), gt = ({
|
2010
2010
|
className: i,
|
2011
|
-
color: e =
|
2011
|
+
color: e = m.GREY_DARK_5,
|
2012
2012
|
height: t = 24,
|
2013
2013
|
width: s = 24,
|
2014
2014
|
onClick: o
|
@@ -2043,9 +2043,9 @@ const ae = ({
|
|
2043
2043
|
)
|
2044
2044
|
]
|
2045
2045
|
}
|
2046
|
-
),
|
2046
|
+
), ut = ({
|
2047
2047
|
className: i,
|
2048
|
-
color: e =
|
2048
|
+
color: e = m.GREY_DARK_3,
|
2049
2049
|
height: t = 14,
|
2050
2050
|
width: s = 14,
|
2051
2051
|
onClick: o
|
@@ -2080,9 +2080,9 @@ const ae = ({
|
|
2080
2080
|
)
|
2081
2081
|
]
|
2082
2082
|
}
|
2083
|
-
),
|
2083
|
+
), Ct = ({
|
2084
2084
|
className: i,
|
2085
|
-
color: e =
|
2085
|
+
color: e = m.GREY_DARK_5,
|
2086
2086
|
height: t = 18,
|
2087
2087
|
onClick: s,
|
2088
2088
|
width: o = 18
|
@@ -2107,9 +2107,9 @@ const ae = ({
|
|
2107
2107
|
}
|
2108
2108
|
)
|
2109
2109
|
}
|
2110
|
-
),
|
2110
|
+
), pt = ({
|
2111
2111
|
className: i,
|
2112
|
-
color: e =
|
2112
|
+
color: e = m.GREY_DARK_5,
|
2113
2113
|
height: t = 24,
|
2114
2114
|
width: s = 24,
|
2115
2115
|
onClick: o
|
@@ -2159,9 +2159,9 @@ const ae = ({
|
|
2159
2159
|
)
|
2160
2160
|
]
|
2161
2161
|
}
|
2162
|
-
),
|
2162
|
+
), ft = ({
|
2163
2163
|
className: i,
|
2164
|
-
color: e =
|
2164
|
+
color: e = m.GREY_DARK_5,
|
2165
2165
|
height: t = 24,
|
2166
2166
|
width: s = 24,
|
2167
2167
|
onClick: o
|
@@ -2196,9 +2196,9 @@ const ae = ({
|
|
2196
2196
|
)
|
2197
2197
|
]
|
2198
2198
|
}
|
2199
|
-
),
|
2199
|
+
), wt = ({
|
2200
2200
|
className: i,
|
2201
|
-
color: e =
|
2201
|
+
color: e = m.NOTIFICATION_WARNING_DARK,
|
2202
2202
|
height: t = 37,
|
2203
2203
|
width: s = 36,
|
2204
2204
|
onClick: o
|
@@ -2235,9 +2235,9 @@ const ae = ({
|
|
2235
2235
|
)
|
2236
2236
|
]
|
2237
2237
|
}
|
2238
|
-
),
|
2238
|
+
), mt = ({
|
2239
2239
|
className: i,
|
2240
|
-
color: e =
|
2240
|
+
color: e = m.GREY_DARK_5,
|
2241
2241
|
height: t = 24,
|
2242
2242
|
width: s = 24,
|
2243
2243
|
onClick: o
|
@@ -2261,9 +2261,9 @@ const ae = ({
|
|
2261
2261
|
}
|
2262
2262
|
)
|
2263
2263
|
}
|
2264
|
-
),
|
2264
|
+
), kt = ({
|
2265
2265
|
className: i,
|
2266
|
-
color: e =
|
2266
|
+
color: e = m.GREY_DARK_5,
|
2267
2267
|
height: t = 24,
|
2268
2268
|
width: s = 24,
|
2269
2269
|
onClick: o
|
@@ -2300,9 +2300,9 @@ const ae = ({
|
|
2300
2300
|
)
|
2301
2301
|
]
|
2302
2302
|
}
|
2303
|
-
),
|
2303
|
+
), Lt = ({
|
2304
2304
|
className: i,
|
2305
|
-
color: e =
|
2305
|
+
color: e = m.GREY_DARK_5,
|
2306
2306
|
height: t = 24,
|
2307
2307
|
width: s = 24,
|
2308
2308
|
onClick: o
|
@@ -2339,9 +2339,9 @@ const ae = ({
|
|
2339
2339
|
)
|
2340
2340
|
]
|
2341
2341
|
}
|
2342
|
-
),
|
2342
|
+
), vt = ({
|
2343
2343
|
className: i,
|
2344
|
-
color: e =
|
2344
|
+
color: e = m.GREY_DARK_5,
|
2345
2345
|
height: t = 24,
|
2346
2346
|
width: s = 24,
|
2347
2347
|
onClick: o
|
@@ -2408,9 +2408,9 @@ const ae = ({
|
|
2408
2408
|
)
|
2409
2409
|
]
|
2410
2410
|
}
|
2411
|
-
),
|
2411
|
+
), Nt = ({
|
2412
2412
|
className: i,
|
2413
|
-
color: e =
|
2413
|
+
color: e = m.GREY_DARK_5,
|
2414
2414
|
height: t = 24,
|
2415
2415
|
width: s = 24,
|
2416
2416
|
onClick: o
|
@@ -2447,9 +2447,9 @@ const ae = ({
|
|
2447
2447
|
)
|
2448
2448
|
]
|
2449
2449
|
}
|
2450
|
-
),
|
2450
|
+
), xt = ({
|
2451
2451
|
className: i,
|
2452
|
-
color: e =
|
2452
|
+
color: e = m.GREY_DARK_5,
|
2453
2453
|
height: t = 24,
|
2454
2454
|
width: s = 24,
|
2455
2455
|
onClick: o
|
@@ -2504,9 +2504,9 @@ const ae = ({
|
|
2504
2504
|
)
|
2505
2505
|
]
|
2506
2506
|
}
|
2507
|
-
),
|
2507
|
+
), Rt = ({
|
2508
2508
|
className: i,
|
2509
|
-
color: e =
|
2509
|
+
color: e = m.GREY_DARK_5,
|
2510
2510
|
height: t = 24,
|
2511
2511
|
width: s = 24,
|
2512
2512
|
onClick: o
|
@@ -2543,9 +2543,9 @@ const ae = ({
|
|
2543
2543
|
)
|
2544
2544
|
]
|
2545
2545
|
}
|
2546
|
-
),
|
2546
|
+
), Mt = ({
|
2547
2547
|
className: i,
|
2548
|
-
color: e =
|
2548
|
+
color: e = m.GREY_DARK_5,
|
2549
2549
|
height: t = 24,
|
2550
2550
|
width: s = 24,
|
2551
2551
|
onClick: o
|
@@ -2592,9 +2592,9 @@ const ae = ({
|
|
2592
2592
|
)
|
2593
2593
|
]
|
2594
2594
|
}
|
2595
|
-
),
|
2595
|
+
), yt = ({
|
2596
2596
|
className: i,
|
2597
|
-
color: e =
|
2597
|
+
color: e = m.GREY_DARK_5,
|
2598
2598
|
height: t = 24,
|
2599
2599
|
width: s = 24,
|
2600
2600
|
onClick: o
|
@@ -2631,9 +2631,9 @@ const ae = ({
|
|
2631
2631
|
)
|
2632
2632
|
]
|
2633
2633
|
}
|
2634
|
-
),
|
2634
|
+
), bt = ({
|
2635
2635
|
className: i,
|
2636
|
-
color: e =
|
2636
|
+
color: e = m.GREY_DARK_5,
|
2637
2637
|
height: t = 24,
|
2638
2638
|
width: s = 24,
|
2639
2639
|
onClick: o
|
@@ -2658,9 +2658,9 @@ const ae = ({
|
|
2658
2658
|
}
|
2659
2659
|
)
|
2660
2660
|
}
|
2661
|
-
),
|
2661
|
+
), Et = ({
|
2662
2662
|
className: i,
|
2663
|
-
color: e =
|
2663
|
+
color: e = m.GREY_DARK_5,
|
2664
2664
|
height: t = 24,
|
2665
2665
|
width: s = 24,
|
2666
2666
|
onClick: o
|
@@ -2696,9 +2696,9 @@ const ae = ({
|
|
2696
2696
|
)
|
2697
2697
|
]
|
2698
2698
|
}
|
2699
|
-
),
|
2699
|
+
), _t = ({
|
2700
2700
|
className: i,
|
2701
|
-
color: e =
|
2701
|
+
color: e = m.GREY_DARK_5,
|
2702
2702
|
height: t = 24,
|
2703
2703
|
width: s = 24,
|
2704
2704
|
onClick: o
|
@@ -2717,9 +2717,9 @@ const ae = ({
|
|
2717
2717
|
/* @__PURE__ */ n("path", { d: "M12 8L4 8", stroke: e, strokeWidth: "1.7", strokeLinecap: "round" })
|
2718
2718
|
]
|
2719
2719
|
}
|
2720
|
-
),
|
2720
|
+
), Ht = ({
|
2721
2721
|
className: i,
|
2722
|
-
color: e =
|
2722
|
+
color: e = m.GREY_DARK_5,
|
2723
2723
|
height: t = 24,
|
2724
2724
|
width: s = 24,
|
2725
2725
|
onClick: o
|
@@ -2756,9 +2756,9 @@ const ae = ({
|
|
2756
2756
|
)
|
2757
2757
|
]
|
2758
2758
|
}
|
2759
|
-
),
|
2759
|
+
), Vt = ({
|
2760
2760
|
className: i,
|
2761
|
-
color: e =
|
2761
|
+
color: e = m.GREY_DARK_5,
|
2762
2762
|
height: t = 24,
|
2763
2763
|
width: s = 24,
|
2764
2764
|
onClick: o
|
@@ -2795,9 +2795,9 @@ const ae = ({
|
|
2795
2795
|
)
|
2796
2796
|
]
|
2797
2797
|
}
|
2798
|
-
),
|
2798
|
+
), It = ({
|
2799
2799
|
className: i,
|
2800
|
-
color: e =
|
2800
|
+
color: e = m.GREY_DARK_5,
|
2801
2801
|
height: t = 24,
|
2802
2802
|
width: s = 24,
|
2803
2803
|
onClick: o
|
@@ -2834,9 +2834,9 @@ const ae = ({
|
|
2834
2834
|
)
|
2835
2835
|
]
|
2836
2836
|
}
|
2837
|
-
),
|
2837
|
+
), St = ({
|
2838
2838
|
className: i,
|
2839
|
-
color: e =
|
2839
|
+
color: e = m.GREY_DARK_2,
|
2840
2840
|
height: t = 16,
|
2841
2841
|
width: s = 16,
|
2842
2842
|
onClick: o
|
@@ -2860,9 +2860,9 @@ const ae = ({
|
|
2860
2860
|
}
|
2861
2861
|
)
|
2862
2862
|
}
|
2863
|
-
),
|
2863
|
+
), Ot = ({
|
2864
2864
|
className: i,
|
2865
|
-
color: e =
|
2865
|
+
color: e = m.GREY_DARK_5,
|
2866
2866
|
height: t = 20,
|
2867
2867
|
width: s = 20,
|
2868
2868
|
onClick: o
|
@@ -2889,9 +2889,9 @@ const ae = ({
|
|
2889
2889
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_3992_5989", children: /* @__PURE__ */ n("rect", { width: "20", height: "20", fill: "white" }) }) })
|
2890
2890
|
]
|
2891
2891
|
}
|
2892
|
-
),
|
2892
|
+
), At = ({
|
2893
2893
|
className: i,
|
2894
|
-
color: e =
|
2894
|
+
color: e = m.GREY_DARK_5,
|
2895
2895
|
height: t = 20,
|
2896
2896
|
width: s = 20,
|
2897
2897
|
onClick: o
|
@@ -2918,9 +2918,9 @@ const ae = ({
|
|
2918
2918
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_3992_5988", children: /* @__PURE__ */ n("rect", { width: "20", height: "20", fill: "white" }) }) })
|
2919
2919
|
]
|
2920
2920
|
}
|
2921
|
-
),
|
2921
|
+
), Bt = ({
|
2922
2922
|
className: i,
|
2923
|
-
color: e =
|
2923
|
+
color: e = m.GREY_DARK_5,
|
2924
2924
|
height: t = 20,
|
2925
2925
|
width: s = 20,
|
2926
2926
|
onClick: o
|
@@ -2935,7 +2935,7 @@ const ae = ({
|
|
2935
2935
|
fill: "none",
|
2936
2936
|
xmlns: "http://www.w3.org/2000/svg",
|
2937
2937
|
children: [
|
2938
|
-
/* @__PURE__ */ n("rect", { width: "20", height: "20", rx: "4", fill:
|
2938
|
+
/* @__PURE__ */ n("rect", { width: "20", height: "20", rx: "4", fill: m.GREY_LIGHT_2 }),
|
2939
2939
|
/* @__PURE__ */ n(
|
2940
2940
|
"path",
|
2941
2941
|
{
|
@@ -2947,9 +2947,9 @@ const ae = ({
|
|
2947
2947
|
)
|
2948
2948
|
]
|
2949
2949
|
}
|
2950
|
-
),
|
2950
|
+
), Wt = ({
|
2951
2951
|
className: i,
|
2952
|
-
color: e =
|
2952
|
+
color: e = m.GREY_DARK_5,
|
2953
2953
|
height: t = 20,
|
2954
2954
|
width: s = 20,
|
2955
2955
|
onClick: o
|
@@ -2964,7 +2964,7 @@ const ae = ({
|
|
2964
2964
|
fill: "none",
|
2965
2965
|
xmlns: "http://www.w3.org/2000/svg",
|
2966
2966
|
children: [
|
2967
|
-
/* @__PURE__ */ n("rect", { width: "20", height: "20", rx: "4", fill:
|
2967
|
+
/* @__PURE__ */ n("rect", { width: "20", height: "20", rx: "4", fill: m.GREY_LIGHT_2 }),
|
2968
2968
|
/* @__PURE__ */ n(
|
2969
2969
|
"path",
|
2970
2970
|
{
|
@@ -2976,7 +2976,7 @@ const ae = ({
|
|
2976
2976
|
)
|
2977
2977
|
]
|
2978
2978
|
}
|
2979
|
-
),
|
2979
|
+
), jt = ({
|
2980
2980
|
className: i,
|
2981
2981
|
color: e = "#001E52",
|
2982
2982
|
height: t = 24,
|
@@ -3002,7 +3002,7 @@ const ae = ({
|
|
3002
3002
|
}
|
3003
3003
|
)
|
3004
3004
|
}
|
3005
|
-
),
|
3005
|
+
), Zt = ({
|
3006
3006
|
className: i,
|
3007
3007
|
color: e = "#131314",
|
3008
3008
|
height: t = 20,
|
@@ -3030,7 +3030,7 @@ const ae = ({
|
|
3030
3030
|
}
|
3031
3031
|
)
|
3032
3032
|
}
|
3033
|
-
),
|
3033
|
+
), Dt = ({
|
3034
3034
|
className: i,
|
3035
3035
|
color: e = "#001E52",
|
3036
3036
|
height: t = 24,
|
@@ -3068,295 +3068,295 @@ const ae = ({
|
|
3068
3068
|
)
|
3069
3069
|
] }) })
|
3070
3070
|
}
|
3071
|
-
),
|
3071
|
+
), r1 = ({
|
3072
3072
|
name: i,
|
3073
3073
|
width: e,
|
3074
3074
|
height: t,
|
3075
3075
|
color: s,
|
3076
3076
|
className: o,
|
3077
|
-
disabled:
|
3077
|
+
disabled: l = !1,
|
3078
3078
|
onClick: c
|
3079
3079
|
}) => {
|
3080
|
-
const [r, d] = S(o), { theme: g } =
|
3080
|
+
const [r, d] = S(o), { theme: g } = t1(G1), a = l ? g && g === "dark" ? m.GREY_LIGHT_4 : m.GREY_DARK_1 : s, h = l ? void 0 : c;
|
3081
3081
|
return A(() => {
|
3082
3082
|
if (o) {
|
3083
|
-
h && !
|
3083
|
+
h && !l && d(`${o} clickable`);
|
3084
3084
|
return;
|
3085
3085
|
}
|
3086
|
-
h && !
|
3087
|
-
}, [h, o,
|
3086
|
+
h && !l && d("clickable");
|
3087
|
+
}, [h, o, l]), /* @__PURE__ */ n(z, { children: (() => {
|
3088
3088
|
switch (i) {
|
3089
3089
|
case "nextIcon":
|
3090
|
-
return
|
3090
|
+
return ot({ width: e, height: t, color: a, className: r, onClick: h });
|
3091
3091
|
case "prevIcon":
|
3092
|
-
return
|
3092
|
+
return nt({ width: e, height: t, color: a, className: r, onClick: h });
|
3093
3093
|
case "arrowUp":
|
3094
|
-
return
|
3094
|
+
return ge({ width: e, height: t, color: a, className: r, onClick: h });
|
3095
3095
|
case "arrowDown":
|
3096
|
-
return
|
3096
|
+
return ue({ width: e, height: t, color: a, className: r, onClick: h });
|
3097
3097
|
case "info":
|
3098
|
-
return
|
3098
|
+
return Ce({ width: e, height: t, color: a, className: r, onClick: h });
|
3099
3099
|
case "arrowRight":
|
3100
|
-
return
|
3100
|
+
return pe({ width: e, height: t, color: a, className: r, onClick: h });
|
3101
3101
|
case "calendar":
|
3102
|
-
return
|
3102
|
+
return fe({ width: e, height: t, color: a, className: r, onClick: h });
|
3103
3103
|
case "ok":
|
3104
|
-
return
|
3104
|
+
return we({ width: e, height: t, color: a, className: r, onClick: h });
|
3105
3105
|
case "cancel":
|
3106
|
-
return
|
3106
|
+
return me({ width: e, height: t, color: a, className: r, onClick: h });
|
3107
3107
|
case "add":
|
3108
|
-
return
|
3108
|
+
return ke({ width: e, height: t, color: a, className: r, onClick: h });
|
3109
3109
|
case "list":
|
3110
|
-
return
|
3110
|
+
return Le({ width: e, height: t, color: a, className: r, onClick: h });
|
3111
3111
|
case "dragAndDrop":
|
3112
|
-
return
|
3112
|
+
return ve({ width: e, height: t, color: a, className: r, onClick: h });
|
3113
3113
|
case "filter":
|
3114
|
-
return
|
3114
|
+
return Ne({ width: e, height: t, color: a, className: r, onClick: h });
|
3115
3115
|
case "attention":
|
3116
|
-
return
|
3116
|
+
return xe({ width: e, height: t, color: a, className: r, onClick: h });
|
3117
3117
|
case "plus":
|
3118
|
-
return
|
3118
|
+
return Re({ width: e, height: t, color: a, className: r, onClick: h });
|
3119
3119
|
case "time":
|
3120
|
-
return
|
3120
|
+
return Me({ width: e, height: t, color: a, className: r, onClick: h });
|
3121
3121
|
case "arrowDownLong":
|
3122
|
-
return
|
3122
|
+
return ye({
|
3123
3123
|
width: e,
|
3124
3124
|
height: t,
|
3125
|
-
color:
|
3125
|
+
color: a,
|
3126
3126
|
className: r,
|
3127
3127
|
onClick: h
|
3128
3128
|
});
|
3129
3129
|
case "users":
|
3130
|
-
return
|
3130
|
+
return be({ width: e, height: t, color: a, className: r, onClick: h });
|
3131
3131
|
case "mySkillsMatrix":
|
3132
|
-
return
|
3132
|
+
return Ee({
|
3133
3133
|
width: e,
|
3134
3134
|
height: t,
|
3135
|
-
color:
|
3135
|
+
color: a,
|
3136
3136
|
className: r,
|
3137
3137
|
onClick: h
|
3138
3138
|
});
|
3139
3139
|
case "skills":
|
3140
|
-
return
|
3140
|
+
return _e({ width: e, height: t, color: a, className: r, onClick: h });
|
3141
3141
|
case "skillsMatrices":
|
3142
|
-
return
|
3142
|
+
return He({
|
3143
3143
|
width: e,
|
3144
3144
|
height: t,
|
3145
|
-
color:
|
3145
|
+
color: a,
|
3146
3146
|
className: r,
|
3147
3147
|
onClick: h
|
3148
3148
|
});
|
3149
3149
|
case "history":
|
3150
|
-
return
|
3150
|
+
return Ve({ width: e, height: t, color: a, className: r, onClick: h });
|
3151
3151
|
case "logOut":
|
3152
|
-
return
|
3152
|
+
return Ie({ width: e, height: t, color: a, className: r, onClick: h });
|
3153
3153
|
case "settings":
|
3154
|
-
return
|
3154
|
+
return Se({ width: e, height: t, color: a, className: r, onClick: h });
|
3155
3155
|
case "addSkill":
|
3156
|
-
return
|
3156
|
+
return Oe({ width: e, height: t, color: a, className: r, onClick: h });
|
3157
3157
|
case "conversation":
|
3158
|
-
return
|
3158
|
+
return Ae({ width: e, height: t, color: a, className: r, onClick: h });
|
3159
3159
|
case "trash":
|
3160
|
-
return
|
3160
|
+
return Be({ width: e, height: t, color: a, className: r, onClick: h });
|
3161
3161
|
case "settings4":
|
3162
|
-
return
|
3162
|
+
return We({ width: e, height: t, color: a, className: r, onClick: h });
|
3163
3163
|
case "edit2":
|
3164
|
-
return
|
3164
|
+
return je({ width: e, height: t, color: a, className: r, onClick: h });
|
3165
3165
|
case "notifications":
|
3166
|
-
return
|
3166
|
+
return Ze({
|
3167
3167
|
width: e,
|
3168
3168
|
height: t,
|
3169
|
-
color:
|
3169
|
+
color: a,
|
3170
3170
|
className: r,
|
3171
3171
|
onClick: h
|
3172
3172
|
});
|
3173
3173
|
case "success":
|
3174
|
-
return
|
3174
|
+
return De({ width: e, height: t, color: a, className: r, onClick: h });
|
3175
3175
|
case "attentionSmall":
|
3176
|
-
return
|
3176
|
+
return Te({
|
3177
3177
|
width: e,
|
3178
3178
|
height: t,
|
3179
|
-
color:
|
3179
|
+
color: a,
|
3180
3180
|
className: r,
|
3181
3181
|
onClick: h
|
3182
3182
|
});
|
3183
3183
|
case "errorSmall":
|
3184
|
-
return
|
3184
|
+
return Ge({ width: e, height: t, color: a, className: r, onClick: h });
|
3185
3185
|
case "infoMedium":
|
3186
|
-
return
|
3186
|
+
return Ke({ width: e, height: t, color: a, className: r, onClick: h });
|
3187
3187
|
case "attentionMedium":
|
3188
|
-
return
|
3188
|
+
return Pe({
|
3189
3189
|
width: e,
|
3190
3190
|
height: t,
|
3191
|
-
color:
|
3191
|
+
color: a,
|
3192
3192
|
className: r,
|
3193
3193
|
onClick: h
|
3194
3194
|
});
|
3195
3195
|
case "errorMedium":
|
3196
|
-
return
|
3196
|
+
return Fe({ width: e, height: t, color: a, className: r, onClick: h });
|
3197
3197
|
case "faviconSkills":
|
3198
|
-
return
|
3198
|
+
return Qe({
|
3199
3199
|
width: e,
|
3200
3200
|
height: t,
|
3201
|
-
color:
|
3201
|
+
color: a,
|
3202
3202
|
className: r,
|
3203
3203
|
onClick: h
|
3204
3204
|
});
|
3205
3205
|
case "visibilityIcon":
|
3206
|
-
return
|
3206
|
+
return $e({
|
3207
3207
|
width: e,
|
3208
3208
|
height: t,
|
3209
|
-
color:
|
3209
|
+
color: a,
|
3210
3210
|
className: r,
|
3211
3211
|
onClick: h
|
3212
3212
|
});
|
3213
3213
|
case "visibilityOffIcon":
|
3214
|
-
return
|
3214
|
+
return Ye({
|
3215
3215
|
width: e,
|
3216
3216
|
height: t,
|
3217
|
-
color:
|
3217
|
+
color: a,
|
3218
3218
|
className: r,
|
3219
3219
|
onClick: h
|
3220
3220
|
});
|
3221
3221
|
case "selectArrowIcon":
|
3222
|
-
return
|
3222
|
+
return Ue({
|
3223
3223
|
width: e,
|
3224
3224
|
height: t,
|
3225
|
-
color:
|
3225
|
+
color: a,
|
3226
3226
|
className: r,
|
3227
3227
|
onClick: h
|
3228
3228
|
});
|
3229
3229
|
case "expandArrowIcon":
|
3230
|
-
return
|
3230
|
+
return ze({
|
3231
3231
|
width: e,
|
3232
3232
|
height: t,
|
3233
|
-
color:
|
3233
|
+
color: a,
|
3234
3234
|
className: r,
|
3235
3235
|
onClick: h
|
3236
3236
|
});
|
3237
3237
|
case "expandActiveArrowIcon":
|
3238
|
-
return
|
3238
|
+
return Je({
|
3239
3239
|
width: e,
|
3240
3240
|
height: t,
|
3241
|
-
color:
|
3241
|
+
color: a,
|
3242
3242
|
className: r,
|
3243
3243
|
onClick: h
|
3244
3244
|
});
|
3245
3245
|
case "camera":
|
3246
|
-
return
|
3246
|
+
return qe({ width: e, height: t, color: a, className: r, onClick: h });
|
3247
3247
|
case "sortUp":
|
3248
|
-
return
|
3248
|
+
return Xe({ width: e, height: t, color: a, className: r, onClick: h });
|
3249
3249
|
case "sortDown":
|
3250
|
-
return
|
3250
|
+
return et({ width: e, height: t, color: a, className: r, onClick: h });
|
3251
3251
|
case "logOut2":
|
3252
|
-
return
|
3252
|
+
return tt({ width: e, height: t, color: a, className: r, onClick: h });
|
3253
3253
|
case "search":
|
3254
|
-
return
|
3254
|
+
return it({ width: e, height: t, color: a, className: r, onClick: h });
|
3255
3255
|
case "handRock":
|
3256
|
-
return
|
3256
|
+
return st({ width: e, height: t, color: a, className: r, onClick: h });
|
3257
3257
|
case "arrowUpFilled":
|
3258
|
-
return
|
3258
|
+
return lt({ width: e, height: t, color: a, className: r, onClick: h });
|
3259
3259
|
case "arrowDownFilled":
|
3260
|
-
return
|
3260
|
+
return rt({ width: e, height: t, color: a, className: r, onClick: h });
|
3261
3261
|
case "link":
|
3262
|
-
return
|
3262
|
+
return at({ width: e, height: t, color: a, className: r, onClick: h });
|
3263
3263
|
case "telegram":
|
3264
|
-
return
|
3264
|
+
return ct({ width: e, height: t, color: a, className: r, onClick: h });
|
3265
3265
|
case "mail":
|
3266
|
-
return
|
3266
|
+
return gt({ width: e, height: t, color: a, className: r, onClick: h });
|
3267
3267
|
case "github":
|
3268
|
-
return
|
3268
|
+
return ht({ width: e, height: t, color: a, className: r, onClick: h });
|
3269
3269
|
case "linkedIn":
|
3270
|
-
return
|
3270
|
+
return dt({ width: e, height: t, color: a, className: r, onClick: h });
|
3271
3271
|
case "emptyStateIcon":
|
3272
|
-
return
|
3272
|
+
return ut({ width: e, height: t, color: a, className: r, onClick: h });
|
3273
3273
|
case "filtersIcon":
|
3274
|
-
return
|
3274
|
+
return Ct({ width: e, height: t, color: a, className: r, onClick: h });
|
3275
3275
|
case "dotMenuIcon":
|
3276
|
-
return
|
3276
|
+
return pt({ width: e, height: t, color: a, className: r, onClick: h });
|
3277
3277
|
case "plusCircle":
|
3278
|
-
return
|
3278
|
+
return ft({ width: e, height: t, color: a, className: r, onClick: h });
|
3279
3279
|
case "warning":
|
3280
|
-
return
|
3280
|
+
return wt({ width: e, height: t, color: a, className: r, onClick: h });
|
3281
3281
|
case "back":
|
3282
|
-
return
|
3282
|
+
return mt({ width: e, height: t, color: a, className: r, onClick: h });
|
3283
3283
|
case "bell":
|
3284
|
-
return
|
3284
|
+
return kt({ width: e, height: t, color: a, className: r, onClick: h });
|
3285
3285
|
case "contract":
|
3286
|
-
return
|
3286
|
+
return vt({ width: e, height: t, color: a, className: r, onClick: h });
|
3287
3287
|
case "trash2":
|
3288
|
-
return
|
3288
|
+
return Lt({ width: e, height: t, color: a, className: r, onClick: h });
|
3289
3289
|
case "manager":
|
3290
|
-
return
|
3290
|
+
return Nt({ width: e, height: t, color: a, className: r, onClick: h });
|
3291
3291
|
case "resourceManager":
|
3292
|
-
return
|
3292
|
+
return xt({ width: e, height: t, color: a, className: r, onClick: h });
|
3293
3293
|
case "settings2":
|
3294
|
-
return
|
3294
|
+
return Rt({ width: e, height: t, color: a, className: r, onClick: h });
|
3295
3295
|
case "image":
|
3296
|
-
return
|
3296
|
+
return Mt({ width: e, height: t, color: a, className: r, onClick: h });
|
3297
3297
|
case "upload":
|
3298
|
-
return
|
3298
|
+
return yt({ width: e, height: t, color: a, className: r, onClick: h });
|
3299
3299
|
case "edit":
|
3300
|
-
return
|
3300
|
+
return bt({ width: e, height: t, color: a, className: r, onClick: h });
|
3301
3301
|
case "location":
|
3302
|
-
return
|
3302
|
+
return Et({ width: e, height: t, color: a, className: r, onClick: h });
|
3303
3303
|
case "plus2":
|
3304
|
-
return
|
3304
|
+
return _t({ width: e, height: t, color: a, className: r, onClick: h });
|
3305
3305
|
case "search2":
|
3306
|
-
return
|
3306
|
+
return Ht({ width: e, height: t, color: a, className: r, onClick: h });
|
3307
3307
|
case "fastArrowLeft":
|
3308
|
-
return
|
3308
|
+
return Vt({ width: e, height: t, color: a, className: r, onClick: h });
|
3309
3309
|
case "fastArrowRight":
|
3310
|
-
return
|
3310
|
+
return It({ width: e, height: t, color: a, className: r, onClick: h });
|
3311
3311
|
case "crossInCircle":
|
3312
|
-
return
|
3312
|
+
return St({ width: e, height: t, color: a, className: r, onClick: h });
|
3313
3313
|
case "arrowUp2":
|
3314
|
-
return
|
3314
|
+
return At({ width: e, height: t, color: a, className: r, onClick: h });
|
3315
3315
|
case "arrowDown2":
|
3316
|
-
return
|
3316
|
+
return Ot({ width: e, height: t, color: a, className: r, onClick: h });
|
3317
3317
|
case "filledArrowLeft":
|
3318
|
-
return
|
3318
|
+
return Bt({ width: e, height: t, color: a, className: r, onClick: h });
|
3319
3319
|
case "filledArrowRight":
|
3320
|
-
return
|
3320
|
+
return Wt({ width: e, height: t, color: a, className: r, onClick: h });
|
3321
3321
|
case "burgerMenu":
|
3322
|
-
return
|
3322
|
+
return jt({ width: e, height: t, color: a, className: r, onClick: h });
|
3323
3323
|
case "signOut":
|
3324
|
-
return
|
3324
|
+
return Zt({ width: e, height: t, color: a, className: r, onClick: h });
|
3325
3325
|
case "refresh":
|
3326
|
-
return
|
3326
|
+
return Dt({ width: e, height: t, color: a, className: r, onClick: h });
|
3327
3327
|
default:
|
3328
|
-
return /* @__PURE__ */ n(
|
3328
|
+
return /* @__PURE__ */ n(z, { children: "No Icon provided" });
|
3329
3329
|
}
|
3330
3330
|
})() });
|
3331
|
-
}, { Title:
|
3331
|
+
}, { Title: Tt, Text: Gt } = Z1, Kt = {
|
3332
3332
|
h1: 1,
|
3333
3333
|
h2: 2,
|
3334
3334
|
h3: 3,
|
3335
3335
|
h4: 4
|
3336
|
-
},
|
3336
|
+
}, Pt = u1(
|
3337
3337
|
({
|
3338
3338
|
align: i = "inherit",
|
3339
3339
|
variant: e = "body1",
|
3340
3340
|
color: t,
|
3341
3341
|
children: s,
|
3342
3342
|
onClick: o,
|
3343
|
-
collapsed:
|
3343
|
+
collapsed: l,
|
3344
3344
|
whiteSpace: c = "normal"
|
3345
3345
|
}, r) => {
|
3346
3346
|
const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
3347
3347
|
let g = `snmt-typography snmt-typography-${e}`;
|
3348
|
-
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`),
|
3349
|
-
|
3348
|
+
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), l && (g += " collapsed"), d ? /* @__PURE__ */ n(
|
3349
|
+
Tt,
|
3350
3350
|
{
|
3351
3351
|
className: g,
|
3352
3352
|
style: { color: t, whiteSpace: c },
|
3353
3353
|
onClick: o,
|
3354
|
-
level:
|
3354
|
+
level: Kt[e],
|
3355
3355
|
ref: r,
|
3356
3356
|
children: s
|
3357
3357
|
}
|
3358
3358
|
) : /* @__PURE__ */ n(
|
3359
|
-
|
3359
|
+
Gt,
|
3360
3360
|
{
|
3361
3361
|
className: g,
|
3362
3362
|
style: { color: t, whiteSpace: c },
|
@@ -3367,13 +3367,13 @@ const ae = ({
|
|
3367
3367
|
);
|
3368
3368
|
}
|
3369
3369
|
);
|
3370
|
-
var
|
3371
|
-
const
|
3370
|
+
var k = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(k || {});
|
3371
|
+
const K1 = e1({
|
3372
3372
|
locale: "en",
|
3373
3373
|
theme: "light"
|
3374
3374
|
});
|
3375
|
-
|
3376
|
-
const
|
3375
|
+
K1.Provider;
|
3376
|
+
const Ft = ({
|
3377
3377
|
width: i = 20,
|
3378
3378
|
height: e = 20,
|
3379
3379
|
color: t = "#001E52",
|
@@ -3400,7 +3400,7 @@ const Tt = ({
|
|
3400
3400
|
}
|
3401
3401
|
)
|
3402
3402
|
}
|
3403
|
-
),
|
3403
|
+
), $t = ({
|
3404
3404
|
width: i = 20,
|
3405
3405
|
height: e = 20,
|
3406
3406
|
color: t = "#001E52",
|
@@ -3427,7 +3427,7 @@ const Tt = ({
|
|
3427
3427
|
}
|
3428
3428
|
)
|
3429
3429
|
}
|
3430
|
-
),
|
3430
|
+
), Yt = ({
|
3431
3431
|
width: i = 16,
|
3432
3432
|
height: e = 16,
|
3433
3433
|
color: t = "#001E52",
|
@@ -3455,7 +3455,7 @@ const Tt = ({
|
|
3455
3455
|
)
|
3456
3456
|
]
|
3457
3457
|
}
|
3458
|
-
),
|
3458
|
+
), Ut = ({
|
3459
3459
|
width: i = 20,
|
3460
3460
|
height: e = 20,
|
3461
3461
|
color: t = "#001E52",
|
@@ -3490,7 +3490,7 @@ const Tt = ({
|
|
3490
3490
|
)
|
3491
3491
|
]
|
3492
3492
|
}
|
3493
|
-
),
|
3493
|
+
), zt = ({
|
3494
3494
|
width: i = 18,
|
3495
3495
|
height: e = 18,
|
3496
3496
|
color: t = "#001E52",
|
@@ -3529,7 +3529,7 @@ const Tt = ({
|
|
3529
3529
|
)
|
3530
3530
|
]
|
3531
3531
|
}
|
3532
|
-
),
|
3532
|
+
), Jt = ({
|
3533
3533
|
width: i = 20,
|
3534
3534
|
height: e = 20,
|
3535
3535
|
color: t = "#001E52",
|
@@ -3555,7 +3555,7 @@ const Tt = ({
|
|
3555
3555
|
}
|
3556
3556
|
)
|
3557
3557
|
}
|
3558
|
-
),
|
3558
|
+
), Qt = ({
|
3559
3559
|
width: i = 20,
|
3560
3560
|
height: e = 20,
|
3561
3561
|
color: t = "#001E52",
|
@@ -3576,7 +3576,7 @@ const Tt = ({
|
|
3576
3576
|
/* @__PURE__ */ n("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
3577
3577
|
]
|
3578
3578
|
}
|
3579
|
-
),
|
3579
|
+
), qt = ({
|
3580
3580
|
width: i = 20,
|
3581
3581
|
height: e = 20,
|
3582
3582
|
color: t = "#001E52",
|
@@ -3608,7 +3608,7 @@ const Tt = ({
|
|
3608
3608
|
)
|
3609
3609
|
]
|
3610
3610
|
}
|
3611
|
-
),
|
3611
|
+
), Xt = ({
|
3612
3612
|
width: i = 20,
|
3613
3613
|
height: e = 20,
|
3614
3614
|
color: t = "#001E52",
|
@@ -3662,7 +3662,7 @@ const Tt = ({
|
|
3662
3662
|
)
|
3663
3663
|
]
|
3664
3664
|
}
|
3665
|
-
),
|
3665
|
+
), e2 = ({
|
3666
3666
|
width: i = 20,
|
3667
3667
|
height: e = 20,
|
3668
3668
|
color: t = "#001E52",
|
@@ -3701,7 +3701,7 @@ const Tt = ({
|
|
3701
3701
|
/* @__PURE__ */ n("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
3702
3702
|
]
|
3703
3703
|
}
|
3704
|
-
),
|
3704
|
+
), t2 = ({
|
3705
3705
|
width: i = 16,
|
3706
3706
|
height: e = 12,
|
3707
3707
|
color: t = "#001E52",
|
@@ -3750,7 +3750,7 @@ const Tt = ({
|
|
3750
3750
|
)
|
3751
3751
|
] })
|
3752
3752
|
}
|
3753
|
-
),
|
3753
|
+
), i2 = ({
|
3754
3754
|
width: i = 16,
|
3755
3755
|
height: e = 16,
|
3756
3756
|
color: t = "#001E52",
|
@@ -3784,7 +3784,7 @@ const Tt = ({
|
|
3784
3784
|
)
|
3785
3785
|
]
|
3786
3786
|
}
|
3787
|
-
),
|
3787
|
+
), s2 = ({
|
3788
3788
|
width: i = 10,
|
3789
3789
|
height: e = 10,
|
3790
3790
|
color: t = "#001E52",
|
@@ -3823,7 +3823,7 @@ const Tt = ({
|
|
3823
3823
|
)
|
3824
3824
|
] })
|
3825
3825
|
}
|
3826
|
-
),
|
3826
|
+
), o2 = ({
|
3827
3827
|
width: i = 16,
|
3828
3828
|
height: e = 16,
|
3829
3829
|
color: t = "#001E52",
|
@@ -3859,7 +3859,7 @@ const Tt = ({
|
|
3859
3859
|
)
|
3860
3860
|
]
|
3861
3861
|
}
|
3862
|
-
),
|
3862
|
+
), n2 = ({
|
3863
3863
|
width: i = 11,
|
3864
3864
|
height: e = 32,
|
3865
3865
|
color: t = "#001E52",
|
@@ -3897,7 +3897,7 @@ const Tt = ({
|
|
3897
3897
|
/* @__PURE__ */ n("circle", { cx: "3", cy: "3", r: "3", fill: t })
|
3898
3898
|
]
|
3899
3899
|
}
|
3900
|
-
),
|
3900
|
+
), r2 = ({
|
3901
3901
|
width: i = 20,
|
3902
3902
|
height: e = 20,
|
3903
3903
|
color: t = "#001E52",
|
@@ -3944,7 +3944,7 @@ const Tt = ({
|
|
3944
3944
|
)
|
3945
3945
|
]
|
3946
3946
|
}
|
3947
|
-
),
|
3947
|
+
), l2 = ({
|
3948
3948
|
width: i = 20,
|
3949
3949
|
height: e = 20,
|
3950
3950
|
color: t = "#001E52",
|
@@ -3977,7 +3977,7 @@ const Tt = ({
|
|
3977
3977
|
)
|
3978
3978
|
]
|
3979
3979
|
}
|
3980
|
-
),
|
3980
|
+
), a2 = ({
|
3981
3981
|
width: i = 20,
|
3982
3982
|
height: e = 20,
|
3983
3983
|
color: t = "#001E52",
|
@@ -4024,7 +4024,7 @@ const Tt = ({
|
|
4024
4024
|
)
|
4025
4025
|
]
|
4026
4026
|
}
|
4027
|
-
),
|
4027
|
+
), h2 = ({
|
4028
4028
|
width: i = 20,
|
4029
4029
|
height: e = 20,
|
4030
4030
|
color: t = "#001E52",
|
@@ -4057,7 +4057,7 @@ const Tt = ({
|
|
4057
4057
|
)
|
4058
4058
|
]
|
4059
4059
|
}
|
4060
|
-
),
|
4060
|
+
), c2 = ({
|
4061
4061
|
width: i = 18,
|
4062
4062
|
height: e = 16,
|
4063
4063
|
color: t = "#001E52",
|
@@ -4096,7 +4096,7 @@ const Tt = ({
|
|
4096
4096
|
)
|
4097
4097
|
]
|
4098
4098
|
}
|
4099
|
-
),
|
4099
|
+
), d2 = ({
|
4100
4100
|
width: i = 20,
|
4101
4101
|
height: e = 20,
|
4102
4102
|
color: t = "#001E52",
|
@@ -4129,7 +4129,7 @@ const Tt = ({
|
|
4129
4129
|
)
|
4130
4130
|
]
|
4131
4131
|
}
|
4132
|
-
),
|
4132
|
+
), g2 = ({
|
4133
4133
|
width: i = 20,
|
4134
4134
|
height: e = 20,
|
4135
4135
|
color: t = "#001E52",
|
@@ -4153,7 +4153,7 @@ const Tt = ({
|
|
4153
4153
|
}
|
4154
4154
|
)
|
4155
4155
|
}
|
4156
|
-
),
|
4156
|
+
), u2 = ({
|
4157
4157
|
width: i = 20,
|
4158
4158
|
height: e = 20,
|
4159
4159
|
color: t = "#001E52",
|
@@ -4200,7 +4200,7 @@ const Tt = ({
|
|
4200
4200
|
)
|
4201
4201
|
]
|
4202
4202
|
}
|
4203
|
-
),
|
4203
|
+
), C2 = ({
|
4204
4204
|
width: i = 20,
|
4205
4205
|
height: e = 20,
|
4206
4206
|
color: t = "#001E52",
|
@@ -4233,7 +4233,7 @@ const Tt = ({
|
|
4233
4233
|
)
|
4234
4234
|
]
|
4235
4235
|
}
|
4236
|
-
),
|
4236
|
+
), p2 = ({
|
4237
4237
|
width: i = 20,
|
4238
4238
|
height: e = 20,
|
4239
4239
|
color: t = "#001E52",
|
@@ -4266,7 +4266,7 @@ const Tt = ({
|
|
4266
4266
|
)
|
4267
4267
|
]
|
4268
4268
|
}
|
4269
|
-
),
|
4269
|
+
), f2 = ({
|
4270
4270
|
width: i = 20,
|
4271
4271
|
height: e = 23,
|
4272
4272
|
color: t = "#001E52",
|
@@ -4327,7 +4327,7 @@ const Tt = ({
|
|
4327
4327
|
)
|
4328
4328
|
]
|
4329
4329
|
}
|
4330
|
-
),
|
4330
|
+
), w2 = ({
|
4331
4331
|
width: i = 20,
|
4332
4332
|
height: e = 20,
|
4333
4333
|
color: t = "#001E52",
|
@@ -4367,7 +4367,7 @@ const Tt = ({
|
|
4367
4367
|
)
|
4368
4368
|
]
|
4369
4369
|
}
|
4370
|
-
),
|
4370
|
+
), m2 = ({
|
4371
4371
|
width: i = 32,
|
4372
4372
|
height: e = 25,
|
4373
4373
|
color: t = "#001E52",
|
@@ -4395,7 +4395,7 @@ const Tt = ({
|
|
4395
4395
|
)
|
4396
4396
|
]
|
4397
4397
|
}
|
4398
|
-
),
|
4398
|
+
), k2 = ({
|
4399
4399
|
width: i = 14,
|
4400
4400
|
height: e = 14,
|
4401
4401
|
color: t = "#10B981",
|
@@ -4424,7 +4424,7 @@ const Tt = ({
|
|
4424
4424
|
)
|
4425
4425
|
]
|
4426
4426
|
}
|
4427
|
-
),
|
4427
|
+
), L2 = ({
|
4428
4428
|
width: i = 11,
|
4429
4429
|
height: e = 11,
|
4430
4430
|
color: t = "#FFB020",
|
@@ -4458,7 +4458,7 @@ const Tt = ({
|
|
4458
4458
|
)
|
4459
4459
|
]
|
4460
4460
|
}
|
4461
|
-
),
|
4461
|
+
), v2 = ({
|
4462
4462
|
width: i = 10,
|
4463
4463
|
height: e = 10,
|
4464
4464
|
color: t = "#88A4FF",
|
@@ -4506,7 +4506,7 @@ const Tt = ({
|
|
4506
4506
|
)
|
4507
4507
|
]
|
4508
4508
|
}
|
4509
|
-
),
|
4509
|
+
), N2 = ({
|
4510
4510
|
width: i = 14,
|
4511
4511
|
height: e = 14,
|
4512
4512
|
color: t = "#8E8E93",
|
@@ -4534,7 +4534,7 @@ const Tt = ({
|
|
4534
4534
|
)
|
4535
4535
|
]
|
4536
4536
|
}
|
4537
|
-
),
|
4537
|
+
), x2 = ({
|
4538
4538
|
width: i = 14,
|
4539
4539
|
height: e = 14,
|
4540
4540
|
color: t = "#FFB020",
|
@@ -4568,7 +4568,7 @@ const Tt = ({
|
|
4568
4568
|
)
|
4569
4569
|
]
|
4570
4570
|
}
|
4571
|
-
),
|
4571
|
+
), R2 = ({
|
4572
4572
|
width: i = 14,
|
4573
4573
|
height: e = 14,
|
4574
4574
|
color: t = "#D0421B",
|
@@ -4616,7 +4616,7 @@ const Tt = ({
|
|
4616
4616
|
)
|
4617
4617
|
]
|
4618
4618
|
}
|
4619
|
-
),
|
4619
|
+
), M2 = ({
|
4620
4620
|
width: i = 20,
|
4621
4621
|
height: e = 20,
|
4622
4622
|
color: t = "#070739",
|
@@ -4646,7 +4646,7 @@ const Tt = ({
|
|
4646
4646
|
/* @__PURE__ */ n("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
4647
4647
|
]
|
4648
4648
|
}
|
4649
|
-
),
|
4649
|
+
), y2 = ({
|
4650
4650
|
width: i = 20,
|
4651
4651
|
height: e = 20,
|
4652
4652
|
color: t = "#070739",
|
@@ -4684,7 +4684,7 @@ const Tt = ({
|
|
4684
4684
|
)
|
4685
4685
|
]
|
4686
4686
|
}
|
4687
|
-
),
|
4687
|
+
), b2 = ({
|
4688
4688
|
width: i = 9,
|
4689
4689
|
height: e = 5,
|
4690
4690
|
color: t = "#001E52",
|
@@ -4710,7 +4710,7 @@ const Tt = ({
|
|
4710
4710
|
}
|
4711
4711
|
)
|
4712
4712
|
}
|
4713
|
-
),
|
4713
|
+
), E2 = ({
|
4714
4714
|
width: i = 20,
|
4715
4715
|
height: e = 20,
|
4716
4716
|
color: t = "#F2F2F7",
|
@@ -4739,7 +4739,7 @@ const Tt = ({
|
|
4739
4739
|
)
|
4740
4740
|
]
|
4741
4741
|
}
|
4742
|
-
),
|
4742
|
+
), _2 = ({
|
4743
4743
|
width: i = 20,
|
4744
4744
|
height: e = 20,
|
4745
4745
|
color: t = "#004ED7",
|
@@ -4768,7 +4768,7 @@ const Tt = ({
|
|
4768
4768
|
)
|
4769
4769
|
]
|
4770
4770
|
}
|
4771
|
-
),
|
4771
|
+
), H2 = ({
|
4772
4772
|
width: i = 248,
|
4773
4773
|
height: e = 248,
|
4774
4774
|
color: t = "#070739",
|
@@ -4805,7 +4805,7 @@ const Tt = ({
|
|
4805
4805
|
)
|
4806
4806
|
]
|
4807
4807
|
}
|
4808
|
-
),
|
4808
|
+
), V2 = ({
|
4809
4809
|
width: i = 24,
|
4810
4810
|
height: e = 24,
|
4811
4811
|
color: t = "#001E52",
|
@@ -4844,7 +4844,7 @@ const Tt = ({
|
|
4844
4844
|
)
|
4845
4845
|
]
|
4846
4846
|
}
|
4847
|
-
),
|
4847
|
+
), I2 = ({
|
4848
4848
|
width: i = 10,
|
4849
4849
|
height: e = 10,
|
4850
4850
|
color: t = "#001E52",
|
@@ -4873,7 +4873,7 @@ const Tt = ({
|
|
4873
4873
|
)
|
4874
4874
|
]
|
4875
4875
|
}
|
4876
|
-
),
|
4876
|
+
), S2 = ({
|
4877
4877
|
width: i = 10,
|
4878
4878
|
height: e = 10,
|
4879
4879
|
color: t = "#001E52",
|
@@ -4910,10 +4910,10 @@ const Tt = ({
|
|
4910
4910
|
)
|
4911
4911
|
]
|
4912
4912
|
}
|
4913
|
-
),
|
4913
|
+
), O2 = ({
|
4914
4914
|
width: i = 24,
|
4915
4915
|
height: e = 24,
|
4916
|
-
color: t =
|
4916
|
+
color: t = k.GREY_DARK_5,
|
4917
4917
|
className: s,
|
4918
4918
|
onClick: o
|
4919
4919
|
}) => /* @__PURE__ */ u(
|
@@ -4949,10 +4949,10 @@ const Tt = ({
|
|
4949
4949
|
)
|
4950
4950
|
]
|
4951
4951
|
}
|
4952
|
-
),
|
4952
|
+
), A2 = ({
|
4953
4953
|
width: i = 20,
|
4954
4954
|
height: e = 20,
|
4955
|
-
color: t =
|
4955
|
+
color: t = k.GREY_DARK_1,
|
4956
4956
|
className: s,
|
4957
4957
|
onClick: o
|
4958
4958
|
}) => /* @__PURE__ */ u(
|
@@ -4982,10 +4982,10 @@ const Tt = ({
|
|
4982
4982
|
)
|
4983
4983
|
]
|
4984
4984
|
}
|
4985
|
-
),
|
4985
|
+
), B2 = ({
|
4986
4986
|
width: i = 81,
|
4987
4987
|
height: e = 80,
|
4988
|
-
color: t =
|
4988
|
+
color: t = k.GREY_DARK_5,
|
4989
4989
|
className: s,
|
4990
4990
|
onClick: o
|
4991
4991
|
}) => /* @__PURE__ */ u(
|
@@ -5031,9 +5031,9 @@ const Tt = ({
|
|
5031
5031
|
)
|
5032
5032
|
]
|
5033
5033
|
}
|
5034
|
-
),
|
5034
|
+
), W2 = ({
|
5035
5035
|
className: i,
|
5036
|
-
color: e =
|
5036
|
+
color: e = k.GREY_DARK_5,
|
5037
5037
|
height: t = 20,
|
5038
5038
|
width: s = 20,
|
5039
5039
|
onClick: o
|
@@ -5058,9 +5058,9 @@ const Tt = ({
|
|
5058
5058
|
}
|
5059
5059
|
)
|
5060
5060
|
}
|
5061
|
-
),
|
5061
|
+
), j2 = ({
|
5062
5062
|
className: i,
|
5063
|
-
color: e =
|
5063
|
+
color: e = k.GREY_DARK_5,
|
5064
5064
|
height: t = 20,
|
5065
5065
|
width: s = 20,
|
5066
5066
|
onClick: o
|
@@ -5085,9 +5085,9 @@ const Tt = ({
|
|
5085
5085
|
}
|
5086
5086
|
)
|
5087
5087
|
}
|
5088
|
-
),
|
5088
|
+
), Z2 = ({
|
5089
5089
|
className: i,
|
5090
|
-
color: e =
|
5090
|
+
color: e = k.GREY_DARK_5,
|
5091
5091
|
height: t = 5,
|
5092
5092
|
width: s = 10,
|
5093
5093
|
onClick: o
|
@@ -5109,9 +5109,9 @@ const Tt = ({
|
|
5109
5109
|
}
|
5110
5110
|
)
|
5111
5111
|
}
|
5112
|
-
),
|
5112
|
+
), D2 = ({
|
5113
5113
|
className: i,
|
5114
|
-
color: e =
|
5114
|
+
color: e = k.GREY_DARK_5,
|
5115
5115
|
height: t = 5,
|
5116
5116
|
width: s = 10,
|
5117
5117
|
onClick: o
|
@@ -5134,9 +5134,9 @@ const Tt = ({
|
|
5134
5134
|
}
|
5135
5135
|
)
|
5136
5136
|
}
|
5137
|
-
),
|
5137
|
+
), T2 = ({
|
5138
5138
|
className: i,
|
5139
|
-
color: e =
|
5139
|
+
color: e = k.GREY_DARK_5,
|
5140
5140
|
height: t = 24,
|
5141
5141
|
width: s = 24,
|
5142
5142
|
onClick: o
|
@@ -5173,9 +5173,9 @@ const Tt = ({
|
|
5173
5173
|
)
|
5174
5174
|
]
|
5175
5175
|
}
|
5176
|
-
),
|
5176
|
+
), G2 = ({
|
5177
5177
|
className: i,
|
5178
|
-
color: e =
|
5178
|
+
color: e = k.GREY_DARK_5,
|
5179
5179
|
height: t = 24,
|
5180
5180
|
width: s = 24,
|
5181
5181
|
onClick: o
|
@@ -5212,9 +5212,9 @@ const Tt = ({
|
|
5212
5212
|
)
|
5213
5213
|
]
|
5214
5214
|
}
|
5215
|
-
),
|
5215
|
+
), K2 = ({
|
5216
5216
|
className: i,
|
5217
|
-
color: e =
|
5217
|
+
color: e = k.GREY_DARK_5,
|
5218
5218
|
height: t = 24,
|
5219
5219
|
width: s = 24,
|
5220
5220
|
onClick: o
|
@@ -5239,9 +5239,9 @@ const Tt = ({
|
|
5239
5239
|
}
|
5240
5240
|
)
|
5241
5241
|
}
|
5242
|
-
),
|
5242
|
+
), P2 = ({
|
5243
5243
|
className: i,
|
5244
|
-
color: e =
|
5244
|
+
color: e = k.GREY_DARK_5,
|
5245
5245
|
height: t = 24,
|
5246
5246
|
width: s = 24,
|
5247
5247
|
onClick: o
|
@@ -5298,9 +5298,9 @@ const Tt = ({
|
|
5298
5298
|
)
|
5299
5299
|
]
|
5300
5300
|
}
|
5301
|
-
),
|
5301
|
+
), F2 = ({
|
5302
5302
|
className: i,
|
5303
|
-
color: e =
|
5303
|
+
color: e = k.GREY_DARK_5,
|
5304
5304
|
height: t = 24,
|
5305
5305
|
width: s = 24,
|
5306
5306
|
onClick: o
|
@@ -5335,9 +5335,9 @@ const Tt = ({
|
|
5335
5335
|
)
|
5336
5336
|
]
|
5337
5337
|
}
|
5338
|
-
),
|
5338
|
+
), $2 = ({
|
5339
5339
|
className: i,
|
5340
|
-
color: e =
|
5340
|
+
color: e = k.GREY_DARK_3,
|
5341
5341
|
height: t = 14,
|
5342
5342
|
width: s = 14,
|
5343
5343
|
onClick: o
|
@@ -5372,9 +5372,9 @@ const Tt = ({
|
|
5372
5372
|
)
|
5373
5373
|
]
|
5374
5374
|
}
|
5375
|
-
),
|
5375
|
+
), Y2 = ({
|
5376
5376
|
className: i,
|
5377
|
-
color: e =
|
5377
|
+
color: e = k.GREY_DARK_5,
|
5378
5378
|
height: t = 18,
|
5379
5379
|
onClick: s,
|
5380
5380
|
width: o = 18
|
@@ -5399,9 +5399,9 @@ const Tt = ({
|
|
5399
5399
|
}
|
5400
5400
|
)
|
5401
5401
|
}
|
5402
|
-
),
|
5402
|
+
), U2 = ({
|
5403
5403
|
className: i,
|
5404
|
-
color: e =
|
5404
|
+
color: e = k.GREY_DARK_5,
|
5405
5405
|
height: t = 24,
|
5406
5406
|
width: s = 24,
|
5407
5407
|
onClick: o
|
@@ -5451,9 +5451,9 @@ const Tt = ({
|
|
5451
5451
|
)
|
5452
5452
|
]
|
5453
5453
|
}
|
5454
|
-
),
|
5454
|
+
), z2 = ({
|
5455
5455
|
className: i,
|
5456
|
-
color: e =
|
5456
|
+
color: e = k.GREY_DARK_5,
|
5457
5457
|
height: t = 24,
|
5458
5458
|
width: s = 24,
|
5459
5459
|
onClick: o
|
@@ -5488,9 +5488,9 @@ const Tt = ({
|
|
5488
5488
|
)
|
5489
5489
|
]
|
5490
5490
|
}
|
5491
|
-
),
|
5491
|
+
), J2 = ({
|
5492
5492
|
className: i,
|
5493
|
-
color: e =
|
5493
|
+
color: e = k.NOTIFICATION_WARNING_DARK,
|
5494
5494
|
height: t = 37,
|
5495
5495
|
width: s = 36,
|
5496
5496
|
onClick: o
|
@@ -5527,9 +5527,9 @@ const Tt = ({
|
|
5527
5527
|
)
|
5528
5528
|
]
|
5529
5529
|
}
|
5530
|
-
),
|
5530
|
+
), Q2 = ({
|
5531
5531
|
className: i,
|
5532
|
-
color: e =
|
5532
|
+
color: e = k.GREY_DARK_5,
|
5533
5533
|
height: t = 24,
|
5534
5534
|
width: s = 24,
|
5535
5535
|
onClick: o
|
@@ -5553,9 +5553,9 @@ const Tt = ({
|
|
5553
5553
|
}
|
5554
5554
|
)
|
5555
5555
|
}
|
5556
|
-
),
|
5556
|
+
), q2 = ({
|
5557
5557
|
className: i,
|
5558
|
-
color: e =
|
5558
|
+
color: e = k.GREY_DARK_5,
|
5559
5559
|
height: t = 24,
|
5560
5560
|
width: s = 24,
|
5561
5561
|
onClick: o
|
@@ -5592,9 +5592,9 @@ const Tt = ({
|
|
5592
5592
|
)
|
5593
5593
|
]
|
5594
5594
|
}
|
5595
|
-
),
|
5595
|
+
), X2 = ({
|
5596
5596
|
className: i,
|
5597
|
-
color: e =
|
5597
|
+
color: e = k.GREY_DARK_5,
|
5598
5598
|
height: t = 24,
|
5599
5599
|
width: s = 24,
|
5600
5600
|
onClick: o
|
@@ -5631,9 +5631,9 @@ const Tt = ({
|
|
5631
5631
|
)
|
5632
5632
|
]
|
5633
5633
|
}
|
5634
|
-
),
|
5634
|
+
), ei = ({
|
5635
5635
|
className: i,
|
5636
|
-
color: e =
|
5636
|
+
color: e = k.GREY_DARK_5,
|
5637
5637
|
height: t = 24,
|
5638
5638
|
width: s = 24,
|
5639
5639
|
onClick: o
|
@@ -5700,9 +5700,9 @@ const Tt = ({
|
|
5700
5700
|
)
|
5701
5701
|
]
|
5702
5702
|
}
|
5703
|
-
),
|
5703
|
+
), ti = ({
|
5704
5704
|
className: i,
|
5705
|
-
color: e =
|
5705
|
+
color: e = k.GREY_DARK_5,
|
5706
5706
|
height: t = 24,
|
5707
5707
|
width: s = 24,
|
5708
5708
|
onClick: o
|
@@ -5739,9 +5739,9 @@ const Tt = ({
|
|
5739
5739
|
)
|
5740
5740
|
]
|
5741
5741
|
}
|
5742
|
-
),
|
5742
|
+
), ii = ({
|
5743
5743
|
className: i,
|
5744
|
-
color: e =
|
5744
|
+
color: e = k.GREY_DARK_5,
|
5745
5745
|
height: t = 24,
|
5746
5746
|
width: s = 24,
|
5747
5747
|
onClick: o
|
@@ -5796,9 +5796,9 @@ const Tt = ({
|
|
5796
5796
|
)
|
5797
5797
|
]
|
5798
5798
|
}
|
5799
|
-
),
|
5799
|
+
), si = ({
|
5800
5800
|
className: i,
|
5801
|
-
color: e =
|
5801
|
+
color: e = k.GREY_DARK_5,
|
5802
5802
|
height: t = 24,
|
5803
5803
|
width: s = 24,
|
5804
5804
|
onClick: o
|
@@ -5835,9 +5835,9 @@ const Tt = ({
|
|
5835
5835
|
)
|
5836
5836
|
]
|
5837
5837
|
}
|
5838
|
-
),
|
5838
|
+
), oi = ({
|
5839
5839
|
className: i,
|
5840
|
-
color: e =
|
5840
|
+
color: e = k.GREY_DARK_5,
|
5841
5841
|
height: t = 24,
|
5842
5842
|
width: s = 24,
|
5843
5843
|
onClick: o
|
@@ -5884,9 +5884,9 @@ const Tt = ({
|
|
5884
5884
|
)
|
5885
5885
|
]
|
5886
5886
|
}
|
5887
|
-
),
|
5887
|
+
), ni = ({
|
5888
5888
|
className: i,
|
5889
|
-
color: e =
|
5889
|
+
color: e = k.GREY_DARK_5,
|
5890
5890
|
height: t = 24,
|
5891
5891
|
width: s = 24,
|
5892
5892
|
onClick: o
|
@@ -5923,9 +5923,9 @@ const Tt = ({
|
|
5923
5923
|
)
|
5924
5924
|
]
|
5925
5925
|
}
|
5926
|
-
),
|
5926
|
+
), ri = ({
|
5927
5927
|
className: i,
|
5928
|
-
color: e =
|
5928
|
+
color: e = k.GREY_DARK_5,
|
5929
5929
|
height: t = 24,
|
5930
5930
|
width: s = 24,
|
5931
5931
|
onClick: o
|
@@ -5950,9 +5950,9 @@ const Tt = ({
|
|
5950
5950
|
}
|
5951
5951
|
)
|
5952
5952
|
}
|
5953
|
-
),
|
5953
|
+
), li = ({
|
5954
5954
|
className: i,
|
5955
|
-
color: e =
|
5955
|
+
color: e = k.GREY_DARK_5,
|
5956
5956
|
height: t = 24,
|
5957
5957
|
width: s = 24,
|
5958
5958
|
onClick: o
|
@@ -5988,9 +5988,9 @@ const Tt = ({
|
|
5988
5988
|
)
|
5989
5989
|
]
|
5990
5990
|
}
|
5991
|
-
),
|
5991
|
+
), ai = ({
|
5992
5992
|
className: i,
|
5993
|
-
color: e =
|
5993
|
+
color: e = k.GREY_DARK_5,
|
5994
5994
|
height: t = 24,
|
5995
5995
|
width: s = 24,
|
5996
5996
|
onClick: o
|
@@ -6009,9 +6009,9 @@ const Tt = ({
|
|
6009
6009
|
/* @__PURE__ */ n("path", { d: "M12 8L4 8", stroke: e, strokeWidth: "1.7", strokeLinecap: "round" })
|
6010
6010
|
]
|
6011
6011
|
}
|
6012
|
-
),
|
6012
|
+
), hi = ({
|
6013
6013
|
className: i,
|
6014
|
-
color: e =
|
6014
|
+
color: e = k.GREY_DARK_5,
|
6015
6015
|
height: t = 24,
|
6016
6016
|
width: s = 24,
|
6017
6017
|
onClick: o
|
@@ -6048,9 +6048,9 @@ const Tt = ({
|
|
6048
6048
|
)
|
6049
6049
|
]
|
6050
6050
|
}
|
6051
|
-
),
|
6051
|
+
), ci = ({
|
6052
6052
|
className: i,
|
6053
|
-
color: e =
|
6053
|
+
color: e = k.GREY_DARK_5,
|
6054
6054
|
height: t = 24,
|
6055
6055
|
width: s = 24,
|
6056
6056
|
onClick: o
|
@@ -6087,9 +6087,9 @@ const Tt = ({
|
|
6087
6087
|
)
|
6088
6088
|
]
|
6089
6089
|
}
|
6090
|
-
),
|
6090
|
+
), di = ({
|
6091
6091
|
className: i,
|
6092
|
-
color: e =
|
6092
|
+
color: e = k.GREY_DARK_5,
|
6093
6093
|
height: t = 24,
|
6094
6094
|
width: s = 24,
|
6095
6095
|
onClick: o
|
@@ -6126,9 +6126,9 @@ const Tt = ({
|
|
6126
6126
|
)
|
6127
6127
|
]
|
6128
6128
|
}
|
6129
|
-
),
|
6129
|
+
), gi = ({
|
6130
6130
|
className: i,
|
6131
|
-
color: e =
|
6131
|
+
color: e = k.GREY_DARK_2,
|
6132
6132
|
height: t = 16,
|
6133
6133
|
width: s = 16,
|
6134
6134
|
onClick: o
|
@@ -6152,9 +6152,9 @@ const Tt = ({
|
|
6152
6152
|
}
|
6153
6153
|
)
|
6154
6154
|
}
|
6155
|
-
),
|
6155
|
+
), ui = ({
|
6156
6156
|
className: i,
|
6157
|
-
color: e =
|
6157
|
+
color: e = k.GREY_DARK_5,
|
6158
6158
|
height: t = 20,
|
6159
6159
|
width: s = 20,
|
6160
6160
|
onClick: o
|
@@ -6181,9 +6181,9 @@ const Tt = ({
|
|
6181
6181
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_3992_5989", children: /* @__PURE__ */ n("rect", { width: "20", height: "20", fill: "white" }) }) })
|
6182
6182
|
]
|
6183
6183
|
}
|
6184
|
-
),
|
6184
|
+
), Ci = ({
|
6185
6185
|
className: i,
|
6186
|
-
color: e =
|
6186
|
+
color: e = k.GREY_DARK_5,
|
6187
6187
|
height: t = 20,
|
6188
6188
|
width: s = 20,
|
6189
6189
|
onClick: o
|
@@ -6210,9 +6210,9 @@ const Tt = ({
|
|
6210
6210
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_3992_5988", children: /* @__PURE__ */ n("rect", { width: "20", height: "20", fill: "white" }) }) })
|
6211
6211
|
]
|
6212
6212
|
}
|
6213
|
-
),
|
6213
|
+
), pi = ({
|
6214
6214
|
className: i,
|
6215
|
-
color: e =
|
6215
|
+
color: e = k.GREY_DARK_5,
|
6216
6216
|
height: t = 20,
|
6217
6217
|
width: s = 20,
|
6218
6218
|
onClick: o
|
@@ -6227,7 +6227,7 @@ const Tt = ({
|
|
6227
6227
|
fill: "none",
|
6228
6228
|
xmlns: "http://www.w3.org/2000/svg",
|
6229
6229
|
children: [
|
6230
|
-
/* @__PURE__ */ n("rect", { width: "20", height: "20", rx: "4", fill:
|
6230
|
+
/* @__PURE__ */ n("rect", { width: "20", height: "20", rx: "4", fill: k.GREY_LIGHT_2 }),
|
6231
6231
|
/* @__PURE__ */ n(
|
6232
6232
|
"path",
|
6233
6233
|
{
|
@@ -6239,9 +6239,9 @@ const Tt = ({
|
|
6239
6239
|
)
|
6240
6240
|
]
|
6241
6241
|
}
|
6242
|
-
),
|
6242
|
+
), fi = ({
|
6243
6243
|
className: i,
|
6244
|
-
color: e =
|
6244
|
+
color: e = k.GREY_DARK_5,
|
6245
6245
|
height: t = 20,
|
6246
6246
|
width: s = 20,
|
6247
6247
|
onClick: o
|
@@ -6256,7 +6256,7 @@ const Tt = ({
|
|
6256
6256
|
fill: "none",
|
6257
6257
|
xmlns: "http://www.w3.org/2000/svg",
|
6258
6258
|
children: [
|
6259
|
-
/* @__PURE__ */ n("rect", { width: "20", height: "20", rx: "4", fill:
|
6259
|
+
/* @__PURE__ */ n("rect", { width: "20", height: "20", rx: "4", fill: k.GREY_LIGHT_2 }),
|
6260
6260
|
/* @__PURE__ */ n(
|
6261
6261
|
"path",
|
6262
6262
|
{
|
@@ -6268,7 +6268,7 @@ const Tt = ({
|
|
6268
6268
|
)
|
6269
6269
|
]
|
6270
6270
|
}
|
6271
|
-
),
|
6271
|
+
), wi = ({
|
6272
6272
|
className: i,
|
6273
6273
|
color: e = "#001E52",
|
6274
6274
|
height: t = 24,
|
@@ -6294,7 +6294,7 @@ const Tt = ({
|
|
6294
6294
|
}
|
6295
6295
|
)
|
6296
6296
|
}
|
6297
|
-
),
|
6297
|
+
), mi = ({
|
6298
6298
|
className: i,
|
6299
6299
|
color: e = "#131314",
|
6300
6300
|
height: t = 20,
|
@@ -6322,7 +6322,7 @@ const Tt = ({
|
|
6322
6322
|
}
|
6323
6323
|
)
|
6324
6324
|
}
|
6325
|
-
),
|
6325
|
+
), ki = ({
|
6326
6326
|
className: i,
|
6327
6327
|
color: e = "#001E52",
|
6328
6328
|
height: t = 24,
|
@@ -6360,324 +6360,324 @@ const Tt = ({
|
|
6360
6360
|
)
|
6361
6361
|
] }) })
|
6362
6362
|
}
|
6363
|
-
),
|
6363
|
+
), Li = ({
|
6364
6364
|
name: i,
|
6365
6365
|
width: e,
|
6366
6366
|
height: t,
|
6367
6367
|
color: s,
|
6368
6368
|
className: o,
|
6369
|
-
disabled:
|
6369
|
+
disabled: l = !1,
|
6370
6370
|
onClick: c
|
6371
6371
|
}) => {
|
6372
|
-
const [r, d] = S(o), { theme: g } =
|
6372
|
+
const [r, d] = S(o), { theme: g } = t1(K1), a = l ? g && g === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : s, h = l ? void 0 : c;
|
6373
6373
|
return A(() => {
|
6374
6374
|
if (o) {
|
6375
|
-
h && !
|
6375
|
+
h && !l && d(`${o} clickable`);
|
6376
6376
|
return;
|
6377
6377
|
}
|
6378
|
-
h && !
|
6379
|
-
}, [h, o,
|
6378
|
+
h && !l && d("clickable");
|
6379
|
+
}, [h, o, l]), /* @__PURE__ */ n(z, { children: (() => {
|
6380
6380
|
switch (i) {
|
6381
6381
|
case "nextIcon":
|
6382
|
-
return
|
6382
|
+
return W2({ width: e, height: t, color: a, className: r, onClick: h });
|
6383
6383
|
case "prevIcon":
|
6384
|
-
return
|
6384
|
+
return j2({ width: e, height: t, color: a, className: r, onClick: h });
|
6385
6385
|
case "arrowUp":
|
6386
|
-
return
|
6386
|
+
return Ft({ width: e, height: t, color: a, className: r, onClick: h });
|
6387
6387
|
case "arrowDown":
|
6388
|
-
return
|
6388
|
+
return $t({ width: e, height: t, color: a, className: r, onClick: h });
|
6389
6389
|
case "info":
|
6390
|
-
return
|
6390
|
+
return Yt({ width: e, height: t, color: a, className: r, onClick: h });
|
6391
6391
|
case "arrowRight":
|
6392
|
-
return
|
6392
|
+
return Ut({ width: e, height: t, color: a, className: r, onClick: h });
|
6393
6393
|
case "calendar":
|
6394
|
-
return
|
6394
|
+
return zt({ width: e, height: t, color: a, className: r, onClick: h });
|
6395
6395
|
case "ok":
|
6396
|
-
return
|
6396
|
+
return Jt({ width: e, height: t, color: a, className: r, onClick: h });
|
6397
6397
|
case "cancel":
|
6398
|
-
return
|
6398
|
+
return Qt({ width: e, height: t, color: a, className: r, onClick: h });
|
6399
6399
|
case "add":
|
6400
|
-
return
|
6400
|
+
return qt({ width: e, height: t, color: a, className: r, onClick: h });
|
6401
6401
|
case "list":
|
6402
|
-
return
|
6402
|
+
return Xt({ width: e, height: t, color: a, className: r, onClick: h });
|
6403
6403
|
case "dragAndDrop":
|
6404
|
-
return
|
6404
|
+
return e2({ width: e, height: t, color: a, className: r, onClick: h });
|
6405
6405
|
case "filter":
|
6406
|
-
return
|
6406
|
+
return t2({ width: e, height: t, color: a, className: r, onClick: h });
|
6407
6407
|
case "attention":
|
6408
|
-
return
|
6408
|
+
return i2({ width: e, height: t, color: a, className: r, onClick: h });
|
6409
6409
|
case "plus":
|
6410
|
-
return
|
6410
|
+
return s2({ width: e, height: t, color: a, className: r, onClick: h });
|
6411
6411
|
case "time":
|
6412
|
-
return
|
6412
|
+
return o2({ width: e, height: t, color: a, className: r, onClick: h });
|
6413
6413
|
case "arrowDownLong":
|
6414
|
-
return
|
6414
|
+
return n2({
|
6415
6415
|
width: e,
|
6416
6416
|
height: t,
|
6417
|
-
color:
|
6417
|
+
color: a,
|
6418
6418
|
className: r,
|
6419
6419
|
onClick: h
|
6420
6420
|
});
|
6421
6421
|
case "users":
|
6422
|
-
return
|
6422
|
+
return r2({ width: e, height: t, color: a, className: r, onClick: h });
|
6423
6423
|
case "mySkillsMatrix":
|
6424
|
-
return
|
6424
|
+
return l2({
|
6425
6425
|
width: e,
|
6426
6426
|
height: t,
|
6427
|
-
color:
|
6427
|
+
color: a,
|
6428
6428
|
className: r,
|
6429
6429
|
onClick: h
|
6430
6430
|
});
|
6431
6431
|
case "skills":
|
6432
|
-
return
|
6432
|
+
return a2({ width: e, height: t, color: a, className: r, onClick: h });
|
6433
6433
|
case "skillsMatrices":
|
6434
|
-
return
|
6434
|
+
return h2({
|
6435
6435
|
width: e,
|
6436
6436
|
height: t,
|
6437
|
-
color:
|
6437
|
+
color: a,
|
6438
6438
|
className: r,
|
6439
6439
|
onClick: h
|
6440
6440
|
});
|
6441
6441
|
case "history":
|
6442
|
-
return
|
6442
|
+
return c2({ width: e, height: t, color: a, className: r, onClick: h });
|
6443
6443
|
case "logOut":
|
6444
|
-
return
|
6444
|
+
return d2({ width: e, height: t, color: a, className: r, onClick: h });
|
6445
6445
|
case "settings":
|
6446
|
-
return
|
6446
|
+
return g2({ width: e, height: t, color: a, className: r, onClick: h });
|
6447
6447
|
case "addSkill":
|
6448
|
-
return
|
6448
|
+
return u2({ width: e, height: t, color: a, className: r, onClick: h });
|
6449
6449
|
case "conversation":
|
6450
|
-
return
|
6450
|
+
return C2({ width: e, height: t, color: a, className: r, onClick: h });
|
6451
6451
|
case "trash":
|
6452
|
-
return
|
6452
|
+
return p2({ width: e, height: t, color: a, className: r, onClick: h });
|
6453
6453
|
case "settings4":
|
6454
|
-
return
|
6454
|
+
return f2({ width: e, height: t, color: a, className: r, onClick: h });
|
6455
6455
|
case "edit2":
|
6456
|
-
return
|
6456
|
+
return w2({ width: e, height: t, color: a, className: r, onClick: h });
|
6457
6457
|
case "notifications":
|
6458
|
-
return
|
6458
|
+
return m2({
|
6459
6459
|
width: e,
|
6460
6460
|
height: t,
|
6461
|
-
color:
|
6461
|
+
color: a,
|
6462
6462
|
className: r,
|
6463
6463
|
onClick: h
|
6464
6464
|
});
|
6465
6465
|
case "success":
|
6466
|
-
return
|
6466
|
+
return k2({ width: e, height: t, color: a, className: r, onClick: h });
|
6467
6467
|
case "attentionSmall":
|
6468
|
-
return
|
6468
|
+
return L2({
|
6469
6469
|
width: e,
|
6470
6470
|
height: t,
|
6471
|
-
color:
|
6471
|
+
color: a,
|
6472
6472
|
className: r,
|
6473
6473
|
onClick: h
|
6474
6474
|
});
|
6475
6475
|
case "errorSmall":
|
6476
|
-
return
|
6476
|
+
return v2({ width: e, height: t, color: a, className: r, onClick: h });
|
6477
6477
|
case "infoMedium":
|
6478
|
-
return
|
6478
|
+
return N2({ width: e, height: t, color: a, className: r, onClick: h });
|
6479
6479
|
case "attentionMedium":
|
6480
|
-
return
|
6480
|
+
return x2({
|
6481
6481
|
width: e,
|
6482
6482
|
height: t,
|
6483
|
-
color:
|
6483
|
+
color: a,
|
6484
6484
|
className: r,
|
6485
6485
|
onClick: h
|
6486
6486
|
});
|
6487
6487
|
case "errorMedium":
|
6488
|
-
return
|
6488
|
+
return R2({ width: e, height: t, color: a, className: r, onClick: h });
|
6489
6489
|
case "faviconSkills":
|
6490
|
-
return
|
6490
|
+
return H2({
|
6491
6491
|
width: e,
|
6492
6492
|
height: t,
|
6493
|
-
color:
|
6493
|
+
color: a,
|
6494
6494
|
className: r,
|
6495
6495
|
onClick: h
|
6496
6496
|
});
|
6497
6497
|
case "visibilityIcon":
|
6498
|
-
return
|
6498
|
+
return M2({
|
6499
6499
|
width: e,
|
6500
6500
|
height: t,
|
6501
|
-
color:
|
6501
|
+
color: a,
|
6502
6502
|
className: r,
|
6503
6503
|
onClick: h
|
6504
6504
|
});
|
6505
6505
|
case "visibilityOffIcon":
|
6506
|
-
return
|
6506
|
+
return y2({
|
6507
6507
|
width: e,
|
6508
6508
|
height: t,
|
6509
|
-
color:
|
6509
|
+
color: a,
|
6510
6510
|
className: r,
|
6511
6511
|
onClick: h
|
6512
6512
|
});
|
6513
6513
|
case "selectArrowIcon":
|
6514
|
-
return
|
6514
|
+
return b2({
|
6515
6515
|
width: e,
|
6516
6516
|
height: t,
|
6517
|
-
color:
|
6517
|
+
color: a,
|
6518
6518
|
className: r,
|
6519
6519
|
onClick: h
|
6520
6520
|
});
|
6521
6521
|
case "expandArrowIcon":
|
6522
|
-
return
|
6522
|
+
return E2({
|
6523
6523
|
width: e,
|
6524
6524
|
height: t,
|
6525
|
-
color:
|
6525
|
+
color: a,
|
6526
6526
|
className: r,
|
6527
6527
|
onClick: h
|
6528
6528
|
});
|
6529
6529
|
case "expandActiveArrowIcon":
|
6530
|
-
return
|
6530
|
+
return _2({
|
6531
6531
|
width: e,
|
6532
6532
|
height: t,
|
6533
|
-
color:
|
6533
|
+
color: a,
|
6534
6534
|
className: r,
|
6535
6535
|
onClick: h
|
6536
6536
|
});
|
6537
6537
|
case "camera":
|
6538
|
-
return
|
6538
|
+
return V2({ width: e, height: t, color: a, className: r, onClick: h });
|
6539
6539
|
case "sortUp":
|
6540
|
-
return
|
6540
|
+
return I2({ width: e, height: t, color: a, className: r, onClick: h });
|
6541
6541
|
case "sortDown":
|
6542
|
-
return
|
6542
|
+
return S2({ width: e, height: t, color: a, className: r, onClick: h });
|
6543
6543
|
case "logOut2":
|
6544
|
-
return
|
6544
|
+
return O2({ width: e, height: t, color: a, className: r, onClick: h });
|
6545
6545
|
case "search":
|
6546
|
-
return
|
6546
|
+
return A2({ width: e, height: t, color: a, className: r, onClick: h });
|
6547
6547
|
case "handRock":
|
6548
|
-
return
|
6548
|
+
return B2({ width: e, height: t, color: a, className: r, onClick: h });
|
6549
6549
|
case "arrowUpFilled":
|
6550
|
-
return
|
6550
|
+
return D2({ width: e, height: t, color: a, className: r, onClick: h });
|
6551
6551
|
case "arrowDownFilled":
|
6552
|
-
return
|
6552
|
+
return Z2({ width: e, height: t, color: a, className: r, onClick: h });
|
6553
6553
|
case "link":
|
6554
|
-
return
|
6554
|
+
return T2({ width: e, height: t, color: a, className: r, onClick: h });
|
6555
6555
|
case "telegram":
|
6556
|
-
return
|
6556
|
+
return K2({ width: e, height: t, color: a, className: r, onClick: h });
|
6557
6557
|
case "mail":
|
6558
|
-
return
|
6558
|
+
return F2({ width: e, height: t, color: a, className: r, onClick: h });
|
6559
6559
|
case "github":
|
6560
|
-
return
|
6560
|
+
return G2({ width: e, height: t, color: a, className: r, onClick: h });
|
6561
6561
|
case "linkedIn":
|
6562
|
-
return
|
6562
|
+
return P2({ width: e, height: t, color: a, className: r, onClick: h });
|
6563
6563
|
case "emptyStateIcon":
|
6564
|
-
return
|
6564
|
+
return $2({ width: e, height: t, color: a, className: r, onClick: h });
|
6565
6565
|
case "filtersIcon":
|
6566
|
-
return
|
6566
|
+
return Y2({ width: e, height: t, color: a, className: r, onClick: h });
|
6567
6567
|
case "dotMenuIcon":
|
6568
|
-
return
|
6568
|
+
return U2({ width: e, height: t, color: a, className: r, onClick: h });
|
6569
6569
|
case "plusCircle":
|
6570
|
-
return
|
6570
|
+
return z2({ width: e, height: t, color: a, className: r, onClick: h });
|
6571
6571
|
case "warning":
|
6572
|
-
return
|
6572
|
+
return J2({ width: e, height: t, color: a, className: r, onClick: h });
|
6573
6573
|
case "back":
|
6574
|
-
return
|
6574
|
+
return Q2({ width: e, height: t, color: a, className: r, onClick: h });
|
6575
6575
|
case "bell":
|
6576
|
-
return
|
6576
|
+
return q2({ width: e, height: t, color: a, className: r, onClick: h });
|
6577
6577
|
case "contract":
|
6578
|
-
return
|
6578
|
+
return ei({ width: e, height: t, color: a, className: r, onClick: h });
|
6579
6579
|
case "trash2":
|
6580
|
-
return
|
6580
|
+
return X2({ width: e, height: t, color: a, className: r, onClick: h });
|
6581
6581
|
case "manager":
|
6582
|
-
return
|
6582
|
+
return ti({ width: e, height: t, color: a, className: r, onClick: h });
|
6583
6583
|
case "resourceManager":
|
6584
|
-
return
|
6584
|
+
return ii({ width: e, height: t, color: a, className: r, onClick: h });
|
6585
6585
|
case "settings2":
|
6586
|
-
return
|
6586
|
+
return si({ width: e, height: t, color: a, className: r, onClick: h });
|
6587
6587
|
case "image":
|
6588
|
-
return
|
6588
|
+
return oi({ width: e, height: t, color: a, className: r, onClick: h });
|
6589
6589
|
case "upload":
|
6590
|
-
return
|
6590
|
+
return ni({ width: e, height: t, color: a, className: r, onClick: h });
|
6591
6591
|
case "edit":
|
6592
|
-
return
|
6592
|
+
return ri({ width: e, height: t, color: a, className: r, onClick: h });
|
6593
6593
|
case "location":
|
6594
|
-
return
|
6594
|
+
return li({ width: e, height: t, color: a, className: r, onClick: h });
|
6595
6595
|
case "plus2":
|
6596
|
-
return
|
6596
|
+
return ai({ width: e, height: t, color: a, className: r, onClick: h });
|
6597
6597
|
case "search2":
|
6598
|
-
return
|
6598
|
+
return hi({ width: e, height: t, color: a, className: r, onClick: h });
|
6599
6599
|
case "fastArrowLeft":
|
6600
|
-
return
|
6600
|
+
return ci({ width: e, height: t, color: a, className: r, onClick: h });
|
6601
6601
|
case "fastArrowRight":
|
6602
|
-
return
|
6602
|
+
return di({ width: e, height: t, color: a, className: r, onClick: h });
|
6603
6603
|
case "crossInCircle":
|
6604
|
-
return
|
6604
|
+
return gi({ width: e, height: t, color: a, className: r, onClick: h });
|
6605
6605
|
case "arrowUp2":
|
6606
|
-
return
|
6606
|
+
return Ci({ width: e, height: t, color: a, className: r, onClick: h });
|
6607
6607
|
case "arrowDown2":
|
6608
|
-
return
|
6608
|
+
return ui({ width: e, height: t, color: a, className: r, onClick: h });
|
6609
6609
|
case "filledArrowLeft":
|
6610
|
-
return
|
6610
|
+
return pi({ width: e, height: t, color: a, className: r, onClick: h });
|
6611
6611
|
case "filledArrowRight":
|
6612
|
-
return
|
6612
|
+
return fi({ width: e, height: t, color: a, className: r, onClick: h });
|
6613
6613
|
case "burgerMenu":
|
6614
|
-
return
|
6614
|
+
return wi({ width: e, height: t, color: a, className: r, onClick: h });
|
6615
6615
|
case "signOut":
|
6616
|
-
return
|
6616
|
+
return mi({ width: e, height: t, color: a, className: r, onClick: h });
|
6617
6617
|
case "refresh":
|
6618
|
-
return
|
6618
|
+
return ki({ width: e, height: t, color: a, className: r, onClick: h });
|
6619
6619
|
default:
|
6620
|
-
return /* @__PURE__ */ n(
|
6620
|
+
return /* @__PURE__ */ n(z, { children: "No Icon provided" });
|
6621
6621
|
}
|
6622
6622
|
})() });
|
6623
6623
|
};
|
6624
|
-
var
|
6625
|
-
const
|
6624
|
+
var P1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(P1 || {});
|
6625
|
+
const vi = e1({
|
6626
6626
|
locale: "en",
|
6627
6627
|
theme: "light"
|
6628
6628
|
});
|
6629
|
-
|
6630
|
-
const
|
6631
|
-
const
|
6629
|
+
vi.Provider;
|
6630
|
+
const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o = !0 }) => {
|
6631
|
+
const l = t === "small" ? 10 : 12.5;
|
6632
6632
|
return /* @__PURE__ */ n(
|
6633
|
-
|
6633
|
+
D1,
|
6634
6634
|
{
|
6635
6635
|
className: `snmt-tag ${t}`,
|
6636
6636
|
closeIcon: /* @__PURE__ */ n(
|
6637
|
-
|
6637
|
+
Li,
|
6638
6638
|
{
|
6639
6639
|
name: "errorSmall",
|
6640
|
-
color:
|
6641
|
-
width:
|
6642
|
-
height:
|
6640
|
+
color: P1.GREY_DARK_2,
|
6641
|
+
width: l,
|
6642
|
+
height: l,
|
6643
6643
|
onClick: s
|
6644
6644
|
}
|
6645
6645
|
),
|
6646
6646
|
bordered: !1,
|
6647
6647
|
style: { width: e ?? "fit-content" },
|
6648
6648
|
closable: o,
|
6649
|
-
children: typeof i == "string" ? /* @__PURE__ */ n(
|
6649
|
+
children: typeof i == "string" ? /* @__PURE__ */ n(Pt, { variant: t === "small" ? "body4" : "body2", children: i }) : i
|
6650
6650
|
}
|
6651
6651
|
);
|
6652
|
-
}, { Title:
|
6652
|
+
}, { Title: Ni, Text: xi } = Z1, Ri = {
|
6653
6653
|
h1: 1,
|
6654
6654
|
h2: 2,
|
6655
6655
|
h3: 3,
|
6656
6656
|
h4: 4
|
6657
|
-
},
|
6657
|
+
}, $1 = u1(
|
6658
6658
|
({
|
6659
6659
|
align: i = "inherit",
|
6660
6660
|
variant: e = "body1",
|
6661
6661
|
color: t,
|
6662
6662
|
children: s,
|
6663
6663
|
onClick: o,
|
6664
|
-
collapsed:
|
6664
|
+
collapsed: l,
|
6665
6665
|
whiteSpace: c = "normal"
|
6666
6666
|
}, r) => {
|
6667
6667
|
const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
6668
6668
|
let g = `snmt-typography snmt-typography-${e}`;
|
6669
|
-
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`),
|
6670
|
-
|
6669
|
+
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), l && (g += " collapsed"), d ? /* @__PURE__ */ n(
|
6670
|
+
Ni,
|
6671
6671
|
{
|
6672
6672
|
className: g,
|
6673
6673
|
style: { color: t, whiteSpace: c },
|
6674
6674
|
onClick: o,
|
6675
|
-
level:
|
6675
|
+
level: Ri[e],
|
6676
6676
|
ref: r,
|
6677
6677
|
children: s
|
6678
6678
|
}
|
6679
6679
|
) : /* @__PURE__ */ n(
|
6680
|
-
|
6680
|
+
xi,
|
6681
6681
|
{
|
6682
6682
|
className: g,
|
6683
6683
|
style: { color: t, whiteSpace: c },
|
@@ -6687,23 +6687,23 @@ const K1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6687
6687
|
}
|
6688
6688
|
);
|
6689
6689
|
}
|
6690
|
-
),
|
6690
|
+
), Mi = ({
|
6691
6691
|
children: i,
|
6692
6692
|
content: e,
|
6693
6693
|
isOpen: t,
|
6694
6694
|
setIsOpen: s,
|
6695
6695
|
placement: o = "topRight",
|
6696
|
-
noPadding:
|
6696
|
+
noPadding: l = !1
|
6697
6697
|
}) => {
|
6698
6698
|
const [c, r] = S(!1);
|
6699
6699
|
return /* @__PURE__ */ n(
|
6700
|
-
|
6700
|
+
he,
|
6701
6701
|
{
|
6702
6702
|
content: e,
|
6703
6703
|
arrow: !1,
|
6704
6704
|
placement: o,
|
6705
6705
|
trigger: "click",
|
6706
|
-
overlayClassName: `snmt-popover ${
|
6706
|
+
overlayClassName: `snmt-popover ${l ? "" : "padding"}`,
|
6707
6707
|
open: t ?? c,
|
6708
6708
|
onOpenChange: (d) => {
|
6709
6709
|
r(d), s == null || s(d);
|
@@ -6711,52 +6711,52 @@ const K1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6711
6711
|
children: /* @__PURE__ */ n("div", { className: "wrapper", children: i })
|
6712
6712
|
}
|
6713
6713
|
);
|
6714
|
-
},
|
6714
|
+
}, yi = ({
|
6715
6715
|
values: i,
|
6716
6716
|
onTagClose: e,
|
6717
6717
|
maxWidth: t,
|
6718
6718
|
disabled: s,
|
6719
6719
|
options: o,
|
6720
|
-
extraOptions:
|
6720
|
+
extraOptions: l
|
6721
6721
|
}) => {
|
6722
6722
|
const [c, r] = S(!1);
|
6723
6723
|
A(() => {
|
6724
6724
|
i.length || r(!1);
|
6725
6725
|
}, [i]);
|
6726
|
-
const d = (
|
6727
|
-
|
6726
|
+
const d = (a) => {
|
6727
|
+
a.preventDefault(), a.stopPropagation();
|
6728
6728
|
};
|
6729
6729
|
if (!i.length)
|
6730
6730
|
return null;
|
6731
|
-
const g = (
|
6731
|
+
const g = (a) => {
|
6732
6732
|
var h, C;
|
6733
|
-
return ((h = o == null ? void 0 : o.find((
|
6733
|
+
return ((h = o == null ? void 0 : o.find((w) => w.value === a)) == null ? void 0 : h.label) || ((C = l == null ? void 0 : l.find((w) => w.value === a)) == null ? void 0 : C.label) || a;
|
6734
6734
|
};
|
6735
6735
|
return /* @__PURE__ */ n("div", { onMouseDown: d, className: "wrapper", children: /* @__PURE__ */ n(
|
6736
|
-
|
6736
|
+
Mi,
|
6737
6737
|
{
|
6738
6738
|
content: (
|
6739
6739
|
// 90: paddings + margins + gaps and so on
|
6740
|
-
/* @__PURE__ */ n("div", { style: { maxWidth: t - 90 }, children: /* @__PURE__ */ n(
|
6741
|
-
|
6740
|
+
/* @__PURE__ */ n("div", { style: { maxWidth: t - 90 }, children: /* @__PURE__ */ n(a1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: a }) => /* @__PURE__ */ n(
|
6741
|
+
F1,
|
6742
6742
|
{
|
6743
|
-
onClose: () => e(
|
6743
|
+
onClose: () => e(a),
|
6744
6744
|
closable: !s,
|
6745
|
-
children: g(
|
6745
|
+
children: g(a)
|
6746
6746
|
},
|
6747
|
-
|
6747
|
+
a
|
6748
6748
|
)) }) })
|
6749
6749
|
),
|
6750
6750
|
placement: "bottomRight",
|
6751
6751
|
isOpen: c,
|
6752
6752
|
setIsOpen: r,
|
6753
|
-
children: /* @__PURE__ */ n(
|
6753
|
+
children: /* @__PURE__ */ n(D1, { className: `overflow-button ${c ? "open" : ""}`, bordered: !1, children: /* @__PURE__ */ u($1, { variant: "body4", color: c ? U.BLUE_PRIMARY : void 0, children: [
|
6754
6754
|
i.length,
|
6755
6755
|
" more"
|
6756
6756
|
] }) })
|
6757
6757
|
}
|
6758
6758
|
) });
|
6759
|
-
},
|
6759
|
+
}, R1 = ({ size: i = 30, color: e = "#004ed7" }) => {
|
6760
6760
|
const t = `no-repeat linear-gradient(${e}
|
6761
6761
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
6762
6762
|
width: i,
|
@@ -6764,158 +6764,181 @@ const K1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6764
6764
|
backgroundSize: "20% calc(200% + 20px)"
|
6765
6765
|
};
|
6766
6766
|
return /* @__PURE__ */ n("span", { className: "snmt-loader", style: s });
|
6767
|
-
},
|
6767
|
+
}, bi = u1(
|
6768
6768
|
({
|
6769
6769
|
value: i,
|
6770
6770
|
onChange: e,
|
6771
6771
|
placeholder: t,
|
6772
6772
|
mode: s,
|
6773
6773
|
search: o = !1,
|
6774
|
-
options:
|
6774
|
+
options: l,
|
6775
6775
|
width: c,
|
6776
6776
|
disabled: r = !1,
|
6777
6777
|
required: d = !1,
|
6778
6778
|
scrollThresholdValue: g = 50,
|
6779
|
-
onSearchChange:
|
6779
|
+
onSearchChange: a,
|
6780
6780
|
onDropdownVisibleChange: h,
|
6781
6781
|
onScrollToEnd: C,
|
6782
6782
|
onPopupScroll: p,
|
6783
|
-
id:
|
6784
|
-
extraOptions:
|
6785
|
-
|
6786
|
-
|
6787
|
-
|
6783
|
+
id: w,
|
6784
|
+
extraOptions: v,
|
6785
|
+
dropdownRender: N,
|
6786
|
+
optionRender: R,
|
6787
|
+
isLoading: x,
|
6788
|
+
readOnly: E
|
6789
|
+
}, L) => {
|
6790
|
+
const [y, b] = S(!1), [M, D] = S(!1), [i1, P] = S(!0), [V, s1] = S(i), o1 = N1(null);
|
6788
6791
|
A(() => {
|
6789
|
-
|
6792
|
+
s1(i);
|
6790
6793
|
}, [i]);
|
6791
|
-
const
|
6792
|
-
|
6793
|
-
},
|
6794
|
+
const T = (f) => {
|
6795
|
+
b(f), h && h(f);
|
6796
|
+
}, G = (f, _) => {
|
6794
6797
|
var O;
|
6795
|
-
return !!((O =
|
6796
|
-
},
|
6797
|
-
|
6798
|
-
},
|
6799
|
-
|
6800
|
-
},
|
6801
|
-
|
6802
|
-
|
6803
|
-
|
6804
|
-
|
6805
|
-
|
6806
|
-
|
6807
|
-
|
6808
|
-
|
6809
|
-
|
6810
|
-
|
6811
|
-
|
6798
|
+
return !!((O = _ == null ? void 0 : _.label) != null && O.toString().toLowerCase().includes(f.toLowerCase()));
|
6799
|
+
}, F = () => {
|
6800
|
+
D(!0);
|
6801
|
+
}, n1 = () => {
|
6802
|
+
D(!1);
|
6803
|
+
}, H = Z(
|
6804
|
+
(f) => {
|
6805
|
+
if (s1(f), s) {
|
6806
|
+
const O = f;
|
6807
|
+
e == null || e(O);
|
6808
|
+
return;
|
6809
|
+
}
|
6810
|
+
const _ = f;
|
6811
|
+
e == null || e(_);
|
6812
|
+
},
|
6813
|
+
[s, e]
|
6814
|
+
), j = Z(() => {
|
6815
|
+
if (!E) {
|
6816
|
+
if (s) {
|
6817
|
+
H([]);
|
6818
|
+
return;
|
6819
|
+
}
|
6820
|
+
H("");
|
6812
6821
|
}
|
6813
|
-
|
6814
|
-
|
6815
|
-
|
6816
|
-
|
6817
|
-
|
6818
|
-
|
6819
|
-
|
6820
|
-
|
6821
|
-
|
6822
|
-
|
6823
|
-
|
6824
|
-
|
6825
|
-
|
6826
|
-
|
6827
|
-
|
6828
|
-
|
6829
|
-
|
6830
|
-
|
6831
|
-
|
6832
|
-
|
6833
|
-
|
6834
|
-
|
6835
|
-
|
6836
|
-
|
6837
|
-
|
6838
|
-
|
6839
|
-
|
6840
|
-
|
6841
|
-
|
6842
|
-
|
6843
|
-
|
6844
|
-
|
6845
|
-
|
6846
|
-
|
6822
|
+
}, [H, s, E]), B = Z(
|
6823
|
+
(f) => {
|
6824
|
+
const _ = V.filter((O) => O !== f);
|
6825
|
+
H(_), s1(_);
|
6826
|
+
},
|
6827
|
+
[H, V]
|
6828
|
+
), J = Z(
|
6829
|
+
(f) => (V == null ? void 0 : V.indexOf(f)) === 0 ? (
|
6830
|
+
// if the search input is empty
|
6831
|
+
// then display the placeholder, else do not display it
|
6832
|
+
/* @__PURE__ */ n("span", { className: "custom-placeholder", children: i1 ? t : "" })
|
6833
|
+
) : /* @__PURE__ */ n(z, {}),
|
6834
|
+
[i1, V, t]
|
6835
|
+
), q1 = (f) => {
|
6836
|
+
f.preventDefault(), f.stopPropagation();
|
6837
|
+
}, X1 = async (f) => {
|
6838
|
+
const { target: _ } = f;
|
6839
|
+
_.scrollTop + _.offsetHeight >= _.scrollHeight - g && (C == null || C(!0)), p && await p(f);
|
6840
|
+
}, p1 = Z(
|
6841
|
+
(f) => {
|
6842
|
+
var _, O;
|
6843
|
+
return ((_ = l.find((f1) => f1.value === f)) == null ? void 0 : _.label) || ((O = v == null ? void 0 : v.find(
|
6844
|
+
(f1) => f1.value === f
|
6845
|
+
)) == null ? void 0 : O.label) || f;
|
6846
|
+
},
|
6847
|
+
[v, l]
|
6848
|
+
), ee = Z(
|
6849
|
+
(f) => {
|
6850
|
+
var _;
|
6851
|
+
return /* @__PURE__ */ n(
|
6852
|
+
yi,
|
6853
|
+
{
|
6854
|
+
values: f,
|
6855
|
+
onTagClose: B,
|
6856
|
+
maxWidth: ((_ = o1.current) == null ? void 0 : _.clientWidth) || 0,
|
6857
|
+
disabled: r || E,
|
6858
|
+
options: l,
|
6859
|
+
extraOptions: v
|
6860
|
+
}
|
6861
|
+
);
|
6862
|
+
},
|
6863
|
+
[r, v, B, l, E]
|
6864
|
+
), te = Z(
|
6865
|
+
({ label: f, value: _, mode: O }) => O === "filter" ? J(_) : /* @__PURE__ */ n("div", { onMouseDown: q1, className: "tag-wrapper", children: /* @__PURE__ */ n(F1, { onClose: () => B(_), closable: !r, children: /* @__PURE__ */ n($1, { variant: "body4", children: typeof f == "object" ? f : p1(_) }) }) }),
|
6866
|
+
[r, p1, B, J]
|
6867
|
+
);
|
6847
6868
|
return /* @__PURE__ */ u(
|
6848
6869
|
"div",
|
6849
6870
|
{
|
6850
|
-
className: `snmt-select ${
|
6851
|
-
${s ? "" : "snmt-select-single"}`,
|
6852
|
-
ref:
|
6871
|
+
className: `snmt-select ${M ? "snmt-select-focused" : ""}
|
6872
|
+
${s ? "" : "snmt-select-single"} ${E ? "snmt-select-read-only" : ""}`,
|
6873
|
+
ref: o1,
|
6853
6874
|
style: { width: c },
|
6854
6875
|
children: [
|
6855
6876
|
/* @__PURE__ */ n(
|
6856
|
-
|
6877
|
+
ne,
|
6857
6878
|
{
|
6858
6879
|
className: "snmt-select-blank",
|
6859
|
-
|
6860
|
-
|
6880
|
+
popupClassName: E ? "dropdown-read-only" : "",
|
6881
|
+
id: w,
|
6882
|
+
ref: L,
|
6861
6883
|
showSearch: !!o,
|
6862
|
-
filterOption: o &&
|
6863
|
-
onDropdownVisibleChange:
|
6884
|
+
filterOption: o && G,
|
6885
|
+
onDropdownVisibleChange: T,
|
6864
6886
|
placeholder: t ? d ? `${t}*` : t : void 0,
|
6865
6887
|
disabled: r,
|
6866
|
-
value:
|
6867
|
-
labelRender: (
|
6888
|
+
value: V || void 0,
|
6889
|
+
labelRender: (f) => p1(f.value),
|
6868
6890
|
mode: s === "filter" ? "multiple" : s,
|
6869
|
-
onChange:
|
6870
|
-
onFocus:
|
6871
|
-
onBlur:
|
6872
|
-
onSearch: (
|
6873
|
-
|
6891
|
+
onChange: H,
|
6892
|
+
onFocus: F,
|
6893
|
+
onBlur: n1,
|
6894
|
+
onSearch: (f) => {
|
6895
|
+
P(!f), a && a(f);
|
6874
6896
|
},
|
6875
|
-
onSelect: () =>
|
6876
|
-
onDeselect: () =>
|
6877
|
-
tagRender: (
|
6897
|
+
onSelect: () => P(!0),
|
6898
|
+
onDeselect: () => P(!0),
|
6899
|
+
tagRender: (f) => te({ ...f, mode: s }),
|
6878
6900
|
maxTagCount: "responsive",
|
6879
|
-
maxTagPlaceholder:
|
6880
|
-
onPopupScroll:
|
6881
|
-
|
6882
|
-
|
6901
|
+
maxTagPlaceholder: ee,
|
6902
|
+
onPopupScroll: X1,
|
6903
|
+
prefix: E && !i && /* @__PURE__ */ n(R1, { size: 15 }),
|
6904
|
+
suffixIcon: /* @__PURE__ */ n("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(z, { children: [
|
6905
|
+
s && V && !!V.length && /* @__PURE__ */ n("div", { onClick: j, children: /* @__PURE__ */ n(r1, { name: "cancel" }) }),
|
6883
6906
|
/* @__PURE__ */ n(
|
6884
|
-
|
6907
|
+
r1,
|
6885
6908
|
{
|
6886
6909
|
name: "selectArrowIcon",
|
6887
|
-
color: r ?
|
6888
|
-
className:
|
6889
|
-
onClick: () =>
|
6910
|
+
color: r ? U.GREY_DARK_1 : U.GREY_DARK_5,
|
6911
|
+
className: y ? "select-arrow-rotated" : "select-arrow",
|
6912
|
+
onClick: () => b(!y)
|
6890
6913
|
}
|
6891
6914
|
)
|
6892
6915
|
] }) }),
|
6893
|
-
removeIcon: /* @__PURE__ */ n(
|
6894
|
-
options:
|
6895
|
-
optionRender: (
|
6896
|
-
/* @__PURE__ */ u(
|
6916
|
+
removeIcon: /* @__PURE__ */ n(r1, { name: "errorSmall", color: U.GREY_DARK_2 }),
|
6917
|
+
options: l,
|
6918
|
+
optionRender: (f) => R ? R(f.data) : /* @__PURE__ */ u(a1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
6919
|
+
/* @__PURE__ */ u(a1, { alignItems: "center", gap: 12, children: [
|
6897
6920
|
s && /* @__PURE__ */ n(
|
6898
|
-
|
6921
|
+
de,
|
6899
6922
|
{
|
6900
|
-
checked: !!(
|
6923
|
+
checked: !!(V != null && V.includes(f.value))
|
6901
6924
|
}
|
6902
6925
|
),
|
6903
|
-
/* @__PURE__ */ u(
|
6904
|
-
|
6905
|
-
/* @__PURE__ */ n("span", { children:
|
6926
|
+
/* @__PURE__ */ u(a1, { alignItems: "center", gap: 8, children: [
|
6927
|
+
f.data.image && /* @__PURE__ */ n(ce, { src: f.data.image, size: 20 }),
|
6928
|
+
/* @__PURE__ */ n("span", { children: f.label })
|
6906
6929
|
] })
|
6907
6930
|
] }),
|
6908
|
-
!s &&
|
6909
|
-
|
6931
|
+
!s && V === f.value && /* @__PURE__ */ n(
|
6932
|
+
r1,
|
6910
6933
|
{
|
6911
6934
|
name: "ok",
|
6912
|
-
color:
|
6935
|
+
color: U.BLUE_PRIMARY,
|
6913
6936
|
width: 16,
|
6914
6937
|
height: 16
|
6915
6938
|
}
|
6916
6939
|
)
|
6917
6940
|
] }),
|
6918
|
-
dropdownRender:
|
6941
|
+
dropdownRender: x ? () => /* @__PURE__ */ n(
|
6919
6942
|
"div",
|
6920
6943
|
{
|
6921
6944
|
style: {
|
@@ -6923,15 +6946,15 @@ const K1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6923
6946
|
display: "grid",
|
6924
6947
|
justifyContent: "center"
|
6925
6948
|
},
|
6926
|
-
children: /* @__PURE__ */ n(
|
6949
|
+
children: /* @__PURE__ */ n(R1, { size: 28 })
|
6927
6950
|
}
|
6928
|
-
) :
|
6951
|
+
) : (f) => N ? N(f) : f
|
6929
6952
|
}
|
6930
6953
|
),
|
6931
6954
|
/* @__PURE__ */ n(
|
6932
6955
|
"fieldset",
|
6933
6956
|
{
|
6934
|
-
className: `${
|
6957
|
+
className: `${M ? "fieldset-focused" : ""}
|
6935
6958
|
${r ? "fieldset-disabled" : ""}
|
6936
6959
|
${typeof i == "string" && i ? "fieldset-filled" : ""}
|
6937
6960
|
${typeof i == "object" && i != null && i.length ? "fieldset-filled" : ""}`,
|
@@ -6942,7 +6965,7 @@ const K1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6942
6965
|
}
|
6943
6966
|
);
|
6944
6967
|
}
|
6945
|
-
),
|
6968
|
+
), Ei = {
|
6946
6969
|
type: "logger",
|
6947
6970
|
log(i) {
|
6948
6971
|
this.output("log", i);
|
@@ -6957,14 +6980,14 @@ const K1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6957
6980
|
console && console[i] && console[i].apply(console, e);
|
6958
6981
|
}
|
6959
6982
|
};
|
6960
|
-
class
|
6983
|
+
class h1 {
|
6961
6984
|
constructor(e) {
|
6962
6985
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6963
6986
|
this.init(e, t);
|
6964
6987
|
}
|
6965
6988
|
init(e) {
|
6966
6989
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6967
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
6990
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || Ei, this.options = t, this.debug = t.debug;
|
6968
6991
|
}
|
6969
6992
|
log() {
|
6970
6993
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
@@ -6990,17 +7013,17 @@ class r1 {
|
|
6990
7013
|
return o && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
|
6991
7014
|
}
|
6992
7015
|
create(e) {
|
6993
|
-
return new
|
7016
|
+
return new h1(this.logger, {
|
6994
7017
|
prefix: `${this.prefix}:${e}:`,
|
6995
7018
|
...this.options
|
6996
7019
|
});
|
6997
7020
|
}
|
6998
7021
|
clone(e) {
|
6999
|
-
return e = e || this.options, e.prefix = e.prefix || this.prefix, new
|
7022
|
+
return e = e || this.options, e.prefix = e.prefix || this.prefix, new h1(this.logger, e);
|
7000
7023
|
}
|
7001
7024
|
}
|
7002
|
-
var W = new
|
7003
|
-
class
|
7025
|
+
var W = new h1();
|
7026
|
+
class C1 {
|
7004
7027
|
constructor() {
|
7005
7028
|
this.observers = {};
|
7006
7029
|
}
|
@@ -7034,63 +7057,63 @@ class d1 {
|
|
7034
7057
|
});
|
7035
7058
|
}
|
7036
7059
|
}
|
7037
|
-
const
|
7060
|
+
const Q = () => {
|
7038
7061
|
let i, e;
|
7039
7062
|
const t = new Promise((s, o) => {
|
7040
7063
|
i = s, e = o;
|
7041
7064
|
});
|
7042
7065
|
return t.resolve = i, t.reject = e, t;
|
7043
|
-
},
|
7066
|
+
}, M1 = (i) => i == null ? "" : "" + i, _i = (i, e, t) => {
|
7044
7067
|
i.forEach((s) => {
|
7045
7068
|
e[s] && (t[s] = e[s]);
|
7046
7069
|
});
|
7047
|
-
},
|
7070
|
+
}, Hi = /###/g, y1 = (i) => i && i.indexOf("###") > -1 ? i.replace(Hi, ".") : i, b1 = (i) => !i || typeof i == "string", q = (i, e, t) => {
|
7048
7071
|
const s = typeof e != "string" ? e : e.split(".");
|
7049
7072
|
let o = 0;
|
7050
7073
|
for (; o < s.length - 1; ) {
|
7051
|
-
if (
|
7052
|
-
const
|
7053
|
-
!i[
|
7074
|
+
if (b1(i)) return {};
|
7075
|
+
const l = y1(s[o]);
|
7076
|
+
!i[l] && t && (i[l] = new t()), Object.prototype.hasOwnProperty.call(i, l) ? i = i[l] : i = {}, ++o;
|
7054
7077
|
}
|
7055
|
-
return
|
7078
|
+
return b1(i) ? {} : {
|
7056
7079
|
obj: i,
|
7057
|
-
k:
|
7080
|
+
k: y1(s[o])
|
7058
7081
|
};
|
7059
|
-
},
|
7082
|
+
}, E1 = (i, e, t) => {
|
7060
7083
|
const {
|
7061
7084
|
obj: s,
|
7062
7085
|
k: o
|
7063
|
-
} =
|
7086
|
+
} = q(i, e, Object);
|
7064
7087
|
if (s !== void 0 || e.length === 1) {
|
7065
7088
|
s[o] = t;
|
7066
7089
|
return;
|
7067
7090
|
}
|
7068
|
-
let
|
7091
|
+
let l = e[e.length - 1], c = e.slice(0, e.length - 1), r = q(i, c, Object);
|
7069
7092
|
for (; r.obj === void 0 && c.length; )
|
7070
|
-
|
7071
|
-
r.obj[`${r.k}.${
|
7072
|
-
},
|
7093
|
+
l = `${c[c.length - 1]}.${l}`, c = c.slice(0, c.length - 1), r = q(i, c, Object), r && r.obj && typeof r.obj[`${r.k}.${l}`] < "u" && (r.obj = void 0);
|
7094
|
+
r.obj[`${r.k}.${l}`] = t;
|
7095
|
+
}, Vi = (i, e, t, s) => {
|
7073
7096
|
const {
|
7074
7097
|
obj: o,
|
7075
|
-
k:
|
7076
|
-
} =
|
7077
|
-
o[
|
7078
|
-
},
|
7098
|
+
k: l
|
7099
|
+
} = q(i, e, Object);
|
7100
|
+
o[l] = o[l] || [], o[l].push(t);
|
7101
|
+
}, c1 = (i, e) => {
|
7079
7102
|
const {
|
7080
7103
|
obj: t,
|
7081
7104
|
k: s
|
7082
|
-
} =
|
7105
|
+
} = q(i, e);
|
7083
7106
|
if (t)
|
7084
7107
|
return t[s];
|
7085
|
-
},
|
7086
|
-
const s =
|
7087
|
-
return s !== void 0 ? s :
|
7088
|
-
},
|
7108
|
+
}, Ii = (i, e, t) => {
|
7109
|
+
const s = c1(i, t);
|
7110
|
+
return s !== void 0 ? s : c1(e, t);
|
7111
|
+
}, Y1 = (i, e, t) => {
|
7089
7112
|
for (const s in e)
|
7090
|
-
s !== "__proto__" && s !== "constructor" && (s in i ? typeof i[s] == "string" || i[s] instanceof String || typeof e[s] == "string" || e[s] instanceof String ? t && (i[s] = e[s]) :
|
7113
|
+
s !== "__proto__" && s !== "constructor" && (s in i ? typeof i[s] == "string" || i[s] instanceof String || typeof e[s] == "string" || e[s] instanceof String ? t && (i[s] = e[s]) : Y1(i[s], e[s], t) : i[s] = e[s]);
|
7091
7114
|
return i;
|
7092
|
-
},
|
7093
|
-
var
|
7115
|
+
}, $ = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
7116
|
+
var Si = {
|
7094
7117
|
"&": "&",
|
7095
7118
|
"<": "<",
|
7096
7119
|
">": ">",
|
@@ -7098,8 +7121,8 @@ var Hi = {
|
|
7098
7121
|
"'": "'",
|
7099
7122
|
"/": "/"
|
7100
7123
|
};
|
7101
|
-
const
|
7102
|
-
class
|
7124
|
+
const Oi = (i) => typeof i == "string" ? i.replace(/[&<>"'\/]/g, (e) => Si[e]) : i;
|
7125
|
+
class Ai {
|
7103
7126
|
constructor(e) {
|
7104
7127
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
7105
7128
|
}
|
@@ -7111,39 +7134,39 @@ class Ii {
|
|
7111
7134
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
7112
7135
|
}
|
7113
7136
|
}
|
7114
|
-
const
|
7137
|
+
const Bi = [" ", ",", "?", "!", ";"], Wi = new Ai(20), ji = (i, e, t) => {
|
7115
7138
|
e = e || "", t = t || "";
|
7116
|
-
const s =
|
7139
|
+
const s = Bi.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
|
7117
7140
|
if (s.length === 0) return !0;
|
7118
|
-
const o =
|
7119
|
-
let
|
7120
|
-
if (!
|
7141
|
+
const o = Wi.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
7142
|
+
let l = !o.test(i);
|
7143
|
+
if (!l) {
|
7121
7144
|
const c = i.indexOf(t);
|
7122
|
-
c > 0 && !o.test(i.substring(0, c)) && (
|
7145
|
+
c > 0 && !o.test(i.substring(0, c)) && (l = !0);
|
7123
7146
|
}
|
7124
|
-
return
|
7125
|
-
},
|
7147
|
+
return l;
|
7148
|
+
}, k1 = function(i, e) {
|
7126
7149
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
7127
7150
|
if (!i) return;
|
7128
7151
|
if (i[e]) return i[e];
|
7129
7152
|
const s = e.split(t);
|
7130
7153
|
let o = i;
|
7131
|
-
for (let
|
7154
|
+
for (let l = 0; l < s.length; ) {
|
7132
7155
|
if (!o || typeof o != "object")
|
7133
7156
|
return;
|
7134
7157
|
let c, r = "";
|
7135
|
-
for (let d =
|
7136
|
-
if (d !==
|
7158
|
+
for (let d = l; d < s.length; ++d)
|
7159
|
+
if (d !== l && (r += t), r += s[d], c = o[r], c !== void 0) {
|
7137
7160
|
if (["string", "number", "boolean"].indexOf(typeof c) > -1 && d < s.length - 1)
|
7138
7161
|
continue;
|
7139
|
-
|
7162
|
+
l += d - l + 1;
|
7140
7163
|
break;
|
7141
7164
|
}
|
7142
7165
|
o = c;
|
7143
7166
|
}
|
7144
7167
|
return o;
|
7145
|
-
},
|
7146
|
-
class
|
7168
|
+
}, d1 = (i) => i && i.indexOf("_") > 0 ? i.replace("_", "-") : i;
|
7169
|
+
class _1 extends C1 {
|
7147
7170
|
constructor(e) {
|
7148
7171
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
7149
7172
|
ns: ["translation"],
|
@@ -7160,41 +7183,41 @@ class y1 extends d1 {
|
|
7160
7183
|
}
|
7161
7184
|
getResource(e, t, s) {
|
7162
7185
|
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
7163
|
-
const
|
7186
|
+
const l = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator, c = o.ignoreJSONStructure !== void 0 ? o.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
7164
7187
|
let r;
|
7165
|
-
e.indexOf(".") > -1 ? r = e.split(".") : (r = [e, t], s && (Array.isArray(s) ? r.push(...s) : typeof s == "string" &&
|
7166
|
-
const d =
|
7167
|
-
return !d && !t && !s && e.indexOf(".") > -1 && (e = r[0], t = r[1], s = r.slice(2).join(".")), d || !c || typeof s != "string" ? d :
|
7188
|
+
e.indexOf(".") > -1 ? r = e.split(".") : (r = [e, t], s && (Array.isArray(s) ? r.push(...s) : typeof s == "string" && l ? r.push(...s.split(l)) : r.push(s)));
|
7189
|
+
const d = c1(this.data, r);
|
7190
|
+
return !d && !t && !s && e.indexOf(".") > -1 && (e = r[0], t = r[1], s = r.slice(2).join(".")), d || !c || typeof s != "string" ? d : k1(this.data && this.data[e] && this.data[e][t], s, l);
|
7168
7191
|
}
|
7169
7192
|
addResource(e, t, s, o) {
|
7170
|
-
let
|
7193
|
+
let l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
7171
7194
|
silent: !1
|
7172
7195
|
};
|
7173
|
-
const c =
|
7196
|
+
const c = l.keySeparator !== void 0 ? l.keySeparator : this.options.keySeparator;
|
7174
7197
|
let r = [e, t];
|
7175
|
-
s && (r = r.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (r = e.split("."), o = t, t = r[1]), this.addNamespaces(t),
|
7198
|
+
s && (r = r.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (r = e.split("."), o = t, t = r[1]), this.addNamespaces(t), E1(this.data, r, o), l.silent || this.emit("added", e, t, s, o);
|
7176
7199
|
}
|
7177
7200
|
addResources(e, t, s) {
|
7178
7201
|
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
7179
7202
|
silent: !1
|
7180
7203
|
};
|
7181
|
-
for (const
|
7182
|
-
(typeof s[
|
7204
|
+
for (const l in s)
|
7205
|
+
(typeof s[l] == "string" || Array.isArray(s[l])) && this.addResource(e, t, l, s[l], {
|
7183
7206
|
silent: !0
|
7184
7207
|
});
|
7185
7208
|
o.silent || this.emit("added", e, t, s);
|
7186
7209
|
}
|
7187
|
-
addResourceBundle(e, t, s, o,
|
7210
|
+
addResourceBundle(e, t, s, o, l) {
|
7188
7211
|
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
|
7189
7212
|
silent: !1,
|
7190
7213
|
skipCopy: !1
|
7191
7214
|
}, r = [e, t];
|
7192
7215
|
e.indexOf(".") > -1 && (r = e.split("."), o = s, s = t, t = r[1]), this.addNamespaces(t);
|
7193
|
-
let d =
|
7194
|
-
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), o ?
|
7216
|
+
let d = c1(this.data, r) || {};
|
7217
|
+
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), o ? Y1(d, s, l) : d = {
|
7195
7218
|
...d,
|
7196
7219
|
...s
|
7197
|
-
},
|
7220
|
+
}, E1(this.data, r, d), c.silent || this.emit("added", e, t, s);
|
7198
7221
|
}
|
7199
7222
|
removeResourceBundle(e, t) {
|
7200
7223
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
@@ -7218,22 +7241,22 @@ class y1 extends d1 {
|
|
7218
7241
|
return this.data;
|
7219
7242
|
}
|
7220
7243
|
}
|
7221
|
-
var
|
7244
|
+
var U1 = {
|
7222
7245
|
processors: {},
|
7223
7246
|
addPostProcessor(i) {
|
7224
7247
|
this.processors[i.name] = i;
|
7225
7248
|
},
|
7226
7249
|
handle(i, e, t, s, o) {
|
7227
|
-
return i.forEach((
|
7228
|
-
this.processors[
|
7250
|
+
return i.forEach((l) => {
|
7251
|
+
this.processors[l] && (e = this.processors[l].process(e, t, s, o));
|
7229
7252
|
}), e;
|
7230
7253
|
}
|
7231
7254
|
};
|
7232
|
-
const
|
7233
|
-
class
|
7255
|
+
const H1 = {};
|
7256
|
+
class g1 extends C1 {
|
7234
7257
|
constructor(e) {
|
7235
7258
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7236
|
-
super(),
|
7259
|
+
super(), _i(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = W.create("translator");
|
7237
7260
|
}
|
7238
7261
|
changeLanguage(e) {
|
7239
7262
|
e && (this.language = e);
|
@@ -7251,21 +7274,21 @@ class h1 extends d1 {
|
|
7251
7274
|
let s = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
|
7252
7275
|
s === void 0 && (s = ":");
|
7253
7276
|
const o = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
7254
|
-
let
|
7255
|
-
const c = s && e.indexOf(s) > -1, r = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
7277
|
+
let l = t.ns || this.options.defaultNS || [];
|
7278
|
+
const c = s && e.indexOf(s) > -1, r = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !ji(e, s, o);
|
7256
7279
|
if (c && !r) {
|
7257
7280
|
const d = e.match(this.interpolator.nestingRegexp);
|
7258
7281
|
if (d && d.length > 0)
|
7259
7282
|
return {
|
7260
7283
|
key: e,
|
7261
|
-
namespaces:
|
7284
|
+
namespaces: l
|
7262
7285
|
};
|
7263
7286
|
const g = e.split(s);
|
7264
|
-
(s !== o || s === o && this.options.ns.indexOf(g[0]) > -1) && (
|
7287
|
+
(s !== o || s === o && this.options.ns.indexOf(g[0]) > -1) && (l = g.shift()), e = g.join(o);
|
7265
7288
|
}
|
7266
|
-
return typeof
|
7289
|
+
return typeof l == "string" && (l = [l]), {
|
7267
7290
|
key: e,
|
7268
|
-
namespaces:
|
7291
|
+
namespaces: l
|
7269
7292
|
};
|
7270
7293
|
}
|
7271
7294
|
translate(e, t, s) {
|
@@ -7273,21 +7296,21 @@ class h1 extends d1 {
|
|
7273
7296
|
...t
|
7274
7297
|
}), t || (t = {}), e == null) return "";
|
7275
7298
|
Array.isArray(e) || (e = [String(e)]);
|
7276
|
-
const o = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails,
|
7299
|
+
const o = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, l = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
7277
7300
|
key: c,
|
7278
7301
|
namespaces: r
|
7279
|
-
} = this.extractFromKey(e[e.length - 1], t), d = r[r.length - 1], g = t.lng || this.language,
|
7302
|
+
} = this.extractFromKey(e[e.length - 1], t), d = r[r.length - 1], g = t.lng || this.language, a = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
7280
7303
|
if (g && g.toLowerCase() === "cimode") {
|
7281
|
-
if (
|
7282
|
-
const
|
7304
|
+
if (a) {
|
7305
|
+
const L = t.nsSeparator || this.options.nsSeparator;
|
7283
7306
|
return o ? {
|
7284
|
-
res: `${d}${
|
7307
|
+
res: `${d}${L}${c}`,
|
7285
7308
|
usedKey: c,
|
7286
7309
|
exactUsedKey: c,
|
7287
7310
|
usedLng: g,
|
7288
7311
|
usedNS: d,
|
7289
7312
|
usedParams: this.getUsedParamsDetails(t)
|
7290
|
-
} : `${d}${
|
7313
|
+
} : `${d}${L}${c}`;
|
7291
7314
|
}
|
7292
7315
|
return o ? {
|
7293
7316
|
res: c,
|
@@ -7300,68 +7323,68 @@ class h1 extends d1 {
|
|
7300
7323
|
}
|
7301
7324
|
const h = this.resolve(e, t);
|
7302
7325
|
let C = h && h.res;
|
7303
|
-
const p = h && h.usedKey || c,
|
7304
|
-
if (x && C && (typeof C != "string" && typeof C != "boolean" && typeof C != "number") &&
|
7326
|
+
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, v = Object.prototype.toString.apply(C), N = ["[object Number]", "[object Function]", "[object RegExp]"], R = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, x = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
7327
|
+
if (x && C && (typeof C != "string" && typeof C != "boolean" && typeof C != "number") && N.indexOf(v) < 0 && !(typeof R == "string" && Array.isArray(C))) {
|
7305
7328
|
if (!t.returnObjects && !this.options.returnObjects) {
|
7306
7329
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
7307
|
-
const
|
7330
|
+
const L = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, C, {
|
7308
7331
|
...t,
|
7309
7332
|
ns: r
|
7310
7333
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
7311
|
-
return o ? (h.res =
|
7334
|
+
return o ? (h.res = L, h.usedParams = this.getUsedParamsDetails(t), h) : L;
|
7312
7335
|
}
|
7313
|
-
if (
|
7314
|
-
const
|
7336
|
+
if (l) {
|
7337
|
+
const L = Array.isArray(C), y = L ? [] : {}, b = L ? w : p;
|
7315
7338
|
for (const M in C)
|
7316
7339
|
if (Object.prototype.hasOwnProperty.call(C, M)) {
|
7317
|
-
const
|
7318
|
-
y[M] = this.translate(
|
7340
|
+
const D = `${b}${l}${M}`;
|
7341
|
+
y[M] = this.translate(D, {
|
7319
7342
|
...t,
|
7320
7343
|
joinArrays: !1,
|
7321
7344
|
ns: r
|
7322
|
-
}), y[M] ===
|
7345
|
+
}), y[M] === D && (y[M] = C[M]);
|
7323
7346
|
}
|
7324
7347
|
C = y;
|
7325
7348
|
}
|
7326
7349
|
} else if (x && typeof R == "string" && Array.isArray(C))
|
7327
7350
|
C = C.join(R), C && (C = this.extendTranslation(C, e, t, s));
|
7328
7351
|
else {
|
7329
|
-
let
|
7330
|
-
const b = t.count !== void 0 && typeof t.count != "string", M =
|
7352
|
+
let L = !1, y = !1;
|
7353
|
+
const b = t.count !== void 0 && typeof t.count != "string", M = g1.hasDefaultValue(t), D = b ? this.pluralResolver.getSuffix(g, t.count, t) : "", i1 = t.ordinal && b ? this.pluralResolver.getSuffix(g, t.count, {
|
7331
7354
|
ordinal: !1
|
7332
|
-
}) : "",
|
7333
|
-
!this.isValidLookup(C) && M && (
|
7334
|
-
const
|
7335
|
-
if (y ||
|
7336
|
-
if (this.logger.log(
|
7337
|
-
const
|
7355
|
+
}) : "", P = b && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), V = P && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${D}`] || t[`defaultValue${i1}`] || t.defaultValue;
|
7356
|
+
!this.isValidLookup(C) && M && (L = !0, C = V), this.isValidLookup(C) || (y = !0, C = c);
|
7357
|
+
const o1 = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && y ? void 0 : C, T = M && V !== C && this.options.updateMissing;
|
7358
|
+
if (y || L || T) {
|
7359
|
+
if (this.logger.log(T ? "updateKey" : "missingKey", g, d, c, T ? V : C), l) {
|
7360
|
+
const H = this.resolve(c, {
|
7338
7361
|
...t,
|
7339
7362
|
keySeparator: !1
|
7340
7363
|
});
|
7341
|
-
|
7342
|
-
}
|
7343
|
-
let
|
7344
|
-
const
|
7345
|
-
if (this.options.saveMissingTo === "fallback" &&
|
7346
|
-
for (let
|
7347
|
-
|
7348
|
-
else this.options.saveMissingTo === "all" ?
|
7349
|
-
const
|
7350
|
-
const
|
7351
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
7364
|
+
H && H.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
7365
|
+
}
|
7366
|
+
let G = [];
|
7367
|
+
const F = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
7368
|
+
if (this.options.saveMissingTo === "fallback" && F && F[0])
|
7369
|
+
for (let H = 0; H < F.length; H++)
|
7370
|
+
G.push(F[H]);
|
7371
|
+
else this.options.saveMissingTo === "all" ? G = this.languageUtils.toResolveHierarchy(t.lng || this.language) : G.push(t.lng || this.language);
|
7372
|
+
const n1 = (H, j, B) => {
|
7373
|
+
const J = M && B !== C ? B : o1;
|
7374
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(H, d, j, J, T, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(H, d, j, J, T, t), this.emit("missingKey", H, d, j, C);
|
7352
7375
|
};
|
7353
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && b ?
|
7354
|
-
const
|
7355
|
-
|
7356
|
-
|
7376
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && b ? G.forEach((H) => {
|
7377
|
+
const j = this.pluralResolver.getSuffixes(H, t);
|
7378
|
+
P && t[`defaultValue${this.options.pluralSeparator}zero`] && j.indexOf(`${this.options.pluralSeparator}zero`) < 0 && j.push(`${this.options.pluralSeparator}zero`), j.forEach((B) => {
|
7379
|
+
n1([H], c + B, t[`defaultValue${B}`] || V);
|
7357
7380
|
});
|
7358
|
-
}) :
|
7381
|
+
}) : n1(G, c, V));
|
7359
7382
|
}
|
7360
|
-
C = this.extendTranslation(C, e, t, h, s), y && C === c && this.options.appendNamespaceToMissingKey && (C = `${d}:${c}`), (y ||
|
7383
|
+
C = this.extendTranslation(C, e, t, h, s), y && C === c && this.options.appendNamespaceToMissingKey && (C = `${d}:${c}`), (y || L) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? C = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, L ? C : void 0) : C = this.options.parseMissingKeyHandler(C));
|
7361
7384
|
}
|
7362
7385
|
return o ? (h.res = C, h.usedParams = this.getUsedParamsDetails(t), h) : C;
|
7363
7386
|
}
|
7364
|
-
extendTranslation(e, t, s, o,
|
7387
|
+
extendTranslation(e, t, s, o, l) {
|
7365
7388
|
var c = this;
|
7366
7389
|
if (this.i18nFormat && this.i18nFormat.parse)
|
7367
7390
|
e = this.i18nFormat.parse(e, {
|
@@ -7379,10 +7402,10 @@ class h1 extends d1 {
|
|
7379
7402
|
}
|
7380
7403
|
});
|
7381
7404
|
const g = typeof e == "string" && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
7382
|
-
let
|
7405
|
+
let a;
|
7383
7406
|
if (g) {
|
7384
7407
|
const C = e.match(this.interpolator.nestingRegexp);
|
7385
|
-
|
7408
|
+
a = C && C.length;
|
7386
7409
|
}
|
7387
7410
|
let h = s.replace && typeof s.replace != "string" ? s.replace : s;
|
7388
7411
|
if (this.options.interpolation.defaultVariables && (h = {
|
@@ -7390,16 +7413,16 @@ class h1 extends d1 {
|
|
7390
7413
|
...h
|
7391
7414
|
}), e = this.interpolator.interpolate(e, h, s.lng || this.language || o.usedLng, s), g) {
|
7392
7415
|
const C = e.match(this.interpolator.nestingRegexp), p = C && C.length;
|
7393
|
-
|
7416
|
+
a < p && (s.nest = !1);
|
7394
7417
|
}
|
7395
7418
|
!s.lng && this.options.compatibilityAPI !== "v1" && o && o.res && (s.lng = this.language || o.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
7396
|
-
for (var C = arguments.length, p = new Array(C),
|
7397
|
-
p[
|
7398
|
-
return
|
7419
|
+
for (var C = arguments.length, p = new Array(C), w = 0; w < C; w++)
|
7420
|
+
p[w] = arguments[w];
|
7421
|
+
return l && l[0] === p[0] && !s.context ? (c.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : c.translate(...p, t);
|
7399
7422
|
}, s)), s.interpolation && this.interpolator.reset();
|
7400
7423
|
}
|
7401
7424
|
const r = s.postProcess || this.options.postProcess, d = typeof r == "string" ? [r] : r;
|
7402
|
-
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e =
|
7425
|
+
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = U1.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
|
7403
7426
|
i18nResolved: {
|
7404
7427
|
...o,
|
7405
7428
|
usedParams: this.getUsedParamsDetails(s)
|
@@ -7408,39 +7431,39 @@ class h1 extends d1 {
|
|
7408
7431
|
} : s, this)), e;
|
7409
7432
|
}
|
7410
7433
|
resolve(e) {
|
7411
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, o,
|
7434
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, o, l, c, r;
|
7412
7435
|
return typeof e == "string" && (e = [e]), e.forEach((d) => {
|
7413
7436
|
if (this.isValidLookup(s)) return;
|
7414
|
-
const g = this.extractFromKey(d, t),
|
7415
|
-
o =
|
7437
|
+
const g = this.extractFromKey(d, t), a = g.key;
|
7438
|
+
o = a;
|
7416
7439
|
let h = g.namespaces;
|
7417
7440
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
7418
|
-
const C = t.count !== void 0 && typeof t.count != "string", p = C && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(),
|
7419
|
-
h.forEach((
|
7420
|
-
this.isValidLookup(s) || (r =
|
7441
|
+
const C = t.count !== void 0 && typeof t.count != "string", p = C && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), w = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
7442
|
+
h.forEach((N) => {
|
7443
|
+
this.isValidLookup(s) || (r = N, !H1[`${v[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(r) && (H1[`${v[0]}-${N}`] = !0, this.logger.warn(`key "${o}" for languages "${v.join(", ")}" won't get resolved as namespace "${r}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((R) => {
|
7421
7444
|
if (this.isValidLookup(s)) return;
|
7422
7445
|
c = R;
|
7423
|
-
const x = [
|
7446
|
+
const x = [a];
|
7424
7447
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
7425
|
-
this.i18nFormat.addLookupKeys(x,
|
7448
|
+
this.i18nFormat.addLookupKeys(x, a, R, N, t);
|
7426
7449
|
else {
|
7427
|
-
let
|
7428
|
-
C && (
|
7450
|
+
let L;
|
7451
|
+
C && (L = this.pluralResolver.getSuffix(R, t.count, t));
|
7429
7452
|
const y = `${this.options.pluralSeparator}zero`, b = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
7430
|
-
if (C && (x.push(
|
7431
|
-
const M = `${
|
7432
|
-
x.push(M), C && (x.push(M +
|
7453
|
+
if (C && (x.push(a + L), t.ordinal && L.indexOf(b) === 0 && x.push(a + L.replace(b, this.options.pluralSeparator)), p && x.push(a + y)), w) {
|
7454
|
+
const M = `${a}${this.options.contextSeparator}${t.context}`;
|
7455
|
+
x.push(M), C && (x.push(M + L), t.ordinal && L.indexOf(b) === 0 && x.push(M + L.replace(b, this.options.pluralSeparator)), p && x.push(M + y));
|
7433
7456
|
}
|
7434
7457
|
}
|
7435
|
-
let
|
7436
|
-
for (;
|
7437
|
-
this.isValidLookup(s) || (
|
7458
|
+
let E;
|
7459
|
+
for (; E = x.pop(); )
|
7460
|
+
this.isValidLookup(s) || (l = E, s = this.getResource(R, N, E, t));
|
7438
7461
|
}));
|
7439
7462
|
});
|
7440
7463
|
}), {
|
7441
7464
|
res: s,
|
7442
7465
|
usedKey: o,
|
7443
|
-
exactUsedKey:
|
7466
|
+
exactUsedKey: l,
|
7444
7467
|
usedLng: c,
|
7445
7468
|
usedNS: r
|
7446
7469
|
};
|
@@ -7463,8 +7486,8 @@ class h1 extends d1 {
|
|
7463
7486
|
o = {
|
7464
7487
|
...o
|
7465
7488
|
};
|
7466
|
-
for (const
|
7467
|
-
delete o[
|
7489
|
+
for (const l of t)
|
7490
|
+
delete o[l];
|
7468
7491
|
}
|
7469
7492
|
return o;
|
7470
7493
|
}
|
@@ -7476,18 +7499,18 @@ class h1 extends d1 {
|
|
7476
7499
|
return !1;
|
7477
7500
|
}
|
7478
7501
|
}
|
7479
|
-
const
|
7480
|
-
class
|
7502
|
+
const w1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
7503
|
+
class V1 {
|
7481
7504
|
constructor(e) {
|
7482
7505
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = W.create("languageUtils");
|
7483
7506
|
}
|
7484
7507
|
getScriptPartFromCode(e) {
|
7485
|
-
if (e =
|
7508
|
+
if (e = d1(e), !e || e.indexOf("-") < 0) return null;
|
7486
7509
|
const t = e.split("-");
|
7487
7510
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
7488
7511
|
}
|
7489
7512
|
getLanguagePartFromCode(e) {
|
7490
|
-
if (e =
|
7513
|
+
if (e = d1(e), !e || e.indexOf("-") < 0) return e;
|
7491
7514
|
const t = e.split("-");
|
7492
7515
|
return this.formatLanguageCode(t[0]);
|
7493
7516
|
}
|
@@ -7495,7 +7518,7 @@ class E1 {
|
|
7495
7518
|
if (typeof e == "string" && e.indexOf("-") > -1) {
|
7496
7519
|
const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
7497
7520
|
let s = e.split("-");
|
7498
|
-
return this.options.lowerCaseLng ? s = s.map((o) => o.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] =
|
7521
|
+
return this.options.lowerCaseLng ? s = s.map((o) => o.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = w1(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = w1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = w1(s[2].toLowerCase()))), s.join("-");
|
7499
7522
|
}
|
7500
7523
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
7501
7524
|
}
|
@@ -7513,10 +7536,10 @@ class E1 {
|
|
7513
7536
|
if (t) return;
|
7514
7537
|
const o = this.getLanguagePartFromCode(s);
|
7515
7538
|
if (this.isSupportedCode(o)) return t = o;
|
7516
|
-
t = this.options.supportedLngs.find((
|
7517
|
-
if (
|
7518
|
-
if (!(
|
7519
|
-
return
|
7539
|
+
t = this.options.supportedLngs.find((l) => {
|
7540
|
+
if (l === o) return l;
|
7541
|
+
if (!(l.indexOf("-") < 0 && o.indexOf("-") < 0) && (l.indexOf("-") > 0 && o.indexOf("-") < 0 && l.substring(0, l.indexOf("-")) === o || l.indexOf(o) === 0 && o.length > 1))
|
7542
|
+
return l;
|
7520
7543
|
});
|
7521
7544
|
}), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
|
7522
7545
|
}
|
@@ -7528,15 +7551,15 @@ class E1 {
|
|
7528
7551
|
return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
|
7529
7552
|
}
|
7530
7553
|
toResolveHierarchy(e, t) {
|
7531
|
-
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), o = [],
|
7554
|
+
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), o = [], l = (c) => {
|
7532
7555
|
c && (this.isSupportedCode(c) ? o.push(c) : this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`));
|
7533
7556
|
};
|
7534
|
-
return typeof e == "string" && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" &&
|
7535
|
-
o.indexOf(c) < 0 &&
|
7557
|
+
return typeof e == "string" && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && l(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && l(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && l(this.getLanguagePartFromCode(e))) : typeof e == "string" && l(this.formatLanguageCode(e)), s.forEach((c) => {
|
7558
|
+
o.indexOf(c) < 0 && l(this.formatLanguageCode(c));
|
7536
7559
|
}), o;
|
7537
7560
|
}
|
7538
7561
|
}
|
7539
|
-
let
|
7562
|
+
let Zi = [{
|
7540
7563
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
7541
7564
|
nr: [1, 2],
|
7542
7565
|
fc: 1
|
@@ -7628,7 +7651,7 @@ let Bi = [{
|
|
7628
7651
|
lngs: ["he", "iw"],
|
7629
7652
|
nr: [1, 2, 20, 21],
|
7630
7653
|
fc: 22
|
7631
|
-
}],
|
7654
|
+
}], Di = {
|
7632
7655
|
1: (i) => +(i > 1),
|
7633
7656
|
2: (i) => +(i != 1),
|
7634
7657
|
3: (i) => 0,
|
@@ -7652,28 +7675,28 @@ let Bi = [{
|
|
7652
7675
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
7653
7676
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
7654
7677
|
};
|
7655
|
-
const
|
7678
|
+
const Ti = ["v1", "v2", "v3"], Gi = ["v4"], I1 = {
|
7656
7679
|
zero: 0,
|
7657
7680
|
one: 1,
|
7658
7681
|
two: 2,
|
7659
7682
|
few: 3,
|
7660
7683
|
many: 4,
|
7661
7684
|
other: 5
|
7662
|
-
},
|
7685
|
+
}, Ki = () => {
|
7663
7686
|
const i = {};
|
7664
|
-
return
|
7687
|
+
return Zi.forEach((e) => {
|
7665
7688
|
e.lngs.forEach((t) => {
|
7666
7689
|
i[t] = {
|
7667
7690
|
numbers: e.nr,
|
7668
|
-
plurals:
|
7691
|
+
plurals: Di[e.fc]
|
7669
7692
|
};
|
7670
7693
|
});
|
7671
7694
|
}), i;
|
7672
7695
|
};
|
7673
|
-
class
|
7696
|
+
class Pi {
|
7674
7697
|
constructor(e) {
|
7675
7698
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7676
|
-
this.languageUtils = e, this.options = t, this.logger = W.create("pluralResolver"), (!this.options.compatibilityJSON ||
|
7699
|
+
this.languageUtils = e, this.options = t, this.logger = W.create("pluralResolver"), (!this.options.compatibilityJSON || Gi.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Ki(), this.pluralRulesCache = {};
|
7677
7700
|
}
|
7678
7701
|
addRule(e, t) {
|
7679
7702
|
this.rules[e] = t;
|
@@ -7685,16 +7708,16 @@ class Ti {
|
|
7685
7708
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7686
7709
|
if (this.shouldUseIntlApi())
|
7687
7710
|
try {
|
7688
|
-
const s =
|
7711
|
+
const s = d1(e === "dev" ? "en" : e), o = t.ordinal ? "ordinal" : "cardinal", l = JSON.stringify({
|
7689
7712
|
cleanedCode: s,
|
7690
7713
|
type: o
|
7691
7714
|
});
|
7692
|
-
if (
|
7693
|
-
return this.pluralRulesCache[
|
7715
|
+
if (l in this.pluralRulesCache)
|
7716
|
+
return this.pluralRulesCache[l];
|
7694
7717
|
const c = new Intl.PluralRules(s, {
|
7695
7718
|
type: o
|
7696
7719
|
});
|
7697
|
-
return this.pluralRulesCache[
|
7720
|
+
return this.pluralRulesCache[l] = c, c;
|
7698
7721
|
} catch {
|
7699
7722
|
return;
|
7700
7723
|
}
|
@@ -7712,7 +7735,7 @@ class Ti {
|
|
7712
7735
|
getSuffixes(e) {
|
7713
7736
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7714
7737
|
const s = this.getRule(e, t);
|
7715
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((o,
|
7738
|
+
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((o, l) => I1[o] - I1[l]).map((o) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${o}`) : s.numbers.map((o) => this.getSuffix(e, o, t)) : [];
|
7716
7739
|
}
|
7717
7740
|
getSuffix(e, t) {
|
7718
7741
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
@@ -7723,18 +7746,18 @@ class Ti {
|
|
7723
7746
|
const s = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t));
|
7724
7747
|
let o = e.numbers[s];
|
7725
7748
|
this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 && (o === 2 ? o = "plural" : o === 1 && (o = ""));
|
7726
|
-
const
|
7727
|
-
return this.options.compatibilityJSON === "v1" ? o === 1 ? "" : typeof o == "number" ? `_plural_${o.toString()}` :
|
7749
|
+
const l = () => this.options.prepend && o.toString() ? this.options.prepend + o.toString() : o.toString();
|
7750
|
+
return this.options.compatibilityJSON === "v1" ? o === 1 ? "" : typeof o == "number" ? `_plural_${o.toString()}` : l() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? l() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
7728
7751
|
}
|
7729
7752
|
shouldUseIntlApi() {
|
7730
|
-
return !
|
7753
|
+
return !Ti.includes(this.options.compatibilityJSON);
|
7731
7754
|
}
|
7732
7755
|
}
|
7733
|
-
const
|
7734
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0,
|
7735
|
-
return !
|
7736
|
-
},
|
7737
|
-
class
|
7756
|
+
const S1 = function(i, e, t) {
|
7757
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l = Ii(i, e, t);
|
7758
|
+
return !l && o && typeof t == "string" && (l = k1(i, t, s), l === void 0 && (l = k1(e, t, s))), l;
|
7759
|
+
}, m1 = (i) => i.replace(/\$/g, "$$$$");
|
7760
|
+
class Fi {
|
7738
7761
|
constructor() {
|
7739
7762
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
7740
7763
|
this.logger = W.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
@@ -7748,22 +7771,22 @@ class Gi {
|
|
7748
7771
|
escape: t,
|
7749
7772
|
escapeValue: s,
|
7750
7773
|
useRawValueToEscape: o,
|
7751
|
-
prefix:
|
7774
|
+
prefix: l,
|
7752
7775
|
prefixEscaped: c,
|
7753
7776
|
suffix: r,
|
7754
7777
|
suffixEscaped: d,
|
7755
7778
|
formatSeparator: g,
|
7756
|
-
unescapeSuffix:
|
7779
|
+
unescapeSuffix: a,
|
7757
7780
|
unescapePrefix: h,
|
7758
7781
|
nestingPrefix: C,
|
7759
7782
|
nestingPrefixEscaped: p,
|
7760
|
-
nestingSuffix:
|
7761
|
-
nestingSuffixEscaped:
|
7762
|
-
nestingOptionsSeparator:
|
7783
|
+
nestingSuffix: w,
|
7784
|
+
nestingSuffixEscaped: v,
|
7785
|
+
nestingOptionsSeparator: N,
|
7763
7786
|
maxReplaces: R,
|
7764
7787
|
alwaysFormat: x
|
7765
7788
|
} = e.interpolation;
|
7766
|
-
this.escape = t !== void 0 ? t :
|
7789
|
+
this.escape = t !== void 0 ? t : Oi, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = l ? $(l) : c || "{{", this.suffix = r ? $(r) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = C ? $(C) : p || $("$t("), this.nestingSuffix = w ? $(w) : v || $(")"), this.nestingOptionsSeparator = N || ",", this.maxReplaces = R || 1e3, this.alwaysFormat = x !== void 0 ? x : !1, this.resetRegExp();
|
7767
7790
|
}
|
7768
7791
|
reset() {
|
7769
7792
|
this.options && this.init(this.options);
|
@@ -7773,69 +7796,69 @@ class Gi {
|
|
7773
7796
|
this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
|
7774
7797
|
}
|
7775
7798
|
interpolate(e, t, s, o) {
|
7776
|
-
let
|
7799
|
+
let l, c, r;
|
7777
7800
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
|
7778
7801
|
if (p.indexOf(this.formatSeparator) < 0) {
|
7779
|
-
const R =
|
7802
|
+
const R = S1(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
7780
7803
|
return this.alwaysFormat ? this.format(R, void 0, s, {
|
7781
7804
|
...o,
|
7782
7805
|
...t,
|
7783
7806
|
interpolationkey: p
|
7784
7807
|
}) : R;
|
7785
7808
|
}
|
7786
|
-
const
|
7787
|
-
return this.format(
|
7809
|
+
const w = p.split(this.formatSeparator), v = w.shift().trim(), N = w.join(this.formatSeparator).trim();
|
7810
|
+
return this.format(S1(t, d, v, this.options.keySeparator, this.options.ignoreJSONStructure), N, s, {
|
7788
7811
|
...o,
|
7789
7812
|
...t,
|
7790
|
-
interpolationkey:
|
7813
|
+
interpolationkey: v
|
7791
7814
|
});
|
7792
7815
|
};
|
7793
7816
|
this.resetRegExp();
|
7794
|
-
const
|
7817
|
+
const a = o && o.missingInterpolationHandler || this.options.missingInterpolationHandler, h = o && o.interpolation && o.interpolation.skipOnVariables !== void 0 ? o.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
7795
7818
|
return [{
|
7796
7819
|
regex: this.regexpUnescape,
|
7797
|
-
safeValue: (p) =>
|
7820
|
+
safeValue: (p) => m1(p)
|
7798
7821
|
}, {
|
7799
7822
|
regex: this.regexp,
|
7800
|
-
safeValue: (p) => this.escapeValue ?
|
7823
|
+
safeValue: (p) => this.escapeValue ? m1(this.escape(p)) : m1(p)
|
7801
7824
|
}].forEach((p) => {
|
7802
|
-
for (r = 0;
|
7803
|
-
const
|
7804
|
-
if (c = g(
|
7805
|
-
if (typeof
|
7806
|
-
const
|
7807
|
-
c = typeof
|
7808
|
-
} else if (o && Object.prototype.hasOwnProperty.call(o,
|
7825
|
+
for (r = 0; l = p.regex.exec(e); ) {
|
7826
|
+
const w = l[1].trim();
|
7827
|
+
if (c = g(w), c === void 0)
|
7828
|
+
if (typeof a == "function") {
|
7829
|
+
const N = a(e, l, o);
|
7830
|
+
c = typeof N == "string" ? N : "";
|
7831
|
+
} else if (o && Object.prototype.hasOwnProperty.call(o, w))
|
7809
7832
|
c = "";
|
7810
7833
|
else if (h) {
|
7811
|
-
c =
|
7834
|
+
c = l[0];
|
7812
7835
|
continue;
|
7813
7836
|
} else
|
7814
|
-
this.logger.warn(`missed to pass in variable ${
|
7815
|
-
else typeof c != "string" && !this.useRawValueToEscape && (c =
|
7816
|
-
const
|
7817
|
-
if (e = e.replace(
|
7837
|
+
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), c = "";
|
7838
|
+
else typeof c != "string" && !this.useRawValueToEscape && (c = M1(c));
|
7839
|
+
const v = p.safeValue(c);
|
7840
|
+
if (e = e.replace(l[0], v), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= l[0].length) : p.regex.lastIndex = 0, r++, r >= this.maxReplaces)
|
7818
7841
|
break;
|
7819
7842
|
}
|
7820
7843
|
}), e;
|
7821
7844
|
}
|
7822
7845
|
nest(e, t) {
|
7823
|
-
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o,
|
7846
|
+
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o, l, c;
|
7824
7847
|
const r = (d, g) => {
|
7825
|
-
const
|
7826
|
-
if (d.indexOf(
|
7827
|
-
const h = d.split(new RegExp(`${
|
7848
|
+
const a = this.nestingOptionsSeparator;
|
7849
|
+
if (d.indexOf(a) < 0) return d;
|
7850
|
+
const h = d.split(new RegExp(`${a}[ ]*{`));
|
7828
7851
|
let C = `{${h[1]}`;
|
7829
7852
|
d = h[0], C = this.interpolate(C, c);
|
7830
|
-
const p = C.match(/'/g),
|
7831
|
-
(p && p.length % 2 === 0 && !
|
7853
|
+
const p = C.match(/'/g), w = C.match(/"/g);
|
7854
|
+
(p && p.length % 2 === 0 && !w || w.length % 2 !== 0) && (C = C.replace(/'/g, '"'));
|
7832
7855
|
try {
|
7833
7856
|
c = JSON.parse(C), g && (c = {
|
7834
7857
|
...g,
|
7835
7858
|
...c
|
7836
7859
|
});
|
7837
|
-
} catch (
|
7838
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${d}`,
|
7860
|
+
} catch (v) {
|
7861
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, v), `${d}${a}${C}`;
|
7839
7862
|
}
|
7840
7863
|
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, d;
|
7841
7864
|
};
|
@@ -7846,19 +7869,19 @@ class Gi {
|
|
7846
7869
|
}, c = c.replace && typeof c.replace != "string" ? c.replace : c, c.applyPostProcessor = !1, delete c.defaultValue;
|
7847
7870
|
let g = !1;
|
7848
7871
|
if (o[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(o[1])) {
|
7849
|
-
const
|
7850
|
-
o[1] =
|
7872
|
+
const a = o[1].split(this.formatSeparator).map((h) => h.trim());
|
7873
|
+
o[1] = a.shift(), d = a, g = !0;
|
7851
7874
|
}
|
7852
|
-
if (
|
7853
|
-
typeof
|
7875
|
+
if (l = t(r.call(this, o[1].trim(), c), c), l && o[0] === e && typeof l != "string") return l;
|
7876
|
+
typeof l != "string" && (l = M1(l)), l || (this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`), l = ""), g && (l = d.reduce((a, h) => this.format(a, h, s.lng, {
|
7854
7877
|
...s,
|
7855
7878
|
interpolationkey: o[1].trim()
|
7856
|
-
}),
|
7879
|
+
}), l.trim())), e = e.replace(o[0], l), this.regexp.lastIndex = 0;
|
7857
7880
|
}
|
7858
7881
|
return e;
|
7859
7882
|
}
|
7860
7883
|
}
|
7861
|
-
const
|
7884
|
+
const $i = (i) => {
|
7862
7885
|
let e = i.toLowerCase().trim();
|
7863
7886
|
const t = {};
|
7864
7887
|
if (i.indexOf("(") > -1) {
|
@@ -7867,8 +7890,8 @@ const Ki = (i) => {
|
|
7867
7890
|
const o = s[1].substring(0, s[1].length - 1);
|
7868
7891
|
e === "currency" && o.indexOf(":") < 0 ? t.currency || (t.currency = o.trim()) : e === "relativetime" && o.indexOf(":") < 0 ? t.range || (t.range = o.trim()) : o.split(";").forEach((c) => {
|
7869
7892
|
if (c) {
|
7870
|
-
const [r, ...d] = c.split(":"), g = d.join(":").trim().replace(/^'+|'+$/g, ""),
|
7871
|
-
t[
|
7893
|
+
const [r, ...d] = c.split(":"), g = d.join(":").trim().replace(/^'+|'+$/g, ""), a = r.trim();
|
7894
|
+
t[a] || (t[a] = g), g === "false" && (t[a] = !1), g === "true" && (t[a] = !0), isNaN(g) || (t[a] = parseInt(g, 10));
|
7872
7895
|
}
|
7873
7896
|
});
|
7874
7897
|
}
|
@@ -7876,53 +7899,53 @@ const Ki = (i) => {
|
|
7876
7899
|
formatName: e,
|
7877
7900
|
formatOptions: t
|
7878
7901
|
};
|
7879
|
-
},
|
7902
|
+
}, Y = (i) => {
|
7880
7903
|
const e = {};
|
7881
7904
|
return (t, s, o) => {
|
7882
|
-
let
|
7883
|
-
o && o.interpolationkey && o.formatParams && o.formatParams[o.interpolationkey] && o[o.interpolationkey] && (
|
7884
|
-
...
|
7905
|
+
let l = o;
|
7906
|
+
o && o.interpolationkey && o.formatParams && o.formatParams[o.interpolationkey] && o[o.interpolationkey] && (l = {
|
7907
|
+
...l,
|
7885
7908
|
[o.interpolationkey]: void 0
|
7886
7909
|
});
|
7887
|
-
const c = s + JSON.stringify(
|
7910
|
+
const c = s + JSON.stringify(l);
|
7888
7911
|
let r = e[c];
|
7889
|
-
return r || (r = i(
|
7912
|
+
return r || (r = i(d1(s), o), e[c] = r), r(t);
|
7890
7913
|
};
|
7891
7914
|
};
|
7892
|
-
class
|
7915
|
+
class Yi {
|
7893
7916
|
constructor() {
|
7894
7917
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
7895
7918
|
this.logger = W.create("formatter"), this.options = e, this.formats = {
|
7896
|
-
number:
|
7919
|
+
number: Y((t, s) => {
|
7897
7920
|
const o = new Intl.NumberFormat(t, {
|
7898
7921
|
...s
|
7899
7922
|
});
|
7900
|
-
return (
|
7923
|
+
return (l) => o.format(l);
|
7901
7924
|
}),
|
7902
|
-
currency:
|
7925
|
+
currency: Y((t, s) => {
|
7903
7926
|
const o = new Intl.NumberFormat(t, {
|
7904
7927
|
...s,
|
7905
7928
|
style: "currency"
|
7906
7929
|
});
|
7907
|
-
return (
|
7930
|
+
return (l) => o.format(l);
|
7908
7931
|
}),
|
7909
|
-
datetime:
|
7932
|
+
datetime: Y((t, s) => {
|
7910
7933
|
const o = new Intl.DateTimeFormat(t, {
|
7911
7934
|
...s
|
7912
7935
|
});
|
7913
|
-
return (
|
7936
|
+
return (l) => o.format(l);
|
7914
7937
|
}),
|
7915
|
-
relativetime:
|
7938
|
+
relativetime: Y((t, s) => {
|
7916
7939
|
const o = new Intl.RelativeTimeFormat(t, {
|
7917
7940
|
...s
|
7918
7941
|
});
|
7919
|
-
return (
|
7942
|
+
return (l) => o.format(l, s.range || "day");
|
7920
7943
|
}),
|
7921
|
-
list:
|
7944
|
+
list: Y((t, s) => {
|
7922
7945
|
const o = new Intl.ListFormat(t, {
|
7923
7946
|
...s
|
7924
7947
|
});
|
7925
|
-
return (
|
7948
|
+
return (l) => o.format(l);
|
7926
7949
|
})
|
7927
7950
|
}, this.init(e);
|
7928
7951
|
}
|
@@ -7936,26 +7959,26 @@ class Pi {
|
|
7936
7959
|
this.formats[e.toLowerCase().trim()] = t;
|
7937
7960
|
}
|
7938
7961
|
addCached(e, t) {
|
7939
|
-
this.formats[e.toLowerCase().trim()] =
|
7962
|
+
this.formats[e.toLowerCase().trim()] = Y(t);
|
7940
7963
|
}
|
7941
7964
|
format(e, t, s) {
|
7942
7965
|
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
7943
|
-
const
|
7944
|
-
if (
|
7945
|
-
const r =
|
7946
|
-
|
7966
|
+
const l = t.split(this.formatSeparator);
|
7967
|
+
if (l.length > 1 && l[0].indexOf("(") > 1 && l[0].indexOf(")") < 0 && l.find((r) => r.indexOf(")") > -1)) {
|
7968
|
+
const r = l.findIndex((d) => d.indexOf(")") > -1);
|
7969
|
+
l[0] = [l[0], ...l.splice(1, r)].join(this.formatSeparator);
|
7947
7970
|
}
|
7948
|
-
return
|
7971
|
+
return l.reduce((r, d) => {
|
7949
7972
|
const {
|
7950
7973
|
formatName: g,
|
7951
|
-
formatOptions:
|
7952
|
-
} =
|
7974
|
+
formatOptions: a
|
7975
|
+
} = $i(d);
|
7953
7976
|
if (this.formats[g]) {
|
7954
7977
|
let h = r;
|
7955
7978
|
try {
|
7956
7979
|
const C = o && o.formatParams && o.formatParams[o.interpolationkey] || {}, p = C.locale || C.lng || o.locale || o.lng || s;
|
7957
7980
|
h = this.formats[g](r, p, {
|
7958
|
-
...
|
7981
|
+
...a,
|
7959
7982
|
...o,
|
7960
7983
|
...C
|
7961
7984
|
});
|
@@ -7969,53 +7992,53 @@ class Pi {
|
|
7969
7992
|
}, e);
|
7970
7993
|
}
|
7971
7994
|
}
|
7972
|
-
const
|
7995
|
+
const Ui = (i, e) => {
|
7973
7996
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
7974
7997
|
};
|
7975
|
-
class
|
7998
|
+
class zi extends C1 {
|
7976
7999
|
constructor(e, t, s) {
|
7977
8000
|
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
7978
8001
|
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = o, this.logger = W.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = o.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5, this.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, o.backend, o);
|
7979
8002
|
}
|
7980
8003
|
queueLoad(e, t, s, o) {
|
7981
|
-
const
|
8004
|
+
const l = {}, c = {}, r = {}, d = {};
|
7982
8005
|
return e.forEach((g) => {
|
7983
|
-
let
|
8006
|
+
let a = !0;
|
7984
8007
|
t.forEach((h) => {
|
7985
8008
|
const C = `${g}|${h}`;
|
7986
|
-
!s.reload && this.store.hasResourceBundle(g, h) ? this.state[C] = 2 : this.state[C] < 0 || (this.state[C] === 1 ? c[C] === void 0 && (c[C] = !0) : (this.state[C] = 1,
|
7987
|
-
}),
|
7988
|
-
}), (Object.keys(
|
8009
|
+
!s.reload && this.store.hasResourceBundle(g, h) ? this.state[C] = 2 : this.state[C] < 0 || (this.state[C] === 1 ? c[C] === void 0 && (c[C] = !0) : (this.state[C] = 1, a = !1, c[C] === void 0 && (c[C] = !0), l[C] === void 0 && (l[C] = !0), d[h] === void 0 && (d[h] = !0)));
|
8010
|
+
}), a || (r[g] = !0);
|
8011
|
+
}), (Object.keys(l).length || Object.keys(c).length) && this.queue.push({
|
7989
8012
|
pending: c,
|
7990
8013
|
pendingCount: Object.keys(c).length,
|
7991
8014
|
loaded: {},
|
7992
8015
|
errors: [],
|
7993
8016
|
callback: o
|
7994
8017
|
}), {
|
7995
|
-
toLoad: Object.keys(
|
8018
|
+
toLoad: Object.keys(l),
|
7996
8019
|
pending: Object.keys(c),
|
7997
8020
|
toLoadLanguages: Object.keys(r),
|
7998
8021
|
toLoadNamespaces: Object.keys(d)
|
7999
8022
|
};
|
8000
8023
|
}
|
8001
8024
|
loaded(e, t, s) {
|
8002
|
-
const o = e.split("|"),
|
8003
|
-
t && this.emit("failedLoading",
|
8025
|
+
const o = e.split("|"), l = o[0], c = o[1];
|
8026
|
+
t && this.emit("failedLoading", l, c, t), !t && s && this.store.addResourceBundle(l, c, s, void 0, void 0, {
|
8004
8027
|
skipCopy: !0
|
8005
8028
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
8006
8029
|
const r = {};
|
8007
8030
|
this.queue.forEach((d) => {
|
8008
|
-
|
8031
|
+
Vi(d.loaded, [l], c), Ui(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
|
8009
8032
|
r[g] || (r[g] = {});
|
8010
|
-
const
|
8011
|
-
|
8033
|
+
const a = d.loaded[g];
|
8034
|
+
a.length && a.forEach((h) => {
|
8012
8035
|
r[g][h] === void 0 && (r[g][h] = !0);
|
8013
8036
|
});
|
8014
8037
|
}), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
|
8015
8038
|
}), this.emit("loaded", r), this.queue = this.queue.filter((d) => !d.done);
|
8016
8039
|
}
|
8017
8040
|
read(e, t, s) {
|
8018
|
-
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0,
|
8041
|
+
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, c = arguments.length > 5 ? arguments[5] : void 0;
|
8019
8042
|
if (!e.length) return c(null, {});
|
8020
8043
|
if (this.readingCalls >= this.maxParallelReads) {
|
8021
8044
|
this.waitingReads.push({
|
@@ -8023,29 +8046,29 @@ class $i extends d1 {
|
|
8023
8046
|
ns: t,
|
8024
8047
|
fcName: s,
|
8025
8048
|
tried: o,
|
8026
|
-
wait:
|
8049
|
+
wait: l,
|
8027
8050
|
callback: c
|
8028
8051
|
});
|
8029
8052
|
return;
|
8030
8053
|
}
|
8031
8054
|
this.readingCalls++;
|
8032
|
-
const r = (g,
|
8055
|
+
const r = (g, a) => {
|
8033
8056
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
8034
8057
|
const h = this.waitingReads.shift();
|
8035
8058
|
this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
|
8036
8059
|
}
|
8037
|
-
if (g &&
|
8060
|
+
if (g && a && o < this.maxRetries) {
|
8038
8061
|
setTimeout(() => {
|
8039
|
-
this.read.call(this, e, t, s, o + 1,
|
8040
|
-
},
|
8062
|
+
this.read.call(this, e, t, s, o + 1, l * 2, c);
|
8063
|
+
}, l);
|
8041
8064
|
return;
|
8042
8065
|
}
|
8043
|
-
c(g,
|
8066
|
+
c(g, a);
|
8044
8067
|
}, d = this.backend[s].bind(this.backend);
|
8045
8068
|
if (d.length === 2) {
|
8046
8069
|
try {
|
8047
8070
|
const g = d(e, t);
|
8048
|
-
g && typeof g.then == "function" ? g.then((
|
8071
|
+
g && typeof g.then == "function" ? g.then((a) => r(null, a)).catch(r) : r(null, g);
|
8049
8072
|
} catch (g) {
|
8050
8073
|
r(g);
|
8051
8074
|
}
|
@@ -8058,10 +8081,10 @@ class $i extends d1 {
|
|
8058
8081
|
if (!this.backend)
|
8059
8082
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), o && o();
|
8060
8083
|
typeof e == "string" && (e = this.languageUtils.toResolveHierarchy(e)), typeof t == "string" && (t = [t]);
|
8061
|
-
const
|
8062
|
-
if (!
|
8063
|
-
return
|
8064
|
-
|
8084
|
+
const l = this.queueLoad(e, t, s, o);
|
8085
|
+
if (!l.toLoad.length)
|
8086
|
+
return l.pending.length || o(), null;
|
8087
|
+
l.toLoad.forEach((c) => {
|
8065
8088
|
this.loadOne(c);
|
8066
8089
|
});
|
8067
8090
|
}
|
@@ -8075,12 +8098,12 @@ class $i extends d1 {
|
|
8075
8098
|
}
|
8076
8099
|
loadOne(e) {
|
8077
8100
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
8078
|
-
const s = e.split("|"), o = s[0],
|
8079
|
-
this.read(o,
|
8080
|
-
c && this.logger.warn(`${t}loading namespace ${
|
8101
|
+
const s = e.split("|"), o = s[0], l = s[1];
|
8102
|
+
this.read(o, l, "read", void 0, void 0, (c, r) => {
|
8103
|
+
c && this.logger.warn(`${t}loading namespace ${l} for language ${o} failed`, c), !c && r && this.logger.log(`${t}loaded namespace ${l} for language ${o}`, r), this.loaded(e, c, r);
|
8081
8104
|
});
|
8082
8105
|
}
|
8083
|
-
saveMissing(e, t, s, o,
|
8106
|
+
saveMissing(e, t, s, o, l) {
|
8084
8107
|
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, r = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
8085
8108
|
};
|
8086
8109
|
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
|
@@ -8091,14 +8114,14 @@ class $i extends d1 {
|
|
8091
8114
|
if (this.backend && this.backend.create) {
|
8092
8115
|
const d = {
|
8093
8116
|
...c,
|
8094
|
-
isUpdate:
|
8117
|
+
isUpdate: l
|
8095
8118
|
}, g = this.backend.create.bind(this.backend);
|
8096
8119
|
if (g.length < 6)
|
8097
8120
|
try {
|
8098
|
-
let
|
8099
|
-
g.length === 5 ?
|
8100
|
-
} catch (
|
8101
|
-
r(
|
8121
|
+
let a;
|
8122
|
+
g.length === 5 ? a = g(e, t, s, o, d) : a = g(e, t, s, o), a && typeof a.then == "function" ? a.then((h) => r(null, h)).catch(r) : r(null, a);
|
8123
|
+
} catch (a) {
|
8124
|
+
r(a);
|
8102
8125
|
}
|
8103
8126
|
else
|
8104
8127
|
g(e, t, s, o, r, d);
|
@@ -8107,7 +8130,7 @@ class $i extends d1 {
|
|
8107
8130
|
}
|
8108
8131
|
}
|
8109
8132
|
}
|
8110
|
-
const
|
8133
|
+
const O1 = () => ({
|
8111
8134
|
debug: !1,
|
8112
8135
|
initImmediate: !0,
|
8113
8136
|
ns: ["translation"],
|
@@ -8163,18 +8186,18 @@ const V1 = () => ({
|
|
8163
8186
|
maxReplaces: 1e3,
|
8164
8187
|
skipOnVariables: !0
|
8165
8188
|
}
|
8166
|
-
}),
|
8167
|
-
},
|
8189
|
+
}), A1 = (i) => (typeof i.ns == "string" && (i.ns = [i.ns]), typeof i.fallbackLng == "string" && (i.fallbackLng = [i.fallbackLng]), typeof i.fallbackNS == "string" && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), l1 = () => {
|
8190
|
+
}, Ji = (i) => {
|
8168
8191
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
8169
8192
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
8170
8193
|
});
|
8171
8194
|
};
|
8172
|
-
class
|
8195
|
+
class X extends C1 {
|
8173
8196
|
constructor() {
|
8174
8197
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
8175
|
-
if (super(), this.options =
|
8198
|
+
if (super(), this.options = A1(e), this.services = {}, this.logger = W, this.modules = {
|
8176
8199
|
external: []
|
8177
|
-
},
|
8200
|
+
}, Ji(this), t && !this.isInitialized && !e.isClone) {
|
8178
8201
|
if (!this.options.initImmediate)
|
8179
8202
|
return this.init(e, t), this;
|
8180
8203
|
setTimeout(() => {
|
@@ -8186,90 +8209,90 @@ class e1 extends d1 {
|
|
8186
8209
|
var e = this;
|
8187
8210
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
|
8188
8211
|
this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (typeof t.ns == "string" ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
|
8189
|
-
const o =
|
8212
|
+
const o = O1();
|
8190
8213
|
this.options = {
|
8191
8214
|
...o,
|
8192
8215
|
...this.options,
|
8193
|
-
...
|
8216
|
+
...A1(t)
|
8194
8217
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
8195
8218
|
...o.interpolation,
|
8196
8219
|
...this.options.interpolation
|
8197
8220
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
8198
|
-
const
|
8221
|
+
const l = (a) => a ? typeof a == "function" ? new a() : a : null;
|
8199
8222
|
if (!this.options.isClone) {
|
8200
|
-
this.modules.logger ? W.init(
|
8201
|
-
let
|
8202
|
-
this.modules.formatter ?
|
8203
|
-
const h = new
|
8204
|
-
this.store = new
|
8223
|
+
this.modules.logger ? W.init(l(this.modules.logger), this.options) : W.init(null, this.options);
|
8224
|
+
let a;
|
8225
|
+
this.modules.formatter ? a = this.modules.formatter : typeof Intl < "u" && (a = Yi);
|
8226
|
+
const h = new V1(this.options);
|
8227
|
+
this.store = new _1(this.options.resources, this.options);
|
8205
8228
|
const C = this.services;
|
8206
|
-
C.logger = W, C.resourceStore = this.store, C.languageUtils = h, C.pluralResolver = new
|
8229
|
+
C.logger = W, C.resourceStore = this.store, C.languageUtils = h, C.pluralResolver = new Pi(h, {
|
8207
8230
|
prepend: this.options.pluralSeparator,
|
8208
8231
|
compatibilityJSON: this.options.compatibilityJSON,
|
8209
8232
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
8210
|
-
}),
|
8233
|
+
}), a && (!this.options.interpolation.format || this.options.interpolation.format === o.interpolation.format) && (C.formatter = l(a), C.formatter.init(C, this.options), this.options.interpolation.format = C.formatter.format.bind(C.formatter)), C.interpolator = new Fi(this.options), C.utils = {
|
8211
8234
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
8212
|
-
}, C.backendConnector = new
|
8213
|
-
for (var
|
8214
|
-
N
|
8215
|
-
e.emit(p, ...
|
8216
|
-
}), this.modules.languageDetector && (C.languageDetector =
|
8217
|
-
for (var
|
8218
|
-
N
|
8219
|
-
e.emit(p, ...
|
8235
|
+
}, C.backendConnector = new zi(l(this.modules.backend), C.resourceStore, C, this.options), C.backendConnector.on("*", function(p) {
|
8236
|
+
for (var w = arguments.length, v = new Array(w > 1 ? w - 1 : 0), N = 1; N < w; N++)
|
8237
|
+
v[N - 1] = arguments[N];
|
8238
|
+
e.emit(p, ...v);
|
8239
|
+
}), this.modules.languageDetector && (C.languageDetector = l(this.modules.languageDetector), C.languageDetector.init && C.languageDetector.init(C, this.options.detection, this.options)), this.modules.i18nFormat && (C.i18nFormat = l(this.modules.i18nFormat), C.i18nFormat.init && C.i18nFormat.init(this)), this.translator = new g1(this.services, this.options), this.translator.on("*", function(p) {
|
8240
|
+
for (var w = arguments.length, v = new Array(w > 1 ? w - 1 : 0), N = 1; N < w; N++)
|
8241
|
+
v[N - 1] = arguments[N];
|
8242
|
+
e.emit(p, ...v);
|
8220
8243
|
}), this.modules.external.forEach((p) => {
|
8221
8244
|
p.init && p.init(this);
|
8222
8245
|
});
|
8223
8246
|
}
|
8224
|
-
if (this.format = this.options.interpolation.format, s || (s =
|
8225
|
-
const
|
8226
|
-
|
8247
|
+
if (this.format = this.options.interpolation.format, s || (s = l1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
8248
|
+
const a = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
8249
|
+
a.length > 0 && a[0] !== "dev" && (this.options.lng = a[0]);
|
8227
8250
|
}
|
8228
|
-
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((
|
8229
|
-
this[
|
8230
|
-
return e.store[
|
8251
|
+
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((a) => {
|
8252
|
+
this[a] = function() {
|
8253
|
+
return e.store[a](...arguments);
|
8231
8254
|
};
|
8232
|
-
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((
|
8233
|
-
this[
|
8234
|
-
return e.store[
|
8255
|
+
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((a) => {
|
8256
|
+
this[a] = function() {
|
8257
|
+
return e.store[a](...arguments), e;
|
8235
8258
|
};
|
8236
8259
|
});
|
8237
|
-
const d =
|
8238
|
-
const
|
8260
|
+
const d = Q(), g = () => {
|
8261
|
+
const a = (h, C) => {
|
8239
8262
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(C), s(h, C);
|
8240
8263
|
};
|
8241
|
-
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return
|
8242
|
-
this.changeLanguage(this.options.lng,
|
8264
|
+
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return a(null, this.t.bind(this));
|
8265
|
+
this.changeLanguage(this.options.lng, a);
|
8243
8266
|
};
|
8244
8267
|
return this.options.resources || !this.options.initImmediate ? g() : setTimeout(g, 0), d;
|
8245
8268
|
}
|
8246
8269
|
loadResources(e) {
|
8247
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
8270
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : l1;
|
8248
8271
|
const o = typeof e == "string" ? e : this.language;
|
8249
8272
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
8250
8273
|
if (o && o.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
8251
|
-
const
|
8274
|
+
const l = [], c = (r) => {
|
8252
8275
|
if (!r || r === "cimode") return;
|
8253
8276
|
this.services.languageUtils.toResolveHierarchy(r).forEach((g) => {
|
8254
|
-
g !== "cimode" &&
|
8277
|
+
g !== "cimode" && l.indexOf(g) < 0 && l.push(g);
|
8255
8278
|
});
|
8256
8279
|
};
|
8257
|
-
o ? c(o) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => c(d)), this.options.preload && this.options.preload.forEach((r) => c(r)), this.services.backendConnector.load(
|
8280
|
+
o ? c(o) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => c(d)), this.options.preload && this.options.preload.forEach((r) => c(r)), this.services.backendConnector.load(l, this.options.ns, (r) => {
|
8258
8281
|
!r && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(r);
|
8259
8282
|
});
|
8260
8283
|
} else
|
8261
8284
|
s(null);
|
8262
8285
|
}
|
8263
8286
|
reloadResources(e, t, s) {
|
8264
|
-
const o =
|
8265
|
-
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s =
|
8266
|
-
o.resolve(), s(
|
8287
|
+
const o = Q();
|
8288
|
+
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = l1), this.services.backendConnector.reload(e, t, (l) => {
|
8289
|
+
o.resolve(), s(l);
|
8267
8290
|
}), o;
|
8268
8291
|
}
|
8269
8292
|
use(e) {
|
8270
8293
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
8271
8294
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
8272
|
-
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" &&
|
8295
|
+
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" && U1.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
8273
8296
|
}
|
8274
8297
|
setResolvedLanguage(e) {
|
8275
8298
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
|
@@ -8284,12 +8307,12 @@ class e1 extends d1 {
|
|
8284
8307
|
changeLanguage(e, t) {
|
8285
8308
|
var s = this;
|
8286
8309
|
this.isLanguageChangingTo = e;
|
8287
|
-
const o =
|
8310
|
+
const o = Q();
|
8288
8311
|
this.emit("languageChanging", e);
|
8289
|
-
const
|
8312
|
+
const l = (d) => {
|
8290
8313
|
this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
|
8291
8314
|
}, c = (d, g) => {
|
8292
|
-
g ? (
|
8315
|
+
g ? (l(g), this.translator.changeLanguage(g), this.isLanguageChangingTo = void 0, this.emit("languageChanged", g), this.logger.log("languageChanged", g)) : this.isLanguageChangingTo = void 0, o.resolve(function() {
|
8293
8316
|
return s.t(...arguments);
|
8294
8317
|
}), t && t(d, function() {
|
8295
8318
|
return s.t(...arguments);
|
@@ -8297,30 +8320,30 @@ class e1 extends d1 {
|
|
8297
8320
|
}, r = (d) => {
|
8298
8321
|
!e && !d && this.services.languageDetector && (d = []);
|
8299
8322
|
const g = typeof d == "string" ? d : this.services.languageUtils.getBestMatchFromCodes(d);
|
8300
|
-
g && (this.language ||
|
8301
|
-
c(
|
8323
|
+
g && (this.language || l(g), this.translator.language || this.translator.changeLanguage(g), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(g)), this.loadResources(g, (a) => {
|
8324
|
+
c(a, g);
|
8302
8325
|
});
|
8303
8326
|
};
|
8304
8327
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? r(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(r) : this.services.languageDetector.detect(r) : r(e), o;
|
8305
8328
|
}
|
8306
8329
|
getFixedT(e, t, s) {
|
8307
8330
|
var o = this;
|
8308
|
-
const
|
8331
|
+
const l = function(c, r) {
|
8309
8332
|
let d;
|
8310
8333
|
if (typeof r != "object") {
|
8311
|
-
for (var g = arguments.length,
|
8312
|
-
|
8313
|
-
d = o.options.overloadTranslationOptionHandler([c, r].concat(
|
8334
|
+
for (var g = arguments.length, a = new Array(g > 2 ? g - 2 : 0), h = 2; h < g; h++)
|
8335
|
+
a[h - 2] = arguments[h];
|
8336
|
+
d = o.options.overloadTranslationOptionHandler([c, r].concat(a));
|
8314
8337
|
} else
|
8315
8338
|
d = {
|
8316
8339
|
...r
|
8317
8340
|
};
|
8318
|
-
d.lng = d.lng ||
|
8341
|
+
d.lng = d.lng || l.lng, d.lngs = d.lngs || l.lngs, d.ns = d.ns || l.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || s || l.keyPrefix);
|
8319
8342
|
const C = o.options.keySeparator || ".";
|
8320
8343
|
let p;
|
8321
|
-
return d.keyPrefix && Array.isArray(c) ? p = c.map((
|
8344
|
+
return d.keyPrefix && Array.isArray(c) ? p = c.map((w) => `${d.keyPrefix}${C}${w}`) : p = d.keyPrefix ? `${d.keyPrefix}${C}${c}` : c, o.t(p, d);
|
8322
8345
|
};
|
8323
|
-
return typeof e == "string" ?
|
8346
|
+
return typeof e == "string" ? l.lng = e : l.lngs = e, l.ns = t, l.keyPrefix = s, l;
|
8324
8347
|
}
|
8325
8348
|
t() {
|
8326
8349
|
return this.translator && this.translator.translate(...arguments);
|
@@ -8337,7 +8360,7 @@ class e1 extends d1 {
|
|
8337
8360
|
return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
|
8338
8361
|
if (!this.languages || !this.languages.length)
|
8339
8362
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
8340
|
-
const s = t.lng || this.resolvedLanguage || this.languages[0], o = this.options ? this.options.fallbackLng : !1,
|
8363
|
+
const s = t.lng || this.resolvedLanguage || this.languages[0], o = this.options ? this.options.fallbackLng : !1, l = this.languages[this.languages.length - 1];
|
8341
8364
|
if (s.toLowerCase() === "cimode") return !0;
|
8342
8365
|
const c = (r, d) => {
|
8343
8366
|
const g = this.services.backendConnector.state[`${r}|${d}`];
|
@@ -8347,10 +8370,10 @@ class e1 extends d1 {
|
|
8347
8370
|
const r = t.precheck(this, c);
|
8348
8371
|
if (r !== void 0) return r;
|
8349
8372
|
}
|
8350
|
-
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!o || c(
|
8373
|
+
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!o || c(l, e)));
|
8351
8374
|
}
|
8352
8375
|
loadNamespaces(e, t) {
|
8353
|
-
const s =
|
8376
|
+
const s = Q();
|
8354
8377
|
return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((o) => {
|
8355
8378
|
this.options.ns.indexOf(o) < 0 && this.options.ns.push(o);
|
8356
8379
|
}), this.loadResources((o) => {
|
@@ -8358,44 +8381,44 @@ class e1 extends d1 {
|
|
8358
8381
|
}), s) : (t && t(), Promise.resolve());
|
8359
8382
|
}
|
8360
8383
|
loadLanguages(e, t) {
|
8361
|
-
const s =
|
8384
|
+
const s = Q();
|
8362
8385
|
typeof e == "string" && (e = [e]);
|
8363
|
-
const o = this.options.preload || [],
|
8364
|
-
return
|
8386
|
+
const o = this.options.preload || [], l = e.filter((c) => o.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
|
8387
|
+
return l.length ? (this.options.preload = o.concat(l), this.loadResources((c) => {
|
8365
8388
|
s.resolve(), t && t(c);
|
8366
8389
|
}), s) : (t && t(), Promise.resolve());
|
8367
8390
|
}
|
8368
8391
|
dir(e) {
|
8369
8392
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
|
8370
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new
|
8393
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new V1(O1());
|
8371
8394
|
return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
8372
8395
|
}
|
8373
8396
|
static createInstance() {
|
8374
8397
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
8375
|
-
return new
|
8398
|
+
return new X(e, t);
|
8376
8399
|
}
|
8377
8400
|
cloneInstance() {
|
8378
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
8401
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : l1;
|
8379
8402
|
const s = e.forkResourceStore;
|
8380
8403
|
s && delete e.forkResourceStore;
|
8381
8404
|
const o = {
|
8382
8405
|
...this.options,
|
8383
8406
|
...e,
|
8384
8407
|
isClone: !0
|
8385
|
-
},
|
8386
|
-
return (e.debug !== void 0 || e.prefix !== void 0) && (
|
8387
|
-
|
8388
|
-
}),
|
8408
|
+
}, l = new X(o);
|
8409
|
+
return (e.debug !== void 0 || e.prefix !== void 0) && (l.logger = l.logger.clone(e)), ["store", "services", "language"].forEach((r) => {
|
8410
|
+
l[r] = this[r];
|
8411
|
+
}), l.services = {
|
8389
8412
|
...this.services
|
8390
|
-
},
|
8391
|
-
hasLoadedNamespace:
|
8392
|
-
}, s && (
|
8393
|
-
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0),
|
8394
|
-
g[
|
8395
|
-
|
8396
|
-
}),
|
8397
|
-
hasLoadedNamespace:
|
8398
|
-
},
|
8413
|
+
}, l.services.utils = {
|
8414
|
+
hasLoadedNamespace: l.hasLoadedNamespace.bind(l)
|
8415
|
+
}, s && (l.store = new _1(this.store.data, o), l.services.resourceStore = l.store), l.translator = new g1(l.services, o), l.translator.on("*", function(r) {
|
8416
|
+
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), a = 1; a < d; a++)
|
8417
|
+
g[a - 1] = arguments[a];
|
8418
|
+
l.emit(r, ...g);
|
8419
|
+
}), l.init(o, t), l.translator.options = o, l.translator.backendConnector.services.utils = {
|
8420
|
+
hasLoadedNamespace: l.hasLoadedNamespace.bind(l)
|
8421
|
+
}, l;
|
8399
8422
|
}
|
8400
8423
|
toJSON() {
|
8401
8424
|
return {
|
@@ -8407,36 +8430,36 @@ class e1 extends d1 {
|
|
8407
8430
|
};
|
8408
8431
|
}
|
8409
8432
|
}
|
8410
|
-
const
|
8411
|
-
|
8412
|
-
|
8413
|
-
|
8414
|
-
|
8415
|
-
|
8416
|
-
|
8417
|
-
|
8418
|
-
|
8419
|
-
|
8420
|
-
|
8421
|
-
|
8422
|
-
|
8423
|
-
|
8424
|
-
|
8425
|
-
|
8426
|
-
function
|
8433
|
+
const I = X.createInstance();
|
8434
|
+
I.createInstance = X.createInstance;
|
8435
|
+
I.createInstance;
|
8436
|
+
I.dir;
|
8437
|
+
I.init;
|
8438
|
+
I.loadResources;
|
8439
|
+
I.reloadResources;
|
8440
|
+
I.use;
|
8441
|
+
I.changeLanguage;
|
8442
|
+
I.getFixedT;
|
8443
|
+
I.t;
|
8444
|
+
I.exists;
|
8445
|
+
I.setDefaultNamespace;
|
8446
|
+
I.hasLoadedNamespace;
|
8447
|
+
I.loadNamespaces;
|
8448
|
+
I.loadLanguages;
|
8449
|
+
function Qi() {
|
8427
8450
|
if (console && console.warn) {
|
8428
8451
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
8429
8452
|
e[t] = arguments[t];
|
8430
|
-
|
8453
|
+
K(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
8431
8454
|
}
|
8432
8455
|
}
|
8433
|
-
const
|
8434
|
-
function
|
8456
|
+
const B1 = {};
|
8457
|
+
function L1() {
|
8435
8458
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
8436
8459
|
e[t] = arguments[t];
|
8437
|
-
|
8460
|
+
K(e[0]) && B1[e[0]] || (K(e[0]) && (B1[e[0]] = /* @__PURE__ */ new Date()), Qi(...e));
|
8438
8461
|
}
|
8439
|
-
const
|
8462
|
+
const z1 = (i, e) => () => {
|
8440
8463
|
if (i.isInitialized)
|
8441
8464
|
e();
|
8442
8465
|
else {
|
@@ -8447,30 +8470,30 @@ const Y1 = (i, e) => () => {
|
|
8447
8470
|
};
|
8448
8471
|
i.on("initialized", t);
|
8449
8472
|
}
|
8450
|
-
},
|
8451
|
-
i.loadNamespaces(e,
|
8452
|
-
},
|
8453
|
-
|
8473
|
+
}, W1 = (i, e, t) => {
|
8474
|
+
i.loadNamespaces(e, z1(i, t));
|
8475
|
+
}, j1 = (i, e, t, s) => {
|
8476
|
+
K(t) && (t = [t]), t.forEach((o) => {
|
8454
8477
|
i.options.ns.indexOf(o) < 0 && i.options.ns.push(o);
|
8455
|
-
}), i.loadLanguages(e,
|
8456
|
-
},
|
8478
|
+
}), i.loadLanguages(e, z1(i, s));
|
8479
|
+
}, qi = function(i, e) {
|
8457
8480
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
8458
|
-
const s = e.languages[0], o = e.options ? e.options.fallbackLng : !1,
|
8481
|
+
const s = e.languages[0], o = e.options ? e.options.fallbackLng : !1, l = e.languages[e.languages.length - 1];
|
8459
8482
|
if (s.toLowerCase() === "cimode") return !0;
|
8460
8483
|
const c = (r, d) => {
|
8461
8484
|
const g = e.services.backendConnector.state[`${r}|${d}`];
|
8462
8485
|
return g === -1 || g === 2;
|
8463
8486
|
};
|
8464
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!o || c(
|
8465
|
-
},
|
8487
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!o || c(l, i)));
|
8488
|
+
}, Xi = function(i, e) {
|
8466
8489
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
8467
|
-
return !e.languages || !e.languages.length ? (
|
8490
|
+
return !e.languages || !e.languages.length ? (L1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
8468
8491
|
lng: t.lng,
|
8469
|
-
precheck: (o,
|
8470
|
-
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && o.services.backendConnector.backend && o.isLanguageChangingTo && !
|
8492
|
+
precheck: (o, l) => {
|
8493
|
+
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && o.services.backendConnector.backend && o.isLanguageChangingTo && !l(o.isLanguageChangingTo, i)) return !1;
|
8471
8494
|
}
|
8472
|
-
}) :
|
8473
|
-
},
|
8495
|
+
}) : qi(i, e, t);
|
8496
|
+
}, K = (i) => typeof i == "string", e5 = (i) => typeof i == "object" && i !== null, t5 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, i5 = {
|
8474
8497
|
"&": "&",
|
8475
8498
|
"&": "&",
|
8476
8499
|
"<": "<",
|
@@ -8491,8 +8514,8 @@ const Y1 = (i, e) => () => {
|
|
8491
8514
|
"…": "…",
|
8492
8515
|
"/": "/",
|
8493
8516
|
"/": "/"
|
8494
|
-
},
|
8495
|
-
let
|
8517
|
+
}, s5 = (i) => i5[i], o5 = (i) => i.replace(t5, s5);
|
8518
|
+
let v1 = {
|
8496
8519
|
bindI18n: "languageChanged",
|
8497
8520
|
bindI18nStore: "",
|
8498
8521
|
transEmptyNodeValue: "",
|
@@ -8500,27 +8523,27 @@ let m1 = {
|
|
8500
8523
|
transWrapTextNodes: "",
|
8501
8524
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
8502
8525
|
useSuspense: !0,
|
8503
|
-
unescape:
|
8526
|
+
unescape: o5
|
8504
8527
|
};
|
8505
|
-
const
|
8528
|
+
const n5 = function() {
|
8506
8529
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
8507
|
-
|
8508
|
-
...
|
8530
|
+
v1 = {
|
8531
|
+
...v1,
|
8509
8532
|
...i
|
8510
8533
|
};
|
8511
|
-
},
|
8512
|
-
let
|
8513
|
-
const
|
8514
|
-
|
8515
|
-
},
|
8534
|
+
}, r5 = () => v1;
|
8535
|
+
let J1;
|
8536
|
+
const l5 = (i) => {
|
8537
|
+
J1 = i;
|
8538
|
+
}, a5 = () => J1, h5 = {
|
8516
8539
|
type: "3rdParty",
|
8517
8540
|
init(i) {
|
8518
|
-
|
8541
|
+
n5(i.options.react), l5(i);
|
8519
8542
|
}
|
8520
|
-
},
|
8521
|
-
class
|
8543
|
+
}, c5 = e1();
|
8544
|
+
class d5 {
|
8522
8545
|
constructor() {
|
8523
|
-
|
8546
|
+
x1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
8524
8547
|
this.usedNamespaces = {};
|
8525
8548
|
}
|
8526
8549
|
addUsedNamespaces(e) {
|
@@ -8529,89 +8552,89 @@ class a5 {
|
|
8529
8552
|
});
|
8530
8553
|
}
|
8531
8554
|
}
|
8532
|
-
const
|
8533
|
-
const t =
|
8555
|
+
const g5 = (i, e) => {
|
8556
|
+
const t = N1();
|
8534
8557
|
return A(() => {
|
8535
8558
|
t.current = i;
|
8536
8559
|
}, [i, e]), t.current;
|
8537
|
-
},
|
8560
|
+
}, Q1 = (i, e, t, s) => i.getFixedT(e, t, s), u5 = (i, e, t, s) => Z(Q1(i, e, t, s), [i, e, t, s]), C5 = function(i) {
|
8538
8561
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
8539
8562
|
const {
|
8540
8563
|
i18n: t
|
8541
8564
|
} = e, {
|
8542
8565
|
i18n: s,
|
8543
8566
|
defaultNS: o
|
8544
|
-
} =
|
8545
|
-
if (
|
8546
|
-
|
8547
|
-
const
|
8548
|
-
return y.t =
|
8567
|
+
} = t1(c5) || {}, l = t || s || a5();
|
8568
|
+
if (l && !l.reportNamespaces && (l.reportNamespaces = new d5()), !l) {
|
8569
|
+
L1("You will need to pass in an i18next instance by using initReactI18next");
|
8570
|
+
const L = (b, M) => K(M) ? M : e5(M) && K(M.defaultValue) ? M.defaultValue : Array.isArray(b) ? b[b.length - 1] : b, y = [L, {}, !1];
|
8571
|
+
return y.t = L, y.i18n = {}, y.ready = !1, y;
|
8549
8572
|
}
|
8550
|
-
|
8573
|
+
l.options.react && l.options.react.wait !== void 0 && L1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
8551
8574
|
const c = {
|
8552
|
-
...
|
8553
|
-
...
|
8575
|
+
...r5(),
|
8576
|
+
...l.options.react,
|
8554
8577
|
...e
|
8555
8578
|
}, {
|
8556
8579
|
useSuspense: r,
|
8557
8580
|
keyPrefix: d
|
8558
8581
|
} = c;
|
8559
8582
|
let g = i;
|
8560
|
-
g =
|
8561
|
-
const
|
8562
|
-
let
|
8563
|
-
e.lng && (
|
8564
|
-
const R =
|
8583
|
+
g = K(g) ? [g] : g || ["translation"], l.reportNamespaces.addUsedNamespaces && l.reportNamespaces.addUsedNamespaces(g);
|
8584
|
+
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((L) => Xi(L, l, c)), h = u5(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => Q1(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [w, v] = S(C);
|
8585
|
+
let N = g.join();
|
8586
|
+
e.lng && (N = `${e.lng}${N}`);
|
8587
|
+
const R = g5(N), x = N1(!0);
|
8565
8588
|
A(() => {
|
8566
8589
|
const {
|
8567
|
-
bindI18n:
|
8590
|
+
bindI18n: L,
|
8568
8591
|
bindI18nStore: y
|
8569
8592
|
} = c;
|
8570
|
-
x.current = !0, !
|
8571
|
-
x.current &&
|
8572
|
-
}) :
|
8573
|
-
x.current &&
|
8574
|
-
})),
|
8593
|
+
x.current = !0, !a && !r && (e.lng ? j1(l, e.lng, g, () => {
|
8594
|
+
x.current && v(p);
|
8595
|
+
}) : W1(l, g, () => {
|
8596
|
+
x.current && v(p);
|
8597
|
+
})), a && R && R !== N && x.current && v(p);
|
8575
8598
|
const b = () => {
|
8576
|
-
x.current &&
|
8599
|
+
x.current && v(p);
|
8577
8600
|
};
|
8578
|
-
return
|
8579
|
-
x.current = !1,
|
8601
|
+
return L && l && l.on(L, b), y && l && l.store.on(y, b), () => {
|
8602
|
+
x.current = !1, L && l && L.split(" ").forEach((M) => l.off(M, b)), y && l && y.split(" ").forEach((M) => l.store.off(M, b));
|
8580
8603
|
};
|
8581
|
-
}, [
|
8582
|
-
x.current &&
|
8583
|
-
}, [
|
8584
|
-
const
|
8585
|
-
if (
|
8586
|
-
throw new Promise((
|
8587
|
-
e.lng ?
|
8604
|
+
}, [l, N]), A(() => {
|
8605
|
+
x.current && a && v(C);
|
8606
|
+
}, [l, d, a]);
|
8607
|
+
const E = [w, l, a];
|
8608
|
+
if (E.t = w, E.i18n = l, E.ready = a, a || !a && !r) return E;
|
8609
|
+
throw new Promise((L) => {
|
8610
|
+
e.lng ? j1(l, e.lng, g, () => L()) : W1(l, g, () => L());
|
8588
8611
|
});
|
8589
|
-
},
|
8590
|
-
placeholder:
|
8591
|
-
},
|
8592
|
-
placeholder:
|
8612
|
+
}, p5 = "Country", f5 = {
|
8613
|
+
placeholder: p5
|
8614
|
+
}, w5 = "Страна", m5 = {
|
8615
|
+
placeholder: w5
|
8593
8616
|
};
|
8594
|
-
|
8617
|
+
I.use(h5).init({
|
8595
8618
|
defaultNS: "common",
|
8596
8619
|
lng: "en",
|
8597
8620
|
resources: {
|
8598
8621
|
en: {
|
8599
|
-
common:
|
8622
|
+
common: f5
|
8600
8623
|
},
|
8601
8624
|
ru: {
|
8602
|
-
common:
|
8625
|
+
common: m5
|
8603
8626
|
}
|
8604
8627
|
}
|
8605
8628
|
});
|
8606
|
-
const
|
8607
|
-
({ width: i, selectedCity: e, setSelectedCity: t, onChange: s, value: o, id:
|
8608
|
-
const [d, g] = S([]), [
|
8629
|
+
const y5 = u1(
|
8630
|
+
({ width: i, selectedCity: e, setSelectedCity: t, onChange: s, value: o, id: l, disabled: c }, r) => {
|
8631
|
+
const [d, g] = S([]), [a, h] = S([]), { locale: C, axiosPeople: p } = t1(oe);
|
8609
8632
|
if (!p)
|
8610
8633
|
throw new Error(
|
8611
8634
|
`CountrySelect requires "axiosPeople" to fetch counties.
|
8612
8635
|
Please provide it via SNMTUiContext.`
|
8613
8636
|
);
|
8614
|
-
const { t:
|
8637
|
+
const { t: w } = C5("common", { lng: C }), v = Z(async () => {
|
8615
8638
|
try {
|
8616
8639
|
const R = await p.post("v1/countries/search");
|
8617
8640
|
h(R == null ? void 0 : R.data.data);
|
@@ -8620,39 +8643,39 @@ const x5 = c1(
|
|
8620
8643
|
}
|
8621
8644
|
}, [p]);
|
8622
8645
|
A(() => {
|
8623
|
-
|
8646
|
+
v();
|
8624
8647
|
}, []), A(() => {
|
8625
8648
|
if (e) {
|
8626
|
-
const R = e.split("-")[1], x =
|
8627
|
-
(
|
8649
|
+
const R = e.split("-")[1], x = a.filter(
|
8650
|
+
(E) => E.name.includes(R)
|
8628
8651
|
);
|
8629
8652
|
if (x.length) {
|
8630
|
-
const
|
8631
|
-
label:
|
8632
|
-
value:
|
8653
|
+
const E = x.map((L) => ({
|
8654
|
+
label: L.name,
|
8655
|
+
value: L.name
|
8633
8656
|
}));
|
8634
|
-
s(
|
8657
|
+
s(E[0].value);
|
8635
8658
|
}
|
8636
8659
|
}
|
8637
|
-
}, [e,
|
8638
|
-
const R =
|
8660
|
+
}, [e, a, s]), A(() => {
|
8661
|
+
const R = a.map((x) => ({
|
8639
8662
|
label: x.name,
|
8640
8663
|
value: x.name
|
8641
8664
|
}));
|
8642
8665
|
g(R);
|
8643
|
-
}, [
|
8644
|
-
const
|
8666
|
+
}, [a]);
|
8667
|
+
const N = (R) => {
|
8645
8668
|
R === "None" ? (s(""), t && t("")) : (s(R), t && t(""));
|
8646
8669
|
};
|
8647
8670
|
return /* @__PURE__ */ n("div", { className: "snmt-country-select", children: /* @__PURE__ */ n(
|
8648
|
-
|
8671
|
+
bi,
|
8649
8672
|
{
|
8650
|
-
id:
|
8673
|
+
id: l,
|
8651
8674
|
width: i,
|
8652
|
-
placeholder:
|
8675
|
+
placeholder: w("placeholder"),
|
8653
8676
|
value: o,
|
8654
8677
|
ref: r,
|
8655
|
-
onChange:
|
8678
|
+
onChange: N,
|
8656
8679
|
options: [{ label: "None", value: "None" }, ...d],
|
8657
8680
|
disabled: c
|
8658
8681
|
}
|
@@ -8660,5 +8683,5 @@ const x5 = c1(
|
|
8660
8683
|
}
|
8661
8684
|
);
|
8662
8685
|
export {
|
8663
|
-
|
8686
|
+
y5 as CountrySelect
|
8664
8687
|
};
|