react-luminus-components 1.3.109 → 1.3.110

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,7 +1,7 @@
1
- import { j as r, c as w, t as ve, a as pt, s as _n, g as Nn, m as wa, d as _t, b as _a, e as Na, f as Re, h as Ca, i as ka, k as Sa, l as Ia, n as Da, o as $a, p as Ea, T as or, q as ir, r as Cn, E as Fa, u as lr, v as sn, w as cr, x as Oa, y as ue, z as $t, A as Ta, B as dr, C as Et, D as La, F as Zt, G as ur, H as Ra, S as Jt, N as fr, I as on, J as ln, K as Aa, L as Ma, M as Ba, O as Va, P as Pa, Q as mr, R as Ha, U as Wa, V as za, W as Ua, X as Ga, Y as Ya, Z as Ka, _ as qa, $ as Xt, a0 as Qa, a1 as Bt, a2 as J, a3 as ge, a4 as en, a5 as Za, a6 as Ja, a7 as Xa, a8 as hr, a9 as xt, aa as re, ab as cn, ac as ye, ad as dn, ae as Ve, af as es, ag as Te, ah as gr, ai as ts, aj as pr, ak as ns, al as rs, am as as, an as un, ao as fn, ap as xr, aq as Ze, ar as ss, as as Xe, at as os, au as kt, av as vr, aw as Fe, ax as is, ay as ls, az as cs, aA as ds, aB as Ft, aC as us, aD as jr, aE as fs, aF as et, aG as ms, aH as yr, aI as br, aJ as wr, aK as Pe, aL as hs, aM as gs, aN as Ee, aO as ps, aP as vt, aQ as xs, aR as Ot, aS as _r, aT as Tt, aU as Vt, aV as He, aW as kn, aX as vs, aY as js, aZ as tt, a_ as ys, a$ as bs, b0 as ws, b1 as _s, b2 as Ns } from "./ResponsiveContextDropdown-DJxAkknX.js";
1
+ import { j as r, c as w, t as ve, a as pt, s as _n, g as Nn, m as wa, d as _t, b as _a, e as Na, f as Re, h as Ca, i as ka, k as Sa, l as Ia, n as Da, o as $a, p as Ea, T as or, q as ir, r as Cn, E as Fa, u as lr, v as sn, w as cr, x as Oa, y as fe, z as $t, A as Ta, B as dr, C as Et, D as La, F as Zt, G as ur, H as Ra, S as Jt, N as fr, I as on, J as ln, K as Aa, L as Ma, M as Ba, O as Va, P as Pa, Q as mr, R as Ha, U as Wa, V as za, W as Ua, X as Ga, Y as Ya, Z as Ka, _ as qa, $ as Xt, a0 as Qa, a1 as Bt, a2 as X, a3 as pe, a4 as en, a5 as Za, a6 as Ja, a7 as Xa, a8 as hr, a9 as xt, aa as re, ab as cn, ac as be, ad as dn, ae as Ve, af as es, ag as Te, ah as gr, ai as ts, aj as pr, ak as ns, al as rs, am as as, an as un, ao as fn, ap as xr, aq as Ze, ar as ss, as as Xe, at as os, au as kt, av as vr, aw as Fe, ax as is, ay as ls, az as cs, aA as ds, aB as Ft, aC as us, aD as jr, aE as fs, aF as et, aG as ms, aH as yr, aI as br, aJ as wr, aK as Pe, aL as hs, aM as gs, aN as Ee, aO as ps, aP as vt, aQ as xs, aR as Ot, aS as _r, aT as Tt, aU as Vt, aV as He, aW as kn, aX as vs, aY as js, aZ as tt, a_ as ys, a$ as bs, b0 as ws, b1 as _s, b2 as Ns } from "./ResponsiveContextDropdown-DJxAkknX.js";
2
2
  import { b6 as zd, b7 as Ud, b4 as Gd, b3 as Yd, b8 as Kd, b9 as qd, b5 as Qd } from "./ResponsiveContextDropdown-DJxAkknX.js";
3
3
  import * as oe from "react";
4
- import Ce, { useCallback as k, useMemo as ne, useContext as q, useRef as te, useEffect as M, useState as O, useId as Cs, Component as ks, isValidElement as Sn, Suspense as Ss, useReducer as Is, useLayoutEffect as Ds } from "react";
4
+ import ke, { useCallback as k, useMemo as ne, useContext as Z, useRef as ee, useEffect as A, useState as O, useId as Cs, Component as ks, isValidElement as Sn, Suspense as Ss, useReducer as Is, useLayoutEffect as Ds } from "react";
5
5
  import { c as Ae, L as In } from "./Loading-D4ukb10a.js";
6
6
  import { InteractionType as $s } from "@azure/msal-browser";
7
7
  import { MsalAuthenticationTemplate as Es } from "@azure/msal-react";
@@ -178,7 +178,7 @@ const qs = {
178
178
  [lr]: "collapsing",
179
179
  [sn]: "collapsing",
180
180
  [cr]: "collapse show"
181
- }, Dr = /* @__PURE__ */ Ce.forwardRef(({
181
+ }, Dr = /* @__PURE__ */ ke.forwardRef(({
182
182
  onEnter: e,
183
183
  onEntering: t,
184
184
  onEntered: n,
@@ -198,8 +198,8 @@ const qs = {
198
198
  const p = typeof c == "function" ? c() : c, y = ne(() => mt((S) => {
199
199
  S.style[p] = "0";
200
200
  }, e), [p, e]), j = ne(() => mt((S) => {
201
- const I = `scroll${p[0].toUpperCase()}${p.slice(1)}`;
202
- S.style[p] = `${S[I]}px`;
201
+ const D = `scroll${p[0].toUpperCase()}${p.slice(1)}`;
202
+ S.style[p] = `${S[D]}px`;
203
203
  }, t), [p, t]), f = ne(() => mt((S) => {
204
204
  S.style[p] = null;
205
205
  }, n), [p, n]), b = ne(() => mt((S) => {
@@ -223,8 +223,8 @@ const qs = {
223
223
  mountOnEnter: d,
224
224
  unmountOnExit: m,
225
225
  appear: x,
226
- children: (S, I) => /* @__PURE__ */ Ce.cloneElement(i, {
227
- ...I,
226
+ children: (S, D) => /* @__PURE__ */ ke.cloneElement(i, {
227
+ ...D,
228
228
  className: w(o, i.props.className, qs[S], p === "width" && "collapse-horizontal")
229
229
  })
230
230
  });
@@ -235,7 +235,7 @@ const Er = /* @__PURE__ */ oe.forwardRef(({
235
235
  bsPrefix: t,
236
236
  as: n = $r,
237
237
  ...a
238
- }, s) => (t = ue(t, "alert-heading"), /* @__PURE__ */ r.jsx(n, {
238
+ }, s) => (t = fe(t, "alert-heading"), /* @__PURE__ */ r.jsx(n, {
239
239
  ref: s,
240
240
  className: w(e, t),
241
241
  ...a
@@ -246,7 +246,7 @@ const Fr = /* @__PURE__ */ oe.forwardRef(({
246
246
  bsPrefix: t,
247
247
  as: n = Ta,
248
248
  ...a
249
- }, s) => (t = ue(t, "alert-link"), /* @__PURE__ */ r.jsx(n, {
249
+ }, s) => (t = fe(t, "alert-link"), /* @__PURE__ */ r.jsx(n, {
250
250
  ref: s,
251
251
  className: w(e, t),
252
252
  ...a
@@ -267,7 +267,7 @@ const Or = /* @__PURE__ */ oe.forwardRef((e, t) => {
267
267
  ...x
268
268
  } = dr(e, {
269
269
  show: "onClose"
270
- }), v = ue(n, "alert"), h = Et((y) => {
270
+ }), v = fe(n, "alert"), h = Et((y) => {
271
271
  u && u(!1, y);
272
272
  }), g = m === !0 ? Zt : m, p = /* @__PURE__ */ r.jsxs("div", {
273
273
  role: "alert",
@@ -297,7 +297,7 @@ const Qs = Object.assign(Or, {
297
297
  bsPrefix: t,
298
298
  as: n = "div",
299
299
  ...a
300
- }, s) => (t = ue(t, "card-body"), /* @__PURE__ */ r.jsx(n, {
300
+ }, s) => (t = fe(t, "card-body"), /* @__PURE__ */ r.jsx(n, {
301
301
  ref: s,
302
302
  className: w(e, t),
303
303
  ...a
@@ -308,7 +308,7 @@ const Tr = /* @__PURE__ */ oe.forwardRef(({
308
308
  bsPrefix: t,
309
309
  as: n = "div",
310
310
  ...a
311
- }, s) => (t = ue(t, "card-footer"), /* @__PURE__ */ r.jsx(n, {
311
+ }, s) => (t = fe(t, "card-footer"), /* @__PURE__ */ r.jsx(n, {
312
312
  ref: s,
313
313
  className: w(e, t),
314
314
  ...a
@@ -323,7 +323,7 @@ const Rr = /* @__PURE__ */ oe.forwardRef(({
323
323
  as: n = "div",
324
324
  ...a
325
325
  }, s) => {
326
- const o = ue(e, "card-header"), i = ne(() => ({
326
+ const o = fe(e, "card-header"), i = ne(() => ({
327
327
  cardHeaderBsPrefix: o
328
328
  }), [o]);
329
329
  return /* @__PURE__ */ r.jsx(Lr.Provider, {
@@ -345,7 +345,7 @@ const Ar = /* @__PURE__ */ oe.forwardRef(
345
345
  as: a = "img",
346
346
  ...s
347
347
  }, o) => {
348
- const i = ue(e, "card-img");
348
+ const i = fe(e, "card-img");
349
349
  return /* @__PURE__ */ r.jsx(a, {
350
350
  ref: o,
351
351
  className: w(n ? `${i}-${n}` : i, t),
@@ -359,7 +359,7 @@ const Mr = /* @__PURE__ */ oe.forwardRef(({
359
359
  bsPrefix: t,
360
360
  as: n = "div",
361
361
  ...a
362
- }, s) => (t = ue(t, "card-img-overlay"), /* @__PURE__ */ r.jsx(n, {
362
+ }, s) => (t = fe(t, "card-img-overlay"), /* @__PURE__ */ r.jsx(n, {
363
363
  ref: s,
364
364
  className: w(e, t),
365
365
  ...a
@@ -370,7 +370,7 @@ const Br = /* @__PURE__ */ oe.forwardRef(({
370
370
  bsPrefix: t,
371
371
  as: n = "a",
372
372
  ...a
373
- }, s) => (t = ue(t, "card-link"), /* @__PURE__ */ r.jsx(n, {
373
+ }, s) => (t = fe(t, "card-link"), /* @__PURE__ */ r.jsx(n, {
374
374
  ref: s,
375
375
  className: w(e, t),
376
376
  ...a
@@ -381,7 +381,7 @@ const Zs = $t("h6"), Vr = /* @__PURE__ */ oe.forwardRef(({
381
381
  bsPrefix: t,
382
382
  as: n = Zs,
383
383
  ...a
384
- }, s) => (t = ue(t, "card-subtitle"), /* @__PURE__ */ r.jsx(n, {
384
+ }, s) => (t = fe(t, "card-subtitle"), /* @__PURE__ */ r.jsx(n, {
385
385
  ref: s,
386
386
  className: w(e, t),
387
387
  ...a
@@ -392,7 +392,7 @@ const Pr = /* @__PURE__ */ oe.forwardRef(({
392
392
  bsPrefix: t,
393
393
  as: n = "p",
394
394
  ...a
395
- }, s) => (t = ue(t, "card-text"), /* @__PURE__ */ r.jsx(n, {
395
+ }, s) => (t = fe(t, "card-text"), /* @__PURE__ */ r.jsx(n, {
396
396
  ref: s,
397
397
  className: w(e, t),
398
398
  ...a
@@ -403,7 +403,7 @@ const Js = $t("h5"), Hr = /* @__PURE__ */ oe.forwardRef(({
403
403
  bsPrefix: t,
404
404
  as: n = Js,
405
405
  ...a
406
- }, s) => (t = ue(t, "card-title"), /* @__PURE__ */ r.jsx(n, {
406
+ }, s) => (t = fe(t, "card-title"), /* @__PURE__ */ r.jsx(n, {
407
407
  ref: s,
408
408
  className: w(e, t),
409
409
  ...a
@@ -421,7 +421,7 @@ const Wr = /* @__PURE__ */ oe.forwardRef(({
421
421
  as: c = "div",
422
422
  ...l
423
423
  }, u) => {
424
- const d = ue(e, "card");
424
+ const d = fe(e, "card");
425
425
  return /* @__PURE__ */ r.jsx(c, {
426
426
  ref: u,
427
427
  ...l,
@@ -447,7 +447,7 @@ const Ln = Object.assign(Wr, {
447
447
  bsPrefix: t,
448
448
  as: n = "span",
449
449
  ...a
450
- }, s) => (t = ue(t, "input-group-text"), /* @__PURE__ */ r.jsx(n, {
450
+ }, s) => (t = fe(t, "input-group-text"), /* @__PURE__ */ r.jsx(n, {
451
451
  ref: s,
452
452
  className: w(e, t),
453
453
  ...a
@@ -472,7 +472,7 @@ const Xs = (e) => /* @__PURE__ */ r.jsx(Rt, {
472
472
  as: s = "div",
473
473
  ...o
474
474
  }, i) => {
475
- e = ue(e, "input-group");
475
+ e = fe(e, "input-group");
476
476
  const c = ne(() => ({}), []);
477
477
  return /* @__PURE__ */ r.jsx(Ra.Provider, {
478
478
  value: c,
@@ -506,7 +506,7 @@ function Gr({
506
506
  role: s,
507
507
  disabled: o
508
508
  }) {
509
- const i = q(Jt), c = q(fr), l = q(Ur);
509
+ const i = Z(Jt), c = Z(fr), l = Z(Ur);
510
510
  let u = n;
511
511
  const d = {
512
512
  role: s
@@ -557,18 +557,18 @@ const Rn = () => {
557
557
  role: o,
558
558
  onKeyDown: i
559
559
  } = e, c = so(e, ao);
560
- const l = Ma(), u = te(!1), d = q(Jt), m = q(Ur);
560
+ const l = Ma(), u = ee(!1), d = Z(Jt), m = Z(Ur);
561
561
  let x, v;
562
562
  m && (o = o || "tablist", s = m.activeKey, x = m.getControlledId, v = m.getControllerId);
563
- const h = te(null), g = (f) => {
563
+ const h = ee(null), g = (f) => {
564
564
  const b = h.current;
565
565
  if (!b) return null;
566
566
  const N = Pa(b, `[${An}]:not([aria-disabled=true])`), S = b.querySelector("[aria-selected=true]");
567
567
  if (!S || S !== document.activeElement) return null;
568
- const I = N.indexOf(S);
569
- if (I === -1) return null;
570
- let D = I + f;
571
- return D >= N.length && (D = 0), D < 0 && (D = N.length - 1), N[D];
568
+ const D = N.indexOf(S);
569
+ if (D === -1) return null;
570
+ let I = D + f;
571
+ return I >= N.length && (I = 0), I < 0 && (I = N.length - 1), N[I];
572
572
  }, p = (f, b) => {
573
573
  f != null && (a == null || a(f, b), d == null || d(f, b));
574
574
  }, y = (f) => {
@@ -589,7 +589,7 @@ const Rn = () => {
589
589
  }
590
590
  b && (f.preventDefault(), p(b.dataset[Va("EventKey")] || null, f), u.current = !0, l());
591
591
  };
592
- M(() => {
592
+ A(() => {
593
593
  if (h.current && u.current) {
594
594
  const f = h.current.querySelector(`[${An}][aria-selected=true]`);
595
595
  f == null || f.focus();
@@ -629,7 +629,7 @@ const oo = Object.assign(Kr, {
629
629
  as: c,
630
630
  ...l
631
631
  }, u) => {
632
- e = ue(e, "list-group-item");
632
+ e = fe(e, "list-group-item");
633
633
  const [d, m] = Gr({
634
634
  key: ln(a, l.href),
635
635
  active: t,
@@ -664,7 +664,7 @@ const qr = /* @__PURE__ */ oe.forwardRef((e, t) => {
664
664
  ...l
665
665
  } = dr(e, {
666
666
  activeKey: "onSelect"
667
- }), u = ue(a, "list-group");
667
+ }), u = fe(a, "list-group");
668
668
  let d;
669
669
  return o && (d = o === !0 ? "horizontal" : `horizontal-${o}`), process.env.NODE_ENV !== "production" && mr(!(o && s === "flush"), '`variant="flush"` and `horizontal` should not be used together.'), /* @__PURE__ */ r.jsx(oo, {
670
670
  ref: t,
@@ -737,7 +737,7 @@ const uo = co({
737
737
  bsPrefix: t,
738
738
  as: n = "div",
739
739
  ...a
740
- }, s) => (t = ue(t, "offcanvas-body"), /* @__PURE__ */ r.jsx(n, {
740
+ }, s) => (t = fe(t, "offcanvas-body"), /* @__PURE__ */ r.jsx(n, {
741
741
  ref: s,
742
742
  className: w(e, t),
743
743
  ...a
@@ -755,7 +755,7 @@ const fo = {
755
755
  unmountOnExit: o = !1,
756
756
  appear: i = !1,
757
757
  ...c
758
- }, l) => (e = ue(e, "offcanvas"), /* @__PURE__ */ r.jsx(or, {
758
+ }, l) => (e = fe(e, "offcanvas"), /* @__PURE__ */ r.jsx(or, {
759
759
  ref: l,
760
760
  addEndListener: ir,
761
761
  in: a,
@@ -776,7 +776,7 @@ const Jr = /* @__PURE__ */ oe.forwardRef(({
776
776
  closeLabel: n = "Close",
777
777
  closeButton: a = !1,
778
778
  ...s
779
- }, o) => (e = ue(e, "offcanvas-header"), /* @__PURE__ */ r.jsx(Wa, {
779
+ }, o) => (e = fe(e, "offcanvas-header"), /* @__PURE__ */ r.jsx(Wa, {
780
780
  ref: o,
781
781
  ...s,
782
782
  className: w(t, e),
@@ -789,7 +789,7 @@ const mo = $t("h5"), Xr = /* @__PURE__ */ oe.forwardRef(({
789
789
  bsPrefix: t,
790
790
  as: n = mo,
791
791
  ...a
792
- }, s) => (t = ue(t, "offcanvas-title"), /* @__PURE__ */ r.jsx(n, {
792
+ }, s) => (t = fe(t, "offcanvas-title"), /* @__PURE__ */ r.jsx(n, {
793
793
  ref: s,
794
794
  className: w(e, t),
795
795
  ...a
@@ -830,49 +830,49 @@ const ea = /* @__PURE__ */ oe.forwardRef(({
830
830
  onExiting: b,
831
831
  onEnter: N,
832
832
  onEntering: S,
833
- onExited: I,
834
- backdropClassName: D,
833
+ onExited: D,
834
+ backdropClassName: I,
835
835
  manager: C,
836
- renderStaticNode: L = !1,
836
+ renderStaticNode: R = !1,
837
837
  ...F
838
838
  }, _) => {
839
- const W = te();
840
- e = ue(e, "offcanvas");
839
+ const z = ee();
840
+ e = fe(e, "offcanvas");
841
841
  const {
842
- onToggle: B
843
- } = q(za) || {}, [X, R] = O(!1), $ = uo(o || "xs", "up");
844
- M(() => {
845
- R(o ? i && !$ : i);
842
+ onToggle: M
843
+ } = Z(za) || {}, [K, V] = O(!1), $ = uo(o || "xs", "up");
844
+ A(() => {
845
+ V(o ? i && !$ : i);
846
846
  }, [i, o, $]);
847
- const P = Et(() => {
848
- B == null || B(), x == null || x();
849
- }), U = ne(() => ({
850
- onHide: P
851
- }), [P]);
852
- function Z() {
853
- return C || (u ? (W.current || (W.current = new Ya({
847
+ const H = Et(() => {
848
+ M == null || M(), x == null || x();
849
+ }), P = ne(() => ({
850
+ onHide: H
851
+ }), [H]);
852
+ function J() {
853
+ return C || (u ? (z.current || (z.current = new Ya({
854
854
  handleContainerOverflow: !1
855
- })), W.current) : Ka());
855
+ })), z.current) : Ka());
856
856
  }
857
- const Q = (z, ...me) => {
858
- z && (z.style.visibility = "visible"), N == null || N(z, ...me);
859
- }, E = (z, ...me) => {
860
- z && (z.style.visibility = ""), I == null || I(...me);
861
- }, ee = k((z) => /* @__PURE__ */ r.jsx("div", {
862
- ...z,
863
- className: w(`${e}-backdrop`, D)
864
- }), [D, e]), A = (z) => /* @__PURE__ */ r.jsx("div", {
865
- ...z,
857
+ const q = (U, ...ue) => {
858
+ U && (U.style.visibility = "visible"), N == null || N(U, ...ue);
859
+ }, E = (U, ...ue) => {
860
+ U && (U.style.visibility = ""), D == null || D(...ue);
861
+ }, te = k((U) => /* @__PURE__ */ r.jsx("div", {
862
+ ...U,
863
+ className: w(`${e}-backdrop`, I)
864
+ }), [I, e]), L = (U) => /* @__PURE__ */ r.jsx("div", {
865
+ ...U,
866
866
  ...F,
867
867
  className: w(t, o ? `${e}-${o}` : e, `${e}-${s}`),
868
868
  "aria-labelledby": a,
869
869
  children: n
870
870
  });
871
871
  return /* @__PURE__ */ r.jsxs(r.Fragment, {
872
- children: [!X && (o || L) && A({}), /* @__PURE__ */ r.jsx(Ua.Provider, {
873
- value: U,
872
+ children: [!K && (o || R) && L({}), /* @__PURE__ */ r.jsx(Ua.Provider, {
873
+ value: P,
874
874
  children: /* @__PURE__ */ r.jsx(Ga, {
875
- show: X,
875
+ show: K,
876
876
  ref: _,
877
877
  backdrop: c,
878
878
  container: v,
@@ -883,18 +883,18 @@ const ea = /* @__PURE__ */ oe.forwardRef(({
883
883
  restoreFocusOptions: y,
884
884
  onEscapeKeyDown: d,
885
885
  onShow: m,
886
- onHide: P,
887
- onEnter: Q,
886
+ onHide: H,
887
+ onEnter: q,
888
888
  onEntering: S,
889
889
  onEntered: j,
890
890
  onExit: f,
891
891
  onExiting: b,
892
892
  onExited: E,
893
- manager: Z(),
893
+ manager: J(),
894
894
  transition: ho,
895
895
  backdropTransition: go,
896
- renderBackdrop: ee,
897
- renderDialog: A
896
+ renderBackdrop: te,
897
+ renderDialog: L
898
898
  })
899
899
  })]
900
900
  });
@@ -912,7 +912,7 @@ function ta({
912
912
  size: a,
913
913
  ...s
914
914
  }) {
915
- n = ue(n, "placeholder");
915
+ n = fe(n, "placeholder");
916
916
  const [{
917
917
  className: o,
918
918
  ...i
@@ -955,7 +955,7 @@ const Me = Object.assign(ra, {
955
955
  className: o,
956
956
  ...i
957
957
  }, c) => {
958
- e = ue(e, "spinner");
958
+ e = fe(e, "spinner");
959
959
  const l = `${e}-${n}`;
960
960
  return /* @__PURE__ */ r.jsx(s, {
961
961
  ref: c,
@@ -965,10 +965,10 @@ const Me = Object.assign(ra, {
965
965
  });
966
966
  vn.displayName = "Spinner";
967
967
  const td = ({ heading: e, content: t, placement: n, children: a, trigger: s, popoverClassName: o, ...i }) => /* @__PURE__ */ r.jsx(Qa, { placement: n, overlay: /* @__PURE__ */ r.jsxs(Bt, { className: w("luminus-popover", o), onClick: (c) => c.stopPropagation(), children: [
968
- e && /* @__PURE__ */ r.jsx(Bt.Header, { children: typeof e == "string" ? /* @__PURE__ */ r.jsx(J, { variant: "h6", className: "text-primary", children: e }) : e }),
968
+ e && /* @__PURE__ */ r.jsx(Bt.Header, { children: typeof e == "string" ? /* @__PURE__ */ r.jsx(X, { variant: "h6", className: "text-primary", children: e }) : e }),
969
969
  /* @__PURE__ */ r.jsx(Bt.Body, { children: t })
970
970
  ] }), trigger: s ?? "hover", rootClose: !0, show: i.controlled ? i.isOpen : void 0, onToggle: i.controlled ? (c) => i.setIsOpen(c) : void 0, children: a }), po = ({ children: e, onStorno: t, noSpacer: n }) => {
971
- const { texts: { formSubmit: a } } = q(ge);
971
+ const { texts: { formSubmit: a } } = Z(pe);
972
972
  return /* @__PURE__ */ r.jsxs(pl, { noSpacer: n, children: [
973
973
  /* @__PURE__ */ r.jsxs(en, { as: "button", color: "primary", size: "lg", type: "submit", children: [
974
974
  /* @__PURE__ */ r.jsx(Za, {}),
@@ -1025,11 +1025,11 @@ const td = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
1025
1025
  }, [n]);
1026
1026
  return /* @__PURE__ */ r.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
1027
1027
  /* @__PURE__ */ r.jsx(re, { onClick: () => o(-1), disabled: e.getFullYear() < a || e.getFullYear() === a && e.getMonth() <= 0, children: /* @__PURE__ */ r.jsx(cn, {}) }),
1028
- /* @__PURE__ */ r.jsx(ye.Select, { value: e.getMonth(), onChange: (l) => {
1028
+ /* @__PURE__ */ r.jsx(be.Select, { value: e.getMonth(), onChange: (l) => {
1029
1029
  var u;
1030
1030
  return ((u = l.target) == null ? void 0 : u.value) && t(Gs(e, Number(l.target.value)));
1031
1031
  }, className: w(zt.select, zt.month), children: c.map((l) => /* @__PURE__ */ r.jsx("option", { value: l.id, children: l.name }, l.id)) }),
1032
- /* @__PURE__ */ r.jsx(ye.Select, { value: e.getFullYear(), onChange: (l) => {
1032
+ /* @__PURE__ */ r.jsx(be.Select, { value: e.getFullYear(), onChange: (l) => {
1033
1033
  var u;
1034
1034
  return ((u = l.target) == null ? void 0 : u.value) && t(Ir(e, Number(l.target.value)));
1035
1035
  }, className: w(zt.select), children: i.map((l) => /* @__PURE__ */ r.jsx("option", { value: l, children: l }, l)) }),
@@ -1049,7 +1049,7 @@ const td = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
1049
1049
  }, [n, a]);
1050
1050
  return /* @__PURE__ */ r.jsxs("div", { className: w("card d-flex flex-row align-items-center m-0 p-1 gap-2", s ?? ""), children: [
1051
1051
  /* @__PURE__ */ r.jsx(re, { onClick: () => o(-1), disabled: e.getFullYear() <= n, children: /* @__PURE__ */ r.jsx(cn, {}) }),
1052
- /* @__PURE__ */ r.jsx(ye.Select, { value: e.getFullYear(), onChange: (c) => {
1052
+ /* @__PURE__ */ r.jsx(be.Select, { value: e.getFullYear(), onChange: (c) => {
1053
1053
  var l;
1054
1054
  return ((l = c.target) == null ? void 0 : l.value) && t(Ir(e, Number(c.target.value)));
1055
1055
  }, className: yo.select, children: i.map((c) => /* @__PURE__ */ r.jsx("option", { value: c, children: c }, c)) }),
@@ -1059,7 +1059,7 @@ const td = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
1059
1059
  widget: wo
1060
1060
  }, No = ({ show: e, widgets: t, handleClose: n, onWidgetPicked: a, texts: s }) => /* @__PURE__ */ r.jsxs(Ve, { show: e, onHide: () => n(), children: [
1061
1061
  /* @__PURE__ */ r.jsx(Ve.Header, { closeButton: !0, children: /* @__PURE__ */ r.jsx(Ve.Title, { children: s.pickWidgetToAdd }) }),
1062
- /* @__PURE__ */ r.jsx(Ve.Body, { children: /* @__PURE__ */ r.jsx("div", { className: "list-group", children: t.filter((o) => o.id >= 0).map((o) => /* @__PURE__ */ r.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => a(o.id), children: /* @__PURE__ */ r.jsx(J, { variant: "body", children: o.name }) })) }) })
1062
+ /* @__PURE__ */ r.jsx(Ve.Body, { children: /* @__PURE__ */ r.jsx("div", { className: "list-group", children: t.filter((o) => o.id >= 0).map((o) => /* @__PURE__ */ r.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => a(o.id), children: /* @__PURE__ */ r.jsx(X, { variant: "body", children: o.name }) })) }) })
1063
1063
  ] }), Vn = ({ availableWidgets: e, onAdd: t, texts: n }) => {
1064
1064
  const [a, s] = O(!1);
1065
1065
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -1070,7 +1070,7 @@ const td = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
1070
1070
  ] });
1071
1071
  }, Co = (e) => {
1072
1072
  const [t, n] = O({ widgets: [] });
1073
- M(() => {
1073
+ A(() => {
1074
1074
  const s = localStorage.getItem("dashboardConfig");
1075
1075
  s ? n(JSON.parse(s)) : e && n(e);
1076
1076
  }, [e]);
@@ -1114,12 +1114,12 @@ class To extends ks {
1114
1114
  }
1115
1115
  render() {
1116
1116
  const { fallback: t, fallbackOn404: n, children: a, texts: s, reloadButtonDisplay: o = "append-after-child" } = this.props;
1117
- return this.state.hasError ? o === "inject-to-child" && !this.state.is404Error && Sn(t) ? Ce.cloneElement(t, {
1117
+ return this.state.hasError ? o === "inject-to-child" && !this.state.is404Error && Sn(t) ? ke.cloneElement(t, {
1118
1118
  ...t.props
1119
1119
  }, /* @__PURE__ */ r.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
1120
1120
  ...t.props.children,
1121
1121
  /* @__PURE__ */ r.jsx("div", { className: "d-flex gap-2 justify-content-center", children: /* @__PURE__ */ r.jsx(Te, { type: "button", onClick: this.reload, children: s.reloadButtonContent }) })
1122
- ] })) : o === "inject-to-child" && this.state.is404Error && Sn(n) ? Ce.cloneElement(n, {
1122
+ ] })) : o === "inject-to-child" && this.state.is404Error && Sn(n) ? ke.cloneElement(n, {
1123
1123
  ...n.props
1124
1124
  }, /* @__PURE__ */ r.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
1125
1125
  ...n.props.children,
@@ -1137,17 +1137,17 @@ class To extends ks {
1137
1137
  }
1138
1138
  }
1139
1139
  const Lo = (e) => (n) => {
1140
- const { texts: { errorBoundary: a } } = q(ge);
1140
+ const { texts: { errorBoundary: a } } = Z(pe);
1141
1141
  return /* @__PURE__ */ r.jsx(e, { texts: a, ...n });
1142
1142
  }, Ro = Lo(To), Ao = "_widget-card_e9tsb_1", Mo = {
1143
1143
  "widget-card": "_widget-card_e9tsb_1",
1144
1144
  widgetCard: Ao
1145
1145
  }, Pn = ({ children: e, title: t, headerContent: n }) => /* @__PURE__ */ r.jsx(Ai, { className: w(Mo.widgetCard, "luminus-widget"), title: t, headerContent: n, contentClassName: "h-100 overflow-auto", children: e }), Bo = ({ children: e, title: t }) => {
1146
- const { texts: { widget: n } } = q(ge), a = Nr();
1146
+ const { texts: { widget: n } } = Z(pe), a = Nr();
1147
1147
  return /* @__PURE__ */ r.jsx(Ro, { fallback: /* @__PURE__ */ r.jsx(Pn, { title: t, children: n.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => a(-1), children: /* @__PURE__ */ r.jsx(Ss, { fallback: /* @__PURE__ */ r.jsx(Pn, { title: t, children: /* @__PURE__ */ r.jsx(Vs, {}) }), children: e }) });
1148
1148
  }, rd = ({ availableWidgets: e, editMode: t, defaultDashboardConfig: n }) => {
1149
1149
  var d;
1150
- const { texts: { homeDashboard: a } } = q(ge), { dashboardConfig: s, onChangeDashboardConfig: o } = Co(n), i = k((m, x) => {
1150
+ const { texts: { homeDashboard: a } } = Z(pe), { dashboardConfig: s, onChangeDashboardConfig: o } = Co(n), i = k((m, x) => {
1151
1151
  var v, h;
1152
1152
  m === ((v = s.widgets) == null ? void 0 : v.length) ? o({
1153
1153
  ...s,
@@ -1204,11 +1204,11 @@ const Lo = (e) => (n) => {
1204
1204
  collapsed: Go
1205
1205
  }, Yo = ({ title: e, children: t, className: n, ...a }) => {
1206
1206
  const s = a.controlled ? !1 : a.defaultOpen ?? !1, [o, i] = O(s), c = a.controlled ? a.isOpen : o;
1207
- return M(() => {
1207
+ return A(() => {
1208
1208
  i(s);
1209
1209
  }, [s]), /* @__PURE__ */ r.jsxs("div", { className: n ?? "", children: [
1210
1210
  /* @__PURE__ */ r.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => a.controlled ? a.onToggle(!a.isOpen) : i(!o), children: [
1211
- /* @__PURE__ */ r.jsx(J, { variant: "h6", children: e }),
1211
+ /* @__PURE__ */ r.jsx(X, { variant: "h6", children: e }),
1212
1212
  /* @__PURE__ */ r.jsx(pr, { className: w(Hn.collapseIcon, {
1213
1213
  [Hn.collapsed]: c
1214
1214
  }) })
@@ -1218,44 +1218,44 @@ const Lo = (e) => (n) => {
1218
1218
  ] });
1219
1219
  };
1220
1220
  function Ko(e, t, n) {
1221
- var a = this, s = te(null), o = te(0), i = te(null), c = te([]), l = te(), u = te(), d = te(e), m = te(!0);
1221
+ var a = this, s = ee(null), o = ee(0), i = ee(null), c = ee([]), l = ee(), u = ee(), d = ee(e), m = ee(!0);
1222
1222
  d.current = e;
1223
1223
  var x = typeof window < "u", v = !t && t !== 0 && x;
1224
1224
  if (typeof e != "function") throw new TypeError("Expected a function");
1225
1225
  t = +t || 0;
1226
1226
  var h = !!(n = n || {}).leading, g = !("trailing" in n) || !!n.trailing, p = "maxWait" in n, y = "debounceOnServer" in n && !!n.debounceOnServer, j = p ? Math.max(+n.maxWait || 0, t) : null;
1227
- M(function() {
1227
+ A(function() {
1228
1228
  return m.current = !0, function() {
1229
1229
  m.current = !1;
1230
1230
  };
1231
1231
  }, []);
1232
1232
  var f = ne(function() {
1233
- var b = function(L) {
1233
+ var b = function(R) {
1234
1234
  var F = c.current, _ = l.current;
1235
- return c.current = l.current = null, o.current = L, u.current = d.current.apply(_, F);
1236
- }, N = function(L, F) {
1237
- v && cancelAnimationFrame(i.current), i.current = v ? requestAnimationFrame(L) : setTimeout(L, F);
1238
- }, S = function(L) {
1235
+ return c.current = l.current = null, o.current = R, u.current = d.current.apply(_, F);
1236
+ }, N = function(R, F) {
1237
+ v && cancelAnimationFrame(i.current), i.current = v ? requestAnimationFrame(R) : setTimeout(R, F);
1238
+ }, S = function(R) {
1239
1239
  if (!m.current) return !1;
1240
- var F = L - s.current;
1241
- return !s.current || F >= t || F < 0 || p && L - o.current >= j;
1242
- }, I = function(L) {
1243
- return i.current = null, g && c.current ? b(L) : (c.current = l.current = null, u.current);
1244
- }, D = function L() {
1240
+ var F = R - s.current;
1241
+ return !s.current || F >= t || F < 0 || p && R - o.current >= j;
1242
+ }, D = function(R) {
1243
+ return i.current = null, g && c.current ? b(R) : (c.current = l.current = null, u.current);
1244
+ }, I = function R() {
1245
1245
  var F = Date.now();
1246
- if (S(F)) return I(F);
1246
+ if (S(F)) return D(F);
1247
1247
  if (m.current) {
1248
- var _ = t - (F - s.current), W = p ? Math.min(_, j - (F - o.current)) : _;
1249
- N(L, W);
1248
+ var _ = t - (F - s.current), z = p ? Math.min(_, j - (F - o.current)) : _;
1249
+ N(R, z);
1250
1250
  }
1251
1251
  }, C = function() {
1252
1252
  if (x || y) {
1253
- var L = Date.now(), F = S(L);
1254
- if (c.current = [].slice.call(arguments), l.current = a, s.current = L, F) {
1255
- if (!i.current && m.current) return o.current = s.current, N(D, t), h ? b(s.current) : u.current;
1256
- if (p) return N(D, t), b(s.current);
1253
+ var R = Date.now(), F = S(R);
1254
+ if (c.current = [].slice.call(arguments), l.current = a, s.current = R, F) {
1255
+ if (!i.current && m.current) return o.current = s.current, N(I, t), h ? b(s.current) : u.current;
1256
+ if (p) return N(I, t), b(s.current);
1257
1257
  }
1258
- return i.current || N(D, t), u.current;
1258
+ return i.current || N(I, t), u.current;
1259
1259
  }
1260
1260
  };
1261
1261
  return C.cancel = function() {
@@ -1263,7 +1263,7 @@ function Ko(e, t, n) {
1263
1263
  }, C.isPending = function() {
1264
1264
  return !!i.current;
1265
1265
  }, C.flush = function() {
1266
- return i.current ? I(Date.now()) : u.current;
1266
+ return i.current ? D(Date.now()) : u.current;
1267
1267
  }, C;
1268
1268
  }, [h, p, t, j, g, v, x, y]);
1269
1269
  return f;
@@ -1277,10 +1277,10 @@ function Qo(e, t) {
1277
1277
  function sa(e, t, n) {
1278
1278
  var a = qo, s = Is(Qo, e), o = s[0], i = s[1], c = Ko(k(function(u) {
1279
1279
  return i(u);
1280
- }, [i]), t, n), l = te(e);
1280
+ }, [i]), t, n), l = ee(e);
1281
1281
  return a(l.current, e) || (c(e), l.current = e), a(o, e) && c.cancel(), [o, c];
1282
1282
  }
1283
- const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13", ei = "_search-input-container_1kgb8_19", ti = "_search-input_1kgb8_19", ni = "_loading-container_1kgb8_25", ri = "_items-container_1kgb8_32", ai = "_header-row_1kgb8_38", si = "_item_1kgb8_32", oi = "_name_1kgb8_57", ii = "_column-item_1kgb8_62", li = "_icon_1kgb8_66", ci = "_action-buttons-container_1kgb8_74", di = "_reverse_1kgb8_82", ui = "_action-button_1kgb8_74", be = {
1283
+ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13", ei = "_search-input-container_1kgb8_19", ti = "_search-input_1kgb8_19", ni = "_loading-container_1kgb8_25", ri = "_items-container_1kgb8_32", ai = "_header-row_1kgb8_38", si = "_item_1kgb8_32", oi = "_name_1kgb8_57", ii = "_column-item_1kgb8_62", li = "_icon_1kgb8_66", ci = "_action-buttons-container_1kgb8_74", di = "_reverse_1kgb8_82", ui = "_action-button_1kgb8_74", we = {
1284
1284
  wrapper: Zo,
1285
1285
  open: Jo,
1286
1286
  dropdown: Xo,
@@ -1306,25 +1306,25 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
1306
1306
  actionButton: ui
1307
1307
  }, jn = ({ show: e, onCancel: t, items: n, currentSelection: a, onSelectionChange: s, onSearchQueryChange: o, texts: i, itemsNameWidth: c, additionalColumns: l, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: m, disabled: x, isLoading: v = !1, inputRef: h }) => {
1308
1308
  var ze;
1309
- const g = te(null), p = te(null), y = te(null), j = te(null), f = te(null), [b, N] = O(""), [S] = sa(b, 500), [, I] = O(!1), { copyToClipboard: D } = Ts(), C = (ze = h.current) == null ? void 0 : ze.getBoundingClientRect(), L = (C == null ? void 0 : C.x) ?? 0, F = ((C == null ? void 0 : C.x) ?? 0) + ((C == null ? void 0 : C.width) ?? 0), _ = (C == null ? void 0 : C.y) ?? 0, W = ((C == null ? void 0 : C.y) ?? 0) + ((C == null ? void 0 : C.height) ?? 0), B = (C == null ? void 0 : C.width) ?? 0, X = (C == null ? void 0 : C.height) ?? 0, R = 5, $ = ne(() => L ? L > window.innerWidth / 2 : !1, [L]), P = ne(() => _ ? _ > window.innerHeight / 2 : !1, [_]);
1310
- M(() => {
1311
- var Y;
1312
- e && ((Y = j.current) == null || Y.focus());
1313
- }, [j, e]), M(() => {
1309
+ const g = ee(null), p = ee(null), y = ee(null), j = ee(null), f = ee(null), [b, N] = O(""), [S] = sa(b, 500), [, D] = O(!1), { copyToClipboard: I } = Ts(), C = (ze = h.current) == null ? void 0 : ze.getBoundingClientRect(), R = (C == null ? void 0 : C.x) ?? 0, F = ((C == null ? void 0 : C.x) ?? 0) + ((C == null ? void 0 : C.width) ?? 0), _ = (C == null ? void 0 : C.y) ?? 0, z = ((C == null ? void 0 : C.y) ?? 0) + ((C == null ? void 0 : C.height) ?? 0), M = (C == null ? void 0 : C.width) ?? 0, K = (C == null ? void 0 : C.height) ?? 0, V = 5, $ = ne(() => R ? R > window.innerWidth / 2 : !1, [R]), H = ne(() => _ ? _ > window.innerHeight / 2 : !1, [_]);
1310
+ A(() => {
1311
+ var G;
1312
+ e && ((G = j.current) == null || G.focus());
1313
+ }, [j, e]), A(() => {
1314
1314
  e || N("");
1315
- }, [e]), M(() => {
1315
+ }, [e]), A(() => {
1316
1316
  o(S);
1317
1317
  }, [S, o]);
1318
- const [U, Z] = O(null);
1319
- M(() => {
1320
- e && n.length > 0 ? Z(0) : Z(null);
1318
+ const [P, J] = O(null);
1319
+ A(() => {
1320
+ e && n.length > 0 ? J(0) : J(null);
1321
1321
  }, [n, e]);
1322
- const Q = ne(() => U !== null ? n.at(U) ?? null : null, [U, n]), E = k((Y, fe) => {
1322
+ const q = ne(() => P !== null ? n.at(P) ?? null : null, [P, n]), E = k((G, me) => {
1323
1323
  var Ue, nt;
1324
- const _e = document.getElementById(`item-${Y}`);
1325
- if (_e) {
1326
- const T = _e.clientHeight ?? 0;
1327
- fe === "down" ? (Ue = f.current) == null || Ue.scrollBy({
1324
+ const Ce = document.getElementById(`item-${G}`);
1325
+ if (Ce) {
1326
+ const T = Ce.clientHeight ?? 0;
1327
+ me === "down" ? (Ue = f.current) == null || Ue.scrollBy({
1328
1328
  left: 0,
1329
1329
  top: T,
1330
1330
  behavior: "smooth"
@@ -1334,84 +1334,84 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
1334
1334
  behavior: "smooth"
1335
1335
  });
1336
1336
  }
1337
- }, []), ee = k((Y) => {
1338
- if (U === null || x)
1337
+ }, []), te = k((G) => {
1338
+ if (P === null || x)
1339
1339
  return;
1340
- const fe = U + Y;
1341
- fe < 0 || fe >= n.length || Z((_e) => (_e !== null && E(_e, Y > 0 ? "down" : "up"), fe));
1342
- }, [U, n, x, E]), A = k((Y) => {
1340
+ const me = P + G;
1341
+ me < 0 || me >= n.length || J((Ce) => (Ce !== null && E(Ce, G > 0 ? "down" : "up"), me));
1342
+ }, [P, n, x, E]), L = k((G) => {
1343
1343
  if (e)
1344
- switch (Y.key) {
1344
+ switch (G.key) {
1345
1345
  case "Escape":
1346
- Y.stopPropagation(), Y.preventDefault(), t();
1346
+ G.stopPropagation(), G.preventDefault(), t();
1347
1347
  break;
1348
1348
  case "Enter":
1349
- Y.stopPropagation(), Y.preventDefault(), x || s(Q);
1349
+ G.stopPropagation(), G.preventDefault(), x || s(q);
1350
1350
  break;
1351
1351
  case "ArrowUp":
1352
- Y.stopPropagation(), Y.preventDefault(), ee(-1);
1352
+ G.stopPropagation(), G.preventDefault(), te(-1);
1353
1353
  break;
1354
1354
  case "ArrowDown":
1355
- Y.stopPropagation(), Y.preventDefault(), ee(1);
1355
+ G.stopPropagation(), G.preventDefault(), te(1);
1356
1356
  break;
1357
1357
  }
1358
- }, [t, e, ee, Q, x, s]), z = k(() => {
1359
- I((Y) => !Y);
1358
+ }, [t, e, te, q, x, s]), U = k(() => {
1359
+ D((G) => !G);
1360
1360
  }, []);
1361
- M(() => (window.addEventListener("scroll", z), () => {
1362
- window.removeEventListener("scroll", z);
1363
- }), [z]), M(() => (window.addEventListener("resize", z), () => {
1364
- window.removeEventListener("resize", z);
1365
- }), [z]), kr(A), Cr([g, p, y], t);
1366
- const me = c ?? (l && l.length > 0 ? 250 : 0), G = (l == null ? void 0 : l.reduce((Y, fe) => Y + (fe.width ?? 100), 0)) ?? 0, pe = `calc(max(${B}px, ${me}px + ${G}px))`, Ne = ne(() => (a && e && !x) ?? !1, [a, e, x]), Ie = ne(() => (a && e) ?? !1, [a, e]);
1361
+ A(() => (window.addEventListener("scroll", U), () => {
1362
+ window.removeEventListener("scroll", U);
1363
+ }), [U]), A(() => (window.addEventListener("resize", U), () => {
1364
+ window.removeEventListener("resize", U);
1365
+ }), [U]), kr(L), Cr([g, p, y], t);
1366
+ const ue = c ?? (l && l.length > 0 ? 250 : 0), he = (l == null ? void 0 : l.reduce((G, me) => G + (me.width ?? 100), 0)) ?? 0, Q = `calc(max(${M}px, ${ue}px + ${he}px))`, je = ne(() => (a && e && !x) ?? !1, [a, e, x]), Ne = ne(() => (a && e) ?? !1, [a, e]);
1367
1367
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1368
1368
  /* @__PURE__ */ r.jsx(la, { show: e, onClick: t }),
1369
- /* @__PURE__ */ r.jsxs("div", { className: w("luminus-dropdown-picker-actions", be.actionButtonsContainer, {
1370
- [be.reverse]: $
1369
+ /* @__PURE__ */ r.jsxs("div", { className: w("luminus-dropdown-picker-actions", we.actionButtonsContainer, {
1370
+ [we.reverse]: $
1371
1371
  }), style: {
1372
- top: `calc(${_}px + ${X / 2}px - 12px)`,
1373
- left: $ ? Ne && Ie ? `calc(${L}px - 24px - 8px - 24px - 4px)` : `calc(${L}px - 24px - 8px)` : `calc(${F}px + 8px)`
1372
+ top: `calc(${_}px + ${K / 2}px - 12px)`,
1373
+ left: $ ? je && Ne ? `calc(${R}px - 24px - 8px - 24px - 4px)` : `calc(${R}px - 24px - 8px)` : `calc(${F}px + 8px)`
1374
1374
  }, children: [
1375
- Ne && /* @__PURE__ */ r.jsx("button", { ref: p, type: "button", className: w("luminus-dropdown-picker-clear-button", be.actionButton), onClick: () => !x && s(null), children: /* @__PURE__ */ r.jsx(J, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ r.jsx(gr, { size: 16 }) }) }),
1376
- Ie && /* @__PURE__ */ r.jsx("button", { ref: y, type: "button", className: w("luminus-dropdown-picker-copy-button", be.actionButton), onClick: () => {
1377
- var Y, fe;
1378
- D(u ? ((Y = a == null ? void 0 : a.id) == null ? void 0 : Y.toString()) ?? "" : ((fe = a == null ? void 0 : a.name) == null ? void 0 : fe.toString()) ?? ""), t();
1379
- }, children: /* @__PURE__ */ r.jsx(J, { variant: "caption", className: "text-info", children: /* @__PURE__ */ r.jsx(ns, { size: 16 }) }) })
1375
+ je && /* @__PURE__ */ r.jsx("button", { ref: p, type: "button", className: w("luminus-dropdown-picker-clear-button", we.actionButton), onClick: () => !x && s(null), children: /* @__PURE__ */ r.jsx(X, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ r.jsx(gr, { size: 16 }) }) }),
1376
+ Ne && /* @__PURE__ */ r.jsx("button", { ref: y, type: "button", className: w("luminus-dropdown-picker-copy-button", we.actionButton), onClick: () => {
1377
+ var G, me;
1378
+ I(u ? ((G = a == null ? void 0 : a.id) == null ? void 0 : G.toString()) ?? "" : ((me = a == null ? void 0 : a.name) == null ? void 0 : me.toString()) ?? ""), t();
1379
+ }, children: /* @__PURE__ */ r.jsx(X, { variant: "caption", className: "text-info", children: /* @__PURE__ */ r.jsx(ns, { size: 16 }) }) })
1380
1380
  ] }),
1381
- /* @__PURE__ */ r.jsx("div", { className: w("luminus-dropdown-picker", be.wrapper, {
1382
- [be.open]: e
1381
+ /* @__PURE__ */ r.jsx("div", { className: w("luminus-dropdown-picker", we.wrapper, {
1382
+ [we.open]: e
1383
1383
  }), style: {
1384
- top: P ? `calc(${_}px - 50vh - 8px)` : `calc(${W}px + 8px)`,
1385
- left: $ ? `calc(${F}px - ${pe})` : L,
1386
- right: $ ? `${F}px` : `calc(${L}px + ${pe})`,
1387
- width: pe,
1388
- justifyContent: P ? "flex-end" : "flex-start"
1389
- }, children: /* @__PURE__ */ r.jsx("div", { ref: g, className: w("shadow rounded", be.dropdown), children: !x && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1390
- d && (m ?? n.length) <= R ? null : /* @__PURE__ */ r.jsx("div", { className: w("search-input-container border-bottom", be.searchInputContainer), children: /* @__PURE__ */ r.jsx(ye.Control, { ref: j, type: "search", size: "sm", className: be.searchInput, placeholder: i.searchPlaceholder, value: b, onChange: (Y) => {
1391
- var fe;
1392
- return N(((fe = Y.target) == null ? void 0 : fe.value) ?? "");
1384
+ top: H ? `calc(${_}px - 50vh - 8px)` : `calc(${z}px + 8px)`,
1385
+ left: $ ? `calc(${F}px - ${Q})` : R,
1386
+ right: $ ? `${F}px` : `calc(${R}px + ${Q})`,
1387
+ width: Q,
1388
+ justifyContent: H ? "flex-end" : "flex-start"
1389
+ }, children: /* @__PURE__ */ r.jsx("div", { ref: g, className: w("shadow rounded", we.dropdown), children: !x && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1390
+ d && (m ?? n.length) <= V ? null : /* @__PURE__ */ r.jsx("div", { className: w("search-input-container border-bottom", we.searchInputContainer), children: /* @__PURE__ */ r.jsx(be.Control, { ref: j, type: "search", size: "sm", className: we.searchInput, placeholder: i.searchPlaceholder, value: b, onChange: (G) => {
1391
+ var me;
1392
+ return N(((me = G.target) == null ? void 0 : me.value) ?? "");
1393
1393
  } }) }),
1394
- v ? /* @__PURE__ */ r.jsx("div", { className: be.loadingContainer, children: /* @__PURE__ */ r.jsx(vn, { animation: "border", variant: "primary" }) }) : n.length > 0 && /* @__PURE__ */ r.jsxs("div", { ref: f, className: w("items", be.itemsContainer), children: [
1395
- l && l.length > 0 && /* @__PURE__ */ r.jsxs("div", { className: w("header-row border-bottom", be.headerRow), children: [
1396
- /* @__PURE__ */ r.jsx("div", { className: be.name }),
1397
- l == null ? void 0 : l.map((Y) => /* @__PURE__ */ r.jsx("div", { className: be.columnItem, style: {
1398
- width: `${Y.width ?? 100}px`,
1399
- minWidth: `${Y.width ?? 100}px`,
1400
- maxWidth: `${Y.width ?? 100}px`
1401
- }, children: /* @__PURE__ */ r.jsx(J, { variant: "caption", children: Y.name }) }, Y.key))
1394
+ v ? /* @__PURE__ */ r.jsx("div", { className: we.loadingContainer, children: /* @__PURE__ */ r.jsx(vn, { animation: "border", variant: "primary" }) }) : n.length > 0 && /* @__PURE__ */ r.jsxs("div", { ref: f, className: w("items", we.itemsContainer), children: [
1395
+ l && l.length > 0 && /* @__PURE__ */ r.jsxs("div", { className: w("header-row border-bottom", we.headerRow), children: [
1396
+ /* @__PURE__ */ r.jsx("div", { className: we.name }),
1397
+ l == null ? void 0 : l.map((G) => /* @__PURE__ */ r.jsx("div", { className: we.columnItem, style: {
1398
+ width: `${G.width ?? 100}px`,
1399
+ minWidth: `${G.width ?? 100}px`,
1400
+ maxWidth: `${G.width ?? 100}px`
1401
+ }, children: /* @__PURE__ */ r.jsx(X, { variant: "caption", children: G.name }) }, G.key))
1402
1402
  ] }),
1403
- n == null ? void 0 : n.map((Y, fe) => /* @__PURE__ */ r.jsxs("button", { id: `item-${fe}`, type: "button", className: w("item cursor-pointer", be.item, {
1404
- [be.focused]: U === fe
1403
+ n == null ? void 0 : n.map((G, me) => /* @__PURE__ */ r.jsxs("button", { id: `item-${me}`, type: "button", className: w("item cursor-pointer", we.item, {
1404
+ [we.focused]: P === me
1405
1405
  }, {
1406
- focused: U === fe
1407
- }), onClick: () => !x && s(Y), onMouseEnter: () => Z(fe), children: [
1408
- /* @__PURE__ */ r.jsx("div", { className: be.name, children: /* @__PURE__ */ r.jsx(J, { variant: "body2", children: u ? Y.id : Y.name }) }),
1409
- l == null ? void 0 : l.map((_e) => /* @__PURE__ */ r.jsx("div", { className: be.columnItem, style: {
1410
- width: `${_e.width ?? 100}px`,
1411
- minWidth: `${_e.width ?? 100}px`,
1412
- maxWidth: `${_e.width ?? 100}px`
1413
- }, children: /* @__PURE__ */ r.jsx(J, { variant: "caption", className: w("text-muted"), children: Y.additionalColumns && Y.additionalColumns[_e.key] }) }, _e.key))
1414
- ] }, Y.id))
1406
+ focused: P === me
1407
+ }), onClick: () => !x && s(G), onMouseEnter: () => J(me), children: [
1408
+ /* @__PURE__ */ r.jsx("div", { className: we.name, children: /* @__PURE__ */ r.jsx(X, { variant: "body2", children: u ? G.id : G.name }) }),
1409
+ l == null ? void 0 : l.map((Ce) => /* @__PURE__ */ r.jsx("div", { className: we.columnItem, style: {
1410
+ width: `${Ce.width ?? 100}px`,
1411
+ minWidth: `${Ce.width ?? 100}px`,
1412
+ maxWidth: `${Ce.width ?? 100}px`
1413
+ }, children: /* @__PURE__ */ r.jsx(X, { variant: "caption", className: w("text-muted"), children: G.additionalColumns && G.additionalColumns[Ce.key] }) }, Ce.key))
1414
+ ] }, G.id))
1415
1415
  ] })
1416
1416
  ] }) }) })
1417
1417
  ] });
@@ -1439,7 +1439,7 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
1439
1439
  header: yi,
1440
1440
  item: bi
1441
1441
  }, wi = ({ show: e, query: t, onCancel: n, groups: a, isLoading: s, searchTypes: o }) => {
1442
- const { texts: { appSearch: i } } = q(ge), c = te(null), l = k((u) => {
1442
+ const { texts: { appSearch: i } } = Z(pe), c = ee(null), l = k((u) => {
1443
1443
  var m;
1444
1444
  const d = (m = o.find((x) => x.key === u.type)) == null ? void 0 : m.toPath;
1445
1445
  return d ? `${d}/${u.searchKey}` : "/not-found";
@@ -1450,8 +1450,8 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
1450
1450
  var d;
1451
1451
  return /* @__PURE__ */ r.jsxs("div", { className: w(Ge.group), children: [
1452
1452
  /* @__PURE__ */ r.jsxs(Je, { to: `/search?query=${t}&type=${u.key.category}`, className: w("group-header", Ge.header), onClick: n, children: [
1453
- /* @__PURE__ */ r.jsx(J, { variant: "body", className: "text-primary", children: u.key.categoryName }),
1454
- /* @__PURE__ */ r.jsxs(J, { variant: "caption", children: [
1453
+ /* @__PURE__ */ r.jsx(X, { variant: "body", className: "text-primary", children: u.key.categoryName }),
1454
+ /* @__PURE__ */ r.jsxs(X, { variant: "caption", children: [
1455
1455
  u.items.length,
1456
1456
  " ",
1457
1457
  i.amountFrom,
@@ -1466,8 +1466,8 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
1466
1466
  className: w("search-item d-flex gap-3 align-items-center justify-content-between", Ge.item),
1467
1467
  onClick: n,
1468
1468
  children: [
1469
- /* @__PURE__ */ r.jsx(J, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
1470
- /* @__PURE__ */ r.jsx(J, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ r.jsx(ss, {}) })
1469
+ /* @__PURE__ */ r.jsx(X, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
1470
+ /* @__PURE__ */ r.jsx(X, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ r.jsx(ss, {}) })
1471
1471
  ]
1472
1472
  },
1473
1473
  x
@@ -1496,24 +1496,24 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
1496
1496
  s(!1);
1497
1497
  });
1498
1498
  }, [e, t, n, c]);
1499
- return M(() => {
1499
+ return A(() => {
1500
1500
  l();
1501
1501
  }, [l]), { isLoading: a, searchItems: o };
1502
1502
  }, id = ({ searchTypes: e, navigateFunction: t, currentPath: n, homePath: a = "/" }) => {
1503
1503
  var y;
1504
- const { texts: { appSearch: s } } = q(ge), [o, i] = O(e.length > 0 ? ((y = e.at(0)) == null ? void 0 : y.key) ?? null : null), c = ne(() => e.find((j) => j.key === o) ?? null, [e, o]), [l, u] = O(""), [d, m] = sa(l, 500), { isLoading: x, searchItems: v } = Di(c, d), [h, g] = O(!1);
1505
- M(() => {
1504
+ const { texts: { appSearch: s } } = Z(pe), [o, i] = O(e.length > 0 ? ((y = e.at(0)) == null ? void 0 : y.key) ?? null : null), c = ne(() => e.find((j) => j.key === o) ?? null, [e, o]), [l, u] = O(""), [d, m] = sa(l, 500), { isLoading: x, searchItems: v } = Di(c, d), [h, g] = O(!1);
1505
+ A(() => {
1506
1506
  (v.length > 0 || x) && g(!0);
1507
1507
  }, [v, x]);
1508
- const p = te(null);
1509
- return M(() => {
1508
+ const p = ee(null);
1509
+ return A(() => {
1510
1510
  var j;
1511
1511
  u(""), n === a && ((j = p.current) == null || j.focus());
1512
- }, [n, a]), /* @__PURE__ */ r.jsx(ye, { onSubmit: (j) => {
1512
+ }, [n, a]), /* @__PURE__ */ r.jsx(be, { onSubmit: (j) => {
1513
1513
  j.preventDefault(), j.stopPropagation(), m.flush(), g(!1), l.length > 2 && t(`/search?query=${l}${c && c.key && `&type=${c == null ? void 0 : c.key}`}`);
1514
1514
  }, children: /* @__PURE__ */ r.jsxs(Nt, { className: Ye.inputGroup, children: [
1515
1515
  /* @__PURE__ */ r.jsx(Nt.Text, { className: w("p-1 rounded", Ye.inputGroupText, Ye.left), children: /* @__PURE__ */ r.jsx(hi, { searchTypes: e, selectedType: c, setSelectedType: i }) }),
1516
- /* @__PURE__ */ r.jsx(ye.Control, { ref: p, placeholder: s.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", Ye.input), value: l, onChange: (j) => {
1516
+ /* @__PURE__ */ r.jsx(be.Control, { ref: p, placeholder: s.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", Ye.input), value: l, onChange: (j) => {
1517
1517
  var f;
1518
1518
  return u(((f = j.target) == null ? void 0 : f.value) ?? "");
1519
1519
  }, onFocus: () => v.length > 0 && g(!0) }),
@@ -1532,7 +1532,7 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
1532
1532
  content: Ri
1533
1533
  }, Ai = ({ title: e, headerContent: t, children: n, className: a, headerClassName: s, contentClassName: o, dontRenderIfNoChildren: i, ...c }) => {
1534
1534
  const l = c.collapsible ? c.controlled ? !1 : c.defaultOpen ?? !1 : !0, [u, d] = O(l), m = c.collapsible ? c.controlled ? c.isOpen : u : !0;
1535
- M(() => {
1535
+ A(() => {
1536
1536
  d(l);
1537
1537
  }, [l]);
1538
1538
  const x = ne(() => !n || !n.toString() || n.toString().split(",").filter((v) => v && v !== "false").length === 0, [n]);
@@ -1545,7 +1545,7 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
1545
1545
  c.collapsible && (c.controlled ? c.onToggle(!c.isOpen) : d(!u));
1546
1546
  }, children: [
1547
1547
  /* @__PURE__ */ r.jsxs("div", { className: w("header-content", Ke.headerContent), children: [
1548
- /* @__PURE__ */ r.jsx(J, { variant: "h6", className: w("text-primary", Ke.title), children: e }),
1548
+ /* @__PURE__ */ r.jsx(X, { variant: "h6", className: w("text-primary", Ke.title), children: e }),
1549
1549
  t ?? null
1550
1550
  ] }),
1551
1551
  c.collapsible && /* @__PURE__ */ r.jsx(pr, { className: w(Ke.collapseIcon, {
@@ -1598,7 +1598,7 @@ var oa = function(e) {
1598
1598
  return Mi ? (!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode)), It.createPortal(this.props.children, this.props.node || this.defaultNode)) : null;
1599
1599
  }
1600
1600
  }]), t;
1601
- }(Ce.Component);
1601
+ }(ke.Component);
1602
1602
  oa.propTypes = {
1603
1603
  children: kt.node.isRequired,
1604
1604
  node: kt.any
@@ -1653,7 +1653,7 @@ var ia = function(e) {
1653
1653
  value: function(a) {
1654
1654
  !this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode));
1655
1655
  var s = this.props.children;
1656
- typeof this.props.children.type == "function" && (s = Ce.cloneElement(this.props.children)), this.portal = It.unstable_renderSubtreeIntoContainer(this, s, this.props.node || this.defaultNode);
1656
+ typeof this.props.children.type == "function" && (s = ke.cloneElement(this.props.children)), this.portal = It.unstable_renderSubtreeIntoContainer(this, s, this.props.node || this.defaultNode);
1657
1657
  }
1658
1658
  }, {
1659
1659
  key: "render",
@@ -1661,14 +1661,14 @@ var ia = function(e) {
1661
1661
  return null;
1662
1662
  }
1663
1663
  }]), t;
1664
- }(Ce.Component);
1664
+ }(ke.Component);
1665
1665
  ia.propTypes = {
1666
1666
  children: kt.node.isRequired,
1667
1667
  node: kt.any
1668
1668
  };
1669
1669
  var an = void 0;
1670
1670
  It.createPortal ? an = oa : an = ia;
1671
- const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20", Qi = "_photo-actions_14acg_26", Zi = "_photo-container_14acg_31", Ji = "_photo_14acg_26", Xi = "_nav-button_14acg_41", el = "_photos-preview_14acg_49", tl = "_selected_14acg_62", nl = "_default-indicator_14acg_66", Se = {
1671
+ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20", Qi = "_photo-actions_14acg_26", Zi = "_photo-container_14acg_31", Ji = "_photo_14acg_26", Xi = "_nav-button_14acg_41", el = "_photos-preview_14acg_49", tl = "_selected_14acg_62", nl = "_default-indicator_14acg_66", Ie = {
1672
1672
  lightbox: Yi,
1673
1673
  show: Ki,
1674
1674
  header: qi,
@@ -1690,10 +1690,10 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1690
1690
  }, la = ({ show: e, onClick: t }) => /* @__PURE__ */ r.jsx("div", { className: w("luminus-backdrop", Wn.backdrop, {
1691
1691
  [Wn.show]: e
1692
1692
  }), onClick: () => t && t() }), ca = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: s, ...o }) => /* @__PURE__ */ r.jsx("img", { ...o, alt: t ?? "", src: e ?? s }), sl = ({ show: e, onClose: t, photos: n, defaultIndex: a, uploadPhotosText: s, noPhotosText: o, onUploadPhotos: i, photoActions: c, baseUrl: l, customToken: u, placeholder: d, ImgComponent: m = ca }) => {
1693
- const x = te(null), [v, h] = O(a), g = n.at(v), p = v > 0, y = v < n.length - 1;
1694
- M(() => {
1693
+ const x = ee(null), [v, h] = O(a), g = n.at(v), p = v > 0, y = v < n.length - 1;
1694
+ A(() => {
1695
1695
  e && h(a);
1696
- }, [a, e]), M(() => {
1696
+ }, [a, e]), A(() => {
1697
1697
  v >= n.length && h(n.length - 1);
1698
1698
  }, [n, v]);
1699
1699
  const j = k((f) => {
@@ -1711,11 +1711,11 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1711
1711
  }, [y, p, t]);
1712
1712
  return kr(j), /* @__PURE__ */ r.jsxs(an, { children: [
1713
1713
  /* @__PURE__ */ r.jsx(la, { show: e, onClick: t }),
1714
- /* @__PURE__ */ r.jsx("div", { ref: x, className: w("luminus-lightbox rounded shadow", Se.lightbox, {
1715
- [Se.show]: e
1714
+ /* @__PURE__ */ r.jsx("div", { ref: x, className: w("luminus-lightbox rounded shadow", Ie.lightbox, {
1715
+ [Ie.show]: e
1716
1716
  }), children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1717
- /* @__PURE__ */ r.jsxs("div", { className: Se.header, children: [
1718
- /* @__PURE__ */ r.jsxs("div", { className: w("rounded", Se.photoActions), children: [
1717
+ /* @__PURE__ */ r.jsxs("div", { className: Ie.header, children: [
1718
+ /* @__PURE__ */ r.jsxs("div", { className: w("rounded", Ie.photoActions), children: [
1719
1719
  i && /* @__PURE__ */ r.jsx(aa, { accept: ".jpg,.jpeg,.png", onUpload: (f) => {
1720
1720
  f.length > 0 && i(Array.from(f));
1721
1721
  }, icon: /* @__PURE__ */ r.jsx(vr, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: s ?? null }),
@@ -1731,23 +1731,23 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1731
1731
  ] }),
1732
1732
  /* @__PURE__ */ r.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ r.jsx(Fe, { style: { fontSize: "32px" } }) })
1733
1733
  ] }),
1734
- n.length === 0 && /* @__PURE__ */ r.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ r.jsx(J, { variant: "body", children: o ?? "No photos available" }) }),
1735
- g && /* @__PURE__ */ r.jsxs("div", { className: Se.photoContainer, children: [
1736
- /* @__PURE__ */ r.jsx("div", { role: p ? "button" : void 0, className: w("align-items-start", Se.navButton), onClick: () => p && h((f) => f - 1), children: p && /* @__PURE__ */ r.jsx(cn, { style: { fontSize: "40px" } }) }),
1737
- /* @__PURE__ */ r.jsx(m, { src: g.lgSrc, alt: g.alt, className: w("rounded", Se.photo), baseUrl: l, customToken: u, placeholder: d }),
1738
- /* @__PURE__ */ r.jsx("div", { role: y ? "button" : void 0, className: w("align-items-end", Se.navButton), onClick: () => y && h((f) => f + 1), children: y && /* @__PURE__ */ r.jsx(dn, { style: { fontSize: "40px" } }) })
1734
+ n.length === 0 && /* @__PURE__ */ r.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ r.jsx(X, { variant: "body", children: o ?? "No photos available" }) }),
1735
+ g && /* @__PURE__ */ r.jsxs("div", { className: Ie.photoContainer, children: [
1736
+ /* @__PURE__ */ r.jsx("div", { role: p ? "button" : void 0, className: w("align-items-start", Ie.navButton), onClick: () => p && h((f) => f - 1), children: p && /* @__PURE__ */ r.jsx(cn, { style: { fontSize: "40px" } }) }),
1737
+ /* @__PURE__ */ r.jsx(m, { src: g.lgSrc, alt: g.alt, className: w("rounded", Ie.photo), baseUrl: l, customToken: u, placeholder: d }),
1738
+ /* @__PURE__ */ r.jsx("div", { role: y ? "button" : void 0, className: w("align-items-end", Ie.navButton), onClick: () => y && h((f) => f + 1), children: y && /* @__PURE__ */ r.jsx(dn, { style: { fontSize: "40px" } }) })
1739
1739
  ] }),
1740
- /* @__PURE__ */ r.jsx("div", { className: Se.photosPreview, children: n.map((f, b) => /* @__PURE__ */ r.jsxs("div", { role: "button", onClick: () => h(b), className: "position-relative", children: [
1741
- /* @__PURE__ */ r.jsx(m, { role: b !== v ? "button" : void 0, src: f.smSrc, alt: f.alt, className: w("rounded", Se.photo, {
1742
- [Se.selected]: b === v
1740
+ /* @__PURE__ */ r.jsx("div", { className: Ie.photosPreview, children: n.map((f, b) => /* @__PURE__ */ r.jsxs("div", { role: "button", onClick: () => h(b), className: "position-relative", children: [
1741
+ /* @__PURE__ */ r.jsx(m, { role: b !== v ? "button" : void 0, src: f.smSrc, alt: f.alt, className: w("rounded", Ie.photo, {
1742
+ [Ie.selected]: b === v
1743
1743
  }), baseUrl: l, customToken: u, placeholder: d }, f.id),
1744
- f.isDefault && /* @__PURE__ */ r.jsx("div", { className: w("text-primary", Se.defaultIndicator), children: /* @__PURE__ */ r.jsx(is, {}) })
1744
+ f.isDefault && /* @__PURE__ */ r.jsx("div", { className: w("text-primary", Ie.defaultIndicator), children: /* @__PURE__ */ r.jsx(is, {}) })
1745
1745
  ] })) })
1746
1746
  ] }) })
1747
1747
  ] });
1748
1748
  }, ol = ({ photos: e, onUploadPhotos: t, uploadPhotosText: n, noPhotosText: a, photoActions: s, baseUrl: o, customToken: i, placeholder: c, ImgComponent: l = ca, noLightboxOnlyButtonOnEmpty: u = !1 }) => {
1749
1749
  const [d, m] = O(null), x = d !== null ? e[d] : null, [v, h] = O(!1);
1750
- return M(() => {
1750
+ return A(() => {
1751
1751
  if (e.length === 0) {
1752
1752
  m(null), h(!1);
1753
1753
  return;
@@ -1771,11 +1771,11 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1771
1771
  ] });
1772
1772
  }, ld = ({ children: e }) => {
1773
1773
  var c, l, u;
1774
- const { useMsal: t, msalScopes: n } = q(cs), { isAuthenticated: a } = ds(), { userLoginState: s } = q(Ft), o = s.state === us.LOGGING_IN, i = s.user && ((c = s.user) == null ? void 0 : c.permissions) && ((u = (l = s.user) == null ? void 0 : l.permissions) == null ? void 0 : u.length) > 0;
1774
+ const { useMsal: t, msalScopes: n } = Z(cs), { isAuthenticated: a } = ds(), { userLoginState: s } = Z(Ft), o = s.state === us.LOGGING_IN, i = s.user && ((c = s.user) == null ? void 0 : c.permissions) && ((u = (l = s.user) == null ? void 0 : l.permissions) == null ? void 0 : u.length) > 0;
1775
1775
  return t ? /* @__PURE__ */ r.jsx(Es, { interactionType: $s.Redirect, authenticationRequest: { scopes: n }, children: o || !a() ? /* @__PURE__ */ r.jsx(In, {}) : s.user ? i ? /* @__PURE__ */ r.jsx(r.Fragment, { children: e }) : /* @__PURE__ */ r.jsx(wt, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ r.jsx(wt, { to: "/no-user-login", replace: !0 }) }) : o ? /* @__PURE__ */ r.jsx(In, {}) : !a() || !s.user ? /* @__PURE__ */ r.jsx(wt, { to: "/login", replace: !0 }) : i ? e : /* @__PURE__ */ r.jsx(wt, { to: "/user-not-permitted", replace: !0 });
1776
1776
  }, da = (e) => {
1777
1777
  const { variant: t, children: n, className: a, size: s = "md", typographyVariant: o = s === "sm" ? "body2" : "body", ...i } = { ...e };
1778
- return /* @__PURE__ */ r.jsx(Qs, { variant: t, className: `text-center ${s === "sm" ? "p-1" : s === "md" ? "p-3" : "p-4"} bg-${t} bg-opacity-10 border-none ${a ?? ""}`, ...i, children: /* @__PURE__ */ r.jsx(J, { variant: o, children: n }) });
1778
+ return /* @__PURE__ */ r.jsx(Qs, { variant: t, className: `text-center ${s === "sm" ? "p-1" : s === "md" ? "p-3" : "p-4"} bg-${t} bg-opacity-10 border-none ${a ?? ""}`, ...i, children: /* @__PURE__ */ r.jsx(X, { variant: o, children: n }) });
1779
1779
  }, il = "_item_1lf6j_1", ll = "_level-success_1lf6j_4", cl = "_level-info_1lf6j_10", dl = "_level-warning_1lf6j_16", ul = "_level-danger_1lf6j_22", fl = "_type-icon_1lf6j_28", Gt = {
1780
1780
  item: il,
1781
1781
  "level-success": "_level-success_1lf6j_4",
@@ -1789,7 +1789,7 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1789
1789
  "type-icon": "_type-icon_1lf6j_28",
1790
1790
  typeIcon: fl
1791
1791
  }, ml = ({ level: e, children: t, customIcon: n, noIcon: a }) => {
1792
- const { ProjectIconComponent: s } = q(ge), o = k(() => {
1792
+ const { ProjectIconComponent: s } = Z(pe), o = k(() => {
1793
1793
  switch (e) {
1794
1794
  case "info":
1795
1795
  return /* @__PURE__ */ r.jsx(s, { icon: "info" });
@@ -1803,7 +1803,7 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1803
1803
  }, [s, e]);
1804
1804
  return /* @__PURE__ */ r.jsxs("div", { className: w("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !a }, Gt.item, Gt[`level-${e}`]), children: [
1805
1805
  !a && /* @__PURE__ */ r.jsx("div", { className: w(Gt.typeIcon), children: n ?? o() }),
1806
- /* @__PURE__ */ r.jsx(J, { variant: "body2", className: "w-100", children: t })
1806
+ /* @__PURE__ */ r.jsx(X, { variant: "body2", className: "w-100", children: t })
1807
1807
  ] });
1808
1808
  }, cd = ({ version: e }) => /* @__PURE__ */ r.jsx("div", { className: "rounded", style: {
1809
1809
  position: "fixed",
@@ -1813,7 +1813,7 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1813
1813
  backgroundColor: "rgba(255, 255, 255, 0.5)",
1814
1814
  padding: "4px",
1815
1815
  pointerEvents: "all"
1816
- }, children: /* @__PURE__ */ r.jsxs(J, { variant: "caption", className: "w-100 text-end", children: [
1816
+ }, children: /* @__PURE__ */ r.jsxs(X, { variant: "caption", className: "w-100 text-end", children: [
1817
1817
  "verze ",
1818
1818
  e
1819
1819
  ] }) }), hl = "_submit-container_a9slg_1", gl = "_spacer_a9slg_14", zn = {
@@ -1838,16 +1838,16 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1838
1838
  "step-icon": "_step-icon_g1754_14",
1839
1839
  stepIcon: _l
1840
1840
  }, dd = ({ steps: e }) => /* @__PURE__ */ r.jsx("div", { className: qe.timeline, children: e.sort((t, n) => Hs(t.date ?? /* @__PURE__ */ new Date(), n.date ?? /* @__PURE__ */ new Date())).map((t, n) => /* @__PURE__ */ r.jsxs("div", { className: w("row g-0 gx-3", qe.stepContainer), children: [
1841
- /* @__PURE__ */ r.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ r.jsxs(J, { variant: "caption", className: w("h-100 d-flex flex-column align-items-end justify-content-center gap-0", qe.stepDate), children: [
1841
+ /* @__PURE__ */ r.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ r.jsxs(X, { variant: "caption", className: w("h-100 d-flex flex-column align-items-end justify-content-center gap-0", qe.stepDate), children: [
1842
1842
  /* @__PURE__ */ r.jsx("div", { children: xt(t.date, "dd.MM.yyyy") }),
1843
1843
  /* @__PURE__ */ r.jsx("div", { children: xt(t.date, "HH:mm") })
1844
1844
  ] }) }),
1845
1845
  /* @__PURE__ */ r.jsx("div", { className: "col-9", children: /* @__PURE__ */ r.jsxs("div", { className: w("h-100 d-flex flex-column gap-1 border-start border-2 p-3", qe.stepContent), children: [
1846
1846
  /* @__PURE__ */ r.jsxs("div", { className: w("d-flex gap-2 align-items-center", qe.contentHeader), children: [
1847
1847
  t.person && /* @__PURE__ */ r.jsx(jr, { name: t.person.name ?? "", size: 22, fontSize: 12 }),
1848
- typeof t.title == "string" ? /* @__PURE__ */ r.jsx(J, { variant: "body", className: "fw-bold", children: t.title }) : t.title
1848
+ typeof t.title == "string" ? /* @__PURE__ */ r.jsx(X, { variant: "body", className: "fw-bold", children: t.title }) : t.title
1849
1849
  ] }),
1850
- t.text && /* @__PURE__ */ r.jsx(J, { variant: "body2", className: qe.contentText, children: t.text }),
1850
+ t.text && /* @__PURE__ */ r.jsx(X, { variant: "body2", className: qe.contentText, children: t.text }),
1851
1851
  /* @__PURE__ */ r.jsx("div", { className: w("text-primary", qe.stepIcon), children: t.icon ?? /* @__PURE__ */ r.jsx(fs, {}) })
1852
1852
  ] }) })
1853
1853
  ] }, n)) }), Nl = (e, t, n, a = !0) => {
@@ -1861,7 +1861,7 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1861
1861
  i(!1), l(null);
1862
1862
  });
1863
1863
  }, [s, e]);
1864
- return M(() => {
1864
+ return A(() => {
1865
1865
  const d = new AbortController();
1866
1866
  return u(d.signal), () => {
1867
1867
  d.abort();
@@ -1869,7 +1869,7 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1869
1869
  }, [u]), { data: c, setData: l, reloadData: u, isLoading: o };
1870
1870
  }, Un = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: s, ...o }) => {
1871
1871
  const { data: i } = Nl(e, n, a), [c, l] = O(null);
1872
- return M(() => {
1872
+ return A(() => {
1873
1873
  let u = null;
1874
1874
  return i !== null ? (u = URL.createObjectURL(i), l(u)) : l(null), () => {
1875
1875
  u !== null && URL.revokeObjectURL(u);
@@ -1881,10 +1881,10 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1881
1881
  const a = t(e);
1882
1882
  return /* @__PURE__ */ r.jsx(Je, { to: a, className: "luminus-input-container position-relative w-100 text-decoration-none", children: n });
1883
1883
  }, fa = ({ InputContainer: e = et, label: t, value: n, onChange: a, hidden: s, disabled: o, className: i, type: c, withoutLabel: l, indeterminate: u }) => {
1884
- const d = te(null);
1885
- return M(() => {
1884
+ const d = ee(null);
1885
+ return A(() => {
1886
1886
  d.current && (d.current.indeterminate = u ?? !1);
1887
- }, [d, u]), /* @__PURE__ */ r.jsx(e, { isForCheckInput: !0, hidden: s, label: t ?? "", withoutLabel: l, className: i, children: /* @__PURE__ */ r.jsx(ye.Check, { ref: d, id: `check-${t}`, type: c ?? "checkbox", label: t ?? "", checked: n, onChange: (m) => {
1887
+ }, [d, u]), /* @__PURE__ */ r.jsx(e, { isForCheckInput: !0, hidden: s, label: t ?? "", withoutLabel: l, className: i, children: /* @__PURE__ */ r.jsx(be.Check, { ref: d, id: `check-${t}`, type: c ?? "checkbox", label: t ?? "", checked: n, onChange: (m) => {
1888
1888
  var x;
1889
1889
  a && a(((x = m.target) == null ? void 0 : x.checked) ?? !1);
1890
1890
  }, className: i ?? "", hidden: s ?? !1, disabled: o ?? !1 }) });
@@ -1894,12 +1894,12 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1894
1894
  return;
1895
1895
  const F = x ?? null;
1896
1896
  a(y ? F ? Number(F) : null : (F == null ? void 0 : F.toString()) ?? "");
1897
- }, [x, y, a]), f = te(null), [b, N] = O((n == null ? void 0 : n.toString()) ?? ""), S = k((F) => {
1897
+ }, [x, y, a]), f = ee(null), [b, N] = O((n == null ? void 0 : n.toString()) ?? ""), S = k((F) => {
1898
1898
  const _ = F;
1899
1899
  a && (y && a(_ == null || _ === "" ? null : Number(_)), a(_ || null));
1900
- }, [y, a]), I = k((F) => {
1901
- var W;
1902
- const _ = (W = F.target) == null ? void 0 : W.value;
1900
+ }, [y, a]), D = k((F) => {
1901
+ var z;
1902
+ const _ = (z = F.target) == null ? void 0 : z.value;
1903
1903
  if (!s) {
1904
1904
  S(_);
1905
1905
  return;
@@ -1908,12 +1908,12 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1908
1908
  S(_);
1909
1909
  }, s);
1910
1910
  }, [s, S]);
1911
- M(() => {
1911
+ A(() => {
1912
1912
  N(n === null ? "" : n.toString());
1913
1913
  }, [n]);
1914
- const [D, C] = O(!1), L = ms(t, n ? n.toString() ?? null : null, D);
1914
+ const [I, C] = O(!1), R = ms(t, n ? n.toString() ?? null : null, I);
1915
1915
  return /* @__PURE__ */ r.jsxs(e, { withoutLabel: i, label: o ?? "", hidden: u, className: h, children: [
1916
- /* @__PURE__ */ r.jsx(ye.Control, { type: L, placeholder: c ?? o, size: l, value: s ? b : (n == null ? void 0 : n.toString()) ?? "", onChange: I, className: h ?? "", hidden: u, disabled: d ?? !1, list: v, onFocus: (F) => {
1916
+ /* @__PURE__ */ r.jsx(be.Control, { type: R, placeholder: c ?? o, size: l, value: s ? b : (n == null ? void 0 : n.toString()) ?? "", onChange: D, className: h ?? "", hidden: u, disabled: d ?? !1, list: v, onFocus: (F) => {
1917
1917
  C(!0), !p && F.target.select();
1918
1918
  }, onBlur: () => C(!1), step: g }),
1919
1919
  m && n !== null && a && !d && /* @__PURE__ */ r.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ r.jsx(Fe, {}) }) })
@@ -1943,7 +1943,7 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1943
1943
  a(i ? p ? Number(p) : null : (p == null ? void 0 : p.toString()) ?? "");
1944
1944
  }, [m, i, a]);
1945
1945
  return /* @__PURE__ */ r.jsxs(e, { withoutLabel: o, label: s ?? "", hidden: l, className: v, children: [
1946
- /* @__PURE__ */ r.jsxs(ye.Select, { size: c, value: t ?? "", onChange: (p) => {
1946
+ /* @__PURE__ */ r.jsxs(be.Select, { size: c, value: t ?? "", onChange: (p) => {
1947
1947
  var j;
1948
1948
  if (!a)
1949
1949
  return;
@@ -1956,46 +1956,46 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
1956
1956
  d && t && a && !u && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ r.jsx(Fe, {}) }) })
1957
1957
  ] });
1958
1958
  }, ud = ({ InputContainer: e = et, items: t, defaultSelection: n, selectedItemNavigateTo: a, onSearchQueryChange: s, texts: o, isLoading: i, isNumber: c, onSelect: l, label: u, withoutLabel: d, size: m, dropdownItemsNameWidth: x, additionalColumns: v, hidden: h, disabled: g, displayIdAsName: p, CustomOnChangeComponent: y, className: j }) => {
1959
- var _, W;
1959
+ var _, z;
1960
1960
  const [f, b] = O(n), [N, S] = O(!1);
1961
- M(() => {
1961
+ A(() => {
1962
1962
  b((n == null ? void 0 : n.id) == null && (n == null ? void 0 : n.name) == null ? null : { id: n.id, name: n.name });
1963
1963
  }, [n == null ? void 0 : n.id, n == null ? void 0 : n.name]);
1964
- const I = k((B) => {
1965
- b(B);
1966
- }, []), D = k((B) => {
1967
- S(!1), I(B);
1968
- }, [I]);
1969
- M(() => {
1964
+ const D = k((M) => {
1965
+ b(M);
1966
+ }, []), I = k((M) => {
1967
+ S(!1), D(M);
1968
+ }, [D]);
1969
+ A(() => {
1970
1970
  l && l(f);
1971
1971
  }, [f, l]);
1972
- const C = te(null), L = a !== void 0, F = L && f !== null;
1972
+ const C = ee(null), R = a !== void 0, F = R && f !== null;
1973
1973
  return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(e, { withoutLabel: d, label: u ?? "", hidden: h, inputContainerClassName: w({ "luminus-dropdown-select-open": N }), className: j, children: [
1974
1974
  /* @__PURE__ */ r.jsxs(ua, { currentSelection: f, selectedItemNavigateTo: a, children: [
1975
- p && (f == null ? void 0 : f.name) && /* @__PURE__ */ r.jsx(J, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: f.name }),
1976
- /* @__PURE__ */ r.jsxs(ye.Select, { ref: C, size: m, value: (f == null ? void 0 : f.id) ?? "", onChange: (B) => b({
1977
- id: c ? Number(B.target.value) ?? null : B.target.value,
1975
+ p && (f == null ? void 0 : f.name) && /* @__PURE__ */ r.jsx(X, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: f.name }),
1976
+ /* @__PURE__ */ r.jsxs(be.Select, { ref: C, size: m, value: (f == null ? void 0 : f.id) ?? "", onChange: (M) => b({
1977
+ id: c ? Number(M.target.value) ?? null : M.target.value,
1978
1978
  name: ""
1979
- }), onMouseDown: (B) => {
1980
- B.currentTarget.focus(), B.preventDefault();
1979
+ }), onMouseDown: (M) => {
1980
+ M.currentTarget.focus(), M.preventDefault();
1981
1981
  }, onClick: () => {
1982
- !L && !g && S(!0);
1982
+ !R && !g && S(!0);
1983
1983
  }, className: w("w-100", {
1984
1984
  "luminus-dropdown-picker-disabled": g,
1985
1985
  "luminus-dropdown-picker-link": F
1986
1986
  }), hidden: h, children: [
1987
1987
  /* @__PURE__ */ r.jsx("option", { value: "" }),
1988
1988
  n && /* @__PURE__ */ r.jsx("option", { value: n.id ?? void 0, children: n.name && ((_ = n.name) == null ? void 0 : _.length) > 0 ? n.name : n.id }),
1989
- f && /* @__PURE__ */ r.jsx("option", { value: f.id ?? void 0, children: f.name && ((W = f.name) == null ? void 0 : W.length) > 0 ? f.name : f.id })
1989
+ f && /* @__PURE__ */ r.jsx("option", { value: f.id ?? void 0, children: f.name && ((z = f.name) == null ? void 0 : z.length) > 0 ? f.name : f.id })
1990
1990
  ] }),
1991
- y || !g && L ? /* @__PURE__ */ r.jsxs("div", { className: "custom-picker-button", children: [
1992
- !y && !g && L && /* @__PURE__ */ r.jsx(re, { size: "sm", color: "secondary", onClick: (B) => {
1993
- B.preventDefault(), B.stopPropagation(), S(!0);
1991
+ y || !g && R ? /* @__PURE__ */ r.jsxs("div", { className: "custom-picker-button", children: [
1992
+ !y && !g && R && /* @__PURE__ */ r.jsx(re, { size: "sm", color: "secondary", onClick: (M) => {
1993
+ M.preventDefault(), M.stopPropagation(), S(!0);
1994
1994
  }, children: /* @__PURE__ */ r.jsx(yr, {}) }),
1995
1995
  y ?? null
1996
1996
  ] }) : null
1997
1997
  ] }),
1998
- C.current && /* @__PURE__ */ r.jsx(jn, { show: N, onCancel: () => S(!1), items: t, currentSelection: f, onSelectionChange: D, onSearchQueryChange: s, texts: o, itemsNameWidth: x, additionalColumns: v, isLoading: i, disabled: g, inputRef: C })
1998
+ C.current && /* @__PURE__ */ r.jsx(jn, { show: N, onCancel: () => S(!1), items: t, currentSelection: f, onSelectionChange: I, onSearchQueryChange: s, texts: o, itemsNameWidth: x, additionalColumns: v, isLoading: i, disabled: g, inputRef: C })
1999
1999
  ] }) });
2000
2000
  }, fd = ({ InputContainer: e = et, value: t, onChange: n, label: a, size: s, showClearIcon: o, clearValue: i, hidden: c, disabled: l, rows: u, withoutLabel: d, debounceMs: m, className: x }) => {
2001
2001
  const v = k(() => {
@@ -2003,7 +2003,7 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
2003
2003
  return;
2004
2004
  const f = i ?? null;
2005
2005
  n((f == null ? void 0 : f.toString()) ?? "");
2006
- }, [i, n]), h = te(null), [g, p] = O((t == null ? void 0 : t.toString()) ?? ""), y = k((f) => {
2006
+ }, [i, n]), h = ee(null), [g, p] = O((t == null ? void 0 : t.toString()) ?? ""), y = k((f) => {
2007
2007
  const b = f;
2008
2008
  n && n(b || null);
2009
2009
  }, [n]), j = k((f) => {
@@ -2017,41 +2017,41 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
2017
2017
  y(b);
2018
2018
  }, m);
2019
2019
  }, [m, y]);
2020
- return M(() => {
2020
+ return A(() => {
2021
2021
  p(t === null ? "" : t.toString());
2022
2022
  }, [t]), /* @__PURE__ */ r.jsxs(e, { label: a ?? "", hidden: c, withoutLabel: d, className: x, isForTextAreaInput: !0, children: [
2023
- /* @__PURE__ */ r.jsx(ye.Control, { as: "textarea", size: s, value: m ? g : t ?? "", onChange: j, hidden: c, disabled: l, rows: u ?? 2, className: "w-100" }),
2023
+ /* @__PURE__ */ r.jsx(be.Control, { as: "textarea", size: s, value: m ? g : t ?? "", onChange: j, hidden: c, disabled: l, rows: u ?? 2, className: "w-100" }),
2024
2024
  o && t && n && !l && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: v, children: /* @__PURE__ */ r.jsx(Fe, {}) }) })
2025
2025
  ] });
2026
2026
  }, md = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, label: s, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: x, step: v, stepperStep: h = 1, min: g, max: p }) => {
2027
2027
  const y = k(() => {
2028
2028
  if (!n)
2029
2029
  return;
2030
- const I = m ?? null;
2031
- n(I ? Number(I) : null);
2032
- }, [m, n]), j = te(null), [f, b] = O((t == null ? void 0 : t.toString()) ?? ""), N = k((I) => {
2033
- const D = I;
2034
- n && n(D == null || D === "" ? null : ht(Number(D), g, p));
2035
- }, [p, g, n]), S = k((I) => {
2030
+ const D = m ?? null;
2031
+ n(D ? Number(D) : null);
2032
+ }, [m, n]), j = ee(null), [f, b] = O((t == null ? void 0 : t.toString()) ?? ""), N = k((D) => {
2033
+ const I = D;
2034
+ n && n(I == null || I === "" ? null : ht(Number(I), g, p));
2035
+ }, [p, g, n]), S = k((D) => {
2036
2036
  var C;
2037
- const D = (C = I.target) == null ? void 0 : C.value;
2037
+ const I = (C = D.target) == null ? void 0 : C.value;
2038
2038
  if (!a) {
2039
- N(D);
2039
+ N(I);
2040
2040
  return;
2041
2041
  }
2042
- b(ht(Number(D), g, p).toString()), j.current !== null && window.clearTimeout(j.current), j.current = window.setTimeout(() => {
2043
- N(D);
2042
+ b(ht(Number(I), g, p).toString()), j.current !== null && window.clearTimeout(j.current), j.current = window.setTimeout(() => {
2043
+ N(I);
2044
2044
  }, a);
2045
2045
  }, [a, N, p, g]);
2046
- return M(() => {
2046
+ return A(() => {
2047
2047
  b(t === null ? "" : ht(t, g, p).toString());
2048
2048
  }, [p, g, t]), /* @__PURE__ */ r.jsx(e, { withoutLabel: o, label: s ?? "", hidden: l, className: x, children: /* @__PURE__ */ r.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
2049
- /* @__PURE__ */ r.jsx(ye.Control, { type: "number", placeholder: i ?? s, size: c, value: a ? f : t ?? "", onChange: S, className: `luminus-numeric-stepper ${x ?? ""}`, hidden: l, disabled: u ?? !1, step: v }),
2050
- /* @__PURE__ */ r.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (I) => {
2051
- I.preventDefault(), I.stopPropagation(), N(((t ?? 0) - h).toString());
2049
+ /* @__PURE__ */ r.jsx(be.Control, { type: "number", placeholder: i ?? s, size: c, value: a ? f : t ?? "", onChange: S, className: `luminus-numeric-stepper ${x ?? ""}`, hidden: l, disabled: u ?? !1, step: v }),
2050
+ /* @__PURE__ */ r.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (D) => {
2051
+ D.preventDefault(), D.stopPropagation(), N(((t ?? 0) - h).toString());
2052
2052
  }, children: /* @__PURE__ */ r.jsx(br, {}) }) }),
2053
- /* @__PURE__ */ r.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (I) => {
2054
- I.preventDefault(), I.stopPropagation(), N(((t ?? 0) + h).toString());
2053
+ /* @__PURE__ */ r.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (D) => {
2054
+ D.preventDefault(), D.stopPropagation(), N(((t ?? 0) + h).toString());
2055
2055
  }, children: /* @__PURE__ */ r.jsx(wr, {}) }) }),
2056
2056
  d && t && n && !u && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ r.jsx(Fe, {}) }) })
2057
2057
  ] }) });
@@ -2111,9 +2111,9 @@ function Il(e, t, n) {
2111
2111
  return s = s === -1 ? e.length : s, e.substring(0, s) + e.substring(s, e.length).replace(a, "$1" + t);
2112
2112
  }
2113
2113
  function Dl(e) {
2114
- var t = te(e);
2114
+ var t = ee(e);
2115
2115
  t.current = e;
2116
- var n = te(function() {
2116
+ var n = ee(function() {
2117
2117
  for (var a = [], s = arguments.length; s--; ) a[s] = arguments[s];
2118
2118
  return t.current.apply(t, a);
2119
2119
  });
@@ -2316,135 +2316,135 @@ function Vl(e) {
2316
2316
  j === void 0 && (j = Al);
2317
2317
  var f = e.isValidInputCharacter;
2318
2318
  f === void 0 && (f = yt);
2319
- var b = e.isCharacterSame, N = ma(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = ja(y, l, !!u, i, c, d), I = S[0], D = I.formattedValue, C = I.numAsString, L = S[1], F = te(), _ = te({ formattedValue: D, numAsString: C }), W = function(T, V) {
2320
- _.current = { formattedValue: T.formattedValue, numAsString: T.value }, L(T, V);
2321
- }, B = O(!1), X = B[0], R = B[1], $ = te(null), P = te({
2319
+ var b = e.isCharacterSame, N = ma(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = ja(y, l, !!u, i, c, d), D = S[0], I = D.formattedValue, C = D.numAsString, R = S[1], F = ee(), _ = ee({ formattedValue: I, numAsString: C }), z = function(T, B) {
2320
+ _.current = { formattedValue: T.formattedValue, numAsString: T.value }, R(T, B);
2321
+ }, M = O(!1), K = M[0], V = M[1], $ = ee(null), H = ee({
2322
2322
  setCaretTimeout: null,
2323
2323
  focusTimeout: null
2324
2324
  });
2325
- M(function() {
2326
- return R(!0), function() {
2327
- clearTimeout(P.current.setCaretTimeout), clearTimeout(P.current.focusTimeout);
2325
+ A(function() {
2326
+ return V(!0), function() {
2327
+ clearTimeout(H.current.setCaretTimeout), clearTimeout(H.current.focusTimeout);
2328
2328
  };
2329
2329
  }, []);
2330
- var U = i, Z = function(T, V) {
2331
- var K = parseFloat(V);
2330
+ var P = i, J = function(T, B) {
2331
+ var Y = parseFloat(B);
2332
2332
  return {
2333
2333
  formattedValue: T,
2334
- value: V,
2335
- floatValue: isNaN(K) ? void 0 : K
2334
+ value: B,
2335
+ floatValue: isNaN(Y) ? void 0 : Y
2336
2336
  };
2337
- }, Q = function(T, V, K) {
2338
- T.selectionStart === 0 && T.selectionEnd === T.value.length || (Qe(T, V), P.current.setCaretTimeout = setTimeout(function() {
2339
- T.value === K && T.selectionStart !== V && Qe(T, V);
2337
+ }, q = function(T, B, Y) {
2338
+ T.selectionStart === 0 && T.selectionEnd === T.value.length || (Qe(T, B), H.current.setCaretTimeout = setTimeout(function() {
2339
+ T.value === Y && T.selectionStart !== B && Qe(T, B);
2340
2340
  }, 0));
2341
- }, E = function(T, V, K) {
2342
- return Kn(T, V, j(T), K);
2343
- }, ee = function(T, V, K) {
2344
- var le = j(V), we = Rl(V, D, T, K, le, f, b);
2345
- return we = Kn(V, we, le), we;
2346
- }, A = function(T) {
2347
- var V = T.formattedValue;
2348
- V === void 0 && (V = "");
2349
- var K = T.input, le = T.source, we = T.event, ce = T.numAsString, se;
2350
- if (K) {
2351
- var ke = T.inputValue || K.value, De = Yt(K);
2352
- K.value = V, se = ee(ke, V, De), se !== void 0 && Q(K, se, V);
2341
+ }, E = function(T, B, Y) {
2342
+ return Kn(T, B, j(T), Y);
2343
+ }, te = function(T, B, Y) {
2344
+ var le = j(B), _e = Rl(B, I, T, Y, le, f, b);
2345
+ return _e = Kn(B, _e, le), _e;
2346
+ }, L = function(T) {
2347
+ var B = T.formattedValue;
2348
+ B === void 0 && (B = "");
2349
+ var Y = T.input, le = T.source, _e = T.event, ce = T.numAsString, se;
2350
+ if (Y) {
2351
+ var Se = T.inputValue || Y.value, De = Yt(Y);
2352
+ Y.value = B, se = te(Se, B, De), se !== void 0 && q(Y, se, B);
2353
2353
  }
2354
- V !== D && W(Z(V, ce), { event: we, source: le });
2354
+ B !== I && z(J(B, ce), { event: _e, source: le });
2355
2355
  };
2356
- M(function() {
2357
- var T = _.current, V = T.formattedValue, K = T.numAsString;
2358
- (D !== V || C !== K) && W(Z(D, C), {
2356
+ A(function() {
2357
+ var T = _.current, B = T.formattedValue, Y = T.numAsString;
2358
+ (I !== B || C !== Y) && z(J(I, C), {
2359
2359
  event: void 0,
2360
2360
  source: jt.props
2361
2361
  });
2362
- }, [D, C]);
2363
- var z = $.current ? Yt($.current) : void 0, me = typeof window < "u" ? Ds : M;
2364
- me(function() {
2362
+ }, [I, C]);
2363
+ var U = $.current ? Yt($.current) : void 0, ue = typeof window < "u" ? Ds : A;
2364
+ ue(function() {
2365
2365
  var T = $.current;
2366
- if (D !== _.current.formattedValue && T) {
2367
- var V = ee(_.current.formattedValue, D, z);
2368
- T.value = D, Q(T, V, D);
2366
+ if (I !== _.current.formattedValue && T) {
2367
+ var B = te(_.current.formattedValue, I, U);
2368
+ T.value = I, q(T, B, I);
2369
2369
  }
2370
- }, [D]);
2371
- var G = function(T, V, K) {
2372
- var le = V.target, we = F.current ? El(F.current, le.selectionEnd) : va(D, T), ce = Object.assign(Object.assign({}, we), { lastValue: D }), se = c(T, ce), ke = U(se);
2373
- if (se = c(ke, void 0), m && !m(Z(ke, se))) {
2374
- var De = V.target, H = Yt(De), ae = ee(T, D, H);
2375
- return De.value = D, Q(De, ae, D), !1;
2370
+ }, [I]);
2371
+ var he = function(T, B, Y) {
2372
+ var le = B.target, _e = F.current ? El(F.current, le.selectionEnd) : va(I, T), ce = Object.assign(Object.assign({}, _e), { lastValue: I }), se = c(T, ce), Se = P(se);
2373
+ if (se = c(Se, void 0), m && !m(J(Se, se))) {
2374
+ var De = B.target, W = Yt(De), ae = te(T, I, W);
2375
+ return De.value = I, q(De, ae, I), !1;
2376
2376
  }
2377
- return A({
2378
- formattedValue: ke,
2377
+ return L({
2378
+ formattedValue: Se,
2379
2379
  numAsString: se,
2380
2380
  inputValue: T,
2381
- event: V,
2382
- source: K,
2383
- input: V.target
2381
+ event: B,
2382
+ source: Y,
2383
+ input: B.target
2384
2384
  }), !0;
2385
- }, pe = function(T, V) {
2386
- V === void 0 && (V = 0);
2387
- var K = T.selectionStart, le = T.selectionEnd;
2388
- F.current = { selectionStart: K, selectionEnd: le + V };
2389
- }, Ne = function(T) {
2390
- var V = T.target, K = V.value, le = G(K, T, jt.event);
2385
+ }, Q = function(T, B) {
2386
+ B === void 0 && (B = 0);
2387
+ var Y = T.selectionStart, le = T.selectionEnd;
2388
+ F.current = { selectionStart: Y, selectionEnd: le + B };
2389
+ }, je = function(T) {
2390
+ var B = T.target, Y = B.value, le = he(Y, T, jt.event);
2391
2391
  le && x(T), F.current = void 0;
2392
- }, Ie = function(T) {
2393
- var V = T.target, K = T.key, le = V.selectionStart, we = V.selectionEnd, ce = V.value;
2392
+ }, Ne = function(T) {
2393
+ var B = T.target, Y = T.key, le = B.selectionStart, _e = B.selectionEnd, ce = B.value;
2394
2394
  ce === void 0 && (ce = "");
2395
2395
  var se;
2396
- K === "ArrowLeft" || K === "Backspace" ? se = Math.max(le - 1, 0) : K === "ArrowRight" ? se = Math.min(le + 1, ce.length) : K === "Delete" && (se = le);
2397
- var ke = 0;
2398
- K === "Delete" && le === we && (ke = 1);
2399
- var De = K === "ArrowLeft" || K === "ArrowRight";
2400
- if (se === void 0 || le !== we && !De) {
2401
- v(T), pe(V, ke);
2396
+ Y === "ArrowLeft" || Y === "Backspace" ? se = Math.max(le - 1, 0) : Y === "ArrowRight" ? se = Math.min(le + 1, ce.length) : Y === "Delete" && (se = le);
2397
+ var Se = 0;
2398
+ Y === "Delete" && le === _e && (Se = 1);
2399
+ var De = Y === "ArrowLeft" || Y === "ArrowRight";
2400
+ if (se === void 0 || le !== _e && !De) {
2401
+ v(T), Q(B, Se);
2402
2402
  return;
2403
2403
  }
2404
- var H = se;
2404
+ var W = se;
2405
2405
  if (De) {
2406
- var ae = K === "ArrowLeft" ? "left" : "right";
2407
- H = E(ce, se, ae), H !== se && T.preventDefault();
2408
- } else K === "Delete" && !f(ce[se]) ? H = E(ce, se, "right") : K === "Backspace" && !f(ce[se]) && (H = E(ce, se, "left"));
2409
- H !== se && Q(V, H, ce), v(T), pe(V, ke);
2406
+ var ae = Y === "ArrowLeft" ? "left" : "right";
2407
+ W = E(ce, se, ae), W !== se && T.preventDefault();
2408
+ } else Y === "Delete" && !f(ce[se]) ? W = E(ce, se, "right") : Y === "Backspace" && !f(ce[se]) && (W = E(ce, se, "left"));
2409
+ W !== se && q(B, W, ce), v(T), Q(B, Se);
2410
2410
  }, ze = function(T) {
2411
- var V = T.target, K = function() {
2412
- var le = V.selectionStart, we = V.selectionEnd, ce = V.value;
2413
- if (ce === void 0 && (ce = ""), le === we) {
2411
+ var B = T.target, Y = function() {
2412
+ var le = B.selectionStart, _e = B.selectionEnd, ce = B.value;
2413
+ if (ce === void 0 && (ce = ""), le === _e) {
2414
2414
  var se = E(ce, le);
2415
- se !== le && Q(V, se, ce);
2415
+ se !== le && q(B, se, ce);
2416
2416
  }
2417
2417
  };
2418
- K(), requestAnimationFrame(function() {
2419
- K();
2420
- }), h(T), pe(V);
2421
- }, Y = function(T) {
2418
+ Y(), requestAnimationFrame(function() {
2419
+ Y();
2420
+ }), h(T), Q(B);
2421
+ }, G = function(T) {
2422
2422
  T.persist && T.persist();
2423
- var V = T.target, K = T.currentTarget;
2424
- $.current = V, P.current.focusTimeout = setTimeout(function() {
2425
- var le = V.selectionStart, we = V.selectionEnd, ce = V.value;
2423
+ var B = T.target, Y = T.currentTarget;
2424
+ $.current = B, H.current.focusTimeout = setTimeout(function() {
2425
+ var le = B.selectionStart, _e = B.selectionEnd, ce = B.value;
2426
2426
  ce === void 0 && (ce = "");
2427
2427
  var se = E(ce, le);
2428
- se !== le && !(le === 0 && we === ce.length) && Q(V, se, ce), g(Object.assign(Object.assign({}, T), { currentTarget: K }));
2428
+ se !== le && !(le === 0 && _e === ce.length) && q(B, se, ce), g(Object.assign(Object.assign({}, T), { currentTarget: Y }));
2429
2429
  }, 0);
2430
- }, fe = function(T) {
2431
- $.current = null, clearTimeout(P.current.focusTimeout), clearTimeout(P.current.setCaretTimeout), p(T);
2432
- }, _e = X && Ol() ? "numeric" : void 0, Ue = Object.assign({ inputMode: _e }, N, {
2430
+ }, me = function(T) {
2431
+ $.current = null, clearTimeout(H.current.focusTimeout), clearTimeout(H.current.setCaretTimeout), p(T);
2432
+ }, Ce = K && Ol() ? "numeric" : void 0, Ue = Object.assign({ inputMode: Ce }, N, {
2433
2433
  type: t,
2434
- value: D,
2435
- onChange: Ne,
2436
- onKeyDown: Ie,
2434
+ value: I,
2435
+ onChange: je,
2436
+ onKeyDown: Ne,
2437
2437
  onMouseUp: ze,
2438
- onFocus: Y,
2439
- onBlur: fe
2438
+ onFocus: G,
2439
+ onBlur: me
2440
2440
  });
2441
2441
  if (n === "text")
2442
- return s ? Ce.createElement(Ce.Fragment, null, s(D, N) || null) : Ce.createElement("span", Object.assign({}, N, { ref: o }), D);
2442
+ return s ? ke.createElement(ke.Fragment, null, s(I, N) || null) : ke.createElement("span", Object.assign({}, N, { ref: o }), I);
2443
2443
  if (a) {
2444
2444
  var nt = a;
2445
- return Ce.createElement(nt, Object.assign({}, Ue, { ref: o }));
2445
+ return ke.createElement(nt, Object.assign({}, Ue, { ref: o }));
2446
2446
  }
2447
- return Ce.createElement("input", Object.assign({}, Ue, { ref: o }));
2447
+ return ke.createElement("input", Object.assign({}, Ue, { ref: o }));
2448
2448
  }
2449
2449
  function qn(e, t) {
2450
2450
  var n = t.decimalScale, a = t.fixedDecimalScale, s = t.prefix;
@@ -2492,25 +2492,25 @@ function zl(e, t, n) {
2492
2492
  var p = c === 0 ? "" : h;
2493
2493
  e = e.substring(0, d) + p + e.substring(d + 1, e.length);
2494
2494
  }
2495
- var y = function($, P, U) {
2496
- var Z = !1, Q = !1;
2497
- o.startsWith("-") ? Z = !1 : $.startsWith("--") ? (Z = !1, Q = !0) : i.startsWith("-") && $.length === i.length ? Z = !1 : $[0] === "-" && (Z = !0);
2498
- var E = Z ? 1 : 0;
2499
- return Q && (E = 2), E && ($ = $.substring(E), P -= E, U -= E), { value: $, start: P, end: U, hasNegation: Z };
2495
+ var y = function($, H, P) {
2496
+ var J = !1, q = !1;
2497
+ o.startsWith("-") ? J = !1 : $.startsWith("--") ? (J = !1, q = !0) : i.startsWith("-") && $.length === i.length ? J = !1 : $[0] === "-" && (J = !0);
2498
+ var E = J ? 1 : 0;
2499
+ return q && (E = 2), E && ($ = $.substring(E), H -= E, P -= E), { value: $, start: H, end: P, hasNegation: J };
2500
2500
  }, j = y(e, d, m), f = j.hasNegation;
2501
2501
  a = j, e = a.value, d = a.start, m = a.end;
2502
- var b = y(t.lastValue, l.start, l.end), N = b.start, S = b.end, I = b.value, D = e.substring(d, m);
2503
- e.length && I.length && (N > I.length - i.length || S < o.length) && !(D && i.startsWith(D)) && (e = I);
2502
+ var b = y(t.lastValue, l.start, l.end), N = b.start, S = b.end, D = b.value, I = e.substring(d, m);
2503
+ e.length && D.length && (N > D.length - i.length || S < o.length) && !(I && i.startsWith(I)) && (e = D);
2504
2504
  var C = 0;
2505
2505
  e.startsWith(o) ? C += o.length : d < o.length && (C = d), e = e.substring(C), m -= C;
2506
- var L = e.length, F = e.length - i.length;
2507
- e.endsWith(i) ? L = F : (m > F || m > e.length - i.length) && (L = m), e = e.substring(0, L), e = Pl(f ? "-" + e : e, s), e = (e.match(Hl(h)) || []).join("");
2506
+ var R = e.length, F = e.length - i.length;
2507
+ e.endsWith(i) ? R = F : (m > F || m > e.length - i.length) && (R = m), e = e.substring(0, R), e = Pl(f ? "-" + e : e, s), e = (e.match(Hl(h)) || []).join("");
2508
2508
  var _ = e.indexOf(h);
2509
- e = e.replace(new RegExp(ga(h), "g"), function($, P) {
2510
- return P === _ ? "." : "";
2509
+ e = e.replace(new RegExp(ga(h), "g"), function($, H) {
2510
+ return H === _ ? "." : "";
2511
2511
  });
2512
- var W = yn(e, s), B = W.beforeDecimal, X = W.afterDecimal, R = W.addNegation;
2513
- return u.end - u.start < l.end - l.start && B === "" && g && !parseFloat(X) && (e = R ? "-" : ""), e;
2512
+ var z = yn(e, s), M = z.beforeDecimal, K = z.afterDecimal, V = z.addNegation;
2513
+ return u.end - u.start < l.end - l.start && M === "" && g && !parseFloat(K) && (e = V ? "-" : ""), e;
2514
2514
  }
2515
2515
  function Ul(e, t) {
2516
2516
  var n = t.prefix;
@@ -2548,95 +2548,95 @@ function Yl(e) {
2548
2548
  o === void 0 && (o = Be);
2549
2549
  var i = e.thousandSeparator, c = e.decimalScale, l = e.fixedDecimalScale, u = e.prefix;
2550
2550
  u === void 0 && (u = "");
2551
- var d = e.defaultValue, m = e.value, x = e.valueIsNumericString, v = e.onValueChange, h = ma(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), g = At(e), p = g.decimalSeparator, y = g.allowedDecimalSeparators, j = function(R) {
2552
- return qn(R, e);
2553
- }, f = function(R, $) {
2554
- return zl(R, $, e);
2551
+ var d = e.defaultValue, m = e.value, x = e.valueIsNumericString, v = e.onValueChange, h = ma(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), g = At(e), p = g.decimalSeparator, y = g.allowedDecimalSeparators, j = function(V) {
2552
+ return qn(V, e);
2553
+ }, f = function(V, $) {
2554
+ return zl(V, $, e);
2555
2555
  }, b = ot(m) ? d : m, N = x ?? Wl(b, u, t);
2556
2556
  ot(m) ? ot(d) || (N = N || typeof d == "number") : N = N || typeof m == "number";
2557
- var S = function(R) {
2558
- return ha(R) ? R : (typeof R == "number" && (R = xa(R)), N && typeof c == "number" ? Yn(R, c, !!l) : R);
2559
- }, I = ja(S(m), S(d), !!N, j, f, v), D = I[0], C = D.numAsString, L = D.formattedValue, F = I[1], _ = function(R) {
2560
- var $ = R.target, P = R.key, U = $.selectionStart, Z = $.selectionEnd, Q = $.value;
2561
- if (Q === void 0 && (Q = ""), (P === "Backspace" || P === "Delete") && Z < u.length) {
2562
- R.preventDefault();
2557
+ var S = function(V) {
2558
+ return ha(V) ? V : (typeof V == "number" && (V = xa(V)), N && typeof c == "number" ? Yn(V, c, !!l) : V);
2559
+ }, D = ja(S(m), S(d), !!N, j, f, v), I = D[0], C = I.numAsString, R = I.formattedValue, F = D[1], _ = function(V) {
2560
+ var $ = V.target, H = V.key, P = $.selectionStart, J = $.selectionEnd, q = $.value;
2561
+ if (q === void 0 && (q = ""), (H === "Backspace" || H === "Delete") && J < u.length) {
2562
+ V.preventDefault();
2563
2563
  return;
2564
2564
  }
2565
- if (U !== Z) {
2566
- s(R);
2565
+ if (P !== J) {
2566
+ s(V);
2567
2567
  return;
2568
2568
  }
2569
- P === "Backspace" && Q[0] === "-" && U === u.length + 1 && n && Qe($, 1), c && l && (P === "Backspace" && Q[U - 1] === p ? (Qe($, U - 1), R.preventDefault()) : P === "Delete" && Q[U] === p && R.preventDefault()), y != null && y.includes(P) && Q[U] === p && Qe($, U + 1);
2569
+ H === "Backspace" && q[0] === "-" && P === u.length + 1 && n && Qe($, 1), c && l && (H === "Backspace" && q[P - 1] === p ? (Qe($, P - 1), V.preventDefault()) : H === "Delete" && q[P] === p && V.preventDefault()), y != null && y.includes(H) && q[P] === p && Qe($, P + 1);
2570
2570
  var E = i === !0 ? "," : i;
2571
- P === "Backspace" && Q[U - 1] === E && Qe($, U - 1), P === "Delete" && Q[U] === E && Qe($, U + 1), s(R);
2572
- }, W = function(R) {
2571
+ H === "Backspace" && q[P - 1] === E && Qe($, P - 1), H === "Delete" && q[P] === E && Qe($, P + 1), s(V);
2572
+ }, z = function(V) {
2573
2573
  var $ = C;
2574
2574
  if ($.match(/\d/g) || ($ = ""), a || ($ = $l($)), l && c && ($ = Yn($, c, l)), $ !== C) {
2575
- var P = qn($, e);
2575
+ var H = qn($, e);
2576
2576
  F({
2577
- formattedValue: P,
2577
+ formattedValue: H,
2578
2578
  value: $,
2579
2579
  floatValue: parseFloat($)
2580
2580
  }, {
2581
- event: R,
2581
+ event: V,
2582
2582
  source: jt.event
2583
2583
  });
2584
2584
  }
2585
- o(R);
2586
- }, B = function(R) {
2587
- return R === p ? !0 : yt(R);
2588
- }, X = function(R) {
2589
- var $ = R.currentValue, P = R.lastValue, U = R.formattedValue, Z = R.currentValueIndex, Q = R.formattedValueIndex, E = $[Z], ee = U[Q], A = va(P, $), z = A.to;
2590
- return Z >= z.start && Z < z.end && y && y.includes(E) && ee === p ? !0 : E === ee;
2585
+ o(V);
2586
+ }, M = function(V) {
2587
+ return V === p ? !0 : yt(V);
2588
+ }, K = function(V) {
2589
+ var $ = V.currentValue, H = V.lastValue, P = V.formattedValue, J = V.currentValueIndex, q = V.formattedValueIndex, E = $[J], te = P[q], L = va(H, $), U = L.to;
2590
+ return J >= U.start && J < U.end && y && y.includes(E) && te === p ? !0 : E === te;
2591
2591
  };
2592
2592
  return Object.assign(Object.assign({}, h), {
2593
- value: L,
2593
+ value: R,
2594
2594
  valueIsNumericString: !1,
2595
- isValidInputCharacter: B,
2596
- isCharacterSame: X,
2595
+ isValidInputCharacter: M,
2596
+ isCharacterSame: K,
2597
2597
  onValueChange: F,
2598
2598
  format: j,
2599
2599
  removeFormatting: f,
2600
- getCaretBoundary: function(R) {
2601
- return Ul(R, e);
2600
+ getCaretBoundary: function(V) {
2601
+ return Ul(V, e);
2602
2602
  },
2603
2603
  onKeyDown: _,
2604
- onBlur: W
2604
+ onBlur: z
2605
2605
  });
2606
2606
  }
2607
2607
  function bn(e) {
2608
2608
  var t = Yl(e);
2609
- return Ce.createElement(Vl, Object.assign({}, t));
2609
+ return ke.createElement(Vl, Object.assign({}, t));
2610
2610
  }
2611
2611
  const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, label: s, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: x, step: v, noSelectOnFocus: h, decimalScale: g, numberPrefix: p, numberSuffix: y, min: j, max: f }) => {
2612
2612
  const b = k(() => {
2613
2613
  if (!n)
2614
2614
  return;
2615
- const L = m ?? null;
2616
- n(L ? Number(L) : null);
2617
- }, [m, n]), N = te(null), [S, I] = O((t == null ? void 0 : t.toString()) ?? ""), D = k((L) => {
2618
- const F = L;
2615
+ const R = m ?? null;
2616
+ n(R ? Number(R) : null);
2617
+ }, [m, n]), N = ee(null), [S, D] = O((t == null ? void 0 : t.toString()) ?? ""), I = k((R) => {
2618
+ const F = R;
2619
2619
  n && n(F == null || F === "" ? null : Number(F));
2620
- }, [n]), C = k((L) => {
2621
- var _, W;
2622
- let F = parseFloat(((W = (_ = L.target) == null ? void 0 : _.value) == null ? void 0 : W.replaceAll(" ", "")) ?? 0);
2620
+ }, [n]), C = k((R) => {
2621
+ var _, z;
2622
+ let F = parseFloat(((z = (_ = R.target) == null ? void 0 : _.value) == null ? void 0 : z.replaceAll(" ", "")) ?? 0);
2623
2623
  if (Number.isNaN(F) && (F = 0), !a) {
2624
- D(F.toString());
2624
+ I(F.toString());
2625
2625
  return;
2626
2626
  }
2627
- I(F.toString()), N.current !== null && window.clearTimeout(N.current), N.current = window.setTimeout(() => {
2628
- D(F.toString());
2627
+ D(F.toString()), N.current !== null && window.clearTimeout(N.current), N.current = window.setTimeout(() => {
2628
+ I(F.toString());
2629
2629
  }, a);
2630
- }, [a, D]);
2631
- return M(() => {
2632
- I(t === null ? "" : t.toString());
2633
- }, [f, j, t]), M(() => {
2634
- f !== void 0 && Number(S) > f && I(f.toString()), j !== void 0 && Number(S) < j && I(j.toString());
2635
- }, [S, f, j, I]), M(() => {
2630
+ }, [a, I]);
2631
+ return A(() => {
2632
+ D(t === null ? "" : t.toString());
2633
+ }, [f, j, t]), A(() => {
2634
+ f !== void 0 && Number(S) > f && D(f.toString()), j !== void 0 && Number(S) < j && D(j.toString());
2635
+ }, [S, f, j, D]), A(() => {
2636
2636
  !n || t === null || (f !== void 0 && t > f && n(f), j !== void 0 && t < j && n(j));
2637
2637
  }, [t, f, j, n]), /* @__PURE__ */ r.jsxs(e, { withoutLabel: o, label: s ?? "", hidden: l, className: x, children: [
2638
- /* @__PURE__ */ r.jsx(bn, { displayType: "input", thousandSeparator: " ", decimalScale: g, prefix: p, suffix: y, defaultValue: "", value: a ? S : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? s, onFocus: (L) => {
2639
- !h && L.target.select();
2638
+ /* @__PURE__ */ r.jsx(bn, { displayType: "input", thousandSeparator: " ", decimalScale: g, prefix: p, suffix: y, defaultValue: "", value: a ? S : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? s, onFocus: (R) => {
2639
+ !h && R.target.select();
2640
2640
  }, onChange: C, hidden: l, disabled: u, className: w("form-control text-end w-100", {
2641
2641
  [`form-control-${c}`]: c
2642
2642
  }), step: v, min: j, max: f }),
@@ -2731,8 +2731,8 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
2731
2731
  }, [n, t]);
2732
2732
  return { setFromToProp: a, handleArrowClick: s, handleRangeChange: o };
2733
2733
  }, gd = ({ fromtoState: [e, t], className: n, size: a }) => {
2734
- const { texts: { date: s }, ProjectIconComponent: o } = q(ge), [i, c] = O("C"), { handleArrowClick: l, handleRangeChange: u, setFromToProp: d } = Xl(i, c, t), m = ne(() => i === "C", [i]), x = te(!0);
2735
- return M(() => {
2734
+ const { texts: { date: s }, ProjectIconComponent: o } = Z(pe), [i, c] = O("C"), { handleArrowClick: l, handleRangeChange: u, setFromToProp: d } = Xl(i, c, t), m = ne(() => i === "C", [i]), x = ee(!0);
2735
+ return A(() => {
2736
2736
  if (x.current) {
2737
2737
  const v = Jl(e.from, e.to);
2738
2738
  c(v), x.current = !1;
@@ -2751,7 +2751,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
2751
2751
  }, children: /* @__PURE__ */ r.jsx(o, { icon: "chevron-right" }) })
2752
2752
  ] });
2753
2753
  }, pd = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: n, yearMax: a }) => {
2754
- const { localizationContext: s } = q(ge), { dateFnsLocale: o } = q(s), { searchParams: i, setSearch: c } = Ls(), l = i.get(t), u = l ? vt(l) : e, d = k((m) => {
2754
+ const { localizationContext: s } = Z(pe), { dateFnsLocale: o } = Z(s), { searchParams: i, setSearch: c } = Ls(), l = i.get(t), u = l ? vt(l) : e, d = k((m) => {
2755
2755
  c(t, nn(m, { representation: "date" }));
2756
2756
  }, [t, c]);
2757
2757
  return /* @__PURE__ */ r.jsx(vo, { month: u, onChangeMonth: d, locale: o, yearMin: n, yearMax: a });
@@ -2761,7 +2761,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
2761
2761
  }, [i]);
2762
2762
  return /* @__PURE__ */ r.jsx(bo, { year: c, onChangeYear: l, optionMin: n, optionMax: a, className: s });
2763
2763
  }, vd = ({ data: e, showLegend: t = !1, legendPosition: n = "left", onClick: a }) => {
2764
- const { chartColorPalette: s } = q(ge);
2764
+ const { chartColorPalette: s } = Z(pe);
2765
2765
  return /* @__PURE__ */ r.jsx(xs, { data: e, margin: {
2766
2766
  top: 50,
2767
2767
  right: t && n === "right" ? 200 : 100,
@@ -2794,11 +2794,11 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
2794
2794
  return a.toLowerCase() === "others" ? "Obecné" : ((o = (s = t.columns) == null ? void 0 : s.find((i) => i.field === a)) == null ? void 0 : o.caption) ?? a;
2795
2795
  };
2796
2796
  return /* @__PURE__ */ r.jsx("div", { className: "alert alert-danger w-100 m-0 p-2", children: /* @__PURE__ */ r.jsx("table", { children: /* @__PURE__ */ r.jsx("tbody", { children: e.map((a) => /* @__PURE__ */ r.jsxs("tr", { children: [
2797
- /* @__PURE__ */ r.jsx("td", { className: "fw-bold pe-2", children: /* @__PURE__ */ r.jsxs(J, { variant: "body", children: [
2797
+ /* @__PURE__ */ r.jsx("td", { className: "fw-bold pe-2", children: /* @__PURE__ */ r.jsxs(X, { variant: "body", children: [
2798
2798
  n(a.name),
2799
2799
  ":"
2800
2800
  ] }) }),
2801
- /* @__PURE__ */ r.jsx("td", { className: "", children: /* @__PURE__ */ r.jsx(J, { variant: "body", children: a.errors }) })
2801
+ /* @__PURE__ */ r.jsx("td", { className: "", children: /* @__PURE__ */ r.jsx(X, { variant: "body", children: a.errors }) })
2802
2802
  ] }, a.name)) }) }) });
2803
2803
  }, ya = (e) => {
2804
2804
  const t = {};
@@ -2861,13 +2861,13 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
2861
2861
  case "DT":
2862
2862
  return /* @__PURE__ */ r.jsx(st, { withoutLabel: !0, InputContainer: Ee, className: rt.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (d) => c(n, (d == null ? void 0 : d.toString()) ?? null), disabled: s || o ? !1 : a, showClearIcon: !l, clearValue: u });
2863
2863
  default:
2864
- return /* @__PURE__ */ r.jsx("div", { className: "alert alert-warning p-1 m-0", children: /* @__PURE__ */ r.jsxs(J, { variant: "body", children: [
2864
+ return /* @__PURE__ */ r.jsx("div", { className: "alert alert-warning p-1 m-0", children: /* @__PURE__ */ r.jsxs(X, { variant: "body", children: [
2865
2865
  "Neznámý typ ",
2866
2866
  e
2867
2867
  ] }) });
2868
2868
  }
2869
2869
  }, hc = ({ schema: e, columns: t, initialItem: n, onEdit: a, onDelete: s }) => {
2870
- const { ProjectIconComponent: o } = q(ge), [i, c] = O(n), l = k((m, x) => {
2870
+ const { ProjectIconComponent: o } = Z(pe), [i, c] = O(n), l = k((m, x) => {
2871
2871
  console.log("changeValue", m, x), c((v) => ({
2872
2872
  ...v,
2873
2873
  [m]: {
@@ -2876,7 +2876,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
2876
2876
  }
2877
2877
  }));
2878
2878
  }, []), u = (m) => (m == null ? void 0 : m.value) !== (m == null ? void 0 : m.defaultValue), d = k(() => Object.keys(i).some((m) => u(i[m])), [i]);
2879
- return M(() => {
2879
+ return A(() => {
2880
2880
  c(n);
2881
2881
  }, [n]), /* @__PURE__ */ r.jsxs("tr", { className: w("table-row", de.tableRow), children: [
2882
2882
  /* @__PURE__ */ r.jsx("td", { className: w("table-cell", de.tableCell, de.stickyFirst), children: d() && /* @__PURE__ */ r.jsx(re, { color: "success", onClick: () => a(ya(i)), children: /* @__PURE__ */ r.jsx(o, { icon: "check" }) }) }),
@@ -2887,7 +2887,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
2887
2887
  /* @__PURE__ */ r.jsx("td", { className: w("table-cell", de.tableCell, de.stickyLast), children: /* @__PURE__ */ r.jsx(re, { color: "danger", onClick: () => s(i[e.primaryKey ?? ""].value), children: /* @__PURE__ */ r.jsx(o, { icon: "delete" }) }) })
2888
2888
  ] });
2889
2889
  }, gc = ({ schema: e, columns: t, onCreate: n }) => {
2890
- const { ProjectIconComponent: a } = q(ge), [s, o] = O(null), i = k(() => {
2890
+ const { ProjectIconComponent: a } = Z(pe), [s, o] = O(null), i = k(() => {
2891
2891
  var u;
2892
2892
  const l = {};
2893
2893
  (u = e.columns) == null || u.forEach((d) => {
@@ -2918,8 +2918,8 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
2918
2918
  /* @__PURE__ */ r.jsx("td", { colSpan: t.length + 1 })
2919
2919
  ] });
2920
2920
  }, pc = ({ column: e, children: t }) => e.description ? /* @__PURE__ */ r.jsx(Lt, { placement: "bottom", text: e.description ?? "", children: /* @__PURE__ */ r.jsx("div", { children: t }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t }), xc = ({ schema: e, items: t, onEditItem: n, onDeleteItem: a, onCreateItem: s, filters: o, setFilter: i, sortByField: c, sortByType: l, setSortBy: u, selectedMaster: d }) => {
2921
- const { texts: { dynamicForms: m }, ProjectIconComponent: x } = q(ge), [v, h] = O([]);
2922
- return M(() => {
2921
+ const { texts: { dynamicForms: m }, ProjectIconComponent: x } = Z(pe), [v, h] = O([]);
2922
+ return A(() => {
2923
2923
  var g, p, y;
2924
2924
  h([
2925
2925
  ...((y = (p = (g = e.columns) == null ? void 0 : g.filter((j) => !j.hidden)) == null ? void 0 : p.filter((j) => e.masterReference ? j.field !== e.masterReferenceColumn : !0)) == null ? void 0 : y.map((j) => {
@@ -2980,68 +2980,68 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
2980
2980
  apiItemDelete: "/dynamicForms/delete",
2981
2981
  apiItemCreate: "/dynamicForms/insert"
2982
2982
  }, jd = ({ id: e, page: t, setPage: n, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, appUrls: { appDetail: l = er.appDetail } = er, apiUrls: { apiSchemaGet: u = at.apiSchemaGet, apiDataGet: d = at.apiDataGet, apiItemPost: m = at.apiItemPost, apiItemDelete: x = at.apiItemDelete, apiItemCreate: v = at.apiItemCreate } = at }) => {
2983
- var le, we, ce, se, ke, De;
2984
- const { texts: { dynamicForms: h }, ProjectIconComponent: g } = q(ge), p = Xe(), { startLoading: y, stopLoading: j } = q(Ot), [f, b] = O(null), [N, S] = O(null), [I, D] = O(null), [C, L] = O(null), [F, _] = O(!1), { addNotification: W } = _r(), [B, X] = O([]), { confirm: R } = Tt(), $ = 20, P = $ + 1, U = C ? Math.ceil(C.length / $) : 1, Z = t ? t > 1 : !1, Q = t ? t < U : !1, E = t ? (t - 1) * $ : 0, ee = t ? t * $ : $, [A, z] = O(!1), me = A ? C == null ? void 0 : C.slice(E, ee) : C, [G, pe] = O(null);
2985
- M(() => {
2986
- b(null), S(null), _(!1), X([]), pe(null);
2983
+ var le, _e, ce, se, Se, De;
2984
+ const { texts: { dynamicForms: h }, ProjectIconComponent: g } = Z(pe), p = Xe(), { startLoading: y, stopLoading: j } = Z(Ot), [f, b] = O(null), [N, S] = O(null), [D, I] = O(null), [C, R] = O(null), [F, _] = O(!1), { addNotification: z } = _r(), [M, K] = O([]), { confirm: V } = Tt(), $ = 20, H = $ + 1, P = C ? Math.ceil(C.length / $) : 1, J = t ? t > 1 : !1, q = t ? t < P : !1, E = t ? (t - 1) * $ : 0, te = t ? t * $ : $, [L, U] = O(!1), ue = L ? C == null ? void 0 : C.slice(E, te) : C, [he, Q] = O(null);
2985
+ A(() => {
2986
+ b(null), S(null), _(!1), K([]), Q(null);
2987
2987
  }, [e]);
2988
- const Ne = k(async () => {
2989
- y("dynamicFormSchema"), await p.get(`${u}?id=${e}`).then(({ data: H }) => {
2990
- b(H), j("dynamicFormSchema");
2988
+ const je = k(async () => {
2989
+ y("dynamicFormSchema"), await p.get(`${u}?id=${e}`).then(({ data: W }) => {
2990
+ b(W), j("dynamicFormSchema");
2991
2991
  }).catch(() => j("dynamicFormSchema"));
2992
- }, [p, e, y, j, u]), Ie = k(async () => {
2993
- var H;
2994
- if (!(f === null || ((H = f.id) == null ? void 0 : H.toString()) !== e)) {
2995
- if (f.masterReference && !G) {
2992
+ }, [p, e, y, j, u]), Ne = k(async () => {
2993
+ var W;
2994
+ if (!(f === null || ((W = f.id) == null ? void 0 : W.toString()) !== e)) {
2995
+ if (f.masterReference && !he) {
2996
2996
  S([]);
2997
2997
  return;
2998
2998
  }
2999
- y("dynamicFormData"), await p.get(`${d}?id=${e}&showArchive=${F}${f.masterReference ? `&master=${G}` : ""}`).then(({ data: ae }) => {
3000
- const he = ae.map((ie) => {
2999
+ y("dynamicFormData"), await p.get(`${d}?id=${e}&showArchive=${F}${f.masterReference ? `&master=${he}` : ""}`).then(({ data: ae }) => {
3000
+ const ge = ae.map((ie) => {
3001
3001
  var xe;
3002
- return Object.fromEntries(((xe = f.columns) == null ? void 0 : xe.filter((je) => je.field).map((je) => [
3003
- je.field,
3004
- { value: ie[je.field ?? ""], defaultValue: ie[je.field ?? ""] }
3002
+ return Object.fromEntries(((xe = f.columns) == null ? void 0 : xe.filter((ye) => ye.field).map((ye) => [
3003
+ ye.field,
3004
+ { value: ie[ye.field ?? ""], defaultValue: ie[ye.field ?? ""] }
3005
3005
  ])) ?? []);
3006
3006
  });
3007
- S(he), j("dynamicFormData");
3007
+ S(ge), j("dynamicFormData");
3008
3008
  }).catch(() => j("dynamicFormData"));
3009
3009
  }
3010
- }, [p, e, f, y, j, F, G, d]), ze = k(async (H) => (y("dynamicFormEdit"), p.post(`${m}?id=${e}`, H).then(() => (j("dynamicFormEdit"), X([]), !0)).catch((ae) => (j("dynamicFormEdit"), X(Vt(ae)), !1))), [p, e, y, j, m]), Y = k(async (H) => (y("dynamicFormDelete"), p.delete(`${x}?id=${e}&pk=${H}`).then(() => (j("dynamicFormDelete"), X([]), !0)).catch((ae) => (j("dynamicFormDelete"), X(Vt(ae)), !1))), [p, e, y, j, x]), fe = k(async (H) => (y("dynamicFormCreate"), p.post(`${v}?id=${e}`, H).then(({ data: ae }) => (j("dynamicFormCreate"), X([]), ae)).catch((ae) => (j("dynamicFormCreate"), X(Vt(ae)), null))), [p, e, y, j, v]), _e = k(async (H) => {
3011
- f && await ze(f.masterReference ? { ...H, [f.masterReferenceColumn ?? ""]: G } : H) && (W(h.editSuccess, "success"), S((ae) => ae && ae.map((he) => {
3010
+ }, [p, e, f, y, j, F, he, d]), ze = k(async (W) => (y("dynamicFormEdit"), p.post(`${m}?id=${e}`, W).then(() => (j("dynamicFormEdit"), K([]), !0)).catch((ae) => (j("dynamicFormEdit"), K(Vt(ae)), !1))), [p, e, y, j, m]), G = k(async (W) => (y("dynamicFormDelete"), p.delete(`${x}?id=${e}&pk=${W}`).then(() => (j("dynamicFormDelete"), K([]), !0)).catch((ae) => (j("dynamicFormDelete"), K(Vt(ae)), !1))), [p, e, y, j, x]), me = k(async (W) => (y("dynamicFormCreate"), p.post(`${v}?id=${e}`, W).then(({ data: ae }) => (j("dynamicFormCreate"), K([]), ae)).catch((ae) => (j("dynamicFormCreate"), K(Vt(ae)), null))), [p, e, y, j, v]), Ce = k(async (W) => {
3011
+ f && await ze(f.masterReference ? { ...W, [f.masterReferenceColumn ?? ""]: he } : W) && (z(h.editSuccess, "success"), S((ae) => ae && ae.map((ge) => {
3012
3012
  var ie;
3013
- return ((ie = he[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : ie.value) === H[(f == null ? void 0 : f.primaryKey) ?? ""] ? Jn(H, f) : he;
3013
+ return ((ie = ge[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : ie.value) === W[(f == null ? void 0 : f.primaryKey) ?? ""] ? Jn(W, f) : ge;
3014
3014
  })));
3015
- }, [W, ze, f, G, h]), Ue = k(async (H) => {
3016
- await R(h.deleteConfirm) && await Y(H) && (W(h.deleteSuccess, "success"), S((ae) => ae && ae.filter((he) => {
3015
+ }, [z, ze, f, he, h]), Ue = k(async (W) => {
3016
+ await V(h.deleteConfirm) && await G(W) && (z(h.deleteSuccess, "success"), S((ae) => ae && ae.filter((ge) => {
3017
3017
  var ie;
3018
- return ((ie = he[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : ie.value) !== H;
3018
+ return ((ie = ge[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : ie.value) !== W;
3019
3019
  })));
3020
- }, [W, Y, h, R, f]), nt = k(async (H) => {
3020
+ }, [z, G, h, V, f]), nt = k(async (W) => {
3021
3021
  if (!f)
3022
3022
  return !1;
3023
- const ae = await fe(f.masterReference ? { ...H, [f.masterReferenceColumn ?? ""]: G } : H);
3023
+ const ae = await me(f.masterReference ? { ...W, [f.masterReferenceColumn ?? ""]: he } : W);
3024
3024
  if (ae !== null) {
3025
- W(h.createSuccess, "success");
3026
- const he = Jn(H, f);
3027
- return he[(f == null ? void 0 : f.primaryKey) ?? ""] = { value: ae, defaultValue: ae }, S((ie) => [...ie ?? [], he]), !0;
3025
+ z(h.createSuccess, "success");
3026
+ const ge = Jn(W, f);
3027
+ return ge[(f == null ? void 0 : f.primaryKey) ?? ""] = { value: ae, defaultValue: ae }, S((ie) => [...ie ?? [], ge]), !0;
3028
3028
  }
3029
3029
  return !1;
3030
- }, [W, fe, h, f, G]), T = (H) => {
3031
- H > U ? n(U) : H < 1 && n(1), n(H);
3032
- }, V = k(() => {
3030
+ }, [z, me, h, f, he]), T = (W) => {
3031
+ W > P ? n(P) : W < 1 && n(1), n(W);
3032
+ }, B = k(() => {
3033
3033
  if (!N || !f) {
3034
- D(null);
3034
+ I(null);
3035
3035
  return;
3036
3036
  }
3037
- const H = N.filter((ae) => Object.entries(a).every(([he, ie]) => {
3037
+ const W = N.filter((ae) => Object.entries(a).every(([ge, ie]) => {
3038
3038
  var ct, dt, ut;
3039
3039
  if (ie === null)
3040
3040
  return !0;
3041
- const xe = (ct = ae[he]) == null ? void 0 : ct.value;
3041
+ const xe = (ct = ae[ge]) == null ? void 0 : ct.value;
3042
3042
  if (xe == null)
3043
3043
  return !1;
3044
- const je = (dt = f.columns) == null ? void 0 : dt.find((bt) => bt.field === he), it = je == null ? void 0 : je.type, lt = (je == null ? void 0 : je.values) && ((ut = je == null ? void 0 : je.values) == null ? void 0 : ut.length) > 0;
3044
+ const ye = (dt = f.columns) == null ? void 0 : dt.find((bt) => bt.field === ge), it = ye == null ? void 0 : ye.type, lt = (ye == null ? void 0 : ye.values) && ((ut = ye == null ? void 0 : ye.values) == null ? void 0 : ut.length) > 0;
3045
3045
  if (!it)
3046
3046
  return !1;
3047
3047
  switch (it) {
@@ -3057,88 +3057,88 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3057
3057
  return xe.toString().toLowerCase().includes(ie.toLowerCase());
3058
3058
  }
3059
3059
  }));
3060
- D(H);
3061
- }, [N, a, f]), K = k(() => {
3062
- if (!I || !f) {
3063
- L([]);
3060
+ I(W);
3061
+ }, [N, a, f]), Y = k(() => {
3062
+ if (!D || !f) {
3063
+ R([]);
3064
3064
  return;
3065
3065
  }
3066
3066
  if (!o) {
3067
- L(I);
3067
+ R(D);
3068
3068
  return;
3069
3069
  }
3070
- L([...I].sort((H, ae) => {
3070
+ R([...D].sort((W, ae) => {
3071
3071
  var it, lt, ct, dt, ut, bt;
3072
- const he = ((lt = (it = H[o]) == null ? void 0 : it.value) == null ? void 0 : lt.toString()) ?? "", ie = ((dt = (ct = ae[o]) == null ? void 0 : ct.value) == null ? void 0 : dt.toString()) ?? "", xe = f.columns.find(($e) => $e.field === o), je = xe == null ? void 0 : xe.type;
3073
- if (!xe || !je || !he && !ie)
3072
+ const ge = ((lt = (it = W[o]) == null ? void 0 : it.value) == null ? void 0 : lt.toString()) ?? "", ie = ((dt = (ct = ae[o]) == null ? void 0 : ct.value) == null ? void 0 : dt.toString()) ?? "", xe = f.columns.find(($e) => $e.field === o), ye = xe == null ? void 0 : xe.type;
3073
+ if (!xe || !ye || !ge && !ie)
3074
3074
  return 0;
3075
- if (!he)
3075
+ if (!ge)
3076
3076
  return 1;
3077
3077
  if (!ie)
3078
3078
  return -1;
3079
3079
  if (xe.values && xe.values.length > 0) {
3080
3080
  const $e = ((ut = xe.values.find((Mt) => {
3081
3081
  var ft;
3082
- return ((ft = Mt.id) == null ? void 0 : ft.toString()) === he;
3082
+ return ((ft = Mt.id) == null ? void 0 : ft.toString()) === ge;
3083
3083
  })) == null ? void 0 : ut.name) ?? "", Le = ((bt = xe.values.find((Mt) => {
3084
3084
  var ft;
3085
3085
  return ((ft = Mt.id) == null ? void 0 : ft.toString()) === ie;
3086
3086
  })) == null ? void 0 : bt.name) ?? "";
3087
3087
  return i === "asc" ? $e.localeCompare(Le) : Le.localeCompare($e);
3088
3088
  }
3089
- if (je === "NUM") {
3090
- const $e = Number(he), Le = Number(ie);
3089
+ if (ye === "NUM") {
3090
+ const $e = Number(ge), Le = Number(ie);
3091
3091
  return i === "asc" ? $e - Le : Le - $e;
3092
3092
  }
3093
- if (je === "DT") {
3094
- const $e = vt(he == null ? void 0 : he.toString()).getTime(), Le = vt(ie == null ? void 0 : ie.toString()).getTime();
3093
+ if (ye === "DT") {
3094
+ const $e = vt(ge == null ? void 0 : ge.toString()).getTime(), Le = vt(ie == null ? void 0 : ie.toString()).getTime();
3095
3095
  return i === "asc" ? $e - Le : Le - $e;
3096
3096
  }
3097
- return i === "asc" ? he.toString().localeCompare(ie.toString()) : ie.toString().localeCompare(he.toString());
3097
+ return i === "asc" ? ge.toString().localeCompare(ie.toString()) : ie.toString().localeCompare(ge.toString());
3098
3098
  }));
3099
- }, [I, f, o, i]);
3100
- return M(() => {
3099
+ }, [D, f, o, i]);
3100
+ return A(() => {
3101
+ je();
3102
+ }, [je]), A(() => {
3101
3103
  Ne();
3102
- }, [Ne]), M(() => {
3103
- Ie();
3104
- }, [Ie]), M(() => {
3105
- V();
3106
- }, [V]), M(() => {
3107
- K();
3108
- }, [K]), M(() => {
3109
- C && C.length > P ? (z(!0), t || n(1)) : (z(!1), C && n(null));
3110
- }, [C, n, t, P]), M(() => {
3111
- !A || !t || (t > U && n(U), t < 1 && n(1));
3112
- }, [t, A, U, n]), /* @__PURE__ */ r.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
3104
+ }, [Ne]), A(() => {
3105
+ B();
3106
+ }, [B]), A(() => {
3107
+ Y();
3108
+ }, [Y]), A(() => {
3109
+ C && C.length > H ? (U(!0), t || n(1)) : (U(!1), C && n(null));
3110
+ }, [C, n, t, H]), A(() => {
3111
+ !L || !t || (t > P && n(P), t < 1 && n(1));
3112
+ }, [t, L, P, n]), /* @__PURE__ */ r.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
3113
3113
  /* @__PURE__ */ r.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-center", children: [
3114
- /* @__PURE__ */ r.jsx(J, { variant: "h3", children: (f == null ? void 0 : f.name) ?? "" }),
3115
- /* @__PURE__ */ r.jsx(fa, { label: h.showArchived, value: F === !0, onChange: (H) => _(H) })
3114
+ /* @__PURE__ */ r.jsx(X, { variant: "h3", children: (f == null ? void 0 : f.name) ?? "" }),
3115
+ /* @__PURE__ */ r.jsx(fa, { label: h.showArchived, value: F === !0, onChange: (W) => _(W) })
3116
3116
  ] }),
3117
- (f == null ? void 0 : f.description) && /* @__PURE__ */ r.jsx(J, { variant: "body2", className: "mb-3", children: f == null ? void 0 : f.description }),
3118
- (f == null ? void 0 : f.masterReference) && /* @__PURE__ */ r.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ r.jsx(vc, { label: ((we = (le = f.columns) == null ? void 0 : le.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : we.caption) ?? "", options: ((se = (ce = f.columns) == null ? void 0 : ce.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : se.values) ?? [], master: G, onChange: (H) => pe(H) }) }),
3119
- (f == null ? void 0 : f.slaves) && f.slaves.length > 0 && /* @__PURE__ */ r.jsx("div", { className: "mb-3 d-flex align-items-center flex-start", children: f.slaves.map((H) => {
3117
+ (f == null ? void 0 : f.description) && /* @__PURE__ */ r.jsx(X, { variant: "body2", className: "mb-3", children: f == null ? void 0 : f.description }),
3118
+ (f == null ? void 0 : f.masterReference) && /* @__PURE__ */ r.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ r.jsx(vc, { label: ((_e = (le = f.columns) == null ? void 0 : le.find((W) => W.field === f.masterReferenceColumn)) == null ? void 0 : _e.caption) ?? "", options: ((se = (ce = f.columns) == null ? void 0 : ce.find((W) => W.field === f.masterReferenceColumn)) == null ? void 0 : se.values) ?? [], master: he, onChange: (W) => Q(W) }) }),
3119
+ (f == null ? void 0 : f.slaves) && f.slaves.length > 0 && /* @__PURE__ */ r.jsx("div", { className: "mb-3 d-flex align-items-center flex-start", children: f.slaves.map((W) => {
3120
3120
  var ae;
3121
- return /* @__PURE__ */ r.jsx(Te, { as: "link", href: `${St(l, { id: (ae = H.id) == null ? void 0 : ae.toString() })}?type=dynamic-form`, children: H.name }, H.id);
3121
+ return /* @__PURE__ */ r.jsx(Te, { as: "link", href: `${St(l, { id: (ae = W.id) == null ? void 0 : ae.toString() })}?type=dynamic-form`, children: W.name }, W.id);
3122
3122
  }) }),
3123
- f != null && f.masterReference && !G ? /* @__PURE__ */ r.jsx(da, { variant: "warning", children: h.selectMaster(((De = (ke = f.columns) == null ? void 0 : ke.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : De.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3124
- f && B.length > 0 && /* @__PURE__ */ r.jsx("div", { className: "mb-2", children: /* @__PURE__ */ r.jsx(ec, { errors: B, schema: f }) }),
3123
+ f != null && f.masterReference && !he ? /* @__PURE__ */ r.jsx(da, { variant: "warning", children: h.selectMaster(((De = (Se = f.columns) == null ? void 0 : Se.find((W) => W.field === f.masterReferenceColumn)) == null ? void 0 : De.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3124
+ f && M.length > 0 && /* @__PURE__ */ r.jsx("div", { className: "mb-2", children: /* @__PURE__ */ r.jsx(ec, { errors: M, schema: f }) }),
3125
3125
  f && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3126
- /* @__PURE__ */ r.jsx("div", { className: w("rounded border overflow-auto", Xn.tableContainer), children: /* @__PURE__ */ r.jsx(xc, { schema: f, items: (A ? me : C) ?? [], onEditItem: _e, onDeleteItem: Ue, onCreateItem: nt, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, selectedMaster: (G == null ? void 0 : G.toString()) ?? null }) }),
3127
- A && t && /* @__PURE__ */ r.jsxs("div", { className: w(Xn.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
3126
+ /* @__PURE__ */ r.jsx("div", { className: w("rounded border overflow-auto", Xn.tableContainer), children: /* @__PURE__ */ r.jsx(xc, { schema: f, items: (L ? ue : C) ?? [], onEditItem: Ce, onDeleteItem: Ue, onCreateItem: nt, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, selectedMaster: (he == null ? void 0 : he.toString()) ?? null }) }),
3127
+ L && t && /* @__PURE__ */ r.jsxs("div", { className: w(Xn.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
3128
3128
  /* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
3129
- /* @__PURE__ */ r.jsx(re, { color: "primary", onClick: () => T(1), disabled: !Z, children: /* @__PURE__ */ r.jsx(g, { icon: "chevron-double-left" }) }),
3130
- /* @__PURE__ */ r.jsx(re, { color: "primary", onClick: () => T(t - 1), disabled: !Z, children: /* @__PURE__ */ r.jsx(g, { icon: "chevron-left" }) }),
3131
- /* @__PURE__ */ r.jsx(re, { color: "primary", onClick: () => T(t + 1), disabled: !Q, children: /* @__PURE__ */ r.jsx(g, { icon: "chevron-right" }) }),
3132
- /* @__PURE__ */ r.jsx(re, { color: "primary", onClick: () => T(U), disabled: !Q, children: /* @__PURE__ */ r.jsx(g, { icon: "chevron-double-right" }) })
3129
+ /* @__PURE__ */ r.jsx(re, { color: "primary", onClick: () => T(1), disabled: !J, children: /* @__PURE__ */ r.jsx(g, { icon: "chevron-double-left" }) }),
3130
+ /* @__PURE__ */ r.jsx(re, { color: "primary", onClick: () => T(t - 1), disabled: !J, children: /* @__PURE__ */ r.jsx(g, { icon: "chevron-left" }) }),
3131
+ /* @__PURE__ */ r.jsx(re, { color: "primary", onClick: () => T(t + 1), disabled: !q, children: /* @__PURE__ */ r.jsx(g, { icon: "chevron-right" }) }),
3132
+ /* @__PURE__ */ r.jsx(re, { color: "primary", onClick: () => T(P), disabled: !q, children: /* @__PURE__ */ r.jsx(g, { icon: "chevron-double-right" }) })
3133
3133
  ] }),
3134
- /* @__PURE__ */ r.jsxs(J, { variant: "body", children: [
3134
+ /* @__PURE__ */ r.jsxs(X, { variant: "body", children: [
3135
3135
  h.tablePage,
3136
3136
  " ",
3137
3137
  t,
3138
3138
  " ",
3139
3139
  h.tablePageFrom,
3140
3140
  " ",
3141
- U
3141
+ P
3142
3142
  ] })
3143
3143
  ] })
3144
3144
  ] })
@@ -3149,7 +3149,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3149
3149
  }, nr = {
3150
3150
  apiDynamicFormsGet: "/dynamicForms"
3151
3151
  }, yc = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ r.jsx(Lt, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ r.jsx("div", { children: t }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t }), yd = ({ activeId: e, otherForms: t = [], groupsDefs: n = [], searchQuery: a, fullSize: s, appUrls: { appDetail: o = tr.appDetail } = tr, apiUrls: { apiDynamicFormsGet: i = nr.apiDynamicFormsGet } = nr }) => {
3152
- const c = Xe(), { startLoading: l, stopLoading: u } = q(Ot), [d, m] = O(null), x = ne(() => [
3152
+ const c = Xe(), { startLoading: l, stopLoading: u } = Z(Ot), [d, m] = O(null), x = ne(() => [
3153
3153
  ...(d == null ? void 0 : d.map((g) => ({
3154
3154
  ...g,
3155
3155
  type: "dynamic-form"
@@ -3164,20 +3164,20 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3164
3164
  m(g), u("dynamicForms");
3165
3165
  }).catch(() => u("dynamicForms"));
3166
3166
  }, [c, l, u, i]);
3167
- return M(() => {
3167
+ return A(() => {
3168
3168
  !d && h();
3169
3169
  }, [h, d]), x.length > 0 ? /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: v.map((g) => /* @__PURE__ */ r.jsx(Yo, { title: g.name, defaultOpen: !0, children: g.items.map((p) => {
3170
3170
  var y, j, f, b;
3171
3171
  return s ? /* @__PURE__ */ r.jsxs(Je, { to: `${St(o, { id: (y = p.id) == null ? void 0 : y.toString() })}?type=${p.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((j = p.id) == null ? void 0 : j.toString()) ? "active" : ""}`, children: [
3172
- /* @__PURE__ */ r.jsx(J, { variant: "body", children: p.name }),
3173
- p.description && /* @__PURE__ */ r.jsx(J, { variant: "body2", className: "text-muted mt-2", children: p.description })
3174
- ] }, p.id) : /* @__PURE__ */ r.jsx(yc, { item: p, children: /* @__PURE__ */ r.jsx(Je, { to: `${St(o, { id: (f = p.id) == null ? void 0 : f.toString() })}?type=${p.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((b = p.id) == null ? void 0 : b.toString()) ? "active" : ""}`, children: /* @__PURE__ */ r.jsx(J, { variant: "body2", children: p.name }) }) }, p.id);
3172
+ /* @__PURE__ */ r.jsx(X, { variant: "body", children: p.name }),
3173
+ p.description && /* @__PURE__ */ r.jsx(X, { variant: "body2", className: "text-muted mt-2", children: p.description })
3174
+ ] }, p.id) : /* @__PURE__ */ r.jsx(yc, { item: p, children: /* @__PURE__ */ r.jsx(Je, { to: `${St(o, { id: (f = p.id) == null ? void 0 : f.toString() })}?type=${p.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((b = p.id) == null ? void 0 : b.toString()) ? "active" : ""}`, children: /* @__PURE__ */ r.jsx(X, { variant: "body2", children: p.name }) }) }, p.id);
3175
3175
  }) }, g.id)) }) }) : null;
3176
3176
  }, bd = ({ label: e, to: t, value: n }) => /* @__PURE__ */ r.jsxs(He, { label: e, children: [
3177
3177
  /* @__PURE__ */ r.jsx("input", { disabled: !0, className: "form-control d-none" }),
3178
3178
  t ? /* @__PURE__ */ r.jsx(Je, { to: t, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: n }) : /* @__PURE__ */ r.jsx("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: n })
3179
3179
  ] }), wd = () => {
3180
- const { localizationContext: e } = q(ge), { language: t, setLanguage: n } = q(e), a = (s) => {
3180
+ const { localizationContext: e } = Z(pe), { language: t, setLanguage: n } = Z(e), a = (s) => {
3181
3181
  n(s);
3182
3182
  };
3183
3183
  return /* @__PURE__ */ r.jsx(Ze, { onClick: (s) => {
@@ -3191,8 +3191,8 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3191
3191
  /* @__PURE__ */ r.jsx(kn, {}),
3192
3192
  /* @__PURE__ */ r.jsx("span", { children: "CZ" })
3193
3193
  ] }) });
3194
- }, _d = ({ controlId: e, ...t }) => /* @__PURE__ */ r.jsx(ye.Group, { controlId: e, ...t }), Nd = ({ employeeId: e, alt: t, noPhotoImage: n, cafmApiUrl: a, showLargeInLightBox: s = !1 }) => {
3195
- const { user: o } = q(Ft), { photoPath: i, photoPathSm: c } = As(e);
3194
+ }, _d = ({ controlId: e, ...t }) => /* @__PURE__ */ r.jsx(be.Group, { controlId: e, ...t }), Nd = ({ employeeId: e, alt: t, noPhotoImage: n, cafmApiUrl: a, showLargeInLightBox: s = !1 }) => {
3195
+ const { user: o } = Z(Ft), { photoPath: i, photoPathSm: c } = As(e);
3196
3196
  return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsx(r.Fragment, { children: s ? /* @__PURE__ */ r.jsx(ol, { baseUrl: a, customToken: o.cafmToken ?? void 0, photos: [
3197
3197
  {
3198
3198
  id: e.toString(),
@@ -3207,7 +3207,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3207
3207
  t(o);
3208
3208
  };
3209
3209
  return /* @__PURE__ */ r.jsxs(Nt, { className: `${a}`, children: [
3210
- /* @__PURE__ */ r.jsx(ye.Control, { value: e, onChange: (o) => t(o.target.value) }),
3210
+ /* @__PURE__ */ r.jsx(be.Control, { value: e, onChange: (o) => t(o.target.value) }),
3211
3211
  e && /* @__PURE__ */ r.jsx(Xt, { onClick: () => s(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ r.jsx(Fe, {}) }),
3212
3212
  /* @__PURE__ */ r.jsx(Xt, { onClick: () => n && n(e), variant: "link", className: "border", children: /* @__PURE__ */ r.jsx(vs, {}) })
3213
3213
  ] });
@@ -3232,18 +3232,18 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3232
3232
  modifiers: [["darker", 1.6]]
3233
3233
  }, tooltipLabel: a }), Id = ({ InputContainer: e = He, formField: t, label: n, resetsFields: a, type: s, required: o, hidden: i, disabled: c, withoutLabel: l, className: u }) => {
3234
3234
  const { register: d, formState: m, setValue: x } = We(), [v, h] = O(void 0), [g, p] = O(!1);
3235
- M(() => {
3235
+ A(() => {
3236
3236
  const j = t.split(".");
3237
3237
  let f = m.errors;
3238
3238
  j.forEach((b) => {
3239
3239
  f !== void 0 && (f = f[b]);
3240
3240
  }), h(f);
3241
- }, [m, t]), M(() => {
3241
+ }, [m, t]), A(() => {
3242
3242
  m.isSubmitted && p(!0);
3243
3243
  }, [m]);
3244
3244
  const y = v !== void 0;
3245
3245
  return /* @__PURE__ */ r.jsxs(e, { isForCheckInput: !0, hidden: i, label: `${n}${o ? " *" : ""}`, isInvalid: y, withoutLabel: l, className: u, children: [
3246
- /* @__PURE__ */ r.jsx(ye.Check, { id: `check-${t}`, type: s ?? "checkbox", label: `${n}${o ? " *" : ""}`, ...d(t, {
3246
+ /* @__PURE__ */ r.jsx(be.Check, { id: `check-${t}`, type: s ?? "checkbox", label: `${n}${o ? " *" : ""}`, ...d(t, {
3247
3247
  onChange: () => {
3248
3248
  a && a.forEach((j) => x(j, null, { shouldDirty: !0, shouldValidate: g }));
3249
3249
  }
@@ -3252,97 +3252,97 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3252
3252
  ] });
3253
3253
  }, Dd = ({ InputContainer: e = He, label: t, formField: n, options: a, resetsFields: s, required: o, disabled: i, hidden: c, className: l }) => {
3254
3254
  const { register: u, formState: d, setValue: m, watch: x } = We(), [v, h] = O(void 0), [g, p] = O(!1), y = ne(() => a, [a]);
3255
- M(() => {
3255
+ A(() => {
3256
3256
  const f = n.split(".");
3257
3257
  let b = d.errors;
3258
3258
  f.forEach((N) => {
3259
3259
  b !== void 0 && (b = b[N]);
3260
3260
  }), h(b);
3261
- }, [d, n]), M(() => {
3261
+ }, [d, n]), A(() => {
3262
3262
  d.isSubmitted && p(!0);
3263
3263
  }, [d]);
3264
3264
  const j = v !== void 0;
3265
3265
  return /* @__PURE__ */ r.jsxs(e, { isForRadioInput: !0, hidden: c, withoutLabel: !t, label: `${t}${o ? " *" : ""}`, isInvalid: j, className: l, children: [
3266
- y.map((f) => /* @__PURE__ */ r.jsx(ye.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: x(n) === f.id, ...u(n, {
3266
+ y.map((f) => /* @__PURE__ */ r.jsx(be.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: x(n) === f.id, ...u(n, {
3267
3267
  onChange: () => {
3268
3268
  s && s.forEach((b) => m(b, null, { shouldDirty: !0, shouldValidate: g }));
3269
3269
  }
3270
3270
  }), isInvalid: j, hidden: c, disabled: i, className: "w-100" }, f.id)),
3271
3271
  v && /* @__PURE__ */ r.jsx(tt, { message: v.message })
3272
3272
  ] });
3273
- }, $d = ({ InputContainer: e = He, formField: t, label: n, size: a, defaultSelection: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, items: d, onSearchQueryChange: m, selectedItemNavigateTo: x, texts: v, dropdownItemsNameWidth: h, isLoading: g, withoutLabel: p, additionalColumns: y, CustomOnChangeComponent: j, displayIdAsName: f, onSelect: b, className: N }) => {
3274
- const { formState: S, setValue: I, watch: D, control: C } = We(), [L, F] = O(void 0), [_, W] = O(!1), [B, X] = O(!1), R = D(t) ?? null, $ = R === (s == null ? void 0 : s.id) ? s == null ? void 0 : s.name : D(`${t}-DropdownName`), P = ne(() => R == null ? null : { id: R ?? null, name: $ ?? "" }, [R, $]), U = k(() => {
3275
- const G = t.split(".");
3276
- let pe = S.errors;
3277
- G.forEach((Ne) => {
3278
- pe !== void 0 && (pe = pe[Ne]);
3279
- }), F(pe);
3280
- }, [S, t]), Z = k((G) => {
3281
- if ((G == null ? void 0 : G.id) === R)
3273
+ }, $d = ({ InputContainer: e = He, formField: t, label: n, size: a, defaultSelection: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, items: d, onSearchQueryChange: m, selectedItemNavigateTo: x, texts: v, dropdownItemsNameWidth: h, isLoading: g, withoutLabel: p, additionalColumns: y, CustomOnChangeComponent: j, icon: f, displayIdAsName: b, onSelect: N, className: S }) => {
3274
+ const { formState: D, setValue: I, watch: C, control: R } = We(), [F, _] = O(void 0), [z, M] = O(!1), [K, V] = O(!1), $ = C(t) ?? null, H = $ === (s == null ? void 0 : s.id) ? s == null ? void 0 : s.name : C(`${t}-DropdownName`), P = ne(() => $ == null ? null : { id: $ ?? null, name: H ?? "" }, [$, H]), J = k(() => {
3275
+ const Q = t.split(".");
3276
+ let je = D.errors;
3277
+ Q.forEach((Ne) => {
3278
+ je !== void 0 && (je = je[Ne]);
3279
+ }), _(je);
3280
+ }, [D, t]), q = k((Q) => {
3281
+ if ((Q == null ? void 0 : Q.id) === $)
3282
3282
  return;
3283
- if (b && b(G), o && o.forEach((Ne) => I(Ne, null, { shouldDirty: !0, shouldValidate: B })), G === null) {
3283
+ if (N && N(Q), o && o.forEach((Ne) => I(Ne, null, { shouldDirty: !0, shouldValidate: K })), Q === null) {
3284
3284
  I(t, null, {
3285
3285
  shouldDirty: !0,
3286
- shouldValidate: B
3286
+ shouldValidate: K
3287
3287
  }), I(`${t}-DropdownName`, null);
3288
3288
  return;
3289
3289
  }
3290
- let pe = null;
3291
- i ? pe = (G == null ? void 0 : G.id) !== null && (G == null ? void 0 : G.id) !== "" ? parseInt(G.id.toString(), 10) : null : pe = G.id === null || G.id === void 0 || G.id === "" ? null : G.id, I(t, pe, {
3290
+ let je = null;
3291
+ i ? je = (Q == null ? void 0 : Q.id) !== null && (Q == null ? void 0 : Q.id) !== "" ? parseInt(Q.id.toString(), 10) : null : je = Q.id === null || Q.id === void 0 || Q.id === "" ? null : Q.id, I(t, je, {
3292
3292
  shouldDirty: !0,
3293
- shouldValidate: B
3294
- }), I(`${t}-DropdownName`, G.name ?? "");
3295
- }, [I, t, B, i, o, R, b]), Q = k((G) => {
3296
- W(!1), Z(G);
3297
- }, [Z]), E = k(() => {
3298
- W(!1);
3293
+ shouldValidate: K
3294
+ }), I(`${t}-DropdownName`, Q.name ?? "");
3295
+ }, [I, t, K, i, o, $, N]), E = k((Q) => {
3296
+ M(!1), q(Q);
3297
+ }, [q]), te = k(() => {
3298
+ M(!1);
3299
3299
  }, []);
3300
- M(() => {
3301
- U();
3302
- }, [U]), M(() => {
3303
- S.isSubmitted && X(!0);
3304
- }, [S]);
3305
- const ee = te(null), A = L !== void 0, z = x !== void 0, me = z && P !== null;
3306
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(e, { label: `${n}${c ? " *" : ""}`, hidden: l, withoutLabel: p, isInvalid: A, inputContainerClassName: w({ "luminus-dropdown-select-open": _ }), className: N, children: [
3300
+ A(() => {
3301
+ J();
3302
+ }, [J]), A(() => {
3303
+ D.isSubmitted && V(!0);
3304
+ }, [D]);
3305
+ const L = ee(null), U = F !== void 0, ue = x !== void 0, he = ue && P !== null;
3306
+ return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(e, { label: `${n}${c ? " *" : ""}`, hidden: l, withoutLabel: p, isInvalid: U, inputContainerClassName: w({ "luminus-dropdown-select-open": z }), className: S, children: [
3307
3307
  /* @__PURE__ */ r.jsxs(ua, { currentSelection: P, selectedItemNavigateTo: x, children: [
3308
- f && (P == null ? void 0 : P.name) && /* @__PURE__ */ r.jsx(J, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: P.name }),
3309
- /* @__PURE__ */ r.jsx(mn, { control: C, name: t, render: () => /* @__PURE__ */ r.jsx(ye.Select, { size: a, onMouseDown: (G) => {
3310
- G.currentTarget.focus(), G.preventDefault();
3308
+ b && (P == null ? void 0 : P.name) && /* @__PURE__ */ r.jsx(X, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: P.name }),
3309
+ /* @__PURE__ */ r.jsx(mn, { control: R, name: t, render: () => /* @__PURE__ */ r.jsx(be.Select, { size: a, onMouseDown: (Q) => {
3310
+ Q.currentTarget.focus(), Q.preventDefault();
3311
3311
  }, onClick: () => {
3312
- !z && !u && W(!0);
3313
- }, ref: ee, value: R ?? "", onChange: () => {
3314
- }, isInvalid: A, hidden: l, className: w("w-100", {
3312
+ !ue && !u && M(!0);
3313
+ }, ref: L, value: $ ?? "", onChange: () => {
3314
+ }, isInvalid: U, hidden: l, className: w("w-100", {
3315
3315
  "luminus-dropdown-picker-disabled": u,
3316
- "luminus-dropdown-picker-link": me
3317
- }), children: /* @__PURE__ */ r.jsx("option", { value: R, children: f ? R : ($ == null ? void 0 : $.length) > 0 ? $ : R }) }) }),
3318
- j || !u && z ? /* @__PURE__ */ r.jsxs("div", { className: "custom-picker-button", children: [
3319
- !j && !u && z && /* @__PURE__ */ r.jsx(re, { size: "sm", color: "secondary", onClick: (G) => {
3320
- G.preventDefault(), G.stopPropagation(), W(!0);
3321
- }, children: /* @__PURE__ */ r.jsx(yr, {}) }),
3316
+ "luminus-dropdown-picker-link": he
3317
+ }), children: /* @__PURE__ */ r.jsx("option", { value: $, children: b ? $ : (H == null ? void 0 : H.length) > 0 ? H : $ }) }) }),
3318
+ j || !u && ue ? /* @__PURE__ */ r.jsxs("div", { className: "custom-picker-button", children: [
3319
+ !j && !u && ue && /* @__PURE__ */ r.jsx(re, { size: "sm", color: "secondary", onClick: (Q) => {
3320
+ Q.preventDefault(), Q.stopPropagation(), M(!0);
3321
+ }, children: f ?? /* @__PURE__ */ r.jsx(yr, {}) }),
3322
3322
  j ?? null
3323
3323
  ] }) : null
3324
3324
  ] }),
3325
- L && /* @__PURE__ */ r.jsx(tt, { message: L.message }),
3326
- ee.current && /* @__PURE__ */ r.jsx(jn, { show: _, onCancel: E, items: d, currentSelection: P, onSelectionChange: Q, onSearchQueryChange: m, texts: v, itemsNameWidth: h, additionalColumns: y, displayIdAsName: f, isLoading: g, disabled: u, inputRef: ee })
3325
+ F && /* @__PURE__ */ r.jsx(tt, { message: F.message }),
3326
+ L.current && /* @__PURE__ */ r.jsx(jn, { show: z, onCancel: te, items: d, currentSelection: P, onSelectionChange: E, onSearchQueryChange: m, texts: v, itemsNameWidth: h, additionalColumns: y, displayIdAsName: b, isLoading: g, disabled: u, inputRef: L })
3327
3327
  ] }) });
3328
3328
  }, Ed = ({ InputContainer: e = He, label: t, formField: n, hidden: a, required: s, placeholder: o, disabled: i, showClearIcon: c, resetsFields: l, multiple: u, accept: d, withoutLabel: m, className: x }) => {
3329
3329
  const { watch: v, setValue: h, register: g, formState: p } = We(), [y, j] = O(!1), [f, b] = O(void 0), N = k(() => {
3330
3330
  h(n, "");
3331
3331
  }, [h, n]), S = k(() => {
3332
- const D = n.split(".");
3332
+ const I = n.split(".");
3333
3333
  let C = p.errors;
3334
- D.forEach((L) => {
3335
- C !== void 0 && (C = C[L]);
3334
+ I.forEach((R) => {
3335
+ C !== void 0 && (C = C[R]);
3336
3336
  }), b(C);
3337
3337
  }, [p, n]);
3338
- M(S, [S]), M(() => {
3338
+ A(S, [S]), A(() => {
3339
3339
  p.isSubmitted && j(!0);
3340
3340
  }, [p]);
3341
- const I = f !== void 0;
3342
- return /* @__PURE__ */ r.jsxs(e, { label: `${t}${s ? "*" : ""}`, hidden: a, withoutLabel: m, isInvalid: I, className: x, children: [
3343
- /* @__PURE__ */ r.jsx(ys, { type: "file", multiple: u, accept: d.join(", "), placeholder: o ?? t, isInvalid: I, hidden: a, disabled: i, className: "w-100", ...g(n, {
3341
+ const D = f !== void 0;
3342
+ return /* @__PURE__ */ r.jsxs(e, { label: `${t}${s ? "*" : ""}`, hidden: a, withoutLabel: m, isInvalid: D, className: x, children: [
3343
+ /* @__PURE__ */ r.jsx(ys, { type: "file", multiple: u, accept: d.join(", "), placeholder: o ?? t, isInvalid: D, hidden: a, disabled: i, className: "w-100", ...g(n, {
3344
3344
  onChange: () => {
3345
- l && l.forEach((D) => h(D, null, { shouldDirty: !0, shouldValidate: y }));
3345
+ l && l.forEach((I) => h(I, null, { shouldDirty: !0, shouldValidate: y }));
3346
3346
  }
3347
3347
  }) }),
3348
3348
  c && v(n) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: N, children: /* @__PURE__ */ r.jsx(Fe, {}) }) }),
@@ -3350,140 +3350,140 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3350
3350
  ] });
3351
3351
  }, Fd = ({ children: e, onStorno: t, noSpacer: n }) => {
3352
3352
  const { formState: a } = We(), [s, o] = O(!1);
3353
- return M(() => {
3353
+ return A(() => {
3354
3354
  o(Object.keys(a.dirtyFields).length > 0);
3355
3355
  }, [a]), s ? /* @__PURE__ */ r.jsx(po, { onStorno: t, noSpacer: n, children: e }) : null;
3356
3356
  }, Od = ({ InputContainer: e = He, options: t, formField: n, label: a, size: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, withoutLabel: d, noSortOptions: m, suffixIdToName: x, onSelect: v, className: h }) => {
3357
- const { texts: { customSelect: g } } = q(ge), { formState: p, setValue: y, watch: j, control: f } = We(), [b, N] = O(void 0), [S, I] = O(!1), [D, C] = O(!1), [L, F] = O(""), _ = j(n), W = ne(() => t.find((E) => E.id === _) ?? null, [t, _]), B = k(() => {
3357
+ const { texts: { customSelect: g } } = Z(pe), { formState: p, setValue: y, watch: j, control: f } = We(), [b, N] = O(void 0), [S, D] = O(!1), [I, C] = O(!1), [R, F] = O(""), _ = j(n), z = ne(() => t.find((E) => E.id === _) ?? null, [t, _]), M = k(() => {
3358
3358
  const E = n.split(".");
3359
- let ee = p.errors;
3360
- E.forEach((A) => {
3361
- ee !== void 0 && (ee = ee[A]);
3362
- }), N(ee);
3363
- }, [p, n]), X = k((E) => {
3359
+ let te = p.errors;
3360
+ E.forEach((L) => {
3361
+ te !== void 0 && (te = te[L]);
3362
+ }), N(te);
3363
+ }, [p, n]), K = k((E) => {
3364
3364
  if ((E == null ? void 0 : E.id) === _)
3365
3365
  return;
3366
- if (v && v(E), o && o.forEach((A) => y(A, null, { shouldDirty: !0, shouldValidate: D })), E === null) {
3366
+ if (v && v(E), o && o.forEach((L) => y(L, null, { shouldDirty: !0, shouldValidate: I })), E === null) {
3367
3367
  y(n, null, {
3368
3368
  shouldDirty: !0,
3369
- shouldValidate: D
3369
+ shouldValidate: I
3370
3370
  });
3371
3371
  return;
3372
3372
  }
3373
- let ee = null;
3374
- i ? ee = (E == null ? void 0 : E.id) !== null && (E == null ? void 0 : E.id) !== "" ? parseInt(E.id.toString(), 10) : null : ee = E.id === null || E.id === void 0 || E.id === "" ? null : E.id, y(n, ee, {
3373
+ let te = null;
3374
+ i ? te = (E == null ? void 0 : E.id) !== null && (E == null ? void 0 : E.id) !== "" ? parseInt(E.id.toString(), 10) : null : te = E.id === null || E.id === void 0 || E.id === "" ? null : E.id, y(n, te, {
3375
3375
  shouldDirty: !0,
3376
- shouldValidate: D
3376
+ shouldValidate: I
3377
3377
  });
3378
- }, [y, n, i, o, _, D, v]), R = k((E) => {
3379
- I(!1), X(E);
3380
- }, [X]), $ = k((E) => {
3378
+ }, [y, n, i, o, _, I, v]), V = k((E) => {
3379
+ D(!1), K(E);
3380
+ }, [K]), $ = k((E) => {
3381
3381
  F(E);
3382
3382
  }, []);
3383
- M(() => {
3384
- B();
3385
- }, [B]), M(() => {
3383
+ A(() => {
3384
+ M();
3385
+ }, [M]), A(() => {
3386
3386
  p.isSubmitted && C(!0);
3387
3387
  }, [p]);
3388
- const P = k((E) => {
3389
- var ee;
3390
- return E === null ? "" : !E.name || E.name.length === 0 ? ((ee = E.id) == null ? void 0 : ee.toString()) ?? "" : x ? `${E.name} (${E.id})` : E.name;
3391
- }, [x]), U = ne(() => t.map((E) => ({
3388
+ const H = k((E) => {
3389
+ var te;
3390
+ return E === null ? "" : !E.name || E.name.length === 0 ? ((te = E.id) == null ? void 0 : te.toString()) ?? "" : x ? `${E.name} (${E.id})` : E.name;
3391
+ }, [x]), P = ne(() => t.map((E) => ({
3392
3392
  id: E.id,
3393
- name: P(E)
3394
- })).filter((E) => tn(E.name, L)).sort((E, ee) => m ? 0 : (E.name ?? "").localeCompare(ee.name ?? "")), [t, m, L, P]), Z = te(null), Q = b !== void 0;
3395
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(e, { label: `${a}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: Q, inputContainerClassName: w({ "luminus-dropdown-select-open": S }), className: h, children: [
3396
- /* @__PURE__ */ r.jsx(mn, { control: f, name: n, render: () => /* @__PURE__ */ r.jsx(ye.Select, { size: s, onMouseDown: (E) => {
3393
+ name: H(E)
3394
+ })).filter((E) => tn(E.name, R)).sort((E, te) => m ? 0 : (E.name ?? "").localeCompare(te.name ?? "")), [t, m, R, H]), J = ee(null), q = b !== void 0;
3395
+ return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(e, { label: `${a}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: q, inputContainerClassName: w({ "luminus-dropdown-select-open": S }), className: h, children: [
3396
+ /* @__PURE__ */ r.jsx(mn, { control: f, name: n, render: () => /* @__PURE__ */ r.jsx(be.Select, { size: s, onMouseDown: (E) => {
3397
3397
  E.currentTarget.focus(), E.preventDefault();
3398
3398
  }, onClick: () => {
3399
- I(!0);
3400
- }, ref: Z, value: _ ?? "", onChange: () => {
3401
- }, isInvalid: Q, hidden: l, disabled: u, className: "w-100", children: /* @__PURE__ */ r.jsx("option", { value: (W == null ? void 0 : W.id) ?? "", children: P(W) }) }) }),
3399
+ D(!0);
3400
+ }, ref: J, value: _ ?? "", onChange: () => {
3401
+ }, isInvalid: q, hidden: l, disabled: u, className: "w-100", children: /* @__PURE__ */ r.jsx("option", { value: (z == null ? void 0 : z.id) ?? "", children: H(z) }) }) }),
3402
3402
  b && /* @__PURE__ */ r.jsx(tt, { message: b.message }),
3403
- Z.current && /* @__PURE__ */ r.jsx(jn, { show: S, onCancel: () => I(!1), items: U, currentSelection: W ?? null, onSelectionChange: R, onSearchQueryChange: $, texts: g, disabled: u, inputRef: Z, autoHideSearch: !0, allItemsLength: t.length })
3403
+ J.current && /* @__PURE__ */ r.jsx(jn, { show: S, onCancel: () => D(!1), items: P, currentSelection: z ?? null, onSelectionChange: V, onSearchQueryChange: $, texts: g, disabled: u, inputRef: J, autoHideSearch: !0, allItemsLength: t.length })
3404
3404
  ] }) });
3405
3405
  }, Td = ({ InputContainer: e = He, formField: t, label: n, placeholder: a, size: s, resetsFields: o, showClearIcon: i, clearValue: c, required: l, hidden: u, disabled: d, withoutLabel: m, step: x, stepperStep: v = 1, className: h, min: g, max: p }) => {
3406
- const { register: y, formState: j, setValue: f, watch: b } = We(), [N, S] = O(void 0), [I, D] = O(!1), C = k((B, X, R) => {
3407
- f(B, ht(X, g, p), R);
3408
- }, [p, g, f]), L = k(() => {
3409
- const B = c ?? null;
3410
- C(t, B !== null ? Number(B) : null, {
3406
+ const { register: y, formState: j, setValue: f, watch: b } = We(), [N, S] = O(void 0), [D, I] = O(!1), C = k((M, K, V) => {
3407
+ f(M, ht(K, g, p), V);
3408
+ }, [p, g, f]), R = k(() => {
3409
+ const M = c ?? null;
3410
+ C(t, M !== null ? Number(M) : null, {
3411
3411
  shouldDirty: !0,
3412
- shouldValidate: I
3412
+ shouldValidate: D
3413
3413
  });
3414
- }, [c, C, t, I]), F = k(() => {
3415
- const B = t.split(".");
3416
- let X = j.errors;
3417
- B.forEach((R) => {
3418
- X !== void 0 && (X = X[R]);
3419
- }), S(X);
3414
+ }, [c, C, t, D]), F = k(() => {
3415
+ const M = t.split(".");
3416
+ let K = j.errors;
3417
+ M.forEach((V) => {
3418
+ K !== void 0 && (K = K[V]);
3419
+ }), S(K);
3420
3420
  }, [j, t]);
3421
- M(() => {
3421
+ A(() => {
3422
3422
  F();
3423
- }, [F]), M(() => {
3424
- j.isSubmitted && D(!0);
3423
+ }, [F]), A(() => {
3424
+ j.isSubmitted && I(!0);
3425
3425
  }, [j]);
3426
- const _ = N !== void 0, W = b(t);
3426
+ const _ = N !== void 0, z = b(t);
3427
3427
  return /* @__PURE__ */ r.jsxs(e, { label: `${n}${l ? " *" : ""}`, hidden: u, withoutLabel: m, isInvalid: _, className: h, children: [
3428
3428
  /* @__PURE__ */ r.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
3429
- /* @__PURE__ */ r.jsx(ye.Control, { type: "number", placeholder: a ?? n, size: s, ...y(t, {
3430
- setValueAs: (B) => B == null || B === "" ? null : ht(Number(B), g, p),
3429
+ /* @__PURE__ */ r.jsx(be.Control, { type: "number", placeholder: a ?? n, size: s, ...y(t, {
3430
+ setValueAs: (M) => M == null || M === "" ? null : ht(Number(M), g, p),
3431
3431
  min: g,
3432
3432
  max: p,
3433
3433
  onChange: () => {
3434
- o && o.forEach((B) => f(B, null, { shouldDirty: !0, shouldValidate: I }));
3434
+ o && o.forEach((M) => f(M, null, { shouldDirty: !0, shouldValidate: D }));
3435
3435
  }
3436
3436
  }), isInvalid: _, hidden: u, disabled: d, className: "w-100 luminus-numeric-stepper", step: x, min: g, max: p }),
3437
- /* @__PURE__ */ r.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (B) => {
3438
- B.preventDefault(), B.stopPropagation(), C(t, ((W ? Number(W) : 0) - v).toString(), { shouldDirty: !0, shouldValidate: I });
3437
+ /* @__PURE__ */ r.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (M) => {
3438
+ M.preventDefault(), M.stopPropagation(), C(t, ((z ? Number(z) : 0) - v).toString(), { shouldDirty: !0, shouldValidate: D });
3439
3439
  }, children: /* @__PURE__ */ r.jsx(br, {}) }) }),
3440
- /* @__PURE__ */ r.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (B) => {
3441
- B.preventDefault(), B.stopPropagation(), C(t, ((W ? Number(W) : 0) + v).toString(), { shouldDirty: !0, shouldValidate: I });
3440
+ /* @__PURE__ */ r.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (M) => {
3441
+ M.preventDefault(), M.stopPropagation(), C(t, ((z ? Number(z) : 0) + v).toString(), { shouldDirty: !0, shouldValidate: D });
3442
3442
  }, children: /* @__PURE__ */ r.jsx(wr, {}) }) })
3443
3443
  ] }),
3444
- i && b(t) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: L, children: /* @__PURE__ */ r.jsx(Fe, {}) }) }),
3444
+ i && b(t) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: R, children: /* @__PURE__ */ r.jsx(Fe, {}) }) }),
3445
3445
  N && /* @__PURE__ */ r.jsx(tt, { message: N.message })
3446
3446
  ] });
3447
3447
  }, Ld = ({ InputContainer: e = He, formField: t, label: n, placeholder: a, resetsFields: s, showClearIcon: o, clearValue: i, required: c, hidden: l, disabled: u, withoutLabel: d, step: m, size: x, CustomOnChangeComponent: v, noSelectOnFocus: h, className: g, decimalScale: p = 2, numberPrefix: y, numberSuffix: j, min: f, max: b }) => {
3448
- const { formState: N, setValue: S, watch: I, control: D } = We(), [C, L] = O(void 0), [F, _] = O(!1), W = k(() => {
3448
+ const { formState: N, setValue: S, watch: D, control: I } = We(), [C, R] = O(void 0), [F, _] = O(!1), z = k(() => {
3449
3449
  const $ = i ?? null;
3450
3450
  S(t, $ !== null ? Number($) : null, {
3451
3451
  shouldDirty: !0,
3452
3452
  shouldValidate: F
3453
3453
  });
3454
- }, [i, S, t, F]), B = k(() => {
3454
+ }, [i, S, t, F]), M = k(() => {
3455
3455
  const $ = t.split(".");
3456
- let P = N.errors;
3457
- $.forEach((U) => {
3458
- P !== void 0 && (P = P[U]);
3459
- }), L(P);
3456
+ let H = N.errors;
3457
+ $.forEach((P) => {
3458
+ H !== void 0 && (H = H[P]);
3459
+ }), R(H);
3460
3460
  }, [N, t]);
3461
- M(() => {
3462
- B();
3463
- }, [B]), M(() => {
3461
+ A(() => {
3462
+ M();
3463
+ }, [M]), A(() => {
3464
3464
  N.isSubmitted && _(!0);
3465
3465
  }, [N]);
3466
- const X = I(t);
3467
- M(() => {
3468
- b !== void 0 && X > b && S(t, b), f !== void 0 && X < f && S(t, f);
3469
- }, [t, X, b, f, S]);
3470
- const R = C !== void 0;
3471
- return /* @__PURE__ */ r.jsxs(e, { label: `${n}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: R, className: g, children: [
3466
+ const K = D(t);
3467
+ A(() => {
3468
+ b !== void 0 && K > b && S(t, b), f !== void 0 && K < f && S(t, f);
3469
+ }, [t, K, b, f, S]);
3470
+ const V = C !== void 0;
3471
+ return /* @__PURE__ */ r.jsxs(e, { label: `${n}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: V, className: g, children: [
3472
3472
  /* @__PURE__ */ r.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
3473
- /* @__PURE__ */ r.jsx(mn, { control: D, name: t, render: ({ field: { ref: $, onChange: P, name: U, value: Z } }) => /* @__PURE__ */ r.jsx(bn, { displayType: "input", thousandSeparator: " ", decimalScale: p, prefix: y, suffix: j, defaultValue: "", name: U, value: Z, placeholder: a ?? n, onFocus: (Q) => {
3474
- !h && Q.target.select();
3475
- }, onChange: (Q) => {
3476
- var ee, A;
3477
- const E = parseFloat(((A = (ee = Q.target) == null ? void 0 : ee.value) == null ? void 0 : A.replaceAll(" ", "")) ?? 0);
3478
- s && s.forEach((z) => S(z, null, { shouldDirty: !0, shouldValidate: F })), P(E == null || Number.isNaN(E) ? null : Number(E));
3473
+ /* @__PURE__ */ r.jsx(mn, { control: I, name: t, render: ({ field: { ref: $, onChange: H, name: P, value: J } }) => /* @__PURE__ */ r.jsx(bn, { displayType: "input", thousandSeparator: " ", decimalScale: p, prefix: y, suffix: j, defaultValue: "", name: P, value: J, placeholder: a ?? n, onFocus: (q) => {
3474
+ !h && q.target.select();
3475
+ }, onChange: (q) => {
3476
+ var te, L;
3477
+ const E = parseFloat(((L = (te = q.target) == null ? void 0 : te.value) == null ? void 0 : L.replaceAll(" ", "")) ?? 0);
3478
+ s && s.forEach((U) => S(U, null, { shouldDirty: !0, shouldValidate: F })), H(E == null || Number.isNaN(E) ? null : Number(E));
3479
3479
  }, hidden: l, disabled: u, className: w("form-control text-end w-100", {
3480
- "is-invalid": R
3480
+ "is-invalid": V
3481
3481
  }, {
3482
3482
  [`form-control-${x}`]: x
3483
3483
  }), step: m, getInputRef: $, min: f, max: b }) }),
3484
3484
  v && /* @__PURE__ */ r.jsx("div", { className: "custom-picker-button", children: v })
3485
3485
  ] }),
3486
- o && I(t) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: W, children: /* @__PURE__ */ r.jsx(Fe, {}) }) }),
3486
+ o && D(t) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: z, children: /* @__PURE__ */ r.jsx(Fe, {}) }) }),
3487
3487
  C && /* @__PURE__ */ r.jsx(tt, { message: C.message })
3488
3488
  ] });
3489
3489
  }, wn = ["slice", "options", "formats", "conditions"], rr = (e) => {
@@ -3508,7 +3508,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3508
3508
  t[n] = (e == null ? void 0 : e[n]) ?? void 0;
3509
3509
  }), t;
3510
3510
  }, _c = ({ dataSource: e, settings: t, pivotRef: n, localization: a, licenseKey: s, enabled: o = !0 }) => {
3511
- const { texts: { reports: i } } = q(ge), [c, l] = O(!1), u = te(null), d = n ?? u, m = ne(() => ({
3511
+ const { texts: { reports: i } } = Z(pe), [c, l] = O(!1), u = ee(null), d = n ?? u, m = ne(() => ({
3512
3512
  localization: a
3513
3513
  }), [a]), x = k((h) => {
3514
3514
  delete h[0], delete h[1], delete h[2];
@@ -3537,10 +3537,10 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3537
3537
  const g = h.getTabs();
3538
3538
  h.getTabs = () => x(g);
3539
3539
  };
3540
- return M(() => {
3540
+ return A(() => {
3541
3541
  var h;
3542
3542
  c && o && ((h = d.current) == null || h.flexmonster.updateData(e), console.log("Updating flexmonster dataSource to: ", e));
3543
- }, [e, o, c, d]), M(() => {
3543
+ }, [e, o, c, d]), A(() => {
3544
3544
  var h, g, p;
3545
3545
  if (c && o) {
3546
3546
  const { options: y, conditions: j, formats: f, slice: b, ...N } = (h = d.current) == null ? void 0 : h.flexmonster.getReport();
@@ -3551,8 +3551,8 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3551
3551
  ...t == null ? void 0 : t.options,
3552
3552
  grid: { ...(g = t == null ? void 0 : t.options) == null ? void 0 : g.grid, autoSwitchToCompact: !1 }
3553
3553
  };
3554
- const I = { ...N, ...S };
3555
- (p = d.current) == null || p.flexmonster.setReport(I), console.log("Refreshing flexmonster settings. New report: ", I);
3554
+ const D = { ...N, ...S };
3555
+ (p = d.current) == null || p.flexmonster.setReport(D), console.log("Refreshing flexmonster settings. New report: ", D);
3556
3556
  }
3557
3557
  }, [o, c, d, t]), /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(
3558
3558
  Os,
@@ -3570,7 +3570,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3570
3570
  }
3571
3571
  ) });
3572
3572
  }, Nc = (e, t, n, a) => {
3573
- const { texts: { reports: s } } = q(ge), { prompt: o } = bs(), { confirm: i } = Tt(), c = Xe(), { user: l } = q(Ft), { startLoading: u, stopLoading: d } = q(Ot), { addNotification: m } = _r(), x = k(async (y) => {
3573
+ const { texts: { reports: s } } = Z(pe), { prompt: o } = bs(), { confirm: i } = Tt(), c = Xe(), { user: l } = Z(Ft), { startLoading: u, stopLoading: d } = Z(Ot), { addNotification: m } = _r(), x = k(async (y) => {
3574
3574
  u("report-versionSavingAs");
3575
3575
  try {
3576
3576
  const j = await c.post("/reports/version", y);
@@ -3654,7 +3654,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3654
3654
  ]);
3655
3655
  return { saveAs: h, save: v, archive: g, detach: p };
3656
3656
  }, Cc = (e) => {
3657
- const t = Xe(), { startLoading: n, stopLoading: a } = q(Ot);
3657
+ const t = Xe(), { startLoading: n, stopLoading: a } = Z(Ot);
3658
3658
  return { changeEmployeeRights: k(async (o, i) => {
3659
3659
  let c = null;
3660
3660
  n("reportSharing-addPerson");
@@ -3674,7 +3674,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3674
3674
  return c;
3675
3675
  }, [t, e, n, a]) };
3676
3676
  }, kc = ({ isOpen: e, onHide: t, usersData: n, setUsersData: a, reportVersionId: s, EmployeePicker: o }) => {
3677
- const { ProjectIconComponent: i, texts: { reports: c } } = q(ge), { confirm: l } = Tt(), [u, d] = O(null), { changeEmployeeRights: m } = Cc(s), x = k(async () => {
3677
+ const { ProjectIconComponent: i, texts: { reports: c } } = Z(pe), { confirm: l } = Tt(), [u, d] = O(null), { changeEmployeeRights: m } = Cc(s), x = k(async () => {
3678
3678
  if (u === null)
3679
3679
  return;
3680
3680
  const h = await m(u, !0);
@@ -3688,7 +3688,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3688
3688
  return /* @__PURE__ */ r.jsxs(Ve, { show: e, onHide: t, children: [
3689
3689
  /* @__PURE__ */ r.jsx(Ve.Header, { closeButton: !0, children: /* @__PURE__ */ r.jsx(Ve.Title, { children: c.reportSharing }) }),
3690
3690
  /* @__PURE__ */ r.jsxs(Ve.Body, { children: [
3691
- /* @__PURE__ */ r.jsx(J, { variant: "h6", children: c.sharedWith }),
3691
+ /* @__PURE__ */ r.jsx(X, { variant: "h6", children: c.sharedWith }),
3692
3692
  /* @__PURE__ */ r.jsxs(io, { variant: "flush", children: [
3693
3693
  n && n.length === 0 ? /* @__PURE__ */ r.jsx("div", { className: "px-2", children: c.noone.toLowerCase() }) : null,
3694
3694
  n == null ? void 0 : n.map((h) => /* @__PURE__ */ r.jsxs(xn, { className: "d-flex justify-content-between align-items-center gap-3 border-bottom px-2 py-1", children: [
@@ -3701,7 +3701,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3701
3701
  /* @__PURE__ */ r.jsx(re, { color: "danger", onClick: () => v(h.id), children: /* @__PURE__ */ r.jsx(i, { icon: "delete" }) })
3702
3702
  ] }, h.id))
3703
3703
  ] }),
3704
- /* @__PURE__ */ r.jsx(J, { variant: "h6", className: "mt-2 mb-2", children: c.addSharing }),
3704
+ /* @__PURE__ */ r.jsx(X, { variant: "h6", className: "mt-2 mb-2", children: c.addSharing }),
3705
3705
  /* @__PURE__ */ r.jsxs("div", { className: "d-flex gap-2 align-items-center", children: [
3706
3706
  /* @__PURE__ */ r.jsx("div", { className: "flex-grow-1", children: /* @__PURE__ */ r.jsx(o, { defaultSelection: null, label: c.shareWith, onSelect: (h) => {
3707
3707
  d(h === null ? null : Number(h.id));
@@ -3712,94 +3712,94 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3712
3712
  ] });
3713
3713
  }, Sc = (e, t) => {
3714
3714
  const [n, a] = O(null);
3715
- return M(() => {
3715
+ return A(() => {
3716
3716
  e.then(({ default: s }) => {
3717
3717
  const o = t !== void 0 ? t(s) : s;
3718
3718
  a(o);
3719
3719
  });
3720
3720
  }, [t, e]), { mappings: n };
3721
3721
  }, Rd = ({ reportType: e, title: t, data: n, filterElements: a, getReportRoute: s, localization: o, licenseKey: i, EmployeePicker: c, localizationJsonFile: l, localizationTransformer: u }) => {
3722
- const { texts: { reports: d } } = q(ge), { confirm: m } = Tt(), x = Nr(), { id: v } = Fs(), h = ne(() => v === void 0 ? null : Number(v), [v]), g = k((A) => {
3723
- const z = A === null ? "" : A.toString();
3724
- x(St(s(e), { id: z }), {
3722
+ const { texts: { reports: d } } = Z(pe), { confirm: m } = Tt(), x = Nr(), { id: v } = Fs(), h = ne(() => v === void 0 ? null : Number(v), [v]), g = k((L) => {
3723
+ const U = L === null ? "" : L.toString();
3724
+ x(St(s(e), { id: U }), {
3725
3725
  replace: !0
3726
3726
  });
3727
- }, [s, x, e]), [p, y] = O(!1), j = te(null), { user: f } = q(Ft), { data: b, reloadData: N, setData: S } = Ms(`/reports/${e}`), { mappings: I } = Sc(l, u), [D, C] = O({}), L = k((A) => {
3727
+ }, [s, x, e]), [p, y] = O(!1), j = ee(null), { user: f } = Z(Ft), { data: b, reloadData: N, setData: S } = Ms(`/reports/${e}`), { mappings: D } = Sc(l, u), [I, C] = O({}), R = k((L) => {
3728
3728
  if (b === null)
3729
3729
  return;
3730
- const z = A.target.value, me = z === "" ? null : Number(z);
3731
- g(me);
3732
- }, [b, g]), F = k(async (A) => {
3733
- await N(), g(A);
3730
+ const U = L.target.value, ue = U === "" ? null : Number(U);
3731
+ g(ue);
3732
+ }, [b, g]), F = k(async (L) => {
3733
+ await N(), g(L);
3734
3734
  }, [N, g]), _ = ne(() => {
3735
3735
  if (b === null)
3736
3736
  return null;
3737
- const A = b.reportVersions.find((z) => z.reportVersionId === h);
3738
- return A === void 0 ? null : A;
3737
+ const L = b.reportVersions.find((U) => U.reportVersionId === h);
3738
+ return L === void 0 ? null : L;
3739
3739
  }, [b, h]);
3740
- M(() => {
3741
- var z;
3740
+ A(() => {
3741
+ var U;
3742
3742
  if (b === null)
3743
3743
  return;
3744
3744
  if (_ === null) {
3745
3745
  C({});
3746
3746
  return;
3747
3747
  }
3748
- const A = bc(_) ?? {};
3749
- C(A), (z = j.current) == null || z.flexmonster.refresh();
3748
+ const L = bc(_) ?? {};
3749
+ C(L), (U = j.current) == null || U.flexmonster.refresh();
3750
3750
  }, [b, _, h]);
3751
- const { save: W, saveAs: B, archive: X, detach: R } = Nc(e, j, h, F), $ = ne(() => ({
3751
+ const { save: z, saveAs: M, archive: K, detach: V } = Nc(e, j, h, F), $ = ne(() => ({
3752
3752
  data: n ?? [],
3753
- mapping: I ?? void 0
3754
- }), [n, I]), P = k(async () => {
3755
- var z;
3756
- await m(d.confirmRevertChanges) && ((z = j.current) == null || z.flexmonster.setReport({ dataSource: $, ...D }));
3757
- }, [m, $, d.confirmRevertChanges, D]), U = ne(() => (_ == null ? void 0 : _.ownerId) === f.personalNumber, [_ == null ? void 0 : _.ownerId, f.personalNumber]), Z = ne(() => {
3758
- var A;
3759
- return (A = _ == null ? void 0 : _.users) == null ? void 0 : A.some((z) => z.id === f.personalNumber && !z.isReportOwner);
3760
- }, [_ == null ? void 0 : _.users, f.personalNumber]), Q = k((A, z) => {
3761
- S((me) => {
3762
- const G = me == null ? void 0 : me.reportVersions.findIndex((Ie) => Ie.reportVersionId === A);
3763
- if (G === void 0 || me === null)
3764
- return me;
3765
- const pe = {
3766
- ...me.reportVersions[G],
3767
- users: z.filter((Ie) => Ie.isReportOwner === !1)
3768
- }, Ne = [...me.reportVersions];
3769
- return Ne[G] = pe, {
3770
- ...me,
3771
- reportVersions: Ne
3753
+ mapping: D ?? void 0
3754
+ }), [n, D]), H = k(async () => {
3755
+ var U;
3756
+ await m(d.confirmRevertChanges) && ((U = j.current) == null || U.flexmonster.setReport({ dataSource: $, ...I }));
3757
+ }, [m, $, d.confirmRevertChanges, I]), P = ne(() => (_ == null ? void 0 : _.ownerId) === f.personalNumber, [_ == null ? void 0 : _.ownerId, f.personalNumber]), J = ne(() => {
3758
+ var L;
3759
+ return (L = _ == null ? void 0 : _.users) == null ? void 0 : L.some((U) => U.id === f.personalNumber && !U.isReportOwner);
3760
+ }, [_ == null ? void 0 : _.users, f.personalNumber]), q = k((L, U) => {
3761
+ S((ue) => {
3762
+ const he = ue == null ? void 0 : ue.reportVersions.findIndex((Ne) => Ne.reportVersionId === L);
3763
+ if (he === void 0 || ue === null)
3764
+ return ue;
3765
+ const Q = {
3766
+ ...ue.reportVersions[he],
3767
+ users: U.filter((Ne) => Ne.isReportOwner === !1)
3768
+ }, je = [...ue.reportVersions];
3769
+ return je[he] = Q, {
3770
+ ...ue,
3771
+ reportVersions: je
3772
3772
  };
3773
3773
  });
3774
3774
  }, [S]), E = k(async () => {
3775
- await m(d.confirmDelete(_ == null ? void 0 : _.name)) && (await X(), g(null), await N());
3776
- }, [X, m, N, _ == null ? void 0 : _.name, d, g]), ee = k(async () => {
3777
- await m(d.confirmDetach(_ == null ? void 0 : _.name)) && (await R(), g(null), await N());
3778
- }, [m, R, N, _ == null ? void 0 : _.name, d, g]);
3779
- return M(() => {
3780
- var A;
3781
- h === null && g(((A = b == null ? void 0 : b.reportVersions.find((z) => z.isSystem === !0)) == null ? void 0 : A.reportVersionId) ?? null);
3775
+ await m(d.confirmDelete(_ == null ? void 0 : _.name)) && (await K(), g(null), await N());
3776
+ }, [K, m, N, _ == null ? void 0 : _.name, d, g]), te = k(async () => {
3777
+ await m(d.confirmDetach(_ == null ? void 0 : _.name)) && (await V(), g(null), await N());
3778
+ }, [m, V, N, _ == null ? void 0 : _.name, d, g]);
3779
+ return A(() => {
3780
+ var L;
3781
+ h === null && g(((L = b == null ? void 0 : b.reportVersions.find((U) => U.isSystem === !0)) == null ? void 0 : L.reportVersionId) ?? null);
3782
3782
  }, [b == null ? void 0 : b.reportVersions, h, g]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3783
3783
  /* @__PURE__ */ r.jsx(Bs, { title: /* @__PURE__ */ r.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
3784
- /* @__PURE__ */ r.jsx(J, { variant: "h3", children: t }),
3784
+ /* @__PURE__ */ r.jsx(X, { variant: "h3", children: t }),
3785
3785
  a,
3786
3786
  /* @__PURE__ */ r.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
3787
- /* @__PURE__ */ r.jsxs(ws, { size: "sm", value: h ?? void 0, onChange: L, children: [
3788
- /* @__PURE__ */ r.jsx("optgroup", { label: d.versionSelectSystem, children: b == null ? void 0 : b.reportVersions.filter((A) => A.isSystem === !0).map((A) => /* @__PURE__ */ r.jsx("option", { value: A.reportVersionId, children: A.name }, A.reportVersionId)) }),
3789
- /* @__PURE__ */ r.jsx("optgroup", { label: d.versionSelectYour, children: b == null ? void 0 : b.reportVersions.filter((A) => A.ownerId === f.personalNumber).map((A) => /* @__PURE__ */ r.jsx("option", { value: A.reportVersionId, children: A.name }, A.reportVersionId)) }),
3790
- /* @__PURE__ */ r.jsx("optgroup", { label: d.versionSelectSharedWithYou, children: b == null ? void 0 : b.reportVersions.filter((A) => A.isSystem === !1 && A.ownerId !== f.personalNumber).map((A) => /* @__PURE__ */ r.jsx("option", { value: A.reportVersionId, children: `${A.name} [${A.ownerId}]` }, A.reportVersionId)) })
3787
+ /* @__PURE__ */ r.jsxs(ws, { size: "sm", value: h ?? void 0, onChange: R, children: [
3788
+ /* @__PURE__ */ r.jsx("optgroup", { label: d.versionSelectSystem, children: b == null ? void 0 : b.reportVersions.filter((L) => L.isSystem === !0).map((L) => /* @__PURE__ */ r.jsx("option", { value: L.reportVersionId, children: L.name }, L.reportVersionId)) }),
3789
+ /* @__PURE__ */ r.jsx("optgroup", { label: d.versionSelectYour, children: b == null ? void 0 : b.reportVersions.filter((L) => L.ownerId === f.personalNumber).map((L) => /* @__PURE__ */ r.jsx("option", { value: L.reportVersionId, children: L.name }, L.reportVersionId)) }),
3790
+ /* @__PURE__ */ r.jsx("optgroup", { label: d.versionSelectSharedWithYou, children: b == null ? void 0 : b.reportVersions.filter((L) => L.isSystem === !1 && L.ownerId !== f.personalNumber).map((L) => /* @__PURE__ */ r.jsx("option", { value: L.reportVersionId, children: `${L.name} [${L.ownerId}]` }, L.reportVersionId)) })
3791
3791
  ] }),
3792
- /* @__PURE__ */ r.jsx(Te, { icon: /* @__PURE__ */ r.jsx(_s, {}), onClick: W, disabled: h === null || (_ == null ? void 0 : _.isSystem) || !U, children: d.save }),
3793
- /* @__PURE__ */ r.jsx(Te, { icon: /* @__PURE__ */ r.jsx(Ns, {}), onClick: B, className: "flex-shrink-0", children: d.saveAs }),
3792
+ /* @__PURE__ */ r.jsx(Te, { icon: /* @__PURE__ */ r.jsx(_s, {}), onClick: z, disabled: h === null || (_ == null ? void 0 : _.isSystem) || !P, children: d.save }),
3793
+ /* @__PURE__ */ r.jsx(Te, { icon: /* @__PURE__ */ r.jsx(Ns, {}), onClick: M, className: "flex-shrink-0", children: d.saveAs }),
3794
3794
  /* @__PURE__ */ r.jsxs(un, { toggle: /* @__PURE__ */ r.jsx(fn, { as: xr }), children: [
3795
- /* @__PURE__ */ r.jsx(Ze, { onClick: P, children: d.revertChanges }),
3796
- /* @__PURE__ */ r.jsx(Ze, { onClick: () => y(!0), disabled: !U || (_ == null ? void 0 : _.isSystem), children: d.share }),
3797
- U && !(_ != null && _.isSystem) ? /* @__PURE__ */ r.jsx(Ze, { color: "danger", onClick: E, children: d.delete }) : null,
3798
- Z && !(_ != null && _.isSystem) ? /* @__PURE__ */ r.jsx(Ze, { color: "danger", onClick: ee, children: d.detach }) : null
3795
+ /* @__PURE__ */ r.jsx(Ze, { onClick: H, children: d.revertChanges }),
3796
+ /* @__PURE__ */ r.jsx(Ze, { onClick: () => y(!0), disabled: !P || (_ == null ? void 0 : _.isSystem), children: d.share }),
3797
+ P && !(_ != null && _.isSystem) ? /* @__PURE__ */ r.jsx(Ze, { color: "danger", onClick: E, children: d.delete }) : null,
3798
+ J && !(_ != null && _.isSystem) ? /* @__PURE__ */ r.jsx(Ze, { color: "danger", onClick: te, children: d.detach }) : null
3799
3799
  ] })
3800
3800
  ] })
3801
- ] }), children: /* @__PURE__ */ r.jsx("div", { className: w("h-100 w-100", $.data && $.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ r.jsx(_c, { dataSource: $, settings: D, pivotRef: j, enabled: $.data && $.data.length > 0, localization: o, licenseKey: i }) }) }),
3802
- _ !== null ? /* @__PURE__ */ r.jsx(kc, { isOpen: p, onHide: () => y(!1), usersData: _.users ?? null, setUsersData: Q, reportVersionId: _ == null ? void 0 : _.reportVersionId, EmployeePicker: c }) : null
3801
+ ] }), children: /* @__PURE__ */ r.jsx("div", { className: w("h-100 w-100", $.data && $.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ r.jsx(_c, { dataSource: $, settings: I, pivotRef: j, enabled: $.data && $.data.length > 0, localization: o, licenseKey: i }) }) }),
3802
+ _ !== null ? /* @__PURE__ */ r.jsx(kc, { isOpen: p, onHide: () => y(!1), usersData: _.users ?? null, setUsersData: q, reportVersionId: _ == null ? void 0 : _.reportVersionId, EmployeePicker: c }) : null
3803
3803
  ] });
3804
3804
  }, Ad = ({ cell: { value: e } }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: e ? /* @__PURE__ */ r.jsx(jr, { name: e, size: 21, fontSize: 12 }) : /* @__PURE__ */ r.jsx(r.Fragment, {}) }), Ic = ({ knownTypes: e, typeFilters: t, onChangeTypeFilters: n }) => /* @__PURE__ */ r.jsx("div", { className: "mb-1 d-flex justify-content-center gap-2", children: e.map((a) => /* @__PURE__ */ r.jsx("div", { role: "button", style: {
3805
3805
  height: "14px",
@@ -3810,26 +3810,26 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3810
3810
  }, className: w(`border-${a}`, t.includes(a) && `bg-${a}`), onClick: () => {
3811
3811
  t.includes(a) ? n(t.filter((s) => s !== a)) : n([...t, a]);
3812
3812
  } }, a)) }), Dc = ({ linksTo: e, onClick: t, children: n }) => e ? /* @__PURE__ */ r.jsx(Je, { to: e, className: "text-decoration-none", onClick: t, children: n }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: n }), $c = ({ message: e, onDeleteMessage: t, onClickMessage: n, getIcon: a, getLinksTo: s }) => {
3813
- const { ProjectIconComponent: o, localizationContext: i } = q(ge), { dateFnsLocale: c } = q(i), l = e.dateTime ? vt(e.dateTime) : null, u = l ? Ws(new Date(Date.now()), l) : 0;
3813
+ const { ProjectIconComponent: o, localizationContext: i } = Z(pe), { dateFnsLocale: c } = Z(i), l = e.dateTime ? vt(e.dateTime) : null, u = l ? Ws(new Date(Date.now()), l) : 0;
3814
3814
  return /* @__PURE__ */ r.jsxs("div", { children: [
3815
- l && /* @__PURE__ */ r.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ r.jsx(Lt, { text: xt(l, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(J, { variant: "caption", children: u > 2 ? xt(l, "dd.MM.yyyy") : Us(l, new Date(Date.now()), {
3815
+ l && /* @__PURE__ */ r.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ r.jsx(Lt, { text: xt(l, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(X, { variant: "caption", children: u > 2 ? xt(l, "dd.MM.yyyy") : Us(l, new Date(Date.now()), {
3816
3816
  locale: c.code
3817
3817
  }) }) }) }) }),
3818
3818
  /* @__PURE__ */ r.jsx(Dc, { linksTo: s(e) ?? void 0, onClick: n, children: /* @__PURE__ */ r.jsx(ml, { level: e.type, noIcon: !0, children: /* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
3819
3819
  a(e),
3820
3820
  /* @__PURE__ */ r.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
3821
3821
  /* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
3822
- /* @__PURE__ */ r.jsx(J, { variant: "body2", className: "fw-bold", children: e.subject }),
3822
+ /* @__PURE__ */ r.jsx(X, { variant: "body2", className: "fw-bold", children: e.subject }),
3823
3823
  /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (d) => {
3824
3824
  d.preventDefault(), d.stopPropagation(), t(e.id);
3825
3825
  }, children: /* @__PURE__ */ r.jsx(o, { icon: "delete" }) })
3826
3826
  ] }),
3827
- /* @__PURE__ */ r.jsx(J, { variant: "body2", children: e.text })
3827
+ /* @__PURE__ */ r.jsx(X, { variant: "body2", children: e.text })
3828
3828
  ] })
3829
3829
  ] }) }) })
3830
3830
  ] });
3831
3831
  }, ar = ["info", "warning", "danger"], sr = ({ messages: e, isLoading: t, onDeleteMessage: n, onClickMessage: a, getIcon: s, getLinksTo: o }) => {
3832
- const { texts: { messageBoard: i } } = q(ge), [c, l] = O(ar), u = ne(() => e.filter((d) => c.includes(d.type ?? "")), [c, e]);
3832
+ const { texts: { messageBoard: i } } = Z(pe), [c, l] = O(ar), u = ne(() => e.filter((d) => c.includes(d.type ?? "")), [c, e]);
3833
3833
  return /* @__PURE__ */ r.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
3834
3834
  /* @__PURE__ */ r.jsx(Ic, { knownTypes: ar, typeFilters: c, onChangeTypeFilters: (d) => l(d) }),
3835
3835
  t && /* @__PURE__ */ r.jsxs("div", { className: "p-3 w-100", children: [
@@ -3863,10 +3863,10 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3863
3863
  });
3864
3864
  }, [n, c]), y = k(async (N) => c.delete(`${a}${N}`).then(() => !0).catch(() => !1), [a, c]), j = k((N) => {
3865
3865
  y(N).then((S) => {
3866
- S && u(l.filter((I) => I.id !== N));
3866
+ S && u(l.filter((D) => D.id !== N));
3867
3867
  });
3868
3868
  }, [y, l]);
3869
- M(() => {
3869
+ A(() => {
3870
3870
  p();
3871
3871
  const N = setInterval(() => p(), 60 * 1e3);
3872
3872
  return () => {
@@ -3897,7 +3897,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3897
3897
  if (!l)
3898
3898
  return null;
3899
3899
  const u = l.eventKey, d = l.children, m = l.className, x = l.onClick;
3900
- return /* @__PURE__ */ r.jsxs(Ce.Fragment, { children: [
3900
+ return /* @__PURE__ */ r.jsxs(ke.Fragment, { children: [
3901
3901
  /* @__PURE__ */ r.jsx(c, { ...l, className: w({ active: e === u }, m), onClick: () => {
3902
3902
  t(u), x && x(u);
3903
3903
  }, vertical: a || s, children: d }),
@@ -3909,7 +3909,7 @@ const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, labe
3909
3909
  vertical: Mc
3910
3910
  }, Pd = ({ eventKey: e, className: t, onClick: n, disabled: a, vertical: s, children: o }) => /* @__PURE__ */ r.jsx("div", { role: "button", className: w("luminus-tab text-primary rounded", Qt.tab, t, {
3911
3911
  disabled: a
3912
- }, { [Qt.disabled]: a }, { vertical: s }, { [Qt.vertical]: s }), onClick: () => n && !a && n(e), children: typeof o == "string" ? /* @__PURE__ */ r.jsx(J, { variant: s ? "body" : "h6", className: s ? "" : "text-primary", children: o }) : o });
3912
+ }, { [Qt.disabled]: a }, { vertical: s }, { [Qt.vertical]: s }), onClick: () => n && !a && n(e), children: typeof o == "string" ? /* @__PURE__ */ r.jsx(X, { variant: s ? "body" : "h6", className: s ? "" : "text-primary", children: o }) : o });
3913
3913
  export {
3914
3914
  da as Alert,
3915
3915
  ml as AlertItem,
@@ -3990,7 +3990,7 @@ export {
3990
3990
  st as TextInput,
3991
3991
  dd as Timeline,
3992
3992
  _d as TypedFormGroup,
3993
- J as Typography,
3993
+ X as Typography,
3994
3994
  Qd as UserAvatarToggle,
3995
3995
  Ad as UserAvatarValueFormat,
3996
3996
  cd as VersionInfo,