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