react-luminus-components 1.3.127 → 1.3.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.es.js CHANGED
@@ -1,31 +1,31 @@
1
- import { j as n, c as b, t as je, a as xt, s as Cn, g as kn, m as Na, d as Nt, b as Sa, e as Ca, f as Me, h as ka, i as Ia, k as Da, l as $a, n as Ea, o as Fa, p as Oa, T as cr, q as dr, r as In, E as Ta, u as ur, v as ln, w as fr, x as Ra, y as me, z as Ft, A as La, B as mr, C as Ot, D as Aa, F as Xt, G as hr, H as Ma, S as en, N as gr, I as cn, J as dn, K as Ba, L as Va, M as Pa, O as za, P as Ha, Q as pr, R as Wa, U as Ua, V as Ya, W as Ga, X as Ka, Y as qa, Z as Qa, _ as Za, $ as tn, a0 as Ja, a1 as Pt, a2 as X, a3 as pe, a4 as nn, a5 as Xa, a6 as es, a7 as ts, a8 as xr, a9 as vt, aa as re, ab as un, ac as ye, ad as fn, ae as ze, af as ns, ag as Le, ah as vr, ai as rs, aj as jr, ak as as, al as ss, am as os, an as mn, ao as hn, ap as yr, aq as Je, ar as is, as as et, at as ls, au as kt, av as wr, aw as Te, ax as cs, ay as ds, az as us, aA as fs, aB as Tt, aC as ms, aD as br, aE as hs, aF as tt, aG as gs, aH as _r, aI as Nr, aJ as Sr, aK as He, aL as ps, aM as xs, aN as Oe, aO as vs, aP as jt, aQ as js, aR as Rt, aS as Cr, aT as Lt, aU as zt, aV as We, aW as Dn, aX as ys, aY as ws, aZ as nt, a_ as bs, a$ as _s, b0 as Ns, b1 as Ss, b2 as Cs } from "./ResponsiveContextDropdown-CdpFpQxZ.js";
1
+ import { j as n, c as b, t as je, a as xt, s as Cn, g as kn, m as Ns, d as Nt, b as Ss, e as Cs, f as Me, h as ks, i as Is, k as Ds, l as $s, n as Es, o as Fs, p as Os, T as cr, q as dr, r as In, E as Ts, u as ur, v as ln, w as fr, x as Rs, y as me, z as Ft, A as Ls, B as mr, C as Ot, D as As, F as Xt, G as hr, H as Ms, S as en, N as gr, I as cn, J as dn, K as Bs, L as Vs, M as Ps, O as zs, P as Hs, Q as pr, R as Ws, U as Us, V as Ys, W as Gs, X as Ks, Y as qs, Z as Qs, _ as Zs, $ as tn, a0 as Js, a1 as Pt, a2 as X, a3 as pe, a4 as nn, a5 as Xs, a6 as ea, a7 as ta, a8 as xr, a9 as vt, aa as re, ab as un, ac as ye, ad as fn, ae as ze, af as na, ag as Le, ah as vr, ai as ra, aj as jr, ak as sa, al as aa, am as oa, an as mn, ao as hn, ap as yr, aq as Je, ar as ia, as as et, at as la, au as kt, av as wr, aw as Te, ax as ca, ay as da, az as ua, aA as fa, aB as Tt, aC as ma, aD as br, aE as ha, aF as tt, aG as ga, aH as _r, aI as Nr, aJ as Sr, aK as He, aL as pa, aM as xa, aN as Oe, aO as va, aP as jt, aQ as ja, aR as Rt, aS as Cr, aT as Lt, aU as zt, aV as We, aW as Dn, aX as ya, aY as wa, aZ as nt, a_ as ba, a$ as _a, b0 as Na, b1 as Sa, b2 as Ca } from "./ResponsiveContextDropdown-CdpFpQxZ.js";
2
2
  import { b6 as Zd, b7 as Jd, b4 as Xd, b3 as eu, b8 as tu, b9 as nu, b5 as ru } from "./ResponsiveContextDropdown-CdpFpQxZ.js";
3
3
  import * as oe from "react";
4
- import Se, { useCallback as S, useMemo as ee, useContext as Z, useRef as ne, useEffect as L, useState as O, useId as ks, Component as Is, isValidElement as $n, Suspense as Ds, useReducer as $s, useLayoutEffect as Es } from "react";
4
+ import Se, { useCallback as S, useMemo as ee, useContext as Z, useRef as ne, useEffect as L, useState as O, useId as ka, Component as Ia, isValidElement as $n, Suspense as Da, useReducer as $a, useLayoutEffect as Ea } from "react";
5
5
  import { c as Be, L as En } from "./Loading-31doBIdE.js";
6
- import { InteractionType as Fs } from "@azure/msal-browser";
7
- import { MsalAuthenticationTemplate as Os } from "@azure/msal-react";
8
- import { useNavigate as kr, Link as Xe, Navigate as _t, generatePath as It, useParams as Ts } from "react-router-dom";
6
+ import { InteractionType as Fa } from "@azure/msal-browser";
7
+ import { MsalAuthenticationTemplate as Oa } from "@azure/msal-react";
8
+ import { useNavigate as kr, Link as Xe, Navigate as _t, generatePath as It, useParams as Ta } from "react-router-dom";
9
9
  import { useFormContext as Ue, Controller as gn } from "react-hook-form";
10
- import { Pivot as Rs } from "react-flexmonster";
10
+ import { Pivot as Ra } from "react-flexmonster";
11
11
  import { s as Dt, l as gt } from "./searchUtils-Bz9T45BA.js";
12
12
  import { S as At } from "./SimpleTooltip-D0G41VQN.js";
13
13
  import { u as Ir } from "./useClickOutside-BmlXg38T.js";
14
- import { u as Ls, a as Dr, b as As, c as Ms, d as Bs } from "./useClipboard-Y0W8_RNe.js";
14
+ import { u as La, a as Dr, b as Aa, c as Ma, d as Ba } from "./useClipboard-Y0W8_RNe.js";
15
15
  import $t from "react-dom";
16
- import { u as Vs } from "./useGetApiData-B_2_aA4k.js";
17
- import { F as Ps } from "./FullScreenContainer-ykoJS9e2.js";
16
+ import { u as Va } from "./useGetApiData-B_2_aA4k.js";
17
+ import { F as Pa } from "./FullScreenContainer-ykoJS9e2.js";
18
18
  const id = ({ fileLoader: e, fileName: t, children: r }) => {
19
- const a = S(async () => {
19
+ const s = S(async () => {
20
20
  var c, l;
21
- const s = await e();
22
- if (!s)
21
+ const a = await e();
22
+ if (!a)
23
23
  return;
24
- const o = window.URL.createObjectURL(new Blob([s])), i = document.createElement("a");
24
+ const o = window.URL.createObjectURL(new Blob([a])), i = document.createElement("a");
25
25
  i.href = o, i.setAttribute("download", t), (c = document.body) == null || c.appendChild(i), i.click(), (l = document.body) == null || l.removeChild(i);
26
26
  }, [e, t]);
27
- return /* @__PURE__ */ n.jsx("div", { role: "button", onClick: a, children: r });
28
- }, zs = ({ className: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className: b("luminus-loading", Be.loading, Be.loadingBlock, Be.loadingBlock), ...t, children: [
27
+ return /* @__PURE__ */ n.jsx("div", { role: "button", onClick: s, children: r });
28
+ }, za = ({ className: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className: b("luminus-loading", Be.loading, Be.loadingBlock, Be.loadingBlock), ...t, children: [
29
29
  /* @__PURE__ */ n.jsx("div", { className: b("spinner-grow", Be.spinnerGrow, "text-primary"), role: "status" }),
30
30
  /* @__PURE__ */ n.jsx("div", { className: b("spinner-grow", Be.spinnerGrow, "text-primary", Be.second), role: "status" }),
31
31
  /* @__PURE__ */ n.jsx("div", { className: b("spinner-grow", Be.spinnerGrow, "text-primary", Be.third), role: "status" })
@@ -35,46 +35,46 @@ function $r(e, t) {
35
35
  if (isNaN(t)) return xt(e, NaN);
36
36
  if (!t)
37
37
  return r;
38
- const a = r.getDate(), s = xt(e, r.getTime());
39
- s.setMonth(r.getMonth() + t + 1, 0);
40
- const o = s.getDate();
41
- return a >= o ? s : (r.setFullYear(
42
- s.getFullYear(),
43
- s.getMonth(),
44
- a
38
+ const s = r.getDate(), a = xt(e, r.getTime());
39
+ a.setMonth(r.getMonth() + t + 1, 0);
40
+ const o = a.getDate();
41
+ return s >= o ? a : (r.setFullYear(
42
+ a.getFullYear(),
43
+ a.getMonth(),
44
+ s
45
45
  ), r);
46
46
  }
47
- function Hs(e, t) {
47
+ function Ha(e, t) {
48
48
  return $r(e, t * 12);
49
49
  }
50
- function Ws(e, t) {
51
- const r = je(e), a = je(t), s = r.getTime() - a.getTime();
52
- return s < 0 ? -1 : s > 0 ? 1 : s;
50
+ function Wa(e, t) {
51
+ const r = je(e), s = je(t), a = r.getTime() - s.getTime();
52
+ return a < 0 ? -1 : a > 0 ? 1 : a;
53
53
  }
54
54
  function Fn(e, t) {
55
- const r = je(e), a = je(t), s = r.getFullYear() - a.getFullYear(), o = r.getMonth() - a.getMonth();
56
- return s * 12 + o;
55
+ const r = je(e), s = je(t), a = r.getFullYear() - s.getFullYear(), o = r.getMonth() - s.getMonth();
56
+ return a * 12 + o;
57
57
  }
58
58
  function On(e) {
59
59
  const t = je(e);
60
60
  return Math.trunc(t.getMonth() / 3) + 1;
61
61
  }
62
62
  function Ht(e, t) {
63
- const r = je(e), a = je(t), s = r.getFullYear() - a.getFullYear(), o = On(r) - On(a);
64
- return s * 4 + o;
63
+ const r = je(e), s = je(t), a = r.getFullYear() - s.getFullYear(), o = On(r) - On(s);
64
+ return a * 4 + o;
65
65
  }
66
66
  function Tn(e, t, r) {
67
- const a = Cn(e, r), s = Cn(t, r), o = +a - kn(a), i = +s - kn(s);
68
- return Math.round((o - i) / Na);
67
+ const s = Cn(e, r), a = Cn(t, r), o = +s - kn(s), i = +a - kn(a);
68
+ return Math.round((o - i) / Ns);
69
69
  }
70
70
  function Wt(e, t) {
71
- const r = je(e), a = je(t);
72
- return r.getFullYear() - a.getFullYear();
71
+ const r = je(e), s = je(t);
72
+ return r.getFullYear() - s.getFullYear();
73
73
  }
74
- function Us(e, t) {
75
- const r = je(e), a = je(t), s = Rn(r, a), o = Math.abs(Nt(r, a));
76
- r.setDate(r.getDate() - s * o);
77
- const i = +(Rn(r, a) === -s), c = s * (o - i);
74
+ function Ua(e, t) {
75
+ const r = je(e), s = je(t), a = Rn(r, s), o = Math.abs(Nt(r, s));
76
+ r.setDate(r.getDate() - a * o);
77
+ const i = +(Rn(r, s) === -a), c = a * (o - i);
78
78
  return c === 0 ? 0 : c;
79
79
  }
80
80
  function Rn(e, t) {
@@ -83,37 +83,37 @@ function Rn(e, t) {
83
83
  }
84
84
  function pn(e) {
85
85
  return (t) => {
86
- const a = (e ? Math[e] : Math.trunc)(t);
87
- return a === 0 ? 0 : a;
86
+ const s = (e ? Math[e] : Math.trunc)(t);
87
+ return s === 0 ? 0 : s;
88
88
  };
89
89
  }
90
90
  function xn(e, t) {
91
91
  return +je(e) - +je(t);
92
92
  }
93
93
  function Ln(e, t, r) {
94
- const a = xn(e, t) / Sa;
95
- return pn(r == null ? void 0 : r.roundingMethod)(a);
94
+ const s = xn(e, t) / Ss;
95
+ return pn(r == null ? void 0 : r.roundingMethod)(s);
96
96
  }
97
97
  function An(e, t, r) {
98
- const a = xn(e, t) / Ca;
99
- return pn(r == null ? void 0 : r.roundingMethod)(a);
98
+ const s = xn(e, t) / Cs;
99
+ return pn(r == null ? void 0 : r.roundingMethod)(s);
100
100
  }
101
101
  function Ut(e, t, r) {
102
- const a = xn(e, t) / 1e3;
103
- return pn(r == null ? void 0 : r.roundingMethod)(a);
102
+ const s = xn(e, t) / 1e3;
103
+ return pn(r == null ? void 0 : r.roundingMethod)(s);
104
104
  }
105
105
  function rn(e, t) {
106
106
  const r = je(e);
107
107
  if (isNaN(r.getTime()))
108
108
  throw new RangeError("Invalid time value");
109
- const a = (t == null ? void 0 : t.format) ?? "extended", s = (t == null ? void 0 : t.representation) ?? "complete";
109
+ const s = (t == null ? void 0 : t.format) ?? "extended", a = (t == null ? void 0 : t.representation) ?? "complete";
110
110
  let o = "", i = "";
111
- const c = a === "extended" ? "-" : "", l = a === "extended" ? ":" : "";
112
- if (s !== "time") {
111
+ const c = s === "extended" ? "-" : "", l = s === "extended" ? ":" : "";
112
+ if (a !== "time") {
113
113
  const u = Me(r.getDate(), 2), d = Me(r.getMonth() + 1, 2);
114
114
  o = `${Me(r.getFullYear(), 4)}${c}${d}${c}${u}`;
115
115
  }
116
- if (s !== "date") {
116
+ if (a !== "date") {
117
117
  const u = r.getTimezoneOffset();
118
118
  if (u !== 0) {
119
119
  const g = Math.abs(u), v = Me(Math.trunc(g / 60), 2), w = Me(g % 60, 2);
@@ -125,30 +125,30 @@ function rn(e, t) {
125
125
  }
126
126
  return o;
127
127
  }
128
- function Ys(e) {
129
- const t = je(e), r = t.getFullYear(), a = t.getMonth(), s = xt(e, 0);
130
- return s.setFullYear(r, a + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
128
+ function Ya(e) {
129
+ const t = je(e), r = t.getFullYear(), s = t.getMonth(), a = xt(e, 0);
130
+ return a.setFullYear(r, s + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
131
131
  }
132
- function Gs(e, t, r) {
133
- let a = 0, s;
132
+ function Ga(e, t, r) {
133
+ let s = 0, a;
134
134
  const o = je(e), i = je(t);
135
135
  if (r != null && r.unit)
136
- s = r == null ? void 0 : r.unit, s === "second" ? a = Ut(o, i) : s === "minute" ? a = An(o, i) : s === "hour" ? a = Ln(o, i) : s === "day" ? a = Nt(o, i) : s === "week" ? a = Tn(o, i) : s === "month" ? a = Fn(o, i) : s === "quarter" ? a = Ht(o, i) : s === "year" && (a = Wt(o, i));
136
+ a = r == null ? void 0 : r.unit, a === "second" ? s = Ut(o, i) : a === "minute" ? s = An(o, i) : a === "hour" ? s = Ln(o, i) : a === "day" ? s = Nt(o, i) : a === "week" ? s = Tn(o, i) : a === "month" ? s = Fn(o, i) : a === "quarter" ? s = Ht(o, i) : a === "year" && (s = Wt(o, i));
137
137
  else {
138
138
  const l = Ut(o, i);
139
- Math.abs(l) < ka ? (a = Ut(o, i), s = "second") : Math.abs(l) < Ia ? (a = An(o, i), s = "minute") : Math.abs(l) < Da && Math.abs(Nt(o, i)) < 1 ? (a = Ln(o, i), s = "hour") : Math.abs(l) < $a && (a = Nt(o, i)) && Math.abs(a) < 7 ? s = "day" : Math.abs(l) < Ea ? (a = Tn(o, i), s = "week") : Math.abs(l) < Fa ? (a = Fn(o, i), s = "month") : Math.abs(l) < Oa && Ht(o, i) < 4 ? (a = Ht(o, i), s = "quarter") : (a = Wt(o, i), s = "year");
139
+ Math.abs(l) < ks ? (s = Ut(o, i), a = "second") : Math.abs(l) < Is ? (s = An(o, i), a = "minute") : Math.abs(l) < Ds && Math.abs(Nt(o, i)) < 1 ? (s = Ln(o, i), a = "hour") : Math.abs(l) < $s && (s = Nt(o, i)) && Math.abs(s) < 7 ? a = "day" : Math.abs(l) < Es ? (s = Tn(o, i), a = "week") : Math.abs(l) < Fs ? (s = Fn(o, i), a = "month") : Math.abs(l) < Os && Ht(o, i) < 4 ? (s = Ht(o, i), a = "quarter") : (s = Wt(o, i), a = "year");
140
140
  }
141
141
  return new Intl.RelativeTimeFormat(r == null ? void 0 : r.locale, {
142
142
  localeMatcher: r == null ? void 0 : r.localeMatcher,
143
143
  numeric: (r == null ? void 0 : r.numeric) || "auto",
144
144
  style: r == null ? void 0 : r.style
145
- }).format(a, s);
145
+ }).format(s, a);
146
146
  }
147
- function Ks(e, t) {
148
- const r = je(e), a = r.getFullYear(), s = r.getDate(), o = xt(e, 0);
149
- o.setFullYear(a, t, 15), o.setHours(0, 0, 0, 0);
150
- const i = Ys(o);
151
- return r.setMonth(t, Math.min(s, i)), r;
147
+ function Ka(e, t) {
148
+ const r = je(e), s = r.getFullYear(), a = r.getDate(), o = xt(e, 0);
149
+ o.setFullYear(s, t, 15), o.setHours(0, 0, 0, 0);
150
+ const i = Ya(o);
151
+ return r.setMonth(t, Math.min(a, i)), r;
152
152
  }
153
153
  function Er(e, t) {
154
154
  const r = je(e);
@@ -158,23 +158,23 @@ function ht(...e) {
158
158
  return e.filter((t) => t != null).reduce((t, r) => {
159
159
  if (typeof r != "function")
160
160
  throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");
161
- return t === null ? r : function(...s) {
162
- t.apply(this, s), r.apply(this, s);
161
+ return t === null ? r : function(...a) {
162
+ t.apply(this, a), r.apply(this, a);
163
163
  };
164
164
  }, null);
165
165
  }
166
- const qs = {
166
+ const qa = {
167
167
  height: ["marginTop", "marginBottom"],
168
168
  width: ["marginLeft", "marginRight"]
169
169
  };
170
- function Qs(e, t) {
171
- const r = `offset${e[0].toUpperCase()}${e.slice(1)}`, a = t[r], s = qs[e];
172
- return a + // @ts-ignore
173
- parseInt(In(t, s[0]), 10) + // @ts-ignore
174
- parseInt(In(t, s[1]), 10);
175
- }
176
- const Zs = {
177
- [Ta]: "collapse",
170
+ function Qa(e, t) {
171
+ const r = `offset${e[0].toUpperCase()}${e.slice(1)}`, s = t[r], a = qa[e];
172
+ return s + // @ts-ignore
173
+ parseInt(In(t, a[0]), 10) + // @ts-ignore
174
+ parseInt(In(t, a[1]), 10);
175
+ }
176
+ const Za = {
177
+ [Ts]: "collapse",
178
178
  [ur]: "collapsing",
179
179
  [ln]: "collapsing",
180
180
  [fr]: "collapse show"
@@ -182,8 +182,8 @@ const Zs = {
182
182
  onEnter: e,
183
183
  onEntering: t,
184
184
  onEntered: r,
185
- onExit: a,
186
- onExiting: s,
185
+ onExit: s,
186
+ onExiting: a,
187
187
  className: o,
188
188
  children: i,
189
189
  dimension: c = "height",
@@ -192,21 +192,21 @@ const Zs = {
192
192
  mountOnEnter: d = !1,
193
193
  unmountOnExit: m = !1,
194
194
  appear: p = !1,
195
- getDimensionValue: x = Qs,
195
+ getDimensionValue: x = Qa,
196
196
  ...h
197
197
  }, g) => {
198
- const v = typeof c == "function" ? c() : c, w = ee(() => ht(($) => {
199
- $.style[v] = "0";
200
- }, e), [v, e]), j = ee(() => ht(($) => {
201
- const E = `scroll${v[0].toUpperCase()}${v.slice(1)}`;
202
- $.style[v] = `${$[E]}px`;
203
- }, t), [v, t]), f = ee(() => ht(($) => {
204
- $.style[v] = null;
205
- }, r), [v, r]), y = ee(() => ht(($) => {
206
- $.style[v] = `${x(v, $)}px`, Ra($);
207
- }, a), [a, x, v]), _ = ee(() => ht(($) => {
208
- $.style[v] = null;
209
- }, s), [v, s]);
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) => {
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] = `${x(v, D)}px`, Rs(D);
207
+ }, s), [s, x, v]), _ = ee(() => ht((D) => {
208
+ D.style[v] = null;
209
+ }, a), [v, a]);
210
210
  return /* @__PURE__ */ n.jsx(cr, {
211
211
  ref: g,
212
212
  addEndListener: dr,
@@ -223,9 +223,9 @@ const Zs = {
223
223
  mountOnEnter: d,
224
224
  unmountOnExit: m,
225
225
  appear: p,
226
- children: ($, E) => /* @__PURE__ */ Se.cloneElement(i, {
227
- ...E,
228
- className: b(o, i.props.className, Zs[$], v === "width" && "collapse-horizontal")
226
+ children: (D, $) => /* @__PURE__ */ Se.cloneElement(i, {
227
+ ...$,
228
+ className: b(o, i.props.className, Za[D], v === "width" && "collapse-horizontal")
229
229
  })
230
230
  });
231
231
  }), Or = Ft("h4");
@@ -234,29 +234,29 @@ const Tr = /* @__PURE__ */ oe.forwardRef(({
234
234
  className: e,
235
235
  bsPrefix: t,
236
236
  as: r = Or,
237
- ...a
238
- }, s) => (t = me(t, "alert-heading"), /* @__PURE__ */ n.jsx(r, {
239
- ref: s,
237
+ ...s
238
+ }, a) => (t = me(t, "alert-heading"), /* @__PURE__ */ n.jsx(r, {
239
+ ref: a,
240
240
  className: b(e, t),
241
- ...a
241
+ ...s
242
242
  })));
243
243
  Tr.displayName = "AlertHeading";
244
244
  const Rr = /* @__PURE__ */ oe.forwardRef(({
245
245
  className: e,
246
246
  bsPrefix: t,
247
- as: r = La,
248
- ...a
249
- }, s) => (t = me(t, "alert-link"), /* @__PURE__ */ n.jsx(r, {
250
- ref: s,
247
+ as: r = Ls,
248
+ ...s
249
+ }, a) => (t = me(t, "alert-link"), /* @__PURE__ */ n.jsx(r, {
250
+ ref: a,
251
251
  className: b(e, t),
252
- ...a
252
+ ...s
253
253
  })));
254
254
  Rr.displayName = "AlertLink";
255
255
  const Lr = /* @__PURE__ */ oe.forwardRef((e, t) => {
256
256
  const {
257
257
  bsPrefix: r,
258
- show: a = !0,
259
- closeLabel: s = "Close alert",
258
+ show: s = !0,
259
+ closeLabel: a = "Close alert",
260
260
  closeVariant: o,
261
261
  className: i,
262
262
  children: c,
@@ -274,9 +274,9 @@ const Lr = /* @__PURE__ */ oe.forwardRef((e, t) => {
274
274
  ...g ? void 0 : p,
275
275
  ref: t,
276
276
  className: b(i, x, l && `${x}-${l}`, d && `${x}-dismissible`),
277
- children: [d && /* @__PURE__ */ n.jsx(Aa, {
277
+ children: [d && /* @__PURE__ */ n.jsx(As, {
278
278
  onClick: h,
279
- "aria-label": s,
279
+ "aria-label": a,
280
280
  variant: o
281
281
  }), c]
282
282
  });
@@ -284,34 +284,34 @@ const Lr = /* @__PURE__ */ oe.forwardRef((e, t) => {
284
284
  unmountOnExit: !0,
285
285
  ...p,
286
286
  ref: void 0,
287
- in: a,
287
+ in: s,
288
288
  children: v
289
- }) : a ? v : null;
289
+ }) : s ? v : null;
290
290
  });
291
291
  Lr.displayName = "Alert";
292
- const Js = Object.assign(Lr, {
292
+ const Ja = Object.assign(Lr, {
293
293
  Link: Rr,
294
294
  Heading: Tr
295
295
  }), vn = /* @__PURE__ */ oe.forwardRef(({
296
296
  className: e,
297
297
  bsPrefix: t,
298
298
  as: r = "div",
299
- ...a
300
- }, s) => (t = me(t, "card-body"), /* @__PURE__ */ n.jsx(r, {
301
- ref: s,
299
+ ...s
300
+ }, a) => (t = me(t, "card-body"), /* @__PURE__ */ n.jsx(r, {
301
+ ref: a,
302
302
  className: b(e, t),
303
- ...a
303
+ ...s
304
304
  })));
305
305
  vn.displayName = "CardBody";
306
306
  const Ar = /* @__PURE__ */ oe.forwardRef(({
307
307
  className: e,
308
308
  bsPrefix: t,
309
309
  as: r = "div",
310
- ...a
311
- }, s) => (t = me(t, "card-footer"), /* @__PURE__ */ n.jsx(r, {
312
- ref: s,
310
+ ...s
311
+ }, a) => (t = me(t, "card-footer"), /* @__PURE__ */ n.jsx(r, {
312
+ ref: a,
313
313
  className: b(e, t),
314
- ...a
314
+ ...s
315
315
  })));
316
316
  Ar.displayName = "CardFooter";
317
317
  const Mr = /* @__PURE__ */ oe.createContext(null);
@@ -321,16 +321,16 @@ const Br = /* @__PURE__ */ oe.forwardRef(({
321
321
  className: t,
322
322
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
323
323
  as: r = "div",
324
- ...a
325
- }, s) => {
324
+ ...s
325
+ }, a) => {
326
326
  const o = me(e, "card-header"), i = ee(() => ({
327
327
  cardHeaderBsPrefix: o
328
328
  }), [o]);
329
329
  return /* @__PURE__ */ n.jsx(Mr.Provider, {
330
330
  value: i,
331
331
  children: /* @__PURE__ */ n.jsx(r, {
332
- ref: s,
333
- ...a,
332
+ ref: a,
333
+ ...s,
334
334
  className: b(t, o)
335
335
  })
336
336
  });
@@ -342,14 +342,14 @@ const Vr = /* @__PURE__ */ oe.forwardRef(
342
342
  bsPrefix: e,
343
343
  className: t,
344
344
  variant: r,
345
- as: a = "img",
346
- ...s
345
+ as: s = "img",
346
+ ...a
347
347
  }, o) => {
348
348
  const i = me(e, "card-img");
349
- return /* @__PURE__ */ n.jsx(a, {
349
+ return /* @__PURE__ */ n.jsx(s, {
350
350
  ref: o,
351
351
  className: b(r ? `${i}-${r}` : i, t),
352
- ...s
352
+ ...a
353
353
  });
354
354
  }
355
355
  );
@@ -358,63 +358,63 @@ const Pr = /* @__PURE__ */ oe.forwardRef(({
358
358
  className: e,
359
359
  bsPrefix: t,
360
360
  as: r = "div",
361
- ...a
362
- }, s) => (t = me(t, "card-img-overlay"), /* @__PURE__ */ n.jsx(r, {
363
- ref: s,
361
+ ...s
362
+ }, a) => (t = me(t, "card-img-overlay"), /* @__PURE__ */ n.jsx(r, {
363
+ ref: a,
364
364
  className: b(e, t),
365
- ...a
365
+ ...s
366
366
  })));
367
367
  Pr.displayName = "CardImgOverlay";
368
368
  const zr = /* @__PURE__ */ oe.forwardRef(({
369
369
  className: e,
370
370
  bsPrefix: t,
371
371
  as: r = "a",
372
- ...a
373
- }, s) => (t = me(t, "card-link"), /* @__PURE__ */ n.jsx(r, {
374
- ref: s,
372
+ ...s
373
+ }, a) => (t = me(t, "card-link"), /* @__PURE__ */ n.jsx(r, {
374
+ ref: a,
375
375
  className: b(e, t),
376
- ...a
376
+ ...s
377
377
  })));
378
378
  zr.displayName = "CardLink";
379
- const Xs = Ft("h6"), Hr = /* @__PURE__ */ oe.forwardRef(({
379
+ const Xa = Ft("h6"), Hr = /* @__PURE__ */ oe.forwardRef(({
380
380
  className: e,
381
381
  bsPrefix: t,
382
- as: r = Xs,
383
- ...a
384
- }, s) => (t = me(t, "card-subtitle"), /* @__PURE__ */ n.jsx(r, {
385
- ref: s,
382
+ as: r = Xa,
383
+ ...s
384
+ }, a) => (t = me(t, "card-subtitle"), /* @__PURE__ */ n.jsx(r, {
385
+ ref: a,
386
386
  className: b(e, t),
387
- ...a
387
+ ...s
388
388
  })));
389
389
  Hr.displayName = "CardSubtitle";
390
390
  const Wr = /* @__PURE__ */ oe.forwardRef(({
391
391
  className: e,
392
392
  bsPrefix: t,
393
393
  as: r = "p",
394
- ...a
395
- }, s) => (t = me(t, "card-text"), /* @__PURE__ */ n.jsx(r, {
396
- ref: s,
394
+ ...s
395
+ }, a) => (t = me(t, "card-text"), /* @__PURE__ */ n.jsx(r, {
396
+ ref: a,
397
397
  className: b(e, t),
398
- ...a
398
+ ...s
399
399
  })));
400
400
  Wr.displayName = "CardText";
401
401
  const eo = Ft("h5"), Ur = /* @__PURE__ */ oe.forwardRef(({
402
402
  className: e,
403
403
  bsPrefix: t,
404
404
  as: r = eo,
405
- ...a
406
- }, s) => (t = me(t, "card-title"), /* @__PURE__ */ n.jsx(r, {
407
- ref: s,
405
+ ...s
406
+ }, a) => (t = me(t, "card-title"), /* @__PURE__ */ n.jsx(r, {
407
+ ref: a,
408
408
  className: b(e, t),
409
- ...a
409
+ ...s
410
410
  })));
411
411
  Ur.displayName = "CardTitle";
412
412
  const Yr = /* @__PURE__ */ oe.forwardRef(({
413
413
  bsPrefix: e,
414
414
  className: t,
415
415
  bg: r,
416
- text: a,
417
- border: s,
416
+ text: s,
417
+ border: a,
418
418
  body: o = !1,
419
419
  children: i,
420
420
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
@@ -425,7 +425,7 @@ const Yr = /* @__PURE__ */ oe.forwardRef(({
425
425
  return /* @__PURE__ */ n.jsx(c, {
426
426
  ref: u,
427
427
  ...l,
428
- className: b(t, d, r && `bg-${r}`, a && `text-${a}`, s && `border-${s}`),
428
+ className: b(t, d, r && `bg-${r}`, s && `text-${s}`, a && `border-${a}`),
429
429
  children: o ? /* @__PURE__ */ n.jsx(vn, {
430
430
  children: i
431
431
  }) : i
@@ -446,11 +446,11 @@ const Mn = Object.assign(Yr, {
446
446
  className: e,
447
447
  bsPrefix: t,
448
448
  as: r = "span",
449
- ...a
450
- }, s) => (t = me(t, "input-group-text"), /* @__PURE__ */ n.jsx(r, {
451
- ref: s,
449
+ ...s
450
+ }, a) => (t = me(t, "input-group-text"), /* @__PURE__ */ n.jsx(r, {
451
+ ref: a,
452
452
  className: b(e, t),
453
- ...a
453
+ ...s
454
454
  })));
455
455
  Mt.displayName = "InputGroupText";
456
456
  const to = (e) => /* @__PURE__ */ n.jsx(Mt, {
@@ -467,19 +467,19 @@ const to = (e) => /* @__PURE__ */ n.jsx(Mt, {
467
467
  bsPrefix: e,
468
468
  size: t,
469
469
  hasValidation: r,
470
- className: a,
470
+ className: s,
471
471
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
472
- as: s = "div",
472
+ as: a = "div",
473
473
  ...o
474
474
  }, i) => {
475
475
  e = me(e, "input-group");
476
476
  const c = ee(() => ({}), []);
477
- return /* @__PURE__ */ n.jsx(Ma.Provider, {
477
+ return /* @__PURE__ */ n.jsx(Ms.Provider, {
478
478
  value: c,
479
- children: /* @__PURE__ */ n.jsx(s, {
479
+ children: /* @__PURE__ */ n.jsx(a, {
480
480
  ref: i,
481
481
  ...o,
482
- className: b(a, e, t && `${e}-${t}`, r && "has-validation")
482
+ className: b(s, e, t && `${e}-${t}`, r && "has-validation")
483
483
  })
484
484
  });
485
485
  });
@@ -489,12 +489,12 @@ const St = Object.assign(Gr, {
489
489
  Radio: no,
490
490
  Checkbox: to
491
491
  }), Kr = /* @__PURE__ */ oe.createContext(null), ro = ["as", "active", "eventKey"];
492
- function ao(e, t) {
492
+ function so(e, t) {
493
493
  if (e == null) return {};
494
494
  var r = {};
495
- for (var a in e) if ({}.hasOwnProperty.call(e, a)) {
496
- if (t.indexOf(a) >= 0) continue;
497
- r[a] = e[a];
495
+ for (var s in e) if ({}.hasOwnProperty.call(e, s)) {
496
+ if (t.indexOf(s) >= 0) continue;
497
+ r[s] = e[s];
498
498
  }
499
499
  return r;
500
500
  }
@@ -502,19 +502,19 @@ function qr({
502
502
  key: e,
503
503
  onClick: t,
504
504
  active: r,
505
- id: a,
506
- role: s,
505
+ id: s,
506
+ role: a,
507
507
  disabled: o
508
508
  }) {
509
509
  const i = Z(en), c = Z(gr), l = Z(Kr);
510
510
  let u = r;
511
511
  const d = {
512
- role: s
512
+ role: a
513
513
  };
514
514
  if (c) {
515
- !s && c.role === "tablist" && (d.role = "tab");
515
+ !a && c.role === "tablist" && (d.role = "tab");
516
516
  const m = c.getControllerId(e ?? null), p = c.getControlledId(e ?? null);
517
- d[cn("event-key")] = e, d.id = m || a, u = r == null && e != null ? c.activeKey === e : r, (u || !(l != null && l.unmountOnExit) && !(l != null && l.mountOnEnter)) && (d["aria-controls"] = p);
517
+ d[cn("event-key")] = e, d.id = m || s, u = r == null && e != null ? c.activeKey === e : r, (u || !(l != null && l.unmountOnExit) && !(l != null && l.mountOnEnter)) && (d["aria-controls"] = p);
518
518
  }
519
519
  return d.role === "tab" && (d["aria-selected"] = u, u || (d.tabIndex = -1), o && (d.tabIndex = -1, d["aria-disabled"] = !0)), d.onClick = Ot((m) => {
520
520
  o || (t == null || t(m), e != null && i && !m.isPropagationStopped() && i(e, m));
@@ -524,26 +524,26 @@ function qr({
524
524
  }
525
525
  const Qr = /* @__PURE__ */ oe.forwardRef((e, t) => {
526
526
  let {
527
- as: r = Ba,
528
- active: a,
529
- eventKey: s
530
- } = e, o = ao(e, ro);
527
+ as: r = Bs,
528
+ active: s,
529
+ eventKey: a
530
+ } = e, o = so(e, ro);
531
531
  const [i, c] = qr(Object.assign({
532
- key: dn(s, o.href),
533
- active: a
532
+ key: dn(a, o.href),
533
+ active: s
534
534
  }, o));
535
535
  return i[cn("active")] = c.isActive, /* @__PURE__ */ n.jsx(r, Object.assign({}, o, i, {
536
536
  ref: t
537
537
  }));
538
538
  });
539
539
  Qr.displayName = "NavItem";
540
- const so = Qr, oo = ["as", "onSelect", "activeKey", "role", "onKeyDown"];
540
+ const ao = Qr, oo = ["as", "onSelect", "activeKey", "role", "onKeyDown"];
541
541
  function io(e, t) {
542
542
  if (e == null) return {};
543
543
  var r = {};
544
- for (var a in e) if ({}.hasOwnProperty.call(e, a)) {
545
- if (t.indexOf(a) >= 0) continue;
546
- r[a] = e[a];
544
+ for (var s in e) if ({}.hasOwnProperty.call(e, s)) {
545
+ if (t.indexOf(s) >= 0) continue;
546
+ r[s] = e[s];
547
547
  }
548
548
  return r;
549
549
  }
@@ -552,25 +552,25 @@ const Bn = () => {
552
552
  let {
553
553
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
554
554
  as: r = "div",
555
- onSelect: a,
556
- activeKey: s,
555
+ onSelect: s,
556
+ activeKey: a,
557
557
  role: o,
558
558
  onKeyDown: i
559
559
  } = e, c = io(e, oo);
560
- const l = Va(), u = ne(!1), d = Z(en), m = Z(Kr);
560
+ const l = Vs(), u = ne(!1), d = Z(en), m = Z(Kr);
561
561
  let p, x;
562
- m && (o = o || "tablist", s = m.activeKey, p = m.getControlledId, x = m.getControllerId);
562
+ m && (o = o || "tablist", a = m.activeKey, p = m.getControlledId, x = m.getControllerId);
563
563
  const h = ne(null), g = (f) => {
564
564
  const y = h.current;
565
565
  if (!y) return null;
566
- const _ = Ha(y, `[${Vn}]:not([aria-disabled=true])`), $ = y.querySelector("[aria-selected=true]");
567
- if (!$ || $ !== document.activeElement) return null;
568
- const E = _.indexOf($);
569
- if (E === -1) return null;
570
- let I = E + f;
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);
569
+ if ($ === -1) return null;
570
+ let I = $ + f;
571
571
  return I >= _.length && (I = 0), I < 0 && (I = _.length - 1), _[I];
572
572
  }, v = (f, y) => {
573
- f != null && (a == null || a(f, y), d == null || d(f, y));
573
+ f != null && (s == null || s(f, y), d == null || d(f, y));
574
574
  }, w = (f) => {
575
575
  if (i == null || i(f), !m)
576
576
  return;
@@ -587,7 +587,7 @@ const Bn = () => {
587
587
  default:
588
588
  return;
589
589
  }
590
- y && (f.preventDefault(), v(y.dataset[za("EventKey")] || null, f), u.current = !0, l());
590
+ y && (f.preventDefault(), v(y.dataset[zs("EventKey")] || null, f), u.current = !0, l());
591
591
  };
592
592
  L(() => {
593
593
  if (h.current && u.current) {
@@ -596,14 +596,14 @@ const Bn = () => {
596
596
  }
597
597
  u.current = !1;
598
598
  });
599
- const j = Pa(t, h);
599
+ const j = Ps(t, h);
600
600
  return /* @__PURE__ */ n.jsx(en.Provider, {
601
601
  value: v,
602
602
  children: /* @__PURE__ */ n.jsx(gr.Provider, {
603
603
  value: {
604
604
  role: o,
605
605
  // used by NavLink to determine it's role
606
- activeKey: dn(s),
606
+ activeKey: dn(a),
607
607
  getControlledId: p || Bn,
608
608
  getControllerId: x || Bn
609
609
  },
@@ -617,13 +617,13 @@ const Bn = () => {
617
617
  });
618
618
  Zr.displayName = "Nav";
619
619
  const lo = Object.assign(Zr, {
620
- Item: so
620
+ Item: ao
621
621
  }), jn = /* @__PURE__ */ oe.forwardRef(({
622
622
  bsPrefix: e,
623
623
  active: t,
624
624
  disabled: r,
625
- eventKey: a,
626
- className: s,
625
+ eventKey: s,
626
+ className: a,
627
627
  variant: o,
628
628
  action: i,
629
629
  as: c,
@@ -631,7 +631,7 @@ const lo = Object.assign(Zr, {
631
631
  }, u) => {
632
632
  e = me(e, "list-group-item");
633
633
  const [d, m] = qr({
634
- key: dn(a, l.href),
634
+ key: dn(s, l.href),
635
635
  active: t,
636
636
  ...l
637
637
  }), p = Ot((h) => {
@@ -648,15 +648,15 @@ const lo = Object.assign(Zr, {
648
648
  ...l,
649
649
  ...d,
650
650
  onClick: p,
651
- className: b(s, e, m.isActive && "active", r && "disabled", o && `${e}-${o}`, i && `${e}-action`)
651
+ className: b(a, e, m.isActive && "active", r && "disabled", o && `${e}-${o}`, i && `${e}-action`)
652
652
  });
653
653
  });
654
654
  jn.displayName = "ListGroupItem";
655
655
  const Jr = /* @__PURE__ */ oe.forwardRef((e, t) => {
656
656
  const {
657
657
  className: r,
658
- bsPrefix: a,
659
- variant: s,
658
+ bsPrefix: s,
659
+ variant: a,
660
660
  horizontal: o,
661
661
  numbered: i,
662
662
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
@@ -664,50 +664,50 @@ const Jr = /* @__PURE__ */ oe.forwardRef((e, t) => {
664
664
  ...l
665
665
  } = mr(e, {
666
666
  activeKey: "onSelect"
667
- }), u = me(a, "list-group");
667
+ }), u = me(s, "list-group");
668
668
  let d;
669
- return o && (d = o === !0 ? "horizontal" : `horizontal-${o}`), process.env.NODE_ENV !== "production" && pr(!(o && s === "flush"), '`variant="flush"` and `horizontal` should not be used together.'), /* @__PURE__ */ n.jsx(lo, {
669
+ return o && (d = o === !0 ? "horizontal" : `horizontal-${o}`), process.env.NODE_ENV !== "production" && pr(!(o && a === "flush"), '`variant="flush"` and `horizontal` should not be used together.'), /* @__PURE__ */ n.jsx(lo, {
670
670
  ref: t,
671
671
  ...l,
672
672
  as: c,
673
- className: b(r, u, s && `${u}-${s}`, d && `${u}-${d}`, i && `${u}-numbered`)
673
+ className: b(r, u, a && `${u}-${a}`, d && `${u}-${d}`, i && `${u}-numbered`)
674
674
  });
675
675
  });
676
676
  Jr.displayName = "ListGroup";
677
677
  const co = Object.assign(Jr, {
678
678
  Item: jn
679
- }), an = /* @__PURE__ */ new WeakMap(), Pn = (e, t) => {
679
+ }), sn = /* @__PURE__ */ new WeakMap(), Pn = (e, t) => {
680
680
  if (!e || !t) return;
681
- const r = an.get(t) || /* @__PURE__ */ new Map();
682
- an.set(t, r);
683
- let a = r.get(e);
684
- return a || (a = t.matchMedia(e), a.refCount = 0, r.set(a.media, a)), a;
681
+ const r = sn.get(t) || /* @__PURE__ */ new Map();
682
+ sn.set(t, r);
683
+ let s = r.get(e);
684
+ return s || (s = t.matchMedia(e), s.refCount = 0, r.set(s.media, s)), s;
685
685
  };
686
686
  function uo(e, t = typeof window > "u" ? void 0 : window) {
687
- const r = Pn(e, t), [a, s] = O(() => r ? r.matches : !1);
688
- return Wa(() => {
687
+ const r = Pn(e, t), [s, a] = O(() => r ? r.matches : !1);
688
+ return Ws(() => {
689
689
  let o = Pn(e, t);
690
690
  if (!o)
691
- return s(!1);
692
- let i = an.get(t);
691
+ return a(!1);
692
+ let i = sn.get(t);
693
693
  const c = () => {
694
- s(o.matches);
694
+ a(o.matches);
695
695
  };
696
696
  return o.refCount++, o.addListener(c), c(), () => {
697
697
  o.removeListener(c), o.refCount--, o.refCount <= 0 && (i == null || i.delete(o.media)), o = void 0;
698
698
  };
699
- }, [e]), a;
699
+ }, [e]), s;
700
700
  }
701
701
  function fo(e) {
702
702
  const t = Object.keys(e);
703
703
  function r(c, l) {
704
704
  return c === l ? l : c ? `${c} and ${l}` : l;
705
705
  }
706
- function a(c) {
706
+ function s(c) {
707
707
  return t[Math.min(t.indexOf(c) + 1, t.length - 1)];
708
708
  }
709
- function s(c) {
710
- const l = a(c);
709
+ function a(c) {
710
+ const l = s(c);
711
711
  let u = e[l];
712
712
  return typeof u == "number" ? u = `${u - 0.2}px` : u = `calc(${u} - 0.2px)`, `(max-width: ${u})`;
713
713
  }
@@ -720,7 +720,7 @@ function fo(e) {
720
720
  typeof c == "object" ? (d = c, u = l, l = !0) : (l = l || !0, d = {
721
721
  [c]: l
722
722
  });
723
- let m = ee(() => Object.entries(d).reduce((p, [x, h]) => ((h === "up" || h === !0) && (p = r(p, o(x))), (h === "down" || h === !0) && (p = r(p, s(x))), p), ""), [JSON.stringify(d)]);
723
+ let m = ee(() => Object.entries(d).reduce((p, [x, h]) => ((h === "up" || h === !0) && (p = r(p, o(x))), (h === "down" || h === !0) && (p = r(p, a(x))), p), ""), [JSON.stringify(d)]);
724
724
  return uo(m, u);
725
725
  }
726
726
  return i;
@@ -736,30 +736,30 @@ const mo = fo({
736
736
  className: e,
737
737
  bsPrefix: t,
738
738
  as: r = "div",
739
- ...a
740
- }, s) => (t = me(t, "offcanvas-body"), /* @__PURE__ */ n.jsx(r, {
741
- ref: s,
739
+ ...s
740
+ }, a) => (t = me(t, "offcanvas-body"), /* @__PURE__ */ n.jsx(r, {
741
+ ref: a,
742
742
  className: b(e, t),
743
- ...a
743
+ ...s
744
744
  })));
745
745
  Xr.displayName = "OffcanvasBody";
746
746
  const ho = {
747
747
  [ln]: "show",
748
748
  [fr]: "show"
749
- }, ea = /* @__PURE__ */ oe.forwardRef(({
749
+ }, es = /* @__PURE__ */ oe.forwardRef(({
750
750
  bsPrefix: e,
751
751
  className: t,
752
752
  children: r,
753
- in: a = !1,
754
- mountOnEnter: s = !1,
753
+ in: s = !1,
754
+ mountOnEnter: a = !1,
755
755
  unmountOnExit: o = !1,
756
756
  appear: i = !1,
757
757
  ...c
758
758
  }, l) => (e = me(e, "offcanvas"), /* @__PURE__ */ n.jsx(cr, {
759
759
  ref: l,
760
760
  addEndListener: dr,
761
- in: a,
762
- mountOnEnter: s,
761
+ in: s,
762
+ mountOnEnter: a,
763
763
  unmountOnExit: o,
764
764
  appear: i,
765
765
  ...c,
@@ -769,34 +769,34 @@ const ho = {
769
769
  className: b(t, r.props.className, (u === ln || u === ur) && `${e}-toggling`, ho[u])
770
770
  })
771
771
  })));
772
- ea.displayName = "OffcanvasToggling";
773
- const ta = /* @__PURE__ */ oe.forwardRef(({
772
+ es.displayName = "OffcanvasToggling";
773
+ const ts = /* @__PURE__ */ oe.forwardRef(({
774
774
  bsPrefix: e,
775
775
  className: t,
776
776
  closeLabel: r = "Close",
777
- closeButton: a = !1,
778
- ...s
779
- }, o) => (e = me(e, "offcanvas-header"), /* @__PURE__ */ n.jsx(Ua, {
777
+ closeButton: s = !1,
778
+ ...a
779
+ }, o) => (e = me(e, "offcanvas-header"), /* @__PURE__ */ n.jsx(Us, {
780
780
  ref: o,
781
- ...s,
781
+ ...a,
782
782
  className: b(t, e),
783
783
  closeLabel: r,
784
- closeButton: a
784
+ closeButton: s
785
785
  })));
786
- ta.displayName = "OffcanvasHeader";
787
- const go = Ft("h5"), na = /* @__PURE__ */ oe.forwardRef(({
786
+ ts.displayName = "OffcanvasHeader";
787
+ const go = Ft("h5"), ns = /* @__PURE__ */ oe.forwardRef(({
788
788
  className: e,
789
789
  bsPrefix: t,
790
790
  as: r = go,
791
- ...a
792
- }, s) => (t = me(t, "offcanvas-title"), /* @__PURE__ */ n.jsx(r, {
793
- ref: s,
791
+ ...s
792
+ }, a) => (t = me(t, "offcanvas-title"), /* @__PURE__ */ n.jsx(r, {
793
+ ref: a,
794
794
  className: b(e, t),
795
- ...a
795
+ ...s
796
796
  })));
797
- na.displayName = "OffcanvasTitle";
797
+ ns.displayName = "OffcanvasTitle";
798
798
  function po(e) {
799
- return /* @__PURE__ */ n.jsx(ea, {
799
+ return /* @__PURE__ */ n.jsx(es, {
800
800
  ...e
801
801
  });
802
802
  }
@@ -805,12 +805,12 @@ function xo(e) {
805
805
  ...e
806
806
  });
807
807
  }
808
- const ra = /* @__PURE__ */ oe.forwardRef(({
808
+ const rs = /* @__PURE__ */ oe.forwardRef(({
809
809
  bsPrefix: e,
810
810
  className: t,
811
811
  children: r,
812
- "aria-labelledby": a,
813
- placement: s = "start",
812
+ "aria-labelledby": s,
813
+ placement: a = "start",
814
814
  responsive: o,
815
815
  /* BaseModal props */
816
816
  show: i = !1,
@@ -829,18 +829,18 @@ const ra = /* @__PURE__ */ oe.forwardRef(({
829
829
  onExit: f,
830
830
  onExiting: y,
831
831
  onEnter: _,
832
- onEntering: $,
833
- onExited: E,
832
+ onEntering: D,
833
+ onExited: $,
834
834
  backdropClassName: I,
835
835
  manager: F,
836
- renderStaticNode: D = !1,
836
+ renderStaticNode: E = !1,
837
837
  ...C
838
838
  }, N) => {
839
839
  const P = ne();
840
840
  e = me(e, "offcanvas");
841
841
  const {
842
842
  onToggle: U
843
- } = Z(Ya) || {}, [Q, A] = O(!1), R = mo(o || "xs", "up");
843
+ } = Z(Ys) || {}, [Q, A] = O(!1), R = mo(o || "xs", "up");
844
844
  L(() => {
845
845
  A(o ? i && !R : i);
846
846
  }, [i, o, R]);
@@ -850,28 +850,28 @@ const ra = /* @__PURE__ */ oe.forwardRef(({
850
850
  onHide: V
851
851
  }), [V]);
852
852
  function G() {
853
- return F || (u ? (P.current || (P.current = new qa({
853
+ return F || (u ? (P.current || (P.current = new qs({
854
854
  handleContainerOverflow: !1
855
- })), P.current) : Qa());
855
+ })), P.current) : Qs());
856
856
  }
857
857
  const K = (H, ...le) => {
858
858
  H && (H.style.visibility = "visible"), _ == null || _(H, ...le);
859
859
  }, te = (H, ...le) => {
860
- H && (H.style.visibility = ""), E == null || E(...le);
860
+ H && (H.style.visibility = ""), $ == null || $(...le);
861
861
  }, B = S((H) => /* @__PURE__ */ n.jsx("div", {
862
862
  ...H,
863
863
  className: b(`${e}-backdrop`, I)
864
864
  }), [I, e]), k = (H) => /* @__PURE__ */ n.jsx("div", {
865
865
  ...H,
866
866
  ...C,
867
- className: b(t, o ? `${e}-${o}` : e, `${e}-${s}`),
868
- "aria-labelledby": a,
867
+ className: b(t, o ? `${e}-${o}` : e, `${e}-${a}`),
868
+ "aria-labelledby": s,
869
869
  children: r
870
870
  });
871
871
  return /* @__PURE__ */ n.jsxs(n.Fragment, {
872
- children: [!Q && (o || D) && k({}), /* @__PURE__ */ n.jsx(Ga.Provider, {
872
+ children: [!Q && (o || E) && k({}), /* @__PURE__ */ n.jsx(Gs.Provider, {
873
873
  value: W,
874
- children: /* @__PURE__ */ n.jsx(Ka, {
874
+ children: /* @__PURE__ */ n.jsx(Ks, {
875
875
  show: Q,
876
876
  ref: N,
877
877
  backdrop: c,
@@ -885,7 +885,7 @@ const ra = /* @__PURE__ */ oe.forwardRef(({
885
885
  onShow: m,
886
886
  onHide: V,
887
887
  onEnter: K,
888
- onEntering: $,
888
+ onEntering: D,
889
889
  onEntered: j,
890
890
  onExit: f,
891
891
  onExiting: y,
@@ -899,31 +899,31 @@ const ra = /* @__PURE__ */ oe.forwardRef(({
899
899
  })]
900
900
  });
901
901
  });
902
- ra.displayName = "Offcanvas";
903
- const zn = Object.assign(ra, {
902
+ rs.displayName = "Offcanvas";
903
+ const zn = Object.assign(rs, {
904
904
  Body: Xr,
905
- Header: ta,
906
- Title: na
905
+ Header: ts,
906
+ Title: ns
907
907
  });
908
- function aa({
908
+ function ss({
909
909
  animation: e,
910
910
  bg: t,
911
911
  bsPrefix: r,
912
- size: a,
913
- ...s
912
+ size: s,
913
+ ...a
914
914
  }) {
915
915
  r = me(r, "placeholder");
916
916
  const [{
917
917
  className: o,
918
918
  ...i
919
- }] = Za(s);
919
+ }] = Zs(a);
920
920
  return {
921
921
  ...i,
922
- className: b(o, e ? `${r}-${e}` : r, a && `${r}-${a}`, t && `bg-${t}`)
922
+ className: b(o, e ? `${r}-${e}` : r, s && `${r}-${s}`, t && `bg-${t}`)
923
923
  };
924
924
  }
925
- const sa = /* @__PURE__ */ oe.forwardRef((e, t) => {
926
- const r = aa(e);
925
+ const as = /* @__PURE__ */ oe.forwardRef((e, t) => {
926
+ const r = ss(e);
927
927
  return /* @__PURE__ */ n.jsx(tn, {
928
928
  ...r,
929
929
  ref: t,
@@ -931,66 +931,66 @@ const sa = /* @__PURE__ */ oe.forwardRef((e, t) => {
931
931
  tabIndex: -1
932
932
  });
933
933
  });
934
- sa.displayName = "PlaceholderButton";
935
- const oa = /* @__PURE__ */ oe.forwardRef(({
934
+ as.displayName = "PlaceholderButton";
935
+ const os = /* @__PURE__ */ oe.forwardRef(({
936
936
  as: e = "span",
937
937
  ...t
938
938
  }, r) => {
939
- const a = aa(t);
939
+ const s = ss(t);
940
940
  return /* @__PURE__ */ n.jsx(e, {
941
- ...a,
941
+ ...s,
942
942
  ref: r
943
943
  });
944
944
  });
945
- oa.displayName = "Placeholder";
946
- const Ve = Object.assign(oa, {
947
- Button: sa
945
+ os.displayName = "Placeholder";
946
+ const Ve = Object.assign(os, {
947
+ Button: as
948
948
  }), yn = /* @__PURE__ */ oe.forwardRef(({
949
949
  bsPrefix: e,
950
950
  variant: t,
951
951
  animation: r = "border",
952
- size: a,
952
+ size: s,
953
953
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
954
- as: s = "div",
954
+ as: a = "div",
955
955
  className: o,
956
956
  ...i
957
957
  }, c) => {
958
958
  e = me(e, "spinner");
959
959
  const l = `${e}-${r}`;
960
- return /* @__PURE__ */ n.jsx(s, {
960
+ return /* @__PURE__ */ n.jsx(a, {
961
961
  ref: c,
962
962
  ...i,
963
- className: b(o, l, a && `${l}-${a}`, t && `text-${t}`)
963
+ className: b(o, l, s && `${l}-${s}`, t && `text-${t}`)
964
964
  });
965
965
  });
966
966
  yn.displayName = "Spinner";
967
- const ld = ({ heading: e, content: t, placement: r, children: a, trigger: s, popoverClassName: o, ...i }) => /* @__PURE__ */ n.jsx(Ja, { placement: r, overlay: /* @__PURE__ */ n.jsxs(Pt, { className: b("luminus-popover", o), onClick: (c) => c.stopPropagation(), children: [
967
+ const ld = ({ heading: e, content: t, placement: r, children: s, trigger: a, popoverClassName: o, ...i }) => /* @__PURE__ */ n.jsx(Js, { placement: r, overlay: /* @__PURE__ */ n.jsxs(Pt, { className: b("luminus-popover", o), onClick: (c) => c.stopPropagation(), children: [
968
968
  e && /* @__PURE__ */ n.jsx(Pt.Header, { children: typeof e == "string" ? /* @__PURE__ */ n.jsx(X, { variant: "h6", className: "text-primary", children: e }) : e }),
969
969
  /* @__PURE__ */ n.jsx(Pt.Body, { children: t })
970
- ] }), trigger: s ?? "hover", rootClose: !0, show: i.controlled ? i.isOpen : void 0, onToggle: i.controlled ? (c) => i.setIsOpen(c) : void 0, children: a }), vo = ({ children: e, onStorno: t, noSpacer: r }) => {
971
- const { texts: { formSubmit: a } } = Z(pe);
970
+ ] }), trigger: a ?? "hover", rootClose: !0, show: i.controlled ? i.isOpen : void 0, onToggle: i.controlled ? (c) => i.setIsOpen(c) : void 0, children: s }), vo = ({ children: e, onStorno: t, noSpacer: r }) => {
971
+ const { texts: { formSubmit: s } } = Z(pe);
972
972
  return /* @__PURE__ */ n.jsxs(_l, { noSpacer: r, children: [
973
973
  /* @__PURE__ */ n.jsxs(nn, { as: "button", color: "primary", size: "lg", type: "submit", children: [
974
- /* @__PURE__ */ n.jsx(Xa, {}),
974
+ /* @__PURE__ */ n.jsx(Xs, {}),
975
975
  e
976
976
  ] }),
977
977
  t && /* @__PURE__ */ n.jsxs(nn, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: t, children: [
978
- /* @__PURE__ */ n.jsx(es, {}),
979
- a.storno
978
+ /* @__PURE__ */ n.jsx(ea, {}),
979
+ s.storno
980
980
  ] })
981
981
  ] });
982
- }, ia = ({ color: e = "primary", icon: t = /* @__PURE__ */ n.jsx(xr, { size: 12 }), inputId: r = "context-file-input", accept: a = "*", onUpload: s, className: o, children: i, multiple: c, ...l }) => {
982
+ }, is = ({ color: e = "primary", icon: t = /* @__PURE__ */ n.jsx(xr, { size: 12 }), inputId: r = "context-file-input", accept: s = "*", onUpload: a, className: o, children: i, multiple: c, ...l }) => {
983
983
  const u = (d) => {
984
- d.target.files && (s(d.target.files), d.target.value = "");
984
+ d.target.files && (a(d.target.files), d.target.value = "");
985
985
  };
986
986
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
987
- /* @__PURE__ */ n.jsxs("label", { htmlFor: r, className: b(`luminus-context-button btn text-${e} ${o ?? ""}`, ts.button), ...l, children: [
987
+ /* @__PURE__ */ n.jsxs("label", { htmlFor: r, className: b(`luminus-context-button btn text-${e} ${o ?? ""}`, ta.button), ...l, children: [
988
988
  t,
989
989
  i
990
990
  ] }),
991
- /* @__PURE__ */ n.jsx("input", { id: r, type: "file", accept: a, onChange: u, hidden: !0, multiple: c })
991
+ /* @__PURE__ */ n.jsx("input", { id: r, type: "file", accept: s, onChange: u, hidden: !0, multiple: c })
992
992
  ] });
993
- }, cd = ({ onUpload: e, accept: t, children: r, className: a, size: s = "md" }) => {
993
+ }, cd = ({ onUpload: e, accept: t, children: r, className: s, size: a = "md" }) => {
994
994
  const o = S(async (c) => {
995
995
  if (c.target.files)
996
996
  try {
@@ -998,23 +998,23 @@ const ld = ({ heading: e, content: t, placement: r, children: a, trigger: s, pop
998
998
  } finally {
999
999
  c.target.value = "";
1000
1000
  }
1001
- }, [e]), i = ks();
1001
+ }, [e]), i = ka();
1002
1002
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1003
- /* @__PURE__ */ n.jsx("label", { htmlFor: i, className: b("btn luminus-context-button text-primary", `btn-${s}`, a), children: r }),
1003
+ /* @__PURE__ */ n.jsx("label", { htmlFor: i, className: b("btn luminus-context-button text-primary", `btn-${a}`, s), children: r }),
1004
1004
  /* @__PURE__ */ n.jsx("input", { id: i, type: "file", accept: t, onChange: o, hidden: !0 })
1005
1005
  ] });
1006
1006
  }, jo = "_select_dlv1t_1", Yt = {
1007
1007
  select: jo
1008
- }, yo = ({ month: e, onChangeMonth: t, locale: r, yearMin: a = 2e3, yearMax: s = 2050 }) => {
1008
+ }, yo = ({ month: e, onChangeMonth: t, locale: r, yearMin: s = 2e3, yearMax: a = 2050 }) => {
1009
1009
  const o = S((l) => {
1010
1010
  const u = $r(e, l);
1011
- u.getFullYear() < a || u.getFullYear() > s || t(u);
1012
- }, [e, t, a, s]), i = ee(() => {
1011
+ u.getFullYear() < s || u.getFullYear() > a || t(u);
1012
+ }, [e, t, s, a]), i = ee(() => {
1013
1013
  const l = [];
1014
- for (let u = a; u <= s; u++)
1014
+ for (let u = s; u <= a; u++)
1015
1015
  l.push(u);
1016
1016
  return l;
1017
- }, [a, s]), c = ee(() => {
1017
+ }, [s, a]), c = ee(() => {
1018
1018
  const d = [];
1019
1019
  for (let m = 0; m <= 11; m++)
1020
1020
  d.push({
@@ -1024,36 +1024,36 @@ const ld = ({ heading: e, content: t, placement: r, children: a, trigger: s, pop
1024
1024
  return d;
1025
1025
  }, [r]);
1026
1026
  return /* @__PURE__ */ n.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
1027
- /* @__PURE__ */ n.jsx(re, { onClick: () => o(-1), disabled: e.getFullYear() < a || e.getFullYear() === a && e.getMonth() <= 0, children: /* @__PURE__ */ n.jsx(un, {}) }),
1027
+ /* @__PURE__ */ n.jsx(re, { onClick: () => o(-1), disabled: e.getFullYear() < s || e.getFullYear() === s && e.getMonth() <= 0, children: /* @__PURE__ */ n.jsx(un, {}) }),
1028
1028
  /* @__PURE__ */ n.jsx(ye.Select, { value: e.getMonth(), onChange: (l) => {
1029
1029
  var u;
1030
- return ((u = l.target) == null ? void 0 : u.value) && t(Ks(e, Number(l.target.value)));
1030
+ return ((u = l.target) == null ? void 0 : u.value) && t(Ka(e, Number(l.target.value)));
1031
1031
  }, className: b(Yt.select, Yt.month), children: c.map((l) => /* @__PURE__ */ n.jsx("option", { value: l.id, children: l.name }, l.id)) }),
1032
1032
  /* @__PURE__ */ n.jsx(ye.Select, { value: e.getFullYear(), onChange: (l) => {
1033
1033
  var u;
1034
1034
  return ((u = l.target) == null ? void 0 : u.value) && t(Er(e, Number(l.target.value)));
1035
1035
  }, className: b(Yt.select), children: i.map((l) => /* @__PURE__ */ n.jsx("option", { value: l, children: l }, l)) }),
1036
- /* @__PURE__ */ n.jsx(re, { onClick: () => o(1), disabled: e.getFullYear() > s || e.getFullYear() === s && e.getMonth() >= 11, children: /* @__PURE__ */ n.jsx(fn, {}) })
1036
+ /* @__PURE__ */ n.jsx(re, { onClick: () => o(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ n.jsx(fn, {}) })
1037
1037
  ] });
1038
1038
  }, wo = "_select_pywmr_1", bo = {
1039
1039
  select: wo
1040
- }, _o = ({ year: e, onChangeYear: t, optionMin: r = 2e3, optionMax: a = 2050, className: s }) => {
1040
+ }, _o = ({ year: e, onChangeYear: t, optionMin: r = 2e3, optionMax: s = 2050, className: a }) => {
1041
1041
  const o = S((c) => {
1042
1042
  const l = e.getFullYear() + c;
1043
- l < r || l > a || t(Hs(e, c));
1044
- }, [e, t, a, r]), i = ee(() => {
1043
+ l < r || l > s || t(Ha(e, c));
1044
+ }, [e, t, s, r]), i = ee(() => {
1045
1045
  const c = [];
1046
- for (let l = r; l <= a; l++)
1046
+ for (let l = r; l <= s; l++)
1047
1047
  c.push(l);
1048
1048
  return c;
1049
- }, [r, a]);
1050
- return /* @__PURE__ */ n.jsxs("div", { className: b("card d-flex flex-row align-items-center m-0 p-1 gap-2", s ?? ""), children: [
1049
+ }, [r, s]);
1050
+ return /* @__PURE__ */ n.jsxs("div", { className: b("card d-flex flex-row align-items-center m-0 p-1 gap-2", a ?? ""), children: [
1051
1051
  /* @__PURE__ */ n.jsx(re, { onClick: () => o(-1), disabled: e.getFullYear() <= r, children: /* @__PURE__ */ n.jsx(un, {}) }),
1052
1052
  /* @__PURE__ */ n.jsx(ye.Select, { value: e.getFullYear(), onChange: (c) => {
1053
1053
  var l;
1054
1054
  return ((l = c.target) == null ? void 0 : l.value) && t(Er(e, Number(c.target.value)));
1055
1055
  }, className: bo.select, children: i.map((c) => /* @__PURE__ */ n.jsx("option", { value: c, children: c }, c)) }),
1056
- /* @__PURE__ */ n.jsx(re, { onClick: () => o(1), disabled: e.getFullYear() >= a, children: /* @__PURE__ */ n.jsx(fn, {}) })
1056
+ /* @__PURE__ */ n.jsx(re, { onClick: () => o(1), disabled: e.getFullYear() >= s, children: /* @__PURE__ */ n.jsx(fn, {}) })
1057
1057
  ] });
1058
1058
  }, No = "_widget_etgh3_1", So = {
1059
1059
  widget: No
@@ -1068,9 +1068,9 @@ const ld = ({ heading: e, content: t, placement: r, children: a, trigger: s, pop
1068
1068
  "widget-title": "_widget-title_13gg1_14",
1069
1069
  widgetTitle: $o,
1070
1070
  title: Eo
1071
- }, Fo = ({ show: e, widgetGroups: t, widgets: r, handleClose: a, onWidgetPicked: s, texts: o }) => {
1071
+ }, Fo = ({ show: e, widgetGroups: t, widgets: r, handleClose: s, onWidgetPicked: a, texts: o }) => {
1072
1072
  const [i, c] = O(""), l = ee(() => r.filter((d) => d.id !== -1 && Dt(d.name, i)), [r, i]), u = ee(() => t.filter((d) => l.some((m) => m.group === d.id)), [t, l]);
1073
- return /* @__PURE__ */ n.jsxs(ze, { show: e, onHide: () => a(), size: "lg", children: [
1073
+ return /* @__PURE__ */ n.jsxs(ze, { show: e, onHide: () => s(), size: "lg", children: [
1074
1074
  /* @__PURE__ */ n.jsxs(ze.Header, { closeButton: !0, children: [
1075
1075
  /* @__PURE__ */ n.jsx(ze.Title, { className: "w-100", children: o.pickWidgetToAdd }),
1076
1076
  /* @__PURE__ */ n.jsx(ye.Control, { type: "search", size: "sm", value: i, placeholder: o.searchPlaceholder, onChange: (d) => {
@@ -1079,14 +1079,14 @@ const ld = ({ heading: e, content: t, placement: r, children: a, trigger: s, pop
1079
1079
  }, className: "me-3", style: { maxWidth: "200px" } })
1080
1080
  ] }),
1081
1081
  /* @__PURE__ */ n.jsx(ze.Body, { className: "flex-column gap-3", children: l.length === 0 ? /* @__PURE__ */ n.jsx(bn, { variant: "warning", children: o.noWidgets }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1082
- u.map((d) => /* @__PURE__ */ n.jsx(sn, { defaultOpen: !0, title: d.name ?? "", children: /* @__PURE__ */ n.jsx("div", { className: "p-1", children: /* @__PURE__ */ n.jsx("div", { className: b("row gx-3 gy-3", Ie.widgetsRow), children: l.filter((m) => m.group === d.id).map((m) => /* @__PURE__ */ n.jsx("div", { className: "col col-4", children: /* @__PURE__ */ n.jsxs("div", { role: "button", className: b("p-0 pt-2 bg-white rounded shadow-sm", Ie.widget), onClick: () => s(m.id), children: [
1082
+ u.map((d) => /* @__PURE__ */ n.jsx(an, { defaultOpen: !0, title: d.name ?? "", children: /* @__PURE__ */ n.jsx("div", { className: "p-1", children: /* @__PURE__ */ n.jsx("div", { className: b("row gx-3 gy-3", Ie.widgetsRow), children: l.filter((m) => m.group === d.id).map((m) => /* @__PURE__ */ n.jsx("div", { className: "col col-4", children: /* @__PURE__ */ n.jsxs("div", { role: "button", className: b("p-0 pt-2 bg-white rounded shadow-sm", Ie.widget), onClick: () => a(m.id), children: [
1083
1083
  /* @__PURE__ */ n.jsx("div", { className: Ie.widgetImg, style: {
1084
1084
  backgroundImage: m.img ? `url(${m.img})` : void 0
1085
1085
  } }),
1086
1086
  /* @__PURE__ */ n.jsx("div", { className: Ie.widgetTitleSpacer }),
1087
1087
  /* @__PURE__ */ n.jsx("div", { className: b(Ie.widgetTitle, "rounded"), children: /* @__PURE__ */ n.jsx(X, { variant: "body", className: b(Ie.title, "text-white text-truncate"), children: m.name }) })
1088
1088
  ] }, m.id) })) }) }) }, d.id)),
1089
- l.some((d) => d.group === void 0) && /* @__PURE__ */ n.jsx(sn, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ n.jsx("div", { className: "p-1", children: /* @__PURE__ */ n.jsx("div", { className: b("row gx-3 gy-3", Ie.widgetsRow), children: l.filter((d) => d.group === void 0).map((d) => /* @__PURE__ */ n.jsx("div", { className: "col col-4", children: /* @__PURE__ */ n.jsxs("div", { role: "button", className: b("p-0 pt-2 bg-white rounded shadow-sm", Ie.widget), onClick: () => s(d.id), children: [
1089
+ l.some((d) => d.group === void 0) && /* @__PURE__ */ n.jsx(an, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ n.jsx("div", { className: "p-1", children: /* @__PURE__ */ n.jsx("div", { className: b("row gx-3 gy-3", Ie.widgetsRow), children: l.filter((d) => d.group === void 0).map((d) => /* @__PURE__ */ n.jsx("div", { className: "col col-4", children: /* @__PURE__ */ n.jsxs("div", { role: "button", className: b("p-0 pt-2 bg-white rounded shadow-sm", Ie.widget), onClick: () => a(d.id), children: [
1090
1090
  /* @__PURE__ */ n.jsx("div", { className: Ie.widgetImg, style: {
1091
1091
  backgroundImage: d.img ? `url(${d.img})` : void 0
1092
1092
  } }),
@@ -1095,24 +1095,24 @@ const ld = ({ heading: e, content: t, placement: r, children: a, trigger: s, pop
1095
1095
  ] }, d.id) })) }) }) })
1096
1096
  ] }) })
1097
1097
  ] });
1098
- }, Hn = ({ widgetGroups: e, availableWidgets: t, onAdd: r, texts: a }) => {
1099
- const [s, o] = O(!1);
1098
+ }, Hn = ({ widgetGroups: e, availableWidgets: t, onAdd: r, texts: s }) => {
1099
+ const [a, o] = O(!1);
1100
1100
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1101
- /* @__PURE__ */ n.jsx("div", { className: b("luminus-empty-widget", So.widget), children: /* @__PURE__ */ n.jsx(re, { onClick: () => o(!0), children: /* @__PURE__ */ n.jsx(ns, {}) }) }),
1102
- /* @__PURE__ */ n.jsx(Fo, { show: s, widgetGroups: e, widgets: t, handleClose: () => o(!1), onWidgetPicked: (i) => {
1101
+ /* @__PURE__ */ n.jsx("div", { className: b("luminus-empty-widget", So.widget), children: /* @__PURE__ */ n.jsx(re, { onClick: () => o(!0), children: /* @__PURE__ */ n.jsx(na, {}) }) }),
1102
+ /* @__PURE__ */ n.jsx(Fo, { show: a, widgetGroups: e, widgets: t, handleClose: () => o(!1), onWidgetPicked: (i) => {
1103
1103
  o(!1), r(i);
1104
- }, texts: a })
1104
+ }, texts: s })
1105
1105
  ] });
1106
1106
  }, Oo = (e) => {
1107
1107
  const [t, r] = O({ widgets: [] });
1108
1108
  L(() => {
1109
- const s = localStorage.getItem("dashboardConfig");
1110
- s ? r(JSON.parse(s)) : e && r(e);
1109
+ const a = localStorage.getItem("dashboardConfig");
1110
+ a ? r(JSON.parse(a)) : e && r(e);
1111
1111
  }, [e]);
1112
- const a = S((s) => {
1113
- r(s), localStorage.setItem("dashboardConfig", JSON.stringify(s));
1112
+ const s = S((a) => {
1113
+ r(a), localStorage.setItem("dashboardConfig", JSON.stringify(a));
1114
1114
  }, []);
1115
- return { dashboardConfig: t, onChangeDashboardConfig: a };
1115
+ return { dashboardConfig: t, onChangeDashboardConfig: s };
1116
1116
  }, To = "_dashboard_16plm_1", Ro = "_widgets-grid_16plm_1", Lo = "_widget-wrapper_16plm_8", Ao = "_full-width_16plm_13", Mo = "_widget-edit_16plm_16", Bo = "_remove-icon_16plm_19", Vo = "_full-width-icon_16plm_26", Po = "_widget-edit-overlay_16plm_36", Re = {
1117
1117
  dashboard: To,
1118
1118
  "widgets-grid": "_widgets-grid_16plm_1",
@@ -1130,7 +1130,7 @@ const ld = ({ heading: e, content: t, placement: r, children: a, trigger: s, pop
1130
1130
  "widget-edit-overlay": "_widget-edit-overlay_16plm_36",
1131
1131
  widgetEditOverlay: Po
1132
1132
  };
1133
- class zo extends Is {
1133
+ class zo extends Ia {
1134
1134
  constructor(t) {
1135
1135
  super(t), this.state = { hasError: !1, is404Error: !1 }, this.reload = this.reload.bind(this);
1136
1136
  }
@@ -1148,41 +1148,41 @@ class zo extends Is {
1148
1148
  this.setState({ hasError: !1, is404Error: !1 });
1149
1149
  }
1150
1150
  render() {
1151
- const { fallback: t, fallbackOn404: r, children: a, texts: s, reloadButtonDisplay: o = "append-after-child" } = this.props;
1151
+ const { fallback: t, fallbackOn404: r, children: s, texts: a, reloadButtonDisplay: o = "append-after-child" } = this.props;
1152
1152
  return this.state.hasError ? o === "inject-to-child" && !this.state.is404Error && $n(t) ? Se.cloneElement(t, {
1153
1153
  ...t.props
1154
1154
  }, /* @__PURE__ */ n.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
1155
1155
  ...t.props.children,
1156
- /* @__PURE__ */ n.jsx("div", { className: "d-flex gap-2 justify-content-center", children: /* @__PURE__ */ n.jsx(Le, { type: "button", onClick: this.reload, children: s.reloadButtonContent }) })
1156
+ /* @__PURE__ */ n.jsx("div", { className: "d-flex gap-2 justify-content-center", children: /* @__PURE__ */ n.jsx(Le, { type: "button", onClick: this.reload, children: a.reloadButtonContent }) })
1157
1157
  ] })) : o === "inject-to-child" && this.state.is404Error && $n(r) ? Se.cloneElement(r, {
1158
1158
  ...r.props
1159
1159
  }, /* @__PURE__ */ n.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
1160
1160
  ...r.props.children,
1161
1161
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex gap-2 justify-content-center", children: [
1162
- /* @__PURE__ */ n.jsx(Le, { type: "button", onClick: this.reload, children: s.reloadButtonContent }),
1163
- /* @__PURE__ */ n.jsx(Le, { type: "button", onClick: this.props.navigateBack, children: s.navigateBackButtonContent })
1162
+ /* @__PURE__ */ n.jsx(Le, { type: "button", onClick: this.reload, children: a.reloadButtonContent }),
1163
+ /* @__PURE__ */ n.jsx(Le, { type: "button", onClick: this.props.navigateBack, children: a.navigateBackButtonContent })
1164
1164
  ] })
1165
1165
  ] })) : /* @__PURE__ */ n.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
1166
1166
  this.state.is404Error ? r : t,
1167
1167
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex gap-2 justify-content-center", children: [
1168
- o === "none" ? null : /* @__PURE__ */ n.jsx(Le, { type: "button", onClick: this.reload, children: s.reloadButtonContent }),
1169
- this.state.is404Error && /* @__PURE__ */ n.jsx(Le, { type: "button", onClick: this.props.navigateBack, children: s.navigateBackButtonContent })
1168
+ o === "none" ? null : /* @__PURE__ */ n.jsx(Le, { type: "button", onClick: this.reload, children: a.reloadButtonContent }),
1169
+ this.state.is404Error && /* @__PURE__ */ n.jsx(Le, { type: "button", onClick: this.props.navigateBack, children: a.navigateBackButtonContent })
1170
1170
  ] })
1171
- ] }) : a;
1171
+ ] }) : s;
1172
1172
  }
1173
1173
  }
1174
1174
  const Ho = (e) => (r) => {
1175
- const { texts: { errorBoundary: a } } = Z(pe);
1176
- return /* @__PURE__ */ n.jsx(e, { texts: a, ...r });
1175
+ const { texts: { errorBoundary: s } } = Z(pe);
1176
+ return /* @__PURE__ */ n.jsx(e, { texts: s, ...r });
1177
1177
  }, Wo = Ho(zo), Uo = "_widget-card_e9tsb_1", Yo = {
1178
1178
  "widget-card": "_widget-card_e9tsb_1",
1179
1179
  widgetCard: Uo
1180
1180
  }, Wn = ({ children: e, title: t, headerContent: r }) => /* @__PURE__ */ n.jsx(Wi, { className: b(Yo.widgetCard, "luminus-widget"), title: t, headerContent: r, contentClassName: "h-100 overflow-auto", children: e }), Go = ({ children: e, title: t }) => {
1181
- const { texts: { widget: r } } = Z(pe), a = kr();
1182
- return /* @__PURE__ */ n.jsx(Wo, { fallback: /* @__PURE__ */ n.jsx(Wn, { title: t, children: r.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => a(-1), children: /* @__PURE__ */ n.jsx(Ds, { fallback: /* @__PURE__ */ n.jsx(Wn, { title: t, children: /* @__PURE__ */ n.jsx(zs, {}) }), children: e }) });
1183
- }, dd = ({ widgetGroups: e, availableWidgets: t, editMode: r, defaultDashboardConfig: a }) => {
1181
+ const { texts: { widget: r } } = Z(pe), s = kr();
1182
+ return /* @__PURE__ */ n.jsx(Wo, { fallback: /* @__PURE__ */ n.jsx(Wn, { title: t, children: r.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => s(-1), children: /* @__PURE__ */ n.jsx(Da, { fallback: /* @__PURE__ */ n.jsx(Wn, { title: t, children: /* @__PURE__ */ n.jsx(za, {}) }), children: e }) });
1183
+ }, dd = ({ widgetGroups: e, availableWidgets: t, editMode: r, defaultDashboardConfig: s }) => {
1184
1184
  var m;
1185
- const { texts: { homeDashboard: s } } = Z(pe), { dashboardConfig: o, onChangeDashboardConfig: i } = Oo(a), c = S((p, x) => {
1185
+ const { texts: { homeDashboard: a } } = Z(pe), { dashboardConfig: o, onChangeDashboardConfig: i } = Oo(s), c = S((p, x) => {
1186
1186
  var h, g;
1187
1187
  p === ((h = o.widgets) == null ? void 0 : h.length) ? i({
1188
1188
  ...o,
@@ -1208,9 +1208,9 @@ const Ho = (e) => (r) => {
1208
1208
  }, { [Re.fullWidth]: h }), children: [
1209
1209
  r && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1210
1210
  /* @__PURE__ */ n.jsx(re, { color: "danger", onClick: () => l(x), className: b(Re.removeIcon), children: /* @__PURE__ */ n.jsx(vr, {}) }),
1211
- /* @__PURE__ */ n.jsx(re, { color: h ? "danger" : "primary", onClick: () => u(x), className: b(Re.fullWidthIcon), children: /* @__PURE__ */ n.jsx(rs, {}) })
1211
+ /* @__PURE__ */ n.jsx(re, { color: h ? "danger" : "primary", onClick: () => u(x), className: b(Re.fullWidthIcon), children: /* @__PURE__ */ n.jsx(ra, {}) })
1212
1212
  ] }),
1213
- p.id === -1 ? r && /* @__PURE__ */ n.jsx("div", { className: Re.widgetWrapper, children: /* @__PURE__ */ n.jsx(Hn, { widgetGroups: e, availableWidgets: t, onAdd: (g) => c(x, g), texts: s }) }) : /* @__PURE__ */ n.jsx(Go, { title: p.title, children: /* @__PURE__ */ n.jsx(p.WidgetElement, { title: p.title }) }),
1213
+ p.id === -1 ? r && /* @__PURE__ */ n.jsx("div", { className: Re.widgetWrapper, children: /* @__PURE__ */ n.jsx(Hn, { widgetGroups: e, availableWidgets: t, onAdd: (g) => c(x, g), texts: a }) }) : /* @__PURE__ */ n.jsx(Go, { title: p.title, children: /* @__PURE__ */ n.jsx(p.WidgetElement, { title: p.title }) }),
1214
1214
  p.id > -1 && r && /* @__PURE__ */ n.jsx("div", { className: Re.widgetEditOverlay })
1215
1215
  ] }, x) : /* @__PURE__ */ n.jsx(n.Fragment, {}), [
1216
1216
  r,
@@ -1219,14 +1219,14 @@ const Ho = (e) => (r) => {
1219
1219
  l,
1220
1220
  u,
1221
1221
  t,
1222
- s
1222
+ a
1223
1223
  ]);
1224
1224
  return /* @__PURE__ */ n.jsx("div", { className: Re.dashboard, children: /* @__PURE__ */ n.jsxs("div", { className: Re.widgetsGrid, children: [
1225
1225
  (m = o.widgets) == null ? void 0 : m.map((p, x) => d(t.find((h) => h.id === p.widgetId), x, p.fullWidth)),
1226
1226
  r && /* @__PURE__ */ n.jsx(Hn, { widgetGroups: e, availableWidgets: t, onAdd: (p) => {
1227
1227
  var x;
1228
1228
  return c((x = o.widgets) == null ? void 0 : x.length, p);
1229
- }, texts: s })
1229
+ }, texts: a })
1230
1230
  ] }) });
1231
1231
  }, Ko = "_badge_193ci_1", qo = "_sm_193ci_6", Qo = "_md_193ci_10", Zo = "_lg_193ci_14", Jo = "_light_193ci_18", Gt = {
1232
1232
  badge: Ko,
@@ -1234,16 +1234,16 @@ const Ho = (e) => (r) => {
1234
1234
  md: Qo,
1235
1235
  lg: Zo,
1236
1236
  light: Jo
1237
- }, ud = ({ children: e, color: t = "primary", size: r = "md", rounded: a, className: s, ...o }) => /* @__PURE__ */ n.jsx("span", { className: b(`luminus-badge badge bg-${t} ${s ?? ""}`, { "rounded-pill": a }, { "text-dark": t === "light" }, { [Gt.light]: t === "light" }, Gt.badge, Gt[r]), ...o, children: e }), Xo = "_collapse-icon_1ahhn_1", ei = "_collapsed_1ahhn_6", Un = {
1237
+ }, ud = ({ children: e, color: t = "primary", size: r = "md", rounded: s, className: a, ...o }) => /* @__PURE__ */ n.jsx("span", { className: b(`luminus-badge badge bg-${t} ${a ?? ""}`, { "rounded-pill": s }, { "text-dark": t === "light" }, { [Gt.light]: t === "light" }, Gt.badge, Gt[r]), ...o, children: e }), Xo = "_collapse-icon_1ahhn_1", ei = "_collapsed_1ahhn_6", Un = {
1238
1238
  "collapse-icon": "_collapse-icon_1ahhn_1",
1239
1239
  collapseIcon: Xo,
1240
1240
  collapsed: ei
1241
- }, sn = ({ title: e, children: t, className: r, ...a }) => {
1242
- const s = a.controlled ? !1 : a.defaultOpen ?? !1, [o, i] = O(s), c = a.controlled ? a.isOpen : o;
1241
+ }, an = ({ title: e, children: t, className: r, ...s }) => {
1242
+ const a = s.controlled ? !1 : s.defaultOpen ?? !1, [o, i] = O(a), c = s.controlled ? s.isOpen : o;
1243
1243
  return L(() => {
1244
- i(s);
1245
- }, [s]), /* @__PURE__ */ n.jsxs("div", { className: r ?? "", children: [
1246
- /* @__PURE__ */ n.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => a.controlled ? a.onToggle(!a.isOpen) : i(!o), children: [
1244
+ i(a);
1245
+ }, [a]), /* @__PURE__ */ n.jsxs("div", { className: r ?? "", children: [
1246
+ /* @__PURE__ */ n.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => s.controlled ? s.onToggle(!s.isOpen) : i(!o), children: [
1247
1247
  /* @__PURE__ */ n.jsx(X, { variant: "h6", children: e }),
1248
1248
  /* @__PURE__ */ n.jsx(jr, { className: b(Un.collapseIcon, {
1249
1249
  [Un.collapsed]: c
@@ -1254,7 +1254,7 @@ const Ho = (e) => (r) => {
1254
1254
  ] });
1255
1255
  };
1256
1256
  function ti(e, t, r) {
1257
- var a = this, s = ne(null), o = ne(0), i = ne(null), c = ne([]), l = ne(), u = ne(), d = ne(e), m = ne(!0);
1257
+ var s = this, a = ne(null), o = ne(0), i = ne(null), c = ne([]), l = ne(), u = ne(), d = ne(e), m = ne(!0);
1258
1258
  d.current = e;
1259
1259
  var p = typeof window < "u", x = !t && t !== 0 && p;
1260
1260
  if (typeof e != "function") throw new TypeError("Expected a function");
@@ -1266,40 +1266,40 @@ function ti(e, t, r) {
1266
1266
  };
1267
1267
  }, []);
1268
1268
  var f = ee(function() {
1269
- var y = function(D) {
1269
+ var y = function(E) {
1270
1270
  var C = c.current, N = l.current;
1271
- return c.current = l.current = null, o.current = D, u.current = d.current.apply(N, C);
1272
- }, _ = function(D, C) {
1273
- x && cancelAnimationFrame(i.current), i.current = x ? requestAnimationFrame(D) : setTimeout(D, C);
1274
- }, $ = function(D) {
1271
+ return c.current = l.current = null, o.current = E, u.current = d.current.apply(N, C);
1272
+ }, _ = function(E, C) {
1273
+ x && cancelAnimationFrame(i.current), i.current = x ? requestAnimationFrame(E) : setTimeout(E, C);
1274
+ }, D = function(E) {
1275
1275
  if (!m.current) return !1;
1276
- var C = D - s.current;
1277
- return !s.current || C >= t || C < 0 || v && D - o.current >= j;
1278
- }, E = function(D) {
1279
- return i.current = null, g && c.current ? y(D) : (c.current = l.current = null, u.current);
1280
- }, I = function D() {
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
1281
  var C = Date.now();
1282
- if ($(C)) return E(C);
1282
+ if (D(C)) return $(C);
1283
1283
  if (m.current) {
1284
- var N = t - (C - s.current), P = v ? Math.min(N, j - (C - o.current)) : N;
1285
- _(D, P);
1284
+ var N = t - (C - a.current), P = v ? Math.min(N, j - (C - o.current)) : N;
1285
+ _(E, P);
1286
1286
  }
1287
1287
  }, F = function() {
1288
1288
  if (p || w) {
1289
- var D = Date.now(), C = $(D);
1290
- if (c.current = [].slice.call(arguments), l.current = a, s.current = D, C) {
1291
- if (!i.current && m.current) return o.current = s.current, _(I, t), h ? y(s.current) : u.current;
1292
- if (v) return _(I, t), y(s.current);
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);
1293
1293
  }
1294
1294
  return i.current || _(I, t), u.current;
1295
1295
  }
1296
1296
  };
1297
1297
  return F.cancel = function() {
1298
- i.current && (x ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), o.current = 0, c.current = s.current = l.current = i.current = null;
1298
+ i.current && (x ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), o.current = 0, c.current = a.current = l.current = i.current = null;
1299
1299
  }, F.isPending = function() {
1300
1300
  return !!i.current;
1301
1301
  }, F.flush = function() {
1302
- return i.current ? E(Date.now()) : u.current;
1302
+ return i.current ? $(Date.now()) : u.current;
1303
1303
  }, F;
1304
1304
  }, [h, v, t, j, g, x, p, w]);
1305
1305
  return f;
@@ -1310,15 +1310,15 @@ function ni(e, t) {
1310
1310
  function ri(e, t) {
1311
1311
  return t;
1312
1312
  }
1313
- function la(e, t, r) {
1314
- var a = ni, s = $s(ri, e), o = s[0], i = s[1], c = ti(S(function(u) {
1313
+ function ls(e, t, r) {
1314
+ var s = ni, a = $a(ri, e), o = a[0], i = a[1], c = ti(S(function(u) {
1315
1315
  return i(u);
1316
1316
  }, [i]), t, r), l = ne(e);
1317
- return a(l.current, e) || (c(e), l.current = e), a(o, e) && c.cancel(), [o, c];
1317
+ return s(l.current, e) || (c(e), l.current = e), s(o, e) && c.cancel(), [o, c];
1318
1318
  }
1319
- const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13", ii = "_search-input-container_1kgb8_19", li = "_search-input_1kgb8_19", ci = "_loading-container_1kgb8_25", di = "_items-container_1kgb8_32", ui = "_header-row_1kgb8_38", fi = "_item_1kgb8_32", mi = "_name_1kgb8_57", hi = "_column-item_1kgb8_62", gi = "_icon_1kgb8_66", pi = "_action-buttons-container_1kgb8_74", xi = "_reverse_1kgb8_82", vi = "_action-button_1kgb8_74", _e = {
1320
- wrapper: ai,
1321
- open: si,
1319
+ const si = "_wrapper_1kgb8_1", ai = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13", ii = "_search-input-container_1kgb8_19", li = "_search-input_1kgb8_19", ci = "_loading-container_1kgb8_25", di = "_items-container_1kgb8_32", ui = "_header-row_1kgb8_38", fi = "_item_1kgb8_32", mi = "_name_1kgb8_57", hi = "_column-item_1kgb8_62", gi = "_icon_1kgb8_66", pi = "_action-buttons-container_1kgb8_74", xi = "_reverse_1kgb8_82", vi = "_action-button_1kgb8_74", _e = {
1320
+ wrapper: si,
1321
+ open: ai,
1322
1322
  dropdown: oi,
1323
1323
  "search-input-container": "_search-input-container_1kgb8_19",
1324
1324
  searchInputContainer: ii,
@@ -1340,17 +1340,17 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1340
1340
  reverse: xi,
1341
1341
  "action-button": "_action-button_1kgb8_74",
1342
1342
  actionButton: vi
1343
- }, wn = ({ show: e, onCancel: t, items: r, currentSelection: a, onSelectionChange: s, onSearchQueryChange: o, texts: i, itemsNameWidth: c, additionalColumns: l, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: m, disabled: p, isLoading: x = !1, inputRef: h, archiveColumn: g = "archive" }) => {
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: p, isLoading: x = !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), [_, $] = O(""), [E] = la(_, 500), [, I] = O(!1), { copyToClipboard: F } = Ls(), D = (Ye = h.current) == null ? void 0 : Ye.getBoundingClientRect(), C = (D == null ? void 0 : D.x) ?? 0, N = ((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(() => C ? C > window.innerWidth / 2 : !1, [C]), W = ee(() => P ? P > window.innerHeight / 2 : !1, [P]);
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]);
1346
1346
  L(() => {
1347
1347
  var Y;
1348
1348
  e && ((Y = f.current) == null || Y.focus());
1349
1349
  }, [f, e]), L(() => {
1350
- e || $("");
1350
+ e || D("");
1351
1351
  }, [e]), L(() => {
1352
- o(E);
1353
- }, [E, o]);
1352
+ o($);
1353
+ }, [$, o]);
1354
1354
  const [G, K] = O(null);
1355
1355
  L(() => {
1356
1356
  e && r.length > 0 ? K(0) : K(null);
@@ -1382,7 +1382,7 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1382
1382
  Y.stopPropagation(), Y.preventDefault(), t();
1383
1383
  break;
1384
1384
  case "Enter":
1385
- Y.stopPropagation(), Y.preventDefault(), p || s(te);
1385
+ Y.stopPropagation(), Y.preventDefault(), p || a(te);
1386
1386
  break;
1387
1387
  case "ArrowUp":
1388
1388
  Y.stopPropagation(), Y.preventDefault(), k(-1);
@@ -1391,7 +1391,7 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1391
1391
  Y.stopPropagation(), Y.preventDefault(), k(1);
1392
1392
  break;
1393
1393
  }
1394
- }, [t, e, k, te, p, s]), le = S(() => {
1394
+ }, [t, e, k, te, p, a]), le = S(() => {
1395
1395
  I((Y) => !Y);
1396
1396
  }, []);
1397
1397
  L(() => (window.addEventListener("scroll", le), () => {
@@ -1399,20 +1399,20 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1399
1399
  }), [le]), L(() => (window.addEventListener("resize", le), () => {
1400
1400
  window.removeEventListener("resize", le);
1401
1401
  }), [le]), Dr(H), Ir([v, w, j], t);
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(() => (a && e && !p) ?? !1, [a, e, p]), $e = ee(() => (a && e) ?? !1, [a, e]);
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 && !p) ?? !1, [s, e, p]), $e = ee(() => (s && e) ?? !1, [s, e]);
1403
1403
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1404
- /* @__PURE__ */ n.jsx(ua, { show: e, onClick: t }),
1404
+ /* @__PURE__ */ n.jsx(us, { show: e, onClick: t }),
1405
1405
  /* @__PURE__ */ n.jsxs("div", { className: b("luminus-dropdown-picker-actions", _e.actionButtonsContainer, {
1406
1406
  [_e.reverse]: V
1407
1407
  }), style: {
1408
1408
  top: `calc(${P}px + ${A / 2}px - 12px)`,
1409
1409
  left: V ? ve && $e ? `calc(${C}px - 24px - 8px - 24px - 4px)` : `calc(${C}px - 24px - 8px)` : `calc(${N}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: () => !p && s(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: w, type: "button", className: b("luminus-dropdown-picker-clear-button", _e.actionButton), onClick: () => !p && 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
- F(u ? ((Y = a == null ? void 0 : a.id) == null ? void 0 : Y.toString()) ?? "" : ((he = a == null ? void 0 : a.name) == null ? void 0 : he.toString()) ?? ""), t();
1415
- }, children: /* @__PURE__ */ n.jsx(X, { variant: "caption", className: "text-info", children: /* @__PURE__ */ n.jsx(as, { size: 16 }) }) })
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();
1415
+ }, children: /* @__PURE__ */ n.jsx(X, { variant: "caption", className: "text-info", children: /* @__PURE__ */ n.jsx(sa, { size: 16 }) }) })
1416
1416
  ] }),
1417
1417
  /* @__PURE__ */ n.jsx("div", { className: b("luminus-dropdown-picker", _e.wrapper, {
1418
1418
  [_e.open]: e
@@ -1425,7 +1425,7 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1425
1425
  }, children: /* @__PURE__ */ n.jsx("div", { ref: v, className: b("shadow rounded", _e.dropdown), children: !p && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1426
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) => {
1427
1427
  var he;
1428
- return $(((he = Y.target) == null ? void 0 : he.value) ?? "");
1428
+ return D(((he = Y.target) == null ? void 0 : he.value) ?? "");
1429
1429
  } }) }),
1430
1430
  x ? /* @__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: [
1431
1431
  l && l.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: b("header-row border-bottom", _e.headerRow), children: [
@@ -1442,7 +1442,7 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1442
1442
  focused: G === he
1443
1443
  }, {
1444
1444
  archive: Y.additionalColumns ? Y.additionalColumns[g] : !1
1445
- }), onClick: () => !p && s(Y), onMouseEnter: () => K(he), children: [
1445
+ }), onClick: () => !p && a(Y), onMouseEnter: () => K(he), children: [
1446
1446
  /* @__PURE__ */ n.jsx("div", { className: _e.name, children: /* @__PURE__ */ n.jsx(X, { variant: "body2", children: u ? Y.id : Y.name }) }),
1447
1447
  l == null ? void 0 : l.filter((be) => be.key !== g).map((be) => /* @__PURE__ */ n.jsx("div", { className: _e.columnItem, style: {
1448
1448
  width: `${be.width ?? 100}px`,
@@ -1453,20 +1453,20 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1453
1453
  ] })
1454
1454
  ] }) }) })
1455
1455
  ] });
1456
- }, fd = ({ color: e = "primary", icon: t = /* @__PURE__ */ n.jsx(xr, { size: 12 }), inputId: r = "context-file-input", accept: a = "*", onUpload: s, multiple: o, className: i, children: c, ...l }) => {
1456
+ }, fd = ({ color: e = "primary", icon: t = /* @__PURE__ */ n.jsx(xr, { size: 12 }), inputId: r = "context-file-input", accept: s = "*", onUpload: a, multiple: o, className: i, children: c, ...l }) => {
1457
1457
  const u = (d) => {
1458
- d.target.files && (s(d.target.files), d.target.value = "");
1458
+ d.target.files && (a(d.target.files), d.target.value = "");
1459
1459
  };
1460
1460
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1461
- /* @__PURE__ */ n.jsxs("label", { htmlFor: r, className: b(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i ?? ""}`, ss.item), ...l, children: [
1461
+ /* @__PURE__ */ n.jsxs("label", { htmlFor: r, className: b(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i ?? ""}`, aa.item), ...l, children: [
1462
1462
  t,
1463
1463
  c
1464
1464
  ] }),
1465
- /* @__PURE__ */ n.jsx("input", { id: r, type: "file", accept: a, onChange: u, hidden: !0, multiple: o })
1465
+ /* @__PURE__ */ n.jsx("input", { id: r, type: "file", accept: s, onChange: u, hidden: !0, multiple: o })
1466
1466
  ] });
1467
1467
  }, ji = "_divider_1e6rk_1", yi = {
1468
1468
  divider: ji
1469
- }, md = ({ className: e }) => /* @__PURE__ */ n.jsx(os.Divider, { className: b("luminus-dropdown-divider", e, yi.divider) }), wi = ({ searchTypes: e, selectedType: t, setSelectedType: r }) => /* @__PURE__ */ n.jsx(mn, { toggle: /* @__PURE__ */ n.jsx(hn, { as: yr, icon: null, text: t == null ? void 0 : t.text }), children: e.map((a) => /* @__PURE__ */ n.jsx(Je, { icon: null, onClick: () => r(a.key), children: a.text }, a.key)) }), bi = "_dropdown_1ddrg_1", _i = "_open_1ddrg_12", Ni = "_loading-container_1ddrg_15", Si = "_groups-container_1ddrg_22", Ci = "_group_1ddrg_22", ki = "_header_1ddrg_26", Ii = "_item_1ddrg_33", Ge = {
1469
+ }, md = ({ className: e }) => /* @__PURE__ */ n.jsx(oa.Divider, { className: b("luminus-dropdown-divider", e, yi.divider) }), wi = ({ searchTypes: e, selectedType: t, setSelectedType: r }) => /* @__PURE__ */ n.jsx(mn, { toggle: /* @__PURE__ */ n.jsx(hn, { as: yr, icon: null, text: t == null ? void 0 : t.text }), children: e.map((s) => /* @__PURE__ */ n.jsx(Je, { icon: null, onClick: () => r(s.key), children: s.text }, s.key)) }), bi = "_dropdown_1ddrg_1", _i = "_open_1ddrg_12", Ni = "_loading-container_1ddrg_15", Si = "_groups-container_1ddrg_22", Ci = "_group_1ddrg_22", ki = "_header_1ddrg_26", Ii = "_item_1ddrg_33", Ge = {
1470
1470
  dropdown: bi,
1471
1471
  open: _i,
1472
1472
  "loading-container": "_loading-container_1ddrg_15",
@@ -1476,7 +1476,7 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1476
1476
  group: Ci,
1477
1477
  header: ki,
1478
1478
  item: Ii
1479
- }, Di = ({ show: e, query: t, onCancel: r, groups: a, isLoading: s, searchTypes: o }) => {
1479
+ }, Di = ({ show: e, query: t, onCancel: r, groups: s, isLoading: a, searchTypes: o }) => {
1480
1480
  const { texts: { appSearch: i } } = Z(pe), c = ne(null), l = S((u) => {
1481
1481
  var m;
1482
1482
  const d = (m = o.find((p) => p.key === u.type)) == null ? void 0 : m.toPath;
@@ -1484,7 +1484,7 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1484
1484
  }, [o]);
1485
1485
  return Ir([c], r), /* @__PURE__ */ n.jsx("div", { ref: c, className: b("luminus-app-search-dropdown shadow rounded", Ge.dropdown, {
1486
1486
  [Ge.open]: e
1487
- }), children: s ? /* @__PURE__ */ n.jsx("div", { className: Ge.loadingContainer, children: /* @__PURE__ */ n.jsx(yn, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ n.jsx("div", { className: Ge.groupsContainer, children: a == null ? void 0 : a.map((u) => {
1487
+ }), children: a ? /* @__PURE__ */ n.jsx("div", { className: Ge.loadingContainer, children: /* @__PURE__ */ n.jsx(yn, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ n.jsx("div", { className: Ge.groupsContainer, children: s == null ? void 0 : s.map((u) => {
1488
1488
  var d;
1489
1489
  return /* @__PURE__ */ n.jsxs("div", { className: b(Ge.group), children: [
1490
1490
  /* @__PURE__ */ n.jsxs(Xe, { to: `/search?query=${t}&type=${u.key.category}`, className: b("group-header", Ge.header), onClick: r, children: [
@@ -1505,7 +1505,7 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1505
1505
  onClick: r,
1506
1506
  children: [
1507
1507
  /* @__PURE__ */ n.jsx(X, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
1508
- /* @__PURE__ */ n.jsx(X, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ n.jsx(is, {}) })
1508
+ /* @__PURE__ */ n.jsx(X, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ n.jsx(ia, {}) })
1509
1509
  ]
1510
1510
  },
1511
1511
  p
@@ -1523,39 +1523,39 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1523
1523
  "submit-button": "_submit-button_1lkfy_20",
1524
1524
  submitButton: Ri
1525
1525
  }, Li = (e, t) => {
1526
- const r = et(), [a, s] = O(!1), [o, i] = O([]), c = !e || !e.key, l = S(() => {
1526
+ const r = et(), [s, a] = O(!1), [o, i] = O([]), c = !e || !e.key, l = S(() => {
1527
1527
  if (t.length < 3) {
1528
1528
  i([]);
1529
1529
  return;
1530
1530
  }
1531
- s(!0), r.get(`/search/${t}?count=${c ? 5 : 20}${c ? "" : `&type=${e.key}`}`).then(({ data: u }) => {
1532
- i(u), s(!1);
1531
+ a(!0), r.get(`/search/${t}?count=${c ? 5 : 20}${c ? "" : `&type=${e.key}`}`).then(({ data: u }) => {
1532
+ i(u), a(!1);
1533
1533
  }).catch(() => {
1534
- s(!1);
1534
+ a(!1);
1535
1535
  });
1536
1536
  }, [e, t, r, c]);
1537
1537
  return L(() => {
1538
1538
  l();
1539
- }, [l]), { isLoading: a, searchItems: o };
1540
- }, hd = ({ searchTypes: e, navigateFunction: t, currentPath: r, homePath: a = "/" }) => {
1539
+ }, [l]), { isLoading: s, searchItems: o };
1540
+ }, hd = ({ searchTypes: e, navigateFunction: t, currentPath: r, homePath: s = "/" }) => {
1541
1541
  var w;
1542
- const { texts: { appSearch: s } } = 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] = la(l, 500), { isLoading: p, searchItems: x } = Li(c, d), [h, g] = O(!1);
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: p, searchItems: x } = Li(c, d), [h, g] = O(!1);
1543
1543
  L(() => {
1544
1544
  (x.length > 0 || p) && g(!0);
1545
1545
  }, [x, p]);
1546
1546
  const v = ne(null);
1547
1547
  return L(() => {
1548
1548
  var j;
1549
- u(""), r === a && ((j = v.current) == null || j.focus());
1550
- }, [r, a]), /* @__PURE__ */ n.jsx(ye, { onSubmit: (j) => {
1549
+ u(""), r === s && ((j = v.current) == null || j.focus());
1550
+ }, [r, s]), /* @__PURE__ */ n.jsx(ye, { onSubmit: (j) => {
1551
1551
  j.preventDefault(), j.stopPropagation(), m.flush(), g(!1), l.length > 2 && t(`/search?query=${l}${c && c.key && `&type=${c == null ? void 0 : c.key}`}`);
1552
1552
  }, children: /* @__PURE__ */ n.jsxs(St, { className: Ke.inputGroup, children: [
1553
1553
  /* @__PURE__ */ n.jsx(St.Text, { className: b("p-1 rounded", Ke.inputGroupText, Ke.left), children: /* @__PURE__ */ n.jsx(wi, { searchTypes: e, selectedType: c, setSelectedType: i }) }),
1554
- /* @__PURE__ */ n.jsx(ye.Control, { ref: v, placeholder: s.searchPlaceholder, type: "text", size: "sm", className: b("luminus-app-search-input", Ke.input), value: l, onChange: (j) => {
1554
+ /* @__PURE__ */ n.jsx(ye.Control, { ref: v, placeholder: a.searchPlaceholder, type: "text", size: "sm", className: b("luminus-app-search-input", Ke.input), value: l, onChange: (j) => {
1555
1555
  var f;
1556
1556
  return u(((f = j.target) == null ? void 0 : f.value) ?? "");
1557
1557
  }, onFocus: () => x.length > 0 && g(!0) }),
1558
- /* @__PURE__ */ n.jsx(St.Text, { className: b("p-0 rounded", Ke.inputGroupText, Ke.right), children: /* @__PURE__ */ n.jsx("button", { type: "submit", className: b("text-primary", Ke.submitButton), children: /* @__PURE__ */ n.jsx(ls, {}) }) }),
1558
+ /* @__PURE__ */ n.jsx(St.Text, { className: b("p-0 rounded", Ke.inputGroupText, Ke.right), children: /* @__PURE__ */ n.jsx("button", { type: "submit", className: b("text-primary", Ke.submitButton), children: /* @__PURE__ */ n.jsx(la, {}) }) }),
1559
1559
  /* @__PURE__ */ n.jsx(Di, { query: d, searchTypes: e, show: h, onCancel: () => g(!1), groups: x, isLoading: p })
1560
1560
  ] }) });
1561
1561
  }, Ai = "_card_19733_1", Mi = "_header_19733_6", Bi = "_header-content_19733_13", Vi = "_title_19733_19", Pi = "_collapse-icon_19733_22", zi = "_collapsed_19733_27", Hi = "_content_19733_30", qe = {
@@ -1568,17 +1568,17 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1568
1568
  collapseIcon: Pi,
1569
1569
  collapsed: zi,
1570
1570
  content: Hi
1571
- }, Wi = ({ title: e, headerContent: t, children: r, className: a, headerClassName: s, contentClassName: o, dontRenderIfNoChildren: i, ...c }) => {
1571
+ }, Wi = ({ title: e, headerContent: t, children: r, className: s, headerClassName: a, contentClassName: o, dontRenderIfNoChildren: i, ...c }) => {
1572
1572
  const l = c.collapsible ? c.controlled ? !1 : c.defaultOpen ?? !1 : !0, [u, d] = O(l), m = c.collapsible ? c.controlled ? c.isOpen : u : !0;
1573
1573
  L(() => {
1574
1574
  d(l);
1575
1575
  }, [l]);
1576
1576
  const p = ee(() => !r || !r.toString() || r.toString().split(",").filter((x) => x && x !== "false").length === 0, [r]);
1577
1577
  return i && p ? null : /* @__PURE__ */ n.jsxs("div", { className: b("luminus-card rounded shadow-sm", qe.card, {
1578
- [a ?? ""]: a
1578
+ [s ?? ""]: s
1579
1579
  }), children: [
1580
1580
  /* @__PURE__ */ n.jsxs("div", { role: c.collapsible ? "button" : void 0, className: b("header", qe.header, {
1581
- [s ?? ""]: s
1581
+ [a ?? ""]: a
1582
1582
  }), onClick: () => {
1583
1583
  c.collapsible && (c.controlled ? c.onToggle(!c.isOpen) : d(!u));
1584
1584
  }, children: [
@@ -1597,13 +1597,13 @@ const ai = "_wrapper_1kgb8_1", si = "_open_1kgb8_9", oi = "_dropdown_1kgb8_13",
1597
1597
  };
1598
1598
  var Ui = !!(typeof window < "u" && window.document && window.document.createElement), Yi = /* @__PURE__ */ function() {
1599
1599
  function e(t, r) {
1600
- for (var a = 0; a < r.length; a++) {
1601
- var s = r[a];
1602
- s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(t, s.key, s);
1600
+ for (var s = 0; s < r.length; s++) {
1601
+ var a = r[s];
1602
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(t, a.key, a);
1603
1603
  }
1604
1604
  }
1605
- return function(t, r, a) {
1606
- return r && e(t.prototype, r), a && e(t, a), t;
1605
+ return function(t, r, s) {
1606
+ return r && e(t.prototype, r), s && e(t, s), t;
1607
1607
  };
1608
1608
  }();
1609
1609
  function Gi(e, t) {
@@ -1620,7 +1620,7 @@ function qi(e, t) {
1620
1620
  throw new TypeError("Super expression must either be null or a function, not " + typeof t);
1621
1621
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
1622
1622
  }
1623
- var ca = function(e) {
1623
+ var cs = function(e) {
1624
1624
  qi(t, e);
1625
1625
  function t() {
1626
1626
  return Gi(this, t), Ki(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
@@ -1637,19 +1637,19 @@ var ca = function(e) {
1637
1637
  }
1638
1638
  }]), t;
1639
1639
  }(Se.Component);
1640
- ca.propTypes = {
1640
+ cs.propTypes = {
1641
1641
  children: kt.node.isRequired,
1642
1642
  node: kt.any
1643
1643
  };
1644
1644
  var Qi = /* @__PURE__ */ function() {
1645
1645
  function e(t, r) {
1646
- for (var a = 0; a < r.length; a++) {
1647
- var s = r[a];
1648
- s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(t, s.key, s);
1646
+ for (var s = 0; s < r.length; s++) {
1647
+ var a = r[s];
1648
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(t, a.key, a);
1649
1649
  }
1650
1650
  }
1651
- return function(t, r, a) {
1652
- return r && e(t.prototype, r), a && e(t, a), t;
1651
+ return function(t, r, s) {
1652
+ return r && e(t.prototype, r), s && e(t, s), t;
1653
1653
  };
1654
1654
  }();
1655
1655
  function Zi(e, t) {
@@ -1666,7 +1666,7 @@ function Xi(e, t) {
1666
1666
  throw new TypeError("Super expression must either be null or a function, not " + typeof t);
1667
1667
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
1668
1668
  }
1669
- var da = function(e) {
1669
+ var ds = function(e) {
1670
1670
  Xi(t, e);
1671
1671
  function t() {
1672
1672
  return Zi(this, t), Ji(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
@@ -1678,7 +1678,7 @@ var da = function(e) {
1678
1678
  }
1679
1679
  }, {
1680
1680
  key: "componentDidUpdate",
1681
- value: function(a) {
1681
+ value: function(s) {
1682
1682
  this.renderPortal();
1683
1683
  }
1684
1684
  }, {
@@ -1688,10 +1688,10 @@ var da = function(e) {
1688
1688
  }
1689
1689
  }, {
1690
1690
  key: "renderPortal",
1691
- value: function(a) {
1691
+ value: function(s) {
1692
1692
  !this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode));
1693
- var s = this.props.children;
1694
- typeof this.props.children.type == "function" && (s = Se.cloneElement(this.props.children)), this.portal = $t.unstable_renderSubtreeIntoContainer(this, s, this.props.node || this.defaultNode);
1693
+ var a = this.props.children;
1694
+ typeof this.props.children.type == "function" && (a = Se.cloneElement(this.props.children)), this.portal = $t.unstable_renderSubtreeIntoContainer(this, a, this.props.node || this.defaultNode);
1695
1695
  }
1696
1696
  }, {
1697
1697
  key: "render",
@@ -1700,21 +1700,21 @@ var da = function(e) {
1700
1700
  }
1701
1701
  }]), t;
1702
1702
  }(Se.Component);
1703
- da.propTypes = {
1703
+ ds.propTypes = {
1704
1704
  children: kt.node.isRequired,
1705
1705
  node: kt.any
1706
1706
  };
1707
1707
  var on = void 0;
1708
- $t.createPortal ? on = ca : on = da;
1709
- const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20", rl = "_photo-actions_14acg_26", al = "_photo-container_14acg_31", sl = "_photo_14acg_26", ol = "_nav-button_14acg_41", il = "_photos-preview_14acg_49", ll = "_selected_14acg_62", cl = "_default-indicator_14acg_66", De = {
1708
+ $t.createPortal ? on = cs : on = ds;
1709
+ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20", rl = "_photo-actions_14acg_26", sl = "_photo-container_14acg_31", al = "_photo_14acg_26", ol = "_nav-button_14acg_41", il = "_photos-preview_14acg_49", ll = "_selected_14acg_62", cl = "_default-indicator_14acg_66", De = {
1710
1710
  lightbox: el,
1711
1711
  show: tl,
1712
1712
  header: nl,
1713
1713
  "photo-actions": "_photo-actions_14acg_26",
1714
1714
  photoActions: rl,
1715
1715
  "photo-container": "_photo-container_14acg_31",
1716
- photoContainer: al,
1717
- photo: sl,
1716
+ photoContainer: sl,
1717
+ photo: al,
1718
1718
  "nav-button": "_nav-button_14acg_41",
1719
1719
  navButton: ol,
1720
1720
  "photos-preview": "_photos-preview_14acg_49",
@@ -1725,13 +1725,13 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1725
1725
  }, dl = "_backdrop_3huvf_1", ul = "_show_3huvf_11", Yn = {
1726
1726
  backdrop: dl,
1727
1727
  show: ul
1728
- }, ua = ({ show: e, onClick: t }) => /* @__PURE__ */ n.jsx("div", { className: b("luminus-backdrop", Yn.backdrop, {
1728
+ }, us = ({ show: e, onClick: t }) => /* @__PURE__ */ n.jsx("div", { className: b("luminus-backdrop", Yn.backdrop, {
1729
1729
  [Yn.show]: e
1730
- }), onClick: () => t && t() }), fa = ({ src: e, alt: t, baseUrl: r, customToken: a, placeholder: s, ...o }) => /* @__PURE__ */ n.jsx("img", { ...o, alt: t ?? "", src: e ?? s }), fl = ({ show: e, onClose: t, photos: r, defaultIndex: a, uploadPhotosText: s, noPhotosText: o, onUploadPhotos: i, photoActions: c, baseUrl: l, customToken: u, placeholder: d, ImgComponent: m = fa }) => {
1731
- const p = ne(null), [x, h] = O(a), g = r.at(x), v = x > 0, w = x < r.length - 1;
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 p = ne(null), [x, h] = O(s), g = r.at(x), v = x > 0, w = x < r.length - 1;
1732
1732
  L(() => {
1733
- e && h(a);
1734
- }, [a, e]), L(() => {
1733
+ e && h(s);
1734
+ }, [s, e]), L(() => {
1735
1735
  x >= r.length && h(r.length - 1);
1736
1736
  }, [r, x]);
1737
1737
  const j = S((f) => {
@@ -1748,23 +1748,23 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1748
1748
  }
1749
1749
  }, [w, v, t]);
1750
1750
  return Dr(j), /* @__PURE__ */ n.jsxs(on, { children: [
1751
- /* @__PURE__ */ n.jsx(ua, { show: e, onClick: t }),
1751
+ /* @__PURE__ */ n.jsx(us, { show: e, onClick: t }),
1752
1752
  /* @__PURE__ */ n.jsx("div", { ref: p, className: b("luminus-lightbox rounded shadow", De.lightbox, {
1753
1753
  [De.show]: e
1754
1754
  }), children: e && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1755
1755
  /* @__PURE__ */ n.jsxs("div", { className: De.header, children: [
1756
1756
  /* @__PURE__ */ n.jsxs("div", { className: b("rounded", De.photoActions), children: [
1757
- i && /* @__PURE__ */ n.jsx(ia, { accept: ".jpg,.jpeg,.png", onUpload: (f) => {
1757
+ i && /* @__PURE__ */ n.jsx(is, { accept: ".jpg,.jpeg,.png", onUpload: (f) => {
1758
1758
  f.length > 0 && i(Array.from(f));
1759
- }, icon: /* @__PURE__ */ n.jsx(wr, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: s ?? null }),
1760
- g && (c == null ? void 0 : c.map(({ label: f, onClick: y, ..._ }, $) => /* @__PURE__ */ n.jsx(
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(
1761
1761
  Le,
1762
1762
  {
1763
1763
  onClick: () => y(g.id),
1764
1764
  ..._,
1765
1765
  children: f
1766
1766
  },
1767
- `action-${$}`
1767
+ `action-${D}`
1768
1768
  )))
1769
1769
  ] }),
1770
1770
  /* @__PURE__ */ n.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ n.jsx(Te, { style: { fontSize: "32px" } }) })
@@ -1779,11 +1779,11 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1779
1779
  /* @__PURE__ */ n.jsx(m, { role: y !== x ? "button" : void 0, src: f.smSrc, alt: f.alt, className: b("rounded", De.photo, {
1780
1780
  [De.selected]: y === x
1781
1781
  }), baseUrl: l, customToken: u, placeholder: d }, f.id),
1782
- f.isDefault && /* @__PURE__ */ n.jsx("div", { className: b("text-primary", De.defaultIndicator), children: /* @__PURE__ */ n.jsx(cs, {}) })
1782
+ f.isDefault && /* @__PURE__ */ n.jsx("div", { className: b("text-primary", De.defaultIndicator), children: /* @__PURE__ */ n.jsx(ca, {}) })
1783
1783
  ] })) })
1784
1784
  ] }) })
1785
1785
  ] });
1786
- }, ml = ({ photos: e, onUploadPhotos: t, uploadPhotosText: r, noPhotosText: a, photoActions: s, baseUrl: o, customToken: i, placeholder: c, ImgComponent: l = fa, noLightboxOnlyButtonOnEmpty: u = !1 }) => {
1786
+ }, ml = ({ photos: e, onUploadPhotos: t, uploadPhotosText: r, noPhotosText: s, photoActions: a, baseUrl: o, customToken: i, placeholder: c, ImgComponent: l = fs, noLightboxOnlyButtonOnEmpty: u = !1 }) => {
1787
1787
  const [d, m] = O(null), p = d !== null ? e[d] : null, [x, h] = O(!1);
1788
1788
  return L(() => {
1789
1789
  if (e.length === 0) {
@@ -1792,7 +1792,7 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1792
1792
  }
1793
1793
  const g = e.findIndex((v) => v.isDefault);
1794
1794
  m(g > -1 ? g : 0);
1795
- }, [e]), !p && t && u ? /* @__PURE__ */ n.jsx(ia, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
1795
+ }, [e]), !p && t && u ? /* @__PURE__ */ n.jsx(is, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
1796
1796
  g.length > 0 && t(Array.from(g));
1797
1797
  }, icon: /* @__PURE__ */ n.jsx(wr, { style: { fontSize: 18 } }), multiple: !0, children: r ?? null }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1798
1798
  p ? /* @__PURE__ */ n.jsxs("div", { role: "button", className: "w-100 position-relative", onClick: () => h(!0), children: [
@@ -1803,17 +1803,17 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1803
1803
  color: "white",
1804
1804
  textShadow: "-2px 2px 4px #696969",
1805
1805
  background: "rgba(105,105,105,0.5)"
1806
- }, children: /* @__PURE__ */ n.jsx(ds, { fontSize: 24 }) })
1806
+ }, children: /* @__PURE__ */ n.jsx(da, { fontSize: 24 }) })
1807
1807
  ] }) : /* @__PURE__ */ n.jsx(At, { text: r ?? "", placement: "left", children: /* @__PURE__ */ n.jsx("div", { role: "button", className: b("rounded p-3 d-flex justify-content-center"), onClick: () => h(!0), children: /* @__PURE__ */ n.jsx("img", { src: c, alt: "placeholder", className: "rounded w-25" }) }) }),
1808
- /* @__PURE__ */ n.jsx(fl, { show: x, onClose: () => h(!1), photos: e, defaultIndex: d ?? 0, uploadPhotosText: r, noPhotosText: a, onUploadPhotos: t, photoActions: s, baseUrl: o, customToken: i, placeholder: c, ImgComponent: l })
1808
+ /* @__PURE__ */ n.jsx(fl, { show: x, onClose: () => h(!1), photos: e, defaultIndex: d ?? 0, uploadPhotosText: r, noPhotosText: s, onUploadPhotos: t, photoActions: a, baseUrl: o, customToken: i, placeholder: c, ImgComponent: l })
1809
1809
  ] });
1810
1810
  }, gd = ({ children: e }) => {
1811
1811
  var c, l, u;
1812
- const { useMsal: t, msalScopes: r } = Z(us), { isAuthenticated: a } = fs(), { userLoginState: s } = Z(Tt), o = s.state === ms.LOGGING_IN, i = s.user && ((c = s.user) == null ? void 0 : c.permissions) && ((u = (l = s.user) == null ? void 0 : l.permissions) == null ? void 0 : u.length) > 0;
1813
- return t ? /* @__PURE__ */ n.jsx(Os, { interactionType: Fs.Redirect, authenticationRequest: { scopes: r }, children: o || !a() ? /* @__PURE__ */ n.jsx(En, {}) : s.user ? i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e }) : /* @__PURE__ */ n.jsx(_t, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ n.jsx(_t, { to: "/no-user-login", replace: !0 }) }) : o ? /* @__PURE__ */ n.jsx(En, {}) : !a() || !s.user ? /* @__PURE__ */ n.jsx(_t, { to: "/login", replace: !0 }) : i ? e : /* @__PURE__ */ n.jsx(_t, { to: "/user-not-permitted", replace: !0 });
1812
+ const { useMsal: t, msalScopes: r } = Z(ua), { isAuthenticated: s } = fa(), { userLoginState: a } = Z(Tt), o = a.state === ma.LOGGING_IN, i = a.user && ((c = a.user) == null ? void 0 : c.permissions) && ((u = (l = a.user) == null ? void 0 : l.permissions) == null ? void 0 : u.length) > 0;
1813
+ return t ? /* @__PURE__ */ n.jsx(Oa, { interactionType: Fa.Redirect, authenticationRequest: { scopes: r }, children: o || !s() ? /* @__PURE__ */ n.jsx(En, {}) : a.user ? i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e }) : /* @__PURE__ */ n.jsx(_t, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ n.jsx(_t, { to: "/no-user-login", replace: !0 }) }) : o ? /* @__PURE__ */ n.jsx(En, {}) : !s() || !a.user ? /* @__PURE__ */ n.jsx(_t, { to: "/login", replace: !0 }) : i ? e : /* @__PURE__ */ n.jsx(_t, { to: "/user-not-permitted", replace: !0 });
1814
1814
  }, bn = (e) => {
1815
- const { variant: t, children: r, className: a, size: s = "md", typographyVariant: o = s === "sm" ? "body2" : "body", ...i } = { ...e };
1816
- return /* @__PURE__ */ n.jsx(Js, { variant: t, className: `text-center ${s === "sm" ? "p-1" : s === "md" ? "p-3" : "p-4"} bg-${t} bg-opacity-10 border-none ${a ?? ""}`, ...i, children: /* @__PURE__ */ n.jsx(X, { variant: o, children: r }) });
1815
+ const { variant: t, children: r, className: s, size: a = "md", typographyVariant: o = a === "sm" ? "body2" : "body", ...i } = { ...e };
1816
+ return /* @__PURE__ */ n.jsx(Ja, { variant: t, className: `text-center ${a === "sm" ? "p-1" : a === "md" ? "p-3" : "p-4"} bg-${t} bg-opacity-10 border-none ${s ?? ""}`, ...i, children: /* @__PURE__ */ n.jsx(X, { variant: o, children: r }) });
1817
1817
  }, hl = "_item_1lf6j_1", gl = "_level-success_1lf6j_4", pl = "_level-info_1lf6j_10", xl = "_level-warning_1lf6j_16", vl = "_level-danger_1lf6j_22", jl = "_type-icon_1lf6j_28", Kt = {
1818
1818
  item: hl,
1819
1819
  "level-success": "_level-success_1lf6j_4",
@@ -1826,21 +1826,21 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1826
1826
  levelDanger: vl,
1827
1827
  "type-icon": "_type-icon_1lf6j_28",
1828
1828
  typeIcon: jl
1829
- }, yl = ({ level: e, children: t, customIcon: r, noIcon: a }) => {
1830
- const { ProjectIconComponent: s } = Z(pe), o = S(() => {
1829
+ }, yl = ({ level: e, children: t, customIcon: r, noIcon: s }) => {
1830
+ const { ProjectIconComponent: a } = Z(pe), o = S(() => {
1831
1831
  switch (e) {
1832
1832
  case "info":
1833
- return /* @__PURE__ */ n.jsx(s, { icon: "info" });
1833
+ return /* @__PURE__ */ n.jsx(a, { icon: "info" });
1834
1834
  case "warning":
1835
- return /* @__PURE__ */ n.jsx(s, { icon: "warning" });
1835
+ return /* @__PURE__ */ n.jsx(a, { icon: "warning" });
1836
1836
  case "danger":
1837
- return /* @__PURE__ */ n.jsx(s, { icon: "danger" });
1837
+ return /* @__PURE__ */ n.jsx(a, { icon: "danger" });
1838
1838
  default:
1839
- return /* @__PURE__ */ n.jsx(s, { icon: "check" });
1839
+ return /* @__PURE__ */ n.jsx(a, { icon: "check" });
1840
1840
  }
1841
- }, [s, e]);
1842
- return /* @__PURE__ */ n.jsxs("div", { className: b("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !a }, Kt.item, Kt[`level-${e}`]), children: [
1843
- !a && /* @__PURE__ */ n.jsx("div", { className: b(Kt.typeIcon), children: r ?? o() }),
1841
+ }, [a, e]);
1842
+ return /* @__PURE__ */ n.jsxs("div", { className: b("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !s }, Kt.item, Kt[`level-${e}`]), children: [
1843
+ !s && /* @__PURE__ */ n.jsx("div", { className: b(Kt.typeIcon), children: r ?? o() }),
1844
1844
  /* @__PURE__ */ n.jsx(X, { variant: "body2", className: "w-100", children: t })
1845
1845
  ] });
1846
1846
  }, pd = ({ version: e }) => /* @__PURE__ */ n.jsx("div", { className: "rounded", style: {
@@ -1875,7 +1875,7 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1875
1875
  contentText: Dl,
1876
1876
  "step-icon": "_step-icon_g1754_14",
1877
1877
  stepIcon: $l
1878
- }, xd = ({ steps: e }) => /* @__PURE__ */ n.jsx("div", { className: Qe.timeline, children: e.sort((t, r) => Ws(t.date ?? /* @__PURE__ */ new Date(), r.date ?? /* @__PURE__ */ new Date())).map((t, r) => /* @__PURE__ */ n.jsxs("div", { className: b("row g-0 gx-3", Qe.stepContainer), children: [
1878
+ }, xd = ({ steps: e }) => /* @__PURE__ */ n.jsx("div", { className: Qe.timeline, children: e.sort((t, r) => Wa(t.date ?? /* @__PURE__ */ new Date(), r.date ?? /* @__PURE__ */ new Date())).map((t, r) => /* @__PURE__ */ n.jsxs("div", { className: b("row g-0 gx-3", Qe.stepContainer), children: [
1879
1879
  /* @__PURE__ */ n.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ n.jsxs(X, { variant: "caption", className: b("h-100 d-flex flex-column align-items-end justify-content-center gap-0", Qe.stepDate), children: [
1880
1880
  /* @__PURE__ */ n.jsx("div", { children: vt(t.date, "dd.MM.yyyy") }),
1881
1881
  /* @__PURE__ */ n.jsx("div", { children: vt(t.date, "HH:mm") })
@@ -1886,11 +1886,11 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1886
1886
  typeof t.title == "string" ? /* @__PURE__ */ n.jsx(X, { variant: "body", className: "fw-bold", children: t.title }) : t.title
1887
1887
  ] }),
1888
1888
  t.text && /* @__PURE__ */ n.jsx(X, { variant: "body2", className: Qe.contentText, children: t.text }),
1889
- /* @__PURE__ */ n.jsx("div", { className: b("text-primary", Qe.stepIcon), children: t.icon ?? /* @__PURE__ */ n.jsx(hs, {}) })
1889
+ /* @__PURE__ */ n.jsx("div", { className: b("text-primary", Qe.stepIcon), children: t.icon ?? /* @__PURE__ */ n.jsx(ha, {}) })
1890
1890
  ] }) })
1891
- ] }, r)) }), El = (e, t, r, a = !0) => {
1892
- const s = et({ silent: a, differentBaseUrl: t, customToken: r }), [o, i] = O(!1), [c, l] = O(null), u = S(async (d) => {
1893
- i(!0), l(null), s.get(e, {
1891
+ ] }, r)) }), El = (e, t, r, s = !0) => {
1892
+ const a = et({ silent: s, differentBaseUrl: t, customToken: r }), [o, i] = O(!1), [c, l] = O(null), u = S(async (d) => {
1893
+ i(!0), l(null), a.get(e, {
1894
1894
  signal: d,
1895
1895
  responseType: "blob"
1896
1896
  }).then((m) => {
@@ -1898,70 +1898,70 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1898
1898
  }).catch(() => {
1899
1899
  i(!1), l(null);
1900
1900
  });
1901
- }, [s, e]);
1901
+ }, [a, e]);
1902
1902
  return L(() => {
1903
1903
  const d = new AbortController();
1904
1904
  return u(d.signal), () => {
1905
1905
  d.abort();
1906
1906
  };
1907
1907
  }, [u]), { data: c, setData: l, reloadData: u, isLoading: o };
1908
- }, Kn = ({ src: e, alt: t, baseUrl: r, customToken: a, placeholder: s, ...o }) => {
1909
- const { data: i } = El(e, r, a), [c, l] = O(null);
1908
+ }, Kn = ({ src: e, alt: t, baseUrl: r, customToken: s, placeholder: a, ...o }) => {
1909
+ const { data: i } = El(e, r, s), [c, l] = O(null);
1910
1910
  return L(() => {
1911
1911
  let u = null;
1912
1912
  return i !== null ? (u = URL.createObjectURL(i), l(u)) : l(null), () => {
1913
1913
  u !== null && URL.revokeObjectURL(u);
1914
1914
  };
1915
- }, [i]), c === null && !s ? null : /* @__PURE__ */ n.jsx("img", { ...o, alt: t ?? "", src: c ?? s });
1916
- }, ma = ({ currentSelection: e, selectedItemNavigateTo: t, children: r }) => {
1915
+ }, [i]), c === null && !a ? null : /* @__PURE__ */ n.jsx("img", { ...o, alt: t ?? "", src: c ?? a });
1916
+ }, ms = ({ currentSelection: e, selectedItemNavigateTo: t, children: r }) => {
1917
1917
  if (!e || !e.id || !t)
1918
1918
  return /* @__PURE__ */ n.jsx("div", { className: "luminus-input-container position-relative w-100", children: r });
1919
- const a = t(e);
1920
- return /* @__PURE__ */ n.jsx(Xe, { to: a, className: "luminus-input-container position-relative w-100 text-decoration-none", children: r });
1921
- }, ha = ({ InputContainer: e = tt, label: t, value: r, onChange: a, hidden: s, disabled: o, className: i, type: c, withoutLabel: l, indeterminate: u }) => {
1919
+ const s = t(e);
1920
+ return /* @__PURE__ */ n.jsx(Xe, { to: s, className: "luminus-input-container position-relative w-100 text-decoration-none", children: r });
1921
+ }, hs = ({ InputContainer: e = tt, label: t, value: r, onChange: s, hidden: a, disabled: o, className: i, type: c, withoutLabel: l, indeterminate: u }) => {
1922
1922
  const d = ne(null);
1923
1923
  return L(() => {
1924
1924
  d.current && (d.current.indeterminate = u ?? !1);
1925
- }, [d, u]), /* @__PURE__ */ n.jsx(e, { isForCheckInput: !0, hidden: s, label: t ?? "", withoutLabel: l, className: i, children: /* @__PURE__ */ n.jsx(ye.Check, { ref: d, id: `check-${t}`, type: c ?? "checkbox", label: t ?? "", checked: r, onChange: (m) => {
1925
+ }, [d, u]), /* @__PURE__ */ n.jsx(e, { isForCheckInput: !0, hidden: a, label: t ?? "", withoutLabel: l, className: i, children: /* @__PURE__ */ n.jsx(ye.Check, { ref: d, id: `check-${t}`, type: c ?? "checkbox", label: t ?? "", checked: r, onChange: (m) => {
1926
1926
  var p;
1927
- a && a(((p = m.target) == null ? void 0 : p.checked) ?? !1);
1928
- }, className: i ?? "", hidden: s ?? !1, disabled: o ?? !1 }) });
1929
- }, ot = ({ InputContainer: e = tt, type: t, value: r, onChange: a, debounceMs: s, label: o, withoutLabel: i, placeholder: c, size: l, hidden: u, disabled: d, showClearIcon: m, clearValue: p, list: x, className: h, step: g, noSelectOnFocus: v }) => {
1927
+ s && s(((p = m.target) == null ? void 0 : p.checked) ?? !1);
1928
+ }, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
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: p, list: x, className: h, step: g, noSelectOnFocus: v }) => {
1930
1930
  const w = t === "number", j = S(() => {
1931
- if (!a)
1931
+ if (!s)
1932
1932
  return;
1933
1933
  const C = p ?? null;
1934
- a(w ? C ? Number(C) : null : (C == null ? void 0 : C.toString()) ?? "");
1935
- }, [p, w, a]), f = ne(null), [y, _] = O((r == null ? void 0 : r.toString()) ?? ""), $ = S((C) => {
1934
+ s(w ? C ? Number(C) : null : (C == null ? void 0 : C.toString()) ?? "");
1935
+ }, [p, w, s]), f = ne(null), [y, _] = O((r == null ? void 0 : r.toString()) ?? ""), D = S((C) => {
1936
1936
  const N = C;
1937
- a && (w && a(N == null || N === "" ? null : Number(N)), a(N || null));
1938
- }, [w, a]), E = S((C) => {
1937
+ s && (w && s(N == null || N === "" ? null : Number(N)), s(N || null));
1938
+ }, [w, s]), $ = S((C) => {
1939
1939
  var P;
1940
1940
  const N = (P = C.target) == null ? void 0 : P.value;
1941
- if (!s) {
1942
- $(N);
1941
+ if (!a) {
1942
+ D(N);
1943
1943
  return;
1944
1944
  }
1945
1945
  _(N), f.current !== null && window.clearTimeout(f.current), f.current = window.setTimeout(() => {
1946
- $(N);
1947
- }, s);
1948
- }, [s, $]);
1946
+ D(N);
1947
+ }, a);
1948
+ }, [a, D]);
1949
1949
  L(() => {
1950
1950
  _(r === null ? "" : r.toString());
1951
1951
  }, [r]);
1952
- const [I, F] = O(!1), D = gs(t, r ? r.toString() ?? null : null, I);
1952
+ const [I, F] = O(!1), E = ga(t, r ? r.toString() ?? null : null, I);
1953
1953
  return /* @__PURE__ */ n.jsxs(e, { withoutLabel: i, label: o ?? "", hidden: u, className: h, children: [
1954
- /* @__PURE__ */ n.jsx(ye.Control, { type: D, placeholder: c ?? o, size: l, value: s ? y : (r == null ? void 0 : r.toString()) ?? "", onChange: E, className: h ?? "", hidden: u, disabled: d ?? !1, list: x, onFocus: (C) => {
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: x, onFocus: (C) => {
1955
1955
  F(!0), !v && C.target.select();
1956
1956
  }, onBlur: () => F(!1), step: g }),
1957
- m && r !== null && a && !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, {}) }) })
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
  ] });
1959
1959
  }, Et = ({
1960
1960
  InputContainer: e = tt,
1961
1961
  value: t,
1962
1962
  options: r,
1963
- onChange: a,
1964
- label: s,
1963
+ onChange: s,
1964
+ label: a,
1965
1965
  withoutLabel: o,
1966
1966
  isNumber: i,
1967
1967
  size: c,
@@ -1976,11 +1976,11 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1976
1976
  appendCurrentSelectionWithName: g
1977
1977
  }) => {
1978
1978
  const v = S(() => {
1979
- if (!a)
1979
+ if (!s)
1980
1980
  return;
1981
1981
  const j = m ?? null;
1982
- a(i ? j ? Number(j) : null : (j == null ? void 0 : j.toString()) ?? "");
1983
- }, [m, i, a]), w = ee(() => {
1982
+ s(i ? j ? Number(j) : null : (j == null ? void 0 : j.toString()) ?? "");
1983
+ }, [m, i, s]), w = 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 };
@@ -1988,33 +1988,35 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
1988
1988
  }
1989
1989
  return j.sort((f, y) => (p ? 0 : (f.name ?? "").localeCompare(y.name ?? "")) ?? null);
1990
1990
  }, [r, p, t, g]);
1991
- return /* @__PURE__ */ n.jsxs(e, { withoutLabel: o, label: s ?? "", hidden: l, className: x, children: [
1991
+ return /* @__PURE__ */ n.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: l, className: x, children: [
1992
1992
  /* @__PURE__ */ n.jsxs(ye.Select, { size: c, value: t ?? "", onChange: (j) => {
1993
1993
  var y;
1994
- if (!a)
1994
+ if (!s)
1995
1995
  return;
1996
1996
  const f = (y = j.target) == null ? void 0 : y.value;
1997
- i && a(f ? parseInt(f, 10) : null), a(f || null);
1997
+ i && s(f ? parseInt(f, 10) : null), s(f || null);
1998
1998
  }, className: x ?? "", hidden: l, disabled: u ?? !1, children: [
1999
1999
  h && !(t == null || t === "") ? void 0 : /* @__PURE__ */ n.jsx("option", { value: "" }),
2000
2000
  w == null ? void 0 : w.map((j) => /* @__PURE__ */ n.jsx("option", { value: j.id ?? "", children: j.name }, j.id))
2001
2001
  ] }),
2002
- d && t && a && !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, {}) }) })
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: a, texts: s, isLoading: o, value: i, onSelect: c, label: l, withoutLabel: u, size: d, dropdownItemsNameWidth: m, additionalColumns: p, hidden: x, disabled: h, displayIdAsName: g, CustomOnChangeComponent: v, className: w, archiveColumn: j }) => {
2005
- var D;
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: p, hidden: x, disabled: h, displayIdAsName: g, CustomOnChangeComponent: v, className: w, archiveColumn: j }) => {
2006
2005
  const [f, y] = O(!1), _ = S((C) => {
2007
2006
  c && c(C);
2008
- }, [c]), $ = S((C) => {
2007
+ }, [c]), D = S((C) => {
2009
2008
  y(!1), _(C);
2010
- }, [_]), E = ne(null), I = r !== void 0, F = I && i !== null;
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()) ?? "";
2012
+ }, [i, g]);
2011
2013
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { withoutLabel: u, label: l ?? "", hidden: x, inputContainerClassName: b({ "luminus-dropdown-select-open": f }), className: w, children: [
2012
- /* @__PURE__ */ n.jsxs(ma, { currentSelection: i, selectedItemNavigateTo: r, children: [
2014
+ /* @__PURE__ */ n.jsxs(ms, { currentSelection: i, selectedItemNavigateTo: r, children: [
2013
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 }),
2014
2016
  /* @__PURE__ */ n.jsxs(
2015
2017
  ye.Select,
2016
2018
  {
2017
- ref: E,
2019
+ ref: $,
2018
2020
  size: d,
2019
2021
  value: (i == null ? void 0 : i.id) ?? "",
2020
2022
  onMouseDown: (C) => {
@@ -2030,10 +2032,7 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
2030
2032
  hidden: x,
2031
2033
  children: [
2032
2034
  /* @__PURE__ */ n.jsx("option", { value: "" }),
2033
- i && /* @__PURE__ */ n.jsxs("option", { value: i.id ?? void 0, children: [
2034
- g || i.name && i.name.length > 0 ? i.name : i.id,
2035
- i.name && ((D = i.name) == null ? void 0 : D.length) > 0 ? i.name : i.id
2036
- ] })
2035
+ i && /* @__PURE__ */ n.jsx("option", { value: i.id ?? void 0, children: E })
2037
2036
  ]
2038
2037
  }
2039
2038
  ),
@@ -2044,9 +2043,9 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
2044
2043
  v ?? null
2045
2044
  ] }) : null
2046
2045
  ] }),
2047
- E.current && /* @__PURE__ */ n.jsx(wn, { show: f, onCancel: () => y(!1), items: t, currentSelection: i, onSelectionChange: $, onSearchQueryChange: a, texts: s, itemsNameWidth: m, additionalColumns: p, isLoading: o, disabled: h, inputRef: E, archiveColumn: j })
2046
+ $.current && /* @__PURE__ */ n.jsx(wn, { show: f, onCancel: () => y(!1), items: t, currentSelection: i, onSelectionChange: D, onSearchQueryChange: s, texts: a, itemsNameWidth: m, additionalColumns: p, isLoading: o, disabled: h, inputRef: $, archiveColumn: j, displayIdAsName: g })
2048
2047
  ] }) });
2049
- }, jd = ({ InputContainer: e = tt, value: t, onChange: r, label: a, size: s, showClearIcon: o, clearValue: i, hidden: c, disabled: l, rows: u, withoutLabel: d, debounceMs: m, className: p }) => {
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: p }) => {
2050
2049
  const x = S(() => {
2051
2050
  if (!r)
2052
2051
  return;
@@ -2068,50 +2067,50 @@ const el = "_lightbox_14acg_1", tl = "_show_14acg_16", nl = "_header_14acg_20",
2068
2067
  }, [m, w]);
2069
2068
  return L(() => {
2070
2069
  v(t === null ? "" : t.toString());
2071
- }, [t]), /* @__PURE__ */ n.jsxs(e, { label: a ?? "", hidden: c, withoutLabel: d, className: p, isForTextAreaInput: !0, children: [
2072
- /* @__PURE__ */ n.jsx(ye.Control, { as: "textarea", size: s, value: m ? g : t ?? "", onChange: j, hidden: c, disabled: l, rows: u ?? 2, className: "w-100" }),
2070
+ }, [t]), /* @__PURE__ */ n.jsxs(e, { label: s ?? "", hidden: c, withoutLabel: d, className: p, isForTextAreaInput: !0, children: [
2071
+ /* @__PURE__ */ n.jsx(ye.Control, { as: "textarea", size: a, value: m ? g : t ?? "", onChange: j, hidden: c, disabled: l, rows: u ?? 2, className: "w-100" }),
2073
2072
  o && t && r && !l && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(re, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ n.jsx(Te, {}) }) })
2074
2073
  ] });
2075
- }, yd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, label: s, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: p, step: x, stepperStep: h = 1, min: g, max: v }) => {
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: p, step: x, stepperStep: h = 1, min: g, max: v }) => {
2076
2075
  const w = S(() => {
2077
2076
  if (!r)
2078
2077
  return;
2079
- const E = m ?? null;
2080
- r(E ? Number(E) : null);
2081
- }, [m, r]), j = ne(null), [f, y] = O((t == null ? void 0 : t.toString()) ?? ""), _ = S((E) => {
2082
- const I = E;
2078
+ const $ = m ?? null;
2079
+ r($ ? Number($) : null);
2080
+ }, [m, r]), j = ne(null), [f, y] = O((t == null ? void 0 : t.toString()) ?? ""), _ = S(($) => {
2081
+ const I = $;
2083
2082
  r && r(I == null || I === "" ? null : gt(Number(I), g, v));
2084
- }, [v, g, r]), $ = S((E) => {
2083
+ }, [v, g, r]), D = S(($) => {
2085
2084
  var F;
2086
- const I = (F = E.target) == null ? void 0 : F.value;
2087
- if (!a) {
2085
+ const I = (F = $.target) == null ? void 0 : F.value;
2086
+ if (!s) {
2088
2087
  _(I);
2089
2088
  return;
2090
2089
  }
2091
2090
  y(gt(Number(I), g, v).toString()), j.current !== null && window.clearTimeout(j.current), j.current = window.setTimeout(() => {
2092
2091
  _(I);
2093
- }, a);
2094
- }, [a, _, v, g]);
2092
+ }, s);
2093
+ }, [s, _, v, g]);
2095
2094
  return L(() => {
2096
2095
  y(t === null ? "" : gt(t, g, v).toString());
2097
- }, [v, g, t]), /* @__PURE__ */ n.jsx(e, { withoutLabel: o, label: s ?? "", hidden: l, className: p, children: /* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
2098
- /* @__PURE__ */ n.jsx(ye.Control, { type: "number", placeholder: i ?? s, size: c, value: a ? f : t ?? "", onChange: $, className: `luminus-numeric-stepper ${p ?? ""}`, hidden: l, disabled: u ?? !1, step: x }),
2099
- /* @__PURE__ */ n.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ n.jsx(re, { size: "sm", onClick: (E) => {
2100
- E.preventDefault(), E.stopPropagation(), _(((t ?? 0) - h).toString());
2096
+ }, [v, g, t]), /* @__PURE__ */ n.jsx(e, { withoutLabel: o, label: a ?? "", hidden: l, className: p, 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 ${p ?? ""}`, hidden: l, disabled: u ?? !1, step: x }),
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());
2101
2100
  }, children: /* @__PURE__ */ n.jsx(Nr, {}) }) }),
2102
- /* @__PURE__ */ n.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ n.jsx(re, { size: "sm", onClick: (E) => {
2103
- E.preventDefault(), E.stopPropagation(), _(((t ?? 0) + h).toString());
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());
2104
2103
  }, children: /* @__PURE__ */ n.jsx(Sr, {}) }) }),
2105
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, {}) }) })
2106
2105
  ] }) });
2107
2106
  };
2108
- function ga(e, t) {
2107
+ function gs(e, t) {
2109
2108
  var r = {};
2110
- for (var a in e)
2111
- Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
2109
+ for (var s in e)
2110
+ Object.prototype.hasOwnProperty.call(e, s) && t.indexOf(s) < 0 && (r[s] = e[s]);
2112
2111
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
2113
- for (var s = 0, a = Object.getOwnPropertySymbols(e); s < a.length; s++)
2114
- t.indexOf(a[s]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[s]) && (r[a[s]] = e[a[s]]);
2112
+ for (var a = 0, s = Object.getOwnPropertySymbols(e); a < s.length; a++)
2113
+ t.indexOf(s[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, s[a]) && (r[s[a]] = e[s[a]]);
2115
2114
  return r;
2116
2115
  }
2117
2116
  var yt;
@@ -2123,10 +2122,10 @@ function Pe() {
2123
2122
  function Fl(e) {
2124
2123
  var t, r = void 0;
2125
2124
  return function() {
2126
- for (var a = [], s = arguments.length; s--; ) a[s] = arguments[s];
2127
- return t && a.length === t.length && a.every(function(o, i) {
2125
+ for (var s = [], a = arguments.length; a--; ) s[a] = arguments[a];
2126
+ return t && s.length === t.length && s.every(function(o, i) {
2128
2127
  return o === t[i];
2129
- }) || (t = a, r = e.apply(void 0, a)), r;
2128
+ }) || (t = s, r = e.apply(void 0, s)), r;
2130
2129
  };
2131
2130
  }
2132
2131
  function wt(e) {
@@ -2138,10 +2137,10 @@ function it(e) {
2138
2137
  function Ol(e) {
2139
2138
  return typeof e == "number" && isNaN(e);
2140
2139
  }
2141
- function pa(e) {
2140
+ function ps(e) {
2142
2141
  return it(e) || Ol(e) || typeof e == "number" && !isFinite(e);
2143
2142
  }
2144
- function xa(e) {
2143
+ function xs(e) {
2145
2144
  return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
2146
2145
  }
2147
2146
  function Tl(e) {
@@ -2156,28 +2155,28 @@ function Tl(e) {
2156
2155
  }
2157
2156
  }
2158
2157
  function Rl(e, t, r) {
2159
- var a = Tl(r), s = e.search(/[1-9]/);
2160
- return s = s === -1 ? e.length : s, e.substring(0, s) + e.substring(s, e.length).replace(a, "$1" + t);
2158
+ var s = Tl(r), a = e.search(/[1-9]/);
2159
+ return a = a === -1 ? e.length : a, e.substring(0, a) + e.substring(a, e.length).replace(s, "$1" + t);
2161
2160
  }
2162
2161
  function Ll(e) {
2163
2162
  var t = ne(e);
2164
2163
  t.current = e;
2165
2164
  var r = ne(function() {
2166
- for (var a = [], s = arguments.length; s--; ) a[s] = arguments[s];
2167
- return t.current.apply(t, a);
2165
+ for (var s = [], a = arguments.length; a--; ) s[a] = arguments[a];
2166
+ return t.current.apply(t, s);
2168
2167
  });
2169
2168
  return r.current;
2170
2169
  }
2171
2170
  function _n(e, t) {
2172
2171
  t === void 0 && (t = !0);
2173
- var r = e[0] === "-", a = r && t;
2172
+ var r = e[0] === "-", s = r && t;
2174
2173
  e = e.replace("-", "");
2175
- var s = e.split("."), o = s[0], i = s[1] || "";
2174
+ var a = e.split("."), o = a[0], i = a[1] || "";
2176
2175
  return {
2177
2176
  beforeDecimal: o,
2178
2177
  afterDecimal: i,
2179
2178
  hasNegation: r,
2180
- addNegation: a
2179
+ addNegation: s
2181
2180
  };
2182
2181
  }
2183
2182
  function Al(e) {
@@ -2185,35 +2184,35 @@ function Al(e) {
2185
2184
  return e;
2186
2185
  var t = e[0] === "-";
2187
2186
  t && (e = e.substring(1, e.length));
2188
- var r = e.split("."), a = r[0].replace(/^0+/, "") || "0", s = r[1] || "";
2189
- return (t ? "-" : "") + a + (s ? "." + s : "");
2187
+ var r = e.split("."), s = r[0].replace(/^0+/, "") || "0", a = r[1] || "";
2188
+ return (t ? "-" : "") + s + (a ? "." + a : "");
2190
2189
  }
2191
- function va(e, t, r) {
2192
- for (var a = "", s = r ? "0" : "", o = 0; o <= t - 1; o++)
2193
- a += e[o] || s;
2194
- return a;
2190
+ function vs(e, t, r) {
2191
+ for (var s = "", a = r ? "0" : "", o = 0; o <= t - 1; o++)
2192
+ s += e[o] || a;
2193
+ return s;
2195
2194
  }
2196
2195
  function qn(e, t) {
2197
2196
  return Array(t + 1).join(e);
2198
2197
  }
2199
- function ja(e) {
2198
+ function js(e) {
2200
2199
  var t = e + "", r = t[0] === "-" ? "-" : "";
2201
2200
  r && (t = t.substring(1));
2202
- var a = t.split(/[eE]/g), s = a[0], o = a[1];
2201
+ var s = t.split(/[eE]/g), a = s[0], o = s[1];
2203
2202
  if (o = Number(o), !o)
2204
- return r + s;
2205
- s = s.replace(".", "");
2206
- var i = 1 + o, c = s.length;
2207
- return i < 0 ? s = "0." + qn("0", Math.abs(i)) + s : i >= c ? s = s + qn("0", i - c) : s = (s.substring(0, i) || "0") + "." + s.substring(i), r + s;
2203
+ return r + a;
2204
+ a = a.replace(".", "");
2205
+ var i = 1 + o, c = a.length;
2206
+ return i < 0 ? a = "0." + qn("0", Math.abs(i)) + a : i >= c ? a = a + qn("0", i - c) : a = (a.substring(0, i) || "0") + "." + a.substring(i), r + a;
2208
2207
  }
2209
2208
  function Qn(e, t, r) {
2210
2209
  if (["", "-"].indexOf(e) !== -1)
2211
2210
  return e;
2212
- var a = (e.indexOf(".") !== -1 || r) && t, s = _n(e), o = s.beforeDecimal, i = s.afterDecimal, c = s.hasNegation, l = parseFloat("0." + (i || "0")), u = i.length <= t ? "0." + i : l.toFixed(t), d = u.split("."), m = o;
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;
2213
2212
  o && Number(d[0]) && (m = o.split("").reverse().reduce(function(g, v, w) {
2214
2213
  return g.length > w ? (Number(g[0]) + Number(v)).toString() + g.substring(1, g.length) : v + g;
2215
2214
  }, d[0]));
2216
- var p = va(d[1] || "", t, r), x = c ? "-" : "", h = a ? "." : "";
2215
+ var p = vs(d[1] || "", t, r), x = c ? "-" : "", h = s ? "." : "";
2217
2216
  return "" + x + m + h + p;
2218
2217
  }
2219
2218
  function Ze(e, t) {
@@ -2225,14 +2224,14 @@ function Ze(e, t) {
2225
2224
  return e.selectionStart || e.selectionStart === 0 ? (e.focus(), e.setSelectionRange(t, t), !0) : (e.focus(), !1);
2226
2225
  }
2227
2226
  }
2228
- var ya = Fl(function(e, t) {
2229
- for (var r = 0, a = 0, s = e.length, o = t.length; e[r] === t[r] && r < s; )
2227
+ var ys = Fl(function(e, t) {
2228
+ for (var r = 0, s = 0, a = e.length, o = t.length; e[r] === t[r] && r < a; )
2230
2229
  r++;
2231
- for (; e[s - 1 - a] === t[o - 1 - a] && o - a > r && s - a > r; )
2232
- a++;
2230
+ for (; e[a - 1 - s] === t[o - 1 - s] && o - s > r && a - s > r; )
2231
+ s++;
2233
2232
  return {
2234
- from: { start: r, end: s - a },
2235
- to: { start: r, end: o - a }
2233
+ from: { start: r, end: a - s },
2234
+ to: { start: r, end: o - s }
2236
2235
  };
2237
2236
  }), Ml = function(e, t) {
2238
2237
  var r = Math.min(e.selectionStart, t);
@@ -2264,15 +2263,15 @@ function Pl(e) {
2264
2263
  };
2265
2264
  }
2266
2265
  function zl(e) {
2267
- var t = e.currentValue, r = e.formattedValue, a = e.currentValueIndex, s = e.formattedValueIndex;
2268
- return t[a] === r[s];
2266
+ var t = e.currentValue, r = e.formattedValue, s = e.currentValueIndex, a = e.formattedValueIndex;
2267
+ return t[s] === r[a];
2269
2268
  }
2270
- function Hl(e, t, r, a, s, o, i) {
2269
+ function Hl(e, t, r, s, a, o, i) {
2271
2270
  i === void 0 && (i = zl);
2272
- var c = s.findIndex(function(y) {
2271
+ var c = a.findIndex(function(y) {
2273
2272
  return y;
2274
2273
  }), l = e.slice(0, c);
2275
- !t && !r.startsWith(l) && (t = l, r = l + r, a = a + l.length);
2274
+ !t && !r.startsWith(l) && (t = l, r = l + r, s = s + l.length);
2276
2275
  for (var u = r.length, d = e.length, m = {}, p = new Array(u), x = 0; x < u; x++) {
2277
2276
  p[x] = -1;
2278
2277
  for (var h = 0, g = d; h < g; h++) {
@@ -2289,39 +2288,39 @@ function Hl(e, t, r, a, s, o, i) {
2289
2288
  }
2290
2289
  }
2291
2290
  }
2292
- for (var w = a; w < u && (p[w] === -1 || !o(r[w])); )
2291
+ for (var w = s; w < u && (p[w] === -1 || !o(r[w])); )
2293
2292
  w++;
2294
2293
  var j = w === u || p[w] === -1 ? d : p[w];
2295
- for (w = a - 1; w > 0 && p[w] === -1; )
2294
+ for (w = s - 1; w > 0 && p[w] === -1; )
2296
2295
  w--;
2297
2296
  var f = w === -1 || p[w] === -1 ? 0 : p[w] + 1;
2298
- return f > j ? j : a - f < j - a ? f : j;
2297
+ return f > j ? j : s - f < j - s ? f : j;
2299
2298
  }
2300
- function Zn(e, t, r, a) {
2301
- var s = e.length;
2302
- if (t = Bl(t, 0, s), a === "left") {
2299
+ function Zn(e, t, r, s) {
2300
+ var a = e.length;
2301
+ if (t = Bl(t, 0, a), s === "left") {
2303
2302
  for (; t >= 0 && !r[t]; )
2304
2303
  t--;
2305
2304
  t === -1 && (t = r.indexOf(!0));
2306
2305
  } else {
2307
- for (; t <= s && !r[t]; )
2306
+ for (; t <= a && !r[t]; )
2308
2307
  t++;
2309
- t > s && (t = r.lastIndexOf(!0));
2308
+ t > a && (t = r.lastIndexOf(!0));
2310
2309
  }
2311
- return t === -1 && (t = s), t;
2310
+ return t === -1 && (t = a), t;
2312
2311
  }
2313
2312
  function Wl(e) {
2314
2313
  for (var t = Array.from({ length: e.length + 1 }).map(function() {
2315
2314
  return !0;
2316
- }), r = 0, a = t.length; r < a; r++)
2315
+ }), r = 0, s = t.length; r < s; r++)
2317
2316
  t[r] = !!(wt(e[r]) || wt(e[r - 1]));
2318
2317
  return t;
2319
2318
  }
2320
- function wa(e, t, r, a, s, o) {
2319
+ function ws(e, t, r, s, a, o) {
2321
2320
  o === void 0 && (o = Pe);
2322
2321
  var i = Ll(function(h, g) {
2323
2322
  var v, w;
2324
- return pa(h) ? (w = "", v = "") : typeof h == "number" || g ? (w = typeof h == "number" ? ja(h) : h, v = a(w)) : (w = s(h, void 0), v = a(w)), { formattedValue: v, numAsString: 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 };
2325
2324
  }), c = O(function() {
2326
2325
  return i(it(e) ? t : e, r);
2327
2326
  }), l = c[0], u = c[1], d = function(h, g) {
@@ -2347,7 +2346,7 @@ function Gl(e) {
2347
2346
  t === void 0 && (t = "text");
2348
2347
  var r = e.displayType;
2349
2348
  r === void 0 && (r = "input");
2350
- var a = e.customInput, s = e.renderText, o = e.getInputRef, i = e.format;
2349
+ var s = e.customInput, a = e.renderText, o = e.getInputRef, i = e.format;
2351
2350
  i === void 0 && (i = Yl);
2352
2351
  var c = e.removeFormatting;
2353
2352
  c === void 0 && (c = Ul);
@@ -2365,8 +2364,8 @@ function Gl(e) {
2365
2364
  j === void 0 && (j = Wl);
2366
2365
  var f = e.isValidInputCharacter;
2367
2366
  f === void 0 && (f = wt);
2368
- var y = e.isCharacterSame, _ = ga(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), $ = wa(w, l, !!u, i, c, d), E = $[0], I = E.formattedValue, F = E.numAsString, D = $[1], C = ne(), N = ne({ formattedValue: I, numAsString: F }), P = function(T, M) {
2369
- N.current = { formattedValue: T.formattedValue, numAsString: T.value }, D(T, M);
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);
2370
2369
  }, U = O(!1), Q = U[0], A = U[1], R = ne(null), V = ne({
2371
2370
  setCaretTimeout: null,
2372
2371
  focusTimeout: null
@@ -2395,10 +2394,10 @@ function Gl(e) {
2395
2394
  }, k = function(T) {
2396
2395
  var M = T.formattedValue;
2397
2396
  M === void 0 && (M = "");
2398
- var q = T.input, ce = T.source, Ne = T.event, de = T.numAsString, se;
2397
+ var q = T.input, ce = T.source, Ne = T.event, de = T.numAsString, ae;
2399
2398
  if (q) {
2400
2399
  var ke = T.inputValue || q.value, Ee = qt(q);
2401
- q.value = M, se = B(ke, M, Ee), se !== void 0 && K(q, se, M);
2400
+ q.value = M, ae = B(ke, M, Ee), ae !== void 0 && K(q, ae, M);
2402
2401
  }
2403
2402
  M !== I && P(G(M, de), { event: Ne, source: ce });
2404
2403
  };
@@ -2409,7 +2408,7 @@ function Gl(e) {
2409
2408
  source: yt.props
2410
2409
  });
2411
2410
  }, [I, F]);
2412
- var H = R.current ? qt(R.current) : void 0, le = typeof window < "u" ? Es : L;
2411
+ var H = R.current ? qt(R.current) : void 0, le = typeof window < "u" ? Ea : L;
2413
2412
  le(function() {
2414
2413
  var T = R.current;
2415
2414
  if (I !== N.current.formattedValue && T) {
@@ -2418,14 +2417,14 @@ function Gl(e) {
2418
2417
  }
2419
2418
  }, [I]);
2420
2419
  var fe = function(T, M, q) {
2421
- var ce = M.target, Ne = C.current ? Ml(C.current, ce.selectionEnd) : ya(I, T), de = Object.assign(Object.assign({}, Ne), { lastValue: I }), se = c(T, de), ke = W(se);
2422
- if (se = c(ke, void 0), m && !m(G(ke, se))) {
2423
- var Ee = M.target, z = qt(Ee), ae = B(T, I, z);
2424
- return Ee.value = I, K(Ee, ae, I), !1;
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);
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;
2425
2424
  }
2426
2425
  return k({
2427
2426
  formattedValue: ke,
2428
- numAsString: se,
2427
+ numAsString: ae,
2429
2428
  inputValue: T,
2430
2429
  event: M,
2431
2430
  source: q,
@@ -2441,27 +2440,27 @@ function Gl(e) {
2441
2440
  }, ve = function(T) {
2442
2441
  var M = T.target, q = T.key, ce = M.selectionStart, Ne = M.selectionEnd, de = M.value;
2443
2442
  de === void 0 && (de = "");
2444
- var se;
2445
- q === "ArrowLeft" || q === "Backspace" ? se = Math.max(ce - 1, 0) : q === "ArrowRight" ? se = Math.min(ce + 1, de.length) : q === "Delete" && (se = ce);
2443
+ var ae;
2444
+ q === "ArrowLeft" || q === "Backspace" ? ae = Math.max(ce - 1, 0) : q === "ArrowRight" ? ae = Math.min(ce + 1, de.length) : q === "Delete" && (ae = ce);
2446
2445
  var ke = 0;
2447
2446
  q === "Delete" && ce === Ne && (ke = 1);
2448
2447
  var Ee = q === "ArrowLeft" || q === "ArrowRight";
2449
- if (se === void 0 || ce !== Ne && !Ee) {
2448
+ if (ae === void 0 || ce !== Ne && !Ee) {
2450
2449
  x(T), Ce(M, ke);
2451
2450
  return;
2452
2451
  }
2453
- var z = se;
2452
+ var z = ae;
2454
2453
  if (Ee) {
2455
- var ae = q === "ArrowLeft" ? "left" : "right";
2456
- z = te(de, se, ae), z !== se && T.preventDefault();
2457
- } else q === "Delete" && !f(de[se]) ? z = te(de, se, "right") : q === "Backspace" && !f(de[se]) && (z = te(de, se, "left"));
2458
- z !== se && K(M, z, de), x(T), Ce(M, ke);
2454
+ var se = q === "ArrowLeft" ? "left" : "right";
2455
+ z = te(de, ae, se), z !== ae && T.preventDefault();
2456
+ } else q === "Delete" && !f(de[ae]) ? z = te(de, ae, "right") : q === "Backspace" && !f(de[ae]) && (z = te(de, ae, "left"));
2457
+ z !== ae && K(M, z, de), x(T), Ce(M, ke);
2459
2458
  }, $e = function(T) {
2460
2459
  var M = T.target, q = function() {
2461
2460
  var ce = M.selectionStart, Ne = M.selectionEnd, de = M.value;
2462
2461
  if (de === void 0 && (de = ""), ce === Ne) {
2463
- var se = te(de, ce);
2464
- se !== ce && K(M, se, de);
2462
+ var ae = te(de, ce);
2463
+ ae !== ce && K(M, ae, de);
2465
2464
  }
2466
2465
  };
2467
2466
  q(), requestAnimationFrame(function() {
@@ -2473,8 +2472,8 @@ function Gl(e) {
2473
2472
  R.current = M, V.current.focusTimeout = setTimeout(function() {
2474
2473
  var ce = M.selectionStart, Ne = M.selectionEnd, de = M.value;
2475
2474
  de === void 0 && (de = "");
2476
- var se = te(de, ce);
2477
- se !== ce && !(ce === 0 && Ne === de.length) && K(M, se, de), g(Object.assign(Object.assign({}, T), { currentTarget: q }));
2475
+ var ae = te(de, ce);
2476
+ ae !== ce && !(ce === 0 && Ne === de.length) && K(M, ae, de), g(Object.assign(Object.assign({}, T), { currentTarget: q }));
2478
2477
  }, 0);
2479
2478
  }, Y = function(T) {
2480
2479
  R.current = null, clearTimeout(V.current.focusTimeout), clearTimeout(V.current.setCaretTimeout), v(T);
@@ -2488,49 +2487,49 @@ function Gl(e) {
2488
2487
  onBlur: Y
2489
2488
  });
2490
2489
  if (r === "text")
2491
- return s ? Se.createElement(Se.Fragment, null, s(I, _) || null) : Se.createElement("span", Object.assign({}, _, { ref: o }), I);
2492
- if (a) {
2493
- var rt = a;
2490
+ return a ? Se.createElement(Se.Fragment, null, a(I, _) || null) : Se.createElement("span", Object.assign({}, _, { ref: o }), I);
2491
+ if (s) {
2492
+ var rt = s;
2494
2493
  return Se.createElement(rt, Object.assign({}, be, { ref: o }));
2495
2494
  }
2496
2495
  return Se.createElement("input", Object.assign({}, be, { ref: o }));
2497
2496
  }
2498
2497
  function Jn(e, t) {
2499
- var r = t.decimalScale, a = t.fixedDecimalScale, s = t.prefix;
2500
- s === void 0 && (s = "");
2498
+ var r = t.decimalScale, s = t.fixedDecimalScale, a = t.prefix;
2499
+ a === void 0 && (a = "");
2501
2500
  var o = t.suffix;
2502
2501
  o === void 0 && (o = "");
2503
2502
  var i = t.allowNegative, c = t.thousandsGroupStyle;
2504
2503
  if (c === void 0 && (c = "thousand"), e === "" || e === "-")
2505
2504
  return e;
2506
- var l = Bt(t), u = l.thousandSeparator, d = l.decimalSeparator, m = r !== 0 && e.indexOf(".") !== -1 || r && a, p = _n(e, i), x = p.beforeDecimal, h = p.afterDecimal, g = p.addNegation;
2507
- return r !== void 0 && (h = va(h, r, !!a)), u && (x = Rl(x, u, c)), s && (x = s + x), o && (h = h + o), g && (x = "-" + x), e = x + (m && d || "") + h, e;
2505
+ var l = Bt(t), u = l.thousandSeparator, d = l.decimalSeparator, m = r !== 0 && e.indexOf(".") !== -1 || r && s, p = _n(e, i), x = p.beforeDecimal, h = p.afterDecimal, g = p.addNegation;
2506
+ return r !== void 0 && (h = vs(h, r, !!s)), u && (x = Rl(x, u, c)), a && (x = a + x), o && (h = h + o), g && (x = "-" + x), e = x + (m && d || "") + h, e;
2508
2507
  }
2509
2508
  function Bt(e) {
2510
2509
  var t = e.decimalSeparator;
2511
2510
  t === void 0 && (t = ".");
2512
- var r = e.thousandSeparator, a = e.allowedDecimalSeparators;
2513
- return r === !0 && (r = ","), a || (a = [t, "."]), {
2511
+ var r = e.thousandSeparator, s = e.allowedDecimalSeparators;
2512
+ return r === !0 && (r = ","), s || (s = [t, "."]), {
2514
2513
  decimalSeparator: t,
2515
2514
  thousandSeparator: r,
2516
- allowedDecimalSeparators: a
2515
+ allowedDecimalSeparators: s
2517
2516
  };
2518
2517
  }
2519
2518
  function Kl(e, t) {
2520
2519
  e === void 0 && (e = "");
2521
- var r = new RegExp("(-)"), a = new RegExp("(-)(.)*(-)"), s = r.test(e), o = a.test(e);
2522
- return e = e.replace(/-/g, ""), s && !o && t && (e = "-" + e), e;
2520
+ var r = new RegExp("(-)"), s = new RegExp("(-)(.)*(-)"), a = r.test(e), o = s.test(e);
2521
+ return e = e.replace(/-/g, ""), a && !o && t && (e = "-" + e), e;
2523
2522
  }
2524
2523
  function ql(e, t) {
2525
- return new RegExp("(^-)|[0-9]|" + xa(e), "g");
2524
+ return new RegExp("(^-)|[0-9]|" + xs(e), "g");
2526
2525
  }
2527
2526
  function Ql(e, t, r) {
2528
2527
  return e === "" ? !0 : !(t != null && t.match(/\d/)) && !(r != null && r.match(/\d/)) && typeof e == "string" && !isNaN(Number(e));
2529
2528
  }
2530
2529
  function Zl(e, t, r) {
2531
- var a;
2530
+ var s;
2532
2531
  t === void 0 && (t = Pl(e));
2533
- var s = r.allowNegative, o = r.prefix;
2532
+ var a = r.allowNegative, o = r.prefix;
2534
2533
  o === void 0 && (o = "");
2535
2534
  var i = r.suffix;
2536
2535
  i === void 0 && (i = "");
@@ -2547,80 +2546,80 @@ function Zl(e, t, r) {
2547
2546
  var te = G ? 1 : 0;
2548
2547
  return K && (te = 2), te && (R = R.substring(te), V -= te, W -= te), { value: R, start: V, end: W, hasNegation: G };
2549
2548
  }, j = w(e, d, m), f = j.hasNegation;
2550
- a = j, e = a.value, d = a.start, m = a.end;
2551
- var y = w(t.lastValue, l.start, l.end), _ = y.start, $ = y.end, E = y.value, I = e.substring(d, m);
2552
- e.length && E.length && (_ > E.length - i.length || $ < o.length) && !(I && i.startsWith(I)) && (e = E);
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 = $);
2553
2552
  var F = 0;
2554
2553
  e.startsWith(o) ? F += o.length : d < o.length && (F = d), e = e.substring(F), m -= F;
2555
- var D = e.length, C = e.length - i.length;
2556
- e.endsWith(i) ? D = C : (m > C || m > e.length - i.length) && (D = m), e = e.substring(0, D), e = Kl(f ? "-" + e : e, s), e = (e.match(ql(h)) || []).join("");
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("");
2557
2556
  var N = e.indexOf(h);
2558
- e = e.replace(new RegExp(xa(h), "g"), function(R, V) {
2557
+ e = e.replace(new RegExp(xs(h), "g"), function(R, V) {
2559
2558
  return V === N ? "." : "";
2560
2559
  });
2561
- var P = _n(e, s), U = P.beforeDecimal, Q = P.afterDecimal, A = P.addNegation;
2560
+ var P = _n(e, a), U = P.beforeDecimal, Q = P.afterDecimal, A = P.addNegation;
2562
2561
  return u.end - u.start < l.end - l.start && U === "" && g && !parseFloat(Q) && (e = A ? "-" : ""), e;
2563
2562
  }
2564
2563
  function Jl(e, t) {
2565
2564
  var r = t.prefix;
2566
2565
  r === void 0 && (r = "");
2567
- var a = t.suffix;
2568
- a === void 0 && (a = "");
2569
- var s = Array.from({ length: e.length + 1 }).map(function() {
2566
+ var s = t.suffix;
2567
+ s === void 0 && (s = "");
2568
+ var a = Array.from({ length: e.length + 1 }).map(function() {
2570
2569
  return !0;
2571
2570
  }), o = e[0] === "-";
2572
- s.fill(!1, 0, r.length + (o ? 1 : 0));
2571
+ a.fill(!1, 0, r.length + (o ? 1 : 0));
2573
2572
  var i = e.length;
2574
- return s.fill(!1, i - a.length + 1, i + 1), s;
2573
+ return a.fill(!1, i - s.length + 1, i + 1), a;
2575
2574
  }
2576
2575
  function Xl(e) {
2577
- var t = Bt(e), r = t.thousandSeparator, a = t.decimalSeparator, s = e.prefix;
2578
- s === void 0 && (s = "");
2576
+ var t = Bt(e), r = t.thousandSeparator, s = t.decimalSeparator, a = e.prefix;
2577
+ a === void 0 && (a = "");
2579
2578
  var o = e.allowNegative;
2580
- if (o === void 0 && (o = !0), r === a)
2579
+ if (o === void 0 && (o = !0), r === s)
2581
2580
  throw new Error(`
2582
2581
  Decimal separator can't be same as thousand separator.
2583
2582
  thousandSeparator: ` + r + ` (thousandSeparator = {true} is same as thousandSeparator = ",")
2584
- decimalSeparator: ` + a + ` (default value for decimalSeparator is .)
2583
+ decimalSeparator: ` + s + ` (default value for decimalSeparator is .)
2585
2584
  `);
2586
- return s.startsWith("-") && o && (console.error(`
2585
+ return a.startsWith("-") && o && (console.error(`
2587
2586
  Prefix can't start with '-' when allowNegative is true.
2588
- prefix: ` + s + `
2587
+ prefix: ` + a + `
2589
2588
  allowNegative: ` + o + `
2590
2589
  `), o = !1), Object.assign(Object.assign({}, e), { allowNegative: o });
2591
2590
  }
2592
2591
  function ec(e) {
2593
2592
  e = Xl(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
2594
- var t = e.suffix, r = e.allowNegative, a = e.allowLeadingZeros, s = e.onKeyDown;
2595
- s === void 0 && (s = Pe);
2593
+ var t = e.suffix, r = e.allowNegative, s = e.allowLeadingZeros, a = e.onKeyDown;
2594
+ a === void 0 && (a = Pe);
2596
2595
  var o = e.onBlur;
2597
2596
  o === void 0 && (o = Pe);
2598
2597
  var i = e.thousandSeparator, c = e.decimalScale, l = e.fixedDecimalScale, u = e.prefix;
2599
2598
  u === void 0 && (u = "");
2600
- var d = e.defaultValue, m = e.value, p = e.valueIsNumericString, x = e.onValueChange, h = ga(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, p = e.valueIsNumericString, x = 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) {
2601
2600
  return Jn(A, e);
2602
2601
  }, f = function(A, R) {
2603
2602
  return Zl(A, R, e);
2604
2603
  }, y = it(m) ? d : m, _ = p ?? Ql(y, u, t);
2605
2604
  it(m) ? it(d) || (_ = _ || typeof d == "number") : _ = _ || typeof m == "number";
2606
- var $ = function(A) {
2607
- return pa(A) ? A : (typeof A == "number" && (A = ja(A)), _ && typeof c == "number" ? Qn(A, c, !!l) : A);
2608
- }, E = wa($(m), $(d), !!_, j, f, x), I = E[0], F = I.numAsString, D = I.formattedValue, C = E[1], N = function(A) {
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, x), I = $[0], F = I.numAsString, E = I.formattedValue, C = $[1], N = function(A) {
2609
2608
  var R = A.target, V = A.key, W = R.selectionStart, G = R.selectionEnd, K = R.value;
2610
2609
  if (K === void 0 && (K = ""), (V === "Backspace" || V === "Delete") && G < u.length) {
2611
2610
  A.preventDefault();
2612
2611
  return;
2613
2612
  }
2614
2613
  if (W !== G) {
2615
- s(A);
2614
+ a(A);
2616
2615
  return;
2617
2616
  }
2618
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);
2619
2618
  var te = i === !0 ? "," : i;
2620
- V === "Backspace" && K[W - 1] === te && Ze(R, W - 1), V === "Delete" && K[W] === te && Ze(R, W + 1), s(A);
2619
+ V === "Backspace" && K[W - 1] === te && Ze(R, W - 1), V === "Delete" && K[W] === te && Ze(R, W + 1), a(A);
2621
2620
  }, P = function(A) {
2622
2621
  var R = F;
2623
- if (R.match(/\d/g) || (R = ""), a || (R = Al(R)), l && c && (R = Qn(R, c, l)), R !== F) {
2622
+ if (R.match(/\d/g) || (R = ""), s || (R = Al(R)), l && c && (R = Qn(R, c, l)), R !== F) {
2624
2623
  var V = Jn(R, e);
2625
2624
  C({
2626
2625
  formattedValue: V,
@@ -2635,11 +2634,11 @@ function ec(e) {
2635
2634
  }, U = function(A) {
2636
2635
  return A === v ? !0 : wt(A);
2637
2636
  }, Q = function(A) {
2638
- var R = A.currentValue, V = A.lastValue, W = A.formattedValue, G = A.currentValueIndex, K = A.formattedValueIndex, te = R[G], B = W[K], k = ya(V, R), H = k.to;
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;
2639
2638
  return G >= H.start && G < H.end && w && w.includes(te) && B === v ? !0 : te === B;
2640
2639
  };
2641
2640
  return Object.assign(Object.assign({}, h), {
2642
- value: D,
2641
+ value: E,
2643
2642
  valueIsNumericString: !1,
2644
2643
  isValidInputCharacter: U,
2645
2644
  isCharacterSame: Q,
@@ -2657,35 +2656,35 @@ function Nn(e) {
2657
2656
  var t = ec(e);
2658
2657
  return Se.createElement(Gl, Object.assign({}, t));
2659
2658
  }
2660
- const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, label: s, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: p, step: x, noSelectOnFocus: h, decimalScale: g, numberPrefix: v, numberSuffix: w, min: j, max: f }) => {
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: p, step: x, noSelectOnFocus: h, decimalScale: g, numberPrefix: v, numberSuffix: w, min: j, max: f }) => {
2661
2660
  const y = S(() => {
2662
2661
  if (!r)
2663
2662
  return;
2664
- const D = m ?? null;
2665
- r(D ? Number(D) : null);
2666
- }, [m, r]), _ = ne(null), [$, E] = O((t == null ? void 0 : t.toString()) ?? ""), I = S((D) => {
2667
- const C = D;
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;
2668
2667
  r && r(C == null || C === "" ? null : Number(C));
2669
- }, [r]), F = S((D) => {
2668
+ }, [r]), F = S((E) => {
2670
2669
  var N, P;
2671
- let C = parseFloat(((P = (N = D.target) == null ? void 0 : N.value) == null ? void 0 : P.replaceAll(" ", "")) ?? 0);
2672
- if (Number.isNaN(C) && (C = 0), !a) {
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) {
2673
2672
  I(C.toString());
2674
2673
  return;
2675
2674
  }
2676
- E(C.toString()), _.current !== null && window.clearTimeout(_.current), _.current = window.setTimeout(() => {
2675
+ $(C.toString()), _.current !== null && window.clearTimeout(_.current), _.current = window.setTimeout(() => {
2677
2676
  I(C.toString());
2678
- }, a);
2679
- }, [a, I]);
2677
+ }, s);
2678
+ }, [s, I]);
2680
2679
  return L(() => {
2681
- E(t === null ? "" : t.toString());
2680
+ $(t === null ? "" : t.toString());
2682
2681
  }, [f, j, t]), L(() => {
2683
- f !== void 0 && Number($) > f && E(f.toString()), j !== void 0 && Number($) < j && E(j.toString());
2684
- }, [$, f, j, E]), L(() => {
2682
+ f !== void 0 && Number(D) > f && $(f.toString()), j !== void 0 && Number(D) < j && $(j.toString());
2683
+ }, [D, f, j, $]), L(() => {
2685
2684
  !r || t === null || (f !== void 0 && t > f && r(f), j !== void 0 && t < j && r(j));
2686
- }, [t, f, j, r]), /* @__PURE__ */ n.jsxs(e, { withoutLabel: o, label: s ?? "", hidden: l, className: p, children: [
2687
- /* @__PURE__ */ n.jsx(Nn, { displayType: "input", thousandSeparator: " ", decimalScale: g, prefix: v, suffix: w, defaultValue: "", value: a ? $ : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? s, onFocus: (D) => {
2688
- !h && D.target.select();
2685
+ }, [t, f, j, r]), /* @__PURE__ */ n.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: l, className: p, 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();
2689
2688
  }, onChange: F, hidden: l, disabled: u, className: b("form-control text-end w-100", {
2690
2689
  [`form-control-${c}`]: c
2691
2690
  }), step: x, min: j, max: f }),
@@ -2697,22 +2696,22 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
2697
2696
  ["M", "month"],
2698
2697
  ["Y", "year"],
2699
2698
  ["C", "custom"]
2700
- ], tc = "_wrapper_qfqux_1", nc = "_lg_qfqux_7", rc = "_sm_qfqux_11", ac = "_md_qfqux_14", er = {
2699
+ ], tc = "_wrapper_qfqux_1", nc = "_lg_qfqux_7", rc = "_sm_qfqux_11", sc = "_md_qfqux_14", er = {
2701
2700
  wrapper: tc,
2702
2701
  lg: nc,
2703
2702
  sm: rc,
2704
- md: ac
2703
+ md: sc
2705
2704
  }, Ct = (e) => {
2706
2705
  const t = new Date(e), r = He(t.toISOString());
2707
2706
  t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1);
2708
- const a = He(t.toISOString());
2709
- return { from: r, to: a };
2707
+ const s = He(t.toISOString());
2708
+ return { from: r, to: s };
2710
2709
  }, pt = (e) => {
2711
2710
  const t = new Date(e), r = He(t.toISOString());
2712
2711
  t.setFullYear(t.getFullYear() + 1), t.setDate(t.getDate() - 1);
2713
- const a = He(t.toISOString());
2714
- return { from: r, to: a };
2715
- }, sc = (e, t) => {
2712
+ const s = He(t.toISOString());
2713
+ return { from: r, to: s };
2714
+ }, ac = (e, t) => {
2716
2715
  if (e === null || t === null)
2717
2716
  return "C";
2718
2717
  if (e === t)
@@ -2720,7 +2719,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
2720
2719
  const r = new Date(e);
2721
2720
  return Ct(r).to === t ? "M" : pt(r).to === t ? "Y" : (console.log(pt(r), t), "C");
2722
2721
  }, oc = (e, t, r) => {
2723
- const a = S((i, c) => {
2722
+ const s = S((i, c) => {
2724
2723
  if (e === "C") {
2725
2724
  r((l) => ({ ...l, [i]: c }));
2726
2725
  return;
@@ -2745,7 +2744,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
2745
2744
  t("C"), r((l) => ({ ...l, [i]: c }));
2746
2745
  break;
2747
2746
  }
2748
- }, [e, r, t]), s = S((i) => {
2747
+ }, [e, r, t]), a = S((i) => {
2749
2748
  r((c) => {
2750
2749
  if (c.from === null || c.to === null)
2751
2750
  return c;
@@ -2769,49 +2768,49 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
2769
2768
  i === "D" ? r((c) => ({ from: c.from, to: c.from })) : i === "M" ? r((c) => {
2770
2769
  if (c.from === null)
2771
2770
  return c;
2772
- const l = ps(c.from);
2771
+ const l = pa(c.from);
2773
2772
  return Ct(l);
2774
2773
  }) : i === "Y" && r((c) => {
2775
2774
  if (c.from === null)
2776
2775
  return c;
2777
- const l = xs(new Date(c.from).getFullYear());
2776
+ const l = xa(new Date(c.from).getFullYear());
2778
2777
  return pt(l);
2779
2778
  }), t(i);
2780
2779
  }, [r, t]);
2781
- return { setFromToProp: a, handleArrowClick: s, handleRangeChange: o };
2782
- }, bd = ({ fromtoState: [e, t], className: r, size: a }) => {
2783
- const { texts: { date: s }, ProjectIconComponent: o } = Z(pe), [i, c] = O("C"), { handleArrowClick: l, handleRangeChange: u, setFromToProp: d } = oc(i, c, t), m = ee(() => i === "C", [i]), p = ne(!0);
2780
+ return { setFromToProp: s, handleArrowClick: a, handleRangeChange: o };
2781
+ }, bd = ({ fromtoState: [e, t], className: r, size: s }) => {
2782
+ const { texts: { date: a }, ProjectIconComponent: o } = Z(pe), [i, c] = O("C"), { handleArrowClick: l, handleRangeChange: u, setFromToProp: d } = oc(i, c, t), m = ee(() => i === "C", [i]), p = ne(!0);
2784
2783
  return L(() => {
2785
2784
  if (p.current) {
2786
- const x = sc(e.from, e.to);
2785
+ const x = ac(e.from, e.to);
2787
2786
  c(x), p.current = !1;
2788
2787
  }
2789
- }, [e.from, e.to]), /* @__PURE__ */ n.jsxs("div", { className: b("d-inline-flex align-items-center gap-1", er.wrapper, er[a ?? "md"], r), children: [
2788
+ }, [e.from, e.to]), /* @__PURE__ */ n.jsxs("div", { className: b("d-inline-flex align-items-center gap-1", er.wrapper, er[s ?? "md"], r), children: [
2790
2789
  /* @__PURE__ */ n.jsx(re, { disabled: m, onClick: () => {
2791
2790
  l(-1);
2792
2791
  }, children: /* @__PURE__ */ n.jsx(o, { icon: "chevron-left" }) }),
2793
2792
  /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
2794
- /* @__PURE__ */ n.jsx(ot, { type: "date", value: e.from, onChange: (x) => d("from", x === null ? null : x.toString()), InputContainer: Oe, size: a }),
2795
- /* @__PURE__ */ n.jsx(mn, { toggle: /* @__PURE__ */ n.jsx(hn, { text: s[Xn.find((x) => x[0] === i)[1]].substring(0, 1), as: vs }), children: Xn.map((x) => /* @__PURE__ */ n.jsx(Je, { disabled: x[0] === i, className: b(x[0] === i ? "text-black-50" : ""), onClick: () => u(x[0]), role: "button", children: s[x[1]] }, x[0])) }),
2796
- /* @__PURE__ */ n.jsx(ot, { type: "date", value: e.to, onChange: (x) => d("to", x === null ? null : x.toString()), InputContainer: Oe, size: a })
2793
+ /* @__PURE__ */ n.jsx(ot, { type: "date", value: e.from, onChange: (x) => d("from", x === null ? null : x.toString()), InputContainer: Oe, size: s }),
2794
+ /* @__PURE__ */ n.jsx(mn, { toggle: /* @__PURE__ */ n.jsx(hn, { text: a[Xn.find((x) => x[0] === i)[1]].substring(0, 1), as: va }), children: Xn.map((x) => /* @__PURE__ */ n.jsx(Je, { disabled: x[0] === i, className: b(x[0] === i ? "text-black-50" : ""), onClick: () => u(x[0]), role: "button", children: a[x[1]] }, x[0])) }),
2795
+ /* @__PURE__ */ n.jsx(ot, { type: "date", value: e.to, onChange: (x) => d("to", x === null ? null : x.toString()), InputContainer: Oe, size: s })
2797
2796
  ] }) }),
2798
2797
  /* @__PURE__ */ n.jsx(re, { disabled: m, onClick: () => {
2799
2798
  l(1);
2800
2799
  }, children: /* @__PURE__ */ n.jsx(o, { icon: "chevron-right" }) })
2801
2800
  ] });
2802
- }, _d = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: r, yearMax: a }) => {
2803
- const { localizationContext: s } = Z(pe), { dateFnsLocale: o } = Z(s), { searchParams: i, setSearch: c } = As(), l = i.get(t), u = l ? jt(l) : e, d = S((m) => {
2801
+ }, _d = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: r, yearMax: s }) => {
2802
+ const { localizationContext: a } = Z(pe), { dateFnsLocale: o } = Z(a), { searchParams: i, setSearch: c } = Aa(), l = i.get(t), u = l ? jt(l) : e, d = S((m) => {
2804
2803
  c(t, rn(m, { representation: "date" }));
2805
2804
  }, [t, c]);
2806
- return /* @__PURE__ */ n.jsx(yo, { month: u, onChangeMonth: d, locale: o, yearMin: r, yearMax: a });
2807
- }, Nd = ({ defaultYear: e, searchKey: t = "yearFrom", optionMin: r, optionMax: a, className: s }) => {
2808
- const [o, i] = Ms(t, rn(e, { representation: "date" })), c = o ? jt(o) : e, l = S((u) => {
2805
+ return /* @__PURE__ */ n.jsx(yo, { month: u, onChangeMonth: d, locale: o, yearMin: r, yearMax: s });
2806
+ }, Nd = ({ defaultYear: e, searchKey: t = "yearFrom", optionMin: r, optionMax: s, className: a }) => {
2807
+ const [o, i] = Ma(t, rn(e, { representation: "date" })), c = o ? jt(o) : e, l = S((u) => {
2809
2808
  i(rn(u, { representation: "date" }));
2810
2809
  }, [i]);
2811
- return /* @__PURE__ */ n.jsx(_o, { year: c, onChangeYear: l, optionMin: r, optionMax: a, className: s });
2812
- }, Sd = ({ data: e, showLegend: t = !1, legendPosition: r = "left", onClick: a }) => {
2813
- const { chartColorPalette: s } = Z(pe);
2814
- return /* @__PURE__ */ n.jsx(js, { data: e, margin: {
2810
+ return /* @__PURE__ */ n.jsx(_o, { year: c, onChangeYear: l, optionMin: r, optionMax: s, className: a });
2811
+ }, Sd = ({ data: e, showLegend: t = !1, legendPosition: r = "left", onClick: s }) => {
2812
+ const { chartColorPalette: a } = Z(pe);
2813
+ return /* @__PURE__ */ n.jsx(ja, { data: e, margin: {
2815
2814
  top: 50,
2816
2815
  right: t && r === "right" ? 200 : 100,
2817
2816
  bottom: 50,
@@ -2819,7 +2818,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
2819
2818
  }, innerRadius: 0.4, padAngle: 4, cornerRadius: 2, activeOuterRadiusOffset: 10, borderWidth: 2, borderColor: {
2820
2819
  from: "color",
2821
2820
  modifiers: [["darker", 0.5]]
2822
- }, colors: s, arcLinkLabelsSkipAngle: 10, arcLinkLabelsTextColor: { from: "color", modifiers: [["darker", 0.5]] }, arcLinkLabelsThickness: 2, arcLinkLabelsColor: { from: "color" }, enableArcLabels: !1, legends: t ? [
2821
+ }, colors: a, arcLinkLabelsSkipAngle: 10, arcLinkLabelsTextColor: { from: "color", modifiers: [["darker", 0.5]] }, arcLinkLabelsThickness: 2, arcLinkLabelsColor: { from: "color" }, enableArcLabels: !1, legends: t ? [
2823
2822
  {
2824
2823
  anchor: r,
2825
2824
  direction: r === "left" || r === "right" ? "column" : "row",
@@ -2836,20 +2835,20 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
2836
2835
  symbolShape: "circle",
2837
2836
  padding: 10
2838
2837
  }
2839
- ] : [], onClick: (o) => a && a(o.data) });
2838
+ ] : [], onClick: (o) => s && s(o.data) });
2840
2839
  }, ic = ({ errors: e, schema: t }) => {
2841
- const r = (a) => {
2842
- var s, o;
2843
- return a.toLowerCase() === "others" ? "Obecné" : ((o = (s = t.columns) == null ? void 0 : s.find((i) => i.field === a)) == null ? void 0 : o.caption) ?? a;
2840
+ const r = (s) => {
2841
+ var a, o;
2842
+ return s.toLowerCase() === "others" ? "Obecné" : ((o = (a = t.columns) == null ? void 0 : a.find((i) => i.field === s)) == null ? void 0 : o.caption) ?? s;
2844
2843
  };
2845
- return /* @__PURE__ */ n.jsx("div", { className: "alert alert-danger w-100 m-0 p-2", children: /* @__PURE__ */ n.jsx("table", { children: /* @__PURE__ */ n.jsx("tbody", { children: e.map((a) => /* @__PURE__ */ n.jsxs("tr", { children: [
2844
+ return /* @__PURE__ */ n.jsx("div", { className: "alert alert-danger w-100 m-0 p-2", children: /* @__PURE__ */ n.jsx("table", { children: /* @__PURE__ */ n.jsx("tbody", { children: e.map((s) => /* @__PURE__ */ n.jsxs("tr", { children: [
2846
2845
  /* @__PURE__ */ n.jsx("td", { className: "fw-bold pe-2", children: /* @__PURE__ */ n.jsxs(X, { variant: "body", children: [
2847
- r(a.name),
2846
+ r(s.name),
2848
2847
  ":"
2849
2848
  ] }) }),
2850
- /* @__PURE__ */ n.jsx("td", { className: "", children: /* @__PURE__ */ n.jsx(X, { variant: "body", children: a.errors }) })
2851
- ] }, a.name)) }) }) });
2852
- }, ba = (e) => {
2849
+ /* @__PURE__ */ n.jsx("td", { className: "", children: /* @__PURE__ */ n.jsx(X, { variant: "body", children: s.errors }) })
2850
+ ] }, s.name)) }) }) });
2851
+ }, bs = (e) => {
2853
2852
  const t = {};
2854
2853
  return Object.keys(e).forEach((r) => {
2855
2854
  if (e[r].value === !0) {
@@ -2864,14 +2863,14 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
2864
2863
  }), t;
2865
2864
  }, tr = (e, t) => {
2866
2865
  const r = {};
2867
- return Object.keys(e).forEach((a) => {
2866
+ return Object.keys(e).forEach((s) => {
2868
2867
  var i;
2869
- const s = e[a], o = (i = t.columns) == null ? void 0 : i.find((c) => c.field === a);
2870
- if ((o == null ? void 0 : o.type) === "BIT" && (s === 1 || s === 0)) {
2871
- r[a] = { value: s === 1, defaultValue: s === 1 };
2868
+ const a = e[s], o = (i = t.columns) == null ? void 0 : i.find((c) => c.field === s);
2869
+ if ((o == null ? void 0 : o.type) === "BIT" && (a === 1 || a === 0)) {
2870
+ r[s] = { value: a === 1, defaultValue: a === 1 };
2872
2871
  return;
2873
2872
  }
2874
- r[a] = { value: s, defaultValue: s };
2873
+ r[s] = { value: a, defaultValue: a };
2875
2874
  }), r;
2876
2875
  }, lc = "_table_1klfy_1", cc = "_table-header_1klfy_10", dc = "_table-row_1klfy_10", uc = "_table-head_1klfy_10", fc = "_filters-row_1klfy_19", mc = "_table-body_1klfy_30", hc = "_table-cell_1klfy_30", gc = "_action-column_1klfy_43", pc = "_sticky-top_1klfy_47", xc = "_sticky-first_1klfy_54", vc = "_sticky-last_1klfy_61", jc = "_sticky-bottom_1klfy_68", ue = {
2877
2876
  table: lc,
@@ -2897,25 +2896,25 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
2897
2896
  stickyLast: vc,
2898
2897
  "sticky-bottom": "_sticky-bottom_1klfy_68",
2899
2898
  stickyBottom: jc
2900
- }, yc = "_input_13mhy_1", at = {
2899
+ }, yc = "_input_13mhy_1", st = {
2901
2900
  input: yc
2902
- }, _a = ({ type: e, value: t, field: r, isPrimary: a, isReadonly: s, primaryEditable: o = !1, valuesForSelect: i, onChangeHandler: c, hideClearIcon: l, clearValue: u }) => {
2901
+ }, _s = ({ type: e, value: t, field: r, isPrimary: s, isReadonly: a, primaryEditable: o = !1, valuesForSelect: i, onChangeHandler: c, hideClearIcon: l, clearValue: u }) => {
2903
2902
  switch (e) {
2904
2903
  case "NUM":
2905
- return i && i.length > 0 ? /* @__PURE__ */ n.jsx(Et, { withoutLabel: !0, InputContainer: Oe, className: at.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (d) => c(r, d === null ? null : Number(d)), options: i, disabled: s || o ? !1 : a, showClearIcon: !l, clearValue: u }) : /* @__PURE__ */ n.jsx(ot, { withoutLabel: !0, InputContainer: Oe, className: at.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (d) => c(r, d === null ? null : Number(d)), disabled: s || o ? !1 : a, showClearIcon: !l, clearValue: u });
2904
+ return i && i.length > 0 ? /* @__PURE__ */ n.jsx(Et, { withoutLabel: !0, InputContainer: Oe, className: st.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (d) => c(r, d === null ? null : Number(d)), options: i, disabled: a || o ? !1 : s, showClearIcon: !l, clearValue: u }) : /* @__PURE__ */ n.jsx(ot, { withoutLabel: !0, InputContainer: Oe, className: st.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (d) => c(r, d === null ? null : Number(d)), disabled: a || o ? !1 : s, showClearIcon: !l, clearValue: u });
2906
2905
  case "STR":
2907
- return i && i.length > 0 ? /* @__PURE__ */ n.jsx(Et, { withoutLabel: !0, InputContainer: Oe, className: at.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (d) => c(r, (d == null ? void 0 : d.toString()) ?? null), options: i, disabled: s || o ? !1 : a, showClearIcon: !l, clearValue: u }) : /* @__PURE__ */ n.jsx(ot, { withoutLabel: !0, InputContainer: Oe, className: at.input, size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (d) => c(r, (d == null ? void 0 : d.toString()) ?? null), disabled: s || o ? !1 : a, showClearIcon: !l, clearValue: u });
2906
+ return i && i.length > 0 ? /* @__PURE__ */ n.jsx(Et, { withoutLabel: !0, InputContainer: Oe, className: st.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (d) => c(r, (d == null ? void 0 : d.toString()) ?? null), options: i, disabled: a || o ? !1 : s, showClearIcon: !l, clearValue: u }) : /* @__PURE__ */ n.jsx(ot, { withoutLabel: !0, InputContainer: Oe, className: st.input, size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (d) => c(r, (d == null ? void 0 : d.toString()) ?? null), disabled: a || o ? !1 : s, showClearIcon: !l, clearValue: u });
2908
2907
  case "BIT":
2909
- return /* @__PURE__ */ n.jsx(ha, { InputContainer: Oe, className: at.input, value: t === !0, onChange: (d) => c(r, d), disabled: s || o ? !1 : a });
2908
+ return /* @__PURE__ */ n.jsx(hs, { InputContainer: Oe, className: st.input, value: t === !0, onChange: (d) => c(r, d), disabled: a || o ? !1 : s });
2910
2909
  case "DT":
2911
- return /* @__PURE__ */ n.jsx(ot, { withoutLabel: !0, InputContainer: Oe, className: at.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (d) => c(r, (d == null ? void 0 : d.toString()) ?? null), disabled: s || o ? !1 : a, showClearIcon: !l, clearValue: u });
2910
+ return /* @__PURE__ */ n.jsx(ot, { withoutLabel: !0, InputContainer: Oe, className: st.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (d) => c(r, (d == null ? void 0 : d.toString()) ?? null), disabled: a || o ? !1 : s, showClearIcon: !l, clearValue: u });
2912
2911
  default:
2913
2912
  return /* @__PURE__ */ n.jsx("div", { className: "alert alert-warning p-1 m-0", children: /* @__PURE__ */ n.jsxs(X, { variant: "body", children: [
2914
2913
  "Neznámý typ ",
2915
2914
  e
2916
2915
  ] }) });
2917
2916
  }
2918
- }, wc = ({ schema: e, columns: t, initialItem: r, onEdit: a, onDelete: s }) => {
2917
+ }, wc = ({ schema: e, columns: t, initialItem: r, onEdit: s, onDelete: a }) => {
2919
2918
  const { ProjectIconComponent: o } = Z(pe), [i, c] = O(r), l = S((m, p) => {
2920
2919
  console.log("changeValue", m, p), c((x) => ({
2921
2920
  ...x,
@@ -2928,15 +2927,15 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
2928
2927
  return L(() => {
2929
2928
  c(r);
2930
2929
  }, [r]), /* @__PURE__ */ n.jsxs("tr", { className: b("table-row", ue.tableRow), children: [
2931
- /* @__PURE__ */ n.jsx("td", { className: b("table-cell", ue.tableCell, ue.stickyFirst), children: d() && /* @__PURE__ */ n.jsx(re, { color: "success", onClick: () => a(ba(i)), children: /* @__PURE__ */ n.jsx(o, { icon: "check" }) }) }),
2930
+ /* @__PURE__ */ n.jsx("td", { className: b("table-cell", ue.tableCell, ue.stickyFirst), children: d() && /* @__PURE__ */ n.jsx(re, { color: "success", onClick: () => s(bs(i)), children: /* @__PURE__ */ n.jsx(o, { icon: "check" }) }) }),
2932
2931
  t.map((m) => {
2933
2932
  var p, x;
2934
- return /* @__PURE__ */ n.jsx("td", { className: b("table-cell", ue.tableCell), children: /* @__PURE__ */ n.jsx(_a, { type: m.type, value: (p = i[m.field ?? ""]) == null ? void 0 : p.value, field: m.field, isReadonly: m.readOnly, isPrimary: e.primaryKey === m.field, valuesForSelect: m.valuesForSelect, onChangeHandler: l, hideClearIcon: !u(i[m.field ?? ""]), clearValue: (x = i[m.field ?? ""].defaultValue) == null ? void 0 : x.toString() }) }, `${e.id}-${m.field}`);
2933
+ return /* @__PURE__ */ n.jsx("td", { className: b("table-cell", ue.tableCell), children: /* @__PURE__ */ n.jsx(_s, { type: m.type, value: (p = i[m.field ?? ""]) == null ? void 0 : p.value, field: m.field, isReadonly: m.readOnly, isPrimary: e.primaryKey === m.field, valuesForSelect: m.valuesForSelect, onChangeHandler: l, hideClearIcon: !u(i[m.field ?? ""]), clearValue: (x = i[m.field ?? ""].defaultValue) == null ? void 0 : x.toString() }) }, `${e.id}-${m.field}`);
2935
2934
  }),
2936
- /* @__PURE__ */ n.jsx("td", { className: b("table-cell", ue.tableCell, ue.stickyLast), children: /* @__PURE__ */ n.jsx(re, { color: "danger", onClick: () => s(i[e.primaryKey ?? ""].value), children: /* @__PURE__ */ n.jsx(o, { icon: "delete" }) }) })
2935
+ /* @__PURE__ */ n.jsx("td", { className: b("table-cell", ue.tableCell, ue.stickyLast), children: /* @__PURE__ */ n.jsx(re, { color: "danger", onClick: () => a(i[e.primaryKey ?? ""].value), children: /* @__PURE__ */ n.jsx(o, { icon: "delete" }) }) })
2937
2936
  ] });
2938
2937
  }, bc = ({ schema: e, columns: t, onCreate: r }) => {
2939
- const { ProjectIconComponent: a } = Z(pe), [s, o] = O(null), i = S(() => {
2938
+ const { ProjectIconComponent: s } = Z(pe), [a, o] = O(null), i = S(() => {
2940
2939
  var u;
2941
2940
  const l = {};
2942
2941
  (u = e.columns) == null || u.forEach((d) => {
@@ -2955,18 +2954,18 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
2955
2954
  }
2956
2955
  });
2957
2956
  }, []);
2958
- return s ? /* @__PURE__ */ n.jsxs("tr", { className: "sticky-bottom shadow", children: [
2957
+ return a ? /* @__PURE__ */ n.jsxs("tr", { className: "sticky-bottom shadow", children: [
2959
2958
  /* @__PURE__ */ n.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ n.jsx(re, { color: "success", onClick: async () => {
2960
- const l = ba(s);
2959
+ const l = bs(a);
2961
2960
  l && await r(l) && o(null);
2962
- }, children: /* @__PURE__ */ n.jsx(a, { icon: "check" }) }) }),
2963
- t.map((l) => /* @__PURE__ */ n.jsx("td", { children: /* @__PURE__ */ n.jsx(_a, { type: l.type, value: s[l.field ?? ""].value, field: l.field, isReadonly: l.readOnly, isPrimary: e.primaryKey === l.field, valuesForSelect: l.valuesForSelect, onChangeHandler: c, primaryEditable: !0 }) }, `${e.id}-${l.field}`)),
2964
- /* @__PURE__ */ n.jsx("td", { className: "sticky-last", children: /* @__PURE__ */ n.jsx(re, { color: "danger", onClick: () => o(null), children: /* @__PURE__ */ n.jsx(a, { icon: "cancel" }) }) })
2961
+ }, children: /* @__PURE__ */ n.jsx(s, { icon: "check" }) }) }),
2962
+ t.map((l) => /* @__PURE__ */ n.jsx("td", { children: /* @__PURE__ */ n.jsx(_s, { type: l.type, value: a[l.field ?? ""].value, field: l.field, isReadonly: l.readOnly, isPrimary: e.primaryKey === l.field, valuesForSelect: l.valuesForSelect, onChangeHandler: c, primaryEditable: !0 }) }, `${e.id}-${l.field}`)),
2963
+ /* @__PURE__ */ n.jsx("td", { className: "sticky-last", children: /* @__PURE__ */ n.jsx(re, { color: "danger", onClick: () => o(null), children: /* @__PURE__ */ n.jsx(s, { icon: "cancel" }) }) })
2965
2964
  ] }) : /* @__PURE__ */ n.jsxs("tr", { className: "sticky-bottom shadow", children: [
2966
- /* @__PURE__ */ n.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ n.jsx(re, { onClick: i, children: /* @__PURE__ */ n.jsx(a, { icon: "add" }) }) }),
2965
+ /* @__PURE__ */ n.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ n.jsx(re, { onClick: i, children: /* @__PURE__ */ n.jsx(s, { icon: "add" }) }) }),
2967
2966
  /* @__PURE__ */ n.jsx("td", { colSpan: t.length + 1 })
2968
2967
  ] });
2969
- }, _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: a, onCreateItem: s, filters: o, setFilter: i, sortByField: c, sortByType: l, setSortBy: u, selectedMaster: d }) => {
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 }) => {
2970
2969
  const { texts: { dynamicForms: m }, ProjectIconComponent: p } = Z(pe), [x, h] = O([]);
2971
2970
  return L(() => {
2972
2971
  var g, v, w;
@@ -3014,25 +3013,25 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3014
3013
  ] })
3015
3014
  ] }),
3016
3015
  /* @__PURE__ */ n.jsxs("tbody", { className: b("table-body", ue.tableBody), children: [
3017
- t.filter((g) => g[e.primaryKey ?? ""]).map((g) => /* @__PURE__ */ n.jsx(wc, { schema: e, columns: x, initialItem: g, onEdit: r, onDelete: a }, `${e.id}-${g[e.primaryKey ?? ""].value}`)),
3018
- /* @__PURE__ */ n.jsx(bc, { schema: e, columns: x, onCreate: s })
3016
+ t.filter((g) => g[e.primaryKey ?? ""]).map((g) => /* @__PURE__ */ n.jsx(wc, { schema: e, columns: x, initialItem: g, onEdit: r, onDelete: s }, `${e.id}-${g[e.primaryKey ?? ""].value}`)),
3017
+ /* @__PURE__ */ n.jsx(bc, { schema: e, columns: x, onCreate: a })
3019
3018
  ] })
3020
3019
  ] });
3021
- }, Sc = ({ master: e, onChange: t, options: r, label: a }) => /* @__PURE__ */ n.jsx(Et, { label: a, value: e, onChange: (s) => t(s ? s.toString() : null), options: r, size: "sm" }), Cc = "_pagination_gujwe_1", nr = {
3020
+ }, Sc = ({ master: e, onChange: t, options: r, label: s }) => /* @__PURE__ */ n.jsx(Et, { label: s, value: e, onChange: (a) => t(a ? a.toString() : null), options: r, size: "sm" }), Cc = "_pagination_gujwe_1", nr = {
3022
3021
  pagination: Cc
3023
3022
  }, rr = {
3024
3023
  appDetail: "/settings/:id"
3025
- }, st = {
3024
+ }, at = {
3026
3025
  apiSchemaGet: "/dynamicForms/schema",
3027
3026
  apiDataGet: "/dynamicForms/data",
3028
3027
  apiItemPost: "/dynamicForms/update",
3029
3028
  apiItemDelete: "/dynamicForms/delete",
3030
3029
  apiItemCreate: "/dynamicForms/insert"
3031
- }, Cd = ({ id: e, page: t, setPage: r, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, appUrls: { appDetail: l = rr.appDetail } = rr, apiUrls: { apiSchemaGet: u = st.apiSchemaGet, apiDataGet: d = st.apiDataGet, apiItemPost: m = st.apiItemPost, apiItemDelete: p = st.apiItemDelete, apiItemCreate: x = st.apiItemCreate } = st }) => {
3032
- var ce, Ne, de, se, ke, Ee;
3033
- const { texts: { dynamicForms: h }, ProjectIconComponent: g } = Z(pe), v = et(), { startLoading: w, stopLoading: j } = Z(Rt), [f, y] = O(null), [_, $] = O(null), [E, I] = O(null), [F, D] = 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);
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: p = at.apiItemDelete, apiItemCreate: x = at.apiItemCreate } = at }) => {
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);
3034
3033
  L(() => {
3035
- y(null), $(null), N(!1), Q([]), Ce(null);
3034
+ y(null), D(null), N(!1), Q([]), Ce(null);
3036
3035
  }, [e]);
3037
3036
  const J = S(async () => {
3038
3037
  w("dynamicFormSchema"), await v.get(`${u}?id=${e}`).then(({ data: z }) => {
@@ -3042,38 +3041,38 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3042
3041
  var z;
3043
3042
  if (!(f === null || ((z = f.id) == null ? void 0 : z.toString()) !== e)) {
3044
3043
  if (f.masterReference && !fe) {
3045
- $([]);
3044
+ D([]);
3046
3045
  return;
3047
3046
  }
3048
- w("dynamicFormData"), await v.get(`${d}?id=${e}&showArchive=${C}${f.masterReference ? `&master=${fe}` : ""}`).then(({ data: ae }) => {
3049
- const ge = ae.map((ie) => {
3047
+ w("dynamicFormData"), await v.get(`${d}?id=${e}&showArchive=${C}${f.masterReference ? `&master=${fe}` : ""}`).then(({ data: se }) => {
3048
+ const ge = se.map((ie) => {
3050
3049
  var xe;
3051
3050
  return Object.fromEntries(((xe = f.columns) == null ? void 0 : xe.filter((we) => we.field).map((we) => [
3052
3051
  we.field,
3053
3052
  { value: ie[we.field ?? ""], defaultValue: ie[we.field ?? ""] }
3054
3053
  ])) ?? []);
3055
3054
  });
3056
- $(ge), j("dynamicFormData");
3055
+ D(ge), j("dynamicFormData");
3057
3056
  }).catch(() => j("dynamicFormData"));
3058
3057
  }
3059
- }, [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((ae) => (j("dynamicFormEdit"), Q(zt(ae)), !1))), [v, e, w, j, m]), Ye = S(async (z) => (w("dynamicFormDelete"), v.delete(`${p}?id=${e}&pk=${z}`).then(() => (j("dynamicFormDelete"), Q([]), !0)).catch((ae) => (j("dynamicFormDelete"), Q(zt(ae)), !1))), [v, e, w, j, p]), Y = S(async (z) => (w("dynamicFormCreate"), v.post(`${x}?id=${e}`, z).then(({ data: ae }) => (j("dynamicFormCreate"), Q([]), ae)).catch((ae) => (j("dynamicFormCreate"), Q(zt(ae)), null))), [v, e, w, j, x]), he = S(async (z) => {
3060
- f && await $e(f.masterReference ? { ...z, [f.masterReferenceColumn ?? ""]: fe } : z) && (P(h.editSuccess, "success"), $((ae) => ae && ae.map((ge) => {
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(`${p}?id=${e}&pk=${z}`).then(() => (j("dynamicFormDelete"), Q([]), !0)).catch((se) => (j("dynamicFormDelete"), Q(zt(se)), !1))), [v, e, w, j, p]), Y = S(async (z) => (w("dynamicFormCreate"), v.post(`${x}?id=${e}`, z).then(({ data: se }) => (j("dynamicFormCreate"), Q([]), se)).catch((se) => (j("dynamicFormCreate"), Q(zt(se)), null))), [v, e, w, j, x]), 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) => {
3061
3060
  var ie;
3062
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;
3063
3062
  })));
3064
3063
  }, [P, $e, f, fe, h]), be = S(async (z) => {
3065
- await A(h.deleteConfirm) && await Ye(z) && (P(h.deleteSuccess, "success"), $((ae) => ae && ae.filter((ge) => {
3064
+ await A(h.deleteConfirm) && await Ye(z) && (P(h.deleteSuccess, "success"), D((se) => se && se.filter((ge) => {
3066
3065
  var ie;
3067
3066
  return ((ie = ge[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : ie.value) !== z;
3068
3067
  })));
3069
3068
  }, [P, Ye, h, A, f]), rt = S(async (z) => {
3070
3069
  if (!f)
3071
3070
  return !1;
3072
- const ae = await Y(f.masterReference ? { ...z, [f.masterReferenceColumn ?? ""]: fe } : z);
3073
- if (ae !== null) {
3071
+ const se = await Y(f.masterReference ? { ...z, [f.masterReferenceColumn ?? ""]: fe } : z);
3072
+ if (se !== null) {
3074
3073
  P(h.createSuccess, "success");
3075
3074
  const ge = tr(z, f);
3076
- return ge[(f == null ? void 0 : f.primaryKey) ?? ""] = { value: ae, defaultValue: ae }, $((ie) => [...ie ?? [], ge]), !0;
3075
+ return ge[(f == null ? void 0 : f.primaryKey) ?? ""] = { value: se, defaultValue: se }, D((ie) => [...ie ?? [], ge]), !0;
3077
3076
  }
3078
3077
  return !1;
3079
3078
  }, [P, Y, h, f, fe]), T = (z) => {
@@ -3083,11 +3082,11 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3083
3082
  I(null);
3084
3083
  return;
3085
3084
  }
3086
- const z = _.filter((ae) => Object.entries(a).every(([ge, ie]) => {
3085
+ const z = _.filter((se) => Object.entries(s).every(([ge, ie]) => {
3087
3086
  var dt, ut, ft;
3088
3087
  if (ie === null)
3089
3088
  return !0;
3090
- const xe = (dt = ae[ge]) == null ? void 0 : dt.value;
3089
+ const xe = (dt = se[ge]) == null ? void 0 : dt.value;
3091
3090
  if (xe == null)
3092
3091
  return !1;
3093
3092
  const we = (ut = f.columns) == null ? void 0 : ut.find((bt) => bt.field === ge), lt = we == null ? void 0 : we.type, ct = (we == null ? void 0 : we.values) && ((ft = we == null ? void 0 : we.values) == null ? void 0 : ft.length) > 0;
@@ -3107,18 +3106,18 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3107
3106
  }
3108
3107
  }));
3109
3108
  I(z);
3110
- }, [_, a, f]), q = S(() => {
3111
- if (!E || !f) {
3112
- D([]);
3109
+ }, [_, s, f]), q = S(() => {
3110
+ if (!$ || !f) {
3111
+ E([]);
3113
3112
  return;
3114
3113
  }
3115
3114
  if (!o) {
3116
- D(E);
3115
+ E($);
3117
3116
  return;
3118
3117
  }
3119
- D([...E].sort((z, ae) => {
3118
+ E([...$].sort((z, se) => {
3120
3119
  var lt, ct, dt, ut, ft, bt;
3121
- const ge = ((ct = (lt = z[o]) == null ? void 0 : lt.value) == null ? void 0 : ct.toString()) ?? "", ie = ((ut = (dt = ae[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;
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;
3122
3121
  if (!xe || !we || !ge && !ie)
3123
3122
  return 0;
3124
3123
  if (!ge)
@@ -3145,7 +3144,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3145
3144
  }
3146
3145
  return i === "asc" ? ge.toString().localeCompare(ie.toString()) : ie.toString().localeCompare(ge.toString());
3147
3146
  }));
3148
- }, [E, f, o, i]);
3147
+ }, [$, f, o, i]);
3149
3148
  return L(() => {
3150
3149
  J();
3151
3150
  }, [J]), L(() => {
@@ -3161,18 +3160,18 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3161
3160
  }, [t, k, W, r]), /* @__PURE__ */ n.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
3162
3161
  /* @__PURE__ */ n.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-center", children: [
3163
3162
  /* @__PURE__ */ n.jsx(X, { variant: "h3", children: (f == null ? void 0 : f.name) ?? "" }),
3164
- /* @__PURE__ */ n.jsx(ha, { label: h.showArchived, value: C === !0, onChange: (z) => N(z) })
3163
+ /* @__PURE__ */ n.jsx(hs, { label: h.showArchived, value: C === !0, onChange: (z) => N(z) })
3165
3164
  ] }),
3166
3165
  (f == null ? void 0 : f.description) && /* @__PURE__ */ n.jsx(X, { variant: "body2", className: "mb-3", children: f == null ? void 0 : f.description }),
3167
- (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: ((se = (de = f.columns) == null ? void 0 : de.find((z) => z.field === f.masterReferenceColumn)) == null ? void 0 : se.values) ?? [], master: fe, onChange: (z) => Ce(z) }) }),
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) }) }),
3168
3167
  (f == null ? void 0 : f.slaves) && f.slaves.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex align-items-center flex-start", children: f.slaves.map((z) => {
3169
- var ae;
3170
- return /* @__PURE__ */ n.jsx(Le, { as: "link", href: `${It(l, { id: (ae = z.id) == null ? void 0 : ae.toString() })}?type=dynamic-form`, children: z.name }, z.id);
3168
+ var se;
3169
+ return /* @__PURE__ */ n.jsx(Le, { as: "link", href: `${It(l, { id: (se = z.id) == null ? void 0 : se.toString() })}?type=dynamic-form`, children: z.name }, z.id);
3171
3170
  }) }),
3172
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: [
3173
3172
  f && U.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-2", children: /* @__PURE__ */ n.jsx(ic, { errors: U, schema: f }) }),
3174
3173
  f && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3175
- /* @__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: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, selectedMaster: (fe == null ? void 0 : fe.toString()) ?? null }) }),
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 }) }),
3176
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: [
3177
3176
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
3178
3177
  /* @__PURE__ */ n.jsx(re, { color: "primary", onClick: () => T(1), disabled: !G, children: /* @__PURE__ */ n.jsx(g, { icon: "chevron-double-left" }) }),
@@ -3193,18 +3192,18 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3193
3192
  ] })
3194
3193
  ] })
3195
3194
  ] });
3196
- }, ar = {
3197
- appDetail: "/settings/:id"
3198
3195
  }, sr = {
3196
+ appDetail: "/settings/:id"
3197
+ }, ar = {
3199
3198
  apiDynamicFormsGet: "/dynamicForms"
3200
- }, kc = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ n.jsx(At, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: t }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: t }), kd = ({ activeId: e, otherForms: t = [], groupsDefs: r = [], searchQuery: a, fullSize: s, appUrls: { appDetail: o = ar.appDetail } = ar, apiUrls: { apiDynamicFormsGet: i = sr.apiDynamicFormsGet } = sr }) => {
3199
+ }, kc = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ n.jsx(At, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: t }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: t }), kd = ({ activeId: e, otherForms: t = [], groupsDefs: r = [], searchQuery: s, fullSize: a, appUrls: { appDetail: o = sr.appDetail } = sr, apiUrls: { apiDynamicFormsGet: i = ar.apiDynamicFormsGet } = ar }) => {
3201
3200
  const c = et(), { startLoading: l, stopLoading: u } = Z(Rt), [d, m] = O(null), p = ee(() => [
3202
3201
  ...(d == null ? void 0 : d.map((g) => ({
3203
3202
  ...g,
3204
3203
  type: "dynamic-form"
3205
3204
  }))) ?? [],
3206
3205
  ...t
3207
- ].filter((g) => Dt(g.name, a) || Dt(g.description, a)).sort((g, v) => (g.name ?? "").localeCompare(v.name ?? "")) ?? [], [d, t, a]), x = ee(() => r.map((g) => ({
3206
+ ].filter((g) => Dt(g.name, s) || Dt(g.description, s)).sort((g, v) => (g.name ?? "").localeCompare(v.name ?? "")) ?? [], [d, t, s]), x = ee(() => r.map((g) => ({
3208
3207
  id: g.id,
3209
3208
  name: g.name ?? "",
3210
3209
  items: p.filter((v) => v.group === g.id)
@@ -3215,9 +3214,9 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3215
3214
  }, [c, l, u, i]);
3216
3215
  return L(() => {
3217
3216
  !d && h();
3218
- }, [h, d]), p.length > 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: x.map((g) => /* @__PURE__ */ n.jsx(sn, { title: g.name, defaultOpen: !0, children: g.items.map((v) => {
3217
+ }, [h, d]), p.length > 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: x.map((g) => /* @__PURE__ */ n.jsx(an, { title: g.name, defaultOpen: !0, children: g.items.map((v) => {
3219
3218
  var w, j, f, y;
3220
- return s ? /* @__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: [
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: [
3221
3220
  /* @__PURE__ */ n.jsx(X, { variant: "body", children: v.name }),
3222
3221
  v.description && /* @__PURE__ */ n.jsx(X, { variant: "body2", className: "text-muted mt-2", children: v.description })
3223
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);
@@ -3226,11 +3225,11 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3226
3225
  /* @__PURE__ */ n.jsx("input", { disabled: !0, className: "form-control d-none" }),
3227
3226
  t ? /* @__PURE__ */ n.jsx(Xe, { to: t, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: r }) : /* @__PURE__ */ n.jsx("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: r })
3228
3227
  ] }), Dd = () => {
3229
- const { localizationContext: e } = Z(pe), { language: t, setLanguage: r } = Z(e), a = (s) => {
3230
- r(s);
3228
+ const { localizationContext: e } = Z(pe), { language: t, setLanguage: r } = Z(e), s = (a) => {
3229
+ r(a);
3231
3230
  };
3232
- return /* @__PURE__ */ n.jsx(Je, { onClick: (s) => {
3233
- a(t === "cz" ? "en" : "cz"), s.stopPropagation();
3231
+ return /* @__PURE__ */ n.jsx(Je, { onClick: (a) => {
3232
+ s(t === "cz" ? "en" : "cz"), a.stopPropagation();
3234
3233
  }, children: t === "cz" ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3235
3234
  /* @__PURE__ */ n.jsx("strong", { children: "CZ" }),
3236
3235
  /* @__PURE__ */ n.jsx(Dn, {}),
@@ -3240,9 +3239,9 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3240
3239
  /* @__PURE__ */ n.jsx(Dn, {}),
3241
3240
  /* @__PURE__ */ n.jsx("span", { children: "CZ" })
3242
3241
  ] }) });
3243
- }, $d = ({ controlId: e, ...t }) => /* @__PURE__ */ n.jsx(ye.Group, { controlId: e, ...t }), Ed = ({ employeeId: e, alt: t, noPhotoImage: r, cafmApiUrl: a, showLargeInLightBox: s = !1 }) => {
3244
- const { user: o } = Z(Tt), { photoPath: i, photoPathSm: c } = Bs(e);
3245
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && /* @__PURE__ */ n.jsx(n.Fragment, { children: s ? /* @__PURE__ */ n.jsx(ml, { baseUrl: a, customToken: o.cafmToken ?? void 0, photos: [
3242
+ }, $d = ({ controlId: e, ...t }) => /* @__PURE__ */ n.jsx(ye.Group, { controlId: e, ...t }), Ed = ({ employeeId: e, alt: t, noPhotoImage: r, cafmApiUrl: s, showLargeInLightBox: a = !1 }) => {
3243
+ const { user: o } = Z(Tt), { photoPath: i, photoPathSm: c } = Ba(e);
3244
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsx(ml, { baseUrl: s, customToken: o.cafmToken ?? void 0, photos: [
3246
3245
  {
3247
3246
  id: e.toString(),
3248
3247
  alt: t ?? "",
@@ -3250,17 +3249,17 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3250
3249
  smSrc: c,
3251
3250
  lgSrc: i
3252
3251
  }
3253
- ], placeholder: r, ImgComponent: Kn }) : /* @__PURE__ */ n.jsx(Kn, { baseUrl: a, customToken: o.cafmToken ?? void 0, src: c, alt: t, placeholder: r, className: "rounded w-100" }) }) });
3254
- }, Fd = ({ text: e, setText: t, onSearchButtonClick: r, className: a }) => {
3255
- const s = (o) => {
3252
+ ], placeholder: r, ImgComponent: Kn }) : /* @__PURE__ */ n.jsx(Kn, { baseUrl: s, customToken: o.cafmToken ?? void 0, src: c, alt: t, placeholder: r, className: "rounded w-100" }) }) });
3253
+ }, Fd = ({ text: e, setText: t, onSearchButtonClick: r, className: s }) => {
3254
+ const a = (o) => {
3256
3255
  t(o);
3257
3256
  };
3258
- return /* @__PURE__ */ n.jsxs(St, { className: `${a}`, children: [
3257
+ return /* @__PURE__ */ n.jsxs(St, { className: `${s}`, children: [
3259
3258
  /* @__PURE__ */ n.jsx(ye.Control, { value: e, onChange: (o) => t(o.target.value) }),
3260
- e && /* @__PURE__ */ n.jsx(tn, { onClick: () => s(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ n.jsx(Te, {}) }),
3261
- /* @__PURE__ */ n.jsx(tn, { onClick: () => r && r(e), variant: "link", className: "border", children: /* @__PURE__ */ n.jsx(ys, {}) })
3259
+ e && /* @__PURE__ */ n.jsx(tn, { onClick: () => a(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ n.jsx(Te, {}) }),
3260
+ /* @__PURE__ */ n.jsx(tn, { onClick: () => r && r(e), variant: "link", className: "border", children: /* @__PURE__ */ n.jsx(ya, {}) })
3262
3261
  ] });
3263
- }, Od = ({ value: e, numberPrefix: t, numberSuffix: r, decimalScale: a = 2, className: s }) => /* @__PURE__ */ n.jsx(Nn, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: a, defaultValue: "", prefix: t, suffix: r, className: s }), Td = ({ data: e, keys: t, colors: r, tooltipLabel: a }) => /* @__PURE__ */ n.jsx(ws, { data: e.map((s) => ({ name: s.name, ...s.values })), indexBy: "name", keys: t, margin: {
3262
+ }, Od = ({ value: e, numberPrefix: t, numberSuffix: r, decimalScale: s = 2, className: a }) => /* @__PURE__ */ n.jsx(Nn, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: s, defaultValue: "", prefix: t, suffix: r, className: a }), Td = ({ data: e, keys: t, colors: r, tooltipLabel: s }) => /* @__PURE__ */ n.jsx(wa, { data: e.map((a) => ({ name: a.name, ...a.values })), indexBy: "name", keys: t, margin: {
3264
3263
  top: 20,
3265
3264
  right: 50,
3266
3265
  bottom: 30,
@@ -3279,7 +3278,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3279
3278
  }, labelSkipWidth: 12, labelSkipHeight: 12, labelTextColor: {
3280
3279
  from: "color",
3281
3280
  modifiers: [["darker", 1.6]]
3282
- }, tooltipLabel: a }), Rd = ({ InputContainer: e = We, formField: t, label: r, resetsFields: a, type: s, required: o, hidden: i, disabled: c, withoutLabel: l, className: u }) => {
3281
+ }, tooltipLabel: s }), Rd = ({ InputContainer: e = We, formField: t, label: r, resetsFields: s, type: a, required: o, hidden: i, disabled: c, withoutLabel: l, className: u }) => {
3283
3282
  const { register: d, formState: m, setValue: p } = Ue(), [x, h] = O(void 0), [g, v] = O(!1);
3284
3283
  L(() => {
3285
3284
  const j = t.split(".");
@@ -3292,15 +3291,15 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3292
3291
  }, [m]);
3293
3292
  const w = x !== void 0;
3294
3293
  return /* @__PURE__ */ n.jsxs(e, { isForCheckInput: !0, hidden: i, label: `${r}${o ? " *" : ""}`, isInvalid: w, withoutLabel: l, className: u, children: [
3295
- /* @__PURE__ */ n.jsx(ye.Check, { id: `check-${t}`, type: s ?? "checkbox", label: `${r}${o ? " *" : ""}`, ...d(t, {
3294
+ /* @__PURE__ */ n.jsx(ye.Check, { id: `check-${t}`, type: a ?? "checkbox", label: `${r}${o ? " *" : ""}`, ...d(t, {
3296
3295
  onChange: () => {
3297
- a && a.forEach((j) => p(j, null, { shouldDirty: !0, shouldValidate: g }));
3296
+ s && s.forEach((j) => p(j, null, { shouldDirty: !0, shouldValidate: g }));
3298
3297
  }
3299
3298
  }), isInvalid: w, hidden: i, disabled: c, className: "w-100" }),
3300
3299
  x && /* @__PURE__ */ n.jsx(nt, { message: x.message })
3301
3300
  ] });
3302
- }, Ld = ({ InputContainer: e = We, label: t, formField: r, options: a, resetsFields: s, required: o, disabled: i, hidden: c, className: l }) => {
3303
- const { register: u, formState: d, setValue: m, watch: p } = Ue(), [x, h] = O(void 0), [g, v] = O(!1), w = ee(() => a, [a]);
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: p } = Ue(), [x, h] = O(void 0), [g, v] = O(!1), w = ee(() => s, [s]);
3304
3303
  L(() => {
3305
3304
  const f = r.split(".");
3306
3305
  let y = d.errors;
@@ -3314,13 +3313,13 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3314
3313
  return /* @__PURE__ */ n.jsxs(e, { isForRadioInput: !0, hidden: c, withoutLabel: !t, label: `${t}${o ? " *" : ""}`, isInvalid: j, className: l, children: [
3315
3314
  w.map((f) => /* @__PURE__ */ n.jsx(ye.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: p(r) === f.id, ...u(r, {
3316
3315
  onChange: () => {
3317
- s && s.forEach((y) => m(y, null, { shouldDirty: !0, shouldValidate: g }));
3316
+ a && a.forEach((y) => m(y, null, { shouldDirty: !0, shouldValidate: g }));
3318
3317
  }
3319
3318
  }), isInvalid: j, hidden: c, disabled: i, className: "w-100" }, f.id)),
3320
3319
  x && /* @__PURE__ */ n.jsx(nt, { message: x.message })
3321
3320
  ] });
3322
- }, Ad = ({ InputContainer: e = We, formField: t, label: r, size: a, defaultSelection: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, items: d, onSearchQueryChange: m, selectedItemNavigateTo: p, texts: x, dropdownItemsNameWidth: h, isLoading: g, withoutLabel: v, additionalColumns: w, CustomOnChangeComponent: j, icon: f, displayIdAsName: y, onSelect: _, className: $, archiveColumn: E }) => {
3323
- const { formState: I, setValue: F, watch: D, control: C } = Ue(), [N, P] = O(void 0), [U, Q] = O(!1), [A, R] = O(!1), V = D(t) ?? null, W = V === (s == null ? void 0 : s.id) ? s == null ? void 0 : s.name : D(`${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: p, texts: x, 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(() => {
3324
3323
  const J = t.split(".");
3325
3324
  let ve = I.errors;
3326
3325
  J.forEach(($e) => {
@@ -3352,10 +3351,10 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3352
3351
  I.isSubmitted && R(!0);
3353
3352
  }, [I]);
3354
3353
  const H = ne(null), le = N !== void 0, fe = p !== void 0, Ce = fe && G !== null;
3355
- 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: $, children: [
3356
- /* @__PURE__ */ n.jsxs(ma, { currentSelection: G, selectedItemNavigateTo: p, children: [
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: [
3355
+ /* @__PURE__ */ n.jsxs(ms, { currentSelection: G, selectedItemNavigateTo: p, children: [
3357
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 }),
3358
- /* @__PURE__ */ n.jsx(gn, { control: C, name: t, render: () => /* @__PURE__ */ n.jsx(ye.Select, { size: a, onMouseDown: (J) => {
3357
+ /* @__PURE__ */ n.jsx(gn, { control: C, name: t, render: () => /* @__PURE__ */ n.jsx(ye.Select, { size: s, onMouseDown: (J) => {
3359
3358
  J.currentTarget.focus(), J.preventDefault();
3360
3359
  }, onClick: () => {
3361
3360
  !fe && !u && Q(!0);
@@ -3372,24 +3371,24 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3372
3371
  ] }) : null
3373
3372
  ] }),
3374
3373
  N && /* @__PURE__ */ n.jsx(nt, { message: N.message }),
3375
- H.current && /* @__PURE__ */ n.jsx(wn, { show: U, onCancel: k, items: d, currentSelection: G, onSelectionChange: B, onSearchQueryChange: m, texts: x, itemsNameWidth: h, additionalColumns: w, displayIdAsName: y, isLoading: g, disabled: u, inputRef: H, archiveColumn: E })
3374
+ H.current && /* @__PURE__ */ n.jsx(wn, { show: U, onCancel: k, items: d, currentSelection: G, onSelectionChange: B, onSearchQueryChange: m, texts: x, itemsNameWidth: h, additionalColumns: w, displayIdAsName: y, isLoading: g, disabled: u, inputRef: H, archiveColumn: $ })
3376
3375
  ] }) });
3377
- }, Md = ({ InputContainer: e = We, label: t, formField: r, hidden: a, required: s, placeholder: o, disabled: i, showClearIcon: c, resetsFields: l, multiple: u, accept: d, withoutLabel: m, className: p }) => {
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: p }) => {
3378
3377
  const { watch: x, setValue: h, register: g, formState: v } = Ue(), [w, j] = O(!1), [f, y] = O(void 0), _ = S(() => {
3379
3378
  h(r, "");
3380
- }, [h, r]), $ = S(() => {
3379
+ }, [h, r]), D = S(() => {
3381
3380
  const I = r.split(".");
3382
3381
  let F = v.errors;
3383
- I.forEach((D) => {
3384
- F !== void 0 && (F = F[D]);
3382
+ I.forEach((E) => {
3383
+ F !== void 0 && (F = F[E]);
3385
3384
  }), y(F);
3386
3385
  }, [v, r]);
3387
- L($, [$]), L(() => {
3386
+ L(D, [D]), L(() => {
3388
3387
  v.isSubmitted && j(!0);
3389
3388
  }, [v]);
3390
- const E = f !== void 0;
3391
- return /* @__PURE__ */ n.jsxs(e, { label: `${t}${s ? "*" : ""}`, hidden: a, withoutLabel: m, isInvalid: E, className: p, children: [
3392
- /* @__PURE__ */ n.jsx(bs, { type: "file", multiple: u, accept: d.join(", "), placeholder: o ?? t, isInvalid: E, hidden: a, disabled: i, className: "w-100", ...g(r, {
3389
+ const $ = f !== void 0;
3390
+ return /* @__PURE__ */ n.jsxs(e, { label: `${t}${a ? "*" : ""}`, hidden: s, withoutLabel: m, isInvalid: $, className: p, children: [
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, {
3393
3392
  onChange: () => {
3394
3393
  l && l.forEach((I) => h(I, null, { shouldDirty: !0, shouldValidate: w }));
3395
3394
  }
@@ -3398,17 +3397,17 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3398
3397
  f && /* @__PURE__ */ n.jsx(nt, { message: f.message })
3399
3398
  ] });
3400
3399
  }, Bd = ({ children: e, onStorno: t, noSpacer: r }) => {
3401
- const { formState: a } = Ue(), [s, o] = O(!1);
3400
+ const { formState: s } = Ue(), [a, o] = O(!1);
3402
3401
  return L(() => {
3403
- o(Object.keys(a.dirtyFields).length > 0);
3404
- }, [a]), s ? /* @__PURE__ */ n.jsx(vo, { onStorno: t, noSpacer: r, children: e }) : null;
3405
- }, Vd = ({ InputContainer: e = We, options: t, formField: r, label: a, size: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, withoutLabel: d, noSortOptions: m, suffixIdToName: p, onSelect: x, className: h, appendCurrentSelectionWithName: g }) => {
3406
- const { texts: { customSelect: v } } = Z(pe), { formState: w, setValue: j, watch: f, control: y } = Ue(), [_, $] = O(void 0), [E, I] = O(!1), [F, D] = O(!1), [C, N] = O(""), P = f(r), U = ee(() => t.find((B) => B.id === P) ?? null, [t, P]), Q = S(() => {
3402
+ o(Object.keys(s.dirtyFields).length > 0);
3403
+ }, [s]), a ? /* @__PURE__ */ n.jsx(vo, { onStorno: t, noSpacer: r, children: e }) : null;
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: p, onSelect: x, 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(() => {
3407
3406
  const B = r.split(".");
3408
3407
  let k = w.errors;
3409
3408
  B.forEach((H) => {
3410
3409
  k !== void 0 && (k = k[H]);
3411
- }), $(k);
3410
+ }), D(k);
3412
3411
  }, [w, r]), A = S((B) => {
3413
3412
  if ((B == null ? void 0 : B.id) === P)
3414
3413
  return;
@@ -3432,7 +3431,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3432
3431
  L(() => {
3433
3432
  Q();
3434
3433
  }, [Q]), L(() => {
3435
- w.isSubmitted && D(!0);
3434
+ w.isSubmitted && E(!0);
3436
3435
  }, [w]);
3437
3436
  const W = S((B) => {
3438
3437
  var k;
@@ -3451,31 +3450,31 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3451
3450
  g,
3452
3451
  P
3453
3452
  ]), K = ne(null), te = _ !== void 0;
3454
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${a}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: te, inputContainerClassName: b({ "luminus-dropdown-select-open": E }), className: h, children: [
3455
- /* @__PURE__ */ n.jsx(gn, { control: y, name: r, render: () => /* @__PURE__ */ n.jsx(ye.Select, { size: s, onMouseDown: (B) => {
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) => {
3456
3455
  B.currentTarget.focus(), B.preventDefault();
3457
3456
  }, onClick: () => {
3458
3457
  I(!0);
3459
3458
  }, ref: K, value: P ?? "", onChange: () => {
3460
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) }) }) }),
3461
3460
  _ && /* @__PURE__ */ n.jsx(nt, { message: _.message }),
3462
- K.current && /* @__PURE__ */ n.jsx(wn, { show: E, onCancel: () => I(!1), items: G, currentSelection: U ?? null, onSelectionChange: R, onSearchQueryChange: V, texts: v, disabled: u, inputRef: K, autoHideSearch: !0, allItemsLength: t.length })
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 })
3463
3462
  ] }) });
3464
- }, Pd = ({ InputContainer: e = We, formField: t, label: r, placeholder: a, size: s, resetsFields: o, showClearIcon: i, clearValue: c, required: l, hidden: u, disabled: d, withoutLabel: m, step: p, stepperStep: x = 1, className: h, min: g, max: v }) => {
3465
- const { register: w, formState: j, setValue: f, watch: y } = Ue(), [_, $] = O(void 0), [E, I] = O(!1), F = S((U, Q, A) => {
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: p, stepperStep: x = 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) => {
3466
3465
  f(U, gt(Q, g, v), A);
3467
- }, [v, g, f]), D = S(() => {
3466
+ }, [v, g, f]), E = S(() => {
3468
3467
  const U = c ?? null;
3469
3468
  F(t, U !== null ? Number(U) : null, {
3470
3469
  shouldDirty: !0,
3471
- shouldValidate: E
3470
+ shouldValidate: $
3472
3471
  });
3473
- }, [c, F, t, E]), C = S(() => {
3472
+ }, [c, F, t, $]), C = S(() => {
3474
3473
  const U = t.split(".");
3475
3474
  let Q = j.errors;
3476
3475
  U.forEach((A) => {
3477
3476
  Q !== void 0 && (Q = Q[A]);
3478
- }), $(Q);
3477
+ }), D(Q);
3479
3478
  }, [j, t]);
3480
3479
  L(() => {
3481
3480
  C();
@@ -3485,56 +3484,56 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3485
3484
  const N = _ !== void 0, P = y(t);
3486
3485
  return /* @__PURE__ */ n.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: u, withoutLabel: m, isInvalid: N, className: h, children: [
3487
3486
  /* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
3488
- /* @__PURE__ */ n.jsx(ye.Control, { type: "number", placeholder: a ?? r, size: s, ...w(t, {
3487
+ /* @__PURE__ */ n.jsx(ye.Control, { type: "number", placeholder: s ?? r, size: a, ...w(t, {
3489
3488
  setValueAs: (U) => U == null || U === "" ? null : gt(Number(U), g, v),
3490
3489
  min: g,
3491
3490
  max: v,
3492
3491
  onChange: () => {
3493
- o && o.forEach((U) => f(U, null, { shouldDirty: !0, shouldValidate: E }));
3492
+ o && o.forEach((U) => f(U, null, { shouldDirty: !0, shouldValidate: $ }));
3494
3493
  }
3495
3494
  }), isInvalid: N, hidden: u, disabled: d, className: "w-100 luminus-numeric-stepper", step: p, min: g, max: v }),
3496
3495
  /* @__PURE__ */ n.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ n.jsx(re, { size: "sm", onClick: (U) => {
3497
- U.preventDefault(), U.stopPropagation(), F(t, ((P ? Number(P) : 0) - x).toString(), { shouldDirty: !0, shouldValidate: E });
3496
+ U.preventDefault(), U.stopPropagation(), F(t, ((P ? Number(P) : 0) - x).toString(), { shouldDirty: !0, shouldValidate: $ });
3498
3497
  }, children: /* @__PURE__ */ n.jsx(Nr, {}) }) }),
3499
3498
  /* @__PURE__ */ n.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ n.jsx(re, { size: "sm", onClick: (U) => {
3500
- U.preventDefault(), U.stopPropagation(), F(t, ((P ? Number(P) : 0) + x).toString(), { shouldDirty: !0, shouldValidate: E });
3499
+ U.preventDefault(), U.stopPropagation(), F(t, ((P ? Number(P) : 0) + x).toString(), { shouldDirty: !0, shouldValidate: $ });
3501
3500
  }, children: /* @__PURE__ */ n.jsx(Sr, {}) }) })
3502
3501
  ] }),
3503
- i && y(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, {}) }) }),
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, {}) }) }),
3504
3503
  _ && /* @__PURE__ */ n.jsx(nt, { message: _.message })
3505
3504
  ] });
3506
- }, zd = ({ InputContainer: e = We, formField: t, label: r, placeholder: a, resetsFields: s, showClearIcon: o, clearValue: i, required: c, hidden: l, disabled: u, withoutLabel: d, step: m, size: p, CustomOnChangeComponent: x, noSelectOnFocus: h, className: g, decimalScale: v = 2, numberPrefix: w, numberSuffix: j, min: f, max: y }) => {
3507
- const { formState: _, setValue: $, watch: E, control: I } = Ue(), [F, D] = 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: p, CustomOnChangeComponent: x, 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(() => {
3508
3507
  const R = i ?? null;
3509
- $(t, R !== null ? Number(R) : null, {
3508
+ D(t, R !== null ? Number(R) : null, {
3510
3509
  shouldDirty: !0,
3511
3510
  shouldValidate: C
3512
3511
  });
3513
- }, [i, $, t, C]), U = S(() => {
3512
+ }, [i, D, t, C]), U = S(() => {
3514
3513
  const R = t.split(".");
3515
3514
  let V = _.errors;
3516
3515
  R.forEach((W) => {
3517
3516
  V !== void 0 && (V = V[W]);
3518
- }), D(V);
3517
+ }), E(V);
3519
3518
  }, [_, t]);
3520
3519
  L(() => {
3521
3520
  U();
3522
3521
  }, [U]), L(() => {
3523
3522
  _.isSubmitted && N(!0);
3524
3523
  }, [_]);
3525
- const Q = E(t);
3524
+ const Q = $(t);
3526
3525
  L(() => {
3527
- y !== void 0 && Q > y && $(t, y), f !== void 0 && Q < f && $(t, f);
3528
- }, [t, Q, y, f, $]);
3526
+ y !== void 0 && Q > y && D(t, y), f !== void 0 && Q < f && D(t, f);
3527
+ }, [t, Q, y, f, D]);
3529
3528
  const A = F !== void 0;
3530
3529
  return /* @__PURE__ */ n.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: A, className: g, children: [
3531
3530
  /* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
3532
- /* @__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: a ?? r, onFocus: (K) => {
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) => {
3533
3532
  !h && K.target.select();
3534
3533
  }, onChange: (K) => {
3535
3534
  var B, k;
3536
3535
  const te = parseFloat(((k = (B = K.target) == null ? void 0 : B.value) == null ? void 0 : k.replaceAll(" ", "")) ?? 0);
3537
- s && s.forEach((H) => $(H, null, { shouldDirty: !0, shouldValidate: C })), V(te == null || Number.isNaN(te) ? null : Number(te));
3536
+ a && a.forEach((H) => D(H, null, { shouldDirty: !0, shouldValidate: C })), V(te == null || Number.isNaN(te) ? null : Number(te));
3538
3537
  }, hidden: l, disabled: u, className: b("form-control text-end w-100", {
3539
3538
  "is-invalid": A
3540
3539
  }, {
@@ -3542,7 +3541,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3542
3541
  }), step: m, getInputRef: R, min: f, max: y }) }),
3543
3542
  x && /* @__PURE__ */ n.jsx("div", { className: "custom-picker-button", children: x })
3544
3543
  ] }),
3545
- o && E(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, {}) }) }),
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, {}) }) }),
3546
3545
  F && /* @__PURE__ */ n.jsx(nt, { message: F.message })
3547
3546
  ] });
3548
3547
  }, Sn = ["slice", "options", "formats", "conditions"], or = (e) => {
@@ -3550,8 +3549,8 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3550
3549
  if (typeof t == "string")
3551
3550
  throw alert("report is string"), new Error("report is string");
3552
3551
  const r = {};
3553
- return Sn.forEach((a) => {
3554
- r[a] = t[a];
3552
+ return Sn.forEach((s) => {
3553
+ r[s] = t[s];
3555
3554
  }), JSON.stringify(r);
3556
3555
  }, Ic = (e) => {
3557
3556
  if (e.settings) {
@@ -3566,10 +3565,10 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3566
3565
  return Sn.forEach((r) => {
3567
3566
  t[r] = (e == null ? void 0 : e[r]) ?? void 0;
3568
3567
  }), t;
3569
- }, $c = ({ dataSource: e, settings: t, pivotRef: r, localization: a, licenseKey: s, enabled: o = !0 }) => {
3568
+ }, $c = ({ dataSource: e, settings: t, pivotRef: r, localization: s, licenseKey: a, enabled: o = !0 }) => {
3570
3569
  const { texts: { reports: i } } = Z(pe), [c, l] = O(!1), u = ne(null), d = r ?? u, m = ee(() => ({
3571
- localization: a
3572
- }), [a]), p = S((h) => {
3570
+ localization: s
3571
+ }), [s]), p = S((h) => {
3573
3572
  delete h[0], delete h[1], delete h[2];
3574
3573
  const g = [
3575
3574
  {
@@ -3605,20 +3604,20 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3605
3604
  const { options: w, conditions: j, formats: f, slice: y, ..._ } = (h = d.current) == null ? void 0 : h.flexmonster.getReport();
3606
3605
  if (_ === void 0 || typeof _ == "string")
3607
3606
  return;
3608
- const $ = Dc(t);
3609
- $.options = {
3607
+ const D = Dc(t);
3608
+ D.options = {
3610
3609
  ...t == null ? void 0 : t.options,
3611
3610
  grid: { ...(g = t == null ? void 0 : t.options) == null ? void 0 : g.grid, autoSwitchToCompact: !1 }
3612
3611
  };
3613
- const E = { ..._, ...$ };
3614
- (v = d.current) == null || v.flexmonster.setReport(E), console.log("Refreshing flexmonster settings. New report: ", E);
3612
+ const $ = { ..._, ...D };
3613
+ (v = d.current) == null || v.flexmonster.setReport($), console.log("Refreshing flexmonster settings. New report: ", $);
3615
3614
  }
3616
3615
  }, [o, c, d, t]), /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(
3617
- Rs,
3616
+ Ra,
3618
3617
  {
3619
3618
  ref: d,
3620
3619
  global: m,
3621
- licenseKey: s,
3620
+ licenseKey: a,
3622
3621
  toolbar: !0,
3623
3622
  height: "100%",
3624
3623
  beforetoolbarcreated: x,
@@ -3628,21 +3627,21 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3628
3627
  width: "100%"
3629
3628
  }
3630
3629
  ) });
3631
- }, Ec = (e, t, r, a) => {
3632
- const { texts: { reports: s } } = Z(pe), { prompt: o } = _s(), { confirm: i } = Lt(), c = et(), { user: l } = Z(Tt), { startLoading: u, stopLoading: d } = Z(Rt), { addNotification: m } = Cr(), p = S(async (w) => {
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(), p = S(async (w) => {
3633
3632
  u("report-versionSavingAs");
3634
3633
  try {
3635
3634
  const j = await c.post("/reports/version", w);
3636
- m(s.saveSuccessful, "success"), await a(j.data);
3635
+ m(a.saveSuccessful, "success"), await s(j.data);
3637
3636
  } finally {
3638
3637
  d("report-versionSavingAs");
3639
3638
  }
3640
- }, [m, a, c, s.saveSuccessful, u, d]), x = S(async () => {
3639
+ }, [m, s, c, a.saveSuccessful, u, d]), x = S(async () => {
3641
3640
  if (r === null) {
3642
3641
  m("none open", "warning");
3643
3642
  return;
3644
3643
  }
3645
- if (!await i(s.confirmOverwriteSave))
3644
+ if (!await i(a.confirmOverwriteSave))
3646
3645
  return;
3647
3646
  const j = or(t);
3648
3647
  p({
@@ -3655,11 +3654,11 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3655
3654
  i,
3656
3655
  t,
3657
3656
  e,
3658
- s.confirmOverwriteSave,
3657
+ a.confirmOverwriteSave,
3659
3658
  p,
3660
3659
  r
3661
3660
  ]), h = S(async () => {
3662
- const w = await o(s.enterName, { input: "input", required: !0 });
3661
+ const w = await o(a.enterName, { input: "input", required: !0 });
3663
3662
  if (w === null)
3664
3663
  return;
3665
3664
  const j = or(t);
@@ -3668,14 +3667,14 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3668
3667
  name: w,
3669
3668
  settings: j
3670
3669
  });
3671
- }, [t, o, e, s.enterName, p]), g = S(async () => {
3670
+ }, [t, o, e, a.enterName, p]), g = S(async () => {
3672
3671
  u("report-versionSavingAs");
3673
3672
  try {
3674
3673
  await c.post("/reports/version", {
3675
3674
  reportVersionId: r ?? void 0,
3676
3675
  reportSourceName: e,
3677
3676
  isArchived: !0
3678
- }), m(s.deleteSuccessful, "success");
3677
+ }), m(a.deleteSuccessful, "success");
3679
3678
  } finally {
3680
3679
  d("report-versionSavingAs");
3681
3680
  }
@@ -3683,7 +3682,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3683
3682
  m,
3684
3683
  c,
3685
3684
  e,
3686
- s.deleteSuccessful,
3685
+ a.deleteSuccessful,
3687
3686
  r,
3688
3687
  u,
3689
3688
  d
@@ -3698,14 +3697,14 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3698
3697
  addRights: !1
3699
3698
  }
3700
3699
  ]
3701
- }), m(s.detachSuccessful, "success");
3700
+ }), m(a.detachSuccessful, "success");
3702
3701
  } finally {
3703
3702
  d("report-versionSavingAs");
3704
3703
  }
3705
3704
  }, [
3706
3705
  m,
3707
3706
  c,
3708
- s.detachSuccessful,
3707
+ a.detachSuccessful,
3709
3708
  r,
3710
3709
  u,
3711
3710
  d,
@@ -3713,7 +3712,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3713
3712
  ]);
3714
3713
  return { saveAs: h, save: x, archive: g, detach: v };
3715
3714
  }, Fc = (e) => {
3716
- const t = et(), { startLoading: r, stopLoading: a } = Z(Rt);
3715
+ const t = et(), { startLoading: r, stopLoading: s } = Z(Rt);
3717
3716
  return { changeEmployeeRights: S(async (o, i) => {
3718
3717
  let c = null;
3719
3718
  r("reportSharing-addPerson");
@@ -3728,22 +3727,22 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3728
3727
  ]
3729
3728
  })).data;
3730
3729
  } finally {
3731
- a("reportSharing-addPerson");
3730
+ s("reportSharing-addPerson");
3732
3731
  }
3733
3732
  return c;
3734
- }, [t, e, r, a]) };
3735
- }, Oc = ({ isOpen: e, onHide: t, usersData: r, setUsersData: a, reportVersionId: s, EmployeePicker: o }) => {
3736
- const { ProjectIconComponent: i, texts: { reports: c } } = Z(pe), { confirm: l } = Lt(), [u, d] = O(null), { changeEmployeeRights: m } = Fc(s), p = S(async () => {
3733
+ }, [t, e, r, s]) };
3734
+ }, Oc = ({ isOpen: e, onHide: t, usersData: r, setUsersData: s, reportVersionId: a, EmployeePicker: o }) => {
3735
+ const { ProjectIconComponent: i, texts: { reports: c } } = Z(pe), { confirm: l } = Lt(), [u, d] = O(null), { changeEmployeeRights: m } = Fc(a), p = S(async () => {
3737
3736
  if (u === null)
3738
3737
  return;
3739
3738
  const h = await m(u, !0);
3740
- a(s, h);
3741
- }, [u, m, s, a]), x = S(async (h) => {
3739
+ s(a, h);
3740
+ }, [u, m, a, s]), x = S(async (h) => {
3742
3741
  if (!await l(c.removeSharingWith(h)))
3743
3742
  return;
3744
3743
  const v = await m(h, !1);
3745
- a(s, v);
3746
- }, [m, l, s, c, a]);
3744
+ s(a, v);
3745
+ }, [m, l, a, c, s]);
3747
3746
  return /* @__PURE__ */ n.jsxs(ze, { show: e, onHide: t, children: [
3748
3747
  /* @__PURE__ */ n.jsx(ze.Header, { closeButton: !0, children: /* @__PURE__ */ n.jsx(ze.Title, { children: c.reportSharing }) }),
3749
3748
  /* @__PURE__ */ n.jsxs(ze.Body, { children: [
@@ -3770,20 +3769,20 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3770
3769
  ] })
3771
3770
  ] });
3772
3771
  }, Tc = (e, t) => {
3773
- const [r, a] = O(null);
3772
+ const [r, s] = O(null);
3774
3773
  return L(() => {
3775
- e.then(({ default: s }) => {
3776
- const o = t !== void 0 ? t(s) : s;
3777
- a(o);
3774
+ e.then(({ default: a }) => {
3775
+ const o = t !== void 0 ? t(a) : a;
3776
+ s(o);
3778
3777
  });
3779
3778
  }, [t, e]), { mappings: r };
3780
- }, Hd = ({ reportType: e, title: t, data: r, filterElements: a, getReportRoute: s, localization: o, licenseKey: i, EmployeePicker: c, localizationJsonFile: l, localizationTransformer: u }) => {
3781
- const { texts: { reports: d } } = Z(pe), { confirm: m } = Lt(), p = kr(), { id: x } = Ts(), h = ee(() => x === void 0 ? null : Number(x), [x]), g = S((k) => {
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(), p = kr(), { id: x } = Ta(), h = ee(() => x === void 0 ? null : Number(x), [x]), g = S((k) => {
3782
3781
  const H = k === null ? "" : k.toString();
3783
- p(It(s(e), { id: H }), {
3782
+ p(It(a(e), { id: H }), {
3784
3783
  replace: !0
3785
3784
  });
3786
- }, [s, p, e]), [v, w] = O(!1), j = ne(null), { user: f } = Z(Tt), { data: y, reloadData: _, setData: $ } = Vs(`/reports/${e}`), { mappings: E } = Tc(l, u), [I, F] = O({}), D = S((k) => {
3785
+ }, [a, p, 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) => {
3787
3786
  if (y === null)
3788
3787
  return;
3789
3788
  const H = k.target.value, le = H === "" ? null : Number(H);
@@ -3809,15 +3808,15 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3809
3808
  }, [y, N, h]);
3810
3809
  const { save: P, saveAs: U, archive: Q, detach: A } = Ec(e, j, h, C), R = ee(() => ({
3811
3810
  data: r ?? [],
3812
- mapping: E ?? void 0
3813
- }), [r, E]), V = S(async () => {
3811
+ mapping: $ ?? void 0
3812
+ }), [r, $]), V = S(async () => {
3814
3813
  var H;
3815
3814
  await m(d.confirmRevertChanges) && ((H = j.current) == null || H.flexmonster.setReport({ dataSource: R, ...I }));
3816
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(() => {
3817
3816
  var k;
3818
3817
  return (k = N == null ? void 0 : N.users) == null ? void 0 : k.some((H) => H.id === f.personalNumber && !H.isReportOwner);
3819
3818
  }, [N == null ? void 0 : N.users, f.personalNumber]), K = S((k, H) => {
3820
- $((le) => {
3819
+ D((le) => {
3821
3820
  const fe = le == null ? void 0 : le.reportVersions.findIndex((ve) => ve.reportVersionId === k);
3822
3821
  if (fe === void 0 || le === null)
3823
3822
  return le;
@@ -3830,7 +3829,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3830
3829
  reportVersions: J
3831
3830
  };
3832
3831
  });
3833
- }, [$]), te = S(async () => {
3832
+ }, [D]), te = S(async () => {
3834
3833
  await m(d.confirmDelete(N == null ? void 0 : N.name)) && (await Q(), g(null), await _());
3835
3834
  }, [Q, m, _, N == null ? void 0 : N.name, d, g]), B = S(async () => {
3836
3835
  await m(d.confirmDetach(N == null ? void 0 : N.name)) && (await A(), g(null), await _());
@@ -3839,17 +3838,17 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3839
3838
  var k;
3840
3839
  h === null && g(((k = y == null ? void 0 : y.reportVersions.find((H) => H.isSystem === !0)) == null ? void 0 : k.reportVersionId) ?? null);
3841
3840
  }, [y == null ? void 0 : y.reportVersions, h, g]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3842
- /* @__PURE__ */ n.jsx(Ps, { title: /* @__PURE__ */ n.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
3841
+ /* @__PURE__ */ n.jsx(Pa, { title: /* @__PURE__ */ n.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
3843
3842
  /* @__PURE__ */ n.jsx(X, { variant: "h3", children: t }),
3844
- a,
3843
+ s,
3845
3844
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
3846
- /* @__PURE__ */ n.jsxs(Ns, { size: "sm", value: h ?? void 0, onChange: D, children: [
3845
+ /* @__PURE__ */ n.jsxs(Na, { size: "sm", value: h ?? void 0, onChange: E, children: [
3847
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)) }),
3848
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)) }),
3849
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)) })
3850
3849
  ] }),
3851
- /* @__PURE__ */ n.jsx(Le, { icon: /* @__PURE__ */ n.jsx(Ss, {}), onClick: P, disabled: h === null || (N == null ? void 0 : N.isSystem) || !W, children: d.save }),
3852
- /* @__PURE__ */ n.jsx(Le, { icon: /* @__PURE__ */ n.jsx(Cs, {}), onClick: U, className: "flex-shrink-0", children: d.saveAs }),
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 }),
3851
+ /* @__PURE__ */ n.jsx(Le, { icon: /* @__PURE__ */ n.jsx(Ca, {}), onClick: U, className: "flex-shrink-0", children: d.saveAs }),
3853
3852
  /* @__PURE__ */ n.jsxs(mn, { toggle: /* @__PURE__ */ n.jsx(hn, { as: yr }), children: [
3854
3853
  /* @__PURE__ */ n.jsx(Je, { onClick: V, children: d.revertChanges }),
3855
3854
  /* @__PURE__ */ n.jsx(Je, { onClick: () => w(!0), disabled: !W || (N == null ? void 0 : N.isSystem), children: d.share }),
@@ -3860,22 +3859,22 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3860
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 }) }) }),
3861
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
3862
3861
  ] });
3863
- }, 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((a) => /* @__PURE__ */ n.jsx("div", { role: "button", style: {
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: {
3864
3863
  height: "14px",
3865
3864
  width: "14px",
3866
3865
  borderRadius: "50%",
3867
3866
  border: "2px solid transparent",
3868
3867
  backgroundColor: "transparent"
3869
- }, className: b(`border-${a}`, t.includes(a) && `bg-${a}`), onClick: () => {
3870
- t.includes(a) ? r(t.filter((s) => s !== a)) : r([...t, a]);
3871
- } }, a)) }), Lc = ({ linksTo: e, onClick: t, children: r }) => e ? /* @__PURE__ */ n.jsx(Xe, { to: e, className: "text-decoration-none", onClick: t, children: r }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: r }), Ac = ({ message: e, onDeleteMessage: t, onClickMessage: r, getIcon: a, getLinksTo: s }) => {
3872
- const { ProjectIconComponent: o, localizationContext: i } = Z(pe), { dateFnsLocale: c } = Z(i), l = e.dateTime ? jt(e.dateTime) : null, u = l ? Us(new Date(Date.now()), l) : 0;
3868
+ }, className: b(`border-${s}`, t.includes(s) && `bg-${s}`), onClick: () => {
3869
+ t.includes(s) ? r(t.filter((a) => a !== s)) : r([...t, s]);
3870
+ } }, s)) }), Lc = ({ linksTo: e, onClick: t, children: r }) => e ? /* @__PURE__ */ n.jsx(Xe, { to: e, className: "text-decoration-none", onClick: t, children: r }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: r }), Ac = ({ message: e, onDeleteMessage: t, onClickMessage: r, getIcon: s, getLinksTo: a }) => {
3871
+ const { ProjectIconComponent: o, localizationContext: i } = Z(pe), { dateFnsLocale: c } = Z(i), l = e.dateTime ? jt(e.dateTime) : null, u = l ? Ua(new Date(Date.now()), l) : 0;
3873
3872
  return /* @__PURE__ */ n.jsxs("div", { children: [
3874
- l && /* @__PURE__ */ n.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ n.jsx(At, { text: vt(l, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(X, { variant: "caption", children: u > 2 ? vt(l, "dd.MM.yyyy") : Gs(l, new Date(Date.now()), {
3873
+ l && /* @__PURE__ */ n.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ n.jsx(At, { text: vt(l, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(X, { variant: "caption", children: u > 2 ? vt(l, "dd.MM.yyyy") : Ga(l, new Date(Date.now()), {
3875
3874
  locale: c.code
3876
3875
  }) }) }) }) }),
3877
- /* @__PURE__ */ n.jsx(Lc, { linksTo: s(e) ?? void 0, onClick: r, children: /* @__PURE__ */ n.jsx(yl, { level: e.type, noIcon: !0, children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
3878
- a(e),
3876
+ /* @__PURE__ */ n.jsx(Lc, { linksTo: a(e) ?? void 0, onClick: r, children: /* @__PURE__ */ n.jsx(yl, { level: e.type, noIcon: !0, children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
3877
+ s(e),
3879
3878
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
3880
3879
  /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
3881
3880
  /* @__PURE__ */ n.jsx(X, { variant: "body2", className: "fw-bold", children: e.subject }),
@@ -3887,7 +3886,7 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3887
3886
  ] })
3888
3887
  ] }) }) })
3889
3888
  ] });
3890
- }, ir = ["info", "warning", "danger"], lr = ({ messages: e, isLoading: t, onDeleteMessage: r, onClickMessage: a, getIcon: s, getLinksTo: o }) => {
3889
+ }, ir = ["info", "warning", "danger"], lr = ({ messages: e, isLoading: t, onDeleteMessage: r, onClickMessage: s, getIcon: a, getLinksTo: o }) => {
3891
3890
  const { texts: { messageBoard: i } } = Z(pe), [c, l] = O(ir), u = ee(() => e.filter((d) => c.includes(d.type ?? "")), [c, e]);
3892
3891
  return /* @__PURE__ */ n.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
3893
3892
  /* @__PURE__ */ n.jsx(Rc, { knownTypes: ir, typeFilters: c, onChangeTypeFilters: (d) => l(d) }),
@@ -3907,22 +3906,22 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3907
3906
  ] }),
3908
3907
  !t && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3909
3908
  e.length === 0 && /* @__PURE__ */ n.jsx(bn, { variant: "info", size: "sm", className: "mt-2", children: i.noMessages }),
3910
- /* @__PURE__ */ n.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: u.map((d) => /* @__PURE__ */ n.jsx(Ac, { message: d, onDeleteMessage: r, onClickMessage: a, getIcon: s, getLinksTo: o }, d.id)) })
3909
+ /* @__PURE__ */ n.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: u.map((d) => /* @__PURE__ */ n.jsx(Ac, { message: d, onDeleteMessage: r, onClickMessage: s, getIcon: a, getLinksTo: o }, d.id)) })
3911
3910
  ] })
3912
3911
  ] });
3913
3912
  }, Qt = {
3914
3913
  apiGet: "/messageBoard",
3915
3914
  apiDelete: "/messageBoard/"
3916
- }, Ud = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = Qt.apiGet, apiDelete: a = Qt.apiDelete } = Qt, getIcon: s, getLinksTo: o }) => {
3915
+ }, Ud = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = Qt.apiGet, apiDelete: s = Qt.apiDelete } = Qt, getIcon: a, getLinksTo: o }) => {
3917
3916
  const c = et(), [l, u] = O([]), [d, m] = O(!1), [p, x] = O(!1), [h, g] = O(!1), v = S(async () => {
3918
3917
  x(!0), await c.get(r).then(({ data: _ }) => {
3919
3918
  u(_), m(!0), x(!1);
3920
3919
  }).catch(() => {
3921
3920
  u([]), x(!1);
3922
3921
  });
3923
- }, [r, c]), w = S(async (_) => c.delete(`${a}${_}`).then(() => !0).catch(() => !1), [a, c]), j = S((_) => {
3924
- w(_).then(($) => {
3925
- $ && u(l.filter((E) => E.id !== _));
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 !== _));
3926
3925
  });
3927
3926
  }, [w, l]);
3928
3927
  L(() => {
@@ -3938,19 +3937,19 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3938
3937
  /* @__PURE__ */ n.jsx(re, { size: "md", onClick: () => g(!h), children: t }),
3939
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 })
3940
3939
  ] }),
3941
- /* @__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: s, getLinksTo: o }) }) })
3942
- ] }) : /* @__PURE__ */ n.jsx(lr, { messages: l, isLoading: y, onDeleteMessage: j, getIcon: s, 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: 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 });
3943
3942
  }, Mc = "_tab-panel_d8l8q_1", Bc = "_full-height-no-overflow_d8l8q_5", Vc = "_disabled_d8l8q_12", Zt = {
3944
3943
  "tab-panel": "_tab-panel_d8l8q_1",
3945
3944
  tabPanel: Mc,
3946
3945
  "full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
3947
3946
  fullHeightNoOverflow: Bc,
3948
3947
  disabled: Vc
3949
- }, Yd = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: r, disabled: a, className: s, children: o }) => e !== t ? null : /* @__PURE__ */ n.jsx("div", { className: b("luminus-tab-panel", Zt.tabPanel, { [Zt.fullHeightNoOverflow]: r }, { disabled: a }, { [Zt.disabled]: a }, s), children: o }), Pc = "_join-line_1q9e8_1", zc = {
3948
+ }, Yd = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: r, disabled: s, className: a, children: o }) => e !== t ? null : /* @__PURE__ */ n.jsx("div", { className: b("luminus-tab-panel", Zt.tabPanel, { [Zt.fullHeightNoOverflow]: r }, { disabled: s }, { [Zt.disabled]: s }, a), children: o }), Pc = "_join-line_1q9e8_1", zc = {
3950
3949
  "join-line": "_join-line_1q9e8_1",
3951
3950
  joinLine: Pc
3952
- }, Gd = ({ activeTab: e, onSelect: t, children: r, vertical: a, verticalStepper: s }) => /* @__PURE__ */ n.jsx("div", { className: b("luminus-tabs d-flex mb-2", { "gap-1": !s }, { "gap-0": s }, {
3953
- "flex-column": a || s
3951
+ }, Gd = ({ activeTab: e, onSelect: t, children: r, vertical: s, verticalStepper: a }) => /* @__PURE__ */ n.jsx("div", { className: b("luminus-tabs d-flex mb-2", { "gap-1": !a }, { "gap-0": a }, {
3952
+ "flex-column": s || a
3954
3953
  }), children: r.map((o, i) => {
3955
3954
  const c = o.type, l = o.props;
3956
3955
  if (!l)
@@ -3959,16 +3958,16 @@ const wd = ({ InputContainer: e = tt, value: t, onChange: r, debounceMs: a, labe
3959
3958
  return /* @__PURE__ */ n.jsxs(Se.Fragment, { children: [
3960
3959
  /* @__PURE__ */ n.jsx(c, { ...l, className: b({ active: e === u }, m), onClick: () => {
3961
3960
  t(u), p && p(u);
3962
- }, vertical: a || s, children: d }),
3963
- s && i < r.length - 1 && /* @__PURE__ */ n.jsx("div", { className: b("join-line", zc.joinLine) })
3961
+ }, vertical: s || a, children: d }),
3962
+ a && i < r.length - 1 && /* @__PURE__ */ n.jsx("div", { className: b("join-line", zc.joinLine) })
3964
3963
  ] }, l.eventKey);
3965
3964
  }) }), Hc = "_tab_1tbi7_1", Wc = "_disabled_1tbi7_7", Uc = "_vertical_1tbi7_13", Jt = {
3966
3965
  tab: Hc,
3967
3966
  disabled: Wc,
3968
3967
  vertical: Uc
3969
- }, Kd = ({ eventKey: e, className: t, onClick: r, disabled: a, vertical: s, children: o }) => /* @__PURE__ */ n.jsx("div", { role: "button", className: b("luminus-tab text-primary rounded", Jt.tab, t, {
3970
- disabled: a
3971
- }, { [Jt.disabled]: a }, { vertical: s }, { [Jt.vertical]: s }), onClick: () => r && !a && r(e), children: typeof o == "string" ? /* @__PURE__ */ n.jsx(X, { variant: s ? "body" : "h6", className: s ? "" : "text-primary", children: o }) : o });
3968
+ }, Kd = ({ eventKey: e, className: t, onClick: r, disabled: s, vertical: a, children: o }) => /* @__PURE__ */ n.jsx("div", { role: "button", className: b("luminus-tab text-primary rounded", Jt.tab, t, {
3969
+ disabled: s
3970
+ }, { [Jt.disabled]: s }, { vertical: a }, { [Jt.vertical]: a }), onClick: () => r && !s && r(e), children: typeof o == "string" ? /* @__PURE__ */ n.jsx(X, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: o }) : o });
3972
3971
  export {
3973
3972
  bn as Alert,
3974
3973
  yl as AlertItem,
@@ -3976,12 +3975,12 @@ export {
3976
3975
  hd as AppSearch,
3977
3976
  gd as AuthTemplate,
3978
3977
  br as AvatarIcon,
3979
- ua as Backdrop,
3978
+ us as Backdrop,
3980
3979
  ud as Badge,
3981
3980
  Td as BarChart,
3982
3981
  Wi as Card,
3983
- ha as CheckInput,
3984
- sn as Collapse,
3982
+ hs as CheckInput,
3983
+ an as Collapse,
3985
3984
  Le as ContextButton,
3986
3985
  Id as DisabledRowLabelLink,
3987
3986
  Zd as Documents,
@@ -3995,7 +3994,7 @@ export {
3995
3994
  Wo as ErrorBoundary,
3996
3995
  Jd as FileExtensionIcon,
3997
3996
  cd as FileUploadButton,
3998
- ia as FileUploadContextButton,
3997
+ is as FileUploadContextButton,
3999
3998
  fd as FileUploadDropdownItem,
4000
3999
  $c as Flexmonster,
4001
4000
  _l as FloatingActionContainer,
@@ -4016,11 +4015,11 @@ export {
4016
4015
  ld as HtmlTooltip,
4017
4016
  re as IconButton,
4018
4017
  Kn as ImgApi,
4019
- fa as ImgDirect,
4018
+ fs as ImgDirect,
4020
4019
  nt as InvalidFeedback,
4021
4020
  Dd as LanguageSwitch,
4022
4021
  En as Loading,
4023
- zs as LoadingBlock,
4022
+ za as LoadingBlock,
4024
4023
  Ud as MessageBoard,
4025
4024
  yo as MonthPicker,
4026
4025
  _d as MonthPickerSearchParams,