@snmt-react-ui/country-select 2.6.13 → 2.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/country-select.js +120 -120
- package/dist/index.css +1 -1
- package/package.json +5 -5
package/dist/country-select.js
CHANGED
@@ -5,7 +5,7 @@ import "./index.css";
|
|
5
5
|
import { jsx as o, Fragment as Y, jsxs as C } from "react/jsx-runtime";
|
6
6
|
import { SNMTUiContext as ue } from "@snmt-react-ui/core";
|
7
7
|
import { Select as Ce, Flex as pe, Avatar as fe, Checkbox as me, Typography as J1, Tag as we, Popover as ke } from "antd";
|
8
|
-
import { createContext as e1, forwardRef as w1, useState as V, useRef as l1, useEffect as A, useCallback as
|
8
|
+
import { createContext as e1, forwardRef as w1, useState as V, useRef as l1, useEffect as A, useCallback as Z, useContext as J } from "react";
|
9
9
|
var Le = Object.defineProperty, ve = (i, e, t) => e in i ? Le(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Ne = (i, e, t) => ve(i, e + "", t), xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
10
10
|
function Re() {
|
11
11
|
if (console && console.warn) {
|
@@ -54,7 +54,7 @@ const q1 = (i, e) => () => {
|
|
54
54
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !n(s.isLanguageChangingTo, i)) return !1;
|
55
55
|
}
|
56
56
|
}) : Me(i, e, t);
|
57
|
-
}, U = (i) => typeof i == "string", ye = (i) => typeof i == "object" && i !== null, Ee = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,
|
57
|
+
}, U = (i) => typeof i == "string", ye = (i) => typeof i == "object" && i !== null, Ee = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, _e = {
|
58
58
|
"&": "&",
|
59
59
|
"&": "&",
|
60
60
|
"<": "<",
|
@@ -75,7 +75,7 @@ const q1 = (i, e) => () => {
|
|
75
75
|
"…": "…",
|
76
76
|
"/": "/",
|
77
77
|
"/": "/"
|
78
|
-
},
|
78
|
+
}, He = (i) => _e[i], Ie = (i) => i.replace(Ee, He);
|
79
79
|
let Se = {
|
80
80
|
bindI18n: "languageChanged",
|
81
81
|
bindI18nStore: "",
|
@@ -89,7 +89,7 @@ let Se = {
|
|
89
89
|
const Oe = () => Se;
|
90
90
|
let Ve;
|
91
91
|
const Ae = () => Ve, Te = e1();
|
92
|
-
class
|
92
|
+
class Be {
|
93
93
|
constructor() {
|
94
94
|
Ne(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
95
95
|
}
|
@@ -99,12 +99,12 @@ class je {
|
|
99
99
|
});
|
100
100
|
}
|
101
101
|
}
|
102
|
-
const
|
102
|
+
const je = (i, e) => {
|
103
103
|
const t = l1();
|
104
104
|
return A(() => {
|
105
105
|
t.current = i;
|
106
106
|
}, [i, e]), t.current;
|
107
|
-
}, Q1 = (i, e, t, s) => i.getFixedT(e, t, s),
|
107
|
+
}, Q1 = (i, e, t, s) => i.getFixedT(e, t, s), De = (i, e, t, s) => Z(Q1(i, e, t, s), [i, e, t, s]), Ze = function(i) {
|
108
108
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
109
109
|
const {
|
110
110
|
i18n: t
|
@@ -112,7 +112,7 @@ const Be = (i, e) => {
|
|
112
112
|
i18n: s,
|
113
113
|
defaultNS: n
|
114
114
|
} = J(Te) || {}, r = t || s || Ae();
|
115
|
-
if (r && !r.reportNamespaces && (r.reportNamespaces = new
|
115
|
+
if (r && !r.reportNamespaces && (r.reportNamespaces = new Be()), !r) {
|
116
116
|
R1("You will need to pass in an i18next instance by using initReactI18next");
|
117
117
|
const f = (L, v) => U(v) ? v : ye(v) && U(v.defaultValue) ? v.defaultValue : Array.isArray(L) ? L[L.length - 1] : L, x = [f, {}, !1];
|
118
118
|
return x.t = f, x.i18n = {}, x.ready = !1, x;
|
@@ -128,10 +128,10 @@ const Be = (i, e) => {
|
|
128
128
|
} = c;
|
129
129
|
let g = i;
|
130
130
|
g = U(g) ? [g] : g || ["translation"], r.reportNamespaces.addUsedNamespaces && r.reportNamespaces.addUsedNamespaces(g);
|
131
|
-
const l = (r.isInitialized || r.initializedStoreOnce) && g.every((f) => be(f, r, c)), h =
|
131
|
+
const l = (r.isInitialized || r.initializedStoreOnce) && g.every((f) => be(f, r, c)), h = De(r, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => Q1(r, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [w, R] = V(u);
|
132
132
|
let m = g.join();
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
134
|
-
const E =
|
134
|
+
const E = je(m), M = l1(!0);
|
135
135
|
A(() => {
|
136
136
|
const {
|
137
137
|
bindI18n: f,
|
@@ -151,8 +151,8 @@ const Be = (i, e) => {
|
|
151
151
|
}, [r, m]), A(() => {
|
152
152
|
M.current && l && R(u);
|
153
153
|
}, [r, d, l]);
|
154
|
-
const
|
155
|
-
if (
|
154
|
+
const H = [w, r, l];
|
155
|
+
if (H.t = w, H.i18n = r, H.ready = l, l || !l && !a) return H;
|
156
156
|
throw new Promise((f) => {
|
157
157
|
e.lng ? V1(r, e.lng, g, () => f()) : O1(r, g, () => f());
|
158
158
|
});
|
@@ -192,7 +192,7 @@ const Be = (i, e) => {
|
|
192
192
|
}
|
193
193
|
);
|
194
194
|
};
|
195
|
-
var
|
195
|
+
var D = /* @__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))(D || {});
|
196
196
|
const E1 = e1({
|
197
197
|
locale: "en",
|
198
198
|
theme: "light"
|
@@ -225,7 +225,7 @@ const Ge = ({
|
|
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 X1 = e1({
|
230
230
|
locale: "en",
|
231
231
|
theme: "light"
|
@@ -1617,7 +1617,7 @@ const Ke = ({
|
|
1617
1617
|
}
|
1618
1618
|
)
|
1619
1619
|
}
|
1620
|
-
),
|
1620
|
+
), _t = ({
|
1621
1621
|
className: i,
|
1622
1622
|
color: e = b.GREY_DARK_5,
|
1623
1623
|
height: t = 24,
|
@@ -1676,7 +1676,7 @@ const Ke = ({
|
|
1676
1676
|
)
|
1677
1677
|
]
|
1678
1678
|
}
|
1679
|
-
),
|
1679
|
+
), Ht = ({
|
1680
1680
|
className: i,
|
1681
1681
|
color: e = b.GREY_DARK_5,
|
1682
1682
|
height: t = 24,
|
@@ -1931,7 +1931,7 @@ const Ke = ({
|
|
1931
1931
|
}
|
1932
1932
|
)
|
1933
1933
|
}
|
1934
|
-
),
|
1934
|
+
), Bt = ({
|
1935
1935
|
className: i,
|
1936
1936
|
color: e = b.GREY_DARK_5,
|
1937
1937
|
height: t = 24,
|
@@ -1970,7 +1970,7 @@ const Ke = ({
|
|
1970
1970
|
)
|
1971
1971
|
]
|
1972
1972
|
}
|
1973
|
-
),
|
1973
|
+
), jt = ({
|
1974
1974
|
className: i,
|
1975
1975
|
color: e = b.GREY_DARK_5,
|
1976
1976
|
height: t = 24,
|
@@ -2009,7 +2009,7 @@ const Ke = ({
|
|
2009
2009
|
)
|
2010
2010
|
]
|
2011
2011
|
}
|
2012
|
-
),
|
2012
|
+
), Dt = ({
|
2013
2013
|
className: i,
|
2014
2014
|
color: e = b.GREY_DARK_5,
|
2015
2015
|
height: t = 24,
|
@@ -2078,7 +2078,7 @@ const Ke = ({
|
|
2078
2078
|
)
|
2079
2079
|
]
|
2080
2080
|
}
|
2081
|
-
),
|
2081
|
+
), Zt = ({
|
2082
2082
|
className: i,
|
2083
2083
|
color: e = b.GREY_DARK_5,
|
2084
2084
|
height: t = 24,
|
@@ -2791,11 +2791,11 @@ const Ke = ({
|
|
2791
2791
|
case "telegram":
|
2792
2792
|
return Et({ width: e, height: t, color: l, className: a, onClick: h });
|
2793
2793
|
case "mail":
|
2794
|
-
return
|
2794
|
+
return Ht({ width: e, height: t, color: l, className: a, onClick: h });
|
2795
2795
|
case "github":
|
2796
2796
|
return yt({ width: e, height: t, color: l, className: a, onClick: h });
|
2797
2797
|
case "linkedIn":
|
2798
|
-
return
|
2798
|
+
return _t({ width: e, height: t, color: l, className: a, onClick: h });
|
2799
2799
|
case "emptyStateIcon":
|
2800
2800
|
return It({ width: e, height: t, color: l, className: a, onClick: h });
|
2801
2801
|
case "filtersIcon":
|
@@ -2809,13 +2809,13 @@ const Ke = ({
|
|
2809
2809
|
case "back":
|
2810
2810
|
return Tt({ width: e, height: t, color: l, className: a, onClick: h });
|
2811
2811
|
case "bell":
|
2812
|
-
return
|
2812
|
+
return Bt({ width: e, height: t, color: l, className: a, onClick: h });
|
2813
2813
|
case "contract":
|
2814
|
-
return
|
2814
|
+
return Dt({ width: e, height: t, color: l, className: a, onClick: h });
|
2815
2815
|
case "trash2":
|
2816
|
-
return
|
2816
|
+
return jt({ width: e, height: t, color: l, className: a, onClick: h });
|
2817
2817
|
case "resourceManager":
|
2818
|
-
return
|
2818
|
+
return Zt({ width: e, height: t, color: l, className: a, onClick: h });
|
2819
2819
|
case "settings2":
|
2820
2820
|
return Wt({ width: e, height: t, color: l, className: a, onClick: h });
|
2821
2821
|
case "image":
|
@@ -2889,7 +2889,7 @@ const Ke = ({
|
|
2889
2889
|
);
|
2890
2890
|
}
|
2891
2891
|
);
|
2892
|
-
var y = /* @__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))(y || {});
|
2892
|
+
var y = /* @__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))(y || {});
|
2893
2893
|
const ee = e1({
|
2894
2894
|
locale: "en",
|
2895
2895
|
theme: "light"
|
@@ -3734,7 +3734,7 @@ const r2 = ({
|
|
3734
3734
|
)
|
3735
3735
|
]
|
3736
3736
|
}
|
3737
|
-
),
|
3737
|
+
), _2 = ({
|
3738
3738
|
width: i = 14,
|
3739
3739
|
height: e = 14,
|
3740
3740
|
color: t = "#FFB020",
|
@@ -3768,7 +3768,7 @@ const r2 = ({
|
|
3768
3768
|
)
|
3769
3769
|
]
|
3770
3770
|
}
|
3771
|
-
),
|
3771
|
+
), H2 = ({
|
3772
3772
|
width: i = 14,
|
3773
3773
|
height: e = 14,
|
3774
3774
|
color: t = "#D0421B",
|
@@ -3997,7 +3997,7 @@ const r2 = ({
|
|
3997
3997
|
)
|
3998
3998
|
]
|
3999
3999
|
}
|
4000
|
-
),
|
4000
|
+
), B2 = ({
|
4001
4001
|
width: i = 10,
|
4002
4002
|
height: e = 10,
|
4003
4003
|
color: t = "#001E52",
|
@@ -4034,7 +4034,7 @@ const r2 = ({
|
|
4034
4034
|
)
|
4035
4035
|
]
|
4036
4036
|
}
|
4037
|
-
),
|
4037
|
+
), j2 = ({
|
4038
4038
|
className: i,
|
4039
4039
|
color: e = y.GREY_DARK_5,
|
4040
4040
|
height: t = 24,
|
@@ -4073,7 +4073,7 @@ const r2 = ({
|
|
4073
4073
|
)
|
4074
4074
|
]
|
4075
4075
|
}
|
4076
|
-
),
|
4076
|
+
), D2 = ({
|
4077
4077
|
className: i,
|
4078
4078
|
color: e = y.GREY_DARK_5,
|
4079
4079
|
height: t = 20,
|
@@ -4100,7 +4100,7 @@ const r2 = ({
|
|
4100
4100
|
}
|
4101
4101
|
)
|
4102
4102
|
}
|
4103
|
-
),
|
4103
|
+
), Z2 = ({
|
4104
4104
|
className: i,
|
4105
4105
|
color: e = y.GREY_DARK_5,
|
4106
4106
|
height: t = 20,
|
@@ -5329,9 +5329,9 @@ const r2 = ({
|
|
5329
5329
|
}, [h, n, r]), /* @__PURE__ */ o(Y, { children: (() => {
|
5330
5330
|
switch (i) {
|
5331
5331
|
case "nextIcon":
|
5332
|
-
return Z2({ width: e, height: t, color: l, className: a, onClick: h });
|
5333
|
-
case "prevIcon":
|
5334
5332
|
return D2({ width: e, height: t, color: l, className: a, onClick: h });
|
5333
|
+
case "prevIcon":
|
5334
|
+
return Z2({ width: e, height: t, color: l, className: a, onClick: h });
|
5335
5335
|
case "arrowDown":
|
5336
5336
|
return r2({ width: e, height: t, color: l, className: a, onClick: h });
|
5337
5337
|
case "info":
|
@@ -5391,7 +5391,7 @@ const r2 = ({
|
|
5391
5391
|
case "infoMedium":
|
5392
5392
|
return E2({ width: e, height: t, color: l, className: a, onClick: h });
|
5393
5393
|
case "attentionMedium":
|
5394
|
-
return
|
5394
|
+
return _2({
|
5395
5395
|
width: e,
|
5396
5396
|
height: t,
|
5397
5397
|
color: l,
|
@@ -5399,7 +5399,7 @@ const r2 = ({
|
|
5399
5399
|
onClick: h
|
5400
5400
|
});
|
5401
5401
|
case "errorMedium":
|
5402
|
-
return
|
5402
|
+
return H2({ width: e, height: t, color: l, className: a, onClick: h });
|
5403
5403
|
case "visibilityIcon":
|
5404
5404
|
return I2({
|
5405
5405
|
width: e,
|
@@ -5443,9 +5443,9 @@ const r2 = ({
|
|
5443
5443
|
case "sortUp":
|
5444
5444
|
return T2({ width: e, height: t, color: l, className: a, onClick: h });
|
5445
5445
|
case "sortDown":
|
5446
|
-
return j2({ width: e, height: t, color: l, className: a, onClick: h });
|
5447
|
-
case "search":
|
5448
5446
|
return B2({ width: e, height: t, color: l, className: a, onClick: h });
|
5447
|
+
case "search":
|
5448
|
+
return j2({ width: e, height: t, color: l, className: a, onClick: h });
|
5449
5449
|
case "arrowUpFilled":
|
5450
5450
|
return G2({ width: e, height: t, color: l, className: a, onClick: h });
|
5451
5451
|
case "arrowDownFilled":
|
@@ -5515,7 +5515,7 @@ const r2 = ({
|
|
5515
5515
|
}
|
5516
5516
|
})() });
|
5517
5517
|
};
|
5518
|
-
var o1 = /* @__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))(o1 || {});
|
5518
|
+
var o1 = /* @__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))(o1 || {});
|
5519
5519
|
const Li = e1({
|
5520
5520
|
locale: "en",
|
5521
5521
|
theme: "light"
|
@@ -5642,7 +5642,7 @@ const yi = ({
|
|
5642
5642
|
options: r,
|
5643
5643
|
extraOptions: c
|
5644
5644
|
}) => {
|
5645
|
-
const { locale: a } = J(E1), { t: d } =
|
5645
|
+
const { locale: a } = J(E1), { t: d } = Ze("common", { lng: a }), [g, l] = V(!1);
|
5646
5646
|
if (A(() => {
|
5647
5647
|
i.length || l(!1);
|
5648
5648
|
}, [i]), !i.length)
|
@@ -5706,35 +5706,35 @@ const yi = ({
|
|
5706
5706
|
extraOptions: m,
|
5707
5707
|
dropdownRender: E,
|
5708
5708
|
optionRender: M,
|
5709
|
-
isLoading:
|
5709
|
+
isLoading: H,
|
5710
5710
|
readOnly: f,
|
5711
5711
|
error: x
|
5712
5712
|
}, L) => {
|
5713
|
-
const [v,
|
5713
|
+
const [v, B] = V(!1), [G, t1] = V(!1), [$, h1] = V(!0), [I, K] = V(i), F = l1(null);
|
5714
5714
|
A(() => {
|
5715
5715
|
K(i);
|
5716
5716
|
}, [i]);
|
5717
5717
|
const q = (N) => {
|
5718
|
-
|
5719
|
-
}, c1 = (N,
|
5720
|
-
var
|
5721
|
-
return !!((
|
5718
|
+
B(N), u && u(N);
|
5719
|
+
}, c1 = (N, _) => {
|
5720
|
+
var j;
|
5721
|
+
return !!((j = _ == null ? void 0 : _.label) != null && j.toString().toLowerCase().includes(N.toLowerCase()));
|
5722
5722
|
}, O = () => {
|
5723
5723
|
t1(!0);
|
5724
5724
|
}, P = () => {
|
5725
5725
|
t1(!1);
|
5726
|
-
}, T =
|
5726
|
+
}, T = Z(
|
5727
5727
|
(N) => {
|
5728
5728
|
if (K(N), s) {
|
5729
|
-
const
|
5730
|
-
e == null || e(
|
5729
|
+
const j = N;
|
5730
|
+
e == null || e(j);
|
5731
5731
|
return;
|
5732
5732
|
}
|
5733
|
-
const
|
5734
|
-
e == null || e(
|
5733
|
+
const _ = N;
|
5734
|
+
e == null || e(_);
|
5735
5735
|
},
|
5736
5736
|
[s, e]
|
5737
|
-
), d1 =
|
5737
|
+
), d1 = Z(() => {
|
5738
5738
|
if (!(f || a)) {
|
5739
5739
|
if (s) {
|
5740
5740
|
T([]);
|
@@ -5742,13 +5742,13 @@ const yi = ({
|
|
5742
5742
|
}
|
5743
5743
|
T("");
|
5744
5744
|
}
|
5745
|
-
}, [a, T, s, f]), g1 =
|
5745
|
+
}, [a, T, s, f]), g1 = Z(
|
5746
5746
|
(N) => {
|
5747
|
-
const
|
5748
|
-
T(
|
5747
|
+
const _ = I.filter((j) => j !== N);
|
5748
|
+
T(_), K(_);
|
5749
5749
|
},
|
5750
5750
|
[T, I]
|
5751
|
-
),
|
5751
|
+
), _1 = Z(
|
5752
5752
|
(N) => (I == null ? void 0 : I.indexOf(N)) === 0 ? (
|
5753
5753
|
// if the search input is empty
|
5754
5754
|
// then display the placeholder, else do not display it
|
@@ -5758,25 +5758,25 @@ const yi = ({
|
|
5758
5758
|
), ae = (N) => {
|
5759
5759
|
N.preventDefault(), N.stopPropagation();
|
5760
5760
|
}, le = async (N) => {
|
5761
|
-
const { target:
|
5762
|
-
|
5763
|
-
}, L1 =
|
5761
|
+
const { target: _ } = N;
|
5762
|
+
_.scrollTop + _.offsetHeight >= _.scrollHeight - l && (p == null || p(!0)), w && await w(N);
|
5763
|
+
}, L1 = Z(
|
5764
5764
|
(N) => {
|
5765
|
-
var
|
5766
|
-
return ((
|
5765
|
+
var _, j;
|
5766
|
+
return ((_ = r.find((v1) => v1.value === N)) == null ? void 0 : _.label) || ((j = m == null ? void 0 : m.find(
|
5767
5767
|
(v1) => v1.value === N
|
5768
|
-
)) == null ? void 0 :
|
5768
|
+
)) == null ? void 0 : j.label) || N;
|
5769
5769
|
},
|
5770
5770
|
[m, r]
|
5771
|
-
), he =
|
5771
|
+
), he = Z(
|
5772
5772
|
(N) => {
|
5773
|
-
var
|
5773
|
+
var _;
|
5774
5774
|
return /* @__PURE__ */ o(
|
5775
5775
|
yi,
|
5776
5776
|
{
|
5777
5777
|
values: N,
|
5778
5778
|
onTagClose: g1,
|
5779
|
-
maxWidth: ((
|
5779
|
+
maxWidth: ((_ = F.current) == null ? void 0 : _.clientWidth) || 0,
|
5780
5780
|
disabled: a,
|
5781
5781
|
closable: !f,
|
5782
5782
|
options: r,
|
@@ -5785,10 +5785,10 @@ const yi = ({
|
|
5785
5785
|
);
|
5786
5786
|
},
|
5787
5787
|
[a, m, g1, r, f]
|
5788
|
-
), ce =
|
5789
|
-
({ label: N, value:
|
5790
|
-
[a, L1, g1,
|
5791
|
-
),
|
5788
|
+
), ce = Z(
|
5789
|
+
({ label: N, value: _, mode: j }) => j === "filter" ? _1(_) : /* @__PURE__ */ o("div", { onMouseDown: ae, className: "tag-wrapper", children: /* @__PURE__ */ o(te, { onClose: () => g1(_), disabled: a, children: typeof N == "object" ? N : L1(_) }) }),
|
5790
|
+
[a, L1, g1, _1]
|
5791
|
+
), H1 = Array.isArray(I) && I.length > 0 || !!I && typeof I == "string" && I.trim() !== "";
|
5792
5792
|
return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
|
5793
5793
|
/* @__PURE__ */ C(
|
5794
5794
|
"div",
|
@@ -5811,8 +5811,8 @@ const yi = ({
|
|
5811
5811
|
disabled: a,
|
5812
5812
|
value: I || void 0,
|
5813
5813
|
labelRender: (N) => {
|
5814
|
-
const
|
5815
|
-
return a ? /* @__PURE__ */ o("span", { style: { color:
|
5814
|
+
const _ = L1(N.value);
|
5815
|
+
return a ? /* @__PURE__ */ o("span", { style: { color: D.GREY_DARK_1 }, children: _ }) : _;
|
5816
5816
|
},
|
5817
5817
|
mode: s === "filter" ? "multiple" : s,
|
5818
5818
|
onChange: T,
|
@@ -5827,7 +5827,7 @@ const yi = ({
|
|
5827
5827
|
maxTagCount: "responsive",
|
5828
5828
|
maxTagPlaceholder: he,
|
5829
5829
|
onPopupScroll: le,
|
5830
|
-
prefix:
|
5830
|
+
prefix: H && /* @__PURE__ */ o(A1, { size: 15 }),
|
5831
5831
|
suffixIcon: /* @__PURE__ */ o("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(Y, { children: [
|
5832
5832
|
I && !!I.length && (s || g) && /* @__PURE__ */ o(
|
5833
5833
|
"div",
|
@@ -5840,7 +5840,7 @@ const yi = ({
|
|
5840
5840
|
i1,
|
5841
5841
|
{
|
5842
5842
|
name: "cancel",
|
5843
|
-
color: a ?
|
5843
|
+
color: a ? D.GREY_DARK_1 : D.GREY_DARK_5
|
5844
5844
|
}
|
5845
5845
|
)
|
5846
5846
|
}
|
@@ -5849,13 +5849,13 @@ const yi = ({
|
|
5849
5849
|
i1,
|
5850
5850
|
{
|
5851
5851
|
name: "selectArrowIcon",
|
5852
|
-
color: a ?
|
5852
|
+
color: a ? D.GREY_DARK_1 : D.GREY_DARK_5,
|
5853
5853
|
className: v ? "select-arrow-rotated" : "select-arrow",
|
5854
|
-
onClick: () =>
|
5854
|
+
onClick: () => B(!v)
|
5855
5855
|
}
|
5856
5856
|
)
|
5857
5857
|
] }) }),
|
5858
|
-
removeIcon: /* @__PURE__ */ o(i1, { name: "errorSmall", color:
|
5858
|
+
removeIcon: /* @__PURE__ */ o(i1, { name: "errorSmall", color: D.GREY_DARK_1 }),
|
5859
5859
|
options: r,
|
5860
5860
|
optionRender: (N) => M ? M(N.data) : /* @__PURE__ */ C(n1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
5861
5861
|
/* @__PURE__ */ C(n1, { alignItems: "center", gap: 12, children: [
|
@@ -5874,7 +5874,7 @@ const yi = ({
|
|
5874
5874
|
i1,
|
5875
5875
|
{
|
5876
5876
|
name: "ok",
|
5877
|
-
color:
|
5877
|
+
color: D.BLUE_PRIMARY,
|
5878
5878
|
width: 16,
|
5879
5879
|
height: 16
|
5880
5880
|
}
|
@@ -5882,7 +5882,7 @@ const yi = ({
|
|
5882
5882
|
] }),
|
5883
5883
|
dropdownRender: (N) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
5884
5884
|
/* @__PURE__ */ o("div", { className: "dropdown-menu", children: E ? E(N) : N }),
|
5885
|
-
|
5885
|
+
H && /* @__PURE__ */ o("div", { className: "loading-overlay", children: /* @__PURE__ */ o(A1, { size: 28 }) })
|
5886
5886
|
] })
|
5887
5887
|
}
|
5888
5888
|
),
|
@@ -5890,14 +5890,14 @@ const yi = ({
|
|
5890
5890
|
/* @__PURE__ */ o(
|
5891
5891
|
"label",
|
5892
5892
|
{
|
5893
|
-
className: `${G ||
|
5893
|
+
className: `${G || H1 ? "label-floating" : ""} ${a ? "label-disabled" : ""} ${G ? "label-focused" : ""} ${H ? "label-loading" : ""} ${x ? "label-error" : ""}`,
|
5894
5894
|
children: d ? `${t}*` : t
|
5895
5895
|
}
|
5896
5896
|
),
|
5897
5897
|
/* @__PURE__ */ o(
|
5898
5898
|
"fieldset",
|
5899
5899
|
{
|
5900
|
-
className: `${G ? "fieldset-focused" : ""} ${a ? "fieldset-disabled" : ""} ${
|
5900
|
+
className: `${G ? "fieldset-focused" : ""} ${a ? "fieldset-disabled" : ""} ${H1 ? "fieldset-filled" : ""} ${x ? "fieldset-error" : ""}`,
|
5901
5901
|
children: /* @__PURE__ */ o("legend", { children: /* @__PURE__ */ o("span", { children: d ? `${t}*` : t }) })
|
5902
5902
|
}
|
5903
5903
|
)
|
@@ -5906,8 +5906,8 @@ const yi = ({
|
|
5906
5906
|
}
|
5907
5907
|
),
|
5908
5908
|
x && /* @__PURE__ */ C(n1, { justifyContent: "flex-start", gap: 6, children: [
|
5909
|
-
/* @__PURE__ */ o(i1, { name: "attention", color:
|
5910
|
-
typeof x == "string" ? /* @__PURE__ */ o(Ri, { color:
|
5909
|
+
/* @__PURE__ */ o(i1, { name: "attention", color: D.NOTIFICATION_ERROR_DARK }),
|
5910
|
+
typeof x == "string" ? /* @__PURE__ */ o(Ri, { color: D.NOTIFICATION_ERROR_DARK, variant: "body4", children: x }) : x
|
5911
5911
|
] })
|
5912
5912
|
] });
|
5913
5913
|
}
|
@@ -5917,23 +5917,23 @@ const yi = ({
|
|
5917
5917
|
i = s, e = n;
|
5918
5918
|
});
|
5919
5919
|
return t.resolve = i, t.reject = e, t;
|
5920
|
-
}, T1 = (i) => i == null ? "" : "" + i,
|
5920
|
+
}, T1 = (i) => i == null ? "" : "" + i, _i = (i, e, t) => {
|
5921
5921
|
i.forEach((s) => {
|
5922
5922
|
e[s] && (t[s] = e[s]);
|
5923
5923
|
});
|
5924
|
-
},
|
5924
|
+
}, Hi = /###/g, B1 = (i) => i && i.indexOf("###") > -1 ? i.replace(Hi, ".") : i, j1 = (i) => !i || k(i), r1 = (i, e, t) => {
|
5925
5925
|
const s = k(e) ? e.split(".") : e;
|
5926
5926
|
let n = 0;
|
5927
5927
|
for (; n < s.length - 1; ) {
|
5928
|
-
if (
|
5929
|
-
const r =
|
5928
|
+
if (j1(i)) return {};
|
5929
|
+
const r = B1(s[n]);
|
5930
5930
|
!i[r] && t && (i[r] = new t()), Object.prototype.hasOwnProperty.call(i, r) ? i = i[r] : i = {}, ++n;
|
5931
5931
|
}
|
5932
|
-
return
|
5932
|
+
return j1(i) ? {} : {
|
5933
5933
|
obj: i,
|
5934
|
-
k:
|
5934
|
+
k: B1(s[n])
|
5935
5935
|
};
|
5936
|
-
},
|
5936
|
+
}, D1 = (i, e, t) => {
|
5937
5937
|
const {
|
5938
5938
|
obj: s,
|
5939
5939
|
k: n
|
@@ -5988,11 +5988,11 @@ class Ai {
|
|
5988
5988
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
5989
5989
|
}
|
5990
5990
|
}
|
5991
|
-
const Ti = [" ", ",", "?", "!", ";"],
|
5991
|
+
const Ti = [" ", ",", "?", "!", ";"], Bi = new Ai(20), ji = (i, e, t) => {
|
5992
5992
|
e = e || "", t = t || "";
|
5993
5993
|
const s = Ti.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
|
5994
5994
|
if (s.length === 0) return !0;
|
5995
|
-
const n =
|
5995
|
+
const n = Bi.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
5996
5996
|
let r = !n.test(i);
|
5997
5997
|
if (!r) {
|
5998
5998
|
const c = i.indexOf(t);
|
@@ -6019,7 +6019,7 @@ const Ti = [" ", ",", "?", "!", ";"], ji = new Ai(20), Bi = (i, e, t) => {
|
|
6019
6019
|
n = c;
|
6020
6020
|
}
|
6021
6021
|
return n;
|
6022
|
-
}, p1 = (i) => i && i.replace("_", "-"),
|
6022
|
+
}, p1 = (i) => i && i.replace("_", "-"), Di = {
|
6023
6023
|
type: "logger",
|
6024
6024
|
log(i) {
|
6025
6025
|
this.output("log", i);
|
@@ -6041,7 +6041,7 @@ class f1 {
|
|
6041
6041
|
}
|
6042
6042
|
init(e) {
|
6043
6043
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6044
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
6044
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || Di, this.options = t, this.debug = t.debug;
|
6045
6045
|
}
|
6046
6046
|
log() {
|
6047
6047
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
@@ -6111,7 +6111,7 @@ class k1 {
|
|
6111
6111
|
});
|
6112
6112
|
}
|
6113
6113
|
}
|
6114
|
-
class
|
6114
|
+
class Z1 extends k1 {
|
6115
6115
|
constructor(e) {
|
6116
6116
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
6117
6117
|
ns: ["translation"],
|
@@ -6140,7 +6140,7 @@ class D1 extends k1 {
|
|
6140
6140
|
};
|
6141
6141
|
const c = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator;
|
6142
6142
|
let a = [e, t];
|
6143
|
-
s && (a = a.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (a = e.split("."), n = t, t = a[1]), this.addNamespaces(t),
|
6143
|
+
s && (a = a.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (a = e.split("."), n = t, t = a[1]), this.addNamespaces(t), D1(this.data, a, n), r.silent || this.emit("added", e, t, s, n);
|
6144
6144
|
}
|
6145
6145
|
addResources(e, t, s) {
|
6146
6146
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
@@ -6162,7 +6162,7 @@ class D1 extends k1 {
|
|
6162
6162
|
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? ie(d, s, r) : d = {
|
6163
6163
|
...d,
|
6164
6164
|
...s
|
6165
|
-
},
|
6165
|
+
}, D1(this.data, a, d), c.silent || this.emit("added", e, t, s);
|
6166
6166
|
}
|
6167
6167
|
removeResourceBundle(e, t) {
|
6168
6168
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
@@ -6201,7 +6201,7 @@ const W1 = {};
|
|
6201
6201
|
class m1 extends k1 {
|
6202
6202
|
constructor(e) {
|
6203
6203
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6204
|
-
super(),
|
6204
|
+
super(), _i(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = W.create("translator");
|
6205
6205
|
}
|
6206
6206
|
changeLanguage(e) {
|
6207
6207
|
e && (this.language = e);
|
@@ -6220,7 +6220,7 @@ class m1 extends k1 {
|
|
6220
6220
|
s === void 0 && (s = ":");
|
6221
6221
|
const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
6222
6222
|
let r = t.ns || this.options.defaultNS || [];
|
6223
|
-
const c = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
6223
|
+
const c = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !ji(e, s, n);
|
6224
6224
|
if (c && !a) {
|
6225
6225
|
const d = e.match(this.interpolator.nestingRegexp);
|
6226
6226
|
if (d && d.length > 0)
|
@@ -6268,8 +6268,8 @@ class m1 extends k1 {
|
|
6268
6268
|
}
|
6269
6269
|
const h = this.resolve(e, t);
|
6270
6270
|
let u = h && h.res;
|
6271
|
-
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, R = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject,
|
6272
|
-
if (M && u &&
|
6271
|
+
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, R = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject, H = !k(u) && typeof u != "boolean" && typeof u != "number";
|
6272
|
+
if (M && u && H && m.indexOf(R) < 0 && !(k(E) && Array.isArray(u))) {
|
6273
6273
|
if (!t.returnObjects && !this.options.returnObjects) {
|
6274
6274
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
6275
6275
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
|
@@ -6282,12 +6282,12 @@ class m1 extends k1 {
|
|
6282
6282
|
const f = Array.isArray(u), x = f ? [] : {}, L = f ? w : p;
|
6283
6283
|
for (const v in u)
|
6284
6284
|
if (Object.prototype.hasOwnProperty.call(u, v)) {
|
6285
|
-
const
|
6286
|
-
x[v] = this.translate(
|
6285
|
+
const B = `${L}${r}${v}`;
|
6286
|
+
x[v] = this.translate(B, {
|
6287
6287
|
...t,
|
6288
6288
|
joinArrays: !1,
|
6289
6289
|
ns: a
|
6290
|
-
}), x[v] ===
|
6290
|
+
}), x[v] === B && (x[v] = u[v]);
|
6291
6291
|
}
|
6292
6292
|
u = x;
|
6293
6293
|
}
|
@@ -6295,9 +6295,9 @@ class m1 extends k1 {
|
|
6295
6295
|
u = u.join(E), u && (u = this.extendTranslation(u, e, t, s));
|
6296
6296
|
else {
|
6297
6297
|
let f = !1, x = !1;
|
6298
|
-
const L = t.count !== void 0 && !k(t.count), v = m1.hasDefaultValue(t),
|
6298
|
+
const L = t.count !== void 0 && !k(t.count), v = m1.hasDefaultValue(t), B = L ? this.pluralResolver.getSuffix(g, t.count, t) : "", G = t.ordinal && L ? this.pluralResolver.getSuffix(g, t.count, {
|
6299
6299
|
ordinal: !1
|
6300
|
-
}) : "", t1 = L && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), $ = t1 && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${
|
6300
|
+
}) : "", t1 = L && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), $ = t1 && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${B}`] || t[`defaultValue${G}`] || t.defaultValue;
|
6301
6301
|
!this.isValidLookup(u) && v && (f = !0, u = $), this.isValidLookup(u) || (x = !0, u = c);
|
6302
6302
|
const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && x ? void 0 : u, K = v && $ !== u && this.options.updateMissing;
|
6303
6303
|
if (x || f || K) {
|
@@ -6400,9 +6400,9 @@ class m1 extends k1 {
|
|
6400
6400
|
M.push(v), u && (M.push(v + f), t.ordinal && f.indexOf(L) === 0 && M.push(v + f.replace(L, this.options.pluralSeparator)), p && M.push(v + x));
|
6401
6401
|
}
|
6402
6402
|
}
|
6403
|
-
let
|
6404
|
-
for (;
|
6405
|
-
this.isValidLookup(s) || (r =
|
6403
|
+
let H;
|
6404
|
+
for (; H = M.pop(); )
|
6405
|
+
this.isValidLookup(s) || (r = H, s = this.getResource(E, m, H, t));
|
6406
6406
|
}));
|
6407
6407
|
});
|
6408
6408
|
}), {
|
@@ -6510,7 +6510,7 @@ class G1 {
|
|
6510
6510
|
}), n;
|
6511
6511
|
}
|
6512
6512
|
}
|
6513
|
-
let
|
6513
|
+
let Zi = [{
|
6514
6514
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
6515
6515
|
nr: [1, 2],
|
6516
6516
|
fc: 1
|
@@ -6635,7 +6635,7 @@ const Gi = ["v1", "v2", "v3"], Ki = ["v4"], K1 = {
|
|
6635
6635
|
other: 5
|
6636
6636
|
}, Pi = () => {
|
6637
6637
|
const i = {};
|
6638
|
-
return
|
6638
|
+
return Zi.forEach((e) => {
|
6639
6639
|
e.lngs.forEach((t) => {
|
6640
6640
|
i[t] = {
|
6641
6641
|
numbers: e.nr,
|
@@ -7179,7 +7179,7 @@ class a1 extends k1 {
|
|
7179
7179
|
let l;
|
7180
7180
|
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = Ui);
|
7181
7181
|
const h = new G1(this.options);
|
7182
|
-
this.store = new
|
7182
|
+
this.store = new Z1(this.options.resources, this.options);
|
7183
7183
|
const u = this.services;
|
7184
7184
|
u.logger = W, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new $i(h, {
|
7185
7185
|
prepend: this.options.pluralSeparator,
|
@@ -7367,7 +7367,7 @@ class a1 extends k1 {
|
|
7367
7367
|
...this.services
|
7368
7368
|
}, r.services.utils = {
|
7369
7369
|
hasLoadedNamespace: r.hasLoadedNamespace.bind(r)
|
7370
|
-
}, s && (r.store = new
|
7370
|
+
}, s && (r.store = new Z1(this.store.data, n), r.services.resourceStore = r.store), r.translator = new m1(r.services, n), r.translator.on("*", function(a) {
|
7371
7371
|
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), l = 1; l < d; l++)
|
7372
7372
|
g[l - 1] = arguments[l];
|
7373
7373
|
r.emit(a, ...g);
|
@@ -7512,7 +7512,7 @@ const u5 = (i, e) => {
|
|
7512
7512
|
return A(() => {
|
7513
7513
|
t.current = i;
|
7514
7514
|
}, [i, e]), t.current;
|
7515
|
-
}, re = (i, e, t, s) => i.getFixedT(e, t, s), C5 = (i, e, t, s) =>
|
7515
|
+
}, re = (i, e, t, s) => i.getFixedT(e, t, s), C5 = (i, e, t, s) => Z(re(i, e, t, s), [i, e, t, s]), p5 = function(i) {
|
7516
7516
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7517
7517
|
const {
|
7518
7518
|
i18n: t
|
@@ -7559,8 +7559,8 @@ const u5 = (i, e) => {
|
|
7559
7559
|
}, [r, m]), A(() => {
|
7560
7560
|
M.current && l && R(u);
|
7561
7561
|
}, [r, d, l]);
|
7562
|
-
const
|
7563
|
-
if (
|
7562
|
+
const H = [w, r, l];
|
7563
|
+
if (H.t = w, H.i18n = r, H.ready = l, l || !l && !a) return H;
|
7564
7564
|
throw new Promise((f) => {
|
7565
7565
|
e.lng ? z1(r, e.lng, g, () => f()) : U1(r, g, () => f());
|
7566
7566
|
});
|
@@ -7600,7 +7600,7 @@ const y5 = w1(
|
|
7600
7600
|
`CountrySelect requires "axiosPeople" to fetch counties.
|
7601
7601
|
Please provide it via SNMTUiContext.`
|
7602
7602
|
);
|
7603
|
-
const { t:
|
7603
|
+
const { t: H } = p5("common", { lng: E }), f = Z(async () => {
|
7604
7604
|
m(!0);
|
7605
7605
|
try {
|
7606
7606
|
const L = await M.post("v1/countries/search");
|
@@ -7616,14 +7616,14 @@ const y5 = w1(
|
|
7616
7616
|
}, []), A(() => {
|
7617
7617
|
if (e) {
|
7618
7618
|
const L = e.split("-")[1], v = p.filter(
|
7619
|
-
(
|
7619
|
+
(B) => B.name.includes(L)
|
7620
7620
|
);
|
7621
7621
|
if (v.length) {
|
7622
|
-
const
|
7622
|
+
const B = v.map((G) => ({
|
7623
7623
|
label: G.name,
|
7624
7624
|
value: G.name
|
7625
7625
|
}));
|
7626
|
-
s(
|
7626
|
+
s(B[0].value);
|
7627
7627
|
}
|
7628
7628
|
}
|
7629
7629
|
}, [e, p, s]), A(() => {
|
@@ -7641,7 +7641,7 @@ const y5 = w1(
|
|
7641
7641
|
{
|
7642
7642
|
id: r,
|
7643
7643
|
width: i,
|
7644
|
-
placeholder:
|
7644
|
+
placeholder: H("placeholder"),
|
7645
7645
|
value: n,
|
7646
7646
|
ref: l,
|
7647
7647
|
onChange: x,
|
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/country-select",
|
3
3
|
"private": false,
|
4
|
-
"version": "2.6.
|
4
|
+
"version": "2.6.14",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/country-select.js",
|
7
7
|
"types": "dist/index.d.ts",
|
@@ -18,14 +18,14 @@
|
|
18
18
|
"build": "tsc && vite build"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@snmt-react-ui/city-select": "^2.6.
|
22
|
-
"@snmt-react-ui/core": "^2.
|
23
|
-
"@snmt-react-ui/flex": "^1.5.
|
21
|
+
"@snmt-react-ui/city-select": "^2.6.14",
|
22
|
+
"@snmt-react-ui/core": "^2.3.0",
|
23
|
+
"@snmt-react-ui/flex": "^1.5.3",
|
24
24
|
"i18next": "^23.11.5",
|
25
25
|
"react-i18next": "^14.1.1"
|
26
26
|
},
|
27
27
|
"peerDependencies": {
|
28
28
|
"antd": "^5.18.3"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "f56c21e9df8f306585fce91eb2b6bbd82fb6398a"
|
31
31
|
}
|