@snmt-react-ui/city-select 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/city-select.js +144 -144
- package/package.json +3 -3
package/dist/city-select.js
CHANGED
@@ -5,7 +5,7 @@ import "./index.css";
|
|
5
5
|
import { jsx as r, Fragment as i1, jsxs as C } from "react/jsx-runtime";
|
6
6
|
import { SNMTUiContext as ke } from "@snmt-react-ui/core";
|
7
7
|
import { createContext as d1, forwardRef as k1, useState as A, useRef as F, useEffect as W, useCallback as D, useMemo as Le, useImperativeHandle as ne, useContext as r1 } from "react";
|
8
|
-
import { Select as ve, Flex as Ne, Avatar as xe, Checkbox as
|
8
|
+
import { Select as ve, Flex as Ne, Avatar as xe, Checkbox as Re, Typography as re, Tag as Me, Popover as ye } from "antd";
|
9
9
|
var be = Object.defineProperty, _e = (i, e, t) => e in i ? be(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Ee = (i, e, t) => _e(i, e + "", t), Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
10
10
|
function He() {
|
11
11
|
if (console && console.warn) {
|
@@ -128,7 +128,7 @@ const $e = (i, e) => {
|
|
128
128
|
} = c;
|
129
129
|
let g = i;
|
130
130
|
g = s1(g) ? [g] : g || ["translation"], l.reportNamespaces.addUsedNamespaces && l.reportNamespaces.addUsedNamespaces(g);
|
131
|
-
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => Oe(f, l, c)), h = Ye(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => le(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [v,
|
131
|
+
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => Oe(f, l, c)), h = Ye(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => le(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [v, M] = A(u);
|
132
132
|
let L = g.join();
|
133
133
|
e.lng && (L = `${e.lng}${L}`);
|
134
134
|
const E = $e(L), b = F(!0);
|
@@ -138,18 +138,18 @@ const $e = (i, e) => {
|
|
138
138
|
bindI18nStore: w
|
139
139
|
} = c;
|
140
140
|
b.current = !0, !a && !o && (e.lng ? D1(l, e.lng, g, () => {
|
141
|
-
b.current &&
|
141
|
+
b.current && M(p);
|
142
142
|
}) : j1(l, g, () => {
|
143
|
-
b.current &&
|
144
|
-
})), a && E && E !== L && b.current &&
|
143
|
+
b.current && M(p);
|
144
|
+
})), a && E && E !== L && b.current && M(p);
|
145
145
|
const N = () => {
|
146
|
-
b.current &&
|
146
|
+
b.current && M(p);
|
147
147
|
};
|
148
148
|
return f && l && l.on(f, N), w && l && l.store.on(w, N), () => {
|
149
149
|
b.current = !1, f && l && f.split(" ").forEach((m) => l.off(m, N)), w && l && w.split(" ").forEach((m) => l.store.off(m, N));
|
150
150
|
};
|
151
151
|
}, [l, L]), W(() => {
|
152
|
-
b.current && a &&
|
152
|
+
b.current && a && M(u);
|
153
153
|
}, [l, d, a]);
|
154
154
|
const V = [v, l, a];
|
155
155
|
if (V.t = v, V.i18n = l, V.ready = a, a || !a && !o) return V;
|
@@ -212,7 +212,7 @@ const ze = ({
|
|
212
212
|
}, [i, e]);
|
213
213
|
const { theme: a } = r1(B1);
|
214
214
|
return /* @__PURE__ */ r(
|
215
|
-
|
215
|
+
Re,
|
216
216
|
{
|
217
217
|
className: `snmt-checkbox snmt-checkbox-${a}`,
|
218
218
|
checked: c,
|
@@ -1253,7 +1253,7 @@ const Je = ({
|
|
1253
1253
|
)
|
1254
1254
|
]
|
1255
1255
|
}
|
1256
|
-
),
|
1256
|
+
), R2 = ({
|
1257
1257
|
width: i = 14,
|
1258
1258
|
height: e = 14,
|
1259
1259
|
color: t = "#10B981",
|
@@ -1282,7 +1282,7 @@ const Je = ({
|
|
1282
1282
|
)
|
1283
1283
|
]
|
1284
1284
|
}
|
1285
|
-
),
|
1285
|
+
), M2 = ({
|
1286
1286
|
width: i = 11,
|
1287
1287
|
height: e = 11,
|
1288
1288
|
color: t = "#FFB020",
|
@@ -3003,8 +3003,8 @@ const Je = ({
|
|
3003
3003
|
children: /* @__PURE__ */ r(
|
3004
3004
|
"path",
|
3005
3005
|
{
|
3006
|
-
|
3007
|
-
|
3006
|
+
fillRule: "evenodd",
|
3007
|
+
clipRule: "evenodd",
|
3008
3008
|
d: "M7.99994 13C10.7614 13 12.9999 10.7614 12.9999 8C12.9999 5.23858 10.7614 3 7.99994 3C5.23852 3 2.99994 5.23858 2.99994 8C2.99994 10.7614 5.23852 13 7.99994 13ZM5.73419 5.6757C5.92945 5.48044 6.24603 5.48044 6.4413 5.6757L8.02837 7.26277L9.56074 5.7304C9.756 5.53514 10.0726 5.53514 10.2678 5.7304C10.4631 5.92566 10.4631 6.24225 10.2678 6.43751L8.73548 7.96988L10.3254 9.55981C10.5207 9.75507 10.5207 10.0717 10.3254 10.2669C10.1301 10.4622 9.81357 10.4622 9.61831 10.2669L8.02837 8.67698L6.38373 10.3216C6.18847 10.5169 5.87189 10.5169 5.67663 10.3216C5.48136 10.1264 5.48136 9.80978 5.67663 9.61452L7.32126 7.96988L5.73419 6.3828C5.53893 6.18754 5.53893 5.87096 5.73419 5.6757Z",
|
3009
3009
|
fill: e
|
3010
3010
|
}
|
@@ -3027,11 +3027,11 @@ const Je = ({
|
|
3027
3027
|
fill: "none",
|
3028
3028
|
xmlns: "http://www.w3.org/2000/svg",
|
3029
3029
|
children: [
|
3030
|
-
/* @__PURE__ */ r("g", {
|
3030
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_3992_5989)", children: /* @__PURE__ */ r(
|
3031
3031
|
"path",
|
3032
3032
|
{
|
3033
|
-
|
3034
|
-
|
3033
|
+
fillRule: "evenodd",
|
3034
|
+
clipRule: "evenodd",
|
3035
3035
|
d: "M6.22724 7.50312C5.92425 7.80612 5.92425 8.29737 6.22724 8.60036L9.67552 12.0486C9.97851 12.3516 10.4698 12.3516 10.7728 12.0486L14.221 8.60036C14.524 8.29737 14.524 7.80612 14.221 7.50312C13.918 7.20013 13.4268 7.20013 13.1238 7.50312L10.2241 10.4028L7.32448 7.50312C7.02149 7.20013 6.53024 7.20013 6.22724 7.50312Z",
|
3036
3036
|
fill: e
|
3037
3037
|
}
|
@@ -3056,11 +3056,11 @@ const Je = ({
|
|
3056
3056
|
fill: "none",
|
3057
3057
|
xmlns: "http://www.w3.org/2000/svg",
|
3058
3058
|
children: [
|
3059
|
-
/* @__PURE__ */ r("g", {
|
3059
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_3992_5988)", children: /* @__PURE__ */ r(
|
3060
3060
|
"path",
|
3061
3061
|
{
|
3062
|
-
|
3063
|
-
|
3062
|
+
fillRule: "evenodd",
|
3063
|
+
clipRule: "evenodd",
|
3064
3064
|
d: "M13.7728 12.4969C14.0757 12.1939 14.0757 11.7026 13.7728 11.3996L10.3245 7.95137C10.0215 7.64837 9.53024 7.64837 9.22724 7.95137L5.77897 11.3996C5.47598 11.7026 5.47598 12.1939 5.77897 12.4969C6.08196 12.7999 6.57321 12.7999 6.8762 12.4969L9.77586 9.59722L12.6755 12.4969C12.9785 12.7999 13.4698 12.7999 13.7728 12.4969Z",
|
3065
3065
|
fill: e
|
3066
3066
|
}
|
@@ -3089,8 +3089,8 @@ const Je = ({
|
|
3089
3089
|
/* @__PURE__ */ r(
|
3090
3090
|
"path",
|
3091
3091
|
{
|
3092
|
-
|
3093
|
-
|
3092
|
+
fillRule: "evenodd",
|
3093
|
+
clipRule: "evenodd",
|
3094
3094
|
d: "M11.7728 6.22718C11.4698 5.92419 10.9785 5.92419 10.6755 6.22718L7.22724 9.67546C6.92425 9.97845 6.92425 10.4697 7.22724 10.7727L10.6755 14.221C10.9785 14.524 11.4698 14.524 11.7728 14.221C12.0757 13.918 12.0757 13.4267 11.7728 13.1237L8.8731 10.2241L11.7728 7.32442C12.0757 7.02143 12.0757 6.53018 11.7728 6.22718Z",
|
3095
3095
|
fill: e
|
3096
3096
|
}
|
@@ -3118,8 +3118,8 @@ const Je = ({
|
|
3118
3118
|
/* @__PURE__ */ r(
|
3119
3119
|
"path",
|
3120
3120
|
{
|
3121
|
-
|
3122
|
-
|
3121
|
+
fillRule: "evenodd",
|
3122
|
+
clipRule: "evenodd",
|
3123
3123
|
d: "M8.22724 13.7728C8.53024 14.0757 9.02149 14.0757 9.32448 13.7728L12.7728 10.3245C13.0757 10.0215 13.0757 9.53024 12.7728 9.22724L9.32448 5.77897C9.02149 5.47598 8.53024 5.47598 8.22724 5.77897C7.92425 6.08196 7.92425 6.57321 8.22724 6.8762L11.1269 9.77586L8.22724 12.6755C7.92425 12.9785 7.92425 13.4698 8.22724 13.7728Z",
|
3124
3124
|
fill: e
|
3125
3125
|
}
|
@@ -3145,8 +3145,8 @@ const Je = ({
|
|
3145
3145
|
children: /* @__PURE__ */ r(
|
3146
3146
|
"path",
|
3147
3147
|
{
|
3148
|
-
|
3149
|
-
|
3148
|
+
fillRule: "evenodd",
|
3149
|
+
clipRule: "evenodd",
|
3150
3150
|
d: "M20.75 7C20.75 7.19891 20.671 7.38968 20.5303 7.53033C20.3897 7.67098 20.1989 7.75 20 7.75H4C3.80109 7.75 3.61032 7.67098 3.46967 7.53033C3.32902 7.38968 3.25 7.19891 3.25 7C3.25 6.80109 3.32902 6.61032 3.46967 6.46967C3.61032 6.32902 3.80109 6.25 4 6.25H20C20.1989 6.25 20.3897 6.32902 20.5303 6.46967C20.671 6.61032 20.75 6.80109 20.75 7ZM20.75 12C20.75 12.1989 20.671 12.3897 20.5303 12.5303C20.3897 12.671 20.1989 12.75 20 12.75H4C3.80109 12.75 3.61032 12.671 3.46967 12.5303C3.32902 12.3897 3.25 12.1989 3.25 12C3.25 11.8011 3.32902 11.6103 3.46967 11.4697C3.61032 11.329 3.80109 11.25 4 11.25H20C20.1989 11.25 20.3897 11.329 20.5303 11.4697C20.671 11.6103 20.75 11.8011 20.75 12ZM20.75 17C20.75 17.1989 20.671 17.3897 20.5303 17.5303C20.3897 17.671 20.1989 17.75 20 17.75H4C3.80109 17.75 3.61032 17.671 3.46967 17.5303C3.32902 17.3897 3.25 17.1989 3.25 17C3.25 16.8011 3.32902 16.6103 3.46967 16.4697C3.61032 16.329 3.80109 16.25 4 16.25H20C20.1989 16.25 20.3897 16.329 20.5303 16.4697C20.671 16.6103 20.75 16.8011 20.75 17Z",
|
3151
3151
|
fill: e
|
3152
3152
|
}
|
@@ -3180,7 +3180,7 @@ const Je = ({
|
|
3180
3180
|
}
|
3181
3181
|
)
|
3182
3182
|
}
|
3183
|
-
),
|
3183
|
+
), Rt = ({
|
3184
3184
|
className: i,
|
3185
3185
|
color: e = "#001E52",
|
3186
3186
|
height: t = 24,
|
@@ -3218,7 +3218,7 @@ const Je = ({
|
|
3218
3218
|
)
|
3219
3219
|
] }) })
|
3220
3220
|
}
|
3221
|
-
),
|
3221
|
+
), Mt = ({
|
3222
3222
|
width: i = 20,
|
3223
3223
|
height: e = 20,
|
3224
3224
|
color: t = "#001E52",
|
@@ -3570,9 +3570,9 @@ const Je = ({
|
|
3570
3570
|
onClick: h
|
3571
3571
|
});
|
3572
3572
|
case "success":
|
3573
|
-
return
|
3573
|
+
return R2({ width: e, height: t, color: a, className: o, onClick: h });
|
3574
3574
|
case "attentionSmall":
|
3575
|
-
return
|
3575
|
+
return M2({
|
3576
3576
|
width: e,
|
3577
3577
|
height: t,
|
3578
3578
|
color: a,
|
@@ -3722,9 +3722,9 @@ const Je = ({
|
|
3722
3722
|
case "signOut":
|
3723
3723
|
return xt({ width: e, height: t, color: a, className: o, onClick: h });
|
3724
3724
|
case "refresh":
|
3725
|
-
return Mt({ width: e, height: t, color: a, className: o, onClick: h });
|
3726
|
-
case "projects":
|
3727
3725
|
return Rt({ width: e, height: t, color: a, className: o, onClick: h });
|
3726
|
+
case "projects":
|
3727
|
+
return Mt({ width: e, height: t, color: a, className: o, onClick: h });
|
3728
3728
|
case "exit":
|
3729
3729
|
return yt({ width: e, height: t, color: a, className: o, onClick: h });
|
3730
3730
|
case "client":
|
@@ -3780,7 +3780,7 @@ const Je = ({
|
|
3780
3780
|
);
|
3781
3781
|
}
|
3782
3782
|
);
|
3783
|
-
var
|
3783
|
+
var R = /* @__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))(R || {});
|
3784
3784
|
const he = d1({
|
3785
3785
|
locale: "en",
|
3786
3786
|
theme: "light"
|
@@ -5286,7 +5286,7 @@ const Bt = ({
|
|
5286
5286
|
)
|
5287
5287
|
]
|
5288
5288
|
}
|
5289
|
-
),
|
5289
|
+
), R5 = ({
|
5290
5290
|
width: i = 10,
|
5291
5291
|
height: e = 10,
|
5292
5292
|
color: t = "#001E52",
|
@@ -5323,10 +5323,10 @@ const Bt = ({
|
|
5323
5323
|
)
|
5324
5324
|
]
|
5325
5325
|
}
|
5326
|
-
),
|
5326
|
+
), M5 = ({
|
5327
5327
|
width: i = 24,
|
5328
5328
|
height: e = 24,
|
5329
|
-
color: t =
|
5329
|
+
color: t = R.GREY_DARK_5,
|
5330
5330
|
className: s,
|
5331
5331
|
onClick: n
|
5332
5332
|
}) => /* @__PURE__ */ C(
|
@@ -5365,7 +5365,7 @@ const Bt = ({
|
|
5365
5365
|
), y5 = ({
|
5366
5366
|
width: i = 20,
|
5367
5367
|
height: e = 20,
|
5368
|
-
color: t =
|
5368
|
+
color: t = R.GREY_DARK_1,
|
5369
5369
|
className: s,
|
5370
5370
|
onClick: n
|
5371
5371
|
}) => /* @__PURE__ */ C(
|
@@ -5398,7 +5398,7 @@ const Bt = ({
|
|
5398
5398
|
), b5 = ({
|
5399
5399
|
width: i = 81,
|
5400
5400
|
height: e = 80,
|
5401
|
-
color: t =
|
5401
|
+
color: t = R.GREY_DARK_5,
|
5402
5402
|
className: s,
|
5403
5403
|
onClick: n
|
5404
5404
|
}) => /* @__PURE__ */ C(
|
@@ -5446,7 +5446,7 @@ const Bt = ({
|
|
5446
5446
|
}
|
5447
5447
|
), _5 = ({
|
5448
5448
|
className: i,
|
5449
|
-
color: e =
|
5449
|
+
color: e = R.GREY_DARK_5,
|
5450
5450
|
height: t = 20,
|
5451
5451
|
width: s = 20,
|
5452
5452
|
onClick: n
|
@@ -5473,7 +5473,7 @@ const Bt = ({
|
|
5473
5473
|
}
|
5474
5474
|
), E5 = ({
|
5475
5475
|
className: i,
|
5476
|
-
color: e =
|
5476
|
+
color: e = R.GREY_DARK_5,
|
5477
5477
|
height: t = 20,
|
5478
5478
|
width: s = 20,
|
5479
5479
|
onClick: n
|
@@ -5500,7 +5500,7 @@ const Bt = ({
|
|
5500
5500
|
}
|
5501
5501
|
), V5 = ({
|
5502
5502
|
className: i,
|
5503
|
-
color: e =
|
5503
|
+
color: e = R.GREY_DARK_5,
|
5504
5504
|
height: t = 5,
|
5505
5505
|
width: s = 10,
|
5506
5506
|
onClick: n
|
@@ -5524,7 +5524,7 @@ const Bt = ({
|
|
5524
5524
|
}
|
5525
5525
|
), H5 = ({
|
5526
5526
|
className: i,
|
5527
|
-
color: e =
|
5527
|
+
color: e = R.GREY_DARK_5,
|
5528
5528
|
height: t = 5,
|
5529
5529
|
width: s = 10,
|
5530
5530
|
onClick: n
|
@@ -5549,7 +5549,7 @@ const Bt = ({
|
|
5549
5549
|
}
|
5550
5550
|
), I5 = ({
|
5551
5551
|
className: i,
|
5552
|
-
color: e =
|
5552
|
+
color: e = R.GREY_DARK_5,
|
5553
5553
|
height: t = 24,
|
5554
5554
|
width: s = 24,
|
5555
5555
|
onClick: n
|
@@ -5588,7 +5588,7 @@ const Bt = ({
|
|
5588
5588
|
}
|
5589
5589
|
), O5 = ({
|
5590
5590
|
className: i,
|
5591
|
-
color: e =
|
5591
|
+
color: e = R.GREY_DARK_5,
|
5592
5592
|
height: t = 24,
|
5593
5593
|
width: s = 24,
|
5594
5594
|
onClick: n
|
@@ -5627,7 +5627,7 @@ const Bt = ({
|
|
5627
5627
|
}
|
5628
5628
|
), S5 = ({
|
5629
5629
|
className: i,
|
5630
|
-
color: e =
|
5630
|
+
color: e = R.GREY_DARK_5,
|
5631
5631
|
height: t = 24,
|
5632
5632
|
width: s = 24,
|
5633
5633
|
onClick: n
|
@@ -5654,7 +5654,7 @@ const Bt = ({
|
|
5654
5654
|
}
|
5655
5655
|
), A5 = ({
|
5656
5656
|
className: i,
|
5657
|
-
color: e =
|
5657
|
+
color: e = R.GREY_DARK_5,
|
5658
5658
|
height: t = 24,
|
5659
5659
|
width: s = 24,
|
5660
5660
|
onClick: n
|
@@ -5713,7 +5713,7 @@ const Bt = ({
|
|
5713
5713
|
}
|
5714
5714
|
), B5 = ({
|
5715
5715
|
className: i,
|
5716
|
-
color: e =
|
5716
|
+
color: e = R.GREY_DARK_5,
|
5717
5717
|
height: t = 24,
|
5718
5718
|
width: s = 24,
|
5719
5719
|
onClick: n
|
@@ -5750,7 +5750,7 @@ const Bt = ({
|
|
5750
5750
|
}
|
5751
5751
|
), Z5 = ({
|
5752
5752
|
className: i,
|
5753
|
-
color: e =
|
5753
|
+
color: e = R.GREY_DARK_3,
|
5754
5754
|
height: t = 14,
|
5755
5755
|
width: s = 14,
|
5756
5756
|
onClick: n
|
@@ -5787,7 +5787,7 @@ const Bt = ({
|
|
5787
5787
|
}
|
5788
5788
|
), W5 = ({
|
5789
5789
|
className: i,
|
5790
|
-
color: e =
|
5790
|
+
color: e = R.GREY_DARK_5,
|
5791
5791
|
height: t = 18,
|
5792
5792
|
onClick: s,
|
5793
5793
|
width: n = 18
|
@@ -5814,7 +5814,7 @@ const Bt = ({
|
|
5814
5814
|
}
|
5815
5815
|
), j5 = ({
|
5816
5816
|
className: i,
|
5817
|
-
color: e =
|
5817
|
+
color: e = R.GREY_DARK_5,
|
5818
5818
|
height: t = 24,
|
5819
5819
|
width: s = 24,
|
5820
5820
|
onClick: n
|
@@ -5866,7 +5866,7 @@ const Bt = ({
|
|
5866
5866
|
}
|
5867
5867
|
), D5 = ({
|
5868
5868
|
className: i,
|
5869
|
-
color: e =
|
5869
|
+
color: e = R.GREY_DARK_5,
|
5870
5870
|
height: t = 24,
|
5871
5871
|
width: s = 24,
|
5872
5872
|
onClick: n
|
@@ -5903,7 +5903,7 @@ const Bt = ({
|
|
5903
5903
|
}
|
5904
5904
|
), T5 = ({
|
5905
5905
|
className: i,
|
5906
|
-
color: e =
|
5906
|
+
color: e = R.NOTIFICATION_WARNING_DARK,
|
5907
5907
|
height: t = 37,
|
5908
5908
|
width: s = 36,
|
5909
5909
|
onClick: n
|
@@ -5942,7 +5942,7 @@ const Bt = ({
|
|
5942
5942
|
}
|
5943
5943
|
), G5 = ({
|
5944
5944
|
className: i,
|
5945
|
-
color: e =
|
5945
|
+
color: e = R.GREY_DARK_5,
|
5946
5946
|
height: t = 24,
|
5947
5947
|
width: s = 24,
|
5948
5948
|
onClick: n
|
@@ -5968,7 +5968,7 @@ const Bt = ({
|
|
5968
5968
|
}
|
5969
5969
|
), K5 = ({
|
5970
5970
|
className: i,
|
5971
|
-
color: e =
|
5971
|
+
color: e = R.GREY_DARK_5,
|
5972
5972
|
height: t = 24,
|
5973
5973
|
width: s = 24,
|
5974
5974
|
onClick: n
|
@@ -6007,7 +6007,7 @@ const Bt = ({
|
|
6007
6007
|
}
|
6008
6008
|
), P5 = ({
|
6009
6009
|
className: i,
|
6010
|
-
color: e =
|
6010
|
+
color: e = R.GREY_DARK_5,
|
6011
6011
|
height: t = 24,
|
6012
6012
|
width: s = 24,
|
6013
6013
|
onClick: n
|
@@ -6046,7 +6046,7 @@ const Bt = ({
|
|
6046
6046
|
}
|
6047
6047
|
), $5 = ({
|
6048
6048
|
className: i,
|
6049
|
-
color: e =
|
6049
|
+
color: e = R.GREY_DARK_5,
|
6050
6050
|
height: t = 24,
|
6051
6051
|
width: s = 24,
|
6052
6052
|
onClick: n
|
@@ -6115,7 +6115,7 @@ const Bt = ({
|
|
6115
6115
|
}
|
6116
6116
|
), Y5 = ({
|
6117
6117
|
className: i,
|
6118
|
-
color: e =
|
6118
|
+
color: e = R.GREY_DARK_5,
|
6119
6119
|
height: t = 24,
|
6120
6120
|
width: s = 24,
|
6121
6121
|
onClick: n
|
@@ -6154,7 +6154,7 @@ const Bt = ({
|
|
6154
6154
|
}
|
6155
6155
|
), F5 = ({
|
6156
6156
|
className: i,
|
6157
|
-
color: e =
|
6157
|
+
color: e = R.GREY_DARK_5,
|
6158
6158
|
height: t = 24,
|
6159
6159
|
width: s = 24,
|
6160
6160
|
onClick: n
|
@@ -6211,7 +6211,7 @@ const Bt = ({
|
|
6211
6211
|
}
|
6212
6212
|
), U5 = ({
|
6213
6213
|
className: i,
|
6214
|
-
color: e =
|
6214
|
+
color: e = R.GREY_DARK_5,
|
6215
6215
|
height: t = 24,
|
6216
6216
|
width: s = 24,
|
6217
6217
|
onClick: n
|
@@ -6250,7 +6250,7 @@ const Bt = ({
|
|
6250
6250
|
}
|
6251
6251
|
), z5 = ({
|
6252
6252
|
className: i,
|
6253
|
-
color: e =
|
6253
|
+
color: e = R.GREY_DARK_5,
|
6254
6254
|
height: t = 24,
|
6255
6255
|
width: s = 24,
|
6256
6256
|
onClick: n
|
@@ -6299,7 +6299,7 @@ const Bt = ({
|
|
6299
6299
|
}
|
6300
6300
|
), J5 = ({
|
6301
6301
|
className: i,
|
6302
|
-
color: e =
|
6302
|
+
color: e = R.GREY_DARK_5,
|
6303
6303
|
height: t = 24,
|
6304
6304
|
width: s = 24,
|
6305
6305
|
onClick: n
|
@@ -6338,7 +6338,7 @@ const Bt = ({
|
|
6338
6338
|
}
|
6339
6339
|
), q5 = ({
|
6340
6340
|
className: i,
|
6341
|
-
color: e =
|
6341
|
+
color: e = R.GREY_DARK_5,
|
6342
6342
|
height: t = 24,
|
6343
6343
|
width: s = 24,
|
6344
6344
|
onClick: n
|
@@ -6365,7 +6365,7 @@ const Bt = ({
|
|
6365
6365
|
}
|
6366
6366
|
), Q5 = ({
|
6367
6367
|
className: i,
|
6368
|
-
color: e =
|
6368
|
+
color: e = R.GREY_DARK_5,
|
6369
6369
|
height: t = 24,
|
6370
6370
|
width: s = 24,
|
6371
6371
|
onClick: n
|
@@ -6403,7 +6403,7 @@ const Bt = ({
|
|
6403
6403
|
}
|
6404
6404
|
), X5 = ({
|
6405
6405
|
className: i,
|
6406
|
-
color: e =
|
6406
|
+
color: e = R.GREY_DARK_5,
|
6407
6407
|
height: t = 24,
|
6408
6408
|
width: s = 24,
|
6409
6409
|
onClick: n
|
@@ -6424,7 +6424,7 @@ const Bt = ({
|
|
6424
6424
|
}
|
6425
6425
|
), e3 = ({
|
6426
6426
|
className: i,
|
6427
|
-
color: e =
|
6427
|
+
color: e = R.GREY_DARK_5,
|
6428
6428
|
height: t = 24,
|
6429
6429
|
width: s = 24,
|
6430
6430
|
onClick: n
|
@@ -6463,7 +6463,7 @@ const Bt = ({
|
|
6463
6463
|
}
|
6464
6464
|
), t3 = ({
|
6465
6465
|
className: i,
|
6466
|
-
color: e =
|
6466
|
+
color: e = R.GREY_DARK_5,
|
6467
6467
|
height: t = 24,
|
6468
6468
|
width: s = 24,
|
6469
6469
|
onClick: n
|
@@ -6502,7 +6502,7 @@ const Bt = ({
|
|
6502
6502
|
}
|
6503
6503
|
), i3 = ({
|
6504
6504
|
className: i,
|
6505
|
-
color: e =
|
6505
|
+
color: e = R.GREY_DARK_5,
|
6506
6506
|
height: t = 24,
|
6507
6507
|
width: s = 24,
|
6508
6508
|
onClick: n
|
@@ -6541,7 +6541,7 @@ const Bt = ({
|
|
6541
6541
|
}
|
6542
6542
|
), s3 = ({
|
6543
6543
|
className: i,
|
6544
|
-
color: e =
|
6544
|
+
color: e = R.GREY_DARK_2,
|
6545
6545
|
height: t = 16,
|
6546
6546
|
width: s = 16,
|
6547
6547
|
onClick: n
|
@@ -6558,8 +6558,8 @@ const Bt = ({
|
|
6558
6558
|
children: /* @__PURE__ */ r(
|
6559
6559
|
"path",
|
6560
6560
|
{
|
6561
|
-
|
6562
|
-
|
6561
|
+
fillRule: "evenodd",
|
6562
|
+
clipRule: "evenodd",
|
6563
6563
|
d: "M7.99994 13C10.7614 13 12.9999 10.7614 12.9999 8C12.9999 5.23858 10.7614 3 7.99994 3C5.23852 3 2.99994 5.23858 2.99994 8C2.99994 10.7614 5.23852 13 7.99994 13ZM5.73419 5.6757C5.92945 5.48044 6.24603 5.48044 6.4413 5.6757L8.02837 7.26277L9.56074 5.7304C9.756 5.53514 10.0726 5.53514 10.2678 5.7304C10.4631 5.92566 10.4631 6.24225 10.2678 6.43751L8.73548 7.96988L10.3254 9.55981C10.5207 9.75507 10.5207 10.0717 10.3254 10.2669C10.1301 10.4622 9.81357 10.4622 9.61831 10.2669L8.02837 8.67698L6.38373 10.3216C6.18847 10.5169 5.87189 10.5169 5.67663 10.3216C5.48136 10.1264 5.48136 9.80978 5.67663 9.61452L7.32126 7.96988L5.73419 6.3828C5.53893 6.18754 5.53893 5.87096 5.73419 5.6757Z",
|
6564
6564
|
fill: e
|
6565
6565
|
}
|
@@ -6567,7 +6567,7 @@ const Bt = ({
|
|
6567
6567
|
}
|
6568
6568
|
), n3 = ({
|
6569
6569
|
className: i,
|
6570
|
-
color: e =
|
6570
|
+
color: e = R.GREY_DARK_5,
|
6571
6571
|
height: t = 20,
|
6572
6572
|
width: s = 20,
|
6573
6573
|
onClick: n
|
@@ -6582,11 +6582,11 @@ const Bt = ({
|
|
6582
6582
|
fill: "none",
|
6583
6583
|
xmlns: "http://www.w3.org/2000/svg",
|
6584
6584
|
children: [
|
6585
|
-
/* @__PURE__ */ r("g", {
|
6585
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_3992_5989)", children: /* @__PURE__ */ r(
|
6586
6586
|
"path",
|
6587
6587
|
{
|
6588
|
-
|
6589
|
-
|
6588
|
+
fillRule: "evenodd",
|
6589
|
+
clipRule: "evenodd",
|
6590
6590
|
d: "M6.22724 7.50312C5.92425 7.80612 5.92425 8.29737 6.22724 8.60036L9.67552 12.0486C9.97851 12.3516 10.4698 12.3516 10.7728 12.0486L14.221 8.60036C14.524 8.29737 14.524 7.80612 14.221 7.50312C13.918 7.20013 13.4268 7.20013 13.1238 7.50312L10.2241 10.4028L7.32448 7.50312C7.02149 7.20013 6.53024 7.20013 6.22724 7.50312Z",
|
6591
6591
|
fill: e
|
6592
6592
|
}
|
@@ -6596,7 +6596,7 @@ const Bt = ({
|
|
6596
6596
|
}
|
6597
6597
|
), r3 = ({
|
6598
6598
|
className: i,
|
6599
|
-
color: e =
|
6599
|
+
color: e = R.GREY_DARK_5,
|
6600
6600
|
height: t = 20,
|
6601
6601
|
width: s = 20,
|
6602
6602
|
onClick: n
|
@@ -6611,11 +6611,11 @@ const Bt = ({
|
|
6611
6611
|
fill: "none",
|
6612
6612
|
xmlns: "http://www.w3.org/2000/svg",
|
6613
6613
|
children: [
|
6614
|
-
/* @__PURE__ */ r("g", {
|
6614
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_3992_5988)", children: /* @__PURE__ */ r(
|
6615
6615
|
"path",
|
6616
6616
|
{
|
6617
|
-
|
6618
|
-
|
6617
|
+
fillRule: "evenodd",
|
6618
|
+
clipRule: "evenodd",
|
6619
6619
|
d: "M13.7728 12.4969C14.0757 12.1939 14.0757 11.7026 13.7728 11.3996L10.3245 7.95137C10.0215 7.64837 9.53024 7.64837 9.22724 7.95137L5.77897 11.3996C5.47598 11.7026 5.47598 12.1939 5.77897 12.4969C6.08196 12.7999 6.57321 12.7999 6.8762 12.4969L9.77586 9.59722L12.6755 12.4969C12.9785 12.7999 13.4698 12.7999 13.7728 12.4969Z",
|
6620
6620
|
fill: e
|
6621
6621
|
}
|
@@ -6625,7 +6625,7 @@ const Bt = ({
|
|
6625
6625
|
}
|
6626
6626
|
), o3 = ({
|
6627
6627
|
className: i,
|
6628
|
-
color: e =
|
6628
|
+
color: e = R.GREY_DARK_5,
|
6629
6629
|
height: t = 20,
|
6630
6630
|
width: s = 20,
|
6631
6631
|
onClick: n
|
@@ -6640,12 +6640,12 @@ const Bt = ({
|
|
6640
6640
|
fill: "none",
|
6641
6641
|
xmlns: "http://www.w3.org/2000/svg",
|
6642
6642
|
children: [
|
6643
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
6643
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: R.GREY_LIGHT_2 }),
|
6644
6644
|
/* @__PURE__ */ r(
|
6645
6645
|
"path",
|
6646
6646
|
{
|
6647
|
-
|
6648
|
-
|
6647
|
+
fillRule: "evenodd",
|
6648
|
+
clipRule: "evenodd",
|
6649
6649
|
d: "M11.7728 6.22718C11.4698 5.92419 10.9785 5.92419 10.6755 6.22718L7.22724 9.67546C6.92425 9.97845 6.92425 10.4697 7.22724 10.7727L10.6755 14.221C10.9785 14.524 11.4698 14.524 11.7728 14.221C12.0757 13.918 12.0757 13.4267 11.7728 13.1237L8.8731 10.2241L11.7728 7.32442C12.0757 7.02143 12.0757 6.53018 11.7728 6.22718Z",
|
6650
6650
|
fill: e
|
6651
6651
|
}
|
@@ -6654,7 +6654,7 @@ const Bt = ({
|
|
6654
6654
|
}
|
6655
6655
|
), l3 = ({
|
6656
6656
|
className: i,
|
6657
|
-
color: e =
|
6657
|
+
color: e = R.GREY_DARK_5,
|
6658
6658
|
height: t = 20,
|
6659
6659
|
width: s = 20,
|
6660
6660
|
onClick: n
|
@@ -6669,12 +6669,12 @@ const Bt = ({
|
|
6669
6669
|
fill: "none",
|
6670
6670
|
xmlns: "http://www.w3.org/2000/svg",
|
6671
6671
|
children: [
|
6672
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
6672
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: R.GREY_LIGHT_2 }),
|
6673
6673
|
/* @__PURE__ */ r(
|
6674
6674
|
"path",
|
6675
6675
|
{
|
6676
|
-
|
6677
|
-
|
6676
|
+
fillRule: "evenodd",
|
6677
|
+
clipRule: "evenodd",
|
6678
6678
|
d: "M8.22724 13.7728C8.53024 14.0757 9.02149 14.0757 9.32448 13.7728L12.7728 10.3245C13.0757 10.0215 13.0757 9.53024 12.7728 9.22724L9.32448 5.77897C9.02149 5.47598 8.53024 5.47598 8.22724 5.77897C7.92425 6.08196 7.92425 6.57321 8.22724 6.8762L11.1269 9.77586L8.22724 12.6755C7.92425 12.9785 7.92425 13.4698 8.22724 13.7728Z",
|
6679
6679
|
fill: e
|
6680
6680
|
}
|
@@ -6700,8 +6700,8 @@ const Bt = ({
|
|
6700
6700
|
children: /* @__PURE__ */ r(
|
6701
6701
|
"path",
|
6702
6702
|
{
|
6703
|
-
|
6704
|
-
|
6703
|
+
fillRule: "evenodd",
|
6704
|
+
clipRule: "evenodd",
|
6705
6705
|
d: "M20.75 7C20.75 7.19891 20.671 7.38968 20.5303 7.53033C20.3897 7.67098 20.1989 7.75 20 7.75H4C3.80109 7.75 3.61032 7.67098 3.46967 7.53033C3.32902 7.38968 3.25 7.19891 3.25 7C3.25 6.80109 3.32902 6.61032 3.46967 6.46967C3.61032 6.32902 3.80109 6.25 4 6.25H20C20.1989 6.25 20.3897 6.32902 20.5303 6.46967C20.671 6.61032 20.75 6.80109 20.75 7ZM20.75 12C20.75 12.1989 20.671 12.3897 20.5303 12.5303C20.3897 12.671 20.1989 12.75 20 12.75H4C3.80109 12.75 3.61032 12.671 3.46967 12.5303C3.32902 12.3897 3.25 12.1989 3.25 12C3.25 11.8011 3.32902 11.6103 3.46967 11.4697C3.61032 11.329 3.80109 11.25 4 11.25H20C20.1989 11.25 20.3897 11.329 20.5303 11.4697C20.671 11.6103 20.75 11.8011 20.75 12ZM20.75 17C20.75 17.1989 20.671 17.3897 20.5303 17.5303C20.3897 17.671 20.1989 17.75 20 17.75H4C3.80109 17.75 3.61032 17.671 3.46967 17.5303C3.32902 17.3897 3.25 17.1989 3.25 17C3.25 16.8011 3.32902 16.6103 3.46967 16.4697C3.61032 16.329 3.80109 16.25 4 16.25H20C20.1989 16.25 20.3897 16.329 20.5303 16.4697C20.671 16.6103 20.75 16.8011 20.75 17Z",
|
6706
6706
|
fill: e
|
6707
6707
|
}
|
@@ -6865,7 +6865,7 @@ const Bt = ({
|
|
6865
6865
|
), C3 = ({
|
6866
6866
|
width: i = 24,
|
6867
6867
|
height: e = 24,
|
6868
|
-
color: t =
|
6868
|
+
color: t = R.GREY_DARK_2,
|
6869
6869
|
className: s,
|
6870
6870
|
onClick: n
|
6871
6871
|
}) => /* @__PURE__ */ C(
|
@@ -6904,7 +6904,7 @@ const Bt = ({
|
|
6904
6904
|
), u3 = ({
|
6905
6905
|
width: i = 24,
|
6906
6906
|
height: e = 24,
|
6907
|
-
color: t =
|
6907
|
+
color: t = R.GREY_DARK_2,
|
6908
6908
|
className: s,
|
6909
6909
|
onClick: n
|
6910
6910
|
}) => /* @__PURE__ */ r(
|
@@ -6931,7 +6931,7 @@ const Bt = ({
|
|
6931
6931
|
), p3 = ({
|
6932
6932
|
width: i = 24,
|
6933
6933
|
height: e = 24,
|
6934
|
-
color: t =
|
6934
|
+
color: t = R.GREY_DARK_2,
|
6935
6935
|
className: s,
|
6936
6936
|
onClick: n
|
6937
6937
|
}) => /* @__PURE__ */ C(
|
@@ -6971,7 +6971,7 @@ const Bt = ({
|
|
6971
6971
|
), f3 = ({
|
6972
6972
|
width: i = 24,
|
6973
6973
|
height: e = 24,
|
6974
|
-
color: t =
|
6974
|
+
color: t = R.GREY_DARK_2,
|
6975
6975
|
className: s,
|
6976
6976
|
onClick: n
|
6977
6977
|
}) => /* @__PURE__ */ r(
|
@@ -6998,7 +6998,7 @@ const Bt = ({
|
|
6998
6998
|
), w3 = ({
|
6999
6999
|
width: i = 24,
|
7000
7000
|
height: e = 24,
|
7001
|
-
color: t =
|
7001
|
+
color: t = R.GREY_DARK_2,
|
7002
7002
|
className: s,
|
7003
7003
|
onClick: n
|
7004
7004
|
}) => /* @__PURE__ */ r(
|
@@ -7031,7 +7031,7 @@ const Bt = ({
|
|
7031
7031
|
disabled: l = !1,
|
7032
7032
|
onClick: c
|
7033
7033
|
}) => {
|
7034
|
-
const [o, d] = A(n), { theme: g } = r1(he), a = l ? g && g === "dark" ?
|
7034
|
+
const [o, d] = A(n), { theme: g } = r1(he), a = l ? g && g === "dark" ? R.GREY_LIGHT_4 : R.GREY_DARK_1 : s, h = l ? void 0 : c;
|
7035
7035
|
return W(() => {
|
7036
7036
|
if (n) {
|
7037
7037
|
h && !l && d(`${n} clickable`);
|
@@ -7201,9 +7201,9 @@ const Bt = ({
|
|
7201
7201
|
case "sortUp":
|
7202
7202
|
return x5({ width: e, height: t, color: a, className: o, onClick: h });
|
7203
7203
|
case "sortDown":
|
7204
|
-
return M5({ width: e, height: t, color: a, className: o, onClick: h });
|
7205
|
-
case "logOut2":
|
7206
7204
|
return R5({ width: e, height: t, color: a, className: o, onClick: h });
|
7205
|
+
case "logOut2":
|
7206
|
+
return M5({ width: e, height: t, color: a, className: o, onClick: h });
|
7207
7207
|
case "search":
|
7208
7208
|
return y5({ width: e, height: t, color: a, className: o, onClick: h });
|
7209
7209
|
case "handRock":
|
@@ -7315,7 +7315,7 @@ const ce = ({
|
|
7315
7315
|
l || s == null || s();
|
7316
7316
|
};
|
7317
7317
|
return /* @__PURE__ */ r(
|
7318
|
-
|
7318
|
+
Me,
|
7319
7319
|
{
|
7320
7320
|
className: `snmt-tag ${t} ${l ? "disabled" : ""}`,
|
7321
7321
|
closeIcon: /* @__PURE__ */ r(
|
@@ -7379,7 +7379,7 @@ const ce = ({
|
|
7379
7379
|
}
|
7380
7380
|
);
|
7381
7381
|
}
|
7382
|
-
),
|
7382
|
+
), R3 = ({
|
7383
7383
|
children: i,
|
7384
7384
|
content: e,
|
7385
7385
|
isOpen: t,
|
@@ -7404,7 +7404,7 @@ const ce = ({
|
|
7404
7404
|
}
|
7405
7405
|
);
|
7406
7406
|
};
|
7407
|
-
var
|
7407
|
+
var M3 = { exports: {} };
|
7408
7408
|
(function(i, e) {
|
7409
7409
|
(function(t, s) {
|
7410
7410
|
i.exports = s();
|
@@ -7414,7 +7414,7 @@ var R3 = { exports: {} };
|
|
7414
7414
|
return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
|
7415
7415
|
} };
|
7416
7416
|
});
|
7417
|
-
})(
|
7417
|
+
})(M3);
|
7418
7418
|
const y3 = ({
|
7419
7419
|
values: i,
|
7420
7420
|
onTagClose: e,
|
@@ -7431,10 +7431,10 @@ const y3 = ({
|
|
7431
7431
|
return null;
|
7432
7432
|
const h = (u) => {
|
7433
7433
|
var p, v;
|
7434
|
-
return ((p = l == null ? void 0 : l.find((
|
7434
|
+
return ((p = l == null ? void 0 : l.find((M) => M.value === u)) == null ? void 0 : p.label) || ((v = c == null ? void 0 : c.find((M) => M.value === u)) == null ? void 0 : v.label) || u;
|
7435
7435
|
};
|
7436
7436
|
return /* @__PURE__ */ C(
|
7437
|
-
|
7437
|
+
R3,
|
7438
7438
|
{
|
7439
7439
|
content: (
|
7440
7440
|
// 90: paddings + margins + gaps and so on
|
@@ -7484,7 +7484,7 @@ const y3 = ({
|
|
7484
7484
|
onDropdownVisibleChange: u,
|
7485
7485
|
onScrollToEnd: p,
|
7486
7486
|
onPopupScroll: v,
|
7487
|
-
id:
|
7487
|
+
id: M,
|
7488
7488
|
extraOptions: L,
|
7489
7489
|
dropdownRender: E,
|
7490
7490
|
optionRender: b,
|
@@ -7585,7 +7585,7 @@ const y3 = ({
|
|
7585
7585
|
{
|
7586
7586
|
className: "snmt-select-blank",
|
7587
7587
|
popupClassName: f ? "dropdown-read-only" : "",
|
7588
|
-
id:
|
7588
|
+
id: M,
|
7589
7589
|
ref: N,
|
7590
7590
|
showSearch: !!n,
|
7591
7591
|
filterOption: n && X,
|
@@ -7718,7 +7718,7 @@ const E1 = 100, a1 = {
|
|
7718
7718
|
onDropdownVisibleChange: u,
|
7719
7719
|
optionRender: p,
|
7720
7720
|
dropdownRender: v,
|
7721
|
-
readOnly:
|
7721
|
+
readOnly: M,
|
7722
7722
|
clearable: L = !1,
|
7723
7723
|
required: E = !1,
|
7724
7724
|
error: b
|
@@ -7822,7 +7822,7 @@ const E1 = 100, a1 = {
|
|
7822
7822
|
isLoading: H,
|
7823
7823
|
optionRender: p,
|
7824
7824
|
dropdownRender: v,
|
7825
|
-
readOnly:
|
7825
|
+
readOnly: M,
|
7826
7826
|
clearable: L,
|
7827
7827
|
required: E,
|
7828
7828
|
error: b
|
@@ -7844,7 +7844,7 @@ const E1 = 100, a1 = {
|
|
7844
7844
|
H,
|
7845
7845
|
p,
|
7846
7846
|
v,
|
7847
|
-
|
7847
|
+
M,
|
7848
7848
|
L,
|
7849
7849
|
E,
|
7850
7850
|
b
|
@@ -7897,7 +7897,7 @@ const E1 = 100, a1 = {
|
|
7897
7897
|
k: l
|
7898
7898
|
} = w1(i, e, Object);
|
7899
7899
|
n[l] = n[l] || [], n[l].push(t);
|
7900
|
-
},
|
7900
|
+
}, R1 = (i, e) => {
|
7901
7901
|
const {
|
7902
7902
|
obj: t,
|
7903
7903
|
k: s
|
@@ -7905,8 +7905,8 @@ const E1 = 100, a1 = {
|
|
7905
7905
|
if (t)
|
7906
7906
|
return t[s];
|
7907
7907
|
}, I3 = (i, e, t) => {
|
7908
|
-
const s =
|
7909
|
-
return s !== void 0 ? s :
|
7908
|
+
const s = R1(i, t);
|
7909
|
+
return s !== void 0 ? s : R1(e, t);
|
7910
7910
|
}, de = (i, e, t) => {
|
7911
7911
|
for (const s in e)
|
7912
7912
|
s !== "__proto__" && s !== "constructor" && (s in i ? y(i[s]) || i[s] instanceof String || y(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : de(i[s], e[s], t) : i[s] = e[s]);
|
@@ -7964,7 +7964,7 @@ const B3 = [" ", ",", "?", "!", ";"], Z3 = new A3(20), W3 = (i, e, t) => {
|
|
7964
7964
|
n = c;
|
7965
7965
|
}
|
7966
7966
|
return n;
|
7967
|
-
},
|
7967
|
+
}, M1 = (i) => i && i.replace("_", "-"), j3 = {
|
7968
7968
|
type: "logger",
|
7969
7969
|
log(i) {
|
7970
7970
|
this.output("log", i);
|
@@ -8076,7 +8076,7 @@ class U1 extends _1 {
|
|
8076
8076
|
const l = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
8077
8077
|
let o;
|
8078
8078
|
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], s && (Array.isArray(s) ? o.push(...s) : y(s) && l ? o.push(...s.split(l)) : o.push(s)));
|
8079
|
-
const d =
|
8079
|
+
const d = R1(this.data, o);
|
8080
8080
|
return !d && !t && !s && e.indexOf(".") > -1 && (e = o[0], t = o[1], s = o.slice(2).join(".")), d || !c || !y(s) ? d : O1(this.data && this.data[e] && this.data[e][t], s, l);
|
8081
8081
|
}
|
8082
8082
|
addResource(e, t, s, n) {
|
@@ -8103,7 +8103,7 @@ class U1 extends _1 {
|
|
8103
8103
|
skipCopy: !1
|
8104
8104
|
}, o = [e, t];
|
8105
8105
|
e.indexOf(".") > -1 && (o = e.split("."), n = s, s = t, t = o[1]), this.addNamespaces(t);
|
8106
|
-
let d =
|
8106
|
+
let d = R1(this.data, o) || {};
|
8107
8107
|
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? de(d, s, l) : d = {
|
8108
8108
|
...d,
|
8109
8109
|
...s
|
@@ -8213,8 +8213,8 @@ class b1 extends _1 {
|
|
8213
8213
|
}
|
8214
8214
|
const h = this.resolve(e, t);
|
8215
8215
|
let u = h && h.res;
|
8216
|
-
const p = h && h.usedKey || c, v = h && h.exactUsedKey || c,
|
8217
|
-
if (b && u && V && L.indexOf(
|
8216
|
+
const p = h && h.usedKey || c, v = h && h.exactUsedKey || c, M = Object.prototype.toString.apply(u), L = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject, V = !y(u) && typeof u != "boolean" && typeof u != "number";
|
8217
|
+
if (b && u && V && L.indexOf(M) < 0 && !(y(E) && Array.isArray(u))) {
|
8218
8218
|
if (!t.returnObjects && !this.options.returnObjects) {
|
8219
8219
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
8220
8220
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
|
@@ -8328,9 +8328,9 @@ class b1 extends _1 {
|
|
8328
8328
|
n = a;
|
8329
8329
|
let h = g.namespaces;
|
8330
8330
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
8331
|
-
const u = t.count !== void 0 && !y(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), v = t.context !== void 0 && (y(t.context) || typeof t.context == "number") && t.context !== "",
|
8331
|
+
const u = t.count !== void 0 && !y(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), v = t.context !== void 0 && (y(t.context) || typeof t.context == "number") && t.context !== "", M = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
8332
8332
|
h.forEach((L) => {
|
8333
|
-
this.isValidLookup(s) || (o = L, !z1[`${
|
8333
|
+
this.isValidLookup(s) || (o = L, !z1[`${M[0]}-${L}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (z1[`${M[0]}-${L}`] = !0, this.logger.warn(`key "${n}" for languages "${M.join(", ")}" won't get resolved as namespace "${o}" 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!!!")), M.forEach((E) => {
|
8334
8334
|
if (this.isValidLookup(s)) return;
|
8335
8335
|
c = E;
|
8336
8336
|
const b = [a];
|
@@ -8395,12 +8395,12 @@ class J1 {
|
|
8395
8395
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = z.create("languageUtils");
|
8396
8396
|
}
|
8397
8397
|
getScriptPartFromCode(e) {
|
8398
|
-
if (e =
|
8398
|
+
if (e = M1(e), !e || e.indexOf("-") < 0) return null;
|
8399
8399
|
const t = e.split("-");
|
8400
8400
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
8401
8401
|
}
|
8402
8402
|
getLanguagePartFromCode(e) {
|
8403
|
-
if (e =
|
8403
|
+
if (e = M1(e), !e || e.indexOf("-") < 0) return e;
|
8404
8404
|
const t = e.split("-");
|
8405
8405
|
return this.formatLanguageCode(t[0]);
|
8406
8406
|
}
|
@@ -8603,7 +8603,7 @@ class $3 {
|
|
8603
8603
|
getRule(e) {
|
8604
8604
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
8605
8605
|
if (this.shouldUseIntlApi()) {
|
8606
|
-
const s =
|
8606
|
+
const s = M1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", l = JSON.stringify({
|
8607
8607
|
cleanedCode: s,
|
8608
8608
|
type: n
|
8609
8609
|
});
|
@@ -8681,12 +8681,12 @@ class Y3 {
|
|
8681
8681
|
nestingPrefix: u,
|
8682
8682
|
nestingPrefixEscaped: p,
|
8683
8683
|
nestingSuffix: v,
|
8684
|
-
nestingSuffixEscaped:
|
8684
|
+
nestingSuffixEscaped: M,
|
8685
8685
|
nestingOptionsSeparator: L,
|
8686
8686
|
maxReplaces: E,
|
8687
8687
|
alwaysFormat: b
|
8688
8688
|
} = e.interpolation;
|
8689
|
-
this.escape = t !== void 0 ? t : S3, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = l ? h1(l) : c || "{{", this.suffix = o ? h1(o) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = u ? h1(u) : p || h1("$t("), this.nestingSuffix = v ? h1(v) :
|
8689
|
+
this.escape = t !== void 0 ? t : S3, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = l ? h1(l) : c || "{{", this.suffix = o ? h1(o) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = u ? h1(u) : p || h1("$t("), this.nestingSuffix = v ? h1(v) : M || h1(")"), this.nestingOptionsSeparator = L || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
|
8690
8690
|
}
|
8691
8691
|
reset() {
|
8692
8692
|
this.options && this.init(this.options);
|
@@ -8706,11 +8706,11 @@ class Y3 {
|
|
8706
8706
|
interpolationkey: p
|
8707
8707
|
}) : E;
|
8708
8708
|
}
|
8709
|
-
const v = p.split(this.formatSeparator),
|
8710
|
-
return this.format(Q1(t, d,
|
8709
|
+
const v = p.split(this.formatSeparator), M = v.shift().trim(), L = v.join(this.formatSeparator).trim();
|
8710
|
+
return this.format(Q1(t, d, M, this.options.keySeparator, this.options.ignoreJSONStructure), L, s, {
|
8711
8711
|
...n,
|
8712
8712
|
...t,
|
8713
|
-
interpolationkey:
|
8713
|
+
interpolationkey: M
|
8714
8714
|
});
|
8715
8715
|
};
|
8716
8716
|
this.resetRegExp();
|
@@ -8736,8 +8736,8 @@ class Y3 {
|
|
8736
8736
|
} else
|
8737
8737
|
this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`), c = "";
|
8738
8738
|
else !y(c) && !this.useRawValueToEscape && (c = P1(c));
|
8739
|
-
const
|
8740
|
-
if (e = e.replace(l[0],
|
8739
|
+
const M = p.safeValue(c);
|
8740
|
+
if (e = e.replace(l[0], M), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= l[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
8741
8741
|
break;
|
8742
8742
|
}
|
8743
8743
|
}), e;
|
@@ -8757,8 +8757,8 @@ class Y3 {
|
|
8757
8757
|
...g,
|
8758
8758
|
...c
|
8759
8759
|
});
|
8760
|
-
} catch (
|
8761
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${d}`,
|
8760
|
+
} catch (M) {
|
8761
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, M), `${d}${a}${u}`;
|
8762
8762
|
}
|
8763
8763
|
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, d;
|
8764
8764
|
};
|
@@ -8809,7 +8809,7 @@ const F3 = (i) => {
|
|
8809
8809
|
});
|
8810
8810
|
const c = s + JSON.stringify(l);
|
8811
8811
|
let o = e[c];
|
8812
|
-
return o || (o = i(
|
8812
|
+
return o || (o = i(M1(s), n), e[c] = o), o(t);
|
8813
8813
|
};
|
8814
8814
|
};
|
8815
8815
|
class U3 {
|
@@ -9133,13 +9133,13 @@ class m1 extends _1 {
|
|
9133
9133
|
}), a && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = l(a), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new Y3(this.options), u.utils = {
|
9134
9134
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
9135
9135
|
}, u.backendConnector = new J3(l(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
|
9136
|
-
for (var v = arguments.length,
|
9137
|
-
|
9138
|
-
e.emit(p, ...
|
9136
|
+
for (var v = arguments.length, M = new Array(v > 1 ? v - 1 : 0), L = 1; L < v; L++)
|
9137
|
+
M[L - 1] = arguments[L];
|
9138
|
+
e.emit(p, ...M);
|
9139
9139
|
}), 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 b1(this.services, this.options), this.translator.on("*", function(p) {
|
9140
|
-
for (var v = arguments.length,
|
9141
|
-
|
9142
|
-
e.emit(p, ...
|
9140
|
+
for (var v = arguments.length, M = new Array(v > 1 ? v - 1 : 0), L = 1; L < v; L++)
|
9141
|
+
M[L - 1] = arguments[L];
|
9142
|
+
e.emit(p, ...M);
|
9143
9143
|
}), this.modules.external.forEach((p) => {
|
9144
9144
|
p.init && p.init(this);
|
9145
9145
|
});
|
@@ -9481,7 +9481,7 @@ const C0 = (i, e) => {
|
|
9481
9481
|
} = c;
|
9482
9482
|
let g = i;
|
9483
9483
|
g = n1(g) ? [g] : g || ["translation"], l.reportNamespaces.addUsedNamespaces && l.reportNamespaces.addUsedNamespaces(g);
|
9484
|
-
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => e0(f, l, c)), h = u0(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => pe(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [v,
|
9484
|
+
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => e0(f, l, c)), h = u0(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => pe(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [v, M] = A(u);
|
9485
9485
|
let L = g.join();
|
9486
9486
|
e.lng && (L = `${e.lng}${L}`);
|
9487
9487
|
const E = C0(L), b = F(!0);
|
@@ -9491,18 +9491,18 @@ const C0 = (i, e) => {
|
|
9491
9491
|
bindI18nStore: w
|
9492
9492
|
} = c;
|
9493
9493
|
b.current = !0, !a && !o && (e.lng ? se(l, e.lng, g, () => {
|
9494
|
-
b.current &&
|
9494
|
+
b.current && M(p);
|
9495
9495
|
}) : ie(l, g, () => {
|
9496
|
-
b.current &&
|
9497
|
-
})), a && E && E !== L && b.current &&
|
9496
|
+
b.current && M(p);
|
9497
|
+
})), a && E && E !== L && b.current && M(p);
|
9498
9498
|
const N = () => {
|
9499
|
-
b.current &&
|
9499
|
+
b.current && M(p);
|
9500
9500
|
};
|
9501
9501
|
return f && l && l.on(f, N), w && l && l.store.on(w, N), () => {
|
9502
9502
|
b.current = !1, f && l && f.split(" ").forEach((m) => l.off(m, N)), w && l && w.split(" ").forEach((m) => l.store.off(m, N));
|
9503
9503
|
};
|
9504
9504
|
}, [l, L]), W(() => {
|
9505
|
-
b.current && a &&
|
9505
|
+
b.current && a && M(u);
|
9506
9506
|
}, [l, d, a]);
|
9507
9507
|
const V = [v, l, a];
|
9508
9508
|
if (V.t = v, V.i18n = l, V.ready = a, a || !a && !o) return V;
|
@@ -9536,7 +9536,7 @@ const b0 = k1(
|
|
9536
9536
|
({ width: i, selectedCountry: e, onChange: t, value: s, id: n, disabled: l, clearable: c }, o) => {
|
9537
9537
|
const [d, g] = A(
|
9538
9538
|
[]
|
9539
|
-
), [a, h] = A(!1), { locale: u, axiosPeople: p } = r1(ke), v = F(!1),
|
9539
|
+
), [a, h] = A(!1), { locale: u, axiosPeople: p } = r1(ke), v = F(!1), M = F(null), L = F(d), E = L0(e);
|
9540
9540
|
if (!p)
|
9541
9541
|
throw new Error(
|
9542
9542
|
`CitySelect requires "axiosPeople" to fetch cities.
|
@@ -9575,7 +9575,7 @@ const b0 = k1(
|
|
9575
9575
|
})();
|
9576
9576
|
}, []), W(() => {
|
9577
9577
|
var w;
|
9578
|
-
E !== e ? v.current && (t(null), g([]), L.current = [], (w =
|
9578
|
+
E !== e ? v.current && (t(null), g([]), L.current = [], (w = M.current) == null || w.refetchOptions()) : v.current = !0;
|
9579
9579
|
}, [e, t, E]);
|
9580
9580
|
const f = D(
|
9581
9581
|
async ({
|
@@ -9612,14 +9612,14 @@ const b0 = k1(
|
|
9612
9612
|
},
|
9613
9613
|
[p, e]
|
9614
9614
|
);
|
9615
|
-
return ne(o, () =>
|
9615
|
+
return ne(o, () => M.current), /* @__PURE__ */ r("div", { className: "snmt-city-select", children: /* @__PURE__ */ r(
|
9616
9616
|
_3,
|
9617
9617
|
{
|
9618
9618
|
id: n,
|
9619
9619
|
width: i,
|
9620
9620
|
value: a && s ? null : s,
|
9621
9621
|
onChange: t,
|
9622
|
-
ref:
|
9622
|
+
ref: M,
|
9623
9623
|
search: !0,
|
9624
9624
|
placeholder: b("placeholder"),
|
9625
9625
|
disabled: l,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@snmt-react-ui/city-select",
|
3
3
|
"private": false,
|
4
|
-
"version": "2.6.
|
4
|
+
"version": "2.6.1",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/city-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/async-select": "^1.8.
|
21
|
+
"@snmt-react-ui/async-select": "^1.8.2",
|
22
22
|
"@snmt-react-ui/core": "^2.2.0",
|
23
23
|
"i18next": "^23.11.5",
|
24
24
|
"react-i18next": "^14.1.1",
|
@@ -27,5 +27,5 @@
|
|
27
27
|
"peerDependencies": {
|
28
28
|
"antd": "^5.22.0"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "6dbd975528d375edce7e731b5a16372d9e5a5bae"
|
31
31
|
}
|