@snmt-react-ui/country-select 2.6.0 → 2.6.1
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 +118 -118
- package/package.json +3 -3
package/dist/country-select.js
CHANGED
@@ -7,7 +7,7 @@ import { SNMTUiContext as Ce } from "@snmt-react-ui/core";
|
|
7
7
|
import { Select as ue, Flex as pe, Avatar as we, Checkbox as fe, Typography as J1, Tag as me, Popover as ke } from "antd";
|
8
8
|
import { createContext as e1, forwardRef as m1, useState as S, useRef as a1, useEffect as A, useCallback as j, 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
|
-
function
|
10
|
+
function Re() {
|
11
11
|
if (console && console.warn) {
|
12
12
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
13
13
|
e[t] = arguments[t];
|
@@ -15,10 +15,10 @@ function Me() {
|
|
15
15
|
}
|
16
16
|
}
|
17
17
|
const I1 = {};
|
18
|
-
function
|
18
|
+
function R1() {
|
19
19
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
20
20
|
e[t] = arguments[t];
|
21
|
-
U(e[0]) && I1[e[0]] || (U(e[0]) && (I1[e[0]] = /* @__PURE__ */ new Date()),
|
21
|
+
U(e[0]) && I1[e[0]] || (U(e[0]) && (I1[e[0]] = /* @__PURE__ */ new Date()), Re(...e));
|
22
22
|
}
|
23
23
|
const q1 = (i, e) => () => {
|
24
24
|
if (i.isInitialized)
|
@@ -37,7 +37,7 @@ const q1 = (i, e) => () => {
|
|
37
37
|
U(t) && (t = [t]), t.forEach((o) => {
|
38
38
|
i.options.ns.indexOf(o) < 0 && i.options.ns.push(o);
|
39
39
|
}), i.loadLanguages(e, q1(i, s));
|
40
|
-
},
|
40
|
+
}, Me = function(i, e) {
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
42
42
|
const s = e.languages[0], o = e.options ? e.options.fallbackLng : !1, l = e.languages[e.languages.length - 1];
|
43
43
|
if (s.toLowerCase() === "cimode") return !0;
|
@@ -48,12 +48,12 @@ const q1 = (i, e) => () => {
|
|
48
48
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!o || c(l, i)));
|
49
49
|
}, ye = function(i, e) {
|
50
50
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
51
|
-
return !e.languages || !e.languages.length ? (
|
51
|
+
return !e.languages || !e.languages.length ? (R1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
52
52
|
lng: t.lng,
|
53
53
|
precheck: (s, o) => {
|
54
54
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !o(s.isLanguageChangingTo, i)) return !1;
|
55
55
|
}
|
56
|
-
}) :
|
56
|
+
}) : Me(i, e, t);
|
57
57
|
}, U = (i) => typeof i == "string", be = (i) => typeof i == "object" && i !== null, _e = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ee = {
|
58
58
|
"&": "&",
|
59
59
|
"&": "&",
|
@@ -113,11 +113,11 @@ const We = (i, e) => {
|
|
113
113
|
defaultNS: o
|
114
114
|
} = J(Be) || {}, l = t || s || Ae();
|
115
115
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new Ze()), !l) {
|
116
|
-
|
117
|
-
const w = (N, x) => U(x) ? x : be(x) && U(x.defaultValue) ? x.defaultValue : Array.isArray(N) ? N[N.length - 1] : N,
|
118
|
-
return
|
116
|
+
R1("You will need to pass in an i18next instance by using initReactI18next");
|
117
|
+
const w = (N, x) => U(x) ? x : be(x) && U(x.defaultValue) ? x.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, M = [w, {}, !1];
|
118
|
+
return M.t = w, M.i18n = {}, M.ready = !1, M;
|
119
119
|
}
|
120
|
-
l.options.react && l.options.react.wait !== void 0 &&
|
120
|
+
l.options.react && l.options.react.wait !== void 0 && R1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
121
121
|
const c = {
|
122
122
|
...Oe(),
|
123
123
|
...l.options.react,
|
@@ -135,7 +135,7 @@ const We = (i, e) => {
|
|
135
135
|
A(() => {
|
136
136
|
const {
|
137
137
|
bindI18n: w,
|
138
|
-
bindI18nStore:
|
138
|
+
bindI18nStore: M
|
139
139
|
} = c;
|
140
140
|
b.current = !0, !a && !r && (e.lng ? S1(l, e.lng, g, () => {
|
141
141
|
b.current && y(p);
|
@@ -145,8 +145,8 @@ const We = (i, e) => {
|
|
145
145
|
const N = () => {
|
146
146
|
b.current && y(p);
|
147
147
|
};
|
148
|
-
return w && l && l.on(w, N),
|
149
|
-
b.current = !1, w && l && w.split(" ").forEach((x) => l.off(x, N)),
|
148
|
+
return w && l && l.on(w, N), M && l && l.store.on(M, N), () => {
|
149
|
+
b.current = !1, w && l && w.split(" ").forEach((x) => l.off(x, N)), M && l && M.split(" ").forEach((x) => l.store.off(x, N));
|
150
150
|
};
|
151
151
|
}, [l, f]), A(() => {
|
152
152
|
b.current && a && y(u);
|
@@ -1504,7 +1504,7 @@ const Ke = ({
|
|
1504
1504
|
/* @__PURE__ */ n("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
1505
1505
|
]
|
1506
1506
|
}
|
1507
|
-
),
|
1507
|
+
), R2 = ({
|
1508
1508
|
width: i = 20,
|
1509
1509
|
height: e = 20,
|
1510
1510
|
color: t = "#070739",
|
@@ -1542,7 +1542,7 @@ const Ke = ({
|
|
1542
1542
|
)
|
1543
1543
|
]
|
1544
1544
|
}
|
1545
|
-
),
|
1545
|
+
), M2 = ({
|
1546
1546
|
width: i = 9,
|
1547
1547
|
height: e = 5,
|
1548
1548
|
color: t = "#001E52",
|
@@ -3003,8 +3003,8 @@ const Ke = ({
|
|
3003
3003
|
children: /* @__PURE__ */ n(
|
3004
3004
|
"path",
|
3005
3005
|
{
|
3006
|
-
|
3007
|
-
|
3006
|
+
fillRule: "evenodd",
|
3007
|
+
clipRule: "evenodd",
|
3008
3008
|
d: "M7.99994 13C10.7614 13 12.9999 10.7614 12.9999 8C12.9999 5.23858 10.7614 3 7.99994 3C5.23852 3 2.99994 5.23858 2.99994 8C2.99994 10.7614 5.23852 13 7.99994 13ZM5.73419 5.6757C5.92945 5.48044 6.24603 5.48044 6.4413 5.6757L8.02837 7.26277L9.56074 5.7304C9.756 5.53514 10.0726 5.53514 10.2678 5.7304C10.4631 5.92566 10.4631 6.24225 10.2678 6.43751L8.73548 7.96988L10.3254 9.55981C10.5207 9.75507 10.5207 10.0717 10.3254 10.2669C10.1301 10.4622 9.81357 10.4622 9.61831 10.2669L8.02837 8.67698L6.38373 10.3216C6.18847 10.5169 5.87189 10.5169 5.67663 10.3216C5.48136 10.1264 5.48136 9.80978 5.67663 9.61452L7.32126 7.96988L5.73419 6.3828C5.53893 6.18754 5.53893 5.87096 5.73419 5.6757Z",
|
3009
3009
|
fill: e
|
3010
3010
|
}
|
@@ -3027,11 +3027,11 @@ const Ke = ({
|
|
3027
3027
|
fill: "none",
|
3028
3028
|
xmlns: "http://www.w3.org/2000/svg",
|
3029
3029
|
children: [
|
3030
|
-
/* @__PURE__ */ n("g", {
|
3030
|
+
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_3992_5989)", children: /* @__PURE__ */ n(
|
3031
3031
|
"path",
|
3032
3032
|
{
|
3033
|
-
|
3034
|
-
|
3033
|
+
fillRule: "evenodd",
|
3034
|
+
clipRule: "evenodd",
|
3035
3035
|
d: "M6.22724 7.50312C5.92425 7.80612 5.92425 8.29737 6.22724 8.60036L9.67552 12.0486C9.97851 12.3516 10.4698 12.3516 10.7728 12.0486L14.221 8.60036C14.524 8.29737 14.524 7.80612 14.221 7.50312C13.918 7.20013 13.4268 7.20013 13.1238 7.50312L10.2241 10.4028L7.32448 7.50312C7.02149 7.20013 6.53024 7.20013 6.22724 7.50312Z",
|
3036
3036
|
fill: e
|
3037
3037
|
}
|
@@ -3056,11 +3056,11 @@ const Ke = ({
|
|
3056
3056
|
fill: "none",
|
3057
3057
|
xmlns: "http://www.w3.org/2000/svg",
|
3058
3058
|
children: [
|
3059
|
-
/* @__PURE__ */ n("g", {
|
3059
|
+
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_3992_5988)", children: /* @__PURE__ */ n(
|
3060
3060
|
"path",
|
3061
3061
|
{
|
3062
|
-
|
3063
|
-
|
3062
|
+
fillRule: "evenodd",
|
3063
|
+
clipRule: "evenodd",
|
3064
3064
|
d: "M13.7728 12.4969C14.0757 12.1939 14.0757 11.7026 13.7728 11.3996L10.3245 7.95137C10.0215 7.64837 9.53024 7.64837 9.22724 7.95137L5.77897 11.3996C5.47598 11.7026 5.47598 12.1939 5.77897 12.4969C6.08196 12.7999 6.57321 12.7999 6.8762 12.4969L9.77586 9.59722L12.6755 12.4969C12.9785 12.7999 13.4698 12.7999 13.7728 12.4969Z",
|
3065
3065
|
fill: e
|
3066
3066
|
}
|
@@ -3089,8 +3089,8 @@ const Ke = ({
|
|
3089
3089
|
/* @__PURE__ */ n(
|
3090
3090
|
"path",
|
3091
3091
|
{
|
3092
|
-
|
3093
|
-
|
3092
|
+
fillRule: "evenodd",
|
3093
|
+
clipRule: "evenodd",
|
3094
3094
|
d: "M11.7728 6.22718C11.4698 5.92419 10.9785 5.92419 10.6755 6.22718L7.22724 9.67546C6.92425 9.97845 6.92425 10.4697 7.22724 10.7727L10.6755 14.221C10.9785 14.524 11.4698 14.524 11.7728 14.221C12.0757 13.918 12.0757 13.4267 11.7728 13.1237L8.8731 10.2241L11.7728 7.32442C12.0757 7.02143 12.0757 6.53018 11.7728 6.22718Z",
|
3095
3095
|
fill: e
|
3096
3096
|
}
|
@@ -3118,8 +3118,8 @@ const Ke = ({
|
|
3118
3118
|
/* @__PURE__ */ n(
|
3119
3119
|
"path",
|
3120
3120
|
{
|
3121
|
-
|
3122
|
-
|
3121
|
+
fillRule: "evenodd",
|
3122
|
+
clipRule: "evenodd",
|
3123
3123
|
d: "M8.22724 13.7728C8.53024 14.0757 9.02149 14.0757 9.32448 13.7728L12.7728 10.3245C13.0757 10.0215 13.0757 9.53024 12.7728 9.22724L9.32448 5.77897C9.02149 5.47598 8.53024 5.47598 8.22724 5.77897C7.92425 6.08196 7.92425 6.57321 8.22724 6.8762L11.1269 9.77586L8.22724 12.6755C7.92425 12.9785 7.92425 13.4698 8.22724 13.7728Z",
|
3124
3124
|
fill: e
|
3125
3125
|
}
|
@@ -3145,8 +3145,8 @@ const Ke = ({
|
|
3145
3145
|
children: /* @__PURE__ */ n(
|
3146
3146
|
"path",
|
3147
3147
|
{
|
3148
|
-
|
3149
|
-
|
3148
|
+
fillRule: "evenodd",
|
3149
|
+
clipRule: "evenodd",
|
3150
3150
|
d: "M20.75 7C20.75 7.19891 20.671 7.38968 20.5303 7.53033C20.3897 7.67098 20.1989 7.75 20 7.75H4C3.80109 7.75 3.61032 7.67098 3.46967 7.53033C3.32902 7.38968 3.25 7.19891 3.25 7C3.25 6.80109 3.32902 6.61032 3.46967 6.46967C3.61032 6.32902 3.80109 6.25 4 6.25H20C20.1989 6.25 20.3897 6.32902 20.5303 6.46967C20.671 6.61032 20.75 6.80109 20.75 7ZM20.75 12C20.75 12.1989 20.671 12.3897 20.5303 12.5303C20.3897 12.671 20.1989 12.75 20 12.75H4C3.80109 12.75 3.61032 12.671 3.46967 12.5303C3.32902 12.3897 3.25 12.1989 3.25 12C3.25 11.8011 3.32902 11.6103 3.46967 11.4697C3.61032 11.329 3.80109 11.25 4 11.25H20C20.1989 11.25 20.3897 11.329 20.5303 11.4697C20.671 11.6103 20.75 11.8011 20.75 12ZM20.75 17C20.75 17.1989 20.671 17.3897 20.5303 17.5303C20.3897 17.671 20.1989 17.75 20 17.75H4C3.80109 17.75 3.61032 17.671 3.46967 17.5303C3.32902 17.3897 3.25 17.1989 3.25 17C3.25 16.8011 3.32902 16.6103 3.46967 16.4697C3.61032 16.329 3.80109 16.25 4 16.25H20C20.1989 16.25 20.3897 16.329 20.5303 16.4697C20.671 16.6103 20.75 16.8011 20.75 17Z",
|
3151
3151
|
fill: e
|
3152
3152
|
}
|
@@ -3440,7 +3440,7 @@ const Ke = ({
|
|
3440
3440
|
}
|
3441
3441
|
)
|
3442
3442
|
}
|
3443
|
-
),
|
3443
|
+
), Rt = ({
|
3444
3444
|
width: i = 24,
|
3445
3445
|
height: e = 24,
|
3446
3446
|
color: t = m.GREY_DARK_2,
|
@@ -3610,7 +3610,7 @@ const Ke = ({
|
|
3610
3610
|
onClick: h
|
3611
3611
|
});
|
3612
3612
|
case "visibilityOffIcon":
|
3613
|
-
return
|
3613
|
+
return R2({
|
3614
3614
|
width: e,
|
3615
3615
|
height: t,
|
3616
3616
|
color: a,
|
@@ -3618,7 +3618,7 @@ const Ke = ({
|
|
3618
3618
|
onClick: h
|
3619
3619
|
});
|
3620
3620
|
case "selectArrowIcon":
|
3621
|
-
return
|
3621
|
+
return M2({
|
3622
3622
|
width: e,
|
3623
3623
|
height: t,
|
3624
3624
|
color: a,
|
@@ -3736,12 +3736,12 @@ const Ke = ({
|
|
3736
3736
|
case "community":
|
3737
3737
|
return xt({ width: e, height: t, color: a, className: r, onClick: h });
|
3738
3738
|
case "docs":
|
3739
|
-
return
|
3739
|
+
return Rt({ width: e, height: t, color: a, className: r, onClick: h });
|
3740
3740
|
default:
|
3741
3741
|
return /* @__PURE__ */ n($, { children: "No Icon provided" });
|
3742
3742
|
}
|
3743
3743
|
})() });
|
3744
|
-
}, { Title:
|
3744
|
+
}, { Title: Mt, Text: yt } = J1, bt = {
|
3745
3745
|
h1: 1,
|
3746
3746
|
h2: 2,
|
3747
3747
|
h3: 3,
|
@@ -3759,7 +3759,7 @@ const Ke = ({
|
|
3759
3759
|
const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
3760
3760
|
let g = `snmt-typography snmt-typography-${e}`;
|
3761
3761
|
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), l && (g += " collapsed"), d ? /* @__PURE__ */ n(
|
3762
|
-
|
3762
|
+
Mt,
|
3763
3763
|
{
|
3764
3764
|
className: g,
|
3765
3765
|
style: { color: t, whiteSpace: c },
|
@@ -5522,7 +5522,7 @@ const Et = ({
|
|
5522
5522
|
}
|
5523
5523
|
)
|
5524
5524
|
}
|
5525
|
-
),
|
5525
|
+
), R5 = ({
|
5526
5526
|
className: i,
|
5527
5527
|
color: e = k.GREY_DARK_5,
|
5528
5528
|
height: t = 5,
|
@@ -5547,7 +5547,7 @@ const Et = ({
|
|
5547
5547
|
}
|
5548
5548
|
)
|
5549
5549
|
}
|
5550
|
-
),
|
5550
|
+
), M5 = ({
|
5551
5551
|
className: i,
|
5552
5552
|
color: e = k.GREY_DARK_5,
|
5553
5553
|
height: t = 24,
|
@@ -6558,8 +6558,8 @@ const Et = ({
|
|
6558
6558
|
children: /* @__PURE__ */ n(
|
6559
6559
|
"path",
|
6560
6560
|
{
|
6561
|
-
|
6562
|
-
|
6561
|
+
fillRule: "evenodd",
|
6562
|
+
clipRule: "evenodd",
|
6563
6563
|
d: "M7.99994 13C10.7614 13 12.9999 10.7614 12.9999 8C12.9999 5.23858 10.7614 3 7.99994 3C5.23852 3 2.99994 5.23858 2.99994 8C2.99994 10.7614 5.23852 13 7.99994 13ZM5.73419 5.6757C5.92945 5.48044 6.24603 5.48044 6.4413 5.6757L8.02837 7.26277L9.56074 5.7304C9.756 5.53514 10.0726 5.53514 10.2678 5.7304C10.4631 5.92566 10.4631 6.24225 10.2678 6.43751L8.73548 7.96988L10.3254 9.55981C10.5207 9.75507 10.5207 10.0717 10.3254 10.2669C10.1301 10.4622 9.81357 10.4622 9.61831 10.2669L8.02837 8.67698L6.38373 10.3216C6.18847 10.5169 5.87189 10.5169 5.67663 10.3216C5.48136 10.1264 5.48136 9.80978 5.67663 9.61452L7.32126 7.96988L5.73419 6.3828C5.53893 6.18754 5.53893 5.87096 5.73419 5.6757Z",
|
6564
6564
|
fill: e
|
6565
6565
|
}
|
@@ -6582,11 +6582,11 @@ const Et = ({
|
|
6582
6582
|
fill: "none",
|
6583
6583
|
xmlns: "http://www.w3.org/2000/svg",
|
6584
6584
|
children: [
|
6585
|
-
/* @__PURE__ */ n("g", {
|
6585
|
+
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_3992_5989)", children: /* @__PURE__ */ n(
|
6586
6586
|
"path",
|
6587
6587
|
{
|
6588
|
-
|
6589
|
-
|
6588
|
+
fillRule: "evenodd",
|
6589
|
+
clipRule: "evenodd",
|
6590
6590
|
d: "M6.22724 7.50312C5.92425 7.80612 5.92425 8.29737 6.22724 8.60036L9.67552 12.0486C9.97851 12.3516 10.4698 12.3516 10.7728 12.0486L14.221 8.60036C14.524 8.29737 14.524 7.80612 14.221 7.50312C13.918 7.20013 13.4268 7.20013 13.1238 7.50312L10.2241 10.4028L7.32448 7.50312C7.02149 7.20013 6.53024 7.20013 6.22724 7.50312Z",
|
6591
6591
|
fill: e
|
6592
6592
|
}
|
@@ -6611,11 +6611,11 @@ const Et = ({
|
|
6611
6611
|
fill: "none",
|
6612
6612
|
xmlns: "http://www.w3.org/2000/svg",
|
6613
6613
|
children: [
|
6614
|
-
/* @__PURE__ */ n("g", {
|
6614
|
+
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_3992_5988)", children: /* @__PURE__ */ n(
|
6615
6615
|
"path",
|
6616
6616
|
{
|
6617
|
-
|
6618
|
-
|
6617
|
+
fillRule: "evenodd",
|
6618
|
+
clipRule: "evenodd",
|
6619
6619
|
d: "M13.7728 12.4969C14.0757 12.1939 14.0757 11.7026 13.7728 11.3996L10.3245 7.95137C10.0215 7.64837 9.53024 7.64837 9.22724 7.95137L5.77897 11.3996C5.47598 11.7026 5.47598 12.1939 5.77897 12.4969C6.08196 12.7999 6.57321 12.7999 6.8762 12.4969L9.77586 9.59722L12.6755 12.4969C12.9785 12.7999 13.4698 12.7999 13.7728 12.4969Z",
|
6620
6620
|
fill: e
|
6621
6621
|
}
|
@@ -6644,8 +6644,8 @@ const Et = ({
|
|
6644
6644
|
/* @__PURE__ */ n(
|
6645
6645
|
"path",
|
6646
6646
|
{
|
6647
|
-
|
6648
|
-
|
6647
|
+
fillRule: "evenodd",
|
6648
|
+
clipRule: "evenodd",
|
6649
6649
|
d: "M11.7728 6.22718C11.4698 5.92419 10.9785 5.92419 10.6755 6.22718L7.22724 9.67546C6.92425 9.97845 6.92425 10.4697 7.22724 10.7727L10.6755 14.221C10.9785 14.524 11.4698 14.524 11.7728 14.221C12.0757 13.918 12.0757 13.4267 11.7728 13.1237L8.8731 10.2241L11.7728 7.32442C12.0757 7.02143 12.0757 6.53018 11.7728 6.22718Z",
|
6650
6650
|
fill: e
|
6651
6651
|
}
|
@@ -6673,8 +6673,8 @@ const Et = ({
|
|
6673
6673
|
/* @__PURE__ */ n(
|
6674
6674
|
"path",
|
6675
6675
|
{
|
6676
|
-
|
6677
|
-
|
6676
|
+
fillRule: "evenodd",
|
6677
|
+
clipRule: "evenodd",
|
6678
6678
|
d: "M8.22724 13.7728C8.53024 14.0757 9.02149 14.0757 9.32448 13.7728L12.7728 10.3245C13.0757 10.0215 13.0757 9.53024 12.7728 9.22724L9.32448 5.77897C9.02149 5.47598 8.53024 5.47598 8.22724 5.77897C7.92425 6.08196 7.92425 6.57321 8.22724 6.8762L11.1269 9.77586L8.22724 12.6755C7.92425 12.9785 7.92425 13.4698 8.22724 13.7728Z",
|
6679
6679
|
fill: e
|
6680
6680
|
}
|
@@ -6700,8 +6700,8 @@ const Et = ({
|
|
6700
6700
|
children: /* @__PURE__ */ n(
|
6701
6701
|
"path",
|
6702
6702
|
{
|
6703
|
-
|
6704
|
-
|
6703
|
+
fillRule: "evenodd",
|
6704
|
+
clipRule: "evenodd",
|
6705
6705
|
d: "M20.75 7C20.75 7.19891 20.671 7.38968 20.5303 7.53033C20.3897 7.67098 20.1989 7.75 20 7.75H4C3.80109 7.75 3.61032 7.67098 3.46967 7.53033C3.32902 7.38968 3.25 7.19891 3.25 7C3.25 6.80109 3.32902 6.61032 3.46967 6.46967C3.61032 6.32902 3.80109 6.25 4 6.25H20C20.1989 6.25 20.3897 6.32902 20.5303 6.46967C20.671 6.61032 20.75 6.80109 20.75 7ZM20.75 12C20.75 12.1989 20.671 12.3897 20.5303 12.5303C20.3897 12.671 20.1989 12.75 20 12.75H4C3.80109 12.75 3.61032 12.671 3.46967 12.5303C3.32902 12.3897 3.25 12.1989 3.25 12C3.25 11.8011 3.32902 11.6103 3.46967 11.4697C3.61032 11.329 3.80109 11.25 4 11.25H20C20.1989 11.25 20.3897 11.329 20.5303 11.4697C20.671 11.6103 20.75 11.8011 20.75 12ZM20.75 17C20.75 17.1989 20.671 17.3897 20.5303 17.5303C20.3897 17.671 20.1989 17.75 20 17.75H4C3.80109 17.75 3.61032 17.671 3.46967 17.5303C3.32902 17.3897 3.25 17.1989 3.25 17C3.25 16.8011 3.32902 16.6103 3.46967 16.4697C3.61032 16.329 3.80109 16.25 4 16.25H20C20.1989 16.25 20.3897 16.329 20.5303 16.4697C20.671 16.6103 20.75 16.8011 20.75 17Z",
|
6706
6706
|
fill: e
|
6707
6707
|
}
|
@@ -7209,11 +7209,11 @@ const Et = ({
|
|
7209
7209
|
case "handRock":
|
7210
7210
|
return L5({ width: e, height: t, color: a, className: r, onClick: h });
|
7211
7211
|
case "arrowUpFilled":
|
7212
|
-
return
|
7212
|
+
return R5({ width: e, height: t, color: a, className: r, onClick: h });
|
7213
7213
|
case "arrowDownFilled":
|
7214
7214
|
return x5({ width: e, height: t, color: a, className: r, onClick: h });
|
7215
7215
|
case "link":
|
7216
|
-
return
|
7216
|
+
return M5({ width: e, height: t, color: a, className: r, onClick: h });
|
7217
7217
|
case "telegram":
|
7218
7218
|
return b5({ width: e, height: t, color: a, className: r, onClick: h });
|
7219
7219
|
case "mail":
|
@@ -7490,29 +7490,29 @@ const k3 = ({
|
|
7490
7490
|
optionRender: b,
|
7491
7491
|
isLoading: E,
|
7492
7492
|
readOnly: w,
|
7493
|
-
error:
|
7493
|
+
error: M
|
7494
7494
|
}, N) => {
|
7495
7495
|
const [x, Z] = S(!1), [T, t1] = S(!1), [F, h1] = S(!0), [H, G] = S(i), Y = a1(null);
|
7496
7496
|
A(() => {
|
7497
7497
|
G(i);
|
7498
7498
|
}, [i]);
|
7499
|
-
const q = (
|
7500
|
-
Z(
|
7501
|
-
}, c1 = (
|
7499
|
+
const q = (R) => {
|
7500
|
+
Z(R), u && u(R);
|
7501
|
+
}, c1 = (R, V) => {
|
7502
7502
|
var W;
|
7503
|
-
return !!((W = V == null ? void 0 : V.label) != null && W.toString().toLowerCase().includes(
|
7503
|
+
return !!((W = V == null ? void 0 : V.label) != null && W.toString().toLowerCase().includes(R.toLowerCase()));
|
7504
7504
|
}, O = () => {
|
7505
7505
|
t1(!0);
|
7506
7506
|
}, K = () => {
|
7507
7507
|
t1(!1);
|
7508
7508
|
}, B = j(
|
7509
|
-
(
|
7510
|
-
if (G(
|
7511
|
-
const W =
|
7509
|
+
(R) => {
|
7510
|
+
if (G(R), s) {
|
7511
|
+
const W = R;
|
7512
7512
|
e == null || e(W);
|
7513
7513
|
return;
|
7514
7514
|
}
|
7515
|
-
const V =
|
7515
|
+
const V = R;
|
7516
7516
|
e == null || e(V);
|
7517
7517
|
},
|
7518
7518
|
[s, e]
|
@@ -7525,38 +7525,38 @@ const k3 = ({
|
|
7525
7525
|
B("");
|
7526
7526
|
}
|
7527
7527
|
}, [B, s, w]), g1 = j(
|
7528
|
-
(
|
7529
|
-
const V = H.filter((W) => W !==
|
7528
|
+
(R) => {
|
7529
|
+
const V = H.filter((W) => W !== R);
|
7530
7530
|
B(V), G(V);
|
7531
7531
|
},
|
7532
7532
|
[B, H]
|
7533
7533
|
), E1 = j(
|
7534
|
-
(
|
7534
|
+
(R) => (H == null ? void 0 : H.indexOf(R)) === 0 ? (
|
7535
7535
|
// if the search input is empty
|
7536
7536
|
// then display the placeholder, else do not display it
|
7537
7537
|
/* @__PURE__ */ n("span", { className: "custom-placeholder", children: F ? t : "" })
|
7538
7538
|
) : /* @__PURE__ */ n($, {}),
|
7539
7539
|
[F, H, t]
|
7540
|
-
), le = (
|
7541
|
-
|
7542
|
-
}, ae = async (
|
7543
|
-
const { target: V } =
|
7544
|
-
V.scrollTop + V.offsetHeight >= V.scrollHeight - a && (p == null || p(!0)), L && await L(
|
7540
|
+
), le = (R) => {
|
7541
|
+
R.preventDefault(), R.stopPropagation();
|
7542
|
+
}, ae = async (R) => {
|
7543
|
+
const { target: V } = R;
|
7544
|
+
V.scrollTop + V.offsetHeight >= V.scrollHeight - a && (p == null || p(!0)), L && await L(R);
|
7545
7545
|
}, L1 = j(
|
7546
|
-
(
|
7546
|
+
(R) => {
|
7547
7547
|
var V, W;
|
7548
|
-
return ((V = l.find((v1) => v1.value ===
|
7549
|
-
(v1) => v1.value ===
|
7550
|
-
)) == null ? void 0 : W.label) ||
|
7548
|
+
return ((V = l.find((v1) => v1.value === R)) == null ? void 0 : V.label) || ((W = f == null ? void 0 : f.find(
|
7549
|
+
(v1) => v1.value === R
|
7550
|
+
)) == null ? void 0 : W.label) || R;
|
7551
7551
|
},
|
7552
7552
|
[f, l]
|
7553
7553
|
), he = j(
|
7554
|
-
(
|
7554
|
+
(R) => {
|
7555
7555
|
var V;
|
7556
7556
|
return /* @__PURE__ */ n(
|
7557
7557
|
k3,
|
7558
7558
|
{
|
7559
|
-
values:
|
7559
|
+
values: R,
|
7560
7560
|
onTagClose: g1,
|
7561
7561
|
maxWidth: ((V = Y.current) == null ? void 0 : V.clientWidth) || 0,
|
7562
7562
|
disabled: r,
|
@@ -7568,7 +7568,7 @@ const k3 = ({
|
|
7568
7568
|
},
|
7569
7569
|
[r, f, g1, l, w]
|
7570
7570
|
), ce = j(
|
7571
|
-
({ label:
|
7571
|
+
({ label: R, value: V, mode: W }) => W === "filter" ? E1(V) : /* @__PURE__ */ n("div", { onMouseDown: le, className: "tag-wrapper", children: /* @__PURE__ */ n(te, { onClose: () => g1(V), disabled: r, children: typeof R == "object" ? R : L1(V) }) }),
|
7572
7572
|
[r, L1, g1, E1]
|
7573
7573
|
), V1 = Array.isArray(H) && H.length > 0 || !!H && typeof H == "string" && H.trim() !== "";
|
7574
7574
|
return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
|
@@ -7592,17 +7592,17 @@ const k3 = ({
|
|
7592
7592
|
onDropdownVisibleChange: q,
|
7593
7593
|
disabled: r,
|
7594
7594
|
value: H || void 0,
|
7595
|
-
labelRender: (
|
7595
|
+
labelRender: (R) => L1(R.value),
|
7596
7596
|
mode: s === "filter" ? "multiple" : s,
|
7597
7597
|
onChange: B,
|
7598
7598
|
onFocus: O,
|
7599
7599
|
onBlur: K,
|
7600
|
-
onSearch: (
|
7601
|
-
h1(!
|
7600
|
+
onSearch: (R) => {
|
7601
|
+
h1(!R), h && h(R);
|
7602
7602
|
},
|
7603
7603
|
onSelect: () => h1(!0),
|
7604
7604
|
onDeselect: () => h1(!0),
|
7605
|
-
tagRender: (
|
7605
|
+
tagRender: (R) => ce({ ...R, mode: s }),
|
7606
7606
|
maxTagCount: "responsive",
|
7607
7607
|
maxTagPlaceholder: he,
|
7608
7608
|
onPopupScroll: ae,
|
@@ -7627,20 +7627,20 @@ const k3 = ({
|
|
7627
7627
|
] }) }),
|
7628
7628
|
removeIcon: /* @__PURE__ */ n(i1, { name: "errorSmall", color: P.GREY_DARK_2 }),
|
7629
7629
|
options: l,
|
7630
|
-
optionRender: (
|
7630
|
+
optionRender: (R) => b ? b(R.data) : /* @__PURE__ */ C(o1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
7631
7631
|
/* @__PURE__ */ C(o1, { alignItems: "center", gap: 12, children: [
|
7632
7632
|
s && /* @__PURE__ */ n(
|
7633
7633
|
Ge,
|
7634
7634
|
{
|
7635
|
-
checked: !!(H != null && H.includes(
|
7635
|
+
checked: !!(H != null && H.includes(R.value))
|
7636
7636
|
}
|
7637
7637
|
),
|
7638
7638
|
/* @__PURE__ */ C(o1, { alignItems: "center", gap: 8, children: [
|
7639
|
-
|
7640
|
-
/* @__PURE__ */ n("span", { children:
|
7639
|
+
R.data.image && /* @__PURE__ */ n(Te, { src: R.data.image, size: 20 }),
|
7640
|
+
/* @__PURE__ */ n("span", { children: R.label })
|
7641
7641
|
] })
|
7642
7642
|
] }),
|
7643
|
-
!s && H ===
|
7643
|
+
!s && H === R.value && /* @__PURE__ */ n(
|
7644
7644
|
i1,
|
7645
7645
|
{
|
7646
7646
|
name: "ok",
|
@@ -7650,8 +7650,8 @@ const k3 = ({
|
|
7650
7650
|
}
|
7651
7651
|
)
|
7652
7652
|
] }),
|
7653
|
-
dropdownRender: (
|
7654
|
-
/* @__PURE__ */ n("div", { className: "dropdown-menu", children: _ ? _(
|
7653
|
+
dropdownRender: (R) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
7654
|
+
/* @__PURE__ */ n("div", { className: "dropdown-menu", children: _ ? _(R) : R }),
|
7655
7655
|
E && /* @__PURE__ */ n("div", { className: "loading-overlay", children: /* @__PURE__ */ n(A1, { size: 28 }) })
|
7656
7656
|
] })
|
7657
7657
|
}
|
@@ -7660,14 +7660,14 @@ const k3 = ({
|
|
7660
7660
|
/* @__PURE__ */ n(
|
7661
7661
|
"label",
|
7662
7662
|
{
|
7663
|
-
className: `${T || V1 ? "label-floating" : ""} ${r ? "label-disabled" : ""} ${T ? "label-focused" : ""} ${E ? "label-loading" : ""} ${
|
7663
|
+
className: `${T || V1 ? "label-floating" : ""} ${r ? "label-disabled" : ""} ${T ? "label-focused" : ""} ${E ? "label-loading" : ""} ${M ? "label-error" : ""}`,
|
7664
7664
|
children: d ? `${t}*` : t
|
7665
7665
|
}
|
7666
7666
|
),
|
7667
7667
|
/* @__PURE__ */ n(
|
7668
7668
|
"fieldset",
|
7669
7669
|
{
|
7670
|
-
className: `${T ? "fieldset-focused" : ""} ${r ? "fieldset-disabled" : ""} ${V1 ? "fieldset-filled" : ""} ${
|
7670
|
+
className: `${T ? "fieldset-focused" : ""} ${r ? "fieldset-disabled" : ""} ${V1 ? "fieldset-filled" : ""} ${M ? "fieldset-error" : ""}`,
|
7671
7671
|
children: /* @__PURE__ */ n("legend", { children: /* @__PURE__ */ n("span", { children: d ? `${t}*` : t }) })
|
7672
7672
|
}
|
7673
7673
|
)
|
@@ -7675,9 +7675,9 @@ const k3 = ({
|
|
7675
7675
|
]
|
7676
7676
|
}
|
7677
7677
|
),
|
7678
|
-
|
7678
|
+
M && /* @__PURE__ */ C(o1, { justifyContent: "flex-start", gap: 6, children: [
|
7679
7679
|
/* @__PURE__ */ n(i1, { name: "attention", color: P.NOTIFICATION_ERROR_DARK }),
|
7680
|
-
typeof
|
7680
|
+
typeof M == "string" ? /* @__PURE__ */ n(w3, { color: P.NOTIFICATION_ERROR_DARK, variant: "body4", children: M }) : M
|
7681
7681
|
] })
|
7682
7682
|
] });
|
7683
7683
|
}
|
@@ -7729,7 +7729,7 @@ const k3 = ({
|
|
7729
7729
|
} = r1(i, e);
|
7730
7730
|
if (t)
|
7731
7731
|
return t[s];
|
7732
|
-
},
|
7732
|
+
}, R3 = (i, e, t) => {
|
7733
7733
|
const s = u1(i, t);
|
7734
7734
|
return s !== void 0 ? s : u1(e, t);
|
7735
7735
|
}, ie = (i, e, t) => {
|
@@ -7737,7 +7737,7 @@ const k3 = ({
|
|
7737
7737
|
s !== "__proto__" && s !== "constructor" && (s in i ? v(i[s]) || i[s] instanceof String || v(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : ie(i[s], e[s], t) : i[s] = e[s]);
|
7738
7738
|
return i;
|
7739
7739
|
}, Q = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
7740
|
-
var
|
7740
|
+
var M3 = {
|
7741
7741
|
"&": "&",
|
7742
7742
|
"<": "<",
|
7743
7743
|
">": ">",
|
@@ -7745,7 +7745,7 @@ var R3 = {
|
|
7745
7745
|
"'": "'",
|
7746
7746
|
"/": "/"
|
7747
7747
|
};
|
7748
|
-
const y3 = (i) => v(i) ? i.replace(/[&<>"'\/]/g, (e) =>
|
7748
|
+
const y3 = (i) => v(i) ? i.replace(/[&<>"'\/]/g, (e) => M3[e]) : i;
|
7749
7749
|
class b3 {
|
7750
7750
|
constructor(e) {
|
7751
7751
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
@@ -7769,7 +7769,7 @@ const _3 = [" ", ",", "?", "!", ";"], E3 = new b3(20), V3 = (i, e, t) => {
|
|
7769
7769
|
c > 0 && !o.test(i.substring(0, c)) && (l = !0);
|
7770
7770
|
}
|
7771
7771
|
return l;
|
7772
|
-
},
|
7772
|
+
}, M1 = function(i, e) {
|
7773
7773
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
7774
7774
|
if (!i) return;
|
7775
7775
|
if (i[e]) return i[e];
|
@@ -7902,7 +7902,7 @@ class D1 extends k1 {
|
|
7902
7902
|
let r;
|
7903
7903
|
e.indexOf(".") > -1 ? r = e.split(".") : (r = [e, t], s && (Array.isArray(s) ? r.push(...s) : v(s) && l ? r.push(...s.split(l)) : r.push(s)));
|
7904
7904
|
const d = u1(this.data, r);
|
7905
|
-
return !d && !t && !s && e.indexOf(".") > -1 && (e = r[0], t = r[1], s = r.slice(2).join(".")), d || !c || !v(s) ? d :
|
7905
|
+
return !d && !t && !s && e.indexOf(".") > -1 && (e = r[0], t = r[1], s = r.slice(2).join(".")), d || !c || !v(s) ? d : M1(this.data && this.data[e] && this.data[e][t], s, l);
|
7906
7906
|
}
|
7907
7907
|
addResource(e, t, s, o) {
|
7908
7908
|
let l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
@@ -8049,28 +8049,28 @@ class f1 extends k1 {
|
|
8049
8049
|
return o ? (h.res = w, h.usedParams = this.getUsedParamsDetails(t), h) : w;
|
8050
8050
|
}
|
8051
8051
|
if (l) {
|
8052
|
-
const w = Array.isArray(u),
|
8052
|
+
const w = Array.isArray(u), M = w ? [] : {}, N = w ? L : p;
|
8053
8053
|
for (const x in u)
|
8054
8054
|
if (Object.prototype.hasOwnProperty.call(u, x)) {
|
8055
8055
|
const Z = `${N}${l}${x}`;
|
8056
|
-
|
8056
|
+
M[x] = this.translate(Z, {
|
8057
8057
|
...t,
|
8058
8058
|
joinArrays: !1,
|
8059
8059
|
ns: r
|
8060
|
-
}),
|
8060
|
+
}), M[x] === Z && (M[x] = u[x]);
|
8061
8061
|
}
|
8062
|
-
u =
|
8062
|
+
u = M;
|
8063
8063
|
}
|
8064
8064
|
} else if (b && v(_) && Array.isArray(u))
|
8065
8065
|
u = u.join(_), u && (u = this.extendTranslation(u, e, t, s));
|
8066
8066
|
else {
|
8067
|
-
let w = !1,
|
8067
|
+
let w = !1, M = !1;
|
8068
8068
|
const N = t.count !== void 0 && !v(t.count), x = f1.hasDefaultValue(t), Z = N ? this.pluralResolver.getSuffix(g, t.count, t) : "", T = t.ordinal && N ? this.pluralResolver.getSuffix(g, t.count, {
|
8069
8069
|
ordinal: !1
|
8070
8070
|
}) : "", t1 = N && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), F = t1 && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${Z}`] || t[`defaultValue${T}`] || t.defaultValue;
|
8071
|
-
!this.isValidLookup(u) && x && (w = !0, u = F), this.isValidLookup(u) || (
|
8072
|
-
const H = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
8073
|
-
if (
|
8071
|
+
!this.isValidLookup(u) && x && (w = !0, u = F), this.isValidLookup(u) || (M = !0, u = c);
|
8072
|
+
const H = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : u, G = x && F !== u && this.options.updateMissing;
|
8073
|
+
if (M || w || G) {
|
8074
8074
|
if (this.logger.log(G ? "updateKey" : "missingKey", g, d, c, G ? F : u), l) {
|
8075
8075
|
const O = this.resolve(c, {
|
8076
8076
|
...t,
|
@@ -8095,7 +8095,7 @@ class f1 extends k1 {
|
|
8095
8095
|
});
|
8096
8096
|
}) : c1(Y, c, F));
|
8097
8097
|
}
|
8098
|
-
u = this.extendTranslation(u, e, t, h, s),
|
8098
|
+
u = this.extendTranslation(u, e, t, h, s), M && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (M || w) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, w ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
|
8099
8099
|
}
|
8100
8100
|
return o ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
|
8101
8101
|
}
|
@@ -8164,10 +8164,10 @@ class f1 extends k1 {
|
|
8164
8164
|
else {
|
8165
8165
|
let w;
|
8166
8166
|
u && (w = this.pluralResolver.getSuffix(_, t.count, t));
|
8167
|
-
const
|
8168
|
-
if (u && (b.push(a + w), t.ordinal && w.indexOf(N) === 0 && b.push(a + w.replace(N, this.options.pluralSeparator)), p && b.push(a +
|
8167
|
+
const M = `${this.options.pluralSeparator}zero`, N = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
8168
|
+
if (u && (b.push(a + w), t.ordinal && w.indexOf(N) === 0 && b.push(a + w.replace(N, this.options.pluralSeparator)), p && b.push(a + M)), L) {
|
8169
8169
|
const x = `${a}${this.options.contextSeparator}${t.context}`;
|
8170
|
-
b.push(x), u && (b.push(x + w), t.ordinal && w.indexOf(N) === 0 && b.push(x + w.replace(N, this.options.pluralSeparator)), p && b.push(x +
|
8170
|
+
b.push(x), u && (b.push(x + w), t.ordinal && w.indexOf(N) === 0 && b.push(x + w.replace(N, this.options.pluralSeparator)), p && b.push(x + M));
|
8171
8171
|
}
|
8172
8172
|
}
|
8173
8173
|
let E;
|
@@ -8479,8 +8479,8 @@ class Z3 {
|
|
8479
8479
|
}
|
8480
8480
|
}
|
8481
8481
|
const P1 = function(i, e, t) {
|
8482
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l =
|
8483
|
-
return !l && o && v(t) && (l =
|
8482
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l = R3(i, e, t);
|
8483
|
+
return !l && o && v(t) && (l = M1(i, t, s), l === void 0 && (l = M1(e, t, s))), l;
|
8484
8484
|
}, x1 = (i) => i.replace(/\$/g, "$$$$");
|
8485
8485
|
class W3 {
|
8486
8486
|
constructor() {
|
@@ -9292,8 +9292,8 @@ const n0 = (i, e) => {
|
|
9292
9292
|
} = J(s0) || {}, l = t || s || t0();
|
9293
9293
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new o0()), !l) {
|
9294
9294
|
y1("You will need to pass in an i18next instance by using initReactI18next");
|
9295
|
-
const w = (N, x) => z(x) ? x : $3(x) && z(x.defaultValue) ? x.defaultValue : Array.isArray(N) ? N[N.length - 1] : N,
|
9296
|
-
return
|
9295
|
+
const w = (N, x) => z(x) ? x : $3(x) && z(x.defaultValue) ? x.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, M = [w, {}, !1];
|
9296
|
+
return M.t = w, M.i18n = {}, M.ready = !1, M;
|
9297
9297
|
}
|
9298
9298
|
l.options.react && l.options.react.wait !== void 0 && y1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
9299
9299
|
const c = {
|
@@ -9313,7 +9313,7 @@ const n0 = (i, e) => {
|
|
9313
9313
|
A(() => {
|
9314
9314
|
const {
|
9315
9315
|
bindI18n: w,
|
9316
|
-
bindI18nStore:
|
9316
|
+
bindI18nStore: M
|
9317
9317
|
} = c;
|
9318
9318
|
b.current = !0, !a && !r && (e.lng ? z1(l, e.lng, g, () => {
|
9319
9319
|
b.current && y(p);
|
@@ -9323,8 +9323,8 @@ const n0 = (i, e) => {
|
|
9323
9323
|
const N = () => {
|
9324
9324
|
b.current && y(p);
|
9325
9325
|
};
|
9326
|
-
return w && l && l.on(w, N),
|
9327
|
-
b.current = !1, w && l && w.split(" ").forEach((x) => l.off(x, N)),
|
9326
|
+
return w && l && l.on(w, N), M && l && l.store.on(M, N), () => {
|
9327
|
+
b.current = !1, w && l && w.split(" ").forEach((x) => l.off(x, N)), M && l && M.split(" ").forEach((x) => l.store.off(x, N));
|
9328
9328
|
};
|
9329
9329
|
}, [l, f]), A(() => {
|
9330
9330
|
b.current && a && y(u);
|
@@ -9403,7 +9403,7 @@ const k0 = m1(
|
|
9403
9403
|
}));
|
9404
9404
|
u(N);
|
9405
9405
|
}, [p]);
|
9406
|
-
const
|
9406
|
+
const M = (N) => {
|
9407
9407
|
N === null ? (s(""), t && t("")) : (s(N), t && t(""));
|
9408
9408
|
};
|
9409
9409
|
return /* @__PURE__ */ n("div", { className: "snmt-country-select", children: /* @__PURE__ */ n(
|
@@ -9414,7 +9414,7 @@ const k0 = m1(
|
|
9414
9414
|
placeholder: E("placeholder"),
|
9415
9415
|
value: o,
|
9416
9416
|
ref: a,
|
9417
|
-
onChange:
|
9417
|
+
onChange: M,
|
9418
9418
|
options: h,
|
9419
9419
|
disabled: c,
|
9420
9420
|
isLoading: y,
|
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.1",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/country-select.js",
|
7
7
|
"types": "dist/index.d.ts",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"build": "tsc && vite build"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@snmt-react-ui/city-select": "^2.6.
|
21
|
+
"@snmt-react-ui/city-select": "^2.6.1",
|
22
22
|
"@snmt-react-ui/core": "^2.2.0",
|
23
23
|
"@snmt-react-ui/flex": "^1.5.1",
|
24
24
|
"i18next": "^23.11.5",
|
@@ -27,5 +27,5 @@
|
|
27
27
|
"peerDependencies": {
|
28
28
|
"antd": "^5.18.3"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "6dbd975528d375edce7e731b5a16372d9e5a5bae"
|
31
31
|
}
|