react-luminus-components 1.3.130 → 1.3.131

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
@@ -116,8 +116,8 @@ function rn(e, t) {
116
116
  if (a !== "date") {
117
117
  const u = r.getTimezoneOffset();
118
118
  if (u !== 0) {
119
- const g = Math.abs(u), v = Me(Math.trunc(g / 60), 2), w = Me(g % 60, 2);
120
- i = `${u < 0 ? "+" : "-"}${v}:${w}`;
119
+ const g = Math.abs(u), v = Me(Math.trunc(g / 60), 2), y = Me(g % 60, 2);
120
+ i = `${u < 0 ? "+" : "-"}${v}:${y}`;
121
121
  } else
122
122
  i = "Z";
123
123
  const d = Me(r.getHours(), 2), m = Me(r.getMinutes(), 2), x = Me(r.getSeconds(), 2), p = o === "" ? "" : "T", h = [d, m, x].join(l);
@@ -195,37 +195,37 @@ const Za = {
195
195
  getDimensionValue: p = Qa,
196
196
  ...h
197
197
  }, g) => {
198
- const v = typeof c == "function" ? c() : c, w = ee(() => ht((D) => {
199
- D.style[v] = "0";
200
- }, e), [v, e]), j = ee(() => ht((D) => {
198
+ const v = typeof c == "function" ? c() : c, y = ee(() => ht((I) => {
199
+ I.style[v] = "0";
200
+ }, e), [v, e]), j = ee(() => ht((I) => {
201
201
  const $ = `scroll${v[0].toUpperCase()}${v.slice(1)}`;
202
- D.style[v] = `${D[$]}px`;
203
- }, t), [v, t]), f = ee(() => ht((D) => {
204
- D.style[v] = null;
205
- }, r), [v, r]), y = ee(() => ht((D) => {
206
- D.style[v] = `${p(v, D)}px`, Rs(D);
207
- }, s), [s, p, v]), _ = ee(() => ht((D) => {
208
- D.style[v] = null;
202
+ I.style[v] = `${I[$]}px`;
203
+ }, t), [v, t]), f = ee(() => ht((I) => {
204
+ I.style[v] = null;
205
+ }, r), [v, r]), w = ee(() => ht((I) => {
206
+ I.style[v] = `${p(v, I)}px`, Rs(I);
207
+ }, s), [s, p, v]), N = ee(() => ht((I) => {
208
+ I.style[v] = null;
209
209
  }, a), [v, a]);
210
210
  return /* @__PURE__ */ n.jsx(cr, {
211
211
  ref: g,
212
212
  addEndListener: dr,
213
213
  ...h,
214
214
  "aria-expanded": h.role ? l : null,
215
- onEnter: w,
215
+ onEnter: y,
216
216
  onEntering: j,
217
217
  onEntered: f,
218
- onExit: y,
219
- onExiting: _,
218
+ onExit: w,
219
+ onExiting: N,
220
220
  childRef: i.ref,
221
221
  in: l,
222
222
  timeout: u,
223
223
  mountOnEnter: d,
224
224
  unmountOnExit: m,
225
225
  appear: x,
226
- children: (D, $) => /* @__PURE__ */ Se.cloneElement(i, {
226
+ children: (I, $) => /* @__PURE__ */ Se.cloneElement(i, {
227
227
  ...$,
228
- className: b(o, i.props.className, Za[D], v === "width" && "collapse-horizontal")
228
+ className: b(o, i.props.className, Za[I], v === "width" && "collapse-horizontal")
229
229
  })
230
230
  });
231
231
  }), Or = Ft("h4");
@@ -267,8 +267,8 @@ const Lr = /* @__PURE__ */ oe.forwardRef((e, t) => {
267
267
  ...x
268
268
  } = mr(e, {
269
269
  show: "onClose"
270
- }), p = me(r, "alert"), h = Ot((w) => {
271
- u && u(!1, w);
270
+ }), p = me(r, "alert"), h = Ot((y) => {
271
+ u && u(!1, y);
272
272
  }), g = m === !0 ? Xt : m, v = /* @__PURE__ */ n.jsxs("div", {
273
273
  role: "alert",
274
274
  ...g ? void 0 : x,
@@ -561,33 +561,33 @@ const Bn = () => {
561
561
  let x, p;
562
562
  m && (o = o || "tablist", a = m.activeKey, x = m.getControlledId, p = m.getControllerId);
563
563
  const h = ne(null), g = (f) => {
564
- const y = h.current;
565
- if (!y) return null;
566
- const _ = Hs(y, `[${Vn}]:not([aria-disabled=true])`), D = y.querySelector("[aria-selected=true]");
567
- if (!D || D !== document.activeElement) return null;
568
- const $ = _.indexOf(D);
564
+ const w = h.current;
565
+ if (!w) return null;
566
+ const N = Hs(w, `[${Vn}]:not([aria-disabled=true])`), I = w.querySelector("[aria-selected=true]");
567
+ if (!I || I !== document.activeElement) return null;
568
+ const $ = N.indexOf(I);
569
569
  if ($ === -1) return null;
570
- let I = $ + f;
571
- return I >= _.length && (I = 0), I < 0 && (I = _.length - 1), _[I];
572
- }, v = (f, y) => {
573
- f != null && (s == null || s(f, y), d == null || d(f, y));
574
- }, w = (f) => {
570
+ let k = $ + f;
571
+ return k >= N.length && (k = 0), k < 0 && (k = N.length - 1), N[k];
572
+ }, v = (f, w) => {
573
+ f != null && (s == null || s(f, w), d == null || d(f, w));
574
+ }, y = (f) => {
575
575
  if (i == null || i(f), !m)
576
576
  return;
577
- let y;
577
+ let w;
578
578
  switch (f.key) {
579
579
  case "ArrowLeft":
580
580
  case "ArrowUp":
581
- y = g(-1);
581
+ w = g(-1);
582
582
  break;
583
583
  case "ArrowRight":
584
584
  case "ArrowDown":
585
- y = g(1);
585
+ w = g(1);
586
586
  break;
587
587
  default:
588
588
  return;
589
589
  }
590
- y && (f.preventDefault(), v(y.dataset[zs("EventKey")] || null, f), u.current = !0, l());
590
+ w && (f.preventDefault(), v(w.dataset[zs("EventKey")] || null, f), u.current = !0, l());
591
591
  };
592
592
  L(() => {
593
593
  if (h.current && u.current) {
@@ -608,7 +608,7 @@ const Bn = () => {
608
608
  getControllerId: p || Bn
609
609
  },
610
610
  children: /* @__PURE__ */ n.jsx(r, Object.assign({}, c, {
611
- onKeyDown: w,
611
+ onKeyDown: y,
612
612
  ref: j,
613
613
  role: o
614
614
  }))
@@ -824,18 +824,18 @@ const rs = /* @__PURE__ */ oe.forwardRef(({
824
824
  autoFocus: h = !0,
825
825
  enforceFocus: g = !0,
826
826
  restoreFocus: v = !0,
827
- restoreFocusOptions: w,
827
+ restoreFocusOptions: y,
828
828
  onEntered: j,
829
829
  onExit: f,
830
- onExiting: y,
831
- onEnter: _,
832
- onEntering: D,
830
+ onExiting: w,
831
+ onEnter: N,
832
+ onEntering: I,
833
833
  onExited: $,
834
- backdropClassName: I,
834
+ backdropClassName: k,
835
835
  manager: F,
836
- renderStaticNode: E = !1,
837
- ...C
838
- }, N) => {
836
+ renderStaticNode: D = !1,
837
+ ...E
838
+ }, _) => {
839
839
  const P = ne();
840
840
  e = me(e, "offcanvas");
841
841
  const {
@@ -855,46 +855,46 @@ const rs = /* @__PURE__ */ oe.forwardRef(({
855
855
  })), P.current) : Qs());
856
856
  }
857
857
  const K = (H, ...le) => {
858
- H && (H.style.visibility = "visible"), _ == null || _(H, ...le);
858
+ H && (H.style.visibility = "visible"), N == null || N(H, ...le);
859
859
  }, te = (H, ...le) => {
860
860
  H && (H.style.visibility = ""), $ == null || $(...le);
861
861
  }, B = S((H) => /* @__PURE__ */ n.jsx("div", {
862
862
  ...H,
863
- className: b(`${e}-backdrop`, I)
864
- }), [I, e]), k = (H) => /* @__PURE__ */ n.jsx("div", {
863
+ className: b(`${e}-backdrop`, k)
864
+ }), [k, e]), C = (H) => /* @__PURE__ */ n.jsx("div", {
865
865
  ...H,
866
- ...C,
866
+ ...E,
867
867
  className: b(t, o ? `${e}-${o}` : e, `${e}-${a}`),
868
868
  "aria-labelledby": s,
869
869
  children: r
870
870
  });
871
871
  return /* @__PURE__ */ n.jsxs(n.Fragment, {
872
- children: [!Q && (o || E) && k({}), /* @__PURE__ */ n.jsx(Gs.Provider, {
872
+ children: [!Q && (o || D) && C({}), /* @__PURE__ */ n.jsx(Gs.Provider, {
873
873
  value: W,
874
874
  children: /* @__PURE__ */ n.jsx(Ks, {
875
875
  show: Q,
876
- ref: N,
876
+ ref: _,
877
877
  backdrop: c,
878
878
  container: p,
879
879
  keyboard: l,
880
880
  autoFocus: h,
881
881
  enforceFocus: g && !u,
882
882
  restoreFocus: v,
883
- restoreFocusOptions: w,
883
+ restoreFocusOptions: y,
884
884
  onEscapeKeyDown: d,
885
885
  onShow: m,
886
886
  onHide: V,
887
887
  onEnter: K,
888
- onEntering: D,
888
+ onEntering: I,
889
889
  onEntered: j,
890
890
  onExit: f,
891
- onExiting: y,
891
+ onExiting: w,
892
892
  onExited: te,
893
893
  manager: G(),
894
894
  transition: po,
895
895
  backdropTransition: xo,
896
896
  renderBackdrop: B,
897
- renderDialog: k
897
+ renderDialog: C
898
898
  })
899
899
  })]
900
900
  });
@@ -1189,7 +1189,7 @@ const Ho = (e) => (r) => {
1189
1189
  widgets: [...o.widgets, { widgetId: p, fullWidth: !1 }]
1190
1190
  }) : i({
1191
1191
  ...o,
1192
- widgets: ((g = o.widgets) == null ? void 0 : g.map((v, w) => w === x ? { widgetId: p, fullWidth: !1 } : v)) ?? []
1192
+ widgets: ((g = o.widgets) == null ? void 0 : g.map((v, y) => y === x ? { widgetId: p, fullWidth: !1 } : v)) ?? []
1193
1193
  });
1194
1194
  }, [o, i]), l = S((x) => {
1195
1195
  var p, h;
@@ -1259,39 +1259,39 @@ function ti(e, t, r) {
1259
1259
  var x = typeof window < "u", p = !t && t !== 0 && x;
1260
1260
  if (typeof e != "function") throw new TypeError("Expected a function");
1261
1261
  t = +t || 0;
1262
- var h = !!(r = r || {}).leading, g = !("trailing" in r) || !!r.trailing, v = "maxWait" in r, w = "debounceOnServer" in r && !!r.debounceOnServer, j = v ? Math.max(+r.maxWait || 0, t) : null;
1262
+ var h = !!(r = r || {}).leading, g = !("trailing" in r) || !!r.trailing, v = "maxWait" in r, y = "debounceOnServer" in r && !!r.debounceOnServer, j = v ? Math.max(+r.maxWait || 0, t) : null;
1263
1263
  L(function() {
1264
1264
  return m.current = !0, function() {
1265
1265
  m.current = !1;
1266
1266
  };
1267
1267
  }, []);
1268
1268
  var f = ee(function() {
1269
- var y = function(E) {
1270
- var C = c.current, N = l.current;
1271
- return c.current = l.current = null, o.current = E, u.current = d.current.apply(N, C);
1272
- }, _ = function(E, C) {
1273
- p && cancelAnimationFrame(i.current), i.current = p ? requestAnimationFrame(E) : setTimeout(E, C);
1274
- }, D = function(E) {
1269
+ var w = function(D) {
1270
+ var E = c.current, _ = l.current;
1271
+ return c.current = l.current = null, o.current = D, u.current = d.current.apply(_, E);
1272
+ }, N = function(D, E) {
1273
+ p && cancelAnimationFrame(i.current), i.current = p ? requestAnimationFrame(D) : setTimeout(D, E);
1274
+ }, I = function(D) {
1275
1275
  if (!m.current) return !1;
1276
- var C = E - a.current;
1277
- return !a.current || C >= t || C < 0 || v && E - o.current >= j;
1278
- }, $ = function(E) {
1279
- return i.current = null, g && c.current ? y(E) : (c.current = l.current = null, u.current);
1280
- }, I = function E() {
1281
- var C = Date.now();
1282
- if (D(C)) return $(C);
1276
+ var E = D - a.current;
1277
+ return !a.current || E >= t || E < 0 || v && D - o.current >= j;
1278
+ }, $ = function(D) {
1279
+ return i.current = null, g && c.current ? w(D) : (c.current = l.current = null, u.current);
1280
+ }, k = function D() {
1281
+ var E = Date.now();
1282
+ if (I(E)) return $(E);
1283
1283
  if (m.current) {
1284
- var N = t - (C - a.current), P = v ? Math.min(N, j - (C - o.current)) : N;
1285
- _(E, P);
1284
+ var _ = t - (E - a.current), P = v ? Math.min(_, j - (E - o.current)) : _;
1285
+ N(D, P);
1286
1286
  }
1287
1287
  }, F = function() {
1288
- if (x || w) {
1289
- var E = Date.now(), C = D(E);
1290
- if (c.current = [].slice.call(arguments), l.current = s, a.current = E, C) {
1291
- if (!i.current && m.current) return o.current = a.current, _(I, t), h ? y(a.current) : u.current;
1292
- if (v) return _(I, t), y(a.current);
1288
+ if (x || y) {
1289
+ var D = Date.now(), E = I(D);
1290
+ if (c.current = [].slice.call(arguments), l.current = s, a.current = D, E) {
1291
+ if (!i.current && m.current) return o.current = a.current, N(k, t), h ? w(a.current) : u.current;
1292
+ if (v) return N(k, t), w(a.current);
1293
1293
  }
1294
- return i.current || _(I, t), u.current;
1294
+ return i.current || N(k, t), u.current;
1295
1295
  }
1296
1296
  };
1297
1297
  return F.cancel = function() {
@@ -1301,7 +1301,7 @@ function ti(e, t, r) {
1301
1301
  }, F.flush = function() {
1302
1302
  return i.current ? $(Date.now()) : u.current;
1303
1303
  }, F;
1304
- }, [h, v, t, j, g, p, x, w]);
1304
+ }, [h, v, t, j, g, p, x, y]);
1305
1305
  return f;
1306
1306
  }
1307
1307
  function ni(e, t) {
@@ -1342,12 +1342,12 @@ const si = "_wrapper_1kgb8_1", ai = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1342
1342
  actionButton: vi
1343
1343
  }, wn = ({ show: e, onCancel: t, items: r, currentSelection: s, onSelectionChange: a, onSearchQueryChange: o, texts: i, itemsNameWidth: c, additionalColumns: l, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: m, disabled: x, isLoading: p = !1, inputRef: h, archiveColumn: g = "archive" }) => {
1344
1344
  var Ye;
1345
- const v = ne(null), w = ne(null), j = ne(null), f = ne(null), y = ne(null), [_, D] = O(""), [$] = ls(_, 500), [, I] = O(!1), { copyToClipboard: F } = La(), E = (Ye = h.current) == null ? void 0 : Ye.getBoundingClientRect(), C = (E == null ? void 0 : E.x) ?? 0, N = ((E == null ? void 0 : E.x) ?? 0) + ((E == null ? void 0 : E.width) ?? 0), P = (E == null ? void 0 : E.y) ?? 0, U = ((E == null ? void 0 : E.y) ?? 0) + ((E == null ? void 0 : E.height) ?? 0), Q = (E == null ? void 0 : E.width) ?? 0, A = (E == null ? void 0 : E.height) ?? 0, R = 5, V = ee(() => C ? C > window.innerWidth / 2 : !1, [C]), W = ee(() => P ? P > window.innerHeight / 2 : !1, [P]);
1345
+ const v = ne(null), y = ne(null), j = ne(null), f = ne(null), w = ne(null), [N, I] = O(""), [$] = ls(N, 500), [, k] = O(!1), { copyToClipboard: F } = La(), D = (Ye = h.current) == null ? void 0 : Ye.getBoundingClientRect(), E = (D == null ? void 0 : D.x) ?? 0, _ = ((D == null ? void 0 : D.x) ?? 0) + ((D == null ? void 0 : D.width) ?? 0), P = (D == null ? void 0 : D.y) ?? 0, U = ((D == null ? void 0 : D.y) ?? 0) + ((D == null ? void 0 : D.height) ?? 0), Q = (D == null ? void 0 : D.width) ?? 0, A = (D == null ? void 0 : D.height) ?? 0, R = 5, V = ee(() => E ? E > window.innerWidth / 2 : !1, [E]), W = ee(() => P ? P > window.innerHeight / 2 : !1, [P]);
1346
1346
  L(() => {
1347
1347
  var Y;
1348
1348
  e && ((Y = f.current) == null || Y.focus());
1349
1349
  }, [f, e]), L(() => {
1350
- e || D("");
1350
+ e || I("");
1351
1351
  }, [e]), L(() => {
1352
1352
  o($);
1353
1353
  }, [$, o]);
@@ -1360,17 +1360,17 @@ const si = "_wrapper_1kgb8_1", ai = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1360
1360
  const be = document.getElementById(`item-${Y}`);
1361
1361
  if (be) {
1362
1362
  const M = be.clientHeight ?? 0;
1363
- he === "down" ? (rt = y.current) == null || rt.scrollBy({
1363
+ he === "down" ? (rt = w.current) == null || rt.scrollBy({
1364
1364
  left: 0,
1365
1365
  top: M,
1366
1366
  behavior: "smooth"
1367
- }) : (T = y.current) == null || T.scrollBy({
1367
+ }) : (T = w.current) == null || T.scrollBy({
1368
1368
  left: 0,
1369
1369
  top: -M,
1370
1370
  behavior: "smooth"
1371
1371
  });
1372
1372
  }
1373
- }, []), k = S((Y) => {
1373
+ }, []), C = S((Y) => {
1374
1374
  if (G === null || x)
1375
1375
  return;
1376
1376
  const he = G + Y;
@@ -1385,20 +1385,20 @@ const si = "_wrapper_1kgb8_1", ai = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1385
1385
  Y.stopPropagation(), Y.preventDefault(), x || a(te);
1386
1386
  break;
1387
1387
  case "ArrowUp":
1388
- Y.stopPropagation(), Y.preventDefault(), k(-1);
1388
+ Y.stopPropagation(), Y.preventDefault(), C(-1);
1389
1389
  break;
1390
1390
  case "ArrowDown":
1391
- Y.stopPropagation(), Y.preventDefault(), k(1);
1391
+ Y.stopPropagation(), Y.preventDefault(), C(1);
1392
1392
  break;
1393
1393
  }
1394
- }, [t, e, k, te, x, a]), le = S(() => {
1395
- I((Y) => !Y);
1394
+ }, [t, e, C, te, x, a]), le = S(() => {
1395
+ k((Y) => !Y);
1396
1396
  }, []);
1397
1397
  L(() => (window.addEventListener("scroll", le), () => {
1398
1398
  window.removeEventListener("scroll", le);
1399
1399
  }), [le]), L(() => (window.addEventListener("resize", le), () => {
1400
1400
  window.removeEventListener("resize", le);
1401
- }), [le]), Dr(H), Ir([v, w, j], t);
1401
+ }), [le]), Dr(H), Ir([v, y, j], t);
1402
1402
  const fe = c ?? (l && l.length > 0 ? 250 : 0), Ce = (l == null ? void 0 : l.reduce((Y, he) => Y + (he.width ?? 100), 0)) ?? 0, J = `calc(max(${Q}px, ${fe}px + ${Ce}px))`, ve = ee(() => (s && e && !x) ?? !1, [s, e, x]), $e = ee(() => (s && e) ?? !1, [s, e]);
1403
1403
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1404
1404
  /* @__PURE__ */ n.jsx(us, { show: e, onClick: t }),
@@ -1406,9 +1406,9 @@ const si = "_wrapper_1kgb8_1", ai = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1406
1406
  [_e.reverse]: V
1407
1407
  }), style: {
1408
1408
  top: `calc(${P}px + ${A / 2}px - 12px)`,
1409
- left: V ? ve && $e ? `calc(${C}px - 24px - 8px - 24px - 4px)` : `calc(${C}px - 24px - 8px)` : `calc(${N}px + 8px)`
1409
+ left: V ? ve && $e ? `calc(${E}px - 24px - 8px - 24px - 4px)` : `calc(${E}px - 24px - 8px)` : `calc(${_}px + 8px)`
1410
1410
  }, children: [
1411
- ve && /* @__PURE__ */ n.jsx("button", { ref: w, type: "button", className: b("luminus-dropdown-picker-clear-button", _e.actionButton), onClick: () => !x && a(null), children: /* @__PURE__ */ n.jsx(X, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ n.jsx(vr, { size: 16 }) }) }),
1411
+ ve && /* @__PURE__ */ n.jsx("button", { ref: y, type: "button", className: b("luminus-dropdown-picker-clear-button", _e.actionButton), onClick: () => !x && a(null), children: /* @__PURE__ */ n.jsx(X, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ n.jsx(vr, { size: 16 }) }) }),
1412
1412
  $e && /* @__PURE__ */ n.jsx("button", { ref: j, type: "button", className: b("luminus-dropdown-picker-copy-button", _e.actionButton), onClick: () => {
1413
1413
  var Y, he;
1414
1414
  F(u ? ((Y = s == null ? void 0 : s.id) == null ? void 0 : Y.toString()) ?? "" : ((he = s == null ? void 0 : s.name) == null ? void 0 : he.toString()) ?? ""), t();
@@ -1418,16 +1418,16 @@ const si = "_wrapper_1kgb8_1", ai = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1418
1418
  [_e.open]: e
1419
1419
  }), style: {
1420
1420
  top: W ? `calc(${P}px - 50vh - 8px)` : `calc(${U}px + 8px)`,
1421
- left: V ? `calc(${N}px - ${J})` : C,
1422
- right: V ? `${N}px` : `calc(${C}px + ${J})`,
1421
+ left: V ? `calc(${_}px - ${J})` : E,
1422
+ right: V ? `${_}px` : `calc(${E}px + ${J})`,
1423
1423
  width: J,
1424
1424
  justifyContent: W ? "flex-end" : "flex-start"
1425
1425
  }, children: /* @__PURE__ */ n.jsx("div", { ref: v, className: b("shadow rounded", _e.dropdown), children: !x && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1426
- d && (m ?? r.length) <= R ? null : /* @__PURE__ */ n.jsx("div", { className: b("search-input-container border-bottom", _e.searchInputContainer), children: /* @__PURE__ */ n.jsx(ye.Control, { ref: f, type: "search", size: "sm", className: _e.searchInput, placeholder: i.searchPlaceholder, value: _, onChange: (Y) => {
1426
+ d && (m ?? r.length) <= R ? null : /* @__PURE__ */ n.jsx("div", { className: b("search-input-container border-bottom", _e.searchInputContainer), children: /* @__PURE__ */ n.jsx(ye.Control, { ref: f, type: "search", size: "sm", className: _e.searchInput, placeholder: i.searchPlaceholder, value: N, onChange: (Y) => {
1427
1427
  var he;
1428
- return D(((he = Y.target) == null ? void 0 : he.value) ?? "");
1428
+ return I(((he = Y.target) == null ? void 0 : he.value) ?? "");
1429
1429
  } }) }),
1430
- p ? /* @__PURE__ */ n.jsx("div", { className: _e.loadingContainer, children: /* @__PURE__ */ n.jsx(yn, { animation: "border", variant: "primary" }) }) : r.length > 0 && /* @__PURE__ */ n.jsxs("div", { ref: y, className: b("items", _e.itemsContainer), children: [
1430
+ p ? /* @__PURE__ */ n.jsx("div", { className: _e.loadingContainer, children: /* @__PURE__ */ n.jsx(yn, { animation: "border", variant: "primary" }) }) : r.length > 0 && /* @__PURE__ */ n.jsxs("div", { ref: w, className: b("items", _e.itemsContainer), children: [
1431
1431
  l && l.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: b("header-row border-bottom", _e.headerRow), children: [
1432
1432
  /* @__PURE__ */ n.jsx("div", { className: _e.name }),
1433
1433
  l == null ? void 0 : l.filter((Y) => Y.key !== g).map((Y) => /* @__PURE__ */ n.jsx("div", { className: _e.columnItem, style: {
@@ -1538,8 +1538,8 @@ const si = "_wrapper_1kgb8_1", ai = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1538
1538
  l();
1539
1539
  }, [l]), { isLoading: s, searchItems: o };
1540
1540
  }, hd = ({ searchTypes: e, navigateFunction: t, currentPath: r, homePath: s = "/" }) => {
1541
- var w;
1542
- const { texts: { appSearch: a } } = Z(pe), [o, i] = O(e.length > 0 ? ((w = e.at(0)) == null ? void 0 : w.key) ?? null : null), c = ee(() => e.find((j) => j.key === o) ?? null, [e, o]), [l, u] = O(""), [d, m] = ls(l, 500), { isLoading: x, searchItems: p } = Li(c, d), [h, g] = O(!1);
1541
+ var y;
1542
+ const { texts: { appSearch: a } } = Z(pe), [o, i] = O(e.length > 0 ? ((y = e.at(0)) == null ? void 0 : y.key) ?? null : null), c = ee(() => e.find((j) => j.key === o) ?? null, [e, o]), [l, u] = O(""), [d, m] = ls(l, 500), { isLoading: x, searchItems: p } = Li(c, d), [h, g] = O(!1);
1543
1543
  L(() => {
1544
1544
  (p.length > 0 || x) && g(!0);
1545
1545
  }, [p, x]);
@@ -1728,7 +1728,7 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1728
1728
  }, us = ({ show: e, onClick: t }) => /* @__PURE__ */ n.jsx("div", { className: b("luminus-backdrop", Yn.backdrop, {
1729
1729
  [Yn.show]: e
1730
1730
  }), onClick: () => t && t() }), fs = ({ src: e, alt: t, baseUrl: r, customToken: s, placeholder: a, ...o }) => /* @__PURE__ */ n.jsx("img", { ...o, alt: t ?? "", src: e ?? a }), fl = ({ show: e, onClose: t, photos: r, defaultIndex: s, uploadPhotosText: a, noPhotosText: o, onUploadPhotos: i, photoActions: c, baseUrl: l, customToken: u, placeholder: d, ImgComponent: m = fs }) => {
1731
- const x = ne(null), [p, h] = O(s), g = r.at(p), v = p > 0, w = p < r.length - 1;
1731
+ const x = ne(null), [p, h] = O(s), g = r.at(p), v = p > 0, y = p < r.length - 1;
1732
1732
  L(() => {
1733
1733
  e && h(s);
1734
1734
  }, [s, e]), L(() => {
@@ -1737,16 +1737,16 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1737
1737
  const j = S((f) => {
1738
1738
  switch (f.key) {
1739
1739
  case "ArrowLeft":
1740
- f.stopPropagation(), v && h((y) => y - 1);
1740
+ f.stopPropagation(), v && h((w) => w - 1);
1741
1741
  break;
1742
1742
  case "ArrowRight":
1743
- f.stopPropagation(), w && h((y) => y + 1);
1743
+ f.stopPropagation(), y && h((w) => w + 1);
1744
1744
  break;
1745
1745
  case "Escape":
1746
1746
  f.stopPropagation(), t();
1747
1747
  break;
1748
1748
  }
1749
- }, [w, v, t]);
1749
+ }, [y, v, t]);
1750
1750
  return Dr(j), /* @__PURE__ */ n.jsxs(on, { children: [
1751
1751
  /* @__PURE__ */ n.jsx(us, { show: e, onClick: t }),
1752
1752
  /* @__PURE__ */ n.jsx("div", { ref: x, className: b("luminus-lightbox rounded shadow", De.lightbox, {
@@ -1757,14 +1757,14 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1757
1757
  i && /* @__PURE__ */ n.jsx(is, { accept: ".jpg,.jpeg,.png", onUpload: (f) => {
1758
1758
  f.length > 0 && i(Array.from(f));
1759
1759
  }, icon: /* @__PURE__ */ n.jsx(wr, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: a ?? null }),
1760
- g && (c == null ? void 0 : c.map(({ label: f, onClick: y, ..._ }, D) => /* @__PURE__ */ n.jsx(
1760
+ g && (c == null ? void 0 : c.map(({ label: f, onClick: w, ...N }, I) => /* @__PURE__ */ n.jsx(
1761
1761
  Le,
1762
1762
  {
1763
- onClick: () => y(g.id),
1764
- ..._,
1763
+ onClick: () => w(g.id),
1764
+ ...N,
1765
1765
  children: f
1766
1766
  },
1767
- `action-${D}`
1767
+ `action-${I}`
1768
1768
  )))
1769
1769
  ] }),
1770
1770
  /* @__PURE__ */ n.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ n.jsx(Te, { style: { fontSize: "32px" } }) })
@@ -1773,11 +1773,11 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1773
1773
  g && /* @__PURE__ */ n.jsxs("div", { className: De.photoContainer, children: [
1774
1774
  /* @__PURE__ */ n.jsx("div", { role: v ? "button" : void 0, className: b("align-items-start", De.navButton), onClick: () => v && h((f) => f - 1), children: v && /* @__PURE__ */ n.jsx(un, { style: { fontSize: "40px" } }) }),
1775
1775
  /* @__PURE__ */ n.jsx(m, { src: g.lgSrc, alt: g.alt, className: b("rounded", De.photo), baseUrl: l, customToken: u, placeholder: d }),
1776
- /* @__PURE__ */ n.jsx("div", { role: w ? "button" : void 0, className: b("align-items-end", De.navButton), onClick: () => w && h((f) => f + 1), children: w && /* @__PURE__ */ n.jsx(fn, { style: { fontSize: "40px" } }) })
1776
+ /* @__PURE__ */ n.jsx("div", { role: y ? "button" : void 0, className: b("align-items-end", De.navButton), onClick: () => y && h((f) => f + 1), children: y && /* @__PURE__ */ n.jsx(fn, { style: { fontSize: "40px" } }) })
1777
1777
  ] }),
1778
- /* @__PURE__ */ n.jsx("div", { className: De.photosPreview, children: r.map((f, y) => /* @__PURE__ */ n.jsxs("div", { role: "button", onClick: () => h(y), className: "position-relative", children: [
1779
- /* @__PURE__ */ n.jsx(m, { role: y !== p ? "button" : void 0, src: f.smSrc, alt: f.alt, className: b("rounded", De.photo, {
1780
- [De.selected]: y === p
1778
+ /* @__PURE__ */ n.jsx("div", { className: De.photosPreview, children: r.map((f, w) => /* @__PURE__ */ n.jsxs("div", { role: "button", onClick: () => h(w), className: "position-relative", children: [
1779
+ /* @__PURE__ */ n.jsx(m, { role: w !== p ? "button" : void 0, src: f.smSrc, alt: f.alt, className: b("rounded", De.photo, {
1780
+ [De.selected]: w === p
1781
1781
  }), baseUrl: l, customToken: u, placeholder: d }, f.id),
1782
1782
  f.isDefault && /* @__PURE__ */ n.jsx("div", { className: b("text-primary", De.defaultIndicator), children: /* @__PURE__ */ n.jsx(ca, {}) })
1783
1783
  ] })) })
@@ -1790,7 +1790,7 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1790
1790
  x(null);
1791
1791
  return;
1792
1792
  }
1793
- const v = e.findIndex((w) => w.isDefault);
1793
+ const v = e.findIndex((y) => y.isDefault);
1794
1794
  x(v > -1 ? v : 0);
1795
1795
  }, [e]), !p && t && u ? /* @__PURE__ */ n.jsx(is, { accept: ".jpg,.jpeg,.png", onUpload: (v) => {
1796
1796
  v.length > 0 && t(Array.from(v));
@@ -1927,32 +1927,32 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1927
1927
  s && s(((x = m.target) == null ? void 0 : x.checked) ?? !1);
1928
1928
  }, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
1929
1929
  }, ot = ({ InputContainer: e = tt, type: t, value: r, onChange: s, debounceMs: a, label: o, withoutLabel: i, placeholder: c, size: l, hidden: u, disabled: d, showClearIcon: m, clearValue: x, list: p, className: h, step: g, noSelectOnFocus: v }) => {
1930
- const w = t === "number", j = S(() => {
1930
+ const y = t === "number", j = S(() => {
1931
1931
  if (!s)
1932
1932
  return;
1933
- const C = x ?? null;
1934
- s(w ? C ? Number(C) : null : (C == null ? void 0 : C.toString()) ?? "");
1935
- }, [x, w, s]), f = ne(null), [y, _] = O((r == null ? void 0 : r.toString()) ?? ""), D = S((C) => {
1936
- const N = C;
1937
- s && (w && s(N == null || N === "" ? null : Number(N)), s(N || null));
1938
- }, [w, s]), $ = S((C) => {
1933
+ const E = x ?? null;
1934
+ s(y ? E ? Number(E) : null : (E == null ? void 0 : E.toString()) ?? "");
1935
+ }, [x, y, s]), f = ne(null), [w, N] = O((r == null ? void 0 : r.toString()) ?? ""), I = S((E) => {
1936
+ const _ = E;
1937
+ s && (y && s(_ == null || _ === "" ? null : Number(_)), s(_ || null));
1938
+ }, [y, s]), $ = S((E) => {
1939
1939
  var P;
1940
- const N = (P = C.target) == null ? void 0 : P.value;
1940
+ const _ = (P = E.target) == null ? void 0 : P.value;
1941
1941
  if (!a) {
1942
- D(N);
1942
+ I(_);
1943
1943
  return;
1944
1944
  }
1945
- _(N), f.current !== null && window.clearTimeout(f.current), f.current = window.setTimeout(() => {
1946
- D(N);
1945
+ N(_), f.current !== null && window.clearTimeout(f.current), f.current = window.setTimeout(() => {
1946
+ I(_);
1947
1947
  }, a);
1948
- }, [a, D]);
1948
+ }, [a, I]);
1949
1949
  L(() => {
1950
- _(r === null ? "" : r.toString());
1950
+ N(r === null ? "" : r.toString());
1951
1951
  }, [r]);
1952
- const [I, F] = O(!1), E = ga(t, r ? r.toString() ?? null : null, I);
1952
+ const [k, F] = O(!1), D = ga(t, r ? r.toString() ?? null : null, k);
1953
1953
  return /* @__PURE__ */ n.jsxs(e, { withoutLabel: i, label: o ?? "", hidden: u, className: h, children: [
1954
- /* @__PURE__ */ n.jsx(ye.Control, { type: E, placeholder: c ?? o, size: l, value: a ? y : (r == null ? void 0 : r.toString()) ?? "", onChange: $, className: h ?? "", hidden: u, disabled: d ?? !1, list: p, onFocus: (C) => {
1955
- F(!0), !v && C.target.select();
1954
+ /* @__PURE__ */ n.jsx(ye.Control, { type: D, placeholder: c ?? o, size: l, value: a ? w : (r == null ? void 0 : r.toString()) ?? "", onChange: $, className: h ?? "", hidden: u, disabled: d ?? !1, list: p, onFocus: (E) => {
1955
+ F(!0), !v && E.target.select();
1956
1956
  }, onBlur: () => F(!1), step: g }),
1957
1957
  m && r !== null && s && !d && /* @__PURE__ */ n.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ n.jsx(Te, {}) }) })
1958
1958
  ] });
@@ -1980,54 +1980,54 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1980
1980
  return;
1981
1981
  const j = m ?? null;
1982
1982
  s(i ? j ? Number(j) : null : (j == null ? void 0 : j.toString()) ?? "");
1983
- }, [m, i, s]), w = ee(() => {
1983
+ }, [m, i, s]), y = ee(() => {
1984
1984
  const j = r ?? [];
1985
1985
  if (g !== void 0 && t && !j.some((f) => f.id === t)) {
1986
1986
  const f = { id: t, name: g };
1987
1987
  j.push(f);
1988
1988
  }
1989
- return j.sort((f, y) => (x ? 0 : (f.name ?? "").localeCompare(y.name ?? "")) ?? null);
1989
+ return j.sort((f, w) => (x ? 0 : (f.name ?? "").localeCompare(w.name ?? "")) ?? null);
1990
1990
  }, [r, x, t, g]);
1991
1991
  return /* @__PURE__ */ n.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: l, className: p, children: [
1992
1992
  /* @__PURE__ */ n.jsxs(ye.Select, { size: c, value: t ?? "", onChange: (j) => {
1993
- var y;
1993
+ var w;
1994
1994
  if (!s)
1995
1995
  return;
1996
- const f = (y = j.target) == null ? void 0 : y.value;
1996
+ const f = (w = j.target) == null ? void 0 : w.value;
1997
1997
  i && s(f ? parseInt(f, 10) : null), s(f || null);
1998
1998
  }, className: p ?? "", hidden: l, disabled: u ?? !1, children: [
1999
1999
  h && !(t == null || t === "") ? void 0 : /* @__PURE__ */ n.jsx("option", { value: "" }),
2000
- w == null ? void 0 : w.map((j) => /* @__PURE__ */ n.jsx("option", { value: j.id ?? "", children: j.name }, j.id))
2000
+ y == null ? void 0 : y.map((j) => /* @__PURE__ */ n.jsx("option", { value: j.id ?? "", children: j.name }, j.id))
2001
2001
  ] }),
2002
2002
  d && t && s && !u && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: v, children: /* @__PURE__ */ n.jsx(Te, {}) }) })
2003
2003
  ] });
2004
- }, vd = ({ InputContainer: e = tt, items: t, selectedItemNavigateTo: r, onSearchQueryChange: s, texts: a, isLoading: o, value: i, onSelect: c, label: l, withoutLabel: u, size: d, dropdownItemsNameWidth: m, additionalColumns: x, hidden: p, disabled: h, displayIdAsName: g, CustomOnChangeComponent: v, className: w, archiveColumn: j }) => {
2005
- const [f, y] = O(!1), _ = S((C) => {
2006
- c && c(C);
2007
- }, [c]), D = S((C) => {
2008
- y(!1), _(C);
2009
- }, [_]), $ = ne(null), I = r !== void 0, F = I && i !== null, E = ee(() => {
2010
- var C, N;
2011
- return g ? ((C = i == null ? void 0 : i.id) == null ? void 0 : C.toString()) ?? "" : i != null && i.name && i.name.length > 0 ? i.name : ((N = i == null ? void 0 : i.id) == null ? void 0 : N.toString()) ?? "";
2004
+ }, vd = ({ InputContainer: e = tt, items: t, selectedItemNavigateTo: r, onSearchQueryChange: s, texts: a, isLoading: o, value: i, onSelect: c, label: l, withoutLabel: u, size: d, dropdownItemsNameWidth: m, additionalColumns: x, hidden: p, disabled: h, displayIdAsName: g, CustomOnChangeComponent: v, className: y, archiveColumn: j, icon: f }) => {
2005
+ const [w, N] = O(!1), I = S((_) => {
2006
+ c && c(_);
2007
+ }, [c]), $ = S((_) => {
2008
+ N(!1), I(_);
2009
+ }, [I]), k = ne(null), F = r !== void 0, D = F && i !== null, E = ee(() => {
2010
+ var _, P;
2011
+ return g ? ((_ = i == null ? void 0 : i.id) == null ? void 0 : _.toString()) ?? "" : i != null && i.name && i.name.length > 0 ? i.name : ((P = i == null ? void 0 : i.id) == null ? void 0 : P.toString()) ?? "";
2012
2012
  }, [i, g]);
2013
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { withoutLabel: u, label: l ?? "", hidden: p, inputContainerClassName: b({ "luminus-dropdown-select-open": f }), className: w, children: [
2013
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { withoutLabel: u, label: l ?? "", hidden: p, inputContainerClassName: b({ "luminus-dropdown-select-open": w }), className: y, children: [
2014
2014
  /* @__PURE__ */ n.jsxs(ms, { currentSelection: i, selectedItemNavigateTo: r, children: [
2015
2015
  g && (i == null ? void 0 : i.name) && /* @__PURE__ */ n.jsx(X, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: i.name }),
2016
2016
  /* @__PURE__ */ n.jsxs(
2017
2017
  ye.Select,
2018
2018
  {
2019
- ref: $,
2019
+ ref: k,
2020
2020
  size: d,
2021
2021
  value: (i == null ? void 0 : i.id) ?? "",
2022
- onMouseDown: (C) => {
2023
- C.currentTarget.focus(), C.preventDefault();
2022
+ onMouseDown: (_) => {
2023
+ _.currentTarget.focus(), _.preventDefault();
2024
2024
  },
2025
2025
  onClick: () => {
2026
- !I && !h && y(!0);
2026
+ !F && !h && N(!0);
2027
2027
  },
2028
2028
  className: b("w-100", {
2029
2029
  "luminus-dropdown-picker-disabled": h,
2030
- "luminus-dropdown-picker-link": F
2030
+ "luminus-dropdown-picker-link": D
2031
2031
  }),
2032
2032
  hidden: p,
2033
2033
  children: [
@@ -2036,14 +2036,14 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
2036
2036
  ]
2037
2037
  }
2038
2038
  ),
2039
- v || !h && I ? /* @__PURE__ */ n.jsxs("div", { className: "custom-picker-button", children: [
2040
- !v && !h && I && /* @__PURE__ */ n.jsx(re, { size: "sm", color: "secondary", onClick: (C) => {
2041
- C.preventDefault(), C.stopPropagation(), y(!0);
2042
- }, children: /* @__PURE__ */ n.jsx(_r, {}) }),
2039
+ v || !h && F ? /* @__PURE__ */ n.jsxs("div", { className: "custom-picker-button", children: [
2040
+ !v && !h && F && /* @__PURE__ */ n.jsx(re, { size: "sm", color: "secondary", onClick: (_) => {
2041
+ _.preventDefault(), _.stopPropagation(), N(!0);
2042
+ }, children: f ?? /* @__PURE__ */ n.jsx(_r, {}) }),
2043
2043
  v ?? null
2044
2044
  ] }) : null
2045
2045
  ] }),
2046
- $.current && /* @__PURE__ */ n.jsx(wn, { show: f, onCancel: () => y(!1), items: t, currentSelection: i, onSelectionChange: D, onSearchQueryChange: s, texts: a, itemsNameWidth: m, additionalColumns: x, isLoading: o, disabled: h, inputRef: $, archiveColumn: j, displayIdAsName: g })
2046
+ k.current && /* @__PURE__ */ n.jsx(wn, { show: w, onCancel: () => N(!1), items: t, currentSelection: i, onSelectionChange: $, onSearchQueryChange: s, texts: a, itemsNameWidth: m, additionalColumns: x, isLoading: o, disabled: h, inputRef: k, archiveColumn: j, displayIdAsName: g })
2047
2047
  ] }) });
2048
2048
  }, jd = ({ InputContainer: e = tt, value: t, onChange: r, label: s, size: a, showClearIcon: o, clearValue: i, hidden: c, disabled: l, rows: u, withoutLabel: d, debounceMs: m, className: x }) => {
2049
2049
  const p = S(() => {
@@ -2051,20 +2051,20 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
2051
2051
  return;
2052
2052
  const f = i ?? null;
2053
2053
  r((f == null ? void 0 : f.toString()) ?? "");
2054
- }, [i, r]), h = ne(null), [g, v] = O((t == null ? void 0 : t.toString()) ?? ""), w = S((f) => {
2055
- const y = f;
2056
- r && r(y || null);
2054
+ }, [i, r]), h = ne(null), [g, v] = O((t == null ? void 0 : t.toString()) ?? ""), y = S((f) => {
2055
+ const w = f;
2056
+ r && r(w || null);
2057
2057
  }, [r]), j = S((f) => {
2058
- var _;
2059
- const y = (_ = f.target) == null ? void 0 : _.value;
2058
+ var N;
2059
+ const w = (N = f.target) == null ? void 0 : N.value;
2060
2060
  if (!m) {
2061
- w(y);
2061
+ y(w);
2062
2062
  return;
2063
2063
  }
2064
- v(y), h.current !== null && window.clearTimeout(h.current), h.current = window.setTimeout(() => {
2065
- w(y);
2064
+ v(w), h.current !== null && window.clearTimeout(h.current), h.current = window.setTimeout(() => {
2065
+ y(w);
2066
2066
  }, m);
2067
- }, [m, w]);
2067
+ }, [m, y]);
2068
2068
  return L(() => {
2069
2069
  v(t === null ? "" : t.toString());
2070
2070
  }, [t]), /* @__PURE__ */ n.jsxs(e, { label: s ?? "", hidden: c, withoutLabel: d, className: x, isForTextAreaInput: !0, children: [
@@ -2072,36 +2072,36 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
2072
2072
  o && t && r && !l && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: p, children: /* @__PURE__ */ n.jsx(Te, {}) }) })
2073
2073
  ] });
2074
2074
  }, yd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, label: a, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: x, step: p, stepperStep: h = 1, min: g, max: v }) => {
2075
- const w = S(() => {
2075
+ const y = S(() => {
2076
2076
  if (!r)
2077
2077
  return;
2078
2078
  const $ = m ?? null;
2079
2079
  r($ ? Number($) : null);
2080
- }, [m, r]), j = ne(null), [f, y] = O((t == null ? void 0 : t.toString()) ?? ""), _ = S(($) => {
2081
- const I = $;
2082
- r && r(I == null || I === "" ? null : gt(Number(I), g, v));
2083
- }, [v, g, r]), D = S(($) => {
2080
+ }, [m, r]), j = ne(null), [f, w] = O((t == null ? void 0 : t.toString()) ?? ""), N = S(($) => {
2081
+ const k = $;
2082
+ r && r(k == null || k === "" ? null : gt(Number(k), g, v));
2083
+ }, [v, g, r]), I = S(($) => {
2084
2084
  var F;
2085
- const I = (F = $.target) == null ? void 0 : F.value;
2085
+ const k = (F = $.target) == null ? void 0 : F.value;
2086
2086
  if (!s) {
2087
- _(I);
2087
+ N(k);
2088
2088
  return;
2089
2089
  }
2090
- y(gt(Number(I), g, v).toString()), j.current !== null && window.clearTimeout(j.current), j.current = window.setTimeout(() => {
2091
- _(I);
2090
+ w(gt(Number(k), g, v).toString()), j.current !== null && window.clearTimeout(j.current), j.current = window.setTimeout(() => {
2091
+ N(k);
2092
2092
  }, s);
2093
- }, [s, _, v, g]);
2093
+ }, [s, N, v, g]);
2094
2094
  return L(() => {
2095
- y(t === null ? "" : gt(t, g, v).toString());
2095
+ w(t === null ? "" : gt(t, g, v).toString());
2096
2096
  }, [v, g, t]), /* @__PURE__ */ n.jsx(e, { withoutLabel: o, label: a ?? "", hidden: l, className: x, children: /* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
2097
- /* @__PURE__ */ n.jsx(ye.Control, { type: "number", placeholder: i ?? a, size: c, value: s ? f : t ?? "", onChange: D, className: `luminus-numeric-stepper ${x ?? ""}`, hidden: l, disabled: u ?? !1, step: p }),
2097
+ /* @__PURE__ */ n.jsx(ye.Control, { type: "number", placeholder: i ?? a, size: c, value: s ? f : t ?? "", onChange: I, className: `luminus-numeric-stepper ${x ?? ""}`, hidden: l, disabled: u ?? !1, step: p }),
2098
2098
  /* @__PURE__ */ n.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ n.jsx(re, { size: "sm", onClick: ($) => {
2099
- $.preventDefault(), $.stopPropagation(), _(((t ?? 0) - h).toString());
2099
+ $.preventDefault(), $.stopPropagation(), N(((t ?? 0) - h).toString());
2100
2100
  }, children: /* @__PURE__ */ n.jsx(Nr, {}) }) }),
2101
2101
  /* @__PURE__ */ n.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ n.jsx(re, { size: "sm", onClick: ($) => {
2102
- $.preventDefault(), $.stopPropagation(), _(((t ?? 0) + h).toString());
2102
+ $.preventDefault(), $.stopPropagation(), N(((t ?? 0) + h).toString());
2103
2103
  }, children: /* @__PURE__ */ n.jsx(Sr, {}) }) }),
2104
- d && t && r && !u && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ n.jsx(Te, {}) }) })
2104
+ d && t && r && !u && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ n.jsx(Te, {}) }) })
2105
2105
  ] }) });
2106
2106
  };
2107
2107
  function gs(e, t) {
@@ -2209,8 +2209,8 @@ function Qn(e, t, r) {
2209
2209
  if (["", "-"].indexOf(e) !== -1)
2210
2210
  return e;
2211
2211
  var s = (e.indexOf(".") !== -1 || r) && t, a = _n(e), o = a.beforeDecimal, i = a.afterDecimal, c = a.hasNegation, l = parseFloat("0." + (i || "0")), u = i.length <= t ? "0." + i : l.toFixed(t), d = u.split("."), m = o;
2212
- o && Number(d[0]) && (m = o.split("").reverse().reduce(function(g, v, w) {
2213
- return g.length > w ? (Number(g[0]) + Number(v)).toString() + g.substring(1, g.length) : v + g;
2212
+ o && Number(d[0]) && (m = o.split("").reverse().reduce(function(g, v, y) {
2213
+ return g.length > y ? (Number(g[0]) + Number(v)).toString() + g.substring(1, g.length) : v + g;
2214
2214
  }, d[0]));
2215
2215
  var x = vs(d[1] || "", t, r), p = c ? "-" : "", h = s ? "." : "";
2216
2216
  return "" + p + m + h + x;
@@ -2268,8 +2268,8 @@ function zl(e) {
2268
2268
  }
2269
2269
  function Hl(e, t, r, s, a, o, i) {
2270
2270
  i === void 0 && (i = zl);
2271
- var c = a.findIndex(function(y) {
2272
- return y;
2271
+ var c = a.findIndex(function(w) {
2272
+ return w;
2273
2273
  }), l = e.slice(0, c);
2274
2274
  !t && !r.startsWith(l) && (t = l, r = l + r, s = s + l.length);
2275
2275
  for (var u = r.length, d = e.length, m = {}, x = new Array(u), p = 0; p < u; p++) {
@@ -2288,12 +2288,12 @@ function Hl(e, t, r, s, a, o, i) {
2288
2288
  }
2289
2289
  }
2290
2290
  }
2291
- for (var w = s; w < u && (x[w] === -1 || !o(r[w])); )
2292
- w++;
2293
- var j = w === u || x[w] === -1 ? d : x[w];
2294
- for (w = s - 1; w > 0 && x[w] === -1; )
2295
- w--;
2296
- var f = w === -1 || x[w] === -1 ? 0 : x[w] + 1;
2291
+ for (var y = s; y < u && (x[y] === -1 || !o(r[y])); )
2292
+ y++;
2293
+ var j = y === u || x[y] === -1 ? d : x[y];
2294
+ for (y = s - 1; y > 0 && x[y] === -1; )
2295
+ y--;
2296
+ var f = y === -1 || x[y] === -1 ? 0 : x[y] + 1;
2297
2297
  return f > j ? j : s - f < j - s ? f : j;
2298
2298
  }
2299
2299
  function Zn(e, t, r, s) {
@@ -2319,8 +2319,8 @@ function Wl(e) {
2319
2319
  function ws(e, t, r, s, a, o) {
2320
2320
  o === void 0 && (o = Pe);
2321
2321
  var i = Ll(function(h, g) {
2322
- var v, w;
2323
- return ps(h) ? (w = "", v = "") : typeof h == "number" || g ? (w = typeof h == "number" ? js(h) : h, v = s(w)) : (w = a(h, void 0), v = s(w)), { formattedValue: v, numAsString: w };
2322
+ var v, y;
2323
+ return ps(h) ? (y = "", v = "") : typeof h == "number" || g ? (y = typeof h == "number" ? js(h) : h, v = s(y)) : (y = a(h, void 0), v = s(y)), { formattedValue: v, numAsString: y };
2324
2324
  }), c = O(function() {
2325
2325
  return i(it(e) ? t : e, r);
2326
2326
  }), l = c[0], u = c[1], d = function(h, g) {
@@ -2360,12 +2360,12 @@ function Gl(e) {
2360
2360
  g === void 0 && (g = Pe);
2361
2361
  var v = e.onBlur;
2362
2362
  v === void 0 && (v = Pe);
2363
- var w = e.value, j = e.getCaretBoundary;
2363
+ var y = e.value, j = e.getCaretBoundary;
2364
2364
  j === void 0 && (j = Wl);
2365
2365
  var f = e.isValidInputCharacter;
2366
2366
  f === void 0 && (f = wt);
2367
- var y = e.isCharacterSame, _ = gs(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), D = ws(w, l, !!u, i, c, d), $ = D[0], I = $.formattedValue, F = $.numAsString, E = D[1], C = ne(), N = ne({ formattedValue: I, numAsString: F }), P = function(T, M) {
2368
- N.current = { formattedValue: T.formattedValue, numAsString: T.value }, E(T, M);
2367
+ var w = e.isCharacterSame, N = gs(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), I = ws(y, l, !!u, i, c, d), $ = I[0], k = $.formattedValue, F = $.numAsString, D = I[1], E = ne(), _ = ne({ formattedValue: k, numAsString: F }), P = function(T, M) {
2368
+ _.current = { formattedValue: T.formattedValue, numAsString: T.value }, D(T, M);
2369
2369
  }, U = O(!1), Q = U[0], A = U[1], R = ne(null), V = ne({
2370
2370
  setCaretTimeout: null,
2371
2371
  focusTimeout: null
@@ -2389,9 +2389,9 @@ function Gl(e) {
2389
2389
  }, te = function(T, M, q) {
2390
2390
  return Zn(T, M, j(T), q);
2391
2391
  }, B = function(T, M, q) {
2392
- var ce = j(M), Ne = Hl(M, I, T, q, ce, f, y);
2392
+ var ce = j(M), Ne = Hl(M, k, T, q, ce, f, w);
2393
2393
  return Ne = Zn(M, Ne, ce), Ne;
2394
- }, k = function(T) {
2394
+ }, C = function(T) {
2395
2395
  var M = T.formattedValue;
2396
2396
  M === void 0 && (M = "");
2397
2397
  var q = T.input, ce = T.source, Ne = T.event, de = T.numAsString, ae;
@@ -2399,30 +2399,30 @@ function Gl(e) {
2399
2399
  var ke = T.inputValue || q.value, Ee = qt(q);
2400
2400
  q.value = M, ae = B(ke, M, Ee), ae !== void 0 && K(q, ae, M);
2401
2401
  }
2402
- M !== I && P(G(M, de), { event: Ne, source: ce });
2402
+ M !== k && P(G(M, de), { event: Ne, source: ce });
2403
2403
  };
2404
2404
  L(function() {
2405
- var T = N.current, M = T.formattedValue, q = T.numAsString;
2406
- (I !== M || F !== q) && P(G(I, F), {
2405
+ var T = _.current, M = T.formattedValue, q = T.numAsString;
2406
+ (k !== M || F !== q) && P(G(k, F), {
2407
2407
  event: void 0,
2408
2408
  source: yt.props
2409
2409
  });
2410
- }, [I, F]);
2410
+ }, [k, F]);
2411
2411
  var H = R.current ? qt(R.current) : void 0, le = typeof window < "u" ? Ea : L;
2412
2412
  le(function() {
2413
2413
  var T = R.current;
2414
- if (I !== N.current.formattedValue && T) {
2415
- var M = B(N.current.formattedValue, I, H);
2416
- T.value = I, K(T, M, I);
2414
+ if (k !== _.current.formattedValue && T) {
2415
+ var M = B(_.current.formattedValue, k, H);
2416
+ T.value = k, K(T, M, k);
2417
2417
  }
2418
- }, [I]);
2418
+ }, [k]);
2419
2419
  var fe = function(T, M, q) {
2420
- var ce = M.target, Ne = C.current ? Ml(C.current, ce.selectionEnd) : ys(I, T), de = Object.assign(Object.assign({}, Ne), { lastValue: I }), ae = c(T, de), ke = W(ae);
2420
+ var ce = M.target, Ne = E.current ? Ml(E.current, ce.selectionEnd) : ys(k, T), de = Object.assign(Object.assign({}, Ne), { lastValue: k }), ae = c(T, de), ke = W(ae);
2421
2421
  if (ae = c(ke, void 0), m && !m(G(ke, ae))) {
2422
- var Ee = M.target, z = qt(Ee), se = B(T, I, z);
2423
- return Ee.value = I, K(Ee, se, I), !1;
2422
+ var Ee = M.target, z = qt(Ee), se = B(T, k, z);
2423
+ return Ee.value = k, K(Ee, se, k), !1;
2424
2424
  }
2425
- return k({
2425
+ return C({
2426
2426
  formattedValue: ke,
2427
2427
  numAsString: ae,
2428
2428
  inputValue: T,
@@ -2433,10 +2433,10 @@ function Gl(e) {
2433
2433
  }, Ce = function(T, M) {
2434
2434
  M === void 0 && (M = 0);
2435
2435
  var q = T.selectionStart, ce = T.selectionEnd;
2436
- C.current = { selectionStart: q, selectionEnd: ce + M };
2436
+ E.current = { selectionStart: q, selectionEnd: ce + M };
2437
2437
  }, J = function(T) {
2438
2438
  var M = T.target, q = M.value, ce = fe(q, T, yt.event);
2439
- ce && x(T), C.current = void 0;
2439
+ ce && x(T), E.current = void 0;
2440
2440
  }, ve = function(T) {
2441
2441
  var M = T.target, q = T.key, ce = M.selectionStart, Ne = M.selectionEnd, de = M.value;
2442
2442
  de === void 0 && (de = "");
@@ -2477,9 +2477,9 @@ function Gl(e) {
2477
2477
  }, 0);
2478
2478
  }, Y = function(T) {
2479
2479
  R.current = null, clearTimeout(V.current.focusTimeout), clearTimeout(V.current.setCaretTimeout), v(T);
2480
- }, he = Q && Vl() ? "numeric" : void 0, be = Object.assign({ inputMode: he }, _, {
2480
+ }, he = Q && Vl() ? "numeric" : void 0, be = Object.assign({ inputMode: he }, N, {
2481
2481
  type: t,
2482
- value: I,
2482
+ value: k,
2483
2483
  onChange: J,
2484
2484
  onKeyDown: ve,
2485
2485
  onMouseUp: $e,
@@ -2487,7 +2487,7 @@ function Gl(e) {
2487
2487
  onBlur: Y
2488
2488
  });
2489
2489
  if (r === "text")
2490
- return a ? Se.createElement(Se.Fragment, null, a(I, _) || null) : Se.createElement("span", Object.assign({}, _, { ref: o }), I);
2490
+ return a ? Se.createElement(Se.Fragment, null, a(k, N) || null) : Se.createElement("span", Object.assign({}, N, { ref: o }), k);
2491
2491
  if (s) {
2492
2492
  var rt = s;
2493
2493
  return Se.createElement(rt, Object.assign({}, be, { ref: o }));
@@ -2540,22 +2540,22 @@ function Zl(e, t, r) {
2540
2540
  var v = c === 0 ? "" : h;
2541
2541
  e = e.substring(0, d) + v + e.substring(d + 1, e.length);
2542
2542
  }
2543
- var w = function(R, V, W) {
2543
+ var y = function(R, V, W) {
2544
2544
  var G = !1, K = !1;
2545
2545
  o.startsWith("-") ? G = !1 : R.startsWith("--") ? (G = !1, K = !0) : i.startsWith("-") && R.length === i.length ? G = !1 : R[0] === "-" && (G = !0);
2546
2546
  var te = G ? 1 : 0;
2547
2547
  return K && (te = 2), te && (R = R.substring(te), V -= te, W -= te), { value: R, start: V, end: W, hasNegation: G };
2548
- }, j = w(e, d, m), f = j.hasNegation;
2548
+ }, j = y(e, d, m), f = j.hasNegation;
2549
2549
  s = j, e = s.value, d = s.start, m = s.end;
2550
- var y = w(t.lastValue, l.start, l.end), _ = y.start, D = y.end, $ = y.value, I = e.substring(d, m);
2551
- e.length && $.length && (_ > $.length - i.length || D < o.length) && !(I && i.startsWith(I)) && (e = $);
2550
+ var w = y(t.lastValue, l.start, l.end), N = w.start, I = w.end, $ = w.value, k = e.substring(d, m);
2551
+ e.length && $.length && (N > $.length - i.length || I < o.length) && !(k && i.startsWith(k)) && (e = $);
2552
2552
  var F = 0;
2553
2553
  e.startsWith(o) ? F += o.length : d < o.length && (F = d), e = e.substring(F), m -= F;
2554
- var E = e.length, C = e.length - i.length;
2555
- e.endsWith(i) ? E = C : (m > C || m > e.length - i.length) && (E = m), e = e.substring(0, E), e = Kl(f ? "-" + e : e, a), e = (e.match(ql(h)) || []).join("");
2556
- var N = e.indexOf(h);
2554
+ var D = e.length, E = e.length - i.length;
2555
+ e.endsWith(i) ? D = E : (m > E || m > e.length - i.length) && (D = m), e = e.substring(0, D), e = Kl(f ? "-" + e : e, a), e = (e.match(ql(h)) || []).join("");
2556
+ var _ = e.indexOf(h);
2557
2557
  e = e.replace(new RegExp(xs(h), "g"), function(R, V) {
2558
- return V === N ? "." : "";
2558
+ return V === _ ? "." : "";
2559
2559
  });
2560
2560
  var P = _n(e, a), U = P.beforeDecimal, Q = P.afterDecimal, A = P.addNegation;
2561
2561
  return u.end - u.start < l.end - l.start && U === "" && g && !parseFloat(Q) && (e = A ? "-" : ""), e;
@@ -2596,15 +2596,15 @@ function ec(e) {
2596
2596
  o === void 0 && (o = Pe);
2597
2597
  var i = e.thousandSeparator, c = e.decimalScale, l = e.fixedDecimalScale, u = e.prefix;
2598
2598
  u === void 0 && (u = "");
2599
- var d = e.defaultValue, m = e.value, x = e.valueIsNumericString, p = e.onValueChange, h = gs(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), g = Bt(e), v = g.decimalSeparator, w = g.allowedDecimalSeparators, j = function(A) {
2599
+ var d = e.defaultValue, m = e.value, x = e.valueIsNumericString, p = e.onValueChange, h = gs(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), g = Bt(e), v = g.decimalSeparator, y = g.allowedDecimalSeparators, j = function(A) {
2600
2600
  return Jn(A, e);
2601
2601
  }, f = function(A, R) {
2602
2602
  return Zl(A, R, e);
2603
- }, y = it(m) ? d : m, _ = x ?? Ql(y, u, t);
2604
- it(m) ? it(d) || (_ = _ || typeof d == "number") : _ = _ || typeof m == "number";
2605
- var D = function(A) {
2606
- return ps(A) ? A : (typeof A == "number" && (A = js(A)), _ && typeof c == "number" ? Qn(A, c, !!l) : A);
2607
- }, $ = ws(D(m), D(d), !!_, j, f, p), I = $[0], F = I.numAsString, E = I.formattedValue, C = $[1], N = function(A) {
2603
+ }, w = it(m) ? d : m, N = x ?? Ql(w, u, t);
2604
+ it(m) ? it(d) || (N = N || typeof d == "number") : N = N || typeof m == "number";
2605
+ var I = function(A) {
2606
+ return ps(A) ? A : (typeof A == "number" && (A = js(A)), N && typeof c == "number" ? Qn(A, c, !!l) : A);
2607
+ }, $ = ws(I(m), I(d), !!N, j, f, p), k = $[0], F = k.numAsString, D = k.formattedValue, E = $[1], _ = function(A) {
2608
2608
  var R = A.target, V = A.key, W = R.selectionStart, G = R.selectionEnd, K = R.value;
2609
2609
  if (K === void 0 && (K = ""), (V === "Backspace" || V === "Delete") && G < u.length) {
2610
2610
  A.preventDefault();
@@ -2614,14 +2614,14 @@ function ec(e) {
2614
2614
  a(A);
2615
2615
  return;
2616
2616
  }
2617
- V === "Backspace" && K[0] === "-" && W === u.length + 1 && r && Ze(R, 1), c && l && (V === "Backspace" && K[W - 1] === v ? (Ze(R, W - 1), A.preventDefault()) : V === "Delete" && K[W] === v && A.preventDefault()), w != null && w.includes(V) && K[W] === v && Ze(R, W + 1);
2617
+ V === "Backspace" && K[0] === "-" && W === u.length + 1 && r && Ze(R, 1), c && l && (V === "Backspace" && K[W - 1] === v ? (Ze(R, W - 1), A.preventDefault()) : V === "Delete" && K[W] === v && A.preventDefault()), y != null && y.includes(V) && K[W] === v && Ze(R, W + 1);
2618
2618
  var te = i === !0 ? "," : i;
2619
2619
  V === "Backspace" && K[W - 1] === te && Ze(R, W - 1), V === "Delete" && K[W] === te && Ze(R, W + 1), a(A);
2620
2620
  }, P = function(A) {
2621
2621
  var R = F;
2622
2622
  if (R.match(/\d/g) || (R = ""), s || (R = Al(R)), l && c && (R = Qn(R, c, l)), R !== F) {
2623
2623
  var V = Jn(R, e);
2624
- C({
2624
+ E({
2625
2625
  formattedValue: V,
2626
2626
  value: R,
2627
2627
  floatValue: parseFloat(R)
@@ -2634,21 +2634,21 @@ function ec(e) {
2634
2634
  }, U = function(A) {
2635
2635
  return A === v ? !0 : wt(A);
2636
2636
  }, Q = function(A) {
2637
- var R = A.currentValue, V = A.lastValue, W = A.formattedValue, G = A.currentValueIndex, K = A.formattedValueIndex, te = R[G], B = W[K], k = ys(V, R), H = k.to;
2638
- return G >= H.start && G < H.end && w && w.includes(te) && B === v ? !0 : te === B;
2637
+ var R = A.currentValue, V = A.lastValue, W = A.formattedValue, G = A.currentValueIndex, K = A.formattedValueIndex, te = R[G], B = W[K], C = ys(V, R), H = C.to;
2638
+ return G >= H.start && G < H.end && y && y.includes(te) && B === v ? !0 : te === B;
2639
2639
  };
2640
2640
  return Object.assign(Object.assign({}, h), {
2641
- value: E,
2641
+ value: D,
2642
2642
  valueIsNumericString: !1,
2643
2643
  isValidInputCharacter: U,
2644
2644
  isCharacterSame: Q,
2645
- onValueChange: C,
2645
+ onValueChange: E,
2646
2646
  format: j,
2647
2647
  removeFormatting: f,
2648
2648
  getCaretBoundary: function(A) {
2649
2649
  return Jl(A, e);
2650
2650
  },
2651
- onKeyDown: N,
2651
+ onKeyDown: _,
2652
2652
  onBlur: P
2653
2653
  });
2654
2654
  }
@@ -2656,39 +2656,39 @@ function Nn(e) {
2656
2656
  var t = ec(e);
2657
2657
  return Se.createElement(Gl, Object.assign({}, t));
2658
2658
  }
2659
- const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, label: a, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: x, step: p, noSelectOnFocus: h, decimalScale: g, numberPrefix: v, numberSuffix: w, min: j, max: f }) => {
2660
- const y = S(() => {
2659
+ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, label: a, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: x, step: p, noSelectOnFocus: h, decimalScale: g, numberPrefix: v, numberSuffix: y, min: j, max: f }) => {
2660
+ const w = S(() => {
2661
2661
  if (!r)
2662
2662
  return;
2663
- const E = m ?? null;
2664
- r(E ? Number(E) : null);
2665
- }, [m, r]), _ = ne(null), [D, $] = O((t == null ? void 0 : t.toString()) ?? ""), I = S((E) => {
2666
- const C = E;
2667
- r && r(C == null || C === "" ? null : Number(C));
2668
- }, [r]), F = S((E) => {
2669
- var N, P;
2670
- let C = parseFloat(((P = (N = E.target) == null ? void 0 : N.value) == null ? void 0 : P.replaceAll(" ", "")) ?? 0);
2671
- if (Number.isNaN(C) && (C = 0), !s) {
2672
- I(C.toString());
2663
+ const D = m ?? null;
2664
+ r(D ? Number(D) : null);
2665
+ }, [m, r]), N = ne(null), [I, $] = O((t == null ? void 0 : t.toString()) ?? ""), k = S((D) => {
2666
+ const E = D;
2667
+ r && r(E == null || E === "" ? null : Number(E));
2668
+ }, [r]), F = S((D) => {
2669
+ var _, P;
2670
+ let E = parseFloat(((P = (_ = D.target) == null ? void 0 : _.value) == null ? void 0 : P.replaceAll(" ", "")) ?? 0);
2671
+ if (Number.isNaN(E) && (E = 0), !s) {
2672
+ k(E.toString());
2673
2673
  return;
2674
2674
  }
2675
- $(C.toString()), _.current !== null && window.clearTimeout(_.current), _.current = window.setTimeout(() => {
2676
- I(C.toString());
2675
+ $(E.toString()), N.current !== null && window.clearTimeout(N.current), N.current = window.setTimeout(() => {
2676
+ k(E.toString());
2677
2677
  }, s);
2678
- }, [s, I]);
2678
+ }, [s, k]);
2679
2679
  return L(() => {
2680
2680
  $(t === null ? "" : t.toString());
2681
2681
  }, [f, j, t]), L(() => {
2682
- f !== void 0 && Number(D) > f && $(f.toString()), j !== void 0 && Number(D) < j && $(j.toString());
2683
- }, [D, f, j, $]), L(() => {
2682
+ f !== void 0 && Number(I) > f && $(f.toString()), j !== void 0 && Number(I) < j && $(j.toString());
2683
+ }, [I, f, j, $]), L(() => {
2684
2684
  !r || t === null || (f !== void 0 && t > f && r(f), j !== void 0 && t < j && r(j));
2685
2685
  }, [t, f, j, r]), /* @__PURE__ */ n.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: l, className: x, children: [
2686
- /* @__PURE__ */ n.jsx(Nn, { displayType: "input", thousandSeparator: " ", decimalScale: g, prefix: v, suffix: w, defaultValue: "", value: s ? D : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? a, onFocus: (E) => {
2687
- !h && E.target.select();
2686
+ /* @__PURE__ */ n.jsx(Nn, { displayType: "input", thousandSeparator: " ", decimalScale: g, prefix: v, suffix: y, defaultValue: "", value: s ? I : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? a, onFocus: (D) => {
2687
+ !h && D.target.select();
2688
2688
  }, onChange: F, hidden: l, disabled: u, className: b("form-control text-end w-100", {
2689
2689
  [`form-control-${c}`]: c
2690
2690
  }), step: p, min: j, max: f }),
2691
- d && t !== null && r && !u && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ n.jsx(Te, {}) }) })
2691
+ d && t !== null && r && !u && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ n.jsx(Te, {}) }) })
2692
2692
  ] });
2693
2693
  }, Xn = [
2694
2694
  ["D", "day"],
@@ -2968,9 +2968,9 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
2968
2968
  }, _c = ({ column: e, children: t }) => e.description ? /* @__PURE__ */ n.jsx(At, { placement: "bottom", text: e.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: t }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: t }), Nc = ({ schema: e, items: t, onEditItem: r, onDeleteItem: s, onCreateItem: a, filters: o, setFilter: i, sortByField: c, sortByType: l, setSortBy: u, selectedMaster: d }) => {
2969
2969
  const { texts: { dynamicForms: m }, ProjectIconComponent: x } = Z(pe), [p, h] = O([]);
2970
2970
  return L(() => {
2971
- var g, v, w;
2971
+ var g, v, y;
2972
2972
  h([
2973
- ...((w = (v = (g = e.columns) == null ? void 0 : g.filter((j) => !j.hidden)) == null ? void 0 : v.filter((j) => e.masterReference ? j.field !== e.masterReferenceColumn : !0)) == null ? void 0 : w.map((j) => {
2973
+ ...((y = (v = (g = e.columns) == null ? void 0 : g.filter((j) => !j.hidden)) == null ? void 0 : v.filter((j) => e.masterReference ? j.field !== e.masterReferenceColumn : !0)) == null ? void 0 : y.map((j) => {
2974
2974
  var f;
2975
2975
  return {
2976
2976
  label: j.caption ?? "",
@@ -2978,7 +2978,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
2978
2978
  field: j.field ?? "",
2979
2979
  type: j.type,
2980
2980
  readOnly: j.readOnly,
2981
- valuesForSelect: ((f = j.values) == null ? void 0 : f.filter((y) => j.valuesFilteredByMaster ? y.masterValue === d : !0).map((y) => ({ id: y.id ?? "", name: y.name }))) ?? void 0
2981
+ valuesForSelect: ((f = j.values) == null ? void 0 : f.filter((w) => j.valuesFilteredByMaster ? w.masterValue === d : !0).map((w) => ({ id: w.id ?? "", name: w.name }))) ?? void 0
2982
2982
  };
2983
2983
  })) ?? []
2984
2984
  ]);
@@ -3029,22 +3029,22 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3029
3029
  apiItemCreate: "/dynamicForms/insert"
3030
3030
  }, Cd = ({ id: e, page: t, setPage: r, filters: s, setFilter: a, sortByField: o, sortByType: i, setSortBy: c, appUrls: { appDetail: l = rr.appDetail } = rr, apiUrls: { apiSchemaGet: u = at.apiSchemaGet, apiDataGet: d = at.apiDataGet, apiItemPost: m = at.apiItemPost, apiItemDelete: x = at.apiItemDelete, apiItemCreate: p = at.apiItemCreate } = at }) => {
3031
3031
  var ce, Ne, de, ae, ke, Ee;
3032
- const { texts: { dynamicForms: h }, ProjectIconComponent: g } = Z(pe), v = et(), { startLoading: w, stopLoading: j } = Z(Rt), [f, y] = O(null), [_, D] = O(null), [$, I] = O(null), [F, E] = O(null), [C, N] = O(!1), { addNotification: P } = Cr(), [U, Q] = O([]), { confirm: A } = Lt(), R = 20, V = R + 1, W = F ? Math.ceil(F.length / R) : 1, G = t ? t > 1 : !1, K = t ? t < W : !1, te = t ? (t - 1) * R : 0, B = t ? t * R : R, [k, H] = O(!1), le = k ? F == null ? void 0 : F.slice(te, B) : F, [fe, Ce] = O(null);
3032
+ const { texts: { dynamicForms: h }, ProjectIconComponent: g } = Z(pe), v = et(), { startLoading: y, stopLoading: j } = Z(Rt), [f, w] = O(null), [N, I] = O(null), [$, k] = O(null), [F, D] = O(null), [E, _] = O(!1), { addNotification: P } = Cr(), [U, Q] = O([]), { confirm: A } = Lt(), R = 20, V = R + 1, W = F ? Math.ceil(F.length / R) : 1, G = t ? t > 1 : !1, K = t ? t < W : !1, te = t ? (t - 1) * R : 0, B = t ? t * R : R, [C, H] = O(!1), le = C ? F == null ? void 0 : F.slice(te, B) : F, [fe, Ce] = O(null);
3033
3033
  L(() => {
3034
- y(null), D(null), N(!1), Q([]), Ce(null);
3034
+ w(null), I(null), _(!1), Q([]), Ce(null);
3035
3035
  }, [e]);
3036
3036
  const J = S(async () => {
3037
- w("dynamicFormSchema"), await v.get(`${u}?id=${e}`).then(({ data: z }) => {
3038
- y(z), j("dynamicFormSchema");
3037
+ y("dynamicFormSchema"), await v.get(`${u}?id=${e}`).then(({ data: z }) => {
3038
+ w(z), j("dynamicFormSchema");
3039
3039
  }).catch(() => j("dynamicFormSchema"));
3040
- }, [v, e, w, j, u]), ve = S(async () => {
3040
+ }, [v, e, y, j, u]), ve = S(async () => {
3041
3041
  var z;
3042
3042
  if (!(f === null || ((z = f.id) == null ? void 0 : z.toString()) !== e)) {
3043
3043
  if (f.masterReference && !fe) {
3044
- D([]);
3044
+ I([]);
3045
3045
  return;
3046
3046
  }
3047
- w("dynamicFormData"), await v.get(`${d}?id=${e}&showArchive=${C}${f.masterReference ? `&master=${fe}` : ""}`).then(({ data: se }) => {
3047
+ y("dynamicFormData"), await v.get(`${d}?id=${e}&showArchive=${E}${f.masterReference ? `&master=${fe}` : ""}`).then(({ data: se }) => {
3048
3048
  const ge = se.map((ie) => {
3049
3049
  var xe;
3050
3050
  return Object.fromEntries(((xe = f.columns) == null ? void 0 : xe.filter((we) => we.field).map((we) => [
@@ -3052,16 +3052,16 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3052
3052
  { value: ie[we.field ?? ""], defaultValue: ie[we.field ?? ""] }
3053
3053
  ])) ?? []);
3054
3054
  });
3055
- D(ge), j("dynamicFormData");
3055
+ I(ge), j("dynamicFormData");
3056
3056
  }).catch(() => j("dynamicFormData"));
3057
3057
  }
3058
- }, [v, e, f, w, j, C, fe, d]), $e = S(async (z) => (w("dynamicFormEdit"), v.post(`${m}?id=${e}`, z).then(() => (j("dynamicFormEdit"), Q([]), !0)).catch((se) => (j("dynamicFormEdit"), Q(zt(se)), !1))), [v, e, w, j, m]), Ye = S(async (z) => (w("dynamicFormDelete"), v.delete(`${x}?id=${e}&pk=${z}`).then(() => (j("dynamicFormDelete"), Q([]), !0)).catch((se) => (j("dynamicFormDelete"), Q(zt(se)), !1))), [v, e, w, j, x]), Y = S(async (z) => (w("dynamicFormCreate"), v.post(`${p}?id=${e}`, z).then(({ data: se }) => (j("dynamicFormCreate"), Q([]), se)).catch((se) => (j("dynamicFormCreate"), Q(zt(se)), null))), [v, e, w, j, p]), he = S(async (z) => {
3059
- f && await $e(f.masterReference ? { ...z, [f.masterReferenceColumn ?? ""]: fe } : z) && (P(h.editSuccess, "success"), D((se) => se && se.map((ge) => {
3058
+ }, [v, e, f, y, j, E, fe, d]), $e = S(async (z) => (y("dynamicFormEdit"), v.post(`${m}?id=${e}`, z).then(() => (j("dynamicFormEdit"), Q([]), !0)).catch((se) => (j("dynamicFormEdit"), Q(zt(se)), !1))), [v, e, y, j, m]), Ye = S(async (z) => (y("dynamicFormDelete"), v.delete(`${x}?id=${e}&pk=${z}`).then(() => (j("dynamicFormDelete"), Q([]), !0)).catch((se) => (j("dynamicFormDelete"), Q(zt(se)), !1))), [v, e, y, j, x]), Y = S(async (z) => (y("dynamicFormCreate"), v.post(`${p}?id=${e}`, z).then(({ data: se }) => (j("dynamicFormCreate"), Q([]), se)).catch((se) => (j("dynamicFormCreate"), Q(zt(se)), null))), [v, e, y, j, p]), he = S(async (z) => {
3059
+ f && await $e(f.masterReference ? { ...z, [f.masterReferenceColumn ?? ""]: fe } : z) && (P(h.editSuccess, "success"), I((se) => se && se.map((ge) => {
3060
3060
  var ie;
3061
3061
  return ((ie = ge[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : ie.value) === z[(f == null ? void 0 : f.primaryKey) ?? ""] ? tr(z, f) : ge;
3062
3062
  })));
3063
3063
  }, [P, $e, f, fe, h]), be = S(async (z) => {
3064
- await A(h.deleteConfirm) && await Ye(z) && (P(h.deleteSuccess, "success"), D((se) => se && se.filter((ge) => {
3064
+ await A(h.deleteConfirm) && await Ye(z) && (P(h.deleteSuccess, "success"), I((se) => se && se.filter((ge) => {
3065
3065
  var ie;
3066
3066
  return ((ie = ge[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : ie.value) !== z;
3067
3067
  })));
@@ -3072,17 +3072,17 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3072
3072
  if (se !== null) {
3073
3073
  P(h.createSuccess, "success");
3074
3074
  const ge = tr(z, f);
3075
- return ge[(f == null ? void 0 : f.primaryKey) ?? ""] = { value: se, defaultValue: se }, D((ie) => [...ie ?? [], ge]), !0;
3075
+ return ge[(f == null ? void 0 : f.primaryKey) ?? ""] = { value: se, defaultValue: se }, I((ie) => [...ie ?? [], ge]), !0;
3076
3076
  }
3077
3077
  return !1;
3078
3078
  }, [P, Y, h, f, fe]), T = (z) => {
3079
3079
  z > W ? r(W) : z < 1 && r(1), r(z);
3080
3080
  }, M = S(() => {
3081
- if (!_ || !f) {
3082
- I(null);
3081
+ if (!N || !f) {
3082
+ k(null);
3083
3083
  return;
3084
3084
  }
3085
- const z = _.filter((se) => Object.entries(s).every(([ge, ie]) => {
3085
+ const z = N.filter((se) => Object.entries(s).every(([ge, ie]) => {
3086
3086
  var dt, ut, ft;
3087
3087
  if (ie === null)
3088
3088
  return !0;
@@ -3105,17 +3105,17 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3105
3105
  return xe.toString().toLowerCase().includes(ie.toLowerCase());
3106
3106
  }
3107
3107
  }));
3108
- I(z);
3109
- }, [_, s, f]), q = S(() => {
3108
+ k(z);
3109
+ }, [N, s, f]), q = S(() => {
3110
3110
  if (!$ || !f) {
3111
- E([]);
3111
+ D([]);
3112
3112
  return;
3113
3113
  }
3114
3114
  if (!o) {
3115
- E($);
3115
+ D($);
3116
3116
  return;
3117
3117
  }
3118
- E([...$].sort((z, se) => {
3118
+ D([...$].sort((z, se) => {
3119
3119
  var lt, ct, dt, ut, ft, bt;
3120
3120
  const ge = ((ct = (lt = z[o]) == null ? void 0 : lt.value) == null ? void 0 : ct.toString()) ?? "", ie = ((ut = (dt = se[o]) == null ? void 0 : dt.value) == null ? void 0 : ut.toString()) ?? "", xe = f.columns.find((Fe) => Fe.field === o), we = xe == null ? void 0 : xe.type;
3121
3121
  if (!xe || !we || !ge && !ie)
@@ -3156,11 +3156,11 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3156
3156
  }, [q]), L(() => {
3157
3157
  F && F.length > V ? (H(!0), t || r(1)) : (H(!1), F && r(null));
3158
3158
  }, [F, r, t, V]), L(() => {
3159
- !k || !t || (t > W && r(W), t < 1 && r(1));
3160
- }, [t, k, W, r]), /* @__PURE__ */ n.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
3159
+ !C || !t || (t > W && r(W), t < 1 && r(1));
3160
+ }, [t, C, W, r]), /* @__PURE__ */ n.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
3161
3161
  /* @__PURE__ */ n.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-center", children: [
3162
3162
  /* @__PURE__ */ n.jsx(X, { variant: "h3", children: (f == null ? void 0 : f.name) ?? "" }),
3163
- /* @__PURE__ */ n.jsx(hs, { label: h.showArchived, value: C === !0, onChange: (z) => N(z) })
3163
+ /* @__PURE__ */ n.jsx(hs, { label: h.showArchived, value: E === !0, onChange: (z) => _(z) })
3164
3164
  ] }),
3165
3165
  (f == null ? void 0 : f.description) && /* @__PURE__ */ n.jsx(X, { variant: "body2", className: "mb-3", children: f == null ? void 0 : f.description }),
3166
3166
  (f == null ? void 0 : f.masterReference) && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ n.jsx(Sc, { label: ((Ne = (ce = f.columns) == null ? void 0 : ce.find((z) => z.field === f.masterReferenceColumn)) == null ? void 0 : Ne.caption) ?? "", options: ((ae = (de = f.columns) == null ? void 0 : de.find((z) => z.field === f.masterReferenceColumn)) == null ? void 0 : ae.values) ?? [], master: fe, onChange: (z) => Ce(z) }) }),
@@ -3171,8 +3171,8 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3171
3171
  f != null && f.masterReference && !fe ? /* @__PURE__ */ n.jsx(bn, { variant: "warning", children: h.selectMaster(((Ee = (ke = f.columns) == null ? void 0 : ke.find((z) => z.field === f.masterReferenceColumn)) == null ? void 0 : Ee.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3172
3172
  f && U.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-2", children: /* @__PURE__ */ n.jsx(ic, { errors: U, schema: f }) }),
3173
3173
  f && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3174
- /* @__PURE__ */ n.jsx("div", { className: b("rounded border overflow-auto", nr.tableContainer), children: /* @__PURE__ */ n.jsx(Nc, { schema: f, items: (k ? le : F) ?? [], onEditItem: he, onDeleteItem: be, onCreateItem: rt, filters: s, setFilter: a, sortByField: o, sortByType: i, setSortBy: c, selectedMaster: (fe == null ? void 0 : fe.toString()) ?? null }) }),
3175
- k && t && /* @__PURE__ */ n.jsxs("div", { className: b(nr.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
3174
+ /* @__PURE__ */ n.jsx("div", { className: b("rounded border overflow-auto", nr.tableContainer), children: /* @__PURE__ */ n.jsx(Nc, { schema: f, items: (C ? le : F) ?? [], onEditItem: he, onDeleteItem: be, onCreateItem: rt, filters: s, setFilter: a, sortByField: o, sortByType: i, setSortBy: c, selectedMaster: (fe == null ? void 0 : fe.toString()) ?? null }) }),
3175
+ C && t && /* @__PURE__ */ n.jsxs("div", { className: b(nr.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
3176
3176
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
3177
3177
  /* @__PURE__ */ n.jsx(re, { color: "primary", onClick: () => T(1), disabled: !G, children: /* @__PURE__ */ n.jsx(g, { icon: "chevron-double-left" }) }),
3178
3178
  /* @__PURE__ */ n.jsx(re, { color: "primary", onClick: () => T(t - 1), disabled: !G, children: /* @__PURE__ */ n.jsx(g, { icon: "chevron-left" }) }),
@@ -3215,11 +3215,11 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3215
3215
  return L(() => {
3216
3216
  !d && h();
3217
3217
  }, [h, d]), x.length > 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: p.map((g) => /* @__PURE__ */ n.jsx(an, { title: g.name, defaultOpen: !0, children: g.items.map((v) => {
3218
- var w, j, f, y;
3219
- return a ? /* @__PURE__ */ n.jsxs(Xe, { to: `${It(o, { id: (w = v.id) == null ? void 0 : w.toString() })}?type=${v.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((j = v.id) == null ? void 0 : j.toString()) ? "active" : ""}`, children: [
3218
+ var y, j, f, w;
3219
+ return a ? /* @__PURE__ */ n.jsxs(Xe, { to: `${It(o, { id: (y = v.id) == null ? void 0 : y.toString() })}?type=${v.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((j = v.id) == null ? void 0 : j.toString()) ? "active" : ""}`, children: [
3220
3220
  /* @__PURE__ */ n.jsx(X, { variant: "body", children: v.name }),
3221
3221
  v.description && /* @__PURE__ */ n.jsx(X, { variant: "body2", className: "text-muted mt-2", children: v.description })
3222
- ] }, v.id) : /* @__PURE__ */ n.jsx(kc, { item: v, children: /* @__PURE__ */ n.jsx(Xe, { to: `${It(o, { id: (f = v.id) == null ? void 0 : f.toString() })}?type=${v.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((y = v.id) == null ? void 0 : y.toString()) ? "active" : ""}`, children: /* @__PURE__ */ n.jsx(X, { variant: "body2", children: v.name }) }) }, v.id);
3222
+ ] }, v.id) : /* @__PURE__ */ n.jsx(kc, { item: v, children: /* @__PURE__ */ n.jsx(Xe, { to: `${It(o, { id: (f = v.id) == null ? void 0 : f.toString() })}?type=${v.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((w = v.id) == null ? void 0 : w.toString()) ? "active" : ""}`, children: /* @__PURE__ */ n.jsx(X, { variant: "body2", children: v.name }) }) }, v.id);
3223
3223
  }) }, g.id)) }) }) : null;
3224
3224
  }, Id = ({ label: e, to: t, value: r }) => /* @__PURE__ */ n.jsxs(We, { label: e, children: [
3225
3225
  /* @__PURE__ */ n.jsx("input", { disabled: !0, className: "form-control d-none" }),
@@ -3283,52 +3283,52 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3283
3283
  L(() => {
3284
3284
  const j = t.split(".");
3285
3285
  let f = m.errors;
3286
- j.forEach((y) => {
3287
- f !== void 0 && (f = f[y]);
3286
+ j.forEach((w) => {
3287
+ f !== void 0 && (f = f[w]);
3288
3288
  }), h(f);
3289
3289
  }, [m, t]), L(() => {
3290
3290
  m.isSubmitted && v(!0);
3291
3291
  }, [m]);
3292
- const w = p !== void 0;
3293
- return /* @__PURE__ */ n.jsxs(e, { isForCheckInput: !0, hidden: i, label: `${r}${o ? " *" : ""}`, isInvalid: w, withoutLabel: l, className: u, children: [
3292
+ const y = p !== void 0;
3293
+ return /* @__PURE__ */ n.jsxs(e, { isForCheckInput: !0, hidden: i, label: `${r}${o ? " *" : ""}`, isInvalid: y, withoutLabel: l, className: u, children: [
3294
3294
  /* @__PURE__ */ n.jsx(ye.Check, { id: `check-${t}`, type: a ?? "checkbox", label: `${r}${o ? " *" : ""}`, ...d(t, {
3295
3295
  onChange: () => {
3296
3296
  s && s.forEach((j) => x(j, null, { shouldDirty: !0, shouldValidate: g }));
3297
3297
  }
3298
- }), isInvalid: w, hidden: i, disabled: c, className: "w-100" }),
3298
+ }), isInvalid: y, hidden: i, disabled: c, className: "w-100" }),
3299
3299
  p && /* @__PURE__ */ n.jsx(nt, { message: p.message })
3300
3300
  ] });
3301
3301
  }, Ld = ({ InputContainer: e = We, label: t, formField: r, options: s, resetsFields: a, required: o, disabled: i, hidden: c, className: l }) => {
3302
- const { register: u, formState: d, setValue: m, watch: x } = Ue(), [p, h] = O(void 0), [g, v] = O(!1), w = ee(() => s, [s]);
3302
+ const { register: u, formState: d, setValue: m, watch: x } = Ue(), [p, h] = O(void 0), [g, v] = O(!1), y = ee(() => s, [s]);
3303
3303
  L(() => {
3304
3304
  const f = r.split(".");
3305
- let y = d.errors;
3306
- f.forEach((_) => {
3307
- y !== void 0 && (y = y[_]);
3308
- }), h(y);
3305
+ let w = d.errors;
3306
+ f.forEach((N) => {
3307
+ w !== void 0 && (w = w[N]);
3308
+ }), h(w);
3309
3309
  }, [d, r]), L(() => {
3310
3310
  d.isSubmitted && v(!0);
3311
3311
  }, [d]);
3312
3312
  const j = p !== void 0;
3313
3313
  return /* @__PURE__ */ n.jsxs(e, { isForRadioInput: !0, hidden: c, withoutLabel: !t, label: `${t}${o ? " *" : ""}`, isInvalid: j, className: l, children: [
3314
- w.map((f) => /* @__PURE__ */ n.jsx(ye.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: x(r) === f.id, ...u(r, {
3314
+ y.map((f) => /* @__PURE__ */ n.jsx(ye.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: x(r) === f.id, ...u(r, {
3315
3315
  onChange: () => {
3316
- a && a.forEach((y) => m(y, null, { shouldDirty: !0, shouldValidate: g }));
3316
+ a && a.forEach((w) => m(w, null, { shouldDirty: !0, shouldValidate: g }));
3317
3317
  }
3318
3318
  }), isInvalid: j, hidden: c, disabled: i, className: "w-100" }, f.id)),
3319
3319
  p && /* @__PURE__ */ n.jsx(nt, { message: p.message })
3320
3320
  ] });
3321
- }, Ad = ({ InputContainer: e = We, formField: t, label: r, size: s, defaultSelection: a, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, items: d, onSearchQueryChange: m, selectedItemNavigateTo: x, texts: p, dropdownItemsNameWidth: h, isLoading: g, withoutLabel: v, additionalColumns: w, CustomOnChangeComponent: j, icon: f, displayIdAsName: y, onSelect: _, className: D, archiveColumn: $ }) => {
3322
- const { formState: I, setValue: F, watch: E, control: C } = Ue(), [N, P] = O(void 0), [U, Q] = O(!1), [A, R] = O(!1), V = E(t) ?? null, W = V === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : E(`${t}-DropdownName`), G = ee(() => V == null ? null : { id: V ?? null, name: W ?? "" }, [V, W]), K = S(() => {
3321
+ }, Ad = ({ InputContainer: e = We, formField: t, label: r, size: s, defaultSelection: a, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, items: d, onSearchQueryChange: m, selectedItemNavigateTo: x, texts: p, dropdownItemsNameWidth: h, isLoading: g, withoutLabel: v, additionalColumns: y, CustomOnChangeComponent: j, icon: f, displayIdAsName: w, onSelect: N, className: I, archiveColumn: $ }) => {
3322
+ const { formState: k, setValue: F, watch: D, control: E } = Ue(), [_, P] = O(void 0), [U, Q] = O(!1), [A, R] = O(!1), V = D(t) ?? null, W = V === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : D(`${t}-DropdownName`), G = ee(() => V == null ? null : { id: V ?? null, name: W ?? "" }, [V, W]), K = S(() => {
3323
3323
  const J = t.split(".");
3324
- let ve = I.errors;
3324
+ let ve = k.errors;
3325
3325
  J.forEach(($e) => {
3326
3326
  ve !== void 0 && (ve = ve[$e]);
3327
3327
  }), P(ve);
3328
- }, [I, t]), te = S((J) => {
3328
+ }, [k, t]), te = S((J) => {
3329
3329
  if ((J == null ? void 0 : J.id) === V)
3330
3330
  return;
3331
- if (_ && _(J), o && o.forEach(($e) => F($e, null, { shouldDirty: !0, shouldValidate: A })), J === null) {
3331
+ if (N && N(J), o && o.forEach(($e) => F($e, null, { shouldDirty: !0, shouldValidate: A })), J === null) {
3332
3332
  F(t, null, {
3333
3333
  shouldDirty: !0,
3334
3334
  shouldValidate: A
@@ -3340,21 +3340,21 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3340
3340
  shouldDirty: !0,
3341
3341
  shouldValidate: A
3342
3342
  }), F(`${t}-DropdownName`, J.name ?? "");
3343
- }, [F, t, A, i, o, V, _]), B = S((J) => {
3343
+ }, [F, t, A, i, o, V, N]), B = S((J) => {
3344
3344
  Q(!1), te(J);
3345
- }, [te]), k = S(() => {
3345
+ }, [te]), C = S(() => {
3346
3346
  Q(!1);
3347
3347
  }, []);
3348
3348
  L(() => {
3349
3349
  K();
3350
3350
  }, [K]), L(() => {
3351
- I.isSubmitted && R(!0);
3352
- }, [I]);
3353
- const H = ne(null), le = N !== void 0, fe = x !== void 0, Ce = fe && G !== null;
3354
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: v, isInvalid: le, inputContainerClassName: b({ "luminus-dropdown-select-open": U }), className: D, children: [
3351
+ k.isSubmitted && R(!0);
3352
+ }, [k]);
3353
+ const H = ne(null), le = _ !== void 0, fe = x !== void 0, Ce = fe && G !== null;
3354
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: v, isInvalid: le, inputContainerClassName: b({ "luminus-dropdown-select-open": U }), className: I, children: [
3355
3355
  /* @__PURE__ */ n.jsxs(ms, { currentSelection: G, selectedItemNavigateTo: x, children: [
3356
- y && (G == null ? void 0 : G.name) && /* @__PURE__ */ n.jsx(X, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: G.name }),
3357
- /* @__PURE__ */ n.jsx(gn, { control: C, name: t, render: () => /* @__PURE__ */ n.jsx(ye.Select, { size: s, onMouseDown: (J) => {
3356
+ w && (G == null ? void 0 : G.name) && /* @__PURE__ */ n.jsx(X, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: G.name }),
3357
+ /* @__PURE__ */ n.jsx(gn, { control: E, name: t, render: () => /* @__PURE__ */ n.jsx(ye.Select, { size: s, onMouseDown: (J) => {
3358
3358
  J.currentTarget.focus(), J.preventDefault();
3359
3359
  }, onClick: () => {
3360
3360
  !fe && !u && Q(!0);
@@ -3362,7 +3362,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3362
3362
  }, isInvalid: le, hidden: l, className: b("w-100", {
3363
3363
  "luminus-dropdown-picker-disabled": u,
3364
3364
  "luminus-dropdown-picker-link": Ce
3365
- }), children: /* @__PURE__ */ n.jsx("option", { value: V, children: y ? V : (W == null ? void 0 : W.length) > 0 ? W : V }) }) }),
3365
+ }), children: /* @__PURE__ */ n.jsx("option", { value: V, children: w ? V : (W == null ? void 0 : W.length) > 0 ? W : V }) }) }),
3366
3366
  j || !u && fe ? /* @__PURE__ */ n.jsxs("div", { className: "custom-picker-button", children: [
3367
3367
  !j && !u && fe && /* @__PURE__ */ n.jsx(re, { size: "sm", color: "secondary", onClick: (J) => {
3368
3368
  J.preventDefault(), J.stopPropagation(), Q(!0);
@@ -3370,30 +3370,30 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3370
3370
  j ?? null
3371
3371
  ] }) : null
3372
3372
  ] }),
3373
- N && /* @__PURE__ */ n.jsx(nt, { message: N.message }),
3374
- H.current && /* @__PURE__ */ n.jsx(wn, { show: U, onCancel: k, items: d, currentSelection: G, onSelectionChange: B, onSearchQueryChange: m, texts: p, itemsNameWidth: h, additionalColumns: w, displayIdAsName: y, isLoading: g, disabled: u, inputRef: H, archiveColumn: $ })
3373
+ _ && /* @__PURE__ */ n.jsx(nt, { message: _.message }),
3374
+ H.current && /* @__PURE__ */ n.jsx(wn, { show: U, onCancel: C, items: d, currentSelection: G, onSelectionChange: B, onSearchQueryChange: m, texts: p, itemsNameWidth: h, additionalColumns: y, displayIdAsName: w, isLoading: g, disabled: u, inputRef: H, archiveColumn: $ })
3375
3375
  ] }) });
3376
3376
  }, Md = ({ InputContainer: e = We, label: t, formField: r, hidden: s, required: a, placeholder: o, disabled: i, showClearIcon: c, resetsFields: l, multiple: u, accept: d, withoutLabel: m, className: x }) => {
3377
- const { watch: p, setValue: h, register: g, formState: v } = Ue(), [w, j] = O(!1), [f, y] = O(void 0), _ = S(() => {
3377
+ const { watch: p, setValue: h, register: g, formState: v } = Ue(), [y, j] = O(!1), [f, w] = O(void 0), N = S(() => {
3378
3378
  h(r, "");
3379
- }, [h, r]), D = S(() => {
3380
- const I = r.split(".");
3379
+ }, [h, r]), I = S(() => {
3380
+ const k = r.split(".");
3381
3381
  let F = v.errors;
3382
- I.forEach((E) => {
3383
- F !== void 0 && (F = F[E]);
3384
- }), y(F);
3382
+ k.forEach((D) => {
3383
+ F !== void 0 && (F = F[D]);
3384
+ }), w(F);
3385
3385
  }, [v, r]);
3386
- L(D, [D]), L(() => {
3386
+ L(I, [I]), L(() => {
3387
3387
  v.isSubmitted && j(!0);
3388
3388
  }, [v]);
3389
3389
  const $ = f !== void 0;
3390
3390
  return /* @__PURE__ */ n.jsxs(e, { label: `${t}${a ? "*" : ""}`, hidden: s, withoutLabel: m, isInvalid: $, className: x, children: [
3391
3391
  /* @__PURE__ */ n.jsx(ba, { type: "file", multiple: u, accept: d.join(", "), placeholder: o ?? t, isInvalid: $, hidden: s, disabled: i, className: "w-100", ...g(r, {
3392
3392
  onChange: () => {
3393
- l && l.forEach((I) => h(I, null, { shouldDirty: !0, shouldValidate: w }));
3393
+ l && l.forEach((k) => h(k, null, { shouldDirty: !0, shouldValidate: y }));
3394
3394
  }
3395
3395
  }) }),
3396
- c && p(r) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: _, children: /* @__PURE__ */ n.jsx(Te, {}) }) }),
3396
+ c && p(r) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: N, children: /* @__PURE__ */ n.jsx(Te, {}) }) }),
3397
3397
  f && /* @__PURE__ */ n.jsx(nt, { message: f.message })
3398
3398
  ] });
3399
3399
  }, Bd = ({ children: e, onStorno: t, noSpacer: r }) => {
@@ -3402,13 +3402,13 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3402
3402
  o(Object.keys(s.dirtyFields).length > 0);
3403
3403
  }, [s]), a ? /* @__PURE__ */ n.jsx(vo, { onStorno: t, noSpacer: r, children: e }) : null;
3404
3404
  }, Vd = ({ InputContainer: e = We, options: t, formField: r, label: s, size: a, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, withoutLabel: d, noSortOptions: m, suffixIdToName: x, onSelect: p, className: h, appendCurrentSelectionWithName: g }) => {
3405
- const { texts: { customSelect: v } } = Z(pe), { formState: w, setValue: j, watch: f, control: y } = Ue(), [_, D] = O(void 0), [$, I] = O(!1), [F, E] = O(!1), [C, N] = O(""), P = f(r), U = ee(() => t.find((B) => B.id === P) ?? null, [t, P]), Q = S(() => {
3405
+ const { texts: { customSelect: v } } = Z(pe), { formState: y, setValue: j, watch: f, control: w } = Ue(), [N, I] = O(void 0), [$, k] = O(!1), [F, D] = O(!1), [E, _] = O(""), P = f(r), U = ee(() => t.find((B) => B.id === P) ?? null, [t, P]), Q = S(() => {
3406
3406
  const B = r.split(".");
3407
- let k = w.errors;
3407
+ let C = y.errors;
3408
3408
  B.forEach((H) => {
3409
- k !== void 0 && (k = k[H]);
3410
- }), D(k);
3411
- }, [w, r]), A = S((B) => {
3409
+ C !== void 0 && (C = C[H]);
3410
+ }), I(C);
3411
+ }, [y, r]), A = S((B) => {
3412
3412
  if ((B == null ? void 0 : B.id) === P)
3413
3413
  return;
3414
3414
  if (p && p(B), o && o.forEach((H) => j(H, null, { shouldDirty: !0, shouldValidate: F })), B === null) {
@@ -3418,80 +3418,80 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3418
3418
  });
3419
3419
  return;
3420
3420
  }
3421
- let k = null;
3422
- i ? k = (B == null ? void 0 : B.id) !== null && (B == null ? void 0 : B.id) !== "" ? parseInt(B.id.toString(), 10) : null : k = B.id === null || B.id === void 0 || B.id === "" ? null : B.id, j(r, k, {
3421
+ let C = null;
3422
+ i ? C = (B == null ? void 0 : B.id) !== null && (B == null ? void 0 : B.id) !== "" ? parseInt(B.id.toString(), 10) : null : C = B.id === null || B.id === void 0 || B.id === "" ? null : B.id, j(r, C, {
3423
3423
  shouldDirty: !0,
3424
3424
  shouldValidate: F
3425
3425
  });
3426
3426
  }, [j, r, i, o, P, F, p]), R = S((B) => {
3427
- I(!1), A(B);
3427
+ k(!1), A(B);
3428
3428
  }, [A]), V = S((B) => {
3429
- N(B);
3429
+ _(B);
3430
3430
  }, []);
3431
3431
  L(() => {
3432
3432
  Q();
3433
3433
  }, [Q]), L(() => {
3434
- w.isSubmitted && E(!0);
3435
- }, [w]);
3434
+ y.isSubmitted && D(!0);
3435
+ }, [y]);
3436
3436
  const W = S((B) => {
3437
- var k;
3438
- return B === null ? "" : !B.name || B.name.length === 0 ? ((k = B.id) == null ? void 0 : k.toString()) ?? "" : x ? `${B.name} (${B.id})` : B.name;
3437
+ var C;
3438
+ return B === null ? "" : !B.name || B.name.length === 0 ? ((C = B.id) == null ? void 0 : C.toString()) ?? "" : x ? `${B.name} (${B.id})` : B.name;
3439
3439
  }, [x]), G = ee(() => {
3440
3440
  const B = t ?? [];
3441
- return g !== void 0 && P && (B.some((k) => k.id === P) || B.push({ id: P, name: g })), B.map((k) => ({
3442
- id: k.id,
3443
- name: W(k)
3444
- })).filter((k) => Dt(k.name, C)).sort((k, H) => m ? 0 : (k.name ?? "").localeCompare(H.name ?? ""));
3441
+ return g !== void 0 && P && (B.some((C) => C.id === P) || B.push({ id: P, name: g })), B.map((C) => ({
3442
+ id: C.id,
3443
+ name: W(C)
3444
+ })).filter((C) => Dt(C.name, E)).sort((C, H) => m ? 0 : (C.name ?? "").localeCompare(H.name ?? ""));
3445
3445
  }, [
3446
3446
  t,
3447
3447
  m,
3448
- C,
3448
+ E,
3449
3449
  W,
3450
3450
  g,
3451
3451
  P
3452
- ]), K = ne(null), te = _ !== void 0;
3452
+ ]), K = ne(null), te = N !== void 0;
3453
3453
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${s}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: te, inputContainerClassName: b({ "luminus-dropdown-select-open": $ }), className: h, children: [
3454
- /* @__PURE__ */ n.jsx(gn, { control: y, name: r, render: () => /* @__PURE__ */ n.jsx(ye.Select, { size: a, onMouseDown: (B) => {
3454
+ /* @__PURE__ */ n.jsx(gn, { control: w, name: r, render: () => /* @__PURE__ */ n.jsx(ye.Select, { size: a, onMouseDown: (B) => {
3455
3455
  B.currentTarget.focus(), B.preventDefault();
3456
3456
  }, onClick: () => {
3457
- I(!0);
3457
+ k(!0);
3458
3458
  }, ref: K, value: P ?? "", onChange: () => {
3459
3459
  }, isInvalid: te, hidden: l, disabled: u, className: "w-100", children: /* @__PURE__ */ n.jsx("option", { value: (U == null ? void 0 : U.id) ?? "", children: W(U) }) }) }),
3460
- _ && /* @__PURE__ */ n.jsx(nt, { message: _.message }),
3461
- K.current && /* @__PURE__ */ n.jsx(wn, { show: $, onCancel: () => I(!1), items: G, currentSelection: U ?? null, onSelectionChange: R, onSearchQueryChange: V, texts: v, disabled: u, inputRef: K, autoHideSearch: !0, allItemsLength: t.length })
3460
+ N && /* @__PURE__ */ n.jsx(nt, { message: N.message }),
3461
+ K.current && /* @__PURE__ */ n.jsx(wn, { show: $, onCancel: () => k(!1), items: G, currentSelection: U ?? null, onSelectionChange: R, onSearchQueryChange: V, texts: v, disabled: u, inputRef: K, autoHideSearch: !0, allItemsLength: t.length })
3462
3462
  ] }) });
3463
3463
  }, Pd = ({ InputContainer: e = We, formField: t, label: r, placeholder: s, size: a, resetsFields: o, showClearIcon: i, clearValue: c, required: l, hidden: u, disabled: d, withoutLabel: m, step: x, stepperStep: p = 1, className: h, min: g, max: v }) => {
3464
- const { register: w, formState: j, setValue: f, watch: y } = Ue(), [_, D] = O(void 0), [$, I] = O(!1), F = S((U, Q, A) => {
3464
+ const { register: y, formState: j, setValue: f, watch: w } = Ue(), [N, I] = O(void 0), [$, k] = O(!1), F = S((U, Q, A) => {
3465
3465
  f(U, gt(Q, g, v), A);
3466
- }, [v, g, f]), E = S(() => {
3466
+ }, [v, g, f]), D = S(() => {
3467
3467
  const U = c ?? null;
3468
3468
  F(t, U !== null ? Number(U) : null, {
3469
3469
  shouldDirty: !0,
3470
3470
  shouldValidate: $
3471
3471
  });
3472
- }, [c, F, t, $]), C = S(() => {
3472
+ }, [c, F, t, $]), E = S(() => {
3473
3473
  const U = t.split(".");
3474
3474
  let Q = j.errors;
3475
3475
  U.forEach((A) => {
3476
3476
  Q !== void 0 && (Q = Q[A]);
3477
- }), D(Q);
3477
+ }), I(Q);
3478
3478
  }, [j, t]);
3479
3479
  L(() => {
3480
- C();
3481
- }, [C]), L(() => {
3482
- j.isSubmitted && I(!0);
3480
+ E();
3481
+ }, [E]), L(() => {
3482
+ j.isSubmitted && k(!0);
3483
3483
  }, [j]);
3484
- const N = _ !== void 0, P = y(t);
3485
- return /* @__PURE__ */ n.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: u, withoutLabel: m, isInvalid: N, className: h, children: [
3484
+ const _ = N !== void 0, P = w(t);
3485
+ return /* @__PURE__ */ n.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: u, withoutLabel: m, isInvalid: _, className: h, children: [
3486
3486
  /* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
3487
- /* @__PURE__ */ n.jsx(ye.Control, { type: "number", placeholder: s ?? r, size: a, ...w(t, {
3487
+ /* @__PURE__ */ n.jsx(ye.Control, { type: "number", placeholder: s ?? r, size: a, ...y(t, {
3488
3488
  setValueAs: (U) => U == null || U === "" ? null : gt(Number(U), g, v),
3489
3489
  min: g,
3490
3490
  max: v,
3491
3491
  onChange: () => {
3492
3492
  o && o.forEach((U) => f(U, null, { shouldDirty: !0, shouldValidate: $ }));
3493
3493
  }
3494
- }), isInvalid: N, hidden: u, disabled: d, className: "w-100 luminus-numeric-stepper", step: x, min: g, max: v }),
3494
+ }), isInvalid: _, hidden: u, disabled: d, className: "w-100 luminus-numeric-stepper", step: x, min: g, max: v }),
3495
3495
  /* @__PURE__ */ n.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ n.jsx(re, { size: "sm", onClick: (U) => {
3496
3496
  U.preventDefault(), U.stopPropagation(), F(t, ((P ? Number(P) : 0) - p).toString(), { shouldDirty: !0, shouldValidate: $ });
3497
3497
  }, children: /* @__PURE__ */ n.jsx(Nr, {}) }) }),
@@ -3499,46 +3499,46 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3499
3499
  U.preventDefault(), U.stopPropagation(), F(t, ((P ? Number(P) : 0) + p).toString(), { shouldDirty: !0, shouldValidate: $ });
3500
3500
  }, children: /* @__PURE__ */ n.jsx(Sr, {}) }) })
3501
3501
  ] }),
3502
- i && y(t) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: E, children: /* @__PURE__ */ n.jsx(Te, {}) }) }),
3503
- _ && /* @__PURE__ */ n.jsx(nt, { message: _.message })
3502
+ i && w(t) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: D, children: /* @__PURE__ */ n.jsx(Te, {}) }) }),
3503
+ N && /* @__PURE__ */ n.jsx(nt, { message: N.message })
3504
3504
  ] });
3505
- }, zd = ({ InputContainer: e = We, formField: t, label: r, placeholder: s, resetsFields: a, showClearIcon: o, clearValue: i, required: c, hidden: l, disabled: u, withoutLabel: d, step: m, size: x, CustomOnChangeComponent: p, noSelectOnFocus: h, className: g, decimalScale: v = 2, numberPrefix: w, numberSuffix: j, min: f, max: y }) => {
3506
- const { formState: _, setValue: D, watch: $, control: I } = Ue(), [F, E] = O(void 0), [C, N] = O(!1), P = S(() => {
3505
+ }, zd = ({ InputContainer: e = We, formField: t, label: r, placeholder: s, resetsFields: a, showClearIcon: o, clearValue: i, required: c, hidden: l, disabled: u, withoutLabel: d, step: m, size: x, CustomOnChangeComponent: p, noSelectOnFocus: h, className: g, decimalScale: v = 2, numberPrefix: y, numberSuffix: j, min: f, max: w }) => {
3506
+ const { formState: N, setValue: I, watch: $, control: k } = Ue(), [F, D] = O(void 0), [E, _] = O(!1), P = S(() => {
3507
3507
  const R = i ?? null;
3508
- D(t, R !== null ? Number(R) : null, {
3508
+ I(t, R !== null ? Number(R) : null, {
3509
3509
  shouldDirty: !0,
3510
- shouldValidate: C
3510
+ shouldValidate: E
3511
3511
  });
3512
- }, [i, D, t, C]), U = S(() => {
3512
+ }, [i, I, t, E]), U = S(() => {
3513
3513
  const R = t.split(".");
3514
- let V = _.errors;
3514
+ let V = N.errors;
3515
3515
  R.forEach((W) => {
3516
3516
  V !== void 0 && (V = V[W]);
3517
- }), E(V);
3518
- }, [_, t]);
3517
+ }), D(V);
3518
+ }, [N, t]);
3519
3519
  L(() => {
3520
3520
  U();
3521
3521
  }, [U]), L(() => {
3522
- _.isSubmitted && N(!0);
3523
- }, [_]);
3522
+ N.isSubmitted && _(!0);
3523
+ }, [N]);
3524
3524
  const Q = $(t);
3525
3525
  L(() => {
3526
- y !== void 0 && Q > y && D(t, y), f !== void 0 && Q < f && D(t, f);
3527
- }, [t, Q, y, f, D]);
3526
+ w !== void 0 && Q > w && I(t, w), f !== void 0 && Q < f && I(t, f);
3527
+ }, [t, Q, w, f, I]);
3528
3528
  const A = F !== void 0;
3529
3529
  return /* @__PURE__ */ n.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: A, className: g, children: [
3530
3530
  /* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
3531
- /* @__PURE__ */ n.jsx(gn, { control: I, name: t, render: ({ field: { ref: R, onChange: V, name: W, value: G } }) => /* @__PURE__ */ n.jsx(Nn, { displayType: "input", thousandSeparator: " ", decimalScale: v, prefix: w, suffix: j, defaultValue: "", name: W, value: G ?? "", placeholder: s ?? r, onFocus: (K) => {
3531
+ /* @__PURE__ */ n.jsx(gn, { control: k, name: t, render: ({ field: { ref: R, onChange: V, name: W, value: G } }) => /* @__PURE__ */ n.jsx(Nn, { displayType: "input", thousandSeparator: " ", decimalScale: v, prefix: y, suffix: j, defaultValue: "", name: W, value: G ?? "", placeholder: s ?? r, onFocus: (K) => {
3532
3532
  !h && K.target.select();
3533
3533
  }, onChange: (K) => {
3534
- var B, k;
3535
- const te = parseFloat(((k = (B = K.target) == null ? void 0 : B.value) == null ? void 0 : k.replaceAll(" ", "")) ?? 0);
3536
- a && a.forEach((H) => D(H, null, { shouldDirty: !0, shouldValidate: C })), V(te == null || Number.isNaN(te) ? null : Number(te));
3534
+ var B, C;
3535
+ const te = parseFloat(((C = (B = K.target) == null ? void 0 : B.value) == null ? void 0 : C.replaceAll(" ", "")) ?? 0);
3536
+ a && a.forEach((H) => I(H, null, { shouldDirty: !0, shouldValidate: E })), V(te == null || Number.isNaN(te) ? null : Number(te));
3537
3537
  }, hidden: l, disabled: u, className: b("form-control text-end w-100", {
3538
3538
  "is-invalid": A
3539
3539
  }, {
3540
3540
  [`form-control-${x}`]: x
3541
- }), step: m, getInputRef: R, min: f, max: y }) }),
3541
+ }), step: m, getInputRef: R, min: f, max: w }) }),
3542
3542
  p && /* @__PURE__ */ n.jsx("div", { className: "custom-picker-button", children: p })
3543
3543
  ] }),
3544
3544
  o && $(t) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: P, children: /* @__PURE__ */ n.jsx(Te, {}) }) }),
@@ -3601,15 +3601,15 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3601
3601
  }, [e, o, c, d]), L(() => {
3602
3602
  var h, g, v;
3603
3603
  if (c && o) {
3604
- const { options: w, conditions: j, formats: f, slice: y, ..._ } = (h = d.current) == null ? void 0 : h.flexmonster.getReport();
3605
- if (_ === void 0 || typeof _ == "string")
3604
+ const { options: y, conditions: j, formats: f, slice: w, ...N } = (h = d.current) == null ? void 0 : h.flexmonster.getReport();
3605
+ if (N === void 0 || typeof N == "string")
3606
3606
  return;
3607
- const D = Dc(t);
3608
- D.options = {
3607
+ const I = Dc(t);
3608
+ I.options = {
3609
3609
  ...t == null ? void 0 : t.options,
3610
3610
  grid: { ...(g = t == null ? void 0 : t.options) == null ? void 0 : g.grid, autoSwitchToCompact: !1 }
3611
3611
  };
3612
- const $ = { ..._, ...D };
3612
+ const $ = { ...N, ...I };
3613
3613
  (v = d.current) == null || v.flexmonster.setReport($), console.log("Refreshing flexmonster settings. New report: ", $);
3614
3614
  }
3615
3615
  }, [o, c, d, t]), /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(
@@ -3628,10 +3628,10 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3628
3628
  }
3629
3629
  ) });
3630
3630
  }, Ec = (e, t, r, s) => {
3631
- const { texts: { reports: a } } = Z(pe), { prompt: o } = _a(), { confirm: i } = Lt(), c = et(), { user: l } = Z(Tt), { startLoading: u, stopLoading: d } = Z(Rt), { addNotification: m } = Cr(), x = S(async (w) => {
3631
+ const { texts: { reports: a } } = Z(pe), { prompt: o } = _a(), { confirm: i } = Lt(), c = et(), { user: l } = Z(Tt), { startLoading: u, stopLoading: d } = Z(Rt), { addNotification: m } = Cr(), x = S(async (y) => {
3632
3632
  u("report-versionSavingAs");
3633
3633
  try {
3634
- const j = await c.post("/reports/version", w);
3634
+ const j = await c.post("/reports/version", y);
3635
3635
  m(a.saveSuccessful, "success"), await s(j.data);
3636
3636
  } finally {
3637
3637
  d("report-versionSavingAs");
@@ -3658,13 +3658,13 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3658
3658
  x,
3659
3659
  r
3660
3660
  ]), h = S(async () => {
3661
- const w = await o(a.enterName, { input: "input", required: !0 });
3662
- if (w === null)
3661
+ const y = await o(a.enterName, { input: "input", required: !0 });
3662
+ if (y === null)
3663
3663
  return;
3664
3664
  const j = or(t);
3665
3665
  x({
3666
3666
  reportSourceName: e,
3667
- name: w,
3667
+ name: y,
3668
3668
  settings: j
3669
3669
  });
3670
3670
  }, [t, o, e, a.enterName, x]), g = S(async () => {
@@ -3777,47 +3777,47 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3777
3777
  });
3778
3778
  }, [t, e]), { mappings: r };
3779
3779
  }, Hd = ({ reportType: e, title: t, data: r, filterElements: s, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: c, localizationJsonFile: l, localizationTransformer: u }) => {
3780
- const { texts: { reports: d } } = Z(pe), { confirm: m } = Lt(), x = kr(), { id: p } = Ta(), h = ee(() => p === void 0 ? null : Number(p), [p]), g = S((k) => {
3781
- const H = k === null ? "" : k.toString();
3780
+ const { texts: { reports: d } } = Z(pe), { confirm: m } = Lt(), x = kr(), { id: p } = Ta(), h = ee(() => p === void 0 ? null : Number(p), [p]), g = S((C) => {
3781
+ const H = C === null ? "" : C.toString();
3782
3782
  x(It(a(e), { id: H }), {
3783
3783
  replace: !0
3784
3784
  });
3785
- }, [a, x, e]), [v, w] = O(!1), j = ne(null), { user: f } = Z(Tt), { data: y, reloadData: _, setData: D } = Va(`/reports/${e}`), { mappings: $ } = Tc(l, u), [I, F] = O({}), E = S((k) => {
3786
- if (y === null)
3785
+ }, [a, x, e]), [v, y] = O(!1), j = ne(null), { user: f } = Z(Tt), { data: w, reloadData: N, setData: I } = Va(`/reports/${e}`), { mappings: $ } = Tc(l, u), [k, F] = O({}), D = S((C) => {
3786
+ if (w === null)
3787
3787
  return;
3788
- const H = k.target.value, le = H === "" ? null : Number(H);
3788
+ const H = C.target.value, le = H === "" ? null : Number(H);
3789
3789
  g(le);
3790
- }, [y, g]), C = S(async (k) => {
3791
- await _(), g(k);
3792
- }, [_, g]), N = ee(() => {
3793
- if (y === null)
3790
+ }, [w, g]), E = S(async (C) => {
3791
+ await N(), g(C);
3792
+ }, [N, g]), _ = ee(() => {
3793
+ if (w === null)
3794
3794
  return null;
3795
- const k = y.reportVersions.find((H) => H.reportVersionId === h);
3796
- return k === void 0 ? null : k;
3797
- }, [y, h]);
3795
+ const C = w.reportVersions.find((H) => H.reportVersionId === h);
3796
+ return C === void 0 ? null : C;
3797
+ }, [w, h]);
3798
3798
  L(() => {
3799
3799
  var H;
3800
- if (y === null)
3800
+ if (w === null)
3801
3801
  return;
3802
- if (N === null) {
3802
+ if (_ === null) {
3803
3803
  F({});
3804
3804
  return;
3805
3805
  }
3806
- const k = Ic(N) ?? {};
3807
- F(k), (H = j.current) == null || H.flexmonster.refresh();
3808
- }, [y, N, h]);
3809
- const { save: P, saveAs: U, archive: Q, detach: A } = Ec(e, j, h, C), R = ee(() => ({
3806
+ const C = Ic(_) ?? {};
3807
+ F(C), (H = j.current) == null || H.flexmonster.refresh();
3808
+ }, [w, _, h]);
3809
+ const { save: P, saveAs: U, archive: Q, detach: A } = Ec(e, j, h, E), R = ee(() => ({
3810
3810
  data: r ?? [],
3811
3811
  mapping: $ ?? void 0
3812
3812
  }), [r, $]), V = S(async () => {
3813
3813
  var H;
3814
- await m(d.confirmRevertChanges) && ((H = j.current) == null || H.flexmonster.setReport({ dataSource: R, ...I }));
3815
- }, [m, R, d.confirmRevertChanges, I]), W = ee(() => (N == null ? void 0 : N.ownerId) === f.personalNumber, [N == null ? void 0 : N.ownerId, f.personalNumber]), G = ee(() => {
3816
- var k;
3817
- return (k = N == null ? void 0 : N.users) == null ? void 0 : k.some((H) => H.id === f.personalNumber && !H.isReportOwner);
3818
- }, [N == null ? void 0 : N.users, f.personalNumber]), K = S((k, H) => {
3819
- D((le) => {
3820
- const fe = le == null ? void 0 : le.reportVersions.findIndex((ve) => ve.reportVersionId === k);
3814
+ await m(d.confirmRevertChanges) && ((H = j.current) == null || H.flexmonster.setReport({ dataSource: R, ...k }));
3815
+ }, [m, R, d.confirmRevertChanges, k]), W = ee(() => (_ == null ? void 0 : _.ownerId) === f.personalNumber, [_ == null ? void 0 : _.ownerId, f.personalNumber]), G = ee(() => {
3816
+ var C;
3817
+ return (C = _ == null ? void 0 : _.users) == null ? void 0 : C.some((H) => H.id === f.personalNumber && !H.isReportOwner);
3818
+ }, [_ == null ? void 0 : _.users, f.personalNumber]), K = S((C, H) => {
3819
+ I((le) => {
3820
+ const fe = le == null ? void 0 : le.reportVersions.findIndex((ve) => ve.reportVersionId === C);
3821
3821
  if (fe === void 0 || le === null)
3822
3822
  return le;
3823
3823
  const Ce = {
@@ -3829,35 +3829,35 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3829
3829
  reportVersions: J
3830
3830
  };
3831
3831
  });
3832
- }, [D]), te = S(async () => {
3833
- await m(d.confirmDelete(N == null ? void 0 : N.name)) && (await Q(), g(null), await _());
3834
- }, [Q, m, _, N == null ? void 0 : N.name, d, g]), B = S(async () => {
3835
- await m(d.confirmDetach(N == null ? void 0 : N.name)) && (await A(), g(null), await _());
3836
- }, [m, A, _, N == null ? void 0 : N.name, d, g]);
3832
+ }, [I]), te = S(async () => {
3833
+ await m(d.confirmDelete(_ == null ? void 0 : _.name)) && (await Q(), g(null), await N());
3834
+ }, [Q, m, N, _ == null ? void 0 : _.name, d, g]), B = S(async () => {
3835
+ await m(d.confirmDetach(_ == null ? void 0 : _.name)) && (await A(), g(null), await N());
3836
+ }, [m, A, N, _ == null ? void 0 : _.name, d, g]);
3837
3837
  return L(() => {
3838
- var k;
3839
- h === null && g(((k = y == null ? void 0 : y.reportVersions.find((H) => H.isSystem === !0)) == null ? void 0 : k.reportVersionId) ?? null);
3840
- }, [y == null ? void 0 : y.reportVersions, h, g]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3838
+ var C;
3839
+ h === null && g(((C = w == null ? void 0 : w.reportVersions.find((H) => H.isSystem === !0)) == null ? void 0 : C.reportVersionId) ?? null);
3840
+ }, [w == null ? void 0 : w.reportVersions, h, g]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3841
3841
  /* @__PURE__ */ n.jsx(Pa, { title: /* @__PURE__ */ n.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
3842
3842
  /* @__PURE__ */ n.jsx(X, { variant: "h3", children: t }),
3843
3843
  s,
3844
3844
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
3845
- /* @__PURE__ */ n.jsxs(Na, { size: "sm", value: h ?? void 0, onChange: E, children: [
3846
- /* @__PURE__ */ n.jsx("optgroup", { label: d.versionSelectSystem, children: y == null ? void 0 : y.reportVersions.filter((k) => k.isSystem === !0).map((k) => /* @__PURE__ */ n.jsx("option", { value: k.reportVersionId, children: k.name }, k.reportVersionId)) }),
3847
- /* @__PURE__ */ n.jsx("optgroup", { label: d.versionSelectYour, children: y == null ? void 0 : y.reportVersions.filter((k) => k.ownerId === f.personalNumber).map((k) => /* @__PURE__ */ n.jsx("option", { value: k.reportVersionId, children: k.name }, k.reportVersionId)) }),
3848
- /* @__PURE__ */ n.jsx("optgroup", { label: d.versionSelectSharedWithYou, children: y == null ? void 0 : y.reportVersions.filter((k) => k.isSystem === !1 && k.ownerId !== f.personalNumber).map((k) => /* @__PURE__ */ n.jsx("option", { value: k.reportVersionId, children: `${k.name} [${k.ownerId}]` }, k.reportVersionId)) })
3845
+ /* @__PURE__ */ n.jsxs(Na, { size: "sm", value: h ?? void 0, onChange: D, children: [
3846
+ /* @__PURE__ */ n.jsx("optgroup", { label: d.versionSelectSystem, children: w == null ? void 0 : w.reportVersions.filter((C) => C.isSystem === !0).map((C) => /* @__PURE__ */ n.jsx("option", { value: C.reportVersionId, children: C.name }, C.reportVersionId)) }),
3847
+ /* @__PURE__ */ n.jsx("optgroup", { label: d.versionSelectYour, children: w == null ? void 0 : w.reportVersions.filter((C) => C.ownerId === f.personalNumber).map((C) => /* @__PURE__ */ n.jsx("option", { value: C.reportVersionId, children: C.name }, C.reportVersionId)) }),
3848
+ /* @__PURE__ */ n.jsx("optgroup", { label: d.versionSelectSharedWithYou, children: w == null ? void 0 : w.reportVersions.filter((C) => C.isSystem === !1 && C.ownerId !== f.personalNumber).map((C) => /* @__PURE__ */ n.jsx("option", { value: C.reportVersionId, children: `${C.name} [${C.ownerId}]` }, C.reportVersionId)) })
3849
3849
  ] }),
3850
- /* @__PURE__ */ n.jsx(Le, { icon: /* @__PURE__ */ n.jsx(Sa, {}), onClick: P, disabled: h === null || (N == null ? void 0 : N.isSystem) || !W, children: d.save }),
3850
+ /* @__PURE__ */ n.jsx(Le, { icon: /* @__PURE__ */ n.jsx(Sa, {}), onClick: P, disabled: h === null || (_ == null ? void 0 : _.isSystem) || !W, children: d.save }),
3851
3851
  /* @__PURE__ */ n.jsx(Le, { icon: /* @__PURE__ */ n.jsx(Ca, {}), onClick: U, className: "flex-shrink-0", children: d.saveAs }),
3852
3852
  /* @__PURE__ */ n.jsxs(mn, { toggle: /* @__PURE__ */ n.jsx(hn, { as: yr }), children: [
3853
3853
  /* @__PURE__ */ n.jsx(Je, { onClick: V, children: d.revertChanges }),
3854
- /* @__PURE__ */ n.jsx(Je, { onClick: () => w(!0), disabled: !W || (N == null ? void 0 : N.isSystem), children: d.share }),
3855
- W && !(N != null && N.isSystem) ? /* @__PURE__ */ n.jsx(Je, { color: "danger", onClick: te, children: d.delete }) : null,
3856
- G && !(N != null && N.isSystem) ? /* @__PURE__ */ n.jsx(Je, { color: "danger", onClick: B, children: d.detach }) : null
3854
+ /* @__PURE__ */ n.jsx(Je, { onClick: () => y(!0), disabled: !W || (_ == null ? void 0 : _.isSystem), children: d.share }),
3855
+ W && !(_ != null && _.isSystem) ? /* @__PURE__ */ n.jsx(Je, { color: "danger", onClick: te, children: d.delete }) : null,
3856
+ G && !(_ != null && _.isSystem) ? /* @__PURE__ */ n.jsx(Je, { color: "danger", onClick: B, children: d.detach }) : null
3857
3857
  ] })
3858
3858
  ] })
3859
- ] }), children: /* @__PURE__ */ n.jsx("div", { className: b("h-100 w-100", R.data && R.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ n.jsx($c, { dataSource: R, settings: I, pivotRef: j, enabled: R.data && R.data.length > 0, localization: o, licenseKey: i }) }) }),
3860
- N !== null ? /* @__PURE__ */ n.jsx(Oc, { isOpen: v, onHide: () => w(!1), usersData: N.users ?? null, setUsersData: K, reportVersionId: N == null ? void 0 : N.reportVersionId, EmployeePicker: c }) : null
3859
+ ] }), children: /* @__PURE__ */ n.jsx("div", { className: b("h-100 w-100", R.data && R.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ n.jsx($c, { dataSource: R, settings: k, pivotRef: j, enabled: R.data && R.data.length > 0, localization: o, licenseKey: i }) }) }),
3860
+ _ !== null ? /* @__PURE__ */ n.jsx(Oc, { isOpen: v, onHide: () => y(!1), usersData: _.users ?? null, setUsersData: K, reportVersionId: _ == null ? void 0 : _.reportVersionId, EmployeePicker: c }) : null
3861
3861
  ] });
3862
3862
  }, Wd = ({ cell: { value: e } }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: e ? /* @__PURE__ */ n.jsx(br, { name: e, size: 21, fontSize: 12 }) : /* @__PURE__ */ n.jsx(n.Fragment, {}) }), Rc = ({ knownTypes: e, typeFilters: t, onChangeTypeFilters: r }) => /* @__PURE__ */ n.jsx("div", { className: "mb-1 d-flex justify-content-center gap-2", children: e.map((s) => /* @__PURE__ */ n.jsx("div", { role: "button", style: {
3863
3863
  height: "14px",
@@ -3914,31 +3914,31 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: s, labe
3914
3914
  apiDelete: "/messageBoard/"
3915
3915
  }, Ud = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = Qt.apiGet, apiDelete: s = Qt.apiDelete } = Qt, getIcon: a, getLinksTo: o }) => {
3916
3916
  const c = et(), [l, u] = O([]), [d, m] = O(!1), [x, p] = O(!1), [h, g] = O(!1), v = S(async () => {
3917
- p(!0), await c.get(r).then(({ data: _ }) => {
3918
- u(_), m(!0), p(!1);
3917
+ p(!0), await c.get(r).then(({ data: N }) => {
3918
+ u(N), m(!0), p(!1);
3919
3919
  }).catch(() => {
3920
3920
  u([]), p(!1);
3921
3921
  });
3922
- }, [r, c]), w = S(async (_) => c.delete(`${s}${_}`).then(() => !0).catch(() => !1), [s, c]), j = S((_) => {
3923
- w(_).then((D) => {
3924
- D && u(l.filter(($) => $.id !== _));
3922
+ }, [r, c]), y = S(async (N) => c.delete(`${s}${N}`).then(() => !0).catch(() => !1), [s, c]), j = S((N) => {
3923
+ y(N).then((I) => {
3924
+ I && u(l.filter(($) => $.id !== N));
3925
3925
  });
3926
- }, [w, l]);
3926
+ }, [y, l]);
3927
3927
  L(() => {
3928
3928
  v();
3929
- const _ = setInterval(() => v(), 60 * 1e3);
3929
+ const N = setInterval(() => v(), 60 * 1e3);
3930
3930
  return () => {
3931
- clearInterval(_);
3931
+ clearInterval(N);
3932
3932
  };
3933
3933
  }, [v]);
3934
- const f = l.filter((_) => _.type === "danger").length, y = d ? !1 : x;
3934
+ const f = l.filter((N) => N.type === "danger").length, w = d ? !1 : x;
3935
3935
  return e ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3936
3936
  /* @__PURE__ */ n.jsxs("div", { className: "position-relative", children: [
3937
3937
  /* @__PURE__ */ n.jsx(re, { size: "md", onClick: () => g(!h), children: t }),
3938
3938
  f > 0 && /* @__PURE__ */ n.jsx("div", { className: "badge rounded-pill bg-danger p-1 px-2 text-white", style: { position: "absolute", top: "-6px", right: "-10px", fontSize: "10px" }, children: f })
3939
3939
  ] }),
3940
- /* @__PURE__ */ n.jsx(zn, { show: h, onHide: () => g(!1), placement: "end", children: /* @__PURE__ */ n.jsx(zn.Body, { children: /* @__PURE__ */ n.jsx(lr, { messages: l, isLoading: y, onDeleteMessage: j, onClickMessage: () => g(!1), getIcon: a, getLinksTo: o }) }) })
3941
- ] }) : /* @__PURE__ */ n.jsx(lr, { messages: l, isLoading: y, onDeleteMessage: j, getIcon: a, getLinksTo: o });
3940
+ /* @__PURE__ */ n.jsx(zn, { show: h, onHide: () => g(!1), placement: "end", children: /* @__PURE__ */ n.jsx(zn.Body, { children: /* @__PURE__ */ n.jsx(lr, { messages: l, isLoading: w, onDeleteMessage: j, onClickMessage: () => g(!1), getIcon: a, getLinksTo: o }) }) })
3941
+ ] }) : /* @__PURE__ */ n.jsx(lr, { messages: l, isLoading: w, onDeleteMessage: j, getIcon: a, getLinksTo: o });
3942
3942
  }, Mc = "_tab-panel_d8l8q_1", Bc = "_full-height-no-overflow_d8l8q_5", Vc = "_disabled_d8l8q_12", Zt = {
3943
3943
  "tab-panel": "_tab-panel_d8l8q_1",
3944
3944
  tabPanel: Mc,