react-luminus-components 1.3.175 → 1.3.176

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,8 +1,8 @@
1
- import { j as n, c as _, t as je, a as Nt, s as Rn, g as An, m as Ws, d as Lt, b as Hs, e as Us, f as He, h as Gs, i as Ys, k as Ks, l as qs, n as Qs, o as Js, p as Zs, T as br, q as Nr, r as Mn, E as Xs, u as Sr, v as yn, w as Cr, x as ea, y as he, z as Ht, A as ta, B as kr, C as Ut, D as na, F as mn, G as Ir, H as ra, S as hn, N as Dr, I as wn, J as _n, K as sa, L as aa, M as oa, O as ia, P as la, Q as $r, R as ca, U as da, V as ua, W as fa, X as ma, Y as ha, Z as ga, _ as gn, $ as fe, a0 as pn, a1 as pa, a2 as xa, a3 as va, a4 as Tr, a5 as St, a6 as X, a7 as bn, a8 as pe, a9 as Nn, aa as Be, ab as at, ac as ja, ad as Ve, ae as Q, af as Er, ag as Fr, ah as Or, ai as Pe, aj as ot, ak as ya, al as wa, am as _a, an as ba, ao as Gt, ap as it, aq as Yt, ar as Kt, as as Lr, at as $e, au as Rr, av as Na, aw as Sa, ax as Ca, ay as ft, az as mt, aA as Dt, aB as Ce, aC as Ar, aD as Ct, aE as ht, aF as Mr, aG as Oe, aH as ka, aI as Br, aJ as Ia, aK as Vr, aL as Da, aM as $a, aN as Ta, aO as Ea, aP as Fa, aQ as Oa, aR as Mt, aS as Pr, aT as La, aU as Ra, aV as Aa, aW as Ma, aX as Ba, aY as Va, aZ as Ke, a_ as Pa, a$ as za, b0 as Wa, b1 as Ha, b2 as Ua, b3 as en, b4 as Bn, b5 as Ga, b6 as Ya, b7 as zr } from "./nivo-bar.es-DVe_3U7Q.js";
1
+ import { j as n, c as _, t as je, a as Nt, s as Rn, g as An, m as Ws, d as Lt, b as Hs, e as Us, f as He, h as Gs, i as Ys, k as Ks, l as qs, n as Qs, o as Js, p as Zs, T as br, q as Nr, r as Mn, E as Xs, u as Sr, v as yn, w as Cr, x as ea, y as he, z as Ht, A as ta, B as kr, C as Ut, D as na, F as mn, G as Ir, H as ra, S as hn, N as Dr, I as wn, J as _n, K as sa, L as aa, M as oa, O as ia, P as la, Q as $r, R as ca, U as da, V as ua, W as fa, X as ma, Y as ha, Z as ga, _ as gn, $ as fe, a0 as pn, a1 as pa, a2 as xa, a3 as va, a4 as Tr, a5 as St, a6 as X, a7 as bn, a8 as pe, a9 as Nn, aa as Be, ab as at, ac as ja, ad as Ve, ae as Q, af as Er, ag as Fr, ah as Or, ai as ze, aj as ot, ak as ya, al as wa, am as _a, an as ba, ao as Gt, ap as it, aq as Yt, ar as Kt, as as Lr, at as $e, au as Rr, av as Na, aw as Sa, ax as Ca, ay as ft, az as mt, aA as Dt, aB as Ce, aC as Ar, aD as Ct, aE as ht, aF as Mr, aG as Oe, aH as ka, aI as Br, aJ as Ia, aK as Vr, aL as Da, aM as $a, aN as Ta, aO as Ea, aP as Fa, aQ as Oa, aR as Mt, aS as zr, aT as La, aU as Ra, aV as Aa, aW as Ma, aX as Ba, aY as Va, aZ as Ke, a_ as za, a$ as Pa, b0 as Wa, b1 as Ha, b2 as Ua, b3 as en, b4 as Bn, b5 as Ga, b6 as Ya, b7 as Pr } from "./nivo-bar.es-DVe_3U7Q.js";
2
2
  import { bc as Wu, bd as Hu, ba as Uu, b9 as Gu, b8 as Yu, be as Ku, bf as qu, bb as Qu } from "./nivo-bar.es-DVe_3U7Q.js";
3
3
  import * as oe from "react";
4
4
  import Se, { useCallback as D, useMemo as G, useContext as Y, useRef as Z, useEffect as B, useState as L, useId as Ka, Component as qa, isValidElement as Vn, Suspense as Qa, useLayoutEffect as Ja } from "react";
5
- import { c as Ue, L as Pn } from "./Loading-C_Obnmtl.js";
5
+ import { c as Ue, L as zn } from "./Loading-C_Obnmtl.js";
6
6
  import { InteractionType as Za } from "@azure/msal-browser";
7
7
  import { MsalAuthenticationTemplate as Xa } from "@azure/msal-react";
8
8
  import { useNavigate as Wr, Link as Le, useSearchParams as eo, useParams as to, generatePath as Bt, useLocation as no, Navigate as Et } from "react-router-dom";
@@ -12,7 +12,7 @@ import { u as qt, a as Hr } from "./useWindowSize-OLYtjFv_.js";
12
12
  import { s as qe, l as _t } from "./searchUtils-Da3ZqNhn.js";
13
13
  import { u as so, a as Ur, b as ao, c as Gr, d as oo } from "./useClipboard-ClYXMKiq.js";
14
14
  import Vt from "react-dom";
15
- import { u as Pt, a as io } from "./useLocalStorageState-Bq8ZhpGM.js";
15
+ import { u as zt, a as io } from "./useLocalStorageState-Bq8ZhpGM.js";
16
16
  const Jd = ({ fileLoader: e, fileName: t, children: r }) => {
17
17
  const s = D(async () => {
18
18
  var l, c;
@@ -49,7 +49,7 @@ function uo(e, t) {
49
49
  const r = je(e), s = je(t), a = r.getTime() - s.getTime();
50
50
  return a < 0 ? -1 : a > 0 ? 1 : a;
51
51
  }
52
- function zn(e, t) {
52
+ function Pn(e, t) {
53
53
  const r = je(e), s = je(t), a = r.getFullYear() - s.getFullYear(), o = r.getMonth() - s.getMonth();
54
54
  return a * 12 + o;
55
55
  }
@@ -131,10 +131,10 @@ function ho(e, t, r) {
131
131
  let s = 0, a;
132
132
  const o = je(e), i = je(t);
133
133
  if (r != null && r.unit)
134
- a = r == null ? void 0 : r.unit, a === "second" ? s = rn(o, i) : a === "minute" ? s = Yn(o, i) : a === "hour" ? s = Gn(o, i) : a === "day" ? s = Lt(o, i) : a === "week" ? s = Hn(o, i) : a === "month" ? s = zn(o, i) : a === "quarter" ? s = tn(o, i) : a === "year" && (s = nn(o, i));
134
+ a = r == null ? void 0 : r.unit, a === "second" ? s = rn(o, i) : a === "minute" ? s = Yn(o, i) : a === "hour" ? s = Gn(o, i) : a === "day" ? s = Lt(o, i) : a === "week" ? s = Hn(o, i) : a === "month" ? s = Pn(o, i) : a === "quarter" ? s = tn(o, i) : a === "year" && (s = nn(o, i));
135
135
  else {
136
136
  const c = rn(o, i);
137
- Math.abs(c) < Gs ? (s = rn(o, i), a = "second") : Math.abs(c) < Ys ? (s = Yn(o, i), a = "minute") : Math.abs(c) < Ks && Math.abs(Lt(o, i)) < 1 ? (s = Gn(o, i), a = "hour") : Math.abs(c) < qs && (s = Lt(o, i)) && Math.abs(s) < 7 ? a = "day" : Math.abs(c) < Qs ? (s = Hn(o, i), a = "week") : Math.abs(c) < Js ? (s = zn(o, i), a = "month") : Math.abs(c) < Zs && tn(o, i) < 4 ? (s = tn(o, i), a = "quarter") : (s = nn(o, i), a = "year");
137
+ Math.abs(c) < Gs ? (s = rn(o, i), a = "second") : Math.abs(c) < Ys ? (s = Yn(o, i), a = "minute") : Math.abs(c) < Ks && Math.abs(Lt(o, i)) < 1 ? (s = Gn(o, i), a = "hour") : Math.abs(c) < qs && (s = Lt(o, i)) && Math.abs(s) < 7 ? a = "day" : Math.abs(c) < Qs ? (s = Hn(o, i), a = "week") : Math.abs(c) < Js ? (s = Pn(o, i), a = "month") : Math.abs(c) < Zs && tn(o, i) < 4 ? (s = tn(o, i), a = "quarter") : (s = nn(o, i), a = "year");
138
138
  }
139
139
  return new Intl.RelativeTimeFormat(r == null ? void 0 : r.locale, {
140
140
  localeMatcher: r == null ? void 0 : r.localeMatcher,
@@ -848,10 +848,10 @@ const ws = /* @__PURE__ */ oe.forwardRef(({
848
848
  handleContainerOverflow: !1
849
849
  })), N.current) : ha());
850
850
  }
851
- const te = (se, ...P) => {
852
- se && (se.style.visibility = "visible"), j == null || j(se, ...P);
853
- }, z = (se, ...P) => {
854
- se && (se.style.visibility = ""), E == null || E(...P);
851
+ const te = (se, ...z) => {
852
+ se && (se.style.visibility = "visible"), j == null || j(se, ...z);
853
+ }, P = (se, ...z) => {
854
+ se && (se.style.visibility = ""), E == null || E(...z);
855
855
  }, J = D((se) => /* @__PURE__ */ n.jsx("div", {
856
856
  ...se,
857
857
  className: _(`${e}-backdrop`, I)
@@ -883,7 +883,7 @@ const ws = /* @__PURE__ */ oe.forwardRef(({
883
883
  onEntered: w,
884
884
  onExit: y,
885
885
  onExiting: b,
886
- onExited: z,
886
+ onExited: P,
887
887
  manager: H(),
888
888
  transition: Oo,
889
889
  backdropTransition: Lo,
@@ -985,7 +985,7 @@ const Ro = /* @__PURE__ */ oe.forwardRef(({
985
985
  return f;
986
986
  }), Ao = ({ children: e, onStorno: t, noSpacer: r }) => {
987
987
  const { texts: { formSubmit: s } } = Y(fe);
988
- return /* @__PURE__ */ n.jsxs(zc, { noSpacer: r, children: [
988
+ return /* @__PURE__ */ n.jsxs(Pc, { noSpacer: r, children: [
989
989
  /* @__PURE__ */ n.jsxs(pn, { as: "button", color: "primary", size: "lg", type: "submit", children: [
990
990
  /* @__PURE__ */ n.jsx(pa, {}),
991
991
  e
@@ -1051,9 +1051,9 @@ const Ro = /* @__PURE__ */ oe.forwardRef(({
1051
1051
  }, className: _(sn.select), children: i.map((c) => /* @__PURE__ */ n.jsx("option", { value: c, children: c }, c)) }),
1052
1052
  /* @__PURE__ */ n.jsx(X, { onClick: () => o(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ n.jsx(Nn, {}) })
1053
1053
  ] });
1054
- }, Vo = "_select_pywmr_1", Po = {
1054
+ }, Vo = "_select_pywmr_1", zo = {
1055
1055
  select: Vo
1056
- }, zo = ({ year: e, onChangeYear: t, optionMin: r = 2e3, optionMax: s = 2050, className: a }) => {
1056
+ }, Po = ({ year: e, onChangeYear: t, optionMin: r = 2e3, optionMax: s = 2050, className: a }) => {
1057
1057
  const o = D((l) => {
1058
1058
  const c = e.getFullYear() + l;
1059
1059
  c < r || c > s || t(co(e, l));
@@ -1068,7 +1068,7 @@ const Ro = /* @__PURE__ */ oe.forwardRef(({
1068
1068
  /* @__PURE__ */ n.jsx(pe.Select, { value: e.getFullYear(), onChange: (l) => {
1069
1069
  var c;
1070
1070
  return ((c = l.target) == null ? void 0 : c.value) && t(Kr(e, Number(l.target.value)));
1071
- }, className: Po.select, children: i.map((l) => /* @__PURE__ */ n.jsx("option", { value: l, children: l }, l)) }),
1071
+ }, className: zo.select, children: i.map((l) => /* @__PURE__ */ n.jsx("option", { value: l, children: l }, l)) }),
1072
1072
  /* @__PURE__ */ n.jsx(X, { onClick: () => o(1), disabled: e.getFullYear() >= s, children: /* @__PURE__ */ n.jsx(Nn, {}) })
1073
1073
  ] });
1074
1074
  };
@@ -1170,7 +1170,7 @@ const Ho = (e) => (r) => {
1170
1170
  }, onBlur: () => K(!1), onKeyDown: V, step: x, minLength: g, maxLength: h }),
1171
1171
  m && r !== null && s && !u && /* @__PURE__ */ n.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ n.jsx(X, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ n.jsx(Ve, {}) }) })
1172
1172
  ] });
1173
- }, zt = ({
1173
+ }, Pt = ({
1174
1174
  InputContainer: e = at,
1175
1175
  value: t,
1176
1176
  options: r,
@@ -1606,7 +1606,7 @@ function ui(e) {
1606
1606
  value: R,
1607
1607
  floatValue: isNaN(W) ? void 0 : W
1608
1608
  };
1609
- }, z = function(k, R, W) {
1609
+ }, P = function(k, R, W) {
1610
1610
  k.selectionStart === 0 && k.selectionEnd === k.value.length || (rt(k, R), U.current.setCaretTimeout = setTimeout(function() {
1611
1611
  k.value === W && k.selectionStart !== R && rt(k, R);
1612
1612
  }, 0));
@@ -1621,7 +1621,7 @@ function ui(e) {
1621
1621
  var W = k.input, ie = k.source, ve = k.event, le = k.numAsString, ce;
1622
1622
  if (W) {
1623
1623
  var ke = k.inputValue || W.value, Ee = an(W);
1624
- W.value = R, ce = ee(ke, R, Ee), ce !== void 0 && z(W, ce, R);
1624
+ W.value = R, ce = ee(ke, R, Ee), ce !== void 0 && P(W, ce, R);
1625
1625
  }
1626
1626
  R !== I && N(te(R, le), { event: ve, source: ie });
1627
1627
  };
@@ -1632,19 +1632,19 @@ function ui(e) {
1632
1632
  source: kt.props
1633
1633
  });
1634
1634
  }, [I, A]);
1635
- var P = T.current ? an(T.current) : void 0, O = typeof window < "u" ? Ja : B;
1635
+ var z = T.current ? an(T.current) : void 0, O = typeof window < "u" ? Ja : B;
1636
1636
  O(function() {
1637
1637
  var k = T.current;
1638
1638
  if (I !== V.current.formattedValue && k) {
1639
- var R = ee(V.current.formattedValue, I, P);
1640
- k.value = I, z(k, R, I);
1639
+ var R = ee(V.current.formattedValue, I, z);
1640
+ k.value = I, P(k, R, I);
1641
1641
  }
1642
1642
  }, [I]);
1643
1643
  var ne = function(k, R, W) {
1644
1644
  var ie = R.target, ve = F.current ? ni(F.current, ie.selectionEnd) : Es(I, k), le = Object.assign(Object.assign({}, ve), { lastValue: I }), ce = l(k, le), ke = H(ce);
1645
1645
  if (ce = l(ke, void 0), m && !m(te(ke, ce))) {
1646
1646
  var Ee = R.target, Fe = an(Ee), ct = ee(k, I, Fe);
1647
- return Ee.value = I, z(Ee, ct, I), !1;
1647
+ return Ee.value = I, P(Ee, ct, I), !1;
1648
1648
  }
1649
1649
  return se({
1650
1650
  formattedValue: ke,
@@ -1678,13 +1678,13 @@ function ui(e) {
1678
1678
  var ct = W === "ArrowLeft" ? "left" : "right";
1679
1679
  Fe = J(le, ce, ct), Fe !== ce && k.preventDefault();
1680
1680
  } else W === "Delete" && !y(le[ce]) ? Fe = J(le, ce, "right") : W === "Backspace" && !y(le[ce]) && (Fe = J(le, ce, "left"));
1681
- Fe !== ce && z(R, Fe, le), f(k), ae(R, ke);
1682
- }, ze = function(k) {
1681
+ Fe !== ce && P(R, Fe, le), f(k), ae(R, ke);
1682
+ }, Pe = function(k) {
1683
1683
  var R = k.target, W = function() {
1684
1684
  var ie = R.selectionStart, ve = R.selectionEnd, le = R.value;
1685
1685
  if (le === void 0 && (le = ""), ie === ve) {
1686
1686
  var ce = J(le, ie);
1687
- ce !== ie && z(R, ce, le);
1687
+ ce !== ie && P(R, ce, le);
1688
1688
  }
1689
1689
  };
1690
1690
  W(), requestAnimationFrame(function() {
@@ -1697,7 +1697,7 @@ function ui(e) {
1697
1697
  var ie = R.selectionStart, ve = R.selectionEnd, le = R.value;
1698
1698
  le === void 0 && (le = "");
1699
1699
  var ce = J(le, ie);
1700
- ce !== ie && !(ie === 0 && ve === le.length) && z(R, ce, le), x(Object.assign(Object.assign({}, k), { currentTarget: W }));
1700
+ ce !== ie && !(ie === 0 && ve === le.length) && P(R, ce, le), x(Object.assign(Object.assign({}, k), { currentTarget: W }));
1701
1701
  }, 0);
1702
1702
  }, _e = function(k) {
1703
1703
  T.current = null, clearTimeout(U.current.focusTimeout), clearTimeout(U.current.setCaretTimeout), g(k);
@@ -1706,7 +1706,7 @@ function ui(e) {
1706
1706
  value: I,
1707
1707
  onChange: be,
1708
1708
  onKeyDown: Te,
1709
- onMouseUp: ze,
1709
+ onMouseUp: Pe,
1710
1710
  onFocus: re,
1711
1711
  onBlur: _e
1712
1712
  });
@@ -1765,10 +1765,10 @@ function gi(e, t, r) {
1765
1765
  e = e.substring(0, u) + g + e.substring(u + 1, e.length);
1766
1766
  }
1767
1767
  var h = function(T, U, H) {
1768
- var te = !1, z = !1;
1769
- o.startsWith("-") ? te = !1 : T.startsWith("--") ? (te = !1, z = !0) : i.startsWith("-") && T.length === i.length ? te = !1 : T[0] === "-" && (te = !0);
1768
+ var te = !1, P = !1;
1769
+ o.startsWith("-") ? te = !1 : T.startsWith("--") ? (te = !1, P = !0) : i.startsWith("-") && T.length === i.length ? te = !1 : T[0] === "-" && (te = !0);
1770
1770
  var J = te ? 1 : 0;
1771
- return z && (J = 2), J && (T = T.substring(J), U -= J, H -= J), { value: T, start: U, end: H, hasNegation: te };
1771
+ return P && (J = 2), J && (T = T.substring(J), U -= J, H -= J), { value: T, start: U, end: H, hasNegation: te };
1772
1772
  }, w = h(e, u, m), y = w.hasNegation;
1773
1773
  s = w, e = s.value, u = s.start, m = s.end;
1774
1774
  var b = h(t.lastValue, c.start, c.end), j = b.start, S = b.end, E = b.value, I = e.substring(u, m);
@@ -1829,8 +1829,8 @@ function vi(e) {
1829
1829
  var S = function(C) {
1830
1830
  return Is(C) ? C : (typeof C == "number" && (C = Ts(C)), j && typeof l == "number" ? tr(C, l, !!c) : C);
1831
1831
  }, E = Fs(S(m), S(u), !!j, w, y, f), I = E[0], A = I.numAsString, M = I.formattedValue, F = E[1], V = function(C) {
1832
- var T = C.target, U = C.key, H = T.selectionStart, te = T.selectionEnd, z = T.value;
1833
- if (z === void 0 && (z = ""), (U === "Backspace" || U === "Delete") && te < d.length) {
1832
+ var T = C.target, U = C.key, H = T.selectionStart, te = T.selectionEnd, P = T.value;
1833
+ if (P === void 0 && (P = ""), (U === "Backspace" || U === "Delete") && te < d.length) {
1834
1834
  C.preventDefault();
1835
1835
  return;
1836
1836
  }
@@ -1838,9 +1838,9 @@ function vi(e) {
1838
1838
  a(C);
1839
1839
  return;
1840
1840
  }
1841
- U === "Backspace" && z[0] === "-" && H === d.length + 1 && r && rt(T, 1), l && c && (U === "Backspace" && z[H - 1] === g ? (rt(T, H - 1), C.preventDefault()) : U === "Delete" && z[H] === g && C.preventDefault()), h != null && h.includes(U) && z[H] === g && rt(T, H + 1);
1841
+ U === "Backspace" && P[0] === "-" && H === d.length + 1 && r && rt(T, 1), l && c && (U === "Backspace" && P[H - 1] === g ? (rt(T, H - 1), C.preventDefault()) : U === "Delete" && P[H] === g && C.preventDefault()), h != null && h.includes(U) && P[H] === g && rt(T, H + 1);
1842
1842
  var J = i === !0 ? "," : i;
1843
- U === "Backspace" && z[H - 1] === J && rt(T, H - 1), U === "Delete" && z[H] === J && rt(T, H + 1), a(C);
1843
+ U === "Backspace" && P[H - 1] === J && rt(T, H - 1), U === "Delete" && P[H] === J && rt(T, H + 1), a(C);
1844
1844
  }, N = function(C) {
1845
1845
  var T = A;
1846
1846
  if (T.match(/\d/g) || (T = ""), s || (T = ti(T)), c && l && (T = tr(T, l, c)), T !== A) {
@@ -1858,10 +1858,10 @@ function vi(e) {
1858
1858
  }, K = function(C) {
1859
1859
  return C === g ? !0 : It(C);
1860
1860
  }, $ = function(C) {
1861
- var T = C.currentValue, U = C.lastValue, H = C.formattedValue, te = C.currentValueIndex, z = C.formattedValueIndex, J = T[te], ee = H[z], se = Es(U, T), P = se.to, O = function(ne) {
1861
+ var T = C.currentValue, U = C.lastValue, H = C.formattedValue, te = C.currentValueIndex, P = C.formattedValueIndex, J = T[te], ee = H[P], se = Es(U, T), z = se.to, O = function(ne) {
1862
1862
  return y(ne).indexOf(".") + d.length;
1863
1863
  };
1864
- return m === 0 && c && l && T[P.start] === g && O(T) < te && O(H) > z ? !1 : te >= P.start && te < P.end && h && h.includes(J) && ee === g ? !0 : J === ee;
1864
+ return m === 0 && c && l && T[z.start] === g && O(T) < te && O(H) > P ? !1 : te >= z.start && te < z.end && h && h.includes(J) && ee === g ? !0 : J === ee;
1865
1865
  };
1866
1866
  return Object.assign(Object.assign({}, p), {
1867
1867
  value: M,
@@ -1916,12 +1916,12 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
1916
1916
  }), step: f, min: w, max: y }),
1917
1917
  u && t !== null && r && !d && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(X, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ n.jsx(Ve, {}) }) })
1918
1918
  ] });
1919
- }, ru = ({ InputContainer: e = Pe, label: t, options: r, disabled: s, hidden: a, className: o, value: i, onChange: l }) => {
1919
+ }, ru = ({ InputContainer: e = ze, label: t, options: r, disabled: s, hidden: a, className: o, value: i, onChange: l }) => {
1920
1920
  const c = D((d) => {
1921
1921
  l && l(d.target.value);
1922
1922
  }, [l]);
1923
1923
  return /* @__PURE__ */ n.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, children: r.map((d) => /* @__PURE__ */ n.jsx(pe.Check, { id: `radio-${d.id}`, label: d.name, type: "radio", value: d.id ?? "", checked: i === d.id, onChange: c, hidden: a, disabled: s, className: "w-100" }, d.id)) });
1924
- }, su = ({ InputContainer: e = Pe, formField: t, label: r, resetsFields: s, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: d, className: u }) => {
1924
+ }, su = ({ InputContainer: e = ze, formField: t, label: r, resetsFields: s, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: d, className: u }) => {
1925
1925
  const { register: m, formState: v, setValue: f } = Qe(), [p, x] = L(void 0), [g, h] = L(!1);
1926
1926
  B(() => {
1927
1927
  const y = t.split(".");
@@ -1941,7 +1941,7 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
1941
1941
  }), isInvalid: w, hidden: i, disabled: l, className: "w-100" }),
1942
1942
  p && /* @__PURE__ */ n.jsx(ot, { message: p.message })
1943
1943
  ] });
1944
- }, au = ({ InputContainer: e = Pe, label: t, formField: r, options: s, resetsFields: a, required: o, disabled: i, hidden: l, className: c }) => {
1944
+ }, au = ({ InputContainer: e = ze, label: t, formField: r, options: s, resetsFields: a, required: o, disabled: i, hidden: l, className: c }) => {
1945
1945
  const { register: d, formState: u, setValue: m, watch: v } = Qe(), [f, p] = L(void 0), [x, g] = L(!1), h = G(() => s, [s]);
1946
1946
  B(() => {
1947
1947
  const y = r.split(".");
@@ -1961,15 +1961,15 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
1961
1961
  }), isInvalid: w, hidden: l, disabled: i, className: "w-100" }, y.id)),
1962
1962
  f && /* @__PURE__ */ n.jsx(ot, { message: f.message })
1963
1963
  ] });
1964
- }, ou = ({ InputContainer: e = Pe, formField: t, label: r, size: s, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: d, items: u, onSearchQueryChange: m, selectedItemNavigateTo: v, texts: f, dropdownItemsNameWidth: p, isLoading: x, withoutLabel: g, additionalColumns: h, CustomOnChangeComponent: w, icon: y, displayIdAsName: b, onSelect: j, className: S, archiveColumn: E, hint: I, addNewOptionPath: A, refreshOptions: M }) => {
1965
- const { formState: F, setValue: V, watch: N, control: K } = Qe(), [$, C] = L(void 0), [T, U] = L(!1), [H, te] = L(!1), z = N(t) ?? null, J = z === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : N(`${t}-DropdownName`), ee = G(() => z == null ? null : { id: z ?? null, name: J ?? "" }, [z, J]), se = D(() => {
1964
+ }, ou = ({ InputContainer: e = ze, formField: t, label: r, size: s, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: d, items: u, onSearchQueryChange: m, selectedItemNavigateTo: v, texts: f, dropdownItemsNameWidth: p, isLoading: x, withoutLabel: g, additionalColumns: h, CustomOnChangeComponent: w, icon: y, displayIdAsName: b, onSelect: j, className: S, archiveColumn: E, hint: I, addNewOptionPath: A, refreshOptions: M }) => {
1965
+ const { formState: F, setValue: V, watch: N, control: K } = Qe(), [$, C] = L(void 0), [T, U] = L(!1), [H, te] = L(!1), P = N(t) ?? null, J = P === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : N(`${t}-DropdownName`), ee = G(() => P == null ? null : { id: P ?? null, name: J ?? "" }, [P, J]), se = D(() => {
1966
1966
  const re = t.split(".");
1967
1967
  let _e = F.errors;
1968
1968
  re.forEach((Ne) => {
1969
1969
  _e !== void 0 && (_e = _e[Ne]);
1970
1970
  }), C(_e);
1971
- }, [F, t]), P = D((re) => {
1972
- if ((re == null ? void 0 : re.id) === z)
1971
+ }, [F, t]), z = D((re) => {
1972
+ if ((re == null ? void 0 : re.id) === P)
1973
1973
  return;
1974
1974
  if (j && j(re), o && o.forEach((Ne) => V(Ne, null, { shouldDirty: !0, shouldValidate: H })), re === null) {
1975
1975
  V(t, null, {
@@ -1983,9 +1983,9 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
1983
1983
  shouldDirty: !0,
1984
1984
  shouldValidate: H
1985
1985
  }), V(`${t}-DropdownName`, re.name ?? "");
1986
- }, [V, t, H, i, o, z, j]), O = D((re) => {
1987
- U(!1), P(re);
1988
- }, [P]), ne = D(() => {
1986
+ }, [V, t, H, i, o, P, j]), O = D((re) => {
1987
+ U(!1), z(re);
1988
+ }, [z]), ne = D(() => {
1989
1989
  U(!1);
1990
1990
  }, []);
1991
1991
  B(() => {
@@ -1993,7 +1993,7 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
1993
1993
  }, [se]), B(() => {
1994
1994
  F.isSubmitted && te(!0);
1995
1995
  }, [F]);
1996
- const ae = Z(null), be = $ !== void 0, Te = v !== void 0, ze = Te && ee !== null;
1996
+ const ae = Z(null), be = $ !== void 0, Te = v !== void 0, Pe = Te && ee !== null;
1997
1997
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: g, isInvalid: be, inputContainerClassName: _({ "luminus-dropdown-select-open": T }), hint: I, className: S, children: [
1998
1998
  /* @__PURE__ */ n.jsxs(Cs, { currentSelection: ee, selectedItemNavigateTo: v, children: [
1999
1999
  b && (ee == null ? void 0 : ee.name) && /* @__PURE__ */ n.jsx(Q, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: ee.name }),
@@ -2001,11 +2001,11 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2001
2001
  re.currentTarget.focus(), re.preventDefault();
2002
2002
  }, onClick: () => {
2003
2003
  !Te && !d && U(!0);
2004
- }, ref: ae, value: z ?? "", onChange: () => {
2004
+ }, ref: ae, value: P ?? "", onChange: () => {
2005
2005
  }, isInvalid: be, hidden: c, className: _("w-100", {
2006
2006
  "luminus-dropdown-picker-disabled": d,
2007
- "luminus-dropdown-picker-link": ze
2008
- }), children: /* @__PURE__ */ n.jsx("option", { value: z, children: b ? z : (J == null ? void 0 : J.length) > 0 ? J : z }) }) }),
2007
+ "luminus-dropdown-picker-link": Pe
2008
+ }), children: /* @__PURE__ */ n.jsx("option", { value: P, children: b ? P : (J == null ? void 0 : J.length) > 0 ? J : P }) }) }),
2009
2009
  w || !d && Te ? /* @__PURE__ */ n.jsxs("div", { className: "custom-picker-button", children: [
2010
2010
  !w && !d && Te && /* @__PURE__ */ n.jsx(X, { size: "sm", color: "secondary", onClick: (re) => {
2011
2011
  re.preventDefault(), re.stopPropagation(), U(!0);
@@ -2016,7 +2016,7 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2016
2016
  $ && /* @__PURE__ */ n.jsx(ot, { message: $.message }),
2017
2017
  ae.current && /* @__PURE__ */ n.jsx(Zt, { show: T, onCancel: ne, items: u, currentSelection: ee, onSelectionChange: O, onSearchQueryChange: m, texts: f, itemsNameWidth: p, additionalColumns: h, displayIdAsName: b, isLoading: x, disabled: d, inputRef: ae, archiveColumn: E, addNewOptionPath: A, refreshOptions: M })
2018
2018
  ] }) });
2019
- }, iu = ({ InputContainer: e = Pe, label: t, formField: r, hidden: s, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: d, accept: u, withoutLabel: m, hint: v, className: f }) => {
2019
+ }, iu = ({ InputContainer: e = ze, label: t, formField: r, hidden: s, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: d, accept: u, withoutLabel: m, hint: v, className: f }) => {
2020
2020
  const { watch: p, setValue: x, register: g, formState: h } = Qe(), [w, y] = L(!1), [b, j] = L(void 0), S = D(() => {
2021
2021
  x(r, "");
2022
2022
  }, [x, r]), E = D(() => {
@@ -2044,7 +2044,7 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2044
2044
  return B(() => {
2045
2045
  o(Object.keys(s.dirtyFields).length > 0);
2046
2046
  }, [s]), a ? /* @__PURE__ */ n.jsx(Ao, { onStorno: t, noSpacer: r, children: e }) : null;
2047
- }, cu = ({ InputContainer: e = Pe, options: t, formField: r, label: s, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: d, withoutLabel: u, noSortOptions: m, suffixIdToName: v, onSelect: f, className: p, appendCurrentSelectionWithName: x, hint: g, addNewOptionPath: h, refreshOptions: w }) => {
2047
+ }, cu = ({ InputContainer: e = ze, options: t, formField: r, label: s, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: d, withoutLabel: u, noSortOptions: m, suffixIdToName: v, onSelect: f, className: p, appendCurrentSelectionWithName: x, hint: g, addNewOptionPath: h, refreshOptions: w }) => {
2048
2048
  const { texts: { customSelect: y } } = Y(fe), { formState: b, setValue: j, watch: S, control: E } = Qe(), [I, A] = L(void 0), [M, F] = L(!1), [V, N] = L(!1), [K, $] = L(""), C = S(r), T = G(() => t.find((O) => O.id === C) ?? null, [t, C]), U = D(() => {
2049
2049
  const O = r.split(".");
2050
2050
  let ne = b.errors;
@@ -2068,7 +2068,7 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2068
2068
  });
2069
2069
  }, [j, r, i, o, C, V, f]), te = D((O) => {
2070
2070
  F(!1), H(O);
2071
- }, [H]), z = D((O) => {
2071
+ }, [H]), P = D((O) => {
2072
2072
  $(O);
2073
2073
  }, []);
2074
2074
  B(() => {
@@ -2092,18 +2092,18 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2092
2092
  J,
2093
2093
  x,
2094
2094
  C
2095
- ]), se = Z(null), P = I !== void 0;
2096
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${s}${l ? " *" : ""}`, hidden: c, withoutLabel: u, isInvalid: P, inputContainerClassName: _({ "luminus-dropdown-select-open": M }), hint: g, className: p, children: [
2095
+ ]), se = Z(null), z = I !== void 0;
2096
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${s}${l ? " *" : ""}`, hidden: c, withoutLabel: u, isInvalid: z, inputContainerClassName: _({ "luminus-dropdown-select-open": M }), hint: g, className: p, children: [
2097
2097
  /* @__PURE__ */ n.jsx(Sn, { control: E, name: r, render: () => /* @__PURE__ */ n.jsx(pe.Select, { size: a, onMouseDown: (O) => {
2098
2098
  O.currentTarget.focus(), O.preventDefault();
2099
2099
  }, onClick: () => {
2100
2100
  F(!0);
2101
2101
  }, ref: se, value: C ?? "", onChange: () => {
2102
- }, isInvalid: P, hidden: c, disabled: d, className: "w-100", children: /* @__PURE__ */ n.jsx("option", { value: (T == null ? void 0 : T.id) ?? "", children: J(T) }) }) }),
2102
+ }, isInvalid: z, hidden: c, disabled: d, className: "w-100", children: /* @__PURE__ */ n.jsx("option", { value: (T == null ? void 0 : T.id) ?? "", children: J(T) }) }) }),
2103
2103
  I && /* @__PURE__ */ n.jsx(ot, { message: I.message }),
2104
- se.current && /* @__PURE__ */ n.jsx(Zt, { show: M, onCancel: () => F(!1), items: ee, currentSelection: T ?? null, onSelectionChange: te, onSearchQueryChange: z, texts: y, disabled: d, inputRef: se, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: h, refreshOptions: w })
2104
+ se.current && /* @__PURE__ */ n.jsx(Zt, { show: M, onCancel: () => F(!1), items: ee, currentSelection: T ?? null, onSelectionChange: te, onSearchQueryChange: P, texts: y, disabled: d, inputRef: se, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: h, refreshOptions: w })
2105
2105
  ] }) });
2106
- }, du = ({ InputContainer: e = Pe, formField: t, label: r, placeholder: s, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: d, disabled: u, withoutLabel: m, step: v, stepperStep: f = 1, className: p, min: x, max: g, hint: h }) => {
2106
+ }, du = ({ InputContainer: e = ze, formField: t, label: r, placeholder: s, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: d, disabled: u, withoutLabel: m, step: v, stepperStep: f = 1, className: p, min: x, max: g, hint: h }) => {
2107
2107
  const { register: w, formState: y, setValue: b, watch: j } = Qe(), [S, E] = L(void 0), [I, A] = L(!1), M = D(($, C, T) => {
2108
2108
  b($, _t(C, x, g), T);
2109
2109
  }, [g, x, b]), F = D(() => {
@@ -2145,7 +2145,7 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2145
2145
  i && j(t) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(X, { color: "secondary", size: "sm", onClick: F, children: /* @__PURE__ */ n.jsx(Ve, {}) }) }),
2146
2146
  S && /* @__PURE__ */ n.jsx(ot, { message: S.message })
2147
2147
  ] });
2148
- }, uu = ({ InputContainer: e = Pe, formField: t, label: r, placeholder: s, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: d, withoutLabel: u, step: m, size: v, CustomOnChangeComponent: f, noSelectOnFocus: p, className: x, decimalScale: g = 2, numberPrefix: h, numberSuffix: w, min: y, max: b, hint: j }) => {
2148
+ }, uu = ({ InputContainer: e = ze, formField: t, label: r, placeholder: s, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: d, withoutLabel: u, step: m, size: v, CustomOnChangeComponent: f, noSelectOnFocus: p, className: x, decimalScale: g = 2, numberPrefix: h, numberSuffix: w, min: y, max: b, hint: j }) => {
2149
2149
  const { formState: S, setValue: E, watch: I, control: A } = Qe(), [M, F] = L(void 0), [V, N] = L(!1), K = D(() => {
2150
2150
  const U = i ?? null;
2151
2151
  E(t, U !== null ? Number(U) : null, {
@@ -2171,11 +2171,11 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2171
2171
  const T = M !== void 0;
2172
2172
  return /* @__PURE__ */ n.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: u, isInvalid: T, hint: j, className: x, children: [
2173
2173
  /* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
2174
- /* @__PURE__ */ n.jsx(Sn, { control: A, name: t, render: ({ field: { ref: U, onChange: H, name: te, value: z } }) => /* @__PURE__ */ n.jsx(Tn, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: g, prefix: h, suffix: w, defaultValue: "", name: te, value: z ?? "", placeholder: s ?? r, onFocus: (J) => {
2174
+ /* @__PURE__ */ n.jsx(Sn, { control: A, name: t, render: ({ field: { ref: U, onChange: H, name: te, value: P } }) => /* @__PURE__ */ n.jsx(Tn, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: g, prefix: h, suffix: w, defaultValue: "", name: te, value: P ?? "", placeholder: s ?? r, onFocus: (J) => {
2175
2175
  !p && J.target.select();
2176
2176
  }, onChange: (J) => {
2177
- var se, P;
2178
- const ee = parseFloat(((P = (se = J.target) == null ? void 0 : se.value) == null ? void 0 : P.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
2177
+ var se, z;
2178
+ const ee = parseFloat(((z = (se = J.target) == null ? void 0 : se.value) == null ? void 0 : z.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
2179
2179
  a && a.forEach((O) => E(O, null, { shouldDirty: !0, shouldValidate: V })), H(ee == null || Number.isNaN(ee) ? null : Number(ee));
2180
2180
  }, hidden: c, disabled: d, className: _("form-control text-end w-100", {
2181
2181
  "is-invalid": T
@@ -2463,20 +2463,20 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2463
2463
  });
2464
2464
  }, [t, e]), { mappings: r };
2465
2465
  }, mu = ({ reportType: e, title: t, data: r, filterElements: s, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: l, localizationJsonFile: c, localizationTransformer: d, hyperlinkColumn: u }) => {
2466
- const { texts: { reports: m } } = Y(fe), { confirm: v } = Gt(), f = Wr(), [p] = eo(), { id: x } = to(), g = G(() => x === void 0 ? null : Number(x), [x]), h = D((P) => {
2467
- const O = P === null ? "" : P.toString();
2466
+ const { texts: { reports: m } } = Y(fe), { confirm: v } = Gt(), f = Wr(), [p] = eo(), { id: x } = to(), g = G(() => x === void 0 ? null : Number(x), [x]), h = D((z) => {
2467
+ const O = z === null ? "" : z.toString();
2468
2468
  f(Bt(a(e), { id: O }) + "?" + p.toString(), {
2469
2469
  replace: !0,
2470
2470
  flushSync: !0
2471
2471
  });
2472
- }, [a, f, e, p]), [w, y] = L(!1), b = Z(null), { user: j } = Y(Yt), { data: S, reloadData: E } = Pt(`/reports/${e}`), { mappings: I } = ki(c, d), [A, M] = L({}), F = D((P) => {
2472
+ }, [a, f, e, p]), [w, y] = L(!1), b = Z(null), { user: j } = Y(Yt), { data: S, reloadData: E } = zt(`/reports/${e}`), { mappings: I } = ki(c, d), [A, M] = L({}), F = D((z) => {
2473
2473
  if (S === null)
2474
2474
  return;
2475
- const O = P.target.value, ne = O === "" ? null : Number(O);
2475
+ const O = z.target.value, ne = O === "" ? null : Number(O);
2476
2476
  h(ne);
2477
- }, [S, h]), V = D(async (P) => {
2478
- await E(), h(P);
2479
- }, [E, h]), { data: N, setData: K } = Pt(`/reports/version/${g}`, { enabled: g !== null });
2477
+ }, [S, h]), V = D(async (z) => {
2478
+ await E(), h(z);
2479
+ }, [E, h]), { data: N, setData: K } = zt(`/reports/version/${g}`, { enabled: g !== null });
2480
2480
  B(() => {
2481
2481
  var O;
2482
2482
  if (S === null)
@@ -2485,8 +2485,8 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2485
2485
  M({});
2486
2486
  return;
2487
2487
  }
2488
- const P = wi(N) ?? {};
2489
- M(P), (O = b.current) == null || O.flexmonster.refresh();
2488
+ const z = wi(N) ?? {};
2489
+ M(z), (O = b.current) == null || O.flexmonster.refresh();
2490
2490
  }, [S, N, g]);
2491
2491
  const { save: $, saveAs: C, archive: T, detach: U } = Ni(e, b, g, V), H = G(() => ({
2492
2492
  data: r ?? [],
@@ -2494,33 +2494,33 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2494
2494
  }), [r, I]), te = D(async () => {
2495
2495
  var O;
2496
2496
  await v(m.confirmRevertChanges) && ((O = b.current) == null || O.flexmonster.setReport({ dataSource: H, ...A }));
2497
- }, [v, H, m.confirmRevertChanges, A]), z = G(() => (N == null ? void 0 : N.ownerId) === j.personalNumber, [N == null ? void 0 : N.ownerId, j.personalNumber]), J = G(() => {
2498
- var P;
2499
- return (P = N == null ? void 0 : N.users) == null ? void 0 : P.some((O) => O.id === j.personalNumber && !O.isReportOwner);
2497
+ }, [v, H, m.confirmRevertChanges, A]), P = G(() => (N == null ? void 0 : N.ownerId) === j.personalNumber, [N == null ? void 0 : N.ownerId, j.personalNumber]), J = G(() => {
2498
+ var z;
2499
+ return (z = N == null ? void 0 : N.users) == null ? void 0 : z.some((O) => O.id === j.personalNumber && !O.isReportOwner);
2500
2500
  }, [N == null ? void 0 : N.users, j.personalNumber]), ee = D(async () => {
2501
2501
  await v(m.confirmDelete(N == null ? void 0 : N.name)) && (await T(), h(null), await E());
2502
2502
  }, [T, v, E, N == null ? void 0 : N.name, m, h]), se = D(async () => {
2503
2503
  await v(m.confirmDetach(N == null ? void 0 : N.name)) && (await U(), h(null), await E());
2504
2504
  }, [v, U, E, N == null ? void 0 : N.name, m, h]);
2505
2505
  return B(() => {
2506
- var P, O;
2507
- g === null && h(((P = S == null ? void 0 : S.reportVersions.find((ne) => ne.isSystem === !0)) == null ? void 0 : P.reportVersionId) ?? ((O = S == null ? void 0 : S.reportVersions[0]) == null ? void 0 : O.reportVersionId) ?? null);
2506
+ var z, O;
2507
+ g === null && h(((z = S == null ? void 0 : S.reportVersions.find((ne) => ne.isSystem === !0)) == null ? void 0 : z.reportVersionId) ?? ((O = S == null ? void 0 : S.reportVersions[0]) == null ? void 0 : O.reportVersionId) ?? null);
2508
2508
  }, [S == null ? void 0 : S.reportVersions, g, h]), console.log(H), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2509
2509
  /* @__PURE__ */ n.jsx(Rr, { variant: "fullScreen", title: /* @__PURE__ */ n.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
2510
2510
  /* @__PURE__ */ n.jsx(Q, { variant: "h3", children: t }),
2511
2511
  s,
2512
2512
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
2513
2513
  /* @__PURE__ */ n.jsxs(Na, { size: "sm", value: g ?? void 0, onChange: F, children: [
2514
- /* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectSystem, children: S == null ? void 0 : S.reportVersions.filter((P) => P.isSystem === !0).map((P) => /* @__PURE__ */ n.jsx("option", { value: P.reportVersionId, children: P.name }, P.reportVersionId)) }),
2515
- /* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectYour, children: S == null ? void 0 : S.reportVersions.filter((P) => P.ownerId === j.personalNumber).map((P) => /* @__PURE__ */ n.jsx("option", { value: P.reportVersionId, children: P.name }, P.reportVersionId)) }),
2516
- /* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectSharedWithYou, children: S == null ? void 0 : S.reportVersions.filter((P) => P.isSystem === !1 && P.ownerId !== j.personalNumber).map((P) => /* @__PURE__ */ n.jsx("option", { value: P.reportVersionId, children: `${P.name} [${P.ownerId}]` }, P.reportVersionId)) })
2514
+ /* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectSystem, children: S == null ? void 0 : S.reportVersions.filter((z) => z.isSystem === !0).map((z) => /* @__PURE__ */ n.jsx("option", { value: z.reportVersionId, children: z.name }, z.reportVersionId)) }),
2515
+ /* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectYour, children: S == null ? void 0 : S.reportVersions.filter((z) => z.ownerId === j.personalNumber).map((z) => /* @__PURE__ */ n.jsx("option", { value: z.reportVersionId, children: z.name }, z.reportVersionId)) }),
2516
+ /* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectSharedWithYou, children: S == null ? void 0 : S.reportVersions.filter((z) => z.isSystem === !1 && z.ownerId !== j.personalNumber).map((z) => /* @__PURE__ */ n.jsx("option", { value: z.reportVersionId, children: `${z.name} [${z.ownerId}]` }, z.reportVersionId)) })
2517
2517
  ] }),
2518
- /* @__PURE__ */ n.jsx(Be, { icon: /* @__PURE__ */ n.jsx(Sa, {}), onClick: $, disabled: g === null || (N == null ? void 0 : N.isSystem) || !z, children: m.save }),
2518
+ /* @__PURE__ */ n.jsx(Be, { icon: /* @__PURE__ */ n.jsx(Sa, {}), onClick: $, disabled: g === null || (N == null ? void 0 : N.isSystem) || !P, children: m.save }),
2519
2519
  /* @__PURE__ */ n.jsx(Be, { icon: /* @__PURE__ */ n.jsx(Ca, {}), onClick: C, className: "flex-shrink-0", children: m.saveAs }),
2520
2520
  /* @__PURE__ */ n.jsxs(ft, { toggle: /* @__PURE__ */ n.jsx(mt, { as: Dt }), children: [
2521
2521
  /* @__PURE__ */ n.jsx(Ce, { onClick: te, children: m.revertChanges }),
2522
- /* @__PURE__ */ n.jsx(Ce, { onClick: () => y(!0), disabled: !z || (N == null ? void 0 : N.isSystem), children: m.share }),
2523
- z && !(N != null && N.isSystem) ? /* @__PURE__ */ n.jsx(Ce, { color: "danger", onClick: ee, children: m.delete }) : null,
2522
+ /* @__PURE__ */ n.jsx(Ce, { onClick: () => y(!0), disabled: !P || (N == null ? void 0 : N.isSystem), children: m.share }),
2523
+ P && !(N != null && N.isSystem) ? /* @__PURE__ */ n.jsx(Ce, { color: "danger", onClick: ee, children: m.delete }) : null,
2524
2524
  J && !(N != null && N.isSystem) ? /* @__PURE__ */ n.jsx(Ce, { color: "danger", onClick: se, children: m.detach }) : null
2525
2525
  ] })
2526
2526
  ] })
@@ -2649,9 +2649,9 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2649
2649
  var i;
2650
2650
  const { ProjectIconComponent: a } = Y(fe), { isMobile: o } = qt();
2651
2651
  return o ? /* @__PURE__ */ n.jsx(ft, { toggle: /* @__PURE__ */ n.jsx(mt, { as: Dt, text: ((i = e.find((l) => l.id === t)) == null ? void 0 : i.name) ?? "", icon: /* @__PURE__ */ n.jsx(a, { icon: "chevron-down" }) }), ...s, children: e.map((l) => /* @__PURE__ */ n.jsx(Ce, { onClick: () => r(l.id), children: l.name }, l.id)) }) : /* @__PURE__ */ n.jsx(Ri, { activeTab: t, onSelect: (l) => r(l), ...s, children: e.map((l) => /* @__PURE__ */ n.jsx(Vi, { eventKey: l.id, children: l.name }, l.id)) });
2652
- }, Pi = "_selection_1dtmm_1", zi = "_selectionBg_1dtmm_10", Wi = "_selectionItemsContainer_1dtmm_18", Hi = "_selectionItems_1dtmm_18", Ft = {
2653
- selection: Pi,
2654
- selectionBg: zi,
2652
+ }, zi = "_selection_1dtmm_1", Pi = "_selectionBg_1dtmm_10", Wi = "_selectionItemsContainer_1dtmm_18", Hi = "_selectionItems_1dtmm_18", Ft = {
2653
+ selection: zi,
2654
+ selectionBg: Pi,
2655
2655
  selectionItemsContainer: Wi,
2656
2656
  selectionItems: Hi
2657
2657
  }, Ui = ({ icon: e, setIcon: t, IconComponent: r, IconTypeArray: s }) => {
@@ -2681,38 +2681,38 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2681
2681
  /* @__PURE__ */ n.jsx("td", { className: "align-middle", children: /* @__PURE__ */ n.jsx(Ui, { icon: a, setIcon: o, IconComponent: r, IconTypeArray: s }) }),
2682
2682
  /* @__PURE__ */ n.jsx("td", { className: "align-middle", children: c && /* @__PURE__ */ n.jsx(X, { onClick: d, children: /* @__PURE__ */ n.jsx(r, { icon: "save" }) }) })
2683
2683
  ] });
2684
- }, Yi = ({ shortcutLink: e, setShortcutLink: t, IconComponent: r, IconTypeArray: s }) => {
2685
- const a = no(), o = D(() => {
2684
+ }, Yi = ({ shortcutLink: e, setShortcutLink: t, IconComponent: r, IconTypeArray: s, pageTitlePrefix: a }) => {
2685
+ const o = no(), i = D(() => {
2686
2686
  t(null);
2687
- }, [t]), i = D(() => {
2687
+ }, [t]), l = D(() => {
2688
2688
  t({
2689
- pathname: a.pathname,
2690
- search: a.search,
2691
- name: document.title.replace("undefined | ", ""),
2689
+ pathname: o.pathname,
2690
+ search: o.search,
2691
+ name: a ? document.title.replace(a, "") : document.title,
2692
2692
  icon: "starOutline"
2693
2693
  });
2694
- }, [a.pathname, a.search, t]);
2694
+ }, [o.pathname, o.search, a, t]);
2695
2695
  return /* @__PURE__ */ n.jsx("tr", { className: "mb-3", children: e === null ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2696
- /* @__PURE__ */ n.jsx("td", { className: "align-middle", children: /* @__PURE__ */ n.jsx(X, { onClick: i, children: /* @__PURE__ */ n.jsx(r, { icon: "save" }) }) }),
2696
+ /* @__PURE__ */ n.jsx("td", { className: "align-middle", children: /* @__PURE__ */ n.jsx(X, { onClick: l, children: /* @__PURE__ */ n.jsx(r, { icon: "save" }) }) }),
2697
2697
  /* @__PURE__ */ n.jsx("td", {}),
2698
2698
  /* @__PURE__ */ n.jsx("td", {}),
2699
2699
  /* @__PURE__ */ n.jsx("td", {}),
2700
2700
  /* @__PURE__ */ n.jsx("td", {})
2701
2701
  ] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2702
- /* @__PURE__ */ n.jsx("td", { className: "align-middle", children: /* @__PURE__ */ n.jsx(X, { onClick: o, color: "danger", children: /* @__PURE__ */ n.jsx(r, { icon: "delete" }) }) }),
2702
+ /* @__PURE__ */ n.jsx("td", { className: "align-middle", children: /* @__PURE__ */ n.jsx(X, { onClick: i, color: "danger", children: /* @__PURE__ */ n.jsx(r, { icon: "delete" }) }) }),
2703
2703
  /* @__PURE__ */ n.jsx("td", { className: "align-middle", children: e.search === void 0 || e.search.trim() === "" ? e.pathname : /* @__PURE__ */ n.jsx(ht, { placement: "bottom", text: e.pathname + e.search, children: /* @__PURE__ */ n.jsxs("span", { children: [
2704
2704
  e.pathname,
2705
2705
  "?..."
2706
2706
  ] }) }) }),
2707
2707
  /* @__PURE__ */ n.jsx(Gi, { shortcutLink: e, setShortcutLink: t, IconComponent: r, IconTypeArray: s })
2708
2708
  ] }) });
2709
- }, vu = ({ isOpen: e, closeModal: t, IconComponent: r, IconTypeArray: s }) => {
2710
- const { texts: a } = Y(fe), { shortcutLinks: o, setShortcutLinks: i } = Ls(), l = D((c) => (d) => i((u) => {
2711
- const m = [...u];
2712
- return m[c] = d, m;
2713
- }), [i]);
2709
+ }, vu = ({ isOpen: e, closeModal: t, IconComponent: r, IconTypeArray: s, pageTitlePrefix: a }) => {
2710
+ const { texts: o } = Y(fe), { shortcutLinks: i, setShortcutLinks: l } = Ls(), c = D((d) => (u) => l((m) => {
2711
+ const v = [...m];
2712
+ return v[d] = u, v;
2713
+ }), [l]);
2714
2714
  return /* @__PURE__ */ n.jsxs($e, { show: e, onHide: t, size: "lg", children: [
2715
- /* @__PURE__ */ n.jsx($e.Header, { closeButton: !0, children: /* @__PURE__ */ n.jsx($e.Title, { children: a.shortcutLinks.shortcutLinksSetting }) }),
2715
+ /* @__PURE__ */ n.jsx($e.Header, { closeButton: !0, children: /* @__PURE__ */ n.jsx($e.Title, { children: o.shortcutLinks.shortcutLinksSetting }) }),
2716
2716
  /* @__PURE__ */ n.jsx($e.Body, { children: /* @__PURE__ */ n.jsxs(Ro, { children: [
2717
2717
  /* @__PURE__ */ n.jsx("thead", { className: "fw-bold", children: /* @__PURE__ */ n.jsxs("tr", { children: [
2718
2718
  /* @__PURE__ */ n.jsx("th", {}),
@@ -2721,7 +2721,7 @@ const nu = ({ InputContainer: e = at, value: t, onChange: r, debounceMs: s, labe
2721
2721
  /* @__PURE__ */ n.jsx("th", { children: "Ikona" }),
2722
2722
  /* @__PURE__ */ n.jsx("th", {})
2723
2723
  ] }) }),
2724
- /* @__PURE__ */ n.jsx("tbody", { children: [...Array(Fn).keys()].map((c) => /* @__PURE__ */ n.jsx(Yi, { shortcutLink: o[c], setShortcutLink: l(c), IconComponent: r, IconTypeArray: s })) })
2724
+ /* @__PURE__ */ n.jsx("tbody", { children: [...Array(Fn).keys()].map((d) => /* @__PURE__ */ n.jsx(Yi, { shortcutLink: i[d], setShortcutLink: c(d), IconComponent: r, IconTypeArray: s, pageTitlePrefix: a })) })
2725
2725
  ] }) })
2726
2726
  ] });
2727
2727
  }, Ki = "_linkButton_d49dt_1", qi = {
@@ -2974,7 +2974,7 @@ const Sl = "_wrapper_1kmlk_1", Cl = "_open_1kmlk_9", kl = "_dropdown_1kmlk_13",
2974
2974
  actionsDropdown: Vl
2975
2975
  }, Zt = ({ show: e, onCancel: t, items: r, currentSelection: s, onSelectionChange: a, onSearchQueryChange: o, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: d = !1, autoHideSearch: u = !1, allItemsLength: m, disabled: v, isLoading: f = !1, inputRef: p, archiveColumn: x = "archive", addNewOptionPath: g, refreshOptions: h }) => {
2976
2976
  var lt;
2977
- const { texts: { customSelect: w } } = Y(fe), y = Z(null), b = Z(null), j = Z(null), S = Z(null), E = Z(null), [I, A] = L(""), [M] = On(I, 500), [, F] = L(!1), { copyToClipboard: V } = so(), N = (lt = p.current) == null ? void 0 : lt.getBoundingClientRect(), K = (N == null ? void 0 : N.x) ?? 0, $ = ((N == null ? void 0 : N.x) ?? 0) + ((N == null ? void 0 : N.width) ?? 0), C = (N == null ? void 0 : N.y) ?? 0, T = ((N == null ? void 0 : N.y) ?? 0) + ((N == null ? void 0 : N.height) ?? 0), U = (N == null ? void 0 : N.width) ?? 0, H = (N == null ? void 0 : N.height) ?? 0, te = 5, z = G(() => K ? K > window.innerWidth / 2 : !1, [K]), J = G(() => C ? C > window.innerHeight / 2 : !1, [C]);
2977
+ const { texts: { customSelect: w } } = Y(fe), y = Z(null), b = Z(null), j = Z(null), S = Z(null), E = Z(null), [I, A] = L(""), [M] = On(I, 500), [, F] = L(!1), { copyToClipboard: V } = so(), N = (lt = p.current) == null ? void 0 : lt.getBoundingClientRect(), K = (N == null ? void 0 : N.x) ?? 0, $ = ((N == null ? void 0 : N.x) ?? 0) + ((N == null ? void 0 : N.width) ?? 0), C = (N == null ? void 0 : N.y) ?? 0, T = ((N == null ? void 0 : N.y) ?? 0) + ((N == null ? void 0 : N.height) ?? 0), U = (N == null ? void 0 : N.width) ?? 0, H = (N == null ? void 0 : N.height) ?? 0, te = 5, P = G(() => K ? K > window.innerWidth / 2 : !1, [K]), J = G(() => C ? C > window.innerHeight / 2 : !1, [C]);
2978
2978
  B(() => {
2979
2979
  var k;
2980
2980
  e && ((k = j.current) == null || k.focus());
@@ -2987,7 +2987,7 @@ const Sl = "_wrapper_1kmlk_1", Cl = "_open_1kmlk_9", kl = "_dropdown_1kmlk_13",
2987
2987
  B(() => {
2988
2988
  e && r.length > 0 ? se(0) : se(null);
2989
2989
  }, [r, e]);
2990
- const P = G(() => ee !== null ? r.at(ee) ?? null : null, [ee, r]), O = D((k, R) => {
2990
+ const z = G(() => ee !== null ? r.at(ee) ?? null : null, [ee, r]), O = D((k, R) => {
2991
2991
  var ie, ve;
2992
2992
  const W = document.getElementById(`item-${k}`);
2993
2993
  if (W) {
@@ -3014,7 +3014,7 @@ const Sl = "_wrapper_1kmlk_1", Cl = "_open_1kmlk_9", kl = "_dropdown_1kmlk_13",
3014
3014
  k.stopPropagation(), k.preventDefault(), t();
3015
3015
  break;
3016
3016
  case "Enter":
3017
- k.stopPropagation(), k.preventDefault(), v || a(P);
3017
+ k.stopPropagation(), k.preventDefault(), v || a(z);
3018
3018
  break;
3019
3019
  case "ArrowUp":
3020
3020
  k.stopPropagation(), k.preventDefault(), ne(-1);
@@ -3023,7 +3023,7 @@ const Sl = "_wrapper_1kmlk_1", Cl = "_open_1kmlk_9", kl = "_dropdown_1kmlk_13",
3023
3023
  k.stopPropagation(), k.preventDefault(), ne(1);
3024
3024
  break;
3025
3025
  }
3026
- }, [t, e, ne, P, v, a]), be = D(() => {
3026
+ }, [t, e, ne, z, v, a]), be = D(() => {
3027
3027
  F((k) => !k);
3028
3028
  }, []);
3029
3029
  B(() => (window.addEventListener("scroll", be), () => {
@@ -3031,14 +3031,14 @@ const Sl = "_wrapper_1kmlk_1", Cl = "_open_1kmlk_9", kl = "_dropdown_1kmlk_13",
3031
3031
  }), [be]), B(() => (window.addEventListener("resize", be), () => {
3032
3032
  window.removeEventListener("resize", be);
3033
3033
  }), [be]), Ur(ae), Hr([y, b, E], t);
3034
- const Te = l ?? (c && c.length > 0 ? 250 : 0), ze = (c == null ? void 0 : c.reduce((k, R) => k + (R.width ?? 100), 0)) ?? 0, re = `calc(max(${U}px, ${Te}px + ${ze}px))`, _e = G(() => (s && e && !v) ?? !1, [s, e, v]), Ne = G(() => (s && e) ?? !1, [s, e]), Je = G(() => e && (Ne || g !== void 0 || h !== void 0), [e, Ne, g, h]);
3034
+ const Te = l ?? (c && c.length > 0 ? 250 : 0), Pe = (c == null ? void 0 : c.reduce((k, R) => k + (R.width ?? 100), 0)) ?? 0, re = `calc(max(${U}px, ${Te}px + ${Pe}px))`, _e = G(() => (s && e && !v) ?? !1, [s, e, v]), Ne = G(() => (s && e) ?? !1, [s, e]), Je = G(() => e && (Ne || g !== void 0 || h !== void 0), [e, Ne, g, h]);
3035
3035
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3036
3036
  /* @__PURE__ */ n.jsx(Bs, { show: e, onClick: t }),
3037
3037
  /* @__PURE__ */ n.jsxs("div", { className: _("luminus-dropdown-picker-actions", we.actionButtonsContainer, {
3038
- [we.reverse]: z
3038
+ [we.reverse]: P
3039
3039
  }), style: {
3040
3040
  top: `calc(${C}px + ${H / 2}px - 12px)`,
3041
- left: z ? _e && Ne ? `calc(${K}px - 24px - 8px - 24px - 4px)` : `calc(${K}px - 24px - 8px)` : `calc(${$}px + 8px)`
3041
+ left: P ? _e && Ne ? `calc(${K}px - 24px - 8px - 24px - 4px)` : `calc(${K}px - 24px - 8px)` : `calc(${$}px + 8px)`
3042
3042
  }, children: [
3043
3043
  _e && /* @__PURE__ */ n.jsx("button", { ref: b, type: "button", className: _("luminus-dropdown-picker-clear-button", we.actionButton), onClick: () => !v && a(null), children: /* @__PURE__ */ n.jsx(Q, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ n.jsx(Br, { size: 16 }) }) }),
3044
3044
  Je ? /* @__PURE__ */ n.jsx("div", { ref: E, children: /* @__PURE__ */ n.jsxs(ft, { toggle: /* @__PURE__ */ n.jsx(mt, { as: Dt, className: _("luminus-dropdown-picker-actions-dropdown", we.actionsDropdown), icon: /* @__PURE__ */ n.jsx(Q, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ n.jsx(Da, { size: 16 }) }) }), children: [
@@ -3059,8 +3059,8 @@ const Sl = "_wrapper_1kmlk_1", Cl = "_open_1kmlk_9", kl = "_dropdown_1kmlk_13",
3059
3059
  [we.open]: e
3060
3060
  }), style: {
3061
3061
  top: J ? `calc(${C}px - 50vh - 8px)` : `calc(${T}px + 8px)`,
3062
- left: z ? `calc(${$}px - ${re})` : K,
3063
- right: z ? `${$}px` : `calc(${K}px + ${re})`,
3062
+ left: P ? `calc(${$}px - ${re})` : K,
3063
+ right: P ? `${$}px` : `calc(${K}px + ${re})`,
3064
3064
  width: re,
3065
3065
  justifyContent: J ? "flex-end" : "flex-start"
3066
3066
  }, children: /* @__PURE__ */ n.jsx("div", { ref: y, className: _("shadow rounded", we.dropdown), children: !v && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -3094,11 +3094,11 @@ const Sl = "_wrapper_1kmlk_1", Cl = "_open_1kmlk_9", kl = "_dropdown_1kmlk_13",
3094
3094
  ] })
3095
3095
  ] }) }) })
3096
3096
  ] });
3097
- }, Pl = "_input-group_1lkfy_1", zl = "_input-group-text_1lkfy_5", Wl = "_left_1lkfy_9", Hl = "_right_1lkfy_13", Ul = "_input_1lkfy_1", Gl = "_submit-button_1lkfy_20", Ze = {
3097
+ }, zl = "_input-group_1lkfy_1", Pl = "_input-group-text_1lkfy_5", Wl = "_left_1lkfy_9", Hl = "_right_1lkfy_13", Ul = "_input_1lkfy_1", Gl = "_submit-button_1lkfy_20", Ze = {
3098
3098
  "input-group": "_input-group_1lkfy_1",
3099
- inputGroup: Pl,
3099
+ inputGroup: zl,
3100
3100
  "input-group-text": "_input-group-text_1lkfy_5",
3101
- inputGroupText: zl,
3101
+ inputGroupText: Pl,
3102
3102
  left: Wl,
3103
3103
  right: Hl,
3104
3104
  input: Ul,
@@ -3384,7 +3384,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3384
3384
  /* @__PURE__ */ n.jsxs("div", { className: _("rounded", De.photoActions), children: [
3385
3385
  i && /* @__PURE__ */ n.jsx(Ss, { accept: ".jpg,.jpeg,.png", onUpload: (y) => {
3386
3386
  y.length > 0 && i(Array.from(y));
3387
- }, icon: /* @__PURE__ */ n.jsx(Pr, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: a ?? null }),
3387
+ }, icon: /* @__PURE__ */ n.jsx(zr, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: a ?? null }),
3388
3388
  x && (l == null ? void 0 : l.map(({ label: y, onClick: b, ...j }, S) => /* @__PURE__ */ n.jsx(
3389
3389
  Be,
3390
3390
  {
@@ -3422,7 +3422,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3422
3422
  v(g > -1 ? g : 0);
3423
3423
  }, [e]), !f && t && d ? /* @__PURE__ */ n.jsx(Ss, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
3424
3424
  g.length > 0 && t(Array.from(g));
3425
- }, icon: /* @__PURE__ */ n.jsx(Pr, { style: { fontSize: 18 } }), multiple: !0, children: r ?? null }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3425
+ }, icon: /* @__PURE__ */ n.jsx(zr, { style: { fontSize: 18 } }), multiple: !0, children: r ?? null }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3426
3426
  f ? /* @__PURE__ */ n.jsxs("div", { role: "button", className: "w-100 position-relative", onClick: () => x(!0), children: [
3427
3427
  /* @__PURE__ */ n.jsx(c, { src: f.smSrc, alt: f.alt, className: "rounded w-100", baseUrl: o, customToken: i, placeholder: l }),
3428
3428
  e.length > 1 && /* @__PURE__ */ n.jsx("div", { className: "position-absolute rounded p-1", style: {
@@ -3438,7 +3438,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3438
3438
  }, Nu = ({ children: e }) => {
3439
3439
  var c, d, u;
3440
3440
  const { useMsal: t, msalScopes: r, msalExtraScopes: s } = Y(Aa), { isAuthenticated: a } = Ma(), { userLoginState: o } = Y(Yt), i = o.state === Ba.LOGGING_IN, l = o.user && ((c = o.user) == null ? void 0 : c.permissions) && ((u = (d = o.user) == null ? void 0 : d.permissions) == null ? void 0 : u.length) > 0;
3441
- return t ? /* @__PURE__ */ n.jsx(Xa, { interactionType: Za.Redirect, authenticationRequest: { scopes: r, extraScopesToConsent: s }, children: i || !a() ? /* @__PURE__ */ n.jsx(Pn, {}) : o.user ? l ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e }) : /* @__PURE__ */ n.jsx(Et, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ n.jsx(Et, { to: "/no-user-login", replace: !0 }) }) : i ? /* @__PURE__ */ n.jsx(Pn, {}) : !a() || !o.user ? /* @__PURE__ */ n.jsx(Et, { to: "/login", replace: !0 }) : l ? e : /* @__PURE__ */ n.jsx(Et, { to: "/user-not-permitted", replace: !0 });
3441
+ return t ? /* @__PURE__ */ n.jsx(Xa, { interactionType: Za.Redirect, authenticationRequest: { scopes: r, extraScopesToConsent: s }, children: i || !a() ? /* @__PURE__ */ n.jsx(zn, {}) : o.user ? l ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e }) : /* @__PURE__ */ n.jsx(Et, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ n.jsx(Et, { to: "/no-user-login", replace: !0 }) }) : i ? /* @__PURE__ */ n.jsx(zn, {}) : !a() || !o.user ? /* @__PURE__ */ n.jsx(Et, { to: "/login", replace: !0 }) : l ? e : /* @__PURE__ */ n.jsx(Et, { to: "/user-not-permitted", replace: !0 });
3442
3442
  }, Ln = (e) => {
3443
3443
  const { variant: t, children: r, className: s, size: a = "md", typographyVariant: o = a === "sm" ? "body2" : "body", ...i } = { ...e };
3444
3444
  return /* @__PURE__ */ n.jsx(jo, { variant: t, className: `text-center ${a === "sm" ? "p-1" : a === "md" ? "p-3" : "p-4"} bg-${t} bg-opacity-10 border-none ${s ?? ""}`, ...i, children: /* @__PURE__ */ n.jsx(Q, { variant: o, children: r }) });
@@ -3482,11 +3482,11 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3482
3482
  }, children: /* @__PURE__ */ n.jsxs(Q, { variant: "caption", className: "w-100 text-end", children: [
3483
3483
  "verze ",
3484
3484
  e
3485
- ] }) }), Vc = "_submit-container_j8pmc_1", Pc = "_spacer_j8pmc_14", hr = {
3485
+ ] }) }), Vc = "_submit-container_j8pmc_1", zc = "_spacer_j8pmc_14", hr = {
3486
3486
  "submit-container": "_submit-container_j8pmc_1",
3487
3487
  submitContainer: Vc,
3488
- spacer: Pc
3489
- }, zc = ({ children: e, noSpacer: t = !1 }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3488
+ spacer: zc
3489
+ }, Pc = ({ children: e, noSpacer: t = !1 }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3490
3490
  !t && /* @__PURE__ */ n.jsx("div", { className: hr.spacer }),
3491
3491
  /* @__PURE__ */ n.jsx("div", { className: _("luminus-floating-action-container shadow", hr.submitContainer), children: e })
3492
3492
  ] }), Wc = "_timeline_g1754_1", Hc = "_step-container_g1754_1", Uc = "_step-date_g1754_1", Gc = "_step-content_g1754_4", Yc = "_content-header_g1754_8", Kc = "_content-text_g1754_11", qc = "_step-icon_g1754_14", tt = {
@@ -3619,12 +3619,12 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3619
3619
  i === "D" ? r((l) => ({ from: l.from, to: l.from })) : i === "M" ? r((l) => {
3620
3620
  if (l.from === null)
3621
3621
  return l;
3622
- const c = Pa(l.from);
3622
+ const c = za(l.from);
3623
3623
  return At(c);
3624
3624
  }) : i === "Y" && r((l) => {
3625
3625
  if (l.from === null)
3626
3626
  return l;
3627
- const c = za(new Date(l.from).getFullYear());
3627
+ const c = Pa(new Date(l.from).getFullYear());
3628
3628
  return bt(c);
3629
3629
  }), t(i);
3630
3630
  }, [r, t]);
@@ -3658,7 +3658,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3658
3658
  const [o, i] = Gr(t, xn(e, { representation: "date" })), l = o ? Ct(o) : e, c = D((d) => {
3659
3659
  i(xn(d, { representation: "date" }));
3660
3660
  }, [i]);
3661
- return /* @__PURE__ */ n.jsx(zo, { year: l, onChangeYear: c, optionMin: r, optionMax: s, className: a });
3661
+ return /* @__PURE__ */ n.jsx(Po, { year: l, onChangeYear: c, optionMin: r, optionMax: s, className: a });
3662
3662
  }, $u = ({ data: e, showLegend: t = !1, legendPosition: r = "left", onClick: s }) => {
3663
3663
  const { chartColorPalette: a } = Y(fe);
3664
3664
  return /* @__PURE__ */ n.jsx(Ha, { data: e, margin: {
@@ -3699,7 +3699,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3699
3699
  ] }) }),
3700
3700
  /* @__PURE__ */ n.jsx("td", { className: "", children: /* @__PURE__ */ n.jsx(Q, { variant: "body", children: s.errors }) })
3701
3701
  ] }, s.name)) }) }) });
3702
- }, Ps = (e) => {
3702
+ }, zs = (e) => {
3703
3703
  const t = {};
3704
3704
  return Object.keys(e).forEach((r) => {
3705
3705
  if (e[r].value === !0) {
@@ -3749,13 +3749,13 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3749
3749
  stickyBottom: gd
3750
3750
  }, pd = "_input_pxkkh_1", Me = {
3751
3751
  input: pd
3752
- }, zs = ({ type: e, value: t, field: r, isPrimary: s, isReadonly: a, primaryEditable: o = !1, valuesForSelect: i, addValueToValuesForSelect: l, onChangeHandler: c, hideClearIcon: d, clearValue: u, customPickers: m }) => {
3752
+ }, Ps = ({ type: e, value: t, field: r, isPrimary: s, isReadonly: a, primaryEditable: o = !1, valuesForSelect: i, addValueToValuesForSelect: l, onChangeHandler: c, hideClearIcon: d, clearValue: u, customPickers: m }) => {
3753
3753
  var v;
3754
3754
  switch (e) {
3755
3755
  case "NUM":
3756
- return i && i.length > 0 ? /* @__PURE__ */ n.jsx(zt, { withoutLabel: !0, InputContainer: Oe, className: Me.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, f === null ? null : Number(f)), options: i, disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u, dropdownWidth: 200 }) : /* @__PURE__ */ n.jsx(st, { withoutLabel: !0, InputContainer: Oe, className: Me.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (f) => c(r, f === null ? null : Number(f)), disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u });
3756
+ return i && i.length > 0 ? /* @__PURE__ */ n.jsx(Pt, { withoutLabel: !0, InputContainer: Oe, className: Me.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, f === null ? null : Number(f)), options: i, disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u, dropdownWidth: 200 }) : /* @__PURE__ */ n.jsx(st, { withoutLabel: !0, InputContainer: Oe, className: Me.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (f) => c(r, f === null ? null : Number(f)), disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u });
3757
3757
  case "STR":
3758
- return i && i.length > 0 ? /* @__PURE__ */ n.jsx(zt, { withoutLabel: !0, InputContainer: Oe, className: Me.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), options: i, disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u, dropdownWidth: 200 }) : /* @__PURE__ */ n.jsx(st, { withoutLabel: !0, InputContainer: Oe, className: _(Me.input, Me.longer), size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u });
3758
+ return i && i.length > 0 ? /* @__PURE__ */ n.jsx(Pt, { withoutLabel: !0, InputContainer: Oe, className: Me.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), options: i, disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u, dropdownWidth: 200 }) : /* @__PURE__ */ n.jsx(st, { withoutLabel: !0, InputContainer: Oe, className: _(Me.input, Me.longer), size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u });
3759
3759
  case "BIT":
3760
3760
  return /* @__PURE__ */ n.jsx(qo, { InputContainer: Oe, className: Me.input, value: t === !0, onChange: (f) => c(r, f), disabled: a ? !0 : s ? !o : !1 });
3761
3761
  case "DT":
@@ -3796,10 +3796,10 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3796
3796
  return B(() => {
3797
3797
  d(s);
3798
3798
  }, [s]), /* @__PURE__ */ n.jsxs("tr", { className: _("table-row", me.tableRow), children: [
3799
- /* @__PURE__ */ n.jsx("td", { className: _("table-cell", me.tableCell, me.stickyFirst), children: v() && /* @__PURE__ */ n.jsx(X, { color: "success", onClick: () => a(Ps(c)), children: /* @__PURE__ */ n.jsx(l, { icon: "check" }) }) }),
3799
+ /* @__PURE__ */ n.jsx("td", { className: _("table-cell", me.tableCell, me.stickyFirst), children: v() && /* @__PURE__ */ n.jsx(X, { color: "success", onClick: () => a(zs(c)), children: /* @__PURE__ */ n.jsx(l, { icon: "check" }) }) }),
3800
3800
  t.map((f) => {
3801
3801
  var p, x;
3802
- return /* @__PURE__ */ n.jsx("td", { className: _("table-cell", me.tableCell), children: /* @__PURE__ */ n.jsx(zs, { type: f.type, value: (p = c[f.field ?? ""]) == null ? void 0 : p.value, field: f.field, isReadonly: f.readOnly, isPrimary: e.primaryKey === f.field, valuesForSelect: f.valuesForSelect, addValueToValuesForSelect: (g) => {
3802
+ return /* @__PURE__ */ n.jsx("td", { className: _("table-cell", me.tableCell), children: /* @__PURE__ */ n.jsx(Ps, { type: f.type, value: (p = c[f.field ?? ""]) == null ? void 0 : p.value, field: f.field, isReadonly: f.readOnly, isPrimary: e.primaryKey === f.field, valuesForSelect: f.valuesForSelect, addValueToValuesForSelect: (g) => {
3803
3803
  r(t.map((h) => h.field === f.field ? { ...h, valuesForSelect: [...h.valuesForSelect ?? [], g] } : h));
3804
3804
  }, onChangeHandler: u, hideClearIcon: !m(c[f.field ?? ""]), clearValue: (x = c[f.field ?? ""].defaultValue) == null ? void 0 : x.toString(), customPickers: i }) }, `${e.id}-${f.field}`);
3805
3805
  }),
@@ -3827,10 +3827,10 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3827
3827
  }, []);
3828
3828
  return i ? /* @__PURE__ */ n.jsxs("tr", { className: "sticky-bottom shadow", children: [
3829
3829
  /* @__PURE__ */ n.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ n.jsx(X, { color: "success", onClick: async () => {
3830
- const u = Ps(i);
3830
+ const u = zs(i);
3831
3831
  u && await s(u) && l(null);
3832
3832
  }, children: /* @__PURE__ */ n.jsx(o, { icon: "check" }) }) }),
3833
- t.map((u) => /* @__PURE__ */ n.jsx("td", { children: /* @__PURE__ */ n.jsx(zs, { type: u.type, value: i[u.field ?? ""].value, field: u.field, isReadonly: u.readOnly, isPrimary: e.primaryKey === u.field, valuesForSelect: u.valuesForSelect, addValueToValuesForSelect: (m) => {
3833
+ t.map((u) => /* @__PURE__ */ n.jsx("td", { children: /* @__PURE__ */ n.jsx(Ps, { type: u.type, value: i[u.field ?? ""].value, field: u.field, isReadonly: u.readOnly, isPrimary: e.primaryKey === u.field, valuesForSelect: u.valuesForSelect, addValueToValuesForSelect: (m) => {
3834
3834
  r(t.map((v) => v.field === u.field ? { ...v, valuesForSelect: [...v.valuesForSelect ?? [], m] } : v));
3835
3835
  }, onChangeHandler: d, primaryEditable: !0, customPickers: a }) }, `${e.id}-${u.field}`)),
3836
3836
  /* @__PURE__ */ n.jsx("td", { className: "sticky-last", children: /* @__PURE__ */ n.jsx(X, { color: "danger", onClick: () => l(null), children: /* @__PURE__ */ n.jsx(o, { icon: "cancel" }) }) })
@@ -3917,7 +3917,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3917
3917
  ] }),
3918
3918
  /* @__PURE__ */ n.jsxs("tr", { className: _("table-row filters-row", me.tableRow, me.filtersRow), children: [
3919
3919
  /* @__PURE__ */ n.jsx("th", { className: _("table-head", me.tableHead, me.actionColumn, me.stickyFirst) }),
3920
- f.map((x) => /* @__PURE__ */ n.jsx("th", { className: _("table-head", me.tableHead), children: x.valuesForSelect && x.valuesForSelect.length > 0 || x.type === "BIT" ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(zt, { InputContainer: Oe, withoutLabel: !0, size: "sm", value: o[x.field] ?? "", onChange: (g) => i(x.field, (g == null ? void 0 : g.toString()) ?? null), options: x.type === "BIT" ? [
3920
+ f.map((x) => /* @__PURE__ */ n.jsx("th", { className: _("table-head", me.tableHead), children: x.valuesForSelect && x.valuesForSelect.length > 0 || x.type === "BIT" ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(Pt, { InputContainer: Oe, withoutLabel: !0, size: "sm", value: o[x.field] ?? "", onChange: (g) => i(x.field, (g == null ? void 0 : g.toString()) ?? null), options: x.type === "BIT" ? [
3921
3921
  { id: 1, name: v.yes },
3922
3922
  { id: 0, name: v.no }
3923
3923
  ] : x.valuesForSelect ?? [], isNumber: x.type === "BIT", showClearIcon: !0, dropdownWidth: 200 }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(st, { InputContainer: Oe, withoutLabel: !0, size: "sm", type: x.type === "NUM" ? "number" : x.type === "DT" ? "date" : "text", value: o[x.field] ?? "", onChange: (g) => i(x.field, (g == null ? void 0 : g.toString()) ?? null) }) }) }, `${e.id}-${x.field}`)),
@@ -3929,7 +3929,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3929
3929
  /* @__PURE__ */ n.jsx(vd, { schema: e, columns: f, setColumns: p, onCreate: a, customPickers: m })
3930
3930
  ] })
3931
3931
  ] });
3932
- }, Cd = ({ master: e, onChange: t, options: r, label: s }) => /* @__PURE__ */ n.jsx("div", { style: { minWidth: "200px" }, children: /* @__PURE__ */ n.jsx(zt, { label: s, value: e, onChange: (a) => t(a ? a.toString() : null), options: r, size: "sm" }) }), kd = "_pagination_gujwe_1", jr = {
3932
+ }, Cd = ({ master: e, onChange: t, options: r, label: s }) => /* @__PURE__ */ n.jsx("div", { style: { minWidth: "200px" }, children: /* @__PURE__ */ n.jsx(Pt, { label: s, value: e, onChange: (a) => t(a ? a.toString() : null), options: r, size: "sm" }) }), kd = "_pagination_gujwe_1", jr = {
3933
3933
  pagination: kd
3934
3934
  }, yr = {
3935
3935
  appDetail: "/settings/:id"
@@ -3942,7 +3942,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3942
3942
  apiExportGet: "/dynamicForms/export"
3943
3943
  }, Tu = ({ id: e, page: t, setPage: r, filters: s, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = yr.appDetail } = yr, apiUrls: { apiSchemaGet: d = nt.apiSchemaGet, apiDataGet: u = nt.apiDataGet, apiItemPost: m = nt.apiItemPost, apiItemDelete: v = nt.apiItemDelete, apiItemCreate: f = nt.apiItemCreate, apiExportGet: p = nt.apiExportGet } = nt, customPickers: x }) => {
3944
3944
  var le, ce, ke, Ee, Fe, ct;
3945
- const { texts: { dynamicForms: g }, ProjectIconComponent: h } = Y(fe), w = it(), { startLoading: y, stopLoading: b } = Y(Kt), [j, S] = L(null), [E, I] = L(null), [A, M] = L(null), [F, V] = L(null), [N, K] = L(!1), { addNotification: $ } = Lr(), [C, T] = L([]), { confirm: U } = Gt(), H = 20, te = H + 1, z = F ? Math.ceil(F.length / H) : 1, J = t ? t > 1 : !1, ee = t ? t < z : !1, se = t ? (t - 1) * H : 0, P = t ? t * H : H, O = G(() => F ? F.length > te : !1, [F, te]), ne = G(() => O ? (F == null ? void 0 : F.slice(se, P)) ?? null : F ?? null, [O, F, se, P]), [ae, be] = L(null);
3945
+ const { texts: { dynamicForms: g }, ProjectIconComponent: h } = Y(fe), w = it(), { startLoading: y, stopLoading: b } = Y(Kt), [j, S] = L(null), [E, I] = L(null), [A, M] = L(null), [F, V] = L(null), [N, K] = L(!1), { addNotification: $ } = Lr(), [C, T] = L([]), { confirm: U } = Gt(), H = 20, te = H + 1, P = F ? Math.ceil(F.length / H) : 1, J = t ? t > 1 : !1, ee = t ? t < P : !1, se = t ? (t - 1) * H : 0, z = t ? t * H : H, O = G(() => F ? F.length > te : !1, [F, te]), ne = G(() => O ? (F == null ? void 0 : F.slice(se, z)) ?? null : F ?? null, [O, F, se, z]), [ae, be] = L(null);
3946
3946
  B(() => {
3947
3947
  S(null), I(null), K(!1), T([]), be(null);
3948
3948
  }, [e]);
@@ -3950,7 +3950,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3950
3950
  y("dynamicFormSchema"), await w.get(`${d}?id=${e}`).then(({ data: q }) => {
3951
3951
  S(q), b("dynamicFormSchema");
3952
3952
  }).catch(() => b("dynamicFormSchema"));
3953
- }, [w, e, y, b, d]), ze = D(async () => {
3953
+ }, [w, e, y, b, d]), Pe = D(async () => {
3954
3954
  var q;
3955
3955
  if (!(j === null || ((q = j.id) == null ? void 0 : q.toString()) !== e)) {
3956
3956
  if (j.masterReference && !ae) {
@@ -3994,7 +3994,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
3994
3994
  }
3995
3995
  return !1;
3996
3996
  }, [$, Je, g, j, ae]), W = (q) => {
3997
- q > z ? r(z) : q < 1 && r(1), r(q);
3997
+ q > P ? r(P) : q < 1 && r(1), r(q);
3998
3998
  }, ie = D(() => {
3999
3999
  if (!E || !j) {
4000
4000
  M(null);
@@ -4066,16 +4066,16 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
4066
4066
  return B(() => {
4067
4067
  Te();
4068
4068
  }, [Te]), B(() => {
4069
- ze();
4070
- }, [ze]), B(() => {
4069
+ Pe();
4070
+ }, [Pe]), B(() => {
4071
4071
  ie();
4072
4072
  }, [ie]), B(() => {
4073
4073
  ve();
4074
4074
  }, [ve]), B(() => {
4075
4075
  O ? t || r(1) : F && r(null);
4076
4076
  }, [F, O, t, r]), B(() => {
4077
- !O || !t || (t > z && r(z), t < 1 && r(1));
4078
- }, [t, O, z, r]), /* @__PURE__ */ n.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
4077
+ !O || !t || (t > P && r(P), t < 1 && r(1));
4078
+ }, [t, O, P, r]), /* @__PURE__ */ n.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
4079
4079
  /* @__PURE__ */ n.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-center", children: [
4080
4080
  /* @__PURE__ */ n.jsx(Q, { variant: "h3", children: (j == null ? void 0 : j.name) ?? "" }),
4081
4081
  /* @__PURE__ */ n.jsxs(ft, { toggle: /* @__PURE__ */ n.jsx(mt, { as: Dt }), children: [
@@ -4099,7 +4099,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
4099
4099
  /* @__PURE__ */ n.jsx(X, { color: "primary", onClick: () => W(1), disabled: !J, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-double-left" }) }),
4100
4100
  /* @__PURE__ */ n.jsx(X, { color: "primary", onClick: () => W(t - 1), disabled: !J, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-left" }) }),
4101
4101
  /* @__PURE__ */ n.jsx(X, { color: "primary", onClick: () => W(t + 1), disabled: !ee, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-right" }) }),
4102
- /* @__PURE__ */ n.jsx(X, { color: "primary", onClick: () => W(z), disabled: !ee, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-double-right" }) })
4102
+ /* @__PURE__ */ n.jsx(X, { color: "primary", onClick: () => W(P), disabled: !ee, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-double-right" }) })
4103
4103
  ] }),
4104
4104
  /* @__PURE__ */ n.jsxs(Q, { variant: "body", children: [
4105
4105
  g.tablePage,
@@ -4108,7 +4108,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
4108
4108
  " ",
4109
4109
  g.tablePageFrom,
4110
4110
  " ",
4111
- z
4111
+ P
4112
4112
  ] })
4113
4113
  ] })
4114
4114
  ] })
@@ -4143,7 +4143,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
4143
4143
  h.description && /* @__PURE__ */ n.jsx(Q, { variant: "body2", className: "text-muted mt-2", children: h.description })
4144
4144
  ] }, h.id) : /* @__PURE__ */ n.jsx(Id, { item: h, children: /* @__PURE__ */ n.jsx(Le, { to: `${Bt(o, { id: (b = h.id) == null ? void 0 : b.toString() })}?type=${h.type}&search=${v ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((j = h.id) == null ? void 0 : j.toString()) ? "active" : ""}`, children: /* @__PURE__ */ n.jsx(Q, { variant: "body2", children: h.name }) }) }, h.id);
4145
4145
  }) }, g.id)) }) }) : null;
4146
- }, Fu = ({ label: e, to: t, value: r }) => /* @__PURE__ */ n.jsxs(Pe, { label: e, children: [
4146
+ }, Fu = ({ label: e, to: t, value: r }) => /* @__PURE__ */ n.jsxs(ze, { label: e, children: [
4147
4147
  /* @__PURE__ */ n.jsx("input", { disabled: !0, className: "form-control d-none" }),
4148
4148
  t ? /* @__PURE__ */ n.jsx(Le, { to: t, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: r }) : /* @__PURE__ */ n.jsx("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: r })
4149
4149
  ] }), Ou = () => {
@@ -4214,12 +4214,12 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
4214
4214
  "card-title-link": "_card-title-link_1gvpy_22",
4215
4215
  cardTitleLink: Rd
4216
4216
  }, Ad = ({ reportsLastUsedGet: e, getReportRoute: t, getReportName: r }) => {
4217
- const { texts: { reports: s } } = Y(fe), { data: a } = Pt(e);
4217
+ const { texts: { reports: s } } = Y(fe), { data: a } = zt(e);
4218
4218
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(Wt, { defaultOpen: !0, title: s.index.lastUsedReports, children: /* @__PURE__ */ n.jsx(ps, { children: a && a.map((o) => o.versions.map((i) => /* @__PURE__ */ n.jsxs($t, { as: Le, to: t(o, i.id), className: "p-1 px-2", action: !0, children: [
4219
4219
  /* @__PURE__ */ n.jsx(Q, { variant: "body2", className: "text-uppercase", children: r(o) }),
4220
4220
  /* @__PURE__ */ n.jsxs(Q, { variant: "caption", className: "d-flex justify-content-between align-items-center gap-3 text-dark", children: [
4221
4221
  i.name,
4222
- /* @__PURE__ */ n.jsx(Q, { variant: "caption", className: "text-end opacity-50", children: zr(i.lastUsedDate) })
4222
+ /* @__PURE__ */ n.jsx(Q, { variant: "caption", className: "text-end opacity-50", children: Pr(i.lastUsedDate) })
4223
4223
  ] })
4224
4224
  ] }))) }) }) });
4225
4225
  }, fn = {
@@ -4229,7 +4229,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
4229
4229
  const { texts: { reports: l } } = Y(fe), [c, d] = L(""), [u] = On(c, 500), m = D((g) => g.map((h) => ({
4230
4230
  ...h,
4231
4231
  groupId: !h.groupId || h.groupId === 0 || !e.some((w) => w === h.groupId) ? 999 : h.groupId
4232
- })), [e]), { data: v } = Pt(t, { dataTransformer: m }), f = G(() => {
4232
+ })), [e]), { data: v } = zt(t, { dataTransformer: m }), f = G(() => {
4233
4233
  if (v === null)
4234
4234
  return {};
4235
4235
  const g = {};
@@ -4258,7 +4258,7 @@ const jc = "_lightbox_18t5m_1", yc = "_show_18t5m_16", wc = "_header_18t5m_20",
4258
4258
  /* @__PURE__ */ n.jsx(Q, { variant: "body2", className: "px-2", children: a(h) }),
4259
4259
  /* @__PURE__ */ n.jsx("div", { className: "h-100 d-flex flex-column justify-content-center", children: h.versions && h.versions.length > 0 ? /* @__PURE__ */ n.jsx("div", { className: "list-group", children: h.versions.map((w) => /* @__PURE__ */ n.jsx($t, { as: Le, to: i(h, w.id), className: "p-1 px-2", action: !0, children: /* @__PURE__ */ n.jsxs(Q, { variant: "body2", className: "d-flex justify-content-between align-items-center gap-3", children: [
4260
4260
  /* @__PURE__ */ n.jsx("div", { className: "link", children: w.name }),
4261
- /* @__PURE__ */ n.jsx(Q, { variant: "caption", className: "text-end opacity-50", children: zr(w.lastUsedDate) })
4261
+ /* @__PURE__ */ n.jsx(Q, { variant: "caption", className: "text-end opacity-50", children: Pr(w.lastUsedDate) })
4262
4262
  ] }) })) }) : null })
4263
4263
  ]
4264
4264
  }
@@ -4296,7 +4296,7 @@ export {
4296
4296
  Ss as FileUploadContextButton,
4297
4297
  fu as FileUploadDropdownItem,
4298
4298
  bi as Flexmonster,
4299
- zc as FloatingActionContainer,
4299
+ Pc as FloatingActionContainer,
4300
4300
  Ao as FloatingFormSubmit,
4301
4301
  at as FloatingLabelInput,
4302
4302
  ku as FromToDatePicker,
@@ -4319,7 +4319,7 @@ export {
4319
4319
  Vs as ImgDirect,
4320
4320
  ot as InvalidFeedback,
4321
4321
  Ou as LanguageSwitch,
4322
- Pn as Loading,
4322
+ zn as Loading,
4323
4323
  lo as LoadingBlock,
4324
4324
  gu as MessageBoard,
4325
4325
  Bo as MonthPicker,
@@ -4338,9 +4338,9 @@ export {
4338
4338
  Ku as ResponsiveContextDropdown,
4339
4339
  qu as ResponsiveContextDropdownItem,
4340
4340
  xu as ResponsiveTabs,
4341
- Pe as RowLabelInput,
4341
+ ze as RowLabelInput,
4342
4342
  Au as SearchBox,
4343
- zt as SelectInput,
4343
+ Pt as SelectInput,
4344
4344
  Eu as SettingsFormPicker,
4345
4345
  ju as ShortcutLinks,
4346
4346
  yu as ShortcutLinksProvider,
@@ -4360,7 +4360,7 @@ export {
4360
4360
  hu as UserAvatarValueFormat,
4361
4361
  Su as VersionInfo,
4362
4362
  Xn as WidgetCard,
4363
- zo as YearPicker,
4363
+ Po as YearPicker,
4364
4364
  Du as YearPickerSearchParams,
4365
4365
  Ls as useShortcutLinksContext
4366
4366
  };