react-luminus-components 1.5.32 → 1.5.33

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
@@ -179,17 +179,17 @@ const Au = {
179
179
  getDimensionValue: m = Tu,
180
180
  ...g
181
181
  }, h) => {
182
- const b = typeof l == "function" ? l() : l, v = k(() => _n((N) => {
183
- N.style[b] = "0";
184
- }, e), [b, e]), y = k(() => _n((N) => {
185
- const C = `scroll${b[0].toUpperCase()}${b.slice(1)}`;
186
- N.style[b] = `${N[C]}px`;
187
- }, t), [b, t]), j = k(() => _n((N) => {
188
- N.style[b] = null;
189
- }, n), [b, n]), w = k(() => _n((N) => {
190
- N.style[b] = `${m(b, N)}px`, ad(N);
191
- }, r), [r, m, b]), x = k(() => _n((N) => {
192
- N.style[b] = null;
182
+ const b = typeof l == "function" ? l() : l, v = k(() => _n((j) => {
183
+ j.style[b] = "0";
184
+ }, e), [b, e]), x = k(() => _n((j) => {
185
+ const S = `scroll${b[0].toUpperCase()}${b.slice(1)}`;
186
+ j.style[b] = `${j[S]}px`;
187
+ }, t), [b, t]), N = k(() => _n((j) => {
188
+ j.style[b] = null;
189
+ }, n), [b, n]), w = k(() => _n((j) => {
190
+ j.style[b] = `${m(b, j)}px`, ad(j);
191
+ }, r), [r, m, b]), y = k(() => _n((j) => {
192
+ j.style[b] = null;
193
193
  }, i), [b, i]);
194
194
  return /* @__PURE__ */ a.jsx(_s, {
195
195
  ref: h,
@@ -197,19 +197,19 @@ const Au = {
197
197
  ...g,
198
198
  "aria-expanded": g.role ? c : null,
199
199
  onEnter: v,
200
- onEntering: y,
201
- onEntered: j,
200
+ onEntering: x,
201
+ onEntered: N,
202
202
  onExit: w,
203
- onExiting: x,
203
+ onExiting: y,
204
204
  childRef: s.ref,
205
205
  in: c,
206
206
  timeout: u,
207
207
  mountOnEnter: d,
208
208
  unmountOnExit: p,
209
209
  appear: f,
210
- children: (N, C) => /* @__PURE__ */ de.cloneElement(s, {
211
- ...C,
212
- className: _(o, s.props.className, Au[N], b === "width" && "collapse-horizontal")
210
+ children: (j, S) => /* @__PURE__ */ de.cloneElement(s, {
211
+ ...S,
212
+ className: _(o, s.props.className, Au[j], b === "width" && "collapse-horizontal")
213
213
  })
214
214
  });
215
215
  }), ni = /* @__PURE__ */ _e.forwardRef(({
@@ -557,18 +557,18 @@ const dl = /* @__PURE__ */ _e.forwardRef(({
557
557
  enforceFocus: h = !0,
558
558
  restoreFocus: b = !0,
559
559
  restoreFocusOptions: v,
560
- onEntered: y,
561
- onExit: j,
560
+ onEntered: x,
561
+ onExit: N,
562
562
  onExiting: w,
563
- onEnter: x,
564
- onEntering: N,
565
- onExited: C,
563
+ onEnter: y,
564
+ onEntering: j,
565
+ onExited: S,
566
566
  backdropClassName: E,
567
567
  manager: I,
568
568
  renderStaticNode: O = !1,
569
569
  ...T
570
570
  }, M) => {
571
- const S = ae();
571
+ const C = ae();
572
572
  e = Re(e, "offcanvas");
573
573
  const [P, z] = B(!1), F = ld(f), V = Vu(o || "xs", "up");
574
574
  U(() => {
@@ -578,14 +578,14 @@ const dl = /* @__PURE__ */ _e.forwardRef(({
578
578
  onHide: F
579
579
  }), [F]);
580
580
  function H() {
581
- return I || (u ? (S.current || (S.current = new pd({
581
+ return I || (u ? (C.current || (C.current = new pd({
582
582
  handleContainerOverflow: !1
583
- })), S.current) : fd());
583
+ })), C.current) : fd());
584
584
  }
585
585
  const W = (ne, ...ve) => {
586
- ne && (ne.style.visibility = "visible"), x == null || x(ne, ...ve);
586
+ ne && (ne.style.visibility = "visible"), y == null || y(ne, ...ve);
587
587
  }, A = (ne, ...ve) => {
588
- ne && (ne.style.visibility = ""), C == null || C(...ve);
588
+ ne && (ne.style.visibility = ""), S == null || S(...ve);
589
589
  }, K = R((ne) => /* @__PURE__ */ a.jsx("div", {
590
590
  ...ne,
591
591
  className: _(`${e}-backdrop`, E)
@@ -613,9 +613,9 @@ const dl = /* @__PURE__ */ _e.forwardRef(({
613
613
  onShow: p,
614
614
  onHide: F,
615
615
  onEnter: W,
616
- onEntering: N,
617
- onEntered: y,
618
- onExit: j,
616
+ onEntering: j,
617
+ onEntered: x,
618
+ onExit: N,
619
619
  onExiting: w,
620
620
  onExited: A,
621
621
  manager: H(),
@@ -1031,11 +1031,11 @@ const tp = (e) => (n) => {
1031
1031
  ] })
1032
1032
  ] })
1033
1033
  ] });
1034
- }, Zj = ({ value: e, label: t, InputContainer: n = en, className: r, withoutLabel: i, hidden: o, disabled: s, contactType: l, ...c }) => o ? null : /* @__PURE__ */ a.jsx(ml, { contactType: l, value: e, withoutLabel: i, label: t, className: r, children: /* @__PURE__ */ a.jsx(Je, { type: "text", value: e, disabled: s, InputContainer: n, size: "sm", withoutLabel: !0, ...c }) }), eN = ({ InputContainer: e = en, items: t, selectedItemNavigateTo: n, onSearchQueryChange: r, texts: i, isLoading: o, value: s, onSelect: l, label: c, withoutLabel: u, size: d, dropdownItemsNameWidth: p, additionalColumns: f, hidden: m, disabled: g, displayIdAsName: h, CustomOnChangeComponent: b, className: v, archiveColumn: y, icon: j, hint: w, addNewOptionPath: x, refreshOptions: N, MiniDetailComponent: C, miniDetailPlacement: E, suggestedItems: I, suggestedItemsTitle: O, customEllipsisOptions: T }) => {
1035
- const [M, S] = B(!1), P = R((W) => {
1034
+ }, Zj = ({ value: e, label: t, InputContainer: n = en, className: r, withoutLabel: i, hidden: o, disabled: s, contactType: l, ...c }) => o ? null : /* @__PURE__ */ a.jsx(ml, { contactType: l, value: e, withoutLabel: i, label: t, className: r, children: /* @__PURE__ */ a.jsx(Je, { type: "text", value: e, disabled: s, InputContainer: n, size: "sm", withoutLabel: !0, ...c }) }), eN = ({ InputContainer: e = en, items: t, selectedItemNavigateTo: n, onSearchQueryChange: r, texts: i, isLoading: o, value: s, onSelect: l, label: c, withoutLabel: u, size: d, dropdownItemsNameWidth: p, additionalColumns: f, hidden: m, disabled: g, displayIdAsName: h, CustomOnChangeComponent: b, className: v, archiveColumn: x, icon: N, hint: w, addNewOptionPath: y, refreshOptions: j, MiniDetailComponent: S, miniDetailPlacement: E, suggestedItems: I, suggestedItemsTitle: O, customEllipsisOptions: T }) => {
1035
+ const [M, C] = B(!1), P = R((W) => {
1036
1036
  l && l(W);
1037
1037
  }, [l]), z = R((W) => {
1038
- S(!1), P(W);
1038
+ C(!1), P(W);
1039
1039
  }, [P]), F = ae(null), V = n !== void 0, q = V && s !== null, H = k(() => {
1040
1040
  var W, A;
1041
1041
  return h ? ((W = s == null ? void 0 : s.id) == null ? void 0 : W.toString()) ?? "" : s != null && s.name && s.name.length > 0 ? s.name : ((A = s == null ? void 0 : s.id) == null ? void 0 : A.toString()) ?? "";
@@ -1043,7 +1043,7 @@ const tp = (e) => (n) => {
1043
1043
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { withoutLabel: u, label: c ?? "", hidden: m, inputContainerClassName: _({ "luminus-dropdown-select-open": M }), className: v, hint: w, disabled: g, children: [
1044
1044
  /* @__PURE__ */ a.jsxs(za, { currentSelection: s, selectedItemNavigateTo: n, children: [
1045
1045
  h && (s == null ? void 0 : s.name) && /* @__PURE__ */ a.jsx(L, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: s.name }),
1046
- /* @__PURE__ */ a.jsx(qa, { value: (s == null ? void 0 : s.id) ?? null, MiniDetailComponent: C, miniDetailPlacement: E, children: /* @__PURE__ */ a.jsxs(
1046
+ /* @__PURE__ */ a.jsx(qa, { value: (s == null ? void 0 : s.id) ?? null, MiniDetailComponent: S, miniDetailPlacement: E, children: /* @__PURE__ */ a.jsxs(
1047
1047
  be.Select,
1048
1048
  {
1049
1049
  ref: F,
@@ -1053,7 +1053,7 @@ const tp = (e) => (n) => {
1053
1053
  W.currentTarget.focus(), W.preventDefault();
1054
1054
  },
1055
1055
  onClick: () => {
1056
- !V && !g && S(!0);
1056
+ !V && !g && C(!0);
1057
1057
  },
1058
1058
  onChange: () => {
1059
1059
  },
@@ -1070,70 +1070,70 @@ const tp = (e) => (n) => {
1070
1070
  ) }),
1071
1071
  b || !g && V ? /* @__PURE__ */ a.jsxs("div", { className: "custom-picker-button", children: [
1072
1072
  !b && !g && V && /* @__PURE__ */ a.jsx(te, { size: "sm", color: "secondary", onClick: (W) => {
1073
- W.preventDefault(), W.stopPropagation(), S(!0);
1074
- }, children: j ?? /* @__PURE__ */ a.jsx(Rs, {}) }),
1073
+ W.preventDefault(), W.stopPropagation(), C(!0);
1074
+ }, children: N ?? /* @__PURE__ */ a.jsx(Rs, {}) }),
1075
1075
  b ?? null
1076
1076
  ] }) : null
1077
1077
  ] }),
1078
- F.current && /* @__PURE__ */ a.jsx(Ya, { show: M, onCancel: () => S(!1), items: t, currentSelection: s, onSelectionChange: z, onSearchQueryChange: r, texts: i, itemsNameWidth: p, additionalColumns: f, isLoading: o, disabled: g, inputRef: F, archiveColumn: y, displayIdAsName: h, addNewOptionPath: x, refreshOptions: N, suggestedItems: I, suggestedItemsTitle: O, customEllipsisOptions: T })
1078
+ F.current && /* @__PURE__ */ a.jsx(Ya, { show: M, onCancel: () => C(!1), items: t, currentSelection: s, onSelectionChange: z, onSearchQueryChange: r, texts: i, itemsNameWidth: p, additionalColumns: f, isLoading: o, disabled: g, inputRef: F, archiveColumn: x, displayIdAsName: h, addNewOptionPath: y, refreshOptions: j, suggestedItems: I, suggestedItemsTitle: O, customEllipsisOptions: T })
1079
1079
  ] }) });
1080
1080
  }, tN = ({ InputContainer: e = en, value: t, onChange: n, label: r, size: i, showClearIcon: o, clearValue: s, hidden: l, disabled: c, rows: u, withoutLabel: d, debounceMs: p, minLength: f, maxLength: m, className: g, hint: h }) => {
1081
1081
  const b = R(() => {
1082
1082
  if (!n)
1083
1083
  return;
1084
- const N = s ?? null;
1085
- n((N == null ? void 0 : N.toString()) ?? "");
1086
- }, [s, n]), v = ae(null), [y, j] = B((t == null ? void 0 : t.toString()) ?? ""), w = R((N) => {
1087
- const C = N;
1088
- n && n(C || null);
1089
- }, [n]), x = R((N) => {
1084
+ const j = s ?? null;
1085
+ n((j == null ? void 0 : j.toString()) ?? "");
1086
+ }, [s, n]), v = ae(null), [x, N] = B((t == null ? void 0 : t.toString()) ?? ""), w = R((j) => {
1087
+ const S = j;
1088
+ n && n(S || null);
1089
+ }, [n]), y = R((j) => {
1090
1090
  var E;
1091
- const C = (E = N.target) == null ? void 0 : E.value;
1091
+ const S = (E = j.target) == null ? void 0 : E.value;
1092
1092
  if (!p) {
1093
- w(C);
1093
+ w(S);
1094
1094
  return;
1095
1095
  }
1096
- j(C), v.current !== null && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
1097
- w(C);
1096
+ N(S), v.current !== null && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
1097
+ w(S);
1098
1098
  }, p);
1099
1099
  }, [p, w]);
1100
1100
  return U(() => {
1101
- j(t === null ? "" : t.toString());
1101
+ N(t === null ? "" : t.toString());
1102
1102
  }, [t]), /* @__PURE__ */ a.jsxs(e, { label: r ?? "", hidden: l, withoutLabel: d, className: g, isForTextAreaInput: !0, hint: h, disabled: c, children: [
1103
- /* @__PURE__ */ a.jsx(be.Control, { as: "textarea", size: i, value: p ? y : t ?? "", onChange: x, hidden: l, disabled: c, rows: u ?? 2, className: "w-100", minLength: f, maxLength: m }),
1103
+ /* @__PURE__ */ a.jsx(be.Control, { as: "textarea", size: i, value: p ? x : t ?? "", onChange: y, hidden: l, disabled: c, rows: u ?? 2, className: "w-100", minLength: f, maxLength: m }),
1104
1104
  o && t && n && !c && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(te, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ a.jsx(Bt, {}) }) })
1105
1105
  ] });
1106
1106
  }, nN = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, label: i, withoutLabel: o, placeholder: s, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: p, className: f, step: m, stepperStep: g = 1, min: h, max: b, hint: v }) => {
1107
- const y = R(() => {
1107
+ const x = R(() => {
1108
1108
  if (!n)
1109
1109
  return;
1110
1110
  const E = p ?? null;
1111
1111
  n(E ? Number(E) : null);
1112
- }, [p, n]), j = ae(null), [w, x] = B((t == null ? void 0 : t.toString()) ?? ""), N = R((E) => {
1112
+ }, [p, n]), N = ae(null), [w, y] = B((t == null ? void 0 : t.toString()) ?? ""), j = R((E) => {
1113
1113
  const I = E;
1114
1114
  n && n(I == null || I === "" ? null : kn(Number(I), h, b));
1115
- }, [b, h, n]), C = R((E) => {
1115
+ }, [b, h, n]), S = R((E) => {
1116
1116
  var O;
1117
1117
  const I = (O = E.target) == null ? void 0 : O.value;
1118
1118
  if (!r) {
1119
- N(I);
1119
+ j(I);
1120
1120
  return;
1121
1121
  }
1122
- x(kn(Number(I), h, b).toString()), j.current !== null && window.clearTimeout(j.current), j.current = window.setTimeout(() => {
1123
- N(I);
1122
+ y(kn(Number(I), h, b).toString()), N.current !== null && window.clearTimeout(N.current), N.current = window.setTimeout(() => {
1123
+ j(I);
1124
1124
  }, r);
1125
- }, [r, N, b, h]);
1125
+ }, [r, j, b, h]);
1126
1126
  return U(() => {
1127
- x(t === null ? "" : kn(t, h, b).toString());
1127
+ y(t === null ? "" : kn(t, h, b).toString());
1128
1128
  }, [b, h, t]), /* @__PURE__ */ a.jsx(e, { withoutLabel: o, label: i ?? "", hidden: c, hint: v, className: f, disabled: u, children: /* @__PURE__ */ a.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
1129
- /* @__PURE__ */ a.jsx(be.Control, { type: "number", placeholder: s ?? i, size: l, value: r ? w : t ?? "", onChange: C, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: u ?? !1, step: m }),
1129
+ /* @__PURE__ */ a.jsx(be.Control, { type: "number", placeholder: s ?? i, size: l, value: r ? w : t ?? "", onChange: S, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: u ?? !1, step: m }),
1130
1130
  /* @__PURE__ */ a.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ a.jsx(te, { size: "sm", onClick: (E) => {
1131
- E.preventDefault(), E.stopPropagation(), N(((t ?? 0) - g).toString());
1131
+ E.preventDefault(), E.stopPropagation(), j(((t ?? 0) - g).toString());
1132
1132
  }, children: /* @__PURE__ */ a.jsx(ks, {}) }) }),
1133
1133
  /* @__PURE__ */ a.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ a.jsx(te, { size: "sm", onClick: (E) => {
1134
- E.preventDefault(), E.stopPropagation(), N(((t ?? 0) + g).toString());
1134
+ E.preventDefault(), E.stopPropagation(), j(((t ?? 0) + g).toString());
1135
1135
  }, children: /* @__PURE__ */ a.jsx(Bs, {}) }) }),
1136
- d && t && n && !u && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(te, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ a.jsx(Bt, {}) }) })
1136
+ d && t && n && !u && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(te, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ a.jsx(Bt, {}) }) })
1137
1137
  ] }) });
1138
1138
  };
1139
1139
  function gl(e, t) {
@@ -1322,11 +1322,11 @@ function Ep(e, t, n, r, i, o, s) {
1322
1322
  }
1323
1323
  for (var v = r; v < u && (f[v] === -1 || !o(n[v])); )
1324
1324
  v++;
1325
- var y = v === u || f[v] === -1 ? d : f[v];
1325
+ var x = v === u || f[v] === -1 ? d : f[v];
1326
1326
  for (v = r - 1; v > 0 && f[v] === -1; )
1327
1327
  v--;
1328
- var j = v === -1 || f[v] === -1 ? 0 : f[v] + 1;
1329
- return j > y ? y : r - j < y - r ? j : y;
1328
+ var N = v === -1 || f[v] === -1 ? 0 : f[v] + 1;
1329
+ return N > x ? x : r - N < x - r ? N : x;
1330
1330
  }
1331
1331
  function ao(e, t, n, r) {
1332
1332
  var i = e.length;
@@ -1392,11 +1392,11 @@ function Pp(e) {
1392
1392
  h === void 0 && (h = Ot);
1393
1393
  var b = e.onBlur;
1394
1394
  b === void 0 && (b = Ot);
1395
- var v = e.value, y = e.getCaretBoundary;
1396
- y === void 0 && (y = Ip);
1397
- var j = e.isValidInputCharacter;
1398
- j === void 0 && (j = Hn);
1399
- var w = e.isCharacterSame, x = gl(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), N = wl(v, c, !!u, s, l, d), C = N[0], E = C.formattedValue, I = C.numAsString, O = N[1], T = ae(), M = ae({ formattedValue: E, numAsString: I }), S = function(Y, G) {
1395
+ var v = e.value, x = e.getCaretBoundary;
1396
+ x === void 0 && (x = Ip);
1397
+ var N = e.isValidInputCharacter;
1398
+ N === void 0 && (N = Hn);
1399
+ var w = e.isCharacterSame, y = gl(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), j = wl(v, c, !!u, s, l, d), S = j[0], E = S.formattedValue, I = S.numAsString, O = j[1], T = ae(), M = ae({ formattedValue: E, numAsString: I }), C = function(Y, G) {
1400
1400
  M.current = { formattedValue: Y.formattedValue, numAsString: Y.value }, O(Y, G);
1401
1401
  }, P = B(!1), z = P[0], F = P[1], V = ae(null), q = ae({
1402
1402
  setCaretTimeout: null,
@@ -1419,9 +1419,9 @@ function Pp(e) {
1419
1419
  Y.value === ie && Y.selectionStart !== G && Kt(Y, G);
1420
1420
  }, 0));
1421
1421
  }, K = function(Y, G, ie) {
1422
- return ao(Y, G, y(Y), ie);
1422
+ return ao(Y, G, x(Y), ie);
1423
1423
  }, Z = function(Y, G, ie) {
1424
- var ge = y(G), Ie = Ep(G, E, Y, ie, ge, j, w);
1424
+ var ge = x(G), Ie = Ep(G, E, Y, ie, ge, N, w);
1425
1425
  return Ie = ao(G, Ie, ge), Ie;
1426
1426
  }, ne = function(Y) {
1427
1427
  var G = Y.formattedValue;
@@ -1431,11 +1431,11 @@ function Pp(e) {
1431
1431
  var Ve = Y.inputValue || ie.value, ot = ta(ie);
1432
1432
  ie.value = G, fe = Z(Ve, G, ot), fe !== void 0 && A(ie, fe, G);
1433
1433
  }
1434
- G !== E && S(W(G, xe), { event: Ie, source: ge });
1434
+ G !== E && C(W(G, xe), { event: Ie, source: ge });
1435
1435
  };
1436
1436
  U(function() {
1437
1437
  var Y = M.current, G = Y.formattedValue, ie = Y.numAsString;
1438
- (E !== G || I !== ie) && S(W(E, I), {
1438
+ (E !== G || I !== ie) && C(W(E, I), {
1439
1439
  event: void 0,
1440
1440
  source: Un.props
1441
1441
  });
@@ -1485,7 +1485,7 @@ function Pp(e) {
1485
1485
  if (ot) {
1486
1486
  var on = ie === "ArrowLeft" ? "left" : "right";
1487
1487
  st = K(xe, fe, on), st !== fe && Y.preventDefault();
1488
- } else ie === "Delete" && !j(xe[fe]) ? st = K(xe, fe, "right") : ie === "Backspace" && !j(xe[fe]) && (st = K(xe, fe, "left"));
1488
+ } else ie === "Delete" && !N(xe[fe]) ? st = K(xe, fe, "right") : ie === "Backspace" && !N(xe[fe]) && (st = K(xe, fe, "left"));
1489
1489
  st !== fe && A(G, st, xe), m(Y), le(G, Ve);
1490
1490
  }, Q = function(Y) {
1491
1491
  var G = Y.target, ie = function() {
@@ -1509,7 +1509,7 @@ function Pp(e) {
1509
1509
  }, 0);
1510
1510
  }, pe = function(Y) {
1511
1511
  V.current = null, clearTimeout(q.current.focusTimeout), clearTimeout(q.current.setCaretTimeout), b(Y);
1512
- }, Pe = z && Dp() ? "numeric" : void 0, tt = Object.assign({ inputMode: Pe }, x, {
1512
+ }, Pe = z && Dp() ? "numeric" : void 0, tt = Object.assign({ inputMode: Pe }, y, {
1513
1513
  type: t,
1514
1514
  value: E,
1515
1515
  onChange: Ce,
@@ -1519,7 +1519,7 @@ function Pp(e) {
1519
1519
  onBlur: pe
1520
1520
  });
1521
1521
  if (n === "text")
1522
- return i ? de.createElement(de.Fragment, null, i(E, x) || null) : de.createElement("span", Object.assign({}, x, { ref: o }), E);
1522
+ return i ? de.createElement(de.Fragment, null, i(E, y) || null) : de.createElement("span", Object.assign({}, y, { ref: o }), E);
1523
1523
  if (r) {
1524
1524
  var yt = r;
1525
1525
  return de.createElement(yt, Object.assign({}, tt, { ref: o }));
@@ -1577,19 +1577,19 @@ function kp(e, t, n) {
1577
1577
  o.startsWith("-") ? W = !1 : V.startsWith("--") ? (W = !1, A = !0) : s.startsWith("-") && V.length === s.length ? W = !1 : V[0] === "-" && (W = !0);
1578
1578
  var K = W ? 1 : 0;
1579
1579
  return A && (K = 2), K && (V = V.substring(K), q -= K, H -= K), { value: V, start: q, end: H, hasNegation: W };
1580
- }, y = v(e, d, p), j = y.hasNegation;
1581
- r = y, e = r.value, d = r.start, p = r.end;
1582
- var w = v(t.lastValue, c.start, c.end), x = w.start, N = w.end, C = w.value, E = e.substring(d, p);
1583
- e.length && C.length && (x > C.length - s.length || N < o.length) && !(E && s.startsWith(E)) && (e = C);
1580
+ }, x = v(e, d, p), N = x.hasNegation;
1581
+ r = x, e = r.value, d = r.start, p = r.end;
1582
+ var w = v(t.lastValue, c.start, c.end), y = w.start, j = w.end, S = w.value, E = e.substring(d, p);
1583
+ e.length && S.length && (y > S.length - s.length || j < o.length) && !(E && s.startsWith(E)) && (e = S);
1584
1584
  var I = 0;
1585
1585
  e.startsWith(o) ? I += o.length : d < o.length && (I = d), e = e.substring(I), p -= I;
1586
1586
  var O = e.length, T = e.length - s.length;
1587
- e.endsWith(s) ? O = T : (p > T || p > e.length - s.length) && (O = p), e = e.substring(0, O), e = Tp(j ? "-" + e : e, i), e = (e.match(Ap(g)) || []).join("");
1587
+ e.endsWith(s) ? O = T : (p > T || p > e.length - s.length) && (O = p), e = e.substring(0, O), e = Tp(N ? "-" + e : e, i), e = (e.match(Ap(g)) || []).join("");
1588
1588
  var M = e.indexOf(g);
1589
1589
  e = e.replace(new RegExp(hl(g), "g"), function(V, q) {
1590
1590
  return q === M ? "." : "";
1591
1591
  });
1592
- var S = ai(e, i), P = S.beforeDecimal, z = S.afterDecimal, F = S.addNegation;
1592
+ var C = ai(e, i), P = C.beforeDecimal, z = C.afterDecimal, F = C.addNegation;
1593
1593
  return u.end - u.start < c.end - c.start && P === "" && h && !parseFloat(z) && (e = F ? "-" : ""), e;
1594
1594
  }
1595
1595
  function Bp(e, t) {
@@ -1628,15 +1628,15 @@ function Mp(e) {
1628
1628
  o === void 0 && (o = Ot);
1629
1629
  var s = e.thousandSeparator, l = e.decimalScale, c = e.fixedDecimalScale, u = e.prefix;
1630
1630
  u === void 0 && (u = "");
1631
- var d = e.defaultValue, p = e.value, f = e.valueIsNumericString, m = e.onValueChange, g = gl(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), h = Ur(e), b = h.decimalSeparator, v = h.allowedDecimalSeparators, y = function(F) {
1631
+ var d = e.defaultValue, p = e.value, f = e.valueIsNumericString, m = e.onValueChange, g = gl(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), h = Ur(e), b = h.decimalSeparator, v = h.allowedDecimalSeparators, x = function(F) {
1632
1632
  return io(F, e);
1633
- }, j = function(F, V) {
1633
+ }, N = function(F, V) {
1634
1634
  return kp(F, V, e);
1635
- }, w = pn(p) ? d : p, x = f ?? Rp(w, u, t);
1636
- pn(p) ? pn(d) || (x = x || typeof d == "number") : x = x || typeof p == "number";
1637
- var N = function(F) {
1638
- return vl(F) ? F : (typeof F == "number" && (F = xl(F)), x && typeof l == "number" ? ro(F, l, !!c) : F);
1639
- }, C = wl(N(p), N(d), !!x, y, j, m), E = C[0], I = E.numAsString, O = E.formattedValue, T = C[1], M = function(F) {
1635
+ }, w = pn(p) ? d : p, y = f ?? Rp(w, u, t);
1636
+ pn(p) ? pn(d) || (y = y || typeof d == "number") : y = y || typeof p == "number";
1637
+ var j = function(F) {
1638
+ return vl(F) ? F : (typeof F == "number" && (F = xl(F)), y && typeof l == "number" ? ro(F, l, !!c) : F);
1639
+ }, S = wl(j(p), j(d), !!y, x, N, m), E = S[0], I = E.numAsString, O = E.formattedValue, T = S[1], M = function(F) {
1640
1640
  var V = F.target, q = F.key, H = V.selectionStart, W = V.selectionEnd, A = V.value;
1641
1641
  if (A === void 0 && (A = ""), (q === "Backspace" || q === "Delete") && W < u.length) {
1642
1642
  F.preventDefault();
@@ -1649,7 +1649,7 @@ function Mp(e) {
1649
1649
  q === "Backspace" && A[0] === "-" && H === u.length + 1 && n && Kt(V, 1), l && c && (q === "Backspace" && A[H - 1] === b ? (Kt(V, H - 1), F.preventDefault()) : q === "Delete" && A[H] === b && F.preventDefault()), v != null && v.includes(q) && A[H] === b && Kt(V, H + 1);
1650
1650
  var K = s === !0 ? "," : s;
1651
1651
  q === "Backspace" && A[H - 1] === K && Kt(V, H - 1), q === "Delete" && A[H] === K && Kt(V, H + 1), i(F);
1652
- }, S = function(F) {
1652
+ }, C = function(F) {
1653
1653
  var V = I;
1654
1654
  if (V.match(/\d/g) || (V = ""), r || (V = wp(V)), c && l && (V = ro(V, l, c)), V !== I) {
1655
1655
  var q = io(V, e);
@@ -1667,7 +1667,7 @@ function Mp(e) {
1667
1667
  return F === b ? !0 : Hn(F);
1668
1668
  }, z = function(F) {
1669
1669
  var V = F.currentValue, q = F.lastValue, H = F.formattedValue, W = F.currentValueIndex, A = F.formattedValueIndex, K = V[W], Z = H[A], ne = yl(q, V), ve = ne.to, se = function(J) {
1670
- return j(J).indexOf(".") + u.length;
1670
+ return N(J).indexOf(".") + u.length;
1671
1671
  };
1672
1672
  return p === 0 && c && l && V[ve.start] === b && se(V) < W && se(H) > A ? !1 : W >= ve.start && W < ve.end && v && v.includes(K) && Z === b ? !0 : K === Z;
1673
1673
  };
@@ -1677,52 +1677,52 @@ function Mp(e) {
1677
1677
  isValidInputCharacter: P,
1678
1678
  isCharacterSame: z,
1679
1679
  onValueChange: T,
1680
- format: y,
1681
- removeFormatting: j,
1680
+ format: x,
1681
+ removeFormatting: N,
1682
1682
  getCaretBoundary: function(F) {
1683
1683
  return Bp(F, e);
1684
1684
  },
1685
1685
  onKeyDown: M,
1686
- onBlur: S
1686
+ onBlur: C
1687
1687
  });
1688
1688
  }
1689
1689
  function ii(e) {
1690
1690
  var t = Mp(e);
1691
1691
  return de.createElement(Pp, Object.assign({}, t));
1692
1692
  }
1693
- const Fp = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, label: i, withoutLabel: o, placeholder: s, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: p, className: f, step: m, noSelectOnFocus: g, decimalScale: h, fixedDecimalScale: b = !1, numberPrefix: v, numberSuffix: y, min: j, max: w, hint: x }) => {
1694
- const N = R(() => {
1693
+ const Fp = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, label: i, withoutLabel: o, placeholder: s, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: p, className: f, step: m, noSelectOnFocus: g, decimalScale: h, fixedDecimalScale: b = !1, numberPrefix: v, numberSuffix: x, min: N, max: w, hint: y }) => {
1694
+ const j = R(() => {
1695
1695
  if (!n)
1696
1696
  return;
1697
1697
  const M = p ?? null;
1698
1698
  n(M ? Number(M) : null);
1699
- }, [p, n]), C = ae(null), [E, I] = B((t == null ? void 0 : t.toString()) ?? ""), O = R((M) => {
1700
- const S = M;
1701
- n && n(S == null || S === "" ? null : Number(S));
1699
+ }, [p, n]), S = ae(null), [E, I] = B((t == null ? void 0 : t.toString()) ?? ""), O = R((M) => {
1700
+ const C = M;
1701
+ n && n(C == null || C === "" ? null : Number(C));
1702
1702
  }, [n]), T = R((M) => {
1703
1703
  var P, z;
1704
- let S = parseFloat(((z = (P = M.target) == null ? void 0 : P.value) == null ? void 0 : z.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
1705
- if (Number.isNaN(S) && (S = 0), !r) {
1706
- O(S.toString());
1704
+ let C = parseFloat(((z = (P = M.target) == null ? void 0 : P.value) == null ? void 0 : z.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
1705
+ if (Number.isNaN(C) && (C = 0), !r) {
1706
+ O(C.toString());
1707
1707
  return;
1708
1708
  }
1709
- I(S.toString()), C.current !== null && window.clearTimeout(C.current), C.current = window.setTimeout(() => {
1710
- O(S.toString());
1709
+ I(C.toString()), S.current !== null && window.clearTimeout(S.current), S.current = window.setTimeout(() => {
1710
+ O(C.toString());
1711
1711
  }, r);
1712
1712
  }, [r, O]);
1713
1713
  return U(() => {
1714
1714
  I(t === null ? "" : t.toString());
1715
- }, [w, j, t]), U(() => {
1716
- w !== void 0 && Number(E) > w && I(w.toString()), j !== void 0 && Number(E) < j && I(j.toString());
1717
- }, [E, w, j, I]), U(() => {
1718
- !n || t === null || (w !== void 0 && t > w && n(w), j !== void 0 && t < j && n(j));
1719
- }, [t, w, j, n]), /* @__PURE__ */ a.jsxs(e, { withoutLabel: o, label: i ?? "", hidden: c, className: f, hint: x, disabled: u, children: [
1720
- /* @__PURE__ */ a.jsx(ii, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: h, fixedDecimalScale: b, prefix: v, suffix: y, defaultValue: "", value: r ? E : (t == null ? void 0 : t.toString()) ?? "", placeholder: s ?? i, onFocus: (M) => {
1715
+ }, [w, N, t]), U(() => {
1716
+ w !== void 0 && Number(E) > w && I(w.toString()), N !== void 0 && Number(E) < N && I(N.toString());
1717
+ }, [E, w, N, I]), U(() => {
1718
+ !n || t === null || (w !== void 0 && t > w && n(w), N !== void 0 && t < N && n(N));
1719
+ }, [t, w, N, n]), /* @__PURE__ */ a.jsxs(e, { withoutLabel: o, label: i ?? "", hidden: c, className: f, hint: y, disabled: u, children: [
1720
+ /* @__PURE__ */ a.jsx(ii, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: h, fixedDecimalScale: b, prefix: v, suffix: x, defaultValue: "", value: r ? E : (t == null ? void 0 : t.toString()) ?? "", placeholder: s ?? i, onFocus: (M) => {
1721
1721
  !g && M.target.select();
1722
1722
  }, onChange: T, hidden: c, disabled: u, className: _("form-control text-end w-100", {
1723
1723
  [`form-control-${l}`]: l
1724
- }), step: m, min: j, max: w }),
1725
- d && t !== null && n && !u && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ a.jsx(te, { color: "secondary", size: "sm", onClick: N, children: /* @__PURE__ */ a.jsx(Bt, {}) }) })
1724
+ }), step: m, min: N, max: w }),
1725
+ d && t !== null && n && !u && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ a.jsx(te, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ a.jsx(Bt, {}) }) })
1726
1726
  ] });
1727
1727
  }, Vp = ({ InputContainer: e = Te, label: t, options: n, disabled: r, hidden: i, className: o, value: s, onChange: l }) => {
1728
1728
  const c = R((u) => {
@@ -1730,50 +1730,50 @@ const Fp = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
1730
1730
  }, [l]);
1731
1731
  return /* @__PURE__ */ a.jsx(e, { isForRadioInput: !0, hidden: i, withoutLabel: !t, label: `${t}`, className: o, disabled: r, children: n.map((u) => /* @__PURE__ */ a.jsx(be.Check, { id: `radio-${u.id}`, label: u.name, type: "radio", value: u.id ?? "", checked: s === u.id, onChange: c, hidden: i, disabled: r, className: "w-100" }, u.id)) });
1732
1732
  }, rN = ({ InputContainer: e = Te, formField: t, label: n, resetsFields: r, type: i, required: o, hidden: s, disabled: l, withoutLabel: c, hint: u, onChange: d, className: p }) => {
1733
- const { register: f, formState: m, setValue: g } = Ct(), h = Dt({ falseIfNotInit: !0 }), [b, v] = B(void 0), [y, j] = B(!1);
1733
+ const { register: f, formState: m, setValue: g } = Ct(), h = Dt({ falseIfNotInit: !0 }), [b, v] = B(void 0), [x, N] = B(!1);
1734
1734
  U(() => {
1735
- const N = t.split(".");
1736
- let C = m.errors;
1737
- N.forEach((E) => {
1738
- C !== void 0 && (C = C[E]);
1739
- }), v(C);
1735
+ const j = t.split(".");
1736
+ let S = m.errors;
1737
+ j.forEach((E) => {
1738
+ S !== void 0 && (S = S[E]);
1739
+ }), v(S);
1740
1740
  }, [m, t]);
1741
- const w = k(() => l || h, [l, h]), x = b !== void 0;
1741
+ const w = k(() => l || h, [l, h]), y = b !== void 0;
1742
1742
  return U(() => {
1743
- m.isSubmitted && j(!0);
1744
- }, [m]), /* @__PURE__ */ a.jsxs(e, { isForCheckInput: !0, hidden: s, label: n ?? "", required: o, disabled: w, isInvalid: x, withoutLabel: c, hint: u, className: p, children: [
1743
+ m.isSubmitted && N(!0);
1744
+ }, [m]), /* @__PURE__ */ a.jsxs(e, { isForCheckInput: !0, hidden: s, label: n ?? "", required: o, disabled: w, isInvalid: y, withoutLabel: c, hint: u, className: p, children: [
1745
1745
  /* @__PURE__ */ a.jsx(be.Check, { id: `check-${t}`, type: i ?? "checkbox", label: `${n}${o ? " *" : ""}`, ...f(t, {
1746
- onChange: (N) => {
1747
- r && r.forEach((C) => g(C, null, { shouldDirty: !0, shouldValidate: y })), d && d(N.target.value ?? null);
1746
+ onChange: (j) => {
1747
+ r && r.forEach((S) => g(S, null, { shouldDirty: !0, shouldValidate: x })), d && d(j.target.value ?? null);
1748
1748
  }
1749
- }), isInvalid: x, hidden: s, disabled: w, className: "w-100" }),
1749
+ }), isInvalid: y, hidden: s, disabled: w, className: "w-100" }),
1750
1750
  b && /* @__PURE__ */ a.jsx(tn, { message: b.message })
1751
1751
  ] });
1752
1752
  }, aN = ({ InputContainer: e = Te, label: t, formField: n, options: r, resetsFields: i, required: o, disabled: s, hidden: l, onChange: c, className: u }) => {
1753
- const { register: d, formState: p, setValue: f, watch: m } = Ct(), g = Dt({ falseIfNotInit: !0 }), [h, b] = B(void 0), [v, y] = B(!1), j = k(() => r, [r]), w = k(() => s || g, [s, g]);
1753
+ const { register: d, formState: p, setValue: f, watch: m } = Ct(), g = Dt({ falseIfNotInit: !0 }), [h, b] = B(void 0), [v, x] = B(!1), N = k(() => r, [r]), w = k(() => s || g, [s, g]);
1754
1754
  U(() => {
1755
- const N = n.split(".");
1756
- let C = p.errors;
1757
- N.forEach((E) => {
1758
- C !== void 0 && (C = C[E]);
1759
- }), b(C);
1755
+ const j = n.split(".");
1756
+ let S = p.errors;
1757
+ j.forEach((E) => {
1758
+ S !== void 0 && (S = S[E]);
1759
+ }), b(S);
1760
1760
  }, [p, n]), U(() => {
1761
- p.isSubmitted && y(!0);
1761
+ p.isSubmitted && x(!0);
1762
1762
  }, [p]);
1763
- const x = h !== void 0;
1764
- return /* @__PURE__ */ a.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: o, disabled: w, isInvalid: x, className: u, children: [
1765
- j.map((N) => /* @__PURE__ */ a.jsx(be.Check, { id: `radio-${N.id}`, label: N.name, type: "radio", value: N.id ?? "", checked: m(n) === N.id, ...d(n, {
1766
- onChange: (C) => {
1763
+ const y = h !== void 0;
1764
+ return /* @__PURE__ */ a.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: o, disabled: w, isInvalid: y, className: u, children: [
1765
+ N.map((j) => /* @__PURE__ */ a.jsx(be.Check, { id: `radio-${j.id}`, label: j.name, type: "radio", value: j.id ?? "", checked: m(n) === j.id, ...d(n, {
1766
+ onChange: (S) => {
1767
1767
  var E;
1768
- i && i.forEach((I) => f(I, null, { shouldDirty: !0, shouldValidate: v })), c && c((E = C.target) != null && E.value ? C.target.value.toString() : null);
1768
+ i && i.forEach((I) => f(I, null, { shouldDirty: !0, shouldValidate: v })), c && c((E = S.target) != null && E.value ? S.target.value.toString() : null);
1769
1769
  }
1770
- }), isInvalid: x, hidden: l, disabled: w, className: "w-100" }, N.id)),
1770
+ }), isInvalid: y, hidden: l, disabled: w, className: "w-100" }, j.id)),
1771
1771
  h && /* @__PURE__ */ a.jsx(tn, { message: h.message })
1772
1772
  ] });
1773
1773
  }, iN = ({ label: e, InputContainer: t = Te, className: n, withoutLabel: r, hidden: i, disabled: o, contactType: s, formField: l, ...c }) => {
1774
1774
  const { watch: u } = Ct(), d = u(l), p = Dt({ falseIfNotInit: !0 }), f = k(() => o || p, [o, p]);
1775
1775
  return i ? null : /* @__PURE__ */ a.jsx(ml, { contactType: s, value: d, withoutLabel: r, label: e, className: n, children: /* @__PURE__ */ a.jsx(mn, { type: "text", formField: l, InputContainer: t, size: "sm", withoutLabel: !0, className: "flex-grow-1", disabled: f, ...c }) });
1776
- }, oN = ({ InputContainer: e = Te, formField: t, label: n, size: r, defaultSelection: i, resetsFields: o, isNumber: s, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: p, selectedItemNavigateTo: f, texts: m, dropdownItemsNameWidth: g, isLoading: h, withoutLabel: b, additionalColumns: v, CustomOnChangeComponent: y, icon: j, displayIdAsName: w, onSelect: x, className: N, archiveColumn: C, hint: E, addNewOptionPath: I, refreshOptions: O, MiniDetailComponent: T, miniDetailPlacement: M, suggestedItems: S, suggestedItemsTitle: P }) => {
1776
+ }, oN = ({ InputContainer: e = Te, formField: t, label: n, size: r, defaultSelection: i, resetsFields: o, isNumber: s, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: p, selectedItemNavigateTo: f, texts: m, dropdownItemsNameWidth: g, isLoading: h, withoutLabel: b, additionalColumns: v, CustomOnChangeComponent: x, icon: N, displayIdAsName: w, onSelect: y, className: j, archiveColumn: S, hint: E, addNewOptionPath: I, refreshOptions: O, MiniDetailComponent: T, miniDetailPlacement: M, suggestedItems: C, suggestedItemsTitle: P }) => {
1777
1777
  const { formState: z, setValue: F, watch: V, control: q } = Ct(), H = Dt({ falseIfNotInit: !0 }), [W, A] = B(void 0), [K, Z] = B(!1), [ne, ve] = B(!1), se = V(t) ?? null, J = se === (i == null ? void 0 : i.id) ? i == null ? void 0 : i.name : V(`${t}-DropdownName`), le = k(() => se == null ? null : { id: se ?? null, name: J ?? "" }, [se, J]), Ce = R(() => {
1778
1778
  const G = t.split(".");
1779
1779
  let ie = z.errors;
@@ -1783,7 +1783,7 @@ const Fp = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
1783
1783
  }, [z, t]), me = R((G) => {
1784
1784
  if ((G == null ? void 0 : G.id) === se)
1785
1785
  return;
1786
- if (x && x(G), o && o.forEach((ge) => F(ge, null, { shouldDirty: !0, shouldValidate: ne })), G === null) {
1786
+ if (y && y(G), o && o.forEach((ge) => F(ge, null, { shouldDirty: !0, shouldValidate: ne })), G === null) {
1787
1787
  F(t, null, {
1788
1788
  shouldDirty: !0,
1789
1789
  shouldValidate: ne
@@ -1795,7 +1795,7 @@ const Fp = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
1795
1795
  shouldDirty: !0,
1796
1796
  shouldValidate: ne
1797
1797
  }), F(`${t}-DropdownName`, G.name ?? "");
1798
- }, [F, t, ne, s, o, se, x]), Q = R((G) => {
1798
+ }, [F, t, ne, s, o, se, y]), Q = R((G) => {
1799
1799
  Z(!1), me(G);
1800
1800
  }, [me]), re = R(() => {
1801
1801
  Z(!1);
@@ -1804,7 +1804,7 @@ const Fp = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
1804
1804
  Ce();
1805
1805
  }, [Ce]), U(() => {
1806
1806
  z.isSubmitted && ve(!0);
1807
- }, [z]), /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: l, disabled: Y, hidden: c, withoutLabel: b, isInvalid: Pe, inputContainerClassName: _({ "luminus-dropdown-select-open": K }), hint: E, className: N, children: [
1807
+ }, [z]), /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: l, disabled: Y, hidden: c, withoutLabel: b, isInvalid: Pe, inputContainerClassName: _({ "luminus-dropdown-select-open": K }), hint: E, className: j, children: [
1808
1808
  /* @__PURE__ */ a.jsxs(za, { currentSelection: le, selectedItemNavigateTo: f, children: [
1809
1809
  w && (le == null ? void 0 : le.name) && /* @__PURE__ */ a.jsx(L, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: le.name }),
1810
1810
  /* @__PURE__ */ a.jsx(Za, { control: q, name: t, render: () => /* @__PURE__ */ a.jsx(qa, { value: se, MiniDetailComponent: T, miniDetailPlacement: M, children: /* @__PURE__ */ a.jsx(be.Select, { size: r, onMouseDown: (G) => {
@@ -1816,46 +1816,46 @@ const Fp = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
1816
1816
  "luminus-dropdown-picker-disabled": Y,
1817
1817
  "luminus-dropdown-picker-link": yt
1818
1818
  }), children: /* @__PURE__ */ a.jsx("option", { value: se, children: w ? se : (J == null ? void 0 : J.length) > 0 ? J : se }) }) }) }),
1819
- y || !Y && tt ? /* @__PURE__ */ a.jsxs("div", { className: "custom-picker-button", children: [
1820
- !y && !Y && tt && /* @__PURE__ */ a.jsx(te, { size: "sm", color: "secondary", onClick: (G) => {
1819
+ x || !Y && tt ? /* @__PURE__ */ a.jsxs("div", { className: "custom-picker-button", children: [
1820
+ !x && !Y && tt && /* @__PURE__ */ a.jsx(te, { size: "sm", color: "secondary", onClick: (G) => {
1821
1821
  G.preventDefault(), G.stopPropagation(), Z(!0);
1822
- }, children: j ?? /* @__PURE__ */ a.jsx(Rs, {}) }),
1823
- y ?? null
1822
+ }, children: N ?? /* @__PURE__ */ a.jsx(Rs, {}) }),
1823
+ x ?? null
1824
1824
  ] }) : null
1825
1825
  ] }),
1826
1826
  W && /* @__PURE__ */ a.jsx(tn, { message: W.message }),
1827
- pe.current && /* @__PURE__ */ a.jsx(Ya, { show: K, onCancel: re, items: d, currentSelection: le, onSelectionChange: Q, onSearchQueryChange: p, texts: m, itemsNameWidth: g, additionalColumns: v, displayIdAsName: w, isLoading: h, disabled: Y, inputRef: pe, archiveColumn: C, addNewOptionPath: I, refreshOptions: O, suggestedItems: S, suggestedItemsTitle: P })
1827
+ pe.current && /* @__PURE__ */ a.jsx(Ya, { show: K, onCancel: re, items: d, currentSelection: le, onSelectionChange: Q, onSearchQueryChange: p, texts: m, itemsNameWidth: g, additionalColumns: v, displayIdAsName: w, isLoading: h, disabled: Y, inputRef: pe, archiveColumn: S, addNewOptionPath: I, refreshOptions: O, suggestedItems: C, suggestedItemsTitle: P })
1828
1828
  ] }) });
1829
1829
  }, sN = ({ InputContainer: e = Te, label: t, formField: n, hidden: r, required: i, placeholder: o, disabled: s, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: p, hint: f, className: m }) => {
1830
- const { watch: g, setValue: h, register: b, formState: v } = Ct(), y = Dt({ falseIfNotInit: !0 }), [j, w] = B(!1), [x, N] = B(void 0), C = R(() => {
1830
+ const { watch: g, setValue: h, register: b, formState: v } = Ct(), x = Dt({ falseIfNotInit: !0 }), [N, w] = B(!1), [y, j] = B(void 0), S = R(() => {
1831
1831
  h(n, "");
1832
1832
  }, [h, n]), E = R(() => {
1833
1833
  const T = n.split(".");
1834
1834
  let M = v.errors;
1835
- T.forEach((S) => {
1836
- M !== void 0 && (M = M[S]);
1837
- }), N(M);
1835
+ T.forEach((C) => {
1836
+ M !== void 0 && (M = M[C]);
1837
+ }), j(M);
1838
1838
  }, [v, n]);
1839
1839
  U(E, [E]), U(() => {
1840
1840
  v.isSubmitted && w(!0);
1841
1841
  }, [v]);
1842
- const I = k(() => s || y, [s, y]), O = x !== void 0;
1842
+ const I = k(() => s || x, [s, x]), O = y !== void 0;
1843
1843
  return /* @__PURE__ */ a.jsxs(e, { label: t ?? "", required: i, disabled: I, hidden: r, withoutLabel: p, isInvalid: O, hint: f, className: m, children: [
1844
1844
  /* @__PURE__ */ a.jsx(yd, { type: "file", multiple: u, accept: d.join(", "), placeholder: o ?? t, isInvalid: O, hidden: r, disabled: I, className: "w-100", ...b(n, {
1845
1845
  onChange: () => {
1846
- c && c.forEach((T) => h(T, null, { shouldDirty: !0, shouldValidate: j }));
1846
+ c && c.forEach((T) => h(T, null, { shouldDirty: !0, shouldValidate: N }));
1847
1847
  }
1848
1848
  }) }),
1849
- l && g(n) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(te, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ a.jsx(Bt, {}) }) }),
1850
- x && /* @__PURE__ */ a.jsx(tn, { message: x.message })
1849
+ l && g(n) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(te, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ a.jsx(Bt, {}) }) }),
1850
+ y && /* @__PURE__ */ a.jsx(tn, { message: y.message })
1851
1851
  ] });
1852
1852
  }, $p = ({ children: e, onStorno: t, noSpacer: n }) => {
1853
1853
  const { formState: r } = Ct(), i = Dt({ falseIfNotInit: !0 }), [o, s] = B(!1);
1854
1854
  return U(() => {
1855
1855
  s(Object.keys(r.dirtyFields).length > 0);
1856
1856
  }, [r]), o ? /* @__PURE__ */ a.jsx(zu, { onStorno: t, noSpacer: n, disabled: i, children: e }) : null;
1857
- }, Pa = ({ InputContainer: e = Te, options: t, formField: n, label: r, size: i, resetsFields: o, isNumber: s, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: p, suffixIdToName: f, onSelect: m, className: g, appendCurrentSelectionWithName: h, hint: b, addNewOptionPath: v, refreshOptions: y, MiniDetailComponent: j, miniDetailPlacement: w, selectedItemNavigateTo: x, noRemoveButton: N }) => {
1858
- const { texts: { customSelect: C } } = $(X), { formState: E, setValue: I, watch: O, control: T } = Ct(), M = Dt({ falseIfNotInit: !0 }), [S, P] = B(void 0), [z, F] = B(!1), [V, q] = B(!1), [H, W] = B(""), A = O(n), K = k(() => t.find((re) => re.id === A) ?? null, [t, A]), Z = R(() => {
1857
+ }, Pa = ({ InputContainer: e = Te, options: t, formField: n, label: r, size: i, resetsFields: o, isNumber: s, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: p, suffixIdToName: f, onSelect: m, className: g, appendCurrentSelectionWithName: h, hint: b, addNewOptionPath: v, refreshOptions: x, MiniDetailComponent: N, miniDetailPlacement: w, selectedItemNavigateTo: y, noRemoveButton: j }) => {
1858
+ const { texts: { customSelect: S } } = $(X), { formState: E, setValue: I, watch: O, control: T } = Ct(), M = Dt({ falseIfNotInit: !0 }), [C, P] = B(void 0), [z, F] = B(!1), [V, q] = B(!1), [H, W] = B(""), A = O(n), K = k(() => t.find((re) => re.id === A) ?? null, [t, A]), Z = R(() => {
1859
1859
  const re = n.split(".");
1860
1860
  let pe = E.errors;
1861
1861
  re.forEach((Pe) => {
@@ -1902,21 +1902,21 @@ const Fp = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
1902
1902
  le,
1903
1903
  h,
1904
1904
  A
1905
- ]), me = ae(null), Q = S !== void 0;
1905
+ ]), me = ae(null), Q = C !== void 0;
1906
1906
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { label: r ?? "", required: l, disabled: J, hidden: c, withoutLabel: d, isInvalid: Q, inputContainerClassName: _({ "luminus-dropdown-select-open": z }), hint: b, className: g, children: [
1907
- /* @__PURE__ */ a.jsx(za, { currentSelection: K, selectedItemNavigateTo: x, children: /* @__PURE__ */ a.jsx(Za, { control: T, name: n, render: () => /* @__PURE__ */ a.jsx(qa, { value: A, MiniDetailComponent: j, miniDetailPlacement: w, children: /* @__PURE__ */ a.jsx(be.Select, { size: i, onMouseDown: (re) => {
1907
+ /* @__PURE__ */ a.jsx(za, { currentSelection: K, selectedItemNavigateTo: y, children: /* @__PURE__ */ a.jsx(Za, { control: T, name: n, render: () => /* @__PURE__ */ a.jsx(qa, { value: A, MiniDetailComponent: N, miniDetailPlacement: w, children: /* @__PURE__ */ a.jsx(be.Select, { size: i, onMouseDown: (re) => {
1908
1908
  re.currentTarget.focus(), re.preventDefault();
1909
1909
  }, onClick: () => {
1910
1910
  F(!0);
1911
1911
  }, ref: me, value: A ?? "", onChange: () => {
1912
1912
  }, isInvalid: Q, hidden: c, disabled: J, className: "w-100", children: /* @__PURE__ */ a.jsx("option", { value: (K == null ? void 0 : K.id) ?? "", children: le(K) }) }) }) }) }),
1913
- S && /* @__PURE__ */ a.jsx(tn, { message: S.message }),
1914
- me.current && /* @__PURE__ */ a.jsx(Ya, { show: z, onCancel: () => F(!1), items: Ce, currentSelection: K ?? null, onSelectionChange: ve, onSearchQueryChange: se, texts: C, disabled: J, inputRef: me, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: v, refreshOptions: y, noRemoveButton: N })
1913
+ C && /* @__PURE__ */ a.jsx(tn, { message: C.message }),
1914
+ me.current && /* @__PURE__ */ a.jsx(Ya, { show: z, onCancel: () => F(!1), items: Ce, currentSelection: K ?? null, onSelectionChange: ve, onSearchQueryChange: se, texts: S, disabled: J, inputRef: me, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: v, refreshOptions: x, noRemoveButton: j })
1915
1915
  ] }) });
1916
- }, lN = ({ InputContainer: e = Te, formField: t, label: n, placeholder: r, size: i, resetsFields: o, showClearIcon: s, clearValue: l, required: c, hidden: u, disabled: d, withoutLabel: p, step: f, stepperStep: m = 1, className: g, min: h, max: b, onChange: v, hint: y }) => {
1917
- const { register: j, formState: w, setValue: x, watch: N } = Ct(), C = Dt({ falseIfNotInit: !0 }), [E, I] = B(void 0), [O, T] = B(!1), M = R((q, H, W) => {
1918
- x(q, kn(H, h, b), W);
1919
- }, [b, h, x]), S = R(() => {
1916
+ }, lN = ({ InputContainer: e = Te, formField: t, label: n, placeholder: r, size: i, resetsFields: o, showClearIcon: s, clearValue: l, required: c, hidden: u, disabled: d, withoutLabel: p, step: f, stepperStep: m = 1, className: g, min: h, max: b, onChange: v, hint: x }) => {
1917
+ const { register: N, formState: w, setValue: y, watch: j } = Ct(), S = Dt({ falseIfNotInit: !0 }), [E, I] = B(void 0), [O, T] = B(!1), M = R((q, H, W) => {
1918
+ y(q, kn(H, h, b), W);
1919
+ }, [b, h, y]), C = R(() => {
1920
1920
  const q = l ?? null;
1921
1921
  M(t, q !== null ? Number(q) : null, {
1922
1922
  shouldDirty: !0,
@@ -1928,22 +1928,22 @@ const Fp = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
1928
1928
  q.forEach((W) => {
1929
1929
  H !== void 0 && (H = H[W]);
1930
1930
  }), I(H);
1931
- }, [w, t]), z = k(() => d || C, [d, C]);
1931
+ }, [w, t]), z = k(() => d || S, [d, S]);
1932
1932
  U(() => {
1933
1933
  P();
1934
1934
  }, [P]), U(() => {
1935
1935
  w.isSubmitted && T(!0);
1936
1936
  }, [w]);
1937
- const F = E !== void 0, V = N(t);
1938
- return /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: c, disabled: z, hidden: u, withoutLabel: p, isInvalid: F, hint: y, className: g, children: [
1937
+ const F = E !== void 0, V = j(t);
1938
+ return /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: c, disabled: z, hidden: u, withoutLabel: p, isInvalid: F, hint: x, className: g, children: [
1939
1939
  /* @__PURE__ */ a.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
1940
- /* @__PURE__ */ a.jsx(be.Control, { type: "number", placeholder: r ?? n, size: i, ...j(t, {
1940
+ /* @__PURE__ */ a.jsx(be.Control, { type: "number", placeholder: r ?? n, size: i, ...N(t, {
1941
1941
  setValueAs: (q) => q == null || q === "" ? null : kn(Number(q), h, b),
1942
1942
  min: h,
1943
1943
  max: b,
1944
1944
  onChange: (q) => {
1945
1945
  var H;
1946
- o && o.forEach((W) => x(W, null, { shouldDirty: !0, shouldValidate: O })), v && v((H = q.target) != null && H.value ? Number(q.target.value) ?? null : null);
1946
+ o && o.forEach((W) => y(W, null, { shouldDirty: !0, shouldValidate: O })), v && v((H = q.target) != null && H.value ? Number(q.target.value) ?? null : null);
1947
1947
  }
1948
1948
  }), isInvalid: F, hidden: u, disabled: z, className: "w-100 luminus-numeric-stepper", step: f, min: h, max: b }),
1949
1949
  /* @__PURE__ */ a.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ a.jsx(te, { size: "sm", onClick: (q) => {
@@ -1953,11 +1953,11 @@ const Fp = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
1953
1953
  q.preventDefault(), q.stopPropagation(), M(t, ((V ? Number(V) : 0) + m).toString(), { shouldDirty: !0, shouldValidate: O });
1954
1954
  }, children: /* @__PURE__ */ a.jsx(Bs, {}) }) })
1955
1955
  ] }),
1956
- s && N(t) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(te, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ a.jsx(Bt, {}) }) }),
1956
+ s && j(t) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(te, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ a.jsx(Bt, {}) }) }),
1957
1957
  E && /* @__PURE__ */ a.jsx(tn, { message: E.message })
1958
1958
  ] });
1959
- }, cN = ({ InputContainer: e = Te, formField: t, label: n, placeholder: r, resetsFields: i, showClearIcon: o, clearValue: s, required: l, hidden: c, disabled: u, withoutLabel: d, step: p, size: f, CustomOnChangeComponent: m, noSelectOnFocus: g, className: h, decimalScale: b = 2, fixedDecimalScale: v = !1, numberPrefix: y, numberSuffix: j, min: w, max: x, onChange: N, hint: C }) => {
1960
- const { formState: E, setValue: I, watch: O, control: T } = Ct(), M = Dt({ falseIfNotInit: !0 }), [S, P] = B(void 0), [z, F] = B(!1), V = R(() => {
1959
+ }, cN = ({ InputContainer: e = Te, formField: t, label: n, placeholder: r, resetsFields: i, showClearIcon: o, clearValue: s, required: l, hidden: c, disabled: u, withoutLabel: d, step: p, size: f, CustomOnChangeComponent: m, noSelectOnFocus: g, className: h, decimalScale: b = 2, fixedDecimalScale: v = !1, numberPrefix: x, numberSuffix: N, min: w, max: y, onChange: j, hint: S }) => {
1960
+ const { formState: E, setValue: I, watch: O, control: T } = Ct(), M = Dt({ falseIfNotInit: !0 }), [C, P] = B(void 0), [z, F] = B(!1), V = R(() => {
1961
1961
  const K = s ?? null;
1962
1962
  I(t, K !== null ? Number(K) : null, {
1963
1963
  shouldDirty: !0,
@@ -1977,28 +1977,28 @@ const Fp = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
1977
1977
  }, [E]);
1978
1978
  const W = O(t);
1979
1979
  U(() => {
1980
- x !== void 0 && W > x && I(t, x), w !== void 0 && W < w && I(t, w);
1981
- }, [t, W, x, w, I]);
1982
- const A = S !== void 0;
1983
- return /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: l, disabled: H, hidden: c, withoutLabel: d, isInvalid: A, hint: C, className: h, children: [
1980
+ y !== void 0 && W > y && I(t, y), w !== void 0 && W < w && I(t, w);
1981
+ }, [t, W, y, w, I]);
1982
+ const A = C !== void 0;
1983
+ return /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: l, disabled: H, hidden: c, withoutLabel: d, isInvalid: A, hint: S, className: h, children: [
1984
1984
  /* @__PURE__ */ a.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
1985
- /* @__PURE__ */ a.jsx(Za, { control: T, name: t, render: ({ field: { ref: K, onChange: Z, name: ne, value: ve } }) => /* @__PURE__ */ a.jsx(ii, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: b, fixedDecimalScale: v, prefix: y, suffix: j, defaultValue: "", name: ne, value: ve ?? "", placeholder: r ?? n, onFocus: (se) => {
1985
+ /* @__PURE__ */ a.jsx(Za, { control: T, name: t, render: ({ field: { ref: K, onChange: Z, name: ne, value: ve } }) => /* @__PURE__ */ a.jsx(ii, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: b, fixedDecimalScale: v, prefix: x, suffix: N, defaultValue: "", name: ne, value: ve ?? "", placeholder: r ?? n, onFocus: (se) => {
1986
1986
  !g && se.target.select();
1987
1987
  }, onChange: (se) => {
1988
1988
  var Ce, me;
1989
1989
  const J = parseFloat(((me = (Ce = se.target) == null ? void 0 : Ce.value) == null ? void 0 : me.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
1990
1990
  i && i.forEach((Q) => I(Q, null, { shouldDirty: !0, shouldValidate: z }));
1991
1991
  const le = J == null || Number.isNaN(J) ? null : Number(J);
1992
- Z(le), N && N(le);
1992
+ Z(le), j && j(le);
1993
1993
  }, hidden: c, disabled: H, className: _("form-control text-end w-100", {
1994
1994
  "is-invalid": A
1995
1995
  }, {
1996
1996
  [`form-control-${f}`]: f
1997
- }), step: p, getInputRef: K, min: w, max: x }) }),
1997
+ }), step: p, getInputRef: K, min: w, max: y }) }),
1998
1998
  m && /* @__PURE__ */ a.jsx("div", { className: "custom-picker-button", children: m })
1999
1999
  ] }),
2000
2000
  o && O(t) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ a.jsx(te, { color: "secondary", size: "sm", onClick: V, children: /* @__PURE__ */ a.jsx(Bt, {}) }) }),
2001
- S && /* @__PURE__ */ a.jsx(tn, { message: S.message })
2001
+ C && /* @__PURE__ */ a.jsx(tn, { message: C.message })
2002
2002
  ] });
2003
2003
  }, dN = ({ color: e = "primary", icon: t = /* @__PURE__ */ a.jsx(jd, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: i, multiple: o, className: s, children: l, ...c }) => {
2004
2004
  const u = (d) => {
@@ -2036,20 +2036,20 @@ const Fp = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
2036
2036
  e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo = (e) => !e.member && !e.isDrillThrough, co = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t), Wp = ({ dataSource: e, settings: t, pivotRef: n, localization: r, licenseKey: i, hyperlinkColumn: o, roomPasportization: s, enabled: l = !0 }) => {
2037
2037
  const { texts: { reports: c } } = $(X), [u, d] = B(!1), p = ae(null), f = n ?? p, m = k(() => ({
2038
2038
  localization: r
2039
- }), [r]), g = R((x) => {
2040
- const N = x.find((E) => E.id === "fm-tab-export");
2041
- if ((N == null ? void 0 : N.menu) == null || f.current == null)
2042
- return x;
2043
- const C = N.menu.find((E) => E.id === "fm-tab-export-pdf");
2044
- return C && (C.handler = () => {
2039
+ }), [r]), g = R((y) => {
2040
+ const j = y.find((E) => E.id === "fm-tab-export");
2041
+ if ((j == null ? void 0 : j.menu) == null || f.current == null)
2042
+ return y;
2043
+ const S = j.menu.find((E) => E.id === "fm-tab-export-pdf");
2044
+ return S && (S.handler = () => {
2045
2045
  f.current.flexmonster.exportTo("pdf", {
2046
2046
  useCustomizeCellForData: !0,
2047
2047
  fontUrl: "https://cdn.flexmonster.com/fonts/NotoSans-Regular.ttf"
2048
2048
  });
2049
- }), x;
2050
- }, [f]), h = R((x) => {
2051
- x = g(x), delete x[0], delete x[1], delete x[2];
2052
- const N = [
2049
+ }), y;
2050
+ }, [f]), h = R((y) => {
2051
+ y = g(y), delete y[0], delete y[1], delete y[2];
2052
+ const j = [
2053
2053
  {
2054
2054
  id: "fm-tab-expand",
2055
2055
  title: c.expandAll,
@@ -2063,43 +2063,43 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2063
2063
  icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'
2064
2064
  }
2065
2065
  ];
2066
- return x.unshift({
2066
+ return y.unshift({
2067
2067
  id: "fm-tab-expand",
2068
2068
  title: c.expand,
2069
2069
  icon: '<svg height="42" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d=" M16 4 L28 4 L28 16 L24 12 L20 16 L16 12 L20 8z M4 16 L8 20 L12 16 L16 20 L12 24 L16 28 L4 28z "/></svg>',
2070
- menu: N,
2070
+ menu: j,
2071
2071
  rightGroup: !0
2072
- }), x;
2072
+ }), y;
2073
2073
  }, [
2074
2074
  f,
2075
2075
  c.collapseAll,
2076
2076
  c.expand,
2077
2077
  c.expandAll,
2078
2078
  g
2079
- ]), b = (x) => {
2080
- const N = x.getTabs();
2081
- x.getTabs = () => h(N);
2082
- }, v = k(() => e && e.mapping ? Object.values(e.mapping).filter((x) => x.caption.includes("P:")).map((x) => ({ uniqueName: x.caption.replace("P:", ""), caption: x.caption })) : [], [e]), y = k(() => {
2083
- var N, C, E, I;
2084
- const x = (N = f.current) == null ? void 0 : N.flexmonster.getReport();
2085
- return x && x.slice ? {
2086
- ...x.slice,
2079
+ ]), b = (y) => {
2080
+ const j = y.getTabs();
2081
+ y.getTabs = () => h(j);
2082
+ }, v = k(() => e && e.mapping ? Object.values(e.mapping).filter((y) => y.caption.includes("P:")).map((y) => ({ uniqueName: y.caption.replace("P:", ""), caption: y.caption })) : [], [e]), x = k(() => {
2083
+ var j, S, E, I;
2084
+ const y = (j = f.current) == null ? void 0 : j.flexmonster.getReport();
2085
+ return y && y.slice ? {
2086
+ ...y.slice,
2087
2087
  rows: [
2088
- ...((C = x.slice.rows) == null ? void 0 : C.filter((O) => {
2088
+ ...((S = y.slice.rows) == null ? void 0 : S.filter((O) => {
2089
2089
  var T;
2090
2090
  return !((T = O.caption) != null && T.includes("P:"));
2091
2091
  })) ?? [],
2092
2092
  ...v
2093
2093
  ],
2094
2094
  columns: [
2095
- ...((E = x.slice.columns) == null ? void 0 : E.filter((O) => {
2095
+ ...((E = y.slice.columns) == null ? void 0 : E.filter((O) => {
2096
2096
  var T;
2097
2097
  return !((T = O.caption) != null && T.includes("P:"));
2098
2098
  })) ?? [],
2099
2099
  ...v
2100
2100
  ],
2101
2101
  measures: [
2102
- ...((I = x.slice.measures) == null ? void 0 : I.filter((O) => {
2102
+ ...((I = y.slice.measures) == null ? void 0 : I.filter((O) => {
2103
2103
  var T;
2104
2104
  return !((T = O.caption) != null && T.includes("P:"));
2105
2105
  })) ?? [],
@@ -2108,71 +2108,71 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2108
2108
  } : null;
2109
2109
  }, [v, f]);
2110
2110
  U(() => {
2111
- var x, N, C, E;
2111
+ var y, j, S, E;
2112
2112
  if (u && l) {
2113
- if (s && y) {
2114
- const I = (x = f.current) == null ? void 0 : x.flexmonster.getReport(), O = I && I.options ? {
2113
+ if (s && x) {
2114
+ const I = (y = f.current) == null ? void 0 : y.flexmonster.getReport(), O = I && I.options ? {
2115
2115
  ...I.options,
2116
- grid: { ...(N = I.options) == null ? void 0 : N.grid, autoSwitchToCompact: !1 }
2116
+ grid: { ...(j = I.options) == null ? void 0 : j.grid, autoSwitchToCompact: !1 }
2117
2117
  } : {};
2118
- (C = f.current) == null || C.flexmonster.setReport({
2118
+ (S = f.current) == null || S.flexmonster.setReport({
2119
2119
  ...I,
2120
2120
  dataSource: e,
2121
- slice: y,
2121
+ slice: x,
2122
2122
  options: O
2123
2123
  });
2124
2124
  } else
2125
2125
  (E = f.current) == null || E.flexmonster.updateData(e);
2126
2126
  console.log("Updating flexmonster dataSource to: ", e);
2127
2127
  }
2128
- }, [e, l, u, v, f, s, y]), U(() => {
2128
+ }, [e, l, u, v, f, s, x]), U(() => {
2129
2129
  var E, I, O, T, M;
2130
2130
  if (!u || !l || t == null)
2131
2131
  return;
2132
- const x = (E = f.current) == null ? void 0 : E.flexmonster.getReport();
2133
- if (x === void 0 || typeof x == "string")
2132
+ const y = (E = f.current) == null ? void 0 : E.flexmonster.getReport();
2133
+ if (y === void 0 || typeof y == "string")
2134
2134
  return;
2135
- const N = Up(t);
2136
- N.options = {
2135
+ const j = Up(t);
2136
+ j.options = {
2137
2137
  ...t == null ? void 0 : t.options,
2138
2138
  grid: { ...(I = t == null ? void 0 : t.options) == null ? void 0 : I.grid, autoSwitchToCompact: !1 },
2139
2139
  showFieldListSearch: !0,
2140
2140
  datePattern: "dd.MM.yyyy",
2141
2141
  dateTimePattern: "dd.MM.yyyy HH:mm:ss"
2142
- }, s && (N.slice = {
2142
+ }, s && (j.slice = {
2143
2143
  ...t == null ? void 0 : t.slice,
2144
2144
  rows: [
2145
- ...((T = (O = t == null ? void 0 : t.slice) == null ? void 0 : O.rows) == null ? void 0 : T.filter((S) => {
2145
+ ...((T = (O = t == null ? void 0 : t.slice) == null ? void 0 : O.rows) == null ? void 0 : T.filter((C) => {
2146
2146
  var P;
2147
- return !((P = S.caption) != null && P.includes("P:"));
2147
+ return !((P = C.caption) != null && P.includes("P:"));
2148
2148
  })) ?? [],
2149
2149
  ...v
2150
2150
  ]
2151
2151
  });
2152
- const C = { ...x, ...N };
2153
- (M = f.current) == null || M.flexmonster.setReport(C);
2152
+ const S = { ...y, ...j };
2153
+ (M = f.current) == null || M.flexmonster.setReport(S);
2154
2154
  }, [l, u, v, f, s, t]);
2155
- const j = R((x, N) => {
2156
- var S, P;
2157
- if (Hp(N)) {
2158
- x.text = ((S = N.member) == null ? void 0 : S.caption) ?? "";
2159
- const z = x.style["padding-left"] ?? "4px", F = parseInt(z, 10);
2160
- x.style["padding-left"] = F + 11 + "px";
2161
- }
2162
- if (!o || !so(N, o.idColumn) || lo(N))
2155
+ const N = R((y, j) => {
2156
+ var C, P;
2157
+ if (Hp(j)) {
2158
+ y.text = ((C = j.member) == null ? void 0 : C.caption) ?? "";
2159
+ const z = y.style["padding-left"] ?? "4px", F = parseInt(z, 10);
2160
+ y.style["padding-left"] = F + 11 + "px";
2161
+ }
2162
+ if (!o || !so(j, o.idColumn) || lo(j))
2163
2163
  return;
2164
- const C = (P = N.escapedLabel) == null ? void 0 : P.toString();
2165
- if (C === void 0)
2164
+ const S = (P = j.escapedLabel) == null ? void 0 : P.toString();
2165
+ if (S === void 0)
2166
2166
  return;
2167
- const E = co(o.url, C), I = "style='color: #00a45a; text-decoration: underline; cursor: pointer;'", O = N.type === "header" ? "onclick='event.stopImmediatePropagation()'" : "", T = N.isDrillThrough || N.type === "header" ? `href='${E}' target='_blank'` : "";
2168
- x.style && (x.style["z-index"] = 1);
2169
- const M = `<a ${T} ${I} ${O}>${N.escapedLabel}</a>`;
2170
- x.text = M;
2171
- }, [o]), w = R((x) => {
2172
- if (!o || !so(x, o.idColumn) || lo(x))
2167
+ const E = co(o.url, S), I = "style='color: #00a45a; text-decoration: underline; cursor: pointer;'", O = j.type === "header" ? "onclick='event.stopImmediatePropagation()'" : "", T = j.isDrillThrough || j.type === "header" ? `href='${E}' target='_blank'` : "";
2168
+ y.style && (y.style["z-index"] = 1);
2169
+ const M = `<a ${T} ${I} ${O}>${j.escapedLabel}</a>`;
2170
+ y.text = M;
2171
+ }, [o]), w = R((y) => {
2172
+ if (!o || !so(y, o.idColumn) || lo(y))
2173
2173
  return;
2174
- const N = co(o.url, x.escapedLabel ?? "");
2175
- window.open(N ?? "", "_blank", "noreferrer");
2174
+ const j = co(o.url, y.escapedLabel ?? "");
2175
+ window.open(j ?? "", "_blank", "noreferrer");
2176
2176
  }, [o]);
2177
2177
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
2178
2178
  bu,
@@ -2187,7 +2187,7 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2187
2187
  d(!0);
2188
2188
  },
2189
2189
  width: "100%",
2190
- customizeCell: j,
2190
+ customizeCell: N,
2191
2191
  cellclick: w
2192
2192
  }
2193
2193
  ) });
@@ -2195,8 +2195,8 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2195
2195
  const { texts: { reports: i } } = $(X), { prompt: o } = Nd(), { confirm: s } = St(), l = Ke(), { user: c } = $(Lt), { startLoading: u, stopLoading: d } = $(xt), { addNotification: p } = nn(), f = R(async (v) => {
2196
2196
  u("report-versionSavingAs");
2197
2197
  try {
2198
- const y = await l.post("/reports/version", v);
2199
- p(i.saveSuccessful, "success"), await r(y.data);
2198
+ const x = await l.post("/reports/version", v);
2199
+ p(i.saveSuccessful, "success"), await r(x.data);
2200
2200
  } finally {
2201
2201
  d("report-versionSavingAs");
2202
2202
  }
@@ -2207,11 +2207,11 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2207
2207
  }
2208
2208
  if (!await s(i.confirmOverwriteSave))
2209
2209
  return;
2210
- const y = oo(t);
2210
+ const x = oo(t);
2211
2211
  f({
2212
2212
  reportSourceName: e,
2213
2213
  reportVersionId: n,
2214
- settings: y
2214
+ settings: x
2215
2215
  });
2216
2216
  }, [
2217
2217
  p,
@@ -2225,11 +2225,11 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2225
2225
  const v = await o(i.enterName, { input: "input", required: !0 });
2226
2226
  if (v === null)
2227
2227
  return;
2228
- const y = oo(t);
2228
+ const x = oo(t);
2229
2229
  f({
2230
2230
  reportSourceName: e,
2231
2231
  name: v,
2232
- settings: y
2232
+ settings: x
2233
2233
  });
2234
2234
  }, [t, o, e, i.enterName, f]), h = R(async () => {
2235
2235
  u("report-versionSavingAs");
@@ -2350,18 +2350,18 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2350
2350
  });
2351
2351
  }, [t, e]), { mappings: n };
2352
2352
  }, uN = ({ reportType: e, title: t, data: n, filterElements: r, getReportRoute: i, localization: o, licenseKey: s, EmployeePicker: l, localizationJsonFile: c, localizationTransformer: u, hyperlinkColumn: d, roomPasportization: p = !1 }) => {
2353
- const { texts: { reports: f } } = $(X), { confirm: m } = St(), g = Fr(), [h] = gu(), { id: b } = qs(), v = k(() => b === void 0 ? null : Number(b), [b]), y = R((J) => {
2353
+ const { texts: { reports: f } } = $(X), { confirm: m } = St(), g = Fr(), [h] = gu(), { id: b } = qs(), v = k(() => b === void 0 ? null : Number(b), [b]), x = R((J) => {
2354
2354
  const le = J === null ? "" : J.toString();
2355
2355
  g(vn(i(e), { id: le }) + "?" + h.toString(), {
2356
2356
  replace: !0,
2357
2357
  flushSync: !0
2358
2358
  });
2359
- }, [i, g, e, h]), [j, w] = B(!1), x = ae(null), { user: N } = $(Lt), { data: C, reloadData: E } = Be(`/reports/${e}`), { mappings: I } = Kp(c, u), [O, T] = B(void 0), M = R((J) => {
2359
+ }, [i, g, e, h]), [N, w] = B(!1), y = ae(null), { user: j } = $(Lt), { data: S, reloadData: E } = Be(`/reports/${e}`), { mappings: I } = Kp(c, u), [O, T] = B(void 0), M = R((J) => {
2360
2360
  const le = J.target.value, Ce = le === "" ? null : Number(le);
2361
- y(Ce);
2362
- }, [y]), S = R(async (J) => {
2363
- await E(), y(J);
2364
- }, [E, y]), { data: P, setData: z, isLoading: F } = Be(`/reports/version/${v}`, {
2361
+ x(Ce);
2362
+ }, [x]), C = R(async (J) => {
2363
+ await E(), x(J);
2364
+ }, [E, x]), { data: P, setData: z, isLoading: F } = Be(`/reports/version/${v}`, {
2365
2365
  enabled: v !== null,
2366
2366
  nullStateBeforeLoad: !1,
2367
2367
  nullStateOnFail: !0
@@ -2377,34 +2377,34 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2377
2377
  return;
2378
2378
  }
2379
2379
  const J = Gp(P) ?? {};
2380
- T(J), (le = x.current) == null || le.flexmonster.refresh();
2380
+ T(J), (le = y.current) == null || le.flexmonster.refresh();
2381
2381
  }, [P, F]);
2382
- const { save: V, saveAs: q, archive: H, detach: W } = zp(e, x, v, S), A = k(() => ({
2382
+ const { save: V, saveAs: q, archive: H, detach: W } = zp(e, y, v, C), A = k(() => ({
2383
2383
  data: n ?? [],
2384
2384
  mapping: I ?? void 0
2385
2385
  }), [n, I]), K = R(async () => {
2386
2386
  var le;
2387
- await m(f.confirmRevertChanges) && ((le = x.current) == null || le.flexmonster.setReport({ dataSource: A, ...O }));
2388
- }, [m, A, f.confirmRevertChanges, O]), Z = k(() => (P == null ? void 0 : P.ownerId) === N.personalNumber, [P == null ? void 0 : P.ownerId, N.personalNumber]), ne = k(() => {
2387
+ await m(f.confirmRevertChanges) && ((le = y.current) == null || le.flexmonster.setReport({ dataSource: A, ...O }));
2388
+ }, [m, A, f.confirmRevertChanges, O]), Z = k(() => (P == null ? void 0 : P.ownerId) === j.personalNumber, [P == null ? void 0 : P.ownerId, j.personalNumber]), ne = k(() => {
2389
2389
  var J;
2390
- return (J = P == null ? void 0 : P.users) == null ? void 0 : J.some((le) => le.id === N.personalNumber && !le.isReportOwner);
2391
- }, [P == null ? void 0 : P.users, N.personalNumber]), ve = R(async () => {
2392
- await m(f.confirmDelete(P == null ? void 0 : P.name)) && (await H(), y(null), await E());
2393
- }, [H, m, E, P == null ? void 0 : P.name, f, y]), se = R(async () => {
2394
- await m(f.confirmDetach(P == null ? void 0 : P.name)) && (await W(), y(null), await E());
2395
- }, [m, W, E, P == null ? void 0 : P.name, f, y]);
2390
+ return (J = P == null ? void 0 : P.users) == null ? void 0 : J.some((le) => le.id === j.personalNumber && !le.isReportOwner);
2391
+ }, [P == null ? void 0 : P.users, j.personalNumber]), ve = R(async () => {
2392
+ await m(f.confirmDelete(P == null ? void 0 : P.name)) && (await H(), x(null), await E());
2393
+ }, [H, m, E, P == null ? void 0 : P.name, f, x]), se = R(async () => {
2394
+ await m(f.confirmDetach(P == null ? void 0 : P.name)) && (await W(), x(null), await E());
2395
+ }, [m, W, E, P == null ? void 0 : P.name, f, x]);
2396
2396
  return U(() => {
2397
2397
  var J, le;
2398
- v === null && y(((J = C == null ? void 0 : C.reportVersions.find((Ce) => Ce.isSystem === !0)) == null ? void 0 : J.reportVersionId) ?? ((le = C == null ? void 0 : C.reportVersions[0]) == null ? void 0 : le.reportVersionId) ?? null);
2399
- }, [C == null ? void 0 : C.reportVersions, v, y]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2398
+ v === null && x(((J = S == null ? void 0 : S.reportVersions.find((Ce) => Ce.isSystem === !0)) == null ? void 0 : J.reportVersionId) ?? ((le = S == null ? void 0 : S.reportVersions[0]) == null ? void 0 : le.reportVersionId) ?? null);
2399
+ }, [S == null ? void 0 : S.reportVersions, v, x]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2400
2400
  /* @__PURE__ */ a.jsx(Nt, { variant: "fullScreen", title: /* @__PURE__ */ a.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
2401
2401
  /* @__PURE__ */ a.jsx(L, { variant: "h3", children: t }),
2402
2402
  r,
2403
2403
  /* @__PURE__ */ a.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
2404
2404
  /* @__PURE__ */ a.jsxs(Dd, { size: "sm", value: v ?? void 0, onChange: M, children: [
2405
- /* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectSystem, children: C == null ? void 0 : C.reportVersions.filter((J) => J.isSystem === !0).map((J) => /* @__PURE__ */ a.jsx("option", { value: J.reportVersionId, children: J.name }, J.reportVersionId)) }),
2406
- /* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectYour, children: C == null ? void 0 : C.reportVersions.filter((J) => J.ownerId === N.personalNumber).map((J) => /* @__PURE__ */ a.jsx("option", { value: J.reportVersionId, children: J.name }, J.reportVersionId)) }),
2407
- /* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectSharedWithYou, children: C == null ? void 0 : C.reportVersions.filter((J) => J.isSystem === !1 && J.ownerId !== N.personalNumber).map((J) => /* @__PURE__ */ a.jsx("option", { value: J.reportVersionId, children: `${J.name} [${J.ownerId}]` }, J.reportVersionId)) })
2405
+ /* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectSystem, children: S == null ? void 0 : S.reportVersions.filter((J) => J.isSystem === !0).map((J) => /* @__PURE__ */ a.jsx("option", { value: J.reportVersionId, children: J.name }, J.reportVersionId)) }),
2406
+ /* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectYour, children: S == null ? void 0 : S.reportVersions.filter((J) => J.ownerId === j.personalNumber).map((J) => /* @__PURE__ */ a.jsx("option", { value: J.reportVersionId, children: J.name }, J.reportVersionId)) }),
2407
+ /* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectSharedWithYou, children: S == null ? void 0 : S.reportVersions.filter((J) => J.isSystem === !1 && J.ownerId !== j.personalNumber).map((J) => /* @__PURE__ */ a.jsx("option", { value: J.reportVersionId, children: `${J.name} [${J.ownerId}]` }, J.reportVersionId)) })
2408
2408
  ] }),
2409
2409
  /* @__PURE__ */ a.jsx(dt, { icon: /* @__PURE__ */ a.jsx(Sd, {}), onClick: V, disabled: v === null || (P == null ? void 0 : P.isSystem) || !Z, children: f.save }),
2410
2410
  /* @__PURE__ */ a.jsx(dt, { icon: /* @__PURE__ */ a.jsx(Cd, {}), onClick: q, className: "flex-shrink-0", children: f.saveAs }),
@@ -2415,11 +2415,11 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2415
2415
  ne && !(P != null && P.isSystem) ? /* @__PURE__ */ a.jsx(Ye, { color: "danger", onClick: se, children: f.detach }) : null
2416
2416
  ] })
2417
2417
  ] })
2418
- ] }), children: /* @__PURE__ */ a.jsx("div", { className: _("h-100 w-100", A.data && A.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ a.jsx(Wp, { dataSource: A, settings: O, pivotRef: x, enabled: A.data && A.data.length > 0, roomPasportization: p, localization: o, licenseKey: s, hyperlinkColumn: d }) }) }),
2418
+ ] }), children: /* @__PURE__ */ a.jsx("div", { className: _("h-100 w-100", A.data && A.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ a.jsx(Wp, { dataSource: A, settings: O, pivotRef: y, enabled: A.data && A.data.length > 0, roomPasportization: p, localization: o, licenseKey: s, hyperlinkColumn: d }) }) }),
2419
2419
  P !== null ? /* @__PURE__ */ a.jsx(
2420
2420
  Yp,
2421
2421
  {
2422
- isOpen: j,
2422
+ isOpen: N,
2423
2423
  onHide: () => w(!1),
2424
2424
  usersData: P.users ?? null,
2425
2425
  setReportVersion: z,
@@ -2483,31 +2483,31 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2483
2483
  apiDelete: "/messageBoard/"
2484
2484
  }, fN = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: n = na.apiGet, apiDelete: r = na.apiDelete } = na, getIcon: i, getLinksTo: o }) => {
2485
2485
  const l = Ke(), [c, u] = B([]), [d, p] = B(!1), [f, m] = B(!1), [g, h] = B(!1), b = R(async () => {
2486
- m(!0), await l.get(n).then(({ data: x }) => {
2487
- u(x), p(!0), m(!1);
2486
+ m(!0), await l.get(n).then(({ data: y }) => {
2487
+ u(y), p(!0), m(!1);
2488
2488
  }).catch(() => {
2489
2489
  u([]), m(!1);
2490
2490
  });
2491
- }, [n, l]), v = R(async (x) => l.delete(`${r}${x}`).then(() => !0).catch(() => !1), [r, l]), y = R((x) => {
2492
- v(x).then((N) => {
2493
- N && u(c.filter((C) => C.id !== x));
2491
+ }, [n, l]), v = R(async (y) => l.delete(`${r}${y}`).then(() => !0).catch(() => !1), [r, l]), x = R((y) => {
2492
+ v(y).then((j) => {
2493
+ j && u(c.filter((S) => S.id !== y));
2494
2494
  });
2495
2495
  }, [v, c]);
2496
2496
  U(() => {
2497
2497
  b();
2498
- const x = setInterval(() => b(), 60 * 1e3);
2498
+ const y = setInterval(() => b(), 60 * 1e3);
2499
2499
  return () => {
2500
- clearInterval(x);
2500
+ clearInterval(y);
2501
2501
  };
2502
2502
  }, [b]);
2503
- const j = c.filter((x) => x.type === "danger").length, w = d ? !1 : f;
2503
+ const N = c.filter((y) => y.type === "danger").length, w = d ? !1 : f;
2504
2504
  return e ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2505
2505
  /* @__PURE__ */ a.jsxs("div", { className: "position-relative", children: [
2506
2506
  /* @__PURE__ */ a.jsx(te, { size: "md", onClick: () => h(!g), children: t }),
2507
- j > 0 && /* @__PURE__ */ a.jsx("div", { className: "badge rounded-pill bg-danger p-1 px-2 text-white", style: { position: "absolute", top: "-6px", right: "-10px", fontSize: "10px" }, children: j })
2507
+ N > 0 && /* @__PURE__ */ a.jsx("div", { className: "badge rounded-pill bg-danger p-1 px-2 text-white", style: { position: "absolute", top: "-6px", right: "-10px", fontSize: "10px" }, children: N })
2508
2508
  ] }),
2509
- /* @__PURE__ */ a.jsx(Ji, { show: g, onHide: () => h(!1), placement: "end", children: /* @__PURE__ */ a.jsx(Ji.Body, { children: /* @__PURE__ */ a.jsx(po, { messages: c, isLoading: w, onDeleteMessage: y, onClickMessage: () => h(!1), getIcon: i, getLinksTo: o }) }) })
2510
- ] }) : /* @__PURE__ */ a.jsx(po, { messages: c, isLoading: w, onDeleteMessage: y, getIcon: i, getLinksTo: o });
2509
+ /* @__PURE__ */ a.jsx(Ji, { show: g, onHide: () => h(!1), placement: "end", children: /* @__PURE__ */ a.jsx(Ji.Body, { children: /* @__PURE__ */ a.jsx(po, { messages: c, isLoading: w, onDeleteMessage: x, onClickMessage: () => h(!1), getIcon: i, getLinksTo: o }) }) })
2510
+ ] }) : /* @__PURE__ */ a.jsx(po, { messages: c, isLoading: w, onDeleteMessage: x, getIcon: i, getLinksTo: o });
2511
2511
  }, Zp = "_tab-panel_d8l8q_1", ef = "_full-height-no-overflow_d8l8q_5", tf = "_disabled_d8l8q_12", ra = {
2512
2512
  "tab-panel": "_tab-panel_d8l8q_1",
2513
2513
  tabPanel: Zp,
@@ -2775,20 +2775,20 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2775
2775
  ] }) });
2776
2776
  }, bN = ({ kinds: e, targetSystem: t, reloadActions: n, reloadHistory: r, reloadRoles: i, onRemoveTarget: o, onPostTarget: s, onTemplateEdit: l, EmployeePicker: c }) => {
2777
2777
  var q, H, W;
2778
- const { texts: { notifCentrum: u }, ProjectIconComponent: d } = $(X), { confirm: p } = St(), [f, m] = B(null), [g, h] = B(null), [b, v] = B(!1), [y, j] = B(null), [w, x] = $n("notif-kind-id", null);
2778
+ const { texts: { notifCentrum: u }, ProjectIconComponent: d } = $(X), { confirm: p } = St(), [f, m] = B(null), [g, h] = B(null), [b, v] = B(!1), [x, N] = B(null), [w, y] = $n("notif-kind-id", null);
2779
2779
  U(() => {
2780
2780
  var A;
2781
- e.length > 0 ? x(((A = e.at(0)) == null ? void 0 : A.id) ?? null) : x(null);
2782
- }, [e, x]);
2783
- const [N, C] = B([]);
2781
+ e.length > 0 ? y(((A = e.at(0)) == null ? void 0 : A.id) ?? null) : y(null);
2782
+ }, [e, y]);
2783
+ const [j, S] = B([]);
2784
2784
  U(() => {
2785
2785
  w && n(w).then((A) => {
2786
- C(A);
2786
+ S(A);
2787
2787
  }).catch((A) => {
2788
- console.log(A), C([]);
2788
+ console.log(A), S([]);
2789
2789
  });
2790
2790
  }, [n, w]);
2791
- const [E, I] = $n("notif-action-id", ((q = N == null ? void 0 : N.at(0)) == null ? void 0 : q.id) ?? null), [O, T] = B([]);
2791
+ const [E, I] = $n("notif-action-id", ((q = j == null ? void 0 : j.at(0)) == null ? void 0 : q.id) ?? null), [O, T] = B([]);
2792
2792
  U(() => {
2793
2793
  E === null || f === null || r(E, f).then((A) => {
2794
2794
  T(A);
@@ -2796,21 +2796,21 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2796
2796
  console.log(A), T([]);
2797
2797
  });
2798
2798
  }, [n, r, E, w, f]);
2799
- const [M, S] = B([]);
2799
+ const [M, C] = B([]);
2800
2800
  U(() => {
2801
2801
  E !== null && i(E).then((A) => {
2802
- S(A);
2802
+ C(A);
2803
2803
  }).catch((A) => {
2804
- console.log(A), S([]);
2804
+ console.log(A), C([]);
2805
2805
  });
2806
2806
  }, [i, E]);
2807
2807
  const P = k(() => {
2808
2808
  var A;
2809
- return !N || !E ? [] : ((A = N.find((K) => K.id === E)) == null ? void 0 : A.templates) ?? [];
2810
- }, [N, E]), z = R((A, K) => {
2809
+ return !j || !E ? [] : ((A = j.find((K) => K.id === E)) == null ? void 0 : A.templates) ?? [];
2810
+ }, [j, E]), z = R((A, K) => {
2811
2811
  s(A, K).then((Z) => {
2812
- C(N ? [
2813
- ...N.map((ne) => ne.id !== E ? ne : {
2812
+ S(j ? [
2813
+ ...j.map((ne) => ne.id !== E ? ne : {
2814
2814
  ...ne,
2815
2815
  templates: [
2816
2816
  ...ne.templates.map((ve) => ve.id !== f ? ve : { ...ve, targets: [...ve.targets, Z] })
@@ -2818,10 +2818,10 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2818
2818
  })
2819
2819
  ] : []);
2820
2820
  }).catch((Z) => console.log(Z));
2821
- }, [N, s, E, f, C]), F = R((A, K) => {
2821
+ }, [j, s, E, f, S]), F = R((A, K) => {
2822
2822
  f && l(f, A, K).then(() => {
2823
- C(N ? [
2824
- ...N.map((Z) => Z.id !== E ? Z : {
2823
+ S(j ? [
2824
+ ...j.map((Z) => Z.id !== E ? Z : {
2825
2825
  ...Z,
2826
2826
  templates: [
2827
2827
  ...Z.templates.map((ne) => ne.id !== f ? ne : { ...ne, subjectTemplate: A, textTemplate: K })
@@ -2829,21 +2829,21 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2829
2829
  })
2830
2830
  ] : []);
2831
2831
  }).catch((Z) => console.log(Z));
2832
- }, [N, l, E, f]), V = R(async (A) => {
2833
- await p(u.confirmTargetDelete) && o(A).then(() => C(N ? [
2834
- ...N.map((K) => K.id !== E ? K : {
2832
+ }, [j, l, E, f]), V = R(async (A) => {
2833
+ await p(u.confirmTargetDelete) && o(A).then(() => S(j ? [
2834
+ ...j.map((K) => K.id !== E ? K : {
2835
2835
  ...K,
2836
2836
  templates: [
2837
2837
  ...K.templates.map((Z) => Z.id !== f ? Z : { ...Z, targets: Z.targets.filter((ne) => ne.id !== A) })
2838
2838
  ]
2839
2839
  })
2840
2840
  ] : []));
2841
- }, [N, p, u, o, E, f]);
2841
+ }, [j, p, u, o, E, f]);
2842
2842
  return /* @__PURE__ */ a.jsxs("div", { className: "h-100 overflow-hidden", children: [
2843
2843
  /* @__PURE__ */ a.jsxs("div", { className: "d-flex justify-content-between align-items-center mb-2", children: [
2844
2844
  /* @__PURE__ */ a.jsxs("div", { className: "row w-100", children: [
2845
- /* @__PURE__ */ a.jsx("div", { className: "col-2", children: /* @__PURE__ */ a.jsx(ft, { label: u.kind, size: "sm", noEmptyOption: !0, options: ((H = e.filter((A) => (A.targetSystem & t) > 0)) == null ? void 0 : H.map((A) => ({ id: A.id, name: A.name }))) ?? [], value: w ?? null, onChange: (A) => x(Number(A)), dropdownWidth: 200 }) }),
2846
- /* @__PURE__ */ a.jsx("div", { className: "col-3", children: /* @__PURE__ */ a.jsx(ft, { label: u.subkind, size: "sm", noEmptyOption: !0, options: (N == null ? void 0 : N.map((A) => ({ id: A.id, name: A.name }))) ?? [], value: E ?? null, onChange: (A) => I(Number(A)), dropdownWidth: 250 }) })
2845
+ /* @__PURE__ */ a.jsx("div", { className: "col-2", children: /* @__PURE__ */ a.jsx(ft, { label: u.kind, size: "sm", noEmptyOption: !0, options: ((H = e.filter((A) => (A.targetSystem & t) > 0)) == null ? void 0 : H.map((A) => ({ id: A.id, name: A.name }))) ?? [], value: w ?? null, onChange: (A) => y(Number(A)), dropdownWidth: 200 }) }),
2846
+ /* @__PURE__ */ a.jsx("div", { className: "col-3", children: /* @__PURE__ */ a.jsx(ft, { label: u.subkind, size: "sm", noEmptyOption: !0, options: (j == null ? void 0 : j.map((A) => ({ id: A.id, name: A.name }))) ?? [], value: E ?? null, onChange: (A) => I(Number(A)), dropdownWidth: 250 }) })
2847
2847
  ] }),
2848
2848
  /* @__PURE__ */ a.jsx(Xa, { children: /* @__PURE__ */ a.jsx(Dr, { hideOn: "always", cKey: "template-edit", onClick: () => v(!0), disabled: f === null, icon: /* @__PURE__ */ a.jsx(d, { icon: "edit" }), children: u.editTemplate }) })
2849
2849
  ] }),
@@ -2853,10 +2853,10 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
2853
2853
  }, EmployeePicker: c }) }),
2854
2854
  f && /* @__PURE__ */ a.jsx("div", { className: "h-75 w-75 overflow-hidden border rounded bg-white", children: /* @__PURE__ */ a.jsx("iframe", { title: "notification", className: "w-100 h-100", srcDoc: (g == null ? void 0 : g.message) ?? ((W = P.find((A) => A.id === f)) == null ? void 0 : W.textTemplate) }) }),
2855
2855
  f && /* @__PURE__ */ a.jsx("div", { className: "w-25 h-75 overflow-y-scroll", children: O.length > 0 ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2856
- /* @__PURE__ */ a.jsx(Je, { type: "text", value: y, onChange: (A) => j((A == null ? void 0 : A.toString()) ?? ""), InputContainer: en, label: u.historyLookup, size: "sm", className: "mx-1 mb-1" }),
2856
+ /* @__PURE__ */ a.jsx(Je, { type: "text", value: x, onChange: (A) => N((A == null ? void 0 : A.toString()) ?? ""), InputContainer: en, label: u.historyLookup, size: "sm", className: "mx-1 mb-1" }),
2857
2857
  /* @__PURE__ */ a.jsx("div", { children: O.filter((A) => {
2858
2858
  var K;
2859
- return y ? (K = A.recipients) == null ? void 0 : K.map((Z) => Z.name).join(",").toLocaleLowerCase().includes(y) : A;
2859
+ return x ? (K = A.recipients) == null ? void 0 : K.map((Z) => Z.name).join(",").toLocaleLowerCase().includes(x) : A;
2860
2860
  }).map((A) => {
2861
2861
  var K;
2862
2862
  return /* @__PURE__ */ a.jsxs("div", { role: "button", onClick: () => h(A), className: `d-flex flex-column align-items-center bg-white border rounded w-auto p-2 mx-1 mb-1 ${(g == null ? void 0 : g.id) === A.id ? "border-primary" : ""}`, children: [
@@ -3086,22 +3086,22 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
3086
3086
  r = s;
3087
3087
  }
3088
3088
  }, wN = ({ languageOptions: e, envMode: t, getOtherSettingsUrl: n, downloadXls: r, saveChanges: i, localizationFilesOptions: o, remoteLocalesRoot: s }) => {
3089
- const { texts: { localizations: l }, ProjectIconComponent: c } = $(X), [u, d] = B(1), [p, f] = B(/* @__PURE__ */ new Map()), [m, g] = B(null), [h, b] = B(""), [v, y] = B(/* @__PURE__ */ new Set()), j = R((S) => {
3090
- f(/* @__PURE__ */ new Map()), y(S);
3091
- }, []), w = k(() => e.filter((S) => !v.has(S.id)), [v, e]), x = k(() => {
3089
+ const { texts: { localizations: l }, ProjectIconComponent: c } = $(X), [u, d] = B(1), [p, f] = B(/* @__PURE__ */ new Map()), [m, g] = B(null), [h, b] = B(""), [v, x] = B(/* @__PURE__ */ new Set()), N = R((C) => {
3090
+ f(/* @__PURE__ */ new Map()), x(C);
3091
+ }, []), w = k(() => e.filter((C) => !v.has(C.id)), [v, e]), y = k(() => {
3092
3092
  if (p.size === 0)
3093
3093
  return [];
3094
- const S = /* @__PURE__ */ new Set(), P = (H, W = "") => {
3094
+ const C = /* @__PURE__ */ new Set(), P = (H, W = "") => {
3095
3095
  if (typeof H[1] == "object") {
3096
3096
  Object.entries(H[1]).forEach((A) => P(A, W + H[0] + "."));
3097
3097
  return;
3098
3098
  }
3099
- S.add(W + H[0]);
3099
+ C.add(W + H[0]);
3100
3100
  };
3101
3101
  Array.from(p).forEach((H) => {
3102
3102
  Object.entries(H[1]).forEach((W) => P(W));
3103
3103
  });
3104
- const z = Array.from(S), F = o.find((H) => H.path === m);
3104
+ const z = Array.from(C), F = o.find((H) => H.path === m);
3105
3105
  return ((F == null ? void 0 : F.type) === "report" ? z.filter((H) => {
3106
3106
  const W = H.split(".");
3107
3107
  return W[W.length - 1] === "caption";
@@ -3115,26 +3115,26 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
3115
3115
  ];
3116
3116
  }))
3117
3117
  }));
3118
- }, [p, o, m, v]), N = k(() => x.filter((S) => qe(S.key, h) || Array.from(S.lngData).some((P) => typeof (P == null ? void 0 : P[1]) != "string" ? !1 : qe((P == null ? void 0 : P[1]) ?? "", h))), [h, x]), C = k(() => Math.ceil(N.length / dr), [N.length]), E = R((S) => {
3119
- S !== null && d(() => Math.max(1, Math.min(S, C)));
3120
- }, [C]), I = R(async () => {
3118
+ }, [p, o, m, v]), j = k(() => y.filter((C) => qe(C.key, h) || Array.from(C.lngData).some((P) => typeof (P == null ? void 0 : P[1]) != "string" ? !1 : qe((P == null ? void 0 : P[1]) ?? "", h))), [h, y]), S = k(() => Math.ceil(j.length / dr), [j.length]), E = R((C) => {
3119
+ C !== null && d(() => Math.max(1, Math.min(C, S)));
3120
+ }, [S]), I = R(async () => {
3121
3121
  if (m === null)
3122
3122
  return;
3123
- const S = Array.from(v).map((z) => (async () => {
3123
+ const C = Array.from(v).map((z) => (async () => {
3124
3124
  const F = await Ed.get(
3125
3125
  `${s}${m == null ? void 0 : m.replace("{{lng}}", z)}&v=${(/* @__PURE__ */ new Date()).getTime()}`,
3126
3126
  // &v to not hit browser cache
3127
3127
  { responseType: "json" }
3128
3128
  );
3129
3129
  return [z, F.data];
3130
- })()), P = await Promise.allSettled(S);
3130
+ })()), P = await Promise.allSettled(C);
3131
3131
  f(new Map(P.map((z) => z.status === "fulfilled" ? z.value : ["", {}])));
3132
3132
  }, [s, m, v]), O = R(async () => {
3133
3133
  I();
3134
3134
  }, [I]), T = k(() => w.length > 0, [w.length]), M = k(() => v.size + 1 + (T ? 1 : 0), [T, v.size]);
3135
3135
  return U(() => {
3136
3136
  E(u);
3137
- }, [E, u, N]), U(() => {
3137
+ }, [E, u, j]), U(() => {
3138
3138
  I();
3139
3139
  }, [I]), s === void 0 ? /* @__PURE__ */ a.jsx(Nt, { children: /* @__PURE__ */ a.jsxs(et, { variant: "danger", className: "fw-bold", children: [
3140
3140
  l.cantRunLocalizationSettings,
@@ -3146,13 +3146,13 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
3146
3146
  "--adding-column": T ? 1 : 0
3147
3147
  }, children: [
3148
3148
  /* @__PURE__ */ a.jsxs("div", { className: _($e.tableFullWidth, "d-flex align-items-center justify-content-between gap-2 px-2 mt-1"), children: [
3149
- /* @__PURE__ */ a.jsx(ft, { options: o.map((S) => ({
3150
- id: S.path,
3151
- name: S.nameTranslationKey
3152
- })), value: m, onChange: (S) => typeof S != "number" ? g(S) : null, size: "sm", label: l.localizationFile, className: $e.fileSelect, noSortOptions: !0 }),
3149
+ /* @__PURE__ */ a.jsx(ft, { options: o.map((C) => ({
3150
+ id: C.path,
3151
+ name: C.nameTranslationKey
3152
+ })), value: m, onChange: (C) => typeof C != "number" ? g(C) : null, size: "sm", label: l.localizationFile, className: $e.fileSelect, noSortOptions: !0 }),
3153
3153
  /* @__PURE__ */ a.jsxs("div", { className: _($e.searchBox, "d-flex align-items-center gap-2 border rounded"), children: [
3154
3154
  /* @__PURE__ */ a.jsx(c, { icon: "search", className: "text-muted", size: 18, iconProps: { className: "mt- me-n4" } }),
3155
- /* @__PURE__ */ a.jsx(Je, { type: "text", value: h, onChange: (S) => b(typeof S == "string" ? S : ""), size: "sm", showClearIcon: h !== "", withoutLabel: !0, placeholder: "vyhledávat...", className: "placeholder-muted bg-transparent border-0 my-0 py-0 w-100" })
3155
+ /* @__PURE__ */ a.jsx(Je, { type: "text", value: h, onChange: (C) => b(typeof C == "string" ? C : ""), size: "sm", showClearIcon: h !== "", withoutLabel: !0, placeholder: "vyhledávat...", className: "placeholder-muted bg-transparent border-0 my-0 py-0 w-100" })
3156
3156
  ] }),
3157
3157
  /* @__PURE__ */ a.jsxs(Xa, { children: [
3158
3158
  /* @__PURE__ */ a.jsx(Dr, { cKey: "export", hideOn: "always", onClick: r, icon: /* @__PURE__ */ a.jsx(Id, { fileExtension: "xls" }), children: l.xlsExport }),
@@ -3161,22 +3161,22 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
3161
3161
  ] }),
3162
3162
  /* @__PURE__ */ a.jsxs("div", { className: _($e.subgrid, $e.lngSelectRow), children: [
3163
3163
  /* @__PURE__ */ a.jsx(L, { variant: "body", children: l.key }),
3164
- Array.from(v).map((S, P) => /* @__PURE__ */ a.jsx(ft, { options: e.filter((z) => z.id === S || !v.has(z.id)), value: S, onChange: (z) => j((F) => z === null ? (F.delete(S), new Set(F)) : (typeof z == "string" && (F.delete(S), F.add(z)), new Set(F))), size: "sm", label: `${l.language} ${P + 1}`, withoutLabel: !0, InputContainer: Te, className: _($e.lngSelect) }, S)),
3165
- T ? /* @__PURE__ */ a.jsx(ft, { options: w, value: null, onChange: (S) => j((P) => (typeof S == "string" && P.add(S), new Set(P))), size: "sm", label: l.addLanguage, InputContainer: Te, className: _($e.lngSelect, $e.addLng) }) : null
3164
+ Array.from(v).map((C, P) => /* @__PURE__ */ a.jsx(ft, { options: e.filter((z) => z.id === C || !v.has(z.id)), value: C, onChange: (z) => N((F) => z === null ? (F.delete(C), new Set(F)) : (typeof z == "string" && (F.delete(C), F.add(z)), new Set(F))), size: "sm", label: `${l.language} ${P + 1}`, withoutLabel: !0, InputContainer: Te, className: _($e.lngSelect) }, C)),
3165
+ T ? /* @__PURE__ */ a.jsx(ft, { options: w, value: null, onChange: (C) => N((P) => (typeof C == "string" && P.add(C), new Set(P))), size: "sm", label: l.addLanguage, InputContainer: Te, className: _($e.lngSelect, $e.addLng) }) : null
3166
3166
  ] }),
3167
3167
  /* @__PURE__ */ a.jsxs("div", { className: _($e.subgrid, $e.tableBody), children: [
3168
- x.length === 0 || N.length === 0 ? /* @__PURE__ */ a.jsx(et, { variant: "warning", className: _($e.tableFullWidth, $e.emptyTableAlert, "my-n1"), children: x.length === 0 ? l.noDataLoaded : N.length === 0 ? l.noDataFiltered : null }) : null,
3169
- N.slice(dr * (u - 1), dr * u).map((S) => /* @__PURE__ */ a.jsxs("div", { className: _($e.subgrid, $e.tableItem), children: [
3170
- /* @__PURE__ */ a.jsx(L, { variant: "form-label", children: S.key }),
3171
- Array.from(v).map((P) => /* @__PURE__ */ a.jsx(Af, { localizationKey: S.key, lngsData: p, selLng: P, reloadData: O, saveChanges: i }, P))
3172
- ] }, S.key))
3168
+ y.length === 0 || j.length === 0 ? /* @__PURE__ */ a.jsx(et, { variant: "warning", className: _($e.tableFullWidth, $e.emptyTableAlert, "my-n1"), children: y.length === 0 ? l.noDataLoaded : j.length === 0 ? l.noDataFiltered : null }) : null,
3169
+ j.slice(dr * (u - 1), dr * u).map((C) => /* @__PURE__ */ a.jsxs("div", { className: _($e.subgrid, $e.tableItem), children: [
3170
+ /* @__PURE__ */ a.jsx(L, { variant: "form-label", children: C.key }),
3171
+ Array.from(v).map((P) => /* @__PURE__ */ a.jsx(Af, { localizationKey: C.key, lngsData: p, selLng: P, reloadData: O, saveChanges: i }, P))
3172
+ ] }, C.key))
3173
3173
  ] }),
3174
3174
  /* @__PURE__ */ a.jsxs("div", { className: _("d-flex align-items-center justify-content-around gap-3 px-2 py-0", $e.tableFooter), children: [
3175
3175
  /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsxs(L, { variant: "body", children: [
3176
3176
  l.keyCount,
3177
3177
  ":",
3178
3178
  " ",
3179
- /* @__PURE__ */ a.jsx("span", { className: "fw-bold", children: N.length })
3179
+ /* @__PURE__ */ a.jsx("span", { className: "fw-bold", children: j.length })
3180
3180
  ] }) }),
3181
3181
  /* @__PURE__ */ a.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
3182
3182
  /* @__PURE__ */ a.jsxs(L, { variant: "body", children: [
@@ -3188,7 +3188,7 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
3188
3188
  /* @__PURE__ */ a.jsx("div", { style: { width: 30 }, children: /* @__PURE__ */ a.jsx(Fp, { value: u, onChange: E, InputContainer: Te, withoutLabel: !0, size: "sm" }) }),
3189
3189
  /* @__PURE__ */ a.jsxs(L, { variant: "body", children: [
3190
3190
  "/",
3191
- Math.ceil(N.length / dr)
3191
+ Math.ceil(j.length / dr)
3192
3192
  ] }),
3193
3193
  /* @__PURE__ */ a.jsx(te, { size: "sm", onClick: () => E(u + 1), children: /* @__PURE__ */ a.jsx(c, { icon: "plus" }) })
3194
3194
  ] })
@@ -3298,24 +3298,24 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
3298
3298
  }) }) });
3299
3299
  }, jN = ({ searchTypes: e, navigateFunction: t, currentPath: n, homePath: r = "/", className: i, staticAppItems: o, searchEndpointUri: s }) => {
3300
3300
  var w;
3301
- const { texts: { appSearch: l } } = $(X), [c, u] = B(e.length > 0 ? ((w = e.at(0)) == null ? void 0 : w.key) ?? null : null), d = k(() => e.find((x) => x.key === c) ?? null, [e, c]), [p, f] = B(""), [m, g] = Ka(encodeURIComponent(p), 500), { isLoading: h, searchItems: b } = Il(c, m, s, !1, o), [v, y] = B(!1);
3301
+ const { texts: { appSearch: l } } = $(X), [c, u] = B(e.length > 0 ? ((w = e.at(0)) == null ? void 0 : w.key) ?? null : null), d = k(() => e.find((y) => y.key === c) ?? null, [e, c]), [p, f] = B(""), [m, g] = Ka(encodeURIComponent(p), 500), { isLoading: h, searchItems: b } = Il(c, m, s, !1, o), [v, x] = B(!1);
3302
3302
  U(() => {
3303
- (b.length > 0 || h) && y(!0);
3303
+ (b.length > 0 || h) && x(!0);
3304
3304
  }, [b, h]);
3305
- const j = ae(null);
3305
+ const N = ae(null);
3306
3306
  return U(() => {
3307
- var x;
3308
- f(""), n === r && ((x = j.current) == null || x.focus());
3309
- }, [n, r]), /* @__PURE__ */ a.jsx(be, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: (x) => {
3310
- x.preventDefault(), x.stopPropagation(), g.flush(), y(!1), m.length > 2 && t(`/search?query=${m}${d && d.key && `&type=${d == null ? void 0 : d.key}`}`);
3307
+ var y;
3308
+ f(""), n === r && ((y = N.current) == null || y.focus());
3309
+ }, [n, r]), /* @__PURE__ */ a.jsx(be, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: (y) => {
3310
+ y.preventDefault(), y.stopPropagation(), g.flush(), x(!1), m.length > 2 && t(`/search?query=${m}${d && d.key && `&type=${d == null ? void 0 : d.key}`}`);
3311
3311
  }, children: /* @__PURE__ */ a.jsxs(wr, { className: _($t.inputGroup, i), children: [
3312
3312
  /* @__PURE__ */ a.jsx(wr.Text, { className: _("p-1 rounded", $t.inputGroupText, $t.left), children: /* @__PURE__ */ a.jsx(Qf, { searchTypes: e, selectedType: d, setSelectedType: u }) }),
3313
- /* @__PURE__ */ a.jsx(be.Control, { ref: j, placeholder: l.searchPlaceholder, type: "text", size: "sm", className: _("luminus-app-search-input", $t.input), value: p, onChange: (x) => {
3314
- var N;
3315
- return f(((N = x.target) == null ? void 0 : N.value) ?? "");
3316
- }, onFocus: () => b.length > 0 && y(!0) }),
3313
+ /* @__PURE__ */ a.jsx(be.Control, { ref: N, placeholder: l.searchPlaceholder, type: "text", size: "sm", className: _("luminus-app-search-input", $t.input), value: p, onChange: (y) => {
3314
+ var j;
3315
+ return f(((j = y.target) == null ? void 0 : j.value) ?? "");
3316
+ }, onFocus: () => b.length > 0 && x(!0) }),
3317
3317
  /* @__PURE__ */ a.jsx(wr.Text, { className: _("p-0 rounded", $t.inputGroupText, $t.right), children: /* @__PURE__ */ a.jsx("button", { type: "submit", className: _("text-primary", $t.submitButton), children: /* @__PURE__ */ a.jsx(Td, {}) }) }),
3318
- /* @__PURE__ */ a.jsx(sm, { query: m, searchTypes: e, show: v, onCancel: () => y(!1), groups: b, isLoading: h })
3318
+ /* @__PURE__ */ a.jsx(sm, { query: m, searchTypes: e, show: v, onCancel: () => x(!1), groups: b, isLoading: h })
3319
3319
  ] }) });
3320
3320
  }, lm = ({ item: e, searchTypes: t }) => {
3321
3321
  const { ProjectIconComponent: n } = $(X), r = k(() => t.find((s) => s.key === e.type), [e.type, t]), i = k(() => Cl(e, r, t), [e, r, t]), o = k(() => El(e, r), [e, r]);
@@ -3375,30 +3375,30 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
3375
3375
  apiCreateBackup: "/localStorageSettings",
3376
3376
  apiDeleteBackup: "/localStorageSettings"
3377
3377
  }, SN = ({ apiUrls: { apiGetBackups: e = ur.apiGetBackups, apiCreateBackup: t = ur.apiCreateBackup, apiDeleteBackup: n = ur.apiDeleteBackup } = ur }) => {
3378
- const { ProjectIconComponent: r, texts: { userSettings: i } } = $(X), { confirm: o } = St(), s = Ke(), { startLoading: l, stopLoading: c } = $(xt), { addNotification: u } = nn(), [d, p] = B(!1), { data: f, setData: m, reloadData: g } = Be(e), h = R(async (y) => (l("localStorageSettingDelete"), s.delete(`${n}/${y}`).then(() => !0).catch(() => !1).finally(() => c("localStorageSettingDelete"))), [s, n, l, c]), b = R(async (y) => {
3379
- await o(i.localStorageDeleteBackupConfirm) && await h(y) && (u(i.localStorageDeleteBackupSuccess, "success"), m((j) => (j == null ? void 0 : j.filter((w) => w.id !== y)) ?? null));
3380
- }, [o, i, h, u, m]), v = R(async (y) => {
3381
- y.setting && await o(i.localStorageLoadBackup) && (Nu(y.setting) ? u(i.localStorageLoadBackupSuccess, "success") : u(i.localStorageLoadBackupError, "danger"));
3378
+ const { ProjectIconComponent: r, texts: { userSettings: i } } = $(X), { confirm: o } = St(), s = Ke(), { startLoading: l, stopLoading: c } = $(xt), { addNotification: u } = nn(), [d, p] = B(!1), { data: f, setData: m, reloadData: g } = Be(e), h = R(async (x) => (l("localStorageSettingDelete"), s.delete(`${n}/${x}`).then(() => !0).catch(() => !1).finally(() => c("localStorageSettingDelete"))), [s, n, l, c]), b = R(async (x) => {
3379
+ await o(i.localStorageDeleteBackupConfirm) && await h(x) && (u(i.localStorageDeleteBackupSuccess, "success"), m((N) => (N == null ? void 0 : N.filter((w) => w.id !== x)) ?? null));
3380
+ }, [o, i, h, u, m]), v = R(async (x) => {
3381
+ x.setting && await o(i.localStorageLoadBackup) && (Nu(x.setting) ? u(i.localStorageLoadBackupSuccess, "success") : u(i.localStorageLoadBackupError, "danger"));
3382
3382
  }, [o, i, u]);
3383
3383
  return /* @__PURE__ */ a.jsxs(Qt, { collapsible: !0, title: i.localStorage, defaultOpen: !0, children: [
3384
3384
  /* @__PURE__ */ a.jsx(dt, { className: "mb-2", onClick: () => p(!0), children: i.localStorageCreateBackup }),
3385
- f && f.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: "list-group", children: f.map((y, j) => /* @__PURE__ */ a.jsxs(
3385
+ f && f.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: "list-group", children: f.map((x, N) => /* @__PURE__ */ a.jsxs(
3386
3386
  "div",
3387
3387
  {
3388
3388
  role: "button",
3389
3389
  className: "list-group-item list-group-item-action d-flex justify-content-between align-items-center",
3390
- onClick: () => v(y),
3390
+ onClick: () => v(x),
3391
3391
  children: [
3392
- /* @__PURE__ */ a.jsx(L, { variant: "body2", children: y.name }),
3392
+ /* @__PURE__ */ a.jsx(L, { variant: "body2", children: x.name }),
3393
3393
  /* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center gap-3", children: [
3394
- /* @__PURE__ */ a.jsx(L, { variant: "body2", className: "text-muted", children: y.date ? gn(y.date) : "" }),
3394
+ /* @__PURE__ */ a.jsx(L, { variant: "body2", className: "text-muted", children: x.date ? gn(x.date) : "" }),
3395
3395
  /* @__PURE__ */ a.jsx(te, { size: "sm", color: "danger", onClick: (w) => {
3396
- w.stopPropagation(), b(y.id);
3396
+ w.stopPropagation(), b(x.id);
3397
3397
  }, children: /* @__PURE__ */ a.jsx(r, { icon: "delete" }) })
3398
3398
  ] })
3399
3399
  ]
3400
3400
  },
3401
- j
3401
+ N
3402
3402
  )) }) : f ? /* @__PURE__ */ a.jsx(et, { variant: "secondary", size: "sm", children: i.localStorageNoBackups }) : null,
3403
3403
  /* @__PURE__ */ a.jsx(cm, { show: d, handleClose: () => p(!1), onConfirm: () => {
3404
3404
  p(!1), g();
@@ -3494,13 +3494,13 @@ e.label === "", so = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, lo =
3494
3494
  widgets: [...s.widgets, { widgetId: h, fullWidth: !1 }]
3495
3495
  }) : l({
3496
3496
  ...s,
3497
- widgets: ((v = s.widgets) == null ? void 0 : v.map((y, j) => j === g ? { widgetId: h, fullWidth: !1 } : y)) ?? []
3497
+ widgets: ((v = s.widgets) == null ? void 0 : v.map((x, N) => N === g ? { widgetId: h, fullWidth: !1 } : x)) ?? []
3498
3498
  });
3499
3499
  }, [s, l]), u = R((g) => {
3500
3500
  var h, b;
3501
3501
  ((h = s.widgets[g]) == null ? void 0 : h.widgetId) === -1 ? l({
3502
3502
  ...s,
3503
- widgets: ((b = s.widgets) == null ? void 0 : b.filter((v, y) => y !== g)) ?? []
3503
+ widgets: ((b = s.widgets) == null ? void 0 : b.filter((v, x) => x !== g)) ?? []
3504
3504
  }) : c(g, -1);
3505
3505
  }, [s, l, c]), d = R((g) => {
3506
3506
  var h;
@@ -3739,8 +3739,8 @@ function _l(e, t, n) {
3739
3739
  if (c)
3740
3740
  throw new Error(process.env.NODE_ENV === "production" ? We(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
3741
3741
  b = !1, u();
3742
- var y = l.indexOf(h);
3743
- l.splice(y, 1), s = null;
3742
+ var x = l.indexOf(h);
3743
+ l.splice(x, 1), s = null;
3744
3744
  }
3745
3745
  };
3746
3746
  }
@@ -3757,8 +3757,8 @@ function _l(e, t, n) {
3757
3757
  c = !1;
3758
3758
  }
3759
3759
  for (var b = s = l, v = 0; v < b.length; v++) {
3760
- var y = b[v];
3761
- y();
3760
+ var x = b[v];
3761
+ x();
3762
3762
  }
3763
3763
  return h;
3764
3764
  }
@@ -3780,14 +3780,14 @@ function _l(e, t, n) {
3780
3780
  * be used to unsubscribe the observable from the store, and prevent further
3781
3781
  * emission of values from the observable.
3782
3782
  */
3783
- subscribe: function(y) {
3784
- if (typeof y != "object" || y === null)
3785
- throw new Error(process.env.NODE_ENV === "production" ? We(11) : "Expected the observer to be an object. Instead, received: '" + qt(y) + "'");
3786
- function j() {
3787
- y.next && y.next(d());
3783
+ subscribe: function(x) {
3784
+ if (typeof x != "object" || x === null)
3785
+ throw new Error(process.env.NODE_ENV === "production" ? We(11) : "Expected the observer to be an object. Instead, received: '" + qt(x) + "'");
3786
+ function N() {
3787
+ x.next && x.next(d());
3788
3788
  }
3789
- j();
3790
- var w = b(j);
3789
+ N();
3790
+ var w = b(N);
3791
3791
  return {
3792
3792
  unsubscribe: w
3793
3793
  };
@@ -4045,26 +4045,26 @@ function dg() {
4045
4045
  var v = Symbol.for;
4046
4046
  e = v("react.element"), t = v("react.portal"), n = v("react.fragment"), r = v("react.strict_mode"), i = v("react.profiler"), o = v("react.provider"), s = v("react.context"), l = v("react.forward_ref"), c = v("react.suspense"), u = v("react.suspense_list"), d = v("react.memo"), p = v("react.lazy"), f = v("react.block"), m = v("react.server.block"), g = v("react.fundamental"), h = v("react.debug_trace_mode"), b = v("react.legacy_hidden");
4047
4047
  }
4048
- function y(S) {
4049
- if (typeof S == "object" && S !== null) {
4050
- var P = S.$$typeof;
4048
+ function x(C) {
4049
+ if (typeof C == "object" && C !== null) {
4050
+ var P = C.$$typeof;
4051
4051
  switch (P) {
4052
4052
  case e:
4053
- switch (S = S.type, S) {
4053
+ switch (C = C.type, C) {
4054
4054
  case n:
4055
4055
  case i:
4056
4056
  case r:
4057
4057
  case c:
4058
4058
  case u:
4059
- return S;
4059
+ return C;
4060
4060
  default:
4061
- switch (S = S && S.$$typeof, S) {
4061
+ switch (C = C && C.$$typeof, C) {
4062
4062
  case s:
4063
4063
  case l:
4064
4064
  case p:
4065
4065
  case d:
4066
4066
  case o:
4067
- return S;
4067
+ return C;
4068
4068
  default:
4069
4069
  return P;
4070
4070
  }
@@ -4074,36 +4074,36 @@ function dg() {
4074
4074
  }
4075
4075
  }
4076
4076
  }
4077
- var j = o, w = e, x = l, N = n, C = p, E = d, I = t, O = i, T = r, M = c;
4078
- return je.ContextConsumer = s, je.ContextProvider = j, je.Element = w, je.ForwardRef = x, je.Fragment = N, je.Lazy = C, je.Memo = E, je.Portal = I, je.Profiler = O, je.StrictMode = T, je.Suspense = M, je.isAsyncMode = function() {
4077
+ var N = o, w = e, y = l, j = n, S = p, E = d, I = t, O = i, T = r, M = c;
4078
+ return je.ContextConsumer = s, je.ContextProvider = N, je.Element = w, je.ForwardRef = y, je.Fragment = j, je.Lazy = S, je.Memo = E, je.Portal = I, je.Profiler = O, je.StrictMode = T, je.Suspense = M, je.isAsyncMode = function() {
4079
4079
  return !1;
4080
4080
  }, je.isConcurrentMode = function() {
4081
4081
  return !1;
4082
- }, je.isContextConsumer = function(S) {
4083
- return y(S) === s;
4084
- }, je.isContextProvider = function(S) {
4085
- return y(S) === o;
4086
- }, je.isElement = function(S) {
4087
- return typeof S == "object" && S !== null && S.$$typeof === e;
4088
- }, je.isForwardRef = function(S) {
4089
- return y(S) === l;
4090
- }, je.isFragment = function(S) {
4091
- return y(S) === n;
4092
- }, je.isLazy = function(S) {
4093
- return y(S) === p;
4094
- }, je.isMemo = function(S) {
4095
- return y(S) === d;
4096
- }, je.isPortal = function(S) {
4097
- return y(S) === t;
4098
- }, je.isProfiler = function(S) {
4099
- return y(S) === i;
4100
- }, je.isStrictMode = function(S) {
4101
- return y(S) === r;
4102
- }, je.isSuspense = function(S) {
4103
- return y(S) === c;
4104
- }, je.isValidElementType = function(S) {
4105
- return typeof S == "string" || typeof S == "function" || S === n || S === i || S === h || S === r || S === c || S === u || S === b || typeof S == "object" && S !== null && (S.$$typeof === p || S.$$typeof === d || S.$$typeof === o || S.$$typeof === s || S.$$typeof === l || S.$$typeof === g || S.$$typeof === f || S[0] === m);
4106
- }, je.typeOf = y, je;
4082
+ }, je.isContextConsumer = function(C) {
4083
+ return x(C) === s;
4084
+ }, je.isContextProvider = function(C) {
4085
+ return x(C) === o;
4086
+ }, je.isElement = function(C) {
4087
+ return typeof C == "object" && C !== null && C.$$typeof === e;
4088
+ }, je.isForwardRef = function(C) {
4089
+ return x(C) === l;
4090
+ }, je.isFragment = function(C) {
4091
+ return x(C) === n;
4092
+ }, je.isLazy = function(C) {
4093
+ return x(C) === p;
4094
+ }, je.isMemo = function(C) {
4095
+ return x(C) === d;
4096
+ }, je.isPortal = function(C) {
4097
+ return x(C) === t;
4098
+ }, je.isProfiler = function(C) {
4099
+ return x(C) === i;
4100
+ }, je.isStrictMode = function(C) {
4101
+ return x(C) === r;
4102
+ }, je.isSuspense = function(C) {
4103
+ return x(C) === c;
4104
+ }, je.isValidElementType = function(C) {
4105
+ return typeof C == "string" || typeof C == "function" || C === n || C === i || C === h || C === r || C === c || C === u || C === b || typeof C == "object" && C !== null && (C.$$typeof === p || C.$$typeof === d || C.$$typeof === o || C.$$typeof === s || C.$$typeof === l || C.$$typeof === g || C.$$typeof === f || C[0] === m);
4106
+ }, je.typeOf = x, je;
4107
4107
  }
4108
4108
  var Ne = {};
4109
4109
  /** @license React v17.0.2
@@ -4122,9 +4122,9 @@ function ug() {
4122
4122
  var v = Symbol.for;
4123
4123
  e = v("react.element"), t = v("react.portal"), n = v("react.fragment"), r = v("react.strict_mode"), i = v("react.profiler"), o = v("react.provider"), s = v("react.context"), l = v("react.forward_ref"), c = v("react.suspense"), u = v("react.suspense_list"), d = v("react.memo"), p = v("react.lazy"), f = v("react.block"), m = v("react.server.block"), g = v("react.fundamental"), v("react.scope"), v("react.opaque.id"), h = v("react.debug_trace_mode"), v("react.offscreen"), b = v("react.legacy_hidden");
4124
4124
  }
4125
- var y = !1;
4126
- function j(Q) {
4127
- return !!(typeof Q == "string" || typeof Q == "function" || Q === n || Q === i || Q === h || Q === r || Q === c || Q === u || Q === b || y || typeof Q == "object" && Q !== null && (Q.$$typeof === p || Q.$$typeof === d || Q.$$typeof === o || Q.$$typeof === s || Q.$$typeof === l || Q.$$typeof === g || Q.$$typeof === f || Q[0] === m));
4125
+ var x = !1;
4126
+ function N(Q) {
4127
+ return !!(typeof Q == "string" || typeof Q == "function" || Q === n || Q === i || Q === h || Q === r || Q === c || Q === u || Q === b || x || typeof Q == "object" && Q !== null && (Q.$$typeof === p || Q.$$typeof === d || Q.$$typeof === o || Q.$$typeof === s || Q.$$typeof === l || Q.$$typeof === g || Q.$$typeof === f || Q[0] === m));
4128
4128
  }
4129
4129
  function w(Q) {
4130
4130
  if (typeof Q == "object" && Q !== null) {
@@ -4157,7 +4157,7 @@ function ug() {
4157
4157
  }
4158
4158
  }
4159
4159
  }
4160
- var x = s, N = o, C = e, E = l, I = n, O = p, T = d, M = t, S = i, P = r, z = c, F = !1, V = !1;
4160
+ var y = s, j = o, S = e, E = l, I = n, O = p, T = d, M = t, C = i, P = r, z = c, F = !1, V = !1;
4161
4161
  function q(Q) {
4162
4162
  return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
4163
4163
  }
@@ -4197,7 +4197,7 @@ function ug() {
4197
4197
  function me(Q) {
4198
4198
  return w(Q) === c;
4199
4199
  }
4200
- Ne.ContextConsumer = x, Ne.ContextProvider = N, Ne.Element = C, Ne.ForwardRef = E, Ne.Fragment = I, Ne.Lazy = O, Ne.Memo = T, Ne.Portal = M, Ne.Profiler = S, Ne.StrictMode = P, Ne.Suspense = z, Ne.isAsyncMode = q, Ne.isConcurrentMode = H, Ne.isContextConsumer = W, Ne.isContextProvider = A, Ne.isElement = K, Ne.isForwardRef = Z, Ne.isFragment = ne, Ne.isLazy = ve, Ne.isMemo = se, Ne.isPortal = J, Ne.isProfiler = le, Ne.isStrictMode = Ce, Ne.isSuspense = me, Ne.isValidElementType = j, Ne.typeOf = w;
4200
+ Ne.ContextConsumer = y, Ne.ContextProvider = j, Ne.Element = S, Ne.ForwardRef = E, Ne.Fragment = I, Ne.Lazy = O, Ne.Memo = T, Ne.Portal = M, Ne.Profiler = C, Ne.StrictMode = P, Ne.Suspense = z, Ne.isAsyncMode = q, Ne.isConcurrentMode = H, Ne.isContextConsumer = W, Ne.isContextProvider = A, Ne.isElement = K, Ne.isForwardRef = Z, Ne.isFragment = ne, Ne.isLazy = ve, Ne.isMemo = se, Ne.isPortal = J, Ne.isProfiler = le, Ne.isStrictMode = Ce, Ne.isSuspense = me, Ne.isValidElementType = N, Ne.typeOf = w;
4201
4201
  }()), Ne;
4202
4202
  }
4203
4203
  process.env.NODE_ENV === "production" ? Aa.exports = dg() : Aa.exports = ug();
@@ -4227,8 +4227,8 @@ function xg(e, t, n, r, i, o, s, l, c, u) {
4227
4227
  var h = t.getState(), b, v;
4228
4228
  try {
4229
4229
  b = r(h, i.current);
4230
- } catch (y) {
4231
- v = y, p = y;
4230
+ } catch (x) {
4231
+ v = x, p = x;
4232
4232
  }
4233
4233
  v || (p = null), b === o.current ? s.current || c() : (o.current = b, l.current = b, s.current = !0, u({
4234
4234
  type: "STORE_UPDATED",
@@ -4251,9 +4251,9 @@ var yg = function() {
4251
4251
  };
4252
4252
  function wg(e, t) {
4253
4253
  t === void 0 && (t = {});
4254
- var n = t, r = n.getDisplayName, i = r === void 0 ? function(N) {
4255
- return "ConnectAdvanced(" + N + ")";
4256
- } : r, o = n.methodName, s = o === void 0 ? "connectAdvanced" : o, l = n.renderCountProp, c = l === void 0 ? void 0 : l, u = n.shouldHandleStateChanges, d = u === void 0 ? !0 : u, p = n.storeKey, f = p === void 0 ? "store" : p, m = n.withRef, g = m === void 0 ? !1 : m, h = n.forwardRef, b = h === void 0 ? !1 : h, v = n.context, y = v === void 0 ? si : v, j = Sr(n, pg);
4254
+ var n = t, r = n.getDisplayName, i = r === void 0 ? function(j) {
4255
+ return "ConnectAdvanced(" + j + ")";
4256
+ } : r, o = n.methodName, s = o === void 0 ? "connectAdvanced" : o, l = n.renderCountProp, c = l === void 0 ? void 0 : l, u = n.shouldHandleStateChanges, d = u === void 0 ? !0 : u, p = n.storeKey, f = p === void 0 ? "store" : p, m = n.withRef, g = m === void 0 ? !1 : m, h = n.forwardRef, b = h === void 0 ? !1 : h, v = n.context, x = v === void 0 ? si : v, N = Sr(n, pg);
4257
4257
  if (process.env.NODE_ENV !== "production") {
4258
4258
  if (c !== void 0)
4259
4259
  throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");
@@ -4263,11 +4263,11 @@ function wg(e, t) {
4263
4263
  if (f !== "store")
4264
4264
  throw new Error("storeKey has been removed and does not do anything. " + w);
4265
4265
  }
4266
- var x = y;
4267
- return function(C) {
4268
- if (process.env.NODE_ENV !== "production" && !Po.isValidElementType(C))
4269
- throw new Error("You must pass a component to the function returned by " + (s + ". Instead received " + vg(C)));
4270
- var E = C.displayName || C.name || "Component", I = i(E), O = oe({}, j, {
4266
+ var y = x;
4267
+ return function(S) {
4268
+ if (process.env.NODE_ENV !== "production" && !Po.isValidElementType(S))
4269
+ throw new Error("You must pass a component to the function returned by " + (s + ". Instead received " + vg(S)));
4270
+ var E = S.displayName || S.name || "Component", I = i(E), O = oe({}, N, {
4271
4271
  getDisplayName: i,
4272
4272
  methodName: s,
4273
4273
  renderCountProp: c,
@@ -4275,12 +4275,12 @@ function wg(e, t) {
4275
4275
  storeKey: f,
4276
4276
  displayName: I,
4277
4277
  wrappedComponentName: E,
4278
- WrappedComponent: C
4279
- }), T = j.pure;
4278
+ WrappedComponent: S
4279
+ }), T = N.pure;
4280
4280
  function M(V) {
4281
4281
  return e(V.dispatch, O);
4282
4282
  }
4283
- var S = T ? k : function(V) {
4283
+ var C = T ? k : function(V) {
4284
4284
  return V();
4285
4285
  };
4286
4286
  function P(V) {
@@ -4288,8 +4288,8 @@ function wg(e, t) {
4288
4288
  var fe = V.reactReduxForwardedRef, Ve = Sr(V, fg);
4289
4289
  return [V.context, fe, Ve];
4290
4290
  }, [V]), H = q[0], W = q[1], A = q[2], K = k(function() {
4291
- return H && H.Consumer && Po.isContextConsumer(/* @__PURE__ */ de.createElement(H.Consumer, null)) ? H : x;
4292
- }, [H, x]), Z = $(K), ne = !!V.store && !!V.store.getState && !!V.store.dispatch, ve = !!Z && !!Z.store;
4291
+ return H && H.Consumer && Po.isContextConsumer(/* @__PURE__ */ de.createElement(H.Consumer, null)) ? H : y;
4292
+ }, [H, y]), Z = $(K), ne = !!V.store && !!V.store.getState && !!V.store.dispatch, ve = !!Z && !!Z.store;
4293
4293
  if (process.env.NODE_ENV !== "production" && !ne && !ve)
4294
4294
  throw new Error('Could not find "store" in the context of ' + ('"' + I + '". Either wrap the root component in a <Provider>, ') + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + I + " in connect options."));
4295
4295
  var se = ne ? V.store : Z.store, J = k(function() {
@@ -4305,15 +4305,15 @@ function wg(e, t) {
4305
4305
  }, [ne, Z, Ce]), re = lu(hg, mg, yg), pe = re[0], Pe = pe[0], tt = re[1];
4306
4306
  if (Pe && Pe.error)
4307
4307
  throw Pe.error;
4308
- var yt = ae(), Y = ae(A), G = ae(), ie = ae(!1), ge = S(function() {
4308
+ var yt = ae(), Y = ae(A), G = ae(), ie = ae(!1), ge = C(function() {
4309
4309
  return G.current && A === Y.current ? G.current : J(se.getState(), A);
4310
4310
  }, [se, Pe, A]);
4311
4311
  To(bg, [Y, yt, ie, A, ge, G, me]), To(xg, [d, se, Ce, J, Y, yt, ie, G, me, tt], [se, Ce, J]);
4312
4312
  var Ie = k(function() {
4313
- return /* @__PURE__ */ de.createElement(C, oe({}, ge, {
4313
+ return /* @__PURE__ */ de.createElement(S, oe({}, ge, {
4314
4314
  ref: W
4315
4315
  }));
4316
- }, [W, C, ge]), xe = k(function() {
4316
+ }, [W, S, ge]), xe = k(function() {
4317
4317
  return d ? /* @__PURE__ */ de.createElement(K.Provider, {
4318
4318
  value: Q
4319
4319
  }, Ie) : Ie;
@@ -4321,15 +4321,15 @@ function wg(e, t) {
4321
4321
  return xe;
4322
4322
  }
4323
4323
  var z = T ? de.memo(P) : P;
4324
- if (z.WrappedComponent = C, z.displayName = P.displayName = I, b) {
4324
+ if (z.WrappedComponent = S, z.displayName = P.displayName = I, b) {
4325
4325
  var F = de.forwardRef(function(q, H) {
4326
4326
  return /* @__PURE__ */ de.createElement(z, oe({}, q, {
4327
4327
  reactReduxForwardedRef: H
4328
4328
  }));
4329
4329
  });
4330
- return F.displayName = I, F.WrappedComponent = C, Io(F, C);
4330
+ return F.displayName = I, F.WrappedComponent = S, Io(F, S);
4331
4331
  }
4332
- return Io(z, C);
4332
+ return Io(z, S);
4333
4333
  };
4334
4334
  }
4335
4335
  function Ao(e, t) {
@@ -4461,8 +4461,8 @@ function Mg(e, t, n, r) {
4461
4461
  }
4462
4462
  function Fg(e, t, n, r, i) {
4463
4463
  var o = i.areStatesEqual, s = i.areOwnPropsEqual, l = i.areStatePropsEqual, c = !1, u, d, p, f, m;
4464
- function g(j, w) {
4465
- return u = j, d = w, p = e(u, d), f = t(r, d), m = n(p, f, d), c = !0, m;
4464
+ function g(N, w) {
4465
+ return u = N, d = w, p = e(u, d), f = t(r, d), m = n(p, f, d), c = !0, m;
4466
4466
  }
4467
4467
  function h() {
4468
4468
  return p = e(u, d), t.dependsOnOwnProps && (f = t(r, d)), m = n(p, f, d), m;
@@ -4471,15 +4471,15 @@ function Fg(e, t, n, r, i) {
4471
4471
  return e.dependsOnOwnProps && (p = e(u, d)), t.dependsOnOwnProps && (f = t(r, d)), m = n(p, f, d), m;
4472
4472
  }
4473
4473
  function v() {
4474
- var j = e(u, d), w = !l(j, p);
4475
- return p = j, w && (m = n(p, f, d)), m;
4474
+ var N = e(u, d), w = !l(N, p);
4475
+ return p = N, w && (m = n(p, f, d)), m;
4476
4476
  }
4477
- function y(j, w) {
4478
- var x = !s(w, d), N = !o(j, u, w, d);
4479
- return u = j, d = w, x && N ? h() : x ? b() : N ? v() : m;
4477
+ function x(N, w) {
4478
+ var y = !s(w, d), j = !o(N, u, w, d);
4479
+ return u = N, d = w, y && j ? h() : y ? b() : j ? v() : m;
4480
4480
  }
4481
- return function(w, x) {
4482
- return c ? y(w, x) : g(w, x);
4481
+ return function(w, y) {
4482
+ return c ? x(w, y) : g(w, y);
4483
4483
  };
4484
4484
  }
4485
4485
  function Vg(e, t) {
@@ -4505,7 +4505,7 @@ function Ug(e) {
4505
4505
  var t = {}, n = t.connectHOC, r = n === void 0 ? wg : n, i = t.mapStateToPropsFactories, o = i === void 0 ? Og : i, s = t.mapDispatchToPropsFactories, l = s === void 0 ? Eg : s, c = t.mergePropsFactories, u = c === void 0 ? kg : c, d = t.selectorFactory, p = d === void 0 ? Vg : d;
4506
4506
  return function(m, g, h, b) {
4507
4507
  b === void 0 && (b = {});
4508
- var v = b, y = v.pure, j = y === void 0 ? !0 : y, w = v.areStatesEqual, x = w === void 0 ? Gg : w, N = v.areOwnPropsEqual, C = N === void 0 ? la : N, E = v.areStatePropsEqual, I = E === void 0 ? la : E, O = v.areMergedPropsEqual, T = O === void 0 ? la : O, M = Sr(v, $g), S = da(m, o, "mapStateToProps"), P = da(g, l, "mapDispatchToProps"), z = da(h, u, "mergeProps");
4508
+ var v = b, x = v.pure, N = x === void 0 ? !0 : x, w = v.areStatesEqual, y = w === void 0 ? Gg : w, j = v.areOwnPropsEqual, S = j === void 0 ? la : j, E = v.areStatePropsEqual, I = E === void 0 ? la : E, O = v.areMergedPropsEqual, T = O === void 0 ? la : O, M = Sr(v, $g), C = da(m, o, "mapStateToProps"), P = da(g, l, "mapDispatchToProps"), z = da(h, u, "mergeProps");
4509
4509
  return r(p, oe({
4510
4510
  // used in error messages
4511
4511
  methodName: "connect",
@@ -4516,12 +4516,12 @@ function Ug(e) {
4516
4516
  // if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes
4517
4517
  shouldHandleStateChanges: !!m,
4518
4518
  // passed through to selectorFactory
4519
- initMapStateToProps: S,
4519
+ initMapStateToProps: C,
4520
4520
  initMapDispatchToProps: P,
4521
4521
  initMergeProps: z,
4522
- pure: j,
4523
- areStatesEqual: x,
4524
- areOwnPropsEqual: C,
4522
+ pure: N,
4523
+ areStatesEqual: y,
4524
+ areOwnPropsEqual: S,
4525
4525
  areStatePropsEqual: I,
4526
4526
  areMergedPropsEqual: T
4527
4527
  }, M));
@@ -5833,11 +5833,11 @@ function th(e) {
5833
5833
  }
5834
5834
  var nh = function(e) {
5835
5835
  var t = e.pageBorderBoxWithDroppableScroll, n = e.draggable, r = e.destination, i = e.insideDestination, o = e.last, s = e.viewport, l = e.afterCritical, c = r.axis, u = er(r.axis, n.displaceBy), d = u.value, p = t[c.start], f = t[c.end], m = zr(n, i), g = Vt(m, function(b) {
5836
- var v = b.descriptor.id, y = b.page.borderBox.center[c.line], j = kt(v, l), w = lc({
5836
+ var v = b.descriptor.id, x = b.page.borderBox.center[c.line], N = kt(v, l), w = lc({
5837
5837
  displaced: o,
5838
5838
  id: v
5839
5839
  });
5840
- return j ? w ? f <= y : p < y - d : w ? f <= y + d : p < y;
5840
+ return N ? w ? f <= x : p < x - d : w ? f <= x + d : p < x;
5841
5841
  }), h = th({
5842
5842
  draggable: n,
5843
5843
  closest: g,
@@ -5857,11 +5857,11 @@ var nh = function(e) {
5857
5857
  if (!i.isCombineEnabled)
5858
5858
  return null;
5859
5859
  var l = i.axis, c = er(i.axis, t.displaceBy), u = c.value, d = n[l.start], p = n[l.end], f = zr(t, o), m = Vt(f, function(h) {
5860
- var b = h.descriptor.id, v = h.page.borderBox, y = v[l.size], j = y / rh, w = kt(b, s), x = lc({
5860
+ var b = h.descriptor.id, v = h.page.borderBox, x = v[l.size], N = x / rh, w = kt(b, s), y = lc({
5861
5861
  displaced: r.displaced,
5862
5862
  id: b
5863
5863
  });
5864
- return w ? x ? p > v[l.start] + j && p < v[l.end] - j : d > v[l.start] - u + j && d < v[l.end] - u - j : x ? p > v[l.start] + u + j && p < v[l.end] + u - j : d > v[l.start] + j && d < v[l.end] - j;
5864
+ return w ? y ? p > v[l.start] + N && p < v[l.end] - N : d > v[l.start] - u + N && d < v[l.end] - u - N : y ? p > v[l.start] + u + N && p < v[l.end] + u - N : d > v[l.start] + N && d < v[l.end] - N;
5865
5865
  });
5866
5866
  if (!m)
5867
5867
  return null;
@@ -6097,16 +6097,16 @@ var dc = function(e) {
6097
6097
  }, fh = function(e) {
6098
6098
  var t = e.state, n = e.published;
6099
6099
  tr();
6100
- var r = n.modified.map(function(j) {
6101
- var w = t.dimensions.droppables[j.droppableId], x = fi(w, j.scroll);
6102
- return x;
6100
+ var r = n.modified.map(function(N) {
6101
+ var w = t.dimensions.droppables[N.droppableId], y = fi(w, N.scroll);
6102
+ return y;
6103
6103
  }), i = oe({}, t.dimensions.droppables, {}, Kl(r)), o = Xl(ph({
6104
6104
  additions: n.additions,
6105
6105
  updatedDroppables: i,
6106
6106
  viewport: t.viewport
6107
6107
  })), s = oe({}, t.dimensions.draggables, {}, o);
6108
- n.removals.forEach(function(j) {
6109
- delete s[j];
6108
+ n.removals.forEach(function(N) {
6109
+ delete s[N];
6110
6110
  });
6111
6111
  var l = {
6112
6112
  droppables: i,
@@ -6138,14 +6138,14 @@ var dc = function(e) {
6138
6138
  });
6139
6139
  if (t.phase === "COLLECTING")
6140
6140
  return v;
6141
- var y = oe({
6141
+ var x = oe({
6142
6142
  phase: "DROP_PENDING"
6143
6143
  }, v, {
6144
6144
  phase: "DROP_PENDING",
6145
6145
  reason: t.reason,
6146
6146
  isWaiting: !1
6147
6147
  });
6148
- return y;
6148
+ return x;
6149
6149
  }, Ba = function(t) {
6150
6150
  return t.movementMode === "SNAP";
6151
6151
  }, fa = function(t, n, r) {
@@ -6232,10 +6232,10 @@ var Yo = {
6232
6232
  if (e.phase === "DROP_PENDING")
6233
6233
  return e;
6234
6234
  Yt(e) || (process.env.NODE_ENV !== "production" ? D(!1, t.type + " not permitted in phase " + e.phase) : D());
6235
- var y = t.payload.client;
6236
- return At(y, e.current.client.selection) ? e : Bn({
6235
+ var x = t.payload.client;
6236
+ return At(x, e.current.client.selection) ? e : Bn({
6237
6237
  state: e,
6238
- clientSelection: y,
6238
+ clientSelection: x,
6239
6239
  impact: Ba(e) ? e.impact : null
6240
6240
  });
6241
6241
  }
@@ -6243,11 +6243,11 @@ var Yo = {
6243
6243
  if (e.phase === "DROP_PENDING" || e.phase === "COLLECTING")
6244
6244
  return ma(e);
6245
6245
  Yt(e) || (process.env.NODE_ENV !== "production" ? D(!1, t.type + " not permitted in phase " + e.phase) : D());
6246
- var j = t.payload, w = j.id, x = j.newScroll, N = e.dimensions.droppables[w];
6247
- if (!N)
6246
+ var N = t.payload, w = N.id, y = N.newScroll, j = e.dimensions.droppables[w];
6247
+ if (!j)
6248
6248
  return e;
6249
- var C = fi(N, x);
6250
- return fa(e, C, !1);
6249
+ var S = fi(j, y);
6250
+ return fa(e, S, !1);
6251
6251
  }
6252
6252
  if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
6253
6253
  if (e.phase === "DROP_PENDING")
@@ -6265,7 +6265,7 @@ var Yo = {
6265
6265
  if (e.phase === "DROP_PENDING")
6266
6266
  return e;
6267
6267
  Yt(e) || (process.env.NODE_ENV !== "production" ? D(!1, "Attempting to move in an unsupported phase " + e.phase) : D());
6268
- var S = t.payload, P = S.id, z = S.isCombineEnabled, F = e.dimensions.droppables[P];
6268
+ var C = t.payload, P = C.id, z = C.isCombineEnabled, F = e.dimensions.droppables[P];
6269
6269
  F || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot find Droppable[id: " + P + "] to toggle its isCombineEnabled state") : D()), F.isCombineEnabled === z && (process.env.NODE_ENV !== "production" ? D(!1, "Trying to set droppable isCombineEnabled to " + String(z) + `
6270
6270
  but it is already ` + String(F.isCombineEnabled)) : D());
6271
6271
  var V = oe({}, F, {
@@ -6643,34 +6643,34 @@ var Ah = function(e) {
6643
6643
  mode: o.movementMode,
6644
6644
  destination: g,
6645
6645
  combine: h
6646
- }, y = Mh({
6646
+ }, x = Mh({
6647
6647
  impact: f,
6648
6648
  draggable: d,
6649
6649
  dimensions: u,
6650
6650
  viewport: o.viewport,
6651
6651
  afterCritical: o.afterCritical
6652
- }), j = {
6652
+ }), N = {
6653
6653
  critical: o.critical,
6654
6654
  afterCritical: o.afterCritical,
6655
6655
  result: v,
6656
6656
  impact: f
6657
- }, w = !At(o.current.client.offset, y) || !!v.combine;
6657
+ }, w = !At(o.current.client.offset, x) || !!v.combine;
6658
6658
  if (!w) {
6659
6659
  n(ji({
6660
- completed: j
6660
+ completed: N
6661
6661
  }));
6662
6662
  return;
6663
6663
  }
6664
- var x = Lh({
6664
+ var y = Lh({
6665
6665
  current: o.current.client.offset,
6666
- destination: y,
6666
+ destination: x,
6667
6667
  reason: s
6668
- }), N = {
6669
- newHomeClientOffset: y,
6670
- dropDuration: x,
6671
- completed: j
6668
+ }), j = {
6669
+ newHomeClientOffset: x,
6670
+ dropDuration: y,
6671
+ completed: N
6672
6672
  };
6673
- n(_h(N));
6673
+ n(_h(j));
6674
6674
  }
6675
6675
  };
6676
6676
  };
@@ -6843,15 +6843,15 @@ var Uh = function(t) {
6843
6843
  b && (r.lastCritical = f);
6844
6844
  var v = !qh(r.lastLocation, g);
6845
6845
  v && (r.lastLocation = g);
6846
- var y = !Yh(r.lastCombine, h);
6847
- if (y && (r.lastCombine = h), !(!b && !v && !y)) {
6848
- var j = oe({}, pr(f, r.mode), {
6846
+ var x = !Yh(r.lastCombine, h);
6847
+ if (x && (r.lastCombine = h), !(!b && !v && !x)) {
6848
+ var N = oe({}, pr(f, r.mode), {
6849
6849
  combine: h,
6850
6850
  destination: g
6851
6851
  });
6852
6852
  n.add(function() {
6853
6853
  Pn("onDragUpdate", function() {
6854
- return ga(e().onDragUpdate, j, t, jr.onDragUpdate);
6854
+ return ga(e().onDragUpdate, N, t, jr.onDragUpdate);
6855
6855
  });
6856
6856
  });
6857
6857
  }
@@ -7027,13 +7027,13 @@ function sb(e) {
7027
7027
  i = null, tr();
7028
7028
  var d = r, p = d.additions, f = d.removals, m = d.modified, g = Object.keys(p).map(function(v) {
7029
7029
  return t.draggable.getById(v).getDimension(Me);
7030
- }).sort(function(v, y) {
7031
- return v.descriptor.index - y.descriptor.index;
7030
+ }).sort(function(v, x) {
7031
+ return v.descriptor.index - x.descriptor.index;
7032
7032
  }), h = Object.keys(m).map(function(v) {
7033
- var y = t.droppable.getById(v), j = y.callbacks.getScrollWhileDragging();
7033
+ var x = t.droppable.getById(v), N = x.callbacks.getScrollWhileDragging();
7034
7034
  return {
7035
7035
  droppableId: v,
7036
- scroll: j
7036
+ scroll: N
7037
7037
  };
7038
7038
  }), b = {
7039
7039
  additions: g,
@@ -8395,11 +8395,11 @@ function bx(e) {
8395
8395
  sourceEvent: m
8396
8396
  });
8397
8397
  if (h) {
8398
- var b = m.touches[0], v = b.clientX, y = b.clientY, j = {
8398
+ var b = m.touches[0], v = b.clientX, x = b.clientY, N = {
8399
8399
  x: v,
8400
- y
8400
+ y: x
8401
8401
  };
8402
- n.current(), p(h, j);
8402
+ n.current(), p(h, N);
8403
8403
  }
8404
8404
  }
8405
8405
  }
@@ -8594,24 +8594,24 @@ function Px(e) {
8594
8594
  function g() {
8595
8595
  return t.isActive(p);
8596
8596
  }
8597
- function h(N, C) {
8597
+ function h(j, S) {
8598
8598
  mr({
8599
- expected: N,
8599
+ expected: j,
8600
8600
  phase: f,
8601
8601
  isLockActive: g,
8602
8602
  shouldWarn: !0
8603
- }) && r.dispatch(C());
8603
+ }) && r.dispatch(S());
8604
8604
  }
8605
8605
  var b = h.bind(null, "DRAGGING");
8606
- function v(N) {
8607
- function C() {
8606
+ function v(j) {
8607
+ function S() {
8608
8608
  t.release(), f = "COMPLETED";
8609
8609
  }
8610
- f !== "PRE_DRAG" && (C(), f !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot lift in phase " + f) : D())), r.dispatch(vh(N.liftActionArgs)), f = "DRAGGING";
8610
+ f !== "PRE_DRAG" && (S(), f !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot lift in phase " + f) : D())), r.dispatch(vh(j.liftActionArgs)), f = "DRAGGING";
8611
8611
  function E(I, O) {
8612
8612
  if (O === void 0 && (O = {
8613
8613
  shouldBlockNextClick: !1
8614
- }), N.cleanup(), O.shouldBlockNextClick) {
8614
+ }), j.cleanup(), O.shouldBlockNextClick) {
8615
8615
  var T = at(window, [{
8616
8616
  eventName: "click",
8617
8617
  fn: Ox,
@@ -8623,7 +8623,7 @@ function Px(e) {
8623
8623
  }]);
8624
8624
  setTimeout(T);
8625
8625
  }
8626
- C(), r.dispatch(gc({
8626
+ S(), r.dispatch(gc({
8627
8627
  reason: I
8628
8628
  }));
8629
8629
  }
@@ -8643,10 +8643,10 @@ function Px(e) {
8643
8643
  cancel: function(O) {
8644
8644
  return E("CANCEL", O);
8645
8645
  }
8646
- }, N.actions);
8646
+ }, j.actions);
8647
8647
  }
8648
- function y(N) {
8649
- var C = zn(function(I) {
8648
+ function x(j) {
8649
+ var S = zn(function(I) {
8650
8650
  b(function() {
8651
8651
  return mc({
8652
8652
  client: I
@@ -8655,22 +8655,22 @@ function Px(e) {
8655
8655
  }), E = v({
8656
8656
  liftActionArgs: {
8657
8657
  id: o,
8658
- clientSelection: N,
8658
+ clientSelection: j,
8659
8659
  movementMode: "FLUID"
8660
8660
  },
8661
8661
  cleanup: function() {
8662
- return C.cancel();
8662
+ return S.cancel();
8663
8663
  },
8664
8664
  actions: {
8665
- move: C
8665
+ move: S
8666
8666
  }
8667
8667
  });
8668
8668
  return oe({}, E, {
8669
- move: C
8669
+ move: S
8670
8670
  });
8671
8671
  }
8672
- function j() {
8673
- var N = {
8672
+ function N() {
8673
+ var j = {
8674
8674
  moveUp: function() {
8675
8675
  return b(Sh);
8676
8676
  },
@@ -8691,19 +8691,19 @@ function Px(e) {
8691
8691
  movementMode: "SNAP"
8692
8692
  },
8693
8693
  cleanup: Tt,
8694
- actions: N
8694
+ actions: j
8695
8695
  });
8696
8696
  }
8697
8697
  function w() {
8698
- var N = mr({
8698
+ var j = mr({
8699
8699
  expected: "PRE_DRAG",
8700
8700
  phase: f,
8701
8701
  isLockActive: g,
8702
8702
  shouldWarn: !0
8703
8703
  });
8704
- N && t.release();
8704
+ j && t.release();
8705
8705
  }
8706
- var x = {
8706
+ var y = {
8707
8707
  isActive: function() {
8708
8708
  return mr({
8709
8709
  expected: "PRE_DRAG",
@@ -8713,25 +8713,25 @@ function Px(e) {
8713
8713
  });
8714
8714
  },
8715
8715
  shouldRespectForcePress: m,
8716
- fluidLift: y,
8717
- snapLift: j,
8716
+ fluidLift: x,
8717
+ snapLift: N,
8718
8718
  abort: w
8719
8719
  };
8720
- return x;
8720
+ return y;
8721
8721
  }
8722
8722
  var Tx = [cx, fx, bx];
8723
8723
  function Ax(e) {
8724
8724
  var t = e.contextId, n = e.store, r = e.registry, i = e.customSensors, o = e.enableDefaultSensors, s = [].concat(o ? Tx : [], i || []), l = B(function() {
8725
8725
  return Kb();
8726
- })[0], c = ee(function(y, j) {
8727
- y.isDragging && !j.isDragging && l.tryAbandon();
8726
+ })[0], c = ee(function(x, N) {
8727
+ x.isDragging && !N.isDragging && l.tryAbandon();
8728
8728
  }, [l]);
8729
8729
  Ze(function() {
8730
- var y = n.getState(), j = n.subscribe(function() {
8730
+ var x = n.getState(), N = n.subscribe(function() {
8731
8731
  var w = n.getState();
8732
- c(y, w), y = w;
8732
+ c(x, w), x = w;
8733
8733
  });
8734
- return j;
8734
+ return N;
8735
8735
  }, [l, n, c]), Ze(function() {
8736
8736
  return l.tryAbandon;
8737
8737
  }, [l.tryAbandon]);
@@ -8742,21 +8742,21 @@ function Ax(e) {
8742
8742
  store: n,
8743
8743
  draggableId: v
8744
8744
  });
8745
- }, [l, r, n]), d = ee(function(v, y, j) {
8745
+ }, [l, r, n]), d = ee(function(v, x, N) {
8746
8746
  return Px({
8747
8747
  lockAPI: l,
8748
8748
  registry: r,
8749
8749
  contextId: t,
8750
8750
  store: n,
8751
8751
  draggableId: v,
8752
- forceSensorStop: y,
8753
- sourceEvent: j && j.sourceEvent ? j.sourceEvent : null
8752
+ forceSensorStop: x,
8753
+ sourceEvent: N && N.sourceEvent ? N.sourceEvent : null
8754
8754
  });
8755
8755
  }, [t, l, r, n]), p = ee(function(v) {
8756
8756
  return Ix(t, v);
8757
8757
  }, [t]), f = ee(function(v) {
8758
- var y = r.draggable.findById(v);
8759
- return y ? y.options : null;
8758
+ var x = r.draggable.findById(v);
8759
+ return x ? x.options : null;
8760
8760
  }, [r.draggable]), m = ee(function() {
8761
8761
  l.isClaimed() && (l.tryAbandon(), n.getState().phase !== "IDLE" && n.dispatch(wi()));
8762
8762
  }, [l, n]), g = ee(l.isClaimed, [l]), h = he(function() {
@@ -8812,7 +8812,7 @@ function kx(e) {
8812
8812
  }, No({
8813
8813
  move: mc
8814
8814
  }, f)));
8815
- }, [h.scrollDroppable, f]), v = Ab(t), y = he(function() {
8815
+ }, [h.scrollDroppable, f]), v = Ab(t), x = he(function() {
8816
8816
  return ob({
8817
8817
  announce: u,
8818
8818
  autoScroller: b,
@@ -8822,48 +8822,48 @@ function kx(e) {
8822
8822
  styleMarshal: p
8823
8823
  });
8824
8824
  }, [u, b, h, v, c, p]);
8825
- process.env.NODE_ENV !== "production" && s.current && s.current !== y && process.env.NODE_ENV !== "production" && Se("unexpected store change"), s.current = y;
8826
- var j = ee(function() {
8825
+ process.env.NODE_ENV !== "production" && s.current && s.current !== x && process.env.NODE_ENV !== "production" && Se("unexpected store change"), s.current = x;
8826
+ var N = ee(function() {
8827
8827
  var I = An(s), O = I.getState();
8828
8828
  O.phase !== "IDLE" && I.dispatch(wi());
8829
8829
  }, []), w = ee(function() {
8830
8830
  var I = An(s).getState();
8831
8831
  return I.isDragging || I.phase === "DROP_ANIMATING";
8832
- }, []), x = he(function() {
8832
+ }, []), y = he(function() {
8833
8833
  return {
8834
8834
  isDragging: w,
8835
- tryAbort: j
8835
+ tryAbort: N
8836
8836
  };
8837
- }, [w, j]);
8838
- n(x);
8839
- var N = ee(function(I) {
8837
+ }, [w, N]);
8838
+ n(y);
8839
+ var j = ee(function(I) {
8840
8840
  return jc(An(s).getState(), I);
8841
- }, []), C = ee(function() {
8841
+ }, []), S = ee(function() {
8842
8842
  return Yt(An(s).getState());
8843
8843
  }, []), E = he(function() {
8844
8844
  return {
8845
8845
  marshal: h,
8846
8846
  focus: v,
8847
8847
  contextId: t,
8848
- canLift: N,
8849
- isMovementAllowed: C,
8848
+ canLift: j,
8849
+ isMovementAllowed: S,
8850
8850
  dragHandleUsageInstructionsId: d,
8851
8851
  registry: g
8852
8852
  };
8853
- }, [t, h, d, v, N, C, g]);
8853
+ }, [t, h, d, v, j, S, g]);
8854
8854
  return Ax({
8855
8855
  contextId: t,
8856
- store: y,
8856
+ store: x,
8857
8857
  registry: g,
8858
8858
  customSensors: r,
8859
8859
  enableDefaultSensors: e.enableDefaultSensors !== !1
8860
8860
  }), U(function() {
8861
- return j;
8862
- }, [j]), de.createElement(Yr.Provider, {
8861
+ return N;
8862
+ }, [N]), de.createElement(Yr.Provider, {
8863
8863
  value: E
8864
8864
  }, de.createElement(Rl, {
8865
8865
  context: _i,
8866
- store: y
8866
+ store: x
8867
8867
  }, e.children));
8868
8868
  }
8869
8869
  var Bx = 0;
@@ -9059,13 +9059,13 @@ function Qx(e) {
9059
9059
  mode: e.mode
9060
9060
  };
9061
9061
  }, [e.droppableId, e.mode, e.type]), c = ae(l), u = he(function() {
9062
- return Le(function(w, x) {
9062
+ return Le(function(w, y) {
9063
9063
  t.current || (process.env.NODE_ENV !== "production" ? D(!1, "Can only update scroll when dragging") : D());
9064
- var N = {
9064
+ var j = {
9065
9065
  x: w,
9066
- y: x
9066
+ y
9067
9067
  };
9068
- o.updateDroppableScroll(l.id, N);
9068
+ o.updateDroppableScroll(l.id, j);
9069
9069
  });
9070
9070
  }, [l.id, o]), d = ee(function() {
9071
9071
  var w = t.current;
@@ -9076,68 +9076,68 @@ function Qx(e) {
9076
9076
  }, [d, u]), f = he(function() {
9077
9077
  return zn(p);
9078
9078
  }, [p]), m = ee(function() {
9079
- var w = t.current, x = gr(w);
9080
- w && x || (process.env.NODE_ENV !== "production" ? D(!1, "Could not find scroll options while scrolling") : D());
9081
- var N = w.scrollOptions;
9082
- if (N.shouldPublishImmediately) {
9079
+ var w = t.current, y = gr(w);
9080
+ w && y || (process.env.NODE_ENV !== "production" ? D(!1, "Could not find scroll options while scrolling") : D());
9081
+ var j = w.scrollOptions;
9082
+ if (j.shouldPublishImmediately) {
9083
9083
  p();
9084
9084
  return;
9085
9085
  }
9086
9086
  f();
9087
- }, [f, p]), g = ee(function(w, x) {
9087
+ }, [f, p]), g = ee(function(w, y) {
9088
9088
  t.current && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot collect a droppable while a drag is occurring") : D());
9089
- var N = s.current, C = N.getDroppableRef();
9090
- C || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot collect without a droppable ref") : D());
9091
- var E = zx(C), I = {
9092
- ref: C,
9089
+ var j = s.current, S = j.getDroppableRef();
9090
+ S || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot collect without a droppable ref") : D());
9091
+ var E = zx(S), I = {
9092
+ ref: S,
9093
9093
  descriptor: l,
9094
9094
  env: E,
9095
- scrollOptions: x
9095
+ scrollOptions: y
9096
9096
  };
9097
9097
  t.current = I;
9098
9098
  var O = Kx({
9099
- ref: C,
9099
+ ref: S,
9100
9100
  descriptor: l,
9101
9101
  env: E,
9102
9102
  windowScroll: w,
9103
- direction: N.direction,
9104
- isDropDisabled: N.isDropDisabled,
9105
- isCombineEnabled: N.isCombineEnabled,
9106
- shouldClipSubject: !N.ignoreContainerClipping
9103
+ direction: j.direction,
9104
+ isDropDisabled: j.isDropDisabled,
9105
+ isCombineEnabled: j.isCombineEnabled,
9106
+ shouldClipSubject: !j.ignoreContainerClipping
9107
9107
  }), T = E.closestScrollable;
9108
9108
  return T && (T.setAttribute(rs.contextId, n.contextId), T.addEventListener("scroll", m, cs(I.scrollOptions)), process.env.NODE_ENV !== "production" && Hx(T)), O;
9109
9109
  }, [n.contextId, l, m, s]), h = ee(function() {
9110
- var w = t.current, x = gr(w);
9111
- return w && x || (process.env.NODE_ENV !== "production" ? D(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : D()), Va(x);
9110
+ var w = t.current, y = gr(w);
9111
+ return w && y || (process.env.NODE_ENV !== "production" ? D(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : D()), Va(y);
9112
9112
  }, []), b = ee(function() {
9113
9113
  var w = t.current;
9114
9114
  w || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot stop drag when no active drag") : D());
9115
- var x = gr(w);
9116
- t.current = null, x && (f.cancel(), x.removeAttribute(rs.contextId), x.removeEventListener("scroll", m, cs(w.scrollOptions)));
9115
+ var y = gr(w);
9116
+ t.current = null, y && (f.cancel(), y.removeAttribute(rs.contextId), y.removeEventListener("scroll", m, cs(w.scrollOptions)));
9117
9117
  }, [m, f]), v = ee(function(w) {
9118
- var x = t.current;
9119
- x || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot scroll when there is no drag") : D());
9120
- var N = gr(x);
9121
- N || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot scroll a droppable with no closest scrollable") : D()), N.scrollTop += w.y, N.scrollLeft += w.x;
9122
- }, []), y = he(function() {
9118
+ var y = t.current;
9119
+ y || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot scroll when there is no drag") : D());
9120
+ var j = gr(y);
9121
+ j || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot scroll a droppable with no closest scrollable") : D()), j.scrollTop += w.y, j.scrollLeft += w.x;
9122
+ }, []), x = he(function() {
9123
9123
  return {
9124
9124
  getDimensionAndWatchScroll: g,
9125
9125
  getScrollWhileDragging: h,
9126
9126
  dragStopped: b,
9127
9127
  scroll: v
9128
9128
  };
9129
- }, [b, g, h, v]), j = he(function() {
9129
+ }, [b, g, h, v]), N = he(function() {
9130
9130
  return {
9131
9131
  uniqueId: r,
9132
9132
  descriptor: l,
9133
- callbacks: y
9133
+ callbacks: x
9134
9134
  };
9135
- }, [y, l, r]);
9135
+ }, [x, l, r]);
9136
9136
  Ze(function() {
9137
- return c.current = j.descriptor, i.droppable.register(j), function() {
9138
- t.current && (process.env.NODE_ENV !== "production" && Se("Unsupported: changing the droppableId or type of a Droppable during a drag"), b()), i.droppable.unregister(j);
9137
+ return c.current = N.descriptor, i.droppable.register(N), function() {
9138
+ t.current && (process.env.NODE_ENV !== "production" && Se("Unsupported: changing the droppableId or type of a Droppable during a drag"), b()), i.droppable.unregister(N);
9139
9139
  };
9140
- }, [y, l, b, j, o, i.droppable]), Ze(function() {
9140
+ }, [x, l, b, N, o, i.droppable]), Ze(function() {
9141
9141
  t.current && o.updateDroppableIsEnabled(c.current.id, !e.isDropDisabled);
9142
9142
  }, [e.isDropDisabled, o]), Ze(function() {
9143
9143
  t.current && o.updateDroppableIsCombineEnabled(c.current.id, e.isCombineEnabled);
@@ -9412,7 +9412,7 @@ function xy(e) {
9412
9412
  type: u,
9413
9413
  droppableId: d
9414
9414
  };
9415
- }, [e.draggableId, e.index, u, d]), f = e.children, m = e.draggableId, g = e.isEnabled, h = e.shouldRespectForcePress, b = e.canDragInteractiveElements, v = e.isClone, y = e.mapped, j = e.dropAnimationFinished;
9415
+ }, [e.draggableId, e.index, u, d]), f = e.children, m = e.draggableId, g = e.isEnabled, h = e.shouldRespectForcePress, b = e.canDragInteractiveElements, v = e.isClone, x = e.mapped, N = e.dropAnimationFinished;
9416
9416
  if (vy(e, o, r), hy(v), !v) {
9417
9417
  var w = he(function() {
9418
9418
  return {
@@ -9426,7 +9426,7 @@ function xy(e) {
9426
9426
  }, [p, l, r, b, h, g]);
9427
9427
  gy(w);
9428
9428
  }
9429
- var x = he(function() {
9429
+ var y = he(function() {
9430
9430
  return g ? {
9431
9431
  tabIndex: 0,
9432
9432
  role: "button",
@@ -9436,10 +9436,10 @@ function xy(e) {
9436
9436
  draggable: !1,
9437
9437
  onDragStart: by
9438
9438
  } : null;
9439
- }, [o, s, m, g]), N = ee(function(I) {
9440
- y.type === "DRAGGING" && y.dropping && I.propertyName === "transform" && j();
9441
- }, [j, y]), C = he(function() {
9442
- var I = fy(y), O = y.type === "DRAGGING" && y.dropping ? N : null, T = {
9439
+ }, [o, s, m, g]), j = ee(function(I) {
9440
+ x.type === "DRAGGING" && x.dropping && I.propertyName === "transform" && N();
9441
+ }, [N, x]), S = he(function() {
9442
+ var I = fy(x), O = x.type === "DRAGGING" && x.dropping ? j : null, T = {
9443
9443
  innerRef: n,
9444
9444
  draggableProps: {
9445
9445
  "data-rbd-draggable-context-id": o,
@@ -9447,10 +9447,10 @@ function xy(e) {
9447
9447
  style: I,
9448
9448
  onTransitionEnd: O
9449
9449
  },
9450
- dragHandleProps: x
9450
+ dragHandleProps: y
9451
9451
  };
9452
9452
  return T;
9453
- }, [o, x, m, y, N, n]), E = he(function() {
9453
+ }, [o, y, m, x, j, n]), E = he(function() {
9454
9454
  return {
9455
9455
  draggableId: p.id,
9456
9456
  type: p.type,
@@ -9460,7 +9460,7 @@ function xy(e) {
9460
9460
  }
9461
9461
  };
9462
9462
  }, [p.droppableId, p.id, p.index, p.type]);
9463
- return f(C, y.snapshot, E);
9463
+ return f(S, x.snapshot, E);
9464
9464
  }
9465
9465
  var Lc = function(e, t) {
9466
9466
  return e === t;
@@ -9514,12 +9514,12 @@ function jy() {
9514
9514
  var f = o.completed;
9515
9515
  if (f.result.draggableId !== s.draggableId)
9516
9516
  return null;
9517
- var m = s.isClone, g = o.dimensions.draggables[s.draggableId], h = f.result, b = h.mode, v = Mc(h), y = yy(h), j = o.dropDuration, w = {
9518
- duration: j,
9517
+ var m = s.isClone, g = o.dimensions.draggables[s.draggableId], h = f.result, b = h.mode, v = Mc(h), x = yy(h), N = o.dropDuration, w = {
9518
+ duration: N,
9519
9519
  curve: Ni.drop,
9520
9520
  moveTo: o.newHomeClientOffset,
9521
- opacity: y ? Jn.opacity.drop : null,
9522
- scale: y ? Jn.scale.drop : null
9521
+ opacity: x ? Jn.opacity.drop : null,
9522
+ scale: x ? Jn.scale.drop : null
9523
9523
  };
9524
9524
  return {
9525
9525
  mapped: {
@@ -9528,10 +9528,10 @@ function jy() {
9528
9528
  dimension: g,
9529
9529
  dropping: w,
9530
9530
  draggingOver: v,
9531
- combineWith: y,
9531
+ combineWith: x,
9532
9532
  mode: b,
9533
9533
  forceShouldAnimate: null,
9534
- snapshot: t(b, m, v, y, w)
9534
+ snapshot: t(b, m, v, x, w)
9535
9535
  }
9536
9536
  };
9537
9537
  }
@@ -9590,8 +9590,8 @@ function Dy() {
9590
9590
  }
9591
9591
  if (f)
9592
9592
  return r(g);
9593
- var v = u.displacedBy.point, y = e(v.x, v.y);
9594
- return n(y, g, p.shouldAnimate);
9593
+ var v = u.displacedBy.point, x = e(v.x, v.y);
9594
+ return n(x, g, p.shouldAnimate);
9595
9595
  }, o = function(l, c) {
9596
9596
  if (l.isDragging)
9597
9597
  return l.critical.draggable.id === c.draggableId ? null : i(c.draggableId, l.critical.draggable.id, l.impact, l.afterCritical);
@@ -9631,21 +9631,21 @@ function Iy(e) {
9631
9631
  function _y(e) {
9632
9632
  var t = $(Yr);
9633
9633
  t || (process.env.NODE_ENV !== "production" ? D(!1, "Could not find app context") : D());
9634
- var n = t.contextId, r = t.isMovementAllowed, i = ae(null), o = ae(null), s = e.children, l = e.droppableId, c = e.type, u = e.mode, d = e.direction, p = e.ignoreContainerClipping, f = e.isDropDisabled, m = e.isCombineEnabled, g = e.snapshot, h = e.useClone, b = e.updateViewportMaxScroll, v = e.getContainerForClone, y = ee(function() {
9634
+ var n = t.contextId, r = t.isMovementAllowed, i = ae(null), o = ae(null), s = e.children, l = e.droppableId, c = e.type, u = e.mode, d = e.direction, p = e.ignoreContainerClipping, f = e.isDropDisabled, m = e.isCombineEnabled, g = e.snapshot, h = e.useClone, b = e.updateViewportMaxScroll, v = e.getContainerForClone, x = ee(function() {
9635
9635
  return i.current;
9636
- }, []), j = ee(function(M) {
9636
+ }, []), N = ee(function(M) {
9637
9637
  i.current = M;
9638
9638
  }, []), w = ee(function() {
9639
9639
  return o.current;
9640
- }, []), x = ee(function(M) {
9640
+ }, []), y = ee(function(M) {
9641
9641
  o.current = M;
9642
9642
  }, []);
9643
9643
  oy({
9644
9644
  props: e,
9645
- getDroppableRef: y,
9645
+ getDroppableRef: x,
9646
9646
  getPlaceholderRef: w
9647
9647
  });
9648
- var N = ee(function() {
9648
+ var j = ee(function() {
9649
9649
  r() && b({
9650
9650
  maxScroll: wc()
9651
9651
  });
@@ -9658,31 +9658,31 @@ function _y(e) {
9658
9658
  isDropDisabled: f,
9659
9659
  isCombineEnabled: m,
9660
9660
  ignoreContainerClipping: p,
9661
- getDroppableRef: y
9661
+ getDroppableRef: x
9662
9662
  });
9663
- var C = de.createElement(sy, {
9663
+ var S = de.createElement(sy, {
9664
9664
  on: e.placeholder,
9665
9665
  shouldAnimate: e.shouldAnimatePlaceholder
9666
9666
  }, function(M) {
9667
- var S = M.onClose, P = M.data, z = M.animate;
9667
+ var C = M.onClose, P = M.data, z = M.animate;
9668
9668
  return de.createElement(ny, {
9669
9669
  placeholder: P,
9670
- onClose: S,
9671
- innerRef: x,
9670
+ onClose: C,
9671
+ innerRef: y,
9672
9672
  animate: z,
9673
9673
  contextId: n,
9674
- onTransitionEnd: N
9674
+ onTransitionEnd: j
9675
9675
  });
9676
9676
  }), E = he(function() {
9677
9677
  return {
9678
- innerRef: j,
9679
- placeholder: C,
9678
+ innerRef: N,
9679
+ placeholder: S,
9680
9680
  droppableProps: {
9681
9681
  "data-rbd-droppable-id": l,
9682
9682
  "data-rbd-droppable-context-id": n
9683
9683
  }
9684
9684
  };
9685
- }, [n, l, C, j]), I = h ? h.dragging.draggableId : null, O = he(function() {
9685
+ }, [n, l, S, N]), I = h ? h.dragging.draggableId : null, O = he(function() {
9686
9686
  return {
9687
9687
  droppableId: l,
9688
9688
  type: c,
@@ -9692,7 +9692,7 @@ function _y(e) {
9692
9692
  function T() {
9693
9693
  if (!h)
9694
9694
  return null;
9695
- var M = h.dragging, S = h.render, P = de.createElement(Vc, {
9695
+ var M = h.dragging, C = h.render, P = de.createElement(Vc, {
9696
9696
  draggableId: M.draggableId,
9697
9697
  index: M.source.index,
9698
9698
  isClone: !0,
@@ -9700,7 +9700,7 @@ function _y(e) {
9700
9700
  shouldRespectForcePress: !1,
9701
9701
  canDragInteractiveElements: !0
9702
9702
  }, function(z, F) {
9703
- return S(z, F, M);
9703
+ return C(z, F, M);
9704
9704
  });
9705
9705
  return Vn.createPortal(P, v());
9706
9706
  }
@@ -9786,11 +9786,11 @@ var Na = function(t, n) {
9786
9786
  return i(u, p, Mc(b.result) === u, Qe(b.impact) === u, v, f);
9787
9787
  }
9788
9788
  if (l.phase === "IDLE" && l.completed && !l.shouldFlush) {
9789
- var y = l.completed;
9790
- if (!Na(d, y.critical))
9789
+ var x = l.completed;
9790
+ if (!Na(d, x.critical))
9791
9791
  return n;
9792
- var j = Qe(y.impact) === u, w = !!(y.impact.at && y.impact.at.type === "COMBINE"), x = y.critical.droppable.id === u;
9793
- return j ? w ? t : n : x ? t : n;
9792
+ var N = Qe(x.impact) === u, w = !!(x.impact.at && x.impact.at.type === "COMBINE"), y = x.critical.droppable.id === u;
9793
+ return N ? w ? t : n : y ? t : n;
9794
9794
  }
9795
9795
  return n;
9796
9796
  };
@@ -9966,16 +9966,16 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
9966
9966
  U(() => {
9967
9967
  h(n);
9968
9968
  }, [n]);
9969
- const [b, v] = B(r), y = g.at(b), j = b > 0, w = b < g.length - 1;
9969
+ const [b, v] = B(r), x = g.at(b), N = b > 0, w = b < g.length - 1;
9970
9970
  U(() => {
9971
9971
  e && v(r);
9972
9972
  }, [r, e]), U(() => {
9973
9973
  b >= g.length && v(g.length - 1);
9974
9974
  }, [g, b]);
9975
- const x = R((I) => {
9975
+ const y = R((I) => {
9976
9976
  switch (I.key) {
9977
9977
  case "ArrowLeft":
9978
- I.stopPropagation(), j && v((O) => O - 1);
9978
+ I.stopPropagation(), N && v((O) => O - 1);
9979
9979
  break;
9980
9980
  case "ArrowRight":
9981
9981
  I.stopPropagation(), w && v((O) => O + 1);
@@ -9984,22 +9984,22 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
9984
9984
  I.stopPropagation(), t();
9985
9985
  break;
9986
9986
  }
9987
- }, [w, j, t]), N = (I, O) => {
9987
+ }, [w, N, t]), j = (I, O) => {
9988
9988
  const T = Array.from(g), [M] = T.splice(I, 1);
9989
9989
  return T.splice(O, 0, M), T;
9990
- }, C = (I) => {
9990
+ }, S = (I) => {
9991
9991
  if (!I.destination)
9992
9992
  return;
9993
- const O = N(I.source.index, I.destination.index);
9993
+ const O = j(I.source.index, I.destination.index);
9994
9994
  f && f(I.draggableId, I.destination.index), h(O);
9995
9995
  };
9996
- Md(x);
9996
+ Md(y);
9997
9997
  const E = Fd({
9998
9998
  onSwipedLeft: (I) => {
9999
9999
  I.velocity > 0.8 && w && v((O) => O + 1);
10000
10000
  },
10001
10001
  onSwipedRight: (I) => {
10002
- I.velocity > 0.8 && j && v((O) => O - 1);
10002
+ I.velocity > 0.8 && N && v((O) => O - 1);
10003
10003
  },
10004
10004
  delta: 100
10005
10005
  });
@@ -10013,14 +10013,14 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10013
10013
  s && /* @__PURE__ */ a.jsx($s, { accept: ".jpg,.jpeg,.png", onUpload: (I) => {
10014
10014
  I.length > 0 && s(Array.from(I));
10015
10015
  }, icon: /* @__PURE__ */ a.jsx(Gs, { style: { fontSize: 18 } }), multiple: !0, className: "me-1 me-lg-3", children: i ?? null }),
10016
- /* @__PURE__ */ a.jsx(Xa, { children: y && (l == null ? void 0 : l.map(({ label: I, onClick: O, ...T }, M) => /* @__PURE__ */ a.jsx(
10016
+ /* @__PURE__ */ a.jsx(Xa, { children: x && (l == null ? void 0 : l.map(({ label: I, onClick: O, ...T }, M) => /* @__PURE__ */ a.jsx(
10017
10017
  Dr,
10018
10018
  {
10019
10019
  hideOn: "sm",
10020
10020
  cKey: `action-${M}`,
10021
- onClick: () => O(y.id),
10021
+ onClick: () => O(x.id),
10022
10022
  ...T,
10023
- children: typeof I == "string" ? I : I(y.id)
10023
+ children: typeof I == "string" ? I : I(x.id)
10024
10024
  },
10025
10025
  `action-${M}`
10026
10026
  ))) })
@@ -10028,21 +10028,21 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10028
10028
  /* @__PURE__ */ a.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ a.jsx(Bt, { style: { fontSize: "32px" } }) })
10029
10029
  ] }),
10030
10030
  g.length === 0 && /* @__PURE__ */ a.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ a.jsx(L, { variant: "body", children: o ?? "No photos available" }) }),
10031
- y && /* @__PURE__ */ a.jsxs("div", { className: Ge.photoContainer, children: [
10032
- /* @__PURE__ */ a.jsx("div", { role: j ? "button" : void 0, className: _("align-items-start", Ge.navButton, Ge.left), onClick: () => j && v((I) => I - 1), children: j && /* @__PURE__ */ a.jsx(Ha, { style: { fontSize: "40px" } }) }),
10033
- /* @__PURE__ */ a.jsx(p, { src: y.lgSrc, alt: y.alt, className: _("rounded", Ge.photo), baseUrl: c, customToken: u, placeholder: d, renderAsDivBg: !0 }),
10031
+ x && /* @__PURE__ */ a.jsxs("div", { className: Ge.photoContainer, children: [
10032
+ /* @__PURE__ */ a.jsx("div", { role: N ? "button" : void 0, className: _("align-items-start", Ge.navButton, Ge.left), onClick: () => N && v((I) => I - 1), children: N && /* @__PURE__ */ a.jsx(Ha, { style: { fontSize: "40px" } }) }),
10033
+ /* @__PURE__ */ a.jsx(p, { src: x.lgSrc, alt: x.alt, className: _("rounded", Ge.photo), baseUrl: c, customToken: u, placeholder: d, renderAsDivBg: !0 }),
10034
10034
  /* @__PURE__ */ a.jsx("div", { role: w ? "button" : void 0, className: _("align-items-end", Ge.navButton, Ge.right), onClick: () => w && v((I) => I + 1), children: w && /* @__PURE__ */ a.jsx(Wa, { style: { fontSize: "40px" } }) })
10035
10035
  ] }),
10036
- /* @__PURE__ */ a.jsx("div", { className: _("d-flex justify-content-center", Ge.photosPreviewContainer), children: /* @__PURE__ */ a.jsx(Mx, { onDragEnd: C, children: /* @__PURE__ */ a.jsx(Uy, { droppableId: "droppable", direction: "horizontal", children: (I) => /* @__PURE__ */ a.jsxs("div", { ...I.droppableProps, ref: I.innerRef, className: Ge.photosPreview, children: [
10036
+ /* @__PURE__ */ a.jsx("div", { className: _("d-flex justify-content-center", Ge.photosPreviewContainer), children: /* @__PURE__ */ a.jsx(Mx, { onDragEnd: S, children: /* @__PURE__ */ a.jsx(Uy, { droppableId: "droppable", direction: "horizontal", children: (I) => /* @__PURE__ */ a.jsxs("div", { ...I.droppableProps, ref: I.innerRef, className: Ge.photosPreview, children: [
10037
10037
  g.map((O, T) => /* @__PURE__ */ a.jsx(Iy, { draggableId: O.id, index: T, isDragDisabled: f === void 0, children: m((M) => {
10038
- var S;
10038
+ var C;
10039
10039
  return /* @__PURE__ */ a.jsxs("div", { ref: M.innerRef, ...M.draggableProps, ...M.dragHandleProps, role: "button", onClick: () => v(T), className: _(Ge.lightboxDraggablePhoto), children: [
10040
10040
  /* @__PURE__ */ a.jsx(p, { role: T !== b ? "button" : void 0, src: O.smSrc, alt: O.alt, className: _("rounded", Ge.photo, {
10041
10041
  [Ge.selected]: T === b
10042
10042
  }), baseUrl: c, customToken: u, placeholder: d }, O.id),
10043
10043
  O.isDefault || O.customIndicators && O.customIndicators.length > 0 ? /* @__PURE__ */ a.jsxs("div", { className: _(Ge.indicators, "gap-1"), children: [
10044
10044
  O.isDefault && /* @__PURE__ */ a.jsx("div", { className: "text-primary", children: /* @__PURE__ */ a.jsx($d, {}) }),
10045
- (S = O.customIndicators) == null ? void 0 : S.map((P, z) => (
10045
+ (C = O.customIndicators) == null ? void 0 : C.map((P, z) => (
10046
10046
  // eslint-disable-next-line react/no-array-index-key
10047
10047
  /* @__PURE__ */ a.jsx("div", { className: P.className, children: P.content }, z)
10048
10048
  ))
@@ -10060,7 +10060,7 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10060
10060
  m(null);
10061
10061
  return;
10062
10062
  }
10063
- const v = e.findIndex((y) => y.isDefault);
10063
+ const v = e.findIndex((x) => x.isDefault);
10064
10064
  m(v > -1 ? v : 0);
10065
10065
  }, [e]), !g && t && u ? /* @__PURE__ */ a.jsx($s, { accept: ".jpg,.jpeg,.png", onUpload: (v) => {
10066
10066
  v.length > 0 && t(Array.from(v));
@@ -10378,19 +10378,19 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10378
10378
  }, v = k(() => l ? e : e.toSorted((O, T) => {
10379
10379
  var M;
10380
10380
  return typeof T[t] == "number" && typeof O[t] == "number" ? O[t] - T[t] : (O[t] ?? "").toString().localeCompare(((M = T[t]) == null ? void 0 : M.toString()) ?? "");
10381
- }), [e, l, t]), y = k(() => {
10381
+ }), [e, l, t]), x = k(() => {
10382
10382
  const O = [];
10383
10383
  return n.forEach((T) => {
10384
10384
  if (i) {
10385
10385
  const M = Math.max(...v.map((P) => P[T.key] ?? -1 / 0));
10386
10386
  if (M === -1 / 0)
10387
10387
  return;
10388
- const S = [];
10388
+ const C = [];
10389
10389
  v.forEach((P) => {
10390
- P[T.key] != null && S.push({ x: P[t], y: M === 0 ? 0 : P[T.key] / M });
10390
+ P[T.key] != null && C.push({ x: P[t], y: M === 0 ? 0 : P[T.key] / M });
10391
10391
  }), O.push({
10392
10392
  id: T.key,
10393
- data: S
10393
+ data: C
10394
10394
  });
10395
10395
  } else
10396
10396
  O.push({
@@ -10398,17 +10398,17 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10398
10398
  data: v.map((M) => ({ x: M[t], y: M[T.key] }))
10399
10399
  });
10400
10400
  }), O;
10401
- }, [v, i, t, n]), j = R((O) => {
10401
+ }, [v, i, t, n]), N = R((O) => {
10402
10402
  var T;
10403
10403
  return /* @__PURE__ */ a.jsx(Pw, { data: v, translateKey: r, val: O, unit: ((T = n.find((M) => {
10404
- var S;
10405
- return M.key === ((S = O.point) == null ? void 0 : S.serieId);
10404
+ var C;
10405
+ return M.key === ((C = O.point) == null ? void 0 : C.serieId);
10406
10406
  })) == null ? void 0 : T.unit) ?? c ?? void 0 });
10407
- }, [v, r, c, n]), w = k(() => Math.min(...e.map((O) => O[t] ?? 1 / 0)), [e, t]), x = k(() => Math.max(...e.map((O) => O[t] ?? -1 / 0)), [e, t]), N = k(() => {
10407
+ }, [v, r, c, n]), w = k(() => Math.min(...e.map((O) => O[t] ?? 1 / 0)), [e, t]), y = k(() => Math.max(...e.map((O) => O[t] ?? -1 / 0)), [e, t]), j = k(() => {
10408
10408
  var O;
10409
10409
  return typeof ((O = e == null ? void 0 : e[0]) == null ? void 0 : O[t]);
10410
- }, [e, t]), C = s ?? (o === "sideContent" ? "bottom" : "right"), E = k(() => !i && o !== "sideContent", [i, o]), I = k(() => [w, x], [x, w]);
10411
- return /* @__PURE__ */ a.jsx("div", { ref: g, className: "d-flex h-100 w-100", children: /* @__PURE__ */ a.jsx(Jd, { onClick: () => h(), data: y, xScale: N === "string" ? { type: "point" } : { type: "linear", min: w }, yScale: { type: "linear", nice: !0 }, axisLeft: E ? {
10410
+ }, [e, t]), S = s ?? (o === "sideContent" ? "bottom" : "right"), E = k(() => !i && o !== "sideContent", [i, o]), I = k(() => [w, y], [y, w]);
10411
+ return /* @__PURE__ */ a.jsx("div", { ref: g, className: "d-flex h-100 w-100", children: /* @__PURE__ */ a.jsx(Jd, { onClick: () => h(), data: x, xScale: j === "string" ? { type: "point" } : { type: "linear", min: w }, yScale: { type: "linear", nice: !0 }, axisLeft: E ? {
10412
10412
  tickSize: 5,
10413
10413
  tickPadding: 5,
10414
10414
  tickRotation: 0,
@@ -10419,7 +10419,7 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10419
10419
  // format: val => `${val * 100} %`,
10420
10420
  } : null, axisBottom: {
10421
10421
  tickValues: o === "sideContent" ? I : void 0
10422
- }, gridYValues: o === "sideContent" ? [0] : void 0, legends: C !== "none" ? [
10422
+ }, gridYValues: o === "sideContent" ? [0] : void 0, legends: S !== "none" ? [
10423
10423
  {
10424
10424
  data: n.map((O, T) => ({
10425
10425
  id: O.key,
@@ -10428,12 +10428,12 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10428
10428
  hidden: f.has(O.key)
10429
10429
  })),
10430
10430
  onClick: b,
10431
- anchor: C,
10432
- direction: C === "right" ? "column" : "row",
10431
+ anchor: S,
10432
+ direction: S === "right" ? "column" : "row",
10433
10433
  toggleSerie: !0,
10434
10434
  justify: !1,
10435
- translateX: C === "right" ? 120 : void 0,
10436
- translateY: C === "right" ? 0 : C === "bottom" ? 44 : void 0,
10435
+ translateX: S === "right" ? 120 : void 0,
10436
+ translateY: S === "right" ? 0 : S === "bottom" ? 44 : void 0,
10437
10437
  itemsSpacing: 0,
10438
10438
  itemDirection: "left-to-right",
10439
10439
  itemWidth: 100,
@@ -10454,10 +10454,10 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10454
10454
  }
10455
10455
  ] : void 0, pointSize: 6, pointColor: { theme: "background" }, pointBorderWidth: 2, pointBorderColor: { from: "serieColor" }, margin: {
10456
10456
  top: 10,
10457
- right: C === "right" ? 130 : 20,
10458
- bottom: C === "bottom" ? 44 : 20,
10457
+ right: S === "right" ? 130 : 20,
10458
+ bottom: S === "bottom" ? 44 : 20,
10459
10459
  left: E ? 50 : 20
10460
- }, colors: d, isInteractive: !0, enableCrosshair: !0, enableTouchCrosshair: !0, useMesh: !0, animate: !1, tooltip: j }) });
10460
+ }, colors: d, isInteractive: !0, enableCrosshair: !0, enableTouchCrosshair: !0, useMesh: !0, animate: !1, tooltip: N }) });
10461
10461
  }, Tw = ({ errors: e, schema: t }) => {
10462
10462
  const n = (r) => {
10463
10463
  var i, o;
@@ -10529,31 +10529,31 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10529
10529
  "special-option": "_special-option_134m5_24",
10530
10530
  specialOption: Kw
10531
10531
  }, bs = 10, xs = ({ value: e, field: t, disabled: n, valuesForSelect: r, onChangeHandler: i, separator: o }) => {
10532
- var b, v, y, j;
10532
+ var b, v, x, N;
10533
10533
  const { texts: { dynamicForms: s } } = $(X), [l, c] = B("");
10534
- r == null || r.sort((w, x) => (w.name ?? "").localeCompare(x.name ?? ""));
10534
+ r == null || r.sort((w, y) => (w.name ?? "").localeCompare(y.name ?? ""));
10535
10535
  const u = k(() => {
10536
10536
  var w;
10537
10537
  return e ? (w = e == null ? void 0 : e.toString()) == null ? void 0 : w.split(o) : [];
10538
- }, [e, o]), d = R((w, x) => {
10539
- const N = w.split(o), C = x ? N.every((E) => u.includes(E)) && u.length === N.length ? null : N : w === "" ? void 0 : u.includes(w) ? u.filter((E) => E !== w) : [...u, w];
10540
- i(C != null && C.length ? C.join(o) : null);
10538
+ }, [e, o]), d = R((w, y) => {
10539
+ const j = w.split(o), S = y ? j.every((E) => u.includes(E)) && u.length === j.length ? null : j : w === "" ? void 0 : u.includes(w) ? u.filter((E) => E !== w) : [...u, w];
10540
+ i(S != null && S.length ? S.join(o) : null);
10541
10541
  }, [i, u, o]), p = k(() => {
10542
10542
  const w = [
10543
10543
  {
10544
- value: r.map((x) => {
10545
- var N;
10546
- return ((N = x.id) == null ? void 0 : N.toString()) ?? "";
10544
+ value: r.map((y) => {
10545
+ var j;
10546
+ return ((j = y.id) == null ? void 0 : j.toString()) ?? "";
10547
10547
  }).join(o),
10548
10548
  label: s.allOptionsMultiselect,
10549
10549
  specialOption: !0
10550
10550
  }
10551
10551
  ];
10552
- return r.forEach((x) => {
10553
- var N, C;
10552
+ return r.forEach((y) => {
10553
+ var j, S;
10554
10554
  w.push({
10555
- value: ((N = x.id) == null ? void 0 : N.toString()) ?? "",
10556
- label: ((C = x.name) == null ? void 0 : C.toString()) ?? "",
10555
+ value: ((j = y.id) == null ? void 0 : j.toString()) ?? "",
10556
+ label: ((S = y.name) == null ? void 0 : S.toString()) ?? "",
10557
10557
  specialOption: !1
10558
10558
  });
10559
10559
  }), w;
@@ -10568,11 +10568,11 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10568
10568
  }, children: u.length > 1 || u.length === 0 ? s.xValuesMultiselect(u.length) : u.length === 1 ? (b = p.find((w) => w.value === u.at(0))) == null ? void 0 : b.label : s.allOptionsMultiselect }),
10569
10569
  /* @__PURE__ */ a.jsxs(In.Menu, { className: _(ln.multiselectMenu), style: {
10570
10570
  left: (v = f.current) == null ? void 0 : v.getBoundingClientRect().left,
10571
- top: (y = f.current) == null ? void 0 : y.getBoundingClientRect().bottom,
10572
- maxWidth: `max(300px, ${(j = f.current) == null ? void 0 : j.getBoundingClientRect().width}px)`
10571
+ top: (x = f.current) == null ? void 0 : x.getBoundingClientRect().bottom,
10572
+ maxWidth: `max(300px, ${(N = f.current) == null ? void 0 : N.getBoundingClientRect().width}px)`
10573
10573
  }, children: [
10574
10574
  p.length >= bs ? /* @__PURE__ */ a.jsx(In.Item, { className: _("rounded", ln.dropdownItem, ln.searchItem), children: /* @__PURE__ */ a.jsx(be.Control, { ref: m, type: "search", size: "sm", value: l, onChange: (w) => c(w.target.value ?? ""), className: "w-100" }) }) : null,
10575
- p.filter((w) => w.specialOption ? !0 : l ? qe(w.value, l) : !0).map((w) => /* @__PURE__ */ a.jsx(In.Item, { onClick: () => !n && d(w.value, w.specialOption), disabled: n, className: _("rounded", ln.dropdownItem, { [ln.specialOption]: w.specialOption }, { "text-muted": n }), children: /* @__PURE__ */ a.jsx(be.Check, { disabled: n, label: w.label, checked: w.specialOption ? u.length === w.value.split(o).length && u.every((x) => w.value.split(o).includes(x)) : u.includes(w.value), onChange: () => {
10575
+ p.filter((w) => w.specialOption ? !0 : l ? qe(w.value, l) : !0).map((w) => /* @__PURE__ */ a.jsx(In.Item, { onClick: () => !n && d(w.value, w.specialOption), disabled: n, className: _("rounded", ln.dropdownItem, { [ln.specialOption]: w.specialOption }, { "text-muted": n }), children: /* @__PURE__ */ a.jsx(be.Check, { disabled: n, label: w.label, checked: w.specialOption ? u.length === w.value.split(o).length && u.every((y) => w.value.split(o).includes(y)) : u.includes(w.value), onChange: () => {
10576
10576
  } }) }, w.value))
10577
10577
  ] })
10578
10578
  ] });
@@ -10591,22 +10591,22 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10591
10591
  case "DT":
10592
10592
  return /* @__PURE__ */ a.jsx(Je, { withoutLabel: !0, InputContainer: ct, className: jt.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (v) => c(n, (v == null ? void 0 : v.toString()) ?? null), disabled: h, showClearIcon: !u, clearValue: d });
10593
10593
  default: {
10594
- const v = p == null ? void 0 : p.find((y) => y.type === e);
10594
+ const v = p == null ? void 0 : p.find((x) => x.type === e);
10595
10595
  return v ? /* @__PURE__ */ a.jsx(v.picker, { className: _(jt.input, jt.longer), value: t ? {
10596
10596
  id: (t == null ? void 0 : t.toString()) ?? null,
10597
- name: ((b = s == null ? void 0 : s.find((y) => {
10598
- var j;
10599
- return ((j = y.id) == null ? void 0 : j.toString()) === (t == null ? void 0 : t.toString());
10597
+ name: ((b = s == null ? void 0 : s.find((x) => {
10598
+ var N;
10599
+ return ((N = x.id) == null ? void 0 : N.toString()) === (t == null ? void 0 : t.toString());
10600
10600
  })) == null ? void 0 : b.name) ?? ""
10601
- } : null, onChange: (y) => {
10602
- var j;
10603
- c(n, (y == null ? void 0 : y.id) ?? null), console.log(y, s == null ? void 0 : s.some((w) => {
10604
- var x, N;
10605
- return ((x = w.id) == null ? void 0 : x.toString()) === ((N = y == null ? void 0 : y.id) == null ? void 0 : N.toString());
10606
- }), l), y && !(s != null && s.some((w) => {
10607
- var x, N;
10608
- return ((x = w.id) == null ? void 0 : x.toString()) === ((N = y == null ? void 0 : y.id) == null ? void 0 : N.toString());
10609
- })) && l && (console.log("adding to values for select"), l({ id: ((j = y.id) == null ? void 0 : j.toString()) ?? "", name: y.name }));
10601
+ } : null, onChange: (x) => {
10602
+ var N;
10603
+ c(n, (x == null ? void 0 : x.id) ?? null), console.log(x, s == null ? void 0 : s.some((w) => {
10604
+ var y, j;
10605
+ return ((y = w.id) == null ? void 0 : y.toString()) === ((j = x == null ? void 0 : x.id) == null ? void 0 : j.toString());
10606
+ }), l), x && !(s != null && s.some((w) => {
10607
+ var y, j;
10608
+ return ((y = w.id) == null ? void 0 : y.toString()) === ((j = x == null ? void 0 : x.id) == null ? void 0 : j.toString());
10609
+ })) && l && (console.log("adding to values for select"), l({ id: ((N = x.id) == null ? void 0 : N.toString()) ?? "", name: x.name }));
10610
10610
  }, disabled: h }) : /* @__PURE__ */ a.jsx("div", { className: "alert alert-warning p-1 m-0", children: /* @__PURE__ */ a.jsxs(L, { variant: "body", children: [
10611
10611
  "Neznámý typ ",
10612
10612
  e
@@ -10630,7 +10630,7 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10630
10630
  t.map((g) => {
10631
10631
  var h, b;
10632
10632
  return /* @__PURE__ */ a.jsx("td", { className: _("table-cell", De.tableCell), children: /* @__PURE__ */ a.jsx(zc, { type: g.type, value: (h = u[g.field ?? ""]) == null ? void 0 : h.value, field: g.field, isReadonly: g.readOnly, isPrimary: e.primaryKey === g.field, valuesForSelect: g.valuesForSelect, addValueToValuesForSelect: (v) => {
10633
- n(t.map((y) => y.field === g.field ? { ...y, valuesForSelect: [...y.valuesForSelect ?? [], v] } : y));
10633
+ n(t.map((x) => x.field === g.field ? { ...x, valuesForSelect: [...x.valuesForSelect ?? [], v] } : x));
10634
10634
  }, onChangeHandler: p, hideClearIcon: !f(u[g.field ?? ""]), clearValue: (b = u[g.field ?? ""].defaultValue) == null ? void 0 : b.toString(), customPickers: s, isMultiChoice: g.multiChoice ?? !1, multiChoiceSeparator: g.multiChoiceSeparator ?? null, disabled: !e.userCanModify }) }, `${e.id}-${g.field}`);
10635
10635
  }),
10636
10636
  /* @__PURE__ */ a.jsxs("td", { className: _("table-cell d-flex gap-1", De.tableCell, De.stickyLast), children: [
@@ -10738,20 +10738,20 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10738
10738
  }, aj = ({ schema: e, items: t, onEditItem: n, onDeleteItem: r, onCreateItem: i, filters: o, setFilter: s, sortByField: l, sortByType: c, setSortBy: u, selectedMaster: d, customPickers: p, appDetail: f }) => {
10739
10739
  const { texts: { dynamicForms: m } } = $(X), [g, h] = B([]);
10740
10740
  return U(() => {
10741
- var b, v, y;
10741
+ var b, v, x;
10742
10742
  h([
10743
- ...((y = (v = (b = e.columns) == null ? void 0 : b.filter((j) => !j.hidden)) == null ? void 0 : v.filter((j) => e.masterReference ? j.field !== e.masterReferenceColumn : !0)) == null ? void 0 : y.map((j) => {
10743
+ ...((x = (v = (b = e.columns) == null ? void 0 : b.filter((N) => !N.hidden)) == null ? void 0 : v.filter((N) => e.masterReference ? N.field !== e.masterReferenceColumn : !0)) == null ? void 0 : x.map((N) => {
10744
10744
  var w;
10745
10745
  return {
10746
- label: j.caption ?? "",
10746
+ label: N.caption ?? "",
10747
10747
  width: 100,
10748
- description: j.description ?? null,
10749
- field: j.field ?? "",
10750
- type: j.type,
10751
- readOnly: j.readOnly,
10752
- valuesForSelect: ((w = j.values) == null ? void 0 : w.filter((x) => j.valuesFilteredByMaster ? x.masterValue === d : !0).map((x) => ({ id: x.id ?? "", name: x.name }))) ?? void 0,
10753
- multiChoice: j.multiChoice ?? !1,
10754
- multiChoiceSeparator: j.multiChoiceSeparator ?? null
10748
+ description: N.description ?? null,
10749
+ field: N.field ?? "",
10750
+ type: N.type,
10751
+ readOnly: N.readOnly,
10752
+ valuesForSelect: ((w = N.values) == null ? void 0 : w.filter((y) => N.valuesFilteredByMaster ? y.masterValue === d : !0).map((y) => ({ id: y.id ?? "", name: y.name }))) ?? void 0,
10753
+ multiChoice: N.multiChoice ?? !1,
10754
+ multiChoiceSeparator: N.multiChoiceSeparator ?? null
10755
10755
  };
10756
10756
  })) ?? []
10757
10757
  ]);
@@ -10789,27 +10789,27 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10789
10789
  apiExportGet: "/dynamicForms/export"
10790
10790
  }, LN = ({ id: e, page: t, setPage: n, filters: r, setFilter: i, sortByField: o, sortByType: s, setSortBy: l, appUrls: { appDetail: c = ws.appDetail } = ws, apiUrls: { apiSchemaGet: u = Wt.apiSchemaGet, apiDataGet: d = Wt.apiDataGet, apiItemPost: p = Wt.apiItemPost, apiItemDelete: f = Wt.apiItemDelete, apiItemCreate: m = Wt.apiItemCreate, apiExportGet: g = Wt.apiExportGet } = Wt, customPickers: h }) => {
10791
10791
  var Ve, ot, st, on, Bi, Li, Mi;
10792
- const { texts: { dynamicForms: b }, ProjectIconComponent: v } = $(X), y = Ke(), { startLoading: j, stopLoading: w } = $(xt), [x, N] = B(null), [C, E] = B(null), [I, O] = B(null), [T, M] = B(null), [S, P] = B(!1), { addNotification: z } = nn(), [F, V] = B([]), { confirm: q } = St(), H = 20, W = H + 1, A = T ? Math.ceil(T.length / H) : 1, K = t ? t > 1 : !1, Z = t ? t < A : !1, ne = t ? (t - 1) * H : 0, ve = t ? t * H : H, se = k(() => T ? T.length > W : !1, [T, W]), J = k(() => se ? (T == null ? void 0 : T.slice(ne, ve)) ?? null : T ?? null, [se, T, ne, ve]), [le, Ce] = Jt("masterId", null, "string"), [me, Q] = B(le);
10792
+ const { texts: { dynamicForms: b }, ProjectIconComponent: v } = $(X), x = Ke(), { startLoading: N, stopLoading: w } = $(xt), [y, j] = B(null), [S, E] = B(null), [I, O] = B(null), [T, M] = B(null), [C, P] = B(!1), { addNotification: z } = nn(), [F, V] = B([]), { confirm: q } = St(), H = 20, W = H + 1, A = T ? Math.ceil(T.length / H) : 1, K = t ? t > 1 : !1, Z = t ? t < A : !1, ne = t ? (t - 1) * H : 0, ve = t ? t * H : H, se = k(() => T ? T.length > W : !1, [T, W]), J = k(() => se ? (T == null ? void 0 : T.slice(ne, ve)) ?? null : T ?? null, [se, T, ne, ve]), [le, Ce] = Jt("masterId", null, "string"), [me, Q] = B(le);
10793
10793
  U(() => {
10794
- N(null), E(null), P(!1), V([]);
10794
+ j(null), E(null), P(!1), V([]);
10795
10795
  }, [e]), U(() => {
10796
10796
  le !== null && (Q(le), Ce(null));
10797
10797
  }, [le, e, Ce]);
10798
10798
  const re = R(async () => {
10799
- j("dynamicFormSchema"), await y.get(`${u}?id=${e}`).then(({ data: ce }) => {
10800
- N(ce), w("dynamicFormSchema");
10799
+ N("dynamicFormSchema"), await x.get(`${u}?id=${e}`).then(({ data: ce }) => {
10800
+ j(ce), w("dynamicFormSchema");
10801
10801
  }).catch(() => w("dynamicFormSchema"));
10802
- }, [y, e, j, w, u]), pe = R(async () => {
10802
+ }, [x, e, N, w, u]), pe = R(async () => {
10803
10803
  var ce;
10804
- if (!(x === null || ((ce = x.id) == null ? void 0 : ce.toString()) !== e)) {
10805
- if (x.masterReference && !me) {
10804
+ if (!(y === null || ((ce = y.id) == null ? void 0 : ce.toString()) !== e)) {
10805
+ if (y.masterReference && !me) {
10806
10806
  E([]);
10807
10807
  return;
10808
10808
  }
10809
- j("dynamicFormData"), await y.get(`${d}?id=${e}&showArchive=${S}${x.masterReference ? `&master=${me}` : ""}`).then(({ data: ye }) => {
10809
+ N("dynamicFormData"), await x.get(`${d}?id=${e}&showArchive=${C}${y.masterReference ? `&master=${me}` : ""}`).then(({ data: ye }) => {
10810
10810
  const Ee = ye.map((we) => {
10811
10811
  var Oe;
10812
- return Object.fromEntries(((Oe = x.columns) == null ? void 0 : Oe.filter((ke) => ke.field).map((ke) => [
10812
+ return Object.fromEntries(((Oe = y.columns) == null ? void 0 : Oe.filter((ke) => ke.field).map((ke) => [
10813
10813
  ke.field,
10814
10814
  { value: we[ke.field ?? ""], defaultValue: we[ke.field ?? ""] }
10815
10815
  ])) ?? []);
@@ -10817,46 +10817,46 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10817
10817
  E(Ee), w("dynamicFormData");
10818
10818
  }).catch(() => w("dynamicFormData"));
10819
10819
  }
10820
- }, [y, e, x, j, w, S, me, d]), Pe = R(async () => {
10820
+ }, [x, e, y, N, w, C, me, d]), Pe = R(async () => {
10821
10821
  var ce;
10822
- x === null || ((ce = x.id) == null ? void 0 : ce.toString()) !== e || x.masterReference && !me || (j("dynamicFormExport"), await y.get(`${g}?id=${e}&showArchive=${S}${x.masterReference ? `&master=${me}` : ""}`, {
10822
+ y === null || ((ce = y.id) == null ? void 0 : ce.toString()) !== e || y.masterReference && !me || (N("dynamicFormExport"), await x.get(`${g}?id=${e}&showArchive=${C}${y.masterReference ? `&master=${me}` : ""}`, {
10823
10823
  responseType: "blob"
10824
10824
  }).then((ye) => Zd(ye, { fallbackName: `export-${e}` })).finally(() => w("dynamicFormExport")));
10825
- }, [y, e, x, j, w, S, me, g]), tt = R(async (ce) => (j("dynamicFormEdit"), y.post(`${p}?id=${e}`, ce).then(() => (w("dynamicFormEdit"), V([]), !0)).catch((ye) => (w("dynamicFormEdit"), V(Jr(ye)), !1))), [y, e, j, w, p]), yt = R(async (ce) => (j("dynamicFormDelete"), y.delete(`${f}?id=${e}&pk=${ce}`).then(() => (w("dynamicFormDelete"), V([]), !0)).catch((ye) => (w("dynamicFormDelete"), V(Jr(ye)), !1))), [y, e, j, w, f]), Y = R(async (ce) => (j("dynamicFormCreate"), y.post(`${m}?id=${e}`, ce).then(({ data: ye }) => (w("dynamicFormCreate"), V([]), ye)).catch((ye) => (w("dynamicFormCreate"), V(Jr(ye)), null))), [y, e, j, w, m]), G = R(async (ce) => {
10826
- x && await tt(x.masterReference ? { ...ce, [x.masterReferenceColumn ?? ""]: me } : ce) && (z(b.editSuccess, "success"), E((ye) => ye && ye.map((Ee) => {
10825
+ }, [x, e, y, N, w, C, me, g]), tt = R(async (ce) => (N("dynamicFormEdit"), x.post(`${p}?id=${e}`, ce).then(() => (w("dynamicFormEdit"), V([]), !0)).catch((ye) => (w("dynamicFormEdit"), V(Jr(ye)), !1))), [x, e, N, w, p]), yt = R(async (ce) => (N("dynamicFormDelete"), x.delete(`${f}?id=${e}&pk=${ce}`).then(() => (w("dynamicFormDelete"), V([]), !0)).catch((ye) => (w("dynamicFormDelete"), V(Jr(ye)), !1))), [x, e, N, w, f]), Y = R(async (ce) => (N("dynamicFormCreate"), x.post(`${m}?id=${e}`, ce).then(({ data: ye }) => (w("dynamicFormCreate"), V([]), ye)).catch((ye) => (w("dynamicFormCreate"), V(Jr(ye)), null))), [x, e, N, w, m]), G = R(async (ce) => {
10826
+ y && await tt(y.masterReference ? { ...ce, [y.masterReferenceColumn ?? ""]: me } : ce) && (z(b.editSuccess, "success"), E((ye) => ye && ye.map((Ee) => {
10827
10827
  var we;
10828
- return ((we = Ee[(x == null ? void 0 : x.primaryKey) ?? ""]) == null ? void 0 : we.value) === ce[(x == null ? void 0 : x.primaryKey) ?? ""] ? hs(ce, x) : Ee;
10828
+ return ((we = Ee[(y == null ? void 0 : y.primaryKey) ?? ""]) == null ? void 0 : we.value) === ce[(y == null ? void 0 : y.primaryKey) ?? ""] ? hs(ce, y) : Ee;
10829
10829
  })));
10830
- }, [z, tt, x, me, b]), ie = R(async (ce) => {
10830
+ }, [z, tt, y, me, b]), ie = R(async (ce) => {
10831
10831
  await q(b.deleteConfirm) && await yt(ce) && (z(b.deleteSuccess, "success"), E((ye) => ye && ye.filter((Ee) => {
10832
10832
  var we;
10833
- return ((we = Ee[(x == null ? void 0 : x.primaryKey) ?? ""]) == null ? void 0 : we.value) !== ce;
10833
+ return ((we = Ee[(y == null ? void 0 : y.primaryKey) ?? ""]) == null ? void 0 : we.value) !== ce;
10834
10834
  })));
10835
- }, [z, yt, b, q, x]), ge = R(async (ce) => {
10836
- if (!x)
10835
+ }, [z, yt, b, q, y]), ge = R(async (ce) => {
10836
+ if (!y)
10837
10837
  return !1;
10838
- const ye = await Y(x.masterReference ? { ...ce, [x.masterReferenceColumn ?? ""]: me } : ce);
10838
+ const ye = await Y(y.masterReference ? { ...ce, [y.masterReferenceColumn ?? ""]: me } : ce);
10839
10839
  if (ye !== null) {
10840
10840
  z(b.createSuccess, "success");
10841
- const Ee = hs(ce, x);
10842
- return Ee[(x == null ? void 0 : x.primaryKey) ?? ""] = { value: ye, defaultValue: ye }, E((we) => [...we ?? [], Ee]), !0;
10841
+ const Ee = hs(ce, y);
10842
+ return Ee[(y == null ? void 0 : y.primaryKey) ?? ""] = { value: ye, defaultValue: ye }, E((we) => [...we ?? [], Ee]), !0;
10843
10843
  }
10844
10844
  return !1;
10845
- }, [z, Y, b, x, me]), Ie = (ce) => {
10845
+ }, [z, Y, b, y, me]), Ie = (ce) => {
10846
10846
  ce > A ? n(A) : ce < 1 && n(1), n(ce);
10847
10847
  }, xe = R(() => {
10848
- if (!C || !x) {
10848
+ if (!S || !y) {
10849
10849
  O(null);
10850
10850
  return;
10851
10851
  }
10852
- const ce = C.filter((ye) => Object.entries(r).every(([Ee, we]) => {
10852
+ const ce = S.filter((ye) => Object.entries(r).every(([Ee, we]) => {
10853
10853
  var Dn, Sn, Cn;
10854
10854
  if (we === null)
10855
10855
  return !0;
10856
10856
  const Oe = (Dn = ye[Ee]) == null ? void 0 : Dn.value;
10857
10857
  if (Oe == null)
10858
10858
  return !1;
10859
- const ke = (Sn = x.columns) == null ? void 0 : Sn.find((ir) => ir.field === Ee), jn = ke == null ? void 0 : ke.type, Nn = (ke == null ? void 0 : ke.values) && ((Cn = ke == null ? void 0 : ke.values) == null ? void 0 : Cn.length) > 0;
10859
+ const ke = (Sn = y.columns) == null ? void 0 : Sn.find((ir) => ir.field === Ee), jn = ke == null ? void 0 : ke.type, Nn = (ke == null ? void 0 : ke.values) && ((Cn = ke == null ? void 0 : ke.values) == null ? void 0 : Cn.length) > 0;
10860
10860
  if (!jn)
10861
10861
  return !1;
10862
10862
  switch (jn) {
@@ -10873,8 +10873,8 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10873
10873
  }
10874
10874
  }));
10875
10875
  O(ce);
10876
- }, [C, r, x]), fe = R(() => {
10877
- if (!I || !x) {
10876
+ }, [S, r, y]), fe = R(() => {
10877
+ if (!I || !y) {
10878
10878
  M([]);
10879
10879
  return;
10880
10880
  }
@@ -10884,7 +10884,7 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10884
10884
  }
10885
10885
  M([...I].sort((ce, ye) => {
10886
10886
  var jn, Nn, Dn, Sn, Cn, ir;
10887
- const Ee = ((Nn = (jn = ce[o]) == null ? void 0 : jn.value) == null ? void 0 : Nn.toString()) ?? "", we = ((Sn = (Dn = ye[o]) == null ? void 0 : Dn.value) == null ? void 0 : Sn.toString()) ?? "", Oe = x.columns.find((gt) => gt.field === o), ke = Oe == null ? void 0 : Oe.type;
10887
+ const Ee = ((Nn = (jn = ce[o]) == null ? void 0 : jn.value) == null ? void 0 : Nn.toString()) ?? "", we = ((Sn = (Dn = ye[o]) == null ? void 0 : Dn.value) == null ? void 0 : Sn.toString()) ?? "", Oe = y.columns.find((gt) => gt.field === o), ke = Oe == null ? void 0 : Oe.type;
10888
10888
  if (!Oe || !ke || !Ee && !we)
10889
10889
  return 0;
10890
10890
  if (!Ee)
@@ -10911,7 +10911,7 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10911
10911
  }
10912
10912
  return s === "asc" ? Ee.toString().localeCompare(we.toString()) : we.toString().localeCompare(Ee.toString());
10913
10913
  }));
10914
- }, [I, x, o, s]);
10914
+ }, [I, y, o, s]);
10915
10915
  return U(() => {
10916
10916
  re();
10917
10917
  }, [re]), U(() => {
@@ -10927,32 +10927,32 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10927
10927
  }, [t, se, A, n]), /* @__PURE__ */ a.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
10928
10928
  /* @__PURE__ */ a.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-start", children: [
10929
10929
  /* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center gap-3", children: [
10930
- /* @__PURE__ */ a.jsx(L, { variant: "h3", children: (x == null ? void 0 : x.name) ?? "" }),
10931
- (x == null ? void 0 : x.masterReference) && /* @__PURE__ */ a.jsx(ij, { label: ((ot = (Ve = x.columns) == null ? void 0 : Ve.find((ce) => ce.field === x.masterReferenceColumn)) == null ? void 0 : ot.caption) ?? "", options: ((on = (st = x.columns) == null ? void 0 : st.find((ce) => ce.field === x.masterReferenceColumn)) == null ? void 0 : on.values) ?? [], master: me, onChange: (ce) => Q(ce) })
10930
+ /* @__PURE__ */ a.jsx(L, { variant: "h3", children: (y == null ? void 0 : y.name) ?? "" }),
10931
+ (y == null ? void 0 : y.masterReference) && /* @__PURE__ */ a.jsx(ij, { label: ((ot = (Ve = y.columns) == null ? void 0 : Ve.find((ce) => ce.field === y.masterReferenceColumn)) == null ? void 0 : ot.caption) ?? "", options: ((on = (st = y.columns) == null ? void 0 : st.find((ce) => ce.field === y.masterReferenceColumn)) == null ? void 0 : on.values) ?? [], master: me, onChange: (ce) => Q(ce) })
10932
10932
  ] }),
10933
10933
  /* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
10934
- (Bi = x == null ? void 0 : x.slaves) == null ? void 0 : Bi.map((ce, ye) => {
10934
+ (Bi = y == null ? void 0 : y.slaves) == null ? void 0 : Bi.map((ce, ye) => {
10935
10935
  var Ee;
10936
10936
  return /* @__PURE__ */ a.jsxs(dt, { as: "link", href: `${vn(c, { id: (Ee = ce.id) == null ? void 0 : Ee.toString() })}?type=dynamic-form`, children: [
10937
10937
  /* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center", children: [
10938
- x.slaves.length > 1 ? /* @__PURE__ */ a.jsx(L, { variant: "caption", className: "text-primary", children: ye + 1 }) : null,
10938
+ y.slaves.length > 1 ? /* @__PURE__ */ a.jsx(L, { variant: "caption", className: "text-primary", children: ye + 1 }) : null,
10939
10939
  /* @__PURE__ */ a.jsx(Us, {})
10940
10940
  ] }),
10941
10941
  ce.name
10942
10942
  ] }, ce.id);
10943
10943
  }),
10944
10944
  /* @__PURE__ */ a.jsxs(Mt, { toggle: /* @__PURE__ */ a.jsx(Ft, { as: rn }), children: [
10945
- /* @__PURE__ */ a.jsx(Ye, { onClick: () => P(!S), children: S ? b.hideArchived : b.showArchived }),
10945
+ /* @__PURE__ */ a.jsx(Ye, { onClick: () => P(!C), children: C ? b.hideArchived : b.showArchived }),
10946
10946
  /* @__PURE__ */ a.jsx(Hs, {}),
10947
10947
  /* @__PURE__ */ a.jsx(Ye, { onClick: Pe, icon: /* @__PURE__ */ a.jsx(v, { icon: "file-download" }), children: b.downloadExport })
10948
10948
  ] })
10949
10949
  ] })
10950
10950
  ] }),
10951
- (x == null ? void 0 : x.description) && /* @__PURE__ */ a.jsx(L, { variant: "body2", className: "mb-3", children: x == null ? void 0 : x.description }),
10952
- x != null && x.masterReference && !me ? /* @__PURE__ */ a.jsx(et, { variant: "warning", children: b.selectMaster(((Mi = (Li = x.columns) == null ? void 0 : Li.find((ce) => ce.field === x.masterReferenceColumn)) == null ? void 0 : Mi.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
10953
- x && F.length > 0 && /* @__PURE__ */ a.jsx("div", { className: "mb-2", children: /* @__PURE__ */ a.jsx(Tw, { errors: F, schema: x }) }),
10954
- x && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
10955
- /* @__PURE__ */ a.jsx("div", { className: _("rounded border overflow-auto", ys.tableContainer), children: /* @__PURE__ */ a.jsx(aj, { schema: x, items: !se && T && (T == null ? void 0 : T.length) > W ? [] : (se ? J : T) ?? [], onEditItem: G, onDeleteItem: ie, onCreateItem: ge, filters: r, setFilter: i, sortByField: o, sortByType: s, setSortBy: l, selectedMaster: (me == null ? void 0 : me.toString()) ?? null, customPickers: h, appDetail: c }) }),
10951
+ (y == null ? void 0 : y.description) && /* @__PURE__ */ a.jsx(L, { variant: "body2", className: "mb-3", children: y == null ? void 0 : y.description }),
10952
+ y != null && y.masterReference && !me ? /* @__PURE__ */ a.jsx(et, { variant: "warning", children: b.selectMaster(((Mi = (Li = y.columns) == null ? void 0 : Li.find((ce) => ce.field === y.masterReferenceColumn)) == null ? void 0 : Mi.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
10953
+ y && F.length > 0 && /* @__PURE__ */ a.jsx("div", { className: "mb-2", children: /* @__PURE__ */ a.jsx(Tw, { errors: F, schema: y }) }),
10954
+ y && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
10955
+ /* @__PURE__ */ a.jsx("div", { className: _("rounded border overflow-auto", ys.tableContainer), children: /* @__PURE__ */ a.jsx(aj, { schema: y, items: !se && T && (T == null ? void 0 : T.length) > W ? [] : (se ? J : T) ?? [], onEditItem: G, onDeleteItem: ie, onCreateItem: ge, filters: r, setFilter: i, sortByField: o, sortByType: s, setSortBy: l, selectedMaster: (me == null ? void 0 : me.toString()) ?? null, customPickers: h, appDetail: c }) }),
10956
10956
  se && t && /* @__PURE__ */ a.jsxs("div", { className: _(ys.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
10957
10957
  /* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
10958
10958
  /* @__PURE__ */ a.jsx(te, { color: "primary", onClick: () => Ie(1), disabled: !K, children: /* @__PURE__ */ a.jsx(v, { icon: "chevron-double-left" }) }),
@@ -10984,29 +10984,29 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
10984
10984
  e.description && /* @__PURE__ */ a.jsx(L, { variant: "body2", className: "text-muted mt-2", children: e.description })
10985
10985
  ] }) : /* @__PURE__ */ a.jsx(sj, { item: e, children: /* @__PURE__ */ a.jsx(Ds, { disabled: !!o, to: `${vn(n, { id: (c = e.id) == null ? void 0 : c.toString() })}?type=${e.type}&search=${r ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(i == null ? void 0 : i.toString()) === ((u = e.id) == null ? void 0 : u.toString()) ? "active" : ""}`, children: /* @__PURE__ */ a.jsx(L, { variant: "body2", children: e.name }) }) }, e.id);
10986
10986
  }, MN = ({ activeId: e, anchoredForms: t, otherForms: n = [], groupsDefs: r = [], searchQuery: i, fullSize: o, appUrls: { appDetail: s = js.appDetail } = js, apiUrls: { apiDynamicFormsGet: l = Ns.apiDynamicFormsGet } = Ns }) => {
10987
- const c = Ke(), { startLoading: u, stopLoading: d } = $(xt), [p, f] = B(null), [m] = Jt("search", ""), g = k(() => (t == null ? void 0 : t.filter((y) => qe(y.name, i) || qe(y.description, i)).sort((y, j) => (y.name ?? "").localeCompare(j.name ?? ""))) ?? [], [t, i]), h = k(() => [
10988
- ...(p == null ? void 0 : p.map((y) => ({
10989
- ...y,
10987
+ const c = Ke(), { startLoading: u, stopLoading: d } = $(xt), [p, f] = B(null), [m] = Jt("search", ""), g = k(() => (t == null ? void 0 : t.filter((x) => qe(x.name, i) || qe(x.description, i)).sort((x, N) => (x.name ?? "").localeCompare(N.name ?? ""))) ?? [], [t, i]), h = k(() => [
10988
+ ...(p == null ? void 0 : p.map((x) => ({
10989
+ ...x,
10990
10990
  type: "dynamic-form"
10991
10991
  }))) ?? [],
10992
10992
  ...n
10993
- ].filter((y) => qe(y.name, i) || qe(y.description, i)).sort((y, j) => (y.name ?? "").localeCompare(j.name ?? "")) ?? [], [p, n, i]), b = k(() => r.map((y) => ({
10994
- id: y.id,
10995
- name: y.name ?? "",
10996
- items: h.filter((j) => j.group === y.id)
10997
- })).filter((y) => y.items.length > 0), [r, h]), v = R(async () => {
10998
- u("dynamicForms"), await c.get(l).then(({ data: y }) => {
10999
- f(y), d("dynamicForms");
10993
+ ].filter((x) => qe(x.name, i) || qe(x.description, i)).sort((x, N) => (x.name ?? "").localeCompare(N.name ?? "")) ?? [], [p, n, i]), b = k(() => r.map((x) => ({
10994
+ id: x.id,
10995
+ name: x.name ?? "",
10996
+ items: h.filter((N) => N.group === x.id)
10997
+ })).filter((x) => x.items.length > 0), [r, h]), v = R(async () => {
10998
+ u("dynamicForms"), await c.get(l).then(({ data: x }) => {
10999
+ f(x), d("dynamicForms");
11000
11000
  }).catch(() => d("dynamicForms"));
11001
11001
  }, [c, u, d, l]);
11002
11002
  return U(() => {
11003
11003
  !p && v();
11004
11004
  }, [v, p]), [...g, ...h].length > 0 ? /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: [
11005
11005
  g.length > 0 ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
11006
- g.map((y) => /* @__PURE__ */ a.jsx(Ss, { item: y, fullSize: o ?? !1, appDetail: s, search: m, activeId: e, disabled: y.type === "dynamic-form" && !y.userCanModify && !y.userCanSelect }, y.id)),
11006
+ g.map((x) => /* @__PURE__ */ a.jsx(Ss, { item: x, fullSize: o ?? !1, appDetail: s, search: m, activeId: e, disabled: x.type === "dynamic-form" && !x.userCanModify && !x.userCanSelect }, x.id)),
11007
11007
  /* @__PURE__ */ a.jsx("hr", { className: "mb-0" })
11008
11008
  ] }) : null,
11009
- b.map((y) => /* @__PURE__ */ a.jsx(Er, { title: y.name, defaultOpen: !0, children: y.items.map((j) => /* @__PURE__ */ a.jsx(Ss, { item: j, fullSize: o ?? !1, appDetail: s, search: m, activeId: e, disabled: j.type === "dynamic-form" && !j.userCanSelect && !j.userCanModify }, j.id)) }, y.id))
11009
+ b.map((x) => /* @__PURE__ */ a.jsx(Er, { title: x.name, defaultOpen: !0, children: x.items.map((N) => /* @__PURE__ */ a.jsx(Ss, { item: N, fullSize: o ?? !1, appDetail: s, search: m, activeId: e, disabled: N.type === "dynamic-form" && !N.userCanSelect && !N.userCanModify }, N.id)) }, x.id))
11010
11010
  ] }) }) : null;
11011
11011
  }, FN = ({ label: e, to: t, value: n }) => /* @__PURE__ */ a.jsxs(Te, { label: e, children: [
11012
11012
  /* @__PURE__ */ a.jsx("input", { disabled: !0, className: "form-control d-none" }),
@@ -11371,46 +11371,43 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
11371
11371
  g.reset(m);
11372
11372
  }, [m, g]), { formSchema: f, onSubmit: h, formMethods: g };
11373
11373
  }, ZN = ({ indexRoute: e }) => {
11374
- var w;
11374
+ var y;
11375
11375
  const { id: t } = qs(), { user: n } = $(Lt), r = Ke(), i = Fr(), { confirm: o } = St(), { texts: { substitutions: { detail: s } } } = $(X), { data: l } = Be(`/permissions/substitutions/${t}`, {
11376
11376
  enabled: t !== void 0
11377
- }), { data: c } = Be("/permissions/users"), { onSubmit: u, formMethods: d } = Pj(l, e), p = d.watch("employeeId"), { data: f } = Be(`/permissions/roles?userName=${(w = c == null ? void 0 : c.find((x) => x.employeeId === p)) == null ? void 0 : w.name}`, { enabled: p > 0 && !!c }), { refreshAvailableDelegations: m } = $(zs), { checkUserHasPermissions: g } = Ws(), h = R(async () => {
11377
+ }), { data: c } = Be("/permissions/users"), { onSubmit: u, formMethods: d } = Pj(l, e), p = d.watch("employeeId"), { data: f } = Be(`/permissions/roles?userName=${(y = c == null ? void 0 : c.find((j) => j.employeeId === p)) == null ? void 0 : y.name}`, { enabled: p > 0 && !!c }), { refreshAvailableDelegations: m } = $(zs), { checkUserHasPermissions: g } = Ws(), h = R(async () => {
11378
11378
  await o(s.deleteConfirm) && (await r.delete(`/permissions/substitutions/${t}`), m(), i(e));
11379
- }, [r, o, t, i, m, s, e]), b = k(() => p !== (n == null ? void 0 : n.personalNumber) && !g(["ZASTUP_MODIFY"]), [g, p, n == null ? void 0 : n.personalNumber]), v = d.watch("roles"), y = k(() => f == null ? void 0 : f.filter((x) => x.canBeRepresented), [f]), j = k(() => (y == null ? void 0 : y.every((x) => v == null ? void 0 : v.includes(x.name))) ?? !1, [y, v]);
11379
+ }, [r, o, t, i, m, s, e]), b = k(() => p !== (n == null ? void 0 : n.personalNumber) && !g(["ZASTUP_MODIFY"]), [g, p, n == null ? void 0 : n.personalNumber]), v = d.watch("roles"), x = k(() => f == null ? void 0 : f.filter((j) => j.canBeRepresented), [f]), N = k(() => (x == null ? void 0 : x.every((j) => v == null ? void 0 : v.includes(j.name))) ?? !1, [x, v]), w = k(() => {
11380
+ const j = new Set(c == null ? void 0 : c.map((S) => S.employeeId));
11381
+ return Array.from(j.values()).map((S) => c == null ? void 0 : c.find((E) => E.employeeId === S)).filter((S) => S !== void 0).map((S) => ({ id: S.employeeId, name: `${S.employeeName} (${S.name})` }));
11382
+ }, [c]);
11380
11383
  return /* @__PURE__ */ a.jsx(Nt, { title: /* @__PURE__ */ a.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
11381
11384
  /* @__PURE__ */ a.jsx(L, { variant: "h3", children: s.title }),
11382
11385
  /* @__PURE__ */ a.jsx(Mt, { toggle: /* @__PURE__ */ a.jsx(Ft, { as: rn }), children: /* @__PURE__ */ a.jsx(Ye, { onClick: () => h(), children: s.delete }) })
11383
11386
  ] }), children: /* @__PURE__ */ a.jsx($r, { ...d, children: /* @__PURE__ */ a.jsx(pu, { disabled: b, children: /* @__PURE__ */ a.jsxs(be, { onSubmit: d.handleSubmit(u), className: "h-100", children: [
11384
11387
  /* @__PURE__ */ a.jsxs(ri, { className: "h-100 gx-3 gy-3", children: [
11385
11388
  /* @__PURE__ */ a.jsx(Cr, { sm: 12, md: 4, children: /* @__PURE__ */ a.jsxs(Qt, { title: s.title, children: [
11386
- /* @__PURE__ */ a.jsx(Pa, { formField: "employeeId", options: (c == null ? void 0 : c.map((x) => ({
11387
- id: x.employeeId,
11388
- name: `${x.employeeName} (${x.name})`
11389
- }))) ?? [], label: s.employee, isNumber: !0, required: !0, disabled: !g(["ZASTUP_MODIFY"]), resetsFields: ["roles"] }),
11390
- /* @__PURE__ */ a.jsx(Pa, { formField: "substituteId", options: (c == null ? void 0 : c.map((x) => ({
11391
- id: x.employeeId,
11392
- name: `${x.employeeName} (${x.name})`
11393
- }))) ?? [], label: s.substitute, isNumber: !0, required: !0 }),
11389
+ /* @__PURE__ */ a.jsx(Pa, { formField: "employeeId", options: w, label: s.employee, isNumber: !0, required: !0, disabled: !g(["ZASTUP_MODIFY"]), resetsFields: ["roles"] }),
11390
+ /* @__PURE__ */ a.jsx(Pa, { formField: "substituteId", options: w, label: s.substitute, isNumber: !0, required: !0 }),
11394
11391
  /* @__PURE__ */ a.jsx(mn, { formField: "from", label: s.from, type: "date", required: !0 }),
11395
11392
  /* @__PURE__ */ a.jsx(mn, { formField: "to", label: s.to, type: "date", required: !0 })
11396
11393
  ] }) }),
11397
- /* @__PURE__ */ a.jsx(Cr, { sm: 12, md: 4, children: /* @__PURE__ */ a.jsxs(Qt, { title: s.roles(`${(v == null ? void 0 : v.length) ?? 0}/${(y == null ? void 0 : y.length) ?? 0}`), className: "h-max-100", contentClassName: "d-flex flex-column overflow-hidden", children: [
11394
+ /* @__PURE__ */ a.jsx(Cr, { sm: 12, md: 4, children: /* @__PURE__ */ a.jsxs(Qt, { title: s.roles(`${(v == null ? void 0 : v.length) ?? 0}/${(x == null ? void 0 : x.length) ?? 0}`), className: "h-max-100", contentClassName: "d-flex flex-column overflow-hidden", children: [
11398
11395
  b ? null : /* @__PURE__ */ a.jsx("div", { className: "bg-darker", style: {
11399
11396
  marginLeft: "-12px",
11400
11397
  marginRight: "-12px",
11401
11398
  marginTop: "-12px",
11402
11399
  padding: "0px 12px"
11403
- }, children: /* @__PURE__ */ a.jsx(Gn, { label: j ? s.uncheckAllRoles : s.checkAllRoles, indeterminate: !j && (v == null ? void 0 : v.length) > 0, value: j, disabled: b, onChange: () => {
11404
- d.setValue("roles", j ? [] : (y == null ? void 0 : y.map((x) => x.name)) ?? [], { shouldDirty: !0 });
11400
+ }, children: /* @__PURE__ */ a.jsx(Gn, { label: N ? s.uncheckAllRoles : s.checkAllRoles, indeterminate: !N && (v == null ? void 0 : v.length) > 0, value: N, disabled: b, onChange: () => {
11401
+ d.setValue("roles", N ? [] : (x == null ? void 0 : x.map((j) => j.name)) ?? [], { shouldDirty: !0 });
11405
11402
  }, InputContainer: Te }) }),
11406
11403
  /* @__PURE__ */ a.jsx("div", { className: "overflow-auto", style: {
11407
11404
  maxHeight: "60vh",
11408
11405
  marginLeft: "-12px",
11409
11406
  marginRight: "-12px",
11410
11407
  padding: "0px 12px"
11411
- }, children: f == null ? void 0 : f.map((x) => /* @__PURE__ */ a.jsx(Gn, { label: x.name, value: (v == null ? void 0 : v.find((N) => N === x.name)) !== void 0, disabled: b || !x.canBeRepresented, onChange: (N) => {
11412
- d.setValue("roles", N ? [...v ?? [], x.name] : (v == null ? void 0 : v.filter((C) => C !== x.name)) ?? [], { shouldDirty: !0 });
11413
- }, InputContainer: Te }, x.name)) })
11408
+ }, children: f == null ? void 0 : f.map((j) => /* @__PURE__ */ a.jsx(Gn, { label: j.name, value: (v == null ? void 0 : v.find((S) => S === j.name)) !== void 0, disabled: b || !j.canBeRepresented, onChange: (S) => {
11409
+ d.setValue("roles", S ? [...v ?? [], j.name] : (v == null ? void 0 : v.filter((E) => E !== j.name)) ?? [], { shouldDirty: !0 });
11410
+ }, InputContainer: Te }, j.name)) })
11414
11411
  ] }) })
11415
11412
  ] }),
11416
11413
  /* @__PURE__ */ a.jsx($p, { onStorno: () => d.reset(), children: s.save })
@@ -11477,43 +11474,43 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
11477
11474
  ), u = R(async () => e != null && e.id ? (o("approvalDelegationDelete"), i.delete(r(e.id)).then(() => !0).catch(() => !1).finally(() => s("approvalDelegationDelete"))) : !1, [i, e, o, s, r]);
11478
11475
  return { getHasRunningProcesses: l, postEditDelegation: c, postDeleteDelegation: u };
11479
11476
  }, Rj = ({ model: e, handleClose: t, onConfirm: n, apiApprovalDefinitions: r, apiHasRunningProcess: i, apiPostEditDelegation: o, apiDeleteDelegation: s, EmployeePickerComponent: l }) => {
11480
- var C, E;
11477
+ var S, E;
11481
11478
  const { ProjectIconComponent: c, texts: { approval: u } } = $(X), { zDate: d, zObjectIdIntRequired: p, zDateRequired: f } = Lr(), { addNotification: m } = nn(), { confirm: g } = St(), { data: h } = Be(r), b = dn.object({
11482
11479
  employee: p(),
11483
11480
  delegate: p(),
11484
11481
  dateFrom: f(),
11485
11482
  dateTo: d(),
11486
11483
  approval: p()
11487
- }), v = Vr({ resolver: Mr(b) }), { getHasRunningProcesses: y, postEditDelegation: j, postDeleteDelegation: w } = Aj(e, i, o, s);
11484
+ }), v = Vr({ resolver: Mr(b) }), { getHasRunningProcesses: x, postEditDelegation: N, postDeleteDelegation: w } = Aj(e, i, o, s);
11488
11485
  U(() => {
11489
- var I, O, T, M, S, P;
11486
+ var I, O, T, M, C, P;
11490
11487
  e && (v.reset({
11491
11488
  ...e,
11492
11489
  employee: { id: ((I = e.employee) == null ? void 0 : I.id) ?? 0 },
11493
11490
  delegate: { id: ((O = e.delegate) == null ? void 0 : O.id) ?? 0 },
11494
11491
  dateFrom: e.dateFrom ?? "",
11495
11492
  approval: { id: ((T = e.approval) == null ? void 0 : T.id) ?? 0 }
11496
- }, { keepDirty: !1 }), (M = e.employee) != null && M.id || yr(v, "employee.id"), (S = e.delegate) != null && S.id || yr(v, "delegate.id"), (P = e.approval) != null && P.id || yr(v, "approval.id"));
11493
+ }, { keepDirty: !1 }), (M = e.employee) != null && M.id || yr(v, "employee.id"), (C = e.delegate) != null && C.id || yr(v, "delegate.id"), (P = e.approval) != null && P.id || yr(v, "approval.id"));
11497
11494
  }, [e, v]);
11498
- const x = async (I) => {
11495
+ const y = async (I) => {
11499
11496
  if (!e)
11500
11497
  return;
11501
11498
  const O = { ...e };
11502
11499
  Object.assign(O, I), au(O);
11503
- const T = await y(O.employee.id, O.approval.id);
11504
- O.includeExisting = T && !!await g(u.delegations.delegateExistingsConfirmMessage), await j(O, v) && (m(e.id ? u.delegations.editSuccess : u.delegations.createSuccess, "success"), n());
11505
- }, N = R(async () => {
11500
+ const T = await x(O.employee.id, O.approval.id);
11501
+ O.includeExisting = T && !!await g(u.delegations.delegateExistingsConfirmMessage), await N(O, v) && (m(e.id ? u.delegations.editSuccess : u.delegations.createSuccess, "success"), n());
11502
+ }, j = R(async () => {
11506
11503
  await g(u.delegations.deleteConfirm) && await w() && (m(u.delegations.deleteSuccess, "success"), n());
11507
11504
  }, [g, u, w, m, n]);
11508
11505
  return /* @__PURE__ */ a.jsxs(ue, { show: e !== null, onHide: () => t(), children: [
11509
11506
  /* @__PURE__ */ a.jsxs(ue.Header, { closeButton: !0, children: [
11510
11507
  /* @__PURE__ */ a.jsx(ue.Title, { className: "w-100", children: e != null && e.id ? u.delegations.detailTitle : u.delegations.newTitle }),
11511
- e != null && e.id ? /* @__PURE__ */ a.jsx(Mt, { toggle: /* @__PURE__ */ a.jsx(Ft, { as: rn }), className: "modalHeaderDropdown", children: /* @__PURE__ */ a.jsx(Ye, { color: "danger", icon: /* @__PURE__ */ a.jsx(c, { icon: "delete" }), onClick: N, children: u.delegations.delete }) }) : null
11508
+ e != null && e.id ? /* @__PURE__ */ a.jsx(Mt, { toggle: /* @__PURE__ */ a.jsx(Ft, { as: rn }), className: "modalHeaderDropdown", children: /* @__PURE__ */ a.jsx(Ye, { color: "danger", icon: /* @__PURE__ */ a.jsx(c, { icon: "delete" }), onClick: j, children: u.delegations.delete }) }) : null
11512
11509
  ] }),
11513
- /* @__PURE__ */ a.jsx($r, { ...v, children: /* @__PURE__ */ a.jsxs(be, { onSubmit: v.handleSubmit(x), noValidate: !0, children: [
11510
+ /* @__PURE__ */ a.jsx($r, { ...v, children: /* @__PURE__ */ a.jsxs(be, { onSubmit: v.handleSubmit(y), noValidate: !0, children: [
11514
11511
  /* @__PURE__ */ a.jsxs(ue.Body, { children: [
11515
11512
  /* @__PURE__ */ a.jsx(Pa, { label: u.delegations.detail.approval, isNumber: !0, formField: "approval.id", options: h ?? [], required: !0 }),
11516
- /* @__PURE__ */ a.jsx(l, { label: u.delegations.detail.employee, formField: "employee.id", defaultSelection: (C = e == null ? void 0 : e.employee) != null && C.id ? { id: e.employee.id, name: e.employee.name } : null, required: !0 }),
11513
+ /* @__PURE__ */ a.jsx(l, { label: u.delegations.detail.employee, formField: "employee.id", defaultSelection: (S = e == null ? void 0 : e.employee) != null && S.id ? { id: e.employee.id, name: e.employee.name } : null, required: !0 }),
11517
11514
  /* @__PURE__ */ a.jsx(l, { label: u.delegations.detail.delegate, formField: "delegate.id", defaultSelection: (E = e == null ? void 0 : e.delegate) != null && E.id ? { id: e.delegate.id, name: e.delegate.name } : null, required: !0 }),
11518
11515
  /* @__PURE__ */ a.jsx(mn, { label: u.delegations.detail.dateFrom, formField: "dateFrom", type: "date", required: !0 }),
11519
11516
  /* @__PURE__ */ a.jsx(mn, { label: u.delegations.detail.dateTo, formField: "dateTo", type: "date" })
@@ -11562,7 +11559,7 @@ const Hc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
11562
11559
  const h = R(async (v) => (d("approvalChangeEmployee"), u.post(o, {
11563
11560
  id: i,
11564
11561
  employeeId: v
11565
- }).then(() => !0).catch((y) => (Ja(g, y), !1)).finally(() => p("approvalChangeEmployee"))), [u, i, g, d, p, o]), b = async (v) => {
11562
+ }).then(() => !0).catch((x) => (Ja(g, x), !1)).finally(() => p("approvalChangeEmployee"))), [u, i, g, d, p, o]), b = async (v) => {
11566
11563
  await h(v.employeeId) && (f(l.definitions.changeEmployeeSuccess, "success"), n());
11567
11564
  };
11568
11565
  return /* @__PURE__ */ a.jsxs(ue, { show: e, onHide: () => t(), children: [