@snmt-react-ui/city-select 2.8.5 → 2.8.7
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 +200 -202
- package/package.json +3 -3
package/dist/city-select.js
CHANGED
|
@@ -2,7 +2,7 @@ var m2 = Object.defineProperty;
|
|
|
2
2
|
var w2 = (i, e, t) => e in i ? m2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var G1 = (i, e, t) => w2(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import "./index.css";
|
|
5
|
-
import { jsx as r, Fragment as i1, jsxs as
|
|
5
|
+
import { jsx as r, Fragment as i1, jsxs as u } from "react/jsx-runtime";
|
|
6
6
|
import { SNMTUiContext as L2 } from "@snmt-react-ui/core";
|
|
7
7
|
import { forwardRef as L1, useState as O, useRef as W, useCallback as K, useEffect as Z, useMemo as k2, useImperativeHandle as y1, useContext as r1, createContext as d1 } from "react";
|
|
8
8
|
import { Select as v2, Tag as N2, Flex as R2, Checkbox as x2, Avatar as M2, Typography as r2, Popover as b2 } from "antd";
|
|
@@ -128,7 +128,7 @@ const $2 = (i, e) => {
|
|
|
128
128
|
} = h;
|
|
129
129
|
let d = i;
|
|
130
130
|
d = s1(d) ? [d] : d || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(d);
|
|
131
|
-
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((p) => A2(p, o, h)), c = F2(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C),
|
|
131
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((p) => A2(p, o, h)), c = F2(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C), g = () => c, f = () => a2(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C), [w, v] = O(g);
|
|
132
132
|
let m = d.join();
|
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
|
134
134
|
const y = $2(m), _ = W(!0);
|
|
@@ -149,7 +149,7 @@ const $2 = (i, e) => {
|
|
|
149
149
|
_.current = !1, p && o && p.split(" ").forEach((k) => o.off(k, M)), L && o && L.split(" ").forEach((k) => o.store.off(k, M));
|
|
150
150
|
};
|
|
151
151
|
}, [o, m]), Z(() => {
|
|
152
|
-
_.current && l && v(
|
|
152
|
+
_.current && l && v(g);
|
|
153
153
|
}, [o, C, l]);
|
|
154
154
|
const E = [w, o, l];
|
|
155
155
|
if (E.t = w, E.i18n = o, E.ready = l, l || !l && !a) return E;
|
|
@@ -264,7 +264,7 @@ const J2 = ({
|
|
|
264
264
|
color: t = R.GREY_DARK_5,
|
|
265
265
|
className: s,
|
|
266
266
|
onClick: n
|
|
267
|
-
}) => /* @__PURE__ */
|
|
267
|
+
}) => /* @__PURE__ */ u(
|
|
268
268
|
"svg",
|
|
269
269
|
{
|
|
270
270
|
width: i,
|
|
@@ -304,7 +304,7 @@ const J2 = ({
|
|
|
304
304
|
color: t = "#001E52",
|
|
305
305
|
className: s,
|
|
306
306
|
onClick: n
|
|
307
|
-
}) => /* @__PURE__ */
|
|
307
|
+
}) => /* @__PURE__ */ u(
|
|
308
308
|
"svg",
|
|
309
309
|
{
|
|
310
310
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -339,7 +339,7 @@ const J2 = ({
|
|
|
339
339
|
color: t = R.GREY_DARK_5,
|
|
340
340
|
className: s,
|
|
341
341
|
onClick: n
|
|
342
|
-
}) => /* @__PURE__ */
|
|
342
|
+
}) => /* @__PURE__ */ u(
|
|
343
343
|
"svg",
|
|
344
344
|
{
|
|
345
345
|
width: i,
|
|
@@ -458,7 +458,7 @@ const J2 = ({
|
|
|
458
458
|
color: t = R.GREY_DARK_5,
|
|
459
459
|
className: s,
|
|
460
460
|
onClick: n
|
|
461
|
-
}) => /* @__PURE__ */
|
|
461
|
+
}) => /* @__PURE__ */ u(
|
|
462
462
|
"svg",
|
|
463
463
|
{
|
|
464
464
|
width: i,
|
|
@@ -519,7 +519,7 @@ const J2 = ({
|
|
|
519
519
|
color: t = R.GREY_DARK_5,
|
|
520
520
|
className: s,
|
|
521
521
|
onClick: n
|
|
522
|
-
}) => /* @__PURE__ */
|
|
522
|
+
}) => /* @__PURE__ */ u(
|
|
523
523
|
"svg",
|
|
524
524
|
{
|
|
525
525
|
width: i,
|
|
@@ -566,7 +566,7 @@ const J2 = ({
|
|
|
566
566
|
color: t = R.GREY_DARK_5,
|
|
567
567
|
className: s,
|
|
568
568
|
onClick: n
|
|
569
|
-
}) => /* @__PURE__ */
|
|
569
|
+
}) => /* @__PURE__ */ u(
|
|
570
570
|
"svg",
|
|
571
571
|
{
|
|
572
572
|
width: i,
|
|
@@ -606,7 +606,7 @@ const J2 = ({
|
|
|
606
606
|
color: t = R.GREY_DARK_5,
|
|
607
607
|
className: s,
|
|
608
608
|
onClick: n
|
|
609
|
-
}) => /* @__PURE__ */
|
|
609
|
+
}) => /* @__PURE__ */ u(
|
|
610
610
|
"svg",
|
|
611
611
|
{
|
|
612
612
|
width: i,
|
|
@@ -646,7 +646,7 @@ const J2 = ({
|
|
|
646
646
|
color: t = R.GREY_DARK_5,
|
|
647
647
|
className: s,
|
|
648
648
|
onClick: n
|
|
649
|
-
}) => /* @__PURE__ */
|
|
649
|
+
}) => /* @__PURE__ */ u(
|
|
650
650
|
"svg",
|
|
651
651
|
{
|
|
652
652
|
width: i,
|
|
@@ -693,7 +693,7 @@ const J2 = ({
|
|
|
693
693
|
color: t = R.GREY_DARK_5,
|
|
694
694
|
className: s,
|
|
695
695
|
onClick: n
|
|
696
|
-
}) => /* @__PURE__ */
|
|
696
|
+
}) => /* @__PURE__ */ u(
|
|
697
697
|
"svg",
|
|
698
698
|
{
|
|
699
699
|
width: i,
|
|
@@ -740,7 +740,7 @@ const J2 = ({
|
|
|
740
740
|
color: t = R.GREY_DARK_5,
|
|
741
741
|
className: s,
|
|
742
742
|
onClick: n
|
|
743
|
-
}) => /* @__PURE__ */
|
|
743
|
+
}) => /* @__PURE__ */ u(
|
|
744
744
|
"svg",
|
|
745
745
|
{
|
|
746
746
|
width: i,
|
|
@@ -787,7 +787,7 @@ const J2 = ({
|
|
|
787
787
|
color: t = R.GREY_DARK_5,
|
|
788
788
|
className: s,
|
|
789
789
|
onClick: n
|
|
790
|
-
}) => /* @__PURE__ */
|
|
790
|
+
}) => /* @__PURE__ */ u(
|
|
791
791
|
"svg",
|
|
792
792
|
{
|
|
793
793
|
width: i,
|
|
@@ -827,7 +827,7 @@ const J2 = ({
|
|
|
827
827
|
color: t = R.GREY_DARK_5,
|
|
828
828
|
className: s,
|
|
829
829
|
onClick: n
|
|
830
|
-
}) => /* @__PURE__ */
|
|
830
|
+
}) => /* @__PURE__ */ u(
|
|
831
831
|
"svg",
|
|
832
832
|
{
|
|
833
833
|
width: i,
|
|
@@ -860,7 +860,7 @@ const J2 = ({
|
|
|
860
860
|
color: t = R.GREY_DARK_5,
|
|
861
861
|
className: s,
|
|
862
862
|
onClick: n
|
|
863
|
-
}) => /* @__PURE__ */
|
|
863
|
+
}) => /* @__PURE__ */ u(
|
|
864
864
|
"svg",
|
|
865
865
|
{
|
|
866
866
|
width: i,
|
|
@@ -887,13 +887,13 @@ const J2 = ({
|
|
|
887
887
|
)
|
|
888
888
|
]
|
|
889
889
|
}
|
|
890
|
-
),
|
|
890
|
+
), g5 = ({
|
|
891
891
|
width: i = 20,
|
|
892
892
|
height: e = 20,
|
|
893
893
|
color: t = R.GREY_DARK_5,
|
|
894
894
|
className: s,
|
|
895
895
|
onClick: n
|
|
896
|
-
}) => /* @__PURE__ */
|
|
896
|
+
}) => /* @__PURE__ */ u(
|
|
897
897
|
"svg",
|
|
898
898
|
{
|
|
899
899
|
width: i,
|
|
@@ -920,13 +920,13 @@ const J2 = ({
|
|
|
920
920
|
)
|
|
921
921
|
]
|
|
922
922
|
}
|
|
923
|
-
),
|
|
923
|
+
), u5 = ({
|
|
924
924
|
width: i = 20,
|
|
925
925
|
height: e = 20,
|
|
926
926
|
color: t = R.GREY_DARK_5,
|
|
927
927
|
className: s,
|
|
928
928
|
onClick: n
|
|
929
|
-
}) => /* @__PURE__ */
|
|
929
|
+
}) => /* @__PURE__ */ u(
|
|
930
930
|
"svg",
|
|
931
931
|
{
|
|
932
932
|
width: i,
|
|
@@ -959,7 +959,7 @@ const J2 = ({
|
|
|
959
959
|
color: t = R.GREY_DARK_5,
|
|
960
960
|
className: s,
|
|
961
961
|
onClick: n
|
|
962
|
-
}) => /* @__PURE__ */
|
|
962
|
+
}) => /* @__PURE__ */ u(
|
|
963
963
|
"svg",
|
|
964
964
|
{
|
|
965
965
|
width: i,
|
|
@@ -999,7 +999,7 @@ const J2 = ({
|
|
|
999
999
|
color: t = R.GREY_DARK_5,
|
|
1000
1000
|
className: s,
|
|
1001
1001
|
onClick: n
|
|
1002
|
-
}) => /* @__PURE__ */
|
|
1002
|
+
}) => /* @__PURE__ */ u(
|
|
1003
1003
|
"svg",
|
|
1004
1004
|
{
|
|
1005
1005
|
width: i,
|
|
@@ -1032,7 +1032,7 @@ const J2 = ({
|
|
|
1032
1032
|
color: t = R.GREY_DARK_5,
|
|
1033
1033
|
className: s,
|
|
1034
1034
|
onClick: n
|
|
1035
|
-
}) => /* @__PURE__ */
|
|
1035
|
+
}) => /* @__PURE__ */ u(
|
|
1036
1036
|
"svg",
|
|
1037
1037
|
{
|
|
1038
1038
|
width: i,
|
|
@@ -1065,7 +1065,7 @@ const J2 = ({
|
|
|
1065
1065
|
color: t = "#070739",
|
|
1066
1066
|
className: s,
|
|
1067
1067
|
onClick: n
|
|
1068
|
-
}) => /* @__PURE__ */
|
|
1068
|
+
}) => /* @__PURE__ */ u(
|
|
1069
1069
|
"svg",
|
|
1070
1070
|
{
|
|
1071
1071
|
width: i,
|
|
@@ -1095,7 +1095,7 @@ const J2 = ({
|
|
|
1095
1095
|
color: t = "#070739",
|
|
1096
1096
|
className: s,
|
|
1097
1097
|
onClick: n
|
|
1098
|
-
}) => /* @__PURE__ */
|
|
1098
|
+
}) => /* @__PURE__ */ u(
|
|
1099
1099
|
"svg",
|
|
1100
1100
|
{
|
|
1101
1101
|
width: i,
|
|
@@ -1159,7 +1159,7 @@ const J2 = ({
|
|
|
1159
1159
|
color: t = "#F2F2F7",
|
|
1160
1160
|
className: s,
|
|
1161
1161
|
onClick: n
|
|
1162
|
-
}) => /* @__PURE__ */
|
|
1162
|
+
}) => /* @__PURE__ */ u(
|
|
1163
1163
|
"svg",
|
|
1164
1164
|
{
|
|
1165
1165
|
width: i,
|
|
@@ -1188,7 +1188,7 @@ const J2 = ({
|
|
|
1188
1188
|
color: t = "#004ED7",
|
|
1189
1189
|
className: s,
|
|
1190
1190
|
onClick: n
|
|
1191
|
-
}) => /* @__PURE__ */
|
|
1191
|
+
}) => /* @__PURE__ */ u(
|
|
1192
1192
|
"svg",
|
|
1193
1193
|
{
|
|
1194
1194
|
width: i,
|
|
@@ -1217,7 +1217,7 @@ const J2 = ({
|
|
|
1217
1217
|
color: t = "#001E52",
|
|
1218
1218
|
className: s,
|
|
1219
1219
|
onClick: n
|
|
1220
|
-
}) => /* @__PURE__ */
|
|
1220
|
+
}) => /* @__PURE__ */ u(
|
|
1221
1221
|
"svg",
|
|
1222
1222
|
{
|
|
1223
1223
|
width: i,
|
|
@@ -1246,7 +1246,7 @@ const J2 = ({
|
|
|
1246
1246
|
color: t = "#001E52",
|
|
1247
1247
|
className: s,
|
|
1248
1248
|
onClick: n
|
|
1249
|
-
}) => /* @__PURE__ */
|
|
1249
|
+
}) => /* @__PURE__ */ u(
|
|
1250
1250
|
"svg",
|
|
1251
1251
|
{
|
|
1252
1252
|
width: i,
|
|
@@ -1283,7 +1283,7 @@ const J2 = ({
|
|
|
1283
1283
|
height: t = 20,
|
|
1284
1284
|
width: s = 20,
|
|
1285
1285
|
onClick: n
|
|
1286
|
-
}) => /* @__PURE__ */
|
|
1286
|
+
}) => /* @__PURE__ */ u(
|
|
1287
1287
|
"svg",
|
|
1288
1288
|
{
|
|
1289
1289
|
width: s,
|
|
@@ -1419,7 +1419,7 @@ const J2 = ({
|
|
|
1419
1419
|
height: t = 20,
|
|
1420
1420
|
width: s = 20,
|
|
1421
1421
|
onClick: n
|
|
1422
|
-
}) => /* @__PURE__ */
|
|
1422
|
+
}) => /* @__PURE__ */ u(
|
|
1423
1423
|
"svg",
|
|
1424
1424
|
{
|
|
1425
1425
|
width: s,
|
|
@@ -1452,7 +1452,7 @@ const J2 = ({
|
|
|
1452
1452
|
height: t = 24,
|
|
1453
1453
|
width: s = 24,
|
|
1454
1454
|
onClick: n
|
|
1455
|
-
}) => /* @__PURE__ */
|
|
1455
|
+
}) => /* @__PURE__ */ u(
|
|
1456
1456
|
"svg",
|
|
1457
1457
|
{
|
|
1458
1458
|
width: s,
|
|
@@ -1518,7 +1518,7 @@ const J2 = ({
|
|
|
1518
1518
|
height: t = 24,
|
|
1519
1519
|
width: s = 24,
|
|
1520
1520
|
onClick: n
|
|
1521
|
-
}) => /* @__PURE__ */
|
|
1521
|
+
}) => /* @__PURE__ */ u(
|
|
1522
1522
|
"svg",
|
|
1523
1523
|
{
|
|
1524
1524
|
width: s,
|
|
@@ -1577,7 +1577,7 @@ const J2 = ({
|
|
|
1577
1577
|
height: t = 24,
|
|
1578
1578
|
width: s = 24,
|
|
1579
1579
|
onClick: n
|
|
1580
|
-
}) => /* @__PURE__ */
|
|
1580
|
+
}) => /* @__PURE__ */ u(
|
|
1581
1581
|
"svg",
|
|
1582
1582
|
{
|
|
1583
1583
|
width: s,
|
|
@@ -1614,7 +1614,7 @@ const J2 = ({
|
|
|
1614
1614
|
height: t = 14,
|
|
1615
1615
|
width: s = 14,
|
|
1616
1616
|
onClick: n
|
|
1617
|
-
}) => /* @__PURE__ */
|
|
1617
|
+
}) => /* @__PURE__ */ u(
|
|
1618
1618
|
"svg",
|
|
1619
1619
|
{
|
|
1620
1620
|
className: i,
|
|
@@ -1678,7 +1678,7 @@ const J2 = ({
|
|
|
1678
1678
|
height: t = 24,
|
|
1679
1679
|
width: s = 24,
|
|
1680
1680
|
onClick: n
|
|
1681
|
-
}) => /* @__PURE__ */
|
|
1681
|
+
}) => /* @__PURE__ */ u(
|
|
1682
1682
|
"svg",
|
|
1683
1683
|
{
|
|
1684
1684
|
onClick: n,
|
|
@@ -1730,7 +1730,7 @@ const J2 = ({
|
|
|
1730
1730
|
height: t = 24,
|
|
1731
1731
|
width: s = 24,
|
|
1732
1732
|
onClick: n
|
|
1733
|
-
}) => /* @__PURE__ */
|
|
1733
|
+
}) => /* @__PURE__ */ u(
|
|
1734
1734
|
"svg",
|
|
1735
1735
|
{
|
|
1736
1736
|
onClick: n,
|
|
@@ -1767,7 +1767,7 @@ const J2 = ({
|
|
|
1767
1767
|
height: t = 37,
|
|
1768
1768
|
width: s = 36,
|
|
1769
1769
|
onClick: n
|
|
1770
|
-
}) => /* @__PURE__ */
|
|
1770
|
+
}) => /* @__PURE__ */ u(
|
|
1771
1771
|
"svg",
|
|
1772
1772
|
{
|
|
1773
1773
|
onClick: n,
|
|
@@ -1832,7 +1832,7 @@ const J2 = ({
|
|
|
1832
1832
|
height: t = 24,
|
|
1833
1833
|
width: s = 24,
|
|
1834
1834
|
onClick: n
|
|
1835
|
-
}) => /* @__PURE__ */
|
|
1835
|
+
}) => /* @__PURE__ */ u(
|
|
1836
1836
|
"svg",
|
|
1837
1837
|
{
|
|
1838
1838
|
onClick: n,
|
|
@@ -1871,7 +1871,7 @@ const J2 = ({
|
|
|
1871
1871
|
height: t = 20,
|
|
1872
1872
|
width: s = 20,
|
|
1873
1873
|
onClick: n
|
|
1874
|
-
}) => /* @__PURE__ */
|
|
1874
|
+
}) => /* @__PURE__ */ u(
|
|
1875
1875
|
"svg",
|
|
1876
1876
|
{
|
|
1877
1877
|
onClick: n,
|
|
@@ -1904,7 +1904,7 @@ const J2 = ({
|
|
|
1904
1904
|
height: t = 24,
|
|
1905
1905
|
width: s = 24,
|
|
1906
1906
|
onClick: n
|
|
1907
|
-
}) => /* @__PURE__ */
|
|
1907
|
+
}) => /* @__PURE__ */ u(
|
|
1908
1908
|
"svg",
|
|
1909
1909
|
{
|
|
1910
1910
|
onClick: n,
|
|
@@ -1973,7 +1973,7 @@ const J2 = ({
|
|
|
1973
1973
|
height: t = 24,
|
|
1974
1974
|
width: s = 24,
|
|
1975
1975
|
onClick: n
|
|
1976
|
-
}) => /* @__PURE__ */
|
|
1976
|
+
}) => /* @__PURE__ */ u(
|
|
1977
1977
|
"svg",
|
|
1978
1978
|
{
|
|
1979
1979
|
onClick: n,
|
|
@@ -2030,7 +2030,7 @@ const J2 = ({
|
|
|
2030
2030
|
height: t = 24,
|
|
2031
2031
|
width: s = 24,
|
|
2032
2032
|
onClick: n
|
|
2033
|
-
}) => /* @__PURE__ */
|
|
2033
|
+
}) => /* @__PURE__ */ u(
|
|
2034
2034
|
"svg",
|
|
2035
2035
|
{
|
|
2036
2036
|
onClick: n,
|
|
@@ -2106,7 +2106,7 @@ const J2 = ({
|
|
|
2106
2106
|
height: t = 20,
|
|
2107
2107
|
width: s = 20,
|
|
2108
2108
|
onClick: n
|
|
2109
|
-
}) => /* @__PURE__ */
|
|
2109
|
+
}) => /* @__PURE__ */ u(
|
|
2110
2110
|
"svg",
|
|
2111
2111
|
{
|
|
2112
2112
|
onClick: n,
|
|
@@ -2172,7 +2172,7 @@ const J2 = ({
|
|
|
2172
2172
|
version: "1.1",
|
|
2173
2173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2174
2174
|
viewBox: "0 0 489.698 489.698",
|
|
2175
|
-
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */
|
|
2175
|
+
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */ u("g", { children: [
|
|
2176
2176
|
/* @__PURE__ */ r(
|
|
2177
2177
|
"path",
|
|
2178
2178
|
{
|
|
@@ -2255,7 +2255,7 @@ const J2 = ({
|
|
|
2255
2255
|
color: t = "#131314",
|
|
2256
2256
|
className: s,
|
|
2257
2257
|
onClick: n
|
|
2258
|
-
}) => /* @__PURE__ */
|
|
2258
|
+
}) => /* @__PURE__ */ u(
|
|
2259
2259
|
"svg",
|
|
2260
2260
|
{
|
|
2261
2261
|
width: i,
|
|
@@ -2288,7 +2288,7 @@ const J2 = ({
|
|
|
2288
2288
|
color: t = R.GREY_DARK_2,
|
|
2289
2289
|
className: s,
|
|
2290
2290
|
onClick: n
|
|
2291
|
-
}) => /* @__PURE__ */
|
|
2291
|
+
}) => /* @__PURE__ */ u(
|
|
2292
2292
|
"svg",
|
|
2293
2293
|
{
|
|
2294
2294
|
width: i,
|
|
@@ -2327,7 +2327,7 @@ const J2 = ({
|
|
|
2327
2327
|
color: t = R.GREY_DARK_2,
|
|
2328
2328
|
className: s,
|
|
2329
2329
|
onClick: n
|
|
2330
|
-
}) => /* @__PURE__ */
|
|
2330
|
+
}) => /* @__PURE__ */ u(
|
|
2331
2331
|
"svg",
|
|
2332
2332
|
{
|
|
2333
2333
|
width: i,
|
|
@@ -2441,7 +2441,7 @@ const J2 = ({
|
|
|
2441
2441
|
}
|
|
2442
2442
|
)
|
|
2443
2443
|
}
|
|
2444
|
-
),
|
|
2444
|
+
), g1 = ({
|
|
2445
2445
|
name: i,
|
|
2446
2446
|
width: e,
|
|
2447
2447
|
height: t,
|
|
@@ -2510,16 +2510,15 @@ const J2 = ({
|
|
|
2510
2510
|
case "logOut":
|
|
2511
2511
|
return C5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2512
2512
|
case "settings":
|
|
2513
|
-
return u5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2514
|
-
case "trash":
|
|
2515
2513
|
return g5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2514
|
+
case "trash":
|
|
2515
|
+
return u5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2516
2516
|
case "settings2":
|
|
2517
2517
|
return f5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2518
2518
|
case "checkCircle":
|
|
2519
2519
|
return p5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2520
2520
|
case "cancelCircle":
|
|
2521
2521
|
return m5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2522
|
-
case "infoMedium":
|
|
2523
2522
|
case "visibilityIcon":
|
|
2524
2523
|
return w5({
|
|
2525
2524
|
width: e,
|
|
@@ -2660,7 +2659,7 @@ const J2 = ({
|
|
|
2660
2659
|
y.disconnect();
|
|
2661
2660
|
};
|
|
2662
2661
|
}, [a]);
|
|
2663
|
-
const
|
|
2662
|
+
const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
2664
2663
|
let f = `snmt-typography snmt-typography-${e}`;
|
|
2665
2664
|
i && i !== "inherit" && (f += ` snmt-typography-align-${i}`), o && (f += " collapsed");
|
|
2666
2665
|
const w = {
|
|
@@ -2675,7 +2674,7 @@ const J2 = ({
|
|
|
2675
2674
|
}
|
|
2676
2675
|
} : void 0
|
|
2677
2676
|
};
|
|
2678
|
-
return
|
|
2677
|
+
return g ? /* @__PURE__ */ r(se, { level: re[e], ...w, children: s }) : /* @__PURE__ */ r(ne, { ...w, children: s });
|
|
2679
2678
|
}
|
|
2680
2679
|
);
|
|
2681
2680
|
var x = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_LIGHT_2 = "var(--purple-light-2)", 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.CYAN_LIGHT = "var(--cyan-light)", i.GOLD_LIGHT = "var(--gold-light)", i))(x || {});
|
|
@@ -2717,7 +2716,7 @@ const ae = ({
|
|
|
2717
2716
|
color: t = x.GREY_DARK_5,
|
|
2718
2717
|
className: s,
|
|
2719
2718
|
onClick: n
|
|
2720
|
-
}) => /* @__PURE__ */
|
|
2719
|
+
}) => /* @__PURE__ */ u(
|
|
2721
2720
|
"svg",
|
|
2722
2721
|
{
|
|
2723
2722
|
width: i,
|
|
@@ -2757,7 +2756,7 @@ const ae = ({
|
|
|
2757
2756
|
color: t = "#001E52",
|
|
2758
2757
|
className: s,
|
|
2759
2758
|
onClick: n
|
|
2760
|
-
}) => /* @__PURE__ */
|
|
2759
|
+
}) => /* @__PURE__ */ u(
|
|
2761
2760
|
"svg",
|
|
2762
2761
|
{
|
|
2763
2762
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2792,7 +2791,7 @@ const ae = ({
|
|
|
2792
2791
|
color: t = x.GREY_DARK_5,
|
|
2793
2792
|
className: s,
|
|
2794
2793
|
onClick: n
|
|
2795
|
-
}) => /* @__PURE__ */
|
|
2794
|
+
}) => /* @__PURE__ */ u(
|
|
2796
2795
|
"svg",
|
|
2797
2796
|
{
|
|
2798
2797
|
width: i,
|
|
@@ -2881,7 +2880,7 @@ const ae = ({
|
|
|
2881
2880
|
}
|
|
2882
2881
|
)
|
|
2883
2882
|
}
|
|
2884
|
-
),
|
|
2883
|
+
), ge = ({
|
|
2885
2884
|
width: i = 20,
|
|
2886
2885
|
height: e = 20,
|
|
2887
2886
|
color: t = x.GREY_DARK_5,
|
|
@@ -2905,13 +2904,13 @@ const ae = ({
|
|
|
2905
2904
|
}
|
|
2906
2905
|
)
|
|
2907
2906
|
}
|
|
2908
|
-
),
|
|
2907
|
+
), ue = ({
|
|
2909
2908
|
width: i = 20,
|
|
2910
2909
|
height: e = 20,
|
|
2911
2910
|
color: t = x.GREY_DARK_5,
|
|
2912
2911
|
className: s,
|
|
2913
2912
|
onClick: n
|
|
2914
|
-
}) => /* @__PURE__ */
|
|
2913
|
+
}) => /* @__PURE__ */ u(
|
|
2915
2914
|
"svg",
|
|
2916
2915
|
{
|
|
2917
2916
|
width: i,
|
|
@@ -2972,7 +2971,7 @@ const ae = ({
|
|
|
2972
2971
|
color: t = x.GREY_DARK_5,
|
|
2973
2972
|
className: s,
|
|
2974
2973
|
onClick: n
|
|
2975
|
-
}) => /* @__PURE__ */
|
|
2974
|
+
}) => /* @__PURE__ */ u(
|
|
2976
2975
|
"svg",
|
|
2977
2976
|
{
|
|
2978
2977
|
width: i,
|
|
@@ -3019,7 +3018,7 @@ const ae = ({
|
|
|
3019
3018
|
color: t = x.GREY_DARK_5,
|
|
3020
3019
|
className: s,
|
|
3021
3020
|
onClick: n
|
|
3022
|
-
}) => /* @__PURE__ */
|
|
3021
|
+
}) => /* @__PURE__ */ u(
|
|
3023
3022
|
"svg",
|
|
3024
3023
|
{
|
|
3025
3024
|
width: i,
|
|
@@ -3059,7 +3058,7 @@ const ae = ({
|
|
|
3059
3058
|
color: t = x.GREY_DARK_5,
|
|
3060
3059
|
className: s,
|
|
3061
3060
|
onClick: n
|
|
3062
|
-
}) => /* @__PURE__ */
|
|
3061
|
+
}) => /* @__PURE__ */ u(
|
|
3063
3062
|
"svg",
|
|
3064
3063
|
{
|
|
3065
3064
|
width: i,
|
|
@@ -3099,7 +3098,7 @@ const ae = ({
|
|
|
3099
3098
|
color: t = x.GREY_DARK_5,
|
|
3100
3099
|
className: s,
|
|
3101
3100
|
onClick: n
|
|
3102
|
-
}) => /* @__PURE__ */
|
|
3101
|
+
}) => /* @__PURE__ */ u(
|
|
3103
3102
|
"svg",
|
|
3104
3103
|
{
|
|
3105
3104
|
width: i,
|
|
@@ -3146,7 +3145,7 @@ const ae = ({
|
|
|
3146
3145
|
color: t = x.GREY_DARK_5,
|
|
3147
3146
|
className: s,
|
|
3148
3147
|
onClick: n
|
|
3149
|
-
}) => /* @__PURE__ */
|
|
3148
|
+
}) => /* @__PURE__ */ u(
|
|
3150
3149
|
"svg",
|
|
3151
3150
|
{
|
|
3152
3151
|
width: i,
|
|
@@ -3193,7 +3192,7 @@ const ae = ({
|
|
|
3193
3192
|
color: t = x.GREY_DARK_5,
|
|
3194
3193
|
className: s,
|
|
3195
3194
|
onClick: n
|
|
3196
|
-
}) => /* @__PURE__ */
|
|
3195
|
+
}) => /* @__PURE__ */ u(
|
|
3197
3196
|
"svg",
|
|
3198
3197
|
{
|
|
3199
3198
|
width: i,
|
|
@@ -3240,7 +3239,7 @@ const ae = ({
|
|
|
3240
3239
|
color: t = x.GREY_DARK_5,
|
|
3241
3240
|
className: s,
|
|
3242
3241
|
onClick: n
|
|
3243
|
-
}) => /* @__PURE__ */
|
|
3242
|
+
}) => /* @__PURE__ */ u(
|
|
3244
3243
|
"svg",
|
|
3245
3244
|
{
|
|
3246
3245
|
width: i,
|
|
@@ -3280,7 +3279,7 @@ const ae = ({
|
|
|
3280
3279
|
color: t = x.GREY_DARK_5,
|
|
3281
3280
|
className: s,
|
|
3282
3281
|
onClick: n
|
|
3283
|
-
}) => /* @__PURE__ */
|
|
3282
|
+
}) => /* @__PURE__ */ u(
|
|
3284
3283
|
"svg",
|
|
3285
3284
|
{
|
|
3286
3285
|
width: i,
|
|
@@ -3313,7 +3312,7 @@ const ae = ({
|
|
|
3313
3312
|
color: t = x.GREY_DARK_5,
|
|
3314
3313
|
className: s,
|
|
3315
3314
|
onClick: n
|
|
3316
|
-
}) => /* @__PURE__ */
|
|
3315
|
+
}) => /* @__PURE__ */ u(
|
|
3317
3316
|
"svg",
|
|
3318
3317
|
{
|
|
3319
3318
|
width: i,
|
|
@@ -3346,7 +3345,7 @@ const ae = ({
|
|
|
3346
3345
|
color: t = x.GREY_DARK_5,
|
|
3347
3346
|
className: s,
|
|
3348
3347
|
onClick: n
|
|
3349
|
-
}) => /* @__PURE__ */
|
|
3348
|
+
}) => /* @__PURE__ */ u(
|
|
3350
3349
|
"svg",
|
|
3351
3350
|
{
|
|
3352
3351
|
width: i,
|
|
@@ -3379,7 +3378,7 @@ const ae = ({
|
|
|
3379
3378
|
color: t = x.GREY_DARK_5,
|
|
3380
3379
|
className: s,
|
|
3381
3380
|
onClick: n
|
|
3382
|
-
}) => /* @__PURE__ */
|
|
3381
|
+
}) => /* @__PURE__ */ u(
|
|
3383
3382
|
"svg",
|
|
3384
3383
|
{
|
|
3385
3384
|
width: i,
|
|
@@ -3412,7 +3411,7 @@ const ae = ({
|
|
|
3412
3411
|
color: t = x.GREY_DARK_5,
|
|
3413
3412
|
className: s,
|
|
3414
3413
|
onClick: n
|
|
3415
|
-
}) => /* @__PURE__ */
|
|
3414
|
+
}) => /* @__PURE__ */ u(
|
|
3416
3415
|
"svg",
|
|
3417
3416
|
{
|
|
3418
3417
|
width: i,
|
|
@@ -3452,7 +3451,7 @@ const ae = ({
|
|
|
3452
3451
|
color: t = x.GREY_DARK_5,
|
|
3453
3452
|
className: s,
|
|
3454
3453
|
onClick: n
|
|
3455
|
-
}) => /* @__PURE__ */
|
|
3454
|
+
}) => /* @__PURE__ */ u(
|
|
3456
3455
|
"svg",
|
|
3457
3456
|
{
|
|
3458
3457
|
width: i,
|
|
@@ -3485,7 +3484,7 @@ const ae = ({
|
|
|
3485
3484
|
color: t = x.GREY_DARK_5,
|
|
3486
3485
|
className: s,
|
|
3487
3486
|
onClick: n
|
|
3488
|
-
}) => /* @__PURE__ */
|
|
3487
|
+
}) => /* @__PURE__ */ u(
|
|
3489
3488
|
"svg",
|
|
3490
3489
|
{
|
|
3491
3490
|
width: i,
|
|
@@ -3518,7 +3517,7 @@ const ae = ({
|
|
|
3518
3517
|
color: t = "#070739",
|
|
3519
3518
|
className: s,
|
|
3520
3519
|
onClick: n
|
|
3521
|
-
}) => /* @__PURE__ */
|
|
3520
|
+
}) => /* @__PURE__ */ u(
|
|
3522
3521
|
"svg",
|
|
3523
3522
|
{
|
|
3524
3523
|
width: i,
|
|
@@ -3548,7 +3547,7 @@ const ae = ({
|
|
|
3548
3547
|
color: t = "#070739",
|
|
3549
3548
|
className: s,
|
|
3550
3549
|
onClick: n
|
|
3551
|
-
}) => /* @__PURE__ */
|
|
3550
|
+
}) => /* @__PURE__ */ u(
|
|
3552
3551
|
"svg",
|
|
3553
3552
|
{
|
|
3554
3553
|
width: i,
|
|
@@ -3612,7 +3611,7 @@ const ae = ({
|
|
|
3612
3611
|
color: t = "#F2F2F7",
|
|
3613
3612
|
className: s,
|
|
3614
3613
|
onClick: n
|
|
3615
|
-
}) => /* @__PURE__ */
|
|
3614
|
+
}) => /* @__PURE__ */ u(
|
|
3616
3615
|
"svg",
|
|
3617
3616
|
{
|
|
3618
3617
|
width: i,
|
|
@@ -3641,7 +3640,7 @@ const ae = ({
|
|
|
3641
3640
|
color: t = "#004ED7",
|
|
3642
3641
|
className: s,
|
|
3643
3642
|
onClick: n
|
|
3644
|
-
}) => /* @__PURE__ */
|
|
3643
|
+
}) => /* @__PURE__ */ u(
|
|
3645
3644
|
"svg",
|
|
3646
3645
|
{
|
|
3647
3646
|
width: i,
|
|
@@ -3670,7 +3669,7 @@ const ae = ({
|
|
|
3670
3669
|
color: t = "#001E52",
|
|
3671
3670
|
className: s,
|
|
3672
3671
|
onClick: n
|
|
3673
|
-
}) => /* @__PURE__ */
|
|
3672
|
+
}) => /* @__PURE__ */ u(
|
|
3674
3673
|
"svg",
|
|
3675
3674
|
{
|
|
3676
3675
|
width: i,
|
|
@@ -3699,7 +3698,7 @@ const ae = ({
|
|
|
3699
3698
|
color: t = "#001E52",
|
|
3700
3699
|
className: s,
|
|
3701
3700
|
onClick: n
|
|
3702
|
-
}) => /* @__PURE__ */
|
|
3701
|
+
}) => /* @__PURE__ */ u(
|
|
3703
3702
|
"svg",
|
|
3704
3703
|
{
|
|
3705
3704
|
width: i,
|
|
@@ -3736,7 +3735,7 @@ const ae = ({
|
|
|
3736
3735
|
height: t = 20,
|
|
3737
3736
|
width: s = 20,
|
|
3738
3737
|
onClick: n
|
|
3739
|
-
}) => /* @__PURE__ */
|
|
3738
|
+
}) => /* @__PURE__ */ u(
|
|
3740
3739
|
"svg",
|
|
3741
3740
|
{
|
|
3742
3741
|
width: s,
|
|
@@ -3872,7 +3871,7 @@ const ae = ({
|
|
|
3872
3871
|
height: t = 20,
|
|
3873
3872
|
width: s = 20,
|
|
3874
3873
|
onClick: n
|
|
3875
|
-
}) => /* @__PURE__ */
|
|
3874
|
+
}) => /* @__PURE__ */ u(
|
|
3876
3875
|
"svg",
|
|
3877
3876
|
{
|
|
3878
3877
|
width: s,
|
|
@@ -3905,7 +3904,7 @@ const ae = ({
|
|
|
3905
3904
|
height: t = 24,
|
|
3906
3905
|
width: s = 24,
|
|
3907
3906
|
onClick: n
|
|
3908
|
-
}) => /* @__PURE__ */
|
|
3907
|
+
}) => /* @__PURE__ */ u(
|
|
3909
3908
|
"svg",
|
|
3910
3909
|
{
|
|
3911
3910
|
width: s,
|
|
@@ -3971,7 +3970,7 @@ const ae = ({
|
|
|
3971
3970
|
height: t = 24,
|
|
3972
3971
|
width: s = 24,
|
|
3973
3972
|
onClick: n
|
|
3974
|
-
}) => /* @__PURE__ */
|
|
3973
|
+
}) => /* @__PURE__ */ u(
|
|
3975
3974
|
"svg",
|
|
3976
3975
|
{
|
|
3977
3976
|
width: s,
|
|
@@ -4030,7 +4029,7 @@ const ae = ({
|
|
|
4030
4029
|
height: t = 24,
|
|
4031
4030
|
width: s = 24,
|
|
4032
4031
|
onClick: n
|
|
4033
|
-
}) => /* @__PURE__ */
|
|
4032
|
+
}) => /* @__PURE__ */ u(
|
|
4034
4033
|
"svg",
|
|
4035
4034
|
{
|
|
4036
4035
|
width: s,
|
|
@@ -4067,7 +4066,7 @@ const ae = ({
|
|
|
4067
4066
|
height: t = 14,
|
|
4068
4067
|
width: s = 14,
|
|
4069
4068
|
onClick: n
|
|
4070
|
-
}) => /* @__PURE__ */
|
|
4069
|
+
}) => /* @__PURE__ */ u(
|
|
4071
4070
|
"svg",
|
|
4072
4071
|
{
|
|
4073
4072
|
className: i,
|
|
@@ -4131,7 +4130,7 @@ const ae = ({
|
|
|
4131
4130
|
height: t = 24,
|
|
4132
4131
|
width: s = 24,
|
|
4133
4132
|
onClick: n
|
|
4134
|
-
}) => /* @__PURE__ */
|
|
4133
|
+
}) => /* @__PURE__ */ u(
|
|
4135
4134
|
"svg",
|
|
4136
4135
|
{
|
|
4137
4136
|
onClick: n,
|
|
@@ -4183,7 +4182,7 @@ const ae = ({
|
|
|
4183
4182
|
height: t = 24,
|
|
4184
4183
|
width: s = 24,
|
|
4185
4184
|
onClick: n
|
|
4186
|
-
}) => /* @__PURE__ */
|
|
4185
|
+
}) => /* @__PURE__ */ u(
|
|
4187
4186
|
"svg",
|
|
4188
4187
|
{
|
|
4189
4188
|
onClick: n,
|
|
@@ -4220,7 +4219,7 @@ const ae = ({
|
|
|
4220
4219
|
height: t = 37,
|
|
4221
4220
|
width: s = 36,
|
|
4222
4221
|
onClick: n
|
|
4223
|
-
}) => /* @__PURE__ */
|
|
4222
|
+
}) => /* @__PURE__ */ u(
|
|
4224
4223
|
"svg",
|
|
4225
4224
|
{
|
|
4226
4225
|
onClick: n,
|
|
@@ -4285,7 +4284,7 @@ const ae = ({
|
|
|
4285
4284
|
height: t = 24,
|
|
4286
4285
|
width: s = 24,
|
|
4287
4286
|
onClick: n
|
|
4288
|
-
}) => /* @__PURE__ */
|
|
4287
|
+
}) => /* @__PURE__ */ u(
|
|
4289
4288
|
"svg",
|
|
4290
4289
|
{
|
|
4291
4290
|
onClick: n,
|
|
@@ -4324,7 +4323,7 @@ const ae = ({
|
|
|
4324
4323
|
height: t = 20,
|
|
4325
4324
|
width: s = 20,
|
|
4326
4325
|
onClick: n
|
|
4327
|
-
}) => /* @__PURE__ */
|
|
4326
|
+
}) => /* @__PURE__ */ u(
|
|
4328
4327
|
"svg",
|
|
4329
4328
|
{
|
|
4330
4329
|
onClick: n,
|
|
@@ -4357,7 +4356,7 @@ const ae = ({
|
|
|
4357
4356
|
height: t = 24,
|
|
4358
4357
|
width: s = 24,
|
|
4359
4358
|
onClick: n
|
|
4360
|
-
}) => /* @__PURE__ */
|
|
4359
|
+
}) => /* @__PURE__ */ u(
|
|
4361
4360
|
"svg",
|
|
4362
4361
|
{
|
|
4363
4362
|
onClick: n,
|
|
@@ -4426,7 +4425,7 @@ const ae = ({
|
|
|
4426
4425
|
height: t = 24,
|
|
4427
4426
|
width: s = 24,
|
|
4428
4427
|
onClick: n
|
|
4429
|
-
}) => /* @__PURE__ */
|
|
4428
|
+
}) => /* @__PURE__ */ u(
|
|
4430
4429
|
"svg",
|
|
4431
4430
|
{
|
|
4432
4431
|
onClick: n,
|
|
@@ -4483,7 +4482,7 @@ const ae = ({
|
|
|
4483
4482
|
height: t = 24,
|
|
4484
4483
|
width: s = 24,
|
|
4485
4484
|
onClick: n
|
|
4486
|
-
}) => /* @__PURE__ */
|
|
4485
|
+
}) => /* @__PURE__ */ u(
|
|
4487
4486
|
"svg",
|
|
4488
4487
|
{
|
|
4489
4488
|
onClick: n,
|
|
@@ -4559,7 +4558,7 @@ const ae = ({
|
|
|
4559
4558
|
height: t = 20,
|
|
4560
4559
|
width: s = 20,
|
|
4561
4560
|
onClick: n
|
|
4562
|
-
}) => /* @__PURE__ */
|
|
4561
|
+
}) => /* @__PURE__ */ u(
|
|
4563
4562
|
"svg",
|
|
4564
4563
|
{
|
|
4565
4564
|
onClick: n,
|
|
@@ -4625,7 +4624,7 @@ const ae = ({
|
|
|
4625
4624
|
version: "1.1",
|
|
4626
4625
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4627
4626
|
viewBox: "0 0 489.698 489.698",
|
|
4628
|
-
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */
|
|
4627
|
+
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */ u("g", { children: [
|
|
4629
4628
|
/* @__PURE__ */ r(
|
|
4630
4629
|
"path",
|
|
4631
4630
|
{
|
|
@@ -4708,7 +4707,7 @@ const ae = ({
|
|
|
4708
4707
|
color: t = "#131314",
|
|
4709
4708
|
className: s,
|
|
4710
4709
|
onClick: n
|
|
4711
|
-
}) => /* @__PURE__ */
|
|
4710
|
+
}) => /* @__PURE__ */ u(
|
|
4712
4711
|
"svg",
|
|
4713
4712
|
{
|
|
4714
4713
|
width: i,
|
|
@@ -4741,7 +4740,7 @@ const ae = ({
|
|
|
4741
4740
|
color: t = x.GREY_DARK_2,
|
|
4742
4741
|
className: s,
|
|
4743
4742
|
onClick: n
|
|
4744
|
-
}) => /* @__PURE__ */
|
|
4743
|
+
}) => /* @__PURE__ */ u(
|
|
4745
4744
|
"svg",
|
|
4746
4745
|
{
|
|
4747
4746
|
width: i,
|
|
@@ -4780,7 +4779,7 @@ const ae = ({
|
|
|
4780
4779
|
color: t = x.GREY_DARK_2,
|
|
4781
4780
|
className: s,
|
|
4782
4781
|
onClick: n
|
|
4783
|
-
}) => /* @__PURE__ */
|
|
4782
|
+
}) => /* @__PURE__ */ u(
|
|
4784
4783
|
"svg",
|
|
4785
4784
|
{
|
|
4786
4785
|
width: i,
|
|
@@ -4868,7 +4867,7 @@ const ae = ({
|
|
|
4868
4867
|
}
|
|
4869
4868
|
)
|
|
4870
4869
|
}
|
|
4871
|
-
),
|
|
4870
|
+
), gt = ({
|
|
4872
4871
|
width: i = 20,
|
|
4873
4872
|
height: e = 20,
|
|
4874
4873
|
color: t = "#001E52",
|
|
@@ -4894,7 +4893,7 @@ const ae = ({
|
|
|
4894
4893
|
}
|
|
4895
4894
|
)
|
|
4896
4895
|
}
|
|
4897
|
-
),
|
|
4896
|
+
), ut = ({
|
|
4898
4897
|
name: i,
|
|
4899
4898
|
width: e,
|
|
4900
4899
|
height: t,
|
|
@@ -4929,9 +4928,9 @@ const ae = ({
|
|
|
4929
4928
|
case "cancel":
|
|
4930
4929
|
return Ce({ width: e, height: t, color: l, className: a, onClick: c });
|
|
4931
4930
|
case "add":
|
|
4932
|
-
return ue({ width: e, height: t, color: l, className: a, onClick: c });
|
|
4933
|
-
case "list":
|
|
4934
4931
|
return ge({ width: e, height: t, color: l, className: a, onClick: c });
|
|
4932
|
+
case "list":
|
|
4933
|
+
return ue({ width: e, height: t, color: l, className: a, onClick: c });
|
|
4935
4934
|
case "dragAndDrop":
|
|
4936
4935
|
return fe({ width: e, height: t, color: l, className: a, onClick: c });
|
|
4937
4936
|
case "filter":
|
|
@@ -4972,7 +4971,6 @@ const ae = ({
|
|
|
4972
4971
|
return _e({ width: e, height: t, color: l, className: a, onClick: c });
|
|
4973
4972
|
case "cancelCircle":
|
|
4974
4973
|
return ye({ width: e, height: t, color: l, className: a, onClick: c });
|
|
4975
|
-
case "infoMedium":
|
|
4976
4974
|
case "visibilityIcon":
|
|
4977
4975
|
return He({
|
|
4978
4976
|
width: e,
|
|
@@ -5066,7 +5064,7 @@ const ae = ({
|
|
|
5066
5064
|
case "projects":
|
|
5067
5065
|
return at({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5068
5066
|
case "profile":
|
|
5069
|
-
return
|
|
5067
|
+
return gt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5070
5068
|
case "exit":
|
|
5071
5069
|
return lt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5072
5070
|
case "client":
|
|
@@ -5104,7 +5102,7 @@ const h2 = ({
|
|
|
5104
5102
|
{
|
|
5105
5103
|
className: `snmt-tag ${t} ${o ? "disabled" : ""}`,
|
|
5106
5104
|
closeIcon: /* @__PURE__ */ r(
|
|
5107
|
-
|
|
5105
|
+
ut,
|
|
5108
5106
|
{
|
|
5109
5107
|
name: "cancelCircle",
|
|
5110
5108
|
color: o ? p1.GREY_DARK_1 : p1.GREY_DARK_2,
|
|
@@ -5158,7 +5156,7 @@ const h2 = ({
|
|
|
5158
5156
|
y.disconnect();
|
|
5159
5157
|
};
|
|
5160
5158
|
}, [a]);
|
|
5161
|
-
const
|
|
5159
|
+
const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5162
5160
|
let f = `snmt-typography snmt-typography-${e}`;
|
|
5163
5161
|
i && i !== "inherit" && (f += ` snmt-typography-align-${i}`), o && (f += " collapsed");
|
|
5164
5162
|
const w = {
|
|
@@ -5173,7 +5171,7 @@ const h2 = ({
|
|
|
5173
5171
|
}
|
|
5174
5172
|
} : void 0
|
|
5175
5173
|
};
|
|
5176
|
-
return
|
|
5174
|
+
return g ? /* @__PURE__ */ r(pt, { level: wt[e], ...w, children: s }) : /* @__PURE__ */ r(mt, { ...w, children: s });
|
|
5177
5175
|
}
|
|
5178
5176
|
), kt = ({
|
|
5179
5177
|
children: i,
|
|
@@ -5225,24 +5223,24 @@ const Nt = ({
|
|
|
5225
5223
|
i.length || l(!1);
|
|
5226
5224
|
}, [i]), !i.length)
|
|
5227
5225
|
return null;
|
|
5228
|
-
const c = (
|
|
5226
|
+
const c = (g) => {
|
|
5229
5227
|
var f, w;
|
|
5230
|
-
return ((f = o == null ? void 0 : o.find((v) => v.value ===
|
|
5228
|
+
return ((f = o == null ? void 0 : o.find((v) => v.value === g)) == null ? void 0 : f.label) || ((w = h == null ? void 0 : h.find((v) => v.value === g)) == null ? void 0 : w.label) || g;
|
|
5231
5229
|
};
|
|
5232
|
-
return /* @__PURE__ */
|
|
5230
|
+
return /* @__PURE__ */ u(
|
|
5233
5231
|
kt,
|
|
5234
5232
|
{
|
|
5235
5233
|
content: (
|
|
5236
5234
|
// 90: paddings + margins + gaps and so on
|
|
5237
|
-
/* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ r(f1, { gap: 6, flexWrap: "wrap", children: i.map(({ value:
|
|
5235
|
+
/* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ r(f1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: g }) => /* @__PURE__ */ r(
|
|
5238
5236
|
h2,
|
|
5239
5237
|
{
|
|
5240
|
-
onClose: () => e(
|
|
5238
|
+
onClose: () => e(g),
|
|
5241
5239
|
closable: s,
|
|
5242
5240
|
disabled: n,
|
|
5243
|
-
children: c(
|
|
5241
|
+
children: c(g)
|
|
5244
5242
|
},
|
|
5245
|
-
|
|
5243
|
+
g
|
|
5246
5244
|
)) }) })
|
|
5247
5245
|
),
|
|
5248
5246
|
placement: "bottomRight",
|
|
@@ -5281,7 +5279,7 @@ const Nt = ({
|
|
|
5281
5279
|
clearable: d = !1,
|
|
5282
5280
|
scrollThresholdValue: l = 50,
|
|
5283
5281
|
onSearchChange: c,
|
|
5284
|
-
onDropdownVisibleChange:
|
|
5282
|
+
onDropdownVisibleChange: g,
|
|
5285
5283
|
onScrollToEnd: f,
|
|
5286
5284
|
onPopupScroll: w,
|
|
5287
5285
|
id: v,
|
|
@@ -5297,7 +5295,7 @@ const Nt = ({
|
|
|
5297
5295
|
j(i);
|
|
5298
5296
|
}, [i]);
|
|
5299
5297
|
const q = (N) => {
|
|
5300
|
-
V(N),
|
|
5298
|
+
V(N), g && g(N);
|
|
5301
5299
|
}, X = (N, H) => {
|
|
5302
5300
|
var S;
|
|
5303
5301
|
return !!((S = H == null ? void 0 : H.label) != null && S.toString().toLowerCase().includes(N.toLowerCase()));
|
|
@@ -5371,8 +5369,8 @@ const Nt = ({
|
|
|
5371
5369
|
({ label: N, value: H, mode: S }) => S === "filter" ? C1(H) : /* @__PURE__ */ r("div", { onMouseDown: k1, className: "tag-wrapper", children: /* @__PURE__ */ r(h2, { onClose: () => t1(H), disabled: a, children: typeof N == "object" ? N : o1(H) }) }),
|
|
5372
5370
|
[a, o1, t1, C1]
|
|
5373
5371
|
), F = Array.isArray(I) && I.length > 0 || !!I && typeof I == "string" && I.trim() !== "";
|
|
5374
|
-
return /* @__PURE__ */
|
|
5375
|
-
/* @__PURE__ */
|
|
5372
|
+
return /* @__PURE__ */ u("div", { className: "snmt-select-container", children: [
|
|
5373
|
+
/* @__PURE__ */ u(
|
|
5376
5374
|
"div",
|
|
5377
5375
|
{
|
|
5378
5376
|
className: `snmt-select-1-15-6 ${D ? "snmt-select-focused" : ""}
|
|
@@ -5410,7 +5408,7 @@ const Nt = ({
|
|
|
5410
5408
|
maxTagPlaceholder: N1,
|
|
5411
5409
|
onPopupScroll: v1,
|
|
5412
5410
|
prefix: E && /* @__PURE__ */ r(P1, { size: "small" }),
|
|
5413
|
-
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */
|
|
5411
|
+
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(i1, { children: [
|
|
5414
5412
|
I && !!I.length && (s || d) && /* @__PURE__ */ r(
|
|
5415
5413
|
"div",
|
|
5416
5414
|
{
|
|
@@ -5419,7 +5417,7 @@ const Nt = ({
|
|
|
5419
5417
|
cursor: a ? "not-allowed" : "pointer"
|
|
5420
5418
|
},
|
|
5421
5419
|
children: /* @__PURE__ */ r(
|
|
5422
|
-
|
|
5420
|
+
g1,
|
|
5423
5421
|
{
|
|
5424
5422
|
name: "cancel",
|
|
5425
5423
|
color: a ? z.GREY_DARK_1 : z.GREY_DARK_2
|
|
@@ -5428,7 +5426,7 @@ const Nt = ({
|
|
|
5428
5426
|
}
|
|
5429
5427
|
),
|
|
5430
5428
|
/* @__PURE__ */ r(
|
|
5431
|
-
|
|
5429
|
+
g1,
|
|
5432
5430
|
{
|
|
5433
5431
|
name: "selectArrowIcon",
|
|
5434
5432
|
color: a ? z.GREY_DARK_1 : z.GREY_DARK_5,
|
|
@@ -5437,30 +5435,30 @@ const Nt = ({
|
|
|
5437
5435
|
}
|
|
5438
5436
|
)
|
|
5439
5437
|
] }) }),
|
|
5440
|
-
removeIcon: /* @__PURE__ */ r(
|
|
5438
|
+
removeIcon: /* @__PURE__ */ r(g1, { name: "cancelCircle", color: z.GREY_DARK_1 }),
|
|
5441
5439
|
options: o,
|
|
5442
|
-
optionRender: (N) => _ ? _(N.data) : /* @__PURE__ */
|
|
5443
|
-
/* @__PURE__ */
|
|
5440
|
+
optionRender: (N) => _ ? _(N.data) : /* @__PURE__ */ u(f1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
5441
|
+
/* @__PURE__ */ u(f1, { alignItems: "center", gap: 12, children: [
|
|
5444
5442
|
s && /* @__PURE__ */ r(
|
|
5445
5443
|
z2,
|
|
5446
5444
|
{
|
|
5447
5445
|
checked: !!(I != null && I.includes(N.value))
|
|
5448
5446
|
}
|
|
5449
5447
|
),
|
|
5450
|
-
/* @__PURE__ */
|
|
5448
|
+
/* @__PURE__ */ u(f1, { alignItems: "center", gap: 8, children: [
|
|
5451
5449
|
N.data.image && /* @__PURE__ */ r(U2, { src: N.data.image, size: 20 }),
|
|
5452
5450
|
/* @__PURE__ */ r("span", { children: N.label })
|
|
5453
5451
|
] })
|
|
5454
5452
|
] }),
|
|
5455
|
-
!s && I === N.value && /* @__PURE__ */ r(
|
|
5453
|
+
!s && I === N.value && /* @__PURE__ */ r(g1, { name: "check", color: z.BLUE_DARK_1 })
|
|
5456
5454
|
] }),
|
|
5457
|
-
dropdownRender: (N) => /* @__PURE__ */
|
|
5455
|
+
dropdownRender: (N) => /* @__PURE__ */ u("div", { className: "dropdown-container", children: [
|
|
5458
5456
|
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: y ? y(N) : N }),
|
|
5459
5457
|
E && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(P1, {}) })
|
|
5460
5458
|
] })
|
|
5461
5459
|
}
|
|
5462
5460
|
),
|
|
5463
|
-
t && /* @__PURE__ */
|
|
5461
|
+
t && /* @__PURE__ */ u(i1, { children: [
|
|
5464
5462
|
/* @__PURE__ */ r(
|
|
5465
5463
|
"label",
|
|
5466
5464
|
{
|
|
@@ -5479,9 +5477,9 @@ const Nt = ({
|
|
|
5479
5477
|
]
|
|
5480
5478
|
}
|
|
5481
5479
|
),
|
|
5482
|
-
L && /* @__PURE__ */
|
|
5480
|
+
L && /* @__PURE__ */ u(f1, { justifyContent: "flex-start", gap: 6, children: [
|
|
5483
5481
|
/* @__PURE__ */ r(
|
|
5484
|
-
|
|
5482
|
+
g1,
|
|
5485
5483
|
{
|
|
5486
5484
|
name: "attention",
|
|
5487
5485
|
color: z.NOTIFICATION_ERROR_DARK,
|
|
@@ -5527,7 +5525,7 @@ const E1 = 100, l1 = {
|
|
|
5527
5525
|
loadOnClosedState: d,
|
|
5528
5526
|
preloadOptions: l,
|
|
5529
5527
|
extraOptions: c,
|
|
5530
|
-
onDropdownVisibleChange:
|
|
5528
|
+
onDropdownVisibleChange: g,
|
|
5531
5529
|
optionRender: f,
|
|
5532
5530
|
dropdownRender: w,
|
|
5533
5531
|
readOnly: v,
|
|
@@ -5578,9 +5576,9 @@ const E1 = 100, l1 = {
|
|
|
5578
5576
|
[V, p == null ? void 0 : p.length, M.count]
|
|
5579
5577
|
), v1 = K(
|
|
5580
5578
|
(A) => {
|
|
5581
|
-
I(A), !A && T && (P(void 0), k(l1), $(!0)),
|
|
5579
|
+
I(A), !A && T && (P(void 0), k(l1), $(!0)), g == null || g(A);
|
|
5582
5580
|
},
|
|
5583
|
-
[
|
|
5581
|
+
[g, T]
|
|
5584
5582
|
);
|
|
5585
5583
|
Z(() => {
|
|
5586
5584
|
!Y.current || V || (G || Q && (q !== M.offset || X !== T || !p)) && (e1({ offset: M.offset, limit: E1, search: T }), G && $(!1));
|
|
@@ -5668,7 +5666,7 @@ const E1 = 100, l1 = {
|
|
|
5668
5666
|
}
|
|
5669
5667
|
})), C ? /* @__PURE__ */ r(j1, { ...N1, value: s, mode: C }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(j1, { ...N1, value: s }) });
|
|
5670
5668
|
}
|
|
5671
|
-
), b = (i) => typeof i == "string",
|
|
5669
|
+
), b = (i) => typeof i == "string", u1 = () => {
|
|
5672
5670
|
let i, e;
|
|
5673
5671
|
const t = new Promise((s, n) => {
|
|
5674
5672
|
i = s, e = n;
|
|
@@ -6024,41 +6022,41 @@ class _1 extends H1 {
|
|
|
6024
6022
|
} : h;
|
|
6025
6023
|
}
|
|
6026
6024
|
const c = this.resolve(e, t);
|
|
6027
|
-
let
|
|
6028
|
-
const f = c && c.usedKey || h, w = c && c.exactUsedKey || h, v = Object.prototype.toString.apply(
|
|
6029
|
-
if (_ &&
|
|
6025
|
+
let g = c && c.res;
|
|
6026
|
+
const f = c && c.usedKey || h, w = c && c.exactUsedKey || h, v = Object.prototype.toString.apply(g), m = ["[object Number]", "[object Function]", "[object RegExp]"], y = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, _ = !this.i18nFormat || this.i18nFormat.handleAsObject, E = !b(g) && typeof g != "boolean" && typeof g != "number";
|
|
6027
|
+
if (_ && g && E && m.indexOf(v) < 0 && !(b(y) && Array.isArray(g))) {
|
|
6030
6028
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
6031
6029
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
6032
|
-
const p = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(f,
|
|
6030
|
+
const p = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(f, g, {
|
|
6033
6031
|
...t,
|
|
6034
6032
|
ns: a
|
|
6035
6033
|
}) : `key '${h} (${this.language})' returned an object instead of string.`;
|
|
6036
6034
|
return n ? (c.res = p, c.usedParams = this.getUsedParamsDetails(t), c) : p;
|
|
6037
6035
|
}
|
|
6038
6036
|
if (o) {
|
|
6039
|
-
const p = Array.isArray(
|
|
6040
|
-
for (const k in
|
|
6041
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
6037
|
+
const p = Array.isArray(g), L = p ? [] : {}, M = p ? w : f;
|
|
6038
|
+
for (const k in g)
|
|
6039
|
+
if (Object.prototype.hasOwnProperty.call(g, k)) {
|
|
6042
6040
|
const V = `${M}${o}${k}`;
|
|
6043
6041
|
L[k] = this.translate(V, {
|
|
6044
6042
|
...t,
|
|
6045
6043
|
joinArrays: !1,
|
|
6046
6044
|
ns: a
|
|
6047
|
-
}), L[k] === V && (L[k] =
|
|
6045
|
+
}), L[k] === V && (L[k] = g[k]);
|
|
6048
6046
|
}
|
|
6049
|
-
|
|
6047
|
+
g = L;
|
|
6050
6048
|
}
|
|
6051
|
-
} else if (_ && b(y) && Array.isArray(
|
|
6052
|
-
|
|
6049
|
+
} else if (_ && b(y) && Array.isArray(g))
|
|
6050
|
+
g = g.join(y), g && (g = this.extendTranslation(g, e, t, s));
|
|
6053
6051
|
else {
|
|
6054
6052
|
let p = !1, L = !1;
|
|
6055
6053
|
const M = t.count !== void 0 && !b(t.count), k = _1.hasDefaultValue(t), V = M ? this.pluralResolver.getSuffix(d, t.count, t) : "", D = t.ordinal && M ? this.pluralResolver.getSuffix(d, t.count, {
|
|
6056
6054
|
ordinal: !1
|
|
6057
6055
|
}) : "", T = M && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), P = T && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${V}`] || t[`defaultValue${D}`] || t.defaultValue;
|
|
6058
|
-
!this.isValidLookup(
|
|
6059
|
-
const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && L ? void 0 :
|
|
6056
|
+
!this.isValidLookup(g) && k && (p = !0, g = P), this.isValidLookup(g) || (L = !0, g = h);
|
|
6057
|
+
const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && L ? void 0 : g, j = k && P !== g && this.options.updateMissing;
|
|
6060
6058
|
if (L || p || j) {
|
|
6061
|
-
if (this.logger.log(j ? "updateKey" : "missingKey", d, C, h, j ? P :
|
|
6059
|
+
if (this.logger.log(j ? "updateKey" : "missingKey", d, C, h, j ? P : g), o) {
|
|
6062
6060
|
const G = this.resolve(h, {
|
|
6063
6061
|
...t,
|
|
6064
6062
|
keySeparator: !1
|
|
@@ -6072,8 +6070,8 @@ class _1 extends H1 {
|
|
|
6072
6070
|
U.push(q[G]);
|
|
6073
6071
|
else this.options.saveMissingTo === "all" ? U = this.languageUtils.toResolveHierarchy(t.lng || this.language) : U.push(t.lng || this.language);
|
|
6074
6072
|
const X = (G, $, Y) => {
|
|
6075
|
-
const e1 = k && Y !==
|
|
6076
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(G, C, $, e1, j, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(G, C, $, e1, j, t), this.emit("missingKey", G, C, $,
|
|
6073
|
+
const e1 = k && Y !== g ? Y : I;
|
|
6074
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(G, C, $, e1, j, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(G, C, $, e1, j, t), this.emit("missingKey", G, C, $, g);
|
|
6077
6075
|
};
|
|
6078
6076
|
this.options.saveMissing && (this.options.saveMissingPlurals && M ? U.forEach((G) => {
|
|
6079
6077
|
const $ = this.pluralResolver.getSuffixes(G, t);
|
|
@@ -6082,9 +6080,9 @@ class _1 extends H1 {
|
|
|
6082
6080
|
});
|
|
6083
6081
|
}) : X(U, h, P));
|
|
6084
6082
|
}
|
|
6085
|
-
|
|
6083
|
+
g = this.extendTranslation(g, e, t, c, s), L && g === h && this.options.appendNamespaceToMissingKey && (g = `${C}:${h}`), (L || p) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${C}:${h}` : h, p ? g : void 0) : g = this.options.parseMissingKeyHandler(g));
|
|
6086
6084
|
}
|
|
6087
|
-
return n ? (c.res =
|
|
6085
|
+
return n ? (c.res = g, c.usedParams = this.getUsedParamsDetails(t), c) : g;
|
|
6088
6086
|
}
|
|
6089
6087
|
extendTranslation(e, t, s, n, o) {
|
|
6090
6088
|
var h = this;
|
|
@@ -6106,19 +6104,19 @@ class _1 extends H1 {
|
|
|
6106
6104
|
const d = b(e) && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
6107
6105
|
let l;
|
|
6108
6106
|
if (d) {
|
|
6109
|
-
const
|
|
6110
|
-
l =
|
|
6107
|
+
const g = e.match(this.interpolator.nestingRegexp);
|
|
6108
|
+
l = g && g.length;
|
|
6111
6109
|
}
|
|
6112
6110
|
let c = s.replace && !b(s.replace) ? s.replace : s;
|
|
6113
6111
|
if (this.options.interpolation.defaultVariables && (c = {
|
|
6114
6112
|
...this.options.interpolation.defaultVariables,
|
|
6115
6113
|
...c
|
|
6116
6114
|
}), e = this.interpolator.interpolate(e, c, s.lng || this.language || n.usedLng, s), d) {
|
|
6117
|
-
const
|
|
6115
|
+
const g = e.match(this.interpolator.nestingRegexp), f = g && g.length;
|
|
6118
6116
|
l < f && (s.nest = !1);
|
|
6119
6117
|
}
|
|
6120
6118
|
!s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
6121
|
-
for (var
|
|
6119
|
+
for (var g = arguments.length, f = new Array(g), w = 0; w < g; w++)
|
|
6122
6120
|
f[w] = arguments[w];
|
|
6123
6121
|
return o && o[0] === f[0] && !s.context ? (h.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : h.translate(...f, t);
|
|
6124
6122
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
@@ -6140,7 +6138,7 @@ class _1 extends H1 {
|
|
|
6140
6138
|
n = l;
|
|
6141
6139
|
let c = d.namespaces;
|
|
6142
6140
|
this.options.fallbackNS && (c = c.concat(this.options.fallbackNS));
|
|
6143
|
-
const
|
|
6141
|
+
const g = t.count !== void 0 && !b(t.count), f = g && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), w = t.context !== void 0 && (b(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
6144
6142
|
c.forEach((m) => {
|
|
6145
6143
|
this.isValidLookup(s) || (a = m, !J1[`${v[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (J1[`${v[0]}-${m}`] = !0, this.logger.warn(`key "${n}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" 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((y) => {
|
|
6146
6144
|
if (this.isValidLookup(s)) return;
|
|
@@ -6150,11 +6148,11 @@ class _1 extends H1 {
|
|
|
6150
6148
|
this.i18nFormat.addLookupKeys(_, l, y, m, t);
|
|
6151
6149
|
else {
|
|
6152
6150
|
let p;
|
|
6153
|
-
|
|
6151
|
+
g && (p = this.pluralResolver.getSuffix(y, t.count, t));
|
|
6154
6152
|
const L = `${this.options.pluralSeparator}zero`, M = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
6155
|
-
if (
|
|
6153
|
+
if (g && (_.push(l + p), t.ordinal && p.indexOf(M) === 0 && _.push(l + p.replace(M, this.options.pluralSeparator)), f && _.push(l + L)), w) {
|
|
6156
6154
|
const k = `${l}${this.options.contextSeparator}${t.context}`;
|
|
6157
|
-
_.push(k),
|
|
6155
|
+
_.push(k), g && (_.push(k + p), t.ordinal && p.indexOf(M) === 0 && _.push(k + p.replace(M, this.options.pluralSeparator)), f && _.push(k + L));
|
|
6158
6156
|
}
|
|
6159
6157
|
}
|
|
6160
6158
|
let E;
|
|
@@ -6490,7 +6488,7 @@ class jt {
|
|
|
6490
6488
|
formatSeparator: d,
|
|
6491
6489
|
unescapeSuffix: l,
|
|
6492
6490
|
unescapePrefix: c,
|
|
6493
|
-
nestingPrefix:
|
|
6491
|
+
nestingPrefix: g,
|
|
6494
6492
|
nestingPrefixEscaped: f,
|
|
6495
6493
|
nestingSuffix: w,
|
|
6496
6494
|
nestingSuffixEscaped: v,
|
|
@@ -6498,7 +6496,7 @@ class jt {
|
|
|
6498
6496
|
maxReplaces: y,
|
|
6499
6497
|
alwaysFormat: _
|
|
6500
6498
|
} = e.interpolation;
|
|
6501
|
-
this.escape = t !== void 0 ? t : Vt, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? c1(o) : h || "{{", this.suffix = a ? c1(a) : C || "}}", this.formatSeparator = d || ",", this.unescapePrefix = l ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix =
|
|
6499
|
+
this.escape = t !== void 0 ? t : Vt, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? c1(o) : h || "{{", this.suffix = a ? c1(a) : C || "}}", this.formatSeparator = d || ",", this.unescapePrefix = l ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = g ? c1(g) : f || c1("$t("), this.nestingSuffix = w ? c1(w) : v || c1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = y || 1e3, this.alwaysFormat = _ !== void 0 ? _ : !1, this.resetRegExp();
|
|
6502
6500
|
}
|
|
6503
6501
|
reset() {
|
|
6504
6502
|
this.options && this.init(this.options);
|
|
@@ -6560,17 +6558,17 @@ class jt {
|
|
|
6560
6558
|
const l = this.nestingOptionsSeparator;
|
|
6561
6559
|
if (C.indexOf(l) < 0) return C;
|
|
6562
6560
|
const c = C.split(new RegExp(`${l}[ ]*{`));
|
|
6563
|
-
let
|
|
6564
|
-
C = c[0],
|
|
6565
|
-
const f =
|
|
6566
|
-
(f && f.length % 2 === 0 && !w || w.length % 2 !== 0) && (
|
|
6561
|
+
let g = `{${c[1]}`;
|
|
6562
|
+
C = c[0], g = this.interpolate(g, h);
|
|
6563
|
+
const f = g.match(/'/g), w = g.match(/"/g);
|
|
6564
|
+
(f && f.length % 2 === 0 && !w || w.length % 2 !== 0) && (g = g.replace(/'/g, '"'));
|
|
6567
6565
|
try {
|
|
6568
|
-
h = JSON.parse(
|
|
6566
|
+
h = JSON.parse(g), d && (h = {
|
|
6569
6567
|
...d,
|
|
6570
6568
|
...h
|
|
6571
6569
|
});
|
|
6572
6570
|
} catch (v) {
|
|
6573
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${C}`, v), `${C}${l}${
|
|
6571
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${C}`, v), `${C}${l}${g}`;
|
|
6574
6572
|
}
|
|
6575
6573
|
return h.defaultValue && h.defaultValue.indexOf(this.prefix) > -1 && delete h.defaultValue, C;
|
|
6576
6574
|
};
|
|
@@ -6688,14 +6686,14 @@ class $t {
|
|
|
6688
6686
|
if (this.formats[d]) {
|
|
6689
6687
|
let c = a;
|
|
6690
6688
|
try {
|
|
6691
|
-
const
|
|
6689
|
+
const g = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, f = g.locale || g.lng || n.locale || n.lng || s;
|
|
6692
6690
|
c = this.formats[d](a, f, {
|
|
6693
6691
|
...l,
|
|
6694
6692
|
...n,
|
|
6695
|
-
...
|
|
6693
|
+
...g
|
|
6696
6694
|
});
|
|
6697
|
-
} catch (
|
|
6698
|
-
this.logger.warn(
|
|
6695
|
+
} catch (g) {
|
|
6696
|
+
this.logger.warn(g);
|
|
6699
6697
|
}
|
|
6700
6698
|
return c;
|
|
6701
6699
|
} else
|
|
@@ -6717,8 +6715,8 @@ class Wt extends H1 {
|
|
|
6717
6715
|
return e.forEach((d) => {
|
|
6718
6716
|
let l = !0;
|
|
6719
6717
|
t.forEach((c) => {
|
|
6720
|
-
const
|
|
6721
|
-
!s.reload && this.store.hasResourceBundle(d, c) ? this.state[
|
|
6718
|
+
const g = `${d}|${c}`;
|
|
6719
|
+
!s.reload && this.store.hasResourceBundle(d, c) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ? h[g] === void 0 && (h[g] = !0) : (this.state[g] = 1, l = !1, h[g] === void 0 && (h[g] = !0), o[g] === void 0 && (o[g] = !0), C[c] === void 0 && (C[c] = !0)));
|
|
6722
6720
|
}), l || (a[d] = !0);
|
|
6723
6721
|
}), (Object.keys(o).length || Object.keys(h).length) && this.queue.push({
|
|
6724
6722
|
pending: h,
|
|
@@ -6937,18 +6935,18 @@ class w1 extends H1 {
|
|
|
6937
6935
|
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = $t);
|
|
6938
6936
|
const c = new q1(this.options);
|
|
6939
6937
|
this.store = new z1(this.options.resources, this.options);
|
|
6940
|
-
const
|
|
6941
|
-
|
|
6938
|
+
const g = this.services;
|
|
6939
|
+
g.logger = J, g.resourceStore = this.store, g.languageUtils = c, g.pluralResolver = new Pt(c, {
|
|
6942
6940
|
prepend: this.options.pluralSeparator,
|
|
6943
6941
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
6944
6942
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
6945
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (
|
|
6943
|
+
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (g.formatter = o(l), g.formatter.init(g, this.options), this.options.interpolation.format = g.formatter.format.bind(g.formatter)), g.interpolator = new jt(this.options), g.utils = {
|
|
6946
6944
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
6947
|
-
},
|
|
6945
|
+
}, g.backendConnector = new Wt(o(this.modules.backend), g.resourceStore, g, this.options), g.backendConnector.on("*", function(f) {
|
|
6948
6946
|
for (var w = arguments.length, v = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
6949
6947
|
v[m - 1] = arguments[m];
|
|
6950
6948
|
e.emit(f, ...v);
|
|
6951
|
-
}), this.modules.languageDetector && (
|
|
6949
|
+
}), this.modules.languageDetector && (g.languageDetector = o(this.modules.languageDetector), g.languageDetector.init && g.languageDetector.init(g, this.options.detection, this.options)), this.modules.i18nFormat && (g.i18nFormat = o(this.modules.i18nFormat), g.i18nFormat.init && g.i18nFormat.init(this)), this.translator = new _1(this.services, this.options), this.translator.on("*", function(f) {
|
|
6952
6950
|
for (var w = arguments.length, v = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
6953
6951
|
v[m - 1] = arguments[m];
|
|
6954
6952
|
e.emit(f, ...v);
|
|
@@ -6969,9 +6967,9 @@ class w1 extends H1 {
|
|
|
6969
6967
|
return e.store[l](...arguments), e;
|
|
6970
6968
|
};
|
|
6971
6969
|
});
|
|
6972
|
-
const C =
|
|
6973
|
-
const l = (c,
|
|
6974
|
-
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), C.resolve(
|
|
6970
|
+
const C = u1(), d = () => {
|
|
6971
|
+
const l = (c, g) => {
|
|
6972
|
+
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), C.resolve(g), s(c, g);
|
|
6975
6973
|
};
|
|
6976
6974
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return l(null, this.t.bind(this));
|
|
6977
6975
|
this.changeLanguage(this.options.lng, l);
|
|
@@ -6996,7 +6994,7 @@ class w1 extends H1 {
|
|
|
6996
6994
|
s(null);
|
|
6997
6995
|
}
|
|
6998
6996
|
reloadResources(e, t, s) {
|
|
6999
|
-
const n =
|
|
6997
|
+
const n = u1();
|
|
7000
6998
|
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = R1), this.services.backendConnector.reload(e, t, (o) => {
|
|
7001
6999
|
n.resolve(), s(o);
|
|
7002
7000
|
}), n;
|
|
@@ -7019,7 +7017,7 @@ class w1 extends H1 {
|
|
|
7019
7017
|
changeLanguage(e, t) {
|
|
7020
7018
|
var s = this;
|
|
7021
7019
|
this.isLanguageChangingTo = e;
|
|
7022
|
-
const n =
|
|
7020
|
+
const n = u1();
|
|
7023
7021
|
this.emit("languageChanging", e);
|
|
7024
7022
|
const o = (C) => {
|
|
7025
7023
|
this.language = C, this.languages = this.services.languageUtils.toResolveHierarchy(C), this.resolvedLanguage = void 0, this.setResolvedLanguage(C);
|
|
@@ -7051,9 +7049,9 @@ class w1 extends H1 {
|
|
|
7051
7049
|
...a
|
|
7052
7050
|
};
|
|
7053
7051
|
C.lng = C.lng || o.lng, C.lngs = C.lngs || o.lngs, C.ns = C.ns || o.ns, C.keyPrefix !== "" && (C.keyPrefix = C.keyPrefix || s || o.keyPrefix);
|
|
7054
|
-
const
|
|
7052
|
+
const g = n.options.keySeparator || ".";
|
|
7055
7053
|
let f;
|
|
7056
|
-
return C.keyPrefix && Array.isArray(h) ? f = h.map((w) => `${C.keyPrefix}${
|
|
7054
|
+
return C.keyPrefix && Array.isArray(h) ? f = h.map((w) => `${C.keyPrefix}${g}${w}`) : f = C.keyPrefix ? `${C.keyPrefix}${g}${h}` : h, n.t(f, C);
|
|
7057
7055
|
};
|
|
7058
7056
|
return b(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = s, o;
|
|
7059
7057
|
}
|
|
@@ -7085,7 +7083,7 @@ class w1 extends H1 {
|
|
|
7085
7083
|
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || h(s, e) && (!n || h(o, e)));
|
|
7086
7084
|
}
|
|
7087
7085
|
loadNamespaces(e, t) {
|
|
7088
|
-
const s =
|
|
7086
|
+
const s = u1();
|
|
7089
7087
|
return this.options.ns ? (b(e) && (e = [e]), e.forEach((n) => {
|
|
7090
7088
|
this.options.ns.indexOf(n) < 0 && this.options.ns.push(n);
|
|
7091
7089
|
}), this.loadResources((n) => {
|
|
@@ -7093,7 +7091,7 @@ class w1 extends H1 {
|
|
|
7093
7091
|
}), s) : (t && t(), Promise.resolve());
|
|
7094
7092
|
}
|
|
7095
7093
|
loadLanguages(e, t) {
|
|
7096
|
-
const s =
|
|
7094
|
+
const s = u1();
|
|
7097
7095
|
b(e) && (e = [e]);
|
|
7098
7096
|
const n = this.options.preload || [], o = e.filter((h) => n.indexOf(h) < 0 && this.services.languageUtils.isSupportedCode(h));
|
|
7099
7097
|
return o.length ? (this.options.preload = n.concat(o), this.loadResources((h) => {
|
|
@@ -7171,7 +7169,7 @@ function S1() {
|
|
|
7171
7169
|
e[t] = arguments[t];
|
|
7172
7170
|
n1(e[0]) && i2[e[0]] || (n1(e[0]) && (i2[e[0]] = /* @__PURE__ */ new Date()), zt(...e));
|
|
7173
7171
|
}
|
|
7174
|
-
const
|
|
7172
|
+
const g2 = (i, e) => () => {
|
|
7175
7173
|
if (i.isInitialized)
|
|
7176
7174
|
e();
|
|
7177
7175
|
else {
|
|
@@ -7183,11 +7181,11 @@ const u2 = (i, e) => () => {
|
|
|
7183
7181
|
i.on("initialized", t);
|
|
7184
7182
|
}
|
|
7185
7183
|
}, s2 = (i, e, t) => {
|
|
7186
|
-
i.loadNamespaces(e,
|
|
7184
|
+
i.loadNamespaces(e, g2(i, t));
|
|
7187
7185
|
}, n2 = (i, e, t, s) => {
|
|
7188
7186
|
n1(t) && (t = [t]), t.forEach((n) => {
|
|
7189
7187
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
7190
|
-
}), i.loadLanguages(e,
|
|
7188
|
+
}), i.loadLanguages(e, g2(i, s));
|
|
7191
7189
|
}, Jt = function(i, e) {
|
|
7192
7190
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
7193
7191
|
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
|
@@ -7244,10 +7242,10 @@ const s7 = function() {
|
|
|
7244
7242
|
...i
|
|
7245
7243
|
};
|
|
7246
7244
|
}, n7 = () => Z1;
|
|
7247
|
-
let
|
|
7245
|
+
let u2;
|
|
7248
7246
|
const r7 = (i) => {
|
|
7249
|
-
|
|
7250
|
-
}, o7 = () =>
|
|
7247
|
+
u2 = i;
|
|
7248
|
+
}, o7 = () => u2, a7 = {
|
|
7251
7249
|
type: "3rdParty",
|
|
7252
7250
|
init(i) {
|
|
7253
7251
|
s7(i.options.react), r7(i);
|
|
@@ -7293,7 +7291,7 @@ const h7 = (i, e) => {
|
|
|
7293
7291
|
} = h;
|
|
7294
7292
|
let d = i;
|
|
7295
7293
|
d = n1(d) ? [d] : d || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(d);
|
|
7296
|
-
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((p) => qt(p, o, h)), c = d7(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C),
|
|
7294
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((p) => qt(p, o, h)), c = d7(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C), g = () => c, f = () => f2(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C), [w, v] = O(g);
|
|
7297
7295
|
let m = d.join();
|
|
7298
7296
|
e.lng && (m = `${e.lng}${m}`);
|
|
7299
7297
|
const y = h7(m), _ = W(!0);
|
|
@@ -7314,15 +7312,15 @@ const h7 = (i, e) => {
|
|
|
7314
7312
|
_.current = !1, p && o && p.split(" ").forEach((k) => o.off(k, M)), L && o && L.split(" ").forEach((k) => o.store.off(k, M));
|
|
7315
7313
|
};
|
|
7316
7314
|
}, [o, m]), Z(() => {
|
|
7317
|
-
_.current && l && v(
|
|
7315
|
+
_.current && l && v(g);
|
|
7318
7316
|
}, [o, C, l]);
|
|
7319
7317
|
const E = [w, o, l];
|
|
7320
7318
|
if (E.t = w, E.i18n = o, E.ready = l, l || !l && !a) return E;
|
|
7321
7319
|
throw new Promise((p) => {
|
|
7322
7320
|
e.lng ? n2(o, e.lng, d, () => p()) : s2(o, d, () => p());
|
|
7323
7321
|
});
|
|
7324
|
-
},
|
|
7325
|
-
placeholder:
|
|
7322
|
+
}, g7 = "City", u7 = {
|
|
7323
|
+
placeholder: g7
|
|
7326
7324
|
}, f7 = "Город", p7 = {
|
|
7327
7325
|
placeholder: f7
|
|
7328
7326
|
};
|
|
@@ -7337,7 +7335,7 @@ B.use(a7).init({
|
|
|
7337
7335
|
lng: "en",
|
|
7338
7336
|
resources: {
|
|
7339
7337
|
en: {
|
|
7340
|
-
common:
|
|
7338
|
+
common: u7
|
|
7341
7339
|
},
|
|
7342
7340
|
ru: {
|
|
7343
7341
|
common: p7
|
|
@@ -7348,13 +7346,13 @@ const x7 = L1(
|
|
|
7348
7346
|
({ width: i, selectedCountry: e, onChange: t, value: s, id: n, disabled: o, clearable: h }, a) => {
|
|
7349
7347
|
const [C, d] = O(
|
|
7350
7348
|
[]
|
|
7351
|
-
), [l, c] = O(!1), { locale:
|
|
7349
|
+
), [l, c] = O(!1), { locale: g, axiosPeople: f } = r1(L2), w = W(!1), v = W(null), m = W(C), y = m7(e);
|
|
7352
7350
|
if (!f)
|
|
7353
7351
|
throw new Error(
|
|
7354
7352
|
`CitySelect requires "axiosPeople" to fetch cities.
|
|
7355
7353
|
Please provide it via SNMTUiContext.`
|
|
7356
7354
|
);
|
|
7357
|
-
const { t: _ } = C7("common", { lng:
|
|
7355
|
+
const { t: _ } = C7("common", { lng: g }), E = K(
|
|
7358
7356
|
async (L) => {
|
|
7359
7357
|
const M = m.current.find((k) => k.value === L);
|
|
7360
7358
|
if (M)
|