react-luminus-components 1.3.82 → 1.3.84
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,17 +1,17 @@
|
|
|
1
|
-
import { j as r, c as y, t as ge, a as mt, s as
|
|
2
|
-
import { aW as
|
|
1
|
+
import { j as r, c as y, t as ge, a as mt, s as Nn, g as Cn, m as Ha, d as Ct, b as Wa, e as Ua, f as Me, h as za, i as Ga, k as Ya, l as Ka, n as qa, o as Qa, p as Za, q as Ja, T as cr, r as ur, u as kn, E as Xa, v as dr, w as sn, x as fr, y as es, z as se, A as Ot, B as Oe, C as mr, D as ts, F as Jt, G as ns, H as rs, I as as, J as ss, K as hr, L as os, M as is, N as Sn, O as ls, P as on, Q as cs, R as pr, S as us, U as gr, V as ds, W as fs, X as ms, Y as hs, Z as ps, _ as gs, $ as xs, a0 as Vt, a1 as X, a2 as we, a3 as $n, a4 as vs, a5 as js, a6 as ys, a7 as xr, a8 as ht, a9 as ee, aa as ln, ab as je, ac as cn, ad as _t, ae as ws, af as $t, ag as vr, ah as bs, ai as jr, aj as _s, ak as Ns, al as Cs, am as yt, an as ks, ao as Dt, ap as yr, aq as Ee, ar as Ss, as as $s, at as Ds, au as wr, av as Is, aw as br, ax as Es, ay as Ze, az as Fs, aA as _r, aB as Nr, aC as Cr, aD as Ve, aE as Os, aF as Ts, aG as Ie, aH as Ms, aI as pt, aJ as Ls, aK as kr, aL as Rs, aM as As, aN as Pt, aO as Pe, aP as Dn, aQ as Vs, aR as Je, aS as Ps } from "./Documents-CzClGlh6.js";
|
|
2
|
+
import { aW as dd, aX as fd, aU as md, aT as hd, aV as pd } from "./Documents-CzClGlh6.js";
|
|
3
3
|
import * as K from "react";
|
|
4
4
|
import pe, { useCallback as D, useMemo as re, useEffect as V, useRef as J, useState as R, useReducer as Sr, useContext as Z, useId as Bs, Component as Hs, isValidElement as Ws, Suspense as Us, useLayoutEffect as zs } from "react";
|
|
5
|
-
import { c as Le, L as
|
|
5
|
+
import { c as Le, L as In } from "./Loading-x8qNuFvn.js";
|
|
6
6
|
import { InteractionType as Gs } from "@azure/msal-browser";
|
|
7
7
|
import { MsalAuthenticationTemplate as Ys } from "@azure/msal-react";
|
|
8
|
-
import { Link as Qe, Navigate as Nt, generatePath as
|
|
9
|
-
import { useFormContext as Be, Controller as
|
|
10
|
-
import { S as
|
|
8
|
+
import { Link as Qe, Navigate as Nt, generatePath as Xt } from "react-router-dom";
|
|
9
|
+
import { useFormContext as Be, Controller as un } from "react-hook-form";
|
|
10
|
+
import { S as dn } from "./SimpleTooltip-D8C4rVDt.js";
|
|
11
11
|
import { u as Ks, a as $r, b as Dr, c as qs, d as Qs, e as Zs } from "./useClipboard-C486DVki.js";
|
|
12
12
|
import It from "react-dom";
|
|
13
|
-
import { l as dt, s as
|
|
14
|
-
const
|
|
13
|
+
import { l as dt, s as en } from "./searchUtils-B6o7cy_z.js";
|
|
14
|
+
const _u = ({ fileLoader: e, fileName: t, children: n }) => {
|
|
15
15
|
const a = D(async () => {
|
|
16
16
|
var c, l;
|
|
17
17
|
const s = await e();
|
|
@@ -47,20 +47,20 @@ function eo(e, t) {
|
|
|
47
47
|
const n = ge(e), a = ge(t), s = n.getTime() - a.getTime();
|
|
48
48
|
return s < 0 ? -1 : s > 0 ? 1 : s;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function En(e, t) {
|
|
51
51
|
const n = ge(e), a = ge(t), s = n.getFullYear() - a.getFullYear(), o = n.getMonth() - a.getMonth();
|
|
52
52
|
return s * 12 + o;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Fn(e) {
|
|
55
55
|
const t = ge(e);
|
|
56
56
|
return Math.trunc(t.getMonth() / 3) + 1;
|
|
57
57
|
}
|
|
58
58
|
function Bt(e, t) {
|
|
59
|
-
const n = ge(e), a = ge(t), s = n.getFullYear() - a.getFullYear(), o =
|
|
59
|
+
const n = ge(e), a = ge(t), s = n.getFullYear() - a.getFullYear(), o = Fn(n) - Fn(a);
|
|
60
60
|
return s * 4 + o;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
const a =
|
|
62
|
+
function On(e, t, n) {
|
|
63
|
+
const a = Nn(e, n), s = Nn(t, n), o = +a - Cn(a), i = +s - Cn(s);
|
|
64
64
|
return Math.round((o - i) / Ha);
|
|
65
65
|
}
|
|
66
66
|
function Ht(e, t) {
|
|
@@ -68,37 +68,37 @@ function Ht(e, t) {
|
|
|
68
68
|
return n.getFullYear() - a.getFullYear();
|
|
69
69
|
}
|
|
70
70
|
function to(e, t) {
|
|
71
|
-
const n = ge(e), a = ge(t), s =
|
|
71
|
+
const n = ge(e), a = ge(t), s = Tn(n, a), o = Math.abs(Ct(n, a));
|
|
72
72
|
n.setDate(n.getDate() - s * o);
|
|
73
|
-
const i = +(
|
|
73
|
+
const i = +(Tn(n, a) === -s), c = s * (o - i);
|
|
74
74
|
return c === 0 ? 0 : c;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Tn(e, t) {
|
|
77
77
|
const n = e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate() || e.getHours() - t.getHours() || e.getMinutes() - t.getMinutes() || e.getSeconds() - t.getSeconds() || e.getMilliseconds() - t.getMilliseconds();
|
|
78
78
|
return n < 0 ? -1 : n > 0 ? 1 : n;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function fn(e) {
|
|
81
81
|
return (t) => {
|
|
82
82
|
const a = (e ? Math[e] : Math.trunc)(t);
|
|
83
83
|
return a === 0 ? 0 : a;
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function mn(e, t) {
|
|
87
87
|
return +ge(e) - +ge(t);
|
|
88
88
|
}
|
|
89
|
-
function Tn(e, t, n) {
|
|
90
|
-
const a = fn(e, t) / Wa;
|
|
91
|
-
return dn(n == null ? void 0 : n.roundingMethod)(a);
|
|
92
|
-
}
|
|
93
89
|
function Mn(e, t, n) {
|
|
94
|
-
const a =
|
|
95
|
-
return
|
|
90
|
+
const a = mn(e, t) / Wa;
|
|
91
|
+
return fn(n == null ? void 0 : n.roundingMethod)(a);
|
|
92
|
+
}
|
|
93
|
+
function Ln(e, t, n) {
|
|
94
|
+
const a = mn(e, t) / Ua;
|
|
95
|
+
return fn(n == null ? void 0 : n.roundingMethod)(a);
|
|
96
96
|
}
|
|
97
97
|
function Wt(e, t, n) {
|
|
98
|
-
const a =
|
|
99
|
-
return
|
|
98
|
+
const a = mn(e, t) / 1e3;
|
|
99
|
+
return fn(n == null ? void 0 : n.roundingMethod)(a);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function tn(e, t) {
|
|
102
102
|
const n = ge(e);
|
|
103
103
|
if (isNaN(n.getTime()))
|
|
104
104
|
throw new RangeError("Invalid time value");
|
|
@@ -129,10 +129,10 @@ function ro(e, t, n) {
|
|
|
129
129
|
let a = 0, s;
|
|
130
130
|
const o = ge(e), i = ge(t);
|
|
131
131
|
if (n != null && n.unit)
|
|
132
|
-
s = n == null ? void 0 : n.unit, s === "second" ? a = Wt(o, i) : s === "minute" ? a =
|
|
132
|
+
s = n == null ? void 0 : n.unit, s === "second" ? a = Wt(o, i) : s === "minute" ? a = Ln(o, i) : s === "hour" ? a = Mn(o, i) : s === "day" ? a = Ct(o, i) : s === "week" ? a = On(o, i) : s === "month" ? a = En(o, i) : s === "quarter" ? a = Bt(o, i) : s === "year" && (a = Ht(o, i));
|
|
133
133
|
else {
|
|
134
134
|
const l = Wt(o, i);
|
|
135
|
-
Math.abs(l) < za ? (a = Wt(o, i), s = "second") : Math.abs(l) < Ga ? (a =
|
|
135
|
+
Math.abs(l) < za ? (a = Wt(o, i), s = "second") : Math.abs(l) < Ga ? (a = Ln(o, i), s = "minute") : Math.abs(l) < Ya && Math.abs(Ct(o, i)) < 1 ? (a = Mn(o, i), s = "hour") : Math.abs(l) < Ka && (a = Ct(o, i)) && Math.abs(a) < 7 ? s = "day" : Math.abs(l) < qa ? (a = On(o, i), s = "week") : Math.abs(l) < Qa ? (a = En(o, i), s = "month") : Math.abs(l) < Za && Bt(o, i) < 4 ? (a = Bt(o, i), s = "quarter") : (a = Ht(o, i), s = "year");
|
|
136
136
|
}
|
|
137
137
|
return new Intl.RelativeTimeFormat(n == null ? void 0 : n.locale, {
|
|
138
138
|
localeMatcher: n == null ? void 0 : n.localeMatcher,
|
|
@@ -170,7 +170,7 @@ var so = function(e, t, n, a, s, o, i, c) {
|
|
|
170
170
|
throw l.framesToPop = 1, l;
|
|
171
171
|
}
|
|
172
172
|
}, oo = so;
|
|
173
|
-
const
|
|
173
|
+
const Rn = /* @__PURE__ */ Ja(oo);
|
|
174
174
|
function ut(...e) {
|
|
175
175
|
return e.filter((t) => t != null).reduce((t, n) => {
|
|
176
176
|
if (typeof n != "function")
|
|
@@ -187,13 +187,13 @@ const io = {
|
|
|
187
187
|
function lo(e, t) {
|
|
188
188
|
const n = `offset${e[0].toUpperCase()}${e.slice(1)}`, a = t[n], s = io[e];
|
|
189
189
|
return a + // @ts-ignore
|
|
190
|
-
parseInt(
|
|
191
|
-
parseInt(
|
|
190
|
+
parseInt(kn(t, s[0]), 10) + // @ts-ignore
|
|
191
|
+
parseInt(kn(t, s[1]), 10);
|
|
192
192
|
}
|
|
193
193
|
const co = {
|
|
194
194
|
[Xa]: "collapse",
|
|
195
195
|
[dr]: "collapsing",
|
|
196
|
-
[
|
|
196
|
+
[sn]: "collapsing",
|
|
197
197
|
[fr]: "collapse show"
|
|
198
198
|
}, Fr = /* @__PURE__ */ pe.forwardRef(({
|
|
199
199
|
onEnter: e,
|
|
@@ -278,7 +278,7 @@ function mo(e, t) {
|
|
|
278
278
|
function ho(e) {
|
|
279
279
|
return !e || e.trim() === "#";
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function hn({
|
|
282
282
|
tagName: e,
|
|
283
283
|
disabled: t,
|
|
284
284
|
href: n,
|
|
@@ -328,7 +328,7 @@ const Mr = /* @__PURE__ */ K.forwardRef((e, t) => {
|
|
|
328
328
|
} = e, s = mo(e, fo);
|
|
329
329
|
const [o, {
|
|
330
330
|
tagName: i
|
|
331
|
-
}] =
|
|
331
|
+
}] = hn(Object.assign({
|
|
332
332
|
tagName: n,
|
|
333
333
|
disabled: a
|
|
334
334
|
}, s));
|
|
@@ -350,11 +350,11 @@ function go(e, t) {
|
|
|
350
350
|
function xo(e) {
|
|
351
351
|
return !e || e.trim() === "#";
|
|
352
352
|
}
|
|
353
|
-
const
|
|
353
|
+
const pn = /* @__PURE__ */ K.forwardRef((e, t) => {
|
|
354
354
|
let {
|
|
355
355
|
onKeyDown: n
|
|
356
356
|
} = e, a = go(e, po);
|
|
357
|
-
const [s] =
|
|
357
|
+
const [s] = hn(Object.assign({
|
|
358
358
|
tagName: "a"
|
|
359
359
|
}, a)), o = Oe((i) => {
|
|
360
360
|
s.onKeyDown(i), n == null || n(i);
|
|
@@ -369,11 +369,11 @@ const hn = /* @__PURE__ */ K.forwardRef((e, t) => {
|
|
|
369
369
|
onKeyDown: n
|
|
370
370
|
}));
|
|
371
371
|
});
|
|
372
|
-
|
|
372
|
+
pn.displayName = "Anchor";
|
|
373
373
|
const Lr = /* @__PURE__ */ K.forwardRef(({
|
|
374
374
|
className: e,
|
|
375
375
|
bsPrefix: t,
|
|
376
|
-
as: n =
|
|
376
|
+
as: n = pn,
|
|
377
377
|
...a
|
|
378
378
|
}, s) => (t = se(t, "alert-link"), /* @__PURE__ */ r.jsx(n, {
|
|
379
379
|
ref: s,
|
|
@@ -392,13 +392,13 @@ const Rr = /* @__PURE__ */ K.forwardRef((e, t) => {
|
|
|
392
392
|
variant: l = "primary",
|
|
393
393
|
onClose: u,
|
|
394
394
|
dismissible: d,
|
|
395
|
-
transition: m =
|
|
395
|
+
transition: m = Jt,
|
|
396
396
|
...p
|
|
397
397
|
} = mr(e, {
|
|
398
398
|
show: "onClose"
|
|
399
399
|
}), g = se(n, "alert"), v = Oe((j) => {
|
|
400
400
|
u && u(!1, j);
|
|
401
|
-
}), x = m === !0 ?
|
|
401
|
+
}), x = m === !0 ? Jt : m, h = /* @__PURE__ */ r.jsxs("div", {
|
|
402
402
|
role: "alert",
|
|
403
403
|
...x ? void 0 : p,
|
|
404
404
|
ref: t,
|
|
@@ -433,7 +433,7 @@ const vo = Object.assign(Rr, {
|
|
|
433
433
|
}, l) => {
|
|
434
434
|
const u = se(t, "btn"), [d, {
|
|
435
435
|
tagName: m
|
|
436
|
-
}] =
|
|
436
|
+
}] = hn({
|
|
437
437
|
tagName: e,
|
|
438
438
|
disabled: o,
|
|
439
439
|
...c
|
|
@@ -447,7 +447,7 @@ const vo = Object.assign(Rr, {
|
|
|
447
447
|
});
|
|
448
448
|
});
|
|
449
449
|
gt.displayName = "Button";
|
|
450
|
-
const
|
|
450
|
+
const gn = /* @__PURE__ */ K.forwardRef(({
|
|
451
451
|
className: e,
|
|
452
452
|
bsPrefix: t,
|
|
453
453
|
as: n = "div",
|
|
@@ -457,7 +457,7 @@ const pn = /* @__PURE__ */ K.forwardRef(({
|
|
|
457
457
|
className: y(e, t),
|
|
458
458
|
...a
|
|
459
459
|
})));
|
|
460
|
-
|
|
460
|
+
gn.displayName = "CardBody";
|
|
461
461
|
const Ar = /* @__PURE__ */ K.forwardRef(({
|
|
462
462
|
className: e,
|
|
463
463
|
bsPrefix: t,
|
|
@@ -581,17 +581,17 @@ const Yr = /* @__PURE__ */ K.forwardRef(({
|
|
|
581
581
|
ref: u,
|
|
582
582
|
...l,
|
|
583
583
|
className: y(t, d, n && `bg-${n}`, a && `text-${a}`, s && `border-${s}`),
|
|
584
|
-
children: o ? /* @__PURE__ */ r.jsx(
|
|
584
|
+
children: o ? /* @__PURE__ */ r.jsx(gn, {
|
|
585
585
|
children: i
|
|
586
586
|
}) : i
|
|
587
587
|
});
|
|
588
588
|
});
|
|
589
589
|
Yr.displayName = "Card";
|
|
590
|
-
const
|
|
590
|
+
const An = Object.assign(Yr, {
|
|
591
591
|
Img: Br,
|
|
592
592
|
Title: Gr,
|
|
593
593
|
Subtitle: Ur,
|
|
594
|
-
Body:
|
|
594
|
+
Body: gn,
|
|
595
595
|
Link: Wr,
|
|
596
596
|
Text: zr,
|
|
597
597
|
Header: Pr,
|
|
@@ -733,19 +733,19 @@ function Mo() {
|
|
|
733
733
|
const Zr = (e) => {
|
|
734
734
|
var t;
|
|
735
735
|
return ((t = e.getAttribute("role")) == null ? void 0 : t.toLowerCase()) === "menu";
|
|
736
|
-
},
|
|
736
|
+
}, Vn = () => {
|
|
737
737
|
};
|
|
738
738
|
function Jr() {
|
|
739
739
|
const e = Eo(), {
|
|
740
740
|
show: t = !1,
|
|
741
|
-
toggle: n =
|
|
741
|
+
toggle: n = Vn,
|
|
742
742
|
setToggle: a,
|
|
743
743
|
menuElement: s
|
|
744
744
|
} = Z(Tt) || {}, o = D((c) => {
|
|
745
745
|
n(!t, c);
|
|
746
746
|
}, [t, n]), i = {
|
|
747
747
|
id: e,
|
|
748
|
-
ref: a ||
|
|
748
|
+
ref: a || Vn,
|
|
749
749
|
onClick: o,
|
|
750
750
|
"aria-expanded": !!t
|
|
751
751
|
};
|
|
@@ -763,7 +763,7 @@ function Xr({
|
|
|
763
763
|
});
|
|
764
764
|
}
|
|
765
765
|
Xr.displayName = "DropdownToggle";
|
|
766
|
-
const
|
|
766
|
+
const nn = /* @__PURE__ */ K.createContext(null), Pn = (e, t = null) => e != null ? String(e) : t || null, ea = /* @__PURE__ */ K.createContext(null);
|
|
767
767
|
ea.displayName = "NavContext";
|
|
768
768
|
const Lo = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
769
769
|
function Ro(e, t) {
|
|
@@ -782,9 +782,9 @@ function ta({
|
|
|
782
782
|
disabled: a,
|
|
783
783
|
onClick: s
|
|
784
784
|
}) {
|
|
785
|
-
const o = Z(
|
|
785
|
+
const o = Z(nn), i = Z(ea), {
|
|
786
786
|
activeKey: c
|
|
787
|
-
} = i || {}, l =
|
|
787
|
+
} = i || {}, l = Pn(e, t), u = n == null && e != null ? Pn(c) === l : n;
|
|
788
788
|
return [{
|
|
789
789
|
onClick: Oe((m) => {
|
|
790
790
|
a || (s == null || s(m), o && !m.isPropagationStopped() && o(l, m));
|
|
@@ -816,7 +816,7 @@ const na = /* @__PURE__ */ K.forwardRef((e, t) => {
|
|
|
816
816
|
}, l));
|
|
817
817
|
});
|
|
818
818
|
na.displayName = "DropdownItem";
|
|
819
|
-
function
|
|
819
|
+
function Bn() {
|
|
820
820
|
const e = bo(), t = J(null), n = D((a) => {
|
|
821
821
|
t.current = a, e();
|
|
822
822
|
}, [e]);
|
|
@@ -832,7 +832,7 @@ function wt({
|
|
|
832
832
|
placement: i = "bottom-start",
|
|
833
833
|
children: c
|
|
834
834
|
}) {
|
|
835
|
-
const l = os(), [u, d] = wo(t, e, a), [m, p] =
|
|
835
|
+
const l = os(), [u, d] = wo(t, e, a), [m, p] = Bn(), g = m.current, [v, x] = Bn(), h = v.current, j = is(u), w = J(null), f = J(!1), _ = Z(nn), C = D((N, E, A = E == null ? void 0 : E.type) => {
|
|
836
836
|
d(N, {
|
|
837
837
|
originalEvent: E,
|
|
838
838
|
source: A
|
|
@@ -856,7 +856,7 @@ function wt({
|
|
|
856
856
|
let E = o;
|
|
857
857
|
if (E == null && (E = m.current && Zr(m.current) ? "keyboard" : !1), E === !1 || E === "keyboard" && !/^key.+$/.test(N))
|
|
858
858
|
return;
|
|
859
|
-
const A =
|
|
859
|
+
const A = Sn(m.current, s)[0];
|
|
860
860
|
A && A.focus && A.focus();
|
|
861
861
|
});
|
|
862
862
|
V(() => {
|
|
@@ -866,7 +866,7 @@ function wt({
|
|
|
866
866
|
});
|
|
867
867
|
const F = (N, E) => {
|
|
868
868
|
if (!m.current) return null;
|
|
869
|
-
const A =
|
|
869
|
+
const A = Sn(m.current, s);
|
|
870
870
|
let T = A.indexOf(N) + E;
|
|
871
871
|
return T = Math.max(0, Math.min(T, A.length)), A[T];
|
|
872
872
|
};
|
|
@@ -908,7 +908,7 @@ function wt({
|
|
|
908
908
|
T === "Escape" && (N.preventDefault(), N.stopPropagation()), d(!1, B);
|
|
909
909
|
break;
|
|
910
910
|
}
|
|
911
|
-
}), /* @__PURE__ */ r.jsx(
|
|
911
|
+
}), /* @__PURE__ */ r.jsx(nn.Provider, {
|
|
912
912
|
value: S,
|
|
913
913
|
children: /* @__PURE__ */ r.jsx(Tt.Provider, {
|
|
914
914
|
value: k,
|
|
@@ -920,8 +920,8 @@ wt.displayName = "Dropdown";
|
|
|
920
920
|
wt.Menu = qr;
|
|
921
921
|
wt.Toggle = Xr;
|
|
922
922
|
wt.Item = na;
|
|
923
|
-
const
|
|
924
|
-
|
|
923
|
+
const xn = /* @__PURE__ */ K.createContext({});
|
|
924
|
+
xn.displayName = "DropdownContext";
|
|
925
925
|
const ra = /* @__PURE__ */ K.forwardRef(({
|
|
926
926
|
className: e,
|
|
927
927
|
bsPrefix: t,
|
|
@@ -955,7 +955,7 @@ const sa = /* @__PURE__ */ K.forwardRef(({
|
|
|
955
955
|
disabled: a = !1,
|
|
956
956
|
onClick: s,
|
|
957
957
|
active: o,
|
|
958
|
-
as: i =
|
|
958
|
+
as: i = pn,
|
|
959
959
|
...c
|
|
960
960
|
}, l) => {
|
|
961
961
|
const u = se(e, "dropdown-item"), [d, m] = ta({
|
|
@@ -986,14 +986,14 @@ const oa = /* @__PURE__ */ K.forwardRef(({
|
|
|
986
986
|
oa.displayName = "DropdownItemText";
|
|
987
987
|
const Mt = /* @__PURE__ */ K.createContext(null);
|
|
988
988
|
Mt.displayName = "InputGroupContext";
|
|
989
|
-
const
|
|
990
|
-
|
|
989
|
+
const vn = /* @__PURE__ */ K.createContext(null);
|
|
990
|
+
vn.displayName = "NavbarContext";
|
|
991
991
|
function ia(e, t) {
|
|
992
992
|
if (process.env.NODE_ENV === "production") return e;
|
|
993
993
|
const n = D((a) => {
|
|
994
|
-
a == null || !a.isReactComponent || (process.env.NODE_ENV !== "production" ?
|
|
994
|
+
a == null || !a.isReactComponent || (process.env.NODE_ENV !== "production" ? Rn(!1, `${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : Rn(!1));
|
|
995
995
|
}, [t]);
|
|
996
|
-
return
|
|
996
|
+
return on(n, e);
|
|
997
997
|
}
|
|
998
998
|
function la(e, t, n) {
|
|
999
999
|
const a = n ? "top-end" : "top-start", s = n ? "top-start" : "top-end", o = n ? "bottom-end" : "bottom-start", i = n ? "bottom-start" : "bottom-end", c = n ? "right-start" : "left-start", l = n ? "right-end" : "left-end", u = n ? "left-start" : "right-start", d = n ? "left-end" : "right-end";
|
|
@@ -1015,11 +1015,11 @@ const ca = /* @__PURE__ */ K.forwardRef(({
|
|
|
1015
1015
|
...d
|
|
1016
1016
|
}, m) => {
|
|
1017
1017
|
let p = !1;
|
|
1018
|
-
const g = Z(
|
|
1018
|
+
const g = Z(vn), v = se(e, "dropdown-menu"), {
|
|
1019
1019
|
align: x,
|
|
1020
1020
|
drop: h,
|
|
1021
1021
|
isRTL: j
|
|
1022
|
-
} = Z(
|
|
1022
|
+
} = Z(xn);
|
|
1023
1023
|
n = n || x;
|
|
1024
1024
|
const w = Z(Mt), f = [];
|
|
1025
1025
|
if (n)
|
|
@@ -1044,7 +1044,7 @@ const ca = /* @__PURE__ */ K.forwardRef(({
|
|
|
1044
1044
|
popperConfig: l,
|
|
1045
1045
|
placement: _
|
|
1046
1046
|
});
|
|
1047
|
-
if (C.ref =
|
|
1047
|
+
if (C.ref = on(ia(m, "DropdownMenu"), C.ref), pr(() => {
|
|
1048
1048
|
$ && (k == null || k.update());
|
|
1049
1049
|
}, [$]), !S && !i && !w) return null;
|
|
1050
1050
|
typeof c != "string" && (C.show = $, C.close = () => b == null ? void 0 : b(!1), C.align = n);
|
|
@@ -1075,7 +1075,7 @@ const ua = /* @__PURE__ */ K.forwardRef(({
|
|
|
1075
1075
|
const c = se(e, "dropdown-toggle"), l = Z(Tt);
|
|
1076
1076
|
a !== void 0 && (o.bsPrefix = a);
|
|
1077
1077
|
const [u] = Jr();
|
|
1078
|
-
return u.ref =
|
|
1078
|
+
return u.ref = on(u.ref, ia(i, "DropdownToggle")), /* @__PURE__ */ r.jsx(s, {
|
|
1079
1079
|
className: y(n, c, t && `${c}-split`, (l == null ? void 0 : l.show) && "show"),
|
|
1080
1080
|
...u,
|
|
1081
1081
|
...o
|
|
@@ -1114,7 +1114,7 @@ const da = /* @__PURE__ */ K.forwardRef((e, t) => {
|
|
|
1114
1114
|
end: "dropend",
|
|
1115
1115
|
start: "dropstart"
|
|
1116
1116
|
};
|
|
1117
|
-
return /* @__PURE__ */ r.jsx(
|
|
1117
|
+
return /* @__PURE__ */ r.jsx(xn.Provider, {
|
|
1118
1118
|
value: C,
|
|
1119
1119
|
children: /* @__PURE__ */ r.jsx(wt, {
|
|
1120
1120
|
placement: _,
|
|
@@ -1185,20 +1185,20 @@ const kt = Object.assign(fa, {
|
|
|
1185
1185
|
Text: Lt,
|
|
1186
1186
|
Radio: Vo,
|
|
1187
1187
|
Checkbox: Ao
|
|
1188
|
-
}),
|
|
1188
|
+
}), rn = /* @__PURE__ */ new WeakMap(), Hn = (e, t) => {
|
|
1189
1189
|
if (!e || !t) return;
|
|
1190
|
-
const n =
|
|
1191
|
-
|
|
1190
|
+
const n = rn.get(t) || /* @__PURE__ */ new Map();
|
|
1191
|
+
rn.set(t, n);
|
|
1192
1192
|
let a = n.get(e);
|
|
1193
1193
|
return a || (a = t.matchMedia(e), a.refCount = 0, n.set(a.media, a)), a;
|
|
1194
1194
|
};
|
|
1195
1195
|
function Po(e, t = typeof window > "u" ? void 0 : window) {
|
|
1196
|
-
const n =
|
|
1196
|
+
const n = Hn(e, t), [a, s] = R(() => n ? n.matches : !1);
|
|
1197
1197
|
return pr(() => {
|
|
1198
|
-
let o =
|
|
1198
|
+
let o = Hn(e, t);
|
|
1199
1199
|
if (!o)
|
|
1200
1200
|
return s(!1);
|
|
1201
|
-
let i =
|
|
1201
|
+
let i = rn.get(t);
|
|
1202
1202
|
const c = () => {
|
|
1203
1203
|
s(o.matches);
|
|
1204
1204
|
};
|
|
@@ -1253,7 +1253,7 @@ const Ho = Bo({
|
|
|
1253
1253
|
})));
|
|
1254
1254
|
ma.displayName = "OffcanvasBody";
|
|
1255
1255
|
const Wo = {
|
|
1256
|
-
[
|
|
1256
|
+
[sn]: "show",
|
|
1257
1257
|
[fr]: "show"
|
|
1258
1258
|
}, ha = /* @__PURE__ */ K.forwardRef(({
|
|
1259
1259
|
bsPrefix: e,
|
|
@@ -1275,7 +1275,7 @@ const Wo = {
|
|
|
1275
1275
|
childRef: n.ref,
|
|
1276
1276
|
children: (u, d) => /* @__PURE__ */ K.cloneElement(n, {
|
|
1277
1277
|
...d,
|
|
1278
|
-
className: y(t, n.props.className, (u ===
|
|
1278
|
+
className: y(t, n.props.className, (u === sn || u === dr) && `${e}-toggling`, Wo[u])
|
|
1279
1279
|
})
|
|
1280
1280
|
})));
|
|
1281
1281
|
ha.displayName = "OffcanvasToggling";
|
|
@@ -1310,7 +1310,7 @@ function zo(e) {
|
|
|
1310
1310
|
});
|
|
1311
1311
|
}
|
|
1312
1312
|
function Go(e) {
|
|
1313
|
-
return /* @__PURE__ */ r.jsx(
|
|
1313
|
+
return /* @__PURE__ */ r.jsx(Jt, {
|
|
1314
1314
|
...e
|
|
1315
1315
|
});
|
|
1316
1316
|
}
|
|
@@ -1349,7 +1349,7 @@ const xa = /* @__PURE__ */ K.forwardRef(({
|
|
|
1349
1349
|
e = se(e, "offcanvas");
|
|
1350
1350
|
const {
|
|
1351
1351
|
onToggle: T
|
|
1352
|
-
} = Z(
|
|
1352
|
+
} = Z(vn) || {}, [q, L] = R(!1), O = Ho(o || "xs", "up");
|
|
1353
1353
|
V(() => {
|
|
1354
1354
|
L(o ? i && !O : i);
|
|
1355
1355
|
}, [i, o, O]);
|
|
@@ -1409,7 +1409,7 @@ const xa = /* @__PURE__ */ K.forwardRef(({
|
|
|
1409
1409
|
});
|
|
1410
1410
|
});
|
|
1411
1411
|
xa.displayName = "Offcanvas";
|
|
1412
|
-
const
|
|
1412
|
+
const Wn = Object.assign(xa, {
|
|
1413
1413
|
Body: ma,
|
|
1414
1414
|
Header: pa,
|
|
1415
1415
|
Title: ga
|
|
@@ -1454,7 +1454,7 @@ const ya = /* @__PURE__ */ K.forwardRef(({
|
|
|
1454
1454
|
ya.displayName = "Placeholder";
|
|
1455
1455
|
const Re = Object.assign(ya, {
|
|
1456
1456
|
Button: ja
|
|
1457
|
-
}),
|
|
1457
|
+
}), jn = /* @__PURE__ */ K.forwardRef(({
|
|
1458
1458
|
bsPrefix: e,
|
|
1459
1459
|
variant: t,
|
|
1460
1460
|
animation: n = "border",
|
|
@@ -1472,18 +1472,18 @@ const Re = Object.assign(ya, {
|
|
|
1472
1472
|
className: y(o, l, a && `${l}-${a}`, t && `text-${t}`)
|
|
1473
1473
|
});
|
|
1474
1474
|
});
|
|
1475
|
-
|
|
1476
|
-
const
|
|
1475
|
+
jn.displayName = "Spinner";
|
|
1476
|
+
const Nu = ({ heading: e, content: t, placement: n, children: a, trigger: s, popoverClassName: o, ...i }) => /* @__PURE__ */ r.jsx(xs, { placement: n, overlay: /* @__PURE__ */ r.jsxs(Vt, { className: y("luminus-popover", o), onClick: (c) => c.stopPropagation(), children: [
|
|
1477
1477
|
e && /* @__PURE__ */ r.jsx(Vt.Header, { children: typeof e == "string" ? /* @__PURE__ */ r.jsx(X, { variant: "h6", className: "text-primary", children: e }) : e }),
|
|
1478
1478
|
/* @__PURE__ */ r.jsx(Vt.Body, { children: t })
|
|
1479
1479
|
] }), trigger: s ?? "hover", rootClose: !0, show: i.controlled ? i.isOpen : void 0, onToggle: i.controlled ? (c) => i.setIsOpen(c) : void 0, children: a }), Yo = ({ children: e, onStorno: t, noSpacer: n }) => {
|
|
1480
1480
|
const { texts: { formSubmit: a } } = Z(we);
|
|
1481
|
-
return /* @__PURE__ */ r.jsxs(
|
|
1482
|
-
/* @__PURE__ */ r.jsxs(
|
|
1481
|
+
return /* @__PURE__ */ r.jsxs(Ql, { noSpacer: n, children: [
|
|
1482
|
+
/* @__PURE__ */ r.jsxs($n, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
1483
1483
|
/* @__PURE__ */ r.jsx(vs, {}),
|
|
1484
1484
|
e
|
|
1485
1485
|
] }),
|
|
1486
|
-
t && /* @__PURE__ */ r.jsxs(
|
|
1486
|
+
t && /* @__PURE__ */ r.jsxs($n, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: t, children: [
|
|
1487
1487
|
/* @__PURE__ */ r.jsx(js, {}),
|
|
1488
1488
|
a.storno
|
|
1489
1489
|
] })
|
|
@@ -1499,7 +1499,7 @@ const _u = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
|
|
|
1499
1499
|
] }),
|
|
1500
1500
|
/* @__PURE__ */ r.jsx("input", { id: n, type: "file", accept: a, onChange: u, hidden: !0, multiple: c })
|
|
1501
1501
|
] });
|
|
1502
|
-
},
|
|
1502
|
+
}, Cu = ({ onUpload: e, accept: t, children: n, className: a, size: s = "md" }) => {
|
|
1503
1503
|
const o = D(async (c) => {
|
|
1504
1504
|
if (c.target.files)
|
|
1505
1505
|
try {
|
|
@@ -1533,7 +1533,7 @@ const _u = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
|
|
|
1533
1533
|
return d;
|
|
1534
1534
|
}, [n]);
|
|
1535
1535
|
return /* @__PURE__ */ r.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
1536
|
-
/* @__PURE__ */ r.jsx(ee, { onClick: () => o(-1), disabled: e.getFullYear() < a || e.getFullYear() === a && e.getMonth() <= 0, children: /* @__PURE__ */ r.jsx(
|
|
1536
|
+
/* @__PURE__ */ r.jsx(ee, { onClick: () => o(-1), disabled: e.getFullYear() < a || e.getFullYear() === a && e.getMonth() <= 0, children: /* @__PURE__ */ r.jsx(ln, {}) }),
|
|
1537
1537
|
/* @__PURE__ */ r.jsx(je.Select, { value: e.getMonth(), onChange: (l) => {
|
|
1538
1538
|
var u;
|
|
1539
1539
|
return ((u = l.target) == null ? void 0 : u.value) && t(ao(e, Number(l.target.value)));
|
|
@@ -1542,7 +1542,7 @@ const _u = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
|
|
|
1542
1542
|
var u;
|
|
1543
1543
|
return ((u = l.target) == null ? void 0 : u.value) && t(Er(e, Number(l.target.value)));
|
|
1544
1544
|
}, className: y(zt.select), children: i.map((l) => /* @__PURE__ */ r.jsx("option", { value: l, children: l }, l)) }),
|
|
1545
|
-
/* @__PURE__ */ r.jsx(ee, { onClick: () => o(1), disabled: e.getFullYear() > s || e.getFullYear() === s && e.getMonth() >= 11, children: /* @__PURE__ */ r.jsx(
|
|
1545
|
+
/* @__PURE__ */ r.jsx(ee, { onClick: () => o(1), disabled: e.getFullYear() > s || e.getFullYear() === s && e.getMonth() >= 11, children: /* @__PURE__ */ r.jsx(cn, {}) })
|
|
1546
1546
|
] });
|
|
1547
1547
|
}, Qo = "_select_pywmr_1", Zo = {
|
|
1548
1548
|
select: Qo
|
|
@@ -1557,19 +1557,19 @@ const _u = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
|
|
|
1557
1557
|
return c;
|
|
1558
1558
|
}, [n, a]);
|
|
1559
1559
|
return /* @__PURE__ */ r.jsxs("div", { className: y("card d-flex flex-row align-items-center m-0 p-1 gap-2", s ?? ""), children: [
|
|
1560
|
-
/* @__PURE__ */ r.jsx(ee, { onClick: () => o(-1), disabled: e.getFullYear() <= n, children: /* @__PURE__ */ r.jsx(
|
|
1560
|
+
/* @__PURE__ */ r.jsx(ee, { onClick: () => o(-1), disabled: e.getFullYear() <= n, children: /* @__PURE__ */ r.jsx(ln, {}) }),
|
|
1561
1561
|
/* @__PURE__ */ r.jsx(je.Select, { value: e.getFullYear(), onChange: (c) => {
|
|
1562
1562
|
var l;
|
|
1563
1563
|
return ((l = c.target) == null ? void 0 : l.value) && t(Er(e, Number(c.target.value)));
|
|
1564
1564
|
}, className: Zo.select, children: i.map((c) => /* @__PURE__ */ r.jsx("option", { value: c, children: c }, c)) }),
|
|
1565
|
-
/* @__PURE__ */ r.jsx(ee, { onClick: () => o(1), disabled: e.getFullYear() >= a, children: /* @__PURE__ */ r.jsx(
|
|
1565
|
+
/* @__PURE__ */ r.jsx(ee, { onClick: () => o(1), disabled: e.getFullYear() >= a, children: /* @__PURE__ */ r.jsx(cn, {}) })
|
|
1566
1566
|
] });
|
|
1567
1567
|
}, Xo = "_widget_etgh3_1", ei = {
|
|
1568
1568
|
widget: Xo
|
|
1569
1569
|
}, ti = ({ show: e, widgets: t, handleClose: n, onWidgetPicked: a, texts: s }) => /* @__PURE__ */ r.jsxs(_t, { show: e, onHide: () => n(), children: [
|
|
1570
1570
|
/* @__PURE__ */ r.jsx(_t.Header, { closeButton: !0, children: /* @__PURE__ */ r.jsx(_t.Title, { children: s.pickWidgetToAdd }) }),
|
|
1571
1571
|
/* @__PURE__ */ r.jsx(_t.Body, { children: /* @__PURE__ */ r.jsx("div", { className: "list-group", children: t.filter((o) => o.id >= 0).map((o) => /* @__PURE__ */ r.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => a(o.id), children: /* @__PURE__ */ r.jsx(X, { variant: "body", children: o.name }) })) }) })
|
|
1572
|
-
] }),
|
|
1572
|
+
] }), Un = ({ availableWidgets: e, onAdd: t, texts: n }) => {
|
|
1573
1573
|
const [a, s] = R(!1);
|
|
1574
1574
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1575
1575
|
/* @__PURE__ */ r.jsx("div", { className: y("luminus-empty-widget", ei.widget), children: /* @__PURE__ */ r.jsx(ee, { onClick: () => s(!0), children: /* @__PURE__ */ r.jsx(ws, {}) }) }),
|
|
@@ -1640,10 +1640,10 @@ const fi = (e) => (n) => {
|
|
|
1640
1640
|
}, mi = fi(di), hi = "_widget-card_e9tsb_1", pi = {
|
|
1641
1641
|
"widget-card": "_widget-card_e9tsb_1",
|
|
1642
1642
|
widgetCard: hi
|
|
1643
|
-
},
|
|
1643
|
+
}, zn = ({ children: e, title: t, headerContent: n }) => /* @__PURE__ */ r.jsx(xl, { className: y(pi.widgetCard, "luminus-widget"), title: t, headerContent: n, contentClassName: "h-100 overflow-auto", children: e }), gi = ({ children: e, title: t }) => {
|
|
1644
1644
|
const { texts: { widget: n } } = Z(we);
|
|
1645
|
-
return /* @__PURE__ */ r.jsx(mi, { fallback: /* @__PURE__ */ r.jsx(
|
|
1646
|
-
},
|
|
1645
|
+
return /* @__PURE__ */ r.jsx(mi, { fallback: /* @__PURE__ */ r.jsx(zn, { title: t, children: n.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ r.jsx(Us, { fallback: /* @__PURE__ */ r.jsx(zn, { title: t, children: /* @__PURE__ */ r.jsx(Js, {}) }), children: e }) });
|
|
1646
|
+
}, ku = ({ availableWidgets: e, editMode: t, defaultDashboardConfig: n }) => {
|
|
1647
1647
|
var d;
|
|
1648
1648
|
const { texts: { homeDashboard: a } } = Z(we), { dashboardConfig: s, onChangeDashboardConfig: o } = ni(n), i = D((m, p) => {
|
|
1649
1649
|
var g, v;
|
|
@@ -1673,7 +1673,7 @@ const fi = (e) => (n) => {
|
|
|
1673
1673
|
/* @__PURE__ */ r.jsx(ee, { color: "danger", onClick: () => c(p), className: y(Fe.removeIcon), children: /* @__PURE__ */ r.jsx(vr, {}) }),
|
|
1674
1674
|
/* @__PURE__ */ r.jsx(ee, { color: g ? "danger" : "primary", onClick: () => l(p), className: y(Fe.fullWidthIcon), children: /* @__PURE__ */ r.jsx(bs, {}) })
|
|
1675
1675
|
] }),
|
|
1676
|
-
m.id === -1 ? t && /* @__PURE__ */ r.jsx("div", { className: Fe.widgetWrapper, children: /* @__PURE__ */ r.jsx(
|
|
1676
|
+
m.id === -1 ? t && /* @__PURE__ */ r.jsx("div", { className: Fe.widgetWrapper, children: /* @__PURE__ */ r.jsx(Un, { availableWidgets: e, onAdd: (v) => i(p, v), texts: a }) }) : /* @__PURE__ */ r.jsx(gi, { title: m.title, children: /* @__PURE__ */ r.jsx(m.WidgetElement, { title: m.title }) }),
|
|
1677
1677
|
m.id > -1 && t && /* @__PURE__ */ r.jsx("div", { className: Fe.widgetEditOverlay })
|
|
1678
1678
|
] }, p) : /* @__PURE__ */ r.jsx(r.Fragment, {}), [
|
|
1679
1679
|
t,
|
|
@@ -1685,21 +1685,22 @@ const fi = (e) => (n) => {
|
|
|
1685
1685
|
]);
|
|
1686
1686
|
return /* @__PURE__ */ r.jsx("div", { className: Fe.dashboard, children: /* @__PURE__ */ r.jsxs("div", { className: Fe.widgetsGrid, children: [
|
|
1687
1687
|
(d = s.widgets) == null ? void 0 : d.map((m, p) => u(e.find((g) => g.id === m.widgetId), p, m.fullWidth)),
|
|
1688
|
-
t && /* @__PURE__ */ r.jsx(
|
|
1688
|
+
t && /* @__PURE__ */ r.jsx(Un, { availableWidgets: e, onAdd: (m) => {
|
|
1689
1689
|
var p;
|
|
1690
1690
|
return i((p = s.widgets) == null ? void 0 : p.length, m);
|
|
1691
1691
|
}, texts: a })
|
|
1692
1692
|
] }) });
|
|
1693
|
-
}, xi = "
|
|
1693
|
+
}, xi = "_badge_193ci_1", vi = "_sm_193ci_6", ji = "_md_193ci_10", yi = "_lg_193ci_14", wi = "_light_193ci_18", Gt = {
|
|
1694
1694
|
badge: xi,
|
|
1695
1695
|
sm: vi,
|
|
1696
1696
|
md: ji,
|
|
1697
|
-
lg: yi
|
|
1698
|
-
|
|
1697
|
+
lg: yi,
|
|
1698
|
+
light: wi
|
|
1699
|
+
}, Su = ({ children: e, color: t = "primary", size: n = "md", rounded: a, className: s, ...o }) => /* @__PURE__ */ r.jsx("span", { className: y(`luminus-badge badge bg-${t} ${s ?? ""}`, { "rounded-pill": a }, { "text-dark": t === "light" }, { [Gt.light]: t === "light" }, Gt.badge, Gt[n]), ...o, children: e }), bi = "_collapse-icon_1ahhn_1", _i = "_collapsed_1ahhn_6", Gn = {
|
|
1699
1700
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
1700
|
-
collapseIcon:
|
|
1701
|
-
collapsed:
|
|
1702
|
-
},
|
|
1701
|
+
collapseIcon: bi,
|
|
1702
|
+
collapsed: _i
|
|
1703
|
+
}, Ni = ({ title: e, children: t, className: n, ...a }) => {
|
|
1703
1704
|
const s = a.controlled ? !1 : a.defaultOpen ?? !1, [o, i] = R(s), c = a.controlled ? a.isOpen : o;
|
|
1704
1705
|
return V(() => {
|
|
1705
1706
|
i(s);
|
|
@@ -1714,7 +1715,7 @@ const fi = (e) => (n) => {
|
|
|
1714
1715
|
/* @__PURE__ */ r.jsx("hr", { className: `my-0 ${c ? "mt-3" : ""}` })
|
|
1715
1716
|
] });
|
|
1716
1717
|
};
|
|
1717
|
-
function
|
|
1718
|
+
function Ci(e, t, n) {
|
|
1718
1719
|
var a = this, s = J(null), o = J(0), i = J(null), c = J([]), l = J(), u = J(), d = J(e), m = J(!0);
|
|
1719
1720
|
d.current = e;
|
|
1720
1721
|
var p = typeof window < "u", g = !t && t !== 0 && p;
|
|
@@ -1765,43 +1766,43 @@ function Ni(e, t, n) {
|
|
|
1765
1766
|
}, [v, h, t, w, x, g, p, j]);
|
|
1766
1767
|
return f;
|
|
1767
1768
|
}
|
|
1768
|
-
function
|
|
1769
|
+
function ki(e, t) {
|
|
1769
1770
|
return e === t;
|
|
1770
1771
|
}
|
|
1771
|
-
function
|
|
1772
|
+
function Si(e, t) {
|
|
1772
1773
|
return t;
|
|
1773
1774
|
}
|
|
1774
1775
|
function ba(e, t, n) {
|
|
1775
|
-
var a =
|
|
1776
|
+
var a = ki, s = Sr(Si, e), o = s[0], i = s[1], c = Ci(D(function(u) {
|
|
1776
1777
|
return i(u);
|
|
1777
1778
|
}, [i]), t, n), l = J(e);
|
|
1778
1779
|
return a(l.current, e) || (c(e), l.current = e), a(o, e) && c.cancel(), [o, c];
|
|
1779
1780
|
}
|
|
1780
|
-
const
|
|
1781
|
-
wrapper:
|
|
1782
|
-
open:
|
|
1783
|
-
dropdown:
|
|
1781
|
+
const $i = "_wrapper_1kgb8_1", Di = "_open_1kgb8_9", Ii = "_dropdown_1kgb8_13", Ei = "_search-input-container_1kgb8_19", Fi = "_search-input_1kgb8_19", Oi = "_loading-container_1kgb8_25", Ti = "_items-container_1kgb8_32", Mi = "_header-row_1kgb8_38", Li = "_item_1kgb8_32", Ri = "_name_1kgb8_57", Ai = "_column-item_1kgb8_62", Vi = "_icon_1kgb8_66", Pi = "_action-buttons-container_1kgb8_74", Bi = "_reverse_1kgb8_82", Hi = "_action-button_1kgb8_74", ye = {
|
|
1782
|
+
wrapper: $i,
|
|
1783
|
+
open: Di,
|
|
1784
|
+
dropdown: Ii,
|
|
1784
1785
|
"search-input-container": "_search-input-container_1kgb8_19",
|
|
1785
|
-
searchInputContainer:
|
|
1786
|
+
searchInputContainer: Ei,
|
|
1786
1787
|
"search-input": "_search-input_1kgb8_19",
|
|
1787
|
-
searchInput:
|
|
1788
|
+
searchInput: Fi,
|
|
1788
1789
|
"loading-container": "_loading-container_1kgb8_25",
|
|
1789
|
-
loadingContainer:
|
|
1790
|
+
loadingContainer: Oi,
|
|
1790
1791
|
"items-container": "_items-container_1kgb8_32",
|
|
1791
|
-
itemsContainer:
|
|
1792
|
+
itemsContainer: Ti,
|
|
1792
1793
|
"header-row": "_header-row_1kgb8_38",
|
|
1793
|
-
headerRow:
|
|
1794
|
-
item:
|
|
1795
|
-
name:
|
|
1794
|
+
headerRow: Mi,
|
|
1795
|
+
item: Li,
|
|
1796
|
+
name: Ri,
|
|
1796
1797
|
"column-item": "_column-item_1kgb8_62",
|
|
1797
|
-
columnItem:
|
|
1798
|
-
icon:
|
|
1798
|
+
columnItem: Ai,
|
|
1799
|
+
icon: Vi,
|
|
1799
1800
|
"action-buttons-container": "_action-buttons-container_1kgb8_74",
|
|
1800
|
-
actionButtonsContainer:
|
|
1801
|
-
reverse:
|
|
1801
|
+
actionButtonsContainer: Pi,
|
|
1802
|
+
reverse: Bi,
|
|
1802
1803
|
"action-button": "_action-button_1kgb8_74",
|
|
1803
|
-
actionButton:
|
|
1804
|
-
},
|
|
1804
|
+
actionButton: Hi
|
|
1805
|
+
}, yn = ({ show: e, onCancel: t, items: n, currentSelection: a, onSelectionChange: s, onSearchQueryChange: o, texts: i, itemsNameWidth: c, additionalColumns: l, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: m, disabled: p, isLoading: g = !1, inputRef: v }) => {
|
|
1805
1806
|
var We;
|
|
1806
1807
|
const x = J(null), h = J(null), j = J(null), w = J(null), f = J(null), [_, C] = R(""), [S] = ba(_, 500), [, k] = R(!1), { copyToClipboard: $ } = Ks(), b = (We = v.current) == null ? void 0 : We.getBoundingClientRect(), F = (b == null ? void 0 : b.x) ?? 0, N = ((b == null ? void 0 : b.x) ?? 0) + ((b == null ? void 0 : b.width) ?? 0), E = (b == null ? void 0 : b.y) ?? 0, A = ((b == null ? void 0 : b.y) ?? 0) + ((b == null ? void 0 : b.height) ?? 0), T = (b == null ? void 0 : b.width) ?? 0, q = (b == null ? void 0 : b.height) ?? 0, L = 5, O = re(() => F ? F > window.innerWidth / 2 : !1, [F]), W = re(() => E ? E > window.innerHeight / 2 : !1, [E]);
|
|
1807
1808
|
V(() => {
|
|
@@ -1888,7 +1889,7 @@ const Si = "_wrapper_1kgb8_1", $i = "_open_1kgb8_9", Di = "_dropdown_1kgb8_13",
|
|
|
1888
1889
|
var de;
|
|
1889
1890
|
return C(((de = Y.target) == null ? void 0 : de.value) ?? "");
|
|
1890
1891
|
} }) }),
|
|
1891
|
-
g ? /* @__PURE__ */ r.jsx("div", { className: ye.loadingContainer, children: /* @__PURE__ */ r.jsx(
|
|
1892
|
+
g ? /* @__PURE__ */ r.jsx("div", { className: ye.loadingContainer, children: /* @__PURE__ */ r.jsx(jn, { animation: "border", variant: "primary" }) }) : n.length > 0 && /* @__PURE__ */ r.jsxs("div", { ref: f, className: y("items", ye.itemsContainer), children: [
|
|
1892
1893
|
l && l.length > 0 && /* @__PURE__ */ r.jsxs("div", { className: y("header-row border-bottom", ye.headerRow), children: [
|
|
1893
1894
|
/* @__PURE__ */ r.jsx("div", { className: ye.name }),
|
|
1894
1895
|
l == null ? void 0 : l.map((Y) => /* @__PURE__ */ r.jsx("div", { className: ye.columnItem, style: {
|
|
@@ -1912,12 +1913,12 @@ const Si = "_wrapper_1kgb8_1", $i = "_open_1kgb8_9", Di = "_dropdown_1kgb8_13",
|
|
|
1912
1913
|
] })
|
|
1913
1914
|
] }) }) })
|
|
1914
1915
|
] });
|
|
1915
|
-
},
|
|
1916
|
-
item:
|
|
1917
|
-
},
|
|
1916
|
+
}, Wi = "_item_1dy8x_1", _a = {
|
|
1917
|
+
item: Wi
|
|
1918
|
+
}, wn = ({ color: e = "primary", icon: t, className: n, children: a, ...s }) => /* @__PURE__ */ r.jsxs(xt.Item, { className: y(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n ?? ""}`, _a.item), ...s, children: [
|
|
1918
1919
|
t,
|
|
1919
1920
|
a
|
|
1920
|
-
] }), Na = (e) => /* @__PURE__ */ r.jsx(xt.Toggle, { ...e }),
|
|
1921
|
+
] }), Na = (e) => /* @__PURE__ */ r.jsx(xt.Toggle, { ...e }), $u = ({ color: e = "primary", icon: t = /* @__PURE__ */ r.jsx(xr, { size: 12 }), inputId: n = "context-file-input", accept: a = "*", onUpload: s, multiple: o, className: i, children: c, ...l }) => {
|
|
1921
1922
|
const u = (d) => {
|
|
1922
1923
|
d.target.files && (s(d.target.files), d.target.value = "");
|
|
1923
1924
|
};
|
|
@@ -1928,24 +1929,24 @@ const Si = "_wrapper_1kgb8_1", $i = "_open_1kgb8_9", Di = "_dropdown_1kgb8_13",
|
|
|
1928
1929
|
] }),
|
|
1929
1930
|
/* @__PURE__ */ r.jsx("input", { id: n, type: "file", accept: a, onChange: u, hidden: !0, multiple: o })
|
|
1930
1931
|
] });
|
|
1931
|
-
},
|
|
1932
|
-
divider:
|
|
1933
|
-
},
|
|
1934
|
-
dropdown:
|
|
1932
|
+
}, Ui = "_divider_1e6rk_1", zi = {
|
|
1933
|
+
divider: Ui
|
|
1934
|
+
}, Du = ({ className: e }) => /* @__PURE__ */ r.jsx(xt.Divider, { className: y("luminus-dropdown-divider", e, zi.divider) }), Gi = "_dropdown_1lk66_1", Yi = {
|
|
1935
|
+
dropdown: Gi
|
|
1935
1936
|
}, Ca = ({ toggle: e, children: t, ...n }) => /* @__PURE__ */ r.jsxs(xt, { ...n, children: [
|
|
1936
1937
|
e,
|
|
1937
|
-
/* @__PURE__ */ r.jsx(xt.Menu, { className: y("luminus-dropdown rounded shadow",
|
|
1938
|
-
] }),
|
|
1939
|
-
dropdown:
|
|
1940
|
-
open:
|
|
1938
|
+
/* @__PURE__ */ r.jsx(xt.Menu, { className: y("luminus-dropdown rounded shadow", Yi.dropdown), children: t })
|
|
1939
|
+
] }), Ki = ({ searchTypes: e, selectedType: t, setSelectedType: n }) => /* @__PURE__ */ r.jsx(Ca, { toggle: /* @__PURE__ */ r.jsx(Na, { as: Ns, icon: null, text: t == null ? void 0 : t.text }), children: e.map((a) => /* @__PURE__ */ r.jsx(wn, { icon: null, onClick: () => n(a.key), children: a.text }, a.key)) }), qi = "_dropdown_1ddrg_1", Qi = "_open_1ddrg_12", Zi = "_loading-container_1ddrg_15", Ji = "_groups-container_1ddrg_22", Xi = "_group_1ddrg_22", el = "_header_1ddrg_26", tl = "_item_1ddrg_33", ze = {
|
|
1940
|
+
dropdown: qi,
|
|
1941
|
+
open: Qi,
|
|
1941
1942
|
"loading-container": "_loading-container_1ddrg_15",
|
|
1942
|
-
loadingContainer:
|
|
1943
|
+
loadingContainer: Zi,
|
|
1943
1944
|
"groups-container": "_groups-container_1ddrg_22",
|
|
1944
|
-
groupsContainer:
|
|
1945
|
-
group:
|
|
1946
|
-
header:
|
|
1947
|
-
item:
|
|
1948
|
-
},
|
|
1945
|
+
groupsContainer: Ji,
|
|
1946
|
+
group: Xi,
|
|
1947
|
+
header: el,
|
|
1948
|
+
item: tl
|
|
1949
|
+
}, nl = ({ show: e, query: t, onCancel: n, groups: a, isLoading: s, searchTypes: o }) => {
|
|
1949
1950
|
const { texts: { appSearch: i } } = Z(we), c = J(null), l = D((u) => {
|
|
1950
1951
|
var m;
|
|
1951
1952
|
const d = (m = o.find((p) => p.key === u.type)) == null ? void 0 : m.toPath;
|
|
@@ -1953,7 +1954,7 @@ const Si = "_wrapper_1kgb8_1", $i = "_open_1kgb8_9", Di = "_dropdown_1kgb8_13",
|
|
|
1953
1954
|
}, [o]);
|
|
1954
1955
|
return Dr([c], n), /* @__PURE__ */ r.jsx("div", { ref: c, className: y("luminus-app-search-dropdown shadow rounded", ze.dropdown, {
|
|
1955
1956
|
[ze.open]: e
|
|
1956
|
-
}), children: s ? /* @__PURE__ */ r.jsx("div", { className: ze.loadingContainer, children: /* @__PURE__ */ r.jsx(
|
|
1957
|
+
}), children: s ? /* @__PURE__ */ r.jsx("div", { className: ze.loadingContainer, children: /* @__PURE__ */ r.jsx(jn, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ r.jsx("div", { className: ze.groupsContainer, children: a == null ? void 0 : a.map((u) => {
|
|
1957
1958
|
var d;
|
|
1958
1959
|
return /* @__PURE__ */ r.jsxs("div", { className: y(ze.group), children: [
|
|
1959
1960
|
/* @__PURE__ */ r.jsxs(Qe, { to: `/search?query=${t}&type=${u.key.category}`, className: y("group-header", ze.header), onClick: n, children: [
|
|
@@ -1981,17 +1982,17 @@ const Si = "_wrapper_1kgb8_1", $i = "_open_1kgb8_9", Di = "_dropdown_1kgb8_13",
|
|
|
1981
1982
|
))
|
|
1982
1983
|
] }, u.key.category);
|
|
1983
1984
|
}) }) });
|
|
1984
|
-
},
|
|
1985
|
+
}, rl = "_input-group_1lkfy_1", al = "_input-group-text_1lkfy_5", sl = "_left_1lkfy_9", ol = "_right_1lkfy_13", il = "_input_1lkfy_1", ll = "_submit-button_1lkfy_20", Ge = {
|
|
1985
1986
|
"input-group": "_input-group_1lkfy_1",
|
|
1986
|
-
inputGroup:
|
|
1987
|
+
inputGroup: rl,
|
|
1987
1988
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
1988
|
-
inputGroupText:
|
|
1989
|
-
left:
|
|
1990
|
-
right:
|
|
1991
|
-
input:
|
|
1989
|
+
inputGroupText: al,
|
|
1990
|
+
left: sl,
|
|
1991
|
+
right: ol,
|
|
1992
|
+
input: il,
|
|
1992
1993
|
"submit-button": "_submit-button_1lkfy_20",
|
|
1993
|
-
submitButton:
|
|
1994
|
-
},
|
|
1994
|
+
submitButton: ll
|
|
1995
|
+
}, cl = (e, t) => {
|
|
1995
1996
|
const n = yt(), [a, s] = R(!1), [o, i] = R([]), c = !e || !e.key, l = D(() => {
|
|
1996
1997
|
if (t.length < 3) {
|
|
1997
1998
|
i([]);
|
|
@@ -2006,9 +2007,9 @@ const Si = "_wrapper_1kgb8_1", $i = "_open_1kgb8_9", Di = "_dropdown_1kgb8_13",
|
|
|
2006
2007
|
return V(() => {
|
|
2007
2008
|
l();
|
|
2008
2009
|
}, [l]), { isLoading: a, searchItems: o };
|
|
2009
|
-
},
|
|
2010
|
+
}, Iu = ({ searchTypes: e, navigateFunction: t, currentPath: n }) => {
|
|
2010
2011
|
var x;
|
|
2011
|
-
const { texts: { appSearch: a } } = Z(we), [s, o] = R(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), i = re(() => e.find((h) => h.key === s) ?? null, [e, s]), [c, l] = R(""), [u, d] = ba(c, 500), { isLoading: m, searchItems: p } =
|
|
2012
|
+
const { texts: { appSearch: a } } = Z(we), [s, o] = R(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), i = re(() => e.find((h) => h.key === s) ?? null, [e, s]), [c, l] = R(""), [u, d] = ba(c, 500), { isLoading: m, searchItems: p } = cl(i, u), [g, v] = R(!1);
|
|
2012
2013
|
return V(() => {
|
|
2013
2014
|
(p.length > 0 || m) && v(!0);
|
|
2014
2015
|
}, [p, m]), V(() => {
|
|
@@ -2016,25 +2017,25 @@ const Si = "_wrapper_1kgb8_1", $i = "_open_1kgb8_9", Di = "_dropdown_1kgb8_13",
|
|
|
2016
2017
|
}, [n]), /* @__PURE__ */ r.jsx(je, { onSubmit: (h) => {
|
|
2017
2018
|
h.preventDefault(), h.stopPropagation(), d.flush(), v(!1), c.length > 2 && t(`/search?query=${c}${i && i.key && `&type=${i == null ? void 0 : i.key}`}`);
|
|
2018
2019
|
}, children: /* @__PURE__ */ r.jsxs(kt, { className: Ge.inputGroup, children: [
|
|
2019
|
-
/* @__PURE__ */ r.jsx(kt.Text, { className: y("p-1 rounded", Ge.inputGroupText, Ge.left), children: /* @__PURE__ */ r.jsx(
|
|
2020
|
+
/* @__PURE__ */ r.jsx(kt.Text, { className: y("p-1 rounded", Ge.inputGroupText, Ge.left), children: /* @__PURE__ */ r.jsx(Ki, { searchTypes: e, selectedType: i, setSelectedType: o }) }),
|
|
2020
2021
|
/* @__PURE__ */ r.jsx(je.Control, { placeholder: a.searchPlaceholder, type: "text", size: "sm", className: y("luminus-app-search-input", Ge.input), value: c, onChange: (h) => {
|
|
2021
2022
|
var j;
|
|
2022
2023
|
return l(((j = h.target) == null ? void 0 : j.value) ?? "");
|
|
2023
2024
|
}, onFocus: () => p.length > 0 && v(!0) }),
|
|
2024
2025
|
/* @__PURE__ */ r.jsx(kt.Text, { className: y("p-0 rounded", Ge.inputGroupText, Ge.right), children: /* @__PURE__ */ r.jsx("button", { type: "submit", className: y("text-primary", Ge.submitButton), children: /* @__PURE__ */ r.jsx(ks, {}) }) }),
|
|
2025
|
-
/* @__PURE__ */ r.jsx(
|
|
2026
|
+
/* @__PURE__ */ r.jsx(nl, { query: u, searchTypes: e, show: g, onCancel: () => v(!1), groups: p, isLoading: m })
|
|
2026
2027
|
] }) });
|
|
2027
|
-
},
|
|
2028
|
-
card:
|
|
2029
|
-
header:
|
|
2028
|
+
}, ul = "_card_19733_1", dl = "_header_19733_6", fl = "_header-content_19733_13", ml = "_title_19733_19", hl = "_collapse-icon_19733_22", pl = "_collapsed_19733_27", gl = "_content_19733_30", Ye = {
|
|
2029
|
+
card: ul,
|
|
2030
|
+
header: dl,
|
|
2030
2031
|
"header-content": "_header-content_19733_13",
|
|
2031
|
-
headerContent:
|
|
2032
|
-
title:
|
|
2032
|
+
headerContent: fl,
|
|
2033
|
+
title: ml,
|
|
2033
2034
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
2034
|
-
collapseIcon:
|
|
2035
|
-
collapsed:
|
|
2036
|
-
content:
|
|
2037
|
-
},
|
|
2035
|
+
collapseIcon: hl,
|
|
2036
|
+
collapsed: pl,
|
|
2037
|
+
content: gl
|
|
2038
|
+
}, xl = ({ title: e, headerContent: t, children: n, className: a, headerClassName: s, contentClassName: o, dontRenderIfNoChildren: i, ...c }) => {
|
|
2038
2039
|
const l = c.collapsible ? c.controlled ? !1 : c.defaultOpen ?? !1 : !0, [u, d] = R(l), m = c.collapsible ? c.controlled ? c.isOpen : u : !0;
|
|
2039
2040
|
V(() => {
|
|
2040
2041
|
d(l);
|
|
@@ -2061,7 +2062,7 @@ const Si = "_wrapper_1kgb8_1", $i = "_open_1kgb8_9", Di = "_dropdown_1kgb8_13",
|
|
|
2061
2062
|
}), children: n }) })
|
|
2062
2063
|
] });
|
|
2063
2064
|
};
|
|
2064
|
-
var
|
|
2065
|
+
var vl = !!(typeof window < "u" && window.document && window.document.createElement), jl = /* @__PURE__ */ function() {
|
|
2065
2066
|
function e(t, n) {
|
|
2066
2067
|
for (var a = 0; a < n.length; a++) {
|
|
2067
2068
|
var s = n[a];
|
|
@@ -2072,26 +2073,26 @@ var xl = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
2072
2073
|
return n && e(t.prototype, n), a && e(t, a), t;
|
|
2073
2074
|
};
|
|
2074
2075
|
}();
|
|
2075
|
-
function
|
|
2076
|
+
function yl(e, t) {
|
|
2076
2077
|
if (!(e instanceof t))
|
|
2077
2078
|
throw new TypeError("Cannot call a class as a function");
|
|
2078
2079
|
}
|
|
2079
|
-
function
|
|
2080
|
+
function wl(e, t) {
|
|
2080
2081
|
if (!e)
|
|
2081
2082
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2082
2083
|
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
2083
2084
|
}
|
|
2084
|
-
function
|
|
2085
|
+
function bl(e, t) {
|
|
2085
2086
|
if (typeof t != "function" && t !== null)
|
|
2086
2087
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
2087
2088
|
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);
|
|
2088
2089
|
}
|
|
2089
2090
|
var ka = function(e) {
|
|
2090
|
-
|
|
2091
|
+
bl(t, e);
|
|
2091
2092
|
function t() {
|
|
2092
|
-
return
|
|
2093
|
+
return yl(this, t), wl(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
|
|
2093
2094
|
}
|
|
2094
|
-
return
|
|
2095
|
+
return jl(t, [{
|
|
2095
2096
|
key: "componentWillUnmount",
|
|
2096
2097
|
value: function() {
|
|
2097
2098
|
this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null;
|
|
@@ -2099,7 +2100,7 @@ var ka = function(e) {
|
|
|
2099
2100
|
}, {
|
|
2100
2101
|
key: "render",
|
|
2101
2102
|
value: function() {
|
|
2102
|
-
return
|
|
2103
|
+
return vl ? (!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode)), It.createPortal(this.props.children, this.props.node || this.defaultNode)) : null;
|
|
2103
2104
|
}
|
|
2104
2105
|
}]), t;
|
|
2105
2106
|
}(pe.Component);
|
|
@@ -2107,7 +2108,7 @@ ka.propTypes = {
|
|
|
2107
2108
|
children: Dt.node.isRequired,
|
|
2108
2109
|
node: Dt.any
|
|
2109
2110
|
};
|
|
2110
|
-
var
|
|
2111
|
+
var _l = /* @__PURE__ */ function() {
|
|
2111
2112
|
function e(t, n) {
|
|
2112
2113
|
for (var a = 0; a < n.length; a++) {
|
|
2113
2114
|
var s = n[a];
|
|
@@ -2118,26 +2119,26 @@ var bl = /* @__PURE__ */ function() {
|
|
|
2118
2119
|
return n && e(t.prototype, n), a && e(t, a), t;
|
|
2119
2120
|
};
|
|
2120
2121
|
}();
|
|
2121
|
-
function
|
|
2122
|
+
function Nl(e, t) {
|
|
2122
2123
|
if (!(e instanceof t))
|
|
2123
2124
|
throw new TypeError("Cannot call a class as a function");
|
|
2124
2125
|
}
|
|
2125
|
-
function
|
|
2126
|
+
function Cl(e, t) {
|
|
2126
2127
|
if (!e)
|
|
2127
2128
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2128
2129
|
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
2129
2130
|
}
|
|
2130
|
-
function
|
|
2131
|
+
function kl(e, t) {
|
|
2131
2132
|
if (typeof t != "function" && t !== null)
|
|
2132
2133
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
2133
2134
|
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);
|
|
2134
2135
|
}
|
|
2135
2136
|
var Sa = function(e) {
|
|
2136
|
-
|
|
2137
|
+
kl(t, e);
|
|
2137
2138
|
function t() {
|
|
2138
|
-
return
|
|
2139
|
+
return Nl(this, t), Cl(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
|
|
2139
2140
|
}
|
|
2140
|
-
return
|
|
2141
|
+
return _l(t, [{
|
|
2141
2142
|
key: "componentDidMount",
|
|
2142
2143
|
value: function() {
|
|
2143
2144
|
this.renderPortal();
|
|
@@ -2170,30 +2171,30 @@ Sa.propTypes = {
|
|
|
2170
2171
|
children: Dt.node.isRequired,
|
|
2171
2172
|
node: Dt.any
|
|
2172
2173
|
};
|
|
2173
|
-
var
|
|
2174
|
-
It.createPortal ?
|
|
2175
|
-
const
|
|
2176
|
-
lightbox:
|
|
2177
|
-
show:
|
|
2178
|
-
header:
|
|
2174
|
+
var an = void 0;
|
|
2175
|
+
It.createPortal ? an = ka : an = Sa;
|
|
2176
|
+
const Sl = "_lightbox_14acg_1", $l = "_show_14acg_16", Dl = "_header_14acg_20", Il = "_photo-actions_14acg_26", El = "_photo-container_14acg_31", Fl = "_photo_14acg_26", Ol = "_nav-button_14acg_41", Tl = "_photos-preview_14acg_49", Ml = "_selected_14acg_62", Ll = "_default-indicator_14acg_66", Ce = {
|
|
2177
|
+
lightbox: Sl,
|
|
2178
|
+
show: $l,
|
|
2179
|
+
header: Dl,
|
|
2179
2180
|
"photo-actions": "_photo-actions_14acg_26",
|
|
2180
|
-
photoActions:
|
|
2181
|
+
photoActions: Il,
|
|
2181
2182
|
"photo-container": "_photo-container_14acg_31",
|
|
2182
|
-
photoContainer:
|
|
2183
|
-
photo:
|
|
2183
|
+
photoContainer: El,
|
|
2184
|
+
photo: Fl,
|
|
2184
2185
|
"nav-button": "_nav-button_14acg_41",
|
|
2185
|
-
navButton:
|
|
2186
|
+
navButton: Ol,
|
|
2186
2187
|
"photos-preview": "_photos-preview_14acg_49",
|
|
2187
|
-
photosPreview:
|
|
2188
|
-
selected:
|
|
2188
|
+
photosPreview: Tl,
|
|
2189
|
+
selected: Ml,
|
|
2189
2190
|
"default-indicator": "_default-indicator_14acg_66",
|
|
2190
|
-
defaultIndicator:
|
|
2191
|
-
},
|
|
2192
|
-
backdrop:
|
|
2193
|
-
show:
|
|
2191
|
+
defaultIndicator: Ll
|
|
2192
|
+
}, Rl = "_backdrop_3huvf_1", Al = "_show_3huvf_11", Yn = {
|
|
2193
|
+
backdrop: Rl,
|
|
2194
|
+
show: Al
|
|
2194
2195
|
}, $a = ({ show: e, onClick: t }) => /* @__PURE__ */ r.jsx("div", { className: y("luminus-backdrop", Yn.backdrop, {
|
|
2195
2196
|
[Yn.show]: e
|
|
2196
|
-
}), onClick: () => t && t() }), Da = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: s, ...o }) => /* @__PURE__ */ r.jsx("img", { ...o, alt: t ?? "", src: e ?? s }),
|
|
2197
|
+
}), onClick: () => t && t() }), Da = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: s, ...o }) => /* @__PURE__ */ r.jsx("img", { ...o, alt: t ?? "", src: e ?? s }), Vl = ({ show: e, onClose: t, photos: n, defaultIndex: a, uploadPhotosText: s, noPhotosText: o, onUploadPhotos: i, photoActions: c, baseUrl: l, customToken: u, placeholder: d, ImgComponent: m = Da }) => {
|
|
2197
2198
|
const p = J(null), [g, v] = R(a), x = n.at(g), h = g > 0, j = g < n.length - 1;
|
|
2198
2199
|
V(() => {
|
|
2199
2200
|
e && v(a);
|
|
@@ -2213,7 +2214,7 @@ const kl = "_lightbox_14acg_1", Sl = "_show_14acg_16", $l = "_header_14acg_20",
|
|
|
2213
2214
|
break;
|
|
2214
2215
|
}
|
|
2215
2216
|
}, [j, h, t]);
|
|
2216
|
-
return $r(w), /* @__PURE__ */ r.jsxs(
|
|
2217
|
+
return $r(w), /* @__PURE__ */ r.jsxs(an, { children: [
|
|
2217
2218
|
/* @__PURE__ */ r.jsx($a, { show: e, onClick: t }),
|
|
2218
2219
|
/* @__PURE__ */ r.jsxs("div", { ref: p, className: y("luminus-lightbox rounded shadow", Ce.lightbox, {
|
|
2219
2220
|
[Ce.show]: e
|
|
@@ -2237,9 +2238,9 @@ const kl = "_lightbox_14acg_1", Sl = "_show_14acg_16", $l = "_header_14acg_20",
|
|
|
2237
2238
|
] }),
|
|
2238
2239
|
n.length === 0 && /* @__PURE__ */ r.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ r.jsx(X, { variant: "body", children: o ?? "No photos available" }) }),
|
|
2239
2240
|
x && /* @__PURE__ */ r.jsxs("div", { className: Ce.photoContainer, children: [
|
|
2240
|
-
/* @__PURE__ */ r.jsx("div", { role: h ? "button" : void 0, className: y("align-items-start", Ce.navButton), onClick: () => h && v((f) => f - 1), children: h && /* @__PURE__ */ r.jsx(
|
|
2241
|
+
/* @__PURE__ */ r.jsx("div", { role: h ? "button" : void 0, className: y("align-items-start", Ce.navButton), onClick: () => h && v((f) => f - 1), children: h && /* @__PURE__ */ r.jsx(ln, { style: { fontSize: "40px" } }) }),
|
|
2241
2242
|
/* @__PURE__ */ r.jsx(m, { src: x.lgSrc, alt: x.alt, className: y("rounded", Ce.photo), baseUrl: l, customToken: u, placeholder: d }),
|
|
2242
|
-
/* @__PURE__ */ r.jsx("div", { role: j ? "button" : void 0, className: y("align-items-end", Ce.navButton), onClick: () => j && v((f) => f + 1), children: j && /* @__PURE__ */ r.jsx(
|
|
2243
|
+
/* @__PURE__ */ r.jsx("div", { role: j ? "button" : void 0, className: y("align-items-end", Ce.navButton), onClick: () => j && v((f) => f + 1), children: j && /* @__PURE__ */ r.jsx(cn, { style: { fontSize: "40px" } }) })
|
|
2243
2244
|
] }),
|
|
2244
2245
|
/* @__PURE__ */ r.jsx("div", { className: Ce.photosPreview, children: n.map((f, _) => /* @__PURE__ */ r.jsxs("div", { role: "button", onClick: () => v(_), className: "position-relative", children: [
|
|
2245
2246
|
/* @__PURE__ */ r.jsx(m, { role: _ !== g ? "button" : void 0, src: f.smSrc, alt: f.alt, className: y("rounded", Ce.photo, {
|
|
@@ -2249,7 +2250,7 @@ const kl = "_lightbox_14acg_1", Sl = "_show_14acg_16", $l = "_header_14acg_20",
|
|
|
2249
2250
|
] })) })
|
|
2250
2251
|
] })
|
|
2251
2252
|
] });
|
|
2252
|
-
},
|
|
2253
|
+
}, Pl = ({ photos: e, onUploadPhotos: t, uploadPhotosText: n, photoActions: a, baseUrl: s, customToken: o, placeholder: i, ImgComponent: c = Da }) => {
|
|
2253
2254
|
const [l, u] = R(null), d = l !== null ? e[l] : null, [m, p] = R(!1);
|
|
2254
2255
|
return V(() => {
|
|
2255
2256
|
if (e.length === 0) {
|
|
@@ -2260,30 +2261,30 @@ const kl = "_lightbox_14acg_1", Sl = "_show_14acg_16", $l = "_header_14acg_20",
|
|
|
2260
2261
|
u(g > -1 ? g : 0);
|
|
2261
2262
|
}, [e]), d ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2262
2263
|
/* @__PURE__ */ r.jsx(c, { role: "button", src: d.smSrc, alt: d.alt, className: "rounded w-100", onClick: () => p(!0), baseUrl: s, customToken: o, placeholder: i }),
|
|
2263
|
-
/* @__PURE__ */ r.jsx(
|
|
2264
|
+
/* @__PURE__ */ r.jsx(Vl, { show: m, onClose: () => p(!1), photos: e, defaultIndex: l ?? 0, uploadPhotosText: n, onUploadPhotos: t, photoActions: a, baseUrl: s, customToken: o, placeholder: i, ImgComponent: c })
|
|
2264
2265
|
] }) : t ? /* @__PURE__ */ r.jsx(wa, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
|
|
2265
2266
|
g.length > 0 && t(Array.from(g));
|
|
2266
2267
|
}, icon: /* @__PURE__ */ r.jsx(yr, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : null;
|
|
2267
|
-
},
|
|
2268
|
+
}, Eu = ({ children: e }) => {
|
|
2268
2269
|
var c, l, u;
|
|
2269
2270
|
const { useMsal: t, msalScopes: n } = Z($s), { isAuthenticated: a } = Ds(), { userLoginState: s } = Z(wr), o = s.state === Is.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;
|
|
2270
|
-
return t ? /* @__PURE__ */ r.jsx(Ys, { interactionType: Gs.Redirect, authenticationRequest: { scopes: n }, children: o || !a() ? /* @__PURE__ */ r.jsx(
|
|
2271
|
+
return t ? /* @__PURE__ */ r.jsx(Ys, { interactionType: Gs.Redirect, authenticationRequest: { scopes: n }, children: o || !a() ? /* @__PURE__ */ r.jsx(In, {}) : s.user ? i ? /* @__PURE__ */ r.jsx(r.Fragment, { children: e }) : /* @__PURE__ */ r.jsx(Nt, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ r.jsx(Nt, { to: "/no-user-login", replace: !0 }) }) : o ? /* @__PURE__ */ r.jsx(In, {}) : !a() || !s.user ? /* @__PURE__ */ r.jsx(Nt, { to: "/login", replace: !0 }) : i ? e : /* @__PURE__ */ r.jsx(Nt, { to: "/user-not-permitted", replace: !0 });
|
|
2271
2272
|
}, Ia = (e) => {
|
|
2272
2273
|
const { variant: t, children: n, className: a, size: s = "md", typographyVariant: o = s === "sm" ? "body2" : "body", ...i } = { ...e };
|
|
2273
2274
|
return /* @__PURE__ */ r.jsx(vo, { 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__ */ r.jsx(X, { variant: o, children: n }) });
|
|
2274
|
-
},
|
|
2275
|
-
item:
|
|
2275
|
+
}, Bl = "_item_1lf6j_1", Hl = "_level-success_1lf6j_4", Wl = "_level-info_1lf6j_10", Ul = "_level-warning_1lf6j_16", zl = "_level-danger_1lf6j_22", Gl = "_type-icon_1lf6j_28", Yt = {
|
|
2276
|
+
item: Bl,
|
|
2276
2277
|
"level-success": "_level-success_1lf6j_4",
|
|
2277
|
-
levelSuccess:
|
|
2278
|
+
levelSuccess: Hl,
|
|
2278
2279
|
"level-info": "_level-info_1lf6j_10",
|
|
2279
|
-
levelInfo:
|
|
2280
|
+
levelInfo: Wl,
|
|
2280
2281
|
"level-warning": "_level-warning_1lf6j_16",
|
|
2281
|
-
levelWarning:
|
|
2282
|
+
levelWarning: Ul,
|
|
2282
2283
|
"level-danger": "_level-danger_1lf6j_22",
|
|
2283
|
-
levelDanger:
|
|
2284
|
+
levelDanger: zl,
|
|
2284
2285
|
"type-icon": "_type-icon_1lf6j_28",
|
|
2285
|
-
typeIcon:
|
|
2286
|
-
},
|
|
2286
|
+
typeIcon: Gl
|
|
2287
|
+
}, Yl = ({ level: e, children: t, customIcon: n, noIcon: a }) => {
|
|
2287
2288
|
const { ProjectIconComponent: s } = Z(we), o = D(() => {
|
|
2288
2289
|
switch (e) {
|
|
2289
2290
|
case "info":
|
|
@@ -2296,11 +2297,11 @@ const kl = "_lightbox_14acg_1", Sl = "_show_14acg_16", $l = "_header_14acg_20",
|
|
|
2296
2297
|
return /* @__PURE__ */ r.jsx(s, { icon: "check" });
|
|
2297
2298
|
}
|
|
2298
2299
|
}, [s, e]);
|
|
2299
|
-
return /* @__PURE__ */ r.jsxs("div", { className: y("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !a },
|
|
2300
|
-
!a && /* @__PURE__ */ r.jsx("div", { className: y(
|
|
2300
|
+
return /* @__PURE__ */ r.jsxs("div", { className: y("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !a }, Yt.item, Yt[`level-${e}`]), children: [
|
|
2301
|
+
!a && /* @__PURE__ */ r.jsx("div", { className: y(Yt.typeIcon), children: n ?? o() }),
|
|
2301
2302
|
/* @__PURE__ */ r.jsx(X, { variant: "body2", className: "w-100", children: t })
|
|
2302
2303
|
] });
|
|
2303
|
-
},
|
|
2304
|
+
}, Fu = ({ version: e }) => /* @__PURE__ */ r.jsx("div", { className: "rounded", style: {
|
|
2304
2305
|
position: "fixed",
|
|
2305
2306
|
right: "0px",
|
|
2306
2307
|
bottom: "0px",
|
|
@@ -2311,28 +2312,28 @@ const kl = "_lightbox_14acg_1", Sl = "_show_14acg_16", $l = "_header_14acg_20",
|
|
|
2311
2312
|
}, children: /* @__PURE__ */ r.jsxs(X, { variant: "caption", className: "w-100 text-end", children: [
|
|
2312
2313
|
"verze ",
|
|
2313
2314
|
e
|
|
2314
|
-
] }) }),
|
|
2315
|
+
] }) }), Kl = "_submit-container_a9slg_1", ql = "_spacer_a9slg_14", Kn = {
|
|
2315
2316
|
"submit-container": "_submit-container_a9slg_1",
|
|
2316
|
-
submitContainer:
|
|
2317
|
-
spacer:
|
|
2318
|
-
},
|
|
2317
|
+
submitContainer: Kl,
|
|
2318
|
+
spacer: ql
|
|
2319
|
+
}, Ql = ({ children: e, noSpacer: t = !1 }) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2319
2320
|
!t && /* @__PURE__ */ r.jsx("div", { className: Kn.spacer }),
|
|
2320
2321
|
/* @__PURE__ */ r.jsx("div", { className: y("luminus-floating-action-container shadow", Kn.submitContainer), children: e })
|
|
2321
|
-
] }),
|
|
2322
|
-
timeline:
|
|
2322
|
+
] }), Zl = "_timeline_g1754_1", Jl = "_step-container_g1754_1", Xl = "_step-date_g1754_1", ec = "_step-content_g1754_4", tc = "_content-header_g1754_8", nc = "_content-text_g1754_11", rc = "_step-icon_g1754_14", Ke = {
|
|
2323
|
+
timeline: Zl,
|
|
2323
2324
|
"step-container": "_step-container_g1754_1",
|
|
2324
|
-
stepContainer:
|
|
2325
|
+
stepContainer: Jl,
|
|
2325
2326
|
"step-date": "_step-date_g1754_1",
|
|
2326
|
-
stepDate:
|
|
2327
|
+
stepDate: Xl,
|
|
2327
2328
|
"step-content": "_step-content_g1754_4",
|
|
2328
|
-
stepContent:
|
|
2329
|
+
stepContent: ec,
|
|
2329
2330
|
"content-header": "_content-header_g1754_8",
|
|
2330
|
-
contentHeader:
|
|
2331
|
+
contentHeader: tc,
|
|
2331
2332
|
"content-text": "_content-text_g1754_11",
|
|
2332
|
-
contentText:
|
|
2333
|
+
contentText: nc,
|
|
2333
2334
|
"step-icon": "_step-icon_g1754_14",
|
|
2334
|
-
stepIcon:
|
|
2335
|
-
},
|
|
2335
|
+
stepIcon: rc
|
|
2336
|
+
}, Ou = ({ steps: e }) => /* @__PURE__ */ r.jsx("div", { className: Ke.timeline, children: e.sort((t, n) => eo(t.date ?? /* @__PURE__ */ new Date(), n.date ?? /* @__PURE__ */ new Date())).map((t, n) => /* @__PURE__ */ r.jsxs("div", { className: y("row g-0 gx-3", Ke.stepContainer), children: [
|
|
2336
2337
|
/* @__PURE__ */ r.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ r.jsxs(X, { variant: "caption", className: y("h-100 d-flex flex-column align-items-end justify-content-center gap-0", Ke.stepDate), children: [
|
|
2337
2338
|
/* @__PURE__ */ r.jsx("div", { children: ht(t.date, "dd.MM.yyyy") }),
|
|
2338
2339
|
/* @__PURE__ */ r.jsx("div", { children: ht(t.date, "HH:mm") })
|
|
@@ -2345,7 +2346,7 @@ const kl = "_lightbox_14acg_1", Sl = "_show_14acg_16", $l = "_header_14acg_20",
|
|
|
2345
2346
|
t.text && /* @__PURE__ */ r.jsx(X, { variant: "body2", className: Ke.contentText, children: t.text }),
|
|
2346
2347
|
/* @__PURE__ */ r.jsx("div", { className: y("text-primary", Ke.stepIcon), children: t.icon ?? /* @__PURE__ */ r.jsx(Es, {}) })
|
|
2347
2348
|
] }) })
|
|
2348
|
-
] }, n)) }),
|
|
2349
|
+
] }, n)) }), ac = (e, t, n, a = !0) => {
|
|
2349
2350
|
const s = yt({ silent: a, differentBaseUrl: t, customToken: n }), [o, i] = R(!1), [c, l] = R(null), u = D(async (d) => {
|
|
2350
2351
|
i(!0), l(null), s.get(e, {
|
|
2351
2352
|
signal: d,
|
|
@@ -2363,7 +2364,7 @@ const kl = "_lightbox_14acg_1", Sl = "_show_14acg_16", $l = "_header_14acg_20",
|
|
|
2363
2364
|
};
|
|
2364
2365
|
}, [u]), { data: c, setData: l, reloadData: u, isLoading: o };
|
|
2365
2366
|
}, qn = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: s, ...o }) => {
|
|
2366
|
-
const { data: i } =
|
|
2367
|
+
const { data: i } = ac(e, n, a), [c, l] = R(null);
|
|
2367
2368
|
return V(() => {
|
|
2368
2369
|
let u = null;
|
|
2369
2370
|
return i !== null ? (u = URL.createObjectURL(i), l(u)) : l(null), () => {
|
|
@@ -2445,7 +2446,7 @@ const kl = "_lightbox_14acg_1", Sl = "_show_14acg_16", $l = "_header_14acg_20",
|
|
|
2445
2446
|
] }),
|
|
2446
2447
|
d && t && a && !u && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(ee, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ r.jsx(Ee, {}) }) })
|
|
2447
2448
|
] });
|
|
2448
|
-
},
|
|
2449
|
+
}, Tu = ({ InputContainer: e = Ze, items: t, defaultSelection: n, selectedItemNavigateTo: a, onSearchQueryChange: s, texts: o, isLoading: i, isNumber: c, onSelect: l, label: u, withoutLabel: d, size: m, dropdownItemsNameWidth: p, additionalColumns: g, hidden: v, disabled: x, displayIdAsName: h, CustomOnChangeComponent: j, className: w }) => {
|
|
2449
2450
|
var E, A;
|
|
2450
2451
|
const [f, _] = R(n), [C, S] = R(!1);
|
|
2451
2452
|
V(() => {
|
|
@@ -2485,9 +2486,9 @@ const kl = "_lightbox_14acg_1", Sl = "_show_14acg_16", $l = "_header_14acg_20",
|
|
|
2485
2486
|
j ?? null
|
|
2486
2487
|
] }) : null
|
|
2487
2488
|
] }),
|
|
2488
|
-
b.current && /* @__PURE__ */ r.jsx(
|
|
2489
|
+
b.current && /* @__PURE__ */ r.jsx(yn, { show: C, onCancel: () => S(!1), items: t, currentSelection: f, onSelectionChange: $, onSearchQueryChange: s, texts: o, itemsNameWidth: p, additionalColumns: g, isLoading: i, disabled: x, inputRef: b })
|
|
2489
2490
|
] }) });
|
|
2490
|
-
},
|
|
2491
|
+
}, Mu = ({ InputContainer: e = Ze, value: t, onChange: n, label: a, size: s, showClearIcon: o, clearValue: i, hidden: c, disabled: l, rows: u, withoutLabel: d, debounceMs: m, className: p }) => {
|
|
2491
2492
|
const g = D(() => {
|
|
2492
2493
|
if (!n)
|
|
2493
2494
|
return;
|
|
@@ -2513,7 +2514,7 @@ const kl = "_lightbox_14acg_1", Sl = "_show_14acg_16", $l = "_header_14acg_20",
|
|
|
2513
2514
|
/* @__PURE__ */ r.jsx(je.Control, { as: "textarea", size: s, value: m ? x : t ?? "", onChange: w, hidden: c, disabled: l, rows: u ?? 2, className: "w-100" }),
|
|
2514
2515
|
o && t && n && !l && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(ee, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ r.jsx(Ee, {}) }) })
|
|
2515
2516
|
] });
|
|
2516
|
-
},
|
|
2517
|
+
}, Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, label: s, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: p, step: g, stepperStep: v = 1, min: x, max: h }) => {
|
|
2517
2518
|
const j = D(() => {
|
|
2518
2519
|
if (!n)
|
|
2519
2520
|
return;
|
|
@@ -2561,7 +2562,7 @@ var vt;
|
|
|
2561
2562
|
})(vt || (vt = {}));
|
|
2562
2563
|
function Ae() {
|
|
2563
2564
|
}
|
|
2564
|
-
function
|
|
2565
|
+
function sc(e) {
|
|
2565
2566
|
var t, n = void 0;
|
|
2566
2567
|
return function() {
|
|
2567
2568
|
for (var a = [], s = arguments.length; s--; ) a[s] = arguments[s];
|
|
@@ -2576,16 +2577,16 @@ function jt(e) {
|
|
|
2576
2577
|
function rt(e) {
|
|
2577
2578
|
return e == null;
|
|
2578
2579
|
}
|
|
2579
|
-
function
|
|
2580
|
+
function oc(e) {
|
|
2580
2581
|
return typeof e == "number" && isNaN(e);
|
|
2581
2582
|
}
|
|
2582
2583
|
function Ta(e) {
|
|
2583
|
-
return rt(e) ||
|
|
2584
|
+
return rt(e) || oc(e) || typeof e == "number" && !isFinite(e);
|
|
2584
2585
|
}
|
|
2585
2586
|
function Ma(e) {
|
|
2586
2587
|
return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
2587
2588
|
}
|
|
2588
|
-
function
|
|
2589
|
+
function ic(e) {
|
|
2589
2590
|
switch (e) {
|
|
2590
2591
|
case "lakh":
|
|
2591
2592
|
return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
|
|
@@ -2596,11 +2597,11 @@ function oc(e) {
|
|
|
2596
2597
|
return /(\d)(?=(\d{3})+(?!\d))/g;
|
|
2597
2598
|
}
|
|
2598
2599
|
}
|
|
2599
|
-
function
|
|
2600
|
-
var a =
|
|
2600
|
+
function lc(e, t, n) {
|
|
2601
|
+
var a = ic(n), s = e.search(/[1-9]/);
|
|
2601
2602
|
return s = s === -1 ? e.length : s, e.substring(0, s) + e.substring(s, e.length).replace(a, "$1" + t);
|
|
2602
2603
|
}
|
|
2603
|
-
function
|
|
2604
|
+
function cc(e) {
|
|
2604
2605
|
var t = J(e);
|
|
2605
2606
|
t.current = e;
|
|
2606
2607
|
var n = J(function() {
|
|
@@ -2609,7 +2610,7 @@ function lc(e) {
|
|
|
2609
2610
|
});
|
|
2610
2611
|
return n.current;
|
|
2611
2612
|
}
|
|
2612
|
-
function
|
|
2613
|
+
function bn(e, t) {
|
|
2613
2614
|
t === void 0 && (t = !0);
|
|
2614
2615
|
var n = e[0] === "-", a = n && t;
|
|
2615
2616
|
e = e.replace("-", "");
|
|
@@ -2621,7 +2622,7 @@ function wn(e, t) {
|
|
|
2621
2622
|
addNegation: a
|
|
2622
2623
|
};
|
|
2623
2624
|
}
|
|
2624
|
-
function
|
|
2625
|
+
function uc(e) {
|
|
2625
2626
|
if (!e)
|
|
2626
2627
|
return e;
|
|
2627
2628
|
var t = e[0] === "-";
|
|
@@ -2650,7 +2651,7 @@ function Ra(e) {
|
|
|
2650
2651
|
function Zn(e, t, n) {
|
|
2651
2652
|
if (["", "-"].indexOf(e) !== -1)
|
|
2652
2653
|
return e;
|
|
2653
|
-
var a = (e.indexOf(".") !== -1 || n) && t, s =
|
|
2654
|
+
var a = (e.indexOf(".") !== -1 || n) && t, s = bn(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;
|
|
2654
2655
|
o && Number(d[0]) && (m = o.split("").reverse().reduce(function(x, h, j) {
|
|
2655
2656
|
return x.length > j ? (Number(x[0]) + Number(h)).toString() + x.substring(1, x.length) : h + x;
|
|
2656
2657
|
}, d[0]));
|
|
@@ -2666,7 +2667,7 @@ function qe(e, t) {
|
|
|
2666
2667
|
return e.selectionStart || e.selectionStart === 0 ? (e.focus(), e.setSelectionRange(t, t), !0) : (e.focus(), !1);
|
|
2667
2668
|
}
|
|
2668
2669
|
}
|
|
2669
|
-
var Aa =
|
|
2670
|
+
var Aa = sc(function(e, t) {
|
|
2670
2671
|
for (var n = 0, a = 0, s = e.length, o = t.length; e[n] === t[n] && n < s; )
|
|
2671
2672
|
n++;
|
|
2672
2673
|
for (; e[s - 1 - a] === t[o - 1 - a] && o - a > n && s - a > n; )
|
|
@@ -2675,23 +2676,23 @@ var Aa = ac(function(e, t) {
|
|
|
2675
2676
|
from: { start: n, end: s - a },
|
|
2676
2677
|
to: { start: n, end: o - a }
|
|
2677
2678
|
};
|
|
2678
|
-
}),
|
|
2679
|
+
}), dc = function(e, t) {
|
|
2679
2680
|
var n = Math.min(e.selectionStart, t);
|
|
2680
2681
|
return {
|
|
2681
2682
|
from: { start: n, end: e.selectionEnd },
|
|
2682
2683
|
to: { start: n, end: t }
|
|
2683
2684
|
};
|
|
2684
2685
|
};
|
|
2685
|
-
function
|
|
2686
|
+
function fc(e, t, n) {
|
|
2686
2687
|
return Math.min(Math.max(e, t), n);
|
|
2687
2688
|
}
|
|
2688
|
-
function
|
|
2689
|
+
function Kt(e) {
|
|
2689
2690
|
return Math.max(e.selectionStart, e.selectionEnd);
|
|
2690
2691
|
}
|
|
2691
|
-
function
|
|
2692
|
+
function mc() {
|
|
2692
2693
|
return typeof navigator < "u" && !(navigator.platform && /iPhone|iPod/.test(navigator.platform));
|
|
2693
2694
|
}
|
|
2694
|
-
function
|
|
2695
|
+
function hc(e) {
|
|
2695
2696
|
return {
|
|
2696
2697
|
from: {
|
|
2697
2698
|
start: 0,
|
|
@@ -2704,12 +2705,12 @@ function mc(e) {
|
|
|
2704
2705
|
lastValue: ""
|
|
2705
2706
|
};
|
|
2706
2707
|
}
|
|
2707
|
-
function
|
|
2708
|
+
function pc(e) {
|
|
2708
2709
|
var t = e.currentValue, n = e.formattedValue, a = e.currentValueIndex, s = e.formattedValueIndex;
|
|
2709
2710
|
return t[a] === n[s];
|
|
2710
2711
|
}
|
|
2711
|
-
function
|
|
2712
|
-
i === void 0 && (i =
|
|
2712
|
+
function gc(e, t, n, a, s, o, i) {
|
|
2713
|
+
i === void 0 && (i = pc);
|
|
2713
2714
|
var c = s.findIndex(function(_) {
|
|
2714
2715
|
return _;
|
|
2715
2716
|
}), l = e.slice(0, c);
|
|
@@ -2740,7 +2741,7 @@ function pc(e, t, n, a, s, o, i) {
|
|
|
2740
2741
|
}
|
|
2741
2742
|
function Jn(e, t, n, a) {
|
|
2742
2743
|
var s = e.length;
|
|
2743
|
-
if (t =
|
|
2744
|
+
if (t = fc(t, 0, s), a === "left") {
|
|
2744
2745
|
for (; t >= 0 && !n[t]; )
|
|
2745
2746
|
t--;
|
|
2746
2747
|
t === -1 && (t = n.indexOf(!0));
|
|
@@ -2751,7 +2752,7 @@ function Jn(e, t, n, a) {
|
|
|
2751
2752
|
}
|
|
2752
2753
|
return t === -1 && (t = s), t;
|
|
2753
2754
|
}
|
|
2754
|
-
function
|
|
2755
|
+
function xc(e) {
|
|
2755
2756
|
for (var t = Array.from({ length: e.length + 1 }).map(function() {
|
|
2756
2757
|
return !0;
|
|
2757
2758
|
}), n = 0, a = t.length; n < a; n++)
|
|
@@ -2760,7 +2761,7 @@ function gc(e) {
|
|
|
2760
2761
|
}
|
|
2761
2762
|
function Va(e, t, n, a, s, o) {
|
|
2762
2763
|
o === void 0 && (o = Ae);
|
|
2763
|
-
var i =
|
|
2764
|
+
var i = cc(function(v, x) {
|
|
2764
2765
|
var h, j;
|
|
2765
2766
|
return Ta(v) ? (j = "", h = "") : typeof v == "number" || x ? (j = typeof v == "number" ? Ra(v) : v, h = a(j)) : (j = s(v, void 0), h = a(j)), { formattedValue: h, numAsString: j };
|
|
2766
2767
|
}), c = R(function() {
|
|
@@ -2777,21 +2778,21 @@ function Va(e, t, n, a, s, o) {
|
|
|
2777
2778
|
u(g);
|
|
2778
2779
|
}, [g.formattedValue]), [l, d];
|
|
2779
2780
|
}
|
|
2780
|
-
function
|
|
2781
|
+
function vc(e) {
|
|
2781
2782
|
return e.replace(/[^0-9]/g, "");
|
|
2782
2783
|
}
|
|
2783
|
-
function
|
|
2784
|
+
function jc(e) {
|
|
2784
2785
|
return e;
|
|
2785
2786
|
}
|
|
2786
|
-
function
|
|
2787
|
+
function yc(e) {
|
|
2787
2788
|
var t = e.type;
|
|
2788
2789
|
t === void 0 && (t = "text");
|
|
2789
2790
|
var n = e.displayType;
|
|
2790
2791
|
n === void 0 && (n = "input");
|
|
2791
2792
|
var a = e.customInput, s = e.renderText, o = e.getInputRef, i = e.format;
|
|
2792
|
-
i === void 0 && (i =
|
|
2793
|
+
i === void 0 && (i = jc);
|
|
2793
2794
|
var c = e.removeFormatting;
|
|
2794
|
-
c === void 0 && (c =
|
|
2795
|
+
c === void 0 && (c = vc);
|
|
2795
2796
|
var l = e.defaultValue, u = e.valueIsNumericString, d = e.onValueChange, m = e.isAllowed, p = e.onChange;
|
|
2796
2797
|
p === void 0 && (p = Ae);
|
|
2797
2798
|
var g = e.onKeyDown;
|
|
@@ -2803,7 +2804,7 @@ function jc(e) {
|
|
|
2803
2804
|
var h = e.onBlur;
|
|
2804
2805
|
h === void 0 && (h = Ae);
|
|
2805
2806
|
var j = e.value, w = e.getCaretBoundary;
|
|
2806
|
-
w === void 0 && (w =
|
|
2807
|
+
w === void 0 && (w = xc);
|
|
2807
2808
|
var f = e.isValidInputCharacter;
|
|
2808
2809
|
f === void 0 && (f = jt);
|
|
2809
2810
|
var _ = e.isCharacterSame, C = Oa(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = Va(j, l, !!u, i, c, d), k = S[0], $ = k.formattedValue, b = k.numAsString, F = S[1], N = J(), E = J({ formattedValue: $, numAsString: b }), A = function(M, P) {
|
|
@@ -2831,14 +2832,14 @@ function jc(e) {
|
|
|
2831
2832
|
}, z = function(M, P, Q) {
|
|
2832
2833
|
return Jn(M, P, w(M), Q);
|
|
2833
2834
|
}, ue = function(M, P, Q) {
|
|
2834
|
-
var ie = w(P), be =
|
|
2835
|
+
var ie = w(P), be = gc(P, $, M, Q, ie, f, _);
|
|
2835
2836
|
return be = Jn(P, be, ie), be;
|
|
2836
2837
|
}, he = function(M) {
|
|
2837
2838
|
var P = M.formattedValue;
|
|
2838
2839
|
P === void 0 && (P = "");
|
|
2839
2840
|
var Q = M.input, ie = M.source, be = M.event, le = M.numAsString, ae;
|
|
2840
2841
|
if (Q) {
|
|
2841
|
-
var Ne = M.inputValue || Q.value, $e =
|
|
2842
|
+
var Ne = M.inputValue || Q.value, $e = Kt(Q);
|
|
2842
2843
|
Q.value = P, ae = ue(Ne, P, $e), ae !== void 0 && I(Q, ae, P);
|
|
2843
2844
|
}
|
|
2844
2845
|
P !== $ && A(U(P, le), { event: be, source: ie });
|
|
@@ -2850,7 +2851,7 @@ function jc(e) {
|
|
|
2850
2851
|
source: vt.props
|
|
2851
2852
|
});
|
|
2852
2853
|
}, [$, b]);
|
|
2853
|
-
var te = O.current ?
|
|
2854
|
+
var te = O.current ? Kt(O.current) : void 0, ke = typeof window < "u" ? zs : V;
|
|
2854
2855
|
ke(function() {
|
|
2855
2856
|
var M = O.current;
|
|
2856
2857
|
if ($ !== E.current.formattedValue && M) {
|
|
@@ -2859,9 +2860,9 @@ function jc(e) {
|
|
|
2859
2860
|
}
|
|
2860
2861
|
}, [$]);
|
|
2861
2862
|
var G = function(M, P, Q) {
|
|
2862
|
-
var ie = P.target, be = N.current ?
|
|
2863
|
+
var ie = P.target, be = N.current ? dc(N.current, ie.selectionEnd) : Aa($, M), le = Object.assign(Object.assign({}, be), { lastValue: $ }), ae = c(M, le), Ne = B(ae);
|
|
2863
2864
|
if (ae = c(Ne, void 0), m && !m(U(Ne, ae))) {
|
|
2864
|
-
var $e = P.target, H =
|
|
2865
|
+
var $e = P.target, H = Kt($e), ne = ue(M, $, H);
|
|
2865
2866
|
return $e.value = $, I($e, ne, $), !1;
|
|
2866
2867
|
}
|
|
2867
2868
|
return he({
|
|
@@ -2919,7 +2920,7 @@ function jc(e) {
|
|
|
2919
2920
|
}, 0);
|
|
2920
2921
|
}, de = function(M) {
|
|
2921
2922
|
O.current = null, clearTimeout(W.current.focusTimeout), clearTimeout(W.current.setCaretTimeout), h(M);
|
|
2922
|
-
}, _e = q &&
|
|
2923
|
+
}, _e = q && mc() ? "numeric" : void 0, Ue = Object.assign({ inputMode: _e }, C, {
|
|
2923
2924
|
type: t,
|
|
2924
2925
|
value: $,
|
|
2925
2926
|
onChange: Se,
|
|
@@ -2944,8 +2945,8 @@ function Xn(e, t) {
|
|
|
2944
2945
|
var i = t.allowNegative, c = t.thousandsGroupStyle;
|
|
2945
2946
|
if (c === void 0 && (c = "thousand"), e === "" || e === "-")
|
|
2946
2947
|
return e;
|
|
2947
|
-
var l = Rt(t), u = l.thousandSeparator, d = l.decimalSeparator, m = n !== 0 && e.indexOf(".") !== -1 || n && a, p =
|
|
2948
|
-
return n !== void 0 && (v = La(v, n, !!a)), u && (g =
|
|
2948
|
+
var l = Rt(t), u = l.thousandSeparator, d = l.decimalSeparator, m = n !== 0 && e.indexOf(".") !== -1 || n && a, p = bn(e, i), g = p.beforeDecimal, v = p.afterDecimal, x = p.addNegation;
|
|
2949
|
+
return n !== void 0 && (v = La(v, n, !!a)), u && (g = lc(g, u, c)), s && (g = s + g), o && (v = v + o), x && (g = "-" + g), e = g + (m && d || "") + v, e;
|
|
2949
2950
|
}
|
|
2950
2951
|
function Rt(e) {
|
|
2951
2952
|
var t = e.decimalSeparator;
|
|
@@ -2957,20 +2958,20 @@ function Rt(e) {
|
|
|
2957
2958
|
allowedDecimalSeparators: a
|
|
2958
2959
|
};
|
|
2959
2960
|
}
|
|
2960
|
-
function
|
|
2961
|
+
function wc(e, t) {
|
|
2961
2962
|
e === void 0 && (e = "");
|
|
2962
2963
|
var n = new RegExp("(-)"), a = new RegExp("(-)(.)*(-)"), s = n.test(e), o = a.test(e);
|
|
2963
2964
|
return e = e.replace(/-/g, ""), s && !o && t && (e = "-" + e), e;
|
|
2964
2965
|
}
|
|
2965
|
-
function
|
|
2966
|
+
function bc(e, t) {
|
|
2966
2967
|
return new RegExp("(^-)|[0-9]|" + Ma(e), "g");
|
|
2967
2968
|
}
|
|
2968
|
-
function
|
|
2969
|
+
function _c(e, t, n) {
|
|
2969
2970
|
return e === "" ? !0 : !(t != null && t.match(/\d/)) && !(n != null && n.match(/\d/)) && typeof e == "string" && !isNaN(Number(e));
|
|
2970
2971
|
}
|
|
2971
|
-
function
|
|
2972
|
+
function Nc(e, t, n) {
|
|
2972
2973
|
var a;
|
|
2973
|
-
t === void 0 && (t =
|
|
2974
|
+
t === void 0 && (t = hc(e));
|
|
2974
2975
|
var s = n.allowNegative, o = n.prefix;
|
|
2975
2976
|
o === void 0 && (o = "");
|
|
2976
2977
|
var i = n.suffix;
|
|
@@ -2994,15 +2995,15 @@ function _c(e, t, n) {
|
|
|
2994
2995
|
var b = 0;
|
|
2995
2996
|
e.startsWith(o) ? b += o.length : d < o.length && (b = d), e = e.substring(b), m -= b;
|
|
2996
2997
|
var F = e.length, N = e.length - i.length;
|
|
2997
|
-
e.endsWith(i) ? F = N : (m > N || m > e.length - i.length) && (F = m), e = e.substring(0, F), e =
|
|
2998
|
+
e.endsWith(i) ? F = N : (m > N || m > e.length - i.length) && (F = m), e = e.substring(0, F), e = wc(f ? "-" + e : e, s), e = (e.match(bc(v)) || []).join("");
|
|
2998
2999
|
var E = e.indexOf(v);
|
|
2999
3000
|
e = e.replace(new RegExp(Ma(v), "g"), function(O, W) {
|
|
3000
3001
|
return W === E ? "." : "";
|
|
3001
3002
|
});
|
|
3002
|
-
var A =
|
|
3003
|
+
var A = bn(e, s), T = A.beforeDecimal, q = A.afterDecimal, L = A.addNegation;
|
|
3003
3004
|
return u.end - u.start < l.end - l.start && T === "" && x && !parseFloat(q) && (e = L ? "-" : ""), e;
|
|
3004
3005
|
}
|
|
3005
|
-
function
|
|
3006
|
+
function Cc(e, t) {
|
|
3006
3007
|
var n = t.prefix;
|
|
3007
3008
|
n === void 0 && (n = "");
|
|
3008
3009
|
var a = t.suffix;
|
|
@@ -3014,7 +3015,7 @@ function Nc(e, t) {
|
|
|
3014
3015
|
var i = e.length;
|
|
3015
3016
|
return s.fill(!1, i - a.length + 1, i + 1), s;
|
|
3016
3017
|
}
|
|
3017
|
-
function
|
|
3018
|
+
function kc(e) {
|
|
3018
3019
|
var t = Rt(e), n = t.thousandSeparator, a = t.decimalSeparator, s = e.prefix;
|
|
3019
3020
|
s === void 0 && (s = "");
|
|
3020
3021
|
var o = e.allowNegative;
|
|
@@ -3030,8 +3031,8 @@ function Cc(e) {
|
|
|
3030
3031
|
allowNegative: ` + o + `
|
|
3031
3032
|
`), o = !1), Object.assign(Object.assign({}, e), { allowNegative: o });
|
|
3032
3033
|
}
|
|
3033
|
-
function
|
|
3034
|
-
e =
|
|
3034
|
+
function Sc(e) {
|
|
3035
|
+
e = kc(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
|
|
3035
3036
|
var t = e.suffix, n = e.allowNegative, a = e.allowLeadingZeros, s = e.onKeyDown;
|
|
3036
3037
|
s === void 0 && (s = Ae);
|
|
3037
3038
|
var o = e.onBlur;
|
|
@@ -3041,8 +3042,8 @@ function kc(e) {
|
|
|
3041
3042
|
var d = e.defaultValue, m = e.value, p = e.valueIsNumericString, g = e.onValueChange, v = Oa(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), x = Rt(e), h = x.decimalSeparator, j = x.allowedDecimalSeparators, w = function(L) {
|
|
3042
3043
|
return Xn(L, e);
|
|
3043
3044
|
}, f = function(L, O) {
|
|
3044
|
-
return
|
|
3045
|
-
}, _ = rt(m) ? d : m, C = p ??
|
|
3045
|
+
return Nc(L, O, e);
|
|
3046
|
+
}, _ = rt(m) ? d : m, C = p ?? _c(_, u, t);
|
|
3046
3047
|
rt(m) ? rt(d) || (C = C || typeof d == "number") : C = C || typeof m == "number";
|
|
3047
3048
|
var S = function(L) {
|
|
3048
3049
|
return Ta(L) ? L : (typeof L == "number" && (L = Ra(L)), C && typeof c == "number" ? Zn(L, c, !!l) : L);
|
|
@@ -3061,7 +3062,7 @@ function kc(e) {
|
|
|
3061
3062
|
W === "Backspace" && I[B - 1] === z && qe(O, B - 1), W === "Delete" && I[B] === z && qe(O, B + 1), s(L);
|
|
3062
3063
|
}, A = function(L) {
|
|
3063
3064
|
var O = b;
|
|
3064
|
-
if (O.match(/\d/g) || (O = ""), a || (O =
|
|
3065
|
+
if (O.match(/\d/g) || (O = ""), a || (O = uc(O)), l && c && (O = Zn(O, c, l)), O !== b) {
|
|
3065
3066
|
var W = Xn(O, e);
|
|
3066
3067
|
N({
|
|
3067
3068
|
formattedValue: W,
|
|
@@ -3088,17 +3089,17 @@ function kc(e) {
|
|
|
3088
3089
|
format: w,
|
|
3089
3090
|
removeFormatting: f,
|
|
3090
3091
|
getCaretBoundary: function(L) {
|
|
3091
|
-
return
|
|
3092
|
+
return Cc(L, e);
|
|
3092
3093
|
},
|
|
3093
3094
|
onKeyDown: E,
|
|
3094
3095
|
onBlur: A
|
|
3095
3096
|
});
|
|
3096
3097
|
}
|
|
3097
|
-
function
|
|
3098
|
-
var t =
|
|
3099
|
-
return pe.createElement(
|
|
3098
|
+
function _n(e) {
|
|
3099
|
+
var t = Sc(e);
|
|
3100
|
+
return pe.createElement(yc, Object.assign({}, t));
|
|
3100
3101
|
}
|
|
3101
|
-
const
|
|
3102
|
+
const Ru = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, label: s, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: p, step: g, noSelectOnFocus: v, decimalScale: x, numberPrefix: h, numberSuffix: j, min: w, max: f }) => {
|
|
3102
3103
|
const _ = D(() => {
|
|
3103
3104
|
if (!n)
|
|
3104
3105
|
return;
|
|
@@ -3125,7 +3126,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3125
3126
|
}, [S, f, w, k]), V(() => {
|
|
3126
3127
|
!n || t === null || (f !== void 0 && t > f && n(f), w !== void 0 && t < w && n(w));
|
|
3127
3128
|
}, [t, f, w, n]), /* @__PURE__ */ r.jsxs(e, { withoutLabel: o, label: s ?? "", hidden: l, className: p, children: [
|
|
3128
|
-
/* @__PURE__ */ r.jsx(
|
|
3129
|
+
/* @__PURE__ */ r.jsx(_n, { displayType: "input", thousandSeparator: " ", decimalScale: x, prefix: h, suffix: j, defaultValue: "", value: a ? S : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? s, onFocus: (F) => {
|
|
3129
3130
|
!v && F.target.select();
|
|
3130
3131
|
}, onChange: b, hidden: l, disabled: u, className: y("form-control text-end w-100", {
|
|
3131
3132
|
[`form-control-${c}`]: c
|
|
@@ -3138,11 +3139,11 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3138
3139
|
["M", "month"],
|
|
3139
3140
|
["Y", "year"],
|
|
3140
3141
|
["C", "custom"]
|
|
3141
|
-
],
|
|
3142
|
-
wrapper:
|
|
3143
|
-
lg:
|
|
3144
|
-
sm:
|
|
3145
|
-
md:
|
|
3142
|
+
], $c = "_wrapper_qfqux_1", Dc = "_lg_qfqux_7", Ic = "_sm_qfqux_11", Ec = "_md_qfqux_14", tr = {
|
|
3143
|
+
wrapper: $c,
|
|
3144
|
+
lg: Dc,
|
|
3145
|
+
sm: Ic,
|
|
3146
|
+
md: Ec
|
|
3146
3147
|
}, St = (e) => {
|
|
3147
3148
|
const t = new Date(e), n = Ve(t.toISOString());
|
|
3148
3149
|
t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1);
|
|
@@ -3153,14 +3154,14 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3153
3154
|
t.setFullYear(t.getFullYear() + 1), t.setDate(t.getDate() - 1);
|
|
3154
3155
|
const a = Ve(t.toISOString());
|
|
3155
3156
|
return { from: n, to: a };
|
|
3156
|
-
},
|
|
3157
|
+
}, Fc = (e, t) => {
|
|
3157
3158
|
if (e === null || t === null)
|
|
3158
3159
|
return "C";
|
|
3159
3160
|
if (e === t)
|
|
3160
3161
|
return "D";
|
|
3161
3162
|
const n = new Date(e);
|
|
3162
3163
|
return St(n).to === t ? "M" : ft(n).to === t ? "Y" : (console.log(ft(n), t), "C");
|
|
3163
|
-
},
|
|
3164
|
+
}, Oc = (e, t, n) => {
|
|
3164
3165
|
const a = D((i, c) => {
|
|
3165
3166
|
if (e === "C") {
|
|
3166
3167
|
n((l) => ({ ...l, [i]: c }));
|
|
@@ -3220,11 +3221,11 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3220
3221
|
}), t(i);
|
|
3221
3222
|
}, [n, t]);
|
|
3222
3223
|
return { setFromToProp: a, handleArrowClick: s, handleRangeChange: o };
|
|
3223
|
-
},
|
|
3224
|
-
const { texts: { date: s }, ProjectIconComponent: o } = Z(we), [i, c] = R("C"), { handleArrowClick: l, handleRangeChange: u, setFromToProp: d } =
|
|
3224
|
+
}, Au = ({ fromtoState: [e, t], className: n, size: a }) => {
|
|
3225
|
+
const { texts: { date: s }, ProjectIconComponent: o } = Z(we), [i, c] = R("C"), { handleArrowClick: l, handleRangeChange: u, setFromToProp: d } = Oc(i, c, t), m = re(() => i === "C", [i]), p = J(!0);
|
|
3225
3226
|
return V(() => {
|
|
3226
3227
|
if (p.current) {
|
|
3227
|
-
const g =
|
|
3228
|
+
const g = Fc(e.from, e.to);
|
|
3228
3229
|
c(g), p.current = !1;
|
|
3229
3230
|
}
|
|
3230
3231
|
}, [e.from, e.to]), /* @__PURE__ */ r.jsxs("div", { className: y("d-inline-flex align-items-center gap-1", tr.wrapper, tr[a ?? "md"], n), children: [
|
|
@@ -3233,25 +3234,25 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3233
3234
|
}, children: /* @__PURE__ */ r.jsx(o, { icon: "chevron-left" }) }),
|
|
3234
3235
|
/* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
3235
3236
|
/* @__PURE__ */ r.jsx(nt, { type: "date", value: e.from, onChange: (g) => d("from", g === null ? null : g.toString()), InputContainer: Ie, size: a }),
|
|
3236
|
-
/* @__PURE__ */ r.jsx(Ca, { toggle: /* @__PURE__ */ r.jsx(Na, { text: s[er.find((g) => g[0] === i)[1]].substring(0, 1), as: Ms }), children: er.map((g) => /* @__PURE__ */ r.jsx(
|
|
3237
|
+
/* @__PURE__ */ r.jsx(Ca, { toggle: /* @__PURE__ */ r.jsx(Na, { text: s[er.find((g) => g[0] === i)[1]].substring(0, 1), as: Ms }), children: er.map((g) => /* @__PURE__ */ r.jsx(wn, { disabled: g[0] === i, className: y(g[0] === i ? "text-black-50" : ""), onClick: () => u(g[0]), role: "button", children: s[g[1]] }, g[0])) }),
|
|
3237
3238
|
/* @__PURE__ */ r.jsx(nt, { type: "date", value: e.to, onChange: (g) => d("to", g === null ? null : g.toString()), InputContainer: Ie, size: a })
|
|
3238
3239
|
] }) }),
|
|
3239
3240
|
/* @__PURE__ */ r.jsx(ee, { disabled: m, onClick: () => {
|
|
3240
3241
|
l(1);
|
|
3241
3242
|
}, children: /* @__PURE__ */ r.jsx(o, { icon: "chevron-right" }) })
|
|
3242
3243
|
] });
|
|
3243
|
-
},
|
|
3244
|
+
}, Vu = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: n, yearMax: a }) => {
|
|
3244
3245
|
const { localizationContext: s } = Z(we), { dateFnsLocale: o } = Z(s), { searchParams: i, setSearch: c } = qs(), l = i.get(t), u = l ? pt(l) : e, d = D((m) => {
|
|
3245
|
-
c(t,
|
|
3246
|
+
c(t, tn(m, { representation: "date" }));
|
|
3246
3247
|
}, [t, c]);
|
|
3247
3248
|
return /* @__PURE__ */ r.jsx(qo, { month: u, onChangeMonth: d, locale: o, yearMin: n, yearMax: a });
|
|
3248
|
-
},
|
|
3249
|
-
const [o, i] = Qs(t,
|
|
3250
|
-
i(
|
|
3249
|
+
}, Pu = ({ defaultYear: e, searchKey: t = "yearFrom", optionMin: n, optionMax: a, className: s }) => {
|
|
3250
|
+
const [o, i] = Qs(t, tn(e, { representation: "date" })), c = o ? pt(o) : e, l = D((u) => {
|
|
3251
|
+
i(tn(u, { representation: "date" }));
|
|
3251
3252
|
}, [i]);
|
|
3252
3253
|
return /* @__PURE__ */ r.jsx(Jo, { year: c, onChangeYear: l, optionMin: n, optionMax: a, className: s });
|
|
3253
|
-
},
|
|
3254
|
-
const { chartColorPalette:
|
|
3254
|
+
}, Bu = ({ data: e, showLegend: t = !1, legendPosition: n = "left", onClick: a }) => {
|
|
3255
|
+
const { chartColorPalette: s } = Z(we);
|
|
3255
3256
|
return /* @__PURE__ */ r.jsx(Ls, { data: e, margin: {
|
|
3256
3257
|
top: 50,
|
|
3257
3258
|
right: t && n === "right" ? 200 : 100,
|
|
@@ -3260,7 +3261,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3260
3261
|
}, innerRadius: 0.4, padAngle: 4, cornerRadius: 2, activeOuterRadiusOffset: 10, borderWidth: 2, borderColor: {
|
|
3261
3262
|
from: "color",
|
|
3262
3263
|
modifiers: [["darker", 0.5]]
|
|
3263
|
-
}, colors:
|
|
3264
|
+
}, colors: s, arcLinkLabelsSkipAngle: 10, arcLinkLabelsTextColor: { from: "color", modifiers: [["darker", 0.5]] }, arcLinkLabelsThickness: 2, arcLinkLabelsColor: { from: "color" }, enableArcLabels: !1, legends: t ? [
|
|
3264
3265
|
{
|
|
3265
3266
|
anchor: n,
|
|
3266
3267
|
direction: n === "left" || n === "right" ? "column" : "row",
|
|
@@ -3277,8 +3278,8 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3277
3278
|
symbolShape: "circle",
|
|
3278
3279
|
padding: 10
|
|
3279
3280
|
}
|
|
3280
|
-
] : [] });
|
|
3281
|
-
},
|
|
3281
|
+
] : [], onClick: (o) => a && a(o.data) });
|
|
3282
|
+
}, Tc = ({ errors: e, schema: t }) => {
|
|
3282
3283
|
const n = (a) => {
|
|
3283
3284
|
var s, o;
|
|
3284
3285
|
return a.toLowerCase() === "others" ? "Obecné" : ((o = (s = t.columns) == null ? void 0 : s.find((i) => i.field === a)) == null ? void 0 : o.caption) ?? a;
|
|
@@ -3314,32 +3315,32 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3314
3315
|
}
|
|
3315
3316
|
n[a] = { value: s, defaultValue: s };
|
|
3316
3317
|
}), n;
|
|
3317
|
-
},
|
|
3318
|
-
table:
|
|
3318
|
+
}, Mc = "_table_1klfy_1", Lc = "_table-header_1klfy_10", Rc = "_table-row_1klfy_10", Ac = "_table-head_1klfy_10", Vc = "_filters-row_1klfy_19", Pc = "_table-body_1klfy_30", Bc = "_table-cell_1klfy_30", Hc = "_action-column_1klfy_43", Wc = "_sticky-top_1klfy_47", Uc = "_sticky-first_1klfy_54", zc = "_sticky-last_1klfy_61", Gc = "_sticky-bottom_1klfy_68", ce = {
|
|
3319
|
+
table: Mc,
|
|
3319
3320
|
"table-header": "_table-header_1klfy_10",
|
|
3320
|
-
tableHeader:
|
|
3321
|
+
tableHeader: Lc,
|
|
3321
3322
|
"table-row": "_table-row_1klfy_10",
|
|
3322
|
-
tableRow:
|
|
3323
|
+
tableRow: Rc,
|
|
3323
3324
|
"table-head": "_table-head_1klfy_10",
|
|
3324
|
-
tableHead:
|
|
3325
|
+
tableHead: Ac,
|
|
3325
3326
|
"filters-row": "_filters-row_1klfy_19",
|
|
3326
|
-
filtersRow:
|
|
3327
|
+
filtersRow: Vc,
|
|
3327
3328
|
"table-body": "_table-body_1klfy_30",
|
|
3328
|
-
tableBody:
|
|
3329
|
+
tableBody: Pc,
|
|
3329
3330
|
"table-cell": "_table-cell_1klfy_30",
|
|
3330
|
-
tableCell:
|
|
3331
|
+
tableCell: Bc,
|
|
3331
3332
|
"action-column": "_action-column_1klfy_43",
|
|
3332
|
-
actionColumn:
|
|
3333
|
+
actionColumn: Hc,
|
|
3333
3334
|
"sticky-top": "_sticky-top_1klfy_47",
|
|
3334
|
-
stickyTop:
|
|
3335
|
+
stickyTop: Wc,
|
|
3335
3336
|
"sticky-first": "_sticky-first_1klfy_54",
|
|
3336
|
-
stickyFirst:
|
|
3337
|
+
stickyFirst: Uc,
|
|
3337
3338
|
"sticky-last": "_sticky-last_1klfy_61",
|
|
3338
|
-
stickyLast:
|
|
3339
|
+
stickyLast: zc,
|
|
3339
3340
|
"sticky-bottom": "_sticky-bottom_1klfy_68",
|
|
3340
|
-
stickyBottom:
|
|
3341
|
-
},
|
|
3342
|
-
input:
|
|
3341
|
+
stickyBottom: Gc
|
|
3342
|
+
}, Yc = "_input_13mhy_1", et = {
|
|
3343
|
+
input: Yc
|
|
3343
3344
|
}, Ba = ({ type: e, value: t, field: n, isPrimary: a, isReadonly: s, primaryEditable: o = !1, valuesForSelect: i, onChangeHandler: c, hideClearIcon: l, clearValue: u }) => {
|
|
3344
3345
|
switch (e) {
|
|
3345
3346
|
case "NUM":
|
|
@@ -3356,7 +3357,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3356
3357
|
e
|
|
3357
3358
|
] }) });
|
|
3358
3359
|
}
|
|
3359
|
-
},
|
|
3360
|
+
}, Kc = ({ schema: e, columns: t, initialItem: n, onEdit: a, onDelete: s }) => {
|
|
3360
3361
|
const { ProjectIconComponent: o } = Z(we), [i, c] = R(n), l = D((m, p) => {
|
|
3361
3362
|
console.log("changeValue", m, p), c((g) => ({
|
|
3362
3363
|
...g,
|
|
@@ -3376,7 +3377,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3376
3377
|
}),
|
|
3377
3378
|
/* @__PURE__ */ r.jsx("td", { className: y("table-cell", ce.tableCell, ce.stickyLast), children: /* @__PURE__ */ r.jsx(ee, { color: "danger", onClick: () => s(i[e.primaryKey ?? ""].value), children: /* @__PURE__ */ r.jsx(o, { icon: "delete" }) }) })
|
|
3378
3379
|
] });
|
|
3379
|
-
},
|
|
3380
|
+
}, qc = ({ schema: e, columns: t, onCreate: n }) => {
|
|
3380
3381
|
const { ProjectIconComponent: a } = Z(we), [s, o] = R(null), i = D(() => {
|
|
3381
3382
|
var u;
|
|
3382
3383
|
const l = {};
|
|
@@ -3407,7 +3408,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3407
3408
|
/* @__PURE__ */ r.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ r.jsx(ee, { onClick: i, children: /* @__PURE__ */ r.jsx(a, { icon: "add" }) }) }),
|
|
3408
3409
|
/* @__PURE__ */ r.jsx("td", { colSpan: t.length + 1 })
|
|
3409
3410
|
] });
|
|
3410
|
-
},
|
|
3411
|
+
}, Qc = ({ column: e, children: t }) => e.description ? /* @__PURE__ */ r.jsx(dn, { placement: "bottom", text: e.description ?? "", children: /* @__PURE__ */ r.jsx("div", { children: t }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t }), Zc = ({ schema: e, items: t, onEditItem: n, onDeleteItem: a, onCreateItem: s, filters: o, setFilter: i, sortByField: c, sortByType: l, setSortBy: u, selectedMaster: d }) => {
|
|
3411
3412
|
const { texts: { dynamicForms: m }, ProjectIconComponent: p } = Z(we), [g, v] = R([]);
|
|
3412
3413
|
return V(() => {
|
|
3413
3414
|
var x, h, j;
|
|
@@ -3439,7 +3440,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3439
3440
|
return;
|
|
3440
3441
|
}
|
|
3441
3442
|
u(x.field, "asc");
|
|
3442
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
3443
|
+
}, children: /* @__PURE__ */ r.jsx(Qc, { column: x, children: /* @__PURE__ */ r.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
3443
3444
|
x.label,
|
|
3444
3445
|
c === x.field && /* @__PURE__ */ r.jsx(p, { icon: l === "asc" ? "chevron-up" : "chevron-down" })
|
|
3445
3446
|
] }) }) }, `${e.id}-${x.field}`)),
|
|
@@ -3455,12 +3456,12 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3455
3456
|
] })
|
|
3456
3457
|
] }),
|
|
3457
3458
|
/* @__PURE__ */ r.jsxs("tbody", { className: y("table-body", ce.tableBody), children: [
|
|
3458
|
-
t.filter((x) => x[e.primaryKey ?? ""]).map((x) => /* @__PURE__ */ r.jsx(
|
|
3459
|
-
/* @__PURE__ */ r.jsx(
|
|
3459
|
+
t.filter((x) => x[e.primaryKey ?? ""]).map((x) => /* @__PURE__ */ r.jsx(Kc, { schema: e, columns: g, initialItem: x, onEdit: n, onDelete: a }, `${e.id}-${x[e.primaryKey ?? ""].value}`)),
|
|
3460
|
+
/* @__PURE__ */ r.jsx(qc, { schema: e, columns: g, onCreate: s })
|
|
3460
3461
|
] })
|
|
3461
3462
|
] });
|
|
3462
|
-
},
|
|
3463
|
-
pagination:
|
|
3463
|
+
}, Jc = ({ master: e, onChange: t, options: n, label: a }) => /* @__PURE__ */ r.jsx(Ft, { label: a, value: e, onChange: (s) => t(s ? s.toString() : null), options: n, size: "sm" }), Xc = "_pagination_gujwe_1", rr = {
|
|
3464
|
+
pagination: Xc
|
|
3464
3465
|
}, ar = {
|
|
3465
3466
|
appDetail: "/settings/:id"
|
|
3466
3467
|
}, tt = {
|
|
@@ -3469,7 +3470,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3469
3470
|
apiItemPost: "/dynamicForms/update",
|
|
3470
3471
|
apiItemDelete: "/dynamicForms/delete",
|
|
3471
3472
|
apiItemCreate: "/dynamicForms/insert"
|
|
3472
|
-
},
|
|
3473
|
+
}, Hu = ({ id: e, page: t, setPage: n, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, appUrls: { appDetail: l = ar.appDetail } = ar, apiUrls: { apiSchemaGet: u = tt.apiSchemaGet, apiDataGet: d = tt.apiDataGet, apiItemPost: m = tt.apiItemPost, apiItemDelete: p = tt.apiItemDelete, apiItemCreate: g = tt.apiItemCreate } = tt }) => {
|
|
3473
3474
|
var ie, be, le, ae, Ne, $e;
|
|
3474
3475
|
const { texts: { dynamicForms: v }, ProjectIconComponent: x } = Z(we), h = yt(), { startLoading: j, stopLoading: w } = Z(kr), [f, _] = R(null), [C, S] = R(null), [k, $] = R(null), [b, F] = R(null), [N, E] = R(!1), { addNotification: A } = Rs(), [T, q] = R([]), { confirm: L } = As(), O = 20, W = O + 1, B = b ? Math.ceil(b.length / O) : 1, U = t ? t > 1 : !1, I = t ? t < B : !1, z = t ? (t - 1) * O : 0, ue = t ? t * O : O, [he, te] = R(!1), ke = he ? b == null ? void 0 : b.slice(z, ue) : b, [G, xe] = R(null);
|
|
3475
3476
|
V(() => {
|
|
@@ -3605,15 +3606,15 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3605
3606
|
/* @__PURE__ */ r.jsx(Fa, { label: v.showArchived, value: N === !0, onChange: (H) => E(H) })
|
|
3606
3607
|
] }),
|
|
3607
3608
|
(f == null ? void 0 : f.description) && /* @__PURE__ */ r.jsx(X, { variant: "body2", className: "mb-3", children: f == null ? void 0 : f.description }),
|
|
3608
|
-
(f == null ? void 0 : f.masterReference) && /* @__PURE__ */ r.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ r.jsx(
|
|
3609
|
+
(f == null ? void 0 : f.masterReference) && /* @__PURE__ */ r.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ r.jsx(Jc, { label: ((be = (ie = f.columns) == null ? void 0 : ie.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : be.caption) ?? "", options: ((ae = (le = f.columns) == null ? void 0 : le.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : ae.values) ?? [], master: G, onChange: (H) => xe(H) }) }),
|
|
3609
3610
|
(f == null ? void 0 : f.slaves) && f.slaves.length > 0 && /* @__PURE__ */ r.jsx("div", { className: "mb-3 d-flex align-items-center flex-start", children: f.slaves.map((H) => {
|
|
3610
3611
|
var ne;
|
|
3611
|
-
return /* @__PURE__ */ r.jsx($t, { as: "link", href: `${
|
|
3612
|
+
return /* @__PURE__ */ r.jsx($t, { as: "link", href: `${Xt(l, { id: (ne = H.id) == null ? void 0 : ne.toString() })}?type=dynamic-form`, children: H.name }, H.id);
|
|
3612
3613
|
}) }),
|
|
3613
3614
|
f != null && f.masterReference && !G ? /* @__PURE__ */ r.jsx(Ia, { variant: "warning", children: v.selectMaster((($e = (Ne = f.columns) == null ? void 0 : Ne.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : $e.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3614
|
-
f && T.length > 0 && /* @__PURE__ */ r.jsx("div", { className: "mb-2", children: /* @__PURE__ */ r.jsx(
|
|
3615
|
+
f && T.length > 0 && /* @__PURE__ */ r.jsx("div", { className: "mb-2", children: /* @__PURE__ */ r.jsx(Tc, { errors: T, schema: f }) }),
|
|
3615
3616
|
f && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3616
|
-
/* @__PURE__ */ r.jsx("div", { className: y("rounded border overflow-auto", rr.tableContainer), children: /* @__PURE__ */ r.jsx(
|
|
3617
|
+
/* @__PURE__ */ r.jsx("div", { className: y("rounded border overflow-auto", rr.tableContainer), children: /* @__PURE__ */ r.jsx(Zc, { schema: f, items: (he ? ke : b) ?? [], onEditItem: _e, onDeleteItem: Ue, onCreateItem: Xe, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, selectedMaster: (G == null ? void 0 : G.toString()) ?? null }) }),
|
|
3617
3618
|
he && t && /* @__PURE__ */ r.jsxs("div", { className: y(rr.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
|
|
3618
3619
|
/* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
3619
3620
|
/* @__PURE__ */ r.jsx(ee, { color: "primary", onClick: () => M(1), disabled: !U, children: /* @__PURE__ */ r.jsx(x, { icon: "chevron-double-left" }) }),
|
|
@@ -3638,14 +3639,14 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3638
3639
|
appDetail: "/settings/:id"
|
|
3639
3640
|
}, or = {
|
|
3640
3641
|
apiDynamicFormsGet: "/dynamicForms"
|
|
3641
|
-
},
|
|
3642
|
+
}, eu = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ r.jsx(dn, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ r.jsx("div", { children: t }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t }), Wu = ({ activeId: e, otherForms: t = [], groupsDefs: n = [], searchQuery: a, fullSize: s, appUrls: { appDetail: o = sr.appDetail } = sr, apiUrls: { apiDynamicFormsGet: i = or.apiDynamicFormsGet } = or }) => {
|
|
3642
3643
|
const c = yt(), { startLoading: l, stopLoading: u } = Z(kr), [d, m] = R(null), p = re(() => [
|
|
3643
3644
|
...(d == null ? void 0 : d.map((x) => ({
|
|
3644
3645
|
...x,
|
|
3645
3646
|
type: "dynamic-form"
|
|
3646
3647
|
}))) ?? [],
|
|
3647
3648
|
...t
|
|
3648
|
-
].filter((x) =>
|
|
3649
|
+
].filter((x) => en(x.name, a) || en(x.description, a)).sort((x, h) => (x.name ?? "").localeCompare(h.name ?? "")) ?? [], [d, t, a]), g = re(() => n.map((x) => ({
|
|
3649
3650
|
id: x.id,
|
|
3650
3651
|
name: x.name ?? "",
|
|
3651
3652
|
items: p.filter((h) => h.group === x.id)
|
|
@@ -3656,34 +3657,34 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3656
3657
|
}, [c, l, u, i]);
|
|
3657
3658
|
return V(() => {
|
|
3658
3659
|
!d && v();
|
|
3659
|
-
}, [v, d]), p.length > 0 ? /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((x) => /* @__PURE__ */ r.jsx(
|
|
3660
|
+
}, [v, d]), p.length > 0 ? /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((x) => /* @__PURE__ */ r.jsx(Ni, { title: x.name, defaultOpen: !0, children: x.items.map((h) => {
|
|
3660
3661
|
var j, w, f, _;
|
|
3661
|
-
return s ? /* @__PURE__ */ r.jsxs(Qe, { to: `${
|
|
3662
|
+
return s ? /* @__PURE__ */ r.jsxs(Qe, { to: `${Xt(o, { id: (j = h.id) == null ? void 0 : j.toString() })}?type=${h.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((w = h.id) == null ? void 0 : w.toString()) ? "active" : ""}`, children: [
|
|
3662
3663
|
/* @__PURE__ */ r.jsx(X, { variant: "body", children: h.name }),
|
|
3663
3664
|
h.description && /* @__PURE__ */ r.jsx(X, { variant: "body2", className: "text-muted mt-2", children: h.description })
|
|
3664
|
-
] }, h.id) : /* @__PURE__ */ r.jsx(
|
|
3665
|
+
] }, h.id) : /* @__PURE__ */ r.jsx(eu, { item: h, children: /* @__PURE__ */ r.jsx(Qe, { to: `${Xt(o, { id: (f = h.id) == null ? void 0 : f.toString() })}?type=${h.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((_ = h.id) == null ? void 0 : _.toString()) ? "active" : ""}`, children: /* @__PURE__ */ r.jsx(X, { variant: "body2", children: h.name }) }) }, h.id);
|
|
3665
3666
|
}) }, x.id)) }) }) : null;
|
|
3666
|
-
},
|
|
3667
|
+
}, Uu = ({ label: e, to: t, value: n }) => /* @__PURE__ */ r.jsxs(Pe, { label: e, children: [
|
|
3667
3668
|
/* @__PURE__ */ r.jsx("input", { disabled: !0, className: "form-control d-none" }),
|
|
3668
3669
|
t ? /* @__PURE__ */ r.jsx(Qe, { to: t, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: n }) : /* @__PURE__ */ r.jsx("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: n })
|
|
3669
|
-
] }),
|
|
3670
|
+
] }), zu = () => {
|
|
3670
3671
|
const { localizationContext: e } = Z(we), { language: t, setLanguage: n } = Z(e), a = (s) => {
|
|
3671
3672
|
n(s);
|
|
3672
3673
|
};
|
|
3673
|
-
return /* @__PURE__ */ r.jsx(
|
|
3674
|
+
return /* @__PURE__ */ r.jsx(wn, { onClick: (s) => {
|
|
3674
3675
|
a(t === "cz" ? "en" : "cz"), s.stopPropagation();
|
|
3675
3676
|
}, children: t === "cz" ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3676
3677
|
/* @__PURE__ */ r.jsx("strong", { children: "CZ" }),
|
|
3677
|
-
/* @__PURE__ */ r.jsx(
|
|
3678
|
+
/* @__PURE__ */ r.jsx(Dn, {}),
|
|
3678
3679
|
/* @__PURE__ */ r.jsx("span", { children: "EN" })
|
|
3679
3680
|
] }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3680
3681
|
/* @__PURE__ */ r.jsx("strong", { children: "EN" }),
|
|
3681
|
-
/* @__PURE__ */ r.jsx(
|
|
3682
|
+
/* @__PURE__ */ r.jsx(Dn, {}),
|
|
3682
3683
|
/* @__PURE__ */ r.jsx("span", { children: "CZ" })
|
|
3683
3684
|
] }) });
|
|
3684
|
-
},
|
|
3685
|
+
}, Gu = ({ controlId: e, ...t }) => /* @__PURE__ */ r.jsx(je.Group, { controlId: e, ...t }), Yu = ({ employeeId: e, alt: t, noPhotoImage: n, cafmApiUrl: a, showLargeInLightBox: s = !1 }) => {
|
|
3685
3686
|
const { user: o } = Z(wr), { photoPath: i, photoPathSm: c } = Zs(e);
|
|
3686
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsx(r.Fragment, { children: s ? /* @__PURE__ */ r.jsx(
|
|
3687
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsx(r.Fragment, { children: s ? /* @__PURE__ */ r.jsx(Pl, { baseUrl: a, customToken: o.cafmToken ?? void 0, photos: [
|
|
3687
3688
|
{
|
|
3688
3689
|
id: e.toString(),
|
|
3689
3690
|
alt: t ?? "",
|
|
@@ -3692,7 +3693,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3692
3693
|
lgSrc: i
|
|
3693
3694
|
}
|
|
3694
3695
|
], placeholder: n, ImgComponent: qn }) : /* @__PURE__ */ r.jsx(qn, { baseUrl: a, customToken: o.cafmToken ?? void 0, src: c, alt: t, placeholder: n, className: "rounded w-100" }) }) });
|
|
3695
|
-
},
|
|
3696
|
+
}, Ku = ({ text: e, setText: t, onSearchButtonClick: n, className: a }) => {
|
|
3696
3697
|
const s = (o) => {
|
|
3697
3698
|
t(o);
|
|
3698
3699
|
};
|
|
@@ -3701,7 +3702,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3701
3702
|
e && /* @__PURE__ */ r.jsx(gt, { onClick: () => s(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ r.jsx(Ee, {}) }),
|
|
3702
3703
|
/* @__PURE__ */ r.jsx(gt, { onClick: () => n && n(e), variant: "link", className: "border", children: /* @__PURE__ */ r.jsx(Vs, {}) })
|
|
3703
3704
|
] });
|
|
3704
|
-
},
|
|
3705
|
+
}, qu = ({ value: e, numberPrefix: t, numberSuffix: n, decimalScale: a = 2, className: s }) => /* @__PURE__ */ r.jsx(_n, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: a, defaultValue: "", prefix: t, suffix: n, className: s }), Qu = ({ InputContainer: e = Pe, formField: t, label: n, resetsFields: a, type: s, required: o, hidden: i, disabled: c, withoutLabel: l, className: u }) => {
|
|
3705
3706
|
const { register: d, formState: m, setValue: p } = Be(), [g, v] = R(void 0), [x, h] = R(!1);
|
|
3706
3707
|
V(() => {
|
|
3707
3708
|
const w = t.split(".");
|
|
@@ -3721,7 +3722,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3721
3722
|
}), isInvalid: j, hidden: i, disabled: c, className: "w-100" }),
|
|
3722
3723
|
g && /* @__PURE__ */ r.jsx(Je, { message: g.message })
|
|
3723
3724
|
] });
|
|
3724
|
-
},
|
|
3725
|
+
}, Zu = ({ InputContainer: e = Pe, label: t, formField: n, options: a, resetsFields: s, required: o, disabled: i, hidden: c, className: l }) => {
|
|
3725
3726
|
const { register: u, formState: d, setValue: m, watch: p } = Be(), [g, v] = R(void 0), [x, h] = R(!1), j = re(() => a, [a]);
|
|
3726
3727
|
V(() => {
|
|
3727
3728
|
const f = n.split(".");
|
|
@@ -3741,7 +3742,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3741
3742
|
}), isInvalid: w, hidden: c, disabled: i, className: "w-100" }, f.id)),
|
|
3742
3743
|
g && /* @__PURE__ */ r.jsx(Je, { message: g.message })
|
|
3743
3744
|
] });
|
|
3744
|
-
},
|
|
3745
|
+
}, Ju = ({ InputContainer: e = Pe, formField: t, label: n, size: a, defaultSelection: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, items: d, onSearchQueryChange: m, selectedItemNavigateTo: p, texts: g, dropdownItemsNameWidth: v, isLoading: x, withoutLabel: h, additionalColumns: j, CustomOnChangeComponent: w, displayIdAsName: f, onSelect: _, className: C }) => {
|
|
3745
3746
|
const { formState: S, setValue: k, watch: $, control: b } = Be(), [F, N] = R(void 0), [E, A] = R(!1), [T, q] = R(!1), L = $(t) ?? null, O = L === (s == null ? void 0 : s.id) ? s == null ? void 0 : s.name : $(`${t}-DropdownName`), W = re(() => L == null ? null : { id: L ?? null, name: O ?? "" }, [L, O]), B = D(() => {
|
|
3746
3747
|
const G = t.split(".");
|
|
3747
3748
|
let xe = S.errors;
|
|
@@ -3777,7 +3778,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3777
3778
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(e, { label: `${n}${c ? " *" : ""}`, hidden: l, withoutLabel: h, isInvalid: he, inputContainerClassName: y({ "luminus-dropdown-select-open": E }), className: C, children: [
|
|
3778
3779
|
/* @__PURE__ */ r.jsxs(Ea, { currentSelection: W, selectedItemNavigateTo: p, children: [
|
|
3779
3780
|
f && (W == null ? void 0 : W.name) && /* @__PURE__ */ r.jsx(X, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: W.name }),
|
|
3780
|
-
/* @__PURE__ */ r.jsx(
|
|
3781
|
+
/* @__PURE__ */ r.jsx(un, { control: b, name: t, render: () => /* @__PURE__ */ r.jsx(je.Select, { size: a, onMouseDown: (G) => {
|
|
3781
3782
|
G.currentTarget.focus(), G.preventDefault();
|
|
3782
3783
|
}, onClick: () => {
|
|
3783
3784
|
!te && !u && A(!0);
|
|
@@ -3794,9 +3795,9 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3794
3795
|
] }) : null
|
|
3795
3796
|
] }),
|
|
3796
3797
|
F && /* @__PURE__ */ r.jsx(Je, { message: F.message }),
|
|
3797
|
-
ue.current && /* @__PURE__ */ r.jsx(
|
|
3798
|
+
ue.current && /* @__PURE__ */ r.jsx(yn, { show: E, onCancel: z, items: d, currentSelection: W, onSelectionChange: I, onSearchQueryChange: m, texts: g, itemsNameWidth: v, additionalColumns: j, displayIdAsName: f, isLoading: x, disabled: u, inputRef: ue })
|
|
3798
3799
|
] }) });
|
|
3799
|
-
},
|
|
3800
|
+
}, Xu = ({ InputContainer: e = Pe, label: t, formField: n, hidden: a, required: s, placeholder: o, disabled: i, showClearIcon: c, resetsFields: l, multiple: u, accept: d, withoutLabel: m, className: p }) => {
|
|
3800
3801
|
const { watch: g, setValue: v, register: x, formState: h } = Be(), [j, w] = R(!1), [f, _] = R(void 0), C = D(() => {
|
|
3801
3802
|
v(n, "");
|
|
3802
3803
|
}, [v, n]), S = D(() => {
|
|
@@ -3819,12 +3820,12 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3819
3820
|
c && g(n) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(ee, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ r.jsx(Ee, {}) }) }),
|
|
3820
3821
|
f && /* @__PURE__ */ r.jsx(Je, { message: f.message })
|
|
3821
3822
|
] });
|
|
3822
|
-
},
|
|
3823
|
+
}, ed = ({ children: e, onStorno: t, noSpacer: n }) => {
|
|
3823
3824
|
const { formState: a } = Be(), [s, o] = R(!1);
|
|
3824
3825
|
return V(() => {
|
|
3825
3826
|
o(Object.keys(a.dirtyFields).length > 0);
|
|
3826
3827
|
}, [a]), s ? /* @__PURE__ */ r.jsx(Yo, { onStorno: t, noSpacer: n, children: e }) : null;
|
|
3827
|
-
},
|
|
3828
|
+
}, td = ({ InputContainer: e = Pe, options: t, formField: n, label: a, size: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, withoutLabel: d, noSortOptions: m, suffixIdToName: p, className: g }) => {
|
|
3828
3829
|
const { texts: { customSelect: v } } = Z(we), { formState: x, setValue: h, watch: j, control: w } = Be(), [f, _] = R(void 0), [C, S] = R(!1), [k, $] = R(!1), [b, F] = R(""), N = j(n), E = re(() => t.find((I) => I.id === N) ?? null, [t, N]), A = D(() => {
|
|
3829
3830
|
const I = n.split(".");
|
|
3830
3831
|
let z = x.errors;
|
|
@@ -3862,18 +3863,18 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3862
3863
|
}, [p]), W = re(() => t.map((I) => ({
|
|
3863
3864
|
id: I.id,
|
|
3864
3865
|
name: O(I)
|
|
3865
|
-
})).filter((I) =>
|
|
3866
|
+
})).filter((I) => en(I.name, b)).sort((I, z) => m ? 0 : (I.name ?? "").localeCompare(z.name ?? "")), [t, m, b, O]), B = J(null), U = f !== void 0;
|
|
3866
3867
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(e, { label: `${a}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: U, inputContainerClassName: y({ "luminus-dropdown-select-open": C }), className: g, children: [
|
|
3867
|
-
/* @__PURE__ */ r.jsx(
|
|
3868
|
+
/* @__PURE__ */ r.jsx(un, { control: w, name: n, render: () => /* @__PURE__ */ r.jsx(je.Select, { size: s, onMouseDown: (I) => {
|
|
3868
3869
|
I.currentTarget.focus(), I.preventDefault();
|
|
3869
3870
|
}, onClick: () => {
|
|
3870
3871
|
S(!0);
|
|
3871
3872
|
}, ref: B, value: N ?? "", onChange: () => {
|
|
3872
3873
|
}, isInvalid: U, hidden: l, disabled: u, className: "w-100", children: /* @__PURE__ */ r.jsx("option", { value: (E == null ? void 0 : E.id) ?? "", children: O(E) }) }) }),
|
|
3873
3874
|
f && /* @__PURE__ */ r.jsx(Je, { message: f.message }),
|
|
3874
|
-
B.current && /* @__PURE__ */ r.jsx(
|
|
3875
|
+
B.current && /* @__PURE__ */ r.jsx(yn, { show: C, onCancel: () => S(!1), items: W, currentSelection: E ?? null, onSelectionChange: q, onSearchQueryChange: L, texts: v, disabled: u, inputRef: B, autoHideSearch: !0, allItemsLength: t.length })
|
|
3875
3876
|
] }) });
|
|
3876
|
-
},
|
|
3877
|
+
}, nd = ({ InputContainer: e = Pe, formField: t, label: n, placeholder: a, size: s, resetsFields: o, showClearIcon: i, clearValue: c, required: l, hidden: u, disabled: d, withoutLabel: m, step: p, stepperStep: g = 1, className: v, min: x, max: h }) => {
|
|
3877
3878
|
const { register: j, formState: w, setValue: f, watch: _ } = Be(), [C, S] = R(void 0), [k, $] = R(!1), b = D((T, q, L) => {
|
|
3878
3879
|
f(T, dt(q, x, h), L);
|
|
3879
3880
|
}, [h, x, f]), F = D(() => {
|
|
@@ -3915,7 +3916,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3915
3916
|
i && _(t) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(ee, { color: "secondary", size: "sm", onClick: F, children: /* @__PURE__ */ r.jsx(Ee, {}) }) }),
|
|
3916
3917
|
C && /* @__PURE__ */ r.jsx(Je, { message: C.message })
|
|
3917
3918
|
] });
|
|
3918
|
-
},
|
|
3919
|
+
}, rd = ({ InputContainer: e = Pe, formField: t, label: n, placeholder: a, resetsFields: s, showClearIcon: o, clearValue: i, required: c, hidden: l, disabled: u, withoutLabel: d, step: m, size: p, CustomOnChangeComponent: g, noSelectOnFocus: v, className: x, decimalScale: h = 2, numberPrefix: j, numberSuffix: w, min: f, max: _ }) => {
|
|
3919
3920
|
const { formState: C, setValue: S, watch: k, control: $ } = Be(), [b, F] = R(void 0), [N, E] = R(!1), A = D(() => {
|
|
3920
3921
|
const O = i ?? null;
|
|
3921
3922
|
S(t, O !== null ? Number(O) : null, {
|
|
@@ -3941,7 +3942,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3941
3942
|
const L = b !== void 0;
|
|
3942
3943
|
return /* @__PURE__ */ r.jsxs(e, { label: `${n}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: L, className: x, children: [
|
|
3943
3944
|
/* @__PURE__ */ r.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3944
|
-
/* @__PURE__ */ r.jsx(
|
|
3945
|
+
/* @__PURE__ */ r.jsx(un, { control: $, name: t, render: ({ field: { ref: O, onChange: W, name: B, value: U } }) => /* @__PURE__ */ r.jsx(_n, { displayType: "input", thousandSeparator: " ", decimalScale: h, prefix: j, suffix: w, defaultValue: "", name: B, value: U, placeholder: a ?? n, onFocus: (I) => {
|
|
3945
3946
|
!v && I.target.select();
|
|
3946
3947
|
}, onChange: (I) => {
|
|
3947
3948
|
var ue, he;
|
|
@@ -3957,7 +3958,7 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3957
3958
|
o && k(t) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(ee, { color: "secondary", size: "sm", onClick: A, children: /* @__PURE__ */ r.jsx(Ee, {}) }) }),
|
|
3958
3959
|
b && /* @__PURE__ */ r.jsx(Je, { message: b.message })
|
|
3959
3960
|
] });
|
|
3960
|
-
},
|
|
3961
|
+
}, ad = ({ cell: { value: e } }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: e ? /* @__PURE__ */ r.jsx(br, { name: e, size: 21, fontSize: 12 }) : /* @__PURE__ */ r.jsx(r.Fragment, {}) }), tu = ({ knownTypes: e, typeFilters: t, onChangeTypeFilters: n }) => /* @__PURE__ */ r.jsx("div", { className: "mb-1 d-flex justify-content-center gap-2", children: e.map((a) => /* @__PURE__ */ r.jsx("div", { role: "button", style: {
|
|
3961
3962
|
height: "14px",
|
|
3962
3963
|
width: "14px",
|
|
3963
3964
|
borderRadius: "50%",
|
|
@@ -3965,13 +3966,13 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3965
3966
|
backgroundColor: "transparent"
|
|
3966
3967
|
}, className: y(`border-${a}`, t.includes(a) && `bg-${a}`), onClick: () => {
|
|
3967
3968
|
t.includes(a) ? n(t.filter((s) => s !== a)) : n([...t, a]);
|
|
3968
|
-
} }, a)) }),
|
|
3969
|
+
} }, a)) }), nu = ({ linksTo: e, onClick: t, children: n }) => e ? /* @__PURE__ */ r.jsx(Qe, { to: e, className: "text-decoration-none", onClick: t, children: n }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: n }), ru = ({ message: e, onDeleteMessage: t, onClickMessage: n, getIcon: a, getLinksTo: s }) => {
|
|
3969
3970
|
const { ProjectIconComponent: o, localizationContext: i } = Z(we), { dateFnsLocale: c } = Z(i), l = e.dateTime ? pt(e.dateTime) : null, u = l ? to(new Date(Date.now()), l) : 0;
|
|
3970
3971
|
return /* @__PURE__ */ r.jsxs("div", { children: [
|
|
3971
|
-
l && /* @__PURE__ */ r.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ r.jsx(
|
|
3972
|
+
l && /* @__PURE__ */ r.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ r.jsx(dn, { text: ht(l, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(X, { variant: "caption", children: u > 2 ? ht(l, "dd.MM.yyyy") : ro(l, new Date(Date.now()), {
|
|
3972
3973
|
locale: c.code
|
|
3973
3974
|
}) }) }) }) }),
|
|
3974
|
-
/* @__PURE__ */ r.jsx(
|
|
3975
|
+
/* @__PURE__ */ r.jsx(nu, { linksTo: s(e) ?? void 0, onClick: n, children: /* @__PURE__ */ r.jsx(Yl, { level: e.type, noIcon: !0, children: /* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
|
|
3975
3976
|
a(e),
|
|
3976
3977
|
/* @__PURE__ */ r.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
|
|
3977
3978
|
/* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
|
|
@@ -3987,10 +3988,10 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
3987
3988
|
}, ir = ["info", "warning", "danger"], lr = ({ messages: e, isLoading: t, onDeleteMessage: n, onClickMessage: a, getIcon: s, getLinksTo: o }) => {
|
|
3988
3989
|
const { texts: { messageBoard: i } } = Z(we), [c, l] = R(ir), u = re(() => e.filter((d) => c.includes(d.type ?? "")), [c, e]);
|
|
3989
3990
|
return /* @__PURE__ */ r.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
|
|
3990
|
-
/* @__PURE__ */ r.jsx(
|
|
3991
|
+
/* @__PURE__ */ r.jsx(tu, { knownTypes: ir, typeFilters: c, onChangeTypeFilters: (d) => l(d) }),
|
|
3991
3992
|
t && /* @__PURE__ */ r.jsxs("div", { className: "p-3 w-100", children: [
|
|
3992
|
-
/* @__PURE__ */ r.jsx(Re, { as:
|
|
3993
|
-
/* @__PURE__ */ r.jsxs(Re, { as:
|
|
3993
|
+
/* @__PURE__ */ r.jsx(Re, { as: An.Title, animation: "glow", children: /* @__PURE__ */ r.jsx(Re, { xs: 6 }) }),
|
|
3994
|
+
/* @__PURE__ */ r.jsxs(Re, { as: An.Text, animation: "glow", children: [
|
|
3994
3995
|
/* @__PURE__ */ r.jsx(Re, { xs: 7 }),
|
|
3995
3996
|
" ",
|
|
3996
3997
|
/* @__PURE__ */ r.jsx(Re, { xs: 4 }),
|
|
@@ -4004,13 +4005,13 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
4004
4005
|
] }),
|
|
4005
4006
|
!t && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4006
4007
|
e.length === 0 && /* @__PURE__ */ r.jsx(Ia, { variant: "info", size: "sm", className: "mt-2", children: i.noMessages }),
|
|
4007
|
-
/* @__PURE__ */ r.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: u.map((d) => /* @__PURE__ */ r.jsx(
|
|
4008
|
+
/* @__PURE__ */ r.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: u.map((d) => /* @__PURE__ */ r.jsx(ru, { message: d, onDeleteMessage: n, onClickMessage: a, getIcon: s, getLinksTo: o }, d.id)) })
|
|
4008
4009
|
] })
|
|
4009
4010
|
] });
|
|
4010
|
-
},
|
|
4011
|
+
}, qt = {
|
|
4011
4012
|
apiGet: "/messageBoard",
|
|
4012
4013
|
apiDelete: "/messageBoard/"
|
|
4013
|
-
},
|
|
4014
|
+
}, sd = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: n = qt.apiGet, apiDelete: a = qt.apiDelete } = qt, getIcon: s, getLinksTo: o }) => {
|
|
4014
4015
|
const c = yt(), [l, u] = R([]), [d, m] = R(!1), [p, g] = R(!1), [v, x] = R(!1), h = D(async () => {
|
|
4015
4016
|
g(!0), await c.get(n).then(({ data: C }) => {
|
|
4016
4017
|
u(C), m(!0), g(!1);
|
|
@@ -4035,18 +4036,18 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
4035
4036
|
/* @__PURE__ */ r.jsx(ee, { size: "md", onClick: () => x(!v), children: t }),
|
|
4036
4037
|
f > 0 && /* @__PURE__ */ r.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 })
|
|
4037
4038
|
] }),
|
|
4038
|
-
/* @__PURE__ */ r.jsx(
|
|
4039
|
+
/* @__PURE__ */ r.jsx(Wn, { show: v, onHide: () => x(!1), placement: "end", children: /* @__PURE__ */ r.jsx(Wn.Body, { children: /* @__PURE__ */ r.jsx(lr, { messages: l, isLoading: _, onDeleteMessage: w, onClickMessage: () => x(!1), getIcon: s, getLinksTo: o }) }) })
|
|
4039
4040
|
] }) : /* @__PURE__ */ r.jsx(lr, { messages: l, isLoading: _, onDeleteMessage: w, getIcon: s, getLinksTo: o });
|
|
4040
|
-
},
|
|
4041
|
+
}, au = "_tab-panel_d8l8q_1", su = "_full-height-no-overflow_d8l8q_5", ou = "_disabled_d8l8q_12", Qt = {
|
|
4041
4042
|
"tab-panel": "_tab-panel_d8l8q_1",
|
|
4042
|
-
tabPanel:
|
|
4043
|
+
tabPanel: au,
|
|
4043
4044
|
"full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
|
|
4044
|
-
fullHeightNoOverflow:
|
|
4045
|
-
disabled:
|
|
4046
|
-
},
|
|
4045
|
+
fullHeightNoOverflow: su,
|
|
4046
|
+
disabled: ou
|
|
4047
|
+
}, od = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: n, disabled: a, className: s, children: o }) => e !== t ? null : /* @__PURE__ */ r.jsx("div", { className: y("luminus-tab-panel", Qt.tabPanel, { [Qt.fullHeightNoOverflow]: n }, { disabled: a }, { [Qt.disabled]: a }, s), children: o }), iu = "_join-line_1q9e8_1", lu = {
|
|
4047
4048
|
"join-line": "_join-line_1q9e8_1",
|
|
4048
|
-
joinLine:
|
|
4049
|
-
},
|
|
4049
|
+
joinLine: iu
|
|
4050
|
+
}, id = ({ activeTab: e, onSelect: t, children: n, vertical: a, verticalStepper: s }) => /* @__PURE__ */ r.jsx("div", { className: y("luminus-tabs d-flex mb-2", { "gap-1": !s }, { "gap-0": s }, {
|
|
4050
4051
|
"flex-column": a || s
|
|
4051
4052
|
}), children: n.map((o, i) => {
|
|
4052
4053
|
const c = o.type, l = o.props;
|
|
@@ -4057,95 +4058,95 @@ const Lu = ({ InputContainer: e = Ze, value: t, onChange: n, debounceMs: a, labe
|
|
|
4057
4058
|
/* @__PURE__ */ r.jsx(c, { ...l, className: y({ active: e === u }, m), onClick: () => {
|
|
4058
4059
|
t(u), p && p(u);
|
|
4059
4060
|
}, vertical: a || s, children: d }),
|
|
4060
|
-
s && i < n.length - 1 && /* @__PURE__ */ r.jsx("div", { className: y("join-line",
|
|
4061
|
+
s && i < n.length - 1 && /* @__PURE__ */ r.jsx("div", { className: y("join-line", lu.joinLine) })
|
|
4061
4062
|
] }, l.eventKey);
|
|
4062
|
-
}) }),
|
|
4063
|
-
tab:
|
|
4064
|
-
disabled:
|
|
4065
|
-
vertical:
|
|
4066
|
-
},
|
|
4063
|
+
}) }), cu = "_tab_1tbi7_1", uu = "_disabled_1tbi7_7", du = "_vertical_1tbi7_13", Zt = {
|
|
4064
|
+
tab: cu,
|
|
4065
|
+
disabled: uu,
|
|
4066
|
+
vertical: du
|
|
4067
|
+
}, ld = ({ eventKey: e, className: t, onClick: n, disabled: a, vertical: s, children: o }) => /* @__PURE__ */ r.jsx("div", { role: "button", className: y("luminus-tab text-primary rounded", Zt.tab, t, {
|
|
4067
4068
|
disabled: a
|
|
4068
|
-
}, { [
|
|
4069
|
+
}, { [Zt.disabled]: a }, { vertical: s }, { [Zt.vertical]: s }), onClick: () => n && !a && n(e), children: typeof o == "string" ? /* @__PURE__ */ r.jsx(X, { variant: s ? "body" : "h6", className: s ? "" : "text-primary", children: o }) : o });
|
|
4069
4070
|
export {
|
|
4070
4071
|
Ia as Alert,
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4072
|
+
Yl as AlertItem,
|
|
4073
|
+
_u as ApiFileDownloadButton,
|
|
4074
|
+
Iu as AppSearch,
|
|
4075
|
+
Eu as AuthTemplate,
|
|
4075
4076
|
br as AvatarIcon,
|
|
4076
4077
|
$a as Backdrop,
|
|
4077
|
-
|
|
4078
|
-
|
|
4078
|
+
Su as Badge,
|
|
4079
|
+
xl as Card,
|
|
4079
4080
|
Fa as CheckInput,
|
|
4080
|
-
|
|
4081
|
+
Ni as Collapse,
|
|
4081
4082
|
$t as ContextButton,
|
|
4082
|
-
|
|
4083
|
-
|
|
4083
|
+
Uu as DisabledRowLabelLink,
|
|
4084
|
+
dd as Documents,
|
|
4084
4085
|
Ca as Dropdown,
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4086
|
+
Du as DropdownDivider,
|
|
4087
|
+
wn as DropdownItem,
|
|
4088
|
+
Tu as DropdownPicker,
|
|
4088
4089
|
Na as DropdownToggle,
|
|
4089
|
-
|
|
4090
|
-
|
|
4090
|
+
Hu as DynamicForm,
|
|
4091
|
+
Yu as EmployeeSmallPhoto,
|
|
4091
4092
|
mi as ErrorBoundary,
|
|
4092
|
-
|
|
4093
|
-
|
|
4093
|
+
fd as FileExtensionIcon,
|
|
4094
|
+
Cu as FileUploadButton,
|
|
4094
4095
|
wa as FileUploadContextButton,
|
|
4095
|
-
|
|
4096
|
-
|
|
4096
|
+
$u as FileUploadDropdownItem,
|
|
4097
|
+
Ql as FloatingActionContainer,
|
|
4097
4098
|
Yo as FloatingFormSubmit,
|
|
4098
4099
|
Ze as FloatingLabelInput,
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4100
|
+
Au as FromToDatePicker,
|
|
4101
|
+
ku as HomeDashboard,
|
|
4102
|
+
Qu as HookFormCheckInput,
|
|
4103
|
+
Ju as HookFormDropdownPicker,
|
|
4104
|
+
Xu as HookFormFileInput,
|
|
4105
|
+
ed as HookFormFloatingSubmit,
|
|
4106
|
+
nd as HookFormNumericStepperInput,
|
|
4107
|
+
rd as HookFormNumericTextInput,
|
|
4108
|
+
Zu as HookFormRadioInput,
|
|
4109
|
+
td as HookFormSelectInput,
|
|
4110
|
+
md as HookFormTextAreaInput,
|
|
4111
|
+
hd as HookFormTextInput,
|
|
4112
|
+
Nu as HtmlTooltip,
|
|
4112
4113
|
ee as IconButton,
|
|
4113
4114
|
qn as ImgApi,
|
|
4114
4115
|
Da as ImgDirect,
|
|
4115
4116
|
Je as InvalidFeedback,
|
|
4116
|
-
|
|
4117
|
-
|
|
4117
|
+
zu as LanguageSwitch,
|
|
4118
|
+
In as Loading,
|
|
4118
4119
|
Js as LoadingBlock,
|
|
4119
|
-
|
|
4120
|
+
sd as MessageBoard,
|
|
4120
4121
|
qo as MonthPicker,
|
|
4121
|
-
|
|
4122
|
+
Vu as MonthPickerSearchParams,
|
|
4122
4123
|
Ie as NoInputContainer,
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4124
|
+
qu as NumericFormat,
|
|
4125
|
+
Lu as NumericStepperInput,
|
|
4126
|
+
Ru as NumericTextInput,
|
|
4127
|
+
Pl as PhotoLibrary,
|
|
4128
|
+
Vl as PhotoLightbox,
|
|
4129
|
+
Bu as PieChart,
|
|
4130
|
+
$n as PrimaryButton,
|
|
4130
4131
|
Pe as RowLabelInput,
|
|
4131
|
-
|
|
4132
|
+
Ku as SearchBox,
|
|
4132
4133
|
Ft as SelectInput,
|
|
4133
|
-
|
|
4134
|
-
|
|
4134
|
+
Wu as SettingsFormPicker,
|
|
4135
|
+
yn as SimplePicker,
|
|
4135
4136
|
Ns as SimpleToggle,
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4137
|
+
dn as SimpleTooltip,
|
|
4138
|
+
ld as Tab,
|
|
4139
|
+
od as TabPanel,
|
|
4140
|
+
id as Tabs,
|
|
4141
|
+
Mu as TextAreaInput,
|
|
4141
4142
|
nt as TextInput,
|
|
4142
|
-
|
|
4143
|
-
|
|
4143
|
+
Ou as Timeline,
|
|
4144
|
+
Gu as TypedFormGroup,
|
|
4144
4145
|
X as Typography,
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4146
|
+
pd as UserAvatarToggle,
|
|
4147
|
+
ad as UserAvatarValueFormat,
|
|
4148
|
+
Fu as VersionInfo,
|
|
4149
|
+
zn as WidgetCard,
|
|
4149
4150
|
Jo as YearPicker,
|
|
4150
|
-
|
|
4151
|
+
Pu as YearPickerSearchParams
|
|
4151
4152
|
};
|