react-luminus-components 1.3.197 → 1.3.198

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,15 +1,15 @@
1
- import { j as n, c as w, t as ye, a as kt, s as Bn, g as Vn, m as Qs, d as Bt, b as Zs, e as Js, f as Ge, h as Xs, i as ea, k as ta, l as na, n as ra, o as sa, p as aa, T as Dr, q as Lr, r as Pn, E as oa, u as Tr, v as Sn, w as Er, x as ia, y as he, z as Kt, A as la, B as Fr, C as qt, D as ca, F as vn, G as Or, H as da, S as jn, N as Rr, I as Cn, J as In, K as ua, L as fa, M as ma, O as ha, P as pa, Q as Mr, R as ga, U as xa, V as va, W as ja, X as ya, Y as wa, Z as ba, _ as yn, $ as oe, a0 as zt, a1 as _a, a2 as Na, a3 as ka, a4 as Ar, a5 as St, a6 as re, a7 as $n, a8 as ge, a9 as Dn, aa as We, ab as it, ac as Sa, ad as He, ae as G, af as Br, ag as Vr, ah as Pr, ai as Ae, aj as lt, ak as Ca, al as Ia, am as $a, an as Da, ao as Qt, ap as Je, aq as Lt, ar as Tt, as as zr, at as ke, au as Wr, av as La, aw as Ta, ax as Ea, ay as ht, az as pt, aA as Et, aB as Se, aC as Hr, aD as Ct, aE as Xe, aF as Ur, aG as Fe, aH as Fa, aI as Gr, aJ as Oa, aK as Yr, aL as Ra, aM as Ma, aN as Aa, aO as Ba, aP as Va, aQ as Pa, aR as Wt, aS as Kr, aT as za, aU as Wa, aV as Ha, aW as Ua, aX as Ga, aY as Ya, aZ as qe, a_ as Ka, a$ as qa, b0 as Qa, b1 as Za, b2 as Ja, b3 as an, b4 as zn, b5 as Xa, b6 as eo, b7 as qr, b8 as to } from "./nivo-bar.es-DyZJ2B06.js";
1
+ import { j as n, c as w, t as ye, a as kt, s as Bn, g as Vn, m as Qs, d as Bt, b as Zs, e as Js, f as Ye, h as Xs, i as ea, k as ta, l as na, n as ra, o as sa, p as aa, T as Dr, q as Lr, r as Pn, E as oa, u as Tr, v as Sn, w as Er, x as ia, y as he, z as Kt, A as la, B as Fr, C as qt, D as ca, F as vn, G as Or, H as da, S as jn, N as Rr, I as Cn, J as In, K as ua, L as fa, M as ma, O as ha, P as pa, Q as Mr, R as ga, U as xa, V as va, W as ja, X as ya, Y as wa, Z as ba, _ as yn, $ as oe, a0 as zt, a1 as _a, a2 as Na, a3 as ka, a4 as Ar, a5 as St, a6 as re, a7 as $n, a8 as ge, a9 as Dn, aa as He, ab as lt, ac as Sa, ad as Ue, ae as G, af as Br, ag as Vr, ah as Pr, ai as Be, aj as ct, ak as Ca, al as Ia, am as $a, an as Da, ao as Qt, ap as Xe, aq as Lt, ar as Tt, as as zr, at as Se, au as Wr, av as La, aw as Ta, ax as Ea, ay as ht, az as pt, aA as Et, aB as Ce, aC as Hr, aD as Ct, aE as et, aF as Ur, aG as Fe, aH as Fa, aI as Gr, aJ as Oa, aK as Yr, aL as Ra, aM as Ma, aN as Aa, aO as Ba, aP as Va, aQ as Pa, aR as Wt, aS as Kr, aT as za, aU as Wa, aV as Ha, aW as Ua, aX as Ga, aY as Ya, aZ as Qe, a_ as Ka, a$ as qa, b0 as Qa, b1 as Za, b2 as Ja, b3 as an, b4 as zn, b5 as Xa, b6 as eo, b7 as qr, b8 as to } from "./nivo-bar.es-DyZJ2B06.js";
2
2
  import { bc as af, bd as of, ba as lf, b9 as cf, be as df, bf as uf, bb as ff } from "./nivo-bar.es-DyZJ2B06.js";
3
3
  import * as ie from "react";
4
4
  import Ne, { useCallback as I, useMemo as W, useContext as H, useRef as ee, useEffect as M, useState as T, useId as no, Component as ro, isValidElement as Wn, Suspense as so, useLayoutEffect as ao } from "react";
5
- import { c as Pe, L as Hn } from "./Loading-DBIjfMn3.js";
5
+ import { c as ze, L as Hn } from "./Loading-DBIjfMn3.js";
6
6
  import { InteractionType as oo } from "@azure/msal-browser";
7
7
  import { MsalAuthenticationTemplate as io } from "@azure/msal-react";
8
8
  import { useNavigate as Qr, Link as Oe, useSearchParams as lo, useParams as co, generatePath as Ht, useLocation as uo, Navigate as Rt } from "react-router-dom";
9
- import { useFormContext as et, Controller as Ln } from "react-hook-form";
9
+ import { useFormContext as tt, Controller as Ln } from "react-hook-form";
10
10
  import { Pivot as fo } from "react-flexmonster";
11
11
  import { u as Zt, a as Zr } from "./useWindowSize-OLYtjFv_.js";
12
- import { s as Qe, l as _t } from "./searchUtils-B2yYsfSO.js";
12
+ import { s as Ze, l as _t } from "./searchUtils-B2yYsfSO.js";
13
13
  import { u as mo, a as Jr, b as ho, c as Xr, d as po } from "./useClipboard-CjBE5QoV.js";
14
14
  import Ut from "react-dom";
15
15
  import { u as It } from "./useGetApiData-DJ2GBF0d.js";
@@ -23,10 +23,10 @@ const uu = ({ fileLoader: e, fileName: t, children: r }) => {
23
23
  i.href = o, i.setAttribute("download", t), (l = document.body) == null || l.appendChild(i), i.click(), (c = document.body) == null || c.removeChild(i);
24
24
  }, [e, t]);
25
25
  return /* @__PURE__ */ n.jsx("div", { role: "button", onClick: s, children: r });
26
- }, go = ({ className: e, size: t, ...r }) => /* @__PURE__ */ n.jsxs("div", { className: w("luminus-loading", Pe.loading, Pe.loadingBlock, t === "line" ? Pe.sizeLine : void 0, t === "fill" ? Pe.sizeFill : void 0, e), ...r, children: [
27
- /* @__PURE__ */ n.jsx("div", { className: w("spinner-grow", Pe.spinnerGrow, "text-primary"), role: "status" }),
28
- /* @__PURE__ */ n.jsx("div", { className: w("spinner-grow", Pe.spinnerGrow, "text-primary", Pe.second), role: "status" }),
29
- /* @__PURE__ */ n.jsx("div", { className: w("spinner-grow", Pe.spinnerGrow, "text-primary", Pe.third), role: "status" })
26
+ }, go = ({ className: e, size: t, ...r }) => /* @__PURE__ */ n.jsxs("div", { className: w("luminus-loading", ze.loading, ze.loadingBlock, t === "line" ? ze.sizeLine : void 0, t === "fill" ? ze.sizeFill : void 0, e), ...r, children: [
27
+ /* @__PURE__ */ n.jsx("div", { className: w("spinner-grow", ze.spinnerGrow, "text-primary"), role: "status" }),
28
+ /* @__PURE__ */ n.jsx("div", { className: w("spinner-grow", ze.spinnerGrow, "text-primary", ze.second), role: "status" }),
29
+ /* @__PURE__ */ n.jsx("div", { className: w("spinner-grow", ze.spinnerGrow, "text-primary", ze.third), role: "status" })
30
30
  ] });
31
31
  function es(e, t) {
32
32
  const r = ye(e);
@@ -108,17 +108,17 @@ function wn(e, t) {
108
108
  let o = "", i = "";
109
109
  const l = s === "extended" ? "-" : "", c = s === "extended" ? ":" : "";
110
110
  if (a !== "time") {
111
- const d = Ge(r.getDate(), 2), u = Ge(r.getMonth() + 1, 2);
112
- o = `${Ge(r.getFullYear(), 4)}${l}${u}${l}${d}`;
111
+ const d = Ye(r.getDate(), 2), u = Ye(r.getMonth() + 1, 2);
112
+ o = `${Ye(r.getFullYear(), 4)}${l}${u}${l}${d}`;
113
113
  }
114
114
  if (a !== "date") {
115
115
  const d = r.getTimezoneOffset();
116
116
  if (d !== 0) {
117
- const x = Math.abs(d), p = Ge(Math.trunc(x / 60), 2), h = Ge(x % 60, 2);
117
+ const x = Math.abs(d), p = Ye(Math.trunc(x / 60), 2), h = Ye(x % 60, 2);
118
118
  i = `${d < 0 ? "+" : "-"}${p}:${h}`;
119
119
  } else
120
120
  i = "Z";
121
- const u = Ge(r.getHours(), 2), m = Ge(r.getMinutes(), 2), v = Ge(r.getSeconds(), 2), f = o === "" ? "" : "T", g = [u, m, v].join(c);
121
+ const u = Ye(r.getHours(), 2), m = Ye(r.getMinutes(), 2), v = Ye(r.getSeconds(), 2), f = o === "" ? "" : "T", g = [u, m, v].join(c);
122
122
  o = `${o}${f}${g}${i}`;
123
123
  }
124
124
  return o;
@@ -937,7 +937,7 @@ const Ds = /* @__PURE__ */ ie.forwardRef(({
937
937
  });
938
938
  });
939
939
  Ds.displayName = "Placeholder";
940
- const Ye = Object.assign(Ds, {
940
+ const Ke = Object.assign(Ds, {
941
941
  Button: $s
942
942
  }), On = /* @__PURE__ */ ie.forwardRef(({
943
943
  bsPrefix: e,
@@ -1110,20 +1110,20 @@ class Qo extends ro {
1110
1110
  ...t.props
1111
1111
  }, /* @__PURE__ */ n.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
1112
1112
  ...t.props.children,
1113
- /* @__PURE__ */ n.jsx("div", { className: "d-flex gap-2 justify-content-center", children: /* @__PURE__ */ n.jsx(We, { type: "button", onClick: this.reload, children: a.reloadButtonContent }) })
1113
+ /* @__PURE__ */ n.jsx("div", { className: "d-flex gap-2 justify-content-center", children: /* @__PURE__ */ n.jsx(He, { type: "button", onClick: this.reload, children: a.reloadButtonContent }) })
1114
1114
  ] })) : o === "inject-to-child" && this.state.is404Error && Wn(r) ? Ne.cloneElement(r, {
1115
1115
  ...r.props
1116
1116
  }, /* @__PURE__ */ n.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
1117
1117
  ...r.props.children,
1118
1118
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex gap-2 justify-content-center", children: [
1119
- /* @__PURE__ */ n.jsx(We, { type: "button", onClick: this.reload, children: a.reloadButtonContent }),
1120
- /* @__PURE__ */ n.jsx(We, { type: "button", onClick: this.props.navigateBack, children: a.navigateBackButtonContent })
1119
+ /* @__PURE__ */ n.jsx(He, { type: "button", onClick: this.reload, children: a.reloadButtonContent }),
1120
+ /* @__PURE__ */ n.jsx(He, { type: "button", onClick: this.props.navigateBack, children: a.navigateBackButtonContent })
1121
1121
  ] })
1122
1122
  ] })) : /* @__PURE__ */ n.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
1123
1123
  this.state.is404Error ? r : t,
1124
1124
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex gap-2 justify-content-center", children: [
1125
- o === "none" ? null : /* @__PURE__ */ n.jsx(We, { type: "button", onClick: this.reload, children: a.reloadButtonContent }),
1126
- this.state.is404Error && /* @__PURE__ */ n.jsx(We, { type: "button", onClick: this.props.navigateBack, children: a.navigateBackButtonContent })
1125
+ o === "none" ? null : /* @__PURE__ */ n.jsx(He, { type: "button", onClick: this.reload, children: a.reloadButtonContent }),
1126
+ this.state.is404Error && /* @__PURE__ */ n.jsx(He, { type: "button", onClick: this.props.navigateBack, children: a.navigateBackButtonContent })
1127
1127
  ] })
1128
1128
  ] }) : s;
1129
1129
  }
@@ -1142,7 +1142,7 @@ const Zo = (e) => (r) => {
1142
1142
  return /* @__PURE__ */ n.jsx("div", { className: "luminus-input-container position-relative w-100", children: r });
1143
1143
  const s = t(e);
1144
1144
  return /* @__PURE__ */ n.jsx(Oe, { to: s, className: "luminus-input-container position-relative w-100 text-decoration-none", children: r });
1145
- }, ni = ({ InputContainer: e = it, label: t, value: r, onChange: s, hidden: a, disabled: o, className: i, type: l, withoutLabel: c, indeterminate: d, hint: u }) => {
1145
+ }, ni = ({ InputContainer: e = lt, label: t, value: r, onChange: s, hidden: a, disabled: o, className: i, type: l, withoutLabel: c, indeterminate: d, hint: u }) => {
1146
1146
  const m = ee(null);
1147
1147
  return M(() => {
1148
1148
  m.current && (m.current.indeterminate = d ?? !1);
@@ -1150,7 +1150,7 @@ const Zo = (e) => (r) => {
1150
1150
  var f;
1151
1151
  s && s(((f = v.target) == null ? void 0 : f.checked) ?? !1);
1152
1152
  }, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
1153
- }, Ze = ({ InputContainer: e = it, type: t, value: r, onChange: s, debounceMs: a, label: o, withoutLabel: i, placeholder: l, size: c, hidden: d, disabled: u, showClearIcon: m, clearValue: v, list: f, className: g, step: x, minLength: p, maxLength: h, noSelectOnFocus: y, hint: b, onConfirm: N }) => {
1153
+ }, Je = ({ InputContainer: e = lt, type: t, value: r, onChange: s, debounceMs: a, label: o, withoutLabel: i, placeholder: l, size: c, hidden: d, disabled: u, showClearIcon: m, clearValue: v, list: f, className: g, step: x, minLength: p, maxLength: h, noSelectOnFocus: y, hint: b, onConfirm: N }) => {
1154
1154
  const j = t === "number", C = I(() => {
1155
1155
  if (!s)
1156
1156
  return;
@@ -1183,10 +1183,10 @@ const Zo = (e) => (r) => {
1183
1183
  /* @__PURE__ */ n.jsx(ge.Control, { type: te, placeholder: l ?? o, size: c, value: a ? D : (r == null ? void 0 : r.toString()) ?? "", onChange: E, className: g ?? "", hidden: d, disabled: u ?? !1, list: f, onFocus: (_) => {
1184
1184
  X(!0), !y && _.target.select();
1185
1185
  }, onBlur: () => X(!1), onKeyDown: z, step: x, minLength: p, maxLength: h }),
1186
- m && r !== null && s && !u && /* @__PURE__ */ n.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ n.jsx(He, {}) }) })
1186
+ m && r !== null && s && !u && /* @__PURE__ */ n.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ n.jsx(Ue, {}) }) })
1187
1187
  ] });
1188
1188
  }, Xt = ({ value: e, MiniDetailComponent: t, children: r }) => !e || !t ? r : /* @__PURE__ */ n.jsx(t, { id: e.toString(), children: r }), Gt = ({
1189
- InputContainer: e = it,
1189
+ InputContainer: e = lt,
1190
1190
  value: t,
1191
1191
  options: r,
1192
1192
  onChange: s,
@@ -1218,7 +1218,7 @@ const Zo = (e) => (r) => {
1218
1218
  return g !== void 0 && t !== void 0 && t !== null && (_.some((S) => S.id === t) || _.push({ id: t, name: g })), _.map((S) => ({
1219
1219
  id: S.id,
1220
1220
  name: E(S)
1221
- })).filter((S) => Qe(S.name, L)).sort((S, V) => u ? 0 : (S.name ?? "").localeCompare(V.name ?? ""));
1221
+ })).filter((S) => Ze(S.name, L)).sort((S, V) => u ? 0 : (S.name ?? "").localeCompare(V.name ?? ""));
1222
1222
  }, [r, u, L, E, g, t]), k = I((_) => {
1223
1223
  var S;
1224
1224
  s && s((_ == null ? void 0 : _.id) === void 0 || (_ == null ? void 0 : _.id) === null ? null : i ? Number(_.id) : (S = _.id) == null ? void 0 : S.toString());
@@ -1239,7 +1239,7 @@ const Zo = (e) => (r) => {
1239
1239
  ] }) }),
1240
1240
  te.current && /* @__PURE__ */ n.jsx(nn, { show: j, onCancel: () => C(!1), items: z, currentSelection: R ?? null, onSelectionChange: X, onSearchQueryChange: F, texts: N, disabled: d, inputRef: te, autoHideSearch: !0, allItemsLength: r.length, itemsNameWidth: x, addNewOptionPath: h, refreshOptions: y })
1241
1241
  ] }) });
1242
- }, mu = ({ InputContainer: e = it, items: t, selectedItemNavigateTo: r, onSearchQueryChange: s, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: d, size: u, dropdownItemsNameWidth: m, additionalColumns: v, hidden: f, disabled: g, displayIdAsName: x, CustomOnChangeComponent: p, className: h, archiveColumn: y, icon: b, hint: N, addNewOptionPath: j, refreshOptions: C, MiniDetailComponent: L }) => {
1242
+ }, mu = ({ InputContainer: e = lt, items: t, selectedItemNavigateTo: r, onSearchQueryChange: s, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: d, size: u, dropdownItemsNameWidth: m, additionalColumns: v, hidden: f, disabled: g, displayIdAsName: x, CustomOnChangeComponent: p, className: h, archiveColumn: y, icon: b, hint: N, addNewOptionPath: j, refreshOptions: C, MiniDetailComponent: L }) => {
1243
1243
  const [D, F] = T(!1), R = I((_) => {
1244
1244
  l && l(_);
1245
1245
  }, [l]), E = I((_) => {
@@ -1285,7 +1285,7 @@ const Zo = (e) => (r) => {
1285
1285
  ] }),
1286
1286
  z.current && /* @__PURE__ */ n.jsx(nn, { show: D, onCancel: () => F(!1), items: t, currentSelection: i, onSelectionChange: E, onSearchQueryChange: s, texts: a, itemsNameWidth: m, additionalColumns: v, isLoading: o, disabled: g, inputRef: z, archiveColumn: y, displayIdAsName: x, addNewOptionPath: j, refreshOptions: C })
1287
1287
  ] }) });
1288
- }, hu = ({ InputContainer: e = it, value: t, onChange: r, label: s, size: a, showClearIcon: o, clearValue: i, hidden: l, disabled: c, rows: d, withoutLabel: u, debounceMs: m, minLength: v, maxLength: f, className: g, hint: x }) => {
1288
+ }, hu = ({ InputContainer: e = lt, value: t, onChange: r, label: s, size: a, showClearIcon: o, clearValue: i, hidden: l, disabled: c, rows: d, withoutLabel: u, debounceMs: m, minLength: v, maxLength: f, className: g, hint: x }) => {
1289
1289
  const p = I(() => {
1290
1290
  if (!r)
1291
1291
  return;
@@ -1309,9 +1309,9 @@ const Zo = (e) => (r) => {
1309
1309
  b(t === null ? "" : t.toString());
1310
1310
  }, [t]), /* @__PURE__ */ n.jsxs(e, { label: s ?? "", hidden: l, withoutLabel: u, className: g, isForTextAreaInput: !0, hint: x, children: [
1311
1311
  /* @__PURE__ */ n.jsx(ge.Control, { as: "textarea", size: a, value: m ? y : t ?? "", onChange: j, hidden: l, disabled: c, rows: d ?? 2, className: "w-100", minLength: v, maxLength: f }),
1312
- o && t && r && !c && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: p, children: /* @__PURE__ */ n.jsx(He, {}) }) })
1312
+ o && t && r && !c && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: p, children: /* @__PURE__ */ n.jsx(Ue, {}) }) })
1313
1313
  ] });
1314
- }, pu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: d, showClearIcon: u, clearValue: m, className: v, step: f, stepperStep: g = 1, min: x, max: p, hint: h }) => {
1314
+ }, pu = ({ InputContainer: e = lt, value: t, onChange: r, debounceMs: s, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: d, showClearIcon: u, clearValue: m, className: v, step: f, stepperStep: g = 1, min: x, max: p, hint: h }) => {
1315
1315
  const y = I(() => {
1316
1316
  if (!r)
1317
1317
  return;
@@ -1341,7 +1341,7 @@ const Zo = (e) => (r) => {
1341
1341
  /* @__PURE__ */ n.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ n.jsx(re, { size: "sm", onClick: (D) => {
1342
1342
  D.preventDefault(), D.stopPropagation(), C(((t ?? 0) + g).toString());
1343
1343
  }, children: /* @__PURE__ */ n.jsx(Pr, {}) }) }),
1344
- u && t && r && !d && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ n.jsx(He, {}) }) })
1344
+ u && t && r && !d && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ n.jsx(Ue, {}) }) })
1345
1345
  ] }) });
1346
1346
  };
1347
1347
  function Es(e, t) {
@@ -1357,7 +1357,7 @@ var $t;
1357
1357
  (function(e) {
1358
1358
  e.event = "event", e.props = "prop";
1359
1359
  })($t || ($t = {}));
1360
- function Ke() {
1360
+ function qe() {
1361
1361
  }
1362
1362
  function ri(e) {
1363
1363
  var t, r = void 0;
@@ -1455,7 +1455,7 @@ function or(e, t, r) {
1455
1455
  var v = Rs(u[1] || "", t, r), f = l ? "-" : "", g = s ? "." : "";
1456
1456
  return "" + f + m + g + v;
1457
1457
  }
1458
- function ot(e, t) {
1458
+ function it(e, t) {
1459
1459
  if (e.value = e.value, e !== null) {
1460
1460
  if (e.createTextRange) {
1461
1461
  var r = e.createTextRange();
@@ -1557,7 +1557,7 @@ function pi(e) {
1557
1557
  return t;
1558
1558
  }
1559
1559
  function Bs(e, t, r, s, a, o) {
1560
- o === void 0 && (o = Ke);
1560
+ o === void 0 && (o = qe);
1561
1561
  var i = ii(function(g, x) {
1562
1562
  var p, h;
1563
1563
  return Fs(g) ? (h = "", p = "") : typeof g == "number" || x ? (h = typeof g == "number" ? Ms(g) : g, p = s(h)) : (h = a(g, void 0), p = s(h)), { formattedValue: p, numAsString: h };
@@ -1591,15 +1591,15 @@ function vi(e) {
1591
1591
  var l = e.removeFormatting;
1592
1592
  l === void 0 && (l = gi);
1593
1593
  var c = e.defaultValue, d = e.valueIsNumericString, u = e.onValueChange, m = e.isAllowed, v = e.onChange;
1594
- v === void 0 && (v = Ke);
1594
+ v === void 0 && (v = qe);
1595
1595
  var f = e.onKeyDown;
1596
- f === void 0 && (f = Ke);
1596
+ f === void 0 && (f = qe);
1597
1597
  var g = e.onMouseUp;
1598
- g === void 0 && (g = Ke);
1598
+ g === void 0 && (g = qe);
1599
1599
  var x = e.onFocus;
1600
- x === void 0 && (x = Ke);
1600
+ x === void 0 && (x = qe);
1601
1601
  var p = e.onBlur;
1602
- p === void 0 && (p = Ke);
1602
+ p === void 0 && (p = qe);
1603
1603
  var h = e.value, y = e.getCaretBoundary;
1604
1604
  y === void 0 && (y = pi);
1605
1605
  var b = e.isValidInputCharacter;
@@ -1623,8 +1623,8 @@ function vi(e) {
1623
1623
  floatValue: isNaN(P) ? void 0 : P
1624
1624
  };
1625
1625
  }, Y = function($, O, P) {
1626
- $.selectionStart === 0 && $.selectionEnd === $.value.length || (ot($, O), V.current.setCaretTimeout = setTimeout(function() {
1627
- $.value === P && $.selectionStart !== O && ot($, O);
1626
+ $.selectionStart === 0 && $.selectionEnd === $.value.length || (it($, O), V.current.setCaretTimeout = setTimeout(function() {
1627
+ $.value === P && $.selectionStart !== O && it($, O);
1628
1628
  }, 0));
1629
1629
  }, Q = function($, O, P) {
1630
1630
  return ir($, O, y($), P);
@@ -1636,8 +1636,8 @@ function vi(e) {
1636
1636
  O === void 0 && (O = "");
1637
1637
  var P = $.input, le = $.source, je = $.event, ce = $.numAsString, de;
1638
1638
  if (P) {
1639
- var Ce = $.inputValue || P.value, Te = un(P);
1640
- P.value = O, de = se(Ce, O, Te), de !== void 0 && Y(P, de, O);
1639
+ var Ie = $.inputValue || P.value, Te = un(P);
1640
+ P.value = O, de = se(Ie, O, Te), de !== void 0 && Y(P, de, O);
1641
1641
  }
1642
1642
  O !== D && k(Z(O, ce), { event: je, source: le });
1643
1643
  };
@@ -1657,13 +1657,13 @@ function vi(e) {
1657
1657
  }
1658
1658
  }, [D]);
1659
1659
  var B = function($, O, P) {
1660
- var le = O.target, je = E.current ? ci(E.current, le.selectionEnd) : As(D, $), ce = Object.assign(Object.assign({}, je), { lastValue: D }), de = l($, ce), Ce = U(de);
1661
- if (de = l(Ce, void 0), m && !m(Z(Ce, de))) {
1660
+ var le = O.target, je = E.current ? ci(E.current, le.selectionEnd) : As(D, $), ce = Object.assign(Object.assign({}, je), { lastValue: D }), de = l($, ce), Ie = U(de);
1661
+ if (de = l(Ie, void 0), m && !m(Z(Ie, de))) {
1662
1662
  var Te = O.target, Ee = un(Te), dt = se($, D, Ee);
1663
1663
  return Te.value = D, Y(Te, dt, D), !1;
1664
1664
  }
1665
1665
  return ne({
1666
- formattedValue: Ce,
1666
+ formattedValue: Ie,
1667
1667
  numAsString: de,
1668
1668
  inputValue: $,
1669
1669
  event: O,
@@ -1677,16 +1677,16 @@ function vi(e) {
1677
1677
  }, xe = function($) {
1678
1678
  var O = $.target, P = O.value, le = B(P, $, $t.event);
1679
1679
  le && v($), E.current = void 0;
1680
- }, Be = function($) {
1680
+ }, Ve = function($) {
1681
1681
  var O = $.target, P = $.key, le = O.selectionStart, je = O.selectionEnd, ce = O.value;
1682
1682
  ce === void 0 && (ce = "");
1683
1683
  var de;
1684
1684
  P === "ArrowLeft" || P === "Backspace" ? de = Math.max(le - 1, 0) : P === "ArrowRight" ? de = Math.min(le + 1, ce.length) : P === "Delete" && (de = le);
1685
- var Ce = 0;
1686
- P === "Delete" && le === je && (Ce = 1);
1685
+ var Ie = 0;
1686
+ P === "Delete" && le === je && (Ie = 1);
1687
1687
  var Te = P === "ArrowLeft" || P === "ArrowRight";
1688
1688
  if (de === void 0 || le !== je && !Te) {
1689
- f($), K(O, Ce);
1689
+ f($), K(O, Ie);
1690
1690
  return;
1691
1691
  }
1692
1692
  var Ee = de;
@@ -1694,8 +1694,8 @@ function vi(e) {
1694
1694
  var dt = P === "ArrowLeft" ? "left" : "right";
1695
1695
  Ee = Q(ce, de, dt), Ee !== de && $.preventDefault();
1696
1696
  } else P === "Delete" && !b(ce[de]) ? Ee = Q(ce, de, "right") : P === "Backspace" && !b(ce[de]) && (Ee = Q(ce, de, "left"));
1697
- Ee !== de && Y(O, Ee, ce), f($), K(O, Ce);
1698
- }, De = function($) {
1697
+ Ee !== de && Y(O, Ee, ce), f($), K(O, Ie);
1698
+ }, Le = function($) {
1699
1699
  var O = $.target, P = function() {
1700
1700
  var le = O.selectionStart, je = O.selectionEnd, ce = O.value;
1701
1701
  if (ce === void 0 && (ce = ""), le === je) {
@@ -1706,7 +1706,7 @@ function vi(e) {
1706
1706
  P(), requestAnimationFrame(function() {
1707
1707
  P();
1708
1708
  }), g($), K(O);
1709
- }, Ve = function($) {
1709
+ }, Pe = function($) {
1710
1710
  $.persist && $.persist();
1711
1711
  var O = $.target, P = $.currentTarget;
1712
1712
  S.current = O, V.current.focusTimeout = setTimeout(function() {
@@ -1715,24 +1715,24 @@ function vi(e) {
1715
1715
  var de = Q(ce, le);
1716
1716
  de !== le && !(le === 0 && je === ce.length) && Y(O, de, ce), x(Object.assign(Object.assign({}, $), { currentTarget: P }));
1717
1717
  }, 0);
1718
- }, ae = function($) {
1718
+ }, ke = function($) {
1719
1719
  S.current = null, clearTimeout(V.current.focusTimeout), clearTimeout(V.current.setCaretTimeout), p($);
1720
- }, we = te && ui() ? "numeric" : void 0, Le = Object.assign({ inputMode: we }, j, {
1720
+ }, ae = te && ui() ? "numeric" : void 0, _e = Object.assign({ inputMode: ae }, j, {
1721
1721
  type: t,
1722
1722
  value: D,
1723
1723
  onChange: xe,
1724
- onKeyDown: Be,
1725
- onMouseUp: De,
1726
- onFocus: Ve,
1727
- onBlur: ae
1724
+ onKeyDown: Ve,
1725
+ onMouseUp: Le,
1726
+ onFocus: Pe,
1727
+ onBlur: ke
1728
1728
  });
1729
1729
  if (r === "text")
1730
1730
  return a ? Ne.createElement(Ne.Fragment, null, a(D, j) || null) : Ne.createElement("span", Object.assign({}, j, { ref: o }), D);
1731
1731
  if (s) {
1732
- var ct = s;
1733
- return Ne.createElement(ct, Object.assign({}, Le, { ref: o }));
1732
+ var Re = s;
1733
+ return Ne.createElement(Re, Object.assign({}, _e, { ref: o }));
1734
1734
  }
1735
- return Ne.createElement("input", Object.assign({}, Le, { ref: o }));
1735
+ return Ne.createElement("input", Object.assign({}, _e, { ref: o }));
1736
1736
  }
1737
1737
  function lr(e, t) {
1738
1738
  var r = t.decimalScale, s = t.fixedDecimalScale, a = t.prefix;
@@ -1831,9 +1831,9 @@ function Ni(e) {
1831
1831
  function ki(e) {
1832
1832
  e = Ni(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
1833
1833
  var t = e.suffix, r = e.allowNegative, s = e.allowLeadingZeros, a = e.onKeyDown;
1834
- a === void 0 && (a = Ke);
1834
+ a === void 0 && (a = qe);
1835
1835
  var o = e.onBlur;
1836
- o === void 0 && (o = Ke);
1836
+ o === void 0 && (o = qe);
1837
1837
  var i = e.thousandSeparator, l = e.decimalScale, c = e.fixedDecimalScale, d = e.prefix;
1838
1838
  d === void 0 && (d = "");
1839
1839
  var u = e.defaultValue, m = e.value, v = e.valueIsNumericString, f = e.onValueChange, g = Es(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), x = en(e), p = x.decimalSeparator, h = x.allowedDecimalSeparators, y = function(_) {
@@ -1854,9 +1854,9 @@ function ki(e) {
1854
1854
  a(_);
1855
1855
  return;
1856
1856
  }
1857
- V === "Backspace" && Y[0] === "-" && U === d.length + 1 && r && ot(S, 1), l && c && (V === "Backspace" && Y[U - 1] === p ? (ot(S, U - 1), _.preventDefault()) : V === "Delete" && Y[U] === p && _.preventDefault()), h != null && h.includes(V) && Y[U] === p && ot(S, U + 1);
1857
+ V === "Backspace" && Y[0] === "-" && U === d.length + 1 && r && it(S, 1), l && c && (V === "Backspace" && Y[U - 1] === p ? (it(S, U - 1), _.preventDefault()) : V === "Delete" && Y[U] === p && _.preventDefault()), h != null && h.includes(V) && Y[U] === p && it(S, U + 1);
1858
1858
  var Q = i === !0 ? "," : i;
1859
- V === "Backspace" && Y[U - 1] === Q && ot(S, U - 1), V === "Delete" && Y[U] === Q && ot(S, U + 1), a(_);
1859
+ V === "Backspace" && Y[U - 1] === Q && it(S, U - 1), V === "Delete" && Y[U] === Q && it(S, U + 1), a(_);
1860
1860
  }, k = function(_) {
1861
1861
  var S = F;
1862
1862
  if (S.match(/\d/g) || (S = ""), s || (S = li(S)), c && l && (S = or(S, l, c)), S !== F) {
@@ -1898,7 +1898,7 @@ function Mn(e) {
1898
1898
  var t = ki(e);
1899
1899
  return Ne.createElement(vi, Object.assign({}, t));
1900
1900
  }
1901
- const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: d, showClearIcon: u, clearValue: m, className: v, step: f, noSelectOnFocus: g, decimalScale: x, numberPrefix: p, numberSuffix: h, min: y, max: b, hint: N }) => {
1901
+ const gu = ({ InputContainer: e = lt, value: t, onChange: r, debounceMs: s, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: d, showClearIcon: u, clearValue: m, className: v, step: f, noSelectOnFocus: g, decimalScale: x, numberPrefix: p, numberSuffix: h, min: y, max: b, hint: N }) => {
1902
1902
  const j = I(() => {
1903
1903
  if (!r)
1904
1904
  return;
@@ -1930,15 +1930,15 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
1930
1930
  }, onChange: R, hidden: c, disabled: d, className: w("form-control text-end w-100", {
1931
1931
  [`form-control-${l}`]: l
1932
1932
  }), step: f, min: y, max: b }),
1933
- u && t !== null && r && !d && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ n.jsx(He, {}) }) })
1933
+ u && t !== null && r && !d && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ n.jsx(Ue, {}) }) })
1934
1934
  ] });
1935
- }, xu = ({ InputContainer: e = Ae, label: t, options: r, disabled: s, hidden: a, className: o, value: i, onChange: l }) => {
1935
+ }, xu = ({ InputContainer: e = Be, label: t, options: r, disabled: s, hidden: a, className: o, value: i, onChange: l }) => {
1936
1936
  const c = I((d) => {
1937
1937
  l && l(d.target.value);
1938
1938
  }, [l]);
1939
1939
  return /* @__PURE__ */ n.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, children: r.map((d) => /* @__PURE__ */ n.jsx(ge.Check, { id: `radio-${d.id}`, label: d.name, type: "radio", value: d.id ?? "", checked: i === d.id, onChange: c, hidden: a, disabled: s, className: "w-100" }, d.id)) });
1940
- }, vu = ({ InputContainer: e = Ae, formField: t, label: r, resetsFields: s, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: d, onChange: u, className: m }) => {
1941
- const { register: v, formState: f, setValue: g } = et(), [x, p] = T(void 0), [h, y] = T(!1);
1940
+ }, vu = ({ InputContainer: e = Be, formField: t, label: r, resetsFields: s, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: d, onChange: u, className: m }) => {
1941
+ const { register: v, formState: f, setValue: g } = tt(), [x, p] = T(void 0), [h, y] = T(!1);
1942
1942
  M(() => {
1943
1943
  const N = t.split(".");
1944
1944
  let j = f.errors;
@@ -1955,10 +1955,10 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
1955
1955
  s && s.forEach((j) => g(j, null, { shouldDirty: !0, shouldValidate: h })), u && u(N.target.value ?? null);
1956
1956
  }
1957
1957
  }), isInvalid: b, hidden: i, disabled: l || f.disabled, className: "w-100" }),
1958
- x && /* @__PURE__ */ n.jsx(lt, { message: x.message })
1958
+ x && /* @__PURE__ */ n.jsx(ct, { message: x.message })
1959
1959
  ] });
1960
- }, ju = ({ InputContainer: e = Ae, label: t, formField: r, options: s, resetsFields: a, required: o, disabled: i, hidden: l, onChange: c, className: d }) => {
1961
- const { register: u, formState: m, setValue: v, watch: f } = et(), [g, x] = T(void 0), [p, h] = T(!1), y = W(() => s, [s]);
1960
+ }, ju = ({ InputContainer: e = Be, label: t, formField: r, options: s, resetsFields: a, required: o, disabled: i, hidden: l, onChange: c, className: d }) => {
1961
+ const { register: u, formState: m, setValue: v, watch: f } = tt(), [g, x] = T(void 0), [p, h] = T(!1), y = W(() => s, [s]);
1962
1962
  M(() => {
1963
1963
  const N = r.split(".");
1964
1964
  let j = m.errors;
@@ -1976,27 +1976,27 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
1976
1976
  a && a.forEach((L) => v(L, null, { shouldDirty: !0, shouldValidate: p })), c && c((C = j.target) != null && C.value ? j.target.value.toString() : null);
1977
1977
  }
1978
1978
  }), isInvalid: b, hidden: l, disabled: i || m.disabled, className: "w-100" }, N.id)),
1979
- g && /* @__PURE__ */ n.jsx(lt, { message: g.message })
1979
+ g && /* @__PURE__ */ n.jsx(ct, { message: g.message })
1980
1980
  ] });
1981
- }, yu = ({ InputContainer: e = Ae, formField: t, label: r, size: s, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: d, items: u, onSearchQueryChange: m, selectedItemNavigateTo: v, texts: f, dropdownItemsNameWidth: g, isLoading: x, withoutLabel: p, additionalColumns: h, CustomOnChangeComponent: y, icon: b, displayIdAsName: N, onSelect: j, className: C, archiveColumn: L, hint: D, addNewOptionPath: F, refreshOptions: R, MiniDetailComponent: E }) => {
1982
- const { formState: z, setValue: k, watch: X, control: te } = et(), [_, S] = T(void 0), [V, U] = T(!1), [Z, Y] = T(!1), Q = X(t) ?? null, se = Q === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : X(`${t}-DropdownName`), ne = W(() => Q == null ? null : { id: Q ?? null, name: se ?? "" }, [Q, se]), A = I(() => {
1981
+ }, yu = ({ InputContainer: e = Be, formField: t, label: r, size: s, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: d, items: u, onSearchQueryChange: m, selectedItemNavigateTo: v, texts: f, dropdownItemsNameWidth: g, isLoading: x, withoutLabel: p, additionalColumns: h, CustomOnChangeComponent: y, icon: b, displayIdAsName: N, onSelect: j, className: C, archiveColumn: L, hint: D, addNewOptionPath: F, refreshOptions: R, MiniDetailComponent: E }) => {
1982
+ const { formState: z, setValue: k, watch: X, control: te } = tt(), [_, S] = T(void 0), [V, U] = T(!1), [Z, Y] = T(!1), Q = X(t) ?? null, se = Q === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : X(`${t}-DropdownName`), ne = W(() => Q == null ? null : { id: Q ?? null, name: se ?? "" }, [Q, se]), A = I(() => {
1983
1983
  const ae = t.split(".");
1984
- let we = z.errors;
1985
- ae.forEach((Le) => {
1986
- we !== void 0 && (we = we[Le]);
1987
- }), S(we);
1984
+ let _e = z.errors;
1985
+ ae.forEach((Re) => {
1986
+ _e !== void 0 && (_e = _e[Re]);
1987
+ }), S(_e);
1988
1988
  }, [z, t]), J = I((ae) => {
1989
1989
  if ((ae == null ? void 0 : ae.id) === Q)
1990
1990
  return;
1991
- if (j && j(ae), o && o.forEach((Le) => k(Le, null, { shouldDirty: !0, shouldValidate: Z })), ae === null) {
1991
+ if (j && j(ae), o && o.forEach((Re) => k(Re, null, { shouldDirty: !0, shouldValidate: Z })), ae === null) {
1992
1992
  k(t, null, {
1993
1993
  shouldDirty: !0,
1994
1994
  shouldValidate: Z
1995
1995
  }), k(`${t}-DropdownName`, null);
1996
1996
  return;
1997
1997
  }
1998
- let we = null;
1999
- i ? we = (ae == null ? void 0 : ae.id) !== null && (ae == null ? void 0 : ae.id) !== "" ? parseInt(ae.id.toString(), 10) : null : we = ae.id === null || ae.id === void 0 || ae.id === "" ? null : ae.id, k(t, we, {
1998
+ let _e = null;
1999
+ i ? _e = (ae == null ? void 0 : ae.id) !== null && (ae == null ? void 0 : ae.id) !== "" ? parseInt(ae.id.toString(), 10) : null : _e = ae.id === null || ae.id === void 0 || ae.id === "" ? null : ae.id, k(t, _e, {
2000
2000
  shouldDirty: !0,
2001
2001
  shouldValidate: Z
2002
2002
  }), k(`${t}-DropdownName`, ae.name ?? "");
@@ -2010,31 +2010,31 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2010
2010
  }, [A]), M(() => {
2011
2011
  z.isSubmitted && Y(!0);
2012
2012
  }, [z]);
2013
- const xe = ee(null), Be = _ !== void 0, De = v !== void 0, Ve = De && ne !== null;
2014
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: p, isInvalid: Be, inputContainerClassName: w({ "luminus-dropdown-select-open": V }), hint: D, className: C, children: [
2013
+ const xe = ee(null), Ve = _ !== void 0, Le = v !== void 0, Pe = Le && ne !== null, ke = d || z.disabled;
2014
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: p, isInvalid: Ve, inputContainerClassName: w({ "luminus-dropdown-select-open": V }), hint: D, className: C, children: [
2015
2015
  /* @__PURE__ */ n.jsxs(Ts, { currentSelection: ne, selectedItemNavigateTo: v, children: [
2016
2016
  N && (ne == null ? void 0 : ne.name) && /* @__PURE__ */ n.jsx(G, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: ne.name }),
2017
2017
  /* @__PURE__ */ n.jsx(Ln, { control: te, name: t, render: () => /* @__PURE__ */ n.jsx(Xt, { value: Q, MiniDetailComponent: E, children: /* @__PURE__ */ n.jsx(ge.Select, { size: s, onMouseDown: (ae) => {
2018
2018
  ae.currentTarget.focus(), ae.preventDefault();
2019
2019
  }, onClick: () => {
2020
- !De && !d && U(!0);
2020
+ !Le && !ke && U(!0);
2021
2021
  }, ref: xe, value: Q ?? "", onChange: () => {
2022
- }, isInvalid: Be, hidden: c, className: w("w-100", {
2023
- "luminus-dropdown-picker-disabled": d,
2024
- "luminus-dropdown-picker-link": Ve
2022
+ }, isInvalid: Ve, hidden: c, className: w("w-100", {
2023
+ "luminus-dropdown-picker-disabled": ke,
2024
+ "luminus-dropdown-picker-link": Pe
2025
2025
  }), children: /* @__PURE__ */ n.jsx("option", { value: Q, children: N ? Q : (se == null ? void 0 : se.length) > 0 ? se : Q }) }) }) }),
2026
- y || !d && De ? /* @__PURE__ */ n.jsxs("div", { className: "custom-picker-button", children: [
2027
- !y && !d && De && /* @__PURE__ */ n.jsx(re, { size: "sm", color: "secondary", onClick: (ae) => {
2026
+ y || !ke && Le ? /* @__PURE__ */ n.jsxs("div", { className: "custom-picker-button", children: [
2027
+ !y && !ke && Le && /* @__PURE__ */ n.jsx(re, { size: "sm", color: "secondary", onClick: (ae) => {
2028
2028
  ae.preventDefault(), ae.stopPropagation(), U(!0);
2029
2029
  }, children: b ?? /* @__PURE__ */ n.jsx(Br, {}) }),
2030
2030
  y ?? null
2031
2031
  ] }) : null
2032
2032
  ] }),
2033
- _ && /* @__PURE__ */ n.jsx(lt, { message: _.message }),
2034
- xe.current && /* @__PURE__ */ n.jsx(nn, { show: V, onCancel: K, items: u, currentSelection: ne, onSelectionChange: B, onSearchQueryChange: m, texts: f, itemsNameWidth: g, additionalColumns: h, displayIdAsName: N, isLoading: x, disabled: d || z.disabled, inputRef: xe, archiveColumn: L, addNewOptionPath: F, refreshOptions: R })
2033
+ _ && /* @__PURE__ */ n.jsx(ct, { message: _.message }),
2034
+ xe.current && /* @__PURE__ */ n.jsx(nn, { show: V, onCancel: K, items: u, currentSelection: ne, onSelectionChange: B, onSearchQueryChange: m, texts: f, itemsNameWidth: g, additionalColumns: h, displayIdAsName: N, isLoading: x, disabled: ke, inputRef: xe, archiveColumn: L, addNewOptionPath: F, refreshOptions: R })
2035
2035
  ] }) });
2036
- }, wu = ({ InputContainer: e = Ae, label: t, formField: r, hidden: s, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: d, accept: u, withoutLabel: m, hint: v, className: f }) => {
2037
- const { watch: g, setValue: x, register: p, formState: h } = et(), [y, b] = T(!1), [N, j] = T(void 0), C = I(() => {
2036
+ }, wu = ({ InputContainer: e = Be, label: t, formField: r, hidden: s, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: d, accept: u, withoutLabel: m, hint: v, className: f }) => {
2037
+ const { watch: g, setValue: x, register: p, formState: h } = tt(), [y, b] = T(!1), [N, j] = T(void 0), C = I(() => {
2038
2038
  x(r, "");
2039
2039
  }, [x, r]), L = I(() => {
2040
2040
  const F = r.split(".");
@@ -2053,16 +2053,16 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2053
2053
  c && c.forEach((F) => x(F, null, { shouldDirty: !0, shouldValidate: y }));
2054
2054
  }
2055
2055
  }) }),
2056
- l && g(r) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ n.jsx(He, {}) }) }),
2057
- N && /* @__PURE__ */ n.jsx(lt, { message: N.message })
2056
+ l && g(r) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ n.jsx(Ue, {}) }) }),
2057
+ N && /* @__PURE__ */ n.jsx(ct, { message: N.message })
2058
2058
  ] });
2059
2059
  }, bu = ({ children: e, onStorno: t, noSpacer: r }) => {
2060
- const { formState: s } = et(), [a, o] = T(!1);
2060
+ const { formState: s } = tt(), [a, o] = T(!1);
2061
2061
  return M(() => {
2062
2062
  o(Object.keys(s.dirtyFields).length > 0);
2063
2063
  }, [s]), a ? /* @__PURE__ */ n.jsx(Ho, { onStorno: t, noSpacer: r, disabled: s.disabled, children: e }) : null;
2064
- }, _u = ({ InputContainer: e = Ae, options: t, formField: r, label: s, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: d, withoutLabel: u, noSortOptions: m, suffixIdToName: v, onSelect: f, className: g, appendCurrentSelectionWithName: x, hint: p, addNewOptionPath: h, refreshOptions: y, MiniDetailComponent: b }) => {
2065
- const { texts: { customSelect: N } } = H(oe), { formState: j, setValue: C, watch: L, control: D } = et(), [F, R] = T(void 0), [E, z] = T(!1), [k, X] = T(!1), [te, _] = T(""), S = L(r), V = W(() => t.find((B) => B.id === S) ?? null, [t, S]), U = I(() => {
2064
+ }, _u = ({ InputContainer: e = Be, options: t, formField: r, label: s, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: d, withoutLabel: u, noSortOptions: m, suffixIdToName: v, onSelect: f, className: g, appendCurrentSelectionWithName: x, hint: p, addNewOptionPath: h, refreshOptions: y, MiniDetailComponent: b }) => {
2065
+ const { texts: { customSelect: N } } = H(oe), { formState: j, setValue: C, watch: L, control: D } = tt(), [F, R] = T(void 0), [E, z] = T(!1), [k, X] = T(!1), [te, _] = T(""), S = L(r), V = W(() => t.find((B) => B.id === S) ?? null, [t, S]), U = I(() => {
2066
2066
  const B = r.split(".");
2067
2067
  let K = j.errors;
2068
2068
  B.forEach((xe) => {
@@ -2101,7 +2101,7 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2101
2101
  return x !== void 0 && S && (B.some((K) => K.id === S) || B.push({ id: S, name: x })), B.map((K) => ({
2102
2102
  id: K.id,
2103
2103
  name: se(K)
2104
- })).filter((K) => Qe(K.name, te)).sort((K, xe) => m ? 0 : (K.name ?? "").localeCompare(xe.name ?? ""));
2104
+ })).filter((K) => Ze(K.name, te)).sort((K, xe) => m ? 0 : (K.name ?? "").localeCompare(xe.name ?? ""));
2105
2105
  }, [
2106
2106
  t,
2107
2107
  m,
@@ -2117,11 +2117,11 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2117
2117
  z(!0);
2118
2118
  }, ref: A, value: S ?? "", onChange: () => {
2119
2119
  }, isInvalid: J, hidden: c, disabled: d, className: "w-100", children: /* @__PURE__ */ n.jsx("option", { value: (V == null ? void 0 : V.id) ?? "", children: se(V) }) }) }) }),
2120
- F && /* @__PURE__ */ n.jsx(lt, { message: F.message }),
2120
+ F && /* @__PURE__ */ n.jsx(ct, { message: F.message }),
2121
2121
  A.current && /* @__PURE__ */ n.jsx(nn, { show: E, onCancel: () => z(!1), items: ne, currentSelection: V ?? null, onSelectionChange: Y, onSearchQueryChange: Q, texts: N, disabled: d, inputRef: A, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: h, refreshOptions: y })
2122
2122
  ] }) });
2123
- }, Nu = ({ InputContainer: e = Ae, formField: t, label: r, placeholder: s, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: d, disabled: u, withoutLabel: m, step: v, stepperStep: f = 1, className: g, min: x, max: p, onChange: h, hint: y }) => {
2124
- const { register: b, formState: N, setValue: j, watch: C } = et(), [L, D] = T(void 0), [F, R] = T(!1), E = I((_, S, V) => {
2123
+ }, Nu = ({ InputContainer: e = Be, formField: t, label: r, placeholder: s, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: d, disabled: u, withoutLabel: m, step: v, stepperStep: f = 1, className: g, min: x, max: p, onChange: h, hint: y }) => {
2124
+ const { register: b, formState: N, setValue: j, watch: C } = tt(), [L, D] = T(void 0), [F, R] = T(!1), E = I((_, S, V) => {
2125
2125
  j(_, _t(S, x, p), V);
2126
2126
  }, [p, x, j]), z = I(() => {
2127
2127
  const _ = l ?? null;
@@ -2160,11 +2160,11 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2160
2160
  _.preventDefault(), _.stopPropagation(), E(t, ((te ? Number(te) : 0) + f).toString(), { shouldDirty: !0, shouldValidate: F });
2161
2161
  }, children: /* @__PURE__ */ n.jsx(Pr, {}) }) })
2162
2162
  ] }),
2163
- i && C(t) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: z, children: /* @__PURE__ */ n.jsx(He, {}) }) }),
2164
- L && /* @__PURE__ */ n.jsx(lt, { message: L.message })
2163
+ i && C(t) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: z, children: /* @__PURE__ */ n.jsx(Ue, {}) }) }),
2164
+ L && /* @__PURE__ */ n.jsx(ct, { message: L.message })
2165
2165
  ] });
2166
- }, ku = ({ InputContainer: e = Ae, formField: t, label: r, placeholder: s, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: d, withoutLabel: u, step: m, size: v, CustomOnChangeComponent: f, noSelectOnFocus: g, className: x, decimalScale: p = 2, numberPrefix: h, numberSuffix: y, min: b, max: N, onChange: j, hint: C }) => {
2167
- const { formState: L, setValue: D, watch: F, control: R } = et(), [E, z] = T(void 0), [k, X] = T(!1), te = I(() => {
2166
+ }, ku = ({ InputContainer: e = Be, formField: t, label: r, placeholder: s, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: d, withoutLabel: u, step: m, size: v, CustomOnChangeComponent: f, noSelectOnFocus: g, className: x, decimalScale: p = 2, numberPrefix: h, numberSuffix: y, min: b, max: N, onChange: j, hint: C }) => {
2167
+ const { formState: L, setValue: D, watch: F, control: R } = tt(), [E, z] = T(void 0), [k, X] = T(!1), te = I(() => {
2168
2168
  const U = i ?? null;
2169
2169
  D(t, U !== null ? Number(U) : null, {
2170
2170
  shouldDirty: !0,
@@ -2204,8 +2204,8 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2204
2204
  }), step: m, getInputRef: U, min: b, max: N }) }),
2205
2205
  f && /* @__PURE__ */ n.jsx("div", { className: "custom-picker-button", children: f })
2206
2206
  ] }),
2207
- o && F(t) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: te, children: /* @__PURE__ */ n.jsx(He, {}) }) }),
2208
- E && /* @__PURE__ */ n.jsx(lt, { message: E.message })
2207
+ o && F(t) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: te, children: /* @__PURE__ */ n.jsx(Ue, {}) }) }),
2208
+ E && /* @__PURE__ */ n.jsx(ct, { message: E.message })
2209
2209
  ] });
2210
2210
  }, Su = ({ color: e = "primary", icon: t = /* @__PURE__ */ n.jsx(Ar, { size: 12 }), inputId: r = "context-file-input", accept: s = "*", onUpload: a, multiple: o, className: i, children: l, ...c }) => {
2211
2211
  const d = (u) => {
@@ -2325,7 +2325,7 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2325
2325
  }
2326
2326
  ) });
2327
2327
  }, Li = (e, t, r, s) => {
2328
- const { texts: { reports: a } } = H(oe), { prompt: o } = Da(), { confirm: i } = Qt(), l = Je(), { user: c } = H(Lt), { startLoading: d, stopLoading: u } = H(Tt), { addNotification: m } = zr(), v = I(async (h) => {
2328
+ const { texts: { reports: a } } = H(oe), { prompt: o } = Da(), { confirm: i } = Qt(), l = Xe(), { user: c } = H(Lt), { startLoading: d, stopLoading: u } = H(Tt), { addNotification: m } = zr(), v = I(async (h) => {
2329
2329
  d("report-versionSavingAs");
2330
2330
  try {
2331
2331
  const y = await l.post("/reports/version", h);
@@ -2409,7 +2409,7 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2409
2409
  ]);
2410
2410
  return { saveAs: g, save: f, archive: x, detach: p };
2411
2411
  }, Ti = (e) => {
2412
- const t = Je(), { startLoading: r, stopLoading: s } = H(Tt);
2412
+ const t = Xe(), { startLoading: r, stopLoading: s } = H(Tt);
2413
2413
  return { changeEmployeeRights: I(async (o, i) => {
2414
2414
  let l = null;
2415
2415
  r("reportSharing-addPerson");
@@ -2445,9 +2445,9 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2445
2445
  const h = await m(x, !1);
2446
2446
  v(h);
2447
2447
  }, [m, c, l, v]);
2448
- return /* @__PURE__ */ n.jsxs(ke, { show: e, onHide: t, children: [
2449
- /* @__PURE__ */ n.jsx(ke.Header, { closeButton: !0, children: /* @__PURE__ */ n.jsx(ke.Title, { children: l.reportSharing }) }),
2450
- /* @__PURE__ */ n.jsxs(ke.Body, { children: [
2448
+ return /* @__PURE__ */ n.jsxs(Se, { show: e, onHide: t, children: [
2449
+ /* @__PURE__ */ n.jsx(Se.Header, { closeButton: !0, children: /* @__PURE__ */ n.jsx(Se.Title, { children: l.reportSharing }) }),
2450
+ /* @__PURE__ */ n.jsxs(Se.Body, { children: [
2451
2451
  /* @__PURE__ */ n.jsx(G, { variant: "h6", children: l.sharedWith }),
2452
2452
  /* @__PURE__ */ n.jsxs(bs, { variant: "flush", children: [
2453
2453
  r && r.length === 0 ? /* @__PURE__ */ n.jsx("div", { className: "px-2 text-muted", children: l.noone.toLowerCase() }) : null,
@@ -2531,13 +2531,13 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2531
2531
  /* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectYour, children: C == null ? void 0 : C.reportVersions.filter((A) => A.ownerId === j.personalNumber).map((A) => /* @__PURE__ */ n.jsx("option", { value: A.reportVersionId, children: A.name }, A.reportVersionId)) }),
2532
2532
  /* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectSharedWithYou, children: C == null ? void 0 : C.reportVersions.filter((A) => A.isSystem === !1 && A.ownerId !== j.personalNumber).map((A) => /* @__PURE__ */ n.jsx("option", { value: A.reportVersionId, children: `${A.name} [${A.ownerId}]` }, A.reportVersionId)) })
2533
2533
  ] }),
2534
- /* @__PURE__ */ n.jsx(We, { icon: /* @__PURE__ */ n.jsx(Ta, {}), onClick: te, disabled: p === null || (k == null ? void 0 : k.isSystem) || !Y, children: m.save }),
2535
- /* @__PURE__ */ n.jsx(We, { icon: /* @__PURE__ */ n.jsx(Ea, {}), onClick: _, className: "flex-shrink-0", children: m.saveAs }),
2534
+ /* @__PURE__ */ n.jsx(He, { icon: /* @__PURE__ */ n.jsx(Ta, {}), onClick: te, disabled: p === null || (k == null ? void 0 : k.isSystem) || !Y, children: m.save }),
2535
+ /* @__PURE__ */ n.jsx(He, { icon: /* @__PURE__ */ n.jsx(Ea, {}), onClick: _, className: "flex-shrink-0", children: m.saveAs }),
2536
2536
  /* @__PURE__ */ n.jsxs(ht, { toggle: /* @__PURE__ */ n.jsx(pt, { as: Et }), children: [
2537
- /* @__PURE__ */ n.jsx(Se, { onClick: Z, children: m.revertChanges }),
2538
- /* @__PURE__ */ n.jsx(Se, { onClick: () => b(!0), disabled: !Y || (k == null ? void 0 : k.isSystem), children: m.share }),
2539
- Y && !(k != null && k.isSystem) ? /* @__PURE__ */ n.jsx(Se, { color: "danger", onClick: se, children: m.delete }) : null,
2540
- Q && !(k != null && k.isSystem) ? /* @__PURE__ */ n.jsx(Se, { color: "danger", onClick: ne, children: m.detach }) : null
2537
+ /* @__PURE__ */ n.jsx(Ce, { onClick: Z, children: m.revertChanges }),
2538
+ /* @__PURE__ */ n.jsx(Ce, { onClick: () => b(!0), disabled: !Y || (k == null ? void 0 : k.isSystem), children: m.share }),
2539
+ Y && !(k != null && k.isSystem) ? /* @__PURE__ */ n.jsx(Ce, { color: "danger", onClick: se, children: m.delete }) : null,
2540
+ Q && !(k != null && k.isSystem) ? /* @__PURE__ */ n.jsx(Ce, { color: "danger", onClick: ne, children: m.detach }) : null
2541
2541
  ] })
2542
2542
  ] })
2543
2543
  ] }), children: /* @__PURE__ */ n.jsx("div", { className: w("h-100 w-100", U.data && U.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ n.jsx(Di, { dataSource: U, settings: F, pivotRef: N, enabled: U.data && U.data.length > 0, localization: o, licenseKey: i, hyperlinkColumn: u }) }) }),
@@ -2564,7 +2564,7 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2564
2564
  } }, s)) }), Ri = ({ linksTo: e, onClick: t, children: r }) => e ? /* @__PURE__ */ n.jsx(Oe, { to: e, className: "text-decoration-none", onClick: t, children: r }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: r }), Mi = ({ message: e, onDeleteMessage: t, onClickMessage: r, getIcon: s, getLinksTo: a }) => {
2565
2565
  const { ProjectIconComponent: o, localizationContext: i } = H(oe), { dateFnsLocale: l } = H(i), c = e.dateTime ? Ct(e.dateTime) : null, d = c ? jo(new Date(Date.now()), c) : 0;
2566
2566
  return /* @__PURE__ */ n.jsxs("div", { children: [
2567
- c && /* @__PURE__ */ n.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ n.jsx(Xe, { text: St(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(G, { variant: "caption", children: d > 2 ? St(c, "dd.MM.yyyy") : wo(c, new Date(Date.now()), {
2567
+ c && /* @__PURE__ */ n.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ n.jsx(et, { text: St(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(G, { variant: "caption", children: d > 2 ? St(c, "dd.MM.yyyy") : wo(c, new Date(Date.now()), {
2568
2568
  locale: l.code
2569
2569
  }) }) }) }) }),
2570
2570
  /* @__PURE__ */ n.jsx(Ri, { linksTo: a(e) ?? void 0, onClick: r, children: /* @__PURE__ */ n.jsx(Qc, { level: e.type, noIcon: !0, children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
@@ -2585,17 +2585,17 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2585
2585
  return /* @__PURE__ */ n.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
2586
2586
  /* @__PURE__ */ n.jsx(Oi, { knownTypes: mr, typeFilters: l, onChangeTypeFilters: (u) => c(u) }),
2587
2587
  t && /* @__PURE__ */ n.jsxs("div", { className: "p-3 w-100", children: [
2588
- /* @__PURE__ */ n.jsx(Ye, { as: Zn.Title, animation: "glow", children: /* @__PURE__ */ n.jsx(Ye, { xs: 6 }) }),
2589
- /* @__PURE__ */ n.jsxs(Ye, { as: Zn.Text, animation: "glow", children: [
2590
- /* @__PURE__ */ n.jsx(Ye, { xs: 7 }),
2588
+ /* @__PURE__ */ n.jsx(Ke, { as: Zn.Title, animation: "glow", children: /* @__PURE__ */ n.jsx(Ke, { xs: 6 }) }),
2589
+ /* @__PURE__ */ n.jsxs(Ke, { as: Zn.Text, animation: "glow", children: [
2590
+ /* @__PURE__ */ n.jsx(Ke, { xs: 7 }),
2591
2591
  " ",
2592
- /* @__PURE__ */ n.jsx(Ye, { xs: 4 }),
2592
+ /* @__PURE__ */ n.jsx(Ke, { xs: 4 }),
2593
2593
  " ",
2594
- /* @__PURE__ */ n.jsx(Ye, { xs: 4 }),
2594
+ /* @__PURE__ */ n.jsx(Ke, { xs: 4 }),
2595
2595
  " ",
2596
- /* @__PURE__ */ n.jsx(Ye, { xs: 6 }),
2596
+ /* @__PURE__ */ n.jsx(Ke, { xs: 6 }),
2597
2597
  " ",
2598
- /* @__PURE__ */ n.jsx(Ye, { xs: 8 })
2598
+ /* @__PURE__ */ n.jsx(Ke, { xs: 8 })
2599
2599
  ] })
2600
2600
  ] }),
2601
2601
  !t && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -2607,7 +2607,7 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2607
2607
  apiGet: "/messageBoard",
2608
2608
  apiDelete: "/messageBoard/"
2609
2609
  }, $u = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = fn.apiGet, apiDelete: s = fn.apiDelete } = fn, getIcon: a, getLinksTo: o }) => {
2610
- const l = Je(), [c, d] = T([]), [u, m] = T(!1), [v, f] = T(!1), [g, x] = T(!1), p = I(async () => {
2610
+ const l = Xe(), [c, d] = T([]), [u, m] = T(!1), [v, f] = T(!1), [g, x] = T(!1), p = I(async () => {
2611
2611
  f(!0), await l.get(r).then(({ data: j }) => {
2612
2612
  d(j), m(!0), f(!1);
2613
2613
  }).catch(() => {
@@ -2664,7 +2664,7 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2664
2664
  }, { [hn.disabled]: s }, { vertical: a }, { [hn.vertical]: a }), onClick: () => r && !s && r(e), children: typeof o == "string" ? /* @__PURE__ */ n.jsx(G, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: o }) : o }), Lu = ({ tabs: e, activeTab: t, onSelect: r, ...s }) => {
2665
2665
  var i;
2666
2666
  const { ProjectIconComponent: a } = H(oe), { isMobile: o } = Zt();
2667
- return o ? /* @__PURE__ */ n.jsx(ht, { toggle: /* @__PURE__ */ n.jsx(pt, { as: Et, text: ((i = e.find((l) => l.id === t)) == null ? void 0 : i.name) ?? "", icon: /* @__PURE__ */ n.jsx(a, { icon: "chevron-down" }) }), ...s, children: e.map((l) => /* @__PURE__ */ n.jsx(Se, { onClick: () => r(l.id), children: l.name }, l.id)) }) : /* @__PURE__ */ n.jsx(Wi, { activeTab: t, onSelect: (l) => r(l), ...s, children: e.map((l) => /* @__PURE__ */ n.jsx(Yi, { eventKey: l.id, children: l.name }, l.id)) });
2667
+ return o ? /* @__PURE__ */ n.jsx(ht, { toggle: /* @__PURE__ */ n.jsx(pt, { as: Et, text: ((i = e.find((l) => l.id === t)) == null ? void 0 : i.name) ?? "", icon: /* @__PURE__ */ n.jsx(a, { icon: "chevron-down" }) }), ...s, children: e.map((l) => /* @__PURE__ */ n.jsx(Ce, { onClick: () => r(l.id), children: l.name }, l.id)) }) : /* @__PURE__ */ n.jsx(Wi, { activeTab: t, onSelect: (l) => r(l), ...s, children: e.map((l) => /* @__PURE__ */ n.jsx(Yi, { eventKey: l.id, children: l.name }, l.id)) });
2668
2668
  }, Ki = "_selection_1dtmm_1", qi = "_selectionBg_1dtmm_10", Qi = "_selectionItemsContainer_1dtmm_18", Zi = "_selectionItems_1dtmm_18", Mt = {
2669
2669
  selection: Ki,
2670
2670
  selectionBg: qi,
@@ -2695,7 +2695,7 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2695
2695
  s({ ...e, icon: o, name: l });
2696
2696
  }, [s, o, l, e]);
2697
2697
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2698
- /* @__PURE__ */ n.jsx("td", { className: "align-middle", children: /* @__PURE__ */ n.jsx(Ze, { type: "text", maxLength: 20, value: l, onChange: c, className: "d-flex-grow-1", InputContainer: Fe }) }),
2698
+ /* @__PURE__ */ n.jsx("td", { className: "align-middle", children: /* @__PURE__ */ n.jsx(Je, { type: "text", maxLength: 20, value: l, onChange: c, className: "d-flex-grow-1", InputContainer: Fe }) }),
2699
2699
  /* @__PURE__ */ n.jsx("td", { className: "align-middle text-center", children: /* @__PURE__ */ n.jsx(Ps, { icon: o, setIcon: i, IconComponent: t, IconTypeArray: r }) }),
2700
2700
  /* @__PURE__ */ n.jsx("td", { className: "align-middle", style: { width: "7em" }, children: d && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2701
2701
  /* @__PURE__ */ n.jsx(re, { onClick: u, color: "danger", className: "d-inline mx-2", children: /* @__PURE__ */ n.jsx(a, { icon: "cancel" }) }),
@@ -2708,7 +2708,7 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2708
2708
  }, [a, e.id]);
2709
2709
  return /* @__PURE__ */ n.jsx("tr", { className: "mb-3", children: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2710
2710
  /* @__PURE__ */ n.jsx("td", { className: "align-middle", children: /* @__PURE__ */ n.jsx(re, { onClick: i, color: "danger", children: /* @__PURE__ */ n.jsx(o, { icon: "delete" }) }) }),
2711
- /* @__PURE__ */ n.jsx("td", { className: "align-middle", children: e.url.length <= 23 ? e.url : /* @__PURE__ */ n.jsx(Xe, { placement: "bottom", text: e.url, children: /* @__PURE__ */ n.jsxs("span", { children: [
2711
+ /* @__PURE__ */ n.jsx("td", { className: "align-middle", children: e.url.length <= 23 ? e.url : /* @__PURE__ */ n.jsx(et, { placement: "bottom", text: e.url, children: /* @__PURE__ */ n.jsxs("span", { children: [
2712
2712
  e.url.slice(0, 21),
2713
2713
  "..."
2714
2714
  ] }) }) }),
@@ -2730,7 +2730,7 @@ const gu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
2730
2730
  linkButton: el,
2731
2731
  linkAddButton: tl,
2732
2732
  createLinkRow: nl
2733
- }, rl = ({ shortcutLink: e, IconComponent: t }) => /* @__PURE__ */ n.jsx(Xe, { text: e.name, placement: "bottom", children: /* @__PURE__ */ n.jsx(Oe, { to: e.url, className: mt.linkButton, children: /* @__PURE__ */ n.jsx(t, { icon: e.icon }) }) });
2733
+ }, rl = ({ shortcutLink: e, IconComponent: t }) => /* @__PURE__ */ n.jsx(et, { text: e.name, placement: "bottom", children: /* @__PURE__ */ n.jsx(Oe, { to: e.url, className: mt.linkButton, children: /* @__PURE__ */ n.jsx(t, { icon: e.icon }) }) });
2734
2734
  function sl(e, t, r) {
2735
2735
  var s = this, a = ee(null), o = ee(0), i = ee(null), l = ee([]), c = ee(), d = ee(), u = ee(e), m = ee(!0);
2736
2736
  u.current = e;
@@ -2795,31 +2795,31 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
2795
2795
  const i = uo(), { texts: l } = H(oe), [c, d] = T("star-outline"), [u, m] = T(s ? document.title.replace(s, "") : document.title), v = I(async () => {
2796
2796
  await r({ icon: c, name: u, url: i.pathname + i.search }), e();
2797
2797
  }, [e, r, c, i.pathname, i.search, u]), f = W(() => i.pathname + i.search, [i.pathname, i.search]);
2798
- return /* @__PURE__ */ n.jsxs(ke, { show: t, onHide: e, size: "sm", children: [
2799
- /* @__PURE__ */ n.jsx(ke.Header, { closeButton: !0, children: /* @__PURE__ */ n.jsx(ke.Title, { children: l.shortcutLinks.newShortcut }) }),
2800
- /* @__PURE__ */ n.jsxs(ke.Body, { children: [
2798
+ return /* @__PURE__ */ n.jsxs(Se, { show: t, onHide: e, size: "sm", children: [
2799
+ /* @__PURE__ */ n.jsx(Se.Header, { closeButton: !0, children: /* @__PURE__ */ n.jsx(Se.Title, { children: l.shortcutLinks.newShortcut }) }),
2800
+ /* @__PURE__ */ n.jsxs(Se.Body, { children: [
2801
2801
  /* @__PURE__ */ n.jsxs("div", { className: mt.createLinkRow, children: [
2802
2802
  /* @__PURE__ */ n.jsx(G, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.target }),
2803
- /* @__PURE__ */ n.jsx("div", { className: "d-flex align-items-middle fw-bold text-muted", children: f.length <= 23 ? f : /* @__PURE__ */ n.jsx(Xe, { placement: "bottom", text: f, children: /* @__PURE__ */ n.jsxs("span", { children: [
2803
+ /* @__PURE__ */ n.jsx("div", { className: "d-flex align-items-middle fw-bold text-muted", children: f.length <= 23 ? f : /* @__PURE__ */ n.jsx(et, { placement: "bottom", text: f, children: /* @__PURE__ */ n.jsxs("span", { children: [
2804
2804
  f.slice(0, 21),
2805
2805
  "..."
2806
2806
  ] }) }) })
2807
2807
  ] }),
2808
2808
  /* @__PURE__ */ n.jsxs("div", { className: mt.createLinkRow, children: [
2809
2809
  /* @__PURE__ */ n.jsx(G, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.name }),
2810
- /* @__PURE__ */ n.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ n.jsx(Ze, { type: "text", maxLength: 25, value: u, onChange: m, className: "w-100", InputContainer: Ae, withoutLabel: !0 }) })
2810
+ /* @__PURE__ */ n.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ n.jsx(Je, { type: "text", maxLength: 25, value: u, onChange: m, className: "w-100", InputContainer: Be, withoutLabel: !0 }) })
2811
2811
  ] }),
2812
2812
  /* @__PURE__ */ n.jsxs("div", { className: mt.createLinkRow, children: [
2813
2813
  /* @__PURE__ */ n.jsx(G, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.icon }),
2814
2814
  /* @__PURE__ */ n.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ n.jsx(Ps, { icon: c, setIcon: d, IconComponent: a, IconTypeArray: o }) })
2815
2815
  ] })
2816
2816
  ] }),
2817
- /* @__PURE__ */ n.jsx(ke.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ n.jsx(zt, { onClick: v, children: l.shortcutLinks.addShortcut }) })
2817
+ /* @__PURE__ */ n.jsx(Se.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ n.jsx(zt, { onClick: v, children: l.shortcutLinks.addShortcut }) })
2818
2818
  ] });
2819
2819
  }, il = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r, createLink: s }) => {
2820
2820
  const { ProjectIconComponent: a, texts: o } = H(oe), [i, l] = T(!1), [c] = tn(i, 100);
2821
2821
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2822
- /* @__PURE__ */ n.jsx(Xe, { text: o.shortcutLinks.addShortcut, placement: "bottom", children: /* @__PURE__ */ n.jsx("button", { type: "button", className: w(mt.linkButton, mt.linkAddButton), onClick: () => l(!0), children: /* @__PURE__ */ n.jsx(a, { icon: "add" }) }) }),
2822
+ /* @__PURE__ */ n.jsx(et, { text: o.shortcutLinks.addShortcut, placement: "bottom", children: /* @__PURE__ */ n.jsx("button", { type: "button", className: w(mt.linkButton, mt.linkAddButton), onClick: () => l(!0), children: /* @__PURE__ */ n.jsx(a, { icon: "add" }) }) }),
2823
2823
  (i || c) && /* @__PURE__ */ n.jsx(ol, { IconComponent: e, IconTypeArray: t, closeModal: () => l(!1), createLink: s, isOpen: i, pageTitlePrefix: r })
2824
2824
  ] });
2825
2825
  }, Eu = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r }) => {
@@ -2829,7 +2829,7 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
2829
2829
  o && /* @__PURE__ */ n.jsx(il, { IconComponent: e, IconTypeArray: t, pageTitlePrefix: r, createLink: a })
2830
2830
  ] }) });
2831
2831
  }, ll = (e) => {
2832
- const t = Je(), { startLoading: r, stopLoading: s } = H(Tt), a = I(async (l) => {
2832
+ const t = Xe(), { startLoading: r, stopLoading: s } = H(Tt), a = I(async (l) => {
2833
2833
  r("submit-createShortcutLink");
2834
2834
  try {
2835
2835
  await t.post(`/dynamicForms/insert?referenceId=${e}`, l);
@@ -2882,7 +2882,7 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
2882
2882
  deleteShortcutLink: m
2883
2883
  }), [d, m, u, a]);
2884
2884
  return /* @__PURE__ */ n.jsx(Ur.Provider, { value: v, children: e });
2885
- }, dl = "_widgets-row_13gg1_1", ul = "_widget_13gg1_1", fl = "_widget-img_13gg1_5", ml = "_widget-title-spacer_13gg1_14", hl = "_widget-title_13gg1_14", pl = "_title_13gg1_28", Ie = {
2885
+ }, dl = "_widgets-row_13gg1_1", ul = "_widget_13gg1_1", fl = "_widget-img_13gg1_5", ml = "_widget-title-spacer_13gg1_14", hl = "_widget-title_13gg1_14", pl = "_title_13gg1_28", $e = {
2886
2886
  "widgets-row": "_widgets-row_13gg1_1",
2887
2887
  widgetsRow: dl,
2888
2888
  widget: ul,
@@ -2894,29 +2894,29 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
2894
2894
  widgetTitle: hl,
2895
2895
  title: pl
2896
2896
  }, gl = ({ show: e, widgetGroups: t, widgets: r, handleClose: s, onWidgetPicked: a, texts: o }) => {
2897
- const [i, l] = T(""), c = W(() => r.filter((u) => u.id !== -1 && Qe(u.name, i)), [r, i]), d = W(() => t.filter((u) => c.some((m) => m.group === u.id)), [t, c]);
2898
- return /* @__PURE__ */ n.jsxs(ke, { show: e, onHide: () => s(), size: "lg", children: [
2899
- /* @__PURE__ */ n.jsxs(ke.Header, { closeButton: !0, children: [
2900
- /* @__PURE__ */ n.jsx(ke.Title, { className: "w-100", children: o.pickWidgetToAdd }),
2897
+ const [i, l] = T(""), c = W(() => r.filter((u) => u.id !== -1 && Ze(u.name, i)), [r, i]), d = W(() => t.filter((u) => c.some((m) => m.group === u.id)), [t, c]);
2898
+ return /* @__PURE__ */ n.jsxs(Se, { show: e, onHide: () => s(), size: "lg", children: [
2899
+ /* @__PURE__ */ n.jsxs(Se.Header, { closeButton: !0, children: [
2900
+ /* @__PURE__ */ n.jsx(Se.Title, { className: "w-100", children: o.pickWidgetToAdd }),
2901
2901
  /* @__PURE__ */ n.jsx(ge.Control, { type: "search", size: "sm", value: i, placeholder: o.searchPlaceholder, onChange: (u) => {
2902
2902
  var m;
2903
2903
  return l(((m = u.target) == null ? void 0 : m.value) ?? "");
2904
2904
  }, className: "me-3", style: { maxWidth: "200px" } })
2905
2905
  ] }),
2906
- /* @__PURE__ */ n.jsx(ke.Body, { className: "flex-column gap-3", children: c.length === 0 ? /* @__PURE__ */ n.jsx(rn, { variant: "warning", children: o.noWidgets }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2907
- d.map((u) => /* @__PURE__ */ n.jsx(Yt, { defaultOpen: !0, title: u.name ?? "", children: /* @__PURE__ */ n.jsx("div", { className: "p-1", children: /* @__PURE__ */ n.jsx("div", { className: w("row gx-3 gy-3", Ie.widgetsRow), children: c.filter((m) => m.group === u.id).map((m) => /* @__PURE__ */ n.jsx("div", { className: "col col-4", children: /* @__PURE__ */ n.jsxs("div", { role: "button", className: w("p-0 pt-2 bg-white rounded shadow-sm", Ie.widget), onClick: () => a(m.id), children: [
2908
- /* @__PURE__ */ n.jsx("div", { className: Ie.widgetImg, style: {
2906
+ /* @__PURE__ */ n.jsx(Se.Body, { className: "flex-column gap-3", children: c.length === 0 ? /* @__PURE__ */ n.jsx(rn, { variant: "warning", children: o.noWidgets }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2907
+ d.map((u) => /* @__PURE__ */ n.jsx(Yt, { defaultOpen: !0, title: u.name ?? "", children: /* @__PURE__ */ n.jsx("div", { className: "p-1", children: /* @__PURE__ */ n.jsx("div", { className: w("row gx-3 gy-3", $e.widgetsRow), children: c.filter((m) => m.group === u.id).map((m) => /* @__PURE__ */ n.jsx("div", { className: "col col-4", children: /* @__PURE__ */ n.jsxs("div", { role: "button", className: w("p-0 pt-2 bg-white rounded shadow-sm", $e.widget), onClick: () => a(m.id), children: [
2908
+ /* @__PURE__ */ n.jsx("div", { className: $e.widgetImg, style: {
2909
2909
  backgroundImage: m.img ? `url(${m.img})` : void 0
2910
2910
  } }),
2911
- /* @__PURE__ */ n.jsx("div", { className: Ie.widgetTitleSpacer }),
2912
- /* @__PURE__ */ n.jsx("div", { className: w(Ie.widgetTitle, "rounded"), children: /* @__PURE__ */ n.jsx(G, { variant: "body", className: w(Ie.title, "text-white text-truncate"), children: m.name }) })
2911
+ /* @__PURE__ */ n.jsx("div", { className: $e.widgetTitleSpacer }),
2912
+ /* @__PURE__ */ n.jsx("div", { className: w($e.widgetTitle, "rounded"), children: /* @__PURE__ */ n.jsx(G, { variant: "body", className: w($e.title, "text-white text-truncate"), children: m.name }) })
2913
2913
  ] }, m.id) })) }) }) }, u.id)),
2914
- c.some((u) => u.group === void 0) && /* @__PURE__ */ n.jsx(Yt, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ n.jsx("div", { className: "p-1", children: /* @__PURE__ */ n.jsx("div", { className: w("row gx-3 gy-3", Ie.widgetsRow), children: c.filter((u) => u.group === void 0).map((u) => /* @__PURE__ */ n.jsx("div", { className: "col col-4", children: /* @__PURE__ */ n.jsxs("div", { role: "button", className: w("p-0 pt-2 bg-white rounded shadow-sm", Ie.widget), onClick: () => a(u.id), children: [
2915
- /* @__PURE__ */ n.jsx("div", { className: Ie.widgetImg, style: {
2914
+ c.some((u) => u.group === void 0) && /* @__PURE__ */ n.jsx(Yt, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ n.jsx("div", { className: "p-1", children: /* @__PURE__ */ n.jsx("div", { className: w("row gx-3 gy-3", $e.widgetsRow), children: c.filter((u) => u.group === void 0).map((u) => /* @__PURE__ */ n.jsx("div", { className: "col col-4", children: /* @__PURE__ */ n.jsxs("div", { role: "button", className: w("p-0 pt-2 bg-white rounded shadow-sm", $e.widget), onClick: () => a(u.id), children: [
2915
+ /* @__PURE__ */ n.jsx("div", { className: $e.widgetImg, style: {
2916
2916
  backgroundImage: u.img ? `url(${u.img})` : void 0
2917
2917
  } }),
2918
- /* @__PURE__ */ n.jsx("div", { className: Ie.widgetTitleSpacer }),
2919
- /* @__PURE__ */ n.jsx("div", { className: w(Ie.widgetTitle, "rounded"), children: /* @__PURE__ */ n.jsx(G, { variant: "body", className: w(Ie.title, "text-white text-truncate"), children: u.name }) })
2918
+ /* @__PURE__ */ n.jsx("div", { className: $e.widgetTitleSpacer }),
2919
+ /* @__PURE__ */ n.jsx("div", { className: w($e.widgetTitle, "rounded"), children: /* @__PURE__ */ n.jsx(G, { variant: "body", className: w($e.title, "text-white text-truncate"), children: u.name }) })
2920
2920
  ] }, u.id) })) }) }) })
2921
2921
  ] }) })
2922
2922
  ] });
@@ -2933,7 +2933,7 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
2933
2933
  o(!1), r(l);
2934
2934
  }, texts: s })
2935
2935
  ] });
2936
- }, jl = "_dashboard_if2cc_1", yl = "_widgets-grid_if2cc_1", wl = "_widget-wrapper_if2cc_8", bl = "_full-width_if2cc_13", _l = "_widget-edit_if2cc_16", Nl = "_remove-icon_if2cc_19", kl = "_full-width-icon_if2cc_26", Sl = "_widget-edit-overlay_if2cc_36", Cl = "_mobile_if2cc_45", Me = {
2936
+ }, jl = "_dashboard_if2cc_1", yl = "_widgets-grid_if2cc_1", wl = "_widget-wrapper_if2cc_8", bl = "_full-width_if2cc_13", _l = "_widget-edit_if2cc_16", Nl = "_remove-icon_if2cc_19", kl = "_full-width-icon_if2cc_26", Sl = "_widget-edit-overlay_if2cc_36", Cl = "_mobile_if2cc_45", Ae = {
2937
2937
  dashboard: jl,
2938
2938
  "widgets-grid": "_widgets-grid_if2cc_1",
2939
2939
  widgetsGrid: yl,
@@ -2983,15 +2983,15 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
2983
2983
  ...o,
2984
2984
  widgets: ((g = o.widgets) == null ? void 0 : g.map((x, p) => p === f ? { ...x, fullWidth: !x.fullWidth } : x)) ?? []
2985
2985
  });
2986
- }, [o, i]), u = I((f, g, x) => f ? /* @__PURE__ */ n.jsxs("div", { className: w(Me.widgetWrapper, {
2987
- [Me.widgetEdit]: r && f.id !== -1
2988
- }, { [Me.fullWidth]: x }), children: [
2986
+ }, [o, i]), u = I((f, g, x) => f ? /* @__PURE__ */ n.jsxs("div", { className: w(Ae.widgetWrapper, {
2987
+ [Ae.widgetEdit]: r && f.id !== -1
2988
+ }, { [Ae.fullWidth]: x }), children: [
2989
2989
  r && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2990
- /* @__PURE__ */ n.jsx(re, { color: "danger", onClick: () => c(g), className: w(Me.removeIcon), children: /* @__PURE__ */ n.jsx(Gr, {}) }),
2991
- /* @__PURE__ */ n.jsx(re, { color: x ? "danger" : "primary", onClick: () => d(g), className: w(Me.fullWidthIcon), children: /* @__PURE__ */ n.jsx(Oa, {}) })
2990
+ /* @__PURE__ */ n.jsx(re, { color: "danger", onClick: () => c(g), className: w(Ae.removeIcon), children: /* @__PURE__ */ n.jsx(Gr, {}) }),
2991
+ /* @__PURE__ */ n.jsx(re, { color: x ? "danger" : "primary", onClick: () => d(g), className: w(Ae.fullWidthIcon), children: /* @__PURE__ */ n.jsx(Oa, {}) })
2992
2992
  ] }),
2993
- f.id === -1 ? r && /* @__PURE__ */ n.jsx("div", { className: Me.widgetWrapper, children: /* @__PURE__ */ n.jsx(xr, { widgetGroups: e, availableWidgets: t, onAdd: (p) => l(g, p), texts: a }) }) : /* @__PURE__ */ n.jsx(ti, { title: f.title, children: /* @__PURE__ */ n.jsx(f.WidgetElement, { title: f.title }) }),
2994
- f.id > -1 && r && /* @__PURE__ */ n.jsx("div", { className: Me.widgetEditOverlay })
2993
+ f.id === -1 ? r && /* @__PURE__ */ n.jsx("div", { className: Ae.widgetWrapper, children: /* @__PURE__ */ n.jsx(xr, { widgetGroups: e, availableWidgets: t, onAdd: (p) => l(g, p), texts: a }) }) : /* @__PURE__ */ n.jsx(ti, { title: f.title, children: /* @__PURE__ */ n.jsx(f.WidgetElement, { title: f.title }) }),
2994
+ f.id > -1 && r && /* @__PURE__ */ n.jsx("div", { className: Ae.widgetEditOverlay })
2995
2995
  ] }, g) : /* @__PURE__ */ n.jsx(n.Fragment, {}), [
2996
2996
  r,
2997
2997
  e,
@@ -3001,7 +3001,7 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
3001
3001
  t,
3002
3002
  a
3003
3003
  ]), { isMobile: m } = Zt();
3004
- return /* @__PURE__ */ n.jsx("div", { className: w(Me.dashboard, { [Me.mobile]: m }), children: /* @__PURE__ */ n.jsxs("div", { className: w(Me.widgetsGrid), children: [
3004
+ return /* @__PURE__ */ n.jsx("div", { className: w(Ae.dashboard, { [Ae.mobile]: m }), children: /* @__PURE__ */ n.jsxs("div", { className: w(Ae.widgetsGrid), children: [
3005
3005
  (v = o.widgets) == null ? void 0 : v.map((f, g) => u(t.find((x) => x.id === f.widgetId), g, f.fullWidth)),
3006
3006
  r && /* @__PURE__ */ n.jsx(xr, { widgetGroups: e, availableWidgets: t, onAdd: (f) => {
3007
3007
  var g;
@@ -3035,7 +3035,7 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
3035
3035
  /* @__PURE__ */ n.jsx(ts, { in: l, children: /* @__PURE__ */ n.jsx("div", { children: t }) }),
3036
3036
  /* @__PURE__ */ n.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
3037
3037
  ] });
3038
- }, Rl = "_wrapper_1kmlk_1", Ml = "_open_1kmlk_9", Al = "_dropdown_1kmlk_13", Bl = "_search-input-container_1kmlk_19", Vl = "_search-input_1kmlk_19", Pl = "_loading-container_1kmlk_25", zl = "_items-container_1kmlk_32", Wl = "_header-row_1kmlk_38", Hl = "_item_1kmlk_32", Ul = "_name_1kmlk_57", Gl = "_column-item_1kmlk_62", Yl = "_icon_1kmlk_66", Kl = "_action-buttons-container_1kmlk_74", ql = "_reverse_1kmlk_82", Ql = "_action-button_1kmlk_74", Zl = "_actions-dropdown_1kmlk_95", _e = {
3038
+ }, Rl = "_wrapper_1kmlk_1", Ml = "_open_1kmlk_9", Al = "_dropdown_1kmlk_13", Bl = "_search-input-container_1kmlk_19", Vl = "_search-input_1kmlk_19", Pl = "_loading-container_1kmlk_25", zl = "_items-container_1kmlk_32", Wl = "_header-row_1kmlk_38", Hl = "_item_1kmlk_32", Ul = "_name_1kmlk_57", Gl = "_column-item_1kmlk_62", Yl = "_icon_1kmlk_66", Kl = "_action-buttons-container_1kmlk_74", ql = "_reverse_1kmlk_82", Ql = "_action-button_1kmlk_74", Zl = "_actions-dropdown_1kmlk_95", be = {
3039
3039
  wrapper: Rl,
3040
3040
  open: Ml,
3041
3041
  dropdown: Al,
@@ -3062,8 +3062,8 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
3062
3062
  "actions-dropdown": "_actions-dropdown_1kmlk_95",
3063
3063
  actionsDropdown: Zl
3064
3064
  }, nn = ({ show: e, onCancel: t, items: r, currentSelection: s, onSelectionChange: a, onSearchQueryChange: o, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: d = !1, autoHideSearch: u = !1, allItemsLength: m, disabled: v, isLoading: f = !1, inputRef: g, archiveColumn: x = "archive", addNewOptionPath: p, refreshOptions: h }) => {
3065
- var ct;
3066
- const { texts: { customSelect: y } } = H(oe), b = ee(null), N = ee(null), j = ee(null), C = ee(null), L = ee(null), [D, F] = T(""), [R] = tn(D, 500), [, E] = T(!1), { copyToClipboard: z } = mo(), k = (ct = g.current) == null ? void 0 : ct.getBoundingClientRect(), X = (k == null ? void 0 : k.x) ?? 0, te = ((k == null ? void 0 : k.x) ?? 0) + ((k == null ? void 0 : k.width) ?? 0), _ = (k == null ? void 0 : k.y) ?? 0, S = ((k == null ? void 0 : k.y) ?? 0) + ((k == null ? void 0 : k.height) ?? 0), V = (k == null ? void 0 : k.width) ?? 0, U = (k == null ? void 0 : k.height) ?? 0, Z = 5, Y = W(() => X ? X > window.innerWidth / 2 : !1, [X]), Q = W(() => _ ? _ > window.innerHeight / 2 : !1, [_]);
3065
+ var Re;
3066
+ const { texts: { customSelect: y } } = H(oe), b = ee(null), N = ee(null), j = ee(null), C = ee(null), L = ee(null), [D, F] = T(""), [R] = tn(D, 500), [, E] = T(!1), { copyToClipboard: z } = mo(), k = (Re = g.current) == null ? void 0 : Re.getBoundingClientRect(), X = (k == null ? void 0 : k.x) ?? 0, te = ((k == null ? void 0 : k.x) ?? 0) + ((k == null ? void 0 : k.width) ?? 0), _ = (k == null ? void 0 : k.y) ?? 0, S = ((k == null ? void 0 : k.y) ?? 0) + ((k == null ? void 0 : k.height) ?? 0), V = (k == null ? void 0 : k.width) ?? 0, U = (k == null ? void 0 : k.height) ?? 0, Z = 5, Y = W(() => X ? X > window.innerWidth / 2 : !1, [X]), Q = W(() => _ ? _ > window.innerHeight / 2 : !1, [_]);
3067
3067
  M(() => {
3068
3068
  var $;
3069
3069
  e && (($ = j.current) == null || $.focus());
@@ -3120,61 +3120,61 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
3120
3120
  }), [xe]), M(() => (window.addEventListener("resize", xe), () => {
3121
3121
  window.removeEventListener("resize", xe);
3122
3122
  }), [xe]), Jr(K), Zr([b, N, L], t);
3123
- const Be = l ?? (c && c.length > 0 ? 250 : 0), De = (c == null ? void 0 : c.reduce(($, O) => $ + (O.width ?? 100), 0)) ?? 0, Ve = `calc(max(${V}px, ${Be}px + ${De}px))`, ae = W(() => (s && e && !v) ?? !1, [s, e, v]), we = W(() => (s && e) ?? !1, [s, e]), Le = W(() => e && (we || p !== void 0 || h !== void 0), [e, we, p, h]);
3123
+ const Ve = l ?? (c && c.length > 0 ? 250 : 0), Le = (c == null ? void 0 : c.reduce(($, O) => $ + (O.width ?? 100), 0)) ?? 0, Pe = `calc(max(${V}px, ${Ve}px + ${Le}px))`, ke = W(() => (s && e && !v) ?? !1, [s, e, v]), ae = W(() => (s && e) ?? !1, [s, e]), _e = W(() => e && (ae || p !== void 0 || h !== void 0), [e, ae, p, h]);
3124
3124
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3125
3125
  /* @__PURE__ */ n.jsx(Gs, { show: e, onClick: t }),
3126
- /* @__PURE__ */ n.jsxs("div", { className: w("luminus-dropdown-picker-actions", _e.actionButtonsContainer, {
3127
- [_e.reverse]: Y
3126
+ /* @__PURE__ */ n.jsxs("div", { className: w("luminus-dropdown-picker-actions", be.actionButtonsContainer, {
3127
+ [be.reverse]: Y
3128
3128
  }), style: {
3129
3129
  top: `calc(${_}px + ${U / 2}px - 12px)`,
3130
- left: Y ? ae && we ? `calc(${X}px - 24px - 8px - 24px - 4px)` : `calc(${X}px - 24px - 8px)` : `calc(${te}px + 8px)`
3130
+ left: Y ? ke && ae ? `calc(${X}px - 24px - 8px - 24px - 4px)` : `calc(${X}px - 24px - 8px)` : `calc(${te}px + 8px)`
3131
3131
  }, children: [
3132
- ae && /* @__PURE__ */ n.jsx("button", { ref: N, type: "button", className: w("luminus-dropdown-picker-clear-button", _e.actionButton), onClick: () => !v && a(null), children: /* @__PURE__ */ n.jsx(G, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ n.jsx(Gr, { size: 16 }) }) }),
3133
- Le ? /* @__PURE__ */ n.jsx("div", { ref: L, children: /* @__PURE__ */ n.jsxs(ht, { toggle: /* @__PURE__ */ n.jsx(pt, { as: Et, className: w("luminus-dropdown-picker-actions-dropdown", _e.actionsDropdown), icon: /* @__PURE__ */ n.jsx(G, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ n.jsx(Ra, { size: 16 }) }) }), children: [
3134
- we ? /* @__PURE__ */ n.jsx(Se, { icon: /* @__PURE__ */ n.jsx(Ma, {}), onClick: () => {
3132
+ ke && /* @__PURE__ */ n.jsx("button", { ref: N, type: "button", className: w("luminus-dropdown-picker-clear-button", be.actionButton), onClick: () => !v && a(null), children: /* @__PURE__ */ n.jsx(G, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ n.jsx(Gr, { size: 16 }) }) }),
3133
+ _e ? /* @__PURE__ */ n.jsx("div", { ref: L, children: /* @__PURE__ */ n.jsxs(ht, { toggle: /* @__PURE__ */ n.jsx(pt, { as: Et, className: w("luminus-dropdown-picker-actions-dropdown", be.actionsDropdown), icon: /* @__PURE__ */ n.jsx(G, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ n.jsx(Ra, { size: 16 }) }) }), children: [
3134
+ ae ? /* @__PURE__ */ n.jsx(Ce, { icon: /* @__PURE__ */ n.jsx(Ma, {}), onClick: () => {
3135
3135
  var $, O;
3136
3136
  z(d ? (($ = s == null ? void 0 : s.id) == null ? void 0 : $.toString()) ?? "" : ((O = s == null ? void 0 : s.name) == null ? void 0 : O.toString()) ?? "");
3137
3137
  }, children: y.copySelection }) : null,
3138
- we && (p || h) ? /* @__PURE__ */ n.jsx(Vs, {}) : null,
3139
- p ? /* @__PURE__ */ n.jsx(Se, { icon: /* @__PURE__ */ n.jsx(Aa, {}), onClick: () => {
3138
+ ae && (p || h) ? /* @__PURE__ */ n.jsx(Vs, {}) : null,
3139
+ p ? /* @__PURE__ */ n.jsx(Ce, { icon: /* @__PURE__ */ n.jsx(Aa, {}), onClick: () => {
3140
3140
  window.open(p, "_blank");
3141
3141
  }, children: y.addNewOption }) : null,
3142
- h ? /* @__PURE__ */ n.jsx(Se, { icon: /* @__PURE__ */ n.jsx(Ba, {}), onClick: () => {
3142
+ h ? /* @__PURE__ */ n.jsx(Ce, { icon: /* @__PURE__ */ n.jsx(Ba, {}), onClick: () => {
3143
3143
  h();
3144
3144
  }, children: y.refreshOptions }) : null
3145
3145
  ] }) }) : null
3146
3146
  ] }),
3147
- /* @__PURE__ */ n.jsx("div", { className: w("luminus-dropdown-picker", _e.wrapper, {
3148
- [_e.open]: e
3147
+ /* @__PURE__ */ n.jsx("div", { className: w("luminus-dropdown-picker", be.wrapper, {
3148
+ [be.open]: e
3149
3149
  }), style: {
3150
3150
  top: Q ? `calc(${_}px - 50vh - 8px)` : `calc(${S}px + 8px)`,
3151
- left: Y ? `calc(${te}px - ${Ve})` : X,
3152
- right: Y ? `${te}px` : `calc(${X}px + ${Ve})`,
3153
- width: Ve,
3151
+ left: Y ? `calc(${te}px - ${Pe})` : X,
3152
+ right: Y ? `${te}px` : `calc(${X}px + ${Pe})`,
3153
+ width: Pe,
3154
3154
  justifyContent: Q ? "flex-end" : "flex-start"
3155
- }, children: /* @__PURE__ */ n.jsx("div", { ref: b, className: w("shadow rounded", _e.dropdown), children: !v && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3156
- !o || u && (m ?? r.length) <= Z ? null : /* @__PURE__ */ n.jsx("div", { className: w("search-input-container border-bottom", _e.searchInputContainer), children: /* @__PURE__ */ n.jsx(ge.Control, { ref: j, type: "search", size: "sm", className: _e.searchInput, placeholder: i.searchPlaceholder, value: D, onChange: ($) => {
3155
+ }, children: /* @__PURE__ */ n.jsx("div", { ref: b, className: w("shadow rounded", be.dropdown), children: !v && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3156
+ !o || u && (m ?? r.length) <= Z ? null : /* @__PURE__ */ n.jsx("div", { className: w("search-input-container border-bottom", be.searchInputContainer), children: /* @__PURE__ */ n.jsx(ge.Control, { ref: j, type: "search", size: "sm", className: be.searchInput, placeholder: i.searchPlaceholder, value: D, onChange: ($) => {
3157
3157
  var O;
3158
3158
  return F(((O = $.target) == null ? void 0 : O.value) ?? "");
3159
3159
  } }) }),
3160
- f ? /* @__PURE__ */ n.jsx("div", { className: _e.loadingContainer, children: /* @__PURE__ */ n.jsx(On, { animation: "border", variant: "primary" }) }) : r.length > 0 && /* @__PURE__ */ n.jsxs("div", { ref: C, className: w("items", _e.itemsContainer), children: [
3161
- c && c.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: w("header-row border-bottom", _e.headerRow), children: [
3162
- /* @__PURE__ */ n.jsx("div", { className: _e.name }),
3163
- c == null ? void 0 : c.filter(($) => $.key !== x).map(($) => /* @__PURE__ */ n.jsx("div", { className: _e.columnItem, style: {
3160
+ f ? /* @__PURE__ */ n.jsx("div", { className: be.loadingContainer, children: /* @__PURE__ */ n.jsx(On, { animation: "border", variant: "primary" }) }) : r.length > 0 && /* @__PURE__ */ n.jsxs("div", { ref: C, className: w("items", be.itemsContainer), children: [
3161
+ c && c.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: w("header-row border-bottom", be.headerRow), children: [
3162
+ /* @__PURE__ */ n.jsx("div", { className: be.name }),
3163
+ c == null ? void 0 : c.filter(($) => $.key !== x).map(($) => /* @__PURE__ */ n.jsx("div", { className: be.columnItem, style: {
3164
3164
  width: `${$.width ?? 100}px`,
3165
3165
  minWidth: `${$.width ?? 100}px`,
3166
3166
  maxWidth: `${$.width ?? 100}px`
3167
3167
  }, children: /* @__PURE__ */ n.jsx(G, { variant: "caption", children: $.name }) }, $.key))
3168
3168
  ] }),
3169
- r == null ? void 0 : r.map(($, O) => /* @__PURE__ */ n.jsxs("button", { id: `item-${O}`, type: "button", className: w("item cursor-pointer", _e.item, {
3170
- [_e.focused]: se === O
3169
+ r == null ? void 0 : r.map(($, O) => /* @__PURE__ */ n.jsxs("button", { id: `item-${O}`, type: "button", className: w("item cursor-pointer", be.item, {
3170
+ [be.focused]: se === O
3171
3171
  }, {
3172
3172
  focused: se === O
3173
3173
  }, {
3174
3174
  archive: $.additionalColumns ? $.additionalColumns[x] : !1
3175
3175
  }), onClick: () => !v && a($), onMouseEnter: () => ne(O), children: [
3176
- /* @__PURE__ */ n.jsx("div", { className: _e.name, children: /* @__PURE__ */ n.jsx(G, { variant: "body2", children: d ? $.id : $.name }) }),
3177
- c == null ? void 0 : c.filter((P) => P.key !== x).map((P) => /* @__PURE__ */ n.jsx("div", { className: _e.columnItem, style: {
3176
+ /* @__PURE__ */ n.jsx("div", { className: be.name, children: /* @__PURE__ */ n.jsx(G, { variant: "body2", children: d ? $.id : $.name }) }),
3177
+ c == null ? void 0 : c.filter((P) => P.key !== x).map((P) => /* @__PURE__ */ n.jsx("div", { className: be.columnItem, style: {
3178
3178
  width: `${P.width ?? 100}px`,
3179
3179
  minWidth: `${P.width ?? 100}px`,
3180
3180
  maxWidth: `${P.width ?? 100}px`
@@ -3183,7 +3183,7 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
3183
3183
  ] })
3184
3184
  ] }) }) })
3185
3185
  ] });
3186
- }, Jl = "_input-group_1lkfy_1", Xl = "_input-group-text_1lkfy_5", ec = "_left_1lkfy_9", tc = "_right_1lkfy_13", nc = "_input_1lkfy_1", rc = "_submit-button_1lkfy_20", tt = {
3186
+ }, Jl = "_input-group_1lkfy_1", Xl = "_input-group-text_1lkfy_5", ec = "_left_1lkfy_9", tc = "_right_1lkfy_13", nc = "_input_1lkfy_1", rc = "_submit-button_1lkfy_20", nt = {
3187
3187
  "input-group": "_input-group_1lkfy_1",
3188
3188
  inputGroup: Jl,
3189
3189
  "input-group-text": "_input-group-text_1lkfy_5",
@@ -3193,7 +3193,7 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
3193
3193
  input: nc,
3194
3194
  "submit-button": "_submit-button_1lkfy_20",
3195
3195
  submitButton: rc
3196
- }, sc = ({ searchTypes: e, selectedType: t, setSelectedType: r }) => /* @__PURE__ */ n.jsx(ht, { toggle: /* @__PURE__ */ n.jsx(pt, { as: Et, icon: null, text: t == null ? void 0 : t.text }), children: e.map((s) => /* @__PURE__ */ n.jsx(Se, { icon: null, onClick: () => r(s.key), children: s.text }, s.key)) }), ac = "_dropdown_1ddrg_1", oc = "_open_1ddrg_12", ic = "_loading-container_1ddrg_15", lc = "_groups-container_1ddrg_22", cc = "_group_1ddrg_22", dc = "_header_1ddrg_26", uc = "_item_1ddrg_33", nt = {
3196
+ }, sc = ({ searchTypes: e, selectedType: t, setSelectedType: r }) => /* @__PURE__ */ n.jsx(ht, { toggle: /* @__PURE__ */ n.jsx(pt, { as: Et, icon: null, text: t == null ? void 0 : t.text }), children: e.map((s) => /* @__PURE__ */ n.jsx(Ce, { icon: null, onClick: () => r(s.key), children: s.text }, s.key)) }), ac = "_dropdown_1ddrg_1", oc = "_open_1ddrg_12", ic = "_loading-container_1ddrg_15", lc = "_groups-container_1ddrg_22", cc = "_group_1ddrg_22", dc = "_header_1ddrg_26", uc = "_item_1ddrg_33", rt = {
3197
3197
  dropdown: ac,
3198
3198
  open: oc,
3199
3199
  "loading-container": "_loading-container_1ddrg_15",
@@ -3209,12 +3209,12 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
3209
3209
  const u = (m = o.find((v) => v.key === d.type)) == null ? void 0 : m.toPath;
3210
3210
  return u ? `${u}/${d.searchKey}` : "/not-found";
3211
3211
  }, [o]);
3212
- return Zr([l], r), /* @__PURE__ */ n.jsx("div", { ref: l, className: w("luminus-app-search-dropdown shadow rounded", nt.dropdown, {
3213
- [nt.open]: e
3214
- }), children: a ? /* @__PURE__ */ n.jsx("div", { className: nt.loadingContainer, children: /* @__PURE__ */ n.jsx(On, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ n.jsx("div", { className: nt.groupsContainer, children: s == null ? void 0 : s.map((d) => {
3212
+ return Zr([l], r), /* @__PURE__ */ n.jsx("div", { ref: l, className: w("luminus-app-search-dropdown shadow rounded", rt.dropdown, {
3213
+ [rt.open]: e
3214
+ }), children: a ? /* @__PURE__ */ n.jsx("div", { className: rt.loadingContainer, children: /* @__PURE__ */ n.jsx(On, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ n.jsx("div", { className: rt.groupsContainer, children: s == null ? void 0 : s.map((d) => {
3215
3215
  var u;
3216
- return /* @__PURE__ */ n.jsxs("div", { className: w(nt.group), children: [
3217
- /* @__PURE__ */ n.jsxs(Oe, { to: `/search?query=${t}&type=${d.key.category}`, className: w("group-header", nt.header), onClick: r, children: [
3216
+ return /* @__PURE__ */ n.jsxs("div", { className: w(rt.group), children: [
3217
+ /* @__PURE__ */ n.jsxs(Oe, { to: `/search?query=${t}&type=${d.key.category}`, className: w("group-header", rt.header), onClick: r, children: [
3218
3218
  /* @__PURE__ */ n.jsx(G, { variant: "body", className: "text-primary", children: d.key.categoryName }),
3219
3219
  /* @__PURE__ */ n.jsxs(G, { variant: "caption", children: [
3220
3220
  d.items.length,
@@ -3228,7 +3228,7 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
3228
3228
  Oe,
3229
3229
  {
3230
3230
  to: c(m),
3231
- className: w("search-item d-flex gap-3 align-items-center justify-content-between", nt.item),
3231
+ className: w("search-item d-flex gap-3 align-items-center justify-content-between", rt.item),
3232
3232
  onClick: r,
3233
3233
  children: [
3234
3234
  /* @__PURE__ */ n.jsx(G, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
@@ -3240,7 +3240,7 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
3240
3240
  ] }, d.key.category);
3241
3241
  }) }) });
3242
3242
  }, mc = (e, t) => {
3243
- const r = Je(), [s, a] = T(!1), [o, i] = T([]), l = !e || !e.key, c = I(() => {
3243
+ const r = Xe(), [s, a] = T(!1), [o, i] = T([]), l = !e || !e.key, c = I(() => {
3244
3244
  if (t.length < 3) {
3245
3245
  i([]);
3246
3246
  return;
@@ -3266,16 +3266,16 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
3266
3266
  u(""), r === s && ((b = h.current) == null || b.focus());
3267
3267
  }, [r, s]), /* @__PURE__ */ n.jsx(ge, { onSubmit: (b) => {
3268
3268
  b.preventDefault(), b.stopPropagation(), v.flush(), p(!1), d.length > 2 && t(`/search?query=${d}${c && c.key && `&type=${c == null ? void 0 : c.key}`}`);
3269
- }, children: /* @__PURE__ */ n.jsxs(Vt, { className: w(tt.inputGroup, a), children: [
3270
- /* @__PURE__ */ n.jsx(Vt.Text, { className: w("p-1 rounded", tt.inputGroupText, tt.left), children: /* @__PURE__ */ n.jsx(sc, { searchTypes: e, selectedType: c, setSelectedType: l }) }),
3271
- /* @__PURE__ */ n.jsx(ge.Control, { ref: h, placeholder: o.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", tt.input), value: d, onChange: (b) => {
3269
+ }, children: /* @__PURE__ */ n.jsxs(Vt, { className: w(nt.inputGroup, a), children: [
3270
+ /* @__PURE__ */ n.jsx(Vt.Text, { className: w("p-1 rounded", nt.inputGroupText, nt.left), children: /* @__PURE__ */ n.jsx(sc, { searchTypes: e, selectedType: c, setSelectedType: l }) }),
3271
+ /* @__PURE__ */ n.jsx(ge.Control, { ref: h, placeholder: o.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", nt.input), value: d, onChange: (b) => {
3272
3272
  var N;
3273
3273
  return u(((N = b.target) == null ? void 0 : N.value) ?? "");
3274
3274
  }, onFocus: () => g.length > 0 && p(!0) }),
3275
- /* @__PURE__ */ n.jsx(Vt.Text, { className: w("p-0 rounded", tt.inputGroupText, tt.right), children: /* @__PURE__ */ n.jsx("button", { type: "submit", className: w("text-primary", tt.submitButton), children: /* @__PURE__ */ n.jsx(Pa, {}) }) }),
3275
+ /* @__PURE__ */ n.jsx(Vt.Text, { className: w("p-0 rounded", nt.inputGroupText, nt.right), children: /* @__PURE__ */ n.jsx("button", { type: "submit", className: w("text-primary", nt.submitButton), children: /* @__PURE__ */ n.jsx(Pa, {}) }) }),
3276
3276
  /* @__PURE__ */ n.jsx(fc, { query: m, searchTypes: e, show: x, onCancel: () => p(!1), groups: g, isLoading: f })
3277
3277
  ] }) });
3278
- }, hc = "_card_19733_1", pc = "_header_19733_6", gc = "_header-content_19733_13", xc = "_title_19733_19", vc = "_collapse-icon_19733_22", jc = "_collapsed_19733_27", yc = "_content_19733_30", rt = {
3278
+ }, hc = "_card_19733_1", pc = "_header_19733_6", gc = "_header-content_19733_13", xc = "_title_19733_19", vc = "_collapse-icon_19733_22", jc = "_collapsed_19733_27", yc = "_content_19733_30", st = {
3279
3279
  card: hc,
3280
3280
  header: pc,
3281
3281
  "header-content": "_header-content_19733_13",
@@ -3291,23 +3291,23 @@ const ol = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
3291
3291
  u(c);
3292
3292
  }, [c]);
3293
3293
  const v = W(() => !r || !r.toString() || r.toString().split(",").filter((f) => f && f !== "false").length === 0, [r]);
3294
- return i && v ? null : /* @__PURE__ */ n.jsxs("div", { className: w("luminus-card rounded shadow-sm", rt.card, {
3294
+ return i && v ? null : /* @__PURE__ */ n.jsxs("div", { className: w("luminus-card rounded shadow-sm", st.card, {
3295
3295
  [s ?? ""]: s
3296
3296
  }), children: [
3297
- /* @__PURE__ */ n.jsxs("div", { role: l.collapsible ? "button" : void 0, className: w("header", rt.header, {
3297
+ /* @__PURE__ */ n.jsxs("div", { role: l.collapsible ? "button" : void 0, className: w("header", st.header, {
3298
3298
  [a ?? ""]: a
3299
3299
  }), onClick: () => {
3300
3300
  l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) : u(!d));
3301
3301
  }, children: [
3302
- /* @__PURE__ */ n.jsxs("div", { className: w("header-content", rt.headerContent), children: [
3303
- /* @__PURE__ */ n.jsx(G, { variant: "h6", className: w("text-primary", rt.title), children: e }),
3302
+ /* @__PURE__ */ n.jsxs("div", { className: w("header-content", st.headerContent), children: [
3303
+ /* @__PURE__ */ n.jsx(G, { variant: "h6", className: w("text-primary", st.title), children: e }),
3304
3304
  t ?? null
3305
3305
  ] }),
3306
- l.collapsible && /* @__PURE__ */ n.jsx(Yr, { className: w(rt.collapseIcon, {
3307
- [rt.collapsed]: m
3306
+ l.collapsible && /* @__PURE__ */ n.jsx(Yr, { className: w(st.collapseIcon, {
3307
+ [st.collapsed]: m
3308
3308
  }) })
3309
3309
  ] }),
3310
- /* @__PURE__ */ n.jsx(ts, { in: m, children: /* @__PURE__ */ n.jsx("div", { className: w("card-content border-top border-primary", rt.content, {
3310
+ /* @__PURE__ */ n.jsx(ts, { in: m, children: /* @__PURE__ */ n.jsx("div", { className: w("card-content border-top border-primary", st.content, {
3311
3311
  [o ?? ""]: o
3312
3312
  }), children: r }) })
3313
3313
  ] });
@@ -3423,7 +3423,7 @@ Us.propTypes = {
3423
3423
  };
3424
3424
  var kn = void 0;
3425
3425
  Ut.createPortal ? kn = Hs : kn = Us;
3426
- const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20", Ec = "_photo-actions_18t5m_26", Fc = "_photo-container_18t5m_31", Oc = "_photo_18t5m_26", Rc = "_nav-button_18t5m_41", Mc = "_photos-preview_18t5m_49", Ac = "_selected_18t5m_62", Bc = "_default-indicator_18t5m_66", $e = {
3426
+ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20", Ec = "_photo-actions_18t5m_26", Fc = "_photo-container_18t5m_31", Oc = "_photo_18t5m_26", Rc = "_nav-button_18t5m_41", Mc = "_photos-preview_18t5m_49", Ac = "_selected_18t5m_62", Bc = "_default-indicator_18t5m_66", De = {
3427
3427
  lightbox: Dc,
3428
3428
  show: Lc,
3429
3429
  header: Tc,
@@ -3466,16 +3466,16 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
3466
3466
  }, [h, p, t]);
3467
3467
  return Jr(y), /* @__PURE__ */ n.jsxs(kn, { children: [
3468
3468
  /* @__PURE__ */ n.jsx(Gs, { show: e, onClick: t }),
3469
- /* @__PURE__ */ n.jsx("div", { ref: v, className: w("luminus-lightbox rounded shadow", $e.lightbox, {
3470
- [$e.show]: e
3469
+ /* @__PURE__ */ n.jsx("div", { ref: v, className: w("luminus-lightbox rounded shadow", De.lightbox, {
3470
+ [De.show]: e
3471
3471
  }), children: e && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3472
- /* @__PURE__ */ n.jsxs("div", { className: $e.header, children: [
3473
- /* @__PURE__ */ n.jsxs("div", { className: w("rounded", $e.photoActions), children: [
3472
+ /* @__PURE__ */ n.jsxs("div", { className: De.header, children: [
3473
+ /* @__PURE__ */ n.jsxs("div", { className: w("rounded", De.photoActions), children: [
3474
3474
  i && /* @__PURE__ */ n.jsx(Ls, { accept: ".jpg,.jpeg,.png", onUpload: (b) => {
3475
3475
  b.length > 0 && i(Array.from(b));
3476
3476
  }, icon: /* @__PURE__ */ n.jsx(Kr, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: a ?? null }),
3477
3477
  x && (l == null ? void 0 : l.map(({ label: b, onClick: N, ...j }, C) => /* @__PURE__ */ n.jsx(
3478
- We,
3478
+ He,
3479
3479
  {
3480
3480
  onClick: () => N(x.id),
3481
3481
  ...j,
@@ -3484,19 +3484,19 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
3484
3484
  `action-${C}`
3485
3485
  )))
3486
3486
  ] }),
3487
- /* @__PURE__ */ n.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ n.jsx(He, { style: { fontSize: "32px" } }) })
3487
+ /* @__PURE__ */ n.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ n.jsx(Ue, { style: { fontSize: "32px" } }) })
3488
3488
  ] }),
3489
3489
  r.length === 0 && /* @__PURE__ */ n.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ n.jsx(G, { variant: "body", children: o ?? "No photos available" }) }),
3490
- x && /* @__PURE__ */ n.jsxs("div", { className: $e.photoContainer, children: [
3491
- /* @__PURE__ */ n.jsx("div", { role: p ? "button" : void 0, className: w("align-items-start", $e.navButton), onClick: () => p && g((b) => b - 1), children: p && /* @__PURE__ */ n.jsx($n, { style: { fontSize: "40px" } }) }),
3492
- /* @__PURE__ */ n.jsx(m, { src: x.lgSrc, alt: x.alt, className: w("rounded", $e.photo), baseUrl: c, customToken: d, placeholder: u }),
3493
- /* @__PURE__ */ n.jsx("div", { role: h ? "button" : void 0, className: w("align-items-end", $e.navButton), onClick: () => h && g((b) => b + 1), children: h && /* @__PURE__ */ n.jsx(Dn, { style: { fontSize: "40px" } }) })
3490
+ x && /* @__PURE__ */ n.jsxs("div", { className: De.photoContainer, children: [
3491
+ /* @__PURE__ */ n.jsx("div", { role: p ? "button" : void 0, className: w("align-items-start", De.navButton), onClick: () => p && g((b) => b - 1), children: p && /* @__PURE__ */ n.jsx($n, { style: { fontSize: "40px" } }) }),
3492
+ /* @__PURE__ */ n.jsx(m, { src: x.lgSrc, alt: x.alt, className: w("rounded", De.photo), baseUrl: c, customToken: d, placeholder: u }),
3493
+ /* @__PURE__ */ n.jsx("div", { role: h ? "button" : void 0, className: w("align-items-end", De.navButton), onClick: () => h && g((b) => b + 1), children: h && /* @__PURE__ */ n.jsx(Dn, { style: { fontSize: "40px" } }) })
3494
3494
  ] }),
3495
- /* @__PURE__ */ n.jsx("div", { className: $e.photosPreview, children: r.map((b, N) => /* @__PURE__ */ n.jsxs("div", { role: "button", onClick: () => g(N), className: "position-relative", children: [
3496
- /* @__PURE__ */ n.jsx(m, { role: N !== f ? "button" : void 0, src: b.smSrc, alt: b.alt, className: w("rounded", $e.photo, {
3497
- [$e.selected]: N === f
3495
+ /* @__PURE__ */ n.jsx("div", { className: De.photosPreview, children: r.map((b, N) => /* @__PURE__ */ n.jsxs("div", { role: "button", onClick: () => g(N), className: "position-relative", children: [
3496
+ /* @__PURE__ */ n.jsx(m, { role: N !== f ? "button" : void 0, src: b.smSrc, alt: b.alt, className: w("rounded", De.photo, {
3497
+ [De.selected]: N === f
3498
3498
  }), baseUrl: c, customToken: d, placeholder: u }, b.id),
3499
- b.isDefault && /* @__PURE__ */ n.jsx("div", { className: w("text-primary", $e.defaultIndicator), children: /* @__PURE__ */ n.jsx(za, {}) })
3499
+ b.isDefault && /* @__PURE__ */ n.jsx("div", { className: w("text-primary", De.defaultIndicator), children: /* @__PURE__ */ n.jsx(za, {}) })
3500
3500
  ] })) })
3501
3501
  ] }) })
3502
3502
  ] });
@@ -3521,7 +3521,7 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
3521
3521
  textShadow: "-2px 2px 4px #696969",
3522
3522
  background: "rgba(105,105,105,0.5)"
3523
3523
  }, children: /* @__PURE__ */ n.jsx(Wa, { fontSize: 24 }) })
3524
- ] }) : /* @__PURE__ */ n.jsx(Xe, { text: r ?? "", placement: "left", children: /* @__PURE__ */ n.jsx("div", { role: "button", className: w("rounded p-3 d-flex justify-content-center"), onClick: () => x(!0), children: /* @__PURE__ */ n.jsx("img", { src: l, alt: "placeholder", className: "rounded w-25" }) }) }),
3524
+ ] }) : /* @__PURE__ */ n.jsx(et, { text: r ?? "", placement: "left", children: /* @__PURE__ */ n.jsx("div", { role: "button", className: w("rounded p-3 d-flex justify-content-center"), onClick: () => x(!0), children: /* @__PURE__ */ n.jsx("img", { src: l, alt: "placeholder", className: "rounded w-25" }) }) }),
3525
3525
  /* @__PURE__ */ n.jsx(zc, { show: g && !u, onClose: () => x(!1), photos: e, defaultIndex: m ?? 0, uploadPhotosText: r, noPhotosText: s, onUploadPhotos: t, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c })
3526
3526
  ] });
3527
3527
  }, Au = ({ children: e }) => {
@@ -3578,7 +3578,7 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
3578
3578
  }, Xc = ({ children: e, noSpacer: t = !1 }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3579
3579
  !t && /* @__PURE__ */ n.jsx("div", { className: yr.spacer }),
3580
3580
  /* @__PURE__ */ n.jsx("div", { className: w("luminus-floating-action-container shadow", yr.submitContainer), children: e })
3581
- ] }), ed = "_timeline_g1754_1", td = "_step-container_g1754_1", nd = "_step-date_g1754_1", rd = "_step-content_g1754_4", sd = "_content-header_g1754_8", ad = "_content-text_g1754_11", od = "_step-icon_g1754_14", st = {
3581
+ ] }), ed = "_timeline_g1754_1", td = "_step-container_g1754_1", nd = "_step-date_g1754_1", rd = "_step-content_g1754_4", sd = "_content-header_g1754_8", ad = "_content-text_g1754_11", od = "_step-icon_g1754_14", at = {
3582
3582
  timeline: ed,
3583
3583
  "step-container": "_step-container_g1754_1",
3584
3584
  stepContainer: td,
@@ -3592,21 +3592,21 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
3592
3592
  contentText: ad,
3593
3593
  "step-icon": "_step-icon_g1754_14",
3594
3594
  stepIcon: od
3595
- }, Vu = ({ steps: e }) => /* @__PURE__ */ n.jsx("div", { className: st.timeline, children: e.sort((t, r) => vo(t.date ?? /* @__PURE__ */ new Date(), r.date ?? /* @__PURE__ */ new Date())).map((t, r) => /* @__PURE__ */ n.jsxs("div", { className: w("row g-0 gx-3", st.stepContainer), children: [
3596
- /* @__PURE__ */ n.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ n.jsxs(G, { variant: "caption", className: w("h-100 d-flex flex-column align-items-end justify-content-center gap-0", st.stepDate), children: [
3595
+ }, Vu = ({ steps: e }) => /* @__PURE__ */ n.jsx("div", { className: at.timeline, children: e.sort((t, r) => vo(t.date ?? /* @__PURE__ */ new Date(), r.date ?? /* @__PURE__ */ new Date())).map((t, r) => /* @__PURE__ */ n.jsxs("div", { className: w("row g-0 gx-3", at.stepContainer), children: [
3596
+ /* @__PURE__ */ n.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ n.jsxs(G, { variant: "caption", className: w("h-100 d-flex flex-column align-items-end justify-content-center gap-0", at.stepDate), children: [
3597
3597
  /* @__PURE__ */ n.jsx("div", { children: St(t.date, "dd.MM.yyyy") }),
3598
3598
  /* @__PURE__ */ n.jsx("div", { children: St(t.date, "HH:mm") })
3599
3599
  ] }) }),
3600
- /* @__PURE__ */ n.jsx("div", { className: "col-9", children: /* @__PURE__ */ n.jsxs("div", { className: w("h-100 d-flex flex-column gap-1 border-start border-2 p-3", st.stepContent), children: [
3601
- /* @__PURE__ */ n.jsxs("div", { className: w("d-flex gap-2 align-items-center", st.contentHeader), children: [
3600
+ /* @__PURE__ */ n.jsx("div", { className: "col-9", children: /* @__PURE__ */ n.jsxs("div", { className: w("h-100 d-flex flex-column gap-1 border-start border-2 p-3", at.stepContent), children: [
3601
+ /* @__PURE__ */ n.jsxs("div", { className: w("d-flex gap-2 align-items-center", at.contentHeader), children: [
3602
3602
  t.person && /* @__PURE__ */ n.jsx(Hr, { name: t.person.name ?? "", size: 22, fontSize: 12 }),
3603
3603
  typeof t.title == "string" ? /* @__PURE__ */ n.jsx(G, { variant: "body", className: "fw-bold", children: t.title }) : t.title
3604
3604
  ] }),
3605
- t.text && /* @__PURE__ */ n.jsx(G, { variant: "body2", className: st.contentText, children: t.text }),
3606
- /* @__PURE__ */ n.jsx("div", { className: w("text-primary", st.stepIcon), children: t.icon ?? /* @__PURE__ */ n.jsx(Ya, {}) })
3605
+ t.text && /* @__PURE__ */ n.jsx(G, { variant: "body2", className: at.contentText, children: t.text }),
3606
+ /* @__PURE__ */ n.jsx("div", { className: w("text-primary", at.stepIcon), children: t.icon ?? /* @__PURE__ */ n.jsx(Ya, {}) })
3607
3607
  ] }) })
3608
3608
  ] }, r)) }), id = (e, t, r, s = !0) => {
3609
- const a = Je({ silent: s, differentBaseUrl: t, customToken: r }), [o, i] = T(!1), [l, c] = T(null), d = I(async (u) => {
3609
+ const a = Xe({ silent: s, differentBaseUrl: t, customToken: r }), [o, i] = T(!1), [l, c] = T(null), d = I(async (u) => {
3610
3610
  i(!0), c(null), a.get(e, {
3611
3611
  signal: u,
3612
3612
  responseType: "blob"
@@ -3642,14 +3642,14 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
3642
3642
  sm: dd,
3643
3643
  md: ud
3644
3644
  }, Pt = (e) => {
3645
- const t = new Date(e), r = qe(t.toISOString());
3645
+ const t = new Date(e), r = Qe(t.toISOString());
3646
3646
  t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1);
3647
- const s = qe(t.toISOString());
3647
+ const s = Qe(t.toISOString());
3648
3648
  return { from: r, to: s };
3649
3649
  }, Nt = (e) => {
3650
- const t = new Date(e), r = qe(t.toISOString());
3650
+ const t = new Date(e), r = Qe(t.toISOString());
3651
3651
  t.setFullYear(t.getFullYear() + 1), t.setDate(t.getDate() - 1);
3652
- const s = qe(t.toISOString());
3652
+ const s = Qe(t.toISOString());
3653
3653
  return { from: r, to: s };
3654
3654
  }, fd = (e, t) => {
3655
3655
  if (e === null || t === null)
@@ -3671,7 +3671,7 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
3671
3671
  return c;
3672
3672
  const d = new Date(l);
3673
3673
  if (e === "D") {
3674
- const u = qe(d.toISOString());
3674
+ const u = Qe(d.toISOString());
3675
3675
  return {
3676
3676
  from: u,
3677
3677
  to: u
@@ -3693,15 +3693,15 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
3693
3693
  const d = new Date(l.to);
3694
3694
  if (e === "D") {
3695
3695
  c.setDate(c.getDate() + i);
3696
- const u = qe(c.toISOString());
3696
+ const u = Qe(c.toISOString());
3697
3697
  return {
3698
3698
  from: u,
3699
3699
  to: u
3700
3700
  };
3701
3701
  }
3702
3702
  return e === "M" ? (c.setMonth(c.getMonth() + i), Pt(c)) : e === "Y" ? (c.setFullYear(c.getFullYear() + i), Nt(c)) : {
3703
- from: qe(c.toISOString()),
3704
- to: qe(d.toISOString())
3703
+ from: Qe(c.toISOString()),
3704
+ to: Qe(d.toISOString())
3705
3705
  };
3706
3706
  });
3707
3707
  }, [e, r]), o = I((i) => {
@@ -3730,9 +3730,9 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
3730
3730
  c(-1);
3731
3731
  }, children: /* @__PURE__ */ n.jsx(o, { icon: "chevron-left" }) }),
3732
3732
  /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
3733
- /* @__PURE__ */ n.jsx(Ze, { type: "date", value: e.from, onChange: (f) => u("from", f === null ? null : f.toString()), InputContainer: Fe, size: s }),
3734
- /* @__PURE__ */ n.jsx(ht, { toggle: /* @__PURE__ */ n.jsx(pt, { text: a[br.find((f) => f[0] === i)[1]].substring(0, 1), as: Qa }), children: br.map((f) => /* @__PURE__ */ n.jsx(Se, { disabled: f[0] === i, className: w(f[0] === i ? "text-black-50" : ""), onClick: () => d(f[0]), role: "button", children: a[f[1]] }, f[0])) }),
3735
- /* @__PURE__ */ n.jsx(Ze, { type: "date", value: e.to, onChange: (f) => u("to", f === null ? null : f.toString()), InputContainer: Fe, size: s })
3733
+ /* @__PURE__ */ n.jsx(Je, { type: "date", value: e.from, onChange: (f) => u("from", f === null ? null : f.toString()), InputContainer: Fe, size: s }),
3734
+ /* @__PURE__ */ n.jsx(ht, { toggle: /* @__PURE__ */ n.jsx(pt, { text: a[br.find((f) => f[0] === i)[1]].substring(0, 1), as: Qa }), children: br.map((f) => /* @__PURE__ */ n.jsx(Ce, { disabled: f[0] === i, className: w(f[0] === i ? "text-black-50" : ""), onClick: () => d(f[0]), role: "button", children: a[f[1]] }, f[0])) }),
3735
+ /* @__PURE__ */ n.jsx(Je, { type: "date", value: e.to, onChange: (f) => u("to", f === null ? null : f.toString()), InputContainer: Fe, size: s })
3736
3736
  ] }) }),
3737
3737
  /* @__PURE__ */ n.jsx(re, { disabled: m, onClick: () => {
3738
3738
  c(1);
@@ -3836,22 +3836,22 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
3836
3836
  stickyLast: kd,
3837
3837
  "sticky-bottom": "_sticky-bottom_1klfy_68",
3838
3838
  stickyBottom: Sd
3839
- }, Cd = "_input_pxkkh_1", ze = {
3839
+ }, Cd = "_input_pxkkh_1", We = {
3840
3840
  input: Cd
3841
3841
  }, qs = ({ type: e, value: t, field: r, isPrimary: s, isReadonly: a, primaryEditable: o = !1, valuesForSelect: i, addValueToValuesForSelect: l, onChangeHandler: c, hideClearIcon: d, clearValue: u, customPickers: m }) => {
3842
3842
  var v;
3843
3843
  switch (e) {
3844
3844
  case "NUM":
3845
- return i && i.length > 0 ? /* @__PURE__ */ n.jsx(Gt, { withoutLabel: !0, InputContainer: Fe, className: ze.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, f === null ? null : Number(f)), options: i, disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u, dropdownWidth: 200 }) : /* @__PURE__ */ n.jsx(Ze, { withoutLabel: !0, InputContainer: Fe, className: ze.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (f) => c(r, f === null ? null : Number(f)), disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u });
3845
+ return i && i.length > 0 ? /* @__PURE__ */ n.jsx(Gt, { withoutLabel: !0, InputContainer: Fe, className: We.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, f === null ? null : Number(f)), options: i, disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u, dropdownWidth: 200 }) : /* @__PURE__ */ n.jsx(Je, { withoutLabel: !0, InputContainer: Fe, className: We.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (f) => c(r, f === null ? null : Number(f)), disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u });
3846
3846
  case "STR":
3847
- return i && i.length > 0 ? /* @__PURE__ */ n.jsx(Gt, { withoutLabel: !0, InputContainer: Fe, className: ze.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), options: i, disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u, dropdownWidth: 200 }) : /* @__PURE__ */ n.jsx(Ze, { withoutLabel: !0, InputContainer: Fe, className: w(ze.input, ze.longer), size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u });
3847
+ return i && i.length > 0 ? /* @__PURE__ */ n.jsx(Gt, { withoutLabel: !0, InputContainer: Fe, className: We.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), options: i, disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u, dropdownWidth: 200 }) : /* @__PURE__ */ n.jsx(Je, { withoutLabel: !0, InputContainer: Fe, className: w(We.input, We.longer), size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u });
3848
3848
  case "BIT":
3849
- return /* @__PURE__ */ n.jsx(ni, { InputContainer: Fe, className: ze.input, value: t === !0, onChange: (f) => c(r, f), disabled: a ? !0 : s ? !o : !1 });
3849
+ return /* @__PURE__ */ n.jsx(ni, { InputContainer: Fe, className: We.input, value: t === !0, onChange: (f) => c(r, f), disabled: a ? !0 : s ? !o : !1 });
3850
3850
  case "DT":
3851
- return /* @__PURE__ */ n.jsx(Ze, { withoutLabel: !0, InputContainer: Fe, className: ze.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u });
3851
+ return /* @__PURE__ */ n.jsx(Je, { withoutLabel: !0, InputContainer: Fe, className: We.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), disabled: a ? !0 : s ? !o : !1, showClearIcon: !d, clearValue: u });
3852
3852
  default: {
3853
3853
  const f = m == null ? void 0 : m.find((g) => g.type === e);
3854
- return f ? /* @__PURE__ */ n.jsx(f.picker, { className: w(ze.input, ze.longer), value: t ? {
3854
+ return f ? /* @__PURE__ */ n.jsx(f.picker, { className: w(We.input, We.longer), value: t ? {
3855
3855
  id: (t == null ? void 0 : t.toString()) ?? null,
3856
3856
  name: ((v = i == null ? void 0 : i.find((g) => {
3857
3857
  var x;
@@ -3944,7 +3944,7 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
3944
3944
  }, onDragEnd: (o) => {
3945
3945
  a(null), o.currentTarget.classList.remove(At.dragging);
3946
3946
  }, children: /* @__PURE__ */ n.jsx("div", { className: w("content", At.content) }) });
3947
- }, Fd = ({ column: e, children: t }) => e.description ? /* @__PURE__ */ n.jsx(Xe, { placement: "bottom", text: e.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: t }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: t }), Od = ({ column: e, sortByField: t, sortByType: r, setSortBy: s }) => {
3947
+ }, Fd = ({ column: e, children: t }) => e.description ? /* @__PURE__ */ n.jsx(et, { placement: "bottom", text: e.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: t }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: t }), Od = ({ column: e, sortByField: t, sortByType: r, setSortBy: s }) => {
3948
3948
  const { ProjectIconComponent: a } = H(oe), o = ee(null), i = W(() => {
3949
3949
  if (e.valuesForSelect && e.valuesForSelect.length > 0)
3950
3950
  return 200;
@@ -4009,7 +4009,7 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
4009
4009
  f.map((x) => /* @__PURE__ */ n.jsx("th", { className: w("table-head", me.tableHead), children: x.valuesForSelect && x.valuesForSelect.length > 0 || x.type === "BIT" ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(Gt, { InputContainer: Fe, withoutLabel: !0, size: "sm", value: o[x.field] ?? "", onChange: (p) => i(x.field, (p == null ? void 0 : p.toString()) ?? null), options: x.type === "BIT" ? [
4010
4010
  { id: 1, name: v.yes },
4011
4011
  { id: 0, name: v.no }
4012
- ] : x.valuesForSelect ?? [], isNumber: x.type === "BIT", showClearIcon: !0, dropdownWidth: 200 }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(Ze, { InputContainer: Fe, withoutLabel: !0, size: "sm", type: x.type === "NUM" ? "number" : x.type === "DT" ? "date" : "text", value: o[x.field] ?? "", onChange: (p) => i(x.field, (p == null ? void 0 : p.toString()) ?? null) }) }) }, `${e.id}-${x.field}`)),
4012
+ ] : x.valuesForSelect ?? [], isNumber: x.type === "BIT", showClearIcon: !0, dropdownWidth: 200 }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(Je, { InputContainer: Fe, withoutLabel: !0, size: "sm", type: x.type === "NUM" ? "number" : x.type === "DT" ? "date" : "text", value: o[x.field] ?? "", onChange: (p) => i(x.field, (p == null ? void 0 : p.toString()) ?? null) }) }) }, `${e.id}-${x.field}`)),
4013
4013
  /* @__PURE__ */ n.jsx("th", { className: w("table-head", me.tableHead, me.actionColumn, me.stickyLast) })
4014
4014
  ] })
4015
4015
  ] }),
@@ -4022,24 +4022,24 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
4022
4022
  pagination: Ad
4023
4023
  }, Sr = {
4024
4024
  appDetail: "/settings/:id"
4025
- }, at = {
4025
+ }, ot = {
4026
4026
  apiSchemaGet: "/dynamicForms/schema",
4027
4027
  apiDataGet: "/dynamicForms/data",
4028
4028
  apiItemPost: "/dynamicForms/update",
4029
4029
  apiItemDelete: "/dynamicForms/delete",
4030
4030
  apiItemCreate: "/dynamicForms/insert",
4031
4031
  apiExportGet: "/dynamicForms/export"
4032
- }, Uu = ({ id: e, page: t, setPage: r, filters: s, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Sr.appDetail } = Sr, apiUrls: { apiSchemaGet: d = at.apiSchemaGet, apiDataGet: u = at.apiDataGet, apiItemPost: m = at.apiItemPost, apiItemDelete: v = at.apiItemDelete, apiItemCreate: f = at.apiItemCreate, apiExportGet: g = at.apiExportGet } = at, customPickers: x }) => {
4033
- var ce, de, Ce, Te, Ee, dt;
4034
- const { texts: { dynamicForms: p }, ProjectIconComponent: h } = H(oe), y = Je(), { startLoading: b, stopLoading: N } = H(Tt), [j, C] = T(null), [L, D] = T(null), [F, R] = T(null), [E, z] = T(null), [k, X] = T(!1), { addNotification: te } = zr(), [_, S] = T([]), { confirm: V } = Qt(), U = 20, Z = U + 1, Y = E ? Math.ceil(E.length / U) : 1, Q = t ? t > 1 : !1, se = t ? t < Y : !1, ne = t ? (t - 1) * U : 0, A = t ? t * U : U, J = W(() => E ? E.length > Z : !1, [E, Z]), B = W(() => J ? (E == null ? void 0 : E.slice(ne, A)) ?? null : E ?? null, [J, E, ne, A]), [K, xe] = T(null);
4032
+ }, Uu = ({ id: e, page: t, setPage: r, filters: s, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Sr.appDetail } = Sr, apiUrls: { apiSchemaGet: d = ot.apiSchemaGet, apiDataGet: u = ot.apiDataGet, apiItemPost: m = ot.apiItemPost, apiItemDelete: v = ot.apiItemDelete, apiItemCreate: f = ot.apiItemCreate, apiExportGet: g = ot.apiExportGet } = ot, customPickers: x }) => {
4033
+ var ce, de, Ie, Te, Ee, dt;
4034
+ const { texts: { dynamicForms: p }, ProjectIconComponent: h } = H(oe), y = Xe(), { startLoading: b, stopLoading: N } = H(Tt), [j, C] = T(null), [L, D] = T(null), [F, R] = T(null), [E, z] = T(null), [k, X] = T(!1), { addNotification: te } = zr(), [_, S] = T([]), { confirm: V } = Qt(), U = 20, Z = U + 1, Y = E ? Math.ceil(E.length / U) : 1, Q = t ? t > 1 : !1, se = t ? t < Y : !1, ne = t ? (t - 1) * U : 0, A = t ? t * U : U, J = W(() => E ? E.length > Z : !1, [E, Z]), B = W(() => J ? (E == null ? void 0 : E.slice(ne, A)) ?? null : E ?? null, [J, E, ne, A]), [K, xe] = T(null);
4035
4035
  M(() => {
4036
4036
  C(null), D(null), X(!1), S([]), xe(null);
4037
4037
  }, [e]);
4038
- const Be = I(async () => {
4038
+ const Ve = I(async () => {
4039
4039
  b("dynamicFormSchema"), await y.get(`${d}?id=${e}`).then(({ data: q }) => {
4040
4040
  C(q), N("dynamicFormSchema");
4041
4041
  }).catch(() => N("dynamicFormSchema"));
4042
- }, [y, e, b, N, d]), De = I(async () => {
4042
+ }, [y, e, b, N, d]), Le = I(async () => {
4043
4043
  var q;
4044
4044
  if (!(j === null || ((q = j.id) == null ? void 0 : q.toString()) !== e)) {
4045
4045
  if (j.masterReference && !K) {
@@ -4049,40 +4049,40 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
4049
4049
  b("dynamicFormData"), await y.get(`${u}?id=${e}&showArchive=${k}${j.masterReference ? `&master=${K}` : ""}`).then(({ data: ue }) => {
4050
4050
  const pe = ue.map((fe) => {
4051
4051
  var ve;
4052
- return Object.fromEntries(((ve = j.columns) == null ? void 0 : ve.filter((be) => be.field).map((be) => [
4053
- be.field,
4054
- { value: fe[be.field ?? ""], defaultValue: fe[be.field ?? ""] }
4052
+ return Object.fromEntries(((ve = j.columns) == null ? void 0 : ve.filter((we) => we.field).map((we) => [
4053
+ we.field,
4054
+ { value: fe[we.field ?? ""], defaultValue: fe[we.field ?? ""] }
4055
4055
  ])) ?? []);
4056
4056
  });
4057
4057
  D(pe), N("dynamicFormData");
4058
4058
  }).catch(() => N("dynamicFormData"));
4059
4059
  }
4060
- }, [y, e, j, b, N, k, K, u]), Ve = I(async () => {
4060
+ }, [y, e, j, b, N, k, K, u]), Pe = I(async () => {
4061
4061
  var q;
4062
4062
  j === null || ((q = j.id) == null ? void 0 : q.toString()) !== e || j.masterReference && !K || (b("dynamicFormExport"), await y.get(`${g}?id=${e}&showArchive=${k}${j.masterReference ? `&master=${K}` : ""}`, {
4063
4063
  responseType: "blob"
4064
4064
  }).then((ue) => Ja(ue, { fallbackName: `export-${e}` })).finally(() => N("dynamicFormExport")));
4065
- }, [y, e, j, b, N, k, K, g]), ae = I(async (q) => (b("dynamicFormEdit"), y.post(`${m}?id=${e}`, q).then(() => (N("dynamicFormEdit"), S([]), !0)).catch((ue) => (N("dynamicFormEdit"), S(an(ue)), !1))), [y, e, b, N, m]), we = I(async (q) => (b("dynamicFormDelete"), y.delete(`${v}?id=${e}&pk=${q}`).then(() => (N("dynamicFormDelete"), S([]), !0)).catch((ue) => (N("dynamicFormDelete"), S(an(ue)), !1))), [y, e, b, N, v]), Le = I(async (q) => (b("dynamicFormCreate"), y.post(`${f}?id=${e}`, q).then(({ data: ue }) => (N("dynamicFormCreate"), S([]), ue)).catch((ue) => (N("dynamicFormCreate"), S(an(ue)), null))), [y, e, b, N, f]), ct = I(async (q) => {
4066
- j && await ae(j.masterReference ? { ...q, [j.masterReferenceColumn ?? ""]: K } : q) && (te(p.editSuccess, "success"), D((ue) => ue && ue.map((pe) => {
4065
+ }, [y, e, j, b, N, k, K, g]), ke = I(async (q) => (b("dynamicFormEdit"), y.post(`${m}?id=${e}`, q).then(() => (N("dynamicFormEdit"), S([]), !0)).catch((ue) => (N("dynamicFormEdit"), S(an(ue)), !1))), [y, e, b, N, m]), ae = I(async (q) => (b("dynamicFormDelete"), y.delete(`${v}?id=${e}&pk=${q}`).then(() => (N("dynamicFormDelete"), S([]), !0)).catch((ue) => (N("dynamicFormDelete"), S(an(ue)), !1))), [y, e, b, N, v]), _e = I(async (q) => (b("dynamicFormCreate"), y.post(`${f}?id=${e}`, q).then(({ data: ue }) => (N("dynamicFormCreate"), S([]), ue)).catch((ue) => (N("dynamicFormCreate"), S(an(ue)), null))), [y, e, b, N, f]), Re = I(async (q) => {
4066
+ j && await ke(j.masterReference ? { ...q, [j.masterReferenceColumn ?? ""]: K } : q) && (te(p.editSuccess, "success"), D((ue) => ue && ue.map((pe) => {
4067
4067
  var fe;
4068
4068
  return ((fe = pe[(j == null ? void 0 : j.primaryKey) ?? ""]) == null ? void 0 : fe.value) === q[(j == null ? void 0 : j.primaryKey) ?? ""] ? Nr(q, j) : pe;
4069
4069
  })));
4070
- }, [te, ae, j, K, p]), $ = I(async (q) => {
4071
- await V(p.deleteConfirm) && await we(q) && (te(p.deleteSuccess, "success"), D((ue) => ue && ue.filter((pe) => {
4070
+ }, [te, ke, j, K, p]), $ = I(async (q) => {
4071
+ await V(p.deleteConfirm) && await ae(q) && (te(p.deleteSuccess, "success"), D((ue) => ue && ue.filter((pe) => {
4072
4072
  var fe;
4073
4073
  return ((fe = pe[(j == null ? void 0 : j.primaryKey) ?? ""]) == null ? void 0 : fe.value) !== q;
4074
4074
  })));
4075
- }, [te, we, p, V, j]), O = I(async (q) => {
4075
+ }, [te, ae, p, V, j]), O = I(async (q) => {
4076
4076
  if (!j)
4077
4077
  return !1;
4078
- const ue = await Le(j.masterReference ? { ...q, [j.masterReferenceColumn ?? ""]: K } : q);
4078
+ const ue = await _e(j.masterReference ? { ...q, [j.masterReferenceColumn ?? ""]: K } : q);
4079
4079
  if (ue !== null) {
4080
4080
  te(p.createSuccess, "success");
4081
4081
  const pe = Nr(q, j);
4082
4082
  return pe[(j == null ? void 0 : j.primaryKey) ?? ""] = { value: ue, defaultValue: ue }, D((fe) => [...fe ?? [], pe]), !0;
4083
4083
  }
4084
4084
  return !1;
4085
- }, [te, Le, p, j, K]), P = (q) => {
4085
+ }, [te, _e, p, j, K]), P = (q) => {
4086
4086
  q > Y ? r(Y) : q < 1 && r(1), r(q);
4087
4087
  }, le = I(() => {
4088
4088
  if (!L || !j) {
@@ -4096,7 +4096,7 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
4096
4096
  const ve = (vt = ue[pe]) == null ? void 0 : vt.value;
4097
4097
  if (ve == null)
4098
4098
  return !1;
4099
- const be = (jt = j.columns) == null ? void 0 : jt.find((Ot) => Ot.field === pe), gt = be == null ? void 0 : be.type, xt = (be == null ? void 0 : be.values) && ((yt = be == null ? void 0 : be.values) == null ? void 0 : yt.length) > 0;
4099
+ const we = (jt = j.columns) == null ? void 0 : jt.find((Ot) => Ot.field === pe), gt = we == null ? void 0 : we.type, xt = (we == null ? void 0 : we.values) && ((yt = we == null ? void 0 : we.values) == null ? void 0 : yt.length) > 0;
4100
4100
  if (!gt)
4101
4101
  return !1;
4102
4102
  switch (gt) {
@@ -4124,39 +4124,39 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
4124
4124
  }
4125
4125
  z([...F].sort((q, ue) => {
4126
4126
  var gt, xt, vt, jt, yt, Ot;
4127
- const pe = ((xt = (gt = q[o]) == null ? void 0 : gt.value) == null ? void 0 : xt.toString()) ?? "", fe = ((jt = (vt = ue[o]) == null ? void 0 : vt.value) == null ? void 0 : jt.toString()) ?? "", ve = j.columns.find((Re) => Re.field === o), be = ve == null ? void 0 : ve.type;
4128
- if (!ve || !be || !pe && !fe)
4127
+ const pe = ((xt = (gt = q[o]) == null ? void 0 : gt.value) == null ? void 0 : xt.toString()) ?? "", fe = ((jt = (vt = ue[o]) == null ? void 0 : vt.value) == null ? void 0 : jt.toString()) ?? "", ve = j.columns.find((Me) => Me.field === o), we = ve == null ? void 0 : ve.type;
4128
+ if (!ve || !we || !pe && !fe)
4129
4129
  return 0;
4130
4130
  if (!pe)
4131
4131
  return 1;
4132
4132
  if (!fe)
4133
4133
  return -1;
4134
4134
  if (ve.values && ve.values.length > 0) {
4135
- const Re = ((yt = ve.values.find((sn) => {
4135
+ const Me = ((yt = ve.values.find((sn) => {
4136
4136
  var wt;
4137
4137
  return ((wt = sn.id) == null ? void 0 : wt.toString()) === pe;
4138
- })) == null ? void 0 : yt.name) ?? "", Ue = ((Ot = ve.values.find((sn) => {
4138
+ })) == null ? void 0 : yt.name) ?? "", Ge = ((Ot = ve.values.find((sn) => {
4139
4139
  var wt;
4140
4140
  return ((wt = sn.id) == null ? void 0 : wt.toString()) === fe;
4141
4141
  })) == null ? void 0 : Ot.name) ?? "";
4142
- return i === "asc" ? Re.localeCompare(Ue) : Ue.localeCompare(Re);
4142
+ return i === "asc" ? Me.localeCompare(Ge) : Ge.localeCompare(Me);
4143
4143
  }
4144
- if (be === "NUM") {
4145
- const Re = Number(pe), Ue = Number(fe);
4146
- return i === "asc" ? Re - Ue : Ue - Re;
4144
+ if (we === "NUM") {
4145
+ const Me = Number(pe), Ge = Number(fe);
4146
+ return i === "asc" ? Me - Ge : Ge - Me;
4147
4147
  }
4148
- if (be === "DT") {
4149
- const Re = Ct(pe == null ? void 0 : pe.toString()).getTime(), Ue = Ct(fe == null ? void 0 : fe.toString()).getTime();
4150
- return i === "asc" ? Re - Ue : Ue - Re;
4148
+ if (we === "DT") {
4149
+ const Me = Ct(pe == null ? void 0 : pe.toString()).getTime(), Ge = Ct(fe == null ? void 0 : fe.toString()).getTime();
4150
+ return i === "asc" ? Me - Ge : Ge - Me;
4151
4151
  }
4152
4152
  return i === "asc" ? pe.toString().localeCompare(fe.toString()) : fe.toString().localeCompare(pe.toString());
4153
4153
  }));
4154
4154
  }, [F, j, o, i]);
4155
4155
  return M(() => {
4156
- Be();
4157
- }, [Be]), M(() => {
4158
- De();
4159
- }, [De]), M(() => {
4156
+ Ve();
4157
+ }, [Ve]), M(() => {
4158
+ Le();
4159
+ }, [Le]), M(() => {
4160
4160
  le();
4161
4161
  }, [le]), M(() => {
4162
4162
  je();
@@ -4168,21 +4168,21 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
4168
4168
  /* @__PURE__ */ n.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-center", children: [
4169
4169
  /* @__PURE__ */ n.jsx(G, { variant: "h3", children: (j == null ? void 0 : j.name) ?? "" }),
4170
4170
  /* @__PURE__ */ n.jsxs(ht, { toggle: /* @__PURE__ */ n.jsx(pt, { as: Et }), children: [
4171
- /* @__PURE__ */ n.jsx(Se, { onClick: () => X(!k), children: k ? p.hideArchived : p.showArchived }),
4171
+ /* @__PURE__ */ n.jsx(Ce, { onClick: () => X(!k), children: k ? p.hideArchived : p.showArchived }),
4172
4172
  /* @__PURE__ */ n.jsx(Vs, {}),
4173
- /* @__PURE__ */ n.jsx(Se, { onClick: Ve, icon: /* @__PURE__ */ n.jsx(h, { icon: "file-download" }), children: p.downloadExport })
4173
+ /* @__PURE__ */ n.jsx(Ce, { onClick: Pe, icon: /* @__PURE__ */ n.jsx(h, { icon: "file-download" }), children: p.downloadExport })
4174
4174
  ] })
4175
4175
  ] }),
4176
4176
  (j == null ? void 0 : j.description) && /* @__PURE__ */ n.jsx(G, { variant: "body2", className: "mb-3", children: j == null ? void 0 : j.description }),
4177
- (j == null ? void 0 : j.masterReference) && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ n.jsx(Md, { label: ((de = (ce = j.columns) == null ? void 0 : ce.find((q) => q.field === j.masterReferenceColumn)) == null ? void 0 : de.caption) ?? "", options: ((Te = (Ce = j.columns) == null ? void 0 : Ce.find((q) => q.field === j.masterReferenceColumn)) == null ? void 0 : Te.values) ?? [], master: K, onChange: (q) => xe(q) }) }),
4177
+ (j == null ? void 0 : j.masterReference) && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ n.jsx(Md, { label: ((de = (ce = j.columns) == null ? void 0 : ce.find((q) => q.field === j.masterReferenceColumn)) == null ? void 0 : de.caption) ?? "", options: ((Te = (Ie = j.columns) == null ? void 0 : Ie.find((q) => q.field === j.masterReferenceColumn)) == null ? void 0 : Te.values) ?? [], master: K, onChange: (q) => xe(q) }) }),
4178
4178
  (j == null ? void 0 : j.slaves) && j.slaves.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex align-items-center flex-start gap-1", children: j.slaves.map((q) => {
4179
4179
  var ue;
4180
- return /* @__PURE__ */ n.jsx(We, { as: "link", href: `${Ht(c, { id: (ue = q.id) == null ? void 0 : ue.toString() })}?type=dynamic-form`, children: q.name }, q.id);
4180
+ return /* @__PURE__ */ n.jsx(He, { as: "link", href: `${Ht(c, { id: (ue = q.id) == null ? void 0 : ue.toString() })}?type=dynamic-form`, children: q.name }, q.id);
4181
4181
  }) }),
4182
4182
  j != null && j.masterReference && !K ? /* @__PURE__ */ n.jsx(rn, { variant: "warning", children: p.selectMaster(((dt = (Ee = j.columns) == null ? void 0 : Ee.find((q) => q.field === j.masterReferenceColumn)) == null ? void 0 : dt.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4183
4183
  j && _.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-2", children: /* @__PURE__ */ n.jsx(hd, { errors: _, schema: j }) }),
4184
4184
  j && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4185
- /* @__PURE__ */ n.jsx("div", { className: w("rounded border overflow-auto", kr.tableContainer), children: /* @__PURE__ */ n.jsx(Rd, { schema: j, items: !J && E && (E == null ? void 0 : E.length) > Z ? [] : (J ? B : E) ?? [], onEditItem: ct, onDeleteItem: $, onCreateItem: O, filters: s, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, selectedMaster: (K == null ? void 0 : K.toString()) ?? null, customPickers: x }) }),
4185
+ /* @__PURE__ */ n.jsx("div", { className: w("rounded border overflow-auto", kr.tableContainer), children: /* @__PURE__ */ n.jsx(Rd, { schema: j, items: !J && E && (E == null ? void 0 : E.length) > Z ? [] : (J ? B : E) ?? [], onEditItem: Re, onDeleteItem: $, onCreateItem: O, filters: s, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, selectedMaster: (K == null ? void 0 : K.toString()) ?? null, customPickers: x }) }),
4186
4186
  J && t && /* @__PURE__ */ n.jsxs("div", { className: w(kr.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
4187
4187
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
4188
4188
  /* @__PURE__ */ n.jsx(re, { color: "primary", onClick: () => P(1), disabled: !Q, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-double-left" }) }),
@@ -4207,14 +4207,14 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
4207
4207
  appDetail: "/settings/:id"
4208
4208
  }, Ir = {
4209
4209
  apiDynamicFormsGet: "/dynamicForms"
4210
- }, Bd = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ n.jsx(Xe, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: t }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: t }), Gu = ({ activeId: e, otherForms: t = [], groupsDefs: r = [], searchQuery: s, fullSize: a, appUrls: { appDetail: o = Cr.appDetail } = Cr, apiUrls: { apiDynamicFormsGet: i = Ir.apiDynamicFormsGet } = Ir }) => {
4211
- const l = Je(), { startLoading: c, stopLoading: d } = H(Tt), [u, m] = T(null), [v] = Xr("search", ""), f = W(() => [
4210
+ }, Bd = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ n.jsx(et, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: t }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: t }), Gu = ({ activeId: e, otherForms: t = [], groupsDefs: r = [], searchQuery: s, fullSize: a, appUrls: { appDetail: o = Cr.appDetail } = Cr, apiUrls: { apiDynamicFormsGet: i = Ir.apiDynamicFormsGet } = Ir }) => {
4211
+ const l = Xe(), { startLoading: c, stopLoading: d } = H(Tt), [u, m] = T(null), [v] = Xr("search", ""), f = W(() => [
4212
4212
  ...(u == null ? void 0 : u.map((p) => ({
4213
4213
  ...p,
4214
4214
  type: "dynamic-form"
4215
4215
  }))) ?? [],
4216
4216
  ...t
4217
- ].filter((p) => Qe(p.name, s) || Qe(p.description, s)).sort((p, h) => (p.name ?? "").localeCompare(h.name ?? "")) ?? [], [u, t, s]), g = W(() => r.map((p) => ({
4217
+ ].filter((p) => Ze(p.name, s) || Ze(p.description, s)).sort((p, h) => (p.name ?? "").localeCompare(h.name ?? "")) ?? [], [u, t, s]), g = W(() => r.map((p) => ({
4218
4218
  id: p.id,
4219
4219
  name: p.name ?? "",
4220
4220
  items: f.filter((h) => h.group === p.id)
@@ -4232,14 +4232,14 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
4232
4232
  h.description && /* @__PURE__ */ n.jsx(G, { variant: "body2", className: "text-muted mt-2", children: h.description })
4233
4233
  ] }, h.id) : /* @__PURE__ */ n.jsx(Bd, { item: h, children: /* @__PURE__ */ n.jsx(Oe, { to: `${Ht(o, { id: (N = h.id) == null ? void 0 : N.toString() })}?type=${h.type}&search=${v ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((j = h.id) == null ? void 0 : j.toString()) ? "active" : ""}`, children: /* @__PURE__ */ n.jsx(G, { variant: "body2", children: h.name }) }) }, h.id);
4234
4234
  }) }, p.id)) }) }) : null;
4235
- }, Yu = ({ label: e, to: t, value: r }) => /* @__PURE__ */ n.jsxs(Ae, { label: e, children: [
4235
+ }, Yu = ({ label: e, to: t, value: r }) => /* @__PURE__ */ n.jsxs(Be, { label: e, children: [
4236
4236
  /* @__PURE__ */ n.jsx("input", { disabled: !0, className: "form-control d-none" }),
4237
4237
  t ? /* @__PURE__ */ n.jsx(Oe, { to: t, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: r }) : /* @__PURE__ */ n.jsx("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: r })
4238
4238
  ] }), Ku = () => {
4239
4239
  const { localizationContext: e } = H(oe), { language: t, setLanguage: r } = H(e), s = (a) => {
4240
4240
  r(a);
4241
4241
  };
4242
- return /* @__PURE__ */ n.jsx(Se, { onClick: (a) => {
4242
+ return /* @__PURE__ */ n.jsx(Ce, { onClick: (a) => {
4243
4243
  s(t === "cz" ? "en" : "cz"), a.stopPropagation();
4244
4244
  }, children: t === "cz" ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4245
4245
  /* @__PURE__ */ n.jsx("strong", { children: "CZ" }),
@@ -4267,7 +4267,7 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
4267
4267
  };
4268
4268
  return /* @__PURE__ */ n.jsxs(Vt, { className: `${s}`, children: [
4269
4269
  /* @__PURE__ */ n.jsx(ge.Control, { value: e, onChange: (o) => t(o.target.value) }),
4270
- e && /* @__PURE__ */ n.jsx(yn, { onClick: () => a(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ n.jsx(He, {}) }),
4270
+ e && /* @__PURE__ */ n.jsx(yn, { onClick: () => a(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ n.jsx(Ue, {}) }),
4271
4271
  /* @__PURE__ */ n.jsx(yn, { onClick: () => r && r(e), variant: "link", className: "border", children: /* @__PURE__ */ n.jsx(Xa, {}) })
4272
4272
  ] });
4273
4273
  }, Ju = ({ value: e, numberPrefix: t, numberSuffix: r, decimalScale: s = 2, fixedDecimalScale: a = !1, className: o }) => /* @__PURE__ */ n.jsx(Mn, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: s, fixedDecimalScale: a, defaultValue: "", prefix: t, suffix: r, className: o, decimalSeparator: "," }), Xu = ({ data: e, keys: t, colors: r, tooltipLabel: s }) => /* @__PURE__ */ n.jsx(eo, { data: e.map((a) => ({ name: a.name, ...a.values })), indexBy: "name", keys: t, margin: {
@@ -4323,7 +4323,7 @@ const Dc = "_lightbox_18t5m_1", Lc = "_show_18t5m_16", Tc = "_header_18t5m_20",
4323
4323
  return {};
4324
4324
  const p = {};
4325
4325
  return e.forEach((h) => {
4326
- p[h] = v.filter((y) => y.groupId === h && (Qe(s(y), u) || Qe(a(y), u) || y.versions.some((b) => Qe(b.name, u))));
4326
+ p[h] = v.filter((y) => y.groupId === h && (Ze(s(y), u) || Ze(a(y), u) || y.versions.some((b) => Ze(b.name, u))));
4327
4327
  }), p;
4328
4328
  }, [u, e, v, a, s]), g = W(() => e.filter((p) => {
4329
4329
  var h;
@@ -4408,12 +4408,12 @@ export {
4408
4408
  ni as CheckInput,
4409
4409
  Yt as Collapse,
4410
4410
  Ed as ColumnResizer,
4411
- We as ContextButton,
4411
+ He as ContextButton,
4412
4412
  Yu as DisabledRowLabelLink,
4413
4413
  af as Documents,
4414
4414
  ht as Dropdown,
4415
4415
  Vs as DropdownDivider,
4416
- Se as DropdownItem,
4416
+ Ce as DropdownItem,
4417
4417
  mu as DropdownPicker,
4418
4418
  pt as DropdownToggle,
4419
4419
  Uu as DynamicForm,
@@ -4426,7 +4426,7 @@ export {
4426
4426
  Di as Flexmonster,
4427
4427
  Xc as FloatingActionContainer,
4428
4428
  Ho as FloatingFormSubmit,
4429
- it as FloatingLabelInput,
4429
+ lt as FloatingLabelInput,
4430
4430
  Pu as FromToDatePicker,
4431
4431
  Ou as HomeDashboard,
4432
4432
  vu as HookFormCheckInput,
@@ -4445,7 +4445,7 @@ export {
4445
4445
  Ps as IconPicker,
4446
4446
  wr as ImgApi,
4447
4447
  Ys as ImgDirect,
4448
- lt as InvalidFeedback,
4448
+ ct as InvalidFeedback,
4449
4449
  Ku as LanguageSwitch,
4450
4450
  Hn as Loading,
4451
4451
  go as LoadingBlock,
@@ -4468,7 +4468,7 @@ export {
4468
4468
  df as ResponsiveContextDropdown,
4469
4469
  uf as ResponsiveContextDropdownItem,
4470
4470
  Lu as ResponsiveTabs,
4471
- Ae as RowLabelInput,
4471
+ Be as RowLabelInput,
4472
4472
  Zu as SearchBox,
4473
4473
  Gt as SelectInput,
4474
4474
  Gu as SettingsFormPicker,
@@ -4477,12 +4477,12 @@ export {
4477
4477
  Tu as ShortcutLinksSetup,
4478
4478
  nn as SimplePicker,
4479
4479
  Et as SimpleToggle,
4480
- Xe as SimpleTooltip,
4480
+ et as SimpleTooltip,
4481
4481
  Yi as Tab,
4482
4482
  Du as TabPanel,
4483
4483
  Wi as Tabs,
4484
4484
  hu as TextAreaInput,
4485
- Ze as TextInput,
4485
+ Je as TextInput,
4486
4486
  Vu as Timeline,
4487
4487
  qu as TypedFormGroup,
4488
4488
  G as Typography,