react-luminus-components 1.3.255 → 1.3.256

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.
Files changed (30) hide show
  1. package/dist/.vite/manifest.json +26 -43
  2. package/dist/{FormDisabledProvider-CtaHo2u4.cjs → FormDisabledProvider-IZj7rG71.cjs} +1 -1
  3. package/dist/{FormDisabledProvider-B9PAKouU.js → FormDisabledProvider-bsJ46hjN.js} +1 -1
  4. package/dist/components/ResponsiveContextDropdown/ResponsiveContextDropdown.d.ts +4 -1
  5. package/dist/components/ResponsiveContextDropdown/components/ResponsiveContextDropdownItem/ResponsiveContextDropdownItem.d.ts +14 -4
  6. package/dist/components/ResponsiveContextDropdown/hooks/useReponsiveContextDropdownHelpers.d.ts +10 -0
  7. package/dist/components/ResponsiveContextDropdown/utils/responsiveContextDropdownUtils.d.ts +0 -5
  8. package/dist/contexts.cjs.js +1 -1
  9. package/dist/contexts.es.js +5 -5
  10. package/dist/hooks.cjs.js +1 -1
  11. package/dist/hooks.es.js +38 -39
  12. package/dist/layout.cjs.js +1 -1
  13. package/dist/layout.es.js +36 -37
  14. package/dist/main.cjs.js +27 -27
  15. package/dist/main.es.js +123 -124
  16. package/dist/models/ui/routes/PathParamsExtraction.d.ts +2 -0
  17. package/dist/models/ui/routes/PathParamsObject.d.ts +4 -0
  18. package/dist/models/ui/routes/RouteInfo.d.ts +8 -0
  19. package/dist/nivo-bar.es-B14IMLis.cjs +279 -0
  20. package/dist/{nivo-bar.es-C8nA52Jo.js → nivo-bar.es-DUNbYR2n.js} +3453 -3427
  21. package/dist/{useGetApiData-BxwaAuis.js → useGetApiData-9CmdrsjA.js} +1 -1
  22. package/dist/{useGetApiData-Du-3yJ2X.cjs → useGetApiData-CDH4JXLT.cjs} +1 -1
  23. package/dist/utils/constants/CommonLuminusIconsArray.d.ts +1 -1
  24. package/dist/utils/route/routeUtils.d.ts +3 -0
  25. package/dist/utils.cjs.js +1 -1
  26. package/dist/utils.es.js +11 -10
  27. package/package.json +1 -1
  28. package/dist/nivo-bar.es-Cq2KqI7I.cjs +0 -279
  29. package/dist/usePermissions-Da-QNIaC.js +0 -21
  30. package/dist/usePermissions-JP3qlO4_.cjs +0 -1
package/dist/main.es.js CHANGED
@@ -1,19 +1,18 @@
1
- import { j as s, c as j, t as Te, s as uo, g as po, m as lc, d as Yr, a as cc, b as dc, e as pt, f as ga, h as uc, i as pc, k as fc, l as gc, n as vc, o as mc, p as hc, T as Ji, q as Qi, r as fo, E as bc, u as Zi, v as va, w as es, x as xc, y as _e, z as ma, F as ts, A as yc, B as wc, C as Dc, D as Nc, M as Sc, G as Cc, H as Ec, I as Ic, J as jc, K as Oc, L as Zn, N as _c, O as Pc, P as de, Q as Qr, R as Tc, S as Ac, U as Rc, V as rs, W as kc, X as Lt, Y as le, Z as ha, _ as Oe, $ as ba, a0 as Bc, a1 as gt, a2 as Or, a3 as xa, a4 as re, a5 as ya, a6 as ns, a7 as wa, a8 as Nt, a9 as as, aa as os, ab as Xe, ac as St, ad as Vt, ae as Mc, af as mt, ag as Lc, ah as Fc, ai as _r, aj as it, ak as Ct, al as Jt, am as Da, an as $e, ao as Na, ap as un, aq as Sa, ar as Vc, as as $c, at as Gc, au as Qt, av as Zt, aw as Pr, ax as et, ay as is, az as mr, aA as Et, aB as pn, aC as fn, aD as ss, aE as bt, aF as Ze, aG as Ca, aH as Wc, aI as Uc, aJ as Hc, aK as ls, aL as zc, aM as qc, aN as Yc, aO as Kc, aP as at, aQ as Xc, aR as Jc, aS as Zr, aT as ee, aU as cs, aV as Qc, aW as Zc, aX as ed, aY as ds, aZ as td, a_ as rd, a$ as nd, b0 as ad, b1 as od, b2 as id, b3 as sd, b4 as ld, b5 as ht, b6 as cd, b7 as dd, b8 as ud, b9 as pd, ba as fd, bb as en, bc as gd, bd as Sn, be as vd, bf as Wt, bg as md, bh as hd, bi as bd, bj as tn, bk as xd, bl as yd, bm as us, bn as Cn, bo as wd, bp as Dd, bq as go } from "./nivo-bar.es-C8nA52Jo.js";
2
- import { bt as aD, bu as oD, br as iD, bs as sD } from "./nivo-bar.es-C8nA52Jo.js";
1
+ import { j as s, c as j, t as Te, s as uo, g as po, m as lc, d as Yr, a as cc, b as dc, e as pt, f as ga, h as uc, i as pc, k as fc, l as gc, n as vc, o as mc, p as hc, T as Ji, q as Qi, r as fo, E as bc, u as Zi, v as va, w as es, x as xc, y as _e, z as ma, F as ts, A as yc, B as wc, C as Dc, D as Nc, M as Sc, G as Cc, H as Ec, I as Ic, J as jc, K as Oc, L as Zn, N as _c, O as Pc, P as de, Q as Qr, R as Tc, S as Ac, U as Rc, V as rs, W as kc, X as Lt, Y as le, Z as ha, _ as Oe, $ as ba, a0 as Bc, a1 as gt, a2 as Or, a3 as xa, a4 as re, a5 as ya, a6 as ns, a7 as wa, a8 as Nt, a9 as as, aa as os, ab as Xe, ac as St, ad as Vt, ae as Mc, af as mt, ag as Lc, ah as Fc, ai as _r, aj as it, ak as Ct, al as Jt, am as Da, an as $e, ao as Na, ap as un, aq as Sa, ar as Vc, as as $c, at as Gc, au as Qt, av as Zt, aw as Pr, ax as et, ay as is, az as mr, aA as Et, aB as pn, aC as fn, aD as ss, aE as bt, aF as Ze, aG as Ca, aH as Wc, aI as Uc, aJ as Hc, aK as ls, aL as zc, aM as qc, aN as Yc, aO as Kc, aP as at, aQ as Xc, aR as Jc, aS as Zr, aT as ee, aU as cs, aV as Qc, aW as Zc, aX as ed, aY as ds, aZ as td, a_ as rd, a$ as nd, b0 as ad, b1 as od, b2 as id, b3 as sd, b4 as ld, b5 as ht, b6 as cd, b7 as dd, b8 as ud, b9 as pd, ba as fd, bb as en, bc as gd, bd as Sn, be as vd, bf as Wt, bg as md, bh as hd, bi as bd, bj as tn, bk as xd, bl as yd, bm as us, bn as Cn, bo as wd, bp as Dd, bq as Nd, br as go } from "./nivo-bar.es-DUNbYR2n.js";
2
+ import { bu as nD, bv as aD, bs as oD, bt as iD } from "./nivo-bar.es-DUNbYR2n.js";
3
3
  import * as Ne from "react";
4
- import ie, { useCallback as T, useMemo as V, useState as L, useRef as Z, useEffect as W, useContext as q, useId as Nd, Component as Sd, isValidElement as vo, Suspense as Cd, useLayoutEffect as Ea, useReducer as Ed } from "react";
5
- import { c as st, L as mo, F as Id } from "./FormDisabledProvider-B9PAKouU.js";
6
- import { InteractionType as jd } from "@azure/msal-browser";
7
- import { MsalAuthenticationTemplate as Od } from "@azure/msal-react";
8
- import { useNavigate as gn, useSearchParams as _d, useParams as ps, generatePath as hr, Link as ot, useLocation as Pd, Navigate as Fr } from "react-router-dom";
9
- import br, { unstable_batchedUpdates as Td } from "react-dom";
10
- import { useFormContext as It, Controller as Ia, useForm as Ad, FormProvider as Rd } from "react-hook-form";
11
- import { Pivot as kd } from "react-flexmonster";
12
- import { u as Bd, a as Md, b as fs, c as Ld } from "./useRenderDraggableInPortal-D0OLp7Qb.js";
13
- import { u as ct } from "./useGetApiData-BxwaAuis.js";
14
- import { u as Fd } from "./usePermissions-Da-QNIaC.js";
4
+ import ie, { useCallback as T, useMemo as V, useState as L, useRef as Z, useEffect as W, useContext as q, useId as Sd, Component as Cd, isValidElement as vo, Suspense as Ed, useLayoutEffect as Ea, useReducer as Id } from "react";
5
+ import { c as st, L as mo, F as jd } from "./FormDisabledProvider-bsJ46hjN.js";
6
+ import { InteractionType as Od } from "@azure/msal-browser";
7
+ import { MsalAuthenticationTemplate as _d } from "@azure/msal-react";
8
+ import { useNavigate as gn, useSearchParams as Pd, useParams as ps, generatePath as hr, Link as ot, useLocation as Td, Navigate as Fr } from "react-router-dom";
9
+ import br, { unstable_batchedUpdates as Ad } from "react-dom";
10
+ import { useFormContext as It, Controller as Ia, useForm as Rd, FormProvider as kd } from "react-hook-form";
11
+ import { Pivot as Bd } from "react-flexmonster";
12
+ import { u as Md, a as Ld, b as fs, c as Fd } from "./useRenderDraggableInPortal-D0OLp7Qb.js";
13
+ import { u as ct } from "./useGetApiData-9CmdrsjA.js";
15
14
  import { l as pr } from "./numberUtils-Bwf8nio8.js";
16
- const cw = ({ fileLoader: e, fileName: t, children: r }) => {
15
+ const lw = ({ fileLoader: e, fileName: t, children: r }) => {
17
16
  const n = T(async () => {
18
17
  var l, c;
19
18
  const a = await e();
@@ -742,7 +741,7 @@ const iu = /* @__PURE__ */ Ne.forwardRef(({
742
741
  ] }),
743
742
  /* @__PURE__ */ s.jsx("input", { id: r, type: "file", accept: n, onChange: p, hidden: !0, multiple: l })
744
743
  ] });
745
- }, dw = ({ onUpload: e, accept: t, children: r, className: n, size: a = "md" }) => {
744
+ }, cw = ({ onUpload: e, accept: t, children: r, className: n, size: a = "md" }) => {
746
745
  const o = T(async (l) => {
747
746
  if (l.target.files)
748
747
  try {
@@ -750,7 +749,7 @@ const iu = /* @__PURE__ */ Ne.forwardRef(({
750
749
  } finally {
751
750
  l.target.value = "";
752
751
  }
753
- }, [e]), i = Nd();
752
+ }, [e]), i = Sd();
754
753
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
755
754
  /* @__PURE__ */ s.jsx("label", { htmlFor: i, className: j("btn luminus-context-button text-primary", `btn-${a}`, n), children: r }),
756
755
  /* @__PURE__ */ s.jsx("input", { id: i, type: "file", accept: t, onChange: o, hidden: !0 })
@@ -828,7 +827,7 @@ const iu = /* @__PURE__ */ Ne.forwardRef(({
828
827
  /* @__PURE__ */ s.jsx(le, { onClick: () => c(1), disabled: e.getFullYear() >= i, children: /* @__PURE__ */ s.jsx(ba, {}) })
829
828
  ] });
830
829
  };
831
- class vu extends Sd {
830
+ class vu extends Cd {
832
831
  constructor(t) {
833
832
  super(t), this.state = { hasError: !1, is404Error: !1 }, this.reload = this.reload.bind(this);
834
833
  }
@@ -876,7 +875,7 @@ const mu = (e) => (r) => {
876
875
  widgetCard: bu
877
876
  }, jo = ({ children: e, title: t, headerContent: r }) => /* @__PURE__ */ s.jsx(nn, { className: j(xu.widgetCard, "luminus-widget"), title: t, headerContent: r, contentClassName: "h-100 overflow-auto", children: e }), yu = ({ children: e, title: t }) => {
878
877
  const { texts: { widget: r } } = q(de), n = gn();
879
- return /* @__PURE__ */ s.jsx(hu, { fallback: /* @__PURE__ */ s.jsx(jo, { title: t, children: r.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => n(-1), children: /* @__PURE__ */ s.jsx(Cd, { fallback: /* @__PURE__ */ s.jsx(jo, { title: t, children: /* @__PURE__ */ s.jsx(Vd, {}) }), children: e }) });
878
+ return /* @__PURE__ */ s.jsx(hu, { fallback: /* @__PURE__ */ s.jsx(jo, { title: t, children: r.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => n(-1), children: /* @__PURE__ */ s.jsx(Ed, { fallback: /* @__PURE__ */ s.jsx(jo, { title: t, children: /* @__PURE__ */ s.jsx(Vd, {}) }), children: e }) });
880
879
  }, na = ({ InputContainer: e = Or, label: t, value: r, onChange: n, hidden: a, disabled: o, className: i, type: l, withoutLabel: c, indeterminate: p, hint: d }) => {
881
880
  const u = Z(null);
882
881
  return W(() => {
@@ -885,7 +884,7 @@ const mu = (e) => (r) => {
885
884
  var g;
886
885
  n && n(((g = f.target) == null ? void 0 : g.checked) ?? !1);
887
886
  }, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
888
- }, uw = ({ InputContainer: e = Or, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size: d, dropdownItemsNameWidth: u, additionalColumns: f, hidden: g, disabled: v, displayIdAsName: b, CustomOnChangeComponent: h, className: m, archiveColumn: x, icon: D, hint: N, addNewOptionPath: y, refreshOptions: S, MiniDetailComponent: I, miniDetailPlacement: O, suggestedItems: E, suggestedItemsTitle: P }) => {
887
+ }, dw = ({ InputContainer: e = Or, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size: d, dropdownItemsNameWidth: u, additionalColumns: f, hidden: g, disabled: v, displayIdAsName: b, CustomOnChangeComponent: h, className: m, archiveColumn: x, icon: D, hint: N, addNewOptionPath: y, refreshOptions: S, MiniDetailComponent: I, miniDetailPlacement: O, suggestedItems: E, suggestedItemsTitle: P }) => {
889
888
  const [k, M] = L(!1), C = T((F) => {
890
889
  l && l(F);
891
890
  }, [l]), Q = T((F) => {
@@ -931,7 +930,7 @@ const mu = (e) => (r) => {
931
930
  ] }),
932
931
  Y.current && /* @__PURE__ */ s.jsx(wa, { show: k, onCancel: () => M(!1), items: t, currentSelection: i, onSelectionChange: Q, onSearchQueryChange: n, texts: a, itemsNameWidth: u, additionalColumns: f, isLoading: o, disabled: v, inputRef: Y, archiveColumn: x, displayIdAsName: b, addNewOptionPath: y, refreshOptions: S, suggestedItems: E, suggestedItemsTitle: P })
933
932
  ] }) });
934
- }, pw = ({ InputContainer: e = Or, value: t, onChange: r, label: n, size: a, showClearIcon: o, clearValue: i, hidden: l, disabled: c, rows: p, withoutLabel: d, debounceMs: u, minLength: f, maxLength: g, className: v, hint: b }) => {
933
+ }, uw = ({ InputContainer: e = Or, value: t, onChange: r, label: n, size: a, showClearIcon: o, clearValue: i, hidden: l, disabled: c, rows: p, withoutLabel: d, debounceMs: u, minLength: f, maxLength: g, className: v, hint: b }) => {
935
934
  const h = T(() => {
936
935
  if (!r)
937
936
  return;
@@ -957,7 +956,7 @@ const mu = (e) => (r) => {
957
956
  /* @__PURE__ */ s.jsx(Oe.Control, { as: "textarea", size: a, value: u ? x : t ?? "", onChange: y, hidden: l, disabled: c, rows: p ?? 2, className: "w-100", minLength: f, maxLength: g }),
958
957
  o && t && r && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: h, children: /* @__PURE__ */ s.jsx(Nt, {}) }) })
959
958
  ] });
960
- }, fw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: d, clearValue: u, className: f, step: g, stepperStep: v = 1, min: b, max: h, hint: m }) => {
959
+ }, pw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: d, clearValue: u, className: f, step: g, stepperStep: v = 1, min: b, max: h, hint: m }) => {
961
960
  const x = T(() => {
962
961
  if (!r)
963
962
  return;
@@ -1544,7 +1543,7 @@ function Aa(e) {
1544
1543
  var t = Wu(e);
1545
1544
  return ie.createElement(Bu, Object.assign({}, t));
1546
1545
  }
1547
- const gw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: d, clearValue: u, className: f, step: g, noSelectOnFocus: v, decimalScale: b, fixedDecimalScale: h = !1, numberPrefix: m, numberSuffix: x, min: D, max: N, hint: y }) => {
1546
+ const fw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: d, clearValue: u, className: f, step: g, noSelectOnFocus: v, decimalScale: b, fixedDecimalScale: h = !1, numberPrefix: m, numberSuffix: x, min: D, max: N, hint: y }) => {
1548
1547
  const S = T(() => {
1549
1548
  if (!r)
1550
1549
  return;
@@ -1578,12 +1577,12 @@ const gw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
1578
1577
  }), step: g, min: D, max: N }),
1579
1578
  d && t !== null && r && !p && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ s.jsx(Nt, {}) }) })
1580
1579
  ] });
1581
- }, vw = ({ InputContainer: e = Xe, label: t, options: r, disabled: n, hidden: a, className: o, value: i, onChange: l }) => {
1580
+ }, gw = ({ InputContainer: e = Xe, label: t, options: r, disabled: n, hidden: a, className: o, value: i, onChange: l }) => {
1582
1581
  const c = T((p) => {
1583
1582
  l && l(p.target.value);
1584
1583
  }, [l]);
1585
1584
  return /* @__PURE__ */ s.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, disabled: n, children: r.map((p) => /* @__PURE__ */ s.jsx(Oe.Check, { id: `radio-${p.id}`, label: p.name, type: "radio", value: p.id ?? "", checked: i === p.id, onChange: c, hidden: a, disabled: n, className: "w-100" }, p.id)) });
1586
- }, mw = ({ InputContainer: e = Xe, formField: t, label: r, resetsFields: n, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: p, onChange: d, className: u }) => {
1585
+ }, vw = ({ InputContainer: e = Xe, formField: t, label: r, resetsFields: n, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: p, onChange: d, className: u }) => {
1587
1586
  const { register: f, formState: g, setValue: v } = It(), b = St({ falseIfNotInit: !0 }), [h, m] = L(void 0), [x, D] = L(!1);
1588
1587
  W(() => {
1589
1588
  const S = t.split(".");
@@ -1603,7 +1602,7 @@ const gw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
1603
1602
  }), isInvalid: y, hidden: i, disabled: N, className: "w-100" }),
1604
1603
  h && /* @__PURE__ */ s.jsx(Vt, { message: h.message })
1605
1604
  ] });
1606
- }, hw = ({ InputContainer: e = Xe, label: t, formField: r, options: n, resetsFields: a, required: o, disabled: i, hidden: l, onChange: c, className: p }) => {
1605
+ }, mw = ({ InputContainer: e = Xe, label: t, formField: r, options: n, resetsFields: a, required: o, disabled: i, hidden: l, onChange: c, className: p }) => {
1607
1606
  const { register: d, formState: u, setValue: f, watch: g } = It(), v = St({ falseIfNotInit: !0 }), [b, h] = L(void 0), [m, x] = L(!1), D = V(() => n, [n]), N = V(() => i || v, [i, v]);
1608
1607
  W(() => {
1609
1608
  const S = r.split(".");
@@ -1624,7 +1623,7 @@ const gw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
1624
1623
  }), isInvalid: y, hidden: l, disabled: N, className: "w-100" }, S.id)),
1625
1624
  b && /* @__PURE__ */ s.jsx(Vt, { message: b.message })
1626
1625
  ] });
1627
- }, bw = ({ InputContainer: e = Xe, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items: d, onSearchQueryChange: u, selectedItemNavigateTo: f, texts: g, dropdownItemsNameWidth: v, isLoading: b, withoutLabel: h, additionalColumns: m, CustomOnChangeComponent: x, icon: D, displayIdAsName: N, onSelect: y, className: S, archiveColumn: I, hint: O, addNewOptionPath: E, refreshOptions: P, MiniDetailComponent: k, miniDetailPlacement: M, suggestedItems: C, suggestedItemsTitle: Q }) => {
1626
+ }, hw = ({ InputContainer: e = Xe, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items: d, onSearchQueryChange: u, selectedItemNavigateTo: f, texts: g, dropdownItemsNameWidth: v, isLoading: b, withoutLabel: h, additionalColumns: m, CustomOnChangeComponent: x, icon: D, displayIdAsName: N, onSelect: y, className: S, archiveColumn: I, hint: O, addNewOptionPath: E, refreshOptions: P, MiniDetailComponent: k, miniDetailPlacement: M, suggestedItems: C, suggestedItemsTitle: Q }) => {
1628
1627
  const { formState: Y, setValue: B, watch: R, control: $ } = It(), F = St({ falseIfNotInit: !0 }), [z, K] = L(void 0), [te, ae] = L(!1), [oe, H] = L(!1), U = R(t) ?? null, pe = U === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : R(`${t}-DropdownName`), se = V(() => U == null ? null : { id: U ?? null, name: pe ?? "" }, [U, pe]), De = T(() => {
1629
1628
  const A = t.split(".");
1630
1629
  let J = Y.errors;
@@ -1677,7 +1676,7 @@ const gw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
1677
1676
  z && /* @__PURE__ */ s.jsx(Vt, { message: z.message }),
1678
1677
  Ce.current && /* @__PURE__ */ s.jsx(wa, { show: te, onCancel: fe, items: d, currentSelection: se, onSelectionChange: _, onSearchQueryChange: u, texts: g, itemsNameWidth: v, additionalColumns: m, displayIdAsName: N, isLoading: b, disabled: G, inputRef: Ce, archiveColumn: I, addNewOptionPath: E, refreshOptions: P, suggestedItems: C, suggestedItemsTitle: Q })
1679
1678
  ] }) });
1680
- }, xw = ({ InputContainer: e = Xe, label: t, formField: r, hidden: n, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: p, accept: d, withoutLabel: u, hint: f, className: g }) => {
1679
+ }, bw = ({ InputContainer: e = Xe, label: t, formField: r, hidden: n, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: p, accept: d, withoutLabel: u, hint: f, className: g }) => {
1681
1680
  const { watch: v, setValue: b, register: h, formState: m } = It(), x = St({ falseIfNotInit: !0 }), [D, N] = L(!1), [y, S] = L(void 0), I = T(() => {
1682
1681
  b(r, "");
1683
1682
  }, [b, r]), O = T(() => {
@@ -1764,7 +1763,7 @@ const gw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
1764
1763
  M && /* @__PURE__ */ s.jsx(Vt, { message: M.message }),
1765
1764
  De.current && /* @__PURE__ */ s.jsx(wa, { show: Q, onCancel: () => Y(!1), items: se, currentSelection: K ?? null, onSelectionChange: oe, onSearchQueryChange: H, texts: S, disabled: U, inputRef: De, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: m, refreshOptions: x })
1766
1765
  ] }) });
1767
- }, yw = ({ InputContainer: e = Xe, formField: t, label: r, placeholder: n, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: p, disabled: d, withoutLabel: u, step: f, stepperStep: g = 1, className: v, min: b, max: h, onChange: m, hint: x }) => {
1766
+ }, xw = ({ InputContainer: e = Xe, formField: t, label: r, placeholder: n, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: p, disabled: d, withoutLabel: u, step: f, stepperStep: g = 1, className: v, min: b, max: h, onChange: m, hint: x }) => {
1768
1767
  const { register: D, formState: N, setValue: y, watch: S } = It(), I = St({ falseIfNotInit: !0 }), [O, E] = L(void 0), [P, k] = L(!1), M = T(($, F, z) => {
1769
1768
  y($, pr(F, b, h), z);
1770
1769
  }, [h, b, y]), C = T(() => {
@@ -1807,7 +1806,7 @@ const gw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
1807
1806
  i && S(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(Nt, {}) }) }),
1808
1807
  O && /* @__PURE__ */ s.jsx(Vt, { message: O.message })
1809
1808
  ] });
1810
- }, ww = ({ InputContainer: e = Xe, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: p, withoutLabel: d, step: u, size: f, CustomOnChangeComponent: g, noSelectOnFocus: v, className: b, decimalScale: h = 2, fixedDecimalScale: m = !1, numberPrefix: x, numberSuffix: D, min: N, max: y, onChange: S, hint: I }) => {
1809
+ }, yw = ({ InputContainer: e = Xe, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: p, withoutLabel: d, step: u, size: f, CustomOnChangeComponent: g, noSelectOnFocus: v, className: b, decimalScale: h = 2, fixedDecimalScale: m = !1, numberPrefix: x, numberSuffix: D, min: N, max: y, onChange: S, hint: I }) => {
1811
1810
  const { formState: O, setValue: E, watch: P, control: k } = It(), M = St({ falseIfNotInit: !0 }), [C, Q] = L(void 0), [Y, B] = L(!1), R = T(() => {
1812
1811
  const te = i ?? null;
1813
1812
  E(t, te !== null ? Number(te) : null, {
@@ -1851,7 +1850,7 @@ const gw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
1851
1850
  o && P(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: R, children: /* @__PURE__ */ s.jsx(Nt, {}) }) }),
1852
1851
  C && /* @__PURE__ */ s.jsx(Vt, { message: C.message })
1853
1852
  ] });
1854
- }, Dw = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(rs, { size: 12 }), inputId: r = "context-file-input", accept: n = "*", onUpload: a, multiple: o, className: i, children: l, ...c }) => {
1853
+ }, ww = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(rs, { size: 12 }), inputId: r = "context-file-input", accept: n = "*", onUpload: a, multiple: o, className: i, children: l, ...c }) => {
1855
1854
  const p = (d) => {
1856
1855
  d.target.files && (a(d.target.files), d.target.value = "");
1857
1856
  };
@@ -1956,7 +1955,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
1956
1955
  window.open(x ?? "", "_blank", "noreferrer");
1957
1956
  }, [o]);
1958
1957
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
1959
- kd,
1958
+ Bd,
1960
1959
  {
1961
1960
  ref: u,
1962
1961
  global: f,
@@ -2130,8 +2129,8 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
2130
2129
  n(o);
2131
2130
  });
2132
2131
  }, [t, e]), { mappings: r };
2133
- }, Nw = ({ reportType: e, title: t, data: r, filterElements: n, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: l, localizationJsonFile: c, localizationTransformer: p, hyperlinkColumn: d }) => {
2134
- const { texts: { reports: u } } = q(de), { confirm: f } = _r(), g = gn(), [v] = _d(), { id: b } = ps(), h = V(() => b === void 0 ? null : Number(b), [b]), m = T((H) => {
2132
+ }, Dw = ({ reportType: e, title: t, data: r, filterElements: n, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: l, localizationJsonFile: c, localizationTransformer: p, hyperlinkColumn: d }) => {
2133
+ const { texts: { reports: u } } = q(de), { confirm: f } = _r(), g = gn(), [v] = Pd(), { id: b } = ps(), h = V(() => b === void 0 ? null : Number(b), [b]), m = T((H) => {
2135
2134
  const U = H === null ? "" : H.toString();
2136
2135
  g(hr(a(e), { id: U }) + "?" + v.toString(), {
2137
2136
  replace: !0,
@@ -2201,7 +2200,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
2201
2200
  }
2202
2201
  ) : null
2203
2202
  ] });
2204
- }, Sw = ({ cell: { value: e } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: e ? /* @__PURE__ */ s.jsx(is, { name: e, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), Zu = ({ knownTypes: e, typeFilters: t, onChangeTypeFilters: r }) => /* @__PURE__ */ s.jsx("div", { className: "mb-1 d-flex justify-content-center gap-2", children: e.map((n) => /* @__PURE__ */ s.jsx("div", { role: "button", style: {
2203
+ }, Nw = ({ cell: { value: e } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: e ? /* @__PURE__ */ s.jsx(is, { name: e, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), Zu = ({ knownTypes: e, typeFilters: t, onChangeTypeFilters: r }) => /* @__PURE__ */ s.jsx("div", { className: "mb-1 d-flex justify-content-center gap-2", children: e.map((n) => /* @__PURE__ */ s.jsx("div", { role: "button", style: {
2205
2204
  height: "14px",
2206
2205
  width: "14px",
2207
2206
  borderRadius: "50%",
@@ -2254,7 +2253,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
2254
2253
  }, _n = {
2255
2254
  apiGet: "/messageBoard",
2256
2255
  apiDelete: "/messageBoard/"
2257
- }, Cw = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = _n.apiGet, apiDelete: n = _n.apiDelete } = _n, getIcon: a, getLinksTo: o }) => {
2256
+ }, Sw = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = _n.apiGet, apiDelete: n = _n.apiDelete } = _n, getIcon: a, getLinksTo: o }) => {
2258
2257
  const l = it(), [c, p] = L([]), [d, u] = L(!1), [f, g] = L(!1), [v, b] = L(!1), h = T(async () => {
2259
2258
  g(!0), await l.get(r).then(({ data: y }) => {
2260
2259
  p(y), u(!0), g(!1);
@@ -2287,7 +2286,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
2287
2286
  "full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
2288
2287
  fullHeightNoOverflow: np,
2289
2288
  disabled: ap
2290
- }, Ew = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: r, disabled: n, className: a, children: o }) => e !== t ? null : /* @__PURE__ */ s.jsx("div", { className: j("luminus-tab-panel", Pn.tabPanel, { [Pn.fullHeightNoOverflow]: r }, { disabled: n }, { [Pn.disabled]: n }, a), children: o }), op = "_join-line_1q9e8_1", ip = {
2289
+ }, Cw = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: r, disabled: n, className: a, children: o }) => e !== t ? null : /* @__PURE__ */ s.jsx("div", { className: j("luminus-tab-panel", Pn.tabPanel, { [Pn.fullHeightNoOverflow]: r }, { disabled: n }, { [Pn.disabled]: n }, a), children: o }), op = "_join-line_1q9e8_1", ip = {
2291
2290
  "join-line": "_join-line_1q9e8_1",
2292
2291
  joinLine: op
2293
2292
  }, sp = ({ activeTab: e, onSelect: t, children: r, vertical: n, verticalStepper: a }) => /* @__PURE__ */ s.jsx("div", { className: j("luminus-tabs d-flex mb-2", { "gap-1": !a }, { "gap-0": a }, {
@@ -2309,7 +2308,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
2309
2308
  vertical: dp
2310
2309
  }, up = ({ eventKey: e, className: t, onClick: r, disabled: n, vertical: a, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: j("luminus-tab text-primary rounded", Tn.tab, t, {
2311
2310
  disabled: n
2312
- }, { [Tn.disabled]: n }, { vertical: a }, { [Tn.vertical]: a }), onClick: () => r && !n && r(e), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(re, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: o }) : o }), Iw = ({ tabs: e, activeTab: t, onSelect: r, ...n }) => {
2311
+ }, { [Tn.disabled]: n }, { vertical: a }, { [Tn.vertical]: a }), onClick: () => r && !n && r(e), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(re, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: o }) : o }), Ew = ({ tabs: e, activeTab: t, onSelect: r, ...n }) => {
2313
2312
  var i;
2314
2313
  const { ProjectIconComponent: a } = q(de), { isMobile: o } = fn();
2315
2314
  return o ? /* @__PURE__ */ s.jsx(Qt, { toggle: /* @__PURE__ */ s.jsx(Zt, { as: Pr, text: ((i = e.find((l) => l.id === t)) == null ? void 0 : i.name) ?? "", icon: /* @__PURE__ */ s.jsx(a, { icon: "chevron-down" }) }), ...n, children: e.map((l) => /* @__PURE__ */ s.jsx(et, { onClick: () => r(l.id), children: l.name }, l.id)) }) : /* @__PURE__ */ s.jsx(sp, { activeTab: t, onSelect: (l) => r(l), ...n, children: e.map((l) => /* @__PURE__ */ s.jsx(up, { eventKey: l.id, children: l.name }, l.id)) });
@@ -2362,7 +2361,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
2362
2361
  ] }) }) }),
2363
2362
  /* @__PURE__ */ s.jsx(mp, { shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n })
2364
2363
  ] }) });
2365
- }, jw = ({ IconComponent: e, IconTypeArray: t }) => {
2364
+ }, Iw = ({ IconComponent: e, IconTypeArray: t }) => {
2366
2365
  const { texts: r } = q(de), { shortcutLinks: n, editShortcutLink: a, deleteShortcutLink: o } = Ws();
2367
2366
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: n !== null && n.length > 0 ? /* @__PURE__ */ s.jsxs(iu, { title: r.shortcutLinks.shortcutLinksSetting, children: [
2368
2367
  /* @__PURE__ */ s.jsx("thead", { className: "fw-bold", children: /* @__PURE__ */ s.jsxs("tr", { children: [
@@ -2379,7 +2378,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
2379
2378
  linkAddButton: xp,
2380
2379
  createLinkRow: yp
2381
2380
  }, wp = ({ shortcutLink: e, IconComponent: t }) => /* @__PURE__ */ s.jsx(Et, { text: e.name, placement: "bottom", children: /* @__PURE__ */ s.jsx(ot, { to: e.url, className: qt.linkButton, children: /* @__PURE__ */ s.jsx(t, { icon: e.icon }) }) }), Dp = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconComponent: a, IconTypeArray: o }) => {
2382
- const i = Pd(), { texts: l } = q(de), [c, p] = L("star-outline"), [d, u] = L(n ? document.title.replace(n, "") : document.title), f = T(async () => {
2381
+ const i = Td(), { texts: l } = q(de), [c, p] = L("star-outline"), [d, u] = L(n ? document.title.replace(n, "") : document.title), f = T(async () => {
2383
2382
  await r({ icon: c, name: d, url: i.pathname + i.search }), e();
2384
2383
  }, [e, r, c, i.pathname, i.search, d]), g = V(() => i.pathname + i.search, [i.pathname, i.search]);
2385
2384
  return /* @__PURE__ */ s.jsxs($e, { show: t, onHide: e, size: "sm", children: [
@@ -2409,7 +2408,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
2409
2408
  /* @__PURE__ */ s.jsx(Et, { text: o.shortcutLinks.addShortcut, placement: "bottom", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: j(qt.linkButton, qt.linkAddButton), onClick: () => l(!0), children: /* @__PURE__ */ s.jsx(a, { icon: "add" }) }) }),
2410
2409
  (i || c) && /* @__PURE__ */ s.jsx(Dp, { IconComponent: e, IconTypeArray: t, closeModal: () => l(!1), createLink: n, isOpen: i, pageTitlePrefix: r })
2411
2410
  ] });
2412
- }, Ow = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r }) => {
2411
+ }, jw = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r }) => {
2413
2412
  const { shortcutLinks: n, createShortcutLink: a } = Ws(), o = V(() => n !== null && n.length < aa, [n]);
2414
2413
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex gap-2", children: [
2415
2414
  n == null ? void 0 : n.slice(0, aa).map((i, l) => i !== null ? /* @__PURE__ */ s.jsx(wp, { shortcutLink: i, IconComponent: e }, l) : null),
@@ -2447,7 +2446,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
2447
2446
  if (e == null)
2448
2447
  throw new Error("Tried to make operation on null shortcutLinks.");
2449
2448
  return e;
2450
- }, _w = ({ children: e, referenceId: t }) => {
2449
+ }, Ow = ({ children: e, referenceId: t }) => {
2451
2450
  const { user: r } = q(Ct), n = T((g) => g.map((v) => ({ id: v.id, icon: v.icon, name: v.name, url: v.url })), []), { data: a, reloadData: o } = ct(`/dynamicForms/lookup-data-all?referenceId=${t}&employee=${r == null ? void 0 : r.personalNumber}`, {
2452
2451
  silent: !0,
2453
2452
  dataTransformer: n,
@@ -2547,7 +2546,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
2547
2546
  n(o), localStorage.setItem(t, JSON.stringify(o));
2548
2547
  }, [t]);
2549
2548
  return { dashboardConfig: r, onChangeDashboardConfig: a };
2550
- }, Pw = ({ widgetGroups: e, availableWidgets: t, editMode: r, defaultDashboardConfig: n, dashboardConfigKey: a }) => {
2549
+ }, _w = ({ widgetGroups: e, availableWidgets: t, editMode: r, defaultDashboardConfig: n, dashboardConfigKey: a }) => {
2551
2550
  var g;
2552
2551
  const { texts: { homeDashboard: o } } = q(de), { dashboardConfig: i, onChangeDashboardConfig: l } = Up(n, a), c = T((v, b) => {
2553
2552
  var h, m;
@@ -2601,7 +2600,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
2601
2600
  md: qp,
2602
2601
  lg: Yp,
2603
2602
  light: Kp
2604
- }, Tw = ({ children: e, color: t = "primary", size: r = "md", rounded: n, className: a, variant: o = "filled", ...i }) => {
2603
+ }, Pw = ({ children: e, color: t = "primary", size: r = "md", rounded: n, className: a, variant: o = "filled", ...i }) => {
2605
2604
  const l = V(() => o === "filled" ? j(`bg-${t}`) : o === "outline" ? j(`text-${t} border-${t} border bg-white`) : "", [t, o]);
2606
2605
  return /* @__PURE__ */ s.jsx("span", { className: j("luminus-badge badge", l, a, { "rounded-pill": n }, { "text-dark": t === "light" }, { [An.light]: t === "light" }, An.badge, An[r]), ...i, children: e });
2607
2606
  }, Xp = "_collapse-icon_1ahhn_1", Jp = "_collapsed_1ahhn_6", Wo = {
@@ -2693,7 +2692,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
2693
2692
  return W(() => {
2694
2693
  c();
2695
2694
  }, [c]), { isLoading: n, searchItems: o };
2696
- }, Aw = ({ searchTypes: e, navigateFunction: t, currentPath: r, homePath: n = "/", className: a }) => {
2695
+ }, Tw = ({ searchTypes: e, navigateFunction: t, currentPath: r, homePath: n = "/", className: a }) => {
2697
2696
  var x;
2698
2697
  const { texts: { appSearch: o } } = q(de), [i, l] = L(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), c = V(() => e.find((D) => D.key === i) ?? null, [e, i]), [p, d] = L(""), [u, f] = Ca(encodeURIComponent(p), 500), { isLoading: g, searchItems: v } = gf(c, u), [b, h] = L(!1);
2699
2698
  W(() => {
@@ -3456,7 +3455,7 @@ function eg(e, t) {
3456
3455
  return oe ? ae : ee({}, ae, {
3457
3456
  subscription: De
3458
3457
  });
3459
- }, [oe, ae, De]), fe = Ed(Xf, qf, Zf), Ce = fe[0], Le = Ce[0], He = fe[1];
3458
+ }, [oe, ae, De]), fe = Id(Xf, qf, Zf), Ce = fe[0], Le = Ce[0], He = fe[1];
3460
3459
  if (Le && Le.error)
3461
3460
  throw Le.error;
3462
3461
  var dt = Z(), G = Z(K), A = Z(), J = Z(!1), ue = C(function() {
@@ -3682,7 +3681,7 @@ function Dg(e) {
3682
3681
  };
3683
3682
  }
3684
3683
  const tl = /* @__PURE__ */ Dg();
3685
- Tf(Td);
3684
+ Tf(Ad);
3686
3685
  function Ng(e, t) {
3687
3686
  if (e.length !== t.length)
3688
3687
  return !1;
@@ -9116,7 +9115,7 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
9116
9115
  left: kx,
9117
9116
  right: Bx
9118
9117
  }, Mx = ({ show: e, onClose: t, photos: r, defaultIndex: n, uploadPhotosText: a, noPhotosText: o, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken: p, placeholder: d, ImgComponent: u = oc, onChangeOrder: f }) => {
9119
- const g = Bd(), [v, b] = L(r);
9118
+ const g = Md(), [v, b] = L(r);
9120
9119
  W(() => {
9121
9120
  b(r);
9122
9121
  }, [r]);
@@ -9231,10 +9230,10 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
9231
9230
  ] }) : /* @__PURE__ */ s.jsx(Et, { text: r ?? "", placement: "left", children: /* @__PURE__ */ s.jsx("div", { role: "button", className: j("rounded p-3 d-flex justify-content-center"), onClick: () => h(!0), children: /* @__PURE__ */ s.jsx("img", { src: l, alt: "placeholder", className: "rounded w-25" }) }) }),
9232
9231
  /* @__PURE__ */ s.jsx(Mx, { show: b && !d, onClose: () => h(!1), photos: e, defaultIndex: f ?? 0, uploadPhotosText: r, noPhotosText: n, onUploadPhotos: t, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c, onChangeOrder: u })
9233
9232
  ] });
9234
- }, Rw = ({ children: e }) => {
9233
+ }, Aw = ({ children: e }) => {
9235
9234
  var c, p, d;
9236
9235
  const { useMsal: t, msalScopes: r, msalExtraScopes: n } = q(od), { isAuthenticated: a } = id(), { userLoginState: o } = q(Ct), i = o.state === sd.LOGGING_IN, l = o.user && ((c = o.user) == null ? void 0 : c.permissions) && ((d = (p = o.user) == null ? void 0 : p.permissions) == null ? void 0 : d.length) > 0;
9237
- return t ? /* @__PURE__ */ s.jsx(Od, { interactionType: jd.Redirect, authenticationRequest: { scopes: r, extraScopesToConsent: n }, children: i || !a() ? /* @__PURE__ */ s.jsx(mo, {}) : o.user ? l ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(Fr, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(Fr, { to: "/no-user-login", replace: !0 }) }) : i ? /* @__PURE__ */ s.jsx(mo, {}) : !a() || !o.user ? /* @__PURE__ */ s.jsx(Fr, { to: "/login", replace: !0 }) : l ? e : /* @__PURE__ */ s.jsx(Fr, { to: "/user-not-permitted", replace: !0 });
9236
+ return t ? /* @__PURE__ */ s.jsx(_d, { interactionType: Od.Redirect, authenticationRequest: { scopes: r, extraScopesToConsent: n }, children: i || !a() ? /* @__PURE__ */ s.jsx(mo, {}) : o.user ? l ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(Fr, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(Fr, { to: "/no-user-login", replace: !0 }) }) : i ? /* @__PURE__ */ s.jsx(mo, {}) : !a() || !o.user ? /* @__PURE__ */ s.jsx(Fr, { to: "/login", replace: !0 }) : l ? e : /* @__PURE__ */ s.jsx(Fr, { to: "/user-not-permitted", replace: !0 });
9238
9237
  }, Fx = "_item_z9z4m_1", Vx = "_level-success_z9z4m_4", $x = "_level-info_z9z4m_10", Gx = "_level-warning_z9z4m_16", Wx = "_level-danger_z9z4m_22", Ux = "_type-icon_z9z4m_28", Jn = {
9239
9238
  item: Fx,
9240
9239
  "level-success": "_level-success_z9z4m_4",
@@ -9264,7 +9263,7 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
9264
9263
  !n && /* @__PURE__ */ s.jsx("div", { className: j(Jn.typeIcon), children: r ?? o() }),
9265
9264
  /* @__PURE__ */ s.jsx(re, { variant: "body2", className: "w-100", children: t })
9266
9265
  ] });
9267
- }, kw = ({ version: e }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
9266
+ }, Rw = ({ version: e }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
9268
9267
  position: "fixed",
9269
9268
  right: "0px",
9270
9269
  bottom: "0px",
@@ -9296,7 +9295,7 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
9296
9295
  contentText: ey,
9297
9296
  "step-icon": "_step-icon_g1754_14",
9298
9297
  stepIcon: ty
9299
- }, Bw = ({ steps: e }) => /* @__PURE__ */ s.jsx("div", { className: At.timeline, children: e.sort((t, r) => $d(t.date ?? /* @__PURE__ */ new Date(), r.date ?? /* @__PURE__ */ new Date())).map((t, r) => /* @__PURE__ */ s.jsxs("div", { className: j("row g-0 gx-3", At.stepContainer), children: [
9298
+ }, kw = ({ steps: e }) => /* @__PURE__ */ s.jsx("div", { className: At.timeline, children: e.sort((t, r) => $d(t.date ?? /* @__PURE__ */ new Date(), r.date ?? /* @__PURE__ */ new Date())).map((t, r) => /* @__PURE__ */ s.jsxs("div", { className: j("row g-0 gx-3", At.stepContainer), children: [
9300
9299
  /* @__PURE__ */ s.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ s.jsxs(re, { variant: "caption", className: j("h-100 d-flex flex-column align-items-end justify-content-center gap-0", At.stepDate), children: [
9301
9300
  /* @__PURE__ */ s.jsx("div", { children: Lt(t.date, "dd.MM.yyyy") }),
9302
9301
  /* @__PURE__ */ s.jsx("div", { children: Lt(t.date, "HH:mm") })
@@ -9427,7 +9426,7 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
9427
9426
  }), t(i);
9428
9427
  }, [r, t]);
9429
9428
  return { setFromToProp: n, handleArrowClick: a, handleRangeChange: o };
9430
- }, Mw = ({ fromtoState: [e, t], className: r, size: n }) => {
9429
+ }, Bw = ({ fromtoState: [e, t], className: r, size: n }) => {
9431
9430
  const { texts: { date: a }, ProjectIconComponent: o } = q(de), [i, l] = L("C"), { handleArrowClick: c, handleRangeChange: p, setFromToProp: d } = ly(i, l, t), u = V(() => i === "C", [i]), f = Z(!0);
9432
9431
  return W(() => {
9433
9432
  if (f.current) {
@@ -9447,17 +9446,17 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
9447
9446
  c(1);
9448
9447
  }, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-right" }) })
9449
9448
  ] });
9450
- }, Lw = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: r, yearMax: n }) => {
9451
- const { localizationContext: a } = q(de), { dateFnsLocale: o } = q(a), { searchParams: i, setSearch: l } = Md(), c = i.get(t), p = c ? mr(c) : e, d = T((u) => {
9449
+ }, Mw = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: r, yearMax: n }) => {
9450
+ const { localizationContext: a } = q(de), { dateFnsLocale: o } = q(a), { searchParams: i, setSearch: l } = Ld(), c = i.get(t), p = c ? mr(c) : e, d = T((u) => {
9452
9451
  l(t, ea(u, { representation: "date" }));
9453
9452
  }, [t, l]);
9454
9453
  return /* @__PURE__ */ s.jsx(uu, { month: p, onChangeMonth: d, locale: o, yearMin: r, yearMax: n });
9455
- }, Fw = ({ defaultYear: e, searchKey: t = "yearFrom", ...r }) => {
9454
+ }, Lw = ({ defaultYear: e, searchKey: t = "yearFrom", ...r }) => {
9456
9455
  const [n, a] = fs(t, ea(e, { representation: "date" })), o = n ? mr(n) : e, i = T((l) => {
9457
9456
  a(ea(l, { representation: "date" }));
9458
9457
  }, [a]);
9459
9458
  return /* @__PURE__ */ s.jsx(gu, { year: o, onChangeYear: i, ...r });
9460
- }, Vw = ({ data: e, showLegend: t = !1, legendPosition: r = "left", onClick: n }) => {
9459
+ }, Fw = ({ data: e, showLegend: t = !1, legendPosition: r = "left", onClick: n }) => {
9461
9460
  const { chartColorPalette: a } = q(de);
9462
9461
  return /* @__PURE__ */ s.jsx(pd, { data: e, margin: {
9463
9462
  top: 50,
@@ -9501,7 +9500,7 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
9501
9500
  /* @__PURE__ */ s.jsx(re, { variant: "body", className: "fw-bold", children: (c = r == null ? void 0 : r[o]) == null ? void 0 : c[a] })
9502
9501
  ] })
9503
9502
  ] });
9504
- }, $w = ({ data: e, xKey: t, yKeys: r, translateKey: n, usePercentageValue: a = !1, variant: o = "default", legendPosition: i, noSort: l = !1 }) => {
9503
+ }, Vw = ({ data: e, xKey: t, yKeys: r, translateKey: n, usePercentageValue: a = !1, variant: o = "default", legendPosition: i, noSort: l = !1 }) => {
9505
9504
  const { chartColorPalette: c } = q(de), [p, d] = L(/* @__PURE__ */ new Set()), u = (y) => {
9506
9505
  d((S) => {
9507
9506
  const I = new Set(S);
@@ -9837,7 +9836,7 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
9837
9836
  apiItemDelete: "/dynamicForms/delete",
9838
9837
  apiItemCreate: "/dynamicForms/insert",
9839
9838
  apiExportGet: "/dynamicForms/export"
9840
- }, Gw = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Hi.appDetail } = Hi, apiUrls: { apiSchemaGet: p = Rt.apiSchemaGet, apiDataGet: d = Rt.apiDataGet, apiItemPost: u = Rt.apiItemPost, apiItemDelete: f = Rt.apiItemDelete, apiItemCreate: g = Rt.apiItemCreate, apiExportGet: v = Rt.apiExportGet } = Rt, customPickers: b }) => {
9839
+ }, $w = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Hi.appDetail } = Hi, apiUrls: { apiSchemaGet: p = Rt.apiSchemaGet, apiDataGet: d = Rt.apiDataGet, apiItemPost: u = Rt.apiItemPost, apiItemDelete: f = Rt.apiItemDelete, apiItemCreate: g = Rt.apiItemCreate, apiExportGet: v = Rt.apiExportGet } = Rt, customPickers: b }) => {
9841
9840
  var me, ce, Be, Je, Qe, Gt;
9842
9841
  const { texts: { dynamicForms: h }, ProjectIconComponent: m } = q(de), x = it(), { startLoading: D, stopLoading: N } = q(Jt), [y, S] = L(null), [I, O] = L(null), [E, P] = L(null), [k, M] = L(null), [C, Q] = L(!1), { addNotification: Y } = Da(), [B, R] = L([]), { confirm: $ } = _r(), F = 20, z = F + 1, K = k ? Math.ceil(k.length / F) : 1, te = t ? t > 1 : !1, ae = t ? t < K : !1, oe = t ? (t - 1) * F : 0, H = t ? t * F : F, U = V(() => k ? k.length > z : !1, [k, z]), pe = V(() => U ? (k == null ? void 0 : k.slice(oe, H)) ?? null : k ?? null, [U, k, oe, H]), [se, De] = L(null);
9843
9842
  W(() => {
@@ -10015,7 +10014,7 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
10015
10014
  appDetail: "/settings/:id"
10016
10015
  }, qi = {
10017
10016
  apiDynamicFormsGet: "/dynamicForms"
10018
- }, ky = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ s.jsx(Et, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ s.jsx("div", { children: t }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: t }), Ww = ({ activeId: e, otherForms: t = [], groupsDefs: r = [], searchQuery: n, fullSize: a, appUrls: { appDetail: o = zi.appDetail } = zi, apiUrls: { apiDynamicFormsGet: i = qi.apiDynamicFormsGet } = qi }) => {
10017
+ }, ky = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ s.jsx(Et, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ s.jsx("div", { children: t }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: t }), Gw = ({ activeId: e, otherForms: t = [], groupsDefs: r = [], searchQuery: n, fullSize: a, appUrls: { appDetail: o = zi.appDetail } = zi, apiUrls: { apiDynamicFormsGet: i = qi.apiDynamicFormsGet } = qi }) => {
10019
10018
  const l = it(), { startLoading: c, stopLoading: p } = q(Jt), [d, u] = L(null), [f] = fs("search", ""), g = V(() => [
10020
10019
  ...(d == null ? void 0 : d.map((h) => ({
10021
10020
  ...h,
@@ -10040,10 +10039,10 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
10040
10039
  m.description && /* @__PURE__ */ s.jsx(re, { variant: "body2", className: "text-muted mt-2", children: m.description })
10041
10040
  ] }, m.id) : /* @__PURE__ */ s.jsx(ky, { item: m, children: /* @__PURE__ */ s.jsx(ot, { to: `${hr(o, { id: (N = m.id) == null ? void 0 : N.toString() })}?type=${m.type}&search=${f ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((y = m.id) == null ? void 0 : y.toString()) ? "active" : ""}`, children: /* @__PURE__ */ s.jsx(re, { variant: "body2", children: m.name }) }) }, m.id);
10042
10041
  }) }, h.id)) }) }) : null;
10043
- }, Uw = ({ label: e, to: t, value: r }) => /* @__PURE__ */ s.jsxs(Xe, { label: e, children: [
10042
+ }, Ww = ({ label: e, to: t, value: r }) => /* @__PURE__ */ s.jsxs(Xe, { label: e, children: [
10044
10043
  /* @__PURE__ */ s.jsx("input", { disabled: !0, className: "form-control d-none" }),
10045
10044
  t ? /* @__PURE__ */ s.jsx(ot, { to: t, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: r }) : /* @__PURE__ */ s.jsx("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: r })
10046
- ] }), Hw = () => {
10045
+ ] }), Uw = () => {
10047
10046
  const { localizationContext: e } = q(de), { language: t, setLanguage: r } = q(e), n = (a) => {
10048
10047
  r(a);
10049
10048
  };
@@ -10068,8 +10067,8 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
10068
10067
  /* @__PURE__ */ s.jsx(Wt, {}),
10069
10068
  /* @__PURE__ */ s.jsx("span", { children: "EN" })
10070
10069
  ] }) });
10071
- }, zw = ({ controlId: e, ...t }) => /* @__PURE__ */ s.jsx(Oe.Group, { controlId: e, ...t }), qw = ({ employeeId: e, alt: t, noPhotoImage: r, cafmApiUrl: n, showLargeInLightBox: a = !1 }) => {
10072
- const { user: o } = q(Ct), { photoPath: i, photoPathSm: l } = Ld(e);
10070
+ }, Hw = ({ controlId: e, ...t }) => /* @__PURE__ */ s.jsx(Oe.Group, { controlId: e, ...t }), zw = ({ employeeId: e, alt: t, noPhotoImage: r, cafmApiUrl: n, showLargeInLightBox: a = !1 }) => {
10071
+ const { user: o } = q(Ct), { photoPath: i, photoPathSm: l } = Fd(e);
10073
10072
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: e && /* @__PURE__ */ s.jsx(s.Fragment, { children: a ? /* @__PURE__ */ s.jsx(Lx, { baseUrl: n, customToken: o.cafmToken ?? void 0, photos: [
10074
10073
  {
10075
10074
  id: e.toString(),
@@ -10079,7 +10078,7 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
10079
10078
  lgSrc: i
10080
10079
  }
10081
10080
  ], placeholder: r, ImgComponent: Vi }) : /* @__PURE__ */ s.jsx(Vi, { baseUrl: n, customToken: o.cafmToken ?? void 0, src: l, alt: t, placeholder: r, className: "rounded w-100" }) }) });
10082
- }, Yw = ({ text: e, setText: t, onSearchButtonClick: r, className: n }) => {
10081
+ }, qw = ({ text: e, setText: t, onSearchButtonClick: r, className: n }) => {
10083
10082
  const a = (o) => {
10084
10083
  t(o);
10085
10084
  };
@@ -10088,7 +10087,7 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
10088
10087
  e && /* @__PURE__ */ s.jsx(Zn, { onClick: () => a(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ s.jsx(Nt, {}) }),
10089
10088
  /* @__PURE__ */ s.jsx(Zn, { onClick: () => r && r(e), variant: "link", className: "border", children: /* @__PURE__ */ s.jsx(md, {}) })
10090
10089
  ] });
10091
- }, Kw = ({ value: e, numberPrefix: t, numberSuffix: r, decimalScale: n = 2, fixedDecimalScale: a = !1, className: o }) => /* @__PURE__ */ s.jsx(Aa, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: n, fixedDecimalScale: a, defaultValue: "", prefix: t, suffix: r, className: o, decimalSeparator: "," }), Xw = ({ data: e, keys: t, colors: r, tooltipLabel: n }) => /* @__PURE__ */ s.jsx(hd, { data: e.map((a) => ({ name: a.name, ...a.values })), indexBy: "name", keys: t, margin: {
10090
+ }, Yw = ({ value: e, numberPrefix: t, numberSuffix: r, decimalScale: n = 2, fixedDecimalScale: a = !1, className: o }) => /* @__PURE__ */ s.jsx(Aa, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: n, fixedDecimalScale: a, defaultValue: "", prefix: t, suffix: r, className: o, decimalSeparator: "," }), Kw = ({ data: e, keys: t, colors: r, tooltipLabel: n }) => /* @__PURE__ */ s.jsx(hd, { data: e.map((a) => ({ name: a.name, ...a.values })), indexBy: "name", keys: t, margin: {
10092
10091
  top: 20,
10093
10092
  right: 50,
10094
10093
  bottom: 30,
@@ -10157,7 +10156,7 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
10157
10156
  }, Qn = {
10158
10157
  reportsGet: "/reports",
10159
10158
  reportsLastUsedGet: "/reports/last-used"
10160
- }, Jw = ({ groups: e, apiUrls: { reportsGet: t = Qn.reportsGet, reportsLastUsedGet: r = Qn.reportsLastUsedGet } = Qn, getReportName: n, getReportDescription: a, getGroupTitle: o, getReportRoute: i }) => {
10159
+ }, Xw = ({ groups: e, apiUrls: { reportsGet: t = Qn.reportsGet, reportsLastUsedGet: r = Qn.reportsLastUsedGet } = Qn, getReportName: n, getReportDescription: a, getGroupTitle: o, getReportRoute: i }) => {
10161
10160
  const { texts: { reports: l } } = q(de), [c, p] = L(""), [d] = Ca(c, 500), u = T((h) => h.map((m) => ({
10162
10161
  ...m,
10163
10162
  groupId: !m.groupId || m.groupId === 0 || !e.some((x) => x === m.groupId) ? 999 : m.groupId
@@ -10187,7 +10186,7 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
10187
10186
  miniDetailPopover: zy,
10188
10187
  sm: qy,
10189
10188
  lg: Yy
10190
- }, Qw = ({ children: e, useMiniDetail: t, miniDetailProps: r, placement: n = "bottom", trigger: a = ["hover"], delayMs: o = 500 }) => {
10189
+ }, Jw = ({ children: e, useMiniDetail: t, miniDetailProps: r, placement: n = "bottom", trigger: a = ["hover"], delayMs: o = 500 }) => {
10191
10190
  const { user: i } = q(Ct), [l, c] = L(!1), { isLoading: p, detail: d, heading: u, tooltipWidth: f } = t({
10192
10191
  ...r,
10193
10192
  enabled: l && !(i != null && i.external)
@@ -10218,10 +10217,10 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
10218
10217
  /* @__PURE__ */ s.jsx("span", { className: "placeholder col-4" })
10219
10218
  ] })
10220
10219
  ] }) : d }), placement: n, trigger: a, popoverClassName: j(Xi.miniDetailPopover, Xi[f]), children: /* @__PURE__ */ s.jsx("div", { children: e }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) });
10221
- }, Zw = ({ label: e, value: t }) => /* @__PURE__ */ s.jsxs("div", { className: "py-1 border-bottom d-flex gap-3 align-items-center justify-content-between", children: [
10220
+ }, Qw = ({ label: e, value: t }) => /* @__PURE__ */ s.jsxs("div", { className: "py-1 border-bottom d-flex gap-3 align-items-center justify-content-between", children: [
10222
10221
  /* @__PURE__ */ s.jsx(re, { variant: "caption", children: e }),
10223
10222
  /* @__PURE__ */ s.jsx(re, { variant: "body2", className: "text-end", children: t ?? "-" })
10224
- ] }), eD = ({ showArchived: e, BnfTableComponent: t, tableIdentifier: r, detailRoute: n }) => {
10223
+ ] }), Zw = ({ showArchived: e, BnfTableComponent: t, tableIdentifier: r, detailRoute: n }) => {
10225
10224
  const { texts: { substitutions: a } } = q(de), { data: o } = ct(`/permissions/substitutions?archived=${e}`), i = V(() => ({ enable: !0, column: "archived" }), []), l = V(() => [
10226
10225
  {
10227
10226
  fieldName: "employeeName",
@@ -10283,7 +10282,7 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
10283
10282
  e == null ? void 0 : e.substituteId,
10284
10283
  e == null ? void 0 : e.to,
10285
10284
  d == null ? void 0 : d.personalNumber
10286
- ]), v = Ad({
10285
+ ]), v = Rd({
10287
10286
  resolver: wd(f),
10288
10287
  defaultValues: g
10289
10288
  }), b = T(async (h) => {
@@ -10309,17 +10308,17 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
10309
10308
  return W(() => {
10310
10309
  v.reset(g);
10311
10310
  }, [g, v]), { formSchema: f, onSubmit: b, formMethods: v };
10312
- }, tD = ({ indexRoute: e }) => {
10311
+ }, eD = ({ indexRoute: e }) => {
10313
10312
  var N;
10314
10313
  const { id: t } = ps(), { user: r } = q(Ct), n = it(), a = gn(), { confirm: o } = _r(), { texts: { substitutions: { detail: i } } } = q(de), { data: l } = ct(`/permissions/substitutions/${t}`, {
10315
10314
  enabled: t !== void 0
10316
- }), { data: c } = ct("/permissions/users"), { onSubmit: p, formMethods: d } = Ky(l, e), u = d.watch("employeeId"), { data: f } = ct(`/permissions/roles?userName=${(N = c == null ? void 0 : c.find((y) => y.employeeId === u)) == null ? void 0 : N.name}`, { enabled: u > 0 && !!c }), { refreshAvailableDelegations: g } = q(us), { checkUserHasPermissions: v } = Fd(), b = T(async () => {
10315
+ }), { data: c } = ct("/permissions/users"), { onSubmit: p, formMethods: d } = Ky(l, e), u = d.watch("employeeId"), { data: f } = ct(`/permissions/roles?userName=${(N = c == null ? void 0 : c.find((y) => y.employeeId === u)) == null ? void 0 : N.name}`, { enabled: u > 0 && !!c }), { refreshAvailableDelegations: g } = q(us), { checkUserHasPermissions: v } = Nd(), b = T(async () => {
10317
10316
  await o(i.deleteConfirm) && (await n.delete(`/permissions/substitutions/${t}`), g(), a(e));
10318
10317
  }, [n, o, t, a, g, i, e]), h = V(() => u !== (r == null ? void 0 : r.personalNumber) && !v(["ZASTUP_MODIFY"]), [v, u, r == null ? void 0 : r.personalNumber]), m = d.watch("roles"), x = V(() => f == null ? void 0 : f.filter((y) => y.canBeRepresented), [f]), D = V(() => (x == null ? void 0 : x.every((y) => m == null ? void 0 : m.includes(y.name))) ?? !1, [x, m]);
10319
10318
  return /* @__PURE__ */ s.jsx(Sa, { title: /* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
10320
10319
  /* @__PURE__ */ s.jsx(re, { variant: "h3", children: i.title }),
10321
10320
  /* @__PURE__ */ s.jsx(Qt, { toggle: /* @__PURE__ */ s.jsx(Zt, { as: Pr }), children: /* @__PURE__ */ s.jsx(et, { onClick: () => b(), children: i.delete }) })
10322
- ] }), children: /* @__PURE__ */ s.jsx(Rd, { ...d, children: /* @__PURE__ */ s.jsx(Id, { disabled: h, children: /* @__PURE__ */ s.jsxs(Oe, { onSubmit: d.handleSubmit(p), className: "h-100", children: [
10321
+ ] }), children: /* @__PURE__ */ s.jsx(kd, { ...d, children: /* @__PURE__ */ s.jsx(jd, { disabled: h, children: /* @__PURE__ */ s.jsxs(Oe, { onSubmit: d.handleSubmit(p), className: "h-100", children: [
10323
10322
  /* @__PURE__ */ s.jsxs(Pa, { className: "h-100", children: [
10324
10323
  /* @__PURE__ */ s.jsx(tn, { sm: 12, md: 4, children: /* @__PURE__ */ s.jsxs(nn, { title: i.title, children: [
10325
10324
  /* @__PURE__ */ s.jsx(Ao, { formField: "employeeId", options: (c == null ? void 0 : c.map((y) => ({
@@ -10358,47 +10357,47 @@ const oc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
10358
10357
  export {
10359
10358
  pn as Alert,
10360
10359
  Hx as AlertItem,
10361
- cw as ApiFileDownloadButton,
10362
- Aw as AppSearch,
10363
- Rw as AuthTemplate,
10360
+ lw as ApiFileDownloadButton,
10361
+ Tw as AppSearch,
10362
+ Aw as AuthTemplate,
10364
10363
  is as AvatarIcon,
10365
10364
  ed as Backdrop,
10366
- Tw as Badge,
10367
- Xw as BarChart,
10365
+ Pw as Badge,
10366
+ Kw as BarChart,
10368
10367
  nn as Card,
10369
10368
  na as CheckInput,
10370
10369
  rn as Collapse,
10371
10370
  Oy as ColumnResizer,
10372
10371
  gt as ContextButton,
10373
- Uw as DisabledRowLabelLink,
10374
- aD as Documents,
10372
+ Ww as DisabledRowLabelLink,
10373
+ nD as Documents,
10375
10374
  Qt as Dropdown,
10376
10375
  vd as DropdownDivider,
10377
10376
  et as DropdownItem,
10378
- uw as DropdownPicker,
10377
+ dw as DropdownPicker,
10379
10378
  Zt as DropdownToggle,
10380
- Gw as DynamicForm,
10381
- qw as EmployeeSmallPhoto,
10379
+ $w as DynamicForm,
10380
+ zw as EmployeeSmallPhoto,
10382
10381
  hu as ErrorBoundary,
10383
- oD as FileExtensionIcon,
10384
- dw as FileUploadButton,
10382
+ aD as FileExtensionIcon,
10383
+ cw as FileUploadButton,
10385
10384
  Rs as FileUploadContextButton,
10386
- Dw as FileUploadDropdownItem,
10385
+ ww as FileUploadDropdownItem,
10387
10386
  Yu as Flexmonster,
10388
10387
  Yx as FloatingActionContainer,
10389
10388
  su as FloatingFormSubmit,
10390
10389
  Or as FloatingLabelInput,
10391
- Mw as FromToDatePicker,
10392
- Pw as HomeDashboard,
10393
- mw as HookFormCheckInput,
10394
- bw as HookFormDropdownPicker,
10395
- xw as HookFormFileInput,
10390
+ Bw as FromToDatePicker,
10391
+ _w as HomeDashboard,
10392
+ vw as HookFormCheckInput,
10393
+ hw as HookFormDropdownPicker,
10394
+ bw as HookFormFileInput,
10396
10395
  Uu as HookFormFloatingSubmit,
10397
- yw as HookFormNumericStepperInput,
10398
- ww as HookFormNumericTextInput,
10399
- hw as HookFormRadioInput,
10396
+ xw as HookFormNumericStepperInput,
10397
+ yw as HookFormNumericTextInput,
10398
+ mw as HookFormRadioInput,
10400
10399
  Ao as HookFormSelectInput,
10401
- iD as HookFormTextAreaInput,
10400
+ oD as HookFormTextAreaInput,
10402
10401
  go as HookFormTextInput,
10403
10402
  Ly as HrWithText,
10404
10403
  xd as HtmlTooltip,
@@ -10407,54 +10406,54 @@ export {
10407
10406
  Vi as ImgApi,
10408
10407
  oc as ImgDirect,
10409
10408
  Vt as InvalidFeedback,
10410
- Hw as LanguageSwitch,
10411
- $w as LineChart,
10409
+ Uw as LanguageSwitch,
10410
+ Vw as LineChart,
10412
10411
  mo as Loading,
10413
10412
  Vd as LoadingBlock,
10414
- Cw as MessageBoard,
10415
- Qw as MiniDetailTooltip,
10416
- Zw as MiniDetailValueItem,
10413
+ Sw as MessageBoard,
10414
+ Jw as MiniDetailTooltip,
10415
+ Qw as MiniDetailValueItem,
10417
10416
  uu as MonthPicker,
10418
- Lw as MonthPickerSearchParams,
10417
+ Mw as MonthPickerSearchParams,
10419
10418
  Ze as NoInputContainer,
10420
- Kw as NumericFormat,
10421
- fw as NumericStepperInput,
10422
- gw as NumericTextInput,
10423
- tD as PermissionSubstituteDetail,
10424
- eD as PermissionSubstituteTable,
10419
+ Yw as NumericFormat,
10420
+ pw as NumericStepperInput,
10421
+ fw as NumericTextInput,
10422
+ eD as PermissionSubstituteDetail,
10423
+ Zw as PermissionSubstituteTable,
10425
10424
  Lx as PhotoLibrary,
10426
10425
  Mx as PhotoLightbox,
10427
- Vw as PieChart,
10426
+ Fw as PieChart,
10428
10427
  Qr as PrimaryButton,
10429
- vw as RadioInput,
10430
- Nw as ReportPage,
10431
- Jw as ReportsIndexPage,
10428
+ gw as RadioInput,
10429
+ Dw as ReportPage,
10430
+ Xw as ReportsIndexPage,
10432
10431
  td as ResponsiveContextDropdown,
10433
10432
  rd as ResponsiveContextDropdownItem,
10434
- Iw as ResponsiveTabs,
10433
+ Ew as ResponsiveTabs,
10435
10434
  Xe as RowLabelInput,
10436
- Yw as SearchBox,
10435
+ qw as SearchBox,
10437
10436
  en as SelectInput,
10438
- Ww as SettingsFormPicker,
10439
- Ow as ShortcutLinks,
10440
- _w as ShortcutLinksProvider,
10441
- jw as ShortcutLinksSetup,
10437
+ Gw as SettingsFormPicker,
10438
+ jw as ShortcutLinks,
10439
+ Ow as ShortcutLinksProvider,
10440
+ Iw as ShortcutLinksSetup,
10442
10441
  wa as SimplePicker,
10443
10442
  Pr as SimpleToggle,
10444
10443
  Et as SimpleTooltip,
10445
10444
  up as Tab,
10446
- Ew as TabPanel,
10445
+ Cw as TabPanel,
10447
10446
  sp as Tabs,
10448
- pw as TextAreaInput,
10447
+ uw as TextAreaInput,
10449
10448
  bt as TextInput,
10450
- Bw as Timeline,
10451
- zw as TypedFormGroup,
10449
+ kw as Timeline,
10450
+ Hw as TypedFormGroup,
10452
10451
  re as Typography,
10453
- sD as UserAvatarToggle,
10454
- Sw as UserAvatarValueFormat,
10455
- kw as VersionInfo,
10452
+ iD as UserAvatarToggle,
10453
+ Nw as UserAvatarValueFormat,
10454
+ Rw as VersionInfo,
10456
10455
  jo as WidgetCard,
10457
10456
  gu as YearPicker,
10458
- Fw as YearPickerSearchParams,
10457
+ Lw as YearPickerSearchParams,
10459
10458
  Ws as useShortcutLinksContext
10460
10459
  };