react-luminus-components 1.2.42 → 1.2.44

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.
package/dist/main.es.js CHANGED
@@ -1,13 +1,13 @@
1
- import { j as s, t as J, c as re, g as Gn, T as Un, a as Vn, b as v, s as ft, E as Kn, d as zn, e as Qn, f as Xn, h as Jn, u as he, i as Y, k as Zn, l as er, m as tr, n as nr, o as rr, p as or, q as sr, r as ar, v as et, w as tt, x as ir, y as cr, z as lr, P as ye, F as se, A as ur, B as dr, C as nt, S as mt, D as Se, G as Ee, H as rt, I as hr, J as Rt, K as je, L as De, O as pt, M as fr, N as ae, Q as mr, R as pr, U as qt, V as ot, W as st, X as V, Y as gr, Z as Lt, _ as wr, $ as yr, a0 as vr, a1 as Yt, a2 as Ht, a3 as xr, a4 as br, a5 as _r, a6 as Bt, a7 as xe, a8 as kr, a9 as jr, aa as Cr, ab as Nr, ac as Ue, ad as qe, ae as fe, af as $r } from "./NoInputContainer-LdJeEMWI.js";
2
- import { ah as Rc, ag as qc } from "./NoInputContainer-LdJeEMWI.js";
1
+ import { j as s, t as J, c as re, g as Gn, T as Un, a as Vn, b as v, s as ft, E as Kn, d as zn, e as Qn, f as Xn, h as Jn, u as he, i as Y, k as Zn, l as er, m as tr, n as nr, o as rr, p as or, q as sr, r as ar, v as et, w as tt, x as ir, y as cr, z as lr, P as ye, F as se, A as ur, B as dr, C as nt, S as mt, D as Se, G as Ee, H as rt, I as hr, J as Rt, K as je, L as De, O as pt, M as fr, N as ae, Q as mr, R as pr, U as qt, V as ot, W as st, X as V, Y as gr, Z as Lt, _ as wr, $ as yr, a0 as vr, a1 as Yt, a2 as Ht, a3 as xr, a4 as br, a5 as _r, a6 as Bt, a7 as xe, a8 as kr, a9 as jr, aa as Cr, ab as Nr, ac as Ue, ad as qe, ae as fe, af as $r } from "./NoInputContainer-BKmw3xdm.js";
2
+ import { ah as Rc, ag as qc } from "./NoInputContainer-BKmw3xdm.js";
3
3
  import * as M from "react";
4
4
  import z, { useCallback as T, useMemo as G, useEffect as E, useRef as R, useState as O, useReducer as Gt, useContext as D, createElement as Ir } from "react";
5
- import { d as Ut, u as Tr, q as gt, E as Oe, M as Me } from "./EventType--bYeqoGO.js";
6
- import { L as Yc } from "./EventType--bYeqoGO.js";
5
+ import { d as Ut, u as Tr, q as gt, E as Oe, M as Me } from "./EventType-CL8n-SeO.js";
6
+ import { L as Yc } from "./EventType-CL8n-SeO.js";
7
7
  import { useFormContext as ie, Controller as Vt } from "react-hook-form";
8
8
  import { m as Sr, a as Kt } from "./textUtils-BbxuIsKq.js";
9
9
  import { u as zt, a as Qt } from "./useKeyPress-CwWcvmEW.js";
10
- import { S as Bc } from "./SimpleTooltip-mxX4RNUy.js";
10
+ import { S as Bc } from "./SimpleTooltip-DyYYVmG7.js";
11
11
  const cc = ({ fileLoader: n, fileName: e, children: t }) => {
12
12
  const r = T(async () => {
13
13
  var l;
@@ -538,8 +538,8 @@ function vo(n) {
538
538
  return Math.round(t / Kt) + 1;
539
539
  }
540
540
  function Zt(n, e) {
541
- var d, h, f, g;
542
- const t = J(n), r = t.getFullYear(), o = Le(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((g = (f = o.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = re(n, 0);
541
+ var d, h, m, p;
542
+ const t = J(n), r = t.getFullYear(), o = Le(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((p = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, i = re(n, 0);
543
543
  i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
544
544
  const l = Ne(i, e), c = re(n, 0);
545
545
  c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
@@ -1187,30 +1187,30 @@ function So(n, e, t) {
1187
1187
  }
1188
1188
  const Eo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Oo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Mo = /^'([^]*?)'?$/, Po = /''/g, Do = /[a-zA-Z]/;
1189
1189
  function tn(n, e, t) {
1190
- var d, h, f, g, x, m, p, j;
1191
- const r = Le(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? wo, a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((m = (x = t == null ? void 0 : t.locale) == null ? void 0 : x.options) == null ? void 0 : m.weekStartsOn) ?? r.weekStartsOn ?? ((j = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : j.weekStartsOn) ?? 0, l = J(n);
1190
+ var d, h, m, p, x, g, f, b;
1191
+ const r = Le(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? wo, a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((g = (x = t == null ? void 0 : t.locale) == null ? void 0 : x.options) == null ? void 0 : g.weekStartsOn) ?? r.weekStartsOn ?? ((b = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : b.weekStartsOn) ?? 0, l = J(n);
1192
1192
  if (!Ar(l))
1193
1193
  throw new RangeError("Invalid time value");
1194
- let c = e.match(Oo).map((k) => {
1195
- const b = k[0];
1196
- if (b === "p" || b === "P") {
1197
- const I = ko[b];
1198
- return I(k, o.formatLong);
1194
+ let c = e.match(Oo).map((_) => {
1195
+ const k = _[0];
1196
+ if (k === "p" || k === "P") {
1197
+ const I = ko[k];
1198
+ return I(_, o.formatLong);
1199
1199
  }
1200
- return k;
1201
- }).join("").match(Eo).map((k) => {
1202
- if (k === "''")
1200
+ return _;
1201
+ }).join("").match(Eo).map((_) => {
1202
+ if (_ === "''")
1203
1203
  return { isToken: !1, value: "'" };
1204
- const b = k[0];
1205
- if (b === "'")
1206
- return { isToken: !1, value: Ao(k) };
1207
- if (vt[b])
1208
- return { isToken: !0, value: k };
1209
- if (b.match(Do))
1204
+ const k = _[0];
1205
+ if (k === "'")
1206
+ return { isToken: !1, value: Ao(_) };
1207
+ if (vt[k])
1208
+ return { isToken: !0, value: _ };
1209
+ if (k.match(Do))
1210
1210
  throw new RangeError(
1211
- "Format string contains an unescaped latin alphabet character `" + b + "`"
1211
+ "Format string contains an unescaped latin alphabet character `" + k + "`"
1212
1212
  );
1213
- return { isToken: !1, value: k };
1213
+ return { isToken: !1, value: _ };
1214
1214
  });
1215
1215
  o.localize.preprocessor && (c = o.localize.preprocessor(l, c));
1216
1216
  const u = {
@@ -1218,13 +1218,13 @@ function tn(n, e, t) {
1218
1218
  weekStartsOn: i,
1219
1219
  locale: o
1220
1220
  };
1221
- return c.map((k) => {
1222
- if (!k.isToken)
1223
- return k.value;
1224
- const b = k.value;
1225
- (!(t != null && t.useAdditionalWeekYearTokens) && Io(b) || !(t != null && t.useAdditionalDayOfYearTokens) && $o(b)) && To(b, e, String(n));
1226
- const I = vt[b[0]];
1227
- return I(l, b, o.localize, u);
1221
+ return c.map((_) => {
1222
+ if (!_.isToken)
1223
+ return _.value;
1224
+ const k = _.value;
1225
+ (!(t != null && t.useAdditionalWeekYearTokens) && Io(k) || !(t != null && t.useAdditionalDayOfYearTokens) && $o(k)) && To(k, e, String(n));
1226
+ const I = vt[k[0]];
1227
+ return I(l, k, o.localize, u);
1228
1228
  }).join("");
1229
1229
  }
1230
1230
  function Ao(n) {
@@ -1289,30 +1289,30 @@ const Lo = {
1289
1289
  timeout: u = 300,
1290
1290
  mountOnEnter: d = !1,
1291
1291
  unmountOnExit: h = !1,
1292
- appear: f = !1,
1293
- getDimensionValue: g = qo,
1292
+ appear: m = !1,
1293
+ getDimensionValue: p = qo,
1294
1294
  ...x
1295
- }, m) => {
1296
- const p = typeof l == "function" ? l() : l, j = G(() => ke((_) => {
1297
- _.style[p] = "0";
1298
- }, n), [p, n]), k = G(() => ke((_) => {
1299
- const C = `scroll${p[0].toUpperCase()}${p.slice(1)}`;
1300
- _.style[p] = `${_[C]}px`;
1301
- }, e), [p, e]), b = G(() => ke((_) => {
1302
- _.style[p] = null;
1303
- }, t), [p, t]), I = G(() => ke((_) => {
1304
- _.style[p] = `${g(p, _)}px`, Jn(_);
1305
- }, r), [r, g, p]), y = G(() => ke((_) => {
1306
- _.style[p] = null;
1307
- }, o), [p, o]);
1295
+ }, g) => {
1296
+ const f = typeof l == "function" ? l() : l, b = G(() => ke((j) => {
1297
+ j.style[f] = "0";
1298
+ }, n), [f, n]), _ = G(() => ke((j) => {
1299
+ const C = `scroll${f[0].toUpperCase()}${f.slice(1)}`;
1300
+ j.style[f] = `${j[C]}px`;
1301
+ }, e), [f, e]), k = G(() => ke((j) => {
1302
+ j.style[f] = null;
1303
+ }, t), [f, t]), I = G(() => ke((j) => {
1304
+ j.style[f] = `${p(f, j)}px`, Jn(j);
1305
+ }, r), [r, p, f]), y = G(() => ke((j) => {
1306
+ j.style[f] = null;
1307
+ }, o), [f, o]);
1308
1308
  return /* @__PURE__ */ s.jsx(Un, {
1309
- ref: m,
1309
+ ref: g,
1310
1310
  addEndListener: Vn,
1311
1311
  ...x,
1312
1312
  "aria-expanded": x.role ? c : null,
1313
- onEnter: j,
1314
- onEntering: k,
1315
- onEntered: b,
1313
+ onEnter: b,
1314
+ onEntering: _,
1315
+ onEntered: k,
1316
1316
  onExit: I,
1317
1317
  onExiting: y,
1318
1318
  childRef: i.ref,
@@ -1320,10 +1320,10 @@ const Lo = {
1320
1320
  timeout: u,
1321
1321
  mountOnEnter: d,
1322
1322
  unmountOnExit: h,
1323
- appear: f,
1324
- children: (_, C) => /* @__PURE__ */ z.cloneElement(i, {
1323
+ appear: m,
1324
+ children: (j, C) => /* @__PURE__ */ z.cloneElement(i, {
1325
1325
  ...C,
1326
- className: v(a, i.props.className, Lo[_], p === "width" && "collapse-horizontal")
1326
+ className: v(a, i.props.className, Lo[j], f === "width" && "collapse-horizontal")
1327
1327
  })
1328
1328
  });
1329
1329
  });
@@ -1366,14 +1366,14 @@ function at({
1366
1366
  type: c || "button",
1367
1367
  disabled: e
1368
1368
  }, u];
1369
- const d = (f) => {
1370
- if ((e || n === "a" && Go(t)) && f.preventDefault(), e) {
1371
- f.stopPropagation();
1369
+ const d = (m) => {
1370
+ if ((e || n === "a" && Go(t)) && m.preventDefault(), e) {
1371
+ m.stopPropagation();
1372
1372
  return;
1373
1373
  }
1374
- i == null || i(f);
1375
- }, h = (f) => {
1376
- f.key === " " && (f.preventDefault(), d(f));
1374
+ i == null || i(m);
1375
+ }, h = (m) => {
1376
+ m.key === " " && (m.preventDefault(), d(m));
1377
1377
  };
1378
1378
  return n === "a" && (t || (t = "#"), e && (t = void 0)), [{
1379
1379
  role: a ?? "button",
@@ -1453,8 +1453,8 @@ const sn = /* @__PURE__ */ M.forwardRef(({
1453
1453
  tagName: n,
1454
1454
  disabled: a,
1455
1455
  ...l
1456
- }), f = h;
1457
- return /* @__PURE__ */ s.jsx(f, {
1456
+ }), m = h;
1457
+ return /* @__PURE__ */ s.jsx(m, {
1458
1458
  ...d,
1459
1459
  ...l,
1460
1460
  ref: c,
@@ -1477,14 +1477,14 @@ function Qo({
1477
1477
  return o.forEach((c) => {
1478
1478
  const u = r[c];
1479
1479
  delete r[c];
1480
- let d, h, f;
1480
+ let d, h, m;
1481
1481
  typeof u == "object" && u != null ? {
1482
1482
  span: d,
1483
1483
  offset: h,
1484
- order: f
1484
+ order: m
1485
1485
  } = u : d = u;
1486
- const g = c !== a ? `-${c}` : "";
1487
- d && i.push(d === !0 ? `${e}${g}` : `${e}${g}-${d}`), f != null && l.push(`order${g}-${f}`), h != null && l.push(`offset${g}-${h}`);
1486
+ const p = c !== a ? `-${c}` : "";
1487
+ d && i.push(d === !0 ? `${e}${p}` : `${e}${p}-${d}`), m != null && l.push(`order${p}-${m}`), h != null && l.push(`offset${p}-${h}`);
1488
1488
  }), [{
1489
1489
  ...r,
1490
1490
  className: v(t, ...i, ...l)
@@ -1545,45 +1545,45 @@ function cn(n = {}) {
1545
1545
  placement: u,
1546
1546
  popperConfig: d = {},
1547
1547
  enableEventListeners: h = !0,
1548
- usePopper: f = !!e
1549
- } = n, g = (e == null ? void 0 : e.show) == null ? !!n.show : e.show;
1550
- g && !o.current && (o.current = !0);
1551
- const x = (_) => {
1552
- e == null || e.toggle(!1, _);
1548
+ usePopper: m = !!e
1549
+ } = n, p = (e == null ? void 0 : e.show) == null ? !!n.show : e.show;
1550
+ p && !o.current && (o.current = !0);
1551
+ const x = (j) => {
1552
+ e == null || e.toggle(!1, j);
1553
1553
  }, {
1554
- placement: m,
1555
- setMenu: p,
1556
- menuElement: j,
1557
- toggleElement: k
1558
- } = e || {}, b = nr(k, j, rr({
1559
- placement: u || m || "bottom-start",
1560
- enabled: f,
1561
- enableEvents: h ?? g,
1554
+ placement: g,
1555
+ setMenu: f,
1556
+ menuElement: b,
1557
+ toggleElement: _
1558
+ } = e || {}, k = nr(_, b, rr({
1559
+ placement: u || g || "bottom-start",
1560
+ enabled: m,
1561
+ enableEvents: h ?? p,
1562
1562
  offset: i,
1563
1563
  flip: a,
1564
1564
  fixed: c,
1565
1565
  arrowElement: t,
1566
1566
  popperConfig: d
1567
1567
  })), I = Object.assign({
1568
- ref: p || ts,
1569
- "aria-labelledby": k == null ? void 0 : k.id
1570
- }, b.attributes.popper, {
1571
- style: b.styles.popper
1568
+ ref: f || ts,
1569
+ "aria-labelledby": _ == null ? void 0 : _.id
1570
+ }, k.attributes.popper, {
1571
+ style: k.styles.popper
1572
1572
  }), y = {
1573
- show: g,
1574
- placement: m,
1573
+ show: p,
1574
+ placement: g,
1575
1575
  hasShown: o.current,
1576
1576
  toggle: e == null ? void 0 : e.toggle,
1577
- popper: f ? b : null,
1578
- arrowProps: f ? Object.assign({
1577
+ popper: m ? k : null,
1578
+ arrowProps: m ? Object.assign({
1579
1579
  ref: r
1580
- }, b.attributes.arrow, {
1581
- style: b.styles.arrow
1580
+ }, k.attributes.arrow, {
1581
+ style: k.styles.arrow
1582
1582
  }) : {}
1583
1583
  };
1584
- return or(j, x, {
1584
+ return or(b, x, {
1585
1585
  clickTrigger: l,
1586
- disabled: !g
1586
+ disabled: !p
1587
1587
  }), [I, y];
1588
1588
  }
1589
1589
  function ln(n) {
@@ -1745,27 +1745,27 @@ function Ie({
1745
1745
  placement: i = "bottom-start",
1746
1746
  children: l
1747
1747
  }) {
1748
- const c = sr(), [u, d] = Xo(e, n, r), [h, f] = Nt(), g = h.current, [x, m] = Nt(), p = x.current, j = Tr(u), k = R(null), b = R(!1), I = D(Xe), y = T((N, S, q = S == null ? void 0 : S.type) => {
1748
+ const c = sr(), [u, d] = Xo(e, n, r), [h, m] = Nt(), p = h.current, [x, g] = Nt(), f = x.current, b = Tr(u), _ = R(null), k = R(!1), I = D(Xe), y = T((N, S, q = S == null ? void 0 : S.type) => {
1749
1749
  d(N, {
1750
1750
  originalEvent: S,
1751
1751
  source: q
1752
1752
  });
1753
- }, [d]), _ = he((N, S) => {
1753
+ }, [d]), j = he((N, S) => {
1754
1754
  t == null || t(N, S), y(!1, S, "select"), S.isPropagationStopped() || I == null || I(N, S);
1755
1755
  }), C = G(() => ({
1756
1756
  toggle: y,
1757
1757
  placement: i,
1758
1758
  show: u,
1759
- menuElement: g,
1760
- toggleElement: p,
1761
- setMenu: f,
1762
- setToggle: m
1763
- }), [y, i, u, g, p, f, m]);
1764
- g && j && !u && (b.current = g.contains(g.ownerDocument.activeElement));
1759
+ menuElement: p,
1760
+ toggleElement: f,
1761
+ setMenu: m,
1762
+ setToggle: g
1763
+ }), [y, i, u, p, f, m, g]);
1764
+ p && b && !u && (k.current = p.contains(p.ownerDocument.activeElement));
1765
1765
  const $ = he(() => {
1766
- p && p.focus && p.focus();
1766
+ f && f.focus && f.focus();
1767
1767
  }), L = he(() => {
1768
- const N = k.current;
1768
+ const N = _.current;
1769
1769
  let S = a;
1770
1770
  if (S == null && (S = h.current && dn(h.current) ? "keyboard" : !1), S === !1 || S === "keyboard" && !/^key.+$/.test(N))
1771
1771
  return;
@@ -1773,9 +1773,9 @@ function Ie({
1773
1773
  q && q.focus && q.focus();
1774
1774
  });
1775
1775
  E(() => {
1776
- u ? L() : b.current && (b.current = !1, $());
1777
- }, [u, b, $, L]), E(() => {
1778
- k.current = null;
1776
+ u ? L() : k.current && (k.current = !1, $());
1777
+ }, [u, k, $, L]), E(() => {
1778
+ _.current = null;
1779
1779
  });
1780
1780
  const P = (N, S) => {
1781
1781
  if (!h.current)
@@ -1791,7 +1791,7 @@ function Ie({
1791
1791
  } = N, K = N.target, U = (S = h.current) == null ? void 0 : S.contains(K), te = (q = x.current) == null ? void 0 : q.contains(K);
1792
1792
  if (/input|textarea/i.test(K.tagName) && (H === " " || H !== "Escape" && U || H === "Escape" && K.type === "search") || !U && !te || H === "Tab" && (!h.current || !u))
1793
1793
  return;
1794
- k.current = N.type;
1794
+ _.current = N.type;
1795
1795
  const F = {
1796
1796
  originalEvent: N,
1797
1797
  source: N.type
@@ -1823,7 +1823,7 @@ function Ie({
1823
1823
  break;
1824
1824
  }
1825
1825
  }), /* @__PURE__ */ s.jsx(Xe.Provider, {
1826
- value: _,
1826
+ value: j,
1827
1827
  children: /* @__PURE__ */ s.jsx(Ye.Provider, {
1828
1828
  value: C,
1829
1829
  children: l
@@ -1929,25 +1929,25 @@ const jn = /* @__PURE__ */ M.forwardRef(({
1929
1929
  variant: u,
1930
1930
  ...d
1931
1931
  }, h) => {
1932
- let f = !1;
1933
- const g = D(bn), x = Y(n, "dropdown-menu"), {
1934
- align: m,
1935
- drop: p,
1936
- isRTL: j
1932
+ let m = !1;
1933
+ const p = D(bn), x = Y(n, "dropdown-menu"), {
1934
+ align: g,
1935
+ drop: f,
1936
+ isRTL: b
1937
1937
  } = D(it);
1938
- t = t || m;
1939
- const k = D(He), b = [];
1938
+ t = t || g;
1939
+ const _ = D(He), k = [];
1940
1940
  if (t)
1941
1941
  if (typeof t == "object") {
1942
1942
  const N = Object.keys(t);
1943
1943
  if (process.env.NODE_ENV !== "production" && tt(N.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), N.length) {
1944
1944
  const S = N[0], q = t[S];
1945
- f = q === "start", b.push(`${x}-${S}-${q}`);
1945
+ m = q === "start", k.push(`${x}-${S}-${q}`);
1946
1946
  }
1947
1947
  } else
1948
- t === "end" && (f = !0);
1949
- const I = kn(f, p, j), [y, {
1950
- hasShown: _,
1948
+ t === "end" && (m = !0);
1949
+ const I = kn(m, f, b), [y, {
1950
+ hasShown: j,
1951
1951
  popper: C,
1952
1952
  show: $,
1953
1953
  toggle: L
@@ -1955,14 +1955,14 @@ const jn = /* @__PURE__ */ M.forwardRef(({
1955
1955
  flip: o,
1956
1956
  rootCloseEvent: r,
1957
1957
  show: a,
1958
- usePopper: !g && b.length === 0,
1958
+ usePopper: !p && k.length === 0,
1959
1959
  offset: [0, 2],
1960
1960
  popperConfig: c,
1961
1961
  placement: I
1962
1962
  });
1963
1963
  if (y.ref = et(_n(h, "DropdownMenu"), y.ref), ir(() => {
1964
1964
  $ && (C == null || C.update());
1965
- }, [$]), !_ && !i && !k)
1965
+ }, [$]), !j && !i && !_)
1966
1966
  return null;
1967
1967
  typeof l != "string" && (y.show = $, y.close = () => L == null ? void 0 : L(!1), y.align = t);
1968
1968
  let P = d.style;
@@ -1973,10 +1973,10 @@ const jn = /* @__PURE__ */ M.forwardRef(({
1973
1973
  ...d,
1974
1974
  ...y,
1975
1975
  style: P,
1976
- ...(b.length || g) && {
1976
+ ...(k.length || p) && {
1977
1977
  "data-bs-popper": "static"
1978
1978
  },
1979
- className: v(e, x, $ && "show", f && `${x}-end`, u && `${x}-${u}`, ...b)
1979
+ className: v(e, x, $ && "show", m && `${x}-end`, u && `${x}-${u}`, ...k)
1980
1980
  });
1981
1981
  });
1982
1982
  jn.displayName = "DropdownMenu";
@@ -2012,20 +2012,20 @@ const Nn = /* @__PURE__ */ M.forwardRef((n, e) => {
2012
2012
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2013
2013
  as: d = "div",
2014
2014
  navbar: h,
2015
- autoClose: f = !0,
2016
- ...g
2015
+ autoClose: m = !0,
2016
+ ...p
2017
2017
  } = cr(n, {
2018
2018
  show: "onToggle"
2019
- }), x = D(He), m = Y(t, "dropdown"), p = lr(), j = (C) => f === !1 ? C === "click" : f === "inside" ? C !== "rootClose" : f === "outside" ? C !== "select" : !0, k = he((C, $) => {
2019
+ }), x = D(He), g = Y(t, "dropdown"), f = lr(), b = (C) => m === !1 ? C === "click" : m === "inside" ? C !== "rootClose" : m === "outside" ? C !== "select" : !0, _ = he((C, $) => {
2020
2020
  var L, P;
2021
- !((L = $.originalEvent) == null || (P = L.target) == null) && P.classList.contains("dropdown-toggle") && $.source === "mousedown" || ($.originalEvent.currentTarget === document && ($.source !== "keydown" || $.originalEvent.key === "Escape") && ($.source = "rootClose"), j($.source) && (c == null || c(C, $)));
2022
- }), I = kn(i === "end", r, p), y = G(() => ({
2021
+ !((L = $.originalEvent) == null || (P = L.target) == null) && P.classList.contains("dropdown-toggle") && $.source === "mousedown" || ($.originalEvent.currentTarget === document && ($.source !== "keydown" || $.originalEvent.key === "Escape") && ($.source = "rootClose"), b($.source) && (c == null || c(C, $)));
2022
+ }), I = kn(i === "end", r, f), y = G(() => ({
2023
2023
  align: i,
2024
2024
  drop: r,
2025
- isRTL: p
2026
- }), [i, r, p]), _ = {
2027
- down: m,
2028
- "down-centered": `${m}-center`,
2025
+ isRTL: f
2026
+ }), [i, r, f]), j = {
2027
+ down: g,
2028
+ "down-centered": `${g}-center`,
2029
2029
  up: "dropup",
2030
2030
  "up-centered": "dropup-center dropup",
2031
2031
  end: "dropend",
@@ -2037,13 +2037,13 @@ const Nn = /* @__PURE__ */ M.forwardRef((n, e) => {
2037
2037
  placement: I,
2038
2038
  show: o,
2039
2039
  onSelect: l,
2040
- onToggle: k,
2040
+ onToggle: _,
2041
2041
  focusFirstItemOnShow: u,
2042
- itemSelector: `.${m}-item:not(.disabled):not(:disabled)`,
2043
- children: x ? g.children : /* @__PURE__ */ s.jsx(d, {
2044
- ...g,
2042
+ itemSelector: `.${g}-item:not(.disabled):not(:disabled)`,
2043
+ children: x ? p.children : /* @__PURE__ */ s.jsx(d, {
2044
+ ...p,
2045
2045
  ref: e,
2046
- className: v(a, o && "show", _[r])
2046
+ className: v(a, o && "show", j[r])
2047
2047
  })
2048
2048
  })
2049
2049
  });
@@ -2135,38 +2135,38 @@ const $n = /* @__PURE__ */ M.forwardRef(({
2135
2135
  feedback: u,
2136
2136
  feedbackType: d,
2137
2137
  className: h,
2138
- style: f,
2139
- title: g = "",
2138
+ style: m,
2139
+ title: p = "",
2140
2140
  type: x = "checkbox",
2141
- label: m,
2142
- children: p,
2141
+ label: g,
2142
+ children: f,
2143
2143
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2144
- as: j = "input",
2145
- ...k
2146
- }, b) => {
2144
+ as: b = "input",
2145
+ ..._
2146
+ }, k) => {
2147
2147
  e = Y(e, "form-check"), t = Y(t, "form-switch");
2148
2148
  const {
2149
2149
  controlId: I
2150
2150
  } = D(se), y = G(() => ({
2151
2151
  controlId: n || I
2152
- }), [I, n]), _ = !p && m != null && m !== !1 || zo(p, We), C = /* @__PURE__ */ s.jsx(Te, {
2153
- ...k,
2152
+ }), [I, n]), j = !f && g != null && g !== !1 || zo(f, We), C = /* @__PURE__ */ s.jsx(Te, {
2153
+ ..._,
2154
2154
  type: x === "switch" ? "checkbox" : x,
2155
- ref: b,
2155
+ ref: k,
2156
2156
  isValid: i,
2157
2157
  isInvalid: l,
2158
2158
  disabled: a,
2159
- as: j
2159
+ as: b
2160
2160
  });
2161
2161
  return /* @__PURE__ */ s.jsx(se.Provider, {
2162
2162
  value: y,
2163
2163
  children: /* @__PURE__ */ s.jsx("div", {
2164
- style: f,
2165
- className: v(h, _ && e, r && `${e}-inline`, o && `${e}-reverse`, x === "switch" && t),
2166
- children: p || /* @__PURE__ */ s.jsxs(s.Fragment, {
2167
- children: [C, _ && /* @__PURE__ */ s.jsx(We, {
2168
- title: g,
2169
- children: m
2164
+ style: m,
2165
+ className: v(h, j && e, r && `${e}-inline`, o && `${e}-reverse`, x === "switch" && t),
2166
+ children: f || /* @__PURE__ */ s.jsxs(s.Fragment, {
2167
+ children: [C, j && /* @__PURE__ */ s.jsx(We, {
2168
+ title: p,
2169
+ children: g
2170
2170
  }), u && /* @__PURE__ */ s.jsx(Be, {
2171
2171
  type: d,
2172
2172
  tooltip: c,
@@ -2194,17 +2194,17 @@ const Re = Object.assign($n, {
2194
2194
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2195
2195
  as: d = "input",
2196
2196
  ...h
2197
- }, f) => {
2197
+ }, m) => {
2198
2198
  const {
2199
- controlId: g
2199
+ controlId: p
2200
2200
  } = D(se);
2201
- return n = Y(n, "form-control"), process.env.NODE_ENV !== "production" && tt(g == null || !o, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ s.jsx(d, {
2201
+ return n = Y(n, "form-control"), process.env.NODE_ENV !== "production" && tt(p == null || !o, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ s.jsx(d, {
2202
2202
  ...h,
2203
2203
  type: e,
2204
2204
  size: r,
2205
- ref: f,
2205
+ ref: m,
2206
2206
  readOnly: u,
2207
- id: o || g,
2207
+ id: o || p,
2208
2208
  className: v(a, c ? `${n}-plaintext` : n, t && `${n}-${t}`, e === "color" && `${n}-color`, i && "is-valid", l && "is-invalid")
2209
2209
  });
2210
2210
  });
@@ -2704,48 +2704,48 @@ function da(n, e, t) {
2704
2704
  E(() => () => {
2705
2705
  h.current = !1;
2706
2706
  }, []);
2707
- const f = R(o !== je.None);
2707
+ const m = R(o !== je.None);
2708
2708
  E(() => {
2709
- f.current = o !== je.None;
2709
+ m.current = o !== je.None;
2710
2710
  }, [o]);
2711
- const g = R(!0);
2711
+ const p = R(!0);
2712
2712
  E(() => {
2713
2713
  if (u) {
2714
- g.current = !1;
2714
+ p.current = !1;
2715
2715
  return;
2716
2716
  }
2717
2717
  if (c) {
2718
- g.current = !1;
2718
+ p.current = !1;
2719
2719
  return;
2720
2720
  }
2721
2721
  }, [u, c]);
2722
- const x = T(async (p, j) => {
2723
- const k = p || n, b = j || e;
2724
- switch (k) {
2722
+ const x = T(async (f, b) => {
2723
+ const _ = f || n, k = b || e;
2724
+ switch (_) {
2725
2725
  case De.Popup:
2726
- return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(b);
2726
+ return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(k);
2727
2727
  case De.Redirect:
2728
- return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(b).then(null);
2728
+ return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(k).then(null);
2729
2729
  case De.Silent:
2730
- return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(b);
2730
+ return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(k);
2731
2731
  default:
2732
2732
  throw ve.createInvalidInteractionTypeError();
2733
2733
  }
2734
- }, [r, n, e, a]), m = T(async (p, j) => {
2735
- const k = p || n;
2736
- let b;
2737
- return j ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), b = {
2738
- ...j
2739
- }) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"), b = {
2734
+ }, [r, n, e, a]), g = T(async (f, b) => {
2735
+ const _ = f || n;
2736
+ let k;
2737
+ return b ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), k = {
2738
+ ...b
2739
+ }) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"), k = {
2740
2740
  ...e,
2741
2741
  scopes: e.scopes || pt
2742
- }) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."), b = {
2742
+ }) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."), k = {
2743
2743
  scopes: pt
2744
- }), !b.account && l && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), b.account = l), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), r.acquireTokenSilent(b).catch(async (y) => {
2744
+ }), !k.account && l && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), k.account = l), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), r.acquireTokenSilent(k).catch(async (y) => {
2745
2745
  if (y instanceof dt) {
2746
- if (f.current)
2746
+ if (m.current)
2747
2747
  throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), ve.createUnableToFallbackToInteractionError();
2748
- return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), x(k, b);
2748
+ return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), x(_, k);
2749
2749
  }
2750
2750
  throw y;
2751
2751
  })))().then((y) => (h.current && d([y, null]), y)).catch((y) => {
@@ -2760,31 +2760,31 @@ function da(n, e, t) {
2760
2760
  x
2761
2761
  ]);
2762
2762
  return E(() => {
2763
- const p = r.addEventCallback((j) => {
2764
- switch (j.eventType) {
2763
+ const f = r.addEventCallback((b) => {
2764
+ switch (b.eventType) {
2765
2765
  case Oe.LOGIN_SUCCESS:
2766
2766
  case Oe.SSO_SILENT_SUCCESS:
2767
- j.payload && d([
2768
- j.payload,
2767
+ b.payload && d([
2768
+ b.payload,
2769
2769
  null
2770
2770
  ]);
2771
2771
  break;
2772
2772
  case Oe.LOGIN_FAILURE:
2773
2773
  case Oe.SSO_SILENT_FAILURE:
2774
- j.error && d([null, j.error]);
2774
+ b.error && d([null, b.error]);
2775
2775
  break;
2776
2776
  }
2777
2777
  });
2778
- return a.verbose(`useMsalAuthentication - Registered event callback with id: ${p}`), () => {
2779
- p && (a.verbose(`useMsalAuthentication - Removing event callback ${p}`), r.removeEventCallback(p));
2778
+ return a.verbose(`useMsalAuthentication - Registered event callback with id: ${f}`), () => {
2779
+ f && (a.verbose(`useMsalAuthentication - Removing event callback ${f}`), r.removeEventCallback(f));
2780
2780
  };
2781
2781
  }, [r, a]), E(() => {
2782
- g.current && o === je.None && (g.current = !1, i ? l && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), m().catch(() => {
2782
+ p.current && o === je.None && (p.current = !1, i ? l && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), g().catch(() => {
2783
2783
  })) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"), x().catch(() => {
2784
2784
  })));
2785
- }, [i, l, o, x, m, a]), {
2785
+ }, [i, l, o, x, g, a]), {
2786
2786
  login: x,
2787
- acquireToken: m,
2787
+ acquireToken: g,
2788
2788
  result: c,
2789
2789
  error: u
2790
2790
  };
@@ -2935,37 +2935,37 @@ const fa = "_button_1wjon_1", ma = "_filled_1wjon_7", pa = "_sm_1wjon_13", ga =
2935
2935
  widgetEditOverlay: Fa
2936
2936
  }, dc = ({ availableWidgets: n }) => {
2937
2937
  var d;
2938
- const { homeDashboardTexts: e } = D(ae), { dashboardConfig: t, onChangeDashboardConfig: r } = Ta(), [o, a] = O(!1), i = T((h, f) => {
2939
- var g, x;
2940
- h === ((g = t.widgets) == null ? void 0 : g.length) ? r({
2938
+ const { homeDashboardTexts: e } = D(ae), { dashboardConfig: t, onChangeDashboardConfig: r } = Ta(), [o, a] = O(!1), i = T((h, m) => {
2939
+ var p, x;
2940
+ h === ((p = t.widgets) == null ? void 0 : p.length) ? r({
2941
2941
  ...t,
2942
- widgets: [...t.widgets, { widgetId: f, fullWidth: !1 }]
2942
+ widgets: [...t.widgets, { widgetId: m, fullWidth: !1 }]
2943
2943
  }) : r({
2944
2944
  ...t,
2945
- widgets: ((x = t.widgets) == null ? void 0 : x.map((m, p) => p === h ? { widgetId: f, fullWidth: !1 } : m)) ?? []
2945
+ widgets: ((x = t.widgets) == null ? void 0 : x.map((g, f) => f === h ? { widgetId: m, fullWidth: !1 } : g)) ?? []
2946
2946
  });
2947
2947
  }, [t, r]), l = T((h) => {
2948
- var f, g;
2949
- ((f = t.widgets[h]) == null ? void 0 : f.widgetId) === -1 ? r({
2948
+ var m, p;
2949
+ ((m = t.widgets[h]) == null ? void 0 : m.widgetId) === -1 ? r({
2950
2950
  ...t,
2951
- widgets: ((g = t.widgets) == null ? void 0 : g.filter((x, m) => m !== h)) ?? []
2951
+ widgets: ((p = t.widgets) == null ? void 0 : p.filter((x, g) => g !== h)) ?? []
2952
2952
  }) : i(h, -1);
2953
2953
  }, [t, r, i]), c = T((h) => {
2954
- var f;
2954
+ var m;
2955
2955
  r({
2956
2956
  ...t,
2957
- widgets: ((f = t.widgets) == null ? void 0 : f.map((g, x) => x === h ? { ...g, fullWidth: !g.fullWidth } : g)) ?? []
2957
+ widgets: ((m = t.widgets) == null ? void 0 : m.map((p, x) => x === h ? { ...p, fullWidth: !p.fullWidth } : p)) ?? []
2958
2958
  });
2959
- }, [t, r]), u = T((h, f, g) => h ? /* @__PURE__ */ s.jsxs("div", { className: v(ne.widgetWrapper, {
2959
+ }, [t, r]), u = T((h, m, p) => h ? /* @__PURE__ */ s.jsxs("div", { className: v(ne.widgetWrapper, {
2960
2960
  [ne.widgetEdit]: o && h.id !== -1
2961
- }, { [ne.fullWidth]: g }), children: [
2961
+ }, { [ne.fullWidth]: p }), children: [
2962
2962
  o && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2963
- /* @__PURE__ */ s.jsx(X, { color: "danger", onClick: () => l(f), className: v(ne.removeIcon), children: /* @__PURE__ */ s.jsx(Lt, {}) }),
2964
- /* @__PURE__ */ s.jsx(X, { color: g ? "danger" : "primary", onClick: () => c(f), className: v(ne.fullWidthIcon), children: /* @__PURE__ */ s.jsx(wr, {}) })
2963
+ /* @__PURE__ */ s.jsx(X, { color: "danger", onClick: () => l(m), className: v(ne.removeIcon), children: /* @__PURE__ */ s.jsx(Lt, {}) }),
2964
+ /* @__PURE__ */ s.jsx(X, { color: p ? "danger" : "primary", onClick: () => c(m), className: v(ne.fullWidthIcon), children: /* @__PURE__ */ s.jsx(wr, {}) })
2965
2965
  ] }),
2966
- h.id === -1 ? o && /* @__PURE__ */ s.jsx("div", { className: ne.widgetWrapper, children: /* @__PURE__ */ s.jsx(Mt, { availableWidgets: n, onAdd: (x) => i(f, x), texts: e }) }) : h.render,
2966
+ h.id === -1 ? o && /* @__PURE__ */ s.jsx("div", { className: ne.widgetWrapper, children: /* @__PURE__ */ s.jsx(Mt, { availableWidgets: n, onAdd: (x) => i(m, x), texts: e }) }) : h.render,
2967
2967
  h.id > -1 && o && /* @__PURE__ */ s.jsx("div", { className: ne.widgetEditOverlay })
2968
- ] }, f) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
2968
+ ] }, m) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
2969
2969
  o,
2970
2970
  i,
2971
2971
  l,
@@ -2976,10 +2976,10 @@ const fa = "_button_1wjon_1", ma = "_filled_1wjon_7", pa = "_sm_1wjon_13", ga =
2976
2976
  return /* @__PURE__ */ s.jsxs("div", { className: ne.dashboard, children: [
2977
2977
  /* @__PURE__ */ s.jsx("div", { className: "mb-3 d-flex align-items-center justify-content-end", children: /* @__PURE__ */ s.jsx(qn, { as: "button", color: o ? "success" : "primary", icon: o ? /* @__PURE__ */ s.jsx(yr, {}) : /* @__PURE__ */ s.jsx(vr, {}), onClick: () => a(!o), children: o ? e.dashboardEditDone : e.dashboardEdit }) }),
2978
2978
  /* @__PURE__ */ s.jsxs("div", { className: ne.widgetsGrid, children: [
2979
- (d = t.widgets) == null ? void 0 : d.map((h, f) => u(n.find((g) => g.id === h.widgetId), f, h.fullWidth)),
2979
+ (d = t.widgets) == null ? void 0 : d.map((h, m) => u(n.find((p) => p.id === h.widgetId), m, h.fullWidth)),
2980
2980
  o && /* @__PURE__ */ s.jsx(Mt, { availableWidgets: n, onAdd: (h) => {
2981
- var f;
2982
- return i((f = t.widgets) == null ? void 0 : f.length, h);
2981
+ var m;
2982
+ return i((m = t.widgets) == null ? void 0 : m.length, h);
2983
2983
  }, texts: e })
2984
2984
  ] })
2985
2985
  ] });
@@ -3017,58 +3017,58 @@ const fa = "_button_1wjon_1", ma = "_filled_1wjon_7", pa = "_sm_1wjon_13", ga =
3017
3017
  function Ua(n, e, t) {
3018
3018
  var r = this, o = R(null), a = R(0), i = R(null), l = R([]), c = R(), u = R(), d = R(n), h = R(!0);
3019
3019
  d.current = n;
3020
- var f = typeof window < "u", g = !e && e !== 0 && f;
3020
+ var m = typeof window < "u", p = !e && e !== 0 && m;
3021
3021
  if (typeof n != "function")
3022
3022
  throw new TypeError("Expected a function");
3023
3023
  e = +e || 0;
3024
- var x = !!(t = t || {}).leading, m = !("trailing" in t) || !!t.trailing, p = "maxWait" in t, j = "debounceOnServer" in t && !!t.debounceOnServer, k = p ? Math.max(+t.maxWait || 0, e) : null;
3024
+ var x = !!(t = t || {}).leading, g = !("trailing" in t) || !!t.trailing, f = "maxWait" in t, b = "debounceOnServer" in t && !!t.debounceOnServer, _ = f ? Math.max(+t.maxWait || 0, e) : null;
3025
3025
  E(function() {
3026
3026
  return h.current = !0, function() {
3027
3027
  h.current = !1;
3028
3028
  };
3029
3029
  }, []);
3030
- var b = G(function() {
3030
+ var k = G(function() {
3031
3031
  var I = function(P) {
3032
3032
  var N = l.current, S = c.current;
3033
3033
  return l.current = c.current = null, a.current = P, u.current = d.current.apply(S, N);
3034
3034
  }, y = function(P, N) {
3035
- g && cancelAnimationFrame(i.current), i.current = g ? requestAnimationFrame(P) : setTimeout(P, N);
3036
- }, _ = function(P) {
3035
+ p && cancelAnimationFrame(i.current), i.current = p ? requestAnimationFrame(P) : setTimeout(P, N);
3036
+ }, j = function(P) {
3037
3037
  if (!h.current)
3038
3038
  return !1;
3039
3039
  var N = P - o.current;
3040
- return !o.current || N >= e || N < 0 || p && P - a.current >= k;
3040
+ return !o.current || N >= e || N < 0 || f && P - a.current >= _;
3041
3041
  }, C = function(P) {
3042
- return i.current = null, m && l.current ? I(P) : (l.current = c.current = null, u.current);
3042
+ return i.current = null, g && l.current ? I(P) : (l.current = c.current = null, u.current);
3043
3043
  }, $ = function P() {
3044
3044
  var N = Date.now();
3045
- if (_(N))
3045
+ if (j(N))
3046
3046
  return C(N);
3047
3047
  if (h.current) {
3048
- var S = e - (N - o.current), q = p ? Math.min(S, k - (N - a.current)) : S;
3048
+ var S = e - (N - o.current), q = f ? Math.min(S, _ - (N - a.current)) : S;
3049
3049
  y(P, q);
3050
3050
  }
3051
3051
  }, L = function() {
3052
- if (f || j) {
3053
- var P = Date.now(), N = _(P);
3052
+ if (m || b) {
3053
+ var P = Date.now(), N = j(P);
3054
3054
  if (l.current = [].slice.call(arguments), c.current = r, o.current = P, N) {
3055
3055
  if (!i.current && h.current)
3056
3056
  return a.current = o.current, y($, e), x ? I(o.current) : u.current;
3057
- if (p)
3057
+ if (f)
3058
3058
  return y($, e), I(o.current);
3059
3059
  }
3060
3060
  return i.current || y($, e), u.current;
3061
3061
  }
3062
3062
  };
3063
3063
  return L.cancel = function() {
3064
- i.current && (g ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), a.current = 0, l.current = o.current = c.current = i.current = null;
3064
+ i.current && (p ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), a.current = 0, l.current = o.current = c.current = i.current = null;
3065
3065
  }, L.isPending = function() {
3066
3066
  return !!i.current;
3067
3067
  }, L.flush = function() {
3068
3068
  return i.current ? C(Date.now()) : u.current;
3069
3069
  }, L;
3070
- }, [x, p, e, k, m, g, f, j]);
3071
- return b;
3070
+ }, [x, f, e, _, g, p, m, b]);
3071
+ return k;
3072
3072
  }
3073
3073
  function Va(n, e) {
3074
3074
  return n === e;
@@ -3105,17 +3105,17 @@ const za = "_wrapper_ov00y_1", Qa = "_open_ov00y_9", Xa = "_dropdown_ov00y_13",
3105
3105
  icon: ii,
3106
3106
  "clear-button": "_clear-button_ov00y_86",
3107
3107
  clearButton: ci
3108
- }, ht = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: o, onClickSelectedItem: a, onSearchQueryChange: i, texts: l, additionalColumns: c, autoHideSearch: u = !1, allItemsLength: d, disabled: h, isLoading: f = !1, inputRef: g }) => {
3108
+ }, ht = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: o, onClickSelectedItem: a, onSearchQueryChange: i, texts: l, additionalColumns: c, autoHideSearch: u = !1, allItemsLength: d, disabled: h, isLoading: m = !1, inputRef: p }) => {
3109
3109
  var Z;
3110
- const x = R(null), m = R(null), p = R(null), [j, k] = O(""), [b] = Yn(j, 500), [, I] = O(!1), y = (Z = g.current) == null ? void 0 : Z.getBoundingClientRect(), _ = (y == null ? void 0 : y.x) ?? 0, C = ((y == null ? void 0 : y.x) ?? 0) + ((y == null ? void 0 : y.width) ?? 0), $ = (y == null ? void 0 : y.y) ?? 0, L = ((y == null ? void 0 : y.y) ?? 0) + ((y == null ? void 0 : y.height) ?? 0), P = (y == null ? void 0 : y.width) ?? 0, N = (y == null ? void 0 : y.height) ?? 0, S = 5, q = G(() => _ ? _ > window.innerWidth / 2 : !1, [_]), H = G(() => $ ? $ > window.innerHeight / 2 : !1, [$]);
3110
+ const x = R(null), g = R(null), f = R(null), [b, _] = O(""), [k] = Yn(b, 500), [, I] = O(!1), y = (Z = p.current) == null ? void 0 : Z.getBoundingClientRect(), j = (y == null ? void 0 : y.x) ?? 0, C = ((y == null ? void 0 : y.x) ?? 0) + ((y == null ? void 0 : y.width) ?? 0), $ = (y == null ? void 0 : y.y) ?? 0, L = ((y == null ? void 0 : y.y) ?? 0) + ((y == null ? void 0 : y.height) ?? 0), P = (y == null ? void 0 : y.width) ?? 0, N = (y == null ? void 0 : y.height) ?? 0, S = 5, q = G(() => j ? j > window.innerWidth / 2 : !1, [j]), H = G(() => $ ? $ > window.innerHeight / 2 : !1, [$]);
3111
3111
  E(() => {
3112
3112
  var F;
3113
- n && ((F = p.current) == null || F.focus());
3114
- }, [p, n]), E(() => {
3115
- n || k("");
3113
+ n && ((F = f.current) == null || F.focus());
3114
+ }, [f, n]), E(() => {
3115
+ n || _("");
3116
3116
  }, [n]), E(() => {
3117
- i(b);
3118
- }, [b, i]);
3117
+ i(k);
3118
+ }, [k, i]);
3119
3119
  const K = T((F) => {
3120
3120
  switch (F.key) {
3121
3121
  case "Escape":
@@ -3129,20 +3129,20 @@ const za = "_wrapper_ov00y_1", Qa = "_open_ov00y_9", Xa = "_dropdown_ov00y_13",
3129
3129
  window.removeEventListener("scroll", U);
3130
3130
  }), [U]), E(() => (window.addEventListener("resize", U), () => {
3131
3131
  window.removeEventListener("resize", U);
3132
- }), [U]), zt(K), Qt([x, m], e);
3132
+ }), [U]), zt(K), Qt([x, g], e);
3133
3133
  const te = `calc(max(${P}px, ${c && (c == null ? void 0 : c.length) > 0 ? "250px" : "0px"}) + ${((c == null ? void 0 : c.length) ?? 0) * 100}px) `;
3134
3134
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3135
3135
  /* @__PURE__ */ s.jsx(Bn, { show: n, onClick: e }),
3136
- r && n && !h && /* @__PURE__ */ s.jsx("button", { ref: m, type: "button", className: v("luminus-dropdown-picker-clear-button", B.clearButton), onClick: () => !h && o(null), style: {
3136
+ r && n && !h && /* @__PURE__ */ s.jsx("button", { ref: g, type: "button", className: v("luminus-dropdown-picker-clear-button", B.clearButton), onClick: () => !h && o(null), style: {
3137
3137
  top: `calc(${$}px + ${N / 2}px - 12px)`,
3138
- left: `calc(${_}px - 24px - 8px)`
3138
+ left: `calc(${j}px - 24px - 8px)`
3139
3139
  }, children: /* @__PURE__ */ s.jsx(V, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(Lt, { size: 16 }) }) }),
3140
3140
  /* @__PURE__ */ s.jsx("div", { className: v("luminus-dropdown-picker", B.wrapper, {
3141
3141
  [B.open]: n
3142
3142
  }), style: {
3143
3143
  top: H ? `calc(${$}px - 50vh - 8px)` : `calc(${L}px + 8px)`,
3144
- left: q ? `calc(${C}px - ${te})` : _,
3145
- right: q ? `${C}px` : `calc(${_}px + ${te})`,
3144
+ left: q ? `calc(${C}px - ${te})` : j,
3145
+ right: q ? `${C}px` : `calc(${j}px + ${te})`,
3146
3146
  width: te,
3147
3147
  justifyContent: H ? "flex-end" : "flex-start"
3148
3148
  }, children: /* @__PURE__ */ s.jsxs("div", { ref: x, className: v("shadow rounded", B.dropdown), children: [
@@ -3153,11 +3153,11 @@ const za = "_wrapper_ov00y_1", Qa = "_open_ov00y_9", Xa = "_dropdown_ov00y_13",
3153
3153
  /* @__PURE__ */ s.jsx("div", { className: B.icon, children: /* @__PURE__ */ s.jsx(V, { variant: "caption", className: "text-primary align-items-center", children: /* @__PURE__ */ s.jsx(Ht, {}) }) })
3154
3154
  ] }),
3155
3155
  !h && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3156
- u && (d ?? t.length) <= S ? null : /* @__PURE__ */ s.jsx("div", { className: v("search-input-container border-bottom", B.searchInputContainer), children: /* @__PURE__ */ s.jsx(Q.Control, { ref: p, type: "search", size: "sm", className: B.searchInput, placeholder: l.searchPlaceholder, value: j, onChange: (F) => {
3156
+ u && (d ?? t.length) <= S ? null : /* @__PURE__ */ s.jsx("div", { className: v("search-input-container border-bottom", B.searchInputContainer), children: /* @__PURE__ */ s.jsx(Q.Control, { ref: f, type: "search", size: "sm", className: B.searchInput, placeholder: l.searchPlaceholder, value: b, onChange: (F) => {
3157
3157
  var w;
3158
- return k(((w = F.target) == null ? void 0 : w.value) ?? "");
3158
+ return _(((w = F.target) == null ? void 0 : w.value) ?? "");
3159
3159
  } }) }),
3160
- f ? /* @__PURE__ */ s.jsx("div", { className: B.loadingContainer, children: /* @__PURE__ */ s.jsx(lt, { animation: "border", variant: "primary" }) }) : t.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: v("items", B.itemsContainer), children: [
3160
+ m ? /* @__PURE__ */ s.jsx("div", { className: B.loadingContainer, children: /* @__PURE__ */ s.jsx(lt, { animation: "border", variant: "primary" }) }) : t.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: v("items", B.itemsContainer), children: [
3161
3161
  c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: v("header-row border-bottom", B.headerRow), children: [
3162
3162
  /* @__PURE__ */ s.jsx("div", { className: B.name }),
3163
3163
  c == null ? void 0 : c.map((F) => /* @__PURE__ */ s.jsx("div", { className: B.columnItem, children: /* @__PURE__ */ s.jsx(V, { variant: "caption", children: F.name }) }, F.key))
@@ -3216,8 +3216,8 @@ const ui = "_item_1dy8x_1", Hn = {
3216
3216
  item: Ci
3217
3217
  }, Ni = ({ show: n, query: e, onCancel: t, groups: r, isLoading: o, searchTypes: a }) => {
3218
3218
  const { LinkComponent: i, appSearchTexts: l } = D(ae), c = R(null), u = T((d) => {
3219
- var f;
3220
- const h = (f = a.find((g) => g.key === d.type)) == null ? void 0 : f.toPath;
3219
+ var m;
3220
+ const h = (m = a.find((p) => p.key === d.type)) == null ? void 0 : m.toPath;
3221
3221
  return h ? `${h}/${d.searchKey}` : "/not-found";
3222
3222
  }, [a]);
3223
3223
  return Qt([c], t), /* @__PURE__ */ s.jsx("div", { ref: c, className: v("luminus-app-search-dropdown shadow rounded", le.dropdown, {
@@ -3235,18 +3235,18 @@ const ui = "_item_1dy8x_1", Hn = {
3235
3235
  d.key.totalCount
3236
3236
  ] })
3237
3237
  ] }),
3238
- (h = d.items) == null ? void 0 : h.map((f, g) => /* @__PURE__ */ s.jsxs(
3238
+ (h = d.items) == null ? void 0 : h.map((m, p) => /* @__PURE__ */ s.jsxs(
3239
3239
  i,
3240
3240
  {
3241
- to: u(f),
3241
+ to: u(m),
3242
3242
  className: v("search-item d-flex gap-3 align-items-center justify-content-between", le.item),
3243
3243
  onClick: t,
3244
3244
  children: [
3245
- /* @__PURE__ */ s.jsx(V, { variant: "body2", className: "text-nowrap text-truncate", children: f.name }),
3245
+ /* @__PURE__ */ s.jsx(V, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
3246
3246
  /* @__PURE__ */ s.jsx(V, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(Ht, {}) })
3247
3247
  ]
3248
3248
  },
3249
- g
3249
+ p
3250
3250
  ))
3251
3251
  ] }, d.key.category);
3252
3252
  }) }) });
@@ -3276,19 +3276,19 @@ const ui = "_item_1dy8x_1", Hn = {
3276
3276
  c();
3277
3277
  }, [c]), { isLoading: r, searchItems: a };
3278
3278
  }, gc = ({ searchTypes: n, navigateFunction: e }) => {
3279
- const { appSearchTexts: t } = D(ae), [r, o] = O(n.length > 0 ? n[0] : null), [a, i] = O(""), [l, c] = Yn(a, 500), { isLoading: u, searchItems: d } = Mi(r, l), [h, f] = O(!1);
3279
+ const { appSearchTexts: t } = D(ae), [r, o] = O(n.length > 0 ? n[0] : null), [a, i] = O(""), [l, c] = Yn(a, 500), { isLoading: u, searchItems: d } = Mi(r, l), [h, m] = O(!1);
3280
3280
  return E(() => {
3281
- (d.length > 0 || u) && f(!0);
3282
- }, [d, u]), /* @__PURE__ */ s.jsx(Q, { onSubmit: (g) => {
3283
- g.preventDefault(), g.stopPropagation(), c.flush(), f(!1), a.length > 2 && e(`/search?query=${a}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
3281
+ (d.length > 0 || u) && m(!0);
3282
+ }, [d, u]), /* @__PURE__ */ s.jsx(Q, { onSubmit: (p) => {
3283
+ p.preventDefault(), p.stopPropagation(), c.flush(), m(!1), a.length > 2 && e(`/search?query=${a}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
3284
3284
  }, children: /* @__PURE__ */ s.jsxs(ze, { className: ue.inputGroup, children: [
3285
3285
  /* @__PURE__ */ s.jsx(ze.Text, { className: v("p-1 rounded", ue.inputGroupText, ue.left), children: /* @__PURE__ */ s.jsx(yi, { searchTypes: n, selectedType: r, setSelectedType: o }) }),
3286
- /* @__PURE__ */ s.jsx(Q.Control, { placeholder: t.searchPlaceholder, type: "text", size: "sm", className: v("luminus-app-search-input", ue.input), value: a, onChange: (g) => {
3286
+ /* @__PURE__ */ s.jsx(Q.Control, { placeholder: t.searchPlaceholder, type: "text", size: "sm", className: v("luminus-app-search-input", ue.input), value: a, onChange: (p) => {
3287
3287
  var x;
3288
- return i(((x = g.target) == null ? void 0 : x.value) ?? "");
3289
- }, onFocus: () => d.length > 0 && f(!0) }),
3288
+ return i(((x = p.target) == null ? void 0 : x.value) ?? "");
3289
+ }, onFocus: () => d.length > 0 && m(!0) }),
3290
3290
  /* @__PURE__ */ s.jsx(ze.Text, { className: v("p-0 rounded", ue.inputGroupText, ue.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: v("text-primary", ue.submitButton), children: /* @__PURE__ */ s.jsx(li, {}) }) }),
3291
- /* @__PURE__ */ s.jsx(Ni, { query: l, searchTypes: n, show: h, onCancel: () => f(!1), groups: d, isLoading: u })
3291
+ /* @__PURE__ */ s.jsx(Ni, { query: l, searchTypes: n, show: h, onCancel: () => m(!1), groups: d, isLoading: u })
3292
3292
  ] }) });
3293
3293
  }, Pi = "_card_1459b_1", Di = "_header_1459b_6", Ai = "_header-content_1459b_13", Fi = "_collapse-icon_1459b_19", Wi = "_collapsed_1459b_24", Ri = "_content_1459b_27", we = {
3294
3294
  card: Pi,
@@ -3343,25 +3343,25 @@ const ui = "_item_1dy8x_1", Hn = {
3343
3343
  }, Bn = ({ show: n, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: v("luminus-backdrop", Ft.backdrop, {
3344
3344
  [Ft.show]: n
3345
3345
  }), onClick: () => e && e() }), Xi = ({ show: n, onClose: e, photos: t, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: l }) => {
3346
- const c = R(null), [u, d] = O(r), h = t.at(u), f = u > 0, g = u < t.length - 1;
3346
+ const c = R(null), [u, d] = O(r), h = t.at(u), m = u > 0, p = u < t.length - 1;
3347
3347
  E(() => {
3348
3348
  n && d(r);
3349
3349
  }, [r, n]), E(() => {
3350
3350
  u >= t.length && d(t.length - 1);
3351
3351
  }, [t, u]);
3352
- const x = T((m) => {
3353
- switch (m.key) {
3352
+ const x = T((g) => {
3353
+ switch (g.key) {
3354
3354
  case "ArrowLeft":
3355
- m.stopPropagation(), f && d((p) => p - 1);
3355
+ g.stopPropagation(), m && d((f) => f - 1);
3356
3356
  break;
3357
3357
  case "ArrowRight":
3358
- m.stopPropagation(), g && d((p) => p + 1);
3358
+ g.stopPropagation(), p && d((f) => f + 1);
3359
3359
  break;
3360
3360
  case "Escape":
3361
- m.stopPropagation(), e();
3361
+ g.stopPropagation(), e();
3362
3362
  break;
3363
3363
  }
3364
- }, [g, f, e]);
3364
+ }, [p, m, e]);
3365
3365
  return zt(x), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3366
3366
  /* @__PURE__ */ s.jsx(Bn, { show: n, onClick: e }),
3367
3367
  /* @__PURE__ */ s.jsxs("div", { ref: c, className: v("luminus-lightbox rounded shadow", ee.lightbox, {
@@ -3369,32 +3369,32 @@ const ui = "_item_1dy8x_1", Hn = {
3369
3369
  }), children: [
3370
3370
  /* @__PURE__ */ s.jsxs("div", { className: ee.header, children: [
3371
3371
  /* @__PURE__ */ s.jsxs("div", { className: v("rounded", ee.photoActions), children: [
3372
- i && /* @__PURE__ */ s.jsx(Ln, { accept: ".jpg,.jpeg,.png", onUpload: (m) => {
3373
- m.length > 0 && i(Array.from(m));
3372
+ i && /* @__PURE__ */ s.jsx(Ln, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
3373
+ g.length > 0 && i(Array.from(g));
3374
3374
  }, icon: /* @__PURE__ */ s.jsx(Bt, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
3375
- h && (l == null ? void 0 : l.map(({ label: m, onClick: p, ...j }, k) => /* @__PURE__ */ s.jsx(
3375
+ h && (l == null ? void 0 : l.map(({ label: g, onClick: f, ...b }, _) => /* @__PURE__ */ s.jsx(
3376
3376
  qn,
3377
3377
  {
3378
- onClick: () => p(h.id),
3379
- ...j,
3380
- children: m
3378
+ onClick: () => f(h.id),
3379
+ ...b,
3380
+ children: g
3381
3381
  },
3382
- `action-${k}`
3382
+ `action-${_}`
3383
3383
  )))
3384
3384
  ] }),
3385
3385
  /* @__PURE__ */ s.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ s.jsx(xe, { style: { fontSize: "32px" } }) })
3386
3386
  ] }),
3387
3387
  t.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(V, { variant: "body", children: a ?? "No photos available" }) }),
3388
3388
  h && /* @__PURE__ */ s.jsxs("div", { className: ee.photoContainer, children: [
3389
- /* @__PURE__ */ s.jsx("div", { role: f ? "button" : void 0, className: v("align-items-start", ee.navButton), onClick: () => f && d((m) => m - 1), children: f && /* @__PURE__ */ s.jsx(ot, { style: { fontSize: "40px" } }) }),
3389
+ /* @__PURE__ */ s.jsx("div", { role: m ? "button" : void 0, className: v("align-items-start", ee.navButton), onClick: () => m && d((g) => g - 1), children: m && /* @__PURE__ */ s.jsx(ot, { style: { fontSize: "40px" } }) }),
3390
3390
  /* @__PURE__ */ s.jsx("img", { src: h.lgSrc, alt: h.alt, className: v("rounded", ee.photo) }),
3391
- /* @__PURE__ */ s.jsx("div", { role: g ? "button" : void 0, className: v("align-items-end", ee.navButton), onClick: () => g && d((m) => m + 1), children: g && /* @__PURE__ */ s.jsx(st, { style: { fontSize: "40px" } }) })
3391
+ /* @__PURE__ */ s.jsx("div", { role: p ? "button" : void 0, className: v("align-items-end", ee.navButton), onClick: () => p && d((g) => g + 1), children: p && /* @__PURE__ */ s.jsx(st, { style: { fontSize: "40px" } }) })
3392
3392
  ] }),
3393
- /* @__PURE__ */ s.jsx("div", { className: ee.photosPreview, children: t.map((m, p) => (
3393
+ /* @__PURE__ */ s.jsx("div", { className: ee.photosPreview, children: t.map((g, f) => (
3394
3394
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
3395
- /* @__PURE__ */ s.jsx("img", { role: p !== u ? "button" : void 0, src: m.smSrc, alt: m.alt, className: v("rounded", ee.photo, {
3396
- [ee.selected]: p === u
3397
- }), onClick: () => d(p) }, m.id)
3395
+ /* @__PURE__ */ s.jsx("img", { role: f !== u ? "button" : void 0, src: g.smSrc, alt: g.alt, className: v("rounded", ee.photo, {
3396
+ [ee.selected]: f === u
3397
+ }), onClick: () => d(f) }, g.id)
3398
3398
  )) })
3399
3399
  ] })
3400
3400
  ] });
@@ -3424,200 +3424,217 @@ const ui = "_item_1dy8x_1", Hn = {
3424
3424
  }, icon: /* @__PURE__ */ s.jsx(Bt, { style: { fontSize: 18 } }), multiple: !0, children: t ?? null }) : null;
3425
3425
  }, vc = ({ children: n }) => {
3426
3426
  const { NavigateComponent: e } = D(ae), { useMsal: t, msalScopes: r } = D(kr), { isAuthenticated: o } = jr(), { user: a } = D(Cr);
3427
- return t ? /* @__PURE__ */ s.jsx(ha, { interactionType: De.Popup, authenticationRequest: { scopes: r }, children: a && n }) : !o() || !a ? /* @__PURE__ */ s.jsx(e, { to: "/login", replace: !0 }) : n;
3427
+ return t ? /* @__PURE__ */ s.jsx(ha, { interactionType: De.Redirect, authenticationRequest: { scopes: r }, children: a && n }) : !o() || !a ? /* @__PURE__ */ s.jsx(e, { to: "/login", replace: !0 }) : n;
3428
3428
  }, xc = ({ heading: n, content: e, placement: t, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(Nr, { placement: t, overlay: /* @__PURE__ */ s.jsxs(Ue, { className: "luminus-tooltip", children: [
3429
3429
  /* @__PURE__ */ s.jsx(Ue.Header, { as: "h3", children: n }),
3430
3430
  /* @__PURE__ */ s.jsx(Ue.Body, { children: e })
3431
3431
  ] }), trigger: o ?? "hover", rootClose: !0, children: r }), bc = ({ InputContainer: n = qe, label: e, value: t, onChange: r, hidden: o, disabled: a, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ s.jsx(n, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, children: /* @__PURE__ */ s.jsx(Q.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: t, onChange: (u) => {
3432
3432
  var d;
3433
3433
  r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
3434
- }, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), _c = ({ InputContainer: n = qe, type: e, value: t, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: f, list: g, className: x }) => {
3435
- const m = e === "number", p = T(() => {
3434
+ }, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), _c = ({ InputContainer: n = qe, type: e, value: t, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: m, list: p, className: x }) => {
3435
+ const g = e === "number", f = T(() => {
3436
3436
  if (!r)
3437
3437
  return;
3438
- const _ = f ?? null;
3439
- r(m ? _ ? Number(_) : null : (_ == null ? void 0 : _.toString()) ?? "");
3440
- }, [f, m, r]), j = R(null), [k, b] = O((t == null ? void 0 : t.toString()) ?? ""), I = T((_) => {
3441
- const C = _;
3442
- r && (m && r(C ? parseInt(C, 10) : null), r(C || null));
3443
- }, [m, r]), y = T((_) => {
3438
+ const j = m ?? null;
3439
+ r(g ? j ? Number(j) : null : (j == null ? void 0 : j.toString()) ?? "");
3440
+ }, [m, g, r]), b = R(null), [_, k] = O((t == null ? void 0 : t.toString()) ?? ""), I = T((j) => {
3441
+ const C = j;
3442
+ r && (g && r(C ? parseInt(C, 10) : null), r(C || null));
3443
+ }, [g, r]), y = T((j) => {
3444
3444
  var $;
3445
- const C = ($ = _.target) == null ? void 0 : $.value;
3445
+ const C = ($ = j.target) == null ? void 0 : $.value;
3446
3446
  if (!o) {
3447
3447
  I(C);
3448
3448
  return;
3449
3449
  }
3450
- b(C), j.current !== null && window.clearTimeout(j.current), j.current = window.setTimeout(() => {
3450
+ k(C), b.current !== null && window.clearTimeout(b.current), b.current = window.setTimeout(() => {
3451
3451
  I(C);
3452
3452
  }, o);
3453
3453
  }, [o, I]);
3454
3454
  return E(() => {
3455
- b(t === null ? "" : t.toString());
3455
+ k(t === null ? "" : t.toString());
3456
3456
  }, [t]), /* @__PURE__ */ s.jsxs(n, { withoutLabel: i, label: a ?? "", hidden: u, children: [
3457
- /* @__PURE__ */ s.jsx(Q.Control, { type: e, placeholder: l ?? a, size: c, value: o ? k : t ?? "", onChange: y, className: x ?? "", hidden: u, disabled: d ?? !1, list: g }),
3458
- h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: p, children: /* @__PURE__ */ s.jsx(xe, {}) }) })
3457
+ /* @__PURE__ */ s.jsx(Q.Control, { type: e, placeholder: l ?? a, size: c, value: o ? _ : t ?? "", onChange: y, className: x ?? "", hidden: u, disabled: d ?? !1, list: p }),
3458
+ h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: f, children: /* @__PURE__ */ s.jsx(xe, {}) }) })
3459
3459
  ] });
3460
- }, kc = ({ InputContainer: n = qe, value: e, options: t, onChange: r, label: o, withoutLabel: a, isNumber: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: h, noSortOptions: f, className: g }) => {
3461
- const x = T(() => {
3460
+ }, kc = ({
3461
+ InputContainer: n = qe,
3462
+ value: e,
3463
+ options: t,
3464
+ onChange: r,
3465
+ label: o,
3466
+ withoutLabel: a,
3467
+ isNumber: i,
3468
+ size: l,
3469
+ hidden: c,
3470
+ disabled: u,
3471
+ showClearIcon: d,
3472
+ clearValue: h,
3473
+ noSortOptions: m,
3474
+ className: p,
3475
+ noEmptyOption: x
3476
+ // it will still add the empty option if there is no value provided or value is empty string or null
3477
+ }) => {
3478
+ const g = T(() => {
3462
3479
  if (!r)
3463
3480
  return;
3464
- const m = h ?? null;
3465
- r(i ? m ? Number(m) : null : (m == null ? void 0 : m.toString()) ?? "");
3481
+ const f = h ?? null;
3482
+ r(i ? f ? Number(f) : null : (f == null ? void 0 : f.toString()) ?? "");
3466
3483
  }, [h, i, r]);
3467
3484
  return /* @__PURE__ */ s.jsxs(n, { withoutLabel: a, label: o ?? "", hidden: c, children: [
3468
- /* @__PURE__ */ s.jsxs(Q.Select, { size: l, value: e ?? "", onChange: (m) => {
3469
- var j;
3485
+ /* @__PURE__ */ s.jsxs(Q.Select, { size: l, value: e ?? "", onChange: (f) => {
3486
+ var _;
3470
3487
  if (!r)
3471
3488
  return;
3472
- const p = (j = m.target) == null ? void 0 : j.value;
3473
- i && r(p ? parseInt(p, 10) : null), r(p || null);
3474
- }, className: g ?? "", hidden: c, disabled: u ?? !1, children: [
3475
- /* @__PURE__ */ s.jsx("option", { value: "" }),
3476
- t == null ? void 0 : t.sort((m, p) => f ? 0 : (m.name ?? "").localeCompare(p.name ?? "")).map((m) => /* @__PURE__ */ s.jsx("option", { value: m.id ?? "", children: m.name }, m.id))
3489
+ const b = (_ = f.target) == null ? void 0 : _.value;
3490
+ i && r(b ? parseInt(b, 10) : null), r(b || null);
3491
+ }, className: p ?? "", hidden: c, disabled: u ?? !1, children: [
3492
+ x && !(e == null || e === "") ? void 0 : /* @__PURE__ */ s.jsx("option", { value: "" }),
3493
+ t == null ? void 0 : t.sort((f, b) => m ? 0 : (f.name ?? "").localeCompare(b.name ?? "")).map((f) => /* @__PURE__ */ s.jsx("option", { value: f.id ?? "", children: f.name }, f.id))
3477
3494
  ] }),
3478
- d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ s.jsx(xe, {}) }) })
3495
+ d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ s.jsx(xe, {}) }) })
3479
3496
  ] });
3480
- }, jc = ({ InputContainer: n = qe, items: e, defaultSelection: t, onClickSelectedItem: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, additionalColumns: f, hidden: g, disabled: x }) => {
3481
- var _, C;
3482
- const [m, p] = O(t), [j, k] = O(!1);
3497
+ }, jc = ({ InputContainer: n = qe, items: e, defaultSelection: t, onClickSelectedItem: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, additionalColumns: m, hidden: p, disabled: x }) => {
3498
+ var j, C;
3499
+ const [g, f] = O(t), [b, _] = O(!1);
3483
3500
  E(() => {
3484
- p(t);
3501
+ f(t);
3485
3502
  }, [t]);
3486
- const b = T(($) => {
3487
- p($);
3503
+ const k = T(($) => {
3504
+ f($);
3488
3505
  }, []), I = T(($) => {
3489
- k(!1), b($);
3490
- }, [b]);
3506
+ _(!1), k($);
3507
+ }, [k]);
3491
3508
  E(() => {
3492
- c && c(m);
3493
- }, [m, c]);
3509
+ c && c(g);
3510
+ }, [g, c]);
3494
3511
  const y = R(null);
3495
- return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { withoutLabel: d, label: u ?? "", hidden: g, inputContainerClassName: v({ "luminus-dropdown-select-open": j }), children: [
3496
- /* @__PURE__ */ s.jsxs(Q.Select, { ref: y, size: h, value: (m == null ? void 0 : m.id) ?? "", onChange: ($) => p({
3512
+ return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { withoutLabel: d, label: u ?? "", hidden: p, inputContainerClassName: v({ "luminus-dropdown-select-open": b }), children: [
3513
+ /* @__PURE__ */ s.jsxs(Q.Select, { ref: y, size: h, value: (g == null ? void 0 : g.id) ?? "", onChange: ($) => f({
3497
3514
  id: l ? Number($.target.value) ?? null : $.target.value,
3498
3515
  name: ""
3499
3516
  }), onMouseDown: ($) => {
3500
3517
  $.currentTarget.focus(), $.preventDefault();
3501
3518
  }, onClick: () => {
3502
- k(!0);
3503
- }, disabled: x && r === void 0, className: v({ "luminus-dropdown-picker-disabled": x }), hidden: g, children: [
3519
+ _(!0);
3520
+ }, disabled: x && r === void 0, className: v({ "luminus-dropdown-picker-disabled": x }), hidden: p, children: [
3504
3521
  /* @__PURE__ */ s.jsx("option", { value: "" }),
3505
- t && /* @__PURE__ */ s.jsx("option", { value: t.id ?? void 0, children: t.name && ((_ = t.name) == null ? void 0 : _.length) > 0 ? t.name : t.id }),
3506
- m && /* @__PURE__ */ s.jsx("option", { value: m.id ?? void 0, children: m.name && ((C = m.name) == null ? void 0 : C.length) > 0 ? m.name : m.id })
3522
+ t && /* @__PURE__ */ s.jsx("option", { value: t.id ?? void 0, children: t.name && ((j = t.name) == null ? void 0 : j.length) > 0 ? t.name : t.id }),
3523
+ g && /* @__PURE__ */ s.jsx("option", { value: g.id ?? void 0, children: g.name && ((C = g.name) == null ? void 0 : C.length) > 0 ? g.name : g.id })
3507
3524
  ] }),
3508
- y.current && /* @__PURE__ */ s.jsx(ht, { show: j, onCancel: () => k(!1), items: e, currentSelection: m, onSelectionChange: I, onClickSelectedItem: r, onSearchQueryChange: o, texts: a, additionalColumns: f, isLoading: i, disabled: x, inputRef: y })
3525
+ y.current && /* @__PURE__ */ s.jsx(ht, { show: b, onCancel: () => _(!1), items: e, currentSelection: g, onSelectionChange: I, onClickSelectedItem: r, onSearchQueryChange: o, texts: a, additionalColumns: m, isLoading: i, disabled: x, inputRef: y })
3509
3526
  ] }) });
3510
3527
  }, Cc = ({ InputContainer: n = fe, formField: e, label: t, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c }) => {
3511
- const { register: u, formState: d, setValue: h } = ie(), [f, g] = O(void 0);
3528
+ const { register: u, formState: d, setValue: h } = ie(), [m, p] = O(void 0);
3512
3529
  E(() => {
3513
- const m = e.split(".");
3514
- let p = d.errors;
3515
- m.forEach((j) => {
3516
- p !== void 0 && (p = p[j]);
3517
- }), g(p);
3530
+ const g = e.split(".");
3531
+ let f = d.errors;
3532
+ g.forEach((b) => {
3533
+ f !== void 0 && (f = f[b]);
3534
+ }), p(f);
3518
3535
  }, [d, e]);
3519
- const x = f !== void 0;
3536
+ const x = m !== void 0;
3520
3537
  return /* @__PURE__ */ s.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid: x, withoutLabel: c, children: [
3521
3538
  /* @__PURE__ */ s.jsx(Q.Check, { id: `check-${e}`, type: o ?? "checkbox", label: `${t}${a ? " *" : ""}`, ...u(e, {
3522
3539
  onChange: () => {
3523
- r && r.forEach((m) => h(m, null));
3540
+ r && r.forEach((g) => h(g, null));
3524
3541
  }
3525
3542
  }), isInvalid: x, hidden: i, disabled: l }),
3526
- f && /* @__PURE__ */ s.jsx(me, { message: f.message })
3543
+ m && /* @__PURE__ */ s.jsx(me, { message: m.message })
3527
3544
  ] });
3528
3545
  }, Nc = ({ InputContainer: n = fe, label: e, formField: t, options: r, resetsFields: o, required: a, disabled: i, hidden: l }) => {
3529
- const { register: c, formState: u, setValue: d, watch: h } = ie(), [f, g] = O(void 0), x = G(() => r, [r]);
3546
+ const { register: c, formState: u, setValue: d, watch: h } = ie(), [m, p] = O(void 0), x = G(() => r, [r]);
3530
3547
  E(() => {
3531
- const p = t.split(".");
3532
- let j = u.errors;
3533
- p.forEach((k) => {
3534
- j !== void 0 && (j = j[k]);
3535
- }), g(j);
3548
+ const f = t.split(".");
3549
+ let b = u.errors;
3550
+ f.forEach((_) => {
3551
+ b !== void 0 && (b = b[_]);
3552
+ }), p(b);
3536
3553
  }, [u, t]);
3537
- const m = f !== void 0;
3538
- return /* @__PURE__ */ s.jsxs(n, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: m, children: [
3539
- x.map((p) => /* @__PURE__ */ s.jsx(Q.Check, { id: `radio-${p.id}`, label: p.name, type: "radio", value: p.id ?? "", checked: h(t) === p.id, ...c(t, {
3554
+ const g = m !== void 0;
3555
+ return /* @__PURE__ */ s.jsxs(n, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: g, children: [
3556
+ x.map((f) => /* @__PURE__ */ s.jsx(Q.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: h(t) === f.id, ...c(t, {
3540
3557
  onChange: () => {
3541
- o && o.forEach((j) => d(j, null));
3558
+ o && o.forEach((b) => d(b, null));
3542
3559
  }
3543
- }), isInvalid: m, hidden: l, disabled: i }, p.id)),
3544
- f && /* @__PURE__ */ s.jsx(me, { message: f.message })
3560
+ }), isInvalid: g, hidden: l, disabled: i }, f.id)),
3561
+ m && /* @__PURE__ */ s.jsx(me, { message: m.message })
3545
3562
  ] });
3546
- }, $c = ({ InputContainer: n = fe, formField: e, label: t, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, height: d, rows: h, withoutLabel: f }) => {
3547
- const { register: g, formState: x, setValue: m, watch: p } = ie(), [j, k] = O(void 0), b = T(() => {
3548
- const _ = i ?? null;
3549
- m(e, (_ == null ? void 0 : _.toString()) ?? "");
3550
- }, [i, m, e]), I = T(() => {
3551
- const _ = e.split(".");
3563
+ }, $c = ({ InputContainer: n = fe, formField: e, label: t, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, height: d, rows: h, withoutLabel: m }) => {
3564
+ const { register: p, formState: x, setValue: g, watch: f } = ie(), [b, _] = O(void 0), k = T(() => {
3565
+ const j = i ?? null;
3566
+ g(e, (j == null ? void 0 : j.toString()) ?? "");
3567
+ }, [i, g, e]), I = T(() => {
3568
+ const j = e.split(".");
3552
3569
  let C = x.errors;
3553
- _.forEach(($) => {
3570
+ j.forEach(($) => {
3554
3571
  C !== void 0 && (C = C[$]);
3555
- }), k(C);
3572
+ }), _(C);
3556
3573
  }, [x, e]);
3557
3574
  E(() => {
3558
3575
  I();
3559
3576
  }, [I]);
3560
- const y = j !== void 0;
3561
- return /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid: y, children: [
3562
- /* @__PURE__ */ s.jsx(Q.Control, { as: "textarea", size: o, ...g(e, {
3577
+ const y = b !== void 0;
3578
+ return /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: m, isInvalid: y, children: [
3579
+ /* @__PURE__ */ s.jsx(Q.Control, { as: "textarea", size: o, ...p(e, {
3563
3580
  onChange: () => {
3564
- r && r.forEach((_) => m(_, null));
3581
+ r && r.forEach((j) => g(j, null));
3565
3582
  }
3566
3583
  }), isInvalid: y, hidden: c, disabled: u, rows: h, style: {
3567
3584
  height: d ? `${d}px !important` : void 0,
3568
3585
  minHeight: d ? `${d}px !important` : void 0
3569
3586
  } }),
3570
- a && p(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
3571
- j && /* @__PURE__ */ s.jsx(me, { message: j.message })
3587
+ a && f(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
3588
+ b && /* @__PURE__ */ s.jsx(me, { message: b.message })
3572
3589
  ] });
3573
- }, Ic = ({ InputContainer: n = fe, type: e, formField: t, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: f, list: g }) => {
3574
- const { register: x, formState: m, setValue: p, watch: j } = ie(), [k, b] = O(void 0), I = T(() => {
3590
+ }, Ic = ({ InputContainer: n = fe, type: e, formField: t, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: m, list: p }) => {
3591
+ const { register: x, formState: g, setValue: f, watch: b } = ie(), [_, k] = O(void 0), I = T(() => {
3575
3592
  const C = c ?? null;
3576
- e === "number" ? p(t, C !== null ? Number(C) : null) : p(t, (C == null ? void 0 : C.toString()) ?? "");
3577
- }, [c, e, p, t]), y = T(() => {
3593
+ e === "number" ? f(t, C !== null ? Number(C) : null) : f(t, (C == null ? void 0 : C.toString()) ?? "");
3594
+ }, [c, e, f, t]), y = T(() => {
3578
3595
  const C = t.split(".");
3579
- let $ = m.errors;
3596
+ let $ = g.errors;
3580
3597
  C.forEach((L) => {
3581
3598
  $ !== void 0 && ($ = $[L]);
3582
- }), b($);
3583
- }, [m, t]);
3599
+ }), k($);
3600
+ }, [g, t]);
3584
3601
  E(() => {
3585
3602
  y();
3586
3603
  }, [y]);
3587
- const _ = k !== void 0;
3588
- return /* @__PURE__ */ s.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: f, isInvalid: _, children: [
3604
+ const j = _ !== void 0;
3605
+ return /* @__PURE__ */ s.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: j, children: [
3589
3606
  /* @__PURE__ */ s.jsx(Q.Control, { type: e, placeholder: o ?? r, size: a, ...x(t, {
3590
3607
  setValueAs: (C) => e === "number" ? C == null || C === "" ? null : parseInt(C, 10) : C == null || C === "" ? null : C,
3591
3608
  onChange: () => {
3592
- i && i.forEach((C) => p(C, null, { shouldDirty: !0, shouldValidate: !0 }));
3609
+ i && i.forEach((C) => f(C, null, { shouldDirty: !0, shouldValidate: !0 }));
3593
3610
  }
3594
- }), isInvalid: _, hidden: d, disabled: h, list: g }),
3595
- l && j(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: I, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
3596
- k && /* @__PURE__ */ s.jsx(me, { message: k.message })
3611
+ }), isInvalid: j, hidden: d, disabled: h, list: p }),
3612
+ l && b(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: I, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
3613
+ _ && /* @__PURE__ */ s.jsx(me, { message: _.message })
3597
3614
  ] });
3598
- }, Tc = ({ InputContainer: n = fe, formField: e, label: t, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, onClickSelectedItem: f, texts: g, isLoading: x, withoutLabel: m, additionalColumns: p }) => {
3599
- const { formState: j, setValue: k, watch: b, control: I } = ie(), [y, _] = O(void 0), [C, $] = O(!1), [L, P] = O(!1), N = b(e) ?? null, S = N === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : b(`${e}-DropdownName`), q = G(() => N == null ? null : { id: N ?? null, name: S ?? "" }, [N, S]), H = T(() => {
3615
+ }, Tc = ({ InputContainer: n = fe, formField: e, label: t, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, onClickSelectedItem: m, texts: p, isLoading: x, withoutLabel: g, additionalColumns: f }) => {
3616
+ const { formState: b, setValue: _, watch: k, control: I } = ie(), [y, j] = O(void 0), [C, $] = O(!1), [L, P] = O(!1), N = k(e) ?? null, S = N === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : k(`${e}-DropdownName`), q = G(() => N == null ? null : { id: N ?? null, name: S ?? "" }, [N, S]), H = T(() => {
3600
3617
  const w = e.split(".");
3601
- let W = j.errors;
3618
+ let W = b.errors;
3602
3619
  w.forEach((ce) => {
3603
3620
  W !== void 0 && (W = W[ce]);
3604
- }), _(W);
3605
- }, [j, e]), K = T((w) => {
3621
+ }), j(W);
3622
+ }, [b, e]), K = T((w) => {
3606
3623
  if ((w == null ? void 0 : w.id) === N)
3607
3624
  return;
3608
- if (a && a.forEach((ce) => k(ce, null, { shouldDirty: !0, shouldValidate: !0 })), w === null) {
3609
- k(e, null, {
3625
+ if (a && a.forEach((ce) => _(ce, null, { shouldDirty: !0, shouldValidate: !0 })), w === null) {
3626
+ _(e, null, {
3610
3627
  shouldDirty: !0,
3611
3628
  shouldValidate: L
3612
- }), k(`${e}-DropdownName`, null);
3629
+ }), _(`${e}-DropdownName`, null);
3613
3630
  return;
3614
3631
  }
3615
3632
  let W = null;
3616
- i ? W = (w == null ? void 0 : w.id) !== null && (w == null ? void 0 : w.id) !== "" ? parseInt(w.id.toString(), 10) : null : W = w.id === null || w.id === void 0 || w.id === "" ? null : w.id, k(e, W, {
3633
+ i ? W = (w == null ? void 0 : w.id) !== null && (w == null ? void 0 : w.id) !== "" ? parseInt(w.id.toString(), 10) : null : W = w.id === null || w.id === void 0 || w.id === "" ? null : w.id, _(e, W, {
3617
3634
  shouldDirty: !0,
3618
3635
  shouldValidate: L
3619
- }), k(`${e}-DropdownName`, w.name ?? "");
3620
- }, [k, e, L, i, a, N]), U = T((w) => {
3636
+ }), _(`${e}-DropdownName`, w.name ?? "");
3637
+ }, [_, e, L, i, a, N]), U = T((w) => {
3621
3638
  $(!1), K(w);
3622
3639
  }, [K]), te = T(() => {
3623
3640
  $(!1);
@@ -3625,68 +3642,68 @@ const ui = "_item_1dy8x_1", Hn = {
3625
3642
  E(() => {
3626
3643
  H();
3627
3644
  }, [H]), E(() => {
3628
- j.isSubmitted && P(!0);
3629
- }, [j]);
3645
+ b.isSubmitted && P(!0);
3646
+ }, [b]);
3630
3647
  const Z = R(null), F = y !== void 0;
3631
- return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: m, isInvalid: F, inputContainerClassName: v({ "luminus-dropdown-select-open": C }), children: [
3648
+ return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: g, isInvalid: F, inputContainerClassName: v({ "luminus-dropdown-select-open": C }), children: [
3632
3649
  /* @__PURE__ */ s.jsx(Vt, { control: I, name: e, render: () => /* @__PURE__ */ s.jsx(Q.Select, { size: r, onMouseDown: (w) => {
3633
3650
  w.currentTarget.focus(), w.preventDefault();
3634
3651
  }, onClick: () => {
3635
3652
  $(!0);
3636
3653
  }, ref: Z, value: N ?? "", onChange: () => {
3637
- }, isInvalid: F, hidden: c, disabled: u && f === void 0, className: v({ "luminus-dropdown-picker-disabled": u }), children: /* @__PURE__ */ s.jsx("option", { value: N, children: (S == null ? void 0 : S.length) > 0 ? S : N }) }) }),
3654
+ }, isInvalid: F, hidden: c, disabled: u && m === void 0, className: v({ "luminus-dropdown-picker-disabled": u }), children: /* @__PURE__ */ s.jsx("option", { value: N, children: (S == null ? void 0 : S.length) > 0 ? S : N }) }) }),
3638
3655
  y && /* @__PURE__ */ s.jsx(me, { message: y.message }),
3639
- Z.current && /* @__PURE__ */ s.jsx(ht, { show: C, onCancel: te, items: d, currentSelection: q, onSelectionChange: U, onClickSelectedItem: f, onSearchQueryChange: h, texts: g, additionalColumns: p, isLoading: x, disabled: u, inputRef: Z })
3656
+ Z.current && /* @__PURE__ */ s.jsx(ht, { show: C, onCancel: te, items: d, currentSelection: q, onSelectionChange: U, onClickSelectedItem: m, onSearchQueryChange: h, texts: p, additionalColumns: f, isLoading: x, disabled: u, inputRef: Z })
3640
3657
  ] }) });
3641
3658
  }, Sc = ({ InputContainer: n = fe, label: e, formField: t, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h }) => {
3642
- const { watch: f, setValue: g, register: x, formState: m } = ie(), [p, j] = O(void 0), k = T(() => {
3643
- g(t, "");
3644
- }, [g, t]), b = T(() => {
3659
+ const { watch: m, setValue: p, register: x, formState: g } = ie(), [f, b] = O(void 0), _ = T(() => {
3660
+ p(t, "");
3661
+ }, [p, t]), k = T(() => {
3645
3662
  const y = t.split(".");
3646
- let _ = m.errors;
3663
+ let j = g.errors;
3647
3664
  y.forEach((C) => {
3648
- _ !== void 0 && (_ = _[C]);
3649
- }), j(_);
3650
- }, [m, t]);
3651
- E(b, [b]);
3652
- const I = p !== void 0;
3665
+ j !== void 0 && (j = j[C]);
3666
+ }), b(j);
3667
+ }, [g, t]);
3668
+ E(k, [k]);
3669
+ const I = f !== void 0;
3653
3670
  return /* @__PURE__ */ s.jsxs(n, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: I, children: [
3654
3671
  /* @__PURE__ */ s.jsx(Tn, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: I, hidden: r, disabled: i, ...x(t, {
3655
3672
  onChange: () => {
3656
- c && c.forEach((y) => g(y, null));
3673
+ c && c.forEach((y) => p(y, null));
3657
3674
  }
3658
3675
  }) }),
3659
- l && f(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
3660
- p && /* @__PURE__ */ s.jsx(me, { message: p.message })
3676
+ l && m(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: _, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
3677
+ f && /* @__PURE__ */ s.jsx(me, { message: f.message })
3661
3678
  ] });
3662
3679
  }, Ec = ({ children: n, onStorno: e }) => {
3663
3680
  const { formState: t } = ie(), [r, o] = O(!1);
3664
3681
  return E(() => {
3665
3682
  o(Object.keys(t.dirtyFields).length > 0);
3666
3683
  }, [t]), r ? /* @__PURE__ */ s.jsx(xa, { onStorno: e, children: n }) : null;
3667
- }, Oc = ({ InputContainer: n = fe, options: e, formField: t, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: f }) => {
3668
- const { customSelectTexts: g } = D(ae), { formState: x, setValue: m, watch: p, control: j } = ie(), [k, b] = O(void 0), [I, y] = O(!1), [_, C] = O(!1), [$, L] = O(""), P = p(t), N = G(() => e.find((w) => w.id === P) ?? null, [e, P]), S = T(() => {
3684
+ }, Oc = ({ InputContainer: n = fe, options: e, formField: t, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: m }) => {
3685
+ const { customSelectTexts: p } = D(ae), { formState: x, setValue: g, watch: f, control: b } = ie(), [_, k] = O(void 0), [I, y] = O(!1), [j, C] = O(!1), [$, L] = O(""), P = f(t), N = G(() => e.find((w) => w.id === P) ?? null, [e, P]), S = T(() => {
3669
3686
  const w = t.split(".");
3670
3687
  let W = x.errors;
3671
3688
  w.forEach((ce) => {
3672
3689
  W !== void 0 && (W = W[ce]);
3673
- }), b(W);
3690
+ }), k(W);
3674
3691
  }, [x, t]), q = T((w) => {
3675
3692
  if ((w == null ? void 0 : w.id) === P)
3676
3693
  return;
3677
- if (a && a.forEach((ce) => m(ce, null, { shouldDirty: !0, shouldValidate: !0 })), w === null) {
3678
- m(t, null, {
3694
+ if (a && a.forEach((ce) => g(ce, null, { shouldDirty: !0, shouldValidate: !0 })), w === null) {
3695
+ g(t, null, {
3679
3696
  shouldDirty: !0,
3680
- shouldValidate: _
3697
+ shouldValidate: j
3681
3698
  });
3682
3699
  return;
3683
3700
  }
3684
3701
  let W = null;
3685
- i ? W = (w == null ? void 0 : w.id) !== null && (w == null ? void 0 : w.id) !== "" ? parseInt(w.id.toString(), 10) : null : W = w.id === null || w.id === void 0 || w.id === "" ? null : w.id, m(t, W, {
3702
+ i ? W = (w == null ? void 0 : w.id) !== null && (w == null ? void 0 : w.id) !== "" ? parseInt(w.id.toString(), 10) : null : W = w.id === null || w.id === void 0 || w.id === "" ? null : w.id, g(t, W, {
3686
3703
  shouldDirty: !0,
3687
- shouldValidate: _
3704
+ shouldValidate: j
3688
3705
  });
3689
- }, [m, t, i, a, P, _]), H = T((w) => {
3706
+ }, [g, t, i, a, P, j]), H = T((w) => {
3690
3707
  y(!1), q(w);
3691
3708
  }, [q]), K = T((w) => {
3692
3709
  L(w);
@@ -3698,23 +3715,23 @@ const ui = "_item_1dy8x_1", Hn = {
3698
3715
  }, [x]);
3699
3716
  const U = T((w) => {
3700
3717
  var W;
3701
- return w === null ? "" : !w.name || w.name.length === 0 ? ((W = w.id) == null ? void 0 : W.toString()) ?? "" : f ? `${w.name} (${w.id})` : w.name;
3702
- }, [f]), te = G(() => e.map((w) => ({
3718
+ return w === null ? "" : !w.name || w.name.length === 0 ? ((W = w.id) == null ? void 0 : W.toString()) ?? "" : m ? `${w.name} (${w.id})` : w.name;
3719
+ }, [m]), te = G(() => e.map((w) => ({
3703
3720
  id: w.id,
3704
3721
  name: U(w)
3705
3722
  })).filter((w) => {
3706
3723
  var W;
3707
3724
  return $ ? (W = w.name) == null ? void 0 : W.toLowerCase().includes($.toLowerCase()) : !0;
3708
- }).sort((w, W) => h ? 0 : (w.name ?? "").localeCompare(W.name ?? "")), [e, h, $, U]), Z = R(null), F = k !== void 0;
3725
+ }).sort((w, W) => h ? 0 : (w.name ?? "").localeCompare(W.name ?? "")), [e, h, $, U]), Z = R(null), F = _ !== void 0;
3709
3726
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: F, inputContainerClassName: v({ "luminus-dropdown-select-open": I }), children: [
3710
- /* @__PURE__ */ s.jsx(Vt, { control: j, name: t, render: () => /* @__PURE__ */ s.jsx(Q.Select, { size: o, onMouseDown: (w) => {
3727
+ /* @__PURE__ */ s.jsx(Vt, { control: b, name: t, render: () => /* @__PURE__ */ s.jsx(Q.Select, { size: o, onMouseDown: (w) => {
3711
3728
  w.currentTarget.focus(), w.preventDefault();
3712
3729
  }, onClick: () => {
3713
3730
  y(!0);
3714
3731
  }, ref: Z, value: P ?? "", onChange: () => {
3715
3732
  }, isInvalid: F, hidden: c, disabled: u, children: /* @__PURE__ */ s.jsx("option", { value: (N == null ? void 0 : N.id) ?? "", children: U(N) }) }) }),
3716
- k && /* @__PURE__ */ s.jsx(me, { message: k.message }),
3717
- Z.current && /* @__PURE__ */ s.jsx(ht, { show: I, onCancel: () => y(!1), items: te, currentSelection: N ?? null, onSelectionChange: H, onSearchQueryChange: K, texts: g, disabled: u, inputRef: Z, autoHideSearch: !0, allItemsLength: e.length })
3733
+ _ && /* @__PURE__ */ s.jsx(me, { message: _.message }),
3734
+ Z.current && /* @__PURE__ */ s.jsx(ht, { show: I, onCancel: () => y(!1), items: te, currentSelection: N ?? null, onSelectionChange: H, onSearchQueryChange: K, texts: p, disabled: u, inputRef: Z, autoHideSearch: !0, allItemsLength: e.length })
3718
3735
  ] }) });
3719
3736
  }, Mc = ({ cell: { value: n } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: n ? /* @__PURE__ */ s.jsx($r, { name: n, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), Ji = "_tab-panel_so0nf_1", Zi = "_full-height-no-overflow_so0nf_5", Wt = {
3720
3737
  "tab-panel": "_tab-panel_so0nf_1",