react-luminus-components 1.3.49 → 1.3.50

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,19 +1,19 @@
1
- import { j as n, c as j, t as ce, a as Je, m as Br, b as Pr, d as Hr, s as Wr, e as zr, f as Vr, g as Ur, h as Gr, i as Yr, k as Kr, l as qr, T as Jn, n as Xn, o as hn, E as Qr, p as es, q as zt, r as ts, u as Zr, v as z, w as be, x as ns, F as Mt, y as Jr, z as Xr, A as eo, B as to, C as no, D as so, G as ro, H as oo, I as Vt, J as ss, K as rs, L as ao, M as Re, N as lo, O as co, P as Le, Q as io, R as Ct, S as V, U as ue, V as uo, W as fo, X as os, Y as Ut, Z as Gt, _ as mo, $ as as, a0 as po, a1 as ls, a2 as Yt, a3 as ho, a4 as go, a5 as st, a6 as cs, a7 as we, a8 as xo, a9 as jo, aa as yo, ab as is, ac as wo, ad as ds, ae as vo, af as He, ag as us, ah as ye, ai as bo, aj as _o, ak as fs, al as No, am as kt, an as Ne, ao as gn, ap as Co } from "./nivo-pie.es-mdfdQL4R.js";
2
- import { aq as Hd } from "./nivo-pie.es-mdfdQL4R.js";
1
+ import { j as n, c as j, t as ce, a as Je, m as Br, b as Pr, d as Hr, s as Wr, e as zr, f as Vr, g as Ur, h as Gr, i as Yr, k as Kr, l as qr, T as Jn, n as Xn, o as hn, E as Qr, p as es, q as zt, r as ts, u as Zr, v as z, w as be, x as ns, F as Mt, y as Jr, z as Xr, A as eo, B as to, C as no, D as so, G as ro, H as oo, I as Vt, J as ss, K as rs, L as ao, M as Re, N as lo, O as co, P as Le, Q as io, R as kt, S as V, U as ue, V as uo, W as fo, X as os, Y as Ut, Z as Gt, _ as mo, $ as as, a0 as po, a1 as ls, a2 as Yt, a3 as ho, a4 as go, a5 as st, a6 as cs, a7 as we, a8 as xo, a9 as jo, aa as yo, ab as is, ac as wo, ad as ds, ae as vo, af as He, ag as us, ah as ye, ai as bo, aj as _o, ak as fs, al as No, am as Ct, an as Ne, ao as gn, ap as ko } from "./nivo-pie.es-mdfdQL4R.js";
2
+ import { aq as Pd } from "./nivo-pie.es-mdfdQL4R.js";
3
3
  import * as M from "react";
4
- import he, { useCallback as $, useMemo as q, useEffect as O, useRef as Y, useState as I, useReducer as ms, useContext as B, Component as ko, isValidElement as $o, Suspense as So, createElement as Io } from "react";
4
+ import he, { useCallback as $, useMemo as q, useEffect as O, useRef as Y, useState as I, useReducer as ms, useContext as B, Component as Co, isValidElement as $o, Suspense as So, createElement as Io } from "react";
5
5
  import { c as $e, d as wt, C as Do, a as ps, u as Fo, q as xn, F as Eo, b as hs, A as Oo, M as To, B as Mo, e as Lo, g as Ro, P as jn, f as ct, L as yn } from "./PrimaryButton-ByKyWqwd.js";
6
6
  import { InteractionType as Ao } from "@azure/msal-browser";
7
7
  import { MsalAuthenticationTemplate as Bo } from "@azure/msal-react";
8
8
  import { Link as _e, Navigate as it, generatePath as Lt } from "react-router-dom";
9
- import { useFormContext as Ce, Controller as gs } from "react-hook-form";
9
+ import { useFormContext as ke, Controller as gs } from "react-hook-form";
10
10
  import { s as wn, g as vn, d as ut, a as Se, f as Xe, t as De, b as Po, c as Ho, p as et } from "./dateUtils-D3ihjADH.js";
11
11
  import { S as Kt } from "./SimpleTooltip-DqIdlcRY.js";
12
12
  import { u as xs, a as js, b as ys, c as Wo, d as zo, e as Vo } from "./useEmployeePhotoPath-DjxgOb6H.js";
13
13
  import pt from "react-dom";
14
14
  import { u as Uo } from "./useConfirm-Ck4Qo5KA.js";
15
15
  import { s as Rt } from "./searchUtils-pmMfjkU3.js";
16
- const td = ({ fileLoader: t, fileName: e, children: s }) => {
16
+ const ed = ({ fileLoader: t, fileName: e, children: s }) => {
17
17
  const r = $(async () => {
18
18
  var i, c;
19
19
  const o = await t();
@@ -70,12 +70,12 @@ function St(t, e) {
70
70
  return s.getFullYear() - r.getFullYear();
71
71
  }
72
72
  function qo(t, e) {
73
- const s = ce(t), r = ce(e), o = Cn(s, r), a = Math.abs(ut(s, r));
73
+ const s = ce(t), r = ce(e), o = kn(s, r), a = Math.abs(ut(s, r));
74
74
  s.setDate(s.getDate() - o * a);
75
- const l = +(Cn(s, r) === -o), i = o * (a - l);
75
+ const l = +(kn(s, r) === -o), i = o * (a - l);
76
76
  return i === 0 ? 0 : i;
77
77
  }
78
- function Cn(t, e) {
78
+ function kn(t, e) {
79
79
  const s = t.getFullYear() - e.getFullYear() || t.getMonth() - e.getMonth() || t.getDate() - e.getDate() || t.getHours() - e.getHours() || t.getMinutes() - e.getMinutes() || t.getSeconds() - e.getSeconds() || t.getMilliseconds() - e.getMilliseconds();
80
80
  return s < 0 ? -1 : s > 0 ? 1 : s;
81
81
  }
@@ -88,7 +88,7 @@ function qt(t) {
88
88
  function Qt(t, e) {
89
89
  return +ce(t) - +ce(e);
90
90
  }
91
- function kn(t, e, s) {
91
+ function Cn(t, e, s) {
92
92
  const r = Qt(t, e) / Pr;
93
93
  return qt(s == null ? void 0 : s.roundingMethod)(r);
94
94
  }
@@ -131,10 +131,10 @@ function Zo(t, e, s) {
131
131
  let r = 0, o;
132
132
  const a = ce(t), l = ce(e);
133
133
  if (s != null && s.unit)
134
- o = s == null ? void 0 : s.unit, o === "second" ? r = It(a, l) : o === "minute" ? r = $n(a, l) : o === "hour" ? r = kn(a, l) : o === "day" ? r = ut(a, l) : o === "week" ? r = Nn(a, l) : o === "month" ? r = bn(a, l) : o === "quarter" ? r = $t(a, l) : o === "year" && (r = St(a, l));
134
+ o = s == null ? void 0 : s.unit, o === "second" ? r = It(a, l) : o === "minute" ? r = $n(a, l) : o === "hour" ? r = Cn(a, l) : o === "day" ? r = ut(a, l) : o === "week" ? r = Nn(a, l) : o === "month" ? r = bn(a, l) : o === "quarter" ? r = $t(a, l) : o === "year" && (r = St(a, l));
135
135
  else {
136
136
  const c = It(a, l);
137
- Math.abs(c) < Wr ? (r = It(a, l), o = "second") : Math.abs(c) < zr ? (r = $n(a, l), o = "minute") : Math.abs(c) < Vr && Math.abs(ut(a, l)) < 1 ? (r = kn(a, l), o = "hour") : Math.abs(c) < Ur && (r = ut(a, l)) && Math.abs(r) < 7 ? o = "day" : Math.abs(c) < Gr ? (r = Nn(a, l), o = "week") : Math.abs(c) < Yr ? (r = bn(a, l), o = "month") : Math.abs(c) < Kr && $t(a, l) < 4 ? (r = $t(a, l), o = "quarter") : (r = St(a, l), o = "year");
137
+ Math.abs(c) < Wr ? (r = It(a, l), o = "second") : Math.abs(c) < zr ? (r = $n(a, l), o = "minute") : Math.abs(c) < Vr && Math.abs(ut(a, l)) < 1 ? (r = Cn(a, l), o = "hour") : Math.abs(c) < Ur && (r = ut(a, l)) && Math.abs(r) < 7 ? o = "day" : Math.abs(c) < Gr ? (r = Nn(a, l), o = "week") : Math.abs(c) < Yr ? (r = bn(a, l), o = "month") : Math.abs(c) < Kr && $t(a, l) < 4 ? (r = $t(a, l), o = "quarter") : (r = St(a, l), o = "year");
138
138
  }
139
139
  return new Intl.RelativeTimeFormat(s == null ? void 0 : s.locale, {
140
140
  localeMatcher: s == null ? void 0 : s.localeMatcher,
@@ -214,17 +214,17 @@ const sa = {
214
214
  getDimensionValue: g = na,
215
215
  ...x
216
216
  }, y) => {
217
- const p = typeof i == "function" ? i() : i, w = q(() => Qe((k) => {
218
- k.style[p] = "0";
219
- }, t), [p, t]), N = q(() => Qe((k) => {
217
+ const p = typeof i == "function" ? i() : i, w = q(() => Qe((C) => {
218
+ C.style[p] = "0";
219
+ }, t), [p, t]), N = q(() => Qe((C) => {
220
220
  const _ = `scroll${p[0].toUpperCase()}${p.slice(1)}`;
221
- k.style[p] = `${k[_]}px`;
222
- }, e), [p, e]), f = q(() => Qe((k) => {
223
- k.style[p] = null;
224
- }, s), [p, s]), C = q(() => Qe((k) => {
225
- k.style[p] = `${g(p, k)}px`, Zr(k);
226
- }, r), [r, g, p]), v = q(() => Qe((k) => {
227
- k.style[p] = null;
221
+ C.style[p] = `${C[_]}px`;
222
+ }, e), [p, e]), f = q(() => Qe((C) => {
223
+ C.style[p] = null;
224
+ }, s), [p, s]), k = q(() => Qe((C) => {
225
+ C.style[p] = `${g(p, C)}px`, Zr(C);
226
+ }, r), [r, g, p]), v = q(() => Qe((C) => {
227
+ C.style[p] = null;
228
228
  }, o), [p, o]);
229
229
  return /* @__PURE__ */ n.jsx(Jn, {
230
230
  ref: y,
@@ -234,7 +234,7 @@ const sa = {
234
234
  onEnter: w,
235
235
  onEntering: N,
236
236
  onEntered: f,
237
- onExit: C,
237
+ onExit: k,
238
238
  onExiting: v,
239
239
  childRef: l.ref,
240
240
  in: c,
@@ -242,9 +242,9 @@ const sa = {
242
242
  mountOnEnter: u,
243
243
  unmountOnExit: m,
244
244
  appear: h,
245
- children: (k, _) => /* @__PURE__ */ he.cloneElement(l, {
245
+ children: (C, _) => /* @__PURE__ */ he.cloneElement(l, {
246
246
  ..._,
247
- className: j(a, l.props.className, sa[k], p === "width" && "collapse-horizontal")
247
+ className: j(a, l.props.className, sa[C], p === "width" && "collapse-horizontal")
248
248
  })
249
249
  });
250
250
  }), _s = wt("h4");
@@ -323,7 +323,7 @@ function Zt({
323
323
  onKeyDown: m
324
324
  }, d];
325
325
  }
326
- const Cs = /* @__PURE__ */ M.forwardRef((t, e) => {
326
+ const ks = /* @__PURE__ */ M.forwardRef((t, e) => {
327
327
  let {
328
328
  as: s,
329
329
  disabled: r
@@ -338,7 +338,7 @@ const Cs = /* @__PURE__ */ M.forwardRef((t, e) => {
338
338
  ref: e
339
339
  }));
340
340
  });
341
- Cs.displayName = "Button";
341
+ ks.displayName = "Button";
342
342
  const ca = ["onKeyDown"];
343
343
  function ia(t, e) {
344
344
  if (t == null) return {};
@@ -372,7 +372,7 @@ const Jt = /* @__PURE__ */ M.forwardRef((t, e) => {
372
372
  }));
373
373
  });
374
374
  Jt.displayName = "Anchor";
375
- const ks = /* @__PURE__ */ M.forwardRef(({
375
+ const Cs = /* @__PURE__ */ M.forwardRef(({
376
376
  className: t,
377
377
  bsPrefix: e,
378
378
  as: s = Jt,
@@ -382,7 +382,7 @@ const ks = /* @__PURE__ */ M.forwardRef(({
382
382
  className: j(t, e),
383
383
  ...r
384
384
  })));
385
- ks.displayName = "AlertLink";
385
+ Cs.displayName = "AlertLink";
386
386
  const $s = /* @__PURE__ */ M.forwardRef((t, e) => {
387
387
  const {
388
388
  bsPrefix: s,
@@ -421,7 +421,7 @@ const $s = /* @__PURE__ */ M.forwardRef((t, e) => {
421
421
  });
422
422
  $s.displayName = "Alert";
423
423
  const ua = Object.assign($s, {
424
- Link: ks,
424
+ Link: Cs,
425
425
  Heading: Ns
426
426
  }), tt = /* @__PURE__ */ M.forwardRef(({
427
427
  as: t,
@@ -686,8 +686,8 @@ function Ps(t = {}) {
686
686
  usePopper: h = !!e
687
687
  } = t, g = (e == null ? void 0 : e.show) == null ? !!t.show : e.show;
688
688
  g && !o.current && (o.current = !0);
689
- const x = (k) => {
690
- e == null || e.toggle(!1, k);
689
+ const x = (C) => {
690
+ e == null || e.toggle(!1, C);
691
691
  }, {
692
692
  placement: y,
693
693
  setMenu: p,
@@ -702,7 +702,7 @@ function Ps(t = {}) {
702
702
  fixed: c,
703
703
  arrowElement: s,
704
704
  popperConfig: u
705
- })), C = Object.assign({
705
+ })), k = Object.assign({
706
706
  ref: p || ya,
707
707
  "aria-labelledby": N == null ? void 0 : N.id
708
708
  }, f.attributes.popper, {
@@ -722,7 +722,7 @@ function Ps(t = {}) {
722
722
  return so(w, x, {
723
723
  clickTrigger: i,
724
724
  disabled: !g
725
- }), [C, v];
725
+ }), [k, v];
726
726
  }
727
727
  function Hs(t) {
728
728
  let {
@@ -768,8 +768,8 @@ function Na(t) {
768
768
  let e = he.useId(), [s] = I(Ia()), r = s || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ht.prefix}`;
769
769
  return t || `${r}-${e}`;
770
770
  }
771
- const Ca = typeof he.useId == "function" ? Na : _a;
772
- function ka() {
771
+ const ka = typeof he.useId == "function" ? Na : _a;
772
+ function Ca() {
773
773
  return !1;
774
774
  }
775
775
  function $a() {
@@ -780,7 +780,7 @@ function Sa(t) {
780
780
  };
781
781
  }
782
782
  function Ia() {
783
- return typeof he.useSyncExternalStore == "function" ? he.useSyncExternalStore(Sa, ka, $a) : B(wa);
783
+ return typeof he.useSyncExternalStore == "function" ? he.useSyncExternalStore(Sa, Ca, $a) : B(wa);
784
784
  }
785
785
  const zs = (t) => {
786
786
  var e;
@@ -788,7 +788,7 @@ const zs = (t) => {
788
788
  }, Dn = () => {
789
789
  };
790
790
  function Vs() {
791
- const t = Ca(), {
791
+ const t = ka(), {
792
792
  show: e = !1,
793
793
  toggle: s = Dn,
794
794
  setToggle: r,
@@ -854,7 +854,7 @@ const Ks = /* @__PURE__ */ M.forwardRef((t, e) => {
854
854
  disabled: r,
855
855
  onClick: o,
856
856
  active: a,
857
- as: l = Cs
857
+ as: l = ks
858
858
  } = t, i = Fa(t, Da);
859
859
  const [c] = Ys({
860
860
  key: s,
@@ -884,13 +884,13 @@ function rt({
884
884
  placement: l = "bottom-start",
885
885
  children: i
886
886
  }) {
887
- const c = ro(), [d, u] = ha(e, t, r), [m, h] = En(), g = m.current, [x, y] = En(), p = x.current, w = Fo(d), N = Y(null), f = Y(!1), C = B(Bt), v = $((b, D, R = D == null ? void 0 : D.type) => {
887
+ const c = ro(), [d, u] = ha(e, t, r), [m, h] = En(), g = m.current, [x, y] = En(), p = x.current, w = Fo(d), N = Y(null), f = Y(!1), k = B(Bt), v = $((b, D, R = D == null ? void 0 : D.type) => {
888
888
  u(b, {
889
889
  originalEvent: D,
890
890
  source: R
891
891
  });
892
- }, [u]), k = be((b, D) => {
893
- s == null || s(b, D), v(!1, D, "select"), D.isPropagationStopped() || C == null || C(b, D);
892
+ }, [u]), C = be((b, D) => {
893
+ s == null || s(b, D), v(!1, D, "select"), D.isPropagationStopped() || k == null || k(b, D);
894
894
  }), _ = q(() => ({
895
895
  toggle: v,
896
896
  placement: l,
@@ -961,7 +961,7 @@ function rt({
961
961
  break;
962
962
  }
963
963
  }), /* @__PURE__ */ n.jsx(Bt.Provider, {
964
- value: k,
964
+ value: C,
965
965
  children: /* @__PURE__ */ n.jsx(vt.Provider, {
966
966
  value: _,
967
967
  children: i
@@ -1082,8 +1082,8 @@ const tr = /* @__PURE__ */ M.forwardRef(({
1082
1082
  h = R === "start", f.push(`${x}-${D}-${R}`);
1083
1083
  }
1084
1084
  } else s === "end" && (h = !0);
1085
- const C = er(h, p, w), [v, {
1086
- hasShown: k,
1085
+ const k = er(h, p, w), [v, {
1086
+ hasShown: C,
1087
1087
  popper: _,
1088
1088
  show: E,
1089
1089
  toggle: S
@@ -1094,11 +1094,11 @@ const tr = /* @__PURE__ */ M.forwardRef(({
1094
1094
  usePopper: !g && f.length === 0,
1095
1095
  offset: [0, 2],
1096
1096
  popperConfig: c,
1097
- placement: C
1097
+ placement: k
1098
1098
  });
1099
1099
  if (v.ref = Vt(Xs(m, "DropdownMenu"), v.ref), rs(() => {
1100
1100
  E && (_ == null || _.update());
1101
- }, [E]), !k && !l && !N) return null;
1101
+ }, [E]), !C && !l && !N) return null;
1102
1102
  typeof i != "string" && (v.show = E, v.close = () => S == null ? void 0 : S(!1), v.align = s);
1103
1103
  let F = u.style;
1104
1104
  return _ != null && _.placement && (F = {
@@ -1154,11 +1154,11 @@ const sr = /* @__PURE__ */ M.forwardRef((t, e) => {
1154
1154
  }), x = B(bt), y = z(s, "dropdown"), p = ao(), w = (_) => h === !1 ? _ === "click" : h === "inside" ? _ !== "rootClose" : h === "outside" ? _ !== "select" : !0, N = be((_, E) => {
1155
1155
  var S;
1156
1156
  !((S = E.originalEvent) == null || (S = S.target) == null) && S.classList.contains("dropdown-toggle") && E.source === "mousedown" || (E.originalEvent.currentTarget === document && (E.source !== "keydown" || E.originalEvent.key === "Escape") && (E.source = "rootClose"), w(E.source) && (c == null || c(_, E)));
1157
- }), C = er(l === "end", r, p), v = q(() => ({
1157
+ }), k = er(l === "end", r, p), v = q(() => ({
1158
1158
  align: l,
1159
1159
  drop: r,
1160
1160
  isRTL: p
1161
- }), [l, r, p]), k = {
1161
+ }), [l, r, p]), C = {
1162
1162
  down: y,
1163
1163
  "down-centered": `${y}-center`,
1164
1164
  up: "dropup",
@@ -1169,7 +1169,7 @@ const sr = /* @__PURE__ */ M.forwardRef((t, e) => {
1169
1169
  return /* @__PURE__ */ n.jsx(en.Provider, {
1170
1170
  value: v,
1171
1171
  children: /* @__PURE__ */ n.jsx(rt, {
1172
- placement: C,
1172
+ placement: k,
1173
1173
  show: o,
1174
1174
  onSelect: i,
1175
1175
  onToggle: N,
@@ -1178,7 +1178,7 @@ const sr = /* @__PURE__ */ M.forwardRef((t, e) => {
1178
1178
  children: x ? g.children : /* @__PURE__ */ n.jsx(u, {
1179
1179
  ...g,
1180
1180
  ref: e,
1181
- className: j(a, o && "show", k[r])
1181
+ className: j(a, o && "show", C[r])
1182
1182
  })
1183
1183
  })
1184
1184
  });
@@ -1255,10 +1255,10 @@ const rr = /* @__PURE__ */ M.forwardRef(({
1255
1255
  }, f) => {
1256
1256
  e = z(e, "form-check"), s = z(s, "form-switch");
1257
1257
  const {
1258
- controlId: C
1258
+ controlId: k
1259
1259
  } = B(Re), v = q(() => ({
1260
- controlId: t || C
1261
- }), [C, t]), k = !p && y != null && y !== !1 || pa(p, gt), _ = /* @__PURE__ */ n.jsx(ot, {
1260
+ controlId: t || k
1261
+ }), [k, t]), C = !p && y != null && y !== !1 || pa(p, gt), _ = /* @__PURE__ */ n.jsx(ot, {
1262
1262
  ...N,
1263
1263
  type: x === "switch" ? "checkbox" : x,
1264
1264
  ref: f,
@@ -1271,9 +1271,9 @@ const rr = /* @__PURE__ */ M.forwardRef(({
1271
1271
  value: v,
1272
1272
  children: /* @__PURE__ */ n.jsx("div", {
1273
1273
  style: h,
1274
- className: j(m, k && e, r && `${e}-inline`, o && `${e}-reverse`, x === "switch" && s),
1274
+ className: j(m, C && e, r && `${e}-inline`, o && `${e}-reverse`, x === "switch" && s),
1275
1275
  children: p || /* @__PURE__ */ n.jsxs(n.Fragment, {
1276
- children: [_, k && /* @__PURE__ */ n.jsx(gt, {
1276
+ children: [_, C && /* @__PURE__ */ n.jsx(gt, {
1277
1277
  title: g,
1278
1278
  children: y
1279
1279
  }), d && /* @__PURE__ */ n.jsx(Eo, {
@@ -1635,9 +1635,9 @@ const gr = /* @__PURE__ */ M.forwardRef(({
1635
1635
  restoreFocusOptions: w,
1636
1636
  onEntered: N,
1637
1637
  onExit: f,
1638
- onExiting: C,
1638
+ onExiting: k,
1639
1639
  onEnter: v,
1640
- onEntering: k,
1640
+ onEntering: C,
1641
1641
  onExited: _,
1642
1642
  backdropClassName: E,
1643
1643
  manager: S,
@@ -1693,10 +1693,10 @@ const gr = /* @__PURE__ */ M.forwardRef(({
1693
1693
  onShow: m,
1694
1694
  onHide: Z,
1695
1695
  onEnter: T,
1696
- onEntering: k,
1696
+ onEntering: C,
1697
1697
  onEntered: N,
1698
1698
  onExit: f,
1699
- onExiting: C,
1699
+ onExiting: k,
1700
1700
  onExited: re,
1701
1701
  manager: te(),
1702
1702
  transition: Ha,
@@ -1772,9 +1772,9 @@ const Ie = Object.assign(yr, {
1772
1772
  });
1773
1773
  });
1774
1774
  sn.displayName = "Spinner";
1775
- const nd = ({ heading: t, content: e, placement: s, children: r, trigger: o, popoverClassName: a, ...l }) => /* @__PURE__ */ n.jsx(io, { placement: s, overlay: /* @__PURE__ */ n.jsxs(Ct, { className: j("luminus-popover", a), onClick: (i) => i.stopPropagation(), children: [
1776
- t && /* @__PURE__ */ n.jsx(Ct.Header, { children: typeof t == "string" ? /* @__PURE__ */ n.jsx(V, { variant: "h6", className: "text-primary", children: t }) : t }),
1777
- /* @__PURE__ */ n.jsx(Ct.Body, { children: e })
1775
+ const td = ({ heading: t, content: e, placement: s, children: r, trigger: o, popoverClassName: a, ...l }) => /* @__PURE__ */ n.jsx(io, { placement: s, overlay: /* @__PURE__ */ n.jsxs(kt, { className: j("luminus-popover", a), onClick: (i) => i.stopPropagation(), children: [
1776
+ t && /* @__PURE__ */ n.jsx(kt.Header, { children: typeof t == "string" ? /* @__PURE__ */ n.jsx(V, { variant: "h6", className: "text-primary", children: t }) : t }),
1777
+ /* @__PURE__ */ n.jsx(kt.Body, { children: e })
1778
1778
  ] }), trigger: o ?? "hover", rootClose: !0, show: l.controlled ? l.isOpen : void 0, onToggle: l.controlled ? (i) => l.setIsOpen(i) : void 0, children: r }), za = ({ children: t, onStorno: e, noSpacer: s }) => {
1779
1779
  const { texts: { formSubmit: r } } = B(ue);
1780
1780
  return /* @__PURE__ */ n.jsxs(Zc, { noSpacer: s, children: [
@@ -1919,7 +1919,7 @@ const nd = ({ heading: t, content: e, placement: s, children: r, trigger: o, pop
1919
1919
  "widget-edit-overlay": "_widget-edit-overlay_16plm_36",
1920
1920
  widgetEditOverlay: ul
1921
1921
  };
1922
- class fl extends ko {
1922
+ class fl extends Co {
1923
1923
  constructor(e) {
1924
1924
  super(e), this.state = { hasError: !1 }, this.reload = this.reload.bind(this);
1925
1925
  }
@@ -1958,7 +1958,7 @@ const ml = (t) => (s) => {
1958
1958
  }, Ln = ({ children: t, title: e, headerContent: s }) => /* @__PURE__ */ n.jsx(jc, { className: j(gl.widgetCard, "luminus-widget"), title: e, headerContent: s, contentClassName: "h-100 overflow-auto", children: t }), xl = ({ children: t, title: e }) => {
1959
1959
  const { texts: { widget: s } } = B(ue);
1960
1960
  return /* @__PURE__ */ n.jsx(pl, { fallback: /* @__PURE__ */ n.jsx(Ln, { title: e, children: s.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ n.jsx(So, { fallback: /* @__PURE__ */ n.jsx(Ln, { title: e, children: /* @__PURE__ */ n.jsx(Go, {}) }), children: t }) });
1961
- }, sd = ({ availableWidgets: t, editMode: e, defaultDashboardConfig: s }) => {
1961
+ }, nd = ({ availableWidgets: t, editMode: e, defaultDashboardConfig: s }) => {
1962
1962
  var u;
1963
1963
  const { texts: { homeDashboard: r } } = B(ue), { dashboardConfig: o, onChangeDashboardConfig: a } = sl(s), l = $((m, h) => {
1964
1964
  var g, x;
@@ -2010,7 +2010,7 @@ const ml = (t) => (s) => {
2010
2010
  sm: yl,
2011
2011
  md: wl,
2012
2012
  lg: vl
2013
- }, rd = ({ children: t, color: e = "primary", size: s = "md", className: r }) => /* @__PURE__ */ n.jsx("span", { className: j(`luminus-badge badge bg-${e} ${r ?? ""}`, Rn.badge, Rn[s]), children: t }), bl = "_collapse-icon_1ahhn_1", _l = "_collapsed_1ahhn_6", An = {
2013
+ }, sd = ({ children: t, color: e = "primary", size: s = "md", className: r }) => /* @__PURE__ */ n.jsx("span", { className: j(`luminus-badge badge bg-${e} ${r ?? ""}`, Rn.badge, Rn[s]), children: t }), bl = "_collapse-icon_1ahhn_1", _l = "_collapsed_1ahhn_6", An = {
2014
2014
  "collapse-icon": "_collapse-icon_1ahhn_1",
2015
2015
  collapseIcon: bl,
2016
2016
  collapsed: _l
@@ -2028,10 +2028,10 @@ const ml = (t) => (s) => {
2028
2028
  /* @__PURE__ */ n.jsx(bs, { in: i, children: /* @__PURE__ */ n.jsx("div", { children: e }) }),
2029
2029
  /* @__PURE__ */ n.jsx("hr", { className: `my-0 ${i ? "mt-3" : ""}` })
2030
2030
  ] });
2031
- }, Cl = "_feedback_esh1j_1", kl = "_feedback-spacer_esh1j_8", Bn = {
2032
- feedback: Cl,
2031
+ }, kl = "_feedback_esh1j_1", Cl = "_feedback-spacer_esh1j_8", Bn = {
2032
+ feedback: kl,
2033
2033
  "feedback-spacer": "_feedback-spacer_esh1j_8",
2034
- feedbackSpacer: kl
2034
+ feedbackSpacer: Cl
2035
2035
  }, Fe = ({ message: t }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2036
2036
  /* @__PURE__ */ n.jsx("div", { className: j("invalid-feedback luminus-invalid-feedback", Bn.feedback), children: t }),
2037
2037
  /* @__PURE__ */ n.jsx("div", { className: j("invalid-feedback-spacer", Bn.feedbackSpacer), children: t })
@@ -2049,30 +2049,30 @@ function $l(t, e, s) {
2049
2049
  };
2050
2050
  }, []);
2051
2051
  var f = q(function() {
2052
- var C = function(F) {
2052
+ var k = function(F) {
2053
2053
  var b = i.current, D = c.current;
2054
2054
  return i.current = c.current = null, a.current = F, d.current = u.current.apply(D, b);
2055
2055
  }, v = function(F, b) {
2056
2056
  g && cancelAnimationFrame(l.current), l.current = g ? requestAnimationFrame(F) : setTimeout(F, b);
2057
- }, k = function(F) {
2057
+ }, C = function(F) {
2058
2058
  if (!m.current) return !1;
2059
2059
  var b = F - o.current;
2060
2060
  return !o.current || b >= e || b < 0 || p && F - a.current >= N;
2061
2061
  }, _ = function(F) {
2062
- return l.current = null, y && i.current ? C(F) : (i.current = c.current = null, d.current);
2062
+ return l.current = null, y && i.current ? k(F) : (i.current = c.current = null, d.current);
2063
2063
  }, E = function F() {
2064
2064
  var b = Date.now();
2065
- if (k(b)) return _(b);
2065
+ if (C(b)) return _(b);
2066
2066
  if (m.current) {
2067
2067
  var D = e - (b - o.current), R = p ? Math.min(D, N - (b - a.current)) : D;
2068
2068
  v(F, R);
2069
2069
  }
2070
2070
  }, S = function() {
2071
2071
  if (h || w) {
2072
- var F = Date.now(), b = k(F);
2072
+ var F = Date.now(), b = C(F);
2073
2073
  if (i.current = [].slice.call(arguments), c.current = r, o.current = F, b) {
2074
- if (!l.current && m.current) return a.current = o.current, v(E, e), x ? C(o.current) : d.current;
2075
- if (p) return v(E, e), C(o.current);
2074
+ if (!l.current && m.current) return a.current = o.current, v(E, e), x ? k(o.current) : d.current;
2075
+ if (p) return v(E, e), k(o.current);
2076
2076
  }
2077
2077
  return l.current || v(E, e), d.current;
2078
2078
  }
@@ -2122,12 +2122,12 @@ const Dl = "_wrapper_uccrb_1", Fl = "_open_uccrb_9", El = "_dropdown_uccrb_13",
2122
2122
  clearButton: Wl
2123
2123
  }, rn = ({ show: t, onCancel: e, items: s, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: l, itemsNameWidth: i, additionalColumns: c, displayIdAsName: d = !1, autoHideSearch: u = !1, allItemsLength: m, disabled: h, isLoading: g = !1, inputRef: x }) => {
2124
2124
  var W;
2125
- const y = Y(null), p = Y(null), w = Y(null), N = Y(null), [f, C] = I(""), [v] = vr(f, 500), [, k] = I(!1), _ = (W = x.current) == null ? void 0 : W.getBoundingClientRect(), E = (_ == null ? void 0 : _.x) ?? 0, S = ((_ == null ? void 0 : _.x) ?? 0) + ((_ == null ? void 0 : _.width) ?? 0), F = (_ == null ? void 0 : _.y) ?? 0, b = ((_ == null ? void 0 : _.y) ?? 0) + ((_ == null ? void 0 : _.height) ?? 0), D = (_ == null ? void 0 : _.width) ?? 0, R = (_ == null ? void 0 : _.height) ?? 0, H = 5, Q = q(() => E ? E > window.innerWidth / 2 : !1, [E]), X = q(() => F ? F > window.innerHeight / 2 : !1, [F]);
2125
+ const y = Y(null), p = Y(null), w = Y(null), N = Y(null), [f, k] = I(""), [v] = vr(f, 500), [, C] = I(!1), _ = (W = x.current) == null ? void 0 : W.getBoundingClientRect(), E = (_ == null ? void 0 : _.x) ?? 0, S = ((_ == null ? void 0 : _.x) ?? 0) + ((_ == null ? void 0 : _.width) ?? 0), F = (_ == null ? void 0 : _.y) ?? 0, b = ((_ == null ? void 0 : _.y) ?? 0) + ((_ == null ? void 0 : _.height) ?? 0), D = (_ == null ? void 0 : _.width) ?? 0, R = (_ == null ? void 0 : _.height) ?? 0, H = 5, Q = q(() => E ? E > window.innerWidth / 2 : !1, [E]), X = q(() => F ? F > window.innerHeight / 2 : !1, [F]);
2126
2126
  O(() => {
2127
2127
  var A;
2128
2128
  t && ((A = w.current) == null || A.focus());
2129
2129
  }, [w, t]), O(() => {
2130
- t || C("");
2130
+ t || k("");
2131
2131
  }, [t]), O(() => {
2132
2132
  a(v);
2133
2133
  }, [v, a]);
@@ -2172,7 +2172,7 @@ const Dl = "_wrapper_uccrb_1", Fl = "_open_uccrb_9", El = "_dropdown_uccrb_13",
2172
2172
  break;
2173
2173
  }
2174
2174
  }, [e, t, T, ee, h, o]), de = $(() => {
2175
- k((A) => !A);
2175
+ C((A) => !A);
2176
2176
  }, []);
2177
2177
  O(() => (window.addEventListener("scroll", de), () => {
2178
2178
  window.removeEventListener("scroll", de);
@@ -2197,7 +2197,7 @@ const Dl = "_wrapper_uccrb_1", Fl = "_open_uccrb_9", El = "_dropdown_uccrb_13",
2197
2197
  }, children: /* @__PURE__ */ n.jsx("div", { ref: y, className: j("shadow rounded", fe.dropdown), children: !h && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2198
2198
  u && (m ?? s.length) <= H ? null : /* @__PURE__ */ n.jsx("div", { className: j("search-input-container border-bottom", fe.searchInputContainer), children: /* @__PURE__ */ n.jsx(ae.Control, { ref: w, type: "search", size: "sm", className: fe.searchInput, placeholder: l.searchPlaceholder, value: f, onChange: (A) => {
2199
2199
  var ne;
2200
- return C(((ne = A.target) == null ? void 0 : ne.value) ?? "");
2200
+ return k(((ne = A.target) == null ? void 0 : ne.value) ?? "");
2201
2201
  } }) }),
2202
2202
  g ? /* @__PURE__ */ n.jsx("div", { className: fe.loadingContainer, children: /* @__PURE__ */ n.jsx(sn, { animation: "border", variant: "primary" }) }) : s.length > 0 && /* @__PURE__ */ n.jsxs("div", { ref: N, className: j("items", fe.itemsContainer), children: [
2203
2203
  c && c.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: j("header-row border-bottom", fe.headerRow), children: [
@@ -2245,7 +2245,7 @@ const Vl = "_item_1dy8x_1", Nr = {
2245
2245
  }) => /* @__PURE__ */ n.jsxs(nt.Item, { className: j(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${s ?? ""}`, Nr.item), ...o, children: [
2246
2246
  e,
2247
2247
  r
2248
- ] }), Cr = (t) => /* @__PURE__ */ n.jsx(nt.Toggle, { ...t }), od = ({ color: t = "primary", icon: e = /* @__PURE__ */ n.jsx(os, { size: 12 }), inputId: s = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: l, children: i, ...c }) => {
2248
+ ] }), kr = (t) => /* @__PURE__ */ n.jsx(nt.Toggle, { ...t }), rd = ({ color: t = "primary", icon: e = /* @__PURE__ */ n.jsx(os, { size: 12 }), inputId: s = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: l, children: i, ...c }) => {
2249
2249
  const d = (u) => {
2250
2250
  u.target.files && (o(u.target.files), u.target.value = "");
2251
2251
  };
@@ -2258,12 +2258,12 @@ const Vl = "_item_1dy8x_1", Nr = {
2258
2258
  ] });
2259
2259
  }, Ul = "_divider_1e6rk_1", Gl = {
2260
2260
  divider: Ul
2261
- }, ad = ({ className: t }) => /* @__PURE__ */ n.jsx(nt.Divider, { className: j("luminus-dropdown-divider", t, Gl.divider) }), Yl = "_dropdown_1lk66_1", Kl = {
2261
+ }, od = ({ className: t }) => /* @__PURE__ */ n.jsx(nt.Divider, { className: j("luminus-dropdown-divider", t, Gl.divider) }), Yl = "_dropdown_1lk66_1", Kl = {
2262
2262
  dropdown: Yl
2263
- }, kr = ({ toggle: t, children: e, ...s }) => /* @__PURE__ */ n.jsxs(nt, { ...s, children: [
2263
+ }, Cr = ({ toggle: t, children: e, ...s }) => /* @__PURE__ */ n.jsxs(nt, { ...s, children: [
2264
2264
  t,
2265
2265
  /* @__PURE__ */ n.jsx(nt.Menu, { className: j("luminus-dropdown rounded shadow", Kl.dropdown), children: e })
2266
- ] }), ql = ({ searchTypes: t, selectedType: e, setSelectedType: s }) => /* @__PURE__ */ n.jsx(kr, { toggle: /* @__PURE__ */ n.jsx(Cr, { as: ho, icon: null, text: e == null ? void 0 : e.text }), children: t.map((r) => /* @__PURE__ */ n.jsx(on, { icon: null, onClick: () => s(r.key), children: r.text }, r.key)) }), Ql = "_dropdown_1ddrg_1", Zl = "_open_1ddrg_12", Jl = "_loading-container_1ddrg_15", Xl = "_groups-container_1ddrg_22", ec = "_group_1ddrg_22", tc = "_header_1ddrg_26", nc = "_item_1ddrg_33", Ee = {
2266
+ ] }), ql = ({ searchTypes: t, selectedType: e, setSelectedType: s }) => /* @__PURE__ */ n.jsx(Cr, { toggle: /* @__PURE__ */ n.jsx(kr, { as: ho, icon: null, text: e == null ? void 0 : e.text }), children: t.map((r) => /* @__PURE__ */ n.jsx(on, { icon: null, onClick: () => s(r.key), children: r.text }, r.key)) }), Ql = "_dropdown_1ddrg_1", Zl = "_open_1ddrg_12", Jl = "_loading-container_1ddrg_15", Xl = "_groups-container_1ddrg_22", ec = "_group_1ddrg_22", tc = "_header_1ddrg_26", nc = "_item_1ddrg_33", Ee = {
2267
2267
  dropdown: Ql,
2268
2268
  open: Zl,
2269
2269
  "loading-container": "_loading-container_1ddrg_15",
@@ -2334,7 +2334,7 @@ const Vl = "_item_1dy8x_1", Nr = {
2334
2334
  return O(() => {
2335
2335
  c();
2336
2336
  }, [c]), { isLoading: r, searchItems: a };
2337
- }, ld = ({ searchTypes: t, navigateFunction: e, currentPath: s }) => {
2337
+ }, ad = ({ searchTypes: t, navigateFunction: e, currentPath: s }) => {
2338
2338
  var y;
2339
2339
  const { texts: { appSearch: r } } = B(ue), [o, a] = I(t.length > 0 ? ((y = t.at(0)) == null ? void 0 : y.key) ?? null : null), l = q(() => t.find((p) => p.key === o) ?? null, [t, o]), [i, c] = I(""), [d, u] = vr(i, 500), { isLoading: m, searchItems: h } = dc(l, d), [g, x] = I(!1);
2340
2340
  return O(() => {
@@ -2444,11 +2444,11 @@ var Nc = /* @__PURE__ */ function() {
2444
2444
  return s && t(e.prototype, s), r && t(e, r), e;
2445
2445
  };
2446
2446
  }();
2447
- function Cc(t, e) {
2447
+ function kc(t, e) {
2448
2448
  if (!(t instanceof e))
2449
2449
  throw new TypeError("Cannot call a class as a function");
2450
2450
  }
2451
- function kc(t, e) {
2451
+ function Cc(t, e) {
2452
2452
  if (!t)
2453
2453
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2454
2454
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
@@ -2461,7 +2461,7 @@ function $c(t, e) {
2461
2461
  var Sr = function(t) {
2462
2462
  $c(e, t);
2463
2463
  function e() {
2464
- return Cc(this, e), kc(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
2464
+ return kc(this, e), Cc(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
2465
2465
  }
2466
2466
  return Nc(e, [{
2467
2467
  key: "componentDidMount",
@@ -2529,10 +2529,10 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2529
2529
  const N = $((f) => {
2530
2530
  switch (f.key) {
2531
2531
  case "ArrowLeft":
2532
- f.stopPropagation(), p && x((C) => C - 1);
2532
+ f.stopPropagation(), p && x((k) => k - 1);
2533
2533
  break;
2534
2534
  case "ArrowRight":
2535
- f.stopPropagation(), w && x((C) => C + 1);
2535
+ f.stopPropagation(), w && x((k) => k + 1);
2536
2536
  break;
2537
2537
  case "Escape":
2538
2538
  f.stopPropagation(), e();
@@ -2549,14 +2549,14 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2549
2549
  l && /* @__PURE__ */ n.jsx(wr, { accept: ".jpg,.jpeg,.png", onUpload: (f) => {
2550
2550
  f.length > 0 && l(Array.from(f));
2551
2551
  }, icon: /* @__PURE__ */ n.jsx(cs, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
2552
- y && (i == null ? void 0 : i.map(({ label: f, onClick: C, ...v }, k) => /* @__PURE__ */ n.jsx(
2552
+ y && (i == null ? void 0 : i.map(({ label: f, onClick: k, ...v }, C) => /* @__PURE__ */ n.jsx(
2553
2553
  jt,
2554
2554
  {
2555
- onClick: () => C(y.id),
2555
+ onClick: () => k(y.id),
2556
2556
  ...v,
2557
2557
  children: f
2558
2558
  },
2559
- `action-${k}`
2559
+ `action-${C}`
2560
2560
  )))
2561
2561
  ] }),
2562
2562
  /* @__PURE__ */ n.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ n.jsx(we, { style: { fontSize: "32px" } }) })
@@ -2567,9 +2567,9 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2567
2567
  /* @__PURE__ */ n.jsx(m, { src: y.lgSrc, alt: y.alt, className: j("rounded", ge.photo), baseUrl: c, customToken: d, placeholder: u }),
2568
2568
  /* @__PURE__ */ n.jsx("div", { role: w ? "button" : void 0, className: j("align-items-end", ge.navButton), onClick: () => w && x((f) => f + 1), children: w && /* @__PURE__ */ n.jsx(Gt, { style: { fontSize: "40px" } }) })
2569
2569
  ] }),
2570
- /* @__PURE__ */ n.jsx("div", { className: ge.photosPreview, children: s.map((f, C) => /* @__PURE__ */ n.jsxs("div", { role: "button", onClick: () => x(C), className: "position-relative", children: [
2571
- /* @__PURE__ */ n.jsx(m, { role: C !== g ? "button" : void 0, src: f.smSrc, alt: f.alt, className: j("rounded", ge.photo, {
2572
- [ge.selected]: C === g
2570
+ /* @__PURE__ */ n.jsx("div", { className: ge.photosPreview, children: s.map((f, k) => /* @__PURE__ */ n.jsxs("div", { role: "button", onClick: () => x(k), className: "position-relative", children: [
2571
+ /* @__PURE__ */ n.jsx(m, { role: k !== g ? "button" : void 0, src: f.smSrc, alt: f.alt, className: j("rounded", ge.photo, {
2572
+ [ge.selected]: k === g
2573
2573
  }), baseUrl: c, customToken: d, placeholder: u }, f.id),
2574
2574
  f.isDefault && /* @__PURE__ */ n.jsx("div", { className: j("text-primary", ge.defaultIndicator), children: /* @__PURE__ */ n.jsx(xo, {}) })
2575
2575
  ] })) })
@@ -2590,7 +2590,7 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2590
2590
  ] }) : e ? /* @__PURE__ */ n.jsx(wr, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
2591
2591
  g.length > 0 && e(Array.from(g));
2592
2592
  }, icon: /* @__PURE__ */ n.jsx(cs, { style: { fontSize: 18 } }), multiple: !0, children: s ?? null }) : null;
2593
- }, cd = ({ children: t }) => {
2593
+ }, ld = ({ children: t }) => {
2594
2594
  var i, c, d;
2595
2595
  const { useMsal: e, msalScopes: s } = B(jo), { isAuthenticated: r } = yo(), { userLoginState: o } = B(is), a = o.state === wo.LOGGING_IN, l = o.user && ((i = o.user) == null ? void 0 : i.permissions) && ((d = (c = o.user) == null ? void 0 : c.permissions) == null ? void 0 : d.length) > 0;
2596
2596
  return e ? /* @__PURE__ */ n.jsx(Bo, { interactionType: Ao.Redirect, authenticationRequest: { scopes: s }, children: a || !r() ? /* @__PURE__ */ n.jsx(yn, {}) : o.user ? l ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : /* @__PURE__ */ n.jsx(it, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ n.jsx(it, { to: "/no-user-login", replace: !0 }) }) : a ? /* @__PURE__ */ n.jsx(yn, {}) : !r() || !o.user ? /* @__PURE__ */ n.jsx(it, { to: "/login", replace: !0 }) : l ? t : /* @__PURE__ */ n.jsx(it, { to: "/user-not-permitted", replace: !0 });
@@ -2626,7 +2626,7 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2626
2626
  !r && /* @__PURE__ */ n.jsx("div", { className: j(Et.typeIcon), children: s ?? a() }),
2627
2627
  /* @__PURE__ */ n.jsx(V, { variant: "body2", className: "w-100", children: e })
2628
2628
  ] });
2629
- }, id = ({ version: t }) => /* @__PURE__ */ n.jsx("div", { className: "rounded", style: {
2629
+ }, cd = ({ version: t }) => /* @__PURE__ */ n.jsx("div", { className: "rounded", style: {
2630
2630
  position: "fixed",
2631
2631
  right: "0px",
2632
2632
  bottom: "0px",
@@ -2658,7 +2658,7 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2658
2658
  contentText: si,
2659
2659
  "step-icon": "_step-icon_g1754_14",
2660
2660
  stepIcon: ri
2661
- }, dd = ({ steps: t }) => /* @__PURE__ */ n.jsx("div", { className: Me.timeline, children: t.sort((e, s) => Ko(e.date ?? /* @__PURE__ */ new Date(), s.date ?? /* @__PURE__ */ new Date())).map((e, s) => /* @__PURE__ */ n.jsxs("div", { className: j("row g-0 gx-3", Me.stepContainer), children: [
2661
+ }, id = ({ steps: t }) => /* @__PURE__ */ n.jsx("div", { className: Me.timeline, children: t.sort((e, s) => Ko(e.date ?? /* @__PURE__ */ new Date(), s.date ?? /* @__PURE__ */ new Date())).map((e, s) => /* @__PURE__ */ n.jsxs("div", { className: j("row g-0 gx-3", Me.stepContainer), children: [
2662
2662
  /* @__PURE__ */ n.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ n.jsxs(V, { variant: "caption", className: j("h-100 d-flex flex-column align-items-end justify-content-center gap-0", Me.stepDate), children: [
2663
2663
  /* @__PURE__ */ n.jsx("div", { children: Xe(e.date, "dd.MM.yyyy") }),
2664
2664
  /* @__PURE__ */ n.jsx("div", { children: Xe(e.date, "HH:mm") })
@@ -2710,26 +2710,26 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2710
2710
  return;
2711
2711
  const b = h ?? null;
2712
2712
  r(w ? b ? Number(b) : null : (b == null ? void 0 : b.toString()) ?? "");
2713
- }, [h, w, r]), f = Y(null), [C, v] = I((s == null ? void 0 : s.toString()) ?? ""), k = $((b) => {
2713
+ }, [h, w, r]), f = Y(null), [k, v] = I((s == null ? void 0 : s.toString()) ?? ""), C = $((b) => {
2714
2714
  const D = b;
2715
2715
  r && (w && r(D == null || D === "" ? null : Number(D)), r(D || null));
2716
2716
  }, [w, r]), _ = $((b) => {
2717
2717
  var R;
2718
2718
  const D = (R = b.target) == null ? void 0 : R.value;
2719
2719
  if (!o) {
2720
- k(D);
2720
+ C(D);
2721
2721
  return;
2722
2722
  }
2723
2723
  v(D), f.current !== null && window.clearTimeout(f.current), f.current = window.setTimeout(() => {
2724
- k(D);
2724
+ C(D);
2725
2725
  }, o);
2726
- }, [o, k]);
2726
+ }, [o, C]);
2727
2727
  O(() => {
2728
2728
  v(s === null ? "" : s.toString());
2729
2729
  }, [s]);
2730
2730
  const [E, S] = I(!1), F = ys(e, s ? s.toString() ?? null : null, E);
2731
2731
  return /* @__PURE__ */ n.jsxs(t, { withoutLabel: l, label: a ?? "", hidden: d, className: x, children: [
2732
- /* @__PURE__ */ n.jsx(ae.Control, { type: F, placeholder: i ?? a, size: c, value: o ? C : (s == null ? void 0 : s.toString()) ?? "", onChange: _, className: x ?? "", hidden: d, disabled: u ?? !1, list: g, onFocus: (b) => {
2732
+ /* @__PURE__ */ n.jsx(ae.Control, { type: F, placeholder: i ?? a, size: c, value: o ? k : (s == null ? void 0 : s.toString()) ?? "", onChange: _, className: x ?? "", hidden: d, disabled: u ?? !1, list: g, onFocus: (b) => {
2733
2733
  S(!0), !p && b.target.select();
2734
2734
  }, onBlur: () => S(!1), step: y }),
2735
2735
  m && s !== null && r && !u && /* @__PURE__ */ n.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: N, children: /* @__PURE__ */ n.jsx(we, {}) }) })
@@ -2771,16 +2771,16 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2771
2771
  ] }),
2772
2772
  u && e && r && !d && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ n.jsx(we, {}) }) })
2773
2773
  ] });
2774
- }, ud = ({ InputContainer: t = He, items: e, defaultSelection: s, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: l, isNumber: i, onSelect: c, label: d, withoutLabel: u, size: m, dropdownItemsNameWidth: h, additionalColumns: g, hidden: x, disabled: y, displayIdAsName: p, CustomOnChangeComponent: w, className: N }) => {
2774
+ }, dd = ({ InputContainer: t = He, items: e, defaultSelection: s, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: l, isNumber: i, onSelect: c, label: d, withoutLabel: u, size: m, dropdownItemsNameWidth: h, additionalColumns: g, hidden: x, disabled: y, displayIdAsName: p, CustomOnChangeComponent: w, className: N }) => {
2775
2775
  var D, R;
2776
- const [f, C] = I(s), [v, k] = I(!1);
2776
+ const [f, k] = I(s), [v, C] = I(!1);
2777
2777
  O(() => {
2778
- C(s);
2778
+ k(s);
2779
2779
  }, [s]);
2780
2780
  const _ = $((H) => {
2781
- C(H);
2781
+ k(H);
2782
2782
  }, []), E = $((H) => {
2783
- k(!1), _(H);
2783
+ C(!1), _(H);
2784
2784
  }, [_]);
2785
2785
  O(() => {
2786
2786
  c && c(f);
@@ -2789,13 +2789,13 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2789
2789
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(t, { withoutLabel: u, label: d ?? "", hidden: x, inputContainerClassName: j({ "luminus-dropdown-select-open": v }), className: N, children: [
2790
2790
  /* @__PURE__ */ n.jsxs(Er, { currentSelection: f, selectedItemNavigateTo: r, children: [
2791
2791
  p && (f == null ? void 0 : f.name) && /* @__PURE__ */ n.jsx(V, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: f.name }),
2792
- /* @__PURE__ */ n.jsxs(ae.Select, { ref: S, size: m, value: (f == null ? void 0 : f.id) ?? "", onChange: (H) => C({
2792
+ /* @__PURE__ */ n.jsxs(ae.Select, { ref: S, size: m, value: (f == null ? void 0 : f.id) ?? "", onChange: (H) => k({
2793
2793
  id: i ? Number(H.target.value) ?? null : H.target.value,
2794
2794
  name: ""
2795
2795
  }), onMouseDown: (H) => {
2796
2796
  H.currentTarget.focus(), H.preventDefault();
2797
2797
  }, onClick: () => {
2798
- !F && !y && k(!0);
2798
+ !F && !y && C(!0);
2799
2799
  }, className: j("w-100", {
2800
2800
  "luminus-dropdown-picker-disabled": y,
2801
2801
  "luminus-dropdown-picker-link": b
@@ -2806,31 +2806,31 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2806
2806
  ] }),
2807
2807
  w || !y && F ? /* @__PURE__ */ n.jsxs("div", { className: "custom-picker-button", children: [
2808
2808
  !w && !y && F && /* @__PURE__ */ n.jsx(U, { size: "sm", color: "secondary", onClick: (H) => {
2809
- H.preventDefault(), H.stopPropagation(), k(!0);
2809
+ H.preventDefault(), H.stopPropagation(), C(!0);
2810
2810
  }, children: /* @__PURE__ */ n.jsx(us, {}) }),
2811
2811
  w ?? null
2812
2812
  ] }) : null
2813
2813
  ] }),
2814
- S.current && /* @__PURE__ */ n.jsx(rn, { show: v, onCancel: () => k(!1), items: e, currentSelection: f, onSelectionChange: E, onSearchQueryChange: o, texts: a, itemsNameWidth: h, additionalColumns: g, isLoading: l, disabled: y, inputRef: S })
2814
+ S.current && /* @__PURE__ */ n.jsx(rn, { show: v, onCancel: () => C(!1), items: e, currentSelection: f, onSelectionChange: E, onSearchQueryChange: o, texts: a, itemsNameWidth: h, additionalColumns: g, isLoading: l, disabled: y, inputRef: S })
2815
2815
  ] }) });
2816
- }, fd = ({ InputContainer: t = He, value: e, onChange: s, label: r, size: o, showClearIcon: a, clearValue: l, hidden: i, disabled: c, rows: d, withoutLabel: u, debounceMs: m, className: h }) => {
2816
+ }, ud = ({ InputContainer: t = He, value: e, onChange: s, label: r, size: o, showClearIcon: a, clearValue: l, hidden: i, disabled: c, rows: d, withoutLabel: u, debounceMs: m, className: h }) => {
2817
2817
  const g = $(() => {
2818
2818
  if (!s)
2819
2819
  return;
2820
2820
  const f = l ?? null;
2821
2821
  s((f == null ? void 0 : f.toString()) ?? "");
2822
2822
  }, [l, s]), x = Y(null), [y, p] = I((e == null ? void 0 : e.toString()) ?? ""), w = $((f) => {
2823
- const C = f;
2824
- s && s(C || null);
2823
+ const k = f;
2824
+ s && s(k || null);
2825
2825
  }, [s]), N = $((f) => {
2826
2826
  var v;
2827
- const C = (v = f.target) == null ? void 0 : v.value;
2827
+ const k = (v = f.target) == null ? void 0 : v.value;
2828
2828
  if (!m) {
2829
- w(C);
2829
+ w(k);
2830
2830
  return;
2831
2831
  }
2832
- p(C), x.current !== null && window.clearTimeout(x.current), x.current = window.setTimeout(() => {
2833
- w(C);
2832
+ p(k), x.current !== null && window.clearTimeout(x.current), x.current = window.setTimeout(() => {
2833
+ w(k);
2834
2834
  }, m);
2835
2835
  }, [m, w]);
2836
2836
  return O(() => {
@@ -2839,30 +2839,30 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2839
2839
  /* @__PURE__ */ n.jsx(ae.Control, { as: "textarea", size: o, value: m ? y : e ?? "", onChange: N, hidden: i, disabled: c, rows: d ?? 2, className: "w-100" }),
2840
2840
  a && e && s && !c && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ n.jsx(we, {}) }) })
2841
2841
  ] });
2842
- }, md = ({ InputContainer: t = He, value: e, onChange: s, debounceMs: r, label: o, withoutLabel: a, placeholder: l, size: i, hidden: c, disabled: d, showClearIcon: u, clearValue: m, className: h, step: g, stepperStep: x = 1 }) => {
2842
+ }, fd = ({ InputContainer: t = He, value: e, onChange: s, debounceMs: r, label: o, withoutLabel: a, placeholder: l, size: i, hidden: c, disabled: d, showClearIcon: u, clearValue: m, className: h, step: g, stepperStep: x = 1 }) => {
2843
2843
  const y = $(() => {
2844
2844
  if (!s)
2845
2845
  return;
2846
2846
  const v = m ?? null;
2847
2847
  s(v ? Number(v) : null);
2848
2848
  }, [m, s]), p = Y(null), [w, N] = I((e == null ? void 0 : e.toString()) ?? ""), f = $((v) => {
2849
- const k = v;
2850
- s && s(k == null || k === "" ? null : Number(k));
2851
- }, [s]), C = $((v) => {
2849
+ const C = v;
2850
+ s && s(C == null || C === "" ? null : Number(C));
2851
+ }, [s]), k = $((v) => {
2852
2852
  var _;
2853
- const k = (_ = v.target) == null ? void 0 : _.value;
2853
+ const C = (_ = v.target) == null ? void 0 : _.value;
2854
2854
  if (!r) {
2855
- f(k);
2855
+ f(C);
2856
2856
  return;
2857
2857
  }
2858
- N(k), p.current !== null && window.clearTimeout(p.current), p.current = window.setTimeout(() => {
2859
- f(k);
2858
+ N(C), p.current !== null && window.clearTimeout(p.current), p.current = window.setTimeout(() => {
2859
+ f(C);
2860
2860
  }, r);
2861
2861
  }, [r, f]);
2862
2862
  return O(() => {
2863
2863
  N(e === null ? "" : e.toString());
2864
2864
  }, [e]), /* @__PURE__ */ n.jsx(t, { withoutLabel: a, label: o ?? "", hidden: c, className: h, children: /* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
2865
- /* @__PURE__ */ n.jsx(ae.Control, { type: "number", placeholder: l ?? o, size: i, value: r ? w : e ?? "", onChange: C, className: `luminus-numeric-stepper ${h ?? ""}`, hidden: c, disabled: d ?? !1, step: g }),
2865
+ /* @__PURE__ */ n.jsx(ae.Control, { type: "number", placeholder: l ?? o, size: i, value: r ? w : e ?? "", onChange: k, className: `luminus-numeric-stepper ${h ?? ""}`, hidden: c, disabled: d ?? !1, step: g }),
2866
2866
  /* @__PURE__ */ n.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ n.jsx(U, { size: "sm", onClick: (v) => {
2867
2867
  v.preventDefault(), v.stopPropagation(), f(((e ?? 0) - x).toString());
2868
2868
  }, children: /* @__PURE__ */ n.jsx(br, {}) }) }),
@@ -2959,7 +2959,7 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2959
2959
  }), e(l);
2960
2960
  }, [s, e]);
2961
2961
  return { setFromToProp: r, handleArrowClick: o, handleRangeChange: a };
2962
- }, pd = ({ fromtoState: [t, e], className: s, size: r }) => {
2962
+ }, md = ({ fromtoState: [t, e], className: s, size: r }) => {
2963
2963
  const { texts: { date: o }, ProjectIconComponent: a } = B(ue), [l, i] = I("C"), { handleArrowClick: c, handleRangeChange: d, setFromToProp: u } = ui(l, i, e), m = q(() => l === "C", [l]), h = Y(!0);
2964
2964
  return O(() => {
2965
2965
  if (h.current) {
@@ -2972,24 +2972,24 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
2972
2972
  }, children: /* @__PURE__ */ n.jsx(a, { icon: "chevron-left" }) }),
2973
2973
  /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
2974
2974
  /* @__PURE__ */ n.jsx(Pe, { type: "date", value: t.from, onChange: (g) => u("from", g === null ? null : g.toString()), InputContainer: ye, size: r }),
2975
- /* @__PURE__ */ n.jsx(kr, { toggle: /* @__PURE__ */ n.jsx(Cr, { text: o[zn.find((g) => g[0] === l)[1]].substring(0, 1), as: bo }), children: zn.map((g) => /* @__PURE__ */ n.jsx(on, { disabled: g[0] === l, className: j(g[0] === l ? "text-black-50" : ""), onClick: () => d(g[0]), role: "button", children: o[g[1]] }, g[0])) }),
2975
+ /* @__PURE__ */ n.jsx(Cr, { toggle: /* @__PURE__ */ n.jsx(kr, { text: o[zn.find((g) => g[0] === l)[1]].substring(0, 1), as: bo }), children: zn.map((g) => /* @__PURE__ */ n.jsx(on, { disabled: g[0] === l, className: j(g[0] === l ? "text-black-50" : ""), onClick: () => d(g[0]), role: "button", children: o[g[1]] }, g[0])) }),
2976
2976
  /* @__PURE__ */ n.jsx(Pe, { type: "date", value: t.to, onChange: (g) => u("to", g === null ? null : g.toString()), InputContainer: ye, size: r })
2977
2977
  ] }) }),
2978
2978
  /* @__PURE__ */ n.jsx(U, { disabled: m, onClick: () => {
2979
2979
  c(1);
2980
2980
  }, children: /* @__PURE__ */ n.jsx(a, { icon: "chevron-right" }) })
2981
2981
  ] });
2982
- }, hd = ({ defaultMonth: t, searchKey: e = "monthFrom", yearMin: s, yearMax: r }) => {
2982
+ }, pd = ({ defaultMonth: t, searchKey: e = "monthFrom", yearMin: s, yearMax: r }) => {
2983
2983
  const { localizationContext: o } = B(ue), { dateFnsLocale: a } = B(o), { searchParams: l, setSearch: i } = Wo(), c = l.get(e), d = c ? et(c) : t, u = $((m) => {
2984
2984
  i(e, At(m, { representation: "date" }));
2985
2985
  }, [e, i]);
2986
2986
  return /* @__PURE__ */ n.jsx(Qa, { month: d, onChangeMonth: u, locale: a, yearMin: s, yearMax: r });
2987
- }, gd = ({ defaultYear: t, searchKey: e = "yearFrom", optionMin: s, optionMax: r, className: o }) => {
2987
+ }, hd = ({ defaultYear: t, searchKey: e = "yearFrom", optionMin: s, optionMax: r, className: o }) => {
2988
2988
  const [a, l] = zo(e, At(t, { representation: "date" })), i = a ? et(a) : t, c = $((d) => {
2989
2989
  l(At(d, { representation: "date" }));
2990
2990
  }, [l]);
2991
2991
  return /* @__PURE__ */ n.jsx(Xa, { year: i, onChangeYear: c, optionMin: s, optionMax: r, className: o });
2992
- }, xd = ({ data: t, showLegend: e = !1, legendPosition: s = "left" }) => {
2992
+ }, gd = ({ data: t, showLegend: e = !1, legendPosition: s = "left" }) => {
2993
2993
  const { chartColorPalette: r } = B(ue);
2994
2994
  return /* @__PURE__ */ n.jsx(_o, { data: t, margin: {
2995
2995
  top: 50,
@@ -3077,8 +3077,8 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
3077
3077
  stickyLast: _i,
3078
3078
  "sticky-bottom": "_sticky-bottom_1klfy_68",
3079
3079
  stickyBottom: Ni
3080
- }, Ci = "_input_13mhy_1", Ae = {
3081
- input: Ci
3080
+ }, ki = "_input_13mhy_1", Ae = {
3081
+ input: ki
3082
3082
  }, Mr = ({ type: t, value: e, field: s, isPrimary: r, isReadonly: o, primaryEditable: a = !1, valuesForSelect: l, onChangeHandler: i, hideClearIcon: c, clearValue: d }) => {
3083
3083
  switch (t) {
3084
3084
  case "NUM":
@@ -3095,7 +3095,7 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
3095
3095
  t
3096
3096
  ] }) });
3097
3097
  }
3098
- }, ki = ({ schema: t, columns: e, initialItem: s, onEdit: r, onDelete: o }) => {
3098
+ }, Ci = ({ schema: t, columns: e, initialItem: s, onEdit: r, onDelete: o }) => {
3099
3099
  const { ProjectIconComponent: a } = B(ue), [l, i] = I(s), c = $((m, h) => {
3100
3100
  console.log("changeValue", m, h), i((g) => ({
3101
3101
  ...g,
@@ -3191,7 +3191,7 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
3191
3191
  ] })
3192
3192
  ] }),
3193
3193
  /* @__PURE__ */ n.jsxs("tbody", { className: j("table-body", J.tableBody), children: [
3194
- e.filter((x) => x[t.primaryKey ?? ""]).map((x) => /* @__PURE__ */ n.jsx(ki, { schema: t, columns: h, initialItem: x, onEdit: s, onDelete: r }, `${t.id}-${x[t.primaryKey ?? ""].value}`)),
3194
+ e.filter((x) => x[t.primaryKey ?? ""]).map((x) => /* @__PURE__ */ n.jsx(Ci, { schema: t, columns: h, initialItem: x, onEdit: s, onDelete: r }, `${t.id}-${x[t.primaryKey ?? ""].value}`)),
3195
3195
  /* @__PURE__ */ n.jsx($i, { schema: t, columns: h, onCreate: o })
3196
3196
  ] })
3197
3197
  ] });
@@ -3205,21 +3205,21 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
3205
3205
  apiItemPost: "/dynamicForms/update",
3206
3206
  apiItemDelete: "/dynamicForms/delete",
3207
3207
  apiItemCreate: "/dynamicForms/insert"
3208
- }, jd = ({ id: t, page: e, setPage: s, filters: r, setFilter: o, sortByField: a, sortByType: l, setSortBy: i, appUrls: { appDetail: c = Yn.appDetail } = Yn, apiUrls: { apiSchemaGet: d = Be.apiSchemaGet, apiDataGet: u = Be.apiDataGet, apiItemPost: m = Be.apiItemPost, apiItemDelete: h = Be.apiItemDelete, apiItemCreate: g = Be.apiItemCreate } = Be }) => {
3208
+ }, xd = ({ id: t, page: e, setPage: s, filters: r, setFilter: o, sortByField: a, sortByType: l, setSortBy: i, appUrls: { appDetail: c = Yn.appDetail } = Yn, apiUrls: { apiSchemaGet: d = Be.apiSchemaGet, apiDataGet: u = Be.apiDataGet, apiItemPost: m = Be.apiItemPost, apiItemDelete: h = Be.apiItemDelete, apiItemCreate: g = Be.apiItemCreate } = Be }) => {
3209
3209
  var cn, dn, un, fn, mn, pn;
3210
- const { texts: { dynamicForms: x }, ProjectIconComponent: y } = B(ue), p = st(), { startLoading: w, stopLoading: N } = B(fs), [f, C] = I(null), [v, k] = I(null), [_, E] = I(null), [S, F] = I(null), [b, D] = I(!1), { addNotification: R } = No(), [H, Q] = I([]), { confirm: X } = Uo(), L = 20, Z = L + 1, ee = S ? Math.ceil(S.length / L) : 1, te = e ? e > 1 : !1, T = e ? e < ee : !1, re = e ? (e - 1) * L : 0, de = e ? e * L : L, [pe, le] = I(!1), xe = pe ? S == null ? void 0 : S.slice(re, de) : S, [W, A] = I(null);
3210
+ const { texts: { dynamicForms: x }, ProjectIconComponent: y } = B(ue), p = st(), { startLoading: w, stopLoading: N } = B(fs), [f, k] = I(null), [v, C] = I(null), [_, E] = I(null), [S, F] = I(null), [b, D] = I(!1), { addNotification: R } = No(), [H, Q] = I([]), { confirm: X } = Uo(), L = 20, Z = L + 1, ee = S ? Math.ceil(S.length / L) : 1, te = e ? e > 1 : !1, T = e ? e < ee : !1, re = e ? (e - 1) * L : 0, de = e ? e * L : L, [pe, le] = I(!1), xe = pe ? S == null ? void 0 : S.slice(re, de) : S, [W, A] = I(null);
3211
3211
  O(() => {
3212
- C(null), k(null), D(!1), Q([]), A(null);
3212
+ k(null), C(null), D(!1), Q([]), A(null);
3213
3213
  }, [t]);
3214
3214
  const ne = $(async () => {
3215
3215
  w("dynamicFormSchema"), await p.get(`${d}?id=${t}`).then(({ data: P }) => {
3216
- C(P), N("dynamicFormSchema");
3216
+ k(P), N("dynamicFormSchema");
3217
3217
  }).catch(() => N("dynamicFormSchema"));
3218
3218
  }, [p, t, w, N, d]), me = $(async () => {
3219
3219
  var P;
3220
3220
  if (!(f === null || ((P = f.id) == null ? void 0 : P.toString()) !== t)) {
3221
3221
  if (f.masterReference && !W) {
3222
- k([]);
3222
+ C([]);
3223
3223
  return;
3224
3224
  }
3225
3225
  w("dynamicFormData"), await p.get(`${u}?id=${t}&showArchive=${b}${f.masterReference ? `&master=${W}` : ""}`).then(({ data: K }) => {
@@ -3230,16 +3230,16 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
3230
3230
  { value: G[ie.field ?? ""], defaultValue: G[ie.field ?? ""] }
3231
3231
  ])) ?? []);
3232
3232
  });
3233
- k(se), N("dynamicFormData");
3233
+ C(se), N("dynamicFormData");
3234
3234
  }).catch(() => N("dynamicFormData"));
3235
3235
  }
3236
- }, [p, t, f, w, N, b, W, u]), We = $(async (P) => (w("dynamicFormEdit"), p.post(`${m}?id=${t}`, P).then(() => (N("dynamicFormEdit"), Q([]), !0)).catch((K) => (N("dynamicFormEdit"), Q(kt(K)), !1))), [p, t, w, N, m]), ze = $(async (P) => (w("dynamicFormDelete"), p.delete(`${h}?id=${t}&pk=${P}`).then(() => (N("dynamicFormDelete"), Q([]), !0)).catch((K) => (N("dynamicFormDelete"), Q(kt(K)), !1))), [p, t, w, N, h]), Ve = $(async (P) => (w("dynamicFormCreate"), p.post(`${g}?id=${t}`, P).then(({ data: K }) => (N("dynamicFormCreate"), Q([]), K)).catch((K) => (N("dynamicFormCreate"), Q(kt(K)), null))), [p, t, w, N, g]), Lr = $(async (P) => {
3237
- f && await We(f.masterReference ? { ...P, [f.masterReferenceColumn ?? ""]: W } : P) && (R(x.editSuccess, "success"), k((K) => K && K.map((se) => {
3236
+ }, [p, t, f, w, N, b, W, u]), We = $(async (P) => (w("dynamicFormEdit"), p.post(`${m}?id=${t}`, P).then(() => (N("dynamicFormEdit"), Q([]), !0)).catch((K) => (N("dynamicFormEdit"), Q(Ct(K)), !1))), [p, t, w, N, m]), ze = $(async (P) => (w("dynamicFormDelete"), p.delete(`${h}?id=${t}&pk=${P}`).then(() => (N("dynamicFormDelete"), Q([]), !0)).catch((K) => (N("dynamicFormDelete"), Q(Ct(K)), !1))), [p, t, w, N, h]), Ve = $(async (P) => (w("dynamicFormCreate"), p.post(`${g}?id=${t}`, P).then(({ data: K }) => (N("dynamicFormCreate"), Q([]), K)).catch((K) => (N("dynamicFormCreate"), Q(Ct(K)), null))), [p, t, w, N, g]), Lr = $(async (P) => {
3237
+ f && await We(f.masterReference ? { ...P, [f.masterReferenceColumn ?? ""]: W } : P) && (R(x.editSuccess, "success"), C((K) => K && K.map((se) => {
3238
3238
  var G;
3239
3239
  return ((G = se[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : G.value) === P[(f == null ? void 0 : f.primaryKey) ?? ""] ? Un(P, f) : se;
3240
3240
  })));
3241
3241
  }, [R, We, f, W, x]), Rr = $(async (P) => {
3242
- await X(x.deleteConfirm) && await ze(P) && (R(x.deleteSuccess, "success"), k((K) => K && K.filter((se) => {
3242
+ await X(x.deleteConfirm) && await ze(P) && (R(x.deleteSuccess, "success"), C((K) => K && K.filter((se) => {
3243
3243
  var G;
3244
3244
  return ((G = se[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : G.value) !== P;
3245
3245
  })));
@@ -3250,7 +3250,7 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
3250
3250
  if (K !== null) {
3251
3251
  R(x.createSuccess, "success");
3252
3252
  const se = Un(P, f);
3253
- return se[(f == null ? void 0 : f.primaryKey) ?? ""] = { value: K, defaultValue: K }, k((G) => [...G ?? [], se]), !0;
3253
+ return se[(f == null ? void 0 : f.primaryKey) ?? ""] = { value: K, defaultValue: K }, C((G) => [...G ?? [], se]), !0;
3254
3254
  }
3255
3255
  return !1;
3256
3256
  }, [R, Ve, x, f, W]), at = (P) => {
@@ -3303,16 +3303,16 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
3303
3303
  if (!G)
3304
3304
  return -1;
3305
3305
  if (oe.values && oe.values.length > 0) {
3306
- const je = ((qe = oe.values.find((Nt) => Nt.id.toString() === se)) == null ? void 0 : qe.name) ?? "", ke = ((lt = oe.values.find((Nt) => Nt.id.toString() === G)) == null ? void 0 : lt.name) ?? "";
3307
- return l === "asc" ? je.localeCompare(ke) : ke.localeCompare(je);
3306
+ const je = ((qe = oe.values.find((Nt) => Nt.id.toString() === se)) == null ? void 0 : qe.name) ?? "", Ce = ((lt = oe.values.find((Nt) => Nt.id.toString() === G)) == null ? void 0 : lt.name) ?? "";
3307
+ return l === "asc" ? je.localeCompare(Ce) : Ce.localeCompare(je);
3308
3308
  }
3309
3309
  if (ie === "NUM") {
3310
- const je = Number(se), ke = Number(G);
3311
- return l === "asc" ? je - ke : ke - je;
3310
+ const je = Number(se), Ce = Number(G);
3311
+ return l === "asc" ? je - Ce : Ce - je;
3312
3312
  }
3313
3313
  if (ie === "DT") {
3314
- const je = et(se == null ? void 0 : se.toString()).getTime(), ke = et(G == null ? void 0 : G.toString()).getTime();
3315
- return l === "asc" ? je - ke : ke - je;
3314
+ const je = et(se == null ? void 0 : se.toString()).getTime(), Ce = et(G == null ? void 0 : G.toString()).getTime();
3315
+ return l === "asc" ? je - Ce : Ce - je;
3316
3316
  }
3317
3317
  return l === "asc" ? se.toString().localeCompare(G.toString()) : G.toString().localeCompare(se.toString());
3318
3318
  }));
@@ -3368,7 +3368,7 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
3368
3368
  appDetail: "/settings/:id"
3369
3369
  }, qn = {
3370
3370
  apiDynamicFormsGet: "/dynamicForms"
3371
- }, Ei = ({ item: t, children: e }) => t.description ? /* @__PURE__ */ n.jsx(Kt, { placement: "left", text: t.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: e }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: e }), yd = ({ activeId: t, otherForms: e = [], groupsDefs: s = [], searchQuery: r, fullSize: o, appUrls: { appDetail: a = Kn.appDetail } = Kn, apiUrls: { apiDynamicFormsGet: l = qn.apiDynamicFormsGet } = qn }) => {
3371
+ }, Ei = ({ item: t, children: e }) => t.description ? /* @__PURE__ */ n.jsx(Kt, { placement: "left", text: t.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: e }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: e }), jd = ({ activeId: t, otherForms: e = [], groupsDefs: s = [], searchQuery: r, fullSize: o, appUrls: { appDetail: a = Kn.appDetail } = Kn, apiUrls: { apiDynamicFormsGet: l = qn.apiDynamicFormsGet } = qn }) => {
3372
3372
  const i = st(), { startLoading: c, stopLoading: d } = B(fs), [u, m] = I(null), h = q(() => [
3373
3373
  ...(u == null ? void 0 : u.map((y) => ({
3374
3374
  ...y,
@@ -3387,16 +3387,16 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
3387
3387
  return O(() => {
3388
3388
  !u && x();
3389
3389
  }, [x, u]), h.length > 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((y) => /* @__PURE__ */ n.jsx(Nl, { title: y.name, defaultOpen: !0, children: y.items.map((p) => {
3390
- var w, N, f, C;
3390
+ var w, N, f, k;
3391
3391
  return o ? /* @__PURE__ */ n.jsxs(_e, { to: `${Lt(a, { id: (w = p.id) == null ? void 0 : w.toString() })}?type=${p.type}`, className: `text-nowrap list-group-item list-group-item-action ${(t == null ? void 0 : t.toString()) === ((N = p.id) == null ? void 0 : N.toString()) ? "active" : ""}`, children: [
3392
3392
  /* @__PURE__ */ n.jsx(V, { variant: "body", children: p.name }),
3393
3393
  p.description && /* @__PURE__ */ n.jsx(V, { variant: "body2", className: "text-muted mt-2", children: p.description })
3394
- ] }, p.id) : /* @__PURE__ */ n.jsx(Ei, { item: p, children: /* @__PURE__ */ n.jsx(_e, { to: `${Lt(a, { id: (f = p.id) == null ? void 0 : f.toString() })}?type=${p.type}`, className: `text-nowrap list-group-item list-group-item-action ${(t == null ? void 0 : t.toString()) === ((C = p.id) == null ? void 0 : C.toString()) ? "active" : ""}`, children: /* @__PURE__ */ n.jsx(V, { variant: "body2", children: p.name }) }) }, p.id);
3394
+ ] }, p.id) : /* @__PURE__ */ n.jsx(Ei, { item: p, children: /* @__PURE__ */ n.jsx(_e, { to: `${Lt(a, { id: (f = p.id) == null ? void 0 : f.toString() })}?type=${p.type}`, className: `text-nowrap list-group-item list-group-item-action ${(t == null ? void 0 : t.toString()) === ((k = p.id) == null ? void 0 : k.toString()) ? "active" : ""}`, children: /* @__PURE__ */ n.jsx(V, { variant: "body2", children: p.name }) }) }, p.id);
3395
3395
  }) }, y.id)) }) }) : null;
3396
- }, wd = ({ label: t, to: e, value: s }) => /* @__PURE__ */ n.jsxs(Ne, { label: t, children: [
3396
+ }, yd = ({ label: t, to: e, value: s }) => /* @__PURE__ */ n.jsxs(Ne, { label: t, children: [
3397
3397
  /* @__PURE__ */ n.jsx("input", { disabled: !0, className: "form-control d-none" }),
3398
3398
  e ? /* @__PURE__ */ n.jsx(_e, { to: e, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: s }) : /* @__PURE__ */ n.jsx("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: s })
3399
- ] }), vd = () => {
3399
+ ] }), wd = () => {
3400
3400
  const { localizationContext: t } = B(ue), { language: e, setLanguage: s } = B(t), r = (o) => {
3401
3401
  s(o);
3402
3402
  };
@@ -3411,11 +3411,9 @@ const Sc = "_lightbox_14acg_1", Ic = "_show_14acg_16", Dc = "_header_14acg_20",
3411
3411
  /* @__PURE__ */ n.jsx(gn, {}),
3412
3412
  /* @__PURE__ */ n.jsx("span", { children: "CZ" })
3413
3413
  ] }) });
3414
- }, bd = ({ controlId: t, ...e }) => /* @__PURE__ */ n.jsx(ae.Group, { controlId: t, ...e });
3415
- var Oi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 };
3416
- const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !1 }) => {
3417
- const o = Oi.VITE_CAFM_URL, { user: a } = B(is), { photoPath: l, photoPathSm: i } = Vo(t);
3418
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && /* @__PURE__ */ n.jsx(n.Fragment, { children: r ? /* @__PURE__ */ n.jsx(Hc, { baseUrl: o, customToken: a.cafmToken ?? void 0, photos: [
3414
+ }, vd = ({ controlId: t, ...e }) => /* @__PURE__ */ n.jsx(ae.Group, { controlId: t, ...e }), bd = ({ employeeId: t, alt: e, noPhotoImage: s, cafmApiUrl: r, showLargeInLightBox: o = !1 }) => {
3415
+ const { user: a } = B(is), { photoPath: l, photoPathSm: i } = Vo(t);
3416
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsx(Hc, { baseUrl: r, customToken: a.cafmToken ?? void 0, photos: [
3419
3417
  {
3420
3418
  id: t.toString(),
3421
3419
  alt: e ?? "",
@@ -3423,23 +3421,23 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3423
3421
  smSrc: i,
3424
3422
  lgSrc: l
3425
3423
  }
3426
- ], placeholder: s, ImgComponent: Wn }) : /* @__PURE__ */ n.jsx(Wn, { baseUrl: o, customToken: a.cafmToken ?? void 0, src: i, alt: e, placeholder: s, className: "rounded w-100" }) }) });
3427
- }, Nd = ({ text: t, setText: e, onSearchButtonClick: s, className: r }) => {
3424
+ ], placeholder: s, ImgComponent: Wn }) : /* @__PURE__ */ n.jsx(Wn, { baseUrl: r, customToken: a.cafmToken ?? void 0, src: i, alt: e, placeholder: s, className: "rounded w-100" }) }) });
3425
+ }, _d = ({ text: t, setText: e, onSearchButtonClick: s, className: r }) => {
3428
3426
  const o = (a) => {
3429
3427
  e(a);
3430
3428
  };
3431
3429
  return /* @__PURE__ */ n.jsxs(ft, { className: `${r}`, children: [
3432
3430
  /* @__PURE__ */ n.jsx(ae.Control, { value: t, onChange: (a) => e(a.target.value) }),
3433
3431
  t && /* @__PURE__ */ n.jsx(tt, { onClick: () => o(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ n.jsx(we, {}) }),
3434
- /* @__PURE__ */ n.jsx(tt, { onClick: () => s && s(t), variant: "link", className: "border", children: /* @__PURE__ */ n.jsx(Co, {}) })
3432
+ /* @__PURE__ */ n.jsx(tt, { onClick: () => s && s(t), variant: "link", className: "border", children: /* @__PURE__ */ n.jsx(ko, {}) })
3435
3433
  ] });
3436
- }, Cd = ({ InputContainer: t = Ne, formField: e, label: s, resetsFields: r, type: o, required: a, hidden: l, disabled: i, withoutLabel: c, className: d }) => {
3437
- const { register: u, formState: m, setValue: h } = Ce(), [g, x] = I(void 0), [y, p] = I(!1);
3434
+ }, Nd = ({ InputContainer: t = Ne, formField: e, label: s, resetsFields: r, type: o, required: a, hidden: l, disabled: i, withoutLabel: c, className: d }) => {
3435
+ const { register: u, formState: m, setValue: h } = ke(), [g, x] = I(void 0), [y, p] = I(!1);
3438
3436
  O(() => {
3439
3437
  const N = e.split(".");
3440
3438
  let f = m.errors;
3441
- N.forEach((C) => {
3442
- f !== void 0 && (f = f[C]);
3439
+ N.forEach((k) => {
3440
+ f !== void 0 && (f = f[k]);
3443
3441
  }), x(f);
3444
3442
  }, [m, e]), O(() => {
3445
3443
  m.isSubmitted && p(!0);
@@ -3454,13 +3452,13 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3454
3452
  g && /* @__PURE__ */ n.jsx(Fe, { message: g.message })
3455
3453
  ] });
3456
3454
  }, kd = ({ InputContainer: t = Ne, label: e, formField: s, options: r, resetsFields: o, required: a, disabled: l, hidden: i, className: c }) => {
3457
- const { register: d, formState: u, setValue: m, watch: h } = Ce(), [g, x] = I(void 0), [y, p] = I(!1), w = q(() => r, [r]);
3455
+ const { register: d, formState: u, setValue: m, watch: h } = ke(), [g, x] = I(void 0), [y, p] = I(!1), w = q(() => r, [r]);
3458
3456
  O(() => {
3459
3457
  const f = s.split(".");
3460
- let C = u.errors;
3458
+ let k = u.errors;
3461
3459
  f.forEach((v) => {
3462
- C !== void 0 && (C = C[v]);
3463
- }), x(C);
3460
+ k !== void 0 && (k = k[v]);
3461
+ }), x(k);
3464
3462
  }, [u, s]), O(() => {
3465
3463
  u.isSubmitted && p(!0);
3466
3464
  }, [u]);
@@ -3468,16 +3466,16 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3468
3466
  return /* @__PURE__ */ n.jsxs(t, { isForRadioInput: !0, hidden: i, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: N, className: c, children: [
3469
3467
  w.map((f) => /* @__PURE__ */ n.jsx(ae.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: h(s) === f.id, ...d(s, {
3470
3468
  onChange: () => {
3471
- o && o.forEach((C) => m(C, null, { shouldDirty: !0, shouldValidate: y }));
3469
+ o && o.forEach((k) => m(k, null, { shouldDirty: !0, shouldValidate: y }));
3472
3470
  }
3473
3471
  }), isInvalid: N, hidden: i, disabled: l, className: "w-100" }, f.id)),
3474
3472
  g && /* @__PURE__ */ n.jsx(Fe, { message: g.message })
3475
3473
  ] });
3476
- }, $d = ({ InputContainer: t = Ne, formField: e, label: s, resetsFields: r, size: o, showClearIcon: a, clearValue: l, required: i, hidden: c, disabled: d, rows: u, withoutLabel: m, customFormControlProps: h, className: g }) => {
3477
- const { register: x, formState: y, setValue: p, watch: w } = Ce(), [N, f] = I(void 0), [C, v] = I(!1), k = $(() => {
3474
+ }, Cd = ({ InputContainer: t = Ne, formField: e, label: s, resetsFields: r, size: o, showClearIcon: a, clearValue: l, required: i, hidden: c, disabled: d, rows: u, withoutLabel: m, customFormControlProps: h, className: g }) => {
3475
+ const { register: x, formState: y, setValue: p, watch: w } = ke(), [N, f] = I(void 0), [k, v] = I(!1), C = $(() => {
3478
3476
  const S = l ?? null;
3479
- p(e, (S == null ? void 0 : S.toString()) ?? "", { shouldDirty: !0, shouldValidate: C });
3480
- }, [l, p, e, C]), _ = $(() => {
3477
+ p(e, (S == null ? void 0 : S.toString()) ?? "", { shouldDirty: !0, shouldValidate: k });
3478
+ }, [l, p, e, k]), _ = $(() => {
3481
3479
  const S = e.split(".");
3482
3480
  let F = y.errors;
3483
3481
  S.forEach((b) => {
@@ -3494,20 +3492,20 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3494
3492
  /* @__PURE__ */ n.jsx(ae.Control, { as: "textarea", size: o, ...x(e, {
3495
3493
  setValueAs: (S) => S == null || S === "" ? null : S,
3496
3494
  onChange: () => {
3497
- r && r.forEach((S) => p(S, null, { shouldDirty: !0, shouldValidate: C }));
3495
+ r && r.forEach((S) => p(S, null, { shouldDirty: !0, shouldValidate: k }));
3498
3496
  }
3499
3497
  }), isInvalid: E, hidden: c, disabled: d, rows: u ?? 2, className: "w-100", ...h }),
3500
- a && w(e) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ n.jsx(we, {}) }) }),
3498
+ a && w(e) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ n.jsx(we, {}) }) }),
3501
3499
  N && /* @__PURE__ */ n.jsx(Fe, { message: N.message })
3502
3500
  ] });
3503
- }, Sd = ({ InputContainer: t = Ne, type: e, formField: s, label: r, placeholder: o, size: a, resetsFields: l, showClearIcon: i, clearValue: c, required: d, hidden: u, disabled: m, withoutLabel: h, list: g, step: x, CustomOnChangeComponent: y, noSelectOnFocus: p, className: w }) => {
3504
- const { register: N, formState: f, setValue: C, watch: v } = Ce(), [k, _] = I(void 0), [E, S] = I(!1), F = $(() => {
3501
+ }, $d = ({ InputContainer: t = Ne, type: e, formField: s, label: r, placeholder: o, size: a, resetsFields: l, showClearIcon: i, clearValue: c, required: d, hidden: u, disabled: m, withoutLabel: h, list: g, step: x, CustomOnChangeComponent: y, noSelectOnFocus: p, className: w }) => {
3502
+ const { register: N, formState: f, setValue: k, watch: v } = ke(), [C, _] = I(void 0), [E, S] = I(!1), F = $(() => {
3505
3503
  const L = c ?? null;
3506
- e === "number" ? C(s, L !== null ? Number(L) : null, {
3504
+ e === "number" ? k(s, L !== null ? Number(L) : null, {
3507
3505
  shouldDirty: !0,
3508
3506
  shouldValidate: E
3509
- }) : C(s, (L == null ? void 0 : L.toString()) ?? "", { shouldDirty: !0, shouldValidate: E });
3510
- }, [c, e, C, s, E]), b = $(() => {
3507
+ }) : k(s, (L == null ? void 0 : L.toString()) ?? "", { shouldDirty: !0, shouldValidate: E });
3508
+ }, [c, e, k, s, E]), b = $(() => {
3511
3509
  const L = s.split(".");
3512
3510
  let Z = f.errors;
3513
3511
  L.forEach((ee) => {
@@ -3519,7 +3517,7 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3519
3517
  }, [b]), O(() => {
3520
3518
  f.isSubmitted && S(!0);
3521
3519
  }, [f]);
3522
- const D = k !== void 0, [R, H] = I(!1), Q = v(s), X = ys(e, Q ?? null, R);
3520
+ const D = C !== void 0, [R, H] = I(!1), Q = v(s), X = ys(e, Q ?? null, R);
3523
3521
  return /* @__PURE__ */ n.jsxs(t, { label: `${r}${d ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: D, className: w, children: [
3524
3522
  /* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
3525
3523
  /* @__PURE__ */ n.jsx(ae.Control, { type: X, placeholder: o ?? r, size: a, onFocus: (L) => {
@@ -3527,26 +3525,26 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3527
3525
  }, ...N(s, {
3528
3526
  setValueAs: (L) => e === "number" ? L == null || L === "" ? null : Number(L) : L == null || L === "" ? null : L,
3529
3527
  onChange: () => {
3530
- l && l.forEach((L) => C(L, null, { shouldDirty: !0, shouldValidate: E }));
3528
+ l && l.forEach((L) => k(L, null, { shouldDirty: !0, shouldValidate: E }));
3531
3529
  },
3532
3530
  onBlur: () => H(!1)
3533
3531
  }), isInvalid: D, hidden: u, disabled: m, list: g, className: "w-100", step: x }),
3534
3532
  y && /* @__PURE__ */ n.jsx("div", { className: "custom-picker-button", children: y })
3535
3533
  ] }),
3536
3534
  i && v(s) && /* @__PURE__ */ n.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: F, children: /* @__PURE__ */ n.jsx(we, {}) }) }),
3537
- k && /* @__PURE__ */ n.jsx(Fe, { message: k.message })
3535
+ C && /* @__PURE__ */ n.jsx(Fe, { message: C.message })
3538
3536
  ] });
3539
- }, Id = ({ InputContainer: t = Ne, formField: e, label: s, size: r, defaultSelection: o, resetsFields: a, isNumber: l, required: i, hidden: c, disabled: d, items: u, onSearchQueryChange: m, selectedItemNavigateTo: h, texts: g, dropdownItemsNameWidth: x, isLoading: y, withoutLabel: p, additionalColumns: w, CustomOnChangeComponent: N, displayIdAsName: f, onSelect: C, className: v }) => {
3540
- const { formState: k, setValue: _, watch: E, control: S } = Ce(), [F, b] = I(void 0), [D, R] = I(!1), [H, Q] = I(!1), X = E(e) ?? null, L = X === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : E(`${e}-DropdownName`), Z = q(() => X == null ? null : { id: X ?? null, name: L ?? "" }, [X, L]), ee = $(() => {
3537
+ }, Sd = ({ InputContainer: t = Ne, formField: e, label: s, size: r, defaultSelection: o, resetsFields: a, isNumber: l, required: i, hidden: c, disabled: d, items: u, onSearchQueryChange: m, selectedItemNavigateTo: h, texts: g, dropdownItemsNameWidth: x, isLoading: y, withoutLabel: p, additionalColumns: w, CustomOnChangeComponent: N, displayIdAsName: f, onSelect: k, className: v }) => {
3538
+ const { formState: C, setValue: _, watch: E, control: S } = ke(), [F, b] = I(void 0), [D, R] = I(!1), [H, Q] = I(!1), X = E(e) ?? null, L = X === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : E(`${e}-DropdownName`), Z = q(() => X == null ? null : { id: X ?? null, name: L ?? "" }, [X, L]), ee = $(() => {
3541
3539
  const W = e.split(".");
3542
- let A = k.errors;
3540
+ let A = C.errors;
3543
3541
  W.forEach((ne) => {
3544
3542
  A !== void 0 && (A = A[ne]);
3545
3543
  }), b(A);
3546
- }, [k, e]), te = $((W) => {
3544
+ }, [C, e]), te = $((W) => {
3547
3545
  if ((W == null ? void 0 : W.id) === X)
3548
3546
  return;
3549
- if (C && C(W), a && a.forEach((ne) => _(ne, null, { shouldDirty: !0, shouldValidate: H })), W === null) {
3547
+ if (k && k(W), a && a.forEach((ne) => _(ne, null, { shouldDirty: !0, shouldValidate: H })), W === null) {
3550
3548
  _(e, null, {
3551
3549
  shouldDirty: !0,
3552
3550
  shouldValidate: H
@@ -3558,7 +3556,7 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3558
3556
  shouldDirty: !0,
3559
3557
  shouldValidate: H
3560
3558
  }), _(`${e}-DropdownName`, W.name ?? "");
3561
- }, [_, e, H, l, a, X, C]), T = $((W) => {
3559
+ }, [_, e, H, l, a, X, k]), T = $((W) => {
3562
3560
  R(!1), te(W);
3563
3561
  }, [te]), re = $(() => {
3564
3562
  R(!1);
@@ -3566,8 +3564,8 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3566
3564
  O(() => {
3567
3565
  ee();
3568
3566
  }, [ee]), O(() => {
3569
- k.isSubmitted && Q(!0);
3570
- }, [k]);
3567
+ C.isSubmitted && Q(!0);
3568
+ }, [C]);
3571
3569
  const de = Y(null), pe = F !== void 0, le = h !== void 0, xe = le && Z !== null;
3572
3570
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(t, { label: `${s}${i ? " *" : ""}`, hidden: c, withoutLabel: p, isInvalid: pe, inputContainerClassName: j({ "luminus-dropdown-select-open": D }), className: v, children: [
3573
3571
  /* @__PURE__ */ n.jsxs(Er, { currentSelection: Z, selectedItemNavigateTo: h, children: [
@@ -3591,17 +3589,17 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3591
3589
  F && /* @__PURE__ */ n.jsx(Fe, { message: F.message }),
3592
3590
  de.current && /* @__PURE__ */ n.jsx(rn, { show: D, onCancel: re, items: u, currentSelection: Z, onSelectionChange: T, onSearchQueryChange: m, texts: g, itemsNameWidth: x, additionalColumns: w, displayIdAsName: f, isLoading: y, disabled: d, inputRef: de })
3593
3591
  ] }) });
3594
- }, Dd = ({ InputContainer: t = Ne, label: e, formField: s, hidden: r, required: o, placeholder: a, disabled: l, showClearIcon: i, resetsFields: c, multiple: d, accept: u, withoutLabel: m, className: h }) => {
3595
- const { watch: g, setValue: x, register: y, formState: p } = Ce(), [w, N] = I(!1), [f, C] = I(void 0), v = $(() => {
3592
+ }, Id = ({ InputContainer: t = Ne, label: e, formField: s, hidden: r, required: o, placeholder: a, disabled: l, showClearIcon: i, resetsFields: c, multiple: d, accept: u, withoutLabel: m, className: h }) => {
3593
+ const { watch: g, setValue: x, register: y, formState: p } = ke(), [w, N] = I(!1), [f, k] = I(void 0), v = $(() => {
3596
3594
  x(s, "");
3597
- }, [x, s]), k = $(() => {
3595
+ }, [x, s]), C = $(() => {
3598
3596
  const E = s.split(".");
3599
3597
  let S = p.errors;
3600
3598
  E.forEach((F) => {
3601
3599
  S !== void 0 && (S = S[F]);
3602
- }), C(S);
3600
+ }), k(S);
3603
3601
  }, [p, s]);
3604
- O(k, [k]), O(() => {
3602
+ O(C, [C]), O(() => {
3605
3603
  p.isSubmitted && N(!0);
3606
3604
  }, [p]);
3607
3605
  const _ = f !== void 0;
@@ -3614,18 +3612,18 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3614
3612
  i && g(s) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: v, children: /* @__PURE__ */ n.jsx(we, {}) }) }),
3615
3613
  f && /* @__PURE__ */ n.jsx(Fe, { message: f.message })
3616
3614
  ] });
3617
- }, Fd = ({ children: t, onStorno: e, noSpacer: s }) => {
3618
- const { formState: r } = Ce(), [o, a] = I(!1);
3615
+ }, Dd = ({ children: t, onStorno: e, noSpacer: s }) => {
3616
+ const { formState: r } = ke(), [o, a] = I(!1);
3619
3617
  return O(() => {
3620
3618
  a(Object.keys(r.dirtyFields).length > 0);
3621
3619
  }, [r]), o ? /* @__PURE__ */ n.jsx(za, { onStorno: e, noSpacer: s, children: t }) : null;
3622
- }, Ed = ({ InputContainer: t = Ne, options: e, formField: s, label: r, size: o, resetsFields: a, isNumber: l, required: i, hidden: c, disabled: d, withoutLabel: u, noSortOptions: m, suffixIdToName: h, className: g }) => {
3623
- const { texts: { customSelect: x } } = B(ue), { formState: y, setValue: p, watch: w, control: N } = Ce(), [f, C] = I(void 0), [v, k] = I(!1), [_, E] = I(!1), [S, F] = I(""), b = w(s), D = q(() => e.find((T) => T.id === b) ?? null, [e, b]), R = $(() => {
3620
+ }, Fd = ({ InputContainer: t = Ne, options: e, formField: s, label: r, size: o, resetsFields: a, isNumber: l, required: i, hidden: c, disabled: d, withoutLabel: u, noSortOptions: m, suffixIdToName: h, className: g }) => {
3621
+ const { texts: { customSelect: x } } = B(ue), { formState: y, setValue: p, watch: w, control: N } = ke(), [f, k] = I(void 0), [v, C] = I(!1), [_, E] = I(!1), [S, F] = I(""), b = w(s), D = q(() => e.find((T) => T.id === b) ?? null, [e, b]), R = $(() => {
3624
3622
  const T = s.split(".");
3625
3623
  let re = y.errors;
3626
3624
  T.forEach((de) => {
3627
3625
  re !== void 0 && (re = re[de]);
3628
- }), C(re);
3626
+ }), k(re);
3629
3627
  }, [y, s]), H = $((T) => {
3630
3628
  if ((T == null ? void 0 : T.id) === b)
3631
3629
  return;
@@ -3642,7 +3640,7 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3642
3640
  shouldValidate: _
3643
3641
  });
3644
3642
  }, [p, s, l, a, b, _]), Q = $((T) => {
3645
- k(!1), H(T);
3643
+ C(!1), H(T);
3646
3644
  }, [H]), X = $((T) => {
3647
3645
  F(T);
3648
3646
  }, []);
@@ -3662,14 +3660,14 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3662
3660
  /* @__PURE__ */ n.jsx(gs, { control: N, name: s, render: () => /* @__PURE__ */ n.jsx(ae.Select, { size: o, onMouseDown: (T) => {
3663
3661
  T.currentTarget.focus(), T.preventDefault();
3664
3662
  }, onClick: () => {
3665
- k(!0);
3663
+ C(!0);
3666
3664
  }, ref: ee, value: b ?? "", onChange: () => {
3667
3665
  }, isInvalid: te, hidden: c, disabled: d, className: "w-100", children: /* @__PURE__ */ n.jsx("option", { value: (D == null ? void 0 : D.id) ?? "", children: L(D) }) }) }),
3668
3666
  f && /* @__PURE__ */ n.jsx(Fe, { message: f.message }),
3669
- ee.current && /* @__PURE__ */ n.jsx(rn, { show: v, onCancel: () => k(!1), items: Z, currentSelection: D ?? null, onSelectionChange: Q, onSearchQueryChange: X, texts: x, disabled: d, inputRef: ee, autoHideSearch: !0, allItemsLength: e.length })
3667
+ ee.current && /* @__PURE__ */ n.jsx(rn, { show: v, onCancel: () => C(!1), items: Z, currentSelection: D ?? null, onSelectionChange: Q, onSearchQueryChange: X, texts: x, disabled: d, inputRef: ee, autoHideSearch: !0, allItemsLength: e.length })
3670
3668
  ] }) });
3671
- }, Od = ({ InputContainer: t = Ne, formField: e, label: s, placeholder: r, size: o, resetsFields: a, showClearIcon: l, clearValue: i, required: c, hidden: d, disabled: u, withoutLabel: m, step: h, stepperStep: g = 1, className: x }) => {
3672
- const { register: y, formState: p, setValue: w, watch: N } = Ce(), [f, C] = I(void 0), [v, k] = I(!1), _ = $(() => {
3669
+ }, Ed = ({ InputContainer: t = Ne, formField: e, label: s, placeholder: r, size: o, resetsFields: a, showClearIcon: l, clearValue: i, required: c, hidden: d, disabled: u, withoutLabel: m, step: h, stepperStep: g = 1, className: x }) => {
3670
+ const { register: y, formState: p, setValue: w, watch: N } = ke(), [f, k] = I(void 0), [v, C] = I(!1), _ = $(() => {
3673
3671
  const b = i ?? null;
3674
3672
  w(e, b !== null ? Number(b) : null, {
3675
3673
  shouldDirty: !0,
@@ -3680,12 +3678,12 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3680
3678
  let D = p.errors;
3681
3679
  b.forEach((R) => {
3682
3680
  D !== void 0 && (D = D[R]);
3683
- }), C(D);
3681
+ }), k(D);
3684
3682
  }, [p, e]);
3685
3683
  O(() => {
3686
3684
  E();
3687
3685
  }, [E]), O(() => {
3688
- p.isSubmitted && k(!0);
3686
+ p.isSubmitted && C(!0);
3689
3687
  }, [p]);
3690
3688
  const S = f !== void 0, F = N(e);
3691
3689
  return /* @__PURE__ */ n.jsxs(t, { label: `${s}${c ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: S, className: x, children: [
@@ -3706,7 +3704,7 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3706
3704
  l && N(e) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: _, children: /* @__PURE__ */ n.jsx(we, {}) }) }),
3707
3705
  f && /* @__PURE__ */ n.jsx(Fe, { message: f.message })
3708
3706
  ] });
3709
- }, Td = ({ cell: { value: t } }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsx(ds, { name: t, size: 21, fontSize: 12 }) : /* @__PURE__ */ n.jsx(n.Fragment, {}) }), Ti = ({ typeFilter: t, onChangeTypeFilter: e }) => {
3707
+ }, Od = ({ cell: { value: t } }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsx(ds, { name: t, size: 21, fontSize: 12 }) : /* @__PURE__ */ n.jsx(n.Fragment, {}) }), Oi = ({ typeFilter: t, onChangeTypeFilter: e }) => {
3710
3708
  const s = ["info", "warning", "danger"];
3711
3709
  return /* @__PURE__ */ n.jsx("div", { className: "mb-1 d-flex justify-content-center gap-2", children: s.map((r) => /* @__PURE__ */ n.jsx("div", { role: "button", style: {
3712
3710
  height: "14px",
@@ -3717,13 +3715,13 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3717
3715
  }, className: j(`border-${r}`, r === t && `bg-${r}`), onClick: () => {
3718
3716
  e(t === r ? null : r);
3719
3717
  } }, r)) });
3720
- }, Mi = ({ linksTo: t, onClick: e, children: s }) => t ? /* @__PURE__ */ n.jsx(_e, { to: t, className: "text-decoration-none", onClick: e, children: s }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: s }), Li = ({ message: t, onDeleteMessage: e, onClickMessage: s, getIcon: r, getLinksTo: o }) => {
3718
+ }, Ti = ({ linksTo: t, onClick: e, children: s }) => t ? /* @__PURE__ */ n.jsx(_e, { to: t, className: "text-decoration-none", onClick: e, children: s }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: s }), Mi = ({ message: t, onDeleteMessage: e, onClickMessage: s, getIcon: r, getLinksTo: o }) => {
3721
3719
  const { ProjectIconComponent: a, localizationContext: l } = B(ue), { dateFnsLocale: i } = B(l), c = t.dateTime ? et(t.dateTime) : null, d = c ? qo(new Date(Date.now()), c) : 0;
3722
3720
  return /* @__PURE__ */ n.jsxs("div", { children: [
3723
3721
  c && /* @__PURE__ */ n.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ n.jsx(Kt, { text: Xe(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(V, { variant: "caption", children: d > 2 ? Xe(c, "dd.MM.yyyy") : Zo(c, new Date(Date.now()), {
3724
3722
  locale: i.code
3725
3723
  }) }) }) }) }),
3726
- /* @__PURE__ */ n.jsx(Mi, { linksTo: o(t) ?? void 0, onClick: s, children: /* @__PURE__ */ n.jsx(Kc, { level: t.type, noIcon: !0, children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
3724
+ /* @__PURE__ */ n.jsx(Ti, { linksTo: o(t) ?? void 0, onClick: s, children: /* @__PURE__ */ n.jsx(Kc, { level: t.type, noIcon: !0, children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
3727
3725
  r(t),
3728
3726
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
3729
3727
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
@@ -3739,7 +3737,7 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3739
3737
  }, Qn = ({ messages: t, isLoading: e, onDeleteMessage: s, onClickMessage: r, getIcon: o, getLinksTo: a }) => {
3740
3738
  const { texts: { messageBoard: l } } = B(ue), [i, c] = I(null), d = q(() => t.filter((u) => i ? u.type === i : !0), [i, t]);
3741
3739
  return /* @__PURE__ */ n.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
3742
- /* @__PURE__ */ n.jsx(Ti, { typeFilter: i, onChangeTypeFilter: (u) => c(u) }),
3740
+ /* @__PURE__ */ n.jsx(Oi, { typeFilter: i, onChangeTypeFilter: (u) => c(u) }),
3743
3741
  e && /* @__PURE__ */ n.jsxs("div", { className: "p-3 w-100", children: [
3744
3742
  /* @__PURE__ */ n.jsx(Ie, { as: In.Title, animation: "glow", children: /* @__PURE__ */ n.jsx(Ie, { xs: 6 }) }),
3745
3743
  /* @__PURE__ */ n.jsxs(Ie, { as: In.Text, animation: "glow", children: [
@@ -3756,13 +3754,13 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3756
3754
  ] }),
3757
3755
  !e && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3758
3756
  t.length === 0 && /* @__PURE__ */ n.jsx(Fr, { variant: "info", size: "sm", className: "mt-2", children: l.noMessages }),
3759
- /* @__PURE__ */ n.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: d.map((u) => /* @__PURE__ */ n.jsx(Li, { message: u, onDeleteMessage: s, onClickMessage: r, getIcon: o, getLinksTo: a }, u.id)) })
3757
+ /* @__PURE__ */ n.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: d.map((u) => /* @__PURE__ */ n.jsx(Mi, { message: u, onDeleteMessage: s, onClickMessage: r, getIcon: o, getLinksTo: a }, u.id)) })
3760
3758
  ] })
3761
3759
  ] });
3762
3760
  }, Ot = {
3763
3761
  apiGet: "/messageBoard",
3764
3762
  apiDelete: "/messageBoard/"
3765
- }, Md = ({ renderAsNotifPanel: t, notifIcon: e, apiUrls: { apiGet: s = Ot.apiGet, apiDelete: r = Ot.apiDelete } = Ot, getIcon: o, getLinksTo: a }) => {
3763
+ }, Td = ({ renderAsNotifPanel: t, notifIcon: e, apiUrls: { apiGet: s = Ot.apiGet, apiDelete: r = Ot.apiDelete } = Ot, getIcon: o, getLinksTo: a }) => {
3766
3764
  const i = st(), [c, d] = I([]), [u, m] = I(!1), [h, g] = I(!1), [x, y] = I(!1), p = $(async () => {
3767
3765
  g(!0), await i.get(s).then(({ data: v }) => {
3768
3766
  d(v), m(!0), g(!1);
@@ -3770,8 +3768,8 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3770
3768
  d([]), g(!1);
3771
3769
  });
3772
3770
  }, [s, i]), w = $(async (v) => i.delete(`${r}${v}`).then(() => !0).catch(() => !1), [r, i]), N = $((v) => {
3773
- w(v).then((k) => {
3774
- k && d(c.filter((_) => _.id !== v));
3771
+ w(v).then((C) => {
3772
+ C && d(c.filter((_) => _.id !== v));
3775
3773
  });
3776
3774
  }, [w, c]);
3777
3775
  O(() => {
@@ -3781,21 +3779,21 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3781
3779
  clearInterval(v);
3782
3780
  };
3783
3781
  }, [p]);
3784
- const f = c.filter((v) => v.type === "danger").length, C = u ? !1 : h;
3782
+ const f = c.filter((v) => v.type === "danger").length, k = u ? !1 : h;
3785
3783
  return t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3786
3784
  /* @__PURE__ */ n.jsxs("div", { className: "position-relative", children: [
3787
3785
  /* @__PURE__ */ n.jsx(U, { size: "md", onClick: () => y(!x), children: e }),
3788
3786
  f > 0 && /* @__PURE__ */ n.jsx("div", { className: "badge rounded-pill bg-danger p-1 px-2 text-white", style: { position: "absolute", top: "-6px", right: "-10px", fontSize: "10px" }, children: f })
3789
3787
  ] }),
3790
- /* @__PURE__ */ n.jsx(Tn, { show: x, onHide: () => y(!1), placement: "end", children: /* @__PURE__ */ n.jsx(Tn.Body, { children: /* @__PURE__ */ n.jsx(Qn, { messages: c, isLoading: C, onDeleteMessage: N, onClickMessage: () => y(!1), getIcon: o, getLinksTo: a }) }) })
3791
- ] }) : /* @__PURE__ */ n.jsx(Qn, { messages: c, isLoading: C, onDeleteMessage: N, getIcon: o, getLinksTo: a });
3792
- }, Ri = "_tab-panel_d8l8q_1", Ai = "_full-height-no-overflow_d8l8q_5", Bi = "_disabled_d8l8q_12", Tt = {
3788
+ /* @__PURE__ */ n.jsx(Tn, { show: x, onHide: () => y(!1), placement: "end", children: /* @__PURE__ */ n.jsx(Tn.Body, { children: /* @__PURE__ */ n.jsx(Qn, { messages: c, isLoading: k, onDeleteMessage: N, onClickMessage: () => y(!1), getIcon: o, getLinksTo: a }) }) })
3789
+ ] }) : /* @__PURE__ */ n.jsx(Qn, { messages: c, isLoading: k, onDeleteMessage: N, getIcon: o, getLinksTo: a });
3790
+ }, Li = "_tab-panel_d8l8q_1", Ri = "_full-height-no-overflow_d8l8q_5", Ai = "_disabled_d8l8q_12", Tt = {
3793
3791
  "tab-panel": "_tab-panel_d8l8q_1",
3794
- tabPanel: Ri,
3792
+ tabPanel: Li,
3795
3793
  "full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
3796
- fullHeightNoOverflow: Ai,
3797
- disabled: Bi
3798
- }, Ld = ({ eventKey: t, activeTab: e, fullHeightNoOverflow: s, disabled: r, className: o, children: a }) => t !== e ? null : /* @__PURE__ */ n.jsx("div", { className: j("luminus-tab-panel", Tt.tabPanel, { [Tt.fullHeightNoOverflow]: s }, { disabled: r }, { [Tt.disabled]: r }, o), children: a }), Rd = ({ activeTab: t, onSelect: e, children: s }) => /* @__PURE__ */ n.jsx("div", { className: j("luminus-tabs d-flex gap-1 mb-2"), children: s.map((r) => {
3794
+ fullHeightNoOverflow: Ri,
3795
+ disabled: Ai
3796
+ }, Md = ({ eventKey: t, activeTab: e, fullHeightNoOverflow: s, disabled: r, className: o, children: a }) => t !== e ? null : /* @__PURE__ */ n.jsx("div", { className: j("luminus-tab-panel", Tt.tabPanel, { [Tt.fullHeightNoOverflow]: s }, { disabled: r }, { [Tt.disabled]: r }, o), children: a }), Ld = ({ activeTab: t, onSelect: e, children: s }) => /* @__PURE__ */ n.jsx("div", { className: j("luminus-tabs d-flex gap-1 mb-2"), children: s.map((r) => {
3799
3797
  const o = r.type, a = r.props;
3800
3798
  if (!a)
3801
3799
  return null;
@@ -3803,86 +3801,86 @@ const _d = ({ employeeId: t, alt: e, noPhotoImage: s, showLargeInLightBox: r = !
3803
3801
  return /* @__PURE__ */ Io(o, { ...a, key: a.eventKey, className: j({ active: t === l }, c), onClick: () => {
3804
3802
  e(l), d && d(l);
3805
3803
  } }, i);
3806
- }) }), Pi = "_tab_1hdhk_1", Hi = "_disabled_1hdhk_8", Zn = {
3807
- tab: Pi,
3808
- disabled: Hi
3809
- }, Ad = ({ eventKey: t, className: e, onClick: s, disabled: r, children: o }) => /* @__PURE__ */ n.jsx("div", { role: "button", className: j("luminus-tab text-primary rounded", Zn.tab, e, {
3804
+ }) }), Bi = "_tab_1hdhk_1", Pi = "_disabled_1hdhk_8", Zn = {
3805
+ tab: Bi,
3806
+ disabled: Pi
3807
+ }, Rd = ({ eventKey: t, className: e, onClick: s, disabled: r, children: o }) => /* @__PURE__ */ n.jsx("div", { role: "button", className: j("luminus-tab text-primary rounded", Zn.tab, e, {
3810
3808
  disabled: r
3811
3809
  }, { [Zn.disabled]: r }), onClick: () => s && !r && s(t), children: typeof o == "string" ? /* @__PURE__ */ n.jsx(V, { variant: "h6", className: "text-primary", children: o }) : o });
3812
3810
  export {
3813
3811
  Fr as Alert,
3814
3812
  Kc as AlertItem,
3815
- td as ApiFileDownloadButton,
3816
- ld as AppSearch,
3817
- cd as AuthTemplate,
3813
+ ed as ApiFileDownloadButton,
3814
+ ad as AppSearch,
3815
+ ld as AuthTemplate,
3818
3816
  ds as AvatarIcon,
3819
3817
  Ir as Backdrop,
3820
- rd as Badge,
3818
+ sd as Badge,
3821
3819
  jc as Card,
3822
3820
  Or as CheckInput,
3823
3821
  Nl as Collapse,
3824
3822
  jt as ContextButton,
3825
- wd as DisabledRowLabelLink,
3826
- kr as Dropdown,
3827
- ad as DropdownDivider,
3823
+ yd as DisabledRowLabelLink,
3824
+ Cr as Dropdown,
3825
+ od as DropdownDivider,
3828
3826
  on as DropdownItem,
3829
- ud as DropdownPicker,
3830
- Cr as DropdownToggle,
3831
- jd as DynamicForm,
3832
- _d as EmployeeSmallPhoto,
3827
+ dd as DropdownPicker,
3828
+ kr as DropdownToggle,
3829
+ xd as DynamicForm,
3830
+ bd as EmployeeSmallPhoto,
3833
3831
  pl as ErrorBoundary,
3834
3832
  wr as FileUploadContextButton,
3835
- od as FileUploadDropdownItem,
3833
+ rd as FileUploadDropdownItem,
3836
3834
  Zc as FloatingActionContainer,
3837
3835
  za as FloatingFormSubmit,
3838
3836
  He as FloatingLabelInput,
3839
- pd as FromToDatePicker,
3840
- sd as HomeDashboard,
3841
- Cd as HookFormCheckInput,
3842
- Id as HookFormDropdownPicker,
3843
- Dd as HookFormFileInput,
3844
- Fd as HookFormFloatingSubmit,
3845
- Od as HookFormNumericStepperInput,
3837
+ md as FromToDatePicker,
3838
+ nd as HomeDashboard,
3839
+ Nd as HookFormCheckInput,
3840
+ Sd as HookFormDropdownPicker,
3841
+ Id as HookFormFileInput,
3842
+ Dd as HookFormFloatingSubmit,
3843
+ Ed as HookFormNumericStepperInput,
3846
3844
  kd as HookFormRadioInput,
3847
- Ed as HookFormSelectInput,
3848
- $d as HookFormTextAreaInput,
3849
- Sd as HookFormTextInput,
3850
- nd as HtmlTooltip,
3845
+ Fd as HookFormSelectInput,
3846
+ Cd as HookFormTextAreaInput,
3847
+ $d as HookFormTextInput,
3848
+ td as HtmlTooltip,
3851
3849
  U as IconButton,
3852
3850
  Wn as ImgApi,
3853
3851
  Dr as ImgDirect,
3854
3852
  Fe as InvalidFeedback,
3855
- vd as LanguageSwitch,
3853
+ wd as LanguageSwitch,
3856
3854
  yn as Loading,
3857
3855
  Go as LoadingBlock,
3858
- Md as MessageBoard,
3856
+ Td as MessageBoard,
3859
3857
  Qa as MonthPicker,
3860
- hd as MonthPickerSearchParams,
3858
+ pd as MonthPickerSearchParams,
3861
3859
  ye as NoInputContainer,
3862
- md as NumericStepperInput,
3860
+ fd as NumericStepperInput,
3863
3861
  Hc as PhotoLibrary,
3864
3862
  Pc as PhotoLightbox,
3865
- xd as PieChart,
3863
+ gd as PieChart,
3866
3864
  jn as PrimaryButton,
3867
3865
  Ne as RowLabelInput,
3868
- Nd as SearchBox,
3866
+ _d as SearchBox,
3869
3867
  yt as SelectInput,
3870
- yd as SettingsFormPicker,
3868
+ jd as SettingsFormPicker,
3871
3869
  rn as SimplePicker,
3872
3870
  ho as SimpleToggle,
3873
3871
  Kt as SimpleTooltip,
3874
- Ad as Tab,
3875
- Ld as TabPanel,
3876
- Rd as Tabs,
3877
- fd as TextAreaInput,
3872
+ Rd as Tab,
3873
+ Md as TabPanel,
3874
+ Ld as Tabs,
3875
+ ud as TextAreaInput,
3878
3876
  Pe as TextInput,
3879
- dd as Timeline,
3880
- bd as TypedFormGroup,
3877
+ id as Timeline,
3878
+ vd as TypedFormGroup,
3881
3879
  V as Typography,
3882
- Hd as UserAvatarToggle,
3883
- Td as UserAvatarValueFormat,
3884
- id as VersionInfo,
3880
+ Pd as UserAvatarToggle,
3881
+ Od as UserAvatarValueFormat,
3882
+ cd as VersionInfo,
3885
3883
  Ln as WidgetCard,
3886
3884
  Xa as YearPicker,
3887
- gd as YearPickerSearchParams
3885
+ hd as YearPickerSearchParams
3888
3886
  };