@snmt-react-ui/city-select 2.4.1 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/city-select.js +213 -197
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/city-select.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
var he = Object.defineProperty;
|
2
2
|
var ce = (i, e, t) => e in i ? he(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
3
|
-
var
|
3
|
+
var E1 = (i, e, t) => ce(i, typeof e != "symbol" ? e + "" : e, t);
|
4
4
|
import "./index.css";
|
5
5
|
import { jsx as n, Fragment as t1, jsxs as C } from "react/jsx-runtime";
|
6
6
|
import { SNMTUiContext as de } from "@snmt-react-ui/core";
|
7
|
-
import { Select as ge, Flex as Ce, Avatar as ue, Checkbox as pe, Typography as
|
8
|
-
import { createContext as
|
9
|
-
const
|
7
|
+
import { Select as ge, Flex as Ce, Avatar as ue, Checkbox as pe, Typography as Y1, Tag as U1, Popover as fe } from "antd";
|
8
|
+
import { createContext as r1, forwardRef as w1, useState as O, useRef as l1, useEffect as j, useCallback as K, useContext as a1 } from "react";
|
9
|
+
const g1 = ({
|
10
10
|
children: i,
|
11
11
|
direction: e = "row",
|
12
12
|
flexWrap: t = "nowrap",
|
@@ -43,11 +43,11 @@ const d1 = ({
|
|
43
43
|
);
|
44
44
|
};
|
45
45
|
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 || {});
|
46
|
-
const
|
46
|
+
const z1 = r1({
|
47
47
|
locale: "en",
|
48
48
|
theme: "light"
|
49
49
|
});
|
50
|
-
|
50
|
+
z1.Provider;
|
51
51
|
const me = ({
|
52
52
|
checked: i = !0,
|
53
53
|
indeterminate: e = !1,
|
@@ -60,7 +60,7 @@ const me = ({
|
|
60
60
|
j(() => {
|
61
61
|
r(i), g(e);
|
62
62
|
}, [i, e]);
|
63
|
-
const { theme: a } =
|
63
|
+
const { theme: a } = a1(z1);
|
64
64
|
return /* @__PURE__ */ n(
|
65
65
|
pe,
|
66
66
|
{
|
@@ -76,11 +76,11 @@ const me = ({
|
|
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 J1 = r1({
|
80
80
|
locale: "en",
|
81
81
|
theme: "light"
|
82
82
|
});
|
83
|
-
|
83
|
+
J1.Provider;
|
84
84
|
const ke = ({
|
85
85
|
width: i = 20,
|
86
86
|
height: e = 20,
|
@@ -409,7 +409,7 @@ const ke = ({
|
|
409
409
|
/* @__PURE__ */ n("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
410
410
|
]
|
411
411
|
}
|
412
|
-
),
|
412
|
+
), _e = ({
|
413
413
|
width: i = 16,
|
414
414
|
height: e = 12,
|
415
415
|
color: t = "#001E52",
|
@@ -458,7 +458,7 @@ const ke = ({
|
|
458
458
|
)
|
459
459
|
] })
|
460
460
|
}
|
461
|
-
),
|
461
|
+
), He = ({
|
462
462
|
width: i = 16,
|
463
463
|
height: e = 16,
|
464
464
|
color: t = "#001E52",
|
@@ -2408,7 +2408,7 @@ const ke = ({
|
|
2408
2408
|
)
|
2409
2409
|
]
|
2410
2410
|
}
|
2411
|
-
),
|
2411
|
+
), _t = ({
|
2412
2412
|
className: i,
|
2413
2413
|
color: e = k.GREY_DARK_5,
|
2414
2414
|
height: t = 24,
|
@@ -2447,7 +2447,7 @@ const ke = ({
|
|
2447
2447
|
)
|
2448
2448
|
]
|
2449
2449
|
}
|
2450
|
-
),
|
2450
|
+
), Ht = ({
|
2451
2451
|
className: i,
|
2452
2452
|
color: e = k.GREY_DARK_5,
|
2453
2453
|
height: t = 24,
|
@@ -3124,7 +3124,7 @@ const ke = ({
|
|
3124
3124
|
}
|
3125
3125
|
)
|
3126
3126
|
}
|
3127
|
-
),
|
3127
|
+
), h1 = ({
|
3128
3128
|
name: i,
|
3129
3129
|
width: e,
|
3130
3130
|
height: t,
|
@@ -3133,7 +3133,7 @@ const ke = ({
|
|
3133
3133
|
disabled: l = !1,
|
3134
3134
|
onClick: c
|
3135
3135
|
}) => {
|
3136
|
-
const [r, d] = O(o), { theme: g } =
|
3136
|
+
const [r, d] = O(o), { theme: g } = a1(J1), a = l ? g && g === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : s, h = l ? void 0 : c;
|
3137
3137
|
return j(() => {
|
3138
3138
|
if (o) {
|
3139
3139
|
h && !l && d(`${o} clickable`);
|
@@ -3167,9 +3167,9 @@ const ke = ({
|
|
3167
3167
|
case "dragAndDrop":
|
3168
3168
|
return Ee({ width: e, height: t, color: a, className: r, onClick: h });
|
3169
3169
|
case "filter":
|
3170
|
-
return He({ width: e, height: t, color: a, className: r, onClick: h });
|
3171
|
-
case "attention":
|
3172
3170
|
return _e({ width: e, height: t, color: a, className: r, onClick: h });
|
3171
|
+
case "attention":
|
3172
|
+
return He({ width: e, height: t, color: a, className: r, onClick: h });
|
3173
3173
|
case "plus":
|
3174
3174
|
return Ve({ width: e, height: t, color: a, className: r, onClick: h });
|
3175
3175
|
case "time":
|
@@ -3343,9 +3343,9 @@ const ke = ({
|
|
3343
3343
|
case "trash2":
|
3344
3344
|
return bt({ width: e, height: t, color: a, className: r, onClick: h });
|
3345
3345
|
case "manager":
|
3346
|
-
return Ht({ width: e, height: t, color: a, className: r, onClick: h });
|
3347
|
-
case "resourceManager":
|
3348
3346
|
return _t({ width: e, height: t, color: a, className: r, onClick: h });
|
3347
|
+
case "resourceManager":
|
3348
|
+
return Ht({ width: e, height: t, color: a, className: r, onClick: h });
|
3349
3349
|
case "settings2":
|
3350
3350
|
return Vt({ width: e, height: t, color: a, className: r, onClick: h });
|
3351
3351
|
case "image":
|
@@ -3386,12 +3386,12 @@ const ke = ({
|
|
3386
3386
|
return /* @__PURE__ */ n(t1, { children: "No Icon provided" });
|
3387
3387
|
}
|
3388
3388
|
})() });
|
3389
|
-
}, { Title: zt, Text: Jt } =
|
3389
|
+
}, { Title: zt, Text: Jt } = Y1, Qt = {
|
3390
3390
|
h1: 1,
|
3391
3391
|
h2: 2,
|
3392
3392
|
h3: 3,
|
3393
3393
|
h4: 4
|
3394
|
-
}, qt =
|
3394
|
+
}, qt = w1(
|
3395
3395
|
({
|
3396
3396
|
align: i = "inherit",
|
3397
3397
|
variant: e = "body1",
|
@@ -3426,11 +3426,11 @@ const ke = ({
|
|
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 Q1 = r1({
|
3430
3430
|
locale: "en",
|
3431
3431
|
theme: "light"
|
3432
3432
|
});
|
3433
|
-
|
3433
|
+
Q1.Provider;
|
3434
3434
|
const Xt = ({
|
3435
3435
|
width: i = 20,
|
3436
3436
|
height: e = 20,
|
@@ -4516,7 +4516,7 @@ const Xt = ({
|
|
4516
4516
|
)
|
4517
4517
|
]
|
4518
4518
|
}
|
4519
|
-
),
|
4519
|
+
), _2 = ({
|
4520
4520
|
width: i = 10,
|
4521
4521
|
height: e = 10,
|
4522
4522
|
color: t = "#88A4FF",
|
@@ -4564,7 +4564,7 @@ const Xt = ({
|
|
4564
4564
|
)
|
4565
4565
|
]
|
4566
4566
|
}
|
4567
|
-
),
|
4567
|
+
), H2 = ({
|
4568
4568
|
width: i = 14,
|
4569
4569
|
height: e = 14,
|
4570
4570
|
color: t = "#8E8E93",
|
@@ -6474,7 +6474,7 @@ const Xt = ({
|
|
6474
6474
|
}
|
6475
6475
|
)
|
6476
6476
|
}
|
6477
|
-
),
|
6477
|
+
), _5 = ({
|
6478
6478
|
name: i,
|
6479
6479
|
width: e,
|
6480
6480
|
height: t,
|
@@ -6483,7 +6483,7 @@ const Xt = ({
|
|
6483
6483
|
disabled: l = !1,
|
6484
6484
|
onClick: c
|
6485
6485
|
}) => {
|
6486
|
-
const [r, d] = O(o), { theme: g } =
|
6486
|
+
const [r, d] = O(o), { theme: g } = a1(Q1), a = l ? g && g === "dark" ? L.GREY_LIGHT_4 : L.GREY_DARK_1 : s, h = l ? void 0 : c;
|
6487
6487
|
return j(() => {
|
6488
6488
|
if (o) {
|
6489
6489
|
h && !l && d(`${o} clickable`);
|
@@ -6587,9 +6587,9 @@ const Xt = ({
|
|
6587
6587
|
onClick: h
|
6588
6588
|
});
|
6589
6589
|
case "errorSmall":
|
6590
|
-
return H2({ width: e, height: t, color: a, className: r, onClick: h });
|
6591
|
-
case "infoMedium":
|
6592
6590
|
return _2({ width: e, height: t, color: a, className: r, onClick: h });
|
6591
|
+
case "infoMedium":
|
6592
|
+
return H2({ width: e, height: t, color: a, className: r, onClick: h });
|
6593
6593
|
case "attentionMedium":
|
6594
6594
|
return V2({
|
6595
6595
|
width: e,
|
@@ -6737,40 +6737,56 @@ const Xt = ({
|
|
6737
6737
|
}
|
6738
6738
|
})() });
|
6739
6739
|
};
|
6740
|
-
var
|
6741
|
-
const
|
6740
|
+
var s1 = /* @__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))(s1 || {});
|
6741
|
+
const H5 = r1({
|
6742
6742
|
locale: "en",
|
6743
6743
|
theme: "light"
|
6744
6744
|
});
|
6745
|
-
|
6746
|
-
const q1 = ({
|
6747
|
-
|
6745
|
+
H5.Provider;
|
6746
|
+
const q1 = ({
|
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
|
+
U1,
|
6750
6759
|
{
|
6751
|
-
className: `snmt-tag ${t}`,
|
6760
|
+
className: `snmt-tag ${t} ${l ? "disabled" : ""}`,
|
6752
6761
|
closeIcon: /* @__PURE__ */ n(
|
6753
|
-
|
6762
|
+
_5,
|
6754
6763
|
{
|
6755
6764
|
name: "errorSmall",
|
6756
|
-
color:
|
6757
|
-
width:
|
6758
|
-
height:
|
6759
|
-
onClick:
|
6765
|
+
color: l ? s1.GREY_DARK_1 : s1.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
|
+
qt,
|
6776
|
+
{
|
6777
|
+
variant: t === "small" ? "body4" : "body2",
|
6778
|
+
color: l ? s1.GREY_DARK_2 : s1.GREY_DARK_5,
|
6779
|
+
children: i
|
6780
|
+
}
|
6781
|
+
) : i
|
6766
6782
|
}
|
6767
6783
|
);
|
6768
|
-
}, { Title: V5, Text: I5 } =
|
6784
|
+
}, { Title: V5, Text: I5 } = Y1, S5 = {
|
6769
6785
|
h1: 1,
|
6770
6786
|
h2: 2,
|
6771
6787
|
h3: 3,
|
6772
6788
|
h4: 4
|
6773
|
-
}, X1 =
|
6789
|
+
}, X1 = w1(
|
6774
6790
|
({
|
6775
6791
|
align: i = "inherit",
|
6776
6792
|
variant: e = "body1",
|
@@ -6853,7 +6869,7 @@ const q1 = ({ 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(g1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: a }) => /* @__PURE__ */ n(
|
6857
6873
|
q1,
|
6858
6874
|
{
|
6859
6875
|
onClose: () => e(a),
|
@@ -6866,13 +6882,13 @@ const q1 = ({ 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(U1, { className: `overflow-button ${c ? "open" : ""}`, bordered: !1, children: /* @__PURE__ */ C(X1, { variant: "body4", color: c ? e1.BLUE_PRIMARY : void 0, children: [
|
6870
6886
|
i.length,
|
6871
6887
|
" more"
|
6872
6888
|
] }) })
|
6873
6889
|
}
|
6874
6890
|
) });
|
6875
|
-
},
|
6891
|
+
}, _1 = ({ 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 q1 = ({ 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
|
-
}, B5 =
|
6899
|
+
}, B5 = w1(
|
6884
6900
|
({
|
6885
6901
|
value: i,
|
6886
6902
|
onChange: e,
|
@@ -6904,28 +6920,28 @@ const q1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6904
6920
|
isLoading: B,
|
6905
6921
|
readOnly: m
|
6906
6922
|
}, M) => {
|
6907
|
-
const [y, N] = O(!1), [T, Q] = O(!1), [$, W] = O(!0), [b,
|
6923
|
+
const [y, N] = O(!1), [T, Q] = O(!1), [$, W] = O(!0), [b, H] = O(i), I = l1(null);
|
6908
6924
|
j(() => {
|
6909
|
-
|
6925
|
+
H(i);
|
6910
6926
|
}, [i]);
|
6911
6927
|
const G = (f) => {
|
6912
6928
|
N(f), u && u(f);
|
6913
|
-
}, F = (f,
|
6929
|
+
}, F = (f, _) => {
|
6914
6930
|
var D;
|
6915
|
-
return !!((D =
|
6931
|
+
return !!((D = _ == null ? void 0 : _.label) != null && D.toString().toLowerCase().includes(f.toLowerCase()));
|
6916
6932
|
}, Y = () => {
|
6917
6933
|
Q(!0);
|
6918
6934
|
}, V = () => {
|
6919
6935
|
Q(!1);
|
6920
6936
|
}, Z = K(
|
6921
6937
|
(f) => {
|
6922
|
-
if (
|
6938
|
+
if (H(f), s) {
|
6923
6939
|
const D = f;
|
6924
6940
|
e == null || e(D);
|
6925
6941
|
return;
|
6926
6942
|
}
|
6927
|
-
const
|
6928
|
-
e == null || e(
|
6943
|
+
const _ = f;
|
6944
|
+
e == null || e(_);
|
6929
6945
|
},
|
6930
6946
|
[s, e]
|
6931
6947
|
), U = K(() => {
|
@@ -6938,11 +6954,11 @@ const q1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6938
6954
|
}
|
6939
6955
|
}, [Z, s, m]), z = K(
|
6940
6956
|
(f) => {
|
6941
|
-
const
|
6942
|
-
Z(
|
6957
|
+
const _ = b.filter((D) => D !== f);
|
6958
|
+
Z(_), H(_);
|
6943
6959
|
},
|
6944
6960
|
[Z, b]
|
6945
|
-
),
|
6961
|
+
), b1 = K(
|
6946
6962
|
(f) => (b == null ? void 0 : b.indexOf(f)) === 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 q1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6952
6968
|
), ne = (f) => {
|
6953
6969
|
f.preventDefault(), f.stopPropagation();
|
6954
6970
|
}, re = async (f) => {
|
6955
|
-
const { target:
|
6956
|
-
|
6957
|
-
},
|
6971
|
+
const { target: _ } = f;
|
6972
|
+
_.scrollTop + _.offsetHeight >= _.scrollHeight - a && (p == null || p(!0)), w && await w(f);
|
6973
|
+
}, k1 = K(
|
6958
6974
|
(f) => {
|
6959
|
-
var
|
6960
|
-
return ((
|
6961
|
-
(
|
6975
|
+
var _, D;
|
6976
|
+
return ((_ = l.find((L1) => L1.value === f)) == null ? void 0 : _.label) || ((D = v == null ? void 0 : v.find(
|
6977
|
+
(L1) => L1.value === f
|
6962
6978
|
)) == null ? void 0 : D.label) || f;
|
6963
6979
|
},
|
6964
6980
|
[v, l]
|
6965
6981
|
), le = K(
|
6966
6982
|
(f) => {
|
6967
|
-
var
|
6983
|
+
var _;
|
6968
6984
|
return /* @__PURE__ */ n(
|
6969
6985
|
A5,
|
6970
6986
|
{
|
6971
6987
|
values: f,
|
6972
6988
|
onTagClose: z,
|
6973
|
-
maxWidth: ((
|
6989
|
+
maxWidth: ((_ = I.current) == null ? void 0 : _.clientWidth) || 0,
|
6974
6990
|
disabled: r || m,
|
6975
6991
|
options: l,
|
6976
6992
|
extraOptions: v
|
@@ -6979,8 +6995,8 @@ const q1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6979
6995
|
},
|
6980
6996
|
[r, v, z, l, m]
|
6981
6997
|
), ae = K(
|
6982
|
-
({ label: f, value:
|
6983
|
-
[r,
|
6998
|
+
({ label: f, value: _, mode: D }) => D === "filter" ? b1(_) : /* @__PURE__ */ n("div", { onMouseDown: ne, className: "tag-wrapper", children: /* @__PURE__ */ n(q1, { onClose: () => z(_), closable: !r, children: /* @__PURE__ */ n(X1, { variant: "body4", children: typeof f == "object" ? f : k1(_) }) }) }),
|
6999
|
+
[r, k1, z, b1]
|
6984
7000
|
);
|
6985
7001
|
return /* @__PURE__ */ C(
|
6986
7002
|
"div",
|
@@ -7003,7 +7019,7 @@ const q1 = ({ 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: b || void 0,
|
7006
|
-
labelRender: (f) =>
|
7022
|
+
labelRender: (f) => k1(f.value),
|
7007
7023
|
mode: s === "filter" ? "multiple" : s,
|
7008
7024
|
onChange: Z,
|
7009
7025
|
onFocus: Y,
|
@@ -7017,11 +7033,11 @@ const q1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
7017
7033
|
maxTagCount: "responsive",
|
7018
7034
|
maxTagPlaceholder: le,
|
7019
7035
|
onPopupScroll: re,
|
7020
|
-
prefix: B && /* @__PURE__ */ n(
|
7036
|
+
prefix: B && /* @__PURE__ */ n(_1, { size: 15 }),
|
7021
7037
|
suffixIcon: /* @__PURE__ */ n("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(t1, { children: [
|
7022
|
-
b && !!b.length && (s || g) && /* @__PURE__ */ n("div", { onClick: U, children: /* @__PURE__ */ n(
|
7038
|
+
b && !!b.length && (s || g) && /* @__PURE__ */ n("div", { onClick: U, children: /* @__PURE__ */ n(h1, { name: "cancel" }) }),
|
7023
7039
|
/* @__PURE__ */ n(
|
7024
|
-
|
7040
|
+
h1,
|
7025
7041
|
{
|
7026
7042
|
name: "selectArrowIcon",
|
7027
7043
|
color: r ? e1.GREY_DARK_1 : e1.GREY_DARK_5,
|
@@ -7030,23 +7046,23 @@ const q1 = ({ 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(h1, { name: "errorSmall", color: e1.GREY_DARK_2 }),
|
7034
7050
|
options: l,
|
7035
|
-
optionRender: (f) => R ? R(f.data) : /* @__PURE__ */ C(
|
7036
|
-
/* @__PURE__ */ C(
|
7051
|
+
optionRender: (f) => R ? R(f.data) : /* @__PURE__ */ C(g1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
7052
|
+
/* @__PURE__ */ C(g1, { alignItems: "center", gap: 12, children: [
|
7037
7053
|
s && /* @__PURE__ */ n(
|
7038
7054
|
me,
|
7039
7055
|
{
|
7040
7056
|
checked: !!(b != null && b.includes(f.value))
|
7041
7057
|
}
|
7042
7058
|
),
|
7043
|
-
/* @__PURE__ */ C(
|
7059
|
+
/* @__PURE__ */ C(g1, { alignItems: "center", gap: 8, children: [
|
7044
7060
|
f.data.image && /* @__PURE__ */ n(we, { src: f.data.image, size: 20 }),
|
7045
7061
|
/* @__PURE__ */ n("span", { children: f.label })
|
7046
7062
|
] })
|
7047
7063
|
] }),
|
7048
7064
|
!s && b === f.value && /* @__PURE__ */ n(
|
7049
|
-
|
7065
|
+
h1,
|
7050
7066
|
{
|
7051
7067
|
name: "ok",
|
7052
7068
|
color: e1.BLUE_PRIMARY,
|
@@ -7063,7 +7079,7 @@ const q1 = ({ 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(_1, { size: 28 })
|
7067
7083
|
}
|
7068
7084
|
) : (f) => E ? E(f) : f
|
7069
7085
|
}
|
@@ -7097,7 +7113,7 @@ const q1 = ({ 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 g1 {
|
|
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 P = new
|
7143
|
-
class
|
7158
|
+
var P = new C1();
|
7159
|
+
class m1 {
|
7144
7160
|
constructor() {
|
7145
7161
|
this.observers = {};
|
7146
7162
|
}
|
@@ -7184,47 +7200,47 @@ const i1 = () => {
|
|
7184
7200
|
i.forEach((s) => {
|
7185
7201
|
e[s] && (t[s] = e[s]);
|
7186
7202
|
});
|
7187
|
-
}, j5 = /###/g,
|
7203
|
+
}, j5 = /###/g, V1 = (i) => i && i.indexOf("###") > -1 ? i.replace(j5, ".") : i, I1 = (i) => !i || typeof i == "string", o1 = (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 (I1(i)) return {};
|
7208
|
+
const l = V1(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 I1(i) ? {} : {
|
7196
7212
|
obj: i,
|
7197
|
-
k:
|
7213
|
+
k: V1(s[o])
|
7198
7214
|
};
|
7199
|
-
},
|
7215
|
+
}, S1 = (i, e, t) => {
|
7200
7216
|
const {
|
7201
7217
|
obj: s,
|
7202
7218
|
k: o
|
7203
|
-
} =
|
7219
|
+
} = o1(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 = o1(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 = o1(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
|
}, D5 = (i, e, t, s) => {
|
7213
7229
|
const {
|
7214
7230
|
obj: o,
|
7215
7231
|
k: l
|
7216
|
-
} =
|
7232
|
+
} = o1(i, e, Object);
|
7217
7233
|
o[l] = o[l] || [], o[l].push(t);
|
7218
|
-
},
|
7234
|
+
}, u1 = (i, e) => {
|
7219
7235
|
const {
|
7220
7236
|
obj: t,
|
7221
7237
|
k: s
|
7222
|
-
} =
|
7238
|
+
} = o1(i, e);
|
7223
7239
|
if (t)
|
7224
7240
|
return t[s];
|
7225
7241
|
}, T5 = (i, e, t) => {
|
7226
|
-
const s =
|
7227
|
-
return s !== void 0 ? s :
|
7242
|
+
const s = u1(i, t);
|
7243
|
+
return s !== void 0 ? s : u1(e, t);
|
7228
7244
|
}, ee = (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]) : ee(i[s], e[s], t) : i[s] = e[s]);
|
@@ -7262,7 +7278,7 @@ const F5 = [" ", ",", "?", "!", ";"], $5 = new P5(20), Y5 = (i, e, t) => {
|
|
7262
7278
|
c > 0 && !o.test(i.substring(0, c)) && (l = !0);
|
7263
7279
|
}
|
7264
7280
|
return l;
|
7265
|
-
},
|
7281
|
+
}, R1 = 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 F5 = [" ", ",", "?", "!", ";"], $5 = new P5(20), Y5 = (i, e, t) => {
|
|
7282
7298
|
o = c;
|
7283
7299
|
}
|
7284
7300
|
return o;
|
7285
|
-
},
|
7286
|
-
class
|
7301
|
+
}, p1 = (i) => i && i.indexOf("_") > 0 ? i.replace("_", "-") : i;
|
7302
|
+
class O1 extends m1 {
|
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 S1 extends w1 {
|
|
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 = u1(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 : R1(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] : {
|
@@ -7312,7 +7328,7 @@ class S1 extends w1 {
|
|
7312
7328
|
};
|
7313
7329
|
const c = l.keySeparator !== void 0 ? l.keySeparator : this.options.keySeparator;
|
7314
7330
|
let r = [e, t];
|
7315
|
-
s && (r = r.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (r = e.split("."), o = t, t = r[1]), this.addNamespaces(t),
|
7331
|
+
s && (r = r.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (r = e.split("."), o = t, t = r[1]), this.addNamespaces(t), S1(this.data, r, o), l.silent || this.emit("added", e, t, s, o);
|
7316
7332
|
}
|
7317
7333
|
addResources(e, t, s) {
|
7318
7334
|
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
@@ -7330,11 +7346,11 @@ class S1 extends w1 {
|
|
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 = u1(this.data, r) || {};
|
7334
7350
|
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), o ? ee(d, s, l) : d = {
|
7335
7351
|
...d,
|
7336
7352
|
...s
|
7337
|
-
},
|
7353
|
+
}, S1(this.data, r, d), c.silent || this.emit("added", e, t, s);
|
7338
7354
|
}
|
7339
7355
|
removeResourceBundle(e, t) {
|
7340
7356
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
@@ -7369,8 +7385,8 @@ var te = {
|
|
7369
7385
|
}), e;
|
7370
7386
|
}
|
7371
7387
|
};
|
7372
|
-
const
|
7373
|
-
class
|
7388
|
+
const A1 = {};
|
7389
|
+
class f1 extends m1 {
|
7374
7390
|
constructor(e) {
|
7375
7391
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7376
7392
|
super(), W5(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = P.create("translator");
|
@@ -7467,11 +7483,11 @@ class p1 extends w1 {
|
|
7467
7483
|
u = u.join(E), u && (u = this.extendTranslation(u, e, t, s));
|
7468
7484
|
else {
|
7469
7485
|
let m = !1, M = !1;
|
7470
|
-
const y = t.count !== void 0 && typeof t.count != "string", N =
|
7486
|
+
const y = t.count !== void 0 && typeof t.count != "string", N = f1.hasDefaultValue(t), T = y ? this.pluralResolver.getSuffix(g, t.count, t) : "", Q = t.ordinal && y ? this.pluralResolver.getSuffix(g, t.count, {
|
7471
7487
|
ordinal: !1
|
7472
7488
|
}) : "", $ = y && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), W = $ && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${T}`] || t[`defaultValue${Q}`] || t.defaultValue;
|
7473
7489
|
!this.isValidLookup(u) && N && (m = !0, u = W), this.isValidLookup(u) || (M = !0, u = c);
|
7474
|
-
const
|
7490
|
+
const H = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : u, I = N && W !== u && this.options.updateMissing;
|
7475
7491
|
if (M || m || I) {
|
7476
7492
|
if (this.logger.log(I ? "updateKey" : "missingKey", g, d, c, I ? W : u), l) {
|
7477
7493
|
const V = this.resolve(c, {
|
@@ -7487,7 +7503,7 @@ class p1 extends w1 {
|
|
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
7505
|
const Y = (V, Z, U) => {
|
7490
|
-
const z = N && U !== u ? U :
|
7506
|
+
const z = N && U !== u ? U : H;
|
7491
7507
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(V, d, Z, z, I, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(V, d, Z, z, I, t), this.emit("missingKey", V, d, Z, u);
|
7492
7508
|
};
|
7493
7509
|
this.options.saveMissing && (this.options.saveMissingPlurals && y ? G.forEach((V) => {
|
@@ -7557,7 +7573,7 @@ class p1 extends w1 {
|
|
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(), w = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", x = 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, !A1[`${x[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(r) && (A1[`${x[0]}-${v}`] = !0, this.logger.warn(`key "${o}" for languages "${x.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!!!")), x.forEach((E) => {
|
7561
7577
|
if (this.isValidLookup(s)) return;
|
7562
7578
|
c = E;
|
7563
7579
|
const R = [a];
|
@@ -7616,18 +7632,18 @@ class p1 extends w1 {
|
|
7616
7632
|
return !1;
|
7617
7633
|
}
|
7618
7634
|
}
|
7619
|
-
const
|
7620
|
-
class
|
7635
|
+
const v1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
7636
|
+
class B1 {
|
7621
7637
|
constructor(e) {
|
7622
7638
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = P.create("languageUtils");
|
7623
7639
|
}
|
7624
7640
|
getScriptPartFromCode(e) {
|
7625
|
-
if (e =
|
7641
|
+
if (e = p1(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 = p1(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 A1 {
|
|
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] = v1(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] = v1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = v1(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 U5 = [{
|
|
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 J5 = ["v1", "v2", "v3"], Q5 = ["v4"],
|
7811
|
+
const J5 = ["v1", "v2", "v3"], Q5 = ["v4"], Z1 = {
|
7796
7812
|
zero: 0,
|
7797
7813
|
one: 1,
|
7798
7814
|
two: 2,
|
@@ -7825,7 +7841,7 @@ class X5 {
|
|
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 = p1(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 X5 {
|
|
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) => Z1[o] - Z1[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 X5 {
|
|
7870
7886
|
return !J5.includes(this.options.compatibilityJSON);
|
7871
7887
|
}
|
7872
7888
|
}
|
7873
|
-
const
|
7889
|
+
const W1 = 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 = T5(i, e, t);
|
7875
|
-
return !l && o && typeof t == "string" && (l =
|
7876
|
-
},
|
7891
|
+
return !l && o && typeof t == "string" && (l = R1(i, t, s), l === void 0 && (l = R1(e, t, s))), l;
|
7892
|
+
}, N1 = (i) => i.replace(/\$/g, "$$$$");
|
7877
7893
|
class e3 {
|
7878
7894
|
constructor() {
|
7879
7895
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
@@ -7916,7 +7932,7 @@ class e3 {
|
|
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 = W1(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 e3 {
|
|
7924
7940
|
}) : E;
|
7925
7941
|
}
|
7926
7942
|
const w = p.split(this.formatSeparator), x = w.shift().trim(), v = w.join(this.formatSeparator).trim();
|
7927
|
-
return this.format(
|
7943
|
+
return this.format(W1(t, d, x, this.options.keySeparator, this.options.ignoreJSONStructure), v, s, {
|
7928
7944
|
...o,
|
7929
7945
|
...t,
|
7930
7946
|
interpolationkey: x
|
@@ -7934,10 +7950,10 @@ class e3 {
|
|
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) => N1(p)
|
7938
7954
|
}, {
|
7939
7955
|
regex: this.regexp,
|
7940
|
-
safeValue: (p) => this.escapeValue ?
|
7956
|
+
safeValue: (p) => this.escapeValue ? N1(this.escape(p)) : N1(p)
|
7941
7957
|
}].forEach((p) => {
|
7942
7958
|
for (r = 0; l = p.regex.exec(e); ) {
|
7943
7959
|
const w = l[1].trim();
|
@@ -8026,7 +8042,7 @@ const t3 = (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(p1(s), o), e[c] = r), r(t);
|
8030
8046
|
};
|
8031
8047
|
};
|
8032
8048
|
class i3 {
|
@@ -8112,7 +8128,7 @@ class i3 {
|
|
8112
8128
|
const s3 = (i, e) => {
|
8113
8129
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
8114
8130
|
};
|
8115
|
-
class o3 extends
|
8131
|
+
class o3 extends m1 {
|
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 = P.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 o3 extends w1 {
|
|
8247
8263
|
}
|
8248
8264
|
}
|
8249
8265
|
}
|
8250
|
-
const
|
8266
|
+
const j1 = () => ({
|
8251
8267
|
debug: !1,
|
8252
8268
|
initImmediate: !0,
|
8253
8269
|
ns: ["translation"],
|
@@ -8303,16 +8319,16 @@ const W1 = () => ({
|
|
8303
8319
|
maxReplaces: 1e3,
|
8304
8320
|
skipOnVariables: !0
|
8305
8321
|
}
|
8306
|
-
}),
|
8322
|
+
}), D1 = (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), c1 = () => {
|
8307
8323
|
}, n3 = (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 n1 extends m1 {
|
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 = D1(e), this.services = {}, this.logger = P, this.modules = {
|
8316
8332
|
external: []
|
8317
8333
|
}, n3(this), t && !this.isInitialized && !e.isClone) {
|
8318
8334
|
if (!this.options.initImmediate)
|
@@ -8326,11 +8342,11 @@ class o1 extends w1 {
|
|
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 = j1();
|
8330
8346
|
this.options = {
|
8331
8347
|
...o,
|
8332
8348
|
...this.options,
|
8333
|
-
...
|
8349
|
+
...D1(t)
|
8334
8350
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
8335
8351
|
...o.interpolation,
|
8336
8352
|
...this.options.interpolation
|
@@ -8340,8 +8356,8 @@ class o1 extends w1 {
|
|
8340
8356
|
this.modules.logger ? P.init(l(this.modules.logger), this.options) : P.init(null, this.options);
|
8341
8357
|
let a;
|
8342
8358
|
this.modules.formatter ? a = this.modules.formatter : typeof Intl < "u" && (a = i3);
|
8343
|
-
const h = new
|
8344
|
-
this.store = new
|
8359
|
+
const h = new B1(this.options);
|
8360
|
+
this.store = new O1(this.options.resources, this.options);
|
8345
8361
|
const u = this.services;
|
8346
8362
|
u.logger = P, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new X5(h, {
|
8347
8363
|
prepend: this.options.pluralSeparator,
|
@@ -8353,7 +8369,7 @@ class o1 extends w1 {
|
|
8353
8369
|
for (var w = arguments.length, x = new Array(w > 1 ? w - 1 : 0), v = 1; v < w; v++)
|
8354
8370
|
x[v - 1] = arguments[v];
|
8355
8371
|
e.emit(p, ...x);
|
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 f1(this.services, this.options), this.translator.on("*", function(p) {
|
8357
8373
|
for (var w = arguments.length, x = new Array(w > 1 ? w - 1 : 0), v = 1; v < w; v++)
|
8358
8374
|
x[v - 1] = arguments[v];
|
8359
8375
|
e.emit(p, ...x);
|
@@ -8361,7 +8377,7 @@ class o1 extends w1 {
|
|
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 = c1), 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 o1 extends w1 {
|
|
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] : c1;
|
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 o1 extends w1 {
|
|
8402
8418
|
}
|
8403
8419
|
reloadResources(e, t, s) {
|
8404
8420
|
const o = i1();
|
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 = c1), this.services.backendConnector.reload(e, t, (l) => {
|
8406
8422
|
o.resolve(), s(l);
|
8407
8423
|
}), o;
|
8408
8424
|
}
|
@@ -8507,29 +8523,29 @@ class o1 extends w1 {
|
|
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 B1(j1());
|
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 n1(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] : c1;
|
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 n1(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 O1(this.store.data, o), l.services.resourceStore = l.store), l.translator = new f1(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,8 +8563,8 @@ class o1 extends w1 {
|
|
8547
8563
|
};
|
8548
8564
|
}
|
8549
8565
|
}
|
8550
|
-
const A =
|
8551
|
-
A.createInstance =
|
8566
|
+
const A = n1.createInstance();
|
8567
|
+
A.createInstance = n1.createInstance;
|
8552
8568
|
A.createInstance;
|
8553
8569
|
A.dir;
|
8554
8570
|
A.init;
|
@@ -8570,11 +8586,11 @@ function r3() {
|
|
8570
8586
|
J(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
8571
8587
|
}
|
8572
8588
|
}
|
8573
|
-
const
|
8574
|
-
function
|
8589
|
+
const T1 = {};
|
8590
|
+
function M1() {
|
8575
8591
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
8576
8592
|
e[t] = arguments[t];
|
8577
|
-
J(e[0]) &&
|
8593
|
+
J(e[0]) && T1[e[0]] || (J(e[0]) && (T1[e[0]] = /* @__PURE__ */ new Date()), r3(...e));
|
8578
8594
|
}
|
8579
8595
|
const ie = (i, e) => () => {
|
8580
8596
|
if (i.isInitialized)
|
@@ -8587,9 +8603,9 @@ const ie = (i, e) => () => {
|
|
8587
8603
|
};
|
8588
8604
|
i.on("initialized", t);
|
8589
8605
|
}
|
8590
|
-
},
|
8606
|
+
}, G1 = (i, e, t) => {
|
8591
8607
|
i.loadNamespaces(e, ie(i, t));
|
8592
|
-
},
|
8608
|
+
}, K1 = (i, e, t, s) => {
|
8593
8609
|
J(t) && (t = [t]), t.forEach((o) => {
|
8594
8610
|
i.options.ns.indexOf(o) < 0 && i.options.ns.push(o);
|
8595
8611
|
}), i.loadLanguages(e, ie(i, s));
|
@@ -8604,7 +8620,7 @@ const ie = (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
|
}, a3 = 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 ? (M1("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 ie = (i, e) => () => {
|
|
8632
8648
|
"/": "/",
|
8633
8649
|
"/": "/"
|
8634
8650
|
}, g3 = (i) => d3[i], C3 = (i) => i.replace(c3, g3);
|
8635
|
-
let
|
8651
|
+
let y1 = {
|
8636
8652
|
bindI18n: "languageChanged",
|
8637
8653
|
bindI18nStore: "",
|
8638
8654
|
transEmptyNodeValue: "",
|
@@ -8644,11 +8660,11 @@ let M1 = {
|
|
8644
8660
|
};
|
8645
8661
|
const u3 = function() {
|
8646
8662
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
8647
|
-
|
8648
|
-
...
|
8663
|
+
y1 = {
|
8664
|
+
...y1,
|
8649
8665
|
...i
|
8650
8666
|
};
|
8651
|
-
}, p3 = () =>
|
8667
|
+
}, p3 = () => y1;
|
8652
8668
|
let se;
|
8653
8669
|
const f3 = (i) => {
|
8654
8670
|
se = i;
|
@@ -8657,10 +8673,10 @@ const f3 = (i) => {
|
|
8657
8673
|
init(i) {
|
8658
8674
|
u3(i.options.react), f3(i);
|
8659
8675
|
}
|
8660
|
-
}, k3 =
|
8676
|
+
}, k3 = r1();
|
8661
8677
|
class L3 {
|
8662
8678
|
constructor() {
|
8663
|
-
|
8679
|
+
E1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
8664
8680
|
this.usedNamespaces = {};
|
8665
8681
|
}
|
8666
8682
|
addUsedNamespaces(e) {
|
@@ -8670,7 +8686,7 @@ class L3 {
|
|
8670
8686
|
}
|
8671
8687
|
}
|
8672
8688
|
const v3 = (i, e) => {
|
8673
|
-
const t =
|
8689
|
+
const t = l1();
|
8674
8690
|
return j(() => {
|
8675
8691
|
t.current = i;
|
8676
8692
|
}, [i, e]), t.current;
|
@@ -8681,13 +8697,13 @@ const v3 = (i, e) => {
|
|
8681
8697
|
} = e, {
|
8682
8698
|
i18n: s,
|
8683
8699
|
defaultNS: o
|
8684
|
-
} =
|
8700
|
+
} = a1(k3) || {}, l = t || s || w3();
|
8685
8701
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new L3()), !l) {
|
8686
|
-
|
8702
|
+
M1("You will need to pass in an i18next instance by using initReactI18next");
|
8687
8703
|
const m = (y, N) => J(N) ? N : h3(N) && J(N.defaultValue) ? N.defaultValue : Array.isArray(y) ? y[y.length - 1] : y, M = [m, {}, !1];
|
8688
8704
|
return M.t = m, M.i18n = {}, M.ready = !1, M;
|
8689
8705
|
}
|
8690
|
-
l.options.react && l.options.react.wait !== void 0 &&
|
8706
|
+
l.options.react && l.options.react.wait !== void 0 && M1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
8691
8707
|
const c = {
|
8692
8708
|
...p3(),
|
8693
8709
|
...l.options.react,
|
@@ -8701,15 +8717,15 @@ const v3 = (i, e) => {
|
|
8701
8717
|
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((m) => a3(m, l, c)), h = N3(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => oe(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [w, x] = O(u);
|
8702
8718
|
let v = g.join();
|
8703
8719
|
e.lng && (v = `${e.lng}${v}`);
|
8704
|
-
const E = v3(v), R =
|
8720
|
+
const E = v3(v), R = l1(!0);
|
8705
8721
|
j(() => {
|
8706
8722
|
const {
|
8707
8723
|
bindI18n: m,
|
8708
8724
|
bindI18nStore: M
|
8709
8725
|
} = c;
|
8710
|
-
R.current = !0, !a && !r && (e.lng ?
|
8726
|
+
R.current = !0, !a && !r && (e.lng ? K1(l, e.lng, g, () => {
|
8711
8727
|
R.current && x(p);
|
8712
|
-
}) :
|
8728
|
+
}) : G1(l, g, () => {
|
8713
8729
|
R.current && x(p);
|
8714
8730
|
})), a && E && E !== v && R.current && x(p);
|
8715
8731
|
const y = () => {
|
@@ -8724,39 +8740,39 @@ const v3 = (i, e) => {
|
|
8724
8740
|
const B = [w, l, a];
|
8725
8741
|
if (B.t = w, B.i18n = l, B.ready = a, a || !a && !r) return B;
|
8726
8742
|
throw new Promise((m) => {
|
8727
|
-
e.lng ?
|
8743
|
+
e.lng ? K1(l, e.lng, g, () => m()) : G1(l, g, () => m());
|
8728
8744
|
});
|
8729
8745
|
};
|
8730
8746
|
var S = [];
|
8731
|
-
for (var
|
8732
|
-
S.push((
|
8747
|
+
for (var x1 = 0; x1 < 256; ++x1)
|
8748
|
+
S.push((x1 + 256).toString(16).slice(1));
|
8733
8749
|
function R3(i, e = 0) {
|
8734
8750
|
return (S[i[e + 0]] + S[i[e + 1]] + S[i[e + 2]] + S[i[e + 3]] + "-" + S[i[e + 4]] + S[i[e + 5]] + "-" + S[i[e + 6]] + S[i[e + 7]] + "-" + S[i[e + 8]] + S[i[e + 9]] + "-" + S[i[e + 10]] + S[i[e + 11]] + S[i[e + 12]] + S[i[e + 13]] + S[i[e + 14]] + S[i[e + 15]]).toLowerCase();
|
8735
8751
|
}
|
8736
|
-
var
|
8752
|
+
var d1, M3 = new Uint8Array(16);
|
8737
8753
|
function y3() {
|
8738
|
-
if (!
|
8754
|
+
if (!d1 && (d1 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !d1))
|
8739
8755
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
8740
|
-
return
|
8756
|
+
return d1(M3);
|
8741
8757
|
}
|
8742
8758
|
var b3 = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
8743
|
-
const
|
8759
|
+
const P1 = {
|
8744
8760
|
randomUUID: b3
|
8745
8761
|
};
|
8746
|
-
function
|
8747
|
-
if (
|
8748
|
-
return
|
8762
|
+
function F1(i, e, t) {
|
8763
|
+
if (P1.randomUUID && !e && !i)
|
8764
|
+
return P1.randomUUID();
|
8749
8765
|
i = i || {};
|
8750
8766
|
var s = i.random || (i.rng || y3)();
|
8751
8767
|
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, R3(s);
|
8752
8768
|
}
|
8753
|
-
const E3 = "City",
|
8769
|
+
const E3 = "City", _3 = {
|
8754
8770
|
placeholder: E3
|
8755
|
-
},
|
8756
|
-
placeholder:
|
8771
|
+
}, H3 = "Город", V3 = {
|
8772
|
+
placeholder: H3
|
8757
8773
|
};
|
8758
8774
|
function I3(i, e = 500) {
|
8759
|
-
const t =
|
8775
|
+
const t = l1();
|
8760
8776
|
return j(() => () => {
|
8761
8777
|
t.current && clearTimeout(t.current);
|
8762
8778
|
}, []), (...o) => {
|
@@ -8771,19 +8787,19 @@ A.use(m3).init({
|
|
8771
8787
|
lng: "en",
|
8772
8788
|
resources: {
|
8773
8789
|
en: {
|
8774
|
-
common:
|
8790
|
+
common: _3
|
8775
8791
|
},
|
8776
8792
|
ru: {
|
8777
8793
|
common: V3
|
8778
8794
|
}
|
8779
8795
|
}
|
8780
8796
|
});
|
8781
|
-
const
|
8797
|
+
const $1 = {
|
8782
8798
|
limit: 100,
|
8783
8799
|
offset: 0
|
8784
|
-
}, D3 =
|
8800
|
+
}, D3 = w1(
|
8785
8801
|
({ width: i, selectedCountry: e, onChange: t, value: s, id: o, disabled: l }, c) => {
|
8786
|
-
const [r, d] = O([]), [g, a] = O(
|
8802
|
+
const [r, d] = O([]), [g, a] = O($1), [h, u] = O(null), [p, w] = O([]), [x, v] = O(!0), [E, R] = O(!1), B = l1(e), { locale: m, axiosPeople: M } = a1(de);
|
8787
8803
|
if (!M)
|
8788
8804
|
throw new Error(
|
8789
8805
|
`CitySelect requires "axiosPeople" to fetch cities.
|
@@ -8793,13 +8809,13 @@ const F1 = {
|
|
8793
8809
|
async (b) => {
|
8794
8810
|
b ? R(!0) : v(!0);
|
8795
8811
|
try {
|
8796
|
-
const
|
8812
|
+
const H = {
|
8797
8813
|
offset: g.offset,
|
8798
8814
|
limit: g.limit
|
8799
8815
|
};
|
8800
|
-
e && e.length > 0 && (
|
8801
|
-
const I = await M.post("v1/cities/search",
|
8802
|
-
key:
|
8816
|
+
e && e.length > 0 && (H.countryId = e), b && (H.search = b);
|
8817
|
+
const I = await M.post("v1/cities/search", H), G = (I == null ? void 0 : I.data.data) || [], F = I == null ? void 0 : I.data.metadata.count, Y = G.map((V) => ({
|
8818
|
+
key: F1(),
|
8803
8819
|
label: V.name,
|
8804
8820
|
value: V.geoNameId
|
8805
8821
|
}));
|
@@ -8813,28 +8829,28 @@ const F1 = {
|
|
8813
8829
|
[M, g.offset, g.limit, e]
|
8814
8830
|
);
|
8815
8831
|
j(() => {
|
8816
|
-
a(
|
8832
|
+
a($1);
|
8817
8833
|
}, [e]), j(() => {
|
8818
8834
|
N();
|
8819
8835
|
}, [N, e]), j(() => {
|
8820
8836
|
t("");
|
8821
|
-
const b = p.map((
|
8822
|
-
key:
|
8823
|
-
label:
|
8824
|
-
value:
|
8837
|
+
const b = p.map((H) => ({
|
8838
|
+
key: F1(),
|
8839
|
+
label: H.name,
|
8840
|
+
value: H.geoNameId
|
8825
8841
|
}));
|
8826
8842
|
d(
|
8827
|
-
(
|
8843
|
+
(H) => g.offset === 0 ? b : [...H, ...b]
|
8828
8844
|
), B.current = e, s && t(s);
|
8829
8845
|
}, [e, t, s, p, g.offset]);
|
8830
8846
|
const T = I3(N), Q = K(
|
8831
8847
|
(b) => {
|
8832
|
-
a((
|
8848
|
+
a((H) => ({ ...H, offset: 0, search: b })), R(!0), T(b);
|
8833
8849
|
},
|
8834
8850
|
[T]
|
8835
8851
|
), $ = async (b) => {
|
8836
|
-
const { target:
|
8837
|
-
|
8852
|
+
const { target: H } = b;
|
8853
|
+
H.scrollTop + H.offsetHeight >= H.scrollHeight - 50 && h !== null && h > 0 && a((I) => ({
|
8838
8854
|
...I,
|
8839
8855
|
offset: I.offset + I.limit
|
8840
8856
|
}));
|
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;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%}}
|
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/city-select",
|
3
3
|
"private": false,
|
4
|
-
"version": "2.4.
|
4
|
+
"version": "2.4.2",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/city-select.js",
|
7
7
|
"types": "dist/index.d.ts",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
21
|
"@snmt-react-ui/core": "^2.1.0",
|
22
|
-
"@snmt-react-ui/select": "^1.14.
|
22
|
+
"@snmt-react-ui/select": "^1.14.2",
|
23
23
|
"i18next": "^23.11.5",
|
24
24
|
"react-i18next": "^14.1.1",
|
25
25
|
"uuid": "^10.0.0"
|
@@ -27,5 +27,5 @@
|
|
27
27
|
"peerDependencies": {
|
28
28
|
"antd": "^5.22.0"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "2a9889476119b7aa34318a0bc7dd3c1881294e9b"
|
31
31
|
}
|