@snmt-react-ui/city-select 2.5.7 → 2.5.8

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.
@@ -1,26 +1,26 @@
1
- var pe = Object.defineProperty;
2
- var fe = (i, e, t) => e in i ? pe(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var B1 = (i, e, t) => fe(i, typeof e != "symbol" ? e + "" : e, t);
1
+ var fe = Object.defineProperty;
2
+ var we = (i, e, t) => e in i ? fe(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var Z1 = (i, e, t) => we(i, typeof e != "symbol" ? e + "" : e, t);
4
4
  import "./index.css";
5
- import { jsx as r, Fragment as a1, jsxs as C } from "react/jsx-runtime";
6
- import { SNMTUiContext as we } from "@snmt-react-ui/core";
7
- import { createContext as h1, forwardRef as R1, useState as S, useRef as Y, useEffect as B, useCallback as j, useMemo as me, useImperativeHandle as se, useContext as s1 } from "react";
8
- import { Select as ke, Flex as Le, Avatar as ve, Checkbox as Ne, Typography as xe, Tag as Me, Popover as Re } from "antd";
9
- var ye = Object.defineProperty, be = (i, e, t) => e in i ? ye(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, _e = (i, e, t) => be(i, e + "", t), Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
- function Ve() {
5
+ import { jsx as r, Fragment as s1, jsxs as C } from "react/jsx-runtime";
6
+ import { SNMTUiContext as me } from "@snmt-react-ui/core";
7
+ import { createContext as d1, forwardRef as L1, useState as O, useRef as Y, useEffect as B, useCallback as W, useMemo as ke, useImperativeHandle as ne, useContext as o1 } from "react";
8
+ import { Select as Le, Flex as ve, Avatar as Ne, Checkbox as xe, Typography as re, Tag as Me, Popover as Re } from "antd";
9
+ var ye = Object.defineProperty, be = (i, e, t) => e in i ? ye(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, _e = (i, e, t) => be(i, e + "", t), Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
+ function Ee() {
11
11
  if (console && console.warn) {
12
12
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
13
13
  e[t] = arguments[t];
14
- t1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
14
+ n1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
15
15
  }
16
16
  }
17
- const Z1 = {};
18
- function V1() {
17
+ const W1 = {};
18
+ function I1() {
19
19
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
20
20
  e[t] = arguments[t];
21
- t1(e[0]) && Z1[e[0]] || (t1(e[0]) && (Z1[e[0]] = /* @__PURE__ */ new Date()), Ve(...e));
21
+ n1(e[0]) && W1[e[0]] || (n1(e[0]) && (W1[e[0]] = /* @__PURE__ */ new Date()), Ee(...e));
22
22
  }
23
- const ne = (i, e) => () => {
23
+ const oe = (i, e) => () => {
24
24
  if (i.isInitialized)
25
25
  e();
26
26
  else {
@@ -31,12 +31,12 @@ const ne = (i, e) => () => {
31
31
  };
32
32
  i.on("initialized", t);
33
33
  }
34
- }, W1 = (i, e, t) => {
35
- i.loadNamespaces(e, ne(i, t));
36
- }, j1 = (i, e, t, s) => {
37
- t1(t) && (t = [t]), t.forEach((n) => {
34
+ }, j1 = (i, e, t) => {
35
+ i.loadNamespaces(e, oe(i, t));
36
+ }, D1 = (i, e, t, s) => {
37
+ n1(t) && (t = [t]), t.forEach((n) => {
38
38
  i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
39
- }), i.loadLanguages(e, ne(i, s));
39
+ }), i.loadLanguages(e, oe(i, s));
40
40
  }, He = function(i, e) {
41
41
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
42
42
  const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, l = e.languages[e.languages.length - 1];
@@ -48,13 +48,13 @@ const ne = (i, e) => () => {
48
48
  return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(l, i)));
49
49
  }, Ie = function(i, e) {
50
50
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
51
- return !e.languages || !e.languages.length ? (V1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
51
+ return !e.languages || !e.languages.length ? (I1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
52
52
  lng: t.lng,
53
53
  precheck: (s, n) => {
54
54
  if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !n(s.isLanguageChangingTo, i)) return !1;
55
55
  }
56
56
  }) : He(i, e, t);
57
- }, t1 = (i) => typeof i == "string", Se = (i) => typeof i == "object" && i !== null, Oe = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ae = {
57
+ }, n1 = (i) => typeof i == "string", Oe = (i) => typeof i == "object" && i !== null, Se = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ae = {
58
58
  "&amp;": "&",
59
59
  "&#38;": "&",
60
60
  "&lt;": "<",
@@ -75,7 +75,7 @@ const ne = (i, e) => () => {
75
75
  "&#8230;": "…",
76
76
  "&#x2F;": "/",
77
77
  "&#47;": "/"
78
- }, Be = (i) => Ae[i], Ze = (i) => i.replace(Oe, Be);
78
+ }, Be = (i) => Ae[i], Ze = (i) => i.replace(Se, Be);
79
79
  let We = {
80
80
  bindI18n: "languageChanged",
81
81
  bindI18nStore: "",
@@ -88,7 +88,7 @@ let We = {
88
88
  };
89
89
  const je = () => We;
90
90
  let De;
91
- const Te = () => De, Ge = h1();
91
+ const Te = () => De, Ge = d1();
92
92
  class Ke {
93
93
  constructor() {
94
94
  _e(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
@@ -104,20 +104,20 @@ const Pe = (i, e) => {
104
104
  return B(() => {
105
105
  t.current = i;
106
106
  }, [i, e]), t.current;
107
- }, re = (i, e, t, s) => i.getFixedT(e, t, s), Ye = (i, e, t, s) => j(re(i, e, t, s), [i, e, t, s]), Fe = function(i) {
107
+ }, le = (i, e, t, s) => i.getFixedT(e, t, s), $e = (i, e, t, s) => W(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
111
111
  } = e, {
112
112
  i18n: s,
113
113
  defaultNS: n
114
- } = s1(Ge) || {}, l = t || s || Te();
114
+ } = o1(Ge) || {}, l = t || s || Te();
115
115
  if (l && !l.reportNamespaces && (l.reportNamespaces = new Ke()), !l) {
116
- V1("You will need to pass in an i18next instance by using initReactI18next");
117
- const f = (v, w) => t1(w) ? w : Se(w) && t1(w.defaultValue) ? w.defaultValue : Array.isArray(v) ? v[v.length - 1] : v, L = [f, {}, !1];
118
- return L.t = f, L.i18n = {}, L.ready = !1, L;
116
+ I1("You will need to pass in an i18next instance by using initReactI18next");
117
+ const f = (N, w) => n1(w) ? w : Oe(w) && n1(w.defaultValue) ? w.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, k = [f, {}, !1];
118
+ return k.t = f, k.i18n = {}, k.ready = !1, k;
119
119
  }
120
- l.options.react && l.options.react.wait !== void 0 && V1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
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 = {
122
122
  ...je(),
123
123
  ...l.options.react,
@@ -127,36 +127,36 @@ const Pe = (i, e) => {
127
127
  keyPrefix: d
128
128
  } = c;
129
129
  let g = i;
130
- g = t1(g) ? [g] : g || ["translation"], l.reportNamespaces.addUsedNamespaces && l.reportNamespaces.addUsedNamespaces(g);
131
- const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => Ie(f, l, c)), h = Ye(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => re(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 V = Pe(N), b = Y(!0);
130
+ g = n1(g) ? [g] : g || ["translation"], l.reportNamespaces.addUsedNamespaces && l.reportNamespaces.addUsedNamespaces(g);
131
+ const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => Ie(f, l, c)), h = $e(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), [L, x] = O(u);
132
+ let v = g.join();
133
+ e.lng && (v = `${e.lng}${v}`);
134
+ const E = Pe(v), b = Y(!0);
135
135
  B(() => {
136
136
  const {
137
137
  bindI18n: f,
138
- bindI18nStore: L
138
+ bindI18nStore: k
139
139
  } = c;
140
- b.current = !0, !a && !o && (e.lng ? j1(l, e.lng, g, () => {
140
+ b.current = !0, !a && !o && (e.lng ? D1(l, e.lng, g, () => {
141
141
  b.current && x(p);
142
- }) : W1(l, g, () => {
142
+ }) : j1(l, g, () => {
143
143
  b.current && x(p);
144
- })), a && V && V !== N && b.current && x(p);
145
- const v = () => {
144
+ })), a && E && E !== v && b.current && x(p);
145
+ const N = () => {
146
146
  b.current && x(p);
147
147
  };
148
- return f && l && l.on(f, v), L && l && l.store.on(L, v), () => {
149
- b.current = !1, f && l && f.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), k && l && l.store.on(k, N), () => {
149
+ b.current = !1, f && l && f.split(" ").forEach((w) => l.off(w, N)), k && l && k.split(" ").forEach((w) => l.store.off(w, N));
150
150
  };
151
- }, [l, N]), B(() => {
151
+ }, [l, v]), B(() => {
152
152
  b.current && a && x(u);
153
153
  }, [l, d, a]);
154
- const _ = [k, l, a];
155
- if (_.t = k, _.i18n = l, _.ready = a, a || !a && !o) return _;
154
+ const _ = [L, l, a];
155
+ if (_.t = L, _.i18n = l, _.ready = a, a || !a && !o) return _;
156
156
  throw new Promise((f) => {
157
- e.lng ? j1(l, e.lng, g, () => f()) : W1(l, g, () => f());
157
+ e.lng ? D1(l, e.lng, g, () => f()) : j1(l, g, () => f());
158
158
  });
159
- }, L1 = ({
159
+ }, f1 = ({
160
160
  children: i,
161
161
  direction: e = "row",
162
162
  flexWrap: t = "nowrap",
@@ -166,7 +166,7 @@ const Pe = (i, e) => {
166
166
  gap: c,
167
167
  padding: o
168
168
  }) => /* @__PURE__ */ r(
169
- Le,
169
+ ve,
170
170
  {
171
171
  className: `snmt-flex${t === "inherit" ? " inherit" : ""}`,
172
172
  vertical: e === "column",
@@ -178,10 +178,10 @@ const Pe = (i, e) => {
178
178
  style: { padding: o },
179
179
  children: i
180
180
  }
181
- ), $e = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
181
+ ), Ye = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
182
182
  const n = typeof s.src == "string";
183
183
  return /* @__PURE__ */ r(
184
- ve,
184
+ Ne,
185
185
  {
186
186
  className: `snmt-avatar ${n ? "image" : ""}`,
187
187
  shape: i,
@@ -192,12 +192,12 @@ const Pe = (i, e) => {
192
192
  }
193
193
  );
194
194
  };
195
- var e1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(e1 || {});
196
- const O1 = h1({
195
+ 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 || {});
196
+ const B1 = d1({
197
197
  locale: "en",
198
198
  theme: "light"
199
199
  });
200
- O1.Provider;
200
+ B1.Provider;
201
201
  const Ue = ({
202
202
  checked: i = !0,
203
203
  indeterminate: e = !1,
@@ -206,13 +206,13 @@ const Ue = ({
206
206
  disabled: n = !1,
207
207
  disableUncheck: l = !1
208
208
  }) => {
209
- const [c, o] = S(i), [d, g] = S(e);
209
+ const [c, o] = O(i), [d, g] = O(e);
210
210
  B(() => {
211
211
  o(i), g(e);
212
212
  }, [i, e]);
213
- const { theme: a } = s1(O1);
213
+ const { theme: a } = o1(B1);
214
214
  return /* @__PURE__ */ r(
215
- Ne,
215
+ xe,
216
216
  {
217
217
  className: `snmt-checkbox snmt-checkbox-${a}`,
218
218
  checked: c,
@@ -226,11 +226,11 @@ const Ue = ({
226
226
  );
227
227
  };
228
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 || {});
229
- const oe = h1({
229
+ const ae = d1({
230
230
  locale: "en",
231
231
  theme: "light"
232
232
  });
233
- oe.Provider;
233
+ ae.Provider;
234
234
  const ze = ({
235
235
  width: i = 20,
236
236
  height: e = 20,
@@ -1474,7 +1474,7 @@ const ze = ({
1474
1474
  )
1475
1475
  ]
1476
1476
  }
1477
- ), E2 = ({
1477
+ ), V2 = ({
1478
1478
  width: i = 20,
1479
1479
  height: e = 20,
1480
1480
  color: t = "#070739",
@@ -1504,7 +1504,7 @@ const ze = ({
1504
1504
  /* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
1505
1505
  ]
1506
1506
  }
1507
- ), V2 = ({
1507
+ ), E2 = ({
1508
1508
  width: i = 20,
1509
1509
  height: e = 20,
1510
1510
  color: t = "#070739",
@@ -1597,7 +1597,7 @@ const ze = ({
1597
1597
  )
1598
1598
  ]
1599
1599
  }
1600
- ), S2 = ({
1600
+ ), O2 = ({
1601
1601
  width: i = 20,
1602
1602
  height: e = 20,
1603
1603
  color: t = "#004ED7",
@@ -1626,7 +1626,7 @@ const ze = ({
1626
1626
  )
1627
1627
  ]
1628
1628
  }
1629
- ), O2 = ({
1629
+ ), S2 = ({
1630
1630
  width: i = 248,
1631
1631
  height: e = 248,
1632
1632
  color: t = "#070739",
@@ -1992,7 +1992,7 @@ const ze = ({
1992
1992
  }
1993
1993
  )
1994
1994
  }
1995
- ), Y2 = ({
1995
+ ), $2 = ({
1996
1996
  className: i,
1997
1997
  color: e = M.GREY_DARK_5,
1998
1998
  height: t = 24,
@@ -2070,7 +2070,7 @@ const ze = ({
2070
2070
  )
2071
2071
  ]
2072
2072
  }
2073
- ), $2 = ({
2073
+ ), Y2 = ({
2074
2074
  className: i,
2075
2075
  color: e = M.GREY_DARK_5,
2076
2076
  height: t = 24,
@@ -3413,7 +3413,7 @@ const ze = ({
3413
3413
  )
3414
3414
  ]
3415
3415
  }
3416
- ), Et = ({
3416
+ ), Vt = ({
3417
3417
  width: i = 24,
3418
3418
  height: e = 24,
3419
3419
  color: t = M.GREY_DARK_2,
@@ -3440,7 +3440,7 @@ const ze = ({
3440
3440
  }
3441
3441
  )
3442
3442
  }
3443
- ), Vt = ({
3443
+ ), Et = ({
3444
3444
  width: i = 24,
3445
3445
  height: e = 24,
3446
3446
  color: t = M.GREY_DARK_2,
@@ -3467,7 +3467,7 @@ const ze = ({
3467
3467
  }
3468
3468
  )
3469
3469
  }
3470
- ), m1 = ({
3470
+ ), u1 = ({
3471
3471
  name: i,
3472
3472
  width: e,
3473
3473
  height: t,
@@ -3476,14 +3476,14 @@ const ze = ({
3476
3476
  disabled: l = !1,
3477
3477
  onClick: c
3478
3478
  }) => {
3479
- const [o, d] = S(n), { theme: g } = s1(oe), a = l ? g && g === "dark" ? M.GREY_LIGHT_4 : M.GREY_DARK_1 : s, h = l ? void 0 : c;
3479
+ const [o, d] = O(n), { theme: g } = o1(ae), a = l ? g && g === "dark" ? M.GREY_LIGHT_4 : M.GREY_DARK_1 : s, h = l ? void 0 : c;
3480
3480
  return B(() => {
3481
3481
  if (n) {
3482
3482
  h && !l && d(`${n} clickable`);
3483
3483
  return;
3484
3484
  }
3485
3485
  h && !l && d("clickable");
3486
- }, [h, n, l]), /* @__PURE__ */ r(a1, { children: (() => {
3486
+ }, [h, n, l]), /* @__PURE__ */ r(s1, { children: (() => {
3487
3487
  switch (i) {
3488
3488
  case "nextIcon":
3489
3489
  return T2({ width: e, height: t, color: a, className: o, onClick: h });
@@ -3594,7 +3594,7 @@ const ze = ({
3594
3594
  case "errorMedium":
3595
3595
  return _2({ width: e, height: t, color: a, className: o, onClick: h });
3596
3596
  case "faviconSkills":
3597
- return O2({
3597
+ return S2({
3598
3598
  width: e,
3599
3599
  height: t,
3600
3600
  color: a,
@@ -3602,7 +3602,7 @@ const ze = ({
3602
3602
  onClick: h
3603
3603
  });
3604
3604
  case "visibilityIcon":
3605
- return E2({
3605
+ return V2({
3606
3606
  width: e,
3607
3607
  height: t,
3608
3608
  color: a,
@@ -3610,7 +3610,7 @@ const ze = ({
3610
3610
  onClick: h
3611
3611
  });
3612
3612
  case "visibilityOffIcon":
3613
- return V2({
3613
+ return E2({
3614
3614
  width: e,
3615
3615
  height: t,
3616
3616
  color: a,
@@ -3634,7 +3634,7 @@ const ze = ({
3634
3634
  onClick: h
3635
3635
  });
3636
3636
  case "expandActiveArrowIcon":
3637
- return S2({
3637
+ return O2({
3638
3638
  width: e,
3639
3639
  height: t,
3640
3640
  color: a,
@@ -3658,9 +3658,9 @@ const ze = ({
3658
3658
  case "arrowDownFilled":
3659
3659
  return K2({ width: e, height: t, color: a, className: o, onClick: h });
3660
3660
  case "link":
3661
- return Y2({ width: e, height: t, color: a, className: o, onClick: h });
3662
- case "telegram":
3663
3661
  return $2({ width: e, height: t, color: a, className: o, onClick: h });
3662
+ case "telegram":
3663
+ return Y2({ width: e, height: t, color: a, className: o, onClick: h });
3664
3664
  case "mail":
3665
3665
  return z2({ width: e, height: t, color: a, className: o, onClick: h });
3666
3666
  case "github":
@@ -3734,19 +3734,19 @@ const ze = ({
3734
3734
  case "openPointCircle":
3735
3735
  return _t({ width: e, height: t, color: a, className: o, onClick: h });
3736
3736
  case "community":
3737
- return Et({ width: e, height: t, color: a, className: o, onClick: h });
3738
- case "docs":
3739
3737
  return Vt({ width: e, height: t, color: a, className: o, onClick: h });
3738
+ case "docs":
3739
+ return Et({ width: e, height: t, color: a, className: o, onClick: h });
3740
3740
  default:
3741
- return /* @__PURE__ */ r(a1, { children: "No Icon provided" });
3741
+ return /* @__PURE__ */ r(s1, { children: "No Icon provided" });
3742
3742
  }
3743
3743
  })() });
3744
- }, { Title: Ht, Text: It } = xe, St = {
3744
+ }, { Title: Ht, Text: It } = re, Ot = {
3745
3745
  h1: 1,
3746
3746
  h2: 2,
3747
3747
  h3: 3,
3748
3748
  h4: 4
3749
- }, Ot = R1(
3749
+ }, St = L1(
3750
3750
  ({
3751
3751
  align: i = "inherit",
3752
3752
  variant: e = "body1",
@@ -3764,7 +3764,7 @@ const ze = ({
3764
3764
  className: g,
3765
3765
  style: { color: t, whiteSpace: c },
3766
3766
  onClick: n,
3767
- level: St[e],
3767
+ level: Ot[e],
3768
3768
  ref: o,
3769
3769
  children: s
3770
3770
  }
@@ -3781,11 +3781,11 @@ const ze = ({
3781
3781
  }
3782
3782
  );
3783
3783
  var R = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(R || {});
3784
- const le = h1({
3784
+ const he = d1({
3785
3785
  locale: "en",
3786
3786
  theme: "light"
3787
3787
  });
3788
- le.Provider;
3788
+ he.Provider;
3789
3789
  const At = ({
3790
3790
  width: i = 20,
3791
3791
  height: e = 20,
@@ -4114,7 +4114,7 @@ const At = ({
4114
4114
  /* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
4115
4115
  ]
4116
4116
  }
4117
- ), Yt = ({
4117
+ ), $t = ({
4118
4118
  width: i = 16,
4119
4119
  height: e = 12,
4120
4120
  color: t = "#001E52",
@@ -4197,7 +4197,7 @@ const At = ({
4197
4197
  )
4198
4198
  ]
4199
4199
  }
4200
- ), $t = ({
4200
+ ), Yt = ({
4201
4201
  width: i = 10,
4202
4202
  height: e = 10,
4203
4203
  color: t = "#001E52",
@@ -5498,7 +5498,7 @@ const At = ({
5498
5498
  }
5499
5499
  )
5500
5500
  }
5501
- ), E5 = ({
5501
+ ), V5 = ({
5502
5502
  className: i,
5503
5503
  color: e = R.GREY_DARK_5,
5504
5504
  height: t = 5,
@@ -5522,7 +5522,7 @@ const At = ({
5522
5522
  }
5523
5523
  )
5524
5524
  }
5525
- ), V5 = ({
5525
+ ), E5 = ({
5526
5526
  className: i,
5527
5527
  color: e = R.GREY_DARK_5,
5528
5528
  height: t = 5,
@@ -5625,7 +5625,7 @@ const At = ({
5625
5625
  )
5626
5626
  ]
5627
5627
  }
5628
- ), S5 = ({
5628
+ ), O5 = ({
5629
5629
  className: i,
5630
5630
  color: e = R.GREY_DARK_5,
5631
5631
  height: t = 24,
@@ -5652,7 +5652,7 @@ const At = ({
5652
5652
  }
5653
5653
  )
5654
5654
  }
5655
- ), O5 = ({
5655
+ ), S5 = ({
5656
5656
  className: i,
5657
5657
  color: e = R.GREY_DARK_5,
5658
5658
  height: t = 24,
@@ -6113,7 +6113,7 @@ const At = ({
6113
6113
  )
6114
6114
  ]
6115
6115
  }
6116
- ), Y5 = ({
6116
+ ), $5 = ({
6117
6117
  className: i,
6118
6118
  color: e = R.GREY_DARK_5,
6119
6119
  height: t = 24,
@@ -6209,7 +6209,7 @@ const At = ({
6209
6209
  )
6210
6210
  ]
6211
6211
  }
6212
- ), $5 = ({
6212
+ ), Y5 = ({
6213
6213
  className: i,
6214
6214
  color: e = R.GREY_DARK_5,
6215
6215
  height: t = 24,
@@ -7031,14 +7031,14 @@ const At = ({
7031
7031
  disabled: l = !1,
7032
7032
  onClick: c
7033
7033
  }) => {
7034
- const [o, d] = S(n), { theme: g } = s1(le), a = l ? g && g === "dark" ? R.GREY_LIGHT_4 : R.GREY_DARK_1 : s, h = l ? void 0 : c;
7034
+ const [o, d] = O(n), { theme: g } = o1(he), a = l ? g && g === "dark" ? R.GREY_LIGHT_4 : R.GREY_DARK_1 : s, h = l ? void 0 : c;
7035
7035
  return B(() => {
7036
7036
  if (n) {
7037
7037
  h && !l && d(`${n} clickable`);
7038
7038
  return;
7039
7039
  }
7040
7040
  h && !l && d("clickable");
7041
- }, [h, n, l]), /* @__PURE__ */ r(a1, { children: (() => {
7041
+ }, [h, n, l]), /* @__PURE__ */ r(s1, { children: (() => {
7042
7042
  switch (i) {
7043
7043
  case "nextIcon":
7044
7044
  return b5({ width: e, height: t, color: a, className: o, onClick: h });
@@ -7065,11 +7065,11 @@ const At = ({
7065
7065
  case "dragAndDrop":
7066
7066
  return Pt({ width: e, height: t, color: a, className: o, onClick: h });
7067
7067
  case "filter":
7068
- return Yt({ width: e, height: t, color: a, className: o, onClick: h });
7068
+ return $t({ width: e, height: t, color: a, className: o, onClick: h });
7069
7069
  case "attention":
7070
7070
  return Ft({ width: e, height: t, color: a, className: o, onClick: h });
7071
7071
  case "plus":
7072
- return $t({ width: e, height: t, color: a, className: o, onClick: h });
7072
+ return Yt({ width: e, height: t, color: a, className: o, onClick: h });
7073
7073
  case "time":
7074
7074
  return Ut({ width: e, height: t, color: a, className: o, onClick: h });
7075
7075
  case "arrowDownLong":
@@ -7209,19 +7209,19 @@ const At = ({
7209
7209
  case "handRock":
7210
7210
  return y5({ width: e, height: t, color: a, className: o, onClick: h });
7211
7211
  case "arrowUpFilled":
7212
- return V5({ width: e, height: t, color: a, className: o, onClick: h });
7213
- case "arrowDownFilled":
7214
7212
  return E5({ width: e, height: t, color: a, className: o, onClick: h });
7213
+ case "arrowDownFilled":
7214
+ return V5({ width: e, height: t, color: a, className: o, onClick: h });
7215
7215
  case "link":
7216
7216
  return H5({ width: e, height: t, color: a, className: o, onClick: h });
7217
7217
  case "telegram":
7218
- return S5({ width: e, height: t, color: a, className: o, onClick: h });
7218
+ return O5({ width: e, height: t, color: a, className: o, onClick: h });
7219
7219
  case "mail":
7220
7220
  return A5({ width: e, height: t, color: a, className: o, onClick: h });
7221
7221
  case "github":
7222
7222
  return I5({ width: e, height: t, color: a, className: o, onClick: h });
7223
7223
  case "linkedIn":
7224
- return O5({ width: e, height: t, color: a, className: o, onClick: h });
7224
+ return S5({ width: e, height: t, color: a, className: o, onClick: h });
7225
7225
  case "emptyStateIcon":
7226
7226
  return B5({ width: e, height: t, color: a, className: o, onClick: h });
7227
7227
  case "filtersIcon":
@@ -7241,11 +7241,11 @@ const At = ({
7241
7241
  case "trash2":
7242
7242
  return K5({ width: e, height: t, color: a, className: o, onClick: h });
7243
7243
  case "manager":
7244
- return Y5({ width: e, height: t, color: a, className: o, onClick: h });
7244
+ return $5({ width: e, height: t, color: a, className: o, onClick: h });
7245
7245
  case "resourceManager":
7246
7246
  return F5({ width: e, height: t, color: a, className: o, onClick: h });
7247
7247
  case "settings2":
7248
- return $5({ width: e, height: t, color: a, className: o, onClick: h });
7248
+ return Y5({ width: e, height: t, color: a, className: o, onClick: h });
7249
7249
  case "image":
7250
7250
  return U5({ width: e, height: t, color: a, className: o, onClick: h });
7251
7251
  case "upload":
@@ -7293,17 +7293,17 @@ const At = ({
7293
7293
  case "docs":
7294
7294
  return f3({ width: e, height: t, color: a, className: o, onClick: h });
7295
7295
  default:
7296
- return /* @__PURE__ */ r(a1, { children: "No Icon provided" });
7296
+ return /* @__PURE__ */ r(s1, { children: "No Icon provided" });
7297
7297
  }
7298
7298
  })() });
7299
7299
  };
7300
- var g1 = /* @__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))(g1 || {});
7301
- const m3 = h1({
7300
+ var w1 = /* @__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))(w1 || {});
7301
+ const m3 = d1({
7302
7302
  locale: "en",
7303
7303
  theme: "light"
7304
7304
  });
7305
7305
  m3.Provider;
7306
- const ae = ({
7306
+ const ce = ({
7307
7307
  children: i,
7308
7308
  width: e,
7309
7309
  size: t = "small",
@@ -7322,7 +7322,7 @@ const ae = ({
7322
7322
  w3,
7323
7323
  {
7324
7324
  name: "errorSmall",
7325
- color: l ? g1.GREY_DARK_1 : g1.GREY_DARK_2,
7325
+ color: l ? w1.GREY_DARK_1 : w1.GREY_DARK_2,
7326
7326
  width: c,
7327
7327
  height: c,
7328
7328
  onClick: o
@@ -7332,16 +7332,54 @@ const ae = ({
7332
7332
  style: { width: e ?? "fit-content" },
7333
7333
  closable: n,
7334
7334
  children: typeof i == "string" ? /* @__PURE__ */ r(
7335
- Ot,
7335
+ St,
7336
7336
  {
7337
7337
  variant: t === "small" ? "body4" : "body2",
7338
- color: l ? g1.GREY_DARK_2 : g1.GREY_DARK_5,
7338
+ color: l ? w1.GREY_DARK_2 : w1.GREY_DARK_5,
7339
7339
  children: i
7340
7340
  }
7341
7341
  ) : i
7342
7342
  }
7343
7343
  );
7344
- }, k3 = ({
7344
+ }, { Title: k3, Text: L3 } = re, v3 = {
7345
+ h1: 1,
7346
+ h2: 2,
7347
+ h3: 3,
7348
+ h4: 4
7349
+ }, N3 = L1(
7350
+ ({
7351
+ align: i = "inherit",
7352
+ variant: e = "body1",
7353
+ color: t,
7354
+ children: s,
7355
+ onClick: n,
7356
+ collapsed: l,
7357
+ whiteSpace: c = "normal"
7358
+ }, o) => {
7359
+ const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
7360
+ let g = `snmt-typography snmt-typography-${e}`;
7361
+ return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), l && (g += " collapsed"), d ? /* @__PURE__ */ r(
7362
+ k3,
7363
+ {
7364
+ className: g,
7365
+ style: { color: t, whiteSpace: c },
7366
+ onClick: n,
7367
+ level: v3[e],
7368
+ ref: o,
7369
+ children: s
7370
+ }
7371
+ ) : /* @__PURE__ */ r(
7372
+ L3,
7373
+ {
7374
+ className: g,
7375
+ style: { color: t, whiteSpace: c },
7376
+ onClick: n,
7377
+ ref: o,
7378
+ children: s
7379
+ }
7380
+ );
7381
+ }
7382
+ ), x3 = ({
7345
7383
  children: i,
7346
7384
  content: e,
7347
7385
  isOpen: t,
@@ -7349,7 +7387,7 @@ const ae = ({
7349
7387
  placement: n = "topRight",
7350
7388
  noPadding: l = !1
7351
7389
  }) => {
7352
- const [c, o] = S(!1);
7390
+ const [c, o] = O(!1);
7353
7391
  return /* @__PURE__ */ r(
7354
7392
  Re,
7355
7393
  {
@@ -7366,18 +7404,18 @@ const ae = ({
7366
7404
  }
7367
7405
  );
7368
7406
  };
7369
- var L3 = { exports: {} };
7407
+ var M3 = { exports: {} };
7370
7408
  (function(i, e) {
7371
7409
  (function(t, s) {
7372
7410
  i.exports = s();
7373
- })(Ee, function() {
7411
+ })(Ve, function() {
7374
7412
  return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t) {
7375
7413
  var s = ["th", "st", "nd", "rd"], n = t % 100;
7376
7414
  return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
7377
7415
  } };
7378
7416
  });
7379
- })(L3);
7380
- const v3 = ({
7417
+ })(M3);
7418
+ const R3 = ({
7381
7419
  values: i,
7382
7420
  onTagClose: e,
7383
7421
  maxWidth: t,
@@ -7386,22 +7424,22 @@ const v3 = ({
7386
7424
  options: l,
7387
7425
  extraOptions: c
7388
7426
  }) => {
7389
- const { locale: o } = s1(O1), { t: d } = Fe("common", { lng: o }), [g, a] = S(!1);
7427
+ const { locale: o } = o1(B1), { t: d } = Fe("common", { lng: o }), [g, a] = O(!1);
7390
7428
  if (B(() => {
7391
7429
  i.length || a(!1);
7392
7430
  }, [i]), !i.length)
7393
7431
  return null;
7394
7432
  const h = (u) => {
7395
- var p, k;
7396
- return ((p = l == null ? void 0 : l.find((x) => x.value === u)) == null ? void 0 : p.label) || ((k = c == null ? void 0 : c.find((x) => x.value === u)) == null ? void 0 : k.label) || u;
7433
+ var p, L;
7434
+ return ((p = l == null ? void 0 : l.find((x) => x.value === u)) == null ? void 0 : p.label) || ((L = c == null ? void 0 : c.find((x) => x.value === u)) == null ? void 0 : L.label) || u;
7397
7435
  };
7398
7436
  return /* @__PURE__ */ C(
7399
- k3,
7437
+ x3,
7400
7438
  {
7401
7439
  content: (
7402
7440
  // 90: paddings + margins + gaps and so on
7403
- /* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ r(L1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: u }) => /* @__PURE__ */ r(
7404
- ae,
7441
+ /* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ r(f1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: u }) => /* @__PURE__ */ r(
7442
+ ce,
7405
7443
  {
7406
7444
  onClose: () => e(u),
7407
7445
  closable: s,
@@ -7421,7 +7459,7 @@ const v3 = ({
7421
7459
  ]
7422
7460
  }
7423
7461
  );
7424
- }, D1 = ({ size: i = 30, color: e = "#004ed7" }) => {
7462
+ }, T1 = ({ size: i = 30, color: e = "#004ed7" }) => {
7425
7463
  const t = `no-repeat linear-gradient(${e}
7426
7464
  calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
7427
7465
  width: i,
@@ -7429,7 +7467,7 @@ const v3 = ({
7429
7467
  backgroundSize: "20% calc(200% + 20px)"
7430
7468
  };
7431
7469
  return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
7432
- }, T1 = R1(
7470
+ }, G1 = L1(
7433
7471
  ({
7434
7472
  value: i,
7435
7473
  onChange: e,
@@ -7445,194 +7483,204 @@ const v3 = ({
7445
7483
  onSearchChange: h,
7446
7484
  onDropdownVisibleChange: u,
7447
7485
  onScrollToEnd: p,
7448
- onPopupScroll: k,
7486
+ onPopupScroll: L,
7449
7487
  id: x,
7450
- extraOptions: N,
7451
- dropdownRender: V,
7488
+ extraOptions: v,
7489
+ dropdownRender: E,
7452
7490
  optionRender: b,
7453
7491
  isLoading: _,
7454
- readOnly: f
7455
- }, L) => {
7456
- const [v, w] = S(!1), [O, T] = S(!1), [P, G] = S(!0), [Z, F] = S(i), $ = Y(null);
7492
+ readOnly: f,
7493
+ error: k
7494
+ }, N) => {
7495
+ const [w, S] = O(!1), [Z, K] = O(!1), [P, J] = O(!0), [H, $] = O(i), U = Y(null);
7457
7496
  B(() => {
7458
- F(i);
7497
+ $(i);
7459
7498
  }, [i]);
7460
- const U = (m) => {
7461
- w(m), u && u(m);
7462
- }, Q = (m, E) => {
7463
- var I;
7464
- return !!((I = E == null ? void 0 : E.label) != null && I.toString().toLowerCase().includes(m.toLowerCase()));
7465
- }, X = () => {
7466
- T(!0);
7499
+ const q = (m) => {
7500
+ S(m), u && u(m);
7501
+ }, e1 = (m, V) => {
7502
+ var T;
7503
+ return !!((T = V == null ? void 0 : V.label) != null && T.toString().toLowerCase().includes(m.toLowerCase()));
7467
7504
  }, A = () => {
7468
- T(!1);
7469
- }, W = j(
7505
+ K(!0);
7506
+ }, F = () => {
7507
+ K(!1);
7508
+ }, D = W(
7470
7509
  (m) => {
7471
- if (F(m), s) {
7472
- const I = m;
7473
- e == null || e(I);
7510
+ if ($(m), s) {
7511
+ const T = m;
7512
+ e == null || e(T);
7474
7513
  return;
7475
7514
  }
7476
- const E = m;
7477
- e == null || e(E);
7515
+ const V = m;
7516
+ e == null || e(V);
7478
7517
  },
7479
7518
  [s, e]
7480
- ), z = j(() => {
7519
+ ), t1 = W(() => {
7481
7520
  if (!f) {
7482
7521
  if (s) {
7483
- W([]);
7522
+ D([]);
7484
7523
  return;
7485
7524
  }
7486
- W("");
7525
+ D("");
7487
7526
  }
7488
- }, [W, s, f]), J = j(
7527
+ }, [D, s, f]), i1 = W(
7489
7528
  (m) => {
7490
- const E = Z.filter((I) => I !== m);
7491
- W(E), F(E);
7529
+ const V = H.filter((T) => T !== m);
7530
+ D(V), $(V);
7492
7531
  },
7493
- [W, Z]
7494
- ), c1 = j(
7495
- (m) => (Z == null ? void 0 : Z.indexOf(m)) === 0 ? (
7532
+ [D, H]
7533
+ ), g1 = W(
7534
+ (m) => (H == null ? void 0 : H.indexOf(m)) === 0 ? (
7496
7535
  // if the search input is empty
7497
7536
  // then display the placeholder, else do not display it
7498
7537
  /* @__PURE__ */ r("span", { className: "custom-placeholder", children: P ? t : "" })
7499
- ) : /* @__PURE__ */ r(a1, {}),
7500
- [P, Z, t]
7501
- ), p1 = (m) => {
7538
+ ) : /* @__PURE__ */ r(s1, {}),
7539
+ [P, H, t]
7540
+ ), v1 = (m) => {
7502
7541
  m.preventDefault(), m.stopPropagation();
7503
- }, f1 = async (m) => {
7504
- const { target: E } = m;
7505
- E.scrollTop + E.offsetHeight >= E.scrollHeight - a && (p == null || p(!0)), k && await k(m);
7506
- }, n1 = j(
7542
+ }, N1 = async (m) => {
7543
+ const { target: V } = m;
7544
+ V.scrollTop + V.offsetHeight >= V.scrollHeight - a && (p == null || p(!0)), L && await L(m);
7545
+ }, l1 = W(
7507
7546
  (m) => {
7508
- var E, I;
7509
- return ((E = l.find((K) => K.value === m)) == null ? void 0 : E.label) || ((I = N == null ? void 0 : N.find(
7510
- (K) => K.value === m
7511
- )) == null ? void 0 : I.label) || m;
7547
+ var V, T;
7548
+ return ((V = l.find((C1) => C1.value === m)) == null ? void 0 : V.label) || ((T = v == null ? void 0 : v.find(
7549
+ (C1) => C1.value === m
7550
+ )) == null ? void 0 : T.label) || m;
7512
7551
  },
7513
- [N, l]
7514
- ), w1 = j(
7552
+ [v, l]
7553
+ ), I = W(
7515
7554
  (m) => {
7516
- var E;
7555
+ var V;
7517
7556
  return /* @__PURE__ */ r(
7518
- v3,
7557
+ R3,
7519
7558
  {
7520
7559
  values: m,
7521
- onTagClose: J,
7522
- maxWidth: ((E = $.current) == null ? void 0 : E.clientWidth) || 0,
7560
+ onTagClose: i1,
7561
+ maxWidth: ((V = U.current) == null ? void 0 : V.clientWidth) || 0,
7523
7562
  disabled: o,
7524
7563
  closable: !f,
7525
7564
  options: l,
7526
- extraOptions: N
7565
+ extraOptions: v
7527
7566
  }
7528
7567
  );
7529
7568
  },
7530
- [o, N, J, l, f]
7531
- ), H = j(
7532
- ({ label: m, value: E, mode: I }) => I === "filter" ? c1(E) : /* @__PURE__ */ r("div", { onMouseDown: p1, className: "tag-wrapper", children: /* @__PURE__ */ r(ae, { onClose: () => J(E), disabled: o, children: typeof m == "object" ? m : n1(E) }) }),
7533
- [o, n1, J, c1]
7534
- );
7569
+ [o, v, i1, l, f]
7570
+ ), G = W(
7571
+ ({ label: m, value: V, mode: T }) => T === "filter" ? g1(V) : /* @__PURE__ */ r("div", { onMouseDown: v1, className: "tag-wrapper", children: /* @__PURE__ */ r(ce, { onClose: () => i1(V), disabled: o, children: typeof m == "object" ? m : l1(V) }) }),
7572
+ [o, l1, i1, g1]
7573
+ ), Q = Array.isArray(H) && H.length > 0 || !!H && typeof H == "string" && H.trim() !== "";
7535
7574
  return /* @__PURE__ */ C(
7536
7575
  "div",
7537
7576
  {
7538
- className: `snmt-select ${O ? "snmt-select-focused" : ""}
7539
- ${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
7540
- ref: $,
7577
+ className: `snmt-select-1-15-6 ${Z ? "snmt-select-focused" : ""}
7578
+ ${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
7579
+ ref: U,
7541
7580
  style: { width: c },
7542
7581
  children: [
7543
7582
  /* @__PURE__ */ r(
7544
- ke,
7583
+ Le,
7545
7584
  {
7546
7585
  className: "snmt-select-blank",
7547
7586
  popupClassName: f ? "dropdown-read-only" : "",
7548
7587
  id: x,
7549
- ref: L,
7588
+ ref: N,
7550
7589
  showSearch: !!n,
7551
- filterOption: n && Q,
7552
- onDropdownVisibleChange: U,
7553
- placeholder: t ? d ? `${t}*` : t : void 0,
7590
+ filterOption: n && e1,
7591
+ onDropdownVisibleChange: q,
7554
7592
  disabled: o,
7555
- value: Z || void 0,
7556
- labelRender: (m) => n1(m.value),
7593
+ value: H || void 0,
7594
+ labelRender: (m) => l1(m.value),
7557
7595
  mode: s === "filter" ? "multiple" : s,
7558
- onChange: W,
7559
- onFocus: X,
7560
- onBlur: A,
7596
+ onChange: D,
7597
+ onFocus: A,
7598
+ onBlur: F,
7561
7599
  onSearch: (m) => {
7562
- G(!m), h && h(m);
7600
+ J(!m), h && h(m);
7563
7601
  },
7564
- onSelect: () => G(!0),
7565
- onDeselect: () => G(!0),
7566
- tagRender: (m) => H({ ...m, mode: s }),
7602
+ onSelect: () => J(!0),
7603
+ onDeselect: () => J(!0),
7604
+ tagRender: (m) => G({ ...m, mode: s }),
7567
7605
  maxTagCount: "responsive",
7568
- maxTagPlaceholder: w1,
7569
- onPopupScroll: f1,
7570
- prefix: _ && /* @__PURE__ */ r(D1, { size: 15 }),
7571
- suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(a1, { children: [
7572
- Z && !!Z.length && (s || g) && /* @__PURE__ */ r("div", { onClick: z, children: /* @__PURE__ */ r(
7573
- m1,
7606
+ maxTagPlaceholder: I,
7607
+ onPopupScroll: N1,
7608
+ prefix: _ && /* @__PURE__ */ r(T1, { size: 15 }),
7609
+ suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(s1, { children: [
7610
+ H && !!H.length && (s || g) && /* @__PURE__ */ r("div", { onClick: t1, children: /* @__PURE__ */ r(
7611
+ u1,
7574
7612
  {
7575
7613
  name: "cancel",
7576
- color: o ? e1.GREY_DARK_1 : e1.GREY_DARK_5
7614
+ color: o ? X.GREY_DARK_1 : X.GREY_DARK_5
7577
7615
  }
7578
7616
  ) }),
7579
7617
  /* @__PURE__ */ r(
7580
- m1,
7618
+ u1,
7581
7619
  {
7582
7620
  name: "selectArrowIcon",
7583
- color: o ? e1.GREY_DARK_1 : e1.GREY_DARK_5,
7584
- className: v ? "select-arrow-rotated" : "select-arrow",
7585
- onClick: () => w(!v)
7621
+ color: o ? X.GREY_DARK_1 : X.GREY_DARK_5,
7622
+ className: w ? "select-arrow-rotated" : "select-arrow",
7623
+ onClick: () => S(!w)
7586
7624
  }
7587
7625
  )
7588
7626
  ] }) }),
7589
- removeIcon: /* @__PURE__ */ r(m1, { name: "errorSmall", color: e1.GREY_DARK_2 }),
7627
+ removeIcon: /* @__PURE__ */ r(u1, { name: "errorSmall", color: X.GREY_DARK_2 }),
7590
7628
  options: l,
7591
- optionRender: (m) => b ? b(m.data) : /* @__PURE__ */ C(L1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
7592
- /* @__PURE__ */ C(L1, { alignItems: "center", gap: 12, children: [
7629
+ optionRender: (m) => b ? b(m.data) : /* @__PURE__ */ C(f1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
7630
+ /* @__PURE__ */ C(f1, { alignItems: "center", gap: 12, children: [
7593
7631
  s && /* @__PURE__ */ r(
7594
7632
  Ue,
7595
7633
  {
7596
- checked: !!(Z != null && Z.includes(m.value))
7634
+ checked: !!(H != null && H.includes(m.value))
7597
7635
  }
7598
7636
  ),
7599
- /* @__PURE__ */ C(L1, { alignItems: "center", gap: 8, children: [
7600
- m.data.image && /* @__PURE__ */ r($e, { src: m.data.image, size: 20 }),
7637
+ /* @__PURE__ */ C(f1, { alignItems: "center", gap: 8, children: [
7638
+ m.data.image && /* @__PURE__ */ r(Ye, { src: m.data.image, size: 20 }),
7601
7639
  /* @__PURE__ */ r("span", { children: m.label })
7602
7640
  ] })
7603
7641
  ] }),
7604
- !s && Z === m.value && /* @__PURE__ */ r(
7605
- m1,
7642
+ !s && H === m.value && /* @__PURE__ */ r(
7643
+ u1,
7606
7644
  {
7607
7645
  name: "ok",
7608
- color: e1.BLUE_PRIMARY,
7646
+ color: X.BLUE_PRIMARY,
7609
7647
  width: 16,
7610
7648
  height: 16
7611
7649
  }
7612
7650
  )
7613
7651
  ] }),
7614
7652
  dropdownRender: (m) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
7615
- /* @__PURE__ */ r("div", { className: "dropdown-menu", children: V ? V(m) : m }),
7616
- _ && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(D1, { size: 28 }) })
7653
+ /* @__PURE__ */ r("div", { className: "dropdown-menu", children: E ? E(m) : m }),
7654
+ _ && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(T1, { size: 28 }) })
7617
7655
  ] })
7618
7656
  }
7619
7657
  ),
7620
- /* @__PURE__ */ r(
7621
- "fieldset",
7622
- {
7623
- className: `${O ? "fieldset-focused" : ""}
7624
- ${o ? "fieldset-disabled" : ""}
7625
- ${typeof i == "string" && i ? "fieldset-filled" : ""}
7626
- ${typeof i == "object" && i != null && i.length ? "fieldset-filled" : ""}`,
7627
- children: /* @__PURE__ */ r("legend", { children: t ? /* @__PURE__ */ r("span", { children: d ? `${t}*` : t }) : "" })
7628
- }
7629
- )
7658
+ t && /* @__PURE__ */ C(s1, { children: [
7659
+ /* @__PURE__ */ r(
7660
+ "label",
7661
+ {
7662
+ className: `${Z || Q ? "label-floating" : ""} ${o ? "label-disabled" : ""} ${Z ? "label-focused" : ""} ${_ ? "label-loading" : ""} ${k ? "label-error" : ""}`,
7663
+ children: d ? `${t}*` : t
7664
+ }
7665
+ ),
7666
+ /* @__PURE__ */ r(
7667
+ "fieldset",
7668
+ {
7669
+ className: `${Z ? "fieldset-focused" : ""} ${o ? "fieldset-disabled" : ""} ${Q ? "fieldset-filled" : ""} ${k ? "fieldset-error" : ""}`,
7670
+ children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: d ? `${t}*` : t }) })
7671
+ }
7672
+ )
7673
+ ] }),
7674
+ k && /* @__PURE__ */ C(f1, { justifyContent: "flex-start", gap: 6, children: [
7675
+ /* @__PURE__ */ r(u1, { name: "attention", color: X.NOTIFICATION_ERROR_DARK }),
7676
+ typeof k == "string" ? /* @__PURE__ */ r(N3, { color: X.NOTIFICATION_ERROR_DARK, variant: "body4", children: k }) : k
7677
+ ] })
7630
7678
  ]
7631
7679
  }
7632
7680
  );
7633
7681
  }
7634
7682
  );
7635
- function N3(i, e = 500) {
7683
+ function y3(i, e = 500) {
7636
7684
  const t = Y();
7637
7685
  return B(() => () => {
7638
7686
  t.current && clearTimeout(t.current);
@@ -7643,15 +7691,15 @@ function N3(i, e = 500) {
7643
7691
  clearTimeout(t.current), t.current = n;
7644
7692
  };
7645
7693
  }
7646
- function G1(i) {
7694
+ function K1(i) {
7647
7695
  const e = Y(i);
7648
7696
  return B(() => {
7649
7697
  e.current = i;
7650
7698
  }, [i]), e.current;
7651
7699
  }
7652
- const b1 = 100, r1 = {
7700
+ const V1 = 100, a1 = {
7653
7701
  offset: 0
7654
- }, x3 = R1(
7702
+ }, b3 = L1(
7655
7703
  ({
7656
7704
  loadOptions: i,
7657
7705
  width: e,
@@ -7667,199 +7715,199 @@ const b1 = 100, r1 = {
7667
7715
  extraOptions: h,
7668
7716
  onDropdownVisibleChange: u,
7669
7717
  optionRender: p,
7670
- dropdownRender: k,
7718
+ dropdownRender: L,
7671
7719
  readOnly: x,
7672
- clearable: N,
7673
- required: V = !1
7720
+ clearable: v,
7721
+ required: E = !1
7674
7722
  }, b) => {
7675
- const [_, f] = S(), [L, v] = S(r1), [w, O] = S(!1), [T, P] = S(), [G, Z] = S(!1), [F, $] = S(
7723
+ const [_, f] = O(), [k, N] = O(a1), [w, S] = O(!1), [Z, K] = O(), [P, J] = O(!1), [H, $] = O(
7676
7724
  h ?? []
7677
- ), U = G1(L.offset), Q = G1(T), [X, A] = S(!1), W = Y(!1), z = j(
7725
+ ), U = K1(k.offset), q = K1(Z), [e1, A] = O(!1), F = Y(!1), D = W(
7678
7726
  async ({
7679
- limit: H = b1,
7680
- offset: m,
7681
- search: E
7727
+ limit: I = V1,
7728
+ offset: G,
7729
+ search: Q
7682
7730
  }) => {
7683
- O(!0);
7731
+ S(!0);
7684
7732
  try {
7685
- const I = await i({
7686
- limit: H,
7687
- offset: m,
7688
- search: E
7733
+ const m = await i({
7734
+ limit: I,
7735
+ offset: G,
7736
+ search: Q
7689
7737
  });
7690
7738
  f(
7691
- (K) => m === 0 ? I.options : [...K ?? [], ...I.options]
7692
- ), v((K) => ({
7693
- ...K,
7694
- count: I.count
7739
+ (V) => G === 0 ? m.options : [...V ?? [], ...m.options]
7740
+ ), N((V) => ({
7741
+ ...V,
7742
+ count: m.count
7695
7743
  }));
7696
- } catch (I) {
7697
- return console.error("AsyncSelect. fetchOptions error", I), [];
7744
+ } catch (m) {
7745
+ return console.error("AsyncSelect. fetchOptions error", m), [];
7698
7746
  } finally {
7699
- O(!1);
7747
+ S(!1);
7700
7748
  }
7701
7749
  },
7702
7750
  [i]
7703
- ), J = N3((H) => {
7704
- P(H), H || v(r1);
7705
- }), c1 = j(
7706
- (H) => J(H),
7707
- [J]
7708
- ), p1 = j(
7709
- async (H) => {
7710
- w || H && L.count && L.count > ((_ == null ? void 0 : _.length) ?? 0) && v((m) => ({
7711
- ...m,
7712
- offset: m.offset + b1
7751
+ ), t1 = y3((I) => {
7752
+ K(I), I || N(a1);
7753
+ }), i1 = W(
7754
+ (I) => t1(I),
7755
+ [t1]
7756
+ ), g1 = W(
7757
+ async (I) => {
7758
+ w || I && k.count && k.count > ((_ == null ? void 0 : _.length) ?? 0) && N((G) => ({
7759
+ ...G,
7760
+ offset: G.offset + V1
7713
7761
  }));
7714
7762
  },
7715
- [w, _ == null ? void 0 : _.length, L.count]
7716
- ), f1 = j(
7717
- (H) => {
7718
- Z(H), !H && T && (P(void 0), v(r1), A(!0)), u == null || u(H);
7763
+ [w, _ == null ? void 0 : _.length, k.count]
7764
+ ), v1 = W(
7765
+ (I) => {
7766
+ J(I), !I && Z && (K(void 0), N(a1), A(!0)), u == null || u(I);
7719
7767
  },
7720
- [u, T]
7768
+ [u, Z]
7721
7769
  );
7722
7770
  B(() => {
7723
- !W.current || w || (X || G && (U !== L.offset || Q !== T || !_)) && (z({ offset: L.offset, limit: b1, search: T }), X && A(!1));
7724
- }, [X, G, L.offset, T, U, Q, _, w]), B(() => {
7725
- (g || a) && z(r1), W.current = !0;
7771
+ !F.current || w || (e1 || P && (U !== k.offset || q !== Z || !_)) && (D({ offset: k.offset, limit: V1, search: Z }), e1 && A(!1));
7772
+ }, [e1, P, k.offset, Z, U, q, _, w]), B(() => {
7773
+ (g || a) && D(a1), F.current = !0;
7726
7774
  }, []), B(() => {
7727
- h && $((H) => {
7728
- const m = h.filter(
7729
- (E) => !H.some((I) => I.value === E.value)
7775
+ h && $((I) => {
7776
+ const G = h.filter(
7777
+ (Q) => !I.some((m) => m.value === Q.value)
7730
7778
  );
7731
- return [...H, ...m];
7779
+ return [...I, ...G];
7732
7780
  });
7733
7781
  }, [h]);
7734
- const n1 = j(
7735
- (H) => {
7736
- t && t(H);
7737
- let m = [];
7738
- if (d ? m = Array.isArray(H) ? H : [] : m = H ? [H] : [], T) {
7739
- const E = m.filter(
7740
- (I) => !(F != null && F.some((K) => K.value === I))
7782
+ const N1 = W(
7783
+ (I) => {
7784
+ t && t(I);
7785
+ let G = [];
7786
+ if (d ? G = Array.isArray(I) ? I : [] : G = I ? [I] : [], Z) {
7787
+ const Q = G.filter(
7788
+ (m) => !(H != null && H.some((V) => V.value === m))
7741
7789
  );
7742
- E.length > 0 && $((I = []) => [
7743
- ...I,
7744
- ...E.map((K) => {
7745
- const A1 = _ == null ? void 0 : _.find((ue) => ue.value === K);
7790
+ Q.length > 0 && $((m = []) => [
7791
+ ...m,
7792
+ ...Q.map((V) => {
7793
+ const T = _ == null ? void 0 : _.find((C1) => C1.value === V);
7746
7794
  return {
7747
- value: K,
7748
- label: (A1 == null ? void 0 : A1.label) ?? K
7795
+ value: V,
7796
+ label: (T == null ? void 0 : T.label) ?? V
7749
7797
  };
7750
7798
  })
7751
- ]), P(void 0), v(r1), A(!0);
7799
+ ]), K(void 0), N(a1), A(!0);
7752
7800
  }
7753
7801
  },
7754
- [t, T, d, _, F]
7755
- ), w1 = me(
7802
+ [t, Z, d, _, H]
7803
+ ), l1 = ke(
7756
7804
  () => ({
7757
7805
  id: n,
7758
7806
  width: e,
7759
7807
  options: _ || [],
7760
- onChange: n1,
7808
+ onChange: N1,
7761
7809
  ref: b,
7762
7810
  placeholder: o,
7763
7811
  search: !0,
7764
7812
  value: s,
7765
- onSearchChange: c1,
7766
- onDropdownVisibleChange: f1,
7813
+ onSearchChange: i1,
7814
+ onDropdownVisibleChange: v1,
7767
7815
  scrollThresholdValue: c,
7768
- onScrollToEnd: p1,
7816
+ onScrollToEnd: g1,
7769
7817
  disabled: l,
7770
- extraOptions: F,
7818
+ extraOptions: H,
7771
7819
  isLoading: w,
7772
7820
  optionRender: p,
7773
- dropdownRender: k,
7821
+ dropdownRender: L,
7774
7822
  readOnly: x,
7775
- clearable: N,
7776
- required: V
7823
+ clearable: v,
7824
+ required: E
7777
7825
  }),
7778
7826
  [
7779
7827
  n,
7780
7828
  e,
7781
7829
  _,
7782
- n1,
7830
+ N1,
7783
7831
  b,
7784
7832
  o,
7785
7833
  s,
7786
- c1,
7787
- f1,
7834
+ i1,
7835
+ v1,
7788
7836
  c,
7789
- p1,
7837
+ g1,
7790
7838
  l,
7791
- F,
7839
+ H,
7792
7840
  w,
7793
7841
  p,
7794
- k,
7842
+ L,
7795
7843
  x,
7796
- N,
7797
- V
7844
+ v,
7845
+ E
7798
7846
  ]
7799
7847
  );
7800
- return se(b, () => ({
7848
+ return ne(b, () => ({
7801
7849
  refetchOptions: async () => {
7802
- v(r1), P(void 0), A(!0);
7850
+ N(a1), K(void 0), A(!0);
7803
7851
  }
7804
- })), d ? /* @__PURE__ */ r(T1, { ...w1, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(T1, { ...w1, value: s }) });
7852
+ })), d ? /* @__PURE__ */ r(G1, { ...l1, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(G1, { ...l1, value: s }) });
7805
7853
  }
7806
- ), y = (i) => typeof i == "string", d1 = () => {
7854
+ ), y = (i) => typeof i == "string", p1 = () => {
7807
7855
  let i, e;
7808
7856
  const t = new Promise((s, n) => {
7809
7857
  i = s, e = n;
7810
7858
  });
7811
7859
  return t.resolve = i, t.reject = e, t;
7812
- }, K1 = (i) => i == null ? "" : "" + i, M3 = (i, e, t) => {
7860
+ }, P1 = (i) => i == null ? "" : "" + i, _3 = (i, e, t) => {
7813
7861
  i.forEach((s) => {
7814
7862
  e[s] && (t[s] = e[s]);
7815
7863
  });
7816
- }, R3 = /###/g, P1 = (i) => i && i.indexOf("###") > -1 ? i.replace(R3, ".") : i, Y1 = (i) => !i || y(i), C1 = (i, e, t) => {
7864
+ }, V3 = /###/g, $1 = (i) => i && i.indexOf("###") > -1 ? i.replace(V3, ".") : i, F1 = (i) => !i || y(i), m1 = (i, e, t) => {
7817
7865
  const s = y(e) ? e.split(".") : e;
7818
7866
  let n = 0;
7819
7867
  for (; n < s.length - 1; ) {
7820
- if (Y1(i)) return {};
7821
- const l = P1(s[n]);
7868
+ if (F1(i)) return {};
7869
+ const l = $1(s[n]);
7822
7870
  !i[l] && t && (i[l] = new t()), Object.prototype.hasOwnProperty.call(i, l) ? i = i[l] : i = {}, ++n;
7823
7871
  }
7824
- return Y1(i) ? {} : {
7872
+ return F1(i) ? {} : {
7825
7873
  obj: i,
7826
- k: P1(s[n])
7874
+ k: $1(s[n])
7827
7875
  };
7828
- }, F1 = (i, e, t) => {
7876
+ }, Y1 = (i, e, t) => {
7829
7877
  const {
7830
7878
  obj: s,
7831
7879
  k: n
7832
- } = C1(i, e, Object);
7880
+ } = m1(i, e, Object);
7833
7881
  if (s !== void 0 || e.length === 1) {
7834
7882
  s[n] = t;
7835
7883
  return;
7836
7884
  }
7837
- let l = e[e.length - 1], c = e.slice(0, e.length - 1), o = C1(i, c, Object);
7885
+ let l = e[e.length - 1], c = e.slice(0, e.length - 1), o = m1(i, c, Object);
7838
7886
  for (; o.obj === void 0 && c.length; )
7839
- l = `${c[c.length - 1]}.${l}`, c = c.slice(0, c.length - 1), o = C1(i, c, Object), o && o.obj && typeof o.obj[`${o.k}.${l}`] < "u" && (o.obj = void 0);
7887
+ l = `${c[c.length - 1]}.${l}`, c = c.slice(0, c.length - 1), o = m1(i, c, Object), o && o.obj && typeof o.obj[`${o.k}.${l}`] < "u" && (o.obj = void 0);
7840
7888
  o.obj[`${o.k}.${l}`] = t;
7841
- }, y3 = (i, e, t, s) => {
7889
+ }, E3 = (i, e, t, s) => {
7842
7890
  const {
7843
7891
  obj: n,
7844
7892
  k: l
7845
- } = C1(i, e, Object);
7893
+ } = m1(i, e, Object);
7846
7894
  n[l] = n[l] || [], n[l].push(t);
7847
- }, v1 = (i, e) => {
7895
+ }, M1 = (i, e) => {
7848
7896
  const {
7849
7897
  obj: t,
7850
7898
  k: s
7851
- } = C1(i, e);
7899
+ } = m1(i, e);
7852
7900
  if (t)
7853
7901
  return t[s];
7854
- }, b3 = (i, e, t) => {
7855
- const s = v1(i, t);
7856
- return s !== void 0 ? s : v1(e, t);
7857
- }, he = (i, e, t) => {
7902
+ }, H3 = (i, e, t) => {
7903
+ const s = M1(i, t);
7904
+ return s !== void 0 ? s : M1(e, t);
7905
+ }, de = (i, e, t) => {
7858
7906
  for (const s in e)
7859
- 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]) : he(i[s], e[s], t) : i[s] = e[s]);
7907
+ 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]);
7860
7908
  return i;
7861
- }, o1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
7862
- var _3 = {
7909
+ }, h1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
7910
+ var I3 = {
7863
7911
  "&": "&amp;",
7864
7912
  "<": "&lt;",
7865
7913
  ">": "&gt;",
@@ -7867,8 +7915,8 @@ var _3 = {
7867
7915
  "'": "&#39;",
7868
7916
  "/": "&#x2F;"
7869
7917
  };
7870
- const E3 = (i) => y(i) ? i.replace(/[&<>"'\/]/g, (e) => _3[e]) : i;
7871
- class V3 {
7918
+ const O3 = (i) => y(i) ? i.replace(/[&<>"'\/]/g, (e) => I3[e]) : i;
7919
+ class S3 {
7872
7920
  constructor(e) {
7873
7921
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
7874
7922
  }
@@ -7880,18 +7928,18 @@ class V3 {
7880
7928
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
7881
7929
  }
7882
7930
  }
7883
- const H3 = [" ", ",", "?", "!", ";"], I3 = new V3(20), S3 = (i, e, t) => {
7931
+ const A3 = [" ", ",", "?", "!", ";"], B3 = new S3(20), Z3 = (i, e, t) => {
7884
7932
  e = e || "", t = t || "";
7885
- const s = H3.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
7933
+ const s = A3.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
7886
7934
  if (s.length === 0) return !0;
7887
- const n = I3.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
7935
+ const n = B3.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
7888
7936
  let l = !n.test(i);
7889
7937
  if (!l) {
7890
7938
  const c = i.indexOf(t);
7891
7939
  c > 0 && !n.test(i.substring(0, c)) && (l = !0);
7892
7940
  }
7893
7941
  return l;
7894
- }, H1 = function(i, e) {
7942
+ }, O1 = function(i, e) {
7895
7943
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
7896
7944
  if (!i) return;
7897
7945
  if (i[e]) return i[e];
@@ -7911,7 +7959,7 @@ const H3 = [" ", ",", "?", "!", ";"], I3 = new V3(20), S3 = (i, e, t) => {
7911
7959
  n = c;
7912
7960
  }
7913
7961
  return n;
7914
- }, N1 = (i) => i && i.replace("_", "-"), O3 = {
7962
+ }, R1 = (i) => i && i.replace("_", "-"), W3 = {
7915
7963
  type: "logger",
7916
7964
  log(i) {
7917
7965
  this.output("log", i);
@@ -7926,14 +7974,14 @@ const H3 = [" ", ",", "?", "!", ";"], I3 = new V3(20), S3 = (i, e, t) => {
7926
7974
  console && console[i] && console[i].apply(console, e);
7927
7975
  }
7928
7976
  };
7929
- class x1 {
7977
+ class y1 {
7930
7978
  constructor(e) {
7931
7979
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7932
7980
  this.init(e, t);
7933
7981
  }
7934
7982
  init(e) {
7935
7983
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7936
- this.prefix = t.prefix || "i18next:", this.logger = e || O3, this.options = t, this.debug = t.debug;
7984
+ this.prefix = t.prefix || "i18next:", this.logger = e || W3, this.options = t, this.debug = t.debug;
7937
7985
  }
7938
7986
  log() {
7939
7987
  for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
@@ -7959,17 +8007,17 @@ class x1 {
7959
8007
  return n && !this.debug ? null : (y(e[0]) && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
7960
8008
  }
7961
8009
  create(e) {
7962
- return new x1(this.logger, {
8010
+ return new y1(this.logger, {
7963
8011
  prefix: `${this.prefix}:${e}:`,
7964
8012
  ...this.options
7965
8013
  });
7966
8014
  }
7967
8015
  clone(e) {
7968
- return e = e || this.options, e.prefix = e.prefix || this.prefix, new x1(this.logger, e);
8016
+ return e = e || this.options, e.prefix = e.prefix || this.prefix, new y1(this.logger, e);
7969
8017
  }
7970
8018
  }
7971
- var q = new x1();
7972
- class y1 {
8019
+ var z = new y1();
8020
+ class _1 {
7973
8021
  constructor() {
7974
8022
  this.observers = {};
7975
8023
  }
@@ -8003,7 +8051,7 @@ class y1 {
8003
8051
  });
8004
8052
  }
8005
8053
  }
8006
- class $1 extends y1 {
8054
+ class U1 extends _1 {
8007
8055
  constructor(e) {
8008
8056
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
8009
8057
  ns: ["translation"],
@@ -8023,8 +8071,8 @@ class $1 extends y1 {
8023
8071
  const l = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
8024
8072
  let o;
8025
8073
  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)));
8026
- const d = v1(this.data, o);
8027
- return !d && !t && !s && e.indexOf(".") > -1 && (e = o[0], t = o[1], s = o.slice(2).join(".")), d || !c || !y(s) ? d : H1(this.data && this.data[e] && this.data[e][t], s, l);
8074
+ const d = M1(this.data, o);
8075
+ 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);
8028
8076
  }
8029
8077
  addResource(e, t, s, n) {
8030
8078
  let l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
@@ -8032,7 +8080,7 @@ class $1 extends y1 {
8032
8080
  };
8033
8081
  const c = l.keySeparator !== void 0 ? l.keySeparator : this.options.keySeparator;
8034
8082
  let o = [e, t];
8035
- s && (o = o.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (o = e.split("."), n = t, t = o[1]), this.addNamespaces(t), F1(this.data, o, n), l.silent || this.emit("added", e, t, s, n);
8083
+ s && (o = o.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (o = e.split("."), n = t, t = o[1]), this.addNamespaces(t), Y1(this.data, o, n), l.silent || this.emit("added", e, t, s, n);
8036
8084
  }
8037
8085
  addResources(e, t, s) {
8038
8086
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -8050,11 +8098,11 @@ class $1 extends y1 {
8050
8098
  skipCopy: !1
8051
8099
  }, o = [e, t];
8052
8100
  e.indexOf(".") > -1 && (o = e.split("."), n = s, s = t, t = o[1]), this.addNamespaces(t);
8053
- let d = v1(this.data, o) || {};
8054
- c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? he(d, s, l) : d = {
8101
+ let d = M1(this.data, o) || {};
8102
+ c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? de(d, s, l) : d = {
8055
8103
  ...d,
8056
8104
  ...s
8057
- }, F1(this.data, o, d), c.silent || this.emit("added", e, t, s);
8105
+ }, Y1(this.data, o, d), c.silent || this.emit("added", e, t, s);
8058
8106
  }
8059
8107
  removeResourceBundle(e, t) {
8060
8108
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -8078,7 +8126,7 @@ class $1 extends y1 {
8078
8126
  return this.data;
8079
8127
  }
8080
8128
  }
8081
- var ce = {
8129
+ var ge = {
8082
8130
  processors: {},
8083
8131
  addPostProcessor(i) {
8084
8132
  this.processors[i.name] = i;
@@ -8089,11 +8137,11 @@ var ce = {
8089
8137
  }), e;
8090
8138
  }
8091
8139
  };
8092
- const U1 = {};
8093
- class M1 extends y1 {
8140
+ const z1 = {};
8141
+ class b1 extends _1 {
8094
8142
  constructor(e) {
8095
8143
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
8096
- super(), M3(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = q.create("translator");
8144
+ super(), _3(["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");
8097
8145
  }
8098
8146
  changeLanguage(e) {
8099
8147
  e && (this.language = e);
@@ -8112,7 +8160,7 @@ class M1 extends y1 {
8112
8160
  s === void 0 && (s = ":");
8113
8161
  const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
8114
8162
  let l = t.ns || this.options.defaultNS || [];
8115
- const c = s && e.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !S3(e, s, n);
8163
+ const c = s && e.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Z3(e, s, n);
8116
8164
  if (c && !o) {
8117
8165
  const d = e.match(this.interpolator.nestingRegexp);
8118
8166
  if (d && d.length > 0)
@@ -8160,8 +8208,8 @@ class M1 extends y1 {
8160
8208
  }
8161
8209
  const h = this.resolve(e, t);
8162
8210
  let u = h && h.res;
8163
- const p = h && h.usedKey || c, k = h && h.exactUsedKey || c, x = Object.prototype.toString.apply(u), N = ["[object Number]", "[object Function]", "[object RegExp]"], V = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject, _ = !y(u) && typeof u != "boolean" && typeof u != "number";
8164
- if (b && u && _ && N.indexOf(x) < 0 && !(y(V) && Array.isArray(u))) {
8211
+ const p = h && h.usedKey || c, L = h && h.exactUsedKey || c, x = Object.prototype.toString.apply(u), v = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject, _ = !y(u) && typeof u != "boolean" && typeof u != "number";
8212
+ if (b && u && _ && v.indexOf(x) < 0 && !(y(E) && Array.isArray(u))) {
8165
8213
  if (!t.returnObjects && !this.options.returnObjects) {
8166
8214
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
8167
8215
  const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
@@ -8171,29 +8219,29 @@ class M1 extends y1 {
8171
8219
  return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
8172
8220
  }
8173
8221
  if (l) {
8174
- const f = Array.isArray(u), L = f ? [] : {}, v = f ? k : p;
8222
+ const f = Array.isArray(u), k = f ? [] : {}, N = f ? L : p;
8175
8223
  for (const w in u)
8176
8224
  if (Object.prototype.hasOwnProperty.call(u, w)) {
8177
- const O = `${v}${l}${w}`;
8178
- L[w] = this.translate(O, {
8225
+ const S = `${N}${l}${w}`;
8226
+ k[w] = this.translate(S, {
8179
8227
  ...t,
8180
8228
  joinArrays: !1,
8181
8229
  ns: o
8182
- }), L[w] === O && (L[w] = u[w]);
8230
+ }), k[w] === S && (k[w] = u[w]);
8183
8231
  }
8184
- u = L;
8232
+ u = k;
8185
8233
  }
8186
- } else if (b && y(V) && Array.isArray(u))
8187
- u = u.join(V), u && (u = this.extendTranslation(u, e, t, s));
8234
+ } else if (b && y(E) && Array.isArray(u))
8235
+ u = u.join(E), u && (u = this.extendTranslation(u, e, t, s));
8188
8236
  else {
8189
- let f = !1, L = !1;
8190
- const v = t.count !== void 0 && !y(t.count), w = M1.hasDefaultValue(t), O = v ? this.pluralResolver.getSuffix(g, t.count, t) : "", T = t.ordinal && v ? this.pluralResolver.getSuffix(g, t.count, {
8237
+ let f = !1, k = !1;
8238
+ const N = t.count !== void 0 && !y(t.count), w = b1.hasDefaultValue(t), S = N ? this.pluralResolver.getSuffix(g, t.count, t) : "", Z = t.ordinal && N ? this.pluralResolver.getSuffix(g, t.count, {
8191
8239
  ordinal: !1
8192
- }) : "", P = v && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), G = P && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${O}`] || t[`defaultValue${T}`] || t.defaultValue;
8193
- !this.isValidLookup(u) && w && (f = !0, u = G), this.isValidLookup(u) || (L = !0, u = c);
8194
- const F = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && L ? void 0 : u, $ = w && G !== u && this.options.updateMissing;
8195
- if (L || f || $) {
8196
- if (this.logger.log($ ? "updateKey" : "missingKey", g, d, c, $ ? G : u), l) {
8240
+ }) : "", K = N && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), P = K && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${S}`] || t[`defaultValue${Z}`] || t.defaultValue;
8241
+ !this.isValidLookup(u) && w && (f = !0, u = P), this.isValidLookup(u) || (k = !0, u = c);
8242
+ const H = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && k ? void 0 : u, $ = w && P !== u && this.options.updateMissing;
8243
+ if (k || f || $) {
8244
+ if (this.logger.log($ ? "updateKey" : "missingKey", g, d, c, $ ? P : u), l) {
8197
8245
  const A = this.resolve(c, {
8198
8246
  ...t,
8199
8247
  keySeparator: !1
@@ -8201,23 +8249,23 @@ class M1 extends y1 {
8201
8249
  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.");
8202
8250
  }
8203
8251
  let U = [];
8204
- const Q = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
8205
- if (this.options.saveMissingTo === "fallback" && Q && Q[0])
8206
- for (let A = 0; A < Q.length; A++)
8207
- U.push(Q[A]);
8252
+ const q = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
8253
+ if (this.options.saveMissingTo === "fallback" && q && q[0])
8254
+ for (let A = 0; A < q.length; A++)
8255
+ U.push(q[A]);
8208
8256
  else this.options.saveMissingTo === "all" ? U = this.languageUtils.toResolveHierarchy(t.lng || this.language) : U.push(t.lng || this.language);
8209
- const X = (A, W, z) => {
8210
- const J = w && z !== u ? z : F;
8211
- this.options.missingKeyHandler ? this.options.missingKeyHandler(A, d, W, J, $, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(A, d, W, J, $, t), this.emit("missingKey", A, d, W, u);
8257
+ const e1 = (A, F, D) => {
8258
+ const t1 = w && D !== u ? D : H;
8259
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(A, d, F, t1, $, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(A, d, F, t1, $, t), this.emit("missingKey", A, d, F, u);
8212
8260
  };
8213
- this.options.saveMissing && (this.options.saveMissingPlurals && v ? U.forEach((A) => {
8214
- const W = this.pluralResolver.getSuffixes(A, t);
8215
- P && t[`defaultValue${this.options.pluralSeparator}zero`] && W.indexOf(`${this.options.pluralSeparator}zero`) < 0 && W.push(`${this.options.pluralSeparator}zero`), W.forEach((z) => {
8216
- X([A], c + z, t[`defaultValue${z}`] || G);
8261
+ this.options.saveMissing && (this.options.saveMissingPlurals && N ? U.forEach((A) => {
8262
+ const F = this.pluralResolver.getSuffixes(A, t);
8263
+ K && t[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((D) => {
8264
+ e1([A], c + D, t[`defaultValue${D}`] || P);
8217
8265
  });
8218
- }) : X(U, c, G));
8266
+ }) : e1(U, c, P));
8219
8267
  }
8220
- u = this.extendTranslation(u, e, t, h, s), L && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (L || 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));
8268
+ u = this.extendTranslation(u, e, t, h, s), k && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (k || 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));
8221
8269
  }
8222
8270
  return n ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
8223
8271
  }
@@ -8253,13 +8301,13 @@ class M1 extends y1 {
8253
8301
  a < p && (s.nest = !1);
8254
8302
  }
8255
8303
  !s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
8256
- for (var u = arguments.length, p = new Array(u), k = 0; k < u; k++)
8257
- p[k] = arguments[k];
8304
+ for (var u = arguments.length, p = new Array(u), L = 0; L < u; L++)
8305
+ p[L] = arguments[L];
8258
8306
  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);
8259
8307
  }, s)), s.interpolation && this.interpolator.reset();
8260
8308
  }
8261
8309
  const o = s.postProcess || this.options.postProcess, d = y(o) ? [o] : o;
8262
- return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = ce.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
8310
+ return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = ge.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
8263
8311
  i18nResolved: {
8264
8312
  ...n,
8265
8313
  usedParams: this.getUsedParamsDetails(s)
@@ -8275,26 +8323,26 @@ class M1 extends y1 {
8275
8323
  n = a;
8276
8324
  let h = g.namespaces;
8277
8325
  this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
8278
- const u = t.count !== void 0 && !y(t.count), p = 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);
8279
- h.forEach((N) => {
8280
- this.isValidLookup(s) || (o = N, !U1[`${x[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (U1[`${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((V) => {
8326
+ const u = t.count !== void 0 && !y(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), L = 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);
8327
+ h.forEach((v) => {
8328
+ this.isValidLookup(s) || (o = v, !z1[`${x[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (z1[`${x[0]}-${v}`] = !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) => {
8281
8329
  if (this.isValidLookup(s)) return;
8282
- c = V;
8330
+ c = E;
8283
8331
  const b = [a];
8284
8332
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
8285
- this.i18nFormat.addLookupKeys(b, a, V, N, t);
8333
+ this.i18nFormat.addLookupKeys(b, a, E, v, t);
8286
8334
  else {
8287
8335
  let f;
8288
- u && (f = this.pluralResolver.getSuffix(V, t.count, t));
8289
- const L = `${this.options.pluralSeparator}zero`, v = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
8290
- if (u && (b.push(a + f), t.ordinal && f.indexOf(v) === 0 && b.push(a + f.replace(v, this.options.pluralSeparator)), p && b.push(a + L)), k) {
8336
+ u && (f = this.pluralResolver.getSuffix(E, t.count, t));
8337
+ const k = `${this.options.pluralSeparator}zero`, N = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
8338
+ 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 + k)), L) {
8291
8339
  const w = `${a}${this.options.contextSeparator}${t.context}`;
8292
- b.push(w), u && (b.push(w + f), t.ordinal && f.indexOf(v) === 0 && b.push(w + f.replace(v, this.options.pluralSeparator)), p && b.push(w + L));
8340
+ b.push(w), u && (b.push(w + f), t.ordinal && f.indexOf(N) === 0 && b.push(w + f.replace(N, this.options.pluralSeparator)), p && b.push(w + k));
8293
8341
  }
8294
8342
  }
8295
8343
  let _;
8296
8344
  for (; _ = b.pop(); )
8297
- this.isValidLookup(s) || (l = _, s = this.getResource(V, N, _, t));
8345
+ this.isValidLookup(s) || (l = _, s = this.getResource(E, v, _, t));
8298
8346
  }));
8299
8347
  });
8300
8348
  }), {
@@ -8336,18 +8384,18 @@ class M1 extends y1 {
8336
8384
  return !1;
8337
8385
  }
8338
8386
  }
8339
- const _1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
8340
- class z1 {
8387
+ const E1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
8388
+ class J1 {
8341
8389
  constructor(e) {
8342
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = q.create("languageUtils");
8390
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = z.create("languageUtils");
8343
8391
  }
8344
8392
  getScriptPartFromCode(e) {
8345
- if (e = N1(e), !e || e.indexOf("-") < 0) return null;
8393
+ if (e = R1(e), !e || e.indexOf("-") < 0) return null;
8346
8394
  const t = e.split("-");
8347
8395
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
8348
8396
  }
8349
8397
  getLanguagePartFromCode(e) {
8350
- if (e = N1(e), !e || e.indexOf("-") < 0) return e;
8398
+ if (e = R1(e), !e || e.indexOf("-") < 0) return e;
8351
8399
  const t = e.split("-");
8352
8400
  return this.formatLanguageCode(t[0]);
8353
8401
  }
@@ -8361,7 +8409,7 @@ class z1 {
8361
8409
  }
8362
8410
  const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
8363
8411
  let s = e.split("-");
8364
- return this.options.lowerCaseLng ? s = s.map((n) => n.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = _1(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = _1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = _1(s[2].toLowerCase()))), s.join("-");
8412
+ return this.options.lowerCaseLng ? s = s.map((n) => n.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = E1(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = E1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = E1(s[2].toLowerCase()))), s.join("-");
8365
8413
  }
8366
8414
  return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
8367
8415
  }
@@ -8402,7 +8450,7 @@ class z1 {
8402
8450
  }), n;
8403
8451
  }
8404
8452
  }
8405
- let A3 = [{
8453
+ let j3 = [{
8406
8454
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
8407
8455
  nr: [1, 2],
8408
8456
  fc: 1
@@ -8494,7 +8542,7 @@ let A3 = [{
8494
8542
  lngs: ["he", "iw"],
8495
8543
  nr: [1, 2, 20, 21],
8496
8544
  fc: 22
8497
- }], B3 = {
8545
+ }], D3 = {
8498
8546
  1: (i) => +(i > 1),
8499
8547
  2: (i) => +(i != 1),
8500
8548
  3: (i) => 0,
@@ -8518,28 +8566,28 @@ let A3 = [{
8518
8566
  21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
8519
8567
  22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
8520
8568
  };
8521
- const Z3 = ["v1", "v2", "v3"], W3 = ["v4"], J1 = {
8569
+ const T3 = ["v1", "v2", "v3"], G3 = ["v4"], q1 = {
8522
8570
  zero: 0,
8523
8571
  one: 1,
8524
8572
  two: 2,
8525
8573
  few: 3,
8526
8574
  many: 4,
8527
8575
  other: 5
8528
- }, j3 = () => {
8576
+ }, K3 = () => {
8529
8577
  const i = {};
8530
- return A3.forEach((e) => {
8578
+ return j3.forEach((e) => {
8531
8579
  e.lngs.forEach((t) => {
8532
8580
  i[t] = {
8533
8581
  numbers: e.nr,
8534
- plurals: B3[e.fc]
8582
+ plurals: D3[e.fc]
8535
8583
  };
8536
8584
  });
8537
8585
  }), i;
8538
8586
  };
8539
- class D3 {
8587
+ class P3 {
8540
8588
  constructor(e) {
8541
8589
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
8542
- this.languageUtils = e, this.options = t, this.logger = q.create("pluralResolver"), (!this.options.compatibilityJSON || W3.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 = j3(), this.pluralRulesCache = {};
8590
+ this.languageUtils = e, this.options = t, this.logger = z.create("pluralResolver"), (!this.options.compatibilityJSON || G3.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 = K3(), this.pluralRulesCache = {};
8543
8591
  }
8544
8592
  addRule(e, t) {
8545
8593
  this.rules[e] = t;
@@ -8550,7 +8598,7 @@ class D3 {
8550
8598
  getRule(e) {
8551
8599
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
8552
8600
  if (this.shouldUseIntlApi()) {
8553
- const s = N1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", l = JSON.stringify({
8601
+ const s = R1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", l = JSON.stringify({
8554
8602
  cleanedCode: s,
8555
8603
  type: n
8556
8604
  });
@@ -8582,7 +8630,7 @@ class D3 {
8582
8630
  getSuffixes(e) {
8583
8631
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
8584
8632
  const s = this.getRule(e, t);
8585
- return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, l) => J1[n] - J1[l]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
8633
+ return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, l) => q1[n] - q1[l]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
8586
8634
  }
8587
8635
  getSuffix(e, t) {
8588
8636
  let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -8597,17 +8645,17 @@ class D3 {
8597
8645
  return this.options.compatibilityJSON === "v1" ? n === 1 ? "" : typeof n == "number" ? `_plural_${n.toString()}` : l() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? l() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
8598
8646
  }
8599
8647
  shouldUseIntlApi() {
8600
- return !Z3.includes(this.options.compatibilityJSON);
8648
+ return !T3.includes(this.options.compatibilityJSON);
8601
8649
  }
8602
8650
  }
8603
- const q1 = function(i, e, t) {
8604
- let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l = b3(i, e, t);
8605
- return !l && n && y(t) && (l = H1(i, t, s), l === void 0 && (l = H1(e, t, s))), l;
8606
- }, E1 = (i) => i.replace(/\$/g, "$$$$");
8607
- class T3 {
8651
+ const Q1 = function(i, e, t) {
8652
+ let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l = H3(i, e, t);
8653
+ return !l && n && y(t) && (l = O1(i, t, s), l === void 0 && (l = O1(e, t, s))), l;
8654
+ }, H1 = (i) => i.replace(/\$/g, "$$$$");
8655
+ class $3 {
8608
8656
  constructor() {
8609
8657
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8610
- this.logger = q.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
8658
+ this.logger = z.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
8611
8659
  }
8612
8660
  init() {
8613
8661
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -8627,13 +8675,13 @@ class T3 {
8627
8675
  unescapePrefix: h,
8628
8676
  nestingPrefix: u,
8629
8677
  nestingPrefixEscaped: p,
8630
- nestingSuffix: k,
8678
+ nestingSuffix: L,
8631
8679
  nestingSuffixEscaped: x,
8632
- nestingOptionsSeparator: N,
8633
- maxReplaces: V,
8680
+ nestingOptionsSeparator: v,
8681
+ maxReplaces: E,
8634
8682
  alwaysFormat: b
8635
8683
  } = e.interpolation;
8636
- this.escape = t !== void 0 ? t : E3, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = l ? o1(l) : c || "{{", this.suffix = o ? o1(o) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = u ? o1(u) : p || o1("$t("), this.nestingSuffix = k ? o1(k) : x || o1(")"), this.nestingOptionsSeparator = N || ",", this.maxReplaces = V || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
8684
+ this.escape = t !== void 0 ? t : O3, 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 = L ? h1(L) : x || h1(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
8637
8685
  }
8638
8686
  reset() {
8639
8687
  this.options && this.init(this.options);
@@ -8646,15 +8694,15 @@ class T3 {
8646
8694
  let l, c, o;
8647
8695
  const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
8648
8696
  if (p.indexOf(this.formatSeparator) < 0) {
8649
- const V = q1(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
8650
- return this.alwaysFormat ? this.format(V, void 0, s, {
8697
+ const E = Q1(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
8698
+ return this.alwaysFormat ? this.format(E, void 0, s, {
8651
8699
  ...n,
8652
8700
  ...t,
8653
8701
  interpolationkey: p
8654
- }) : V;
8702
+ }) : E;
8655
8703
  }
8656
- const k = p.split(this.formatSeparator), x = k.shift().trim(), N = k.join(this.formatSeparator).trim();
8657
- return this.format(q1(t, d, x, this.options.keySeparator, this.options.ignoreJSONStructure), N, s, {
8704
+ const L = p.split(this.formatSeparator), x = L.shift().trim(), v = L.join(this.formatSeparator).trim();
8705
+ return this.format(Q1(t, d, x, this.options.keySeparator, this.options.ignoreJSONStructure), v, s, {
8658
8706
  ...n,
8659
8707
  ...t,
8660
8708
  interpolationkey: x
@@ -8664,25 +8712,25 @@ class T3 {
8664
8712
  const a = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, h = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
8665
8713
  return [{
8666
8714
  regex: this.regexpUnescape,
8667
- safeValue: (p) => E1(p)
8715
+ safeValue: (p) => H1(p)
8668
8716
  }, {
8669
8717
  regex: this.regexp,
8670
- safeValue: (p) => this.escapeValue ? E1(this.escape(p)) : E1(p)
8718
+ safeValue: (p) => this.escapeValue ? H1(this.escape(p)) : H1(p)
8671
8719
  }].forEach((p) => {
8672
8720
  for (o = 0; l = p.regex.exec(e); ) {
8673
- const k = l[1].trim();
8674
- if (c = g(k), c === void 0)
8721
+ const L = l[1].trim();
8722
+ if (c = g(L), c === void 0)
8675
8723
  if (typeof a == "function") {
8676
- const N = a(e, l, n);
8677
- c = y(N) ? N : "";
8678
- } else if (n && Object.prototype.hasOwnProperty.call(n, k))
8724
+ const v = a(e, l, n);
8725
+ c = y(v) ? v : "";
8726
+ } else if (n && Object.prototype.hasOwnProperty.call(n, L))
8679
8727
  c = "";
8680
8728
  else if (h) {
8681
8729
  c = l[0];
8682
8730
  continue;
8683
8731
  } else
8684
- this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), c = "";
8685
- else !y(c) && !this.useRawValueToEscape && (c = K1(c));
8732
+ this.logger.warn(`missed to pass in variable ${L} for interpolating ${e}`), c = "";
8733
+ else !y(c) && !this.useRawValueToEscape && (c = P1(c));
8686
8734
  const x = p.safeValue(c);
8687
8735
  if (e = e.replace(l[0], x), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= l[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
8688
8736
  break;
@@ -8697,8 +8745,8 @@ class T3 {
8697
8745
  const h = d.split(new RegExp(`${a}[ ]*{`));
8698
8746
  let u = `{${h[1]}`;
8699
8747
  d = h[0], u = this.interpolate(u, c);
8700
- const p = u.match(/'/g), k = u.match(/"/g);
8701
- (p && p.length % 2 === 0 && !k || k.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
8748
+ const p = u.match(/'/g), L = u.match(/"/g);
8749
+ (p && p.length % 2 === 0 && !L || L.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
8702
8750
  try {
8703
8751
  c = JSON.parse(u), g && (c = {
8704
8752
  ...g,
@@ -8720,7 +8768,7 @@ class T3 {
8720
8768
  n[1] = a.shift(), d = a, g = !0;
8721
8769
  }
8722
8770
  if (l = t(o.call(this, n[1].trim(), c), c), l && n[0] === e && !y(l)) return l;
8723
- y(l) || (l = K1(l)), l || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), l = ""), g && (l = d.reduce((a, h) => this.format(a, h, s.lng, {
8771
+ y(l) || (l = P1(l)), l || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), l = ""), g && (l = d.reduce((a, h) => this.format(a, h, s.lng, {
8724
8772
  ...s,
8725
8773
  interpolationkey: n[1].trim()
8726
8774
  }), l.trim())), e = e.replace(n[0], l), this.regexp.lastIndex = 0;
@@ -8728,7 +8776,7 @@ class T3 {
8728
8776
  return e;
8729
8777
  }
8730
8778
  }
8731
- const G3 = (i) => {
8779
+ const F3 = (i) => {
8732
8780
  let e = i.toLowerCase().trim();
8733
8781
  const t = {};
8734
8782
  if (i.indexOf("(") > -1) {
@@ -8746,7 +8794,7 @@ const G3 = (i) => {
8746
8794
  formatName: e,
8747
8795
  formatOptions: t
8748
8796
  };
8749
- }, l1 = (i) => {
8797
+ }, c1 = (i) => {
8750
8798
  const e = {};
8751
8799
  return (t, s, n) => {
8752
8800
  let l = n;
@@ -8756,39 +8804,39 @@ const G3 = (i) => {
8756
8804
  });
8757
8805
  const c = s + JSON.stringify(l);
8758
8806
  let o = e[c];
8759
- return o || (o = i(N1(s), n), e[c] = o), o(t);
8807
+ return o || (o = i(R1(s), n), e[c] = o), o(t);
8760
8808
  };
8761
8809
  };
8762
- class K3 {
8810
+ class Y3 {
8763
8811
  constructor() {
8764
8812
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8765
- this.logger = q.create("formatter"), this.options = e, this.formats = {
8766
- number: l1((t, s) => {
8813
+ this.logger = z.create("formatter"), this.options = e, this.formats = {
8814
+ number: c1((t, s) => {
8767
8815
  const n = new Intl.NumberFormat(t, {
8768
8816
  ...s
8769
8817
  });
8770
8818
  return (l) => n.format(l);
8771
8819
  }),
8772
- currency: l1((t, s) => {
8820
+ currency: c1((t, s) => {
8773
8821
  const n = new Intl.NumberFormat(t, {
8774
8822
  ...s,
8775
8823
  style: "currency"
8776
8824
  });
8777
8825
  return (l) => n.format(l);
8778
8826
  }),
8779
- datetime: l1((t, s) => {
8827
+ datetime: c1((t, s) => {
8780
8828
  const n = new Intl.DateTimeFormat(t, {
8781
8829
  ...s
8782
8830
  });
8783
8831
  return (l) => n.format(l);
8784
8832
  }),
8785
- relativetime: l1((t, s) => {
8833
+ relativetime: c1((t, s) => {
8786
8834
  const n = new Intl.RelativeTimeFormat(t, {
8787
8835
  ...s
8788
8836
  });
8789
8837
  return (l) => n.format(l, s.range || "day");
8790
8838
  }),
8791
- list: l1((t, s) => {
8839
+ list: c1((t, s) => {
8792
8840
  const n = new Intl.ListFormat(t, {
8793
8841
  ...s
8794
8842
  });
@@ -8806,7 +8854,7 @@ class K3 {
8806
8854
  this.formats[e.toLowerCase().trim()] = t;
8807
8855
  }
8808
8856
  addCached(e, t) {
8809
- this.formats[e.toLowerCase().trim()] = l1(t);
8857
+ this.formats[e.toLowerCase().trim()] = c1(t);
8810
8858
  }
8811
8859
  format(e, t, s) {
8812
8860
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
@@ -8819,7 +8867,7 @@ class K3 {
8819
8867
  const {
8820
8868
  formatName: g,
8821
8869
  formatOptions: a
8822
- } = G3(d);
8870
+ } = F3(d);
8823
8871
  if (this.formats[g]) {
8824
8872
  let h = o;
8825
8873
  try {
@@ -8839,13 +8887,13 @@ class K3 {
8839
8887
  }, e);
8840
8888
  }
8841
8889
  }
8842
- const P3 = (i, e) => {
8890
+ const U3 = (i, e) => {
8843
8891
  i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
8844
8892
  };
8845
- class Y3 extends y1 {
8893
+ class z3 extends _1 {
8846
8894
  constructor(e, t, s) {
8847
8895
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
8848
- super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = q.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);
8896
+ 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);
8849
8897
  }
8850
8898
  queueLoad(e, t, s, n) {
8851
8899
  const l = {}, c = {}, o = {}, d = {};
@@ -8875,7 +8923,7 @@ class Y3 extends y1 {
8875
8923
  }), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
8876
8924
  const o = {};
8877
8925
  this.queue.forEach((d) => {
8878
- y3(d.loaded, [l], c), P3(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
8926
+ E3(d.loaded, [l], c), U3(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
8879
8927
  o[g] || (o[g] = {});
8880
8928
  const a = d.loaded[g];
8881
8929
  a.length && a.forEach((h) => {
@@ -8977,7 +9025,7 @@ class Y3 extends y1 {
8977
9025
  }
8978
9026
  }
8979
9027
  }
8980
- const Q1 = () => ({
9028
+ const X1 = () => ({
8981
9029
  debug: !1,
8982
9030
  initImmediate: !0,
8983
9031
  ns: ["translation"],
@@ -9033,18 +9081,18 @@ const Q1 = () => ({
9033
9081
  maxReplaces: 1e3,
9034
9082
  skipOnVariables: !0
9035
9083
  }
9036
- }), X1 = (i) => (y(i.ns) && (i.ns = [i.ns]), y(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), y(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), k1 = () => {
9037
- }, F3 = (i) => {
9084
+ }), ee = (i) => (y(i.ns) && (i.ns = [i.ns]), y(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), y(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), x1 = () => {
9085
+ }, J3 = (i) => {
9038
9086
  Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
9039
9087
  typeof i[t] == "function" && (i[t] = i[t].bind(i));
9040
9088
  });
9041
9089
  };
9042
- class u1 extends y1 {
9090
+ class k1 extends _1 {
9043
9091
  constructor() {
9044
9092
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
9045
- if (super(), this.options = X1(e), this.services = {}, this.logger = q, this.modules = {
9093
+ if (super(), this.options = ee(e), this.services = {}, this.logger = z, this.modules = {
9046
9094
  external: []
9047
- }, F3(this), t && !this.isInitialized && !e.isClone) {
9095
+ }, J3(this), t && !this.isInitialized && !e.isClone) {
9048
9096
  if (!this.options.initImmediate)
9049
9097
  return this.init(e, t), this;
9050
9098
  setTimeout(() => {
@@ -9056,42 +9104,42 @@ class u1 extends y1 {
9056
9104
  var e = this;
9057
9105
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
9058
9106
  this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (y(t.ns) ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
9059
- const n = Q1();
9107
+ const n = X1();
9060
9108
  this.options = {
9061
9109
  ...n,
9062
9110
  ...this.options,
9063
- ...X1(t)
9111
+ ...ee(t)
9064
9112
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
9065
9113
  ...n.interpolation,
9066
9114
  ...this.options.interpolation
9067
9115
  }), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
9068
9116
  const l = (a) => a ? typeof a == "function" ? new a() : a : null;
9069
9117
  if (!this.options.isClone) {
9070
- this.modules.logger ? q.init(l(this.modules.logger), this.options) : q.init(null, this.options);
9118
+ this.modules.logger ? z.init(l(this.modules.logger), this.options) : z.init(null, this.options);
9071
9119
  let a;
9072
- this.modules.formatter ? a = this.modules.formatter : typeof Intl < "u" && (a = K3);
9073
- const h = new z1(this.options);
9074
- this.store = new $1(this.options.resources, this.options);
9120
+ this.modules.formatter ? a = this.modules.formatter : typeof Intl < "u" && (a = Y3);
9121
+ const h = new J1(this.options);
9122
+ this.store = new U1(this.options.resources, this.options);
9075
9123
  const u = this.services;
9076
- u.logger = q, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new D3(h, {
9124
+ u.logger = z, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new P3(h, {
9077
9125
  prepend: this.options.pluralSeparator,
9078
9126
  compatibilityJSON: this.options.compatibilityJSON,
9079
9127
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
9080
- }), 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 T3(this.options), u.utils = {
9128
+ }), 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 $3(this.options), u.utils = {
9081
9129
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
9082
- }, u.backendConnector = new Y3(l(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
9083
- for (var k = arguments.length, x = new Array(k > 1 ? k - 1 : 0), N = 1; N < k; N++)
9084
- x[N - 1] = arguments[N];
9130
+ }, u.backendConnector = new z3(l(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
9131
+ for (var L = arguments.length, x = new Array(L > 1 ? L - 1 : 0), v = 1; v < L; v++)
9132
+ x[v - 1] = arguments[v];
9085
9133
  e.emit(p, ...x);
9086
- }), 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 M1(this.services, this.options), this.translator.on("*", function(p) {
9087
- for (var k = arguments.length, x = new Array(k > 1 ? k - 1 : 0), N = 1; N < k; N++)
9088
- x[N - 1] = arguments[N];
9134
+ }), 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) {
9135
+ for (var L = arguments.length, x = new Array(L > 1 ? L - 1 : 0), v = 1; v < L; v++)
9136
+ x[v - 1] = arguments[v];
9089
9137
  e.emit(p, ...x);
9090
9138
  }), this.modules.external.forEach((p) => {
9091
9139
  p.init && p.init(this);
9092
9140
  });
9093
9141
  }
9094
- if (this.format = this.options.interpolation.format, s || (s = k1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
9142
+ if (this.format = this.options.interpolation.format, s || (s = x1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
9095
9143
  const a = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
9096
9144
  a.length > 0 && a[0] !== "dev" && (this.options.lng = a[0]);
9097
9145
  }
@@ -9104,7 +9152,7 @@ class u1 extends y1 {
9104
9152
  return e.store[a](...arguments), e;
9105
9153
  };
9106
9154
  });
9107
- const d = d1(), g = () => {
9155
+ const d = p1(), g = () => {
9108
9156
  const a = (h, u) => {
9109
9157
  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), d.resolve(u), s(h, u);
9110
9158
  };
@@ -9114,7 +9162,7 @@ class u1 extends y1 {
9114
9162
  return this.options.resources || !this.options.initImmediate ? g() : setTimeout(g, 0), d;
9115
9163
  }
9116
9164
  loadResources(e) {
9117
- let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : k1;
9165
+ let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : x1;
9118
9166
  const n = y(e) ? e : this.language;
9119
9167
  if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
9120
9168
  if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
@@ -9131,15 +9179,15 @@ class u1 extends y1 {
9131
9179
  s(null);
9132
9180
  }
9133
9181
  reloadResources(e, t, s) {
9134
- const n = d1();
9135
- return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = k1), this.services.backendConnector.reload(e, t, (l) => {
9182
+ const n = p1();
9183
+ return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = x1), this.services.backendConnector.reload(e, t, (l) => {
9136
9184
  n.resolve(), s(l);
9137
9185
  }), n;
9138
9186
  }
9139
9187
  use(e) {
9140
9188
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
9141
9189
  if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
9142
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && ce.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
9190
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && ge.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
9143
9191
  }
9144
9192
  setResolvedLanguage(e) {
9145
9193
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
@@ -9154,7 +9202,7 @@ class u1 extends y1 {
9154
9202
  changeLanguage(e, t) {
9155
9203
  var s = this;
9156
9204
  this.isLanguageChangingTo = e;
9157
- const n = d1();
9205
+ const n = p1();
9158
9206
  this.emit("languageChanging", e);
9159
9207
  const l = (d) => {
9160
9208
  this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
@@ -9188,7 +9236,7 @@ class u1 extends y1 {
9188
9236
  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);
9189
9237
  const u = n.options.keySeparator || ".";
9190
9238
  let p;
9191
- return d.keyPrefix && Array.isArray(c) ? p = c.map((k) => `${d.keyPrefix}${u}${k}`) : p = d.keyPrefix ? `${d.keyPrefix}${u}${c}` : c, n.t(p, d);
9239
+ return d.keyPrefix && Array.isArray(c) ? p = c.map((L) => `${d.keyPrefix}${u}${L}`) : p = d.keyPrefix ? `${d.keyPrefix}${u}${c}` : c, n.t(p, d);
9192
9240
  };
9193
9241
  return y(e) ? l.lng = e : l.lngs = e, l.ns = t, l.keyPrefix = s, l;
9194
9242
  }
@@ -9220,7 +9268,7 @@ class u1 extends y1 {
9220
9268
  return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!n || c(l, e)));
9221
9269
  }
9222
9270
  loadNamespaces(e, t) {
9223
- const s = d1();
9271
+ const s = p1();
9224
9272
  return this.options.ns ? (y(e) && (e = [e]), e.forEach((n) => {
9225
9273
  this.options.ns.indexOf(n) < 0 && this.options.ns.push(n);
9226
9274
  }), this.loadResources((n) => {
@@ -9228,7 +9276,7 @@ class u1 extends y1 {
9228
9276
  }), s) : (t && t(), Promise.resolve());
9229
9277
  }
9230
9278
  loadLanguages(e, t) {
9231
- const s = d1();
9279
+ const s = p1();
9232
9280
  y(e) && (e = [e]);
9233
9281
  const n = this.options.preload || [], l = e.filter((c) => n.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
9234
9282
  return l.length ? (this.options.preload = n.concat(l), this.loadResources((c) => {
@@ -9237,29 +9285,29 @@ class u1 extends y1 {
9237
9285
  }
9238
9286
  dir(e) {
9239
9287
  if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
9240
- const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new z1(Q1());
9288
+ const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new J1(X1());
9241
9289
  return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
9242
9290
  }
9243
9291
  static createInstance() {
9244
9292
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
9245
- return new u1(e, t);
9293
+ return new k1(e, t);
9246
9294
  }
9247
9295
  cloneInstance() {
9248
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : k1;
9296
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : x1;
9249
9297
  const s = e.forkResourceStore;
9250
9298
  s && delete e.forkResourceStore;
9251
9299
  const n = {
9252
9300
  ...this.options,
9253
9301
  ...e,
9254
9302
  isClone: !0
9255
- }, l = new u1(n);
9303
+ }, l = new k1(n);
9256
9304
  return (e.debug !== void 0 || e.prefix !== void 0) && (l.logger = l.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
9257
9305
  l[o] = this[o];
9258
9306
  }), l.services = {
9259
9307
  ...this.services
9260
9308
  }, l.services.utils = {
9261
9309
  hasLoadedNamespace: l.hasLoadedNamespace.bind(l)
9262
- }, s && (l.store = new $1(this.store.data, n), l.services.resourceStore = l.store), l.translator = new M1(l.services, n), l.translator.on("*", function(o) {
9310
+ }, s && (l.store = new U1(this.store.data, n), l.services.resourceStore = l.store), l.translator = new b1(l.services, n), l.translator.on("*", function(o) {
9263
9311
  for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), a = 1; a < d; a++)
9264
9312
  g[a - 1] = arguments[a];
9265
9313
  l.emit(o, ...g);
@@ -9277,36 +9325,36 @@ class u1 extends y1 {
9277
9325
  };
9278
9326
  }
9279
9327
  }
9280
- const D = u1.createInstance();
9281
- D.createInstance = u1.createInstance;
9282
- D.createInstance;
9283
- D.dir;
9284
- D.init;
9285
- D.loadResources;
9286
- D.reloadResources;
9287
- D.use;
9288
- D.changeLanguage;
9289
- D.getFixedT;
9290
- D.t;
9291
- D.exists;
9292
- D.setDefaultNamespace;
9293
- D.hasLoadedNamespace;
9294
- D.loadNamespaces;
9295
- D.loadLanguages;
9296
- function $3() {
9328
+ const j = k1.createInstance();
9329
+ j.createInstance = k1.createInstance;
9330
+ j.createInstance;
9331
+ j.dir;
9332
+ j.init;
9333
+ j.loadResources;
9334
+ j.reloadResources;
9335
+ j.use;
9336
+ j.changeLanguage;
9337
+ j.getFixedT;
9338
+ j.t;
9339
+ j.exists;
9340
+ j.setDefaultNamespace;
9341
+ j.hasLoadedNamespace;
9342
+ j.loadNamespaces;
9343
+ j.loadLanguages;
9344
+ function q3() {
9297
9345
  if (console && console.warn) {
9298
9346
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
9299
9347
  e[t] = arguments[t];
9300
- i1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
9348
+ r1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
9301
9349
  }
9302
9350
  }
9303
- const ee = {};
9304
- function I1() {
9351
+ const te = {};
9352
+ function S1() {
9305
9353
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
9306
9354
  e[t] = arguments[t];
9307
- i1(e[0]) && ee[e[0]] || (i1(e[0]) && (ee[e[0]] = /* @__PURE__ */ new Date()), $3(...e));
9355
+ r1(e[0]) && te[e[0]] || (r1(e[0]) && (te[e[0]] = /* @__PURE__ */ new Date()), q3(...e));
9308
9356
  }
9309
- const de = (i, e) => () => {
9357
+ const Ce = (i, e) => () => {
9310
9358
  if (i.isInitialized)
9311
9359
  e();
9312
9360
  else {
@@ -9317,13 +9365,13 @@ const de = (i, e) => () => {
9317
9365
  };
9318
9366
  i.on("initialized", t);
9319
9367
  }
9320
- }, te = (i, e, t) => {
9321
- i.loadNamespaces(e, de(i, t));
9322
- }, ie = (i, e, t, s) => {
9323
- i1(t) && (t = [t]), t.forEach((n) => {
9368
+ }, ie = (i, e, t) => {
9369
+ i.loadNamespaces(e, Ce(i, t));
9370
+ }, se = (i, e, t, s) => {
9371
+ r1(t) && (t = [t]), t.forEach((n) => {
9324
9372
  i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
9325
- }), i.loadLanguages(e, de(i, s));
9326
- }, U3 = function(i, e) {
9373
+ }), i.loadLanguages(e, Ce(i, s));
9374
+ }, Q3 = function(i, e) {
9327
9375
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
9328
9376
  const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, l = e.languages[e.languages.length - 1];
9329
9377
  if (s.toLowerCase() === "cimode") return !0;
@@ -9332,15 +9380,15 @@ const de = (i, e) => () => {
9332
9380
  return g === -1 || g === 2;
9333
9381
  };
9334
9382
  return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(l, i)));
9335
- }, z3 = function(i, e) {
9383
+ }, X3 = function(i, e) {
9336
9384
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
9337
- return !e.languages || !e.languages.length ? (I1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
9385
+ return !e.languages || !e.languages.length ? (S1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
9338
9386
  lng: t.lng,
9339
9387
  precheck: (n, l) => {
9340
9388
  if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !l(n.isLanguageChangingTo, i)) return !1;
9341
9389
  }
9342
- }) : U3(i, e, t);
9343
- }, i1 = (i) => typeof i == "string", J3 = (i) => typeof i == "object" && i !== null, q3 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Q3 = {
9390
+ }) : Q3(i, e, t);
9391
+ }, r1 = (i) => typeof i == "string", e0 = (i) => typeof i == "object" && i !== null, t0 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, i0 = {
9344
9392
  "&amp;": "&",
9345
9393
  "&#38;": "&",
9346
9394
  "&lt;": "<",
@@ -9361,8 +9409,8 @@ const de = (i, e) => () => {
9361
9409
  "&#8230;": "…",
9362
9410
  "&#x2F;": "/",
9363
9411
  "&#47;": "/"
9364
- }, X3 = (i) => Q3[i], e0 = (i) => i.replace(q3, X3);
9365
- let S1 = {
9412
+ }, s0 = (i) => i0[i], n0 = (i) => i.replace(t0, s0);
9413
+ let A1 = {
9366
9414
  bindI18n: "languageChanged",
9367
9415
  bindI18nStore: "",
9368
9416
  transEmptyNodeValue: "",
@@ -9370,27 +9418,27 @@ let S1 = {
9370
9418
  transWrapTextNodes: "",
9371
9419
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
9372
9420
  useSuspense: !0,
9373
- unescape: e0
9421
+ unescape: n0
9374
9422
  };
9375
- const t0 = function() {
9423
+ const r0 = function() {
9376
9424
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9377
- S1 = {
9378
- ...S1,
9425
+ A1 = {
9426
+ ...A1,
9379
9427
  ...i
9380
9428
  };
9381
- }, i0 = () => S1;
9382
- let ge;
9383
- const s0 = (i) => {
9384
- ge = i;
9385
- }, n0 = () => ge, r0 = {
9429
+ }, o0 = () => A1;
9430
+ let ue;
9431
+ const l0 = (i) => {
9432
+ ue = i;
9433
+ }, a0 = () => ue, h0 = {
9386
9434
  type: "3rdParty",
9387
9435
  init(i) {
9388
- t0(i.options.react), s0(i);
9436
+ r0(i.options.react), l0(i);
9389
9437
  }
9390
- }, o0 = h1();
9391
- class l0 {
9438
+ }, c0 = d1();
9439
+ class d0 {
9392
9440
  constructor() {
9393
- B1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
9441
+ Z1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
9394
9442
  this.usedNamespaces = {};
9395
9443
  }
9396
9444
  addUsedNamespaces(e) {
@@ -9399,27 +9447,27 @@ class l0 {
9399
9447
  });
9400
9448
  }
9401
9449
  }
9402
- const a0 = (i, e) => {
9450
+ const g0 = (i, e) => {
9403
9451
  const t = Y();
9404
9452
  return B(() => {
9405
9453
  t.current = i;
9406
9454
  }, [i, e]), t.current;
9407
- }, Ce = (i, e, t, s) => i.getFixedT(e, t, s), h0 = (i, e, t, s) => j(Ce(i, e, t, s), [i, e, t, s]), c0 = function(i) {
9455
+ }, pe = (i, e, t, s) => i.getFixedT(e, t, s), C0 = (i, e, t, s) => W(pe(i, e, t, s), [i, e, t, s]), u0 = function(i) {
9408
9456
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
9409
9457
  const {
9410
9458
  i18n: t
9411
9459
  } = e, {
9412
9460
  i18n: s,
9413
9461
  defaultNS: n
9414
- } = s1(o0) || {}, l = t || s || n0();
9415
- if (l && !l.reportNamespaces && (l.reportNamespaces = new l0()), !l) {
9416
- I1("You will need to pass in an i18next instance by using initReactI18next");
9417
- const f = (v, w) => i1(w) ? w : J3(w) && i1(w.defaultValue) ? w.defaultValue : Array.isArray(v) ? v[v.length - 1] : v, L = [f, {}, !1];
9418
- return L.t = f, L.i18n = {}, L.ready = !1, L;
9462
+ } = o1(c0) || {}, l = t || s || a0();
9463
+ if (l && !l.reportNamespaces && (l.reportNamespaces = new d0()), !l) {
9464
+ S1("You will need to pass in an i18next instance by using initReactI18next");
9465
+ const f = (N, w) => r1(w) ? w : e0(w) && r1(w.defaultValue) ? w.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, k = [f, {}, !1];
9466
+ return k.t = f, k.i18n = {}, k.ready = !1, k;
9419
9467
  }
9420
- 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.");
9468
+ 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.");
9421
9469
  const c = {
9422
- ...i0(),
9470
+ ...o0(),
9423
9471
  ...l.options.react,
9424
9472
  ...e
9425
9473
  }, {
@@ -9427,73 +9475,73 @@ const a0 = (i, e) => {
9427
9475
  keyPrefix: d
9428
9476
  } = c;
9429
9477
  let g = i;
9430
- g = i1(g) ? [g] : g || ["translation"], l.reportNamespaces.addUsedNamespaces && l.reportNamespaces.addUsedNamespaces(g);
9431
- const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => z3(f, l, c)), h = h0(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => Ce(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [k, x] = S(u);
9432
- let N = g.join();
9433
- e.lng && (N = `${e.lng}${N}`);
9434
- const V = a0(N), b = Y(!0);
9478
+ g = r1(g) ? [g] : g || ["translation"], l.reportNamespaces.addUsedNamespaces && l.reportNamespaces.addUsedNamespaces(g);
9479
+ const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => X3(f, l, c)), h = C0(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), [L, x] = O(u);
9480
+ let v = g.join();
9481
+ e.lng && (v = `${e.lng}${v}`);
9482
+ const E = g0(v), b = Y(!0);
9435
9483
  B(() => {
9436
9484
  const {
9437
9485
  bindI18n: f,
9438
- bindI18nStore: L
9486
+ bindI18nStore: k
9439
9487
  } = c;
9440
- b.current = !0, !a && !o && (e.lng ? ie(l, e.lng, g, () => {
9488
+ b.current = !0, !a && !o && (e.lng ? se(l, e.lng, g, () => {
9441
9489
  b.current && x(p);
9442
- }) : te(l, g, () => {
9490
+ }) : ie(l, g, () => {
9443
9491
  b.current && x(p);
9444
- })), a && V && V !== N && b.current && x(p);
9445
- const v = () => {
9492
+ })), a && E && E !== v && b.current && x(p);
9493
+ const N = () => {
9446
9494
  b.current && x(p);
9447
9495
  };
9448
- return f && l && l.on(f, v), L && l && l.store.on(L, v), () => {
9449
- b.current = !1, f && l && f.split(" ").forEach((w) => l.off(w, v)), L && l && L.split(" ").forEach((w) => l.store.off(w, v));
9496
+ return f && l && l.on(f, N), k && l && l.store.on(k, N), () => {
9497
+ b.current = !1, f && l && f.split(" ").forEach((w) => l.off(w, N)), k && l && k.split(" ").forEach((w) => l.store.off(w, N));
9450
9498
  };
9451
- }, [l, N]), B(() => {
9499
+ }, [l, v]), B(() => {
9452
9500
  b.current && a && x(u);
9453
9501
  }, [l, d, a]);
9454
- const _ = [k, l, a];
9455
- if (_.t = k, _.i18n = l, _.ready = a, a || !a && !o) return _;
9502
+ const _ = [L, l, a];
9503
+ if (_.t = L, _.i18n = l, _.ready = a, a || !a && !o) return _;
9456
9504
  throw new Promise((f) => {
9457
- e.lng ? ie(l, e.lng, g, () => f()) : te(l, g, () => f());
9505
+ e.lng ? se(l, e.lng, g, () => f()) : ie(l, g, () => f());
9458
9506
  });
9459
- }, d0 = "City", g0 = {
9460
- placeholder: d0
9461
- }, C0 = "Город", u0 = {
9462
- placeholder: C0
9507
+ }, p0 = "City", f0 = {
9508
+ placeholder: p0
9509
+ }, w0 = "Город", m0 = {
9510
+ placeholder: w0
9463
9511
  };
9464
- function p0(i) {
9512
+ function k0(i) {
9465
9513
  const e = Y(i);
9466
9514
  return B(() => {
9467
9515
  e.current = i;
9468
9516
  }, [i]), e.current;
9469
9517
  }
9470
- D.use(r0).init({
9518
+ j.use(h0).init({
9471
9519
  defaultNS: "common",
9472
9520
  lng: "en",
9473
9521
  resources: {
9474
9522
  en: {
9475
- common: g0
9523
+ common: f0
9476
9524
  },
9477
9525
  ru: {
9478
- common: u0
9526
+ common: m0
9479
9527
  }
9480
9528
  }
9481
9529
  });
9482
- const N0 = R1(
9530
+ const y0 = L1(
9483
9531
  ({ width: i, selectedCountry: e, onChange: t, value: s, id: n, disabled: l }, c) => {
9484
- const [o, d] = S(
9532
+ const [o, d] = O(
9485
9533
  []
9486
- ), [g, a] = S(!1), { locale: h, axiosPeople: u } = s1(we), p = Y(!1), k = Y(null), x = Y(o), N = p0(e);
9534
+ ), [g, a] = O(!1), { locale: h, axiosPeople: u } = o1(me), p = Y(!1), L = Y(null), x = Y(o), v = k0(e);
9487
9535
  if (!u)
9488
9536
  throw new Error(
9489
9537
  `CitySelect requires "axiosPeople" to fetch cities.
9490
9538
  Please provide it via SNMTUiContext.`
9491
9539
  );
9492
- const { t: V } = c0("common", { lng: h }), b = j(
9540
+ const { t: E } = u0("common", { lng: h }), b = W(
9493
9541
  async (f) => {
9494
- const L = x.current.find((v) => v.value === f);
9495
- if (L)
9496
- return [L];
9542
+ const k = x.current.find((N) => N.value === f);
9543
+ if (k)
9544
+ return [k];
9497
9545
  try {
9498
9546
  const w = (await u.post("v1/cities/search", {
9499
9547
  filters: {
@@ -9503,13 +9551,13 @@ const N0 = R1(
9503
9551
  })).data.data;
9504
9552
  if (!w.length)
9505
9553
  return t(null), [];
9506
- const O = {
9554
+ const S = {
9507
9555
  value: w[0].geoNameId,
9508
9556
  label: w[0].name
9509
9557
  };
9510
- return x.current = [...x.current, O], [O];
9511
- } catch (v) {
9512
- return console.error("CitySelect. fetchSelectedItems error", v), [];
9558
+ return x.current = [...x.current, S], [S];
9559
+ } catch (N) {
9560
+ return console.error("CitySelect. fetchSelectedItems error", N), [];
9513
9561
  }
9514
9562
  },
9515
9563
  [u, e, t]
@@ -9517,34 +9565,34 @@ const N0 = R1(
9517
9565
  B(() => {
9518
9566
  (async () => {
9519
9567
  if (!s) return;
9520
- const L = await b(s);
9521
- d(L);
9568
+ const k = await b(s);
9569
+ d(k);
9522
9570
  })();
9523
9571
  }, []), B(() => {
9524
9572
  var f;
9525
- N !== e ? p.current && (t(null), d([]), x.current = [], (f = k.current) == null || f.refetchOptions()) : p.current = !0;
9526
- }, [e, t, N]);
9527
- const _ = j(
9573
+ v !== e ? p.current && (t(null), d([]), x.current = [], (f = L.current) == null || f.refetchOptions()) : p.current = !0;
9574
+ }, [e, t, v]);
9575
+ const _ = W(
9528
9576
  async ({
9529
9577
  limit: f,
9530
- offset: L,
9531
- search: v
9578
+ offset: k,
9579
+ search: N
9532
9580
  }) => {
9533
9581
  try {
9534
9582
  a(!0);
9535
9583
  const w = {
9536
- offset: L,
9584
+ offset: k,
9537
9585
  limit: f,
9538
9586
  includeCount: !0
9539
9587
  };
9540
- w.filters = {}, e && e.length > 0 && (w.filters.countryId = [e]), v && (w.search = v);
9541
- const O = await u.post("v1/cities/search", w), T = (O == null ? void 0 : O.data.data) || [], P = O == null ? void 0 : O.data.metadata.count;
9588
+ w.filters = {}, e && e.length > 0 && (w.filters.countryId = [e]), N && (w.search = N);
9589
+ const S = await u.post("v1/cities/search", w), Z = (S == null ? void 0 : S.data.data) || [], K = S == null ? void 0 : S.data.metadata.count;
9542
9590
  return {
9543
- options: T.map((Z) => ({
9544
- value: Z.geoNameId,
9545
- label: Z.name
9591
+ options: Z.map((J) => ({
9592
+ value: J.geoNameId,
9593
+ label: J.name
9546
9594
  })),
9547
- count: P,
9595
+ count: K,
9548
9596
  limit: f
9549
9597
  };
9550
9598
  } catch (w) {
@@ -9559,16 +9607,16 @@ const N0 = R1(
9559
9607
  },
9560
9608
  [u, e]
9561
9609
  );
9562
- return se(c, () => k.current), /* @__PURE__ */ r("div", { className: "snmt-city-select", children: /* @__PURE__ */ r(
9563
- x3,
9610
+ return ne(c, () => L.current), /* @__PURE__ */ r("div", { className: "snmt-city-select", children: /* @__PURE__ */ r(
9611
+ b3,
9564
9612
  {
9565
9613
  id: n,
9566
9614
  width: i,
9567
9615
  value: g && s ? null : s,
9568
9616
  onChange: t,
9569
- ref: k,
9617
+ ref: L,
9570
9618
  search: !0,
9571
- placeholder: V("placeholder"),
9619
+ placeholder: E("placeholder"),
9572
9620
  disabled: l,
9573
9621
  loadOptions: _,
9574
9622
  preloadOptions: !0,
@@ -9579,5 +9627,5 @@ const N0 = R1(
9579
9627
  }
9580
9628
  );
9581
9629
  export {
9582
- N0 as CitySelect
9630
+ y0 as CitySelect
9583
9631
  };