@snmt-react-ui/city-select 2.5.9 → 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.
@@ -4,8 +4,8 @@ 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 S, useRef as Y, useEffect as Z, useCallback as j, useMemo as Le, useImperativeHandle as ne, useContext as r1 } from "react";
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";
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 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) {
@@ -100,11 +100,11 @@ class Pe {
100
100
  }
101
101
  }
102
102
  const $e = (i, e) => {
103
- const t = Y();
104
- return Z(() => {
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) => j(le(i, e, t, s), [i, e, t, s]), Fe = function(i) {
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 p = (v, w) => s1(w) ? w : Se(w) && s1(w.defaultValue) ? w.defaultValue : Array.isArray(v) ? v[v.length - 1] : v, L = [p, {}, !1];
118
- return L.t = p, L.i18n = {}, L.ready = !1, L;
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((p) => Oe(p, l, c)), h = Ye(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, f = () => le(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [k, x] = S(u);
132
- let N = g.join();
133
- e.lng && (N = `${e.lng}${N}`);
134
- const E = $e(N), b = Y(!0);
135
- Z(() => {
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
+ 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: p,
138
- bindI18nStore: L
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 && x(f);
141
+ b.current && M(p);
142
142
  }) : j1(l, g, () => {
143
- b.current && x(f);
144
- })), a && E && E !== N && b.current && x(f);
145
- const v = () => {
146
- b.current && x(f);
143
+ b.current && M(p);
144
+ })), a && E && E !== L && b.current && M(p);
145
+ const N = () => {
146
+ b.current && M(p);
147
147
  };
148
- return p && l && l.on(p, v), L && l && l.store.on(L, v), () => {
149
- b.current = !1, p && l && p.split(" ").forEach((w) => l.off(w, v)), L && l && L.split(" ").forEach((w) => l.store.off(w, v));
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, N]), Z(() => {
152
- b.current && a && x(u);
151
+ }, [l, L]), W(() => {
152
+ b.current && a && M(u);
153
153
  }, [l, d, a]);
154
- const V = [k, l, a];
155
- if (V.t = k, V.i18n = l, V.ready = a, a || !a && !o) return V;
156
- throw new Promise((p) => {
157
- e.lng ? D1(l, e.lng, g, () => p()) : j1(l, g, () => p());
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 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 || {});
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,13 +206,13 @@ const ze = ({
206
206
  disabled: n = !1,
207
207
  disableUncheck: l = !1
208
208
  }) => {
209
- const [c, o] = S(i), [d, g] = S(e);
210
- Z(() => {
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);
214
214
  return /* @__PURE__ */ r(
215
- Me,
215
+ Re,
216
216
  {
217
217
  className: `snmt-checkbox snmt-checkbox-${a}`,
218
218
  checked: c,
@@ -225,7 +225,7 @@ const ze = ({
225
225
  }
226
226
  );
227
227
  };
228
- 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 || {});
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"
@@ -1253,7 +1253,7 @@ const Je = ({
1253
1253
  )
1254
1254
  ]
1255
1255
  }
1256
- ), M2 = ({
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
- ), R2 = ({
1285
+ ), M2 = ({
1286
1286
  width: i = 11,
1287
1287
  height: e = 11,
1288
1288
  color: t = "#FFB020",
@@ -1771,7 +1771,7 @@ const Je = ({
1771
1771
  ), j2 = ({
1772
1772
  width: i = 24,
1773
1773
  height: e = 24,
1774
- color: t = M.GREY_DARK_5,
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 = M.GREY_DARK_1,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_3,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.NOTIFICATION_WARNING_DARK,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_5,
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 = M.GREY_DARK_2,
2989
+ color: e = x.GREY_DARK_2,
2990
2990
  height: t = 16,
2991
2991
  width: s = 16,
2992
2992
  onClick: n
@@ -3003,8 +3003,8 @@ const Je = ({
3003
3003
  children: /* @__PURE__ */ r(
3004
3004
  "path",
3005
3005
  {
3006
- "fill-rule": "evenodd",
3007
- "clip-rule": "evenodd",
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
  }
@@ -3012,7 +3012,7 @@ const Je = ({
3012
3012
  }
3013
3013
  ), mt = ({
3014
3014
  className: i,
3015
- color: e = M.GREY_DARK_5,
3015
+ color: e = x.GREY_DARK_5,
3016
3016
  height: t = 20,
3017
3017
  width: s = 20,
3018
3018
  onClick: n
@@ -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", { "clip-path": "url(#clip0_3992_5989)", children: /* @__PURE__ */ r(
3030
+ /* @__PURE__ */ r("g", { clipPath: "url(#clip0_3992_5989)", children: /* @__PURE__ */ r(
3031
3031
  "path",
3032
3032
  {
3033
- "fill-rule": "evenodd",
3034
- "clip-rule": "evenodd",
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
  }
@@ -3041,7 +3041,7 @@ const Je = ({
3041
3041
  }
3042
3042
  ), kt = ({
3043
3043
  className: i,
3044
- color: e = M.GREY_DARK_5,
3044
+ color: e = x.GREY_DARK_5,
3045
3045
  height: t = 20,
3046
3046
  width: s = 20,
3047
3047
  onClick: n
@@ -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", { "clip-path": "url(#clip0_3992_5988)", children: /* @__PURE__ */ r(
3059
+ /* @__PURE__ */ r("g", { clipPath: "url(#clip0_3992_5988)", children: /* @__PURE__ */ r(
3060
3060
  "path",
3061
3061
  {
3062
- "fill-rule": "evenodd",
3063
- "clip-rule": "evenodd",
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
  }
@@ -3070,7 +3070,7 @@ const Je = ({
3070
3070
  }
3071
3071
  ), Lt = ({
3072
3072
  className: i,
3073
- color: e = M.GREY_DARK_5,
3073
+ color: e = x.GREY_DARK_5,
3074
3074
  height: t = 20,
3075
3075
  width: s = 20,
3076
3076
  onClick: n
@@ -3085,12 +3085,12 @@ 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: M.GREY_LIGHT_2 }),
3088
+ /* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: x.GREY_LIGHT_2 }),
3089
3089
  /* @__PURE__ */ r(
3090
3090
  "path",
3091
3091
  {
3092
- "fill-rule": "evenodd",
3093
- "clip-rule": "evenodd",
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
  }
@@ -3099,7 +3099,7 @@ const Je = ({
3099
3099
  }
3100
3100
  ), vt = ({
3101
3101
  className: i,
3102
- color: e = M.GREY_DARK_5,
3102
+ color: e = x.GREY_DARK_5,
3103
3103
  height: t = 20,
3104
3104
  width: s = 20,
3105
3105
  onClick: n
@@ -3114,12 +3114,12 @@ 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: M.GREY_LIGHT_2 }),
3117
+ /* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: x.GREY_LIGHT_2 }),
3118
3118
  /* @__PURE__ */ r(
3119
3119
  "path",
3120
3120
  {
3121
- "fill-rule": "evenodd",
3122
- "clip-rule": "evenodd",
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
- "fill-rule": "evenodd",
3149
- "clip-rule": "evenodd",
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
- ), Mt = ({
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
- ), Rt = ({
3221
+ ), Mt = ({
3222
3222
  width: i = 20,
3223
3223
  height: e = 20,
3224
3224
  color: t = "#001E52",
@@ -3310,7 +3310,7 @@ const Je = ({
3310
3310
  ), bt = ({
3311
3311
  width: i = 24,
3312
3312
  height: e = 24,
3313
- color: t = M.GREY_DARK_2,
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 = M.GREY_DARK_2,
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 = M.GREY_DARK_2,
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 = M.GREY_DARK_2,
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 = M.GREY_DARK_2,
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] = S(n), { theme: g } = r1(ae), a = l ? g && g === "dark" ? M.GREY_LIGHT_4 : M.GREY_DARK_1 : s, h = l ? void 0 : c;
3480
- return Z(() => {
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;
@@ -3570,9 +3570,9 @@ const Je = ({
3570
3570
  onClick: h
3571
3571
  });
3572
3572
  case "success":
3573
- return M2({ width: e, height: t, color: a, className: o, onClick: h });
3573
+ return R2({ width: e, height: t, color: a, className: o, onClick: h });
3574
3574
  case "attentionSmall":
3575
- return R2({
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":
@@ -5286,7 +5286,7 @@ const Bt = ({
5286
5286
  )
5287
5287
  ]
5288
5288
  }
5289
- ), M5 = ({
5289
+ ), R5 = ({
5290
5290
  width: i = 10,
5291
5291
  height: e = 10,
5292
5292
  color: t = "#001E52",
@@ -5323,7 +5323,7 @@ const Bt = ({
5323
5323
  )
5324
5324
  ]
5325
5325
  }
5326
- ), R5 = ({
5326
+ ), M5 = ({
5327
5327
  width: i = 24,
5328
5328
  height: e = 24,
5329
5329
  color: t = R.GREY_DARK_5,
@@ -6558,8 +6558,8 @@ const Bt = ({
6558
6558
  children: /* @__PURE__ */ r(
6559
6559
  "path",
6560
6560
  {
6561
- "fill-rule": "evenodd",
6562
- "clip-rule": "evenodd",
6561
+ fillRule: "evenodd",
6562
+ clipRule: "evenodd",
6563
6563
  d: "M7.99994 13C10.7614 13 12.9999 10.7614 12.9999 8C12.9999 5.23858 10.7614 3 7.99994 3C5.23852 3 2.99994 5.23858 2.99994 8C2.99994 10.7614 5.23852 13 7.99994 13ZM5.73419 5.6757C5.92945 5.48044 6.24603 5.48044 6.4413 5.6757L8.02837 7.26277L9.56074 5.7304C9.756 5.53514 10.0726 5.53514 10.2678 5.7304C10.4631 5.92566 10.4631 6.24225 10.2678 6.43751L8.73548 7.96988L10.3254 9.55981C10.5207 9.75507 10.5207 10.0717 10.3254 10.2669C10.1301 10.4622 9.81357 10.4622 9.61831 10.2669L8.02837 8.67698L6.38373 10.3216C6.18847 10.5169 5.87189 10.5169 5.67663 10.3216C5.48136 10.1264 5.48136 9.80978 5.67663 9.61452L7.32126 7.96988L5.73419 6.3828C5.53893 6.18754 5.53893 5.87096 5.73419 5.6757Z",
6564
6564
  fill: e
6565
6565
  }
@@ -6582,11 +6582,11 @@ const Bt = ({
6582
6582
  fill: "none",
6583
6583
  xmlns: "http://www.w3.org/2000/svg",
6584
6584
  children: [
6585
- /* @__PURE__ */ r("g", { "clip-path": "url(#clip0_3992_5989)", children: /* @__PURE__ */ r(
6585
+ /* @__PURE__ */ r("g", { clipPath: "url(#clip0_3992_5989)", children: /* @__PURE__ */ r(
6586
6586
  "path",
6587
6587
  {
6588
- "fill-rule": "evenodd",
6589
- "clip-rule": "evenodd",
6588
+ fillRule: "evenodd",
6589
+ clipRule: "evenodd",
6590
6590
  d: "M6.22724 7.50312C5.92425 7.80612 5.92425 8.29737 6.22724 8.60036L9.67552 12.0486C9.97851 12.3516 10.4698 12.3516 10.7728 12.0486L14.221 8.60036C14.524 8.29737 14.524 7.80612 14.221 7.50312C13.918 7.20013 13.4268 7.20013 13.1238 7.50312L10.2241 10.4028L7.32448 7.50312C7.02149 7.20013 6.53024 7.20013 6.22724 7.50312Z",
6591
6591
  fill: e
6592
6592
  }
@@ -6611,11 +6611,11 @@ const Bt = ({
6611
6611
  fill: "none",
6612
6612
  xmlns: "http://www.w3.org/2000/svg",
6613
6613
  children: [
6614
- /* @__PURE__ */ r("g", { "clip-path": "url(#clip0_3992_5988)", children: /* @__PURE__ */ r(
6614
+ /* @__PURE__ */ r("g", { clipPath: "url(#clip0_3992_5988)", children: /* @__PURE__ */ r(
6615
6615
  "path",
6616
6616
  {
6617
- "fill-rule": "evenodd",
6618
- "clip-rule": "evenodd",
6617
+ fillRule: "evenodd",
6618
+ clipRule: "evenodd",
6619
6619
  d: "M13.7728 12.4969C14.0757 12.1939 14.0757 11.7026 13.7728 11.3996L10.3245 7.95137C10.0215 7.64837 9.53024 7.64837 9.22724 7.95137L5.77897 11.3996C5.47598 11.7026 5.47598 12.1939 5.77897 12.4969C6.08196 12.7999 6.57321 12.7999 6.8762 12.4969L9.77586 9.59722L12.6755 12.4969C12.9785 12.7999 13.4698 12.7999 13.7728 12.4969Z",
6620
6620
  fill: e
6621
6621
  }
@@ -6644,8 +6644,8 @@ const Bt = ({
6644
6644
  /* @__PURE__ */ r(
6645
6645
  "path",
6646
6646
  {
6647
- "fill-rule": "evenodd",
6648
- "clip-rule": "evenodd",
6647
+ fillRule: "evenodd",
6648
+ clipRule: "evenodd",
6649
6649
  d: "M11.7728 6.22718C11.4698 5.92419 10.9785 5.92419 10.6755 6.22718L7.22724 9.67546C6.92425 9.97845 6.92425 10.4697 7.22724 10.7727L10.6755 14.221C10.9785 14.524 11.4698 14.524 11.7728 14.221C12.0757 13.918 12.0757 13.4267 11.7728 13.1237L8.8731 10.2241L11.7728 7.32442C12.0757 7.02143 12.0757 6.53018 11.7728 6.22718Z",
6650
6650
  fill: e
6651
6651
  }
@@ -6673,8 +6673,8 @@ const Bt = ({
6673
6673
  /* @__PURE__ */ r(
6674
6674
  "path",
6675
6675
  {
6676
- "fill-rule": "evenodd",
6677
- "clip-rule": "evenodd",
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
- "fill-rule": "evenodd",
6704
- "clip-rule": "evenodd",
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
  }
@@ -7031,8 +7031,8 @@ const Bt = ({
7031
7031
  disabled: l = !1,
7032
7032
  onClick: c
7033
7033
  }) => {
7034
- const [o, d] = S(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
- return Z(() => {
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
+ return W(() => {
7036
7036
  if (n) {
7037
7037
  h && !l && d(`${n} clickable`);
7038
7038
  return;
@@ -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
- Re,
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
- ), M3 = ({
7382
+ ), R3 = ({
7383
7383
  children: i,
7384
7384
  content: e,
7385
7385
  isOpen: t,
@@ -7387,7 +7387,7 @@ const ce = ({
7387
7387
  placement: n = "topRight",
7388
7388
  noPadding: l = !1
7389
7389
  }) => {
7390
- const [c, o] = S(!1);
7390
+ const [c, o] = A(!1);
7391
7391
  return /* @__PURE__ */ r(
7392
7392
  ye,
7393
7393
  {
@@ -7404,7 +7404,7 @@ const ce = ({
7404
7404
  }
7405
7405
  );
7406
7406
  };
7407
- var R3 = { exports: {} };
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
- })(R3);
7417
+ })(M3);
7418
7418
  const y3 = ({
7419
7419
  values: i,
7420
7420
  onTagClose: e,
@@ -7424,17 +7424,17 @@ 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] = S(!1);
7428
- if (Z(() => {
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 f, k;
7434
- return ((f = l == null ? void 0 : l.find((x) => x.value === u)) == null ? void 0 : f.label) || ((k = c == null ? void 0 : c.find((x) => x.value === u)) == null ? void 0 : k.label) || u;
7433
+ var p, v;
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
- M3,
7437
+ R3,
7438
7438
  {
7439
7439
  content: (
7440
7440
  // 90: paddings + margins + gaps and so on
@@ -7482,207 +7482,209 @@ const y3 = ({
7482
7482
  scrollThresholdValue: a = 50,
7483
7483
  onSearchChange: h,
7484
7484
  onDropdownVisibleChange: u,
7485
- onScrollToEnd: f,
7486
- onPopupScroll: k,
7487
- id: x,
7488
- extraOptions: N,
7485
+ onScrollToEnd: p,
7486
+ onPopupScroll: v,
7487
+ id: M,
7488
+ extraOptions: L,
7489
7489
  dropdownRender: E,
7490
7490
  optionRender: b,
7491
7491
  isLoading: V,
7492
- readOnly: p,
7493
- error: L
7494
- }, v) => {
7495
- const [w, H] = S(!1), [F, W] = S(!1), [K, z] = S(!0), [A, T] = S(i), U = Y(null);
7496
- Z(() => {
7497
- T(i);
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 q = (m) => {
7500
- H(m), u && u(m);
7501
- }, X = (m, _) => {
7502
- var O;
7503
- return !!((O = _ == null ? void 0 : _.label) != null && O.toString().toLowerCase().includes(m.toLowerCase()));
7504
- }, B = () => {
7505
- W(!0);
7506
- }, P = () => {
7507
- W(!1);
7508
- }, G = j(
7509
- (m) => {
7510
- if (T(m), s) {
7511
- const O = m;
7512
- e == null || e(O);
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 _ = m;
7515
+ const _ = k;
7516
7516
  e == null || e(_);
7517
7517
  },
7518
7518
  [s, e]
7519
- ), e1 = j(() => {
7520
- if (!p) {
7519
+ ), e1 = D(() => {
7520
+ if (!f) {
7521
7521
  if (s) {
7522
- G([]);
7522
+ P([]);
7523
7523
  return;
7524
7524
  }
7525
- G("");
7525
+ P("");
7526
7526
  }
7527
- }, [G, s, p]), t1 = j(
7528
- (m) => {
7529
- const _ = A.filter((O) => O !== m);
7530
- G(_), T(_);
7527
+ }, [P, s, f]), t1 = D(
7528
+ (k) => {
7529
+ const _ = I.filter((S) => S !== k);
7530
+ P(_), K(_);
7531
7531
  },
7532
- [G, A]
7533
- ), g1 = j(
7534
- (m) => (A == null ? void 0 : A.indexOf(m)) === 0 ? (
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: K ? t : "" })
7537
+ /* @__PURE__ */ r("span", { className: "custom-placeholder", children: G ? t : "" })
7538
7538
  ) : /* @__PURE__ */ r(i1, {}),
7539
- [K, A, t]
7540
- ), L1 = (m) => {
7541
- m.preventDefault(), m.stopPropagation();
7542
- }, v1 = async (m) => {
7543
- const { target: _ } = m;
7544
- _.scrollTop + _.offsetHeight >= _.scrollHeight - a && (f == null || f(!0)), k && await k(m);
7545
- }, o1 = j(
7546
- (m) => {
7547
- var _, O;
7548
- return ((_ = l.find((l1) => l1.value === m)) == null ? void 0 : _.label) || ((O = N == null ? void 0 : N.find(
7549
- (l1) => l1.value === m
7550
- )) == null ? void 0 : O.label) || m;
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
- [N, l]
7553
- ), N1 = j(
7554
- (m) => {
7552
+ [L, l]
7553
+ ), N1 = D(
7554
+ (k) => {
7555
7555
  var _;
7556
7556
  return /* @__PURE__ */ r(
7557
7557
  y3,
7558
7558
  {
7559
- values: m,
7559
+ values: k,
7560
7560
  onTagClose: t1,
7561
7561
  maxWidth: ((_ = U.current) == null ? void 0 : _.clientWidth) || 0,
7562
7562
  disabled: o,
7563
- closable: !p,
7563
+ closable: !f,
7564
7564
  options: l,
7565
- extraOptions: N
7565
+ extraOptions: L
7566
7566
  }
7567
7567
  );
7568
7568
  },
7569
- [o, N, t1, l, p]
7570
- ), I = j(
7571
- ({ label: m, value: _, mode: O }) => O === "filter" ? g1(_) : /* @__PURE__ */ r("div", { onMouseDown: L1, className: "tag-wrapper", children: /* @__PURE__ */ r(ce, { onClose: () => t1(_), disabled: o, children: typeof m == "object" ? m : o1(_) }) }),
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
- ), $ = Array.isArray(A) && A.length > 0 || !!A && typeof A == "string" && A.trim() !== "";
7574
- return /* @__PURE__ */ C(
7575
- "div",
7576
- {
7577
- className: `snmt-select-1-15-6 ${F ? "snmt-select-focused" : ""}
7578
- ${s ? "" : "snmt-select-single"} ${p ? "snmt-select-read-only" : ""}`,
7579
- ref: U,
7580
- style: { width: c },
7581
- children: [
7582
- /* @__PURE__ */ r(
7583
- ve,
7584
- {
7585
- className: "snmt-select-blank",
7586
- popupClassName: p ? "dropdown-read-only" : "",
7587
- id: x,
7588
- ref: v,
7589
- showSearch: !!n,
7590
- filterOption: n && X,
7591
- onDropdownVisibleChange: q,
7592
- disabled: o,
7593
- value: A || void 0,
7594
- labelRender: (m) => o1(m.value),
7595
- mode: s === "filter" ? "multiple" : s,
7596
- onChange: G,
7597
- onFocus: B,
7598
- onBlur: P,
7599
- onSearch: (m) => {
7600
- z(!m), h && h(m);
7601
- },
7602
- onSelect: () => z(!0),
7603
- onDeselect: () => z(!0),
7604
- tagRender: (m) => I({ ...m, mode: s }),
7605
- maxTagCount: "responsive",
7606
- maxTagPlaceholder: N1,
7607
- onPopupScroll: v1,
7608
- prefix: V && /* @__PURE__ */ r(T1, { size: 15 }),
7609
- suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(i1, { children: [
7610
- A && !!A.length && (s || g) && /* @__PURE__ */ r("div", { onClick: e1, children: /* @__PURE__ */ r(
7611
- C1,
7612
- {
7613
- name: "cancel",
7614
- color: o ? Q.GREY_DARK_1 : Q.GREY_DARK_5
7615
- }
7616
- ) }),
7617
- /* @__PURE__ */ r(
7618
- C1,
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: M,
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
- checked: !!(A != null && A.includes(m.value))
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
- /* @__PURE__ */ C(p1, { alignItems: "center", gap: 8, children: [
7638
- m.data.image && /* @__PURE__ */ r(Ue, { src: m.data.image, size: 20 }),
7639
- /* @__PURE__ */ r("span", { children: m.label })
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
- !s && A === m.value && /* @__PURE__ */ r(
7643
- C1,
7644
- {
7645
- name: "ok",
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__ */ r(
7667
- "fieldset",
7668
- {
7669
- className: `${F ? "fieldset-focused" : ""} ${o ? "fieldset-disabled" : ""} ${$ ? "fieldset-filled" : ""} ${L ? "fieldset-error" : ""}`,
7670
- children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: d ? `${t}*` : t }) })
7671
- }
7672
- )
7673
- ] }),
7674
- L && /* @__PURE__ */ C(p1, { justifyContent: "flex-start", gap: 6, children: [
7675
- /* @__PURE__ */ r(C1, { name: "attention", color: Q.NOTIFICATION_ERROR_DARK }),
7676
- typeof L == "string" ? /* @__PURE__ */ r(x3, { color: Q.NOTIFICATION_ERROR_DARK, variant: "body4", children: L }) : L
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 = Y();
7685
- return Z(() => () => {
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 = Y(i);
7696
- return Z(() => {
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: f,
7718
- dropdownRender: k,
7719
- readOnly: x,
7720
- clearable: N = !1,
7719
+ optionRender: p,
7720
+ dropdownRender: v,
7721
+ readOnly: M,
7722
+ clearable: L = !1,
7721
7723
  required: E = !1,
7722
7724
  error: b
7723
7725
  }, V) => {
7724
- const [p, L] = S(), [v, w] = S(a1), [H, F] = S(!1), [W, K] = S(), [z, A] = S(!1), [T, U] = S(
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
- ), q = K1(v.offset), X = K1(W), [B, P] = S(!1), G = Y(!1), e1 = j(
7728
+ ), J = K1(N.offset), X = K1(j), [Z, $] = A(!1), P = F(!1), e1 = D(
7727
7729
  async ({
7728
- limit: I = E1,
7729
- offset: $,
7730
- search: m
7730
+ limit: O = E1,
7731
+ offset: Y,
7732
+ search: k
7731
7733
  }) => {
7732
- F(!0);
7734
+ B(!0);
7733
7735
  try {
7734
7736
  const _ = await i({
7735
- limit: I,
7736
- offset: $,
7737
- search: m
7737
+ limit: O,
7738
+ offset: Y,
7739
+ search: k
7738
7740
  });
7739
- L(
7740
- (O) => $ === 0 ? _.options : [...O ?? [], ..._.options]
7741
- ), w((O) => ({
7742
- ...O,
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
- F(!1);
7750
+ B(!1);
7749
7751
  }
7750
7752
  },
7751
7753
  [i]
7752
- ), t1 = b3((I) => {
7753
- K(I), I || w(a1);
7754
- }), g1 = j(
7755
- (I) => t1(I),
7754
+ ), t1 = b3((O) => {
7755
+ G(O), O || m(a1);
7756
+ }), g1 = D(
7757
+ (O) => t1(O),
7756
7758
  [t1]
7757
- ), L1 = j(
7758
- async (I) => {
7759
- H || I && v.count && v.count > ((p == null ? void 0 : p.length) ?? 0) && w(($) => ({
7760
- ...$,
7761
- offset: $.offset + E1
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, p == null ? void 0 : p.length, v.count]
7765
- ), v1 = j(
7766
- (I) => {
7767
- A(I), !I && W && (K(void 0), w(a1), P(!0)), u == null || u(I);
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, W]
7771
+ [u, j]
7770
7772
  );
7771
- Z(() => {
7772
- !G.current || H || (B || z && (q !== v.offset || X !== W || !p)) && (e1({ offset: v.offset, limit: E1, search: W }), B && P(!1));
7773
- }, [B, z, v.offset, W, q, X, p, H]), Z(() => {
7774
- (g || a) && e1(a1), G.current = !0;
7775
- }, []), Z(() => {
7776
- h && U((I) => {
7777
- const $ = h.filter(
7778
- (m) => !I.some((_) => _.value === m.value)
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 [...I, ...$];
7782
+ return [...O, ...Y];
7781
7783
  });
7782
7784
  }, [h]);
7783
- const o1 = j(
7784
- (I) => {
7785
- t && t(I);
7786
- let $ = [];
7787
- if (d ? $ = Array.isArray(I) ? I : [] : $ = I ? [I] : [], W) {
7788
- const m = $.filter(
7789
- (_) => !(T != null && T.some((O) => O.value === _))
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
- m.length > 0 && U((_ = []) => [
7793
+ k.length > 0 && U((_ = []) => [
7792
7794
  ..._,
7793
- ...m.map((O) => {
7794
- const l1 = p == null ? void 0 : p.find((fe) => fe.value === O);
7795
+ ...k.map((S) => {
7796
+ const l1 = f == null ? void 0 : f.find((fe) => fe.value === S);
7795
7797
  return {
7796
- value: O,
7797
- label: (l1 == null ? void 0 : l1.label) ?? O
7798
+ value: S,
7799
+ label: (l1 == null ? void 0 : l1.label) ?? S
7798
7800
  };
7799
7801
  })
7800
- ]), K(void 0), w(a1), P(!0);
7802
+ ]), G(void 0), m(a1), $(!0);
7801
7803
  }
7802
7804
  },
7803
- [t, W, d, p, T]
7805
+ [t, j, d, f, K]
7804
7806
  ), N1 = Le(
7805
7807
  () => ({
7806
7808
  id: n,
7807
7809
  width: e,
7808
- options: p || [],
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: T,
7821
+ extraOptions: K,
7820
7822
  isLoading: H,
7821
- optionRender: f,
7822
- dropdownRender: k,
7823
- readOnly: x,
7824
- clearable: N,
7823
+ optionRender: p,
7824
+ dropdownRender: v,
7825
+ readOnly: M,
7826
+ clearable: L,
7825
7827
  required: E,
7826
7828
  error: b
7827
7829
  }),
7828
7830
  [
7829
7831
  n,
7830
7832
  e,
7831
- p,
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
- T,
7843
+ K,
7842
7844
  H,
7843
- f,
7844
- k,
7845
- x,
7846
- N,
7845
+ p,
7846
+ v,
7847
+ M,
7848
+ L,
7847
7849
  E,
7848
7850
  b
7849
7851
  ]
7850
7852
  );
7851
7853
  return ne(V, () => ({
7852
7854
  refetchOptions: async () => {
7853
- w(a1), K(void 0), P(!0);
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
  }
@@ -7895,7 +7897,7 @@ const E1 = 100, a1 = {
7895
7897
  k: l
7896
7898
  } = w1(i, e, Object);
7897
7899
  n[l] = n[l] || [], n[l].push(t);
7898
- }, M1 = (i, e) => {
7900
+ }, R1 = (i, e) => {
7899
7901
  const {
7900
7902
  obj: t,
7901
7903
  k: s
@@ -7903,8 +7905,8 @@ const E1 = 100, a1 = {
7903
7905
  if (t)
7904
7906
  return t[s];
7905
7907
  }, I3 = (i, e, t) => {
7906
- const s = M1(i, t);
7907
- return s !== void 0 ? s : M1(e, t);
7908
+ const s = R1(i, t);
7909
+ return s !== void 0 ? s : R1(e, t);
7908
7910
  }, de = (i, e, t) => {
7909
7911
  for (const s in e)
7910
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]);
@@ -7962,7 +7964,7 @@ const B3 = [" ", ",", "?", "!", ";"], Z3 = new A3(20), W3 = (i, e, t) => {
7962
7964
  n = c;
7963
7965
  }
7964
7966
  return n;
7965
- }, R1 = (i) => i && i.replace("_", "-"), j3 = {
7967
+ }, M1 = (i) => i && i.replace("_", "-"), j3 = {
7966
7968
  type: "logger",
7967
7969
  log(i) {
7968
7970
  this.output("log", i);
@@ -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 J = new y1();
8024
+ var z = new y1();
8023
8025
  class _1 {
8024
8026
  constructor() {
8025
8027
  this.observers = {};
@@ -8074,7 +8076,7 @@ class U1 extends _1 {
8074
8076
  const l = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
8075
8077
  let o;
8076
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)));
8077
- const d = M1(this.data, o);
8079
+ const d = R1(this.data, o);
8078
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);
8079
8081
  }
8080
8082
  addResource(e, t, s, n) {
@@ -8101,7 +8103,7 @@ class U1 extends _1 {
8101
8103
  skipCopy: !1
8102
8104
  }, o = [e, t];
8103
8105
  e.indexOf(".") > -1 && (o = e.split("."), n = s, s = t, t = o[1]), this.addNamespaces(t);
8104
- let d = M1(this.data, o) || {};
8106
+ let d = R1(this.data, o) || {};
8105
8107
  c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? de(d, s, l) : d = {
8106
8108
  ...d,
8107
8109
  ...s
@@ -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 = J.create("translator");
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 p = t.nsSeparator || this.options.nsSeparator;
8195
+ const f = t.nsSeparator || this.options.nsSeparator;
8194
8196
  return n ? {
8195
- res: `${d}${p}${c}`,
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}${p}${c}`;
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 f = h && h.usedKey || c, k = h && h.exactUsedKey || c, x = Object.prototype.toString.apply(u), N = ["[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";
8215
- if (b && u && V && N.indexOf(x) < 0 && !(y(E) && Array.isArray(u))) {
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))) {
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 p = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(f, u, {
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 = p, h.usedParams = this.getUsedParamsDetails(t), h) : p;
8224
+ return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
8223
8225
  }
8224
8226
  if (l) {
8225
- const p = Array.isArray(u), L = p ? [] : {}, v = p ? k : f;
8226
- for (const w in u)
8227
- if (Object.prototype.hasOwnProperty.call(u, w)) {
8228
- const H = `${v}${l}${w}`;
8229
- L[w] = this.translate(H, {
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
- }), L[w] === H && (L[w] = u[w]);
8235
+ }), w[m] === H && (w[m] = u[m]);
8234
8236
  }
8235
- u = L;
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 p = !1, L = !1;
8241
- const v = t.count !== void 0 && !y(t.count), w = b1.hasDefaultValue(t), H = v ? this.pluralResolver.getSuffix(g, t.count, t) : "", F = t.ordinal && v ? this.pluralResolver.getSuffix(g, t.count, {
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
- }) : "", W = v && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), K = W && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${H}`] || t[`defaultValue${F}`] || t.defaultValue;
8244
- !this.isValidLookup(u) && w && (p = !0, u = K), this.isValidLookup(u) || (L = !0, u = c);
8245
- const A = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && L ? void 0 : u, T = w && K !== u && this.options.updateMissing;
8246
- if (L || p || T) {
8247
- if (this.logger.log(T ? "updateKey" : "missingKey", g, d, c, T ? K : u), l) {
8248
- const B = this.resolve(c, {
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
- B && B.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.");
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 q = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
8256
- if (this.options.saveMissingTo === "fallback" && q && q[0])
8257
- for (let B = 0; B < q.length; B++)
8258
- U.push(q[B]);
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 = (B, P, G) => {
8261
- const e1 = w && G !== u ? G : A;
8262
- this.options.missingKeyHandler ? this.options.missingKeyHandler(B, d, P, e1, T, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(B, d, P, e1, T, t), this.emit("missingKey", B, d, P, u);
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 && v ? U.forEach((B) => {
8265
- const P = this.pluralResolver.getSuffixes(B, t);
8266
- W && t[`defaultValue${this.options.pluralSeparator}zero`] && P.indexOf(`${this.options.pluralSeparator}zero`) < 0 && P.push(`${this.options.pluralSeparator}zero`), P.forEach((G) => {
8267
- X([B], c + G, t[`defaultValue${G}`] || K);
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, K));
8271
+ }) : X(U, c, G));
8270
8272
  }
8271
- u = this.extendTranslation(u, e, t, h, s), L && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (L || p) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, p ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
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), f = u && u.length;
8304
- a < f && (s.nest = !1);
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, f = new Array(u), k = 0; k < u; k++)
8308
- f[k] = arguments[k];
8309
- return l && l[0] === f[0] && !s.context ? (c.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : c.translate(...f, t);
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), f = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), k = t.context !== void 0 && (y(t.context) || typeof t.context == "number") && t.context !== "", x = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
8330
- h.forEach((N) => {
8331
- this.isValidLookup(s) || (o = N, !z1[`${x[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (z1[`${x[0]}-${N}`] = !0, this.logger.warn(`key "${n}" for languages "${x.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!!!")), x.forEach((E) => {
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
+ h.forEach((L) => {
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) => {
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, N, t);
8338
+ this.i18nFormat.addLookupKeys(b, a, E, L, t);
8337
8339
  else {
8338
- let p;
8339
- u && (p = this.pluralResolver.getSuffix(E, t.count, t));
8340
- const L = `${this.options.pluralSeparator}zero`, v = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
8341
- if (u && (b.push(a + p), t.ordinal && p.indexOf(v) === 0 && b.push(a + p.replace(v, this.options.pluralSeparator)), f && b.push(a + L)), k) {
8342
- const w = `${a}${this.options.contextSeparator}${t.context}`;
8343
- b.push(w), u && (b.push(w + p), t.ordinal && p.indexOf(v) === 0 && b.push(w + p.replace(v, this.options.pluralSeparator)), f && b.push(w + L));
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, N, V, t));
8350
+ this.isValidLookup(s) || (l = V, s = this.getResource(E, L, V, t));
8349
8351
  }));
8350
8352
  });
8351
8353
  }), {
@@ -8390,15 +8392,15 @@ 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 = J.create("languageUtils");
8395
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = z.create("languageUtils");
8394
8396
  }
8395
8397
  getScriptPartFromCode(e) {
8396
- if (e = R1(e), !e || e.indexOf("-") < 0) return null;
8398
+ if (e = M1(e), !e || e.indexOf("-") < 0) return null;
8397
8399
  const t = e.split("-");
8398
8400
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
8399
8401
  }
8400
8402
  getLanguagePartFromCode(e) {
8401
- if (e = R1(e), !e || e.indexOf("-") < 0) return e;
8403
+ if (e = M1(e), !e || e.indexOf("-") < 0) return e;
8402
8404
  const t = e.split("-");
8403
8405
  return this.formatLanguageCode(t[0]);
8404
8406
  }
@@ -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 = J.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 = {};
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;
@@ -8601,7 +8603,7 @@ class $3 {
8601
8603
  getRule(e) {
8602
8604
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
8603
8605
  if (this.shouldUseIntlApi()) {
8604
- const s = R1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", l = JSON.stringify({
8606
+ const s = M1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", l = JSON.stringify({
8605
8607
  cleanedCode: s,
8606
8608
  type: n
8607
8609
  });
@@ -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 = J.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
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: f,
8681
- nestingSuffix: k,
8682
- nestingSuffixEscaped: x,
8683
- nestingOptionsSeparator: N,
8682
+ nestingPrefixEscaped: p,
8683
+ nestingSuffix: v,
8684
+ nestingSuffixEscaped: M,
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) : f || h1("$t("), this.nestingSuffix = k ? h1(k) : x || h1(")"), this.nestingOptionsSeparator = N || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
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();
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 = (f) => {
8699
- if (f.indexOf(this.formatSeparator) < 0) {
8700
- const E = Q1(t, d, f, this.options.keySeparator, this.options.ignoreJSONStructure);
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: f
8706
+ interpolationkey: p
8705
8707
  }) : E;
8706
8708
  }
8707
- const k = f.split(this.formatSeparator), x = k.shift().trim(), N = k.join(this.formatSeparator).trim();
8708
- return this.format(Q1(t, d, x, this.options.keySeparator, this.options.ignoreJSONStructure), N, s, {
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, {
8709
8711
  ...n,
8710
8712
  ...t,
8711
- interpolationkey: x
8713
+ interpolationkey: M
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: (f) => H1(f)
8720
+ safeValue: (p) => H1(p)
8719
8721
  }, {
8720
8722
  regex: this.regexp,
8721
- safeValue: (f) => this.escapeValue ? H1(this.escape(f)) : H1(f)
8722
- }].forEach((f) => {
8723
- for (o = 0; l = f.regex.exec(e); ) {
8724
- const k = l[1].trim();
8725
- if (c = g(k), c === void 0)
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 N = a(e, l, n);
8728
- c = y(N) ? N : "";
8729
- } else if (n && Object.prototype.hasOwnProperty.call(n, k))
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 ${k} for interpolating ${e}`), c = "";
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 x = f.safeValue(c);
8738
- if (e = e.replace(l[0], x), h ? (f.regex.lastIndex += c.length, f.regex.lastIndex -= l[0].length) : f.regex.lastIndex = 0, o++, o >= this.maxReplaces)
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)
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 f = u.match(/'/g), k = u.match(/"/g);
8752
- (f && f.length % 2 === 0 && !k || k.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
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 (x) {
8759
- return this.logger.warn(`failed parsing options string in nesting for key ${d}`, x), `${d}${a}${u}`;
8760
+ } catch (M) {
8761
+ return this.logger.warn(`failed parsing options string in nesting for key ${d}`, M), `${d}${a}${u}`;
8760
8762
  }
8761
8763
  return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, d;
8762
8764
  };
@@ -8807,13 +8809,13 @@ const F3 = (i) => {
8807
8809
  });
8808
8810
  const c = s + JSON.stringify(l);
8809
8811
  let o = e[c];
8810
- return o || (o = i(R1(s), n), e[c] = o), o(t);
8812
+ return o || (o = i(M1(s), n), e[c] = o), o(t);
8811
8813
  };
8812
8814
  };
8813
8815
  class U3 {
8814
8816
  constructor() {
8815
8817
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8816
- this.logger = J.create("formatter"), this.options = e, this.formats = {
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] || {}, f = u.locale || u.lng || n.locale || n.lng || s;
8878
- h = this.formats[g](o, f, {
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 = J.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);
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 = J, this.modules = {
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 ? J.init(l(this.modules.logger), this.options) : J.init(null, this.options);
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 = J, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new $3(h, {
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(f) {
9134
- for (var k = arguments.length, x = new Array(k > 1 ? k - 1 : 0), N = 1; N < k; N++)
9135
- x[N - 1] = arguments[N];
9136
- e.emit(f, ...x);
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(f) {
9138
- for (var k = arguments.length, x = new Array(k > 1 ? k - 1 : 0), N = 1; N < k; N++)
9139
- x[N - 1] = arguments[N];
9140
- e.emit(f, ...x);
9141
- }), this.modules.external.forEach((f) => {
9142
- f.init && f.init(this);
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, 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
+ }), 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, 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
+ }), 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 f;
9242
- return d.keyPrefix && Array.isArray(c) ? f = c.map((k) => `${d.keyPrefix}${u}${k}`) : f = d.keyPrefix ? `${d.keyPrefix}${u}${c}` : c, n.t(f, d);
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 D = m1.createInstance();
9332
- D.createInstance = m1.createInstance;
9333
- D.createInstance;
9334
- D.dir;
9335
- D.init;
9336
- D.loadResources;
9337
- D.reloadResources;
9338
- D.use;
9339
- D.changeLanguage;
9340
- D.getFixedT;
9341
- D.t;
9342
- D.exists;
9343
- D.setDefaultNamespace;
9344
- D.hasLoadedNamespace;
9345
- D.loadNamespaces;
9346
- D.loadLanguages;
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 = Y();
9455
- return Z(() => {
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) => j(pe(i, e, t, s), [i, e, t, s]), p0 = function(i) {
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 p = (v, w) => n1(w) ? w : t0(w) && n1(w.defaultValue) ? w.defaultValue : Array.isArray(v) ? v[v.length - 1] : v, L = [p, {}, !1];
9469
- return L.t = p, L.i18n = {}, L.ready = !1, L;
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((p) => e0(p, l, c)), h = u0(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, f = () => pe(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [k, x] = S(u);
9483
- let N = g.join();
9484
- e.lng && (N = `${e.lng}${N}`);
9485
- const E = C0(N), b = Y(!0);
9486
- Z(() => {
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
+ 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: p,
9489
- bindI18nStore: L
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 && x(f);
9494
+ b.current && M(p);
9493
9495
  }) : ie(l, g, () => {
9494
- b.current && x(f);
9495
- })), a && E && E !== N && b.current && x(f);
9496
- const v = () => {
9497
- b.current && x(f);
9496
+ b.current && M(p);
9497
+ })), a && E && E !== L && b.current && M(p);
9498
+ const N = () => {
9499
+ b.current && M(p);
9498
9500
  };
9499
- return p && l && l.on(p, v), L && l && l.store.on(L, v), () => {
9500
- b.current = !1, p && l && p.split(" ").forEach((w) => l.off(w, v)), L && l && L.split(" ").forEach((w) => l.store.off(w, v));
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, N]), Z(() => {
9503
- b.current && a && x(u);
9504
+ }, [l, L]), W(() => {
9505
+ b.current && a && M(u);
9504
9506
  }, [l, d, a]);
9505
- const V = [k, l, a];
9506
- if (V.t = k, V.i18n = l, V.ready = a, a || !a && !o) return V;
9507
- throw new Promise((p) => {
9508
- e.lng ? se(l, e.lng, g, () => p()) : ie(l, g, () => p());
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 = Y(i);
9517
- return Z(() => {
9518
+ const e = F(i);
9519
+ return W(() => {
9518
9520
  e.current = i;
9519
9521
  }, [i]), e.current;
9520
9522
  }
9521
- D.use(c0).init({
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 }, c) => {
9535
- const [o, d] = S(
9536
+ ({ width: i, selectedCountry: e, onChange: t, value: s, id: n, disabled: l, clearable: c }, o) => {
9537
+ const [d, g] = A(
9536
9538
  []
9537
- ), [g, a] = S(!1), { locale: h, axiosPeople: u } = r1(ke), f = Y(!1), k = Y(null), x = Y(o), N = L0(e);
9538
- if (!u)
9539
+ ), [a, h] = A(!1), { locale: u, axiosPeople: p } = r1(ke), v = F(!1), M = 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: E } = p0("common", { lng: h }), b = j(
9544
- async (p) => {
9545
- const L = x.current.find((v) => v.value === p);
9546
- if (L)
9547
- return [L];
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 w = (await u.post("v1/cities/search", {
9551
+ const H = (await p.post("v1/cities/search", {
9550
9552
  filters: {
9551
- geoNameId: [p],
9553
+ geoNameId: [w],
9552
9554
  countryId: [e]
9553
9555
  }
9554
9556
  })).data.data;
9555
- if (!w.length)
9557
+ if (!H.length)
9556
9558
  return t(null), [];
9557
- const H = {
9558
- value: w[0].geoNameId,
9559
- label: w[0].name
9559
+ const B = {
9560
+ value: H[0].geoNameId,
9561
+ label: H[0].name
9560
9562
  };
9561
- return x.current = [...x.current, H], [H];
9562
- } catch (v) {
9563
- return console.error("CitySelect. fetchSelectedItems error", v), [];
9563
+ return L.current = [...L.current, B], [B];
9564
+ } catch (m) {
9565
+ return console.error("CitySelect. fetchSelectedItems error", m), [];
9564
9566
  }
9565
9567
  },
9566
- [u, e, t]
9568
+ [p, e, t]
9567
9569
  );
9568
- Z(() => {
9570
+ W(() => {
9569
9571
  (async () => {
9570
9572
  if (!s) return;
9571
- const L = await b(s);
9572
- d(L);
9573
+ const N = await V(s);
9574
+ g(N);
9573
9575
  })();
9574
- }, []), Z(() => {
9575
- var p;
9576
- N !== e ? f.current && (t(null), d([]), x.current = [], (p = k.current) == null || p.refetchOptions()) : f.current = !0;
9577
- }, [e, t, N]);
9578
- const V = j(
9576
+ }, []), W(() => {
9577
+ var w;
9578
+ E !== e ? v.current && (t(null), g([]), L.current = [], (w = M.current) == null || w.refetchOptions()) : v.current = !0;
9579
+ }, [e, t, E]);
9580
+ const f = D(
9579
9581
  async ({
9580
- limit: p,
9581
- offset: L,
9582
- search: v
9582
+ limit: w,
9583
+ offset: N,
9584
+ search: m
9583
9585
  }) => {
9584
9586
  try {
9585
- a(!0);
9586
- const w = {
9587
- offset: L,
9588
- limit: p,
9587
+ h(!0);
9588
+ const H = {
9589
+ offset: N,
9590
+ limit: w,
9589
9591
  includeCount: !0
9590
9592
  };
9591
- w.filters = {}, e && e.length > 0 && (w.filters.countryId = [e]), v && (w.search = v);
9592
- const H = await u.post("v1/cities/search", w), F = (H == null ? void 0 : H.data.data) || [], W = H == null ? void 0 : H.data.metadata.count;
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: F.map((z) => ({
9595
- value: z.geoNameId,
9596
- label: z.name
9596
+ options: j.map((I) => ({
9597
+ value: I.geoNameId,
9598
+ label: I.name
9597
9599
  })),
9598
- count: W,
9599
- limit: p
9600
+ count: G,
9601
+ limit: w
9600
9602
  };
9601
- } catch (w) {
9602
- return console.error("CitySelect. loadOptions error", w), {
9603
+ } catch (H) {
9604
+ return console.error("CitySelect. loadOptions error", H), {
9603
9605
  options: [],
9604
9606
  count: 0,
9605
- limit: p
9607
+ limit: w
9606
9608
  };
9607
9609
  } finally {
9608
- a(!1);
9610
+ h(!1);
9609
9611
  }
9610
9612
  },
9611
- [u, e]
9613
+ [p, e]
9612
9614
  );
9613
- return ne(c, () => k.current), /* @__PURE__ */ r("div", { className: "snmt-city-select", children: /* @__PURE__ */ r(
9615
+ return ne(o, () => M.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: g && s ? null : s,
9620
+ value: a && s ? null : s,
9619
9621
  onChange: t,
9620
- ref: k,
9622
+ ref: M,
9621
9623
  search: !0,
9622
- placeholder: E("placeholder"),
9624
+ placeholder: b("placeholder"),
9623
9625
  disabled: l,
9624
- loadOptions: V,
9626
+ clearable: c,
9627
+ loadOptions: f,
9625
9628
  preloadOptions: !0,
9626
- extraOptions: o,
9627
- isLoading: g
9629
+ extraOptions: d,
9630
+ isLoading: a
9628
9631
  }
9629
9632
  ) });
9630
9633
  }