@snmt-react-ui/city-select 2.5.9 → 2.6.0
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/CitySelect.d.ts +2 -0
- package/dist/city-select.js +565 -562
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/city-select.js
CHANGED
@@ -4,7 +4,7 @@ var Z1 = (i, e, t) => me(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
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
|
-
import { createContext as d1, forwardRef as k1, useState as
|
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
8
|
import { Select as ve, Flex as Ne, Avatar as xe, Checkbox as Me, Typography as re, Tag as Re, 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() {
|
@@ -100,11 +100,11 @@ class Pe {
|
|
100
100
|
}
|
101
101
|
}
|
102
102
|
const $e = (i, e) => {
|
103
|
-
const t =
|
104
|
-
return
|
103
|
+
const t = F();
|
104
|
+
return W(() => {
|
105
105
|
t.current = i;
|
106
106
|
}, [i, e]), t.current;
|
107
|
-
}, le = (i, e, t, s) => i.getFixedT(e, t, s), Ye = (i, e, t, s) =>
|
107
|
+
}, le = (i, e, t, s) => i.getFixedT(e, t, s), Ye = (i, e, t, s) => D(le(i, e, t, s), [i, e, t, s]), Fe = function(i) {
|
108
108
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
109
109
|
const {
|
110
110
|
i18n: t
|
@@ -114,8 +114,8 @@ const $e = (i, e) => {
|
|
114
114
|
} = r1(Ke) || {}, l = t || s || Ge();
|
115
115
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new Pe()), !l) {
|
116
116
|
I1("You will need to pass in an i18next instance by using initReactI18next");
|
117
|
-
const
|
118
|
-
return
|
117
|
+
const f = (N, m) => s1(m) ? m : Se(m) && s1(m.defaultValue) ? m.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, w = [f, {}, !1];
|
118
|
+
return w.t = f, w.i18n = {}, w.ready = !1, w;
|
119
119
|
}
|
120
120
|
l.options.react && l.options.react.wait !== void 0 && I1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
121
121
|
const c = {
|
@@ -128,33 +128,33 @@ 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((
|
132
|
-
let
|
133
|
-
e.lng && (
|
134
|
-
const E = $e(
|
135
|
-
|
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, R] = A(u);
|
132
|
+
let L = g.join();
|
133
|
+
e.lng && (L = `${e.lng}${L}`);
|
134
|
+
const E = $e(L), b = F(!0);
|
135
|
+
W(() => {
|
136
136
|
const {
|
137
|
-
bindI18n:
|
138
|
-
bindI18nStore:
|
137
|
+
bindI18n: f,
|
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 && R(p);
|
142
142
|
}) : j1(l, g, () => {
|
143
|
-
b.current &&
|
144
|
-
})), a && E && E !==
|
145
|
-
const
|
146
|
-
b.current &&
|
143
|
+
b.current && R(p);
|
144
|
+
})), a && E && E !== L && b.current && R(p);
|
145
|
+
const N = () => {
|
146
|
+
b.current && R(p);
|
147
147
|
};
|
148
|
-
return
|
149
|
-
b.current = !1,
|
148
|
+
return f && l && l.on(f, N), w && l && l.store.on(w, N), () => {
|
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
|
-
}, [l,
|
152
|
-
b.current && a &&
|
151
|
+
}, [l, L]), W(() => {
|
152
|
+
b.current && a && R(u);
|
153
153
|
}, [l, d, a]);
|
154
|
-
const V = [
|
155
|
-
if (V.t =
|
156
|
-
throw new Promise((
|
157
|
-
e.lng ? D1(l, e.lng, g, () =>
|
154
|
+
const V = [v, l, a];
|
155
|
+
if (V.t = v, V.i18n = l, V.ready = a, a || !a && !o) return V;
|
156
|
+
throw new Promise((f) => {
|
157
|
+
e.lng ? D1(l, e.lng, g, () => f()) : j1(l, g, () => f());
|
158
158
|
});
|
159
159
|
}, p1 = ({
|
160
160
|
children: i,
|
@@ -192,7 +192,7 @@ const $e = (i, e) => {
|
|
192
192
|
}
|
193
193
|
);
|
194
194
|
};
|
195
|
-
var
|
195
|
+
var q = /* @__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))(q || {});
|
196
196
|
const B1 = d1({
|
197
197
|
locale: "en",
|
198
198
|
theme: "light"
|
@@ -206,8 +206,8 @@ const ze = ({
|
|
206
206
|
disabled: n = !1,
|
207
207
|
disableUncheck: l = !1
|
208
208
|
}) => {
|
209
|
-
const [c, o] =
|
210
|
-
|
209
|
+
const [c, o] = A(i), [d, g] = A(e);
|
210
|
+
W(() => {
|
211
211
|
o(i), g(e);
|
212
212
|
}, [i, e]);
|
213
213
|
const { theme: a } = r1(B1);
|
@@ -225,7 +225,7 @@ const ze = ({
|
|
225
225
|
}
|
226
226
|
);
|
227
227
|
};
|
228
|
-
var
|
228
|
+
var x = /* @__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))(x || {});
|
229
229
|
const ae = d1({
|
230
230
|
locale: "en",
|
231
231
|
theme: "light"
|
@@ -1771,7 +1771,7 @@ const Je = ({
|
|
1771
1771
|
), j2 = ({
|
1772
1772
|
width: i = 24,
|
1773
1773
|
height: e = 24,
|
1774
|
-
color: t =
|
1774
|
+
color: t = x.GREY_DARK_5,
|
1775
1775
|
className: s,
|
1776
1776
|
onClick: n
|
1777
1777
|
}) => /* @__PURE__ */ C(
|
@@ -1810,7 +1810,7 @@ const Je = ({
|
|
1810
1810
|
), D2 = ({
|
1811
1811
|
width: i = 20,
|
1812
1812
|
height: e = 20,
|
1813
|
-
color: t =
|
1813
|
+
color: t = x.GREY_DARK_1,
|
1814
1814
|
className: s,
|
1815
1815
|
onClick: n
|
1816
1816
|
}) => /* @__PURE__ */ C(
|
@@ -1843,7 +1843,7 @@ const Je = ({
|
|
1843
1843
|
), T2 = ({
|
1844
1844
|
width: i = 81,
|
1845
1845
|
height: e = 80,
|
1846
|
-
color: t =
|
1846
|
+
color: t = x.GREY_DARK_5,
|
1847
1847
|
className: s,
|
1848
1848
|
onClick: n
|
1849
1849
|
}) => /* @__PURE__ */ C(
|
@@ -1891,7 +1891,7 @@ const Je = ({
|
|
1891
1891
|
}
|
1892
1892
|
), G2 = ({
|
1893
1893
|
className: i,
|
1894
|
-
color: e =
|
1894
|
+
color: e = x.GREY_DARK_5,
|
1895
1895
|
height: t = 20,
|
1896
1896
|
width: s = 20,
|
1897
1897
|
onClick: n
|
@@ -1918,7 +1918,7 @@ const Je = ({
|
|
1918
1918
|
}
|
1919
1919
|
), K2 = ({
|
1920
1920
|
className: i,
|
1921
|
-
color: e =
|
1921
|
+
color: e = x.GREY_DARK_5,
|
1922
1922
|
height: t = 20,
|
1923
1923
|
width: s = 20,
|
1924
1924
|
onClick: n
|
@@ -1945,7 +1945,7 @@ const Je = ({
|
|
1945
1945
|
}
|
1946
1946
|
), P2 = ({
|
1947
1947
|
className: i,
|
1948
|
-
color: e =
|
1948
|
+
color: e = x.GREY_DARK_5,
|
1949
1949
|
height: t = 5,
|
1950
1950
|
width: s = 10,
|
1951
1951
|
onClick: n
|
@@ -1969,7 +1969,7 @@ const Je = ({
|
|
1969
1969
|
}
|
1970
1970
|
), $2 = ({
|
1971
1971
|
className: i,
|
1972
|
-
color: e =
|
1972
|
+
color: e = x.GREY_DARK_5,
|
1973
1973
|
height: t = 5,
|
1974
1974
|
width: s = 10,
|
1975
1975
|
onClick: n
|
@@ -1994,7 +1994,7 @@ const Je = ({
|
|
1994
1994
|
}
|
1995
1995
|
), Y2 = ({
|
1996
1996
|
className: i,
|
1997
|
-
color: e =
|
1997
|
+
color: e = x.GREY_DARK_5,
|
1998
1998
|
height: t = 24,
|
1999
1999
|
width: s = 24,
|
2000
2000
|
onClick: n
|
@@ -2033,7 +2033,7 @@ const Je = ({
|
|
2033
2033
|
}
|
2034
2034
|
), F2 = ({
|
2035
2035
|
className: i,
|
2036
|
-
color: e =
|
2036
|
+
color: e = x.GREY_DARK_5,
|
2037
2037
|
height: t = 24,
|
2038
2038
|
width: s = 24,
|
2039
2039
|
onClick: n
|
@@ -2072,7 +2072,7 @@ const Je = ({
|
|
2072
2072
|
}
|
2073
2073
|
), U2 = ({
|
2074
2074
|
className: i,
|
2075
|
-
color: e =
|
2075
|
+
color: e = x.GREY_DARK_5,
|
2076
2076
|
height: t = 24,
|
2077
2077
|
width: s = 24,
|
2078
2078
|
onClick: n
|
@@ -2099,7 +2099,7 @@ const Je = ({
|
|
2099
2099
|
}
|
2100
2100
|
), z2 = ({
|
2101
2101
|
className: i,
|
2102
|
-
color: e =
|
2102
|
+
color: e = x.GREY_DARK_5,
|
2103
2103
|
height: t = 24,
|
2104
2104
|
width: s = 24,
|
2105
2105
|
onClick: n
|
@@ -2158,7 +2158,7 @@ const Je = ({
|
|
2158
2158
|
}
|
2159
2159
|
), J2 = ({
|
2160
2160
|
className: i,
|
2161
|
-
color: e =
|
2161
|
+
color: e = x.GREY_DARK_5,
|
2162
2162
|
height: t = 24,
|
2163
2163
|
width: s = 24,
|
2164
2164
|
onClick: n
|
@@ -2195,7 +2195,7 @@ const Je = ({
|
|
2195
2195
|
}
|
2196
2196
|
), q2 = ({
|
2197
2197
|
className: i,
|
2198
|
-
color: e =
|
2198
|
+
color: e = x.GREY_DARK_3,
|
2199
2199
|
height: t = 14,
|
2200
2200
|
width: s = 14,
|
2201
2201
|
onClick: n
|
@@ -2232,7 +2232,7 @@ const Je = ({
|
|
2232
2232
|
}
|
2233
2233
|
), Q2 = ({
|
2234
2234
|
className: i,
|
2235
|
-
color: e =
|
2235
|
+
color: e = x.GREY_DARK_5,
|
2236
2236
|
height: t = 18,
|
2237
2237
|
onClick: s,
|
2238
2238
|
width: n = 18
|
@@ -2259,7 +2259,7 @@ const Je = ({
|
|
2259
2259
|
}
|
2260
2260
|
), X2 = ({
|
2261
2261
|
className: i,
|
2262
|
-
color: e =
|
2262
|
+
color: e = x.GREY_DARK_5,
|
2263
2263
|
height: t = 24,
|
2264
2264
|
width: s = 24,
|
2265
2265
|
onClick: n
|
@@ -2311,7 +2311,7 @@ const Je = ({
|
|
2311
2311
|
}
|
2312
2312
|
), et = ({
|
2313
2313
|
className: i,
|
2314
|
-
color: e =
|
2314
|
+
color: e = x.GREY_DARK_5,
|
2315
2315
|
height: t = 24,
|
2316
2316
|
width: s = 24,
|
2317
2317
|
onClick: n
|
@@ -2348,7 +2348,7 @@ const Je = ({
|
|
2348
2348
|
}
|
2349
2349
|
), tt = ({
|
2350
2350
|
className: i,
|
2351
|
-
color: e =
|
2351
|
+
color: e = x.NOTIFICATION_WARNING_DARK,
|
2352
2352
|
height: t = 37,
|
2353
2353
|
width: s = 36,
|
2354
2354
|
onClick: n
|
@@ -2387,7 +2387,7 @@ const Je = ({
|
|
2387
2387
|
}
|
2388
2388
|
), it = ({
|
2389
2389
|
className: i,
|
2390
|
-
color: e =
|
2390
|
+
color: e = x.GREY_DARK_5,
|
2391
2391
|
height: t = 24,
|
2392
2392
|
width: s = 24,
|
2393
2393
|
onClick: n
|
@@ -2413,7 +2413,7 @@ const Je = ({
|
|
2413
2413
|
}
|
2414
2414
|
), st = ({
|
2415
2415
|
className: i,
|
2416
|
-
color: e =
|
2416
|
+
color: e = x.GREY_DARK_5,
|
2417
2417
|
height: t = 24,
|
2418
2418
|
width: s = 24,
|
2419
2419
|
onClick: n
|
@@ -2452,7 +2452,7 @@ const Je = ({
|
|
2452
2452
|
}
|
2453
2453
|
), nt = ({
|
2454
2454
|
className: i,
|
2455
|
-
color: e =
|
2455
|
+
color: e = x.GREY_DARK_5,
|
2456
2456
|
height: t = 24,
|
2457
2457
|
width: s = 24,
|
2458
2458
|
onClick: n
|
@@ -2491,7 +2491,7 @@ const Je = ({
|
|
2491
2491
|
}
|
2492
2492
|
), rt = ({
|
2493
2493
|
className: i,
|
2494
|
-
color: e =
|
2494
|
+
color: e = x.GREY_DARK_5,
|
2495
2495
|
height: t = 24,
|
2496
2496
|
width: s = 24,
|
2497
2497
|
onClick: n
|
@@ -2560,7 +2560,7 @@ const Je = ({
|
|
2560
2560
|
}
|
2561
2561
|
), ot = ({
|
2562
2562
|
className: i,
|
2563
|
-
color: e =
|
2563
|
+
color: e = x.GREY_DARK_5,
|
2564
2564
|
height: t = 24,
|
2565
2565
|
width: s = 24,
|
2566
2566
|
onClick: n
|
@@ -2599,7 +2599,7 @@ const Je = ({
|
|
2599
2599
|
}
|
2600
2600
|
), lt = ({
|
2601
2601
|
className: i,
|
2602
|
-
color: e =
|
2602
|
+
color: e = x.GREY_DARK_5,
|
2603
2603
|
height: t = 24,
|
2604
2604
|
width: s = 24,
|
2605
2605
|
onClick: n
|
@@ -2656,7 +2656,7 @@ const Je = ({
|
|
2656
2656
|
}
|
2657
2657
|
), at = ({
|
2658
2658
|
className: i,
|
2659
|
-
color: e =
|
2659
|
+
color: e = x.GREY_DARK_5,
|
2660
2660
|
height: t = 24,
|
2661
2661
|
width: s = 24,
|
2662
2662
|
onClick: n
|
@@ -2695,7 +2695,7 @@ const Je = ({
|
|
2695
2695
|
}
|
2696
2696
|
), ht = ({
|
2697
2697
|
className: i,
|
2698
|
-
color: e =
|
2698
|
+
color: e = x.GREY_DARK_5,
|
2699
2699
|
height: t = 24,
|
2700
2700
|
width: s = 24,
|
2701
2701
|
onClick: n
|
@@ -2744,7 +2744,7 @@ const Je = ({
|
|
2744
2744
|
}
|
2745
2745
|
), ct = ({
|
2746
2746
|
className: i,
|
2747
|
-
color: e =
|
2747
|
+
color: e = x.GREY_DARK_5,
|
2748
2748
|
height: t = 24,
|
2749
2749
|
width: s = 24,
|
2750
2750
|
onClick: n
|
@@ -2783,7 +2783,7 @@ const Je = ({
|
|
2783
2783
|
}
|
2784
2784
|
), dt = ({
|
2785
2785
|
className: i,
|
2786
|
-
color: e =
|
2786
|
+
color: e = x.GREY_DARK_5,
|
2787
2787
|
height: t = 24,
|
2788
2788
|
width: s = 24,
|
2789
2789
|
onClick: n
|
@@ -2810,7 +2810,7 @@ const Je = ({
|
|
2810
2810
|
}
|
2811
2811
|
), gt = ({
|
2812
2812
|
className: i,
|
2813
|
-
color: e =
|
2813
|
+
color: e = x.GREY_DARK_5,
|
2814
2814
|
height: t = 24,
|
2815
2815
|
width: s = 24,
|
2816
2816
|
onClick: n
|
@@ -2848,7 +2848,7 @@ const Je = ({
|
|
2848
2848
|
}
|
2849
2849
|
), Ct = ({
|
2850
2850
|
className: i,
|
2851
|
-
color: e =
|
2851
|
+
color: e = x.GREY_DARK_5,
|
2852
2852
|
height: t = 24,
|
2853
2853
|
width: s = 24,
|
2854
2854
|
onClick: n
|
@@ -2869,7 +2869,7 @@ const Je = ({
|
|
2869
2869
|
}
|
2870
2870
|
), ut = ({
|
2871
2871
|
className: i,
|
2872
|
-
color: e =
|
2872
|
+
color: e = x.GREY_DARK_5,
|
2873
2873
|
height: t = 24,
|
2874
2874
|
width: s = 24,
|
2875
2875
|
onClick: n
|
@@ -2908,7 +2908,7 @@ const Je = ({
|
|
2908
2908
|
}
|
2909
2909
|
), pt = ({
|
2910
2910
|
className: i,
|
2911
|
-
color: e =
|
2911
|
+
color: e = x.GREY_DARK_5,
|
2912
2912
|
height: t = 24,
|
2913
2913
|
width: s = 24,
|
2914
2914
|
onClick: n
|
@@ -2947,7 +2947,7 @@ const Je = ({
|
|
2947
2947
|
}
|
2948
2948
|
), ft = ({
|
2949
2949
|
className: i,
|
2950
|
-
color: e =
|
2950
|
+
color: e = x.GREY_DARK_5,
|
2951
2951
|
height: t = 24,
|
2952
2952
|
width: s = 24,
|
2953
2953
|
onClick: n
|
@@ -2986,7 +2986,7 @@ const Je = ({
|
|
2986
2986
|
}
|
2987
2987
|
), wt = ({
|
2988
2988
|
className: i,
|
2989
|
-
color: e =
|
2989
|
+
color: e = x.GREY_DARK_2,
|
2990
2990
|
height: t = 16,
|
2991
2991
|
width: s = 16,
|
2992
2992
|
onClick: n
|
@@ -3012,7 +3012,7 @@ const Je = ({
|
|
3012
3012
|
}
|
3013
3013
|
), mt = ({
|
3014
3014
|
className: i,
|
3015
|
-
color: e =
|
3015
|
+
color: e = x.GREY_DARK_5,
|
3016
3016
|
height: t = 20,
|
3017
3017
|
width: s = 20,
|
3018
3018
|
onClick: n
|
@@ -3041,7 +3041,7 @@ const Je = ({
|
|
3041
3041
|
}
|
3042
3042
|
), kt = ({
|
3043
3043
|
className: i,
|
3044
|
-
color: e =
|
3044
|
+
color: e = x.GREY_DARK_5,
|
3045
3045
|
height: t = 20,
|
3046
3046
|
width: s = 20,
|
3047
3047
|
onClick: n
|
@@ -3070,7 +3070,7 @@ const Je = ({
|
|
3070
3070
|
}
|
3071
3071
|
), Lt = ({
|
3072
3072
|
className: i,
|
3073
|
-
color: e =
|
3073
|
+
color: e = x.GREY_DARK_5,
|
3074
3074
|
height: t = 20,
|
3075
3075
|
width: s = 20,
|
3076
3076
|
onClick: n
|
@@ -3085,7 +3085,7 @@ const Je = ({
|
|
3085
3085
|
fill: "none",
|
3086
3086
|
xmlns: "http://www.w3.org/2000/svg",
|
3087
3087
|
children: [
|
3088
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
3088
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: x.GREY_LIGHT_2 }),
|
3089
3089
|
/* @__PURE__ */ r(
|
3090
3090
|
"path",
|
3091
3091
|
{
|
@@ -3099,7 +3099,7 @@ const Je = ({
|
|
3099
3099
|
}
|
3100
3100
|
), vt = ({
|
3101
3101
|
className: i,
|
3102
|
-
color: e =
|
3102
|
+
color: e = x.GREY_DARK_5,
|
3103
3103
|
height: t = 20,
|
3104
3104
|
width: s = 20,
|
3105
3105
|
onClick: n
|
@@ -3114,7 +3114,7 @@ const Je = ({
|
|
3114
3114
|
fill: "none",
|
3115
3115
|
xmlns: "http://www.w3.org/2000/svg",
|
3116
3116
|
children: [
|
3117
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
3117
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: x.GREY_LIGHT_2 }),
|
3118
3118
|
/* @__PURE__ */ r(
|
3119
3119
|
"path",
|
3120
3120
|
{
|
@@ -3310,7 +3310,7 @@ const Je = ({
|
|
3310
3310
|
), bt = ({
|
3311
3311
|
width: i = 24,
|
3312
3312
|
height: e = 24,
|
3313
|
-
color: t =
|
3313
|
+
color: t = x.GREY_DARK_2,
|
3314
3314
|
className: s,
|
3315
3315
|
onClick: n
|
3316
3316
|
}) => /* @__PURE__ */ C(
|
@@ -3349,7 +3349,7 @@ const Je = ({
|
|
3349
3349
|
), _t = ({
|
3350
3350
|
width: i = 24,
|
3351
3351
|
height: e = 24,
|
3352
|
-
color: t =
|
3352
|
+
color: t = x.GREY_DARK_2,
|
3353
3353
|
className: s,
|
3354
3354
|
onClick: n
|
3355
3355
|
}) => /* @__PURE__ */ r(
|
@@ -3376,7 +3376,7 @@ const Je = ({
|
|
3376
3376
|
), Et = ({
|
3377
3377
|
width: i = 24,
|
3378
3378
|
height: e = 24,
|
3379
|
-
color: t =
|
3379
|
+
color: t = x.GREY_DARK_2,
|
3380
3380
|
className: s,
|
3381
3381
|
onClick: n
|
3382
3382
|
}) => /* @__PURE__ */ C(
|
@@ -3416,7 +3416,7 @@ const Je = ({
|
|
3416
3416
|
), Vt = ({
|
3417
3417
|
width: i = 24,
|
3418
3418
|
height: e = 24,
|
3419
|
-
color: t =
|
3419
|
+
color: t = x.GREY_DARK_2,
|
3420
3420
|
className: s,
|
3421
3421
|
onClick: n
|
3422
3422
|
}) => /* @__PURE__ */ r(
|
@@ -3443,7 +3443,7 @@ const Je = ({
|
|
3443
3443
|
), Ht = ({
|
3444
3444
|
width: i = 24,
|
3445
3445
|
height: e = 24,
|
3446
|
-
color: t =
|
3446
|
+
color: t = x.GREY_DARK_2,
|
3447
3447
|
className: s,
|
3448
3448
|
onClick: n
|
3449
3449
|
}) => /* @__PURE__ */ r(
|
@@ -3476,8 +3476,8 @@ const Je = ({
|
|
3476
3476
|
disabled: l = !1,
|
3477
3477
|
onClick: c
|
3478
3478
|
}) => {
|
3479
|
-
const [o, d] =
|
3480
|
-
return
|
3479
|
+
const [o, d] = A(n), { theme: g } = r1(ae), a = l ? g && g === "dark" ? x.GREY_LIGHT_4 : x.GREY_DARK_1 : s, h = l ? void 0 : c;
|
3480
|
+
return W(() => {
|
3481
3481
|
if (n) {
|
3482
3482
|
h && !l && d(`${n} clickable`);
|
3483
3483
|
return;
|
@@ -3780,7 +3780,7 @@ const Je = ({
|
|
3780
3780
|
);
|
3781
3781
|
}
|
3782
3782
|
);
|
3783
|
-
var
|
3783
|
+
var M = /* @__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))(M || {});
|
3784
3784
|
const he = d1({
|
3785
3785
|
locale: "en",
|
3786
3786
|
theme: "light"
|
@@ -5326,7 +5326,7 @@ const Bt = ({
|
|
5326
5326
|
), R5 = ({
|
5327
5327
|
width: i = 24,
|
5328
5328
|
height: e = 24,
|
5329
|
-
color: t =
|
5329
|
+
color: t = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.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 = M.GREY_DARK_2,
|
6545
6545
|
height: t = 16,
|
6546
6546
|
width: s = 16,
|
6547
6547
|
onClick: n
|
@@ -6567,7 +6567,7 @@ const Bt = ({
|
|
6567
6567
|
}
|
6568
6568
|
), n3 = ({
|
6569
6569
|
className: i,
|
6570
|
-
color: e =
|
6570
|
+
color: e = M.GREY_DARK_5,
|
6571
6571
|
height: t = 20,
|
6572
6572
|
width: s = 20,
|
6573
6573
|
onClick: n
|
@@ -6596,7 +6596,7 @@ const Bt = ({
|
|
6596
6596
|
}
|
6597
6597
|
), r3 = ({
|
6598
6598
|
className: i,
|
6599
|
-
color: e =
|
6599
|
+
color: e = M.GREY_DARK_5,
|
6600
6600
|
height: t = 20,
|
6601
6601
|
width: s = 20,
|
6602
6602
|
onClick: n
|
@@ -6625,7 +6625,7 @@ const Bt = ({
|
|
6625
6625
|
}
|
6626
6626
|
), o3 = ({
|
6627
6627
|
className: i,
|
6628
|
-
color: e =
|
6628
|
+
color: e = M.GREY_DARK_5,
|
6629
6629
|
height: t = 20,
|
6630
6630
|
width: s = 20,
|
6631
6631
|
onClick: n
|
@@ -6640,7 +6640,7 @@ 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: M.GREY_LIGHT_2 }),
|
6644
6644
|
/* @__PURE__ */ r(
|
6645
6645
|
"path",
|
6646
6646
|
{
|
@@ -6654,7 +6654,7 @@ const Bt = ({
|
|
6654
6654
|
}
|
6655
6655
|
), l3 = ({
|
6656
6656
|
className: i,
|
6657
|
-
color: e =
|
6657
|
+
color: e = M.GREY_DARK_5,
|
6658
6658
|
height: t = 20,
|
6659
6659
|
width: s = 20,
|
6660
6660
|
onClick: n
|
@@ -6669,7 +6669,7 @@ 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: M.GREY_LIGHT_2 }),
|
6673
6673
|
/* @__PURE__ */ r(
|
6674
6674
|
"path",
|
6675
6675
|
{
|
@@ -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 = M.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 = M.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 = M.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 = M.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 = M.GREY_DARK_2,
|
7002
7002
|
className: s,
|
7003
7003
|
onClick: n
|
7004
7004
|
}) => /* @__PURE__ */ r(
|
@@ -7031,8 +7031,8 @@ const Bt = ({
|
|
7031
7031
|
disabled: l = !1,
|
7032
7032
|
onClick: c
|
7033
7033
|
}) => {
|
7034
|
-
const [o, d] =
|
7035
|
-
return
|
7034
|
+
const [o, d] = A(n), { theme: g } = r1(he), a = l ? g && g === "dark" ? M.GREY_LIGHT_4 : M.GREY_DARK_1 : s, h = l ? void 0 : c;
|
7035
|
+
return W(() => {
|
7036
7036
|
if (n) {
|
7037
7037
|
h && !l && d(`${n} clickable`);
|
7038
7038
|
return;
|
@@ -7387,7 +7387,7 @@ const ce = ({
|
|
7387
7387
|
placement: n = "topRight",
|
7388
7388
|
noPadding: l = !1
|
7389
7389
|
}) => {
|
7390
|
-
const [c, o] =
|
7390
|
+
const [c, o] = A(!1);
|
7391
7391
|
return /* @__PURE__ */ r(
|
7392
7392
|
ye,
|
7393
7393
|
{
|
@@ -7424,14 +7424,14 @@ const y3 = ({
|
|
7424
7424
|
options: l,
|
7425
7425
|
extraOptions: c
|
7426
7426
|
}) => {
|
7427
|
-
const { locale: o } = r1(B1), { t: d } = Fe("common", { lng: o }), [g, a] =
|
7428
|
-
if (
|
7427
|
+
const { locale: o } = r1(B1), { t: d } = Fe("common", { lng: o }), [g, a] = A(!1);
|
7428
|
+
if (W(() => {
|
7429
7429
|
i.length || a(!1);
|
7430
7430
|
}, [i]), !i.length)
|
7431
7431
|
return null;
|
7432
7432
|
const h = (u) => {
|
7433
|
-
var
|
7434
|
-
return ((
|
7433
|
+
var p, v;
|
7434
|
+
return ((p = l == null ? void 0 : l.find((R) => R.value === u)) == null ? void 0 : p.label) || ((v = c == null ? void 0 : c.find((R) => R.value === u)) == null ? void 0 : v.label) || u;
|
7435
7435
|
};
|
7436
7436
|
return /* @__PURE__ */ C(
|
7437
7437
|
M3,
|
@@ -7482,207 +7482,209 @@ const y3 = ({
|
|
7482
7482
|
scrollThresholdValue: a = 50,
|
7483
7483
|
onSearchChange: h,
|
7484
7484
|
onDropdownVisibleChange: u,
|
7485
|
-
onScrollToEnd:
|
7486
|
-
onPopupScroll:
|
7487
|
-
id:
|
7488
|
-
extraOptions:
|
7485
|
+
onScrollToEnd: p,
|
7486
|
+
onPopupScroll: v,
|
7487
|
+
id: R,
|
7488
|
+
extraOptions: L,
|
7489
7489
|
dropdownRender: E,
|
7490
7490
|
optionRender: b,
|
7491
7491
|
isLoading: V,
|
7492
|
-
readOnly:
|
7493
|
-
error:
|
7494
|
-
},
|
7495
|
-
const [
|
7496
|
-
|
7497
|
-
|
7492
|
+
readOnly: f,
|
7493
|
+
error: w
|
7494
|
+
}, N) => {
|
7495
|
+
const [m, H] = A(!1), [B, j] = A(!1), [G, Q] = A(!0), [I, K] = A(i), U = F(null);
|
7496
|
+
W(() => {
|
7497
|
+
K(i);
|
7498
7498
|
}, [i]);
|
7499
|
-
const
|
7500
|
-
H(
|
7501
|
-
}, X = (
|
7502
|
-
var
|
7503
|
-
return !!((
|
7504
|
-
},
|
7505
|
-
|
7506
|
-
},
|
7507
|
-
|
7508
|
-
},
|
7509
|
-
(
|
7510
|
-
if (
|
7511
|
-
const
|
7512
|
-
e == null || e(
|
7499
|
+
const J = (k) => {
|
7500
|
+
H(k), u && u(k);
|
7501
|
+
}, X = (k, _) => {
|
7502
|
+
var S;
|
7503
|
+
return !!((S = _ == null ? void 0 : _.label) != null && S.toString().toLowerCase().includes(k.toLowerCase()));
|
7504
|
+
}, Z = () => {
|
7505
|
+
j(!0);
|
7506
|
+
}, $ = () => {
|
7507
|
+
j(!1);
|
7508
|
+
}, P = D(
|
7509
|
+
(k) => {
|
7510
|
+
if (K(k), s) {
|
7511
|
+
const S = k;
|
7512
|
+
e == null || e(S);
|
7513
7513
|
return;
|
7514
7514
|
}
|
7515
|
-
const _ =
|
7515
|
+
const _ = k;
|
7516
7516
|
e == null || e(_);
|
7517
7517
|
},
|
7518
7518
|
[s, e]
|
7519
|
-
), e1 =
|
7520
|
-
if (!
|
7519
|
+
), e1 = D(() => {
|
7520
|
+
if (!f) {
|
7521
7521
|
if (s) {
|
7522
|
-
|
7522
|
+
P([]);
|
7523
7523
|
return;
|
7524
7524
|
}
|
7525
|
-
|
7525
|
+
P("");
|
7526
7526
|
}
|
7527
|
-
}, [
|
7528
|
-
(
|
7529
|
-
const _ =
|
7530
|
-
|
7527
|
+
}, [P, s, f]), t1 = D(
|
7528
|
+
(k) => {
|
7529
|
+
const _ = I.filter((S) => S !== k);
|
7530
|
+
P(_), K(_);
|
7531
7531
|
},
|
7532
|
-
[
|
7533
|
-
), g1 =
|
7534
|
-
(
|
7532
|
+
[P, I]
|
7533
|
+
), g1 = D(
|
7534
|
+
(k) => (I == null ? void 0 : I.indexOf(k)) === 0 ? (
|
7535
7535
|
// if the search input is empty
|
7536
7536
|
// then display the placeholder, else do not display it
|
7537
|
-
/* @__PURE__ */ r("span", { className: "custom-placeholder", children:
|
7537
|
+
/* @__PURE__ */ r("span", { className: "custom-placeholder", children: G ? t : "" })
|
7538
7538
|
) : /* @__PURE__ */ r(i1, {}),
|
7539
|
-
[
|
7540
|
-
), L1 = (
|
7541
|
-
|
7542
|
-
}, v1 = async (
|
7543
|
-
const { target: _ } =
|
7544
|
-
_.scrollTop + _.offsetHeight >= _.scrollHeight - a && (
|
7545
|
-
}, o1 =
|
7546
|
-
(
|
7547
|
-
var _,
|
7548
|
-
return ((_ = l.find((l1) => l1.value ===
|
7549
|
-
(l1) => l1.value ===
|
7550
|
-
)) == null ? void 0 :
|
7539
|
+
[G, I, t]
|
7540
|
+
), L1 = (k) => {
|
7541
|
+
k.preventDefault(), k.stopPropagation();
|
7542
|
+
}, v1 = async (k) => {
|
7543
|
+
const { target: _ } = k;
|
7544
|
+
_.scrollTop + _.offsetHeight >= _.scrollHeight - a && (p == null || p(!0)), v && await v(k);
|
7545
|
+
}, o1 = D(
|
7546
|
+
(k) => {
|
7547
|
+
var _, S;
|
7548
|
+
return ((_ = l.find((l1) => l1.value === k)) == null ? void 0 : _.label) || ((S = L == null ? void 0 : L.find(
|
7549
|
+
(l1) => l1.value === k
|
7550
|
+
)) == null ? void 0 : S.label) || k;
|
7551
7551
|
},
|
7552
|
-
[
|
7553
|
-
), N1 =
|
7554
|
-
(
|
7552
|
+
[L, l]
|
7553
|
+
), N1 = D(
|
7554
|
+
(k) => {
|
7555
7555
|
var _;
|
7556
7556
|
return /* @__PURE__ */ r(
|
7557
7557
|
y3,
|
7558
7558
|
{
|
7559
|
-
values:
|
7559
|
+
values: k,
|
7560
7560
|
onTagClose: t1,
|
7561
7561
|
maxWidth: ((_ = U.current) == null ? void 0 : _.clientWidth) || 0,
|
7562
7562
|
disabled: o,
|
7563
|
-
closable: !
|
7563
|
+
closable: !f,
|
7564
7564
|
options: l,
|
7565
|
-
extraOptions:
|
7565
|
+
extraOptions: L
|
7566
7566
|
}
|
7567
7567
|
);
|
7568
7568
|
},
|
7569
|
-
[o,
|
7570
|
-
),
|
7571
|
-
({ label:
|
7569
|
+
[o, L, t1, l, f]
|
7570
|
+
), O = D(
|
7571
|
+
({ label: k, value: _, mode: S }) => S === "filter" ? g1(_) : /* @__PURE__ */ r("div", { onMouseDown: L1, className: "tag-wrapper", children: /* @__PURE__ */ r(ce, { onClose: () => t1(_), disabled: o, children: typeof k == "object" ? k : o1(_) }) }),
|
7572
7572
|
[o, o1, t1, g1]
|
7573
|
-
),
|
7574
|
-
return /* @__PURE__ */ C(
|
7575
|
-
|
7576
|
-
|
7577
|
-
|
7578
|
-
|
7579
|
-
|
7580
|
-
|
7581
|
-
|
7582
|
-
|
7583
|
-
|
7584
|
-
|
7585
|
-
|
7586
|
-
|
7587
|
-
|
7588
|
-
|
7589
|
-
|
7590
|
-
|
7591
|
-
|
7592
|
-
|
7593
|
-
|
7594
|
-
|
7595
|
-
|
7596
|
-
|
7597
|
-
|
7598
|
-
|
7599
|
-
|
7600
|
-
|
7601
|
-
|
7602
|
-
|
7603
|
-
|
7604
|
-
|
7605
|
-
|
7606
|
-
|
7607
|
-
|
7608
|
-
|
7609
|
-
|
7610
|
-
|
7611
|
-
|
7612
|
-
|
7613
|
-
|
7614
|
-
|
7615
|
-
|
7616
|
-
|
7617
|
-
|
7618
|
-
|
7619
|
-
|
7620
|
-
name: "selectArrowIcon",
|
7621
|
-
color: o ? Q.GREY_DARK_1 : Q.GREY_DARK_5,
|
7622
|
-
className: w ? "select-arrow-rotated" : "select-arrow",
|
7623
|
-
onClick: () => H(!w)
|
7624
|
-
}
|
7625
|
-
)
|
7626
|
-
] }) }),
|
7627
|
-
removeIcon: /* @__PURE__ */ r(C1, { name: "errorSmall", color: Q.GREY_DARK_2 }),
|
7628
|
-
options: l,
|
7629
|
-
optionRender: (m) => b ? b(m.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
7630
|
-
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 12, children: [
|
7631
|
-
s && /* @__PURE__ */ r(
|
7632
|
-
ze,
|
7573
|
+
), Y = Array.isArray(I) && I.length > 0 || !!I && typeof I == "string" && I.trim() !== "";
|
7574
|
+
return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
|
7575
|
+
/* @__PURE__ */ C(
|
7576
|
+
"div",
|
7577
|
+
{
|
7578
|
+
className: `snmt-select-1-15-6 ${B ? "snmt-select-focused" : ""}
|
7579
|
+
${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
7580
|
+
ref: U,
|
7581
|
+
style: { width: c },
|
7582
|
+
children: [
|
7583
|
+
/* @__PURE__ */ r(
|
7584
|
+
ve,
|
7585
|
+
{
|
7586
|
+
className: "snmt-select-blank",
|
7587
|
+
popupClassName: f ? "dropdown-read-only" : "",
|
7588
|
+
id: R,
|
7589
|
+
ref: N,
|
7590
|
+
showSearch: !!n,
|
7591
|
+
filterOption: n && X,
|
7592
|
+
onDropdownVisibleChange: J,
|
7593
|
+
disabled: o,
|
7594
|
+
value: I || void 0,
|
7595
|
+
labelRender: (k) => o1(k.value),
|
7596
|
+
mode: s === "filter" ? "multiple" : s,
|
7597
|
+
onChange: P,
|
7598
|
+
onFocus: Z,
|
7599
|
+
onBlur: $,
|
7600
|
+
onSearch: (k) => {
|
7601
|
+
Q(!k), h && h(k);
|
7602
|
+
},
|
7603
|
+
onSelect: () => Q(!0),
|
7604
|
+
onDeselect: () => Q(!0),
|
7605
|
+
tagRender: (k) => O({ ...k, mode: s }),
|
7606
|
+
maxTagCount: "responsive",
|
7607
|
+
maxTagPlaceholder: N1,
|
7608
|
+
onPopupScroll: v1,
|
7609
|
+
prefix: V && /* @__PURE__ */ r(T1, { size: 15 }),
|
7610
|
+
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(i1, { children: [
|
7611
|
+
I && !!I.length && (s || g) && /* @__PURE__ */ r("div", { onClick: e1, children: /* @__PURE__ */ r(
|
7612
|
+
C1,
|
7613
|
+
{
|
7614
|
+
name: "cancel",
|
7615
|
+
color: o ? q.GREY_DARK_1 : q.GREY_DARK_5
|
7616
|
+
}
|
7617
|
+
) }),
|
7618
|
+
/* @__PURE__ */ r(
|
7619
|
+
C1,
|
7633
7620
|
{
|
7634
|
-
|
7621
|
+
name: "selectArrowIcon",
|
7622
|
+
color: o ? q.GREY_DARK_1 : q.GREY_DARK_5,
|
7623
|
+
className: m ? "select-arrow-rotated" : "select-arrow",
|
7624
|
+
onClick: () => H(!m)
|
7635
7625
|
}
|
7636
|
-
)
|
7637
|
-
|
7638
|
-
|
7639
|
-
|
7640
|
-
|
7626
|
+
)
|
7627
|
+
] }) }),
|
7628
|
+
removeIcon: /* @__PURE__ */ r(C1, { name: "errorSmall", color: q.GREY_DARK_2 }),
|
7629
|
+
options: l,
|
7630
|
+
optionRender: (k) => b ? b(k.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
7631
|
+
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 12, children: [
|
7632
|
+
s && /* @__PURE__ */ r(
|
7633
|
+
ze,
|
7634
|
+
{
|
7635
|
+
checked: !!(I != null && I.includes(k.value))
|
7636
|
+
}
|
7637
|
+
),
|
7638
|
+
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 8, children: [
|
7639
|
+
k.data.image && /* @__PURE__ */ r(Ue, { src: k.data.image, size: 20 }),
|
7640
|
+
/* @__PURE__ */ r("span", { children: k.label })
|
7641
|
+
] })
|
7642
|
+
] }),
|
7643
|
+
!s && I === k.value && /* @__PURE__ */ r(
|
7644
|
+
C1,
|
7645
|
+
{
|
7646
|
+
name: "ok",
|
7647
|
+
color: q.BLUE_PRIMARY,
|
7648
|
+
width: 16,
|
7649
|
+
height: 16
|
7650
|
+
}
|
7651
|
+
)
|
7641
7652
|
] }),
|
7642
|
-
|
7643
|
-
|
7644
|
-
{
|
7645
|
-
|
7646
|
-
color: Q.BLUE_PRIMARY,
|
7647
|
-
width: 16,
|
7648
|
-
height: 16
|
7649
|
-
}
|
7650
|
-
)
|
7651
|
-
] }),
|
7652
|
-
dropdownRender: (m) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
7653
|
-
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: E ? E(m) : m }),
|
7654
|
-
V && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(T1, { size: 28 }) })
|
7655
|
-
] })
|
7656
|
-
}
|
7657
|
-
),
|
7658
|
-
t && /* @__PURE__ */ C(i1, { children: [
|
7659
|
-
/* @__PURE__ */ r(
|
7660
|
-
"label",
|
7661
|
-
{
|
7662
|
-
className: `${F || $ ? "label-floating" : ""} ${o ? "label-disabled" : ""} ${F ? "label-focused" : ""} ${V ? "label-loading" : ""} ${L ? "label-error" : ""}`,
|
7663
|
-
children: d ? `${t}*` : t
|
7653
|
+
dropdownRender: (k) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
7654
|
+
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: E ? E(k) : k }),
|
7655
|
+
V && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(T1, { size: 28 }) })
|
7656
|
+
] })
|
7664
7657
|
}
|
7665
7658
|
),
|
7666
|
-
/* @__PURE__ */
|
7667
|
-
|
7668
|
-
|
7669
|
-
|
7670
|
-
|
7671
|
-
|
7672
|
-
|
7673
|
-
|
7674
|
-
|
7675
|
-
|
7676
|
-
|
7677
|
-
|
7678
|
-
|
7679
|
-
|
7680
|
-
|
7659
|
+
t && /* @__PURE__ */ C(i1, { children: [
|
7660
|
+
/* @__PURE__ */ r(
|
7661
|
+
"label",
|
7662
|
+
{
|
7663
|
+
className: `${B || Y ? "label-floating" : ""} ${o ? "label-disabled" : ""} ${B ? "label-focused" : ""} ${V ? "label-loading" : ""} ${w ? "label-error" : ""}`,
|
7664
|
+
children: d ? `${t}*` : t
|
7665
|
+
}
|
7666
|
+
),
|
7667
|
+
/* @__PURE__ */ r(
|
7668
|
+
"fieldset",
|
7669
|
+
{
|
7670
|
+
className: `${B ? "fieldset-focused" : ""} ${o ? "fieldset-disabled" : ""} ${Y ? "fieldset-filled" : ""} ${w ? "fieldset-error" : ""}`,
|
7671
|
+
children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: d ? `${t}*` : t }) })
|
7672
|
+
}
|
7673
|
+
)
|
7674
|
+
] })
|
7675
|
+
]
|
7676
|
+
}
|
7677
|
+
),
|
7678
|
+
w && /* @__PURE__ */ C(p1, { justifyContent: "flex-start", gap: 6, children: [
|
7679
|
+
/* @__PURE__ */ r(C1, { name: "attention", color: q.NOTIFICATION_ERROR_DARK }),
|
7680
|
+
typeof w == "string" ? /* @__PURE__ */ r(x3, { color: q.NOTIFICATION_ERROR_DARK, variant: "body4", children: w }) : w
|
7681
|
+
] })
|
7682
|
+
] });
|
7681
7683
|
}
|
7682
7684
|
);
|
7683
7685
|
function b3(i, e = 500) {
|
7684
|
-
const t =
|
7685
|
-
return
|
7686
|
+
const t = F();
|
7687
|
+
return W(() => () => {
|
7686
7688
|
t.current && clearTimeout(t.current);
|
7687
7689
|
}, []), (...s) => {
|
7688
7690
|
const n = setTimeout(() => {
|
@@ -7692,8 +7694,8 @@ function b3(i, e = 500) {
|
|
7692
7694
|
};
|
7693
7695
|
}
|
7694
7696
|
function K1(i) {
|
7695
|
-
const e =
|
7696
|
-
return
|
7697
|
+
const e = F(i);
|
7698
|
+
return W(() => {
|
7697
7699
|
e.current = i;
|
7698
7700
|
}, [i]), e.current;
|
7699
7701
|
}
|
@@ -7714,98 +7716,98 @@ const E1 = 100, a1 = {
|
|
7714
7716
|
preloadOptions: a,
|
7715
7717
|
extraOptions: h,
|
7716
7718
|
onDropdownVisibleChange: u,
|
7717
|
-
optionRender:
|
7718
|
-
dropdownRender:
|
7719
|
-
readOnly:
|
7720
|
-
clearable:
|
7719
|
+
optionRender: p,
|
7720
|
+
dropdownRender: v,
|
7721
|
+
readOnly: R,
|
7722
|
+
clearable: L = !1,
|
7721
7723
|
required: E = !1,
|
7722
7724
|
error: b
|
7723
7725
|
}, V) => {
|
7724
|
-
const [
|
7726
|
+
const [f, w] = A(), [N, m] = A(a1), [H, B] = A(!1), [j, G] = A(), [Q, I] = A(!1), [K, U] = A(
|
7725
7727
|
h ?? []
|
7726
|
-
),
|
7728
|
+
), J = K1(N.offset), X = K1(j), [Z, $] = A(!1), P = F(!1), e1 = D(
|
7727
7729
|
async ({
|
7728
|
-
limit:
|
7729
|
-
offset:
|
7730
|
-
search:
|
7730
|
+
limit: O = E1,
|
7731
|
+
offset: Y,
|
7732
|
+
search: k
|
7731
7733
|
}) => {
|
7732
|
-
|
7734
|
+
B(!0);
|
7733
7735
|
try {
|
7734
7736
|
const _ = await i({
|
7735
|
-
limit:
|
7736
|
-
offset:
|
7737
|
-
search:
|
7737
|
+
limit: O,
|
7738
|
+
offset: Y,
|
7739
|
+
search: k
|
7738
7740
|
});
|
7739
|
-
|
7740
|
-
(
|
7741
|
-
),
|
7742
|
-
...
|
7741
|
+
w(
|
7742
|
+
(S) => Y === 0 ? _.options : [...S ?? [], ..._.options]
|
7743
|
+
), m((S) => ({
|
7744
|
+
...S,
|
7743
7745
|
count: _.count
|
7744
7746
|
}));
|
7745
7747
|
} catch (_) {
|
7746
7748
|
return console.error("AsyncSelect. fetchOptions error", _), [];
|
7747
7749
|
} finally {
|
7748
|
-
|
7750
|
+
B(!1);
|
7749
7751
|
}
|
7750
7752
|
},
|
7751
7753
|
[i]
|
7752
|
-
), t1 = b3((
|
7753
|
-
|
7754
|
-
}), g1 =
|
7755
|
-
(
|
7754
|
+
), t1 = b3((O) => {
|
7755
|
+
G(O), O || m(a1);
|
7756
|
+
}), g1 = D(
|
7757
|
+
(O) => t1(O),
|
7756
7758
|
[t1]
|
7757
|
-
), L1 =
|
7758
|
-
async (
|
7759
|
-
H ||
|
7760
|
-
|
7761
|
-
offset:
|
7759
|
+
), L1 = D(
|
7760
|
+
async (O) => {
|
7761
|
+
H || O && N.count && N.count > ((f == null ? void 0 : f.length) ?? 0) && m((Y) => ({
|
7762
|
+
...Y,
|
7763
|
+
offset: Y.offset + E1
|
7762
7764
|
}));
|
7763
7765
|
},
|
7764
|
-
[H,
|
7765
|
-
), v1 =
|
7766
|
-
(
|
7767
|
-
|
7766
|
+
[H, f == null ? void 0 : f.length, N.count]
|
7767
|
+
), v1 = D(
|
7768
|
+
(O) => {
|
7769
|
+
I(O), !O && j && (G(void 0), m(a1), $(!0)), u == null || u(O);
|
7768
7770
|
},
|
7769
|
-
[u,
|
7771
|
+
[u, j]
|
7770
7772
|
);
|
7771
|
-
|
7772
|
-
!
|
7773
|
-
}, [
|
7774
|
-
(g || a) && e1(a1),
|
7775
|
-
}, []),
|
7776
|
-
h && U((
|
7777
|
-
const
|
7778
|
-
(
|
7773
|
+
W(() => {
|
7774
|
+
!P.current || H || (Z || Q && (J !== N.offset || X !== j || !f)) && (e1({ offset: N.offset, limit: E1, search: j }), Z && $(!1));
|
7775
|
+
}, [Z, Q, N.offset, j, J, X, f, H]), W(() => {
|
7776
|
+
(g || a) && e1(a1), P.current = !0;
|
7777
|
+
}, []), W(() => {
|
7778
|
+
h && U((O) => {
|
7779
|
+
const Y = h.filter(
|
7780
|
+
(k) => !O.some((_) => _.value === k.value)
|
7779
7781
|
);
|
7780
|
-
return [...
|
7782
|
+
return [...O, ...Y];
|
7781
7783
|
});
|
7782
7784
|
}, [h]);
|
7783
|
-
const o1 =
|
7784
|
-
(
|
7785
|
-
t && t(
|
7786
|
-
let
|
7787
|
-
if (d ?
|
7788
|
-
const
|
7789
|
-
(_) => !(
|
7785
|
+
const o1 = D(
|
7786
|
+
(O) => {
|
7787
|
+
t && t(O);
|
7788
|
+
let Y = [];
|
7789
|
+
if (d ? Y = Array.isArray(O) ? O : [] : Y = O ? [O] : [], j) {
|
7790
|
+
const k = Y.filter(
|
7791
|
+
(_) => !(K != null && K.some((S) => S.value === _))
|
7790
7792
|
);
|
7791
|
-
|
7793
|
+
k.length > 0 && U((_ = []) => [
|
7792
7794
|
..._,
|
7793
|
-
...
|
7794
|
-
const l1 =
|
7795
|
+
...k.map((S) => {
|
7796
|
+
const l1 = f == null ? void 0 : f.find((fe) => fe.value === S);
|
7795
7797
|
return {
|
7796
|
-
value:
|
7797
|
-
label: (l1 == null ? void 0 : l1.label) ??
|
7798
|
+
value: S,
|
7799
|
+
label: (l1 == null ? void 0 : l1.label) ?? S
|
7798
7800
|
};
|
7799
7801
|
})
|
7800
|
-
]),
|
7802
|
+
]), G(void 0), m(a1), $(!0);
|
7801
7803
|
}
|
7802
7804
|
},
|
7803
|
-
[t,
|
7805
|
+
[t, j, d, f, K]
|
7804
7806
|
), N1 = Le(
|
7805
7807
|
() => ({
|
7806
7808
|
id: n,
|
7807
7809
|
width: e,
|
7808
|
-
options:
|
7810
|
+
options: f || [],
|
7809
7811
|
onChange: o1,
|
7810
7812
|
ref: V,
|
7811
7813
|
placeholder: o,
|
@@ -7816,19 +7818,19 @@ const E1 = 100, a1 = {
|
|
7816
7818
|
scrollThresholdValue: c,
|
7817
7819
|
onScrollToEnd: L1,
|
7818
7820
|
disabled: l,
|
7819
|
-
extraOptions:
|
7821
|
+
extraOptions: K,
|
7820
7822
|
isLoading: H,
|
7821
|
-
optionRender:
|
7822
|
-
dropdownRender:
|
7823
|
-
readOnly:
|
7824
|
-
clearable:
|
7823
|
+
optionRender: p,
|
7824
|
+
dropdownRender: v,
|
7825
|
+
readOnly: R,
|
7826
|
+
clearable: L,
|
7825
7827
|
required: E,
|
7826
7828
|
error: b
|
7827
7829
|
}),
|
7828
7830
|
[
|
7829
7831
|
n,
|
7830
7832
|
e,
|
7831
|
-
|
7833
|
+
f,
|
7832
7834
|
o1,
|
7833
7835
|
V,
|
7834
7836
|
o,
|
@@ -7838,19 +7840,19 @@ const E1 = 100, a1 = {
|
|
7838
7840
|
c,
|
7839
7841
|
L1,
|
7840
7842
|
l,
|
7841
|
-
|
7843
|
+
K,
|
7842
7844
|
H,
|
7843
|
-
|
7844
|
-
|
7845
|
-
|
7846
|
-
|
7845
|
+
p,
|
7846
|
+
v,
|
7847
|
+
R,
|
7848
|
+
L,
|
7847
7849
|
E,
|
7848
7850
|
b
|
7849
7851
|
]
|
7850
7852
|
);
|
7851
7853
|
return ne(V, () => ({
|
7852
7854
|
refetchOptions: async () => {
|
7853
|
-
|
7855
|
+
m(a1), G(void 0), $(!0);
|
7854
7856
|
}
|
7855
7857
|
})), d ? /* @__PURE__ */ r(G1, { ...N1, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(G1, { ...N1, value: s }) });
|
7856
7858
|
}
|
@@ -8019,7 +8021,7 @@ class y1 {
|
|
8019
8021
|
return e = e || this.options, e.prefix = e.prefix || this.prefix, new y1(this.logger, e);
|
8020
8022
|
}
|
8021
8023
|
}
|
8022
|
-
var
|
8024
|
+
var z = new y1();
|
8023
8025
|
class _1 {
|
8024
8026
|
constructor() {
|
8025
8027
|
this.observers = {};
|
@@ -8144,7 +8146,7 @@ const z1 = {};
|
|
8144
8146
|
class b1 extends _1 {
|
8145
8147
|
constructor(e) {
|
8146
8148
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
8147
|
-
super(), E3(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger =
|
8149
|
+
super(), E3(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = z.create("translator");
|
8148
8150
|
}
|
8149
8151
|
changeLanguage(e) {
|
8150
8152
|
e && (this.language = e);
|
@@ -8190,15 +8192,15 @@ class b1 extends _1 {
|
|
8190
8192
|
} = this.extractFromKey(e[e.length - 1], t), d = o[o.length - 1], g = t.lng || this.language, a = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
8191
8193
|
if (g && g.toLowerCase() === "cimode") {
|
8192
8194
|
if (a) {
|
8193
|
-
const
|
8195
|
+
const f = t.nsSeparator || this.options.nsSeparator;
|
8194
8196
|
return n ? {
|
8195
|
-
res: `${d}${
|
8197
|
+
res: `${d}${f}${c}`,
|
8196
8198
|
usedKey: c,
|
8197
8199
|
exactUsedKey: c,
|
8198
8200
|
usedLng: g,
|
8199
8201
|
usedNS: d,
|
8200
8202
|
usedParams: this.getUsedParamsDetails(t)
|
8201
|
-
} : `${d}${
|
8203
|
+
} : `${d}${f}${c}`;
|
8202
8204
|
}
|
8203
8205
|
return n ? {
|
8204
8206
|
res: c,
|
@@ -8211,64 +8213,64 @@ class b1 extends _1 {
|
|
8211
8213
|
}
|
8212
8214
|
const h = this.resolve(e, t);
|
8213
8215
|
let u = h && h.res;
|
8214
|
-
const
|
8215
|
-
if (b && u && V &&
|
8216
|
+
const p = h && h.usedKey || c, v = h && h.exactUsedKey || c, R = 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(R) < 0 && !(y(E) && Array.isArray(u))) {
|
8216
8218
|
if (!t.returnObjects && !this.options.returnObjects) {
|
8217
8219
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
8218
|
-
const
|
8220
|
+
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
|
8219
8221
|
...t,
|
8220
8222
|
ns: o
|
8221
8223
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
8222
|
-
return n ? (h.res =
|
8224
|
+
return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
|
8223
8225
|
}
|
8224
8226
|
if (l) {
|
8225
|
-
const
|
8226
|
-
for (const
|
8227
|
-
if (Object.prototype.hasOwnProperty.call(u,
|
8228
|
-
const H = `${
|
8229
|
-
|
8227
|
+
const f = Array.isArray(u), w = f ? [] : {}, N = f ? v : p;
|
8228
|
+
for (const m in u)
|
8229
|
+
if (Object.prototype.hasOwnProperty.call(u, m)) {
|
8230
|
+
const H = `${N}${l}${m}`;
|
8231
|
+
w[m] = this.translate(H, {
|
8230
8232
|
...t,
|
8231
8233
|
joinArrays: !1,
|
8232
8234
|
ns: o
|
8233
|
-
}),
|
8235
|
+
}), w[m] === H && (w[m] = u[m]);
|
8234
8236
|
}
|
8235
|
-
u =
|
8237
|
+
u = w;
|
8236
8238
|
}
|
8237
8239
|
} else if (b && y(E) && Array.isArray(u))
|
8238
8240
|
u = u.join(E), u && (u = this.extendTranslation(u, e, t, s));
|
8239
8241
|
else {
|
8240
|
-
let
|
8241
|
-
const
|
8242
|
+
let f = !1, w = !1;
|
8243
|
+
const N = t.count !== void 0 && !y(t.count), m = b1.hasDefaultValue(t), H = N ? this.pluralResolver.getSuffix(g, t.count, t) : "", B = t.ordinal && N ? this.pluralResolver.getSuffix(g, t.count, {
|
8242
8244
|
ordinal: !1
|
8243
|
-
}) : "",
|
8244
|
-
!this.isValidLookup(u) &&
|
8245
|
-
const
|
8246
|
-
if (
|
8247
|
-
if (this.logger.log(
|
8248
|
-
const
|
8245
|
+
}) : "", j = N && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), G = j && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${H}`] || t[`defaultValue${B}`] || t.defaultValue;
|
8246
|
+
!this.isValidLookup(u) && m && (f = !0, u = G), this.isValidLookup(u) || (w = !0, u = c);
|
8247
|
+
const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && w ? void 0 : u, K = m && G !== u && this.options.updateMissing;
|
8248
|
+
if (w || f || K) {
|
8249
|
+
if (this.logger.log(K ? "updateKey" : "missingKey", g, d, c, K ? G : u), l) {
|
8250
|
+
const Z = this.resolve(c, {
|
8249
8251
|
...t,
|
8250
8252
|
keySeparator: !1
|
8251
8253
|
});
|
8252
|
-
|
8254
|
+
Z && Z.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
8253
8255
|
}
|
8254
8256
|
let U = [];
|
8255
|
-
const
|
8256
|
-
if (this.options.saveMissingTo === "fallback" &&
|
8257
|
-
for (let
|
8258
|
-
U.push(
|
8257
|
+
const J = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
8258
|
+
if (this.options.saveMissingTo === "fallback" && J && J[0])
|
8259
|
+
for (let Z = 0; Z < J.length; Z++)
|
8260
|
+
U.push(J[Z]);
|
8259
8261
|
else this.options.saveMissingTo === "all" ? U = this.languageUtils.toResolveHierarchy(t.lng || this.language) : U.push(t.lng || this.language);
|
8260
|
-
const X = (
|
8261
|
-
const e1 =
|
8262
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
8262
|
+
const X = (Z, $, P) => {
|
8263
|
+
const e1 = m && P !== u ? P : I;
|
8264
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(Z, d, $, e1, K, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(Z, d, $, e1, K, t), this.emit("missingKey", Z, d, $, u);
|
8263
8265
|
};
|
8264
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
8265
|
-
const
|
8266
|
-
|
8267
|
-
X([
|
8266
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && N ? U.forEach((Z) => {
|
8267
|
+
const $ = this.pluralResolver.getSuffixes(Z, t);
|
8268
|
+
j && t[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((P) => {
|
8269
|
+
X([Z], c + P, t[`defaultValue${P}`] || G);
|
8268
8270
|
});
|
8269
|
-
}) : X(U, c,
|
8271
|
+
}) : X(U, c, G));
|
8270
8272
|
}
|
8271
|
-
u = this.extendTranslation(u, e, t, h, s),
|
8273
|
+
u = this.extendTranslation(u, e, t, h, s), w && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (w || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, f ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
|
8272
8274
|
}
|
8273
8275
|
return n ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
|
8274
8276
|
}
|
@@ -8300,13 +8302,13 @@ class b1 extends _1 {
|
|
8300
8302
|
...this.options.interpolation.defaultVariables,
|
8301
8303
|
...h
|
8302
8304
|
}), e = this.interpolator.interpolate(e, h, s.lng || this.language || n.usedLng, s), g) {
|
8303
|
-
const u = e.match(this.interpolator.nestingRegexp),
|
8304
|
-
a <
|
8305
|
+
const u = e.match(this.interpolator.nestingRegexp), p = u && u.length;
|
8306
|
+
a < p && (s.nest = !1);
|
8305
8307
|
}
|
8306
8308
|
!s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
8307
|
-
for (var u = arguments.length,
|
8308
|
-
|
8309
|
-
return l && l[0] ===
|
8309
|
+
for (var u = arguments.length, p = new Array(u), v = 0; v < u; v++)
|
8310
|
+
p[v] = arguments[v];
|
8311
|
+
return l && l[0] === p[0] && !s.context ? (c.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : c.translate(...p, t);
|
8310
8312
|
}, s)), s.interpolation && this.interpolator.reset();
|
8311
8313
|
}
|
8312
8314
|
const o = s.postProcess || this.options.postProcess, d = y(o) ? [o] : o;
|
@@ -8326,26 +8328,26 @@ class b1 extends _1 {
|
|
8326
8328
|
n = a;
|
8327
8329
|
let h = g.namespaces;
|
8328
8330
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
8329
|
-
const u = t.count !== void 0 && !y(t.count),
|
8330
|
-
h.forEach((
|
8331
|
-
this.isValidLookup(s) || (o =
|
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 !== "", R = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
8332
|
+
h.forEach((L) => {
|
8333
|
+
this.isValidLookup(s) || (o = L, !z1[`${R[0]}-${L}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (z1[`${R[0]}-${L}`] = !0, this.logger.warn(`key "${n}" for languages "${R.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!!!")), R.forEach((E) => {
|
8332
8334
|
if (this.isValidLookup(s)) return;
|
8333
8335
|
c = E;
|
8334
8336
|
const b = [a];
|
8335
8337
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
8336
|
-
this.i18nFormat.addLookupKeys(b, a, E,
|
8338
|
+
this.i18nFormat.addLookupKeys(b, a, E, L, t);
|
8337
8339
|
else {
|
8338
|
-
let
|
8339
|
-
u && (
|
8340
|
-
const
|
8341
|
-
if (u && (b.push(a +
|
8342
|
-
const
|
8343
|
-
b.push(
|
8340
|
+
let f;
|
8341
|
+
u && (f = this.pluralResolver.getSuffix(E, t.count, t));
|
8342
|
+
const w = `${this.options.pluralSeparator}zero`, N = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
8343
|
+
if (u && (b.push(a + f), t.ordinal && f.indexOf(N) === 0 && b.push(a + f.replace(N, this.options.pluralSeparator)), p && b.push(a + w)), v) {
|
8344
|
+
const m = `${a}${this.options.contextSeparator}${t.context}`;
|
8345
|
+
b.push(m), u && (b.push(m + f), t.ordinal && f.indexOf(N) === 0 && b.push(m + f.replace(N, this.options.pluralSeparator)), p && b.push(m + w));
|
8344
8346
|
}
|
8345
8347
|
}
|
8346
8348
|
let V;
|
8347
8349
|
for (; V = b.pop(); )
|
8348
|
-
this.isValidLookup(s) || (l = V, s = this.getResource(E,
|
8350
|
+
this.isValidLookup(s) || (l = V, s = this.getResource(E, L, V, t));
|
8349
8351
|
}));
|
8350
8352
|
});
|
8351
8353
|
}), {
|
@@ -8390,7 +8392,7 @@ class b1 extends _1 {
|
|
8390
8392
|
const V1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
8391
8393
|
class J1 {
|
8392
8394
|
constructor(e) {
|
8393
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
8395
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = z.create("languageUtils");
|
8394
8396
|
}
|
8395
8397
|
getScriptPartFromCode(e) {
|
8396
8398
|
if (e = R1(e), !e || e.indexOf("-") < 0) return null;
|
@@ -8590,7 +8592,7 @@ const G3 = ["v1", "v2", "v3"], K3 = ["v4"], q1 = {
|
|
8590
8592
|
class $3 {
|
8591
8593
|
constructor(e) {
|
8592
8594
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
8593
|
-
this.languageUtils = e, this.options = t, this.logger =
|
8595
|
+
this.languageUtils = e, this.options = t, this.logger = z.create("pluralResolver"), (!this.options.compatibilityJSON || K3.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = P3(), this.pluralRulesCache = {};
|
8594
8596
|
}
|
8595
8597
|
addRule(e, t) {
|
8596
8598
|
this.rules[e] = t;
|
@@ -8658,7 +8660,7 @@ const Q1 = function(i, e, t) {
|
|
8658
8660
|
class Y3 {
|
8659
8661
|
constructor() {
|
8660
8662
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
8661
|
-
this.logger =
|
8663
|
+
this.logger = z.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
8662
8664
|
}
|
8663
8665
|
init() {
|
8664
8666
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
@@ -8677,14 +8679,14 @@ class Y3 {
|
|
8677
8679
|
unescapeSuffix: a,
|
8678
8680
|
unescapePrefix: h,
|
8679
8681
|
nestingPrefix: u,
|
8680
|
-
nestingPrefixEscaped:
|
8681
|
-
nestingSuffix:
|
8682
|
-
nestingSuffixEscaped:
|
8683
|
-
nestingOptionsSeparator:
|
8682
|
+
nestingPrefixEscaped: p,
|
8683
|
+
nestingSuffix: v,
|
8684
|
+
nestingSuffixEscaped: R,
|
8685
|
+
nestingOptionsSeparator: L,
|
8684
8686
|
maxReplaces: E,
|
8685
8687
|
alwaysFormat: b
|
8686
8688
|
} = e.interpolation;
|
8687
|
-
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) :
|
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) : R || h1(")"), this.nestingOptionsSeparator = L || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
|
8688
8690
|
}
|
8689
8691
|
reset() {
|
8690
8692
|
this.options && this.init(this.options);
|
@@ -8695,47 +8697,47 @@ class Y3 {
|
|
8695
8697
|
}
|
8696
8698
|
interpolate(e, t, s, n) {
|
8697
8699
|
let l, c, o;
|
8698
|
-
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (
|
8699
|
-
if (
|
8700
|
-
const E = Q1(t, d,
|
8700
|
+
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
|
8701
|
+
if (p.indexOf(this.formatSeparator) < 0) {
|
8702
|
+
const E = Q1(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
8701
8703
|
return this.alwaysFormat ? this.format(E, void 0, s, {
|
8702
8704
|
...n,
|
8703
8705
|
...t,
|
8704
|
-
interpolationkey:
|
8706
|
+
interpolationkey: p
|
8705
8707
|
}) : E;
|
8706
8708
|
}
|
8707
|
-
const
|
8708
|
-
return this.format(Q1(t, d,
|
8709
|
+
const v = p.split(this.formatSeparator), R = v.shift().trim(), L = v.join(this.formatSeparator).trim();
|
8710
|
+
return this.format(Q1(t, d, R, this.options.keySeparator, this.options.ignoreJSONStructure), L, s, {
|
8709
8711
|
...n,
|
8710
8712
|
...t,
|
8711
|
-
interpolationkey:
|
8713
|
+
interpolationkey: R
|
8712
8714
|
});
|
8713
8715
|
};
|
8714
8716
|
this.resetRegExp();
|
8715
8717
|
const a = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, h = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
8716
8718
|
return [{
|
8717
8719
|
regex: this.regexpUnescape,
|
8718
|
-
safeValue: (
|
8720
|
+
safeValue: (p) => H1(p)
|
8719
8721
|
}, {
|
8720
8722
|
regex: this.regexp,
|
8721
|
-
safeValue: (
|
8722
|
-
}].forEach((
|
8723
|
-
for (o = 0; l =
|
8724
|
-
const
|
8725
|
-
if (c = g(
|
8723
|
+
safeValue: (p) => this.escapeValue ? H1(this.escape(p)) : H1(p)
|
8724
|
+
}].forEach((p) => {
|
8725
|
+
for (o = 0; l = p.regex.exec(e); ) {
|
8726
|
+
const v = l[1].trim();
|
8727
|
+
if (c = g(v), c === void 0)
|
8726
8728
|
if (typeof a == "function") {
|
8727
|
-
const
|
8728
|
-
c = y(
|
8729
|
-
} else if (n && Object.prototype.hasOwnProperty.call(n,
|
8729
|
+
const L = a(e, l, n);
|
8730
|
+
c = y(L) ? L : "";
|
8731
|
+
} else if (n && Object.prototype.hasOwnProperty.call(n, v))
|
8730
8732
|
c = "";
|
8731
8733
|
else if (h) {
|
8732
8734
|
c = l[0];
|
8733
8735
|
continue;
|
8734
8736
|
} else
|
8735
|
-
this.logger.warn(`missed to pass in variable ${
|
8737
|
+
this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`), c = "";
|
8736
8738
|
else !y(c) && !this.useRawValueToEscape && (c = P1(c));
|
8737
|
-
const
|
8738
|
-
if (e = e.replace(l[0],
|
8739
|
+
const R = p.safeValue(c);
|
8740
|
+
if (e = e.replace(l[0], R), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= l[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
8739
8741
|
break;
|
8740
8742
|
}
|
8741
8743
|
}), e;
|
@@ -8748,15 +8750,15 @@ class Y3 {
|
|
8748
8750
|
const h = d.split(new RegExp(`${a}[ ]*{`));
|
8749
8751
|
let u = `{${h[1]}`;
|
8750
8752
|
d = h[0], u = this.interpolate(u, c);
|
8751
|
-
const
|
8752
|
-
(
|
8753
|
+
const p = u.match(/'/g), v = u.match(/"/g);
|
8754
|
+
(p && p.length % 2 === 0 && !v || v.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
|
8753
8755
|
try {
|
8754
8756
|
c = JSON.parse(u), g && (c = {
|
8755
8757
|
...g,
|
8756
8758
|
...c
|
8757
8759
|
});
|
8758
|
-
} catch (
|
8759
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${d}`,
|
8760
|
+
} catch (R) {
|
8761
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, R), `${d}${a}${u}`;
|
8760
8762
|
}
|
8761
8763
|
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, d;
|
8762
8764
|
};
|
@@ -8813,7 +8815,7 @@ const F3 = (i) => {
|
|
8813
8815
|
class U3 {
|
8814
8816
|
constructor() {
|
8815
8817
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
8816
|
-
this.logger =
|
8818
|
+
this.logger = z.create("formatter"), this.options = e, this.formats = {
|
8817
8819
|
number: c1((t, s) => {
|
8818
8820
|
const n = new Intl.NumberFormat(t, {
|
8819
8821
|
...s
|
@@ -8874,8 +8876,8 @@ class U3 {
|
|
8874
8876
|
if (this.formats[g]) {
|
8875
8877
|
let h = o;
|
8876
8878
|
try {
|
8877
|
-
const u = n && n.formatParams && n.formatParams[n.interpolationkey] || {},
|
8878
|
-
h = this.formats[g](o,
|
8879
|
+
const u = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = u.locale || u.lng || n.locale || n.lng || s;
|
8880
|
+
h = this.formats[g](o, p, {
|
8879
8881
|
...a,
|
8880
8882
|
...n,
|
8881
8883
|
...u
|
@@ -8896,7 +8898,7 @@ const z3 = (i, e) => {
|
|
8896
8898
|
class J3 extends _1 {
|
8897
8899
|
constructor(e, t, s) {
|
8898
8900
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
8899
|
-
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger =
|
8901
|
+
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = z.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = n.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = n.maxRetries >= 0 ? n.maxRetries : 5, this.retryTimeout = n.retryTimeout >= 1 ? n.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, n.backend, n);
|
8900
8902
|
}
|
8901
8903
|
queueLoad(e, t, s, n) {
|
8902
8904
|
const l = {}, c = {}, o = {}, d = {};
|
@@ -9093,7 +9095,7 @@ const X1 = () => ({
|
|
9093
9095
|
class m1 extends _1 {
|
9094
9096
|
constructor() {
|
9095
9097
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
9096
|
-
if (super(), this.options = ee(e), this.services = {}, this.logger =
|
9098
|
+
if (super(), this.options = ee(e), this.services = {}, this.logger = z, this.modules = {
|
9097
9099
|
external: []
|
9098
9100
|
}, q3(this), t && !this.isInitialized && !e.isClone) {
|
9099
9101
|
if (!this.options.initImmediate)
|
@@ -9118,28 +9120,28 @@ class m1 extends _1 {
|
|
9118
9120
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
9119
9121
|
const l = (a) => a ? typeof a == "function" ? new a() : a : null;
|
9120
9122
|
if (!this.options.isClone) {
|
9121
|
-
this.modules.logger ?
|
9123
|
+
this.modules.logger ? z.init(l(this.modules.logger), this.options) : z.init(null, this.options);
|
9122
9124
|
let a;
|
9123
9125
|
this.modules.formatter ? a = this.modules.formatter : typeof Intl < "u" && (a = U3);
|
9124
9126
|
const h = new J1(this.options);
|
9125
9127
|
this.store = new U1(this.options.resources, this.options);
|
9126
9128
|
const u = this.services;
|
9127
|
-
u.logger =
|
9129
|
+
u.logger = z, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new $3(h, {
|
9128
9130
|
prepend: this.options.pluralSeparator,
|
9129
9131
|
compatibilityJSON: this.options.compatibilityJSON,
|
9130
9132
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
9131
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 = {
|
9132
9134
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
9133
|
-
}, u.backendConnector = new J3(l(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(
|
9134
|
-
for (var
|
9135
|
-
|
9136
|
-
e.emit(
|
9137
|
-
}), 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(
|
9138
|
-
for (var
|
9139
|
-
|
9140
|
-
e.emit(
|
9141
|
-
}), this.modules.external.forEach((
|
9142
|
-
|
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, R = new Array(v > 1 ? v - 1 : 0), L = 1; L < v; L++)
|
9137
|
+
R[L - 1] = arguments[L];
|
9138
|
+
e.emit(p, ...R);
|
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, R = new Array(v > 1 ? v - 1 : 0), L = 1; L < v; L++)
|
9141
|
+
R[L - 1] = arguments[L];
|
9142
|
+
e.emit(p, ...R);
|
9143
|
+
}), this.modules.external.forEach((p) => {
|
9144
|
+
p.init && p.init(this);
|
9143
9145
|
});
|
9144
9146
|
}
|
9145
9147
|
if (this.format = this.options.interpolation.format, s || (s = x1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
@@ -9238,8 +9240,8 @@ class m1 extends _1 {
|
|
9238
9240
|
};
|
9239
9241
|
d.lng = d.lng || l.lng, d.lngs = d.lngs || l.lngs, d.ns = d.ns || l.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || s || l.keyPrefix);
|
9240
9242
|
const u = n.options.keySeparator || ".";
|
9241
|
-
let
|
9242
|
-
return d.keyPrefix && Array.isArray(c) ?
|
9243
|
+
let p;
|
9244
|
+
return d.keyPrefix && Array.isArray(c) ? p = c.map((v) => `${d.keyPrefix}${u}${v}`) : p = d.keyPrefix ? `${d.keyPrefix}${u}${c}` : c, n.t(p, d);
|
9243
9245
|
};
|
9244
9246
|
return y(e) ? l.lng = e : l.lngs = e, l.ns = t, l.keyPrefix = s, l;
|
9245
9247
|
}
|
@@ -9328,22 +9330,22 @@ class m1 extends _1 {
|
|
9328
9330
|
};
|
9329
9331
|
}
|
9330
9332
|
}
|
9331
|
-
const
|
9332
|
-
|
9333
|
-
|
9334
|
-
|
9335
|
-
|
9336
|
-
|
9337
|
-
|
9338
|
-
|
9339
|
-
|
9340
|
-
|
9341
|
-
|
9342
|
-
|
9343
|
-
|
9344
|
-
|
9345
|
-
|
9346
|
-
|
9333
|
+
const T = m1.createInstance();
|
9334
|
+
T.createInstance = m1.createInstance;
|
9335
|
+
T.createInstance;
|
9336
|
+
T.dir;
|
9337
|
+
T.init;
|
9338
|
+
T.loadResources;
|
9339
|
+
T.reloadResources;
|
9340
|
+
T.use;
|
9341
|
+
T.changeLanguage;
|
9342
|
+
T.getFixedT;
|
9343
|
+
T.t;
|
9344
|
+
T.exists;
|
9345
|
+
T.setDefaultNamespace;
|
9346
|
+
T.hasLoadedNamespace;
|
9347
|
+
T.loadNamespaces;
|
9348
|
+
T.loadLanguages;
|
9347
9349
|
function Q3() {
|
9348
9350
|
if (console && console.warn) {
|
9349
9351
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
@@ -9451,11 +9453,11 @@ class g0 {
|
|
9451
9453
|
}
|
9452
9454
|
}
|
9453
9455
|
const C0 = (i, e) => {
|
9454
|
-
const t =
|
9455
|
-
return
|
9456
|
+
const t = F();
|
9457
|
+
return W(() => {
|
9456
9458
|
t.current = i;
|
9457
9459
|
}, [i, e]), t.current;
|
9458
|
-
}, pe = (i, e, t, s) => i.getFixedT(e, t, s), u0 = (i, e, t, s) =>
|
9460
|
+
}, pe = (i, e, t, s) => i.getFixedT(e, t, s), u0 = (i, e, t, s) => D(pe(i, e, t, s), [i, e, t, s]), p0 = function(i) {
|
9459
9461
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
9460
9462
|
const {
|
9461
9463
|
i18n: t
|
@@ -9465,8 +9467,8 @@ const C0 = (i, e) => {
|
|
9465
9467
|
} = r1(d0) || {}, l = t || s || h0();
|
9466
9468
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new g0()), !l) {
|
9467
9469
|
S1("You will need to pass in an i18next instance by using initReactI18next");
|
9468
|
-
const
|
9469
|
-
return
|
9470
|
+
const f = (N, m) => n1(m) ? m : t0(m) && n1(m.defaultValue) ? m.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, w = [f, {}, !1];
|
9471
|
+
return w.t = f, w.i18n = {}, w.ready = !1, w;
|
9470
9472
|
}
|
9471
9473
|
l.options.react && l.options.react.wait !== void 0 && S1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
9472
9474
|
const c = {
|
@@ -9479,33 +9481,33 @@ const C0 = (i, e) => {
|
|
9479
9481
|
} = c;
|
9480
9482
|
let g = i;
|
9481
9483
|
g = n1(g) ? [g] : g || ["translation"], l.reportNamespaces.addUsedNamespaces && l.reportNamespaces.addUsedNamespaces(g);
|
9482
|
-
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((
|
9483
|
-
let
|
9484
|
-
e.lng && (
|
9485
|
-
const E = C0(
|
9486
|
-
|
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, R] = A(u);
|
9485
|
+
let L = g.join();
|
9486
|
+
e.lng && (L = `${e.lng}${L}`);
|
9487
|
+
const E = C0(L), b = F(!0);
|
9488
|
+
W(() => {
|
9487
9489
|
const {
|
9488
|
-
bindI18n:
|
9489
|
-
bindI18nStore:
|
9490
|
+
bindI18n: f,
|
9491
|
+
bindI18nStore: w
|
9490
9492
|
} = c;
|
9491
9493
|
b.current = !0, !a && !o && (e.lng ? se(l, e.lng, g, () => {
|
9492
|
-
b.current &&
|
9494
|
+
b.current && R(p);
|
9493
9495
|
}) : ie(l, g, () => {
|
9494
|
-
b.current &&
|
9495
|
-
})), a && E && E !==
|
9496
|
-
const
|
9497
|
-
b.current &&
|
9496
|
+
b.current && R(p);
|
9497
|
+
})), a && E && E !== L && b.current && R(p);
|
9498
|
+
const N = () => {
|
9499
|
+
b.current && R(p);
|
9498
9500
|
};
|
9499
|
-
return
|
9500
|
-
b.current = !1,
|
9501
|
+
return f && l && l.on(f, N), w && l && l.store.on(w, N), () => {
|
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));
|
9501
9503
|
};
|
9502
|
-
}, [l,
|
9503
|
-
b.current && a &&
|
9504
|
+
}, [l, L]), W(() => {
|
9505
|
+
b.current && a && R(u);
|
9504
9506
|
}, [l, d, a]);
|
9505
|
-
const V = [
|
9506
|
-
if (V.t =
|
9507
|
-
throw new Promise((
|
9508
|
-
e.lng ? se(l, e.lng, g, () =>
|
9507
|
+
const V = [v, l, a];
|
9508
|
+
if (V.t = v, V.i18n = l, V.ready = a, a || !a && !o) return V;
|
9509
|
+
throw new Promise((f) => {
|
9510
|
+
e.lng ? se(l, e.lng, g, () => f()) : ie(l, g, () => f());
|
9509
9511
|
});
|
9510
9512
|
}, f0 = "City", w0 = {
|
9511
9513
|
placeholder: f0
|
@@ -9513,12 +9515,12 @@ const C0 = (i, e) => {
|
|
9513
9515
|
placeholder: m0
|
9514
9516
|
};
|
9515
9517
|
function L0(i) {
|
9516
|
-
const e =
|
9517
|
-
return
|
9518
|
+
const e = F(i);
|
9519
|
+
return W(() => {
|
9518
9520
|
e.current = i;
|
9519
9521
|
}, [i]), e.current;
|
9520
9522
|
}
|
9521
|
-
|
9523
|
+
T.use(c0).init({
|
9522
9524
|
defaultNS: "common",
|
9523
9525
|
lng: "en",
|
9524
9526
|
resources: {
|
@@ -9531,100 +9533,101 @@ D.use(c0).init({
|
|
9531
9533
|
}
|
9532
9534
|
});
|
9533
9535
|
const b0 = k1(
|
9534
|
-
({ width: i, selectedCountry: e, onChange: t, value: s, id: n, disabled: l },
|
9535
|
-
const [
|
9536
|
+
({ width: i, selectedCountry: e, onChange: t, value: s, id: n, disabled: l, clearable: c }, o) => {
|
9537
|
+
const [d, g] = A(
|
9536
9538
|
[]
|
9537
|
-
), [
|
9538
|
-
if (!
|
9539
|
+
), [a, h] = A(!1), { locale: u, axiosPeople: p } = r1(ke), v = F(!1), R = F(null), L = F(d), E = L0(e);
|
9540
|
+
if (!p)
|
9539
9541
|
throw new Error(
|
9540
9542
|
`CitySelect requires "axiosPeople" to fetch cities.
|
9541
9543
|
Please provide it via SNMTUiContext.`
|
9542
9544
|
);
|
9543
|
-
const { t:
|
9544
|
-
async (
|
9545
|
-
const
|
9546
|
-
if (
|
9547
|
-
return [
|
9545
|
+
const { t: b } = p0("common", { lng: u }), V = D(
|
9546
|
+
async (w) => {
|
9547
|
+
const N = L.current.find((m) => m.value === w);
|
9548
|
+
if (N)
|
9549
|
+
return [N];
|
9548
9550
|
try {
|
9549
|
-
const
|
9551
|
+
const H = (await p.post("v1/cities/search", {
|
9550
9552
|
filters: {
|
9551
|
-
geoNameId: [
|
9553
|
+
geoNameId: [w],
|
9552
9554
|
countryId: [e]
|
9553
9555
|
}
|
9554
9556
|
})).data.data;
|
9555
|
-
if (!
|
9557
|
+
if (!H.length)
|
9556
9558
|
return t(null), [];
|
9557
|
-
const
|
9558
|
-
value:
|
9559
|
-
label:
|
9559
|
+
const B = {
|
9560
|
+
value: H[0].geoNameId,
|
9561
|
+
label: H[0].name
|
9560
9562
|
};
|
9561
|
-
return
|
9562
|
-
} catch (
|
9563
|
-
return console.error("CitySelect. fetchSelectedItems error",
|
9563
|
+
return L.current = [...L.current, B], [B];
|
9564
|
+
} catch (m) {
|
9565
|
+
return console.error("CitySelect. fetchSelectedItems error", m), [];
|
9564
9566
|
}
|
9565
9567
|
},
|
9566
|
-
[
|
9568
|
+
[p, e, t]
|
9567
9569
|
);
|
9568
|
-
|
9570
|
+
W(() => {
|
9569
9571
|
(async () => {
|
9570
9572
|
if (!s) return;
|
9571
|
-
const
|
9572
|
-
|
9573
|
+
const N = await V(s);
|
9574
|
+
g(N);
|
9573
9575
|
})();
|
9574
|
-
}, []),
|
9575
|
-
var
|
9576
|
-
|
9577
|
-
}, [e, t,
|
9578
|
-
const
|
9576
|
+
}, []), W(() => {
|
9577
|
+
var w;
|
9578
|
+
E !== e ? v.current && (t(null), g([]), L.current = [], (w = R.current) == null || w.refetchOptions()) : v.current = !0;
|
9579
|
+
}, [e, t, E]);
|
9580
|
+
const f = D(
|
9579
9581
|
async ({
|
9580
|
-
limit:
|
9581
|
-
offset:
|
9582
|
-
search:
|
9582
|
+
limit: w,
|
9583
|
+
offset: N,
|
9584
|
+
search: m
|
9583
9585
|
}) => {
|
9584
9586
|
try {
|
9585
|
-
|
9586
|
-
const
|
9587
|
-
offset:
|
9588
|
-
limit:
|
9587
|
+
h(!0);
|
9588
|
+
const H = {
|
9589
|
+
offset: N,
|
9590
|
+
limit: w,
|
9589
9591
|
includeCount: !0
|
9590
9592
|
};
|
9591
|
-
|
9592
|
-
const
|
9593
|
+
H.filters = {}, e && e.length > 0 && (H.filters.countryId = [e]), m && (H.search = m);
|
9594
|
+
const B = await p.post("v1/cities/search", H), j = (B == null ? void 0 : B.data.data) || [], G = B == null ? void 0 : B.data.metadata.count;
|
9593
9595
|
return {
|
9594
|
-
options:
|
9595
|
-
value:
|
9596
|
-
label:
|
9596
|
+
options: j.map((I) => ({
|
9597
|
+
value: I.geoNameId,
|
9598
|
+
label: I.name
|
9597
9599
|
})),
|
9598
|
-
count:
|
9599
|
-
limit:
|
9600
|
+
count: G,
|
9601
|
+
limit: w
|
9600
9602
|
};
|
9601
|
-
} catch (
|
9602
|
-
return console.error("CitySelect. loadOptions error",
|
9603
|
+
} catch (H) {
|
9604
|
+
return console.error("CitySelect. loadOptions error", H), {
|
9603
9605
|
options: [],
|
9604
9606
|
count: 0,
|
9605
|
-
limit:
|
9607
|
+
limit: w
|
9606
9608
|
};
|
9607
9609
|
} finally {
|
9608
|
-
|
9610
|
+
h(!1);
|
9609
9611
|
}
|
9610
9612
|
},
|
9611
|
-
[
|
9613
|
+
[p, e]
|
9612
9614
|
);
|
9613
|
-
return ne(
|
9615
|
+
return ne(o, () => R.current), /* @__PURE__ */ r("div", { className: "snmt-city-select", children: /* @__PURE__ */ r(
|
9614
9616
|
_3,
|
9615
9617
|
{
|
9616
9618
|
id: n,
|
9617
9619
|
width: i,
|
9618
|
-
value:
|
9620
|
+
value: a && s ? null : s,
|
9619
9621
|
onChange: t,
|
9620
|
-
ref:
|
9622
|
+
ref: R,
|
9621
9623
|
search: !0,
|
9622
|
-
placeholder:
|
9624
|
+
placeholder: b("placeholder"),
|
9623
9625
|
disabled: l,
|
9624
|
-
|
9626
|
+
clearable: c,
|
9627
|
+
loadOptions: f,
|
9625
9628
|
preloadOptions: !0,
|
9626
|
-
extraOptions:
|
9627
|
-
isLoading:
|
9629
|
+
extraOptions: d,
|
9630
|
+
isLoading: a
|
9628
9631
|
}
|
9629
9632
|
) });
|
9630
9633
|
}
|