@snmt-react-ui/user-select 2.9.19 → 2.9.20

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 +823 -835
  2. package/package.json +4 -4
@@ -2,11 +2,11 @@ var L2 = Object.defineProperty;
2
2
  var k2 = (i, e, t) => e in i ? L2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
3
  var K1 = (i, e, t) => k2(i, typeof e != "symbol" ? e + "" : e, t);
4
4
  import "./index.css";
5
- import { jsx as r, Fragment as i1, jsxs as u } from "react/jsx-runtime";
6
- import { forwardRef as d1, useState as O, useRef as J, useCallback as P, useEffect as D, useMemo as v2, useImperativeHandle as k1, useContext as r1, createContext as C1 } from "react";
5
+ import { jsx as r, Fragment as i1, jsxs as C } from "react/jsx-runtime";
6
+ import { forwardRef as d1, useState as G, useRef as J, useCallback as $, useEffect as K, useMemo as v2, useImperativeHandle as k1, useContext as r1, createContext as g1 } from "react";
7
7
  import { Select as N2, Tag as R2, Flex as x2, Checkbox as _2, Avatar as M2, Typography as D1, Popover as b2 } from "antd";
8
8
  import { SNMTUiContext as y2 } from "@snmt-react-ui/core";
9
- var H2 = Object.defineProperty, E2 = (i, e, t) => e in i ? H2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, A2 = (i, e, t) => E2(i, e + "", t), V2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
+ var H2 = Object.defineProperty, E2 = (i, e, t) => e in i ? H2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, V2 = (i, e, t) => E2(i, e + "", t), A2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
10
  function I2() {
11
11
  if (console && console.warn) {
12
12
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
@@ -33,7 +33,7 @@ const l2 = (i, e) => () => {
33
33
  }
34
34
  }, Y1 = (i, e, t) => {
35
35
  i.loadNamespaces(e, l2(i, t));
36
- }, $1 = (i, e, t, s) => {
36
+ }, P1 = (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
39
  }), i.loadLanguages(e, l2(i, s));
@@ -41,9 +41,9 @@ const l2 = (i, e) => () => {
41
41
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
42
42
  const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
43
43
  if (s.toLowerCase() === "cimode") return !0;
44
- const h = (a, C) => {
45
- const d = e.services.backendConnector.state[`${a}|${C}`];
46
- return d === -1 || d === 2;
44
+ const h = (d, l) => {
45
+ const a = e.services.backendConnector.state[`${d}|${l}`];
46
+ return a === -1 || a === 2;
47
47
  };
48
48
  return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(s, i) && (!n || h(o, i)));
49
49
  }, Z2 = function(i, e) {
@@ -87,11 +87,11 @@ let B2 = {
87
87
  unescape: K2
88
88
  };
89
89
  const Y2 = () => B2;
90
- let $2;
91
- const P2 = () => $2, j2 = C1();
90
+ let P2;
91
+ const $2 = () => P2, j2 = g1();
92
92
  class F2 {
93
93
  constructor() {
94
- A2(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
94
+ V2(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
95
95
  }
96
96
  addUsedNamespaces(e) {
97
97
  e.forEach((t) => {
@@ -101,17 +101,17 @@ class F2 {
101
101
  }
102
102
  const W2 = (i, e) => {
103
103
  const t = J();
104
- return D(() => {
104
+ return K(() => {
105
105
  t.current = i;
106
106
  }, [i, e]), t.current;
107
- }, c2 = (i, e, t, s) => i.getFixedT(e, t, s), U2 = (i, e, t, s) => P(c2(i, e, t, s), [i, e, t, s]), z2 = function(i) {
107
+ }, c2 = (i, e, t, s) => i.getFixedT(e, t, s), U2 = (i, e, t, s) => $(c2(i, e, t, s), [i, e, t, s]), z2 = 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(j2) || {}, o = t || s || P2();
114
+ } = r1(j2) || {}, o = t || s || $2();
115
115
  if (o && !o.reportNamespaces && (o.reportNamespaces = new F2()), !o) {
116
116
  O1("You will need to pass in an i18next instance by using initReactI18next");
117
117
  const f = (_, R) => s1(R) ? R : S2(R) && s1(R.defaultValue) ? R.defaultValue : Array.isArray(_) ? _[_.length - 1] : _, x = [f, {}, !1];
@@ -123,38 +123,38 @@ const W2 = (i, e) => {
123
123
  ...o.options.react,
124
124
  ...e
125
125
  }, {
126
- useSuspense: a,
127
- keyPrefix: C
126
+ useSuspense: d,
127
+ keyPrefix: l
128
128
  } = h;
129
- let d = i;
130
- d = s1(d) ? [d] : d || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(d);
131
- const l = (o.isInitialized || o.initializedStoreOnce) && d.every((f) => Z2(f, o, h)), c = U2(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C), g = () => c, p = () => c2(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C), [w, v] = O(g);
132
- let m = d.join();
129
+ let a = i;
130
+ a = s1(a) ? [a] : a || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(a);
131
+ const c = (o.isInitialized || o.initializedStoreOnce) && a.every((f) => Z2(f, o, h)), u = U2(o, e.lng || null, h.nsMode === "fallback" ? a : a[0], l), g = () => u, p = () => c2(o, e.lng || null, h.nsMode === "fallback" ? a : a[0], l), [w, v] = G(g);
132
+ let m = a.join();
133
133
  e.lng && (m = `${e.lng}${m}`);
134
134
  const b = W2(m), y = J(!0);
135
- D(() => {
135
+ K(() => {
136
136
  const {
137
137
  bindI18n: f,
138
138
  bindI18nStore: x
139
139
  } = h;
140
- y.current = !0, !l && !a && (e.lng ? $1(o, e.lng, d, () => {
140
+ y.current = !0, !c && !d && (e.lng ? P1(o, e.lng, a, () => {
141
141
  y.current && v(p);
142
- }) : Y1(o, d, () => {
142
+ }) : Y1(o, a, () => {
143
143
  y.current && v(p);
144
- })), l && b && b !== m && y.current && v(p);
144
+ })), c && b && b !== m && y.current && v(p);
145
145
  const _ = () => {
146
146
  y.current && v(p);
147
147
  };
148
148
  return f && o && o.on(f, _), x && o && o.store.on(x, _), () => {
149
149
  y.current = !1, f && o && f.split(" ").forEach((R) => o.off(R, _)), x && o && x.split(" ").forEach((R) => o.store.off(R, _));
150
150
  };
151
- }, [o, m]), D(() => {
152
- y.current && l && v(g);
153
- }, [o, C, l]);
154
- const I = [w, o, l];
155
- if (I.t = w, I.i18n = o, I.ready = l, l || !l && !a) return I;
151
+ }, [o, m]), K(() => {
152
+ y.current && c && v(g);
153
+ }, [o, l, c]);
154
+ const I = [w, o, c];
155
+ if (I.t = w, I.i18n = o, I.ready = c, c || !c && !d) return I;
156
156
  throw new Promise((f) => {
157
- e.lng ? $1(o, e.lng, d, () => f()) : Y1(o, d, () => f());
157
+ e.lng ? P1(o, e.lng, a, () => f()) : Y1(o, a, () => f());
158
158
  });
159
159
  }, f1 = ({
160
160
  children: i,
@@ -164,7 +164,7 @@ const W2 = (i, e) => {
164
164
  justifyContent: n = "normal",
165
165
  flex: o,
166
166
  gap: h,
167
- padding: a
167
+ padding: d
168
168
  }) => /* @__PURE__ */ r(
169
169
  x2,
170
170
  {
@@ -175,7 +175,7 @@ const W2 = (i, e) => {
175
175
  justify: n,
176
176
  flex: o,
177
177
  gap: h,
178
- style: { padding: a },
178
+ style: { padding: d },
179
179
  children: i
180
180
  }
181
181
  ), J2 = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
@@ -193,7 +193,7 @@ const W2 = (i, e) => {
193
193
  );
194
194
  };
195
195
  var Q = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", 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_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-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 T1 = C1({
196
+ const T1 = g1({
197
197
  locale: "en",
198
198
  theme: "light"
199
199
  });
@@ -213,32 +213,32 @@ const { Title: q2, Text: Q2 } = D1, X2 = {
213
213
  collapsed: o,
214
214
  whiteSpace: h = "normal",
215
215
  /** This prop allows you to enable tooltip if text size is too big */
216
- trim: a = !1
217
- }, C) => {
218
- const d = J(null);
219
- k1(C, () => d.current);
220
- const [l, c] = O(!1);
221
- D(() => {
216
+ trim: d = !1
217
+ }, l) => {
218
+ const a = J(null);
219
+ k1(l, () => a.current);
220
+ const [c, u] = G(!1);
221
+ K(() => {
222
222
  var v;
223
- if (!a) return;
223
+ if (!d) return;
224
224
  const m = () => {
225
- d.current && c(d.current.scrollWidth > d.current.clientWidth);
225
+ a.current && u(a.current.scrollWidth > a.current.clientWidth);
226
226
  };
227
227
  m();
228
228
  const b = new ResizeObserver(m);
229
- return d.current && b.observe(d.current), (v = d.current) != null && v.parentElement && b.observe(d.current.parentElement), () => {
229
+ return a.current && b.observe(a.current), (v = a.current) != null && v.parentElement && b.observe(a.current.parentElement), () => {
230
230
  b.disconnect();
231
231
  };
232
- }, [a]);
232
+ }, [d]);
233
233
  const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
234
234
  let p = `snmt-typography snmt-typography-${e}`;
235
235
  i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed");
236
236
  const w = {
237
237
  className: p,
238
- style: { color: t, whiteSpace: a ? "nowrap" : h, display: a ? "block" : "" },
238
+ style: { color: t, whiteSpace: d ? "nowrap" : h, display: d ? "block" : "" },
239
239
  onClick: n,
240
- ref: d,
241
- ellipsis: a && l ? {
240
+ ref: a,
241
+ ellipsis: d && c ? {
242
242
  tooltip: {
243
243
  title: s,
244
244
  overlayClassName: "snmt-tooltip"
@@ -255,19 +255,19 @@ const { Title: q2, Text: Q2 } = D1, X2 = {
255
255
  disabled: n = !1,
256
256
  disableUncheck: o = !1
257
257
  }) => {
258
- const [h, a] = O(i), [C, d] = O(e);
259
- D(() => {
260
- a(i), d(e);
258
+ const [h, d] = G(i), [l, a] = G(e);
259
+ K(() => {
260
+ d(i), a(e);
261
261
  }, [i, e]);
262
- const { theme: l } = r1(T1);
262
+ const { theme: c } = r1(T1);
263
263
  return /* @__PURE__ */ r(
264
264
  _2,
265
265
  {
266
- className: `snmt-checkbox snmt-checkbox-${l}`,
266
+ className: `snmt-checkbox snmt-checkbox-${c}`,
267
267
  checked: h,
268
- indeterminate: C,
269
- onChange: (c) => {
270
- o && h || (d(!1), a(c.target.checked), s && s(c));
268
+ indeterminate: l,
269
+ onChange: (u) => {
270
+ o && h || (a(!1), d(u.target.checked), s && s(u));
271
271
  },
272
272
  disabled: n,
273
273
  children: t && /* @__PURE__ */ r(
@@ -282,7 +282,7 @@ const { Title: q2, Text: Q2 } = D1, X2 = {
282
282
  );
283
283
  };
284
284
  var L = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", 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_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-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))(L || {});
285
- const h2 = C1({
285
+ const h2 = g1({
286
286
  locale: "en",
287
287
  theme: "light"
288
288
  });
@@ -320,7 +320,7 @@ const i5 = ({
320
320
  color: t = L.GREY_DARK_5,
321
321
  className: s,
322
322
  onClick: n
323
- }) => /* @__PURE__ */ u(
323
+ }) => /* @__PURE__ */ C(
324
324
  "svg",
325
325
  {
326
326
  width: i,
@@ -360,7 +360,7 @@ const i5 = ({
360
360
  color: t = "#001E52",
361
361
  className: s,
362
362
  onClick: n
363
- }) => /* @__PURE__ */ u(
363
+ }) => /* @__PURE__ */ C(
364
364
  "svg",
365
365
  {
366
366
  xmlns: "http://www.w3.org/2000/svg",
@@ -395,7 +395,7 @@ const i5 = ({
395
395
  color: t = L.GREY_DARK_5,
396
396
  className: s,
397
397
  onClick: n
398
- }) => /* @__PURE__ */ u(
398
+ }) => /* @__PURE__ */ C(
399
399
  "svg",
400
400
  {
401
401
  width: i,
@@ -406,7 +406,7 @@ const i5 = ({
406
406
  fill: "none",
407
407
  xmlns: "http://www.w3.org/2000/svg",
408
408
  children: [
409
- /* @__PURE__ */ r("g", { "clip-path": "url(#clip0_1_2043)", children: /* @__PURE__ */ r(
409
+ /* @__PURE__ */ r("g", { clipPath: "url(#clip0_1_2043)", children: /* @__PURE__ */ r(
410
410
  "path",
411
411
  {
412
412
  d: "M5.96967 14.9697C5.67678 15.2626 5.67678 15.7373 5.96967 16.0302C6.26256 16.3231 6.73732 16.3231 7.03022 16.0302L12.4999 10.5605L17.9697 16.0302L18.0263 16.082C18.3209 16.3223 18.7556 16.3048 19.0302 16.0302C19.3048 15.7556 19.3223 15.3209 19.082 15.0263L19.0302 14.9697L13.0302 8.96967C12.7373 8.67678 12.2626 8.67678 11.9697 8.96967L5.96967 14.9697Z",
@@ -446,7 +446,7 @@ const i5 = ({
446
446
  color: t = L.GREY_DARK_5,
447
447
  className: s,
448
448
  onClick: n
449
- }) => /* @__PURE__ */ u(
449
+ }) => /* @__PURE__ */ C(
450
450
  "svg",
451
451
  {
452
452
  width: i,
@@ -457,7 +457,7 @@ const i5 = ({
457
457
  fill: "none",
458
458
  xmlns: "http://www.w3.org/2000/svg",
459
459
  children: [
460
- /* @__PURE__ */ r("g", { "clip-path": "url(#clip0_1_2039)", children: /* @__PURE__ */ r(
460
+ /* @__PURE__ */ r("g", { clipPath: "url(#clip0_1_2039)", children: /* @__PURE__ */ r(
461
461
  "path",
462
462
  {
463
463
  d: "M5.96967 10.0303C5.67678 9.73744 5.67678 9.26268 5.96967 8.96978C6.26256 8.67689 6.73732 8.67689 7.03022 8.96978L12.4999 14.4395L17.9697 8.96978L18.0263 8.91803C18.3209 8.67772 18.7556 8.69518 19.0302 8.96978C19.3048 9.24439 19.3223 9.67911 19.082 9.97369L19.0302 10.0303L13.0302 16.0303C12.7373 16.3232 12.2626 16.3232 11.9697 16.0303L5.96967 10.0303Z",
@@ -497,7 +497,7 @@ const i5 = ({
497
497
  color: t = L.GREY_DARK_5,
498
498
  className: s,
499
499
  onClick: n
500
- }) => /* @__PURE__ */ u(
500
+ }) => /* @__PURE__ */ C(
501
501
  "svg",
502
502
  {
503
503
  width: i,
@@ -586,7 +586,7 @@ const i5 = ({
586
586
  }
587
587
  )
588
588
  }
589
- ), C5 = ({
589
+ ), g5 = ({
590
590
  width: i = 20,
591
591
  height: e = 20,
592
592
  color: t = L.GREY_DARK_5,
@@ -610,13 +610,13 @@ const i5 = ({
610
610
  }
611
611
  )
612
612
  }
613
- ), g5 = ({
613
+ ), C5 = ({
614
614
  width: i = 20,
615
615
  height: e = 20,
616
616
  color: t = L.GREY_DARK_5,
617
617
  className: s,
618
618
  onClick: n
619
- }) => /* @__PURE__ */ u(
619
+ }) => /* @__PURE__ */ C(
620
620
  "svg",
621
621
  {
622
622
  width: i,
@@ -677,7 +677,7 @@ const i5 = ({
677
677
  color: t = L.GREY_DARK_5,
678
678
  className: s,
679
679
  onClick: n
680
- }) => /* @__PURE__ */ u(
680
+ }) => /* @__PURE__ */ C(
681
681
  "svg",
682
682
  {
683
683
  width: i,
@@ -724,7 +724,7 @@ const i5 = ({
724
724
  color: t = L.GREY_DARK_5,
725
725
  className: s,
726
726
  onClick: n
727
- }) => /* @__PURE__ */ u(
727
+ }) => /* @__PURE__ */ C(
728
728
  "svg",
729
729
  {
730
730
  width: i,
@@ -764,7 +764,7 @@ const i5 = ({
764
764
  color: t = L.GREY_DARK_5,
765
765
  className: s,
766
766
  onClick: n
767
- }) => /* @__PURE__ */ u(
767
+ }) => /* @__PURE__ */ C(
768
768
  "svg",
769
769
  {
770
770
  width: i,
@@ -804,7 +804,7 @@ const i5 = ({
804
804
  color: t = L.GREY_DARK_5,
805
805
  className: s,
806
806
  onClick: n
807
- }) => /* @__PURE__ */ u(
807
+ }) => /* @__PURE__ */ C(
808
808
  "svg",
809
809
  {
810
810
  width: i,
@@ -851,7 +851,7 @@ const i5 = ({
851
851
  color: t = L.GREY_DARK_5,
852
852
  className: s,
853
853
  onClick: n
854
- }) => /* @__PURE__ */ u(
854
+ }) => /* @__PURE__ */ C(
855
855
  "svg",
856
856
  {
857
857
  width: i,
@@ -898,7 +898,7 @@ const i5 = ({
898
898
  color: t = L.GREY_DARK_5,
899
899
  className: s,
900
900
  onClick: n
901
- }) => /* @__PURE__ */ u(
901
+ }) => /* @__PURE__ */ C(
902
902
  "svg",
903
903
  {
904
904
  width: i,
@@ -945,7 +945,7 @@ const i5 = ({
945
945
  color: t = L.GREY_DARK_5,
946
946
  className: s,
947
947
  onClick: n
948
- }) => /* @__PURE__ */ u(
948
+ }) => /* @__PURE__ */ C(
949
949
  "svg",
950
950
  {
951
951
  width: i,
@@ -985,7 +985,7 @@ const i5 = ({
985
985
  color: t = L.GREY_DARK_5,
986
986
  className: s,
987
987
  onClick: n
988
- }) => /* @__PURE__ */ u(
988
+ }) => /* @__PURE__ */ C(
989
989
  "svg",
990
990
  {
991
991
  width: i,
@@ -1018,7 +1018,7 @@ const i5 = ({
1018
1018
  color: t = L.GREY_DARK_5,
1019
1019
  className: s,
1020
1020
  onClick: n
1021
- }) => /* @__PURE__ */ u(
1021
+ }) => /* @__PURE__ */ C(
1022
1022
  "svg",
1023
1023
  {
1024
1024
  width: i,
@@ -1051,7 +1051,7 @@ const i5 = ({
1051
1051
  color: t = L.GREY_DARK_5,
1052
1052
  className: s,
1053
1053
  onClick: n
1054
- }) => /* @__PURE__ */ u(
1054
+ }) => /* @__PURE__ */ C(
1055
1055
  "svg",
1056
1056
  {
1057
1057
  width: i,
@@ -1084,7 +1084,7 @@ const i5 = ({
1084
1084
  color: t = L.GREY_DARK_5,
1085
1085
  className: s,
1086
1086
  onClick: n
1087
- }) => /* @__PURE__ */ u(
1087
+ }) => /* @__PURE__ */ C(
1088
1088
  "svg",
1089
1089
  {
1090
1090
  width: i,
@@ -1117,7 +1117,7 @@ const i5 = ({
1117
1117
  color: t = L.GREY_DARK_5,
1118
1118
  className: s,
1119
1119
  onClick: n
1120
- }) => /* @__PURE__ */ u(
1120
+ }) => /* @__PURE__ */ C(
1121
1121
  "svg",
1122
1122
  {
1123
1123
  width: i,
@@ -1157,7 +1157,7 @@ const i5 = ({
1157
1157
  color: t = L.GREY_DARK_5,
1158
1158
  className: s,
1159
1159
  onClick: n
1160
- }) => /* @__PURE__ */ u(
1160
+ }) => /* @__PURE__ */ C(
1161
1161
  "svg",
1162
1162
  {
1163
1163
  width: i,
@@ -1190,7 +1190,7 @@ const i5 = ({
1190
1190
  color: t = L.GREY_DARK_5,
1191
1191
  className: s,
1192
1192
  onClick: n
1193
- }) => /* @__PURE__ */ u(
1193
+ }) => /* @__PURE__ */ C(
1194
1194
  "svg",
1195
1195
  {
1196
1196
  width: i,
@@ -1223,7 +1223,7 @@ const i5 = ({
1223
1223
  color: t = "#070739",
1224
1224
  className: s,
1225
1225
  onClick: n
1226
- }) => /* @__PURE__ */ u(
1226
+ }) => /* @__PURE__ */ C(
1227
1227
  "svg",
1228
1228
  {
1229
1229
  width: i,
@@ -1253,7 +1253,7 @@ const i5 = ({
1253
1253
  color: t = "#070739",
1254
1254
  className: s,
1255
1255
  onClick: n
1256
- }) => /* @__PURE__ */ u(
1256
+ }) => /* @__PURE__ */ C(
1257
1257
  "svg",
1258
1258
  {
1259
1259
  width: i,
@@ -1311,13 +1311,13 @@ const i5 = ({
1311
1311
  }
1312
1312
  )
1313
1313
  }
1314
- ), A5 = ({
1314
+ ), V5 = ({
1315
1315
  width: i = 20,
1316
1316
  height: e = 20,
1317
1317
  color: t = "#F2F2F7",
1318
1318
  className: s,
1319
1319
  onClick: n
1320
- }) => /* @__PURE__ */ u(
1320
+ }) => /* @__PURE__ */ C(
1321
1321
  "svg",
1322
1322
  {
1323
1323
  width: i,
@@ -1340,13 +1340,13 @@ const i5 = ({
1340
1340
  )
1341
1341
  ]
1342
1342
  }
1343
- ), V5 = ({
1343
+ ), A5 = ({
1344
1344
  width: i = 20,
1345
1345
  height: e = 20,
1346
1346
  color: t = "#004ED7",
1347
1347
  className: s,
1348
1348
  onClick: n
1349
- }) => /* @__PURE__ */ u(
1349
+ }) => /* @__PURE__ */ C(
1350
1350
  "svg",
1351
1351
  {
1352
1352
  width: i,
@@ -1375,7 +1375,7 @@ const i5 = ({
1375
1375
  color: t = "#001E52",
1376
1376
  className: s,
1377
1377
  onClick: n
1378
- }) => /* @__PURE__ */ u(
1378
+ }) => /* @__PURE__ */ C(
1379
1379
  "svg",
1380
1380
  {
1381
1381
  width: i,
@@ -1404,7 +1404,7 @@ const i5 = ({
1404
1404
  color: t = "#001E52",
1405
1405
  className: s,
1406
1406
  onClick: n
1407
- }) => /* @__PURE__ */ u(
1407
+ }) => /* @__PURE__ */ C(
1408
1408
  "svg",
1409
1409
  {
1410
1410
  width: i,
@@ -1441,7 +1441,7 @@ const i5 = ({
1441
1441
  height: t = 20,
1442
1442
  width: s = 20,
1443
1443
  onClick: n
1444
- }) => /* @__PURE__ */ u(
1444
+ }) => /* @__PURE__ */ C(
1445
1445
  "svg",
1446
1446
  {
1447
1447
  width: s,
@@ -1577,7 +1577,7 @@ const i5 = ({
1577
1577
  height: t = 20,
1578
1578
  width: s = 20,
1579
1579
  onClick: n
1580
- }) => /* @__PURE__ */ u(
1580
+ }) => /* @__PURE__ */ C(
1581
1581
  "svg",
1582
1582
  {
1583
1583
  width: s,
@@ -1610,7 +1610,7 @@ const i5 = ({
1610
1610
  height: t = 24,
1611
1611
  width: s = 24,
1612
1612
  onClick: n
1613
- }) => /* @__PURE__ */ u(
1613
+ }) => /* @__PURE__ */ C(
1614
1614
  "svg",
1615
1615
  {
1616
1616
  width: s,
@@ -1670,13 +1670,13 @@ const i5 = ({
1670
1670
  }
1671
1671
  )
1672
1672
  }
1673
- ), $5 = ({
1673
+ ), P5 = ({
1674
1674
  className: i,
1675
1675
  color: e = L.GREY_DARK_5,
1676
1676
  height: t = 24,
1677
1677
  width: s = 24,
1678
1678
  onClick: n
1679
- }) => /* @__PURE__ */ u(
1679
+ }) => /* @__PURE__ */ C(
1680
1680
  "svg",
1681
1681
  {
1682
1682
  width: s,
@@ -1729,13 +1729,13 @@ const i5 = ({
1729
1729
  )
1730
1730
  ]
1731
1731
  }
1732
- ), P5 = ({
1732
+ ), $5 = ({
1733
1733
  className: i,
1734
1734
  color: e = L.GREY_DARK_5,
1735
1735
  height: t = 24,
1736
1736
  width: s = 24,
1737
1737
  onClick: n
1738
- }) => /* @__PURE__ */ u(
1738
+ }) => /* @__PURE__ */ C(
1739
1739
  "svg",
1740
1740
  {
1741
1741
  width: s,
@@ -1772,7 +1772,7 @@ const i5 = ({
1772
1772
  height: t = 14,
1773
1773
  width: s = 14,
1774
1774
  onClick: n
1775
- }) => /* @__PURE__ */ u(
1775
+ }) => /* @__PURE__ */ C(
1776
1776
  "svg",
1777
1777
  {
1778
1778
  className: i,
@@ -1836,7 +1836,7 @@ const i5 = ({
1836
1836
  height: t = 24,
1837
1837
  width: s = 24,
1838
1838
  onClick: n
1839
- }) => /* @__PURE__ */ u(
1839
+ }) => /* @__PURE__ */ C(
1840
1840
  "svg",
1841
1841
  {
1842
1842
  onClick: n,
@@ -1888,7 +1888,7 @@ const i5 = ({
1888
1888
  height: t = 24,
1889
1889
  width: s = 24,
1890
1890
  onClick: n
1891
- }) => /* @__PURE__ */ u(
1891
+ }) => /* @__PURE__ */ C(
1892
1892
  "svg",
1893
1893
  {
1894
1894
  onClick: n,
@@ -1925,7 +1925,7 @@ const i5 = ({
1925
1925
  height: t = 37,
1926
1926
  width: s = 36,
1927
1927
  onClick: n
1928
- }) => /* @__PURE__ */ u(
1928
+ }) => /* @__PURE__ */ C(
1929
1929
  "svg",
1930
1930
  {
1931
1931
  onClick: n,
@@ -1990,7 +1990,7 @@ const i5 = ({
1990
1990
  height: t = 24,
1991
1991
  width: s = 24,
1992
1992
  onClick: n
1993
- }) => /* @__PURE__ */ u(
1993
+ }) => /* @__PURE__ */ C(
1994
1994
  "svg",
1995
1995
  {
1996
1996
  onClick: n,
@@ -2029,7 +2029,7 @@ const i5 = ({
2029
2029
  height: t = 20,
2030
2030
  width: s = 20,
2031
2031
  onClick: n
2032
- }) => /* @__PURE__ */ u(
2032
+ }) => /* @__PURE__ */ C(
2033
2033
  "svg",
2034
2034
  {
2035
2035
  onClick: n,
@@ -2062,7 +2062,7 @@ const i5 = ({
2062
2062
  height: t = 24,
2063
2063
  width: s = 24,
2064
2064
  onClick: n
2065
- }) => /* @__PURE__ */ u(
2065
+ }) => /* @__PURE__ */ C(
2066
2066
  "svg",
2067
2067
  {
2068
2068
  onClick: n,
@@ -2131,7 +2131,7 @@ const i5 = ({
2131
2131
  height: t = 24,
2132
2132
  width: s = 24,
2133
2133
  onClick: n
2134
- }) => /* @__PURE__ */ u(
2134
+ }) => /* @__PURE__ */ C(
2135
2135
  "svg",
2136
2136
  {
2137
2137
  onClick: n,
@@ -2188,7 +2188,7 @@ const i5 = ({
2188
2188
  height: t = 24,
2189
2189
  width: s = 24,
2190
2190
  onClick: n
2191
- }) => /* @__PURE__ */ u(
2191
+ }) => /* @__PURE__ */ C(
2192
2192
  "svg",
2193
2193
  {
2194
2194
  onClick: n,
@@ -2264,7 +2264,7 @@ const i5 = ({
2264
2264
  height: t = 20,
2265
2265
  width: s = 20,
2266
2266
  onClick: n
2267
- }) => /* @__PURE__ */ u(
2267
+ }) => /* @__PURE__ */ C(
2268
2268
  "svg",
2269
2269
  {
2270
2270
  onClick: n,
@@ -2330,7 +2330,7 @@ const i5 = ({
2330
2330
  version: "1.1",
2331
2331
  xmlns: "http://www.w3.org/2000/svg",
2332
2332
  viewBox: "0 0 489.698 489.698",
2333
- children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */ u("g", { children: [
2333
+ children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */ C("g", { children: [
2334
2334
  /* @__PURE__ */ r(
2335
2335
  "path",
2336
2336
  {
@@ -2381,7 +2381,7 @@ const i5 = ({
2381
2381
  color: t = "#131314",
2382
2382
  className: s,
2383
2383
  onClick: n
2384
- }) => /* @__PURE__ */ u(
2384
+ }) => /* @__PURE__ */ C(
2385
2385
  "svg",
2386
2386
  {
2387
2387
  width: i,
@@ -2414,7 +2414,7 @@ const i5 = ({
2414
2414
  color: t = L.GREY_DARK_5,
2415
2415
  className: s,
2416
2416
  onClick: n
2417
- }) => /* @__PURE__ */ u(
2417
+ }) => /* @__PURE__ */ C(
2418
2418
  "svg",
2419
2419
  {
2420
2420
  width: i,
@@ -2447,7 +2447,7 @@ const i5 = ({
2447
2447
  color: t = L.GREY_DARK_2,
2448
2448
  className: s,
2449
2449
  onClick: n
2450
- }) => /* @__PURE__ */ u(
2450
+ }) => /* @__PURE__ */ C(
2451
2451
  "svg",
2452
2452
  {
2453
2453
  width: i,
@@ -2544,190 +2544,184 @@ const i5 = ({
2544
2544
  disabled: o = !1,
2545
2545
  onClick: h
2546
2546
  }) => {
2547
- const [a, C] = O(n), { theme: d } = r1(h2), l = o ? d && d === "dark" ? L.GREY_LIGHT_4 : L.GREY_DARK_1 : s, c = o ? void 0 : h;
2548
- return D(() => {
2549
- if (n) {
2550
- c && !o && C(`${n} clickable`);
2551
- return;
2552
- }
2553
- c && !o && C("clickable");
2554
- }, [c, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
2547
+ const { theme: d } = r1(h2), l = o ? d && d === "dark" ? L.GREY_LIGHT_4 : L.GREY_DARK_1 : s, a = o ? void 0 : h, c = h && !o ? `${n || ""} clickable` : n;
2548
+ return /* @__PURE__ */ r(i1, { children: (() => {
2555
2549
  switch (i) {
2556
2550
  case "nextIcon":
2557
- return S5({ width: e, height: t, color: l, className: a, onClick: c });
2551
+ return S5({ width: e, height: t, color: l, className: c, onClick: a });
2558
2552
  case "prevIcon":
2559
- return G5({ width: e, height: t, color: l, className: a, onClick: c });
2553
+ return G5({ width: e, height: t, color: l, className: c, onClick: a });
2560
2554
  case "arrowDown":
2561
- return i5({ width: e, height: t, color: l, className: a, onClick: c });
2555
+ return i5({ width: e, height: t, color: l, className: c, onClick: a });
2562
2556
  case "info":
2563
- return s5({ width: e, height: t, color: l, className: a, onClick: c });
2557
+ return s5({ width: e, height: t, color: l, className: c, onClick: a });
2564
2558
  case "arrowRight":
2565
- return n5({ width: e, height: t, color: l, className: a, onClick: c });
2559
+ return n5({ width: e, height: t, color: l, className: c, onClick: a });
2566
2560
  case "calendar":
2567
- return c5({ width: e, height: t, color: l, className: a, onClick: c });
2561
+ return c5({ width: e, height: t, color: l, className: c, onClick: a });
2568
2562
  case "check":
2569
- return h5({ width: e, height: t, color: l, className: a, onClick: c });
2563
+ return h5({ width: e, height: t, color: l, className: c, onClick: a });
2570
2564
  case "cancel":
2571
- return d5({ width: e, height: t, color: l, className: a, onClick: c });
2565
+ return d5({ width: e, height: t, color: l, className: c, onClick: a });
2572
2566
  case "add":
2573
- return C5({ width: e, height: t, color: l, className: a, onClick: c });
2567
+ return g5({ width: e, height: t, color: l, className: c, onClick: a });
2574
2568
  case "list":
2575
- return g5({ width: e, height: t, color: l, className: a, onClick: c });
2569
+ return C5({ width: e, height: t, color: l, className: c, onClick: a });
2576
2570
  case "dragAndDrop":
2577
- return u5({ width: e, height: t, color: l, className: a, onClick: c });
2571
+ return u5({ width: e, height: t, color: l, className: c, onClick: a });
2578
2572
  case "filter":
2579
- return p5({ width: e, height: t, color: l, className: a, onClick: c });
2573
+ return p5({ width: e, height: t, color: l, className: c, onClick: a });
2580
2574
  case "attention":
2581
- return f5({ width: e, height: t, color: l, className: a, onClick: c });
2575
+ return f5({ width: e, height: t, color: l, className: c, onClick: a });
2582
2576
  case "users":
2583
- return m5({ width: e, height: t, color: l, className: a, onClick: c });
2577
+ return m5({ width: e, height: t, color: l, className: c, onClick: a });
2584
2578
  case "mySkillsMatrix":
2585
2579
  return w5({
2586
2580
  width: e,
2587
2581
  height: t,
2588
2582
  color: l,
2589
- className: a,
2590
- onClick: c
2583
+ className: c,
2584
+ onClick: a
2591
2585
  });
2592
2586
  case "skills":
2593
- return L5({ width: e, height: t, color: l, className: a, onClick: c });
2587
+ return L5({ width: e, height: t, color: l, className: c, onClick: a });
2594
2588
  case "skillsMatrices":
2595
2589
  return k5({
2596
2590
  width: e,
2597
2591
  height: t,
2598
2592
  color: l,
2599
- className: a,
2600
- onClick: c
2593
+ className: c,
2594
+ onClick: a
2601
2595
  });
2602
2596
  case "history":
2603
- return v5({ width: e, height: t, color: l, className: a, onClick: c });
2597
+ return v5({ width: e, height: t, color: l, className: c, onClick: a });
2604
2598
  case "logOut":
2605
- return N5({ width: e, height: t, color: l, className: a, onClick: c });
2599
+ return N5({ width: e, height: t, color: l, className: c, onClick: a });
2606
2600
  case "settings":
2607
- return R5({ width: e, height: t, color: l, className: a, onClick: c });
2601
+ return R5({ width: e, height: t, color: l, className: c, onClick: a });
2608
2602
  case "trash":
2609
- return x5({ width: e, height: t, color: l, className: a, onClick: c });
2603
+ return x5({ width: e, height: t, color: l, className: c, onClick: a });
2610
2604
  case "settings2":
2611
- return _5({ width: e, height: t, color: l, className: a, onClick: c });
2605
+ return _5({ width: e, height: t, color: l, className: c, onClick: a });
2612
2606
  case "checkCircle":
2613
- return M5({ width: e, height: t, color: l, className: a, onClick: c });
2607
+ return M5({ width: e, height: t, color: l, className: c, onClick: a });
2614
2608
  case "cancelCircle":
2615
- return b5({ width: e, height: t, color: l, className: a, onClick: c });
2609
+ return b5({ width: e, height: t, color: l, className: c, onClick: a });
2616
2610
  case "visibilityIcon":
2617
2611
  return y5({
2618
2612
  width: e,
2619
2613
  height: t,
2620
2614
  color: l,
2621
- className: a,
2622
- onClick: c
2615
+ className: c,
2616
+ onClick: a
2623
2617
  });
2624
2618
  case "visibilityOffIcon":
2625
2619
  return H5({
2626
2620
  width: e,
2627
2621
  height: t,
2628
2622
  color: l,
2629
- className: a,
2630
- onClick: c
2623
+ className: c,
2624
+ onClick: a
2631
2625
  });
2632
2626
  case "selectArrowIcon":
2633
2627
  return E5({
2634
2628
  width: e,
2635
2629
  height: t,
2636
2630
  color: l,
2637
- className: a,
2638
- onClick: c
2631
+ className: c,
2632
+ onClick: a
2639
2633
  });
2640
2634
  case "expandArrowIcon":
2641
- return A5({
2635
+ return V5({
2642
2636
  width: e,
2643
2637
  height: t,
2644
2638
  color: l,
2645
- className: a,
2646
- onClick: c
2639
+ className: c,
2640
+ onClick: a
2647
2641
  });
2648
2642
  case "expandActiveArrowIcon":
2649
- return V5({
2643
+ return A5({
2650
2644
  width: e,
2651
2645
  height: t,
2652
2646
  color: l,
2653
- className: a,
2654
- onClick: c
2647
+ className: c,
2648
+ onClick: a
2655
2649
  });
2656
2650
  case "sortUp":
2657
- return I5({ width: e, height: t, color: l, className: a, onClick: c });
2651
+ return I5({ width: e, height: t, color: l, className: c, onClick: a });
2658
2652
  case "sortDown":
2659
- return O5({ width: e, height: t, color: l, className: a, onClick: c });
2653
+ return O5({ width: e, height: t, color: l, className: c, onClick: a });
2660
2654
  case "search":
2661
- return Z5({ width: e, height: t, color: l, className: a, onClick: c });
2655
+ return Z5({ width: e, height: t, color: l, className: c, onClick: a });
2662
2656
  case "arrowUpFilled":
2663
- return T5({ width: e, height: t, color: l, className: a, onClick: c });
2657
+ return T5({ width: e, height: t, color: l, className: c, onClick: a });
2664
2658
  case "arrowDownFilled":
2665
- return D5({ width: e, height: t, color: l, className: a, onClick: c });
2659
+ return D5({ width: e, height: t, color: l, className: c, onClick: a });
2666
2660
  case "arrow2Up":
2667
- return r5({ width: e, height: t, color: l, className: a, onClick: c });
2661
+ return r5({ width: e, height: t, color: l, className: c, onClick: a });
2668
2662
  case "arrow2Right":
2669
- return o5({ width: e, height: t, color: l, className: a, onClick: c });
2663
+ return o5({ width: e, height: t, color: l, className: c, onClick: a });
2670
2664
  case "arrow2Down":
2671
- return a5({ width: e, height: t, color: l, className: a, onClick: c });
2665
+ return a5({ width: e, height: t, color: l, className: c, onClick: a });
2672
2666
  case "arrow2Left":
2673
- return l5({ width: e, height: t, color: l, className: a, onClick: c });
2667
+ return l5({ width: e, height: t, color: l, className: c, onClick: a });
2674
2668
  case "link":
2675
- return K5({ width: e, height: t, color: l, className: a, onClick: c });
2669
+ return K5({ width: e, height: t, color: l, className: c, onClick: a });
2676
2670
  case "telegram":
2677
- return Y5({ width: e, height: t, color: l, className: a, onClick: c });
2671
+ return Y5({ width: e, height: t, color: l, className: c, onClick: a });
2678
2672
  case "mail":
2679
- return P5({ width: e, height: t, color: l, className: a, onClick: c });
2673
+ return $5({ width: e, height: t, color: l, className: c, onClick: a });
2680
2674
  case "github":
2681
- return B5({ width: e, height: t, color: l, className: a, onClick: c });
2675
+ return B5({ width: e, height: t, color: l, className: c, onClick: a });
2682
2676
  case "linkedIn":
2683
- return $5({ width: e, height: t, color: l, className: a, onClick: c });
2677
+ return P5({ width: e, height: t, color: l, className: c, onClick: a });
2684
2678
  case "emptyStateIcon":
2685
- return j5({ width: e, height: t, color: l, className: a, onClick: c });
2679
+ return j5({ width: e, height: t, color: l, className: c, onClick: a });
2686
2680
  case "filtersIcon":
2687
- return F5({ width: e, height: t, color: l, className: a, onClick: c });
2681
+ return F5({ width: e, height: t, color: l, className: c, onClick: a });
2688
2682
  case "dotMenuIcon":
2689
- return W5({ width: e, height: t, color: l, className: a, onClick: c });
2683
+ return W5({ width: e, height: t, color: l, className: c, onClick: a });
2690
2684
  case "plusCircle":
2691
- return U5({ width: e, height: t, color: l, className: a, onClick: c });
2685
+ return U5({ width: e, height: t, color: l, className: c, onClick: a });
2692
2686
  case "warning":
2693
- return z5({ width: e, height: t, color: l, className: a, onClick: c });
2687
+ return z5({ width: e, height: t, color: l, className: c, onClick: a });
2694
2688
  case "back":
2695
- return J5({ width: e, height: t, color: l, className: a, onClick: c });
2689
+ return J5({ width: e, height: t, color: l, className: c, onClick: a });
2696
2690
  case "bell":
2697
- return q5({ width: e, height: t, color: l, className: a, onClick: c });
2691
+ return q5({ width: e, height: t, color: l, className: c, onClick: a });
2698
2692
  case "copy":
2699
- return Q5({ width: e, height: t, color: l, className: a, onClick: c });
2693
+ return Q5({ width: e, height: t, color: l, className: c, onClick: a });
2700
2694
  case "contract":
2701
- return X5({ width: e, height: t, color: l, className: a, onClick: c });
2695
+ return X5({ width: e, height: t, color: l, className: c, onClick: a });
2702
2696
  case "resourceManager":
2703
- return ee({ width: e, height: t, color: l, className: a, onClick: c });
2697
+ return ee({ width: e, height: t, color: l, className: c, onClick: a });
2704
2698
  case "image":
2705
- return te({ width: e, height: t, color: l, className: a, onClick: c });
2699
+ return te({ width: e, height: t, color: l, className: c, onClick: a });
2706
2700
  case "edit":
2707
- return ie({ width: e, height: t, color: l, className: a, onClick: c });
2701
+ return ie({ width: e, height: t, color: l, className: c, onClick: a });
2708
2702
  case "filledArrowRight":
2709
- return se({ width: e, height: t, color: l, className: a, onClick: c });
2703
+ return se({ width: e, height: t, color: l, className: c, onClick: a });
2710
2704
  case "burgerMenu":
2711
- return ne({ width: e, height: t, color: l, className: a, onClick: c });
2705
+ return ne({ width: e, height: t, color: l, className: c, onClick: a });
2712
2706
  case "refresh":
2713
- return re({ width: e, height: t, color: l, className: a, onClick: c });
2707
+ return re({ width: e, height: t, color: l, className: c, onClick: a });
2714
2708
  case "projects":
2715
- return oe({ width: e, height: t, color: l, className: a, onClick: c });
2709
+ return oe({ width: e, height: t, color: l, className: c, onClick: a });
2716
2710
  case "user":
2717
- return le({ width: e, height: t, color: l, className: a, onClick: c });
2711
+ return le({ width: e, height: t, color: l, className: c, onClick: a });
2718
2712
  case "exit":
2719
- return ae({ width: e, height: t, color: l, className: a, onClick: c });
2713
+ return ae({ width: e, height: t, color: l, className: c, onClick: a });
2720
2714
  case "openPointCircle":
2721
- return ce({ width: e, height: t, color: l, className: a, onClick: c });
2715
+ return ce({ width: e, height: t, color: l, className: c, onClick: a });
2722
2716
  case "community":
2723
- return he({ width: e, height: t, color: l, className: a, onClick: c });
2717
+ return he({ width: e, height: t, color: l, className: c, onClick: a });
2724
2718
  case "docs":
2725
- return de({ width: e, height: t, color: l, className: a, onClick: c });
2719
+ return de({ width: e, height: t, color: l, className: c, onClick: a });
2726
2720
  default:
2727
2721
  return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
2728
2722
  }
2729
2723
  })() });
2730
- }, { Title: Ce, Text: ge } = D1, ue = {
2724
+ }, { Title: ge, Text: Ce } = D1, ue = {
2731
2725
  h1: 1,
2732
2726
  h2: 2,
2733
2727
  h3: 3,
@@ -2742,43 +2736,43 @@ const i5 = ({
2742
2736
  collapsed: o,
2743
2737
  whiteSpace: h = "normal",
2744
2738
  /** This prop allows you to enable tooltip if text size is too big */
2745
- trim: a = !1
2746
- }, C) => {
2747
- const d = J(null);
2748
- k1(C, () => d.current);
2749
- const [l, c] = O(!1);
2750
- D(() => {
2739
+ trim: d = !1
2740
+ }, l) => {
2741
+ const a = J(null);
2742
+ k1(l, () => a.current);
2743
+ const [c, u] = G(!1);
2744
+ K(() => {
2751
2745
  var v;
2752
- if (!a) return;
2746
+ if (!d) return;
2753
2747
  const m = () => {
2754
- d.current && c(d.current.scrollWidth > d.current.clientWidth);
2748
+ a.current && u(a.current.scrollWidth > a.current.clientWidth);
2755
2749
  };
2756
2750
  m();
2757
2751
  const b = new ResizeObserver(m);
2758
- return d.current && b.observe(d.current), (v = d.current) != null && v.parentElement && b.observe(d.current.parentElement), () => {
2752
+ return a.current && b.observe(a.current), (v = a.current) != null && v.parentElement && b.observe(a.current.parentElement), () => {
2759
2753
  b.disconnect();
2760
2754
  };
2761
- }, [a]);
2755
+ }, [d]);
2762
2756
  const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
2763
2757
  let p = `snmt-typography snmt-typography-${e}`;
2764
2758
  i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed");
2765
2759
  const w = {
2766
2760
  className: p,
2767
- style: { color: t, whiteSpace: a ? "nowrap" : h, display: a ? "block" : "" },
2761
+ style: { color: t, whiteSpace: d ? "nowrap" : h, display: d ? "block" : "" },
2768
2762
  onClick: n,
2769
- ref: d,
2770
- ellipsis: a && l ? {
2763
+ ref: a,
2764
+ ellipsis: d && c ? {
2771
2765
  tooltip: {
2772
2766
  title: s,
2773
2767
  overlayClassName: "snmt-tooltip"
2774
2768
  }
2775
2769
  } : void 0
2776
2770
  };
2777
- return g ? /* @__PURE__ */ r(Ce, { level: ue[e], ...w, children: s }) : /* @__PURE__ */ r(ge, { ...w, children: s });
2771
+ return g ? /* @__PURE__ */ r(ge, { level: ue[e], ...w, children: s }) : /* @__PURE__ */ r(Ce, { ...w, children: s });
2778
2772
  }
2779
2773
  );
2780
2774
  var k = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", 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_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-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))(k || {});
2781
- const d2 = C1({
2775
+ const d2 = g1({
2782
2776
  locale: "en",
2783
2777
  theme: "light"
2784
2778
  });
@@ -2816,7 +2810,7 @@ const fe = ({
2816
2810
  color: t = k.GREY_DARK_5,
2817
2811
  className: s,
2818
2812
  onClick: n
2819
- }) => /* @__PURE__ */ u(
2813
+ }) => /* @__PURE__ */ C(
2820
2814
  "svg",
2821
2815
  {
2822
2816
  width: i,
@@ -2856,7 +2850,7 @@ const fe = ({
2856
2850
  color: t = "#001E52",
2857
2851
  className: s,
2858
2852
  onClick: n
2859
- }) => /* @__PURE__ */ u(
2853
+ }) => /* @__PURE__ */ C(
2860
2854
  "svg",
2861
2855
  {
2862
2856
  xmlns: "http://www.w3.org/2000/svg",
@@ -2891,7 +2885,7 @@ const fe = ({
2891
2885
  color: t = k.GREY_DARK_5,
2892
2886
  className: s,
2893
2887
  onClick: n
2894
- }) => /* @__PURE__ */ u(
2888
+ }) => /* @__PURE__ */ C(
2895
2889
  "svg",
2896
2890
  {
2897
2891
  width: i,
@@ -2902,7 +2896,7 @@ const fe = ({
2902
2896
  fill: "none",
2903
2897
  xmlns: "http://www.w3.org/2000/svg",
2904
2898
  children: [
2905
- /* @__PURE__ */ r("g", { "clip-path": "url(#clip0_1_2043)", children: /* @__PURE__ */ r(
2899
+ /* @__PURE__ */ r("g", { clipPath: "url(#clip0_1_2043)", children: /* @__PURE__ */ r(
2906
2900
  "path",
2907
2901
  {
2908
2902
  d: "M5.96967 14.9697C5.67678 15.2626 5.67678 15.7373 5.96967 16.0302C6.26256 16.3231 6.73732 16.3231 7.03022 16.0302L12.4999 10.5605L17.9697 16.0302L18.0263 16.082C18.3209 16.3223 18.7556 16.3048 19.0302 16.0302C19.3048 15.7556 19.3223 15.3209 19.082 15.0263L19.0302 14.9697L13.0302 8.96967C12.7373 8.67678 12.2626 8.67678 11.9697 8.96967L5.96967 14.9697Z",
@@ -2942,7 +2936,7 @@ const fe = ({
2942
2936
  color: t = k.GREY_DARK_5,
2943
2937
  className: s,
2944
2938
  onClick: n
2945
- }) => /* @__PURE__ */ u(
2939
+ }) => /* @__PURE__ */ C(
2946
2940
  "svg",
2947
2941
  {
2948
2942
  width: i,
@@ -2953,7 +2947,7 @@ const fe = ({
2953
2947
  fill: "none",
2954
2948
  xmlns: "http://www.w3.org/2000/svg",
2955
2949
  children: [
2956
- /* @__PURE__ */ r("g", { "clip-path": "url(#clip0_1_2039)", children: /* @__PURE__ */ r(
2950
+ /* @__PURE__ */ r("g", { clipPath: "url(#clip0_1_2039)", children: /* @__PURE__ */ r(
2957
2951
  "path",
2958
2952
  {
2959
2953
  d: "M5.96967 10.0303C5.67678 9.73744 5.67678 9.26268 5.96967 8.96978C6.26256 8.67689 6.73732 8.67689 7.03022 8.96978L12.4999 14.4395L17.9697 8.96978L18.0263 8.91803C18.3209 8.67772 18.7556 8.69518 19.0302 8.96978C19.3048 9.24439 19.3223 9.67911 19.082 9.97369L19.0302 10.0303L13.0302 16.0303C12.7373 16.3232 12.2626 16.3232 11.9697 16.0303L5.96967 10.0303Z",
@@ -2993,7 +2987,7 @@ const fe = ({
2993
2987
  color: t = k.GREY_DARK_5,
2994
2988
  className: s,
2995
2989
  onClick: n
2996
- }) => /* @__PURE__ */ u(
2990
+ }) => /* @__PURE__ */ C(
2997
2991
  "svg",
2998
2992
  {
2999
2993
  width: i,
@@ -3112,7 +3106,7 @@ const fe = ({
3112
3106
  color: t = k.GREY_DARK_5,
3113
3107
  className: s,
3114
3108
  onClick: n
3115
- }) => /* @__PURE__ */ u(
3109
+ }) => /* @__PURE__ */ C(
3116
3110
  "svg",
3117
3111
  {
3118
3112
  width: i,
@@ -3173,7 +3167,7 @@ const fe = ({
3173
3167
  color: t = k.GREY_DARK_5,
3174
3168
  className: s,
3175
3169
  onClick: n
3176
- }) => /* @__PURE__ */ u(
3170
+ }) => /* @__PURE__ */ C(
3177
3171
  "svg",
3178
3172
  {
3179
3173
  width: i,
@@ -3220,7 +3214,7 @@ const fe = ({
3220
3214
  color: t = k.GREY_DARK_5,
3221
3215
  className: s,
3222
3216
  onClick: n
3223
- }) => /* @__PURE__ */ u(
3217
+ }) => /* @__PURE__ */ C(
3224
3218
  "svg",
3225
3219
  {
3226
3220
  width: i,
@@ -3260,7 +3254,7 @@ const fe = ({
3260
3254
  color: t = k.GREY_DARK_5,
3261
3255
  className: s,
3262
3256
  onClick: n
3263
- }) => /* @__PURE__ */ u(
3257
+ }) => /* @__PURE__ */ C(
3264
3258
  "svg",
3265
3259
  {
3266
3260
  width: i,
@@ -3294,13 +3288,13 @@ const fe = ({
3294
3288
  )
3295
3289
  ]
3296
3290
  }
3297
- ), Ae = ({
3291
+ ), Ve = ({
3298
3292
  width: i = 20,
3299
3293
  height: e = 20,
3300
3294
  color: t = k.GREY_DARK_5,
3301
3295
  className: s,
3302
3296
  onClick: n
3303
- }) => /* @__PURE__ */ u(
3297
+ }) => /* @__PURE__ */ C(
3304
3298
  "svg",
3305
3299
  {
3306
3300
  width: i,
@@ -3341,13 +3335,13 @@ const fe = ({
3341
3335
  )
3342
3336
  ]
3343
3337
  }
3344
- ), Ve = ({
3338
+ ), Ae = ({
3345
3339
  width: i = 20,
3346
3340
  height: e = 20,
3347
3341
  color: t = k.GREY_DARK_5,
3348
3342
  className: s,
3349
3343
  onClick: n
3350
- }) => /* @__PURE__ */ u(
3344
+ }) => /* @__PURE__ */ C(
3351
3345
  "svg",
3352
3346
  {
3353
3347
  width: i,
@@ -3394,7 +3388,7 @@ const fe = ({
3394
3388
  color: t = k.GREY_DARK_5,
3395
3389
  className: s,
3396
3390
  onClick: n
3397
- }) => /* @__PURE__ */ u(
3391
+ }) => /* @__PURE__ */ C(
3398
3392
  "svg",
3399
3393
  {
3400
3394
  width: i,
@@ -3441,7 +3435,7 @@ const fe = ({
3441
3435
  color: t = k.GREY_DARK_5,
3442
3436
  className: s,
3443
3437
  onClick: n
3444
- }) => /* @__PURE__ */ u(
3438
+ }) => /* @__PURE__ */ C(
3445
3439
  "svg",
3446
3440
  {
3447
3441
  width: i,
@@ -3481,7 +3475,7 @@ const fe = ({
3481
3475
  color: t = k.GREY_DARK_5,
3482
3476
  className: s,
3483
3477
  onClick: n
3484
- }) => /* @__PURE__ */ u(
3478
+ }) => /* @__PURE__ */ C(
3485
3479
  "svg",
3486
3480
  {
3487
3481
  width: i,
@@ -3514,7 +3508,7 @@ const fe = ({
3514
3508
  color: t = k.GREY_DARK_5,
3515
3509
  className: s,
3516
3510
  onClick: n
3517
- }) => /* @__PURE__ */ u(
3511
+ }) => /* @__PURE__ */ C(
3518
3512
  "svg",
3519
3513
  {
3520
3514
  width: i,
@@ -3547,7 +3541,7 @@ const fe = ({
3547
3541
  color: t = k.GREY_DARK_5,
3548
3542
  className: s,
3549
3543
  onClick: n
3550
- }) => /* @__PURE__ */ u(
3544
+ }) => /* @__PURE__ */ C(
3551
3545
  "svg",
3552
3546
  {
3553
3547
  width: i,
@@ -3580,7 +3574,7 @@ const fe = ({
3580
3574
  color: t = k.GREY_DARK_5,
3581
3575
  className: s,
3582
3576
  onClick: n
3583
- }) => /* @__PURE__ */ u(
3577
+ }) => /* @__PURE__ */ C(
3584
3578
  "svg",
3585
3579
  {
3586
3580
  width: i,
@@ -3613,7 +3607,7 @@ const fe = ({
3613
3607
  color: t = k.GREY_DARK_5,
3614
3608
  className: s,
3615
3609
  onClick: n
3616
- }) => /* @__PURE__ */ u(
3610
+ }) => /* @__PURE__ */ C(
3617
3611
  "svg",
3618
3612
  {
3619
3613
  width: i,
@@ -3653,7 +3647,7 @@ const fe = ({
3653
3647
  color: t = k.GREY_DARK_5,
3654
3648
  className: s,
3655
3649
  onClick: n
3656
- }) => /* @__PURE__ */ u(
3650
+ }) => /* @__PURE__ */ C(
3657
3651
  "svg",
3658
3652
  {
3659
3653
  width: i,
@@ -3686,7 +3680,7 @@ const fe = ({
3686
3680
  color: t = k.GREY_DARK_5,
3687
3681
  className: s,
3688
3682
  onClick: n
3689
- }) => /* @__PURE__ */ u(
3683
+ }) => /* @__PURE__ */ C(
3690
3684
  "svg",
3691
3685
  {
3692
3686
  width: i,
@@ -3719,7 +3713,7 @@ const fe = ({
3719
3713
  color: t = "#070739",
3720
3714
  className: s,
3721
3715
  onClick: n
3722
- }) => /* @__PURE__ */ u(
3716
+ }) => /* @__PURE__ */ C(
3723
3717
  "svg",
3724
3718
  {
3725
3719
  width: i,
@@ -3743,13 +3737,13 @@ const fe = ({
3743
3737
  /* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
3744
3738
  ]
3745
3739
  }
3746
- ), $e = ({
3740
+ ), Pe = ({
3747
3741
  width: i = 20,
3748
3742
  height: e = 20,
3749
3743
  color: t = "#070739",
3750
3744
  className: s,
3751
3745
  onClick: n
3752
- }) => /* @__PURE__ */ u(
3746
+ }) => /* @__PURE__ */ C(
3753
3747
  "svg",
3754
3748
  {
3755
3749
  width: i,
@@ -3781,7 +3775,7 @@ const fe = ({
3781
3775
  )
3782
3776
  ]
3783
3777
  }
3784
- ), Pe = ({
3778
+ ), $e = ({
3785
3779
  width: i = 9,
3786
3780
  height: e = 5,
3787
3781
  color: t = "#001E52",
@@ -3813,7 +3807,7 @@ const fe = ({
3813
3807
  color: t = "#F2F2F7",
3814
3808
  className: s,
3815
3809
  onClick: n
3816
- }) => /* @__PURE__ */ u(
3810
+ }) => /* @__PURE__ */ C(
3817
3811
  "svg",
3818
3812
  {
3819
3813
  width: i,
@@ -3842,7 +3836,7 @@ const fe = ({
3842
3836
  color: t = "#004ED7",
3843
3837
  className: s,
3844
3838
  onClick: n
3845
- }) => /* @__PURE__ */ u(
3839
+ }) => /* @__PURE__ */ C(
3846
3840
  "svg",
3847
3841
  {
3848
3842
  width: i,
@@ -3871,7 +3865,7 @@ const fe = ({
3871
3865
  color: t = "#001E52",
3872
3866
  className: s,
3873
3867
  onClick: n
3874
- }) => /* @__PURE__ */ u(
3868
+ }) => /* @__PURE__ */ C(
3875
3869
  "svg",
3876
3870
  {
3877
3871
  width: i,
@@ -3900,7 +3894,7 @@ const fe = ({
3900
3894
  color: t = "#001E52",
3901
3895
  className: s,
3902
3896
  onClick: n
3903
- }) => /* @__PURE__ */ u(
3897
+ }) => /* @__PURE__ */ C(
3904
3898
  "svg",
3905
3899
  {
3906
3900
  width: i,
@@ -3937,7 +3931,7 @@ const fe = ({
3937
3931
  height: t = 20,
3938
3932
  width: s = 20,
3939
3933
  onClick: n
3940
- }) => /* @__PURE__ */ u(
3934
+ }) => /* @__PURE__ */ C(
3941
3935
  "svg",
3942
3936
  {
3943
3937
  width: s,
@@ -4073,7 +4067,7 @@ const fe = ({
4073
4067
  height: t = 20,
4074
4068
  width: s = 20,
4075
4069
  onClick: n
4076
- }) => /* @__PURE__ */ u(
4070
+ }) => /* @__PURE__ */ C(
4077
4071
  "svg",
4078
4072
  {
4079
4073
  width: s,
@@ -4106,7 +4100,7 @@ const fe = ({
4106
4100
  height: t = 24,
4107
4101
  width: s = 24,
4108
4102
  onClick: n
4109
- }) => /* @__PURE__ */ u(
4103
+ }) => /* @__PURE__ */ C(
4110
4104
  "svg",
4111
4105
  {
4112
4106
  width: s,
@@ -4172,7 +4166,7 @@ const fe = ({
4172
4166
  height: t = 24,
4173
4167
  width: s = 24,
4174
4168
  onClick: n
4175
- }) => /* @__PURE__ */ u(
4169
+ }) => /* @__PURE__ */ C(
4176
4170
  "svg",
4177
4171
  {
4178
4172
  width: s,
@@ -4231,7 +4225,7 @@ const fe = ({
4231
4225
  height: t = 24,
4232
4226
  width: s = 24,
4233
4227
  onClick: n
4234
- }) => /* @__PURE__ */ u(
4228
+ }) => /* @__PURE__ */ C(
4235
4229
  "svg",
4236
4230
  {
4237
4231
  width: s,
@@ -4268,7 +4262,7 @@ const fe = ({
4268
4262
  height: t = 14,
4269
4263
  width: s = 14,
4270
4264
  onClick: n
4271
- }) => /* @__PURE__ */ u(
4265
+ }) => /* @__PURE__ */ C(
4272
4266
  "svg",
4273
4267
  {
4274
4268
  className: i,
@@ -4332,7 +4326,7 @@ const fe = ({
4332
4326
  height: t = 24,
4333
4327
  width: s = 24,
4334
4328
  onClick: n
4335
- }) => /* @__PURE__ */ u(
4329
+ }) => /* @__PURE__ */ C(
4336
4330
  "svg",
4337
4331
  {
4338
4332
  onClick: n,
@@ -4384,7 +4378,7 @@ const fe = ({
4384
4378
  height: t = 24,
4385
4379
  width: s = 24,
4386
4380
  onClick: n
4387
- }) => /* @__PURE__ */ u(
4381
+ }) => /* @__PURE__ */ C(
4388
4382
  "svg",
4389
4383
  {
4390
4384
  onClick: n,
@@ -4421,7 +4415,7 @@ const fe = ({
4421
4415
  height: t = 37,
4422
4416
  width: s = 36,
4423
4417
  onClick: n
4424
- }) => /* @__PURE__ */ u(
4418
+ }) => /* @__PURE__ */ C(
4425
4419
  "svg",
4426
4420
  {
4427
4421
  onClick: n,
@@ -4486,7 +4480,7 @@ const fe = ({
4486
4480
  height: t = 24,
4487
4481
  width: s = 24,
4488
4482
  onClick: n
4489
- }) => /* @__PURE__ */ u(
4483
+ }) => /* @__PURE__ */ C(
4490
4484
  "svg",
4491
4485
  {
4492
4486
  onClick: n,
@@ -4519,13 +4513,13 @@ const fe = ({
4519
4513
  )
4520
4514
  ]
4521
4515
  }
4522
- ), Ct = ({
4516
+ ), gt = ({
4523
4517
  className: i,
4524
4518
  color: e = k.GREY_DARK_5,
4525
4519
  height: t = 20,
4526
4520
  width: s = 20,
4527
4521
  onClick: n
4528
- }) => /* @__PURE__ */ u(
4522
+ }) => /* @__PURE__ */ C(
4529
4523
  "svg",
4530
4524
  {
4531
4525
  onClick: n,
@@ -4552,13 +4546,13 @@ const fe = ({
4552
4546
  )
4553
4547
  ]
4554
4548
  }
4555
- ), gt = ({
4549
+ ), Ct = ({
4556
4550
  className: i,
4557
4551
  color: e = k.GREY_DARK_5,
4558
4552
  height: t = 24,
4559
4553
  width: s = 24,
4560
4554
  onClick: n
4561
- }) => /* @__PURE__ */ u(
4555
+ }) => /* @__PURE__ */ C(
4562
4556
  "svg",
4563
4557
  {
4564
4558
  onClick: n,
@@ -4627,7 +4621,7 @@ const fe = ({
4627
4621
  height: t = 24,
4628
4622
  width: s = 24,
4629
4623
  onClick: n
4630
- }) => /* @__PURE__ */ u(
4624
+ }) => /* @__PURE__ */ C(
4631
4625
  "svg",
4632
4626
  {
4633
4627
  onClick: n,
@@ -4684,7 +4678,7 @@ const fe = ({
4684
4678
  height: t = 24,
4685
4679
  width: s = 24,
4686
4680
  onClick: n
4687
- }) => /* @__PURE__ */ u(
4681
+ }) => /* @__PURE__ */ C(
4688
4682
  "svg",
4689
4683
  {
4690
4684
  onClick: n,
@@ -4760,7 +4754,7 @@ const fe = ({
4760
4754
  height: t = 20,
4761
4755
  width: s = 20,
4762
4756
  onClick: n
4763
- }) => /* @__PURE__ */ u(
4757
+ }) => /* @__PURE__ */ C(
4764
4758
  "svg",
4765
4759
  {
4766
4760
  onClick: n,
@@ -4826,7 +4820,7 @@ const fe = ({
4826
4820
  version: "1.1",
4827
4821
  xmlns: "http://www.w3.org/2000/svg",
4828
4822
  viewBox: "0 0 489.698 489.698",
4829
- children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */ u("g", { children: [
4823
+ children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */ C("g", { children: [
4830
4824
  /* @__PURE__ */ r(
4831
4825
  "path",
4832
4826
  {
@@ -4877,7 +4871,7 @@ const fe = ({
4877
4871
  color: t = "#131314",
4878
4872
  className: s,
4879
4873
  onClick: n
4880
- }) => /* @__PURE__ */ u(
4874
+ }) => /* @__PURE__ */ C(
4881
4875
  "svg",
4882
4876
  {
4883
4877
  width: i,
@@ -4910,7 +4904,7 @@ const fe = ({
4910
4904
  color: t = k.GREY_DARK_5,
4911
4905
  className: s,
4912
4906
  onClick: n
4913
- }) => /* @__PURE__ */ u(
4907
+ }) => /* @__PURE__ */ C(
4914
4908
  "svg",
4915
4909
  {
4916
4910
  width: i,
@@ -4943,7 +4937,7 @@ const fe = ({
4943
4937
  color: t = k.GREY_DARK_2,
4944
4938
  className: s,
4945
4939
  onClick: n
4946
- }) => /* @__PURE__ */ u(
4940
+ }) => /* @__PURE__ */ C(
4947
4941
  "svg",
4948
4942
  {
4949
4943
  width: i,
@@ -5040,197 +5034,191 @@ const fe = ({
5040
5034
  disabled: o = !1,
5041
5035
  onClick: h
5042
5036
  }) => {
5043
- const [a, C] = O(n), { theme: d } = r1(d2), l = o ? d && d === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : s, c = o ? void 0 : h;
5044
- return D(() => {
5045
- if (n) {
5046
- c && !o && C(`${n} clickable`);
5047
- return;
5048
- }
5049
- c && !o && C("clickable");
5050
- }, [c, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
5037
+ const { theme: d } = r1(d2), l = o ? d && d === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : s, a = o ? void 0 : h, c = h && !o ? `${n || ""} clickable` : n;
5038
+ return /* @__PURE__ */ r(i1, { children: (() => {
5051
5039
  switch (i) {
5052
5040
  case "nextIcon":
5053
- return Je({ width: e, height: t, color: l, className: a, onClick: c });
5041
+ return Je({ width: e, height: t, color: l, className: c, onClick: a });
5054
5042
  case "prevIcon":
5055
- return qe({ width: e, height: t, color: l, className: a, onClick: c });
5043
+ return qe({ width: e, height: t, color: l, className: c, onClick: a });
5056
5044
  case "arrowDown":
5057
- return fe({ width: e, height: t, color: l, className: a, onClick: c });
5045
+ return fe({ width: e, height: t, color: l, className: c, onClick: a });
5058
5046
  case "info":
5059
- return me({ width: e, height: t, color: l, className: a, onClick: c });
5047
+ return me({ width: e, height: t, color: l, className: c, onClick: a });
5060
5048
  case "arrowRight":
5061
- return we({ width: e, height: t, color: l, className: a, onClick: c });
5049
+ return we({ width: e, height: t, color: l, className: c, onClick: a });
5062
5050
  case "calendar":
5063
- return Re({ width: e, height: t, color: l, className: a, onClick: c });
5051
+ return Re({ width: e, height: t, color: l, className: c, onClick: a });
5064
5052
  case "check":
5065
- return xe({ width: e, height: t, color: l, className: a, onClick: c });
5053
+ return xe({ width: e, height: t, color: l, className: c, onClick: a });
5066
5054
  case "cancel":
5067
- return _e({ width: e, height: t, color: l, className: a, onClick: c });
5055
+ return _e({ width: e, height: t, color: l, className: c, onClick: a });
5068
5056
  case "add":
5069
- return Me({ width: e, height: t, color: l, className: a, onClick: c });
5057
+ return Me({ width: e, height: t, color: l, className: c, onClick: a });
5070
5058
  case "list":
5071
- return be({ width: e, height: t, color: l, className: a, onClick: c });
5059
+ return be({ width: e, height: t, color: l, className: c, onClick: a });
5072
5060
  case "dragAndDrop":
5073
- return ye({ width: e, height: t, color: l, className: a, onClick: c });
5061
+ return ye({ width: e, height: t, color: l, className: c, onClick: a });
5074
5062
  case "filter":
5075
- return He({ width: e, height: t, color: l, className: a, onClick: c });
5063
+ return He({ width: e, height: t, color: l, className: c, onClick: a });
5076
5064
  case "attention":
5077
- return Ee({ width: e, height: t, color: l, className: a, onClick: c });
5065
+ return Ee({ width: e, height: t, color: l, className: c, onClick: a });
5078
5066
  case "users":
5079
- return Ae({ width: e, height: t, color: l, className: a, onClick: c });
5067
+ return Ve({ width: e, height: t, color: l, className: c, onClick: a });
5080
5068
  case "mySkillsMatrix":
5081
- return Ve({
5069
+ return Ae({
5082
5070
  width: e,
5083
5071
  height: t,
5084
5072
  color: l,
5085
- className: a,
5086
- onClick: c
5073
+ className: c,
5074
+ onClick: a
5087
5075
  });
5088
5076
  case "skills":
5089
- return Ie({ width: e, height: t, color: l, className: a, onClick: c });
5077
+ return Ie({ width: e, height: t, color: l, className: c, onClick: a });
5090
5078
  case "skillsMatrices":
5091
5079
  return Oe({
5092
5080
  width: e,
5093
5081
  height: t,
5094
5082
  color: l,
5095
- className: a,
5096
- onClick: c
5083
+ className: c,
5084
+ onClick: a
5097
5085
  });
5098
5086
  case "history":
5099
- return Ze({ width: e, height: t, color: l, className: a, onClick: c });
5087
+ return Ze({ width: e, height: t, color: l, className: c, onClick: a });
5100
5088
  case "logOut":
5101
- return Se({ width: e, height: t, color: l, className: a, onClick: c });
5089
+ return Se({ width: e, height: t, color: l, className: c, onClick: a });
5102
5090
  case "settings":
5103
- return Ge({ width: e, height: t, color: l, className: a, onClick: c });
5091
+ return Ge({ width: e, height: t, color: l, className: c, onClick: a });
5104
5092
  case "trash":
5105
- return De({ width: e, height: t, color: l, className: a, onClick: c });
5093
+ return De({ width: e, height: t, color: l, className: c, onClick: a });
5106
5094
  case "settings2":
5107
- return Te({ width: e, height: t, color: l, className: a, onClick: c });
5095
+ return Te({ width: e, height: t, color: l, className: c, onClick: a });
5108
5096
  case "checkCircle":
5109
- return Ke({ width: e, height: t, color: l, className: a, onClick: c });
5097
+ return Ke({ width: e, height: t, color: l, className: c, onClick: a });
5110
5098
  case "cancelCircle":
5111
- return Be({ width: e, height: t, color: l, className: a, onClick: c });
5099
+ return Be({ width: e, height: t, color: l, className: c, onClick: a });
5112
5100
  case "visibilityIcon":
5113
5101
  return Ye({
5114
5102
  width: e,
5115
5103
  height: t,
5116
5104
  color: l,
5117
- className: a,
5118
- onClick: c
5105
+ className: c,
5106
+ onClick: a
5119
5107
  });
5120
5108
  case "visibilityOffIcon":
5121
- return $e({
5109
+ return Pe({
5122
5110
  width: e,
5123
5111
  height: t,
5124
5112
  color: l,
5125
- className: a,
5126
- onClick: c
5113
+ className: c,
5114
+ onClick: a
5127
5115
  });
5128
5116
  case "selectArrowIcon":
5129
- return Pe({
5117
+ return $e({
5130
5118
  width: e,
5131
5119
  height: t,
5132
5120
  color: l,
5133
- className: a,
5134
- onClick: c
5121
+ className: c,
5122
+ onClick: a
5135
5123
  });
5136
5124
  case "expandArrowIcon":
5137
5125
  return je({
5138
5126
  width: e,
5139
5127
  height: t,
5140
5128
  color: l,
5141
- className: a,
5142
- onClick: c
5129
+ className: c,
5130
+ onClick: a
5143
5131
  });
5144
5132
  case "expandActiveArrowIcon":
5145
5133
  return Fe({
5146
5134
  width: e,
5147
5135
  height: t,
5148
5136
  color: l,
5149
- className: a,
5150
- onClick: c
5137
+ className: c,
5138
+ onClick: a
5151
5139
  });
5152
5140
  case "sortUp":
5153
- return We({ width: e, height: t, color: l, className: a, onClick: c });
5141
+ return We({ width: e, height: t, color: l, className: c, onClick: a });
5154
5142
  case "sortDown":
5155
- return Ue({ width: e, height: t, color: l, className: a, onClick: c });
5143
+ return Ue({ width: e, height: t, color: l, className: c, onClick: a });
5156
5144
  case "search":
5157
- return ze({ width: e, height: t, color: l, className: a, onClick: c });
5145
+ return ze({ width: e, height: t, color: l, className: c, onClick: a });
5158
5146
  case "arrowUpFilled":
5159
- return Xe({ width: e, height: t, color: l, className: a, onClick: c });
5147
+ return Xe({ width: e, height: t, color: l, className: c, onClick: a });
5160
5148
  case "arrowDownFilled":
5161
- return Qe({ width: e, height: t, color: l, className: a, onClick: c });
5149
+ return Qe({ width: e, height: t, color: l, className: c, onClick: a });
5162
5150
  case "arrow2Up":
5163
- return Le({ width: e, height: t, color: l, className: a, onClick: c });
5151
+ return Le({ width: e, height: t, color: l, className: c, onClick: a });
5164
5152
  case "arrow2Right":
5165
- return ke({ width: e, height: t, color: l, className: a, onClick: c });
5153
+ return ke({ width: e, height: t, color: l, className: c, onClick: a });
5166
5154
  case "arrow2Down":
5167
- return ve({ width: e, height: t, color: l, className: a, onClick: c });
5155
+ return ve({ width: e, height: t, color: l, className: c, onClick: a });
5168
5156
  case "arrow2Left":
5169
- return Ne({ width: e, height: t, color: l, className: a, onClick: c });
5157
+ return Ne({ width: e, height: t, color: l, className: c, onClick: a });
5170
5158
  case "link":
5171
- return et({ width: e, height: t, color: l, className: a, onClick: c });
5159
+ return et({ width: e, height: t, color: l, className: c, onClick: a });
5172
5160
  case "telegram":
5173
- return it({ width: e, height: t, color: l, className: a, onClick: c });
5161
+ return it({ width: e, height: t, color: l, className: c, onClick: a });
5174
5162
  case "mail":
5175
- return nt({ width: e, height: t, color: l, className: a, onClick: c });
5163
+ return nt({ width: e, height: t, color: l, className: c, onClick: a });
5176
5164
  case "github":
5177
- return tt({ width: e, height: t, color: l, className: a, onClick: c });
5165
+ return tt({ width: e, height: t, color: l, className: c, onClick: a });
5178
5166
  case "linkedIn":
5179
- return st({ width: e, height: t, color: l, className: a, onClick: c });
5167
+ return st({ width: e, height: t, color: l, className: c, onClick: a });
5180
5168
  case "emptyStateIcon":
5181
- return rt({ width: e, height: t, color: l, className: a, onClick: c });
5169
+ return rt({ width: e, height: t, color: l, className: c, onClick: a });
5182
5170
  case "filtersIcon":
5183
- return ot({ width: e, height: t, color: l, className: a, onClick: c });
5171
+ return ot({ width: e, height: t, color: l, className: c, onClick: a });
5184
5172
  case "dotMenuIcon":
5185
- return at({ width: e, height: t, color: l, className: a, onClick: c });
5173
+ return at({ width: e, height: t, color: l, className: c, onClick: a });
5186
5174
  case "plusCircle":
5187
- return lt({ width: e, height: t, color: l, className: a, onClick: c });
5175
+ return lt({ width: e, height: t, color: l, className: c, onClick: a });
5188
5176
  case "warning":
5189
- return ct({ width: e, height: t, color: l, className: a, onClick: c });
5177
+ return ct({ width: e, height: t, color: l, className: c, onClick: a });
5190
5178
  case "back":
5191
- return ht({ width: e, height: t, color: l, className: a, onClick: c });
5179
+ return ht({ width: e, height: t, color: l, className: c, onClick: a });
5192
5180
  case "bell":
5193
- return dt({ width: e, height: t, color: l, className: a, onClick: c });
5181
+ return dt({ width: e, height: t, color: l, className: c, onClick: a });
5194
5182
  case "copy":
5195
- return Ct({ width: e, height: t, color: l, className: a, onClick: c });
5183
+ return gt({ width: e, height: t, color: l, className: c, onClick: a });
5196
5184
  case "contract":
5197
- return gt({ width: e, height: t, color: l, className: a, onClick: c });
5185
+ return Ct({ width: e, height: t, color: l, className: c, onClick: a });
5198
5186
  case "resourceManager":
5199
- return ut({ width: e, height: t, color: l, className: a, onClick: c });
5187
+ return ut({ width: e, height: t, color: l, className: c, onClick: a });
5200
5188
  case "image":
5201
- return pt({ width: e, height: t, color: l, className: a, onClick: c });
5189
+ return pt({ width: e, height: t, color: l, className: c, onClick: a });
5202
5190
  case "edit":
5203
- return ft({ width: e, height: t, color: l, className: a, onClick: c });
5191
+ return ft({ width: e, height: t, color: l, className: c, onClick: a });
5204
5192
  case "filledArrowRight":
5205
- return mt({ width: e, height: t, color: l, className: a, onClick: c });
5193
+ return mt({ width: e, height: t, color: l, className: c, onClick: a });
5206
5194
  case "burgerMenu":
5207
- return wt({ width: e, height: t, color: l, className: a, onClick: c });
5195
+ return wt({ width: e, height: t, color: l, className: c, onClick: a });
5208
5196
  case "refresh":
5209
- return Lt({ width: e, height: t, color: l, className: a, onClick: c });
5197
+ return Lt({ width: e, height: t, color: l, className: c, onClick: a });
5210
5198
  case "projects":
5211
- return kt({ width: e, height: t, color: l, className: a, onClick: c });
5199
+ return kt({ width: e, height: t, color: l, className: c, onClick: a });
5212
5200
  case "user":
5213
- return Nt({ width: e, height: t, color: l, className: a, onClick: c });
5201
+ return Nt({ width: e, height: t, color: l, className: c, onClick: a });
5214
5202
  case "exit":
5215
- return vt({ width: e, height: t, color: l, className: a, onClick: c });
5203
+ return vt({ width: e, height: t, color: l, className: c, onClick: a });
5216
5204
  case "openPointCircle":
5217
- return Rt({ width: e, height: t, color: l, className: a, onClick: c });
5205
+ return Rt({ width: e, height: t, color: l, className: c, onClick: a });
5218
5206
  case "community":
5219
- return xt({ width: e, height: t, color: l, className: a, onClick: c });
5207
+ return xt({ width: e, height: t, color: l, className: c, onClick: a });
5220
5208
  case "docs":
5221
- return _t({ width: e, height: t, color: l, className: a, onClick: c });
5209
+ return _t({ width: e, height: t, color: l, className: c, onClick: a });
5222
5210
  default:
5223
5211
  return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
5224
5212
  }
5225
5213
  })() });
5226
5214
  };
5227
5215
  var m1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", 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_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-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))(m1 || {});
5228
- const bt = C1({
5216
+ const bt = g1({
5229
5217
  locale: "en",
5230
5218
  theme: "light"
5231
5219
  });
5232
5220
  bt.Provider;
5233
- const C2 = ({
5221
+ const g2 = ({
5234
5222
  children: i,
5235
5223
  width: e,
5236
5224
  size: t = "small",
@@ -5238,7 +5226,7 @@ const C2 = ({
5238
5226
  closable: n = !0,
5239
5227
  disabled: o = !1
5240
5228
  }) => {
5241
- const h = t === "small" ? 10 : 12.5, a = () => {
5229
+ const h = t === "small" ? 10 : 12.5, d = () => {
5242
5230
  o || s == null || s();
5243
5231
  };
5244
5232
  return /* @__PURE__ */ r(
@@ -5252,7 +5240,7 @@ const C2 = ({
5252
5240
  color: o ? m1.GREY_DARK_1 : m1.GREY_DARK_2,
5253
5241
  width: h,
5254
5242
  height: h,
5255
- onClick: a
5243
+ onClick: d
5256
5244
  }
5257
5245
  ),
5258
5246
  bordered: !1,
@@ -5273,7 +5261,7 @@ const C2 = ({
5273
5261
  h2: 2,
5274
5262
  h3: 3,
5275
5263
  h4: 4
5276
- }, At = d1(
5264
+ }, Vt = d1(
5277
5265
  ({
5278
5266
  align: i = "inherit",
5279
5267
  variant: e = "body1",
@@ -5283,32 +5271,32 @@ const C2 = ({
5283
5271
  collapsed: o,
5284
5272
  whiteSpace: h = "normal",
5285
5273
  /** This prop allows you to enable tooltip if text size is too big */
5286
- trim: a = !1
5287
- }, C) => {
5288
- const d = J(null);
5289
- k1(C, () => d.current);
5290
- const [l, c] = O(!1);
5291
- D(() => {
5274
+ trim: d = !1
5275
+ }, l) => {
5276
+ const a = J(null);
5277
+ k1(l, () => a.current);
5278
+ const [c, u] = G(!1);
5279
+ K(() => {
5292
5280
  var v;
5293
- if (!a) return;
5281
+ if (!d) return;
5294
5282
  const m = () => {
5295
- d.current && c(d.current.scrollWidth > d.current.clientWidth);
5283
+ a.current && u(a.current.scrollWidth > a.current.clientWidth);
5296
5284
  };
5297
5285
  m();
5298
5286
  const b = new ResizeObserver(m);
5299
- return d.current && b.observe(d.current), (v = d.current) != null && v.parentElement && b.observe(d.current.parentElement), () => {
5287
+ return a.current && b.observe(a.current), (v = a.current) != null && v.parentElement && b.observe(a.current.parentElement), () => {
5300
5288
  b.disconnect();
5301
5289
  };
5302
- }, [a]);
5290
+ }, [d]);
5303
5291
  const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
5304
5292
  let p = `snmt-typography snmt-typography-${e}`;
5305
5293
  i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed");
5306
5294
  const w = {
5307
5295
  className: p,
5308
- style: { color: t, whiteSpace: a ? "nowrap" : h, display: a ? "block" : "" },
5296
+ style: { color: t, whiteSpace: d ? "nowrap" : h, display: d ? "block" : "" },
5309
5297
  onClick: n,
5310
- ref: d,
5311
- ellipsis: a && l ? {
5298
+ ref: a,
5299
+ ellipsis: d && c ? {
5312
5300
  tooltip: {
5313
5301
  title: s,
5314
5302
  overlayClassName: "snmt-tooltip"
@@ -5317,7 +5305,7 @@ const C2 = ({
5317
5305
  };
5318
5306
  return g ? /* @__PURE__ */ r(yt, { level: Et[e], ...w, children: s }) : /* @__PURE__ */ r(Ht, { ...w, children: s });
5319
5307
  }
5320
- ), Vt = ({
5308
+ ), At = ({
5321
5309
  children: i,
5322
5310
  content: e,
5323
5311
  isOpen: t,
@@ -5326,7 +5314,7 @@ const C2 = ({
5326
5314
  noPadding: o = !1,
5327
5315
  trigger: h = "click"
5328
5316
  }) => {
5329
- const [a, C] = O(!1);
5317
+ const [d, l] = G(!1);
5330
5318
  return /* @__PURE__ */ r(
5331
5319
  b2,
5332
5320
  {
@@ -5335,9 +5323,9 @@ const C2 = ({
5335
5323
  placement: n,
5336
5324
  trigger: h,
5337
5325
  overlayClassName: `snmt-popover ${o ? "" : "padding"}`,
5338
- open: t ?? a,
5339
- onOpenChange: (d) => {
5340
- C(d), s == null || s(d);
5326
+ open: t ?? d,
5327
+ onOpenChange: (a) => {
5328
+ l(a), s == null || s(a);
5341
5329
  },
5342
5330
  children: /* @__PURE__ */ r("div", { className: "wrapper", children: i })
5343
5331
  }
@@ -5347,7 +5335,7 @@ var It = { exports: {} };
5347
5335
  (function(i, e) {
5348
5336
  (function(t, s) {
5349
5337
  i.exports = s();
5350
- })(V2, function() {
5338
+ })(A2, function() {
5351
5339
  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) {
5352
5340
  var s = ["th", "st", "nd", "rd"], n = t % 100;
5353
5341
  return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
@@ -5363,38 +5351,38 @@ const Ot = ({
5363
5351
  options: o,
5364
5352
  extraOptions: h
5365
5353
  }) => {
5366
- const { locale: a } = r1(T1), { t: C } = z2("common", { lng: a }), [d, l] = O(!1);
5367
- if (D(() => {
5368
- i.length || l(!1);
5354
+ const { locale: d } = r1(T1), { t: l } = z2("common", { lng: d }), [a, c] = G(!1);
5355
+ if (K(() => {
5356
+ i.length || c(!1);
5369
5357
  }, [i]), !i.length)
5370
5358
  return null;
5371
- const c = (g) => {
5359
+ const u = (g) => {
5372
5360
  var p, w;
5373
5361
  return ((p = o == null ? void 0 : o.find((v) => v.value === g)) == null ? void 0 : p.label) || ((w = h == null ? void 0 : h.find((v) => v.value === g)) == null ? void 0 : w.label) || g;
5374
5362
  };
5375
- return /* @__PURE__ */ u(
5376
- Vt,
5363
+ return /* @__PURE__ */ C(
5364
+ At,
5377
5365
  {
5378
5366
  content: (
5379
5367
  // 90: paddings + margins + gaps and so on
5380
5368
  /* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ r(f1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: g }) => /* @__PURE__ */ r(
5381
- C2,
5369
+ g2,
5382
5370
  {
5383
5371
  onClose: () => e(g),
5384
5372
  closable: s,
5385
5373
  disabled: n,
5386
- children: c(g)
5374
+ children: u(g)
5387
5375
  },
5388
5376
  g
5389
5377
  )) }) })
5390
5378
  ),
5391
5379
  placement: "bottomRight",
5392
- isOpen: d,
5393
- setIsOpen: l,
5380
+ isOpen: a,
5381
+ setIsOpen: c,
5394
5382
  children: [
5395
5383
  i.length,
5396
5384
  " ",
5397
- C("more")
5385
+ l("more")
5398
5386
  ]
5399
5387
  }
5400
5388
  );
@@ -5402,7 +5390,7 @@ const Ot = ({
5402
5390
  small: 20,
5403
5391
  medium: 28,
5404
5392
  large: 48
5405
- }, P1 = ({ size: i = "medium", color: e = "#004ed7" }) => {
5393
+ }, $1 = ({ size: i = "medium", color: e = "#004ed7" }) => {
5406
5394
  const t = Zt[i], s = `no-repeat linear-gradient(${e}
5407
5395
  calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, n = {
5408
5396
  width: t,
@@ -5419,11 +5407,11 @@ const Ot = ({
5419
5407
  search: n = !1,
5420
5408
  options: o,
5421
5409
  width: h,
5422
- disabled: a = !1,
5423
- required: C = !1,
5424
- clearable: d = !1,
5425
- scrollThresholdValue: l = 50,
5426
- onSearchChange: c,
5410
+ disabled: d = !1,
5411
+ required: l = !1,
5412
+ clearable: a = !1,
5413
+ scrollThresholdValue: c = 50,
5414
+ onSearchChange: u,
5427
5415
  onDropdownVisibleChange: g,
5428
5416
  onScrollToEnd: p,
5429
5417
  onPopupScroll: w,
@@ -5435,65 +5423,65 @@ const Ot = ({
5435
5423
  readOnly: f,
5436
5424
  error: x
5437
5425
  }, _) => {
5438
- const [R, j] = O(!1), [q, F] = O(!1), [E, T] = O(!0), [A, Z] = O(i), G = J(null);
5439
- D(() => {
5440
- Z(i);
5426
+ const [R, j] = G(!1), [q, F] = G(!1), [E, D] = G(!0), [V, O] = G(i), S = J(null);
5427
+ K(() => {
5428
+ O(i);
5441
5429
  }, [i]);
5442
5430
  const B = (N) => {
5443
5431
  j(N), g && g(N);
5444
5432
  }, U = (N, H) => {
5445
- var K;
5446
- return !!((K = H == null ? void 0 : H.label) != null && K.toString().toLowerCase().includes(N.toLowerCase()));
5447
- }, V = () => {
5433
+ var T;
5434
+ return !!((T = H == null ? void 0 : H.label) != null && T.toString().toLowerCase().includes(N.toLowerCase()));
5435
+ }, A = () => {
5448
5436
  F(!0);
5449
- }, $ = () => {
5437
+ }, P = () => {
5450
5438
  F(!1);
5451
- }, Y = P(
5439
+ }, Y = $(
5452
5440
  (N) => {
5453
- if (Z(N), s) {
5454
- const K = N;
5455
- e == null || e(K);
5441
+ if (O(N), s) {
5442
+ const T = N;
5443
+ e == null || e(T);
5456
5444
  return;
5457
5445
  }
5458
5446
  const H = N;
5459
5447
  e == null || e(H);
5460
5448
  },
5461
5449
  [s, e]
5462
- ), e1 = P(() => {
5463
- if (!(f || a)) {
5450
+ ), e1 = $(() => {
5451
+ if (!(f || d)) {
5464
5452
  if (s) {
5465
5453
  Y([]);
5466
5454
  return;
5467
5455
  }
5468
5456
  Y("");
5469
5457
  }
5470
- }, [a, Y, s, f]), t1 = P(
5458
+ }, [d, Y, s, f]), t1 = $(
5471
5459
  (N) => {
5472
- const H = A.filter((K) => K !== N);
5473
- Y(H), Z(H);
5460
+ const H = V.filter((T) => T !== N);
5461
+ Y(H), O(H);
5474
5462
  },
5475
- [Y, A]
5476
- ), g1 = P(
5477
- (N) => (A == null ? void 0 : A.indexOf(N)) === 0 ? (
5463
+ [Y, V]
5464
+ ), C1 = $(
5465
+ (N) => (V == null ? void 0 : V.indexOf(N)) === 0 ? (
5478
5466
  // if the search input is empty
5479
5467
  // then display the placeholder, else do not display it
5480
5468
  /* @__PURE__ */ r("span", { className: "custom-placeholder", children: E ? t : "" })
5481
5469
  ) : /* @__PURE__ */ r(i1, {}),
5482
- [E, A, t]
5470
+ [E, V, t]
5483
5471
  ), v1 = (N) => {
5484
5472
  N.preventDefault(), N.stopPropagation();
5485
5473
  }, N1 = async (N) => {
5486
5474
  const { target: H } = N;
5487
- H.scrollTop + H.offsetHeight >= H.scrollHeight - l && (p == null || p(!0)), w && await w(N);
5488
- }, o1 = P(
5475
+ H.scrollTop + H.offsetHeight >= H.scrollHeight - c && (p == null || p(!0)), w && await w(N);
5476
+ }, o1 = $(
5489
5477
  (N) => {
5490
- var H, K;
5491
- return ((H = o.find((a1) => a1.value === N)) == null ? void 0 : H.label) || ((K = m == null ? void 0 : m.find(
5478
+ var H, T;
5479
+ return ((H = o.find((a1) => a1.value === N)) == null ? void 0 : H.label) || ((T = m == null ? void 0 : m.find(
5492
5480
  (a1) => a1.value === N
5493
- )) == null ? void 0 : K.label) || N;
5481
+ )) == null ? void 0 : T.label) || N;
5494
5482
  },
5495
5483
  [m, o]
5496
- ), R1 = P(
5484
+ ), R1 = $(
5497
5485
  (N) => {
5498
5486
  var H;
5499
5487
  return /* @__PURE__ */ r(
@@ -5501,26 +5489,26 @@ const Ot = ({
5501
5489
  {
5502
5490
  values: N,
5503
5491
  onTagClose: t1,
5504
- maxWidth: ((H = G.current) == null ? void 0 : H.clientWidth) || 0,
5505
- disabled: a,
5492
+ maxWidth: ((H = S.current) == null ? void 0 : H.clientWidth) || 0,
5493
+ disabled: d,
5506
5494
  closable: !f,
5507
5495
  options: o,
5508
5496
  extraOptions: m
5509
5497
  }
5510
5498
  );
5511
5499
  },
5512
- [a, m, t1, o, f]
5513
- ), S = P(
5514
- ({ label: N, value: H, mode: K }) => K === "filter" ? g1(H) : /* @__PURE__ */ r("div", { onMouseDown: v1, className: "tag-wrapper", children: /* @__PURE__ */ r(C2, { onClose: () => t1(H), disabled: a, children: typeof N == "object" ? N : o1(H) }) }),
5515
- [a, o1, t1, g1]
5516
- ), z = Array.isArray(A) && A.length > 0 || !!A && typeof A == "string" && A.trim() !== "";
5517
- return /* @__PURE__ */ u("div", { className: "snmt-select-container", children: [
5518
- /* @__PURE__ */ u(
5500
+ [d, m, t1, o, f]
5501
+ ), Z = $(
5502
+ ({ label: N, value: H, mode: T }) => T === "filter" ? C1(H) : /* @__PURE__ */ r("div", { onMouseDown: v1, className: "tag-wrapper", children: /* @__PURE__ */ r(g2, { onClose: () => t1(H), disabled: d, children: typeof N == "object" ? N : o1(H) }) }),
5503
+ [d, o1, t1, C1]
5504
+ ), z = Array.isArray(V) && V.length > 0 || !!V && typeof V == "string" && V.trim() !== "";
5505
+ return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
5506
+ /* @__PURE__ */ C(
5519
5507
  "div",
5520
5508
  {
5521
5509
  className: `snmt-select-1-15-6 ${q ? "snmt-select-focused" : ""}
5522
5510
  ${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
5523
- ref: G,
5511
+ ref: S,
5524
5512
  style: { width: h },
5525
5513
  children: [
5526
5514
  /* @__PURE__ */ r(
@@ -5533,39 +5521,39 @@ const Ot = ({
5533
5521
  showSearch: !!n,
5534
5522
  filterOption: n && U,
5535
5523
  onDropdownVisibleChange: B,
5536
- disabled: a,
5537
- value: A || void 0,
5524
+ disabled: d,
5525
+ value: V || void 0,
5538
5526
  labelRender: (N) => {
5539
5527
  const H = o1(N.value);
5540
- return a ? /* @__PURE__ */ r("span", { style: { color: Q.GREY_DARK_1 }, children: H }) : H;
5528
+ return d ? /* @__PURE__ */ r("span", { style: { color: Q.GREY_DARK_1 }, children: H }) : H;
5541
5529
  },
5542
5530
  mode: s === "filter" ? "multiple" : s,
5543
5531
  onChange: Y,
5544
- onFocus: V,
5545
- onBlur: $,
5532
+ onFocus: A,
5533
+ onBlur: P,
5546
5534
  onSearch: (N) => {
5547
- T(!N), c && c(N);
5535
+ D(!N), u && u(N);
5548
5536
  },
5549
- onSelect: () => T(!0),
5550
- onDeselect: () => T(!0),
5551
- tagRender: (N) => S({ ...N, mode: s }),
5537
+ onSelect: () => D(!0),
5538
+ onDeselect: () => D(!0),
5539
+ tagRender: (N) => Z({ ...N, mode: s }),
5552
5540
  maxTagCount: "responsive",
5553
5541
  maxTagPlaceholder: R1,
5554
5542
  onPopupScroll: N1,
5555
- prefix: I && /* @__PURE__ */ r(P1, { size: "small" }),
5556
- suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(i1, { children: [
5557
- A && !!A.length && (s || d) && /* @__PURE__ */ r(
5543
+ prefix: I && /* @__PURE__ */ r($1, { size: "small" }),
5544
+ suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(i1, { children: [
5545
+ V && !!V.length && (s || a) && /* @__PURE__ */ r(
5558
5546
  "div",
5559
5547
  {
5560
5548
  onClick: e1,
5561
5549
  style: {
5562
- cursor: a ? "not-allowed" : "pointer"
5550
+ cursor: d ? "not-allowed" : "pointer"
5563
5551
  },
5564
5552
  children: /* @__PURE__ */ r(
5565
5553
  u1,
5566
5554
  {
5567
5555
  name: "cancel",
5568
- color: a ? Q.GREY_DARK_1 : Q.GREY_DARK_2
5556
+ color: d ? Q.GREY_DARK_1 : Q.GREY_DARK_2
5569
5557
  }
5570
5558
  )
5571
5559
  }
@@ -5574,7 +5562,7 @@ const Ot = ({
5574
5562
  u1,
5575
5563
  {
5576
5564
  name: "selectArrowIcon",
5577
- color: a ? Q.GREY_DARK_1 : Q.GREY_DARK_5,
5565
+ color: d ? Q.GREY_DARK_1 : Q.GREY_DARK_5,
5578
5566
  className: R ? "select-arrow-rotated" : "select-arrow",
5579
5567
  onClick: () => j(!R)
5580
5568
  }
@@ -5582,47 +5570,47 @@ const Ot = ({
5582
5570
  ] }) }),
5583
5571
  removeIcon: /* @__PURE__ */ r(u1, { name: "cancelCircle", color: Q.GREY_DARK_1 }),
5584
5572
  options: o,
5585
- optionRender: (N) => y ? y(N.data) : /* @__PURE__ */ u(f1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
5586
- /* @__PURE__ */ u(f1, { alignItems: "center", gap: 12, children: [
5573
+ optionRender: (N) => y ? y(N.data) : /* @__PURE__ */ C(f1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
5574
+ /* @__PURE__ */ C(f1, { alignItems: "center", gap: 12, children: [
5587
5575
  s && /* @__PURE__ */ r(
5588
5576
  t5,
5589
5577
  {
5590
- checked: !!(A != null && A.includes(N.value))
5578
+ checked: !!(V != null && V.includes(N.value))
5591
5579
  }
5592
5580
  ),
5593
- /* @__PURE__ */ u(f1, { alignItems: "center", gap: 8, children: [
5581
+ /* @__PURE__ */ C(f1, { alignItems: "center", gap: 8, children: [
5594
5582
  N.data.image && /* @__PURE__ */ r(J2, { src: N.data.image, size: 20 }),
5595
5583
  /* @__PURE__ */ r("span", { children: N.label })
5596
5584
  ] })
5597
5585
  ] }),
5598
- !s && A === N.value && /* @__PURE__ */ r(u1, { name: "check", color: Q.BLUE_DARK_1 })
5586
+ !s && V === N.value && /* @__PURE__ */ r(u1, { name: "check", color: Q.BLUE_DARK_1 })
5599
5587
  ] }),
5600
- dropdownRender: (N) => /* @__PURE__ */ u("div", { className: "dropdown-container", children: [
5588
+ dropdownRender: (N) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
5601
5589
  /* @__PURE__ */ r("div", { className: "dropdown-menu", children: b ? b(N) : N }),
5602
- I && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(P1, {}) })
5590
+ I && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r($1, {}) })
5603
5591
  ] })
5604
5592
  }
5605
5593
  ),
5606
- t && /* @__PURE__ */ u(i1, { children: [
5594
+ t && /* @__PURE__ */ C(i1, { children: [
5607
5595
  /* @__PURE__ */ r(
5608
5596
  "label",
5609
5597
  {
5610
- className: `${q || z ? "label-floating" : ""} ${a ? "label-disabled" : ""} ${q ? "label-focused" : ""} ${I ? "label-loading" : ""} ${x ? "label-error" : ""}`,
5611
- children: C ? `${t}*` : t
5598
+ className: `${q || z ? "label-floating" : ""} ${d ? "label-disabled" : ""} ${q ? "label-focused" : ""} ${I ? "label-loading" : ""} ${x ? "label-error" : ""}`,
5599
+ children: l ? `${t}*` : t
5612
5600
  }
5613
5601
  ),
5614
5602
  /* @__PURE__ */ r(
5615
5603
  "fieldset",
5616
5604
  {
5617
- className: `${q ? "fieldset-focused" : ""} ${a ? "fieldset-disabled" : ""} ${z ? "fieldset-filled" : ""} ${x ? "fieldset-error" : ""}`,
5618
- children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: C ? `${t}*` : t }) })
5605
+ className: `${q ? "fieldset-focused" : ""} ${d ? "fieldset-disabled" : ""} ${z ? "fieldset-filled" : ""} ${x ? "fieldset-error" : ""}`,
5606
+ children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: l ? `${t}*` : t }) })
5619
5607
  }
5620
5608
  )
5621
5609
  ] })
5622
5610
  ]
5623
5611
  }
5624
5612
  ),
5625
- x && /* @__PURE__ */ u(f1, { justifyContent: "flex-start", gap: 6, children: [
5613
+ x && /* @__PURE__ */ C(f1, { justifyContent: "flex-start", gap: 6, children: [
5626
5614
  /* @__PURE__ */ r(
5627
5615
  u1,
5628
5616
  {
@@ -5632,14 +5620,14 @@ const Ot = ({
5632
5620
  width: 16
5633
5621
  }
5634
5622
  ),
5635
- typeof x == "string" ? /* @__PURE__ */ r(At, { color: Q.NOTIFICATION_ERROR_DARK, variant: "body4", children: x }) : x
5623
+ typeof x == "string" ? /* @__PURE__ */ r(Vt, { color: Q.NOTIFICATION_ERROR_DARK, variant: "body4", children: x }) : x
5636
5624
  ] })
5637
5625
  ] });
5638
5626
  }
5639
5627
  );
5640
5628
  function St(i, e = 500) {
5641
5629
  const t = J();
5642
- return D(() => () => {
5630
+ return K(() => () => {
5643
5631
  t.current && clearTimeout(t.current);
5644
5632
  }, []), (...s) => {
5645
5633
  const n = setTimeout(() => {
@@ -5650,11 +5638,11 @@ function St(i, e = 500) {
5650
5638
  }
5651
5639
  function F1(i) {
5652
5640
  const e = J(i);
5653
- return D(() => {
5641
+ return K(() => {
5654
5642
  e.current = i;
5655
5643
  }, [i]), e.current;
5656
5644
  }
5657
- const A1 = 100, l1 = {
5645
+ const V1 = 100, l1 = {
5658
5646
  offset: 0
5659
5647
  }, W1 = d1(
5660
5648
  ({
@@ -5665,11 +5653,11 @@ const A1 = 100, l1 = {
5665
5653
  id: n,
5666
5654
  disabled: o,
5667
5655
  scrollThresholdValue: h,
5668
- placeholder: a,
5669
- mode: C,
5670
- loadOnClosedState: d,
5671
- preloadOptions: l,
5672
- extraOptions: c,
5656
+ placeholder: d,
5657
+ mode: l,
5658
+ loadOnClosedState: a,
5659
+ preloadOptions: c,
5660
+ extraOptions: u,
5673
5661
  onDropdownVisibleChange: g,
5674
5662
  optionRender: p,
5675
5663
  dropdownRender: w,
@@ -5678,25 +5666,25 @@ const A1 = 100, l1 = {
5678
5666
  required: b = !1,
5679
5667
  error: y
5680
5668
  }, I) => {
5681
- const [f, x] = O(), [_, R] = O(l1), [j, q] = O(!1), [F, E] = O(), [T, A] = O(!1), [Z, G] = O(
5682
- c ?? []
5683
- ), B = F1(_.offset), U = F1(F), [V, $] = O(!1), Y = J(!1), e1 = P(
5669
+ const [f, x] = G(), [_, R] = G(l1), [j, q] = G(!1), [F, E] = G(), [D, V] = G(!1), [O, S] = G(
5670
+ u ?? []
5671
+ ), B = F1(_.offset), U = F1(F), [A, P] = G(!1), Y = J(!1), e1 = $(
5684
5672
  async ({
5685
- limit: S = A1,
5673
+ limit: Z = V1,
5686
5674
  offset: z,
5687
5675
  search: N
5688
5676
  }) => {
5689
5677
  q(!0);
5690
5678
  try {
5691
5679
  const H = await i({
5692
- limit: S,
5680
+ limit: Z,
5693
5681
  offset: z,
5694
5682
  search: N
5695
5683
  });
5696
5684
  x(
5697
- (K) => z === 0 ? H.options : [...K ?? [], ...H.options]
5698
- ), R((K) => ({
5699
- ...K,
5685
+ (T) => z === 0 ? H.options : [...T ?? [], ...H.options]
5686
+ ), R((T) => ({
5687
+ ...T,
5700
5688
  count: H.count
5701
5689
  }));
5702
5690
  } catch (H) {
@@ -5706,58 +5694,58 @@ const A1 = 100, l1 = {
5706
5694
  }
5707
5695
  },
5708
5696
  [i]
5709
- ), t1 = St((S) => {
5710
- E(S), S || R(l1);
5711
- }), g1 = P(
5712
- (S) => t1(S),
5697
+ ), t1 = St((Z) => {
5698
+ E(Z), Z || R(l1);
5699
+ }), C1 = $(
5700
+ (Z) => t1(Z),
5713
5701
  [t1]
5714
- ), v1 = P(
5715
- async (S) => {
5716
- j || S && _.count && _.count > ((f == null ? void 0 : f.length) ?? 0) && R((z) => ({
5702
+ ), v1 = $(
5703
+ async (Z) => {
5704
+ j || Z && _.count && _.count > ((f == null ? void 0 : f.length) ?? 0) && R((z) => ({
5717
5705
  ...z,
5718
- offset: z.offset + A1
5706
+ offset: z.offset + V1
5719
5707
  }));
5720
5708
  },
5721
5709
  [j, f == null ? void 0 : f.length, _.count]
5722
- ), N1 = P(
5723
- (S) => {
5724
- A(S), !S && F && (E(void 0), R(l1), $(!0)), g == null || g(S);
5710
+ ), N1 = $(
5711
+ (Z) => {
5712
+ V(Z), !Z && F && (E(void 0), R(l1), P(!0)), g == null || g(Z);
5725
5713
  },
5726
5714
  [g, F]
5727
5715
  );
5728
- D(() => {
5729
- !Y.current || j || (V || T && (B !== _.offset || U !== F || !f)) && (e1({ offset: _.offset, limit: A1, search: F }), V && $(!1));
5730
- }, [V, T, _.offset, F, B, U, f, j]), D(() => {
5731
- (d || l) && e1(l1), Y.current = !0;
5732
- }, []), D(() => {
5733
- c && G((S) => {
5734
- const z = c.filter(
5735
- (N) => !S.some((H) => H.value === N.value)
5716
+ K(() => {
5717
+ !Y.current || j || (A || D && (B !== _.offset || U !== F || !f)) && (e1({ offset: _.offset, limit: V1, search: F }), A && P(!1));
5718
+ }, [A, D, _.offset, F, B, U, f, j]), K(() => {
5719
+ (a || c) && e1(l1), Y.current = !0;
5720
+ }, []), K(() => {
5721
+ u && S((Z) => {
5722
+ const z = u.filter(
5723
+ (N) => !Z.some((H) => H.value === N.value)
5736
5724
  );
5737
- return [...S, ...z];
5725
+ return [...Z, ...z];
5738
5726
  });
5739
- }, [c]);
5740
- const o1 = P(
5741
- (S) => {
5742
- t && t(S);
5727
+ }, [u]);
5728
+ const o1 = $(
5729
+ (Z) => {
5730
+ t && t(Z);
5743
5731
  let z = [];
5744
- if (C ? z = Array.isArray(S) ? S : [] : z = S ? [S] : [], F) {
5732
+ if (l ? z = Array.isArray(Z) ? Z : [] : z = Z ? [Z] : [], F) {
5745
5733
  const N = z.filter(
5746
- (H) => !(Z != null && Z.some((K) => K.value === H))
5734
+ (H) => !(O != null && O.some((T) => T.value === H))
5747
5735
  );
5748
- N.length > 0 && G((H = []) => [
5736
+ N.length > 0 && S((H = []) => [
5749
5737
  ...H,
5750
- ...N.map((K) => {
5751
- const a1 = f == null ? void 0 : f.find((w2) => w2.value === K);
5738
+ ...N.map((T) => {
5739
+ const a1 = f == null ? void 0 : f.find((w2) => w2.value === T);
5752
5740
  return {
5753
- value: K,
5754
- label: (a1 == null ? void 0 : a1.label) ?? K
5741
+ value: T,
5742
+ label: (a1 == null ? void 0 : a1.label) ?? T
5755
5743
  };
5756
5744
  })
5757
- ]), E(void 0), R(l1), $(!0);
5745
+ ]), E(void 0), R(l1), P(!0);
5758
5746
  }
5759
5747
  },
5760
- [t, F, C, f, Z]
5748
+ [t, F, l, f, O]
5761
5749
  ), R1 = v2(
5762
5750
  () => ({
5763
5751
  id: n,
@@ -5765,15 +5753,15 @@ const A1 = 100, l1 = {
5765
5753
  options: f || [],
5766
5754
  onChange: o1,
5767
5755
  ref: I,
5768
- placeholder: a,
5756
+ placeholder: d,
5769
5757
  search: !0,
5770
5758
  value: s,
5771
- onSearchChange: g1,
5759
+ onSearchChange: C1,
5772
5760
  onDropdownVisibleChange: N1,
5773
5761
  scrollThresholdValue: h,
5774
5762
  onScrollToEnd: v1,
5775
5763
  disabled: o,
5776
- extraOptions: Z,
5764
+ extraOptions: O,
5777
5765
  isLoading: j,
5778
5766
  optionRender: p,
5779
5767
  dropdownRender: w,
@@ -5788,14 +5776,14 @@ const A1 = 100, l1 = {
5788
5776
  f,
5789
5777
  o1,
5790
5778
  I,
5791
- a,
5779
+ d,
5792
5780
  s,
5793
- g1,
5781
+ C1,
5794
5782
  N1,
5795
5783
  h,
5796
5784
  v1,
5797
5785
  o,
5798
- Z,
5786
+ O,
5799
5787
  j,
5800
5788
  p,
5801
5789
  w,
@@ -5807,9 +5795,9 @@ const A1 = 100, l1 = {
5807
5795
  );
5808
5796
  return k1(I, () => ({
5809
5797
  refetchOptions: async () => {
5810
- R(l1), E(void 0), $(!0);
5798
+ R(l1), E(void 0), P(!0);
5811
5799
  }
5812
- })), C ? /* @__PURE__ */ r(j1, { ...R1, value: s, mode: C }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(j1, { ...R1, value: s }) });
5800
+ })), l ? /* @__PURE__ */ r(j1, { ...R1, value: s, mode: l }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(j1, { ...R1, value: s }) });
5813
5801
  }
5814
5802
  );
5815
5803
  var _1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(_1 || {});
@@ -5839,7 +5827,7 @@ function Z1() {
5839
5827
  e[t] = arguments[t];
5840
5828
  n1(e[0]) && U1[e[0]] || (n1(e[0]) && (U1[e[0]] = /* @__PURE__ */ new Date()), Tt(...e));
5841
5829
  }
5842
- const g2 = (i, e) => () => {
5830
+ const C2 = (i, e) => () => {
5843
5831
  if (i.isInitialized)
5844
5832
  e();
5845
5833
  else {
@@ -5851,18 +5839,18 @@ const g2 = (i, e) => () => {
5851
5839
  i.on("initialized", t);
5852
5840
  }
5853
5841
  }, z1 = (i, e, t) => {
5854
- i.loadNamespaces(e, g2(i, t));
5842
+ i.loadNamespaces(e, C2(i, t));
5855
5843
  }, J1 = (i, e, t, s) => {
5856
5844
  n1(t) && (t = [t]), t.forEach((n) => {
5857
5845
  i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
5858
- }), i.loadLanguages(e, g2(i, s));
5846
+ }), i.loadLanguages(e, C2(i, s));
5859
5847
  }, Kt = function(i, e) {
5860
5848
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5861
5849
  const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
5862
5850
  if (s.toLowerCase() === "cimode") return !0;
5863
- const h = (a, C) => {
5864
- const d = e.services.backendConnector.state[`${a}|${C}`];
5865
- return d === -1 || d === 2;
5851
+ const h = (d, l) => {
5852
+ const a = e.services.backendConnector.state[`${d}|${l}`];
5853
+ return a === -1 || a === 2;
5866
5854
  };
5867
5855
  return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(s, i) && (!n || h(o, i)));
5868
5856
  }, Bt = function(i, e) {
@@ -5873,7 +5861,7 @@ const g2 = (i, e) => () => {
5873
5861
  if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !o(n.isLanguageChangingTo, i)) return !1;
5874
5862
  }
5875
5863
  }) : Kt(i, e, t);
5876
- }, n1 = (i) => typeof i == "string", Yt = (i) => typeof i == "object" && i !== null, $t = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Pt = {
5864
+ }, n1 = (i) => typeof i == "string", Yt = (i) => typeof i == "object" && i !== null, Pt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, $t = {
5877
5865
  "&amp;": "&",
5878
5866
  "&#38;": "&",
5879
5867
  "&lt;": "<",
@@ -5894,7 +5882,7 @@ const g2 = (i, e) => () => {
5894
5882
  "&#8230;": "…",
5895
5883
  "&#x2F;": "/",
5896
5884
  "&#47;": "/"
5897
- }, jt = (i) => Pt[i], Ft = (i) => i.replace($t, jt);
5885
+ }, jt = (i) => $t[i], Ft = (i) => i.replace(Pt, jt);
5898
5886
  let S1 = {
5899
5887
  bindI18n: "languageChanged",
5900
5888
  bindI18nStore: "",
@@ -5920,7 +5908,7 @@ const zt = (i) => {
5920
5908
  init(i) {
5921
5909
  Wt(i.options.react), zt(i);
5922
5910
  }
5923
- }, Qt = C1();
5911
+ }, Qt = g1();
5924
5912
  class Xt {
5925
5913
  constructor() {
5926
5914
  K1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
@@ -5934,10 +5922,10 @@ class Xt {
5934
5922
  }
5935
5923
  const e7 = (i, e) => {
5936
5924
  const t = J();
5937
- return D(() => {
5925
+ return K(() => {
5938
5926
  t.current = i;
5939
5927
  }, [i, e]), t.current;
5940
- }, p2 = (i, e, t, s) => i.getFixedT(e, t, s), t7 = (i, e, t, s) => P(p2(i, e, t, s), [i, e, t, s]), i7 = function(i) {
5928
+ }, p2 = (i, e, t, s) => i.getFixedT(e, t, s), t7 = (i, e, t, s) => $(p2(i, e, t, s), [i, e, t, s]), i7 = function(i) {
5941
5929
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5942
5930
  const {
5943
5931
  i18n: t
@@ -5956,38 +5944,38 @@ const e7 = (i, e) => {
5956
5944
  ...o.options.react,
5957
5945
  ...e
5958
5946
  }, {
5959
- useSuspense: a,
5960
- keyPrefix: C
5947
+ useSuspense: d,
5948
+ keyPrefix: l
5961
5949
  } = h;
5962
- let d = i;
5963
- d = n1(d) ? [d] : d || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(d);
5964
- const l = (o.isInitialized || o.initializedStoreOnce) && d.every((f) => Bt(f, o, h)), c = t7(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C), g = () => c, p = () => p2(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C), [w, v] = O(g);
5965
- let m = d.join();
5950
+ let a = i;
5951
+ a = n1(a) ? [a] : a || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(a);
5952
+ const c = (o.isInitialized || o.initializedStoreOnce) && a.every((f) => Bt(f, o, h)), u = t7(o, e.lng || null, h.nsMode === "fallback" ? a : a[0], l), g = () => u, p = () => p2(o, e.lng || null, h.nsMode === "fallback" ? a : a[0], l), [w, v] = G(g);
5953
+ let m = a.join();
5966
5954
  e.lng && (m = `${e.lng}${m}`);
5967
5955
  const b = e7(m), y = J(!0);
5968
- D(() => {
5956
+ K(() => {
5969
5957
  const {
5970
5958
  bindI18n: f,
5971
5959
  bindI18nStore: x
5972
5960
  } = h;
5973
- y.current = !0, !l && !a && (e.lng ? J1(o, e.lng, d, () => {
5961
+ y.current = !0, !c && !d && (e.lng ? J1(o, e.lng, a, () => {
5974
5962
  y.current && v(p);
5975
- }) : z1(o, d, () => {
5963
+ }) : z1(o, a, () => {
5976
5964
  y.current && v(p);
5977
- })), l && b && b !== m && y.current && v(p);
5965
+ })), c && b && b !== m && y.current && v(p);
5978
5966
  const _ = () => {
5979
5967
  y.current && v(p);
5980
5968
  };
5981
5969
  return f && o && o.on(f, _), x && o && o.store.on(x, _), () => {
5982
5970
  y.current = !1, f && o && f.split(" ").forEach((R) => o.off(R, _)), x && o && x.split(" ").forEach((R) => o.store.off(R, _));
5983
5971
  };
5984
- }, [o, m]), D(() => {
5985
- y.current && l && v(g);
5986
- }, [o, C, l]);
5987
- const I = [w, o, l];
5988
- if (I.t = w, I.i18n = o, I.ready = l, l || !l && !a) return I;
5972
+ }, [o, m]), K(() => {
5973
+ y.current && c && v(g);
5974
+ }, [o, l, c]);
5975
+ const I = [w, o, c];
5976
+ if (I.t = w, I.i18n = o, I.ready = c, c || !c && !d) return I;
5989
5977
  throw new Promise((f) => {
5990
- e.lng ? J1(o, e.lng, d, () => f()) : z1(o, d, () => f());
5978
+ e.lng ? J1(o, e.lng, a, () => f()) : z1(o, a, () => f());
5991
5979
  });
5992
5980
  }, M = (i) => typeof i == "string", p1 = () => {
5993
5981
  let i, e;
@@ -6020,10 +6008,10 @@ const e7 = (i, e) => {
6020
6008
  s[n] = t;
6021
6009
  return;
6022
6010
  }
6023
- let o = e[e.length - 1], h = e.slice(0, e.length - 1), a = w1(i, h, Object);
6024
- for (; a.obj === void 0 && h.length; )
6025
- o = `${h[h.length - 1]}.${o}`, h = h.slice(0, h.length - 1), a = w1(i, h, Object), a && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
6026
- a.obj[`${a.k}.${o}`] = t;
6011
+ let o = e[e.length - 1], h = e.slice(0, e.length - 1), d = w1(i, h, Object);
6012
+ for (; d.obj === void 0 && h.length; )
6013
+ o = `${h[h.length - 1]}.${o}`, h = h.slice(0, h.length - 1), d = w1(i, h, Object), d && d.obj && typeof d.obj[`${d.k}.${o}`] < "u" && (d.obj = void 0);
6014
+ d.obj[`${d.k}.${o}`] = t;
6027
6015
  }, r7 = (i, e, t, s) => {
6028
6016
  const {
6029
6017
  obj: n,
@@ -6066,7 +6054,7 @@ class c7 {
6066
6054
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
6067
6055
  }
6068
6056
  }
6069
- const h7 = [" ", ",", "?", "!", ";"], d7 = new c7(20), C7 = (i, e, t) => {
6057
+ const h7 = [" ", ",", "?", "!", ";"], d7 = new c7(20), g7 = (i, e, t) => {
6070
6058
  e = e || "", t = t || "";
6071
6059
  const s = h7.filter((h) => e.indexOf(h) < 0 && t.indexOf(h) < 0);
6072
6060
  if (s.length === 0) return !0;
@@ -6086,18 +6074,18 @@ const h7 = [" ", ",", "?", "!", ";"], d7 = new c7(20), C7 = (i, e, t) => {
6086
6074
  for (let o = 0; o < s.length; ) {
6087
6075
  if (!n || typeof n != "object")
6088
6076
  return;
6089
- let h, a = "";
6090
- for (let C = o; C < s.length; ++C)
6091
- if (C !== o && (a += t), a += s[C], h = n[a], h !== void 0) {
6092
- if (["string", "number", "boolean"].indexOf(typeof h) > -1 && C < s.length - 1)
6077
+ let h, d = "";
6078
+ for (let l = o; l < s.length; ++l)
6079
+ if (l !== o && (d += t), d += s[l], h = n[d], h !== void 0) {
6080
+ if (["string", "number", "boolean"].indexOf(typeof h) > -1 && l < s.length - 1)
6093
6081
  continue;
6094
- o += C - o + 1;
6082
+ o += l - o + 1;
6095
6083
  break;
6096
6084
  }
6097
6085
  n = h;
6098
6086
  }
6099
6087
  return n;
6100
- }, b1 = (i) => i && i.replace("_", "-"), g7 = {
6088
+ }, b1 = (i) => i && i.replace("_", "-"), C7 = {
6101
6089
  type: "logger",
6102
6090
  log(i) {
6103
6091
  this.output("log", i);
@@ -6119,7 +6107,7 @@ class y1 {
6119
6107
  }
6120
6108
  init(e) {
6121
6109
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6122
- this.prefix = t.prefix || "i18next:", this.logger = e || g7, this.options = t, this.debug = t.debug;
6110
+ this.prefix = t.prefix || "i18next:", this.logger = e || C7, this.options = t, this.debug = t.debug;
6123
6111
  }
6124
6112
  log() {
6125
6113
  for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
@@ -6179,13 +6167,13 @@ class E1 {
6179
6167
  for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
6180
6168
  s[n - 1] = arguments[n];
6181
6169
  this.observers[e] && Array.from(this.observers[e].entries()).forEach((h) => {
6182
- let [a, C] = h;
6183
- for (let d = 0; d < C; d++)
6184
- a(...s);
6170
+ let [d, l] = h;
6171
+ for (let a = 0; a < l; a++)
6172
+ d(...s);
6185
6173
  }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((h) => {
6186
- let [a, C] = h;
6187
- for (let d = 0; d < C; d++)
6188
- a.apply(a, [e, ...s]);
6174
+ let [d, l] = h;
6175
+ for (let a = 0; a < l; a++)
6176
+ d.apply(d, [e, ...s]);
6189
6177
  });
6190
6178
  }
6191
6179
  }
@@ -6207,18 +6195,18 @@ class t2 extends E1 {
6207
6195
  getResource(e, t, s) {
6208
6196
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
6209
6197
  const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, h = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
6210
- let a;
6211
- e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], s && (Array.isArray(s) ? a.push(...s) : M(s) && o ? a.push(...s.split(o)) : a.push(s)));
6212
- const C = M1(this.data, a);
6213
- return !C && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), C || !h || !M(s) ? C : G1(this.data && this.data[e] && this.data[e][t], s, o);
6198
+ let d;
6199
+ e.indexOf(".") > -1 ? d = e.split(".") : (d = [e, t], s && (Array.isArray(s) ? d.push(...s) : M(s) && o ? d.push(...s.split(o)) : d.push(s)));
6200
+ const l = M1(this.data, d);
6201
+ return !l && !t && !s && e.indexOf(".") > -1 && (e = d[0], t = d[1], s = d.slice(2).join(".")), l || !h || !M(s) ? l : G1(this.data && this.data[e] && this.data[e][t], s, o);
6214
6202
  }
6215
6203
  addResource(e, t, s, n) {
6216
6204
  let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
6217
6205
  silent: !1
6218
6206
  };
6219
6207
  const h = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
6220
- let a = [e, t];
6221
- s && (a = a.concat(h ? s.split(h) : s)), e.indexOf(".") > -1 && (a = e.split("."), n = t, t = a[1]), this.addNamespaces(t), e2(this.data, a, n), o.silent || this.emit("added", e, t, s, n);
6208
+ let d = [e, t];
6209
+ s && (d = d.concat(h ? s.split(h) : s)), e.indexOf(".") > -1 && (d = e.split("."), n = t, t = d[1]), this.addNamespaces(t), e2(this.data, d, n), o.silent || this.emit("added", e, t, s, n);
6222
6210
  }
6223
6211
  addResources(e, t, s) {
6224
6212
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -6234,13 +6222,13 @@ class t2 extends E1 {
6234
6222
  let h = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
6235
6223
  silent: !1,
6236
6224
  skipCopy: !1
6237
- }, a = [e, t];
6238
- e.indexOf(".") > -1 && (a = e.split("."), n = s, s = t, t = a[1]), this.addNamespaces(t);
6239
- let C = M1(this.data, a) || {};
6240
- h.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? f2(C, s, o) : C = {
6241
- ...C,
6225
+ }, d = [e, t];
6226
+ e.indexOf(".") > -1 && (d = e.split("."), n = s, s = t, t = d[1]), this.addNamespaces(t);
6227
+ let l = M1(this.data, d) || {};
6228
+ h.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? f2(l, s, o) : l = {
6229
+ ...l,
6242
6230
  ...s
6243
- }, e2(this.data, a, C), h.silent || this.emit("added", e, t, s);
6231
+ }, e2(this.data, d, l), h.silent || this.emit("added", e, t, s);
6244
6232
  }
6245
6233
  removeResourceBundle(e, t) {
6246
6234
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -6298,16 +6286,16 @@ class H1 extends E1 {
6298
6286
  s === void 0 && (s = ":");
6299
6287
  const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
6300
6288
  let o = t.ns || this.options.defaultNS || [];
6301
- const h = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !C7(e, s, n);
6302
- if (h && !a) {
6303
- const C = e.match(this.interpolator.nestingRegexp);
6304
- if (C && C.length > 0)
6289
+ const h = s && e.indexOf(s) > -1, d = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !g7(e, s, n);
6290
+ if (h && !d) {
6291
+ const l = e.match(this.interpolator.nestingRegexp);
6292
+ if (l && l.length > 0)
6305
6293
  return {
6306
6294
  key: e,
6307
6295
  namespaces: M(o) ? [o] : o
6308
6296
  };
6309
- const d = e.split(s);
6310
- (s !== n || s === n && this.options.ns.indexOf(d[0]) > -1) && (o = d.shift()), e = d.join(n);
6297
+ const a = e.split(s);
6298
+ (s !== n || s === n && this.options.ns.indexOf(a[0]) > -1) && (o = a.shift()), e = a.join(n);
6311
6299
  }
6312
6300
  return {
6313
6301
  key: e,
@@ -6321,40 +6309,40 @@ class H1 extends E1 {
6321
6309
  Array.isArray(e) || (e = [String(e)]);
6322
6310
  const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, o = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
6323
6311
  key: h,
6324
- namespaces: a
6325
- } = this.extractFromKey(e[e.length - 1], t), C = a[a.length - 1], d = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
6326
- if (d && d.toLowerCase() === "cimode") {
6327
- if (l) {
6312
+ namespaces: d
6313
+ } = this.extractFromKey(e[e.length - 1], t), l = d[d.length - 1], a = t.lng || this.language, c = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
6314
+ if (a && a.toLowerCase() === "cimode") {
6315
+ if (c) {
6328
6316
  const f = t.nsSeparator || this.options.nsSeparator;
6329
6317
  return n ? {
6330
- res: `${C}${f}${h}`,
6318
+ res: `${l}${f}${h}`,
6331
6319
  usedKey: h,
6332
6320
  exactUsedKey: h,
6333
- usedLng: d,
6334
- usedNS: C,
6321
+ usedLng: a,
6322
+ usedNS: l,
6335
6323
  usedParams: this.getUsedParamsDetails(t)
6336
- } : `${C}${f}${h}`;
6324
+ } : `${l}${f}${h}`;
6337
6325
  }
6338
6326
  return n ? {
6339
6327
  res: h,
6340
6328
  usedKey: h,
6341
6329
  exactUsedKey: h,
6342
- usedLng: d,
6343
- usedNS: C,
6330
+ usedLng: a,
6331
+ usedNS: l,
6344
6332
  usedParams: this.getUsedParamsDetails(t)
6345
6333
  } : h;
6346
6334
  }
6347
- const c = this.resolve(e, t);
6348
- let g = c && c.res;
6349
- const p = c && c.usedKey || h, w = c && c.exactUsedKey || h, v = Object.prototype.toString.apply(g), m = ["[object Number]", "[object Function]", "[object RegExp]"], b = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, I = !M(g) && typeof g != "boolean" && typeof g != "number";
6335
+ const u = this.resolve(e, t);
6336
+ let g = u && u.res;
6337
+ const p = u && u.usedKey || h, w = u && u.exactUsedKey || h, v = Object.prototype.toString.apply(g), m = ["[object Number]", "[object Function]", "[object RegExp]"], b = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, I = !M(g) && typeof g != "boolean" && typeof g != "number";
6350
6338
  if (y && g && I && m.indexOf(v) < 0 && !(M(b) && Array.isArray(g))) {
6351
6339
  if (!t.returnObjects && !this.options.returnObjects) {
6352
6340
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
6353
6341
  const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, g, {
6354
6342
  ...t,
6355
- ns: a
6343
+ ns: d
6356
6344
  }) : `key '${h} (${this.language})' returned an object instead of string.`;
6357
- return n ? (c.res = f, c.usedParams = this.getUsedParamsDetails(t), c) : f;
6345
+ return n ? (u.res = f, u.usedParams = this.getUsedParamsDetails(t), u) : f;
6358
6346
  }
6359
6347
  if (o) {
6360
6348
  const f = Array.isArray(g), x = f ? [] : {}, _ = f ? w : p;
@@ -6364,7 +6352,7 @@ class H1 extends E1 {
6364
6352
  x[R] = this.translate(j, {
6365
6353
  ...t,
6366
6354
  joinArrays: !1,
6367
- ns: a
6355
+ ns: d
6368
6356
  }), x[R] === j && (x[R] = g[R]);
6369
6357
  }
6370
6358
  g = x;
@@ -6373,39 +6361,39 @@ class H1 extends E1 {
6373
6361
  g = g.join(b), g && (g = this.extendTranslation(g, e, t, s));
6374
6362
  else {
6375
6363
  let f = !1, x = !1;
6376
- const _ = t.count !== void 0 && !M(t.count), R = H1.hasDefaultValue(t), j = _ ? this.pluralResolver.getSuffix(d, t.count, t) : "", q = t.ordinal && _ ? this.pluralResolver.getSuffix(d, t.count, {
6364
+ const _ = t.count !== void 0 && !M(t.count), R = H1.hasDefaultValue(t), j = _ ? this.pluralResolver.getSuffix(a, t.count, t) : "", q = t.ordinal && _ ? this.pluralResolver.getSuffix(a, t.count, {
6377
6365
  ordinal: !1
6378
6366
  }) : "", F = _ && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), E = F && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${j}`] || t[`defaultValue${q}`] || t.defaultValue;
6379
6367
  !this.isValidLookup(g) && R && (f = !0, g = E), this.isValidLookup(g) || (x = !0, g = h);
6380
- const A = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && x ? void 0 : g, Z = R && E !== g && this.options.updateMissing;
6381
- if (x || f || Z) {
6382
- if (this.logger.log(Z ? "updateKey" : "missingKey", d, C, h, Z ? E : g), o) {
6383
- const V = this.resolve(h, {
6368
+ const V = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && x ? void 0 : g, O = R && E !== g && this.options.updateMissing;
6369
+ if (x || f || O) {
6370
+ if (this.logger.log(O ? "updateKey" : "missingKey", a, l, h, O ? E : g), o) {
6371
+ const A = this.resolve(h, {
6384
6372
  ...t,
6385
6373
  keySeparator: !1
6386
6374
  });
6387
- V && V.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.");
6375
+ A && A.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
6388
6376
  }
6389
- let G = [];
6377
+ let S = [];
6390
6378
  const B = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
6391
6379
  if (this.options.saveMissingTo === "fallback" && B && B[0])
6392
- for (let V = 0; V < B.length; V++)
6393
- G.push(B[V]);
6394
- else this.options.saveMissingTo === "all" ? G = this.languageUtils.toResolveHierarchy(t.lng || this.language) : G.push(t.lng || this.language);
6395
- const U = (V, $, Y) => {
6396
- const e1 = R && Y !== g ? Y : A;
6397
- this.options.missingKeyHandler ? this.options.missingKeyHandler(V, C, $, e1, Z, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(V, C, $, e1, Z, t), this.emit("missingKey", V, C, $, g);
6380
+ for (let A = 0; A < B.length; A++)
6381
+ S.push(B[A]);
6382
+ else this.options.saveMissingTo === "all" ? S = this.languageUtils.toResolveHierarchy(t.lng || this.language) : S.push(t.lng || this.language);
6383
+ const U = (A, P, Y) => {
6384
+ const e1 = R && Y !== g ? Y : V;
6385
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(A, l, P, e1, O, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(A, l, P, e1, O, t), this.emit("missingKey", A, l, P, g);
6398
6386
  };
6399
- this.options.saveMissing && (this.options.saveMissingPlurals && _ ? G.forEach((V) => {
6400
- const $ = this.pluralResolver.getSuffixes(V, t);
6401
- F && t[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((Y) => {
6402
- U([V], h + Y, t[`defaultValue${Y}`] || E);
6387
+ this.options.saveMissing && (this.options.saveMissingPlurals && _ ? S.forEach((A) => {
6388
+ const P = this.pluralResolver.getSuffixes(A, t);
6389
+ F && t[`defaultValue${this.options.pluralSeparator}zero`] && P.indexOf(`${this.options.pluralSeparator}zero`) < 0 && P.push(`${this.options.pluralSeparator}zero`), P.forEach((Y) => {
6390
+ U([A], h + Y, t[`defaultValue${Y}`] || E);
6403
6391
  });
6404
- }) : U(G, h, E));
6392
+ }) : U(S, h, E));
6405
6393
  }
6406
- g = this.extendTranslation(g, e, t, c, s), x && g === h && this.options.appendNamespaceToMissingKey && (g = `${C}:${h}`), (x || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${C}:${h}` : h, f ? g : void 0) : g = this.options.parseMissingKeyHandler(g));
6394
+ g = this.extendTranslation(g, e, t, u, s), x && g === h && this.options.appendNamespaceToMissingKey && (g = `${l}:${h}`), (x || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${h}` : h, f ? g : void 0) : g = this.options.parseMissingKeyHandler(g));
6407
6395
  }
6408
- return n ? (c.res = g, c.usedParams = this.getUsedParamsDetails(t), c) : g;
6396
+ return n ? (u.res = g, u.usedParams = this.getUsedParamsDetails(t), u) : g;
6409
6397
  }
6410
6398
  extendTranslation(e, t, s, n, o) {
6411
6399
  var h = this;
@@ -6424,19 +6412,19 @@ class H1 extends E1 {
6424
6412
  ...s.interpolation
6425
6413
  }
6426
6414
  });
6427
- const d = M(e) && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
6428
- let l;
6429
- if (d) {
6415
+ const a = M(e) && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
6416
+ let c;
6417
+ if (a) {
6430
6418
  const g = e.match(this.interpolator.nestingRegexp);
6431
- l = g && g.length;
6419
+ c = g && g.length;
6432
6420
  }
6433
- let c = s.replace && !M(s.replace) ? s.replace : s;
6434
- if (this.options.interpolation.defaultVariables && (c = {
6421
+ let u = s.replace && !M(s.replace) ? s.replace : s;
6422
+ if (this.options.interpolation.defaultVariables && (u = {
6435
6423
  ...this.options.interpolation.defaultVariables,
6436
- ...c
6437
- }), e = this.interpolator.interpolate(e, c, s.lng || this.language || n.usedLng, s), d) {
6424
+ ...u
6425
+ }), e = this.interpolator.interpolate(e, u, s.lng || this.language || n.usedLng, s), a) {
6438
6426
  const g = e.match(this.interpolator.nestingRegexp), p = g && g.length;
6439
- l < p && (s.nest = !1);
6427
+ c < p && (s.nest = !1);
6440
6428
  }
6441
6429
  !s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
6442
6430
  for (var g = arguments.length, p = new Array(g), w = 0; w < g; w++)
@@ -6444,8 +6432,8 @@ class H1 extends E1 {
6444
6432
  return o && o[0] === p[0] && !s.context ? (h.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : h.translate(...p, t);
6445
6433
  }, s)), s.interpolation && this.interpolator.reset();
6446
6434
  }
6447
- const a = s.postProcess || this.options.postProcess, C = M(a) ? [a] : a;
6448
- return e != null && C && C.length && s.applyPostProcessor !== !1 && (e = m2.handle(C, e, t, this.options && this.options.postProcessPassResolved ? {
6435
+ const d = s.postProcess || this.options.postProcess, l = M(d) ? [d] : d;
6436
+ return e != null && l && l.length && s.applyPostProcessor !== !1 && (e = m2.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
6449
6437
  i18nResolved: {
6450
6438
  ...n,
6451
6439
  usedParams: this.getUsedParamsDetails(s)
@@ -6454,27 +6442,27 @@ class H1 extends E1 {
6454
6442
  } : s, this)), e;
6455
6443
  }
6456
6444
  resolve(e) {
6457
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o, h, a;
6458
- return M(e) && (e = [e]), e.forEach((C) => {
6445
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o, h, d;
6446
+ return M(e) && (e = [e]), e.forEach((l) => {
6459
6447
  if (this.isValidLookup(s)) return;
6460
- const d = this.extractFromKey(C, t), l = d.key;
6461
- n = l;
6462
- let c = d.namespaces;
6463
- this.options.fallbackNS && (c = c.concat(this.options.fallbackNS));
6448
+ const a = this.extractFromKey(l, t), c = a.key;
6449
+ n = c;
6450
+ let u = a.namespaces;
6451
+ this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
6464
6452
  const g = t.count !== void 0 && !M(t.count), p = g && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), w = t.context !== void 0 && (M(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
6465
- c.forEach((m) => {
6466
- this.isValidLookup(s) || (a = m, !i2[`${v[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (i2[`${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((b) => {
6453
+ u.forEach((m) => {
6454
+ this.isValidLookup(s) || (d = m, !i2[`${v[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(d) && (i2[`${v[0]}-${m}`] = !0, this.logger.warn(`key "${n}" for languages "${v.join(", ")}" won't get resolved as namespace "${d}" 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((b) => {
6467
6455
  if (this.isValidLookup(s)) return;
6468
6456
  h = b;
6469
- const y = [l];
6457
+ const y = [c];
6470
6458
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
6471
- this.i18nFormat.addLookupKeys(y, l, b, m, t);
6459
+ this.i18nFormat.addLookupKeys(y, c, b, m, t);
6472
6460
  else {
6473
6461
  let f;
6474
6462
  g && (f = this.pluralResolver.getSuffix(b, t.count, t));
6475
6463
  const x = `${this.options.pluralSeparator}zero`, _ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
6476
- if (g && (y.push(l + f), t.ordinal && f.indexOf(_) === 0 && y.push(l + f.replace(_, this.options.pluralSeparator)), p && y.push(l + x)), w) {
6477
- const R = `${l}${this.options.contextSeparator}${t.context}`;
6464
+ if (g && (y.push(c + f), t.ordinal && f.indexOf(_) === 0 && y.push(c + f.replace(_, this.options.pluralSeparator)), p && y.push(c + x)), w) {
6465
+ const R = `${c}${this.options.contextSeparator}${t.context}`;
6478
6466
  y.push(R), g && (y.push(R + f), t.ordinal && f.indexOf(_) === 0 && y.push(R + f.replace(_, this.options.pluralSeparator)), p && y.push(R + x));
6479
6467
  }
6480
6468
  }
@@ -6488,7 +6476,7 @@ class H1 extends E1 {
6488
6476
  usedKey: n,
6489
6477
  exactUsedKey: o,
6490
6478
  usedLng: h,
6491
- usedNS: a
6479
+ usedNS: d
6492
6480
  };
6493
6481
  }
6494
6482
  isValidLookup(e) {
@@ -6522,7 +6510,7 @@ class H1 extends E1 {
6522
6510
  return !1;
6523
6511
  }
6524
6512
  }
6525
- const V1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
6513
+ const A1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
6526
6514
  class s2 {
6527
6515
  constructor(e) {
6528
6516
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = X.create("languageUtils");
@@ -6547,7 +6535,7 @@ class s2 {
6547
6535
  }
6548
6536
  const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
6549
6537
  let s = e.split("-");
6550
- 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] = V1(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] = V1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = V1(s[2].toLowerCase()))), s.join("-");
6538
+ 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] = A1(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] = A1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = A1(s[2].toLowerCase()))), s.join("-");
6551
6539
  }
6552
6540
  return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
6553
6541
  }
@@ -6749,8 +6737,8 @@ class L7 {
6749
6737
  });
6750
6738
  } catch {
6751
6739
  if (!e.match(/-|_/)) return;
6752
- const C = this.languageUtils.getLanguagePartFromCode(e);
6753
- h = this.getRule(C, t);
6740
+ const l = this.languageUtils.getLanguagePartFromCode(e);
6741
+ h = this.getRule(l, t);
6754
6742
  }
6755
6743
  return this.pluralRulesCache[o] = h, h;
6756
6744
  }
@@ -6806,11 +6794,11 @@ class k7 {
6806
6794
  useRawValueToEscape: n,
6807
6795
  prefix: o,
6808
6796
  prefixEscaped: h,
6809
- suffix: a,
6810
- suffixEscaped: C,
6811
- formatSeparator: d,
6812
- unescapeSuffix: l,
6813
- unescapePrefix: c,
6797
+ suffix: d,
6798
+ suffixEscaped: l,
6799
+ formatSeparator: a,
6800
+ unescapeSuffix: c,
6801
+ unescapePrefix: u,
6814
6802
  nestingPrefix: g,
6815
6803
  nestingPrefixEscaped: p,
6816
6804
  nestingSuffix: w,
@@ -6819,7 +6807,7 @@ class k7 {
6819
6807
  maxReplaces: b,
6820
6808
  alwaysFormat: y
6821
6809
  } = e.interpolation;
6822
- this.escape = t !== void 0 ? t : l7, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? c1(o) : h || "{{", this.suffix = a ? c1(a) : C || "}}", this.formatSeparator = d || ",", this.unescapePrefix = l ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = g ? c1(g) : p || c1("$t("), this.nestingSuffix = w ? c1(w) : v || c1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = b || 1e3, this.alwaysFormat = y !== void 0 ? y : !1, this.resetRegExp();
6810
+ this.escape = t !== void 0 ? t : l7, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? c1(o) : h || "{{", this.suffix = d ? c1(d) : l || "}}", this.formatSeparator = a || ",", this.unescapePrefix = c ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = g ? c1(g) : p || c1("$t("), this.nestingSuffix = w ? c1(w) : v || c1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = b || 1e3, this.alwaysFormat = y !== void 0 ? y : !1, this.resetRegExp();
6823
6811
  }
6824
6812
  reset() {
6825
6813
  this.options && this.init(this.options);
@@ -6829,10 +6817,10 @@ class k7 {
6829
6817
  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}`);
6830
6818
  }
6831
6819
  interpolate(e, t, s, n) {
6832
- let o, h, a;
6833
- const C = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, d = (p) => {
6820
+ let o, h, d;
6821
+ const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, a = (p) => {
6834
6822
  if (p.indexOf(this.formatSeparator) < 0) {
6835
- const b = r2(t, C, p, this.options.keySeparator, this.options.ignoreJSONStructure);
6823
+ const b = r2(t, l, p, this.options.keySeparator, this.options.ignoreJSONStructure);
6836
6824
  return this.alwaysFormat ? this.format(b, void 0, s, {
6837
6825
  ...n,
6838
6826
  ...t,
@@ -6840,14 +6828,14 @@ class k7 {
6840
6828
  }) : b;
6841
6829
  }
6842
6830
  const w = p.split(this.formatSeparator), v = w.shift().trim(), m = w.join(this.formatSeparator).trim();
6843
- return this.format(r2(t, C, v, this.options.keySeparator, this.options.ignoreJSONStructure), m, s, {
6831
+ return this.format(r2(t, l, v, this.options.keySeparator, this.options.ignoreJSONStructure), m, s, {
6844
6832
  ...n,
6845
6833
  ...t,
6846
6834
  interpolationkey: v
6847
6835
  });
6848
6836
  };
6849
6837
  this.resetRegExp();
6850
- const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, c = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
6838
+ const c = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, u = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
6851
6839
  return [{
6852
6840
  regex: this.regexpUnescape,
6853
6841
  safeValue: (p) => I1(p)
@@ -6855,58 +6843,58 @@ class k7 {
6855
6843
  regex: this.regexp,
6856
6844
  safeValue: (p) => this.escapeValue ? I1(this.escape(p)) : I1(p)
6857
6845
  }].forEach((p) => {
6858
- for (a = 0; o = p.regex.exec(e); ) {
6846
+ for (d = 0; o = p.regex.exec(e); ) {
6859
6847
  const w = o[1].trim();
6860
- if (h = d(w), h === void 0)
6861
- if (typeof l == "function") {
6862
- const m = l(e, o, n);
6848
+ if (h = a(w), h === void 0)
6849
+ if (typeof c == "function") {
6850
+ const m = c(e, o, n);
6863
6851
  h = M(m) ? m : "";
6864
6852
  } else if (n && Object.prototype.hasOwnProperty.call(n, w))
6865
6853
  h = "";
6866
- else if (c) {
6854
+ else if (u) {
6867
6855
  h = o[0];
6868
6856
  continue;
6869
6857
  } else
6870
6858
  this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), h = "";
6871
6859
  else !M(h) && !this.useRawValueToEscape && (h = q1(h));
6872
6860
  const v = p.safeValue(h);
6873
- if (e = e.replace(o[0], v), c ? (p.regex.lastIndex += h.length, p.regex.lastIndex -= o[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
6861
+ if (e = e.replace(o[0], v), u ? (p.regex.lastIndex += h.length, p.regex.lastIndex -= o[0].length) : p.regex.lastIndex = 0, d++, d >= this.maxReplaces)
6874
6862
  break;
6875
6863
  }
6876
6864
  }), e;
6877
6865
  }
6878
6866
  nest(e, t) {
6879
6867
  let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, o, h;
6880
- const a = (C, d) => {
6881
- const l = this.nestingOptionsSeparator;
6882
- if (C.indexOf(l) < 0) return C;
6883
- const c = C.split(new RegExp(`${l}[ ]*{`));
6884
- let g = `{${c[1]}`;
6885
- C = c[0], g = this.interpolate(g, h);
6868
+ const d = (l, a) => {
6869
+ const c = this.nestingOptionsSeparator;
6870
+ if (l.indexOf(c) < 0) return l;
6871
+ const u = l.split(new RegExp(`${c}[ ]*{`));
6872
+ let g = `{${u[1]}`;
6873
+ l = u[0], g = this.interpolate(g, h);
6886
6874
  const p = g.match(/'/g), w = g.match(/"/g);
6887
6875
  (p && p.length % 2 === 0 && !w || w.length % 2 !== 0) && (g = g.replace(/'/g, '"'));
6888
6876
  try {
6889
- h = JSON.parse(g), d && (h = {
6890
- ...d,
6877
+ h = JSON.parse(g), a && (h = {
6878
+ ...a,
6891
6879
  ...h
6892
6880
  });
6893
6881
  } catch (v) {
6894
- return this.logger.warn(`failed parsing options string in nesting for key ${C}`, v), `${C}${l}${g}`;
6882
+ return this.logger.warn(`failed parsing options string in nesting for key ${l}`, v), `${l}${c}${g}`;
6895
6883
  }
6896
- return h.defaultValue && h.defaultValue.indexOf(this.prefix) > -1 && delete h.defaultValue, C;
6884
+ return h.defaultValue && h.defaultValue.indexOf(this.prefix) > -1 && delete h.defaultValue, l;
6897
6885
  };
6898
6886
  for (; n = this.nestingRegexp.exec(e); ) {
6899
- let C = [];
6887
+ let l = [];
6900
6888
  h = {
6901
6889
  ...s
6902
6890
  }, h = h.replace && !M(h.replace) ? h.replace : h, h.applyPostProcessor = !1, delete h.defaultValue;
6903
- let d = !1;
6891
+ let a = !1;
6904
6892
  if (n[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(n[1])) {
6905
- const l = n[1].split(this.formatSeparator).map((c) => c.trim());
6906
- n[1] = l.shift(), C = l, d = !0;
6893
+ const c = n[1].split(this.formatSeparator).map((u) => u.trim());
6894
+ n[1] = c.shift(), l = c, a = !0;
6907
6895
  }
6908
- if (o = t(a.call(this, n[1].trim(), h), h), o && n[0] === e && !M(o)) return o;
6909
- M(o) || (o = q1(o)), o || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), o = ""), d && (o = C.reduce((l, c) => this.format(l, c, s.lng, {
6896
+ if (o = t(d.call(this, n[1].trim(), h), h), o && n[0] === e && !M(o)) return o;
6897
+ M(o) || (o = q1(o)), o || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), o = ""), a && (o = l.reduce((c, u) => this.format(c, u, s.lng, {
6910
6898
  ...s,
6911
6899
  interpolationkey: n[1].trim()
6912
6900
  }), o.trim())), e = e.replace(n[0], o), this.regexp.lastIndex = 0;
@@ -6923,8 +6911,8 @@ const v7 = (i) => {
6923
6911
  const n = s[1].substring(0, s[1].length - 1);
6924
6912
  e === "currency" && n.indexOf(":") < 0 ? t.currency || (t.currency = n.trim()) : e === "relativetime" && n.indexOf(":") < 0 ? t.range || (t.range = n.trim()) : n.split(";").forEach((h) => {
6925
6913
  if (h) {
6926
- const [a, ...C] = h.split(":"), d = C.join(":").trim().replace(/^'+|'+$/g, ""), l = a.trim();
6927
- t[l] || (t[l] = d), d === "false" && (t[l] = !1), d === "true" && (t[l] = !0), isNaN(d) || (t[l] = parseInt(d, 10));
6914
+ const [d, ...l] = h.split(":"), a = l.join(":").trim().replace(/^'+|'+$/g, ""), c = d.trim();
6915
+ t[c] || (t[c] = a), a === "false" && (t[c] = !1), a === "true" && (t[c] = !0), isNaN(a) || (t[c] = parseInt(a, 10));
6928
6916
  }
6929
6917
  });
6930
6918
  }
@@ -6941,8 +6929,8 @@ const v7 = (i) => {
6941
6929
  [n.interpolationkey]: void 0
6942
6930
  });
6943
6931
  const h = s + JSON.stringify(o);
6944
- let a = e[h];
6945
- return a || (a = i(b1(s), n), e[h] = a), a(t);
6932
+ let d = e[h];
6933
+ return d || (d = i(b1(s), n), e[h] = d), d(t);
6946
6934
  };
6947
6935
  };
6948
6936
  class N7 {
@@ -6997,31 +6985,31 @@ class N7 {
6997
6985
  format(e, t, s) {
6998
6986
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
6999
6987
  const o = t.split(this.formatSeparator);
7000
- if (o.length > 1 && o[0].indexOf("(") > 1 && o[0].indexOf(")") < 0 && o.find((a) => a.indexOf(")") > -1)) {
7001
- const a = o.findIndex((C) => C.indexOf(")") > -1);
7002
- o[0] = [o[0], ...o.splice(1, a)].join(this.formatSeparator);
6988
+ if (o.length > 1 && o[0].indexOf("(") > 1 && o[0].indexOf(")") < 0 && o.find((d) => d.indexOf(")") > -1)) {
6989
+ const d = o.findIndex((l) => l.indexOf(")") > -1);
6990
+ o[0] = [o[0], ...o.splice(1, d)].join(this.formatSeparator);
7003
6991
  }
7004
- return o.reduce((a, C) => {
6992
+ return o.reduce((d, l) => {
7005
6993
  const {
7006
- formatName: d,
7007
- formatOptions: l
7008
- } = v7(C);
7009
- if (this.formats[d]) {
7010
- let c = a;
6994
+ formatName: a,
6995
+ formatOptions: c
6996
+ } = v7(l);
6997
+ if (this.formats[a]) {
6998
+ let u = d;
7011
6999
  try {
7012
7000
  const g = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = g.locale || g.lng || n.locale || n.lng || s;
7013
- c = this.formats[d](a, p, {
7014
- ...l,
7001
+ u = this.formats[a](d, p, {
7002
+ ...c,
7015
7003
  ...n,
7016
7004
  ...g
7017
7005
  });
7018
7006
  } catch (g) {
7019
7007
  this.logger.warn(g);
7020
7008
  }
7021
- return c;
7009
+ return u;
7022
7010
  } else
7023
- this.logger.warn(`there was no format function for ${d}`);
7024
- return a;
7011
+ this.logger.warn(`there was no format function for ${a}`);
7012
+ return d;
7025
7013
  }, e);
7026
7014
  }
7027
7015
  }
@@ -7034,13 +7022,13 @@ class x7 extends E1 {
7034
7022
  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);
7035
7023
  }
7036
7024
  queueLoad(e, t, s, n) {
7037
- const o = {}, h = {}, a = {}, C = {};
7038
- return e.forEach((d) => {
7039
- let l = !0;
7040
- t.forEach((c) => {
7041
- const g = `${d}|${c}`;
7042
- !s.reload && this.store.hasResourceBundle(d, c) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ? h[g] === void 0 && (h[g] = !0) : (this.state[g] = 1, l = !1, h[g] === void 0 && (h[g] = !0), o[g] === void 0 && (o[g] = !0), C[c] === void 0 && (C[c] = !0)));
7043
- }), l || (a[d] = !0);
7025
+ const o = {}, h = {}, d = {}, l = {};
7026
+ return e.forEach((a) => {
7027
+ let c = !0;
7028
+ t.forEach((u) => {
7029
+ const g = `${a}|${u}`;
7030
+ !s.reload && this.store.hasResourceBundle(a, u) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ? h[g] === void 0 && (h[g] = !0) : (this.state[g] = 1, c = !1, h[g] === void 0 && (h[g] = !0), o[g] === void 0 && (o[g] = !0), l[u] === void 0 && (l[u] = !0)));
7031
+ }), c || (d[a] = !0);
7044
7032
  }), (Object.keys(o).length || Object.keys(h).length) && this.queue.push({
7045
7033
  pending: h,
7046
7034
  pendingCount: Object.keys(h).length,
@@ -7050,8 +7038,8 @@ class x7 extends E1 {
7050
7038
  }), {
7051
7039
  toLoad: Object.keys(o),
7052
7040
  pending: Object.keys(h),
7053
- toLoadLanguages: Object.keys(a),
7054
- toLoadNamespaces: Object.keys(C)
7041
+ toLoadLanguages: Object.keys(d),
7042
+ toLoadNamespaces: Object.keys(l)
7055
7043
  };
7056
7044
  }
7057
7045
  loaded(e, t, s) {
@@ -7059,16 +7047,16 @@ class x7 extends E1 {
7059
7047
  t && this.emit("failedLoading", o, h, t), !t && s && this.store.addResourceBundle(o, h, s, void 0, void 0, {
7060
7048
  skipCopy: !0
7061
7049
  }), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
7062
- const a = {};
7063
- this.queue.forEach((C) => {
7064
- r7(C.loaded, [o], h), R7(C, e), t && C.errors.push(t), C.pendingCount === 0 && !C.done && (Object.keys(C.loaded).forEach((d) => {
7065
- a[d] || (a[d] = {});
7066
- const l = C.loaded[d];
7067
- l.length && l.forEach((c) => {
7068
- a[d][c] === void 0 && (a[d][c] = !0);
7050
+ const d = {};
7051
+ this.queue.forEach((l) => {
7052
+ r7(l.loaded, [o], h), R7(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((a) => {
7053
+ d[a] || (d[a] = {});
7054
+ const c = l.loaded[a];
7055
+ c.length && c.forEach((u) => {
7056
+ d[a][u] === void 0 && (d[a][u] = !0);
7069
7057
  });
7070
- }), C.done = !0, C.errors.length ? C.callback(C.errors) : C.callback());
7071
- }), this.emit("loaded", a), this.queue = this.queue.filter((C) => !C.done);
7058
+ }), l.done = !0, l.errors.length ? l.callback(l.errors) : l.callback());
7059
+ }), this.emit("loaded", d), this.queue = this.queue.filter((l) => !l.done);
7072
7060
  }
7073
7061
  read(e, t, s) {
7074
7062
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, h = arguments.length > 5 ? arguments[5] : void 0;
@@ -7085,29 +7073,29 @@ class x7 extends E1 {
7085
7073
  return;
7086
7074
  }
7087
7075
  this.readingCalls++;
7088
- const a = (d, l) => {
7076
+ const d = (a, c) => {
7089
7077
  if (this.readingCalls--, this.waitingReads.length > 0) {
7090
- const c = this.waitingReads.shift();
7091
- this.read(c.lng, c.ns, c.fcName, c.tried, c.wait, c.callback);
7078
+ const u = this.waitingReads.shift();
7079
+ this.read(u.lng, u.ns, u.fcName, u.tried, u.wait, u.callback);
7092
7080
  }
7093
- if (d && l && n < this.maxRetries) {
7081
+ if (a && c && n < this.maxRetries) {
7094
7082
  setTimeout(() => {
7095
7083
  this.read.call(this, e, t, s, n + 1, o * 2, h);
7096
7084
  }, o);
7097
7085
  return;
7098
7086
  }
7099
- h(d, l);
7100
- }, C = this.backend[s].bind(this.backend);
7101
- if (C.length === 2) {
7087
+ h(a, c);
7088
+ }, l = this.backend[s].bind(this.backend);
7089
+ if (l.length === 2) {
7102
7090
  try {
7103
- const d = C(e, t);
7104
- d && typeof d.then == "function" ? d.then((l) => a(null, l)).catch(a) : a(null, d);
7105
- } catch (d) {
7106
- a(d);
7091
+ const a = l(e, t);
7092
+ a && typeof a.then == "function" ? a.then((c) => d(null, c)).catch(d) : d(null, a);
7093
+ } catch (a) {
7094
+ d(a);
7107
7095
  }
7108
7096
  return;
7109
7097
  }
7110
- return C(e, t, a);
7098
+ return l(e, t, d);
7111
7099
  }
7112
7100
  prepareLoading(e, t) {
7113
7101
  let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = arguments.length > 3 ? arguments[3] : void 0;
@@ -7132,12 +7120,12 @@ class x7 extends E1 {
7132
7120
  loadOne(e) {
7133
7121
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
7134
7122
  const s = e.split("|"), n = s[0], o = s[1];
7135
- this.read(n, o, "read", void 0, void 0, (h, a) => {
7136
- h && this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`, h), !h && a && this.logger.log(`${t}loaded namespace ${o} for language ${n}`, a), this.loaded(e, h, a);
7123
+ this.read(n, o, "read", void 0, void 0, (h, d) => {
7124
+ h && this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`, h), !h && d && this.logger.log(`${t}loaded namespace ${o} for language ${n}`, d), this.loaded(e, h, d);
7137
7125
  });
7138
7126
  }
7139
7127
  saveMissing(e, t, s, n, o) {
7140
- let h = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, a = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
7128
+ let h = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, d = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
7141
7129
  };
7142
7130
  if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
7143
7131
  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!!!");
@@ -7145,19 +7133,19 @@ class x7 extends E1 {
7145
7133
  }
7146
7134
  if (!(s == null || s === "")) {
7147
7135
  if (this.backend && this.backend.create) {
7148
- const C = {
7136
+ const l = {
7149
7137
  ...h,
7150
7138
  isUpdate: o
7151
- }, d = this.backend.create.bind(this.backend);
7152
- if (d.length < 6)
7139
+ }, a = this.backend.create.bind(this.backend);
7140
+ if (a.length < 6)
7153
7141
  try {
7154
- let l;
7155
- d.length === 5 ? l = d(e, t, s, n, C) : l = d(e, t, s, n), l && typeof l.then == "function" ? l.then((c) => a(null, c)).catch(a) : a(null, l);
7156
- } catch (l) {
7157
- a(l);
7142
+ let c;
7143
+ a.length === 5 ? c = a(e, t, s, n, l) : c = a(e, t, s, n), c && typeof c.then == "function" ? c.then((u) => d(null, u)).catch(d) : d(null, c);
7144
+ } catch (c) {
7145
+ d(c);
7158
7146
  }
7159
7147
  else
7160
- d(e, t, s, n, a, C);
7148
+ a(e, t, s, n, d, l);
7161
7149
  }
7162
7150
  !e || !e[0] || this.store.addResource(e[0], t, s, n);
7163
7151
  }
@@ -7251,19 +7239,19 @@ class L1 extends E1 {
7251
7239
  ...n.interpolation,
7252
7240
  ...this.options.interpolation
7253
7241
  }), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
7254
- const o = (l) => l ? typeof l == "function" ? new l() : l : null;
7242
+ const o = (c) => c ? typeof c == "function" ? new c() : c : null;
7255
7243
  if (!this.options.isClone) {
7256
7244
  this.modules.logger ? X.init(o(this.modules.logger), this.options) : X.init(null, this.options);
7257
- let l;
7258
- this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = N7);
7259
- const c = new s2(this.options);
7245
+ let c;
7246
+ this.modules.formatter ? c = this.modules.formatter : typeof Intl < "u" && (c = N7);
7247
+ const u = new s2(this.options);
7260
7248
  this.store = new t2(this.options.resources, this.options);
7261
7249
  const g = this.services;
7262
- g.logger = X, g.resourceStore = this.store, g.languageUtils = c, g.pluralResolver = new L7(c, {
7250
+ g.logger = X, g.resourceStore = this.store, g.languageUtils = u, g.pluralResolver = new L7(u, {
7263
7251
  prepend: this.options.pluralSeparator,
7264
7252
  compatibilityJSON: this.options.compatibilityJSON,
7265
7253
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
7266
- }), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (g.formatter = o(l), g.formatter.init(g, this.options), this.options.interpolation.format = g.formatter.format.bind(g.formatter)), g.interpolator = new k7(this.options), g.utils = {
7254
+ }), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (g.formatter = o(c), g.formatter.init(g, this.options), this.options.interpolation.format = g.formatter.format.bind(g.formatter)), g.interpolator = new k7(this.options), g.utils = {
7267
7255
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
7268
7256
  }, g.backendConnector = new x7(o(this.modules.backend), g.resourceStore, g, this.options), g.backendConnector.on("*", function(p) {
7269
7257
  for (var w = arguments.length, v = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
@@ -7278,40 +7266,40 @@ class L1 extends E1 {
7278
7266
  });
7279
7267
  }
7280
7268
  if (this.format = this.options.interpolation.format, s || (s = x1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
7281
- const l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
7282
- l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
7269
+ const c = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
7270
+ c.length > 0 && c[0] !== "dev" && (this.options.lng = c[0]);
7283
7271
  }
7284
- !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((l) => {
7285
- this[l] = function() {
7286
- return e.store[l](...arguments);
7272
+ !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((c) => {
7273
+ this[c] = function() {
7274
+ return e.store[c](...arguments);
7287
7275
  };
7288
- }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((l) => {
7289
- this[l] = function() {
7290
- return e.store[l](...arguments), e;
7276
+ }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
7277
+ this[c] = function() {
7278
+ return e.store[c](...arguments), e;
7291
7279
  };
7292
7280
  });
7293
- const C = p1(), d = () => {
7294
- const l = (c, g) => {
7295
- this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), C.resolve(g), s(c, g);
7281
+ const l = p1(), a = () => {
7282
+ const c = (u, g) => {
7283
+ this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), l.resolve(g), s(u, g);
7296
7284
  };
7297
- if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return l(null, this.t.bind(this));
7298
- this.changeLanguage(this.options.lng, l);
7285
+ if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return c(null, this.t.bind(this));
7286
+ this.changeLanguage(this.options.lng, c);
7299
7287
  };
7300
- return this.options.resources || !this.options.initImmediate ? d() : setTimeout(d, 0), C;
7288
+ return this.options.resources || !this.options.initImmediate ? a() : setTimeout(a, 0), l;
7301
7289
  }
7302
7290
  loadResources(e) {
7303
7291
  let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : x1;
7304
7292
  const n = M(e) ? e : this.language;
7305
7293
  if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
7306
7294
  if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
7307
- const o = [], h = (a) => {
7308
- if (!a || a === "cimode") return;
7309
- this.services.languageUtils.toResolveHierarchy(a).forEach((d) => {
7310
- d !== "cimode" && o.indexOf(d) < 0 && o.push(d);
7295
+ const o = [], h = (d) => {
7296
+ if (!d || d === "cimode") return;
7297
+ this.services.languageUtils.toResolveHierarchy(d).forEach((a) => {
7298
+ a !== "cimode" && o.indexOf(a) < 0 && o.push(a);
7311
7299
  });
7312
7300
  };
7313
- n ? h(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((C) => h(C)), this.options.preload && this.options.preload.forEach((a) => h(a)), this.services.backendConnector.load(o, this.options.ns, (a) => {
7314
- !a && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(a);
7301
+ n ? h(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((l) => h(l)), this.options.preload && this.options.preload.forEach((d) => h(d)), this.services.backendConnector.load(o, this.options.ns, (d) => {
7302
+ !d && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(d);
7315
7303
  });
7316
7304
  } else
7317
7305
  s(null);
@@ -7342,39 +7330,39 @@ class L1 extends E1 {
7342
7330
  this.isLanguageChangingTo = e;
7343
7331
  const n = p1();
7344
7332
  this.emit("languageChanging", e);
7345
- const o = (C) => {
7346
- this.language = C, this.languages = this.services.languageUtils.toResolveHierarchy(C), this.resolvedLanguage = void 0, this.setResolvedLanguage(C);
7347
- }, h = (C, d) => {
7348
- d ? (o(d), this.translator.changeLanguage(d), this.isLanguageChangingTo = void 0, this.emit("languageChanged", d), this.logger.log("languageChanged", d)) : this.isLanguageChangingTo = void 0, n.resolve(function() {
7333
+ const o = (l) => {
7334
+ this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
7335
+ }, h = (l, a) => {
7336
+ a ? (o(a), this.translator.changeLanguage(a), this.isLanguageChangingTo = void 0, this.emit("languageChanged", a), this.logger.log("languageChanged", a)) : this.isLanguageChangingTo = void 0, n.resolve(function() {
7349
7337
  return s.t(...arguments);
7350
- }), t && t(C, function() {
7338
+ }), t && t(l, function() {
7351
7339
  return s.t(...arguments);
7352
7340
  });
7353
- }, a = (C) => {
7354
- !e && !C && this.services.languageDetector && (C = []);
7355
- const d = M(C) ? C : this.services.languageUtils.getBestMatchFromCodes(C);
7356
- d && (this.language || o(d), this.translator.language || this.translator.changeLanguage(d), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(d)), this.loadResources(d, (l) => {
7357
- h(l, d);
7341
+ }, d = (l) => {
7342
+ !e && !l && this.services.languageDetector && (l = []);
7343
+ const a = M(l) ? l : this.services.languageUtils.getBestMatchFromCodes(l);
7344
+ a && (this.language || o(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(a)), this.loadResources(a, (c) => {
7345
+ h(c, a);
7358
7346
  });
7359
7347
  };
7360
- 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;
7348
+ return !e && this.services.languageDetector && !this.services.languageDetector.async ? d(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(d) : this.services.languageDetector.detect(d) : d(e), n;
7361
7349
  }
7362
7350
  getFixedT(e, t, s) {
7363
7351
  var n = this;
7364
- const o = function(h, a) {
7365
- let C;
7366
- if (typeof a != "object") {
7367
- for (var d = arguments.length, l = new Array(d > 2 ? d - 2 : 0), c = 2; c < d; c++)
7368
- l[c - 2] = arguments[c];
7369
- C = n.options.overloadTranslationOptionHandler([h, a].concat(l));
7352
+ const o = function(h, d) {
7353
+ let l;
7354
+ if (typeof d != "object") {
7355
+ for (var a = arguments.length, c = new Array(a > 2 ? a - 2 : 0), u = 2; u < a; u++)
7356
+ c[u - 2] = arguments[u];
7357
+ l = n.options.overloadTranslationOptionHandler([h, d].concat(c));
7370
7358
  } else
7371
- C = {
7372
- ...a
7359
+ l = {
7360
+ ...d
7373
7361
  };
7374
- C.lng = C.lng || o.lng, C.lngs = C.lngs || o.lngs, C.ns = C.ns || o.ns, C.keyPrefix !== "" && (C.keyPrefix = C.keyPrefix || s || o.keyPrefix);
7362
+ l.lng = l.lng || o.lng, l.lngs = l.lngs || o.lngs, l.ns = l.ns || o.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || s || o.keyPrefix);
7375
7363
  const g = n.options.keySeparator || ".";
7376
7364
  let p;
7377
- return C.keyPrefix && Array.isArray(h) ? p = h.map((w) => `${C.keyPrefix}${g}${w}`) : p = C.keyPrefix ? `${C.keyPrefix}${g}${h}` : h, n.t(p, C);
7365
+ return l.keyPrefix && Array.isArray(h) ? p = h.map((w) => `${l.keyPrefix}${g}${w}`) : p = l.keyPrefix ? `${l.keyPrefix}${g}${h}` : h, n.t(p, l);
7378
7366
  };
7379
7367
  return M(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = s, o;
7380
7368
  }
@@ -7395,13 +7383,13 @@ class L1 extends E1 {
7395
7383
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
7396
7384
  const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1, o = this.languages[this.languages.length - 1];
7397
7385
  if (s.toLowerCase() === "cimode") return !0;
7398
- const h = (a, C) => {
7399
- const d = this.services.backendConnector.state[`${a}|${C}`];
7400
- return d === -1 || d === 0 || d === 2;
7386
+ const h = (d, l) => {
7387
+ const a = this.services.backendConnector.state[`${d}|${l}`];
7388
+ return a === -1 || a === 0 || a === 2;
7401
7389
  };
7402
7390
  if (t.precheck) {
7403
- const a = t.precheck(this, h);
7404
- if (a !== void 0) return a;
7391
+ const d = t.precheck(this, h);
7392
+ if (d !== void 0) return d;
7405
7393
  }
7406
7394
  return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || h(s, e) && (!n || h(o, e)));
7407
7395
  }
@@ -7439,16 +7427,16 @@ class L1 extends E1 {
7439
7427
  ...e,
7440
7428
  isClone: !0
7441
7429
  }, o = new L1(n);
7442
- return (e.debug !== void 0 || e.prefix !== void 0) && (o.logger = o.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
7443
- o[a] = this[a];
7430
+ return (e.debug !== void 0 || e.prefix !== void 0) && (o.logger = o.logger.clone(e)), ["store", "services", "language"].forEach((d) => {
7431
+ o[d] = this[d];
7444
7432
  }), o.services = {
7445
7433
  ...this.services
7446
7434
  }, o.services.utils = {
7447
7435
  hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
7448
- }, s && (o.store = new t2(this.store.data, n), o.services.resourceStore = o.store), o.translator = new H1(o.services, n), o.translator.on("*", function(a) {
7449
- for (var C = arguments.length, d = new Array(C > 1 ? C - 1 : 0), l = 1; l < C; l++)
7450
- d[l - 1] = arguments[l];
7451
- o.emit(a, ...d);
7436
+ }, s && (o.store = new t2(this.store.data, n), o.services.resourceStore = o.store), o.translator = new H1(o.services, n), o.translator.on("*", function(d) {
7437
+ for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
7438
+ a[c - 1] = arguments[c];
7439
+ o.emit(d, ...a);
7452
7440
  }), o.init(n, t), o.translator.options = n, o.translator.backendConnector.services.utils = {
7453
7441
  hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
7454
7442
  }, o;
@@ -7482,7 +7470,7 @@ W.loadLanguages;
7482
7470
  const M7 = "Archived", b7 = "Deleted", y7 = {
7483
7471
  archived: M7,
7484
7472
  deleted: b7
7485
- }, H7 = "Заархивирован", E7 = "Удалён", A7 = {
7473
+ }, H7 = "Заархивирован", E7 = "Удалён", V7 = {
7486
7474
  archived: H7,
7487
7475
  deleted: E7
7488
7476
  };
@@ -7494,7 +7482,7 @@ W.use(qt).init({
7494
7482
  common: y7
7495
7483
  },
7496
7484
  ru: {
7497
- common: A7
7485
+ common: V7
7498
7486
  }
7499
7487
  }
7500
7488
  });
@@ -7507,121 +7495,121 @@ const D7 = d1(
7507
7495
  value: n,
7508
7496
  onChange: o,
7509
7497
  onError: h,
7510
- allowEmpty: a = !1,
7511
- showAvatar: C = !1,
7512
- clearable: d,
7513
- required: l,
7514
- error: c
7498
+ allowEmpty: d = !1,
7499
+ showAvatar: l = !1,
7500
+ clearable: a,
7501
+ required: c,
7502
+ error: u
7515
7503
  }, g) => {
7516
- const { axiosPeople: p, locale: w } = r1(y2), { t: v } = i7("common", { lng: w }), [m, b] = O([]), [y, I] = O(!0), f = J(m), x = J(null);
7504
+ const { axiosPeople: p, locale: w } = r1(y2), { t: v } = i7("common", { lng: w }), [m, b] = G([]), [y, I] = G(!0), f = J(m), x = J(null);
7517
7505
  if (k1(g, () => x.current), !p)
7518
7506
  throw new Error(
7519
7507
  `UserSelect requires "axiosPeople" to fetch users.
7520
7508
  Please provide it via SNMTUiContext.`
7521
7509
  );
7522
- const _ = P(
7510
+ const _ = $(
7523
7511
  (E) => {
7524
- let T = "";
7525
- return E.deletedAt && (T += `[${v("deleted")}] `), E.status === _1.ARCHIVED && (T += `[${v("archived")}] `), `${T}${E.firstName} ${E.lastName}`;
7512
+ let D = "";
7513
+ return E.deletedAt && (D += `[${v("deleted")}] `), E.status === _1.ARCHIVED && (D += `[${v("archived")}] `), `${D}${E.firstName} ${E.lastName}`;
7526
7514
  },
7527
7515
  [v]
7528
- ), R = P(
7516
+ ), R = $(
7529
7517
  async ({
7530
7518
  offset: E,
7531
- limit: T,
7532
- search: A
7519
+ limit: D,
7520
+ search: V
7533
7521
  }) => {
7534
- var Z, G, B;
7522
+ var O, S, B;
7535
7523
  try {
7536
7524
  const U = await p.post("v1/users/search", {
7537
7525
  offset: E,
7538
- limit: T,
7539
- search: A,
7526
+ limit: D,
7527
+ search: V,
7540
7528
  ...i,
7541
7529
  includeCount: !0
7542
- }), { data: V, metadata: $ } = U.data;
7530
+ }), { data: A, metadata: P } = U.data;
7543
7531
  return {
7544
- options: V.map((Y) => ({
7532
+ options: A.map((Y) => ({
7545
7533
  value: Y.id,
7546
7534
  label: _(Y),
7547
- image: C ? Y.avatarUrl : void 0
7535
+ image: l ? Y.avatarUrl : void 0
7548
7536
  })),
7549
- count: $.count
7537
+ count: P.count
7550
7538
  };
7551
7539
  } catch (U) {
7552
7540
  return h && h({
7553
- status: ((Z = U.response) == null ? void 0 : Z.status) ?? 500,
7554
- message: ((B = (G = U.response) == null ? void 0 : G.data) == null ? void 0 : B.message) ?? "Error while fetching options"
7541
+ status: ((O = U.response) == null ? void 0 : O.status) ?? 500,
7542
+ message: ((B = (S = U.response) == null ? void 0 : S.data) == null ? void 0 : B.message) ?? "Error while fetching options"
7555
7543
  }), {
7556
7544
  options: [],
7557
7545
  count: 0
7558
7546
  };
7559
7547
  }
7560
7548
  },
7561
- [p, i, _, C, h]
7562
- ), j = P(
7549
+ [p, i, _, l, h]
7550
+ ), j = $(
7563
7551
  async (E) => {
7564
- var T, A, Z;
7552
+ var D, V, O;
7565
7553
  try {
7566
- const G = E.filter(
7567
- (V) => !f.current.some(($) => $.value === V)
7554
+ const S = E.filter(
7555
+ (A) => !f.current.some((P) => P.value === A)
7568
7556
  );
7569
7557
  let B = [];
7570
- G.length && (B = (await p.post("v1/users/search", {
7558
+ S.length && (B = (await p.post("v1/users/search", {
7571
7559
  filters: {
7572
- id: G,
7560
+ id: S,
7573
7561
  status: [_1.ACTIVE, _1.ARCHIVED]
7574
7562
  }
7575
7563
  })).data.data);
7576
- const U = B.map((V) => ({
7577
- value: V.id,
7578
- label: _(V),
7579
- image: C ? V.avatarUrl : void 0
7564
+ const U = B.map((A) => ({
7565
+ value: A.id,
7566
+ label: _(A),
7567
+ image: l ? A.avatarUrl : void 0
7580
7568
  }));
7581
7569
  return [...f.current, ...U];
7582
- } catch (G) {
7570
+ } catch (S) {
7583
7571
  return h && h({
7584
- status: ((T = G.response) == null ? void 0 : T.status) ?? 500,
7585
- message: ((Z = (A = G.response) == null ? void 0 : A.data) == null ? void 0 : Z.message) ?? "Error while fetching selected items"
7572
+ status: ((D = S.response) == null ? void 0 : D.status) ?? 500,
7573
+ message: ((O = (V = S.response) == null ? void 0 : V.data) == null ? void 0 : O.message) ?? "Error while fetching selected items"
7586
7574
  }), [];
7587
7575
  }
7588
7576
  },
7589
- [p, _, h, C]
7577
+ [p, _, h, l]
7590
7578
  );
7591
- D(() => {
7579
+ K(() => {
7592
7580
  f.current = m;
7593
- }, [m]), D(() => {
7581
+ }, [m]), K(() => {
7594
7582
  var E;
7595
7583
  (E = x.current) == null || E.refetchOptions();
7596
- }, [i]), D(() => {
7584
+ }, [i]), K(() => {
7597
7585
  if (!n) {
7598
7586
  I(!1);
7599
7587
  return;
7600
7588
  }
7601
7589
  (async () => {
7602
- const T = Array.isArray(n) ? n : [n], A = await j(T);
7603
- b(A), I(!1);
7590
+ const D = Array.isArray(n) ? n : [n], V = await j(D);
7591
+ b(V), I(!1);
7604
7592
  })();
7605
7593
  }, [j, n]);
7606
- const q = P(
7594
+ const q = $(
7607
7595
  async ({
7608
7596
  limit: E,
7609
- offset: T,
7610
- search: A
7597
+ offset: D,
7598
+ search: V
7611
7599
  }) => {
7612
- const { count: Z, ...G } = await R({
7613
- offset: T,
7600
+ const { count: O, ...S } = await R({
7601
+ offset: D,
7614
7602
  limit: E,
7615
- search: A
7603
+ search: V
7616
7604
  });
7617
- let B = G.options;
7618
- return a && T === 0 && (B = [{ value: null, label: "None" }, ...B]), {
7605
+ let B = S.options;
7606
+ return d && D === 0 && (B = [{ value: null, label: "None" }, ...B]), {
7619
7607
  options: B,
7620
- count: Z,
7608
+ count: O,
7621
7609
  limit: E
7622
7610
  };
7623
7611
  },
7624
- [a, R]
7612
+ [d, R]
7625
7613
  );
7626
7614
  if (y)
7627
7615
  return /* @__PURE__ */ r(Dt, {});
@@ -7629,9 +7617,9 @@ const D7 = d1(
7629
7617
  ref: x,
7630
7618
  placeholder: t,
7631
7619
  disabled: s,
7632
- clearable: d,
7633
- required: l,
7634
- error: c
7620
+ clearable: a,
7621
+ required: c,
7622
+ error: u
7635
7623
  };
7636
7624
  return e ? /* @__PURE__ */ r(
7637
7625
  W1,