@snmt-react-ui/city-select 2.6.15 → 2.6.16

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 me = Object.defineProperty;
2
- var we = (i, e, t) => e in i ? me(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var B1 = (i, e, t) => we(i, typeof e != "symbol" ? e + "" : e, t);
1
+ var we = Object.defineProperty;
2
+ var ke = (i, e, t) => e in i ? we(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var j1 = (i, e, t) => ke(i, typeof e != "symbol" ? e + "" : e, t);
4
4
  import "./index.css";
5
5
  import { jsx as r, Fragment as i1, jsxs as C } from "react/jsx-runtime";
6
- import { SNMTUiContext as ke } from "@snmt-react-ui/core";
7
- import { createContext as d1, forwardRef as k1, useState as A, useRef as Y, useEffect as j, useCallback as Z, useMemo as Le, useImperativeHandle as ne, useContext as r1 } from "react";
8
- import { Select as ve, Flex as Ne, Avatar as xe, Checkbox as Re, Typography as re, Tag as Me, Popover as ye } from "antd";
9
- var be = Object.defineProperty, Ee = (i, e, t) => e in i ? be(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, _e = (i, e, t) => Ee(i, e + "", t), He = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
- function Ie() {
6
+ import { SNMTUiContext as Le } from "@snmt-react-ui/core";
7
+ import { createContext as d1, forwardRef as k1, useRef as Y, useImperativeHandle as E1, useState as V, useEffect as T, useCallback as Z, useMemo as ve, useContext as r1 } from "react";
8
+ import { Select as Ne, Flex as xe, Avatar as Re, Checkbox as Me, Tooltip as re, Typography as oe, Tag as be, Popover as ye } from "antd";
9
+ var Ee = Object.defineProperty, _e = (i, e, t) => e in i ? Ee(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, He = (i, e, t) => _e(i, e + "", t), Ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
+ function Oe() {
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
14
  s1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
15
15
  }
16
16
  }
17
- const j1 = {};
18
- function O1() {
17
+ const D1 = {};
18
+ function S1() {
19
19
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
20
20
  e[t] = arguments[t];
21
- s1(e[0]) && j1[e[0]] || (s1(e[0]) && (j1[e[0]] = /* @__PURE__ */ new Date()), Ie(...e));
21
+ s1(e[0]) && D1[e[0]] || (s1(e[0]) && (D1[e[0]] = /* @__PURE__ */ new Date()), Oe(...e));
22
22
  }
23
- const oe = (i, e) => () => {
23
+ const ae = (i, e) => () => {
24
24
  if (i.isInitialized)
25
25
  e();
26
26
  else {
@@ -31,30 +31,30 @@ const oe = (i, e) => () => {
31
31
  };
32
32
  i.on("initialized", t);
33
33
  }
34
- }, D1 = (i, e, t) => {
35
- i.loadNamespaces(e, oe(i, t));
36
- }, Z1 = (i, e, t, s) => {
34
+ }, Z1 = (i, e, t) => {
35
+ i.loadNamespaces(e, ae(i, t));
36
+ }, W1 = (i, e, t, s) => {
37
37
  s1(t) && (t = [t]), t.forEach((n) => {
38
38
  i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
39
- }), i.loadLanguages(e, oe(i, s));
40
- }, Oe = function(i, e) {
39
+ }), i.loadLanguages(e, ae(i, s));
40
+ }, Se = 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, o = e.languages[e.languages.length - 1];
43
43
  if (s.toLowerCase() === "cimode") return !0;
44
- const c = (a, d) => {
45
- const g = e.services.backendConnector.state[`${a}|${d}`];
46
- return g === -1 || g === 2;
44
+ const h = (a, u) => {
45
+ const d = e.services.backendConnector.state[`${a}|${u}`];
46
+ return d === -1 || d === 2;
47
47
  };
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(o, i)));
49
- }, Se = function(i, e) {
48
+ return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(s, i) && (!n || h(o, i)));
49
+ }, Ve = function(i, e) {
50
50
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
51
- return !e.languages || !e.languages.length ? (O1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
51
+ return !e.languages || !e.languages.length ? (S1("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
- }) : Oe(i, e, t);
57
- }, s1 = (i) => typeof i == "string", Ve = (i) => typeof i == "object" && i !== null, Ae = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Te = {
56
+ }) : Se(i, e, t);
57
+ }, s1 = (i) => typeof i == "string", Ae = (i) => typeof i == "object" && i !== null, Te = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Be = {
58
58
  "&amp;": "&",
59
59
  "&#38;": "&",
60
60
  "&lt;": "<",
@@ -75,8 +75,8 @@ const oe = (i, e) => () => {
75
75
  "&#8230;": "…",
76
76
  "&#x2F;": "/",
77
77
  "&#47;": "/"
78
- }, Be = (i) => Te[i], je = (i) => i.replace(Ae, Be);
79
- let De = {
78
+ }, je = (i) => Be[i], De = (i) => i.replace(Te, je);
79
+ let Ze = {
80
80
  bindI18n: "languageChanged",
81
81
  bindI18nStore: "",
82
82
  transEmptyNodeValue: "",
@@ -84,14 +84,14 @@ let De = {
84
84
  transWrapTextNodes: "",
85
85
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
86
86
  useSuspense: !0,
87
- unescape: je
87
+ unescape: De
88
88
  };
89
- const Ze = () => De;
90
- let We;
91
- const Ge = () => We, Ke = d1();
92
- class Pe {
89
+ const We = () => Ze;
90
+ let Ge;
91
+ const Ke = () => Ge, Pe = d1();
92
+ class $e {
93
93
  constructor() {
94
- _e(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
94
+ He(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
95
95
  }
96
96
  addUsedNamespaces(e) {
97
97
  e.forEach((t) => {
@@ -99,62 +99,62 @@ class Pe {
99
99
  });
100
100
  }
101
101
  }
102
- const $e = (i, e) => {
102
+ const Fe = (i, e) => {
103
103
  const t = Y();
104
- return j(() => {
104
+ return T(() => {
105
105
  t.current = i;
106
106
  }, [i, e]), t.current;
107
- }, ae = (i, e, t, s) => i.getFixedT(e, t, s), Fe = (i, e, t, s) => Z(ae(i, e, t, s), [i, e, t, s]), Ye = function(i) {
107
+ }, le = (i, e, t, s) => i.getFixedT(e, t, s), Ye = (i, e, t, s) => Z(le(i, e, t, s), [i, e, t, s]), Ue = 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
- } = r1(Ke) || {}, o = t || s || Ge();
115
- if (o && !o.reportNamespaces && (o.reportNamespaces = new Pe()), !o) {
116
- O1("You will need to pass in an i18next instance by using initReactI18next");
117
- const f = (N, w) => s1(w) ? w : Ve(w) && s1(w.defaultValue) ? w.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, m = [f, {}, !1];
118
- return m.t = f, m.i18n = {}, m.ready = !1, m;
119
- }
120
- o.options.react && o.options.react.wait !== void 0 && O1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
121
- const c = {
122
- ...Ze(),
114
+ } = r1(Pe) || {}, o = t || s || Ke();
115
+ if (o && !o.reportNamespaces && (o.reportNamespaces = new $e()), !o) {
116
+ S1("You will need to pass in an i18next instance by using initReactI18next");
117
+ const f = (x, L) => s1(L) ? L : Ae(L) && s1(L.defaultValue) ? L.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, k = [f, {}, !1];
118
+ return k.t = f, k.i18n = {}, k.ready = !1, k;
119
+ }
120
+ o.options.react && o.options.react.wait !== void 0 && S1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
121
+ const h = {
122
+ ...We(),
123
123
  ...o.options.react,
124
124
  ...e
125
125
  }, {
126
126
  useSuspense: a,
127
- keyPrefix: d
128
- } = c;
129
- let g = i;
130
- g = s1(g) ? [g] : g || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(g);
131
- const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) => Se(f, o, c)), h = Fe(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => ae(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [v, x] = A(u);
132
- let L = g.join();
133
- e.lng && (L = `${e.lng}${L}`);
134
- const _ = $e(L), M = Y(!0);
135
- j(() => {
127
+ keyPrefix: u
128
+ } = h;
129
+ let d = i;
130
+ d = s1(d) ? [d] : d || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(d);
131
+ const l = (o.isInitialized || o.initializedStoreOnce) && d.every((f) => Ve(f, o, h)), c = Ye(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], u), g = () => c, p = () => le(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], u), [m, v] = V(g);
132
+ let w = d.join();
133
+ e.lng && (w = `${e.lng}${w}`);
134
+ const y = Fe(w), M = Y(!0);
135
+ T(() => {
136
136
  const {
137
137
  bindI18n: f,
138
- bindI18nStore: m
139
- } = c;
140
- M.current = !0, !l && !a && (e.lng ? Z1(o, e.lng, g, () => {
141
- M.current && x(p);
142
- }) : D1(o, g, () => {
143
- M.current && x(p);
144
- })), l && _ && _ !== L && M.current && x(p);
145
- const N = () => {
146
- M.current && x(p);
138
+ bindI18nStore: k
139
+ } = h;
140
+ M.current = !0, !l && !a && (e.lng ? W1(o, e.lng, d, () => {
141
+ M.current && v(p);
142
+ }) : Z1(o, d, () => {
143
+ M.current && v(p);
144
+ })), l && y && y !== w && M.current && v(p);
145
+ const x = () => {
146
+ M.current && v(p);
147
147
  };
148
- return f && o && o.on(f, N), m && o && o.store.on(m, N), () => {
149
- M.current = !1, f && o && f.split(" ").forEach((w) => o.off(w, N)), m && o && m.split(" ").forEach((w) => o.store.off(w, N));
148
+ return f && o && o.on(f, x), k && o && o.store.on(k, x), () => {
149
+ M.current = !1, f && o && f.split(" ").forEach((L) => o.off(L, x)), k && o && k.split(" ").forEach((L) => o.store.off(L, x));
150
150
  };
151
- }, [o, L]), j(() => {
152
- M.current && l && x(u);
153
- }, [o, d, l]);
154
- const H = [v, o, l];
155
- if (H.t = v, H.i18n = o, H.ready = l, l || !l && !a) return H;
151
+ }, [o, w]), T(() => {
152
+ M.current && l && v(g);
153
+ }, [o, u, l]);
154
+ const H = [m, o, l];
155
+ if (H.t = m, H.i18n = o, H.ready = l, l || !l && !a) return H;
156
156
  throw new Promise((f) => {
157
- e.lng ? Z1(o, e.lng, g, () => f()) : D1(o, g, () => f());
157
+ e.lng ? W1(o, e.lng, d, () => f()) : Z1(o, d, () => f());
158
158
  });
159
159
  }, p1 = ({
160
160
  children: i,
@@ -163,10 +163,10 @@ const $e = (i, e) => {
163
163
  alignItems: s = "normal",
164
164
  justifyContent: n = "normal",
165
165
  flex: o,
166
- gap: c,
166
+ gap: h,
167
167
  padding: a
168
168
  }) => /* @__PURE__ */ r(
169
- Ne,
169
+ xe,
170
170
  {
171
171
  className: `snmt-flex${t === "inherit" ? " inherit" : ""}`,
172
172
  vertical: e === "column",
@@ -174,14 +174,14 @@ const $e = (i, e) => {
174
174
  align: s,
175
175
  justify: n,
176
176
  flex: o,
177
- gap: c,
177
+ gap: h,
178
178
  style: { padding: a },
179
179
  children: i
180
180
  }
181
- ), Ue = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
181
+ ), ze = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
182
182
  const n = typeof s.src == "string";
183
183
  return /* @__PURE__ */ r(
184
- xe,
184
+ Re,
185
185
  {
186
186
  className: `snmt-avatar ${n ? "image" : ""}`,
187
187
  shape: i,
@@ -193,12 +193,12 @@ const $e = (i, e) => {
193
193
  );
194
194
  };
195
195
  var z = /* @__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.BLUE_DARK_3 = "var(--blue-dark-3)", 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))(z || {});
196
- const T1 = d1({
196
+ const B1 = d1({
197
197
  locale: "en",
198
198
  theme: "light"
199
199
  });
200
- T1.Provider;
201
- const ze = ({
200
+ B1.Provider;
201
+ const Je = ({
202
202
  checked: i = !0,
203
203
  indeterminate: e = !1,
204
204
  children: t,
@@ -206,32 +206,32 @@ const ze = ({
206
206
  disabled: n = !1,
207
207
  disableUncheck: o = !1
208
208
  }) => {
209
- const [c, a] = A(i), [d, g] = A(e);
210
- j(() => {
211
- a(i), g(e);
209
+ const [h, a] = V(i), [u, d] = V(e);
210
+ T(() => {
211
+ a(i), d(e);
212
212
  }, [i, e]);
213
- const { theme: l } = r1(T1);
213
+ const { theme: l } = r1(B1);
214
214
  return /* @__PURE__ */ r(
215
- Re,
215
+ Me,
216
216
  {
217
217
  className: `snmt-checkbox snmt-checkbox-${l}`,
218
- checked: c,
219
- indeterminate: d,
220
- onChange: (h) => {
221
- o && c || (g(!1), a(h.target.checked), s && s(h));
218
+ checked: h,
219
+ indeterminate: u,
220
+ onChange: (c) => {
221
+ o && h || (d(!1), a(c.target.checked), s && s(c));
222
222
  },
223
223
  disabled: n,
224
224
  children: t
225
225
  }
226
226
  );
227
227
  };
228
- var b = /* @__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.BLUE_DARK_3 = "var(--blue-dark-3)", 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))(b || {});
229
- const le = d1({
228
+ var E = /* @__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.BLUE_DARK_3 = "var(--blue-dark-3)", 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))(E || {});
229
+ const ce = d1({
230
230
  locale: "en",
231
231
  theme: "light"
232
232
  });
233
- le.Provider;
234
- const Je = ({
233
+ ce.Provider;
234
+ const qe = ({
235
235
  width: i = 20,
236
236
  height: e = 20,
237
237
  color: t = "#001E52",
@@ -258,7 +258,7 @@ const Je = ({
258
258
  }
259
259
  )
260
260
  }
261
- ), qe = ({
261
+ ), Qe = ({
262
262
  width: i = 16,
263
263
  height: e = 16,
264
264
  color: t = "#001E52",
@@ -286,7 +286,7 @@ const Je = ({
286
286
  )
287
287
  ]
288
288
  }
289
- ), Qe = ({
289
+ ), Xe = ({
290
290
  width: i = 20,
291
291
  height: e = 20,
292
292
  color: t = "#001E52",
@@ -321,7 +321,7 @@ const Je = ({
321
321
  )
322
322
  ]
323
323
  }
324
- ), Xe = ({
324
+ ), et = ({
325
325
  width: i = 18,
326
326
  height: e = 18,
327
327
  color: t = "#001E52",
@@ -360,7 +360,7 @@ const Je = ({
360
360
  )
361
361
  ]
362
362
  }
363
- ), et = ({
363
+ ), tt = ({
364
364
  width: i = 20,
365
365
  height: e = 20,
366
366
  color: t = "#001E52",
@@ -386,7 +386,7 @@ const Je = ({
386
386
  }
387
387
  )
388
388
  }
389
- ), tt = ({
389
+ ), it = ({
390
390
  width: i = 20,
391
391
  height: e = 20,
392
392
  color: t = "#001E52",
@@ -407,7 +407,7 @@ const Je = ({
407
407
  /* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
408
408
  ]
409
409
  }
410
- ), it = ({
410
+ ), st = ({
411
411
  width: i = 20,
412
412
  height: e = 20,
413
413
  color: t = "#001E52",
@@ -439,7 +439,7 @@ const Je = ({
439
439
  )
440
440
  ]
441
441
  }
442
- ), st = ({
442
+ ), nt = ({
443
443
  width: i = 20,
444
444
  height: e = 20,
445
445
  color: t = "#001E52",
@@ -493,7 +493,7 @@ const Je = ({
493
493
  )
494
494
  ]
495
495
  }
496
- ), nt = ({
496
+ ), rt = ({
497
497
  width: i = 20,
498
498
  height: e = 20,
499
499
  color: t = "#001E52",
@@ -532,7 +532,7 @@ const Je = ({
532
532
  /* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
533
533
  ]
534
534
  }
535
- ), rt = ({
535
+ ), ot = ({
536
536
  width: i = 16,
537
537
  height: e = 12,
538
538
  color: t = "#001E52",
@@ -581,7 +581,7 @@ const Je = ({
581
581
  )
582
582
  ] })
583
583
  }
584
- ), ot = ({
584
+ ), at = ({
585
585
  width: i = 16,
586
586
  height: e = 16,
587
587
  color: t = "#001E52",
@@ -615,7 +615,7 @@ const Je = ({
615
615
  )
616
616
  ]
617
617
  }
618
- ), at = ({
618
+ ), lt = ({
619
619
  width: i = 20,
620
620
  height: e = 20,
621
621
  color: t = "#001E52",
@@ -662,7 +662,7 @@ const Je = ({
662
662
  )
663
663
  ]
664
664
  }
665
- ), lt = ({
665
+ ), ct = ({
666
666
  width: i = 20,
667
667
  height: e = 20,
668
668
  color: t = "#001E52",
@@ -742,7 +742,7 @@ const Je = ({
742
742
  )
743
743
  ]
744
744
  }
745
- ), ct = ({
745
+ ), dt = ({
746
746
  width: i = 20,
747
747
  height: e = 20,
748
748
  color: t = "#001E52",
@@ -775,7 +775,7 @@ const Je = ({
775
775
  )
776
776
  ]
777
777
  }
778
- ), dt = ({
778
+ ), ut = ({
779
779
  width: i = 18,
780
780
  height: e = 16,
781
781
  color: t = "#001E52",
@@ -847,7 +847,7 @@ const Je = ({
847
847
  )
848
848
  ]
849
849
  }
850
- ), ut = ({
850
+ ), Ct = ({
851
851
  width: i = 20,
852
852
  height: e = 20,
853
853
  color: t = "#001E52",
@@ -871,7 +871,7 @@ const Je = ({
871
871
  }
872
872
  )
873
873
  }
874
- ), Ct = ({
874
+ ), pt = ({
875
875
  width: i = 20,
876
876
  height: e = 20,
877
877
  color: t = "#001E52",
@@ -904,7 +904,7 @@ const Je = ({
904
904
  )
905
905
  ]
906
906
  }
907
- ), pt = ({
907
+ ), ft = ({
908
908
  width: i = 20,
909
909
  height: e = 23,
910
910
  color: t = "#001E52",
@@ -965,7 +965,7 @@ const Je = ({
965
965
  )
966
966
  ]
967
967
  }
968
- ), ft = ({
968
+ ), mt = ({
969
969
  width: i = 14,
970
970
  height: e = 14,
971
971
  color: t = "#10B981",
@@ -994,7 +994,7 @@ const Je = ({
994
994
  )
995
995
  ]
996
996
  }
997
- ), mt = ({
997
+ ), wt = ({
998
998
  width: i = 10,
999
999
  height: e = 10,
1000
1000
  color: t = "#88A4FF",
@@ -1042,7 +1042,7 @@ const Je = ({
1042
1042
  )
1043
1043
  ]
1044
1044
  }
1045
- ), wt = ({
1045
+ ), kt = ({
1046
1046
  width: i = 14,
1047
1047
  height: e = 14,
1048
1048
  color: t = "#8E8E93",
@@ -1070,7 +1070,7 @@ const Je = ({
1070
1070
  )
1071
1071
  ]
1072
1072
  }
1073
- ), kt = ({
1073
+ ), Lt = ({
1074
1074
  width: i = 14,
1075
1075
  height: e = 14,
1076
1076
  color: t = "#FFB020",
@@ -1104,7 +1104,7 @@ const Je = ({
1104
1104
  )
1105
1105
  ]
1106
1106
  }
1107
- ), Lt = ({
1107
+ ), vt = ({
1108
1108
  width: i = 14,
1109
1109
  height: e = 14,
1110
1110
  color: t = "#D0421B",
@@ -1152,7 +1152,7 @@ const Je = ({
1152
1152
  )
1153
1153
  ]
1154
1154
  }
1155
- ), vt = ({
1155
+ ), Nt = ({
1156
1156
  width: i = 20,
1157
1157
  height: e = 20,
1158
1158
  color: t = "#070739",
@@ -1182,7 +1182,7 @@ const Je = ({
1182
1182
  /* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
1183
1183
  ]
1184
1184
  }
1185
- ), Nt = ({
1185
+ ), xt = ({
1186
1186
  width: i = 20,
1187
1187
  height: e = 20,
1188
1188
  color: t = "#070739",
@@ -1220,7 +1220,7 @@ const Je = ({
1220
1220
  )
1221
1221
  ]
1222
1222
  }
1223
- ), xt = ({
1223
+ ), Rt = ({
1224
1224
  width: i = 9,
1225
1225
  height: e = 5,
1226
1226
  color: t = "#001E52",
@@ -1246,7 +1246,7 @@ const Je = ({
1246
1246
  }
1247
1247
  )
1248
1248
  }
1249
- ), Rt = ({
1249
+ ), Mt = ({
1250
1250
  width: i = 20,
1251
1251
  height: e = 20,
1252
1252
  color: t = "#F2F2F7",
@@ -1275,7 +1275,7 @@ const Je = ({
1275
1275
  )
1276
1276
  ]
1277
1277
  }
1278
- ), Mt = ({
1278
+ ), bt = ({
1279
1279
  width: i = 20,
1280
1280
  height: e = 20,
1281
1281
  color: t = "#004ED7",
@@ -1333,7 +1333,7 @@ const Je = ({
1333
1333
  )
1334
1334
  ]
1335
1335
  }
1336
- ), bt = ({
1336
+ ), Et = ({
1337
1337
  width: i = 10,
1338
1338
  height: e = 10,
1339
1339
  color: t = "#001E52",
@@ -1370,9 +1370,9 @@ const Je = ({
1370
1370
  )
1371
1371
  ]
1372
1372
  }
1373
- ), Et = ({
1373
+ ), _t = ({
1374
1374
  className: i,
1375
- color: e = b.GREY_DARK_5,
1375
+ color: e = E.GREY_DARK_5,
1376
1376
  height: t = 24,
1377
1377
  width: s = 24,
1378
1378
  onClick: n
@@ -1409,9 +1409,9 @@ const Je = ({
1409
1409
  )
1410
1410
  ]
1411
1411
  }
1412
- ), _t = ({
1412
+ ), Ht = ({
1413
1413
  className: i,
1414
- color: e = b.GREY_DARK_5,
1414
+ color: e = E.GREY_DARK_5,
1415
1415
  height: t = 20,
1416
1416
  width: s = 20,
1417
1417
  onClick: n
@@ -1436,9 +1436,9 @@ const Je = ({
1436
1436
  }
1437
1437
  )
1438
1438
  }
1439
- ), Ht = ({
1439
+ ), It = ({
1440
1440
  className: i,
1441
- color: e = b.GREY_DARK_5,
1441
+ color: e = E.GREY_DARK_5,
1442
1442
  height: t = 20,
1443
1443
  width: s = 20,
1444
1444
  onClick: n
@@ -1463,9 +1463,9 @@ const Je = ({
1463
1463
  }
1464
1464
  )
1465
1465
  }
1466
- ), It = ({
1466
+ ), Ot = ({
1467
1467
  className: i,
1468
- color: e = b.GREY_DARK_5,
1468
+ color: e = E.GREY_DARK_5,
1469
1469
  height: t = 5,
1470
1470
  width: s = 10,
1471
1471
  onClick: n
@@ -1487,9 +1487,9 @@ const Je = ({
1487
1487
  }
1488
1488
  )
1489
1489
  }
1490
- ), Ot = ({
1490
+ ), St = ({
1491
1491
  className: i,
1492
- color: e = b.GREY_DARK_5,
1492
+ color: e = E.GREY_DARK_5,
1493
1493
  height: t = 5,
1494
1494
  width: s = 10,
1495
1495
  onClick: n
@@ -1512,9 +1512,9 @@ const Je = ({
1512
1512
  }
1513
1513
  )
1514
1514
  }
1515
- ), St = ({
1515
+ ), Vt = ({
1516
1516
  className: i,
1517
- color: e = b.GREY_DARK_5,
1517
+ color: e = E.GREY_DARK_5,
1518
1518
  height: t = 24,
1519
1519
  width: s = 24,
1520
1520
  onClick: n
@@ -1551,9 +1551,9 @@ const Je = ({
1551
1551
  )
1552
1552
  ]
1553
1553
  }
1554
- ), Vt = ({
1554
+ ), At = ({
1555
1555
  className: i,
1556
- color: e = b.GREY_DARK_5,
1556
+ color: e = E.GREY_DARK_5,
1557
1557
  height: t = 24,
1558
1558
  width: s = 24,
1559
1559
  onClick: n
@@ -1590,9 +1590,9 @@ const Je = ({
1590
1590
  )
1591
1591
  ]
1592
1592
  }
1593
- ), At = ({
1593
+ ), Tt = ({
1594
1594
  className: i,
1595
- color: e = b.GREY_DARK_5,
1595
+ color: e = E.GREY_DARK_5,
1596
1596
  height: t = 24,
1597
1597
  width: s = 24,
1598
1598
  onClick: n
@@ -1617,9 +1617,9 @@ const Je = ({
1617
1617
  }
1618
1618
  )
1619
1619
  }
1620
- ), Tt = ({
1620
+ ), Bt = ({
1621
1621
  className: i,
1622
- color: e = b.GREY_DARK_5,
1622
+ color: e = E.GREY_DARK_5,
1623
1623
  height: t = 24,
1624
1624
  width: s = 24,
1625
1625
  onClick: n
@@ -1676,9 +1676,9 @@ const Je = ({
1676
1676
  )
1677
1677
  ]
1678
1678
  }
1679
- ), Bt = ({
1679
+ ), jt = ({
1680
1680
  className: i,
1681
- color: e = b.GREY_DARK_5,
1681
+ color: e = E.GREY_DARK_5,
1682
1682
  height: t = 24,
1683
1683
  width: s = 24,
1684
1684
  onClick: n
@@ -1713,9 +1713,9 @@ const Je = ({
1713
1713
  )
1714
1714
  ]
1715
1715
  }
1716
- ), jt = ({
1716
+ ), Dt = ({
1717
1717
  className: i,
1718
- color: e = b.GREY_DARK_3,
1718
+ color: e = E.GREY_DARK_3,
1719
1719
  height: t = 14,
1720
1720
  width: s = 14,
1721
1721
  onClick: n
@@ -1750,9 +1750,9 @@ const Je = ({
1750
1750
  )
1751
1751
  ]
1752
1752
  }
1753
- ), Dt = ({
1753
+ ), Zt = ({
1754
1754
  className: i,
1755
- color: e = b.GREY_DARK_5,
1755
+ color: e = E.GREY_DARK_5,
1756
1756
  height: t = 18,
1757
1757
  onClick: s,
1758
1758
  width: n = 18
@@ -1777,9 +1777,9 @@ const Je = ({
1777
1777
  }
1778
1778
  )
1779
1779
  }
1780
- ), Zt = ({
1780
+ ), Wt = ({
1781
1781
  className: i,
1782
- color: e = b.GREY_DARK_5,
1782
+ color: e = E.GREY_DARK_5,
1783
1783
  height: t = 24,
1784
1784
  width: s = 24,
1785
1785
  onClick: n
@@ -1829,9 +1829,9 @@ const Je = ({
1829
1829
  )
1830
1830
  ]
1831
1831
  }
1832
- ), Wt = ({
1832
+ ), Gt = ({
1833
1833
  className: i,
1834
- color: e = b.GREY_DARK_5,
1834
+ color: e = E.GREY_DARK_5,
1835
1835
  height: t = 24,
1836
1836
  width: s = 24,
1837
1837
  onClick: n
@@ -1866,9 +1866,9 @@ const Je = ({
1866
1866
  )
1867
1867
  ]
1868
1868
  }
1869
- ), Gt = ({
1869
+ ), Kt = ({
1870
1870
  className: i,
1871
- color: e = b.NOTIFICATION_WARNING_DARK,
1871
+ color: e = E.NOTIFICATION_WARNING_DARK,
1872
1872
  height: t = 37,
1873
1873
  width: s = 36,
1874
1874
  onClick: n
@@ -1905,9 +1905,9 @@ const Je = ({
1905
1905
  )
1906
1906
  ]
1907
1907
  }
1908
- ), Kt = ({
1908
+ ), Pt = ({
1909
1909
  className: i,
1910
- color: e = b.GREY_DARK_5,
1910
+ color: e = E.GREY_DARK_5,
1911
1911
  height: t = 24,
1912
1912
  width: s = 24,
1913
1913
  onClick: n
@@ -1931,9 +1931,9 @@ const Je = ({
1931
1931
  }
1932
1932
  )
1933
1933
  }
1934
- ), Pt = ({
1934
+ ), $t = ({
1935
1935
  className: i,
1936
- color: e = b.GREY_DARK_5,
1936
+ color: e = E.GREY_DARK_5,
1937
1937
  height: t = 24,
1938
1938
  width: s = 24,
1939
1939
  onClick: n
@@ -1970,9 +1970,9 @@ const Je = ({
1970
1970
  )
1971
1971
  ]
1972
1972
  }
1973
- ), $t = ({
1973
+ ), Ft = ({
1974
1974
  className: i,
1975
- color: e = b.GREY_DARK_5,
1975
+ color: e = E.GREY_DARK_5,
1976
1976
  height: t = 24,
1977
1977
  width: s = 24,
1978
1978
  onClick: n
@@ -2009,9 +2009,9 @@ const Je = ({
2009
2009
  )
2010
2010
  ]
2011
2011
  }
2012
- ), Ft = ({
2012
+ ), Yt = ({
2013
2013
  className: i,
2014
- color: e = b.GREY_DARK_5,
2014
+ color: e = E.GREY_DARK_5,
2015
2015
  height: t = 24,
2016
2016
  width: s = 24,
2017
2017
  onClick: n
@@ -2078,9 +2078,9 @@ const Je = ({
2078
2078
  )
2079
2079
  ]
2080
2080
  }
2081
- ), Yt = ({
2081
+ ), Ut = ({
2082
2082
  className: i,
2083
- color: e = b.GREY_DARK_5,
2083
+ color: e = E.GREY_DARK_5,
2084
2084
  height: t = 24,
2085
2085
  width: s = 24,
2086
2086
  onClick: n
@@ -2135,9 +2135,9 @@ const Je = ({
2135
2135
  )
2136
2136
  ]
2137
2137
  }
2138
- ), Ut = ({
2138
+ ), zt = ({
2139
2139
  className: i,
2140
- color: e = b.GREY_DARK_5,
2140
+ color: e = E.GREY_DARK_5,
2141
2141
  height: t = 24,
2142
2142
  width: s = 24,
2143
2143
  onClick: n
@@ -2174,9 +2174,9 @@ const Je = ({
2174
2174
  )
2175
2175
  ]
2176
2176
  }
2177
- ), zt = ({
2177
+ ), Jt = ({
2178
2178
  className: i,
2179
- color: e = b.GREY_DARK_5,
2179
+ color: e = E.GREY_DARK_5,
2180
2180
  height: t = 24,
2181
2181
  width: s = 24,
2182
2182
  onClick: n
@@ -2223,9 +2223,9 @@ const Je = ({
2223
2223
  )
2224
2224
  ]
2225
2225
  }
2226
- ), Jt = ({
2226
+ ), qt = ({
2227
2227
  className: i,
2228
- color: e = b.GREY_DARK_5,
2228
+ color: e = E.GREY_DARK_5,
2229
2229
  height: t = 24,
2230
2230
  width: s = 24,
2231
2231
  onClick: n
@@ -2250,9 +2250,9 @@ const Je = ({
2250
2250
  }
2251
2251
  )
2252
2252
  }
2253
- ), qt = ({
2253
+ ), Qt = ({
2254
2254
  className: i,
2255
- color: e = b.GREY_DARK_5,
2255
+ color: e = E.GREY_DARK_5,
2256
2256
  height: t = 20,
2257
2257
  width: s = 20,
2258
2258
  onClick: n
@@ -2267,7 +2267,7 @@ const Je = ({
2267
2267
  fill: "none",
2268
2268
  xmlns: "http://www.w3.org/2000/svg",
2269
2269
  children: [
2270
- /* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: b.GREY_LIGHT_2 }),
2270
+ /* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: E.GREY_LIGHT_2 }),
2271
2271
  /* @__PURE__ */ r(
2272
2272
  "path",
2273
2273
  {
@@ -2279,7 +2279,7 @@ const Je = ({
2279
2279
  )
2280
2280
  ]
2281
2281
  }
2282
- ), Qt = ({
2282
+ ), Xt = ({
2283
2283
  className: i,
2284
2284
  color: e = "#001E52",
2285
2285
  height: t = 24,
@@ -2305,7 +2305,7 @@ const Je = ({
2305
2305
  }
2306
2306
  )
2307
2307
  }
2308
- ), Xt = ({
2308
+ ), e2 = ({
2309
2309
  className: i,
2310
2310
  color: e = "#131314",
2311
2311
  height: t = 20,
@@ -2333,7 +2333,7 @@ const Je = ({
2333
2333
  }
2334
2334
  )
2335
2335
  }
2336
- ), e2 = ({
2336
+ ), t2 = ({
2337
2337
  className: i,
2338
2338
  color: e = "#001E52",
2339
2339
  height: t = 24,
@@ -2371,7 +2371,7 @@ const Je = ({
2371
2371
  )
2372
2372
  ] }) })
2373
2373
  }
2374
- ), t2 = ({
2374
+ ), i2 = ({
2375
2375
  width: i = 20,
2376
2376
  height: e = 20,
2377
2377
  color: t = "#001E52",
@@ -2427,7 +2427,7 @@ const Je = ({
2427
2427
  }
2428
2428
  )
2429
2429
  }
2430
- ), i2 = ({
2430
+ ), s2 = ({
2431
2431
  width: i = 24,
2432
2432
  height: e = 24,
2433
2433
  color: t = "#131314",
@@ -2460,10 +2460,10 @@ const Je = ({
2460
2460
  )
2461
2461
  ]
2462
2462
  }
2463
- ), s2 = ({
2463
+ ), n2 = ({
2464
2464
  width: i = 24,
2465
2465
  height: e = 24,
2466
- color: t = b.GREY_DARK_2,
2466
+ color: t = E.GREY_DARK_2,
2467
2467
  className: s,
2468
2468
  onClick: n
2469
2469
  }) => /* @__PURE__ */ C(
@@ -2499,10 +2499,10 @@ const Je = ({
2499
2499
  )
2500
2500
  ]
2501
2501
  }
2502
- ), n2 = ({
2502
+ ), r2 = ({
2503
2503
  width: i = 24,
2504
2504
  height: e = 24,
2505
- color: t = b.GREY_DARK_2,
2505
+ color: t = E.GREY_DARK_2,
2506
2506
  className: s,
2507
2507
  onClick: n
2508
2508
  }) => /* @__PURE__ */ r(
@@ -2526,10 +2526,10 @@ const Je = ({
2526
2526
  }
2527
2527
  )
2528
2528
  }
2529
- ), r2 = ({
2529
+ ), o2 = ({
2530
2530
  width: i = 24,
2531
2531
  height: e = 24,
2532
- color: t = b.GREY_DARK_2,
2532
+ color: t = E.GREY_DARK_2,
2533
2533
  className: s,
2534
2534
  onClick: n
2535
2535
  }) => /* @__PURE__ */ C(
@@ -2566,10 +2566,10 @@ const Je = ({
2566
2566
  )
2567
2567
  ]
2568
2568
  }
2569
- ), o2 = ({
2569
+ ), a2 = ({
2570
2570
  width: i = 24,
2571
2571
  height: e = 24,
2572
- color: t = b.GREY_DARK_2,
2572
+ color: t = E.GREY_DARK_2,
2573
2573
  className: s,
2574
2574
  onClick: n
2575
2575
  }) => /* @__PURE__ */ r(
@@ -2593,10 +2593,10 @@ const Je = ({
2593
2593
  }
2594
2594
  )
2595
2595
  }
2596
- ), a2 = ({
2596
+ ), l2 = ({
2597
2597
  width: i = 24,
2598
2598
  height: e = 24,
2599
- color: t = b.GREY_DARK_2,
2599
+ color: t = E.GREY_DARK_2,
2600
2600
  className: s,
2601
2601
  onClick: n
2602
2602
  }) => /* @__PURE__ */ r(
@@ -2620,7 +2620,7 @@ const Je = ({
2620
2620
  }
2621
2621
  )
2622
2622
  }
2623
- ), l2 = ({
2623
+ ), c2 = ({
2624
2624
  width: i = 20,
2625
2625
  height: e = 20,
2626
2626
  color: t = "#001E52",
@@ -2646,216 +2646,226 @@ const Je = ({
2646
2646
  }
2647
2647
  )
2648
2648
  }
2649
- ), u1 = ({
2649
+ ), g1 = ({
2650
2650
  name: i,
2651
2651
  width: e,
2652
2652
  height: t,
2653
2653
  color: s,
2654
2654
  className: n,
2655
2655
  disabled: o = !1,
2656
- onClick: c
2656
+ onClick: h
2657
2657
  }) => {
2658
- const [a, d] = A(n), { theme: g } = r1(le), l = o ? g && g === "dark" ? b.GREY_LIGHT_4 : b.GREY_DARK_1 : s, h = o ? void 0 : c;
2659
- return j(() => {
2658
+ const [a, u] = V(n), { theme: d } = r1(ce), l = o ? d && d === "dark" ? E.GREY_LIGHT_4 : E.GREY_DARK_1 : s, c = o ? void 0 : h;
2659
+ return T(() => {
2660
2660
  if (n) {
2661
- h && !o && d(`${n} clickable`);
2661
+ c && !o && u(`${n} clickable`);
2662
2662
  return;
2663
2663
  }
2664
- h && !o && d("clickable");
2665
- }, [h, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
2664
+ c && !o && u("clickable");
2665
+ }, [c, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
2666
2666
  switch (i) {
2667
2667
  case "nextIcon":
2668
- return _t({ width: e, height: t, color: l, className: a, onClick: h });
2668
+ return Ht({ width: e, height: t, color: l, className: a, onClick: c });
2669
2669
  case "prevIcon":
2670
- return Ht({ width: e, height: t, color: l, className: a, onClick: h });
2670
+ return It({ width: e, height: t, color: l, className: a, onClick: c });
2671
2671
  case "arrowDown":
2672
- return Je({ width: e, height: t, color: l, className: a, onClick: h });
2672
+ return qe({ width: e, height: t, color: l, className: a, onClick: c });
2673
2673
  case "info":
2674
- return qe({ width: e, height: t, color: l, className: a, onClick: h });
2674
+ return Qe({ width: e, height: t, color: l, className: a, onClick: c });
2675
2675
  case "arrowRight":
2676
- return Qe({ width: e, height: t, color: l, className: a, onClick: h });
2676
+ return Xe({ width: e, height: t, color: l, className: a, onClick: c });
2677
2677
  case "calendar":
2678
- return Xe({ width: e, height: t, color: l, className: a, onClick: h });
2678
+ return et({ width: e, height: t, color: l, className: a, onClick: c });
2679
2679
  case "ok":
2680
- return et({ width: e, height: t, color: l, className: a, onClick: h });
2680
+ return tt({ width: e, height: t, color: l, className: a, onClick: c });
2681
2681
  case "cancel":
2682
- return tt({ width: e, height: t, color: l, className: a, onClick: h });
2682
+ return it({ width: e, height: t, color: l, className: a, onClick: c });
2683
2683
  case "add":
2684
- return it({ width: e, height: t, color: l, className: a, onClick: h });
2684
+ return st({ width: e, height: t, color: l, className: a, onClick: c });
2685
2685
  case "list":
2686
- return st({ width: e, height: t, color: l, className: a, onClick: h });
2686
+ return nt({ width: e, height: t, color: l, className: a, onClick: c });
2687
2687
  case "dragAndDrop":
2688
- return nt({ width: e, height: t, color: l, className: a, onClick: h });
2688
+ return rt({ width: e, height: t, color: l, className: a, onClick: c });
2689
2689
  case "filter":
2690
- return rt({ width: e, height: t, color: l, className: a, onClick: h });
2690
+ return ot({ width: e, height: t, color: l, className: a, onClick: c });
2691
2691
  case "attention":
2692
- return ot({ width: e, height: t, color: l, className: a, onClick: h });
2692
+ return at({ width: e, height: t, color: l, className: a, onClick: c });
2693
2693
  case "users":
2694
- return at({ width: e, height: t, color: l, className: a, onClick: h });
2694
+ return lt({ width: e, height: t, color: l, className: a, onClick: c });
2695
2695
  case "mySkillsMatrix":
2696
- return lt({
2696
+ return ct({
2697
2697
  width: e,
2698
2698
  height: t,
2699
2699
  color: l,
2700
2700
  className: a,
2701
- onClick: h
2701
+ onClick: c
2702
2702
  });
2703
2703
  case "skills":
2704
- return ht({ width: e, height: t, color: l, className: a, onClick: h });
2704
+ return ht({ width: e, height: t, color: l, className: a, onClick: c });
2705
2705
  case "skillsMatrices":
2706
- return ct({
2706
+ return dt({
2707
2707
  width: e,
2708
2708
  height: t,
2709
2709
  color: l,
2710
2710
  className: a,
2711
- onClick: h
2711
+ onClick: c
2712
2712
  });
2713
2713
  case "history":
2714
- return dt({ width: e, height: t, color: l, className: a, onClick: h });
2714
+ return ut({ width: e, height: t, color: l, className: a, onClick: c });
2715
2715
  case "logOut":
2716
- return gt({ width: e, height: t, color: l, className: a, onClick: h });
2716
+ return gt({ width: e, height: t, color: l, className: a, onClick: c });
2717
2717
  case "settings":
2718
- return ut({ width: e, height: t, color: l, className: a, onClick: h });
2718
+ return Ct({ width: e, height: t, color: l, className: a, onClick: c });
2719
2719
  case "trash":
2720
- return Ct({ width: e, height: t, color: l, className: a, onClick: h });
2720
+ return pt({ width: e, height: t, color: l, className: a, onClick: c });
2721
2721
  case "settings4":
2722
- return pt({ width: e, height: t, color: l, className: a, onClick: h });
2722
+ return ft({ width: e, height: t, color: l, className: a, onClick: c });
2723
2723
  case "success":
2724
- return ft({ width: e, height: t, color: l, className: a, onClick: h });
2724
+ return mt({ width: e, height: t, color: l, className: a, onClick: c });
2725
2725
  case "errorSmall":
2726
- return mt({ width: e, height: t, color: l, className: a, onClick: h });
2726
+ return wt({ width: e, height: t, color: l, className: a, onClick: c });
2727
2727
  case "infoMedium":
2728
- return wt({ width: e, height: t, color: l, className: a, onClick: h });
2728
+ return kt({ width: e, height: t, color: l, className: a, onClick: c });
2729
2729
  case "attentionMedium":
2730
- return kt({
2730
+ return Lt({
2731
2731
  width: e,
2732
2732
  height: t,
2733
2733
  color: l,
2734
2734
  className: a,
2735
- onClick: h
2735
+ onClick: c
2736
2736
  });
2737
2737
  case "errorMedium":
2738
- return Lt({ width: e, height: t, color: l, className: a, onClick: h });
2738
+ return vt({ width: e, height: t, color: l, className: a, onClick: c });
2739
2739
  case "visibilityIcon":
2740
- return vt({
2740
+ return Nt({
2741
2741
  width: e,
2742
2742
  height: t,
2743
2743
  color: l,
2744
2744
  className: a,
2745
- onClick: h
2745
+ onClick: c
2746
2746
  });
2747
2747
  case "visibilityOffIcon":
2748
- return Nt({
2748
+ return xt({
2749
2749
  width: e,
2750
2750
  height: t,
2751
2751
  color: l,
2752
2752
  className: a,
2753
- onClick: h
2753
+ onClick: c
2754
2754
  });
2755
2755
  case "selectArrowIcon":
2756
- return xt({
2756
+ return Rt({
2757
2757
  width: e,
2758
2758
  height: t,
2759
2759
  color: l,
2760
2760
  className: a,
2761
- onClick: h
2761
+ onClick: c
2762
2762
  });
2763
2763
  case "expandArrowIcon":
2764
- return Rt({
2764
+ return Mt({
2765
2765
  width: e,
2766
2766
  height: t,
2767
2767
  color: l,
2768
2768
  className: a,
2769
- onClick: h
2769
+ onClick: c
2770
2770
  });
2771
2771
  case "expandActiveArrowIcon":
2772
- return Mt({
2772
+ return bt({
2773
2773
  width: e,
2774
2774
  height: t,
2775
2775
  color: l,
2776
2776
  className: a,
2777
- onClick: h
2777
+ onClick: c
2778
2778
  });
2779
2779
  case "sortUp":
2780
- return yt({ width: e, height: t, color: l, className: a, onClick: h });
2780
+ return yt({ width: e, height: t, color: l, className: a, onClick: c });
2781
2781
  case "sortDown":
2782
- return bt({ width: e, height: t, color: l, className: a, onClick: h });
2782
+ return Et({ width: e, height: t, color: l, className: a, onClick: c });
2783
2783
  case "search":
2784
- return Et({ width: e, height: t, color: l, className: a, onClick: h });
2784
+ return _t({ width: e, height: t, color: l, className: a, onClick: c });
2785
2785
  case "arrowUpFilled":
2786
- return Ot({ width: e, height: t, color: l, className: a, onClick: h });
2786
+ return St({ width: e, height: t, color: l, className: a, onClick: c });
2787
2787
  case "arrowDownFilled":
2788
- return It({ width: e, height: t, color: l, className: a, onClick: h });
2788
+ return Ot({ width: e, height: t, color: l, className: a, onClick: c });
2789
2789
  case "link":
2790
- return St({ width: e, height: t, color: l, className: a, onClick: h });
2790
+ return Vt({ width: e, height: t, color: l, className: a, onClick: c });
2791
2791
  case "telegram":
2792
- return At({ width: e, height: t, color: l, className: a, onClick: h });
2792
+ return Tt({ width: e, height: t, color: l, className: a, onClick: c });
2793
2793
  case "mail":
2794
- return Bt({ width: e, height: t, color: l, className: a, onClick: h });
2794
+ return jt({ width: e, height: t, color: l, className: a, onClick: c });
2795
2795
  case "github":
2796
- return Vt({ width: e, height: t, color: l, className: a, onClick: h });
2796
+ return At({ width: e, height: t, color: l, className: a, onClick: c });
2797
2797
  case "linkedIn":
2798
- return Tt({ width: e, height: t, color: l, className: a, onClick: h });
2798
+ return Bt({ width: e, height: t, color: l, className: a, onClick: c });
2799
2799
  case "emptyStateIcon":
2800
- return jt({ width: e, height: t, color: l, className: a, onClick: h });
2800
+ return Dt({ width: e, height: t, color: l, className: a, onClick: c });
2801
2801
  case "filtersIcon":
2802
- return Dt({ width: e, height: t, color: l, className: a, onClick: h });
2802
+ return Zt({ width: e, height: t, color: l, className: a, onClick: c });
2803
2803
  case "dotMenuIcon":
2804
- return Zt({ width: e, height: t, color: l, className: a, onClick: h });
2804
+ return Wt({ width: e, height: t, color: l, className: a, onClick: c });
2805
2805
  case "plusCircle":
2806
- return Wt({ width: e, height: t, color: l, className: a, onClick: h });
2806
+ return Gt({ width: e, height: t, color: l, className: a, onClick: c });
2807
2807
  case "warning":
2808
- return Gt({ width: e, height: t, color: l, className: a, onClick: h });
2808
+ return Kt({ width: e, height: t, color: l, className: a, onClick: c });
2809
2809
  case "back":
2810
- return Kt({ width: e, height: t, color: l, className: a, onClick: h });
2810
+ return Pt({ width: e, height: t, color: l, className: a, onClick: c });
2811
2811
  case "bell":
2812
- return Pt({ width: e, height: t, color: l, className: a, onClick: h });
2812
+ return $t({ width: e, height: t, color: l, className: a, onClick: c });
2813
2813
  case "contract":
2814
- return Ft({ width: e, height: t, color: l, className: a, onClick: h });
2814
+ return Yt({ width: e, height: t, color: l, className: a, onClick: c });
2815
2815
  case "trash2":
2816
- return $t({ width: e, height: t, color: l, className: a, onClick: h });
2816
+ return Ft({ width: e, height: t, color: l, className: a, onClick: c });
2817
2817
  case "resourceManager":
2818
- return Yt({ width: e, height: t, color: l, className: a, onClick: h });
2818
+ return Ut({ width: e, height: t, color: l, className: a, onClick: c });
2819
2819
  case "settings2":
2820
- return Ut({ width: e, height: t, color: l, className: a, onClick: h });
2820
+ return zt({ width: e, height: t, color: l, className: a, onClick: c });
2821
2821
  case "image":
2822
- return zt({ width: e, height: t, color: l, className: a, onClick: h });
2822
+ return Jt({ width: e, height: t, color: l, className: a, onClick: c });
2823
2823
  case "edit":
2824
- return Jt({ width: e, height: t, color: l, className: a, onClick: h });
2824
+ return qt({ width: e, height: t, color: l, className: a, onClick: c });
2825
2825
  case "filledArrowRight":
2826
- return qt({ width: e, height: t, color: l, className: a, onClick: h });
2826
+ return Qt({ width: e, height: t, color: l, className: a, onClick: c });
2827
2827
  case "burgerMenu":
2828
- return Qt({ width: e, height: t, color: l, className: a, onClick: h });
2828
+ return Xt({ width: e, height: t, color: l, className: a, onClick: c });
2829
2829
  case "signOut":
2830
- return Xt({ width: e, height: t, color: l, className: a, onClick: h });
2830
+ return e2({ width: e, height: t, color: l, className: a, onClick: c });
2831
2831
  case "refresh":
2832
- return e2({ width: e, height: t, color: l, className: a, onClick: h });
2832
+ return t2({ width: e, height: t, color: l, className: a, onClick: c });
2833
2833
  case "projects":
2834
- return t2({ width: e, height: t, color: l, className: a, onClick: h });
2834
+ return i2({ width: e, height: t, color: l, className: a, onClick: c });
2835
2835
  case "profile":
2836
- return l2({ width: e, height: t, color: l, className: a, onClick: h });
2836
+ return c2({ width: e, height: t, color: l, className: a, onClick: c });
2837
2837
  case "exit":
2838
- return i2({ width: e, height: t, color: l, className: a, onClick: h });
2838
+ return s2({ width: e, height: t, color: l, className: a, onClick: c });
2839
2839
  case "client":
2840
- return s2({ width: e, height: t, color: l, className: a, onClick: h });
2840
+ return n2({ width: e, height: t, color: l, className: a, onClick: c });
2841
2841
  case "calendar2":
2842
- return n2({ width: e, height: t, color: l, className: a, onClick: h });
2842
+ return r2({ width: e, height: t, color: l, className: a, onClick: c });
2843
2843
  case "openPointCircle":
2844
- return r2({ width: e, height: t, color: l, className: a, onClick: h });
2844
+ return o2({ width: e, height: t, color: l, className: a, onClick: c });
2845
2845
  case "community":
2846
- return o2({ width: e, height: t, color: l, className: a, onClick: h });
2846
+ return a2({ width: e, height: t, color: l, className: a, onClick: c });
2847
2847
  case "docs":
2848
- return a2({ width: e, height: t, color: l, className: a, onClick: h });
2848
+ return l2({ width: e, height: t, color: l, className: a, onClick: c });
2849
2849
  default:
2850
2850
  return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
2851
2851
  }
2852
2852
  })() });
2853
- }, { Title: h2, Text: c2 } = re, d2 = {
2853
+ }, h2 = ({ children: i, title: e, arrow: t = !0, open: s, placement: n = "top" }) => /* @__PURE__ */ r(
2854
+ re,
2855
+ {
2856
+ overlayClassName: "snmt-tooltip",
2857
+ title: e,
2858
+ arrow: t,
2859
+ open: s,
2860
+ placement: n,
2861
+ children: i
2862
+ }
2863
+ ), { Title: d2, Text: u2 } = oe, g2 = {
2854
2864
  h1: 1,
2855
2865
  h2: 2,
2856
2866
  h3: 3,
2857
2867
  h4: 4
2858
- }, g2 = k1(
2868
+ }, C2 = k1(
2859
2869
  ({
2860
2870
  align: i = "inherit",
2861
2871
  variant: e = "body1",
@@ -2863,39 +2873,41 @@ const Je = ({
2863
2873
  children: s,
2864
2874
  onClick: n,
2865
2875
  collapsed: o,
2866
- whiteSpace: c = "normal"
2867
- }, a) => {
2868
- const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
2869
- let g = `snmt-typography snmt-typography-${e}`;
2870
- return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), o && (g += " collapsed"), d ? /* @__PURE__ */ r(
2871
- h2,
2872
- {
2873
- className: g,
2874
- style: { color: t, whiteSpace: c },
2875
- onClick: n,
2876
- level: d2[e],
2877
- ref: a,
2878
- children: s
2879
- }
2880
- ) : /* @__PURE__ */ r(
2881
- c2,
2882
- {
2883
- className: g,
2884
- style: { color: t, whiteSpace: c },
2885
- onClick: n,
2886
- ref: a,
2887
- children: s
2888
- }
2889
- );
2876
+ whiteSpace: h = "normal",
2877
+ /** This prop allows you to enable tooltip if text size is too big */
2878
+ trim: a = !1
2879
+ }, u) => {
2880
+ const d = Y(null);
2881
+ E1(u, () => d.current);
2882
+ const [l, c] = V(!1);
2883
+ T(() => {
2884
+ if (!a) return;
2885
+ const w = () => {
2886
+ d.current && c(d.current.scrollWidth > d.current.clientWidth);
2887
+ }, y = new ResizeObserver(w);
2888
+ return d.current && y.observe(d.current), () => {
2889
+ y.disconnect();
2890
+ };
2891
+ }, [a, l]);
2892
+ const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
2893
+ let p = `snmt-typography snmt-typography-${e}`;
2894
+ i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed"), a && (p += " collapsed");
2895
+ const m = {
2896
+ className: p,
2897
+ style: { color: t, whiteSpace: a ? "nowrap" : h },
2898
+ onClick: n,
2899
+ ref: d
2900
+ }, v = g ? /* @__PURE__ */ r(d2, { level: g2[e], ...m, children: s }) : /* @__PURE__ */ r(u2, { ...m, children: s });
2901
+ return a && l ? /* @__PURE__ */ r(h2, { placement: "top", title: s, children: v }) : v;
2890
2902
  }
2891
2903
  );
2892
- var E = /* @__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.BLUE_DARK_3 = "var(--blue-dark-3)", 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))(E || {});
2904
+ var _ = /* @__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.BLUE_DARK_3 = "var(--blue-dark-3)", 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))(_ || {});
2893
2905
  const he = d1({
2894
2906
  locale: "en",
2895
2907
  theme: "light"
2896
2908
  });
2897
2909
  he.Provider;
2898
- const u2 = ({
2910
+ const p2 = ({
2899
2911
  width: i = 20,
2900
2912
  height: e = 20,
2901
2913
  color: t = "#001E52",
@@ -2922,7 +2934,7 @@ const u2 = ({
2922
2934
  }
2923
2935
  )
2924
2936
  }
2925
- ), C2 = ({
2937
+ ), f2 = ({
2926
2938
  width: i = 16,
2927
2939
  height: e = 16,
2928
2940
  color: t = "#001E52",
@@ -2950,7 +2962,7 @@ const u2 = ({
2950
2962
  )
2951
2963
  ]
2952
2964
  }
2953
- ), p2 = ({
2965
+ ), m2 = ({
2954
2966
  width: i = 20,
2955
2967
  height: e = 20,
2956
2968
  color: t = "#001E52",
@@ -2985,7 +2997,7 @@ const u2 = ({
2985
2997
  )
2986
2998
  ]
2987
2999
  }
2988
- ), f2 = ({
3000
+ ), w2 = ({
2989
3001
  width: i = 18,
2990
3002
  height: e = 18,
2991
3003
  color: t = "#001E52",
@@ -3024,7 +3036,7 @@ const u2 = ({
3024
3036
  )
3025
3037
  ]
3026
3038
  }
3027
- ), m2 = ({
3039
+ ), k2 = ({
3028
3040
  width: i = 20,
3029
3041
  height: e = 20,
3030
3042
  color: t = "#001E52",
@@ -3050,7 +3062,7 @@ const u2 = ({
3050
3062
  }
3051
3063
  )
3052
3064
  }
3053
- ), w2 = ({
3065
+ ), L2 = ({
3054
3066
  width: i = 20,
3055
3067
  height: e = 20,
3056
3068
  color: t = "#001E52",
@@ -3071,7 +3083,7 @@ const u2 = ({
3071
3083
  /* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
3072
3084
  ]
3073
3085
  }
3074
- ), k2 = ({
3086
+ ), v2 = ({
3075
3087
  width: i = 20,
3076
3088
  height: e = 20,
3077
3089
  color: t = "#001E52",
@@ -3103,7 +3115,7 @@ const u2 = ({
3103
3115
  )
3104
3116
  ]
3105
3117
  }
3106
- ), L2 = ({
3118
+ ), N2 = ({
3107
3119
  width: i = 20,
3108
3120
  height: e = 20,
3109
3121
  color: t = "#001E52",
@@ -3157,7 +3169,7 @@ const u2 = ({
3157
3169
  )
3158
3170
  ]
3159
3171
  }
3160
- ), v2 = ({
3172
+ ), x2 = ({
3161
3173
  width: i = 20,
3162
3174
  height: e = 20,
3163
3175
  color: t = "#001E52",
@@ -3196,7 +3208,7 @@ const u2 = ({
3196
3208
  /* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
3197
3209
  ]
3198
3210
  }
3199
- ), N2 = ({
3211
+ ), R2 = ({
3200
3212
  width: i = 16,
3201
3213
  height: e = 12,
3202
3214
  color: t = "#001E52",
@@ -3245,7 +3257,7 @@ const u2 = ({
3245
3257
  )
3246
3258
  ] })
3247
3259
  }
3248
- ), x2 = ({
3260
+ ), M2 = ({
3249
3261
  width: i = 16,
3250
3262
  height: e = 16,
3251
3263
  color: t = "#001E52",
@@ -3279,7 +3291,7 @@ const u2 = ({
3279
3291
  )
3280
3292
  ]
3281
3293
  }
3282
- ), R2 = ({
3294
+ ), b2 = ({
3283
3295
  width: i = 20,
3284
3296
  height: e = 20,
3285
3297
  color: t = "#001E52",
@@ -3326,7 +3338,7 @@ const u2 = ({
3326
3338
  )
3327
3339
  ]
3328
3340
  }
3329
- ), M2 = ({
3341
+ ), y2 = ({
3330
3342
  width: i = 20,
3331
3343
  height: e = 20,
3332
3344
  color: t = "#001E52",
@@ -3359,7 +3371,7 @@ const u2 = ({
3359
3371
  )
3360
3372
  ]
3361
3373
  }
3362
- ), y2 = ({
3374
+ ), E2 = ({
3363
3375
  width: i = 20,
3364
3376
  height: e = 20,
3365
3377
  color: t = "#001E52",
@@ -3406,7 +3418,7 @@ const u2 = ({
3406
3418
  )
3407
3419
  ]
3408
3420
  }
3409
- ), b2 = ({
3421
+ ), _2 = ({
3410
3422
  width: i = 20,
3411
3423
  height: e = 20,
3412
3424
  color: t = "#001E52",
@@ -3439,7 +3451,7 @@ const u2 = ({
3439
3451
  )
3440
3452
  ]
3441
3453
  }
3442
- ), E2 = ({
3454
+ ), H2 = ({
3443
3455
  width: i = 18,
3444
3456
  height: e = 16,
3445
3457
  color: t = "#001E52",
@@ -3478,7 +3490,7 @@ const u2 = ({
3478
3490
  )
3479
3491
  ]
3480
3492
  }
3481
- ), _2 = ({
3493
+ ), I2 = ({
3482
3494
  width: i = 20,
3483
3495
  height: e = 20,
3484
3496
  color: t = "#001E52",
@@ -3511,7 +3523,7 @@ const u2 = ({
3511
3523
  )
3512
3524
  ]
3513
3525
  }
3514
- ), H2 = ({
3526
+ ), O2 = ({
3515
3527
  width: i = 20,
3516
3528
  height: e = 20,
3517
3529
  color: t = "#001E52",
@@ -3535,7 +3547,7 @@ const u2 = ({
3535
3547
  }
3536
3548
  )
3537
3549
  }
3538
- ), I2 = ({
3550
+ ), S2 = ({
3539
3551
  width: i = 20,
3540
3552
  height: e = 20,
3541
3553
  color: t = "#001E52",
@@ -3568,7 +3580,7 @@ const u2 = ({
3568
3580
  )
3569
3581
  ]
3570
3582
  }
3571
- ), O2 = ({
3583
+ ), V2 = ({
3572
3584
  width: i = 20,
3573
3585
  height: e = 23,
3574
3586
  color: t = "#001E52",
@@ -3629,7 +3641,7 @@ const u2 = ({
3629
3641
  )
3630
3642
  ]
3631
3643
  }
3632
- ), S2 = ({
3644
+ ), A2 = ({
3633
3645
  width: i = 14,
3634
3646
  height: e = 14,
3635
3647
  color: t = "#10B981",
@@ -3658,7 +3670,7 @@ const u2 = ({
3658
3670
  )
3659
3671
  ]
3660
3672
  }
3661
- ), V2 = ({
3673
+ ), T2 = ({
3662
3674
  width: i = 10,
3663
3675
  height: e = 10,
3664
3676
  color: t = "#88A4FF",
@@ -3706,7 +3718,7 @@ const u2 = ({
3706
3718
  )
3707
3719
  ]
3708
3720
  }
3709
- ), A2 = ({
3721
+ ), B2 = ({
3710
3722
  width: i = 14,
3711
3723
  height: e = 14,
3712
3724
  color: t = "#8E8E93",
@@ -3734,7 +3746,7 @@ const u2 = ({
3734
3746
  )
3735
3747
  ]
3736
3748
  }
3737
- ), T2 = ({
3749
+ ), j2 = ({
3738
3750
  width: i = 14,
3739
3751
  height: e = 14,
3740
3752
  color: t = "#FFB020",
@@ -3768,7 +3780,7 @@ const u2 = ({
3768
3780
  )
3769
3781
  ]
3770
3782
  }
3771
- ), B2 = ({
3783
+ ), D2 = ({
3772
3784
  width: i = 14,
3773
3785
  height: e = 14,
3774
3786
  color: t = "#D0421B",
@@ -3816,7 +3828,7 @@ const u2 = ({
3816
3828
  )
3817
3829
  ]
3818
3830
  }
3819
- ), j2 = ({
3831
+ ), Z2 = ({
3820
3832
  width: i = 20,
3821
3833
  height: e = 20,
3822
3834
  color: t = "#070739",
@@ -3846,7 +3858,7 @@ const u2 = ({
3846
3858
  /* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
3847
3859
  ]
3848
3860
  }
3849
- ), D2 = ({
3861
+ ), W2 = ({
3850
3862
  width: i = 20,
3851
3863
  height: e = 20,
3852
3864
  color: t = "#070739",
@@ -3884,7 +3896,7 @@ const u2 = ({
3884
3896
  )
3885
3897
  ]
3886
3898
  }
3887
- ), Z2 = ({
3899
+ ), G2 = ({
3888
3900
  width: i = 9,
3889
3901
  height: e = 5,
3890
3902
  color: t = "#001E52",
@@ -3910,7 +3922,7 @@ const u2 = ({
3910
3922
  }
3911
3923
  )
3912
3924
  }
3913
- ), W2 = ({
3925
+ ), K2 = ({
3914
3926
  width: i = 20,
3915
3927
  height: e = 20,
3916
3928
  color: t = "#F2F2F7",
@@ -3939,7 +3951,7 @@ const u2 = ({
3939
3951
  )
3940
3952
  ]
3941
3953
  }
3942
- ), G2 = ({
3954
+ ), P2 = ({
3943
3955
  width: i = 20,
3944
3956
  height: e = 20,
3945
3957
  color: t = "#004ED7",
@@ -3968,7 +3980,7 @@ const u2 = ({
3968
3980
  )
3969
3981
  ]
3970
3982
  }
3971
- ), K2 = ({
3983
+ ), $2 = ({
3972
3984
  width: i = 10,
3973
3985
  height: e = 10,
3974
3986
  color: t = "#001E52",
@@ -3997,7 +4009,7 @@ const u2 = ({
3997
4009
  )
3998
4010
  ]
3999
4011
  }
4000
- ), P2 = ({
4012
+ ), F2 = ({
4001
4013
  width: i = 10,
4002
4014
  height: e = 10,
4003
4015
  color: t = "#001E52",
@@ -4034,9 +4046,9 @@ const u2 = ({
4034
4046
  )
4035
4047
  ]
4036
4048
  }
4037
- ), $2 = ({
4049
+ ), Y2 = ({
4038
4050
  className: i,
4039
- color: e = E.GREY_DARK_5,
4051
+ color: e = _.GREY_DARK_5,
4040
4052
  height: t = 24,
4041
4053
  width: s = 24,
4042
4054
  onClick: n
@@ -4073,9 +4085,9 @@ const u2 = ({
4073
4085
  )
4074
4086
  ]
4075
4087
  }
4076
- ), F2 = ({
4088
+ ), U2 = ({
4077
4089
  className: i,
4078
- color: e = E.GREY_DARK_5,
4090
+ color: e = _.GREY_DARK_5,
4079
4091
  height: t = 20,
4080
4092
  width: s = 20,
4081
4093
  onClick: n
@@ -4100,9 +4112,9 @@ const u2 = ({
4100
4112
  }
4101
4113
  )
4102
4114
  }
4103
- ), Y2 = ({
4115
+ ), z2 = ({
4104
4116
  className: i,
4105
- color: e = E.GREY_DARK_5,
4117
+ color: e = _.GREY_DARK_5,
4106
4118
  height: t = 20,
4107
4119
  width: s = 20,
4108
4120
  onClick: n
@@ -4127,9 +4139,9 @@ const u2 = ({
4127
4139
  }
4128
4140
  )
4129
4141
  }
4130
- ), U2 = ({
4142
+ ), J2 = ({
4131
4143
  className: i,
4132
- color: e = E.GREY_DARK_5,
4144
+ color: e = _.GREY_DARK_5,
4133
4145
  height: t = 5,
4134
4146
  width: s = 10,
4135
4147
  onClick: n
@@ -4151,9 +4163,9 @@ const u2 = ({
4151
4163
  }
4152
4164
  )
4153
4165
  }
4154
- ), z2 = ({
4166
+ ), q2 = ({
4155
4167
  className: i,
4156
- color: e = E.GREY_DARK_5,
4168
+ color: e = _.GREY_DARK_5,
4157
4169
  height: t = 5,
4158
4170
  width: s = 10,
4159
4171
  onClick: n
@@ -4176,9 +4188,9 @@ const u2 = ({
4176
4188
  }
4177
4189
  )
4178
4190
  }
4179
- ), J2 = ({
4191
+ ), Q2 = ({
4180
4192
  className: i,
4181
- color: e = E.GREY_DARK_5,
4193
+ color: e = _.GREY_DARK_5,
4182
4194
  height: t = 24,
4183
4195
  width: s = 24,
4184
4196
  onClick: n
@@ -4215,9 +4227,9 @@ const u2 = ({
4215
4227
  )
4216
4228
  ]
4217
4229
  }
4218
- ), q2 = ({
4230
+ ), X2 = ({
4219
4231
  className: i,
4220
- color: e = E.GREY_DARK_5,
4232
+ color: e = _.GREY_DARK_5,
4221
4233
  height: t = 24,
4222
4234
  width: s = 24,
4223
4235
  onClick: n
@@ -4254,9 +4266,9 @@ const u2 = ({
4254
4266
  )
4255
4267
  ]
4256
4268
  }
4257
- ), Q2 = ({
4269
+ ), ei = ({
4258
4270
  className: i,
4259
- color: e = E.GREY_DARK_5,
4271
+ color: e = _.GREY_DARK_5,
4260
4272
  height: t = 24,
4261
4273
  width: s = 24,
4262
4274
  onClick: n
@@ -4281,9 +4293,9 @@ const u2 = ({
4281
4293
  }
4282
4294
  )
4283
4295
  }
4284
- ), X2 = ({
4296
+ ), ti = ({
4285
4297
  className: i,
4286
- color: e = E.GREY_DARK_5,
4298
+ color: e = _.GREY_DARK_5,
4287
4299
  height: t = 24,
4288
4300
  width: s = 24,
4289
4301
  onClick: n
@@ -4340,9 +4352,9 @@ const u2 = ({
4340
4352
  )
4341
4353
  ]
4342
4354
  }
4343
- ), ei = ({
4355
+ ), ii = ({
4344
4356
  className: i,
4345
- color: e = E.GREY_DARK_5,
4357
+ color: e = _.GREY_DARK_5,
4346
4358
  height: t = 24,
4347
4359
  width: s = 24,
4348
4360
  onClick: n
@@ -4377,9 +4389,9 @@ const u2 = ({
4377
4389
  )
4378
4390
  ]
4379
4391
  }
4380
- ), ti = ({
4392
+ ), si = ({
4381
4393
  className: i,
4382
- color: e = E.GREY_DARK_3,
4394
+ color: e = _.GREY_DARK_3,
4383
4395
  height: t = 14,
4384
4396
  width: s = 14,
4385
4397
  onClick: n
@@ -4414,9 +4426,9 @@ const u2 = ({
4414
4426
  )
4415
4427
  ]
4416
4428
  }
4417
- ), ii = ({
4429
+ ), ni = ({
4418
4430
  className: i,
4419
- color: e = E.GREY_DARK_5,
4431
+ color: e = _.GREY_DARK_5,
4420
4432
  height: t = 18,
4421
4433
  onClick: s,
4422
4434
  width: n = 18
@@ -4441,9 +4453,9 @@ const u2 = ({
4441
4453
  }
4442
4454
  )
4443
4455
  }
4444
- ), si = ({
4456
+ ), ri = ({
4445
4457
  className: i,
4446
- color: e = E.GREY_DARK_5,
4458
+ color: e = _.GREY_DARK_5,
4447
4459
  height: t = 24,
4448
4460
  width: s = 24,
4449
4461
  onClick: n
@@ -4493,9 +4505,9 @@ const u2 = ({
4493
4505
  )
4494
4506
  ]
4495
4507
  }
4496
- ), ni = ({
4508
+ ), oi = ({
4497
4509
  className: i,
4498
- color: e = E.GREY_DARK_5,
4510
+ color: e = _.GREY_DARK_5,
4499
4511
  height: t = 24,
4500
4512
  width: s = 24,
4501
4513
  onClick: n
@@ -4530,9 +4542,9 @@ const u2 = ({
4530
4542
  )
4531
4543
  ]
4532
4544
  }
4533
- ), ri = ({
4545
+ ), ai = ({
4534
4546
  className: i,
4535
- color: e = E.NOTIFICATION_WARNING_DARK,
4547
+ color: e = _.NOTIFICATION_WARNING_DARK,
4536
4548
  height: t = 37,
4537
4549
  width: s = 36,
4538
4550
  onClick: n
@@ -4569,9 +4581,9 @@ const u2 = ({
4569
4581
  )
4570
4582
  ]
4571
4583
  }
4572
- ), oi = ({
4584
+ ), li = ({
4573
4585
  className: i,
4574
- color: e = E.GREY_DARK_5,
4586
+ color: e = _.GREY_DARK_5,
4575
4587
  height: t = 24,
4576
4588
  width: s = 24,
4577
4589
  onClick: n
@@ -4595,9 +4607,9 @@ const u2 = ({
4595
4607
  }
4596
4608
  )
4597
4609
  }
4598
- ), ai = ({
4610
+ ), ci = ({
4599
4611
  className: i,
4600
- color: e = E.GREY_DARK_5,
4612
+ color: e = _.GREY_DARK_5,
4601
4613
  height: t = 24,
4602
4614
  width: s = 24,
4603
4615
  onClick: n
@@ -4634,9 +4646,9 @@ const u2 = ({
4634
4646
  )
4635
4647
  ]
4636
4648
  }
4637
- ), li = ({
4649
+ ), hi = ({
4638
4650
  className: i,
4639
- color: e = E.GREY_DARK_5,
4651
+ color: e = _.GREY_DARK_5,
4640
4652
  height: t = 24,
4641
4653
  width: s = 24,
4642
4654
  onClick: n
@@ -4673,9 +4685,9 @@ const u2 = ({
4673
4685
  )
4674
4686
  ]
4675
4687
  }
4676
- ), hi = ({
4688
+ ), di = ({
4677
4689
  className: i,
4678
- color: e = E.GREY_DARK_5,
4690
+ color: e = _.GREY_DARK_5,
4679
4691
  height: t = 24,
4680
4692
  width: s = 24,
4681
4693
  onClick: n
@@ -4742,9 +4754,9 @@ const u2 = ({
4742
4754
  )
4743
4755
  ]
4744
4756
  }
4745
- ), ci = ({
4757
+ ), ui = ({
4746
4758
  className: i,
4747
- color: e = E.GREY_DARK_5,
4759
+ color: e = _.GREY_DARK_5,
4748
4760
  height: t = 24,
4749
4761
  width: s = 24,
4750
4762
  onClick: n
@@ -4799,9 +4811,9 @@ const u2 = ({
4799
4811
  )
4800
4812
  ]
4801
4813
  }
4802
- ), di = ({
4814
+ ), gi = ({
4803
4815
  className: i,
4804
- color: e = E.GREY_DARK_5,
4816
+ color: e = _.GREY_DARK_5,
4805
4817
  height: t = 24,
4806
4818
  width: s = 24,
4807
4819
  onClick: n
@@ -4838,9 +4850,9 @@ const u2 = ({
4838
4850
  )
4839
4851
  ]
4840
4852
  }
4841
- ), gi = ({
4853
+ ), Ci = ({
4842
4854
  className: i,
4843
- color: e = E.GREY_DARK_5,
4855
+ color: e = _.GREY_DARK_5,
4844
4856
  height: t = 24,
4845
4857
  width: s = 24,
4846
4858
  onClick: n
@@ -4887,9 +4899,9 @@ const u2 = ({
4887
4899
  )
4888
4900
  ]
4889
4901
  }
4890
- ), ui = ({
4902
+ ), pi = ({
4891
4903
  className: i,
4892
- color: e = E.GREY_DARK_5,
4904
+ color: e = _.GREY_DARK_5,
4893
4905
  height: t = 24,
4894
4906
  width: s = 24,
4895
4907
  onClick: n
@@ -4914,9 +4926,9 @@ const u2 = ({
4914
4926
  }
4915
4927
  )
4916
4928
  }
4917
- ), Ci = ({
4929
+ ), fi = ({
4918
4930
  className: i,
4919
- color: e = E.GREY_DARK_5,
4931
+ color: e = _.GREY_DARK_5,
4920
4932
  height: t = 20,
4921
4933
  width: s = 20,
4922
4934
  onClick: n
@@ -4931,7 +4943,7 @@ const u2 = ({
4931
4943
  fill: "none",
4932
4944
  xmlns: "http://www.w3.org/2000/svg",
4933
4945
  children: [
4934
- /* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: E.GREY_LIGHT_2 }),
4946
+ /* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: _.GREY_LIGHT_2 }),
4935
4947
  /* @__PURE__ */ r(
4936
4948
  "path",
4937
4949
  {
@@ -4943,7 +4955,7 @@ const u2 = ({
4943
4955
  )
4944
4956
  ]
4945
4957
  }
4946
- ), pi = ({
4958
+ ), mi = ({
4947
4959
  className: i,
4948
4960
  color: e = "#001E52",
4949
4961
  height: t = 24,
@@ -4969,7 +4981,7 @@ const u2 = ({
4969
4981
  }
4970
4982
  )
4971
4983
  }
4972
- ), fi = ({
4984
+ ), wi = ({
4973
4985
  className: i,
4974
4986
  color: e = "#131314",
4975
4987
  height: t = 20,
@@ -4997,7 +5009,7 @@ const u2 = ({
4997
5009
  }
4998
5010
  )
4999
5011
  }
5000
- ), mi = ({
5012
+ ), ki = ({
5001
5013
  className: i,
5002
5014
  color: e = "#001E52",
5003
5015
  height: t = 24,
@@ -5035,7 +5047,7 @@ const u2 = ({
5035
5047
  )
5036
5048
  ] }) })
5037
5049
  }
5038
- ), wi = ({
5050
+ ), Li = ({
5039
5051
  width: i = 20,
5040
5052
  height: e = 20,
5041
5053
  color: t = "#001E52",
@@ -5091,7 +5103,7 @@ const u2 = ({
5091
5103
  }
5092
5104
  )
5093
5105
  }
5094
- ), ki = ({
5106
+ ), vi = ({
5095
5107
  width: i = 24,
5096
5108
  height: e = 24,
5097
5109
  color: t = "#131314",
@@ -5124,10 +5136,10 @@ const u2 = ({
5124
5136
  )
5125
5137
  ]
5126
5138
  }
5127
- ), Li = ({
5139
+ ), Ni = ({
5128
5140
  width: i = 24,
5129
5141
  height: e = 24,
5130
- color: t = E.GREY_DARK_2,
5142
+ color: t = _.GREY_DARK_2,
5131
5143
  className: s,
5132
5144
  onClick: n
5133
5145
  }) => /* @__PURE__ */ C(
@@ -5163,10 +5175,10 @@ const u2 = ({
5163
5175
  )
5164
5176
  ]
5165
5177
  }
5166
- ), vi = ({
5178
+ ), xi = ({
5167
5179
  width: i = 24,
5168
5180
  height: e = 24,
5169
- color: t = E.GREY_DARK_2,
5181
+ color: t = _.GREY_DARK_2,
5170
5182
  className: s,
5171
5183
  onClick: n
5172
5184
  }) => /* @__PURE__ */ r(
@@ -5190,10 +5202,10 @@ const u2 = ({
5190
5202
  }
5191
5203
  )
5192
5204
  }
5193
- ), Ni = ({
5205
+ ), Ri = ({
5194
5206
  width: i = 24,
5195
5207
  height: e = 24,
5196
- color: t = E.GREY_DARK_2,
5208
+ color: t = _.GREY_DARK_2,
5197
5209
  className: s,
5198
5210
  onClick: n
5199
5211
  }) => /* @__PURE__ */ C(
@@ -5230,10 +5242,10 @@ const u2 = ({
5230
5242
  )
5231
5243
  ]
5232
5244
  }
5233
- ), xi = ({
5245
+ ), Mi = ({
5234
5246
  width: i = 24,
5235
5247
  height: e = 24,
5236
- color: t = E.GREY_DARK_2,
5248
+ color: t = _.GREY_DARK_2,
5237
5249
  className: s,
5238
5250
  onClick: n
5239
5251
  }) => /* @__PURE__ */ r(
@@ -5257,10 +5269,10 @@ const u2 = ({
5257
5269
  }
5258
5270
  )
5259
5271
  }
5260
- ), Ri = ({
5272
+ ), bi = ({
5261
5273
  width: i = 24,
5262
5274
  height: e = 24,
5263
- color: t = E.GREY_DARK_2,
5275
+ color: t = _.GREY_DARK_2,
5264
5276
  className: s,
5265
5277
  onClick: n
5266
5278
  }) => /* @__PURE__ */ r(
@@ -5284,7 +5296,7 @@ const u2 = ({
5284
5296
  }
5285
5297
  )
5286
5298
  }
5287
- ), Mi = ({
5299
+ ), yi = ({
5288
5300
  width: i = 20,
5289
5301
  height: e = 20,
5290
5302
  color: t = "#001E52",
@@ -5310,218 +5322,218 @@ const u2 = ({
5310
5322
  }
5311
5323
  )
5312
5324
  }
5313
- ), yi = ({
5325
+ ), Ei = ({
5314
5326
  name: i,
5315
5327
  width: e,
5316
5328
  height: t,
5317
5329
  color: s,
5318
5330
  className: n,
5319
5331
  disabled: o = !1,
5320
- onClick: c
5332
+ onClick: h
5321
5333
  }) => {
5322
- const [a, d] = A(n), { theme: g } = r1(he), l = o ? g && g === "dark" ? E.GREY_LIGHT_4 : E.GREY_DARK_1 : s, h = o ? void 0 : c;
5323
- return j(() => {
5334
+ const [a, u] = V(n), { theme: d } = r1(he), l = o ? d && d === "dark" ? _.GREY_LIGHT_4 : _.GREY_DARK_1 : s, c = o ? void 0 : h;
5335
+ return T(() => {
5324
5336
  if (n) {
5325
- h && !o && d(`${n} clickable`);
5337
+ c && !o && u(`${n} clickable`);
5326
5338
  return;
5327
5339
  }
5328
- h && !o && d("clickable");
5329
- }, [h, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
5340
+ c && !o && u("clickable");
5341
+ }, [c, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
5330
5342
  switch (i) {
5331
5343
  case "nextIcon":
5332
- return F2({ width: e, height: t, color: l, className: a, onClick: h });
5344
+ return U2({ width: e, height: t, color: l, className: a, onClick: c });
5333
5345
  case "prevIcon":
5334
- return Y2({ width: e, height: t, color: l, className: a, onClick: h });
5346
+ return z2({ width: e, height: t, color: l, className: a, onClick: c });
5335
5347
  case "arrowDown":
5336
- return u2({ width: e, height: t, color: l, className: a, onClick: h });
5348
+ return p2({ width: e, height: t, color: l, className: a, onClick: c });
5337
5349
  case "info":
5338
- return C2({ width: e, height: t, color: l, className: a, onClick: h });
5350
+ return f2({ width: e, height: t, color: l, className: a, onClick: c });
5339
5351
  case "arrowRight":
5340
- return p2({ width: e, height: t, color: l, className: a, onClick: h });
5352
+ return m2({ width: e, height: t, color: l, className: a, onClick: c });
5341
5353
  case "calendar":
5342
- return f2({ width: e, height: t, color: l, className: a, onClick: h });
5354
+ return w2({ width: e, height: t, color: l, className: a, onClick: c });
5343
5355
  case "ok":
5344
- return m2({ width: e, height: t, color: l, className: a, onClick: h });
5356
+ return k2({ width: e, height: t, color: l, className: a, onClick: c });
5345
5357
  case "cancel":
5346
- return w2({ width: e, height: t, color: l, className: a, onClick: h });
5358
+ return L2({ width: e, height: t, color: l, className: a, onClick: c });
5347
5359
  case "add":
5348
- return k2({ width: e, height: t, color: l, className: a, onClick: h });
5360
+ return v2({ width: e, height: t, color: l, className: a, onClick: c });
5349
5361
  case "list":
5350
- return L2({ width: e, height: t, color: l, className: a, onClick: h });
5362
+ return N2({ width: e, height: t, color: l, className: a, onClick: c });
5351
5363
  case "dragAndDrop":
5352
- return v2({ width: e, height: t, color: l, className: a, onClick: h });
5364
+ return x2({ width: e, height: t, color: l, className: a, onClick: c });
5353
5365
  case "filter":
5354
- return N2({ width: e, height: t, color: l, className: a, onClick: h });
5366
+ return R2({ width: e, height: t, color: l, className: a, onClick: c });
5355
5367
  case "attention":
5356
- return x2({ width: e, height: t, color: l, className: a, onClick: h });
5368
+ return M2({ width: e, height: t, color: l, className: a, onClick: c });
5357
5369
  case "users":
5358
- return R2({ width: e, height: t, color: l, className: a, onClick: h });
5370
+ return b2({ width: e, height: t, color: l, className: a, onClick: c });
5359
5371
  case "mySkillsMatrix":
5360
- return M2({
5372
+ return y2({
5361
5373
  width: e,
5362
5374
  height: t,
5363
5375
  color: l,
5364
5376
  className: a,
5365
- onClick: h
5377
+ onClick: c
5366
5378
  });
5367
5379
  case "skills":
5368
- return y2({ width: e, height: t, color: l, className: a, onClick: h });
5380
+ return E2({ width: e, height: t, color: l, className: a, onClick: c });
5369
5381
  case "skillsMatrices":
5370
- return b2({
5382
+ return _2({
5371
5383
  width: e,
5372
5384
  height: t,
5373
5385
  color: l,
5374
5386
  className: a,
5375
- onClick: h
5387
+ onClick: c
5376
5388
  });
5377
5389
  case "history":
5378
- return E2({ width: e, height: t, color: l, className: a, onClick: h });
5390
+ return H2({ width: e, height: t, color: l, className: a, onClick: c });
5379
5391
  case "logOut":
5380
- return _2({ width: e, height: t, color: l, className: a, onClick: h });
5392
+ return I2({ width: e, height: t, color: l, className: a, onClick: c });
5381
5393
  case "settings":
5382
- return H2({ width: e, height: t, color: l, className: a, onClick: h });
5394
+ return O2({ width: e, height: t, color: l, className: a, onClick: c });
5383
5395
  case "trash":
5384
- return I2({ width: e, height: t, color: l, className: a, onClick: h });
5396
+ return S2({ width: e, height: t, color: l, className: a, onClick: c });
5385
5397
  case "settings4":
5386
- return O2({ width: e, height: t, color: l, className: a, onClick: h });
5398
+ return V2({ width: e, height: t, color: l, className: a, onClick: c });
5387
5399
  case "success":
5388
- return S2({ width: e, height: t, color: l, className: a, onClick: h });
5400
+ return A2({ width: e, height: t, color: l, className: a, onClick: c });
5389
5401
  case "errorSmall":
5390
- return V2({ width: e, height: t, color: l, className: a, onClick: h });
5402
+ return T2({ width: e, height: t, color: l, className: a, onClick: c });
5391
5403
  case "infoMedium":
5392
- return A2({ width: e, height: t, color: l, className: a, onClick: h });
5404
+ return B2({ width: e, height: t, color: l, className: a, onClick: c });
5393
5405
  case "attentionMedium":
5394
- return T2({
5406
+ return j2({
5395
5407
  width: e,
5396
5408
  height: t,
5397
5409
  color: l,
5398
5410
  className: a,
5399
- onClick: h
5411
+ onClick: c
5400
5412
  });
5401
5413
  case "errorMedium":
5402
- return B2({ width: e, height: t, color: l, className: a, onClick: h });
5414
+ return D2({ width: e, height: t, color: l, className: a, onClick: c });
5403
5415
  case "visibilityIcon":
5404
- return j2({
5416
+ return Z2({
5405
5417
  width: e,
5406
5418
  height: t,
5407
5419
  color: l,
5408
5420
  className: a,
5409
- onClick: h
5421
+ onClick: c
5410
5422
  });
5411
5423
  case "visibilityOffIcon":
5412
- return D2({
5424
+ return W2({
5413
5425
  width: e,
5414
5426
  height: t,
5415
5427
  color: l,
5416
5428
  className: a,
5417
- onClick: h
5429
+ onClick: c
5418
5430
  });
5419
5431
  case "selectArrowIcon":
5420
- return Z2({
5432
+ return G2({
5421
5433
  width: e,
5422
5434
  height: t,
5423
5435
  color: l,
5424
5436
  className: a,
5425
- onClick: h
5437
+ onClick: c
5426
5438
  });
5427
5439
  case "expandArrowIcon":
5428
- return W2({
5440
+ return K2({
5429
5441
  width: e,
5430
5442
  height: t,
5431
5443
  color: l,
5432
5444
  className: a,
5433
- onClick: h
5445
+ onClick: c
5434
5446
  });
5435
5447
  case "expandActiveArrowIcon":
5436
- return G2({
5448
+ return P2({
5437
5449
  width: e,
5438
5450
  height: t,
5439
5451
  color: l,
5440
5452
  className: a,
5441
- onClick: h
5453
+ onClick: c
5442
5454
  });
5443
5455
  case "sortUp":
5444
- return K2({ width: e, height: t, color: l, className: a, onClick: h });
5456
+ return $2({ width: e, height: t, color: l, className: a, onClick: c });
5445
5457
  case "sortDown":
5446
- return P2({ width: e, height: t, color: l, className: a, onClick: h });
5458
+ return F2({ width: e, height: t, color: l, className: a, onClick: c });
5447
5459
  case "search":
5448
- return $2({ width: e, height: t, color: l, className: a, onClick: h });
5460
+ return Y2({ width: e, height: t, color: l, className: a, onClick: c });
5449
5461
  case "arrowUpFilled":
5450
- return z2({ width: e, height: t, color: l, className: a, onClick: h });
5462
+ return q2({ width: e, height: t, color: l, className: a, onClick: c });
5451
5463
  case "arrowDownFilled":
5452
- return U2({ width: e, height: t, color: l, className: a, onClick: h });
5464
+ return J2({ width: e, height: t, color: l, className: a, onClick: c });
5453
5465
  case "link":
5454
- return J2({ width: e, height: t, color: l, className: a, onClick: h });
5466
+ return Q2({ width: e, height: t, color: l, className: a, onClick: c });
5455
5467
  case "telegram":
5456
- return Q2({ width: e, height: t, color: l, className: a, onClick: h });
5468
+ return ei({ width: e, height: t, color: l, className: a, onClick: c });
5457
5469
  case "mail":
5458
- return ei({ width: e, height: t, color: l, className: a, onClick: h });
5470
+ return ii({ width: e, height: t, color: l, className: a, onClick: c });
5459
5471
  case "github":
5460
- return q2({ width: e, height: t, color: l, className: a, onClick: h });
5472
+ return X2({ width: e, height: t, color: l, className: a, onClick: c });
5461
5473
  case "linkedIn":
5462
- return X2({ width: e, height: t, color: l, className: a, onClick: h });
5474
+ return ti({ width: e, height: t, color: l, className: a, onClick: c });
5463
5475
  case "emptyStateIcon":
5464
- return ti({ width: e, height: t, color: l, className: a, onClick: h });
5476
+ return si({ width: e, height: t, color: l, className: a, onClick: c });
5465
5477
  case "filtersIcon":
5466
- return ii({ width: e, height: t, color: l, className: a, onClick: h });
5478
+ return ni({ width: e, height: t, color: l, className: a, onClick: c });
5467
5479
  case "dotMenuIcon":
5468
- return si({ width: e, height: t, color: l, className: a, onClick: h });
5480
+ return ri({ width: e, height: t, color: l, className: a, onClick: c });
5469
5481
  case "plusCircle":
5470
- return ni({ width: e, height: t, color: l, className: a, onClick: h });
5482
+ return oi({ width: e, height: t, color: l, className: a, onClick: c });
5471
5483
  case "warning":
5472
- return ri({ width: e, height: t, color: l, className: a, onClick: h });
5484
+ return ai({ width: e, height: t, color: l, className: a, onClick: c });
5473
5485
  case "back":
5474
- return oi({ width: e, height: t, color: l, className: a, onClick: h });
5486
+ return li({ width: e, height: t, color: l, className: a, onClick: c });
5475
5487
  case "bell":
5476
- return ai({ width: e, height: t, color: l, className: a, onClick: h });
5488
+ return ci({ width: e, height: t, color: l, className: a, onClick: c });
5477
5489
  case "contract":
5478
- return hi({ width: e, height: t, color: l, className: a, onClick: h });
5490
+ return di({ width: e, height: t, color: l, className: a, onClick: c });
5479
5491
  case "trash2":
5480
- return li({ width: e, height: t, color: l, className: a, onClick: h });
5492
+ return hi({ width: e, height: t, color: l, className: a, onClick: c });
5481
5493
  case "resourceManager":
5482
- return ci({ width: e, height: t, color: l, className: a, onClick: h });
5494
+ return ui({ width: e, height: t, color: l, className: a, onClick: c });
5483
5495
  case "settings2":
5484
- return di({ width: e, height: t, color: l, className: a, onClick: h });
5496
+ return gi({ width: e, height: t, color: l, className: a, onClick: c });
5485
5497
  case "image":
5486
- return gi({ width: e, height: t, color: l, className: a, onClick: h });
5498
+ return Ci({ width: e, height: t, color: l, className: a, onClick: c });
5487
5499
  case "edit":
5488
- return ui({ width: e, height: t, color: l, className: a, onClick: h });
5500
+ return pi({ width: e, height: t, color: l, className: a, onClick: c });
5489
5501
  case "filledArrowRight":
5490
- return Ci({ width: e, height: t, color: l, className: a, onClick: h });
5502
+ return fi({ width: e, height: t, color: l, className: a, onClick: c });
5491
5503
  case "burgerMenu":
5492
- return pi({ width: e, height: t, color: l, className: a, onClick: h });
5504
+ return mi({ width: e, height: t, color: l, className: a, onClick: c });
5493
5505
  case "signOut":
5494
- return fi({ width: e, height: t, color: l, className: a, onClick: h });
5506
+ return wi({ width: e, height: t, color: l, className: a, onClick: c });
5495
5507
  case "refresh":
5496
- return mi({ width: e, height: t, color: l, className: a, onClick: h });
5508
+ return ki({ width: e, height: t, color: l, className: a, onClick: c });
5497
5509
  case "projects":
5498
- return wi({ width: e, height: t, color: l, className: a, onClick: h });
5510
+ return Li({ width: e, height: t, color: l, className: a, onClick: c });
5499
5511
  case "profile":
5500
- return Mi({ width: e, height: t, color: l, className: a, onClick: h });
5512
+ return yi({ width: e, height: t, color: l, className: a, onClick: c });
5501
5513
  case "exit":
5502
- return ki({ width: e, height: t, color: l, className: a, onClick: h });
5514
+ return vi({ width: e, height: t, color: l, className: a, onClick: c });
5503
5515
  case "client":
5504
- return Li({ width: e, height: t, color: l, className: a, onClick: h });
5516
+ return Ni({ width: e, height: t, color: l, className: a, onClick: c });
5505
5517
  case "calendar2":
5506
- return vi({ width: e, height: t, color: l, className: a, onClick: h });
5518
+ return xi({ width: e, height: t, color: l, className: a, onClick: c });
5507
5519
  case "openPointCircle":
5508
- return Ni({ width: e, height: t, color: l, className: a, onClick: h });
5520
+ return Ri({ width: e, height: t, color: l, className: a, onClick: c });
5509
5521
  case "community":
5510
- return xi({ width: e, height: t, color: l, className: a, onClick: h });
5522
+ return Mi({ width: e, height: t, color: l, className: a, onClick: c });
5511
5523
  case "docs":
5512
- return Ri({ width: e, height: t, color: l, className: a, onClick: h });
5524
+ return bi({ width: e, height: t, color: l, className: a, onClick: c });
5513
5525
  default:
5514
5526
  return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
5515
5527
  }
5516
5528
  })() });
5517
5529
  };
5518
5530
  var f1 = /* @__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.BLUE_DARK_3 = "var(--blue-dark-3)", 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))(f1 || {});
5519
- const bi = d1({
5531
+ const _i = d1({
5520
5532
  locale: "en",
5521
5533
  theme: "light"
5522
5534
  });
5523
- bi.Provider;
5524
- const ce = ({
5535
+ _i.Provider;
5536
+ const de = ({
5525
5537
  children: i,
5526
5538
  width: e,
5527
5539
  size: t = "small",
@@ -5529,20 +5541,20 @@ const ce = ({
5529
5541
  closable: n = !0,
5530
5542
  disabled: o = !1
5531
5543
  }) => {
5532
- const c = t === "small" ? 10 : 12.5, a = () => {
5544
+ const h = t === "small" ? 10 : 12.5, a = () => {
5533
5545
  o || s == null || s();
5534
5546
  };
5535
5547
  return /* @__PURE__ */ r(
5536
- Me,
5548
+ be,
5537
5549
  {
5538
5550
  className: `snmt-tag ${t} ${o ? "disabled" : ""}`,
5539
5551
  closeIcon: /* @__PURE__ */ r(
5540
- yi,
5552
+ Ei,
5541
5553
  {
5542
5554
  name: "errorSmall",
5543
5555
  color: o ? f1.GREY_DARK_1 : f1.GREY_DARK_2,
5544
- width: c,
5545
- height: c,
5556
+ width: h,
5557
+ height: h,
5546
5558
  onClick: a
5547
5559
  }
5548
5560
  ),
@@ -5550,7 +5562,7 @@ const ce = ({
5550
5562
  style: { width: e ?? "fit-content" },
5551
5563
  closable: n,
5552
5564
  children: typeof i == "string" ? /* @__PURE__ */ r(
5553
- g2,
5565
+ C2,
5554
5566
  {
5555
5567
  variant: t === "small" ? "body4" : "body2",
5556
5568
  color: o ? f1.GREY_DARK_2 : f1.GREY_DARK_5,
@@ -5559,12 +5571,22 @@ const ce = ({
5559
5571
  ) : i
5560
5572
  }
5561
5573
  );
5562
- }, { Title: Ei, Text: _i } = re, Hi = {
5574
+ }, Hi = ({ children: i, title: e, arrow: t = !0, open: s, placement: n = "top" }) => /* @__PURE__ */ r(
5575
+ re,
5576
+ {
5577
+ overlayClassName: "snmt-tooltip",
5578
+ title: e,
5579
+ arrow: t,
5580
+ open: s,
5581
+ placement: n,
5582
+ children: i
5583
+ }
5584
+ ), { Title: Ii, Text: Oi } = oe, Si = {
5563
5585
  h1: 1,
5564
5586
  h2: 2,
5565
5587
  h3: 3,
5566
5588
  h4: 4
5567
- }, Ii = k1(
5589
+ }, Vi = k1(
5568
5590
  ({
5569
5591
  align: i = "inherit",
5570
5592
  variant: e = "body1",
@@ -5572,32 +5594,34 @@ const ce = ({
5572
5594
  children: s,
5573
5595
  onClick: n,
5574
5596
  collapsed: o,
5575
- whiteSpace: c = "normal"
5576
- }, a) => {
5577
- const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
5578
- let g = `snmt-typography snmt-typography-${e}`;
5579
- return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), o && (g += " collapsed"), d ? /* @__PURE__ */ r(
5580
- Ei,
5581
- {
5582
- className: g,
5583
- style: { color: t, whiteSpace: c },
5584
- onClick: n,
5585
- level: Hi[e],
5586
- ref: a,
5587
- children: s
5588
- }
5589
- ) : /* @__PURE__ */ r(
5590
- _i,
5591
- {
5592
- className: g,
5593
- style: { color: t, whiteSpace: c },
5594
- onClick: n,
5595
- ref: a,
5596
- children: s
5597
- }
5598
- );
5599
- }
5600
- ), Oi = ({
5597
+ whiteSpace: h = "normal",
5598
+ /** This prop allows you to enable tooltip if text size is too big */
5599
+ trim: a = !1
5600
+ }, u) => {
5601
+ const d = Y(null);
5602
+ E1(u, () => d.current);
5603
+ const [l, c] = V(!1);
5604
+ T(() => {
5605
+ if (!a) return;
5606
+ const w = () => {
5607
+ d.current && c(d.current.scrollWidth > d.current.clientWidth);
5608
+ }, y = new ResizeObserver(w);
5609
+ return d.current && y.observe(d.current), () => {
5610
+ y.disconnect();
5611
+ };
5612
+ }, [a, l]);
5613
+ const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
5614
+ let p = `snmt-typography snmt-typography-${e}`;
5615
+ i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed"), a && (p += " collapsed");
5616
+ const m = {
5617
+ className: p,
5618
+ style: { color: t, whiteSpace: a ? "nowrap" : h },
5619
+ onClick: n,
5620
+ ref: d
5621
+ }, v = g ? /* @__PURE__ */ r(Ii, { level: Si[e], ...m, children: s }) : /* @__PURE__ */ r(Oi, { ...m, children: s });
5622
+ return a && l ? /* @__PURE__ */ r(Hi, { placement: "top", title: s, children: v }) : v;
5623
+ }
5624
+ ), Ai = ({
5601
5625
  children: i,
5602
5626
  content: e,
5603
5627
  isOpen: t,
@@ -5605,7 +5629,7 @@ const ce = ({
5605
5629
  placement: n = "topRight",
5606
5630
  noPadding: o = !1
5607
5631
  }) => {
5608
- const [c, a] = A(!1);
5632
+ const [h, a] = V(!1);
5609
5633
  return /* @__PURE__ */ r(
5610
5634
  ye,
5611
5635
  {
@@ -5614,70 +5638,70 @@ const ce = ({
5614
5638
  placement: n,
5615
5639
  trigger: "click",
5616
5640
  overlayClassName: `snmt-popover ${o ? "" : "padding"}`,
5617
- open: t ?? c,
5618
- onOpenChange: (d) => {
5619
- a(d), s == null || s(d);
5641
+ open: t ?? h,
5642
+ onOpenChange: (u) => {
5643
+ a(u), s == null || s(u);
5620
5644
  },
5621
5645
  children: /* @__PURE__ */ r("div", { className: "wrapper", children: i })
5622
5646
  }
5623
5647
  );
5624
5648
  };
5625
- var Si = { exports: {} };
5649
+ var Ti = { exports: {} };
5626
5650
  (function(i, e) {
5627
5651
  (function(t, s) {
5628
5652
  i.exports = s();
5629
- })(He, function() {
5653
+ })(Ie, function() {
5630
5654
  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) {
5631
5655
  var s = ["th", "st", "nd", "rd"], n = t % 100;
5632
5656
  return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
5633
5657
  } };
5634
5658
  });
5635
- })(Si);
5636
- const Vi = ({
5659
+ })(Ti);
5660
+ const Bi = ({
5637
5661
  values: i,
5638
5662
  onTagClose: e,
5639
5663
  maxWidth: t,
5640
5664
  closable: s = !0,
5641
5665
  disabled: n,
5642
5666
  options: o,
5643
- extraOptions: c
5667
+ extraOptions: h
5644
5668
  }) => {
5645
- const { locale: a } = r1(T1), { t: d } = Ye("common", { lng: a }), [g, l] = A(!1);
5646
- if (j(() => {
5669
+ const { locale: a } = r1(B1), { t: u } = Ue("common", { lng: a }), [d, l] = V(!1);
5670
+ if (T(() => {
5647
5671
  i.length || l(!1);
5648
5672
  }, [i]), !i.length)
5649
5673
  return null;
5650
- const h = (u) => {
5651
- var p, v;
5652
- return ((p = o == null ? void 0 : o.find((x) => x.value === u)) == null ? void 0 : p.label) || ((v = c == null ? void 0 : c.find((x) => x.value === u)) == null ? void 0 : v.label) || u;
5674
+ const c = (g) => {
5675
+ var p, m;
5676
+ return ((p = o == null ? void 0 : o.find((v) => v.value === g)) == null ? void 0 : p.label) || ((m = h == null ? void 0 : h.find((v) => v.value === g)) == null ? void 0 : m.label) || g;
5653
5677
  };
5654
5678
  return /* @__PURE__ */ C(
5655
- Oi,
5679
+ Ai,
5656
5680
  {
5657
5681
  content: (
5658
5682
  // 90: paddings + margins + gaps and so on
5659
- /* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ r(p1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: u }) => /* @__PURE__ */ r(
5660
- ce,
5683
+ /* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ r(p1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: g }) => /* @__PURE__ */ r(
5684
+ de,
5661
5685
  {
5662
- onClose: () => e(u),
5686
+ onClose: () => e(g),
5663
5687
  closable: s,
5664
5688
  disabled: n,
5665
- children: h(u)
5689
+ children: c(g)
5666
5690
  },
5667
- u
5691
+ g
5668
5692
  )) }) })
5669
5693
  ),
5670
5694
  placement: "bottomRight",
5671
- isOpen: g,
5695
+ isOpen: d,
5672
5696
  setIsOpen: l,
5673
5697
  children: [
5674
5698
  i.length,
5675
5699
  " ",
5676
- d("more")
5700
+ u("more")
5677
5701
  ]
5678
5702
  }
5679
5703
  );
5680
- }, W1 = ({ size: i = 30, color: e = "#004ed7" }) => {
5704
+ }, G1 = ({ size: i = 30, color: e = "#004ed7" }) => {
5681
5705
  const t = `no-repeat linear-gradient(${e}
5682
5706
  calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
5683
5707
  width: i,
@@ -5685,7 +5709,7 @@ const Vi = ({
5685
5709
  backgroundSize: "20% calc(200% + 20px)"
5686
5710
  };
5687
5711
  return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
5688
- }, G1 = k1(
5712
+ }, K1 = k1(
5689
5713
  ({
5690
5714
  value: i,
5691
5715
  onChange: e,
@@ -5693,45 +5717,45 @@ const Vi = ({
5693
5717
  mode: s,
5694
5718
  search: n = !1,
5695
5719
  options: o,
5696
- width: c,
5720
+ width: h,
5697
5721
  disabled: a = !1,
5698
- required: d = !1,
5699
- clearable: g = !1,
5722
+ required: u = !1,
5723
+ clearable: d = !1,
5700
5724
  scrollThresholdValue: l = 50,
5701
- onSearchChange: h,
5702
- onDropdownVisibleChange: u,
5725
+ onSearchChange: c,
5726
+ onDropdownVisibleChange: g,
5703
5727
  onScrollToEnd: p,
5704
- onPopupScroll: v,
5705
- id: x,
5706
- extraOptions: L,
5707
- dropdownRender: _,
5728
+ onPopupScroll: m,
5729
+ id: v,
5730
+ extraOptions: w,
5731
+ dropdownRender: y,
5708
5732
  optionRender: M,
5709
5733
  isLoading: H,
5710
5734
  readOnly: f,
5711
- error: m
5712
- }, N) => {
5713
- const [w, I] = A(!1), [T, D] = A(!1), [G, Q] = A(!0), [O, K] = A(i), U = Y(null);
5714
- j(() => {
5735
+ error: k
5736
+ }, x) => {
5737
+ const [L, I] = V(!1), [B, D] = V(!1), [G, Q] = V(!0), [O, K] = V(i), U = Y(null);
5738
+ T(() => {
5715
5739
  K(i);
5716
5740
  }, [i]);
5717
- const q = (k) => {
5718
- I(k), u && u(k);
5719
- }, X = (k, y) => {
5720
- var V;
5721
- return !!((V = y == null ? void 0 : y.label) != null && V.toString().toLowerCase().includes(k.toLowerCase()));
5722
- }, B = () => {
5741
+ const q = (N) => {
5742
+ I(N), g && g(N);
5743
+ }, X = (N, b) => {
5744
+ var A;
5745
+ return !!((A = b == null ? void 0 : b.label) != null && A.toString().toLowerCase().includes(N.toLowerCase()));
5746
+ }, j = () => {
5723
5747
  D(!0);
5724
5748
  }, $ = () => {
5725
5749
  D(!1);
5726
5750
  }, P = Z(
5727
- (k) => {
5728
- if (K(k), s) {
5729
- const V = k;
5730
- e == null || e(V);
5751
+ (N) => {
5752
+ if (K(N), s) {
5753
+ const A = N;
5754
+ e == null || e(A);
5731
5755
  return;
5732
5756
  }
5733
- const y = k;
5734
- e == null || e(y);
5757
+ const b = N;
5758
+ e == null || e(b);
5735
5759
  },
5736
5760
  [s, e]
5737
5761
  ), e1 = Z(() => {
@@ -5743,93 +5767,93 @@ const Vi = ({
5743
5767
  P("");
5744
5768
  }
5745
5769
  }, [a, P, s, f]), t1 = Z(
5746
- (k) => {
5747
- const y = O.filter((V) => V !== k);
5748
- P(y), K(y);
5770
+ (N) => {
5771
+ const b = O.filter((A) => A !== N);
5772
+ P(b), K(b);
5749
5773
  },
5750
5774
  [P, O]
5751
- ), g1 = Z(
5752
- (k) => (O == null ? void 0 : O.indexOf(k)) === 0 ? (
5775
+ ), u1 = Z(
5776
+ (N) => (O == null ? void 0 : O.indexOf(N)) === 0 ? (
5753
5777
  // if the search input is empty
5754
5778
  // then display the placeholder, else do not display it
5755
5779
  /* @__PURE__ */ r("span", { className: "custom-placeholder", children: G ? t : "" })
5756
5780
  ) : /* @__PURE__ */ r(i1, {}),
5757
5781
  [G, O, t]
5758
- ), L1 = (k) => {
5759
- k.preventDefault(), k.stopPropagation();
5760
- }, v1 = async (k) => {
5761
- const { target: y } = k;
5762
- y.scrollTop + y.offsetHeight >= y.scrollHeight - l && (p == null || p(!0)), v && await v(k);
5782
+ ), L1 = (N) => {
5783
+ N.preventDefault(), N.stopPropagation();
5784
+ }, v1 = async (N) => {
5785
+ const { target: b } = N;
5786
+ b.scrollTop + b.offsetHeight >= b.scrollHeight - l && (p == null || p(!0)), m && await m(N);
5763
5787
  }, o1 = Z(
5764
- (k) => {
5765
- var y, V;
5766
- return ((y = o.find((a1) => a1.value === k)) == null ? void 0 : y.label) || ((V = L == null ? void 0 : L.find(
5767
- (a1) => a1.value === k
5768
- )) == null ? void 0 : V.label) || k;
5788
+ (N) => {
5789
+ var b, A;
5790
+ return ((b = o.find((a1) => a1.value === N)) == null ? void 0 : b.label) || ((A = w == null ? void 0 : w.find(
5791
+ (a1) => a1.value === N
5792
+ )) == null ? void 0 : A.label) || N;
5769
5793
  },
5770
- [L, o]
5794
+ [w, o]
5771
5795
  ), N1 = Z(
5772
- (k) => {
5773
- var y;
5796
+ (N) => {
5797
+ var b;
5774
5798
  return /* @__PURE__ */ r(
5775
- Vi,
5799
+ Bi,
5776
5800
  {
5777
- values: k,
5801
+ values: N,
5778
5802
  onTagClose: t1,
5779
- maxWidth: ((y = U.current) == null ? void 0 : y.clientWidth) || 0,
5803
+ maxWidth: ((b = U.current) == null ? void 0 : b.clientWidth) || 0,
5780
5804
  disabled: a,
5781
5805
  closable: !f,
5782
5806
  options: o,
5783
- extraOptions: L
5807
+ extraOptions: w
5784
5808
  }
5785
5809
  );
5786
5810
  },
5787
- [a, L, t1, o, f]
5811
+ [a, w, t1, o, f]
5788
5812
  ), S = Z(
5789
- ({ label: k, value: y, mode: V }) => V === "filter" ? g1(y) : /* @__PURE__ */ r("div", { onMouseDown: L1, className: "tag-wrapper", children: /* @__PURE__ */ r(ce, { onClose: () => t1(y), disabled: a, children: typeof k == "object" ? k : o1(y) }) }),
5790
- [a, o1, t1, g1]
5813
+ ({ label: N, value: b, mode: A }) => A === "filter" ? u1(b) : /* @__PURE__ */ r("div", { onMouseDown: L1, className: "tag-wrapper", children: /* @__PURE__ */ r(de, { onClose: () => t1(b), disabled: a, children: typeof N == "object" ? N : o1(b) }) }),
5814
+ [a, o1, t1, u1]
5791
5815
  ), F = Array.isArray(O) && O.length > 0 || !!O && typeof O == "string" && O.trim() !== "";
5792
5816
  return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
5793
5817
  /* @__PURE__ */ C(
5794
5818
  "div",
5795
5819
  {
5796
- className: `snmt-select-1-15-6 ${T ? "snmt-select-focused" : ""}
5820
+ className: `snmt-select-1-15-6 ${B ? "snmt-select-focused" : ""}
5797
5821
  ${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
5798
5822
  ref: U,
5799
- style: { width: c },
5823
+ style: { width: h },
5800
5824
  children: [
5801
5825
  /* @__PURE__ */ r(
5802
- ve,
5826
+ Ne,
5803
5827
  {
5804
5828
  className: "snmt-select-blank",
5805
5829
  popupClassName: f ? "dropdown-read-only" : "",
5806
- id: x,
5807
- ref: N,
5830
+ id: v,
5831
+ ref: x,
5808
5832
  showSearch: !!n,
5809
5833
  filterOption: n && X,
5810
5834
  onDropdownVisibleChange: q,
5811
5835
  disabled: a,
5812
5836
  value: O || void 0,
5813
- labelRender: (k) => {
5814
- const y = o1(k.value);
5815
- return a ? /* @__PURE__ */ r("span", { style: { color: z.GREY_DARK_1 }, children: y }) : y;
5837
+ labelRender: (N) => {
5838
+ const b = o1(N.value);
5839
+ return a ? /* @__PURE__ */ r("span", { style: { color: z.GREY_DARK_1 }, children: b }) : b;
5816
5840
  },
5817
5841
  mode: s === "filter" ? "multiple" : s,
5818
5842
  onChange: P,
5819
- onFocus: B,
5843
+ onFocus: j,
5820
5844
  onBlur: $,
5821
- onSearch: (k) => {
5822
- Q(!k), h && h(k);
5845
+ onSearch: (N) => {
5846
+ Q(!N), c && c(N);
5823
5847
  },
5824
5848
  onSelect: () => Q(!0),
5825
5849
  onDeselect: () => Q(!0),
5826
- tagRender: (k) => S({ ...k, mode: s }),
5850
+ tagRender: (N) => S({ ...N, mode: s }),
5827
5851
  maxTagCount: "responsive",
5828
5852
  maxTagPlaceholder: N1,
5829
5853
  onPopupScroll: v1,
5830
- prefix: H && /* @__PURE__ */ r(W1, { size: 15 }),
5854
+ prefix: H && /* @__PURE__ */ r(G1, { size: 15 }),
5831
5855
  suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(i1, { children: [
5832
- O && !!O.length && (s || g) && /* @__PURE__ */ r(
5856
+ O && !!O.length && (s || d) && /* @__PURE__ */ r(
5833
5857
  "div",
5834
5858
  {
5835
5859
  onClick: e1,
@@ -5837,7 +5861,7 @@ const Vi = ({
5837
5861
  cursor: a ? "not-allowed" : "pointer"
5838
5862
  },
5839
5863
  children: /* @__PURE__ */ r(
5840
- u1,
5864
+ g1,
5841
5865
  {
5842
5866
  name: "cancel",
5843
5867
  color: a ? z.GREY_DARK_1 : z.GREY_DARK_5
@@ -5846,32 +5870,32 @@ const Vi = ({
5846
5870
  }
5847
5871
  ),
5848
5872
  /* @__PURE__ */ r(
5849
- u1,
5873
+ g1,
5850
5874
  {
5851
5875
  name: "selectArrowIcon",
5852
5876
  color: a ? z.GREY_DARK_1 : z.GREY_DARK_5,
5853
- className: w ? "select-arrow-rotated" : "select-arrow",
5854
- onClick: () => I(!w)
5877
+ className: L ? "select-arrow-rotated" : "select-arrow",
5878
+ onClick: () => I(!L)
5855
5879
  }
5856
5880
  )
5857
5881
  ] }) }),
5858
- removeIcon: /* @__PURE__ */ r(u1, { name: "errorSmall", color: z.GREY_DARK_1 }),
5882
+ removeIcon: /* @__PURE__ */ r(g1, { name: "errorSmall", color: z.GREY_DARK_1 }),
5859
5883
  options: o,
5860
- optionRender: (k) => M ? M(k.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
5884
+ optionRender: (N) => M ? M(N.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
5861
5885
  /* @__PURE__ */ C(p1, { alignItems: "center", gap: 12, children: [
5862
5886
  s && /* @__PURE__ */ r(
5863
- ze,
5887
+ Je,
5864
5888
  {
5865
- checked: !!(O != null && O.includes(k.value))
5889
+ checked: !!(O != null && O.includes(N.value))
5866
5890
  }
5867
5891
  ),
5868
5892
  /* @__PURE__ */ C(p1, { alignItems: "center", gap: 8, children: [
5869
- k.data.image && /* @__PURE__ */ r(Ue, { src: k.data.image, size: 20 }),
5870
- /* @__PURE__ */ r("span", { children: k.label })
5893
+ N.data.image && /* @__PURE__ */ r(ze, { src: N.data.image, size: 20 }),
5894
+ /* @__PURE__ */ r("span", { children: N.label })
5871
5895
  ] })
5872
5896
  ] }),
5873
- !s && O === k.value && /* @__PURE__ */ r(
5874
- u1,
5897
+ !s && O === N.value && /* @__PURE__ */ r(
5898
+ g1,
5875
5899
  {
5876
5900
  name: "ok",
5877
5901
  color: z.BLUE_PRIMARY,
@@ -5880,9 +5904,9 @@ const Vi = ({
5880
5904
  }
5881
5905
  )
5882
5906
  ] }),
5883
- dropdownRender: (k) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
5884
- /* @__PURE__ */ r("div", { className: "dropdown-menu", children: _ ? _(k) : k }),
5885
- H && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(W1, { size: 28 }) })
5907
+ dropdownRender: (N) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
5908
+ /* @__PURE__ */ r("div", { className: "dropdown-menu", children: y ? y(N) : N }),
5909
+ H && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(G1, { size: 28 }) })
5886
5910
  ] })
5887
5911
  }
5888
5912
  ),
@@ -5890,31 +5914,31 @@ const Vi = ({
5890
5914
  /* @__PURE__ */ r(
5891
5915
  "label",
5892
5916
  {
5893
- className: `${T || F ? "label-floating" : ""} ${a ? "label-disabled" : ""} ${T ? "label-focused" : ""} ${H ? "label-loading" : ""} ${m ? "label-error" : ""}`,
5894
- children: d ? `${t}*` : t
5917
+ className: `${B || F ? "label-floating" : ""} ${a ? "label-disabled" : ""} ${B ? "label-focused" : ""} ${H ? "label-loading" : ""} ${k ? "label-error" : ""}`,
5918
+ children: u ? `${t}*` : t
5895
5919
  }
5896
5920
  ),
5897
5921
  /* @__PURE__ */ r(
5898
5922
  "fieldset",
5899
5923
  {
5900
- className: `${T ? "fieldset-focused" : ""} ${a ? "fieldset-disabled" : ""} ${F ? "fieldset-filled" : ""} ${m ? "fieldset-error" : ""}`,
5901
- children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: d ? `${t}*` : t }) })
5924
+ className: `${B ? "fieldset-focused" : ""} ${a ? "fieldset-disabled" : ""} ${F ? "fieldset-filled" : ""} ${k ? "fieldset-error" : ""}`,
5925
+ children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: u ? `${t}*` : t }) })
5902
5926
  }
5903
5927
  )
5904
5928
  ] })
5905
5929
  ]
5906
5930
  }
5907
5931
  ),
5908
- m && /* @__PURE__ */ C(p1, { justifyContent: "flex-start", gap: 6, children: [
5909
- /* @__PURE__ */ r(u1, { name: "attention", color: z.NOTIFICATION_ERROR_DARK }),
5910
- typeof m == "string" ? /* @__PURE__ */ r(Ii, { color: z.NOTIFICATION_ERROR_DARK, variant: "body4", children: m }) : m
5932
+ k && /* @__PURE__ */ C(p1, { justifyContent: "flex-start", gap: 6, children: [
5933
+ /* @__PURE__ */ r(g1, { name: "attention", color: z.NOTIFICATION_ERROR_DARK }),
5934
+ typeof k == "string" ? /* @__PURE__ */ r(Vi, { color: z.NOTIFICATION_ERROR_DARK, variant: "body4", children: k }) : k
5911
5935
  ] })
5912
5936
  ] });
5913
5937
  }
5914
5938
  );
5915
- function Ai(i, e = 500) {
5939
+ function ji(i, e = 500) {
5916
5940
  const t = Y();
5917
- return j(() => () => {
5941
+ return T(() => () => {
5918
5942
  t.current && clearTimeout(t.current);
5919
5943
  }, []), (...s) => {
5920
5944
  const n = setTimeout(() => {
@@ -5923,15 +5947,15 @@ function Ai(i, e = 500) {
5923
5947
  clearTimeout(t.current), t.current = n;
5924
5948
  };
5925
5949
  }
5926
- function K1(i) {
5950
+ function P1(i) {
5927
5951
  const e = Y(i);
5928
- return j(() => {
5952
+ return T(() => {
5929
5953
  e.current = i;
5930
5954
  }, [i]), e.current;
5931
5955
  }
5932
- const _1 = 100, l1 = {
5956
+ const H1 = 100, l1 = {
5933
5957
  offset: 0
5934
- }, Ti = k1(
5958
+ }, Di = k1(
5935
5959
  ({
5936
5960
  loadOptions: i,
5937
5961
  width: e,
@@ -5939,101 +5963,101 @@ const _1 = 100, l1 = {
5939
5963
  value: s,
5940
5964
  id: n,
5941
5965
  disabled: o,
5942
- scrollThresholdValue: c,
5966
+ scrollThresholdValue: h,
5943
5967
  placeholder: a,
5944
- mode: d,
5945
- loadOnClosedState: g,
5968
+ mode: u,
5969
+ loadOnClosedState: d,
5946
5970
  preloadOptions: l,
5947
- extraOptions: h,
5948
- onDropdownVisibleChange: u,
5971
+ extraOptions: c,
5972
+ onDropdownVisibleChange: g,
5949
5973
  optionRender: p,
5950
- dropdownRender: v,
5951
- readOnly: x,
5952
- clearable: L = !1,
5953
- required: _ = !1,
5974
+ dropdownRender: m,
5975
+ readOnly: v,
5976
+ clearable: w = !1,
5977
+ required: y = !1,
5954
5978
  error: M
5955
5979
  }, H) => {
5956
- const [f, m] = A(), [N, w] = A(l1), [I, T] = A(!1), [D, G] = A(), [Q, O] = A(!1), [K, U] = A(
5957
- h ?? []
5958
- ), q = K1(N.offset), X = K1(D), [B, $] = A(!1), P = Y(!1), e1 = Z(
5980
+ const [f, k] = V(), [x, L] = V(l1), [I, B] = V(!1), [D, G] = V(), [Q, O] = V(!1), [K, U] = V(
5981
+ c ?? []
5982
+ ), q = P1(x.offset), X = P1(D), [j, $] = V(!1), P = Y(!1), e1 = Z(
5959
5983
  async ({
5960
- limit: S = _1,
5984
+ limit: S = H1,
5961
5985
  offset: F,
5962
- search: k
5986
+ search: N
5963
5987
  }) => {
5964
- T(!0);
5988
+ B(!0);
5965
5989
  try {
5966
- const y = await i({
5990
+ const b = await i({
5967
5991
  limit: S,
5968
5992
  offset: F,
5969
- search: k
5993
+ search: N
5970
5994
  });
5971
- m(
5972
- (V) => F === 0 ? y.options : [...V ?? [], ...y.options]
5973
- ), w((V) => ({
5974
- ...V,
5975
- count: y.count
5995
+ k(
5996
+ (A) => F === 0 ? b.options : [...A ?? [], ...b.options]
5997
+ ), L((A) => ({
5998
+ ...A,
5999
+ count: b.count
5976
6000
  }));
5977
- } catch (y) {
5978
- return console.error("AsyncSelect. fetchOptions error", y), [];
6001
+ } catch (b) {
6002
+ return console.error("AsyncSelect. fetchOptions error", b), [];
5979
6003
  } finally {
5980
- T(!1);
6004
+ B(!1);
5981
6005
  }
5982
6006
  },
5983
6007
  [i]
5984
- ), t1 = Ai((S) => {
5985
- G(S), S || w(l1);
5986
- }), g1 = Z(
6008
+ ), t1 = ji((S) => {
6009
+ G(S), S || L(l1);
6010
+ }), u1 = Z(
5987
6011
  (S) => t1(S),
5988
6012
  [t1]
5989
6013
  ), L1 = Z(
5990
6014
  async (S) => {
5991
- I || S && N.count && N.count > ((f == null ? void 0 : f.length) ?? 0) && w((F) => ({
6015
+ I || S && x.count && x.count > ((f == null ? void 0 : f.length) ?? 0) && L((F) => ({
5992
6016
  ...F,
5993
- offset: F.offset + _1
6017
+ offset: F.offset + H1
5994
6018
  }));
5995
6019
  },
5996
- [I, f == null ? void 0 : f.length, N.count]
6020
+ [I, f == null ? void 0 : f.length, x.count]
5997
6021
  ), v1 = Z(
5998
6022
  (S) => {
5999
- O(S), !S && D && (G(void 0), w(l1), $(!0)), u == null || u(S);
6023
+ O(S), !S && D && (G(void 0), L(l1), $(!0)), g == null || g(S);
6000
6024
  },
6001
- [u, D]
6025
+ [g, D]
6002
6026
  );
6003
- j(() => {
6004
- !P.current || I || (B || Q && (q !== N.offset || X !== D || !f)) && (e1({ offset: N.offset, limit: _1, search: D }), B && $(!1));
6005
- }, [B, Q, N.offset, D, q, X, f, I]), j(() => {
6006
- (g || l) && e1(l1), P.current = !0;
6007
- }, []), j(() => {
6008
- h && U((S) => {
6009
- const F = h.filter(
6010
- (k) => !S.some((y) => y.value === k.value)
6027
+ T(() => {
6028
+ !P.current || I || (j || Q && (q !== x.offset || X !== D || !f)) && (e1({ offset: x.offset, limit: H1, search: D }), j && $(!1));
6029
+ }, [j, Q, x.offset, D, q, X, f, I]), T(() => {
6030
+ (d || l) && e1(l1), P.current = !0;
6031
+ }, []), T(() => {
6032
+ c && U((S) => {
6033
+ const F = c.filter(
6034
+ (N) => !S.some((b) => b.value === N.value)
6011
6035
  );
6012
6036
  return [...S, ...F];
6013
6037
  });
6014
- }, [h]);
6038
+ }, [c]);
6015
6039
  const o1 = Z(
6016
6040
  (S) => {
6017
6041
  t && t(S);
6018
6042
  let F = [];
6019
- if (d ? F = Array.isArray(S) ? S : [] : F = S ? [S] : [], D) {
6020
- const k = F.filter(
6021
- (y) => !(K != null && K.some((V) => V.value === y))
6043
+ if (u ? F = Array.isArray(S) ? S : [] : F = S ? [S] : [], D) {
6044
+ const N = F.filter(
6045
+ (b) => !(K != null && K.some((A) => A.value === b))
6022
6046
  );
6023
- k.length > 0 && U((y = []) => [
6024
- ...y,
6025
- ...k.map((V) => {
6026
- const a1 = f == null ? void 0 : f.find((fe) => fe.value === V);
6047
+ N.length > 0 && U((b = []) => [
6048
+ ...b,
6049
+ ...N.map((A) => {
6050
+ const a1 = f == null ? void 0 : f.find((me) => me.value === A);
6027
6051
  return {
6028
- value: V,
6029
- label: (a1 == null ? void 0 : a1.label) ?? V
6052
+ value: A,
6053
+ label: (a1 == null ? void 0 : a1.label) ?? A
6030
6054
  };
6031
6055
  })
6032
- ]), G(void 0), w(l1), $(!0);
6056
+ ]), G(void 0), L(l1), $(!0);
6033
6057
  }
6034
6058
  },
6035
- [t, D, d, f, K]
6036
- ), N1 = Le(
6059
+ [t, D, u, f, K]
6060
+ ), N1 = ve(
6037
6061
  () => ({
6038
6062
  id: n,
6039
6063
  width: e,
@@ -6043,18 +6067,18 @@ const _1 = 100, l1 = {
6043
6067
  placeholder: a,
6044
6068
  search: !0,
6045
6069
  value: s,
6046
- onSearchChange: g1,
6070
+ onSearchChange: u1,
6047
6071
  onDropdownVisibleChange: v1,
6048
- scrollThresholdValue: c,
6072
+ scrollThresholdValue: h,
6049
6073
  onScrollToEnd: L1,
6050
6074
  disabled: o,
6051
6075
  extraOptions: K,
6052
6076
  isLoading: I,
6053
6077
  optionRender: p,
6054
- dropdownRender: v,
6055
- readOnly: x,
6056
- clearable: L,
6057
- required: _,
6078
+ dropdownRender: m,
6079
+ readOnly: v,
6080
+ clearable: w,
6081
+ required: y,
6058
6082
  error: M
6059
6083
  }),
6060
6084
  [
@@ -6065,26 +6089,26 @@ const _1 = 100, l1 = {
6065
6089
  H,
6066
6090
  a,
6067
6091
  s,
6068
- g1,
6092
+ u1,
6069
6093
  v1,
6070
- c,
6094
+ h,
6071
6095
  L1,
6072
6096
  o,
6073
6097
  K,
6074
6098
  I,
6075
6099
  p,
6100
+ m,
6076
6101
  v,
6077
- x,
6078
- L,
6079
- _,
6102
+ w,
6103
+ y,
6080
6104
  M
6081
6105
  ]
6082
6106
  );
6083
- return ne(H, () => ({
6107
+ return E1(H, () => ({
6084
6108
  refetchOptions: async () => {
6085
- w(l1), G(void 0), $(!0);
6109
+ L(l1), G(void 0), $(!0);
6086
6110
  }
6087
- })), d ? /* @__PURE__ */ r(G1, { ...N1, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(G1, { ...N1, value: s }) });
6111
+ })), u ? /* @__PURE__ */ r(K1, { ...N1, value: s, mode: u }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(K1, { ...N1, value: s }) });
6088
6112
  }
6089
6113
  ), R = (i) => typeof i == "string", C1 = () => {
6090
6114
  let i, e;
@@ -6092,23 +6116,23 @@ const _1 = 100, l1 = {
6092
6116
  i = s, e = n;
6093
6117
  });
6094
6118
  return t.resolve = i, t.reject = e, t;
6095
- }, P1 = (i) => i == null ? "" : "" + i, Bi = (i, e, t) => {
6119
+ }, $1 = (i) => i == null ? "" : "" + i, Zi = (i, e, t) => {
6096
6120
  i.forEach((s) => {
6097
6121
  e[s] && (t[s] = e[s]);
6098
6122
  });
6099
- }, ji = /###/g, $1 = (i) => i && i.indexOf("###") > -1 ? i.replace(ji, ".") : i, F1 = (i) => !i || R(i), m1 = (i, e, t) => {
6123
+ }, Wi = /###/g, F1 = (i) => i && i.indexOf("###") > -1 ? i.replace(Wi, ".") : i, Y1 = (i) => !i || R(i), m1 = (i, e, t) => {
6100
6124
  const s = R(e) ? e.split(".") : e;
6101
6125
  let n = 0;
6102
6126
  for (; n < s.length - 1; ) {
6103
- if (F1(i)) return {};
6104
- const o = $1(s[n]);
6127
+ if (Y1(i)) return {};
6128
+ const o = F1(s[n]);
6105
6129
  !i[o] && t && (i[o] = new t()), Object.prototype.hasOwnProperty.call(i, o) ? i = i[o] : i = {}, ++n;
6106
6130
  }
6107
- return F1(i) ? {} : {
6131
+ return Y1(i) ? {} : {
6108
6132
  obj: i,
6109
- k: $1(s[n])
6133
+ k: F1(s[n])
6110
6134
  };
6111
- }, Y1 = (i, e, t) => {
6135
+ }, U1 = (i, e, t) => {
6112
6136
  const {
6113
6137
  obj: s,
6114
6138
  k: n
@@ -6117,11 +6141,11 @@ const _1 = 100, l1 = {
6117
6141
  s[n] = t;
6118
6142
  return;
6119
6143
  }
6120
- let o = e[e.length - 1], c = e.slice(0, e.length - 1), a = m1(i, c, Object);
6121
- for (; a.obj === void 0 && c.length; )
6122
- o = `${c[c.length - 1]}.${o}`, c = c.slice(0, c.length - 1), a = m1(i, c, Object), a && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
6144
+ let o = e[e.length - 1], h = e.slice(0, e.length - 1), a = m1(i, h, Object);
6145
+ for (; a.obj === void 0 && h.length; )
6146
+ o = `${h[h.length - 1]}.${o}`, h = h.slice(0, h.length - 1), a = m1(i, h, Object), a && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
6123
6147
  a.obj[`${a.k}.${o}`] = t;
6124
- }, Di = (i, e, t, s) => {
6148
+ }, Gi = (i, e, t, s) => {
6125
6149
  const {
6126
6150
  obj: n,
6127
6151
  k: o
@@ -6134,15 +6158,15 @@ const _1 = 100, l1 = {
6134
6158
  } = m1(i, e);
6135
6159
  if (t)
6136
6160
  return t[s];
6137
- }, Zi = (i, e, t) => {
6161
+ }, Ki = (i, e, t) => {
6138
6162
  const s = R1(i, t);
6139
6163
  return s !== void 0 ? s : R1(e, t);
6140
- }, de = (i, e, t) => {
6164
+ }, ue = (i, e, t) => {
6141
6165
  for (const s in e)
6142
- s !== "__proto__" && s !== "constructor" && (s in i ? R(i[s]) || i[s] instanceof String || R(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : de(i[s], e[s], t) : i[s] = e[s]);
6166
+ s !== "__proto__" && s !== "constructor" && (s in i ? R(i[s]) || i[s] instanceof String || R(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : ue(i[s], e[s], t) : i[s] = e[s]);
6143
6167
  return i;
6144
- }, h1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
6145
- var Wi = {
6168
+ }, c1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
6169
+ var Pi = {
6146
6170
  "&": "&amp;",
6147
6171
  "<": "&lt;",
6148
6172
  ">": "&gt;",
@@ -6150,8 +6174,8 @@ var Wi = {
6150
6174
  "'": "&#39;",
6151
6175
  "/": "&#x2F;"
6152
6176
  };
6153
- const Gi = (i) => R(i) ? i.replace(/[&<>"'\/]/g, (e) => Wi[e]) : i;
6154
- class Ki {
6177
+ const $i = (i) => R(i) ? i.replace(/[&<>"'\/]/g, (e) => Pi[e]) : i;
6178
+ class Fi {
6155
6179
  constructor(e) {
6156
6180
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
6157
6181
  }
@@ -6163,18 +6187,18 @@ class Ki {
6163
6187
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
6164
6188
  }
6165
6189
  }
6166
- const Pi = [" ", ",", "?", "!", ";"], $i = new Ki(20), Fi = (i, e, t) => {
6190
+ const Yi = [" ", ",", "?", "!", ";"], Ui = new Fi(20), zi = (i, e, t) => {
6167
6191
  e = e || "", t = t || "";
6168
- const s = Pi.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
6192
+ const s = Yi.filter((h) => e.indexOf(h) < 0 && t.indexOf(h) < 0);
6169
6193
  if (s.length === 0) return !0;
6170
- const n = $i.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
6194
+ const n = Ui.getRegExp(`(${s.map((h) => h === "?" ? "\\?" : h).join("|")})`);
6171
6195
  let o = !n.test(i);
6172
6196
  if (!o) {
6173
- const c = i.indexOf(t);
6174
- c > 0 && !n.test(i.substring(0, c)) && (o = !0);
6197
+ const h = i.indexOf(t);
6198
+ h > 0 && !n.test(i.substring(0, h)) && (o = !0);
6175
6199
  }
6176
6200
  return o;
6177
- }, S1 = function(i, e) {
6201
+ }, V1 = function(i, e) {
6178
6202
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
6179
6203
  if (!i) return;
6180
6204
  if (i[e]) return i[e];
@@ -6183,18 +6207,18 @@ const Pi = [" ", ",", "?", "!", ";"], $i = new Ki(20), Fi = (i, e, t) => {
6183
6207
  for (let o = 0; o < s.length; ) {
6184
6208
  if (!n || typeof n != "object")
6185
6209
  return;
6186
- let c, a = "";
6187
- for (let d = o; d < s.length; ++d)
6188
- if (d !== o && (a += t), a += s[d], c = n[a], c !== void 0) {
6189
- if (["string", "number", "boolean"].indexOf(typeof c) > -1 && d < s.length - 1)
6210
+ let h, a = "";
6211
+ for (let u = o; u < s.length; ++u)
6212
+ if (u !== o && (a += t), a += s[u], h = n[a], h !== void 0) {
6213
+ if (["string", "number", "boolean"].indexOf(typeof h) > -1 && u < s.length - 1)
6190
6214
  continue;
6191
- o += d - o + 1;
6215
+ o += u - o + 1;
6192
6216
  break;
6193
6217
  }
6194
- n = c;
6218
+ n = h;
6195
6219
  }
6196
6220
  return n;
6197
- }, M1 = (i) => i && i.replace("_", "-"), Yi = {
6221
+ }, M1 = (i) => i && i.replace("_", "-"), Ji = {
6198
6222
  type: "logger",
6199
6223
  log(i) {
6200
6224
  this.output("log", i);
@@ -6209,14 +6233,14 @@ const Pi = [" ", ",", "?", "!", ";"], $i = new Ki(20), Fi = (i, e, t) => {
6209
6233
  console && console[i] && console[i].apply(console, e);
6210
6234
  }
6211
6235
  };
6212
- class y1 {
6236
+ class b1 {
6213
6237
  constructor(e) {
6214
6238
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6215
6239
  this.init(e, t);
6216
6240
  }
6217
6241
  init(e) {
6218
6242
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6219
- this.prefix = t.prefix || "i18next:", this.logger = e || Yi, this.options = t, this.debug = t.debug;
6243
+ this.prefix = t.prefix || "i18next:", this.logger = e || Ji, this.options = t, this.debug = t.debug;
6220
6244
  }
6221
6245
  log() {
6222
6246
  for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
@@ -6242,17 +6266,17 @@ class y1 {
6242
6266
  return n && !this.debug ? null : (R(e[0]) && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
6243
6267
  }
6244
6268
  create(e) {
6245
- return new y1(this.logger, {
6269
+ return new b1(this.logger, {
6246
6270
  prefix: `${this.prefix}:${e}:`,
6247
6271
  ...this.options
6248
6272
  });
6249
6273
  }
6250
6274
  clone(e) {
6251
- return e = e || this.options, e.prefix = e.prefix || this.prefix, new y1(this.logger, e);
6275
+ return e = e || this.options, e.prefix = e.prefix || this.prefix, new b1(this.logger, e);
6252
6276
  }
6253
6277
  }
6254
- var J = new y1();
6255
- class E1 {
6278
+ var J = new b1();
6279
+ class _1 {
6256
6280
  constructor() {
6257
6281
  this.observers = {};
6258
6282
  }
@@ -6275,18 +6299,18 @@ class E1 {
6275
6299
  emit(e) {
6276
6300
  for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
6277
6301
  s[n - 1] = arguments[n];
6278
- this.observers[e] && Array.from(this.observers[e].entries()).forEach((c) => {
6279
- let [a, d] = c;
6280
- for (let g = 0; g < d; g++)
6302
+ this.observers[e] && Array.from(this.observers[e].entries()).forEach((h) => {
6303
+ let [a, u] = h;
6304
+ for (let d = 0; d < u; d++)
6281
6305
  a(...s);
6282
- }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((c) => {
6283
- let [a, d] = c;
6284
- for (let g = 0; g < d; g++)
6306
+ }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((h) => {
6307
+ let [a, u] = h;
6308
+ for (let d = 0; d < u; d++)
6285
6309
  a.apply(a, [e, ...s]);
6286
6310
  });
6287
6311
  }
6288
6312
  }
6289
- class U1 extends E1 {
6313
+ class z1 extends _1 {
6290
6314
  constructor(e) {
6291
6315
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
6292
6316
  ns: ["translation"],
@@ -6303,19 +6327,19 @@ class U1 extends E1 {
6303
6327
  }
6304
6328
  getResource(e, t, s) {
6305
6329
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
6306
- const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
6330
+ const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, h = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
6307
6331
  let a;
6308
6332
  e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], s && (Array.isArray(s) ? a.push(...s) : R(s) && o ? a.push(...s.split(o)) : a.push(s)));
6309
- const d = R1(this.data, a);
6310
- return !d && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), d || !c || !R(s) ? d : S1(this.data && this.data[e] && this.data[e][t], s, o);
6333
+ const u = R1(this.data, a);
6334
+ return !u && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), u || !h || !R(s) ? u : V1(this.data && this.data[e] && this.data[e][t], s, o);
6311
6335
  }
6312
6336
  addResource(e, t, s, n) {
6313
6337
  let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
6314
6338
  silent: !1
6315
6339
  };
6316
- const c = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
6340
+ const h = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
6317
6341
  let a = [e, t];
6318
- s && (a = a.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (a = e.split("."), n = t, t = a[1]), this.addNamespaces(t), Y1(this.data, a, n), o.silent || this.emit("added", e, t, s, n);
6342
+ s && (a = a.concat(h ? s.split(h) : s)), e.indexOf(".") > -1 && (a = e.split("."), n = t, t = a[1]), this.addNamespaces(t), U1(this.data, a, n), o.silent || this.emit("added", e, t, s, n);
6319
6343
  }
6320
6344
  addResources(e, t, s) {
6321
6345
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -6328,16 +6352,16 @@ class U1 extends E1 {
6328
6352
  n.silent || this.emit("added", e, t, s);
6329
6353
  }
6330
6354
  addResourceBundle(e, t, s, n, o) {
6331
- let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
6355
+ let h = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
6332
6356
  silent: !1,
6333
6357
  skipCopy: !1
6334
6358
  }, a = [e, t];
6335
6359
  e.indexOf(".") > -1 && (a = e.split("."), n = s, s = t, t = a[1]), this.addNamespaces(t);
6336
- let d = R1(this.data, a) || {};
6337
- c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? de(d, s, o) : d = {
6338
- ...d,
6360
+ let u = R1(this.data, a) || {};
6361
+ h.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? ue(u, s, o) : u = {
6362
+ ...u,
6339
6363
  ...s
6340
- }, Y1(this.data, a, d), c.silent || this.emit("added", e, t, s);
6364
+ }, U1(this.data, a, u), h.silent || this.emit("added", e, t, s);
6341
6365
  }
6342
6366
  removeResourceBundle(e, t) {
6343
6367
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -6372,11 +6396,11 @@ var ge = {
6372
6396
  }), e;
6373
6397
  }
6374
6398
  };
6375
- const z1 = {};
6376
- class b1 extends E1 {
6399
+ const J1 = {};
6400
+ class y1 extends _1 {
6377
6401
  constructor(e) {
6378
6402
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6379
- super(), Bi(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = J.create("translator");
6403
+ super(), Zi(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = J.create("translator");
6380
6404
  }
6381
6405
  changeLanguage(e) {
6382
6406
  e && (this.language = e);
@@ -6395,16 +6419,16 @@ class b1 extends E1 {
6395
6419
  s === void 0 && (s = ":");
6396
6420
  const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
6397
6421
  let o = t.ns || this.options.defaultNS || [];
6398
- const c = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Fi(e, s, n);
6399
- if (c && !a) {
6400
- const d = e.match(this.interpolator.nestingRegexp);
6401
- if (d && d.length > 0)
6422
+ const h = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !zi(e, s, n);
6423
+ if (h && !a) {
6424
+ const u = e.match(this.interpolator.nestingRegexp);
6425
+ if (u && u.length > 0)
6402
6426
  return {
6403
6427
  key: e,
6404
6428
  namespaces: R(o) ? [o] : o
6405
6429
  };
6406
- const g = e.split(s);
6407
- (s !== n || s === n && this.options.ns.indexOf(g[0]) > -1) && (o = g.shift()), e = g.join(n);
6430
+ const d = e.split(s);
6431
+ (s !== n || s === n && this.options.ns.indexOf(d[0]) > -1) && (o = d.shift()), e = d.join(n);
6408
6432
  }
6409
6433
  return {
6410
6434
  key: e,
@@ -6417,95 +6441,95 @@ class b1 extends E1 {
6417
6441
  }), t || (t = {}), e == null) return "";
6418
6442
  Array.isArray(e) || (e = [String(e)]);
6419
6443
  const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, o = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
6420
- key: c,
6444
+ key: h,
6421
6445
  namespaces: a
6422
- } = this.extractFromKey(e[e.length - 1], t), d = a[a.length - 1], g = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
6423
- if (g && g.toLowerCase() === "cimode") {
6446
+ } = this.extractFromKey(e[e.length - 1], t), u = a[a.length - 1], d = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
6447
+ if (d && d.toLowerCase() === "cimode") {
6424
6448
  if (l) {
6425
6449
  const f = t.nsSeparator || this.options.nsSeparator;
6426
6450
  return n ? {
6427
- res: `${d}${f}${c}`,
6428
- usedKey: c,
6429
- exactUsedKey: c,
6430
- usedLng: g,
6431
- usedNS: d,
6451
+ res: `${u}${f}${h}`,
6452
+ usedKey: h,
6453
+ exactUsedKey: h,
6454
+ usedLng: d,
6455
+ usedNS: u,
6432
6456
  usedParams: this.getUsedParamsDetails(t)
6433
- } : `${d}${f}${c}`;
6457
+ } : `${u}${f}${h}`;
6434
6458
  }
6435
6459
  return n ? {
6436
- res: c,
6437
- usedKey: c,
6438
- exactUsedKey: c,
6439
- usedLng: g,
6440
- usedNS: d,
6460
+ res: h,
6461
+ usedKey: h,
6462
+ exactUsedKey: h,
6463
+ usedLng: d,
6464
+ usedNS: u,
6441
6465
  usedParams: this.getUsedParamsDetails(t)
6442
- } : c;
6466
+ } : h;
6443
6467
  }
6444
- const h = this.resolve(e, t);
6445
- let u = h && h.res;
6446
- const p = h && h.usedKey || c, v = h && h.exactUsedKey || c, x = Object.prototype.toString.apply(u), L = ["[object Number]", "[object Function]", "[object RegExp]"], _ = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject, H = !R(u) && typeof u != "boolean" && typeof u != "number";
6447
- if (M && u && H && L.indexOf(x) < 0 && !(R(_) && Array.isArray(u))) {
6468
+ const c = this.resolve(e, t);
6469
+ let g = c && c.res;
6470
+ const p = c && c.usedKey || h, m = c && c.exactUsedKey || h, v = Object.prototype.toString.apply(g), w = ["[object Number]", "[object Function]", "[object RegExp]"], y = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject, H = !R(g) && typeof g != "boolean" && typeof g != "number";
6471
+ if (M && g && H && w.indexOf(v) < 0 && !(R(y) && Array.isArray(g))) {
6448
6472
  if (!t.returnObjects && !this.options.returnObjects) {
6449
6473
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
6450
- const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
6474
+ const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, g, {
6451
6475
  ...t,
6452
6476
  ns: a
6453
- }) : `key '${c} (${this.language})' returned an object instead of string.`;
6454
- return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
6477
+ }) : `key '${h} (${this.language})' returned an object instead of string.`;
6478
+ return n ? (c.res = f, c.usedParams = this.getUsedParamsDetails(t), c) : f;
6455
6479
  }
6456
6480
  if (o) {
6457
- const f = Array.isArray(u), m = f ? [] : {}, N = f ? v : p;
6458
- for (const w in u)
6459
- if (Object.prototype.hasOwnProperty.call(u, w)) {
6460
- const I = `${N}${o}${w}`;
6461
- m[w] = this.translate(I, {
6481
+ const f = Array.isArray(g), k = f ? [] : {}, x = f ? m : p;
6482
+ for (const L in g)
6483
+ if (Object.prototype.hasOwnProperty.call(g, L)) {
6484
+ const I = `${x}${o}${L}`;
6485
+ k[L] = this.translate(I, {
6462
6486
  ...t,
6463
6487
  joinArrays: !1,
6464
6488
  ns: a
6465
- }), m[w] === I && (m[w] = u[w]);
6489
+ }), k[L] === I && (k[L] = g[L]);
6466
6490
  }
6467
- u = m;
6491
+ g = k;
6468
6492
  }
6469
- } else if (M && R(_) && Array.isArray(u))
6470
- u = u.join(_), u && (u = this.extendTranslation(u, e, t, s));
6493
+ } else if (M && R(y) && Array.isArray(g))
6494
+ g = g.join(y), g && (g = this.extendTranslation(g, e, t, s));
6471
6495
  else {
6472
- let f = !1, m = !1;
6473
- const N = t.count !== void 0 && !R(t.count), w = b1.hasDefaultValue(t), I = N ? this.pluralResolver.getSuffix(g, t.count, t) : "", T = t.ordinal && N ? this.pluralResolver.getSuffix(g, t.count, {
6496
+ let f = !1, k = !1;
6497
+ const x = t.count !== void 0 && !R(t.count), L = y1.hasDefaultValue(t), I = x ? this.pluralResolver.getSuffix(d, t.count, t) : "", B = t.ordinal && x ? this.pluralResolver.getSuffix(d, t.count, {
6474
6498
  ordinal: !1
6475
- }) : "", D = N && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), G = D && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${I}`] || t[`defaultValue${T}`] || t.defaultValue;
6476
- !this.isValidLookup(u) && w && (f = !0, u = G), this.isValidLookup(u) || (m = !0, u = c);
6477
- const O = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && m ? void 0 : u, K = w && G !== u && this.options.updateMissing;
6478
- if (m || f || K) {
6479
- if (this.logger.log(K ? "updateKey" : "missingKey", g, d, c, K ? G : u), o) {
6480
- const B = this.resolve(c, {
6499
+ }) : "", D = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), G = D && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${I}`] || t[`defaultValue${B}`] || t.defaultValue;
6500
+ !this.isValidLookup(g) && L && (f = !0, g = G), this.isValidLookup(g) || (k = !0, g = h);
6501
+ const O = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && k ? void 0 : g, K = L && G !== g && this.options.updateMissing;
6502
+ if (k || f || K) {
6503
+ if (this.logger.log(K ? "updateKey" : "missingKey", d, u, h, K ? G : g), o) {
6504
+ const j = this.resolve(h, {
6481
6505
  ...t,
6482
6506
  keySeparator: !1
6483
6507
  });
6484
- B && B.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
6508
+ j && j.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.");
6485
6509
  }
6486
6510
  let U = [];
6487
6511
  const q = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
6488
6512
  if (this.options.saveMissingTo === "fallback" && q && q[0])
6489
- for (let B = 0; B < q.length; B++)
6490
- U.push(q[B]);
6513
+ for (let j = 0; j < q.length; j++)
6514
+ U.push(q[j]);
6491
6515
  else this.options.saveMissingTo === "all" ? U = this.languageUtils.toResolveHierarchy(t.lng || this.language) : U.push(t.lng || this.language);
6492
- const X = (B, $, P) => {
6493
- const e1 = w && P !== u ? P : O;
6494
- this.options.missingKeyHandler ? this.options.missingKeyHandler(B, d, $, e1, K, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(B, d, $, e1, K, t), this.emit("missingKey", B, d, $, u);
6516
+ const X = (j, $, P) => {
6517
+ const e1 = L && P !== g ? P : O;
6518
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(j, u, $, e1, K, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(j, u, $, e1, K, t), this.emit("missingKey", j, u, $, g);
6495
6519
  };
6496
- this.options.saveMissing && (this.options.saveMissingPlurals && N ? U.forEach((B) => {
6497
- const $ = this.pluralResolver.getSuffixes(B, t);
6520
+ this.options.saveMissing && (this.options.saveMissingPlurals && x ? U.forEach((j) => {
6521
+ const $ = this.pluralResolver.getSuffixes(j, t);
6498
6522
  D && t[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((P) => {
6499
- X([B], c + P, t[`defaultValue${P}`] || G);
6523
+ X([j], h + P, t[`defaultValue${P}`] || G);
6500
6524
  });
6501
- }) : X(U, c, G));
6525
+ }) : X(U, h, G));
6502
6526
  }
6503
- u = this.extendTranslation(u, e, t, h, s), m && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (m || 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));
6527
+ g = this.extendTranslation(g, e, t, c, s), k && g === h && this.options.appendNamespaceToMissingKey && (g = `${u}:${h}`), (k || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${h}` : h, f ? g : void 0) : g = this.options.parseMissingKeyHandler(g));
6504
6528
  }
6505
- return n ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
6529
+ return n ? (c.res = g, c.usedParams = this.getUsedParamsDetails(t), c) : g;
6506
6530
  }
6507
6531
  extendTranslation(e, t, s, n, o) {
6508
- var c = this;
6532
+ var h = this;
6509
6533
  if (this.i18nFormat && this.i18nFormat.parse)
6510
6534
  e = this.i18nFormat.parse(e, {
6511
6535
  ...this.options.interpolation.defaultVariables,
@@ -6521,28 +6545,28 @@ class b1 extends E1 {
6521
6545
  ...s.interpolation
6522
6546
  }
6523
6547
  });
6524
- const g = R(e) && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
6548
+ const d = R(e) && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
6525
6549
  let l;
6526
- if (g) {
6527
- const u = e.match(this.interpolator.nestingRegexp);
6528
- l = u && u.length;
6550
+ if (d) {
6551
+ const g = e.match(this.interpolator.nestingRegexp);
6552
+ l = g && g.length;
6529
6553
  }
6530
- let h = s.replace && !R(s.replace) ? s.replace : s;
6531
- if (this.options.interpolation.defaultVariables && (h = {
6554
+ let c = s.replace && !R(s.replace) ? s.replace : s;
6555
+ if (this.options.interpolation.defaultVariables && (c = {
6532
6556
  ...this.options.interpolation.defaultVariables,
6533
- ...h
6534
- }), e = this.interpolator.interpolate(e, h, s.lng || this.language || n.usedLng, s), g) {
6535
- const u = e.match(this.interpolator.nestingRegexp), p = u && u.length;
6557
+ ...c
6558
+ }), e = this.interpolator.interpolate(e, c, s.lng || this.language || n.usedLng, s), d) {
6559
+ const g = e.match(this.interpolator.nestingRegexp), p = g && g.length;
6536
6560
  l < p && (s.nest = !1);
6537
6561
  }
6538
6562
  !s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
6539
- for (var u = arguments.length, p = new Array(u), v = 0; v < u; v++)
6540
- p[v] = arguments[v];
6541
- return o && o[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);
6563
+ for (var g = arguments.length, p = new Array(g), m = 0; m < g; m++)
6564
+ p[m] = arguments[m];
6565
+ return o && o[0] === p[0] && !s.context ? (h.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : h.translate(...p, t);
6542
6566
  }, s)), s.interpolation && this.interpolator.reset();
6543
6567
  }
6544
- const a = s.postProcess || this.options.postProcess, d = R(a) ? [a] : a;
6545
- return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = ge.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
6568
+ const a = s.postProcess || this.options.postProcess, u = R(a) ? [a] : a;
6569
+ return e != null && u && u.length && s.applyPostProcessor !== !1 && (e = ge.handle(u, e, t, this.options && this.options.postProcessPassResolved ? {
6546
6570
  i18nResolved: {
6547
6571
  ...n,
6548
6572
  usedParams: this.getUsedParamsDetails(s)
@@ -6551,40 +6575,40 @@ class b1 extends E1 {
6551
6575
  } : s, this)), e;
6552
6576
  }
6553
6577
  resolve(e) {
6554
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o, c, a;
6555
- return R(e) && (e = [e]), e.forEach((d) => {
6578
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o, h, a;
6579
+ return R(e) && (e = [e]), e.forEach((u) => {
6556
6580
  if (this.isValidLookup(s)) return;
6557
- const g = this.extractFromKey(d, t), l = g.key;
6581
+ const d = this.extractFromKey(u, t), l = d.key;
6558
6582
  n = l;
6559
- let h = g.namespaces;
6560
- this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
6561
- const u = t.count !== void 0 && !R(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), v = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", x = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
6562
- h.forEach((L) => {
6563
- this.isValidLookup(s) || (a = L, !z1[`${x[0]}-${L}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (z1[`${x[0]}-${L}`] = !0, this.logger.warn(`key "${n}" for languages "${x.join(", ")}" won't get resolved as namespace "${a}" 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((_) => {
6583
+ let c = d.namespaces;
6584
+ this.options.fallbackNS && (c = c.concat(this.options.fallbackNS));
6585
+ const g = t.count !== void 0 && !R(t.count), p = g && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), m = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
6586
+ c.forEach((w) => {
6587
+ this.isValidLookup(s) || (a = w, !J1[`${v[0]}-${w}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (J1[`${v[0]}-${w}`] = !0, this.logger.warn(`key "${n}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" 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!!!")), v.forEach((y) => {
6564
6588
  if (this.isValidLookup(s)) return;
6565
- c = _;
6589
+ h = y;
6566
6590
  const M = [l];
6567
6591
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
6568
- this.i18nFormat.addLookupKeys(M, l, _, L, t);
6592
+ this.i18nFormat.addLookupKeys(M, l, y, w, t);
6569
6593
  else {
6570
6594
  let f;
6571
- u && (f = this.pluralResolver.getSuffix(_, t.count, t));
6572
- const m = `${this.options.pluralSeparator}zero`, N = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
6573
- if (u && (M.push(l + f), t.ordinal && f.indexOf(N) === 0 && M.push(l + f.replace(N, this.options.pluralSeparator)), p && M.push(l + m)), v) {
6574
- const w = `${l}${this.options.contextSeparator}${t.context}`;
6575
- M.push(w), u && (M.push(w + f), t.ordinal && f.indexOf(N) === 0 && M.push(w + f.replace(N, this.options.pluralSeparator)), p && M.push(w + m));
6595
+ g && (f = this.pluralResolver.getSuffix(y, t.count, t));
6596
+ const k = `${this.options.pluralSeparator}zero`, x = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
6597
+ if (g && (M.push(l + f), t.ordinal && f.indexOf(x) === 0 && M.push(l + f.replace(x, this.options.pluralSeparator)), p && M.push(l + k)), m) {
6598
+ const L = `${l}${this.options.contextSeparator}${t.context}`;
6599
+ M.push(L), g && (M.push(L + f), t.ordinal && f.indexOf(x) === 0 && M.push(L + f.replace(x, this.options.pluralSeparator)), p && M.push(L + k));
6576
6600
  }
6577
6601
  }
6578
6602
  let H;
6579
6603
  for (; H = M.pop(); )
6580
- this.isValidLookup(s) || (o = H, s = this.getResource(_, L, H, t));
6604
+ this.isValidLookup(s) || (o = H, s = this.getResource(y, w, H, t));
6581
6605
  }));
6582
6606
  });
6583
6607
  }), {
6584
6608
  res: s,
6585
6609
  usedKey: n,
6586
6610
  exactUsedKey: o,
6587
- usedLng: c,
6611
+ usedLng: h,
6588
6612
  usedNS: a
6589
6613
  };
6590
6614
  }
@@ -6619,8 +6643,8 @@ class b1 extends E1 {
6619
6643
  return !1;
6620
6644
  }
6621
6645
  }
6622
- const H1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
6623
- class J1 {
6646
+ const I1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
6647
+ class q1 {
6624
6648
  constructor(e) {
6625
6649
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = J.create("languageUtils");
6626
6650
  }
@@ -6644,7 +6668,7 @@ class J1 {
6644
6668
  }
6645
6669
  const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
6646
6670
  let s = e.split("-");
6647
- 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] = H1(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] = H1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = H1(s[2].toLowerCase()))), s.join("-");
6671
+ 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] = I1(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] = I1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = I1(s[2].toLowerCase()))), s.join("-");
6648
6672
  }
6649
6673
  return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
6650
6674
  }
@@ -6677,15 +6701,15 @@ class J1 {
6677
6701
  return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
6678
6702
  }
6679
6703
  toResolveHierarchy(e, t) {
6680
- const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], o = (c) => {
6681
- c && (this.isSupportedCode(c) ? n.push(c) : this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`));
6704
+ const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], o = (h) => {
6705
+ h && (this.isSupportedCode(h) ? n.push(h) : this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`));
6682
6706
  };
6683
- return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(e))) : R(e) && o(this.formatLanguageCode(e)), s.forEach((c) => {
6684
- n.indexOf(c) < 0 && o(this.formatLanguageCode(c));
6707
+ return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(e))) : R(e) && o(this.formatLanguageCode(e)), s.forEach((h) => {
6708
+ n.indexOf(h) < 0 && o(this.formatLanguageCode(h));
6685
6709
  }), n;
6686
6710
  }
6687
6711
  }
6688
- let Ui = [{
6712
+ let qi = [{
6689
6713
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
6690
6714
  nr: [1, 2],
6691
6715
  fc: 1
@@ -6777,7 +6801,7 @@ let Ui = [{
6777
6801
  lngs: ["he", "iw"],
6778
6802
  nr: [1, 2, 20, 21],
6779
6803
  fc: 22
6780
- }], zi = {
6804
+ }], Qi = {
6781
6805
  1: (i) => +(i > 1),
6782
6806
  2: (i) => +(i != 1),
6783
6807
  3: (i) => 0,
@@ -6801,28 +6825,28 @@ let Ui = [{
6801
6825
  21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
6802
6826
  22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
6803
6827
  };
6804
- const Ji = ["v1", "v2", "v3"], qi = ["v4"], q1 = {
6828
+ const Xi = ["v1", "v2", "v3"], e0 = ["v4"], Q1 = {
6805
6829
  zero: 0,
6806
6830
  one: 1,
6807
6831
  two: 2,
6808
6832
  few: 3,
6809
6833
  many: 4,
6810
6834
  other: 5
6811
- }, Qi = () => {
6835
+ }, t0 = () => {
6812
6836
  const i = {};
6813
- return Ui.forEach((e) => {
6837
+ return qi.forEach((e) => {
6814
6838
  e.lngs.forEach((t) => {
6815
6839
  i[t] = {
6816
6840
  numbers: e.nr,
6817
- plurals: zi[e.fc]
6841
+ plurals: Qi[e.fc]
6818
6842
  };
6819
6843
  });
6820
6844
  }), i;
6821
6845
  };
6822
- class Xi {
6846
+ class i0 {
6823
6847
  constructor(e) {
6824
6848
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6825
- this.languageUtils = e, this.options = t, this.logger = J.create("pluralResolver"), (!this.options.compatibilityJSON || qi.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 = Qi(), this.pluralRulesCache = {};
6849
+ this.languageUtils = e, this.options = t, this.logger = J.create("pluralResolver"), (!this.options.compatibilityJSON || e0.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 = t0(), this.pluralRulesCache = {};
6826
6850
  }
6827
6851
  addRule(e, t) {
6828
6852
  this.rules[e] = t;
@@ -6839,17 +6863,17 @@ class Xi {
6839
6863
  });
6840
6864
  if (o in this.pluralRulesCache)
6841
6865
  return this.pluralRulesCache[o];
6842
- let c;
6866
+ let h;
6843
6867
  try {
6844
- c = new Intl.PluralRules(s, {
6868
+ h = new Intl.PluralRules(s, {
6845
6869
  type: n
6846
6870
  });
6847
6871
  } catch {
6848
6872
  if (!e.match(/-|_/)) return;
6849
- const d = this.languageUtils.getLanguagePartFromCode(e);
6850
- c = this.getRule(d, t);
6873
+ const u = this.languageUtils.getLanguagePartFromCode(e);
6874
+ h = this.getRule(u, t);
6851
6875
  }
6852
- return this.pluralRulesCache[o] = c, c;
6876
+ return this.pluralRulesCache[o] = h, h;
6853
6877
  }
6854
6878
  return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
6855
6879
  }
@@ -6865,7 +6889,7 @@ class Xi {
6865
6889
  getSuffixes(e) {
6866
6890
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6867
6891
  const s = this.getRule(e, t);
6868
- return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, o) => q1[n] - q1[o]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
6892
+ return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, o) => Q1[n] - Q1[o]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
6869
6893
  }
6870
6894
  getSuffix(e, t) {
6871
6895
  let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -6880,14 +6904,14 @@ class Xi {
6880
6904
  return this.options.compatibilityJSON === "v1" ? n === 1 ? "" : typeof n == "number" ? `_plural_${n.toString()}` : o() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? o() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
6881
6905
  }
6882
6906
  shouldUseIntlApi() {
6883
- return !Ji.includes(this.options.compatibilityJSON);
6907
+ return !Xi.includes(this.options.compatibilityJSON);
6884
6908
  }
6885
6909
  }
6886
- const Q1 = function(i, e, t) {
6887
- let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = Zi(i, e, t);
6888
- return !o && n && R(t) && (o = S1(i, t, s), o === void 0 && (o = S1(e, t, s))), o;
6889
- }, I1 = (i) => i.replace(/\$/g, "$$$$");
6890
- class e0 {
6910
+ const X1 = function(i, e, t) {
6911
+ let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = Ki(i, e, t);
6912
+ return !o && n && R(t) && (o = V1(i, t, s), o === void 0 && (o = V1(e, t, s))), o;
6913
+ }, O1 = (i) => i.replace(/\$/g, "$$$$");
6914
+ class s0 {
6891
6915
  constructor() {
6892
6916
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6893
6917
  this.logger = J.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
@@ -6902,21 +6926,21 @@ class e0 {
6902
6926
  escapeValue: s,
6903
6927
  useRawValueToEscape: n,
6904
6928
  prefix: o,
6905
- prefixEscaped: c,
6929
+ prefixEscaped: h,
6906
6930
  suffix: a,
6907
- suffixEscaped: d,
6908
- formatSeparator: g,
6931
+ suffixEscaped: u,
6932
+ formatSeparator: d,
6909
6933
  unescapeSuffix: l,
6910
- unescapePrefix: h,
6911
- nestingPrefix: u,
6934
+ unescapePrefix: c,
6935
+ nestingPrefix: g,
6912
6936
  nestingPrefixEscaped: p,
6913
- nestingSuffix: v,
6914
- nestingSuffixEscaped: x,
6915
- nestingOptionsSeparator: L,
6916
- maxReplaces: _,
6937
+ nestingSuffix: m,
6938
+ nestingSuffixEscaped: v,
6939
+ nestingOptionsSeparator: w,
6940
+ maxReplaces: y,
6917
6941
  alwaysFormat: M
6918
6942
  } = e.interpolation;
6919
- this.escape = t !== void 0 ? t : Gi, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? h1(o) : c || "{{", this.suffix = a ? h1(a) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = u ? h1(u) : p || h1("$t("), this.nestingSuffix = v ? h1(v) : x || h1(")"), this.nestingOptionsSeparator = L || ",", this.maxReplaces = _ || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
6943
+ this.escape = t !== void 0 ? t : $i, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? c1(o) : h || "{{", this.suffix = a ? c1(a) : u || "}}", this.formatSeparator = d || ",", this.unescapePrefix = l ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = g ? c1(g) : p || c1("$t("), this.nestingSuffix = m ? c1(m) : v || c1(")"), this.nestingOptionsSeparator = w || ",", this.maxReplaces = y || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
6920
6944
  }
6921
6945
  reset() {
6922
6946
  this.options && this.init(this.options);
@@ -6926,84 +6950,84 @@ class e0 {
6926
6950
  this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
6927
6951
  }
6928
6952
  interpolate(e, t, s, n) {
6929
- let o, c, a;
6930
- const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
6953
+ let o, h, a;
6954
+ const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, d = (p) => {
6931
6955
  if (p.indexOf(this.formatSeparator) < 0) {
6932
- const _ = Q1(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
6933
- return this.alwaysFormat ? this.format(_, void 0, s, {
6956
+ const y = X1(t, u, p, this.options.keySeparator, this.options.ignoreJSONStructure);
6957
+ return this.alwaysFormat ? this.format(y, void 0, s, {
6934
6958
  ...n,
6935
6959
  ...t,
6936
6960
  interpolationkey: p
6937
- }) : _;
6961
+ }) : y;
6938
6962
  }
6939
- const v = p.split(this.formatSeparator), x = v.shift().trim(), L = v.join(this.formatSeparator).trim();
6940
- return this.format(Q1(t, d, x, this.options.keySeparator, this.options.ignoreJSONStructure), L, s, {
6963
+ const m = p.split(this.formatSeparator), v = m.shift().trim(), w = m.join(this.formatSeparator).trim();
6964
+ return this.format(X1(t, u, v, this.options.keySeparator, this.options.ignoreJSONStructure), w, s, {
6941
6965
  ...n,
6942
6966
  ...t,
6943
- interpolationkey: x
6967
+ interpolationkey: v
6944
6968
  });
6945
6969
  };
6946
6970
  this.resetRegExp();
6947
- const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, h = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
6971
+ const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, c = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
6948
6972
  return [{
6949
6973
  regex: this.regexpUnescape,
6950
- safeValue: (p) => I1(p)
6974
+ safeValue: (p) => O1(p)
6951
6975
  }, {
6952
6976
  regex: this.regexp,
6953
- safeValue: (p) => this.escapeValue ? I1(this.escape(p)) : I1(p)
6977
+ safeValue: (p) => this.escapeValue ? O1(this.escape(p)) : O1(p)
6954
6978
  }].forEach((p) => {
6955
6979
  for (a = 0; o = p.regex.exec(e); ) {
6956
- const v = o[1].trim();
6957
- if (c = g(v), c === void 0)
6980
+ const m = o[1].trim();
6981
+ if (h = d(m), h === void 0)
6958
6982
  if (typeof l == "function") {
6959
- const L = l(e, o, n);
6960
- c = R(L) ? L : "";
6961
- } else if (n && Object.prototype.hasOwnProperty.call(n, v))
6962
- c = "";
6963
- else if (h) {
6964
- c = o[0];
6983
+ const w = l(e, o, n);
6984
+ h = R(w) ? w : "";
6985
+ } else if (n && Object.prototype.hasOwnProperty.call(n, m))
6986
+ h = "";
6987
+ else if (c) {
6988
+ h = o[0];
6965
6989
  continue;
6966
6990
  } else
6967
- this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`), c = "";
6968
- else !R(c) && !this.useRawValueToEscape && (c = P1(c));
6969
- const x = p.safeValue(c);
6970
- if (e = e.replace(o[0], x), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= o[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
6991
+ this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`), h = "";
6992
+ else !R(h) && !this.useRawValueToEscape && (h = $1(h));
6993
+ const v = p.safeValue(h);
6994
+ if (e = e.replace(o[0], v), c ? (p.regex.lastIndex += h.length, p.regex.lastIndex -= o[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
6971
6995
  break;
6972
6996
  }
6973
6997
  }), e;
6974
6998
  }
6975
6999
  nest(e, t) {
6976
- let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, o, c;
6977
- const a = (d, g) => {
7000
+ let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, o, h;
7001
+ const a = (u, d) => {
6978
7002
  const l = this.nestingOptionsSeparator;
6979
- if (d.indexOf(l) < 0) return d;
6980
- const h = d.split(new RegExp(`${l}[ ]*{`));
6981
- let u = `{${h[1]}`;
6982
- d = h[0], u = this.interpolate(u, c);
6983
- const p = u.match(/'/g), v = u.match(/"/g);
6984
- (p && p.length % 2 === 0 && !v || v.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
7003
+ if (u.indexOf(l) < 0) return u;
7004
+ const c = u.split(new RegExp(`${l}[ ]*{`));
7005
+ let g = `{${c[1]}`;
7006
+ u = c[0], g = this.interpolate(g, h);
7007
+ const p = g.match(/'/g), m = g.match(/"/g);
7008
+ (p && p.length % 2 === 0 && !m || m.length % 2 !== 0) && (g = g.replace(/'/g, '"'));
6985
7009
  try {
6986
- c = JSON.parse(u), g && (c = {
6987
- ...g,
6988
- ...c
7010
+ h = JSON.parse(g), d && (h = {
7011
+ ...d,
7012
+ ...h
6989
7013
  });
6990
- } catch (x) {
6991
- return this.logger.warn(`failed parsing options string in nesting for key ${d}`, x), `${d}${l}${u}`;
7014
+ } catch (v) {
7015
+ return this.logger.warn(`failed parsing options string in nesting for key ${u}`, v), `${u}${l}${g}`;
6992
7016
  }
6993
- return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, d;
7017
+ return h.defaultValue && h.defaultValue.indexOf(this.prefix) > -1 && delete h.defaultValue, u;
6994
7018
  };
6995
7019
  for (; n = this.nestingRegexp.exec(e); ) {
6996
- let d = [];
6997
- c = {
7020
+ let u = [];
7021
+ h = {
6998
7022
  ...s
6999
- }, c = c.replace && !R(c.replace) ? c.replace : c, c.applyPostProcessor = !1, delete c.defaultValue;
7000
- let g = !1;
7023
+ }, h = h.replace && !R(h.replace) ? h.replace : h, h.applyPostProcessor = !1, delete h.defaultValue;
7024
+ let d = !1;
7001
7025
  if (n[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(n[1])) {
7002
- const l = n[1].split(this.formatSeparator).map((h) => h.trim());
7003
- n[1] = l.shift(), d = l, g = !0;
7026
+ const l = n[1].split(this.formatSeparator).map((c) => c.trim());
7027
+ n[1] = l.shift(), u = l, d = !0;
7004
7028
  }
7005
- if (o = t(a.call(this, n[1].trim(), c), c), o && n[0] === e && !R(o)) return o;
7006
- R(o) || (o = P1(o)), o || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), o = ""), g && (o = d.reduce((l, h) => this.format(l, h, s.lng, {
7029
+ if (o = t(a.call(this, n[1].trim(), h), h), o && n[0] === e && !R(o)) return o;
7030
+ R(o) || (o = $1(o)), o || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), o = ""), d && (o = u.reduce((l, c) => this.format(l, c, s.lng, {
7007
7031
  ...s,
7008
7032
  interpolationkey: n[1].trim()
7009
7033
  }), o.trim())), e = e.replace(n[0], o), this.regexp.lastIndex = 0;
@@ -7011,17 +7035,17 @@ class e0 {
7011
7035
  return e;
7012
7036
  }
7013
7037
  }
7014
- const t0 = (i) => {
7038
+ const n0 = (i) => {
7015
7039
  let e = i.toLowerCase().trim();
7016
7040
  const t = {};
7017
7041
  if (i.indexOf("(") > -1) {
7018
7042
  const s = i.split("(");
7019
7043
  e = s[0].toLowerCase().trim();
7020
7044
  const n = s[1].substring(0, s[1].length - 1);
7021
- e === "currency" && n.indexOf(":") < 0 ? t.currency || (t.currency = n.trim()) : e === "relativetime" && n.indexOf(":") < 0 ? t.range || (t.range = n.trim()) : n.split(";").forEach((c) => {
7022
- if (c) {
7023
- const [a, ...d] = c.split(":"), g = d.join(":").trim().replace(/^'+|'+$/g, ""), l = a.trim();
7024
- t[l] || (t[l] = g), g === "false" && (t[l] = !1), g === "true" && (t[l] = !0), isNaN(g) || (t[l] = parseInt(g, 10));
7045
+ e === "currency" && n.indexOf(":") < 0 ? t.currency || (t.currency = n.trim()) : e === "relativetime" && n.indexOf(":") < 0 ? t.range || (t.range = n.trim()) : n.split(";").forEach((h) => {
7046
+ if (h) {
7047
+ const [a, ...u] = h.split(":"), d = u.join(":").trim().replace(/^'+|'+$/g, ""), l = a.trim();
7048
+ t[l] || (t[l] = d), d === "false" && (t[l] = !1), d === "true" && (t[l] = !0), isNaN(d) || (t[l] = parseInt(d, 10));
7025
7049
  }
7026
7050
  });
7027
7051
  }
@@ -7029,7 +7053,7 @@ const t0 = (i) => {
7029
7053
  formatName: e,
7030
7054
  formatOptions: t
7031
7055
  };
7032
- }, c1 = (i) => {
7056
+ }, h1 = (i) => {
7033
7057
  const e = {};
7034
7058
  return (t, s, n) => {
7035
7059
  let o = n;
@@ -7037,41 +7061,41 @@ const t0 = (i) => {
7037
7061
  ...o,
7038
7062
  [n.interpolationkey]: void 0
7039
7063
  });
7040
- const c = s + JSON.stringify(o);
7041
- let a = e[c];
7042
- return a || (a = i(M1(s), n), e[c] = a), a(t);
7064
+ const h = s + JSON.stringify(o);
7065
+ let a = e[h];
7066
+ return a || (a = i(M1(s), n), e[h] = a), a(t);
7043
7067
  };
7044
7068
  };
7045
- class i0 {
7069
+ class r0 {
7046
7070
  constructor() {
7047
7071
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7048
7072
  this.logger = J.create("formatter"), this.options = e, this.formats = {
7049
- number: c1((t, s) => {
7073
+ number: h1((t, s) => {
7050
7074
  const n = new Intl.NumberFormat(t, {
7051
7075
  ...s
7052
7076
  });
7053
7077
  return (o) => n.format(o);
7054
7078
  }),
7055
- currency: c1((t, s) => {
7079
+ currency: h1((t, s) => {
7056
7080
  const n = new Intl.NumberFormat(t, {
7057
7081
  ...s,
7058
7082
  style: "currency"
7059
7083
  });
7060
7084
  return (o) => n.format(o);
7061
7085
  }),
7062
- datetime: c1((t, s) => {
7086
+ datetime: h1((t, s) => {
7063
7087
  const n = new Intl.DateTimeFormat(t, {
7064
7088
  ...s
7065
7089
  });
7066
7090
  return (o) => n.format(o);
7067
7091
  }),
7068
- relativetime: c1((t, s) => {
7092
+ relativetime: h1((t, s) => {
7069
7093
  const n = new Intl.RelativeTimeFormat(t, {
7070
7094
  ...s
7071
7095
  });
7072
7096
  return (o) => n.format(o, s.range || "day");
7073
7097
  }),
7074
- list: c1((t, s) => {
7098
+ list: h1((t, s) => {
7075
7099
  const n = new Intl.ListFormat(t, {
7076
7100
  ...s
7077
7101
  });
@@ -7089,87 +7113,87 @@ class i0 {
7089
7113
  this.formats[e.toLowerCase().trim()] = t;
7090
7114
  }
7091
7115
  addCached(e, t) {
7092
- this.formats[e.toLowerCase().trim()] = c1(t);
7116
+ this.formats[e.toLowerCase().trim()] = h1(t);
7093
7117
  }
7094
7118
  format(e, t, s) {
7095
7119
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
7096
7120
  const o = t.split(this.formatSeparator);
7097
7121
  if (o.length > 1 && o[0].indexOf("(") > 1 && o[0].indexOf(")") < 0 && o.find((a) => a.indexOf(")") > -1)) {
7098
- const a = o.findIndex((d) => d.indexOf(")") > -1);
7122
+ const a = o.findIndex((u) => u.indexOf(")") > -1);
7099
7123
  o[0] = [o[0], ...o.splice(1, a)].join(this.formatSeparator);
7100
7124
  }
7101
- return o.reduce((a, d) => {
7125
+ return o.reduce((a, u) => {
7102
7126
  const {
7103
- formatName: g,
7127
+ formatName: d,
7104
7128
  formatOptions: l
7105
- } = t0(d);
7106
- if (this.formats[g]) {
7107
- let h = a;
7129
+ } = n0(u);
7130
+ if (this.formats[d]) {
7131
+ let c = a;
7108
7132
  try {
7109
- const u = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = u.locale || u.lng || n.locale || n.lng || s;
7110
- h = this.formats[g](a, p, {
7133
+ const g = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = g.locale || g.lng || n.locale || n.lng || s;
7134
+ c = this.formats[d](a, p, {
7111
7135
  ...l,
7112
7136
  ...n,
7113
- ...u
7137
+ ...g
7114
7138
  });
7115
- } catch (u) {
7116
- this.logger.warn(u);
7139
+ } catch (g) {
7140
+ this.logger.warn(g);
7117
7141
  }
7118
- return h;
7142
+ return c;
7119
7143
  } else
7120
- this.logger.warn(`there was no format function for ${g}`);
7144
+ this.logger.warn(`there was no format function for ${d}`);
7121
7145
  return a;
7122
7146
  }, e);
7123
7147
  }
7124
7148
  }
7125
- const s0 = (i, e) => {
7149
+ const o0 = (i, e) => {
7126
7150
  i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
7127
7151
  };
7128
- class n0 extends E1 {
7152
+ class a0 extends _1 {
7129
7153
  constructor(e, t, s) {
7130
7154
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
7131
7155
  super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = J.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = n.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = n.maxRetries >= 0 ? n.maxRetries : 5, this.retryTimeout = n.retryTimeout >= 1 ? n.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, n.backend, n);
7132
7156
  }
7133
7157
  queueLoad(e, t, s, n) {
7134
- const o = {}, c = {}, a = {}, d = {};
7135
- return e.forEach((g) => {
7158
+ const o = {}, h = {}, a = {}, u = {};
7159
+ return e.forEach((d) => {
7136
7160
  let l = !0;
7137
- t.forEach((h) => {
7138
- const u = `${g}|${h}`;
7139
- !s.reload && this.store.hasResourceBundle(g, h) ? this.state[u] = 2 : this.state[u] < 0 || (this.state[u] === 1 ? c[u] === void 0 && (c[u] = !0) : (this.state[u] = 1, l = !1, c[u] === void 0 && (c[u] = !0), o[u] === void 0 && (o[u] = !0), d[h] === void 0 && (d[h] = !0)));
7140
- }), l || (a[g] = !0);
7141
- }), (Object.keys(o).length || Object.keys(c).length) && this.queue.push({
7142
- pending: c,
7143
- pendingCount: Object.keys(c).length,
7161
+ t.forEach((c) => {
7162
+ const g = `${d}|${c}`;
7163
+ !s.reload && this.store.hasResourceBundle(d, c) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ? h[g] === void 0 && (h[g] = !0) : (this.state[g] = 1, l = !1, h[g] === void 0 && (h[g] = !0), o[g] === void 0 && (o[g] = !0), u[c] === void 0 && (u[c] = !0)));
7164
+ }), l || (a[d] = !0);
7165
+ }), (Object.keys(o).length || Object.keys(h).length) && this.queue.push({
7166
+ pending: h,
7167
+ pendingCount: Object.keys(h).length,
7144
7168
  loaded: {},
7145
7169
  errors: [],
7146
7170
  callback: n
7147
7171
  }), {
7148
7172
  toLoad: Object.keys(o),
7149
- pending: Object.keys(c),
7173
+ pending: Object.keys(h),
7150
7174
  toLoadLanguages: Object.keys(a),
7151
- toLoadNamespaces: Object.keys(d)
7175
+ toLoadNamespaces: Object.keys(u)
7152
7176
  };
7153
7177
  }
7154
7178
  loaded(e, t, s) {
7155
- const n = e.split("|"), o = n[0], c = n[1];
7156
- t && this.emit("failedLoading", o, c, t), !t && s && this.store.addResourceBundle(o, c, s, void 0, void 0, {
7179
+ const n = e.split("|"), o = n[0], h = n[1];
7180
+ t && this.emit("failedLoading", o, h, t), !t && s && this.store.addResourceBundle(o, h, s, void 0, void 0, {
7157
7181
  skipCopy: !0
7158
7182
  }), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
7159
7183
  const a = {};
7160
- this.queue.forEach((d) => {
7161
- Di(d.loaded, [o], c), s0(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
7162
- a[g] || (a[g] = {});
7163
- const l = d.loaded[g];
7164
- l.length && l.forEach((h) => {
7165
- a[g][h] === void 0 && (a[g][h] = !0);
7184
+ this.queue.forEach((u) => {
7185
+ Gi(u.loaded, [o], h), o0(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((d) => {
7186
+ a[d] || (a[d] = {});
7187
+ const l = u.loaded[d];
7188
+ l.length && l.forEach((c) => {
7189
+ a[d][c] === void 0 && (a[d][c] = !0);
7166
7190
  });
7167
- }), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
7168
- }), this.emit("loaded", a), this.queue = this.queue.filter((d) => !d.done);
7191
+ }), u.done = !0, u.errors.length ? u.callback(u.errors) : u.callback());
7192
+ }), this.emit("loaded", a), this.queue = this.queue.filter((u) => !u.done);
7169
7193
  }
7170
7194
  read(e, t, s) {
7171
- let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, c = arguments.length > 5 ? arguments[5] : void 0;
7172
- if (!e.length) return c(null, {});
7195
+ let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, h = arguments.length > 5 ? arguments[5] : void 0;
7196
+ if (!e.length) return h(null, {});
7173
7197
  if (this.readingCalls >= this.maxParallelReads) {
7174
7198
  this.waitingReads.push({
7175
7199
  lng: e,
@@ -7177,34 +7201,34 @@ class n0 extends E1 {
7177
7201
  fcName: s,
7178
7202
  tried: n,
7179
7203
  wait: o,
7180
- callback: c
7204
+ callback: h
7181
7205
  });
7182
7206
  return;
7183
7207
  }
7184
7208
  this.readingCalls++;
7185
- const a = (g, l) => {
7209
+ const a = (d, l) => {
7186
7210
  if (this.readingCalls--, this.waitingReads.length > 0) {
7187
- const h = this.waitingReads.shift();
7188
- this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
7211
+ const c = this.waitingReads.shift();
7212
+ this.read(c.lng, c.ns, c.fcName, c.tried, c.wait, c.callback);
7189
7213
  }
7190
- if (g && l && n < this.maxRetries) {
7214
+ if (d && l && n < this.maxRetries) {
7191
7215
  setTimeout(() => {
7192
- this.read.call(this, e, t, s, n + 1, o * 2, c);
7216
+ this.read.call(this, e, t, s, n + 1, o * 2, h);
7193
7217
  }, o);
7194
7218
  return;
7195
7219
  }
7196
- c(g, l);
7197
- }, d = this.backend[s].bind(this.backend);
7198
- if (d.length === 2) {
7220
+ h(d, l);
7221
+ }, u = this.backend[s].bind(this.backend);
7222
+ if (u.length === 2) {
7199
7223
  try {
7200
- const g = d(e, t);
7201
- g && typeof g.then == "function" ? g.then((l) => a(null, l)).catch(a) : a(null, g);
7202
- } catch (g) {
7203
- a(g);
7224
+ const d = u(e, t);
7225
+ d && typeof d.then == "function" ? d.then((l) => a(null, l)).catch(a) : a(null, d);
7226
+ } catch (d) {
7227
+ a(d);
7204
7228
  }
7205
7229
  return;
7206
7230
  }
7207
- return d(e, t, a);
7231
+ return u(e, t, a);
7208
7232
  }
7209
7233
  prepareLoading(e, t) {
7210
7234
  let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = arguments.length > 3 ? arguments[3] : void 0;
@@ -7214,8 +7238,8 @@ class n0 extends E1 {
7214
7238
  const o = this.queueLoad(e, t, s, n);
7215
7239
  if (!o.toLoad.length)
7216
7240
  return o.pending.length || n(), null;
7217
- o.toLoad.forEach((c) => {
7218
- this.loadOne(c);
7241
+ o.toLoad.forEach((h) => {
7242
+ this.loadOne(h);
7219
7243
  });
7220
7244
  }
7221
7245
  load(e, t, s) {
@@ -7229,12 +7253,12 @@ class n0 extends E1 {
7229
7253
  loadOne(e) {
7230
7254
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
7231
7255
  const s = e.split("|"), n = s[0], o = s[1];
7232
- this.read(n, o, "read", void 0, void 0, (c, a) => {
7233
- c && this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`, c), !c && a && this.logger.log(`${t}loaded namespace ${o} for language ${n}`, a), this.loaded(e, c, a);
7256
+ this.read(n, o, "read", void 0, void 0, (h, a) => {
7257
+ h && this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`, h), !h && a && this.logger.log(`${t}loaded namespace ${o} for language ${n}`, a), this.loaded(e, h, a);
7234
7258
  });
7235
7259
  }
7236
7260
  saveMissing(e, t, s, n, o) {
7237
- let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, a = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
7261
+ let h = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, a = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
7238
7262
  };
7239
7263
  if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
7240
7264
  this.logger.warn(`did not save key "${s}" as the namespace "${t}" 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!!!");
@@ -7242,25 +7266,25 @@ class n0 extends E1 {
7242
7266
  }
7243
7267
  if (!(s == null || s === "")) {
7244
7268
  if (this.backend && this.backend.create) {
7245
- const d = {
7246
- ...c,
7269
+ const u = {
7270
+ ...h,
7247
7271
  isUpdate: o
7248
- }, g = this.backend.create.bind(this.backend);
7249
- if (g.length < 6)
7272
+ }, d = this.backend.create.bind(this.backend);
7273
+ if (d.length < 6)
7250
7274
  try {
7251
7275
  let l;
7252
- g.length === 5 ? l = g(e, t, s, n, d) : l = g(e, t, s, n), l && typeof l.then == "function" ? l.then((h) => a(null, h)).catch(a) : a(null, l);
7276
+ d.length === 5 ? l = d(e, t, s, n, u) : l = d(e, t, s, n), l && typeof l.then == "function" ? l.then((c) => a(null, c)).catch(a) : a(null, l);
7253
7277
  } catch (l) {
7254
7278
  a(l);
7255
7279
  }
7256
7280
  else
7257
- g(e, t, s, n, a, d);
7281
+ d(e, t, s, n, a, u);
7258
7282
  }
7259
7283
  !e || !e[0] || this.store.addResource(e[0], t, s, n);
7260
7284
  }
7261
7285
  }
7262
7286
  }
7263
- const X1 = () => ({
7287
+ const ee = () => ({
7264
7288
  debug: !1,
7265
7289
  initImmediate: !0,
7266
7290
  ns: ["translation"],
@@ -7316,18 +7340,18 @@ const X1 = () => ({
7316
7340
  maxReplaces: 1e3,
7317
7341
  skipOnVariables: !0
7318
7342
  }
7319
- }), ee = (i) => (R(i.ns) && (i.ns = [i.ns]), R(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), R(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), x1 = () => {
7320
- }, r0 = (i) => {
7343
+ }), te = (i) => (R(i.ns) && (i.ns = [i.ns]), R(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), R(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), x1 = () => {
7344
+ }, l0 = (i) => {
7321
7345
  Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
7322
7346
  typeof i[t] == "function" && (i[t] = i[t].bind(i));
7323
7347
  });
7324
7348
  };
7325
- class w1 extends E1 {
7349
+ class w1 extends _1 {
7326
7350
  constructor() {
7327
7351
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
7328
- if (super(), this.options = ee(e), this.services = {}, this.logger = J, this.modules = {
7352
+ if (super(), this.options = te(e), this.services = {}, this.logger = J, this.modules = {
7329
7353
  external: []
7330
- }, r0(this), t && !this.isInitialized && !e.isClone) {
7354
+ }, l0(this), t && !this.isInitialized && !e.isClone) {
7331
7355
  if (!this.options.initImmediate)
7332
7356
  return this.init(e, t), this;
7333
7357
  setTimeout(() => {
@@ -7339,11 +7363,11 @@ class w1 extends E1 {
7339
7363
  var e = this;
7340
7364
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
7341
7365
  this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (R(t.ns) ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
7342
- const n = X1();
7366
+ const n = ee();
7343
7367
  this.options = {
7344
7368
  ...n,
7345
7369
  ...this.options,
7346
- ...ee(t)
7370
+ ...te(t)
7347
7371
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
7348
7372
  ...n.interpolation,
7349
7373
  ...this.options.interpolation
@@ -7352,24 +7376,24 @@ class w1 extends E1 {
7352
7376
  if (!this.options.isClone) {
7353
7377
  this.modules.logger ? J.init(o(this.modules.logger), this.options) : J.init(null, this.options);
7354
7378
  let l;
7355
- this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = i0);
7356
- const h = new J1(this.options);
7357
- this.store = new U1(this.options.resources, this.options);
7358
- const u = this.services;
7359
- u.logger = J, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new Xi(h, {
7379
+ this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = r0);
7380
+ const c = new q1(this.options);
7381
+ this.store = new z1(this.options.resources, this.options);
7382
+ const g = this.services;
7383
+ g.logger = J, g.resourceStore = this.store, g.languageUtils = c, g.pluralResolver = new i0(c, {
7360
7384
  prepend: this.options.pluralSeparator,
7361
7385
  compatibilityJSON: this.options.compatibilityJSON,
7362
7386
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
7363
- }), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = o(l), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new e0(this.options), u.utils = {
7387
+ }), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (g.formatter = o(l), g.formatter.init(g, this.options), this.options.interpolation.format = g.formatter.format.bind(g.formatter)), g.interpolator = new s0(this.options), g.utils = {
7364
7388
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
7365
- }, u.backendConnector = new n0(o(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
7366
- for (var v = arguments.length, x = new Array(v > 1 ? v - 1 : 0), L = 1; L < v; L++)
7367
- x[L - 1] = arguments[L];
7368
- e.emit(p, ...x);
7369
- }), this.modules.languageDetector && (u.languageDetector = o(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = o(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new b1(this.services, this.options), this.translator.on("*", function(p) {
7370
- for (var v = arguments.length, x = new Array(v > 1 ? v - 1 : 0), L = 1; L < v; L++)
7371
- x[L - 1] = arguments[L];
7372
- e.emit(p, ...x);
7389
+ }, g.backendConnector = new a0(o(this.modules.backend), g.resourceStore, g, this.options), g.backendConnector.on("*", function(p) {
7390
+ for (var m = arguments.length, v = new Array(m > 1 ? m - 1 : 0), w = 1; w < m; w++)
7391
+ v[w - 1] = arguments[w];
7392
+ e.emit(p, ...v);
7393
+ }), this.modules.languageDetector && (g.languageDetector = o(this.modules.languageDetector), g.languageDetector.init && g.languageDetector.init(g, this.options.detection, this.options)), this.modules.i18nFormat && (g.i18nFormat = o(this.modules.i18nFormat), g.i18nFormat.init && g.i18nFormat.init(this)), this.translator = new y1(this.services, this.options), this.translator.on("*", function(p) {
7394
+ for (var m = arguments.length, v = new Array(m > 1 ? m - 1 : 0), w = 1; w < m; w++)
7395
+ v[w - 1] = arguments[w];
7396
+ e.emit(p, ...v);
7373
7397
  }), this.modules.external.forEach((p) => {
7374
7398
  p.init && p.init(this);
7375
7399
  });
@@ -7387,27 +7411,27 @@ class w1 extends E1 {
7387
7411
  return e.store[l](...arguments), e;
7388
7412
  };
7389
7413
  });
7390
- const d = C1(), g = () => {
7391
- const l = (h, u) => {
7392
- 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);
7414
+ const u = C1(), d = () => {
7415
+ const l = (c, g) => {
7416
+ 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), u.resolve(g), s(c, g);
7393
7417
  };
7394
7418
  if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return l(null, this.t.bind(this));
7395
7419
  this.changeLanguage(this.options.lng, l);
7396
7420
  };
7397
- return this.options.resources || !this.options.initImmediate ? g() : setTimeout(g, 0), d;
7421
+ return this.options.resources || !this.options.initImmediate ? d() : setTimeout(d, 0), u;
7398
7422
  }
7399
7423
  loadResources(e) {
7400
7424
  let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : x1;
7401
7425
  const n = R(e) ? e : this.language;
7402
7426
  if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
7403
7427
  if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
7404
- const o = [], c = (a) => {
7428
+ const o = [], h = (a) => {
7405
7429
  if (!a || a === "cimode") return;
7406
- this.services.languageUtils.toResolveHierarchy(a).forEach((g) => {
7407
- g !== "cimode" && o.indexOf(g) < 0 && o.push(g);
7430
+ this.services.languageUtils.toResolveHierarchy(a).forEach((d) => {
7431
+ d !== "cimode" && o.indexOf(d) < 0 && o.push(d);
7408
7432
  });
7409
7433
  };
7410
- n ? c(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => c(d)), this.options.preload && this.options.preload.forEach((a) => c(a)), this.services.backendConnector.load(o, this.options.ns, (a) => {
7434
+ n ? h(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => h(u)), this.options.preload && this.options.preload.forEach((a) => h(a)), this.services.backendConnector.load(o, this.options.ns, (a) => {
7411
7435
  !a && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(a);
7412
7436
  });
7413
7437
  } else
@@ -7439,39 +7463,39 @@ class w1 extends E1 {
7439
7463
  this.isLanguageChangingTo = e;
7440
7464
  const n = C1();
7441
7465
  this.emit("languageChanging", e);
7442
- const o = (d) => {
7443
- this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
7444
- }, c = (d, g) => {
7445
- g ? (o(g), this.translator.changeLanguage(g), this.isLanguageChangingTo = void 0, this.emit("languageChanged", g), this.logger.log("languageChanged", g)) : this.isLanguageChangingTo = void 0, n.resolve(function() {
7466
+ const o = (u) => {
7467
+ this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
7468
+ }, h = (u, d) => {
7469
+ d ? (o(d), this.translator.changeLanguage(d), this.isLanguageChangingTo = void 0, this.emit("languageChanged", d), this.logger.log("languageChanged", d)) : this.isLanguageChangingTo = void 0, n.resolve(function() {
7446
7470
  return s.t(...arguments);
7447
- }), t && t(d, function() {
7471
+ }), t && t(u, function() {
7448
7472
  return s.t(...arguments);
7449
7473
  });
7450
- }, a = (d) => {
7451
- !e && !d && this.services.languageDetector && (d = []);
7452
- const g = R(d) ? d : this.services.languageUtils.getBestMatchFromCodes(d);
7453
- g && (this.language || o(g), this.translator.language || this.translator.changeLanguage(g), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(g)), this.loadResources(g, (l) => {
7454
- c(l, g);
7474
+ }, a = (u) => {
7475
+ !e && !u && this.services.languageDetector && (u = []);
7476
+ const d = R(u) ? u : this.services.languageUtils.getBestMatchFromCodes(u);
7477
+ d && (this.language || o(d), this.translator.language || this.translator.changeLanguage(d), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(d)), this.loadResources(d, (l) => {
7478
+ h(l, d);
7455
7479
  });
7456
7480
  };
7457
7481
  return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), n;
7458
7482
  }
7459
7483
  getFixedT(e, t, s) {
7460
7484
  var n = this;
7461
- const o = function(c, a) {
7462
- let d;
7485
+ const o = function(h, a) {
7486
+ let u;
7463
7487
  if (typeof a != "object") {
7464
- for (var g = arguments.length, l = new Array(g > 2 ? g - 2 : 0), h = 2; h < g; h++)
7465
- l[h - 2] = arguments[h];
7466
- d = n.options.overloadTranslationOptionHandler([c, a].concat(l));
7488
+ for (var d = arguments.length, l = new Array(d > 2 ? d - 2 : 0), c = 2; c < d; c++)
7489
+ l[c - 2] = arguments[c];
7490
+ u = n.options.overloadTranslationOptionHandler([h, a].concat(l));
7467
7491
  } else
7468
- d = {
7492
+ u = {
7469
7493
  ...a
7470
7494
  };
7471
- d.lng = d.lng || o.lng, d.lngs = d.lngs || o.lngs, d.ns = d.ns || o.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || s || o.keyPrefix);
7472
- const u = n.options.keySeparator || ".";
7495
+ u.lng = u.lng || o.lng, u.lngs = u.lngs || o.lngs, u.ns = u.ns || o.ns, u.keyPrefix !== "" && (u.keyPrefix = u.keyPrefix || s || o.keyPrefix);
7496
+ const g = n.options.keySeparator || ".";
7473
7497
  let p;
7474
- return d.keyPrefix && Array.isArray(c) ? p = c.map((v) => `${d.keyPrefix}${u}${v}`) : p = d.keyPrefix ? `${d.keyPrefix}${u}${c}` : c, n.t(p, d);
7498
+ return u.keyPrefix && Array.isArray(h) ? p = h.map((m) => `${u.keyPrefix}${g}${m}`) : p = u.keyPrefix ? `${u.keyPrefix}${g}${h}` : h, n.t(p, u);
7475
7499
  };
7476
7500
  return R(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = s, o;
7477
7501
  }
@@ -7492,15 +7516,15 @@ class w1 extends E1 {
7492
7516
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
7493
7517
  const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1, o = this.languages[this.languages.length - 1];
7494
7518
  if (s.toLowerCase() === "cimode") return !0;
7495
- const c = (a, d) => {
7496
- const g = this.services.backendConnector.state[`${a}|${d}`];
7497
- return g === -1 || g === 0 || g === 2;
7519
+ const h = (a, u) => {
7520
+ const d = this.services.backendConnector.state[`${a}|${u}`];
7521
+ return d === -1 || d === 0 || d === 2;
7498
7522
  };
7499
7523
  if (t.precheck) {
7500
- const a = t.precheck(this, c);
7524
+ const a = t.precheck(this, h);
7501
7525
  if (a !== void 0) return a;
7502
7526
  }
7503
- return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!n || c(o, e)));
7527
+ return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || h(s, e) && (!n || h(o, e)));
7504
7528
  }
7505
7529
  loadNamespaces(e, t) {
7506
7530
  const s = C1();
@@ -7513,14 +7537,14 @@ class w1 extends E1 {
7513
7537
  loadLanguages(e, t) {
7514
7538
  const s = C1();
7515
7539
  R(e) && (e = [e]);
7516
- const n = this.options.preload || [], o = e.filter((c) => n.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
7517
- return o.length ? (this.options.preload = n.concat(o), this.loadResources((c) => {
7518
- s.resolve(), t && t(c);
7540
+ const n = this.options.preload || [], o = e.filter((h) => n.indexOf(h) < 0 && this.services.languageUtils.isSupportedCode(h));
7541
+ return o.length ? (this.options.preload = n.concat(o), this.loadResources((h) => {
7542
+ s.resolve(), t && t(h);
7519
7543
  }), s) : (t && t(), Promise.resolve());
7520
7544
  }
7521
7545
  dir(e) {
7522
7546
  if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
7523
- 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());
7547
+ 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 q1(ee());
7524
7548
  return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
7525
7549
  }
7526
7550
  static createInstance() {
@@ -7542,10 +7566,10 @@ class w1 extends E1 {
7542
7566
  ...this.services
7543
7567
  }, o.services.utils = {
7544
7568
  hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
7545
- }, s && (o.store = new U1(this.store.data, n), o.services.resourceStore = o.store), o.translator = new b1(o.services, n), o.translator.on("*", function(a) {
7546
- for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), l = 1; l < d; l++)
7547
- g[l - 1] = arguments[l];
7548
- o.emit(a, ...g);
7569
+ }, s && (o.store = new z1(this.store.data, n), o.services.resourceStore = o.store), o.translator = new y1(o.services, n), o.translator.on("*", function(a) {
7570
+ for (var u = arguments.length, d = new Array(u > 1 ? u - 1 : 0), l = 1; l < u; l++)
7571
+ d[l - 1] = arguments[l];
7572
+ o.emit(a, ...d);
7549
7573
  }), o.init(n, t), o.translator.options = n, o.translator.backendConnector.services.utils = {
7550
7574
  hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
7551
7575
  }, o;
@@ -7576,20 +7600,20 @@ W.setDefaultNamespace;
7576
7600
  W.hasLoadedNamespace;
7577
7601
  W.loadNamespaces;
7578
7602
  W.loadLanguages;
7579
- function o0() {
7603
+ function c0() {
7580
7604
  if (console && console.warn) {
7581
7605
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
7582
7606
  e[t] = arguments[t];
7583
7607
  n1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
7584
7608
  }
7585
7609
  }
7586
- const te = {};
7587
- function V1() {
7610
+ const ie = {};
7611
+ function A1() {
7588
7612
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
7589
7613
  e[t] = arguments[t];
7590
- n1(e[0]) && te[e[0]] || (n1(e[0]) && (te[e[0]] = /* @__PURE__ */ new Date()), o0(...e));
7614
+ n1(e[0]) && ie[e[0]] || (n1(e[0]) && (ie[e[0]] = /* @__PURE__ */ new Date()), c0(...e));
7591
7615
  }
7592
- const ue = (i, e) => () => {
7616
+ const Ce = (i, e) => () => {
7593
7617
  if (i.isInitialized)
7594
7618
  e();
7595
7619
  else {
@@ -7600,30 +7624,30 @@ const ue = (i, e) => () => {
7600
7624
  };
7601
7625
  i.on("initialized", t);
7602
7626
  }
7603
- }, ie = (i, e, t) => {
7604
- i.loadNamespaces(e, ue(i, t));
7605
- }, se = (i, e, t, s) => {
7627
+ }, se = (i, e, t) => {
7628
+ i.loadNamespaces(e, Ce(i, t));
7629
+ }, ne = (i, e, t, s) => {
7606
7630
  n1(t) && (t = [t]), t.forEach((n) => {
7607
7631
  i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
7608
- }), i.loadLanguages(e, ue(i, s));
7609
- }, a0 = function(i, e) {
7632
+ }), i.loadLanguages(e, Ce(i, s));
7633
+ }, h0 = function(i, e) {
7610
7634
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
7611
7635
  const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
7612
7636
  if (s.toLowerCase() === "cimode") return !0;
7613
- const c = (a, d) => {
7614
- const g = e.services.backendConnector.state[`${a}|${d}`];
7615
- return g === -1 || g === 2;
7637
+ const h = (a, u) => {
7638
+ const d = e.services.backendConnector.state[`${a}|${u}`];
7639
+ return d === -1 || d === 2;
7616
7640
  };
7617
- 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(o, i)));
7618
- }, l0 = function(i, e) {
7641
+ return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(s, i) && (!n || h(o, i)));
7642
+ }, d0 = function(i, e) {
7619
7643
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
7620
- return !e.languages || !e.languages.length ? (V1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
7644
+ return !e.languages || !e.languages.length ? (A1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
7621
7645
  lng: t.lng,
7622
7646
  precheck: (n, o) => {
7623
7647
  if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !o(n.isLanguageChangingTo, i)) return !1;
7624
7648
  }
7625
- }) : a0(i, e, t);
7626
- }, n1 = (i) => typeof i == "string", h0 = (i) => typeof i == "object" && i !== null, c0 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, d0 = {
7649
+ }) : h0(i, e, t);
7650
+ }, n1 = (i) => typeof i == "string", u0 = (i) => typeof i == "object" && i !== null, g0 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, C0 = {
7627
7651
  "&amp;": "&",
7628
7652
  "&#38;": "&",
7629
7653
  "&lt;": "<",
@@ -7644,8 +7668,8 @@ const ue = (i, e) => () => {
7644
7668
  "&#8230;": "…",
7645
7669
  "&#x2F;": "/",
7646
7670
  "&#47;": "/"
7647
- }, g0 = (i) => d0[i], u0 = (i) => i.replace(c0, g0);
7648
- let A1 = {
7671
+ }, p0 = (i) => C0[i], f0 = (i) => i.replace(g0, p0);
7672
+ let T1 = {
7649
7673
  bindI18n: "languageChanged",
7650
7674
  bindI18nStore: "",
7651
7675
  transEmptyNodeValue: "",
@@ -7653,27 +7677,27 @@ let A1 = {
7653
7677
  transWrapTextNodes: "",
7654
7678
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
7655
7679
  useSuspense: !0,
7656
- unescape: u0
7680
+ unescape: f0
7657
7681
  };
7658
- const C0 = function() {
7682
+ const m0 = function() {
7659
7683
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7660
- A1 = {
7661
- ...A1,
7684
+ T1 = {
7685
+ ...T1,
7662
7686
  ...i
7663
7687
  };
7664
- }, p0 = () => A1;
7665
- let Ce;
7666
- const f0 = (i) => {
7667
- Ce = i;
7668
- }, m0 = () => Ce, w0 = {
7688
+ }, w0 = () => T1;
7689
+ let pe;
7690
+ const k0 = (i) => {
7691
+ pe = i;
7692
+ }, L0 = () => pe, v0 = {
7669
7693
  type: "3rdParty",
7670
7694
  init(i) {
7671
- C0(i.options.react), f0(i);
7695
+ m0(i.options.react), k0(i);
7672
7696
  }
7673
- }, k0 = d1();
7674
- class L0 {
7697
+ }, N0 = d1();
7698
+ class x0 {
7675
7699
  constructor() {
7676
- B1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
7700
+ j1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
7677
7701
  this.usedNamespaces = {};
7678
7702
  }
7679
7703
  addUsedNamespaces(e) {
@@ -7682,186 +7706,186 @@ class L0 {
7682
7706
  });
7683
7707
  }
7684
7708
  }
7685
- const v0 = (i, e) => {
7709
+ const R0 = (i, e) => {
7686
7710
  const t = Y();
7687
- return j(() => {
7711
+ return T(() => {
7688
7712
  t.current = i;
7689
7713
  }, [i, e]), t.current;
7690
- }, pe = (i, e, t, s) => i.getFixedT(e, t, s), N0 = (i, e, t, s) => Z(pe(i, e, t, s), [i, e, t, s]), x0 = function(i) {
7714
+ }, fe = (i, e, t, s) => i.getFixedT(e, t, s), M0 = (i, e, t, s) => Z(fe(i, e, t, s), [i, e, t, s]), b0 = function(i) {
7691
7715
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7692
7716
  const {
7693
7717
  i18n: t
7694
7718
  } = e, {
7695
7719
  i18n: s,
7696
7720
  defaultNS: n
7697
- } = r1(k0) || {}, o = t || s || m0();
7698
- if (o && !o.reportNamespaces && (o.reportNamespaces = new L0()), !o) {
7699
- V1("You will need to pass in an i18next instance by using initReactI18next");
7700
- const f = (N, w) => n1(w) ? w : h0(w) && n1(w.defaultValue) ? w.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, m = [f, {}, !1];
7701
- return m.t = f, m.i18n = {}, m.ready = !1, m;
7702
- }
7703
- o.options.react && o.options.react.wait !== void 0 && V1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
7704
- const c = {
7705
- ...p0(),
7721
+ } = r1(N0) || {}, o = t || s || L0();
7722
+ if (o && !o.reportNamespaces && (o.reportNamespaces = new x0()), !o) {
7723
+ A1("You will need to pass in an i18next instance by using initReactI18next");
7724
+ const f = (x, L) => n1(L) ? L : u0(L) && n1(L.defaultValue) ? L.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, k = [f, {}, !1];
7725
+ return k.t = f, k.i18n = {}, k.ready = !1, k;
7726
+ }
7727
+ o.options.react && o.options.react.wait !== void 0 && A1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
7728
+ const h = {
7729
+ ...w0(),
7706
7730
  ...o.options.react,
7707
7731
  ...e
7708
7732
  }, {
7709
7733
  useSuspense: a,
7710
- keyPrefix: d
7711
- } = c;
7712
- let g = i;
7713
- g = n1(g) ? [g] : g || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(g);
7714
- const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) => l0(f, o, c)), h = N0(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => pe(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [v, x] = A(u);
7715
- let L = g.join();
7716
- e.lng && (L = `${e.lng}${L}`);
7717
- const _ = v0(L), M = Y(!0);
7718
- j(() => {
7734
+ keyPrefix: u
7735
+ } = h;
7736
+ let d = i;
7737
+ d = n1(d) ? [d] : d || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(d);
7738
+ const l = (o.isInitialized || o.initializedStoreOnce) && d.every((f) => d0(f, o, h)), c = M0(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], u), g = () => c, p = () => fe(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], u), [m, v] = V(g);
7739
+ let w = d.join();
7740
+ e.lng && (w = `${e.lng}${w}`);
7741
+ const y = R0(w), M = Y(!0);
7742
+ T(() => {
7719
7743
  const {
7720
7744
  bindI18n: f,
7721
- bindI18nStore: m
7722
- } = c;
7723
- M.current = !0, !l && !a && (e.lng ? se(o, e.lng, g, () => {
7724
- M.current && x(p);
7725
- }) : ie(o, g, () => {
7726
- M.current && x(p);
7727
- })), l && _ && _ !== L && M.current && x(p);
7728
- const N = () => {
7729
- M.current && x(p);
7745
+ bindI18nStore: k
7746
+ } = h;
7747
+ M.current = !0, !l && !a && (e.lng ? ne(o, e.lng, d, () => {
7748
+ M.current && v(p);
7749
+ }) : se(o, d, () => {
7750
+ M.current && v(p);
7751
+ })), l && y && y !== w && M.current && v(p);
7752
+ const x = () => {
7753
+ M.current && v(p);
7730
7754
  };
7731
- return f && o && o.on(f, N), m && o && o.store.on(m, N), () => {
7732
- M.current = !1, f && o && f.split(" ").forEach((w) => o.off(w, N)), m && o && m.split(" ").forEach((w) => o.store.off(w, N));
7755
+ return f && o && o.on(f, x), k && o && o.store.on(k, x), () => {
7756
+ M.current = !1, f && o && f.split(" ").forEach((L) => o.off(L, x)), k && o && k.split(" ").forEach((L) => o.store.off(L, x));
7733
7757
  };
7734
- }, [o, L]), j(() => {
7735
- M.current && l && x(u);
7736
- }, [o, d, l]);
7737
- const H = [v, o, l];
7738
- if (H.t = v, H.i18n = o, H.ready = l, l || !l && !a) return H;
7758
+ }, [o, w]), T(() => {
7759
+ M.current && l && v(g);
7760
+ }, [o, u, l]);
7761
+ const H = [m, o, l];
7762
+ if (H.t = m, H.i18n = o, H.ready = l, l || !l && !a) return H;
7739
7763
  throw new Promise((f) => {
7740
- e.lng ? se(o, e.lng, g, () => f()) : ie(o, g, () => f());
7764
+ e.lng ? ne(o, e.lng, d, () => f()) : se(o, d, () => f());
7741
7765
  });
7742
- }, R0 = "City", M0 = {
7743
- placeholder: R0
7744
- }, y0 = "Город", b0 = {
7766
+ }, y0 = "City", E0 = {
7745
7767
  placeholder: y0
7768
+ }, _0 = "Город", H0 = {
7769
+ placeholder: _0
7746
7770
  };
7747
- function E0(i) {
7771
+ function I0(i) {
7748
7772
  const e = Y(i);
7749
- return j(() => {
7773
+ return T(() => {
7750
7774
  e.current = i;
7751
7775
  }, [i]), e.current;
7752
7776
  }
7753
- W.use(w0).init({
7777
+ W.use(v0).init({
7754
7778
  defaultNS: "common",
7755
7779
  lng: "en",
7756
7780
  resources: {
7757
7781
  en: {
7758
- common: M0
7782
+ common: E0
7759
7783
  },
7760
7784
  ru: {
7761
- common: b0
7785
+ common: H0
7762
7786
  }
7763
7787
  }
7764
7788
  });
7765
- const A0 = k1(
7766
- ({ width: i, selectedCountry: e, onChange: t, value: s, id: n, disabled: o, clearable: c }, a) => {
7767
- const [d, g] = A(
7789
+ const j0 = k1(
7790
+ ({ width: i, selectedCountry: e, onChange: t, value: s, id: n, disabled: o, clearable: h }, a) => {
7791
+ const [u, d] = V(
7768
7792
  []
7769
- ), [l, h] = A(!1), { locale: u, axiosPeople: p } = r1(ke), v = Y(!1), x = Y(null), L = Y(d), _ = E0(e);
7793
+ ), [l, c] = V(!1), { locale: g, axiosPeople: p } = r1(Le), m = Y(!1), v = Y(null), w = Y(u), y = I0(e);
7770
7794
  if (!p)
7771
7795
  throw new Error(
7772
7796
  `CitySelect requires "axiosPeople" to fetch cities.
7773
7797
  Please provide it via SNMTUiContext.`
7774
7798
  );
7775
- const { t: M } = x0("common", { lng: u }), H = Z(
7776
- async (m) => {
7777
- const N = L.current.find((w) => w.value === m);
7778
- if (N)
7779
- return [N];
7799
+ const { t: M } = b0("common", { lng: g }), H = Z(
7800
+ async (k) => {
7801
+ const x = w.current.find((L) => L.value === k);
7802
+ if (x)
7803
+ return [x];
7780
7804
  try {
7781
7805
  const I = (await p.post("v1/cities/search", {
7782
7806
  filters: {
7783
- geoNameId: [m],
7807
+ geoNameId: [k],
7784
7808
  countryId: [e]
7785
7809
  }
7786
7810
  })).data.data;
7787
7811
  if (!I.length)
7788
7812
  return t(null), [];
7789
- const T = {
7813
+ const B = {
7790
7814
  value: I[0].geoNameId,
7791
7815
  label: I[0].name
7792
7816
  };
7793
- return L.current = [...L.current, T], [T];
7794
- } catch (w) {
7795
- return console.error("CitySelect. fetchSelectedItems error", w), [];
7817
+ return w.current = [...w.current, B], [B];
7818
+ } catch (L) {
7819
+ return console.error("CitySelect. fetchSelectedItems error", L), [];
7796
7820
  }
7797
7821
  },
7798
7822
  [p, e, t]
7799
7823
  );
7800
- j(() => {
7824
+ T(() => {
7801
7825
  (async () => {
7802
7826
  if (!s) return;
7803
- const N = await H(s);
7804
- g(N);
7827
+ const x = await H(s);
7828
+ d(x);
7805
7829
  })();
7806
- }, []), j(() => {
7807
- var m;
7808
- _ !== e ? v.current && (t(null), g([]), L.current = [], (m = x.current) == null || m.refetchOptions()) : v.current = !0;
7809
- }, [e, t, _]);
7830
+ }, []), T(() => {
7831
+ var k;
7832
+ y !== e ? m.current && (t(null), d([]), w.current = [], (k = v.current) == null || k.refetchOptions()) : m.current = !0;
7833
+ }, [e, t, y]);
7810
7834
  const f = Z(
7811
7835
  async ({
7812
- limit: m,
7813
- offset: N,
7814
- search: w
7836
+ limit: k,
7837
+ offset: x,
7838
+ search: L
7815
7839
  }) => {
7816
7840
  try {
7817
- h(!0);
7841
+ c(!0);
7818
7842
  const I = {
7819
- offset: N,
7820
- limit: m,
7843
+ offset: x,
7844
+ limit: k,
7821
7845
  includeCount: !0
7822
7846
  };
7823
- I.filters = {}, e && e.length > 0 && (I.filters.countryId = [e]), w && (I.search = w);
7824
- const T = await p.post("v1/cities/search", I), D = (T == null ? void 0 : T.data.data) || [], G = T == null ? void 0 : T.data.metadata.count;
7847
+ I.filters = {}, e && e.length > 0 && (I.filters.countryId = [e]), L && (I.search = L);
7848
+ const B = await p.post("v1/cities/search", I), D = (B == null ? void 0 : B.data.data) || [], G = B == null ? void 0 : B.data.metadata.count;
7825
7849
  return {
7826
7850
  options: D.map((O) => ({
7827
7851
  value: O.geoNameId,
7828
7852
  label: O.name
7829
7853
  })),
7830
7854
  count: G,
7831
- limit: m
7855
+ limit: k
7832
7856
  };
7833
7857
  } catch (I) {
7834
7858
  return console.error("CitySelect. loadOptions error", I), {
7835
7859
  options: [],
7836
7860
  count: 0,
7837
- limit: m
7861
+ limit: k
7838
7862
  };
7839
7863
  } finally {
7840
- h(!1);
7864
+ c(!1);
7841
7865
  }
7842
7866
  },
7843
7867
  [p, e]
7844
7868
  );
7845
- return ne(a, () => x.current), /* @__PURE__ */ r("div", { className: "snmt-city-select", children: /* @__PURE__ */ r(
7846
- Ti,
7869
+ return E1(a, () => v.current), /* @__PURE__ */ r("div", { className: "snmt-city-select", children: /* @__PURE__ */ r(
7870
+ Di,
7847
7871
  {
7848
7872
  id: n,
7849
7873
  width: i,
7850
7874
  value: l && s ? null : s,
7851
7875
  onChange: t,
7852
- ref: x,
7876
+ ref: v,
7853
7877
  search: !0,
7854
7878
  placeholder: M("placeholder"),
7855
7879
  disabled: o,
7856
- clearable: c,
7880
+ clearable: h,
7857
7881
  loadOptions: f,
7858
7882
  preloadOptions: !0,
7859
- extraOptions: d,
7883
+ extraOptions: u,
7860
7884
  isLoading: l
7861
7885
  }
7862
7886
  ) });
7863
7887
  }
7864
7888
  );
7865
7889
  export {
7866
- A0 as CitySelect
7890
+ j0 as CitySelect
7867
7891
  };