react-luminus-components 1.0.0 → 1.0.2

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 (38) hide show
  1. package/README.md +350 -2
  2. package/dist/.vite/manifest.json +52 -52
  3. package/dist/{useAxios-ZEhq7C_H.js → HomeDashboard.module-BI8obEZ_.js} +30 -30
  4. package/dist/{useAxios-BU-BqYrK.mjs → HomeDashboard.module-CuVVnp4t.mjs} +220 -219
  5. package/dist/Modal-DmUjIS_Q.js +1 -0
  6. package/dist/{Modal-_FnSEPRk.mjs → Modal-DsY3WNWM.mjs} +2 -2
  7. package/dist/SimpleTooltip-CqpIzhpc.js +1 -0
  8. package/dist/{SimpleTooltip-BjlbHsKC.mjs → SimpleTooltip-vqBAkdBP.mjs} +2 -2
  9. package/dist/components/Form/CheckInput/CheckInput.d.ts +2 -1
  10. package/dist/components/Form/Container/InputContainer.d.ts +2 -1
  11. package/dist/components/Form/EmployeePicker/EmployeePicker.d.ts +2 -1
  12. package/dist/components/Form/SelectInput/SelectInput.d.ts +2 -1
  13. package/dist/components/Form/TextInput/TextInput.d.ts +2 -1
  14. package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +1 -3
  15. package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +2 -1
  16. package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +3 -2
  17. package/dist/contexts.cjs.js +1 -1
  18. package/dist/contexts.es.js +40 -38
  19. package/dist/{hasClass-3JW9Qluf.mjs → hasClass-D3KZs5y_.mjs} +1 -1
  20. package/dist/{hasClass-6m1Qq_DA.js → hasClass-DABt6TfW.js} +5 -5
  21. package/dist/hooks.cjs.js +1 -1
  22. package/dist/hooks.es.js +3 -3
  23. package/dist/layout.cjs.js +1 -1
  24. package/dist/layout.es.js +3 -3
  25. package/dist/main.cjs.js +1 -1
  26. package/dist/main.es.js +351 -351
  27. package/dist/models/prop-types/HookFormCheckInputProps.d.ts +2 -0
  28. package/dist/models/prop-types/HookFormEmployeePickerProps.d.ts +2 -0
  29. package/dist/models/prop-types/HookFormRadioInputProps.d.ts +2 -0
  30. package/dist/models/prop-types/HookFormSelectInputProps.d.ts +2 -0
  31. package/dist/models/prop-types/HookFormTextAreaInputProps.d.ts +2 -0
  32. package/dist/models/prop-types/HookFormTextInputProps.d.ts +2 -0
  33. package/dist/useConfirm-CQCMwQlb.js +1 -0
  34. package/dist/{useConfirm-DH9Pmz_w.mjs → useConfirm-Yw2xz-A-.mjs} +1 -1
  35. package/package.json +1 -1
  36. package/dist/Modal-JLnYbEat.js +0 -1
  37. package/dist/SimpleTooltip-D9shMl1R.js +0 -1
  38. package/dist/useConfirm-BazFQNRI.js +0 -1
package/dist/main.es.js CHANGED
@@ -1,20 +1,20 @@
1
- import { j as s, e as N, i as Yt, k as V, h as Lt, L as He } from "./useAxios-BU-BqYrK.mjs";
1
+ import { j as s, e as N, i as Yt, L as ve, k as V, h as Lt } from "./HomeDashboard.module-CuVVnp4t.mjs";
2
2
  import * as x from "react";
3
- import X, { useCallback as $, useState as I, useEffect as P, useRef as R, useReducer as qe, useContext as S, useMemo as ae } from "react";
4
- import { d as Be, u as At, q as Me, L as Ht, M as ie } from "./Modal-_FnSEPRk.mjs";
5
- import { T as ea } from "./Modal-_FnSEPRk.mjs";
6
- import { c as qt, d as Bt, e as Vt, f as _t, g as Gt, u as Qt, m as Xt, h as Kt, w as ve, i as Ut, O as Ve, P as he, T as Jt, j as z } from "./SimpleTooltip-BjlbHsKC.mjs";
7
- import { S as na } from "./SimpleTooltip-BjlbHsKC.mjs";
3
+ import X, { useCallback as $, useState as I, useEffect as W, useContext as S, useRef as R, useReducer as qe, useMemo as ae } from "react";
4
+ import { d as Be, u as At, q as Se, L as Ht, M as ie } from "./Modal-DsY3WNWM.mjs";
5
+ import { T as ea } from "./Modal-DsY3WNWM.mjs";
6
+ import { c as qt, d as Bt, e as Vt, f as _t, g as Gt, u as Qt, m as Xt, h as Kt, w as xe, i as Ut, O as Ve, P as he, T as Jt, j as z } from "./SimpleTooltip-vqBAkdBP.mjs";
7
+ import { S as na } from "./SimpleTooltip-vqBAkdBP.mjs";
8
8
  import { m as zt, a as _e } from "./constants-CzNy5yO3.mjs";
9
- import { h as J, n as E, B as Zt, C as en, p as tn, u as nn, x as rn, q as xe, z as on, v as an, P as ee } from "./hasClass-3JW9Qluf.mjs";
9
+ import { h as J, n as E, B as Zt, C as en, p as tn, u as nn, x as rn, q as je, z as on, v as an, P as ee } from "./hasClass-D3KZs5y_.mjs";
10
10
  const Ro = ({ fileLoader: e, fileName: t, children: n, className: r }) => {
11
11
  const o = $(async () => {
12
- var d;
12
+ var u;
13
13
  const a = await e();
14
14
  if (!a)
15
15
  return;
16
16
  const i = window.URL.createObjectURL(new Blob([a])), c = document.createElement("a");
17
- c.href = i, c.setAttribute("download", t), document.body.appendChild(c), c.click(), (d = c.parentNode) == null || d.removeChild(c);
17
+ c.href = i, c.setAttribute("download", t), document.body.appendChild(c), c.click(), (u = c.parentNode) == null || u.removeChild(c);
18
18
  }, [e, t]);
19
19
  return /* @__PURE__ */ s.jsx("button", { type: "button", className: `btn btn-outline-primary ${r ?? ""}`, onClick: o, children: n });
20
20
  };
@@ -45,8 +45,8 @@ function de() {
45
45
  return cn;
46
46
  }
47
47
  function oe(e, t) {
48
- var c, d, u, h;
49
- const n = de(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((d = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : d.weekStartsOn) ?? n.weekStartsOn ?? ((h = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : h.weekStartsOn) ?? 0, o = A(e), a = o.getDay(), i = (a < r ? 7 : 0) + a - r;
48
+ var c, u, l, h;
49
+ const n = de(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((u = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? n.weekStartsOn ?? ((h = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : h.weekStartsOn) ?? 0, o = A(e), a = o.getDay(), i = (a < r ? 7 : 0) + a - r;
50
50
  return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
51
51
  }
52
52
  function ce(e) {
@@ -60,11 +60,11 @@ function Ge(e) {
60
60
  const i = ce(a);
61
61
  return t.getTime() >= o.getTime() ? n + 1 : t.getTime() >= i.getTime() ? n : n - 1;
62
62
  }
63
- function Se(e) {
63
+ function Oe(e) {
64
64
  const t = A(e);
65
65
  return t.setHours(0, 0, 0, 0), t;
66
66
  }
67
- function Oe(e) {
67
+ function Ee(e) {
68
68
  const t = A(e), n = new Date(
69
69
  Date.UTC(
70
70
  t.getFullYear(),
@@ -79,7 +79,7 @@ function Oe(e) {
79
79
  return n.setUTCFullYear(t.getFullYear()), +e - +n;
80
80
  }
81
81
  function ln(e, t) {
82
- const n = Se(e), r = Se(t), o = +n - Oe(n), a = +r - Oe(r);
82
+ const n = Oe(e), r = Oe(t), o = +n - Ee(n), a = +r - Ee(r);
83
83
  return Math.round((o - a) / zt);
84
84
  }
85
85
  function un(e) {
@@ -379,17 +379,17 @@ function re(e) {
379
379
  const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(o);
380
380
  if (!a)
381
381
  return null;
382
- const i = a[0], c = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(c) ? On(c, (l) => l.test(i)) : (
382
+ const i = a[0], c = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(c) ? On(c, (d) => d.test(i)) : (
383
383
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
384
- Sn(c, (l) => l.test(i))
384
+ Sn(c, (d) => d.test(i))
385
385
  );
386
- let u;
387
- u = e.valueCallback ? e.valueCallback(d) : d, u = n.valueCallback ? (
386
+ let l;
387
+ l = e.valueCallback ? e.valueCallback(u) : u, l = n.valueCallback ? (
388
388
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
389
- n.valueCallback(u)
390
- ) : u;
389
+ n.valueCallback(l)
390
+ ) : l;
391
391
  const h = t.slice(i.length);
392
- return { value: u, rest: h };
392
+ return { value: l, rest: h };
393
393
  };
394
394
  }
395
395
  function Sn(e, t) {
@@ -416,7 +416,7 @@ function En(e) {
416
416
  return { value: i, rest: c };
417
417
  };
418
418
  }
419
- const Tn = /^(\d+)(th|st|nd|rd)?/i, Pn = /\d+/i, Wn = {
419
+ const Tn = /^(\d+)(th|st|nd|rd)?/i, Wn = /\d+/i, Pn = {
420
420
  narrow: /^(b|a)/i,
421
421
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
422
422
  wide: /^(before christ|before common era|anno domini|common era)/i
@@ -486,11 +486,11 @@ const Tn = /^(\d+)(th|st|nd|rd)?/i, Pn = /\d+/i, Wn = {
486
486
  }, _n = {
487
487
  ordinalNumber: En({
488
488
  matchPattern: Tn,
489
- parsePattern: Pn,
489
+ parsePattern: Wn,
490
490
  valueCallback: (e) => parseInt(e, 10)
491
491
  }),
492
492
  era: re({
493
- matchPatterns: Wn,
493
+ matchPatterns: Pn,
494
494
  defaultMatchWidth: "wide",
495
495
  parsePatterns: In,
496
496
  defaultParseWidth: "any"
@@ -541,17 +541,17 @@ function Xn(e) {
541
541
  return Math.round(n / _e) + 1;
542
542
  }
543
543
  function Qe(e, t) {
544
- var h, l, f, m;
545
- const n = A(e), r = n.getFullYear(), o = de(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (h = t == null ? void 0 : t.locale) == null ? void 0 : h.options) == null ? void 0 : l.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((m = (f = o.locale) == null ? void 0 : f.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, i = _(e, 0);
544
+ var h, d, f, m;
545
+ const n = A(e), r = n.getFullYear(), o = de(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (h = t == null ? void 0 : t.locale) == null ? void 0 : h.options) == null ? void 0 : d.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((m = (f = o.locale) == null ? void 0 : f.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, i = _(e, 0);
546
546
  i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
547
- const c = oe(i, t), d = _(e, 0);
548
- d.setFullYear(r, 0, a), d.setHours(0, 0, 0, 0);
549
- const u = oe(d, t);
550
- return n.getTime() >= c.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
547
+ const c = oe(i, t), u = _(e, 0);
548
+ u.setFullYear(r, 0, a), u.setHours(0, 0, 0, 0);
549
+ const l = oe(u, t);
550
+ return n.getTime() >= c.getTime() ? r + 1 : n.getTime() >= l.getTime() ? r : r - 1;
551
551
  }
552
552
  function Kn(e, t) {
553
- var c, d, u, h;
554
- const n = de(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((h = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, o = Qe(e, t), a = _(e, 0);
553
+ var c, u, l, h;
554
+ const n = de(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((h = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, o = Qe(e, t), a = _(e, 0);
555
555
  return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), oe(a, t);
556
556
  }
557
557
  function Un(e, t) {
@@ -625,7 +625,7 @@ const Q = {
625
625
  afternoon: "afternoon",
626
626
  evening: "evening",
627
627
  night: "night"
628
- }, Ee = {
628
+ }, Te = {
629
629
  // Era
630
630
  G: function(e, t, n) {
631
631
  const r = e.getFullYear() > 0 ? 1 : 0;
@@ -1083,7 +1083,7 @@ const Q = {
1083
1083
  case "O":
1084
1084
  case "OO":
1085
1085
  case "OOO":
1086
- return "GMT" + Te(r, ":");
1086
+ return "GMT" + We(r, ":");
1087
1087
  case "OOOO":
1088
1088
  default:
1089
1089
  return "GMT" + U(r, ":");
@@ -1096,7 +1096,7 @@ const Q = {
1096
1096
  case "z":
1097
1097
  case "zz":
1098
1098
  case "zzz":
1099
- return "GMT" + Te(r, ":");
1099
+ return "GMT" + We(r, ":");
1100
1100
  case "zzzz":
1101
1101
  default:
1102
1102
  return "GMT" + U(r, ":");
@@ -1113,7 +1113,7 @@ const Q = {
1113
1113
  return k(r, t.length);
1114
1114
  }
1115
1115
  };
1116
- function Te(e, t = "") {
1116
+ function We(e, t = "") {
1117
1117
  const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), a = r % 60;
1118
1118
  return a === 0 ? n + String(o) : n + String(o) + t + k(a, 2);
1119
1119
  }
@@ -1124,7 +1124,7 @@ function U(e, t = "") {
1124
1124
  const n = e > 0 ? "-" : "+", r = Math.abs(e), o = k(Math.trunc(r / 60), 2), a = k(r % 60, 2);
1125
1125
  return n + o + t + a;
1126
1126
  }
1127
- const We = (e, t) => {
1127
+ const Ie = (e, t) => {
1128
1128
  switch (e) {
1129
1129
  case "P":
1130
1130
  return t.date({ width: "short" });
@@ -1151,7 +1151,7 @@ const We = (e, t) => {
1151
1151
  }, Jn = (e, t) => {
1152
1152
  const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
1153
1153
  if (!o)
1154
- return We(e, t);
1154
+ return Ie(e, t);
1155
1155
  let a;
1156
1156
  switch (r) {
1157
1157
  case "P":
@@ -1168,7 +1168,7 @@ const We = (e, t) => {
1168
1168
  a = t.dateTime({ width: "full" });
1169
1169
  break;
1170
1170
  }
1171
- return a.replace("{{date}}", We(r, t)).replace("{{time}}", Xe(o, t));
1171
+ return a.replace("{{date}}", Ie(r, t)).replace("{{time}}", Xe(o, t));
1172
1172
  }, zn = {
1173
1173
  p: Xe,
1174
1174
  P: Jn
@@ -1190,11 +1190,11 @@ function ar(e, t, n) {
1190
1190
  }
1191
1191
  const sr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ir = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, cr = /^'([^]*?)'?$/, lr = /''/g, ur = /[a-zA-Z]/;
1192
1192
  function dr(e, t, n) {
1193
- var h, l, f, m, w, y, b, j;
1194
- const r = de(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Gn, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((l = (h = n == null ? void 0 : n.locale) == null ? void 0 : h.options) == null ? void 0 : l.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((m = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((y = (w = n == null ? void 0 : n.locale) == null ? void 0 : w.options) == null ? void 0 : y.weekStartsOn) ?? r.weekStartsOn ?? ((j = (b = r.locale) == null ? void 0 : b.options) == null ? void 0 : j.weekStartsOn) ?? 0, c = A(e);
1193
+ var h, d, f, m, w, y, b, j;
1194
+ const r = de(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Gn, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (h = n == null ? void 0 : n.locale) == null ? void 0 : h.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((m = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((y = (w = n == null ? void 0 : n.locale) == null ? void 0 : w.options) == null ? void 0 : y.weekStartsOn) ?? r.weekStartsOn ?? ((j = (b = r.locale) == null ? void 0 : b.options) == null ? void 0 : j.weekStartsOn) ?? 0, c = A(e);
1195
1195
  if (!fn(c))
1196
1196
  throw new RangeError("Invalid time value");
1197
- let d = t.match(ir).map((g) => {
1197
+ let u = t.match(ir).map((g) => {
1198
1198
  const p = g[0];
1199
1199
  if (p === "p" || p === "P") {
1200
1200
  const C = zn[p];
@@ -1207,7 +1207,7 @@ function dr(e, t, n) {
1207
1207
  const p = g[0];
1208
1208
  if (p === "'")
1209
1209
  return { isToken: !1, value: fr(g) };
1210
- if (Ee[p])
1210
+ if (Te[p])
1211
1211
  return { isToken: !0, value: g };
1212
1212
  if (p.match(ur))
1213
1213
  throw new RangeError(
@@ -1215,19 +1215,19 @@ function dr(e, t, n) {
1215
1215
  );
1216
1216
  return { isToken: !1, value: g };
1217
1217
  });
1218
- o.localize.preprocessor && (d = o.localize.preprocessor(c, d));
1219
- const u = {
1218
+ o.localize.preprocessor && (u = o.localize.preprocessor(c, u));
1219
+ const l = {
1220
1220
  firstWeekContainsDate: a,
1221
1221
  weekStartsOn: i,
1222
1222
  locale: o
1223
1223
  };
1224
- return d.map((g) => {
1224
+ return u.map((g) => {
1225
1225
  if (!g.isToken)
1226
1226
  return g.value;
1227
1227
  const p = g.value;
1228
1228
  (!(n != null && n.useAdditionalWeekYearTokens) && rr(p) || !(n != null && n.useAdditionalDayOfYearTokens) && nr(p)) && or(p, t, String(e));
1229
- const C = Ee[p[0]];
1230
- return C(c, p, o.localize, u);
1229
+ const C = Te[p[0]];
1230
+ return C(c, p, o.localize, l);
1231
1231
  }).join("");
1232
1232
  }
1233
1233
  function fr(e) {
@@ -1243,11 +1243,11 @@ const Yo = ({ month: e, onChangeMonth: t, locale: n }) => {
1243
1243
  /* @__PURE__ */ s.jsx("div", { children: dr(e, "LLLL yyyy", { locale: n }) }),
1244
1244
  /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: () => r(1), children: /* @__PURE__ */ s.jsx(Bt, {}) })
1245
1245
  ] });
1246
- }, Ie = ({ onAdd: e }) => /* @__PURE__ */ s.jsx("div", { className: N("luminus-empty-widget", Yt.widget), children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: () => e(0), children: /* @__PURE__ */ s.jsx(Vt, {}) }) }), mr = () => {
1246
+ }, Re = ({ onAdd: e }) => /* @__PURE__ */ s.jsx("div", { className: N("luminus-empty-widget", Yt.widget), children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: () => e(0), children: /* @__PURE__ */ s.jsx(Vt, {}) }) }), mr = () => {
1247
1247
  const [e, t] = I({
1248
1248
  widgets: []
1249
1249
  });
1250
- P(() => {
1250
+ W(() => {
1251
1251
  const r = localStorage.getItem("dashboardConfig");
1252
1252
  r && t(JSON.parse(r));
1253
1253
  }, []);
@@ -1255,46 +1255,46 @@ const Yo = ({ month: e, onChangeMonth: t, locale: n }) => {
1255
1255
  t(r), localStorage.setItem("dashboardConfig", JSON.stringify(r));
1256
1256
  }, []);
1257
1257
  return { dashboardConfig: e, onChangeDashboardConfig: n };
1258
- }, Lo = ({ availableWidgets: e, texts: t }) => {
1258
+ }, Lo = ({ availableWidgets: e }) => {
1259
1259
  var h;
1260
- const { dashboardConfig: n, onChangeDashboardConfig: r } = mr(), [o, a] = I(!1), i = $((l, f) => {
1260
+ const { homeDashboardTexts: t } = S(ve), { dashboardConfig: n, onChangeDashboardConfig: r } = mr(), [o, a] = I(!1), i = $((d, f) => {
1261
1261
  var m, w;
1262
- l === ((m = n.widgets) == null ? void 0 : m.length) ? r({
1262
+ d === ((m = n.widgets) == null ? void 0 : m.length) ? r({
1263
1263
  ...n,
1264
1264
  widgets: [...n.widgets, { widgetId: f, fullWidth: !1 }]
1265
1265
  }) : r({
1266
1266
  ...n,
1267
- widgets: ((w = n.widgets) == null ? void 0 : w.map((y, b) => b === l ? { widgetId: f, fullWidth: !1 } : y)) ?? []
1267
+ widgets: ((w = n.widgets) == null ? void 0 : w.map((y, b) => b === d ? { widgetId: f, fullWidth: !1 } : y)) ?? []
1268
1268
  });
1269
- }, [n, r]), c = $((l) => {
1269
+ }, [n, r]), c = $((d) => {
1270
1270
  var f, m;
1271
- ((f = n.widgets[l]) == null ? void 0 : f.widgetId) === -1 ? r({
1271
+ ((f = n.widgets[d]) == null ? void 0 : f.widgetId) === -1 ? r({
1272
1272
  ...n,
1273
- widgets: ((m = n.widgets) == null ? void 0 : m.filter((w, y) => y !== l)) ?? []
1274
- }) : i(l, -1);
1275
- }, [n, r, i]), d = $((l) => {
1273
+ widgets: ((m = n.widgets) == null ? void 0 : m.filter((w, y) => y !== d)) ?? []
1274
+ }) : i(d, -1);
1275
+ }, [n, r, i]), u = $((d) => {
1276
1276
  var f;
1277
1277
  r({
1278
1278
  ...n,
1279
- widgets: ((f = n.widgets) == null ? void 0 : f.map((m, w) => w === l ? { ...m, fullWidth: !m.fullWidth } : m)) ?? []
1279
+ widgets: ((f = n.widgets) == null ? void 0 : f.map((m, w) => w === d ? { ...m, fullWidth: !m.fullWidth } : m)) ?? []
1280
1280
  });
1281
- }, [n, r]), u = $((l, f, m) => l ? /* @__PURE__ */ s.jsxs("div", { className: N(V.widgetWrapper, {
1282
- [V.widgetEdit]: o && l.id !== -1
1281
+ }, [n, r]), l = $((d, f, m) => d ? /* @__PURE__ */ s.jsxs("div", { className: N(V.widgetWrapper, {
1282
+ [V.widgetEdit]: o && d.id !== -1
1283
1283
  }, { [V.fullWidth]: m }), children: [
1284
1284
  o && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1285
1285
  /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => c(f), className: N("icon-button", "color-danger", V.removeIcon), children: /* @__PURE__ */ s.jsx(_t, {}) }),
1286
- /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => d(f), className: N("icon-button", { "color-danger": m }, { "color-info": !m }, V.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Gt, {}) })
1286
+ /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => u(f), className: N("icon-button", { "color-danger": m }, { "color-info": !m }, V.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Gt, {}) })
1287
1287
  ] }),
1288
- l.id === -1 ? o && /* @__PURE__ */ s.jsx("div", { className: V.widgetWrapper, children: /* @__PURE__ */ s.jsx(Ie, { onAdd: (w) => i(f, w) }) }) : l.render,
1289
- l.id > -1 && o && /* @__PURE__ */ s.jsx("div", { className: V.widgetEditOverlay })
1290
- ] }, f) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [o, i, c, d]);
1288
+ d.id === -1 ? o && /* @__PURE__ */ s.jsx("div", { className: V.widgetWrapper, children: /* @__PURE__ */ s.jsx(Re, { onAdd: (w) => i(f, w) }) }) : d.render,
1289
+ d.id > -1 && o && /* @__PURE__ */ s.jsx("div", { className: V.widgetEditOverlay })
1290
+ ] }, f) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [o, i, c, u]);
1291
1291
  return /* @__PURE__ */ s.jsxs("div", { className: V.dashboard, children: [
1292
1292
  /* @__PURE__ */ s.jsx("div", { className: "mb-3 d-flex align-items-center justify-content-end", children: o ? /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => a(!1), className: "btn btn-outline-danger", children: t.dashboardEditDone }) : /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => a(!0), className: "btn btn-outline-primary", children: t.dashboardEdit }) }),
1293
1293
  /* @__PURE__ */ s.jsxs("div", { className: V.widgetsGrid, children: [
1294
- (h = n.widgets) == null ? void 0 : h.map((l, f) => u(e.find((m) => m.id === l.widgetId), f, l.fullWidth)),
1295
- o && /* @__PURE__ */ s.jsx(Ie, { onAdd: (l) => {
1294
+ (h = n.widgets) == null ? void 0 : h.map((d, f) => l(e.find((m) => m.id === d.widgetId), f, d.fullWidth)),
1295
+ o && /* @__PURE__ */ s.jsx(Re, { onAdd: (d) => {
1296
1296
  var f;
1297
- return i((f = n.widgets) == null ? void 0 : f.length, l);
1297
+ return i((f = n.widgets) == null ? void 0 : f.length, d);
1298
1298
  } })
1299
1299
  ] })
1300
1300
  ] });
@@ -1303,26 +1303,26 @@ var hr = function(e, t, n, r, o, a, i, c) {
1303
1303
  if (process.env.NODE_ENV !== "production" && t === void 0)
1304
1304
  throw new Error("invariant requires an error message argument");
1305
1305
  if (!e) {
1306
- var d;
1306
+ var u;
1307
1307
  if (t === void 0)
1308
- d = new Error(
1308
+ u = new Error(
1309
1309
  "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
1310
1310
  );
1311
1311
  else {
1312
- var u = [n, r, o, a, i, c], h = 0;
1313
- d = new Error(
1312
+ var l = [n, r, o, a, i, c], h = 0;
1313
+ u = new Error(
1314
1314
  t.replace(/%s/g, function() {
1315
- return u[h++];
1315
+ return l[h++];
1316
1316
  })
1317
- ), d.name = "Invariant Violation";
1317
+ ), u.name = "Invariant Violation";
1318
1318
  }
1319
- throw d.framesToPop = 1, d;
1319
+ throw u.framesToPop = 1, u;
1320
1320
  }
1321
1321
  }, gr = hr;
1322
- const Re = /* @__PURE__ */ Lt(gr);
1322
+ const Ye = /* @__PURE__ */ Lt(gr);
1323
1323
  function pr(e, t, n, r = !1) {
1324
1324
  const o = J(n);
1325
- P(() => {
1325
+ W(() => {
1326
1326
  const a = typeof e == "function" ? e() : e;
1327
1327
  return a.addEventListener(t, o, r), () => a.removeEventListener(t, o, r);
1328
1328
  }, [e]);
@@ -1339,7 +1339,7 @@ function br(e, t) {
1339
1339
  function yr(e) {
1340
1340
  return !e || e.trim() === "#";
1341
1341
  }
1342
- function je({
1342
+ function ke({
1343
1343
  tagName: e,
1344
1344
  disabled: t,
1345
1345
  href: n,
@@ -1348,24 +1348,24 @@ function je({
1348
1348
  role: a,
1349
1349
  onClick: i,
1350
1350
  tabIndex: c = 0,
1351
- type: d
1351
+ type: u
1352
1352
  }) {
1353
1353
  e || (n != null || r != null || o != null ? e = "a" : e = "button");
1354
- const u = {
1354
+ const l = {
1355
1355
  tagName: e
1356
1356
  };
1357
1357
  if (e === "button")
1358
1358
  return [{
1359
- type: d || "button",
1359
+ type: u || "button",
1360
1360
  disabled: t
1361
- }, u];
1361
+ }, l];
1362
1362
  const h = (f) => {
1363
1363
  if ((t || e === "a" && yr(n)) && f.preventDefault(), t) {
1364
1364
  f.stopPropagation();
1365
1365
  return;
1366
1366
  }
1367
1367
  i == null || i(f);
1368
- }, l = (f) => {
1368
+ }, d = (f) => {
1369
1369
  f.key === " " && (f.preventDefault(), h(f));
1370
1370
  };
1371
1371
  return e === "a" && (n || (n = "#"), t && (n = void 0)), [{
@@ -1379,8 +1379,8 @@ function je({
1379
1379
  "aria-disabled": t || void 0,
1380
1380
  rel: e === "a" ? o : void 0,
1381
1381
  onClick: h,
1382
- onKeyDown: l
1383
- }, u];
1382
+ onKeyDown: d
1383
+ }, l];
1384
1384
  }
1385
1385
  const Ke = /* @__PURE__ */ x.forwardRef((e, t) => {
1386
1386
  let {
@@ -1389,7 +1389,7 @@ const Ke = /* @__PURE__ */ x.forwardRef((e, t) => {
1389
1389
  } = e, o = br(e, wr);
1390
1390
  const [a, {
1391
1391
  tagName: i
1392
- }] = je(Object.assign({
1392
+ }] = ke(Object.assign({
1393
1393
  tagName: n,
1394
1394
  disabled: r
1395
1395
  }, o));
@@ -1414,7 +1414,7 @@ const Ue = /* @__PURE__ */ x.forwardRef((e, t) => {
1414
1414
  let {
1415
1415
  onKeyDown: n
1416
1416
  } = e, r = xr(e, vr);
1417
- const [o] = je(Object.assign({
1417
+ const [o] = ke(Object.assign({
1418
1418
  tagName: "a"
1419
1419
  }, r)), a = J((i) => {
1420
1420
  o.onKeyDown(i), n == null || n(i);
@@ -1439,20 +1439,20 @@ const kr = Ue, Je = /* @__PURE__ */ x.forwardRef(({
1439
1439
  disabled: a = !1,
1440
1440
  className: i,
1441
1441
  ...c
1442
- }, d) => {
1443
- const u = E(t, "btn"), [h, {
1444
- tagName: l
1445
- }] = je({
1442
+ }, u) => {
1443
+ const l = E(t, "btn"), [h, {
1444
+ tagName: d
1445
+ }] = ke({
1446
1446
  tagName: e,
1447
1447
  disabled: a,
1448
1448
  ...c
1449
- }), f = l;
1449
+ }), f = d;
1450
1450
  return /* @__PURE__ */ s.jsx(f, {
1451
1451
  ...h,
1452
1452
  ...c,
1453
- ref: d,
1453
+ ref: u,
1454
1454
  disabled: a,
1455
- className: N(i, u, o && "active", n && `${u}-${n}`, r && `${u}-${r}`, c.href && a && "disabled")
1455
+ className: N(i, l, o && "active", n && `${l}-${n}`, r && `${l}-${r}`, c.href && a && "disabled")
1456
1456
  });
1457
1457
  });
1458
1458
  Je.displayName = "Button";
@@ -1468,17 +1468,17 @@ function Dr({
1468
1468
  }) {
1469
1469
  t = E(t, "col");
1470
1470
  const o = Zt(), a = en(), i = [], c = [];
1471
- return o.forEach((d) => {
1472
- const u = r[d];
1473
- delete r[d];
1474
- let h, l, f;
1475
- typeof u == "object" && u != null ? {
1471
+ return o.forEach((u) => {
1472
+ const l = r[u];
1473
+ delete r[u];
1474
+ let h, d, f;
1475
+ typeof l == "object" && l != null ? {
1476
1476
  span: h,
1477
- offset: l,
1477
+ offset: d,
1478
1478
  order: f
1479
- } = u : h = u;
1480
- const m = d !== a ? `-${d}` : "";
1481
- h && i.push(h === !0 ? `${t}${m}` : `${t}${m}-${h}`), f != null && c.push(`order${m}-${f}`), l != null && c.push(`offset${m}-${l}`);
1479
+ } = l : h = l;
1480
+ const m = u !== a ? `-${u}` : "";
1481
+ h && i.push(h === !0 ? `${t}${m}` : `${t}${m}-${h}`), f != null && c.push(`order${m}-${f}`), d != null && c.push(`offset${m}-${d}`);
1482
1482
  }), [{
1483
1483
  ...r,
1484
1484
  className: N(n, ...i, ...c)
@@ -1510,10 +1510,10 @@ ze.displayName = "Col";
1510
1510
  const $r = ze;
1511
1511
  function Fr(e, t, n) {
1512
1512
  const r = R(e !== void 0), [o, a] = I(t), i = e !== void 0, c = r.current;
1513
- return r.current = i, !i && c && o !== t && a(t), [i ? e : o, $((...d) => {
1514
- const [u, ...h] = d;
1515
- let l = n == null ? void 0 : n(u, ...h);
1516
- return a(u), l;
1513
+ return r.current = i, !i && c && o !== t && a(t), [i ? e : o, $((...u) => {
1514
+ const [l, ...h] = u;
1515
+ let d = n == null ? void 0 : n(l, ...h);
1516
+ return a(l), d;
1517
1517
  }, [n])];
1518
1518
  }
1519
1519
  function Mr() {
@@ -1536,10 +1536,10 @@ function Ze(e = {}) {
1536
1536
  flip: a,
1537
1537
  offset: i,
1538
1538
  rootCloseEvent: c,
1539
- fixed: d = !1,
1540
- placement: u,
1539
+ fixed: u = !1,
1540
+ placement: l,
1541
1541
  popperConfig: h = {},
1542
- enableEventListeners: l = !0,
1542
+ enableEventListeners: d = !0,
1543
1543
  usePopper: f = !!t
1544
1544
  } = e, m = (t == null ? void 0 : t.show) == null ? !!e.show : t.show;
1545
1545
  m && !o.current && (o.current = !0);
@@ -1551,12 +1551,12 @@ function Ze(e = {}) {
1551
1551
  menuElement: j,
1552
1552
  toggleElement: g
1553
1553
  } = t || {}, p = Qt(g, j, Xt({
1554
- placement: u || y || "bottom-start",
1554
+ placement: l || y || "bottom-start",
1555
1555
  enabled: f,
1556
- enableEvents: l ?? m,
1556
+ enableEvents: d ?? m,
1557
1557
  offset: i,
1558
1558
  flip: a,
1559
- fixed: d,
1559
+ fixed: u,
1560
1560
  arrowElement: n,
1561
1561
  popperConfig: h
1562
1562
  })), C = Object.assign({
@@ -1581,10 +1581,10 @@ function Ze(e = {}) {
1581
1581
  disabled: !m
1582
1582
  }), [C, F];
1583
1583
  }
1584
- const Pr = {
1584
+ const Wr = {
1585
1585
  usePopper: !0
1586
1586
  };
1587
- function ke(e) {
1587
+ function Ce(e) {
1588
1588
  let {
1589
1589
  children: t
1590
1590
  } = e, n = Er(e, Or);
@@ -1593,12 +1593,12 @@ function ke(e) {
1593
1593
  children: t(r, o)
1594
1594
  });
1595
1595
  }
1596
- ke.displayName = "DropdownMenu";
1597
- ke.defaultProps = Pr;
1596
+ Ce.displayName = "DropdownMenu";
1597
+ Ce.defaultProps = Wr;
1598
1598
  const le = {
1599
1599
  prefix: String(Math.round(Math.random() * 1e10)),
1600
1600
  current: 0
1601
- }, et = /* @__PURE__ */ X.createContext(le), Wr = /* @__PURE__ */ X.createContext(!1);
1601
+ }, et = /* @__PURE__ */ X.createContext(le), Pr = /* @__PURE__ */ X.createContext(!1);
1602
1602
  let Ir = !!(typeof window < "u" && window.document && window.document.createElement), pe = /* @__PURE__ */ new WeakMap();
1603
1603
  function Rr(e = !1) {
1604
1604
  let t = S(et), n = R(null);
@@ -1638,24 +1638,24 @@ function Br(e) {
1638
1638
  };
1639
1639
  }
1640
1640
  function Vr() {
1641
- return typeof X.useSyncExternalStore == "function" ? X.useSyncExternalStore(Br, Hr, qr) : S(Wr);
1641
+ return typeof X.useSyncExternalStore == "function" ? X.useSyncExternalStore(Br, Hr, qr) : S(Pr);
1642
1642
  }
1643
1643
  const tt = (e) => {
1644
1644
  var t;
1645
1645
  return ((t = e.getAttribute("role")) == null ? void 0 : t.toLowerCase()) === "menu";
1646
- }, Ye = () => {
1646
+ }, Le = () => {
1647
1647
  };
1648
1648
  function nt() {
1649
1649
  const e = Ar(), {
1650
1650
  show: t = !1,
1651
- toggle: n = Ye,
1651
+ toggle: n = Le,
1652
1652
  setToggle: r,
1653
1653
  menuElement: o
1654
1654
  } = S(fe) || {}, a = $((c) => {
1655
1655
  n(!t, c);
1656
1656
  }, [t, n]), i = {
1657
1657
  id: e,
1658
- ref: r || Ye,
1658
+ ref: r || Le,
1659
1659
  onClick: a,
1660
1660
  "aria-expanded": !!t
1661
1661
  };
@@ -1673,7 +1673,7 @@ function rt({
1673
1673
  });
1674
1674
  }
1675
1675
  rt.displayName = "DropdownToggle";
1676
- const _r = /* @__PURE__ */ x.createContext(null), Le = (e, t = null) => e != null ? String(e) : t || null, be = _r, ot = /* @__PURE__ */ x.createContext(null);
1676
+ const _r = /* @__PURE__ */ x.createContext(null), Ae = (e, t = null) => e != null ? String(e) : t || null, be = _r, ot = /* @__PURE__ */ x.createContext(null);
1677
1677
  ot.displayName = "NavContext";
1678
1678
  const Gr = ot, Qr = ["eventKey", "disabled", "onClick", "active", "as"];
1679
1679
  function Xr(e, t) {
@@ -1693,16 +1693,16 @@ function at({
1693
1693
  }) {
1694
1694
  const a = S(be), i = S(Gr), {
1695
1695
  activeKey: c
1696
- } = i || {}, d = Le(e, t), u = n == null && e != null ? Le(c) === d : n;
1696
+ } = i || {}, u = Ae(e, t), l = n == null && e != null ? Ae(c) === u : n;
1697
1697
  return [{
1698
- onClick: J((l) => {
1699
- r || (o == null || o(l), a && !l.isPropagationStopped() && a(d, l));
1698
+ onClick: J((d) => {
1699
+ r || (o == null || o(d), a && !d.isPropagationStopped() && a(u, d));
1700
1700
  }),
1701
1701
  "aria-disabled": r || void 0,
1702
- "aria-selected": u,
1702
+ "aria-selected": l,
1703
1703
  [Be("dropdown-item")]: ""
1704
1704
  }, {
1705
- isActive: u
1705
+ isActive: l
1706
1706
  }];
1707
1707
  }
1708
1708
  const st = /* @__PURE__ */ x.forwardRef((e, t) => {
@@ -1713,7 +1713,7 @@ const st = /* @__PURE__ */ x.forwardRef((e, t) => {
1713
1713
  active: a,
1714
1714
  as: i = Ke
1715
1715
  } = e, c = Xr(e, Qr);
1716
- const [d] = at({
1716
+ const [u] = at({
1717
1717
  key: n,
1718
1718
  href: c.href,
1719
1719
  disabled: r,
@@ -1722,10 +1722,10 @@ const st = /* @__PURE__ */ x.forwardRef((e, t) => {
1722
1722
  });
1723
1723
  return /* @__PURE__ */ s.jsx(i, Object.assign({}, c, {
1724
1724
  ref: t
1725
- }, d));
1725
+ }, u));
1726
1726
  });
1727
1727
  st.displayName = "DropdownItem";
1728
- function Ae() {
1728
+ function He() {
1729
1729
  const e = Mr(), t = R(null), n = $((r) => {
1730
1730
  t.current = r, e();
1731
1731
  }, [e]);
@@ -1741,51 +1741,51 @@ function se({
1741
1741
  placement: i = "bottom-start",
1742
1742
  children: c
1743
1743
  }) {
1744
- const d = nn(), [u, h] = Fr(t, e, r), [l, f] = Ae(), m = l.current, [w, y] = Ae(), b = w.current, j = At(u), g = R(null), p = R(!1), C = S(be), F = $((v, D, W = D == null ? void 0 : D.type) => {
1744
+ const u = nn(), [l, h] = Fr(t, e, r), [d, f] = He(), m = d.current, [w, y] = He(), b = w.current, j = At(l), g = R(null), p = R(!1), C = S(be), F = $((v, D, P = D == null ? void 0 : D.type) => {
1745
1745
  h(v, {
1746
1746
  originalEvent: D,
1747
- source: W
1747
+ source: P
1748
1748
  });
1749
1749
  }, [h]), Y = J((v, D) => {
1750
1750
  n == null || n(v, D), F(!1, D, "select"), D.isPropagationStopped() || C == null || C(v, D);
1751
1751
  }), T = ae(() => ({
1752
1752
  toggle: F,
1753
1753
  placement: i,
1754
- show: u,
1754
+ show: l,
1755
1755
  menuElement: m,
1756
1756
  toggleElement: b,
1757
1757
  setMenu: f,
1758
1758
  setToggle: y
1759
- }), [F, i, u, m, b, f, y]);
1760
- m && j && !u && (p.current = m.contains(m.ownerDocument.activeElement));
1759
+ }), [F, i, l, m, b, f, y]);
1760
+ m && j && !l && (p.current = m.contains(m.ownerDocument.activeElement));
1761
1761
  const O = J(() => {
1762
1762
  b && b.focus && b.focus();
1763
1763
  }), L = J(() => {
1764
1764
  const v = g.current;
1765
1765
  let D = a;
1766
- if (D == null && (D = l.current && tt(l.current) ? "keyboard" : !1), D === !1 || D === "keyboard" && !/^key.+$/.test(v))
1766
+ if (D == null && (D = d.current && tt(d.current) ? "keyboard" : !1), D === !1 || D === "keyboard" && !/^key.+$/.test(v))
1767
1767
  return;
1768
- const W = Me(l.current, o)[0];
1769
- W && W.focus && W.focus();
1768
+ const P = Se(d.current, o)[0];
1769
+ P && P.focus && P.focus();
1770
1770
  });
1771
- P(() => {
1772
- u ? L() : p.current && (p.current = !1, O());
1773
- }, [u, p, O, L]), P(() => {
1771
+ W(() => {
1772
+ l ? L() : p.current && (p.current = !1, O());
1773
+ }, [l, p, O, L]), W(() => {
1774
1774
  g.current = null;
1775
1775
  });
1776
1776
  const M = (v, D) => {
1777
- if (!l.current)
1777
+ if (!d.current)
1778
1778
  return null;
1779
- const W = Me(l.current, o);
1780
- let B = W.indexOf(v) + D;
1781
- return B = Math.max(0, Math.min(B, W.length)), W[B];
1779
+ const P = Se(d.current, o);
1780
+ let B = P.indexOf(v) + D;
1781
+ return B = Math.max(0, Math.min(B, P.length)), P[B];
1782
1782
  };
1783
- return pr($(() => d.document, [d]), "keydown", (v) => {
1784
- var D, W;
1783
+ return pr($(() => u.document, [u]), "keydown", (v) => {
1784
+ var D, P;
1785
1785
  const {
1786
1786
  key: B
1787
- } = v, K = v.target, $e = (D = l.current) == null ? void 0 : D.contains(K), Rt = (W = w.current) == null ? void 0 : W.contains(K);
1788
- if (/input|textarea/i.test(K.tagName) && (B === " " || B !== "Escape" && $e || B === "Escape" && K.type === "search") || !$e && !Rt || B === "Tab" && (!l.current || !u))
1787
+ } = v, K = v.target, Fe = (D = d.current) == null ? void 0 : D.contains(K), Rt = (P = w.current) == null ? void 0 : P.contains(K);
1788
+ if (/input|textarea/i.test(K.tagName) && (B === " " || B !== "Escape" && Fe || B === "Escape" && K.type === "search") || !Fe && !Rt || B === "Tab" && (!d.current || !l))
1789
1789
  return;
1790
1790
  g.current = v.type;
1791
1791
  const me = {
@@ -1799,7 +1799,7 @@ function se({
1799
1799
  return;
1800
1800
  }
1801
1801
  case "ArrowDown":
1802
- if (v.preventDefault(), !u)
1802
+ if (v.preventDefault(), !l)
1803
1803
  h(!0, me);
1804
1804
  else {
1805
1805
  const H = M(K, 1);
@@ -1808,8 +1808,8 @@ function se({
1808
1808
  return;
1809
1809
  case "Tab":
1810
1810
  rn(K.ownerDocument, "keyup", (H) => {
1811
- var Fe;
1812
- (H.key === "Tab" && !H.target || !((Fe = l.current) != null && Fe.contains(H.target))) && h(!1, me);
1811
+ var Me;
1812
+ (H.key === "Tab" && !H.target || !((Me = d.current) != null && Me.contains(H.target))) && h(!1, me);
1813
1813
  }, {
1814
1814
  once: !0
1815
1815
  });
@@ -1827,7 +1827,7 @@ function se({
1827
1827
  });
1828
1828
  }
1829
1829
  se.displayName = "Dropdown";
1830
- se.Menu = ke;
1830
+ se.Menu = Ce;
1831
1831
  se.Toggle = rt;
1832
1832
  se.Item = st;
1833
1833
  const it = /* @__PURE__ */ x.createContext({});
@@ -1867,8 +1867,8 @@ const Ur = ut, dt = /* @__PURE__ */ x.forwardRef(({
1867
1867
  active: a,
1868
1868
  as: i = kr,
1869
1869
  ...c
1870
- }, d) => {
1871
- const u = E(e, "dropdown-item"), [h, l] = at({
1870
+ }, u) => {
1871
+ const l = E(e, "dropdown-item"), [h, d] = at({
1872
1872
  key: n,
1873
1873
  href: c.href,
1874
1874
  disabled: r,
@@ -1878,8 +1878,8 @@ const Ur = ut, dt = /* @__PURE__ */ x.forwardRef(({
1878
1878
  return /* @__PURE__ */ s.jsx(i, {
1879
1879
  ...c,
1880
1880
  ...h,
1881
- ref: d,
1882
- className: N(t, u, l.isActive && "active", r && "disabled")
1881
+ ref: u,
1882
+ className: N(t, l, d.isActive && "active", r && "disabled")
1883
1883
  });
1884
1884
  });
1885
1885
  dt.displayName = "DropdownItem";
@@ -1903,14 +1903,14 @@ function pt(e, t) {
1903
1903
  if (process.env.NODE_ENV === "production")
1904
1904
  return e;
1905
1905
  const n = $((r) => {
1906
- r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? Re(!1, `${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : Re(!1));
1906
+ r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? Ye(!1, `${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : Ye(!1));
1907
1907
  }, [t]);
1908
- return xe(n, e);
1908
+ return je(n, e);
1909
1909
  }
1910
1910
  function wt(e, t, n) {
1911
- const r = n ? "top-end" : "top-start", o = n ? "top-start" : "top-end", a = n ? "bottom-end" : "bottom-start", i = n ? "bottom-start" : "bottom-end", c = n ? "right-start" : "left-start", d = n ? "right-end" : "left-end", u = n ? "left-start" : "right-start", h = n ? "left-end" : "right-end";
1912
- let l = e ? i : a;
1913
- return t === "up" ? l = e ? o : r : t === "end" ? l = e ? h : u : t === "start" ? l = e ? d : c : t === "down-centered" ? l = "bottom" : t === "up-centered" && (l = "top"), l;
1911
+ const r = n ? "top-end" : "top-start", o = n ? "top-start" : "top-end", a = n ? "bottom-end" : "bottom-start", i = n ? "bottom-start" : "bottom-end", c = n ? "right-start" : "left-start", u = n ? "right-end" : "left-end", l = n ? "left-start" : "right-start", h = n ? "left-end" : "right-end";
1912
+ let d = e ? i : a;
1913
+ return t === "up" ? d = e ? o : r : t === "end" ? d = e ? h : l : t === "start" ? d = e ? u : c : t === "down-centered" ? d = "bottom" : t === "up-centered" && (d = "top"), d;
1914
1914
  }
1915
1915
  const bt = /* @__PURE__ */ x.forwardRef(({
1916
1916
  bsPrefix: e,
@@ -1922,10 +1922,10 @@ const bt = /* @__PURE__ */ x.forwardRef(({
1922
1922
  renderOnMount: i,
1923
1923
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
1924
1924
  as: c = "div",
1925
- popperConfig: d,
1926
- variant: u,
1925
+ popperConfig: u,
1926
+ variant: l,
1927
1927
  ...h
1928
- }, l) => {
1928
+ }, d) => {
1929
1929
  let f = !1;
1930
1930
  const m = S(Zr), w = E(e, "dropdown-menu"), {
1931
1931
  align: y,
@@ -1937,9 +1937,9 @@ const bt = /* @__PURE__ */ x.forwardRef(({
1937
1937
  if (n)
1938
1938
  if (typeof n == "object") {
1939
1939
  const v = Object.keys(n);
1940
- if (process.env.NODE_ENV !== "production" && ve(v.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), v.length) {
1941
- const D = v[0], W = n[D];
1942
- f = W === "start", p.push(`${w}-${D}-${W}`);
1940
+ if (process.env.NODE_ENV !== "production" && xe(v.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), v.length) {
1941
+ const D = v[0], P = n[D];
1942
+ f = P === "start", p.push(`${w}-${D}-${P}`);
1943
1943
  }
1944
1944
  } else
1945
1945
  n === "end" && (f = !0);
@@ -1954,10 +1954,10 @@ const bt = /* @__PURE__ */ x.forwardRef(({
1954
1954
  show: a,
1955
1955
  usePopper: !m && p.length === 0,
1956
1956
  offset: [0, 2],
1957
- popperConfig: d,
1957
+ popperConfig: u,
1958
1958
  placement: C
1959
1959
  });
1960
- if (F.ref = xe(pt(l, "DropdownMenu"), F.ref), on(() => {
1960
+ if (F.ref = je(pt(d, "DropdownMenu"), F.ref), on(() => {
1961
1961
  O && (T == null || T.update());
1962
1962
  }, [O]), !Y && !i && !g)
1963
1963
  return null;
@@ -1973,7 +1973,7 @@ const bt = /* @__PURE__ */ x.forwardRef(({
1973
1973
  ...(p.length || m) && {
1974
1974
  "data-bs-popper": "static"
1975
1975
  },
1976
- className: N(t, w, O && "show", f && `${w}-end`, u && `${w}-${u}`, ...p)
1976
+ className: N(t, w, O && "show", f && `${w}-end`, l && `${w}-${l}`, ...p)
1977
1977
  });
1978
1978
  });
1979
1979
  bt.displayName = "DropdownMenu";
@@ -1986,12 +1986,12 @@ const eo = bt, yt = /* @__PURE__ */ x.forwardRef(({
1986
1986
  as: o = Cr,
1987
1987
  ...a
1988
1988
  }, i) => {
1989
- const c = E(e, "dropdown-toggle"), d = S(fe);
1989
+ const c = E(e, "dropdown-toggle"), u = S(fe);
1990
1990
  r !== void 0 && (a.bsPrefix = r);
1991
- const [u] = nt();
1992
- return u.ref = xe(u.ref, pt(i, "DropdownToggle")), /* @__PURE__ */ s.jsx(o, {
1993
- className: N(n, c, t && `${c}-split`, (d == null ? void 0 : d.show) && "show"),
1994
- ...u,
1991
+ const [l] = nt();
1992
+ return l.ref = je(l.ref, pt(i, "DropdownToggle")), /* @__PURE__ */ s.jsx(o, {
1993
+ className: N(n, c, t && `${c}-split`, (u == null ? void 0 : u.show) && "show"),
1994
+ ...l,
1995
1995
  ...a
1996
1996
  });
1997
1997
  });
@@ -2004,18 +2004,18 @@ const to = yt, vt = /* @__PURE__ */ x.forwardRef((e, t) => {
2004
2004
  className: a,
2005
2005
  align: i = "start",
2006
2006
  onSelect: c,
2007
- onToggle: d,
2008
- focusFirstItemOnShow: u,
2007
+ onToggle: u,
2008
+ focusFirstItemOnShow: l,
2009
2009
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2010
2010
  as: h = "div",
2011
- navbar: l,
2011
+ navbar: d,
2012
2012
  autoClose: f = !0,
2013
2013
  ...m
2014
2014
  } = Ut(e, {
2015
2015
  show: "onToggle"
2016
2016
  }), w = S(ht), y = E(n, "dropdown"), b = an(), j = (T) => f === !1 ? T === "click" : f === "inside" ? T !== "rootClose" : f === "outside" ? T !== "select" : !0, g = J((T, O) => {
2017
2017
  var L, M;
2018
- !((L = O.originalEvent) == null || (M = L.target) == null) && M.classList.contains("dropdown-toggle") && O.source === "mousedown" || (O.originalEvent.currentTarget === document && (O.source !== "keydown" || O.originalEvent.key === "Escape") && (O.source = "rootClose"), j(O.source) && (d == null || d(T, O)));
2018
+ !((L = O.originalEvent) == null || (M = L.target) == null) && M.classList.contains("dropdown-toggle") && O.source === "mousedown" || (O.originalEvent.currentTarget === document && (O.source !== "keydown" || O.originalEvent.key === "Escape") && (O.source = "rootClose"), j(O.source) && (u == null || u(T, O)));
2019
2019
  }), C = wt(i === "end", r, b), F = ae(() => ({
2020
2020
  align: i,
2021
2021
  drop: r,
@@ -2035,7 +2035,7 @@ const to = yt, vt = /* @__PURE__ */ x.forwardRef((e, t) => {
2035
2035
  show: o,
2036
2036
  onSelect: c,
2037
2037
  onToggle: g,
2038
- focusFirstItemOnShow: u,
2038
+ focusFirstItemOnShow: l,
2039
2039
  itemSelector: `.${y}-item:not(.disabled):not(:disabled)`,
2040
2040
  children: w ? m.children : /* @__PURE__ */ s.jsx(h, {
2041
2041
  ...m,
@@ -2063,7 +2063,7 @@ const we = Object.assign(vt, {
2063
2063
  /** Display feedback as a tooltip. */
2064
2064
  tooltip: ee.bool,
2065
2065
  as: ee.elementType
2066
- }, Ce = /* @__PURE__ */ x.forwardRef(
2066
+ }, Ne = /* @__PURE__ */ x.forwardRef(
2067
2067
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2068
2068
  ({
2069
2069
  as: e = "div",
@@ -2077,9 +2077,9 @@ const we = Object.assign(vt, {
2077
2077
  className: N(t, `${n}-${r ? "tooltip" : "feedback"}`)
2078
2078
  })
2079
2079
  );
2080
- Ce.displayName = "Feedback";
2081
- Ce.propTypes = no;
2082
- const xt = Ce, ro = /* @__PURE__ */ x.createContext({}), G = ro, jt = /* @__PURE__ */ x.forwardRef(({
2080
+ Ne.displayName = "Feedback";
2081
+ Ne.propTypes = no;
2082
+ const xt = Ne, ro = /* @__PURE__ */ x.createContext({}), G = ro, jt = /* @__PURE__ */ x.forwardRef(({
2083
2083
  id: e,
2084
2084
  bsPrefix: t,
2085
2085
  className: n,
@@ -2089,15 +2089,15 @@ const xt = Ce, ro = /* @__PURE__ */ x.createContext({}), G = ro, jt = /* @__PURE
2089
2089
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2090
2090
  as: i = "input",
2091
2091
  ...c
2092
- }, d) => {
2092
+ }, u) => {
2093
2093
  const {
2094
- controlId: u
2094
+ controlId: l
2095
2095
  } = S(G);
2096
2096
  return t = E(t, "form-check-input"), /* @__PURE__ */ s.jsx(i, {
2097
2097
  ...c,
2098
- ref: d,
2098
+ ref: u,
2099
2099
  type: r,
2100
- id: e || u,
2100
+ id: e || l,
2101
2101
  className: N(n, t, o && "is-valid", a && "is-invalid")
2102
2102
  });
2103
2103
  });
@@ -2128,10 +2128,10 @@ const ye = Ct, Nt = /* @__PURE__ */ x.forwardRef(({
2128
2128
  disabled: a = !1,
2129
2129
  isValid: i = !1,
2130
2130
  isInvalid: c = !1,
2131
- feedbackTooltip: d = !1,
2132
- feedback: u,
2131
+ feedbackTooltip: u = !1,
2132
+ feedback: l,
2133
2133
  feedbackType: h,
2134
- className: l,
2134
+ className: d,
2135
2135
  style: f,
2136
2136
  title: m = "",
2137
2137
  type: w = "checkbox",
@@ -2159,15 +2159,15 @@ const ye = Ct, Nt = /* @__PURE__ */ x.forwardRef(({
2159
2159
  value: F,
2160
2160
  children: /* @__PURE__ */ s.jsx("div", {
2161
2161
  style: f,
2162
- className: N(l, Y && t, r && `${t}-inline`, o && `${t}-reverse`, w === "switch" && n),
2162
+ className: N(d, Y && t, r && `${t}-inline`, o && `${t}-reverse`, w === "switch" && n),
2163
2163
  children: b || /* @__PURE__ */ s.jsxs(s.Fragment, {
2164
2164
  children: [T, Y && /* @__PURE__ */ s.jsx(ye, {
2165
2165
  title: m,
2166
2166
  children: y
2167
- }), u && /* @__PURE__ */ s.jsx(xt, {
2167
+ }), l && /* @__PURE__ */ s.jsx(xt, {
2168
2168
  type: h,
2169
- tooltip: d,
2170
- children: u
2169
+ tooltip: u,
2170
+ children: l
2171
2171
  })]
2172
2172
  })
2173
2173
  })
@@ -2186,23 +2186,23 @@ const ue = Object.assign(Nt, {
2186
2186
  className: a,
2187
2187
  isValid: i = !1,
2188
2188
  isInvalid: c = !1,
2189
- plaintext: d,
2190
- readOnly: u,
2189
+ plaintext: u,
2190
+ readOnly: l,
2191
2191
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2192
2192
  as: h = "input",
2193
- ...l
2193
+ ...d
2194
2194
  }, f) => {
2195
2195
  const {
2196
2196
  controlId: m
2197
2197
  } = S(G);
2198
- return e = E(e, "form-control"), process.env.NODE_ENV !== "production" && ve(m == null || !o, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ s.jsx(h, {
2199
- ...l,
2198
+ return e = E(e, "form-control"), process.env.NODE_ENV !== "production" && xe(m == null || !o, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ s.jsx(h, {
2199
+ ...d,
2200
2200
  type: t,
2201
2201
  size: r,
2202
2202
  ref: f,
2203
- readOnly: u,
2203
+ readOnly: l,
2204
2204
  id: o || m,
2205
- className: N(a, d ? `${e}-plaintext` : e, n && `${e}-${n}`, t === "color" && `${e}-color`, i && "is-valid", c && "is-invalid")
2205
+ className: N(a, u ? `${e}-plaintext` : e, n && `${e}-${n}`, t === "color" && `${e}-color`, i && "is-valid", c && "is-invalid")
2206
2206
  });
2207
2207
  });
2208
2208
  Dt.displayName = "FormControl";
@@ -2248,13 +2248,13 @@ const Mt = Ft, St = /* @__PURE__ */ x.forwardRef(({
2248
2248
  ...i
2249
2249
  }, c) => {
2250
2250
  const {
2251
- controlId: d
2251
+ controlId: u
2252
2252
  } = S(G);
2253
2253
  t = E(t, "form-label");
2254
- let u = "col-form-label";
2255
- typeof n == "string" && (u = `${u} ${u}-${n}`);
2256
- const h = N(o, t, r && "visually-hidden", n && u);
2257
- return process.env.NODE_ENV !== "production" && ve(d == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || d, n ? /* @__PURE__ */ s.jsx($r, {
2254
+ let l = "col-form-label";
2255
+ typeof n == "string" && (l = `${l} ${l}-${n}`);
2256
+ const h = N(o, t, r && "visually-hidden", n && l);
2257
+ return process.env.NODE_ENV !== "production" && xe(u == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || u, n ? /* @__PURE__ */ s.jsx($r, {
2258
2258
  ref: c,
2259
2259
  as: "label",
2260
2260
  className: h,
@@ -2298,16 +2298,16 @@ const io = Ot, Et = /* @__PURE__ */ x.forwardRef(({
2298
2298
  isInvalid: a = !1,
2299
2299
  id: i,
2300
2300
  ...c
2301
- }, d) => {
2301
+ }, u) => {
2302
2302
  const {
2303
- controlId: u
2303
+ controlId: l
2304
2304
  } = S(G);
2305
2305
  return e = E(e, "form-select"), /* @__PURE__ */ s.jsx("select", {
2306
2306
  ...c,
2307
2307
  size: n,
2308
- ref: d,
2308
+ ref: u,
2309
2309
  className: N(r, e, t && `${e}-${t}`, o && "is-valid", a && "is-invalid"),
2310
- id: i || u
2310
+ id: i || l
2311
2311
  });
2312
2312
  });
2313
2313
  Et.displayName = "FormSelect";
@@ -2326,16 +2326,16 @@ const co = Et, Tt = /* @__PURE__ */ x.forwardRef(
2326
2326
  }))
2327
2327
  );
2328
2328
  Tt.displayName = "FormText";
2329
- const lo = Tt, Pt = /* @__PURE__ */ x.forwardRef((e, t) => /* @__PURE__ */ s.jsx(ue, {
2329
+ const lo = Tt, Wt = /* @__PURE__ */ x.forwardRef((e, t) => /* @__PURE__ */ s.jsx(ue, {
2330
2330
  ...e,
2331
2331
  ref: t,
2332
2332
  type: "switch"
2333
2333
  }));
2334
- Pt.displayName = "Switch";
2335
- const uo = Object.assign(Pt, {
2334
+ Wt.displayName = "Switch";
2335
+ const uo = Object.assign(Wt, {
2336
2336
  Input: ue.Input,
2337
2337
  Label: ue.Label
2338
- }), Wt = /* @__PURE__ */ x.forwardRef(({
2338
+ }), Pt = /* @__PURE__ */ x.forwardRef(({
2339
2339
  bsPrefix: e,
2340
2340
  className: t,
2341
2341
  children: n,
@@ -2352,8 +2352,8 @@ const uo = Object.assign(Pt, {
2352
2352
  children: o
2353
2353
  })]
2354
2354
  })));
2355
- Wt.displayName = "FloatingLabel";
2356
- const te = Wt, fo = {
2355
+ Pt.displayName = "FloatingLabel";
2356
+ const te = Pt, fo = {
2357
2357
  /**
2358
2358
  * The Form `ref` will be forwarded to the underlying element,
2359
2359
  * which means, unless it's rendered `as` a composite component,
@@ -2369,7 +2369,7 @@ const te = Wt, fo = {
2369
2369
  */
2370
2370
  validated: ee.bool,
2371
2371
  as: ee.elementType
2372
- }, Ne = /* @__PURE__ */ x.forwardRef(({
2372
+ }, De = /* @__PURE__ */ x.forwardRef(({
2373
2373
  className: e,
2374
2374
  validated: t,
2375
2375
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
@@ -2380,9 +2380,9 @@ const te = Wt, fo = {
2380
2380
  ref: o,
2381
2381
  className: N(e, t && "was-validated")
2382
2382
  }));
2383
- Ne.displayName = "Form";
2384
- Ne.propTypes = fo;
2385
- const q = Object.assign(Ne, {
2383
+ De.displayName = "Form";
2384
+ De.propTypes = fo;
2385
+ const q = Object.assign(De, {
2386
2386
  Group: Mt,
2387
2387
  Control: oo,
2388
2388
  Floating: ao,
@@ -2406,8 +2406,8 @@ const q = Object.assign(Ne, {
2406
2406
  a = o.charCodeAt(i) + ((a << 5) - a);
2407
2407
  let c = "#";
2408
2408
  for (i = 0; i < 3; i += 1) {
2409
- const d = a >> i * 8 & 255;
2410
- c += `00${d.toString(16)}`.slice(-2);
2409
+ const u = a >> i * 8 & 255;
2410
+ c += `00${u.toString(16)}`.slice(-2);
2411
2411
  }
2412
2412
  return c;
2413
2413
  };
@@ -2431,57 +2431,57 @@ const q = Object.assign(Ne, {
2431
2431
  /* @__PURE__ */ s.jsx(we.Menu, { children: t })
2432
2432
  ] });
2433
2433
  function wo(e, t, n) {
2434
- var r = this, o = R(null), a = R(0), i = R(null), c = R([]), d = R(), u = R(), h = R(e), l = R(!0);
2434
+ var r = this, o = R(null), a = R(0), i = R(null), c = R([]), u = R(), l = R(), h = R(e), d = R(!0);
2435
2435
  h.current = e;
2436
2436
  var f = typeof window < "u", m = !t && t !== 0 && f;
2437
2437
  if (typeof e != "function")
2438
2438
  throw new TypeError("Expected a function");
2439
2439
  t = +t || 0;
2440
2440
  var w = !!(n = n || {}).leading, y = !("trailing" in n) || !!n.trailing, b = "maxWait" in n, j = "debounceOnServer" in n && !!n.debounceOnServer, g = b ? Math.max(+n.maxWait || 0, t) : null;
2441
- P(function() {
2442
- return l.current = !0, function() {
2443
- l.current = !1;
2441
+ W(function() {
2442
+ return d.current = !0, function() {
2443
+ d.current = !1;
2444
2444
  };
2445
2445
  }, []);
2446
2446
  var p = ae(function() {
2447
2447
  var C = function(M) {
2448
- var v = c.current, D = d.current;
2449
- return c.current = d.current = null, a.current = M, u.current = h.current.apply(D, v);
2448
+ var v = c.current, D = u.current;
2449
+ return c.current = u.current = null, a.current = M, l.current = h.current.apply(D, v);
2450
2450
  }, F = function(M, v) {
2451
2451
  m && cancelAnimationFrame(i.current), i.current = m ? requestAnimationFrame(M) : setTimeout(M, v);
2452
2452
  }, Y = function(M) {
2453
- if (!l.current)
2453
+ if (!d.current)
2454
2454
  return !1;
2455
2455
  var v = M - o.current;
2456
2456
  return !o.current || v >= t || v < 0 || b && M - a.current >= g;
2457
2457
  }, T = function(M) {
2458
- return i.current = null, y && c.current ? C(M) : (c.current = d.current = null, u.current);
2458
+ return i.current = null, y && c.current ? C(M) : (c.current = u.current = null, l.current);
2459
2459
  }, O = function M() {
2460
2460
  var v = Date.now();
2461
2461
  if (Y(v))
2462
2462
  return T(v);
2463
- if (l.current) {
2464
- var D = t - (v - o.current), W = b ? Math.min(D, g - (v - a.current)) : D;
2465
- F(M, W);
2463
+ if (d.current) {
2464
+ var D = t - (v - o.current), P = b ? Math.min(D, g - (v - a.current)) : D;
2465
+ F(M, P);
2466
2466
  }
2467
2467
  }, L = function() {
2468
2468
  if (f || j) {
2469
2469
  var M = Date.now(), v = Y(M);
2470
- if (c.current = [].slice.call(arguments), d.current = r, o.current = M, v) {
2471
- if (!i.current && l.current)
2472
- return a.current = o.current, F(O, t), w ? C(o.current) : u.current;
2470
+ if (c.current = [].slice.call(arguments), u.current = r, o.current = M, v) {
2471
+ if (!i.current && d.current)
2472
+ return a.current = o.current, F(O, t), w ? C(o.current) : l.current;
2473
2473
  if (b)
2474
2474
  return F(O, t), C(o.current);
2475
2475
  }
2476
- return i.current || F(O, t), u.current;
2476
+ return i.current || F(O, t), l.current;
2477
2477
  }
2478
2478
  };
2479
2479
  return L.cancel = function() {
2480
- i.current && (m ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), a.current = 0, c.current = o.current = d.current = i.current = null;
2480
+ i.current && (m ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), a.current = 0, c.current = o.current = u.current = i.current = null;
2481
2481
  }, L.isPending = function() {
2482
2482
  return !!i.current;
2483
2483
  }, L.flush = function() {
2484
- return i.current ? T(Date.now()) : u.current;
2484
+ return i.current ? T(Date.now()) : l.current;
2485
2485
  }, L;
2486
2486
  }, [w, b, t, g, y, m, f, j]);
2487
2487
  return p;
@@ -2493,74 +2493,74 @@ function yo(e, t) {
2493
2493
  return t;
2494
2494
  }
2495
2495
  function vo(e, t, n) {
2496
- var r = n && n.equalityFn || bo, o = qe(yo, e), a = o[0], i = o[1], c = wo($(function(u) {
2497
- return i(u);
2498
- }, [i]), t, n), d = R(e);
2499
- return r(d.current, e) || (c(e), d.current = e), [a, c];
2500
- }
2501
- const qo = ({ label: e, value: t, onChange: n, disabled: r, className: o, type: a }) => /* @__PURE__ */ s.jsx(q.Check, { id: `check-${e}`, type: a ?? "checkbox", label: e ?? "", checked: t, onChange: (i) => {
2502
- var c;
2503
- n && n(((c = i.target) == null ? void 0 : c.checked) ?? !1);
2504
- }, className: o ?? "", disabled: r ?? !1 }), De = ({ withoutLabel: e, label: t, children: n }) => e ? /* @__PURE__ */ s.jsx(s.Fragment, { children: n }) : /* @__PURE__ */ s.jsx(te, { label: t, children: n }), xo = ({ type: e, value: t, onChange: n, label: r, withoutLabel: o, placeholder: a, size: i, disabled: c, showClearIcon: d, clearValue: u, className: h }) => {
2505
- const l = e === "number", f = $(() => {
2496
+ var r = n && n.equalityFn || bo, o = qe(yo, e), a = o[0], i = o[1], c = wo($(function(l) {
2497
+ return i(l);
2498
+ }, [i]), t, n), u = R(e);
2499
+ return r(u.current, e) || (c(e), u.current = e), [a, c];
2500
+ }
2501
+ const qo = ({ label: e, value: t, onChange: n, hidden: r, disabled: o, className: a, type: i }) => /* @__PURE__ */ s.jsx(q.Check, { id: `check-${e}`, type: i ?? "checkbox", label: e ?? "", checked: t, onChange: (c) => {
2502
+ var u;
2503
+ n && n(((u = c.target) == null ? void 0 : u.checked) ?? !1);
2504
+ }, className: a ?? "", hidden: r ?? !1, disabled: o ?? !1 }), $e = ({ withoutLabel: e, label: t, hidden: n, children: r }) => e ? /* @__PURE__ */ s.jsx(s.Fragment, { children: r }) : /* @__PURE__ */ s.jsx(te, { label: t, hidden: n ?? !1, children: r }), xo = ({ type: e, value: t, onChange: n, label: r, withoutLabel: o, placeholder: a, size: i, hidden: c, disabled: u, showClearIcon: l, clearValue: h, className: d }) => {
2505
+ const f = e === "number", m = $(() => {
2506
2506
  if (!n)
2507
2507
  return;
2508
- const m = u ?? null;
2509
- n(l ? m ? Number(m) : null : (m == null ? void 0 : m.toString()) ?? "");
2510
- }, [u, l, n]);
2511
- return /* @__PURE__ */ s.jsxs(De, { withoutLabel: o ?? !1, label: r ?? "", children: [
2512
- /* @__PURE__ */ s.jsx(q.Control, { type: e, placeholder: a ?? r, size: i, value: t ?? "", onChange: (m) => {
2513
- var y;
2508
+ const w = h ?? null;
2509
+ n(f ? w ? Number(w) : null : (w == null ? void 0 : w.toString()) ?? "");
2510
+ }, [h, f, n]);
2511
+ return /* @__PURE__ */ s.jsxs($e, { withoutLabel: o ?? !1, label: r ?? "", hidden: c, children: [
2512
+ /* @__PURE__ */ s.jsx(q.Control, { type: e, placeholder: a ?? r, size: i, value: t ?? "", onChange: (w) => {
2513
+ var b;
2514
2514
  if (!n)
2515
2515
  return;
2516
- const w = (y = m.target) == null ? void 0 : y.value;
2517
- l && n(w ? parseInt(w, 10) : null), n(w || null);
2518
- }, className: h ?? "", disabled: c ?? !1 }),
2519
- d && t && n && !c && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: f, children: /* @__PURE__ */ s.jsx(z, {}) }) })
2516
+ const y = (b = w.target) == null ? void 0 : b.value;
2517
+ f && n(y ? parseInt(y, 10) : null), n(y || null);
2518
+ }, className: d ?? "", hidden: c, disabled: u ?? !1 }),
2519
+ l && t && n && !u && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: m, children: /* @__PURE__ */ s.jsx(z, {}) }) })
2520
2520
  ] });
2521
- }, Bo = ({ value: e, options: t, onChange: n, label: r, withoutLabel: o, isNumber: a, size: i, disabled: c, showClearIcon: d, clearValue: u, className: h }) => {
2522
- const l = $(() => {
2521
+ }, Bo = ({ value: e, options: t, onChange: n, label: r, withoutLabel: o, isNumber: a, size: i, hidden: c, disabled: u, showClearIcon: l, clearValue: h, className: d }) => {
2522
+ const f = $(() => {
2523
2523
  if (!n)
2524
2524
  return;
2525
- const f = u ?? null;
2526
- n(a ? f ? Number(f) : null : (f == null ? void 0 : f.toString()) ?? "");
2527
- }, [u, a, n]);
2528
- return /* @__PURE__ */ s.jsxs(De, { withoutLabel: o ?? !1, label: r ?? "", children: [
2529
- /* @__PURE__ */ s.jsxs(q.Select, { size: i, value: e ?? "", onChange: (f) => {
2530
- var w;
2525
+ const m = h ?? null;
2526
+ n(a ? m ? Number(m) : null : (m == null ? void 0 : m.toString()) ?? "");
2527
+ }, [h, a, n]);
2528
+ return /* @__PURE__ */ s.jsxs($e, { withoutLabel: o ?? !1, label: r ?? "", hidden: c, children: [
2529
+ /* @__PURE__ */ s.jsxs(q.Select, { size: i, value: e ?? "", onChange: (m) => {
2530
+ var y;
2531
2531
  if (!n)
2532
2532
  return;
2533
- const m = (w = f.target) == null ? void 0 : w.value;
2534
- a && n(m ? parseInt(m, 10) : null), n(m || null);
2535
- }, className: h ?? "", disabled: c ?? !1, children: [
2533
+ const w = (y = m.target) == null ? void 0 : y.value;
2534
+ a && n(w ? parseInt(w, 10) : null), n(w || null);
2535
+ }, className: d ?? "", hidden: c, disabled: u ?? !1, children: [
2536
2536
  /* @__PURE__ */ s.jsx("option", { value: "" }),
2537
- t == null ? void 0 : t.sort((f, m) => (f.name ?? "").localeCompare(m.name ?? "")).map((f) => /* @__PURE__ */ s.jsx("option", { value: f.id ?? "", children: f.name }, f.id))
2537
+ t == null ? void 0 : t.sort((m, w) => (m.name ?? "").localeCompare(w.name ?? "")).map((m) => /* @__PURE__ */ s.jsx("option", { value: m.id ?? "", children: m.name }, m.id))
2538
2538
  ] }),
2539
- d && e && n && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: l, children: /* @__PURE__ */ s.jsx(z, {}) }) })
2539
+ l && e && n && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: f, children: /* @__PURE__ */ s.jsx(z, {}) }) })
2540
2540
  ] });
2541
- }, Vo = ({ defaultSelection: e, onSelect: t, label: n, withoutLabel: r, size: o, disabled: a }) => {
2542
- const [i, c] = I(e), [d, u] = I(!1), h = $((l) => {
2543
- c(l ? { id: l.id, name: l.fullName } : null);
2541
+ }, Vo = ({ defaultSelection: e, onSelect: t, label: n, withoutLabel: r, size: o, hidden: a, disabled: i }) => {
2542
+ const [c, u] = I(e), [l, h] = I(!1), d = $((f) => {
2543
+ u(f ? { id: f.id, name: f.fullName } : null);
2544
2544
  }, []);
2545
- return P(() => {
2546
- c(e);
2547
- }, [e]), P(() => {
2548
- t && t(i);
2549
- }, [i, t]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2550
- /* @__PURE__ */ s.jsxs(De, { withoutLabel: r ?? !1, label: n ?? "", children: [
2551
- /* @__PURE__ */ s.jsxs(q.Select, { size: o, value: (i == null ? void 0 : i.id) ?? "", onChange: (l) => c({ id: Number(l.target.value), name: "" }), onMouseDown: (l) => {
2552
- l.currentTarget.focus(), l.preventDefault();
2545
+ return W(() => {
2546
+ u(e);
2547
+ }, [e]), W(() => {
2548
+ t && t(c);
2549
+ }, [c, t]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2550
+ /* @__PURE__ */ s.jsxs($e, { withoutLabel: r ?? !1, label: n ?? "", hidden: a, children: [
2551
+ /* @__PURE__ */ s.jsxs(q.Select, { size: o, value: (c == null ? void 0 : c.id) ?? "", onChange: (f) => u({ id: Number(f.target.value), name: "" }), onMouseDown: (f) => {
2552
+ f.currentTarget.focus(), f.preventDefault();
2553
2553
  }, onClick: () => {
2554
- a || u(!0);
2555
- }, disabled: a, style: { minWidth: "200px" }, children: [
2554
+ i || h(!0);
2555
+ }, hidden: a, disabled: i, style: { minWidth: "200px" }, children: [
2556
2556
  /* @__PURE__ */ s.jsx("option", { value: "" }),
2557
2557
  e && /* @__PURE__ */ s.jsx("option", { value: e.id, children: e.name }),
2558
- i && /* @__PURE__ */ s.jsx("option", { value: i.id, children: i.name })
2558
+ c && /* @__PURE__ */ s.jsx("option", { value: c.id, children: c.name })
2559
2559
  ] }),
2560
- i && !a && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: () => h(null), children: /* @__PURE__ */ s.jsx(z, {}) }) })
2560
+ c && !i && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: () => d(null), children: /* @__PURE__ */ s.jsx(z, {}) }) })
2561
2561
  ] }),
2562
- d && /* @__PURE__ */ s.jsx(It, { show: d, onCancel: () => u(!1), onEmployeeSelected: (l) => {
2563
- u(!1), h(l);
2562
+ l && /* @__PURE__ */ s.jsx(It, { show: l, onCancel: () => h(!1), onEmployeeSelected: (f) => {
2563
+ h(!1), d(f);
2564
2564
  } })
2565
2565
  ] });
2566
2566
  }, jo = ({ employee: e }) => /* @__PURE__ */ s.jsxs("div", { className: "card p-3 shadow-sm", children: [
@@ -2573,8 +2573,8 @@ const qo = ({ label: e, value: t, onChange: n, disabled: r, className: o, type:
2573
2573
  /* @__PURE__ */ s.jsx("div", { children: e.profession })
2574
2574
  ] })
2575
2575
  ] }), ko = ({ onEmployeeSelected: e }) => {
2576
- const { axiosInstance: t, employeePickerModalTexts: n } = S(He), [r, o] = I(!1), [a, i] = I(""), [c, d] = vo(a, 500), [u, h] = I(null), l = !c, f = $(() => {
2577
- if (l) {
2576
+ const { axiosInstance: t, employeePickerModalTexts: n } = S(ve), [r, o] = I(!1), [a, i] = I(""), [c, u] = vo(a, 500), [l, h] = I(null), d = !c, f = $(() => {
2577
+ if (d) {
2578
2578
  h(null);
2579
2579
  return;
2580
2580
  }
@@ -2583,17 +2583,17 @@ const qo = ({ label: e, value: t, onChange: n, disabled: r, className: o, type:
2583
2583
  }).catch(() => {
2584
2584
  h(null), o(!1);
2585
2585
  });
2586
- }, [t, c, l]);
2587
- return P(() => {
2586
+ }, [t, c, d]);
2587
+ return W(() => {
2588
2588
  f();
2589
2589
  }, [f]), /* @__PURE__ */ s.jsxs("div", { className: "d-flex flex-column h-100 w-100 overflow-hidden", children: [
2590
2590
  r && /* @__PURE__ */ s.jsx(Ht, {}),
2591
2591
  /* @__PURE__ */ s.jsx("div", { className: "p-3", children: /* @__PURE__ */ s.jsx(q, { onSubmit: (m) => {
2592
- m.preventDefault(), m.stopPropagation(), d.flush();
2592
+ m.preventDefault(), m.stopPropagation(), u.flush();
2593
2593
  }, children: /* @__PURE__ */ s.jsx(xo, { withoutLabel: !0, type: "text", placeholder: n.searchPlaceholder, size: "sm", value: a, onChange: (m) => i((m == null ? void 0 : m.toString()) ?? ""), className: "w-100" }) }) }),
2594
2594
  /* @__PURE__ */ s.jsxs("div", { className: "h-100 overflow-auto d-flex flex-column gap-2 p-3", children: [
2595
- u !== null && u.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "alert alert-warning m-0", children: n.noResultsMessage }),
2596
- u == null ? void 0 : u.map((m) => /* @__PURE__ */ s.jsx("div", { role: "button", onClick: () => e(m), children: /* @__PURE__ */ s.jsx(jo, { employee: m }) }, m.id))
2595
+ l !== null && l.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "alert alert-warning m-0", children: n.noResultsMessage }),
2596
+ l == null ? void 0 : l.map((m) => /* @__PURE__ */ s.jsx("div", { role: "button", onClick: () => e(m), children: /* @__PURE__ */ s.jsx(jo, { employee: m }) }, m.id))
2597
2597
  ] })
2598
2598
  ] });
2599
2599
  }, Co = "_modal_18hh3_1", No = "_modal-content_18hh3_1", Do = "_modal-body_18hh3_5", $o = {
@@ -2603,66 +2603,66 @@ const qo = ({ label: e, value: t, onChange: n, disabled: r, className: o, type:
2603
2603
  "modal-body": "_modal-body_18hh3_5",
2604
2604
  modalBody: Do
2605
2605
  }, It = ({ show: e, onCancel: t, onEmployeeSelected: n }) => {
2606
- const { employeePickerModalTexts: r } = S(He);
2606
+ const { employeePickerModalTexts: r } = S(ve);
2607
2607
  return /* @__PURE__ */ s.jsxs(ie, { show: e, onHide: () => t(), className: $o.modal, children: [
2608
2608
  /* @__PURE__ */ s.jsx(ie.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(ie.Title, { children: r.modalHeader }) }),
2609
2609
  /* @__PURE__ */ s.jsx(ie.Body, { className: "p-0", children: /* @__PURE__ */ s.jsx(ko, { onEmployeeSelected: n }) })
2610
2610
  ] });
2611
2611
  }, _o = ({ hookFormProps: e, inputProps: t }) => {
2612
- const { register: n, formState: r, setValue: o } = e, { formField: a, label: i, resetsFields: c, type: d } = t, [u, h] = I(void 0);
2613
- return P(() => {
2614
- const l = a.split(".");
2612
+ const { register: n, formState: r, setValue: o } = e, { formField: a, label: i, resetsFields: c, type: u } = t, [l, h] = I(void 0);
2613
+ return W(() => {
2614
+ const d = a.split(".");
2615
2615
  let f = r.errors;
2616
- l.forEach((m) => {
2616
+ d.forEach((m) => {
2617
2617
  f !== void 0 && (f = f[m]);
2618
2618
  }), h(f);
2619
2619
  }, [r, a]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2620
- /* @__PURE__ */ s.jsx(q.Check, { id: `check-${a}`, type: d ?? "checkbox", label: i, ...n(a, {
2620
+ /* @__PURE__ */ s.jsx(q.Check, { id: `check-${a}`, type: u ?? "checkbox", label: i, ...n(a, {
2621
2621
  onChange: () => {
2622
- c && c.forEach((l) => o(l, null));
2622
+ c && c.forEach((d) => o(d, null));
2623
2623
  }
2624
- }), isInvalid: u !== void 0 }),
2625
- u && /* @__PURE__ */ s.jsx("div", { className: "invalid-feedback d-block", children: u.message })
2624
+ }), isInvalid: l !== void 0, hidden: t.hidden, disabled: t.disabled }),
2625
+ l && /* @__PURE__ */ s.jsx("div", { className: "invalid-feedback d-block", children: l.message })
2626
2626
  ] });
2627
2627
  }, Go = ({ hookFormProps: e, inputProps: t }) => {
2628
- const { register: n, formState: r, getValues: o, setValue: a, watch: i } = e, { formField: c, options: d, resetsFields: u } = t, [h, l] = I(void 0);
2629
- return P(() => {
2628
+ const { register: n, formState: r, getValues: o, setValue: a, watch: i } = e, { formField: c, options: u, resetsFields: l } = t, [h, d] = I(void 0);
2629
+ return W(() => {
2630
2630
  const f = c.split(".");
2631
2631
  let m = r.errors;
2632
2632
  f.forEach((w) => {
2633
2633
  m !== void 0 && (m = m[w]);
2634
- }), l(m);
2635
- }, [r, c]), P(() => {
2634
+ }), d(m);
2635
+ }, [r, c]), W(() => {
2636
2636
  a(c, o(c));
2637
- }, [d, c, o, a]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2638
- d.map((f) => /* @__PURE__ */ s.jsx(q.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: i(c) === f.id, ...n(c, {
2637
+ }, [u, c, o, a]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2638
+ u.map((f) => /* @__PURE__ */ s.jsx(q.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: i(c) === f.id, ...n(c, {
2639
2639
  onChange: () => {
2640
- u && u.forEach((m) => a(m, null));
2640
+ l && l.forEach((m) => a(m, null));
2641
2641
  }
2642
- }), isInvalid: h !== void 0 }, f.id)),
2642
+ }), isInvalid: h !== void 0, hidden: t.hidden, disabled: t.disabled }, f.id)),
2643
2643
  h && /* @__PURE__ */ s.jsx("div", { className: "invalid-feedback d-block", children: h.message })
2644
2644
  ] });
2645
2645
  }, Qo = ({ hookFormProps: e, inputProps: t }) => {
2646
- const { register: n, formState: r, getValues: o, setValue: a, watch: i } = e, { formField: c, label: d, resetsFields: u, options: h, isNumber: l, size: f, showClearIcon: m, clearValue: w } = t, [y, b] = I(void 0), j = $(() => {
2646
+ const { register: n, formState: r, getValues: o, setValue: a, watch: i } = e, { formField: c, label: u, resetsFields: l, options: h, isNumber: d, size: f, showClearIcon: m, clearValue: w } = t, [y, b] = I(void 0), j = $(() => {
2647
2647
  const g = w ?? null;
2648
- l ? a(c, g ? Number(g) : null) : a(c, (g == null ? void 0 : g.toString()) ?? "");
2649
- }, [w, l, a, c]);
2650
- return P(() => {
2648
+ d ? a(c, g ? Number(g) : null) : a(c, (g == null ? void 0 : g.toString()) ?? "");
2649
+ }, [w, d, a, c]);
2650
+ return W(() => {
2651
2651
  const g = c.split(".");
2652
2652
  let p = r.errors;
2653
2653
  g.forEach((C) => {
2654
2654
  p !== void 0 && (p = p[C]);
2655
2655
  }), b(p);
2656
- }, [r, c]), P(() => {
2656
+ }, [r, c]), W(() => {
2657
2657
  a(c, o(c));
2658
2658
  }, [h, c, o, a]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2659
- /* @__PURE__ */ s.jsxs(te, { label: d, children: [
2659
+ /* @__PURE__ */ s.jsxs(te, { label: u, hidden: t.hidden, children: [
2660
2660
  /* @__PURE__ */ s.jsxs(q.Select, { size: f, ...n(c, {
2661
- setValueAs: (g) => l ? g ? parseInt(g, 10) : null : g == null || g === "" ? null : g,
2661
+ setValueAs: (g) => d ? g ? parseInt(g, 10) : null : g == null || g === "" ? null : g,
2662
2662
  onChange: () => {
2663
- u && u.forEach((g) => a(g, null));
2663
+ l && l.forEach((g) => a(g, null));
2664
2664
  }
2665
- }), isInvalid: y !== void 0, children: [
2665
+ }), isInvalid: y !== void 0, hidden: t.hidden, disabled: t.disabled, children: [
2666
2666
  /* @__PURE__ */ s.jsx("option", { value: "" }),
2667
2667
  h.sort((g, p) => (g.name ?? "").localeCompare(p.name ?? "")).map((g) => /* @__PURE__ */ s.jsx("option", { value: g.id ?? "", children: g.name }, g.id))
2668
2668
  ] }),
@@ -2671,31 +2671,31 @@ const qo = ({ label: e, value: t, onChange: n, disabled: r, className: o, type:
2671
2671
  y && /* @__PURE__ */ s.jsx("div", { className: "invalid-feedback d-block", children: y.message })
2672
2672
  ] });
2673
2673
  }, Xo = ({ hookFormProps: e, inputProps: t }) => {
2674
- const { register: n, formState: r, setValue: o, watch: a } = e, { formField: i, label: c, resetsFields: d, size: u, showClearIcon: h, clearValue: l } = t, [f, m] = I(void 0), w = $(() => {
2675
- const b = l ?? null;
2674
+ const { register: n, formState: r, setValue: o, watch: a } = e, { formField: i, label: c, resetsFields: u, size: l, showClearIcon: h, clearValue: d } = t, [f, m] = I(void 0), w = $(() => {
2675
+ const b = d ?? null;
2676
2676
  o(i, (b == null ? void 0 : b.toString()) ?? "");
2677
- }, [l, o, i]), y = $(() => {
2677
+ }, [d, o, i]), y = $(() => {
2678
2678
  const b = i.split(".");
2679
2679
  let j = r.errors;
2680
2680
  b.forEach((g) => {
2681
2681
  j !== void 0 && (j = j[g]);
2682
2682
  }), m(j);
2683
2683
  }, [r, i]);
2684
- return P(() => {
2684
+ return W(() => {
2685
2685
  y();
2686
2686
  }, [y]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2687
- /* @__PURE__ */ s.jsxs(te, { label: c, children: [
2688
- /* @__PURE__ */ s.jsx(q.Control, { as: "textarea", size: u, ...n(i, {
2687
+ /* @__PURE__ */ s.jsxs(te, { label: c, hidden: t.hidden, children: [
2688
+ /* @__PURE__ */ s.jsx(q.Control, { as: "textarea", size: l, ...n(i, {
2689
2689
  onChange: () => {
2690
- d && d.forEach((b) => o(b, null));
2690
+ u && u.forEach((b) => o(b, null));
2691
2691
  }
2692
- }), isInvalid: f !== void 0 }),
2692
+ }), isInvalid: f !== void 0, hidden: t.hidden, disabled: t.disabled }),
2693
2693
  h && a(i) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: w, children: /* @__PURE__ */ s.jsx(z, {}) }) })
2694
2694
  ] }),
2695
2695
  f && /* @__PURE__ */ s.jsx("div", { className: "invalid-feedback d-block", children: f.message })
2696
2696
  ] });
2697
2697
  }, Ko = ({ hookFormProps: e, inputProps: t }) => {
2698
- const { register: n, formState: r, setValue: o, watch: a } = e, { type: i, formField: c, label: d, placeholder: u, size: h, resetsFields: l, showClearIcon: f, clearValue: m } = t, [w, y] = I(void 0), b = $(() => {
2698
+ const { register: n, formState: r, setValue: o, watch: a } = e, { type: i, formField: c, label: u, placeholder: l, size: h, resetsFields: d, showClearIcon: f, clearValue: m } = t, [w, y] = I(void 0), b = $(() => {
2699
2699
  const g = m ?? null;
2700
2700
  i === "number" ? o(c, g ? Number(g) : null) : o(c, (g == null ? void 0 : g.toString()) ?? "");
2701
2701
  }, [m, i, o, c]), j = $(() => {
@@ -2705,22 +2705,22 @@ const qo = ({ label: e, value: t, onChange: n, disabled: r, className: o, type:
2705
2705
  p !== void 0 && (p = p[C]);
2706
2706
  }), y(p);
2707
2707
  }, [r, c]);
2708
- return P(() => {
2708
+ return W(() => {
2709
2709
  j();
2710
2710
  }, [j]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2711
- /* @__PURE__ */ s.jsxs(te, { label: d, children: [
2712
- /* @__PURE__ */ s.jsx(q.Control, { type: i, placeholder: u ?? d, size: h, ...n(c, {
2711
+ /* @__PURE__ */ s.jsxs(te, { label: u, hidden: t.hidden, children: [
2712
+ /* @__PURE__ */ s.jsx(q.Control, { type: i, placeholder: l ?? u, size: h, ...n(c, {
2713
2713
  setValueAs: (g) => i === "number" ? g ? parseInt(g, 10) : null : g == null || g === "" ? null : g,
2714
2714
  onChange: () => {
2715
- l && l.forEach((g) => o(g, null));
2715
+ d && d.forEach((g) => o(g, null));
2716
2716
  }
2717
- }), isInvalid: w !== void 0 }),
2717
+ }), isInvalid: w !== void 0, hidden: t.hidden, disabled: t.disabled }),
2718
2718
  f && a(c) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${i !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: b, children: /* @__PURE__ */ s.jsx(z, {}) }) })
2719
2719
  ] }),
2720
2720
  w && /* @__PURE__ */ s.jsx("div", { className: "invalid-feedback d-block", children: w.message })
2721
2721
  ] });
2722
2722
  }, Uo = ({ hookFormProps: e, inputProps: t }) => {
2723
- const { register: n, formState: r, setValue: o, watch: a } = e, { formField: i, label: c, size: d, defaultSelection: u, resetsFields: h } = t, [l, f] = I(u), [m, w] = I(void 0), [y, b] = I(!1), j = $(() => {
2723
+ const { register: n, formState: r, setValue: o, watch: a } = e, { formField: i, label: c, size: u, defaultSelection: l, resetsFields: h } = t, [d, f] = I(l), [m, w] = I(void 0), [y, b] = I(!1), j = $(() => {
2724
2724
  const p = i.split(".");
2725
2725
  let C = r.errors;
2726
2726
  p.forEach((F) => {
@@ -2729,15 +2729,15 @@ const qo = ({ label: e, value: t, onChange: n, disabled: r, className: o, type:
2729
2729
  }, [r, i]), g = $((p) => {
2730
2730
  f(p ? { id: p.id, name: p.fullName } : null);
2731
2731
  }, []);
2732
- return P(() => {
2733
- f(u);
2734
- }, [u]), P(() => {
2735
- o(i, (l == null ? void 0 : l.id) ?? null, { shouldDirty: !0, shouldValidate: !0 });
2736
- }, [l, i, o]), P(() => {
2732
+ return W(() => {
2733
+ f(l);
2734
+ }, [l]), W(() => {
2735
+ o(i, (d == null ? void 0 : d.id) ?? null, { shouldDirty: !0, shouldValidate: !0 });
2736
+ }, [d, i, o]), W(() => {
2737
2737
  j();
2738
2738
  }, [j]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2739
- /* @__PURE__ */ s.jsxs(te, { label: c, children: [
2740
- /* @__PURE__ */ s.jsxs(q.Select, { size: d, style: { minWidth: "200px" }, onMouseDown: (p) => {
2739
+ /* @__PURE__ */ s.jsxs(te, { label: c, hidden: t.hidden, children: [
2740
+ /* @__PURE__ */ s.jsxs(q.Select, { size: u, style: { minWidth: "200px" }, onMouseDown: (p) => {
2741
2741
  p.currentTarget.focus(), p.preventDefault();
2742
2742
  }, onClick: () => {
2743
2743
  b(!0);
@@ -2746,10 +2746,10 @@ const qo = ({ label: e, value: t, onChange: n, disabled: r, className: o, type:
2746
2746
  onChange: () => {
2747
2747
  h && h.forEach((p) => o(p, null));
2748
2748
  }
2749
- }), isInvalid: m !== void 0, children: [
2749
+ }), isInvalid: m !== void 0, hidden: t.hidden, disabled: t.disabled, children: [
2750
2750
  /* @__PURE__ */ s.jsx("option", { value: "" }),
2751
- u && /* @__PURE__ */ s.jsx("option", { value: u.id, children: u.name }),
2752
- l && /* @__PURE__ */ s.jsx("option", { value: l.id, children: l.name })
2751
+ l && /* @__PURE__ */ s.jsx("option", { value: l.id, children: l.name }),
2752
+ d && /* @__PURE__ */ s.jsx("option", { value: d.id, children: d.name })
2753
2753
  ] }),
2754
2754
  a(i) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: () => g(null), children: /* @__PURE__ */ s.jsx(z, {}) }) })
2755
2755
  ] }),