@snmt-react-ui/user-select 2.7.21 → 2.7.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/user-select.js +1050 -1080
  2. package/package.json +4 -4
@@ -1,26 +1,26 @@
1
- var Le = Object.defineProperty;
2
- var ve = (i, e, t) => e in i ? Le(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var B1 = (i, e, t) => ve(i, typeof e != "symbol" ? e + "" : e, t);
1
+ var ke = Object.defineProperty;
2
+ var Le = (i, e, t) => e in i ? ke(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var D1 = (i, e, t) => Le(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 { createContext as d1, forwardRef as k1, useRef as q, useImperativeHandle as _1, useState as T, useEffect as j, useCallback as $, useMemo as Ne, useContext as r1 } from "react";
7
- import { Select as xe, Flex as Re, Avatar as Me, Checkbox as be, Tooltip as ae, Typography as le, Tag as ye, Popover as Ee } from "antd";
8
- import { SNMTUiContext as _e } from "@snmt-react-ui/core";
9
- var He = Object.defineProperty, Ie = (i, e, t) => e in i ? He(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Oe = (i, e, t) => Ie(i, e + "", t), Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
- function Ve() {
6
+ import { createContext as d1, forwardRef as k1, useState as B, useRef as X, useEffect as G, useCallback as $, useMemo as ve, useImperativeHandle as oe, useContext as r1 } from "react";
7
+ import { Select as Ne, Flex as xe, Avatar as Re, Checkbox as Me, Typography as ae, Tag as be, Popover as ye } from "antd";
8
+ import { SNMTUiContext as Ee } from "@snmt-react-ui/core";
9
+ var _e = Object.defineProperty, He = (i, e, t) => e in i ? _e(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Ie = (i, e, t) => He(i, e + "", t), Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
+ function Se() {
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 V1() {
17
+ const B1 = {};
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()), Ve(...e));
21
+ s1(e[0]) && B1[e[0]] || (s1(e[0]) && (B1[e[0]] = /* @__PURE__ */ new Date()), Se(...e));
22
22
  }
23
- const he = (i, e) => () => {
23
+ const le = (i, e) => () => {
24
24
  if (i.isInitialized)
25
25
  e();
26
26
  else {
@@ -31,30 +31,30 @@ const he = (i, e) => () => {
31
31
  };
32
32
  i.on("initialized", t);
33
33
  }
34
- }, W1 = (i, e, t) => {
35
- i.loadNamespaces(e, he(i, t));
36
- }, G1 = (i, e, t, s) => {
34
+ }, j1 = (i, e, t) => {
35
+ i.loadNamespaces(e, le(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, he(i, s));
40
- }, Ae = function(i, e) {
39
+ }), i.loadLanguages(e, le(i, s));
40
+ }, Ve = function(i, e) {
41
41
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
42
- const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
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 = (o, d) => {
45
- const g = e.services.backendConnector.state[`${o}|${d}`];
44
+ const c = (a, d) => {
45
+ const g = e.services.backendConnector.state[`${a}|${d}`];
46
46
  return g === -1 || g === 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(a, i)));
49
- }, Te = function(i, e) {
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
+ }, Ae = function(i, e) {
50
50
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
51
- return !e.languages || !e.languages.length ? (V1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
51
+ return !e.languages || !e.languages.length ? (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
- }) : Ae(i, e, t);
57
- }, s1 = (i) => typeof i == "string", Ze = (i) => typeof i == "object" && i !== null, De = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Be = {
56
+ }) : Ve(i, e, t);
57
+ }, s1 = (i) => typeof i == "string", Te = (i) => typeof i == "object" && i !== null, Ze = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, De = {
58
58
  "&amp;": "&",
59
59
  "&#38;": "&",
60
60
  "&lt;": "<",
@@ -75,8 +75,8 @@ const he = (i, e) => () => {
75
75
  "&#8230;": "…",
76
76
  "&#x2F;": "/",
77
77
  "&#47;": "/"
78
- }, je = (i) => Be[i], We = (i) => i.replace(De, je);
79
- let Ge = {
78
+ }, Be = (i) => De[i], je = (i) => i.replace(Ze, Be);
79
+ let We = {
80
80
  bindI18n: "languageChanged",
81
81
  bindI18nStore: "",
82
82
  transEmptyNodeValue: "",
@@ -84,14 +84,14 @@ let Ge = {
84
84
  transWrapTextNodes: "",
85
85
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
86
86
  useSuspense: !0,
87
- unescape: We
87
+ unescape: je
88
88
  };
89
- const Ke = () => Ge;
90
- let $e;
91
- const Pe = () => $e, Fe = d1();
92
- class Ye {
89
+ const Ge = () => We;
90
+ let Ke;
91
+ const $e = () => Ke, Pe = d1();
92
+ class Fe {
93
93
  constructor() {
94
- Oe(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
94
+ Ie(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
95
95
  }
96
96
  addUsedNamespaces(e) {
97
97
  e.forEach((t) => {
@@ -99,62 +99,62 @@ class Ye {
99
99
  });
100
100
  }
101
101
  }
102
- const Ue = (i, e) => {
103
- const t = q();
104
- return j(() => {
102
+ const Ye = (i, e) => {
103
+ const t = X();
104
+ return G(() => {
105
105
  t.current = i;
106
106
  }, [i, e]), t.current;
107
- }, ce = (i, e, t, s) => i.getFixedT(e, t, s), ze = (i, e, t, s) => $(ce(i, e, t, s), [i, e, t, s]), Je = function(i) {
107
+ }, he = (i, e, t, s) => i.getFixedT(e, t, s), Ue = (i, e, t, s) => $(he(i, e, t, s), [i, e, t, s]), ze = 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(Fe) || {}, a = t || s || Pe();
115
- if (a && !a.reportNamespaces && (a.reportNamespaces = new Ye()), !a) {
116
- V1("You will need to pass in an i18next instance by using initReactI18next");
117
- const f = (x, v) => s1(v) ? v : Ze(v) && s1(v.defaultValue) ? v.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
114
+ } = r1(Pe) || {}, o = t || s || $e();
115
+ if (o && !o.reportNamespaces && (o.reportNamespaces = new Fe()), !o) {
116
+ S1("You will need to pass in an i18next instance by using initReactI18next");
117
+ const f = (x, L) => s1(L) ? L : Te(L) && s1(L.defaultValue) ? L.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
118
118
  return N.t = f, N.i18n = {}, N.ready = !1, N;
119
119
  }
120
- a.options.react && a.options.react.wait !== void 0 && V1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
120
+ 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
121
  const c = {
122
- ...Ke(),
123
- ...a.options.react,
122
+ ...Ge(),
123
+ ...o.options.react,
124
124
  ...e
125
125
  }, {
126
- useSuspense: o,
126
+ useSuspense: a,
127
127
  keyPrefix: d
128
128
  } = c;
129
129
  let g = i;
130
- g = s1(g) ? [g] : g || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(g);
131
- const l = (a.isInitialized || a.initializedStoreOnce) && g.every((f) => Te(f, a, c)), h = ze(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => ce(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [w, k] = T(u);
130
+ g = s1(g) ? [g] : g || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(g);
131
+ const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) => Ae(f, o, c)), h = Ue(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => he(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [k, v] = B(u);
132
132
  let m = g.join();
133
133
  e.lng && (m = `${e.lng}${m}`);
134
- const _ = Ue(m), M = q(!0);
135
- j(() => {
134
+ const O = Ye(m), M = X(!0);
135
+ G(() => {
136
136
  const {
137
137
  bindI18n: f,
138
138
  bindI18nStore: N
139
139
  } = c;
140
- M.current = !0, !l && !o && (e.lng ? G1(a, e.lng, g, () => {
141
- M.current && k(p);
142
- }) : W1(a, g, () => {
143
- M.current && k(p);
144
- })), l && _ && _ !== m && M.current && k(p);
140
+ M.current = !0, !l && !a && (e.lng ? W1(o, e.lng, g, () => {
141
+ M.current && v(p);
142
+ }) : j1(o, g, () => {
143
+ M.current && v(p);
144
+ })), l && O && O !== m && M.current && v(p);
145
145
  const x = () => {
146
- M.current && k(p);
146
+ M.current && v(p);
147
147
  };
148
- return f && a && a.on(f, x), N && a && a.store.on(N, x), () => {
149
- M.current = !1, f && a && f.split(" ").forEach((v) => a.off(v, x)), N && a && N.split(" ").forEach((v) => a.store.off(v, x));
148
+ return f && o && o.on(f, x), N && o && o.store.on(N, x), () => {
149
+ M.current = !1, f && o && f.split(" ").forEach((L) => o.off(L, x)), N && o && N.split(" ").forEach((L) => o.store.off(L, x));
150
150
  };
151
- }, [a, m]), j(() => {
152
- M.current && l && k(u);
153
- }, [a, d, l]);
154
- const S = [w, a, l];
155
- if (S.t = w, S.i18n = a, S.ready = l, l || !l && !o) return S;
151
+ }, [o, m]), G(() => {
152
+ M.current && l && v(u);
153
+ }, [o, d, l]);
154
+ const S = [k, o, l];
155
+ if (S.t = k, S.i18n = o, S.ready = l, l || !l && !a) return S;
156
156
  throw new Promise((f) => {
157
- e.lng ? G1(a, e.lng, g, () => f()) : W1(a, g, () => f());
157
+ e.lng ? W1(o, e.lng, g, () => f()) : j1(o, g, () => f());
158
158
  });
159
159
  }, p1 = ({
160
160
  children: i,
@@ -162,26 +162,26 @@ const Ue = (i, e) => {
162
162
  flexWrap: t = "nowrap",
163
163
  alignItems: s = "normal",
164
164
  justifyContent: n = "normal",
165
- flex: a,
165
+ flex: o,
166
166
  gap: c,
167
- padding: o
167
+ padding: a
168
168
  }) => /* @__PURE__ */ r(
169
- Re,
169
+ xe,
170
170
  {
171
171
  className: `snmt-flex${t === "inherit" ? " inherit" : ""}`,
172
172
  vertical: e === "column",
173
173
  wrap: t,
174
174
  align: s,
175
175
  justify: n,
176
- flex: a,
176
+ flex: o,
177
177
  gap: c,
178
- style: { padding: o },
178
+ style: { padding: a },
179
179
  children: i
180
180
  }
181
- ), qe = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
181
+ ), Je = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
182
182
  const n = typeof s.src == "string";
183
183
  return /* @__PURE__ */ r(
184
- Me,
184
+ Re,
185
185
  {
186
186
  className: `snmt-avatar ${n ? "image" : ""}`,
187
187
  shape: i,
@@ -193,32 +193,32 @@ const Ue = (i, e) => {
193
193
  );
194
194
  };
195
195
  var Q = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.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))(Q || {});
196
- const D1 = d1({
196
+ const Z1 = d1({
197
197
  locale: "en",
198
198
  theme: "light"
199
199
  });
200
- D1.Provider;
200
+ Z1.Provider;
201
201
  const Qe = ({
202
202
  checked: i = !0,
203
203
  indeterminate: e = !1,
204
204
  children: t,
205
205
  onChange: s,
206
206
  disabled: n = !1,
207
- disableUncheck: a = !1
207
+ disableUncheck: o = !1
208
208
  }) => {
209
- const [c, o] = T(i), [d, g] = T(e);
210
- j(() => {
211
- o(i), g(e);
209
+ const [c, a] = B(i), [d, g] = B(e);
210
+ G(() => {
211
+ a(i), g(e);
212
212
  }, [i, e]);
213
- const { theme: l } = r1(D1);
213
+ const { theme: l } = r1(Z1);
214
214
  return /* @__PURE__ */ r(
215
- be,
215
+ Me,
216
216
  {
217
217
  className: `snmt-checkbox snmt-checkbox-${l}`,
218
218
  checked: c,
219
219
  indeterminate: d,
220
220
  onChange: (h) => {
221
- a && c || (g(!1), o(h.target.checked), s && s(h));
221
+ o && c || (g(!1), a(h.target.checked), s && s(h));
222
222
  },
223
223
  disabled: n,
224
224
  children: t
@@ -226,12 +226,12 @@ const Qe = ({
226
226
  );
227
227
  };
228
228
  var y = /* @__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))(y || {});
229
- const de = d1({
229
+ const ce = d1({
230
230
  locale: "en",
231
231
  theme: "light"
232
232
  });
233
- de.Provider;
234
- const Xe = ({
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 Xe = ({
258
258
  }
259
259
  )
260
260
  }
261
- ), et = ({
261
+ ), Xe = ({
262
262
  width: i = 20,
263
263
  height: e = 20,
264
264
  color: t = y.GREY_DARK_5,
@@ -298,7 +298,7 @@ const Xe = ({
298
298
  )
299
299
  ]
300
300
  }
301
- ), tt = ({
301
+ ), et = ({
302
302
  width: i = 20,
303
303
  height: e = 20,
304
304
  color: t = "#001E52",
@@ -333,7 +333,7 @@ const Xe = ({
333
333
  )
334
334
  ]
335
335
  }
336
- ), it = ({
336
+ ), tt = ({
337
337
  width: i = 18,
338
338
  height: e = 18,
339
339
  color: t = "#001E52",
@@ -372,7 +372,7 @@ const Xe = ({
372
372
  )
373
373
  ]
374
374
  }
375
- ), st = ({
375
+ ), it = ({
376
376
  width: i = 20,
377
377
  height: e = 20,
378
378
  color: t = "#001E52",
@@ -398,7 +398,7 @@ const Xe = ({
398
398
  }
399
399
  )
400
400
  }
401
- ), nt = ({
401
+ ), st = ({
402
402
  width: i = 20,
403
403
  height: e = 20,
404
404
  color: t = "#001E52",
@@ -419,7 +419,7 @@ const Xe = ({
419
419
  /* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
420
420
  ]
421
421
  }
422
- ), rt = ({
422
+ ), nt = ({
423
423
  width: i = 20,
424
424
  height: e = 20,
425
425
  color: t = "#001E52",
@@ -451,7 +451,7 @@ const Xe = ({
451
451
  )
452
452
  ]
453
453
  }
454
- ), ot = ({
454
+ ), rt = ({
455
455
  width: i = 20,
456
456
  height: e = 20,
457
457
  color: t = "#001E52",
@@ -505,7 +505,7 @@ const Xe = ({
505
505
  )
506
506
  ]
507
507
  }
508
- ), at = ({
508
+ ), ot = ({
509
509
  width: i = 20,
510
510
  height: e = 20,
511
511
  color: t = "#001E52",
@@ -544,7 +544,7 @@ const Xe = ({
544
544
  /* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
545
545
  ]
546
546
  }
547
- ), lt = ({
547
+ ), at = ({
548
548
  width: i = 16,
549
549
  height: e = 12,
550
550
  color: t = "#001E52",
@@ -593,7 +593,7 @@ const Xe = ({
593
593
  )
594
594
  ] })
595
595
  }
596
- ), ht = ({
596
+ ), lt = ({
597
597
  width: i = 20,
598
598
  height: e = 20,
599
599
  color: t = y.GREY_DARK_5,
@@ -633,7 +633,7 @@ const Xe = ({
633
633
  )
634
634
  ]
635
635
  }
636
- ), ct = ({
636
+ ), ht = ({
637
637
  width: i = 20,
638
638
  height: e = 20,
639
639
  color: t = "#001E52",
@@ -680,7 +680,7 @@ const Xe = ({
680
680
  )
681
681
  ]
682
682
  }
683
- ), dt = ({
683
+ ), ct = ({
684
684
  width: i = 20,
685
685
  height: e = 20,
686
686
  color: t = "#001E52",
@@ -713,7 +713,7 @@ const Xe = ({
713
713
  )
714
714
  ]
715
715
  }
716
- ), gt = ({
716
+ ), dt = ({
717
717
  width: i = 20,
718
718
  height: e = 20,
719
719
  color: t = "#001E52",
@@ -760,7 +760,7 @@ const Xe = ({
760
760
  )
761
761
  ]
762
762
  }
763
- ), ut = ({
763
+ ), gt = ({
764
764
  width: i = 20,
765
765
  height: e = 20,
766
766
  color: t = "#001E52",
@@ -793,7 +793,7 @@ const Xe = ({
793
793
  )
794
794
  ]
795
795
  }
796
- ), Ct = ({
796
+ ), ut = ({
797
797
  width: i = 18,
798
798
  height: e = 16,
799
799
  color: t = "#001E52",
@@ -832,7 +832,7 @@ const Xe = ({
832
832
  )
833
833
  ]
834
834
  }
835
- ), pt = ({
835
+ ), Ct = ({
836
836
  width: i = 20,
837
837
  height: e = 20,
838
838
  color: t = "#001E52",
@@ -865,7 +865,7 @@ const Xe = ({
865
865
  )
866
866
  ]
867
867
  }
868
- ), ft = ({
868
+ ), pt = ({
869
869
  width: i = 20,
870
870
  height: e = 20,
871
871
  color: t = "#001E52",
@@ -889,7 +889,7 @@ const Xe = ({
889
889
  }
890
890
  )
891
891
  }
892
- ), mt = ({
892
+ ), ft = ({
893
893
  width: i = 20,
894
894
  height: e = 20,
895
895
  color: t = "#001E52",
@@ -922,7 +922,7 @@ const Xe = ({
922
922
  )
923
923
  ]
924
924
  }
925
- ), wt = ({
925
+ ), mt = ({
926
926
  width: i = 20,
927
927
  height: e = 23,
928
928
  color: t = "#001E52",
@@ -983,7 +983,7 @@ const Xe = ({
983
983
  )
984
984
  ]
985
985
  }
986
- ), kt = ({
986
+ ), wt = ({
987
987
  width: i = 14,
988
988
  height: e = 14,
989
989
  color: t = "#10B981",
@@ -1012,7 +1012,7 @@ const Xe = ({
1012
1012
  )
1013
1013
  ]
1014
1014
  }
1015
- ), Lt = ({
1015
+ ), kt = ({
1016
1016
  width: i = 20,
1017
1017
  height: e = 20,
1018
1018
  color: t = y.GREY_DARK_5,
@@ -1045,7 +1045,7 @@ const Xe = ({
1045
1045
  )
1046
1046
  ]
1047
1047
  }
1048
- ), vt = ({
1048
+ ), Lt = ({
1049
1049
  width: i = 10,
1050
1050
  height: e = 10,
1051
1051
  color: t = "#88A4FF",
@@ -1093,7 +1093,7 @@ const Xe = ({
1093
1093
  )
1094
1094
  ]
1095
1095
  }
1096
- ), Nt = ({
1096
+ ), vt = ({
1097
1097
  width: i = 14,
1098
1098
  height: e = 14,
1099
1099
  color: t = "#8E8E93",
@@ -1121,7 +1121,7 @@ const Xe = ({
1121
1121
  )
1122
1122
  ]
1123
1123
  }
1124
- ), xt = ({
1124
+ ), Nt = ({
1125
1125
  width: i = 14,
1126
1126
  height: e = 14,
1127
1127
  color: t = "#FFB020",
@@ -1155,7 +1155,7 @@ const Xe = ({
1155
1155
  )
1156
1156
  ]
1157
1157
  }
1158
- ), Rt = ({
1158
+ ), xt = ({
1159
1159
  width: i = 14,
1160
1160
  height: e = 14,
1161
1161
  color: t = "#D0421B",
@@ -1203,7 +1203,7 @@ const Xe = ({
1203
1203
  )
1204
1204
  ]
1205
1205
  }
1206
- ), Mt = ({
1206
+ ), Rt = ({
1207
1207
  width: i = 20,
1208
1208
  height: e = 20,
1209
1209
  color: t = "#070739",
@@ -1233,7 +1233,7 @@ const Xe = ({
1233
1233
  /* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
1234
1234
  ]
1235
1235
  }
1236
- ), bt = ({
1236
+ ), Mt = ({
1237
1237
  width: i = 20,
1238
1238
  height: e = 20,
1239
1239
  color: t = "#070739",
@@ -1271,7 +1271,7 @@ const Xe = ({
1271
1271
  )
1272
1272
  ]
1273
1273
  }
1274
- ), yt = ({
1274
+ ), bt = ({
1275
1275
  width: i = 9,
1276
1276
  height: e = 5,
1277
1277
  color: t = "#001E52",
@@ -1297,7 +1297,7 @@ const Xe = ({
1297
1297
  }
1298
1298
  )
1299
1299
  }
1300
- ), Et = ({
1300
+ ), yt = ({
1301
1301
  width: i = 20,
1302
1302
  height: e = 20,
1303
1303
  color: t = "#F2F2F7",
@@ -1326,7 +1326,7 @@ const Xe = ({
1326
1326
  )
1327
1327
  ]
1328
1328
  }
1329
- ), _t = ({
1329
+ ), Et = ({
1330
1330
  width: i = 20,
1331
1331
  height: e = 20,
1332
1332
  color: t = "#004ED7",
@@ -1355,7 +1355,7 @@ const Xe = ({
1355
1355
  )
1356
1356
  ]
1357
1357
  }
1358
- ), Ht = ({
1358
+ ), _t = ({
1359
1359
  width: i = 10,
1360
1360
  height: e = 10,
1361
1361
  color: t = "#001E52",
@@ -1384,7 +1384,7 @@ const Xe = ({
1384
1384
  )
1385
1385
  ]
1386
1386
  }
1387
- ), It = ({
1387
+ ), Ht = ({
1388
1388
  width: i = 10,
1389
1389
  height: e = 10,
1390
1390
  color: t = "#001E52",
@@ -1421,7 +1421,7 @@ const Xe = ({
1421
1421
  )
1422
1422
  ]
1423
1423
  }
1424
- ), Ot = ({
1424
+ ), It = ({
1425
1425
  className: i,
1426
1426
  color: e = y.GREY_DARK_5,
1427
1427
  height: t = 24,
@@ -1460,7 +1460,7 @@ const Xe = ({
1460
1460
  )
1461
1461
  ]
1462
1462
  }
1463
- ), St = ({
1463
+ ), Ot = ({
1464
1464
  className: i,
1465
1465
  color: e = y.GREY_DARK_5,
1466
1466
  height: t = 20,
@@ -1487,7 +1487,7 @@ const Xe = ({
1487
1487
  }
1488
1488
  )
1489
1489
  }
1490
- ), Vt = ({
1490
+ ), St = ({
1491
1491
  className: i,
1492
1492
  color: e = y.GREY_DARK_5,
1493
1493
  height: t = 20,
@@ -1514,7 +1514,7 @@ const Xe = ({
1514
1514
  }
1515
1515
  )
1516
1516
  }
1517
- ), At = ({
1517
+ ), Vt = ({
1518
1518
  className: i,
1519
1519
  color: e = y.GREY_DARK_5,
1520
1520
  height: t = 5,
@@ -1538,7 +1538,7 @@ const Xe = ({
1538
1538
  }
1539
1539
  )
1540
1540
  }
1541
- ), Tt = ({
1541
+ ), At = ({
1542
1542
  className: i,
1543
1543
  color: e = y.GREY_DARK_5,
1544
1544
  height: t = 5,
@@ -1563,7 +1563,7 @@ const Xe = ({
1563
1563
  }
1564
1564
  )
1565
1565
  }
1566
- ), Zt = ({
1566
+ ), Tt = ({
1567
1567
  className: i,
1568
1568
  color: e = y.GREY_DARK_5,
1569
1569
  height: t = 24,
@@ -1602,7 +1602,7 @@ const Xe = ({
1602
1602
  )
1603
1603
  ]
1604
1604
  }
1605
- ), Dt = ({
1605
+ ), Zt = ({
1606
1606
  className: i,
1607
1607
  color: e = y.GREY_DARK_5,
1608
1608
  height: t = 24,
@@ -1641,7 +1641,7 @@ const Xe = ({
1641
1641
  )
1642
1642
  ]
1643
1643
  }
1644
- ), Bt = ({
1644
+ ), Dt = ({
1645
1645
  className: i,
1646
1646
  color: e = y.GREY_DARK_5,
1647
1647
  height: t = 24,
@@ -1668,7 +1668,7 @@ const Xe = ({
1668
1668
  }
1669
1669
  )
1670
1670
  }
1671
- ), jt = ({
1671
+ ), Bt = ({
1672
1672
  className: i,
1673
1673
  color: e = y.GREY_DARK_5,
1674
1674
  height: t = 24,
@@ -1727,7 +1727,7 @@ const Xe = ({
1727
1727
  )
1728
1728
  ]
1729
1729
  }
1730
- ), Wt = ({
1730
+ ), jt = ({
1731
1731
  className: i,
1732
1732
  color: e = y.GREY_DARK_5,
1733
1733
  height: t = 24,
@@ -1764,7 +1764,7 @@ const Xe = ({
1764
1764
  )
1765
1765
  ]
1766
1766
  }
1767
- ), Gt = ({
1767
+ ), Wt = ({
1768
1768
  className: i,
1769
1769
  color: e = y.GREY_DARK_3,
1770
1770
  height: t = 14,
@@ -1801,7 +1801,7 @@ const Xe = ({
1801
1801
  )
1802
1802
  ]
1803
1803
  }
1804
- ), Kt = ({
1804
+ ), Gt = ({
1805
1805
  className: i,
1806
1806
  color: e = y.GREY_DARK_5,
1807
1807
  height: t = 18,
@@ -1828,7 +1828,7 @@ const Xe = ({
1828
1828
  }
1829
1829
  )
1830
1830
  }
1831
- ), $t = ({
1831
+ ), Kt = ({
1832
1832
  className: i,
1833
1833
  color: e = y.GREY_DARK_5,
1834
1834
  height: t = 24,
@@ -1880,7 +1880,7 @@ const Xe = ({
1880
1880
  )
1881
1881
  ]
1882
1882
  }
1883
- ), Pt = ({
1883
+ ), $t = ({
1884
1884
  className: i,
1885
1885
  color: e = y.GREY_DARK_5,
1886
1886
  height: t = 24,
@@ -1917,7 +1917,7 @@ const Xe = ({
1917
1917
  )
1918
1918
  ]
1919
1919
  }
1920
- ), Ft = ({
1920
+ ), Pt = ({
1921
1921
  className: i,
1922
1922
  color: e = y.NOTIFICATION_WARNING_DARK,
1923
1923
  height: t = 37,
@@ -1956,7 +1956,7 @@ const Xe = ({
1956
1956
  )
1957
1957
  ]
1958
1958
  }
1959
- ), Yt = ({
1959
+ ), Ft = ({
1960
1960
  className: i,
1961
1961
  color: e = y.GREY_DARK_5,
1962
1962
  height: t = 24,
@@ -1982,7 +1982,7 @@ const Xe = ({
1982
1982
  }
1983
1983
  )
1984
1984
  }
1985
- ), Ut = ({
1985
+ ), Yt = ({
1986
1986
  className: i,
1987
1987
  color: e = y.GREY_DARK_5,
1988
1988
  height: t = 24,
@@ -2021,7 +2021,7 @@ const Xe = ({
2021
2021
  )
2022
2022
  ]
2023
2023
  }
2024
- ), zt = ({
2024
+ ), Ut = ({
2025
2025
  className: i,
2026
2026
  color: e = y.GREY_DARK_5,
2027
2027
  height: t = 24,
@@ -2060,7 +2060,7 @@ const Xe = ({
2060
2060
  )
2061
2061
  ]
2062
2062
  }
2063
- ), Jt = ({
2063
+ ), zt = ({
2064
2064
  className: i,
2065
2065
  color: e = y.GREY_DARK_5,
2066
2066
  height: t = 24,
@@ -2129,7 +2129,7 @@ const Xe = ({
2129
2129
  )
2130
2130
  ]
2131
2131
  }
2132
- ), qt = ({
2132
+ ), Jt = ({
2133
2133
  className: i,
2134
2134
  color: e = y.GREY_DARK_5,
2135
2135
  height: t = 24,
@@ -2225,7 +2225,7 @@ const Xe = ({
2225
2225
  )
2226
2226
  ]
2227
2227
  }
2228
- ), Xt = ({
2228
+ ), qt = ({
2229
2229
  className: i,
2230
2230
  color: e = y.GREY_DARK_5,
2231
2231
  height: t = 24,
@@ -2274,7 +2274,7 @@ const Xe = ({
2274
2274
  )
2275
2275
  ]
2276
2276
  }
2277
- ), e2 = ({
2277
+ ), Xt = ({
2278
2278
  className: i,
2279
2279
  color: e = y.GREY_DARK_5,
2280
2280
  height: t = 24,
@@ -2301,7 +2301,7 @@ const Xe = ({
2301
2301
  }
2302
2302
  )
2303
2303
  }
2304
- ), t2 = ({
2304
+ ), e2 = ({
2305
2305
  className: i,
2306
2306
  color: e = y.GREY_DARK_5,
2307
2307
  height: t = 20,
@@ -2330,7 +2330,7 @@ const Xe = ({
2330
2330
  )
2331
2331
  ]
2332
2332
  }
2333
- ), i2 = ({
2333
+ ), t2 = ({
2334
2334
  className: i,
2335
2335
  color: e = "#001E52",
2336
2336
  height: t = 24,
@@ -2356,7 +2356,7 @@ const Xe = ({
2356
2356
  }
2357
2357
  )
2358
2358
  }
2359
- ), s2 = ({
2359
+ ), i2 = ({
2360
2360
  className: i,
2361
2361
  color: e = "#131314",
2362
2362
  height: t = 20,
@@ -2384,7 +2384,7 @@ const Xe = ({
2384
2384
  }
2385
2385
  )
2386
2386
  }
2387
- ), n2 = ({
2387
+ ), s2 = ({
2388
2388
  className: i,
2389
2389
  color: e = "#001E52",
2390
2390
  height: t = 24,
@@ -2422,7 +2422,7 @@ const Xe = ({
2422
2422
  )
2423
2423
  ] }) })
2424
2424
  }
2425
- ), r2 = ({
2425
+ ), n2 = ({
2426
2426
  width: i = 20,
2427
2427
  height: e = 20,
2428
2428
  color: t = "#001E52",
@@ -2478,7 +2478,7 @@ const Xe = ({
2478
2478
  }
2479
2479
  )
2480
2480
  }
2481
- ), o2 = ({
2481
+ ), r2 = ({
2482
2482
  width: i = 24,
2483
2483
  height: e = 24,
2484
2484
  color: t = "#131314",
@@ -2511,7 +2511,7 @@ const Xe = ({
2511
2511
  )
2512
2512
  ]
2513
2513
  }
2514
- ), a2 = ({
2514
+ ), o2 = ({
2515
2515
  width: i = 24,
2516
2516
  height: e = 24,
2517
2517
  color: t = y.GREY_DARK_2,
@@ -2550,7 +2550,7 @@ const Xe = ({
2550
2550
  )
2551
2551
  ]
2552
2552
  }
2553
- ), l2 = ({
2553
+ ), a2 = ({
2554
2554
  width: i = 24,
2555
2555
  height: e = 24,
2556
2556
  color: t = y.GREY_DARK_2,
@@ -2577,7 +2577,7 @@ const Xe = ({
2577
2577
  }
2578
2578
  )
2579
2579
  }
2580
- ), h2 = ({
2580
+ ), l2 = ({
2581
2581
  width: i = 24,
2582
2582
  height: e = 24,
2583
2583
  color: t = y.GREY_DARK_2,
@@ -2617,7 +2617,7 @@ const Xe = ({
2617
2617
  )
2618
2618
  ]
2619
2619
  }
2620
- ), c2 = ({
2620
+ ), h2 = ({
2621
2621
  width: i = 24,
2622
2622
  height: e = 24,
2623
2623
  color: t = y.GREY_DARK_2,
@@ -2644,7 +2644,7 @@ const Xe = ({
2644
2644
  }
2645
2645
  )
2646
2646
  }
2647
- ), d2 = ({
2647
+ ), c2 = ({
2648
2648
  width: i = 24,
2649
2649
  height: e = 24,
2650
2650
  color: t = y.GREY_DARK_2,
@@ -2671,7 +2671,7 @@ const Xe = ({
2671
2671
  }
2672
2672
  )
2673
2673
  }
2674
- ), g2 = ({
2674
+ ), d2 = ({
2675
2675
  width: i = 20,
2676
2676
  height: e = 20,
2677
2677
  color: t = "#001E52",
@@ -2703,264 +2703,249 @@ const Xe = ({
2703
2703
  height: t,
2704
2704
  color: s,
2705
2705
  className: n,
2706
- disabled: a = !1,
2706
+ disabled: o = !1,
2707
2707
  onClick: c
2708
2708
  }) => {
2709
- const [o, d] = T(n), { theme: g } = r1(de), l = a ? g && g === "dark" ? y.GREY_LIGHT_4 : y.GREY_DARK_1 : s, h = a ? void 0 : c;
2710
- return j(() => {
2709
+ const [a, d] = B(n), { theme: g } = r1(ce), l = o ? g && g === "dark" ? y.GREY_LIGHT_4 : y.GREY_DARK_1 : s, h = o ? void 0 : c;
2710
+ return G(() => {
2711
2711
  if (n) {
2712
- h && !a && d(`${n} clickable`);
2712
+ h && !o && d(`${n} clickable`);
2713
2713
  return;
2714
2714
  }
2715
- h && !a && d("clickable");
2716
- }, [h, n, a]), /* @__PURE__ */ r(i1, { children: (() => {
2715
+ h && !o && d("clickable");
2716
+ }, [h, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
2717
2717
  switch (i) {
2718
2718
  case "nextIcon":
2719
- return St({ width: e, height: t, color: l, className: o, onClick: h });
2719
+ return Ot({ width: e, height: t, color: l, className: a, onClick: h });
2720
2720
  case "prevIcon":
2721
- return Vt({ width: e, height: t, color: l, className: o, onClick: h });
2721
+ return St({ width: e, height: t, color: l, className: a, onClick: h });
2722
2722
  case "arrowDown":
2723
- return Xe({ width: e, height: t, color: l, className: o, onClick: h });
2723
+ return qe({ width: e, height: t, color: l, className: a, onClick: h });
2724
2724
  case "info":
2725
- return et({ width: e, height: t, color: l, className: o, onClick: h });
2725
+ return Xe({ width: e, height: t, color: l, className: a, onClick: h });
2726
2726
  case "arrowRight":
2727
- return tt({ width: e, height: t, color: l, className: o, onClick: h });
2727
+ return et({ width: e, height: t, color: l, className: a, onClick: h });
2728
2728
  case "calendar":
2729
- return it({ width: e, height: t, color: l, className: o, onClick: h });
2729
+ return tt({ width: e, height: t, color: l, className: a, onClick: h });
2730
2730
  case "ok":
2731
- return st({ width: e, height: t, color: l, className: o, onClick: h });
2731
+ return it({ width: e, height: t, color: l, className: a, onClick: h });
2732
2732
  case "cancel":
2733
- return nt({ width: e, height: t, color: l, className: o, onClick: h });
2733
+ return st({ width: e, height: t, color: l, className: a, onClick: h });
2734
2734
  case "add":
2735
- return rt({ width: e, height: t, color: l, className: o, onClick: h });
2735
+ return nt({ width: e, height: t, color: l, className: a, onClick: h });
2736
2736
  case "list":
2737
- return ot({ width: e, height: t, color: l, className: o, onClick: h });
2737
+ return rt({ width: e, height: t, color: l, className: a, onClick: h });
2738
2738
  case "dragAndDrop":
2739
- return at({ width: e, height: t, color: l, className: o, onClick: h });
2739
+ return ot({ width: e, height: t, color: l, className: a, onClick: h });
2740
2740
  case "filter":
2741
- return lt({ width: e, height: t, color: l, className: o, onClick: h });
2741
+ return at({ width: e, height: t, color: l, className: a, onClick: h });
2742
2742
  case "attention":
2743
- return ht({ width: e, height: t, color: l, className: o, onClick: h });
2743
+ return lt({ width: e, height: t, color: l, className: a, onClick: h });
2744
2744
  case "users":
2745
- return ct({ width: e, height: t, color: l, className: o, onClick: h });
2745
+ return ht({ width: e, height: t, color: l, className: a, onClick: h });
2746
2746
  case "mySkillsMatrix":
2747
- return dt({
2747
+ return ct({
2748
2748
  width: e,
2749
2749
  height: t,
2750
2750
  color: l,
2751
- className: o,
2751
+ className: a,
2752
2752
  onClick: h
2753
2753
  });
2754
2754
  case "skills":
2755
- return gt({ width: e, height: t, color: l, className: o, onClick: h });
2755
+ return dt({ width: e, height: t, color: l, className: a, onClick: h });
2756
2756
  case "skillsMatrices":
2757
- return ut({
2757
+ return gt({
2758
2758
  width: e,
2759
2759
  height: t,
2760
2760
  color: l,
2761
- className: o,
2761
+ className: a,
2762
2762
  onClick: h
2763
2763
  });
2764
2764
  case "history":
2765
- return Ct({ width: e, height: t, color: l, className: o, onClick: h });
2765
+ return ut({ width: e, height: t, color: l, className: a, onClick: h });
2766
2766
  case "logOut":
2767
- return pt({ width: e, height: t, color: l, className: o, onClick: h });
2767
+ return Ct({ width: e, height: t, color: l, className: a, onClick: h });
2768
2768
  case "settings":
2769
- return ft({ width: e, height: t, color: l, className: o, onClick: h });
2769
+ return pt({ width: e, height: t, color: l, className: a, onClick: h });
2770
2770
  case "trash":
2771
- return mt({ width: e, height: t, color: l, className: o, onClick: h });
2771
+ return ft({ width: e, height: t, color: l, className: a, onClick: h });
2772
2772
  case "settings4":
2773
- return wt({ width: e, height: t, color: l, className: o, onClick: h });
2773
+ return mt({ width: e, height: t, color: l, className: a, onClick: h });
2774
2774
  case "success":
2775
- return kt({ width: e, height: t, color: l, className: o, onClick: h });
2775
+ return wt({ width: e, height: t, color: l, className: a, onClick: h });
2776
2776
  case "checkCircle":
2777
- return Lt({ width: e, height: t, color: l, className: o, onClick: h });
2777
+ return kt({ width: e, height: t, color: l, className: a, onClick: h });
2778
2778
  case "errorSmall":
2779
- return vt({ width: e, height: t, color: l, className: o, onClick: h });
2779
+ return Lt({ width: e, height: t, color: l, className: a, onClick: h });
2780
2780
  case "infoMedium":
2781
- return Nt({ width: e, height: t, color: l, className: o, onClick: h });
2781
+ return vt({ width: e, height: t, color: l, className: a, onClick: h });
2782
2782
  case "attentionMedium":
2783
- return xt({
2783
+ return Nt({
2784
2784
  width: e,
2785
2785
  height: t,
2786
2786
  color: l,
2787
- className: o,
2787
+ className: a,
2788
2788
  onClick: h
2789
2789
  });
2790
2790
  case "errorMedium":
2791
- return Rt({ width: e, height: t, color: l, className: o, onClick: h });
2791
+ return xt({ width: e, height: t, color: l, className: a, onClick: h });
2792
2792
  case "visibilityIcon":
2793
- return Mt({
2793
+ return Rt({
2794
2794
  width: e,
2795
2795
  height: t,
2796
2796
  color: l,
2797
- className: o,
2797
+ className: a,
2798
2798
  onClick: h
2799
2799
  });
2800
2800
  case "visibilityOffIcon":
2801
- return bt({
2801
+ return Mt({
2802
2802
  width: e,
2803
2803
  height: t,
2804
2804
  color: l,
2805
- className: o,
2805
+ className: a,
2806
2806
  onClick: h
2807
2807
  });
2808
2808
  case "selectArrowIcon":
2809
- return yt({
2809
+ return bt({
2810
2810
  width: e,
2811
2811
  height: t,
2812
2812
  color: l,
2813
- className: o,
2813
+ className: a,
2814
2814
  onClick: h
2815
2815
  });
2816
2816
  case "expandArrowIcon":
2817
- return Et({
2817
+ return yt({
2818
2818
  width: e,
2819
2819
  height: t,
2820
2820
  color: l,
2821
- className: o,
2821
+ className: a,
2822
2822
  onClick: h
2823
2823
  });
2824
2824
  case "expandActiveArrowIcon":
2825
- return _t({
2825
+ return Et({
2826
2826
  width: e,
2827
2827
  height: t,
2828
2828
  color: l,
2829
- className: o,
2829
+ className: a,
2830
2830
  onClick: h
2831
2831
  });
2832
2832
  case "sortUp":
2833
- return Ht({ width: e, height: t, color: l, className: o, onClick: h });
2833
+ return _t({ width: e, height: t, color: l, className: a, onClick: h });
2834
2834
  case "sortDown":
2835
- return It({ width: e, height: t, color: l, className: o, onClick: h });
2835
+ return Ht({ width: e, height: t, color: l, className: a, onClick: h });
2836
2836
  case "search":
2837
- return Ot({ width: e, height: t, color: l, className: o, onClick: h });
2837
+ return It({ width: e, height: t, color: l, className: a, onClick: h });
2838
2838
  case "arrowUpFilled":
2839
- return Tt({ width: e, height: t, color: l, className: o, onClick: h });
2839
+ return At({ width: e, height: t, color: l, className: a, onClick: h });
2840
2840
  case "arrowDownFilled":
2841
- return At({ width: e, height: t, color: l, className: o, onClick: h });
2841
+ return Vt({ width: e, height: t, color: l, className: a, onClick: h });
2842
2842
  case "link":
2843
- return Zt({ width: e, height: t, color: l, className: o, onClick: h });
2843
+ return Tt({ width: e, height: t, color: l, className: a, onClick: h });
2844
2844
  case "telegram":
2845
- return Bt({ width: e, height: t, color: l, className: o, onClick: h });
2845
+ return Dt({ width: e, height: t, color: l, className: a, onClick: h });
2846
2846
  case "mail":
2847
- return Wt({ width: e, height: t, color: l, className: o, onClick: h });
2847
+ return jt({ width: e, height: t, color: l, className: a, onClick: h });
2848
2848
  case "github":
2849
- return Dt({ width: e, height: t, color: l, className: o, onClick: h });
2849
+ return Zt({ width: e, height: t, color: l, className: a, onClick: h });
2850
2850
  case "linkedIn":
2851
- return jt({ width: e, height: t, color: l, className: o, onClick: h });
2851
+ return Bt({ width: e, height: t, color: l, className: a, onClick: h });
2852
2852
  case "emptyStateIcon":
2853
- return Gt({ width: e, height: t, color: l, className: o, onClick: h });
2853
+ return Wt({ width: e, height: t, color: l, className: a, onClick: h });
2854
2854
  case "filtersIcon":
2855
- return Kt({ width: e, height: t, color: l, className: o, onClick: h });
2855
+ return Gt({ width: e, height: t, color: l, className: a, onClick: h });
2856
2856
  case "dotMenuIcon":
2857
- return $t({ width: e, height: t, color: l, className: o, onClick: h });
2857
+ return Kt({ width: e, height: t, color: l, className: a, onClick: h });
2858
2858
  case "plusCircle":
2859
- return Pt({ width: e, height: t, color: l, className: o, onClick: h });
2859
+ return $t({ width: e, height: t, color: l, className: a, onClick: h });
2860
2860
  case "warning":
2861
- return Ft({ width: e, height: t, color: l, className: o, onClick: h });
2861
+ return Pt({ width: e, height: t, color: l, className: a, onClick: h });
2862
2862
  case "back":
2863
- return Yt({ width: e, height: t, color: l, className: o, onClick: h });
2863
+ return Ft({ width: e, height: t, color: l, className: a, onClick: h });
2864
2864
  case "bell":
2865
- return Ut({ width: e, height: t, color: l, className: o, onClick: h });
2865
+ return Yt({ width: e, height: t, color: l, className: a, onClick: h });
2866
2866
  case "contract":
2867
- return Jt({ width: e, height: t, color: l, className: o, onClick: h });
2867
+ return zt({ width: e, height: t, color: l, className: a, onClick: h });
2868
2868
  case "trash2":
2869
- return zt({ width: e, height: t, color: l, className: o, onClick: h });
2869
+ return Ut({ width: e, height: t, color: l, className: a, onClick: h });
2870
2870
  case "resourceManager":
2871
- return qt({ width: e, height: t, color: l, className: o, onClick: h });
2871
+ return Jt({ width: e, height: t, color: l, className: a, onClick: h });
2872
2872
  case "settings2":
2873
- return Qt({ width: e, height: t, color: l, className: o, onClick: h });
2873
+ return Qt({ width: e, height: t, color: l, className: a, onClick: h });
2874
2874
  case "image":
2875
- return Xt({ width: e, height: t, color: l, className: o, onClick: h });
2875
+ return qt({ width: e, height: t, color: l, className: a, onClick: h });
2876
2876
  case "edit":
2877
- return e2({ width: e, height: t, color: l, className: o, onClick: h });
2877
+ return Xt({ width: e, height: t, color: l, className: a, onClick: h });
2878
2878
  case "filledArrowRight":
2879
- return t2({ width: e, height: t, color: l, className: o, onClick: h });
2879
+ return e2({ width: e, height: t, color: l, className: a, onClick: h });
2880
2880
  case "burgerMenu":
2881
- return i2({ width: e, height: t, color: l, className: o, onClick: h });
2881
+ return t2({ width: e, height: t, color: l, className: a, onClick: h });
2882
2882
  case "signOut":
2883
- return s2({ width: e, height: t, color: l, className: o, onClick: h });
2883
+ return i2({ width: e, height: t, color: l, className: a, onClick: h });
2884
2884
  case "refresh":
2885
- return n2({ width: e, height: t, color: l, className: o, onClick: h });
2885
+ return s2({ width: e, height: t, color: l, className: a, onClick: h });
2886
2886
  case "projects":
2887
- return r2({ width: e, height: t, color: l, className: o, onClick: h });
2887
+ return n2({ width: e, height: t, color: l, className: a, onClick: h });
2888
2888
  case "profile":
2889
- return g2({ width: e, height: t, color: l, className: o, onClick: h });
2889
+ return d2({ width: e, height: t, color: l, className: a, onClick: h });
2890
2890
  case "exit":
2891
- return o2({ width: e, height: t, color: l, className: o, onClick: h });
2891
+ return r2({ width: e, height: t, color: l, className: a, onClick: h });
2892
2892
  case "client":
2893
- return a2({ width: e, height: t, color: l, className: o, onClick: h });
2893
+ return o2({ width: e, height: t, color: l, className: a, onClick: h });
2894
2894
  case "calendar2":
2895
- return l2({ width: e, height: t, color: l, className: o, onClick: h });
2895
+ return a2({ width: e, height: t, color: l, className: a, onClick: h });
2896
2896
  case "openPointCircle":
2897
- return h2({ width: e, height: t, color: l, className: o, onClick: h });
2897
+ return l2({ width: e, height: t, color: l, className: a, onClick: h });
2898
2898
  case "community":
2899
- return c2({ width: e, height: t, color: l, className: o, onClick: h });
2899
+ return h2({ width: e, height: t, color: l, className: a, onClick: h });
2900
2900
  case "docs":
2901
- return d2({ width: e, height: t, color: l, className: o, onClick: h });
2901
+ return c2({ width: e, height: t, color: l, className: a, onClick: h });
2902
2902
  default:
2903
2903
  return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
2904
2904
  }
2905
2905
  })() });
2906
- }, u2 = ({ children: i, title: e, arrow: t = !0, open: s, placement: n = "top" }) => /* @__PURE__ */ r(
2907
- ae,
2908
- {
2909
- overlayClassName: "snmt-tooltip",
2910
- title: e,
2911
- arrow: t,
2912
- open: s,
2913
- placement: n,
2914
- children: i
2915
- }
2916
- ), { Title: C2, Text: p2 } = le, f2 = {
2906
+ }, { Title: g2, Text: u2 } = ae, C2 = {
2917
2907
  h1: 1,
2918
2908
  h2: 2,
2919
2909
  h3: 3,
2920
2910
  h4: 4
2921
- }, m2 = k1(
2911
+ }, p2 = k1(
2922
2912
  ({
2923
2913
  align: i = "inherit",
2924
2914
  variant: e = "body1",
2925
2915
  color: t,
2926
2916
  children: s,
2927
2917
  onClick: n,
2928
- collapsed: a,
2918
+ collapsed: o,
2929
2919
  whiteSpace: c = "normal",
2930
2920
  /** This prop allows you to enable tooltip if text size is too big */
2931
- trim: o = !1
2921
+ trim: a = !1
2932
2922
  }, d) => {
2933
- const g = q(null);
2934
- _1(d, () => g.current);
2935
- const [l, h] = T(!1);
2936
- j(() => {
2937
- if (!o) return;
2938
- const m = () => {
2939
- g.current && h(g.current.scrollWidth > g.current.clientWidth);
2940
- }, _ = new ResizeObserver(m);
2941
- return g.current && _.observe(g.current), () => {
2942
- _.disconnect();
2943
- };
2944
- }, [o, l]);
2945
- const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
2946
- let p = `snmt-typography snmt-typography-${e}`;
2947
- i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), a && (p += " collapsed"), o && (p += " collapsed");
2948
- const w = {
2949
- className: p,
2950
- style: { color: t, whiteSpace: o ? "nowrap" : c, display: o ? "block" : "" },
2923
+ const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
2924
+ let l = `snmt-typography snmt-typography-${e}`;
2925
+ i && i !== "inherit" && (l += ` snmt-typography-align-${i}`), o && (l += " collapsed");
2926
+ const h = {
2927
+ className: l,
2928
+ style: { color: t, whiteSpace: a ? "nowrap" : c, display: a ? "block" : "" },
2951
2929
  onClick: n,
2952
- ref: g
2953
- }, k = u ? /* @__PURE__ */ r(C2, { level: f2[e], ...w, children: s }) : /* @__PURE__ */ r(p2, { ...w, children: s });
2954
- return o && l ? /* @__PURE__ */ r(u2, { placement: "top", title: s, children: k }) : k;
2930
+ ref: d,
2931
+ ellipsis: a ? {
2932
+ tooltip: {
2933
+ title: s,
2934
+ arrow: !0,
2935
+ overlayClassName: "snmt-tooltip"
2936
+ }
2937
+ } : void 0
2938
+ };
2939
+ return g ? /* @__PURE__ */ r(g2, { level: C2[e], ...h, children: s }) : /* @__PURE__ */ r(u2, { ...h, children: s });
2955
2940
  }
2956
2941
  );
2957
2942
  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 || {});
2958
- const ge = d1({
2943
+ const de = d1({
2959
2944
  locale: "en",
2960
2945
  theme: "light"
2961
2946
  });
2962
- ge.Provider;
2963
- const w2 = ({
2947
+ de.Provider;
2948
+ const f2 = ({
2964
2949
  width: i = 20,
2965
2950
  height: e = 20,
2966
2951
  color: t = "#001E52",
@@ -2987,7 +2972,7 @@ const w2 = ({
2987
2972
  }
2988
2973
  )
2989
2974
  }
2990
- ), k2 = ({
2975
+ ), m2 = ({
2991
2976
  width: i = 20,
2992
2977
  height: e = 20,
2993
2978
  color: t = E.GREY_DARK_5,
@@ -3027,7 +3012,7 @@ const w2 = ({
3027
3012
  )
3028
3013
  ]
3029
3014
  }
3030
- ), L2 = ({
3015
+ ), w2 = ({
3031
3016
  width: i = 20,
3032
3017
  height: e = 20,
3033
3018
  color: t = "#001E52",
@@ -3062,7 +3047,7 @@ const w2 = ({
3062
3047
  )
3063
3048
  ]
3064
3049
  }
3065
- ), v2 = ({
3050
+ ), k2 = ({
3066
3051
  width: i = 18,
3067
3052
  height: e = 18,
3068
3053
  color: t = "#001E52",
@@ -3101,7 +3086,7 @@ const w2 = ({
3101
3086
  )
3102
3087
  ]
3103
3088
  }
3104
- ), N2 = ({
3089
+ ), L2 = ({
3105
3090
  width: i = 20,
3106
3091
  height: e = 20,
3107
3092
  color: t = "#001E52",
@@ -3127,7 +3112,7 @@ const w2 = ({
3127
3112
  }
3128
3113
  )
3129
3114
  }
3130
- ), x2 = ({
3115
+ ), v2 = ({
3131
3116
  width: i = 20,
3132
3117
  height: e = 20,
3133
3118
  color: t = "#001E52",
@@ -3148,7 +3133,7 @@ const w2 = ({
3148
3133
  /* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
3149
3134
  ]
3150
3135
  }
3151
- ), R2 = ({
3136
+ ), N2 = ({
3152
3137
  width: i = 20,
3153
3138
  height: e = 20,
3154
3139
  color: t = "#001E52",
@@ -3180,7 +3165,7 @@ const w2 = ({
3180
3165
  )
3181
3166
  ]
3182
3167
  }
3183
- ), M2 = ({
3168
+ ), x2 = ({
3184
3169
  width: i = 20,
3185
3170
  height: e = 20,
3186
3171
  color: t = "#001E52",
@@ -3234,7 +3219,7 @@ const w2 = ({
3234
3219
  )
3235
3220
  ]
3236
3221
  }
3237
- ), b2 = ({
3222
+ ), R2 = ({
3238
3223
  width: i = 20,
3239
3224
  height: e = 20,
3240
3225
  color: t = "#001E52",
@@ -3273,7 +3258,7 @@ const w2 = ({
3273
3258
  /* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
3274
3259
  ]
3275
3260
  }
3276
- ), y2 = ({
3261
+ ), M2 = ({
3277
3262
  width: i = 16,
3278
3263
  height: e = 12,
3279
3264
  color: t = "#001E52",
@@ -3322,7 +3307,7 @@ const w2 = ({
3322
3307
  )
3323
3308
  ] })
3324
3309
  }
3325
- ), E2 = ({
3310
+ ), b2 = ({
3326
3311
  width: i = 20,
3327
3312
  height: e = 20,
3328
3313
  color: t = E.GREY_DARK_5,
@@ -3362,7 +3347,7 @@ const w2 = ({
3362
3347
  )
3363
3348
  ]
3364
3349
  }
3365
- ), _2 = ({
3350
+ ), y2 = ({
3366
3351
  width: i = 20,
3367
3352
  height: e = 20,
3368
3353
  color: t = "#001E52",
@@ -3409,7 +3394,7 @@ const w2 = ({
3409
3394
  )
3410
3395
  ]
3411
3396
  }
3412
- ), H2 = ({
3397
+ ), E2 = ({
3413
3398
  width: i = 20,
3414
3399
  height: e = 20,
3415
3400
  color: t = "#001E52",
@@ -3442,7 +3427,7 @@ const w2 = ({
3442
3427
  )
3443
3428
  ]
3444
3429
  }
3445
- ), I2 = ({
3430
+ ), _2 = ({
3446
3431
  width: i = 20,
3447
3432
  height: e = 20,
3448
3433
  color: t = "#001E52",
@@ -3489,7 +3474,7 @@ const w2 = ({
3489
3474
  )
3490
3475
  ]
3491
3476
  }
3492
- ), O2 = ({
3477
+ ), H2 = ({
3493
3478
  width: i = 20,
3494
3479
  height: e = 20,
3495
3480
  color: t = "#001E52",
@@ -3522,7 +3507,7 @@ const w2 = ({
3522
3507
  )
3523
3508
  ]
3524
3509
  }
3525
- ), S2 = ({
3510
+ ), I2 = ({
3526
3511
  width: i = 18,
3527
3512
  height: e = 16,
3528
3513
  color: t = "#001E52",
@@ -3561,7 +3546,7 @@ const w2 = ({
3561
3546
  )
3562
3547
  ]
3563
3548
  }
3564
- ), V2 = ({
3549
+ ), O2 = ({
3565
3550
  width: i = 20,
3566
3551
  height: e = 20,
3567
3552
  color: t = "#001E52",
@@ -3594,7 +3579,7 @@ const w2 = ({
3594
3579
  )
3595
3580
  ]
3596
3581
  }
3597
- ), A2 = ({
3582
+ ), S2 = ({
3598
3583
  width: i = 20,
3599
3584
  height: e = 20,
3600
3585
  color: t = "#001E52",
@@ -3618,7 +3603,7 @@ const w2 = ({
3618
3603
  }
3619
3604
  )
3620
3605
  }
3621
- ), T2 = ({
3606
+ ), V2 = ({
3622
3607
  width: i = 20,
3623
3608
  height: e = 20,
3624
3609
  color: t = "#001E52",
@@ -3651,7 +3636,7 @@ const w2 = ({
3651
3636
  )
3652
3637
  ]
3653
3638
  }
3654
- ), Z2 = ({
3639
+ ), A2 = ({
3655
3640
  width: i = 20,
3656
3641
  height: e = 23,
3657
3642
  color: t = "#001E52",
@@ -3712,7 +3697,7 @@ const w2 = ({
3712
3697
  )
3713
3698
  ]
3714
3699
  }
3715
- ), D2 = ({
3700
+ ), T2 = ({
3716
3701
  width: i = 14,
3717
3702
  height: e = 14,
3718
3703
  color: t = "#10B981",
@@ -3741,7 +3726,7 @@ const w2 = ({
3741
3726
  )
3742
3727
  ]
3743
3728
  }
3744
- ), B2 = ({
3729
+ ), Z2 = ({
3745
3730
  width: i = 20,
3746
3731
  height: e = 20,
3747
3732
  color: t = E.GREY_DARK_5,
@@ -3774,7 +3759,7 @@ const w2 = ({
3774
3759
  )
3775
3760
  ]
3776
3761
  }
3777
- ), j2 = ({
3762
+ ), D2 = ({
3778
3763
  width: i = 10,
3779
3764
  height: e = 10,
3780
3765
  color: t = "#88A4FF",
@@ -3822,7 +3807,7 @@ const w2 = ({
3822
3807
  )
3823
3808
  ]
3824
3809
  }
3825
- ), W2 = ({
3810
+ ), B2 = ({
3826
3811
  width: i = 14,
3827
3812
  height: e = 14,
3828
3813
  color: t = "#8E8E93",
@@ -3850,7 +3835,7 @@ const w2 = ({
3850
3835
  )
3851
3836
  ]
3852
3837
  }
3853
- ), G2 = ({
3838
+ ), j2 = ({
3854
3839
  width: i = 14,
3855
3840
  height: e = 14,
3856
3841
  color: t = "#FFB020",
@@ -3884,7 +3869,7 @@ const w2 = ({
3884
3869
  )
3885
3870
  ]
3886
3871
  }
3887
- ), K2 = ({
3872
+ ), W2 = ({
3888
3873
  width: i = 14,
3889
3874
  height: e = 14,
3890
3875
  color: t = "#D0421B",
@@ -3932,7 +3917,7 @@ const w2 = ({
3932
3917
  )
3933
3918
  ]
3934
3919
  }
3935
- ), $2 = ({
3920
+ ), G2 = ({
3936
3921
  width: i = 20,
3937
3922
  height: e = 20,
3938
3923
  color: t = "#070739",
@@ -3962,7 +3947,7 @@ const w2 = ({
3962
3947
  /* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
3963
3948
  ]
3964
3949
  }
3965
- ), P2 = ({
3950
+ ), K2 = ({
3966
3951
  width: i = 20,
3967
3952
  height: e = 20,
3968
3953
  color: t = "#070739",
@@ -4000,7 +3985,7 @@ const w2 = ({
4000
3985
  )
4001
3986
  ]
4002
3987
  }
4003
- ), F2 = ({
3988
+ ), $2 = ({
4004
3989
  width: i = 9,
4005
3990
  height: e = 5,
4006
3991
  color: t = "#001E52",
@@ -4026,7 +4011,7 @@ const w2 = ({
4026
4011
  }
4027
4012
  )
4028
4013
  }
4029
- ), Y2 = ({
4014
+ ), P2 = ({
4030
4015
  width: i = 20,
4031
4016
  height: e = 20,
4032
4017
  color: t = "#F2F2F7",
@@ -4055,7 +4040,7 @@ const w2 = ({
4055
4040
  )
4056
4041
  ]
4057
4042
  }
4058
- ), U2 = ({
4043
+ ), F2 = ({
4059
4044
  width: i = 20,
4060
4045
  height: e = 20,
4061
4046
  color: t = "#004ED7",
@@ -4084,7 +4069,7 @@ const w2 = ({
4084
4069
  )
4085
4070
  ]
4086
4071
  }
4087
- ), z2 = ({
4072
+ ), Y2 = ({
4088
4073
  width: i = 10,
4089
4074
  height: e = 10,
4090
4075
  color: t = "#001E52",
@@ -4113,7 +4098,7 @@ const w2 = ({
4113
4098
  )
4114
4099
  ]
4115
4100
  }
4116
- ), J2 = ({
4101
+ ), U2 = ({
4117
4102
  width: i = 10,
4118
4103
  height: e = 10,
4119
4104
  color: t = "#001E52",
@@ -4150,7 +4135,7 @@ const w2 = ({
4150
4135
  )
4151
4136
  ]
4152
4137
  }
4153
- ), q2 = ({
4138
+ ), z2 = ({
4154
4139
  className: i,
4155
4140
  color: e = E.GREY_DARK_5,
4156
4141
  height: t = 24,
@@ -4189,7 +4174,7 @@ const w2 = ({
4189
4174
  )
4190
4175
  ]
4191
4176
  }
4192
- ), Q2 = ({
4177
+ ), J2 = ({
4193
4178
  className: i,
4194
4179
  color: e = E.GREY_DARK_5,
4195
4180
  height: t = 20,
@@ -4216,7 +4201,7 @@ const w2 = ({
4216
4201
  }
4217
4202
  )
4218
4203
  }
4219
- ), X2 = ({
4204
+ ), Q2 = ({
4220
4205
  className: i,
4221
4206
  color: e = E.GREY_DARK_5,
4222
4207
  height: t = 20,
@@ -4243,7 +4228,7 @@ const w2 = ({
4243
4228
  }
4244
4229
  )
4245
4230
  }
4246
- ), e5 = ({
4231
+ ), q2 = ({
4247
4232
  className: i,
4248
4233
  color: e = E.GREY_DARK_5,
4249
4234
  height: t = 5,
@@ -4267,7 +4252,7 @@ const w2 = ({
4267
4252
  }
4268
4253
  )
4269
4254
  }
4270
- ), t5 = ({
4255
+ ), X2 = ({
4271
4256
  className: i,
4272
4257
  color: e = E.GREY_DARK_5,
4273
4258
  height: t = 5,
@@ -4292,7 +4277,7 @@ const w2 = ({
4292
4277
  }
4293
4278
  )
4294
4279
  }
4295
- ), i5 = ({
4280
+ ), e5 = ({
4296
4281
  className: i,
4297
4282
  color: e = E.GREY_DARK_5,
4298
4283
  height: t = 24,
@@ -4331,7 +4316,7 @@ const w2 = ({
4331
4316
  )
4332
4317
  ]
4333
4318
  }
4334
- ), s5 = ({
4319
+ ), t5 = ({
4335
4320
  className: i,
4336
4321
  color: e = E.GREY_DARK_5,
4337
4322
  height: t = 24,
@@ -4370,7 +4355,7 @@ const w2 = ({
4370
4355
  )
4371
4356
  ]
4372
4357
  }
4373
- ), n5 = ({
4358
+ ), i5 = ({
4374
4359
  className: i,
4375
4360
  color: e = E.GREY_DARK_5,
4376
4361
  height: t = 24,
@@ -4397,7 +4382,7 @@ const w2 = ({
4397
4382
  }
4398
4383
  )
4399
4384
  }
4400
- ), r5 = ({
4385
+ ), s5 = ({
4401
4386
  className: i,
4402
4387
  color: e = E.GREY_DARK_5,
4403
4388
  height: t = 24,
@@ -4456,7 +4441,7 @@ const w2 = ({
4456
4441
  )
4457
4442
  ]
4458
4443
  }
4459
- ), o5 = ({
4444
+ ), n5 = ({
4460
4445
  className: i,
4461
4446
  color: e = E.GREY_DARK_5,
4462
4447
  height: t = 24,
@@ -4493,7 +4478,7 @@ const w2 = ({
4493
4478
  )
4494
4479
  ]
4495
4480
  }
4496
- ), a5 = ({
4481
+ ), r5 = ({
4497
4482
  className: i,
4498
4483
  color: e = E.GREY_DARK_3,
4499
4484
  height: t = 14,
@@ -4530,7 +4515,7 @@ const w2 = ({
4530
4515
  )
4531
4516
  ]
4532
4517
  }
4533
- ), l5 = ({
4518
+ ), o5 = ({
4534
4519
  className: i,
4535
4520
  color: e = E.GREY_DARK_5,
4536
4521
  height: t = 18,
@@ -4557,7 +4542,7 @@ const w2 = ({
4557
4542
  }
4558
4543
  )
4559
4544
  }
4560
- ), h5 = ({
4545
+ ), a5 = ({
4561
4546
  className: i,
4562
4547
  color: e = E.GREY_DARK_5,
4563
4548
  height: t = 24,
@@ -4609,7 +4594,7 @@ const w2 = ({
4609
4594
  )
4610
4595
  ]
4611
4596
  }
4612
- ), c5 = ({
4597
+ ), l5 = ({
4613
4598
  className: i,
4614
4599
  color: e = E.GREY_DARK_5,
4615
4600
  height: t = 24,
@@ -4646,7 +4631,7 @@ const w2 = ({
4646
4631
  )
4647
4632
  ]
4648
4633
  }
4649
- ), d5 = ({
4634
+ ), h5 = ({
4650
4635
  className: i,
4651
4636
  color: e = E.NOTIFICATION_WARNING_DARK,
4652
4637
  height: t = 37,
@@ -4685,7 +4670,7 @@ const w2 = ({
4685
4670
  )
4686
4671
  ]
4687
4672
  }
4688
- ), g5 = ({
4673
+ ), c5 = ({
4689
4674
  className: i,
4690
4675
  color: e = E.GREY_DARK_5,
4691
4676
  height: t = 24,
@@ -4711,7 +4696,7 @@ const w2 = ({
4711
4696
  }
4712
4697
  )
4713
4698
  }
4714
- ), u5 = ({
4699
+ ), d5 = ({
4715
4700
  className: i,
4716
4701
  color: e = E.GREY_DARK_5,
4717
4702
  height: t = 24,
@@ -4750,7 +4735,7 @@ const w2 = ({
4750
4735
  )
4751
4736
  ]
4752
4737
  }
4753
- ), C5 = ({
4738
+ ), g5 = ({
4754
4739
  className: i,
4755
4740
  color: e = E.GREY_DARK_5,
4756
4741
  height: t = 24,
@@ -4789,7 +4774,7 @@ const w2 = ({
4789
4774
  )
4790
4775
  ]
4791
4776
  }
4792
- ), p5 = ({
4777
+ ), u5 = ({
4793
4778
  className: i,
4794
4779
  color: e = E.GREY_DARK_5,
4795
4780
  height: t = 24,
@@ -4858,7 +4843,7 @@ const w2 = ({
4858
4843
  )
4859
4844
  ]
4860
4845
  }
4861
- ), f5 = ({
4846
+ ), C5 = ({
4862
4847
  className: i,
4863
4848
  color: e = E.GREY_DARK_5,
4864
4849
  height: t = 24,
@@ -4915,7 +4900,7 @@ const w2 = ({
4915
4900
  )
4916
4901
  ]
4917
4902
  }
4918
- ), m5 = ({
4903
+ ), p5 = ({
4919
4904
  className: i,
4920
4905
  color: e = E.GREY_DARK_5,
4921
4906
  height: t = 24,
@@ -4954,7 +4939,7 @@ const w2 = ({
4954
4939
  )
4955
4940
  ]
4956
4941
  }
4957
- ), w5 = ({
4942
+ ), f5 = ({
4958
4943
  className: i,
4959
4944
  color: e = E.GREY_DARK_5,
4960
4945
  height: t = 24,
@@ -5003,7 +4988,7 @@ const w2 = ({
5003
4988
  )
5004
4989
  ]
5005
4990
  }
5006
- ), k5 = ({
4991
+ ), m5 = ({
5007
4992
  className: i,
5008
4993
  color: e = E.GREY_DARK_5,
5009
4994
  height: t = 24,
@@ -5030,7 +5015,7 @@ const w2 = ({
5030
5015
  }
5031
5016
  )
5032
5017
  }
5033
- ), L5 = ({
5018
+ ), w5 = ({
5034
5019
  className: i,
5035
5020
  color: e = E.GREY_DARK_5,
5036
5021
  height: t = 20,
@@ -5059,7 +5044,7 @@ const w2 = ({
5059
5044
  )
5060
5045
  ]
5061
5046
  }
5062
- ), v5 = ({
5047
+ ), k5 = ({
5063
5048
  className: i,
5064
5049
  color: e = "#001E52",
5065
5050
  height: t = 24,
@@ -5085,7 +5070,7 @@ const w2 = ({
5085
5070
  }
5086
5071
  )
5087
5072
  }
5088
- ), N5 = ({
5073
+ ), L5 = ({
5089
5074
  className: i,
5090
5075
  color: e = "#131314",
5091
5076
  height: t = 20,
@@ -5113,7 +5098,7 @@ const w2 = ({
5113
5098
  }
5114
5099
  )
5115
5100
  }
5116
- ), x5 = ({
5101
+ ), v5 = ({
5117
5102
  className: i,
5118
5103
  color: e = "#001E52",
5119
5104
  height: t = 24,
@@ -5151,7 +5136,7 @@ const w2 = ({
5151
5136
  )
5152
5137
  ] }) })
5153
5138
  }
5154
- ), R5 = ({
5139
+ ), N5 = ({
5155
5140
  width: i = 20,
5156
5141
  height: e = 20,
5157
5142
  color: t = "#001E52",
@@ -5207,7 +5192,7 @@ const w2 = ({
5207
5192
  }
5208
5193
  )
5209
5194
  }
5210
- ), M5 = ({
5195
+ ), x5 = ({
5211
5196
  width: i = 24,
5212
5197
  height: e = 24,
5213
5198
  color: t = "#131314",
@@ -5240,7 +5225,7 @@ const w2 = ({
5240
5225
  )
5241
5226
  ]
5242
5227
  }
5243
- ), b5 = ({
5228
+ ), R5 = ({
5244
5229
  width: i = 24,
5245
5230
  height: e = 24,
5246
5231
  color: t = E.GREY_DARK_2,
@@ -5279,7 +5264,7 @@ const w2 = ({
5279
5264
  )
5280
5265
  ]
5281
5266
  }
5282
- ), y5 = ({
5267
+ ), M5 = ({
5283
5268
  width: i = 24,
5284
5269
  height: e = 24,
5285
5270
  color: t = E.GREY_DARK_2,
@@ -5306,7 +5291,7 @@ const w2 = ({
5306
5291
  }
5307
5292
  )
5308
5293
  }
5309
- ), E5 = ({
5294
+ ), b5 = ({
5310
5295
  width: i = 24,
5311
5296
  height: e = 24,
5312
5297
  color: t = E.GREY_DARK_2,
@@ -5346,7 +5331,7 @@ const w2 = ({
5346
5331
  )
5347
5332
  ]
5348
5333
  }
5349
- ), _5 = ({
5334
+ ), y5 = ({
5350
5335
  width: i = 24,
5351
5336
  height: e = 24,
5352
5337
  color: t = E.GREY_DARK_2,
@@ -5373,7 +5358,7 @@ const w2 = ({
5373
5358
  }
5374
5359
  )
5375
5360
  }
5376
- ), H5 = ({
5361
+ ), E5 = ({
5377
5362
  width: i = 24,
5378
5363
  height: e = 24,
5379
5364
  color: t = E.GREY_DARK_2,
@@ -5400,7 +5385,7 @@ const w2 = ({
5400
5385
  }
5401
5386
  )
5402
5387
  }
5403
- ), I5 = ({
5388
+ ), _5 = ({
5404
5389
  width: i = 20,
5405
5390
  height: e = 20,
5406
5391
  color: t = "#001E52",
@@ -5426,368 +5411,353 @@ const w2 = ({
5426
5411
  }
5427
5412
  )
5428
5413
  }
5429
- ), O5 = ({
5414
+ ), H5 = ({
5430
5415
  name: i,
5431
5416
  width: e,
5432
5417
  height: t,
5433
5418
  color: s,
5434
5419
  className: n,
5435
- disabled: a = !1,
5420
+ disabled: o = !1,
5436
5421
  onClick: c
5437
5422
  }) => {
5438
- const [o, d] = T(n), { theme: g } = r1(ge), l = a ? g && g === "dark" ? E.GREY_LIGHT_4 : E.GREY_DARK_1 : s, h = a ? void 0 : c;
5439
- return j(() => {
5423
+ const [a, d] = B(n), { theme: g } = r1(de), l = o ? g && g === "dark" ? E.GREY_LIGHT_4 : E.GREY_DARK_1 : s, h = o ? void 0 : c;
5424
+ return G(() => {
5440
5425
  if (n) {
5441
- h && !a && d(`${n} clickable`);
5426
+ h && !o && d(`${n} clickable`);
5442
5427
  return;
5443
5428
  }
5444
- h && !a && d("clickable");
5445
- }, [h, n, a]), /* @__PURE__ */ r(i1, { children: (() => {
5429
+ h && !o && d("clickable");
5430
+ }, [h, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
5446
5431
  switch (i) {
5447
5432
  case "nextIcon":
5448
- return Q2({ width: e, height: t, color: l, className: o, onClick: h });
5433
+ return J2({ width: e, height: t, color: l, className: a, onClick: h });
5449
5434
  case "prevIcon":
5450
- return X2({ width: e, height: t, color: l, className: o, onClick: h });
5435
+ return Q2({ width: e, height: t, color: l, className: a, onClick: h });
5451
5436
  case "arrowDown":
5452
- return w2({ width: e, height: t, color: l, className: o, onClick: h });
5437
+ return f2({ width: e, height: t, color: l, className: a, onClick: h });
5453
5438
  case "info":
5454
- return k2({ width: e, height: t, color: l, className: o, onClick: h });
5439
+ return m2({ width: e, height: t, color: l, className: a, onClick: h });
5455
5440
  case "arrowRight":
5456
- return L2({ width: e, height: t, color: l, className: o, onClick: h });
5441
+ return w2({ width: e, height: t, color: l, className: a, onClick: h });
5457
5442
  case "calendar":
5458
- return v2({ width: e, height: t, color: l, className: o, onClick: h });
5443
+ return k2({ width: e, height: t, color: l, className: a, onClick: h });
5459
5444
  case "ok":
5460
- return N2({ width: e, height: t, color: l, className: o, onClick: h });
5445
+ return L2({ width: e, height: t, color: l, className: a, onClick: h });
5461
5446
  case "cancel":
5462
- return x2({ width: e, height: t, color: l, className: o, onClick: h });
5447
+ return v2({ width: e, height: t, color: l, className: a, onClick: h });
5463
5448
  case "add":
5464
- return R2({ width: e, height: t, color: l, className: o, onClick: h });
5449
+ return N2({ width: e, height: t, color: l, className: a, onClick: h });
5465
5450
  case "list":
5466
- return M2({ width: e, height: t, color: l, className: o, onClick: h });
5451
+ return x2({ width: e, height: t, color: l, className: a, onClick: h });
5467
5452
  case "dragAndDrop":
5468
- return b2({ width: e, height: t, color: l, className: o, onClick: h });
5453
+ return R2({ width: e, height: t, color: l, className: a, onClick: h });
5469
5454
  case "filter":
5470
- return y2({ width: e, height: t, color: l, className: o, onClick: h });
5455
+ return M2({ width: e, height: t, color: l, className: a, onClick: h });
5471
5456
  case "attention":
5472
- return E2({ width: e, height: t, color: l, className: o, onClick: h });
5457
+ return b2({ width: e, height: t, color: l, className: a, onClick: h });
5473
5458
  case "users":
5474
- return _2({ width: e, height: t, color: l, className: o, onClick: h });
5459
+ return y2({ width: e, height: t, color: l, className: a, onClick: h });
5475
5460
  case "mySkillsMatrix":
5476
- return H2({
5461
+ return E2({
5477
5462
  width: e,
5478
5463
  height: t,
5479
5464
  color: l,
5480
- className: o,
5465
+ className: a,
5481
5466
  onClick: h
5482
5467
  });
5483
5468
  case "skills":
5484
- return I2({ width: e, height: t, color: l, className: o, onClick: h });
5469
+ return _2({ width: e, height: t, color: l, className: a, onClick: h });
5485
5470
  case "skillsMatrices":
5486
- return O2({
5471
+ return H2({
5487
5472
  width: e,
5488
5473
  height: t,
5489
5474
  color: l,
5490
- className: o,
5475
+ className: a,
5491
5476
  onClick: h
5492
5477
  });
5493
5478
  case "history":
5494
- return S2({ width: e, height: t, color: l, className: o, onClick: h });
5479
+ return I2({ width: e, height: t, color: l, className: a, onClick: h });
5495
5480
  case "logOut":
5496
- return V2({ width: e, height: t, color: l, className: o, onClick: h });
5481
+ return O2({ width: e, height: t, color: l, className: a, onClick: h });
5497
5482
  case "settings":
5498
- return A2({ width: e, height: t, color: l, className: o, onClick: h });
5483
+ return S2({ width: e, height: t, color: l, className: a, onClick: h });
5499
5484
  case "trash":
5500
- return T2({ width: e, height: t, color: l, className: o, onClick: h });
5485
+ return V2({ width: e, height: t, color: l, className: a, onClick: h });
5501
5486
  case "settings4":
5502
- return Z2({ width: e, height: t, color: l, className: o, onClick: h });
5487
+ return A2({ width: e, height: t, color: l, className: a, onClick: h });
5503
5488
  case "success":
5504
- return D2({ width: e, height: t, color: l, className: o, onClick: h });
5489
+ return T2({ width: e, height: t, color: l, className: a, onClick: h });
5505
5490
  case "checkCircle":
5506
- return B2({ width: e, height: t, color: l, className: o, onClick: h });
5491
+ return Z2({ width: e, height: t, color: l, className: a, onClick: h });
5507
5492
  case "errorSmall":
5508
- return j2({ width: e, height: t, color: l, className: o, onClick: h });
5493
+ return D2({ width: e, height: t, color: l, className: a, onClick: h });
5509
5494
  case "infoMedium":
5510
- return W2({ width: e, height: t, color: l, className: o, onClick: h });
5495
+ return B2({ width: e, height: t, color: l, className: a, onClick: h });
5511
5496
  case "attentionMedium":
5512
- return G2({
5497
+ return j2({
5513
5498
  width: e,
5514
5499
  height: t,
5515
5500
  color: l,
5516
- className: o,
5501
+ className: a,
5517
5502
  onClick: h
5518
5503
  });
5519
5504
  case "errorMedium":
5520
- return K2({ width: e, height: t, color: l, className: o, onClick: h });
5505
+ return W2({ width: e, height: t, color: l, className: a, onClick: h });
5521
5506
  case "visibilityIcon":
5522
- return $2({
5507
+ return G2({
5523
5508
  width: e,
5524
5509
  height: t,
5525
5510
  color: l,
5526
- className: o,
5511
+ className: a,
5527
5512
  onClick: h
5528
5513
  });
5529
5514
  case "visibilityOffIcon":
5530
- return P2({
5515
+ return K2({
5531
5516
  width: e,
5532
5517
  height: t,
5533
5518
  color: l,
5534
- className: o,
5519
+ className: a,
5535
5520
  onClick: h
5536
5521
  });
5537
5522
  case "selectArrowIcon":
5538
- return F2({
5523
+ return $2({
5539
5524
  width: e,
5540
5525
  height: t,
5541
5526
  color: l,
5542
- className: o,
5527
+ className: a,
5543
5528
  onClick: h
5544
5529
  });
5545
5530
  case "expandArrowIcon":
5546
- return Y2({
5531
+ return P2({
5547
5532
  width: e,
5548
5533
  height: t,
5549
5534
  color: l,
5550
- className: o,
5535
+ className: a,
5551
5536
  onClick: h
5552
5537
  });
5553
5538
  case "expandActiveArrowIcon":
5554
- return U2({
5539
+ return F2({
5555
5540
  width: e,
5556
5541
  height: t,
5557
5542
  color: l,
5558
- className: o,
5543
+ className: a,
5559
5544
  onClick: h
5560
5545
  });
5561
5546
  case "sortUp":
5562
- return z2({ width: e, height: t, color: l, className: o, onClick: h });
5547
+ return Y2({ width: e, height: t, color: l, className: a, onClick: h });
5563
5548
  case "sortDown":
5564
- return J2({ width: e, height: t, color: l, className: o, onClick: h });
5549
+ return U2({ width: e, height: t, color: l, className: a, onClick: h });
5565
5550
  case "search":
5566
- return q2({ width: e, height: t, color: l, className: o, onClick: h });
5551
+ return z2({ width: e, height: t, color: l, className: a, onClick: h });
5567
5552
  case "arrowUpFilled":
5568
- return t5({ width: e, height: t, color: l, className: o, onClick: h });
5553
+ return X2({ width: e, height: t, color: l, className: a, onClick: h });
5569
5554
  case "arrowDownFilled":
5570
- return e5({ width: e, height: t, color: l, className: o, onClick: h });
5555
+ return q2({ width: e, height: t, color: l, className: a, onClick: h });
5571
5556
  case "link":
5572
- return i5({ width: e, height: t, color: l, className: o, onClick: h });
5557
+ return e5({ width: e, height: t, color: l, className: a, onClick: h });
5573
5558
  case "telegram":
5574
- return n5({ width: e, height: t, color: l, className: o, onClick: h });
5559
+ return i5({ width: e, height: t, color: l, className: a, onClick: h });
5575
5560
  case "mail":
5576
- return o5({ width: e, height: t, color: l, className: o, onClick: h });
5561
+ return n5({ width: e, height: t, color: l, className: a, onClick: h });
5577
5562
  case "github":
5578
- return s5({ width: e, height: t, color: l, className: o, onClick: h });
5563
+ return t5({ width: e, height: t, color: l, className: a, onClick: h });
5579
5564
  case "linkedIn":
5580
- return r5({ width: e, height: t, color: l, className: o, onClick: h });
5565
+ return s5({ width: e, height: t, color: l, className: a, onClick: h });
5581
5566
  case "emptyStateIcon":
5582
- return a5({ width: e, height: t, color: l, className: o, onClick: h });
5567
+ return r5({ width: e, height: t, color: l, className: a, onClick: h });
5583
5568
  case "filtersIcon":
5584
- return l5({ width: e, height: t, color: l, className: o, onClick: h });
5569
+ return o5({ width: e, height: t, color: l, className: a, onClick: h });
5585
5570
  case "dotMenuIcon":
5586
- return h5({ width: e, height: t, color: l, className: o, onClick: h });
5571
+ return a5({ width: e, height: t, color: l, className: a, onClick: h });
5587
5572
  case "plusCircle":
5588
- return c5({ width: e, height: t, color: l, className: o, onClick: h });
5573
+ return l5({ width: e, height: t, color: l, className: a, onClick: h });
5589
5574
  case "warning":
5590
- return d5({ width: e, height: t, color: l, className: o, onClick: h });
5575
+ return h5({ width: e, height: t, color: l, className: a, onClick: h });
5591
5576
  case "back":
5592
- return g5({ width: e, height: t, color: l, className: o, onClick: h });
5577
+ return c5({ width: e, height: t, color: l, className: a, onClick: h });
5593
5578
  case "bell":
5594
- return u5({ width: e, height: t, color: l, className: o, onClick: h });
5579
+ return d5({ width: e, height: t, color: l, className: a, onClick: h });
5595
5580
  case "contract":
5596
- return p5({ width: e, height: t, color: l, className: o, onClick: h });
5581
+ return u5({ width: e, height: t, color: l, className: a, onClick: h });
5597
5582
  case "trash2":
5598
- return C5({ width: e, height: t, color: l, className: o, onClick: h });
5583
+ return g5({ width: e, height: t, color: l, className: a, onClick: h });
5599
5584
  case "resourceManager":
5600
- return f5({ width: e, height: t, color: l, className: o, onClick: h });
5585
+ return C5({ width: e, height: t, color: l, className: a, onClick: h });
5601
5586
  case "settings2":
5602
- return m5({ width: e, height: t, color: l, className: o, onClick: h });
5587
+ return p5({ width: e, height: t, color: l, className: a, onClick: h });
5603
5588
  case "image":
5604
- return w5({ width: e, height: t, color: l, className: o, onClick: h });
5589
+ return f5({ width: e, height: t, color: l, className: a, onClick: h });
5605
5590
  case "edit":
5606
- return k5({ width: e, height: t, color: l, className: o, onClick: h });
5591
+ return m5({ width: e, height: t, color: l, className: a, onClick: h });
5607
5592
  case "filledArrowRight":
5608
- return L5({ width: e, height: t, color: l, className: o, onClick: h });
5593
+ return w5({ width: e, height: t, color: l, className: a, onClick: h });
5609
5594
  case "burgerMenu":
5610
- return v5({ width: e, height: t, color: l, className: o, onClick: h });
5595
+ return k5({ width: e, height: t, color: l, className: a, onClick: h });
5611
5596
  case "signOut":
5612
- return N5({ width: e, height: t, color: l, className: o, onClick: h });
5597
+ return L5({ width: e, height: t, color: l, className: a, onClick: h });
5613
5598
  case "refresh":
5614
- return x5({ width: e, height: t, color: l, className: o, onClick: h });
5599
+ return v5({ width: e, height: t, color: l, className: a, onClick: h });
5615
5600
  case "projects":
5616
- return R5({ width: e, height: t, color: l, className: o, onClick: h });
5601
+ return N5({ width: e, height: t, color: l, className: a, onClick: h });
5617
5602
  case "profile":
5618
- return I5({ width: e, height: t, color: l, className: o, onClick: h });
5603
+ return _5({ width: e, height: t, color: l, className: a, onClick: h });
5619
5604
  case "exit":
5620
- return M5({ width: e, height: t, color: l, className: o, onClick: h });
5605
+ return x5({ width: e, height: t, color: l, className: a, onClick: h });
5621
5606
  case "client":
5622
- return b5({ width: e, height: t, color: l, className: o, onClick: h });
5607
+ return R5({ width: e, height: t, color: l, className: a, onClick: h });
5623
5608
  case "calendar2":
5624
- return y5({ width: e, height: t, color: l, className: o, onClick: h });
5609
+ return M5({ width: e, height: t, color: l, className: a, onClick: h });
5625
5610
  case "openPointCircle":
5626
- return E5({ width: e, height: t, color: l, className: o, onClick: h });
5611
+ return b5({ width: e, height: t, color: l, className: a, onClick: h });
5627
5612
  case "community":
5628
- return _5({ width: e, height: t, color: l, className: o, onClick: h });
5613
+ return y5({ width: e, height: t, color: l, className: a, onClick: h });
5629
5614
  case "docs":
5630
- return H5({ width: e, height: t, color: l, className: o, onClick: h });
5615
+ return E5({ width: e, height: t, color: l, className: a, onClick: h });
5631
5616
  default:
5632
5617
  return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
5633
5618
  }
5634
5619
  })() });
5635
5620
  };
5636
5621
  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 || {});
5637
- const S5 = d1({
5622
+ const I5 = d1({
5638
5623
  locale: "en",
5639
5624
  theme: "light"
5640
5625
  });
5641
- S5.Provider;
5642
- const ue = ({
5626
+ I5.Provider;
5627
+ const ge = ({
5643
5628
  children: i,
5644
5629
  width: e,
5645
5630
  size: t = "small",
5646
5631
  onClose: s,
5647
5632
  closable: n = !0,
5648
- disabled: a = !1
5633
+ disabled: o = !1
5649
5634
  }) => {
5650
- const c = t === "small" ? 10 : 12.5, o = () => {
5651
- a || s == null || s();
5635
+ const c = t === "small" ? 10 : 12.5, a = () => {
5636
+ o || s == null || s();
5652
5637
  };
5653
5638
  return /* @__PURE__ */ r(
5654
- ye,
5639
+ be,
5655
5640
  {
5656
- className: `snmt-tag ${t} ${a ? "disabled" : ""}`,
5641
+ className: `snmt-tag ${t} ${o ? "disabled" : ""}`,
5657
5642
  closeIcon: /* @__PURE__ */ r(
5658
- O5,
5643
+ H5,
5659
5644
  {
5660
5645
  name: "errorSmall",
5661
- color: a ? f1.GREY_DARK_1 : f1.GREY_DARK_2,
5646
+ color: o ? f1.GREY_DARK_1 : f1.GREY_DARK_2,
5662
5647
  width: c,
5663
5648
  height: c,
5664
- onClick: o
5649
+ onClick: a
5665
5650
  }
5666
5651
  ),
5667
5652
  bordered: !1,
5668
5653
  style: { width: e ?? "fit-content" },
5669
5654
  closable: n,
5670
5655
  children: typeof i == "string" ? /* @__PURE__ */ r(
5671
- m2,
5656
+ p2,
5672
5657
  {
5673
5658
  variant: t === "small" ? "body4" : "body2",
5674
- color: a ? f1.GREY_DARK_2 : f1.GREY_DARK_5,
5659
+ color: o ? f1.GREY_DARK_2 : f1.GREY_DARK_5,
5675
5660
  children: i
5676
5661
  }
5677
5662
  ) : i
5678
5663
  }
5679
5664
  );
5680
- }, V5 = ({ children: i, title: e, arrow: t = !0, open: s, placement: n = "top" }) => /* @__PURE__ */ r(
5681
- ae,
5682
- {
5683
- overlayClassName: "snmt-tooltip",
5684
- title: e,
5685
- arrow: t,
5686
- open: s,
5687
- placement: n,
5688
- children: i
5689
- }
5690
- ), { Title: A5, Text: T5 } = le, Z5 = {
5665
+ }, { Title: O5, Text: S5 } = ae, V5 = {
5691
5666
  h1: 1,
5692
5667
  h2: 2,
5693
5668
  h3: 3,
5694
5669
  h4: 4
5695
- }, D5 = k1(
5670
+ }, A5 = k1(
5696
5671
  ({
5697
5672
  align: i = "inherit",
5698
5673
  variant: e = "body1",
5699
5674
  color: t,
5700
5675
  children: s,
5701
5676
  onClick: n,
5702
- collapsed: a,
5677
+ collapsed: o,
5703
5678
  whiteSpace: c = "normal",
5704
5679
  /** This prop allows you to enable tooltip if text size is too big */
5705
- trim: o = !1
5680
+ trim: a = !1
5706
5681
  }, d) => {
5707
- const g = q(null);
5708
- _1(d, () => g.current);
5709
- const [l, h] = T(!1);
5710
- j(() => {
5711
- if (!o) return;
5712
- const m = () => {
5713
- g.current && h(g.current.scrollWidth > g.current.clientWidth);
5714
- }, _ = new ResizeObserver(m);
5715
- return g.current && _.observe(g.current), () => {
5716
- _.disconnect();
5717
- };
5718
- }, [o, l]);
5719
- const u = e === "h1" || e === "h2" || e === "h3" || e === "h4";
5720
- let p = `snmt-typography snmt-typography-${e}`;
5721
- i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), a && (p += " collapsed"), o && (p += " collapsed");
5722
- const w = {
5723
- className: p,
5724
- style: { color: t, whiteSpace: o ? "nowrap" : c, display: o ? "block" : "" },
5682
+ const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
5683
+ let l = `snmt-typography snmt-typography-${e}`;
5684
+ i && i !== "inherit" && (l += ` snmt-typography-align-${i}`), o && (l += " collapsed");
5685
+ const h = {
5686
+ className: l,
5687
+ style: { color: t, whiteSpace: a ? "nowrap" : c, display: a ? "block" : "" },
5725
5688
  onClick: n,
5726
- ref: g
5727
- }, k = u ? /* @__PURE__ */ r(A5, { level: Z5[e], ...w, children: s }) : /* @__PURE__ */ r(T5, { ...w, children: s });
5728
- return o && l ? /* @__PURE__ */ r(V5, { placement: "top", title: s, children: k }) : k;
5689
+ ref: d,
5690
+ ellipsis: a ? {
5691
+ tooltip: {
5692
+ title: s,
5693
+ arrow: !0,
5694
+ overlayClassName: "snmt-tooltip"
5695
+ }
5696
+ } : void 0
5697
+ };
5698
+ return g ? /* @__PURE__ */ r(O5, { level: V5[e], ...h, children: s }) : /* @__PURE__ */ r(S5, { ...h, children: s });
5729
5699
  }
5730
- ), B5 = ({
5700
+ ), T5 = ({
5731
5701
  children: i,
5732
5702
  content: e,
5733
5703
  isOpen: t,
5734
5704
  setIsOpen: s,
5735
5705
  placement: n = "topRight",
5736
- noPadding: a = !1
5706
+ noPadding: o = !1
5737
5707
  }) => {
5738
- const [c, o] = T(!1);
5708
+ const [c, a] = B(!1);
5739
5709
  return /* @__PURE__ */ r(
5740
- Ee,
5710
+ ye,
5741
5711
  {
5742
5712
  content: e,
5743
5713
  arrow: !1,
5744
5714
  placement: n,
5745
5715
  trigger: "click",
5746
- overlayClassName: `snmt-popover ${a ? "" : "padding"}`,
5716
+ overlayClassName: `snmt-popover ${o ? "" : "padding"}`,
5747
5717
  open: t ?? c,
5748
5718
  onOpenChange: (d) => {
5749
- o(d), s == null || s(d);
5719
+ a(d), s == null || s(d);
5750
5720
  },
5751
5721
  children: /* @__PURE__ */ r("div", { className: "wrapper", children: i })
5752
5722
  }
5753
5723
  );
5754
5724
  };
5755
- var j5 = { exports: {} };
5725
+ var Z5 = { exports: {} };
5756
5726
  (function(i, e) {
5757
5727
  (function(t, s) {
5758
5728
  i.exports = s();
5759
- })(Se, function() {
5729
+ })(Oe, function() {
5760
5730
  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) {
5761
5731
  var s = ["th", "st", "nd", "rd"], n = t % 100;
5762
5732
  return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
5763
5733
  } };
5764
5734
  });
5765
- })(j5);
5766
- const W5 = ({
5735
+ })(Z5);
5736
+ const D5 = ({
5767
5737
  values: i,
5768
5738
  onTagClose: e,
5769
5739
  maxWidth: t,
5770
5740
  closable: s = !0,
5771
5741
  disabled: n,
5772
- options: a,
5742
+ options: o,
5773
5743
  extraOptions: c
5774
5744
  }) => {
5775
- const { locale: o } = r1(D1), { t: d } = Je("common", { lng: o }), [g, l] = T(!1);
5776
- if (j(() => {
5745
+ const { locale: a } = r1(Z1), { t: d } = ze("common", { lng: a }), [g, l] = B(!1);
5746
+ if (G(() => {
5777
5747
  i.length || l(!1);
5778
5748
  }, [i]), !i.length)
5779
5749
  return null;
5780
5750
  const h = (u) => {
5781
- var p, w;
5782
- return ((p = a == null ? void 0 : a.find((k) => k.value === u)) == null ? void 0 : p.label) || ((w = c == null ? void 0 : c.find((k) => k.value === u)) == null ? void 0 : w.label) || u;
5751
+ var p, k;
5752
+ return ((p = o == null ? void 0 : o.find((v) => v.value === u)) == null ? void 0 : p.label) || ((k = c == null ? void 0 : c.find((v) => v.value === u)) == null ? void 0 : k.label) || u;
5783
5753
  };
5784
5754
  return /* @__PURE__ */ C(
5785
- B5,
5755
+ T5,
5786
5756
  {
5787
5757
  content: (
5788
5758
  // 90: paddings + margins + gaps and so on
5789
5759
  /* @__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(
5790
- ue,
5760
+ ge,
5791
5761
  {
5792
5762
  onClose: () => e(u),
5793
5763
  closable: s,
@@ -5807,7 +5777,7 @@ const W5 = ({
5807
5777
  ]
5808
5778
  }
5809
5779
  );
5810
- }, K1 = ({ size: i = 30, color: e = "#004ed7" }) => {
5780
+ }, G1 = ({ size: i = 30, color: e = "#004ed7" }) => {
5811
5781
  const t = `no-repeat linear-gradient(${e}
5812
5782
  calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
5813
5783
  width: i,
@@ -5815,162 +5785,162 @@ const W5 = ({
5815
5785
  backgroundSize: "20% calc(200% + 20px)"
5816
5786
  };
5817
5787
  return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
5818
- }, $1 = k1(
5788
+ }, K1 = k1(
5819
5789
  ({
5820
5790
  value: i,
5821
5791
  onChange: e,
5822
5792
  placeholder: t,
5823
5793
  mode: s,
5824
5794
  search: n = !1,
5825
- options: a,
5795
+ options: o,
5826
5796
  width: c,
5827
- disabled: o = !1,
5797
+ disabled: a = !1,
5828
5798
  required: d = !1,
5829
5799
  clearable: g = !1,
5830
5800
  scrollThresholdValue: l = 50,
5831
5801
  onSearchChange: h,
5832
5802
  onDropdownVisibleChange: u,
5833
5803
  onScrollToEnd: p,
5834
- onPopupScroll: w,
5835
- id: k,
5804
+ onPopupScroll: k,
5805
+ id: v,
5836
5806
  extraOptions: m,
5837
- dropdownRender: _,
5807
+ dropdownRender: O,
5838
5808
  optionRender: M,
5839
5809
  isLoading: S,
5840
5810
  readOnly: f,
5841
5811
  error: N
5842
5812
  }, x) => {
5843
- const [v, P] = T(!1), [J, F] = T(!1), [H, D] = T(!0), [I, V] = T(i), Z = q(null);
5844
- j(() => {
5813
+ const [L, P] = B(!1), [J, F] = B(!1), [_, Z] = B(!0), [H, V] = B(i), T = X(null);
5814
+ G(() => {
5845
5815
  V(i);
5846
5816
  }, [i]);
5847
- const W = (L) => {
5848
- P(L), u && u(L);
5849
- }, U = (L, b) => {
5850
- var B;
5851
- return !!((B = b == null ? void 0 : b.label) != null && B.toString().toLowerCase().includes(L.toLowerCase()));
5852
- }, O = () => {
5817
+ const j = (w) => {
5818
+ P(w), u && u(w);
5819
+ }, U = (w, b) => {
5820
+ var D;
5821
+ return !!((D = b == null ? void 0 : b.label) != null && D.toString().toLowerCase().includes(w.toLowerCase()));
5822
+ }, I = () => {
5853
5823
  F(!0);
5854
5824
  }, K = () => {
5855
5825
  F(!1);
5856
- }, G = $(
5857
- (L) => {
5858
- if (V(L), s) {
5859
- const B = L;
5860
- e == null || e(B);
5826
+ }, W = $(
5827
+ (w) => {
5828
+ if (V(w), s) {
5829
+ const D = w;
5830
+ e == null || e(D);
5861
5831
  return;
5862
5832
  }
5863
- const b = L;
5833
+ const b = w;
5864
5834
  e == null || e(b);
5865
5835
  },
5866
5836
  [s, e]
5867
5837
  ), e1 = $(() => {
5868
- if (!(f || o)) {
5838
+ if (!(f || a)) {
5869
5839
  if (s) {
5870
- G([]);
5840
+ W([]);
5871
5841
  return;
5872
5842
  }
5873
- G("");
5843
+ W("");
5874
5844
  }
5875
- }, [o, G, s, f]), t1 = $(
5876
- (L) => {
5877
- const b = I.filter((B) => B !== L);
5878
- G(b), V(b);
5845
+ }, [a, W, s, f]), t1 = $(
5846
+ (w) => {
5847
+ const b = H.filter((D) => D !== w);
5848
+ W(b), V(b);
5879
5849
  },
5880
- [G, I]
5850
+ [W, H]
5881
5851
  ), g1 = $(
5882
- (L) => (I == null ? void 0 : I.indexOf(L)) === 0 ? (
5852
+ (w) => (H == null ? void 0 : H.indexOf(w)) === 0 ? (
5883
5853
  // if the search input is empty
5884
5854
  // then display the placeholder, else do not display it
5885
- /* @__PURE__ */ r("span", { className: "custom-placeholder", children: H ? t : "" })
5855
+ /* @__PURE__ */ r("span", { className: "custom-placeholder", children: _ ? t : "" })
5886
5856
  ) : /* @__PURE__ */ r(i1, {}),
5887
- [H, I, t]
5888
- ), L1 = (L) => {
5889
- L.preventDefault(), L.stopPropagation();
5890
- }, v1 = async (L) => {
5891
- const { target: b } = L;
5892
- b.scrollTop + b.offsetHeight >= b.scrollHeight - l && (p == null || p(!0)), w && await w(L);
5857
+ [_, H, t]
5858
+ ), L1 = (w) => {
5859
+ w.preventDefault(), w.stopPropagation();
5860
+ }, v1 = async (w) => {
5861
+ const { target: b } = w;
5862
+ b.scrollTop + b.offsetHeight >= b.scrollHeight - l && (p == null || p(!0)), k && await k(w);
5893
5863
  }, o1 = $(
5894
- (L) => {
5895
- var b, B;
5896
- return ((b = a.find((a1) => a1.value === L)) == null ? void 0 : b.label) || ((B = m == null ? void 0 : m.find(
5897
- (a1) => a1.value === L
5898
- )) == null ? void 0 : B.label) || L;
5864
+ (w) => {
5865
+ var b, D;
5866
+ return ((b = o.find((a1) => a1.value === w)) == null ? void 0 : b.label) || ((D = m == null ? void 0 : m.find(
5867
+ (a1) => a1.value === w
5868
+ )) == null ? void 0 : D.label) || w;
5899
5869
  },
5900
- [m, a]
5870
+ [m, o]
5901
5871
  ), N1 = $(
5902
- (L) => {
5872
+ (w) => {
5903
5873
  var b;
5904
5874
  return /* @__PURE__ */ r(
5905
- W5,
5875
+ D5,
5906
5876
  {
5907
- values: L,
5877
+ values: w,
5908
5878
  onTagClose: t1,
5909
- maxWidth: ((b = Z.current) == null ? void 0 : b.clientWidth) || 0,
5910
- disabled: o,
5879
+ maxWidth: ((b = T.current) == null ? void 0 : b.clientWidth) || 0,
5880
+ disabled: a,
5911
5881
  closable: !f,
5912
- options: a,
5882
+ options: o,
5913
5883
  extraOptions: m
5914
5884
  }
5915
5885
  );
5916
5886
  },
5917
- [o, m, t1, a, f]
5887
+ [a, m, t1, o, f]
5918
5888
  ), A = $(
5919
- ({ label: L, value: b, mode: B }) => B === "filter" ? g1(b) : /* @__PURE__ */ r("div", { onMouseDown: L1, className: "tag-wrapper", children: /* @__PURE__ */ r(ue, { onClose: () => t1(b), disabled: o, children: typeof L == "object" ? L : o1(b) }) }),
5920
- [o, o1, t1, g1]
5921
- ), z = Array.isArray(I) && I.length > 0 || !!I && typeof I == "string" && I.trim() !== "";
5889
+ ({ label: w, value: b, mode: D }) => D === "filter" ? g1(b) : /* @__PURE__ */ r("div", { onMouseDown: L1, className: "tag-wrapper", children: /* @__PURE__ */ r(ge, { onClose: () => t1(b), disabled: a, children: typeof w == "object" ? w : o1(b) }) }),
5890
+ [a, o1, t1, g1]
5891
+ ), z = Array.isArray(H) && H.length > 0 || !!H && typeof H == "string" && H.trim() !== "";
5922
5892
  return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
5923
5893
  /* @__PURE__ */ C(
5924
5894
  "div",
5925
5895
  {
5926
5896
  className: `snmt-select-1-15-6 ${J ? "snmt-select-focused" : ""}
5927
5897
  ${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
5928
- ref: Z,
5898
+ ref: T,
5929
5899
  style: { width: c },
5930
5900
  children: [
5931
5901
  /* @__PURE__ */ r(
5932
- xe,
5902
+ Ne,
5933
5903
  {
5934
5904
  className: "snmt-select-blank",
5935
5905
  popupClassName: f ? "dropdown-read-only" : "",
5936
- id: k,
5906
+ id: v,
5937
5907
  ref: x,
5938
5908
  showSearch: !!n,
5939
5909
  filterOption: n && U,
5940
- onDropdownVisibleChange: W,
5941
- disabled: o,
5942
- value: I || void 0,
5943
- labelRender: (L) => {
5944
- const b = o1(L.value);
5945
- return o ? /* @__PURE__ */ r("span", { style: { color: Q.GREY_DARK_1 }, children: b }) : b;
5910
+ onDropdownVisibleChange: j,
5911
+ disabled: a,
5912
+ value: H || void 0,
5913
+ labelRender: (w) => {
5914
+ const b = o1(w.value);
5915
+ return a ? /* @__PURE__ */ r("span", { style: { color: Q.GREY_DARK_1 }, children: b }) : b;
5946
5916
  },
5947
5917
  mode: s === "filter" ? "multiple" : s,
5948
- onChange: G,
5949
- onFocus: O,
5918
+ onChange: W,
5919
+ onFocus: I,
5950
5920
  onBlur: K,
5951
- onSearch: (L) => {
5952
- D(!L), h && h(L);
5921
+ onSearch: (w) => {
5922
+ Z(!w), h && h(w);
5953
5923
  },
5954
- onSelect: () => D(!0),
5955
- onDeselect: () => D(!0),
5956
- tagRender: (L) => A({ ...L, mode: s }),
5924
+ onSelect: () => Z(!0),
5925
+ onDeselect: () => Z(!0),
5926
+ tagRender: (w) => A({ ...w, mode: s }),
5957
5927
  maxTagCount: "responsive",
5958
5928
  maxTagPlaceholder: N1,
5959
5929
  onPopupScroll: v1,
5960
- prefix: S && /* @__PURE__ */ r(K1, { size: 15 }),
5930
+ prefix: S && /* @__PURE__ */ r(G1, { size: 15 }),
5961
5931
  suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(i1, { children: [
5962
- I && !!I.length && (s || g) && /* @__PURE__ */ r(
5932
+ H && !!H.length && (s || g) && /* @__PURE__ */ r(
5963
5933
  "div",
5964
5934
  {
5965
5935
  onClick: e1,
5966
5936
  style: {
5967
- cursor: o ? "not-allowed" : "pointer"
5937
+ cursor: a ? "not-allowed" : "pointer"
5968
5938
  },
5969
5939
  children: /* @__PURE__ */ r(
5970
5940
  u1,
5971
5941
  {
5972
5942
  name: "cancel",
5973
- color: o ? Q.GREY_DARK_1 : Q.GREY_DARK_5
5943
+ color: a ? Q.GREY_DARK_1 : Q.GREY_DARK_5
5974
5944
  }
5975
5945
  )
5976
5946
  }
@@ -5979,28 +5949,28 @@ const W5 = ({
5979
5949
  u1,
5980
5950
  {
5981
5951
  name: "selectArrowIcon",
5982
- color: o ? Q.GREY_DARK_1 : Q.GREY_DARK_5,
5983
- className: v ? "select-arrow-rotated" : "select-arrow",
5984
- onClick: () => P(!v)
5952
+ color: a ? Q.GREY_DARK_1 : Q.GREY_DARK_5,
5953
+ className: L ? "select-arrow-rotated" : "select-arrow",
5954
+ onClick: () => P(!L)
5985
5955
  }
5986
5956
  )
5987
5957
  ] }) }),
5988
5958
  removeIcon: /* @__PURE__ */ r(u1, { name: "errorSmall", color: Q.GREY_DARK_1 }),
5989
- options: a,
5990
- optionRender: (L) => M ? M(L.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
5959
+ options: o,
5960
+ optionRender: (w) => M ? M(w.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
5991
5961
  /* @__PURE__ */ C(p1, { alignItems: "center", gap: 12, children: [
5992
5962
  s && /* @__PURE__ */ r(
5993
5963
  Qe,
5994
5964
  {
5995
- checked: !!(I != null && I.includes(L.value))
5965
+ checked: !!(H != null && H.includes(w.value))
5996
5966
  }
5997
5967
  ),
5998
5968
  /* @__PURE__ */ C(p1, { alignItems: "center", gap: 8, children: [
5999
- L.data.image && /* @__PURE__ */ r(qe, { src: L.data.image, size: 20 }),
6000
- /* @__PURE__ */ r("span", { children: L.label })
5969
+ w.data.image && /* @__PURE__ */ r(Je, { src: w.data.image, size: 20 }),
5970
+ /* @__PURE__ */ r("span", { children: w.label })
6001
5971
  ] })
6002
5972
  ] }),
6003
- !s && I === L.value && /* @__PURE__ */ r(
5973
+ !s && H === w.value && /* @__PURE__ */ r(
6004
5974
  u1,
6005
5975
  {
6006
5976
  name: "ok",
@@ -6010,9 +5980,9 @@ const W5 = ({
6010
5980
  }
6011
5981
  )
6012
5982
  ] }),
6013
- dropdownRender: (L) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
6014
- /* @__PURE__ */ r("div", { className: "dropdown-menu", children: _ ? _(L) : L }),
6015
- S && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(K1, { size: 28 }) })
5983
+ dropdownRender: (w) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
5984
+ /* @__PURE__ */ r("div", { className: "dropdown-menu", children: O ? O(w) : w }),
5985
+ S && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(G1, { size: 28 }) })
6016
5986
  ] })
6017
5987
  }
6018
5988
  ),
@@ -6020,14 +5990,14 @@ const W5 = ({
6020
5990
  /* @__PURE__ */ r(
6021
5991
  "label",
6022
5992
  {
6023
- className: `${J || z ? "label-floating" : ""} ${o ? "label-disabled" : ""} ${J ? "label-focused" : ""} ${S ? "label-loading" : ""} ${N ? "label-error" : ""}`,
5993
+ className: `${J || z ? "label-floating" : ""} ${a ? "label-disabled" : ""} ${J ? "label-focused" : ""} ${S ? "label-loading" : ""} ${N ? "label-error" : ""}`,
6024
5994
  children: d ? `${t}*` : t
6025
5995
  }
6026
5996
  ),
6027
5997
  /* @__PURE__ */ r(
6028
5998
  "fieldset",
6029
5999
  {
6030
- className: `${J ? "fieldset-focused" : ""} ${o ? "fieldset-disabled" : ""} ${z ? "fieldset-filled" : ""} ${N ? "fieldset-error" : ""}`,
6000
+ className: `${J ? "fieldset-focused" : ""} ${a ? "fieldset-disabled" : ""} ${z ? "fieldset-filled" : ""} ${N ? "fieldset-error" : ""}`,
6031
6001
  children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: d ? `${t}*` : t }) })
6032
6002
  }
6033
6003
  )
@@ -6045,14 +6015,14 @@ const W5 = ({
6045
6015
  width: 16
6046
6016
  }
6047
6017
  ),
6048
- typeof N == "string" ? /* @__PURE__ */ r(D5, { color: Q.NOTIFICATION_ERROR_DARK, variant: "body4", children: N }) : N
6018
+ typeof N == "string" ? /* @__PURE__ */ r(A5, { color: Q.NOTIFICATION_ERROR_DARK, variant: "body4", children: N }) : N
6049
6019
  ] })
6050
6020
  ] });
6051
6021
  }
6052
6022
  );
6053
- function G5(i, e = 500) {
6054
- const t = q();
6055
- return j(() => () => {
6023
+ function B5(i, e = 500) {
6024
+ const t = X();
6025
+ return G(() => () => {
6056
6026
  t.current && clearTimeout(t.current);
6057
6027
  }, []), (...s) => {
6058
6028
  const n = setTimeout(() => {
@@ -6061,55 +6031,55 @@ function G5(i, e = 500) {
6061
6031
  clearTimeout(t.current), t.current = n;
6062
6032
  };
6063
6033
  }
6064
- function P1(i) {
6065
- const e = q(i);
6066
- return j(() => {
6034
+ function $1(i) {
6035
+ const e = X(i);
6036
+ return G(() => {
6067
6037
  e.current = i;
6068
6038
  }, [i]), e.current;
6069
6039
  }
6070
- const I1 = 100, l1 = {
6040
+ const H1 = 100, l1 = {
6071
6041
  offset: 0
6072
- }, F1 = k1(
6042
+ }, P1 = k1(
6073
6043
  ({
6074
6044
  loadOptions: i,
6075
6045
  width: e,
6076
6046
  onChange: t,
6077
6047
  value: s,
6078
6048
  id: n,
6079
- disabled: a,
6049
+ disabled: o,
6080
6050
  scrollThresholdValue: c,
6081
- placeholder: o,
6051
+ placeholder: a,
6082
6052
  mode: d,
6083
6053
  loadOnClosedState: g,
6084
6054
  preloadOptions: l,
6085
6055
  extraOptions: h,
6086
6056
  onDropdownVisibleChange: u,
6087
6057
  optionRender: p,
6088
- dropdownRender: w,
6089
- readOnly: k,
6058
+ dropdownRender: k,
6059
+ readOnly: v,
6090
6060
  clearable: m = !1,
6091
- required: _ = !1,
6061
+ required: O = !1,
6092
6062
  error: M
6093
6063
  }, S) => {
6094
- const [f, N] = T(), [x, v] = T(l1), [P, J] = T(!1), [F, H] = T(), [D, I] = T(!1), [V, Z] = T(
6064
+ const [f, N] = B(), [x, L] = B(l1), [P, J] = B(!1), [F, _] = B(), [Z, H] = B(!1), [V, T] = B(
6095
6065
  h ?? []
6096
- ), W = P1(x.offset), U = P1(F), [O, K] = T(!1), G = q(!1), e1 = $(
6066
+ ), j = $1(x.offset), U = $1(F), [I, K] = B(!1), W = X(!1), e1 = $(
6097
6067
  async ({
6098
- limit: A = I1,
6068
+ limit: A = H1,
6099
6069
  offset: z,
6100
- search: L
6070
+ search: w
6101
6071
  }) => {
6102
6072
  J(!0);
6103
6073
  try {
6104
6074
  const b = await i({
6105
6075
  limit: A,
6106
6076
  offset: z,
6107
- search: L
6077
+ search: w
6108
6078
  });
6109
6079
  N(
6110
- (B) => z === 0 ? b.options : [...B ?? [], ...b.options]
6111
- ), v((B) => ({
6112
- ...B,
6080
+ (D) => z === 0 ? b.options : [...D ?? [], ...b.options]
6081
+ ), L((D) => ({
6082
+ ...D,
6113
6083
  count: b.count
6114
6084
  }));
6115
6085
  } catch (b) {
@@ -6119,33 +6089,33 @@ const I1 = 100, l1 = {
6119
6089
  }
6120
6090
  },
6121
6091
  [i]
6122
- ), t1 = G5((A) => {
6123
- H(A), A || v(l1);
6092
+ ), t1 = B5((A) => {
6093
+ _(A), A || L(l1);
6124
6094
  }), g1 = $(
6125
6095
  (A) => t1(A),
6126
6096
  [t1]
6127
6097
  ), L1 = $(
6128
6098
  async (A) => {
6129
- P || A && x.count && x.count > ((f == null ? void 0 : f.length) ?? 0) && v((z) => ({
6099
+ P || A && x.count && x.count > ((f == null ? void 0 : f.length) ?? 0) && L((z) => ({
6130
6100
  ...z,
6131
- offset: z.offset + I1
6101
+ offset: z.offset + H1
6132
6102
  }));
6133
6103
  },
6134
6104
  [P, f == null ? void 0 : f.length, x.count]
6135
6105
  ), v1 = $(
6136
6106
  (A) => {
6137
- I(A), !A && F && (H(void 0), v(l1), K(!0)), u == null || u(A);
6107
+ H(A), !A && F && (_(void 0), L(l1), K(!0)), u == null || u(A);
6138
6108
  },
6139
6109
  [u, F]
6140
6110
  );
6141
- j(() => {
6142
- !G.current || P || (O || D && (W !== x.offset || U !== F || !f)) && (e1({ offset: x.offset, limit: I1, search: F }), O && K(!1));
6143
- }, [O, D, x.offset, F, W, U, f, P]), j(() => {
6144
- (g || l) && e1(l1), G.current = !0;
6145
- }, []), j(() => {
6146
- h && Z((A) => {
6111
+ G(() => {
6112
+ !W.current || P || (I || Z && (j !== x.offset || U !== F || !f)) && (e1({ offset: x.offset, limit: H1, search: F }), I && K(!1));
6113
+ }, [I, Z, x.offset, F, j, U, f, P]), G(() => {
6114
+ (g || l) && e1(l1), W.current = !0;
6115
+ }, []), G(() => {
6116
+ h && T((A) => {
6147
6117
  const z = h.filter(
6148
- (L) => !A.some((b) => b.value === L.value)
6118
+ (w) => !A.some((b) => b.value === w.value)
6149
6119
  );
6150
6120
  return [...A, ...z];
6151
6121
  });
@@ -6155,44 +6125,44 @@ const I1 = 100, l1 = {
6155
6125
  t && t(A);
6156
6126
  let z = [];
6157
6127
  if (d ? z = Array.isArray(A) ? A : [] : z = A ? [A] : [], F) {
6158
- const L = z.filter(
6159
- (b) => !(V != null && V.some((B) => B.value === b))
6128
+ const w = z.filter(
6129
+ (b) => !(V != null && V.some((D) => D.value === b))
6160
6130
  );
6161
- L.length > 0 && Z((b = []) => [
6131
+ w.length > 0 && T((b = []) => [
6162
6132
  ...b,
6163
- ...L.map((B) => {
6164
- const a1 = f == null ? void 0 : f.find((ke) => ke.value === B);
6133
+ ...w.map((D) => {
6134
+ const a1 = f == null ? void 0 : f.find((we) => we.value === D);
6165
6135
  return {
6166
- value: B,
6167
- label: (a1 == null ? void 0 : a1.label) ?? B
6136
+ value: D,
6137
+ label: (a1 == null ? void 0 : a1.label) ?? D
6168
6138
  };
6169
6139
  })
6170
- ]), H(void 0), v(l1), K(!0);
6140
+ ]), _(void 0), L(l1), K(!0);
6171
6141
  }
6172
6142
  },
6173
6143
  [t, F, d, f, V]
6174
- ), N1 = Ne(
6144
+ ), N1 = ve(
6175
6145
  () => ({
6176
6146
  id: n,
6177
6147
  width: e,
6178
6148
  options: f || [],
6179
6149
  onChange: o1,
6180
6150
  ref: S,
6181
- placeholder: o,
6151
+ placeholder: a,
6182
6152
  search: !0,
6183
6153
  value: s,
6184
6154
  onSearchChange: g1,
6185
6155
  onDropdownVisibleChange: v1,
6186
6156
  scrollThresholdValue: c,
6187
6157
  onScrollToEnd: L1,
6188
- disabled: a,
6158
+ disabled: o,
6189
6159
  extraOptions: V,
6190
6160
  isLoading: P,
6191
6161
  optionRender: p,
6192
- dropdownRender: w,
6193
- readOnly: k,
6162
+ dropdownRender: k,
6163
+ readOnly: v,
6194
6164
  clearable: m,
6195
- required: _,
6165
+ required: O,
6196
6166
  error: M
6197
6167
  }),
6198
6168
  [
@@ -6201,32 +6171,32 @@ const I1 = 100, l1 = {
6201
6171
  f,
6202
6172
  o1,
6203
6173
  S,
6204
- o,
6174
+ a,
6205
6175
  s,
6206
6176
  g1,
6207
6177
  v1,
6208
6178
  c,
6209
6179
  L1,
6210
- a,
6180
+ o,
6211
6181
  V,
6212
6182
  P,
6213
6183
  p,
6214
- w,
6215
6184
  k,
6185
+ v,
6216
6186
  m,
6217
- _,
6187
+ O,
6218
6188
  M
6219
6189
  ]
6220
6190
  );
6221
- return _1(S, () => ({
6191
+ return oe(S, () => ({
6222
6192
  refetchOptions: async () => {
6223
- v(l1), H(void 0), K(!0);
6193
+ L(l1), _(void 0), K(!0);
6224
6194
  }
6225
- })), d ? /* @__PURE__ */ r($1, { ...N1, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r($1, { ...N1, value: s }) });
6195
+ })), d ? /* @__PURE__ */ r(K1, { ...N1, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(K1, { ...N1, value: s }) });
6226
6196
  }
6227
6197
  );
6228
6198
  var R1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(R1 || {});
6229
- const K5 = ({ size: i = 30, color: e = "#004ed7" }) => {
6199
+ const j5 = ({ size: i = 30, color: e = "#004ed7" }) => {
6230
6200
  const t = `no-repeat linear-gradient(${e}
6231
6201
  calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
6232
6202
  width: i,
@@ -6235,20 +6205,20 @@ const K5 = ({ size: i = 30, color: e = "#004ed7" }) => {
6235
6205
  };
6236
6206
  return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
6237
6207
  };
6238
- function $5() {
6208
+ function W5() {
6239
6209
  if (console && console.warn) {
6240
6210
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
6241
6211
  e[t] = arguments[t];
6242
6212
  n1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
6243
6213
  }
6244
6214
  }
6245
- const Y1 = {};
6246
- function A1() {
6215
+ const F1 = {};
6216
+ function V1() {
6247
6217
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
6248
6218
  e[t] = arguments[t];
6249
- n1(e[0]) && Y1[e[0]] || (n1(e[0]) && (Y1[e[0]] = /* @__PURE__ */ new Date()), $5(...e));
6219
+ n1(e[0]) && F1[e[0]] || (n1(e[0]) && (F1[e[0]] = /* @__PURE__ */ new Date()), W5(...e));
6250
6220
  }
6251
- const Ce = (i, e) => () => {
6221
+ const ue = (i, e) => () => {
6252
6222
  if (i.isInitialized)
6253
6223
  e();
6254
6224
  else {
@@ -6259,30 +6229,30 @@ const Ce = (i, e) => () => {
6259
6229
  };
6260
6230
  i.on("initialized", t);
6261
6231
  }
6262
- }, U1 = (i, e, t) => {
6263
- i.loadNamespaces(e, Ce(i, t));
6264
- }, z1 = (i, e, t, s) => {
6232
+ }, Y1 = (i, e, t) => {
6233
+ i.loadNamespaces(e, ue(i, t));
6234
+ }, U1 = (i, e, t, s) => {
6265
6235
  n1(t) && (t = [t]), t.forEach((n) => {
6266
6236
  i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
6267
- }), i.loadLanguages(e, Ce(i, s));
6268
- }, P5 = function(i, e) {
6237
+ }), i.loadLanguages(e, ue(i, s));
6238
+ }, G5 = function(i, e) {
6269
6239
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
6270
- const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
6240
+ const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
6271
6241
  if (s.toLowerCase() === "cimode") return !0;
6272
- const c = (o, d) => {
6273
- const g = e.services.backendConnector.state[`${o}|${d}`];
6242
+ const c = (a, d) => {
6243
+ const g = e.services.backendConnector.state[`${a}|${d}`];
6274
6244
  return g === -1 || g === 2;
6275
6245
  };
6276
- 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(a, i)));
6277
- }, F5 = function(i, e) {
6246
+ 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)));
6247
+ }, K5 = function(i, e) {
6278
6248
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
6279
- return !e.languages || !e.languages.length ? (A1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
6249
+ return !e.languages || !e.languages.length ? (V1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
6280
6250
  lng: t.lng,
6281
- precheck: (n, a) => {
6282
- if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !a(n.isLanguageChangingTo, i)) return !1;
6251
+ precheck: (n, o) => {
6252
+ if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !o(n.isLanguageChangingTo, i)) return !1;
6283
6253
  }
6284
- }) : P5(i, e, t);
6285
- }, n1 = (i) => typeof i == "string", Y5 = (i) => typeof i == "object" && i !== null, U5 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, z5 = {
6254
+ }) : G5(i, e, t);
6255
+ }, n1 = (i) => typeof i == "string", $5 = (i) => typeof i == "object" && i !== null, P5 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, F5 = {
6286
6256
  "&amp;": "&",
6287
6257
  "&#38;": "&",
6288
6258
  "&lt;": "<",
@@ -6303,8 +6273,8 @@ const Ce = (i, e) => () => {
6303
6273
  "&#8230;": "…",
6304
6274
  "&#x2F;": "/",
6305
6275
  "&#47;": "/"
6306
- }, J5 = (i) => z5[i], q5 = (i) => i.replace(U5, J5);
6307
- let T1 = {
6276
+ }, Y5 = (i) => F5[i], U5 = (i) => i.replace(P5, Y5);
6277
+ let A1 = {
6308
6278
  bindI18n: "languageChanged",
6309
6279
  bindI18nStore: "",
6310
6280
  transEmptyNodeValue: "",
@@ -6312,27 +6282,27 @@ let T1 = {
6312
6282
  transWrapTextNodes: "",
6313
6283
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
6314
6284
  useSuspense: !0,
6315
- unescape: q5
6285
+ unescape: U5
6316
6286
  };
6317
- const Q5 = function() {
6287
+ const z5 = function() {
6318
6288
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6319
- T1 = {
6320
- ...T1,
6289
+ A1 = {
6290
+ ...A1,
6321
6291
  ...i
6322
6292
  };
6323
- }, X5 = () => T1;
6324
- let pe;
6325
- const ei = (i) => {
6326
- pe = i;
6327
- }, ti = () => pe, ii = {
6293
+ }, J5 = () => A1;
6294
+ let Ce;
6295
+ const Q5 = (i) => {
6296
+ Ce = i;
6297
+ }, q5 = () => Ce, X5 = {
6328
6298
  type: "3rdParty",
6329
6299
  init(i) {
6330
- Q5(i.options.react), ei(i);
6300
+ z5(i.options.react), Q5(i);
6331
6301
  }
6332
- }, si = d1();
6333
- class ni {
6302
+ }, ei = d1();
6303
+ class ti {
6334
6304
  constructor() {
6335
- B1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
6305
+ D1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
6336
6306
  this.usedNamespaces = {};
6337
6307
  }
6338
6308
  addUsedNamespaces(e) {
@@ -6341,62 +6311,62 @@ class ni {
6341
6311
  });
6342
6312
  }
6343
6313
  }
6344
- const ri = (i, e) => {
6345
- const t = q();
6346
- return j(() => {
6314
+ const ii = (i, e) => {
6315
+ const t = X();
6316
+ return G(() => {
6347
6317
  t.current = i;
6348
6318
  }, [i, e]), t.current;
6349
- }, fe = (i, e, t, s) => i.getFixedT(e, t, s), oi = (i, e, t, s) => $(fe(i, e, t, s), [i, e, t, s]), ai = function(i) {
6319
+ }, pe = (i, e, t, s) => i.getFixedT(e, t, s), si = (i, e, t, s) => $(pe(i, e, t, s), [i, e, t, s]), ni = function(i) {
6350
6320
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6351
6321
  const {
6352
6322
  i18n: t
6353
6323
  } = e, {
6354
6324
  i18n: s,
6355
6325
  defaultNS: n
6356
- } = r1(si) || {}, a = t || s || ti();
6357
- if (a && !a.reportNamespaces && (a.reportNamespaces = new ni()), !a) {
6358
- A1("You will need to pass in an i18next instance by using initReactI18next");
6359
- const f = (x, v) => n1(v) ? v : Y5(v) && n1(v.defaultValue) ? v.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
6326
+ } = r1(ei) || {}, o = t || s || q5();
6327
+ if (o && !o.reportNamespaces && (o.reportNamespaces = new ti()), !o) {
6328
+ V1("You will need to pass in an i18next instance by using initReactI18next");
6329
+ const f = (x, L) => n1(L) ? L : $5(L) && n1(L.defaultValue) ? L.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
6360
6330
  return N.t = f, N.i18n = {}, N.ready = !1, N;
6361
6331
  }
6362
- a.options.react && a.options.react.wait !== void 0 && A1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
6332
+ 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.");
6363
6333
  const c = {
6364
- ...X5(),
6365
- ...a.options.react,
6334
+ ...J5(),
6335
+ ...o.options.react,
6366
6336
  ...e
6367
6337
  }, {
6368
- useSuspense: o,
6338
+ useSuspense: a,
6369
6339
  keyPrefix: d
6370
6340
  } = c;
6371
6341
  let g = i;
6372
- g = n1(g) ? [g] : g || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(g);
6373
- const l = (a.isInitialized || a.initializedStoreOnce) && g.every((f) => F5(f, a, c)), h = oi(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => fe(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [w, k] = T(u);
6342
+ g = n1(g) ? [g] : g || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(g);
6343
+ const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) => K5(f, o, c)), h = si(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), [k, v] = B(u);
6374
6344
  let m = g.join();
6375
6345
  e.lng && (m = `${e.lng}${m}`);
6376
- const _ = ri(m), M = q(!0);
6377
- j(() => {
6346
+ const O = ii(m), M = X(!0);
6347
+ G(() => {
6378
6348
  const {
6379
6349
  bindI18n: f,
6380
6350
  bindI18nStore: N
6381
6351
  } = c;
6382
- M.current = !0, !l && !o && (e.lng ? z1(a, e.lng, g, () => {
6383
- M.current && k(p);
6384
- }) : U1(a, g, () => {
6385
- M.current && k(p);
6386
- })), l && _ && _ !== m && M.current && k(p);
6352
+ M.current = !0, !l && !a && (e.lng ? U1(o, e.lng, g, () => {
6353
+ M.current && v(p);
6354
+ }) : Y1(o, g, () => {
6355
+ M.current && v(p);
6356
+ })), l && O && O !== m && M.current && v(p);
6387
6357
  const x = () => {
6388
- M.current && k(p);
6358
+ M.current && v(p);
6389
6359
  };
6390
- return f && a && a.on(f, x), N && a && a.store.on(N, x), () => {
6391
- M.current = !1, f && a && f.split(" ").forEach((v) => a.off(v, x)), N && a && N.split(" ").forEach((v) => a.store.off(v, x));
6360
+ return f && o && o.on(f, x), N && o && o.store.on(N, x), () => {
6361
+ M.current = !1, f && o && f.split(" ").forEach((L) => o.off(L, x)), N && o && N.split(" ").forEach((L) => o.store.off(L, x));
6392
6362
  };
6393
- }, [a, m]), j(() => {
6394
- M.current && l && k(u);
6395
- }, [a, d, l]);
6396
- const S = [w, a, l];
6397
- if (S.t = w, S.i18n = a, S.ready = l, l || !l && !o) return S;
6363
+ }, [o, m]), G(() => {
6364
+ M.current && l && v(u);
6365
+ }, [o, d, l]);
6366
+ const S = [k, o, l];
6367
+ if (S.t = k, S.i18n = o, S.ready = l, l || !l && !a) return S;
6398
6368
  throw new Promise((f) => {
6399
- e.lng ? z1(a, e.lng, g, () => f()) : U1(a, g, () => f());
6369
+ e.lng ? U1(o, e.lng, g, () => f()) : Y1(o, g, () => f());
6400
6370
  });
6401
6371
  }, R = (i) => typeof i == "string", C1 = () => {
6402
6372
  let i, e;
@@ -6404,23 +6374,23 @@ const ri = (i, e) => {
6404
6374
  i = s, e = n;
6405
6375
  });
6406
6376
  return t.resolve = i, t.reject = e, t;
6407
- }, J1 = (i) => i == null ? "" : "" + i, li = (i, e, t) => {
6377
+ }, z1 = (i) => i == null ? "" : "" + i, ri = (i, e, t) => {
6408
6378
  i.forEach((s) => {
6409
6379
  e[s] && (t[s] = e[s]);
6410
6380
  });
6411
- }, hi = /###/g, q1 = (i) => i && i.indexOf("###") > -1 ? i.replace(hi, ".") : i, Q1 = (i) => !i || R(i), m1 = (i, e, t) => {
6381
+ }, oi = /###/g, J1 = (i) => i && i.indexOf("###") > -1 ? i.replace(oi, ".") : i, Q1 = (i) => !i || R(i), m1 = (i, e, t) => {
6412
6382
  const s = R(e) ? e.split(".") : e;
6413
6383
  let n = 0;
6414
6384
  for (; n < s.length - 1; ) {
6415
6385
  if (Q1(i)) return {};
6416
- const a = q1(s[n]);
6417
- !i[a] && t && (i[a] = new t()), Object.prototype.hasOwnProperty.call(i, a) ? i = i[a] : i = {}, ++n;
6386
+ const o = J1(s[n]);
6387
+ !i[o] && t && (i[o] = new t()), Object.prototype.hasOwnProperty.call(i, o) ? i = i[o] : i = {}, ++n;
6418
6388
  }
6419
6389
  return Q1(i) ? {} : {
6420
6390
  obj: i,
6421
- k: q1(s[n])
6391
+ k: J1(s[n])
6422
6392
  };
6423
- }, X1 = (i, e, t) => {
6393
+ }, q1 = (i, e, t) => {
6424
6394
  const {
6425
6395
  obj: s,
6426
6396
  k: n
@@ -6429,16 +6399,16 @@ const ri = (i, e) => {
6429
6399
  s[n] = t;
6430
6400
  return;
6431
6401
  }
6432
- let a = e[e.length - 1], c = e.slice(0, e.length - 1), o = m1(i, c, Object);
6433
- for (; o.obj === void 0 && c.length; )
6434
- a = `${c[c.length - 1]}.${a}`, c = c.slice(0, c.length - 1), o = m1(i, c, Object), o && o.obj && typeof o.obj[`${o.k}.${a}`] < "u" && (o.obj = void 0);
6435
- o.obj[`${o.k}.${a}`] = t;
6436
- }, ci = (i, e, t, s) => {
6402
+ let o = e[e.length - 1], c = e.slice(0, e.length - 1), a = m1(i, c, Object);
6403
+ for (; a.obj === void 0 && c.length; )
6404
+ 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);
6405
+ a.obj[`${a.k}.${o}`] = t;
6406
+ }, ai = (i, e, t, s) => {
6437
6407
  const {
6438
6408
  obj: n,
6439
- k: a
6409
+ k: o
6440
6410
  } = m1(i, e, Object);
6441
- n[a] = n[a] || [], n[a].push(t);
6411
+ n[o] = n[o] || [], n[o].push(t);
6442
6412
  }, M1 = (i, e) => {
6443
6413
  const {
6444
6414
  obj: t,
@@ -6446,15 +6416,15 @@ const ri = (i, e) => {
6446
6416
  } = m1(i, e);
6447
6417
  if (t)
6448
6418
  return t[s];
6449
- }, di = (i, e, t) => {
6419
+ }, li = (i, e, t) => {
6450
6420
  const s = M1(i, t);
6451
6421
  return s !== void 0 ? s : M1(e, t);
6452
- }, me = (i, e, t) => {
6422
+ }, fe = (i, e, t) => {
6453
6423
  for (const s in e)
6454
- 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]) : me(i[s], e[s], t) : i[s] = e[s]);
6424
+ 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]) : fe(i[s], e[s], t) : i[s] = e[s]);
6455
6425
  return i;
6456
6426
  }, h1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
6457
- var gi = {
6427
+ var hi = {
6458
6428
  "&": "&amp;",
6459
6429
  "<": "&lt;",
6460
6430
  ">": "&gt;",
@@ -6462,8 +6432,8 @@ var gi = {
6462
6432
  "'": "&#39;",
6463
6433
  "/": "&#x2F;"
6464
6434
  };
6465
- const ui = (i) => R(i) ? i.replace(/[&<>"'\/]/g, (e) => gi[e]) : i;
6466
- class Ci {
6435
+ const ci = (i) => R(i) ? i.replace(/[&<>"'\/]/g, (e) => hi[e]) : i;
6436
+ class di {
6467
6437
  constructor(e) {
6468
6438
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
6469
6439
  }
@@ -6475,38 +6445,38 @@ class Ci {
6475
6445
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
6476
6446
  }
6477
6447
  }
6478
- const pi = [" ", ",", "?", "!", ";"], fi = new Ci(20), mi = (i, e, t) => {
6448
+ const gi = [" ", ",", "?", "!", ";"], ui = new di(20), Ci = (i, e, t) => {
6479
6449
  e = e || "", t = t || "";
6480
- const s = pi.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
6450
+ const s = gi.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
6481
6451
  if (s.length === 0) return !0;
6482
- const n = fi.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
6483
- let a = !n.test(i);
6484
- if (!a) {
6452
+ const n = ui.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
6453
+ let o = !n.test(i);
6454
+ if (!o) {
6485
6455
  const c = i.indexOf(t);
6486
- c > 0 && !n.test(i.substring(0, c)) && (a = !0);
6456
+ c > 0 && !n.test(i.substring(0, c)) && (o = !0);
6487
6457
  }
6488
- return a;
6489
- }, Z1 = function(i, e) {
6458
+ return o;
6459
+ }, T1 = function(i, e) {
6490
6460
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
6491
6461
  if (!i) return;
6492
6462
  if (i[e]) return i[e];
6493
6463
  const s = e.split(t);
6494
6464
  let n = i;
6495
- for (let a = 0; a < s.length; ) {
6465
+ for (let o = 0; o < s.length; ) {
6496
6466
  if (!n || typeof n != "object")
6497
6467
  return;
6498
- let c, o = "";
6499
- for (let d = a; d < s.length; ++d)
6500
- if (d !== a && (o += t), o += s[d], c = n[o], c !== void 0) {
6468
+ let c, a = "";
6469
+ for (let d = o; d < s.length; ++d)
6470
+ if (d !== o && (a += t), a += s[d], c = n[a], c !== void 0) {
6501
6471
  if (["string", "number", "boolean"].indexOf(typeof c) > -1 && d < s.length - 1)
6502
6472
  continue;
6503
- a += d - a + 1;
6473
+ o += d - o + 1;
6504
6474
  break;
6505
6475
  }
6506
6476
  n = c;
6507
6477
  }
6508
6478
  return n;
6509
- }, b1 = (i) => i && i.replace("_", "-"), wi = {
6479
+ }, b1 = (i) => i && i.replace("_", "-"), pi = {
6510
6480
  type: "logger",
6511
6481
  log(i) {
6512
6482
  this.output("log", i);
@@ -6528,7 +6498,7 @@ class y1 {
6528
6498
  }
6529
6499
  init(e) {
6530
6500
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6531
- this.prefix = t.prefix || "i18next:", this.logger = e || wi, this.options = t, this.debug = t.debug;
6501
+ this.prefix = t.prefix || "i18next:", this.logger = e || pi, this.options = t, this.debug = t.debug;
6532
6502
  }
6533
6503
  log() {
6534
6504
  for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
@@ -6563,8 +6533,8 @@ class y1 {
6563
6533
  return e = e || this.options, e.prefix = e.prefix || this.prefix, new y1(this.logger, e);
6564
6534
  }
6565
6535
  }
6566
- var X = new y1();
6567
- class H1 {
6536
+ var q = new y1();
6537
+ class _1 {
6568
6538
  constructor() {
6569
6539
  this.observers = {};
6570
6540
  }
@@ -6588,17 +6558,17 @@ class H1 {
6588
6558
  for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
6589
6559
  s[n - 1] = arguments[n];
6590
6560
  this.observers[e] && Array.from(this.observers[e].entries()).forEach((c) => {
6591
- let [o, d] = c;
6561
+ let [a, d] = c;
6592
6562
  for (let g = 0; g < d; g++)
6593
- o(...s);
6563
+ a(...s);
6594
6564
  }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((c) => {
6595
- let [o, d] = c;
6565
+ let [a, d] = c;
6596
6566
  for (let g = 0; g < d; g++)
6597
- o.apply(o, [e, ...s]);
6567
+ a.apply(a, [e, ...s]);
6598
6568
  });
6599
6569
  }
6600
6570
  }
6601
- class ee extends H1 {
6571
+ class X1 extends _1 {
6602
6572
  constructor(e) {
6603
6573
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
6604
6574
  ns: ["translation"],
@@ -6615,41 +6585,41 @@ class ee extends H1 {
6615
6585
  }
6616
6586
  getResource(e, t, s) {
6617
6587
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
6618
- const a = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
6619
- let o;
6620
- e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], s && (Array.isArray(s) ? o.push(...s) : R(s) && a ? o.push(...s.split(a)) : o.push(s)));
6621
- const d = M1(this.data, o);
6622
- return !d && !t && !s && e.indexOf(".") > -1 && (e = o[0], t = o[1], s = o.slice(2).join(".")), d || !c || !R(s) ? d : Z1(this.data && this.data[e] && this.data[e][t], s, a);
6588
+ const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
6589
+ let a;
6590
+ 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)));
6591
+ const d = M1(this.data, a);
6592
+ return !d && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), d || !c || !R(s) ? d : T1(this.data && this.data[e] && this.data[e][t], s, o);
6623
6593
  }
6624
6594
  addResource(e, t, s, n) {
6625
- let a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
6595
+ let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
6626
6596
  silent: !1
6627
6597
  };
6628
- const c = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator;
6629
- let o = [e, t];
6630
- s && (o = o.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (o = e.split("."), n = t, t = o[1]), this.addNamespaces(t), X1(this.data, o, n), a.silent || this.emit("added", e, t, s, n);
6598
+ const c = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
6599
+ let a = [e, t];
6600
+ s && (a = a.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (a = e.split("."), n = t, t = a[1]), this.addNamespaces(t), q1(this.data, a, n), o.silent || this.emit("added", e, t, s, n);
6631
6601
  }
6632
6602
  addResources(e, t, s) {
6633
6603
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
6634
6604
  silent: !1
6635
6605
  };
6636
- for (const a in s)
6637
- (R(s[a]) || Array.isArray(s[a])) && this.addResource(e, t, a, s[a], {
6606
+ for (const o in s)
6607
+ (R(s[o]) || Array.isArray(s[o])) && this.addResource(e, t, o, s[o], {
6638
6608
  silent: !0
6639
6609
  });
6640
6610
  n.silent || this.emit("added", e, t, s);
6641
6611
  }
6642
- addResourceBundle(e, t, s, n, a) {
6612
+ addResourceBundle(e, t, s, n, o) {
6643
6613
  let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
6644
6614
  silent: !1,
6645
6615
  skipCopy: !1
6646
- }, o = [e, t];
6647
- e.indexOf(".") > -1 && (o = e.split("."), n = s, s = t, t = o[1]), this.addNamespaces(t);
6648
- let d = M1(this.data, o) || {};
6649
- c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? me(d, s, a) : d = {
6616
+ }, a = [e, t];
6617
+ e.indexOf(".") > -1 && (a = e.split("."), n = s, s = t, t = a[1]), this.addNamespaces(t);
6618
+ let d = M1(this.data, a) || {};
6619
+ c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? fe(d, s, o) : d = {
6650
6620
  ...d,
6651
6621
  ...s
6652
- }, X1(this.data, o, d), c.silent || this.emit("added", e, t, s);
6622
+ }, q1(this.data, a, d), c.silent || this.emit("added", e, t, s);
6653
6623
  }
6654
6624
  removeResourceBundle(e, t) {
6655
6625
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -6673,22 +6643,22 @@ class ee extends H1 {
6673
6643
  return this.data;
6674
6644
  }
6675
6645
  }
6676
- var we = {
6646
+ var me = {
6677
6647
  processors: {},
6678
6648
  addPostProcessor(i) {
6679
6649
  this.processors[i.name] = i;
6680
6650
  },
6681
6651
  handle(i, e, t, s, n) {
6682
- return i.forEach((a) => {
6683
- this.processors[a] && (e = this.processors[a].process(e, t, s, n));
6652
+ return i.forEach((o) => {
6653
+ this.processors[o] && (e = this.processors[o].process(e, t, s, n));
6684
6654
  }), e;
6685
6655
  }
6686
6656
  };
6687
- const te = {};
6688
- class E1 extends H1 {
6657
+ const ee = {};
6658
+ class E1 extends _1 {
6689
6659
  constructor(e) {
6690
6660
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6691
- super(), li(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = X.create("translator");
6661
+ super(), ri(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = q.create("translator");
6692
6662
  }
6693
6663
  changeLanguage(e) {
6694
6664
  e && (this.language = e);
@@ -6706,21 +6676,21 @@ class E1 extends H1 {
6706
6676
  let s = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
6707
6677
  s === void 0 && (s = ":");
6708
6678
  const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
6709
- let a = t.ns || this.options.defaultNS || [];
6710
- const c = s && e.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !mi(e, s, n);
6711
- if (c && !o) {
6679
+ let o = t.ns || this.options.defaultNS || [];
6680
+ const c = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Ci(e, s, n);
6681
+ if (c && !a) {
6712
6682
  const d = e.match(this.interpolator.nestingRegexp);
6713
6683
  if (d && d.length > 0)
6714
6684
  return {
6715
6685
  key: e,
6716
- namespaces: R(a) ? [a] : a
6686
+ namespaces: R(o) ? [o] : o
6717
6687
  };
6718
6688
  const g = e.split(s);
6719
- (s !== n || s === n && this.options.ns.indexOf(g[0]) > -1) && (a = g.shift()), e = g.join(n);
6689
+ (s !== n || s === n && this.options.ns.indexOf(g[0]) > -1) && (o = g.shift()), e = g.join(n);
6720
6690
  }
6721
6691
  return {
6722
6692
  key: e,
6723
- namespaces: R(a) ? [a] : a
6693
+ namespaces: R(o) ? [o] : o
6724
6694
  };
6725
6695
  }
6726
6696
  translate(e, t, s) {
@@ -6728,10 +6698,10 @@ class E1 extends H1 {
6728
6698
  ...t
6729
6699
  }), t || (t = {}), e == null) return "";
6730
6700
  Array.isArray(e) || (e = [String(e)]);
6731
- const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
6701
+ const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, o = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
6732
6702
  key: c,
6733
- namespaces: o
6734
- } = this.extractFromKey(e[e.length - 1], t), d = o[o.length - 1], g = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
6703
+ namespaces: a
6704
+ } = this.extractFromKey(e[e.length - 1], t), d = a[a.length - 1], g = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
6735
6705
  if (g && g.toLowerCase() === "cimode") {
6736
6706
  if (l) {
6737
6707
  const f = t.nsSeparator || this.options.nsSeparator;
@@ -6755,68 +6725,68 @@ class E1 extends H1 {
6755
6725
  }
6756
6726
  const h = this.resolve(e, t);
6757
6727
  let u = h && h.res;
6758
- const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, k = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"], _ = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject, S = !R(u) && typeof u != "boolean" && typeof u != "number";
6759
- if (M && u && S && m.indexOf(k) < 0 && !(R(_) && Array.isArray(u))) {
6728
+ const p = h && h.usedKey || c, k = h && h.exactUsedKey || c, v = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"], O = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject, S = !R(u) && typeof u != "boolean" && typeof u != "number";
6729
+ if (M && u && S && m.indexOf(v) < 0 && !(R(O) && Array.isArray(u))) {
6760
6730
  if (!t.returnObjects && !this.options.returnObjects) {
6761
6731
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
6762
6732
  const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
6763
6733
  ...t,
6764
- ns: o
6734
+ ns: a
6765
6735
  }) : `key '${c} (${this.language})' returned an object instead of string.`;
6766
6736
  return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
6767
6737
  }
6768
- if (a) {
6769
- const f = Array.isArray(u), N = f ? [] : {}, x = f ? w : p;
6770
- for (const v in u)
6771
- if (Object.prototype.hasOwnProperty.call(u, v)) {
6772
- const P = `${x}${a}${v}`;
6773
- N[v] = this.translate(P, {
6738
+ if (o) {
6739
+ const f = Array.isArray(u), N = f ? [] : {}, x = f ? k : p;
6740
+ for (const L in u)
6741
+ if (Object.prototype.hasOwnProperty.call(u, L)) {
6742
+ const P = `${x}${o}${L}`;
6743
+ N[L] = this.translate(P, {
6774
6744
  ...t,
6775
6745
  joinArrays: !1,
6776
- ns: o
6777
- }), N[v] === P && (N[v] = u[v]);
6746
+ ns: a
6747
+ }), N[L] === P && (N[L] = u[L]);
6778
6748
  }
6779
6749
  u = N;
6780
6750
  }
6781
- } else if (M && R(_) && Array.isArray(u))
6782
- u = u.join(_), u && (u = this.extendTranslation(u, e, t, s));
6751
+ } else if (M && R(O) && Array.isArray(u))
6752
+ u = u.join(O), u && (u = this.extendTranslation(u, e, t, s));
6783
6753
  else {
6784
6754
  let f = !1, N = !1;
6785
- const x = t.count !== void 0 && !R(t.count), v = E1.hasDefaultValue(t), P = x ? this.pluralResolver.getSuffix(g, t.count, t) : "", J = t.ordinal && x ? this.pluralResolver.getSuffix(g, t.count, {
6755
+ const x = t.count !== void 0 && !R(t.count), L = E1.hasDefaultValue(t), P = x ? this.pluralResolver.getSuffix(g, t.count, t) : "", J = t.ordinal && x ? this.pluralResolver.getSuffix(g, t.count, {
6786
6756
  ordinal: !1
6787
- }) : "", F = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), H = F && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${P}`] || t[`defaultValue${J}`] || t.defaultValue;
6788
- !this.isValidLookup(u) && v && (f = !0, u = H), this.isValidLookup(u) || (N = !0, u = c);
6789
- const I = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : u, V = v && H !== u && this.options.updateMissing;
6757
+ }) : "", F = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), _ = F && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${P}`] || t[`defaultValue${J}`] || t.defaultValue;
6758
+ !this.isValidLookup(u) && L && (f = !0, u = _), this.isValidLookup(u) || (N = !0, u = c);
6759
+ const H = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : u, V = L && _ !== u && this.options.updateMissing;
6790
6760
  if (N || f || V) {
6791
- if (this.logger.log(V ? "updateKey" : "missingKey", g, d, c, V ? H : u), a) {
6792
- const O = this.resolve(c, {
6761
+ if (this.logger.log(V ? "updateKey" : "missingKey", g, d, c, V ? _ : u), o) {
6762
+ const I = this.resolve(c, {
6793
6763
  ...t,
6794
6764
  keySeparator: !1
6795
6765
  });
6796
- O && O.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.");
6797
- }
6798
- let Z = [];
6799
- const W = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
6800
- if (this.options.saveMissingTo === "fallback" && W && W[0])
6801
- for (let O = 0; O < W.length; O++)
6802
- Z.push(W[O]);
6803
- else this.options.saveMissingTo === "all" ? Z = this.languageUtils.toResolveHierarchy(t.lng || this.language) : Z.push(t.lng || this.language);
6804
- const U = (O, K, G) => {
6805
- const e1 = v && G !== u ? G : I;
6806
- this.options.missingKeyHandler ? this.options.missingKeyHandler(O, d, K, e1, V, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(O, d, K, e1, V, t), this.emit("missingKey", O, d, K, u);
6766
+ I && I.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.");
6767
+ }
6768
+ let T = [];
6769
+ const j = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
6770
+ if (this.options.saveMissingTo === "fallback" && j && j[0])
6771
+ for (let I = 0; I < j.length; I++)
6772
+ T.push(j[I]);
6773
+ else this.options.saveMissingTo === "all" ? T = this.languageUtils.toResolveHierarchy(t.lng || this.language) : T.push(t.lng || this.language);
6774
+ const U = (I, K, W) => {
6775
+ const e1 = L && W !== u ? W : H;
6776
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(I, d, K, e1, V, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(I, d, K, e1, V, t), this.emit("missingKey", I, d, K, u);
6807
6777
  };
6808
- this.options.saveMissing && (this.options.saveMissingPlurals && x ? Z.forEach((O) => {
6809
- const K = this.pluralResolver.getSuffixes(O, t);
6810
- F && t[`defaultValue${this.options.pluralSeparator}zero`] && K.indexOf(`${this.options.pluralSeparator}zero`) < 0 && K.push(`${this.options.pluralSeparator}zero`), K.forEach((G) => {
6811
- U([O], c + G, t[`defaultValue${G}`] || H);
6778
+ this.options.saveMissing && (this.options.saveMissingPlurals && x ? T.forEach((I) => {
6779
+ const K = this.pluralResolver.getSuffixes(I, t);
6780
+ F && t[`defaultValue${this.options.pluralSeparator}zero`] && K.indexOf(`${this.options.pluralSeparator}zero`) < 0 && K.push(`${this.options.pluralSeparator}zero`), K.forEach((W) => {
6781
+ U([I], c + W, t[`defaultValue${W}`] || _);
6812
6782
  });
6813
- }) : U(Z, c, H));
6783
+ }) : U(T, c, _));
6814
6784
  }
6815
6785
  u = this.extendTranslation(u, e, t, h, s), N && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (N || 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));
6816
6786
  }
6817
6787
  return n ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
6818
6788
  }
6819
- extendTranslation(e, t, s, n, a) {
6789
+ extendTranslation(e, t, s, n, o) {
6820
6790
  var c = this;
6821
6791
  if (this.i18nFormat && this.i18nFormat.parse)
6822
6792
  e = this.i18nFormat.parse(e, {
@@ -6848,13 +6818,13 @@ class E1 extends H1 {
6848
6818
  l < p && (s.nest = !1);
6849
6819
  }
6850
6820
  !s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
6851
- for (var u = arguments.length, p = new Array(u), w = 0; w < u; w++)
6852
- p[w] = arguments[w];
6853
- return a && a[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);
6821
+ for (var u = arguments.length, p = new Array(u), k = 0; k < u; k++)
6822
+ p[k] = arguments[k];
6823
+ 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);
6854
6824
  }, s)), s.interpolation && this.interpolator.reset();
6855
6825
  }
6856
- const o = s.postProcess || this.options.postProcess, d = R(o) ? [o] : o;
6857
- return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = we.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
6826
+ const a = s.postProcess || this.options.postProcess, d = R(a) ? [a] : a;
6827
+ return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = me.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
6858
6828
  i18nResolved: {
6859
6829
  ...n,
6860
6830
  usedParams: this.getUsedParamsDetails(s)
@@ -6863,41 +6833,41 @@ class E1 extends H1 {
6863
6833
  } : s, this)), e;
6864
6834
  }
6865
6835
  resolve(e) {
6866
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, a, c, o;
6836
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o, c, a;
6867
6837
  return R(e) && (e = [e]), e.forEach((d) => {
6868
6838
  if (this.isValidLookup(s)) return;
6869
6839
  const g = this.extractFromKey(d, t), l = g.key;
6870
6840
  n = l;
6871
6841
  let h = g.namespaces;
6872
6842
  this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
6873
- const u = t.count !== void 0 && !R(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), w = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", k = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
6843
+ const u = t.count !== void 0 && !R(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), k = 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);
6874
6844
  h.forEach((m) => {
6875
- this.isValidLookup(s) || (o = m, !te[`${k[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (te[`${k[0]}-${m}`] = !0, this.logger.warn(`key "${n}" for languages "${k.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k.forEach((_) => {
6845
+ this.isValidLookup(s) || (a = m, !ee[`${v[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (ee[`${v[0]}-${m}`] = !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((O) => {
6876
6846
  if (this.isValidLookup(s)) return;
6877
- c = _;
6847
+ c = O;
6878
6848
  const M = [l];
6879
6849
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
6880
- this.i18nFormat.addLookupKeys(M, l, _, m, t);
6850
+ this.i18nFormat.addLookupKeys(M, l, O, m, t);
6881
6851
  else {
6882
6852
  let f;
6883
- u && (f = this.pluralResolver.getSuffix(_, t.count, t));
6853
+ u && (f = this.pluralResolver.getSuffix(O, t.count, t));
6884
6854
  const N = `${this.options.pluralSeparator}zero`, x = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
6885
- if (u && (M.push(l + f), t.ordinal && f.indexOf(x) === 0 && M.push(l + f.replace(x, this.options.pluralSeparator)), p && M.push(l + N)), w) {
6886
- const v = `${l}${this.options.contextSeparator}${t.context}`;
6887
- M.push(v), u && (M.push(v + f), t.ordinal && f.indexOf(x) === 0 && M.push(v + f.replace(x, this.options.pluralSeparator)), p && M.push(v + N));
6855
+ if (u && (M.push(l + f), t.ordinal && f.indexOf(x) === 0 && M.push(l + f.replace(x, this.options.pluralSeparator)), p && M.push(l + N)), k) {
6856
+ const L = `${l}${this.options.contextSeparator}${t.context}`;
6857
+ M.push(L), u && (M.push(L + f), t.ordinal && f.indexOf(x) === 0 && M.push(L + f.replace(x, this.options.pluralSeparator)), p && M.push(L + N));
6888
6858
  }
6889
6859
  }
6890
6860
  let S;
6891
6861
  for (; S = M.pop(); )
6892
- this.isValidLookup(s) || (a = S, s = this.getResource(_, m, S, t));
6862
+ this.isValidLookup(s) || (o = S, s = this.getResource(O, m, S, t));
6893
6863
  }));
6894
6864
  });
6895
6865
  }), {
6896
6866
  res: s,
6897
6867
  usedKey: n,
6898
- exactUsedKey: a,
6868
+ exactUsedKey: o,
6899
6869
  usedLng: c,
6900
- usedNS: o
6870
+ usedNS: a
6901
6871
  };
6902
6872
  }
6903
6873
  isValidLookup(e) {
@@ -6918,8 +6888,8 @@ class E1 extends H1 {
6918
6888
  n = {
6919
6889
  ...n
6920
6890
  };
6921
- for (const a of t)
6922
- delete n[a];
6891
+ for (const o of t)
6892
+ delete n[o];
6923
6893
  }
6924
6894
  return n;
6925
6895
  }
@@ -6931,10 +6901,10 @@ class E1 extends H1 {
6931
6901
  return !1;
6932
6902
  }
6933
6903
  }
6934
- const O1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
6935
- class ie {
6904
+ const I1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
6905
+ class te {
6936
6906
  constructor(e) {
6937
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = X.create("languageUtils");
6907
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = q.create("languageUtils");
6938
6908
  }
6939
6909
  getScriptPartFromCode(e) {
6940
6910
  if (e = b1(e), !e || e.indexOf("-") < 0) return null;
@@ -6956,7 +6926,7 @@ class ie {
6956
6926
  }
6957
6927
  const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
6958
6928
  let s = e.split("-");
6959
- 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] = O1(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] = O1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = O1(s[2].toLowerCase()))), s.join("-");
6929
+ 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("-");
6960
6930
  }
6961
6931
  return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
6962
6932
  }
@@ -6974,10 +6944,10 @@ class ie {
6974
6944
  if (t) return;
6975
6945
  const n = this.getLanguagePartFromCode(s);
6976
6946
  if (this.isSupportedCode(n)) return t = n;
6977
- t = this.options.supportedLngs.find((a) => {
6978
- if (a === n) return a;
6979
- if (!(a.indexOf("-") < 0 && n.indexOf("-") < 0) && (a.indexOf("-") > 0 && n.indexOf("-") < 0 && a.substring(0, a.indexOf("-")) === n || a.indexOf(n) === 0 && n.length > 1))
6980
- return a;
6947
+ t = this.options.supportedLngs.find((o) => {
6948
+ if (o === n) return o;
6949
+ if (!(o.indexOf("-") < 0 && n.indexOf("-") < 0) && (o.indexOf("-") > 0 && n.indexOf("-") < 0 && o.substring(0, o.indexOf("-")) === n || o.indexOf(n) === 0 && n.length > 1))
6950
+ return o;
6981
6951
  });
6982
6952
  }), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
6983
6953
  }
@@ -6989,15 +6959,15 @@ class ie {
6989
6959
  return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
6990
6960
  }
6991
6961
  toResolveHierarchy(e, t) {
6992
- const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], a = (c) => {
6962
+ const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], o = (c) => {
6993
6963
  c && (this.isSupportedCode(c) ? n.push(c) : this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`));
6994
6964
  };
6995
- return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(e))) : R(e) && a(this.formatLanguageCode(e)), s.forEach((c) => {
6996
- n.indexOf(c) < 0 && a(this.formatLanguageCode(c));
6965
+ 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) => {
6966
+ n.indexOf(c) < 0 && o(this.formatLanguageCode(c));
6997
6967
  }), n;
6998
6968
  }
6999
6969
  }
7000
- let ki = [{
6970
+ let fi = [{
7001
6971
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
7002
6972
  nr: [1, 2],
7003
6973
  fc: 1
@@ -7089,7 +7059,7 @@ let ki = [{
7089
7059
  lngs: ["he", "iw"],
7090
7060
  nr: [1, 2, 20, 21],
7091
7061
  fc: 22
7092
- }], Li = {
7062
+ }], mi = {
7093
7063
  1: (i) => +(i > 1),
7094
7064
  2: (i) => +(i != 1),
7095
7065
  3: (i) => 0,
@@ -7113,28 +7083,28 @@ let ki = [{
7113
7083
  21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
7114
7084
  22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
7115
7085
  };
7116
- const vi = ["v1", "v2", "v3"], Ni = ["v4"], se = {
7086
+ const wi = ["v1", "v2", "v3"], ki = ["v4"], ie = {
7117
7087
  zero: 0,
7118
7088
  one: 1,
7119
7089
  two: 2,
7120
7090
  few: 3,
7121
7091
  many: 4,
7122
7092
  other: 5
7123
- }, xi = () => {
7093
+ }, Li = () => {
7124
7094
  const i = {};
7125
- return ki.forEach((e) => {
7095
+ return fi.forEach((e) => {
7126
7096
  e.lngs.forEach((t) => {
7127
7097
  i[t] = {
7128
7098
  numbers: e.nr,
7129
- plurals: Li[e.fc]
7099
+ plurals: mi[e.fc]
7130
7100
  };
7131
7101
  });
7132
7102
  }), i;
7133
7103
  };
7134
- class Ri {
7104
+ class vi {
7135
7105
  constructor(e) {
7136
7106
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7137
- this.languageUtils = e, this.options = t, this.logger = X.create("pluralResolver"), (!this.options.compatibilityJSON || Ni.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 = xi(), this.pluralRulesCache = {};
7107
+ this.languageUtils = e, this.options = t, this.logger = q.create("pluralResolver"), (!this.options.compatibilityJSON || ki.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 = Li(), this.pluralRulesCache = {};
7138
7108
  }
7139
7109
  addRule(e, t) {
7140
7110
  this.rules[e] = t;
@@ -7145,12 +7115,12 @@ class Ri {
7145
7115
  getRule(e) {
7146
7116
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7147
7117
  if (this.shouldUseIntlApi()) {
7148
- const s = b1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
7118
+ const s = b1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", o = JSON.stringify({
7149
7119
  cleanedCode: s,
7150
7120
  type: n
7151
7121
  });
7152
- if (a in this.pluralRulesCache)
7153
- return this.pluralRulesCache[a];
7122
+ if (o in this.pluralRulesCache)
7123
+ return this.pluralRulesCache[o];
7154
7124
  let c;
7155
7125
  try {
7156
7126
  c = new Intl.PluralRules(s, {
@@ -7161,7 +7131,7 @@ class Ri {
7161
7131
  const d = this.languageUtils.getLanguagePartFromCode(e);
7162
7132
  c = this.getRule(d, t);
7163
7133
  }
7164
- return this.pluralRulesCache[a] = c, c;
7134
+ return this.pluralRulesCache[o] = c, c;
7165
7135
  }
7166
7136
  return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
7167
7137
  }
@@ -7177,7 +7147,7 @@ class Ri {
7177
7147
  getSuffixes(e) {
7178
7148
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7179
7149
  const s = this.getRule(e, t);
7180
- return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, a) => se[n] - se[a]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
7150
+ return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, o) => ie[n] - ie[o]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
7181
7151
  }
7182
7152
  getSuffix(e, t) {
7183
7153
  let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -7188,21 +7158,21 @@ class Ri {
7188
7158
  const s = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t));
7189
7159
  let n = e.numbers[s];
7190
7160
  this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 && (n === 2 ? n = "plural" : n === 1 && (n = ""));
7191
- const a = () => this.options.prepend && n.toString() ? this.options.prepend + n.toString() : n.toString();
7192
- return this.options.compatibilityJSON === "v1" ? n === 1 ? "" : typeof n == "number" ? `_plural_${n.toString()}` : a() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? a() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
7161
+ const o = () => this.options.prepend && n.toString() ? this.options.prepend + n.toString() : n.toString();
7162
+ 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();
7193
7163
  }
7194
7164
  shouldUseIntlApi() {
7195
- return !vi.includes(this.options.compatibilityJSON);
7165
+ return !wi.includes(this.options.compatibilityJSON);
7196
7166
  }
7197
7167
  }
7198
- const ne = function(i, e, t) {
7199
- let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = di(i, e, t);
7200
- return !a && n && R(t) && (a = Z1(i, t, s), a === void 0 && (a = Z1(e, t, s))), a;
7201
- }, S1 = (i) => i.replace(/\$/g, "$$$$");
7202
- class Mi {
7168
+ const se = function(i, e, t) {
7169
+ let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = li(i, e, t);
7170
+ return !o && n && R(t) && (o = T1(i, t, s), o === void 0 && (o = T1(e, t, s))), o;
7171
+ }, O1 = (i) => i.replace(/\$/g, "$$$$");
7172
+ class Ni {
7203
7173
  constructor() {
7204
7174
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7205
- this.logger = X.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
7175
+ this.logger = q.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
7206
7176
  }
7207
7177
  init() {
7208
7178
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -7213,22 +7183,22 @@ class Mi {
7213
7183
  escape: t,
7214
7184
  escapeValue: s,
7215
7185
  useRawValueToEscape: n,
7216
- prefix: a,
7186
+ prefix: o,
7217
7187
  prefixEscaped: c,
7218
- suffix: o,
7188
+ suffix: a,
7219
7189
  suffixEscaped: d,
7220
7190
  formatSeparator: g,
7221
7191
  unescapeSuffix: l,
7222
7192
  unescapePrefix: h,
7223
7193
  nestingPrefix: u,
7224
7194
  nestingPrefixEscaped: p,
7225
- nestingSuffix: w,
7226
- nestingSuffixEscaped: k,
7195
+ nestingSuffix: k,
7196
+ nestingSuffixEscaped: v,
7227
7197
  nestingOptionsSeparator: m,
7228
- maxReplaces: _,
7198
+ maxReplaces: O,
7229
7199
  alwaysFormat: M
7230
7200
  } = e.interpolation;
7231
- this.escape = t !== void 0 ? t : ui, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = a ? h1(a) : c || "{{", this.suffix = o ? h1(o) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = u ? h1(u) : p || h1("$t("), this.nestingSuffix = w ? h1(w) : k || h1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = _ || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
7201
+ this.escape = t !== void 0 ? t : ci, 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 = k ? h1(k) : v || h1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = O || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
7232
7202
  }
7233
7203
  reset() {
7234
7204
  this.options && this.init(this.options);
@@ -7238,69 +7208,69 @@ class Mi {
7238
7208
  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}`);
7239
7209
  }
7240
7210
  interpolate(e, t, s, n) {
7241
- let a, c, o;
7211
+ let o, c, a;
7242
7212
  const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
7243
7213
  if (p.indexOf(this.formatSeparator) < 0) {
7244
- const _ = ne(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
7245
- return this.alwaysFormat ? this.format(_, void 0, s, {
7214
+ const O = se(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
7215
+ return this.alwaysFormat ? this.format(O, void 0, s, {
7246
7216
  ...n,
7247
7217
  ...t,
7248
7218
  interpolationkey: p
7249
- }) : _;
7219
+ }) : O;
7250
7220
  }
7251
- const w = p.split(this.formatSeparator), k = w.shift().trim(), m = w.join(this.formatSeparator).trim();
7252
- return this.format(ne(t, d, k, this.options.keySeparator, this.options.ignoreJSONStructure), m, s, {
7221
+ const k = p.split(this.formatSeparator), v = k.shift().trim(), m = k.join(this.formatSeparator).trim();
7222
+ return this.format(se(t, d, v, this.options.keySeparator, this.options.ignoreJSONStructure), m, s, {
7253
7223
  ...n,
7254
7224
  ...t,
7255
- interpolationkey: k
7225
+ interpolationkey: v
7256
7226
  });
7257
7227
  };
7258
7228
  this.resetRegExp();
7259
7229
  const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, h = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
7260
7230
  return [{
7261
7231
  regex: this.regexpUnescape,
7262
- safeValue: (p) => S1(p)
7232
+ safeValue: (p) => O1(p)
7263
7233
  }, {
7264
7234
  regex: this.regexp,
7265
- safeValue: (p) => this.escapeValue ? S1(this.escape(p)) : S1(p)
7235
+ safeValue: (p) => this.escapeValue ? O1(this.escape(p)) : O1(p)
7266
7236
  }].forEach((p) => {
7267
- for (o = 0; a = p.regex.exec(e); ) {
7268
- const w = a[1].trim();
7269
- if (c = g(w), c === void 0)
7237
+ for (a = 0; o = p.regex.exec(e); ) {
7238
+ const k = o[1].trim();
7239
+ if (c = g(k), c === void 0)
7270
7240
  if (typeof l == "function") {
7271
- const m = l(e, a, n);
7241
+ const m = l(e, o, n);
7272
7242
  c = R(m) ? m : "";
7273
- } else if (n && Object.prototype.hasOwnProperty.call(n, w))
7243
+ } else if (n && Object.prototype.hasOwnProperty.call(n, k))
7274
7244
  c = "";
7275
7245
  else if (h) {
7276
- c = a[0];
7246
+ c = o[0];
7277
7247
  continue;
7278
7248
  } else
7279
- this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), c = "";
7280
- else !R(c) && !this.useRawValueToEscape && (c = J1(c));
7281
- const k = p.safeValue(c);
7282
- if (e = e.replace(a[0], k), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
7249
+ this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), c = "";
7250
+ else !R(c) && !this.useRawValueToEscape && (c = z1(c));
7251
+ const v = p.safeValue(c);
7252
+ if (e = e.replace(o[0], v), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= o[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
7283
7253
  break;
7284
7254
  }
7285
7255
  }), e;
7286
7256
  }
7287
7257
  nest(e, t) {
7288
- let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, a, c;
7289
- const o = (d, g) => {
7258
+ let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, o, c;
7259
+ const a = (d, g) => {
7290
7260
  const l = this.nestingOptionsSeparator;
7291
7261
  if (d.indexOf(l) < 0) return d;
7292
7262
  const h = d.split(new RegExp(`${l}[ ]*{`));
7293
7263
  let u = `{${h[1]}`;
7294
7264
  d = h[0], u = this.interpolate(u, c);
7295
- const p = u.match(/'/g), w = u.match(/"/g);
7296
- (p && p.length % 2 === 0 && !w || w.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
7265
+ const p = u.match(/'/g), k = u.match(/"/g);
7266
+ (p && p.length % 2 === 0 && !k || k.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
7297
7267
  try {
7298
7268
  c = JSON.parse(u), g && (c = {
7299
7269
  ...g,
7300
7270
  ...c
7301
7271
  });
7302
- } catch (k) {
7303
- return this.logger.warn(`failed parsing options string in nesting for key ${d}`, k), `${d}${l}${u}`;
7272
+ } catch (v) {
7273
+ return this.logger.warn(`failed parsing options string in nesting for key ${d}`, v), `${d}${l}${u}`;
7304
7274
  }
7305
7275
  return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, d;
7306
7276
  };
@@ -7314,16 +7284,16 @@ class Mi {
7314
7284
  const l = n[1].split(this.formatSeparator).map((h) => h.trim());
7315
7285
  n[1] = l.shift(), d = l, g = !0;
7316
7286
  }
7317
- if (a = t(o.call(this, n[1].trim(), c), c), a && n[0] === e && !R(a)) return a;
7318
- R(a) || (a = J1(a)), a || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), a = ""), g && (a = d.reduce((l, h) => this.format(l, h, s.lng, {
7287
+ if (o = t(a.call(this, n[1].trim(), c), c), o && n[0] === e && !R(o)) return o;
7288
+ R(o) || (o = z1(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, {
7319
7289
  ...s,
7320
7290
  interpolationkey: n[1].trim()
7321
- }), a.trim())), e = e.replace(n[0], a), this.regexp.lastIndex = 0;
7291
+ }), o.trim())), e = e.replace(n[0], o), this.regexp.lastIndex = 0;
7322
7292
  }
7323
7293
  return e;
7324
7294
  }
7325
7295
  }
7326
- const bi = (i) => {
7296
+ const xi = (i) => {
7327
7297
  let e = i.toLowerCase().trim();
7328
7298
  const t = {};
7329
7299
  if (i.indexOf("(") > -1) {
@@ -7332,7 +7302,7 @@ const bi = (i) => {
7332
7302
  const n = s[1].substring(0, s[1].length - 1);
7333
7303
  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) => {
7334
7304
  if (c) {
7335
- const [o, ...d] = c.split(":"), g = d.join(":").trim().replace(/^'+|'+$/g, ""), l = o.trim();
7305
+ const [a, ...d] = c.split(":"), g = d.join(":").trim().replace(/^'+|'+$/g, ""), l = a.trim();
7336
7306
  t[l] || (t[l] = g), g === "false" && (t[l] = !1), g === "true" && (t[l] = !0), isNaN(g) || (t[l] = parseInt(g, 10));
7337
7307
  }
7338
7308
  });
@@ -7344,50 +7314,50 @@ const bi = (i) => {
7344
7314
  }, c1 = (i) => {
7345
7315
  const e = {};
7346
7316
  return (t, s, n) => {
7347
- let a = n;
7348
- n && n.interpolationkey && n.formatParams && n.formatParams[n.interpolationkey] && n[n.interpolationkey] && (a = {
7349
- ...a,
7317
+ let o = n;
7318
+ n && n.interpolationkey && n.formatParams && n.formatParams[n.interpolationkey] && n[n.interpolationkey] && (o = {
7319
+ ...o,
7350
7320
  [n.interpolationkey]: void 0
7351
7321
  });
7352
- const c = s + JSON.stringify(a);
7353
- let o = e[c];
7354
- return o || (o = i(b1(s), n), e[c] = o), o(t);
7322
+ const c = s + JSON.stringify(o);
7323
+ let a = e[c];
7324
+ return a || (a = i(b1(s), n), e[c] = a), a(t);
7355
7325
  };
7356
7326
  };
7357
- class yi {
7327
+ class Ri {
7358
7328
  constructor() {
7359
7329
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7360
- this.logger = X.create("formatter"), this.options = e, this.formats = {
7330
+ this.logger = q.create("formatter"), this.options = e, this.formats = {
7361
7331
  number: c1((t, s) => {
7362
7332
  const n = new Intl.NumberFormat(t, {
7363
7333
  ...s
7364
7334
  });
7365
- return (a) => n.format(a);
7335
+ return (o) => n.format(o);
7366
7336
  }),
7367
7337
  currency: c1((t, s) => {
7368
7338
  const n = new Intl.NumberFormat(t, {
7369
7339
  ...s,
7370
7340
  style: "currency"
7371
7341
  });
7372
- return (a) => n.format(a);
7342
+ return (o) => n.format(o);
7373
7343
  }),
7374
7344
  datetime: c1((t, s) => {
7375
7345
  const n = new Intl.DateTimeFormat(t, {
7376
7346
  ...s
7377
7347
  });
7378
- return (a) => n.format(a);
7348
+ return (o) => n.format(o);
7379
7349
  }),
7380
7350
  relativetime: c1((t, s) => {
7381
7351
  const n = new Intl.RelativeTimeFormat(t, {
7382
7352
  ...s
7383
7353
  });
7384
- return (a) => n.format(a, s.range || "day");
7354
+ return (o) => n.format(o, s.range || "day");
7385
7355
  }),
7386
7356
  list: c1((t, s) => {
7387
7357
  const n = new Intl.ListFormat(t, {
7388
7358
  ...s
7389
7359
  });
7390
- return (a) => n.format(a);
7360
+ return (o) => n.format(o);
7391
7361
  })
7392
7362
  }, this.init(e);
7393
7363
  }
@@ -7405,21 +7375,21 @@ class yi {
7405
7375
  }
7406
7376
  format(e, t, s) {
7407
7377
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
7408
- const a = t.split(this.formatSeparator);
7409
- if (a.length > 1 && a[0].indexOf("(") > 1 && a[0].indexOf(")") < 0 && a.find((o) => o.indexOf(")") > -1)) {
7410
- const o = a.findIndex((d) => d.indexOf(")") > -1);
7411
- a[0] = [a[0], ...a.splice(1, o)].join(this.formatSeparator);
7378
+ const o = t.split(this.formatSeparator);
7379
+ if (o.length > 1 && o[0].indexOf("(") > 1 && o[0].indexOf(")") < 0 && o.find((a) => a.indexOf(")") > -1)) {
7380
+ const a = o.findIndex((d) => d.indexOf(")") > -1);
7381
+ o[0] = [o[0], ...o.splice(1, a)].join(this.formatSeparator);
7412
7382
  }
7413
- return a.reduce((o, d) => {
7383
+ return o.reduce((a, d) => {
7414
7384
  const {
7415
7385
  formatName: g,
7416
7386
  formatOptions: l
7417
- } = bi(d);
7387
+ } = xi(d);
7418
7388
  if (this.formats[g]) {
7419
- let h = o;
7389
+ let h = a;
7420
7390
  try {
7421
7391
  const u = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = u.locale || u.lng || n.locale || n.lng || s;
7422
- h = this.formats[g](o, p, {
7392
+ h = this.formats[g](a, p, {
7423
7393
  ...l,
7424
7394
  ...n,
7425
7395
  ...u
@@ -7430,57 +7400,57 @@ class yi {
7430
7400
  return h;
7431
7401
  } else
7432
7402
  this.logger.warn(`there was no format function for ${g}`);
7433
- return o;
7403
+ return a;
7434
7404
  }, e);
7435
7405
  }
7436
7406
  }
7437
- const Ei = (i, e) => {
7407
+ const Mi = (i, e) => {
7438
7408
  i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
7439
7409
  };
7440
- class _i extends H1 {
7410
+ class bi extends _1 {
7441
7411
  constructor(e, t, s) {
7442
7412
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
7443
- super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = X.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);
7413
+ super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = q.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = n.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = n.maxRetries >= 0 ? n.maxRetries : 5, this.retryTimeout = n.retryTimeout >= 1 ? n.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, n.backend, n);
7444
7414
  }
7445
7415
  queueLoad(e, t, s, n) {
7446
- const a = {}, c = {}, o = {}, d = {};
7416
+ const o = {}, c = {}, a = {}, d = {};
7447
7417
  return e.forEach((g) => {
7448
7418
  let l = !0;
7449
7419
  t.forEach((h) => {
7450
7420
  const u = `${g}|${h}`;
7451
- !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), a[u] === void 0 && (a[u] = !0), d[h] === void 0 && (d[h] = !0)));
7452
- }), l || (o[g] = !0);
7453
- }), (Object.keys(a).length || Object.keys(c).length) && this.queue.push({
7421
+ !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)));
7422
+ }), l || (a[g] = !0);
7423
+ }), (Object.keys(o).length || Object.keys(c).length) && this.queue.push({
7454
7424
  pending: c,
7455
7425
  pendingCount: Object.keys(c).length,
7456
7426
  loaded: {},
7457
7427
  errors: [],
7458
7428
  callback: n
7459
7429
  }), {
7460
- toLoad: Object.keys(a),
7430
+ toLoad: Object.keys(o),
7461
7431
  pending: Object.keys(c),
7462
- toLoadLanguages: Object.keys(o),
7432
+ toLoadLanguages: Object.keys(a),
7463
7433
  toLoadNamespaces: Object.keys(d)
7464
7434
  };
7465
7435
  }
7466
7436
  loaded(e, t, s) {
7467
- const n = e.split("|"), a = n[0], c = n[1];
7468
- t && this.emit("failedLoading", a, c, t), !t && s && this.store.addResourceBundle(a, c, s, void 0, void 0, {
7437
+ const n = e.split("|"), o = n[0], c = n[1];
7438
+ t && this.emit("failedLoading", o, c, t), !t && s && this.store.addResourceBundle(o, c, s, void 0, void 0, {
7469
7439
  skipCopy: !0
7470
7440
  }), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
7471
- const o = {};
7441
+ const a = {};
7472
7442
  this.queue.forEach((d) => {
7473
- ci(d.loaded, [a], c), Ei(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
7474
- o[g] || (o[g] = {});
7443
+ ai(d.loaded, [o], c), Mi(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
7444
+ a[g] || (a[g] = {});
7475
7445
  const l = d.loaded[g];
7476
7446
  l.length && l.forEach((h) => {
7477
- o[g][h] === void 0 && (o[g][h] = !0);
7447
+ a[g][h] === void 0 && (a[g][h] = !0);
7478
7448
  });
7479
7449
  }), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
7480
- }), this.emit("loaded", o), this.queue = this.queue.filter((d) => !d.done);
7450
+ }), this.emit("loaded", a), this.queue = this.queue.filter((d) => !d.done);
7481
7451
  }
7482
7452
  read(e, t, s) {
7483
- let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, c = arguments.length > 5 ? arguments[5] : void 0;
7453
+ 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;
7484
7454
  if (!e.length) return c(null, {});
7485
7455
  if (this.readingCalls >= this.maxParallelReads) {
7486
7456
  this.waitingReads.push({
@@ -7488,21 +7458,21 @@ class _i extends H1 {
7488
7458
  ns: t,
7489
7459
  fcName: s,
7490
7460
  tried: n,
7491
- wait: a,
7461
+ wait: o,
7492
7462
  callback: c
7493
7463
  });
7494
7464
  return;
7495
7465
  }
7496
7466
  this.readingCalls++;
7497
- const o = (g, l) => {
7467
+ const a = (g, l) => {
7498
7468
  if (this.readingCalls--, this.waitingReads.length > 0) {
7499
7469
  const h = this.waitingReads.shift();
7500
7470
  this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
7501
7471
  }
7502
7472
  if (g && l && n < this.maxRetries) {
7503
7473
  setTimeout(() => {
7504
- this.read.call(this, e, t, s, n + 1, a * 2, c);
7505
- }, a);
7474
+ this.read.call(this, e, t, s, n + 1, o * 2, c);
7475
+ }, o);
7506
7476
  return;
7507
7477
  }
7508
7478
  c(g, l);
@@ -7510,23 +7480,23 @@ class _i extends H1 {
7510
7480
  if (d.length === 2) {
7511
7481
  try {
7512
7482
  const g = d(e, t);
7513
- g && typeof g.then == "function" ? g.then((l) => o(null, l)).catch(o) : o(null, g);
7483
+ g && typeof g.then == "function" ? g.then((l) => a(null, l)).catch(a) : a(null, g);
7514
7484
  } catch (g) {
7515
- o(g);
7485
+ a(g);
7516
7486
  }
7517
7487
  return;
7518
7488
  }
7519
- return d(e, t, o);
7489
+ return d(e, t, a);
7520
7490
  }
7521
7491
  prepareLoading(e, t) {
7522
7492
  let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = arguments.length > 3 ? arguments[3] : void 0;
7523
7493
  if (!this.backend)
7524
7494
  return this.logger.warn("No backend was added via i18next.use. Will not load resources."), n && n();
7525
7495
  R(e) && (e = this.languageUtils.toResolveHierarchy(e)), R(t) && (t = [t]);
7526
- const a = this.queueLoad(e, t, s, n);
7527
- if (!a.toLoad.length)
7528
- return a.pending.length || n(), null;
7529
- a.toLoad.forEach((c) => {
7496
+ const o = this.queueLoad(e, t, s, n);
7497
+ if (!o.toLoad.length)
7498
+ return o.pending.length || n(), null;
7499
+ o.toLoad.forEach((c) => {
7530
7500
  this.loadOne(c);
7531
7501
  });
7532
7502
  }
@@ -7540,13 +7510,13 @@ class _i extends H1 {
7540
7510
  }
7541
7511
  loadOne(e) {
7542
7512
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
7543
- const s = e.split("|"), n = s[0], a = s[1];
7544
- this.read(n, a, "read", void 0, void 0, (c, o) => {
7545
- c && this.logger.warn(`${t}loading namespace ${a} for language ${n} failed`, c), !c && o && this.logger.log(`${t}loaded namespace ${a} for language ${n}`, o), this.loaded(e, c, o);
7513
+ const s = e.split("|"), n = s[0], o = s[1];
7514
+ this.read(n, o, "read", void 0, void 0, (c, a) => {
7515
+ 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);
7546
7516
  });
7547
7517
  }
7548
- saveMissing(e, t, s, n, a) {
7549
- let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, o = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
7518
+ saveMissing(e, t, s, n, o) {
7519
+ let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, a = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
7550
7520
  };
7551
7521
  if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
7552
7522
  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!!!");
@@ -7556,23 +7526,23 @@ class _i extends H1 {
7556
7526
  if (this.backend && this.backend.create) {
7557
7527
  const d = {
7558
7528
  ...c,
7559
- isUpdate: a
7529
+ isUpdate: o
7560
7530
  }, g = this.backend.create.bind(this.backend);
7561
7531
  if (g.length < 6)
7562
7532
  try {
7563
7533
  let l;
7564
- g.length === 5 ? l = g(e, t, s, n, d) : l = g(e, t, s, n), l && typeof l.then == "function" ? l.then((h) => o(null, h)).catch(o) : o(null, l);
7534
+ 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);
7565
7535
  } catch (l) {
7566
- o(l);
7536
+ a(l);
7567
7537
  }
7568
7538
  else
7569
- g(e, t, s, n, o, d);
7539
+ g(e, t, s, n, a, d);
7570
7540
  }
7571
7541
  !e || !e[0] || this.store.addResource(e[0], t, s, n);
7572
7542
  }
7573
7543
  }
7574
7544
  }
7575
- const re = () => ({
7545
+ const ne = () => ({
7576
7546
  debug: !1,
7577
7547
  initImmediate: !0,
7578
7548
  ns: ["translation"],
@@ -7628,18 +7598,18 @@ const re = () => ({
7628
7598
  maxReplaces: 1e3,
7629
7599
  skipOnVariables: !0
7630
7600
  }
7631
- }), oe = (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 = () => {
7632
- }, Hi = (i) => {
7601
+ }), re = (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 = () => {
7602
+ }, yi = (i) => {
7633
7603
  Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
7634
7604
  typeof i[t] == "function" && (i[t] = i[t].bind(i));
7635
7605
  });
7636
7606
  };
7637
- class w1 extends H1 {
7607
+ class w1 extends _1 {
7638
7608
  constructor() {
7639
7609
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
7640
- if (super(), this.options = oe(e), this.services = {}, this.logger = X, this.modules = {
7610
+ if (super(), this.options = re(e), this.services = {}, this.logger = q, this.modules = {
7641
7611
  external: []
7642
- }, Hi(this), t && !this.isInitialized && !e.isClone) {
7612
+ }, yi(this), t && !this.isInitialized && !e.isClone) {
7643
7613
  if (!this.options.initImmediate)
7644
7614
  return this.init(e, t), this;
7645
7615
  setTimeout(() => {
@@ -7651,37 +7621,37 @@ class w1 extends H1 {
7651
7621
  var e = this;
7652
7622
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
7653
7623
  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]));
7654
- const n = re();
7624
+ const n = ne();
7655
7625
  this.options = {
7656
7626
  ...n,
7657
7627
  ...this.options,
7658
- ...oe(t)
7628
+ ...re(t)
7659
7629
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
7660
7630
  ...n.interpolation,
7661
7631
  ...this.options.interpolation
7662
7632
  }), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
7663
- const a = (l) => l ? typeof l == "function" ? new l() : l : null;
7633
+ const o = (l) => l ? typeof l == "function" ? new l() : l : null;
7664
7634
  if (!this.options.isClone) {
7665
- this.modules.logger ? X.init(a(this.modules.logger), this.options) : X.init(null, this.options);
7635
+ this.modules.logger ? q.init(o(this.modules.logger), this.options) : q.init(null, this.options);
7666
7636
  let l;
7667
- this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = yi);
7668
- const h = new ie(this.options);
7669
- this.store = new ee(this.options.resources, this.options);
7637
+ this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = Ri);
7638
+ const h = new te(this.options);
7639
+ this.store = new X1(this.options.resources, this.options);
7670
7640
  const u = this.services;
7671
- u.logger = X, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new Ri(h, {
7641
+ u.logger = q, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new vi(h, {
7672
7642
  prepend: this.options.pluralSeparator,
7673
7643
  compatibilityJSON: this.options.compatibilityJSON,
7674
7644
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
7675
- }), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = a(l), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new Mi(this.options), u.utils = {
7645
+ }), 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 Ni(this.options), u.utils = {
7676
7646
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
7677
- }, u.backendConnector = new _i(a(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
7678
- for (var w = arguments.length, k = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
7679
- k[m - 1] = arguments[m];
7680
- e.emit(p, ...k);
7681
- }), this.modules.languageDetector && (u.languageDetector = a(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = a(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new E1(this.services, this.options), this.translator.on("*", function(p) {
7682
- for (var w = arguments.length, k = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
7683
- k[m - 1] = arguments[m];
7684
- e.emit(p, ...k);
7647
+ }, u.backendConnector = new bi(o(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
7648
+ for (var k = arguments.length, v = new Array(k > 1 ? k - 1 : 0), m = 1; m < k; m++)
7649
+ v[m - 1] = arguments[m];
7650
+ e.emit(p, ...v);
7651
+ }), 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 E1(this.services, this.options), this.translator.on("*", function(p) {
7652
+ for (var k = arguments.length, v = new Array(k > 1 ? k - 1 : 0), m = 1; m < k; m++)
7653
+ v[m - 1] = arguments[m];
7654
+ e.emit(p, ...v);
7685
7655
  }), this.modules.external.forEach((p) => {
7686
7656
  p.init && p.init(this);
7687
7657
  });
@@ -7713,28 +7683,28 @@ class w1 extends H1 {
7713
7683
  const n = R(e) ? e : this.language;
7714
7684
  if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
7715
7685
  if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
7716
- const a = [], c = (o) => {
7717
- if (!o || o === "cimode") return;
7718
- this.services.languageUtils.toResolveHierarchy(o).forEach((g) => {
7719
- g !== "cimode" && a.indexOf(g) < 0 && a.push(g);
7686
+ const o = [], c = (a) => {
7687
+ if (!a || a === "cimode") return;
7688
+ this.services.languageUtils.toResolveHierarchy(a).forEach((g) => {
7689
+ g !== "cimode" && o.indexOf(g) < 0 && o.push(g);
7720
7690
  });
7721
7691
  };
7722
- n ? c(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => c(d)), this.options.preload && this.options.preload.forEach((o) => c(o)), this.services.backendConnector.load(a, this.options.ns, (o) => {
7723
- !o && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(o);
7692
+ 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) => {
7693
+ !a && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(a);
7724
7694
  });
7725
7695
  } else
7726
7696
  s(null);
7727
7697
  }
7728
7698
  reloadResources(e, t, s) {
7729
7699
  const n = C1();
7730
- return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = x1), this.services.backendConnector.reload(e, t, (a) => {
7731
- n.resolve(), s(a);
7700
+ return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = x1), this.services.backendConnector.reload(e, t, (o) => {
7701
+ n.resolve(), s(o);
7732
7702
  }), n;
7733
7703
  }
7734
7704
  use(e) {
7735
7705
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
7736
7706
  if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
7737
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && we.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
7707
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && me.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
7738
7708
  }
7739
7709
  setResolvedLanguage(e) {
7740
7710
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
@@ -7751,41 +7721,41 @@ class w1 extends H1 {
7751
7721
  this.isLanguageChangingTo = e;
7752
7722
  const n = C1();
7753
7723
  this.emit("languageChanging", e);
7754
- const a = (d) => {
7724
+ const o = (d) => {
7755
7725
  this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
7756
7726
  }, c = (d, g) => {
7757
- g ? (a(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() {
7727
+ 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() {
7758
7728
  return s.t(...arguments);
7759
7729
  }), t && t(d, function() {
7760
7730
  return s.t(...arguments);
7761
7731
  });
7762
- }, o = (d) => {
7732
+ }, a = (d) => {
7763
7733
  !e && !d && this.services.languageDetector && (d = []);
7764
7734
  const g = R(d) ? d : this.services.languageUtils.getBestMatchFromCodes(d);
7765
- g && (this.language || a(g), this.translator.language || this.translator.changeLanguage(g), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(g)), this.loadResources(g, (l) => {
7735
+ 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) => {
7766
7736
  c(l, g);
7767
7737
  });
7768
7738
  };
7769
- return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), n;
7739
+ 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;
7770
7740
  }
7771
7741
  getFixedT(e, t, s) {
7772
7742
  var n = this;
7773
- const a = function(c, o) {
7743
+ const o = function(c, a) {
7774
7744
  let d;
7775
- if (typeof o != "object") {
7745
+ if (typeof a != "object") {
7776
7746
  for (var g = arguments.length, l = new Array(g > 2 ? g - 2 : 0), h = 2; h < g; h++)
7777
7747
  l[h - 2] = arguments[h];
7778
- d = n.options.overloadTranslationOptionHandler([c, o].concat(l));
7748
+ d = n.options.overloadTranslationOptionHandler([c, a].concat(l));
7779
7749
  } else
7780
7750
  d = {
7781
- ...o
7751
+ ...a
7782
7752
  };
7783
- d.lng = d.lng || a.lng, d.lngs = d.lngs || a.lngs, d.ns = d.ns || a.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || s || a.keyPrefix);
7753
+ 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);
7784
7754
  const u = n.options.keySeparator || ".";
7785
7755
  let p;
7786
- return d.keyPrefix && Array.isArray(c) ? p = c.map((w) => `${d.keyPrefix}${u}${w}`) : p = d.keyPrefix ? `${d.keyPrefix}${u}${c}` : c, n.t(p, d);
7756
+ return d.keyPrefix && Array.isArray(c) ? p = c.map((k) => `${d.keyPrefix}${u}${k}`) : p = d.keyPrefix ? `${d.keyPrefix}${u}${c}` : c, n.t(p, d);
7787
7757
  };
7788
- return R(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = s, a;
7758
+ return R(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = s, o;
7789
7759
  }
7790
7760
  t() {
7791
7761
  return this.translator && this.translator.translate(...arguments);
@@ -7802,17 +7772,17 @@ class w1 extends H1 {
7802
7772
  return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
7803
7773
  if (!this.languages || !this.languages.length)
7804
7774
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
7805
- const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
7775
+ const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1, o = this.languages[this.languages.length - 1];
7806
7776
  if (s.toLowerCase() === "cimode") return !0;
7807
- const c = (o, d) => {
7808
- const g = this.services.backendConnector.state[`${o}|${d}`];
7777
+ const c = (a, d) => {
7778
+ const g = this.services.backendConnector.state[`${a}|${d}`];
7809
7779
  return g === -1 || g === 0 || g === 2;
7810
7780
  };
7811
7781
  if (t.precheck) {
7812
- const o = t.precheck(this, c);
7813
- if (o !== void 0) return o;
7782
+ const a = t.precheck(this, c);
7783
+ if (a !== void 0) return a;
7814
7784
  }
7815
- return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!n || c(a, e)));
7785
+ return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!n || c(o, e)));
7816
7786
  }
7817
7787
  loadNamespaces(e, t) {
7818
7788
  const s = C1();
@@ -7825,14 +7795,14 @@ class w1 extends H1 {
7825
7795
  loadLanguages(e, t) {
7826
7796
  const s = C1();
7827
7797
  R(e) && (e = [e]);
7828
- const n = this.options.preload || [], a = e.filter((c) => n.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
7829
- return a.length ? (this.options.preload = n.concat(a), this.loadResources((c) => {
7798
+ const n = this.options.preload || [], o = e.filter((c) => n.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
7799
+ return o.length ? (this.options.preload = n.concat(o), this.loadResources((c) => {
7830
7800
  s.resolve(), t && t(c);
7831
7801
  }), s) : (t && t(), Promise.resolve());
7832
7802
  }
7833
7803
  dir(e) {
7834
7804
  if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
7835
- 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 ie(re());
7805
+ 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 te(ne());
7836
7806
  return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
7837
7807
  }
7838
7808
  static createInstance() {
@@ -7847,20 +7817,20 @@ class w1 extends H1 {
7847
7817
  ...this.options,
7848
7818
  ...e,
7849
7819
  isClone: !0
7850
- }, a = new w1(n);
7851
- return (e.debug !== void 0 || e.prefix !== void 0) && (a.logger = a.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
7852
- a[o] = this[o];
7853
- }), a.services = {
7820
+ }, o = new w1(n);
7821
+ return (e.debug !== void 0 || e.prefix !== void 0) && (o.logger = o.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
7822
+ o[a] = this[a];
7823
+ }), o.services = {
7854
7824
  ...this.services
7855
- }, a.services.utils = {
7856
- hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
7857
- }, s && (a.store = new ee(this.store.data, n), a.services.resourceStore = a.store), a.translator = new E1(a.services, n), a.translator.on("*", function(o) {
7825
+ }, o.services.utils = {
7826
+ hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
7827
+ }, s && (o.store = new X1(this.store.data, n), o.services.resourceStore = o.store), o.translator = new E1(o.services, n), o.translator.on("*", function(a) {
7858
7828
  for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), l = 1; l < d; l++)
7859
7829
  g[l - 1] = arguments[l];
7860
- a.emit(o, ...g);
7861
- }), a.init(n, t), a.translator.options = n, a.translator.backendConnector.services.utils = {
7862
- hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
7863
- }, a;
7830
+ o.emit(a, ...g);
7831
+ }), o.init(n, t), o.translator.options = n, o.translator.backendConnector.services.utils = {
7832
+ hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
7833
+ }, o;
7864
7834
  }
7865
7835
  toJSON() {
7866
7836
  return {
@@ -7888,79 +7858,79 @@ Y.setDefaultNamespace;
7888
7858
  Y.hasLoadedNamespace;
7889
7859
  Y.loadNamespaces;
7890
7860
  Y.loadLanguages;
7891
- const Ii = "Archived", Oi = "Deleted", Si = {
7861
+ const Ei = "Archived", _i = "Deleted", Hi = {
7862
+ archived: Ei,
7863
+ deleted: _i
7864
+ }, Ii = "Заархивирован", Oi = "Удалён", Si = {
7892
7865
  archived: Ii,
7893
7866
  deleted: Oi
7894
- }, Vi = "Заархивирован", Ai = "Удалён", Ti = {
7895
- archived: Vi,
7896
- deleted: Ai
7897
7867
  };
7898
- Y.use(ii).init({
7868
+ Y.use(X5).init({
7899
7869
  defaultNS: "common",
7900
7870
  lng: "en",
7901
7871
  resources: {
7902
7872
  en: {
7903
- common: Si
7873
+ common: Hi
7904
7874
  },
7905
7875
  ru: {
7906
- common: Ti
7876
+ common: Si
7907
7877
  }
7908
7878
  }
7909
7879
  });
7910
- const Ki = k1(
7880
+ const ji = k1(
7911
7881
  ({
7912
7882
  fetchParams: i,
7913
7883
  mode: e = void 0,
7914
7884
  placeholder: t,
7915
7885
  disabled: s,
7916
7886
  value: n,
7917
- onChange: a,
7887
+ onChange: o,
7918
7888
  onError: c,
7919
- allowEmpty: o = !1,
7889
+ allowEmpty: a = !1,
7920
7890
  showAvatar: d = !1,
7921
7891
  clearable: g,
7922
7892
  required: l,
7923
7893
  error: h
7924
7894
  }, u) => {
7925
- const { axiosPeople: p, locale: w } = r1(_e), { t: k } = ai("common", { lng: w }), [m, _] = T([]), [M, S] = T(!0), f = q(m), N = q(null);
7926
- if (_1(u, () => N.current), !p)
7895
+ const { axiosPeople: p, locale: k } = r1(Ee), { t: v } = ni("common", { lng: k }), [m, O] = B([]), [M, S] = B(!0), f = X(m), N = X(null);
7896
+ if (oe(u, () => N.current), !p)
7927
7897
  throw new Error(
7928
7898
  `UserSelect requires "axiosPeople" to fetch users.
7929
7899
  Please provide it via SNMTUiContext.`
7930
7900
  );
7931
7901
  const x = $(
7932
- (H) => {
7933
- let D = "";
7934
- return H.deletedAt && (D += `[${k("deleted")}] `), H.status === R1.ARCHIVED && (D += `[${k("archived")}] `), `${D}${H.firstName} ${H.lastName}`;
7902
+ (_) => {
7903
+ let Z = "";
7904
+ return _.deletedAt && (Z += `[${v("deleted")}] `), _.status === R1.ARCHIVED && (Z += `[${v("archived")}] `), `${Z}${_.firstName} ${_.lastName}`;
7935
7905
  },
7936
- [k]
7937
- ), v = $(
7906
+ [v]
7907
+ ), L = $(
7938
7908
  async ({
7939
- offset: H,
7940
- limit: D,
7941
- search: I
7909
+ offset: _,
7910
+ limit: Z,
7911
+ search: H
7942
7912
  }) => {
7943
- var V, Z, W;
7913
+ var V, T, j;
7944
7914
  try {
7945
7915
  const U = await p.post("v1/users/search", {
7946
- offset: H,
7947
- limit: D,
7948
- search: I,
7916
+ offset: _,
7917
+ limit: Z,
7918
+ search: H,
7949
7919
  ...i,
7950
7920
  includeCount: !0
7951
- }), { data: O, metadata: K } = U.data;
7921
+ }), { data: I, metadata: K } = U.data;
7952
7922
  return {
7953
- options: O.map((G) => ({
7954
- value: G.id,
7955
- label: x(G),
7956
- image: d ? G.avatarUrl : void 0
7923
+ options: I.map((W) => ({
7924
+ value: W.id,
7925
+ label: x(W),
7926
+ image: d ? W.avatarUrl : void 0
7957
7927
  })),
7958
7928
  count: K.count
7959
7929
  };
7960
7930
  } catch (U) {
7961
7931
  return c && c({
7962
7932
  status: ((V = U.response) == null ? void 0 : V.status) ?? 500,
7963
- message: ((W = (Z = U.response) == null ? void 0 : Z.data) == null ? void 0 : W.message) ?? "Error while fetching options"
7933
+ message: ((j = (T = U.response) == null ? void 0 : T.data) == null ? void 0 : j.message) ?? "Error while fetching options"
7964
7934
  }), {
7965
7935
  options: [],
7966
7936
  count: 0
@@ -7969,71 +7939,71 @@ const Ki = k1(
7969
7939
  },
7970
7940
  [p, i, x, d, c]
7971
7941
  ), P = $(
7972
- async (H) => {
7973
- var D, I, V;
7942
+ async (_) => {
7943
+ var Z, H, V;
7974
7944
  try {
7975
- const Z = H.filter(
7976
- (O) => !f.current.some((K) => K.value === O)
7945
+ const T = _.filter(
7946
+ (I) => !f.current.some((K) => K.value === I)
7977
7947
  );
7978
- let W = [];
7979
- Z.length && (W = (await p.post("v1/users/search", {
7948
+ let j = [];
7949
+ T.length && (j = (await p.post("v1/users/search", {
7980
7950
  filters: {
7981
- id: Z,
7951
+ id: T,
7982
7952
  status: [R1.ACTIVE, R1.ARCHIVED]
7983
7953
  }
7984
7954
  })).data.data);
7985
- const U = W.map((O) => ({
7986
- value: O.id,
7987
- label: x(O),
7988
- image: d ? O.avatarUrl : void 0
7955
+ const U = j.map((I) => ({
7956
+ value: I.id,
7957
+ label: x(I),
7958
+ image: d ? I.avatarUrl : void 0
7989
7959
  }));
7990
7960
  return [...f.current, ...U];
7991
- } catch (Z) {
7961
+ } catch (T) {
7992
7962
  return c && c({
7993
- status: ((D = Z.response) == null ? void 0 : D.status) ?? 500,
7994
- message: ((V = (I = Z.response) == null ? void 0 : I.data) == null ? void 0 : V.message) ?? "Error while fetching selected items"
7963
+ status: ((Z = T.response) == null ? void 0 : Z.status) ?? 500,
7964
+ message: ((V = (H = T.response) == null ? void 0 : H.data) == null ? void 0 : V.message) ?? "Error while fetching selected items"
7995
7965
  }), [];
7996
7966
  }
7997
7967
  },
7998
7968
  [p, x, c, d]
7999
7969
  );
8000
- j(() => {
7970
+ G(() => {
8001
7971
  f.current = m;
8002
- }, [m]), j(() => {
8003
- var H;
8004
- (H = N.current) == null || H.refetchOptions();
8005
- }, [i]), j(() => {
7972
+ }, [m]), G(() => {
7973
+ var _;
7974
+ (_ = N.current) == null || _.refetchOptions();
7975
+ }, [i]), G(() => {
8006
7976
  if (!n) {
8007
7977
  S(!1);
8008
7978
  return;
8009
7979
  }
8010
7980
  (async () => {
8011
- const D = Array.isArray(n) ? n : [n], I = await P(D);
8012
- _(I), S(!1);
7981
+ const Z = Array.isArray(n) ? n : [n], H = await P(Z);
7982
+ O(H), S(!1);
8013
7983
  })();
8014
7984
  }, [P, n]);
8015
7985
  const J = $(
8016
7986
  async ({
8017
- limit: H,
8018
- offset: D,
8019
- search: I
7987
+ limit: _,
7988
+ offset: Z,
7989
+ search: H
8020
7990
  }) => {
8021
- const { count: V, ...Z } = await v({
8022
- offset: D,
8023
- limit: H,
8024
- search: I
7991
+ const { count: V, ...T } = await L({
7992
+ offset: Z,
7993
+ limit: _,
7994
+ search: H
8025
7995
  });
8026
- let W = Z.options;
8027
- return o && D === 0 && (W = [{ value: null, label: "None" }, ...W]), {
8028
- options: W,
7996
+ let j = T.options;
7997
+ return a && Z === 0 && (j = [{ value: null, label: "None" }, ...j]), {
7998
+ options: j,
8029
7999
  count: V,
8030
- limit: H
8000
+ limit: _
8031
8001
  };
8032
8002
  },
8033
- [o, v]
8003
+ [a, L]
8034
8004
  );
8035
8005
  if (M)
8036
- return /* @__PURE__ */ r(K5, {});
8006
+ return /* @__PURE__ */ r(j5, {});
8037
8007
  const F = {
8038
8008
  ref: N,
8039
8009
  placeholder: t,
@@ -8043,23 +8013,23 @@ const Ki = k1(
8043
8013
  error: h
8044
8014
  };
8045
8015
  return e ? /* @__PURE__ */ r(
8046
- F1,
8016
+ P1,
8047
8017
  {
8048
8018
  ...F,
8049
8019
  mode: e,
8050
8020
  value: n,
8051
- onChange: a,
8021
+ onChange: o,
8052
8022
  loadOptions: J,
8053
8023
  preloadOptions: !0,
8054
8024
  extraOptions: m
8055
8025
  }
8056
8026
  ) : /* @__PURE__ */ r(
8057
- F1,
8027
+ P1,
8058
8028
  {
8059
8029
  ...F,
8060
8030
  value: n,
8061
8031
  mode: void 0,
8062
- onChange: a,
8032
+ onChange: o,
8063
8033
  loadOptions: J,
8064
8034
  preloadOptions: !0,
8065
8035
  extraOptions: m
@@ -8068,5 +8038,5 @@ const Ki = k1(
8068
8038
  }
8069
8039
  );
8070
8040
  export {
8071
- Ki as UserSelect
8041
+ ji as UserSelect
8072
8042
  };