@snmt-react-ui/country-select 2.3.5 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/country-select.js +205 -189
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/country-select.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
var se = Object.defineProperty;
|
2
2
|
var oe = (i, e, t) => e in i ? se(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
3
|
-
var
|
3
|
+
var M1 = (i, e, t) => oe(i, typeof e != "symbol" ? e + "" : e, t);
|
4
4
|
import "./index.css";
|
5
5
|
import { jsx as n, Fragment as J, jsxs as C } from "react/jsx-runtime";
|
6
6
|
import { SNMTUiContext as ne } from "@snmt-react-ui/core";
|
7
|
-
import { Select as re, Flex as le, Avatar as ae, Checkbox as he, Typography as
|
8
|
-
import { createContext as
|
9
|
-
const
|
7
|
+
import { Select as re, Flex as le, Avatar as ae, Checkbox as he, Typography as T1, Tag as G1, Popover as ce } from "antd";
|
8
|
+
import { createContext as s1, forwardRef as u1, useState as S, useRef as x1, useEffect as B, useCallback as j, useContext as o1 } from "react";
|
9
|
+
const h1 = ({
|
10
10
|
children: i,
|
11
11
|
direction: e = "row",
|
12
12
|
flexWrap: t = "nowrap",
|
@@ -43,11 +43,11 @@ const a1 = ({
|
|
43
43
|
);
|
44
44
|
};
|
45
45
|
var z = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(z || {});
|
46
|
-
const
|
46
|
+
const K1 = s1({
|
47
47
|
locale: "en",
|
48
48
|
theme: "light"
|
49
49
|
});
|
50
|
-
|
50
|
+
K1.Provider;
|
51
51
|
const ge = ({
|
52
52
|
checked: i = !0,
|
53
53
|
indeterminate: e = !1,
|
@@ -60,7 +60,7 @@ const ge = ({
|
|
60
60
|
B(() => {
|
61
61
|
r(i), g(e);
|
62
62
|
}, [i, e]);
|
63
|
-
const { theme: a } =
|
63
|
+
const { theme: a } = o1(K1);
|
64
64
|
return /* @__PURE__ */ n(
|
65
65
|
he,
|
66
66
|
{
|
@@ -76,11 +76,11 @@ const ge = ({
|
|
76
76
|
);
|
77
77
|
};
|
78
78
|
var k = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(k || {});
|
79
|
-
const
|
79
|
+
const P1 = s1({
|
80
80
|
locale: "en",
|
81
81
|
theme: "light"
|
82
82
|
});
|
83
|
-
|
83
|
+
P1.Provider;
|
84
84
|
const Ce = ({
|
85
85
|
width: i = 20,
|
86
86
|
height: e = 20,
|
@@ -652,7 +652,7 @@ const Ce = ({
|
|
652
652
|
)
|
653
653
|
]
|
654
654
|
}
|
655
|
-
),
|
655
|
+
), _e = ({
|
656
656
|
width: i = 20,
|
657
657
|
height: e = 20,
|
658
658
|
color: t = "#001E52",
|
@@ -685,7 +685,7 @@ const Ce = ({
|
|
685
685
|
)
|
686
686
|
]
|
687
687
|
}
|
688
|
-
),
|
688
|
+
), He = ({
|
689
689
|
width: i = 20,
|
690
690
|
height: e = 20,
|
691
691
|
color: t = "#001E52",
|
@@ -2658,7 +2658,7 @@ const Ce = ({
|
|
2658
2658
|
}
|
2659
2659
|
)
|
2660
2660
|
}
|
2661
|
-
),
|
2661
|
+
), _2 = ({
|
2662
2662
|
className: i,
|
2663
2663
|
color: e = k.GREY_DARK_5,
|
2664
2664
|
height: t = 24,
|
@@ -2696,7 +2696,7 @@ const Ce = ({
|
|
2696
2696
|
)
|
2697
2697
|
]
|
2698
2698
|
}
|
2699
|
-
),
|
2699
|
+
), H2 = ({
|
2700
2700
|
className: i,
|
2701
2701
|
color: e = k.GREY_DARK_5,
|
2702
2702
|
height: t = 24,
|
@@ -3124,7 +3124,7 @@ const Ce = ({
|
|
3124
3124
|
}
|
3125
3125
|
)
|
3126
3126
|
}
|
3127
|
-
),
|
3127
|
+
), l1 = ({
|
3128
3128
|
name: i,
|
3129
3129
|
width: e,
|
3130
3130
|
height: t,
|
@@ -3133,7 +3133,7 @@ const Ce = ({
|
|
3133
3133
|
disabled: l = !1,
|
3134
3134
|
onClick: c
|
3135
3135
|
}) => {
|
3136
|
-
const [r, d] = S(o), { theme: g } =
|
3136
|
+
const [r, d] = S(o), { theme: g } = o1(P1), a = l ? g && g === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : s, h = l ? void 0 : c;
|
3137
3137
|
return B(() => {
|
3138
3138
|
if (o) {
|
3139
3139
|
h && !l && d(`${o} clickable`);
|
@@ -3185,7 +3185,7 @@ const Ce = ({
|
|
3185
3185
|
case "users":
|
3186
3186
|
return Ee({ width: e, height: t, color: a, className: r, onClick: h });
|
3187
3187
|
case "mySkillsMatrix":
|
3188
|
-
return
|
3188
|
+
return _e({
|
3189
3189
|
width: e,
|
3190
3190
|
height: t,
|
3191
3191
|
color: a,
|
@@ -3193,7 +3193,7 @@ const Ce = ({
|
|
3193
3193
|
onClick: h
|
3194
3194
|
});
|
3195
3195
|
case "skills":
|
3196
|
-
return
|
3196
|
+
return He({ width: e, height: t, color: a, className: r, onClick: h });
|
3197
3197
|
case "skillsMatrices":
|
3198
3198
|
return Ve({
|
3199
3199
|
width: e,
|
@@ -3355,9 +3355,9 @@ const Ce = ({
|
|
3355
3355
|
case "edit":
|
3356
3356
|
return E2({ width: e, height: t, color: a, className: r, onClick: h });
|
3357
3357
|
case "location":
|
3358
|
-
return H2({ width: e, height: t, color: a, className: r, onClick: h });
|
3359
|
-
case "plus2":
|
3360
3358
|
return _2({ width: e, height: t, color: a, className: r, onClick: h });
|
3359
|
+
case "plus2":
|
3360
|
+
return H2({ width: e, height: t, color: a, className: r, onClick: h });
|
3361
3361
|
case "search2":
|
3362
3362
|
return V2({ width: e, height: t, color: a, className: r, onClick: h });
|
3363
3363
|
case "fastArrowLeft":
|
@@ -3386,12 +3386,12 @@ const Ce = ({
|
|
3386
3386
|
return /* @__PURE__ */ n(J, { children: "No Icon provided" });
|
3387
3387
|
}
|
3388
3388
|
})() });
|
3389
|
-
}, { Title: K2, Text: P2 } =
|
3389
|
+
}, { Title: K2, Text: P2 } = T1, $2 = {
|
3390
3390
|
h1: 1,
|
3391
3391
|
h2: 2,
|
3392
3392
|
h3: 3,
|
3393
3393
|
h4: 4
|
3394
|
-
}, F2 =
|
3394
|
+
}, F2 = u1(
|
3395
3395
|
({
|
3396
3396
|
align: i = "inherit",
|
3397
3397
|
variant: e = "body1",
|
@@ -3426,11 +3426,11 @@ const Ce = ({
|
|
3426
3426
|
}
|
3427
3427
|
);
|
3428
3428
|
var L = /* @__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))(L || {});
|
3429
|
-
const
|
3429
|
+
const $1 = s1({
|
3430
3430
|
locale: "en",
|
3431
3431
|
theme: "light"
|
3432
3432
|
});
|
3433
|
-
|
3433
|
+
$1.Provider;
|
3434
3434
|
const Y2 = ({
|
3435
3435
|
width: i = 20,
|
3436
3436
|
height: e = 20,
|
@@ -4742,7 +4742,7 @@ const Y2 = ({
|
|
4742
4742
|
)
|
4743
4743
|
]
|
4744
4744
|
}
|
4745
|
-
),
|
4745
|
+
), _t = ({
|
4746
4746
|
width: i = 9,
|
4747
4747
|
height: e = 5,
|
4748
4748
|
color: t = "#001E52",
|
@@ -4768,7 +4768,7 @@ const Y2 = ({
|
|
4768
4768
|
}
|
4769
4769
|
)
|
4770
4770
|
}
|
4771
|
-
),
|
4771
|
+
), Ht = ({
|
4772
4772
|
width: i = 20,
|
4773
4773
|
height: e = 20,
|
4774
4774
|
color: t = "#F2F2F7",
|
@@ -6483,7 +6483,7 @@ const Y2 = ({
|
|
6483
6483
|
disabled: l = !1,
|
6484
6484
|
onClick: c
|
6485
6485
|
}) => {
|
6486
|
-
const [r, d] = S(o), { theme: g } =
|
6486
|
+
const [r, d] = S(o), { theme: g } = o1($1), a = l ? g && g === "dark" ? L.GREY_LIGHT_4 : L.GREY_DARK_1 : s, h = l ? void 0 : c;
|
6487
6487
|
return B(() => {
|
6488
6488
|
if (o) {
|
6489
6489
|
h && !l && d(`${o} clickable`);
|
@@ -6625,7 +6625,7 @@ const Y2 = ({
|
|
6625
6625
|
onClick: h
|
6626
6626
|
});
|
6627
6627
|
case "selectArrowIcon":
|
6628
|
-
return
|
6628
|
+
return _t({
|
6629
6629
|
width: e,
|
6630
6630
|
height: t,
|
6631
6631
|
color: a,
|
@@ -6633,7 +6633,7 @@ const Y2 = ({
|
|
6633
6633
|
onClick: h
|
6634
6634
|
});
|
6635
6635
|
case "expandArrowIcon":
|
6636
|
-
return
|
6636
|
+
return Ht({
|
6637
6637
|
width: e,
|
6638
6638
|
height: t,
|
6639
6639
|
color: a,
|
@@ -6737,40 +6737,56 @@ const Y2 = ({
|
|
6737
6737
|
}
|
6738
6738
|
})() });
|
6739
6739
|
};
|
6740
|
-
var
|
6741
|
-
const R5 =
|
6740
|
+
var e1 = /* @__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))(e1 || {});
|
6741
|
+
const R5 = s1({
|
6742
6742
|
locale: "en",
|
6743
6743
|
theme: "light"
|
6744
6744
|
});
|
6745
6745
|
R5.Provider;
|
6746
|
-
const F1 = ({
|
6747
|
-
|
6746
|
+
const F1 = ({
|
6747
|
+
children: i,
|
6748
|
+
width: e,
|
6749
|
+
size: t = "small",
|
6750
|
+
onClose: s,
|
6751
|
+
closable: o = !0,
|
6752
|
+
disabled: l = !1
|
6753
|
+
}) => {
|
6754
|
+
const c = t === "small" ? 10 : 12.5, r = () => {
|
6755
|
+
l || s == null || s();
|
6756
|
+
};
|
6748
6757
|
return /* @__PURE__ */ n(
|
6749
|
-
|
6758
|
+
G1,
|
6750
6759
|
{
|
6751
|
-
className: `snmt-tag ${t}`,
|
6760
|
+
className: `snmt-tag ${t} ${l ? "disabled" : ""}`,
|
6752
6761
|
closeIcon: /* @__PURE__ */ n(
|
6753
6762
|
x5,
|
6754
6763
|
{
|
6755
6764
|
name: "errorSmall",
|
6756
|
-
color:
|
6757
|
-
width:
|
6758
|
-
height:
|
6759
|
-
onClick:
|
6765
|
+
color: l ? e1.GREY_DARK_1 : e1.GREY_DARK_2,
|
6766
|
+
width: c,
|
6767
|
+
height: c,
|
6768
|
+
onClick: r
|
6760
6769
|
}
|
6761
6770
|
),
|
6762
6771
|
bordered: !1,
|
6763
6772
|
style: { width: e ?? "fit-content" },
|
6764
6773
|
closable: o,
|
6765
|
-
children: typeof i == "string" ? /* @__PURE__ */ n(
|
6774
|
+
children: typeof i == "string" ? /* @__PURE__ */ n(
|
6775
|
+
F2,
|
6776
|
+
{
|
6777
|
+
variant: t === "small" ? "body4" : "body2",
|
6778
|
+
color: l ? e1.GREY_DARK_2 : e1.GREY_DARK_5,
|
6779
|
+
children: i
|
6780
|
+
}
|
6781
|
+
) : i
|
6766
6782
|
}
|
6767
6783
|
);
|
6768
|
-
}, { Title: M5, Text: y5 } =
|
6784
|
+
}, { Title: M5, Text: y5 } = T1, b5 = {
|
6769
6785
|
h1: 1,
|
6770
6786
|
h2: 2,
|
6771
6787
|
h3: 3,
|
6772
6788
|
h4: 4
|
6773
|
-
}, Y1 =
|
6789
|
+
}, Y1 = u1(
|
6774
6790
|
({
|
6775
6791
|
align: i = "inherit",
|
6776
6792
|
variant: e = "body1",
|
@@ -6827,7 +6843,7 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6827
6843
|
children: /* @__PURE__ */ n("div", { className: "wrapper", children: i })
|
6828
6844
|
}
|
6829
6845
|
);
|
6830
|
-
},
|
6846
|
+
}, _5 = ({
|
6831
6847
|
values: i,
|
6832
6848
|
onTagClose: e,
|
6833
6849
|
maxWidth: t,
|
@@ -6853,7 +6869,7 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6853
6869
|
{
|
6854
6870
|
content: (
|
6855
6871
|
// 90: paddings + margins + gaps and so on
|
6856
|
-
/* @__PURE__ */ n("div", { style: { maxWidth: t - 90 }, children: /* @__PURE__ */ n(
|
6872
|
+
/* @__PURE__ */ n("div", { style: { maxWidth: t - 90 }, children: /* @__PURE__ */ n(h1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: a }) => /* @__PURE__ */ n(
|
6857
6873
|
F1,
|
6858
6874
|
{
|
6859
6875
|
onClose: () => e(a),
|
@@ -6866,13 +6882,13 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6866
6882
|
placement: "bottomRight",
|
6867
6883
|
isOpen: c,
|
6868
6884
|
setIsOpen: r,
|
6869
|
-
children: /* @__PURE__ */ n(
|
6885
|
+
children: /* @__PURE__ */ n(G1, { className: `overflow-button ${c ? "open" : ""}`, bordered: !1, children: /* @__PURE__ */ C(Y1, { variant: "body4", color: c ? z.BLUE_PRIMARY : void 0, children: [
|
6870
6886
|
i.length,
|
6871
6887
|
" more"
|
6872
6888
|
] }) })
|
6873
6889
|
}
|
6874
6890
|
) });
|
6875
|
-
},
|
6891
|
+
}, y1 = ({ size: i = 30, color: e = "#004ed7" }) => {
|
6876
6892
|
const t = `no-repeat linear-gradient(${e}
|
6877
6893
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
6878
6894
|
width: i,
|
@@ -6880,7 +6896,7 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6880
6896
|
backgroundSize: "20% calc(200% + 20px)"
|
6881
6897
|
};
|
6882
6898
|
return /* @__PURE__ */ n("span", { className: "snmt-loader", style: s });
|
6883
|
-
},
|
6899
|
+
}, H5 = u1(
|
6884
6900
|
({
|
6885
6901
|
value: i,
|
6886
6902
|
onChange: e,
|
@@ -6904,19 +6920,19 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6904
6920
|
isLoading: b,
|
6905
6921
|
readOnly: f
|
6906
6922
|
}, x) => {
|
6907
|
-
const [y, M] = S(!1), [T,
|
6923
|
+
const [y, M] = S(!1), [T, n1] = S(!1), [Q, W] = S(!0), [O, q] = S(i), D = x1(null);
|
6908
6924
|
B(() => {
|
6909
6925
|
q(i);
|
6910
6926
|
}, [i]);
|
6911
6927
|
const G = (w) => {
|
6912
6928
|
M(w), u && u(w);
|
6913
|
-
}, F = (w,
|
6929
|
+
}, F = (w, _) => {
|
6914
6930
|
var A;
|
6915
|
-
return !!((A =
|
6916
|
-
},
|
6917
|
-
|
6931
|
+
return !!((A = _ == null ? void 0 : _.label) != null && A.toString().toLowerCase().includes(w.toLowerCase()));
|
6932
|
+
}, r1 = () => {
|
6933
|
+
n1(!0);
|
6918
6934
|
}, V = () => {
|
6919
|
-
|
6935
|
+
n1(!1);
|
6920
6936
|
}, I = j(
|
6921
6937
|
(w) => {
|
6922
6938
|
if (q(w), s) {
|
@@ -6924,8 +6940,8 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6924
6940
|
e == null || e(A);
|
6925
6941
|
return;
|
6926
6942
|
}
|
6927
|
-
const
|
6928
|
-
e == null || e(
|
6943
|
+
const _ = w;
|
6944
|
+
e == null || e(_);
|
6929
6945
|
},
|
6930
6946
|
[s, e]
|
6931
6947
|
), K = j(() => {
|
@@ -6938,11 +6954,11 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6938
6954
|
}
|
6939
6955
|
}, [I, s, f]), P = j(
|
6940
6956
|
(w) => {
|
6941
|
-
const
|
6942
|
-
I(
|
6957
|
+
const _ = O.filter((A) => A !== w);
|
6958
|
+
I(_), q(_);
|
6943
6959
|
},
|
6944
6960
|
[I, O]
|
6945
|
-
),
|
6961
|
+
), R1 = j(
|
6946
6962
|
(w) => (O == null ? void 0 : O.indexOf(w)) === 0 ? (
|
6947
6963
|
// if the search input is empty
|
6948
6964
|
// then display the placeholder, else do not display it
|
@@ -6952,25 +6968,25 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6952
6968
|
), X1 = (w) => {
|
6953
6969
|
w.preventDefault(), w.stopPropagation();
|
6954
6970
|
}, ee = async (w) => {
|
6955
|
-
const { target:
|
6956
|
-
|
6957
|
-
},
|
6971
|
+
const { target: _ } = w;
|
6972
|
+
_.scrollTop + _.offsetHeight >= _.scrollHeight - a && (p == null || p(!0)), m && await m(w);
|
6973
|
+
}, f1 = j(
|
6958
6974
|
(w) => {
|
6959
|
-
var
|
6960
|
-
return ((
|
6961
|
-
(
|
6975
|
+
var _, A;
|
6976
|
+
return ((_ = l.find((w1) => w1.value === w)) == null ? void 0 : _.label) || ((A = v == null ? void 0 : v.find(
|
6977
|
+
(w1) => w1.value === w
|
6962
6978
|
)) == null ? void 0 : A.label) || w;
|
6963
6979
|
},
|
6964
6980
|
[v, l]
|
6965
6981
|
), te = j(
|
6966
6982
|
(w) => {
|
6967
|
-
var
|
6983
|
+
var _;
|
6968
6984
|
return /* @__PURE__ */ n(
|
6969
|
-
|
6985
|
+
_5,
|
6970
6986
|
{
|
6971
6987
|
values: w,
|
6972
6988
|
onTagClose: P,
|
6973
|
-
maxWidth: ((
|
6989
|
+
maxWidth: ((_ = D.current) == null ? void 0 : _.clientWidth) || 0,
|
6974
6990
|
disabled: r || f,
|
6975
6991
|
options: l,
|
6976
6992
|
extraOptions: v
|
@@ -6979,8 +6995,8 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6979
6995
|
},
|
6980
6996
|
[r, v, P, l, f]
|
6981
6997
|
), ie = j(
|
6982
|
-
({ label: w, value:
|
6983
|
-
[r,
|
6998
|
+
({ label: w, value: _, mode: A }) => A === "filter" ? R1(_) : /* @__PURE__ */ n("div", { onMouseDown: X1, className: "tag-wrapper", children: /* @__PURE__ */ n(F1, { onClose: () => P(_), closable: !r, children: /* @__PURE__ */ n(Y1, { variant: "body4", children: typeof w == "object" ? w : f1(_) }) }) }),
|
6999
|
+
[r, f1, P, R1]
|
6984
7000
|
);
|
6985
7001
|
return /* @__PURE__ */ C(
|
6986
7002
|
"div",
|
@@ -7003,10 +7019,10 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
7003
7019
|
placeholder: t ? d ? `${t}*` : t : void 0,
|
7004
7020
|
disabled: r,
|
7005
7021
|
value: O || void 0,
|
7006
|
-
labelRender: (w) =>
|
7022
|
+
labelRender: (w) => f1(w.value),
|
7007
7023
|
mode: s === "filter" ? "multiple" : s,
|
7008
7024
|
onChange: I,
|
7009
|
-
onFocus:
|
7025
|
+
onFocus: r1,
|
7010
7026
|
onBlur: V,
|
7011
7027
|
onSearch: (w) => {
|
7012
7028
|
W(!w), h && h(w);
|
@@ -7017,11 +7033,11 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
7017
7033
|
maxTagCount: "responsive",
|
7018
7034
|
maxTagPlaceholder: te,
|
7019
7035
|
onPopupScroll: ee,
|
7020
|
-
prefix: b && /* @__PURE__ */ n(
|
7036
|
+
prefix: b && /* @__PURE__ */ n(y1, { size: 15 }),
|
7021
7037
|
suffixIcon: /* @__PURE__ */ n("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(J, { children: [
|
7022
|
-
O && !!O.length && (s || g) && /* @__PURE__ */ n("div", { onClick: K, children: /* @__PURE__ */ n(
|
7038
|
+
O && !!O.length && (s || g) && /* @__PURE__ */ n("div", { onClick: K, children: /* @__PURE__ */ n(l1, { name: "cancel" }) }),
|
7023
7039
|
/* @__PURE__ */ n(
|
7024
|
-
|
7040
|
+
l1,
|
7025
7041
|
{
|
7026
7042
|
name: "selectArrowIcon",
|
7027
7043
|
color: r ? z.GREY_DARK_1 : z.GREY_DARK_5,
|
@@ -7030,23 +7046,23 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
7030
7046
|
}
|
7031
7047
|
)
|
7032
7048
|
] }) }),
|
7033
|
-
removeIcon: /* @__PURE__ */ n(
|
7049
|
+
removeIcon: /* @__PURE__ */ n(l1, { name: "errorSmall", color: z.GREY_DARK_2 }),
|
7034
7050
|
options: l,
|
7035
|
-
optionRender: (w) => R ? R(w.data) : /* @__PURE__ */ C(
|
7036
|
-
/* @__PURE__ */ C(
|
7051
|
+
optionRender: (w) => R ? R(w.data) : /* @__PURE__ */ C(h1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
7052
|
+
/* @__PURE__ */ C(h1, { alignItems: "center", gap: 12, children: [
|
7037
7053
|
s && /* @__PURE__ */ n(
|
7038
7054
|
ge,
|
7039
7055
|
{
|
7040
7056
|
checked: !!(O != null && O.includes(w.value))
|
7041
7057
|
}
|
7042
7058
|
),
|
7043
|
-
/* @__PURE__ */ C(
|
7059
|
+
/* @__PURE__ */ C(h1, { alignItems: "center", gap: 8, children: [
|
7044
7060
|
w.data.image && /* @__PURE__ */ n(de, { src: w.data.image, size: 20 }),
|
7045
7061
|
/* @__PURE__ */ n("span", { children: w.label })
|
7046
7062
|
] })
|
7047
7063
|
] }),
|
7048
7064
|
!s && O === w.value && /* @__PURE__ */ n(
|
7049
|
-
|
7065
|
+
l1,
|
7050
7066
|
{
|
7051
7067
|
name: "ok",
|
7052
7068
|
color: z.BLUE_PRIMARY,
|
@@ -7063,7 +7079,7 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
7063
7079
|
display: "grid",
|
7064
7080
|
justifyContent: "center"
|
7065
7081
|
},
|
7066
|
-
children: /* @__PURE__ */ n(
|
7082
|
+
children: /* @__PURE__ */ n(y1, { size: 28 })
|
7067
7083
|
}
|
7068
7084
|
) : (w) => E ? E(w) : w
|
7069
7085
|
}
|
@@ -7097,7 +7113,7 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
7097
7113
|
console && console[i] && console[i].apply(console, e);
|
7098
7114
|
}
|
7099
7115
|
};
|
7100
|
-
class
|
7116
|
+
class c1 {
|
7101
7117
|
constructor(e) {
|
7102
7118
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7103
7119
|
this.init(e, t);
|
@@ -7130,17 +7146,17 @@ class h1 {
|
|
7130
7146
|
return o && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
|
7131
7147
|
}
|
7132
7148
|
create(e) {
|
7133
|
-
return new
|
7149
|
+
return new c1(this.logger, {
|
7134
7150
|
prefix: `${this.prefix}:${e}:`,
|
7135
7151
|
...this.options
|
7136
7152
|
});
|
7137
7153
|
}
|
7138
7154
|
clone(e) {
|
7139
|
-
return e = e || this.options, e.prefix = e.prefix || this.prefix, new
|
7155
|
+
return e = e || this.options, e.prefix = e.prefix || this.prefix, new c1(this.logger, e);
|
7140
7156
|
}
|
7141
7157
|
}
|
7142
|
-
var Z = new
|
7143
|
-
class
|
7158
|
+
var Z = new c1();
|
7159
|
+
class p1 {
|
7144
7160
|
constructor() {
|
7145
7161
|
this.observers = {};
|
7146
7162
|
}
|
@@ -7180,51 +7196,51 @@ const X = () => {
|
|
7180
7196
|
i = s, e = o;
|
7181
7197
|
});
|
7182
7198
|
return t.resolve = i, t.reject = e, t;
|
7183
|
-
},
|
7199
|
+
}, b1 = (i) => i == null ? "" : "" + i, I5 = (i, e, t) => {
|
7184
7200
|
i.forEach((s) => {
|
7185
7201
|
e[s] && (t[s] = e[s]);
|
7186
7202
|
});
|
7187
|
-
}, S5 = /###/g,
|
7203
|
+
}, S5 = /###/g, E1 = (i) => i && i.indexOf("###") > -1 ? i.replace(S5, ".") : i, _1 = (i) => !i || typeof i == "string", t1 = (i, e, t) => {
|
7188
7204
|
const s = typeof e != "string" ? e : e.split(".");
|
7189
7205
|
let o = 0;
|
7190
7206
|
for (; o < s.length - 1; ) {
|
7191
|
-
if (
|
7192
|
-
const l =
|
7207
|
+
if (_1(i)) return {};
|
7208
|
+
const l = E1(s[o]);
|
7193
7209
|
!i[l] && t && (i[l] = new t()), Object.prototype.hasOwnProperty.call(i, l) ? i = i[l] : i = {}, ++o;
|
7194
7210
|
}
|
7195
|
-
return
|
7211
|
+
return _1(i) ? {} : {
|
7196
7212
|
obj: i,
|
7197
|
-
k:
|
7213
|
+
k: E1(s[o])
|
7198
7214
|
};
|
7199
7215
|
}, H1 = (i, e, t) => {
|
7200
7216
|
const {
|
7201
7217
|
obj: s,
|
7202
7218
|
k: o
|
7203
|
-
} =
|
7219
|
+
} = t1(i, e, Object);
|
7204
7220
|
if (s !== void 0 || e.length === 1) {
|
7205
7221
|
s[o] = t;
|
7206
7222
|
return;
|
7207
7223
|
}
|
7208
|
-
let l = e[e.length - 1], c = e.slice(0, e.length - 1), r =
|
7224
|
+
let l = e[e.length - 1], c = e.slice(0, e.length - 1), r = t1(i, c, Object);
|
7209
7225
|
for (; r.obj === void 0 && c.length; )
|
7210
|
-
l = `${c[c.length - 1]}.${l}`, c = c.slice(0, c.length - 1), r =
|
7226
|
+
l = `${c[c.length - 1]}.${l}`, c = c.slice(0, c.length - 1), r = t1(i, c, Object), r && r.obj && typeof r.obj[`${r.k}.${l}`] < "u" && (r.obj = void 0);
|
7211
7227
|
r.obj[`${r.k}.${l}`] = t;
|
7212
7228
|
}, O5 = (i, e, t, s) => {
|
7213
7229
|
const {
|
7214
7230
|
obj: o,
|
7215
7231
|
k: l
|
7216
|
-
} =
|
7232
|
+
} = t1(i, e, Object);
|
7217
7233
|
o[l] = o[l] || [], o[l].push(t);
|
7218
|
-
},
|
7234
|
+
}, d1 = (i, e) => {
|
7219
7235
|
const {
|
7220
7236
|
obj: t,
|
7221
7237
|
k: s
|
7222
|
-
} =
|
7238
|
+
} = t1(i, e);
|
7223
7239
|
if (t)
|
7224
7240
|
return t[s];
|
7225
7241
|
}, A5 = (i, e, t) => {
|
7226
|
-
const s =
|
7227
|
-
return s !== void 0 ? s :
|
7242
|
+
const s = d1(i, t);
|
7243
|
+
return s !== void 0 ? s : d1(e, t);
|
7228
7244
|
}, U1 = (i, e, t) => {
|
7229
7245
|
for (const s in e)
|
7230
7246
|
s !== "__proto__" && s !== "constructor" && (s in i ? typeof i[s] == "string" || i[s] instanceof String || typeof e[s] == "string" || e[s] instanceof String ? t && (i[s] = e[s]) : U1(i[s], e[s], t) : i[s] = e[s]);
|
@@ -7262,7 +7278,7 @@ const j5 = [" ", ",", "?", "!", ";"], D5 = new W5(20), T5 = (i, e, t) => {
|
|
7262
7278
|
c > 0 && !o.test(i.substring(0, c)) && (l = !0);
|
7263
7279
|
}
|
7264
7280
|
return l;
|
7265
|
-
},
|
7281
|
+
}, L1 = function(i, e) {
|
7266
7282
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
7267
7283
|
if (!i) return;
|
7268
7284
|
if (i[e]) return i[e];
|
@@ -7282,8 +7298,8 @@ const j5 = [" ", ",", "?", "!", ";"], D5 = new W5(20), T5 = (i, e, t) => {
|
|
7282
7298
|
o = c;
|
7283
7299
|
}
|
7284
7300
|
return o;
|
7285
|
-
},
|
7286
|
-
class
|
7301
|
+
}, g1 = (i) => i && i.indexOf("_") > 0 ? i.replace("_", "-") : i;
|
7302
|
+
class V1 extends p1 {
|
7287
7303
|
constructor(e) {
|
7288
7304
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
7289
7305
|
ns: ["translation"],
|
@@ -7303,8 +7319,8 @@ class _1 extends u1 {
|
|
7303
7319
|
const l = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator, c = o.ignoreJSONStructure !== void 0 ? o.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
7304
7320
|
let r;
|
7305
7321
|
e.indexOf(".") > -1 ? r = e.split(".") : (r = [e, t], s && (Array.isArray(s) ? r.push(...s) : typeof s == "string" && l ? r.push(...s.split(l)) : r.push(s)));
|
7306
|
-
const d =
|
7307
|
-
return !d && !t && !s && e.indexOf(".") > -1 && (e = r[0], t = r[1], s = r.slice(2).join(".")), d || !c || typeof s != "string" ? d :
|
7322
|
+
const d = d1(this.data, r);
|
7323
|
+
return !d && !t && !s && e.indexOf(".") > -1 && (e = r[0], t = r[1], s = r.slice(2).join(".")), d || !c || typeof s != "string" ? d : L1(this.data && this.data[e] && this.data[e][t], s, l);
|
7308
7324
|
}
|
7309
7325
|
addResource(e, t, s, o) {
|
7310
7326
|
let l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
@@ -7330,7 +7346,7 @@ class _1 extends u1 {
|
|
7330
7346
|
skipCopy: !1
|
7331
7347
|
}, r = [e, t];
|
7332
7348
|
e.indexOf(".") > -1 && (r = e.split("."), o = s, s = t, t = r[1]), this.addNamespaces(t);
|
7333
|
-
let d =
|
7349
|
+
let d = d1(this.data, r) || {};
|
7334
7350
|
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), o ? U1(d, s, l) : d = {
|
7335
7351
|
...d,
|
7336
7352
|
...s
|
@@ -7369,8 +7385,8 @@ var z1 = {
|
|
7369
7385
|
}), e;
|
7370
7386
|
}
|
7371
7387
|
};
|
7372
|
-
const
|
7373
|
-
class
|
7388
|
+
const I1 = {};
|
7389
|
+
class C1 extends p1 {
|
7374
7390
|
constructor(e) {
|
7375
7391
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7376
7392
|
super(), I5(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Z.create("translator");
|
@@ -7467,9 +7483,9 @@ class g1 extends u1 {
|
|
7467
7483
|
u = u.join(E), u && (u = this.extendTranslation(u, e, t, s));
|
7468
7484
|
else {
|
7469
7485
|
let f = !1, x = !1;
|
7470
|
-
const y = t.count !== void 0 && typeof t.count != "string", M =
|
7486
|
+
const y = t.count !== void 0 && typeof t.count != "string", M = C1.hasDefaultValue(t), T = y ? this.pluralResolver.getSuffix(g, t.count, t) : "", n1 = t.ordinal && y ? this.pluralResolver.getSuffix(g, t.count, {
|
7471
7487
|
ordinal: !1
|
7472
|
-
}) : "", Q = y && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), W = Q && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${T}`] || t[`defaultValue${
|
7488
|
+
}) : "", Q = y && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), W = Q && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${T}`] || t[`defaultValue${n1}`] || t.defaultValue;
|
7473
7489
|
!this.isValidLookup(u) && M && (f = !0, u = W), this.isValidLookup(u) || (x = !0, u = c);
|
7474
7490
|
const q = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && x ? void 0 : u, D = M && W !== u && this.options.updateMissing;
|
7475
7491
|
if (x || f || D) {
|
@@ -7486,16 +7502,16 @@ class g1 extends u1 {
|
|
7486
7502
|
for (let V = 0; V < F.length; V++)
|
7487
7503
|
G.push(F[V]);
|
7488
7504
|
else this.options.saveMissingTo === "all" ? G = this.languageUtils.toResolveHierarchy(t.lng || this.language) : G.push(t.lng || this.language);
|
7489
|
-
const
|
7505
|
+
const r1 = (V, I, K) => {
|
7490
7506
|
const P = M && K !== u ? K : q;
|
7491
7507
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(V, d, I, P, D, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(V, d, I, P, D, t), this.emit("missingKey", V, d, I, u);
|
7492
7508
|
};
|
7493
7509
|
this.options.saveMissing && (this.options.saveMissingPlurals && y ? G.forEach((V) => {
|
7494
7510
|
const I = this.pluralResolver.getSuffixes(V, t);
|
7495
7511
|
Q && t[`defaultValue${this.options.pluralSeparator}zero`] && I.indexOf(`${this.options.pluralSeparator}zero`) < 0 && I.push(`${this.options.pluralSeparator}zero`), I.forEach((K) => {
|
7496
|
-
|
7512
|
+
r1([V], c + K, t[`defaultValue${K}`] || W);
|
7497
7513
|
});
|
7498
|
-
}) :
|
7514
|
+
}) : r1(G, c, W));
|
7499
7515
|
}
|
7500
7516
|
u = this.extendTranslation(u, e, t, h, s), x && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (x || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, f ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
|
7501
7517
|
}
|
@@ -7557,7 +7573,7 @@ class g1 extends u1 {
|
|
7557
7573
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
7558
7574
|
const u = t.count !== void 0 && typeof t.count != "string", p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), m = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", N = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
7559
7575
|
h.forEach((v) => {
|
7560
|
-
this.isValidLookup(s) || (r = v, !
|
7576
|
+
this.isValidLookup(s) || (r = v, !I1[`${N[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(r) && (I1[`${N[0]}-${v}`] = !0, this.logger.warn(`key "${o}" for languages "${N.join(", ")}" won't get resolved as namespace "${r}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), N.forEach((E) => {
|
7561
7577
|
if (this.isValidLookup(s)) return;
|
7562
7578
|
c = E;
|
7563
7579
|
const R = [a];
|
@@ -7616,18 +7632,18 @@ class g1 extends u1 {
|
|
7616
7632
|
return !1;
|
7617
7633
|
}
|
7618
7634
|
}
|
7619
|
-
const
|
7620
|
-
class
|
7635
|
+
const m1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
7636
|
+
class S1 {
|
7621
7637
|
constructor(e) {
|
7622
7638
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Z.create("languageUtils");
|
7623
7639
|
}
|
7624
7640
|
getScriptPartFromCode(e) {
|
7625
|
-
if (e =
|
7641
|
+
if (e = g1(e), !e || e.indexOf("-") < 0) return null;
|
7626
7642
|
const t = e.split("-");
|
7627
7643
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
7628
7644
|
}
|
7629
7645
|
getLanguagePartFromCode(e) {
|
7630
|
-
if (e =
|
7646
|
+
if (e = g1(e), !e || e.indexOf("-") < 0) return e;
|
7631
7647
|
const t = e.split("-");
|
7632
7648
|
return this.formatLanguageCode(t[0]);
|
7633
7649
|
}
|
@@ -7635,7 +7651,7 @@ class I1 {
|
|
7635
7651
|
if (typeof e == "string" && e.indexOf("-") > -1) {
|
7636
7652
|
const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
7637
7653
|
let s = e.split("-");
|
7638
|
-
return this.options.lowerCaseLng ? s = s.map((o) => o.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] =
|
7654
|
+
return this.options.lowerCaseLng ? s = s.map((o) => o.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = m1(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = m1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = m1(s[2].toLowerCase()))), s.join("-");
|
7639
7655
|
}
|
7640
7656
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
7641
7657
|
}
|
@@ -7792,7 +7808,7 @@ let G5 = [{
|
|
7792
7808
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
7793
7809
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
7794
7810
|
};
|
7795
|
-
const P5 = ["v1", "v2", "v3"], $5 = ["v4"],
|
7811
|
+
const P5 = ["v1", "v2", "v3"], $5 = ["v4"], O1 = {
|
7796
7812
|
zero: 0,
|
7797
7813
|
one: 1,
|
7798
7814
|
two: 2,
|
@@ -7825,7 +7841,7 @@ class Y5 {
|
|
7825
7841
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7826
7842
|
if (this.shouldUseIntlApi())
|
7827
7843
|
try {
|
7828
|
-
const s =
|
7844
|
+
const s = g1(e === "dev" ? "en" : e), o = t.ordinal ? "ordinal" : "cardinal", l = JSON.stringify({
|
7829
7845
|
cleanedCode: s,
|
7830
7846
|
type: o
|
7831
7847
|
});
|
@@ -7852,7 +7868,7 @@ class Y5 {
|
|
7852
7868
|
getSuffixes(e) {
|
7853
7869
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7854
7870
|
const s = this.getRule(e, t);
|
7855
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((o, l) =>
|
7871
|
+
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((o, l) => O1[o] - O1[l]).map((o) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${o}`) : s.numbers.map((o) => this.getSuffix(e, o, t)) : [];
|
7856
7872
|
}
|
7857
7873
|
getSuffix(e, t) {
|
7858
7874
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
@@ -7870,10 +7886,10 @@ class Y5 {
|
|
7870
7886
|
return !P5.includes(this.options.compatibilityJSON);
|
7871
7887
|
}
|
7872
7888
|
}
|
7873
|
-
const
|
7889
|
+
const A1 = function(i, e, t) {
|
7874
7890
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l = A5(i, e, t);
|
7875
|
-
return !l && o && typeof t == "string" && (l =
|
7876
|
-
},
|
7891
|
+
return !l && o && typeof t == "string" && (l = L1(i, t, s), l === void 0 && (l = L1(e, t, s))), l;
|
7892
|
+
}, k1 = (i) => i.replace(/\$/g, "$$$$");
|
7877
7893
|
class U5 {
|
7878
7894
|
constructor() {
|
7879
7895
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
@@ -7916,7 +7932,7 @@ class U5 {
|
|
7916
7932
|
let l, c, r;
|
7917
7933
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
|
7918
7934
|
if (p.indexOf(this.formatSeparator) < 0) {
|
7919
|
-
const E =
|
7935
|
+
const E = A1(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
7920
7936
|
return this.alwaysFormat ? this.format(E, void 0, s, {
|
7921
7937
|
...o,
|
7922
7938
|
...t,
|
@@ -7924,7 +7940,7 @@ class U5 {
|
|
7924
7940
|
}) : E;
|
7925
7941
|
}
|
7926
7942
|
const m = p.split(this.formatSeparator), N = m.shift().trim(), v = m.join(this.formatSeparator).trim();
|
7927
|
-
return this.format(
|
7943
|
+
return this.format(A1(t, d, N, this.options.keySeparator, this.options.ignoreJSONStructure), v, s, {
|
7928
7944
|
...o,
|
7929
7945
|
...t,
|
7930
7946
|
interpolationkey: N
|
@@ -7934,10 +7950,10 @@ class U5 {
|
|
7934
7950
|
const a = o && o.missingInterpolationHandler || this.options.missingInterpolationHandler, h = o && o.interpolation && o.interpolation.skipOnVariables !== void 0 ? o.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
7935
7951
|
return [{
|
7936
7952
|
regex: this.regexpUnescape,
|
7937
|
-
safeValue: (p) =>
|
7953
|
+
safeValue: (p) => k1(p)
|
7938
7954
|
}, {
|
7939
7955
|
regex: this.regexp,
|
7940
|
-
safeValue: (p) => this.escapeValue ?
|
7956
|
+
safeValue: (p) => this.escapeValue ? k1(this.escape(p)) : k1(p)
|
7941
7957
|
}].forEach((p) => {
|
7942
7958
|
for (r = 0; l = p.regex.exec(e); ) {
|
7943
7959
|
const m = l[1].trim();
|
@@ -7952,7 +7968,7 @@ class U5 {
|
|
7952
7968
|
continue;
|
7953
7969
|
} else
|
7954
7970
|
this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`), c = "";
|
7955
|
-
else typeof c != "string" && !this.useRawValueToEscape && (c =
|
7971
|
+
else typeof c != "string" && !this.useRawValueToEscape && (c = b1(c));
|
7956
7972
|
const N = p.safeValue(c);
|
7957
7973
|
if (e = e.replace(l[0], N), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= l[0].length) : p.regex.lastIndex = 0, r++, r >= this.maxReplaces)
|
7958
7974
|
break;
|
@@ -7990,7 +8006,7 @@ class U5 {
|
|
7990
8006
|
o[1] = a.shift(), d = a, g = !0;
|
7991
8007
|
}
|
7992
8008
|
if (l = t(r.call(this, o[1].trim(), c), c), l && o[0] === e && typeof l != "string") return l;
|
7993
|
-
typeof l != "string" && (l =
|
8009
|
+
typeof l != "string" && (l = b1(l)), l || (this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`), l = ""), g && (l = d.reduce((a, h) => this.format(a, h, s.lng, {
|
7994
8010
|
...s,
|
7995
8011
|
interpolationkey: o[1].trim()
|
7996
8012
|
}), l.trim())), e = e.replace(o[0], l), this.regexp.lastIndex = 0;
|
@@ -8026,7 +8042,7 @@ const z5 = (i) => {
|
|
8026
8042
|
});
|
8027
8043
|
const c = s + JSON.stringify(l);
|
8028
8044
|
let r = e[c];
|
8029
|
-
return r || (r = i(
|
8045
|
+
return r || (r = i(g1(s), o), e[c] = r), r(t);
|
8030
8046
|
};
|
8031
8047
|
};
|
8032
8048
|
class J5 {
|
@@ -8112,7 +8128,7 @@ class J5 {
|
|
8112
8128
|
const Q5 = (i, e) => {
|
8113
8129
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
8114
8130
|
};
|
8115
|
-
class q5 extends
|
8131
|
+
class q5 extends p1 {
|
8116
8132
|
constructor(e, t, s) {
|
8117
8133
|
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
8118
8134
|
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = o, this.logger = Z.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = o.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5, this.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, o.backend, o);
|
@@ -8247,7 +8263,7 @@ class q5 extends u1 {
|
|
8247
8263
|
}
|
8248
8264
|
}
|
8249
8265
|
}
|
8250
|
-
const
|
8266
|
+
const B1 = () => ({
|
8251
8267
|
debug: !1,
|
8252
8268
|
initImmediate: !0,
|
8253
8269
|
ns: ["translation"],
|
@@ -8303,16 +8319,16 @@ const A1 = () => ({
|
|
8303
8319
|
maxReplaces: 1e3,
|
8304
8320
|
skipOnVariables: !0
|
8305
8321
|
}
|
8306
|
-
}),
|
8322
|
+
}), Z1 = (i) => (typeof i.ns == "string" && (i.ns = [i.ns]), typeof i.fallbackLng == "string" && (i.fallbackLng = [i.fallbackLng]), typeof i.fallbackNS == "string" && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), a1 = () => {
|
8307
8323
|
}, X5 = (i) => {
|
8308
8324
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
8309
8325
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
8310
8326
|
});
|
8311
8327
|
};
|
8312
|
-
class
|
8328
|
+
class i1 extends p1 {
|
8313
8329
|
constructor() {
|
8314
8330
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
8315
|
-
if (super(), this.options =
|
8331
|
+
if (super(), this.options = Z1(e), this.services = {}, this.logger = Z, this.modules = {
|
8316
8332
|
external: []
|
8317
8333
|
}, X5(this), t && !this.isInitialized && !e.isClone) {
|
8318
8334
|
if (!this.options.initImmediate)
|
@@ -8326,11 +8342,11 @@ class t1 extends u1 {
|
|
8326
8342
|
var e = this;
|
8327
8343
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
|
8328
8344
|
this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (typeof t.ns == "string" ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
|
8329
|
-
const o =
|
8345
|
+
const o = B1();
|
8330
8346
|
this.options = {
|
8331
8347
|
...o,
|
8332
8348
|
...this.options,
|
8333
|
-
...
|
8349
|
+
...Z1(t)
|
8334
8350
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
8335
8351
|
...o.interpolation,
|
8336
8352
|
...this.options.interpolation
|
@@ -8340,8 +8356,8 @@ class t1 extends u1 {
|
|
8340
8356
|
this.modules.logger ? Z.init(l(this.modules.logger), this.options) : Z.init(null, this.options);
|
8341
8357
|
let a;
|
8342
8358
|
this.modules.formatter ? a = this.modules.formatter : typeof Intl < "u" && (a = J5);
|
8343
|
-
const h = new
|
8344
|
-
this.store = new
|
8359
|
+
const h = new S1(this.options);
|
8360
|
+
this.store = new V1(this.options.resources, this.options);
|
8345
8361
|
const u = this.services;
|
8346
8362
|
u.logger = Z, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new Y5(h, {
|
8347
8363
|
prepend: this.options.pluralSeparator,
|
@@ -8353,7 +8369,7 @@ class t1 extends u1 {
|
|
8353
8369
|
for (var m = arguments.length, N = new Array(m > 1 ? m - 1 : 0), v = 1; v < m; v++)
|
8354
8370
|
N[v - 1] = arguments[v];
|
8355
8371
|
e.emit(p, ...N);
|
8356
|
-
}), this.modules.languageDetector && (u.languageDetector = l(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = l(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new
|
8372
|
+
}), this.modules.languageDetector && (u.languageDetector = l(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = l(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new C1(this.services, this.options), this.translator.on("*", function(p) {
|
8357
8373
|
for (var m = arguments.length, N = new Array(m > 1 ? m - 1 : 0), v = 1; v < m; v++)
|
8358
8374
|
N[v - 1] = arguments[v];
|
8359
8375
|
e.emit(p, ...N);
|
@@ -8361,7 +8377,7 @@ class t1 extends u1 {
|
|
8361
8377
|
p.init && p.init(this);
|
8362
8378
|
});
|
8363
8379
|
}
|
8364
|
-
if (this.format = this.options.interpolation.format, s || (s =
|
8380
|
+
if (this.format = this.options.interpolation.format, s || (s = a1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
8365
8381
|
const a = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
8366
8382
|
a.length > 0 && a[0] !== "dev" && (this.options.lng = a[0]);
|
8367
8383
|
}
|
@@ -8384,7 +8400,7 @@ class t1 extends u1 {
|
|
8384
8400
|
return this.options.resources || !this.options.initImmediate ? g() : setTimeout(g, 0), d;
|
8385
8401
|
}
|
8386
8402
|
loadResources(e) {
|
8387
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
8403
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : a1;
|
8388
8404
|
const o = typeof e == "string" ? e : this.language;
|
8389
8405
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
8390
8406
|
if (o && o.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
@@ -8402,7 +8418,7 @@ class t1 extends u1 {
|
|
8402
8418
|
}
|
8403
8419
|
reloadResources(e, t, s) {
|
8404
8420
|
const o = X();
|
8405
|
-
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s =
|
8421
|
+
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = a1), this.services.backendConnector.reload(e, t, (l) => {
|
8406
8422
|
o.resolve(), s(l);
|
8407
8423
|
}), o;
|
8408
8424
|
}
|
@@ -8507,29 +8523,29 @@ class t1 extends u1 {
|
|
8507
8523
|
}
|
8508
8524
|
dir(e) {
|
8509
8525
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
|
8510
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new
|
8526
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new S1(B1());
|
8511
8527
|
return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
8512
8528
|
}
|
8513
8529
|
static createInstance() {
|
8514
8530
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
8515
|
-
return new
|
8531
|
+
return new i1(e, t);
|
8516
8532
|
}
|
8517
8533
|
cloneInstance() {
|
8518
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
8534
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : a1;
|
8519
8535
|
const s = e.forkResourceStore;
|
8520
8536
|
s && delete e.forkResourceStore;
|
8521
8537
|
const o = {
|
8522
8538
|
...this.options,
|
8523
8539
|
...e,
|
8524
8540
|
isClone: !0
|
8525
|
-
}, l = new
|
8541
|
+
}, l = new i1(o);
|
8526
8542
|
return (e.debug !== void 0 || e.prefix !== void 0) && (l.logger = l.logger.clone(e)), ["store", "services", "language"].forEach((r) => {
|
8527
8543
|
l[r] = this[r];
|
8528
8544
|
}), l.services = {
|
8529
8545
|
...this.services
|
8530
8546
|
}, l.services.utils = {
|
8531
8547
|
hasLoadedNamespace: l.hasLoadedNamespace.bind(l)
|
8532
|
-
}, s && (l.store = new
|
8548
|
+
}, s && (l.store = new V1(this.store.data, o), l.services.resourceStore = l.store), l.translator = new C1(l.services, o), l.translator.on("*", function(r) {
|
8533
8549
|
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), a = 1; a < d; a++)
|
8534
8550
|
g[a - 1] = arguments[a];
|
8535
8551
|
l.emit(r, ...g);
|
@@ -8547,22 +8563,22 @@ class t1 extends u1 {
|
|
8547
8563
|
};
|
8548
8564
|
}
|
8549
8565
|
}
|
8550
|
-
const
|
8551
|
-
|
8552
|
-
|
8553
|
-
|
8554
|
-
|
8555
|
-
|
8556
|
-
|
8557
|
-
|
8558
|
-
|
8559
|
-
|
8560
|
-
|
8561
|
-
|
8562
|
-
|
8563
|
-
|
8564
|
-
|
8565
|
-
|
8566
|
+
const H = i1.createInstance();
|
8567
|
+
H.createInstance = i1.createInstance;
|
8568
|
+
H.createInstance;
|
8569
|
+
H.dir;
|
8570
|
+
H.init;
|
8571
|
+
H.loadResources;
|
8572
|
+
H.reloadResources;
|
8573
|
+
H.use;
|
8574
|
+
H.changeLanguage;
|
8575
|
+
H.getFixedT;
|
8576
|
+
H.t;
|
8577
|
+
H.exists;
|
8578
|
+
H.setDefaultNamespace;
|
8579
|
+
H.hasLoadedNamespace;
|
8580
|
+
H.loadNamespaces;
|
8581
|
+
H.loadLanguages;
|
8566
8582
|
function e3() {
|
8567
8583
|
if (console && console.warn) {
|
8568
8584
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
@@ -8570,11 +8586,11 @@ function e3() {
|
|
8570
8586
|
$(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
8571
8587
|
}
|
8572
8588
|
}
|
8573
|
-
const
|
8574
|
-
function
|
8589
|
+
const W1 = {};
|
8590
|
+
function v1() {
|
8575
8591
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
8576
8592
|
e[t] = arguments[t];
|
8577
|
-
$(e[0]) &&
|
8593
|
+
$(e[0]) && W1[e[0]] || ($(e[0]) && (W1[e[0]] = /* @__PURE__ */ new Date()), e3(...e));
|
8578
8594
|
}
|
8579
8595
|
const J1 = (i, e) => () => {
|
8580
8596
|
if (i.isInitialized)
|
@@ -8587,9 +8603,9 @@ const J1 = (i, e) => () => {
|
|
8587
8603
|
};
|
8588
8604
|
i.on("initialized", t);
|
8589
8605
|
}
|
8590
|
-
},
|
8606
|
+
}, j1 = (i, e, t) => {
|
8591
8607
|
i.loadNamespaces(e, J1(i, t));
|
8592
|
-
},
|
8608
|
+
}, D1 = (i, e, t, s) => {
|
8593
8609
|
$(t) && (t = [t]), t.forEach((o) => {
|
8594
8610
|
i.options.ns.indexOf(o) < 0 && i.options.ns.push(o);
|
8595
8611
|
}), i.loadLanguages(e, J1(i, s));
|
@@ -8604,7 +8620,7 @@ const J1 = (i, e) => () => {
|
|
8604
8620
|
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)));
|
8605
8621
|
}, i3 = function(i, e) {
|
8606
8622
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
8607
|
-
return !e.languages || !e.languages.length ? (
|
8623
|
+
return !e.languages || !e.languages.length ? (v1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
8608
8624
|
lng: t.lng,
|
8609
8625
|
precheck: (o, l) => {
|
8610
8626
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && o.services.backendConnector.backend && o.isLanguageChangingTo && !l(o.isLanguageChangingTo, i)) return !1;
|
@@ -8632,7 +8648,7 @@ const J1 = (i, e) => () => {
|
|
8632
8648
|
"/": "/",
|
8633
8649
|
"/": "/"
|
8634
8650
|
}, r3 = (i) => n3[i], l3 = (i) => i.replace(o3, r3);
|
8635
|
-
let
|
8651
|
+
let N1 = {
|
8636
8652
|
bindI18n: "languageChanged",
|
8637
8653
|
bindI18nStore: "",
|
8638
8654
|
transEmptyNodeValue: "",
|
@@ -8644,11 +8660,11 @@ let v1 = {
|
|
8644
8660
|
};
|
8645
8661
|
const a3 = function() {
|
8646
8662
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
8647
|
-
|
8648
|
-
...
|
8663
|
+
N1 = {
|
8664
|
+
...N1,
|
8649
8665
|
...i
|
8650
8666
|
};
|
8651
|
-
}, h3 = () =>
|
8667
|
+
}, h3 = () => N1;
|
8652
8668
|
let Q1;
|
8653
8669
|
const c3 = (i) => {
|
8654
8670
|
Q1 = i;
|
@@ -8657,10 +8673,10 @@ const c3 = (i) => {
|
|
8657
8673
|
init(i) {
|
8658
8674
|
a3(i.options.react), c3(i);
|
8659
8675
|
}
|
8660
|
-
}, C3 =
|
8676
|
+
}, C3 = s1();
|
8661
8677
|
class u3 {
|
8662
8678
|
constructor() {
|
8663
|
-
|
8679
|
+
M1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
8664
8680
|
this.usedNamespaces = {};
|
8665
8681
|
}
|
8666
8682
|
addUsedNamespaces(e) {
|
@@ -8670,7 +8686,7 @@ class u3 {
|
|
8670
8686
|
}
|
8671
8687
|
}
|
8672
8688
|
const p3 = (i, e) => {
|
8673
|
-
const t =
|
8689
|
+
const t = x1();
|
8674
8690
|
return B(() => {
|
8675
8691
|
t.current = i;
|
8676
8692
|
}, [i, e]), t.current;
|
@@ -8681,13 +8697,13 @@ const p3 = (i, e) => {
|
|
8681
8697
|
} = e, {
|
8682
8698
|
i18n: s,
|
8683
8699
|
defaultNS: o
|
8684
|
-
} =
|
8700
|
+
} = o1(C3) || {}, l = t || s || d3();
|
8685
8701
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new u3()), !l) {
|
8686
|
-
|
8702
|
+
v1("You will need to pass in an i18next instance by using initReactI18next");
|
8687
8703
|
const f = (y, M) => $(M) ? M : s3(M) && $(M.defaultValue) ? M.defaultValue : Array.isArray(y) ? y[y.length - 1] : y, x = [f, {}, !1];
|
8688
8704
|
return x.t = f, x.i18n = {}, x.ready = !1, x;
|
8689
8705
|
}
|
8690
|
-
l.options.react && l.options.react.wait !== void 0 &&
|
8706
|
+
l.options.react && l.options.react.wait !== void 0 && v1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
8691
8707
|
const c = {
|
8692
8708
|
...h3(),
|
8693
8709
|
...l.options.react,
|
@@ -8701,15 +8717,15 @@ const p3 = (i, e) => {
|
|
8701
8717
|
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => i3(f, l, c)), h = f3(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => q1(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [m, N] = S(u);
|
8702
8718
|
let v = g.join();
|
8703
8719
|
e.lng && (v = `${e.lng}${v}`);
|
8704
|
-
const E = p3(v), R =
|
8720
|
+
const E = p3(v), R = x1(!0);
|
8705
8721
|
B(() => {
|
8706
8722
|
const {
|
8707
8723
|
bindI18n: f,
|
8708
8724
|
bindI18nStore: x
|
8709
8725
|
} = c;
|
8710
|
-
R.current = !0, !a && !r && (e.lng ?
|
8726
|
+
R.current = !0, !a && !r && (e.lng ? D1(l, e.lng, g, () => {
|
8711
8727
|
R.current && N(p);
|
8712
|
-
}) :
|
8728
|
+
}) : j1(l, g, () => {
|
8713
8729
|
R.current && N(p);
|
8714
8730
|
})), a && E && E !== v && R.current && N(p);
|
8715
8731
|
const y = () => {
|
@@ -8724,14 +8740,14 @@ const p3 = (i, e) => {
|
|
8724
8740
|
const b = [m, l, a];
|
8725
8741
|
if (b.t = m, b.i18n = l, b.ready = a, a || !a && !r) return b;
|
8726
8742
|
throw new Promise((f) => {
|
8727
|
-
e.lng ?
|
8743
|
+
e.lng ? D1(l, e.lng, g, () => f()) : j1(l, g, () => f());
|
8728
8744
|
});
|
8729
8745
|
}, m3 = "Country", k3 = {
|
8730
8746
|
placeholder: m3
|
8731
8747
|
}, L3 = "Страна", v3 = {
|
8732
8748
|
placeholder: L3
|
8733
8749
|
};
|
8734
|
-
|
8750
|
+
H.use(g3).init({
|
8735
8751
|
defaultNS: "common",
|
8736
8752
|
lng: "en",
|
8737
8753
|
resources: {
|
@@ -8743,9 +8759,9 @@ _.use(g3).init({
|
|
8743
8759
|
}
|
8744
8760
|
}
|
8745
8761
|
});
|
8746
|
-
const
|
8762
|
+
const _3 = u1(
|
8747
8763
|
({ width: i, selectedCity: e, setSelectedCity: t, onChange: s, value: o, id: l, disabled: c }, r) => {
|
8748
|
-
const [d, g] = S([]), [a, h] = S([]), [u, p] = S(!1), { locale: m, axiosPeople: N } =
|
8764
|
+
const [d, g] = S([]), [a, h] = S([]), [u, p] = S(!1), { locale: m, axiosPeople: N } = o1(ne);
|
8749
8765
|
if (!N)
|
8750
8766
|
throw new Error(
|
8751
8767
|
`CountrySelect requires "axiosPeople" to fetch counties.
|
@@ -8788,7 +8804,7 @@ const H3 = C1(
|
|
8788
8804
|
b === null ? (s(""), t && t("")) : (s(b), t && t(""));
|
8789
8805
|
};
|
8790
8806
|
return /* @__PURE__ */ n("div", { className: "snmt-country-select", children: /* @__PURE__ */ n(
|
8791
|
-
|
8807
|
+
H5,
|
8792
8808
|
{
|
8793
8809
|
id: l,
|
8794
8810
|
width: i,
|
@@ -8804,5 +8820,5 @@ const H3 = C1(
|
|
8804
8820
|
}
|
8805
8821
|
);
|
8806
8822
|
export {
|
8807
|
-
|
8823
|
+
_3 as CountrySelect
|
8808
8824
|
};
|
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 .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}.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-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}.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}.overflow-button{width:fit-content;display:flex;align-items:center;border:none;margin-inline-end:3px;padding:2px 6px;height:20px;cursor:pointer;background:var(--grey-light-2)}.overflow-button:hover{background:var(--blue-light-1)}.overflow-button.open{background:var(--blue-light-2)}.snmt-popover{z-index:1050!important}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select{width:100%;position:relative;height:48px}.snmt-select .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select .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 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select .ant-select-selection-placeholder{font-size:16px!important;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left!important}.snmt-select .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select .ant-select-disabled .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select .ant-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select .ant-select-single .ant-select-selection-item img{display:none}.snmt-select .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select .ant-select-multiple .ant-select-selection-placeholder{inset-inline-start:0px;inset-inline-end:16px}.snmt-select .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select .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 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select .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 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select .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 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid;border-color:var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select fieldset>legend>span{padding:0 5px;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-focused{border-color:var(--blue-primary)!important;border-width:2px}.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-read-only .ant-select-selection-item,.snmt-select-read-only .ant-select-selection-placeholder{color:var(--grey-dark-1)!important}.snmt-select:not(.ant-select-disabled):not(.snmt-select-error):not(.snmt-select-focused):hover fieldset{border-color:var(--blue-dark-1)!important;color:var(--blue-dark-1)!important;box-shadow:none!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.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 .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-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.rc-virtual-list-scrollbar.rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.snmt-select-single{height:48px}.snmt-select-single .ant-select-item-option-state{display:block}.fieldset-focused>legend,.fieldset-disabled>legend,.fieldset-filled>legend{max-width:100%!important}.fieldset-focused>legend>span,.fieldset-disabled>legend>span,.fieldset-filled>legend>span{opacity:1!important}.fieldset-focused{border-color:var(--blue-primary)!important;color:var(--blue-primary)!important;border-width:2px!important}.fieldset-disabled{border:none!important;color:var(--grey-dark-1)}.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-light-4)}.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-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}.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}.overflow-button{width:fit-content;display:flex;align-items:center;border:none;margin-inline-end:3px;padding:2px 6px;height:20px;cursor:pointer;background:var(--grey-light-2)}.overflow-button:hover{background:var(--blue-light-1)}.overflow-button.open{background:var(--blue-light-2)}.snmt-popover{z-index:1050!important}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select .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 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select .ant-select-selection-placeholder{font-size:16px!important;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left!important}.snmt-select .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select .ant-select-disabled .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select .ant-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select .ant-select-single .ant-select-selection-item img{display:none}.snmt-select .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select .ant-select-multiple .ant-select-selection-placeholder{inset-inline-start:0px;inset-inline-end:16px}.snmt-select .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select .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 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select .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 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select .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 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid;border-color:var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select fieldset>legend>span{padding:0 5px;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-focused{border-color:var(--blue-primary)!important;border-width:2px}.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-read-only .ant-select-selection-item,.snmt-select-read-only .ant-select-selection-placeholder{color:var(--grey-dark-1)!important}.snmt-select:not(.ant-select-disabled):not(.snmt-select-error):not(.snmt-select-focused):hover fieldset:not(.fieldset-disabled){border-color:var(--blue-dark-1)!important;color:var(--blue-dark-1)!important;box-shadow:none!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.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 .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-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.rc-virtual-list-scrollbar.rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.snmt-select-single{height:48px}.snmt-select-single .ant-select-item-option-state{display:block}.fieldset-focused>legend,.fieldset-disabled>legend,.fieldset-filled>legend{max-width:100%!important}.fieldset-focused>legend>span,.fieldset-disabled>legend>span,.fieldset-filled>legend>span{opacity:1!important}.fieldset-focused{border-color:var(--blue-primary)!important;color:var(--blue-primary)!important;border-width:2px!important}.fieldset-disabled{border:none!important;color:var(--grey-dark-1)}.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.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.3.
|
4
|
+
"version": "2.3.7",
|
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.4.
|
21
|
+
"@snmt-react-ui/city-select": "^2.4.2",
|
22
22
|
"@snmt-react-ui/core": "^2.1.0",
|
23
23
|
"@snmt-react-ui/flex": "^1.5.0",
|
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": "2a9889476119b7aa34318a0bc7dd3c1881294e9b"
|
31
31
|
}
|