@snmt-react-ui/user-select 2.5.7 → 2.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  var le = Object.defineProperty;
2
2
  var ae = (i, e, t) => e in i ? le(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var y1 = (i, e, t) => ae(i, typeof e != "symbol" ? e + "" : e, t);
3
+ var b1 = (i, e, t) => ae(i, typeof e != "symbol" ? e + "" : e, t);
4
4
  import "./index.css";
5
5
  import { jsx as r, Fragment as e1, jsxs as C } from "react/jsx-runtime";
6
- import { createContext as r1, forwardRef as o1, useState as W, useRef as l1, useEffect as K, useCallback as G, useImperativeHandle as he, useContext as a1 } from "react";
7
- import { Select as ce, Flex as de, Avatar as ge, Checkbox as Ce, Typography as P1, Tag as $1, Popover as ue } from "antd";
6
+ import { createContext as o1, forwardRef as l1, useState as W, useRef as a1, useEffect as K, useCallback as G, useImperativeHandle as he, useContext as h1 } from "react";
7
+ import { Select as ce, Flex as de, Avatar as ge, Checkbox as Ce, Typography as $1, Tag as F1, Popover as ue } from "antd";
8
8
  import { SNMTUiContext as pe } from "@snmt-react-ui/core";
9
- const d1 = ({
9
+ const g1 = ({
10
10
  children: i,
11
11
  direction: e = "row",
12
12
  flexWrap: t = "nowrap",
@@ -43,11 +43,11 @@ const d1 = ({
43
43
  );
44
44
  };
45
45
  var X = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(X || {});
46
- const F1 = r1({
46
+ const Y1 = o1({
47
47
  locale: "en",
48
48
  theme: "light"
49
49
  });
50
- F1.Provider;
50
+ Y1.Provider;
51
51
  const we = ({
52
52
  checked: i = !0,
53
53
  indeterminate: e = !1,
@@ -60,7 +60,7 @@ const we = ({
60
60
  K(() => {
61
61
  o(i), g(e);
62
62
  }, [i, e]);
63
- const { theme: a } = a1(F1);
63
+ const { theme: a } = h1(Y1);
64
64
  return /* @__PURE__ */ r(
65
65
  Ce,
66
66
  {
@@ -76,11 +76,11 @@ const we = ({
76
76
  );
77
77
  };
78
78
  var L = /* @__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))(L || {});
79
- const Y1 = r1({
79
+ const U1 = o1({
80
80
  locale: "en",
81
81
  theme: "light"
82
82
  });
83
- Y1.Provider;
83
+ U1.Provider;
84
84
  const me = ({
85
85
  width: i = 20,
86
86
  height: e = 20,
@@ -263,7 +263,7 @@ const me = ({
263
263
  }
264
264
  )
265
265
  }
266
- ), Me = ({
266
+ ), Re = ({
267
267
  width: i = 20,
268
268
  height: e = 20,
269
269
  color: t = "#001E52",
@@ -284,7 +284,7 @@ const me = ({
284
284
  /* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
285
285
  ]
286
286
  }
287
- ), Re = ({
287
+ ), Me = ({
288
288
  width: i = 20,
289
289
  height: e = 20,
290
290
  color: t = "#001E52",
@@ -492,7 +492,7 @@ const me = ({
492
492
  )
493
493
  ]
494
494
  }
495
- ), Ve = ({
495
+ ), _e = ({
496
496
  width: i = 10,
497
497
  height: e = 10,
498
498
  color: t = "#001E52",
@@ -531,7 +531,7 @@ const me = ({
531
531
  )
532
532
  ] })
533
533
  }
534
- ), _e = ({
534
+ ), Ve = ({
535
535
  width: i = 16,
536
536
  height: e = 16,
537
537
  color: t = "#001E52",
@@ -2235,7 +2235,7 @@ const me = ({
2235
2235
  )
2236
2236
  ]
2237
2237
  }
2238
- ), Mt = ({
2238
+ ), Rt = ({
2239
2239
  className: i,
2240
2240
  color: e = L.GREY_DARK_5,
2241
2241
  height: t = 24,
@@ -2261,7 +2261,7 @@ const me = ({
2261
2261
  }
2262
2262
  )
2263
2263
  }
2264
- ), Rt = ({
2264
+ ), Mt = ({
2265
2265
  className: i,
2266
2266
  color: e = L.GREY_DARK_5,
2267
2267
  height: t = 24,
@@ -2504,7 +2504,7 @@ const me = ({
2504
2504
  )
2505
2505
  ]
2506
2506
  }
2507
- ), Vt = ({
2507
+ ), _t = ({
2508
2508
  className: i,
2509
2509
  color: e = L.GREY_DARK_5,
2510
2510
  height: t = 24,
@@ -2543,7 +2543,7 @@ const me = ({
2543
2543
  )
2544
2544
  ]
2545
2545
  }
2546
- ), _t = ({
2546
+ ), Vt = ({
2547
2547
  className: i,
2548
2548
  color: e = L.GREY_DARK_5,
2549
2549
  height: t = 24,
@@ -3124,7 +3124,7 @@ const me = ({
3124
3124
  }
3125
3125
  )
3126
3126
  }
3127
- ), h1 = ({
3127
+ ), c1 = ({
3128
3128
  name: i,
3129
3129
  width: e,
3130
3130
  height: t,
@@ -3133,7 +3133,7 @@ const me = ({
3133
3133
  disabled: l = !1,
3134
3134
  onClick: c
3135
3135
  }) => {
3136
- const [o, d] = W(n), { theme: g } = a1(Y1), a = l ? g && g === "dark" ? L.GREY_LIGHT_4 : L.GREY_DARK_1 : s, h = l ? void 0 : c;
3136
+ const [o, d] = W(n), { theme: g } = h1(U1), a = l ? g && g === "dark" ? L.GREY_LIGHT_4 : L.GREY_DARK_1 : s, h = l ? void 0 : c;
3137
3137
  return K(() => {
3138
3138
  if (n) {
3139
3139
  h && !l && d(`${n} clickable`);
@@ -3159,9 +3159,9 @@ const me = ({
3159
3159
  case "ok":
3160
3160
  return xe({ width: e, height: t, color: a, className: o, onClick: h });
3161
3161
  case "cancel":
3162
- return Me({ width: e, height: t, color: a, className: o, onClick: h });
3163
- case "add":
3164
3162
  return Re({ width: e, height: t, color: a, className: o, onClick: h });
3163
+ case "add":
3164
+ return Me({ width: e, height: t, color: a, className: o, onClick: h });
3165
3165
  case "list":
3166
3166
  return ye({ width: e, height: t, color: a, className: o, onClick: h });
3167
3167
  case "dragAndDrop":
@@ -3171,9 +3171,9 @@ const me = ({
3171
3171
  case "attention":
3172
3172
  return He({ width: e, height: t, color: a, className: o, onClick: h });
3173
3173
  case "plus":
3174
- return Ve({ width: e, height: t, color: a, className: o, onClick: h });
3175
- case "time":
3176
3174
  return _e({ width: e, height: t, color: a, className: o, onClick: h });
3175
+ case "time":
3176
+ return Ve({ width: e, height: t, color: a, className: o, onClick: h });
3177
3177
  case "arrowDownLong":
3178
3178
  return Ie({
3179
3179
  width: e,
@@ -3335,9 +3335,9 @@ const me = ({
3335
3335
  case "warning":
3336
3336
  return xt({ width: e, height: t, color: a, className: o, onClick: h });
3337
3337
  case "back":
3338
- return Mt({ width: e, height: t, color: a, className: o, onClick: h });
3339
- case "bell":
3340
3338
  return Rt({ width: e, height: t, color: a, className: o, onClick: h });
3339
+ case "bell":
3340
+ return Mt({ width: e, height: t, color: a, className: o, onClick: h });
3341
3341
  case "contract":
3342
3342
  return bt({ width: e, height: t, color: a, className: o, onClick: h });
3343
3343
  case "trash2":
@@ -3347,9 +3347,9 @@ const me = ({
3347
3347
  case "resourceManager":
3348
3348
  return Ht({ width: e, height: t, color: a, className: o, onClick: h });
3349
3349
  case "settings2":
3350
- return Vt({ width: e, height: t, color: a, className: o, onClick: h });
3351
- case "image":
3352
3350
  return _t({ width: e, height: t, color: a, className: o, onClick: h });
3351
+ case "image":
3352
+ return Vt({ width: e, height: t, color: a, className: o, onClick: h });
3353
3353
  case "upload":
3354
3354
  return It({ width: e, height: t, color: a, className: o, onClick: h });
3355
3355
  case "edit":
@@ -3386,12 +3386,12 @@ const me = ({
3386
3386
  return /* @__PURE__ */ r(e1, { children: "No Icon provided" });
3387
3387
  }
3388
3388
  })() });
3389
- }, { Title: Ut, Text: zt } = P1, Jt = {
3389
+ }, { Title: Ut, Text: zt } = $1, Jt = {
3390
3390
  h1: 1,
3391
3391
  h2: 2,
3392
3392
  h3: 3,
3393
3393
  h4: 4
3394
- }, Qt = o1(
3394
+ }, Qt = l1(
3395
3395
  ({
3396
3396
  align: i = "inherit",
3397
3397
  variant: e = "body1",
@@ -3426,11 +3426,11 @@ const me = ({
3426
3426
  }
3427
3427
  );
3428
3428
  var v = /* @__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))(v || {});
3429
- const U1 = r1({
3429
+ const z1 = o1({
3430
3430
  locale: "en",
3431
3431
  theme: "light"
3432
3432
  });
3433
- U1.Provider;
3433
+ z1.Provider;
3434
3434
  const qt = ({
3435
3435
  width: i = 20,
3436
3436
  height: e = 20,
@@ -4385,7 +4385,7 @@ const qt = ({
4385
4385
  )
4386
4386
  ]
4387
4387
  }
4388
- ), M2 = ({
4388
+ ), R2 = ({
4389
4389
  width: i = 20,
4390
4390
  height: e = 20,
4391
4391
  color: t = "#001E52",
@@ -4425,7 +4425,7 @@ const qt = ({
4425
4425
  )
4426
4426
  ]
4427
4427
  }
4428
- ), R2 = ({
4428
+ ), M2 = ({
4429
4429
  width: i = 32,
4430
4430
  height: e = 25,
4431
4431
  color: t = "#001E52",
@@ -4592,7 +4592,7 @@ const qt = ({
4592
4592
  )
4593
4593
  ]
4594
4594
  }
4595
- ), V2 = ({
4595
+ ), _2 = ({
4596
4596
  width: i = 14,
4597
4597
  height: e = 14,
4598
4598
  color: t = "#FFB020",
@@ -4626,7 +4626,7 @@ const qt = ({
4626
4626
  )
4627
4627
  ]
4628
4628
  }
4629
- ), _2 = ({
4629
+ ), V2 = ({
4630
4630
  width: i = 14,
4631
4631
  height: e = 14,
4632
4632
  color: t = "#D0421B",
@@ -6326,7 +6326,7 @@ const qt = ({
6326
6326
  )
6327
6327
  ]
6328
6328
  }
6329
- ), M5 = ({
6329
+ ), R5 = ({
6330
6330
  className: i,
6331
6331
  color: e = "#001E52",
6332
6332
  height: t = 24,
@@ -6352,7 +6352,7 @@ const qt = ({
6352
6352
  }
6353
6353
  )
6354
6354
  }
6355
- ), R5 = ({
6355
+ ), M5 = ({
6356
6356
  className: i,
6357
6357
  color: e = "#131314",
6358
6358
  height: t = 20,
@@ -6483,7 +6483,7 @@ const qt = ({
6483
6483
  disabled: l = !1,
6484
6484
  onClick: c
6485
6485
  }) => {
6486
- const [o, d] = W(n), { theme: g } = a1(U1), a = l ? g && g === "dark" ? v.GREY_LIGHT_4 : v.GREY_DARK_1 : s, h = l ? void 0 : c;
6486
+ const [o, d] = W(n), { theme: g } = h1(z1), a = l ? g && g === "dark" ? v.GREY_LIGHT_4 : v.GREY_DARK_1 : s, h = l ? void 0 : c;
6487
6487
  return K(() => {
6488
6488
  if (n) {
6489
6489
  h && !l && d(`${n} clickable`);
@@ -6567,9 +6567,9 @@ const qt = ({
6567
6567
  case "settings4":
6568
6568
  return x2({ width: e, height: t, color: a, className: o, onClick: h });
6569
6569
  case "edit2":
6570
- return M2({ width: e, height: t, color: a, className: o, onClick: h });
6570
+ return R2({ width: e, height: t, color: a, className: o, onClick: h });
6571
6571
  case "notifications":
6572
- return R2({
6572
+ return M2({
6573
6573
  width: e,
6574
6574
  height: t,
6575
6575
  color: a,
@@ -6591,7 +6591,7 @@ const qt = ({
6591
6591
  case "infoMedium":
6592
6592
  return H2({ width: e, height: t, color: a, className: o, onClick: h });
6593
6593
  case "attentionMedium":
6594
- return V2({
6594
+ return _2({
6595
6595
  width: e,
6596
6596
  height: t,
6597
6597
  color: a,
@@ -6599,7 +6599,7 @@ const qt = ({
6599
6599
  onClick: h
6600
6600
  });
6601
6601
  case "errorMedium":
6602
- return _2({ width: e, height: t, color: a, className: o, onClick: h });
6602
+ return V2({ width: e, height: t, color: a, className: o, onClick: h });
6603
6603
  case "faviconSkills":
6604
6604
  return Z2({
6605
6605
  width: e,
@@ -6725,9 +6725,9 @@ const qt = ({
6725
6725
  case "filledArrowRight":
6726
6726
  return x5({ width: e, height: t, color: a, className: o, onClick: h });
6727
6727
  case "burgerMenu":
6728
- return M5({ width: e, height: t, color: a, className: o, onClick: h });
6729
- case "signOut":
6730
6728
  return R5({ width: e, height: t, color: a, className: o, onClick: h });
6729
+ case "signOut":
6730
+ return M5({ width: e, height: t, color: a, className: o, onClick: h });
6731
6731
  case "refresh":
6732
6732
  return y5({ width: e, height: t, color: a, className: o, onClick: h });
6733
6733
  case "projects":
@@ -6737,40 +6737,56 @@ const qt = ({
6737
6737
  }
6738
6738
  })() });
6739
6739
  };
6740
- var z1 = /* @__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))(z1 || {});
6741
- const H5 = r1({
6740
+ var s1 = /* @__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))(s1 || {});
6741
+ const H5 = o1({
6742
6742
  locale: "en",
6743
6743
  theme: "light"
6744
6744
  });
6745
6745
  H5.Provider;
6746
- const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n = !0 }) => {
6747
- const l = t === "small" ? 10 : 12.5;
6746
+ const J1 = ({
6747
+ children: i,
6748
+ width: e,
6749
+ size: t = "small",
6750
+ onClose: s,
6751
+ closable: n = !0,
6752
+ disabled: l = !1
6753
+ }) => {
6754
+ const c = t === "small" ? 10 : 12.5, o = () => {
6755
+ l || s == null || s();
6756
+ };
6748
6757
  return /* @__PURE__ */ r(
6749
- $1,
6758
+ F1,
6750
6759
  {
6751
- className: `snmt-tag ${t}`,
6760
+ className: `snmt-tag ${t} ${l ? "disabled" : ""}`,
6752
6761
  closeIcon: /* @__PURE__ */ r(
6753
6762
  E5,
6754
6763
  {
6755
6764
  name: "errorSmall",
6756
- color: z1.GREY_DARK_2,
6757
- width: l,
6758
- height: l,
6759
- onClick: s
6765
+ color: l ? s1.GREY_DARK_1 : s1.GREY_DARK_2,
6766
+ width: c,
6767
+ height: c,
6768
+ onClick: o
6760
6769
  }
6761
6770
  ),
6762
6771
  bordered: !1,
6763
6772
  style: { width: e ?? "fit-content" },
6764
6773
  closable: n,
6765
- children: typeof i == "string" ? /* @__PURE__ */ r(Qt, { variant: t === "small" ? "body4" : "body2", children: i }) : i
6774
+ children: typeof i == "string" ? /* @__PURE__ */ r(
6775
+ Qt,
6776
+ {
6777
+ variant: t === "small" ? "body4" : "body2",
6778
+ color: l ? s1.GREY_DARK_2 : s1.GREY_DARK_5,
6779
+ children: i
6780
+ }
6781
+ ) : i
6766
6782
  }
6767
6783
  );
6768
- }, { Title: V5, Text: _5 } = P1, I5 = {
6784
+ }, { Title: _5, Text: V5 } = $1, I5 = {
6769
6785
  h1: 1,
6770
6786
  h2: 2,
6771
6787
  h3: 3,
6772
6788
  h4: 4
6773
- }, Q1 = o1(
6789
+ }, Q1 = l1(
6774
6790
  ({
6775
6791
  align: i = "inherit",
6776
6792
  variant: e = "body1",
@@ -6783,7 +6799,7 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
6783
6799
  const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
6784
6800
  let g = `snmt-typography snmt-typography-${e}`;
6785
6801
  return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), l && (g += " collapsed"), d ? /* @__PURE__ */ r(
6786
- V5,
6802
+ _5,
6787
6803
  {
6788
6804
  className: g,
6789
6805
  style: { color: t, whiteSpace: c },
@@ -6793,7 +6809,7 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
6793
6809
  children: s
6794
6810
  }
6795
6811
  ) : /* @__PURE__ */ r(
6796
- _5,
6812
+ V5,
6797
6813
  {
6798
6814
  className: g,
6799
6815
  style: { color: t, whiteSpace: c },
@@ -6853,7 +6869,7 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
6853
6869
  {
6854
6870
  content: (
6855
6871
  // 90: paddings + margins + gaps and so on
6856
- /* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, children: /* @__PURE__ */ r(d1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: a }) => /* @__PURE__ */ r(
6872
+ /* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, children: /* @__PURE__ */ r(g1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: a }) => /* @__PURE__ */ r(
6857
6873
  J1,
6858
6874
  {
6859
6875
  onClose: () => e(a),
@@ -6866,13 +6882,13 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
6866
6882
  placement: "bottomRight",
6867
6883
  isOpen: c,
6868
6884
  setIsOpen: o,
6869
- children: /* @__PURE__ */ r($1, { className: `overflow-button ${c ? "open" : ""}`, bordered: !1, children: /* @__PURE__ */ C(Q1, { variant: "body4", color: c ? X.BLUE_PRIMARY : void 0, children: [
6885
+ children: /* @__PURE__ */ r(F1, { className: `overflow-button ${c ? "open" : ""}`, bordered: !1, children: /* @__PURE__ */ C(Q1, { variant: "body4", color: c ? X.BLUE_PRIMARY : void 0, children: [
6870
6886
  i.length,
6871
6887
  " more"
6872
6888
  ] }) })
6873
6889
  }
6874
6890
  ) });
6875
- }, b1 = ({ size: i = 30, color: e = "#004ed7" }) => {
6891
+ }, E1 = ({ size: i = 30, color: e = "#004ed7" }) => {
6876
6892
  const t = `no-repeat linear-gradient(${e}
6877
6893
  calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
6878
6894
  width: i,
@@ -6880,7 +6896,7 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
6880
6896
  backgroundSize: "20% calc(200% + 20px)"
6881
6897
  };
6882
6898
  return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
6883
- }, E1 = o1(
6899
+ }, H1 = l1(
6884
6900
  ({
6885
6901
  value: i,
6886
6902
  onChange: e,
@@ -6897,22 +6913,22 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
6897
6913
  onDropdownVisibleChange: u,
6898
6914
  onScrollToEnd: p,
6899
6915
  onPopupScroll: N,
6900
- id: M,
6916
+ id: R,
6901
6917
  extraOptions: k,
6902
6918
  dropdownRender: b,
6903
- optionRender: R,
6919
+ optionRender: M,
6904
6920
  isLoading: S,
6905
6921
  readOnly: f
6906
6922
  }, y) => {
6907
- const [x, w] = W(!1), [B, Z] = W(!1), [I, H] = W(!0), [V, D] = W(i), T = l1(null);
6923
+ const [x, w] = W(!1), [B, Z] = W(!1), [I, H] = W(!0), [_, D] = W(i), T = a1(null);
6908
6924
  K(() => {
6909
6925
  D(i);
6910
6926
  }, [i]);
6911
6927
  const E = (m) => {
6912
6928
  w(m), u && u(m);
6913
- }, F = (m, _) => {
6929
+ }, F = (m, V) => {
6914
6930
  var P;
6915
- return !!((P = _ == null ? void 0 : _.label) != null && P.toString().toLowerCase().includes(m.toLowerCase()));
6931
+ return !!((P = V == null ? void 0 : V.label) != null && P.toString().toLowerCase().includes(m.toLowerCase()));
6916
6932
  }, J = () => {
6917
6933
  Z(!0);
6918
6934
  }, A = () => {
@@ -6924,8 +6940,8 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
6924
6940
  e == null || e(P);
6925
6941
  return;
6926
6942
  }
6927
- const _ = m;
6928
- e == null || e(_);
6943
+ const V = m;
6944
+ e == null || e(V);
6929
6945
  },
6930
6946
  [s, e]
6931
6947
  ), Y = G(() => {
@@ -6938,39 +6954,39 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
6938
6954
  }
6939
6955
  }, [O, s, f]), U = G(
6940
6956
  (m) => {
6941
- const _ = V.filter((P) => P !== m);
6942
- O(_), D(_);
6957
+ const V = _.filter((P) => P !== m);
6958
+ O(V), D(V);
6943
6959
  },
6944
- [O, V]
6945
- ), R1 = G(
6946
- (m) => (V == null ? void 0 : V.indexOf(m)) === 0 ? (
6960
+ [O, _]
6961
+ ), y1 = G(
6962
+ (m) => (_ == null ? void 0 : _.indexOf(m)) === 0 ? (
6947
6963
  // if the search input is empty
6948
6964
  // then display the placeholder, else do not display it
6949
6965
  /* @__PURE__ */ r("span", { className: "custom-placeholder", children: I ? t : "" })
6950
6966
  ) : /* @__PURE__ */ r(e1, {}),
6951
- [I, V, t]
6967
+ [I, _, t]
6952
6968
  ), se = (m) => {
6953
6969
  m.preventDefault(), m.stopPropagation();
6954
6970
  }, ne = async (m) => {
6955
- const { target: _ } = m;
6956
- _.scrollTop + _.offsetHeight >= _.scrollHeight - a && (p == null || p(!0)), N && await N(m);
6957
- }, m1 = G(
6971
+ const { target: V } = m;
6972
+ V.scrollTop + V.offsetHeight >= V.scrollHeight - a && (p == null || p(!0)), N && await N(m);
6973
+ }, k1 = G(
6958
6974
  (m) => {
6959
- var _, P;
6960
- return ((_ = l.find((k1) => k1.value === m)) == null ? void 0 : _.label) || ((P = k == null ? void 0 : k.find(
6961
- (k1) => k1.value === m
6975
+ var V, P;
6976
+ return ((V = l.find((L1) => L1.value === m)) == null ? void 0 : V.label) || ((P = k == null ? void 0 : k.find(
6977
+ (L1) => L1.value === m
6962
6978
  )) == null ? void 0 : P.label) || m;
6963
6979
  },
6964
6980
  [k, l]
6965
6981
  ), re = G(
6966
6982
  (m) => {
6967
- var _;
6983
+ var V;
6968
6984
  return /* @__PURE__ */ r(
6969
6985
  S5,
6970
6986
  {
6971
6987
  values: m,
6972
6988
  onTagClose: U,
6973
- maxWidth: ((_ = T.current) == null ? void 0 : _.clientWidth) || 0,
6989
+ maxWidth: ((V = T.current) == null ? void 0 : V.clientWidth) || 0,
6974
6990
  disabled: o || f,
6975
6991
  options: l,
6976
6992
  extraOptions: k
@@ -6979,8 +6995,8 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
6979
6995
  },
6980
6996
  [o, k, U, l, f]
6981
6997
  ), oe = G(
6982
- ({ label: m, value: _, mode: P }) => P === "filter" ? R1(_) : /* @__PURE__ */ r("div", { onMouseDown: se, className: "tag-wrapper", children: /* @__PURE__ */ r(J1, { onClose: () => U(_), closable: !o, children: /* @__PURE__ */ r(Q1, { variant: "body4", children: typeof m == "object" ? m : m1(_) }) }) }),
6983
- [o, m1, U, R1]
6998
+ ({ label: m, value: V, mode: P }) => P === "filter" ? y1(V) : /* @__PURE__ */ r("div", { onMouseDown: se, className: "tag-wrapper", children: /* @__PURE__ */ r(J1, { onClose: () => U(V), closable: !o, children: /* @__PURE__ */ r(Q1, { variant: "body4", children: typeof m == "object" ? m : k1(V) }) }) }),
6999
+ [o, k1, U, y1]
6984
7000
  );
6985
7001
  return /* @__PURE__ */ C(
6986
7002
  "div",
@@ -6995,15 +7011,15 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
6995
7011
  {
6996
7012
  className: "snmt-select-blank",
6997
7013
  popupClassName: f ? "dropdown-read-only" : "",
6998
- id: M,
7014
+ id: R,
6999
7015
  ref: y,
7000
7016
  showSearch: !!n,
7001
7017
  filterOption: n && F,
7002
7018
  onDropdownVisibleChange: E,
7003
7019
  placeholder: t ? d ? `${t}*` : t : void 0,
7004
7020
  disabled: o,
7005
- value: V || void 0,
7006
- labelRender: (m) => m1(m.value),
7021
+ value: _ || void 0,
7022
+ labelRender: (m) => k1(m.value),
7007
7023
  mode: s === "filter" ? "multiple" : s,
7008
7024
  onChange: O,
7009
7025
  onFocus: J,
@@ -7017,11 +7033,11 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
7017
7033
  maxTagCount: "responsive",
7018
7034
  maxTagPlaceholder: re,
7019
7035
  onPopupScroll: ne,
7020
- prefix: S && /* @__PURE__ */ r(b1, { size: 15 }),
7036
+ prefix: S && /* @__PURE__ */ r(E1, { size: 15 }),
7021
7037
  suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(e1, { children: [
7022
- V && !!V.length && (s || g) && /* @__PURE__ */ r("div", { onClick: Y, children: /* @__PURE__ */ r(h1, { name: "cancel" }) }),
7038
+ _ && !!_.length && (s || g) && /* @__PURE__ */ r("div", { onClick: Y, children: /* @__PURE__ */ r(c1, { name: "cancel" }) }),
7023
7039
  /* @__PURE__ */ r(
7024
- h1,
7040
+ c1,
7025
7041
  {
7026
7042
  name: "selectArrowIcon",
7027
7043
  color: o ? X.GREY_DARK_1 : X.GREY_DARK_5,
@@ -7030,23 +7046,23 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
7030
7046
  }
7031
7047
  )
7032
7048
  ] }) }),
7033
- removeIcon: /* @__PURE__ */ r(h1, { name: "errorSmall", color: X.GREY_DARK_2 }),
7049
+ removeIcon: /* @__PURE__ */ r(c1, { name: "errorSmall", color: X.GREY_DARK_2 }),
7034
7050
  options: l,
7035
- optionRender: (m) => R ? R(m.data) : /* @__PURE__ */ C(d1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
7036
- /* @__PURE__ */ C(d1, { alignItems: "center", gap: 12, children: [
7051
+ optionRender: (m) => M ? M(m.data) : /* @__PURE__ */ C(g1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
7052
+ /* @__PURE__ */ C(g1, { alignItems: "center", gap: 12, children: [
7037
7053
  s && /* @__PURE__ */ r(
7038
7054
  we,
7039
7055
  {
7040
- checked: !!(V != null && V.includes(m.value))
7056
+ checked: !!(_ != null && _.includes(m.value))
7041
7057
  }
7042
7058
  ),
7043
- /* @__PURE__ */ C(d1, { alignItems: "center", gap: 8, children: [
7059
+ /* @__PURE__ */ C(g1, { alignItems: "center", gap: 8, children: [
7044
7060
  m.data.image && /* @__PURE__ */ r(fe, { src: m.data.image, size: 20 }),
7045
7061
  /* @__PURE__ */ r("span", { children: m.label })
7046
7062
  ] })
7047
7063
  ] }),
7048
- !s && V === m.value && /* @__PURE__ */ r(
7049
- h1,
7064
+ !s && _ === m.value && /* @__PURE__ */ r(
7065
+ c1,
7050
7066
  {
7051
7067
  name: "ok",
7052
7068
  color: X.BLUE_PRIMARY,
@@ -7063,7 +7079,7 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
7063
7079
  display: "grid",
7064
7080
  justifyContent: "center"
7065
7081
  },
7066
- children: /* @__PURE__ */ r(b1, { size: 28 })
7082
+ children: /* @__PURE__ */ r(E1, { size: 28 })
7067
7083
  }
7068
7084
  ) : (m) => b ? b(m) : m
7069
7085
  }
@@ -7084,7 +7100,7 @@ const J1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
7084
7100
  }
7085
7101
  );
7086
7102
  function A5(i, e = 500) {
7087
- const t = l1();
7103
+ const t = a1();
7088
7104
  return K(() => () => {
7089
7105
  t.current && clearTimeout(t.current);
7090
7106
  }, []), (...s) => {
@@ -7097,7 +7113,7 @@ function A5(i, e = 500) {
7097
7113
  const t1 = {
7098
7114
  limit: 100,
7099
7115
  offset: 0
7100
- }, H1 = o1(
7116
+ }, _1 = l1(
7101
7117
  ({
7102
7118
  loadOptions: i,
7103
7119
  width: e,
@@ -7114,15 +7130,15 @@ const t1 = {
7114
7130
  optionRender: u,
7115
7131
  dropdownRender: p,
7116
7132
  readOnly: N,
7117
- clearable: M
7133
+ clearable: R
7118
7134
  }, k) => {
7119
- const [b, R] = W([]), [S, f] = W(t1), [y, x] = W(!1), [w, B] = W(null), Z = G(
7135
+ const [b, M] = W([]), [S, f] = W(t1), [y, x] = W(!1), [w, B] = W(null), Z = G(
7120
7136
  async (E = !1, F) => {
7121
7137
  if (!y) {
7122
7138
  x(!0);
7123
7139
  try {
7124
7140
  const J = E ? { ...t1, search: F } : S, A = await i(J);
7125
- R(
7141
+ M(
7126
7142
  (O) => E ? A.options : [...O, ...A.options]
7127
7143
  ), B(A.count), f((O) => ({
7128
7144
  ...O,
@@ -7139,11 +7155,11 @@ const t1 = {
7139
7155
  E === "" || E === void 0 || E === null ? (f(t1), I(!0)) : I(!0, E);
7140
7156
  },
7141
7157
  [I]
7142
- ), V = async (E) => {
7158
+ ), _ = async (E) => {
7143
7159
  E && w !== null && w > b.length && await Z(!1);
7144
7160
  }, D = G(
7145
7161
  (E) => {
7146
- E && !g && (R([]), f(t1), Z(!0)), h == null || h(E);
7162
+ E && !g && (M([]), f(t1), Z(!0)), h == null || h(E);
7147
7163
  },
7148
7164
  // eslint-disable-next-line
7149
7165
  [g]
@@ -7163,7 +7179,7 @@ const t1 = {
7163
7179
  onSearchChange: H,
7164
7180
  onDropdownVisibleChange: D,
7165
7181
  scrollThresholdValue: c,
7166
- onScrollToEnd: V,
7182
+ onScrollToEnd: _,
7167
7183
  loadOnClosedState: g,
7168
7184
  disabled: l,
7169
7185
  extraOptions: a,
@@ -7171,16 +7187,16 @@ const t1 = {
7171
7187
  optionRender: u,
7172
7188
  dropdownRender: p,
7173
7189
  readOnly: N,
7174
- clearable: M
7190
+ clearable: R
7175
7191
  };
7176
7192
  return he(k, () => ({
7177
7193
  refetchOptions: async () => {
7178
7194
  f(t1), await Z(!0);
7179
7195
  }
7180
- })), d ? /* @__PURE__ */ r(E1, { ...T, onChange: t, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(E1, { ...T, onChange: t, value: s }) });
7196
+ })), d ? /* @__PURE__ */ r(H1, { ...T, onChange: t, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(H1, { ...T, onChange: t, value: s }) });
7181
7197
  }
7182
7198
  );
7183
- var g1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(g1 || {});
7199
+ var C1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(C1 || {});
7184
7200
  const B5 = ({ size: i = 30, color: e = "#004ed7" }) => {
7185
7201
  const t = `no-repeat linear-gradient(${e}
7186
7202
  calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
@@ -7198,7 +7214,7 @@ function Z5() {
7198
7214
  }
7199
7215
  }
7200
7216
  const V1 = {};
7201
- function N1() {
7217
+ function x1() {
7202
7218
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
7203
7219
  e[t] = arguments[t];
7204
7220
  z(e[0]) && V1[e[0]] || (z(e[0]) && (V1[e[0]] = /* @__PURE__ */ new Date()), Z5(...e));
@@ -7214,9 +7230,9 @@ const q1 = (i, e) => () => {
7214
7230
  };
7215
7231
  i.on("initialized", t);
7216
7232
  }
7217
- }, _1 = (i, e, t) => {
7233
+ }, I1 = (i, e, t) => {
7218
7234
  i.loadNamespaces(e, q1(i, t));
7219
- }, I1 = (i, e, t, s) => {
7235
+ }, O1 = (i, e, t, s) => {
7220
7236
  z(t) && (t = [t]), t.forEach((n) => {
7221
7237
  i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
7222
7238
  }), i.loadLanguages(e, q1(i, s));
@@ -7231,7 +7247,7 @@ const q1 = (i, e) => () => {
7231
7247
  return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(l, i)));
7232
7248
  }, j5 = function(i, e) {
7233
7249
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
7234
- return !e.languages || !e.languages.length ? (N1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
7250
+ return !e.languages || !e.languages.length ? (x1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
7235
7251
  lng: t.lng,
7236
7252
  precheck: (n, l) => {
7237
7253
  if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !l(n.isLanguageChangingTo, i)) return !1;
@@ -7259,7 +7275,7 @@ const q1 = (i, e) => () => {
7259
7275
  "&#x2F;": "/",
7260
7276
  "&#47;": "/"
7261
7277
  }, K5 = (i) => G5[i], P5 = (i) => i.replace(T5, K5);
7262
- let x1 = {
7278
+ let R1 = {
7263
7279
  bindI18n: "languageChanged",
7264
7280
  bindI18nStore: "",
7265
7281
  transEmptyNodeValue: "",
@@ -7271,11 +7287,11 @@ let x1 = {
7271
7287
  };
7272
7288
  const $5 = function() {
7273
7289
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7274
- x1 = {
7275
- ...x1,
7290
+ R1 = {
7291
+ ...R1,
7276
7292
  ...i
7277
7293
  };
7278
- }, F5 = () => x1;
7294
+ }, F5 = () => R1;
7279
7295
  let X1;
7280
7296
  const Y5 = (i) => {
7281
7297
  X1 = i;
@@ -7284,10 +7300,10 @@ const Y5 = (i) => {
7284
7300
  init(i) {
7285
7301
  $5(i.options.react), Y5(i);
7286
7302
  }
7287
- }, J5 = r1();
7303
+ }, J5 = o1();
7288
7304
  class Q5 {
7289
7305
  constructor() {
7290
- y1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
7306
+ b1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
7291
7307
  this.usedNamespaces = {};
7292
7308
  }
7293
7309
  addUsedNamespaces(e) {
@@ -7297,7 +7313,7 @@ class Q5 {
7297
7313
  }
7298
7314
  }
7299
7315
  const q5 = (i, e) => {
7300
- const t = l1();
7316
+ const t = a1();
7301
7317
  return K(() => {
7302
7318
  t.current = i;
7303
7319
  }, [i, e]), t.current;
@@ -7308,13 +7324,13 @@ const q5 = (i, e) => {
7308
7324
  } = e, {
7309
7325
  i18n: s,
7310
7326
  defaultNS: n
7311
- } = a1(J5) || {}, l = t || s || U5();
7327
+ } = h1(J5) || {}, l = t || s || U5();
7312
7328
  if (l && !l.reportNamespaces && (l.reportNamespaces = new Q5()), !l) {
7313
- N1("You will need to pass in an i18next instance by using initReactI18next");
7329
+ x1("You will need to pass in an i18next instance by using initReactI18next");
7314
7330
  const f = (x, w) => z(w) ? w : D5(w) && z(w.defaultValue) ? w.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, y = [f, {}, !1];
7315
7331
  return y.t = f, y.i18n = {}, y.ready = !1, y;
7316
7332
  }
7317
- l.options.react && l.options.react.wait !== void 0 && N1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
7333
+ l.options.react && l.options.react.wait !== void 0 && x1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
7318
7334
  const c = {
7319
7335
  ...F5(),
7320
7336
  ...l.options.react,
@@ -7325,33 +7341,33 @@ const q5 = (i, e) => {
7325
7341
  } = c;
7326
7342
  let g = i;
7327
7343
  g = z(g) ? [g] : g || ["translation"], l.reportNamespaces.addUsedNamespaces && l.reportNamespaces.addUsedNamespaces(g);
7328
- const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => j5(f, l, c)), h = X5(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => ee(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [N, M] = W(u);
7344
+ const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => j5(f, l, c)), h = X5(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => ee(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [N, R] = W(u);
7329
7345
  let k = g.join();
7330
7346
  e.lng && (k = `${e.lng}${k}`);
7331
- const b = q5(k), R = l1(!0);
7347
+ const b = q5(k), M = a1(!0);
7332
7348
  K(() => {
7333
7349
  const {
7334
7350
  bindI18n: f,
7335
7351
  bindI18nStore: y
7336
7352
  } = c;
7337
- R.current = !0, !a && !o && (e.lng ? I1(l, e.lng, g, () => {
7338
- R.current && M(p);
7339
- }) : _1(l, g, () => {
7340
- R.current && M(p);
7341
- })), a && b && b !== k && R.current && M(p);
7353
+ M.current = !0, !a && !o && (e.lng ? O1(l, e.lng, g, () => {
7354
+ M.current && R(p);
7355
+ }) : I1(l, g, () => {
7356
+ M.current && R(p);
7357
+ })), a && b && b !== k && M.current && R(p);
7342
7358
  const x = () => {
7343
- R.current && M(p);
7359
+ M.current && R(p);
7344
7360
  };
7345
7361
  return f && l && l.on(f, x), y && l && l.store.on(y, x), () => {
7346
- R.current = !1, f && l && f.split(" ").forEach((w) => l.off(w, x)), y && l && y.split(" ").forEach((w) => l.store.off(w, x));
7362
+ M.current = !1, f && l && f.split(" ").forEach((w) => l.off(w, x)), y && l && y.split(" ").forEach((w) => l.store.off(w, x));
7347
7363
  };
7348
7364
  }, [l, k]), K(() => {
7349
- R.current && a && M(u);
7365
+ M.current && a && R(u);
7350
7366
  }, [l, d, a]);
7351
7367
  const S = [N, l, a];
7352
7368
  if (S.t = N, S.i18n = l, S.ready = a, a || !a && !o) return S;
7353
7369
  throw new Promise((f) => {
7354
- e.lng ? I1(l, e.lng, g, () => f()) : _1(l, g, () => f());
7370
+ e.lng ? O1(l, e.lng, g, () => f()) : I1(l, g, () => f());
7355
7371
  });
7356
7372
  }, t3 = {
7357
7373
  type: "logger",
@@ -7368,7 +7384,7 @@ const q5 = (i, e) => {
7368
7384
  console && console[i] && console[i].apply(console, e);
7369
7385
  }
7370
7386
  };
7371
- class C1 {
7387
+ class u1 {
7372
7388
  constructor(e) {
7373
7389
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7374
7390
  this.init(e, t);
@@ -7401,17 +7417,17 @@ class C1 {
7401
7417
  return n && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
7402
7418
  }
7403
7419
  create(e) {
7404
- return new C1(this.logger, {
7420
+ return new u1(this.logger, {
7405
7421
  prefix: `${this.prefix}:${e}:`,
7406
7422
  ...this.options
7407
7423
  });
7408
7424
  }
7409
7425
  clone(e) {
7410
- return e = e || this.options, e.prefix = e.prefix || this.prefix, new C1(this.logger, e);
7426
+ return e = e || this.options, e.prefix = e.prefix || this.prefix, new u1(this.logger, e);
7411
7427
  }
7412
7428
  }
7413
- var $ = new C1();
7414
- class w1 {
7429
+ var $ = new u1();
7430
+ class m1 {
7415
7431
  constructor() {
7416
7432
  this.observers = {};
7417
7433
  }
@@ -7451,51 +7467,51 @@ const i1 = () => {
7451
7467
  i = s, e = n;
7452
7468
  });
7453
7469
  return t.resolve = i, t.reject = e, t;
7454
- }, O1 = (i) => i == null ? "" : "" + i, i3 = (i, e, t) => {
7470
+ }, S1 = (i) => i == null ? "" : "" + i, i3 = (i, e, t) => {
7455
7471
  i.forEach((s) => {
7456
7472
  e[s] && (t[s] = e[s]);
7457
7473
  });
7458
- }, s3 = /###/g, S1 = (i) => i && i.indexOf("###") > -1 ? i.replace(s3, ".") : i, A1 = (i) => !i || typeof i == "string", s1 = (i, e, t) => {
7474
+ }, s3 = /###/g, A1 = (i) => i && i.indexOf("###") > -1 ? i.replace(s3, ".") : i, B1 = (i) => !i || typeof i == "string", n1 = (i, e, t) => {
7459
7475
  const s = typeof e != "string" ? e : e.split(".");
7460
7476
  let n = 0;
7461
7477
  for (; n < s.length - 1; ) {
7462
- if (A1(i)) return {};
7463
- const l = S1(s[n]);
7478
+ if (B1(i)) return {};
7479
+ const l = A1(s[n]);
7464
7480
  !i[l] && t && (i[l] = new t()), Object.prototype.hasOwnProperty.call(i, l) ? i = i[l] : i = {}, ++n;
7465
7481
  }
7466
- return A1(i) ? {} : {
7482
+ return B1(i) ? {} : {
7467
7483
  obj: i,
7468
- k: S1(s[n])
7484
+ k: A1(s[n])
7469
7485
  };
7470
- }, B1 = (i, e, t) => {
7486
+ }, Z1 = (i, e, t) => {
7471
7487
  const {
7472
7488
  obj: s,
7473
7489
  k: n
7474
- } = s1(i, e, Object);
7490
+ } = n1(i, e, Object);
7475
7491
  if (s !== void 0 || e.length === 1) {
7476
7492
  s[n] = t;
7477
7493
  return;
7478
7494
  }
7479
- let l = e[e.length - 1], c = e.slice(0, e.length - 1), o = s1(i, c, Object);
7495
+ let l = e[e.length - 1], c = e.slice(0, e.length - 1), o = n1(i, c, Object);
7480
7496
  for (; o.obj === void 0 && c.length; )
7481
- l = `${c[c.length - 1]}.${l}`, c = c.slice(0, c.length - 1), o = s1(i, c, Object), o && o.obj && typeof o.obj[`${o.k}.${l}`] < "u" && (o.obj = void 0);
7497
+ l = `${c[c.length - 1]}.${l}`, c = c.slice(0, c.length - 1), o = n1(i, c, Object), o && o.obj && typeof o.obj[`${o.k}.${l}`] < "u" && (o.obj = void 0);
7482
7498
  o.obj[`${o.k}.${l}`] = t;
7483
7499
  }, n3 = (i, e, t, s) => {
7484
7500
  const {
7485
7501
  obj: n,
7486
7502
  k: l
7487
- } = s1(i, e, Object);
7503
+ } = n1(i, e, Object);
7488
7504
  n[l] = n[l] || [], n[l].push(t);
7489
- }, u1 = (i, e) => {
7505
+ }, p1 = (i, e) => {
7490
7506
  const {
7491
7507
  obj: t,
7492
7508
  k: s
7493
- } = s1(i, e);
7509
+ } = n1(i, e);
7494
7510
  if (t)
7495
7511
  return t[s];
7496
7512
  }, r3 = (i, e, t) => {
7497
- const s = u1(i, t);
7498
- return s !== void 0 ? s : u1(e, t);
7513
+ const s = p1(i, t);
7514
+ return s !== void 0 ? s : p1(e, t);
7499
7515
  }, te = (i, e, t) => {
7500
7516
  for (const s in e)
7501
7517
  s !== "__proto__" && s !== "constructor" && (s in i ? typeof i[s] == "string" || i[s] instanceof String || typeof e[s] == "string" || e[s] instanceof String ? t && (i[s] = e[s]) : te(i[s], e[s], t) : i[s] = e[s]);
@@ -7553,8 +7569,8 @@ const h3 = [" ", ",", "?", "!", ";"], c3 = new a3(20), d3 = (i, e, t) => {
7553
7569
  n = c;
7554
7570
  }
7555
7571
  return n;
7556
- }, p1 = (i) => i && i.indexOf("_") > 0 ? i.replace("_", "-") : i;
7557
- class Z1 extends w1 {
7572
+ }, f1 = (i) => i && i.indexOf("_") > 0 ? i.replace("_", "-") : i;
7573
+ class W1 extends m1 {
7558
7574
  constructor(e) {
7559
7575
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
7560
7576
  ns: ["translation"],
@@ -7574,7 +7590,7 @@ class Z1 extends w1 {
7574
7590
  const l = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
7575
7591
  let o;
7576
7592
  e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], s && (Array.isArray(s) ? o.push(...s) : typeof s == "string" && l ? o.push(...s.split(l)) : o.push(s)));
7577
- const d = u1(this.data, o);
7593
+ const d = p1(this.data, o);
7578
7594
  return !d && !t && !s && e.indexOf(".") > -1 && (e = o[0], t = o[1], s = o.slice(2).join(".")), d || !c || typeof s != "string" ? d : M1(this.data && this.data[e] && this.data[e][t], s, l);
7579
7595
  }
7580
7596
  addResource(e, t, s, n) {
@@ -7583,7 +7599,7 @@ class Z1 extends w1 {
7583
7599
  };
7584
7600
  const c = l.keySeparator !== void 0 ? l.keySeparator : this.options.keySeparator;
7585
7601
  let o = [e, t];
7586
- s && (o = o.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (o = e.split("."), n = t, t = o[1]), this.addNamespaces(t), B1(this.data, o, n), l.silent || this.emit("added", e, t, s, n);
7602
+ s && (o = o.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (o = e.split("."), n = t, t = o[1]), this.addNamespaces(t), Z1(this.data, o, n), l.silent || this.emit("added", e, t, s, n);
7587
7603
  }
7588
7604
  addResources(e, t, s) {
7589
7605
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -7601,11 +7617,11 @@ class Z1 extends w1 {
7601
7617
  skipCopy: !1
7602
7618
  }, o = [e, t];
7603
7619
  e.indexOf(".") > -1 && (o = e.split("."), n = s, s = t, t = o[1]), this.addNamespaces(t);
7604
- let d = u1(this.data, o) || {};
7620
+ let d = p1(this.data, o) || {};
7605
7621
  c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? te(d, s, l) : d = {
7606
7622
  ...d,
7607
7623
  ...s
7608
- }, B1(this.data, o, d), c.silent || this.emit("added", e, t, s);
7624
+ }, Z1(this.data, o, d), c.silent || this.emit("added", e, t, s);
7609
7625
  }
7610
7626
  removeResourceBundle(e, t) {
7611
7627
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -7640,8 +7656,8 @@ var ie = {
7640
7656
  }), e;
7641
7657
  }
7642
7658
  };
7643
- const W1 = {};
7644
- class f1 extends w1 {
7659
+ const j1 = {};
7660
+ class w1 extends m1 {
7645
7661
  constructor(e) {
7646
7662
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7647
7663
  super(), i3(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
@@ -7711,8 +7727,8 @@ class f1 extends w1 {
7711
7727
  }
7712
7728
  const h = this.resolve(e, t);
7713
7729
  let u = h && h.res;
7714
- const p = h && h.usedKey || c, N = h && h.exactUsedKey || c, M = Object.prototype.toString.apply(u), k = ["[object Number]", "[object Function]", "[object RegExp]"], b = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, R = !this.i18nFormat || this.i18nFormat.handleAsObject;
7715
- if (R && u && (typeof u != "string" && typeof u != "boolean" && typeof u != "number") && k.indexOf(M) < 0 && !(typeof b == "string" && Array.isArray(u))) {
7730
+ const p = h && h.usedKey || c, N = h && h.exactUsedKey || c, R = Object.prototype.toString.apply(u), k = ["[object Number]", "[object Function]", "[object RegExp]"], b = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject;
7731
+ if (M && u && (typeof u != "string" && typeof u != "boolean" && typeof u != "number") && k.indexOf(R) < 0 && !(typeof b == "string" && Array.isArray(u))) {
7716
7732
  if (!t.returnObjects && !this.options.returnObjects) {
7717
7733
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
7718
7734
  const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
@@ -7734,11 +7750,11 @@ class f1 extends w1 {
7734
7750
  }
7735
7751
  u = y;
7736
7752
  }
7737
- } else if (R && typeof b == "string" && Array.isArray(u))
7753
+ } else if (M && typeof b == "string" && Array.isArray(u))
7738
7754
  u = u.join(b), u && (u = this.extendTranslation(u, e, t, s));
7739
7755
  else {
7740
7756
  let f = !1, y = !1;
7741
- const x = t.count !== void 0 && typeof t.count != "string", w = f1.hasDefaultValue(t), B = x ? this.pluralResolver.getSuffix(g, t.count, t) : "", Z = t.ordinal && x ? this.pluralResolver.getSuffix(g, t.count, {
7757
+ const x = t.count !== void 0 && typeof t.count != "string", w = w1.hasDefaultValue(t), B = x ? this.pluralResolver.getSuffix(g, t.count, t) : "", Z = t.ordinal && x ? this.pluralResolver.getSuffix(g, t.count, {
7742
7758
  ordinal: !1
7743
7759
  }) : "", I = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), H = I && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${B}`] || t[`defaultValue${Z}`] || t.defaultValue;
7744
7760
  !this.isValidLookup(u) && w && (f = !0, u = H), this.isValidLookup(u) || (y = !0, u = c);
@@ -7826,25 +7842,25 @@ class f1 extends w1 {
7826
7842
  n = a;
7827
7843
  let h = g.namespaces;
7828
7844
  this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
7829
- const u = t.count !== void 0 && typeof t.count != "string", p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), N = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", M = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
7845
+ const u = t.count !== void 0 && typeof t.count != "string", p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), N = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", R = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
7830
7846
  h.forEach((k) => {
7831
- this.isValidLookup(s) || (o = k, !W1[`${M[0]}-${k}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (W1[`${M[0]}-${k}`] = !0, this.logger.warn(`key "${n}" for languages "${M.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), M.forEach((b) => {
7847
+ this.isValidLookup(s) || (o = k, !j1[`${R[0]}-${k}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (j1[`${R[0]}-${k}`] = !0, this.logger.warn(`key "${n}" for languages "${R.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), R.forEach((b) => {
7832
7848
  if (this.isValidLookup(s)) return;
7833
7849
  c = b;
7834
- const R = [a];
7850
+ const M = [a];
7835
7851
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
7836
- this.i18nFormat.addLookupKeys(R, a, b, k, t);
7852
+ this.i18nFormat.addLookupKeys(M, a, b, k, t);
7837
7853
  else {
7838
7854
  let f;
7839
7855
  u && (f = this.pluralResolver.getSuffix(b, t.count, t));
7840
7856
  const y = `${this.options.pluralSeparator}zero`, x = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
7841
- if (u && (R.push(a + f), t.ordinal && f.indexOf(x) === 0 && R.push(a + f.replace(x, this.options.pluralSeparator)), p && R.push(a + y)), N) {
7857
+ if (u && (M.push(a + f), t.ordinal && f.indexOf(x) === 0 && M.push(a + f.replace(x, this.options.pluralSeparator)), p && M.push(a + y)), N) {
7842
7858
  const w = `${a}${this.options.contextSeparator}${t.context}`;
7843
- R.push(w), u && (R.push(w + f), t.ordinal && f.indexOf(x) === 0 && R.push(w + f.replace(x, this.options.pluralSeparator)), p && R.push(w + y));
7859
+ M.push(w), u && (M.push(w + f), t.ordinal && f.indexOf(x) === 0 && M.push(w + f.replace(x, this.options.pluralSeparator)), p && M.push(w + y));
7844
7860
  }
7845
7861
  }
7846
7862
  let S;
7847
- for (; S = R.pop(); )
7863
+ for (; S = M.pop(); )
7848
7864
  this.isValidLookup(s) || (l = S, s = this.getResource(b, k, S, t));
7849
7865
  }));
7850
7866
  });
@@ -7887,18 +7903,18 @@ class f1 extends w1 {
7887
7903
  return !1;
7888
7904
  }
7889
7905
  }
7890
- const L1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
7891
- class j1 {
7906
+ const v1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
7907
+ class D1 {
7892
7908
  constructor(e) {
7893
7909
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
7894
7910
  }
7895
7911
  getScriptPartFromCode(e) {
7896
- if (e = p1(e), !e || e.indexOf("-") < 0) return null;
7912
+ if (e = f1(e), !e || e.indexOf("-") < 0) return null;
7897
7913
  const t = e.split("-");
7898
7914
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
7899
7915
  }
7900
7916
  getLanguagePartFromCode(e) {
7901
- if (e = p1(e), !e || e.indexOf("-") < 0) return e;
7917
+ if (e = f1(e), !e || e.indexOf("-") < 0) return e;
7902
7918
  const t = e.split("-");
7903
7919
  return this.formatLanguageCode(t[0]);
7904
7920
  }
@@ -7906,7 +7922,7 @@ class j1 {
7906
7922
  if (typeof e == "string" && e.indexOf("-") > -1) {
7907
7923
  const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
7908
7924
  let s = e.split("-");
7909
- 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] = L1(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] = L1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = L1(s[2].toLowerCase()))), s.join("-");
7925
+ 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("-");
7910
7926
  }
7911
7927
  return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
7912
7928
  }
@@ -8063,7 +8079,7 @@ let g3 = [{
8063
8079
  21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
8064
8080
  22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
8065
8081
  };
8066
- const u3 = ["v1", "v2", "v3"], p3 = ["v4"], D1 = {
8082
+ const u3 = ["v1", "v2", "v3"], p3 = ["v4"], T1 = {
8067
8083
  zero: 0,
8068
8084
  one: 1,
8069
8085
  two: 2,
@@ -8096,7 +8112,7 @@ class w3 {
8096
8112
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
8097
8113
  if (this.shouldUseIntlApi())
8098
8114
  try {
8099
- const s = p1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", l = JSON.stringify({
8115
+ const s = f1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", l = JSON.stringify({
8100
8116
  cleanedCode: s,
8101
8117
  type: n
8102
8118
  });
@@ -8123,7 +8139,7 @@ class w3 {
8123
8139
  getSuffixes(e) {
8124
8140
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
8125
8141
  const s = this.getRule(e, t);
8126
- return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, l) => D1[n] - D1[l]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
8142
+ return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, l) => T1[n] - T1[l]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
8127
8143
  }
8128
8144
  getSuffix(e, t) {
8129
8145
  let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -8141,10 +8157,10 @@ class w3 {
8141
8157
  return !u3.includes(this.options.compatibilityJSON);
8142
8158
  }
8143
8159
  }
8144
- const T1 = function(i, e, t) {
8160
+ const G1 = function(i, e, t) {
8145
8161
  let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l = r3(i, e, t);
8146
8162
  return !l && n && typeof t == "string" && (l = M1(i, t, s), l === void 0 && (l = M1(e, t, s))), l;
8147
- }, v1 = (i) => i.replace(/\$/g, "$$$$");
8163
+ }, N1 = (i) => i.replace(/\$/g, "$$$$");
8148
8164
  class m3 {
8149
8165
  constructor() {
8150
8166
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -8169,12 +8185,12 @@ class m3 {
8169
8185
  nestingPrefix: u,
8170
8186
  nestingPrefixEscaped: p,
8171
8187
  nestingSuffix: N,
8172
- nestingSuffixEscaped: M,
8188
+ nestingSuffixEscaped: R,
8173
8189
  nestingOptionsSeparator: k,
8174
8190
  maxReplaces: b,
8175
- alwaysFormat: R
8191
+ alwaysFormat: M
8176
8192
  } = e.interpolation;
8177
- this.escape = t !== void 0 ? t : l3, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = l ? Q(l) : c || "{{", this.suffix = o ? Q(o) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = u ? Q(u) : p || Q("$t("), this.nestingSuffix = N ? Q(N) : M || Q(")"), this.nestingOptionsSeparator = k || ",", this.maxReplaces = b || 1e3, this.alwaysFormat = R !== void 0 ? R : !1, this.resetRegExp();
8193
+ this.escape = t !== void 0 ? t : l3, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = l ? Q(l) : c || "{{", this.suffix = o ? Q(o) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = u ? Q(u) : p || Q("$t("), this.nestingSuffix = N ? Q(N) : R || Q(")"), this.nestingOptionsSeparator = k || ",", this.maxReplaces = b || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
8178
8194
  }
8179
8195
  reset() {
8180
8196
  this.options && this.init(this.options);
@@ -8187,28 +8203,28 @@ class m3 {
8187
8203
  let l, c, o;
8188
8204
  const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
8189
8205
  if (p.indexOf(this.formatSeparator) < 0) {
8190
- const b = T1(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
8206
+ const b = G1(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
8191
8207
  return this.alwaysFormat ? this.format(b, void 0, s, {
8192
8208
  ...n,
8193
8209
  ...t,
8194
8210
  interpolationkey: p
8195
8211
  }) : b;
8196
8212
  }
8197
- const N = p.split(this.formatSeparator), M = N.shift().trim(), k = N.join(this.formatSeparator).trim();
8198
- return this.format(T1(t, d, M, this.options.keySeparator, this.options.ignoreJSONStructure), k, s, {
8213
+ const N = p.split(this.formatSeparator), R = N.shift().trim(), k = N.join(this.formatSeparator).trim();
8214
+ return this.format(G1(t, d, R, this.options.keySeparator, this.options.ignoreJSONStructure), k, s, {
8199
8215
  ...n,
8200
8216
  ...t,
8201
- interpolationkey: M
8217
+ interpolationkey: R
8202
8218
  });
8203
8219
  };
8204
8220
  this.resetRegExp();
8205
8221
  const a = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, h = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
8206
8222
  return [{
8207
8223
  regex: this.regexpUnescape,
8208
- safeValue: (p) => v1(p)
8224
+ safeValue: (p) => N1(p)
8209
8225
  }, {
8210
8226
  regex: this.regexp,
8211
- safeValue: (p) => this.escapeValue ? v1(this.escape(p)) : v1(p)
8227
+ safeValue: (p) => this.escapeValue ? N1(this.escape(p)) : N1(p)
8212
8228
  }].forEach((p) => {
8213
8229
  for (o = 0; l = p.regex.exec(e); ) {
8214
8230
  const N = l[1].trim();
@@ -8223,9 +8239,9 @@ class m3 {
8223
8239
  continue;
8224
8240
  } else
8225
8241
  this.logger.warn(`missed to pass in variable ${N} for interpolating ${e}`), c = "";
8226
- else typeof c != "string" && !this.useRawValueToEscape && (c = O1(c));
8227
- const M = p.safeValue(c);
8228
- if (e = e.replace(l[0], M), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= l[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
8242
+ else typeof c != "string" && !this.useRawValueToEscape && (c = S1(c));
8243
+ const R = p.safeValue(c);
8244
+ if (e = e.replace(l[0], R), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= l[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
8229
8245
  break;
8230
8246
  }
8231
8247
  }), e;
@@ -8245,8 +8261,8 @@ class m3 {
8245
8261
  ...g,
8246
8262
  ...c
8247
8263
  });
8248
- } catch (M) {
8249
- return this.logger.warn(`failed parsing options string in nesting for key ${d}`, M), `${d}${a}${u}`;
8264
+ } catch (R) {
8265
+ return this.logger.warn(`failed parsing options string in nesting for key ${d}`, R), `${d}${a}${u}`;
8250
8266
  }
8251
8267
  return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, d;
8252
8268
  };
@@ -8261,7 +8277,7 @@ class m3 {
8261
8277
  n[1] = a.shift(), d = a, g = !0;
8262
8278
  }
8263
8279
  if (l = t(o.call(this, n[1].trim(), c), c), l && n[0] === e && typeof l != "string") return l;
8264
- typeof l != "string" && (l = O1(l)), l || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), l = ""), g && (l = d.reduce((a, h) => this.format(a, h, s.lng, {
8280
+ typeof l != "string" && (l = S1(l)), l || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), l = ""), g && (l = d.reduce((a, h) => this.format(a, h, s.lng, {
8265
8281
  ...s,
8266
8282
  interpolationkey: n[1].trim()
8267
8283
  }), l.trim())), e = e.replace(n[0], l), this.regexp.lastIndex = 0;
@@ -8297,7 +8313,7 @@ const k3 = (i) => {
8297
8313
  });
8298
8314
  const c = s + JSON.stringify(l);
8299
8315
  let o = e[c];
8300
- return o || (o = i(p1(s), n), e[c] = o), o(t);
8316
+ return o || (o = i(f1(s), n), e[c] = o), o(t);
8301
8317
  };
8302
8318
  };
8303
8319
  class L3 {
@@ -8383,7 +8399,7 @@ class L3 {
8383
8399
  const v3 = (i, e) => {
8384
8400
  i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
8385
8401
  };
8386
- class N3 extends w1 {
8402
+ class N3 extends m1 {
8387
8403
  constructor(e, t, s) {
8388
8404
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
8389
8405
  super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = $.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);
@@ -8518,7 +8534,7 @@ class N3 extends w1 {
8518
8534
  }
8519
8535
  }
8520
8536
  }
8521
- const G1 = () => ({
8537
+ const K1 = () => ({
8522
8538
  debug: !1,
8523
8539
  initImmediate: !0,
8524
8540
  ns: ["translation"],
@@ -8574,16 +8590,16 @@ const G1 = () => ({
8574
8590
  maxReplaces: 1e3,
8575
8591
  skipOnVariables: !0
8576
8592
  }
8577
- }), K1 = (i) => (typeof i.ns == "string" && (i.ns = [i.ns]), typeof i.fallbackLng == "string" && (i.fallbackLng = [i.fallbackLng]), typeof i.fallbackNS == "string" && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), c1 = () => {
8593
+ }), P1 = (i) => (typeof i.ns == "string" && (i.ns = [i.ns]), typeof i.fallbackLng == "string" && (i.fallbackLng = [i.fallbackLng]), typeof i.fallbackNS == "string" && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), d1 = () => {
8578
8594
  }, x3 = (i) => {
8579
8595
  Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
8580
8596
  typeof i[t] == "function" && (i[t] = i[t].bind(i));
8581
8597
  });
8582
8598
  };
8583
- class n1 extends w1 {
8599
+ class r1 extends m1 {
8584
8600
  constructor() {
8585
8601
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
8586
- if (super(), this.options = K1(e), this.services = {}, this.logger = $, this.modules = {
8602
+ if (super(), this.options = P1(e), this.services = {}, this.logger = $, this.modules = {
8587
8603
  external: []
8588
8604
  }, x3(this), t && !this.isInitialized && !e.isClone) {
8589
8605
  if (!this.options.initImmediate)
@@ -8597,11 +8613,11 @@ class n1 extends w1 {
8597
8613
  var e = this;
8598
8614
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
8599
8615
  this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (typeof t.ns == "string" ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
8600
- const n = G1();
8616
+ const n = K1();
8601
8617
  this.options = {
8602
8618
  ...n,
8603
8619
  ...this.options,
8604
- ...K1(t)
8620
+ ...P1(t)
8605
8621
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
8606
8622
  ...n.interpolation,
8607
8623
  ...this.options.interpolation
@@ -8611,8 +8627,8 @@ class n1 extends w1 {
8611
8627
  this.modules.logger ? $.init(l(this.modules.logger), this.options) : $.init(null, this.options);
8612
8628
  let a;
8613
8629
  this.modules.formatter ? a = this.modules.formatter : typeof Intl < "u" && (a = L3);
8614
- const h = new j1(this.options);
8615
- this.store = new Z1(this.options.resources, this.options);
8630
+ const h = new D1(this.options);
8631
+ this.store = new W1(this.options.resources, this.options);
8616
8632
  const u = this.services;
8617
8633
  u.logger = $, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new w3(h, {
8618
8634
  prepend: this.options.pluralSeparator,
@@ -8621,18 +8637,18 @@ class n1 extends w1 {
8621
8637
  }), a && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = l(a), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new m3(this.options), u.utils = {
8622
8638
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
8623
8639
  }, u.backendConnector = new N3(l(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
8624
- for (var N = arguments.length, M = new Array(N > 1 ? N - 1 : 0), k = 1; k < N; k++)
8625
- M[k - 1] = arguments[k];
8626
- e.emit(p, ...M);
8627
- }), this.modules.languageDetector && (u.languageDetector = l(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = l(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new f1(this.services, this.options), this.translator.on("*", function(p) {
8628
- for (var N = arguments.length, M = new Array(N > 1 ? N - 1 : 0), k = 1; k < N; k++)
8629
- M[k - 1] = arguments[k];
8630
- e.emit(p, ...M);
8640
+ for (var N = arguments.length, R = new Array(N > 1 ? N - 1 : 0), k = 1; k < N; k++)
8641
+ R[k - 1] = arguments[k];
8642
+ e.emit(p, ...R);
8643
+ }), this.modules.languageDetector && (u.languageDetector = l(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = l(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new w1(this.services, this.options), this.translator.on("*", function(p) {
8644
+ for (var N = arguments.length, R = new Array(N > 1 ? N - 1 : 0), k = 1; k < N; k++)
8645
+ R[k - 1] = arguments[k];
8646
+ e.emit(p, ...R);
8631
8647
  }), this.modules.external.forEach((p) => {
8632
8648
  p.init && p.init(this);
8633
8649
  });
8634
8650
  }
8635
- if (this.format = this.options.interpolation.format, s || (s = c1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
8651
+ if (this.format = this.options.interpolation.format, s || (s = d1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
8636
8652
  const a = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
8637
8653
  a.length > 0 && a[0] !== "dev" && (this.options.lng = a[0]);
8638
8654
  }
@@ -8655,7 +8671,7 @@ class n1 extends w1 {
8655
8671
  return this.options.resources || !this.options.initImmediate ? g() : setTimeout(g, 0), d;
8656
8672
  }
8657
8673
  loadResources(e) {
8658
- let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : c1;
8674
+ let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : d1;
8659
8675
  const n = typeof e == "string" ? e : this.language;
8660
8676
  if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
8661
8677
  if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
@@ -8673,7 +8689,7 @@ class n1 extends w1 {
8673
8689
  }
8674
8690
  reloadResources(e, t, s) {
8675
8691
  const n = i1();
8676
- return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = c1), this.services.backendConnector.reload(e, t, (l) => {
8692
+ return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = d1), this.services.backendConnector.reload(e, t, (l) => {
8677
8693
  n.resolve(), s(l);
8678
8694
  }), n;
8679
8695
  }
@@ -8778,29 +8794,29 @@ class n1 extends w1 {
8778
8794
  }
8779
8795
  dir(e) {
8780
8796
  if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
8781
- const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new j1(G1());
8797
+ const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new D1(K1());
8782
8798
  return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
8783
8799
  }
8784
8800
  static createInstance() {
8785
8801
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
8786
- return new n1(e, t);
8802
+ return new r1(e, t);
8787
8803
  }
8788
8804
  cloneInstance() {
8789
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : c1;
8805
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : d1;
8790
8806
  const s = e.forkResourceStore;
8791
8807
  s && delete e.forkResourceStore;
8792
8808
  const n = {
8793
8809
  ...this.options,
8794
8810
  ...e,
8795
8811
  isClone: !0
8796
- }, l = new n1(n);
8812
+ }, l = new r1(n);
8797
8813
  return (e.debug !== void 0 || e.prefix !== void 0) && (l.logger = l.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
8798
8814
  l[o] = this[o];
8799
8815
  }), l.services = {
8800
8816
  ...this.services
8801
8817
  }, l.services.utils = {
8802
8818
  hasLoadedNamespace: l.hasLoadedNamespace.bind(l)
8803
- }, s && (l.store = new Z1(this.store.data, n), l.services.resourceStore = l.store), l.translator = new f1(l.services, n), l.translator.on("*", function(o) {
8819
+ }, s && (l.store = new W1(this.store.data, n), l.services.resourceStore = l.store), l.translator = new w1(l.services, n), l.translator.on("*", function(o) {
8804
8820
  for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), a = 1; a < d; a++)
8805
8821
  g[a - 1] = arguments[a];
8806
8822
  l.emit(o, ...g);
@@ -8818,8 +8834,8 @@ class n1 extends w1 {
8818
8834
  };
8819
8835
  }
8820
8836
  }
8821
- const j = n1.createInstance();
8822
- j.createInstance = n1.createInstance;
8837
+ const j = r1.createInstance();
8838
+ j.createInstance = r1.createInstance;
8823
8839
  j.createInstance;
8824
8840
  j.dir;
8825
8841
  j.init;
@@ -8834,9 +8850,9 @@ j.setDefaultNamespace;
8834
8850
  j.hasLoadedNamespace;
8835
8851
  j.loadNamespaces;
8836
8852
  j.loadLanguages;
8837
- const M3 = "Archived", R3 = "Deleted", y3 = {
8838
- archived: M3,
8839
- deleted: R3
8853
+ const R3 = "Archived", M3 = "Deleted", y3 = {
8854
+ archived: R3,
8855
+ deleted: M3
8840
8856
  }, b3 = "Заархивирован", E3 = "Удалён", H3 = {
8841
8857
  archived: b3,
8842
8858
  deleted: E3
@@ -8853,7 +8869,7 @@ j.use(z5).init({
8853
8869
  }
8854
8870
  }
8855
8871
  });
8856
- const B3 = o1(
8872
+ const B3 = l1(
8857
8873
  ({
8858
8874
  fetchParams: i,
8859
8875
  mode: e = void 0,
@@ -8864,7 +8880,7 @@ const B3 = o1(
8864
8880
  onError: c,
8865
8881
  allowEmpty: o = !1
8866
8882
  }, d) => {
8867
- const { axiosPeople: g, locale: a } = a1(pe), { t: h } = e3("common", { lng: a }), [u, p] = W([]), [N, M] = W(!0), k = l1(u);
8883
+ const { axiosPeople: g, locale: a } = h1(pe), { t: h } = e3("common", { lng: a }), [u, p] = W([]), [N, R] = W(!0), k = a1(u);
8868
8884
  if (!g)
8869
8885
  throw new Error(
8870
8886
  `UserSelect requires "axiosPeople" to fetch users.
@@ -8873,10 +8889,10 @@ const B3 = o1(
8873
8889
  const b = G(
8874
8890
  (x) => {
8875
8891
  let w = "";
8876
- return x.deletedAt && (w += `[${h("deleted")}] `), x.status === g1.ARCHIVED && (w += `[${h("archived")}] `), `${w}${x.firstName} ${x.lastName}`;
8892
+ return x.deletedAt && (w += `[${h("deleted")}] `), x.status === C1.ARCHIVED && (w += `[${h("archived")}] `), `${w}${x.firstName} ${x.lastName}`;
8877
8893
  },
8878
8894
  [h]
8879
- ), R = G(
8895
+ ), M = G(
8880
8896
  async ({
8881
8897
  offset: x,
8882
8898
  limit: w,
@@ -8884,13 +8900,13 @@ const B3 = o1(
8884
8900
  }) => {
8885
8901
  var Z, I, H;
8886
8902
  try {
8887
- const V = await g.post("v1/users/search", {
8903
+ const _ = await g.post("v1/users/search", {
8888
8904
  offset: x,
8889
8905
  limit: w,
8890
8906
  search: B,
8891
8907
  ...i,
8892
8908
  includeCount: !0
8893
- }), { data: D, metadata: T } = V.data;
8909
+ }), { data: D, metadata: T } = _.data;
8894
8910
  return {
8895
8911
  options: D.map((E) => ({
8896
8912
  value: E.id,
@@ -8898,10 +8914,10 @@ const B3 = o1(
8898
8914
  })),
8899
8915
  count: T.count
8900
8916
  };
8901
- } catch (V) {
8917
+ } catch (_) {
8902
8918
  return c && c({
8903
- status: ((Z = V.response) == null ? void 0 : Z.status) ?? 500,
8904
- message: ((H = (I = V.response) == null ? void 0 : I.data) == null ? void 0 : H.message) ?? "Error while fetching options"
8919
+ status: ((Z = _.response) == null ? void 0 : Z.status) ?? 500,
8920
+ message: ((H = (I = _.response) == null ? void 0 : I.data) == null ? void 0 : H.message) ?? "Error while fetching options"
8905
8921
  }), {
8906
8922
  options: [],
8907
8923
  count: 0
@@ -8920,14 +8936,14 @@ const B3 = o1(
8920
8936
  I.length && (H = (await g.post("v1/users/search", {
8921
8937
  filters: {
8922
8938
  id: I,
8923
- status: [g1.ACTIVE, g1.ARCHIVED]
8939
+ status: [C1.ACTIVE, C1.ARCHIVED]
8924
8940
  }
8925
8941
  })).data.data);
8926
- const V = H.map((D) => ({
8942
+ const _ = H.map((D) => ({
8927
8943
  value: D.id,
8928
8944
  label: b(D)
8929
8945
  }));
8930
- return [...k.current, ...V];
8946
+ return [...k.current, ..._];
8931
8947
  } catch (I) {
8932
8948
  return c && c({
8933
8949
  status: ((w = I.response) == null ? void 0 : w.status) ?? 500,
@@ -8941,12 +8957,12 @@ const B3 = o1(
8941
8957
  k.current = u;
8942
8958
  }, [u]), K(() => {
8943
8959
  if (!n) {
8944
- M(!1);
8960
+ R(!1);
8945
8961
  return;
8946
8962
  }
8947
8963
  (async () => {
8948
8964
  const w = Array.isArray(n) ? n : [n], B = await S(w);
8949
- p(B), M(!1);
8965
+ p(B), R(!1);
8950
8966
  })();
8951
8967
  }, [S, n]);
8952
8968
  const f = G(
@@ -8955,7 +8971,7 @@ const B3 = o1(
8955
8971
  offset: w,
8956
8972
  search: B
8957
8973
  }) => {
8958
- const { count: Z, ...I } = await R({
8974
+ const { count: Z, ...I } = await M({
8959
8975
  offset: w,
8960
8976
  limit: x,
8961
8977
  search: B
@@ -8967,7 +8983,7 @@ const B3 = o1(
8967
8983
  limit: x
8968
8984
  };
8969
8985
  },
8970
- [o, R]
8986
+ [o, M]
8971
8987
  );
8972
8988
  if (N)
8973
8989
  return /* @__PURE__ */ r(B5, {});
@@ -8977,7 +8993,7 @@ const B3 = o1(
8977
8993
  disabled: s
8978
8994
  };
8979
8995
  return e ? /* @__PURE__ */ r(
8980
- H1,
8996
+ _1,
8981
8997
  {
8982
8998
  ...y,
8983
8999
  mode: e,
@@ -8988,7 +9004,7 @@ const B3 = o1(
8988
9004
  extraOptions: u
8989
9005
  }
8990
9006
  ) : /* @__PURE__ */ r(
8991
- H1,
9007
+ _1,
8992
9008
  {
8993
9009
  ...y,
8994
9010
  value: n,