@snmt-react-ui/user-select 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/user-select.js +407 -405
  2. package/package.json +3 -3
@@ -3,24 +3,24 @@ var ue = (i, e, t) => e in i ? ge(i, e, { enumerable: !0, configurable: !0, writ
3
3
  var V1 = (i, e, t) => ue(i, typeof e != "symbol" ? e + "" : e, t);
4
4
  import "./index.css";
5
5
  import { jsx as o, Fragment as n1, jsxs as u } from "react/jsx-runtime";
6
- import { createContext as o1, forwardRef as k1, useState as j, useRef as X, useEffect as K, useCallback as T, useImperativeHandle as Ce, useContext as e1 } from "react";
6
+ import { createContext as o1, forwardRef as k1, useState as Z, useRef as X, useEffect as K, useCallback as D, useImperativeHandle as Ce, useContext as e1 } from "react";
7
7
  import { Select as pe, Flex as fe, Avatar as we, Checkbox as me, Typography as ke, Tag as Le, Popover as ve } from "antd";
8
8
  import { SNMTUiContext as Ne } from "@snmt-react-ui/core";
9
- var xe = Object.defineProperty, Re = (i, e, t) => e in i ? xe(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Me = (i, e, t) => Re(i, e + "", t), ye = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
- function be() {
9
+ var xe = Object.defineProperty, Re = (i, e, t) => e in i ? xe(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Me = (i, e, t) => Re(i, e + "", t), be = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
+ function ye() {
11
11
  if (console && console.warn) {
12
12
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
13
13
  e[t] = arguments[t];
14
- Q(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
14
+ q(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
15
15
  }
16
16
  }
17
17
  const I1 = {};
18
18
  function M1() {
19
19
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
20
20
  e[t] = arguments[t];
21
- Q(e[0]) && I1[e[0]] || (Q(e[0]) && (I1[e[0]] = /* @__PURE__ */ new Date()), be(...e));
21
+ q(e[0]) && I1[e[0]] || (q(e[0]) && (I1[e[0]] = /* @__PURE__ */ new Date()), ye(...e));
22
22
  }
23
- const q1 = (i, e) => () => {
23
+ const Q1 = (i, e) => () => {
24
24
  if (i.isInitialized)
25
25
  e();
26
26
  else {
@@ -32,11 +32,11 @@ const q1 = (i, e) => () => {
32
32
  i.on("initialized", t);
33
33
  }
34
34
  }, S1 = (i, e, t) => {
35
- i.loadNamespaces(e, q1(i, t));
35
+ i.loadNamespaces(e, Q1(i, t));
36
36
  }, O1 = (i, e, t, s) => {
37
- Q(t) && (t = [t]), t.forEach((n) => {
37
+ q(t) && (t = [t]), t.forEach((n) => {
38
38
  i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
39
- }), i.loadLanguages(e, q1(i, s));
39
+ }), i.loadLanguages(e, Q1(i, s));
40
40
  }, Ee = function(i, e) {
41
41
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
42
42
  const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
@@ -54,7 +54,7 @@ const q1 = (i, e) => () => {
54
54
  if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !n(s.isLanguageChangingTo, i)) return !1;
55
55
  }
56
56
  }) : Ee(i, e, t);
57
- }, Q = (i) => typeof i == "string", He = (i) => typeof i == "object" && i !== null, Ve = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ie = {
57
+ }, q = (i) => typeof i == "string", He = (i) => typeof i == "object" && i !== null, Ve = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ie = {
58
58
  "&amp;": "&",
59
59
  "&#38;": "&",
60
60
  "&lt;": "<",
@@ -87,8 +87,8 @@ let Ae = {
87
87
  unescape: Oe
88
88
  };
89
89
  const Be = () => Ae;
90
- let Ze;
91
- const We = () => Ze, je = o1();
90
+ let We;
91
+ const Ze = () => We, je = o1();
92
92
  class De {
93
93
  constructor() {
94
94
  Me(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
@@ -104,18 +104,18 @@ const Te = (i, e) => {
104
104
  return K(() => {
105
105
  t.current = i;
106
106
  }, [i, e]), t.current;
107
- }, X1 = (i, e, t, s) => i.getFixedT(e, t, s), Ge = (i, e, t, s) => T(X1(i, e, t, s), [i, e, t, s]), Ke = function(i) {
107
+ }, X1 = (i, e, t, s) => i.getFixedT(e, t, s), Ge = (i, e, t, s) => D(X1(i, e, t, s), [i, e, t, s]), Ke = 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
- } = e1(je) || {}, a = t || s || We();
114
+ } = e1(je) || {}, a = t || s || Ze();
115
115
  if (a && !a.reportNamespaces && (a.reportNamespaces = new De()), !a) {
116
116
  M1("You will need to pass in an i18next instance by using initReactI18next");
117
- const f = (b, w) => Q(w) ? w : He(w) && Q(w.defaultValue) ? w.defaultValue : Array.isArray(b) ? b[b.length - 1] : b, R = [f, {}, !1];
118
- return R.t = f, R.i18n = {}, R.ready = !1, R;
117
+ const f = (y, w) => q(w) ? w : He(w) && q(w.defaultValue) ? w.defaultValue : Array.isArray(y) ? y[y.length - 1] : y, x = [f, {}, !1];
118
+ return x.t = f, x.i18n = {}, x.ready = !1, x;
119
119
  }
120
120
  a.options.react && a.options.react.wait !== void 0 && M1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
121
121
  const c = {
@@ -127,32 +127,32 @@ const Te = (i, e) => {
127
127
  keyPrefix: d
128
128
  } = c;
129
129
  let g = i;
130
- g = Q(g) ? [g] : g || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(g);
131
- const l = (a.isInitialized || a.initializedStoreOnce) && g.every((f) => _e(f, a, c)), h = Ge(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => X1(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [k, N] = j(C);
132
- let m = g.join();
133
- e.lng && (m = `${e.lng}${m}`);
134
- const E = Te(m), x = X(!0);
130
+ g = q(g) ? [g] : g || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(g);
131
+ const l = (a.isInitialized || a.initializedStoreOnce) && g.every((f) => _e(f, a, c)), h = Ge(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => X1(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [m, N] = Z(C);
132
+ let k = g.join();
133
+ e.lng && (k = `${e.lng}${k}`);
134
+ const E = Te(k), R = X(!0);
135
135
  K(() => {
136
136
  const {
137
137
  bindI18n: f,
138
- bindI18nStore: R
138
+ bindI18nStore: x
139
139
  } = c;
140
- x.current = !0, !l && !r && (e.lng ? O1(a, e.lng, g, () => {
141
- x.current && N(p);
140
+ R.current = !0, !l && !r && (e.lng ? O1(a, e.lng, g, () => {
141
+ R.current && N(p);
142
142
  }) : S1(a, g, () => {
143
- x.current && N(p);
144
- })), l && E && E !== m && x.current && N(p);
145
- const b = () => {
146
- x.current && N(p);
143
+ R.current && N(p);
144
+ })), l && E && E !== k && R.current && N(p);
145
+ const y = () => {
146
+ R.current && N(p);
147
147
  };
148
- return f && a && a.on(f, b), R && a && a.store.on(R, b), () => {
149
- x.current = !1, f && a && f.split(" ").forEach((w) => a.off(w, b)), R && a && R.split(" ").forEach((w) => a.store.off(w, b));
148
+ return f && a && a.on(f, y), x && a && a.store.on(x, y), () => {
149
+ R.current = !1, f && a && f.split(" ").forEach((w) => a.off(w, y)), x && a && x.split(" ").forEach((w) => a.store.off(w, y));
150
150
  };
151
- }, [a, m]), K(() => {
152
- x.current && l && N(C);
151
+ }, [a, k]), K(() => {
152
+ R.current && l && N(C);
153
153
  }, [a, d, l]);
154
- const _ = [k, a, l];
155
- if (_.t = k, _.i18n = a, _.ready = l, l || !l && !r) return _;
154
+ const _ = [m, a, l];
155
+ if (_.t = m, _.i18n = a, _.ready = l, l || !l && !r) return _;
156
156
  throw new Promise((f) => {
157
157
  e.lng ? O1(a, e.lng, g, () => f()) : S1(a, g, () => f());
158
158
  });
@@ -206,7 +206,7 @@ const $e = ({
206
206
  disabled: n = !1,
207
207
  disableUncheck: a = !1
208
208
  }) => {
209
- const [c, r] = j(i), [d, g] = j(e);
209
+ const [c, r] = Z(i), [d, g] = Z(e);
210
210
  K(() => {
211
211
  r(i), g(e);
212
212
  }, [i, e]);
@@ -387,7 +387,7 @@ const Fe = ({
387
387
  )
388
388
  ]
389
389
  }
390
- ), Qe = ({
390
+ ), qe = ({
391
391
  width: i = 20,
392
392
  height: e = 20,
393
393
  color: t = "#001E52",
@@ -413,7 +413,7 @@ const Fe = ({
413
413
  }
414
414
  )
415
415
  }
416
- ), qe = ({
416
+ ), Qe = ({
417
417
  width: i = 20,
418
418
  height: e = 20,
419
419
  color: t = "#001E52",
@@ -1474,7 +1474,7 @@ const Fe = ({
1474
1474
  )
1475
1475
  ]
1476
1476
  }
1477
- ), yt = ({
1477
+ ), bt = ({
1478
1478
  width: i = 20,
1479
1479
  height: e = 20,
1480
1480
  color: t = "#070739",
@@ -1504,7 +1504,7 @@ const Fe = ({
1504
1504
  /* @__PURE__ */ o("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
1505
1505
  ]
1506
1506
  }
1507
- ), bt = ({
1507
+ ), yt = ({
1508
1508
  width: i = 20,
1509
1509
  height: e = 20,
1510
1510
  color: t = "#070739",
@@ -1840,7 +1840,7 @@ const Fe = ({
1840
1840
  )
1841
1841
  ]
1842
1842
  }
1843
- ), Zt = ({
1843
+ ), Wt = ({
1844
1844
  width: i = 81,
1845
1845
  height: e = 80,
1846
1846
  color: t = M.GREY_DARK_5,
@@ -1889,7 +1889,7 @@ const Fe = ({
1889
1889
  )
1890
1890
  ]
1891
1891
  }
1892
- ), Wt = ({
1892
+ ), Zt = ({
1893
1893
  className: i,
1894
1894
  color: e = M.GREY_DARK_5,
1895
1895
  height: t = 20,
@@ -2346,7 +2346,7 @@ const Fe = ({
2346
2346
  )
2347
2347
  ]
2348
2348
  }
2349
- ), Qt = ({
2349
+ ), qt = ({
2350
2350
  className: i,
2351
2351
  color: e = M.NOTIFICATION_WARNING_DARK,
2352
2352
  height: t = 37,
@@ -2385,7 +2385,7 @@ const Fe = ({
2385
2385
  )
2386
2386
  ]
2387
2387
  }
2388
- ), qt = ({
2388
+ ), Qt = ({
2389
2389
  className: i,
2390
2390
  color: e = M.GREY_DARK_5,
2391
2391
  height: t = 24,
@@ -3283,7 +3283,7 @@ const Fe = ({
3283
3283
  disabled: a = !1,
3284
3284
  onClick: c
3285
3285
  }) => {
3286
- const [r, d] = j(n), { theme: g } = e1(ee), l = a ? g && g === "dark" ? M.GREY_LIGHT_4 : M.GREY_DARK_1 : s, h = a ? void 0 : c;
3286
+ const [r, d] = Z(n), { theme: g } = e1(ee), l = a ? g && g === "dark" ? M.GREY_LIGHT_4 : M.GREY_DARK_1 : s, h = a ? void 0 : c;
3287
3287
  return K(() => {
3288
3288
  if (n) {
3289
3289
  h && !a && d(`${n} clickable`);
@@ -3293,7 +3293,7 @@ const Fe = ({
3293
3293
  }, [h, n, a]), /* @__PURE__ */ o(n1, { children: (() => {
3294
3294
  switch (i) {
3295
3295
  case "nextIcon":
3296
- return Wt({ width: e, height: t, color: l, className: r, onClick: h });
3296
+ return Zt({ width: e, height: t, color: l, className: r, onClick: h });
3297
3297
  case "prevIcon":
3298
3298
  return jt({ width: e, height: t, color: l, className: r, onClick: h });
3299
3299
  case "arrowUp":
@@ -3307,9 +3307,9 @@ const Fe = ({
3307
3307
  case "calendar":
3308
3308
  return Je({ width: e, height: t, color: l, className: r, onClick: h });
3309
3309
  case "ok":
3310
- return Qe({ width: e, height: t, color: l, className: r, onClick: h });
3311
- case "cancel":
3312
3310
  return qe({ width: e, height: t, color: l, className: r, onClick: h });
3311
+ case "cancel":
3312
+ return Qe({ width: e, height: t, color: l, className: r, onClick: h });
3313
3313
  case "add":
3314
3314
  return Xe({ width: e, height: t, color: l, className: r, onClick: h });
3315
3315
  case "list":
@@ -3409,7 +3409,7 @@ const Fe = ({
3409
3409
  onClick: h
3410
3410
  });
3411
3411
  case "visibilityIcon":
3412
- return yt({
3412
+ return bt({
3413
3413
  width: e,
3414
3414
  height: t,
3415
3415
  color: l,
@@ -3417,7 +3417,7 @@ const Fe = ({
3417
3417
  onClick: h
3418
3418
  });
3419
3419
  case "visibilityOffIcon":
3420
- return bt({
3420
+ return yt({
3421
3421
  width: e,
3422
3422
  height: t,
3423
3423
  color: l,
@@ -3459,7 +3459,7 @@ const Fe = ({
3459
3459
  case "search":
3460
3460
  return Bt({ width: e, height: t, color: l, className: r, onClick: h });
3461
3461
  case "handRock":
3462
- return Zt({ width: e, height: t, color: l, className: r, onClick: h });
3462
+ return Wt({ width: e, height: t, color: l, className: r, onClick: h });
3463
3463
  case "arrowUpFilled":
3464
3464
  return Tt({ width: e, height: t, color: l, className: r, onClick: h });
3465
3465
  case "arrowDownFilled":
@@ -3483,9 +3483,9 @@ const Fe = ({
3483
3483
  case "plusCircle":
3484
3484
  return Jt({ width: e, height: t, color: l, className: r, onClick: h });
3485
3485
  case "warning":
3486
- return Qt({ width: e, height: t, color: l, className: r, onClick: h });
3487
- case "back":
3488
3486
  return qt({ width: e, height: t, color: l, className: r, onClick: h });
3487
+ case "back":
3488
+ return Qt({ width: e, height: t, color: l, className: r, onClick: h });
3489
3489
  case "bell":
3490
3490
  return Xt({ width: e, height: t, color: l, className: r, onClick: h });
3491
3491
  case "contract":
@@ -3575,13 +3575,13 @@ const Fe = ({
3575
3575
  );
3576
3576
  }
3577
3577
  );
3578
- var y = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(y || {});
3578
+ var b = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(b || {});
3579
3579
  const te = o1({
3580
3580
  locale: "en",
3581
3581
  theme: "light"
3582
3582
  });
3583
3583
  te.Provider;
3584
- const y2 = ({
3584
+ const b2 = ({
3585
3585
  width: i = 20,
3586
3586
  height: e = 20,
3587
3587
  color: t = "#001E52",
@@ -3608,7 +3608,7 @@ const y2 = ({
3608
3608
  }
3609
3609
  )
3610
3610
  }
3611
- ), b2 = ({
3611
+ ), y2 = ({
3612
3612
  width: i = 20,
3613
3613
  height: e = 20,
3614
3614
  color: t = "#001E52",
@@ -3958,7 +3958,7 @@ const y2 = ({
3958
3958
  )
3959
3959
  ] })
3960
3960
  }
3961
- ), Z2 = ({
3961
+ ), W2 = ({
3962
3962
  width: i = 16,
3963
3963
  height: e = 16,
3964
3964
  color: t = "#001E52",
@@ -3992,7 +3992,7 @@ const y2 = ({
3992
3992
  )
3993
3993
  ]
3994
3994
  }
3995
- ), W2 = ({
3995
+ ), Z2 = ({
3996
3996
  width: i = 10,
3997
3997
  height: e = 10,
3998
3998
  color: t = "#001E52",
@@ -4474,7 +4474,7 @@ const y2 = ({
4474
4474
  )
4475
4475
  ]
4476
4476
  }
4477
- ), Q2 = ({
4477
+ ), q2 = ({
4478
4478
  width: i = 20,
4479
4479
  height: e = 23,
4480
4480
  color: t = "#001E52",
@@ -4535,7 +4535,7 @@ const y2 = ({
4535
4535
  )
4536
4536
  ]
4537
4537
  }
4538
- ), q2 = ({
4538
+ ), Q2 = ({
4539
4539
  width: i = 20,
4540
4540
  height: e = 20,
4541
4541
  color: t = "#001E52",
@@ -5121,7 +5121,7 @@ const y2 = ({
5121
5121
  ), p5 = ({
5122
5122
  width: i = 24,
5123
5123
  height: e = 24,
5124
- color: t = y.GREY_DARK_5,
5124
+ color: t = b.GREY_DARK_5,
5125
5125
  className: s,
5126
5126
  onClick: n
5127
5127
  }) => /* @__PURE__ */ u(
@@ -5160,7 +5160,7 @@ const y2 = ({
5160
5160
  ), f5 = ({
5161
5161
  width: i = 20,
5162
5162
  height: e = 20,
5163
- color: t = y.GREY_DARK_1,
5163
+ color: t = b.GREY_DARK_1,
5164
5164
  className: s,
5165
5165
  onClick: n
5166
5166
  }) => /* @__PURE__ */ u(
@@ -5193,7 +5193,7 @@ const y2 = ({
5193
5193
  ), w5 = ({
5194
5194
  width: i = 81,
5195
5195
  height: e = 80,
5196
- color: t = y.GREY_DARK_5,
5196
+ color: t = b.GREY_DARK_5,
5197
5197
  className: s,
5198
5198
  onClick: n
5199
5199
  }) => /* @__PURE__ */ u(
@@ -5241,7 +5241,7 @@ const y2 = ({
5241
5241
  }
5242
5242
  ), m5 = ({
5243
5243
  className: i,
5244
- color: e = y.GREY_DARK_5,
5244
+ color: e = b.GREY_DARK_5,
5245
5245
  height: t = 20,
5246
5246
  width: s = 20,
5247
5247
  onClick: n
@@ -5268,7 +5268,7 @@ const y2 = ({
5268
5268
  }
5269
5269
  ), k5 = ({
5270
5270
  className: i,
5271
- color: e = y.GREY_DARK_5,
5271
+ color: e = b.GREY_DARK_5,
5272
5272
  height: t = 20,
5273
5273
  width: s = 20,
5274
5274
  onClick: n
@@ -5295,7 +5295,7 @@ const y2 = ({
5295
5295
  }
5296
5296
  ), L5 = ({
5297
5297
  className: i,
5298
- color: e = y.GREY_DARK_5,
5298
+ color: e = b.GREY_DARK_5,
5299
5299
  height: t = 5,
5300
5300
  width: s = 10,
5301
5301
  onClick: n
@@ -5319,7 +5319,7 @@ const y2 = ({
5319
5319
  }
5320
5320
  ), v5 = ({
5321
5321
  className: i,
5322
- color: e = y.GREY_DARK_5,
5322
+ color: e = b.GREY_DARK_5,
5323
5323
  height: t = 5,
5324
5324
  width: s = 10,
5325
5325
  onClick: n
@@ -5344,7 +5344,7 @@ const y2 = ({
5344
5344
  }
5345
5345
  ), N5 = ({
5346
5346
  className: i,
5347
- color: e = y.GREY_DARK_5,
5347
+ color: e = b.GREY_DARK_5,
5348
5348
  height: t = 24,
5349
5349
  width: s = 24,
5350
5350
  onClick: n
@@ -5383,7 +5383,7 @@ const y2 = ({
5383
5383
  }
5384
5384
  ), x5 = ({
5385
5385
  className: i,
5386
- color: e = y.GREY_DARK_5,
5386
+ color: e = b.GREY_DARK_5,
5387
5387
  height: t = 24,
5388
5388
  width: s = 24,
5389
5389
  onClick: n
@@ -5422,7 +5422,7 @@ const y2 = ({
5422
5422
  }
5423
5423
  ), R5 = ({
5424
5424
  className: i,
5425
- color: e = y.GREY_DARK_5,
5425
+ color: e = b.GREY_DARK_5,
5426
5426
  height: t = 24,
5427
5427
  width: s = 24,
5428
5428
  onClick: n
@@ -5449,7 +5449,7 @@ const y2 = ({
5449
5449
  }
5450
5450
  ), M5 = ({
5451
5451
  className: i,
5452
- color: e = y.GREY_DARK_5,
5452
+ color: e = b.GREY_DARK_5,
5453
5453
  height: t = 24,
5454
5454
  width: s = 24,
5455
5455
  onClick: n
@@ -5506,9 +5506,9 @@ const y2 = ({
5506
5506
  )
5507
5507
  ]
5508
5508
  }
5509
- ), y5 = ({
5509
+ ), b5 = ({
5510
5510
  className: i,
5511
- color: e = y.GREY_DARK_5,
5511
+ color: e = b.GREY_DARK_5,
5512
5512
  height: t = 24,
5513
5513
  width: s = 24,
5514
5514
  onClick: n
@@ -5543,9 +5543,9 @@ const y2 = ({
5543
5543
  )
5544
5544
  ]
5545
5545
  }
5546
- ), b5 = ({
5546
+ ), y5 = ({
5547
5547
  className: i,
5548
- color: e = y.GREY_DARK_3,
5548
+ color: e = b.GREY_DARK_3,
5549
5549
  height: t = 14,
5550
5550
  width: s = 14,
5551
5551
  onClick: n
@@ -5582,7 +5582,7 @@ const y2 = ({
5582
5582
  }
5583
5583
  ), E5 = ({
5584
5584
  className: i,
5585
- color: e = y.GREY_DARK_5,
5585
+ color: e = b.GREY_DARK_5,
5586
5586
  height: t = 18,
5587
5587
  onClick: s,
5588
5588
  width: n = 18
@@ -5609,7 +5609,7 @@ const y2 = ({
5609
5609
  }
5610
5610
  ), _5 = ({
5611
5611
  className: i,
5612
- color: e = y.GREY_DARK_5,
5612
+ color: e = b.GREY_DARK_5,
5613
5613
  height: t = 24,
5614
5614
  width: s = 24,
5615
5615
  onClick: n
@@ -5661,7 +5661,7 @@ const y2 = ({
5661
5661
  }
5662
5662
  ), H5 = ({
5663
5663
  className: i,
5664
- color: e = y.GREY_DARK_5,
5664
+ color: e = b.GREY_DARK_5,
5665
5665
  height: t = 24,
5666
5666
  width: s = 24,
5667
5667
  onClick: n
@@ -5698,7 +5698,7 @@ const y2 = ({
5698
5698
  }
5699
5699
  ), V5 = ({
5700
5700
  className: i,
5701
- color: e = y.NOTIFICATION_WARNING_DARK,
5701
+ color: e = b.NOTIFICATION_WARNING_DARK,
5702
5702
  height: t = 37,
5703
5703
  width: s = 36,
5704
5704
  onClick: n
@@ -5737,7 +5737,7 @@ const y2 = ({
5737
5737
  }
5738
5738
  ), I5 = ({
5739
5739
  className: i,
5740
- color: e = y.GREY_DARK_5,
5740
+ color: e = b.GREY_DARK_5,
5741
5741
  height: t = 24,
5742
5742
  width: s = 24,
5743
5743
  onClick: n
@@ -5763,7 +5763,7 @@ const y2 = ({
5763
5763
  }
5764
5764
  ), S5 = ({
5765
5765
  className: i,
5766
- color: e = y.GREY_DARK_5,
5766
+ color: e = b.GREY_DARK_5,
5767
5767
  height: t = 24,
5768
5768
  width: s = 24,
5769
5769
  onClick: n
@@ -5802,7 +5802,7 @@ const y2 = ({
5802
5802
  }
5803
5803
  ), O5 = ({
5804
5804
  className: i,
5805
- color: e = y.GREY_DARK_5,
5805
+ color: e = b.GREY_DARK_5,
5806
5806
  height: t = 24,
5807
5807
  width: s = 24,
5808
5808
  onClick: n
@@ -5841,7 +5841,7 @@ const y2 = ({
5841
5841
  }
5842
5842
  ), A5 = ({
5843
5843
  className: i,
5844
- color: e = y.GREY_DARK_5,
5844
+ color: e = b.GREY_DARK_5,
5845
5845
  height: t = 24,
5846
5846
  width: s = 24,
5847
5847
  onClick: n
@@ -5910,7 +5910,7 @@ const y2 = ({
5910
5910
  }
5911
5911
  ), B5 = ({
5912
5912
  className: i,
5913
- color: e = y.GREY_DARK_5,
5913
+ color: e = b.GREY_DARK_5,
5914
5914
  height: t = 24,
5915
5915
  width: s = 24,
5916
5916
  onClick: n
@@ -5947,9 +5947,9 @@ const y2 = ({
5947
5947
  )
5948
5948
  ]
5949
5949
  }
5950
- ), Z5 = ({
5950
+ ), W5 = ({
5951
5951
  className: i,
5952
- color: e = y.GREY_DARK_5,
5952
+ color: e = b.GREY_DARK_5,
5953
5953
  height: t = 24,
5954
5954
  width: s = 24,
5955
5955
  onClick: n
@@ -6004,9 +6004,9 @@ const y2 = ({
6004
6004
  )
6005
6005
  ]
6006
6006
  }
6007
- ), W5 = ({
6007
+ ), Z5 = ({
6008
6008
  className: i,
6009
- color: e = y.GREY_DARK_5,
6009
+ color: e = b.GREY_DARK_5,
6010
6010
  height: t = 24,
6011
6011
  width: s = 24,
6012
6012
  onClick: n
@@ -6045,7 +6045,7 @@ const y2 = ({
6045
6045
  }
6046
6046
  ), j5 = ({
6047
6047
  className: i,
6048
- color: e = y.GREY_DARK_5,
6048
+ color: e = b.GREY_DARK_5,
6049
6049
  height: t = 24,
6050
6050
  width: s = 24,
6051
6051
  onClick: n
@@ -6094,7 +6094,7 @@ const y2 = ({
6094
6094
  }
6095
6095
  ), D5 = ({
6096
6096
  className: i,
6097
- color: e = y.GREY_DARK_5,
6097
+ color: e = b.GREY_DARK_5,
6098
6098
  height: t = 24,
6099
6099
  width: s = 24,
6100
6100
  onClick: n
@@ -6133,7 +6133,7 @@ const y2 = ({
6133
6133
  }
6134
6134
  ), T5 = ({
6135
6135
  className: i,
6136
- color: e = y.GREY_DARK_5,
6136
+ color: e = b.GREY_DARK_5,
6137
6137
  height: t = 24,
6138
6138
  width: s = 24,
6139
6139
  onClick: n
@@ -6160,7 +6160,7 @@ const y2 = ({
6160
6160
  }
6161
6161
  ), G5 = ({
6162
6162
  className: i,
6163
- color: e = y.GREY_DARK_5,
6163
+ color: e = b.GREY_DARK_5,
6164
6164
  height: t = 24,
6165
6165
  width: s = 24,
6166
6166
  onClick: n
@@ -6198,7 +6198,7 @@ const y2 = ({
6198
6198
  }
6199
6199
  ), K5 = ({
6200
6200
  className: i,
6201
- color: e = y.GREY_DARK_5,
6201
+ color: e = b.GREY_DARK_5,
6202
6202
  height: t = 24,
6203
6203
  width: s = 24,
6204
6204
  onClick: n
@@ -6219,7 +6219,7 @@ const y2 = ({
6219
6219
  }
6220
6220
  ), P5 = ({
6221
6221
  className: i,
6222
- color: e = y.GREY_DARK_5,
6222
+ color: e = b.GREY_DARK_5,
6223
6223
  height: t = 24,
6224
6224
  width: s = 24,
6225
6225
  onClick: n
@@ -6258,7 +6258,7 @@ const y2 = ({
6258
6258
  }
6259
6259
  ), $5 = ({
6260
6260
  className: i,
6261
- color: e = y.GREY_DARK_5,
6261
+ color: e = b.GREY_DARK_5,
6262
6262
  height: t = 24,
6263
6263
  width: s = 24,
6264
6264
  onClick: n
@@ -6297,7 +6297,7 @@ const y2 = ({
6297
6297
  }
6298
6298
  ), F5 = ({
6299
6299
  className: i,
6300
- color: e = y.GREY_DARK_5,
6300
+ color: e = b.GREY_DARK_5,
6301
6301
  height: t = 24,
6302
6302
  width: s = 24,
6303
6303
  onClick: n
@@ -6336,7 +6336,7 @@ const y2 = ({
6336
6336
  }
6337
6337
  ), Y5 = ({
6338
6338
  className: i,
6339
- color: e = y.GREY_DARK_2,
6339
+ color: e = b.GREY_DARK_2,
6340
6340
  height: t = 16,
6341
6341
  width: s = 16,
6342
6342
  onClick: n
@@ -6362,7 +6362,7 @@ const y2 = ({
6362
6362
  }
6363
6363
  ), U5 = ({
6364
6364
  className: i,
6365
- color: e = y.GREY_DARK_5,
6365
+ color: e = b.GREY_DARK_5,
6366
6366
  height: t = 20,
6367
6367
  width: s = 20,
6368
6368
  onClick: n
@@ -6391,7 +6391,7 @@ const y2 = ({
6391
6391
  }
6392
6392
  ), z5 = ({
6393
6393
  className: i,
6394
- color: e = y.GREY_DARK_5,
6394
+ color: e = b.GREY_DARK_5,
6395
6395
  height: t = 20,
6396
6396
  width: s = 20,
6397
6397
  onClick: n
@@ -6420,7 +6420,7 @@ const y2 = ({
6420
6420
  }
6421
6421
  ), J5 = ({
6422
6422
  className: i,
6423
- color: e = y.GREY_DARK_5,
6423
+ color: e = b.GREY_DARK_5,
6424
6424
  height: t = 20,
6425
6425
  width: s = 20,
6426
6426
  onClick: n
@@ -6435,7 +6435,7 @@ const y2 = ({
6435
6435
  fill: "none",
6436
6436
  xmlns: "http://www.w3.org/2000/svg",
6437
6437
  children: [
6438
- /* @__PURE__ */ o("rect", { width: "20", height: "20", rx: "4", fill: y.GREY_LIGHT_2 }),
6438
+ /* @__PURE__ */ o("rect", { width: "20", height: "20", rx: "4", fill: b.GREY_LIGHT_2 }),
6439
6439
  /* @__PURE__ */ o(
6440
6440
  "path",
6441
6441
  {
@@ -6447,9 +6447,9 @@ const y2 = ({
6447
6447
  )
6448
6448
  ]
6449
6449
  }
6450
- ), Q5 = ({
6450
+ ), q5 = ({
6451
6451
  className: i,
6452
- color: e = y.GREY_DARK_5,
6452
+ color: e = b.GREY_DARK_5,
6453
6453
  height: t = 20,
6454
6454
  width: s = 20,
6455
6455
  onClick: n
@@ -6464,7 +6464,7 @@ const y2 = ({
6464
6464
  fill: "none",
6465
6465
  xmlns: "http://www.w3.org/2000/svg",
6466
6466
  children: [
6467
- /* @__PURE__ */ o("rect", { width: "20", height: "20", rx: "4", fill: y.GREY_LIGHT_2 }),
6467
+ /* @__PURE__ */ o("rect", { width: "20", height: "20", rx: "4", fill: b.GREY_LIGHT_2 }),
6468
6468
  /* @__PURE__ */ o(
6469
6469
  "path",
6470
6470
  {
@@ -6476,7 +6476,7 @@ const y2 = ({
6476
6476
  )
6477
6477
  ]
6478
6478
  }
6479
- ), q5 = ({
6479
+ ), Q5 = ({
6480
6480
  className: i,
6481
6481
  color: e = "#001E52",
6482
6482
  height: t = 24,
@@ -6633,7 +6633,7 @@ const y2 = ({
6633
6633
  disabled: a = !1,
6634
6634
  onClick: c
6635
6635
  }) => {
6636
- const [r, d] = j(n), { theme: g } = e1(te), l = a ? g && g === "dark" ? y.GREY_LIGHT_4 : y.GREY_DARK_1 : s, h = a ? void 0 : c;
6636
+ const [r, d] = Z(n), { theme: g } = e1(te), l = a ? g && g === "dark" ? b.GREY_LIGHT_4 : b.GREY_DARK_1 : s, h = a ? void 0 : c;
6637
6637
  return K(() => {
6638
6638
  if (n) {
6639
6639
  h && !a && d(`${n} clickable`);
@@ -6647,9 +6647,9 @@ const y2 = ({
6647
6647
  case "prevIcon":
6648
6648
  return k5({ width: e, height: t, color: l, className: r, onClick: h });
6649
6649
  case "arrowUp":
6650
- return y2({ width: e, height: t, color: l, className: r, onClick: h });
6651
- case "arrowDown":
6652
6650
  return b2({ width: e, height: t, color: l, className: r, onClick: h });
6651
+ case "arrowDown":
6652
+ return y2({ width: e, height: t, color: l, className: r, onClick: h });
6653
6653
  case "info":
6654
6654
  return E2({ width: e, height: t, color: l, className: r, onClick: h });
6655
6655
  case "arrowRight":
@@ -6669,9 +6669,9 @@ const y2 = ({
6669
6669
  case "filter":
6670
6670
  return B2({ width: e, height: t, color: l, className: r, onClick: h });
6671
6671
  case "attention":
6672
- return Z2({ width: e, height: t, color: l, className: r, onClick: h });
6673
- case "plus":
6674
6672
  return W2({ width: e, height: t, color: l, className: r, onClick: h });
6673
+ case "plus":
6674
+ return Z2({ width: e, height: t, color: l, className: r, onClick: h });
6675
6675
  case "time":
6676
6676
  return j2({ width: e, height: t, color: l, className: r, onClick: h });
6677
6677
  case "arrowDownLong":
@@ -6715,9 +6715,9 @@ const y2 = ({
6715
6715
  case "trash":
6716
6716
  return J2({ width: e, height: t, color: l, className: r, onClick: h });
6717
6717
  case "settings4":
6718
- return Q2({ width: e, height: t, color: l, className: r, onClick: h });
6719
- case "edit2":
6720
6718
  return q2({ width: e, height: t, color: l, className: r, onClick: h });
6719
+ case "edit2":
6720
+ return Q2({ width: e, height: t, color: l, className: r, onClick: h });
6721
6721
  case "notifications":
6722
6722
  return X2({
6723
6723
  width: e,
@@ -6819,13 +6819,13 @@ const y2 = ({
6819
6819
  case "telegram":
6820
6820
  return R5({ width: e, height: t, color: l, className: r, onClick: h });
6821
6821
  case "mail":
6822
- return y5({ width: e, height: t, color: l, className: r, onClick: h });
6822
+ return b5({ width: e, height: t, color: l, className: r, onClick: h });
6823
6823
  case "github":
6824
6824
  return x5({ width: e, height: t, color: l, className: r, onClick: h });
6825
6825
  case "linkedIn":
6826
6826
  return M5({ width: e, height: t, color: l, className: r, onClick: h });
6827
6827
  case "emptyStateIcon":
6828
- return b5({ width: e, height: t, color: l, className: r, onClick: h });
6828
+ return y5({ width: e, height: t, color: l, className: r, onClick: h });
6829
6829
  case "filtersIcon":
6830
6830
  return E5({ width: e, height: t, color: l, className: r, onClick: h });
6831
6831
  case "dotMenuIcon":
@@ -6845,9 +6845,9 @@ const y2 = ({
6845
6845
  case "manager":
6846
6846
  return B5({ width: e, height: t, color: l, className: r, onClick: h });
6847
6847
  case "resourceManager":
6848
- return Z5({ width: e, height: t, color: l, className: r, onClick: h });
6849
- case "settings2":
6850
6848
  return W5({ width: e, height: t, color: l, className: r, onClick: h });
6849
+ case "settings2":
6850
+ return Z5({ width: e, height: t, color: l, className: r, onClick: h });
6851
6851
  case "image":
6852
6852
  return j5({ width: e, height: t, color: l, className: r, onClick: h });
6853
6853
  case "upload":
@@ -6873,9 +6873,9 @@ const y2 = ({
6873
6873
  case "filledArrowLeft":
6874
6874
  return J5({ width: e, height: t, color: l, className: r, onClick: h });
6875
6875
  case "filledArrowRight":
6876
- return Q5({ width: e, height: t, color: l, className: r, onClick: h });
6877
- case "burgerMenu":
6878
6876
  return q5({ width: e, height: t, color: l, className: r, onClick: h });
6877
+ case "burgerMenu":
6878
+ return Q5({ width: e, height: t, color: l, className: r, onClick: h });
6879
6879
  case "signOut":
6880
6880
  return X5({ width: e, height: t, color: l, className: r, onClick: h });
6881
6881
  case "refresh":
@@ -6939,7 +6939,7 @@ const ie = ({
6939
6939
  placement: n = "topRight",
6940
6940
  noPadding: a = !1
6941
6941
  }) => {
6942
- const [c, r] = j(!1);
6942
+ const [c, r] = Z(!1);
6943
6943
  return /* @__PURE__ */ o(
6944
6944
  ve,
6945
6945
  {
@@ -6960,7 +6960,7 @@ var o3 = { exports: {} };
6960
6960
  (function(i, e) {
6961
6961
  (function(t, s) {
6962
6962
  i.exports = s();
6963
- })(ye, function() {
6963
+ })(be, function() {
6964
6964
  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) {
6965
6965
  var s = ["th", "st", "nd", "rd"], n = t % 100;
6966
6966
  return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
@@ -6976,14 +6976,14 @@ const r3 = ({
6976
6976
  options: a,
6977
6977
  extraOptions: c
6978
6978
  }) => {
6979
- const { locale: r } = e1(_1), { t: d } = Ke("common", { lng: r }), [g, l] = j(!1);
6979
+ const { locale: r } = e1(_1), { t: d } = Ke("common", { lng: r }), [g, l] = Z(!1);
6980
6980
  if (K(() => {
6981
6981
  i.length || l(!1);
6982
6982
  }, [i]), !i.length)
6983
6983
  return null;
6984
6984
  const h = (C) => {
6985
- var p, k;
6986
- return ((p = a == null ? void 0 : a.find((N) => N.value === C)) == null ? void 0 : p.label) || ((k = c == null ? void 0 : c.find((N) => N.value === C)) == null ? void 0 : k.label) || C;
6985
+ var p, m;
6986
+ return ((p = a == null ? void 0 : a.find((N) => N.value === C)) == null ? void 0 : p.label) || ((m = c == null ? void 0 : c.find((N) => N.value === C)) == null ? void 0 : m.label) || C;
6987
6987
  };
6988
6988
  return /* @__PURE__ */ u(
6989
6989
  n3,
@@ -7035,73 +7035,73 @@ const r3 = ({
7035
7035
  onSearchChange: h,
7036
7036
  onDropdownVisibleChange: C,
7037
7037
  onScrollToEnd: p,
7038
- onPopupScroll: k,
7038
+ onPopupScroll: m,
7039
7039
  id: N,
7040
- extraOptions: m,
7040
+ extraOptions: k,
7041
7041
  dropdownRender: E,
7042
- optionRender: x,
7042
+ optionRender: R,
7043
7043
  isLoading: _,
7044
7044
  readOnly: f
7045
- }, R) => {
7046
- const [b, w] = j(!1), [I, Z] = j(!1), [D, S] = j(!0), [H, P] = j(i), A = X(null);
7045
+ }, x) => {
7046
+ const [y, w] = Z(!1), [H, G] = Z(!1), [A, V] = Z(!0), [I, P] = Z(i), B = X(null);
7047
7047
  K(() => {
7048
7048
  P(i);
7049
7049
  }, [i]);
7050
- const V = (v) => {
7050
+ const $ = (v) => {
7051
7051
  w(v), C && C(v);
7052
- }, $ = (v, O) => {
7053
- var F;
7054
- return !!((F = O == null ? void 0 : O.label) != null && F.toString().toLowerCase().includes(v.toLowerCase()));
7052
+ }, S = (v, O) => {
7053
+ var Y;
7054
+ return !!((Y = O == null ? void 0 : O.label) != null && Y.toString().toLowerCase().includes(v.toLowerCase()));
7055
7055
  }, t1 = () => {
7056
- Z(!0);
7057
- }, W = () => {
7058
- Z(!1);
7059
- }, B = T(
7056
+ G(!0);
7057
+ }, j = () => {
7058
+ G(!1);
7059
+ }, W = D(
7060
7060
  (v) => {
7061
7061
  if (P(v), s) {
7062
- const F = v;
7063
- e == null || e(F);
7062
+ const Y = v;
7063
+ e == null || e(Y);
7064
7064
  return;
7065
7065
  }
7066
7066
  const O = v;
7067
7067
  e == null || e(O);
7068
7068
  },
7069
7069
  [s, e]
7070
- ), U = T(() => {
7070
+ ), F = D(() => {
7071
7071
  if (!f) {
7072
7072
  if (s) {
7073
- B([]);
7073
+ W([]);
7074
7074
  return;
7075
7075
  }
7076
- B("");
7076
+ W("");
7077
7077
  }
7078
- }, [B, s, f]), z = T(
7078
+ }, [W, s, f]), z = D(
7079
7079
  (v) => {
7080
- const O = H.filter((F) => F !== v);
7081
- B(O), P(O);
7080
+ const O = I.filter((Y) => Y !== v);
7081
+ W(O), P(O);
7082
7082
  },
7083
- [B, H]
7084
- ), H1 = T(
7085
- (v) => (H == null ? void 0 : H.indexOf(v)) === 0 ? (
7083
+ [W, I]
7084
+ ), H1 = D(
7085
+ (v) => (I == null ? void 0 : I.indexOf(v)) === 0 ? (
7086
7086
  // if the search input is empty
7087
7087
  // then display the placeholder, else do not display it
7088
- /* @__PURE__ */ o("span", { className: "custom-placeholder", children: D ? t : "" })
7088
+ /* @__PURE__ */ o("span", { className: "custom-placeholder", children: A ? t : "" })
7089
7089
  ) : /* @__PURE__ */ o(n1, {}),
7090
- [D, H, t]
7090
+ [A, I, t]
7091
7091
  ), le = (v) => {
7092
7092
  v.preventDefault(), v.stopPropagation();
7093
7093
  }, he = async (v) => {
7094
7094
  const { target: O } = v;
7095
- O.scrollTop + O.offsetHeight >= O.scrollHeight - l && (p == null || p(!0)), k && await k(v);
7096
- }, v1 = T(
7095
+ O.scrollTop + O.offsetHeight >= O.scrollHeight - l && (p == null || p(!0)), m && await m(v);
7096
+ }, v1 = D(
7097
7097
  (v) => {
7098
- var O, F;
7099
- return ((O = a.find((N1) => N1.value === v)) == null ? void 0 : O.label) || ((F = m == null ? void 0 : m.find(
7098
+ var O, Y;
7099
+ return ((O = a.find((N1) => N1.value === v)) == null ? void 0 : O.label) || ((Y = k == null ? void 0 : k.find(
7100
7100
  (N1) => N1.value === v
7101
- )) == null ? void 0 : F.label) || v;
7101
+ )) == null ? void 0 : Y.label) || v;
7102
7102
  },
7103
- [m, a]
7104
- ), ce = T(
7103
+ [k, a]
7104
+ ), ce = D(
7105
7105
  (v) => {
7106
7106
  var O;
7107
7107
  return /* @__PURE__ */ o(
@@ -7109,25 +7109,25 @@ const r3 = ({
7109
7109
  {
7110
7110
  values: v,
7111
7111
  onTagClose: z,
7112
- maxWidth: ((O = A.current) == null ? void 0 : O.clientWidth) || 0,
7112
+ maxWidth: ((O = B.current) == null ? void 0 : O.clientWidth) || 0,
7113
7113
  disabled: r,
7114
7114
  closable: !f,
7115
7115
  options: a,
7116
- extraOptions: m
7116
+ extraOptions: k
7117
7117
  }
7118
7118
  );
7119
7119
  },
7120
- [r, m, z, a, f]
7121
- ), de = T(
7122
- ({ label: v, value: O, mode: F }) => F === "filter" ? H1(O) : /* @__PURE__ */ o("div", { onMouseDown: le, className: "tag-wrapper", children: /* @__PURE__ */ o(ie, { onClose: () => z(O), disabled: r, children: typeof v == "object" ? v : v1(O) }) }),
7120
+ [r, k, z, a, f]
7121
+ ), de = D(
7122
+ ({ label: v, value: O, mode: Y }) => Y === "filter" ? H1(O) : /* @__PURE__ */ o("div", { onMouseDown: le, className: "tag-wrapper", children: /* @__PURE__ */ o(ie, { onClose: () => z(O), disabled: r, children: typeof v == "object" ? v : v1(O) }) }),
7123
7123
  [r, v1, z, H1]
7124
7124
  );
7125
7125
  return /* @__PURE__ */ u(
7126
7126
  "div",
7127
7127
  {
7128
- className: `snmt-select ${I ? "snmt-select-focused" : ""}
7128
+ className: `snmt-select ${H ? "snmt-select-focused" : ""}
7129
7129
  ${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
7130
- ref: A,
7130
+ ref: B,
7131
7131
  style: { width: c },
7132
7132
  children: [
7133
7133
  /* @__PURE__ */ o(
@@ -7136,30 +7136,30 @@ const r3 = ({
7136
7136
  className: "snmt-select-blank",
7137
7137
  popupClassName: f ? "dropdown-read-only" : "",
7138
7138
  id: N,
7139
- ref: R,
7139
+ ref: x,
7140
7140
  showSearch: !!n,
7141
- filterOption: n && $,
7142
- onDropdownVisibleChange: V,
7141
+ filterOption: n && S,
7142
+ onDropdownVisibleChange: $,
7143
7143
  placeholder: t ? d ? `${t}*` : t : void 0,
7144
7144
  disabled: r,
7145
- value: H || void 0,
7145
+ value: I || void 0,
7146
7146
  labelRender: (v) => v1(v.value),
7147
7147
  mode: s === "filter" ? "multiple" : s,
7148
- onChange: B,
7148
+ onChange: W,
7149
7149
  onFocus: t1,
7150
- onBlur: W,
7150
+ onBlur: j,
7151
7151
  onSearch: (v) => {
7152
- S(!v), h && h(v);
7152
+ V(!v), h && h(v);
7153
7153
  },
7154
- onSelect: () => S(!0),
7155
- onDeselect: () => S(!0),
7154
+ onSelect: () => V(!0),
7155
+ onDeselect: () => V(!0),
7156
7156
  tagRender: (v) => de({ ...v, mode: s }),
7157
7157
  maxTagCount: "responsive",
7158
7158
  maxTagPlaceholder: ce,
7159
7159
  onPopupScroll: he,
7160
7160
  prefix: _ && /* @__PURE__ */ o(A1, { size: 15 }),
7161
7161
  suffixIcon: /* @__PURE__ */ o("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(n1, { children: [
7162
- H && !!H.length && (s || g) && /* @__PURE__ */ o("div", { onClick: U, children: /* @__PURE__ */ o(
7162
+ I && !!I.length && (s || g) && /* @__PURE__ */ o("div", { onClick: F, children: /* @__PURE__ */ o(
7163
7163
  d1,
7164
7164
  {
7165
7165
  name: "cancel",
@@ -7171,19 +7171,19 @@ const r3 = ({
7171
7171
  {
7172
7172
  name: "selectArrowIcon",
7173
7173
  color: r ? J.GREY_DARK_1 : J.GREY_DARK_5,
7174
- className: b ? "select-arrow-rotated" : "select-arrow",
7175
- onClick: () => w(!b)
7174
+ className: y ? "select-arrow-rotated" : "select-arrow",
7175
+ onClick: () => w(!y)
7176
7176
  }
7177
7177
  )
7178
7178
  ] }) }),
7179
7179
  removeIcon: /* @__PURE__ */ o(d1, { name: "errorSmall", color: J.GREY_DARK_2 }),
7180
7180
  options: a,
7181
- optionRender: (v) => x ? x(v.data) : /* @__PURE__ */ u(u1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
7181
+ optionRender: (v) => R ? R(v.data) : /* @__PURE__ */ u(u1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
7182
7182
  /* @__PURE__ */ u(u1, { alignItems: "center", gap: 12, children: [
7183
7183
  s && /* @__PURE__ */ o(
7184
7184
  $e,
7185
7185
  {
7186
- checked: !!(H != null && H.includes(v.value))
7186
+ checked: !!(I != null && I.includes(v.value))
7187
7187
  }
7188
7188
  ),
7189
7189
  /* @__PURE__ */ u(u1, { alignItems: "center", gap: 8, children: [
@@ -7191,7 +7191,7 @@ const r3 = ({
7191
7191
  /* @__PURE__ */ o("span", { children: v.label })
7192
7192
  ] })
7193
7193
  ] }),
7194
- !s && H === v.value && /* @__PURE__ */ o(
7194
+ !s && I === v.value && /* @__PURE__ */ o(
7195
7195
  d1,
7196
7196
  {
7197
7197
  name: "ok",
@@ -7217,7 +7217,7 @@ const r3 = ({
7217
7217
  /* @__PURE__ */ o(
7218
7218
  "fieldset",
7219
7219
  {
7220
- className: `${I ? "fieldset-focused" : ""}
7220
+ className: `${H ? "fieldset-focused" : ""}
7221
7221
  ${r ? "fieldset-disabled" : ""}
7222
7222
  ${typeof i == "string" && i ? "fieldset-filled" : ""}
7223
7223
  ${typeof i == "object" && i != null && i.length ? "fieldset-filled" : ""}`,
@@ -7243,7 +7243,7 @@ function a3(i, e = 500) {
7243
7243
  const r1 = {
7244
7244
  limit: 100,
7245
7245
  offset: 0
7246
- }, Z1 = k1(
7246
+ }, W1 = k1(
7247
7247
  ({
7248
7248
  loadOptions: i,
7249
7249
  width: e,
@@ -7259,71 +7259,73 @@ const r1 = {
7259
7259
  onDropdownVisibleChange: h,
7260
7260
  optionRender: C,
7261
7261
  dropdownRender: p,
7262
- readOnly: k,
7263
- clearable: N
7264
- }, m) => {
7265
- const [E, x] = j([]), [_, f] = j(r1), [R, b] = j(!1), [w, I] = j(null), Z = T(
7266
- async (V = !1, $) => {
7267
- if (!R) {
7268
- b(!0);
7262
+ readOnly: m,
7263
+ clearable: N,
7264
+ required: k = !1
7265
+ }, E) => {
7266
+ const [R, _] = Z([]), [f, x] = Z(r1), [y, w] = Z(!1), [H, G] = Z(null), A = D(
7267
+ async (S = !1, t1) => {
7268
+ if (!y) {
7269
+ w(!0);
7269
7270
  try {
7270
- const t1 = V ? { ...r1, search: $ } : _, W = await i(t1);
7271
- x(
7272
- (B) => V ? W.options : [...B, ...W.options]
7273
- ), I(W.count), f((B) => ({
7274
- ...B,
7275
- offset: B.offset + B.limit
7271
+ const j = S ? { ...r1, search: t1 } : f, W = await i(j);
7272
+ _(
7273
+ (F) => S ? W.options : [...F, ...W.options]
7274
+ ), G(W.count), x((F) => ({
7275
+ ...F,
7276
+ offset: F.offset + F.limit
7276
7277
  }));
7277
7278
  } finally {
7278
- b(!1);
7279
+ w(!1);
7279
7280
  }
7280
7281
  }
7281
7282
  },
7282
- [_, i, R]
7283
- ), D = a3(Z), S = T(
7284
- (V) => {
7285
- V === "" || V === void 0 || V === null ? (f(r1), D(!0)) : D(!0, V);
7283
+ [f, i, y]
7284
+ ), V = a3(A), I = D(
7285
+ (S) => {
7286
+ S === "" || S === void 0 || S === null ? (x(r1), V(!0)) : V(!0, S);
7286
7287
  },
7287
- [D]
7288
- ), H = async (V) => {
7289
- V && w !== null && w > E.length && await Z(!1);
7290
- }, P = T(
7291
- (V) => {
7292
- V && !g && (x([]), f(r1), Z(!0)), h == null || h(V);
7288
+ [V]
7289
+ ), P = async (S) => {
7290
+ S && H !== null && H > R.length && await A(!1);
7291
+ }, B = D(
7292
+ (S) => {
7293
+ S && !g && (_([]), x(r1), A(!0)), h == null || h(S);
7293
7294
  },
7294
7295
  // eslint-disable-next-line
7295
7296
  [g]
7296
7297
  );
7297
7298
  K(() => {
7298
- g && Z(!1);
7299
+ g && A(!1);
7299
7300
  }, []);
7300
- const A = {
7301
+ const $ = {
7301
7302
  id: n,
7302
7303
  width: e,
7303
- options: E,
7304
+ options: R,
7304
7305
  onChange: t,
7305
- ref: m,
7306
+ ref: E,
7306
7307
  placeholder: r,
7307
7308
  search: !0,
7308
7309
  value: s,
7309
- onSearchChange: S,
7310
- onDropdownVisibleChange: P,
7310
+ onSearchChange: I,
7311
+ onDropdownVisibleChange: B,
7311
7312
  scrollThresholdValue: c,
7312
- onScrollToEnd: H,
7313
+ onScrollToEnd: P,
7313
7314
  loadOnClosedState: g,
7314
7315
  disabled: a,
7315
7316
  extraOptions: l,
7316
- isLoading: R,
7317
+ isLoading: y,
7317
7318
  optionRender: C,
7318
7319
  dropdownRender: p,
7319
- readOnly: k,
7320
- clearable: N
7320
+ readOnly: m,
7321
+ clearable: N,
7322
+ required: k
7321
7323
  };
7322
- return Ce(m, () => ({
7324
+ return Ce(E, () => ({
7323
7325
  refetchOptions: async () => {
7324
- f(r1), await Z(!0);
7326
+ x(r1), await A(!0);
7325
7327
  }
7326
- })), d ? /* @__PURE__ */ o(B1, { ...A, onChange: t, value: s, mode: d }) : /* @__PURE__ */ o("div", { className: "snmt-async-select", children: /* @__PURE__ */ o(B1, { ...A, onChange: t, value: s }) });
7328
+ })), d ? /* @__PURE__ */ o(B1, { ...$, onChange: t, value: s, mode: d }) : /* @__PURE__ */ o("div", { className: "snmt-async-select", children: /* @__PURE__ */ o(B1, { ...$, onChange: t, value: s }) });
7327
7329
  }
7328
7330
  );
7329
7331
  var C1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(C1 || {});
@@ -7340,14 +7342,14 @@ function h3() {
7340
7342
  if (console && console.warn) {
7341
7343
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
7342
7344
  e[t] = arguments[t];
7343
- q(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
7345
+ Q(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
7344
7346
  }
7345
7347
  }
7346
- const W1 = {};
7347
- function y1() {
7348
+ const Z1 = {};
7349
+ function b1() {
7348
7350
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
7349
7351
  e[t] = arguments[t];
7350
- q(e[0]) && W1[e[0]] || (q(e[0]) && (W1[e[0]] = /* @__PURE__ */ new Date()), h3(...e));
7352
+ Q(e[0]) && Z1[e[0]] || (Q(e[0]) && (Z1[e[0]] = /* @__PURE__ */ new Date()), h3(...e));
7351
7353
  }
7352
7354
  const se = (i, e) => () => {
7353
7355
  if (i.isInitialized)
@@ -7363,7 +7365,7 @@ const se = (i, e) => () => {
7363
7365
  }, j1 = (i, e, t) => {
7364
7366
  i.loadNamespaces(e, se(i, t));
7365
7367
  }, D1 = (i, e, t, s) => {
7366
- q(t) && (t = [t]), t.forEach((n) => {
7368
+ Q(t) && (t = [t]), t.forEach((n) => {
7367
7369
  i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
7368
7370
  }), i.loadLanguages(e, se(i, s));
7369
7371
  }, c3 = function(i, e) {
@@ -7377,13 +7379,13 @@ const se = (i, e) => () => {
7377
7379
  return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(a, i)));
7378
7380
  }, d3 = function(i, e) {
7379
7381
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
7380
- return !e.languages || !e.languages.length ? (y1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
7382
+ return !e.languages || !e.languages.length ? (b1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
7381
7383
  lng: t.lng,
7382
7384
  precheck: (n, a) => {
7383
7385
  if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !a(n.isLanguageChangingTo, i)) return !1;
7384
7386
  }
7385
7387
  }) : c3(i, e, t);
7386
- }, q = (i) => typeof i == "string", g3 = (i) => typeof i == "object" && i !== null, u3 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, C3 = {
7388
+ }, Q = (i) => typeof i == "string", g3 = (i) => typeof i == "object" && i !== null, u3 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, C3 = {
7387
7389
  "&amp;": "&",
7388
7390
  "&#38;": "&",
7389
7391
  "&lt;": "<",
@@ -7405,7 +7407,7 @@ const se = (i, e) => () => {
7405
7407
  "&#x2F;": "/",
7406
7408
  "&#47;": "/"
7407
7409
  }, p3 = (i) => C3[i], f3 = (i) => i.replace(u3, p3);
7408
- let b1 = {
7410
+ let y1 = {
7409
7411
  bindI18n: "languageChanged",
7410
7412
  bindI18nStore: "",
7411
7413
  transEmptyNodeValue: "",
@@ -7417,11 +7419,11 @@ let b1 = {
7417
7419
  };
7418
7420
  const w3 = function() {
7419
7421
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7420
- b1 = {
7421
- ...b1,
7422
+ y1 = {
7423
+ ...y1,
7422
7424
  ...i
7423
7425
  };
7424
- }, m3 = () => b1;
7426
+ }, m3 = () => y1;
7425
7427
  let ne;
7426
7428
  const k3 = (i) => {
7427
7429
  ne = i;
@@ -7447,7 +7449,7 @@ const R3 = (i, e) => {
7447
7449
  return K(() => {
7448
7450
  t.current = i;
7449
7451
  }, [i, e]), t.current;
7450
- }, oe = (i, e, t, s) => i.getFixedT(e, t, s), M3 = (i, e, t, s) => T(oe(i, e, t, s), [i, e, t, s]), y3 = function(i) {
7452
+ }, oe = (i, e, t, s) => i.getFixedT(e, t, s), M3 = (i, e, t, s) => D(oe(i, e, t, s), [i, e, t, s]), b3 = function(i) {
7451
7453
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7452
7454
  const {
7453
7455
  i18n: t
@@ -7456,11 +7458,11 @@ const R3 = (i, e) => {
7456
7458
  defaultNS: n
7457
7459
  } = e1(N3) || {}, a = t || s || L3();
7458
7460
  if (a && !a.reportNamespaces && (a.reportNamespaces = new x3()), !a) {
7459
- y1("You will need to pass in an i18next instance by using initReactI18next");
7460
- const f = (b, w) => q(w) ? w : g3(w) && q(w.defaultValue) ? w.defaultValue : Array.isArray(b) ? b[b.length - 1] : b, R = [f, {}, !1];
7461
- return R.t = f, R.i18n = {}, R.ready = !1, R;
7461
+ b1("You will need to pass in an i18next instance by using initReactI18next");
7462
+ const f = (y, w) => Q(w) ? w : g3(w) && Q(w.defaultValue) ? w.defaultValue : Array.isArray(y) ? y[y.length - 1] : y, x = [f, {}, !1];
7463
+ return x.t = f, x.i18n = {}, x.ready = !1, x;
7462
7464
  }
7463
- a.options.react && a.options.react.wait !== void 0 && y1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
7465
+ a.options.react && a.options.react.wait !== void 0 && b1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
7464
7466
  const c = {
7465
7467
  ...m3(),
7466
7468
  ...a.options.react,
@@ -7470,32 +7472,32 @@ const R3 = (i, e) => {
7470
7472
  keyPrefix: d
7471
7473
  } = c;
7472
7474
  let g = i;
7473
- g = q(g) ? [g] : g || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(g);
7474
- const l = (a.isInitialized || a.initializedStoreOnce) && g.every((f) => d3(f, a, c)), h = M3(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => oe(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [k, N] = j(C);
7475
- let m = g.join();
7476
- e.lng && (m = `${e.lng}${m}`);
7477
- const E = R3(m), x = X(!0);
7475
+ g = Q(g) ? [g] : g || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(g);
7476
+ const l = (a.isInitialized || a.initializedStoreOnce) && g.every((f) => d3(f, a, c)), h = M3(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => oe(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [m, N] = Z(C);
7477
+ let k = g.join();
7478
+ e.lng && (k = `${e.lng}${k}`);
7479
+ const E = R3(k), R = X(!0);
7478
7480
  K(() => {
7479
7481
  const {
7480
7482
  bindI18n: f,
7481
- bindI18nStore: R
7483
+ bindI18nStore: x
7482
7484
  } = c;
7483
- x.current = !0, !l && !r && (e.lng ? D1(a, e.lng, g, () => {
7484
- x.current && N(p);
7485
+ R.current = !0, !l && !r && (e.lng ? D1(a, e.lng, g, () => {
7486
+ R.current && N(p);
7485
7487
  }) : j1(a, g, () => {
7486
- x.current && N(p);
7487
- })), l && E && E !== m && x.current && N(p);
7488
- const b = () => {
7489
- x.current && N(p);
7488
+ R.current && N(p);
7489
+ })), l && E && E !== k && R.current && N(p);
7490
+ const y = () => {
7491
+ R.current && N(p);
7490
7492
  };
7491
- return f && a && a.on(f, b), R && a && a.store.on(R, b), () => {
7492
- x.current = !1, f && a && f.split(" ").forEach((w) => a.off(w, b)), R && a && R.split(" ").forEach((w) => a.store.off(w, b));
7493
+ return f && a && a.on(f, y), x && a && a.store.on(x, y), () => {
7494
+ R.current = !1, f && a && f.split(" ").forEach((w) => a.off(w, y)), x && a && x.split(" ").forEach((w) => a.store.off(w, y));
7493
7495
  };
7494
- }, [a, m]), K(() => {
7495
- x.current && l && N(C);
7496
+ }, [a, k]), K(() => {
7497
+ R.current && l && N(C);
7496
7498
  }, [a, d, l]);
7497
- const _ = [k, a, l];
7498
- if (_.t = k, _.i18n = a, _.ready = l, l || !l && !r) return _;
7499
+ const _ = [m, a, l];
7500
+ if (_.t = m, _.i18n = a, _.ready = l, l || !l && !r) return _;
7499
7501
  throw new Promise((f) => {
7500
7502
  e.lng ? D1(a, e.lng, g, () => f()) : j1(a, g, () => f());
7501
7503
  });
@@ -7505,7 +7507,7 @@ const R3 = (i, e) => {
7505
7507
  i = s, e = n;
7506
7508
  });
7507
7509
  return t.resolve = i, t.reject = e, t;
7508
- }, T1 = (i) => i == null ? "" : "" + i, b3 = (i, e, t) => {
7510
+ }, T1 = (i) => i == null ? "" : "" + i, y3 = (i, e, t) => {
7509
7511
  i.forEach((s) => {
7510
7512
  e[s] && (t[s] = e[s]);
7511
7513
  });
@@ -7607,7 +7609,7 @@ const O3 = [" ", ",", "?", "!", ";"], A3 = new S3(20), B3 = (i, e, t) => {
7607
7609
  n = c;
7608
7610
  }
7609
7611
  return n;
7610
- }, f1 = (i) => i && i.replace("_", "-"), Z3 = {
7612
+ }, f1 = (i) => i && i.replace("_", "-"), W3 = {
7611
7613
  type: "logger",
7612
7614
  log(i) {
7613
7615
  this.output("log", i);
@@ -7629,7 +7631,7 @@ class w1 {
7629
7631
  }
7630
7632
  init(e) {
7631
7633
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7632
- this.prefix = t.prefix || "i18next:", this.logger = e || Z3, this.options = t, this.debug = t.debug;
7634
+ this.prefix = t.prefix || "i18next:", this.logger = e || W3, this.options = t, this.debug = t.debug;
7633
7635
  }
7634
7636
  log() {
7635
7637
  for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
@@ -7664,7 +7666,7 @@ class w1 {
7664
7666
  return e = e || this.options, e.prefix = e.prefix || this.prefix, new w1(this.logger, e);
7665
7667
  }
7666
7668
  }
7667
- var Y = new w1();
7669
+ var U = new w1();
7668
7670
  class L1 {
7669
7671
  constructor() {
7670
7672
  this.observers = {};
@@ -7789,7 +7791,7 @@ const F1 = {};
7789
7791
  class m1 extends L1 {
7790
7792
  constructor(e) {
7791
7793
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7792
- super(), b3(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Y.create("translator");
7794
+ super(), y3(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = U.create("translator");
7793
7795
  }
7794
7796
  changeLanguage(e) {
7795
7797
  e && (this.language = e);
@@ -7856,8 +7858,8 @@ class m1 extends L1 {
7856
7858
  }
7857
7859
  const h = this.resolve(e, t);
7858
7860
  let C = h && h.res;
7859
- const p = h && h.usedKey || c, k = h && h.exactUsedKey || c, N = Object.prototype.toString.apply(C), m = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, x = !this.i18nFormat || this.i18nFormat.handleAsObject, _ = !L(C) && typeof C != "boolean" && typeof C != "number";
7860
- if (x && C && _ && m.indexOf(N) < 0 && !(L(E) && Array.isArray(C))) {
7861
+ const p = h && h.usedKey || c, m = h && h.exactUsedKey || c, N = Object.prototype.toString.apply(C), k = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, R = !this.i18nFormat || this.i18nFormat.handleAsObject, _ = !L(C) && typeof C != "boolean" && typeof C != "number";
7862
+ if (R && C && _ && k.indexOf(N) < 0 && !(L(E) && Array.isArray(C))) {
7861
7863
  if (!t.returnObjects && !this.options.returnObjects) {
7862
7864
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
7863
7865
  const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, C, {
@@ -7867,53 +7869,53 @@ class m1 extends L1 {
7867
7869
  return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
7868
7870
  }
7869
7871
  if (a) {
7870
- const f = Array.isArray(C), R = f ? [] : {}, b = f ? k : p;
7872
+ const f = Array.isArray(C), x = f ? [] : {}, y = f ? m : p;
7871
7873
  for (const w in C)
7872
7874
  if (Object.prototype.hasOwnProperty.call(C, w)) {
7873
- const I = `${b}${a}${w}`;
7874
- R[w] = this.translate(I, {
7875
+ const H = `${y}${a}${w}`;
7876
+ x[w] = this.translate(H, {
7875
7877
  ...t,
7876
7878
  joinArrays: !1,
7877
7879
  ns: r
7878
- }), R[w] === I && (R[w] = C[w]);
7880
+ }), x[w] === H && (x[w] = C[w]);
7879
7881
  }
7880
- C = R;
7882
+ C = x;
7881
7883
  }
7882
- } else if (x && L(E) && Array.isArray(C))
7884
+ } else if (R && L(E) && Array.isArray(C))
7883
7885
  C = C.join(E), C && (C = this.extendTranslation(C, e, t, s));
7884
7886
  else {
7885
- let f = !1, R = !1;
7886
- const b = t.count !== void 0 && !L(t.count), w = m1.hasDefaultValue(t), I = b ? this.pluralResolver.getSuffix(g, t.count, t) : "", Z = t.ordinal && b ? this.pluralResolver.getSuffix(g, t.count, {
7887
+ let f = !1, x = !1;
7888
+ const y = t.count !== void 0 && !L(t.count), w = m1.hasDefaultValue(t), H = y ? this.pluralResolver.getSuffix(g, t.count, t) : "", G = t.ordinal && y ? this.pluralResolver.getSuffix(g, t.count, {
7887
7889
  ordinal: !1
7888
- }) : "", D = b && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), S = D && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${I}`] || t[`defaultValue${Z}`] || t.defaultValue;
7889
- !this.isValidLookup(C) && w && (f = !0, C = S), this.isValidLookup(C) || (R = !0, C = c);
7890
- const P = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && R ? void 0 : C, A = w && S !== C && this.options.updateMissing;
7891
- if (R || f || A) {
7892
- if (this.logger.log(A ? "updateKey" : "missingKey", g, d, c, A ? S : C), a) {
7893
- const W = this.resolve(c, {
7890
+ }) : "", A = y && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), V = A && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${H}`] || t[`defaultValue${G}`] || t.defaultValue;
7891
+ !this.isValidLookup(C) && w && (f = !0, C = V), this.isValidLookup(C) || (x = !0, C = c);
7892
+ const P = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && x ? void 0 : C, B = w && V !== C && this.options.updateMissing;
7893
+ if (x || f || B) {
7894
+ if (this.logger.log(B ? "updateKey" : "missingKey", g, d, c, B ? V : C), a) {
7895
+ const j = this.resolve(c, {
7894
7896
  ...t,
7895
7897
  keySeparator: !1
7896
7898
  });
7897
- W && W.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.");
7898
- }
7899
- let V = [];
7900
- const $ = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
7901
- if (this.options.saveMissingTo === "fallback" && $ && $[0])
7902
- for (let W = 0; W < $.length; W++)
7903
- V.push($[W]);
7904
- else this.options.saveMissingTo === "all" ? V = this.languageUtils.toResolveHierarchy(t.lng || this.language) : V.push(t.lng || this.language);
7905
- const t1 = (W, B, U) => {
7906
- const z = w && U !== C ? U : P;
7907
- this.options.missingKeyHandler ? this.options.missingKeyHandler(W, d, B, z, A, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(W, d, B, z, A, t), this.emit("missingKey", W, d, B, C);
7899
+ j && j.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
7900
+ }
7901
+ let $ = [];
7902
+ const S = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
7903
+ if (this.options.saveMissingTo === "fallback" && S && S[0])
7904
+ for (let j = 0; j < S.length; j++)
7905
+ $.push(S[j]);
7906
+ else this.options.saveMissingTo === "all" ? $ = this.languageUtils.toResolveHierarchy(t.lng || this.language) : $.push(t.lng || this.language);
7907
+ const t1 = (j, W, F) => {
7908
+ const z = w && F !== C ? F : P;
7909
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(j, d, W, z, B, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(j, d, W, z, B, t), this.emit("missingKey", j, d, W, C);
7908
7910
  };
7909
- this.options.saveMissing && (this.options.saveMissingPlurals && b ? V.forEach((W) => {
7910
- const B = this.pluralResolver.getSuffixes(W, t);
7911
- D && t[`defaultValue${this.options.pluralSeparator}zero`] && B.indexOf(`${this.options.pluralSeparator}zero`) < 0 && B.push(`${this.options.pluralSeparator}zero`), B.forEach((U) => {
7912
- t1([W], c + U, t[`defaultValue${U}`] || S);
7911
+ this.options.saveMissing && (this.options.saveMissingPlurals && y ? $.forEach((j) => {
7912
+ const W = this.pluralResolver.getSuffixes(j, t);
7913
+ A && t[`defaultValue${this.options.pluralSeparator}zero`] && W.indexOf(`${this.options.pluralSeparator}zero`) < 0 && W.push(`${this.options.pluralSeparator}zero`), W.forEach((F) => {
7914
+ t1([j], c + F, t[`defaultValue${F}`] || V);
7913
7915
  });
7914
- }) : t1(V, c, S));
7916
+ }) : t1($, c, V));
7915
7917
  }
7916
- C = this.extendTranslation(C, e, t, h, s), R && C === c && this.options.appendNamespaceToMissingKey && (C = `${d}:${c}`), (R || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? C = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, f ? C : void 0) : C = this.options.parseMissingKeyHandler(C));
7918
+ C = this.extendTranslation(C, e, t, h, s), x && C === c && this.options.appendNamespaceToMissingKey && (C = `${d}:${c}`), (x || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? C = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, f ? C : void 0) : C = this.options.parseMissingKeyHandler(C));
7917
7919
  }
7918
7920
  return n ? (h.res = C, h.usedParams = this.getUsedParamsDetails(t), h) : C;
7919
7921
  }
@@ -7949,8 +7951,8 @@ class m1 extends L1 {
7949
7951
  l < p && (s.nest = !1);
7950
7952
  }
7951
7953
  !s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
7952
- for (var C = arguments.length, p = new Array(C), k = 0; k < C; k++)
7953
- p[k] = arguments[k];
7954
+ for (var C = arguments.length, p = new Array(C), m = 0; m < C; m++)
7955
+ p[m] = arguments[m];
7954
7956
  return a && a[0] === p[0] && !s.context ? (c.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : c.translate(...p, t);
7955
7957
  }, s)), s.interpolation && this.interpolator.reset();
7956
7958
  }
@@ -7971,26 +7973,26 @@ class m1 extends L1 {
7971
7973
  n = l;
7972
7974
  let h = g.namespaces;
7973
7975
  this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
7974
- const C = t.count !== void 0 && !L(t.count), p = C && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), k = t.context !== void 0 && (L(t.context) || typeof t.context == "number") && t.context !== "", N = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
7975
- h.forEach((m) => {
7976
- this.isValidLookup(s) || (r = m, !F1[`${N[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(r) && (F1[`${N[0]}-${m}`] = !0, this.logger.warn(`key "${n}" for languages "${N.join(", ")}" won't get resolved as namespace "${r}" 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!!!")), N.forEach((E) => {
7976
+ const C = t.count !== void 0 && !L(t.count), p = C && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), m = t.context !== void 0 && (L(t.context) || typeof t.context == "number") && t.context !== "", N = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
7977
+ h.forEach((k) => {
7978
+ this.isValidLookup(s) || (r = k, !F1[`${N[0]}-${k}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(r) && (F1[`${N[0]}-${k}`] = !0, this.logger.warn(`key "${n}" for languages "${N.join(", ")}" won't get resolved as namespace "${r}" 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!!!")), N.forEach((E) => {
7977
7979
  if (this.isValidLookup(s)) return;
7978
7980
  c = E;
7979
- const x = [l];
7981
+ const R = [l];
7980
7982
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
7981
- this.i18nFormat.addLookupKeys(x, l, E, m, t);
7983
+ this.i18nFormat.addLookupKeys(R, l, E, k, t);
7982
7984
  else {
7983
7985
  let f;
7984
7986
  C && (f = this.pluralResolver.getSuffix(E, t.count, t));
7985
- const R = `${this.options.pluralSeparator}zero`, b = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
7986
- if (C && (x.push(l + f), t.ordinal && f.indexOf(b) === 0 && x.push(l + f.replace(b, this.options.pluralSeparator)), p && x.push(l + R)), k) {
7987
+ const x = `${this.options.pluralSeparator}zero`, y = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
7988
+ if (C && (R.push(l + f), t.ordinal && f.indexOf(y) === 0 && R.push(l + f.replace(y, this.options.pluralSeparator)), p && R.push(l + x)), m) {
7987
7989
  const w = `${l}${this.options.contextSeparator}${t.context}`;
7988
- x.push(w), C && (x.push(w + f), t.ordinal && f.indexOf(b) === 0 && x.push(w + f.replace(b, this.options.pluralSeparator)), p && x.push(w + R));
7990
+ R.push(w), C && (R.push(w + f), t.ordinal && f.indexOf(y) === 0 && R.push(w + f.replace(y, this.options.pluralSeparator)), p && R.push(w + x));
7989
7991
  }
7990
7992
  }
7991
7993
  let _;
7992
- for (; _ = x.pop(); )
7993
- this.isValidLookup(s) || (a = _, s = this.getResource(E, m, _, t));
7994
+ for (; _ = R.pop(); )
7995
+ this.isValidLookup(s) || (a = _, s = this.getResource(E, k, _, t));
7994
7996
  }));
7995
7997
  });
7996
7998
  }), {
@@ -8035,7 +8037,7 @@ class m1 extends L1 {
8035
8037
  const x1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
8036
8038
  class Y1 {
8037
8039
  constructor(e) {
8038
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Y.create("languageUtils");
8040
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = U.create("languageUtils");
8039
8041
  }
8040
8042
  getScriptPartFromCode(e) {
8041
8043
  if (e = f1(e), !e || e.indexOf("-") < 0) return null;
@@ -8098,7 +8100,7 @@ class Y1 {
8098
8100
  }), n;
8099
8101
  }
8100
8102
  }
8101
- let W3 = [{
8103
+ let Z3 = [{
8102
8104
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
8103
8105
  nr: [1, 2],
8104
8106
  fc: 1
@@ -8223,7 +8225,7 @@ const D3 = ["v1", "v2", "v3"], T3 = ["v4"], U1 = {
8223
8225
  other: 5
8224
8226
  }, G3 = () => {
8225
8227
  const i = {};
8226
- return W3.forEach((e) => {
8228
+ return Z3.forEach((e) => {
8227
8229
  e.lngs.forEach((t) => {
8228
8230
  i[t] = {
8229
8231
  numbers: e.nr,
@@ -8235,7 +8237,7 @@ const D3 = ["v1", "v2", "v3"], T3 = ["v4"], U1 = {
8235
8237
  class K3 {
8236
8238
  constructor(e) {
8237
8239
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
8238
- this.languageUtils = e, this.options = t, this.logger = Y.create("pluralResolver"), (!this.options.compatibilityJSON || T3.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = G3(), this.pluralRulesCache = {};
8240
+ this.languageUtils = e, this.options = t, this.logger = U.create("pluralResolver"), (!this.options.compatibilityJSON || T3.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = G3(), this.pluralRulesCache = {};
8239
8241
  }
8240
8242
  addRule(e, t) {
8241
8243
  this.rules[e] = t;
@@ -8303,7 +8305,7 @@ const z1 = function(i, e, t) {
8303
8305
  class P3 {
8304
8306
  constructor() {
8305
8307
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8306
- this.logger = Y.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
8308
+ this.logger = U.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
8307
8309
  }
8308
8310
  init() {
8309
8311
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -8323,13 +8325,13 @@ class P3 {
8323
8325
  unescapePrefix: h,
8324
8326
  nestingPrefix: C,
8325
8327
  nestingPrefixEscaped: p,
8326
- nestingSuffix: k,
8328
+ nestingSuffix: m,
8327
8329
  nestingSuffixEscaped: N,
8328
- nestingOptionsSeparator: m,
8330
+ nestingOptionsSeparator: k,
8329
8331
  maxReplaces: E,
8330
- alwaysFormat: x
8332
+ alwaysFormat: R
8331
8333
  } = e.interpolation;
8332
- this.escape = t !== void 0 ? t : I3, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = a ? i1(a) : c || "{{", this.suffix = r ? i1(r) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = C ? i1(C) : p || i1("$t("), this.nestingSuffix = k ? i1(k) : N || i1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = x !== void 0 ? x : !1, this.resetRegExp();
8334
+ this.escape = t !== void 0 ? t : I3, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = a ? i1(a) : c || "{{", this.suffix = r ? i1(r) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = C ? i1(C) : p || i1("$t("), this.nestingSuffix = m ? i1(m) : N || i1(")"), this.nestingOptionsSeparator = k || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = R !== void 0 ? R : !1, this.resetRegExp();
8333
8335
  }
8334
8336
  reset() {
8335
8337
  this.options && this.init(this.options);
@@ -8349,8 +8351,8 @@ class P3 {
8349
8351
  interpolationkey: p
8350
8352
  }) : E;
8351
8353
  }
8352
- const k = p.split(this.formatSeparator), N = k.shift().trim(), m = k.join(this.formatSeparator).trim();
8353
- return this.format(z1(t, d, N, this.options.keySeparator, this.options.ignoreJSONStructure), m, s, {
8354
+ const m = p.split(this.formatSeparator), N = m.shift().trim(), k = m.join(this.formatSeparator).trim();
8355
+ return this.format(z1(t, d, N, this.options.keySeparator, this.options.ignoreJSONStructure), k, s, {
8354
8356
  ...n,
8355
8357
  ...t,
8356
8358
  interpolationkey: N
@@ -8366,18 +8368,18 @@ class P3 {
8366
8368
  safeValue: (p) => this.escapeValue ? R1(this.escape(p)) : R1(p)
8367
8369
  }].forEach((p) => {
8368
8370
  for (r = 0; a = p.regex.exec(e); ) {
8369
- const k = a[1].trim();
8370
- if (c = g(k), c === void 0)
8371
+ const m = a[1].trim();
8372
+ if (c = g(m), c === void 0)
8371
8373
  if (typeof l == "function") {
8372
- const m = l(e, a, n);
8373
- c = L(m) ? m : "";
8374
- } else if (n && Object.prototype.hasOwnProperty.call(n, k))
8374
+ const k = l(e, a, n);
8375
+ c = L(k) ? k : "";
8376
+ } else if (n && Object.prototype.hasOwnProperty.call(n, m))
8375
8377
  c = "";
8376
8378
  else if (h) {
8377
8379
  c = a[0];
8378
8380
  continue;
8379
8381
  } else
8380
- this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), c = "";
8382
+ this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`), c = "";
8381
8383
  else !L(c) && !this.useRawValueToEscape && (c = T1(c));
8382
8384
  const N = p.safeValue(c);
8383
8385
  if (e = e.replace(a[0], N), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, r++, r >= this.maxReplaces)
@@ -8393,8 +8395,8 @@ class P3 {
8393
8395
  const h = d.split(new RegExp(`${l}[ ]*{`));
8394
8396
  let C = `{${h[1]}`;
8395
8397
  d = h[0], C = this.interpolate(C, c);
8396
- const p = C.match(/'/g), k = C.match(/"/g);
8397
- (p && p.length % 2 === 0 && !k || k.length % 2 !== 0) && (C = C.replace(/'/g, '"'));
8398
+ const p = C.match(/'/g), m = C.match(/"/g);
8399
+ (p && p.length % 2 === 0 && !m || m.length % 2 !== 0) && (C = C.replace(/'/g, '"'));
8398
8400
  try {
8399
8401
  c = JSON.parse(C), g && (c = {
8400
8402
  ...g,
@@ -8458,7 +8460,7 @@ const $3 = (i) => {
8458
8460
  class F3 {
8459
8461
  constructor() {
8460
8462
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8461
- this.logger = Y.create("formatter"), this.options = e, this.formats = {
8463
+ this.logger = U.create("formatter"), this.options = e, this.formats = {
8462
8464
  number: s1((t, s) => {
8463
8465
  const n = new Intl.NumberFormat(t, {
8464
8466
  ...s
@@ -8541,7 +8543,7 @@ const Y3 = (i, e) => {
8541
8543
  class U3 extends L1 {
8542
8544
  constructor(e, t, s) {
8543
8545
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
8544
- super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = Y.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);
8546
+ super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = U.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);
8545
8547
  }
8546
8548
  queueLoad(e, t, s, n) {
8547
8549
  const a = {}, c = {}, r = {}, d = {};
@@ -8729,7 +8731,7 @@ const J1 = () => ({
8729
8731
  maxReplaces: 1e3,
8730
8732
  skipOnVariables: !0
8731
8733
  }
8732
- }), Q1 = (i) => (L(i.ns) && (i.ns = [i.ns]), L(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), L(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), g1 = () => {
8734
+ }), q1 = (i) => (L(i.ns) && (i.ns = [i.ns]), L(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), L(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), g1 = () => {
8733
8735
  }, z3 = (i) => {
8734
8736
  Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
8735
8737
  typeof i[t] == "function" && (i[t] = i[t].bind(i));
@@ -8738,7 +8740,7 @@ const J1 = () => ({
8738
8740
  class c1 extends L1 {
8739
8741
  constructor() {
8740
8742
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
8741
- if (super(), this.options = Q1(e), this.services = {}, this.logger = Y, this.modules = {
8743
+ if (super(), this.options = q1(e), this.services = {}, this.logger = U, this.modules = {
8742
8744
  external: []
8743
8745
  }, z3(this), t && !this.isInitialized && !e.isClone) {
8744
8746
  if (!this.options.initImmediate)
@@ -8756,32 +8758,32 @@ class c1 extends L1 {
8756
8758
  this.options = {
8757
8759
  ...n,
8758
8760
  ...this.options,
8759
- ...Q1(t)
8761
+ ...q1(t)
8760
8762
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
8761
8763
  ...n.interpolation,
8762
8764
  ...this.options.interpolation
8763
8765
  }), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
8764
8766
  const a = (l) => l ? typeof l == "function" ? new l() : l : null;
8765
8767
  if (!this.options.isClone) {
8766
- this.modules.logger ? Y.init(a(this.modules.logger), this.options) : Y.init(null, this.options);
8768
+ this.modules.logger ? U.init(a(this.modules.logger), this.options) : U.init(null, this.options);
8767
8769
  let l;
8768
8770
  this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = F3);
8769
8771
  const h = new Y1(this.options);
8770
8772
  this.store = new $1(this.options.resources, this.options);
8771
8773
  const C = this.services;
8772
- C.logger = Y, C.resourceStore = this.store, C.languageUtils = h, C.pluralResolver = new K3(h, {
8774
+ C.logger = U, C.resourceStore = this.store, C.languageUtils = h, C.pluralResolver = new K3(h, {
8773
8775
  prepend: this.options.pluralSeparator,
8774
8776
  compatibilityJSON: this.options.compatibilityJSON,
8775
8777
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
8776
8778
  }), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (C.formatter = a(l), C.formatter.init(C, this.options), this.options.interpolation.format = C.formatter.format.bind(C.formatter)), C.interpolator = new P3(this.options), C.utils = {
8777
8779
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
8778
8780
  }, C.backendConnector = new U3(a(this.modules.backend), C.resourceStore, C, this.options), C.backendConnector.on("*", function(p) {
8779
- for (var k = arguments.length, N = new Array(k > 1 ? k - 1 : 0), m = 1; m < k; m++)
8780
- N[m - 1] = arguments[m];
8781
+ for (var m = arguments.length, N = new Array(m > 1 ? m - 1 : 0), k = 1; k < m; k++)
8782
+ N[k - 1] = arguments[k];
8781
8783
  e.emit(p, ...N);
8782
8784
  }), this.modules.languageDetector && (C.languageDetector = a(this.modules.languageDetector), C.languageDetector.init && C.languageDetector.init(C, this.options.detection, this.options)), this.modules.i18nFormat && (C.i18nFormat = a(this.modules.i18nFormat), C.i18nFormat.init && C.i18nFormat.init(this)), this.translator = new m1(this.services, this.options), this.translator.on("*", function(p) {
8783
- for (var k = arguments.length, N = new Array(k > 1 ? k - 1 : 0), m = 1; m < k; m++)
8784
- N[m - 1] = arguments[m];
8785
+ for (var m = arguments.length, N = new Array(m > 1 ? m - 1 : 0), k = 1; k < m; k++)
8786
+ N[k - 1] = arguments[k];
8785
8787
  e.emit(p, ...N);
8786
8788
  }), this.modules.external.forEach((p) => {
8787
8789
  p.init && p.init(this);
@@ -8884,7 +8886,7 @@ class c1 extends L1 {
8884
8886
  d.lng = d.lng || a.lng, d.lngs = d.lngs || a.lngs, d.ns = d.ns || a.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || s || a.keyPrefix);
8885
8887
  const C = n.options.keySeparator || ".";
8886
8888
  let p;
8887
- return d.keyPrefix && Array.isArray(c) ? p = c.map((k) => `${d.keyPrefix}${C}${k}`) : p = d.keyPrefix ? `${d.keyPrefix}${C}${c}` : c, n.t(p, d);
8889
+ return d.keyPrefix && Array.isArray(c) ? p = c.map((m) => `${d.keyPrefix}${C}${m}`) : p = d.keyPrefix ? `${d.keyPrefix}${C}${c}` : c, n.t(p, d);
8888
8890
  };
8889
8891
  return L(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = s, a;
8890
8892
  }
@@ -8973,35 +8975,35 @@ class c1 extends L1 {
8973
8975
  };
8974
8976
  }
8975
8977
  }
8976
- const G = c1.createInstance();
8977
- G.createInstance = c1.createInstance;
8978
- G.createInstance;
8979
- G.dir;
8980
- G.init;
8981
- G.loadResources;
8982
- G.reloadResources;
8983
- G.use;
8984
- G.changeLanguage;
8985
- G.getFixedT;
8986
- G.t;
8987
- G.exists;
8988
- G.setDefaultNamespace;
8989
- G.hasLoadedNamespace;
8990
- G.loadNamespaces;
8991
- G.loadLanguages;
8992
- const J3 = "Archived", Q3 = "Deleted", q3 = {
8978
+ const T = c1.createInstance();
8979
+ T.createInstance = c1.createInstance;
8980
+ T.createInstance;
8981
+ T.dir;
8982
+ T.init;
8983
+ T.loadResources;
8984
+ T.reloadResources;
8985
+ T.use;
8986
+ T.changeLanguage;
8987
+ T.getFixedT;
8988
+ T.t;
8989
+ T.exists;
8990
+ T.setDefaultNamespace;
8991
+ T.hasLoadedNamespace;
8992
+ T.loadNamespaces;
8993
+ T.loadLanguages;
8994
+ const J3 = "Archived", q3 = "Deleted", Q3 = {
8993
8995
  archived: J3,
8994
- deleted: Q3
8996
+ deleted: q3
8995
8997
  }, X3 = "Заархивирован", e0 = "Удалён", t0 = {
8996
8998
  archived: X3,
8997
8999
  deleted: e0
8998
9000
  };
8999
- G.use(v3).init({
9001
+ T.use(v3).init({
9000
9002
  defaultNS: "common",
9001
9003
  lng: "en",
9002
9004
  resources: {
9003
9005
  en: {
9004
- common: q3
9006
+ common: Q3
9005
9007
  },
9006
9008
  ru: {
9007
9009
  common: t0
@@ -9020,108 +9022,108 @@ const l0 = k1(
9020
9022
  allowEmpty: r = !1,
9021
9023
  showAvatar: d = !1
9022
9024
  }, g) => {
9023
- const { axiosPeople: l, locale: h } = e1(Ne), { t: C } = y3("common", { lng: h }), [p, k] = j([]), [N, m] = j(!0), E = X(p);
9025
+ const { axiosPeople: l, locale: h } = e1(Ne), { t: C } = b3("common", { lng: h }), [p, m] = Z([]), [N, k] = Z(!0), E = X(p);
9024
9026
  if (!l)
9025
9027
  throw new Error(
9026
9028
  `UserSelect requires "axiosPeople" to fetch users.
9027
9029
  Please provide it via SNMTUiContext.`
9028
9030
  );
9029
- const x = T(
9031
+ const R = D(
9030
9032
  (w) => {
9031
- let I = "";
9032
- return w.deletedAt && (I += `[${C("deleted")}] `), w.status === C1.ARCHIVED && (I += `[${C("archived")}] `), `${I}${w.firstName} ${w.lastName}`;
9033
+ let H = "";
9034
+ return w.deletedAt && (H += `[${C("deleted")}] `), w.status === C1.ARCHIVED && (H += `[${C("archived")}] `), `${H}${w.firstName} ${w.lastName}`;
9033
9035
  },
9034
9036
  [C]
9035
- ), _ = T(
9037
+ ), _ = D(
9036
9038
  async ({
9037
9039
  offset: w,
9038
- limit: I,
9039
- search: Z
9040
+ limit: H,
9041
+ search: G
9040
9042
  }) => {
9041
- var D, S, H;
9043
+ var A, V, I;
9042
9044
  try {
9043
9045
  const P = await l.post("v1/users/search", {
9044
9046
  offset: w,
9045
- limit: I,
9046
- search: Z,
9047
+ limit: H,
9048
+ search: G,
9047
9049
  ...i,
9048
9050
  includeCount: !0
9049
- }), { data: A, metadata: V } = P.data;
9051
+ }), { data: B, metadata: $ } = P.data;
9050
9052
  return {
9051
- options: A.map(($) => ({
9052
- value: $.id,
9053
- label: x($),
9054
- image: d ? $.avatarUrl : void 0
9053
+ options: B.map((S) => ({
9054
+ value: S.id,
9055
+ label: R(S),
9056
+ image: d ? S.avatarUrl : void 0
9055
9057
  })),
9056
- count: V.count
9058
+ count: $.count
9057
9059
  };
9058
9060
  } catch (P) {
9059
9061
  return c && c({
9060
- status: ((D = P.response) == null ? void 0 : D.status) ?? 500,
9061
- message: ((H = (S = P.response) == null ? void 0 : S.data) == null ? void 0 : H.message) ?? "Error while fetching options"
9062
+ status: ((A = P.response) == null ? void 0 : A.status) ?? 500,
9063
+ message: ((I = (V = P.response) == null ? void 0 : V.data) == null ? void 0 : I.message) ?? "Error while fetching options"
9062
9064
  }), {
9063
9065
  options: [],
9064
9066
  count: 0
9065
9067
  };
9066
9068
  }
9067
9069
  },
9068
- [l, i, x, d, c]
9069
- ), f = T(
9070
+ [l, i, R, d, c]
9071
+ ), f = D(
9070
9072
  async (w) => {
9071
- var I, Z, D;
9073
+ var H, G, A;
9072
9074
  try {
9073
- const S = w.filter(
9074
- (A) => !E.current.some((V) => V.value === A)
9075
+ const V = w.filter(
9076
+ (B) => !E.current.some(($) => $.value === B)
9075
9077
  );
9076
- let H = [];
9077
- S.length && (H = (await l.post("v1/users/search", {
9078
+ let I = [];
9079
+ V.length && (I = (await l.post("v1/users/search", {
9078
9080
  filters: {
9079
- id: S,
9081
+ id: V,
9080
9082
  status: [C1.ACTIVE, C1.ARCHIVED]
9081
9083
  }
9082
9084
  })).data.data);
9083
- const P = H.map((A) => ({
9084
- value: A.id,
9085
- label: x(A),
9086
- image: d ? A.avatarUrl : void 0
9085
+ const P = I.map((B) => ({
9086
+ value: B.id,
9087
+ label: R(B),
9088
+ image: d ? B.avatarUrl : void 0
9087
9089
  }));
9088
9090
  return [...E.current, ...P];
9089
- } catch (S) {
9091
+ } catch (V) {
9090
9092
  return c && c({
9091
- status: ((I = S.response) == null ? void 0 : I.status) ?? 500,
9092
- message: ((D = (Z = S.response) == null ? void 0 : Z.data) == null ? void 0 : D.message) ?? "Error while fetching selected items"
9093
+ status: ((H = V.response) == null ? void 0 : H.status) ?? 500,
9094
+ message: ((A = (G = V.response) == null ? void 0 : G.data) == null ? void 0 : A.message) ?? "Error while fetching selected items"
9093
9095
  }), [];
9094
9096
  }
9095
9097
  },
9096
- [l, x, c, d]
9098
+ [l, R, c, d]
9097
9099
  );
9098
9100
  K(() => {
9099
9101
  E.current = p;
9100
9102
  }, [p]), K(() => {
9101
9103
  if (!n) {
9102
- m(!1);
9104
+ k(!1);
9103
9105
  return;
9104
9106
  }
9105
9107
  (async () => {
9106
- const I = Array.isArray(n) ? n : [n], Z = await f(I);
9107
- k(Z), m(!1);
9108
+ const H = Array.isArray(n) ? n : [n], G = await f(H);
9109
+ m(G), k(!1);
9108
9110
  })();
9109
9111
  }, [f, n]);
9110
- const R = T(
9112
+ const x = D(
9111
9113
  async ({
9112
9114
  limit: w,
9113
- offset: I,
9114
- search: Z
9115
+ offset: H,
9116
+ search: G
9115
9117
  }) => {
9116
- const { count: D, ...S } = await _({
9117
- offset: I,
9118
+ const { count: A, ...V } = await _({
9119
+ offset: H,
9118
9120
  limit: w,
9119
- search: Z
9121
+ search: G
9120
9122
  });
9121
- let H = S.options;
9122
- return r && I === 0 && (H = [{ value: null, label: "None" }, ...H]), {
9123
- options: H,
9124
- count: D,
9123
+ let I = V.options;
9124
+ return r && H === 0 && (I = [{ value: null, label: "None" }, ...I]), {
9125
+ options: I,
9126
+ count: A,
9125
9127
  limit: w
9126
9128
  };
9127
9129
  },
@@ -9129,30 +9131,30 @@ const l0 = k1(
9129
9131
  );
9130
9132
  if (N)
9131
9133
  return /* @__PURE__ */ o(l3, {});
9132
- const b = {
9134
+ const y = {
9133
9135
  ref: g,
9134
9136
  placeholder: t,
9135
9137
  disabled: s
9136
9138
  };
9137
9139
  return e ? /* @__PURE__ */ o(
9138
- Z1,
9140
+ W1,
9139
9141
  {
9140
- ...b,
9142
+ ...y,
9141
9143
  mode: e,
9142
9144
  value: n,
9143
9145
  onChange: a,
9144
- loadOptions: R,
9146
+ loadOptions: x,
9145
9147
  loadOnClosedState: !0,
9146
9148
  extraOptions: p
9147
9149
  }
9148
9150
  ) : /* @__PURE__ */ o(
9149
- Z1,
9151
+ W1,
9150
9152
  {
9151
- ...b,
9153
+ ...y,
9152
9154
  value: n,
9153
9155
  mode: void 0,
9154
9156
  onChange: a,
9155
- loadOptions: R,
9157
+ loadOptions: x,
9156
9158
  loadOnClosedState: !0,
9157
9159
  extraOptions: p
9158
9160
  }