react-luminus-components 1.3.223 → 1.3.225

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,20 +1,20 @@
1
- import { j as s, c as I, t as Ae, s as so, g as lo, m as Dc, d as Yr, a as Nc, b as Ec, e as vt, f as va, h as Cc, i as Sc, k as Ic, l as jc, n as _c, o as Oc, p as Pc, T as Xi, q as Ji, r as co, E as Ac, u as Qi, v as ga, w as Zi, x as Tc, y as Ce, z as ma, F as es, A as Rc, S as Zn, N as ts, B as ha, C as ba, D as xa, G as kc, H as Bc, I as Lc, J as Mc, K as Fc, L as rs, M as $c, O as Vc, P as Gc, Q as Wc, R as Uc, U as Hc, V as zc, W as qc, X as Yc, Y as ea, Z as Kc, _ as Xc, $ as ge, a0 as Qr, a1 as Jc, a2 as Qc, a3 as Zc, a4 as ns, a5 as ed, a6 as vr, a7 as de, a8 as ya, a9 as Ie, aa as wa, ab as td, ac as dt, ad as Lt, ae as rd, af as pt, ag as ae, ah as as, ai as os, aj as is, ak as st, al as Mt, am as nd, an as ad, ao as od, ap as id, aq as dn, ar as Nt, as as jr, at as _r, au as ss, av as We, aw as ls, ax as sd, ay as ld, az as cd, aA as Kt, aB as Xt, aC as Or, aD as Ue, aE as cs, aF as gr, aG as Et, aH as Pr, aI as un, aJ as ds, aK as tt, aL as dd, aM as us, aN as ud, aO as ps, aP as pd, aQ as fd, aR as vd, aS as gd, aT as md, aU as hd, aV as it, aW as bd, aX as xd, aY as Zr, aZ as ne, a_ as fs, a$ as vs, b0 as yd, b1 as wd, b2 as Dd, b3 as Nd, b4 as Ed, b5 as Cd, b6 as ht, b7 as Sd, b8 as Id, b9 as jd, ba as _d, bb as Od, bc as Cn, bd as Vt, be as Pd, bf as Ad, bg as Td, bh as uo, bi as Rd } from "./nivo-bar.es-DZ4VU2jA.js";
2
- import { bm as RD, bn as kD, bk as BD, bj as LD, bo as MD, bp as FD, bl as $D } from "./nivo-bar.es-DZ4VU2jA.js";
1
+ import { j as s, c as I, t as Te, s as so, g as lo, m as Dc, d as Yr, a as Nc, b as Ec, e as vt, f as va, h as Cc, i as Sc, k as Ic, l as jc, n as _c, o as Oc, p as Pc, T as Xi, q as Ji, r as co, E as Tc, u as Qi, v as ga, w as Zi, x as Ac, y as Ce, z as ma, F as es, A as Rc, S as Zn, N as ts, B as ha, C as ba, D as xa, G as kc, H as Bc, I as Lc, J as Mc, K as Fc, L as rs, M as $c, O as Vc, P as Gc, Q as Wc, R as Uc, U as Hc, V as zc, W as qc, X as Yc, Y as ea, Z as Kc, _ as Xc, $ as ge, a0 as Qr, a1 as Jc, a2 as Qc, a3 as Zc, a4 as ns, a5 as ed, a6 as vr, a7 as de, a8 as ya, a9 as Ie, aa as wa, ab as td, ac as dt, ad as Lt, ae as rd, af as pt, ag as ae, ah as as, ai as os, aj as is, ak as st, al as Mt, am as nd, an as ad, ao as od, ap as id, aq as dn, ar as Nt, as as jr, at as _r, au as ss, av as We, aw as ls, ax as sd, ay as ld, az as cd, aA as Kt, aB as Xt, aC as Or, aD as Ue, aE as cs, aF as gr, aG as Et, aH as Pr, aI as un, aJ as ds, aK as tt, aL as dd, aM as us, aN as ud, aO as ps, aP as pd, aQ as fd, aR as vd, aS as gd, aT as md, aU as hd, aV as it, aW as bd, aX as xd, aY as Zr, aZ as ne, a_ as fs, a$ as vs, b0 as yd, b1 as wd, b2 as Dd, b3 as Nd, b4 as Ed, b5 as Cd, b6 as ht, b7 as Sd, b8 as Id, b9 as jd, ba as _d, bb as Od, bc as Cn, bd as Vt, be as Pd, bf as Td, bg as Ad, bh as uo, bi as Rd } from "./nivo-bar.es-C-IDqcMg.js";
2
+ import { bm as RD, bn as kD, bk as BD, bj as LD, bo as MD, bp as FD, bl as $D } from "./nivo-bar.es-C-IDqcMg.js";
3
3
  import * as ye from "react";
4
- import le, { useCallback as T, useMemo as q, useContext as Z, useRef as z, useEffect as G, useState as V, useId as kd, Component as Bd, isValidElement as po, Suspense as Ld, useLayoutEffect as Da, useReducer as Md } from "react";
5
- import { c as lt, L as fo } from "./Loading-DuLgnQ2I.js";
4
+ import le, { useCallback as A, useMemo as q, useContext as Z, useRef as z, useEffect as G, useState as V, useId as kd, Component as Bd, isValidElement as po, Suspense as Ld, useLayoutEffect as Da, useReducer as Md } from "react";
5
+ import { c as lt, L as fo } from "./Loading-Cbtkg0c9.js";
6
6
  import { InteractionType as Fd } from "@azure/msal-browser";
7
7
  import { MsalAuthenticationTemplate as $d } from "@azure/msal-react";
8
8
  import { useNavigate as gs, Link as nt, useSearchParams as Vd, useParams as Gd, generatePath as en, useLocation as Wd, Navigate as Fr } from "react-router-dom";
9
9
  import mr, { unstable_batchedUpdates as Ud } from "react-dom";
10
10
  import { useFormContext as Ct, Controller as Na } from "react-hook-form";
11
11
  import { Pivot as Hd } from "react-flexmonster";
12
- import { s as ut, l as dr } from "./searchUtils-BsCd2hJS.js";
12
+ import { s as ut, l as dr } from "./searchUtils-CBAvWWCQ.js";
13
13
  import { u as ms } from "./useClickOutside-BmlXg38T.js";
14
- import { u as zd, a as hs, b as qd, c as Yd, d as bs, e as Kd } from "./useRenderDraggableInPortal-D8TdKbXi.js";
15
- import { u as hr } from "./useGetApiData-D9yWD6tn.js";
14
+ import { u as zd, a as hs, b as qd, c as Yd, d as bs, e as Kd } from "./useRenderDraggableInPortal-B5LatuVt.js";
15
+ import { u as hr } from "./useGetApiData-Cyny2rj4.js";
16
16
  const $w = ({ fileLoader: e, fileName: t, children: r }) => {
17
- const n = T(async () => {
17
+ const n = A(async () => {
18
18
  var l, c;
19
19
  const a = await e();
20
20
  if (!a)
@@ -29,19 +29,19 @@ const $w = ({ fileLoader: e, fileName: t, children: r }) => {
29
29
  /* @__PURE__ */ s.jsx("div", { className: I("spinner-grow", lt.spinnerGrow, "text-primary", lt.third), role: "status" })
30
30
  ] });
31
31
  function Jd(e, t) {
32
- const r = Ae(e), n = Ae(t), a = r.getTime() - n.getTime();
32
+ const r = Te(e), n = Te(t), a = r.getTime() - n.getTime();
33
33
  return a < 0 ? -1 : a > 0 ? 1 : a;
34
34
  }
35
35
  function vo(e, t) {
36
- const r = Ae(e), n = Ae(t), a = r.getFullYear() - n.getFullYear(), o = r.getMonth() - n.getMonth();
36
+ const r = Te(e), n = Te(t), a = r.getFullYear() - n.getFullYear(), o = r.getMonth() - n.getMonth();
37
37
  return a * 12 + o;
38
38
  }
39
39
  function go(e) {
40
- const t = Ae(e);
40
+ const t = Te(e);
41
41
  return Math.trunc(t.getMonth() / 3) + 1;
42
42
  }
43
43
  function Sn(e, t) {
44
- const r = Ae(e), n = Ae(t), a = r.getFullYear() - n.getFullYear(), o = go(r) - go(n);
44
+ const r = Te(e), n = Te(t), a = r.getFullYear() - n.getFullYear(), o = go(r) - go(n);
45
45
  return a * 4 + o;
46
46
  }
47
47
  function mo(e, t, r) {
@@ -49,11 +49,11 @@ function mo(e, t, r) {
49
49
  return Math.round((o - i) / Dc);
50
50
  }
51
51
  function In(e, t) {
52
- const r = Ae(e), n = Ae(t);
52
+ const r = Te(e), n = Te(t);
53
53
  return r.getFullYear() - n.getFullYear();
54
54
  }
55
55
  function Qd(e, t) {
56
- const r = Ae(e), n = Ae(t), a = ho(r, n), o = Math.abs(Yr(r, n));
56
+ const r = Te(e), n = Te(t), a = ho(r, n), o = Math.abs(Yr(r, n));
57
57
  r.setDate(r.getDate() - a * o);
58
58
  const i = +(ho(r, n) === -a), l = a * (o - i);
59
59
  return l === 0 ? 0 : l;
@@ -69,7 +69,7 @@ function Ea(e) {
69
69
  };
70
70
  }
71
71
  function Ca(e, t) {
72
- return +Ae(e) - +Ae(t);
72
+ return +Te(e) - +Te(t);
73
73
  }
74
74
  function bo(e, t, r) {
75
75
  const n = Ca(e, t) / Nc;
@@ -84,7 +84,7 @@ function jn(e, t, r) {
84
84
  return Ea(r == null ? void 0 : r.roundingMethod)(n);
85
85
  }
86
86
  function ta(e, t) {
87
- const r = Ae(e);
87
+ const r = Te(e);
88
88
  if (isNaN(r.getTime()))
89
89
  throw new RangeError("Invalid time value");
90
90
  const n = (t == null ? void 0 : t.format) ?? "extended", a = (t == null ? void 0 : t.representation) ?? "complete";
@@ -107,12 +107,12 @@ function ta(e, t) {
107
107
  return o;
108
108
  }
109
109
  function Zd(e) {
110
- const t = Ae(e), r = t.getFullYear(), n = t.getMonth(), a = va(e, 0);
110
+ const t = Te(e), r = t.getFullYear(), n = t.getMonth(), a = va(e, 0);
111
111
  return a.setFullYear(r, n + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
112
112
  }
113
113
  function eu(e, t, r) {
114
114
  let n = 0, a;
115
- const o = Ae(e), i = Ae(t);
115
+ const o = Te(e), i = Te(t);
116
116
  if (r != null && r.unit)
117
117
  a = r == null ? void 0 : r.unit, a === "second" ? n = jn(o, i) : a === "minute" ? n = xo(o, i) : a === "hour" ? n = bo(o, i) : a === "day" ? n = Yr(o, i) : a === "week" ? n = mo(o, i) : a === "month" ? n = vo(o, i) : a === "quarter" ? n = Sn(o, i) : a === "year" && (n = In(o, i));
118
118
  else {
@@ -126,13 +126,13 @@ function eu(e, t, r) {
126
126
  }).format(n, a);
127
127
  }
128
128
  function tu(e, t) {
129
- const r = Ae(e), n = r.getFullYear(), a = r.getDate(), o = va(e, 0);
129
+ const r = Te(e), n = r.getFullYear(), a = r.getDate(), o = va(e, 0);
130
130
  o.setFullYear(n, t, 15), o.setHours(0, 0, 0, 0);
131
131
  const i = Zd(o);
132
132
  return r.setMonth(t, Math.min(a, i)), r;
133
133
  }
134
134
  function ra(e, t) {
135
- const r = Ae(e);
135
+ const r = Te(e);
136
136
  return isNaN(+r) ? va(e, NaN) : (r.setFullYear(t), r);
137
137
  }
138
138
  function ir(...e) {
@@ -155,7 +155,7 @@ function nu(e, t) {
155
155
  parseInt(co(t, a[1]), 10);
156
156
  }
157
157
  const au = {
158
- [Ac]: "collapse",
158
+ [Tc]: "collapse",
159
159
  [Qi]: "collapsing",
160
160
  [ga]: "collapsing",
161
161
  [Zi]: "collapse show"
@@ -184,7 +184,7 @@ const au = {
184
184
  }, t), [b, t]), D = q(() => ir((S) => {
185
185
  S.style[b] = null;
186
186
  }, r), [b, r]), w = q(() => ir((S) => {
187
- S.style[b] = `${v(b, S)}px`, Tc(S);
187
+ S.style[b] = `${v(b, S)}px`, Ac(S);
188
188
  }, n), [n, v, b]), y = q(() => ir((S) => {
189
189
  S.style[b] = null;
190
190
  }, a), [b, a]);
@@ -415,7 +415,7 @@ function du(e, t) {
415
415
  }
416
416
  return r;
417
417
  }
418
- function As({
418
+ function Ts({
419
419
  key: e,
420
420
  onClick: t,
421
421
  active: r,
@@ -439,13 +439,13 @@ function As({
439
439
  isActive: p
440
440
  }];
441
441
  }
442
- const Ts = /* @__PURE__ */ ye.forwardRef((e, t) => {
442
+ const As = /* @__PURE__ */ ye.forwardRef((e, t) => {
443
443
  let {
444
444
  as: r = kc,
445
445
  active: n,
446
446
  eventKey: a
447
447
  } = e, o = du(e, cu);
448
- const [i, l] = As(Object.assign({
448
+ const [i, l] = Ts(Object.assign({
449
449
  key: xa(a, o.href),
450
450
  active: n
451
451
  }, o));
@@ -453,7 +453,7 @@ const Ts = /* @__PURE__ */ ye.forwardRef((e, t) => {
453
453
  ref: t
454
454
  }));
455
455
  });
456
- Ts.displayName = "NavItem";
456
+ As.displayName = "NavItem";
457
457
  const uu = ["as", "onSelect", "activeKey", "role", "onKeyDown"];
458
458
  function pu(e, t) {
459
459
  if (e == null) return {};
@@ -534,7 +534,7 @@ const wo = () => {
534
534
  });
535
535
  Rs.displayName = "Nav";
536
536
  const fu = Object.assign(Rs, {
537
- Item: Ts
537
+ Item: As
538
538
  }), Jt = /* @__PURE__ */ ye.forwardRef(({
539
539
  bsPrefix: e,
540
540
  active: t,
@@ -547,7 +547,7 @@ const fu = Object.assign(Rs, {
547
547
  ...c
548
548
  }, p) => {
549
549
  e = Ce(e, "list-group-item");
550
- const [d, u] = As({
550
+ const [d, u] = Ts({
551
551
  key: xa(n, c.href),
552
552
  active: t,
553
553
  ...c
@@ -750,7 +750,7 @@ const $s = /* @__PURE__ */ ye.forwardRef(({
750
750
  onExited: _,
751
751
  backdropClassName: C,
752
752
  manager: j,
753
- renderStaticNode: A = !1,
753
+ renderStaticNode: T = !1,
754
754
  ...R
755
755
  }, W) => {
756
756
  const E = z();
@@ -771,7 +771,7 @@ const $s = /* @__PURE__ */ ye.forwardRef(({
771
771
  se && (se.style.visibility = "visible"), y == null || y(se, ...F);
772
772
  }, K = (se, ...F) => {
773
773
  se && (se.style.visibility = ""), _ == null || _(...F);
774
- }, re = T((se) => /* @__PURE__ */ s.jsx("div", {
774
+ }, re = A((se) => /* @__PURE__ */ s.jsx("div", {
775
775
  ...se,
776
776
  className: I(`${e}-backdrop`, C)
777
777
  }), [C, e]), ie = (se) => /* @__PURE__ */ s.jsx("div", {
@@ -782,7 +782,7 @@ const $s = /* @__PURE__ */ ye.forwardRef(({
782
782
  children: r
783
783
  });
784
784
  return /* @__PURE__ */ s.jsxs(s.Fragment, {
785
- children: [!J && (o || A) && ie({}), /* @__PURE__ */ s.jsx(Wc.Provider, {
785
+ children: [!J && (o || T) && ie({}), /* @__PURE__ */ s.jsx(Wc.Provider, {
786
786
  value: k,
787
787
  children: /* @__PURE__ */ s.jsx(Uc, {
788
788
  show: J,
@@ -950,7 +950,7 @@ const wu = /* @__PURE__ */ ye.forwardRef(({
950
950
  /* @__PURE__ */ s.jsx("input", { id: r, type: "file", accept: n, onChange: p, hidden: !0, multiple: l })
951
951
  ] });
952
952
  }, Vw = ({ onUpload: e, accept: t, children: r, className: n, size: a = "md" }) => {
953
- const o = T(async (l) => {
953
+ const o = A(async (l) => {
954
954
  if (l.target.files)
955
955
  try {
956
956
  await e(l.target.files);
@@ -967,7 +967,7 @@ const wu = /* @__PURE__ */ ye.forwardRef(({
967
967
  sm: Eu,
968
968
  lg: Cu
969
969
  }, Su = ({ month: e, onChangeMonth: t, locale: r, yearMin: n = 2e3, yearMax: a = 2050, className: o, monthClassName: i, yearClassName: l, size: c }) => {
970
- const p = T((f) => {
970
+ const p = A((f) => {
971
971
  const v = ed(e, f);
972
972
  v.getFullYear() < n || v.getFullYear() > a || t(v);
973
973
  }, [e, t, n, a]), d = q(() => {
@@ -1014,7 +1014,7 @@ const wu = /* @__PURE__ */ ye.forwardRef(({
1014
1014
  for (let p = a; p <= o; p++)
1015
1015
  c.push(p);
1016
1016
  return c;
1017
- }, [n, o, a]), l = T((c) => {
1017
+ }, [n, o, a]), l = A((c) => {
1018
1018
  if (n.manualOptions) {
1019
1019
  const p = i.findIndex((d) => d === e.getFullYear());
1020
1020
  if (p !== -1) {
@@ -1078,12 +1078,12 @@ class Ou extends Bd {
1078
1078
  const Pu = (e) => (r) => {
1079
1079
  const { texts: { errorBoundary: n } } = Z(ge);
1080
1080
  return /* @__PURE__ */ s.jsx(e, { texts: n, ...r });
1081
- }, Au = Pu(Ou), Tu = "_widget-card_e9tsb_1", Ru = {
1081
+ }, Tu = Pu(Ou), Au = "_widget-card_e9tsb_1", Ru = {
1082
1082
  "widget-card": "_widget-card_e9tsb_1",
1083
- widgetCard: Tu
1083
+ widgetCard: Au
1084
1084
  }, Io = ({ children: e, title: t, headerContent: r }) => /* @__PURE__ */ s.jsx(rl, { className: I(Ru.widgetCard, "luminus-widget"), title: t, headerContent: r, contentClassName: "h-100 overflow-auto", children: e }), ku = ({ children: e, title: t }) => {
1085
1085
  const { texts: { widget: r } } = Z(ge), n = gs();
1086
- return /* @__PURE__ */ s.jsx(Au, { fallback: /* @__PURE__ */ s.jsx(Io, { title: t, children: r.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => n(-1), children: /* @__PURE__ */ s.jsx(Ld, { fallback: /* @__PURE__ */ s.jsx(Io, { title: t, children: /* @__PURE__ */ s.jsx(Xd, {}) }), children: e }) });
1086
+ return /* @__PURE__ */ s.jsx(Tu, { fallback: /* @__PURE__ */ s.jsx(Io, { title: t, children: r.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => n(-1), children: /* @__PURE__ */ s.jsx(Ld, { fallback: /* @__PURE__ */ s.jsx(Io, { title: t, children: /* @__PURE__ */ s.jsx(Xd, {}) }), children: e }) });
1087
1087
  }, fn = ({ currentSelection: e, selectedItemNavigateTo: t, children: r }) => {
1088
1088
  if (!e || !e.id || !t)
1089
1089
  return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: r });
@@ -1098,25 +1098,25 @@ const Pu = (e) => (r) => {
1098
1098
  n && n(((v = f.target) == null ? void 0 : v.checked) ?? !1);
1099
1099
  }, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
1100
1100
  }, bt = ({ InputContainer: e = Lt, type: t, value: r, onChange: n, debounceMs: a, label: o, withoutLabel: i, placeholder: l, size: c, hidden: p, disabled: d, showClearIcon: u, clearValue: f, list: v, className: g, step: h, minLength: b, maxLength: m, noSelectOnFocus: x, hint: D, onConfirm: w }) => {
1101
- const y = t === "number", S = T(() => {
1101
+ const y = t === "number", S = A(() => {
1102
1102
  if (!n)
1103
1103
  return;
1104
1104
  const O = f ?? null;
1105
1105
  n(y ? O ? Number(O) : null : (O == null ? void 0 : O.toString()) ?? "");
1106
- }, [f, y, n]), _ = z(null), [C, j] = V((r == null ? void 0 : r.toString()) ?? ""), A = T((O) => {
1106
+ }, [f, y, n]), _ = z(null), [C, j] = V((r == null ? void 0 : r.toString()) ?? ""), T = A((O) => {
1107
1107
  const P = O;
1108
1108
  n && (y && n(P == null || P === "" ? null : Number(P)), n(P || null));
1109
- }, [y, n]), R = T((O) => {
1109
+ }, [y, n]), R = A((O) => {
1110
1110
  var k;
1111
1111
  const P = (k = O.target) == null ? void 0 : k.value;
1112
1112
  if (!a) {
1113
- A(P);
1113
+ T(P);
1114
1114
  return;
1115
1115
  }
1116
1116
  j(P), _.current !== null && window.clearTimeout(_.current), _.current = window.setTimeout(() => {
1117
- A(P);
1117
+ T(P);
1118
1118
  }, a);
1119
- }, [a, A]), W = q(() => {
1119
+ }, [a, T]), W = q(() => {
1120
1120
  if (w !== void 0)
1121
1121
  return (O) => {
1122
1122
  O.key === "Enter" && w && w();
@@ -1157,21 +1157,21 @@ const Pu = (e) => (r) => {
1157
1157
  miniDetailPlacement: w,
1158
1158
  selectedItemNavigateTo: y
1159
1159
  }) => {
1160
- const { texts: { customSelect: S } } = Z(ge), [_, C] = V(!1), [j, A] = V(""), R = T((k) => {
1161
- A(k);
1162
- }, []), W = q(() => r.find((k) => k.id === t) ?? null, [r, t]), E = T((k) => {
1160
+ const { texts: { customSelect: S } } = Z(ge), [_, C] = V(!1), [j, T] = V(""), R = A((k) => {
1161
+ T(k);
1162
+ }, []), W = q(() => r.find((k) => k.id === t) ?? null, [r, t]), E = A((k) => {
1163
1163
  var L;
1164
1164
  return k === null ? "" : !k.name || k.name.length === 0 ? ((L = k.id) == null ? void 0 : L.toString()) ?? "" : f ? `${k.name} (${k.id})` : k.name;
1165
1165
  }, [f]), J = q(() => {
1166
- const k = r ?? [];
1166
+ const k = r ? [...r] : [];
1167
1167
  return g !== void 0 && t !== void 0 && t !== null && (k.some((L) => L.id === t) || k.push({ id: t, name: g })), k.map((L) => ({
1168
1168
  id: L.id,
1169
1169
  name: E(L)
1170
1170
  })).filter((L) => ut(L.name, j)).sort((L, Q) => d ? 0 : (L.name ?? "").localeCompare(Q.name ?? ""));
1171
- }, [r, d, j, E, g, t]), $ = T((k) => {
1171
+ }, [r, d, j, E, g, t]), $ = A((k) => {
1172
1172
  var L;
1173
1173
  n && n((k == null ? void 0 : k.id) === void 0 || (k == null ? void 0 : k.id) === null ? null : i ? Number(k.id) : (L = k.id) == null ? void 0 : L.toString());
1174
- }, [n, i]), O = T((k) => {
1174
+ }, [n, i]), O = A((k) => {
1175
1175
  C(!1), $(k);
1176
1176
  }, [$]), P = z(null);
1177
1177
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, inputContainerClassName: I({ "luminus-dropdown-select-open": _ }), className: u, hint: b, children: [
@@ -1188,10 +1188,10 @@ const Pu = (e) => (r) => {
1188
1188
  ] }) }) }),
1189
1189
  P.current && /* @__PURE__ */ s.jsx(hn, { show: _, onCancel: () => C(!1), items: J, currentSelection: W ?? null, onSelectionChange: O, onSearchQueryChange: R, texts: S, disabled: p, inputRef: P, autoHideSearch: !0, allItemsLength: r.length, itemsNameWidth: h, addNewOptionPath: m, refreshOptions: x })
1190
1190
  ] }) });
1191
- }, Gw = ({ InputContainer: e = Lt, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size: d, dropdownItemsNameWidth: u, additionalColumns: f, hidden: v, disabled: g, displayIdAsName: h, CustomOnChangeComponent: b, className: m, archiveColumn: x, icon: D, hint: w, addNewOptionPath: y, refreshOptions: S, MiniDetailComponent: _, miniDetailPlacement: C, suggestedItems: j, suggestedItemsTitle: A }) => {
1192
- const [R, W] = V(!1), E = T((L) => {
1191
+ }, Gw = ({ InputContainer: e = Lt, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size: d, dropdownItemsNameWidth: u, additionalColumns: f, hidden: v, disabled: g, displayIdAsName: h, CustomOnChangeComponent: b, className: m, archiveColumn: x, icon: D, hint: w, addNewOptionPath: y, refreshOptions: S, MiniDetailComponent: _, miniDetailPlacement: C, suggestedItems: j, suggestedItemsTitle: T }) => {
1192
+ const [R, W] = V(!1), E = A((L) => {
1193
1193
  l && l(L);
1194
- }, [l]), J = T((L) => {
1194
+ }, [l]), J = A((L) => {
1195
1195
  W(!1), E(L);
1196
1196
  }, [E]), $ = z(null), O = r !== void 0, P = O && i !== null, k = q(() => {
1197
1197
  var L, Q;
@@ -1232,18 +1232,18 @@ const Pu = (e) => (r) => {
1232
1232
  b ?? null
1233
1233
  ] }) : null
1234
1234
  ] }),
1235
- $.current && /* @__PURE__ */ s.jsx(hn, { show: R, onCancel: () => W(!1), items: t, currentSelection: i, onSelectionChange: J, onSearchQueryChange: n, texts: a, itemsNameWidth: u, additionalColumns: f, isLoading: o, disabled: g, inputRef: $, archiveColumn: x, displayIdAsName: h, addNewOptionPath: y, refreshOptions: S, suggestedItems: j, suggestedItemsTitle: A })
1235
+ $.current && /* @__PURE__ */ s.jsx(hn, { show: R, onCancel: () => W(!1), items: t, currentSelection: i, onSelectionChange: J, onSearchQueryChange: n, texts: a, itemsNameWidth: u, additionalColumns: f, isLoading: o, disabled: g, inputRef: $, archiveColumn: x, displayIdAsName: h, addNewOptionPath: y, refreshOptions: S, suggestedItems: j, suggestedItemsTitle: T })
1236
1236
  ] }) });
1237
1237
  }, Ww = ({ InputContainer: e = Lt, value: t, onChange: r, label: n, size: a, showClearIcon: o, clearValue: i, hidden: l, disabled: c, rows: p, withoutLabel: d, debounceMs: u, minLength: f, maxLength: v, className: g, hint: h }) => {
1238
- const b = T(() => {
1238
+ const b = A(() => {
1239
1239
  if (!r)
1240
1240
  return;
1241
1241
  const S = i ?? null;
1242
1242
  r((S == null ? void 0 : S.toString()) ?? "");
1243
- }, [i, r]), m = z(null), [x, D] = V((t == null ? void 0 : t.toString()) ?? ""), w = T((S) => {
1243
+ }, [i, r]), m = z(null), [x, D] = V((t == null ? void 0 : t.toString()) ?? ""), w = A((S) => {
1244
1244
  const _ = S;
1245
1245
  r && r(_ || null);
1246
- }, [r]), y = T((S) => {
1246
+ }, [r]), y = A((S) => {
1247
1247
  var C;
1248
1248
  const _ = (C = S.target) == null ? void 0 : C.value;
1249
1249
  if (!u) {
@@ -1261,17 +1261,17 @@ const Pu = (e) => (r) => {
1261
1261
  o && t && r && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(de, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
1262
1262
  ] });
1263
1263
  }, Uw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: d, clearValue: u, className: f, step: v, stepperStep: g = 1, min: h, max: b, hint: m }) => {
1264
- const x = T(() => {
1264
+ const x = A(() => {
1265
1265
  if (!r)
1266
1266
  return;
1267
1267
  const C = u ?? null;
1268
1268
  r(C ? Number(C) : null);
1269
- }, [u, r]), D = z(null), [w, y] = V((t == null ? void 0 : t.toString()) ?? ""), S = T((C) => {
1269
+ }, [u, r]), D = z(null), [w, y] = V((t == null ? void 0 : t.toString()) ?? ""), S = A((C) => {
1270
1270
  const j = C;
1271
1271
  r && r(j == null || j === "" ? null : dr(Number(j), h, b));
1272
- }, [b, h, r]), _ = T((C) => {
1273
- var A;
1274
- const j = (A = C.target) == null ? void 0 : A.value;
1272
+ }, [b, h, r]), _ = A((C) => {
1273
+ var T;
1274
+ const j = (T = C.target) == null ? void 0 : T.value;
1275
1275
  if (!n) {
1276
1276
  S(j);
1277
1277
  return;
@@ -1553,8 +1553,8 @@ function Qu(e) {
1553
1553
  x === void 0 && (x = Ku);
1554
1554
  var D = e.isValidInputCharacter;
1555
1555
  D === void 0 && (D = xr);
1556
- var w = e.isCharacterSame, y = zs(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = Qs(m, c, !!p, i, l, d), _ = S[0], C = _.formattedValue, j = _.numAsString, A = S[1], R = z(), W = z({ formattedValue: C, numAsString: j }), E = function(B, H) {
1557
- W.current = { formattedValue: B.formattedValue, numAsString: B.value }, A(B, H);
1556
+ var w = e.isCharacterSame, y = zs(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = Qs(m, c, !!p, i, l, d), _ = S[0], C = _.formattedValue, j = _.numAsString, T = S[1], R = z(), W = z({ formattedValue: C, numAsString: j }), E = function(B, H) {
1557
+ W.current = { formattedValue: B.formattedValue, numAsString: B.value }, T(B, H);
1558
1558
  }, J = V(!1), $ = J[0], O = J[1], P = z(null), k = z({
1559
1559
  setCaretTimeout: null,
1560
1560
  focusTimeout: null
@@ -1678,8 +1678,8 @@ function Qu(e) {
1678
1678
  if (r === "text")
1679
1679
  return a ? le.createElement(le.Fragment, null, a(C, y) || null) : le.createElement("span", Object.assign({}, y, { ref: o }), C);
1680
1680
  if (n) {
1681
- var Te = n;
1682
- return le.createElement(Te, Object.assign({}, Ye, { ref: o }));
1681
+ var Ae = n;
1682
+ return le.createElement(Ae, Object.assign({}, Ye, { ref: o }));
1683
1683
  }
1684
1684
  return le.createElement("input", Object.assign({}, Ye, { ref: o }));
1685
1685
  }
@@ -1740,8 +1740,8 @@ function rp(e, t, r) {
1740
1740
  e.length && _.length && (y > _.length - i.length || S < o.length) && !(C && i.startsWith(C)) && (e = _);
1741
1741
  var j = 0;
1742
1742
  e.startsWith(o) ? j += o.length : d < o.length && (j = d), e = e.substring(j), u -= j;
1743
- var A = e.length, R = e.length - i.length;
1744
- e.endsWith(i) ? A = R : (u > R || u > e.length - i.length) && (A = u), e = e.substring(0, A), e = Zu(D ? "-" + e : e, a), e = (e.match(ep(g)) || []).join("");
1743
+ var T = e.length, R = e.length - i.length;
1744
+ e.endsWith(i) ? T = R : (u > R || u > e.length - i.length) && (T = u), e = e.substring(0, T), e = Zu(D ? "-" + e : e, a), e = (e.match(ep(g)) || []).join("");
1745
1745
  var W = e.indexOf(g);
1746
1746
  e = e.replace(new RegExp(Ys(g), "g"), function(P, k) {
1747
1747
  return k === W ? "." : "";
@@ -1793,7 +1793,7 @@ function op(e) {
1793
1793
  Ut(u) ? Ut(d) || (y = y || typeof d == "number") : y = y || typeof u == "number";
1794
1794
  var S = function(O) {
1795
1795
  return qs(O) ? O : (typeof O == "number" && (O = Xs(O)), y && typeof l == "number" ? _o(O, l, !!c) : O);
1796
- }, _ = Qs(S(u), S(d), !!y, x, D, v), C = _[0], j = C.numAsString, A = C.formattedValue, R = _[1], W = function(O) {
1796
+ }, _ = Qs(S(u), S(d), !!y, x, D, v), C = _[0], j = C.numAsString, T = C.formattedValue, R = _[1], W = function(O) {
1797
1797
  var P = O.target, k = O.key, L = P.selectionStart, Q = P.selectionEnd, K = P.value;
1798
1798
  if (K === void 0 && (K = ""), (k === "Backspace" || k === "Delete") && Q < p.length) {
1799
1799
  O.preventDefault();
@@ -1829,7 +1829,7 @@ function op(e) {
1829
1829
  return u === 0 && c && l && P[F.start] === b && X(P) < Q && X(L) > K ? !1 : Q >= F.start && Q < F.end && m && m.includes(re) && ie === b ? !0 : re === ie;
1830
1830
  };
1831
1831
  return Object.assign(Object.assign({}, g), {
1832
- value: A,
1832
+ value: T,
1833
1833
  valueIsNumericString: !1,
1834
1834
  isValidInputCharacter: J,
1835
1835
  isCharacterSame: $,
@@ -1848,25 +1848,25 @@ function Oa(e) {
1848
1848
  return le.createElement(Qu, Object.assign({}, t));
1849
1849
  }
1850
1850
  const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: d, clearValue: u, className: f, step: v, noSelectOnFocus: g, decimalScale: h, fixedDecimalScale: b = !1, numberPrefix: m, numberSuffix: x, min: D, max: w, hint: y }) => {
1851
- const S = T(() => {
1851
+ const S = A(() => {
1852
1852
  if (!r)
1853
1853
  return;
1854
1854
  const W = u ?? null;
1855
1855
  r(W ? Number(W) : null);
1856
- }, [u, r]), _ = z(null), [C, j] = V((t == null ? void 0 : t.toString()) ?? ""), A = T((W) => {
1856
+ }, [u, r]), _ = z(null), [C, j] = V((t == null ? void 0 : t.toString()) ?? ""), T = A((W) => {
1857
1857
  const E = W;
1858
1858
  r && r(E == null || E === "" ? null : Number(E));
1859
- }, [r]), R = T((W) => {
1859
+ }, [r]), R = A((W) => {
1860
1860
  var J, $;
1861
1861
  let E = parseFloat((($ = (J = W.target) == null ? void 0 : J.value) == null ? void 0 : $.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
1862
1862
  if (Number.isNaN(E) && (E = 0), !n) {
1863
- A(E.toString());
1863
+ T(E.toString());
1864
1864
  return;
1865
1865
  }
1866
1866
  j(E.toString()), _.current !== null && window.clearTimeout(_.current), _.current = window.setTimeout(() => {
1867
- A(E.toString());
1867
+ T(E.toString());
1868
1868
  }, n);
1869
- }, [n, A]);
1869
+ }, [n, T]);
1870
1870
  return G(() => {
1871
1871
  j(t === null ? "" : t.toString());
1872
1872
  }, [w, D, t]), G(() => {
@@ -1882,7 +1882,7 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
1882
1882
  d && t !== null && r && !p && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(de, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
1883
1883
  ] });
1884
1884
  }, zw = ({ InputContainer: e = st, label: t, options: r, disabled: n, hidden: a, className: o, value: i, onChange: l }) => {
1885
- const c = T((p) => {
1885
+ const c = A((p) => {
1886
1886
  l && l(p.target.value);
1887
1887
  }, [l]);
1888
1888
  return /* @__PURE__ */ s.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, children: r.map((p) => /* @__PURE__ */ s.jsx(Ie.Check, { id: `radio-${p.id}`, label: p.name, type: "radio", value: p.id ?? "", checked: i === p.id, onChange: c, hidden: a, disabled: n, className: "w-100" }, p.id)) });
@@ -1927,14 +1927,14 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
1927
1927
  }), isInvalid: D, hidden: l, disabled: i || u.disabled, className: "w-100" }, w.id)),
1928
1928
  g && /* @__PURE__ */ s.jsx(Mt, { message: g.message })
1929
1929
  ] });
1930
- }, Kw = ({ InputContainer: e = st, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items: d, onSearchQueryChange: u, selectedItemNavigateTo: f, texts: v, dropdownItemsNameWidth: g, isLoading: h, withoutLabel: b, additionalColumns: m, CustomOnChangeComponent: x, icon: D, displayIdAsName: w, onSelect: y, className: S, archiveColumn: _, hint: C, addNewOptionPath: j, refreshOptions: A, MiniDetailComponent: R, miniDetailPlacement: W, suggestedItems: E, suggestedItemsTitle: J }) => {
1931
- const { formState: $, setValue: O, watch: P, control: k } = Ct(), [L, Q] = V(void 0), [K, re] = V(!1), [ie, se] = V(!1), F = P(t) ?? null, X = F === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : P(`${t}-DropdownName`), fe = q(() => F == null ? null : { id: F ?? null, name: X ?? "" }, [F, X]), ue = T(() => {
1930
+ }, Kw = ({ InputContainer: e = st, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items: d, onSearchQueryChange: u, selectedItemNavigateTo: f, texts: v, dropdownItemsNameWidth: g, isLoading: h, withoutLabel: b, additionalColumns: m, CustomOnChangeComponent: x, icon: D, displayIdAsName: w, onSelect: y, className: S, archiveColumn: _, hint: C, addNewOptionPath: j, refreshOptions: T, MiniDetailComponent: R, miniDetailPlacement: W, suggestedItems: E, suggestedItemsTitle: J }) => {
1931
+ const { formState: $, setValue: O, watch: P, control: k } = Ct(), [L, Q] = V(void 0), [K, re] = V(!1), [ie, se] = V(!1), F = P(t) ?? null, X = F === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : P(`${t}-DropdownName`), fe = q(() => F == null ? null : { id: F ?? null, name: X ?? "" }, [F, X]), ue = A(() => {
1932
1932
  const B = t.split(".");
1933
1933
  let H = $.errors;
1934
1934
  B.forEach((M) => {
1935
1935
  H !== void 0 && (H = H[M]);
1936
1936
  }), Q(H);
1937
- }, [$, t]), Y = T((B) => {
1937
+ }, [$, t]), Y = A((B) => {
1938
1938
  if ((B == null ? void 0 : B.id) === F)
1939
1939
  return;
1940
1940
  if (y && y(B), o && o.forEach((M) => O(M, null, { shouldDirty: !0, shouldValidate: ie })), B === null) {
@@ -1949,9 +1949,9 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
1949
1949
  shouldDirty: !0,
1950
1950
  shouldValidate: ie
1951
1951
  }), O(`${t}-DropdownName`, B.name ?? "");
1952
- }, [O, t, ie, i, o, F, y]), pe = T((B) => {
1952
+ }, [O, t, ie, i, o, F, y]), pe = A((B) => {
1953
1953
  re(!1), Y(B);
1954
- }, [Y]), U = T(() => {
1954
+ }, [Y]), U = A(() => {
1955
1955
  re(!1);
1956
1956
  }, []);
1957
1957
  G(() => {
@@ -1959,38 +1959,38 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
1959
1959
  }, [ue]), G(() => {
1960
1960
  $.isSubmitted && se(!0);
1961
1961
  }, [$]);
1962
- const Me = z(null), Fe = L !== void 0, je = f !== void 0, Ye = je && fe !== null, Te = p || $.disabled;
1962
+ const Me = z(null), Fe = L !== void 0, je = f !== void 0, Ye = je && fe !== null, Ae = p || $.disabled;
1963
1963
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: b, isInvalid: Fe, inputContainerClassName: I({ "luminus-dropdown-select-open": K }), hint: C, className: S, children: [
1964
1964
  /* @__PURE__ */ s.jsxs(fn, { currentSelection: fe, selectedItemNavigateTo: f, children: [
1965
1965
  w && (fe == null ? void 0 : fe.name) && /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: fe.name }),
1966
1966
  /* @__PURE__ */ s.jsx(Na, { control: k, name: t, render: () => /* @__PURE__ */ s.jsx(vn, { value: F, MiniDetailComponent: R, miniDetailPlacement: W, children: /* @__PURE__ */ s.jsx(Ie.Select, { size: n, onMouseDown: (B) => {
1967
1967
  B.currentTarget.focus(), B.preventDefault();
1968
1968
  }, onClick: () => {
1969
- !je && !Te && re(!0);
1969
+ !je && !Ae && re(!0);
1970
1970
  }, ref: Me, value: F ?? "", onChange: () => {
1971
1971
  }, isInvalid: Fe, hidden: c, className: I("w-100", {
1972
- "luminus-dropdown-picker-disabled": Te,
1972
+ "luminus-dropdown-picker-disabled": Ae,
1973
1973
  "luminus-dropdown-picker-link": Ye
1974
1974
  }), children: /* @__PURE__ */ s.jsx("option", { value: F, children: w ? F : (X == null ? void 0 : X.length) > 0 ? X : F }) }) }) }),
1975
- x || !Te && je ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
1976
- !x && !Te && je && /* @__PURE__ */ s.jsx(de, { size: "sm", color: "secondary", onClick: (B) => {
1975
+ x || !Ae && je ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
1976
+ !x && !Ae && je && /* @__PURE__ */ s.jsx(de, { size: "sm", color: "secondary", onClick: (B) => {
1977
1977
  B.preventDefault(), B.stopPropagation(), re(!0);
1978
1978
  }, children: D ?? /* @__PURE__ */ s.jsx(as, {}) }),
1979
1979
  x ?? null
1980
1980
  ] }) : null
1981
1981
  ] }),
1982
1982
  L && /* @__PURE__ */ s.jsx(Mt, { message: L.message }),
1983
- Me.current && /* @__PURE__ */ s.jsx(hn, { show: K, onCancel: U, items: d, currentSelection: fe, onSelectionChange: pe, onSearchQueryChange: u, texts: v, itemsNameWidth: g, additionalColumns: m, displayIdAsName: w, isLoading: h, disabled: Te, inputRef: Me, archiveColumn: _, addNewOptionPath: j, refreshOptions: A, suggestedItems: E, suggestedItemsTitle: J })
1983
+ Me.current && /* @__PURE__ */ s.jsx(hn, { show: K, onCancel: U, items: d, currentSelection: fe, onSelectionChange: pe, onSearchQueryChange: u, texts: v, itemsNameWidth: g, additionalColumns: m, displayIdAsName: w, isLoading: h, disabled: Ae, inputRef: Me, archiveColumn: _, addNewOptionPath: j, refreshOptions: T, suggestedItems: E, suggestedItemsTitle: J })
1984
1984
  ] }) });
1985
1985
  }, Xw = ({ InputContainer: e = st, label: t, formField: r, hidden: n, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: p, accept: d, withoutLabel: u, hint: f, className: v }) => {
1986
- const { watch: g, setValue: h, register: b, formState: m } = Ct(), [x, D] = V(!1), [w, y] = V(void 0), S = T(() => {
1986
+ const { watch: g, setValue: h, register: b, formState: m } = Ct(), [x, D] = V(!1), [w, y] = V(void 0), S = A(() => {
1987
1987
  h(r, "");
1988
- }, [h, r]), _ = T(() => {
1988
+ }, [h, r]), _ = A(() => {
1989
1989
  const j = r.split(".");
1990
- let A = m.errors;
1990
+ let T = m.errors;
1991
1991
  j.forEach((R) => {
1992
- A !== void 0 && (A = A[R]);
1993
- }), y(A);
1992
+ T !== void 0 && (T = T[R]);
1993
+ }), y(T);
1994
1994
  }, [m, r]);
1995
1995
  G(_, [_]), G(() => {
1996
1996
  m.isSubmitted && D(!0);
@@ -2011,13 +2011,13 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2011
2011
  o(Object.keys(n.dirtyFields).length > 0);
2012
2012
  }, [n]), a ? /* @__PURE__ */ s.jsx(Du, { onStorno: t, noSpacer: r, disabled: n.disabled, children: e }) : null;
2013
2013
  }, Qw = ({ InputContainer: e = st, options: t, formField: r, label: n, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, withoutLabel: d, noSortOptions: u, suffixIdToName: f, onSelect: v, className: g, appendCurrentSelectionWithName: h, hint: b, addNewOptionPath: m, refreshOptions: x, MiniDetailComponent: D, miniDetailPlacement: w, selectedItemNavigateTo: y }) => {
2014
- const { texts: { customSelect: S } } = Z(ge), { formState: _, setValue: C, watch: j, control: A } = Ct(), [R, W] = V(void 0), [E, J] = V(!1), [$, O] = V(!1), [P, k] = V(""), L = j(r), Q = q(() => t.find((Y) => Y.id === L) ?? null, [t, L]), K = T(() => {
2014
+ const { texts: { customSelect: S } } = Z(ge), { formState: _, setValue: C, watch: j, control: T } = Ct(), [R, W] = V(void 0), [E, J] = V(!1), [$, O] = V(!1), [P, k] = V(""), L = j(r), Q = q(() => t.find((Y) => Y.id === L) ?? null, [t, L]), K = A(() => {
2015
2015
  const Y = r.split(".");
2016
2016
  let pe = _.errors;
2017
2017
  Y.forEach((U) => {
2018
2018
  pe !== void 0 && (pe = pe[U]);
2019
2019
  }), W(pe);
2020
- }, [_, r]), re = T((Y) => {
2020
+ }, [_, r]), re = A((Y) => {
2021
2021
  if ((Y == null ? void 0 : Y.id) === L)
2022
2022
  return;
2023
2023
  if (v && v(Y), o && o.forEach((U) => C(U, null, { shouldDirty: !0, shouldValidate: $ })), Y === null) {
@@ -2032,9 +2032,9 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2032
2032
  shouldDirty: !0,
2033
2033
  shouldValidate: $
2034
2034
  });
2035
- }, [C, r, i, o, L, $, v]), ie = T((Y) => {
2035
+ }, [C, r, i, o, L, $, v]), ie = A((Y) => {
2036
2036
  J(!1), re(Y);
2037
- }, [re]), se = T((Y) => {
2037
+ }, [re]), se = A((Y) => {
2038
2038
  k(Y);
2039
2039
  }, []);
2040
2040
  G(() => {
@@ -2042,11 +2042,11 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2042
2042
  }, [K]), G(() => {
2043
2043
  _.isSubmitted && O(!0);
2044
2044
  }, [_]);
2045
- const F = T((Y) => {
2045
+ const F = A((Y) => {
2046
2046
  var pe;
2047
2047
  return Y === null ? "" : !Y.name || Y.name.length === 0 ? ((pe = Y.id) == null ? void 0 : pe.toString()) ?? "" : f ? `${Y.name} (${Y.id})` : Y.name;
2048
2048
  }, [f]), X = q(() => {
2049
- const Y = t ?? [];
2049
+ const Y = t ? [...t] : [];
2050
2050
  return h !== void 0 && L && (Y.some((pe) => pe.id === L) || Y.push({ id: L, name: h })), Y.map((pe) => ({
2051
2051
  id: pe.id,
2052
2052
  name: F(pe)
@@ -2060,7 +2060,7 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2060
2060
  L
2061
2061
  ]), fe = z(null), ue = R !== void 0;
2062
2062
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: ue, inputContainerClassName: I({ "luminus-dropdown-select-open": E }), hint: b, className: g, children: [
2063
- /* @__PURE__ */ s.jsx(fn, { currentSelection: Q, selectedItemNavigateTo: y, children: /* @__PURE__ */ s.jsx(Na, { control: A, name: r, render: () => /* @__PURE__ */ s.jsx(vn, { value: L, MiniDetailComponent: D, miniDetailPlacement: w, children: /* @__PURE__ */ s.jsx(Ie.Select, { size: a, onMouseDown: (Y) => {
2063
+ /* @__PURE__ */ s.jsx(fn, { currentSelection: Q, selectedItemNavigateTo: y, children: /* @__PURE__ */ s.jsx(Na, { control: T, name: r, render: () => /* @__PURE__ */ s.jsx(vn, { value: L, MiniDetailComponent: D, miniDetailPlacement: w, children: /* @__PURE__ */ s.jsx(Ie.Select, { size: a, onMouseDown: (Y) => {
2064
2064
  Y.currentTarget.focus(), Y.preventDefault();
2065
2065
  }, onClick: () => {
2066
2066
  J(!0);
@@ -2070,15 +2070,15 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2070
2070
  fe.current && /* @__PURE__ */ s.jsx(hn, { show: E, onCancel: () => J(!1), items: X, currentSelection: Q ?? null, onSelectionChange: ie, onSearchQueryChange: se, texts: S, disabled: p, inputRef: fe, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: m, refreshOptions: x })
2071
2071
  ] }) });
2072
2072
  }, Zw = ({ InputContainer: e = st, formField: t, label: r, placeholder: n, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: p, disabled: d, withoutLabel: u, step: f, stepperStep: v = 1, className: g, min: h, max: b, onChange: m, hint: x }) => {
2073
- const { register: D, formState: w, setValue: y, watch: S } = Ct(), [_, C] = V(void 0), [j, A] = V(!1), R = T((O, P, k) => {
2073
+ const { register: D, formState: w, setValue: y, watch: S } = Ct(), [_, C] = V(void 0), [j, T] = V(!1), R = A((O, P, k) => {
2074
2074
  y(O, dr(P, h, b), k);
2075
- }, [b, h, y]), W = T(() => {
2075
+ }, [b, h, y]), W = A(() => {
2076
2076
  const O = l ?? null;
2077
2077
  R(t, O !== null ? Number(O) : null, {
2078
2078
  shouldDirty: !0,
2079
2079
  shouldValidate: j
2080
2080
  });
2081
- }, [l, R, t, j]), E = T(() => {
2081
+ }, [l, R, t, j]), E = A(() => {
2082
2082
  const O = t.split(".");
2083
2083
  let P = w.errors;
2084
2084
  O.forEach((k) => {
@@ -2088,7 +2088,7 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2088
2088
  G(() => {
2089
2089
  E();
2090
2090
  }, [E]), G(() => {
2091
- w.isSubmitted && A(!0);
2091
+ w.isSubmitted && T(!0);
2092
2092
  }, [w]);
2093
2093
  const J = _ !== void 0, $ = S(t);
2094
2094
  return /* @__PURE__ */ s.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: p, withoutLabel: u, isInvalid: J, hint: x, className: g, children: [
@@ -2113,13 +2113,13 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2113
2113
  _ && /* @__PURE__ */ s.jsx(Mt, { message: _.message })
2114
2114
  ] });
2115
2115
  }, eD = ({ InputContainer: e = st, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: p, withoutLabel: d, step: u, size: f, CustomOnChangeComponent: v, noSelectOnFocus: g, className: h, decimalScale: b = 2, fixedDecimalScale: m = !1, numberPrefix: x, numberSuffix: D, min: w, max: y, onChange: S, hint: _ }) => {
2116
- const { formState: C, setValue: j, watch: A, control: R } = Ct(), [W, E] = V(void 0), [J, $] = V(!1), O = T(() => {
2116
+ const { formState: C, setValue: j, watch: T, control: R } = Ct(), [W, E] = V(void 0), [J, $] = V(!1), O = A(() => {
2117
2117
  const Q = i ?? null;
2118
2118
  j(t, Q !== null ? Number(Q) : null, {
2119
2119
  shouldDirty: !0,
2120
2120
  shouldValidate: J
2121
2121
  });
2122
- }, [i, j, t, J]), P = T(() => {
2122
+ }, [i, j, t, J]), P = A(() => {
2123
2123
  const Q = t.split(".");
2124
2124
  let K = C.errors;
2125
2125
  Q.forEach((re) => {
@@ -2131,7 +2131,7 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2131
2131
  }, [P]), G(() => {
2132
2132
  C.isSubmitted && $(!0);
2133
2133
  }, [C]);
2134
- const k = A(t);
2134
+ const k = T(t);
2135
2135
  G(() => {
2136
2136
  y !== void 0 && k > y && j(t, y), w !== void 0 && k < w && j(t, w);
2137
2137
  }, [t, k, y, w, j]);
@@ -2153,7 +2153,7 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2153
2153
  }), step: u, getInputRef: Q, min: w, max: y }) }),
2154
2154
  v && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: v })
2155
2155
  ] }),
2156
- o && A(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(de, { color: "secondary", size: "sm", onClick: O, children: /* @__PURE__ */ s.jsx(pt, {}) }) }),
2156
+ o && T(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(de, { color: "secondary", size: "sm", onClick: O, children: /* @__PURE__ */ s.jsx(pt, {}) }) }),
2157
2157
  W && /* @__PURE__ */ s.jsx(Mt, { message: W.message })
2158
2158
  ] });
2159
2159
  }, tD = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(ns, { size: 12 }), inputId: r = "context-file-input", accept: n = "*", onUpload: a, multiple: o, className: i, children: l, ...c }) => {
@@ -2169,7 +2169,7 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2169
2169
  ] });
2170
2170
  }, ip = "_divider_1e6rk_1", sp = {
2171
2171
  divider: ip
2172
- }, Zs = ({ className: e }) => /* @__PURE__ */ s.jsx(od.Divider, { className: I("luminus-dropdown-divider", e, sp.divider) }), Pa = ["slice", "options", "formats", "conditions"], Ao = (e) => {
2172
+ }, Zs = ({ className: e }) => /* @__PURE__ */ s.jsx(od.Divider, { className: I("luminus-dropdown-divider", e, sp.divider) }), Pa = ["slice", "options", "formats", "conditions"], To = (e) => {
2173
2173
  const t = e.current.flexmonster.getReport({ withDefaults: !0 });
2174
2174
  if (typeof t == "string")
2175
2175
  throw alert("report is string"), new Error("report is string");
@@ -2190,10 +2190,10 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2190
2190
  return Pa.forEach((r) => {
2191
2191
  t[r] = (e == null ? void 0 : e[r]) ?? void 0;
2192
2192
  }), t;
2193
- }, To = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ro = (e) => !e.member && !e.isDrillThrough, ko = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t), dp = ({ dataSource: e, settings: t, pivotRef: r, localization: n, licenseKey: a, hyperlinkColumn: o, enabled: i = !0 }) => {
2193
+ }, Ao = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ro = (e) => !e.member && !e.isDrillThrough, ko = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t), dp = ({ dataSource: e, settings: t, pivotRef: r, localization: n, licenseKey: a, hyperlinkColumn: o, enabled: i = !0 }) => {
2194
2194
  const { texts: { reports: l } } = Z(ge), [c, p] = V(!1), d = z(null), u = r ?? d, f = q(() => ({
2195
2195
  localization: n
2196
- }), [n]), v = T((m) => {
2196
+ }), [n]), v = A((m) => {
2197
2197
  delete m[0], delete m[1], delete m[2];
2198
2198
  const x = [
2199
2199
  {
@@ -2235,13 +2235,13 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2235
2235
  grid: { ...(x = t == null ? void 0 : t.options) == null ? void 0 : x.grid, autoSwitchToCompact: !1 },
2236
2236
  showFieldListSearch: !0
2237
2237
  };
2238
- const A = { ...C, ...j };
2239
- (D = u.current) == null || D.flexmonster.setReport(A), console.log("Refreshing flexmonster settings. New report: ", A);
2238
+ const T = { ...C, ...j };
2239
+ (D = u.current) == null || D.flexmonster.setReport(T), console.log("Refreshing flexmonster settings. New report: ", T);
2240
2240
  }
2241
2241
  }, [i, c, u, t]);
2242
- const h = T((m, x) => {
2242
+ const h = A((m, x) => {
2243
2243
  var j;
2244
- if (!o || !To(x, o.idColumn) || Ro(x))
2244
+ if (!o || !Ao(x, o.idColumn) || Ro(x))
2245
2245
  return;
2246
2246
  const D = (j = x.escapedLabel) == null ? void 0 : j.toString();
2247
2247
  if (D === void 0)
@@ -2250,8 +2250,8 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2250
2250
  m.style && (m.style["z-index"] = 1);
2251
2251
  const C = `<a ${_} ${y} ${S}>${x.escapedLabel}</a>`;
2252
2252
  m.text = C;
2253
- }, [o]), b = T((m) => {
2254
- if (!o || !To(m, o.idColumn) || Ro(m))
2253
+ }, [o]), b = A((m) => {
2254
+ if (!o || !Ao(m, o.idColumn) || Ro(m))
2255
2255
  return;
2256
2256
  const x = ko(o.url, m.escapedLabel ?? "");
2257
2257
  window.open(x ?? "", "_blank", "noreferrer");
@@ -2274,7 +2274,7 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2274
2274
  }
2275
2275
  ) });
2276
2276
  }, up = (e, t, r, n) => {
2277
- const { texts: { reports: a } } = Z(ge), { prompt: o } = id(), { confirm: i } = dn(), l = Nt(), { user: c } = Z(jr), { startLoading: p, stopLoading: d } = Z(_r), { addNotification: u } = ss(), f = T(async (m) => {
2277
+ const { texts: { reports: a } } = Z(ge), { prompt: o } = id(), { confirm: i } = dn(), l = Nt(), { user: c } = Z(jr), { startLoading: p, stopLoading: d } = Z(_r), { addNotification: u } = ss(), f = A(async (m) => {
2278
2278
  p("report-versionSavingAs");
2279
2279
  try {
2280
2280
  const x = await l.post("/reports/version", m);
@@ -2282,14 +2282,14 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2282
2282
  } finally {
2283
2283
  d("report-versionSavingAs");
2284
2284
  }
2285
- }, [u, n, l, a.saveSuccessful, p, d]), v = T(async () => {
2285
+ }, [u, n, l, a.saveSuccessful, p, d]), v = A(async () => {
2286
2286
  if (r === null) {
2287
2287
  u("none open", "warning");
2288
2288
  return;
2289
2289
  }
2290
2290
  if (!await i(a.confirmOverwriteSave))
2291
2291
  return;
2292
- const x = Ao(t);
2292
+ const x = To(t);
2293
2293
  f({
2294
2294
  reportSourceName: e,
2295
2295
  reportVersionId: r,
@@ -2303,17 +2303,17 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2303
2303
  a.confirmOverwriteSave,
2304
2304
  f,
2305
2305
  r
2306
- ]), g = T(async () => {
2306
+ ]), g = A(async () => {
2307
2307
  const m = await o(a.enterName, { input: "input", required: !0 });
2308
2308
  if (m === null)
2309
2309
  return;
2310
- const x = Ao(t);
2310
+ const x = To(t);
2311
2311
  f({
2312
2312
  reportSourceName: e,
2313
2313
  name: m,
2314
2314
  settings: x
2315
2315
  });
2316
- }, [t, o, e, a.enterName, f]), h = T(async () => {
2316
+ }, [t, o, e, a.enterName, f]), h = A(async () => {
2317
2317
  p("report-versionSavingAs");
2318
2318
  try {
2319
2319
  await l.post("/reports/version", {
@@ -2332,7 +2332,7 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2332
2332
  r,
2333
2333
  p,
2334
2334
  d
2335
- ]), b = T(async () => {
2335
+ ]), b = A(async () => {
2336
2336
  p("report-versionSavingAs");
2337
2337
  try {
2338
2338
  await l.post("/reports/version-restrictions", {
@@ -2359,7 +2359,7 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2359
2359
  return { saveAs: g, save: v, archive: h, detach: b };
2360
2360
  }, pp = (e) => {
2361
2361
  const t = Nt(), { startLoading: r, stopLoading: n } = Z(_r);
2362
- return { changeEmployeeRights: T(async (o, i) => {
2362
+ return { changeEmployeeRights: A(async (o, i) => {
2363
2363
  let l = null;
2364
2364
  r("reportSharing-addPerson");
2365
2365
  try {
@@ -2378,17 +2378,17 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2378
2378
  return l;
2379
2379
  }, [t, e, r, n]) };
2380
2380
  }, fp = ({ isOpen: e, onHide: t, usersData: r, reportVersionId: n, EmployeePicker: a, setReportVersion: o }) => {
2381
- const { ProjectIconComponent: i, texts: { reports: l } } = Z(ge), { confirm: c } = dn(), [p, d] = V(null), { changeEmployeeRights: u } = pp(n), f = T((h) => {
2381
+ const { ProjectIconComponent: i, texts: { reports: l } } = Z(ge), { confirm: c } = dn(), [p, d] = V(null), { changeEmployeeRights: u } = pp(n), f = A((h) => {
2382
2382
  o((b) => b === null ? null : {
2383
2383
  ...b,
2384
2384
  users: h.filter((m) => m.isReportOwner === !1)
2385
2385
  });
2386
- }, [o]), v = T(async () => {
2386
+ }, [o]), v = A(async () => {
2387
2387
  if (p === null)
2388
2388
  return;
2389
2389
  const h = await u(p.id, !0);
2390
2390
  f(h), d(null);
2391
- }, [p, u, f]), g = T(async (h) => {
2391
+ }, [p, u, f]), g = A(async (h) => {
2392
2392
  if (!await c(l.removeSharingWith(h)))
2393
2393
  return;
2394
2394
  const m = await u(h, !1);
@@ -2432,39 +2432,39 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2432
2432
  });
2433
2433
  }, [t, e]), { mappings: r };
2434
2434
  }, rD = ({ reportType: e, title: t, data: r, filterElements: n, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: l, localizationJsonFile: c, localizationTransformer: p, hyperlinkColumn: d }) => {
2435
- const { texts: { reports: u } } = Z(ge), { confirm: f } = dn(), v = gs(), [g] = Vd(), { id: h } = Gd(), b = q(() => h === void 0 ? null : Number(h), [h]), m = T((F) => {
2435
+ const { texts: { reports: u } } = Z(ge), { confirm: f } = dn(), v = gs(), [g] = Vd(), { id: h } = Gd(), b = q(() => h === void 0 ? null : Number(h), [h]), m = A((F) => {
2436
2436
  const X = F === null ? "" : F.toString();
2437
2437
  v(en(a(e), { id: X }) + "?" + g.toString(), {
2438
2438
  replace: !0,
2439
2439
  flushSync: !0
2440
2440
  });
2441
- }, [a, v, e, g]), [x, D] = V(!1), w = z(null), { user: y } = Z(jr), { data: S, reloadData: _ } = hr(`/reports/${e}`), { mappings: C } = vp(c, p), [j, A] = V({}), R = T((F) => {
2441
+ }, [a, v, e, g]), [x, D] = V(!1), w = z(null), { user: y } = Z(jr), { data: S, reloadData: _ } = hr(`/reports/${e}`), { mappings: C } = vp(c, p), [j, T] = V({}), R = A((F) => {
2442
2442
  const X = F.target.value, fe = X === "" ? null : Number(X);
2443
2443
  m(fe);
2444
- }, [m]), W = T(async (F) => {
2444
+ }, [m]), W = A(async (F) => {
2445
2445
  await _(), m(F);
2446
2446
  }, [_, m]), { data: E, setData: J } = hr(`/reports/version/${b}`, { enabled: b !== null, nullStateBeforeLoad: !1, nullStateOnFail: !0 });
2447
2447
  G(() => {
2448
2448
  var X;
2449
2449
  if (E === null) {
2450
- A({});
2450
+ T({});
2451
2451
  return;
2452
2452
  }
2453
2453
  const F = lp(E) ?? {};
2454
- A(F), (X = w.current) == null || X.flexmonster.refresh();
2454
+ T(F), (X = w.current) == null || X.flexmonster.refresh();
2455
2455
  }, [E]);
2456
2456
  const { save: $, saveAs: O, archive: P, detach: k } = up(e, w, b, W), L = q(() => ({
2457
2457
  data: r ?? [],
2458
2458
  mapping: C ?? void 0
2459
- }), [r, C]), Q = T(async () => {
2459
+ }), [r, C]), Q = A(async () => {
2460
2460
  var X;
2461
2461
  await f(u.confirmRevertChanges) && ((X = w.current) == null || X.flexmonster.setReport({ dataSource: L, ...j }));
2462
2462
  }, [f, L, u.confirmRevertChanges, j]), K = q(() => (E == null ? void 0 : E.ownerId) === y.personalNumber, [E == null ? void 0 : E.ownerId, y.personalNumber]), re = q(() => {
2463
2463
  var F;
2464
2464
  return (F = E == null ? void 0 : E.users) == null ? void 0 : F.some((X) => X.id === y.personalNumber && !X.isReportOwner);
2465
- }, [E == null ? void 0 : E.users, y.personalNumber]), ie = T(async () => {
2465
+ }, [E == null ? void 0 : E.users, y.personalNumber]), ie = A(async () => {
2466
2466
  await f(u.confirmDelete(E == null ? void 0 : E.name)) && (await P(), m(null), await _());
2467
- }, [P, f, _, E == null ? void 0 : E.name, u, m]), se = T(async () => {
2467
+ }, [P, f, _, E == null ? void 0 : E.name, u, m]), se = A(async () => {
2468
2468
  await f(u.confirmDetach(E == null ? void 0 : E.name)) && (await k(), m(null), await _());
2469
2469
  }, [f, k, _, E == null ? void 0 : E.name, u, m]);
2470
2470
  return G(() => {
@@ -2556,13 +2556,13 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2556
2556
  apiGet: "/messageBoard",
2557
2557
  apiDelete: "/messageBoard/"
2558
2558
  }, aD = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = On.apiGet, apiDelete: n = On.apiDelete } = On, getIcon: a, getLinksTo: o }) => {
2559
- const l = Nt(), [c, p] = V([]), [d, u] = V(!1), [f, v] = V(!1), [g, h] = V(!1), b = T(async () => {
2559
+ const l = Nt(), [c, p] = V([]), [d, u] = V(!1), [f, v] = V(!1), [g, h] = V(!1), b = A(async () => {
2560
2560
  v(!0), await l.get(r).then(({ data: y }) => {
2561
2561
  p(y), u(!0), v(!1);
2562
2562
  }).catch(() => {
2563
2563
  p([]), v(!1);
2564
2564
  });
2565
- }, [r, l]), m = T(async (y) => l.delete(`${n}${y}`).then(() => !0).catch(() => !1), [n, l]), x = T((y) => {
2565
+ }, [r, l]), m = A(async (y) => l.delete(`${n}${y}`).then(() => !0).catch(() => !1), [n, l]), x = A((y) => {
2566
2566
  m(y).then((S) => {
2567
2567
  S && p(c.filter((_) => _.id !== y));
2568
2568
  });
@@ -2604,13 +2604,13 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2604
2604
  }, vertical: n || a, children: d }),
2605
2605
  a && i < r.length - 1 && /* @__PURE__ */ s.jsx("div", { className: I("join-line", Dp.joinLine) })
2606
2606
  ] }, c.eventKey);
2607
- }) }), Ep = "_tab_1tbi7_1", Cp = "_disabled_1tbi7_7", Sp = "_vertical_1tbi7_13", An = {
2607
+ }) }), Ep = "_tab_1tbi7_1", Cp = "_disabled_1tbi7_7", Sp = "_vertical_1tbi7_13", Tn = {
2608
2608
  tab: Ep,
2609
2609
  disabled: Cp,
2610
2610
  vertical: Sp
2611
- }, Ip = ({ eventKey: e, className: t, onClick: r, disabled: n, vertical: a, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: I("luminus-tab text-primary rounded", An.tab, t, {
2611
+ }, Ip = ({ eventKey: e, className: t, onClick: r, disabled: n, vertical: a, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: I("luminus-tab text-primary rounded", Tn.tab, t, {
2612
2612
  disabled: n
2613
- }, { [An.disabled]: n }, { vertical: a }, { [An.vertical]: a }), onClick: () => r && !n && r(e), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(ae, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: o }) : o }), iD = ({ tabs: e, activeTab: t, onSelect: r, ...n }) => {
2613
+ }, { [Tn.disabled]: n }, { vertical: a }, { [Tn.vertical]: a }), onClick: () => r && !n && r(e), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(ae, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: o }) : o }), iD = ({ tabs: e, activeTab: t, onSelect: r, ...n }) => {
2614
2614
  var i;
2615
2615
  const { ProjectIconComponent: a } = Z(ge), { isMobile: o } = un();
2616
2616
  return o ? /* @__PURE__ */ s.jsx(Kt, { toggle: /* @__PURE__ */ s.jsx(Xt, { as: Or, text: ((i = e.find((l) => l.id === t)) == null ? void 0 : i.name) ?? "", icon: /* @__PURE__ */ s.jsx(a, { icon: "chevron-down" }) }), ...n, children: e.map((l) => /* @__PURE__ */ s.jsx(Ue, { onClick: () => r(l.id), children: l.name }, l.id)) }) : /* @__PURE__ */ s.jsx(Np, { activeTab: t, onSelect: (l) => r(l), ...n, children: e.map((l) => /* @__PURE__ */ s.jsx(Ip, { eventKey: l.id, children: l.name }, l.id)) });
@@ -2635,12 +2635,12 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2635
2635
  if (e === void 0)
2636
2636
  throw new Error("ShortcutLinksProvider not initilized. Probably tried to use useShortcutLinks outside ShortcutLinksProvider.");
2637
2637
  return e;
2638
- }, Ap = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n }) => {
2638
+ }, Tp = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n }) => {
2639
2639
  const { ProjectIconComponent: a } = Z(ge), [o, i] = V(e.icon), [l, c] = V(e.name);
2640
2640
  console.log(o, typeof o);
2641
- const p = q(() => !(o === e.icon && l === e.name), [o, l, e.icon, e.name]), d = T(() => {
2641
+ const p = q(() => !(o === e.icon && l === e.name), [o, l, e.icon, e.name]), d = A(() => {
2642
2642
  i(e.icon), c(e.name);
2643
- }, [e]), u = T(() => {
2643
+ }, [e]), u = A(() => {
2644
2644
  n({ ...e, icon: o, name: l });
2645
2645
  }, [n, o, l, e]);
2646
2646
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -2651,8 +2651,8 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2651
2651
  /* @__PURE__ */ s.jsx(de, { onClick: u, color: "success", className: "d-inline mx-2", children: /* @__PURE__ */ s.jsx(a, { icon: "check" }) })
2652
2652
  ] }) })
2653
2653
  ] });
2654
- }, Tp = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n, deleteShortcutLink: a }) => {
2655
- const { ProjectIconComponent: o } = Z(ge), i = T(() => {
2654
+ }, Ap = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n, deleteShortcutLink: a }) => {
2655
+ const { ProjectIconComponent: o } = Z(ge), i = A(() => {
2656
2656
  a(e.id);
2657
2657
  }, [a, e.id]);
2658
2658
  return /* @__PURE__ */ s.jsx("tr", { className: "mb-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -2661,7 +2661,7 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2661
2661
  e.url.slice(0, 21),
2662
2662
  "..."
2663
2663
  ] }) }) }),
2664
- /* @__PURE__ */ s.jsx(Ap, { shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n })
2664
+ /* @__PURE__ */ s.jsx(Tp, { shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n })
2665
2665
  ] }) });
2666
2666
  }, sD = ({ IconComponent: e, IconTypeArray: t }) => {
2667
2667
  const { texts: r } = Z(ge), { shortcutLinks: n, editShortcutLink: a, deleteShortcutLink: o } = tl();
@@ -2673,7 +2673,7 @@ const Hw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
2673
2673
  /* @__PURE__ */ s.jsx("th", { children: r.shortcutLinks.icon }),
2674
2674
  /* @__PURE__ */ s.jsx("th", {})
2675
2675
  ] }) }),
2676
- /* @__PURE__ */ s.jsx("tbody", { children: n == null ? void 0 : n.map((i) => /* @__PURE__ */ s.jsx(Tp, { shortcutLink: i, IconComponent: e, IconTypeArray: t, editShortcutLink: a, deleteShortcutLink: o }, i.id)) })
2676
+ /* @__PURE__ */ s.jsx("tbody", { children: n == null ? void 0 : n.map((i) => /* @__PURE__ */ s.jsx(Ap, { shortcutLink: i, IconComponent: e, IconTypeArray: t, editShortcutLink: a, deleteShortcutLink: o }, i.id)) })
2677
2677
  ] }) : /* @__PURE__ */ s.jsx(Pr, { variant: "info", children: r.shortcutLinks.addLinksToEditThemHereInfo }) });
2678
2678
  }, aa = 5, Rp = "_linkButton_pnlvi_1", kp = "_linkAddButton_pnlvi_31", Bp = "_createLinkRow_pnlvi_39", Ht = {
2679
2679
  linkButton: Rp,
@@ -2693,28 +2693,28 @@ function Mp(e, t, r) {
2693
2693
  };
2694
2694
  }, []);
2695
2695
  var D = q(function() {
2696
- var w = function(A) {
2696
+ var w = function(T) {
2697
2697
  var R = l.current, W = c.current;
2698
- return l.current = c.current = null, o.current = A, p.current = d.current.apply(W, R);
2699
- }, y = function(A, R) {
2700
- v && cancelAnimationFrame(i.current), i.current = v ? requestAnimationFrame(A) : setTimeout(A, R);
2701
- }, S = function(A) {
2698
+ return l.current = c.current = null, o.current = T, p.current = d.current.apply(W, R);
2699
+ }, y = function(T, R) {
2700
+ v && cancelAnimationFrame(i.current), i.current = v ? requestAnimationFrame(T) : setTimeout(T, R);
2701
+ }, S = function(T) {
2702
2702
  if (!u.current) return !1;
2703
- var R = A - a.current;
2704
- return !a.current || R >= t || R < 0 || b && A - o.current >= x;
2705
- }, _ = function(A) {
2706
- return i.current = null, h && l.current ? w(A) : (l.current = c.current = null, p.current);
2707
- }, C = function A() {
2703
+ var R = T - a.current;
2704
+ return !a.current || R >= t || R < 0 || b && T - o.current >= x;
2705
+ }, _ = function(T) {
2706
+ return i.current = null, h && l.current ? w(T) : (l.current = c.current = null, p.current);
2707
+ }, C = function T() {
2708
2708
  var R = Date.now();
2709
2709
  if (S(R)) return _(R);
2710
2710
  if (u.current) {
2711
2711
  var W = t - (R - a.current), E = b ? Math.min(W, x - (R - o.current)) : W;
2712
- y(A, E);
2712
+ y(T, E);
2713
2713
  }
2714
2714
  }, j = function() {
2715
2715
  if (f || m) {
2716
- var A = Date.now(), R = S(A);
2717
- if (l.current = [].slice.call(arguments), c.current = n, a.current = A, R) {
2716
+ var T = Date.now(), R = S(T);
2717
+ if (l.current = [].slice.call(arguments), c.current = n, a.current = T, R) {
2718
2718
  if (!i.current && u.current) return o.current = a.current, y(C, t), g ? w(a.current) : p.current;
2719
2719
  if (b) return y(C, t), w(a.current);
2720
2720
  }
@@ -2735,13 +2735,13 @@ function Fp(e, t) {
2735
2735
  return e === t;
2736
2736
  }
2737
2737
  function mn(e, t, r) {
2738
- var n = Fp, a = z(e), o = V({})[1], i = Mp(T(function(c) {
2738
+ var n = Fp, a = z(e), o = V({})[1], i = Mp(A(function(c) {
2739
2739
  a.current = c, o({});
2740
2740
  }, [o]), t, r), l = z(e);
2741
2741
  return n(l.current, e) || (i(e), l.current = e), [a.current, i];
2742
2742
  }
2743
2743
  const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconComponent: a, IconTypeArray: o }) => {
2744
- const i = Wd(), { texts: l } = Z(ge), [c, p] = V("star-outline"), [d, u] = V(n ? document.title.replace(n, "") : document.title), f = T(async () => {
2744
+ const i = Wd(), { texts: l } = Z(ge), [c, p] = V("star-outline"), [d, u] = V(n ? document.title.replace(n, "") : document.title), f = A(async () => {
2745
2745
  await r({ icon: c, name: d, url: i.pathname + i.search }), e();
2746
2746
  }, [e, r, c, i.pathname, i.search, d]), v = q(() => i.pathname + i.search, [i.pathname, i.search]);
2747
2747
  return /* @__PURE__ */ s.jsxs(We, { show: t, onHide: e, size: "sm", children: [
@@ -2778,21 +2778,21 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
2778
2778
  o && /* @__PURE__ */ s.jsx(Vp, { IconComponent: e, IconTypeArray: t, pageTitlePrefix: r, createLink: a })
2779
2779
  ] }) });
2780
2780
  }, Gp = (e) => {
2781
- const t = Nt(), { startLoading: r, stopLoading: n } = Z(_r), a = T(async (l) => {
2781
+ const t = Nt(), { startLoading: r, stopLoading: n } = Z(_r), a = A(async (l) => {
2782
2782
  r("submit-createShortcutLink");
2783
2783
  try {
2784
2784
  await t.post(`/dynamicForms/insert?referenceId=${e}`, l);
2785
2785
  } finally {
2786
2786
  n("submit-createShortcutLink");
2787
2787
  }
2788
- }, [t, e, r, n]), o = T(async (l) => {
2788
+ }, [t, e, r, n]), o = A(async (l) => {
2789
2789
  r("submit-updateShortcutLink");
2790
2790
  try {
2791
2791
  await t.post(`/dynamicForms/update?referenceId=${e}`, l);
2792
2792
  } finally {
2793
2793
  n("submit-updateShortcutLink");
2794
2794
  }
2795
- }, [t, e, r, n]), i = T(async (l) => {
2795
+ }, [t, e, r, n]), i = A(async (l) => {
2796
2796
  r("delete-deleteShortcutLink");
2797
2797
  try {
2798
2798
  await t.delete(`/dynamicForms/delete?referenceId=${e}&pk=${l.toString()}`);
@@ -2810,19 +2810,19 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
2810
2810
  throw new Error("Tried to make operation on null shortcutLinks.");
2811
2811
  return e;
2812
2812
  }, cD = ({ children: e, referenceId: t }) => {
2813
- const { user: r } = Z(jr), n = T((v) => v.map((g) => ({ id: g.id, icon: g.icon, name: g.name, url: g.url })), []), { data: a, reloadData: o } = hr(`/dynamicForms/lookup-data-all?referenceId=${t}&employee=${r == null ? void 0 : r.personalNumber}`, {
2813
+ const { user: r } = Z(jr), n = A((v) => v.map((g) => ({ id: g.id, icon: g.icon, name: g.name, url: g.url })), []), { data: a, reloadData: o } = hr(`/dynamicForms/lookup-data-all?referenceId=${t}&employee=${r == null ? void 0 : r.personalNumber}`, {
2814
2814
  silent: !0,
2815
2815
  dataTransformer: n,
2816
2816
  enabled: r !== null
2817
- }), { create: i, update: l, remove: c } = Gp(t), p = T(async (v) => {
2817
+ }), { create: i, update: l, remove: c } = Gp(t), p = A(async (v) => {
2818
2818
  const g = Mo(r);
2819
2819
  if (Wp(a).length >= aa)
2820
2820
  throw new Error("Cannot add more shortcut links.");
2821
2821
  await i({ ...v, employee: g.personalNumber }), await o();
2822
- }, [i, o, a, r]), d = T(async (v) => {
2822
+ }, [i, o, a, r]), d = A(async (v) => {
2823
2823
  const g = Mo(r);
2824
2824
  await l({ ...v, employee: g.personalNumber }), await o();
2825
- }, [o, l, r]), u = T(async (v) => {
2825
+ }, [o, l, r]), u = A(async (v) => {
2826
2826
  await c(v), await o();
2827
2827
  }, [o, c]), f = q(() => ({
2828
2828
  shortcutLinks: a,
@@ -2905,13 +2905,13 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
2905
2905
  const a = localStorage.getItem("dashboardConfig");
2906
2906
  a ? r(JSON.parse(a)) : e && r(e);
2907
2907
  }, [e]);
2908
- const n = T((a) => {
2908
+ const n = A((a) => {
2909
2909
  r(a), localStorage.setItem("dashboardConfig", JSON.stringify(a));
2910
2910
  }, []);
2911
2911
  return { dashboardConfig: t, onChangeDashboardConfig: n };
2912
2912
  }, dD = ({ widgetGroups: e, availableWidgets: t, editMode: r, defaultDashboardConfig: n }) => {
2913
2913
  var f;
2914
- const { texts: { homeDashboard: a } } = Z(ge), { dashboardConfig: o, onChangeDashboardConfig: i } = cf(n), l = T((v, g) => {
2914
+ const { texts: { homeDashboard: a } } = Z(ge), { dashboardConfig: o, onChangeDashboardConfig: i } = cf(n), l = A((v, g) => {
2915
2915
  var h, b;
2916
2916
  v === ((h = o.widgets) == null ? void 0 : h.length) ? i({
2917
2917
  ...o,
@@ -2920,19 +2920,19 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
2920
2920
  ...o,
2921
2921
  widgets: ((b = o.widgets) == null ? void 0 : b.map((m, x) => x === v ? { widgetId: g, fullWidth: !1 } : m)) ?? []
2922
2922
  });
2923
- }, [o, i]), c = T((v) => {
2923
+ }, [o, i]), c = A((v) => {
2924
2924
  var g, h;
2925
2925
  ((g = o.widgets[v]) == null ? void 0 : g.widgetId) === -1 ? i({
2926
2926
  ...o,
2927
2927
  widgets: ((h = o.widgets) == null ? void 0 : h.filter((b, m) => m !== v)) ?? []
2928
2928
  }) : l(v, -1);
2929
- }, [o, i, l]), p = T((v) => {
2929
+ }, [o, i, l]), p = A((v) => {
2930
2930
  var g;
2931
2931
  i({
2932
2932
  ...o,
2933
2933
  widgets: ((g = o.widgets) == null ? void 0 : g.map((h, b) => b === v ? { ...h, fullWidth: !h.fullWidth } : h)) ?? []
2934
2934
  });
2935
- }, [o, i]), d = T((v, g, h) => v ? /* @__PURE__ */ s.jsxs("div", { className: I(ot.widgetWrapper, {
2935
+ }, [o, i]), d = A((v, g, h) => v ? /* @__PURE__ */ s.jsxs("div", { className: I(ot.widgetWrapper, {
2936
2936
  [ot.widgetEdit]: r && v.id !== -1
2937
2937
  }, { [ot.fullWidth]: h }), children: [
2938
2938
  r && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -2957,7 +2957,7 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
2957
2957
  return l((g = o.widgets) == null ? void 0 : g.length, v);
2958
2958
  }, texts: a })
2959
2959
  ] }) });
2960
- }, df = "_badge_193ci_1", uf = "_sm_193ci_6", pf = "_md_193ci_10", ff = "_lg_193ci_14", vf = "_light_193ci_18", Tn = {
2960
+ }, df = "_badge_193ci_1", uf = "_sm_193ci_6", pf = "_md_193ci_10", ff = "_lg_193ci_14", vf = "_light_193ci_18", An = {
2961
2961
  badge: df,
2962
2962
  sm: uf,
2963
2963
  md: pf,
@@ -2965,7 +2965,7 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
2965
2965
  light: vf
2966
2966
  }, uD = ({ children: e, color: t = "primary", size: r = "md", rounded: n, className: a, variant: o = "filled", ...i }) => {
2967
2967
  const l = q(() => o === "filled" ? I(`bg-${t}`) : o === "outline" ? I(`text-${t} border-${t} border bg-white`) : "", [t, o]);
2968
- return /* @__PURE__ */ s.jsx("span", { className: I("luminus-badge badge", l, a, { "rounded-pill": n }, { "text-dark": t === "light" }, { [Tn.light]: t === "light" }, Tn.badge, Tn[r]), ...i, children: e });
2968
+ return /* @__PURE__ */ s.jsx("span", { className: I("luminus-badge badge", l, a, { "rounded-pill": n }, { "text-dark": t === "light" }, { [An.light]: t === "light" }, An.badge, An[r]), ...i, children: e });
2969
2969
  }, gf = "_collapse-icon_1ahhn_1", mf = "_collapsed_1ahhn_6", Vo = {
2970
2970
  "collapse-icon": "_collapse-icon_1ahhn_1",
2971
2971
  collapseIcon: gf,
@@ -2984,7 +2984,7 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
2984
2984
  /* @__PURE__ */ s.jsx(xs, { in: l, children: /* @__PURE__ */ s.jsx("div", { children: t }) }),
2985
2985
  /* @__PURE__ */ s.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
2986
2986
  ] });
2987
- }, hf = "_wrapper_1kmlk_1", bf = "_open_1kmlk_9", xf = "_dropdown_1kmlk_13", yf = "_search-input-container_1kmlk_19", wf = "_search-input_1kmlk_19", Df = "_loading-container_1kmlk_25", Nf = "_items-container_1kmlk_32", Ef = "_header-row_1kmlk_38", Cf = "_item_1kmlk_32", Sf = "_name_1kmlk_57", If = "_column-item_1kmlk_62", jf = "_icon_1kmlk_66", _f = "_action-buttons-container_1kmlk_74", Of = "_reverse_1kmlk_82", Pf = "_action-button_1kmlk_74", Af = "_actions-dropdown_1kmlk_95", Re = {
2987
+ }, hf = "_wrapper_1kmlk_1", bf = "_open_1kmlk_9", xf = "_dropdown_1kmlk_13", yf = "_search-input-container_1kmlk_19", wf = "_search-input_1kmlk_19", Df = "_loading-container_1kmlk_25", Nf = "_items-container_1kmlk_32", Ef = "_header-row_1kmlk_38", Cf = "_item_1kmlk_32", Sf = "_name_1kmlk_57", If = "_column-item_1kmlk_62", jf = "_icon_1kmlk_66", _f = "_action-buttons-container_1kmlk_74", Of = "_reverse_1kmlk_82", Pf = "_action-button_1kmlk_74", Tf = "_actions-dropdown_1kmlk_95", Re = {
2988
2988
  wrapper: hf,
2989
2989
  open: bf,
2990
2990
  dropdown: xf,
@@ -3009,10 +3009,10 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
3009
3009
  "action-button": "_action-button_1kmlk_74",
3010
3010
  actionButton: Pf,
3011
3011
  "actions-dropdown": "_actions-dropdown_1kmlk_95",
3012
- actionsDropdown: Af
3012
+ actionsDropdown: Tf
3013
3013
  }, hn = ({ show: e, onCancel: t, items: r, suggestedItems: n, suggestedItemsTitle: a, currentSelection: o, onSelectionChange: i, onSearchQueryChange: l, texts: c, itemsNameWidth: p, additionalColumns: d, displayIdAsName: u = !1, autoHideSearch: f = !1, allItemsLength: v, disabled: g, isLoading: h = !1, inputRef: b, archiveColumn: m = "archive", addNewOptionPath: x, refreshOptions: D }) => {
3014
3014
  var H;
3015
- const { texts: { customSelect: w } } = Z(ge), y = z(null), S = z(null), _ = z(null), C = z(null), j = z(null), [A, R] = V(""), [W] = mn(A, 500), [, E] = V(!1), { copyToClipboard: J } = zd(), $ = (H = b.current) == null ? void 0 : H.getBoundingClientRect(), O = ($ == null ? void 0 : $.x) ?? 0, P = (($ == null ? void 0 : $.x) ?? 0) + (($ == null ? void 0 : $.width) ?? 0), k = ($ == null ? void 0 : $.y) ?? 0, L = (($ == null ? void 0 : $.y) ?? 0) + (($ == null ? void 0 : $.height) ?? 0), Q = ($ == null ? void 0 : $.width) ?? 0, K = ($ == null ? void 0 : $.height) ?? 0, re = 5, ie = q(() => O ? O > window.innerWidth / 2 : !1, [O]), se = q(() => k ? k > window.innerHeight / 2 : !1, [k]);
3015
+ const { texts: { customSelect: w } } = Z(ge), y = z(null), S = z(null), _ = z(null), C = z(null), j = z(null), [T, R] = V(""), [W] = mn(T, 500), [, E] = V(!1), { copyToClipboard: J } = zd(), $ = (H = b.current) == null ? void 0 : H.getBoundingClientRect(), O = ($ == null ? void 0 : $.x) ?? 0, P = (($ == null ? void 0 : $.x) ?? 0) + (($ == null ? void 0 : $.width) ?? 0), k = ($ == null ? void 0 : $.y) ?? 0, L = (($ == null ? void 0 : $.y) ?? 0) + (($ == null ? void 0 : $.height) ?? 0), Q = ($ == null ? void 0 : $.width) ?? 0, K = ($ == null ? void 0 : $.height) ?? 0, re = 5, ie = q(() => O ? O > window.innerWidth / 2 : !1, [O]), se = q(() => k ? k > window.innerHeight / 2 : !1, [k]);
3016
3016
  G(() => {
3017
3017
  var M;
3018
3018
  e && ((M = _.current) == null || M.focus());
@@ -3025,7 +3025,7 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
3025
3025
  G(() => {
3026
3026
  e && r.length > 0 ? X(0) : X(null);
3027
3027
  }, [r, e]);
3028
- const fe = q(() => F !== null ? r.at(F) ?? null : null, [F, r]), ue = T((M, te) => {
3028
+ const fe = q(() => F !== null ? r.at(F) ?? null : null, [F, r]), ue = A((M, te) => {
3029
3029
  var he, ce;
3030
3030
  const ve = document.getElementById(`item-${M}`);
3031
3031
  if (ve) {
@@ -3040,12 +3040,12 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
3040
3040
  behavior: "smooth"
3041
3041
  });
3042
3042
  }
3043
- }, []), Y = T((M) => {
3043
+ }, []), Y = A((M) => {
3044
3044
  if (F === null || g)
3045
3045
  return;
3046
3046
  const te = F + M;
3047
3047
  te < 0 || te >= r.length || X((ve) => (ve !== null && ue(ve, M > 0 ? "down" : "up"), te));
3048
- }, [F, r, g, ue]), pe = T((M) => {
3048
+ }, [F, r, g, ue]), pe = A((M) => {
3049
3049
  if (e)
3050
3050
  switch (M.key) {
3051
3051
  case "Escape":
@@ -3061,7 +3061,7 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
3061
3061
  M.stopPropagation(), M.preventDefault(), Y(1);
3062
3062
  break;
3063
3063
  }
3064
- }, [t, e, Y, fe, g, i]), U = T(() => {
3064
+ }, [t, e, Y, fe, g, i]), U = A(() => {
3065
3065
  E((M) => !M);
3066
3066
  }, []);
3067
3067
  G(() => (window.addEventListener("scroll", U), () => {
@@ -3069,22 +3069,22 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
3069
3069
  }), [U]), G(() => (window.addEventListener("resize", U), () => {
3070
3070
  window.removeEventListener("resize", U);
3071
3071
  }), [U]), hs(pe), ms([y, S, j], t);
3072
- const Me = p ?? (d && d.length > 0 ? 250 : 0), Fe = (d == null ? void 0 : d.reduce((M, te) => M + (te.width ?? 100), 0)) ?? 0, je = `calc(max(${Q}px, ${Me}px + ${Fe}px))`, Ye = q(() => (o && e && !g) ?? !1, [o, e, g]), Te = q(() => (o && e) ?? !1, [o, e]), B = q(() => e && (Te || x !== void 0 || D !== void 0), [e, Te, x, D]);
3072
+ const Me = p ?? (d && d.length > 0 ? 250 : 0), Fe = (d == null ? void 0 : d.reduce((M, te) => M + (te.width ?? 100), 0)) ?? 0, je = `calc(max(${Q}px, ${Me}px + ${Fe}px))`, Ye = q(() => (o && e && !g) ?? !1, [o, e, g]), Ae = q(() => (o && e) ?? !1, [o, e]), B = q(() => e && (Ae || x !== void 0 || D !== void 0), [e, Ae, x, D]);
3073
3073
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3074
3074
  /* @__PURE__ */ s.jsx(bc, { show: e, onClick: t }),
3075
3075
  /* @__PURE__ */ s.jsxs("div", { className: I("luminus-dropdown-picker-actions", Re.actionButtonsContainer, {
3076
3076
  [Re.reverse]: ie
3077
3077
  }), style: {
3078
3078
  top: `calc(${k}px + ${K / 2}px - 12px)`,
3079
- left: ie ? Ye && Te ? `calc(${O}px - 24px - 8px - 24px - 4px)` : `calc(${O}px - 24px - 8px)` : `calc(${P}px + 8px)`
3079
+ left: ie ? Ye && Ae ? `calc(${O}px - 24px - 8px - 24px - 4px)` : `calc(${O}px - 24px - 8px)` : `calc(${P}px + 8px)`
3080
3080
  }, children: [
3081
3081
  Ye && /* @__PURE__ */ s.jsx("button", { ref: S, type: "button", className: I("luminus-dropdown-picker-clear-button", Re.actionButton), onClick: () => !g && i(null), children: /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(us, { size: 16 }) }) }),
3082
3082
  B ? /* @__PURE__ */ s.jsx("div", { ref: j, children: /* @__PURE__ */ s.jsxs(Kt, { toggle: /* @__PURE__ */ s.jsx(Xt, { as: Or, className: I("luminus-dropdown-picker-actions-dropdown", Re.actionsDropdown), icon: /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(pd, { size: 16 }) }) }), children: [
3083
- Te ? /* @__PURE__ */ s.jsx(Ue, { icon: /* @__PURE__ */ s.jsx(fd, {}), onClick: () => {
3083
+ Ae ? /* @__PURE__ */ s.jsx(Ue, { icon: /* @__PURE__ */ s.jsx(fd, {}), onClick: () => {
3084
3084
  var M, te;
3085
3085
  J(u ? ((M = o == null ? void 0 : o.id) == null ? void 0 : M.toString()) ?? "" : ((te = o == null ? void 0 : o.name) == null ? void 0 : te.toString()) ?? "");
3086
3086
  }, children: w.copySelection }) : null,
3087
- Te && (x || D) ? /* @__PURE__ */ s.jsx(Zs, {}) : null,
3087
+ Ae && (x || D) ? /* @__PURE__ */ s.jsx(Zs, {}) : null,
3088
3088
  x ? /* @__PURE__ */ s.jsx(Ue, { icon: /* @__PURE__ */ s.jsx(vd, {}), onClick: () => {
3089
3089
  window.open(x, "_blank");
3090
3090
  }, children: w.addNewOption }) : null,
@@ -3102,12 +3102,12 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
3102
3102
  width: je,
3103
3103
  justifyContent: se ? "flex-end" : "flex-start"
3104
3104
  }, children: /* @__PURE__ */ s.jsx("div", { ref: y, className: I("shadow rounded", Re.dropdown), children: !g && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3105
- !l || f && (v ?? r.length) <= re ? null : /* @__PURE__ */ s.jsx("div", { className: I("search-input-container border-bottom", Re.searchInputContainer), children: /* @__PURE__ */ s.jsx(Ie.Control, { ref: _, type: "search", size: "sm", className: Re.searchInput, placeholder: c.searchPlaceholder, value: A, onChange: (M) => {
3105
+ !l || f && (v ?? r.length) <= re ? null : /* @__PURE__ */ s.jsx("div", { className: I("search-input-container border-bottom", Re.searchInputContainer), children: /* @__PURE__ */ s.jsx(Ie.Control, { ref: _, type: "search", size: "sm", className: Re.searchInput, placeholder: c.searchPlaceholder, value: T, onChange: (M) => {
3106
3106
  var te;
3107
3107
  return R(((te = M.target) == null ? void 0 : te.value) ?? "");
3108
3108
  } }) }),
3109
- A.length < 1 && n && n.length > 0 ? /* @__PURE__ */ s.jsx(Pr, { variant: "info", size: "sm", children: a ?? w.suggestedItemsTitle }) : null,
3110
- h ? /* @__PURE__ */ s.jsx("div", { className: Re.loadingContainer, children: /* @__PURE__ */ s.jsx(ja, { animation: "border", variant: "primary" }) }) : (A.length < 1 && n && (n == null ? void 0 : n.length) > 0 || r.length > 0) && /* @__PURE__ */ s.jsxs("div", { ref: C, className: I("items", Re.itemsContainer), children: [
3109
+ T.length < 1 && n && n.length > 0 ? /* @__PURE__ */ s.jsx(Pr, { variant: "info", size: "sm", children: a ?? w.suggestedItemsTitle }) : null,
3110
+ h ? /* @__PURE__ */ s.jsx("div", { className: Re.loadingContainer, children: /* @__PURE__ */ s.jsx(ja, { animation: "border", variant: "primary" }) }) : (T.length < 1 && n && (n == null ? void 0 : n.length) > 0 || r.length > 0) && /* @__PURE__ */ s.jsxs("div", { ref: C, className: I("items", Re.itemsContainer), children: [
3111
3111
  d && d.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: I("header-row border-bottom", Re.headerRow), children: [
3112
3112
  /* @__PURE__ */ s.jsx("div", { className: Re.name }),
3113
3113
  d == null ? void 0 : d.filter((M) => M.key !== m).map((M) => /* @__PURE__ */ s.jsx("div", { className: Re.columnItem, style: {
@@ -3116,7 +3116,7 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
3116
3116
  maxWidth: `${M.width ?? 100}px`
3117
3117
  }, children: /* @__PURE__ */ s.jsx(ae, { variant: "caption", children: M.name }) }, M.key))
3118
3118
  ] }),
3119
- (A.length < 1 && n && n.length > 0 ? n : r).map((M, te) => /* @__PURE__ */ s.jsxs("button", { id: `item-${te}`, type: "button", className: I("item cursor-pointer", Re.item, {
3119
+ (T.length < 1 && n && n.length > 0 ? n : r).map((M, te) => /* @__PURE__ */ s.jsxs("button", { id: `item-${te}`, type: "button", className: I("item cursor-pointer", Re.item, {
3120
3120
  [Re.focused]: F === te
3121
3121
  }, {
3122
3122
  focused: F === te
@@ -3133,9 +3133,9 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
3133
3133
  ] })
3134
3134
  ] }) }) })
3135
3135
  ] });
3136
- }, Tf = "_input-group_1hcpm_1", Rf = "_input-group-text_1hcpm_5", kf = "_left_1hcpm_9", Bf = "_right_1hcpm_13", Lf = "_input_1hcpm_1", Mf = "_submit-button_1hcpm_20", It = {
3136
+ }, Af = "_input-group_1hcpm_1", Rf = "_input-group-text_1hcpm_5", kf = "_left_1hcpm_9", Bf = "_right_1hcpm_13", Lf = "_input_1hcpm_1", Mf = "_submit-button_1hcpm_20", It = {
3137
3137
  "input-group": "_input-group_1hcpm_1",
3138
- inputGroup: Tf,
3138
+ inputGroup: Af,
3139
3139
  "input-group-text": "_input-group-text_1hcpm_5",
3140
3140
  inputGroupText: Rf,
3141
3141
  left: kf,
@@ -3154,7 +3154,7 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
3154
3154
  header: Hf,
3155
3155
  item: zf
3156
3156
  }, qf = ({ show: e, query: t, onCancel: r, groups: n, isLoading: a, searchTypes: o }) => {
3157
- const { texts: { appSearch: i } } = Z(ge), l = z(null), c = T((p) => {
3157
+ const { texts: { appSearch: i } } = Z(ge), l = z(null), c = A((p) => {
3158
3158
  var u;
3159
3159
  const d = (u = o.find((f) => f.key === p.type)) == null ? void 0 : u.toPath;
3160
3160
  return d ? `${d}/${p.searchKey}` : "/not-found";
@@ -3190,7 +3190,7 @@ const $p = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconC
3190
3190
  ] }, p.key.category);
3191
3191
  }) }) });
3192
3192
  }, Yf = (e, t) => {
3193
- const r = Nt(), [n, a] = V(!1), [o, i] = V([]), l = !e || !e.key, c = T(() => {
3193
+ const r = Nt(), [n, a] = V(!1), [o, i] = V([]), l = !e || !e.key, c = A(() => {
3194
3194
  if (t.length < 3) {
3195
3195
  i([]);
3196
3196
  return;
@@ -3369,7 +3369,7 @@ function lv(e) {
3369
3369
  function cv(e) {
3370
3370
  return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
3371
3371
  }
3372
- function Tt(e) {
3372
+ function At(e) {
3373
3373
  var t = typeof e;
3374
3374
  return process.env.NODE_ENV !== "production" && (t = iv(e)), t;
3375
3375
  }
@@ -3379,11 +3379,11 @@ function nl(e, t, r) {
3379
3379
  throw new Error(process.env.NODE_ENV === "production" ? Ve(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
3380
3380
  if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
3381
3381
  if (typeof r != "function")
3382
- throw new Error(process.env.NODE_ENV === "production" ? Ve(1) : "Expected the enhancer to be a function. Instead, received: '" + Tt(r) + "'");
3382
+ throw new Error(process.env.NODE_ENV === "production" ? Ve(1) : "Expected the enhancer to be a function. Instead, received: '" + At(r) + "'");
3383
3383
  return r(nl)(e, t);
3384
3384
  }
3385
3385
  if (typeof e != "function")
3386
- throw new Error(process.env.NODE_ENV === "production" ? Ve(2) : "Expected the root reducer to be a function. Instead, received: '" + Tt(e) + "'");
3386
+ throw new Error(process.env.NODE_ENV === "production" ? Ve(2) : "Expected the root reducer to be a function. Instead, received: '" + At(e) + "'");
3387
3387
  var a = e, o = t, i = [], l = i, c = !1;
3388
3388
  function p() {
3389
3389
  l === i && (l = i.slice());
@@ -3395,7 +3395,7 @@ function nl(e, t, r) {
3395
3395
  }
3396
3396
  function u(h) {
3397
3397
  if (typeof h != "function")
3398
- throw new Error(process.env.NODE_ENV === "production" ? Ve(4) : "Expected the listener to be a function. Instead, received: '" + Tt(h) + "'");
3398
+ throw new Error(process.env.NODE_ENV === "production" ? Ve(4) : "Expected the listener to be a function. Instead, received: '" + At(h) + "'");
3399
3399
  if (c)
3400
3400
  throw new Error(process.env.NODE_ENV === "production" ? Ve(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
3401
3401
  var b = !0;
@@ -3411,7 +3411,7 @@ function nl(e, t, r) {
3411
3411
  }
3412
3412
  function f(h) {
3413
3413
  if (!ov(h))
3414
- throw new Error(process.env.NODE_ENV === "production" ? Ve(7) : "Actions must be plain objects. Instead, the actual type was: '" + Tt(h) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
3414
+ throw new Error(process.env.NODE_ENV === "production" ? Ve(7) : "Actions must be plain objects. Instead, the actual type was: '" + At(h) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
3415
3415
  if (typeof h.type > "u")
3416
3416
  throw new Error(process.env.NODE_ENV === "production" ? Ve(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
3417
3417
  if (c)
@@ -3429,7 +3429,7 @@ function nl(e, t, r) {
3429
3429
  }
3430
3430
  function v(h) {
3431
3431
  if (typeof h != "function")
3432
- throw new Error(process.env.NODE_ENV === "production" ? Ve(10) : "Expected the nextReducer to be a function. Instead, received: '" + Tt(h));
3432
+ throw new Error(process.env.NODE_ENV === "production" ? Ve(10) : "Expected the nextReducer to be a function. Instead, received: '" + At(h));
3433
3433
  a = h, f({
3434
3434
  type: Ho.REPLACE
3435
3435
  });
@@ -3447,7 +3447,7 @@ function nl(e, t, r) {
3447
3447
  */
3448
3448
  subscribe: function(x) {
3449
3449
  if (typeof x != "object" || x === null)
3450
- throw new Error(process.env.NODE_ENV === "production" ? Ve(11) : "Expected the observer to be an object. Instead, received: '" + Tt(x) + "'");
3450
+ throw new Error(process.env.NODE_ENV === "production" ? Ve(11) : "Expected the observer to be an object. Instead, received: '" + At(x) + "'");
3451
3451
  function D() {
3452
3452
  x.next && x.next(d());
3453
3453
  }
@@ -3479,7 +3479,7 @@ function qo(e, t) {
3479
3479
  if (typeof e == "function")
3480
3480
  return zo(e, t);
3481
3481
  if (typeof e != "object" || e === null)
3482
- throw new Error(process.env.NODE_ENV === "production" ? Ve(16) : "bindActionCreators expected an object or a function, but instead received: '" + Tt(e) + `'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);
3482
+ throw new Error(process.env.NODE_ENV === "production" ? Ve(16) : "bindActionCreators expected an object or a function, but instead received: '" + At(e) + `'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);
3483
3483
  var r = {};
3484
3484
  for (var n in e) {
3485
3485
  var a = e[n];
@@ -3519,8 +3519,8 @@ function dv() {
3519
3519
  };
3520
3520
  };
3521
3521
  }
3522
- var Aa = /* @__PURE__ */ le.createContext(null);
3523
- process.env.NODE_ENV !== "production" && (Aa.displayName = "ReactRedux");
3522
+ var Ta = /* @__PURE__ */ le.createContext(null);
3523
+ process.env.NODE_ENV !== "production" && (Ta.displayName = "ReactRedux");
3524
3524
  function uv(e) {
3525
3525
  e();
3526
3526
  }
@@ -3615,7 +3615,7 @@ function ll(e) {
3615
3615
  l.tryUnsubscribe(), l.onStateChange = null;
3616
3616
  };
3617
3617
  }, [a, o]);
3618
- var i = r || Aa;
3618
+ var i = r || Ta;
3619
3619
  return /* @__PURE__ */ le.createElement(i.Provider, {
3620
3620
  value: a
3621
3621
  }, n);
@@ -3629,7 +3629,7 @@ process.env.NODE_ENV !== "production" && (ll.propTypes = {
3629
3629
  context: it.object,
3630
3630
  children: it.any
3631
3631
  });
3632
- var Ta = bd(), gv = {
3632
+ var Aa = bd(), gv = {
3633
3633
  childContextTypes: !0,
3634
3634
  contextType: !0,
3635
3635
  contextTypes: !0,
@@ -3663,10 +3663,10 @@ var Ta = bd(), gv = {
3663
3663
  propTypes: !0,
3664
3664
  type: !0
3665
3665
  }, Ra = {};
3666
- Ra[Ta.ForwardRef] = hv;
3667
- Ra[Ta.Memo] = cl;
3666
+ Ra[Aa.ForwardRef] = hv;
3667
+ Ra[Aa.Memo] = cl;
3668
3668
  function Ko(e) {
3669
- return Ta.isMemo(e) ? cl : Ra[e.$$typeof] || gv;
3669
+ return Aa.isMemo(e) ? cl : Ra[e.$$typeof] || gv;
3670
3670
  }
3671
3671
  var bv = Object.defineProperty, xv = Object.getOwnPropertyNames, Xo = Object.getOwnPropertySymbols, yv = Object.getOwnPropertyDescriptor, wv = Object.getPrototypeOf, Jo = Object.prototype;
3672
3672
  function dl(e, t, r) {
@@ -3739,8 +3739,8 @@ function Nv() {
3739
3739
  }
3740
3740
  }
3741
3741
  }
3742
- var D = o, w = e, y = l, S = r, _ = u, C = d, j = t, A = a, R = n, W = c;
3743
- return we.ContextConsumer = i, we.ContextProvider = D, we.Element = w, we.ForwardRef = y, we.Fragment = S, we.Lazy = _, we.Memo = C, we.Portal = j, we.Profiler = A, we.StrictMode = R, we.Suspense = W, we.isAsyncMode = function() {
3742
+ var D = o, w = e, y = l, S = r, _ = u, C = d, j = t, T = a, R = n, W = c;
3743
+ return we.ContextConsumer = i, we.ContextProvider = D, we.Element = w, we.ForwardRef = y, we.Fragment = S, we.Lazy = _, we.Memo = C, we.Portal = j, we.Profiler = T, we.StrictMode = R, we.Suspense = W, we.isAsyncMode = function() {
3744
3744
  return !1;
3745
3745
  }, we.isConcurrentMode = function() {
3746
3746
  return !1;
@@ -3822,7 +3822,7 @@ function Ev() {
3822
3822
  }
3823
3823
  }
3824
3824
  }
3825
- var y = i, S = o, _ = e, C = l, j = r, A = u, R = d, W = t, E = a, J = n, $ = c, O = !1, P = !1;
3825
+ var y = i, S = o, _ = e, C = l, j = r, T = u, R = d, W = t, E = a, J = n, $ = c, O = !1, P = !1;
3826
3826
  function k(U) {
3827
3827
  return O || (O = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
3828
3828
  }
@@ -3862,7 +3862,7 @@ function Ev() {
3862
3862
  function pe(U) {
3863
3863
  return w(U) === c;
3864
3864
  }
3865
- De.ContextConsumer = y, De.ContextProvider = S, De.Element = _, De.ForwardRef = C, De.Fragment = j, De.Lazy = A, De.Memo = R, De.Portal = W, De.Profiler = E, De.StrictMode = J, De.Suspense = $, De.isAsyncMode = k, De.isConcurrentMode = L, De.isContextConsumer = Q, De.isContextProvider = K, De.isElement = re, De.isForwardRef = ie, De.isFragment = se, De.isLazy = F, De.isMemo = X, De.isPortal = fe, De.isProfiler = ue, De.isStrictMode = Y, De.isSuspense = pe, De.isValidElementType = D, De.typeOf = w;
3865
+ De.ContextConsumer = y, De.ContextProvider = S, De.Element = _, De.ForwardRef = C, De.Fragment = j, De.Lazy = T, De.Memo = R, De.Portal = W, De.Profiler = E, De.StrictMode = J, De.Suspense = $, De.isAsyncMode = k, De.isConcurrentMode = L, De.isContextConsumer = Q, De.isContextProvider = K, De.isElement = re, De.isForwardRef = ie, De.isFragment = se, De.isLazy = F, De.isMemo = X, De.isPortal = fe, De.isProfiler = ue, De.isStrictMode = Y, De.isSuspense = pe, De.isValidElementType = D, De.typeOf = w;
3866
3866
  }()), De;
3867
3867
  }
3868
3868
  process.env.NODE_ENV === "production" ? oa.exports = Nv() : oa.exports = Ev();
@@ -3885,7 +3885,7 @@ function ri(e, t, r) {
3885
3885
  function Pv(e, t, r, n, a, o, i) {
3886
3886
  e.current = n, t.current = a, r.current = !1, o.current && (o.current = null, i());
3887
3887
  }
3888
- function Av(e, t, r, n, a, o, i, l, c, p) {
3888
+ function Tv(e, t, r, n, a, o, i, l, c, p) {
3889
3889
  if (e) {
3890
3890
  var d = !1, u = null, f = function() {
3891
3891
  if (!d) {
@@ -3911,14 +3911,14 @@ function Av(e, t, r, n, a, o, i, l, c, p) {
3911
3911
  return v;
3912
3912
  }
3913
3913
  }
3914
- var Tv = function() {
3914
+ var Av = function() {
3915
3915
  return [null, 0];
3916
3916
  };
3917
3917
  function Rv(e, t) {
3918
3918
  t === void 0 && (t = {});
3919
3919
  var r = t, n = r.getDisplayName, a = n === void 0 ? function(S) {
3920
3920
  return "ConnectAdvanced(" + S + ")";
3921
- } : n, o = r.methodName, i = o === void 0 ? "connectAdvanced" : o, l = r.renderCountProp, c = l === void 0 ? void 0 : l, p = r.shouldHandleStateChanges, d = p === void 0 ? !0 : p, u = r.storeKey, f = u === void 0 ? "store" : u, v = r.withRef, g = v === void 0 ? !1 : v, h = r.forwardRef, b = h === void 0 ? !1 : h, m = r.context, x = m === void 0 ? Aa : m, D = Zr(r, Cv);
3921
+ } : n, o = r.methodName, i = o === void 0 ? "connectAdvanced" : o, l = r.renderCountProp, c = l === void 0 ? void 0 : l, p = r.shouldHandleStateChanges, d = p === void 0 ? !0 : p, u = r.storeKey, f = u === void 0 ? "store" : u, v = r.withRef, g = v === void 0 ? !1 : v, h = r.forwardRef, b = h === void 0 ? !1 : h, m = r.context, x = m === void 0 ? Ta : m, D = Zr(r, Cv);
3922
3922
  if (process.env.NODE_ENV !== "production") {
3923
3923
  if (c !== void 0)
3924
3924
  throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");
@@ -3932,7 +3932,7 @@ function Rv(e, t) {
3932
3932
  return function(_) {
3933
3933
  if (process.env.NODE_ENV !== "production" && !ti.isValidElementType(_))
3934
3934
  throw new Error("You must pass a component to the function returned by " + (i + ". Instead received " + _v(_)));
3935
- var C = _.displayName || _.name || "Component", j = a(C), A = ne({}, D, {
3935
+ var C = _.displayName || _.name || "Component", j = a(C), T = ne({}, D, {
3936
3936
  getDisplayName: a,
3937
3937
  methodName: i,
3938
3938
  renderCountProp: c,
@@ -3943,7 +3943,7 @@ function Rv(e, t) {
3943
3943
  WrappedComponent: _
3944
3944
  }), R = D.pure;
3945
3945
  function W(P) {
3946
- return e(P.dispatch, A);
3946
+ return e(P.dispatch, T);
3947
3947
  }
3948
3948
  var E = R ? q : function(P) {
3949
3949
  return P();
@@ -3967,13 +3967,13 @@ function Rv(e, t) {
3967
3967
  return se ? ie : ne({}, ie, {
3968
3968
  subscription: Y
3969
3969
  });
3970
- }, [se, ie, Y]), Me = Md(Ov, Iv, Tv), Fe = Me[0], je = Fe[0], Ye = Me[1];
3970
+ }, [se, ie, Y]), Me = Md(Ov, Iv, Av), Fe = Me[0], je = Fe[0], Ye = Me[1];
3971
3971
  if (je && je.error)
3972
3972
  throw je.error;
3973
- var Te = z(), B = z(K), H = z(), M = z(!1), te = E(function() {
3973
+ var Ae = z(), B = z(K), H = z(), M = z(!1), te = E(function() {
3974
3974
  return H.current && K === B.current ? H.current : fe(X.getState(), K);
3975
3975
  }, [X, je, K]);
3976
- ri(Pv, [B, Te, M, K, te, H, pe]), ri(Av, [d, X, Y, fe, B, Te, M, H, pe, Ye], [X, Y, fe]);
3976
+ ri(Pv, [B, Ae, M, K, te, H, pe]), ri(Tv, [d, X, Y, fe, B, Ae, M, H, pe, Ye], [X, Y, fe]);
3977
3977
  var ve = q(function() {
3978
3978
  return /* @__PURE__ */ le.createElement(_, ne({}, te, {
3979
3979
  ref: Q
@@ -4170,7 +4170,7 @@ function rg(e) {
4170
4170
  var t = {}, r = t.connectHOC, n = r === void 0 ? Rv : r, a = t.mapStateToPropsFactories, o = a === void 0 ? Wv : a, i = t.mapDispatchToPropsFactories, l = i === void 0 ? $v : i, c = t.mergePropsFactories, p = c === void 0 ? Yv : c, d = t.selectorFactory, u = d === void 0 ? Zv : d;
4171
4171
  return function(v, g, h, b) {
4172
4172
  b === void 0 && (b = {});
4173
- var m = b, x = m.pure, D = x === void 0 ? !0 : x, w = m.areStatesEqual, y = w === void 0 ? tg : w, S = m.areOwnPropsEqual, _ = S === void 0 ? kn : S, C = m.areStatePropsEqual, j = C === void 0 ? kn : C, A = m.areMergedPropsEqual, R = A === void 0 ? kn : A, W = Zr(m, eg), E = Ln(v, o, "mapStateToProps"), J = Ln(g, l, "mapDispatchToProps"), $ = Ln(h, p, "mergeProps");
4173
+ var m = b, x = m.pure, D = x === void 0 ? !0 : x, w = m.areStatesEqual, y = w === void 0 ? tg : w, S = m.areOwnPropsEqual, _ = S === void 0 ? kn : S, C = m.areStatePropsEqual, j = C === void 0 ? kn : C, T = m.areMergedPropsEqual, R = T === void 0 ? kn : T, W = Zr(m, eg), E = Ln(v, o, "mapStateToProps"), J = Ln(g, l, "mapDispatchToProps"), $ = Ln(h, p, "mergeProps");
4174
4174
  return n(u, ne({
4175
4175
  // used in error messages
4176
4176
  methodName: "connect",
@@ -4555,7 +4555,7 @@ var bg = function(e) {
4555
4555
  left: Math.max(t.left, e.left)
4556
4556
  });
4557
4557
  return r.width <= 0 || r.height <= 0 ? null : r;
4558
- }, Ar = function(t, r) {
4558
+ }, Tr = function(t, r) {
4559
4559
  return {
4560
4560
  top: t.top + r.y,
4561
4561
  left: t.left + r.x,
@@ -4582,7 +4582,7 @@ var bg = function(e) {
4582
4582
  bottom: 0,
4583
4583
  left: 0
4584
4584
  }, Cg = function(t, r) {
4585
- return r ? Ar(t, r.scroll.diff.displacement) : t;
4585
+ return r ? Tr(t, r.scroll.diff.displacement) : t;
4586
4586
  }, Sg = function(t, r, n) {
4587
4587
  if (n && n.increasedBy) {
4588
4588
  var a;
@@ -4747,7 +4747,7 @@ var yn = ke(function(e, t) {
4747
4747
  var u = c && i || p && o;
4748
4748
  return u;
4749
4749
  };
4750
- }, Ag = function(e) {
4750
+ }, Tg = function(e) {
4751
4751
  var t = Qe(e.top, e.bottom), r = Qe(e.left, e.right);
4752
4752
  return function(n) {
4753
4753
  var a = t(n.top) && t(n.bottom) && r(n.left) && r(n.right);
@@ -4773,7 +4773,7 @@ var yn = ke(function(e, t) {
4773
4773
  crossAxisStart: "top",
4774
4774
  crossAxisEnd: "bottom",
4775
4775
  crossAxisSize: "height"
4776
- }, Tg = function(e) {
4776
+ }, Ag = function(e) {
4777
4777
  return function(t) {
4778
4778
  var r = Qe(t.top, t.bottom), n = Qe(t.left, t.right);
4779
4779
  return function(a) {
@@ -4782,7 +4782,7 @@ var yn = ke(function(e, t) {
4782
4782
  };
4783
4783
  }, Rg = function(t, r) {
4784
4784
  var n = r.frame ? r.frame.scroll.diff.displacement : Be;
4785
- return Ar(t, n);
4785
+ return Tr(t, n);
4786
4786
  }, kg = function(t, r, n) {
4787
4787
  return r.subject.active ? n(r.subject.active)(t) : !1;
4788
4788
  }, Bg = function(t, r, n) {
@@ -4796,11 +4796,11 @@ var yn = ke(function(e, t) {
4796
4796
  }));
4797
4797
  }, jl = function(t) {
4798
4798
  return Ga(ne({}, t, {
4799
- isVisibleThroughFrameFn: Ag
4799
+ isVisibleThroughFrameFn: Tg
4800
4800
  }));
4801
4801
  }, Mg = function(t) {
4802
4802
  return Ga(ne({}, t, {
4803
- isVisibleThroughFrameFn: Tg(t.destination.axis)
4803
+ isVisibleThroughFrameFn: Ag(t.destination.axis)
4804
4804
  }));
4805
4805
  }, Fg = function(t, r, n) {
4806
4806
  if (typeof n == "boolean")
@@ -5116,7 +5116,7 @@ var Qg = function(e) {
5116
5116
  var t = e.pageBorderBoxCenter, r = e.draggable, n = e.viewport, a = Zg(n, t), o = He(a, r.page.borderBox.center);
5117
5117
  return Le(r.client.borderBox.center, o);
5118
5118
  }, Pl = function(e) {
5119
- var t = e.draggable, r = e.destination, n = e.newPageBorderBoxCenter, a = e.viewport, o = e.withDroppableDisplacement, i = e.onlyOnMainAxis, l = i === void 0 ? !1 : i, c = He(n, t.page.borderBox.center), p = Ar(t.page.borderBox, c), d = {
5119
+ var t = e.draggable, r = e.destination, n = e.newPageBorderBoxCenter, a = e.viewport, o = e.withDroppableDisplacement, i = e.onlyOnMainAxis, l = i === void 0 ? !1 : i, c = He(n, t.page.borderBox.center), p = Tr(t.page.borderBox, c), d = {
5120
5120
  target: p,
5121
5121
  destination: r,
5122
5122
  withDroppableDisplacement: o,
@@ -5230,7 +5230,7 @@ var Qg = function(e) {
5230
5230
  return Dt(t.descriptor.id, r) ? He(n, r.displacedBy.point) : n;
5231
5231
  }, rm = function(t, r) {
5232
5232
  var n = t.page.borderBox;
5233
- return Dt(t.descriptor.id, r) ? Ar(n, Qt(r.displacedBy.point)) : n;
5233
+ return Dt(t.descriptor.id, r) ? Tr(n, Qt(r.displacedBy.point)) : n;
5234
5234
  }, nm = function(e) {
5235
5235
  var t = e.pageBorderBoxCenter, r = e.viewport, n = e.destination, a = e.insideDestination, o = e.afterCritical, i = a.filter(function(l) {
5236
5236
  return jl({
@@ -5244,7 +5244,7 @@ var Qg = function(e) {
5244
5244
  return p < d ? -1 : d < p ? 1 : l.descriptor.index - c.descriptor.index;
5245
5245
  });
5246
5246
  return i[0] || null;
5247
- }, Tr = ke(function(t, r) {
5247
+ }, Ar = ke(function(t, r) {
5248
5248
  var n = r[t.line];
5249
5249
  return {
5250
5250
  value: n,
@@ -5258,16 +5258,16 @@ var Qg = function(e) {
5258
5258
  return d + u.client.marginBox[a.size];
5259
5259
  }, 0), c = l + r[a.line], p = c - o;
5260
5260
  return p <= 0 ? null : Bt(a.line, p);
5261
- }, Al = function(t, r) {
5261
+ }, Tl = function(t, r) {
5262
5262
  return ne({}, t, {
5263
5263
  scroll: ne({}, t.scroll, {
5264
5264
  max: r
5265
5265
  })
5266
5266
  });
5267
- }, Tl = function(t, r, n) {
5267
+ }, Al = function(t, r, n) {
5268
5268
  var a = t.frame;
5269
5269
  Zt(r, t) && (process.env.NODE_ENV !== "production" ? N(!1, "Should not add placeholder space to home list") : N()), t.subject.withPlaceholder && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot add placeholder size to a subject when it already has one") : N());
5270
- var o = Tr(t.axis, r.displaceBy).point, i = am(t, o, n), l = {
5270
+ var o = Ar(t.axis, r.displaceBy).point, i = am(t, o, n), l = {
5271
5271
  placeholderSize: o,
5272
5272
  increasedBy: i,
5273
5273
  oldFrameMaxScroll: t.frame ? t.frame.scroll.max : null
@@ -5283,7 +5283,7 @@ var Qg = function(e) {
5283
5283
  subject: c
5284
5284
  });
5285
5285
  }
5286
- var p = i ? Le(a.scroll.max, i) : a.scroll.max, d = Al(a, p), u = zt({
5286
+ var p = i ? Le(a.scroll.max, i) : a.scroll.max, d = Tl(a, p), u = zt({
5287
5287
  page: t.subject.page,
5288
5288
  withPlaceholder: l,
5289
5289
  axis: t.axis,
@@ -5310,7 +5310,7 @@ var Qg = function(e) {
5310
5310
  }
5311
5311
  var o = r.oldFrameMaxScroll;
5312
5312
  o || (process.env.NODE_ENV !== "production" ? N(!1, "Expected droppable with frame to have old max frame scroll when removing placeholder") : N());
5313
- var i = Al(n, o), l = zt({
5313
+ var i = Tl(n, o), l = zt({
5314
5314
  page: t.subject.page,
5315
5315
  axis: t.axis,
5316
5316
  frame: i,
@@ -5341,7 +5341,7 @@ var Qg = function(e) {
5341
5341
  droppable: i,
5342
5342
  draggables: o,
5343
5343
  afterCritical: c
5344
- }), u = Zt(a, i) ? i : Tl(i, a, o), f = Pl({
5344
+ }), u = Zt(a, i) ? i : Al(i, a, o), f = Pl({
5345
5345
  draggable: a,
5346
5346
  destination: u,
5347
5347
  newPageBorderBoxCenter: d,
@@ -5354,7 +5354,7 @@ var Qg = function(e) {
5354
5354
  var v = t[i.axis.line] <= r.page.borderBox.center[i.axis.line], g = function() {
5355
5355
  var b = r.descriptor.index;
5356
5356
  return r.descriptor.id === a.descriptor.id || v ? b : b + 1;
5357
- }(), h = Tr(i.axis, a.displaceBy);
5357
+ }(), h = Ar(i.axis, a.displaceBy);
5358
5358
  return ln({
5359
5359
  draggable: a,
5360
5360
  insideDestination: n,
@@ -5483,7 +5483,7 @@ function pm(e) {
5483
5483
  }) : null;
5484
5484
  }
5485
5485
  var kl = function(t, r) {
5486
- return rt(Ar(t, r));
5486
+ return rt(Tr(t, r));
5487
5487
  }, fm = function(e, t) {
5488
5488
  var r = e.frame;
5489
5489
  return r ? kl(t, r.scroll.diff.value) : t;
@@ -5497,7 +5497,7 @@ function vm(e) {
5497
5497
  return r ? n && r.descriptor.index > t.descriptor.index ? r.descriptor.index - 1 : r.descriptor.index : null;
5498
5498
  }
5499
5499
  var gm = function(e) {
5500
- var t = e.pageBorderBoxWithDroppableScroll, r = e.draggable, n = e.destination, a = e.insideDestination, o = e.last, i = e.viewport, l = e.afterCritical, c = n.axis, p = Tr(n.axis, r.displaceBy), d = p.value, u = t[c.start], f = t[c.end], v = yn(r, a), g = St(v, function(b) {
5500
+ var t = e.pageBorderBoxWithDroppableScroll, r = e.draggable, n = e.destination, a = e.insideDestination, o = e.last, i = e.viewport, l = e.afterCritical, c = n.axis, p = Ar(n.axis, r.displaceBy), d = p.value, u = t[c.start], f = t[c.end], v = yn(r, a), g = St(v, function(b) {
5501
5501
  var m = b.descriptor.id, x = b.page.borderBox.center[c.line], D = Dt(m, l), w = Bl({
5502
5502
  displaced: o,
5503
5503
  id: m
@@ -5521,7 +5521,7 @@ var gm = function(e) {
5521
5521
  var t = e.draggable, r = e.pageBorderBoxWithDroppableScroll, n = e.previousImpact, a = e.destination, o = e.insideDestination, i = e.afterCritical;
5522
5522
  if (!a.isCombineEnabled)
5523
5523
  return null;
5524
- var l = a.axis, c = Tr(a.axis, t.displaceBy), p = c.value, d = r[l.start], u = r[l.end], f = yn(t, o), v = St(f, function(h) {
5524
+ var l = a.axis, c = Ar(a.axis, t.displaceBy), p = c.value, d = r[l.start], u = r[l.end], f = yn(t, o), v = St(f, function(h) {
5525
5525
  var b = h.descriptor.id, m = h.page.borderBox, x = m[l.size], D = x / mm, w = Dt(b, i), y = Bl({
5526
5526
  displaced: n.displaced,
5527
5527
  id: b
@@ -5590,7 +5590,7 @@ var gm = function(e) {
5590
5590
  var c = n[l];
5591
5591
  if (Zt(t, c) || c.subject.withPlaceholder)
5592
5592
  return i;
5593
- var p = Tl(c, t, r);
5593
+ var p = Al(c, t, r);
5594
5594
  return Ha(i, p);
5595
5595
  }, ur = function(e) {
5596
5596
  var t = e.state, r = e.clientSelection, n = e.dimensions, a = e.viewport, o = e.impact, i = e.scrollJumpRequest, l = a || t.viewport, c = n || t.dimensions, p = r || t.current.client.selection, d = He(p, t.initial.client.selection), u = {
@@ -5701,7 +5701,7 @@ var Ml = function(e) {
5701
5701
  droppableId: e.droppableId
5702
5702
  };
5703
5703
  }, Vl = function(e) {
5704
- var t = e.draggable, r = e.home, n = e.draggables, a = e.viewport, o = Tr(r.axis, t.displaceBy), i = Ft(r.descriptor.id, n), l = i.indexOf(t);
5704
+ var t = e.draggable, r = e.home, n = e.draggables, a = e.viewport, o = Ar(r.axis, t.displaceBy), i = Ft(r.descriptor.id, n), l = i.indexOf(t);
5705
5705
  l === -1 && (process.env.NODE_ENV !== "production" ? N(!1, "Expected draggable to be inside home list") : N());
5706
5706
  var c = i.slice(l + 1), p = c.reduce(function(v, g) {
5707
5707
  return v[g.descriptor.id] = !0, v;
@@ -5918,11 +5918,11 @@ var bi = {
5918
5918
  if (e.phase === "DROP_PENDING")
5919
5919
  return e;
5920
5920
  Rt(e) || (process.env.NODE_ENV !== "production" ? N(!1, "Attempting to move in an unsupported phase " + e.phase) : N());
5921
- var C = t.payload, j = C.id, A = C.isEnabled, R = e.dimensions.droppables[j];
5922
- R || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot find Droppable[id: " + j + "] to toggle its enabled state") : N()), R.isEnabled === A && (process.env.NODE_ENV !== "production" ? N(!1, "Trying to set droppable isEnabled to " + String(A) + `
5921
+ var C = t.payload, j = C.id, T = C.isEnabled, R = e.dimensions.droppables[j];
5922
+ R || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot find Droppable[id: " + j + "] to toggle its enabled state") : N()), R.isEnabled === T && (process.env.NODE_ENV !== "production" ? N(!1, "Trying to set droppable isEnabled to " + String(T) + `
5923
5923
  but it is already ` + String(R.isEnabled)) : N());
5924
5924
  var W = ne({}, R, {
5925
- isEnabled: A
5925
+ isEnabled: T
5926
5926
  });
5927
5927
  return $n(e, W, !0);
5928
5928
  }
@@ -6039,12 +6039,12 @@ var bi = {
6039
6039
  type: "PUBLISH_WHILE_DRAGGING",
6040
6040
  payload: t
6041
6041
  };
6042
- }, Am = function() {
6042
+ }, Tm = function() {
6043
6043
  return {
6044
6044
  type: "COLLECTION_STARTING",
6045
6045
  payload: null
6046
6046
  };
6047
- }, Tm = function(t) {
6047
+ }, Am = function(t) {
6048
6048
  return {
6049
6049
  type: "UPDATE_DROPPABLE_SCROLL",
6050
6050
  payload: t
@@ -6948,7 +6948,7 @@ var Nh = function(e, t) {
6948
6948
  x: o ? 0 : n.x,
6949
6949
  y: a ? 0 : n.y
6950
6950
  };
6951
- }, Ah = wl(function(e) {
6951
+ }, Th = wl(function(e) {
6952
6952
  return e === 0 ? 0 : e;
6953
6953
  }), Ql = function(e) {
6954
6954
  var t = e.dragStartTime, r = e.container, n = e.subject, a = e.center, o = e.shouldUseTimeDampening, i = {
@@ -6968,7 +6968,7 @@ var Nh = function(e, t) {
6968
6968
  dragStartTime: t,
6969
6969
  axis: Il,
6970
6970
  shouldUseTimeDampening: o
6971
- }), p = Ah({
6971
+ }), p = Th({
6972
6972
  x: c,
6973
6973
  y: l
6974
6974
  });
@@ -6980,7 +6980,7 @@ var Nh = function(e, t) {
6980
6980
  proposedScroll: p
6981
6981
  });
6982
6982
  return d ? yt(d, Be) ? null : d : null;
6983
- }, Th = wl(function(e) {
6983
+ }, Ah = wl(function(e) {
6984
6984
  return e === 0 ? 0 : e > 0 ? 1 : -1;
6985
6985
  }), Ja = /* @__PURE__ */ function() {
6986
6986
  var e = function(r, n) {
@@ -6997,7 +6997,7 @@ var Nh = function(e, t) {
6997
6997
  var r = t.max, n = t.current, a = t.change, o = {
6998
6998
  x: Math.max(n.x, r.x),
6999
6999
  y: Math.max(n.y, r.y)
7000
- }, i = Th(a), l = Ja({
7000
+ }, i = Ah(a), l = Ja({
7001
7001
  max: o,
7002
7002
  current: n,
7003
7003
  change: i
@@ -8134,7 +8134,7 @@ function Pb(e) {
8134
8134
  return v;
8135
8135
  }, []);
8136
8136
  }
8137
- function Ab(e) {
8137
+ function Tb(e) {
8138
8138
  ro(function() {
8139
8139
  var t = no(e);
8140
8140
  Lr(function() {
@@ -8142,7 +8142,7 @@ function Ab(e) {
8142
8142
  });
8143
8143
  });
8144
8144
  }
8145
- var Tb = {
8145
+ var Ab = {
8146
8146
  input: !0,
8147
8147
  button: !0,
8148
8148
  textarea: !0,
@@ -8155,7 +8155,7 @@ var Tb = {
8155
8155
  function oc(e, t) {
8156
8156
  if (t == null)
8157
8157
  return !1;
8158
- var r = !!Tb[t.tagName.toLowerCase()];
8158
+ var r = !!Ab[t.tagName.toLowerCase()];
8159
8159
  if (r)
8160
8160
  return !0;
8161
8161
  var n = t.getAttribute("contenteditable");
@@ -8273,10 +8273,10 @@ function Ub(e) {
8273
8273
  t.release(), f = "COMPLETED";
8274
8274
  }
8275
8275
  f !== "PRE_DRAG" && (_(), f !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot lift in phase " + f) : N())), n.dispatch(_m(S.liftActionArgs)), f = "DRAGGING";
8276
- function C(j, A) {
8277
- if (A === void 0 && (A = {
8276
+ function C(j, T) {
8277
+ if (T === void 0 && (T = {
8278
8278
  shouldBlockNextClick: !1
8279
- }), S.cleanup(), A.shouldBlockNextClick) {
8279
+ }), S.cleanup(), T.shouldBlockNextClick) {
8280
8280
  var R = Je(window, [{
8281
8281
  eventName: "click",
8282
8282
  fn: Wb,
@@ -8302,11 +8302,11 @@ function Ub(e) {
8302
8302
  });
8303
8303
  },
8304
8304
  shouldRespectForcePress: v,
8305
- drop: function(A) {
8306
- return C("DROP", A);
8305
+ drop: function(T) {
8306
+ return C("DROP", T);
8307
8307
  },
8308
- cancel: function(A) {
8309
- return C("CANCEL", A);
8308
+ cancel: function(T) {
8309
+ return C("CANCEL", T);
8310
8310
  }
8311
8311
  }, S.actions);
8312
8312
  }
@@ -8434,7 +8434,7 @@ function zb(e) {
8434
8434
  isLockClaimed: g
8435
8435
  };
8436
8436
  }, [p, d, u, f, v, g]);
8437
- Ab(i);
8437
+ Tb(i);
8438
8438
  for (var b = 0; b < i.length; b++)
8439
8439
  i[b](h);
8440
8440
  }
@@ -8463,10 +8463,10 @@ function Yb(e) {
8463
8463
  }, []), v = me(function() {
8464
8464
  return qo({
8465
8465
  publishWhileDragging: Pm,
8466
- updateDroppableScroll: Tm,
8466
+ updateDroppableScroll: Am,
8467
8467
  updateDroppableIsEnabled: Rm,
8468
8468
  updateDroppableIsCombineEnabled: km,
8469
- collectionStarting: Am
8469
+ collectionStarting: Tm
8470
8470
  }, f);
8471
8471
  }, [f]), g = Yh(), h = me(function() {
8472
8472
  return Nh(g, v);
@@ -8489,8 +8489,8 @@ function Yb(e) {
8489
8489
  }, [p, b, h, m, c, u]);
8490
8490
  process.env.NODE_ENV !== "production" && i.current && i.current !== x && process.env.NODE_ENV !== "production" && Ee("unexpected store change"), i.current = x;
8491
8491
  var D = ee(function() {
8492
- var j = cr(i), A = j.getState();
8493
- A.phase !== "IDLE" && j.dispatch(za());
8492
+ var j = cr(i), T = j.getState();
8493
+ T.phase !== "IDLE" && j.dispatch(za());
8494
8494
  }, []), w = ee(function() {
8495
8495
  var j = cr(i).getState();
8496
8496
  return j.isDragging || j.phase === "DROP_ANIMATING";
@@ -8559,7 +8559,7 @@ var oo = function(t) {
8559
8559
  return function(r) {
8560
8560
  return t === r;
8561
8561
  };
8562
- }, Qb = oo("scroll"), Zb = oo("auto"), ex = oo("visible"), Ai = function(t, r) {
8562
+ }, Qb = oo("scroll"), Zb = oo("auto"), ex = oo("visible"), Ti = function(t, r) {
8563
8563
  return r(t.overflowX) || r(t.overflowY);
8564
8564
  }, tx = function(t, r) {
8565
8565
  return r(t.overflowX) && r(t.overflowY);
@@ -8568,7 +8568,7 @@ var oo = function(t) {
8568
8568
  overflowX: r.overflowX,
8569
8569
  overflowY: r.overflowY
8570
8570
  };
8571
- return Ai(n, Qb) || Ai(n, Zb);
8571
+ return Ti(n, Qb) || Ti(n, Zb);
8572
8572
  }, rx = function() {
8573
8573
  if (process.env.NODE_ENV === "production")
8574
8574
  return !1;
@@ -8706,7 +8706,7 @@ var oo = function(t) {
8706
8706
  passive: !1
8707
8707
  }, dx = {
8708
8708
  passive: !0
8709
- }, Ti = function(e) {
8709
+ }, Ai = function(e) {
8710
8710
  return e.shouldPublishImmediately ? cx : dx;
8711
8711
  };
8712
8712
  function cn(e) {
@@ -8760,7 +8760,7 @@ function ux(e) {
8760
8760
  scrollOptions: y
8761
8761
  };
8762
8762
  t.current = j;
8763
- var A = lx({
8763
+ var T = lx({
8764
8764
  ref: _,
8765
8765
  descriptor: l,
8766
8766
  env: C,
@@ -8770,7 +8770,7 @@ function ux(e) {
8770
8770
  isCombineEnabled: S.isCombineEnabled,
8771
8771
  shouldClipSubject: !S.ignoreContainerClipping
8772
8772
  }), R = C.closestScrollable;
8773
- return R && (R.setAttribute(Ii.contextId, r.contextId), R.addEventListener("scroll", v, Ti(j.scrollOptions)), process.env.NODE_ENV !== "production" && nx(R)), A;
8773
+ return R && (R.setAttribute(Ii.contextId, r.contextId), R.addEventListener("scroll", v, Ai(j.scrollOptions)), process.env.NODE_ENV !== "production" && nx(R)), T;
8774
8774
  }, [r.contextId, l, v, i]), h = ee(function() {
8775
8775
  var w = t.current, y = Hr(w);
8776
8776
  return w && y || (process.env.NODE_ENV !== "production" ? N(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : N()), pa(y);
@@ -8778,7 +8778,7 @@ function ux(e) {
8778
8778
  var w = t.current;
8779
8779
  w || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot stop drag when no active drag") : N());
8780
8780
  var y = Hr(w);
8781
- t.current = null, y && (f.cancel(), y.removeAttribute(Ii.contextId), y.removeEventListener("scroll", v, Ti(w.scrollOptions)));
8781
+ t.current = null, y && (f.cancel(), y.removeAttribute(Ii.contextId), y.removeEventListener("scroll", v, Ai(w.scrollOptions)));
8782
8782
  }, [v, f]), m = ee(function(w) {
8783
8783
  var y = t.current;
8784
8784
  y || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot scroll when there is no drag") : N());
@@ -9065,7 +9065,7 @@ function Ox(e) {
9065
9065
  function Px(e) {
9066
9066
  e.preventDefault();
9067
9067
  }
9068
- function Ax(e) {
9068
+ function Tx(e) {
9069
9069
  var t = z(null), r = ee(function(j) {
9070
9070
  t.current = j;
9071
9071
  }, []), n = ee(function() {
@@ -9104,13 +9104,13 @@ function Ax(e) {
9104
9104
  }, [o, i, v, g]), S = ee(function(j) {
9105
9105
  x.type === "DRAGGING" && x.dropping && j.propertyName === "transform" && D();
9106
9106
  }, [D, x]), _ = me(function() {
9107
- var j = Sx(x), A = x.type === "DRAGGING" && x.dropping ? S : null, R = {
9107
+ var j = Sx(x), T = x.type === "DRAGGING" && x.dropping ? S : null, R = {
9108
9108
  innerRef: r,
9109
9109
  draggableProps: {
9110
9110
  "data-rbd-draggable-context-id": o,
9111
9111
  "data-rbd-draggable-id": v,
9112
9112
  style: j,
9113
- onTransitionEnd: A
9113
+ onTransitionEnd: T
9114
9114
  },
9115
9115
  dragHandleProps: y
9116
9116
  };
@@ -9132,7 +9132,7 @@ var uc = function(e, t) {
9132
9132
  }, pc = function(e) {
9133
9133
  var t = e.combine, r = e.destination;
9134
9134
  return r ? r.droppableId : t ? t.droppableId : null;
9135
- }, Tx = function(t) {
9135
+ }, Ax = function(t) {
9136
9136
  return t.combine ? t.combine.draggableId : null;
9137
9137
  }, Rx = function(t) {
9138
9138
  return t.at && t.at.type === "COMBINE" ? t.at.combine.draggableId : null;
@@ -9179,7 +9179,7 @@ function kx() {
9179
9179
  var f = o.completed;
9180
9180
  if (f.result.draggableId !== i.draggableId)
9181
9181
  return null;
9182
- var v = i.isClone, g = o.dimensions.draggables[i.draggableId], h = f.result, b = h.mode, m = pc(h), x = Tx(h), D = o.dropDuration, w = {
9182
+ var v = i.isClone, g = o.dimensions.draggables[i.draggableId], h = f.result, b = h.mode, m = pc(h), x = Ax(h), D = o.dropDuration, w = {
9183
9183
  duration: D,
9184
9184
  curve: Ya.drop,
9185
9185
  moveTo: o.newHomeClientOffset,
@@ -9279,7 +9279,7 @@ var Mx = function() {
9279
9279
  context: eo,
9280
9280
  pure: !0,
9281
9281
  areStatePropsEqual: uc
9282
- })(Ax);
9282
+ })(Tx);
9283
9283
  function vc(e) {
9284
9284
  var t = cn(io), r = t.isUsingCloneFor;
9285
9285
  return r === e.draggableId && !e.isClone ? null : le.createElement($x, e);
@@ -9347,7 +9347,7 @@ function Gx(e) {
9347
9347
  "data-rbd-droppable-context-id": r
9348
9348
  }
9349
9349
  };
9350
- }, [r, l, _, D]), j = h ? h.dragging.draggableId : null, A = me(function() {
9350
+ }, [r, l, _, D]), j = h ? h.dragging.draggableId : null, T = me(function() {
9351
9351
  return {
9352
9352
  droppableId: l,
9353
9353
  type: c,
@@ -9370,7 +9370,7 @@ function Gx(e) {
9370
9370
  return mr.createPortal(J, m());
9371
9371
  }
9372
9372
  return le.createElement(io.Provider, {
9373
- value: A
9373
+ value: T
9374
9374
  }, i(C, g), R());
9375
9375
  }
9376
9376
  var Xn = function(t, r) {
@@ -9634,7 +9634,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9634
9634
  }, [n, e]), G(() => {
9635
9635
  b >= g.length && m(g.length - 1);
9636
9636
  }, [g, b]);
9637
- const y = T((C) => {
9637
+ const y = A((C) => {
9638
9638
  switch (C.key) {
9639
9639
  case "ArrowLeft":
9640
9640
  C.stopPropagation(), D && m((j) => j - 1);
@@ -9647,8 +9647,8 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9647
9647
  break;
9648
9648
  }
9649
9649
  }, [w, D, t]), S = (C, j) => {
9650
- const A = Array.from(g), [R] = A.splice(C, 1);
9651
- return A.splice(j, 0, R), A;
9650
+ const T = Array.from(g), [R] = T.splice(C, 1);
9651
+ return T.splice(j, 0, R), T;
9652
9652
  }, _ = (C) => {
9653
9653
  if (!C.destination)
9654
9654
  return;
@@ -9665,11 +9665,11 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9665
9665
  i && /* @__PURE__ */ s.jsx(Hs, { accept: ".jpg,.jpeg,.png", onUpload: (C) => {
9666
9666
  C.length > 0 && i(Array.from(C));
9667
9667
  }, icon: /* @__PURE__ */ s.jsx(vs, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: a ?? null }),
9668
- x && (l == null ? void 0 : l.map(({ label: C, onClick: j, ...A }, R) => /* @__PURE__ */ s.jsx(
9668
+ x && (l == null ? void 0 : l.map(({ label: C, onClick: j, ...T }, R) => /* @__PURE__ */ s.jsx(
9669
9669
  dt,
9670
9670
  {
9671
9671
  onClick: () => j(x.id),
9672
- ...A,
9672
+ ...T,
9673
9673
  children: typeof C == "string" ? C : C(x.id)
9674
9674
  },
9675
9675
  `action-${R}`
@@ -9684,9 +9684,9 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9684
9684
  /* @__PURE__ */ s.jsx("div", { role: w ? "button" : void 0, className: I("align-items-end", Ge.navButton), onClick: () => w && m((C) => C + 1), children: w && /* @__PURE__ */ s.jsx(wa, { style: { fontSize: "40px" } }) })
9685
9685
  ] }),
9686
9686
  /* @__PURE__ */ s.jsx(Jb, { onDragEnd: _, children: /* @__PURE__ */ s.jsx(ay, { droppableId: "droppable", direction: "horizontal", children: (C) => /* @__PURE__ */ s.jsxs("div", { ...C.droppableProps, ref: C.innerRef, className: Ge.photosPreview, children: [
9687
- g.map((j, A) => /* @__PURE__ */ s.jsx(Vx, { draggableId: j.id, index: A, isDragDisabled: f === void 0, children: v((R) => /* @__PURE__ */ s.jsxs("div", { ref: R.innerRef, ...R.draggableProps, ...R.dragHandleProps, role: "button", onClick: () => m(A), className: I(Ge.lightboxDraggablePhoto), children: [
9688
- /* @__PURE__ */ s.jsx(u, { role: A !== b ? "button" : void 0, src: j.smSrc, alt: j.alt, className: I("rounded", Ge.photo, {
9689
- [Ge.selected]: A === b
9687
+ g.map((j, T) => /* @__PURE__ */ s.jsx(Vx, { draggableId: j.id, index: T, isDragDisabled: f === void 0, children: v((R) => /* @__PURE__ */ s.jsxs("div", { ref: R.innerRef, ...R.draggableProps, ...R.dragHandleProps, role: "button", onClick: () => m(T), className: I(Ge.lightboxDraggablePhoto), children: [
9688
+ /* @__PURE__ */ s.jsx(u, { role: T !== b ? "button" : void 0, src: j.smSrc, alt: j.alt, className: I("rounded", Ge.photo, {
9689
+ [Ge.selected]: T === b
9690
9690
  }), baseUrl: c, customToken: p, placeholder: d }, j.id),
9691
9691
  j.isDefault && /* @__PURE__ */ s.jsx("div", { className: I("text-primary", Ge.defaultIndicator), children: /* @__PURE__ */ s.jsx(yd, {}) })
9692
9692
  ] })) }, j.id)),
@@ -9735,7 +9735,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9735
9735
  "type-icon": "_type-icon_z9z4m_28",
9736
9736
  typeIcon: Ny
9737
9737
  }, Ey = ({ level: e, children: t, customIcon: r, noIcon: n }) => {
9738
- const { ProjectIconComponent: a } = Z(ge), o = T(() => {
9738
+ const { ProjectIconComponent: a } = Z(ge), o = A(() => {
9739
9739
  switch (e) {
9740
9740
  case "info":
9741
9741
  return /* @__PURE__ */ s.jsx(a, { icon: "info" });
@@ -9769,7 +9769,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9769
9769
  }, Iy = ({ children: e, noSpacer: t = !1 }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
9770
9770
  !t && /* @__PURE__ */ s.jsx("div", { className: Mi.spacer }),
9771
9771
  /* @__PURE__ */ s.jsx("div", { className: I("luminus-floating-action-container shadow", Mi.submitContainer), children: e })
9772
- ] }), jy = "_timeline_g1754_1", _y = "_step-container_g1754_1", Oy = "_step-date_g1754_1", Py = "_step-content_g1754_4", Ay = "_content-header_g1754_8", Ty = "_content-text_g1754_11", Ry = "_step-icon_g1754_14", Pt = {
9772
+ ] }), jy = "_timeline_g1754_1", _y = "_step-container_g1754_1", Oy = "_step-date_g1754_1", Py = "_step-content_g1754_4", Ty = "_content-header_g1754_8", Ay = "_content-text_g1754_11", Ry = "_step-icon_g1754_14", Pt = {
9773
9773
  timeline: jy,
9774
9774
  "step-container": "_step-container_g1754_1",
9775
9775
  stepContainer: _y,
@@ -9778,9 +9778,9 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9778
9778
  "step-content": "_step-content_g1754_4",
9779
9779
  stepContent: Py,
9780
9780
  "content-header": "_content-header_g1754_8",
9781
- contentHeader: Ay,
9781
+ contentHeader: Ty,
9782
9782
  "content-text": "_content-text_g1754_11",
9783
- contentText: Ty,
9783
+ contentText: Ay,
9784
9784
  "step-icon": "_step-icon_g1754_14",
9785
9785
  stepIcon: Ry
9786
9786
  }, gD = ({ steps: e }) => /* @__PURE__ */ s.jsx("div", { className: Pt.timeline, children: e.sort((t, r) => Jd(t.date ?? /* @__PURE__ */ new Date(), r.date ?? /* @__PURE__ */ new Date())).map((t, r) => /* @__PURE__ */ s.jsxs("div", { className: I("row g-0 gx-3", Pt.stepContainer), children: [
@@ -9797,7 +9797,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9797
9797
  /* @__PURE__ */ s.jsx("div", { className: I("text-primary", Pt.stepIcon), children: t.icon ?? /* @__PURE__ */ s.jsx(Cd, {}) })
9798
9798
  ] }) })
9799
9799
  ] }, r)) }), ky = (e, t, r, n = !0) => {
9800
- const a = Nt({ silent: n, differentBaseUrl: t, customToken: r }), [o, i] = V(!1), [l, c] = V(null), p = T(async (d) => {
9800
+ const a = Nt({ silent: n, differentBaseUrl: t, customToken: r }), [o, i] = V(!1), [l, c] = V(null), p = A(async (d) => {
9801
9801
  i(!0), c(null), a.get(e, {
9802
9802
  signal: d,
9803
9803
  responseType: "blob"
@@ -9834,12 +9834,12 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9834
9834
  md: Fy
9835
9835
  }, Jr = (e) => {
9836
9836
  const t = new Date(e), r = ht(t.toISOString());
9837
- t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1);
9837
+ t.setUTCMonth(t.getUTCMonth() + 1), t.setUTCDate(t.getUTCDate() - 1);
9838
9838
  const n = ht(t.toISOString());
9839
9839
  return { from: r, to: n };
9840
9840
  }, fr = (e) => {
9841
9841
  const t = new Date(e), r = ht(t.toISOString());
9842
- t.setFullYear(t.getFullYear() + 1), t.setDate(t.getDate() - 1);
9842
+ t.setUTCFullYear(t.getUTCFullYear() + 1), t.setUTCDate(t.getUTCDate() - 1);
9843
9843
  const n = ht(t.toISOString());
9844
9844
  return { from: r, to: n };
9845
9845
  }, $y = (e, t) => {
@@ -9850,7 +9850,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9850
9850
  const r = new Date(e);
9851
9851
  return Jr(r).to === t ? "M" : fr(r).to === t ? "Y" : (console.log(fr(r), t), "C");
9852
9852
  }, Vy = (e, t, r) => {
9853
- const n = T((i, l) => {
9853
+ const n = A((i, l) => {
9854
9854
  if (e === "C") {
9855
9855
  r((c) => ({ ...c, [i]: l }));
9856
9856
  return;
@@ -9875,7 +9875,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9875
9875
  t("C"), r((c) => ({ ...c, [i]: l }));
9876
9876
  break;
9877
9877
  }
9878
- }, [e, r, t]), a = T((i) => {
9878
+ }, [e, r, t]), a = A((i) => {
9879
9879
  r((l) => {
9880
9880
  if (l.from === null || l.to === null)
9881
9881
  return l;
@@ -9895,7 +9895,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9895
9895
  to: ht(p.toISOString())
9896
9896
  };
9897
9897
  });
9898
- }, [e, r]), o = T((i) => {
9898
+ }, [e, r]), o = A((i) => {
9899
9899
  i === "D" ? r((l) => ({ from: l.from, to: l.from })) : i === "M" ? r((l) => {
9900
9900
  if (l.from === null)
9901
9901
  return l;
@@ -9930,12 +9930,12 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
9930
9930
  }, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-right" }) })
9931
9931
  ] });
9932
9932
  }, hD = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: r, yearMax: n }) => {
9933
- const { localizationContext: a } = Z(ge), { dateFnsLocale: o } = Z(a), { searchParams: i, setSearch: l } = Yd(), c = i.get(t), p = c ? gr(c) : e, d = T((u) => {
9933
+ const { localizationContext: a } = Z(ge), { dateFnsLocale: o } = Z(a), { searchParams: i, setSearch: l } = Yd(), c = i.get(t), p = c ? gr(c) : e, d = A((u) => {
9934
9934
  l(t, ta(u, { representation: "date" }));
9935
9935
  }, [t, l]);
9936
9936
  return /* @__PURE__ */ s.jsx(Su, { month: p, onChangeMonth: d, locale: o, yearMin: r, yearMax: n });
9937
9937
  }, bD = ({ defaultYear: e, searchKey: t = "yearFrom", ...r }) => {
9938
- const [n, a] = bs(t, ta(e, { representation: "date" })), o = n ? gr(n) : e, i = T((l) => {
9938
+ const [n, a] = bs(t, ta(e, { representation: "date" })), o = n ? gr(n) : e, i = A((l) => {
9939
9939
  a(ta(l, { representation: "date" }));
9940
9940
  }, [a]);
9941
9941
  return /* @__PURE__ */ s.jsx(_u, { year: o, onChangeYear: i, ...r });
@@ -10064,7 +10064,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10064
10064
  }
10065
10065
  }
10066
10066
  }, rw = ({ schema: e, columns: t, setColumns: r, initialItem: n, onEdit: a, onDelete: o, customPickers: i }) => {
10067
- const { ProjectIconComponent: l } = Z(ge), [c, p] = V(n), d = T((v, g) => {
10067
+ const { ProjectIconComponent: l } = Z(ge), [c, p] = V(n), d = A((v, g) => {
10068
10068
  console.log("changeValue", v, g), p((h) => ({
10069
10069
  ...h,
10070
10070
  [v]: {
@@ -10072,7 +10072,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10072
10072
  value: g
10073
10073
  }
10074
10074
  }));
10075
- }, []), u = (v) => (v == null ? void 0 : v.value) !== (v == null ? void 0 : v.defaultValue), f = T(() => Object.keys(c).some((v) => u(c[v])), [c]);
10075
+ }, []), u = (v) => (v == null ? void 0 : v.value) !== (v == null ? void 0 : v.defaultValue), f = A(() => Object.keys(c).some((v) => u(c[v])), [c]);
10076
10076
  return G(() => {
10077
10077
  p(n);
10078
10078
  }, [n]), /* @__PURE__ */ s.jsxs("tr", { className: I("table-row", Ne.tableRow), children: [
@@ -10086,7 +10086,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10086
10086
  /* @__PURE__ */ s.jsx("td", { className: I("table-cell", Ne.tableCell, Ne.stickyLast), children: /* @__PURE__ */ s.jsx(de, { color: "danger", onClick: () => o(c[e.primaryKey ?? ""].value), children: /* @__PURE__ */ s.jsx(l, { icon: "delete" }) }) })
10087
10087
  ] });
10088
10088
  }, nw = ({ schema: e, columns: t, setColumns: r, onCreate: n, customPickers: a }) => {
10089
- const { ProjectIconComponent: o } = Z(ge), [i, l] = V(null), c = T(() => {
10089
+ const { ProjectIconComponent: o } = Z(ge), [i, l] = V(null), c = A(() => {
10090
10090
  var u;
10091
10091
  const d = {};
10092
10092
  (u = e.columns) == null || u.forEach((f) => {
@@ -10096,7 +10096,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10096
10096
  defaultValue: v
10097
10097
  };
10098
10098
  }), l(d);
10099
- }, [e]), p = T((d, u) => {
10099
+ }, [e]), p = A((d, u) => {
10100
10100
  l((f) => f && {
10101
10101
  ...f,
10102
10102
  [d]: {
@@ -10213,24 +10213,24 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10213
10213
  pagination: pw
10214
10214
  }, Ui = {
10215
10215
  appDetail: "/settings/:id"
10216
- }, At = {
10216
+ }, Tt = {
10217
10217
  apiSchemaGet: "/dynamicForms/schema",
10218
10218
  apiDataGet: "/dynamicForms/data",
10219
10219
  apiItemPost: "/dynamicForms/update",
10220
10220
  apiItemDelete: "/dynamicForms/delete",
10221
10221
  apiItemCreate: "/dynamicForms/insert",
10222
10222
  apiExportGet: "/dynamicForms/export"
10223
- }, yD = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Ui.appDetail } = Ui, apiUrls: { apiSchemaGet: p = At.apiSchemaGet, apiDataGet: d = At.apiDataGet, apiItemPost: u = At.apiItemPost, apiItemDelete: f = At.apiItemDelete, apiItemCreate: v = At.apiItemCreate, apiExportGet: g = At.apiExportGet } = At, customPickers: h }) => {
10223
+ }, yD = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Ui.appDetail } = Ui, apiUrls: { apiSchemaGet: p = Tt.apiSchemaGet, apiDataGet: d = Tt.apiDataGet, apiItemPost: u = Tt.apiItemPost, apiItemDelete: f = Tt.apiItemDelete, apiItemCreate: v = Tt.apiItemCreate, apiExportGet: g = Tt.apiExportGet } = Tt, customPickers: h }) => {
10224
10224
  var he, ce, Oe, Ze, et, $t;
10225
- const { texts: { dynamicForms: b }, ProjectIconComponent: m } = Z(ge), x = Nt(), { startLoading: D, stopLoading: w } = Z(_r), [y, S] = V(null), [_, C] = V(null), [j, A] = V(null), [R, W] = V(null), [E, J] = V(!1), { addNotification: $ } = ss(), [O, P] = V([]), { confirm: k } = dn(), L = 20, Q = L + 1, K = R ? Math.ceil(R.length / L) : 1, re = t ? t > 1 : !1, ie = t ? t < K : !1, se = t ? (t - 1) * L : 0, F = t ? t * L : L, X = q(() => R ? R.length > Q : !1, [R, Q]), fe = q(() => X ? (R == null ? void 0 : R.slice(se, F)) ?? null : R ?? null, [X, R, se, F]), [ue, Y] = V(null);
10225
+ const { texts: { dynamicForms: b }, ProjectIconComponent: m } = Z(ge), x = Nt(), { startLoading: D, stopLoading: w } = Z(_r), [y, S] = V(null), [_, C] = V(null), [j, T] = V(null), [R, W] = V(null), [E, J] = V(!1), { addNotification: $ } = ss(), [O, P] = V([]), { confirm: k } = dn(), L = 20, Q = L + 1, K = R ? Math.ceil(R.length / L) : 1, re = t ? t > 1 : !1, ie = t ? t < K : !1, se = t ? (t - 1) * L : 0, F = t ? t * L : L, X = q(() => R ? R.length > Q : !1, [R, Q]), fe = q(() => X ? (R == null ? void 0 : R.slice(se, F)) ?? null : R ?? null, [X, R, se, F]), [ue, Y] = V(null);
10226
10226
  G(() => {
10227
10227
  S(null), C(null), J(!1), P([]), Y(null);
10228
10228
  }, [e]);
10229
- const pe = T(async () => {
10229
+ const pe = A(async () => {
10230
10230
  D("dynamicFormSchema"), await x.get(`${p}?id=${e}`).then(({ data: oe }) => {
10231
10231
  S(oe), w("dynamicFormSchema");
10232
10232
  }).catch(() => w("dynamicFormSchema"));
10233
- }, [x, e, D, w, p]), U = T(async () => {
10233
+ }, [x, e, D, w, p]), U = A(async () => {
10234
10234
  var oe;
10235
10235
  if (!(y === null || ((oe = y.id) == null ? void 0 : oe.toString()) !== e)) {
10236
10236
  if (y.masterReference && !ue) {
@@ -10248,22 +10248,22 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10248
10248
  C(Se), w("dynamicFormData");
10249
10249
  }).catch(() => w("dynamicFormData"));
10250
10250
  }
10251
- }, [x, e, y, D, w, E, ue, d]), Me = T(async () => {
10251
+ }, [x, e, y, D, w, E, ue, d]), Me = A(async () => {
10252
10252
  var oe;
10253
10253
  y === null || ((oe = y.id) == null ? void 0 : oe.toString()) !== e || y.masterReference && !ue || (D("dynamicFormExport"), await x.get(`${g}?id=${e}&showArchive=${E}${y.masterReference ? `&master=${ue}` : ""}`, {
10254
10254
  responseType: "blob"
10255
10255
  }).then((be) => Od(be, { fallbackName: `export-${e}` })).finally(() => w("dynamicFormExport")));
10256
- }, [x, e, y, D, w, E, ue, g]), Fe = T(async (oe) => (D("dynamicFormEdit"), x.post(`${u}?id=${e}`, oe).then(() => (w("dynamicFormEdit"), P([]), !0)).catch((be) => (w("dynamicFormEdit"), P(Cn(be)), !1))), [x, e, D, w, u]), je = T(async (oe) => (D("dynamicFormDelete"), x.delete(`${f}?id=${e}&pk=${oe}`).then(() => (w("dynamicFormDelete"), P([]), !0)).catch((be) => (w("dynamicFormDelete"), P(Cn(be)), !1))), [x, e, D, w, f]), Ye = T(async (oe) => (D("dynamicFormCreate"), x.post(`${v}?id=${e}`, oe).then(({ data: be }) => (w("dynamicFormCreate"), P([]), be)).catch((be) => (w("dynamicFormCreate"), P(Cn(be)), null))), [x, e, D, w, v]), Te = T(async (oe) => {
10256
+ }, [x, e, y, D, w, E, ue, g]), Fe = A(async (oe) => (D("dynamicFormEdit"), x.post(`${u}?id=${e}`, oe).then(() => (w("dynamicFormEdit"), P([]), !0)).catch((be) => (w("dynamicFormEdit"), P(Cn(be)), !1))), [x, e, D, w, u]), je = A(async (oe) => (D("dynamicFormDelete"), x.delete(`${f}?id=${e}&pk=${oe}`).then(() => (w("dynamicFormDelete"), P([]), !0)).catch((be) => (w("dynamicFormDelete"), P(Cn(be)), !1))), [x, e, D, w, f]), Ye = A(async (oe) => (D("dynamicFormCreate"), x.post(`${v}?id=${e}`, oe).then(({ data: be }) => (w("dynamicFormCreate"), P([]), be)).catch((be) => (w("dynamicFormCreate"), P(Cn(be)), null))), [x, e, D, w, v]), Ae = A(async (oe) => {
10257
10257
  y && await Fe(y.masterReference ? { ...oe, [y.masterReferenceColumn ?? ""]: ue } : oe) && ($(b.editSuccess, "success"), C((be) => be && be.map((Se) => {
10258
10258
  var xe;
10259
10259
  return ((xe = Se[(y == null ? void 0 : y.primaryKey) ?? ""]) == null ? void 0 : xe.value) === oe[(y == null ? void 0 : y.primaryKey) ?? ""] ? Gi(oe, y) : Se;
10260
10260
  })));
10261
- }, [$, Fe, y, ue, b]), B = T(async (oe) => {
10261
+ }, [$, Fe, y, ue, b]), B = A(async (oe) => {
10262
10262
  await k(b.deleteConfirm) && await je(oe) && ($(b.deleteSuccess, "success"), C((be) => be && be.filter((Se) => {
10263
10263
  var xe;
10264
10264
  return ((xe = Se[(y == null ? void 0 : y.primaryKey) ?? ""]) == null ? void 0 : xe.value) !== oe;
10265
10265
  })));
10266
- }, [$, je, b, k, y]), H = T(async (oe) => {
10266
+ }, [$, je, b, k, y]), H = A(async (oe) => {
10267
10267
  if (!y)
10268
10268
  return !1;
10269
10269
  const be = await Ye(y.masterReference ? { ...oe, [y.masterReferenceColumn ?? ""]: ue } : oe);
@@ -10275,9 +10275,9 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10275
10275
  return !1;
10276
10276
  }, [$, Ye, b, y, ue]), M = (oe) => {
10277
10277
  oe > K ? r(K) : oe < 1 && r(1), r(oe);
10278
- }, te = T(() => {
10278
+ }, te = A(() => {
10279
10279
  if (!_ || !y) {
10280
- A(null);
10280
+ T(null);
10281
10281
  return;
10282
10282
  }
10283
10283
  const oe = _.filter((be) => Object.entries(n).every(([Se, xe]) => {
@@ -10303,8 +10303,8 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10303
10303
  return _e.toString().toLowerCase().includes(xe.toLowerCase());
10304
10304
  }
10305
10305
  }));
10306
- A(oe);
10307
- }, [_, n, y]), ve = T(() => {
10306
+ T(oe);
10307
+ }, [_, n, y]), ve = A(() => {
10308
10308
  if (!j || !y) {
10309
10309
  W([]);
10310
10310
  return;
@@ -10373,7 +10373,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10373
10373
  y != null && y.masterReference && !ue ? /* @__PURE__ */ s.jsx(Pr, { variant: "warning", children: b.selectMaster((($t = (et = y.columns) == null ? void 0 : et.find((oe) => oe.field === y.masterReferenceColumn)) == null ? void 0 : $t.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
10374
10374
  y && O.length > 0 && /* @__PURE__ */ s.jsx("div", { className: "mb-2", children: /* @__PURE__ */ s.jsx(Gy, { errors: O, schema: y }) }),
10375
10375
  y && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
10376
- /* @__PURE__ */ s.jsx("div", { className: I("rounded border overflow-auto", Wi.tableContainer), children: /* @__PURE__ */ s.jsx(dw, { schema: y, items: !X && R && (R == null ? void 0 : R.length) > Q ? [] : (X ? fe : R) ?? [], onEditItem: Te, onDeleteItem: B, onCreateItem: H, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, selectedMaster: (ue == null ? void 0 : ue.toString()) ?? null, customPickers: h }) }),
10376
+ /* @__PURE__ */ s.jsx("div", { className: I("rounded border overflow-auto", Wi.tableContainer), children: /* @__PURE__ */ s.jsx(dw, { schema: y, items: !X && R && (R == null ? void 0 : R.length) > Q ? [] : (X ? fe : R) ?? [], onEditItem: Ae, onDeleteItem: B, onCreateItem: H, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, selectedMaster: (ue == null ? void 0 : ue.toString()) ?? null, customPickers: h }) }),
10377
10377
  X && t && /* @__PURE__ */ s.jsxs("div", { className: I(Wi.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
10378
10378
  /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
10379
10379
  /* @__PURE__ */ s.jsx(de, { color: "primary", onClick: () => M(1), disabled: !re, children: /* @__PURE__ */ s.jsx(m, { icon: "chevron-double-left" }) }),
@@ -10409,7 +10409,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10409
10409
  id: b.id,
10410
10410
  name: b.name ?? "",
10411
10411
  items: v.filter((m) => m.group === b.id)
10412
- })).filter((b) => b.items.length > 0), [r, v]), h = T(async () => {
10412
+ })).filter((b) => b.items.length > 0), [r, v]), h = A(async () => {
10413
10413
  c("dynamicForms"), await l.get(i).then(({ data: b }) => {
10414
10414
  u(b), p("dynamicForms");
10415
10415
  }).catch(() => p("dynamicForms"));
@@ -10471,7 +10471,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10471
10471
  e && /* @__PURE__ */ s.jsx(ea, { onClick: () => a(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ s.jsx(pt, {}) }),
10472
10472
  /* @__PURE__ */ s.jsx(ea, { onClick: () => r && r(e), variant: "link", className: "border", children: /* @__PURE__ */ s.jsx(Pd, {}) })
10473
10473
  ] });
10474
- }, ID = ({ value: e, numberPrefix: t, numberSuffix: r, decimalScale: n = 2, fixedDecimalScale: a = !1, className: o }) => /* @__PURE__ */ s.jsx(Oa, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: n, fixedDecimalScale: a, defaultValue: "", prefix: t, suffix: r, className: o, decimalSeparator: "," }), jD = ({ data: e, keys: t, colors: r, tooltipLabel: n }) => /* @__PURE__ */ s.jsx(Ad, { data: e.map((a) => ({ name: a.name, ...a.values })), indexBy: "name", keys: t, margin: {
10474
+ }, ID = ({ value: e, numberPrefix: t, numberSuffix: r, decimalScale: n = 2, fixedDecimalScale: a = !1, className: o }) => /* @__PURE__ */ s.jsx(Oa, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: n, fixedDecimalScale: a, defaultValue: "", prefix: t, suffix: r, className: o, decimalSeparator: "," }), jD = ({ data: e, keys: t, colors: r, tooltipLabel: n }) => /* @__PURE__ */ s.jsx(Td, { data: e.map((a) => ({ name: a.name, ...a.values })), indexBy: "name", keys: t, margin: {
10475
10475
  top: 20,
10476
10476
  right: 50,
10477
10477
  bottom: 30,
@@ -10509,7 +10509,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10509
10509
  /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "text-uppercase", children: r(o) }),
10510
10510
  /* @__PURE__ */ s.jsxs(ae, { variant: "caption", className: "d-flex justify-content-between align-items-center gap-3 text-dark", children: [
10511
10511
  i.name,
10512
- /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "text-end opacity-50", children: Td(i.lastUsedDate) })
10512
+ /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "text-end opacity-50", children: Ad(i.lastUsedDate) })
10513
10513
  ] })
10514
10514
  ] }))) }) }) });
10515
10515
  }, qi = ({ reportVersion: e, getReportRoute: t, report: r }) => /* @__PURE__ */ s.jsx(Jt, { as: nt, to: t(r, e.id), className: "p-1 px-2", action: !0, children: /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "d-flex justify-content-between align-items-center gap-3", children: /* @__PURE__ */ s.jsx("div", { className: "link", children: e.name }) }) }), qr = 5, Yi = ({ versionsList: e, getReportRoute: t, report: r }) => {
@@ -10541,7 +10541,7 @@ const ry = "_backdrop_3huvf_1", ny = "_show_3huvf_11", Li = {
10541
10541
  reportsGet: "/reports",
10542
10542
  reportsLastUsedGet: "/reports/last-used"
10543
10543
  }, _D = ({ groups: e, apiUrls: { reportsGet: t = Qn.reportsGet, reportsLastUsedGet: r = Qn.reportsLastUsedGet } = Qn, getReportName: n, getReportDescription: a, getGroupTitle: o, getReportRoute: i }) => {
10544
- const { texts: { reports: l } } = Z(ge), [c, p] = V(""), [d] = mn(c, 500), u = T((b) => b.map((m) => ({
10544
+ const { texts: { reports: l } } = Z(ge), [c, p] = V(""), [d] = mn(c, 500), u = A((b) => b.map((m) => ({
10545
10545
  ...m,
10546
10546
  groupId: !m.groupId || m.groupId === 0 || !e.some((x) => x === m.groupId) ? 999 : m.groupId
10547
10547
  })), [e]), { data: f } = hr(t, { dataTransformer: u }), v = q(() => {
@@ -10629,7 +10629,7 @@ export {
10629
10629
  Xt as DropdownToggle,
10630
10630
  yD as DynamicForm,
10631
10631
  CD as EmployeeSmallPhoto,
10632
- Au as ErrorBoundary,
10632
+ Tu as ErrorBoundary,
10633
10633
  kD as FileExtensionIcon,
10634
10634
  Vw as FileUploadButton,
10635
10635
  Hs as FileUploadContextButton,