@snmt-react-ui/city-select 2.6.13 → 2.6.15
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 +101 -101
- package/dist/index.css +1 -1
- package/package.json +4 -4
package/dist/city-select.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
var me = Object.defineProperty;
|
2
2
|
var we = (i, e, t) => e in i ? me(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
3
|
-
var
|
3
|
+
var B1 = (i, e, t) => we(i, typeof e != "symbol" ? e + "" : e, t);
|
4
4
|
import "./index.css";
|
5
5
|
import { jsx as r, Fragment as i1, jsxs as C } from "react/jsx-runtime";
|
6
6
|
import { SNMTUiContext as ke } from "@snmt-react-ui/core";
|
7
|
-
import { createContext as d1, forwardRef as k1, useState as A, useRef as Y, useEffect as
|
7
|
+
import { createContext as d1, forwardRef as k1, useState as A, useRef as Y, useEffect as j, useCallback as Z, useMemo as Le, useImperativeHandle as ne, useContext as r1 } from "react";
|
8
8
|
import { Select as ve, Flex as Ne, Avatar as xe, Checkbox as Re, Typography as re, Tag as Me, Popover as ye } from "antd";
|
9
9
|
var be = Object.defineProperty, Ee = (i, e, t) => e in i ? be(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, _e = (i, e, t) => Ee(i, e + "", t), He = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
10
10
|
function Ie() {
|
@@ -14,11 +14,11 @@ function Ie() {
|
|
14
14
|
s1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
15
15
|
}
|
16
16
|
}
|
17
|
-
const
|
17
|
+
const j1 = {};
|
18
18
|
function O1() {
|
19
19
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
20
20
|
e[t] = arguments[t];
|
21
|
-
s1(e[0]) &&
|
21
|
+
s1(e[0]) && j1[e[0]] || (s1(e[0]) && (j1[e[0]] = /* @__PURE__ */ new Date()), Ie(...e));
|
22
22
|
}
|
23
23
|
const oe = (i, e) => () => {
|
24
24
|
if (i.isInitialized)
|
@@ -31,9 +31,9 @@ const oe = (i, e) => () => {
|
|
31
31
|
};
|
32
32
|
i.on("initialized", t);
|
33
33
|
}
|
34
|
-
},
|
34
|
+
}, D1 = (i, e, t) => {
|
35
35
|
i.loadNamespaces(e, oe(i, t));
|
36
|
-
},
|
36
|
+
}, Z1 = (i, e, t, s) => {
|
37
37
|
s1(t) && (t = [t]), t.forEach((n) => {
|
38
38
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
39
39
|
}), i.loadLanguages(e, oe(i, s));
|
@@ -75,8 +75,8 @@ const oe = (i, e) => () => {
|
|
75
75
|
"…": "…",
|
76
76
|
"/": "/",
|
77
77
|
"/": "/"
|
78
|
-
},
|
79
|
-
let
|
78
|
+
}, Be = (i) => Te[i], je = (i) => i.replace(Ae, Be);
|
79
|
+
let De = {
|
80
80
|
bindI18n: "languageChanged",
|
81
81
|
bindI18nStore: "",
|
82
82
|
transEmptyNodeValue: "",
|
@@ -84,9 +84,9 @@ let Ze = {
|
|
84
84
|
transWrapTextNodes: "",
|
85
85
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
86
86
|
useSuspense: !0,
|
87
|
-
unescape:
|
87
|
+
unescape: je
|
88
88
|
};
|
89
|
-
const
|
89
|
+
const Ze = () => De;
|
90
90
|
let We;
|
91
91
|
const Ge = () => We, Ke = d1();
|
92
92
|
class Pe {
|
@@ -101,10 +101,10 @@ class Pe {
|
|
101
101
|
}
|
102
102
|
const $e = (i, e) => {
|
103
103
|
const t = Y();
|
104
|
-
return
|
104
|
+
return j(() => {
|
105
105
|
t.current = i;
|
106
106
|
}, [i, e]), t.current;
|
107
|
-
}, ae = (i, e, t, s) => i.getFixedT(e, t, s), Fe = (i, e, t, s) =>
|
107
|
+
}, ae = (i, e, t, s) => i.getFixedT(e, t, s), Fe = (i, e, t, s) => Z(ae(i, e, t, s), [i, e, t, s]), Ye = function(i) {
|
108
108
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
109
109
|
const {
|
110
110
|
i18n: t
|
@@ -119,7 +119,7 @@ const $e = (i, e) => {
|
|
119
119
|
}
|
120
120
|
o.options.react && o.options.react.wait !== void 0 && O1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
121
121
|
const c = {
|
122
|
-
...
|
122
|
+
...Ze(),
|
123
123
|
...o.options.react,
|
124
124
|
...e
|
125
125
|
}, {
|
@@ -132,14 +132,14 @@ const $e = (i, e) => {
|
|
132
132
|
let L = g.join();
|
133
133
|
e.lng && (L = `${e.lng}${L}`);
|
134
134
|
const _ = $e(L), M = Y(!0);
|
135
|
-
|
135
|
+
j(() => {
|
136
136
|
const {
|
137
137
|
bindI18n: f,
|
138
138
|
bindI18nStore: m
|
139
139
|
} = c;
|
140
|
-
M.current = !0, !l && !a && (e.lng ?
|
140
|
+
M.current = !0, !l && !a && (e.lng ? Z1(o, e.lng, g, () => {
|
141
141
|
M.current && x(p);
|
142
|
-
}) :
|
142
|
+
}) : D1(o, g, () => {
|
143
143
|
M.current && x(p);
|
144
144
|
})), l && _ && _ !== L && M.current && x(p);
|
145
145
|
const N = () => {
|
@@ -148,13 +148,13 @@ const $e = (i, e) => {
|
|
148
148
|
return f && o && o.on(f, N), m && o && o.store.on(m, N), () => {
|
149
149
|
M.current = !1, f && o && f.split(" ").forEach((w) => o.off(w, N)), m && o && m.split(" ").forEach((w) => o.store.off(w, N));
|
150
150
|
};
|
151
|
-
}, [o, L]),
|
151
|
+
}, [o, L]), j(() => {
|
152
152
|
M.current && l && x(u);
|
153
153
|
}, [o, d, l]);
|
154
154
|
const H = [v, o, l];
|
155
155
|
if (H.t = v, H.i18n = o, H.ready = l, l || !l && !a) return H;
|
156
156
|
throw new Promise((f) => {
|
157
|
-
e.lng ?
|
157
|
+
e.lng ? Z1(o, e.lng, g, () => f()) : D1(o, g, () => f());
|
158
158
|
});
|
159
159
|
}, p1 = ({
|
160
160
|
children: i,
|
@@ -192,7 +192,7 @@ const $e = (i, e) => {
|
|
192
192
|
}
|
193
193
|
);
|
194
194
|
};
|
195
|
-
var z = /* @__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))(z || {});
|
195
|
+
var z = /* @__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_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))(z || {});
|
196
196
|
const T1 = d1({
|
197
197
|
locale: "en",
|
198
198
|
theme: "light"
|
@@ -207,7 +207,7 @@ const ze = ({
|
|
207
207
|
disableUncheck: o = !1
|
208
208
|
}) => {
|
209
209
|
const [c, a] = A(i), [d, g] = A(e);
|
210
|
-
|
210
|
+
j(() => {
|
211
211
|
a(i), g(e);
|
212
212
|
}, [i, e]);
|
213
213
|
const { theme: l } = r1(T1);
|
@@ -225,7 +225,7 @@ const ze = ({
|
|
225
225
|
}
|
226
226
|
);
|
227
227
|
};
|
228
|
-
var b = /* @__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))(b || {});
|
228
|
+
var b = /* @__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_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))(b || {});
|
229
229
|
const le = d1({
|
230
230
|
locale: "en",
|
231
231
|
theme: "light"
|
@@ -1676,7 +1676,7 @@ const Je = ({
|
|
1676
1676
|
)
|
1677
1677
|
]
|
1678
1678
|
}
|
1679
|
-
),
|
1679
|
+
), Bt = ({
|
1680
1680
|
className: i,
|
1681
1681
|
color: e = b.GREY_DARK_5,
|
1682
1682
|
height: t = 24,
|
@@ -1713,7 +1713,7 @@ const Je = ({
|
|
1713
1713
|
)
|
1714
1714
|
]
|
1715
1715
|
}
|
1716
|
-
),
|
1716
|
+
), jt = ({
|
1717
1717
|
className: i,
|
1718
1718
|
color: e = b.GREY_DARK_3,
|
1719
1719
|
height: t = 14,
|
@@ -1750,7 +1750,7 @@ const Je = ({
|
|
1750
1750
|
)
|
1751
1751
|
]
|
1752
1752
|
}
|
1753
|
-
),
|
1753
|
+
), Dt = ({
|
1754
1754
|
className: i,
|
1755
1755
|
color: e = b.GREY_DARK_5,
|
1756
1756
|
height: t = 18,
|
@@ -1777,7 +1777,7 @@ const Je = ({
|
|
1777
1777
|
}
|
1778
1778
|
)
|
1779
1779
|
}
|
1780
|
-
),
|
1780
|
+
), Zt = ({
|
1781
1781
|
className: i,
|
1782
1782
|
color: e = b.GREY_DARK_5,
|
1783
1783
|
height: t = 24,
|
@@ -2656,7 +2656,7 @@ const Je = ({
|
|
2656
2656
|
onClick: c
|
2657
2657
|
}) => {
|
2658
2658
|
const [a, d] = A(n), { theme: g } = r1(le), l = o ? g && g === "dark" ? b.GREY_LIGHT_4 : b.GREY_DARK_1 : s, h = o ? void 0 : c;
|
2659
|
-
return
|
2659
|
+
return j(() => {
|
2660
2660
|
if (n) {
|
2661
2661
|
h && !o && d(`${n} clickable`);
|
2662
2662
|
return;
|
@@ -2791,17 +2791,17 @@ const Je = ({
|
|
2791
2791
|
case "telegram":
|
2792
2792
|
return At({ width: e, height: t, color: l, className: a, onClick: h });
|
2793
2793
|
case "mail":
|
2794
|
-
return
|
2794
|
+
return Bt({ width: e, height: t, color: l, className: a, onClick: h });
|
2795
2795
|
case "github":
|
2796
2796
|
return Vt({ width: e, height: t, color: l, className: a, onClick: h });
|
2797
2797
|
case "linkedIn":
|
2798
2798
|
return Tt({ width: e, height: t, color: l, className: a, onClick: h });
|
2799
2799
|
case "emptyStateIcon":
|
2800
|
-
return
|
2800
|
+
return jt({ width: e, height: t, color: l, className: a, onClick: h });
|
2801
2801
|
case "filtersIcon":
|
2802
|
-
return Zt({ width: e, height: t, color: l, className: a, onClick: h });
|
2803
|
-
case "dotMenuIcon":
|
2804
2802
|
return Dt({ width: e, height: t, color: l, className: a, onClick: h });
|
2803
|
+
case "dotMenuIcon":
|
2804
|
+
return Zt({ width: e, height: t, color: l, className: a, onClick: h });
|
2805
2805
|
case "plusCircle":
|
2806
2806
|
return Wt({ width: e, height: t, color: l, className: a, onClick: h });
|
2807
2807
|
case "warning":
|
@@ -2889,7 +2889,7 @@ const Je = ({
|
|
2889
2889
|
);
|
2890
2890
|
}
|
2891
2891
|
);
|
2892
|
-
var E = /* @__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))(E || {});
|
2892
|
+
var E = /* @__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_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))(E || {});
|
2893
2893
|
const he = d1({
|
2894
2894
|
locale: "en",
|
2895
2895
|
theme: "light"
|
@@ -3768,7 +3768,7 @@ const u2 = ({
|
|
3768
3768
|
)
|
3769
3769
|
]
|
3770
3770
|
}
|
3771
|
-
),
|
3771
|
+
), B2 = ({
|
3772
3772
|
width: i = 14,
|
3773
3773
|
height: e = 14,
|
3774
3774
|
color: t = "#D0421B",
|
@@ -3816,7 +3816,7 @@ const u2 = ({
|
|
3816
3816
|
)
|
3817
3817
|
]
|
3818
3818
|
}
|
3819
|
-
),
|
3819
|
+
), j2 = ({
|
3820
3820
|
width: i = 20,
|
3821
3821
|
height: e = 20,
|
3822
3822
|
color: t = "#070739",
|
@@ -3846,7 +3846,7 @@ const u2 = ({
|
|
3846
3846
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
3847
3847
|
]
|
3848
3848
|
}
|
3849
|
-
),
|
3849
|
+
), D2 = ({
|
3850
3850
|
width: i = 20,
|
3851
3851
|
height: e = 20,
|
3852
3852
|
color: t = "#070739",
|
@@ -3884,7 +3884,7 @@ const u2 = ({
|
|
3884
3884
|
)
|
3885
3885
|
]
|
3886
3886
|
}
|
3887
|
-
),
|
3887
|
+
), Z2 = ({
|
3888
3888
|
width: i = 9,
|
3889
3889
|
height: e = 5,
|
3890
3890
|
color: t = "#001E52",
|
@@ -5320,7 +5320,7 @@ const u2 = ({
|
|
5320
5320
|
onClick: c
|
5321
5321
|
}) => {
|
5322
5322
|
const [a, d] = A(n), { theme: g } = r1(he), l = o ? g && g === "dark" ? E.GREY_LIGHT_4 : E.GREY_DARK_1 : s, h = o ? void 0 : c;
|
5323
|
-
return
|
5323
|
+
return j(() => {
|
5324
5324
|
if (n) {
|
5325
5325
|
h && !o && d(`${n} clickable`);
|
5326
5326
|
return;
|
@@ -5399,9 +5399,9 @@ const u2 = ({
|
|
5399
5399
|
onClick: h
|
5400
5400
|
});
|
5401
5401
|
case "errorMedium":
|
5402
|
-
return
|
5402
|
+
return B2({ width: e, height: t, color: l, className: a, onClick: h });
|
5403
5403
|
case "visibilityIcon":
|
5404
|
-
return
|
5404
|
+
return j2({
|
5405
5405
|
width: e,
|
5406
5406
|
height: t,
|
5407
5407
|
color: l,
|
@@ -5409,7 +5409,7 @@ const u2 = ({
|
|
5409
5409
|
onClick: h
|
5410
5410
|
});
|
5411
5411
|
case "visibilityOffIcon":
|
5412
|
-
return
|
5412
|
+
return D2({
|
5413
5413
|
width: e,
|
5414
5414
|
height: t,
|
5415
5415
|
color: l,
|
@@ -5417,7 +5417,7 @@ const u2 = ({
|
|
5417
5417
|
onClick: h
|
5418
5418
|
});
|
5419
5419
|
case "selectArrowIcon":
|
5420
|
-
return
|
5420
|
+
return Z2({
|
5421
5421
|
width: e,
|
5422
5422
|
height: t,
|
5423
5423
|
color: l,
|
@@ -5515,7 +5515,7 @@ const u2 = ({
|
|
5515
5515
|
}
|
5516
5516
|
})() });
|
5517
5517
|
};
|
5518
|
-
var f1 = /* @__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))(f1 || {});
|
5518
|
+
var f1 = /* @__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_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))(f1 || {});
|
5519
5519
|
const bi = d1({
|
5520
5520
|
locale: "en",
|
5521
5521
|
theme: "light"
|
@@ -5643,7 +5643,7 @@ const Vi = ({
|
|
5643
5643
|
extraOptions: c
|
5644
5644
|
}) => {
|
5645
5645
|
const { locale: a } = r1(T1), { t: d } = Ye("common", { lng: a }), [g, l] = A(!1);
|
5646
|
-
if (
|
5646
|
+
if (j(() => {
|
5647
5647
|
i.length || l(!1);
|
5648
5648
|
}, [i]), !i.length)
|
5649
5649
|
return null;
|
@@ -5710,8 +5710,8 @@ const Vi = ({
|
|
5710
5710
|
readOnly: f,
|
5711
5711
|
error: m
|
5712
5712
|
}, N) => {
|
5713
|
-
const [w, I] = A(!1), [T,
|
5714
|
-
|
5713
|
+
const [w, I] = A(!1), [T, D] = A(!1), [G, Q] = A(!0), [O, K] = A(i), U = Y(null);
|
5714
|
+
j(() => {
|
5715
5715
|
K(i);
|
5716
5716
|
}, [i]);
|
5717
5717
|
const q = (k) => {
|
@@ -5719,11 +5719,11 @@ const Vi = ({
|
|
5719
5719
|
}, X = (k, y) => {
|
5720
5720
|
var V;
|
5721
5721
|
return !!((V = y == null ? void 0 : y.label) != null && V.toString().toLowerCase().includes(k.toLowerCase()));
|
5722
|
-
},
|
5723
|
-
|
5722
|
+
}, B = () => {
|
5723
|
+
D(!0);
|
5724
5724
|
}, $ = () => {
|
5725
|
-
|
5726
|
-
}, P =
|
5725
|
+
D(!1);
|
5726
|
+
}, P = Z(
|
5727
5727
|
(k) => {
|
5728
5728
|
if (K(k), s) {
|
5729
5729
|
const V = k;
|
@@ -5734,7 +5734,7 @@ const Vi = ({
|
|
5734
5734
|
e == null || e(y);
|
5735
5735
|
},
|
5736
5736
|
[s, e]
|
5737
|
-
), e1 =
|
5737
|
+
), e1 = Z(() => {
|
5738
5738
|
if (!(f || a)) {
|
5739
5739
|
if (s) {
|
5740
5740
|
P([]);
|
@@ -5742,13 +5742,13 @@ const Vi = ({
|
|
5742
5742
|
}
|
5743
5743
|
P("");
|
5744
5744
|
}
|
5745
|
-
}, [a, P, s, f]), t1 =
|
5745
|
+
}, [a, P, s, f]), t1 = Z(
|
5746
5746
|
(k) => {
|
5747
5747
|
const y = O.filter((V) => V !== k);
|
5748
5748
|
P(y), K(y);
|
5749
5749
|
},
|
5750
5750
|
[P, O]
|
5751
|
-
), g1 =
|
5751
|
+
), g1 = Z(
|
5752
5752
|
(k) => (O == null ? void 0 : O.indexOf(k)) === 0 ? (
|
5753
5753
|
// if the search input is empty
|
5754
5754
|
// then display the placeholder, else do not display it
|
@@ -5760,7 +5760,7 @@ const Vi = ({
|
|
5760
5760
|
}, v1 = async (k) => {
|
5761
5761
|
const { target: y } = k;
|
5762
5762
|
y.scrollTop + y.offsetHeight >= y.scrollHeight - l && (p == null || p(!0)), v && await v(k);
|
5763
|
-
}, o1 =
|
5763
|
+
}, o1 = Z(
|
5764
5764
|
(k) => {
|
5765
5765
|
var y, V;
|
5766
5766
|
return ((y = o.find((a1) => a1.value === k)) == null ? void 0 : y.label) || ((V = L == null ? void 0 : L.find(
|
@@ -5768,7 +5768,7 @@ const Vi = ({
|
|
5768
5768
|
)) == null ? void 0 : V.label) || k;
|
5769
5769
|
},
|
5770
5770
|
[L, o]
|
5771
|
-
), N1 =
|
5771
|
+
), N1 = Z(
|
5772
5772
|
(k) => {
|
5773
5773
|
var y;
|
5774
5774
|
return /* @__PURE__ */ r(
|
@@ -5785,7 +5785,7 @@ const Vi = ({
|
|
5785
5785
|
);
|
5786
5786
|
},
|
5787
5787
|
[a, L, t1, o, f]
|
5788
|
-
), S =
|
5788
|
+
), S = Z(
|
5789
5789
|
({ label: k, value: y, mode: V }) => V === "filter" ? g1(y) : /* @__PURE__ */ r("div", { onMouseDown: L1, className: "tag-wrapper", children: /* @__PURE__ */ r(ce, { onClose: () => t1(y), disabled: a, children: typeof k == "object" ? k : o1(y) }) }),
|
5790
5790
|
[a, o1, t1, g1]
|
5791
5791
|
), F = Array.isArray(O) && O.length > 0 || !!O && typeof O == "string" && O.trim() !== "";
|
@@ -5816,7 +5816,7 @@ const Vi = ({
|
|
5816
5816
|
},
|
5817
5817
|
mode: s === "filter" ? "multiple" : s,
|
5818
5818
|
onChange: P,
|
5819
|
-
onFocus:
|
5819
|
+
onFocus: B,
|
5820
5820
|
onBlur: $,
|
5821
5821
|
onSearch: (k) => {
|
5822
5822
|
Q(!k), h && h(k);
|
@@ -5914,7 +5914,7 @@ const Vi = ({
|
|
5914
5914
|
);
|
5915
5915
|
function Ai(i, e = 500) {
|
5916
5916
|
const t = Y();
|
5917
|
-
return
|
5917
|
+
return j(() => () => {
|
5918
5918
|
t.current && clearTimeout(t.current);
|
5919
5919
|
}, []), (...s) => {
|
5920
5920
|
const n = setTimeout(() => {
|
@@ -5925,7 +5925,7 @@ function Ai(i, e = 500) {
|
|
5925
5925
|
}
|
5926
5926
|
function K1(i) {
|
5927
5927
|
const e = Y(i);
|
5928
|
-
return
|
5928
|
+
return j(() => {
|
5929
5929
|
e.current = i;
|
5930
5930
|
}, [i]), e.current;
|
5931
5931
|
}
|
@@ -5953,9 +5953,9 @@ const _1 = 100, l1 = {
|
|
5953
5953
|
required: _ = !1,
|
5954
5954
|
error: M
|
5955
5955
|
}, H) => {
|
5956
|
-
const [f, m] = A(), [N, w] = A(l1), [I, T] = A(!1), [
|
5956
|
+
const [f, m] = A(), [N, w] = A(l1), [I, T] = A(!1), [D, G] = A(), [Q, O] = A(!1), [K, U] = A(
|
5957
5957
|
h ?? []
|
5958
|
-
), q = K1(N.offset), X = K1(
|
5958
|
+
), q = K1(N.offset), X = K1(D), [B, $] = A(!1), P = Y(!1), e1 = Z(
|
5959
5959
|
async ({
|
5960
5960
|
limit: S = _1,
|
5961
5961
|
offset: F,
|
@@ -5983,10 +5983,10 @@ const _1 = 100, l1 = {
|
|
5983
5983
|
[i]
|
5984
5984
|
), t1 = Ai((S) => {
|
5985
5985
|
G(S), S || w(l1);
|
5986
|
-
}), g1 =
|
5986
|
+
}), g1 = Z(
|
5987
5987
|
(S) => t1(S),
|
5988
5988
|
[t1]
|
5989
|
-
), L1 =
|
5989
|
+
), L1 = Z(
|
5990
5990
|
async (S) => {
|
5991
5991
|
I || S && N.count && N.count > ((f == null ? void 0 : f.length) ?? 0) && w((F) => ({
|
5992
5992
|
...F,
|
@@ -5994,17 +5994,17 @@ const _1 = 100, l1 = {
|
|
5994
5994
|
}));
|
5995
5995
|
},
|
5996
5996
|
[I, f == null ? void 0 : f.length, N.count]
|
5997
|
-
), v1 =
|
5997
|
+
), v1 = Z(
|
5998
5998
|
(S) => {
|
5999
|
-
O(S), !S &&
|
5999
|
+
O(S), !S && D && (G(void 0), w(l1), $(!0)), u == null || u(S);
|
6000
6000
|
},
|
6001
|
-
[u,
|
6001
|
+
[u, D]
|
6002
6002
|
);
|
6003
|
-
|
6004
|
-
!P.current || I || (
|
6005
|
-
}, [
|
6003
|
+
j(() => {
|
6004
|
+
!P.current || I || (B || Q && (q !== N.offset || X !== D || !f)) && (e1({ offset: N.offset, limit: _1, search: D }), B && $(!1));
|
6005
|
+
}, [B, Q, N.offset, D, q, X, f, I]), j(() => {
|
6006
6006
|
(g || l) && e1(l1), P.current = !0;
|
6007
|
-
}, []),
|
6007
|
+
}, []), j(() => {
|
6008
6008
|
h && U((S) => {
|
6009
6009
|
const F = h.filter(
|
6010
6010
|
(k) => !S.some((y) => y.value === k.value)
|
@@ -6012,11 +6012,11 @@ const _1 = 100, l1 = {
|
|
6012
6012
|
return [...S, ...F];
|
6013
6013
|
});
|
6014
6014
|
}, [h]);
|
6015
|
-
const o1 =
|
6015
|
+
const o1 = Z(
|
6016
6016
|
(S) => {
|
6017
6017
|
t && t(S);
|
6018
6018
|
let F = [];
|
6019
|
-
if (d ? F = Array.isArray(S) ? S : [] : F = S ? [S] : [],
|
6019
|
+
if (d ? F = Array.isArray(S) ? S : [] : F = S ? [S] : [], D) {
|
6020
6020
|
const k = F.filter(
|
6021
6021
|
(y) => !(K != null && K.some((V) => V.value === y))
|
6022
6022
|
);
|
@@ -6032,7 +6032,7 @@ const _1 = 100, l1 = {
|
|
6032
6032
|
]), G(void 0), w(l1), $(!0);
|
6033
6033
|
}
|
6034
6034
|
},
|
6035
|
-
[t,
|
6035
|
+
[t, D, d, f, K]
|
6036
6036
|
), N1 = Le(
|
6037
6037
|
() => ({
|
6038
6038
|
id: n,
|
@@ -6092,11 +6092,11 @@ const _1 = 100, l1 = {
|
|
6092
6092
|
i = s, e = n;
|
6093
6093
|
});
|
6094
6094
|
return t.resolve = i, t.reject = e, t;
|
6095
|
-
}, P1 = (i) => i == null ? "" : "" + i,
|
6095
|
+
}, P1 = (i) => i == null ? "" : "" + i, Bi = (i, e, t) => {
|
6096
6096
|
i.forEach((s) => {
|
6097
6097
|
e[s] && (t[s] = e[s]);
|
6098
6098
|
});
|
6099
|
-
},
|
6099
|
+
}, ji = /###/g, $1 = (i) => i && i.indexOf("###") > -1 ? i.replace(ji, ".") : i, F1 = (i) => !i || R(i), m1 = (i, e, t) => {
|
6100
6100
|
const s = R(e) ? e.split(".") : e;
|
6101
6101
|
let n = 0;
|
6102
6102
|
for (; n < s.length - 1; ) {
|
@@ -6121,7 +6121,7 @@ const _1 = 100, l1 = {
|
|
6121
6121
|
for (; a.obj === void 0 && c.length; )
|
6122
6122
|
o = `${c[c.length - 1]}.${o}`, c = c.slice(0, c.length - 1), a = m1(i, c, Object), a && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
|
6123
6123
|
a.obj[`${a.k}.${o}`] = t;
|
6124
|
-
},
|
6124
|
+
}, Di = (i, e, t, s) => {
|
6125
6125
|
const {
|
6126
6126
|
obj: n,
|
6127
6127
|
k: o
|
@@ -6134,7 +6134,7 @@ const _1 = 100, l1 = {
|
|
6134
6134
|
} = m1(i, e);
|
6135
6135
|
if (t)
|
6136
6136
|
return t[s];
|
6137
|
-
},
|
6137
|
+
}, Zi = (i, e, t) => {
|
6138
6138
|
const s = R1(i, t);
|
6139
6139
|
return s !== void 0 ? s : R1(e, t);
|
6140
6140
|
}, de = (i, e, t) => {
|
@@ -6376,7 +6376,7 @@ const z1 = {};
|
|
6376
6376
|
class b1 extends E1 {
|
6377
6377
|
constructor(e) {
|
6378
6378
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6379
|
-
super(),
|
6379
|
+
super(), Bi(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = J.create("translator");
|
6380
6380
|
}
|
6381
6381
|
changeLanguage(e) {
|
6382
6382
|
e && (this.language = e);
|
@@ -6472,31 +6472,31 @@ class b1 extends E1 {
|
|
6472
6472
|
let f = !1, m = !1;
|
6473
6473
|
const N = t.count !== void 0 && !R(t.count), w = b1.hasDefaultValue(t), I = N ? this.pluralResolver.getSuffix(g, t.count, t) : "", T = t.ordinal && N ? this.pluralResolver.getSuffix(g, t.count, {
|
6474
6474
|
ordinal: !1
|
6475
|
-
}) : "",
|
6475
|
+
}) : "", D = N && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), G = D && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${I}`] || t[`defaultValue${T}`] || t.defaultValue;
|
6476
6476
|
!this.isValidLookup(u) && w && (f = !0, u = G), this.isValidLookup(u) || (m = !0, u = c);
|
6477
6477
|
const O = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && m ? void 0 : u, K = w && G !== u && this.options.updateMissing;
|
6478
6478
|
if (m || f || K) {
|
6479
6479
|
if (this.logger.log(K ? "updateKey" : "missingKey", g, d, c, K ? G : u), o) {
|
6480
|
-
const
|
6480
|
+
const B = this.resolve(c, {
|
6481
6481
|
...t,
|
6482
6482
|
keySeparator: !1
|
6483
6483
|
});
|
6484
|
-
|
6484
|
+
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.");
|
6485
6485
|
}
|
6486
6486
|
let U = [];
|
6487
6487
|
const q = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
6488
6488
|
if (this.options.saveMissingTo === "fallback" && q && q[0])
|
6489
|
-
for (let
|
6490
|
-
U.push(q[
|
6489
|
+
for (let B = 0; B < q.length; B++)
|
6490
|
+
U.push(q[B]);
|
6491
6491
|
else this.options.saveMissingTo === "all" ? U = this.languageUtils.toResolveHierarchy(t.lng || this.language) : U.push(t.lng || this.language);
|
6492
|
-
const X = (
|
6492
|
+
const X = (B, $, P) => {
|
6493
6493
|
const e1 = w && P !== u ? P : O;
|
6494
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
6494
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(B, d, $, e1, K, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(B, d, $, e1, K, t), this.emit("missingKey", B, d, $, u);
|
6495
6495
|
};
|
6496
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && N ? U.forEach((
|
6497
|
-
const $ = this.pluralResolver.getSuffixes(
|
6498
|
-
|
6499
|
-
X([
|
6496
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && N ? U.forEach((B) => {
|
6497
|
+
const $ = this.pluralResolver.getSuffixes(B, t);
|
6498
|
+
D && t[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((P) => {
|
6499
|
+
X([B], c + P, t[`defaultValue${P}`] || G);
|
6500
6500
|
});
|
6501
6501
|
}) : X(U, c, G));
|
6502
6502
|
}
|
@@ -6884,7 +6884,7 @@ class Xi {
|
|
6884
6884
|
}
|
6885
6885
|
}
|
6886
6886
|
const Q1 = function(i, e, t) {
|
6887
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o =
|
6887
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = Zi(i, e, t);
|
6888
6888
|
return !o && n && R(t) && (o = S1(i, t, s), o === void 0 && (o = S1(e, t, s))), o;
|
6889
6889
|
}, I1 = (i) => i.replace(/\$/g, "$$$$");
|
6890
6890
|
class e0 {
|
@@ -7158,7 +7158,7 @@ class n0 extends E1 {
|
|
7158
7158
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
7159
7159
|
const a = {};
|
7160
7160
|
this.queue.forEach((d) => {
|
7161
|
-
|
7161
|
+
Di(d.loaded, [o], c), s0(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
|
7162
7162
|
a[g] || (a[g] = {});
|
7163
7163
|
const l = d.loaded[g];
|
7164
7164
|
l.length && l.forEach((h) => {
|
@@ -7673,7 +7673,7 @@ const f0 = (i) => {
|
|
7673
7673
|
}, k0 = d1();
|
7674
7674
|
class L0 {
|
7675
7675
|
constructor() {
|
7676
|
-
|
7676
|
+
B1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
7677
7677
|
this.usedNamespaces = {};
|
7678
7678
|
}
|
7679
7679
|
addUsedNamespaces(e) {
|
@@ -7684,10 +7684,10 @@ class L0 {
|
|
7684
7684
|
}
|
7685
7685
|
const v0 = (i, e) => {
|
7686
7686
|
const t = Y();
|
7687
|
-
return
|
7687
|
+
return j(() => {
|
7688
7688
|
t.current = i;
|
7689
7689
|
}, [i, e]), t.current;
|
7690
|
-
}, pe = (i, e, t, s) => i.getFixedT(e, t, s), N0 = (i, e, t, s) =>
|
7690
|
+
}, pe = (i, e, t, s) => i.getFixedT(e, t, s), N0 = (i, e, t, s) => Z(pe(i, e, t, s), [i, e, t, s]), x0 = function(i) {
|
7691
7691
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7692
7692
|
const {
|
7693
7693
|
i18n: t
|
@@ -7715,7 +7715,7 @@ const v0 = (i, e) => {
|
|
7715
7715
|
let L = g.join();
|
7716
7716
|
e.lng && (L = `${e.lng}${L}`);
|
7717
7717
|
const _ = v0(L), M = Y(!0);
|
7718
|
-
|
7718
|
+
j(() => {
|
7719
7719
|
const {
|
7720
7720
|
bindI18n: f,
|
7721
7721
|
bindI18nStore: m
|
@@ -7731,7 +7731,7 @@ const v0 = (i, e) => {
|
|
7731
7731
|
return f && o && o.on(f, N), m && o && o.store.on(m, N), () => {
|
7732
7732
|
M.current = !1, f && o && f.split(" ").forEach((w) => o.off(w, N)), m && o && m.split(" ").forEach((w) => o.store.off(w, N));
|
7733
7733
|
};
|
7734
|
-
}, [o, L]),
|
7734
|
+
}, [o, L]), j(() => {
|
7735
7735
|
M.current && l && x(u);
|
7736
7736
|
}, [o, d, l]);
|
7737
7737
|
const H = [v, o, l];
|
@@ -7746,7 +7746,7 @@ const v0 = (i, e) => {
|
|
7746
7746
|
};
|
7747
7747
|
function E0(i) {
|
7748
7748
|
const e = Y(i);
|
7749
|
-
return
|
7749
|
+
return j(() => {
|
7750
7750
|
e.current = i;
|
7751
7751
|
}, [i]), e.current;
|
7752
7752
|
}
|
@@ -7772,7 +7772,7 @@ const A0 = k1(
|
|
7772
7772
|
`CitySelect requires "axiosPeople" to fetch cities.
|
7773
7773
|
Please provide it via SNMTUiContext.`
|
7774
7774
|
);
|
7775
|
-
const { t: M } = x0("common", { lng: u }), H =
|
7775
|
+
const { t: M } = x0("common", { lng: u }), H = Z(
|
7776
7776
|
async (m) => {
|
7777
7777
|
const N = L.current.find((w) => w.value === m);
|
7778
7778
|
if (N)
|
@@ -7797,17 +7797,17 @@ const A0 = k1(
|
|
7797
7797
|
},
|
7798
7798
|
[p, e, t]
|
7799
7799
|
);
|
7800
|
-
|
7800
|
+
j(() => {
|
7801
7801
|
(async () => {
|
7802
7802
|
if (!s) return;
|
7803
7803
|
const N = await H(s);
|
7804
7804
|
g(N);
|
7805
7805
|
})();
|
7806
|
-
}, []),
|
7806
|
+
}, []), j(() => {
|
7807
7807
|
var m;
|
7808
7808
|
_ !== e ? v.current && (t(null), g([]), L.current = [], (m = x.current) == null || m.refetchOptions()) : v.current = !0;
|
7809
7809
|
}, [e, t, _]);
|
7810
|
-
const f =
|
7810
|
+
const f = Z(
|
7811
7811
|
async ({
|
7812
7812
|
limit: m,
|
7813
7813
|
offset: N,
|
@@ -7821,9 +7821,9 @@ const A0 = k1(
|
|
7821
7821
|
includeCount: !0
|
7822
7822
|
};
|
7823
7823
|
I.filters = {}, e && e.length > 0 && (I.filters.countryId = [e]), w && (I.search = w);
|
7824
|
-
const T = await p.post("v1/cities/search", I),
|
7824
|
+
const T = await p.post("v1/cities/search", I), D = (T == null ? void 0 : T.data.data) || [], G = T == null ? void 0 : T.data.metadata.count;
|
7825
7825
|
return {
|
7826
|
-
options:
|
7826
|
+
options: D.map((O) => ({
|
7827
7827
|
value: O.geoNameId,
|
7828
7828
|
label: O.name
|
7829
7829
|
})),
|
package/dist/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{border:0;background-color:var(--grey-dark-5);color:var(--grey-light-0);font-family:Montserrat,sans-serif}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-checkbox .ant-checkbox-indeterminate .ant-checkbox-inner:after{height:2px;background-color:var(--grey-light-0)}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px;padding-inline-end:unset;font-family:Montserrat,sans-serif;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0;text-align:left}:not(.ant-checkbox-indeterminate).ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.ant-checkbox-checked .ant-checkbox-inner,.snmt-checkbox-light.ant-checkbox-checked .ant-checkbox-inner:hover{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light:not(.ant-checkbox-checked):hover .ant-checkbox-inner{border:1px solid var(--grey-dark-1)}.snmt-checkbox-light+span{color:var(--grey-light-0)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-dark-4);border:1px solid var(--grey-dark-4)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked):hover .ant-checkbox-inner{background-color:var(--grey-dark-3);border:1px solid var(--grey-dark-3)}.snmt-checkbox-dark .ant-checkbox+span{color:var(--grey-light-0)}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag:not(.disabled) .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.snmt-tag.disabled{background:var(--grey-light-3)}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-1: #fbfbfb;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-light-5: #bebec2;--grey-dark-1: #babac4;--grey-dark-2: #8b8b9d;--grey-dark-3: #6f6f83;--grey-dark-4: #35353f;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--purple-light: #f2e5ff;--purple-dark: #6900d1;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.snmt-typography.ant-typography{color:var(--blue-dark-3);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:29px;font-weight:700;line-height:110%}.snmt-typography.snmt-typography-h2{font-size:25px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-h3{font-size:21px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-h4{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snmt-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-select-container .snmt-flex{margin-top:6px}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{border:0;background-color:var(--grey-dark-5);color:var(--grey-light-0);font-family:Montserrat,sans-serif}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-checkbox .ant-checkbox-indeterminate .ant-checkbox-inner:after{height:2px;background-color:var(--grey-light-0)}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px;padding-inline-end:unset;font-family:Montserrat,sans-serif;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0;text-align:left}:not(.ant-checkbox-indeterminate).ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.ant-checkbox-checked .ant-checkbox-inner,.snmt-checkbox-light.ant-checkbox-checked .ant-checkbox-inner:hover{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light:not(.ant-checkbox-checked):hover .ant-checkbox-inner{border:1px solid var(--grey-dark-1)}.snmt-checkbox-light+span{color:var(--grey-light-0)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-dark-4);border:1px solid var(--grey-dark-4)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked):hover .ant-checkbox-inner{background-color:var(--grey-dark-3);border:1px solid var(--grey-dark-3)}.snmt-checkbox-dark .ant-checkbox+span{color:var(--grey-light-0)}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag:not(.disabled) .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.snmt-tag.disabled{background:var(--grey-light-3)}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-1: #fbfbfb;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-light-5: #bebec2;--grey-dark-1: #babac4;--grey-dark-2: #8b8b9d;--grey-dark-3: #6f6f83;--grey-dark-4: #35353f;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--blue-dark-3: #070739;--purple-light: #f2e5ff;--purple-dark: #6900d1;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.snmt-typography.ant-typography{color:var(--blue-dark-3);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:29px;font-weight:700;line-height:110%}.snmt-typography.snmt-typography-h2{font-size:25px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-h3{font-size:21px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-h4{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snmt-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-select-container .snmt-flex{margin-top:6px}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@snmt-react-ui/city-select",
|
3
3
|
"private": false,
|
4
|
-
"version": "2.6.
|
4
|
+
"version": "2.6.15",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/city-select.js",
|
7
7
|
"types": "dist/index.d.ts",
|
@@ -18,8 +18,8 @@
|
|
18
18
|
"build": "tsc && vite build"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@snmt-react-ui/async-select": "^1.8.
|
22
|
-
"@snmt-react-ui/core": "^2.
|
21
|
+
"@snmt-react-ui/async-select": "^1.8.16",
|
22
|
+
"@snmt-react-ui/core": "^2.3.0",
|
23
23
|
"i18next": "^23.11.5",
|
24
24
|
"react-i18next": "^14.1.1",
|
25
25
|
"uuid": "^10.0.0"
|
@@ -27,5 +27,5 @@
|
|
27
27
|
"peerDependencies": {
|
28
28
|
"antd": "^5.22.0"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "d6f802bf9207e3496b733128eed4fad3a5cb9439"
|
31
31
|
}
|