@snmt-react-ui/country-select 2.9.0 → 2.9.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.
Files changed (2) hide show
  1. package/dist/country-select.js +257 -259
  2. package/package.json +3 -3
@@ -3,22 +3,22 @@ var v2 = (s, e, t) => e in s ? k2(s, e, { enumerable: !0, configurable: !0, writ
3
3
  var A1 = (s, e, t) => v2(s, typeof e != "symbol" ? e + "" : e, t);
4
4
  import "./index.css";
5
5
  import { jsx as n, Fragment as Y, jsxs as g } from "react/jsx-runtime";
6
- import { COLORS as c, SNMTUiContext as Q } from "@snmt-react-ui/core";
7
- import { Select as N2, Tag as b1, Flex as x2, Checkbox as M2, Avatar as R2, Typography as C1, Popover as V2 } from "antd";
8
- import { forwardRef as q, useState as y, useRef as j, useEffect as D, useCallback as I, useContext as $, useImperativeHandle as d1, createContext as X1 } from "react";
6
+ import { COLORS as c, SNMTUiContext as q } from "@snmt-react-ui/core";
7
+ import { Select as N2, Tag as b1, Flex as x2, Checkbox as M2, Avatar as R2, Typography as d1, Popover as V2 } from "antd";
8
+ import { forwardRef as X, useState as y, useRef as j, useEffect as B, useCallback as I, useContext as $, useImperativeHandle as g1, createContext as X1 } from "react";
9
9
  var Z2 = Object.defineProperty, H2 = (s, e, t) => e in s ? Z2(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, _2 = (s, e, t) => H2(s, e + "", t), b2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
10
  function y2() {
11
11
  if (console && console.warn) {
12
12
  for (var s = arguments.length, e = new Array(s), t = 0; t < s; t++)
13
13
  e[t] = arguments[t];
14
- z(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
14
+ J(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
15
15
  }
16
16
  }
17
17
  const D1 = {};
18
18
  function V1() {
19
19
  for (var s = arguments.length, e = new Array(s), t = 0; t < s; t++)
20
20
  e[t] = arguments[t];
21
- z(e[0]) && D1[e[0]] || (z(e[0]) && (D1[e[0]] = /* @__PURE__ */ new Date()), y2(...e));
21
+ J(e[0]) && D1[e[0]] || (J(e[0]) && (D1[e[0]] = /* @__PURE__ */ new Date()), y2(...e));
22
22
  }
23
23
  const e2 = (s, e) => () => {
24
24
  if (s.isInitialized)
@@ -34,7 +34,7 @@ const e2 = (s, e) => () => {
34
34
  }, B1 = (s, e, t) => {
35
35
  s.loadNamespaces(e, e2(s, t));
36
36
  }, K1 = (s, e, t, i) => {
37
- z(t) && (t = [t]), t.forEach((o) => {
37
+ J(t) && (t = [t]), t.forEach((o) => {
38
38
  s.options.ns.indexOf(o) < 0 && s.options.ns.push(o);
39
39
  }), s.loadLanguages(e, e2(s, i));
40
40
  }, E2 = function(s, e) {
@@ -54,7 +54,7 @@ const e2 = (s, e) => () => {
54
54
  if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && i.services.backendConnector.backend && i.isLanguageChangingTo && !o(i.isLanguageChangingTo, s)) return !1;
55
55
  }
56
56
  }) : E2(s, e, t);
57
- }, z = (s) => typeof s == "string", D2 = (s) => typeof s == "object" && s !== null, B2 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, K2 = {
57
+ }, J = (s) => typeof s == "string", D2 = (s) => typeof s == "object" && s !== null, B2 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, K2 = {
58
58
  "&amp;": "&",
59
59
  "&#38;": "&",
60
60
  "&lt;": "<",
@@ -75,7 +75,7 @@ const e2 = (s, e) => () => {
75
75
  "&#8230;": "…",
76
76
  "&#x2F;": "/",
77
77
  "&#47;": "/"
78
- }, S2 = (s) => K2[s], G2 = (s) => s.replace(B2, S2);
78
+ }, G2 = (s) => K2[s], S2 = (s) => s.replace(B2, G2);
79
79
  let I2 = {
80
80
  bindI18n: "languageChanged",
81
81
  bindI18nStore: "",
@@ -84,7 +84,7 @@ let I2 = {
84
84
  transWrapTextNodes: "",
85
85
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
86
86
  useSuspense: !0,
87
- unescape: G2
87
+ unescape: S2
88
88
  };
89
89
  const O2 = () => I2;
90
90
  let Y2;
@@ -101,7 +101,7 @@ class $2 {
101
101
  }
102
102
  const T2 = (s, e) => {
103
103
  const t = j();
104
- return D(() => {
104
+ return B(() => {
105
105
  t.current = s;
106
106
  }, [s, e]), t.current;
107
107
  }, t2 = (s, e, t, i) => s.getFixedT(e, t, i), P2 = (s, e, t, i) => I(t2(s, e, t, i), [s, e, t, i]), F2 = function(s) {
@@ -114,7 +114,7 @@ const T2 = (s, e) => {
114
114
  } = $(W2) || {}, h = t || i || j2();
115
115
  if (h && !h.reportNamespaces && (h.reportNamespaces = new $2()), !h) {
116
116
  V1("You will need to pass in an i18next instance by using initReactI18next");
117
- const v = (N, x) => z(x) ? x : D2(x) && z(x.defaultValue) ? x.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, Z = [v, {}, !1];
117
+ const v = (N, x) => J(x) ? x : D2(x) && J(x.defaultValue) ? x.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, Z = [v, {}, !1];
118
118
  return Z.t = v, Z.i18n = {}, Z.ready = !1, Z;
119
119
  }
120
120
  h.options.react && h.options.react.wait !== void 0 && V1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
@@ -127,12 +127,12 @@ const T2 = (s, e) => {
127
127
  keyPrefix: r
128
128
  } = C;
129
129
  let l = s;
130
- l = z(l) ? [l] : l || ["translation"], h.reportNamespaces.addUsedNamespaces && h.reportNamespaces.addUsedNamespaces(l);
130
+ l = J(l) ? [l] : l || ["translation"], h.reportNamespaces.addUsedNamespaces && h.reportNamespaces.addUsedNamespaces(l);
131
131
  const a = (h.isInitialized || h.initializedStoreOnce) && l.every((v) => A2(v, h, C)), p = P2(h, e.lng || null, C.nsMode === "fallback" ? l : l[0], r), u = () => p, w = () => t2(h, e.lng || null, C.nsMode === "fallback" ? l : l[0], r), [f, L] = y(u);
132
132
  let m = l.join();
133
133
  e.lng && (m = `${e.lng}${m}`);
134
134
  const M = T2(m), V = j(!0);
135
- D(() => {
135
+ B(() => {
136
136
  const {
137
137
  bindI18n: v,
138
138
  bindI18nStore: Z
@@ -148,7 +148,7 @@ const T2 = (s, e) => {
148
148
  return v && h && h.on(v, N), Z && h && h.store.on(Z, N), () => {
149
149
  V.current = !1, v && h && v.split(" ").forEach((x) => h.off(x, N)), Z && h && Z.split(" ").forEach((x) => h.store.off(x, N));
150
150
  };
151
- }, [h, m]), D(() => {
151
+ }, [h, m]), B(() => {
152
152
  V.current && a && L(u);
153
153
  }, [h, r, a]);
154
154
  const b = [f, h, a];
@@ -156,7 +156,7 @@ const T2 = (s, e) => {
156
156
  throw new Promise((v) => {
157
157
  e.lng ? K1(h, e.lng, l, () => v()) : B1(h, l, () => v());
158
158
  });
159
- }, a1 = ({
159
+ }, h1 = ({
160
160
  children: s,
161
161
  direction: e = "row",
162
162
  flexWrap: t = "nowrap",
@@ -178,12 +178,12 @@ const T2 = (s, e) => {
178
178
  style: { padding: d },
179
179
  children: s
180
180
  }
181
- ), { Title: U2, Text: z2 } = C1, J2 = {
181
+ ), { Title: U2, Text: z2 } = d1, J2 = {
182
182
  h1: 1,
183
183
  h2: 2,
184
184
  h3: 3,
185
185
  h4: 4
186
- }, S1 = q(
186
+ }, G1 = X(
187
187
  ({
188
188
  align: s = "inherit",
189
189
  variant: e = "body1",
@@ -196,9 +196,9 @@ const T2 = (s, e) => {
196
196
  trim: d = !1
197
197
  }, r) => {
198
198
  const l = j(null);
199
- d1(r, () => l.current);
199
+ g1(r, () => l.current);
200
200
  const [a, p] = y(!1);
201
- D(() => {
201
+ B(() => {
202
202
  var L;
203
203
  if (!d) return;
204
204
  const m = () => {
@@ -256,11 +256,11 @@ const T2 = (s, e) => {
256
256
  className: `snmt-avatar ${o ? "image" : ""}`,
257
257
  src: o,
258
258
  size: h[e],
259
- children: /* @__PURE__ */ n(S1, { color: c.GREY_LIGHT_0, variant: C[e], children: !o && i })
259
+ children: /* @__PURE__ */ n(G1, { color: c.GREY_LIGHT_0, variant: C[e], children: !o && i })
260
260
  }
261
261
  ),
262
262
  s && /* @__PURE__ */ n(
263
- S1,
263
+ G1,
264
264
  {
265
265
  color: c.GREY_DARK_5,
266
266
  variant: e ? d[e] : "body2",
@@ -270,12 +270,12 @@ const T2 = (s, e) => {
270
270
  ]
271
271
  }
272
272
  );
273
- }, { Title: q2, Text: X2 } = C1, e5 = {
273
+ }, { Title: q2, Text: X2 } = d1, e5 = {
274
274
  h1: 1,
275
275
  h2: 2,
276
276
  h3: 3,
277
277
  h4: 4
278
- }, t5 = q(
278
+ }, t5 = X(
279
279
  ({
280
280
  align: s = "inherit",
281
281
  variant: e = "body1",
@@ -288,9 +288,9 @@ const T2 = (s, e) => {
288
288
  trim: d = !1
289
289
  }, r) => {
290
290
  const l = j(null);
291
- d1(r, () => l.current);
291
+ g1(r, () => l.current);
292
292
  const [a, p] = y(!1);
293
- D(() => {
293
+ B(() => {
294
294
  var L;
295
295
  if (!d) return;
296
296
  const m = () => {
@@ -328,10 +328,10 @@ const T2 = (s, e) => {
328
328
  disableUncheck: h = !1
329
329
  }) => {
330
330
  const [C, d] = y(s), [r, l] = y(e);
331
- D(() => {
331
+ B(() => {
332
332
  d(s), l(e);
333
333
  }, [s, e]);
334
- const { theme: a } = $(Q);
334
+ const { theme: a } = $(q);
335
335
  return /* @__PURE__ */ n(
336
336
  M2,
337
337
  {
@@ -1533,7 +1533,7 @@ const T2 = (s, e) => {
1533
1533
  )
1534
1534
  ]
1535
1535
  }
1536
- ), S5 = ({
1536
+ ), G5 = ({
1537
1537
  className: s,
1538
1538
  color: e = c.GREY_DARK_5,
1539
1539
  height: t = 20,
@@ -1560,7 +1560,7 @@ const T2 = (s, e) => {
1560
1560
  }
1561
1561
  )
1562
1562
  }
1563
- ), G5 = ({
1563
+ ), S5 = ({
1564
1564
  className: s,
1565
1565
  color: e = c.GREY_DARK_5,
1566
1566
  height: t = 20,
@@ -2600,7 +2600,7 @@ const T2 = (s, e) => {
2600
2600
  }
2601
2601
  )
2602
2602
  }
2603
- ), l1 = ({
2603
+ ), r1 = ({
2604
2604
  name: s,
2605
2605
  width: e,
2606
2606
  height: t,
@@ -2609,13 +2609,13 @@ const T2 = (s, e) => {
2609
2609
  disabled: h = !1,
2610
2610
  onClick: C
2611
2611
  }) => {
2612
- const { theme: d } = $(Q), r = h ? d && d === "dark" ? c.GREY_LIGHT_4 : c.GREY_DARK_1 : i, l = h ? void 0 : C, a = C && !h ? `${o || ""} clickable` : o;
2612
+ const { theme: d } = $(q), r = h ? d && d === "dark" ? c.GREY_LIGHT_4 : c.GREY_DARK_1 : i, l = h ? void 0 : C, a = C && !h ? `${o || ""} clickable` : o;
2613
2613
  return /* @__PURE__ */ n(Y, { children: (() => {
2614
2614
  switch (s) {
2615
2615
  case "nextIcon":
2616
- return S5({ width: e, height: t, color: r, className: a, onClick: l });
2617
- case "prevIcon":
2618
2616
  return G5({ width: e, height: t, color: r, className: a, onClick: l });
2617
+ case "prevIcon":
2618
+ return S5({ width: e, height: t, color: r, className: a, onClick: l });
2619
2619
  case "arrowDown":
2620
2620
  return s5({ width: e, height: t, color: r, className: a, onClick: l });
2621
2621
  case "info":
@@ -2786,12 +2786,12 @@ const T2 = (s, e) => {
2786
2786
  return /* @__PURE__ */ n(Y, { children: "No Icon provided" });
2787
2787
  }
2788
2788
  })() });
2789
- }, { Title: g7, Text: u7 } = C1, w7 = {
2789
+ }, { Title: g7, Text: u7 } = d1, w7 = {
2790
2790
  h1: 1,
2791
2791
  h2: 2,
2792
2792
  h3: 3,
2793
2793
  h4: 4
2794
- }, p7 = q(
2794
+ }, p7 = X(
2795
2795
  ({
2796
2796
  align: s = "inherit",
2797
2797
  variant: e = "body1",
@@ -2804,9 +2804,9 @@ const T2 = (s, e) => {
2804
2804
  trim: d = !1
2805
2805
  }, r) => {
2806
2806
  const l = j(null);
2807
- d1(r, () => l.current);
2807
+ g1(r, () => l.current);
2808
2808
  const [a, p] = y(!1);
2809
- D(() => {
2809
+ B(() => {
2810
2810
  var L;
2811
2811
  if (!d) return;
2812
2812
  const m = () => {
@@ -3560,7 +3560,7 @@ const T2 = (s, e) => {
3560
3560
  )
3561
3561
  ]
3562
3562
  }
3563
- ), S7 = ({
3563
+ ), G7 = ({
3564
3564
  width: s = 20,
3565
3565
  height: e = 20,
3566
3566
  color: t = c.GREY_DARK_5,
@@ -3593,7 +3593,7 @@ const T2 = (s, e) => {
3593
3593
  )
3594
3594
  ]
3595
3595
  }
3596
- ), G7 = ({
3596
+ ), S7 = ({
3597
3597
  width: s = 20,
3598
3598
  height: e = 20,
3599
3599
  color: t = c.GREY_DARK_5,
@@ -5092,7 +5092,7 @@ const T2 = (s, e) => {
5092
5092
  disabled: h = !1,
5093
5093
  onClick: C
5094
5094
  }) => {
5095
- const { theme: d } = $(Q), r = h ? d && d === "dark" ? c.GREY_LIGHT_4 : c.GREY_DARK_1 : i, l = h ? void 0 : C, a = C && !h ? `${o || ""} clickable` : o;
5095
+ const { theme: d } = $(q), r = h ? d && d === "dark" ? c.GREY_LIGHT_4 : c.GREY_DARK_1 : i, l = h ? void 0 : C, a = C && !h ? `${o || ""} clickable` : o;
5096
5096
  return /* @__PURE__ */ n(Y, { children: (() => {
5097
5097
  switch (s) {
5098
5098
  case "nextIcon":
@@ -5144,9 +5144,9 @@ const T2 = (s, e) => {
5144
5144
  case "history":
5145
5145
  return K7({ width: e, height: t, color: r, className: a, onClick: l });
5146
5146
  case "logOut":
5147
- return S7({ width: e, height: t, color: r, className: a, onClick: l });
5148
- case "settings":
5149
5147
  return G7({ width: e, height: t, color: r, className: a, onClick: l });
5148
+ case "settings":
5149
+ return S7({ width: e, height: t, color: r, className: a, onClick: l });
5150
5150
  case "trash":
5151
5151
  return I7({ width: e, height: t, color: r, className: a, onClick: l });
5152
5152
  case "settings2":
@@ -5307,12 +5307,12 @@ const T2 = (s, e) => {
5307
5307
  ) : s
5308
5308
  }
5309
5309
  );
5310
- }, { Title: H0, Text: _0 } = C1, b0 = {
5310
+ }, { Title: H0, Text: _0 } = d1, b0 = {
5311
5311
  h1: 1,
5312
5312
  h2: 2,
5313
5313
  h3: 3,
5314
5314
  h4: 4
5315
- }, y0 = q(
5315
+ }, y0 = X(
5316
5316
  ({
5317
5317
  align: s = "inherit",
5318
5318
  variant: e = "body1",
@@ -5325,9 +5325,9 @@ const T2 = (s, e) => {
5325
5325
  trim: d = !1
5326
5326
  }, r) => {
5327
5327
  const l = j(null);
5328
- d1(r, () => l.current);
5328
+ g1(r, () => l.current);
5329
5329
  const [a, p] = y(!1);
5330
- D(() => {
5330
+ B(() => {
5331
5331
  var L;
5332
5332
  if (!d) return;
5333
5333
  const m = () => {
@@ -5381,12 +5381,12 @@ const T2 = (s, e) => {
5381
5381
  children: /* @__PURE__ */ n("div", { className: "wrapper", children: s })
5382
5382
  }
5383
5383
  );
5384
- }, { Title: A0, Text: D0 } = C1, B0 = {
5384
+ }, { Title: A0, Text: D0 } = d1, B0 = {
5385
5385
  h1: 1,
5386
5386
  h2: 2,
5387
5387
  h3: 3,
5388
5388
  h4: 4
5389
- }, s2 = q(
5389
+ }, s2 = X(
5390
5390
  ({
5391
5391
  align: s = "inherit",
5392
5392
  variant: e = "body1",
@@ -5399,9 +5399,9 @@ const T2 = (s, e) => {
5399
5399
  trim: d = !1
5400
5400
  }, r) => {
5401
5401
  const l = j(null);
5402
- d1(r, () => l.current);
5402
+ g1(r, () => l.current);
5403
5403
  const [a, p] = y(!1);
5404
- D(() => {
5404
+ B(() => {
5405
5405
  var L;
5406
5406
  if (!d) return;
5407
5407
  const m = () => {
@@ -5457,7 +5457,7 @@ const T2 = (s, e) => {
5457
5457
  }
5458
5458
  )
5459
5459
  }
5460
- ), S0 = ({
5460
+ ), G0 = ({
5461
5461
  width: s = 20,
5462
5462
  height: e = 20,
5463
5463
  color: t = c.GREY_DARK_5,
@@ -5497,7 +5497,7 @@ const T2 = (s, e) => {
5497
5497
  )
5498
5498
  ]
5499
5499
  }
5500
- ), G0 = ({
5500
+ ), S0 = ({
5501
5501
  width: s = 20,
5502
5502
  height: e = 20,
5503
5503
  color: t = "#001E52",
@@ -7401,7 +7401,7 @@ const T2 = (s, e) => {
7401
7401
  }
7402
7402
  )
7403
7403
  }
7404
- ), S9 = ({
7404
+ ), G9 = ({
7405
7405
  className: s,
7406
7406
  color: e = c.GREY_DARK_5,
7407
7407
  height: t = 20,
@@ -7430,7 +7430,7 @@ const T2 = (s, e) => {
7430
7430
  )
7431
7431
  ]
7432
7432
  }
7433
- ), G9 = ({
7433
+ ), S9 = ({
7434
7434
  className: s,
7435
7435
  color: e = "#001E52",
7436
7436
  height: t = 24,
@@ -7678,7 +7678,7 @@ const T2 = (s, e) => {
7678
7678
  }
7679
7679
  )
7680
7680
  }
7681
- ), w1 = ({
7681
+ ), p1 = ({
7682
7682
  name: s,
7683
7683
  width: e,
7684
7684
  height: t,
@@ -7687,7 +7687,7 @@ const T2 = (s, e) => {
7687
7687
  disabled: h = !1,
7688
7688
  onClick: C
7689
7689
  }) => {
7690
- const { theme: d } = $(Q), r = h ? d && d === "dark" ? c.GREY_LIGHT_4 : c.GREY_DARK_1 : i, l = h ? void 0 : C, a = C && !h ? `${o || ""} clickable` : o;
7690
+ const { theme: d } = $(q), r = h ? d && d === "dark" ? c.GREY_LIGHT_4 : c.GREY_DARK_1 : i, l = h ? void 0 : C, a = C && !h ? `${o || ""} clickable` : o;
7691
7691
  return /* @__PURE__ */ n(Y, { children: (() => {
7692
7692
  switch (s) {
7693
7693
  case "nextIcon":
@@ -7697,9 +7697,9 @@ const T2 = (s, e) => {
7697
7697
  case "arrowDown":
7698
7698
  return K0({ width: e, height: t, color: r, className: a, onClick: l });
7699
7699
  case "info":
7700
- return S0({ width: e, height: t, color: r, className: a, onClick: l });
7701
- case "arrowRight":
7702
7700
  return G0({ width: e, height: t, color: r, className: a, onClick: l });
7701
+ case "arrowRight":
7702
+ return S0({ width: e, height: t, color: r, className: a, onClick: l });
7703
7703
  case "calendar":
7704
7704
  return W0({ width: e, height: t, color: r, className: a, onClick: l });
7705
7705
  case "check":
@@ -7843,9 +7843,9 @@ const T2 = (s, e) => {
7843
7843
  case "edit":
7844
7844
  return K9({ width: e, height: t, color: r, className: a, onClick: l });
7845
7845
  case "filledArrowRight":
7846
- return S9({ width: e, height: t, color: r, className: a, onClick: l });
7847
- case "burgerMenu":
7848
7846
  return G9({ width: e, height: t, color: r, className: a, onClick: l });
7847
+ case "burgerMenu":
7848
+ return S9({ width: e, height: t, color: r, className: a, onClick: l });
7849
7849
  case "refresh":
7850
7850
  return I9({ width: e, height: t, color: r, className: a, onClick: l });
7851
7851
  case "projects":
@@ -7898,7 +7898,7 @@ const T2 = (s, e) => {
7898
7898
  }) => {
7899
7899
  const o = {
7900
7900
  approved: /* @__PURE__ */ n(
7901
- w1,
7901
+ p1,
7902
7902
  {
7903
7903
  name: "checkCircle",
7904
7904
  width: 14,
@@ -7906,9 +7906,9 @@ const T2 = (s, e) => {
7906
7906
  color: c.NOTIFICATION_SUCCESS_DARK
7907
7907
  }
7908
7908
  ),
7909
- pending: /* @__PURE__ */ n(w1, { name: "history", width: 14, height: 14, color: c.NOTIFICATION_WARNING_DARK }),
7909
+ pending: /* @__PURE__ */ n(p1, { name: "history", width: 14, height: 14, color: c.NOTIFICATION_WARNING_DARK }),
7910
7910
  rejected: /* @__PURE__ */ n(
7911
- w1,
7911
+ p1,
7912
7912
  {
7913
7913
  name: "cancelCircle",
7914
7914
  width: 14,
@@ -7916,7 +7916,7 @@ const T2 = (s, e) => {
7916
7916
  color: c.NOTIFICATION_ERROR_DARK
7917
7917
  }
7918
7918
  ),
7919
- canceled: /* @__PURE__ */ n(w1, { name: "cancelCircle", width: 14, height: 14, color: c.GREY_DARK_2 })
7919
+ canceled: /* @__PURE__ */ n(p1, { name: "cancelCircle", width: 14, height: 14, color: c.GREY_DARK_2 })
7920
7920
  }, h = {
7921
7921
  approved: c.NOTIFICATION_SUCCESS_LIGHT,
7922
7922
  pending: c.NOTIFICATION_WARNING_LIGHT,
@@ -7961,8 +7961,8 @@ const z9 = ({
7961
7961
  extraOptions: C,
7962
7962
  selectedItemVariant: d = "default"
7963
7963
  }) => {
7964
- const { locale: r } = $(Q), { t: l } = F2("common", { lng: r }), [a, p] = y(!1);
7965
- if (D(() => {
7964
+ const { locale: r } = $(q), { t: l } = F2("common", { lng: r }), [a, p] = y(!1);
7965
+ if (B(() => {
7966
7966
  s.length || p(!1);
7967
7967
  }, [s]), !s.length)
7968
7968
  return null;
@@ -7975,7 +7975,7 @@ const z9 = ({
7975
7975
  {
7976
7976
  content: (
7977
7977
  // 90: paddings + margins + gaps and so on
7978
- /* @__PURE__ */ n("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ n(a1, { gap: 6, flexWrap: "wrap", children: s.map(({ value: w }) => {
7978
+ /* @__PURE__ */ n("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ n(h1, { gap: 6, flexWrap: "wrap", children: s.map(({ value: w }) => {
7979
7979
  const f = d === "badge" && h.find(
7980
7980
  (L) => L.label === u(w)
7981
7981
  );
@@ -8014,7 +8014,7 @@ const z9 = ({
8014
8014
  small: 20,
8015
8015
  medium: 28,
8016
8016
  large: 48
8017
- }, G1 = ({ size: s = "medium", color: e = "#004ed7" }) => {
8017
+ }, S1 = ({ size: s = "medium", color: e = "#004ed7" }) => {
8018
8018
  const t = J9[s], i = `no-repeat linear-gradient(${e}
8019
8019
  calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, o = {
8020
8020
  width: t,
@@ -9378,7 +9378,7 @@ const z9 = ({
9378
9378
  )
9379
9379
  ]
9380
9380
  }
9381
- ), S4 = ({
9381
+ ), G4 = ({
9382
9382
  className: s,
9383
9383
  color: e = c.GREY_DARK_5,
9384
9384
  height: t = 24,
@@ -9405,7 +9405,7 @@ const z9 = ({
9405
9405
  }
9406
9406
  )
9407
9407
  }
9408
- ), G4 = ({
9408
+ ), S4 = ({
9409
9409
  className: s,
9410
9410
  color: e = c.GREY_DARK_5,
9411
9411
  height: t = 24,
@@ -10279,7 +10279,7 @@ const z9 = ({
10279
10279
  disabled: h = !1,
10280
10280
  onClick: C
10281
10281
  }) => {
10282
- const { theme: d } = $(Q), r = h ? d && d === "dark" ? c.GREY_LIGHT_4 : c.GREY_DARK_1 : i, l = h ? void 0 : C, a = C && !h ? `${o || ""} clickable` : o;
10282
+ const { theme: d } = $(q), r = h ? d && d === "dark" ? c.GREY_LIGHT_4 : c.GREY_DARK_1 : i, l = h ? void 0 : C, a = C && !h ? `${o || ""} clickable` : o;
10283
10283
  return /* @__PURE__ */ n(Y, { children: (() => {
10284
10284
  switch (s) {
10285
10285
  case "nextIcon":
@@ -10403,13 +10403,13 @@ const z9 = ({
10403
10403
  case "link":
10404
10404
  return B4({ width: e, height: t, color: r, className: a, onClick: l });
10405
10405
  case "telegram":
10406
- return S4({ width: e, height: t, color: r, className: a, onClick: l });
10406
+ return G4({ width: e, height: t, color: r, className: a, onClick: l });
10407
10407
  case "mail":
10408
10408
  return I4({ width: e, height: t, color: r, className: a, onClick: l });
10409
10409
  case "github":
10410
10410
  return K4({ width: e, height: t, color: r, className: a, onClick: l });
10411
10411
  case "linkedIn":
10412
- return G4({ width: e, height: t, color: r, className: a, onClick: l });
10412
+ return S4({ width: e, height: t, color: r, className: a, onClick: l });
10413
10413
  case "emptyStateIcon":
10414
10414
  return O4({ width: e, height: t, color: r, className: a, onClick: l });
10415
10415
  case "filtersIcon":
@@ -10487,7 +10487,7 @@ function h3(s, e) {
10487
10487
  function c3(s, e) {
10488
10488
  return e ? c.GREY_DARK_2 : s ? c.GREY_LIGHT_0 : c.GREY_DARK_4;
10489
10489
  }
10490
- const C3 = q((s, e) => {
10490
+ const C3 = X((s, e) => {
10491
10491
  const {
10492
10492
  value: t,
10493
10493
  onChange: i,
@@ -10512,28 +10512,28 @@ const C3 = q((s, e) => {
10512
10512
  readOnly: N,
10513
10513
  error: x,
10514
10514
  selectedItemVariant: E = "default",
10515
- variant: S = "outlined"
10515
+ variant: G = "outlined"
10516
10516
  } = s;
10517
- let X;
10518
- h && h !== "single" && (X = s.overflowBehaviour ?? "responsive");
10519
- const [G, g1] = y(!1), [F, T] = y(!1), [P, U] = y(!1), [o1, A] = y(!0), [_, W] = y(t), n1 = j(null);
10520
- D(() => {
10517
+ let e1;
10518
+ h && h !== "single" && (e1 = s.overflowBehaviour ?? "responsive");
10519
+ const [S, u1] = y(!1), [U, T] = y(!1), [P, z] = y(!1), [n1, A] = y(!0), [_, W] = y(t), l1 = j(null);
10520
+ B(() => {
10521
10521
  W(t);
10522
10522
  }, [t]);
10523
10523
  const c2 = (k) => {
10524
- g1(k), f && f(k);
10524
+ u1(k), f && f(k);
10525
10525
  }, C2 = (k, H) => {
10526
- var K;
10527
- return !!((K = H == null ? void 0 : H.label) != null && K.toString().toLowerCase().includes(k.toLowerCase()));
10526
+ var D;
10527
+ return !!((D = H == null ? void 0 : H.label) != null && D.toString().toLowerCase().includes(k.toLowerCase()));
10528
10528
  }, d2 = () => {
10529
10529
  T(!0);
10530
10530
  }, g2 = () => {
10531
10531
  T(!1);
10532
- }, e1 = I(
10532
+ }, t1 = I(
10533
10533
  (k) => {
10534
10534
  if (W(k), h && h !== "single") {
10535
- const K = k;
10536
- i == null || i(K);
10535
+ const D = k;
10536
+ i == null || i(D);
10537
10537
  return;
10538
10538
  }
10539
10539
  let H = null;
@@ -10543,44 +10543,44 @@ const C3 = q((s, e) => {
10543
10543
  ), u2 = I(() => {
10544
10544
  if (!(N || l)) {
10545
10545
  if (h) {
10546
- e1([]);
10546
+ t1([]);
10547
10547
  return;
10548
10548
  }
10549
- e1("");
10549
+ t1("");
10550
10550
  }
10551
- }, [l, e1, h, N]), u1 = I(
10551
+ }, [l, t1, h, N]), w1 = I(
10552
10552
  (k) => {
10553
- const H = _.filter((K) => K !== k);
10554
- e1(H), W(H);
10553
+ const H = _.filter((D) => D !== k);
10554
+ t1(H), W(H);
10555
10555
  },
10556
- [e1, _]
10556
+ [t1, _]
10557
10557
  ), y1 = I(
10558
10558
  (k) => (_ == null ? void 0 : _.indexOf(k)) === 0 ? (
10559
10559
  // if the search input is empty
10560
10560
  // then display the placeholder, else do not display it
10561
- /* @__PURE__ */ n("span", { className: "custom-placeholder", children: o1 ? o : "" })
10561
+ /* @__PURE__ */ n("span", { className: "custom-placeholder", children: n1 ? o : "" })
10562
10562
  ) : /* @__PURE__ */ n(Y, {}),
10563
- [o1, _, o]
10563
+ [n1, _, o]
10564
10564
  ), w2 = (k) => {
10565
10565
  k.preventDefault(), k.stopPropagation();
10566
10566
  }, p2 = async (k) => {
10567
10567
  const { target: H } = k;
10568
10568
  H.scrollTop + H.offsetHeight >= H.scrollHeight - u && (L == null || L(!0)), m && await m(k);
10569
- }, N1 = I(
10569
+ }, x1 = I(
10570
10570
  (k) => {
10571
- var H, K;
10572
- return ((H = d.find((t1) => t1.value === k)) == null ? void 0 : H.label) || ((K = V == null ? void 0 : V.find((t1) => t1.value === k)) == null ? void 0 : K.label) || k;
10571
+ var H, D;
10572
+ return ((H = d.find((F) => F.value === k)) == null ? void 0 : H.label) || ((D = V == null ? void 0 : V.find((F) => F.value === k)) == null ? void 0 : D.label) || k;
10573
10573
  },
10574
10574
  [V, d]
10575
10575
  ), f2 = I(
10576
10576
  (k, H = "default") => {
10577
- var K;
10577
+ var D;
10578
10578
  return /* @__PURE__ */ n(
10579
10579
  z9,
10580
10580
  {
10581
10581
  values: k,
10582
- onTagClose: u1,
10583
- maxWidth: ((K = n1.current) == null ? void 0 : K.clientWidth) || 0,
10582
+ onTagClose: w1,
10583
+ maxWidth: ((D = l1.current) == null ? void 0 : D.clientWidth) || 0,
10584
10584
  disabled: l,
10585
10585
  closable: !N,
10586
10586
  options: d,
@@ -10589,40 +10589,40 @@ const C3 = q((s, e) => {
10589
10589
  }
10590
10590
  );
10591
10591
  },
10592
- [l, V, u1, d, N]
10592
+ [l, V, w1, d, N]
10593
10593
  ), L2 = I(
10594
- ({ label: k, value: H, mode: K }) => {
10595
- if (K === "filter")
10594
+ ({ label: k, value: H, mode: D }) => {
10595
+ if (D === "filter")
10596
10596
  return y1(H);
10597
10597
  {
10598
- const x1 = E === "badge" && d.find((m2) => m2.label === k), t1 = typeof k == "object" ? k : N1(H);
10598
+ const i1 = E === "badge" && d.find((m2) => m2.label === k), F = typeof k == "object" ? k : x1(H);
10599
10599
  return /* @__PURE__ */ n("div", { onMouseDown: w2, className: "tag-wrapper", children: E === "badge" ? /* @__PURE__ */ n(
10600
10600
  o2,
10601
10601
  {
10602
10602
  variant: "regular",
10603
10603
  size: "small",
10604
- color: x1 ? x1.color : "cyan",
10605
- text: t1
10604
+ color: i1 ? i1.color : "cyan",
10605
+ text: F
10606
10606
  }
10607
- ) : /* @__PURE__ */ n(i2, { onClose: () => u1(H), disabled: l, children: t1 }) });
10607
+ ) : /* @__PURE__ */ n(i2, { onClose: () => w1(H), disabled: l, children: F }) });
10608
10608
  }
10609
10609
  },
10610
- [l, N1, u1, y1, E, d]
10610
+ [l, x1, w1, y1, E, d]
10611
10611
  ), E1 = Array.isArray(_) && _.length > 0 || !!_ && typeof _ == "string" && _.trim() !== "";
10612
10612
  return /* @__PURE__ */ g(
10613
10613
  "div",
10614
10614
  {
10615
- className: `snmt-select-container ${S === "borderless" ? "snmt-select-container-borderless" : ""}`,
10615
+ className: `snmt-select-container ${G === "borderless" ? "snmt-select-container-borderless" : ""}`,
10616
10616
  children: [
10617
10617
  /* @__PURE__ */ g(
10618
10618
  "div",
10619
10619
  {
10620
- className: `snmt-select ${F ? "snmt-select-focused" : ""}
10620
+ className: `snmt-select ${U ? "snmt-select-focused" : ""}
10621
10621
  ${h ? "" : "snmt-select-single"}
10622
10622
  ${N ? "snmt-select-read-only" : ""}
10623
- ${X === "static" ? "snmt-select-static" : ""}
10624
- ${S === "borderless" ? "snmt-select-borderless" : ""}`,
10625
- ref: n1,
10623
+ ${e1 === "static" ? "snmt-select-static" : ""}
10624
+ ${G === "borderless" ? "snmt-select-borderless" : ""}`,
10625
+ ref: l1,
10626
10626
  style: { width: r },
10627
10627
  children: [
10628
10628
  /* @__PURE__ */ n(
@@ -10638,27 +10638,27 @@ const C3 = q((s, e) => {
10638
10638
  disabled: l,
10639
10639
  value: _ || void 0,
10640
10640
  labelRender: (k) => {
10641
- const H = N1(k.value);
10641
+ const H = x1(k.value);
10642
10642
  return l ? /* @__PURE__ */ n("span", { style: { color: c.GREY_DARK_1 }, children: H }) : H;
10643
10643
  },
10644
10644
  mode: d3(h, E),
10645
- variant: S,
10646
- onChange: e1,
10645
+ variant: G,
10646
+ onChange: t1,
10647
10647
  onFocus: d2,
10648
10648
  onBlur: g2,
10649
- onMouseEnter: () => U(!0),
10650
- onMouseLeave: () => U(!1),
10649
+ onMouseEnter: () => z(!0),
10650
+ onMouseLeave: () => z(!1),
10651
10651
  onSearch: (k) => {
10652
10652
  A(!k), w && w(k);
10653
10653
  },
10654
10654
  onSelect: () => A(!0),
10655
10655
  onDeselect: () => A(!0),
10656
10656
  tagRender: (k) => L2({ ...k, mode: h }),
10657
- maxTagCount: X === "responsive" ? "responsive" : void 0,
10657
+ maxTagCount: e1 === "responsive" ? "responsive" : void 0,
10658
10658
  maxCount: h === "single" && E === "badge" ? 1 : void 0,
10659
10659
  maxTagPlaceholder: (k) => f2(k, E),
10660
10660
  onPopupScroll: p2,
10661
- prefix: Z && /* @__PURE__ */ n(G1, { size: "small" }),
10661
+ prefix: Z && /* @__PURE__ */ n(S1, { size: "small" }),
10662
10662
  suffixIcon: /* @__PURE__ */ n("div", { className: "wrapper-suffix-icon", children: h !== "filter" && /* @__PURE__ */ g(Y, { children: [
10663
10663
  _ && !!_.length && p && /* @__PURE__ */ n(
10664
10664
  "div",
@@ -10668,7 +10668,7 @@ const C3 = q((s, e) => {
10668
10668
  cursor: l ? "not-allowed" : "pointer"
10669
10669
  },
10670
10670
  children: /* @__PURE__ */ n(
10671
- l1,
10671
+ r1,
10672
10672
  {
10673
10673
  name: "cancel",
10674
10674
  color: l ? c.GREY_DARK_1 : c.GREY_DARK_2
@@ -10676,74 +10676,72 @@ const C3 = q((s, e) => {
10676
10676
  )
10677
10677
  }
10678
10678
  ),
10679
- S === "borderless" && (P || F) && /* @__PURE__ */ n(
10679
+ G === "borderless" && (P || U) && /* @__PURE__ */ n(
10680
10680
  a3,
10681
10681
  {
10682
- isActive: G,
10683
- onClick: () => g1(!G)
10682
+ isActive: S,
10683
+ onClick: () => u1(!S)
10684
10684
  }
10685
10685
  ),
10686
- S === "outlined" && /* @__PURE__ */ n(
10687
- l1,
10686
+ G === "outlined" && /* @__PURE__ */ n(
10687
+ r1,
10688
10688
  {
10689
10689
  name: "selectArrowIcon",
10690
10690
  color: l ? c.GREY_DARK_1 : c.GREY_DARK_5,
10691
- className: G ? "select-arrow-rotated" : "select-arrow",
10692
- onClick: () => g1(!G)
10691
+ className: S ? "select-arrow-rotated" : "select-arrow",
10692
+ onClick: () => u1(!S)
10693
10693
  }
10694
10694
  )
10695
10695
  ] }) }),
10696
- removeIcon: /* @__PURE__ */ n(l1, { name: "cancelCircle", color: c.GREY_DARK_1 }),
10696
+ removeIcon: /* @__PURE__ */ n(r1, { name: "cancelCircle", color: c.GREY_DARK_1 }),
10697
10697
  options: d,
10698
- optionRender: (k) => v ? v(k.data) : /* @__PURE__ */ g(a1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
10699
- /* @__PURE__ */ g(a1, { alignItems: "center", gap: 12, children: [
10700
- h && /* @__PURE__ */ n(
10701
- i5,
10702
- {
10703
- checked: !!(_ != null && _.includes(k.value))
10704
- }
10705
- ),
10706
- /* @__PURE__ */ g(a1, { alignItems: "center", gap: 8, children: [
10707
- k.data.image !== void 0 && /* @__PURE__ */ n(
10708
- Q2,
10709
- {
10710
- src: k.data.image,
10711
- variant: "xsmall",
10712
- fallbackText: k.data.imageFallbackText ? k.data.imageFallbackText : ""
10713
- }
10714
- ),
10715
- /* @__PURE__ */ n("span", { children: k.label })
10716
- ] })
10717
- ] }),
10718
- !h && _ === k.value && /* @__PURE__ */ n(l1, { name: "check", color: c.BLUE_DARK_1 })
10719
- ] }),
10698
+ optionRender: (k) => {
10699
+ const H = h === "single" && E === "badge", D = Array.isArray(_) ? !!(_ != null && _.includes(k.value)) : _ === k.value, i1 = H ? _ : void 0, F = H ? ((i1 == null ? void 0 : i1.length) || 0) > 0 : !1;
10700
+ return v ? v(k.data) : /* @__PURE__ */ g(h1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
10701
+ /* @__PURE__ */ g(h1, { alignItems: "center", gap: 12, children: [
10702
+ h && h !== "single" || H ? /* @__PURE__ */ n(i5, { checked: D, disabled: H && F && !D }) : null,
10703
+ /* @__PURE__ */ g(h1, { alignItems: "center", gap: 8, children: [
10704
+ k.data.image !== void 0 && /* @__PURE__ */ n(
10705
+ Q2,
10706
+ {
10707
+ src: k.data.image,
10708
+ variant: "xsmall",
10709
+ fallbackText: k.data.imageFallbackText ? k.data.imageFallbackText : ""
10710
+ }
10711
+ ),
10712
+ /* @__PURE__ */ n("span", { children: k.label })
10713
+ ] })
10714
+ ] }),
10715
+ !h && _ === k.value && /* @__PURE__ */ n(r1, { name: "check", color: c.BLUE_DARK_1 })
10716
+ ] });
10717
+ },
10720
10718
  dropdownRender: (k) => /* @__PURE__ */ g("div", { className: "dropdown-container", children: [
10721
10719
  /* @__PURE__ */ n("div", { className: "dropdown-menu", children: b ? b(k) : k }),
10722
- Z && /* @__PURE__ */ n("div", { className: "loading-overlay", children: /* @__PURE__ */ n(G1, {}) })
10720
+ Z && /* @__PURE__ */ n("div", { className: "loading-overlay", children: /* @__PURE__ */ n(S1, {}) })
10723
10721
  ] })
10724
10722
  }
10725
10723
  ),
10726
- o && S !== "borderless" && /* @__PURE__ */ n(
10724
+ o && G !== "borderless" && /* @__PURE__ */ n(
10727
10725
  "label",
10728
10726
  {
10729
- className: `${F || E1 ? "label-floating" : ""} ${l ? "label-disabled" : ""} ${F ? "label-focused" : ""} ${Z ? "label-loading" : ""} ${x ? "label-error" : ""}`,
10727
+ className: `${U || E1 ? "label-floating" : ""} ${l ? "label-disabled" : ""} ${U ? "label-focused" : ""} ${Z ? "label-loading" : ""} ${x ? "label-error" : ""}`,
10730
10728
  children: a ? `${o}*` : o
10731
10729
  }
10732
10730
  ),
10733
10731
  /* @__PURE__ */ n(
10734
10732
  "fieldset",
10735
10733
  {
10736
- className: `${F ? "fieldset-focused" : ""} ${l ? "fieldset-disabled" : ""} ${E1 ? "fieldset-filled" : ""} ${x ? "fieldset-error" : ""}
10734
+ className: `${U ? "fieldset-focused" : ""} ${l ? "fieldset-disabled" : ""} ${E1 ? "fieldset-filled" : ""} ${x ? "fieldset-error" : ""}
10737
10735
  ${P ? "fieldset-hovered" : ""}`,
10738
- children: /* @__PURE__ */ n("legend", { children: o && S !== "borderless" && /* @__PURE__ */ n("span", { children: a ? `${o}*` : o }) })
10736
+ children: /* @__PURE__ */ n("legend", { children: o && G !== "borderless" && /* @__PURE__ */ n("span", { children: a ? `${o}*` : o }) })
10739
10737
  }
10740
10738
  )
10741
10739
  ]
10742
10740
  }
10743
10741
  ),
10744
- x && /* @__PURE__ */ g(a1, { justifyContent: "flex-start", gap: 6, children: [
10742
+ x && /* @__PURE__ */ g(h1, { justifyContent: "flex-start", gap: 6, children: [
10745
10743
  /* @__PURE__ */ n(
10746
- l1,
10744
+ r1,
10747
10745
  {
10748
10746
  name: "attention",
10749
10747
  color: c.NOTIFICATION_ERROR_DARK,
@@ -10760,7 +10758,7 @@ const C3 = q((s, e) => {
10760
10758
  function d3(s, e) {
10761
10759
  return s === "filter" || s === "single" && e === "badge" ? "multiple" : s === "single" ? void 0 : s;
10762
10760
  }
10763
- const R = (s) => typeof s == "string", r1 = () => {
10761
+ const R = (s) => typeof s == "string", a1 = () => {
10764
10762
  let s, e;
10765
10763
  const t = new Promise((i, o) => {
10766
10764
  s = i, e = o;
@@ -10770,7 +10768,7 @@ const R = (s) => typeof s == "string", r1 = () => {
10770
10768
  s.forEach((i) => {
10771
10769
  e[i] && (t[i] = e[i]);
10772
10770
  });
10773
- }, u3 = /###/g, O1 = (s) => s && s.indexOf("###") > -1 ? s.replace(u3, ".") : s, Y1 = (s) => !s || R(s), h1 = (s, e, t) => {
10771
+ }, u3 = /###/g, O1 = (s) => s && s.indexOf("###") > -1 ? s.replace(u3, ".") : s, Y1 = (s) => !s || R(s), c1 = (s, e, t) => {
10774
10772
  const i = R(e) ? e.split(".") : e;
10775
10773
  let o = 0;
10776
10774
  for (; o < i.length - 1; ) {
@@ -10786,36 +10784,36 @@ const R = (s) => typeof s == "string", r1 = () => {
10786
10784
  const {
10787
10785
  obj: i,
10788
10786
  k: o
10789
- } = h1(s, e, Object);
10787
+ } = c1(s, e, Object);
10790
10788
  if (i !== void 0 || e.length === 1) {
10791
10789
  i[o] = t;
10792
10790
  return;
10793
10791
  }
10794
- let h = e[e.length - 1], C = e.slice(0, e.length - 1), d = h1(s, C, Object);
10792
+ let h = e[e.length - 1], C = e.slice(0, e.length - 1), d = c1(s, C, Object);
10795
10793
  for (; d.obj === void 0 && C.length; )
10796
- h = `${C[C.length - 1]}.${h}`, C = C.slice(0, C.length - 1), d = h1(s, C, Object), d && d.obj && typeof d.obj[`${d.k}.${h}`] < "u" && (d.obj = void 0);
10794
+ h = `${C[C.length - 1]}.${h}`, C = C.slice(0, C.length - 1), d = c1(s, C, Object), d && d.obj && typeof d.obj[`${d.k}.${h}`] < "u" && (d.obj = void 0);
10797
10795
  d.obj[`${d.k}.${h}`] = t;
10798
10796
  }, w3 = (s, e, t, i) => {
10799
10797
  const {
10800
10798
  obj: o,
10801
10799
  k: h
10802
- } = h1(s, e, Object);
10800
+ } = c1(s, e, Object);
10803
10801
  o[h] = o[h] || [], o[h].push(t);
10804
- }, f1 = (s, e) => {
10802
+ }, L1 = (s, e) => {
10805
10803
  const {
10806
10804
  obj: t,
10807
10805
  k: i
10808
- } = h1(s, e);
10806
+ } = c1(s, e);
10809
10807
  if (t)
10810
10808
  return t[i];
10811
10809
  }, p3 = (s, e, t) => {
10812
- const i = f1(s, t);
10813
- return i !== void 0 ? i : f1(e, t);
10810
+ const i = L1(s, t);
10811
+ return i !== void 0 ? i : L1(e, t);
10814
10812
  }, n2 = (s, e, t) => {
10815
10813
  for (const i in e)
10816
10814
  i !== "__proto__" && i !== "constructor" && (i in s ? R(s[i]) || s[i] instanceof String || R(e[i]) || e[i] instanceof String ? t && (s[i] = e[i]) : n2(s[i], e[i], t) : s[i] = e[i]);
10817
10815
  return s;
10818
- }, i1 = (s) => s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
10816
+ }, s1 = (s) => s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
10819
10817
  var f3 = {
10820
10818
  "&": "&amp;",
10821
10819
  "<": "&lt;",
@@ -10868,7 +10866,7 @@ const k3 = [" ", ",", "?", "!", ";"], v3 = new m3(20), N3 = (s, e, t) => {
10868
10866
  o = C;
10869
10867
  }
10870
10868
  return o;
10871
- }, L1 = (s) => s && s.replace("_", "-"), x3 = {
10869
+ }, m1 = (s) => s && s.replace("_", "-"), x3 = {
10872
10870
  type: "logger",
10873
10871
  log(s) {
10874
10872
  this.output("log", s);
@@ -10883,7 +10881,7 @@ const k3 = [" ", ",", "?", "!", ";"], v3 = new m3(20), N3 = (s, e, t) => {
10883
10881
  console && console[s] && console[s].apply(console, e);
10884
10882
  }
10885
10883
  };
10886
- class m1 {
10884
+ class k1 {
10887
10885
  constructor(e) {
10888
10886
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
10889
10887
  this.init(e, t);
@@ -10916,17 +10914,17 @@ class m1 {
10916
10914
  return o && !this.debug ? null : (R(e[0]) && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
10917
10915
  }
10918
10916
  create(e) {
10919
- return new m1(this.logger, {
10917
+ return new k1(this.logger, {
10920
10918
  prefix: `${this.prefix}:${e}:`,
10921
10919
  ...this.options
10922
10920
  });
10923
10921
  }
10924
10922
  clone(e) {
10925
- return e = e || this.options, e.prefix = e.prefix || this.prefix, new m1(this.logger, e);
10923
+ return e = e || this.options, e.prefix = e.prefix || this.prefix, new k1(this.logger, e);
10926
10924
  }
10927
10925
  }
10928
- var O = new m1();
10929
- class v1 {
10926
+ var O = new k1();
10927
+ class N1 {
10930
10928
  constructor() {
10931
10929
  this.observers = {};
10932
10930
  }
@@ -10960,7 +10958,7 @@ class v1 {
10960
10958
  });
10961
10959
  }
10962
10960
  }
10963
- class W1 extends v1 {
10961
+ class W1 extends N1 {
10964
10962
  constructor(e) {
10965
10963
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
10966
10964
  ns: ["translation"],
@@ -10980,7 +10978,7 @@ class W1 extends v1 {
10980
10978
  const h = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator, C = o.ignoreJSONStructure !== void 0 ? o.ignoreJSONStructure : this.options.ignoreJSONStructure;
10981
10979
  let d;
10982
10980
  e.indexOf(".") > -1 ? d = e.split(".") : (d = [e, t], i && (Array.isArray(i) ? d.push(...i) : R(i) && h ? d.push(...i.split(h)) : d.push(i)));
10983
- const r = f1(this.data, d);
10981
+ const r = L1(this.data, d);
10984
10982
  return !r && !t && !i && e.indexOf(".") > -1 && (e = d[0], t = d[1], i = d.slice(2).join(".")), r || !C || !R(i) ? r : Z1(this.data && this.data[e] && this.data[e][t], i, h);
10985
10983
  }
10986
10984
  addResource(e, t, i, o) {
@@ -11007,7 +11005,7 @@ class W1 extends v1 {
11007
11005
  skipCopy: !1
11008
11006
  }, d = [e, t];
11009
11007
  e.indexOf(".") > -1 && (d = e.split("."), o = i, i = t, t = d[1]), this.addNamespaces(t);
11010
- let r = f1(this.data, d) || {};
11008
+ let r = L1(this.data, d) || {};
11011
11009
  C.skipCopy || (i = JSON.parse(JSON.stringify(i))), o ? n2(r, i, h) : r = {
11012
11010
  ...r,
11013
11011
  ...i
@@ -11047,7 +11045,7 @@ var l2 = {
11047
11045
  }
11048
11046
  };
11049
11047
  const $1 = {};
11050
- class k1 extends v1 {
11048
+ class v1 extends N1 {
11051
11049
  constructor(e) {
11052
11050
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
11053
11051
  super(), g3(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = O.create("translator");
@@ -11144,13 +11142,13 @@ class k1 extends v1 {
11144
11142
  u = u.join(M), u && (u = this.extendTranslation(u, e, t, i));
11145
11143
  else {
11146
11144
  let v = !1, Z = !1;
11147
- const N = t.count !== void 0 && !R(t.count), x = k1.hasDefaultValue(t), E = N ? this.pluralResolver.getSuffix(l, t.count, t) : "", S = t.ordinal && N ? this.pluralResolver.getSuffix(l, t.count, {
11145
+ const N = t.count !== void 0 && !R(t.count), x = v1.hasDefaultValue(t), E = N ? this.pluralResolver.getSuffix(l, t.count, t) : "", G = t.ordinal && N ? this.pluralResolver.getSuffix(l, t.count, {
11148
11146
  ordinal: !1
11149
- }) : "", X = N && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), G = X && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${E}`] || t[`defaultValue${S}`] || t.defaultValue;
11150
- !this.isValidLookup(u) && x && (v = !0, u = G), this.isValidLookup(u) || (Z = !0, u = C);
11151
- const F = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && Z ? void 0 : u, T = x && G !== u && this.options.updateMissing;
11147
+ }) : "", e1 = N && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), S = e1 && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${E}`] || t[`defaultValue${G}`] || t.defaultValue;
11148
+ !this.isValidLookup(u) && x && (v = !0, u = S), this.isValidLookup(u) || (Z = !0, u = C);
11149
+ const U = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && Z ? void 0 : u, T = x && S !== u && this.options.updateMissing;
11152
11150
  if (Z || v || T) {
11153
- if (this.logger.log(T ? "updateKey" : "missingKey", l, r, C, T ? G : u), h) {
11151
+ if (this.logger.log(T ? "updateKey" : "missingKey", l, r, C, T ? S : u), h) {
11154
11152
  const A = this.resolve(C, {
11155
11153
  ...t,
11156
11154
  keySeparator: !1
@@ -11158,21 +11156,21 @@ class k1 extends v1 {
11158
11156
  A && A.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.");
11159
11157
  }
11160
11158
  let P = [];
11161
- const U = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
11162
- if (this.options.saveMissingTo === "fallback" && U && U[0])
11163
- for (let A = 0; A < U.length; A++)
11164
- P.push(U[A]);
11159
+ const z = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
11160
+ if (this.options.saveMissingTo === "fallback" && z && z[0])
11161
+ for (let A = 0; A < z.length; A++)
11162
+ P.push(z[A]);
11165
11163
  else this.options.saveMissingTo === "all" ? P = this.languageUtils.toResolveHierarchy(t.lng || this.language) : P.push(t.lng || this.language);
11166
- const o1 = (A, _, W) => {
11167
- const n1 = x && W !== u ? W : F;
11168
- this.options.missingKeyHandler ? this.options.missingKeyHandler(A, r, _, n1, T, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(A, r, _, n1, T, t), this.emit("missingKey", A, r, _, u);
11164
+ const n1 = (A, _, W) => {
11165
+ const l1 = x && W !== u ? W : U;
11166
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(A, r, _, l1, T, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(A, r, _, l1, T, t), this.emit("missingKey", A, r, _, u);
11169
11167
  };
11170
11168
  this.options.saveMissing && (this.options.saveMissingPlurals && N ? P.forEach((A) => {
11171
11169
  const _ = this.pluralResolver.getSuffixes(A, t);
11172
- X && t[`defaultValue${this.options.pluralSeparator}zero`] && _.indexOf(`${this.options.pluralSeparator}zero`) < 0 && _.push(`${this.options.pluralSeparator}zero`), _.forEach((W) => {
11173
- o1([A], C + W, t[`defaultValue${W}`] || G);
11170
+ e1 && t[`defaultValue${this.options.pluralSeparator}zero`] && _.indexOf(`${this.options.pluralSeparator}zero`) < 0 && _.push(`${this.options.pluralSeparator}zero`), _.forEach((W) => {
11171
+ n1([A], C + W, t[`defaultValue${W}`] || S);
11174
11172
  });
11175
- }) : o1(P, C, G));
11173
+ }) : n1(P, C, S));
11176
11174
  }
11177
11175
  u = this.extendTranslation(u, e, t, p, i), Z && u === C && this.options.appendNamespaceToMissingKey && (u = `${r}:${C}`), (Z || v) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${r}:${C}` : C, v ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
11178
11176
  }
@@ -11299,12 +11297,12 @@ class T1 {
11299
11297
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = O.create("languageUtils");
11300
11298
  }
11301
11299
  getScriptPartFromCode(e) {
11302
- if (e = L1(e), !e || e.indexOf("-") < 0) return null;
11300
+ if (e = m1(e), !e || e.indexOf("-") < 0) return null;
11303
11301
  const t = e.split("-");
11304
11302
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
11305
11303
  }
11306
11304
  getLanguagePartFromCode(e) {
11307
- if (e = L1(e), !e || e.indexOf("-") < 0) return e;
11305
+ if (e = m1(e), !e || e.indexOf("-") < 0) return e;
11308
11306
  const t = e.split("-");
11309
11307
  return this.formatLanguageCode(t[0]);
11310
11308
  }
@@ -11507,7 +11505,7 @@ class _3 {
11507
11505
  getRule(e) {
11508
11506
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
11509
11507
  if (this.shouldUseIntlApi()) {
11510
- const i = L1(e === "dev" ? "en" : e), o = t.ordinal ? "ordinal" : "cardinal", h = JSON.stringify({
11508
+ const i = m1(e === "dev" ? "en" : e), o = t.ordinal ? "ordinal" : "cardinal", h = JSON.stringify({
11511
11509
  cleanedCode: i,
11512
11510
  type: o
11513
11511
  });
@@ -11590,7 +11588,7 @@ class b3 {
11590
11588
  maxReplaces: M,
11591
11589
  alwaysFormat: V
11592
11590
  } = e.interpolation;
11593
- this.escape = t !== void 0 ? t : L3, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = h ? i1(h) : C || "{{", this.suffix = d ? i1(d) : r || "}}", this.formatSeparator = l || ",", this.unescapePrefix = a ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = u ? i1(u) : w || i1("$t("), this.nestingSuffix = f ? i1(f) : L || i1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = M || 1e3, this.alwaysFormat = V !== void 0 ? V : !1, this.resetRegExp();
11591
+ this.escape = t !== void 0 ? t : L3, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = h ? s1(h) : C || "{{", this.suffix = d ? s1(d) : r || "}}", this.formatSeparator = l || ",", this.unescapePrefix = a ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = u ? s1(u) : w || s1("$t("), this.nestingSuffix = f ? s1(f) : L || s1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = M || 1e3, this.alwaysFormat = V !== void 0 ? V : !1, this.resetRegExp();
11594
11592
  }
11595
11593
  reset() {
11596
11594
  this.options && this.init(this.options);
@@ -11703,7 +11701,7 @@ const y3 = (s) => {
11703
11701
  formatName: e,
11704
11702
  formatOptions: t
11705
11703
  };
11706
- }, s1 = (s) => {
11704
+ }, o1 = (s) => {
11707
11705
  const e = {};
11708
11706
  return (t, i, o) => {
11709
11707
  let h = o;
@@ -11713,39 +11711,39 @@ const y3 = (s) => {
11713
11711
  });
11714
11712
  const C = i + JSON.stringify(h);
11715
11713
  let d = e[C];
11716
- return d || (d = s(L1(i), o), e[C] = d), d(t);
11714
+ return d || (d = s(m1(i), o), e[C] = d), d(t);
11717
11715
  };
11718
11716
  };
11719
11717
  class E3 {
11720
11718
  constructor() {
11721
11719
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
11722
11720
  this.logger = O.create("formatter"), this.options = e, this.formats = {
11723
- number: s1((t, i) => {
11721
+ number: o1((t, i) => {
11724
11722
  const o = new Intl.NumberFormat(t, {
11725
11723
  ...i
11726
11724
  });
11727
11725
  return (h) => o.format(h);
11728
11726
  }),
11729
- currency: s1((t, i) => {
11727
+ currency: o1((t, i) => {
11730
11728
  const o = new Intl.NumberFormat(t, {
11731
11729
  ...i,
11732
11730
  style: "currency"
11733
11731
  });
11734
11732
  return (h) => o.format(h);
11735
11733
  }),
11736
- datetime: s1((t, i) => {
11734
+ datetime: o1((t, i) => {
11737
11735
  const o = new Intl.DateTimeFormat(t, {
11738
11736
  ...i
11739
11737
  });
11740
11738
  return (h) => o.format(h);
11741
11739
  }),
11742
- relativetime: s1((t, i) => {
11740
+ relativetime: o1((t, i) => {
11743
11741
  const o = new Intl.RelativeTimeFormat(t, {
11744
11742
  ...i
11745
11743
  });
11746
11744
  return (h) => o.format(h, i.range || "day");
11747
11745
  }),
11748
- list: s1((t, i) => {
11746
+ list: o1((t, i) => {
11749
11747
  const o = new Intl.ListFormat(t, {
11750
11748
  ...i
11751
11749
  });
@@ -11763,7 +11761,7 @@ class E3 {
11763
11761
  this.formats[e.toLowerCase().trim()] = t;
11764
11762
  }
11765
11763
  addCached(e, t) {
11766
- this.formats[e.toLowerCase().trim()] = s1(t);
11764
+ this.formats[e.toLowerCase().trim()] = o1(t);
11767
11765
  }
11768
11766
  format(e, t, i) {
11769
11767
  let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
@@ -11799,7 +11797,7 @@ class E3 {
11799
11797
  const A3 = (s, e) => {
11800
11798
  s.pending[e] !== void 0 && (delete s.pending[e], s.pendingCount--);
11801
11799
  };
11802
- class D3 extends v1 {
11800
+ class D3 extends N1 {
11803
11801
  constructor(e, t, i) {
11804
11802
  let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
11805
11803
  super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = o, this.logger = O.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = o.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5, this.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, o.backend, o);
@@ -11990,13 +11988,13 @@ const U1 = () => ({
11990
11988
  maxReplaces: 1e3,
11991
11989
  skipOnVariables: !0
11992
11990
  }
11993
- }), z1 = (s) => (R(s.ns) && (s.ns = [s.ns]), R(s.fallbackLng) && (s.fallbackLng = [s.fallbackLng]), R(s.fallbackNS) && (s.fallbackNS = [s.fallbackNS]), s.supportedLngs && s.supportedLngs.indexOf("cimode") < 0 && (s.supportedLngs = s.supportedLngs.concat(["cimode"])), s), p1 = () => {
11991
+ }), z1 = (s) => (R(s.ns) && (s.ns = [s.ns]), R(s.fallbackLng) && (s.fallbackLng = [s.fallbackLng]), R(s.fallbackNS) && (s.fallbackNS = [s.fallbackNS]), s.supportedLngs && s.supportedLngs.indexOf("cimode") < 0 && (s.supportedLngs = s.supportedLngs.concat(["cimode"])), s), f1 = () => {
11994
11992
  }, B3 = (s) => {
11995
11993
  Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach((t) => {
11996
11994
  typeof s[t] == "function" && (s[t] = s[t].bind(s));
11997
11995
  });
11998
11996
  };
11999
- class c1 extends v1 {
11997
+ class C1 extends N1 {
12000
11998
  constructor() {
12001
11999
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
12002
12000
  if (super(), this.options = z1(e), this.services = {}, this.logger = O, this.modules = {
@@ -12040,7 +12038,7 @@ class c1 extends v1 {
12040
12038
  for (var f = arguments.length, L = new Array(f > 1 ? f - 1 : 0), m = 1; m < f; m++)
12041
12039
  L[m - 1] = arguments[m];
12042
12040
  e.emit(w, ...L);
12043
- }), this.modules.languageDetector && (u.languageDetector = h(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = h(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new k1(this.services, this.options), this.translator.on("*", function(w) {
12041
+ }), this.modules.languageDetector && (u.languageDetector = h(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = h(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new v1(this.services, this.options), this.translator.on("*", function(w) {
12044
12042
  for (var f = arguments.length, L = new Array(f > 1 ? f - 1 : 0), m = 1; m < f; m++)
12045
12043
  L[m - 1] = arguments[m];
12046
12044
  e.emit(w, ...L);
@@ -12048,7 +12046,7 @@ class c1 extends v1 {
12048
12046
  w.init && w.init(this);
12049
12047
  });
12050
12048
  }
12051
- if (this.format = this.options.interpolation.format, i || (i = p1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
12049
+ if (this.format = this.options.interpolation.format, i || (i = f1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
12052
12050
  const a = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
12053
12051
  a.length > 0 && a[0] !== "dev" && (this.options.lng = a[0]);
12054
12052
  }
@@ -12061,7 +12059,7 @@ class c1 extends v1 {
12061
12059
  return e.store[a](...arguments), e;
12062
12060
  };
12063
12061
  });
12064
- const r = r1(), l = () => {
12062
+ const r = a1(), l = () => {
12065
12063
  const a = (p, u) => {
12066
12064
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), r.resolve(u), i(p, u);
12067
12065
  };
@@ -12071,7 +12069,7 @@ class c1 extends v1 {
12071
12069
  return this.options.resources || !this.options.initImmediate ? l() : setTimeout(l, 0), r;
12072
12070
  }
12073
12071
  loadResources(e) {
12074
- let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : p1;
12072
+ let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f1;
12075
12073
  const o = R(e) ? e : this.language;
12076
12074
  if (typeof e == "function" && (i = e), !this.options.resources || this.options.partialBundledLanguages) {
12077
12075
  if (o && o.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return i();
@@ -12088,8 +12086,8 @@ class c1 extends v1 {
12088
12086
  i(null);
12089
12087
  }
12090
12088
  reloadResources(e, t, i) {
12091
- const o = r1();
12092
- return typeof e == "function" && (i = e, e = void 0), typeof t == "function" && (i = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), i || (i = p1), this.services.backendConnector.reload(e, t, (h) => {
12089
+ const o = a1();
12090
+ return typeof e == "function" && (i = e, e = void 0), typeof t == "function" && (i = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), i || (i = f1), this.services.backendConnector.reload(e, t, (h) => {
12093
12091
  o.resolve(), i(h);
12094
12092
  }), o;
12095
12093
  }
@@ -12111,7 +12109,7 @@ class c1 extends v1 {
12111
12109
  changeLanguage(e, t) {
12112
12110
  var i = this;
12113
12111
  this.isLanguageChangingTo = e;
12114
- const o = r1();
12112
+ const o = a1();
12115
12113
  this.emit("languageChanging", e);
12116
12114
  const h = (r) => {
12117
12115
  this.language = r, this.languages = this.services.languageUtils.toResolveHierarchy(r), this.resolvedLanguage = void 0, this.setResolvedLanguage(r);
@@ -12177,7 +12175,7 @@ class c1 extends v1 {
12177
12175
  return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || C(i, e) && (!o || C(h, e)));
12178
12176
  }
12179
12177
  loadNamespaces(e, t) {
12180
- const i = r1();
12178
+ const i = a1();
12181
12179
  return this.options.ns ? (R(e) && (e = [e]), e.forEach((o) => {
12182
12180
  this.options.ns.indexOf(o) < 0 && this.options.ns.push(o);
12183
12181
  }), this.loadResources((o) => {
@@ -12185,7 +12183,7 @@ class c1 extends v1 {
12185
12183
  }), i) : (t && t(), Promise.resolve());
12186
12184
  }
12187
12185
  loadLanguages(e, t) {
12188
- const i = r1();
12186
+ const i = a1();
12189
12187
  R(e) && (e = [e]);
12190
12188
  const o = this.options.preload || [], h = e.filter((C) => o.indexOf(C) < 0 && this.services.languageUtils.isSupportedCode(C));
12191
12189
  return h.length ? (this.options.preload = o.concat(h), this.loadResources((C) => {
@@ -12199,24 +12197,24 @@ class c1 extends v1 {
12199
12197
  }
12200
12198
  static createInstance() {
12201
12199
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
12202
- return new c1(e, t);
12200
+ return new C1(e, t);
12203
12201
  }
12204
12202
  cloneInstance() {
12205
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : p1;
12203
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f1;
12206
12204
  const i = e.forkResourceStore;
12207
12205
  i && delete e.forkResourceStore;
12208
12206
  const o = {
12209
12207
  ...this.options,
12210
12208
  ...e,
12211
12209
  isClone: !0
12212
- }, h = new c1(o);
12210
+ }, h = new C1(o);
12213
12211
  return (e.debug !== void 0 || e.prefix !== void 0) && (h.logger = h.logger.clone(e)), ["store", "services", "language"].forEach((d) => {
12214
12212
  h[d] = this[d];
12215
12213
  }), h.services = {
12216
12214
  ...this.services
12217
12215
  }, h.services.utils = {
12218
12216
  hasLoadedNamespace: h.hasLoadedNamespace.bind(h)
12219
- }, i && (h.store = new W1(this.store.data, o), h.services.resourceStore = h.store), h.translator = new k1(h.services, o), h.translator.on("*", function(d) {
12217
+ }, i && (h.store = new W1(this.store.data, o), h.services.resourceStore = h.store), h.translator = new v1(h.services, o), h.translator.on("*", function(d) {
12220
12218
  for (var r = arguments.length, l = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
12221
12219
  l[a - 1] = arguments[a];
12222
12220
  h.emit(d, ...l);
@@ -12234,34 +12232,34 @@ class c1 extends v1 {
12234
12232
  };
12235
12233
  }
12236
12234
  }
12237
- const B = c1.createInstance();
12238
- B.createInstance = c1.createInstance;
12239
- B.createInstance;
12240
- B.dir;
12241
- B.init;
12242
- B.loadResources;
12243
- B.reloadResources;
12244
- B.use;
12245
- B.changeLanguage;
12246
- B.getFixedT;
12247
- B.t;
12248
- B.exists;
12249
- B.setDefaultNamespace;
12250
- B.hasLoadedNamespace;
12251
- B.loadNamespaces;
12252
- B.loadLanguages;
12235
+ const K = C1.createInstance();
12236
+ K.createInstance = C1.createInstance;
12237
+ K.createInstance;
12238
+ K.dir;
12239
+ K.init;
12240
+ K.loadResources;
12241
+ K.reloadResources;
12242
+ K.use;
12243
+ K.changeLanguage;
12244
+ K.getFixedT;
12245
+ K.t;
12246
+ K.exists;
12247
+ K.setDefaultNamespace;
12248
+ K.hasLoadedNamespace;
12249
+ K.loadNamespaces;
12250
+ K.loadLanguages;
12253
12251
  function K3() {
12254
12252
  if (console && console.warn) {
12255
12253
  for (var s = arguments.length, e = new Array(s), t = 0; t < s; t++)
12256
12254
  e[t] = arguments[t];
12257
- J(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
12255
+ Q(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
12258
12256
  }
12259
12257
  }
12260
12258
  const J1 = {};
12261
12259
  function H1() {
12262
12260
  for (var s = arguments.length, e = new Array(s), t = 0; t < s; t++)
12263
12261
  e[t] = arguments[t];
12264
- J(e[0]) && J1[e[0]] || (J(e[0]) && (J1[e[0]] = /* @__PURE__ */ new Date()), K3(...e));
12262
+ Q(e[0]) && J1[e[0]] || (Q(e[0]) && (J1[e[0]] = /* @__PURE__ */ new Date()), K3(...e));
12265
12263
  }
12266
12264
  const r2 = (s, e) => () => {
12267
12265
  if (s.isInitialized)
@@ -12277,10 +12275,10 @@ const r2 = (s, e) => () => {
12277
12275
  }, Q1 = (s, e, t) => {
12278
12276
  s.loadNamespaces(e, r2(s, t));
12279
12277
  }, q1 = (s, e, t, i) => {
12280
- J(t) && (t = [t]), t.forEach((o) => {
12278
+ Q(t) && (t = [t]), t.forEach((o) => {
12281
12279
  s.options.ns.indexOf(o) < 0 && s.options.ns.push(o);
12282
12280
  }), s.loadLanguages(e, r2(s, i));
12283
- }, S3 = function(s, e) {
12281
+ }, G3 = function(s, e) {
12284
12282
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
12285
12283
  const i = e.languages[0], o = e.options ? e.options.fallbackLng : !1, h = e.languages[e.languages.length - 1];
12286
12284
  if (i.toLowerCase() === "cimode") return !0;
@@ -12289,15 +12287,15 @@ const r2 = (s, e) => () => {
12289
12287
  return l === -1 || l === 2;
12290
12288
  };
12291
12289
  return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !C(e.isLanguageChangingTo, s) ? !1 : !!(e.hasResourceBundle(i, s) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || C(i, s) && (!o || C(h, s)));
12292
- }, G3 = function(s, e) {
12290
+ }, S3 = function(s, e) {
12293
12291
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
12294
12292
  return !e.languages || !e.languages.length ? (H1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(s, {
12295
12293
  lng: t.lng,
12296
12294
  precheck: (o, h) => {
12297
12295
  if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && o.services.backendConnector.backend && o.isLanguageChangingTo && !h(o.isLanguageChangingTo, s)) return !1;
12298
12296
  }
12299
- }) : S3(s, e, t);
12300
- }, J = (s) => typeof s == "string", I3 = (s) => typeof s == "object" && s !== null, O3 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Y3 = {
12297
+ }) : G3(s, e, t);
12298
+ }, Q = (s) => typeof s == "string", I3 = (s) => typeof s == "object" && s !== null, O3 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Y3 = {
12301
12299
  "&amp;": "&",
12302
12300
  "&#38;": "&",
12303
12301
  "&lt;": "<",
@@ -12358,7 +12356,7 @@ class J3 {
12358
12356
  }
12359
12357
  const Q3 = (s, e) => {
12360
12358
  const t = j();
12361
- return D(() => {
12359
+ return B(() => {
12362
12360
  t.current = s;
12363
12361
  }, [s, e]), t.current;
12364
12362
  }, h2 = (s, e, t, i) => s.getFixedT(e, t, i), q3 = (s, e, t, i) => I(h2(s, e, t, i), [s, e, t, i]), X3 = function(s) {
@@ -12371,7 +12369,7 @@ const Q3 = (s, e) => {
12371
12369
  } = $(z3) || {}, h = t || i || F3();
12372
12370
  if (h && !h.reportNamespaces && (h.reportNamespaces = new J3()), !h) {
12373
12371
  H1("You will need to pass in an i18next instance by using initReactI18next");
12374
- const v = (N, x) => J(x) ? x : I3(x) && J(x.defaultValue) ? x.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, Z = [v, {}, !1];
12372
+ const v = (N, x) => Q(x) ? x : I3(x) && Q(x.defaultValue) ? x.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, Z = [v, {}, !1];
12375
12373
  return Z.t = v, Z.i18n = {}, Z.ready = !1, Z;
12376
12374
  }
12377
12375
  h.options.react && h.options.react.wait !== void 0 && H1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
@@ -12384,12 +12382,12 @@ const Q3 = (s, e) => {
12384
12382
  keyPrefix: r
12385
12383
  } = C;
12386
12384
  let l = s;
12387
- l = J(l) ? [l] : l || ["translation"], h.reportNamespaces.addUsedNamespaces && h.reportNamespaces.addUsedNamespaces(l);
12388
- const a = (h.isInitialized || h.initializedStoreOnce) && l.every((v) => G3(v, h, C)), p = q3(h, e.lng || null, C.nsMode === "fallback" ? l : l[0], r), u = () => p, w = () => h2(h, e.lng || null, C.nsMode === "fallback" ? l : l[0], r), [f, L] = y(u);
12385
+ l = Q(l) ? [l] : l || ["translation"], h.reportNamespaces.addUsedNamespaces && h.reportNamespaces.addUsedNamespaces(l);
12386
+ const a = (h.isInitialized || h.initializedStoreOnce) && l.every((v) => S3(v, h, C)), p = q3(h, e.lng || null, C.nsMode === "fallback" ? l : l[0], r), u = () => p, w = () => h2(h, e.lng || null, C.nsMode === "fallback" ? l : l[0], r), [f, L] = y(u);
12389
12387
  let m = l.join();
12390
12388
  e.lng && (m = `${e.lng}${m}`);
12391
12389
  const M = Q3(m), V = j(!0);
12392
- D(() => {
12390
+ B(() => {
12393
12391
  const {
12394
12392
  bindI18n: v,
12395
12393
  bindI18nStore: Z
@@ -12405,7 +12403,7 @@ const Q3 = (s, e) => {
12405
12403
  return v && h && h.on(v, N), Z && h && h.store.on(Z, N), () => {
12406
12404
  V.current = !1, v && h && v.split(" ").forEach((x) => h.off(x, N)), Z && h && Z.split(" ").forEach((x) => h.store.off(x, N));
12407
12405
  };
12408
- }, [h, m]), D(() => {
12406
+ }, [h, m]), B(() => {
12409
12407
  V.current && a && L(u);
12410
12408
  }, [h, r, a]);
12411
12409
  const b = [f, h, a];
@@ -12418,7 +12416,7 @@ const Q3 = (s, e) => {
12418
12416
  }, i6 = "Страна", s6 = {
12419
12417
  placeholder: i6
12420
12418
  };
12421
- B.use(U3).init({
12419
+ K.use(U3).init({
12422
12420
  defaultNS: "common",
12423
12421
  lng: "en",
12424
12422
  resources: {
@@ -12430,7 +12428,7 @@ B.use(U3).init({
12430
12428
  }
12431
12429
  }
12432
12430
  });
12433
- const c6 = q(
12431
+ const c6 = X(
12434
12432
  ({
12435
12433
  width: s,
12436
12434
  selectedCity: e,
@@ -12443,7 +12441,7 @@ const c6 = q(
12443
12441
  clearable: r,
12444
12442
  error: l
12445
12443
  }, a) => {
12446
- const [p, u] = y([]), [w, f] = y([]), [L, m] = y(!1), { locale: M, axiosPeople: V } = $(Q);
12444
+ const [p, u] = y([]), [w, f] = y([]), [L, m] = y(!1), { locale: M, axiosPeople: V } = $(q);
12447
12445
  if (!V)
12448
12446
  throw new Error(
12449
12447
  `CountrySelect requires "axiosPeople" to fetch counties.
@@ -12460,22 +12458,22 @@ const c6 = q(
12460
12458
  m(!1);
12461
12459
  }
12462
12460
  }, [V]);
12463
- D(() => {
12461
+ B(() => {
12464
12462
  v();
12465
- }, []), D(() => {
12463
+ }, []), B(() => {
12466
12464
  if (e) {
12467
12465
  const N = e.split("-")[1], x = w.filter(
12468
12466
  (E) => E.name.includes(N)
12469
12467
  );
12470
12468
  if (x.length) {
12471
- const E = x.map((S) => ({
12472
- label: S.name,
12473
- value: S.name
12469
+ const E = x.map((G) => ({
12470
+ label: G.name,
12471
+ value: G.name
12474
12472
  }));
12475
12473
  i(E[0].value);
12476
12474
  }
12477
12475
  }
12478
- }, [e, w, i]), D(() => {
12476
+ }, [e, w, i]), B(() => {
12479
12477
  const N = w.map((x) => ({
12480
12478
  label: x.name,
12481
12479
  value: x.name