react-luminus-components 1.3.81 → 1.3.83

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,18 +1,18 @@
1
1
  import { j as r, c as y, t as ge, a as mt, s as _n, g as Nn, m as Ha, d as Ct, b as Wa, e as Ua, f as Me, h as za, i as Ga, k as Ya, l as Ka, n as qa, o as Qa, p as Za, q as Ja, T as cr, r as ur, u as Cn, E as Xa, v as dr, w as an, x as fr, y as es, z as se, A as Ot, B as Oe, C as mr, D as ts, F as Zt, G as ns, H as rs, I as as, J as ss, K as hr, L as os, M as is, N as kn, O as ls, P as sn, Q as cs, R as pr, S as us, U as gr, V as ds, W as fs, X as ms, Y as hs, Z as ps, _ as gs, $ as xs, a0 as Vt, a1 as X, a2 as we, a3 as Sn, a4 as vs, a5 as js, a6 as ys, a7 as xr, a8 as ht, a9 as ee, aa as on, ab as je, ac as ln, ad as _t, ae as ws, af as $t, ag as vr, ah as bs, ai as jr, aj as _s, ak as Ns, al as Cs, am as yt, an as ks, ao as Dt, ap as yr, aq as Ee, ar as Ss, as as $s, at as Ds, au as wr, av as Is, aw as br, ax as Es, ay as Ze, az as Fs, aA as _r, aB as Nr, aC as Cr, aD as Ve, aE as Os, aF as Ts, aG as Ie, aH as Ms, aI as pt, aJ as Ls, aK as kr, aL as Rs, aM as As, aN as Pt, aO as Pe, aP as $n, aQ as Vs, aR as Je, aS as Ps } from "./Documents-CzClGlh6.js";
2
- import { aW as ld, aX as cd, aU as ud, aT as dd, aV as fd } from "./Documents-CzClGlh6.js";
2
+ import { aW as ud, aX as dd, aU as fd, aT as md, aV as hd } from "./Documents-CzClGlh6.js";
3
3
  import * as K from "react";
4
- import pe, { useCallback as I, useMemo as re, useEffect as V, useRef as J, useState as R, useReducer as Sr, useContext as Z, Component as Bs, isValidElement as Hs, Suspense as Ws, useLayoutEffect as Us } from "react";
4
+ import pe, { useCallback as D, useMemo as re, useEffect as V, useRef as J, useState as R, useReducer as Sr, useContext as Z, useId as Bs, Component as Hs, isValidElement as Ws, Suspense as Us, useLayoutEffect as zs } from "react";
5
5
  import { c as Le, L as Dn } from "./Loading-x8qNuFvn.js";
6
- import { InteractionType as zs } from "@azure/msal-browser";
7
- import { MsalAuthenticationTemplate as Gs } from "@azure/msal-react";
6
+ import { InteractionType as Gs } from "@azure/msal-browser";
7
+ import { MsalAuthenticationTemplate as Ys } from "@azure/msal-react";
8
8
  import { Link as Qe, Navigate as Nt, generatePath as Jt } from "react-router-dom";
9
9
  import { useFormContext as Be, Controller as cn } from "react-hook-form";
10
10
  import { S as un } from "./SimpleTooltip-D8C4rVDt.js";
11
- import { u as Ys, a as $r, b as Dr, c as Ks, d as qs, e as Qs } from "./useClipboard-C486DVki.js";
11
+ import { u as Ks, a as $r, b as Dr, c as qs, d as Qs, e as Zs } from "./useClipboard-C486DVki.js";
12
12
  import It from "react-dom";
13
13
  import { l as dt, s as Xt } from "./searchUtils-B6o7cy_z.js";
14
- const wu = ({ fileLoader: e, fileName: t, children: n }) => {
15
- const a = I(async () => {
14
+ const bu = ({ fileLoader: e, fileName: t, children: n }) => {
15
+ const a = D(async () => {
16
16
  var c, l;
17
17
  const s = await e();
18
18
  if (!s)
@@ -21,7 +21,7 @@ const wu = ({ fileLoader: e, fileName: t, children: n }) => {
21
21
  i.href = o, i.setAttribute("download", t), (c = document.body) == null || c.appendChild(i), i.click(), (l = document.body) == null || l.removeChild(i);
22
22
  }, [e, t]);
23
23
  return /* @__PURE__ */ r.jsx("div", { role: "button", onClick: a, children: n });
24
- }, Zs = ({ className: e, ...t }) => /* @__PURE__ */ r.jsxs("div", { className: y("luminus-loading", Le.loading, Le.loadingBlock, Le.loadingBlock), ...t, children: [
24
+ }, Js = ({ className: e, ...t }) => /* @__PURE__ */ r.jsxs("div", { className: y("luminus-loading", Le.loading, Le.loadingBlock, Le.loadingBlock), ...t, children: [
25
25
  /* @__PURE__ */ r.jsx("div", { className: y("spinner-grow", Le.spinnerGrow, "text-primary"), role: "status" }),
26
26
  /* @__PURE__ */ r.jsx("div", { className: y("spinner-grow", Le.spinnerGrow, "text-primary", Le.second), role: "status" }),
27
27
  /* @__PURE__ */ r.jsx("div", { className: y("spinner-grow", Le.spinnerGrow, "text-primary", Le.third), role: "status" })
@@ -40,10 +40,10 @@ function Ir(e, t) {
40
40
  a
41
41
  ), n);
42
42
  }
43
- function Js(e, t) {
43
+ function Xs(e, t) {
44
44
  return Ir(e, t * 12);
45
45
  }
46
- function Xs(e, t) {
46
+ function eo(e, t) {
47
47
  const n = ge(e), a = ge(t), s = n.getTime() - a.getTime();
48
48
  return s < 0 ? -1 : s > 0 ? 1 : s;
49
49
  }
@@ -67,7 +67,7 @@ function Ht(e, t) {
67
67
  const n = ge(e), a = ge(t);
68
68
  return n.getFullYear() - a.getFullYear();
69
69
  }
70
- function eo(e, t) {
70
+ function to(e, t) {
71
71
  const n = ge(e), a = ge(t), s = On(n, a), o = Math.abs(Ct(n, a));
72
72
  n.setDate(n.getDate() - s * o);
73
73
  const i = +(On(n, a) === -s), c = s * (o - i);
@@ -121,11 +121,11 @@ function en(e, t) {
121
121
  }
122
122
  return o;
123
123
  }
124
- function to(e) {
124
+ function no(e) {
125
125
  const t = ge(e), n = t.getFullYear(), a = t.getMonth(), s = mt(e, 0);
126
126
  return s.setFullYear(n, a + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
127
127
  }
128
- function no(e, t, n) {
128
+ function ro(e, t, n) {
129
129
  let a = 0, s;
130
130
  const o = ge(e), i = ge(t);
131
131
  if (n != null && n.unit)
@@ -140,17 +140,17 @@ function no(e, t, n) {
140
140
  style: n == null ? void 0 : n.style
141
141
  }).format(a, s);
142
142
  }
143
- function ro(e, t) {
143
+ function ao(e, t) {
144
144
  const n = ge(e), a = n.getFullYear(), s = n.getDate(), o = mt(e, 0);
145
145
  o.setFullYear(a, t, 15), o.setHours(0, 0, 0, 0);
146
- const i = to(o);
146
+ const i = no(o);
147
147
  return n.setMonth(t, Math.min(s, i)), n;
148
148
  }
149
149
  function Er(e, t) {
150
150
  const n = ge(e);
151
151
  return isNaN(+n) ? mt(e, NaN) : (n.setFullYear(t), n);
152
152
  }
153
- var ao = function(e, t, n, a, s, o, i, c) {
153
+ var so = function(e, t, n, a, s, o, i, c) {
154
154
  if (process.env.NODE_ENV !== "production" && t === void 0)
155
155
  throw new Error("invariant requires an error message argument");
156
156
  if (!e) {
@@ -169,8 +169,8 @@ var ao = function(e, t, n, a, s, o, i, c) {
169
169
  }
170
170
  throw l.framesToPop = 1, l;
171
171
  }
172
- }, so = ao;
173
- const Ln = /* @__PURE__ */ Ja(so);
172
+ }, oo = so;
173
+ const Ln = /* @__PURE__ */ Ja(oo);
174
174
  function ut(...e) {
175
175
  return e.filter((t) => t != null).reduce((t, n) => {
176
176
  if (typeof n != "function")
@@ -180,17 +180,17 @@ function ut(...e) {
180
180
  };
181
181
  }, null);
182
182
  }
183
- const oo = {
183
+ const io = {
184
184
  height: ["marginTop", "marginBottom"],
185
185
  width: ["marginLeft", "marginRight"]
186
186
  };
187
- function io(e, t) {
188
- const n = `offset${e[0].toUpperCase()}${e.slice(1)}`, a = t[n], s = oo[e];
187
+ function lo(e, t) {
188
+ const n = `offset${e[0].toUpperCase()}${e.slice(1)}`, a = t[n], s = io[e];
189
189
  return a + // @ts-ignore
190
190
  parseInt(Cn(t, s[0]), 10) + // @ts-ignore
191
191
  parseInt(Cn(t, s[1]), 10);
192
192
  }
193
- const lo = {
193
+ const co = {
194
194
  [Xa]: "collapse",
195
195
  [dr]: "collapsing",
196
196
  [an]: "collapsing",
@@ -209,7 +209,7 @@ const lo = {
209
209
  mountOnEnter: d = !1,
210
210
  unmountOnExit: m = !1,
211
211
  appear: p = !1,
212
- getDimensionValue: g = io,
212
+ getDimensionValue: g = lo,
213
213
  ...v
214
214
  }, x) => {
215
215
  const h = typeof c == "function" ? c() : c, j = re(() => ut((S) => {
@@ -242,7 +242,7 @@ const lo = {
242
242
  appear: p,
243
243
  children: (S, k) => /* @__PURE__ */ pe.cloneElement(i, {
244
244
  ...k,
245
- className: y(o, i.props.className, lo[S], h === "width" && "collapse-horizontal")
245
+ className: y(o, i.props.className, co[S], h === "width" && "collapse-horizontal")
246
246
  })
247
247
  });
248
248
  }), Or = Ot("h4");
@@ -258,15 +258,15 @@ const Tr = /* @__PURE__ */ K.forwardRef(({
258
258
  ...a
259
259
  })));
260
260
  Tr.displayName = "AlertHeading";
261
- function co(e, t, n, a = !1) {
261
+ function uo(e, t, n, a = !1) {
262
262
  const s = Oe(n);
263
263
  V(() => {
264
264
  const o = typeof e == "function" ? e() : e;
265
265
  return o.addEventListener(t, s, a), () => o.removeEventListener(t, s, a);
266
266
  }, [e]);
267
267
  }
268
- const uo = ["as", "disabled"];
269
- function fo(e, t) {
268
+ const fo = ["as", "disabled"];
269
+ function mo(e, t) {
270
270
  if (e == null) return {};
271
271
  var n = {};
272
272
  for (var a in e) if ({}.hasOwnProperty.call(e, a)) {
@@ -275,7 +275,7 @@ function fo(e, t) {
275
275
  }
276
276
  return n;
277
277
  }
278
- function mo(e) {
278
+ function ho(e) {
279
279
  return !e || e.trim() === "#";
280
280
  }
281
281
  function mn({
@@ -299,7 +299,7 @@ function mn({
299
299
  disabled: t
300
300
  }, u];
301
301
  const d = (p) => {
302
- if ((t || e === "a" && mo(n)) && p.preventDefault(), t) {
302
+ if ((t || e === "a" && ho(n)) && p.preventDefault(), t) {
303
303
  p.stopPropagation();
304
304
  return;
305
305
  }
@@ -325,7 +325,7 @@ const Mr = /* @__PURE__ */ K.forwardRef((e, t) => {
325
325
  let {
326
326
  as: n,
327
327
  disabled: a
328
- } = e, s = fo(e, uo);
328
+ } = e, s = mo(e, fo);
329
329
  const [o, {
330
330
  tagName: i
331
331
  }] = mn(Object.assign({
@@ -337,8 +337,8 @@ const Mr = /* @__PURE__ */ K.forwardRef((e, t) => {
337
337
  }));
338
338
  });
339
339
  Mr.displayName = "Button";
340
- const ho = ["onKeyDown"];
341
- function po(e, t) {
340
+ const po = ["onKeyDown"];
341
+ function go(e, t) {
342
342
  if (e == null) return {};
343
343
  var n = {};
344
344
  for (var a in e) if ({}.hasOwnProperty.call(e, a)) {
@@ -347,19 +347,19 @@ function po(e, t) {
347
347
  }
348
348
  return n;
349
349
  }
350
- function go(e) {
350
+ function xo(e) {
351
351
  return !e || e.trim() === "#";
352
352
  }
353
353
  const hn = /* @__PURE__ */ K.forwardRef((e, t) => {
354
354
  let {
355
355
  onKeyDown: n
356
- } = e, a = po(e, ho);
356
+ } = e, a = go(e, po);
357
357
  const [s] = mn(Object.assign({
358
358
  tagName: "a"
359
359
  }, a)), o = Oe((i) => {
360
360
  s.onKeyDown(i), n == null || n(i);
361
361
  });
362
- return go(a.href) || a.role === "button" ? /* @__PURE__ */ r.jsx("a", Object.assign({
362
+ return xo(a.href) || a.role === "button" ? /* @__PURE__ */ r.jsx("a", Object.assign({
363
363
  ref: t
364
364
  }, a, s, {
365
365
  onKeyDown: o
@@ -418,7 +418,7 @@ const Rr = /* @__PURE__ */ K.forwardRef((e, t) => {
418
418
  }) : a ? h : null;
419
419
  });
420
420
  Rr.displayName = "Alert";
421
- const xo = Object.assign(Rr, {
421
+ const vo = Object.assign(Rr, {
422
422
  Link: Lr,
423
423
  Heading: Tr
424
424
  }), gt = /* @__PURE__ */ K.forwardRef(({
@@ -531,10 +531,10 @@ const Wr = /* @__PURE__ */ K.forwardRef(({
531
531
  ...a
532
532
  })));
533
533
  Wr.displayName = "CardLink";
534
- const vo = Ot("h6"), Ur = /* @__PURE__ */ K.forwardRef(({
534
+ const jo = Ot("h6"), Ur = /* @__PURE__ */ K.forwardRef(({
535
535
  className: e,
536
536
  bsPrefix: t,
537
- as: n = vo,
537
+ as: n = jo,
538
538
  ...a
539
539
  }, s) => (t = se(t, "card-subtitle"), /* @__PURE__ */ r.jsx(n, {
540
540
  ref: s,
@@ -553,10 +553,10 @@ const zr = /* @__PURE__ */ K.forwardRef(({
553
553
  ...a
554
554
  })));
555
555
  zr.displayName = "CardText";
556
- const jo = Ot("h5"), Gr = /* @__PURE__ */ K.forwardRef(({
556
+ const yo = Ot("h5"), Gr = /* @__PURE__ */ K.forwardRef(({
557
557
  className: e,
558
558
  bsPrefix: t,
559
- as: n = jo,
559
+ as: n = yo,
560
560
  ...a
561
561
  }, s) => (t = se(t, "card-title"), /* @__PURE__ */ r.jsx(n, {
562
562
  ref: s,
@@ -598,20 +598,20 @@ const Rn = Object.assign(Yr, {
598
598
  Footer: Ar,
599
599
  ImgOverlay: Hr
600
600
  });
601
- function yo(e, t, n) {
601
+ function wo(e, t, n) {
602
602
  const a = J(e !== void 0), [s, o] = R(t), i = e !== void 0, c = a.current;
603
- return a.current = i, !i && c && s !== t && o(t), [i ? e : s, I((...l) => {
603
+ return a.current = i, !i && c && s !== t && o(t), [i ? e : s, D((...l) => {
604
604
  const [u, ...d] = l;
605
605
  let m = n == null ? void 0 : n(u, ...d);
606
606
  return o(u), m;
607
607
  }, [n])];
608
608
  }
609
- function wo() {
609
+ function bo() {
610
610
  const [, e] = Sr((t) => !t, !1);
611
611
  return e;
612
612
  }
613
- const Tt = /* @__PURE__ */ K.createContext(null), bo = ["children", "usePopper"];
614
- function _o(e, t) {
613
+ const Tt = /* @__PURE__ */ K.createContext(null), _o = ["children", "usePopper"];
614
+ function No(e, t) {
615
615
  if (e == null) return {};
616
616
  var n = {};
617
617
  for (var a in e) if ({}.hasOwnProperty.call(e, a)) {
@@ -620,7 +620,7 @@ function _o(e, t) {
620
620
  }
621
621
  return n;
622
622
  }
623
- const No = () => {
623
+ const Co = () => {
624
624
  };
625
625
  function Kr(e = {}) {
626
626
  const t = Z(Tt), [n, a] = ns(), s = J(!1), {
@@ -651,7 +651,7 @@ function Kr(e = {}) {
651
651
  arrowElement: n,
652
652
  popperConfig: d
653
653
  })), _ = Object.assign({
654
- ref: h || No,
654
+ ref: h || Co,
655
655
  "aria-labelledby": w == null ? void 0 : w.id
656
656
  }, f.attributes.popper, {
657
657
  style: f.styles.popper
@@ -676,7 +676,7 @@ function qr(e) {
676
676
  let {
677
677
  children: t,
678
678
  usePopper: n = !0
679
- } = e, a = _o(e, bo);
679
+ } = e, a = No(e, _o);
680
680
  const [s, o] = Kr(Object.assign({}, a, {
681
681
  usePopper: n
682
682
  }));
@@ -688,9 +688,9 @@ qr.displayName = "DropdownMenu";
688
688
  const Et = {
689
689
  prefix: String(Math.round(Math.random() * 1e10)),
690
690
  current: 0
691
- }, Qr = /* @__PURE__ */ pe.createContext(Et), Co = /* @__PURE__ */ pe.createContext(!1);
692
- let ko = !!(typeof window < "u" && window.document && window.document.createElement), Ut = /* @__PURE__ */ new WeakMap();
693
- function So(e = !1) {
691
+ }, Qr = /* @__PURE__ */ pe.createContext(Et), ko = /* @__PURE__ */ pe.createContext(!1);
692
+ let So = !!(typeof window < "u" && window.document && window.document.createElement), Ut = /* @__PURE__ */ new WeakMap();
693
+ function $o(e = !1) {
694
694
  let t = Z(Qr), n = J(null);
695
695
  if (n.current === null && !e) {
696
696
  var a, s;
@@ -706,29 +706,29 @@ function So(e = !1) {
706
706
  }
707
707
  return n.current;
708
708
  }
709
- function $o(e) {
709
+ function Do(e) {
710
710
  let t = Z(Qr);
711
- t === Et && !ko && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
712
- let n = So(!!e), a = t === Et && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
711
+ t === Et && !So && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
712
+ let n = $o(!!e), a = t === Et && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
713
713
  return e || `${a}-${n}`;
714
714
  }
715
- function Do(e) {
716
- let t = pe.useId(), [n] = R(To()), a = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Et.prefix}`;
715
+ function Io(e) {
716
+ let t = pe.useId(), [n] = R(Mo()), a = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Et.prefix}`;
717
717
  return e || `${a}-${t}`;
718
718
  }
719
- const Io = typeof pe.useId == "function" ? Do : $o;
720
- function Eo() {
719
+ const Eo = typeof pe.useId == "function" ? Io : Do;
720
+ function Fo() {
721
721
  return !1;
722
722
  }
723
- function Fo() {
723
+ function Oo() {
724
724
  return !0;
725
725
  }
726
- function Oo(e) {
726
+ function To(e) {
727
727
  return () => {
728
728
  };
729
729
  }
730
- function To() {
731
- return typeof pe.useSyncExternalStore == "function" ? pe.useSyncExternalStore(Oo, Eo, Fo) : Z(Co);
730
+ function Mo() {
731
+ return typeof pe.useSyncExternalStore == "function" ? pe.useSyncExternalStore(To, Fo, Oo) : Z(ko);
732
732
  }
733
733
  const Zr = (e) => {
734
734
  var t;
@@ -736,12 +736,12 @@ const Zr = (e) => {
736
736
  }, An = () => {
737
737
  };
738
738
  function Jr() {
739
- const e = Io(), {
739
+ const e = Eo(), {
740
740
  show: t = !1,
741
741
  toggle: n = An,
742
742
  setToggle: a,
743
743
  menuElement: s
744
- } = Z(Tt) || {}, o = I((c) => {
744
+ } = Z(Tt) || {}, o = D((c) => {
745
745
  n(!t, c);
746
746
  }, [t, n]), i = {
747
747
  id: e,
@@ -765,8 +765,8 @@ function Xr({
765
765
  Xr.displayName = "DropdownToggle";
766
766
  const tn = /* @__PURE__ */ K.createContext(null), Vn = (e, t = null) => e != null ? String(e) : t || null, ea = /* @__PURE__ */ K.createContext(null);
767
767
  ea.displayName = "NavContext";
768
- const Mo = ["eventKey", "disabled", "onClick", "active", "as"];
769
- function Lo(e, t) {
768
+ const Lo = ["eventKey", "disabled", "onClick", "active", "as"];
769
+ function Ro(e, t) {
770
770
  if (e == null) return {};
771
771
  var n = {};
772
772
  for (var a in e) if ({}.hasOwnProperty.call(e, a)) {
@@ -803,7 +803,7 @@ const na = /* @__PURE__ */ K.forwardRef((e, t) => {
803
803
  onClick: s,
804
804
  active: o,
805
805
  as: i = Mr
806
- } = e, c = Lo(e, Mo);
806
+ } = e, c = Ro(e, Lo);
807
807
  const [l] = ta({
808
808
  key: n,
809
809
  href: c.href,
@@ -817,7 +817,7 @@ const na = /* @__PURE__ */ K.forwardRef((e, t) => {
817
817
  });
818
818
  na.displayName = "DropdownItem";
819
819
  function Pn() {
820
- const e = wo(), t = J(null), n = I((a) => {
820
+ const e = bo(), t = J(null), n = D((a) => {
821
821
  t.current = a, e();
822
822
  }, [e]);
823
823
  return [t, n];
@@ -832,7 +832,7 @@ function wt({
832
832
  placement: i = "bottom-start",
833
833
  children: c
834
834
  }) {
835
- const l = os(), [u, d] = yo(t, e, a), [m, p] = Pn(), g = m.current, [v, x] = Pn(), h = v.current, j = is(u), w = J(null), f = J(!1), _ = Z(tn), C = I((N, E, A = E == null ? void 0 : E.type) => {
835
+ const l = os(), [u, d] = wo(t, e, a), [m, p] = Pn(), g = m.current, [v, x] = Pn(), h = v.current, j = is(u), w = J(null), f = J(!1), _ = Z(tn), C = D((N, E, A = E == null ? void 0 : E.type) => {
836
836
  d(N, {
837
837
  originalEvent: E,
838
838
  source: A
@@ -870,7 +870,7 @@ function wt({
870
870
  let T = A.indexOf(N) + E;
871
871
  return T = Math.max(0, Math.min(T, A.length)), A[T];
872
872
  };
873
- return co(I(() => l.document, [l]), "keydown", (N) => {
873
+ return uo(D(() => l.document, [l]), "keydown", (N) => {
874
874
  var E, A;
875
875
  const {
876
876
  key: T
@@ -898,8 +898,8 @@ function wt({
898
898
  return;
899
899
  case "Tab":
900
900
  ls(q.ownerDocument, "keyup", (U) => {
901
- var D;
902
- (U.key === "Tab" && !U.target || !((D = m.current) != null && D.contains(U.target))) && d(!1, B);
901
+ var I;
902
+ (U.key === "Tab" && !U.target || !((I = m.current) != null && I.contains(U.target))) && d(!1, B);
903
903
  }, {
904
904
  once: !0
905
905
  });
@@ -990,7 +990,7 @@ const xn = /* @__PURE__ */ K.createContext(null);
990
990
  xn.displayName = "NavbarContext";
991
991
  function ia(e, t) {
992
992
  if (process.env.NODE_ENV === "production") return e;
993
- const n = I((a) => {
993
+ const n = D((a) => {
994
994
  a == null || !a.isReactComponent || (process.env.NODE_ENV !== "production" ? Ln(!1, `${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : Ln(!1));
995
995
  }, [t]);
996
996
  return sn(n, e);
@@ -1150,12 +1150,12 @@ const xt = Object.assign(da, {
1150
1150
  ...a
1151
1151
  })));
1152
1152
  Lt.displayName = "InputGroupText";
1153
- const Ro = (e) => /* @__PURE__ */ r.jsx(Lt, {
1153
+ const Ao = (e) => /* @__PURE__ */ r.jsx(Lt, {
1154
1154
  children: /* @__PURE__ */ r.jsx(gr, {
1155
1155
  type: "checkbox",
1156
1156
  ...e
1157
1157
  })
1158
- }), Ao = (e) => /* @__PURE__ */ r.jsx(Lt, {
1158
+ }), Vo = (e) => /* @__PURE__ */ r.jsx(Lt, {
1159
1159
  children: /* @__PURE__ */ r.jsx(gr, {
1160
1160
  type: "radio",
1161
1161
  ...e
@@ -1183,8 +1183,8 @@ const Ro = (e) => /* @__PURE__ */ r.jsx(Lt, {
1183
1183
  fa.displayName = "InputGroup";
1184
1184
  const kt = Object.assign(fa, {
1185
1185
  Text: Lt,
1186
- Radio: Ao,
1187
- Checkbox: Ro
1186
+ Radio: Vo,
1187
+ Checkbox: Ao
1188
1188
  }), nn = /* @__PURE__ */ new WeakMap(), Bn = (e, t) => {
1189
1189
  if (!e || !t) return;
1190
1190
  const n = nn.get(t) || /* @__PURE__ */ new Map();
@@ -1192,7 +1192,7 @@ const kt = Object.assign(fa, {
1192
1192
  let a = n.get(e);
1193
1193
  return a || (a = t.matchMedia(e), a.refCount = 0, n.set(a.media, a)), a;
1194
1194
  };
1195
- function Vo(e, t = typeof window > "u" ? void 0 : window) {
1195
+ function Po(e, t = typeof window > "u" ? void 0 : window) {
1196
1196
  const n = Bn(e, t), [a, s] = R(() => n ? n.matches : !1);
1197
1197
  return pr(() => {
1198
1198
  let o = Bn(e, t);
@@ -1207,7 +1207,7 @@ function Vo(e, t = typeof window > "u" ? void 0 : window) {
1207
1207
  };
1208
1208
  }, [e]), a;
1209
1209
  }
1210
- function Po(e) {
1210
+ function Bo(e) {
1211
1211
  const t = Object.keys(e);
1212
1212
  function n(c, l) {
1213
1213
  return c === l ? l : c ? `${c} and ${l}` : l;
@@ -1230,11 +1230,11 @@ function Po(e) {
1230
1230
  [c]: l
1231
1231
  });
1232
1232
  let m = re(() => Object.entries(d).reduce((p, [g, v]) => ((v === "up" || v === !0) && (p = n(p, o(g))), (v === "down" || v === !0) && (p = n(p, s(g))), p), ""), [JSON.stringify(d)]);
1233
- return Vo(m, u);
1233
+ return Po(m, u);
1234
1234
  }
1235
1235
  return i;
1236
1236
  }
1237
- const Bo = Po({
1237
+ const Ho = Bo({
1238
1238
  xs: 0,
1239
1239
  sm: 576,
1240
1240
  md: 768,
@@ -1252,7 +1252,7 @@ const Bo = Po({
1252
1252
  ...a
1253
1253
  })));
1254
1254
  ma.displayName = "OffcanvasBody";
1255
- const Ho = {
1255
+ const Wo = {
1256
1256
  [an]: "show",
1257
1257
  [fr]: "show"
1258
1258
  }, ha = /* @__PURE__ */ K.forwardRef(({
@@ -1275,7 +1275,7 @@ const Ho = {
1275
1275
  childRef: n.ref,
1276
1276
  children: (u, d) => /* @__PURE__ */ K.cloneElement(n, {
1277
1277
  ...d,
1278
- className: y(t, n.props.className, (u === an || u === dr) && `${e}-toggling`, Ho[u])
1278
+ className: y(t, n.props.className, (u === an || u === dr) && `${e}-toggling`, Wo[u])
1279
1279
  })
1280
1280
  })));
1281
1281
  ha.displayName = "OffcanvasToggling";
@@ -1293,10 +1293,10 @@ const pa = /* @__PURE__ */ K.forwardRef(({
1293
1293
  closeButton: a
1294
1294
  })));
1295
1295
  pa.displayName = "OffcanvasHeader";
1296
- const Wo = Ot("h5"), ga = /* @__PURE__ */ K.forwardRef(({
1296
+ const Uo = Ot("h5"), ga = /* @__PURE__ */ K.forwardRef(({
1297
1297
  className: e,
1298
1298
  bsPrefix: t,
1299
- as: n = Wo,
1299
+ as: n = Uo,
1300
1300
  ...a
1301
1301
  }, s) => (t = se(t, "offcanvas-title"), /* @__PURE__ */ r.jsx(n, {
1302
1302
  ref: s,
@@ -1304,12 +1304,12 @@ const Wo = Ot("h5"), ga = /* @__PURE__ */ K.forwardRef(({
1304
1304
  ...a
1305
1305
  })));
1306
1306
  ga.displayName = "OffcanvasTitle";
1307
- function Uo(e) {
1307
+ function zo(e) {
1308
1308
  return /* @__PURE__ */ r.jsx(ha, {
1309
1309
  ...e
1310
1310
  });
1311
1311
  }
1312
- function zo(e) {
1312
+ function Go(e) {
1313
1313
  return /* @__PURE__ */ r.jsx(Zt, {
1314
1314
  ...e
1315
1315
  });
@@ -1349,7 +1349,7 @@ const xa = /* @__PURE__ */ K.forwardRef(({
1349
1349
  e = se(e, "offcanvas");
1350
1350
  const {
1351
1351
  onToggle: T
1352
- } = Z(xn) || {}, [q, L] = R(!1), O = Bo(o || "xs", "up");
1352
+ } = Z(xn) || {}, [q, L] = R(!1), O = Ho(o || "xs", "up");
1353
1353
  V(() => {
1354
1354
  L(o ? i && !O : i);
1355
1355
  }, [i, o, O]);
@@ -1363,11 +1363,11 @@ const xa = /* @__PURE__ */ K.forwardRef(({
1363
1363
  handleContainerOverflow: !1
1364
1364
  })), A.current) : ps());
1365
1365
  }
1366
- const D = (te, ...ke) => {
1366
+ const I = (te, ...ke) => {
1367
1367
  te && (te.style.visibility = "visible"), C == null || C(te, ...ke);
1368
1368
  }, z = (te, ...ke) => {
1369
1369
  te && (te.style.visibility = ""), k == null || k(...ke);
1370
- }, ue = I((te) => /* @__PURE__ */ r.jsx("div", {
1370
+ }, ue = D((te) => /* @__PURE__ */ r.jsx("div", {
1371
1371
  ...te,
1372
1372
  className: y(`${e}-backdrop`, $)
1373
1373
  }), [$, e]), he = (te) => /* @__PURE__ */ r.jsx("div", {
@@ -1393,15 +1393,15 @@ const xa = /* @__PURE__ */ K.forwardRef(({
1393
1393
  onEscapeKeyDown: d,
1394
1394
  onShow: m,
1395
1395
  onHide: W,
1396
- onEnter: D,
1396
+ onEnter: I,
1397
1397
  onEntering: S,
1398
1398
  onEntered: w,
1399
1399
  onExit: f,
1400
1400
  onExiting: _,
1401
1401
  onExited: z,
1402
1402
  manager: U(),
1403
- transition: Uo,
1404
- backdropTransition: zo,
1403
+ transition: zo,
1404
+ backdropTransition: Go,
1405
1405
  renderBackdrop: ue,
1406
1406
  renderDialog: he
1407
1407
  })
@@ -1473,12 +1473,12 @@ const Re = Object.assign(ya, {
1473
1473
  });
1474
1474
  });
1475
1475
  vn.displayName = "Spinner";
1476
- const bu = ({ heading: e, content: t, placement: n, children: a, trigger: s, popoverClassName: o, ...i }) => /* @__PURE__ */ r.jsx(xs, { placement: n, overlay: /* @__PURE__ */ r.jsxs(Vt, { className: y("luminus-popover", o), onClick: (c) => c.stopPropagation(), children: [
1476
+ const _u = ({ heading: e, content: t, placement: n, children: a, trigger: s, popoverClassName: o, ...i }) => /* @__PURE__ */ r.jsx(xs, { placement: n, overlay: /* @__PURE__ */ r.jsxs(Vt, { className: y("luminus-popover", o), onClick: (c) => c.stopPropagation(), children: [
1477
1477
  e && /* @__PURE__ */ r.jsx(Vt.Header, { children: typeof e == "string" ? /* @__PURE__ */ r.jsx(X, { variant: "h6", className: "text-primary", children: e }) : e }),
1478
1478
  /* @__PURE__ */ r.jsx(Vt.Body, { children: t })
1479
- ] }), trigger: s ?? "hover", rootClose: !0, show: i.controlled ? i.isOpen : void 0, onToggle: i.controlled ? (c) => i.setIsOpen(c) : void 0, children: a }), Go = ({ children: e, onStorno: t, noSpacer: n }) => {
1479
+ ] }), trigger: s ?? "hover", rootClose: !0, show: i.controlled ? i.isOpen : void 0, onToggle: i.controlled ? (c) => i.setIsOpen(c) : void 0, children: a }), Yo = ({ children: e, onStorno: t, noSpacer: n }) => {
1480
1480
  const { texts: { formSubmit: a } } = Z(we);
1481
- return /* @__PURE__ */ r.jsxs(Kl, { noSpacer: n, children: [
1481
+ return /* @__PURE__ */ r.jsxs(ql, { noSpacer: n, children: [
1482
1482
  /* @__PURE__ */ r.jsxs(Sn, { as: "button", color: "primary", size: "lg", type: "submit", children: [
1483
1483
  /* @__PURE__ */ r.jsx(vs, {}),
1484
1484
  e
@@ -1499,10 +1499,23 @@ const bu = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
1499
1499
  ] }),
1500
1500
  /* @__PURE__ */ r.jsx("input", { id: n, type: "file", accept: a, onChange: u, hidden: !0, multiple: c })
1501
1501
  ] });
1502
- }, Yo = "_select_dlv1t_1", zt = {
1503
- select: Yo
1504
- }, Ko = ({ month: e, onChangeMonth: t, locale: n, yearMin: a = 2e3, yearMax: s = 2050 }) => {
1505
- const o = I((l) => {
1502
+ }, Nu = ({ onUpload: e, accept: t, children: n, className: a, size: s = "md" }) => {
1503
+ const o = D(async (c) => {
1504
+ if (c.target.files)
1505
+ try {
1506
+ await e(c.target.files);
1507
+ } finally {
1508
+ c.target.value = "";
1509
+ }
1510
+ }, [e]), i = Bs();
1511
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1512
+ /* @__PURE__ */ r.jsx("label", { htmlFor: i, className: y("btn luminus-context-button text-primary", `btn-${s}`, a), children: n }),
1513
+ /* @__PURE__ */ r.jsx("input", { id: i, type: "file", accept: t, onChange: o, hidden: !0 })
1514
+ ] });
1515
+ }, Ko = "_select_dlv1t_1", zt = {
1516
+ select: Ko
1517
+ }, qo = ({ month: e, onChangeMonth: t, locale: n, yearMin: a = 2e3, yearMax: s = 2050 }) => {
1518
+ const o = D((l) => {
1506
1519
  const u = Ir(e, l);
1507
1520
  u.getFullYear() < a || u.getFullYear() > s || t(u);
1508
1521
  }, [e, t, a, s]), i = re(() => {
@@ -1523,7 +1536,7 @@ const bu = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
1523
1536
  /* @__PURE__ */ r.jsx(ee, { onClick: () => o(-1), disabled: e.getFullYear() < a || e.getFullYear() === a && e.getMonth() <= 0, children: /* @__PURE__ */ r.jsx(on, {}) }),
1524
1537
  /* @__PURE__ */ r.jsx(je.Select, { value: e.getMonth(), onChange: (l) => {
1525
1538
  var u;
1526
- return ((u = l.target) == null ? void 0 : u.value) && t(ro(e, Number(l.target.value)));
1539
+ return ((u = l.target) == null ? void 0 : u.value) && t(ao(e, Number(l.target.value)));
1527
1540
  }, className: y(zt.select, zt.month), children: c.map((l) => /* @__PURE__ */ r.jsx("option", { value: l.id, children: l.name }, l.id)) }),
1528
1541
  /* @__PURE__ */ r.jsx(je.Select, { value: e.getFullYear(), onChange: (l) => {
1529
1542
  var u;
@@ -1531,12 +1544,12 @@ const bu = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
1531
1544
  }, className: y(zt.select), children: i.map((l) => /* @__PURE__ */ r.jsx("option", { value: l, children: l }, l)) }),
1532
1545
  /* @__PURE__ */ r.jsx(ee, { onClick: () => o(1), disabled: e.getFullYear() > s || e.getFullYear() === s && e.getMonth() >= 11, children: /* @__PURE__ */ r.jsx(ln, {}) })
1533
1546
  ] });
1534
- }, qo = "_select_pywmr_1", Qo = {
1535
- select: qo
1536
- }, Zo = ({ year: e, onChangeYear: t, optionMin: n = 2e3, optionMax: a = 2050, className: s }) => {
1537
- const o = I((c) => {
1547
+ }, Qo = "_select_pywmr_1", Zo = {
1548
+ select: Qo
1549
+ }, Jo = ({ year: e, onChangeYear: t, optionMin: n = 2e3, optionMax: a = 2050, className: s }) => {
1550
+ const o = D((c) => {
1538
1551
  const l = e.getFullYear() + c;
1539
- l < n || l > a || t(Js(e, c));
1552
+ l < n || l > a || t(Xs(e, c));
1540
1553
  }, [e, t, a, n]), i = re(() => {
1541
1554
  const c = [];
1542
1555
  for (let l = n; l <= a; l++)
@@ -1548,50 +1561,50 @@ const bu = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
1548
1561
  /* @__PURE__ */ r.jsx(je.Select, { value: e.getFullYear(), onChange: (c) => {
1549
1562
  var l;
1550
1563
  return ((l = c.target) == null ? void 0 : l.value) && t(Er(e, Number(c.target.value)));
1551
- }, className: Qo.select, children: i.map((c) => /* @__PURE__ */ r.jsx("option", { value: c, children: c }, c)) }),
1564
+ }, className: Zo.select, children: i.map((c) => /* @__PURE__ */ r.jsx("option", { value: c, children: c }, c)) }),
1552
1565
  /* @__PURE__ */ r.jsx(ee, { onClick: () => o(1), disabled: e.getFullYear() >= a, children: /* @__PURE__ */ r.jsx(ln, {}) })
1553
1566
  ] });
1554
- }, Jo = "_widget_etgh3_1", Xo = {
1555
- widget: Jo
1556
- }, ei = ({ show: e, widgets: t, handleClose: n, onWidgetPicked: a, texts: s }) => /* @__PURE__ */ r.jsxs(_t, { show: e, onHide: () => n(), children: [
1567
+ }, Xo = "_widget_etgh3_1", ei = {
1568
+ widget: Xo
1569
+ }, ti = ({ show: e, widgets: t, handleClose: n, onWidgetPicked: a, texts: s }) => /* @__PURE__ */ r.jsxs(_t, { show: e, onHide: () => n(), children: [
1557
1570
  /* @__PURE__ */ r.jsx(_t.Header, { closeButton: !0, children: /* @__PURE__ */ r.jsx(_t.Title, { children: s.pickWidgetToAdd }) }),
1558
1571
  /* @__PURE__ */ r.jsx(_t.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 }) })) }) })
1559
1572
  ] }), Wn = ({ availableWidgets: e, onAdd: t, texts: n }) => {
1560
1573
  const [a, s] = R(!1);
1561
1574
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1562
- /* @__PURE__ */ r.jsx("div", { className: y("luminus-empty-widget", Xo.widget), children: /* @__PURE__ */ r.jsx(ee, { onClick: () => s(!0), children: /* @__PURE__ */ r.jsx(ws, {}) }) }),
1563
- /* @__PURE__ */ r.jsx(ei, { show: a, widgets: e, handleClose: () => s(!1), onWidgetPicked: (o) => {
1575
+ /* @__PURE__ */ r.jsx("div", { className: y("luminus-empty-widget", ei.widget), children: /* @__PURE__ */ r.jsx(ee, { onClick: () => s(!0), children: /* @__PURE__ */ r.jsx(ws, {}) }) }),
1576
+ /* @__PURE__ */ r.jsx(ti, { show: a, widgets: e, handleClose: () => s(!1), onWidgetPicked: (o) => {
1564
1577
  s(!1), t(o);
1565
1578
  }, texts: n })
1566
1579
  ] });
1567
- }, ti = (e) => {
1580
+ }, ni = (e) => {
1568
1581
  const [t, n] = R({ widgets: [] });
1569
1582
  V(() => {
1570
1583
  const s = localStorage.getItem("dashboardConfig");
1571
1584
  s ? n(JSON.parse(s)) : e && n(e);
1572
1585
  }, [e]);
1573
- const a = I((s) => {
1586
+ const a = D((s) => {
1574
1587
  n(s), localStorage.setItem("dashboardConfig", JSON.stringify(s));
1575
1588
  }, []);
1576
1589
  return { dashboardConfig: t, onChangeDashboardConfig: a };
1577
- }, ni = "_dashboard_16plm_1", ri = "_widgets-grid_16plm_1", ai = "_widget-wrapper_16plm_8", si = "_full-width_16plm_13", oi = "_widget-edit_16plm_16", ii = "_remove-icon_16plm_19", li = "_full-width-icon_16plm_26", ci = "_widget-edit-overlay_16plm_36", Fe = {
1578
- dashboard: ni,
1590
+ }, ri = "_dashboard_16plm_1", ai = "_widgets-grid_16plm_1", si = "_widget-wrapper_16plm_8", oi = "_full-width_16plm_13", ii = "_widget-edit_16plm_16", li = "_remove-icon_16plm_19", ci = "_full-width-icon_16plm_26", ui = "_widget-edit-overlay_16plm_36", Fe = {
1591
+ dashboard: ri,
1579
1592
  "widgets-grid": "_widgets-grid_16plm_1",
1580
- widgetsGrid: ri,
1593
+ widgetsGrid: ai,
1581
1594
  "widget-wrapper": "_widget-wrapper_16plm_8",
1582
- widgetWrapper: ai,
1595
+ widgetWrapper: si,
1583
1596
  "full-width": "_full-width_16plm_13",
1584
- fullWidth: si,
1597
+ fullWidth: oi,
1585
1598
  "widget-edit": "_widget-edit_16plm_16",
1586
- widgetEdit: oi,
1599
+ widgetEdit: ii,
1587
1600
  "remove-icon": "_remove-icon_16plm_19",
1588
- removeIcon: ii,
1601
+ removeIcon: li,
1589
1602
  "full-width-icon": "_full-width-icon_16plm_26",
1590
- fullWidthIcon: li,
1603
+ fullWidthIcon: ci,
1591
1604
  "widget-edit-overlay": "_widget-edit-overlay_16plm_36",
1592
- widgetEditOverlay: ci
1605
+ widgetEditOverlay: ui
1593
1606
  };
1594
- class ui extends Bs {
1607
+ class di extends Hs {
1595
1608
  constructor(t) {
1596
1609
  super(t), this.state = { hasError: !1 }, this.reload = this.reload.bind(this);
1597
1610
  }
@@ -1610,7 +1623,7 @@ class ui extends Bs {
1610
1623
  }
1611
1624
  render() {
1612
1625
  const { fallback: t, children: n, texts: a, reloadButtonDisplay: s = "append-after-child" } = this.props;
1613
- return this.state.hasError ? s === "inject-to-child" && Hs(t) ? pe.cloneElement(t, {
1626
+ return this.state.hasError ? s === "inject-to-child" && Ws(t) ? pe.cloneElement(t, {
1614
1627
  ...t.props
1615
1628
  }, /* @__PURE__ */ r.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
1616
1629
  ...t.props.children,
@@ -1621,18 +1634,18 @@ class ui extends Bs {
1621
1634
  ] }) : n;
1622
1635
  }
1623
1636
  }
1624
- const di = (e) => (n) => {
1637
+ const fi = (e) => (n) => {
1625
1638
  const { texts: { errorBoundary: a } } = Z(we);
1626
1639
  return /* @__PURE__ */ r.jsx(e, { texts: a, ...n });
1627
- }, fi = di(ui), mi = "_widget-card_e9tsb_1", hi = {
1640
+ }, mi = fi(di), hi = "_widget-card_e9tsb_1", pi = {
1628
1641
  "widget-card": "_widget-card_e9tsb_1",
1629
- widgetCard: mi
1630
- }, Un = ({ children: e, title: t, headerContent: n }) => /* @__PURE__ */ r.jsx(pl, { className: y(hi.widgetCard, "luminus-widget"), title: t, headerContent: n, contentClassName: "h-100 overflow-auto", children: e }), pi = ({ children: e, title: t }) => {
1642
+ widgetCard: hi
1643
+ }, Un = ({ children: e, title: t, headerContent: n }) => /* @__PURE__ */ r.jsx(gl, { className: y(pi.widgetCard, "luminus-widget"), title: t, headerContent: n, contentClassName: "h-100 overflow-auto", children: e }), gi = ({ children: e, title: t }) => {
1631
1644
  const { texts: { widget: n } } = Z(we);
1632
- return /* @__PURE__ */ r.jsx(fi, { fallback: /* @__PURE__ */ r.jsx(Un, { title: t, children: n.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ r.jsx(Ws, { fallback: /* @__PURE__ */ r.jsx(Un, { title: t, children: /* @__PURE__ */ r.jsx(Zs, {}) }), children: e }) });
1633
- }, _u = ({ availableWidgets: e, editMode: t, defaultDashboardConfig: n }) => {
1645
+ return /* @__PURE__ */ r.jsx(mi, { fallback: /* @__PURE__ */ r.jsx(Un, { title: t, children: n.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ r.jsx(Us, { fallback: /* @__PURE__ */ r.jsx(Un, { title: t, children: /* @__PURE__ */ r.jsx(Js, {}) }), children: e }) });
1646
+ }, Cu = ({ availableWidgets: e, editMode: t, defaultDashboardConfig: n }) => {
1634
1647
  var d;
1635
- const { texts: { homeDashboard: a } } = Z(we), { dashboardConfig: s, onChangeDashboardConfig: o } = ti(n), i = I((m, p) => {
1648
+ const { texts: { homeDashboard: a } } = Z(we), { dashboardConfig: s, onChangeDashboardConfig: o } = ni(n), i = D((m, p) => {
1636
1649
  var g, v;
1637
1650
  m === ((g = s.widgets) == null ? void 0 : g.length) ? o({
1638
1651
  ...s,
@@ -1641,26 +1654,26 @@ const di = (e) => (n) => {
1641
1654
  ...s,
1642
1655
  widgets: ((v = s.widgets) == null ? void 0 : v.map((x, h) => h === m ? { widgetId: p, fullWidth: !1 } : x)) ?? []
1643
1656
  });
1644
- }, [s, o]), c = I((m) => {
1657
+ }, [s, o]), c = D((m) => {
1645
1658
  var p, g;
1646
1659
  ((p = s.widgets[m]) == null ? void 0 : p.widgetId) === -1 ? o({
1647
1660
  ...s,
1648
1661
  widgets: ((g = s.widgets) == null ? void 0 : g.filter((v, x) => x !== m)) ?? []
1649
1662
  }) : i(m, -1);
1650
- }, [s, o, i]), l = I((m) => {
1663
+ }, [s, o, i]), l = D((m) => {
1651
1664
  var p;
1652
1665
  o({
1653
1666
  ...s,
1654
1667
  widgets: ((p = s.widgets) == null ? void 0 : p.map((g, v) => v === m ? { ...g, fullWidth: !g.fullWidth } : g)) ?? []
1655
1668
  });
1656
- }, [s, o]), u = I((m, p, g) => m ? /* @__PURE__ */ r.jsxs("div", { className: y(Fe.widgetWrapper, {
1669
+ }, [s, o]), u = D((m, p, g) => m ? /* @__PURE__ */ r.jsxs("div", { className: y(Fe.widgetWrapper, {
1657
1670
  [Fe.widgetEdit]: t && m.id !== -1
1658
1671
  }, { [Fe.fullWidth]: g }), children: [
1659
1672
  t && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1660
1673
  /* @__PURE__ */ r.jsx(ee, { color: "danger", onClick: () => c(p), className: y(Fe.removeIcon), children: /* @__PURE__ */ r.jsx(vr, {}) }),
1661
1674
  /* @__PURE__ */ r.jsx(ee, { color: g ? "danger" : "primary", onClick: () => l(p), className: y(Fe.fullWidthIcon), children: /* @__PURE__ */ r.jsx(bs, {}) })
1662
1675
  ] }),
1663
- m.id === -1 ? t && /* @__PURE__ */ r.jsx("div", { className: Fe.widgetWrapper, children: /* @__PURE__ */ r.jsx(Wn, { availableWidgets: e, onAdd: (v) => i(p, v), texts: a }) }) : /* @__PURE__ */ r.jsx(pi, { title: m.title, children: /* @__PURE__ */ r.jsx(m.WidgetElement, { title: m.title }) }),
1676
+ m.id === -1 ? t && /* @__PURE__ */ r.jsx("div", { className: Fe.widgetWrapper, children: /* @__PURE__ */ r.jsx(Wn, { availableWidgets: e, onAdd: (v) => i(p, v), texts: a }) }) : /* @__PURE__ */ r.jsx(gi, { title: m.title, children: /* @__PURE__ */ r.jsx(m.WidgetElement, { title: m.title }) }),
1664
1677
  m.id > -1 && t && /* @__PURE__ */ r.jsx("div", { className: Fe.widgetEditOverlay })
1665
1678
  ] }, p) : /* @__PURE__ */ r.jsx(r.Fragment, {}), [
1666
1679
  t,
@@ -1677,16 +1690,16 @@ const di = (e) => (n) => {
1677
1690
  return i((p = s.widgets) == null ? void 0 : p.length, m);
1678
1691
  }, texts: a })
1679
1692
  ] }) });
1680
- }, gi = "_badge_nhser_1", xi = "_sm_nhser_1", vi = "_md_nhser_4", ji = "_lg_nhser_7", zn = {
1681
- badge: gi,
1682
- sm: xi,
1683
- md: vi,
1684
- lg: ji
1685
- }, Nu = ({ children: e, color: t = "primary", size: n = "md", className: a }) => /* @__PURE__ */ r.jsx("span", { className: y(`luminus-badge badge bg-${t} ${a ?? ""}`, zn.badge, zn[n]), children: e }), yi = "_collapse-icon_1ahhn_1", wi = "_collapsed_1ahhn_6", Gn = {
1693
+ }, xi = "_badge_nhser_1", vi = "_sm_nhser_1", ji = "_md_nhser_4", yi = "_lg_nhser_7", zn = {
1694
+ badge: xi,
1695
+ sm: vi,
1696
+ md: ji,
1697
+ lg: yi
1698
+ }, ku = ({ children: e, color: t = "primary", size: n = "md", className: a }) => /* @__PURE__ */ r.jsx("span", { className: y(`luminus-badge badge bg-${t} ${a ?? ""}`, zn.badge, zn[n]), children: e }), wi = "_collapse-icon_1ahhn_1", bi = "_collapsed_1ahhn_6", Gn = {
1686
1699
  "collapse-icon": "_collapse-icon_1ahhn_1",
1687
- collapseIcon: yi,
1688
- collapsed: wi
1689
- }, bi = ({ title: e, children: t, className: n, ...a }) => {
1700
+ collapseIcon: wi,
1701
+ collapsed: bi
1702
+ }, _i = ({ title: e, children: t, className: n, ...a }) => {
1690
1703
  const s = a.controlled ? !1 : a.defaultOpen ?? !1, [o, i] = R(s), c = a.controlled ? a.isOpen : o;
1691
1704
  return V(() => {
1692
1705
  i(s);
@@ -1701,7 +1714,7 @@ const di = (e) => (n) => {
1701
1714
  /* @__PURE__ */ r.jsx("hr", { className: `my-0 ${c ? "mt-3" : ""}` })
1702
1715
  ] });
1703
1716
  };
1704
- function _i(e, t, n) {
1717
+ function Ni(e, t, n) {
1705
1718
  var a = this, s = J(null), o = J(0), i = J(null), c = J([]), l = J(), u = J(), d = J(e), m = J(!0);
1706
1719
  d.current = e;
1707
1720
  var p = typeof window < "u", g = !t && t !== 0 && p;
@@ -1752,45 +1765,45 @@ function _i(e, t, n) {
1752
1765
  }, [v, h, t, w, x, g, p, j]);
1753
1766
  return f;
1754
1767
  }
1755
- function Ni(e, t) {
1768
+ function Ci(e, t) {
1756
1769
  return e === t;
1757
1770
  }
1758
- function Ci(e, t) {
1771
+ function ki(e, t) {
1759
1772
  return t;
1760
1773
  }
1761
1774
  function ba(e, t, n) {
1762
- var a = Ni, s = Sr(Ci, e), o = s[0], i = s[1], c = _i(I(function(u) {
1775
+ var a = Ci, s = Sr(ki, e), o = s[0], i = s[1], c = Ni(D(function(u) {
1763
1776
  return i(u);
1764
1777
  }, [i]), t, n), l = J(e);
1765
1778
  return a(l.current, e) || (c(e), l.current = e), a(o, e) && c.cancel(), [o, c];
1766
1779
  }
1767
- const ki = "_wrapper_1kgb8_1", Si = "_open_1kgb8_9", $i = "_dropdown_1kgb8_13", Di = "_search-input-container_1kgb8_19", Ii = "_search-input_1kgb8_19", Ei = "_loading-container_1kgb8_25", Fi = "_items-container_1kgb8_32", Oi = "_header-row_1kgb8_38", Ti = "_item_1kgb8_32", Mi = "_name_1kgb8_57", Li = "_column-item_1kgb8_62", Ri = "_icon_1kgb8_66", Ai = "_action-buttons-container_1kgb8_74", Vi = "_reverse_1kgb8_82", Pi = "_action-button_1kgb8_74", ye = {
1768
- wrapper: ki,
1769
- open: Si,
1770
- dropdown: $i,
1780
+ const Si = "_wrapper_1kgb8_1", $i = "_open_1kgb8_9", Di = "_dropdown_1kgb8_13", Ii = "_search-input-container_1kgb8_19", Ei = "_search-input_1kgb8_19", Fi = "_loading-container_1kgb8_25", Oi = "_items-container_1kgb8_32", Ti = "_header-row_1kgb8_38", Mi = "_item_1kgb8_32", Li = "_name_1kgb8_57", Ri = "_column-item_1kgb8_62", Ai = "_icon_1kgb8_66", Vi = "_action-buttons-container_1kgb8_74", Pi = "_reverse_1kgb8_82", Bi = "_action-button_1kgb8_74", ye = {
1781
+ wrapper: Si,
1782
+ open: $i,
1783
+ dropdown: Di,
1771
1784
  "search-input-container": "_search-input-container_1kgb8_19",
1772
- searchInputContainer: Di,
1785
+ searchInputContainer: Ii,
1773
1786
  "search-input": "_search-input_1kgb8_19",
1774
- searchInput: Ii,
1787
+ searchInput: Ei,
1775
1788
  "loading-container": "_loading-container_1kgb8_25",
1776
- loadingContainer: Ei,
1789
+ loadingContainer: Fi,
1777
1790
  "items-container": "_items-container_1kgb8_32",
1778
- itemsContainer: Fi,
1791
+ itemsContainer: Oi,
1779
1792
  "header-row": "_header-row_1kgb8_38",
1780
- headerRow: Oi,
1781
- item: Ti,
1782
- name: Mi,
1793
+ headerRow: Ti,
1794
+ item: Mi,
1795
+ name: Li,
1783
1796
  "column-item": "_column-item_1kgb8_62",
1784
- columnItem: Li,
1785
- icon: Ri,
1797
+ columnItem: Ri,
1798
+ icon: Ai,
1786
1799
  "action-buttons-container": "_action-buttons-container_1kgb8_74",
1787
- actionButtonsContainer: Ai,
1788
- reverse: Vi,
1800
+ actionButtonsContainer: Vi,
1801
+ reverse: Pi,
1789
1802
  "action-button": "_action-button_1kgb8_74",
1790
- actionButton: Pi
1803
+ actionButton: Bi
1791
1804
  }, 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: p, isLoading: g = !1, inputRef: v }) => {
1792
1805
  var We;
1793
- const x = J(null), h = J(null), j = J(null), w = J(null), f = J(null), [_, C] = R(""), [S] = ba(_, 500), [, k] = R(!1), { copyToClipboard: $ } = Ys(), b = (We = v.current) == null ? void 0 : We.getBoundingClientRect(), F = (b == null ? void 0 : b.x) ?? 0, N = ((b == null ? void 0 : b.x) ?? 0) + ((b == null ? void 0 : b.width) ?? 0), E = (b == null ? void 0 : b.y) ?? 0, A = ((b == null ? void 0 : b.y) ?? 0) + ((b == null ? void 0 : b.height) ?? 0), T = (b == null ? void 0 : b.width) ?? 0, q = (b == null ? void 0 : b.height) ?? 0, L = 5, O = re(() => F ? F > window.innerWidth / 2 : !1, [F]), W = re(() => E ? E > window.innerHeight / 2 : !1, [E]);
1806
+ const x = J(null), h = J(null), j = J(null), w = J(null), f = J(null), [_, C] = R(""), [S] = ba(_, 500), [, k] = R(!1), { copyToClipboard: $ } = Ks(), b = (We = v.current) == null ? void 0 : We.getBoundingClientRect(), F = (b == null ? void 0 : b.x) ?? 0, N = ((b == null ? void 0 : b.x) ?? 0) + ((b == null ? void 0 : b.width) ?? 0), E = (b == null ? void 0 : b.y) ?? 0, A = ((b == null ? void 0 : b.y) ?? 0) + ((b == null ? void 0 : b.height) ?? 0), T = (b == null ? void 0 : b.width) ?? 0, q = (b == null ? void 0 : b.height) ?? 0, L = 5, O = re(() => F ? F > window.innerWidth / 2 : !1, [F]), W = re(() => E ? E > window.innerHeight / 2 : !1, [E]);
1794
1807
  V(() => {
1795
1808
  var Y;
1796
1809
  e && ((Y = w.current) == null || Y.focus());
@@ -1803,7 +1816,7 @@ const ki = "_wrapper_1kgb8_1", Si = "_open_1kgb8_9", $i = "_dropdown_1kgb8_13",
1803
1816
  V(() => {
1804
1817
  e && n.length > 0 ? U(0) : U(null);
1805
1818
  }, [n, e]);
1806
- const D = re(() => B !== null ? n.at(B) ?? null : null, [B, n]), z = I((Y, de) => {
1819
+ const I = re(() => B !== null ? n.at(B) ?? null : null, [B, n]), z = D((Y, de) => {
1807
1820
  var Ue, Xe;
1808
1821
  const _e = document.getElementById(`item-${Y}`);
1809
1822
  if (_e) {
@@ -1818,19 +1831,19 @@ const ki = "_wrapper_1kgb8_1", Si = "_open_1kgb8_9", $i = "_dropdown_1kgb8_13",
1818
1831
  behavior: "smooth"
1819
1832
  });
1820
1833
  }
1821
- }, []), ue = I((Y) => {
1834
+ }, []), ue = D((Y) => {
1822
1835
  if (B === null || p)
1823
1836
  return;
1824
1837
  const de = B + Y;
1825
1838
  de < 0 || de >= n.length || U((_e) => (_e !== null && z(_e, Y > 0 ? "down" : "up"), de));
1826
- }, [B, n, p, z]), he = I((Y) => {
1839
+ }, [B, n, p, z]), he = D((Y) => {
1827
1840
  if (e)
1828
1841
  switch (Y.key) {
1829
1842
  case "Escape":
1830
1843
  Y.stopPropagation(), Y.preventDefault(), t();
1831
1844
  break;
1832
1845
  case "Enter":
1833
- Y.stopPropagation(), Y.preventDefault(), p || s(D);
1846
+ Y.stopPropagation(), Y.preventDefault(), p || s(I);
1834
1847
  break;
1835
1848
  case "ArrowUp":
1836
1849
  Y.stopPropagation(), Y.preventDefault(), ue(-1);
@@ -1839,7 +1852,7 @@ const ki = "_wrapper_1kgb8_1", Si = "_open_1kgb8_9", $i = "_dropdown_1kgb8_13",
1839
1852
  Y.stopPropagation(), Y.preventDefault(), ue(1);
1840
1853
  break;
1841
1854
  }
1842
- }, [t, e, ue, D, p, s]), te = I(() => {
1855
+ }, [t, e, ue, I, p, s]), te = D(() => {
1843
1856
  k((Y) => !Y);
1844
1857
  }, []);
1845
1858
  V(() => (window.addEventListener("scroll", te), () => {
@@ -1899,12 +1912,12 @@ const ki = "_wrapper_1kgb8_1", Si = "_open_1kgb8_9", $i = "_dropdown_1kgb8_13",
1899
1912
  ] })
1900
1913
  ] }) }) })
1901
1914
  ] });
1902
- }, Bi = "_item_1dy8x_1", _a = {
1903
- item: Bi
1915
+ }, Hi = "_item_1dy8x_1", _a = {
1916
+ item: Hi
1904
1917
  }, yn = ({ color: e = "primary", icon: t, className: n, children: a, ...s }) => /* @__PURE__ */ r.jsxs(xt.Item, { className: y(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n ?? ""}`, _a.item), ...s, children: [
1905
1918
  t,
1906
1919
  a
1907
- ] }), Na = (e) => /* @__PURE__ */ r.jsx(xt.Toggle, { ...e }), Cu = ({ color: e = "primary", icon: t = /* @__PURE__ */ r.jsx(xr, { size: 12 }), inputId: n = "context-file-input", accept: a = "*", onUpload: s, multiple: o, className: i, children: c, ...l }) => {
1920
+ ] }), Na = (e) => /* @__PURE__ */ r.jsx(xt.Toggle, { ...e }), Su = ({ color: e = "primary", icon: t = /* @__PURE__ */ r.jsx(xr, { size: 12 }), inputId: n = "context-file-input", accept: a = "*", onUpload: s, multiple: o, className: i, children: c, ...l }) => {
1908
1921
  const u = (d) => {
1909
1922
  d.target.files && (s(d.target.files), d.target.value = "");
1910
1923
  };
@@ -1915,25 +1928,25 @@ const ki = "_wrapper_1kgb8_1", Si = "_open_1kgb8_9", $i = "_dropdown_1kgb8_13",
1915
1928
  ] }),
1916
1929
  /* @__PURE__ */ r.jsx("input", { id: n, type: "file", accept: a, onChange: u, hidden: !0, multiple: o })
1917
1930
  ] });
1918
- }, Hi = "_divider_1e6rk_1", Wi = {
1919
- divider: Hi
1920
- }, ku = ({ className: e }) => /* @__PURE__ */ r.jsx(xt.Divider, { className: y("luminus-dropdown-divider", e, Wi.divider) }), Ui = "_dropdown_1lk66_1", zi = {
1921
- dropdown: Ui
1931
+ }, Wi = "_divider_1e6rk_1", Ui = {
1932
+ divider: Wi
1933
+ }, $u = ({ className: e }) => /* @__PURE__ */ r.jsx(xt.Divider, { className: y("luminus-dropdown-divider", e, Ui.divider) }), zi = "_dropdown_1lk66_1", Gi = {
1934
+ dropdown: zi
1922
1935
  }, Ca = ({ toggle: e, children: t, ...n }) => /* @__PURE__ */ r.jsxs(xt, { ...n, children: [
1923
1936
  e,
1924
- /* @__PURE__ */ r.jsx(xt.Menu, { className: y("luminus-dropdown rounded shadow", zi.dropdown), children: t })
1925
- ] }), Gi = ({ searchTypes: e, selectedType: t, setSelectedType: n }) => /* @__PURE__ */ r.jsx(Ca, { toggle: /* @__PURE__ */ r.jsx(Na, { as: Ns, icon: null, text: t == null ? void 0 : t.text }), children: e.map((a) => /* @__PURE__ */ r.jsx(yn, { icon: null, onClick: () => n(a.key), children: a.text }, a.key)) }), Yi = "_dropdown_1ddrg_1", Ki = "_open_1ddrg_12", qi = "_loading-container_1ddrg_15", Qi = "_groups-container_1ddrg_22", Zi = "_group_1ddrg_22", Ji = "_header_1ddrg_26", Xi = "_item_1ddrg_33", ze = {
1926
- dropdown: Yi,
1927
- open: Ki,
1937
+ /* @__PURE__ */ r.jsx(xt.Menu, { className: y("luminus-dropdown rounded shadow", Gi.dropdown), children: t })
1938
+ ] }), Yi = ({ searchTypes: e, selectedType: t, setSelectedType: n }) => /* @__PURE__ */ r.jsx(Ca, { toggle: /* @__PURE__ */ r.jsx(Na, { as: Ns, icon: null, text: t == null ? void 0 : t.text }), children: e.map((a) => /* @__PURE__ */ r.jsx(yn, { icon: null, onClick: () => n(a.key), children: a.text }, a.key)) }), Ki = "_dropdown_1ddrg_1", qi = "_open_1ddrg_12", Qi = "_loading-container_1ddrg_15", Zi = "_groups-container_1ddrg_22", Ji = "_group_1ddrg_22", Xi = "_header_1ddrg_26", el = "_item_1ddrg_33", ze = {
1939
+ dropdown: Ki,
1940
+ open: qi,
1928
1941
  "loading-container": "_loading-container_1ddrg_15",
1929
- loadingContainer: qi,
1942
+ loadingContainer: Qi,
1930
1943
  "groups-container": "_groups-container_1ddrg_22",
1931
- groupsContainer: Qi,
1932
- group: Zi,
1933
- header: Ji,
1934
- item: Xi
1935
- }, el = ({ show: e, query: t, onCancel: n, groups: a, isLoading: s, searchTypes: o }) => {
1936
- const { texts: { appSearch: i } } = Z(we), c = J(null), l = I((u) => {
1944
+ groupsContainer: Zi,
1945
+ group: Ji,
1946
+ header: Xi,
1947
+ item: el
1948
+ }, tl = ({ show: e, query: t, onCancel: n, groups: a, isLoading: s, searchTypes: o }) => {
1949
+ const { texts: { appSearch: i } } = Z(we), c = J(null), l = D((u) => {
1937
1950
  var m;
1938
1951
  const d = (m = o.find((p) => p.key === u.type)) == null ? void 0 : m.toPath;
1939
1952
  return d ? `${d}/${u.searchKey}` : "/not-found";
@@ -1968,18 +1981,18 @@ const ki = "_wrapper_1kgb8_1", Si = "_open_1kgb8_9", $i = "_dropdown_1kgb8_13",
1968
1981
  ))
1969
1982
  ] }, u.key.category);
1970
1983
  }) }) });
1971
- }, tl = "_input-group_1lkfy_1", nl = "_input-group-text_1lkfy_5", rl = "_left_1lkfy_9", al = "_right_1lkfy_13", sl = "_input_1lkfy_1", ol = "_submit-button_1lkfy_20", Ge = {
1984
+ }, nl = "_input-group_1lkfy_1", rl = "_input-group-text_1lkfy_5", al = "_left_1lkfy_9", sl = "_right_1lkfy_13", ol = "_input_1lkfy_1", il = "_submit-button_1lkfy_20", Ge = {
1972
1985
  "input-group": "_input-group_1lkfy_1",
1973
- inputGroup: tl,
1986
+ inputGroup: nl,
1974
1987
  "input-group-text": "_input-group-text_1lkfy_5",
1975
- inputGroupText: nl,
1976
- left: rl,
1977
- right: al,
1978
- input: sl,
1988
+ inputGroupText: rl,
1989
+ left: al,
1990
+ right: sl,
1991
+ input: ol,
1979
1992
  "submit-button": "_submit-button_1lkfy_20",
1980
- submitButton: ol
1981
- }, il = (e, t) => {
1982
- const n = yt(), [a, s] = R(!1), [o, i] = R([]), c = !e || !e.key, l = I(() => {
1993
+ submitButton: il
1994
+ }, ll = (e, t) => {
1995
+ const n = yt(), [a, s] = R(!1), [o, i] = R([]), c = !e || !e.key, l = D(() => {
1983
1996
  if (t.length < 3) {
1984
1997
  i([]);
1985
1998
  return;
@@ -1993,9 +2006,9 @@ const ki = "_wrapper_1kgb8_1", Si = "_open_1kgb8_9", $i = "_dropdown_1kgb8_13",
1993
2006
  return V(() => {
1994
2007
  l();
1995
2008
  }, [l]), { isLoading: a, searchItems: o };
1996
- }, Su = ({ searchTypes: e, navigateFunction: t, currentPath: n }) => {
2009
+ }, Du = ({ searchTypes: e, navigateFunction: t, currentPath: n }) => {
1997
2010
  var x;
1998
- const { texts: { appSearch: a } } = Z(we), [s, o] = R(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), i = re(() => e.find((h) => h.key === s) ?? null, [e, s]), [c, l] = R(""), [u, d] = ba(c, 500), { isLoading: m, searchItems: p } = il(i, u), [g, v] = R(!1);
2011
+ const { texts: { appSearch: a } } = Z(we), [s, o] = R(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), i = re(() => e.find((h) => h.key === s) ?? null, [e, s]), [c, l] = R(""), [u, d] = ba(c, 500), { isLoading: m, searchItems: p } = ll(i, u), [g, v] = R(!1);
1999
2012
  return V(() => {
2000
2013
  (p.length > 0 || m) && v(!0);
2001
2014
  }, [p, m]), V(() => {
@@ -2003,25 +2016,25 @@ const ki = "_wrapper_1kgb8_1", Si = "_open_1kgb8_9", $i = "_dropdown_1kgb8_13",
2003
2016
  }, [n]), /* @__PURE__ */ r.jsx(je, { onSubmit: (h) => {
2004
2017
  h.preventDefault(), h.stopPropagation(), d.flush(), v(!1), c.length > 2 && t(`/search?query=${c}${i && i.key && `&type=${i == null ? void 0 : i.key}`}`);
2005
2018
  }, children: /* @__PURE__ */ r.jsxs(kt, { className: Ge.inputGroup, children: [
2006
- /* @__PURE__ */ r.jsx(kt.Text, { className: y("p-1 rounded", Ge.inputGroupText, Ge.left), children: /* @__PURE__ */ r.jsx(Gi, { searchTypes: e, selectedType: i, setSelectedType: o }) }),
2019
+ /* @__PURE__ */ r.jsx(kt.Text, { className: y("p-1 rounded", Ge.inputGroupText, Ge.left), children: /* @__PURE__ */ r.jsx(Yi, { searchTypes: e, selectedType: i, setSelectedType: o }) }),
2007
2020
  /* @__PURE__ */ r.jsx(je.Control, { placeholder: a.searchPlaceholder, type: "text", size: "sm", className: y("luminus-app-search-input", Ge.input), value: c, onChange: (h) => {
2008
2021
  var j;
2009
2022
  return l(((j = h.target) == null ? void 0 : j.value) ?? "");
2010
2023
  }, onFocus: () => p.length > 0 && v(!0) }),
2011
2024
  /* @__PURE__ */ r.jsx(kt.Text, { className: y("p-0 rounded", Ge.inputGroupText, Ge.right), children: /* @__PURE__ */ r.jsx("button", { type: "submit", className: y("text-primary", Ge.submitButton), children: /* @__PURE__ */ r.jsx(ks, {}) }) }),
2012
- /* @__PURE__ */ r.jsx(el, { query: u, searchTypes: e, show: g, onCancel: () => v(!1), groups: p, isLoading: m })
2025
+ /* @__PURE__ */ r.jsx(tl, { query: u, searchTypes: e, show: g, onCancel: () => v(!1), groups: p, isLoading: m })
2013
2026
  ] }) });
2014
- }, ll = "_card_19733_1", cl = "_header_19733_6", ul = "_header-content_19733_13", dl = "_title_19733_19", fl = "_collapse-icon_19733_22", ml = "_collapsed_19733_27", hl = "_content_19733_30", Ye = {
2015
- card: ll,
2016
- header: cl,
2027
+ }, cl = "_card_19733_1", ul = "_header_19733_6", dl = "_header-content_19733_13", fl = "_title_19733_19", ml = "_collapse-icon_19733_22", hl = "_collapsed_19733_27", pl = "_content_19733_30", Ye = {
2028
+ card: cl,
2029
+ header: ul,
2017
2030
  "header-content": "_header-content_19733_13",
2018
- headerContent: ul,
2019
- title: dl,
2031
+ headerContent: dl,
2032
+ title: fl,
2020
2033
  "collapse-icon": "_collapse-icon_19733_22",
2021
- collapseIcon: fl,
2022
- collapsed: ml,
2023
- content: hl
2024
- }, pl = ({ title: e, headerContent: t, children: n, className: a, headerClassName: s, contentClassName: o, dontRenderIfNoChildren: i, ...c }) => {
2034
+ collapseIcon: ml,
2035
+ collapsed: hl,
2036
+ content: pl
2037
+ }, gl = ({ title: e, headerContent: t, children: n, className: a, headerClassName: s, contentClassName: o, dontRenderIfNoChildren: i, ...c }) => {
2025
2038
  const l = c.collapsible ? c.controlled ? !1 : c.defaultOpen ?? !1 : !0, [u, d] = R(l), m = c.collapsible ? c.controlled ? c.isOpen : u : !0;
2026
2039
  V(() => {
2027
2040
  d(l);
@@ -2048,7 +2061,7 @@ const ki = "_wrapper_1kgb8_1", Si = "_open_1kgb8_9", $i = "_dropdown_1kgb8_13",
2048
2061
  }), children: n }) })
2049
2062
  ] });
2050
2063
  };
2051
- var gl = !!(typeof window < "u" && window.document && window.document.createElement), xl = /* @__PURE__ */ function() {
2064
+ var xl = !!(typeof window < "u" && window.document && window.document.createElement), vl = /* @__PURE__ */ function() {
2052
2065
  function e(t, n) {
2053
2066
  for (var a = 0; a < n.length; a++) {
2054
2067
  var s = n[a];
@@ -2059,26 +2072,26 @@ var gl = !!(typeof window < "u" && window.document && window.document.createElem
2059
2072
  return n && e(t.prototype, n), a && e(t, a), t;
2060
2073
  };
2061
2074
  }();
2062
- function vl(e, t) {
2075
+ function jl(e, t) {
2063
2076
  if (!(e instanceof t))
2064
2077
  throw new TypeError("Cannot call a class as a function");
2065
2078
  }
2066
- function jl(e, t) {
2079
+ function yl(e, t) {
2067
2080
  if (!e)
2068
2081
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2069
2082
  return t && (typeof t == "object" || typeof t == "function") ? t : e;
2070
2083
  }
2071
- function yl(e, t) {
2084
+ function wl(e, t) {
2072
2085
  if (typeof t != "function" && t !== null)
2073
2086
  throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2074
2087
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
2075
2088
  }
2076
2089
  var ka = function(e) {
2077
- yl(t, e);
2090
+ wl(t, e);
2078
2091
  function t() {
2079
- return vl(this, t), jl(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
2092
+ return jl(this, t), yl(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
2080
2093
  }
2081
- return xl(t, [{
2094
+ return vl(t, [{
2082
2095
  key: "componentWillUnmount",
2083
2096
  value: function() {
2084
2097
  this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null;
@@ -2086,7 +2099,7 @@ var ka = function(e) {
2086
2099
  }, {
2087
2100
  key: "render",
2088
2101
  value: function() {
2089
- return gl ? (!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;
2102
+ return xl ? (!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;
2090
2103
  }
2091
2104
  }]), t;
2092
2105
  }(pe.Component);
@@ -2094,7 +2107,7 @@ ka.propTypes = {
2094
2107
  children: Dt.node.isRequired,
2095
2108
  node: Dt.any
2096
2109
  };
2097
- var wl = /* @__PURE__ */ function() {
2110
+ var bl = /* @__PURE__ */ function() {
2098
2111
  function e(t, n) {
2099
2112
  for (var a = 0; a < n.length; a++) {
2100
2113
  var s = n[a];
@@ -2105,26 +2118,26 @@ var wl = /* @__PURE__ */ function() {
2105
2118
  return n && e(t.prototype, n), a && e(t, a), t;
2106
2119
  };
2107
2120
  }();
2108
- function bl(e, t) {
2121
+ function _l(e, t) {
2109
2122
  if (!(e instanceof t))
2110
2123
  throw new TypeError("Cannot call a class as a function");
2111
2124
  }
2112
- function _l(e, t) {
2125
+ function Nl(e, t) {
2113
2126
  if (!e)
2114
2127
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2115
2128
  return t && (typeof t == "object" || typeof t == "function") ? t : e;
2116
2129
  }
2117
- function Nl(e, t) {
2130
+ function Cl(e, t) {
2118
2131
  if (typeof t != "function" && t !== null)
2119
2132
  throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2120
2133
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
2121
2134
  }
2122
2135
  var Sa = function(e) {
2123
- Nl(t, e);
2136
+ Cl(t, e);
2124
2137
  function t() {
2125
- return bl(this, t), _l(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
2138
+ return _l(this, t), Nl(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
2126
2139
  }
2127
- return wl(t, [{
2140
+ return bl(t, [{
2128
2141
  key: "componentDidMount",
2129
2142
  value: function() {
2130
2143
  this.renderPortal();
@@ -2159,35 +2172,35 @@ Sa.propTypes = {
2159
2172
  };
2160
2173
  var rn = void 0;
2161
2174
  It.createPortal ? rn = ka : rn = Sa;
2162
- const Cl = "_lightbox_14acg_1", kl = "_show_14acg_16", Sl = "_header_14acg_20", $l = "_photo-actions_14acg_26", Dl = "_photo-container_14acg_31", Il = "_photo_14acg_26", El = "_nav-button_14acg_41", Fl = "_photos-preview_14acg_49", Ol = "_selected_14acg_62", Tl = "_default-indicator_14acg_66", Ce = {
2163
- lightbox: Cl,
2164
- show: kl,
2165
- header: Sl,
2175
+ const kl = "_lightbox_14acg_1", Sl = "_show_14acg_16", $l = "_header_14acg_20", Dl = "_photo-actions_14acg_26", Il = "_photo-container_14acg_31", El = "_photo_14acg_26", Fl = "_nav-button_14acg_41", Ol = "_photos-preview_14acg_49", Tl = "_selected_14acg_62", Ml = "_default-indicator_14acg_66", Ce = {
2176
+ lightbox: kl,
2177
+ show: Sl,
2178
+ header: $l,
2166
2179
  "photo-actions": "_photo-actions_14acg_26",
2167
- photoActions: $l,
2180
+ photoActions: Dl,
2168
2181
  "photo-container": "_photo-container_14acg_31",
2169
- photoContainer: Dl,
2170
- photo: Il,
2182
+ photoContainer: Il,
2183
+ photo: El,
2171
2184
  "nav-button": "_nav-button_14acg_41",
2172
- navButton: El,
2185
+ navButton: Fl,
2173
2186
  "photos-preview": "_photos-preview_14acg_49",
2174
- photosPreview: Fl,
2175
- selected: Ol,
2187
+ photosPreview: Ol,
2188
+ selected: Tl,
2176
2189
  "default-indicator": "_default-indicator_14acg_66",
2177
- defaultIndicator: Tl
2178
- }, Ml = "_backdrop_3huvf_1", Ll = "_show_3huvf_11", Yn = {
2179
- backdrop: Ml,
2180
- show: Ll
2190
+ defaultIndicator: Ml
2191
+ }, Ll = "_backdrop_3huvf_1", Rl = "_show_3huvf_11", Yn = {
2192
+ backdrop: Ll,
2193
+ show: Rl
2181
2194
  }, $a = ({ show: e, onClick: t }) => /* @__PURE__ */ r.jsx("div", { className: y("luminus-backdrop", Yn.backdrop, {
2182
2195
  [Yn.show]: e
2183
- }), onClick: () => t && t() }), Da = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: s, ...o }) => /* @__PURE__ */ r.jsx("img", { ...o, alt: t ?? "", src: e ?? s }), Rl = ({ show: e, onClose: t, photos: n, defaultIndex: a, uploadPhotosText: s, noPhotosText: o, onUploadPhotos: i, photoActions: c, baseUrl: l, customToken: u, placeholder: d, ImgComponent: m = Da }) => {
2196
+ }), onClick: () => t && t() }), Da = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: s, ...o }) => /* @__PURE__ */ r.jsx("img", { ...o, alt: t ?? "", src: e ?? s }), Al = ({ show: e, onClose: t, photos: n, defaultIndex: a, uploadPhotosText: s, noPhotosText: o, onUploadPhotos: i, photoActions: c, baseUrl: l, customToken: u, placeholder: d, ImgComponent: m = Da }) => {
2184
2197
  const p = J(null), [g, v] = R(a), x = n.at(g), h = g > 0, j = g < n.length - 1;
2185
2198
  V(() => {
2186
2199
  e && v(a);
2187
2200
  }, [a, e]), V(() => {
2188
2201
  g >= n.length && v(n.length - 1);
2189
2202
  }, [n, g]);
2190
- const w = I((f) => {
2203
+ const w = D((f) => {
2191
2204
  switch (f.key) {
2192
2205
  case "ArrowLeft":
2193
2206
  f.stopPropagation(), h && v((_) => _ - 1);
@@ -2236,7 +2249,7 @@ const Cl = "_lightbox_14acg_1", kl = "_show_14acg_16", Sl = "_header_14acg_20",
2236
2249
  ] })) })
2237
2250
  ] })
2238
2251
  ] });
2239
- }, Al = ({ photos: e, onUploadPhotos: t, uploadPhotosText: n, photoActions: a, baseUrl: s, customToken: o, placeholder: i, ImgComponent: c = Da }) => {
2252
+ }, Vl = ({ photos: e, onUploadPhotos: t, uploadPhotosText: n, photoActions: a, baseUrl: s, customToken: o, placeholder: i, ImgComponent: c = Da }) => {
2240
2253
  const [l, u] = R(null), d = l !== null ? e[l] : null, [m, p] = R(!1);
2241
2254
  return V(() => {
2242
2255
  if (e.length === 0) {
@@ -2247,31 +2260,31 @@ const Cl = "_lightbox_14acg_1", kl = "_show_14acg_16", Sl = "_header_14acg_20",
2247
2260
  u(g > -1 ? g : 0);
2248
2261
  }, [e]), d ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2249
2262
  /* @__PURE__ */ r.jsx(c, { role: "button", src: d.smSrc, alt: d.alt, className: "rounded w-100", onClick: () => p(!0), baseUrl: s, customToken: o, placeholder: i }),
2250
- /* @__PURE__ */ r.jsx(Rl, { show: m, onClose: () => p(!1), photos: e, defaultIndex: l ?? 0, uploadPhotosText: n, onUploadPhotos: t, photoActions: a, baseUrl: s, customToken: o, placeholder: i, ImgComponent: c })
2263
+ /* @__PURE__ */ r.jsx(Al, { show: m, onClose: () => p(!1), photos: e, defaultIndex: l ?? 0, uploadPhotosText: n, onUploadPhotos: t, photoActions: a, baseUrl: s, customToken: o, placeholder: i, ImgComponent: c })
2251
2264
  ] }) : t ? /* @__PURE__ */ r.jsx(wa, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
2252
2265
  g.length > 0 && t(Array.from(g));
2253
2266
  }, icon: /* @__PURE__ */ r.jsx(yr, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : null;
2254
- }, $u = ({ children: e }) => {
2267
+ }, Iu = ({ children: e }) => {
2255
2268
  var c, l, u;
2256
2269
  const { useMsal: t, msalScopes: n } = Z($s), { isAuthenticated: a } = Ds(), { userLoginState: s } = Z(wr), o = s.state === Is.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;
2257
- return t ? /* @__PURE__ */ r.jsx(Gs, { interactionType: zs.Redirect, authenticationRequest: { scopes: n }, children: o || !a() ? /* @__PURE__ */ r.jsx(Dn, {}) : s.user ? i ? /* @__PURE__ */ r.jsx(r.Fragment, { children: e }) : /* @__PURE__ */ r.jsx(Nt, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ r.jsx(Nt, { to: "/no-user-login", replace: !0 }) }) : o ? /* @__PURE__ */ r.jsx(Dn, {}) : !a() || !s.user ? /* @__PURE__ */ r.jsx(Nt, { to: "/login", replace: !0 }) : i ? e : /* @__PURE__ */ r.jsx(Nt, { to: "/user-not-permitted", replace: !0 });
2270
+ return t ? /* @__PURE__ */ r.jsx(Ys, { interactionType: Gs.Redirect, authenticationRequest: { scopes: n }, children: o || !a() ? /* @__PURE__ */ r.jsx(Dn, {}) : s.user ? i ? /* @__PURE__ */ r.jsx(r.Fragment, { children: e }) : /* @__PURE__ */ r.jsx(Nt, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ r.jsx(Nt, { to: "/no-user-login", replace: !0 }) }) : o ? /* @__PURE__ */ r.jsx(Dn, {}) : !a() || !s.user ? /* @__PURE__ */ r.jsx(Nt, { to: "/login", replace: !0 }) : i ? e : /* @__PURE__ */ r.jsx(Nt, { to: "/user-not-permitted", replace: !0 });
2258
2271
  }, Ia = (e) => {
2259
2272
  const { variant: t, children: n, className: a, size: s = "md", typographyVariant: o = s === "sm" ? "body2" : "body", ...i } = { ...e };
2260
- return /* @__PURE__ */ r.jsx(xo, { 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 }) });
2261
- }, Vl = "_item_1lf6j_1", Pl = "_level-success_1lf6j_4", Bl = "_level-info_1lf6j_10", Hl = "_level-warning_1lf6j_16", Wl = "_level-danger_1lf6j_22", Ul = "_type-icon_1lf6j_28", Gt = {
2262
- item: Vl,
2273
+ return /* @__PURE__ */ r.jsx(vo, { 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 }) });
2274
+ }, Pl = "_item_1lf6j_1", Bl = "_level-success_1lf6j_4", Hl = "_level-info_1lf6j_10", Wl = "_level-warning_1lf6j_16", Ul = "_level-danger_1lf6j_22", zl = "_type-icon_1lf6j_28", Gt = {
2275
+ item: Pl,
2263
2276
  "level-success": "_level-success_1lf6j_4",
2264
- levelSuccess: Pl,
2277
+ levelSuccess: Bl,
2265
2278
  "level-info": "_level-info_1lf6j_10",
2266
- levelInfo: Bl,
2279
+ levelInfo: Hl,
2267
2280
  "level-warning": "_level-warning_1lf6j_16",
2268
- levelWarning: Hl,
2281
+ levelWarning: Wl,
2269
2282
  "level-danger": "_level-danger_1lf6j_22",
2270
- levelDanger: Wl,
2283
+ levelDanger: Ul,
2271
2284
  "type-icon": "_type-icon_1lf6j_28",
2272
- typeIcon: Ul
2273
- }, zl = ({ level: e, children: t, customIcon: n, noIcon: a }) => {
2274
- const { ProjectIconComponent: s } = Z(we), o = I(() => {
2285
+ typeIcon: zl
2286
+ }, Gl = ({ level: e, children: t, customIcon: n, noIcon: a }) => {
2287
+ const { ProjectIconComponent: s } = Z(we), o = D(() => {
2275
2288
  switch (e) {
2276
2289
  case "info":
2277
2290
  return /* @__PURE__ */ r.jsx(s, { icon: "info" });
@@ -2287,7 +2300,7 @@ const Cl = "_lightbox_14acg_1", kl = "_show_14acg_16", Sl = "_header_14acg_20",
2287
2300
  !a && /* @__PURE__ */ r.jsx("div", { className: y(Gt.typeIcon), children: n ?? o() }),
2288
2301
  /* @__PURE__ */ r.jsx(X, { variant: "body2", className: "w-100", children: t })
2289
2302
  ] });
2290
- }, Du = ({ version: e }) => /* @__PURE__ */ r.jsx("div", { className: "rounded", style: {
2303
+ }, Eu = ({ version: e }) => /* @__PURE__ */ r.jsx("div", { className: "rounded", style: {
2291
2304
  position: "fixed",
2292
2305
  right: "0px",
2293
2306
  bottom: "0px",
@@ -2298,28 +2311,28 @@ const Cl = "_lightbox_14acg_1", kl = "_show_14acg_16", Sl = "_header_14acg_20",
2298
2311
  }, children: /* @__PURE__ */ r.jsxs(X, { variant: "caption", className: "w-100 text-end", children: [
2299
2312
  "verze ",
2300
2313
  e
2301
- ] }) }), Gl = "_submit-container_a9slg_1", Yl = "_spacer_a9slg_14", Kn = {
2314
+ ] }) }), Yl = "_submit-container_a9slg_1", Kl = "_spacer_a9slg_14", Kn = {
2302
2315
  "submit-container": "_submit-container_a9slg_1",
2303
- submitContainer: Gl,
2304
- spacer: Yl
2305
- }, Kl = ({ children: e, noSpacer: t = !1 }) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2316
+ submitContainer: Yl,
2317
+ spacer: Kl
2318
+ }, ql = ({ children: e, noSpacer: t = !1 }) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2306
2319
  !t && /* @__PURE__ */ r.jsx("div", { className: Kn.spacer }),
2307
2320
  /* @__PURE__ */ r.jsx("div", { className: y("luminus-floating-action-container shadow", Kn.submitContainer), children: e })
2308
- ] }), ql = "_timeline_g1754_1", Ql = "_step-container_g1754_1", Zl = "_step-date_g1754_1", Jl = "_step-content_g1754_4", Xl = "_content-header_g1754_8", ec = "_content-text_g1754_11", tc = "_step-icon_g1754_14", Ke = {
2309
- timeline: ql,
2321
+ ] }), Ql = "_timeline_g1754_1", Zl = "_step-container_g1754_1", Jl = "_step-date_g1754_1", Xl = "_step-content_g1754_4", ec = "_content-header_g1754_8", tc = "_content-text_g1754_11", nc = "_step-icon_g1754_14", Ke = {
2322
+ timeline: Ql,
2310
2323
  "step-container": "_step-container_g1754_1",
2311
- stepContainer: Ql,
2324
+ stepContainer: Zl,
2312
2325
  "step-date": "_step-date_g1754_1",
2313
- stepDate: Zl,
2326
+ stepDate: Jl,
2314
2327
  "step-content": "_step-content_g1754_4",
2315
- stepContent: Jl,
2328
+ stepContent: Xl,
2316
2329
  "content-header": "_content-header_g1754_8",
2317
- contentHeader: Xl,
2330
+ contentHeader: ec,
2318
2331
  "content-text": "_content-text_g1754_11",
2319
- contentText: ec,
2332
+ contentText: tc,
2320
2333
  "step-icon": "_step-icon_g1754_14",
2321
- stepIcon: tc
2322
- }, Iu = ({ steps: e }) => /* @__PURE__ */ r.jsx("div", { className: Ke.timeline, children: e.sort((t, n) => Xs(t.date ?? /* @__PURE__ */ new Date(), n.date ?? /* @__PURE__ */ new Date())).map((t, n) => /* @__PURE__ */ r.jsxs("div", { className: y("row g-0 gx-3", Ke.stepContainer), children: [
2334
+ stepIcon: nc
2335
+ }, Fu = ({ steps: e }) => /* @__PURE__ */ r.jsx("div", { className: Ke.timeline, children: e.sort((t, n) => eo(t.date ?? /* @__PURE__ */ new Date(), n.date ?? /* @__PURE__ */ new Date())).map((t, n) => /* @__PURE__ */ r.jsxs("div", { className: y("row g-0 gx-3", Ke.stepContainer), children: [
2323
2336
  /* @__PURE__ */ r.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ r.jsxs(X, { variant: "caption", className: y("h-100 d-flex flex-column align-items-end justify-content-center gap-0", Ke.stepDate), children: [
2324
2337
  /* @__PURE__ */ r.jsx("div", { children: ht(t.date, "dd.MM.yyyy") }),
2325
2338
  /* @__PURE__ */ r.jsx("div", { children: ht(t.date, "HH:mm") })
@@ -2332,8 +2345,8 @@ const Cl = "_lightbox_14acg_1", kl = "_show_14acg_16", Sl = "_header_14acg_20",
2332
2345
  t.text && /* @__PURE__ */ r.jsx(X, { variant: "body2", className: Ke.contentText, children: t.text }),
2333
2346
  /* @__PURE__ */ r.jsx("div", { className: y("text-primary", Ke.stepIcon), children: t.icon ?? /* @__PURE__ */ r.jsx(Es, {}) })
2334
2347
  ] }) })
2335
- ] }, n)) }), nc = (e, t, n, a = !0) => {
2336
- const s = yt({ silent: a, differentBaseUrl: t, customToken: n }), [o, i] = R(!1), [c, l] = R(null), u = I(async (d) => {
2348
+ ] }, n)) }), rc = (e, t, n, a = !0) => {
2349
+ const s = yt({ silent: a, differentBaseUrl: t, customToken: n }), [o, i] = R(!1), [c, l] = R(null), u = D(async (d) => {
2337
2350
  i(!0), l(null), s.get(e, {
2338
2351
  signal: d,
2339
2352
  responseType: "blob"
@@ -2350,7 +2363,7 @@ const Cl = "_lightbox_14acg_1", kl = "_show_14acg_16", Sl = "_header_14acg_20",
2350
2363
  };
2351
2364
  }, [u]), { data: c, setData: l, reloadData: u, isLoading: o };
2352
2365
  }, qn = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: s, ...o }) => {
2353
- const { data: i } = nc(e, n, a), [c, l] = R(null);
2366
+ const { data: i } = rc(e, n, a), [c, l] = R(null);
2354
2367
  return V(() => {
2355
2368
  let u = null;
2356
2369
  return i !== null ? (u = URL.createObjectURL(i), l(u)) : l(null), () => {
@@ -2366,15 +2379,15 @@ const Cl = "_lightbox_14acg_1", kl = "_show_14acg_16", Sl = "_header_14acg_20",
2366
2379
  var d;
2367
2380
  a && a(((d = u.target) == null ? void 0 : d.checked) ?? !1);
2368
2381
  }, className: i ?? "", hidden: s ?? !1, disabled: o ?? !1 }) }), nt = ({ InputContainer: e = Ze, type: t, value: n, onChange: a, debounceMs: s, label: o, withoutLabel: i, placeholder: c, size: l, hidden: u, disabled: d, showClearIcon: m, clearValue: p, list: g, className: v, step: x, noSelectOnFocus: h }) => {
2369
- const j = t === "number", w = I(() => {
2382
+ const j = t === "number", w = D(() => {
2370
2383
  if (!a)
2371
2384
  return;
2372
2385
  const N = p ?? null;
2373
2386
  a(j ? N ? Number(N) : null : (N == null ? void 0 : N.toString()) ?? "");
2374
- }, [p, j, a]), f = J(null), [_, C] = R((n == null ? void 0 : n.toString()) ?? ""), S = I((N) => {
2387
+ }, [p, j, a]), f = J(null), [_, C] = R((n == null ? void 0 : n.toString()) ?? ""), S = D((N) => {
2375
2388
  const E = N;
2376
2389
  a && (j && a(E == null || E === "" ? null : Number(E)), a(E || null));
2377
- }, [j, a]), k = I((N) => {
2390
+ }, [j, a]), k = D((N) => {
2378
2391
  var A;
2379
2392
  const E = (A = N.target) == null ? void 0 : A.value;
2380
2393
  if (!s) {
@@ -2413,7 +2426,7 @@ const Cl = "_lightbox_14acg_1", kl = "_show_14acg_16", Sl = "_header_14acg_20",
2413
2426
  noEmptyOption: v
2414
2427
  // it will still add the empty option if there is no value provided or value is empty string or null
2415
2428
  }) => {
2416
- const x = I(() => {
2429
+ const x = D(() => {
2417
2430
  if (!a)
2418
2431
  return;
2419
2432
  const h = m ?? null;
@@ -2432,15 +2445,15 @@ const Cl = "_lightbox_14acg_1", kl = "_show_14acg_16", Sl = "_header_14acg_20",
2432
2445
  ] }),
2433
2446
  d && t && a && !u && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(ee, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ r.jsx(Ee, {}) }) })
2434
2447
  ] });
2435
- }, Eu = ({ InputContainer: e = Ze, items: t, defaultSelection: n, selectedItemNavigateTo: a, onSearchQueryChange: s, texts: o, isLoading: i, isNumber: c, onSelect: l, label: u, withoutLabel: d, size: m, dropdownItemsNameWidth: p, additionalColumns: g, hidden: v, disabled: x, displayIdAsName: h, CustomOnChangeComponent: j, className: w }) => {
2448
+ }, Ou = ({ InputContainer: e = Ze, items: t, defaultSelection: n, selectedItemNavigateTo: a, onSearchQueryChange: s, texts: o, isLoading: i, isNumber: c, onSelect: l, label: u, withoutLabel: d, size: m, dropdownItemsNameWidth: p, additionalColumns: g, hidden: v, disabled: x, displayIdAsName: h, CustomOnChangeComponent: j, className: w }) => {
2436
2449
  var E, A;
2437
2450
  const [f, _] = R(n), [C, S] = R(!1);
2438
2451
  V(() => {
2439
2452
  _(n);
2440
2453
  }, [n]);
2441
- const k = I((T) => {
2454
+ const k = D((T) => {
2442
2455
  _(T);
2443
- }, []), $ = I((T) => {
2456
+ }, []), $ = D((T) => {
2444
2457
  S(!1), k(T);
2445
2458
  }, [k]);
2446
2459
  V(() => {
@@ -2474,16 +2487,16 @@ const Cl = "_lightbox_14acg_1", kl = "_show_14acg_16", Sl = "_header_14acg_20",
2474
2487
  ] }),
2475
2488
  b.current && /* @__PURE__ */ r.jsx(jn, { show: C, onCancel: () => S(!1), items: t, currentSelection: f, onSelectionChange: $, onSearchQueryChange: s, texts: o, itemsNameWidth: p, additionalColumns: g, isLoading: i, disabled: x, inputRef: b })
2476
2489
  ] }) });
2477
- }, Fu = ({ InputContainer: e = Ze, value: t, onChange: n, label: a, size: s, showClearIcon: o, clearValue: i, hidden: c, disabled: l, rows: u, withoutLabel: d, debounceMs: m, className: p }) => {
2478
- const g = I(() => {
2490
+ }, Tu = ({ InputContainer: e = Ze, value: t, onChange: n, label: a, size: s, showClearIcon: o, clearValue: i, hidden: c, disabled: l, rows: u, withoutLabel: d, debounceMs: m, className: p }) => {
2491
+ const g = D(() => {
2479
2492
  if (!n)
2480
2493
  return;
2481
2494
  const f = i ?? null;
2482
2495
  n((f == null ? void 0 : f.toString()) ?? "");
2483
- }, [i, n]), v = J(null), [x, h] = R((t == null ? void 0 : t.toString()) ?? ""), j = I((f) => {
2496
+ }, [i, n]), v = J(null), [x, h] = R((t == null ? void 0 : t.toString()) ?? ""), j = D((f) => {
2484
2497
  const _ = f;
2485
2498
  n && n(_ || null);
2486
- }, [n]), w = I((f) => {
2499
+ }, [n]), w = D((f) => {
2487
2500
  var C;
2488
2501
  const _ = (C = f.target) == null ? void 0 : C.value;
2489
2502
  if (!m) {
@@ -2500,16 +2513,16 @@ const Cl = "_lightbox_14acg_1", kl = "_show_14acg_16", Sl = "_header_14acg_20",
2500
2513
  /* @__PURE__ */ r.jsx(je.Control, { as: "textarea", size: s, value: m ? x : t ?? "", onChange: w, hidden: c, disabled: l, rows: u ?? 2, className: "w-100" }),
2501
2514
  o && t && n && !l && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(ee, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ r.jsx(Ee, {}) }) })
2502
2515
  ] });
2503
- }, Ou = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, label: s, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: p, step: g, stepperStep: v = 1, min: x, max: h }) => {
2504
- const j = I(() => {
2516
+ }, Mu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, label: s, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: p, step: g, stepperStep: v = 1, min: x, max: h }) => {
2517
+ const j = D(() => {
2505
2518
  if (!n)
2506
2519
  return;
2507
2520
  const k = m ?? null;
2508
2521
  n(k ? Number(k) : null);
2509
- }, [m, n]), w = J(null), [f, _] = R((t == null ? void 0 : t.toString()) ?? ""), C = I((k) => {
2522
+ }, [m, n]), w = J(null), [f, _] = R((t == null ? void 0 : t.toString()) ?? ""), C = D((k) => {
2510
2523
  const $ = k;
2511
2524
  n && n($ == null || $ === "" ? null : dt(Number($), x, h));
2512
- }, [h, x, n]), S = I((k) => {
2525
+ }, [h, x, n]), S = D((k) => {
2513
2526
  var b;
2514
2527
  const $ = (b = k.target) == null ? void 0 : b.value;
2515
2528
  if (!a) {
@@ -2548,7 +2561,7 @@ var vt;
2548
2561
  })(vt || (vt = {}));
2549
2562
  function Ae() {
2550
2563
  }
2551
- function rc(e) {
2564
+ function ac(e) {
2552
2565
  var t, n = void 0;
2553
2566
  return function() {
2554
2567
  for (var a = [], s = arguments.length; s--; ) a[s] = arguments[s];
@@ -2563,16 +2576,16 @@ function jt(e) {
2563
2576
  function rt(e) {
2564
2577
  return e == null;
2565
2578
  }
2566
- function ac(e) {
2579
+ function sc(e) {
2567
2580
  return typeof e == "number" && isNaN(e);
2568
2581
  }
2569
2582
  function Ta(e) {
2570
- return rt(e) || ac(e) || typeof e == "number" && !isFinite(e);
2583
+ return rt(e) || sc(e) || typeof e == "number" && !isFinite(e);
2571
2584
  }
2572
2585
  function Ma(e) {
2573
2586
  return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
2574
2587
  }
2575
- function sc(e) {
2588
+ function oc(e) {
2576
2589
  switch (e) {
2577
2590
  case "lakh":
2578
2591
  return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
@@ -2583,11 +2596,11 @@ function sc(e) {
2583
2596
  return /(\d)(?=(\d{3})+(?!\d))/g;
2584
2597
  }
2585
2598
  }
2586
- function oc(e, t, n) {
2587
- var a = sc(n), s = e.search(/[1-9]/);
2599
+ function ic(e, t, n) {
2600
+ var a = oc(n), s = e.search(/[1-9]/);
2588
2601
  return s = s === -1 ? e.length : s, e.substring(0, s) + e.substring(s, e.length).replace(a, "$1" + t);
2589
2602
  }
2590
- function ic(e) {
2603
+ function lc(e) {
2591
2604
  var t = J(e);
2592
2605
  t.current = e;
2593
2606
  var n = J(function() {
@@ -2608,7 +2621,7 @@ function wn(e, t) {
2608
2621
  addNegation: a
2609
2622
  };
2610
2623
  }
2611
- function lc(e) {
2624
+ function cc(e) {
2612
2625
  if (!e)
2613
2626
  return e;
2614
2627
  var t = e[0] === "-";
@@ -2653,7 +2666,7 @@ function qe(e, t) {
2653
2666
  return e.selectionStart || e.selectionStart === 0 ? (e.focus(), e.setSelectionRange(t, t), !0) : (e.focus(), !1);
2654
2667
  }
2655
2668
  }
2656
- var Aa = rc(function(e, t) {
2669
+ var Aa = ac(function(e, t) {
2657
2670
  for (var n = 0, a = 0, s = e.length, o = t.length; e[n] === t[n] && n < s; )
2658
2671
  n++;
2659
2672
  for (; e[s - 1 - a] === t[o - 1 - a] && o - a > n && s - a > n; )
@@ -2662,23 +2675,23 @@ var Aa = rc(function(e, t) {
2662
2675
  from: { start: n, end: s - a },
2663
2676
  to: { start: n, end: o - a }
2664
2677
  };
2665
- }), cc = function(e, t) {
2678
+ }), uc = function(e, t) {
2666
2679
  var n = Math.min(e.selectionStart, t);
2667
2680
  return {
2668
2681
  from: { start: n, end: e.selectionEnd },
2669
2682
  to: { start: n, end: t }
2670
2683
  };
2671
2684
  };
2672
- function uc(e, t, n) {
2685
+ function dc(e, t, n) {
2673
2686
  return Math.min(Math.max(e, t), n);
2674
2687
  }
2675
2688
  function Yt(e) {
2676
2689
  return Math.max(e.selectionStart, e.selectionEnd);
2677
2690
  }
2678
- function dc() {
2691
+ function fc() {
2679
2692
  return typeof navigator < "u" && !(navigator.platform && /iPhone|iPod/.test(navigator.platform));
2680
2693
  }
2681
- function fc(e) {
2694
+ function mc(e) {
2682
2695
  return {
2683
2696
  from: {
2684
2697
  start: 0,
@@ -2691,12 +2704,12 @@ function fc(e) {
2691
2704
  lastValue: ""
2692
2705
  };
2693
2706
  }
2694
- function mc(e) {
2707
+ function hc(e) {
2695
2708
  var t = e.currentValue, n = e.formattedValue, a = e.currentValueIndex, s = e.formattedValueIndex;
2696
2709
  return t[a] === n[s];
2697
2710
  }
2698
- function hc(e, t, n, a, s, o, i) {
2699
- i === void 0 && (i = mc);
2711
+ function pc(e, t, n, a, s, o, i) {
2712
+ i === void 0 && (i = hc);
2700
2713
  var c = s.findIndex(function(_) {
2701
2714
  return _;
2702
2715
  }), l = e.slice(0, c);
@@ -2727,7 +2740,7 @@ function hc(e, t, n, a, s, o, i) {
2727
2740
  }
2728
2741
  function Jn(e, t, n, a) {
2729
2742
  var s = e.length;
2730
- if (t = uc(t, 0, s), a === "left") {
2743
+ if (t = dc(t, 0, s), a === "left") {
2731
2744
  for (; t >= 0 && !n[t]; )
2732
2745
  t--;
2733
2746
  t === -1 && (t = n.indexOf(!0));
@@ -2738,7 +2751,7 @@ function Jn(e, t, n, a) {
2738
2751
  }
2739
2752
  return t === -1 && (t = s), t;
2740
2753
  }
2741
- function pc(e) {
2754
+ function gc(e) {
2742
2755
  for (var t = Array.from({ length: e.length + 1 }).map(function() {
2743
2756
  return !0;
2744
2757
  }), n = 0, a = t.length; n < a; n++)
@@ -2747,7 +2760,7 @@ function pc(e) {
2747
2760
  }
2748
2761
  function Va(e, t, n, a, s, o) {
2749
2762
  o === void 0 && (o = Ae);
2750
- var i = ic(function(v, x) {
2763
+ var i = lc(function(v, x) {
2751
2764
  var h, j;
2752
2765
  return Ta(v) ? (j = "", h = "") : typeof v == "number" || x ? (j = typeof v == "number" ? Ra(v) : v, h = a(j)) : (j = s(v, void 0), h = a(j)), { formattedValue: h, numAsString: j };
2753
2766
  }), c = R(function() {
@@ -2764,21 +2777,21 @@ function Va(e, t, n, a, s, o) {
2764
2777
  u(g);
2765
2778
  }, [g.formattedValue]), [l, d];
2766
2779
  }
2767
- function gc(e) {
2780
+ function xc(e) {
2768
2781
  return e.replace(/[^0-9]/g, "");
2769
2782
  }
2770
- function xc(e) {
2783
+ function vc(e) {
2771
2784
  return e;
2772
2785
  }
2773
- function vc(e) {
2786
+ function jc(e) {
2774
2787
  var t = e.type;
2775
2788
  t === void 0 && (t = "text");
2776
2789
  var n = e.displayType;
2777
2790
  n === void 0 && (n = "input");
2778
2791
  var a = e.customInput, s = e.renderText, o = e.getInputRef, i = e.format;
2779
- i === void 0 && (i = xc);
2792
+ i === void 0 && (i = vc);
2780
2793
  var c = e.removeFormatting;
2781
- c === void 0 && (c = gc);
2794
+ c === void 0 && (c = xc);
2782
2795
  var l = e.defaultValue, u = e.valueIsNumericString, d = e.onValueChange, m = e.isAllowed, p = e.onChange;
2783
2796
  p === void 0 && (p = Ae);
2784
2797
  var g = e.onKeyDown;
@@ -2790,7 +2803,7 @@ function vc(e) {
2790
2803
  var h = e.onBlur;
2791
2804
  h === void 0 && (h = Ae);
2792
2805
  var j = e.value, w = e.getCaretBoundary;
2793
- w === void 0 && (w = pc);
2806
+ w === void 0 && (w = gc);
2794
2807
  var f = e.isValidInputCharacter;
2795
2808
  f === void 0 && (f = jt);
2796
2809
  var _ = e.isCharacterSame, C = Oa(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = Va(j, l, !!u, i, c, d), k = S[0], $ = k.formattedValue, b = k.numAsString, F = S[1], N = J(), E = J({ formattedValue: $, numAsString: b }), A = function(M, P) {
@@ -2811,14 +2824,14 @@ function vc(e) {
2811
2824
  value: P,
2812
2825
  floatValue: isNaN(Q) ? void 0 : Q
2813
2826
  };
2814
- }, D = function(M, P, Q) {
2827
+ }, I = function(M, P, Q) {
2815
2828
  M.selectionStart === 0 && M.selectionEnd === M.value.length || (qe(M, P), W.current.setCaretTimeout = setTimeout(function() {
2816
2829
  M.value === Q && M.selectionStart !== P && qe(M, P);
2817
2830
  }, 0));
2818
2831
  }, z = function(M, P, Q) {
2819
2832
  return Jn(M, P, w(M), Q);
2820
2833
  }, ue = function(M, P, Q) {
2821
- var ie = w(P), be = hc(P, $, M, Q, ie, f, _);
2834
+ var ie = w(P), be = pc(P, $, M, Q, ie, f, _);
2822
2835
  return be = Jn(P, be, ie), be;
2823
2836
  }, he = function(M) {
2824
2837
  var P = M.formattedValue;
@@ -2826,7 +2839,7 @@ function vc(e) {
2826
2839
  var Q = M.input, ie = M.source, be = M.event, le = M.numAsString, ae;
2827
2840
  if (Q) {
2828
2841
  var Ne = M.inputValue || Q.value, $e = Yt(Q);
2829
- Q.value = P, ae = ue(Ne, P, $e), ae !== void 0 && D(Q, ae, P);
2842
+ Q.value = P, ae = ue(Ne, P, $e), ae !== void 0 && I(Q, ae, P);
2830
2843
  }
2831
2844
  P !== $ && A(U(P, le), { event: be, source: ie });
2832
2845
  };
@@ -2837,19 +2850,19 @@ function vc(e) {
2837
2850
  source: vt.props
2838
2851
  });
2839
2852
  }, [$, b]);
2840
- var te = O.current ? Yt(O.current) : void 0, ke = typeof window < "u" ? Us : V;
2853
+ var te = O.current ? Yt(O.current) : void 0, ke = typeof window < "u" ? zs : V;
2841
2854
  ke(function() {
2842
2855
  var M = O.current;
2843
2856
  if ($ !== E.current.formattedValue && M) {
2844
2857
  var P = ue(E.current.formattedValue, $, te);
2845
- M.value = $, D(M, P, $);
2858
+ M.value = $, I(M, P, $);
2846
2859
  }
2847
2860
  }, [$]);
2848
2861
  var G = function(M, P, Q) {
2849
- var ie = P.target, be = N.current ? cc(N.current, ie.selectionEnd) : Aa($, M), le = Object.assign(Object.assign({}, be), { lastValue: $ }), ae = c(M, le), Ne = B(ae);
2862
+ var ie = P.target, be = N.current ? uc(N.current, ie.selectionEnd) : Aa($, M), le = Object.assign(Object.assign({}, be), { lastValue: $ }), ae = c(M, le), Ne = B(ae);
2850
2863
  if (ae = c(Ne, void 0), m && !m(U(Ne, ae))) {
2851
2864
  var $e = P.target, H = Yt($e), ne = ue(M, $, H);
2852
- return $e.value = $, D($e, ne, $), !1;
2865
+ return $e.value = $, I($e, ne, $), !1;
2853
2866
  }
2854
2867
  return he({
2855
2868
  formattedValue: Ne,
@@ -2883,13 +2896,13 @@ function vc(e) {
2883
2896
  var ne = Q === "ArrowLeft" ? "left" : "right";
2884
2897
  H = z(le, ae, ne), H !== ae && M.preventDefault();
2885
2898
  } else Q === "Delete" && !f(le[ae]) ? H = z(le, ae, "right") : Q === "Backspace" && !f(le[ae]) && (H = z(le, ae, "left"));
2886
- H !== ae && D(P, H, le), g(M), xe(P, Ne);
2899
+ H !== ae && I(P, H, le), g(M), xe(P, Ne);
2887
2900
  }, We = function(M) {
2888
2901
  var P = M.target, Q = function() {
2889
2902
  var ie = P.selectionStart, be = P.selectionEnd, le = P.value;
2890
2903
  if (le === void 0 && (le = ""), ie === be) {
2891
2904
  var ae = z(le, ie);
2892
- ae !== ie && D(P, ae, le);
2905
+ ae !== ie && I(P, ae, le);
2893
2906
  }
2894
2907
  };
2895
2908
  Q(), requestAnimationFrame(function() {
@@ -2902,11 +2915,11 @@ function vc(e) {
2902
2915
  var ie = P.selectionStart, be = P.selectionEnd, le = P.value;
2903
2916
  le === void 0 && (le = "");
2904
2917
  var ae = z(le, ie);
2905
- ae !== ie && !(ie === 0 && be === le.length) && D(P, ae, le), x(Object.assign(Object.assign({}, M), { currentTarget: Q }));
2918
+ ae !== ie && !(ie === 0 && be === le.length) && I(P, ae, le), x(Object.assign(Object.assign({}, M), { currentTarget: Q }));
2906
2919
  }, 0);
2907
2920
  }, de = function(M) {
2908
2921
  O.current = null, clearTimeout(W.current.focusTimeout), clearTimeout(W.current.setCaretTimeout), h(M);
2909
- }, _e = q && dc() ? "numeric" : void 0, Ue = Object.assign({ inputMode: _e }, C, {
2922
+ }, _e = q && fc() ? "numeric" : void 0, Ue = Object.assign({ inputMode: _e }, C, {
2910
2923
  type: t,
2911
2924
  value: $,
2912
2925
  onChange: Se,
@@ -2932,7 +2945,7 @@ function Xn(e, t) {
2932
2945
  if (c === void 0 && (c = "thousand"), e === "" || e === "-")
2933
2946
  return e;
2934
2947
  var l = Rt(t), u = l.thousandSeparator, d = l.decimalSeparator, m = n !== 0 && e.indexOf(".") !== -1 || n && a, p = wn(e, i), g = p.beforeDecimal, v = p.afterDecimal, x = p.addNegation;
2935
- return n !== void 0 && (v = La(v, n, !!a)), u && (g = oc(g, u, c)), s && (g = s + g), o && (v = v + o), x && (g = "-" + g), e = g + (m && d || "") + v, e;
2948
+ return n !== void 0 && (v = La(v, n, !!a)), u && (g = ic(g, u, c)), s && (g = s + g), o && (v = v + o), x && (g = "-" + g), e = g + (m && d || "") + v, e;
2936
2949
  }
2937
2950
  function Rt(e) {
2938
2951
  var t = e.decimalSeparator;
@@ -2944,20 +2957,20 @@ function Rt(e) {
2944
2957
  allowedDecimalSeparators: a
2945
2958
  };
2946
2959
  }
2947
- function jc(e, t) {
2960
+ function yc(e, t) {
2948
2961
  e === void 0 && (e = "");
2949
2962
  var n = new RegExp("(-)"), a = new RegExp("(-)(.)*(-)"), s = n.test(e), o = a.test(e);
2950
2963
  return e = e.replace(/-/g, ""), s && !o && t && (e = "-" + e), e;
2951
2964
  }
2952
- function yc(e, t) {
2965
+ function wc(e, t) {
2953
2966
  return new RegExp("(^-)|[0-9]|" + Ma(e), "g");
2954
2967
  }
2955
- function wc(e, t, n) {
2968
+ function bc(e, t, n) {
2956
2969
  return e === "" ? !0 : !(t != null && t.match(/\d/)) && !(n != null && n.match(/\d/)) && typeof e == "string" && !isNaN(Number(e));
2957
2970
  }
2958
- function bc(e, t, n) {
2971
+ function _c(e, t, n) {
2959
2972
  var a;
2960
- t === void 0 && (t = fc(e));
2973
+ t === void 0 && (t = mc(e));
2961
2974
  var s = n.allowNegative, o = n.prefix;
2962
2975
  o === void 0 && (o = "");
2963
2976
  var i = n.suffix;
@@ -2970,10 +2983,10 @@ function bc(e, t, n) {
2970
2983
  e = e.substring(0, d) + h + e.substring(d + 1, e.length);
2971
2984
  }
2972
2985
  var j = function(O, W, B) {
2973
- var U = !1, D = !1;
2974
- o.startsWith("-") ? U = !1 : O.startsWith("--") ? (U = !1, D = !0) : i.startsWith("-") && O.length === i.length ? U = !1 : O[0] === "-" && (U = !0);
2986
+ var U = !1, I = !1;
2987
+ o.startsWith("-") ? U = !1 : O.startsWith("--") ? (U = !1, I = !0) : i.startsWith("-") && O.length === i.length ? U = !1 : O[0] === "-" && (U = !0);
2975
2988
  var z = U ? 1 : 0;
2976
- return D && (z = 2), z && (O = O.substring(z), W -= z, B -= z), { value: O, start: W, end: B, hasNegation: U };
2989
+ return I && (z = 2), z && (O = O.substring(z), W -= z, B -= z), { value: O, start: W, end: B, hasNegation: U };
2977
2990
  }, w = j(e, d, m), f = w.hasNegation;
2978
2991
  a = w, e = a.value, d = a.start, m = a.end;
2979
2992
  var _ = j(t.lastValue, l.start, l.end), C = _.start, S = _.end, k = _.value, $ = e.substring(d, m);
@@ -2981,7 +2994,7 @@ function bc(e, t, n) {
2981
2994
  var b = 0;
2982
2995
  e.startsWith(o) ? b += o.length : d < o.length && (b = d), e = e.substring(b), m -= b;
2983
2996
  var F = e.length, N = e.length - i.length;
2984
- e.endsWith(i) ? F = N : (m > N || m > e.length - i.length) && (F = m), e = e.substring(0, F), e = jc(f ? "-" + e : e, s), e = (e.match(yc(v)) || []).join("");
2997
+ e.endsWith(i) ? F = N : (m > N || m > e.length - i.length) && (F = m), e = e.substring(0, F), e = yc(f ? "-" + e : e, s), e = (e.match(wc(v)) || []).join("");
2985
2998
  var E = e.indexOf(v);
2986
2999
  e = e.replace(new RegExp(Ma(v), "g"), function(O, W) {
2987
3000
  return W === E ? "." : "";
@@ -2989,7 +3002,7 @@ function bc(e, t, n) {
2989
3002
  var A = wn(e, s), T = A.beforeDecimal, q = A.afterDecimal, L = A.addNegation;
2990
3003
  return u.end - u.start < l.end - l.start && T === "" && x && !parseFloat(q) && (e = L ? "-" : ""), e;
2991
3004
  }
2992
- function _c(e, t) {
3005
+ function Nc(e, t) {
2993
3006
  var n = t.prefix;
2994
3007
  n === void 0 && (n = "");
2995
3008
  var a = t.suffix;
@@ -3001,7 +3014,7 @@ function _c(e, t) {
3001
3014
  var i = e.length;
3002
3015
  return s.fill(!1, i - a.length + 1, i + 1), s;
3003
3016
  }
3004
- function Nc(e) {
3017
+ function Cc(e) {
3005
3018
  var t = Rt(e), n = t.thousandSeparator, a = t.decimalSeparator, s = e.prefix;
3006
3019
  s === void 0 && (s = "");
3007
3020
  var o = e.allowNegative;
@@ -3017,8 +3030,8 @@ function Nc(e) {
3017
3030
  allowNegative: ` + o + `
3018
3031
  `), o = !1), Object.assign(Object.assign({}, e), { allowNegative: o });
3019
3032
  }
3020
- function Cc(e) {
3021
- e = Nc(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
3033
+ function kc(e) {
3034
+ e = Cc(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
3022
3035
  var t = e.suffix, n = e.allowNegative, a = e.allowLeadingZeros, s = e.onKeyDown;
3023
3036
  s === void 0 && (s = Ae);
3024
3037
  var o = e.onBlur;
@@ -3028,14 +3041,14 @@ function Cc(e) {
3028
3041
  var d = e.defaultValue, m = e.value, p = e.valueIsNumericString, g = e.onValueChange, v = Oa(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), x = Rt(e), h = x.decimalSeparator, j = x.allowedDecimalSeparators, w = function(L) {
3029
3042
  return Xn(L, e);
3030
3043
  }, f = function(L, O) {
3031
- return bc(L, O, e);
3032
- }, _ = rt(m) ? d : m, C = p ?? wc(_, u, t);
3044
+ return _c(L, O, e);
3045
+ }, _ = rt(m) ? d : m, C = p ?? bc(_, u, t);
3033
3046
  rt(m) ? rt(d) || (C = C || typeof d == "number") : C = C || typeof m == "number";
3034
3047
  var S = function(L) {
3035
3048
  return Ta(L) ? L : (typeof L == "number" && (L = Ra(L)), C && typeof c == "number" ? Zn(L, c, !!l) : L);
3036
3049
  }, k = Va(S(m), S(d), !!C, w, f, g), $ = k[0], b = $.numAsString, F = $.formattedValue, N = k[1], E = function(L) {
3037
- var O = L.target, W = L.key, B = O.selectionStart, U = O.selectionEnd, D = O.value;
3038
- if (D === void 0 && (D = ""), (W === "Backspace" || W === "Delete") && U < u.length) {
3050
+ var O = L.target, W = L.key, B = O.selectionStart, U = O.selectionEnd, I = O.value;
3051
+ if (I === void 0 && (I = ""), (W === "Backspace" || W === "Delete") && U < u.length) {
3039
3052
  L.preventDefault();
3040
3053
  return;
3041
3054
  }
@@ -3043,12 +3056,12 @@ function Cc(e) {
3043
3056
  s(L);
3044
3057
  return;
3045
3058
  }
3046
- W === "Backspace" && D[0] === "-" && B === u.length + 1 && n && qe(O, 1), c && l && (W === "Backspace" && D[B - 1] === h ? (qe(O, B - 1), L.preventDefault()) : W === "Delete" && D[B] === h && L.preventDefault()), j != null && j.includes(W) && D[B] === h && qe(O, B + 1);
3059
+ W === "Backspace" && I[0] === "-" && B === u.length + 1 && n && qe(O, 1), c && l && (W === "Backspace" && I[B - 1] === h ? (qe(O, B - 1), L.preventDefault()) : W === "Delete" && I[B] === h && L.preventDefault()), j != null && j.includes(W) && I[B] === h && qe(O, B + 1);
3047
3060
  var z = i === !0 ? "," : i;
3048
- W === "Backspace" && D[B - 1] === z && qe(O, B - 1), W === "Delete" && D[B] === z && qe(O, B + 1), s(L);
3061
+ W === "Backspace" && I[B - 1] === z && qe(O, B - 1), W === "Delete" && I[B] === z && qe(O, B + 1), s(L);
3049
3062
  }, A = function(L) {
3050
3063
  var O = b;
3051
- if (O.match(/\d/g) || (O = ""), a || (O = lc(O)), l && c && (O = Zn(O, c, l)), O !== b) {
3064
+ if (O.match(/\d/g) || (O = ""), a || (O = cc(O)), l && c && (O = Zn(O, c, l)), O !== b) {
3052
3065
  var W = Xn(O, e);
3053
3066
  N({
3054
3067
  formattedValue: W,
@@ -3063,7 +3076,7 @@ function Cc(e) {
3063
3076
  }, T = function(L) {
3064
3077
  return L === h ? !0 : jt(L);
3065
3078
  }, q = function(L) {
3066
- var O = L.currentValue, W = L.lastValue, B = L.formattedValue, U = L.currentValueIndex, D = L.formattedValueIndex, z = O[U], ue = B[D], he = Aa(W, O), te = he.to;
3079
+ var O = L.currentValue, W = L.lastValue, B = L.formattedValue, U = L.currentValueIndex, I = L.formattedValueIndex, z = O[U], ue = B[I], he = Aa(W, O), te = he.to;
3067
3080
  return U >= te.start && U < te.end && j && j.includes(z) && ue === h ? !0 : z === ue;
3068
3081
  };
3069
3082
  return Object.assign(Object.assign({}, v), {
@@ -3075,26 +3088,26 @@ function Cc(e) {
3075
3088
  format: w,
3076
3089
  removeFormatting: f,
3077
3090
  getCaretBoundary: function(L) {
3078
- return _c(L, e);
3091
+ return Nc(L, e);
3079
3092
  },
3080
3093
  onKeyDown: E,
3081
3094
  onBlur: A
3082
3095
  });
3083
3096
  }
3084
3097
  function bn(e) {
3085
- var t = Cc(e);
3086
- return pe.createElement(vc, Object.assign({}, t));
3098
+ var t = kc(e);
3099
+ return pe.createElement(jc, Object.assign({}, t));
3087
3100
  }
3088
- const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, label: s, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: p, step: g, noSelectOnFocus: v, decimalScale: x, numberPrefix: h, numberSuffix: j, min: w, max: f }) => {
3089
- const _ = I(() => {
3101
+ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, label: s, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: p, step: g, noSelectOnFocus: v, decimalScale: x, numberPrefix: h, numberSuffix: j, min: w, max: f }) => {
3102
+ const _ = D(() => {
3090
3103
  if (!n)
3091
3104
  return;
3092
3105
  const F = m ?? null;
3093
3106
  n(F ? Number(F) : null);
3094
- }, [m, n]), C = J(null), [S, k] = R((t == null ? void 0 : t.toString()) ?? ""), $ = I((F) => {
3107
+ }, [m, n]), C = J(null), [S, k] = R((t == null ? void 0 : t.toString()) ?? ""), $ = D((F) => {
3095
3108
  const N = F;
3096
3109
  n && n(N == null || N === "" ? null : Number(N));
3097
- }, [n]), b = I((F) => {
3110
+ }, [n]), b = D((F) => {
3098
3111
  var E, A;
3099
3112
  let N = parseFloat(((A = (E = F.target) == null ? void 0 : E.value) == null ? void 0 : A.replaceAll(" ", "")) ?? 0);
3100
3113
  if (Number.isNaN(N) && (N = 0), !a) {
@@ -3125,11 +3138,11 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3125
3138
  ["M", "month"],
3126
3139
  ["Y", "year"],
3127
3140
  ["C", "custom"]
3128
- ], kc = "_wrapper_qfqux_1", Sc = "_lg_qfqux_7", $c = "_sm_qfqux_11", Dc = "_md_qfqux_14", tr = {
3129
- wrapper: kc,
3130
- lg: Sc,
3131
- sm: $c,
3132
- md: Dc
3141
+ ], Sc = "_wrapper_qfqux_1", $c = "_lg_qfqux_7", Dc = "_sm_qfqux_11", Ic = "_md_qfqux_14", tr = {
3142
+ wrapper: Sc,
3143
+ lg: $c,
3144
+ sm: Dc,
3145
+ md: Ic
3133
3146
  }, St = (e) => {
3134
3147
  const t = new Date(e), n = Ve(t.toISOString());
3135
3148
  t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1);
@@ -3140,15 +3153,15 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3140
3153
  t.setFullYear(t.getFullYear() + 1), t.setDate(t.getDate() - 1);
3141
3154
  const a = Ve(t.toISOString());
3142
3155
  return { from: n, to: a };
3143
- }, Ic = (e, t) => {
3156
+ }, Ec = (e, t) => {
3144
3157
  if (e === null || t === null)
3145
3158
  return "C";
3146
3159
  if (e === t)
3147
3160
  return "D";
3148
3161
  const n = new Date(e);
3149
3162
  return St(n).to === t ? "M" : ft(n).to === t ? "Y" : (console.log(ft(n), t), "C");
3150
- }, Ec = (e, t, n) => {
3151
- const a = I((i, c) => {
3163
+ }, Fc = (e, t, n) => {
3164
+ const a = D((i, c) => {
3152
3165
  if (e === "C") {
3153
3166
  n((l) => ({ ...l, [i]: c }));
3154
3167
  return;
@@ -3173,7 +3186,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3173
3186
  t("C"), n((l) => ({ ...l, [i]: c }));
3174
3187
  break;
3175
3188
  }
3176
- }, [e, n, t]), s = I((i) => {
3189
+ }, [e, n, t]), s = D((i) => {
3177
3190
  n((c) => {
3178
3191
  if (c.from === null || c.to === null)
3179
3192
  return c;
@@ -3193,7 +3206,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3193
3206
  to: Ve(u.toISOString())
3194
3207
  };
3195
3208
  });
3196
- }, [e, n]), o = I((i) => {
3209
+ }, [e, n]), o = D((i) => {
3197
3210
  i === "D" ? n((c) => ({ from: c.from, to: c.from })) : i === "M" ? n((c) => {
3198
3211
  if (c.from === null)
3199
3212
  return c;
@@ -3207,11 +3220,11 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3207
3220
  }), t(i);
3208
3221
  }, [n, t]);
3209
3222
  return { setFromToProp: a, handleArrowClick: s, handleRangeChange: o };
3210
- }, Mu = ({ fromtoState: [e, t], className: n, size: a }) => {
3211
- const { texts: { date: s }, ProjectIconComponent: o } = Z(we), [i, c] = R("C"), { handleArrowClick: l, handleRangeChange: u, setFromToProp: d } = Ec(i, c, t), m = re(() => i === "C", [i]), p = J(!0);
3223
+ }, Ru = ({ fromtoState: [e, t], className: n, size: a }) => {
3224
+ const { texts: { date: s }, ProjectIconComponent: o } = Z(we), [i, c] = R("C"), { handleArrowClick: l, handleRangeChange: u, setFromToProp: d } = Fc(i, c, t), m = re(() => i === "C", [i]), p = J(!0);
3212
3225
  return V(() => {
3213
3226
  if (p.current) {
3214
- const g = Ic(e.from, e.to);
3227
+ const g = Ec(e.from, e.to);
3215
3228
  c(g), p.current = !1;
3216
3229
  }
3217
3230
  }, [e.from, e.to]), /* @__PURE__ */ r.jsxs("div", { className: y("d-inline-flex align-items-center gap-1", tr.wrapper, tr[a ?? "md"], n), children: [
@@ -3227,18 +3240,18 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3227
3240
  l(1);
3228
3241
  }, children: /* @__PURE__ */ r.jsx(o, { icon: "chevron-right" }) })
3229
3242
  ] });
3230
- }, Lu = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: n, yearMax: a }) => {
3231
- const { localizationContext: s } = Z(we), { dateFnsLocale: o } = Z(s), { searchParams: i, setSearch: c } = Ks(), l = i.get(t), u = l ? pt(l) : e, d = I((m) => {
3243
+ }, Au = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: n, yearMax: a }) => {
3244
+ const { localizationContext: s } = Z(we), { dateFnsLocale: o } = Z(s), { searchParams: i, setSearch: c } = qs(), l = i.get(t), u = l ? pt(l) : e, d = D((m) => {
3232
3245
  c(t, en(m, { representation: "date" }));
3233
3246
  }, [t, c]);
3234
- return /* @__PURE__ */ r.jsx(Ko, { month: u, onChangeMonth: d, locale: o, yearMin: n, yearMax: a });
3235
- }, Ru = ({ defaultYear: e, searchKey: t = "yearFrom", optionMin: n, optionMax: a, className: s }) => {
3236
- const [o, i] = qs(t, en(e, { representation: "date" })), c = o ? pt(o) : e, l = I((u) => {
3247
+ return /* @__PURE__ */ r.jsx(qo, { month: u, onChangeMonth: d, locale: o, yearMin: n, yearMax: a });
3248
+ }, Vu = ({ defaultYear: e, searchKey: t = "yearFrom", optionMin: n, optionMax: a, className: s }) => {
3249
+ const [o, i] = Qs(t, en(e, { representation: "date" })), c = o ? pt(o) : e, l = D((u) => {
3237
3250
  i(en(u, { representation: "date" }));
3238
3251
  }, [i]);
3239
- return /* @__PURE__ */ r.jsx(Zo, { year: c, onChangeYear: l, optionMin: n, optionMax: a, className: s });
3240
- }, Au = ({ data: e, showLegend: t = !1, legendPosition: n = "left" }) => {
3241
- const { chartColorPalette: a } = Z(we);
3252
+ return /* @__PURE__ */ r.jsx(Jo, { year: c, onChangeYear: l, optionMin: n, optionMax: a, className: s });
3253
+ }, Pu = ({ data: e, showLegend: t = !1, legendPosition: n = "left", onClick: a }) => {
3254
+ const { chartColorPalette: s } = Z(we);
3242
3255
  return /* @__PURE__ */ r.jsx(Ls, { data: e, margin: {
3243
3256
  top: 50,
3244
3257
  right: t && n === "right" ? 200 : 100,
@@ -3247,7 +3260,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3247
3260
  }, innerRadius: 0.4, padAngle: 4, cornerRadius: 2, activeOuterRadiusOffset: 10, borderWidth: 2, borderColor: {
3248
3261
  from: "color",
3249
3262
  modifiers: [["darker", 0.5]]
3250
- }, colors: a, arcLinkLabelsSkipAngle: 10, arcLinkLabelsTextColor: { from: "color", modifiers: [["darker", 0.5]] }, arcLinkLabelsThickness: 2, arcLinkLabelsColor: { from: "color" }, enableArcLabels: !1, legends: t ? [
3263
+ }, colors: s, arcLinkLabelsSkipAngle: 10, arcLinkLabelsTextColor: { from: "color", modifiers: [["darker", 0.5]] }, arcLinkLabelsThickness: 2, arcLinkLabelsColor: { from: "color" }, enableArcLabels: !1, legends: t ? [
3251
3264
  {
3252
3265
  anchor: n,
3253
3266
  direction: n === "left" || n === "right" ? "column" : "row",
@@ -3264,8 +3277,8 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3264
3277
  symbolShape: "circle",
3265
3278
  padding: 10
3266
3279
  }
3267
- ] : [] });
3268
- }, Fc = ({ errors: e, schema: t }) => {
3280
+ ] : [], onClick: (o) => a && a(o.data) });
3281
+ }, Oc = ({ errors: e, schema: t }) => {
3269
3282
  const n = (a) => {
3270
3283
  var s, o;
3271
3284
  return a.toLowerCase() === "others" ? "Obecné" : ((o = (s = t.columns) == null ? void 0 : s.find((i) => i.field === a)) == null ? void 0 : o.caption) ?? a;
@@ -3301,32 +3314,32 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3301
3314
  }
3302
3315
  n[a] = { value: s, defaultValue: s };
3303
3316
  }), n;
3304
- }, Oc = "_table_1klfy_1", Tc = "_table-header_1klfy_10", Mc = "_table-row_1klfy_10", Lc = "_table-head_1klfy_10", Rc = "_filters-row_1klfy_19", Ac = "_table-body_1klfy_30", Vc = "_table-cell_1klfy_30", Pc = "_action-column_1klfy_43", Bc = "_sticky-top_1klfy_47", Hc = "_sticky-first_1klfy_54", Wc = "_sticky-last_1klfy_61", Uc = "_sticky-bottom_1klfy_68", ce = {
3305
- table: Oc,
3317
+ }, Tc = "_table_1klfy_1", Mc = "_table-header_1klfy_10", Lc = "_table-row_1klfy_10", Rc = "_table-head_1klfy_10", Ac = "_filters-row_1klfy_19", Vc = "_table-body_1klfy_30", Pc = "_table-cell_1klfy_30", Bc = "_action-column_1klfy_43", Hc = "_sticky-top_1klfy_47", Wc = "_sticky-first_1klfy_54", Uc = "_sticky-last_1klfy_61", zc = "_sticky-bottom_1klfy_68", ce = {
3318
+ table: Tc,
3306
3319
  "table-header": "_table-header_1klfy_10",
3307
- tableHeader: Tc,
3320
+ tableHeader: Mc,
3308
3321
  "table-row": "_table-row_1klfy_10",
3309
- tableRow: Mc,
3322
+ tableRow: Lc,
3310
3323
  "table-head": "_table-head_1klfy_10",
3311
- tableHead: Lc,
3324
+ tableHead: Rc,
3312
3325
  "filters-row": "_filters-row_1klfy_19",
3313
- filtersRow: Rc,
3326
+ filtersRow: Ac,
3314
3327
  "table-body": "_table-body_1klfy_30",
3315
- tableBody: Ac,
3328
+ tableBody: Vc,
3316
3329
  "table-cell": "_table-cell_1klfy_30",
3317
- tableCell: Vc,
3330
+ tableCell: Pc,
3318
3331
  "action-column": "_action-column_1klfy_43",
3319
- actionColumn: Pc,
3332
+ actionColumn: Bc,
3320
3333
  "sticky-top": "_sticky-top_1klfy_47",
3321
- stickyTop: Bc,
3334
+ stickyTop: Hc,
3322
3335
  "sticky-first": "_sticky-first_1klfy_54",
3323
- stickyFirst: Hc,
3336
+ stickyFirst: Wc,
3324
3337
  "sticky-last": "_sticky-last_1klfy_61",
3325
- stickyLast: Wc,
3338
+ stickyLast: Uc,
3326
3339
  "sticky-bottom": "_sticky-bottom_1klfy_68",
3327
- stickyBottom: Uc
3328
- }, zc = "_input_13mhy_1", et = {
3329
- input: zc
3340
+ stickyBottom: zc
3341
+ }, Gc = "_input_13mhy_1", et = {
3342
+ input: Gc
3330
3343
  }, Ba = ({ type: e, value: t, field: n, isPrimary: a, isReadonly: s, primaryEditable: o = !1, valuesForSelect: i, onChangeHandler: c, hideClearIcon: l, clearValue: u }) => {
3331
3344
  switch (e) {
3332
3345
  case "NUM":
@@ -3343,8 +3356,8 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3343
3356
  e
3344
3357
  ] }) });
3345
3358
  }
3346
- }, Gc = ({ schema: e, columns: t, initialItem: n, onEdit: a, onDelete: s }) => {
3347
- const { ProjectIconComponent: o } = Z(we), [i, c] = R(n), l = I((m, p) => {
3359
+ }, Yc = ({ schema: e, columns: t, initialItem: n, onEdit: a, onDelete: s }) => {
3360
+ const { ProjectIconComponent: o } = Z(we), [i, c] = R(n), l = D((m, p) => {
3348
3361
  console.log("changeValue", m, p), c((g) => ({
3349
3362
  ...g,
3350
3363
  [m]: {
@@ -3352,7 +3365,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3352
3365
  value: p
3353
3366
  }
3354
3367
  }));
3355
- }, []), u = (m) => (m == null ? void 0 : m.value) !== (m == null ? void 0 : m.defaultValue), d = I(() => Object.keys(i).some((m) => u(i[m])), [i]);
3368
+ }, []), u = (m) => (m == null ? void 0 : m.value) !== (m == null ? void 0 : m.defaultValue), d = D(() => Object.keys(i).some((m) => u(i[m])), [i]);
3356
3369
  return V(() => {
3357
3370
  c(n);
3358
3371
  }, [n]), /* @__PURE__ */ r.jsxs("tr", { className: y("table-row", ce.tableRow), children: [
@@ -3363,8 +3376,8 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3363
3376
  }),
3364
3377
  /* @__PURE__ */ r.jsx("td", { className: y("table-cell", ce.tableCell, ce.stickyLast), children: /* @__PURE__ */ r.jsx(ee, { color: "danger", onClick: () => s(i[e.primaryKey ?? ""].value), children: /* @__PURE__ */ r.jsx(o, { icon: "delete" }) }) })
3365
3378
  ] });
3366
- }, Yc = ({ schema: e, columns: t, onCreate: n }) => {
3367
- const { ProjectIconComponent: a } = Z(we), [s, o] = R(null), i = I(() => {
3379
+ }, Kc = ({ schema: e, columns: t, onCreate: n }) => {
3380
+ const { ProjectIconComponent: a } = Z(we), [s, o] = R(null), i = D(() => {
3368
3381
  var u;
3369
3382
  const l = {};
3370
3383
  (u = e.columns) == null || u.forEach((d) => {
@@ -3374,7 +3387,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3374
3387
  defaultValue: m
3375
3388
  };
3376
3389
  }), o(l);
3377
- }, [e]), c = I((l, u) => {
3390
+ }, [e]), c = D((l, u) => {
3378
3391
  o((d) => d && {
3379
3392
  ...d,
3380
3393
  [l]: {
@@ -3394,7 +3407,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3394
3407
  /* @__PURE__ */ r.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ r.jsx(ee, { onClick: i, children: /* @__PURE__ */ r.jsx(a, { icon: "add" }) }) }),
3395
3408
  /* @__PURE__ */ r.jsx("td", { colSpan: t.length + 1 })
3396
3409
  ] });
3397
- }, Kc = ({ column: e, children: t }) => e.description ? /* @__PURE__ */ r.jsx(un, { placement: "bottom", text: e.description ?? "", children: /* @__PURE__ */ r.jsx("div", { children: t }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t }), qc = ({ schema: e, items: t, onEditItem: n, onDeleteItem: a, onCreateItem: s, filters: o, setFilter: i, sortByField: c, sortByType: l, setSortBy: u, selectedMaster: d }) => {
3410
+ }, qc = ({ column: e, children: t }) => e.description ? /* @__PURE__ */ r.jsx(un, { placement: "bottom", text: e.description ?? "", children: /* @__PURE__ */ r.jsx("div", { children: t }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t }), Qc = ({ schema: e, items: t, onEditItem: n, onDeleteItem: a, onCreateItem: s, filters: o, setFilter: i, sortByField: c, sortByType: l, setSortBy: u, selectedMaster: d }) => {
3398
3411
  const { texts: { dynamicForms: m }, ProjectIconComponent: p } = Z(we), [g, v] = R([]);
3399
3412
  return V(() => {
3400
3413
  var x, h, j;
@@ -3426,7 +3439,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3426
3439
  return;
3427
3440
  }
3428
3441
  u(x.field, "asc");
3429
- }, children: /* @__PURE__ */ r.jsx(Kc, { column: x, children: /* @__PURE__ */ r.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
3442
+ }, children: /* @__PURE__ */ r.jsx(qc, { column: x, children: /* @__PURE__ */ r.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
3430
3443
  x.label,
3431
3444
  c === x.field && /* @__PURE__ */ r.jsx(p, { icon: l === "asc" ? "chevron-up" : "chevron-down" })
3432
3445
  ] }) }) }, `${e.id}-${x.field}`)),
@@ -3442,12 +3455,12 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3442
3455
  ] })
3443
3456
  ] }),
3444
3457
  /* @__PURE__ */ r.jsxs("tbody", { className: y("table-body", ce.tableBody), children: [
3445
- t.filter((x) => x[e.primaryKey ?? ""]).map((x) => /* @__PURE__ */ r.jsx(Gc, { schema: e, columns: g, initialItem: x, onEdit: n, onDelete: a }, `${e.id}-${x[e.primaryKey ?? ""].value}`)),
3446
- /* @__PURE__ */ r.jsx(Yc, { schema: e, columns: g, onCreate: s })
3458
+ t.filter((x) => x[e.primaryKey ?? ""]).map((x) => /* @__PURE__ */ r.jsx(Yc, { schema: e, columns: g, initialItem: x, onEdit: n, onDelete: a }, `${e.id}-${x[e.primaryKey ?? ""].value}`)),
3459
+ /* @__PURE__ */ r.jsx(Kc, { schema: e, columns: g, onCreate: s })
3447
3460
  ] })
3448
3461
  ] });
3449
- }, Qc = ({ master: e, onChange: t, options: n, label: a }) => /* @__PURE__ */ r.jsx(Ft, { label: a, value: e, onChange: (s) => t(s ? s.toString() : null), options: n, size: "sm" }), Zc = "_pagination_gujwe_1", rr = {
3450
- pagination: Zc
3462
+ }, Zc = ({ master: e, onChange: t, options: n, label: a }) => /* @__PURE__ */ r.jsx(Ft, { label: a, value: e, onChange: (s) => t(s ? s.toString() : null), options: n, size: "sm" }), Jc = "_pagination_gujwe_1", rr = {
3463
+ pagination: Jc
3451
3464
  }, ar = {
3452
3465
  appDetail: "/settings/:id"
3453
3466
  }, tt = {
@@ -3456,17 +3469,17 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3456
3469
  apiItemPost: "/dynamicForms/update",
3457
3470
  apiItemDelete: "/dynamicForms/delete",
3458
3471
  apiItemCreate: "/dynamicForms/insert"
3459
- }, Vu = ({ id: e, page: t, setPage: n, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, appUrls: { appDetail: l = ar.appDetail } = ar, apiUrls: { apiSchemaGet: u = tt.apiSchemaGet, apiDataGet: d = tt.apiDataGet, apiItemPost: m = tt.apiItemPost, apiItemDelete: p = tt.apiItemDelete, apiItemCreate: g = tt.apiItemCreate } = tt }) => {
3472
+ }, Bu = ({ id: e, page: t, setPage: n, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, appUrls: { appDetail: l = ar.appDetail } = ar, apiUrls: { apiSchemaGet: u = tt.apiSchemaGet, apiDataGet: d = tt.apiDataGet, apiItemPost: m = tt.apiItemPost, apiItemDelete: p = tt.apiItemDelete, apiItemCreate: g = tt.apiItemCreate } = tt }) => {
3460
3473
  var ie, be, le, ae, Ne, $e;
3461
- const { texts: { dynamicForms: v }, ProjectIconComponent: x } = Z(we), h = yt(), { startLoading: j, stopLoading: w } = Z(kr), [f, _] = R(null), [C, S] = R(null), [k, $] = R(null), [b, F] = R(null), [N, E] = R(!1), { addNotification: A } = Rs(), [T, q] = R([]), { confirm: L } = As(), O = 20, W = O + 1, B = b ? Math.ceil(b.length / O) : 1, U = t ? t > 1 : !1, D = t ? t < B : !1, z = t ? (t - 1) * O : 0, ue = t ? t * O : O, [he, te] = R(!1), ke = he ? b == null ? void 0 : b.slice(z, ue) : b, [G, xe] = R(null);
3474
+ const { texts: { dynamicForms: v }, ProjectIconComponent: x } = Z(we), h = yt(), { startLoading: j, stopLoading: w } = Z(kr), [f, _] = R(null), [C, S] = R(null), [k, $] = R(null), [b, F] = R(null), [N, E] = R(!1), { addNotification: A } = Rs(), [T, q] = R([]), { confirm: L } = As(), O = 20, W = O + 1, B = b ? Math.ceil(b.length / O) : 1, U = t ? t > 1 : !1, I = t ? t < B : !1, z = t ? (t - 1) * O : 0, ue = t ? t * O : O, [he, te] = R(!1), ke = he ? b == null ? void 0 : b.slice(z, ue) : b, [G, xe] = R(null);
3462
3475
  V(() => {
3463
3476
  _(null), S(null), E(!1), q([]), xe(null);
3464
3477
  }, [e]);
3465
- const Se = I(async () => {
3478
+ const Se = D(async () => {
3466
3479
  j("dynamicFormSchema"), await h.get(`${u}?id=${e}`).then(({ data: H }) => {
3467
3480
  _(H), w("dynamicFormSchema");
3468
3481
  }).catch(() => w("dynamicFormSchema"));
3469
- }, [h, e, j, w, u]), He = I(async () => {
3482
+ }, [h, e, j, w, u]), He = D(async () => {
3470
3483
  var H;
3471
3484
  if (!(f === null || ((H = f.id) == null ? void 0 : H.toString()) !== e)) {
3472
3485
  if (f.masterReference && !G) {
@@ -3484,17 +3497,17 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3484
3497
  S(fe), w("dynamicFormData");
3485
3498
  }).catch(() => w("dynamicFormData"));
3486
3499
  }
3487
- }, [h, e, f, j, w, N, G, d]), We = I(async (H) => (j("dynamicFormEdit"), h.post(`${m}?id=${e}`, H).then(() => (w("dynamicFormEdit"), q([]), !0)).catch((ne) => (w("dynamicFormEdit"), q(Pt(ne)), !1))), [h, e, j, w, m]), Y = I(async (H) => (j("dynamicFormDelete"), h.delete(`${p}?id=${e}&pk=${H}`).then(() => (w("dynamicFormDelete"), q([]), !0)).catch((ne) => (w("dynamicFormDelete"), q(Pt(ne)), !1))), [h, e, j, w, p]), de = I(async (H) => (j("dynamicFormCreate"), h.post(`${g}?id=${e}`, H).then(({ data: ne }) => (w("dynamicFormCreate"), q([]), ne)).catch((ne) => (w("dynamicFormCreate"), q(Pt(ne)), null))), [h, e, j, w, g]), _e = I(async (H) => {
3500
+ }, [h, e, f, j, w, N, G, d]), We = D(async (H) => (j("dynamicFormEdit"), h.post(`${m}?id=${e}`, H).then(() => (w("dynamicFormEdit"), q([]), !0)).catch((ne) => (w("dynamicFormEdit"), q(Pt(ne)), !1))), [h, e, j, w, m]), Y = D(async (H) => (j("dynamicFormDelete"), h.delete(`${p}?id=${e}&pk=${H}`).then(() => (w("dynamicFormDelete"), q([]), !0)).catch((ne) => (w("dynamicFormDelete"), q(Pt(ne)), !1))), [h, e, j, w, p]), de = D(async (H) => (j("dynamicFormCreate"), h.post(`${g}?id=${e}`, H).then(({ data: ne }) => (w("dynamicFormCreate"), q([]), ne)).catch((ne) => (w("dynamicFormCreate"), q(Pt(ne)), null))), [h, e, j, w, g]), _e = D(async (H) => {
3488
3501
  f && await We(f.masterReference ? { ...H, [f.masterReferenceColumn ?? ""]: G } : H) && (A(v.editSuccess, "success"), S((ne) => ne && ne.map((fe) => {
3489
3502
  var oe;
3490
3503
  return ((oe = fe[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : oe.value) === H[(f == null ? void 0 : f.primaryKey) ?? ""] ? nr(H, f) : fe;
3491
3504
  })));
3492
- }, [A, We, f, G, v]), Ue = I(async (H) => {
3505
+ }, [A, We, f, G, v]), Ue = D(async (H) => {
3493
3506
  await L(v.deleteConfirm) && await Y(H) && (A(v.deleteSuccess, "success"), S((ne) => ne && ne.filter((fe) => {
3494
3507
  var oe;
3495
3508
  return ((oe = fe[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : oe.value) !== H;
3496
3509
  })));
3497
- }, [A, Y, v, L, f]), Xe = I(async (H) => {
3510
+ }, [A, Y, v, L, f]), Xe = D(async (H) => {
3498
3511
  if (!f)
3499
3512
  return !1;
3500
3513
  const ne = await de(f.masterReference ? { ...H, [f.masterReferenceColumn ?? ""]: G } : H);
@@ -3506,7 +3519,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3506
3519
  return !1;
3507
3520
  }, [A, de, v, f, G]), M = (H) => {
3508
3521
  H > B ? n(B) : H < 1 && n(1), n(H);
3509
- }, P = I(() => {
3522
+ }, P = D(() => {
3510
3523
  if (!C || !f) {
3511
3524
  $(null);
3512
3525
  return;
@@ -3535,7 +3548,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3535
3548
  }
3536
3549
  }));
3537
3550
  $(H);
3538
- }, [C, a, f]), Q = I(() => {
3551
+ }, [C, a, f]), Q = D(() => {
3539
3552
  if (!k || !f) {
3540
3553
  F([]);
3541
3554
  return;
@@ -3592,21 +3605,21 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3592
3605
  /* @__PURE__ */ r.jsx(Fa, { label: v.showArchived, value: N === !0, onChange: (H) => E(H) })
3593
3606
  ] }),
3594
3607
  (f == null ? void 0 : f.description) && /* @__PURE__ */ r.jsx(X, { variant: "body2", className: "mb-3", children: f == null ? void 0 : f.description }),
3595
- (f == null ? void 0 : f.masterReference) && /* @__PURE__ */ r.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ r.jsx(Qc, { label: ((be = (ie = f.columns) == null ? void 0 : ie.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : be.caption) ?? "", options: ((ae = (le = f.columns) == null ? void 0 : le.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : ae.values) ?? [], master: G, onChange: (H) => xe(H) }) }),
3608
+ (f == null ? void 0 : f.masterReference) && /* @__PURE__ */ r.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ r.jsx(Zc, { label: ((be = (ie = f.columns) == null ? void 0 : ie.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : be.caption) ?? "", options: ((ae = (le = f.columns) == null ? void 0 : le.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : ae.values) ?? [], master: G, onChange: (H) => xe(H) }) }),
3596
3609
  (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) => {
3597
3610
  var ne;
3598
3611
  return /* @__PURE__ */ r.jsx($t, { as: "link", href: `${Jt(l, { id: (ne = H.id) == null ? void 0 : ne.toString() })}?type=dynamic-form`, children: H.name }, H.id);
3599
3612
  }) }),
3600
3613
  f != null && f.masterReference && !G ? /* @__PURE__ */ r.jsx(Ia, { variant: "warning", children: v.selectMaster((($e = (Ne = f.columns) == null ? void 0 : Ne.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : $e.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3601
- f && T.length > 0 && /* @__PURE__ */ r.jsx("div", { className: "mb-2", children: /* @__PURE__ */ r.jsx(Fc, { errors: T, schema: f }) }),
3614
+ f && T.length > 0 && /* @__PURE__ */ r.jsx("div", { className: "mb-2", children: /* @__PURE__ */ r.jsx(Oc, { errors: T, schema: f }) }),
3602
3615
  f && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3603
- /* @__PURE__ */ r.jsx("div", { className: y("rounded border overflow-auto", rr.tableContainer), children: /* @__PURE__ */ r.jsx(qc, { schema: f, items: (he ? ke : b) ?? [], onEditItem: _e, onDeleteItem: Ue, onCreateItem: Xe, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, selectedMaster: (G == null ? void 0 : G.toString()) ?? null }) }),
3616
+ /* @__PURE__ */ r.jsx("div", { className: y("rounded border overflow-auto", rr.tableContainer), children: /* @__PURE__ */ r.jsx(Qc, { schema: f, items: (he ? ke : b) ?? [], onEditItem: _e, onDeleteItem: Ue, onCreateItem: Xe, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, selectedMaster: (G == null ? void 0 : G.toString()) ?? null }) }),
3604
3617
  he && t && /* @__PURE__ */ r.jsxs("div", { className: y(rr.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
3605
3618
  /* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
3606
3619
  /* @__PURE__ */ r.jsx(ee, { color: "primary", onClick: () => M(1), disabled: !U, children: /* @__PURE__ */ r.jsx(x, { icon: "chevron-double-left" }) }),
3607
3620
  /* @__PURE__ */ r.jsx(ee, { color: "primary", onClick: () => M(t - 1), disabled: !U, children: /* @__PURE__ */ r.jsx(x, { icon: "chevron-left" }) }),
3608
- /* @__PURE__ */ r.jsx(ee, { color: "primary", onClick: () => M(t + 1), disabled: !D, children: /* @__PURE__ */ r.jsx(x, { icon: "chevron-right" }) }),
3609
- /* @__PURE__ */ r.jsx(ee, { color: "primary", onClick: () => M(B), disabled: !D, children: /* @__PURE__ */ r.jsx(x, { icon: "chevron-double-right" }) })
3621
+ /* @__PURE__ */ r.jsx(ee, { color: "primary", onClick: () => M(t + 1), disabled: !I, children: /* @__PURE__ */ r.jsx(x, { icon: "chevron-right" }) }),
3622
+ /* @__PURE__ */ r.jsx(ee, { color: "primary", onClick: () => M(B), disabled: !I, children: /* @__PURE__ */ r.jsx(x, { icon: "chevron-double-right" }) })
3610
3623
  ] }),
3611
3624
  /* @__PURE__ */ r.jsxs(X, { variant: "body", children: [
3612
3625
  v.tablePage,
@@ -3625,7 +3638,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3625
3638
  appDetail: "/settings/:id"
3626
3639
  }, or = {
3627
3640
  apiDynamicFormsGet: "/dynamicForms"
3628
- }, Jc = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ r.jsx(un, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ r.jsx("div", { children: t }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t }), Pu = ({ activeId: e, otherForms: t = [], groupsDefs: n = [], searchQuery: a, fullSize: s, appUrls: { appDetail: o = sr.appDetail } = sr, apiUrls: { apiDynamicFormsGet: i = or.apiDynamicFormsGet } = or }) => {
3641
+ }, Xc = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ r.jsx(un, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ r.jsx("div", { children: t }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t }), Hu = ({ activeId: e, otherForms: t = [], groupsDefs: n = [], searchQuery: a, fullSize: s, appUrls: { appDetail: o = sr.appDetail } = sr, apiUrls: { apiDynamicFormsGet: i = or.apiDynamicFormsGet } = or }) => {
3629
3642
  const c = yt(), { startLoading: l, stopLoading: u } = Z(kr), [d, m] = R(null), p = re(() => [
3630
3643
  ...(d == null ? void 0 : d.map((x) => ({
3631
3644
  ...x,
@@ -3636,24 +3649,24 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3636
3649
  id: x.id,
3637
3650
  name: x.name ?? "",
3638
3651
  items: p.filter((h) => h.group === x.id)
3639
- })).filter((x) => x.items.length > 0), [n, p]), v = I(async () => {
3652
+ })).filter((x) => x.items.length > 0), [n, p]), v = D(async () => {
3640
3653
  l("dynamicForms"), await c.get(i).then(({ data: x }) => {
3641
3654
  m(x), u("dynamicForms");
3642
3655
  }).catch(() => u("dynamicForms"));
3643
3656
  }, [c, l, u, i]);
3644
3657
  return V(() => {
3645
3658
  !d && v();
3646
- }, [v, d]), p.length > 0 ? /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((x) => /* @__PURE__ */ r.jsx(bi, { title: x.name, defaultOpen: !0, children: x.items.map((h) => {
3659
+ }, [v, d]), p.length > 0 ? /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((x) => /* @__PURE__ */ r.jsx(_i, { title: x.name, defaultOpen: !0, children: x.items.map((h) => {
3647
3660
  var j, w, f, _;
3648
3661
  return s ? /* @__PURE__ */ r.jsxs(Qe, { to: `${Jt(o, { id: (j = h.id) == null ? void 0 : j.toString() })}?type=${h.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((w = h.id) == null ? void 0 : w.toString()) ? "active" : ""}`, children: [
3649
3662
  /* @__PURE__ */ r.jsx(X, { variant: "body", children: h.name }),
3650
3663
  h.description && /* @__PURE__ */ r.jsx(X, { variant: "body2", className: "text-muted mt-2", children: h.description })
3651
- ] }, h.id) : /* @__PURE__ */ r.jsx(Jc, { item: h, children: /* @__PURE__ */ r.jsx(Qe, { to: `${Jt(o, { id: (f = h.id) == null ? void 0 : f.toString() })}?type=${h.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((_ = h.id) == null ? void 0 : _.toString()) ? "active" : ""}`, children: /* @__PURE__ */ r.jsx(X, { variant: "body2", children: h.name }) }) }, h.id);
3664
+ ] }, h.id) : /* @__PURE__ */ r.jsx(Xc, { item: h, children: /* @__PURE__ */ r.jsx(Qe, { to: `${Jt(o, { id: (f = h.id) == null ? void 0 : f.toString() })}?type=${h.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((_ = h.id) == null ? void 0 : _.toString()) ? "active" : ""}`, children: /* @__PURE__ */ r.jsx(X, { variant: "body2", children: h.name }) }) }, h.id);
3652
3665
  }) }, x.id)) }) }) : null;
3653
- }, Bu = ({ label: e, to: t, value: n }) => /* @__PURE__ */ r.jsxs(Pe, { label: e, children: [
3666
+ }, Wu = ({ label: e, to: t, value: n }) => /* @__PURE__ */ r.jsxs(Pe, { label: e, children: [
3654
3667
  /* @__PURE__ */ r.jsx("input", { disabled: !0, className: "form-control d-none" }),
3655
3668
  t ? /* @__PURE__ */ r.jsx(Qe, { 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 })
3656
- ] }), Hu = () => {
3669
+ ] }), Uu = () => {
3657
3670
  const { localizationContext: e } = Z(we), { language: t, setLanguage: n } = Z(e), a = (s) => {
3658
3671
  n(s);
3659
3672
  };
@@ -3668,9 +3681,9 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3668
3681
  /* @__PURE__ */ r.jsx($n, {}),
3669
3682
  /* @__PURE__ */ r.jsx("span", { children: "CZ" })
3670
3683
  ] }) });
3671
- }, Wu = ({ controlId: e, ...t }) => /* @__PURE__ */ r.jsx(je.Group, { controlId: e, ...t }), Uu = ({ employeeId: e, alt: t, noPhotoImage: n, cafmApiUrl: a, showLargeInLightBox: s = !1 }) => {
3672
- const { user: o } = Z(wr), { photoPath: i, photoPathSm: c } = Qs(e);
3673
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsx(r.Fragment, { children: s ? /* @__PURE__ */ r.jsx(Al, { baseUrl: a, customToken: o.cafmToken ?? void 0, photos: [
3684
+ }, zu = ({ controlId: e, ...t }) => /* @__PURE__ */ r.jsx(je.Group, { controlId: e, ...t }), Gu = ({ employeeId: e, alt: t, noPhotoImage: n, cafmApiUrl: a, showLargeInLightBox: s = !1 }) => {
3685
+ const { user: o } = Z(wr), { photoPath: i, photoPathSm: c } = Zs(e);
3686
+ return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsx(r.Fragment, { children: s ? /* @__PURE__ */ r.jsx(Vl, { baseUrl: a, customToken: o.cafmToken ?? void 0, photos: [
3674
3687
  {
3675
3688
  id: e.toString(),
3676
3689
  alt: t ?? "",
@@ -3679,7 +3692,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3679
3692
  lgSrc: i
3680
3693
  }
3681
3694
  ], placeholder: n, ImgComponent: qn }) : /* @__PURE__ */ r.jsx(qn, { baseUrl: a, customToken: o.cafmToken ?? void 0, src: c, alt: t, placeholder: n, className: "rounded w-100" }) }) });
3682
- }, zu = ({ text: e, setText: t, onSearchButtonClick: n, className: a }) => {
3695
+ }, Yu = ({ text: e, setText: t, onSearchButtonClick: n, className: a }) => {
3683
3696
  const s = (o) => {
3684
3697
  t(o);
3685
3698
  };
@@ -3688,7 +3701,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3688
3701
  e && /* @__PURE__ */ r.jsx(gt, { onClick: () => s(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ r.jsx(Ee, {}) }),
3689
3702
  /* @__PURE__ */ r.jsx(gt, { onClick: () => n && n(e), variant: "link", className: "border", children: /* @__PURE__ */ r.jsx(Vs, {}) })
3690
3703
  ] });
3691
- }, Gu = ({ value: e, numberPrefix: t, numberSuffix: n, decimalScale: a = 2, className: s }) => /* @__PURE__ */ r.jsx(bn, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: a, defaultValue: "", prefix: t, suffix: n, className: s }), Yu = ({ InputContainer: e = Pe, formField: t, label: n, resetsFields: a, type: s, required: o, hidden: i, disabled: c, withoutLabel: l, className: u }) => {
3704
+ }, Ku = ({ value: e, numberPrefix: t, numberSuffix: n, decimalScale: a = 2, className: s }) => /* @__PURE__ */ r.jsx(bn, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: a, defaultValue: "", prefix: t, suffix: n, className: s }), qu = ({ InputContainer: e = Pe, formField: t, label: n, resetsFields: a, type: s, required: o, hidden: i, disabled: c, withoutLabel: l, className: u }) => {
3692
3705
  const { register: d, formState: m, setValue: p } = Be(), [g, v] = R(void 0), [x, h] = R(!1);
3693
3706
  V(() => {
3694
3707
  const w = t.split(".");
@@ -3708,7 +3721,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3708
3721
  }), isInvalid: j, hidden: i, disabled: c, className: "w-100" }),
3709
3722
  g && /* @__PURE__ */ r.jsx(Je, { message: g.message })
3710
3723
  ] });
3711
- }, Ku = ({ InputContainer: e = Pe, label: t, formField: n, options: a, resetsFields: s, required: o, disabled: i, hidden: c, className: l }) => {
3724
+ }, Qu = ({ InputContainer: e = Pe, label: t, formField: n, options: a, resetsFields: s, required: o, disabled: i, hidden: c, className: l }) => {
3712
3725
  const { register: u, formState: d, setValue: m, watch: p } = Be(), [g, v] = R(void 0), [x, h] = R(!1), j = re(() => a, [a]);
3713
3726
  V(() => {
3714
3727
  const f = n.split(".");
@@ -3728,14 +3741,14 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3728
3741
  }), isInvalid: w, hidden: c, disabled: i, className: "w-100" }, f.id)),
3729
3742
  g && /* @__PURE__ */ r.jsx(Je, { message: g.message })
3730
3743
  ] });
3731
- }, qu = ({ InputContainer: e = Pe, formField: t, label: n, size: a, defaultSelection: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, items: d, onSearchQueryChange: m, selectedItemNavigateTo: p, texts: g, dropdownItemsNameWidth: v, isLoading: x, withoutLabel: h, additionalColumns: j, CustomOnChangeComponent: w, displayIdAsName: f, onSelect: _, className: C }) => {
3732
- const { formState: S, setValue: k, watch: $, control: b } = Be(), [F, N] = R(void 0), [E, A] = R(!1), [T, q] = R(!1), L = $(t) ?? null, O = L === (s == null ? void 0 : s.id) ? s == null ? void 0 : s.name : $(`${t}-DropdownName`), W = re(() => L == null ? null : { id: L ?? null, name: O ?? "" }, [L, O]), B = I(() => {
3744
+ }, Zu = ({ InputContainer: e = Pe, formField: t, label: n, size: a, defaultSelection: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, items: d, onSearchQueryChange: m, selectedItemNavigateTo: p, texts: g, dropdownItemsNameWidth: v, isLoading: x, withoutLabel: h, additionalColumns: j, CustomOnChangeComponent: w, displayIdAsName: f, onSelect: _, className: C }) => {
3745
+ const { formState: S, setValue: k, watch: $, control: b } = Be(), [F, N] = R(void 0), [E, A] = R(!1), [T, q] = R(!1), L = $(t) ?? null, O = L === (s == null ? void 0 : s.id) ? s == null ? void 0 : s.name : $(`${t}-DropdownName`), W = re(() => L == null ? null : { id: L ?? null, name: O ?? "" }, [L, O]), B = D(() => {
3733
3746
  const G = t.split(".");
3734
3747
  let xe = S.errors;
3735
3748
  G.forEach((Se) => {
3736
3749
  xe !== void 0 && (xe = xe[Se]);
3737
3750
  }), N(xe);
3738
- }, [S, t]), U = I((G) => {
3751
+ }, [S, t]), U = D((G) => {
3739
3752
  if ((G == null ? void 0 : G.id) === L)
3740
3753
  return;
3741
3754
  if (_ && _(G), o && o.forEach((Se) => k(Se, null, { shouldDirty: !0, shouldValidate: T })), G === null) {
@@ -3750,9 +3763,9 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3750
3763
  shouldDirty: !0,
3751
3764
  shouldValidate: T
3752
3765
  }), k(`${t}-DropdownName`, G.name ?? "");
3753
- }, [k, t, T, i, o, L, _]), D = I((G) => {
3766
+ }, [k, t, T, i, o, L, _]), I = D((G) => {
3754
3767
  A(!1), U(G);
3755
- }, [U]), z = I(() => {
3768
+ }, [U]), z = D(() => {
3756
3769
  A(!1);
3757
3770
  }, []);
3758
3771
  V(() => {
@@ -3781,12 +3794,12 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3781
3794
  ] }) : null
3782
3795
  ] }),
3783
3796
  F && /* @__PURE__ */ r.jsx(Je, { message: F.message }),
3784
- ue.current && /* @__PURE__ */ r.jsx(jn, { show: E, onCancel: z, items: d, currentSelection: W, onSelectionChange: D, onSearchQueryChange: m, texts: g, itemsNameWidth: v, additionalColumns: j, displayIdAsName: f, isLoading: x, disabled: u, inputRef: ue })
3797
+ ue.current && /* @__PURE__ */ r.jsx(jn, { show: E, onCancel: z, items: d, currentSelection: W, onSelectionChange: I, onSearchQueryChange: m, texts: g, itemsNameWidth: v, additionalColumns: j, displayIdAsName: f, isLoading: x, disabled: u, inputRef: ue })
3785
3798
  ] }) });
3786
- }, Qu = ({ InputContainer: e = Pe, label: t, formField: n, hidden: a, required: s, placeholder: o, disabled: i, showClearIcon: c, resetsFields: l, multiple: u, accept: d, withoutLabel: m, className: p }) => {
3787
- const { watch: g, setValue: v, register: x, formState: h } = Be(), [j, w] = R(!1), [f, _] = R(void 0), C = I(() => {
3799
+ }, Ju = ({ InputContainer: e = Pe, label: t, formField: n, hidden: a, required: s, placeholder: o, disabled: i, showClearIcon: c, resetsFields: l, multiple: u, accept: d, withoutLabel: m, className: p }) => {
3800
+ const { watch: g, setValue: v, register: x, formState: h } = Be(), [j, w] = R(!1), [f, _] = R(void 0), C = D(() => {
3788
3801
  v(n, "");
3789
- }, [v, n]), S = I(() => {
3802
+ }, [v, n]), S = D(() => {
3790
3803
  const $ = n.split(".");
3791
3804
  let b = h.errors;
3792
3805
  $.forEach((F) => {
@@ -3806,22 +3819,22 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3806
3819
  c && g(n) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(ee, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ r.jsx(Ee, {}) }) }),
3807
3820
  f && /* @__PURE__ */ r.jsx(Je, { message: f.message })
3808
3821
  ] });
3809
- }, Zu = ({ children: e, onStorno: t, noSpacer: n }) => {
3822
+ }, Xu = ({ children: e, onStorno: t, noSpacer: n }) => {
3810
3823
  const { formState: a } = Be(), [s, o] = R(!1);
3811
3824
  return V(() => {
3812
3825
  o(Object.keys(a.dirtyFields).length > 0);
3813
- }, [a]), s ? /* @__PURE__ */ r.jsx(Go, { onStorno: t, noSpacer: n, children: e }) : null;
3814
- }, Ju = ({ InputContainer: e = Pe, options: t, formField: n, label: a, size: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, withoutLabel: d, noSortOptions: m, suffixIdToName: p, className: g }) => {
3815
- const { texts: { customSelect: v } } = Z(we), { formState: x, setValue: h, watch: j, control: w } = Be(), [f, _] = R(void 0), [C, S] = R(!1), [k, $] = R(!1), [b, F] = R(""), N = j(n), E = re(() => t.find((D) => D.id === N) ?? null, [t, N]), A = I(() => {
3816
- const D = n.split(".");
3826
+ }, [a]), s ? /* @__PURE__ */ r.jsx(Yo, { onStorno: t, noSpacer: n, children: e }) : null;
3827
+ }, ed = ({ InputContainer: e = Pe, options: t, formField: n, label: a, size: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, withoutLabel: d, noSortOptions: m, suffixIdToName: p, className: g }) => {
3828
+ const { texts: { customSelect: v } } = Z(we), { formState: x, setValue: h, watch: j, control: w } = Be(), [f, _] = R(void 0), [C, S] = R(!1), [k, $] = R(!1), [b, F] = R(""), N = j(n), E = re(() => t.find((I) => I.id === N) ?? null, [t, N]), A = D(() => {
3829
+ const I = n.split(".");
3817
3830
  let z = x.errors;
3818
- D.forEach((ue) => {
3831
+ I.forEach((ue) => {
3819
3832
  z !== void 0 && (z = z[ue]);
3820
3833
  }), _(z);
3821
- }, [x, n]), T = I((D) => {
3822
- if ((D == null ? void 0 : D.id) === N)
3834
+ }, [x, n]), T = D((I) => {
3835
+ if ((I == null ? void 0 : I.id) === N)
3823
3836
  return;
3824
- if (o && o.forEach((ue) => h(ue, null, { shouldDirty: !0, shouldValidate: k })), D === null) {
3837
+ if (o && o.forEach((ue) => h(ue, null, { shouldDirty: !0, shouldValidate: k })), I === null) {
3825
3838
  h(n, null, {
3826
3839
  shouldDirty: !0,
3827
3840
  shouldValidate: k
@@ -3829,30 +3842,30 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3829
3842
  return;
3830
3843
  }
3831
3844
  let z = null;
3832
- i ? z = (D == null ? void 0 : D.id) !== null && (D == null ? void 0 : D.id) !== "" ? parseInt(D.id.toString(), 10) : null : z = D.id === null || D.id === void 0 || D.id === "" ? null : D.id, h(n, z, {
3845
+ i ? z = (I == null ? void 0 : I.id) !== null && (I == null ? void 0 : I.id) !== "" ? parseInt(I.id.toString(), 10) : null : z = I.id === null || I.id === void 0 || I.id === "" ? null : I.id, h(n, z, {
3833
3846
  shouldDirty: !0,
3834
3847
  shouldValidate: k
3835
3848
  });
3836
- }, [h, n, i, o, N, k]), q = I((D) => {
3837
- S(!1), T(D);
3838
- }, [T]), L = I((D) => {
3839
- F(D);
3849
+ }, [h, n, i, o, N, k]), q = D((I) => {
3850
+ S(!1), T(I);
3851
+ }, [T]), L = D((I) => {
3852
+ F(I);
3840
3853
  }, []);
3841
3854
  V(() => {
3842
3855
  A();
3843
3856
  }, [A]), V(() => {
3844
3857
  x.isSubmitted && $(!0);
3845
3858
  }, [x]);
3846
- const O = I((D) => {
3859
+ const O = D((I) => {
3847
3860
  var z;
3848
- return D === null ? "" : !D.name || D.name.length === 0 ? ((z = D.id) == null ? void 0 : z.toString()) ?? "" : p ? `${D.name} (${D.id})` : D.name;
3849
- }, [p]), W = re(() => t.map((D) => ({
3850
- id: D.id,
3851
- name: O(D)
3852
- })).filter((D) => Xt(D.name, b)).sort((D, z) => m ? 0 : (D.name ?? "").localeCompare(z.name ?? "")), [t, m, b, O]), B = J(null), U = f !== void 0;
3861
+ return I === null ? "" : !I.name || I.name.length === 0 ? ((z = I.id) == null ? void 0 : z.toString()) ?? "" : p ? `${I.name} (${I.id})` : I.name;
3862
+ }, [p]), W = re(() => t.map((I) => ({
3863
+ id: I.id,
3864
+ name: O(I)
3865
+ })).filter((I) => Xt(I.name, b)).sort((I, z) => m ? 0 : (I.name ?? "").localeCompare(z.name ?? "")), [t, m, b, O]), B = J(null), U = f !== void 0;
3853
3866
  return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(e, { label: `${a}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: U, inputContainerClassName: y({ "luminus-dropdown-select-open": C }), className: g, children: [
3854
- /* @__PURE__ */ r.jsx(cn, { control: w, name: n, render: () => /* @__PURE__ */ r.jsx(je.Select, { size: s, onMouseDown: (D) => {
3855
- D.currentTarget.focus(), D.preventDefault();
3867
+ /* @__PURE__ */ r.jsx(cn, { control: w, name: n, render: () => /* @__PURE__ */ r.jsx(je.Select, { size: s, onMouseDown: (I) => {
3868
+ I.currentTarget.focus(), I.preventDefault();
3856
3869
  }, onClick: () => {
3857
3870
  S(!0);
3858
3871
  }, ref: B, value: N ?? "", onChange: () => {
@@ -3860,16 +3873,16 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3860
3873
  f && /* @__PURE__ */ r.jsx(Je, { message: f.message }),
3861
3874
  B.current && /* @__PURE__ */ r.jsx(jn, { show: C, onCancel: () => S(!1), items: W, currentSelection: E ?? null, onSelectionChange: q, onSearchQueryChange: L, texts: v, disabled: u, inputRef: B, autoHideSearch: !0, allItemsLength: t.length })
3862
3875
  ] }) });
3863
- }, Xu = ({ InputContainer: e = Pe, formField: t, label: n, placeholder: a, size: s, resetsFields: o, showClearIcon: i, clearValue: c, required: l, hidden: u, disabled: d, withoutLabel: m, step: p, stepperStep: g = 1, className: v, min: x, max: h }) => {
3864
- const { register: j, formState: w, setValue: f, watch: _ } = Be(), [C, S] = R(void 0), [k, $] = R(!1), b = I((T, q, L) => {
3876
+ }, td = ({ InputContainer: e = Pe, formField: t, label: n, placeholder: a, size: s, resetsFields: o, showClearIcon: i, clearValue: c, required: l, hidden: u, disabled: d, withoutLabel: m, step: p, stepperStep: g = 1, className: v, min: x, max: h }) => {
3877
+ const { register: j, formState: w, setValue: f, watch: _ } = Be(), [C, S] = R(void 0), [k, $] = R(!1), b = D((T, q, L) => {
3865
3878
  f(T, dt(q, x, h), L);
3866
- }, [h, x, f]), F = I(() => {
3879
+ }, [h, x, f]), F = D(() => {
3867
3880
  const T = c ?? null;
3868
3881
  b(t, T !== null ? Number(T) : null, {
3869
3882
  shouldDirty: !0,
3870
3883
  shouldValidate: k
3871
3884
  });
3872
- }, [c, b, t, k]), N = I(() => {
3885
+ }, [c, b, t, k]), N = D(() => {
3873
3886
  const T = t.split(".");
3874
3887
  let q = w.errors;
3875
3888
  T.forEach((L) => {
@@ -3902,14 +3915,14 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3902
3915
  i && _(t) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(ee, { color: "secondary", size: "sm", onClick: F, children: /* @__PURE__ */ r.jsx(Ee, {}) }) }),
3903
3916
  C && /* @__PURE__ */ r.jsx(Je, { message: C.message })
3904
3917
  ] });
3905
- }, ed = ({ InputContainer: e = Pe, formField: t, label: n, placeholder: a, resetsFields: s, showClearIcon: o, clearValue: i, required: c, hidden: l, disabled: u, withoutLabel: d, step: m, size: p, CustomOnChangeComponent: g, noSelectOnFocus: v, className: x, decimalScale: h = 2, numberPrefix: j, numberSuffix: w, min: f, max: _ }) => {
3906
- const { formState: C, setValue: S, watch: k, control: $ } = Be(), [b, F] = R(void 0), [N, E] = R(!1), A = I(() => {
3918
+ }, nd = ({ InputContainer: e = Pe, formField: t, label: n, placeholder: a, resetsFields: s, showClearIcon: o, clearValue: i, required: c, hidden: l, disabled: u, withoutLabel: d, step: m, size: p, CustomOnChangeComponent: g, noSelectOnFocus: v, className: x, decimalScale: h = 2, numberPrefix: j, numberSuffix: w, min: f, max: _ }) => {
3919
+ const { formState: C, setValue: S, watch: k, control: $ } = Be(), [b, F] = R(void 0), [N, E] = R(!1), A = D(() => {
3907
3920
  const O = i ?? null;
3908
3921
  S(t, O !== null ? Number(O) : null, {
3909
3922
  shouldDirty: !0,
3910
3923
  shouldValidate: N
3911
3924
  });
3912
- }, [i, S, t, N]), T = I(() => {
3925
+ }, [i, S, t, N]), T = D(() => {
3913
3926
  const O = t.split(".");
3914
3927
  let W = C.errors;
3915
3928
  O.forEach((B) => {
@@ -3928,11 +3941,11 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3928
3941
  const L = b !== void 0;
3929
3942
  return /* @__PURE__ */ r.jsxs(e, { label: `${n}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: L, className: x, children: [
3930
3943
  /* @__PURE__ */ r.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
3931
- /* @__PURE__ */ r.jsx(cn, { control: $, name: t, render: ({ field: { ref: O, onChange: W, name: B, value: U } }) => /* @__PURE__ */ r.jsx(bn, { displayType: "input", thousandSeparator: " ", decimalScale: h, prefix: j, suffix: w, defaultValue: "", name: B, value: U, placeholder: a ?? n, onFocus: (D) => {
3932
- !v && D.target.select();
3933
- }, onChange: (D) => {
3944
+ /* @__PURE__ */ r.jsx(cn, { control: $, name: t, render: ({ field: { ref: O, onChange: W, name: B, value: U } }) => /* @__PURE__ */ r.jsx(bn, { displayType: "input", thousandSeparator: " ", decimalScale: h, prefix: j, suffix: w, defaultValue: "", name: B, value: U, placeholder: a ?? n, onFocus: (I) => {
3945
+ !v && I.target.select();
3946
+ }, onChange: (I) => {
3934
3947
  var ue, he;
3935
- const z = parseFloat(((he = (ue = D.target) == null ? void 0 : ue.value) == null ? void 0 : he.replaceAll(" ", "")) ?? 0);
3948
+ const z = parseFloat(((he = (ue = I.target) == null ? void 0 : ue.value) == null ? void 0 : he.replaceAll(" ", "")) ?? 0);
3936
3949
  s && s.forEach((te) => S(te, null, { shouldDirty: !0, shouldValidate: N })), W(z == null || Number.isNaN(z) ? null : Number(z));
3937
3950
  }, hidden: l, disabled: u, className: y("form-control text-end w-100", {
3938
3951
  "is-invalid": L
@@ -3944,7 +3957,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3944
3957
  o && k(t) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(ee, { color: "secondary", size: "sm", onClick: A, children: /* @__PURE__ */ r.jsx(Ee, {}) }) }),
3945
3958
  b && /* @__PURE__ */ r.jsx(Je, { message: b.message })
3946
3959
  ] });
3947
- }, td = ({ cell: { value: e } }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: e ? /* @__PURE__ */ r.jsx(br, { name: e, size: 21, fontSize: 12 }) : /* @__PURE__ */ r.jsx(r.Fragment, {}) }), Xc = ({ 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: {
3960
+ }, rd = ({ cell: { value: e } }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: e ? /* @__PURE__ */ r.jsx(br, { name: e, size: 21, fontSize: 12 }) : /* @__PURE__ */ r.jsx(r.Fragment, {}) }), eu = ({ 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: {
3948
3961
  height: "14px",
3949
3962
  width: "14px",
3950
3963
  borderRadius: "50%",
@@ -3952,13 +3965,13 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3952
3965
  backgroundColor: "transparent"
3953
3966
  }, className: y(`border-${a}`, t.includes(a) && `bg-${a}`), onClick: () => {
3954
3967
  t.includes(a) ? n(t.filter((s) => s !== a)) : n([...t, a]);
3955
- } }, a)) }), eu = ({ linksTo: e, onClick: t, children: n }) => e ? /* @__PURE__ */ r.jsx(Qe, { to: e, className: "text-decoration-none", onClick: t, children: n }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: n }), tu = ({ message: e, onDeleteMessage: t, onClickMessage: n, getIcon: a, getLinksTo: s }) => {
3956
- const { ProjectIconComponent: o, localizationContext: i } = Z(we), { dateFnsLocale: c } = Z(i), l = e.dateTime ? pt(e.dateTime) : null, u = l ? eo(new Date(Date.now()), l) : 0;
3968
+ } }, a)) }), tu = ({ linksTo: e, onClick: t, children: n }) => e ? /* @__PURE__ */ r.jsx(Qe, { to: e, className: "text-decoration-none", onClick: t, children: n }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: n }), nu = ({ message: e, onDeleteMessage: t, onClickMessage: n, getIcon: a, getLinksTo: s }) => {
3969
+ const { ProjectIconComponent: o, localizationContext: i } = Z(we), { dateFnsLocale: c } = Z(i), l = e.dateTime ? pt(e.dateTime) : null, u = l ? to(new Date(Date.now()), l) : 0;
3957
3970
  return /* @__PURE__ */ r.jsxs("div", { children: [
3958
- l && /* @__PURE__ */ r.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ r.jsx(un, { text: ht(l, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(X, { variant: "caption", children: u > 2 ? ht(l, "dd.MM.yyyy") : no(l, new Date(Date.now()), {
3971
+ l && /* @__PURE__ */ r.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ r.jsx(un, { text: ht(l, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(X, { variant: "caption", children: u > 2 ? ht(l, "dd.MM.yyyy") : ro(l, new Date(Date.now()), {
3959
3972
  locale: c.code
3960
3973
  }) }) }) }) }),
3961
- /* @__PURE__ */ r.jsx(eu, { linksTo: s(e) ?? void 0, onClick: n, children: /* @__PURE__ */ r.jsx(zl, { level: e.type, noIcon: !0, children: /* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
3974
+ /* @__PURE__ */ r.jsx(tu, { linksTo: s(e) ?? void 0, onClick: n, children: /* @__PURE__ */ r.jsx(Gl, { level: e.type, noIcon: !0, children: /* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
3962
3975
  a(e),
3963
3976
  /* @__PURE__ */ r.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
3964
3977
  /* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
@@ -3974,7 +3987,7 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3974
3987
  }, ir = ["info", "warning", "danger"], lr = ({ messages: e, isLoading: t, onDeleteMessage: n, onClickMessage: a, getIcon: s, getLinksTo: o }) => {
3975
3988
  const { texts: { messageBoard: i } } = Z(we), [c, l] = R(ir), u = re(() => e.filter((d) => c.includes(d.type ?? "")), [c, e]);
3976
3989
  return /* @__PURE__ */ r.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
3977
- /* @__PURE__ */ r.jsx(Xc, { knownTypes: ir, typeFilters: c, onChangeTypeFilters: (d) => l(d) }),
3990
+ /* @__PURE__ */ r.jsx(eu, { knownTypes: ir, typeFilters: c, onChangeTypeFilters: (d) => l(d) }),
3978
3991
  t && /* @__PURE__ */ r.jsxs("div", { className: "p-3 w-100", children: [
3979
3992
  /* @__PURE__ */ r.jsx(Re, { as: Rn.Title, animation: "glow", children: /* @__PURE__ */ r.jsx(Re, { xs: 6 }) }),
3980
3993
  /* @__PURE__ */ r.jsxs(Re, { as: Rn.Text, animation: "glow", children: [
@@ -3991,20 +4004,20 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
3991
4004
  ] }),
3992
4005
  !t && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3993
4006
  e.length === 0 && /* @__PURE__ */ r.jsx(Ia, { variant: "info", size: "sm", className: "mt-2", children: i.noMessages }),
3994
- /* @__PURE__ */ r.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: u.map((d) => /* @__PURE__ */ r.jsx(tu, { message: d, onDeleteMessage: n, onClickMessage: a, getIcon: s, getLinksTo: o }, d.id)) })
4007
+ /* @__PURE__ */ r.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: u.map((d) => /* @__PURE__ */ r.jsx(nu, { message: d, onDeleteMessage: n, onClickMessage: a, getIcon: s, getLinksTo: o }, d.id)) })
3995
4008
  ] })
3996
4009
  ] });
3997
4010
  }, Kt = {
3998
4011
  apiGet: "/messageBoard",
3999
4012
  apiDelete: "/messageBoard/"
4000
- }, nd = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: n = Kt.apiGet, apiDelete: a = Kt.apiDelete } = Kt, getIcon: s, getLinksTo: o }) => {
4001
- const c = yt(), [l, u] = R([]), [d, m] = R(!1), [p, g] = R(!1), [v, x] = R(!1), h = I(async () => {
4013
+ }, ad = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: n = Kt.apiGet, apiDelete: a = Kt.apiDelete } = Kt, getIcon: s, getLinksTo: o }) => {
4014
+ const c = yt(), [l, u] = R([]), [d, m] = R(!1), [p, g] = R(!1), [v, x] = R(!1), h = D(async () => {
4002
4015
  g(!0), await c.get(n).then(({ data: C }) => {
4003
4016
  u(C), m(!0), g(!1);
4004
4017
  }).catch(() => {
4005
4018
  u([]), g(!1);
4006
4019
  });
4007
- }, [n, c]), j = I(async (C) => c.delete(`${a}${C}`).then(() => !0).catch(() => !1), [a, c]), w = I((C) => {
4020
+ }, [n, c]), j = D(async (C) => c.delete(`${a}${C}`).then(() => !0).catch(() => !1), [a, c]), w = D((C) => {
4008
4021
  j(C).then((S) => {
4009
4022
  S && u(l.filter((k) => k.id !== C));
4010
4023
  });
@@ -4024,16 +4037,16 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
4024
4037
  ] }),
4025
4038
  /* @__PURE__ */ r.jsx(Hn, { show: v, onHide: () => x(!1), placement: "end", children: /* @__PURE__ */ r.jsx(Hn.Body, { children: /* @__PURE__ */ r.jsx(lr, { messages: l, isLoading: _, onDeleteMessage: w, onClickMessage: () => x(!1), getIcon: s, getLinksTo: o }) }) })
4026
4039
  ] }) : /* @__PURE__ */ r.jsx(lr, { messages: l, isLoading: _, onDeleteMessage: w, getIcon: s, getLinksTo: o });
4027
- }, nu = "_tab-panel_d8l8q_1", ru = "_full-height-no-overflow_d8l8q_5", au = "_disabled_d8l8q_12", qt = {
4040
+ }, ru = "_tab-panel_d8l8q_1", au = "_full-height-no-overflow_d8l8q_5", su = "_disabled_d8l8q_12", qt = {
4028
4041
  "tab-panel": "_tab-panel_d8l8q_1",
4029
- tabPanel: nu,
4042
+ tabPanel: ru,
4030
4043
  "full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
4031
- fullHeightNoOverflow: ru,
4032
- disabled: au
4033
- }, rd = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: n, disabled: a, className: s, children: o }) => e !== t ? null : /* @__PURE__ */ r.jsx("div", { className: y("luminus-tab-panel", qt.tabPanel, { [qt.fullHeightNoOverflow]: n }, { disabled: a }, { [qt.disabled]: a }, s), children: o }), su = "_join-line_1q9e8_1", ou = {
4044
+ fullHeightNoOverflow: au,
4045
+ disabled: su
4046
+ }, sd = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: n, disabled: a, className: s, children: o }) => e !== t ? null : /* @__PURE__ */ r.jsx("div", { className: y("luminus-tab-panel", qt.tabPanel, { [qt.fullHeightNoOverflow]: n }, { disabled: a }, { [qt.disabled]: a }, s), children: o }), ou = "_join-line_1q9e8_1", iu = {
4034
4047
  "join-line": "_join-line_1q9e8_1",
4035
- joinLine: su
4036
- }, ad = ({ activeTab: e, onSelect: t, children: n, vertical: a, verticalStepper: s }) => /* @__PURE__ */ r.jsx("div", { className: y("luminus-tabs d-flex mb-2", { "gap-1": !s }, { "gap-0": s }, {
4048
+ joinLine: ou
4049
+ }, od = ({ activeTab: e, onSelect: t, children: n, vertical: a, verticalStepper: s }) => /* @__PURE__ */ r.jsx("div", { className: y("luminus-tabs d-flex mb-2", { "gap-1": !s }, { "gap-0": s }, {
4037
4050
  "flex-column": a || s
4038
4051
  }), children: n.map((o, i) => {
4039
4052
  const c = o.type, l = o.props;
@@ -4044,94 +4057,95 @@ const Tu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
4044
4057
  /* @__PURE__ */ r.jsx(c, { ...l, className: y({ active: e === u }, m), onClick: () => {
4045
4058
  t(u), p && p(u);
4046
4059
  }, vertical: a || s, children: d }),
4047
- s && i < n.length - 1 && /* @__PURE__ */ r.jsx("div", { className: y("join-line", ou.joinLine) })
4060
+ s && i < n.length - 1 && /* @__PURE__ */ r.jsx("div", { className: y("join-line", iu.joinLine) })
4048
4061
  ] }, l.eventKey);
4049
- }) }), iu = "_tab_1tbi7_1", lu = "_disabled_1tbi7_7", cu = "_vertical_1tbi7_13", Qt = {
4050
- tab: iu,
4051
- disabled: lu,
4052
- vertical: cu
4053
- }, sd = ({ eventKey: e, className: t, onClick: n, disabled: a, vertical: s, children: o }) => /* @__PURE__ */ r.jsx("div", { role: "button", className: y("luminus-tab text-primary rounded", Qt.tab, t, {
4062
+ }) }), lu = "_tab_1tbi7_1", cu = "_disabled_1tbi7_7", uu = "_vertical_1tbi7_13", Qt = {
4063
+ tab: lu,
4064
+ disabled: cu,
4065
+ vertical: uu
4066
+ }, id = ({ eventKey: e, className: t, onClick: n, disabled: a, vertical: s, children: o }) => /* @__PURE__ */ r.jsx("div", { role: "button", className: y("luminus-tab text-primary rounded", Qt.tab, t, {
4054
4067
  disabled: a
4055
4068
  }, { [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 });
4056
4069
  export {
4057
4070
  Ia as Alert,
4058
- zl as AlertItem,
4059
- wu as ApiFileDownloadButton,
4060
- Su as AppSearch,
4061
- $u as AuthTemplate,
4071
+ Gl as AlertItem,
4072
+ bu as ApiFileDownloadButton,
4073
+ Du as AppSearch,
4074
+ Iu as AuthTemplate,
4062
4075
  br as AvatarIcon,
4063
4076
  $a as Backdrop,
4064
- Nu as Badge,
4065
- pl as Card,
4077
+ ku as Badge,
4078
+ gl as Card,
4066
4079
  Fa as CheckInput,
4067
- bi as Collapse,
4080
+ _i as Collapse,
4068
4081
  $t as ContextButton,
4069
- Bu as DisabledRowLabelLink,
4070
- ld as Documents,
4082
+ Wu as DisabledRowLabelLink,
4083
+ ud as Documents,
4071
4084
  Ca as Dropdown,
4072
- ku as DropdownDivider,
4085
+ $u as DropdownDivider,
4073
4086
  yn as DropdownItem,
4074
- Eu as DropdownPicker,
4087
+ Ou as DropdownPicker,
4075
4088
  Na as DropdownToggle,
4076
- Vu as DynamicForm,
4077
- Uu as EmployeeSmallPhoto,
4078
- fi as ErrorBoundary,
4079
- cd as FileExtensionIcon,
4089
+ Bu as DynamicForm,
4090
+ Gu as EmployeeSmallPhoto,
4091
+ mi as ErrorBoundary,
4092
+ dd as FileExtensionIcon,
4093
+ Nu as FileUploadButton,
4080
4094
  wa as FileUploadContextButton,
4081
- Cu as FileUploadDropdownItem,
4082
- Kl as FloatingActionContainer,
4083
- Go as FloatingFormSubmit,
4095
+ Su as FileUploadDropdownItem,
4096
+ ql as FloatingActionContainer,
4097
+ Yo as FloatingFormSubmit,
4084
4098
  Ze as FloatingLabelInput,
4085
- Mu as FromToDatePicker,
4086
- _u as HomeDashboard,
4087
- Yu as HookFormCheckInput,
4088
- qu as HookFormDropdownPicker,
4089
- Qu as HookFormFileInput,
4090
- Zu as HookFormFloatingSubmit,
4091
- Xu as HookFormNumericStepperInput,
4092
- ed as HookFormNumericTextInput,
4093
- Ku as HookFormRadioInput,
4094
- Ju as HookFormSelectInput,
4095
- ud as HookFormTextAreaInput,
4096
- dd as HookFormTextInput,
4097
- bu as HtmlTooltip,
4099
+ Ru as FromToDatePicker,
4100
+ Cu as HomeDashboard,
4101
+ qu as HookFormCheckInput,
4102
+ Zu as HookFormDropdownPicker,
4103
+ Ju as HookFormFileInput,
4104
+ Xu as HookFormFloatingSubmit,
4105
+ td as HookFormNumericStepperInput,
4106
+ nd as HookFormNumericTextInput,
4107
+ Qu as HookFormRadioInput,
4108
+ ed as HookFormSelectInput,
4109
+ fd as HookFormTextAreaInput,
4110
+ md as HookFormTextInput,
4111
+ _u as HtmlTooltip,
4098
4112
  ee as IconButton,
4099
4113
  qn as ImgApi,
4100
4114
  Da as ImgDirect,
4101
4115
  Je as InvalidFeedback,
4102
- Hu as LanguageSwitch,
4116
+ Uu as LanguageSwitch,
4103
4117
  Dn as Loading,
4104
- Zs as LoadingBlock,
4105
- nd as MessageBoard,
4106
- Ko as MonthPicker,
4107
- Lu as MonthPickerSearchParams,
4118
+ Js as LoadingBlock,
4119
+ ad as MessageBoard,
4120
+ qo as MonthPicker,
4121
+ Au as MonthPickerSearchParams,
4108
4122
  Ie as NoInputContainer,
4109
- Gu as NumericFormat,
4110
- Ou as NumericStepperInput,
4111
- Tu as NumericTextInput,
4112
- Al as PhotoLibrary,
4113
- Rl as PhotoLightbox,
4114
- Au as PieChart,
4123
+ Ku as NumericFormat,
4124
+ Mu as NumericStepperInput,
4125
+ Lu as NumericTextInput,
4126
+ Vl as PhotoLibrary,
4127
+ Al as PhotoLightbox,
4128
+ Pu as PieChart,
4115
4129
  Sn as PrimaryButton,
4116
4130
  Pe as RowLabelInput,
4117
- zu as SearchBox,
4131
+ Yu as SearchBox,
4118
4132
  Ft as SelectInput,
4119
- Pu as SettingsFormPicker,
4133
+ Hu as SettingsFormPicker,
4120
4134
  jn as SimplePicker,
4121
4135
  Ns as SimpleToggle,
4122
4136
  un as SimpleTooltip,
4123
- sd as Tab,
4124
- rd as TabPanel,
4125
- ad as Tabs,
4126
- Fu as TextAreaInput,
4137
+ id as Tab,
4138
+ sd as TabPanel,
4139
+ od as Tabs,
4140
+ Tu as TextAreaInput,
4127
4141
  nt as TextInput,
4128
- Iu as Timeline,
4129
- Wu as TypedFormGroup,
4142
+ Fu as Timeline,
4143
+ zu as TypedFormGroup,
4130
4144
  X as Typography,
4131
- fd as UserAvatarToggle,
4132
- td as UserAvatarValueFormat,
4133
- Du as VersionInfo,
4145
+ hd as UserAvatarToggle,
4146
+ rd as UserAvatarValueFormat,
4147
+ Eu as VersionInfo,
4134
4148
  Un as WidgetCard,
4135
- Zo as YearPicker,
4136
- Ru as YearPickerSearchParams
4149
+ Jo as YearPicker,
4150
+ Vu as YearPickerSearchParams
4137
4151
  };