@snmt-react-ui/country-select 2.1.2 → 2.1.4
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 +753 -732
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/country-select.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
1
|
+
var J1 = Object.defineProperty;
|
2
|
+
var Q1 = (i, e, t) => e in i ? J1(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
3
|
+
var v1 = (i, e, t) => Q1(i, typeof e != "symbol" ? e + "" : e, t);
|
4
4
|
import "./index.css";
|
5
|
-
import { jsx as n, jsxs as u, Fragment as
|
6
|
-
import { SNMTUiContext as
|
7
|
-
import { Select as
|
8
|
-
import { createContext as
|
9
|
-
const
|
5
|
+
import { jsx as n, jsxs as u, Fragment as Y } from "react/jsx-runtime";
|
6
|
+
import { SNMTUiContext as q1 } from "@snmt-react-ui/core";
|
7
|
+
import { Select as X1, Flex as ee, Avatar as te, Checkbox as ie, Typography as B1, Tag as W1, Popover as se } from "antd";
|
8
|
+
import { createContext as t1, forwardRef as c1, useState as S, useRef as k1, useEffect as O, useContext as i1, useCallback as j1 } from "react";
|
9
|
+
const n1 = ({
|
10
10
|
children: i,
|
11
11
|
direction: e = "row",
|
12
12
|
flexWrap: t = "nowrap",
|
@@ -16,7 +16,7 @@ const o1 = ({
|
|
16
16
|
gap: c,
|
17
17
|
padding: r
|
18
18
|
}) => /* @__PURE__ */ n(
|
19
|
-
|
19
|
+
ee,
|
20
20
|
{
|
21
21
|
className: `snmt-flex${t === "inherit" ? " inherit" : ""}`,
|
22
22
|
vertical: e === "column",
|
@@ -28,26 +28,27 @@ const o1 = ({
|
|
28
28
|
style: { padding: r },
|
29
29
|
children: i
|
30
30
|
}
|
31
|
-
),
|
31
|
+
), oe = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
|
32
32
|
const o = typeof s.src == "string";
|
33
33
|
return /* @__PURE__ */ n(
|
34
|
-
|
34
|
+
te,
|
35
35
|
{
|
36
36
|
className: `snmt-avatar ${o ? "image" : ""}`,
|
37
37
|
shape: i,
|
38
38
|
size: e,
|
39
|
+
style: { minWidth: e, minHeight: e },
|
39
40
|
...s,
|
40
41
|
children: t
|
41
42
|
}
|
42
43
|
);
|
43
44
|
};
|
44
|
-
var
|
45
|
-
const
|
45
|
+
var $ = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.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))($ || {});
|
46
|
+
const Z1 = t1({
|
46
47
|
locale: "en",
|
47
48
|
theme: "light"
|
48
49
|
});
|
49
|
-
|
50
|
-
const
|
50
|
+
Z1.Provider;
|
51
|
+
const ne = ({
|
51
52
|
checked: i = !0,
|
52
53
|
indeterminate: e = !1,
|
53
54
|
children: t,
|
@@ -55,13 +56,13 @@ const oe = ({
|
|
55
56
|
disabled: o = !1,
|
56
57
|
disableUncheck: a = !1
|
57
58
|
}) => {
|
58
|
-
const [c, r] =
|
59
|
+
const [c, r] = S(i), [d, g] = S(e);
|
59
60
|
O(() => {
|
60
61
|
r(i), g(e);
|
61
62
|
}, [i, e]);
|
62
|
-
const { theme: l } =
|
63
|
+
const { theme: l } = i1(Z1);
|
63
64
|
return /* @__PURE__ */ n(
|
64
|
-
|
65
|
+
ie,
|
65
66
|
{
|
66
67
|
className: `snmt-checkbox snmt-checkbox-${l}`,
|
67
68
|
checked: c,
|
@@ -75,12 +76,12 @@ const oe = ({
|
|
75
76
|
);
|
76
77
|
};
|
77
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 || {});
|
78
|
-
const
|
79
|
+
const D1 = t1({
|
79
80
|
locale: "en",
|
80
81
|
theme: "light"
|
81
82
|
});
|
82
|
-
|
83
|
-
const
|
83
|
+
D1.Provider;
|
84
|
+
const re = ({
|
84
85
|
width: i = 20,
|
85
86
|
height: e = 20,
|
86
87
|
color: t = "#001E52",
|
@@ -107,7 +108,7 @@ const ne = ({
|
|
107
108
|
}
|
108
109
|
)
|
109
110
|
}
|
110
|
-
),
|
111
|
+
), le = ({
|
111
112
|
width: i = 20,
|
112
113
|
height: e = 20,
|
113
114
|
color: t = "#001E52",
|
@@ -134,7 +135,7 @@ const ne = ({
|
|
134
135
|
}
|
135
136
|
)
|
136
137
|
}
|
137
|
-
),
|
138
|
+
), ae = ({
|
138
139
|
width: i = 16,
|
139
140
|
height: e = 16,
|
140
141
|
color: t = "#001E52",
|
@@ -162,7 +163,7 @@ const ne = ({
|
|
162
163
|
)
|
163
164
|
]
|
164
165
|
}
|
165
|
-
),
|
166
|
+
), he = ({
|
166
167
|
width: i = 20,
|
167
168
|
height: e = 20,
|
168
169
|
color: t = "#001E52",
|
@@ -197,7 +198,7 @@ const ne = ({
|
|
197
198
|
)
|
198
199
|
]
|
199
200
|
}
|
200
|
-
),
|
201
|
+
), ce = ({
|
201
202
|
width: i = 18,
|
202
203
|
height: e = 18,
|
203
204
|
color: t = "#001E52",
|
@@ -236,7 +237,7 @@ const ne = ({
|
|
236
237
|
)
|
237
238
|
]
|
238
239
|
}
|
239
|
-
),
|
240
|
+
), de = ({
|
240
241
|
width: i = 20,
|
241
242
|
height: e = 20,
|
242
243
|
color: t = "#001E52",
|
@@ -262,7 +263,7 @@ const ne = ({
|
|
262
263
|
}
|
263
264
|
)
|
264
265
|
}
|
265
|
-
),
|
266
|
+
), ge = ({
|
266
267
|
width: i = 20,
|
267
268
|
height: e = 20,
|
268
269
|
color: t = "#001E52",
|
@@ -283,7 +284,7 @@ const ne = ({
|
|
283
284
|
/* @__PURE__ */ n("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
284
285
|
]
|
285
286
|
}
|
286
|
-
),
|
287
|
+
), ue = ({
|
287
288
|
width: i = 20,
|
288
289
|
height: e = 20,
|
289
290
|
color: t = "#001E52",
|
@@ -315,7 +316,7 @@ const ne = ({
|
|
315
316
|
)
|
316
317
|
]
|
317
318
|
}
|
318
|
-
),
|
319
|
+
), Ce = ({
|
319
320
|
width: i = 20,
|
320
321
|
height: e = 20,
|
321
322
|
color: t = "#001E52",
|
@@ -369,7 +370,7 @@ const ne = ({
|
|
369
370
|
)
|
370
371
|
]
|
371
372
|
}
|
372
|
-
),
|
373
|
+
), pe = ({
|
373
374
|
width: i = 20,
|
374
375
|
height: e = 20,
|
375
376
|
color: t = "#001E52",
|
@@ -408,7 +409,7 @@ const ne = ({
|
|
408
409
|
/* @__PURE__ */ n("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
409
410
|
]
|
410
411
|
}
|
411
|
-
),
|
412
|
+
), fe = ({
|
412
413
|
width: i = 16,
|
413
414
|
height: e = 12,
|
414
415
|
color: t = "#001E52",
|
@@ -457,7 +458,7 @@ const ne = ({
|
|
457
458
|
)
|
458
459
|
] })
|
459
460
|
}
|
460
|
-
),
|
461
|
+
), we = ({
|
461
462
|
width: i = 16,
|
462
463
|
height: e = 16,
|
463
464
|
color: t = "#001E52",
|
@@ -491,7 +492,7 @@ const ne = ({
|
|
491
492
|
)
|
492
493
|
]
|
493
494
|
}
|
494
|
-
),
|
495
|
+
), me = ({
|
495
496
|
width: i = 10,
|
496
497
|
height: e = 10,
|
497
498
|
color: t = "#001E52",
|
@@ -530,7 +531,7 @@ const ne = ({
|
|
530
531
|
)
|
531
532
|
] })
|
532
533
|
}
|
533
|
-
),
|
534
|
+
), ke = ({
|
534
535
|
width: i = 16,
|
535
536
|
height: e = 16,
|
536
537
|
color: t = "#001E52",
|
@@ -566,7 +567,7 @@ const ne = ({
|
|
566
567
|
)
|
567
568
|
]
|
568
569
|
}
|
569
|
-
),
|
570
|
+
), Le = ({
|
570
571
|
width: i = 11,
|
571
572
|
height: e = 32,
|
572
573
|
color: t = "#001E52",
|
@@ -604,7 +605,7 @@ const ne = ({
|
|
604
605
|
/* @__PURE__ */ n("circle", { cx: "3", cy: "3", r: "3", fill: t })
|
605
606
|
]
|
606
607
|
}
|
607
|
-
),
|
608
|
+
), ve = ({
|
608
609
|
width: i = 20,
|
609
610
|
height: e = 20,
|
610
611
|
color: t = "#001E52",
|
@@ -651,7 +652,7 @@ const ne = ({
|
|
651
652
|
)
|
652
653
|
]
|
653
654
|
}
|
654
|
-
),
|
655
|
+
), Ne = ({
|
655
656
|
width: i = 20,
|
656
657
|
height: e = 20,
|
657
658
|
color: t = "#001E52",
|
@@ -684,7 +685,7 @@ const ne = ({
|
|
684
685
|
)
|
685
686
|
]
|
686
687
|
}
|
687
|
-
),
|
688
|
+
), xe = ({
|
688
689
|
width: i = 20,
|
689
690
|
height: e = 20,
|
690
691
|
color: t = "#001E52",
|
@@ -731,7 +732,7 @@ const ne = ({
|
|
731
732
|
)
|
732
733
|
]
|
733
734
|
}
|
734
|
-
),
|
735
|
+
), Re = ({
|
735
736
|
width: i = 20,
|
736
737
|
height: e = 20,
|
737
738
|
color: t = "#001E52",
|
@@ -764,7 +765,7 @@ const ne = ({
|
|
764
765
|
)
|
765
766
|
]
|
766
767
|
}
|
767
|
-
),
|
768
|
+
), Me = ({
|
768
769
|
width: i = 18,
|
769
770
|
height: e = 16,
|
770
771
|
color: t = "#001E52",
|
@@ -803,7 +804,7 @@ const ne = ({
|
|
803
804
|
)
|
804
805
|
]
|
805
806
|
}
|
806
|
-
),
|
807
|
+
), ye = ({
|
807
808
|
width: i = 20,
|
808
809
|
height: e = 20,
|
809
810
|
color: t = "#001E52",
|
@@ -836,7 +837,7 @@ const ne = ({
|
|
836
837
|
)
|
837
838
|
]
|
838
839
|
}
|
839
|
-
),
|
840
|
+
), be = ({
|
840
841
|
width: i = 20,
|
841
842
|
height: e = 20,
|
842
843
|
color: t = "#001E52",
|
@@ -860,7 +861,7 @@ const ne = ({
|
|
860
861
|
}
|
861
862
|
)
|
862
863
|
}
|
863
|
-
),
|
864
|
+
), Ee = ({
|
864
865
|
width: i = 20,
|
865
866
|
height: e = 20,
|
866
867
|
color: t = "#001E52",
|
@@ -907,7 +908,7 @@ const ne = ({
|
|
907
908
|
)
|
908
909
|
]
|
909
910
|
}
|
910
|
-
),
|
911
|
+
), _e = ({
|
911
912
|
width: i = 20,
|
912
913
|
height: e = 20,
|
913
914
|
color: t = "#001E52",
|
@@ -940,7 +941,7 @@ const ne = ({
|
|
940
941
|
)
|
941
942
|
]
|
942
943
|
}
|
943
|
-
),
|
944
|
+
), He = ({
|
944
945
|
width: i = 20,
|
945
946
|
height: e = 20,
|
946
947
|
color: t = "#001E52",
|
@@ -973,7 +974,7 @@ const ne = ({
|
|
973
974
|
)
|
974
975
|
]
|
975
976
|
}
|
976
|
-
),
|
977
|
+
), Ve = ({
|
977
978
|
width: i = 20,
|
978
979
|
height: e = 23,
|
979
980
|
color: t = "#001E52",
|
@@ -1034,7 +1035,7 @@ const ne = ({
|
|
1034
1035
|
)
|
1035
1036
|
]
|
1036
1037
|
}
|
1037
|
-
),
|
1038
|
+
), Ie = ({
|
1038
1039
|
width: i = 20,
|
1039
1040
|
height: e = 20,
|
1040
1041
|
color: t = "#001E52",
|
@@ -1074,7 +1075,7 @@ const ne = ({
|
|
1074
1075
|
)
|
1075
1076
|
]
|
1076
1077
|
}
|
1077
|
-
),
|
1078
|
+
), Se = ({
|
1078
1079
|
width: i = 32,
|
1079
1080
|
height: e = 25,
|
1080
1081
|
color: t = "#001E52",
|
@@ -1131,7 +1132,7 @@ const ne = ({
|
|
1131
1132
|
)
|
1132
1133
|
]
|
1133
1134
|
}
|
1134
|
-
),
|
1135
|
+
), Ae = ({
|
1135
1136
|
width: i = 11,
|
1136
1137
|
height: e = 11,
|
1137
1138
|
color: t = "#FFB020",
|
@@ -1165,7 +1166,7 @@ const ne = ({
|
|
1165
1166
|
)
|
1166
1167
|
]
|
1167
1168
|
}
|
1168
|
-
),
|
1169
|
+
), Be = ({
|
1169
1170
|
width: i = 10,
|
1170
1171
|
height: e = 10,
|
1171
1172
|
color: t = "#88A4FF",
|
@@ -1213,7 +1214,7 @@ const ne = ({
|
|
1213
1214
|
)
|
1214
1215
|
]
|
1215
1216
|
}
|
1216
|
-
),
|
1217
|
+
), We = ({
|
1217
1218
|
width: i = 14,
|
1218
1219
|
height: e = 14,
|
1219
1220
|
color: t = "#8E8E93",
|
@@ -1241,7 +1242,7 @@ const ne = ({
|
|
1241
1242
|
)
|
1242
1243
|
]
|
1243
1244
|
}
|
1244
|
-
),
|
1245
|
+
), je = ({
|
1245
1246
|
width: i = 14,
|
1246
1247
|
height: e = 14,
|
1247
1248
|
color: t = "#FFB020",
|
@@ -1275,7 +1276,7 @@ const ne = ({
|
|
1275
1276
|
)
|
1276
1277
|
]
|
1277
1278
|
}
|
1278
|
-
),
|
1279
|
+
), Ze = ({
|
1279
1280
|
width: i = 14,
|
1280
1281
|
height: e = 14,
|
1281
1282
|
color: t = "#D0421B",
|
@@ -1323,7 +1324,7 @@ const ne = ({
|
|
1323
1324
|
)
|
1324
1325
|
]
|
1325
1326
|
}
|
1326
|
-
),
|
1327
|
+
), De = ({
|
1327
1328
|
width: i = 20,
|
1328
1329
|
height: e = 20,
|
1329
1330
|
color: t = "#070739",
|
@@ -1353,7 +1354,7 @@ const ne = ({
|
|
1353
1354
|
/* @__PURE__ */ n("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
1354
1355
|
]
|
1355
1356
|
}
|
1356
|
-
),
|
1357
|
+
), Te = ({
|
1357
1358
|
width: i = 20,
|
1358
1359
|
height: e = 20,
|
1359
1360
|
color: t = "#070739",
|
@@ -1391,7 +1392,7 @@ const ne = ({
|
|
1391
1392
|
)
|
1392
1393
|
]
|
1393
1394
|
}
|
1394
|
-
),
|
1395
|
+
), Ge = ({
|
1395
1396
|
width: i = 9,
|
1396
1397
|
height: e = 5,
|
1397
1398
|
color: t = "#001E52",
|
@@ -1417,7 +1418,7 @@ const ne = ({
|
|
1417
1418
|
}
|
1418
1419
|
)
|
1419
1420
|
}
|
1420
|
-
),
|
1421
|
+
), Ke = ({
|
1421
1422
|
width: i = 20,
|
1422
1423
|
height: e = 20,
|
1423
1424
|
color: t = "#F2F2F7",
|
@@ -1446,7 +1447,7 @@ const ne = ({
|
|
1446
1447
|
)
|
1447
1448
|
]
|
1448
1449
|
}
|
1449
|
-
),
|
1450
|
+
), Pe = ({
|
1450
1451
|
width: i = 20,
|
1451
1452
|
height: e = 20,
|
1452
1453
|
color: t = "#004ED7",
|
@@ -1475,7 +1476,7 @@ const ne = ({
|
|
1475
1476
|
)
|
1476
1477
|
]
|
1477
1478
|
}
|
1478
|
-
),
|
1479
|
+
), Fe = ({
|
1479
1480
|
width: i = 248,
|
1480
1481
|
height: e = 248,
|
1481
1482
|
color: t = "#070739",
|
@@ -1512,7 +1513,7 @@ const ne = ({
|
|
1512
1513
|
)
|
1513
1514
|
]
|
1514
1515
|
}
|
1515
|
-
),
|
1516
|
+
), $e = ({
|
1516
1517
|
width: i = 24,
|
1517
1518
|
height: e = 24,
|
1518
1519
|
color: t = "#001E52",
|
@@ -1580,7 +1581,7 @@ const ne = ({
|
|
1580
1581
|
)
|
1581
1582
|
]
|
1582
1583
|
}
|
1583
|
-
),
|
1584
|
+
), Ue = ({
|
1584
1585
|
width: i = 10,
|
1585
1586
|
height: e = 10,
|
1586
1587
|
color: t = "#001E52",
|
@@ -1617,7 +1618,7 @@ const ne = ({
|
|
1617
1618
|
)
|
1618
1619
|
]
|
1619
1620
|
}
|
1620
|
-
),
|
1621
|
+
), ze = ({
|
1621
1622
|
width: i = 24,
|
1622
1623
|
height: e = 24,
|
1623
1624
|
color: t = m.GREY_DARK_5,
|
@@ -1656,7 +1657,7 @@ const ne = ({
|
|
1656
1657
|
)
|
1657
1658
|
]
|
1658
1659
|
}
|
1659
|
-
),
|
1660
|
+
), Je = ({
|
1660
1661
|
width: i = 20,
|
1661
1662
|
height: e = 20,
|
1662
1663
|
color: t = m.GREY_DARK_1,
|
@@ -1689,7 +1690,7 @@ const ne = ({
|
|
1689
1690
|
)
|
1690
1691
|
]
|
1691
1692
|
}
|
1692
|
-
),
|
1693
|
+
), Qe = ({
|
1693
1694
|
width: i = 81,
|
1694
1695
|
height: e = 80,
|
1695
1696
|
color: t = m.GREY_DARK_5,
|
@@ -1738,7 +1739,7 @@ const ne = ({
|
|
1738
1739
|
)
|
1739
1740
|
]
|
1740
1741
|
}
|
1741
|
-
),
|
1742
|
+
), qe = ({
|
1742
1743
|
className: i,
|
1743
1744
|
color: e = m.GREY_DARK_5,
|
1744
1745
|
height: t = 20,
|
@@ -1765,7 +1766,7 @@ const ne = ({
|
|
1765
1766
|
}
|
1766
1767
|
)
|
1767
1768
|
}
|
1768
|
-
),
|
1769
|
+
), Xe = ({
|
1769
1770
|
className: i,
|
1770
1771
|
color: e = m.GREY_DARK_5,
|
1771
1772
|
height: t = 20,
|
@@ -1792,7 +1793,7 @@ const ne = ({
|
|
1792
1793
|
}
|
1793
1794
|
)
|
1794
1795
|
}
|
1795
|
-
),
|
1796
|
+
), et = ({
|
1796
1797
|
className: i,
|
1797
1798
|
color: e = m.GREY_DARK_5,
|
1798
1799
|
height: t = 5,
|
@@ -1816,7 +1817,7 @@ const ne = ({
|
|
1816
1817
|
}
|
1817
1818
|
)
|
1818
1819
|
}
|
1819
|
-
),
|
1820
|
+
), tt = ({
|
1820
1821
|
className: i,
|
1821
1822
|
color: e = m.GREY_DARK_5,
|
1822
1823
|
height: t = 5,
|
@@ -1841,7 +1842,7 @@ const ne = ({
|
|
1841
1842
|
}
|
1842
1843
|
)
|
1843
1844
|
}
|
1844
|
-
),
|
1845
|
+
), it = ({
|
1845
1846
|
className: i,
|
1846
1847
|
color: e = m.GREY_DARK_5,
|
1847
1848
|
height: t = 24,
|
@@ -1880,7 +1881,7 @@ const ne = ({
|
|
1880
1881
|
)
|
1881
1882
|
]
|
1882
1883
|
}
|
1883
|
-
),
|
1884
|
+
), st = ({
|
1884
1885
|
className: i,
|
1885
1886
|
color: e = m.GREY_DARK_5,
|
1886
1887
|
height: t = 24,
|
@@ -1919,7 +1920,7 @@ const ne = ({
|
|
1919
1920
|
)
|
1920
1921
|
]
|
1921
1922
|
}
|
1922
|
-
),
|
1923
|
+
), ot = ({
|
1923
1924
|
className: i,
|
1924
1925
|
color: e = m.GREY_DARK_5,
|
1925
1926
|
height: t = 24,
|
@@ -1946,7 +1947,7 @@ const ne = ({
|
|
1946
1947
|
}
|
1947
1948
|
)
|
1948
1949
|
}
|
1949
|
-
),
|
1950
|
+
), nt = ({
|
1950
1951
|
className: i,
|
1951
1952
|
color: e = m.GREY_DARK_5,
|
1952
1953
|
height: t = 24,
|
@@ -2005,7 +2006,7 @@ const ne = ({
|
|
2005
2006
|
)
|
2006
2007
|
]
|
2007
2008
|
}
|
2008
|
-
),
|
2009
|
+
), rt = ({
|
2009
2010
|
className: i,
|
2010
2011
|
color: e = m.GREY_DARK_5,
|
2011
2012
|
height: t = 24,
|
@@ -2042,7 +2043,7 @@ const ne = ({
|
|
2042
2043
|
)
|
2043
2044
|
]
|
2044
2045
|
}
|
2045
|
-
),
|
2046
|
+
), lt = ({
|
2046
2047
|
className: i,
|
2047
2048
|
color: e = m.GREY_DARK_3,
|
2048
2049
|
height: t = 14,
|
@@ -2079,7 +2080,7 @@ const ne = ({
|
|
2079
2080
|
)
|
2080
2081
|
]
|
2081
2082
|
}
|
2082
|
-
),
|
2083
|
+
), at = ({
|
2083
2084
|
className: i,
|
2084
2085
|
color: e = m.GREY_DARK_5,
|
2085
2086
|
height: t = 18,
|
@@ -2106,7 +2107,7 @@ const ne = ({
|
|
2106
2107
|
}
|
2107
2108
|
)
|
2108
2109
|
}
|
2109
|
-
),
|
2110
|
+
), ht = ({
|
2110
2111
|
className: i,
|
2111
2112
|
color: e = m.GREY_DARK_5,
|
2112
2113
|
height: t = 24,
|
@@ -2158,7 +2159,7 @@ const ne = ({
|
|
2158
2159
|
)
|
2159
2160
|
]
|
2160
2161
|
}
|
2161
|
-
),
|
2162
|
+
), ct = ({
|
2162
2163
|
className: i,
|
2163
2164
|
color: e = m.GREY_DARK_5,
|
2164
2165
|
height: t = 24,
|
@@ -2195,7 +2196,7 @@ const ne = ({
|
|
2195
2196
|
)
|
2196
2197
|
]
|
2197
2198
|
}
|
2198
|
-
),
|
2199
|
+
), dt = ({
|
2199
2200
|
className: i,
|
2200
2201
|
color: e = m.NOTIFICATION_WARNING_DARK,
|
2201
2202
|
height: t = 37,
|
@@ -2234,7 +2235,7 @@ const ne = ({
|
|
2234
2235
|
)
|
2235
2236
|
]
|
2236
2237
|
}
|
2237
|
-
),
|
2238
|
+
), gt = ({
|
2238
2239
|
className: i,
|
2239
2240
|
color: e = m.GREY_DARK_5,
|
2240
2241
|
height: t = 24,
|
@@ -2260,7 +2261,7 @@ const ne = ({
|
|
2260
2261
|
}
|
2261
2262
|
)
|
2262
2263
|
}
|
2263
|
-
),
|
2264
|
+
), ut = ({
|
2264
2265
|
className: i,
|
2265
2266
|
color: e = m.GREY_DARK_5,
|
2266
2267
|
height: t = 24,
|
@@ -2299,7 +2300,7 @@ const ne = ({
|
|
2299
2300
|
)
|
2300
2301
|
]
|
2301
2302
|
}
|
2302
|
-
),
|
2303
|
+
), Ct = ({
|
2303
2304
|
className: i,
|
2304
2305
|
color: e = m.GREY_DARK_5,
|
2305
2306
|
height: t = 24,
|
@@ -2338,7 +2339,7 @@ const ne = ({
|
|
2338
2339
|
)
|
2339
2340
|
]
|
2340
2341
|
}
|
2341
|
-
),
|
2342
|
+
), pt = ({
|
2342
2343
|
className: i,
|
2343
2344
|
color: e = m.GREY_DARK_5,
|
2344
2345
|
height: t = 24,
|
@@ -2407,7 +2408,7 @@ const ne = ({
|
|
2407
2408
|
)
|
2408
2409
|
]
|
2409
2410
|
}
|
2410
|
-
),
|
2411
|
+
), ft = ({
|
2411
2412
|
className: i,
|
2412
2413
|
color: e = m.GREY_DARK_5,
|
2413
2414
|
height: t = 24,
|
@@ -2446,7 +2447,7 @@ const ne = ({
|
|
2446
2447
|
)
|
2447
2448
|
]
|
2448
2449
|
}
|
2449
|
-
),
|
2450
|
+
), wt = ({
|
2450
2451
|
className: i,
|
2451
2452
|
color: e = m.GREY_DARK_5,
|
2452
2453
|
height: t = 24,
|
@@ -2503,7 +2504,7 @@ const ne = ({
|
|
2503
2504
|
)
|
2504
2505
|
]
|
2505
2506
|
}
|
2506
|
-
),
|
2507
|
+
), mt = ({
|
2507
2508
|
className: i,
|
2508
2509
|
color: e = m.GREY_DARK_5,
|
2509
2510
|
height: t = 24,
|
@@ -2542,7 +2543,7 @@ const ne = ({
|
|
2542
2543
|
)
|
2543
2544
|
]
|
2544
2545
|
}
|
2545
|
-
),
|
2546
|
+
), kt = ({
|
2546
2547
|
className: i,
|
2547
2548
|
color: e = m.GREY_DARK_5,
|
2548
2549
|
height: t = 24,
|
@@ -2591,7 +2592,7 @@ const ne = ({
|
|
2591
2592
|
)
|
2592
2593
|
]
|
2593
2594
|
}
|
2594
|
-
),
|
2595
|
+
), Lt = ({
|
2595
2596
|
className: i,
|
2596
2597
|
color: e = m.GREY_DARK_5,
|
2597
2598
|
height: t = 24,
|
@@ -2630,7 +2631,7 @@ const ne = ({
|
|
2630
2631
|
)
|
2631
2632
|
]
|
2632
2633
|
}
|
2633
|
-
),
|
2634
|
+
), vt = ({
|
2634
2635
|
className: i,
|
2635
2636
|
color: e = m.GREY_DARK_5,
|
2636
2637
|
height: t = 24,
|
@@ -2657,7 +2658,7 @@ const ne = ({
|
|
2657
2658
|
}
|
2658
2659
|
)
|
2659
2660
|
}
|
2660
|
-
),
|
2661
|
+
), Nt = ({
|
2661
2662
|
className: i,
|
2662
2663
|
color: e = m.GREY_DARK_5,
|
2663
2664
|
height: t = 24,
|
@@ -2695,7 +2696,7 @@ const ne = ({
|
|
2695
2696
|
)
|
2696
2697
|
]
|
2697
2698
|
}
|
2698
|
-
),
|
2699
|
+
), xt = ({
|
2699
2700
|
className: i,
|
2700
2701
|
color: e = m.GREY_DARK_5,
|
2701
2702
|
height: t = 24,
|
@@ -2716,7 +2717,7 @@ const ne = ({
|
|
2716
2717
|
/* @__PURE__ */ n("path", { d: "M12 8L4 8", stroke: e, strokeWidth: "1.7", strokeLinecap: "round" })
|
2717
2718
|
]
|
2718
2719
|
}
|
2719
|
-
),
|
2720
|
+
), Rt = ({
|
2720
2721
|
className: i,
|
2721
2722
|
color: e = m.GREY_DARK_5,
|
2722
2723
|
height: t = 24,
|
@@ -2755,7 +2756,7 @@ const ne = ({
|
|
2755
2756
|
)
|
2756
2757
|
]
|
2757
2758
|
}
|
2758
|
-
),
|
2759
|
+
), Mt = ({
|
2759
2760
|
className: i,
|
2760
2761
|
color: e = m.GREY_DARK_5,
|
2761
2762
|
height: t = 24,
|
@@ -2794,7 +2795,7 @@ const ne = ({
|
|
2794
2795
|
)
|
2795
2796
|
]
|
2796
2797
|
}
|
2797
|
-
),
|
2798
|
+
), yt = ({
|
2798
2799
|
className: i,
|
2799
2800
|
color: e = m.GREY_DARK_5,
|
2800
2801
|
height: t = 24,
|
@@ -2833,7 +2834,7 @@ const ne = ({
|
|
2833
2834
|
)
|
2834
2835
|
]
|
2835
2836
|
}
|
2836
|
-
),
|
2837
|
+
), bt = ({
|
2837
2838
|
className: i,
|
2838
2839
|
color: e = m.GREY_DARK_2,
|
2839
2840
|
height: t = 16,
|
@@ -2859,7 +2860,7 @@ const ne = ({
|
|
2859
2860
|
}
|
2860
2861
|
)
|
2861
2862
|
}
|
2862
|
-
),
|
2863
|
+
), Et = ({
|
2863
2864
|
className: i,
|
2864
2865
|
color: e = m.GREY_DARK_5,
|
2865
2866
|
height: t = 20,
|
@@ -2888,7 +2889,7 @@ const ne = ({
|
|
2888
2889
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_3992_5989", children: /* @__PURE__ */ n("rect", { width: "20", height: "20", fill: "white" }) }) })
|
2889
2890
|
]
|
2890
2891
|
}
|
2891
|
-
),
|
2892
|
+
), _t = ({
|
2892
2893
|
className: i,
|
2893
2894
|
color: e = m.GREY_DARK_5,
|
2894
2895
|
height: t = 20,
|
@@ -2917,7 +2918,7 @@ const ne = ({
|
|
2917
2918
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_3992_5988", children: /* @__PURE__ */ n("rect", { width: "20", height: "20", fill: "white" }) }) })
|
2918
2919
|
]
|
2919
2920
|
}
|
2920
|
-
),
|
2921
|
+
), Ht = ({
|
2921
2922
|
className: i,
|
2922
2923
|
color: e = m.GREY_DARK_5,
|
2923
2924
|
height: t = 20,
|
@@ -2946,7 +2947,7 @@ const ne = ({
|
|
2946
2947
|
)
|
2947
2948
|
]
|
2948
2949
|
}
|
2949
|
-
),
|
2950
|
+
), Vt = ({
|
2950
2951
|
className: i,
|
2951
2952
|
color: e = m.GREY_DARK_5,
|
2952
2953
|
height: t = 20,
|
@@ -2975,7 +2976,7 @@ const ne = ({
|
|
2975
2976
|
)
|
2976
2977
|
]
|
2977
2978
|
}
|
2978
|
-
),
|
2979
|
+
), It = ({
|
2979
2980
|
className: i,
|
2980
2981
|
color: e = "#001E52",
|
2981
2982
|
height: t = 24,
|
@@ -3001,7 +3002,7 @@ const ne = ({
|
|
3001
3002
|
}
|
3002
3003
|
)
|
3003
3004
|
}
|
3004
|
-
),
|
3005
|
+
), St = ({
|
3005
3006
|
className: i,
|
3006
3007
|
color: e = "#131314",
|
3007
3008
|
height: t = 20,
|
@@ -3067,7 +3068,7 @@ const ne = ({
|
|
3067
3068
|
)
|
3068
3069
|
] }) })
|
3069
3070
|
}
|
3070
|
-
),
|
3071
|
+
), s1 = ({
|
3071
3072
|
name: i,
|
3072
3073
|
width: e,
|
3073
3074
|
height: t,
|
@@ -3076,49 +3077,49 @@ const ne = ({
|
|
3076
3077
|
disabled: a = !1,
|
3077
3078
|
onClick: c
|
3078
3079
|
}) => {
|
3079
|
-
const [r, d] =
|
3080
|
+
const [r, d] = S(o), { theme: g } = i1(D1), l = a ? g && g === "dark" ? m.GREY_LIGHT_4 : m.GREY_DARK_1 : s, h = a ? void 0 : c;
|
3080
3081
|
return O(() => {
|
3081
3082
|
if (o) {
|
3082
3083
|
h && !a && d(`${o} clickable`);
|
3083
3084
|
return;
|
3084
3085
|
}
|
3085
3086
|
h && !a && d("clickable");
|
3086
|
-
}, [h, o, a]), /* @__PURE__ */ n(
|
3087
|
+
}, [h, o, a]), /* @__PURE__ */ n(Y, { children: (() => {
|
3087
3088
|
switch (i) {
|
3088
3089
|
case "nextIcon":
|
3089
|
-
return Qe({ width: e, height: t, color: l, className: r, onClick: h });
|
3090
|
-
case "prevIcon":
|
3091
3090
|
return qe({ width: e, height: t, color: l, className: r, onClick: h });
|
3091
|
+
case "prevIcon":
|
3092
|
+
return Xe({ width: e, height: t, color: l, className: r, onClick: h });
|
3092
3093
|
case "arrowUp":
|
3093
|
-
return ne({ width: e, height: t, color: l, className: r, onClick: h });
|
3094
|
-
case "arrowDown":
|
3095
3094
|
return re({ width: e, height: t, color: l, className: r, onClick: h });
|
3096
|
-
case "
|
3095
|
+
case "arrowDown":
|
3097
3096
|
return le({ width: e, height: t, color: l, className: r, onClick: h });
|
3098
|
-
case "
|
3097
|
+
case "info":
|
3099
3098
|
return ae({ width: e, height: t, color: l, className: r, onClick: h });
|
3100
|
-
case "
|
3099
|
+
case "arrowRight":
|
3101
3100
|
return he({ width: e, height: t, color: l, className: r, onClick: h });
|
3102
|
-
case "
|
3101
|
+
case "calendar":
|
3103
3102
|
return ce({ width: e, height: t, color: l, className: r, onClick: h });
|
3104
|
-
case "
|
3103
|
+
case "ok":
|
3105
3104
|
return de({ width: e, height: t, color: l, className: r, onClick: h });
|
3106
|
-
case "
|
3105
|
+
case "cancel":
|
3107
3106
|
return ge({ width: e, height: t, color: l, className: r, onClick: h });
|
3108
|
-
case "
|
3107
|
+
case "add":
|
3109
3108
|
return ue({ width: e, height: t, color: l, className: r, onClick: h });
|
3110
|
-
case "
|
3109
|
+
case "list":
|
3111
3110
|
return Ce({ width: e, height: t, color: l, className: r, onClick: h });
|
3112
|
-
case "
|
3111
|
+
case "dragAndDrop":
|
3113
3112
|
return pe({ width: e, height: t, color: l, className: r, onClick: h });
|
3114
|
-
case "
|
3113
|
+
case "filter":
|
3115
3114
|
return fe({ width: e, height: t, color: l, className: r, onClick: h });
|
3116
|
-
case "
|
3115
|
+
case "attention":
|
3117
3116
|
return we({ width: e, height: t, color: l, className: r, onClick: h });
|
3118
|
-
case "
|
3117
|
+
case "plus":
|
3119
3118
|
return me({ width: e, height: t, color: l, className: r, onClick: h });
|
3119
|
+
case "time":
|
3120
|
+
return ke({ width: e, height: t, color: l, className: r, onClick: h });
|
3120
3121
|
case "arrowDownLong":
|
3121
|
-
return
|
3122
|
+
return Le({
|
3122
3123
|
width: e,
|
3123
3124
|
height: t,
|
3124
3125
|
color: l,
|
@@ -3126,9 +3127,9 @@ const ne = ({
|
|
3126
3127
|
onClick: h
|
3127
3128
|
});
|
3128
3129
|
case "users":
|
3129
|
-
return
|
3130
|
+
return ve({ width: e, height: t, color: l, className: r, onClick: h });
|
3130
3131
|
case "mySkillsMatrix":
|
3131
|
-
return
|
3132
|
+
return Ne({
|
3132
3133
|
width: e,
|
3133
3134
|
height: t,
|
3134
3135
|
color: l,
|
@@ -3136,9 +3137,9 @@ const ne = ({
|
|
3136
3137
|
onClick: h
|
3137
3138
|
});
|
3138
3139
|
case "skills":
|
3139
|
-
return
|
3140
|
+
return xe({ width: e, height: t, color: l, className: r, onClick: h });
|
3140
3141
|
case "skillsMatrices":
|
3141
|
-
return
|
3142
|
+
return Re({
|
3142
3143
|
width: e,
|
3143
3144
|
height: t,
|
3144
3145
|
color: l,
|
@@ -3146,23 +3147,23 @@ const ne = ({
|
|
3146
3147
|
onClick: h
|
3147
3148
|
});
|
3148
3149
|
case "history":
|
3149
|
-
return Re({ width: e, height: t, color: l, className: r, onClick: h });
|
3150
|
-
case "logOut":
|
3151
3150
|
return Me({ width: e, height: t, color: l, className: r, onClick: h });
|
3152
|
-
case "
|
3151
|
+
case "logOut":
|
3153
3152
|
return ye({ width: e, height: t, color: l, className: r, onClick: h });
|
3154
|
-
case "
|
3153
|
+
case "settings":
|
3155
3154
|
return be({ width: e, height: t, color: l, className: r, onClick: h });
|
3156
|
-
case "
|
3155
|
+
case "addSkill":
|
3157
3156
|
return Ee({ width: e, height: t, color: l, className: r, onClick: h });
|
3158
|
-
case "
|
3157
|
+
case "conversation":
|
3159
3158
|
return _e({ width: e, height: t, color: l, className: r, onClick: h });
|
3160
|
-
case "
|
3159
|
+
case "trash":
|
3161
3160
|
return He({ width: e, height: t, color: l, className: r, onClick: h });
|
3162
|
-
case "
|
3161
|
+
case "settings4":
|
3163
3162
|
return Ve({ width: e, height: t, color: l, className: r, onClick: h });
|
3163
|
+
case "edit2":
|
3164
|
+
return Ie({ width: e, height: t, color: l, className: r, onClick: h });
|
3164
3165
|
case "notifications":
|
3165
|
-
return
|
3166
|
+
return Se({
|
3166
3167
|
width: e,
|
3167
3168
|
height: t,
|
3168
3169
|
color: l,
|
@@ -3172,7 +3173,7 @@ const ne = ({
|
|
3172
3173
|
case "success":
|
3173
3174
|
return Oe({ width: e, height: t, color: l, className: r, onClick: h });
|
3174
3175
|
case "attentionSmall":
|
3175
|
-
return
|
3176
|
+
return Ae({
|
3176
3177
|
width: e,
|
3177
3178
|
height: t,
|
3178
3179
|
color: l,
|
@@ -3180,11 +3181,11 @@ const ne = ({
|
|
3180
3181
|
onClick: h
|
3181
3182
|
});
|
3182
3183
|
case "errorSmall":
|
3183
|
-
return Ae({ width: e, height: t, color: l, className: r, onClick: h });
|
3184
|
-
case "infoMedium":
|
3185
3184
|
return Be({ width: e, height: t, color: l, className: r, onClick: h });
|
3185
|
+
case "infoMedium":
|
3186
|
+
return We({ width: e, height: t, color: l, className: r, onClick: h });
|
3186
3187
|
case "attentionMedium":
|
3187
|
-
return
|
3188
|
+
return je({
|
3188
3189
|
width: e,
|
3189
3190
|
height: t,
|
3190
3191
|
color: l,
|
@@ -3192,9 +3193,9 @@ const ne = ({
|
|
3192
3193
|
onClick: h
|
3193
3194
|
});
|
3194
3195
|
case "errorMedium":
|
3195
|
-
return
|
3196
|
+
return Ze({ width: e, height: t, color: l, className: r, onClick: h });
|
3196
3197
|
case "faviconSkills":
|
3197
|
-
return
|
3198
|
+
return Fe({
|
3198
3199
|
width: e,
|
3199
3200
|
height: t,
|
3200
3201
|
color: l,
|
@@ -3202,7 +3203,7 @@ const ne = ({
|
|
3202
3203
|
onClick: h
|
3203
3204
|
});
|
3204
3205
|
case "visibilityIcon":
|
3205
|
-
return
|
3206
|
+
return De({
|
3206
3207
|
width: e,
|
3207
3208
|
height: t,
|
3208
3209
|
color: l,
|
@@ -3210,7 +3211,7 @@ const ne = ({
|
|
3210
3211
|
onClick: h
|
3211
3212
|
});
|
3212
3213
|
case "visibilityOffIcon":
|
3213
|
-
return
|
3214
|
+
return Te({
|
3214
3215
|
width: e,
|
3215
3216
|
height: t,
|
3216
3217
|
color: l,
|
@@ -3218,7 +3219,7 @@ const ne = ({
|
|
3218
3219
|
onClick: h
|
3219
3220
|
});
|
3220
3221
|
case "selectArrowIcon":
|
3221
|
-
return
|
3222
|
+
return Ge({
|
3222
3223
|
width: e,
|
3223
3224
|
height: t,
|
3224
3225
|
color: l,
|
@@ -3226,7 +3227,7 @@ const ne = ({
|
|
3226
3227
|
onClick: h
|
3227
3228
|
});
|
3228
3229
|
case "expandArrowIcon":
|
3229
|
-
return
|
3230
|
+
return Ke({
|
3230
3231
|
width: e,
|
3231
3232
|
height: t,
|
3232
3233
|
color: l,
|
@@ -3234,7 +3235,7 @@ const ne = ({
|
|
3234
3235
|
onClick: h
|
3235
3236
|
});
|
3236
3237
|
case "expandActiveArrowIcon":
|
3237
|
-
return
|
3238
|
+
return Pe({
|
3238
3239
|
width: e,
|
3239
3240
|
height: t,
|
3240
3241
|
color: l,
|
@@ -3242,97 +3243,97 @@ const ne = ({
|
|
3242
3243
|
onClick: h
|
3243
3244
|
});
|
3244
3245
|
case "camera":
|
3245
|
-
return
|
3246
|
+
return $e({ width: e, height: t, color: l, className: r, onClick: h });
|
3246
3247
|
case "sortUp":
|
3247
3248
|
return Ye({ width: e, height: t, color: l, className: r, onClick: h });
|
3248
3249
|
case "sortDown":
|
3249
|
-
return $e({ width: e, height: t, color: l, className: r, onClick: h });
|
3250
|
-
case "logOut2":
|
3251
3250
|
return Ue({ width: e, height: t, color: l, className: r, onClick: h });
|
3252
|
-
case "
|
3251
|
+
case "logOut2":
|
3253
3252
|
return ze({ width: e, height: t, color: l, className: r, onClick: h });
|
3254
|
-
case "
|
3253
|
+
case "search":
|
3255
3254
|
return Je({ width: e, height: t, color: l, className: r, onClick: h });
|
3255
|
+
case "handRock":
|
3256
|
+
return Qe({ width: e, height: t, color: l, className: r, onClick: h });
|
3256
3257
|
case "arrowUpFilled":
|
3257
|
-
return
|
3258
|
+
return tt({ width: e, height: t, color: l, className: r, onClick: h });
|
3258
3259
|
case "arrowDownFilled":
|
3259
|
-
return
|
3260
|
+
return et({ width: e, height: t, color: l, className: r, onClick: h });
|
3260
3261
|
case "link":
|
3261
|
-
return
|
3262
|
+
return it({ width: e, height: t, color: l, className: r, onClick: h });
|
3262
3263
|
case "telegram":
|
3263
|
-
return
|
3264
|
+
return ot({ width: e, height: t, color: l, className: r, onClick: h });
|
3264
3265
|
case "mail":
|
3265
|
-
return
|
3266
|
+
return rt({ width: e, height: t, color: l, className: r, onClick: h });
|
3266
3267
|
case "github":
|
3267
|
-
return
|
3268
|
+
return st({ width: e, height: t, color: l, className: r, onClick: h });
|
3268
3269
|
case "linkedIn":
|
3269
|
-
return
|
3270
|
+
return nt({ width: e, height: t, color: l, className: r, onClick: h });
|
3270
3271
|
case "emptyStateIcon":
|
3271
|
-
return rt({ width: e, height: t, color: l, className: r, onClick: h });
|
3272
|
-
case "filtersIcon":
|
3273
3272
|
return lt({ width: e, height: t, color: l, className: r, onClick: h });
|
3274
|
-
case "
|
3273
|
+
case "filtersIcon":
|
3275
3274
|
return at({ width: e, height: t, color: l, className: r, onClick: h });
|
3276
|
-
case "
|
3275
|
+
case "dotMenuIcon":
|
3277
3276
|
return ht({ width: e, height: t, color: l, className: r, onClick: h });
|
3278
|
-
case "
|
3277
|
+
case "plusCircle":
|
3279
3278
|
return ct({ width: e, height: t, color: l, className: r, onClick: h });
|
3280
|
-
case "
|
3279
|
+
case "warning":
|
3281
3280
|
return dt({ width: e, height: t, color: l, className: r, onClick: h });
|
3282
|
-
case "
|
3281
|
+
case "back":
|
3283
3282
|
return gt({ width: e, height: t, color: l, className: r, onClick: h });
|
3283
|
+
case "bell":
|
3284
|
+
return ut({ width: e, height: t, color: l, className: r, onClick: h });
|
3284
3285
|
case "contract":
|
3285
|
-
return
|
3286
|
+
return pt({ width: e, height: t, color: l, className: r, onClick: h });
|
3286
3287
|
case "trash2":
|
3287
|
-
return
|
3288
|
+
return Ct({ width: e, height: t, color: l, className: r, onClick: h });
|
3288
3289
|
case "manager":
|
3289
|
-
return pt({ width: e, height: t, color: l, className: r, onClick: h });
|
3290
|
-
case "resourceManager":
|
3291
3290
|
return ft({ width: e, height: t, color: l, className: r, onClick: h });
|
3292
|
-
case "
|
3291
|
+
case "resourceManager":
|
3293
3292
|
return wt({ width: e, height: t, color: l, className: r, onClick: h });
|
3294
|
-
case "
|
3293
|
+
case "settings2":
|
3295
3294
|
return mt({ width: e, height: t, color: l, className: r, onClick: h });
|
3296
|
-
case "
|
3295
|
+
case "image":
|
3297
3296
|
return kt({ width: e, height: t, color: l, className: r, onClick: h });
|
3298
|
-
case "
|
3297
|
+
case "upload":
|
3299
3298
|
return Lt({ width: e, height: t, color: l, className: r, onClick: h });
|
3300
|
-
case "
|
3299
|
+
case "edit":
|
3301
3300
|
return vt({ width: e, height: t, color: l, className: r, onClick: h });
|
3302
|
-
case "
|
3301
|
+
case "location":
|
3303
3302
|
return Nt({ width: e, height: t, color: l, className: r, onClick: h });
|
3304
|
-
case "
|
3303
|
+
case "plus2":
|
3305
3304
|
return xt({ width: e, height: t, color: l, className: r, onClick: h });
|
3306
|
-
case "
|
3305
|
+
case "search2":
|
3307
3306
|
return Rt({ width: e, height: t, color: l, className: r, onClick: h });
|
3308
|
-
case "
|
3307
|
+
case "fastArrowLeft":
|
3309
3308
|
return Mt({ width: e, height: t, color: l, className: r, onClick: h });
|
3310
|
-
case "
|
3309
|
+
case "fastArrowRight":
|
3311
3310
|
return yt({ width: e, height: t, color: l, className: r, onClick: h });
|
3311
|
+
case "crossInCircle":
|
3312
|
+
return bt({ width: e, height: t, color: l, className: r, onClick: h });
|
3312
3313
|
case "arrowUp2":
|
3313
|
-
return
|
3314
|
+
return _t({ width: e, height: t, color: l, className: r, onClick: h });
|
3314
3315
|
case "arrowDown2":
|
3315
|
-
return
|
3316
|
+
return Et({ width: e, height: t, color: l, className: r, onClick: h });
|
3316
3317
|
case "filledArrowLeft":
|
3317
|
-
return _t({ width: e, height: t, color: l, className: r, onClick: h });
|
3318
|
-
case "filledArrowRight":
|
3319
3318
|
return Ht({ width: e, height: t, color: l, className: r, onClick: h });
|
3320
|
-
case "
|
3319
|
+
case "filledArrowRight":
|
3321
3320
|
return Vt({ width: e, height: t, color: l, className: r, onClick: h });
|
3322
|
-
case "
|
3321
|
+
case "burgerMenu":
|
3323
3322
|
return It({ width: e, height: t, color: l, className: r, onClick: h });
|
3323
|
+
case "signOut":
|
3324
|
+
return St({ width: e, height: t, color: l, className: r, onClick: h });
|
3324
3325
|
case "refresh":
|
3325
3326
|
return Ot({ width: e, height: t, color: l, className: r, onClick: h });
|
3326
3327
|
default:
|
3327
|
-
return /* @__PURE__ */ n(
|
3328
|
+
return /* @__PURE__ */ n(Y, { children: "No Icon provided" });
|
3328
3329
|
}
|
3329
3330
|
})() });
|
3330
|
-
}, { Title:
|
3331
|
+
}, { Title: At, Text: Bt } = B1, Wt = {
|
3331
3332
|
h1: 1,
|
3332
3333
|
h2: 2,
|
3333
3334
|
h3: 3,
|
3334
3335
|
h4: 4
|
3335
|
-
},
|
3336
|
+
}, jt = c1(
|
3336
3337
|
({
|
3337
3338
|
align: i = "inherit",
|
3338
3339
|
variant: e = "body1",
|
@@ -3345,17 +3346,17 @@ const ne = ({
|
|
3345
3346
|
const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
3346
3347
|
let g = `snmt-typography snmt-typography-${e}`;
|
3347
3348
|
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), a && (g += " collapsed"), d ? /* @__PURE__ */ n(
|
3348
|
-
|
3349
|
+
At,
|
3349
3350
|
{
|
3350
3351
|
className: g,
|
3351
3352
|
style: { color: t, whiteSpace: c },
|
3352
3353
|
onClick: o,
|
3353
|
-
level:
|
3354
|
+
level: Wt[e],
|
3354
3355
|
ref: r,
|
3355
3356
|
children: s
|
3356
3357
|
}
|
3357
3358
|
) : /* @__PURE__ */ n(
|
3358
|
-
|
3359
|
+
Bt,
|
3359
3360
|
{
|
3360
3361
|
className: g,
|
3361
3362
|
style: { color: t, whiteSpace: c },
|
@@ -3367,12 +3368,12 @@ const ne = ({
|
|
3367
3368
|
}
|
3368
3369
|
);
|
3369
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 || {});
|
3370
|
-
const
|
3371
|
+
const T1 = t1({
|
3371
3372
|
locale: "en",
|
3372
3373
|
theme: "light"
|
3373
3374
|
});
|
3374
|
-
|
3375
|
-
const
|
3375
|
+
T1.Provider;
|
3376
|
+
const Zt = ({
|
3376
3377
|
width: i = 20,
|
3377
3378
|
height: e = 20,
|
3378
3379
|
color: t = "#001E52",
|
@@ -3399,7 +3400,7 @@ const jt = ({
|
|
3399
3400
|
}
|
3400
3401
|
)
|
3401
3402
|
}
|
3402
|
-
),
|
3403
|
+
), Dt = ({
|
3403
3404
|
width: i = 20,
|
3404
3405
|
height: e = 20,
|
3405
3406
|
color: t = "#001E52",
|
@@ -3426,7 +3427,7 @@ const jt = ({
|
|
3426
3427
|
}
|
3427
3428
|
)
|
3428
3429
|
}
|
3429
|
-
),
|
3430
|
+
), Tt = ({
|
3430
3431
|
width: i = 16,
|
3431
3432
|
height: e = 16,
|
3432
3433
|
color: t = "#001E52",
|
@@ -3454,7 +3455,7 @@ const jt = ({
|
|
3454
3455
|
)
|
3455
3456
|
]
|
3456
3457
|
}
|
3457
|
-
),
|
3458
|
+
), Gt = ({
|
3458
3459
|
width: i = 20,
|
3459
3460
|
height: e = 20,
|
3460
3461
|
color: t = "#001E52",
|
@@ -3489,7 +3490,7 @@ const jt = ({
|
|
3489
3490
|
)
|
3490
3491
|
]
|
3491
3492
|
}
|
3492
|
-
),
|
3493
|
+
), Kt = ({
|
3493
3494
|
width: i = 18,
|
3494
3495
|
height: e = 18,
|
3495
3496
|
color: t = "#001E52",
|
@@ -3528,7 +3529,7 @@ const jt = ({
|
|
3528
3529
|
)
|
3529
3530
|
]
|
3530
3531
|
}
|
3531
|
-
),
|
3532
|
+
), Pt = ({
|
3532
3533
|
width: i = 20,
|
3533
3534
|
height: e = 20,
|
3534
3535
|
color: t = "#001E52",
|
@@ -3554,7 +3555,7 @@ const jt = ({
|
|
3554
3555
|
}
|
3555
3556
|
)
|
3556
3557
|
}
|
3557
|
-
),
|
3558
|
+
), Ft = ({
|
3558
3559
|
width: i = 20,
|
3559
3560
|
height: e = 20,
|
3560
3561
|
color: t = "#001E52",
|
@@ -3575,7 +3576,7 @@ const jt = ({
|
|
3575
3576
|
/* @__PURE__ */ n("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
3576
3577
|
]
|
3577
3578
|
}
|
3578
|
-
),
|
3579
|
+
), $t = ({
|
3579
3580
|
width: i = 20,
|
3580
3581
|
height: e = 20,
|
3581
3582
|
color: t = "#001E52",
|
@@ -3661,7 +3662,7 @@ const jt = ({
|
|
3661
3662
|
)
|
3662
3663
|
]
|
3663
3664
|
}
|
3664
|
-
),
|
3665
|
+
), Ut = ({
|
3665
3666
|
width: i = 20,
|
3666
3667
|
height: e = 20,
|
3667
3668
|
color: t = "#001E52",
|
@@ -3700,7 +3701,7 @@ const jt = ({
|
|
3700
3701
|
/* @__PURE__ */ n("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
3701
3702
|
]
|
3702
3703
|
}
|
3703
|
-
),
|
3704
|
+
), zt = ({
|
3704
3705
|
width: i = 16,
|
3705
3706
|
height: e = 12,
|
3706
3707
|
color: t = "#001E52",
|
@@ -3749,7 +3750,7 @@ const jt = ({
|
|
3749
3750
|
)
|
3750
3751
|
] })
|
3751
3752
|
}
|
3752
|
-
),
|
3753
|
+
), Jt = ({
|
3753
3754
|
width: i = 16,
|
3754
3755
|
height: e = 16,
|
3755
3756
|
color: t = "#001E52",
|
@@ -3783,7 +3784,7 @@ const jt = ({
|
|
3783
3784
|
)
|
3784
3785
|
]
|
3785
3786
|
}
|
3786
|
-
),
|
3787
|
+
), Qt = ({
|
3787
3788
|
width: i = 10,
|
3788
3789
|
height: e = 10,
|
3789
3790
|
color: t = "#001E52",
|
@@ -3822,7 +3823,7 @@ const jt = ({
|
|
3822
3823
|
)
|
3823
3824
|
] })
|
3824
3825
|
}
|
3825
|
-
),
|
3826
|
+
), qt = ({
|
3826
3827
|
width: i = 16,
|
3827
3828
|
height: e = 16,
|
3828
3829
|
color: t = "#001E52",
|
@@ -3858,7 +3859,7 @@ const jt = ({
|
|
3858
3859
|
)
|
3859
3860
|
]
|
3860
3861
|
}
|
3861
|
-
),
|
3862
|
+
), Xt = ({
|
3862
3863
|
width: i = 11,
|
3863
3864
|
height: e = 32,
|
3864
3865
|
color: t = "#001E52",
|
@@ -3896,7 +3897,7 @@ const jt = ({
|
|
3896
3897
|
/* @__PURE__ */ n("circle", { cx: "3", cy: "3", r: "3", fill: t })
|
3897
3898
|
]
|
3898
3899
|
}
|
3899
|
-
),
|
3900
|
+
), e2 = ({
|
3900
3901
|
width: i = 20,
|
3901
3902
|
height: e = 20,
|
3902
3903
|
color: t = "#001E52",
|
@@ -3943,7 +3944,7 @@ const jt = ({
|
|
3943
3944
|
)
|
3944
3945
|
]
|
3945
3946
|
}
|
3946
|
-
),
|
3947
|
+
), t2 = ({
|
3947
3948
|
width: i = 20,
|
3948
3949
|
height: e = 20,
|
3949
3950
|
color: t = "#001E52",
|
@@ -3976,7 +3977,7 @@ const jt = ({
|
|
3976
3977
|
)
|
3977
3978
|
]
|
3978
3979
|
}
|
3979
|
-
),
|
3980
|
+
), i2 = ({
|
3980
3981
|
width: i = 20,
|
3981
3982
|
height: e = 20,
|
3982
3983
|
color: t = "#001E52",
|
@@ -4023,7 +4024,7 @@ const jt = ({
|
|
4023
4024
|
)
|
4024
4025
|
]
|
4025
4026
|
}
|
4026
|
-
),
|
4027
|
+
), s2 = ({
|
4027
4028
|
width: i = 20,
|
4028
4029
|
height: e = 20,
|
4029
4030
|
color: t = "#001E52",
|
@@ -4056,7 +4057,7 @@ const jt = ({
|
|
4056
4057
|
)
|
4057
4058
|
]
|
4058
4059
|
}
|
4059
|
-
),
|
4060
|
+
), o2 = ({
|
4060
4061
|
width: i = 18,
|
4061
4062
|
height: e = 16,
|
4062
4063
|
color: t = "#001E52",
|
@@ -4095,7 +4096,7 @@ const jt = ({
|
|
4095
4096
|
)
|
4096
4097
|
]
|
4097
4098
|
}
|
4098
|
-
),
|
4099
|
+
), n2 = ({
|
4099
4100
|
width: i = 20,
|
4100
4101
|
height: e = 20,
|
4101
4102
|
color: t = "#001E52",
|
@@ -4128,7 +4129,7 @@ const jt = ({
|
|
4128
4129
|
)
|
4129
4130
|
]
|
4130
4131
|
}
|
4131
|
-
),
|
4132
|
+
), r2 = ({
|
4132
4133
|
width: i = 20,
|
4133
4134
|
height: e = 20,
|
4134
4135
|
color: t = "#001E52",
|
@@ -4152,7 +4153,7 @@ const jt = ({
|
|
4152
4153
|
}
|
4153
4154
|
)
|
4154
4155
|
}
|
4155
|
-
),
|
4156
|
+
), l2 = ({
|
4156
4157
|
width: i = 20,
|
4157
4158
|
height: e = 20,
|
4158
4159
|
color: t = "#001E52",
|
@@ -4199,7 +4200,7 @@ const jt = ({
|
|
4199
4200
|
)
|
4200
4201
|
]
|
4201
4202
|
}
|
4202
|
-
),
|
4203
|
+
), a2 = ({
|
4203
4204
|
width: i = 20,
|
4204
4205
|
height: e = 20,
|
4205
4206
|
color: t = "#001E52",
|
@@ -4232,7 +4233,7 @@ const jt = ({
|
|
4232
4233
|
)
|
4233
4234
|
]
|
4234
4235
|
}
|
4235
|
-
),
|
4236
|
+
), h2 = ({
|
4236
4237
|
width: i = 20,
|
4237
4238
|
height: e = 20,
|
4238
4239
|
color: t = "#001E52",
|
@@ -4265,7 +4266,7 @@ const jt = ({
|
|
4265
4266
|
)
|
4266
4267
|
]
|
4267
4268
|
}
|
4268
|
-
),
|
4269
|
+
), c2 = ({
|
4269
4270
|
width: i = 20,
|
4270
4271
|
height: e = 23,
|
4271
4272
|
color: t = "#001E52",
|
@@ -4326,7 +4327,7 @@ const jt = ({
|
|
4326
4327
|
)
|
4327
4328
|
]
|
4328
4329
|
}
|
4329
|
-
),
|
4330
|
+
), d2 = ({
|
4330
4331
|
width: i = 20,
|
4331
4332
|
height: e = 20,
|
4332
4333
|
color: t = "#001E52",
|
@@ -4366,7 +4367,7 @@ const jt = ({
|
|
4366
4367
|
)
|
4367
4368
|
]
|
4368
4369
|
}
|
4369
|
-
),
|
4370
|
+
), g2 = ({
|
4370
4371
|
width: i = 32,
|
4371
4372
|
height: e = 25,
|
4372
4373
|
color: t = "#001E52",
|
@@ -4394,7 +4395,7 @@ const jt = ({
|
|
4394
4395
|
)
|
4395
4396
|
]
|
4396
4397
|
}
|
4397
|
-
),
|
4398
|
+
), u2 = ({
|
4398
4399
|
width: i = 14,
|
4399
4400
|
height: e = 14,
|
4400
4401
|
color: t = "#10B981",
|
@@ -4423,7 +4424,7 @@ const jt = ({
|
|
4423
4424
|
)
|
4424
4425
|
]
|
4425
4426
|
}
|
4426
|
-
),
|
4427
|
+
), C2 = ({
|
4427
4428
|
width: i = 11,
|
4428
4429
|
height: e = 11,
|
4429
4430
|
color: t = "#FFB020",
|
@@ -4457,7 +4458,7 @@ const jt = ({
|
|
4457
4458
|
)
|
4458
4459
|
]
|
4459
4460
|
}
|
4460
|
-
),
|
4461
|
+
), p2 = ({
|
4461
4462
|
width: i = 10,
|
4462
4463
|
height: e = 10,
|
4463
4464
|
color: t = "#88A4FF",
|
@@ -4505,7 +4506,7 @@ const jt = ({
|
|
4505
4506
|
)
|
4506
4507
|
]
|
4507
4508
|
}
|
4508
|
-
),
|
4509
|
+
), f2 = ({
|
4509
4510
|
width: i = 14,
|
4510
4511
|
height: e = 14,
|
4511
4512
|
color: t = "#8E8E93",
|
@@ -4533,7 +4534,7 @@ const jt = ({
|
|
4533
4534
|
)
|
4534
4535
|
]
|
4535
4536
|
}
|
4536
|
-
),
|
4537
|
+
), w2 = ({
|
4537
4538
|
width: i = 14,
|
4538
4539
|
height: e = 14,
|
4539
4540
|
color: t = "#FFB020",
|
@@ -4567,7 +4568,7 @@ const jt = ({
|
|
4567
4568
|
)
|
4568
4569
|
]
|
4569
4570
|
}
|
4570
|
-
),
|
4571
|
+
), m2 = ({
|
4571
4572
|
width: i = 14,
|
4572
4573
|
height: e = 14,
|
4573
4574
|
color: t = "#D0421B",
|
@@ -4615,7 +4616,7 @@ const jt = ({
|
|
4615
4616
|
)
|
4616
4617
|
]
|
4617
4618
|
}
|
4618
|
-
),
|
4619
|
+
), k2 = ({
|
4619
4620
|
width: i = 20,
|
4620
4621
|
height: e = 20,
|
4621
4622
|
color: t = "#070739",
|
@@ -4645,7 +4646,7 @@ const jt = ({
|
|
4645
4646
|
/* @__PURE__ */ n("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
4646
4647
|
]
|
4647
4648
|
}
|
4648
|
-
),
|
4649
|
+
), L2 = ({
|
4649
4650
|
width: i = 20,
|
4650
4651
|
height: e = 20,
|
4651
4652
|
color: t = "#070739",
|
@@ -4683,7 +4684,7 @@ const jt = ({
|
|
4683
4684
|
)
|
4684
4685
|
]
|
4685
4686
|
}
|
4686
|
-
),
|
4687
|
+
), v2 = ({
|
4687
4688
|
width: i = 9,
|
4688
4689
|
height: e = 5,
|
4689
4690
|
color: t = "#001E52",
|
@@ -4709,7 +4710,7 @@ const jt = ({
|
|
4709
4710
|
}
|
4710
4711
|
)
|
4711
4712
|
}
|
4712
|
-
),
|
4713
|
+
), N2 = ({
|
4713
4714
|
width: i = 20,
|
4714
4715
|
height: e = 20,
|
4715
4716
|
color: t = "#F2F2F7",
|
@@ -4738,7 +4739,7 @@ const jt = ({
|
|
4738
4739
|
)
|
4739
4740
|
]
|
4740
4741
|
}
|
4741
|
-
),
|
4742
|
+
), x2 = ({
|
4742
4743
|
width: i = 20,
|
4743
4744
|
height: e = 20,
|
4744
4745
|
color: t = "#004ED7",
|
@@ -4767,7 +4768,7 @@ const jt = ({
|
|
4767
4768
|
)
|
4768
4769
|
]
|
4769
4770
|
}
|
4770
|
-
),
|
4771
|
+
), R2 = ({
|
4771
4772
|
width: i = 248,
|
4772
4773
|
height: e = 248,
|
4773
4774
|
color: t = "#070739",
|
@@ -4804,7 +4805,7 @@ const jt = ({
|
|
4804
4805
|
)
|
4805
4806
|
]
|
4806
4807
|
}
|
4807
|
-
),
|
4808
|
+
), M2 = ({
|
4808
4809
|
width: i = 24,
|
4809
4810
|
height: e = 24,
|
4810
4811
|
color: t = "#001E52",
|
@@ -4843,7 +4844,7 @@ const jt = ({
|
|
4843
4844
|
)
|
4844
4845
|
]
|
4845
4846
|
}
|
4846
|
-
),
|
4847
|
+
), y2 = ({
|
4847
4848
|
width: i = 10,
|
4848
4849
|
height: e = 10,
|
4849
4850
|
color: t = "#001E52",
|
@@ -4872,7 +4873,7 @@ const jt = ({
|
|
4872
4873
|
)
|
4873
4874
|
]
|
4874
4875
|
}
|
4875
|
-
),
|
4876
|
+
), b2 = ({
|
4876
4877
|
width: i = 10,
|
4877
4878
|
height: e = 10,
|
4878
4879
|
color: t = "#001E52",
|
@@ -4909,7 +4910,7 @@ const jt = ({
|
|
4909
4910
|
)
|
4910
4911
|
]
|
4911
4912
|
}
|
4912
|
-
),
|
4913
|
+
), E2 = ({
|
4913
4914
|
width: i = 24,
|
4914
4915
|
height: e = 24,
|
4915
4916
|
color: t = k.GREY_DARK_5,
|
@@ -4948,7 +4949,7 @@ const jt = ({
|
|
4948
4949
|
)
|
4949
4950
|
]
|
4950
4951
|
}
|
4951
|
-
),
|
4952
|
+
), _2 = ({
|
4952
4953
|
width: i = 20,
|
4953
4954
|
height: e = 20,
|
4954
4955
|
color: t = k.GREY_DARK_1,
|
@@ -4981,7 +4982,7 @@ const jt = ({
|
|
4981
4982
|
)
|
4982
4983
|
]
|
4983
4984
|
}
|
4984
|
-
),
|
4985
|
+
), H2 = ({
|
4985
4986
|
width: i = 81,
|
4986
4987
|
height: e = 80,
|
4987
4988
|
color: t = k.GREY_DARK_5,
|
@@ -5030,7 +5031,7 @@ const jt = ({
|
|
5030
5031
|
)
|
5031
5032
|
]
|
5032
5033
|
}
|
5033
|
-
),
|
5034
|
+
), V2 = ({
|
5034
5035
|
className: i,
|
5035
5036
|
color: e = k.GREY_DARK_5,
|
5036
5037
|
height: t = 20,
|
@@ -5057,7 +5058,7 @@ const jt = ({
|
|
5057
5058
|
}
|
5058
5059
|
)
|
5059
5060
|
}
|
5060
|
-
),
|
5061
|
+
), I2 = ({
|
5061
5062
|
className: i,
|
5062
5063
|
color: e = k.GREY_DARK_5,
|
5063
5064
|
height: t = 20,
|
@@ -5084,7 +5085,7 @@ const jt = ({
|
|
5084
5085
|
}
|
5085
5086
|
)
|
5086
5087
|
}
|
5087
|
-
),
|
5088
|
+
), S2 = ({
|
5088
5089
|
className: i,
|
5089
5090
|
color: e = k.GREY_DARK_5,
|
5090
5091
|
height: t = 5,
|
@@ -5133,7 +5134,7 @@ const jt = ({
|
|
5133
5134
|
}
|
5134
5135
|
)
|
5135
5136
|
}
|
5136
|
-
),
|
5137
|
+
), A2 = ({
|
5137
5138
|
className: i,
|
5138
5139
|
color: e = k.GREY_DARK_5,
|
5139
5140
|
height: t = 24,
|
@@ -5172,7 +5173,7 @@ const jt = ({
|
|
5172
5173
|
)
|
5173
5174
|
]
|
5174
5175
|
}
|
5175
|
-
),
|
5176
|
+
), B2 = ({
|
5176
5177
|
className: i,
|
5177
5178
|
color: e = k.GREY_DARK_5,
|
5178
5179
|
height: t = 24,
|
@@ -5211,7 +5212,7 @@ const jt = ({
|
|
5211
5212
|
)
|
5212
5213
|
]
|
5213
5214
|
}
|
5214
|
-
),
|
5215
|
+
), W2 = ({
|
5215
5216
|
className: i,
|
5216
5217
|
color: e = k.GREY_DARK_5,
|
5217
5218
|
height: t = 24,
|
@@ -5238,7 +5239,7 @@ const jt = ({
|
|
5238
5239
|
}
|
5239
5240
|
)
|
5240
5241
|
}
|
5241
|
-
),
|
5242
|
+
), j2 = ({
|
5242
5243
|
className: i,
|
5243
5244
|
color: e = k.GREY_DARK_5,
|
5244
5245
|
height: t = 24,
|
@@ -5297,7 +5298,7 @@ const jt = ({
|
|
5297
5298
|
)
|
5298
5299
|
]
|
5299
5300
|
}
|
5300
|
-
),
|
5301
|
+
), Z2 = ({
|
5301
5302
|
className: i,
|
5302
5303
|
color: e = k.GREY_DARK_5,
|
5303
5304
|
height: t = 24,
|
@@ -5334,7 +5335,7 @@ const jt = ({
|
|
5334
5335
|
)
|
5335
5336
|
]
|
5336
5337
|
}
|
5337
|
-
),
|
5338
|
+
), D2 = ({
|
5338
5339
|
className: i,
|
5339
5340
|
color: e = k.GREY_DARK_3,
|
5340
5341
|
height: t = 14,
|
@@ -5371,7 +5372,7 @@ const jt = ({
|
|
5371
5372
|
)
|
5372
5373
|
]
|
5373
5374
|
}
|
5374
|
-
),
|
5375
|
+
), T2 = ({
|
5375
5376
|
className: i,
|
5376
5377
|
color: e = k.GREY_DARK_5,
|
5377
5378
|
height: t = 18,
|
@@ -5398,7 +5399,7 @@ const jt = ({
|
|
5398
5399
|
}
|
5399
5400
|
)
|
5400
5401
|
}
|
5401
|
-
),
|
5402
|
+
), G2 = ({
|
5402
5403
|
className: i,
|
5403
5404
|
color: e = k.GREY_DARK_5,
|
5404
5405
|
height: t = 24,
|
@@ -5450,7 +5451,7 @@ const jt = ({
|
|
5450
5451
|
)
|
5451
5452
|
]
|
5452
5453
|
}
|
5453
|
-
),
|
5454
|
+
), K2 = ({
|
5454
5455
|
className: i,
|
5455
5456
|
color: e = k.GREY_DARK_5,
|
5456
5457
|
height: t = 24,
|
@@ -5487,7 +5488,7 @@ const jt = ({
|
|
5487
5488
|
)
|
5488
5489
|
]
|
5489
5490
|
}
|
5490
|
-
),
|
5491
|
+
), P2 = ({
|
5491
5492
|
className: i,
|
5492
5493
|
color: e = k.NOTIFICATION_WARNING_DARK,
|
5493
5494
|
height: t = 37,
|
@@ -5526,7 +5527,7 @@ const jt = ({
|
|
5526
5527
|
)
|
5527
5528
|
]
|
5528
5529
|
}
|
5529
|
-
),
|
5530
|
+
), F2 = ({
|
5530
5531
|
className: i,
|
5531
5532
|
color: e = k.GREY_DARK_5,
|
5532
5533
|
height: t = 24,
|
@@ -5552,7 +5553,7 @@ const jt = ({
|
|
5552
5553
|
}
|
5553
5554
|
)
|
5554
5555
|
}
|
5555
|
-
),
|
5556
|
+
), $2 = ({
|
5556
5557
|
className: i,
|
5557
5558
|
color: e = k.GREY_DARK_5,
|
5558
5559
|
height: t = 24,
|
@@ -5630,7 +5631,7 @@ const jt = ({
|
|
5630
5631
|
)
|
5631
5632
|
]
|
5632
5633
|
}
|
5633
|
-
),
|
5634
|
+
), U2 = ({
|
5634
5635
|
className: i,
|
5635
5636
|
color: e = k.GREY_DARK_5,
|
5636
5637
|
height: t = 24,
|
@@ -5699,7 +5700,7 @@ const jt = ({
|
|
5699
5700
|
)
|
5700
5701
|
]
|
5701
5702
|
}
|
5702
|
-
),
|
5703
|
+
), z2 = ({
|
5703
5704
|
className: i,
|
5704
5705
|
color: e = k.GREY_DARK_5,
|
5705
5706
|
height: t = 24,
|
@@ -5738,7 +5739,7 @@ const jt = ({
|
|
5738
5739
|
)
|
5739
5740
|
]
|
5740
5741
|
}
|
5741
|
-
),
|
5742
|
+
), J2 = ({
|
5742
5743
|
className: i,
|
5743
5744
|
color: e = k.GREY_DARK_5,
|
5744
5745
|
height: t = 24,
|
@@ -5795,7 +5796,7 @@ const jt = ({
|
|
5795
5796
|
)
|
5796
5797
|
]
|
5797
5798
|
}
|
5798
|
-
),
|
5799
|
+
), Q2 = ({
|
5799
5800
|
className: i,
|
5800
5801
|
color: e = k.GREY_DARK_5,
|
5801
5802
|
height: t = 24,
|
@@ -5834,7 +5835,7 @@ const jt = ({
|
|
5834
5835
|
)
|
5835
5836
|
]
|
5836
5837
|
}
|
5837
|
-
),
|
5838
|
+
), q2 = ({
|
5838
5839
|
className: i,
|
5839
5840
|
color: e = k.GREY_DARK_5,
|
5840
5841
|
height: t = 24,
|
@@ -5883,7 +5884,7 @@ const jt = ({
|
|
5883
5884
|
)
|
5884
5885
|
]
|
5885
5886
|
}
|
5886
|
-
),
|
5887
|
+
), X2 = ({
|
5887
5888
|
className: i,
|
5888
5889
|
color: e = k.GREY_DARK_5,
|
5889
5890
|
height: t = 24,
|
@@ -5922,7 +5923,7 @@ const jt = ({
|
|
5922
5923
|
)
|
5923
5924
|
]
|
5924
5925
|
}
|
5925
|
-
),
|
5926
|
+
), ei = ({
|
5926
5927
|
className: i,
|
5927
5928
|
color: e = k.GREY_DARK_5,
|
5928
5929
|
height: t = 24,
|
@@ -5949,7 +5950,7 @@ const jt = ({
|
|
5949
5950
|
}
|
5950
5951
|
)
|
5951
5952
|
}
|
5952
|
-
),
|
5953
|
+
), ti = ({
|
5953
5954
|
className: i,
|
5954
5955
|
color: e = k.GREY_DARK_5,
|
5955
5956
|
height: t = 24,
|
@@ -5987,7 +5988,7 @@ const jt = ({
|
|
5987
5988
|
)
|
5988
5989
|
]
|
5989
5990
|
}
|
5990
|
-
),
|
5991
|
+
), ii = ({
|
5991
5992
|
className: i,
|
5992
5993
|
color: e = k.GREY_DARK_5,
|
5993
5994
|
height: t = 24,
|
@@ -6008,7 +6009,7 @@ const jt = ({
|
|
6008
6009
|
/* @__PURE__ */ n("path", { d: "M12 8L4 8", stroke: e, strokeWidth: "1.7", strokeLinecap: "round" })
|
6009
6010
|
]
|
6010
6011
|
}
|
6011
|
-
),
|
6012
|
+
), si = ({
|
6012
6013
|
className: i,
|
6013
6014
|
color: e = k.GREY_DARK_5,
|
6014
6015
|
height: t = 24,
|
@@ -6047,7 +6048,7 @@ const jt = ({
|
|
6047
6048
|
)
|
6048
6049
|
]
|
6049
6050
|
}
|
6050
|
-
),
|
6051
|
+
), oi = ({
|
6051
6052
|
className: i,
|
6052
6053
|
color: e = k.GREY_DARK_5,
|
6053
6054
|
height: t = 24,
|
@@ -6086,7 +6087,7 @@ const jt = ({
|
|
6086
6087
|
)
|
6087
6088
|
]
|
6088
6089
|
}
|
6089
|
-
),
|
6090
|
+
), ni = ({
|
6090
6091
|
className: i,
|
6091
6092
|
color: e = k.GREY_DARK_5,
|
6092
6093
|
height: t = 24,
|
@@ -6125,7 +6126,7 @@ const jt = ({
|
|
6125
6126
|
)
|
6126
6127
|
]
|
6127
6128
|
}
|
6128
|
-
),
|
6129
|
+
), ri = ({
|
6129
6130
|
className: i,
|
6130
6131
|
color: e = k.GREY_DARK_2,
|
6131
6132
|
height: t = 16,
|
@@ -6151,7 +6152,7 @@ const jt = ({
|
|
6151
6152
|
}
|
6152
6153
|
)
|
6153
6154
|
}
|
6154
|
-
),
|
6155
|
+
), li = ({
|
6155
6156
|
className: i,
|
6156
6157
|
color: e = k.GREY_DARK_5,
|
6157
6158
|
height: t = 20,
|
@@ -6180,7 +6181,7 @@ const jt = ({
|
|
6180
6181
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_3992_5989", children: /* @__PURE__ */ n("rect", { width: "20", height: "20", fill: "white" }) }) })
|
6181
6182
|
]
|
6182
6183
|
}
|
6183
|
-
),
|
6184
|
+
), ai = ({
|
6184
6185
|
className: i,
|
6185
6186
|
color: e = k.GREY_DARK_5,
|
6186
6187
|
height: t = 20,
|
@@ -6209,7 +6210,7 @@ const jt = ({
|
|
6209
6210
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_3992_5988", children: /* @__PURE__ */ n("rect", { width: "20", height: "20", fill: "white" }) }) })
|
6210
6211
|
]
|
6211
6212
|
}
|
6212
|
-
),
|
6213
|
+
), hi = ({
|
6213
6214
|
className: i,
|
6214
6215
|
color: e = k.GREY_DARK_5,
|
6215
6216
|
height: t = 20,
|
@@ -6238,7 +6239,7 @@ const jt = ({
|
|
6238
6239
|
)
|
6239
6240
|
]
|
6240
6241
|
}
|
6241
|
-
),
|
6242
|
+
), ci = ({
|
6242
6243
|
className: i,
|
6243
6244
|
color: e = k.GREY_DARK_5,
|
6244
6245
|
height: t = 20,
|
@@ -6267,7 +6268,7 @@ const jt = ({
|
|
6267
6268
|
)
|
6268
6269
|
]
|
6269
6270
|
}
|
6270
|
-
),
|
6271
|
+
), di = ({
|
6271
6272
|
className: i,
|
6272
6273
|
color: e = "#001E52",
|
6273
6274
|
height: t = 24,
|
@@ -6293,7 +6294,7 @@ const jt = ({
|
|
6293
6294
|
}
|
6294
6295
|
)
|
6295
6296
|
}
|
6296
|
-
),
|
6297
|
+
), gi = ({
|
6297
6298
|
className: i,
|
6298
6299
|
color: e = "#131314",
|
6299
6300
|
height: t = 20,
|
@@ -6321,7 +6322,7 @@ const jt = ({
|
|
6321
6322
|
}
|
6322
6323
|
)
|
6323
6324
|
}
|
6324
|
-
),
|
6325
|
+
), ui = ({
|
6325
6326
|
className: i,
|
6326
6327
|
color: e = "#001E52",
|
6327
6328
|
height: t = 24,
|
@@ -6359,7 +6360,7 @@ const jt = ({
|
|
6359
6360
|
)
|
6360
6361
|
] }) })
|
6361
6362
|
}
|
6362
|
-
),
|
6363
|
+
), Ci = ({
|
6363
6364
|
name: i,
|
6364
6365
|
width: e,
|
6365
6366
|
height: t,
|
@@ -6368,49 +6369,49 @@ const jt = ({
|
|
6368
6369
|
disabled: a = !1,
|
6369
6370
|
onClick: c
|
6370
6371
|
}) => {
|
6371
|
-
const [r, d] =
|
6372
|
+
const [r, d] = S(o), { theme: g } = i1(T1), l = a ? g && g === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : s, h = a ? void 0 : c;
|
6372
6373
|
return O(() => {
|
6373
6374
|
if (o) {
|
6374
6375
|
h && !a && d(`${o} clickable`);
|
6375
6376
|
return;
|
6376
6377
|
}
|
6377
6378
|
h && !a && d("clickable");
|
6378
|
-
}, [h, o, a]), /* @__PURE__ */ n(
|
6379
|
+
}, [h, o, a]), /* @__PURE__ */ n(Y, { children: (() => {
|
6379
6380
|
switch (i) {
|
6380
6381
|
case "nextIcon":
|
6381
|
-
return H2({ width: e, height: t, color: l, className: r, onClick: h });
|
6382
|
-
case "prevIcon":
|
6383
6382
|
return V2({ width: e, height: t, color: l, className: r, onClick: h });
|
6383
|
+
case "prevIcon":
|
6384
|
+
return I2({ width: e, height: t, color: l, className: r, onClick: h });
|
6384
6385
|
case "arrowUp":
|
6385
|
-
return jt({ width: e, height: t, color: l, className: r, onClick: h });
|
6386
|
-
case "arrowDown":
|
6387
6386
|
return Zt({ width: e, height: t, color: l, className: r, onClick: h });
|
6388
|
-
case "
|
6387
|
+
case "arrowDown":
|
6389
6388
|
return Dt({ width: e, height: t, color: l, className: r, onClick: h });
|
6390
|
-
case "
|
6389
|
+
case "info":
|
6391
6390
|
return Tt({ width: e, height: t, color: l, className: r, onClick: h });
|
6392
|
-
case "
|
6391
|
+
case "arrowRight":
|
6393
6392
|
return Gt({ width: e, height: t, color: l, className: r, onClick: h });
|
6394
|
-
case "
|
6393
|
+
case "calendar":
|
6395
6394
|
return Kt({ width: e, height: t, color: l, className: r, onClick: h });
|
6396
|
-
case "
|
6395
|
+
case "ok":
|
6397
6396
|
return Pt({ width: e, height: t, color: l, className: r, onClick: h });
|
6398
|
-
case "
|
6397
|
+
case "cancel":
|
6399
6398
|
return Ft({ width: e, height: t, color: l, className: r, onClick: h });
|
6399
|
+
case "add":
|
6400
|
+
return $t({ width: e, height: t, color: l, className: r, onClick: h });
|
6400
6401
|
case "list":
|
6401
6402
|
return Yt({ width: e, height: t, color: l, className: r, onClick: h });
|
6402
6403
|
case "dragAndDrop":
|
6403
|
-
return $t({ width: e, height: t, color: l, className: r, onClick: h });
|
6404
|
-
case "filter":
|
6405
6404
|
return Ut({ width: e, height: t, color: l, className: r, onClick: h });
|
6406
|
-
case "
|
6405
|
+
case "filter":
|
6407
6406
|
return zt({ width: e, height: t, color: l, className: r, onClick: h });
|
6408
|
-
case "
|
6407
|
+
case "attention":
|
6409
6408
|
return Jt({ width: e, height: t, color: l, className: r, onClick: h });
|
6410
|
-
case "
|
6409
|
+
case "plus":
|
6411
6410
|
return Qt({ width: e, height: t, color: l, className: r, onClick: h });
|
6411
|
+
case "time":
|
6412
|
+
return qt({ width: e, height: t, color: l, className: r, onClick: h });
|
6412
6413
|
case "arrowDownLong":
|
6413
|
-
return
|
6414
|
+
return Xt({
|
6414
6415
|
width: e,
|
6415
6416
|
height: t,
|
6416
6417
|
color: l,
|
@@ -6418,9 +6419,9 @@ const jt = ({
|
|
6418
6419
|
onClick: h
|
6419
6420
|
});
|
6420
6421
|
case "users":
|
6421
|
-
return
|
6422
|
+
return e2({ width: e, height: t, color: l, className: r, onClick: h });
|
6422
6423
|
case "mySkillsMatrix":
|
6423
|
-
return
|
6424
|
+
return t2({
|
6424
6425
|
width: e,
|
6425
6426
|
height: t,
|
6426
6427
|
color: l,
|
@@ -6428,9 +6429,9 @@ const jt = ({
|
|
6428
6429
|
onClick: h
|
6429
6430
|
});
|
6430
6431
|
case "skills":
|
6431
|
-
return
|
6432
|
+
return i2({ width: e, height: t, color: l, className: r, onClick: h });
|
6432
6433
|
case "skillsMatrices":
|
6433
|
-
return
|
6434
|
+
return s2({
|
6434
6435
|
width: e,
|
6435
6436
|
height: t,
|
6436
6437
|
color: l,
|
@@ -6438,23 +6439,23 @@ const jt = ({
|
|
6438
6439
|
onClick: h
|
6439
6440
|
});
|
6440
6441
|
case "history":
|
6441
|
-
return s2({ width: e, height: t, color: l, className: r, onClick: h });
|
6442
|
-
case "logOut":
|
6443
6442
|
return o2({ width: e, height: t, color: l, className: r, onClick: h });
|
6444
|
-
case "
|
6443
|
+
case "logOut":
|
6445
6444
|
return n2({ width: e, height: t, color: l, className: r, onClick: h });
|
6446
|
-
case "
|
6445
|
+
case "settings":
|
6447
6446
|
return r2({ width: e, height: t, color: l, className: r, onClick: h });
|
6448
|
-
case "
|
6447
|
+
case "addSkill":
|
6449
6448
|
return l2({ width: e, height: t, color: l, className: r, onClick: h });
|
6450
|
-
case "
|
6449
|
+
case "conversation":
|
6451
6450
|
return a2({ width: e, height: t, color: l, className: r, onClick: h });
|
6452
|
-
case "
|
6451
|
+
case "trash":
|
6453
6452
|
return h2({ width: e, height: t, color: l, className: r, onClick: h });
|
6454
|
-
case "
|
6453
|
+
case "settings4":
|
6455
6454
|
return c2({ width: e, height: t, color: l, className: r, onClick: h });
|
6455
|
+
case "edit2":
|
6456
|
+
return d2({ width: e, height: t, color: l, className: r, onClick: h });
|
6456
6457
|
case "notifications":
|
6457
|
-
return
|
6458
|
+
return g2({
|
6458
6459
|
width: e,
|
6459
6460
|
height: t,
|
6460
6461
|
color: l,
|
@@ -6462,9 +6463,9 @@ const jt = ({
|
|
6462
6463
|
onClick: h
|
6463
6464
|
});
|
6464
6465
|
case "success":
|
6465
|
-
return
|
6466
|
+
return u2({ width: e, height: t, color: l, className: r, onClick: h });
|
6466
6467
|
case "attentionSmall":
|
6467
|
-
return
|
6468
|
+
return C2({
|
6468
6469
|
width: e,
|
6469
6470
|
height: t,
|
6470
6471
|
color: l,
|
@@ -6472,11 +6473,11 @@ const jt = ({
|
|
6472
6473
|
onClick: h
|
6473
6474
|
});
|
6474
6475
|
case "errorSmall":
|
6475
|
-
return C2({ width: e, height: t, color: l, className: r, onClick: h });
|
6476
|
-
case "infoMedium":
|
6477
6476
|
return p2({ width: e, height: t, color: l, className: r, onClick: h });
|
6477
|
+
case "infoMedium":
|
6478
|
+
return f2({ width: e, height: t, color: l, className: r, onClick: h });
|
6478
6479
|
case "attentionMedium":
|
6479
|
-
return
|
6480
|
+
return w2({
|
6480
6481
|
width: e,
|
6481
6482
|
height: t,
|
6482
6483
|
color: l,
|
@@ -6484,9 +6485,9 @@ const jt = ({
|
|
6484
6485
|
onClick: h
|
6485
6486
|
});
|
6486
6487
|
case "errorMedium":
|
6487
|
-
return
|
6488
|
+
return m2({ width: e, height: t, color: l, className: r, onClick: h });
|
6488
6489
|
case "faviconSkills":
|
6489
|
-
return
|
6490
|
+
return R2({
|
6490
6491
|
width: e,
|
6491
6492
|
height: t,
|
6492
6493
|
color: l,
|
@@ -6494,7 +6495,7 @@ const jt = ({
|
|
6494
6495
|
onClick: h
|
6495
6496
|
});
|
6496
6497
|
case "visibilityIcon":
|
6497
|
-
return
|
6498
|
+
return k2({
|
6498
6499
|
width: e,
|
6499
6500
|
height: t,
|
6500
6501
|
color: l,
|
@@ -6502,7 +6503,7 @@ const jt = ({
|
|
6502
6503
|
onClick: h
|
6503
6504
|
});
|
6504
6505
|
case "visibilityOffIcon":
|
6505
|
-
return
|
6506
|
+
return L2({
|
6506
6507
|
width: e,
|
6507
6508
|
height: t,
|
6508
6509
|
color: l,
|
@@ -6510,7 +6511,7 @@ const jt = ({
|
|
6510
6511
|
onClick: h
|
6511
6512
|
});
|
6512
6513
|
case "selectArrowIcon":
|
6513
|
-
return
|
6514
|
+
return v2({
|
6514
6515
|
width: e,
|
6515
6516
|
height: t,
|
6516
6517
|
color: l,
|
@@ -6518,7 +6519,7 @@ const jt = ({
|
|
6518
6519
|
onClick: h
|
6519
6520
|
});
|
6520
6521
|
case "expandArrowIcon":
|
6521
|
-
return
|
6522
|
+
return N2({
|
6522
6523
|
width: e,
|
6523
6524
|
height: t,
|
6524
6525
|
color: l,
|
@@ -6526,7 +6527,7 @@ const jt = ({
|
|
6526
6527
|
onClick: h
|
6527
6528
|
});
|
6528
6529
|
case "expandActiveArrowIcon":
|
6529
|
-
return
|
6530
|
+
return x2({
|
6530
6531
|
width: e,
|
6531
6532
|
height: t,
|
6532
6533
|
color: l,
|
@@ -6534,109 +6535,109 @@ const jt = ({
|
|
6534
6535
|
onClick: h
|
6535
6536
|
});
|
6536
6537
|
case "camera":
|
6537
|
-
return R2({ width: e, height: t, color: l, className: r, onClick: h });
|
6538
|
-
case "sortUp":
|
6539
6538
|
return M2({ width: e, height: t, color: l, className: r, onClick: h });
|
6540
|
-
case "
|
6539
|
+
case "sortUp":
|
6541
6540
|
return y2({ width: e, height: t, color: l, className: r, onClick: h });
|
6542
|
-
case "
|
6541
|
+
case "sortDown":
|
6543
6542
|
return b2({ width: e, height: t, color: l, className: r, onClick: h });
|
6544
|
-
case "
|
6543
|
+
case "logOut2":
|
6545
6544
|
return E2({ width: e, height: t, color: l, className: r, onClick: h });
|
6546
|
-
case "
|
6545
|
+
case "search":
|
6547
6546
|
return _2({ width: e, height: t, color: l, className: r, onClick: h });
|
6547
|
+
case "handRock":
|
6548
|
+
return H2({ width: e, height: t, color: l, className: r, onClick: h });
|
6548
6549
|
case "arrowUpFilled":
|
6549
6550
|
return O2({ width: e, height: t, color: l, className: r, onClick: h });
|
6550
6551
|
case "arrowDownFilled":
|
6551
|
-
return I2({ width: e, height: t, color: l, className: r, onClick: h });
|
6552
|
-
case "link":
|
6553
6552
|
return S2({ width: e, height: t, color: l, className: r, onClick: h });
|
6553
|
+
case "link":
|
6554
|
+
return A2({ width: e, height: t, color: l, className: r, onClick: h });
|
6554
6555
|
case "telegram":
|
6555
|
-
return
|
6556
|
+
return W2({ width: e, height: t, color: l, className: r, onClick: h });
|
6556
6557
|
case "mail":
|
6557
|
-
return
|
6558
|
+
return Z2({ width: e, height: t, color: l, className: r, onClick: h });
|
6558
6559
|
case "github":
|
6559
|
-
return
|
6560
|
+
return B2({ width: e, height: t, color: l, className: r, onClick: h });
|
6560
6561
|
case "linkedIn":
|
6561
|
-
return
|
6562
|
+
return j2({ width: e, height: t, color: l, className: r, onClick: h });
|
6562
6563
|
case "emptyStateIcon":
|
6563
|
-
return Z2({ width: e, height: t, color: l, className: r, onClick: h });
|
6564
|
-
case "filtersIcon":
|
6565
6564
|
return D2({ width: e, height: t, color: l, className: r, onClick: h });
|
6566
|
-
case "
|
6565
|
+
case "filtersIcon":
|
6567
6566
|
return T2({ width: e, height: t, color: l, className: r, onClick: h });
|
6568
|
-
case "
|
6567
|
+
case "dotMenuIcon":
|
6569
6568
|
return G2({ width: e, height: t, color: l, className: r, onClick: h });
|
6570
|
-
case "
|
6569
|
+
case "plusCircle":
|
6571
6570
|
return K2({ width: e, height: t, color: l, className: r, onClick: h });
|
6572
|
-
case "
|
6571
|
+
case "warning":
|
6573
6572
|
return P2({ width: e, height: t, color: l, className: r, onClick: h });
|
6574
|
-
case "
|
6573
|
+
case "back":
|
6575
6574
|
return F2({ width: e, height: t, color: l, className: r, onClick: h });
|
6576
|
-
case "
|
6575
|
+
case "bell":
|
6577
6576
|
return $2({ width: e, height: t, color: l, className: r, onClick: h });
|
6577
|
+
case "contract":
|
6578
|
+
return U2({ width: e, height: t, color: l, className: r, onClick: h });
|
6578
6579
|
case "trash2":
|
6579
6580
|
return Y2({ width: e, height: t, color: l, className: r, onClick: h });
|
6580
6581
|
case "manager":
|
6581
|
-
return U2({ width: e, height: t, color: l, className: r, onClick: h });
|
6582
|
-
case "resourceManager":
|
6583
6582
|
return z2({ width: e, height: t, color: l, className: r, onClick: h });
|
6584
|
-
case "
|
6583
|
+
case "resourceManager":
|
6585
6584
|
return J2({ width: e, height: t, color: l, className: r, onClick: h });
|
6586
|
-
case "
|
6585
|
+
case "settings2":
|
6587
6586
|
return Q2({ width: e, height: t, color: l, className: r, onClick: h });
|
6588
|
-
case "
|
6587
|
+
case "image":
|
6589
6588
|
return q2({ width: e, height: t, color: l, className: r, onClick: h });
|
6590
|
-
case "
|
6589
|
+
case "upload":
|
6591
6590
|
return X2({ width: e, height: t, color: l, className: r, onClick: h });
|
6592
|
-
case "
|
6591
|
+
case "edit":
|
6593
6592
|
return ei({ width: e, height: t, color: l, className: r, onClick: h });
|
6594
|
-
case "
|
6593
|
+
case "location":
|
6595
6594
|
return ti({ width: e, height: t, color: l, className: r, onClick: h });
|
6596
|
-
case "
|
6595
|
+
case "plus2":
|
6597
6596
|
return ii({ width: e, height: t, color: l, className: r, onClick: h });
|
6598
|
-
case "
|
6597
|
+
case "search2":
|
6599
6598
|
return si({ width: e, height: t, color: l, className: r, onClick: h });
|
6600
|
-
case "
|
6599
|
+
case "fastArrowLeft":
|
6601
6600
|
return oi({ width: e, height: t, color: l, className: r, onClick: h });
|
6602
|
-
case "
|
6601
|
+
case "fastArrowRight":
|
6603
6602
|
return ni({ width: e, height: t, color: l, className: r, onClick: h });
|
6603
|
+
case "crossInCircle":
|
6604
|
+
return ri({ width: e, height: t, color: l, className: r, onClick: h });
|
6604
6605
|
case "arrowUp2":
|
6605
|
-
return
|
6606
|
+
return ai({ width: e, height: t, color: l, className: r, onClick: h });
|
6606
6607
|
case "arrowDown2":
|
6607
|
-
return
|
6608
|
+
return li({ width: e, height: t, color: l, className: r, onClick: h });
|
6608
6609
|
case "filledArrowLeft":
|
6609
|
-
return ai({ width: e, height: t, color: l, className: r, onClick: h });
|
6610
|
-
case "filledArrowRight":
|
6611
6610
|
return hi({ width: e, height: t, color: l, className: r, onClick: h });
|
6612
|
-
case "
|
6611
|
+
case "filledArrowRight":
|
6613
6612
|
return ci({ width: e, height: t, color: l, className: r, onClick: h });
|
6614
|
-
case "
|
6613
|
+
case "burgerMenu":
|
6615
6614
|
return di({ width: e, height: t, color: l, className: r, onClick: h });
|
6616
|
-
case "
|
6615
|
+
case "signOut":
|
6617
6616
|
return gi({ width: e, height: t, color: l, className: r, onClick: h });
|
6617
|
+
case "refresh":
|
6618
|
+
return ui({ width: e, height: t, color: l, className: r, onClick: h });
|
6618
6619
|
default:
|
6619
|
-
return /* @__PURE__ */ n(
|
6620
|
+
return /* @__PURE__ */ n(Y, { children: "No Icon provided" });
|
6620
6621
|
}
|
6621
6622
|
})() });
|
6622
6623
|
};
|
6623
|
-
var
|
6624
|
-
const
|
6624
|
+
var G1 = /* @__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))(G1 || {});
|
6625
|
+
const pi = t1({
|
6625
6626
|
locale: "en",
|
6626
6627
|
theme: "light"
|
6627
6628
|
});
|
6628
|
-
|
6629
|
-
const
|
6629
|
+
pi.Provider;
|
6630
|
+
const K1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o = !0 }) => {
|
6630
6631
|
const a = t === "small" ? 10 : 12.5;
|
6631
6632
|
return /* @__PURE__ */ n(
|
6632
|
-
|
6633
|
+
W1,
|
6633
6634
|
{
|
6634
6635
|
className: `snmt-tag ${t}`,
|
6635
6636
|
closeIcon: /* @__PURE__ */ n(
|
6636
|
-
|
6637
|
+
Ci,
|
6637
6638
|
{
|
6638
6639
|
name: "errorSmall",
|
6639
|
-
color:
|
6640
|
+
color: G1.GREY_DARK_2,
|
6640
6641
|
width: a,
|
6641
6642
|
height: a,
|
6642
6643
|
onClick: s
|
@@ -6645,15 +6646,15 @@ const G1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6645
6646
|
bordered: !1,
|
6646
6647
|
style: { width: e ?? "fit-content" },
|
6647
6648
|
closable: o,
|
6648
|
-
children: typeof i == "string" ? /* @__PURE__ */ n(
|
6649
|
+
children: typeof i == "string" ? /* @__PURE__ */ n(jt, { variant: t === "small" ? "body4" : "body2", children: i }) : i
|
6649
6650
|
}
|
6650
6651
|
);
|
6651
|
-
}, { Title:
|
6652
|
+
}, { Title: fi, Text: wi } = B1, mi = {
|
6652
6653
|
h1: 1,
|
6653
6654
|
h2: 2,
|
6654
6655
|
h3: 3,
|
6655
6656
|
h4: 4
|
6656
|
-
},
|
6657
|
+
}, P1 = c1(
|
6657
6658
|
({
|
6658
6659
|
align: i = "inherit",
|
6659
6660
|
variant: e = "body1",
|
@@ -6666,17 +6667,17 @@ const G1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6666
6667
|
const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
6667
6668
|
let g = `snmt-typography snmt-typography-${e}`;
|
6668
6669
|
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), a && (g += " collapsed"), d ? /* @__PURE__ */ n(
|
6669
|
-
|
6670
|
+
fi,
|
6670
6671
|
{
|
6671
6672
|
className: g,
|
6672
6673
|
style: { color: t, whiteSpace: c },
|
6673
6674
|
onClick: o,
|
6674
|
-
level:
|
6675
|
+
level: mi[e],
|
6675
6676
|
ref: r,
|
6676
6677
|
children: s
|
6677
6678
|
}
|
6678
6679
|
) : /* @__PURE__ */ n(
|
6679
|
-
|
6680
|
+
wi,
|
6680
6681
|
{
|
6681
6682
|
className: g,
|
6682
6683
|
style: { color: t, whiteSpace: c },
|
@@ -6686,7 +6687,7 @@ const G1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6686
6687
|
}
|
6687
6688
|
);
|
6688
6689
|
}
|
6689
|
-
),
|
6690
|
+
), ki = ({
|
6690
6691
|
children: i,
|
6691
6692
|
content: e,
|
6692
6693
|
isOpen: t,
|
@@ -6694,9 +6695,9 @@ const G1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6694
6695
|
placement: o = "topRight",
|
6695
6696
|
noPadding: a = !1
|
6696
6697
|
}) => {
|
6697
|
-
const [c, r] =
|
6698
|
+
const [c, r] = S(!1);
|
6698
6699
|
return /* @__PURE__ */ n(
|
6699
|
-
|
6700
|
+
se,
|
6700
6701
|
{
|
6701
6702
|
content: e,
|
6702
6703
|
arrow: !1,
|
@@ -6710,7 +6711,7 @@ const G1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6710
6711
|
children: /* @__PURE__ */ n("div", { className: "wrapper", children: i })
|
6711
6712
|
}
|
6712
6713
|
);
|
6713
|
-
},
|
6714
|
+
}, Li = ({
|
6714
6715
|
values: i,
|
6715
6716
|
onTagClose: e,
|
6716
6717
|
maxWidth: t,
|
@@ -6718,7 +6719,7 @@ const G1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6718
6719
|
options: o,
|
6719
6720
|
extraOptions: a
|
6720
6721
|
}) => {
|
6721
|
-
const [c, r] =
|
6722
|
+
const [c, r] = S(!1);
|
6722
6723
|
O(() => {
|
6723
6724
|
i.length || r(!1);
|
6724
6725
|
}, [i]);
|
@@ -6729,15 +6730,15 @@ const G1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6729
6730
|
return null;
|
6730
6731
|
const g = (l) => {
|
6731
6732
|
var h, C;
|
6732
|
-
return ((h = o == null ? void 0 : o.find((
|
6733
|
+
return ((h = o == null ? void 0 : o.find((f) => f.value === l)) == null ? void 0 : h.label) || ((C = a == null ? void 0 : a.find((f) => f.value === l)) == null ? void 0 : C.label) || l;
|
6733
6734
|
};
|
6734
6735
|
return /* @__PURE__ */ n("div", { onMouseDown: d, className: "wrapper", children: /* @__PURE__ */ n(
|
6735
|
-
|
6736
|
+
ki,
|
6736
6737
|
{
|
6737
6738
|
content: (
|
6738
6739
|
// 90: paddings + margins + gaps and so on
|
6739
|
-
/* @__PURE__ */ n("div", { style: { maxWidth: t - 90 }, children: /* @__PURE__ */ n(
|
6740
|
-
|
6740
|
+
/* @__PURE__ */ n("div", { style: { maxWidth: t - 90 }, children: /* @__PURE__ */ n(n1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: l }) => /* @__PURE__ */ n(
|
6741
|
+
K1,
|
6741
6742
|
{
|
6742
6743
|
onClose: () => e(l),
|
6743
6744
|
closable: !s,
|
@@ -6749,13 +6750,21 @@ const G1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6749
6750
|
placement: "bottomRight",
|
6750
6751
|
isOpen: c,
|
6751
6752
|
setIsOpen: r,
|
6752
|
-
children: /* @__PURE__ */ n(
|
6753
|
+
children: /* @__PURE__ */ n(W1, { className: `overflow-button ${c ? "open" : ""}`, bordered: !1, children: /* @__PURE__ */ u(P1, { variant: "body4", color: c ? $.BLUE_PRIMARY : void 0, children: [
|
6753
6754
|
i.length,
|
6754
6755
|
" more"
|
6755
6756
|
] }) })
|
6756
6757
|
}
|
6757
6758
|
) });
|
6758
|
-
},
|
6759
|
+
}, vi = ({ size: i = 30, color: e = "#004ed7" }) => {
|
6760
|
+
const t = `no-repeat linear-gradient(${e}
|
6761
|
+
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
6762
|
+
width: i,
|
6763
|
+
background: `${t} 0% 100%, ${t} 50% 100%, ${t} 100% 100%`,
|
6764
|
+
backgroundSize: "20% calc(200% + 20px)"
|
6765
|
+
};
|
6766
|
+
return /* @__PURE__ */ n("span", { className: "snmt-loader", style: s });
|
6767
|
+
}, Ni = c1(
|
6759
6768
|
({
|
6760
6769
|
value: i,
|
6761
6770
|
onChange: e,
|
@@ -6771,155 +6780,167 @@ const G1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6771
6780
|
onDropdownVisibleChange: h,
|
6772
6781
|
onScrollToEnd: C,
|
6773
6782
|
onPopupScroll: p,
|
6774
|
-
id:
|
6775
|
-
extraOptions:
|
6776
|
-
|
6777
|
-
|
6783
|
+
id: f,
|
6784
|
+
extraOptions: N,
|
6785
|
+
isLoading: v
|
6786
|
+
}, R) => {
|
6787
|
+
const [x, _] = S(!1), [L, y] = S(!1), [b, M] = S(!0), [I, U] = S(i), z = k1(null);
|
6778
6788
|
O(() => {
|
6779
|
-
|
6789
|
+
U(i);
|
6780
6790
|
}, [i]);
|
6781
|
-
const
|
6782
|
-
|
6783
|
-
},
|
6784
|
-
var
|
6785
|
-
return !!((
|
6786
|
-
},
|
6787
|
-
|
6788
|
-
},
|
6789
|
-
|
6790
|
-
},
|
6791
|
-
if (
|
6792
|
-
const
|
6793
|
-
e == null || e(
|
6791
|
+
const Z = (w) => {
|
6792
|
+
_(w), h && h(w);
|
6793
|
+
}, L1 = (w, E) => {
|
6794
|
+
var j;
|
6795
|
+
return !!((j = E == null ? void 0 : E.label) != null && j.toString().toLowerCase().includes(w.toLowerCase()));
|
6796
|
+
}, g1 = () => {
|
6797
|
+
y(!0);
|
6798
|
+
}, D = () => {
|
6799
|
+
y(!1);
|
6800
|
+
}, A = (w) => {
|
6801
|
+
if (U(w), s) {
|
6802
|
+
const j = w;
|
6803
|
+
e == null || e(j);
|
6794
6804
|
return;
|
6795
6805
|
}
|
6796
|
-
const E =
|
6806
|
+
const E = w;
|
6797
6807
|
e == null || e(E);
|
6798
|
-
},
|
6808
|
+
}, K = () => {
|
6799
6809
|
if (s) {
|
6800
|
-
|
6810
|
+
A([]);
|
6801
6811
|
return;
|
6802
6812
|
}
|
6803
|
-
|
6804
|
-
},
|
6805
|
-
const E =
|
6806
|
-
|
6807
|
-
},
|
6813
|
+
A("");
|
6814
|
+
}, J = (w) => {
|
6815
|
+
const E = I.filter((j) => j !== w);
|
6816
|
+
A(E), U(E);
|
6817
|
+
}, V = (w) => (I == null ? void 0 : I.indexOf(w)) === 0 ? (
|
6808
6818
|
// if the search input is empty
|
6809
6819
|
// then display the placeholder, else do not display it
|
6810
|
-
/* @__PURE__ */ n("span", { className: "custom-placeholder", children:
|
6811
|
-
) : /* @__PURE__ */ n(
|
6812
|
-
|
6813
|
-
},
|
6814
|
-
const { target: E } =
|
6815
|
-
E.scrollTop + E.offsetHeight >= E.scrollHeight - g && (C == null || C(!0)), p && await p(
|
6816
|
-
},
|
6817
|
-
var E,
|
6818
|
-
return ((E = a.find((
|
6820
|
+
/* @__PURE__ */ n("span", { className: "custom-placeholder", children: b ? t : "" })
|
6821
|
+
) : /* @__PURE__ */ n(Y, {}), W = (w) => {
|
6822
|
+
w.preventDefault(), w.stopPropagation();
|
6823
|
+
}, T = async (w) => {
|
6824
|
+
const { target: E } = w;
|
6825
|
+
E.scrollTop + E.offsetHeight >= E.scrollHeight - g && (C == null || C(!0)), p && await p(w);
|
6826
|
+
}, Q = (w) => {
|
6827
|
+
var E, j;
|
6828
|
+
return ((E = a.find((u1) => u1.value === w)) == null ? void 0 : E.label) || ((j = N == null ? void 0 : N.find((u1) => u1.value === w)) == null ? void 0 : j.label) || w;
|
6819
6829
|
};
|
6820
6830
|
return /* @__PURE__ */ u(
|
6821
6831
|
"div",
|
6822
6832
|
{
|
6823
|
-
className: `snmt-select ${
|
6833
|
+
className: `snmt-select ${L ? "snmt-select-focused" : ""}
|
6824
6834
|
${s ? "" : "snmt-select-single"}`,
|
6825
|
-
ref:
|
6835
|
+
ref: z,
|
6826
6836
|
style: { width: c },
|
6827
6837
|
children: [
|
6828
6838
|
/* @__PURE__ */ n(
|
6829
|
-
|
6839
|
+
X1,
|
6830
6840
|
{
|
6831
6841
|
className: "snmt-select-blank",
|
6832
|
-
id:
|
6833
|
-
ref:
|
6842
|
+
id: f,
|
6843
|
+
ref: R,
|
6834
6844
|
showSearch: !!o,
|
6835
|
-
filterOption: o &&
|
6836
|
-
onDropdownVisibleChange:
|
6845
|
+
filterOption: o && L1,
|
6846
|
+
onDropdownVisibleChange: Z,
|
6837
6847
|
placeholder: t ? d ? `${t}*` : t : void 0,
|
6838
6848
|
disabled: r,
|
6839
|
-
value:
|
6840
|
-
labelRender: (
|
6849
|
+
value: I || void 0,
|
6850
|
+
labelRender: (w) => Q(w.value),
|
6841
6851
|
mode: s === "filter" ? "multiple" : s,
|
6842
|
-
onChange:
|
6843
|
-
onFocus:
|
6844
|
-
onBlur:
|
6845
|
-
onSearch: (
|
6846
|
-
|
6852
|
+
onChange: A,
|
6853
|
+
onFocus: g1,
|
6854
|
+
onBlur: D,
|
6855
|
+
onSearch: (w) => {
|
6856
|
+
M(!w), l && l(w);
|
6847
6857
|
},
|
6848
|
-
onSelect: () =>
|
6849
|
-
onDeselect: () =>
|
6858
|
+
onSelect: () => M(!0),
|
6859
|
+
onDeselect: () => M(!0),
|
6850
6860
|
tagRender: s === "filter" ? (
|
6851
6861
|
// HACK to prevent showing selected options in input
|
6852
|
-
(
|
6853
|
-
) : (
|
6854
|
-
const E = typeof
|
6855
|
-
return /* @__PURE__ */ n("div", { onMouseDown:
|
6856
|
-
|
6862
|
+
(w) => V(w.value)
|
6863
|
+
) : (w) => {
|
6864
|
+
const E = typeof w.label == "object";
|
6865
|
+
return /* @__PURE__ */ n("div", { onMouseDown: W, className: "tag-wrapper", children: /* @__PURE__ */ n(
|
6866
|
+
K1,
|
6857
6867
|
{
|
6858
|
-
onClose: () =>
|
6868
|
+
onClose: () => J(w.value),
|
6859
6869
|
closable: !r,
|
6860
|
-
children: /* @__PURE__ */ n(
|
6870
|
+
children: /* @__PURE__ */ n(P1, { variant: "body4", children: E ? w.label : Q(w.value) })
|
6861
6871
|
}
|
6862
6872
|
) });
|
6863
6873
|
},
|
6864
6874
|
maxTagCount: "responsive",
|
6865
|
-
maxTagPlaceholder: (
|
6875
|
+
maxTagPlaceholder: (w) => {
|
6866
6876
|
var E;
|
6867
6877
|
return /* @__PURE__ */ n(
|
6868
|
-
|
6878
|
+
Li,
|
6869
6879
|
{
|
6870
|
-
values:
|
6871
|
-
onTagClose:
|
6872
|
-
maxWidth: ((E =
|
6880
|
+
values: w,
|
6881
|
+
onTagClose: J,
|
6882
|
+
maxWidth: ((E = z.current) == null ? void 0 : E.clientWidth) || 0,
|
6873
6883
|
disabled: r,
|
6874
6884
|
options: a,
|
6875
|
-
extraOptions:
|
6885
|
+
extraOptions: N
|
6876
6886
|
}
|
6877
6887
|
);
|
6878
6888
|
},
|
6879
|
-
onPopupScroll:
|
6880
|
-
suffixIcon: /* @__PURE__ */ n("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(
|
6881
|
-
s &&
|
6889
|
+
onPopupScroll: T,
|
6890
|
+
suffixIcon: /* @__PURE__ */ n("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(Y, { children: [
|
6891
|
+
s && I && !!I.length && /* @__PURE__ */ n("div", { onClick: K, children: /* @__PURE__ */ n(s1, { name: "cancel" }) }),
|
6882
6892
|
/* @__PURE__ */ n(
|
6883
|
-
|
6893
|
+
s1,
|
6884
6894
|
{
|
6885
6895
|
name: "selectArrowIcon",
|
6886
|
-
color: r ?
|
6887
|
-
className:
|
6888
|
-
onClick: () =>
|
6896
|
+
color: r ? $.GREY_DARK_1 : $.GREY_DARK_5,
|
6897
|
+
className: x ? "select-arrow-rotated" : "select-arrow",
|
6898
|
+
onClick: () => _(!x)
|
6889
6899
|
}
|
6890
6900
|
)
|
6891
6901
|
] }) }),
|
6892
|
-
removeIcon: /* @__PURE__ */ n(
|
6902
|
+
removeIcon: /* @__PURE__ */ n(s1, { name: "errorSmall", color: $.GREY_DARK_2 }),
|
6893
6903
|
options: a,
|
6894
|
-
optionRender: (
|
6895
|
-
/* @__PURE__ */ u(
|
6904
|
+
optionRender: (w) => /* @__PURE__ */ u(n1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
6905
|
+
/* @__PURE__ */ u(n1, { alignItems: "center", gap: 12, children: [
|
6896
6906
|
s && /* @__PURE__ */ n(
|
6897
|
-
|
6907
|
+
ne,
|
6898
6908
|
{
|
6899
|
-
checked: !!(
|
6909
|
+
checked: !!(I != null && I.includes(w.value))
|
6900
6910
|
}
|
6901
6911
|
),
|
6902
|
-
/* @__PURE__ */ u(
|
6903
|
-
|
6904
|
-
/* @__PURE__ */ n("span", { children:
|
6912
|
+
/* @__PURE__ */ u(n1, { alignItems: "center", gap: 8, children: [
|
6913
|
+
w.data.image && /* @__PURE__ */ n(oe, { src: w.data.image, size: 20 }),
|
6914
|
+
/* @__PURE__ */ n("span", { children: w.label })
|
6905
6915
|
] })
|
6906
6916
|
] }),
|
6907
|
-
!s &&
|
6908
|
-
|
6917
|
+
!s && I === w.value && /* @__PURE__ */ n(
|
6918
|
+
s1,
|
6909
6919
|
{
|
6910
6920
|
name: "ok",
|
6911
|
-
color:
|
6921
|
+
color: $.BLUE_PRIMARY,
|
6912
6922
|
width: 16,
|
6913
6923
|
height: 16
|
6914
6924
|
}
|
6915
6925
|
)
|
6916
|
-
] })
|
6926
|
+
] }),
|
6927
|
+
dropdownRender: v ? () => /* @__PURE__ */ n(
|
6928
|
+
"div",
|
6929
|
+
{
|
6930
|
+
style: {
|
6931
|
+
padding: "16px",
|
6932
|
+
display: "grid",
|
6933
|
+
justifyContent: "center"
|
6934
|
+
},
|
6935
|
+
children: /* @__PURE__ */ n(vi, { size: 28 })
|
6936
|
+
}
|
6937
|
+
) : void 0
|
6917
6938
|
}
|
6918
6939
|
),
|
6919
6940
|
/* @__PURE__ */ n(
|
6920
6941
|
"fieldset",
|
6921
6942
|
{
|
6922
|
-
className: `${
|
6943
|
+
className: `${L ? "fieldset-focused" : ""}
|
6923
6944
|
${r ? "fieldset-disabled" : ""}
|
6924
6945
|
${typeof i == "string" && i ? "fieldset-filled" : ""}
|
6925
6946
|
${typeof i == "object" && i != null && i.length ? "fieldset-filled" : ""}`,
|
@@ -6930,7 +6951,7 @@ const G1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6930
6951
|
}
|
6931
6952
|
);
|
6932
6953
|
}
|
6933
|
-
),
|
6954
|
+
), xi = {
|
6934
6955
|
type: "logger",
|
6935
6956
|
log(i) {
|
6936
6957
|
this.output("log", i);
|
@@ -6945,14 +6966,14 @@ const G1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6945
6966
|
console && console[i] && console[i].apply(console, e);
|
6946
6967
|
}
|
6947
6968
|
};
|
6948
|
-
class
|
6969
|
+
class r1 {
|
6949
6970
|
constructor(e) {
|
6950
6971
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6951
6972
|
this.init(e, t);
|
6952
6973
|
}
|
6953
6974
|
init(e) {
|
6954
6975
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6955
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
6976
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || xi, this.options = t, this.debug = t.debug;
|
6956
6977
|
}
|
6957
6978
|
log() {
|
6958
6979
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
@@ -6978,17 +6999,17 @@ class n1 {
|
|
6978
6999
|
return o && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
|
6979
7000
|
}
|
6980
7001
|
create(e) {
|
6981
|
-
return new
|
7002
|
+
return new r1(this.logger, {
|
6982
7003
|
prefix: `${this.prefix}:${e}:`,
|
6983
7004
|
...this.options
|
6984
7005
|
});
|
6985
7006
|
}
|
6986
7007
|
clone(e) {
|
6987
|
-
return e = e || this.options, e.prefix = e.prefix || this.prefix, new
|
7008
|
+
return e = e || this.options, e.prefix = e.prefix || this.prefix, new r1(this.logger, e);
|
6988
7009
|
}
|
6989
7010
|
}
|
6990
|
-
var
|
6991
|
-
class
|
7011
|
+
var B = new r1();
|
7012
|
+
class d1 {
|
6992
7013
|
constructor() {
|
6993
7014
|
this.observers = {};
|
6994
7015
|
}
|
@@ -7022,63 +7043,63 @@ class c1 {
|
|
7022
7043
|
});
|
7023
7044
|
}
|
7024
7045
|
}
|
7025
|
-
const
|
7046
|
+
const q = () => {
|
7026
7047
|
let i, e;
|
7027
7048
|
const t = new Promise((s, o) => {
|
7028
7049
|
i = s, e = o;
|
7029
7050
|
});
|
7030
7051
|
return t.resolve = i, t.reject = e, t;
|
7031
|
-
},
|
7052
|
+
}, N1 = (i) => i == null ? "" : "" + i, Ri = (i, e, t) => {
|
7032
7053
|
i.forEach((s) => {
|
7033
7054
|
e[s] && (t[s] = e[s]);
|
7034
7055
|
});
|
7035
|
-
},
|
7056
|
+
}, Mi = /###/g, x1 = (i) => i && i.indexOf("###") > -1 ? i.replace(Mi, ".") : i, R1 = (i) => !i || typeof i == "string", X = (i, e, t) => {
|
7036
7057
|
const s = typeof e != "string" ? e : e.split(".");
|
7037
7058
|
let o = 0;
|
7038
7059
|
for (; o < s.length - 1; ) {
|
7039
|
-
if (
|
7040
|
-
const a =
|
7060
|
+
if (R1(i)) return {};
|
7061
|
+
const a = x1(s[o]);
|
7041
7062
|
!i[a] && t && (i[a] = new t()), Object.prototype.hasOwnProperty.call(i, a) ? i = i[a] : i = {}, ++o;
|
7042
7063
|
}
|
7043
|
-
return
|
7064
|
+
return R1(i) ? {} : {
|
7044
7065
|
obj: i,
|
7045
|
-
k:
|
7066
|
+
k: x1(s[o])
|
7046
7067
|
};
|
7047
|
-
},
|
7068
|
+
}, M1 = (i, e, t) => {
|
7048
7069
|
const {
|
7049
7070
|
obj: s,
|
7050
7071
|
k: o
|
7051
|
-
} =
|
7072
|
+
} = X(i, e, Object);
|
7052
7073
|
if (s !== void 0 || e.length === 1) {
|
7053
7074
|
s[o] = t;
|
7054
7075
|
return;
|
7055
7076
|
}
|
7056
|
-
let a = e[e.length - 1], c = e.slice(0, e.length - 1), r =
|
7077
|
+
let a = e[e.length - 1], c = e.slice(0, e.length - 1), r = X(i, c, Object);
|
7057
7078
|
for (; r.obj === void 0 && c.length; )
|
7058
|
-
a = `${c[c.length - 1]}.${a}`, c = c.slice(0, c.length - 1), r =
|
7079
|
+
a = `${c[c.length - 1]}.${a}`, c = c.slice(0, c.length - 1), r = X(i, c, Object), r && r.obj && typeof r.obj[`${r.k}.${a}`] < "u" && (r.obj = void 0);
|
7059
7080
|
r.obj[`${r.k}.${a}`] = t;
|
7060
|
-
},
|
7081
|
+
}, yi = (i, e, t, s) => {
|
7061
7082
|
const {
|
7062
7083
|
obj: o,
|
7063
7084
|
k: a
|
7064
|
-
} =
|
7085
|
+
} = X(i, e, Object);
|
7065
7086
|
o[a] = o[a] || [], o[a].push(t);
|
7066
|
-
},
|
7087
|
+
}, l1 = (i, e) => {
|
7067
7088
|
const {
|
7068
7089
|
obj: t,
|
7069
7090
|
k: s
|
7070
|
-
} =
|
7091
|
+
} = X(i, e);
|
7071
7092
|
if (t)
|
7072
7093
|
return t[s];
|
7073
|
-
},
|
7074
|
-
const s =
|
7075
|
-
return s !== void 0 ? s :
|
7076
|
-
},
|
7094
|
+
}, bi = (i, e, t) => {
|
7095
|
+
const s = l1(i, t);
|
7096
|
+
return s !== void 0 ? s : l1(e, t);
|
7097
|
+
}, F1 = (i, e, t) => {
|
7077
7098
|
for (const s in e)
|
7078
|
-
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]) :
|
7099
|
+
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]) : F1(i[s], e[s], t) : i[s] = e[s]);
|
7079
7100
|
return i;
|
7080
7101
|
}, P = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
7081
|
-
var
|
7102
|
+
var Ei = {
|
7082
7103
|
"&": "&",
|
7083
7104
|
"<": "<",
|
7084
7105
|
">": ">",
|
@@ -7086,8 +7107,8 @@ var yi = {
|
|
7086
7107
|
"'": "'",
|
7087
7108
|
"/": "/"
|
7088
7109
|
};
|
7089
|
-
const
|
7090
|
-
class
|
7110
|
+
const _i = (i) => typeof i == "string" ? i.replace(/[&<>"'\/]/g, (e) => Ei[e]) : i;
|
7111
|
+
class Hi {
|
7091
7112
|
constructor(e) {
|
7092
7113
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
7093
7114
|
}
|
@@ -7099,18 +7120,18 @@ class Ei {
|
|
7099
7120
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
7100
7121
|
}
|
7101
7122
|
}
|
7102
|
-
const
|
7123
|
+
const Vi = [" ", ",", "?", "!", ";"], Ii = new Hi(20), Si = (i, e, t) => {
|
7103
7124
|
e = e || "", t = t || "";
|
7104
|
-
const s =
|
7125
|
+
const s = Vi.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
|
7105
7126
|
if (s.length === 0) return !0;
|
7106
|
-
const o =
|
7127
|
+
const o = Ii.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
7107
7128
|
let a = !o.test(i);
|
7108
7129
|
if (!a) {
|
7109
7130
|
const c = i.indexOf(t);
|
7110
7131
|
c > 0 && !o.test(i.substring(0, c)) && (a = !0);
|
7111
7132
|
}
|
7112
7133
|
return a;
|
7113
|
-
},
|
7134
|
+
}, f1 = function(i, e) {
|
7114
7135
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
7115
7136
|
if (!i) return;
|
7116
7137
|
if (i[e]) return i[e];
|
@@ -7130,8 +7151,8 @@ const _i = [" ", ",", "?", "!", ";"], Hi = new Ei(20), Vi = (i, e, t) => {
|
|
7130
7151
|
o = c;
|
7131
7152
|
}
|
7132
7153
|
return o;
|
7133
|
-
},
|
7134
|
-
class
|
7154
|
+
}, a1 = (i) => i && i.indexOf("_") > 0 ? i.replace("_", "-") : i;
|
7155
|
+
class y1 extends d1 {
|
7135
7156
|
constructor(e) {
|
7136
7157
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
7137
7158
|
ns: ["translation"],
|
@@ -7151,8 +7172,8 @@ class M1 extends c1 {
|
|
7151
7172
|
const a = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator, c = o.ignoreJSONStructure !== void 0 ? o.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
7152
7173
|
let r;
|
7153
7174
|
e.indexOf(".") > -1 ? r = e.split(".") : (r = [e, t], s && (Array.isArray(s) ? r.push(...s) : typeof s == "string" && a ? r.push(...s.split(a)) : r.push(s)));
|
7154
|
-
const d =
|
7155
|
-
return !d && !t && !s && e.indexOf(".") > -1 && (e = r[0], t = r[1], s = r.slice(2).join(".")), d || !c || typeof s != "string" ? d :
|
7175
|
+
const d = l1(this.data, r);
|
7176
|
+
return !d && !t && !s && e.indexOf(".") > -1 && (e = r[0], t = r[1], s = r.slice(2).join(".")), d || !c || typeof s != "string" ? d : f1(this.data && this.data[e] && this.data[e][t], s, a);
|
7156
7177
|
}
|
7157
7178
|
addResource(e, t, s, o) {
|
7158
7179
|
let a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
@@ -7160,7 +7181,7 @@ class M1 extends c1 {
|
|
7160
7181
|
};
|
7161
7182
|
const c = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator;
|
7162
7183
|
let r = [e, t];
|
7163
|
-
s && (r = r.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (r = e.split("."), o = t, t = r[1]), this.addNamespaces(t),
|
7184
|
+
s && (r = r.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (r = e.split("."), o = t, t = r[1]), this.addNamespaces(t), M1(this.data, r, o), a.silent || this.emit("added", e, t, s, o);
|
7164
7185
|
}
|
7165
7186
|
addResources(e, t, s) {
|
7166
7187
|
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
@@ -7178,11 +7199,11 @@ class M1 extends c1 {
|
|
7178
7199
|
skipCopy: !1
|
7179
7200
|
}, r = [e, t];
|
7180
7201
|
e.indexOf(".") > -1 && (r = e.split("."), o = s, s = t, t = r[1]), this.addNamespaces(t);
|
7181
|
-
let d =
|
7182
|
-
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), o ?
|
7202
|
+
let d = l1(this.data, r) || {};
|
7203
|
+
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), o ? F1(d, s, a) : d = {
|
7183
7204
|
...d,
|
7184
7205
|
...s
|
7185
|
-
},
|
7206
|
+
}, M1(this.data, r, d), c.silent || this.emit("added", e, t, s);
|
7186
7207
|
}
|
7187
7208
|
removeResourceBundle(e, t) {
|
7188
7209
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
@@ -7206,7 +7227,7 @@ class M1 extends c1 {
|
|
7206
7227
|
return this.data;
|
7207
7228
|
}
|
7208
7229
|
}
|
7209
|
-
var
|
7230
|
+
var $1 = {
|
7210
7231
|
processors: {},
|
7211
7232
|
addPostProcessor(i) {
|
7212
7233
|
this.processors[i.name] = i;
|
@@ -7217,11 +7238,11 @@ var F1 = {
|
|
7217
7238
|
}), e;
|
7218
7239
|
}
|
7219
7240
|
};
|
7220
|
-
const
|
7221
|
-
class
|
7241
|
+
const b1 = {};
|
7242
|
+
class h1 extends d1 {
|
7222
7243
|
constructor(e) {
|
7223
7244
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7224
|
-
super(),
|
7245
|
+
super(), Ri(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = B.create("translator");
|
7225
7246
|
}
|
7226
7247
|
changeLanguage(e) {
|
7227
7248
|
e && (this.language = e);
|
@@ -7240,7 +7261,7 @@ class a1 extends c1 {
|
|
7240
7261
|
s === void 0 && (s = ":");
|
7241
7262
|
const o = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
7242
7263
|
let a = t.ns || this.options.defaultNS || [];
|
7243
|
-
const c = s && e.indexOf(s) > -1, r = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
7264
|
+
const c = s && e.indexOf(s) > -1, r = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Si(e, s, o);
|
7244
7265
|
if (c && !r) {
|
7245
7266
|
const d = e.match(this.interpolator.nestingRegexp);
|
7246
7267
|
if (d && d.length > 0)
|
@@ -7288,8 +7309,8 @@ class a1 extends c1 {
|
|
7288
7309
|
}
|
7289
7310
|
const h = this.resolve(e, t);
|
7290
7311
|
let C = h && h.res;
|
7291
|
-
const p = h && h.usedKey || c,
|
7292
|
-
if (
|
7312
|
+
const p = h && h.usedKey || c, f = h && h.exactUsedKey || c, N = Object.prototype.toString.apply(C), v = ["[object Number]", "[object Function]", "[object RegExp]"], R = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, x = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
7313
|
+
if (x && C && (typeof C != "string" && typeof C != "boolean" && typeof C != "number") && v.indexOf(N) < 0 && !(typeof R == "string" && Array.isArray(C))) {
|
7293
7314
|
if (!t.returnObjects && !this.options.returnObjects) {
|
7294
7315
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
7295
7316
|
const L = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, C, {
|
@@ -7299,51 +7320,51 @@ class a1 extends c1 {
|
|
7299
7320
|
return o ? (h.res = L, h.usedParams = this.getUsedParamsDetails(t), h) : L;
|
7300
7321
|
}
|
7301
7322
|
if (a) {
|
7302
|
-
const L = Array.isArray(C), y = L ? [] : {}, b = L ?
|
7303
|
-
for (const
|
7304
|
-
if (Object.prototype.hasOwnProperty.call(C,
|
7305
|
-
const
|
7306
|
-
y[
|
7323
|
+
const L = Array.isArray(C), y = L ? [] : {}, b = L ? f : p;
|
7324
|
+
for (const M in C)
|
7325
|
+
if (Object.prototype.hasOwnProperty.call(C, M)) {
|
7326
|
+
const I = `${b}${a}${M}`;
|
7327
|
+
y[M] = this.translate(I, {
|
7307
7328
|
...t,
|
7308
7329
|
joinArrays: !1,
|
7309
7330
|
ns: r
|
7310
|
-
}), y[
|
7331
|
+
}), y[M] === I && (y[M] = C[M]);
|
7311
7332
|
}
|
7312
7333
|
C = y;
|
7313
7334
|
}
|
7314
|
-
} else if (
|
7315
|
-
C = C.join(
|
7335
|
+
} else if (x && typeof R == "string" && Array.isArray(C))
|
7336
|
+
C = C.join(R), C && (C = this.extendTranslation(C, e, t, s));
|
7316
7337
|
else {
|
7317
7338
|
let L = !1, y = !1;
|
7318
|
-
const b = t.count !== void 0 && typeof t.count != "string",
|
7339
|
+
const b = t.count !== void 0 && typeof t.count != "string", M = h1.hasDefaultValue(t), I = b ? this.pluralResolver.getSuffix(g, t.count, t) : "", U = t.ordinal && b ? this.pluralResolver.getSuffix(g, t.count, {
|
7319
7340
|
ordinal: !1
|
7320
|
-
}) : "",
|
7321
|
-
!this.isValidLookup(C) &&
|
7322
|
-
const
|
7323
|
-
if (y || L ||
|
7324
|
-
if (this.logger.log(
|
7341
|
+
}) : "", z = b && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), Z = z && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${I}`] || t[`defaultValue${U}`] || t.defaultValue;
|
7342
|
+
!this.isValidLookup(C) && M && (L = !0, C = Z), this.isValidLookup(C) || (y = !0, C = c);
|
7343
|
+
const g1 = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && y ? void 0 : C, D = M && Z !== C && this.options.updateMissing;
|
7344
|
+
if (y || L || D) {
|
7345
|
+
if (this.logger.log(D ? "updateKey" : "missingKey", g, d, c, D ? Z : C), a) {
|
7325
7346
|
const V = this.resolve(c, {
|
7326
7347
|
...t,
|
7327
7348
|
keySeparator: !1
|
7328
7349
|
});
|
7329
7350
|
V && V.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.");
|
7330
7351
|
}
|
7331
|
-
let
|
7332
|
-
const
|
7333
|
-
if (this.options.saveMissingTo === "fallback" &&
|
7334
|
-
for (let V = 0; V <
|
7335
|
-
|
7336
|
-
else this.options.saveMissingTo === "all" ?
|
7337
|
-
const
|
7338
|
-
const
|
7339
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(V, d,
|
7352
|
+
let A = [];
|
7353
|
+
const K = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
7354
|
+
if (this.options.saveMissingTo === "fallback" && K && K[0])
|
7355
|
+
for (let V = 0; V < K.length; V++)
|
7356
|
+
A.push(K[V]);
|
7357
|
+
else this.options.saveMissingTo === "all" ? A = this.languageUtils.toResolveHierarchy(t.lng || this.language) : A.push(t.lng || this.language);
|
7358
|
+
const J = (V, W, T) => {
|
7359
|
+
const Q = M && T !== C ? T : g1;
|
7360
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(V, d, W, Q, D, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(V, d, W, Q, D, t), this.emit("missingKey", V, d, W, C);
|
7340
7361
|
};
|
7341
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && b ?
|
7342
|
-
const
|
7343
|
-
|
7344
|
-
|
7362
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && b ? A.forEach((V) => {
|
7363
|
+
const W = this.pluralResolver.getSuffixes(V, t);
|
7364
|
+
z && t[`defaultValue${this.options.pluralSeparator}zero`] && W.indexOf(`${this.options.pluralSeparator}zero`) < 0 && W.push(`${this.options.pluralSeparator}zero`), W.forEach((T) => {
|
7365
|
+
J([V], c + T, t[`defaultValue${T}`] || Z);
|
7345
7366
|
});
|
7346
|
-
}) :
|
7367
|
+
}) : J(A, c, Z));
|
7347
7368
|
}
|
7348
7369
|
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));
|
7349
7370
|
}
|
@@ -7381,13 +7402,13 @@ class a1 extends c1 {
|
|
7381
7402
|
l < p && (s.nest = !1);
|
7382
7403
|
}
|
7383
7404
|
!s.lng && this.options.compatibilityAPI !== "v1" && o && o.res && (s.lng = this.language || o.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
7384
|
-
for (var C = arguments.length, p = new Array(C),
|
7385
|
-
p[
|
7405
|
+
for (var C = arguments.length, p = new Array(C), f = 0; f < C; f++)
|
7406
|
+
p[f] = arguments[f];
|
7386
7407
|
return a && a[0] === p[0] && !s.context ? (c.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : c.translate(...p, t);
|
7387
7408
|
}, s)), s.interpolation && this.interpolator.reset();
|
7388
7409
|
}
|
7389
7410
|
const r = s.postProcess || this.options.postProcess, d = typeof r == "string" ? [r] : r;
|
7390
|
-
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e =
|
7411
|
+
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = $1.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
|
7391
7412
|
i18nResolved: {
|
7392
7413
|
...o,
|
7393
7414
|
usedParams: this.getUsedParamsDetails(s)
|
@@ -7403,26 +7424,26 @@ class a1 extends c1 {
|
|
7403
7424
|
o = l;
|
7404
7425
|
let h = g.namespaces;
|
7405
7426
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
7406
|
-
const C = t.count !== void 0 && typeof t.count != "string", p = C && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(),
|
7407
|
-
h.forEach((
|
7408
|
-
this.isValidLookup(s) || (r =
|
7427
|
+
const C = t.count !== void 0 && typeof t.count != "string", p = C && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), f = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", N = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
7428
|
+
h.forEach((v) => {
|
7429
|
+
this.isValidLookup(s) || (r = v, !b1[`${N[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(r) && (b1[`${N[0]}-${v}`] = !0, this.logger.warn(`key "${o}" for languages "${N.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!!!")), N.forEach((R) => {
|
7409
7430
|
if (this.isValidLookup(s)) return;
|
7410
|
-
c =
|
7411
|
-
const
|
7431
|
+
c = R;
|
7432
|
+
const x = [l];
|
7412
7433
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
7413
|
-
this.i18nFormat.addLookupKeys(
|
7434
|
+
this.i18nFormat.addLookupKeys(x, l, R, v, t);
|
7414
7435
|
else {
|
7415
7436
|
let L;
|
7416
|
-
C && (L = this.pluralResolver.getSuffix(
|
7437
|
+
C && (L = this.pluralResolver.getSuffix(R, t.count, t));
|
7417
7438
|
const y = `${this.options.pluralSeparator}zero`, b = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
7418
|
-
if (C && (
|
7419
|
-
const
|
7420
|
-
|
7439
|
+
if (C && (x.push(l + L), t.ordinal && L.indexOf(b) === 0 && x.push(l + L.replace(b, this.options.pluralSeparator)), p && x.push(l + y)), f) {
|
7440
|
+
const M = `${l}${this.options.contextSeparator}${t.context}`;
|
7441
|
+
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));
|
7421
7442
|
}
|
7422
7443
|
}
|
7423
7444
|
let _;
|
7424
|
-
for (; _ =
|
7425
|
-
this.isValidLookup(s) || (a = _, s = this.getResource(
|
7445
|
+
for (; _ = x.pop(); )
|
7446
|
+
this.isValidLookup(s) || (a = _, s = this.getResource(R, v, _, t));
|
7426
7447
|
}));
|
7427
7448
|
});
|
7428
7449
|
}), {
|
@@ -7464,18 +7485,18 @@ class a1 extends c1 {
|
|
7464
7485
|
return !1;
|
7465
7486
|
}
|
7466
7487
|
}
|
7467
|
-
const
|
7468
|
-
class
|
7488
|
+
const C1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
7489
|
+
class E1 {
|
7469
7490
|
constructor(e) {
|
7470
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
7491
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = B.create("languageUtils");
|
7471
7492
|
}
|
7472
7493
|
getScriptPartFromCode(e) {
|
7473
|
-
if (e =
|
7494
|
+
if (e = a1(e), !e || e.indexOf("-") < 0) return null;
|
7474
7495
|
const t = e.split("-");
|
7475
7496
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
7476
7497
|
}
|
7477
7498
|
getLanguagePartFromCode(e) {
|
7478
|
-
if (e =
|
7499
|
+
if (e = a1(e), !e || e.indexOf("-") < 0) return e;
|
7479
7500
|
const t = e.split("-");
|
7480
7501
|
return this.formatLanguageCode(t[0]);
|
7481
7502
|
}
|
@@ -7483,7 +7504,7 @@ class b1 {
|
|
7483
7504
|
if (typeof e == "string" && e.indexOf("-") > -1) {
|
7484
7505
|
const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
7485
7506
|
let s = e.split("-");
|
7486
|
-
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] =
|
7507
|
+
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] = C1(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] = C1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = C1(s[2].toLowerCase()))), s.join("-");
|
7487
7508
|
}
|
7488
7509
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
7489
7510
|
}
|
@@ -7524,7 +7545,7 @@ class b1 {
|
|
7524
7545
|
}), o;
|
7525
7546
|
}
|
7526
7547
|
}
|
7527
|
-
let
|
7548
|
+
let Oi = [{
|
7528
7549
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
7529
7550
|
nr: [1, 2],
|
7530
7551
|
fc: 1
|
@@ -7616,7 +7637,7 @@ let Ii = [{
|
|
7616
7637
|
lngs: ["he", "iw"],
|
7617
7638
|
nr: [1, 2, 20, 21],
|
7618
7639
|
fc: 22
|
7619
|
-
}],
|
7640
|
+
}], Ai = {
|
7620
7641
|
1: (i) => +(i > 1),
|
7621
7642
|
2: (i) => +(i != 1),
|
7622
7643
|
3: (i) => 0,
|
@@ -7640,28 +7661,28 @@ let Ii = [{
|
|
7640
7661
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
7641
7662
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
7642
7663
|
};
|
7643
|
-
const
|
7664
|
+
const Bi = ["v1", "v2", "v3"], Wi = ["v4"], _1 = {
|
7644
7665
|
zero: 0,
|
7645
7666
|
one: 1,
|
7646
7667
|
two: 2,
|
7647
7668
|
few: 3,
|
7648
7669
|
many: 4,
|
7649
7670
|
other: 5
|
7650
|
-
},
|
7671
|
+
}, ji = () => {
|
7651
7672
|
const i = {};
|
7652
|
-
return
|
7673
|
+
return Oi.forEach((e) => {
|
7653
7674
|
e.lngs.forEach((t) => {
|
7654
7675
|
i[t] = {
|
7655
7676
|
numbers: e.nr,
|
7656
|
-
plurals:
|
7677
|
+
plurals: Ai[e.fc]
|
7657
7678
|
};
|
7658
7679
|
});
|
7659
7680
|
}), i;
|
7660
7681
|
};
|
7661
|
-
class
|
7682
|
+
class Zi {
|
7662
7683
|
constructor(e) {
|
7663
7684
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7664
|
-
this.languageUtils = e, this.options = t, this.logger =
|
7685
|
+
this.languageUtils = e, this.options = t, this.logger = B.create("pluralResolver"), (!this.options.compatibilityJSON || Wi.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 = ji(), this.pluralRulesCache = {};
|
7665
7686
|
}
|
7666
7687
|
addRule(e, t) {
|
7667
7688
|
this.rules[e] = t;
|
@@ -7673,7 +7694,7 @@ class Wi {
|
|
7673
7694
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7674
7695
|
if (this.shouldUseIntlApi())
|
7675
7696
|
try {
|
7676
|
-
const s =
|
7697
|
+
const s = a1(e === "dev" ? "en" : e), o = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
|
7677
7698
|
cleanedCode: s,
|
7678
7699
|
type: o
|
7679
7700
|
});
|
@@ -7700,7 +7721,7 @@ class Wi {
|
|
7700
7721
|
getSuffixes(e) {
|
7701
7722
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7702
7723
|
const s = this.getRule(e, t);
|
7703
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((o, a) =>
|
7724
|
+
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((o, a) => _1[o] - _1[a]).map((o) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${o}`) : s.numbers.map((o) => this.getSuffix(e, o, t)) : [];
|
7704
7725
|
}
|
7705
7726
|
getSuffix(e, t) {
|
7706
7727
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
@@ -7715,17 +7736,17 @@ class Wi {
|
|
7715
7736
|
return this.options.compatibilityJSON === "v1" ? o === 1 ? "" : typeof o == "number" ? `_plural_${o.toString()}` : a() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? a() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
7716
7737
|
}
|
7717
7738
|
shouldUseIntlApi() {
|
7718
|
-
return !
|
7739
|
+
return !Bi.includes(this.options.compatibilityJSON);
|
7719
7740
|
}
|
7720
7741
|
}
|
7721
|
-
const
|
7722
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a =
|
7723
|
-
return !a && o && typeof t == "string" && (a =
|
7724
|
-
},
|
7725
|
-
class
|
7742
|
+
const H1 = function(i, e, t) {
|
7743
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = bi(i, e, t);
|
7744
|
+
return !a && o && typeof t == "string" && (a = f1(i, t, s), a === void 0 && (a = f1(e, t, s))), a;
|
7745
|
+
}, p1 = (i) => i.replace(/\$/g, "$$$$");
|
7746
|
+
class Di {
|
7726
7747
|
constructor() {
|
7727
7748
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
7728
|
-
this.logger =
|
7749
|
+
this.logger = B.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
7729
7750
|
}
|
7730
7751
|
init() {
|
7731
7752
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
@@ -7745,13 +7766,13 @@ class ji {
|
|
7745
7766
|
unescapePrefix: h,
|
7746
7767
|
nestingPrefix: C,
|
7747
7768
|
nestingPrefixEscaped: p,
|
7748
|
-
nestingSuffix:
|
7749
|
-
nestingSuffixEscaped:
|
7750
|
-
nestingOptionsSeparator:
|
7751
|
-
maxReplaces:
|
7752
|
-
alwaysFormat:
|
7769
|
+
nestingSuffix: f,
|
7770
|
+
nestingSuffixEscaped: N,
|
7771
|
+
nestingOptionsSeparator: v,
|
7772
|
+
maxReplaces: R,
|
7773
|
+
alwaysFormat: x
|
7753
7774
|
} = e.interpolation;
|
7754
|
-
this.escape = t !== void 0 ? t :
|
7775
|
+
this.escape = t !== void 0 ? t : _i, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = a ? P(a) : c || "{{", this.suffix = r ? P(r) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = C ? P(C) : p || P("$t("), this.nestingSuffix = f ? P(f) : N || P(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = R || 1e3, this.alwaysFormat = x !== void 0 ? x : !1, this.resetRegExp();
|
7755
7776
|
}
|
7756
7777
|
reset() {
|
7757
7778
|
this.options && this.init(this.options);
|
@@ -7764,45 +7785,45 @@ class ji {
|
|
7764
7785
|
let a, c, r;
|
7765
7786
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
|
7766
7787
|
if (p.indexOf(this.formatSeparator) < 0) {
|
7767
|
-
const
|
7768
|
-
return this.alwaysFormat ? this.format(
|
7788
|
+
const R = H1(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
7789
|
+
return this.alwaysFormat ? this.format(R, void 0, s, {
|
7769
7790
|
...o,
|
7770
7791
|
...t,
|
7771
7792
|
interpolationkey: p
|
7772
|
-
}) :
|
7793
|
+
}) : R;
|
7773
7794
|
}
|
7774
|
-
const
|
7775
|
-
return this.format(
|
7795
|
+
const f = p.split(this.formatSeparator), N = f.shift().trim(), v = f.join(this.formatSeparator).trim();
|
7796
|
+
return this.format(H1(t, d, N, this.options.keySeparator, this.options.ignoreJSONStructure), v, s, {
|
7776
7797
|
...o,
|
7777
7798
|
...t,
|
7778
|
-
interpolationkey:
|
7799
|
+
interpolationkey: N
|
7779
7800
|
});
|
7780
7801
|
};
|
7781
7802
|
this.resetRegExp();
|
7782
7803
|
const l = o && o.missingInterpolationHandler || this.options.missingInterpolationHandler, h = o && o.interpolation && o.interpolation.skipOnVariables !== void 0 ? o.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
7783
7804
|
return [{
|
7784
7805
|
regex: this.regexpUnescape,
|
7785
|
-
safeValue: (p) =>
|
7806
|
+
safeValue: (p) => p1(p)
|
7786
7807
|
}, {
|
7787
7808
|
regex: this.regexp,
|
7788
|
-
safeValue: (p) => this.escapeValue ?
|
7809
|
+
safeValue: (p) => this.escapeValue ? p1(this.escape(p)) : p1(p)
|
7789
7810
|
}].forEach((p) => {
|
7790
7811
|
for (r = 0; a = p.regex.exec(e); ) {
|
7791
|
-
const
|
7792
|
-
if (c = g(
|
7812
|
+
const f = a[1].trim();
|
7813
|
+
if (c = g(f), c === void 0)
|
7793
7814
|
if (typeof l == "function") {
|
7794
|
-
const
|
7795
|
-
c = typeof
|
7796
|
-
} else if (o && Object.prototype.hasOwnProperty.call(o,
|
7815
|
+
const v = l(e, a, o);
|
7816
|
+
c = typeof v == "string" ? v : "";
|
7817
|
+
} else if (o && Object.prototype.hasOwnProperty.call(o, f))
|
7797
7818
|
c = "";
|
7798
7819
|
else if (h) {
|
7799
7820
|
c = a[0];
|
7800
7821
|
continue;
|
7801
7822
|
} else
|
7802
|
-
this.logger.warn(`missed to pass in variable ${
|
7803
|
-
else typeof c != "string" && !this.useRawValueToEscape && (c =
|
7804
|
-
const
|
7805
|
-
if (e = e.replace(a[0],
|
7823
|
+
this.logger.warn(`missed to pass in variable ${f} for interpolating ${e}`), c = "";
|
7824
|
+
else typeof c != "string" && !this.useRawValueToEscape && (c = N1(c));
|
7825
|
+
const N = p.safeValue(c);
|
7826
|
+
if (e = e.replace(a[0], N), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, r++, r >= this.maxReplaces)
|
7806
7827
|
break;
|
7807
7828
|
}
|
7808
7829
|
}), e;
|
@@ -7815,15 +7836,15 @@ class ji {
|
|
7815
7836
|
const h = d.split(new RegExp(`${l}[ ]*{`));
|
7816
7837
|
let C = `{${h[1]}`;
|
7817
7838
|
d = h[0], C = this.interpolate(C, c);
|
7818
|
-
const p = C.match(/'/g),
|
7819
|
-
(p && p.length % 2 === 0 && !
|
7839
|
+
const p = C.match(/'/g), f = C.match(/"/g);
|
7840
|
+
(p && p.length % 2 === 0 && !f || f.length % 2 !== 0) && (C = C.replace(/'/g, '"'));
|
7820
7841
|
try {
|
7821
7842
|
c = JSON.parse(C), g && (c = {
|
7822
7843
|
...g,
|
7823
7844
|
...c
|
7824
7845
|
});
|
7825
|
-
} catch (
|
7826
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${d}`,
|
7846
|
+
} catch (N) {
|
7847
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, N), `${d}${l}${C}`;
|
7827
7848
|
}
|
7828
7849
|
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, d;
|
7829
7850
|
};
|
@@ -7838,7 +7859,7 @@ class ji {
|
|
7838
7859
|
o[1] = l.shift(), d = l, g = !0;
|
7839
7860
|
}
|
7840
7861
|
if (a = t(r.call(this, o[1].trim(), c), c), a && o[0] === e && typeof a != "string") return a;
|
7841
|
-
typeof a != "string" && (a =
|
7862
|
+
typeof a != "string" && (a = N1(a)), a || (this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`), a = ""), g && (a = d.reduce((l, h) => this.format(l, h, s.lng, {
|
7842
7863
|
...s,
|
7843
7864
|
interpolationkey: o[1].trim()
|
7844
7865
|
}), a.trim())), e = e.replace(o[0], a), this.regexp.lastIndex = 0;
|
@@ -7846,7 +7867,7 @@ class ji {
|
|
7846
7867
|
return e;
|
7847
7868
|
}
|
7848
7869
|
}
|
7849
|
-
const
|
7870
|
+
const Ti = (i) => {
|
7850
7871
|
let e = i.toLowerCase().trim();
|
7851
7872
|
const t = {};
|
7852
7873
|
if (i.indexOf("(") > -1) {
|
@@ -7874,13 +7895,13 @@ const Zi = (i) => {
|
|
7874
7895
|
});
|
7875
7896
|
const c = s + JSON.stringify(a);
|
7876
7897
|
let r = e[c];
|
7877
|
-
return r || (r = i(
|
7898
|
+
return r || (r = i(a1(s), o), e[c] = r), r(t);
|
7878
7899
|
};
|
7879
7900
|
};
|
7880
|
-
class
|
7901
|
+
class Gi {
|
7881
7902
|
constructor() {
|
7882
7903
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
7883
|
-
this.logger =
|
7904
|
+
this.logger = B.create("formatter"), this.options = e, this.formats = {
|
7884
7905
|
number: F((t, s) => {
|
7885
7906
|
const o = new Intl.NumberFormat(t, {
|
7886
7907
|
...s
|
@@ -7937,7 +7958,7 @@ class Di {
|
|
7937
7958
|
const {
|
7938
7959
|
formatName: g,
|
7939
7960
|
formatOptions: l
|
7940
|
-
} =
|
7961
|
+
} = Ti(d);
|
7941
7962
|
if (this.formats[g]) {
|
7942
7963
|
let h = r;
|
7943
7964
|
try {
|
@@ -7957,13 +7978,13 @@ class Di {
|
|
7957
7978
|
}, e);
|
7958
7979
|
}
|
7959
7980
|
}
|
7960
|
-
const
|
7981
|
+
const Ki = (i, e) => {
|
7961
7982
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
7962
7983
|
};
|
7963
|
-
class
|
7984
|
+
class Pi extends d1 {
|
7964
7985
|
constructor(e, t, s) {
|
7965
7986
|
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
7966
|
-
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = o, this.logger =
|
7987
|
+
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = o, this.logger = B.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);
|
7967
7988
|
}
|
7968
7989
|
queueLoad(e, t, s, o) {
|
7969
7990
|
const a = {}, c = {}, r = {}, d = {};
|
@@ -7993,7 +8014,7 @@ class Gi extends c1 {
|
|
7993
8014
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
7994
8015
|
const r = {};
|
7995
8016
|
this.queue.forEach((d) => {
|
7996
|
-
|
8017
|
+
yi(d.loaded, [a], c), Ki(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
|
7997
8018
|
r[g] || (r[g] = {});
|
7998
8019
|
const l = d.loaded[g];
|
7999
8020
|
l.length && l.forEach((h) => {
|
@@ -8095,7 +8116,7 @@ class Gi extends c1 {
|
|
8095
8116
|
}
|
8096
8117
|
}
|
8097
8118
|
}
|
8098
|
-
const
|
8119
|
+
const V1 = () => ({
|
8099
8120
|
debug: !1,
|
8100
8121
|
initImmediate: !0,
|
8101
8122
|
ns: ["translation"],
|
@@ -8151,18 +8172,18 @@ const H1 = () => ({
|
|
8151
8172
|
maxReplaces: 1e3,
|
8152
8173
|
skipOnVariables: !0
|
8153
8174
|
}
|
8154
|
-
}),
|
8155
|
-
},
|
8175
|
+
}), I1 = (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), o1 = () => {
|
8176
|
+
}, Fi = (i) => {
|
8156
8177
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
8157
8178
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
8158
8179
|
});
|
8159
8180
|
};
|
8160
|
-
class
|
8181
|
+
class e1 extends d1 {
|
8161
8182
|
constructor() {
|
8162
8183
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
8163
|
-
if (super(), this.options =
|
8184
|
+
if (super(), this.options = I1(e), this.services = {}, this.logger = B, this.modules = {
|
8164
8185
|
external: []
|
8165
|
-
},
|
8186
|
+
}, Fi(this), t && !this.isInitialized && !e.isClone) {
|
8166
8187
|
if (!this.options.initImmediate)
|
8167
8188
|
return this.init(e, t), this;
|
8168
8189
|
setTimeout(() => {
|
@@ -8174,42 +8195,42 @@ class J extends c1 {
|
|
8174
8195
|
var e = this;
|
8175
8196
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
|
8176
8197
|
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]));
|
8177
|
-
const o =
|
8198
|
+
const o = V1();
|
8178
8199
|
this.options = {
|
8179
8200
|
...o,
|
8180
8201
|
...this.options,
|
8181
|
-
...
|
8202
|
+
...I1(t)
|
8182
8203
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
8183
8204
|
...o.interpolation,
|
8184
8205
|
...this.options.interpolation
|
8185
8206
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
8186
8207
|
const a = (l) => l ? typeof l == "function" ? new l() : l : null;
|
8187
8208
|
if (!this.options.isClone) {
|
8188
|
-
this.modules.logger ?
|
8209
|
+
this.modules.logger ? B.init(a(this.modules.logger), this.options) : B.init(null, this.options);
|
8189
8210
|
let l;
|
8190
|
-
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l =
|
8191
|
-
const h = new
|
8192
|
-
this.store = new
|
8211
|
+
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = Gi);
|
8212
|
+
const h = new E1(this.options);
|
8213
|
+
this.store = new y1(this.options.resources, this.options);
|
8193
8214
|
const C = this.services;
|
8194
|
-
C.logger =
|
8215
|
+
C.logger = B, C.resourceStore = this.store, C.languageUtils = h, C.pluralResolver = new Zi(h, {
|
8195
8216
|
prepend: this.options.pluralSeparator,
|
8196
8217
|
compatibilityJSON: this.options.compatibilityJSON,
|
8197
8218
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
8198
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === o.interpolation.format) && (C.formatter = a(l), C.formatter.init(C, this.options), this.options.interpolation.format = C.formatter.format.bind(C.formatter)), C.interpolator = new
|
8219
|
+
}), l && (!this.options.interpolation.format || this.options.interpolation.format === o.interpolation.format) && (C.formatter = a(l), C.formatter.init(C, this.options), this.options.interpolation.format = C.formatter.format.bind(C.formatter)), C.interpolator = new Di(this.options), C.utils = {
|
8199
8220
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
8200
|
-
}, C.backendConnector = new
|
8201
|
-
for (var
|
8202
|
-
|
8203
|
-
e.emit(p, ...
|
8204
|
-
}), this.modules.languageDetector && (C.languageDetector = a(this.modules.languageDetector), C.languageDetector.init && C.languageDetector.init(C, this.options.detection, this.options)), this.modules.i18nFormat && (C.i18nFormat = a(this.modules.i18nFormat), C.i18nFormat.init && C.i18nFormat.init(this)), this.translator = new
|
8205
|
-
for (var
|
8206
|
-
|
8207
|
-
e.emit(p, ...
|
8221
|
+
}, C.backendConnector = new Pi(a(this.modules.backend), C.resourceStore, C, this.options), C.backendConnector.on("*", function(p) {
|
8222
|
+
for (var f = arguments.length, N = new Array(f > 1 ? f - 1 : 0), v = 1; v < f; v++)
|
8223
|
+
N[v - 1] = arguments[v];
|
8224
|
+
e.emit(p, ...N);
|
8225
|
+
}), this.modules.languageDetector && (C.languageDetector = a(this.modules.languageDetector), C.languageDetector.init && C.languageDetector.init(C, this.options.detection, this.options)), this.modules.i18nFormat && (C.i18nFormat = a(this.modules.i18nFormat), C.i18nFormat.init && C.i18nFormat.init(this)), this.translator = new h1(this.services, this.options), this.translator.on("*", function(p) {
|
8226
|
+
for (var f = arguments.length, N = new Array(f > 1 ? f - 1 : 0), v = 1; v < f; v++)
|
8227
|
+
N[v - 1] = arguments[v];
|
8228
|
+
e.emit(p, ...N);
|
8208
8229
|
}), this.modules.external.forEach((p) => {
|
8209
8230
|
p.init && p.init(this);
|
8210
8231
|
});
|
8211
8232
|
}
|
8212
|
-
if (this.format = this.options.interpolation.format, s || (s =
|
8233
|
+
if (this.format = this.options.interpolation.format, s || (s = o1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
8213
8234
|
const l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
8214
8235
|
l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
|
8215
8236
|
}
|
@@ -8222,7 +8243,7 @@ class J extends c1 {
|
|
8222
8243
|
return e.store[l](...arguments), e;
|
8223
8244
|
};
|
8224
8245
|
});
|
8225
|
-
const d =
|
8246
|
+
const d = q(), g = () => {
|
8226
8247
|
const l = (h, C) => {
|
8227
8248
|
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);
|
8228
8249
|
};
|
@@ -8232,7 +8253,7 @@ class J extends c1 {
|
|
8232
8253
|
return this.options.resources || !this.options.initImmediate ? g() : setTimeout(g, 0), d;
|
8233
8254
|
}
|
8234
8255
|
loadResources(e) {
|
8235
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
8256
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o1;
|
8236
8257
|
const o = typeof e == "string" ? e : this.language;
|
8237
8258
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
8238
8259
|
if (o && o.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
@@ -8249,15 +8270,15 @@ class J extends c1 {
|
|
8249
8270
|
s(null);
|
8250
8271
|
}
|
8251
8272
|
reloadResources(e, t, s) {
|
8252
|
-
const o =
|
8253
|
-
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 =
|
8273
|
+
const o = q();
|
8274
|
+
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 = o1), this.services.backendConnector.reload(e, t, (a) => {
|
8254
8275
|
o.resolve(), s(a);
|
8255
8276
|
}), o;
|
8256
8277
|
}
|
8257
8278
|
use(e) {
|
8258
8279
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
8259
8280
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
8260
|
-
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" &&
|
8281
|
+
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" && $1.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
8261
8282
|
}
|
8262
8283
|
setResolvedLanguage(e) {
|
8263
8284
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
|
@@ -8272,7 +8293,7 @@ class J extends c1 {
|
|
8272
8293
|
changeLanguage(e, t) {
|
8273
8294
|
var s = this;
|
8274
8295
|
this.isLanguageChangingTo = e;
|
8275
|
-
const o =
|
8296
|
+
const o = q();
|
8276
8297
|
this.emit("languageChanging", e);
|
8277
8298
|
const a = (d) => {
|
8278
8299
|
this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
|
@@ -8306,7 +8327,7 @@ class J extends c1 {
|
|
8306
8327
|
d.lng = d.lng || a.lng, d.lngs = d.lngs || a.lngs, d.ns = d.ns || a.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || s || a.keyPrefix);
|
8307
8328
|
const C = o.options.keySeparator || ".";
|
8308
8329
|
let p;
|
8309
|
-
return d.keyPrefix && Array.isArray(c) ? p = c.map((
|
8330
|
+
return d.keyPrefix && Array.isArray(c) ? p = c.map((f) => `${d.keyPrefix}${C}${f}`) : p = d.keyPrefix ? `${d.keyPrefix}${C}${c}` : c, o.t(p, d);
|
8310
8331
|
};
|
8311
8332
|
return typeof e == "string" ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = s, a;
|
8312
8333
|
}
|
@@ -8338,7 +8359,7 @@ class J extends c1 {
|
|
8338
8359
|
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!o || c(a, e)));
|
8339
8360
|
}
|
8340
8361
|
loadNamespaces(e, t) {
|
8341
|
-
const s =
|
8362
|
+
const s = q();
|
8342
8363
|
return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((o) => {
|
8343
8364
|
this.options.ns.indexOf(o) < 0 && this.options.ns.push(o);
|
8344
8365
|
}), this.loadResources((o) => {
|
@@ -8346,7 +8367,7 @@ class J extends c1 {
|
|
8346
8367
|
}), s) : (t && t(), Promise.resolve());
|
8347
8368
|
}
|
8348
8369
|
loadLanguages(e, t) {
|
8349
|
-
const s =
|
8370
|
+
const s = q();
|
8350
8371
|
typeof e == "string" && (e = [e]);
|
8351
8372
|
const o = this.options.preload || [], a = e.filter((c) => o.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
|
8352
8373
|
return a.length ? (this.options.preload = o.concat(a), this.loadResources((c) => {
|
@@ -8355,29 +8376,29 @@ class J extends c1 {
|
|
8355
8376
|
}
|
8356
8377
|
dir(e) {
|
8357
8378
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
|
8358
|
-
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
|
8379
|
+
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 E1(V1());
|
8359
8380
|
return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
8360
8381
|
}
|
8361
8382
|
static createInstance() {
|
8362
8383
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
8363
|
-
return new
|
8384
|
+
return new e1(e, t);
|
8364
8385
|
}
|
8365
8386
|
cloneInstance() {
|
8366
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
8387
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o1;
|
8367
8388
|
const s = e.forkResourceStore;
|
8368
8389
|
s && delete e.forkResourceStore;
|
8369
8390
|
const o = {
|
8370
8391
|
...this.options,
|
8371
8392
|
...e,
|
8372
8393
|
isClone: !0
|
8373
|
-
}, a = new
|
8394
|
+
}, a = new e1(o);
|
8374
8395
|
return (e.debug !== void 0 || e.prefix !== void 0) && (a.logger = a.logger.clone(e)), ["store", "services", "language"].forEach((r) => {
|
8375
8396
|
a[r] = this[r];
|
8376
8397
|
}), a.services = {
|
8377
8398
|
...this.services
|
8378
8399
|
}, a.services.utils = {
|
8379
8400
|
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
8380
|
-
}, s && (a.store = new
|
8401
|
+
}, s && (a.store = new y1(this.store.data, o), a.services.resourceStore = a.store), a.translator = new h1(a.services, o), a.translator.on("*", function(r) {
|
8381
8402
|
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), l = 1; l < d; l++)
|
8382
8403
|
g[l - 1] = arguments[l];
|
8383
8404
|
a.emit(r, ...g);
|
@@ -8395,8 +8416,8 @@ class J extends c1 {
|
|
8395
8416
|
};
|
8396
8417
|
}
|
8397
8418
|
}
|
8398
|
-
const H =
|
8399
|
-
H.createInstance =
|
8419
|
+
const H = e1.createInstance();
|
8420
|
+
H.createInstance = e1.createInstance;
|
8400
8421
|
H.createInstance;
|
8401
8422
|
H.dir;
|
8402
8423
|
H.init;
|
@@ -8411,18 +8432,18 @@ H.setDefaultNamespace;
|
|
8411
8432
|
H.hasLoadedNamespace;
|
8412
8433
|
H.loadNamespaces;
|
8413
8434
|
H.loadLanguages;
|
8414
|
-
function
|
8435
|
+
function $i() {
|
8415
8436
|
if (console && console.warn) {
|
8416
8437
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
8417
8438
|
e[t] = arguments[t];
|
8418
|
-
|
8439
|
+
G(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
8419
8440
|
}
|
8420
8441
|
}
|
8421
|
-
const
|
8422
|
-
function
|
8442
|
+
const S1 = {};
|
8443
|
+
function w1() {
|
8423
8444
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
8424
8445
|
e[t] = arguments[t];
|
8425
|
-
|
8446
|
+
G(e[0]) && S1[e[0]] || (G(e[0]) && (S1[e[0]] = /* @__PURE__ */ new Date()), $i(...e));
|
8426
8447
|
}
|
8427
8448
|
const Y1 = (i, e) => () => {
|
8428
8449
|
if (i.isInitialized)
|
@@ -8437,11 +8458,11 @@ const Y1 = (i, e) => () => {
|
|
8437
8458
|
}
|
8438
8459
|
}, O1 = (i, e, t) => {
|
8439
8460
|
i.loadNamespaces(e, Y1(i, t));
|
8440
|
-
},
|
8441
|
-
|
8461
|
+
}, A1 = (i, e, t, s) => {
|
8462
|
+
G(t) && (t = [t]), t.forEach((o) => {
|
8442
8463
|
i.options.ns.indexOf(o) < 0 && i.options.ns.push(o);
|
8443
8464
|
}), i.loadLanguages(e, Y1(i, s));
|
8444
|
-
},
|
8465
|
+
}, Yi = function(i, e) {
|
8445
8466
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
8446
8467
|
const s = e.languages[0], o = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
|
8447
8468
|
if (s.toLowerCase() === "cimode") return !0;
|
@@ -8450,15 +8471,15 @@ const Y1 = (i, e) => () => {
|
|
8450
8471
|
return g === -1 || g === 2;
|
8451
8472
|
};
|
8452
8473
|
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(a, i)));
|
8453
|
-
},
|
8474
|
+
}, Ui = function(i, e) {
|
8454
8475
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
8455
|
-
return !e.languages || !e.languages.length ? (
|
8476
|
+
return !e.languages || !e.languages.length ? (w1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
8456
8477
|
lng: t.lng,
|
8457
8478
|
precheck: (o, a) => {
|
8458
8479
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && o.services.backendConnector.backend && o.isLanguageChangingTo && !a(o.isLanguageChangingTo, i)) return !1;
|
8459
8480
|
}
|
8460
|
-
}) :
|
8461
|
-
},
|
8481
|
+
}) : Yi(i, e, t);
|
8482
|
+
}, G = (i) => typeof i == "string", zi = (i) => typeof i == "object" && i !== null, Ji = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Qi = {
|
8462
8483
|
"&": "&",
|
8463
8484
|
"&": "&",
|
8464
8485
|
"<": "<",
|
@@ -8479,8 +8500,8 @@ const Y1 = (i, e) => () => {
|
|
8479
8500
|
"…": "…",
|
8480
8501
|
"/": "/",
|
8481
8502
|
"/": "/"
|
8482
|
-
},
|
8483
|
-
let
|
8503
|
+
}, qi = (i) => Qi[i], Xi = (i) => i.replace(Ji, qi);
|
8504
|
+
let m1 = {
|
8484
8505
|
bindI18n: "languageChanged",
|
8485
8506
|
bindI18nStore: "",
|
8486
8507
|
transEmptyNodeValue: "",
|
@@ -8488,27 +8509,27 @@ let w1 = {
|
|
8488
8509
|
transWrapTextNodes: "",
|
8489
8510
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
8490
8511
|
useSuspense: !0,
|
8491
|
-
unescape:
|
8512
|
+
unescape: Xi
|
8492
8513
|
};
|
8493
|
-
const
|
8514
|
+
const e5 = function() {
|
8494
8515
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
8495
|
-
|
8496
|
-
...
|
8516
|
+
m1 = {
|
8517
|
+
...m1,
|
8497
8518
|
...i
|
8498
8519
|
};
|
8499
|
-
},
|
8500
|
-
let
|
8501
|
-
const
|
8502
|
-
|
8503
|
-
},
|
8520
|
+
}, t5 = () => m1;
|
8521
|
+
let U1;
|
8522
|
+
const i5 = (i) => {
|
8523
|
+
U1 = i;
|
8524
|
+
}, s5 = () => U1, o5 = {
|
8504
8525
|
type: "3rdParty",
|
8505
8526
|
init(i) {
|
8506
|
-
|
8527
|
+
e5(i.options.react), i5(i);
|
8507
8528
|
}
|
8508
|
-
},
|
8509
|
-
class
|
8529
|
+
}, n5 = t1();
|
8530
|
+
class r5 {
|
8510
8531
|
constructor() {
|
8511
|
-
|
8532
|
+
v1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
8512
8533
|
this.usedNamespaces = {};
|
8513
8534
|
}
|
8514
8535
|
addUsedNamespaces(e) {
|
@@ -8517,27 +8538,27 @@ class o5 {
|
|
8517
8538
|
});
|
8518
8539
|
}
|
8519
8540
|
}
|
8520
|
-
const
|
8521
|
-
const t =
|
8541
|
+
const l5 = (i, e) => {
|
8542
|
+
const t = k1();
|
8522
8543
|
return O(() => {
|
8523
8544
|
t.current = i;
|
8524
8545
|
}, [i, e]), t.current;
|
8525
|
-
},
|
8546
|
+
}, z1 = (i, e, t, s) => i.getFixedT(e, t, s), a5 = (i, e, t, s) => j1(z1(i, e, t, s), [i, e, t, s]), h5 = function(i) {
|
8526
8547
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
8527
8548
|
const {
|
8528
8549
|
i18n: t
|
8529
8550
|
} = e, {
|
8530
8551
|
i18n: s,
|
8531
8552
|
defaultNS: o
|
8532
|
-
} =
|
8533
|
-
if (a && !a.reportNamespaces && (a.reportNamespaces = new
|
8534
|
-
|
8535
|
-
const L = (b,
|
8553
|
+
} = i1(n5) || {}, a = t || s || s5();
|
8554
|
+
if (a && !a.reportNamespaces && (a.reportNamespaces = new r5()), !a) {
|
8555
|
+
w1("You will need to pass in an i18next instance by using initReactI18next");
|
8556
|
+
const L = (b, M) => G(M) ? M : zi(M) && G(M.defaultValue) ? M.defaultValue : Array.isArray(b) ? b[b.length - 1] : b, y = [L, {}, !1];
|
8536
8557
|
return y.t = L, y.i18n = {}, y.ready = !1, y;
|
8537
8558
|
}
|
8538
|
-
a.options.react && a.options.react.wait !== void 0 &&
|
8559
|
+
a.options.react && a.options.react.wait !== void 0 && w1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
8539
8560
|
const c = {
|
8540
|
-
...
|
8561
|
+
...t5(),
|
8541
8562
|
...a.options.react,
|
8542
8563
|
...e
|
8543
8564
|
}, {
|
@@ -8545,77 +8566,77 @@ const n5 = (i, e) => {
|
|
8545
8566
|
keyPrefix: d
|
8546
8567
|
} = c;
|
8547
8568
|
let g = i;
|
8548
|
-
g =
|
8549
|
-
const l = (a.isInitialized || a.initializedStoreOnce) && g.every((L) =>
|
8550
|
-
let
|
8551
|
-
e.lng && (
|
8552
|
-
const
|
8569
|
+
g = G(g) ? [g] : g || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(g);
|
8570
|
+
const l = (a.isInitialized || a.initializedStoreOnce) && g.every((L) => Ui(L, a, c)), h = a5(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => z1(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [f, N] = S(C);
|
8571
|
+
let v = g.join();
|
8572
|
+
e.lng && (v = `${e.lng}${v}`);
|
8573
|
+
const R = l5(v), x = k1(!0);
|
8553
8574
|
O(() => {
|
8554
8575
|
const {
|
8555
8576
|
bindI18n: L,
|
8556
8577
|
bindI18nStore: y
|
8557
8578
|
} = c;
|
8558
|
-
|
8559
|
-
|
8579
|
+
x.current = !0, !l && !r && (e.lng ? A1(a, e.lng, g, () => {
|
8580
|
+
x.current && N(p);
|
8560
8581
|
}) : O1(a, g, () => {
|
8561
|
-
|
8562
|
-
})), l &&
|
8582
|
+
x.current && N(p);
|
8583
|
+
})), l && R && R !== v && x.current && N(p);
|
8563
8584
|
const b = () => {
|
8564
|
-
|
8585
|
+
x.current && N(p);
|
8565
8586
|
};
|
8566
8587
|
return L && a && a.on(L, b), y && a && a.store.on(y, b), () => {
|
8567
|
-
|
8588
|
+
x.current = !1, L && a && L.split(" ").forEach((M) => a.off(M, b)), y && a && y.split(" ").forEach((M) => a.store.off(M, b));
|
8568
8589
|
};
|
8569
|
-
}, [a,
|
8570
|
-
|
8590
|
+
}, [a, v]), O(() => {
|
8591
|
+
x.current && l && N(C);
|
8571
8592
|
}, [a, d, l]);
|
8572
|
-
const _ = [
|
8573
|
-
if (_.t =
|
8593
|
+
const _ = [f, a, l];
|
8594
|
+
if (_.t = f, _.i18n = a, _.ready = l, l || !l && !r) return _;
|
8574
8595
|
throw new Promise((L) => {
|
8575
|
-
e.lng ?
|
8596
|
+
e.lng ? A1(a, e.lng, g, () => L()) : O1(a, g, () => L());
|
8576
8597
|
});
|
8577
|
-
},
|
8578
|
-
placeholder: a5
|
8579
|
-
}, c5 = "Страна", d5 = {
|
8598
|
+
}, c5 = "Country", d5 = {
|
8580
8599
|
placeholder: c5
|
8600
|
+
}, g5 = "Страна", u5 = {
|
8601
|
+
placeholder: g5
|
8581
8602
|
};
|
8582
|
-
H.use(
|
8603
|
+
H.use(o5).init({
|
8583
8604
|
defaultNS: "common",
|
8584
8605
|
lng: "en",
|
8585
8606
|
resources: {
|
8586
8607
|
en: {
|
8587
|
-
common:
|
8608
|
+
common: d5
|
8588
8609
|
},
|
8589
8610
|
ru: {
|
8590
|
-
common:
|
8611
|
+
common: u5
|
8591
8612
|
}
|
8592
8613
|
}
|
8593
8614
|
});
|
8594
|
-
const
|
8615
|
+
const v5 = c1(
|
8595
8616
|
({ width: i, selectedCity: e, setSelectedCity: t, onChange: s, value: o, id: a, disabled: c }, r) => {
|
8596
|
-
const [d, g] =
|
8617
|
+
const [d, g] = S([]), [l, h] = S([]), { locale: C, axiosPeople: p } = i1(q1);
|
8597
8618
|
if (!p)
|
8598
8619
|
throw new Error(
|
8599
8620
|
`CountrySelect requires "axiosPeople" to fetch counties.
|
8600
8621
|
Please provide it via SNMTUiContext.`
|
8601
8622
|
);
|
8602
|
-
const { t:
|
8623
|
+
const { t: f } = h5("common", { lng: C }), N = j1(async () => {
|
8603
8624
|
try {
|
8604
|
-
const
|
8605
|
-
h(
|
8625
|
+
const R = await p.post("v1/countries/search");
|
8626
|
+
h(R == null ? void 0 : R.data.data);
|
8606
8627
|
} catch {
|
8607
8628
|
g([]);
|
8608
8629
|
}
|
8609
8630
|
}, [p]);
|
8610
8631
|
O(() => {
|
8611
|
-
|
8632
|
+
N();
|
8612
8633
|
}, []), O(() => {
|
8613
8634
|
if (e) {
|
8614
|
-
const
|
8615
|
-
(_) => _.name.includes(
|
8635
|
+
const R = e.split("-")[1], x = l.filter(
|
8636
|
+
(_) => _.name.includes(R)
|
8616
8637
|
);
|
8617
|
-
if (
|
8618
|
-
const _ =
|
8638
|
+
if (x.length) {
|
8639
|
+
const _ = x.map((L) => ({
|
8619
8640
|
label: L.name,
|
8620
8641
|
value: L.name
|
8621
8642
|
}));
|
@@ -8623,24 +8644,24 @@ const k5 = h1(
|
|
8623
8644
|
}
|
8624
8645
|
}
|
8625
8646
|
}, [e, l, s]), O(() => {
|
8626
|
-
const
|
8627
|
-
label:
|
8628
|
-
value:
|
8647
|
+
const R = l.map((x) => ({
|
8648
|
+
label: x.name,
|
8649
|
+
value: x.name
|
8629
8650
|
}));
|
8630
|
-
g(
|
8651
|
+
g(R);
|
8631
8652
|
}, [l]);
|
8632
|
-
const
|
8633
|
-
|
8653
|
+
const v = (R) => {
|
8654
|
+
R === "None" ? (s(""), t && t("")) : (s(R), t && t(""));
|
8634
8655
|
};
|
8635
8656
|
return /* @__PURE__ */ n("div", { className: "snmt-country-select", children: /* @__PURE__ */ n(
|
8636
|
-
|
8657
|
+
Ni,
|
8637
8658
|
{
|
8638
8659
|
id: a,
|
8639
8660
|
width: i,
|
8640
|
-
placeholder:
|
8661
|
+
placeholder: f("placeholder"),
|
8641
8662
|
value: o,
|
8642
8663
|
ref: r,
|
8643
|
-
onChange:
|
8664
|
+
onChange: v,
|
8644
8665
|
options: [{ label: "None", value: "None" }, ...d],
|
8645
8666
|
disabled: c
|
8646
8667
|
}
|
@@ -8648,5 +8669,5 @@ const k5 = h1(
|
|
8648
8669
|
}
|
8649
8670
|
);
|
8650
8671
|
export {
|
8651
|
-
|
8672
|
+
v5 as CountrySelect
|
8652
8673
|
};
|