react-luminus-components 1.3.186 → 1.3.187
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.cjs.js +2 -2
- package/dist/main.es.js +253 -253
- package/dist/models/texts/ShortcutLinkTexts.d.ts +1 -0
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as n, c as _, t as je, a as kt, s as An, g as Bn, m as Ks, d as Bt, b as qs, e as Qs, f as
|
|
1
|
+
import { j as n, c as _, t as je, a as kt, s as An, g as Bn, m as Ks, d as Bt, b as qs, e as Qs, f as We, h as Zs, i as Js, k as Xs, l as ea, n as ta, o as na, p as ra, T as Ir, q as $r, r as Vn, E as sa, u as Dr, v as kn, w as Lr, x as aa, y as he, z as Kt, A as oa, B as Tr, C as qt, D as ia, F as xn, G as Er, H as la, S as vn, N as Fr, I as Sn, J as Cn, K as ca, L as da, M as ua, O as fa, P as ma, Q as Or, R as ha, U as ga, V as pa, W as xa, X as va, Y as ja, Z as ya, _ as jn, $ as oe, a0 as zt, a1 as wa, a2 as _a, a3 as ba, a4 as Rr, a5 as St, a6 as te, a7 as In, a8 as pe, a9 as $n, aa as Ve, ab as it, ac as Na, ad as Pe, ae as K, af as Mr, ag as Ar, ah as Br, ai as Ae, aj as lt, ak as ka, al as Sa, am as Ca, an as Ia, ao as Qt, ap as Ze, aq as Lt, ar as Tt, as as Vr, at as Se, au as Pr, av as $a, aw as Da, ax as La, ay as ht, az as gt, aA as Et, aB as Ce, aC as zr, aD as Ct, aE as Je, aF as Hr, aG as Fe, aH as Ta, aI as Wr, aJ as Ea, aK as Ur, aL as Fa, aM as Oa, aN as Ra, aO as Ma, aP as Aa, aQ as Ba, aR as Ht, aS as Gr, aT as Va, aU as Pa, aV as za, aW as Ha, aX as Wa, aY as Ua, aZ as Ke, a_ as Ga, a$ as Ya, b0 as Ka, b1 as qa, b2 as Qa, b3 as sn, b4 as Pn, b5 as Za, b6 as Ja, b7 as Yr } from "./nivo-bar.es-i2iP31eh.js";
|
|
2
2
|
import { bc as Zu, bd as Ju, ba as Xu, b9 as ef, b8 as tf, be as nf, bf as rf, bb as sf } from "./nivo-bar.es-i2iP31eh.js";
|
|
3
3
|
import * as ie from "react";
|
|
4
4
|
import ke, { useCallback as C, useMemo as Y, useContext as U, useRef as J, useEffect as B, useState as E, useId as Xa, Component as eo, isValidElement as zn, Suspense as to, useLayoutEffect as no } from "react";
|
|
5
|
-
import { c as Ue, L as
|
|
5
|
+
import { c as Ue, L as Hn } from "./Loading-t5uR0uRd.js";
|
|
6
6
|
import { InteractionType as ro } from "@azure/msal-browser";
|
|
7
7
|
import { MsalAuthenticationTemplate as so } from "@azure/msal-react";
|
|
8
|
-
import { useNavigate as Kr, Link as Oe, useSearchParams as ao, useParams as oo, generatePath as
|
|
9
|
-
import { useFormContext as Xe, Controller as
|
|
8
|
+
import { useNavigate as Kr, Link as Oe, useSearchParams as ao, useParams as oo, generatePath as Wt, useLocation as io, Navigate as Rt } from "react-router-dom";
|
|
9
|
+
import { useFormContext as Xe, Controller as Dn } from "react-hook-form";
|
|
10
10
|
import { Pivot as lo } from "react-flexmonster";
|
|
11
11
|
import { u as Zt, a as qr } from "./useWindowSize-OLYtjFv_.js";
|
|
12
12
|
import { s as qe, l as bt } from "./searchUtils-CcPSNrZS.js";
|
|
@@ -49,7 +49,7 @@ function go(e, t) {
|
|
|
49
49
|
const r = je(e), s = je(t), a = r.getTime() - s.getTime();
|
|
50
50
|
return a < 0 ? -1 : a > 0 ? 1 : a;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Wn(e, t) {
|
|
53
53
|
const r = je(e), s = je(t), a = r.getFullYear() - s.getFullYear(), o = r.getMonth() - s.getMonth();
|
|
54
54
|
return a * 12 + o;
|
|
55
55
|
}
|
|
@@ -57,7 +57,7 @@ function Un(e) {
|
|
|
57
57
|
const t = je(e);
|
|
58
58
|
return Math.trunc(t.getMonth() / 3) + 1;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function an(e, t) {
|
|
61
61
|
const r = je(e), s = je(t), a = r.getFullYear() - s.getFullYear(), o = Un(r) - Un(s);
|
|
62
62
|
return a * 4 + o;
|
|
63
63
|
}
|
|
@@ -65,7 +65,7 @@ function Gn(e, t, r) {
|
|
|
65
65
|
const s = An(e, r), a = An(t, r), o = +s - Bn(s), i = +a - Bn(a);
|
|
66
66
|
return Math.round((o - i) / Ks);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function on(e, t) {
|
|
69
69
|
const r = je(e), s = je(t);
|
|
70
70
|
return r.getFullYear() - s.getFullYear();
|
|
71
71
|
}
|
|
@@ -79,28 +79,28 @@ function Yn(e, t) {
|
|
|
79
79
|
const r = 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();
|
|
80
80
|
return r < 0 ? -1 : r > 0 ? 1 : r;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Ln(e) {
|
|
83
83
|
return (t) => {
|
|
84
84
|
const s = (e ? Math[e] : Math.trunc)(t);
|
|
85
85
|
return s === 0 ? 0 : s;
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Tn(e, t) {
|
|
89
89
|
return +je(e) - +je(t);
|
|
90
90
|
}
|
|
91
91
|
function Kn(e, t, r) {
|
|
92
|
-
const s =
|
|
93
|
-
return
|
|
92
|
+
const s = Tn(e, t) / qs;
|
|
93
|
+
return Ln(r == null ? void 0 : r.roundingMethod)(s);
|
|
94
94
|
}
|
|
95
95
|
function qn(e, t, r) {
|
|
96
|
-
const s =
|
|
97
|
-
return
|
|
96
|
+
const s = Tn(e, t) / Qs;
|
|
97
|
+
return Ln(r == null ? void 0 : r.roundingMethod)(s);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
const s =
|
|
101
|
-
return
|
|
99
|
+
function ln(e, t, r) {
|
|
100
|
+
const s = Tn(e, t) / 1e3;
|
|
101
|
+
return Ln(r == null ? void 0 : r.roundingMethod)(s);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function yn(e, t) {
|
|
104
104
|
const r = je(e);
|
|
105
105
|
if (isNaN(r.getTime()))
|
|
106
106
|
throw new RangeError("Invalid time value");
|
|
@@ -108,17 +108,17 @@ function jn(e, t) {
|
|
|
108
108
|
let o = "", i = "";
|
|
109
109
|
const c = s === "extended" ? "-" : "", l = s === "extended" ? ":" : "";
|
|
110
110
|
if (a !== "time") {
|
|
111
|
-
const d =
|
|
112
|
-
o = `${
|
|
111
|
+
const d = We(r.getDate(), 2), u = We(r.getMonth() + 1, 2);
|
|
112
|
+
o = `${We(r.getFullYear(), 4)}${c}${u}${c}${d}`;
|
|
113
113
|
}
|
|
114
114
|
if (a !== "date") {
|
|
115
115
|
const d = r.getTimezoneOffset();
|
|
116
116
|
if (d !== 0) {
|
|
117
|
-
const x = Math.abs(d), g =
|
|
117
|
+
const x = Math.abs(d), g = We(Math.trunc(x / 60), 2), h = We(x % 60, 2);
|
|
118
118
|
i = `${d < 0 ? "+" : "-"}${g}:${h}`;
|
|
119
119
|
} else
|
|
120
120
|
i = "Z";
|
|
121
|
-
const u =
|
|
121
|
+
const u = We(r.getHours(), 2), m = We(r.getMinutes(), 2), v = We(r.getSeconds(), 2), f = o === "" ? "" : "T", p = [u, m, v].join(l);
|
|
122
122
|
o = `${o}${f}${p}${i}`;
|
|
123
123
|
}
|
|
124
124
|
return o;
|
|
@@ -131,10 +131,10 @@ function vo(e, t, r) {
|
|
|
131
131
|
let s = 0, a;
|
|
132
132
|
const o = je(e), i = je(t);
|
|
133
133
|
if (r != null && r.unit)
|
|
134
|
-
a = r == null ? void 0 : r.unit, a === "second" ? s =
|
|
134
|
+
a = r == null ? void 0 : r.unit, a === "second" ? s = ln(o, i) : a === "minute" ? s = qn(o, i) : a === "hour" ? s = Kn(o, i) : a === "day" ? s = Bt(o, i) : a === "week" ? s = Gn(o, i) : a === "month" ? s = Wn(o, i) : a === "quarter" ? s = an(o, i) : a === "year" && (s = on(o, i));
|
|
135
135
|
else {
|
|
136
|
-
const l =
|
|
137
|
-
Math.abs(l) < Zs ? (s =
|
|
136
|
+
const l = ln(o, i);
|
|
137
|
+
Math.abs(l) < Zs ? (s = ln(o, i), a = "second") : Math.abs(l) < Js ? (s = qn(o, i), a = "minute") : Math.abs(l) < Xs && Math.abs(Bt(o, i)) < 1 ? (s = Kn(o, i), a = "hour") : Math.abs(l) < ea && (s = Bt(o, i)) && Math.abs(s) < 7 ? a = "day" : Math.abs(l) < ta ? (s = Gn(o, i), a = "week") : Math.abs(l) < na ? (s = Wn(o, i), a = "month") : Math.abs(l) < ra && an(o, i) < 4 ? (s = an(o, i), a = "quarter") : (s = on(o, i), a = "year");
|
|
138
138
|
}
|
|
139
139
|
return new Intl.RelativeTimeFormat(r == null ? void 0 : r.locale, {
|
|
140
140
|
localeMatcher: r == null ? void 0 : r.localeMatcher,
|
|
@@ -148,7 +148,7 @@ function jo(e, t) {
|
|
|
148
148
|
const i = xo(o);
|
|
149
149
|
return r.setMonth(t, Math.min(a, i)), r;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function wn(e, t) {
|
|
152
152
|
const r = je(e);
|
|
153
153
|
return isNaN(+r) ? kt(e, NaN) : (r.setFullYear(t), r);
|
|
154
154
|
}
|
|
@@ -174,7 +174,7 @@ function wo(e, t) {
|
|
|
174
174
|
const _o = {
|
|
175
175
|
[sa]: "collapse",
|
|
176
176
|
[Dr]: "collapsing",
|
|
177
|
-
[
|
|
177
|
+
[kn]: "collapsing",
|
|
178
178
|
[Lr]: "collapse show"
|
|
179
179
|
}, Xr = /* @__PURE__ */ ke.forwardRef(({
|
|
180
180
|
onEnter: e,
|
|
@@ -261,13 +261,13 @@ const rs = /* @__PURE__ */ ie.forwardRef((e, t) => {
|
|
|
261
261
|
variant: l = "primary",
|
|
262
262
|
onClose: d,
|
|
263
263
|
dismissible: u,
|
|
264
|
-
transition: m =
|
|
264
|
+
transition: m = xn,
|
|
265
265
|
...v
|
|
266
266
|
} = Tr(e, {
|
|
267
267
|
show: "onClose"
|
|
268
268
|
}), f = he(r, "alert"), p = qt((h) => {
|
|
269
269
|
d && d(!1, h);
|
|
270
|
-
}), x = m === !0 ?
|
|
270
|
+
}), x = m === !0 ? xn : m, g = /* @__PURE__ */ n.jsxs("div", {
|
|
271
271
|
role: "alert",
|
|
272
272
|
...x ? void 0 : v,
|
|
273
273
|
ref: t,
|
|
@@ -290,7 +290,7 @@ rs.displayName = "Alert";
|
|
|
290
290
|
const bo = Object.assign(rs, {
|
|
291
291
|
Link: ns,
|
|
292
292
|
Heading: ts
|
|
293
|
-
}),
|
|
293
|
+
}), En = /* @__PURE__ */ ie.forwardRef(({
|
|
294
294
|
className: e,
|
|
295
295
|
bsPrefix: t,
|
|
296
296
|
as: r = "div",
|
|
@@ -300,7 +300,7 @@ const bo = Object.assign(rs, {
|
|
|
300
300
|
className: _(e, t),
|
|
301
301
|
...s
|
|
302
302
|
})));
|
|
303
|
-
|
|
303
|
+
En.displayName = "CardBody";
|
|
304
304
|
const ss = /* @__PURE__ */ ie.forwardRef(({
|
|
305
305
|
className: e,
|
|
306
306
|
bsPrefix: t,
|
|
@@ -424,7 +424,7 @@ const ms = /* @__PURE__ */ ie.forwardRef(({
|
|
|
424
424
|
ref: d,
|
|
425
425
|
...l,
|
|
426
426
|
className: _(t, u, r && `bg-${r}`, s && `text-${s}`, a && `border-${a}`),
|
|
427
|
-
children: o ? /* @__PURE__ */ n.jsx(
|
|
427
|
+
children: o ? /* @__PURE__ */ n.jsx(En, {
|
|
428
428
|
children: i
|
|
429
429
|
}) : i
|
|
430
430
|
});
|
|
@@ -434,7 +434,7 @@ const Qn = Object.assign(ms, {
|
|
|
434
434
|
Img: is,
|
|
435
435
|
Title: fs,
|
|
436
436
|
Subtitle: ds,
|
|
437
|
-
Body:
|
|
437
|
+
Body: En,
|
|
438
438
|
Link: cs,
|
|
439
439
|
Text: us,
|
|
440
440
|
Header: os,
|
|
@@ -504,7 +504,7 @@ function ps({
|
|
|
504
504
|
role: a,
|
|
505
505
|
disabled: o
|
|
506
506
|
}) {
|
|
507
|
-
const i = U(
|
|
507
|
+
const i = U(vn), c = U(Fr), l = U(gs);
|
|
508
508
|
let d = r;
|
|
509
509
|
const u = {
|
|
510
510
|
role: a
|
|
@@ -512,7 +512,7 @@ function ps({
|
|
|
512
512
|
if (c) {
|
|
513
513
|
!a && c.role === "tablist" && (u.role = "tab");
|
|
514
514
|
const m = c.getControllerId(e ?? null), v = c.getControlledId(e ?? null);
|
|
515
|
-
u[
|
|
515
|
+
u[Sn("event-key")] = e, u.id = m || s, d = r == null && e != null ? c.activeKey === e : r, (d || !(l != null && l.unmountOnExit) && !(l != null && l.mountOnEnter)) && (u["aria-controls"] = v);
|
|
516
516
|
}
|
|
517
517
|
return u.role === "tab" && (u["aria-selected"] = d, d || (u.tabIndex = -1), o && (u.tabIndex = -1, u["aria-disabled"] = !0)), u.onClick = qt((m) => {
|
|
518
518
|
o || (t == null || t(m), e != null && i && !m.isPropagationStopped() && i(e, m));
|
|
@@ -527,10 +527,10 @@ const xs = /* @__PURE__ */ ie.forwardRef((e, t) => {
|
|
|
527
527
|
eventKey: a
|
|
528
528
|
} = e, o = $o(e, Io);
|
|
529
529
|
const [i, c] = ps(Object.assign({
|
|
530
|
-
key:
|
|
530
|
+
key: Cn(a, o.href),
|
|
531
531
|
active: s
|
|
532
532
|
}, o));
|
|
533
|
-
return i[
|
|
533
|
+
return i[Sn("active")] = c.isActive, /* @__PURE__ */ n.jsx(r, Object.assign({}, o, i, {
|
|
534
534
|
ref: t
|
|
535
535
|
}));
|
|
536
536
|
});
|
|
@@ -546,7 +546,7 @@ function Lo(e, t) {
|
|
|
546
546
|
return r;
|
|
547
547
|
}
|
|
548
548
|
const Zn = () => {
|
|
549
|
-
}, Jn =
|
|
549
|
+
}, Jn = Sn("event-key"), vs = /* @__PURE__ */ ie.forwardRef((e, t) => {
|
|
550
550
|
let {
|
|
551
551
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
552
552
|
as: r = "div",
|
|
@@ -555,7 +555,7 @@ const Zn = () => {
|
|
|
555
555
|
role: o,
|
|
556
556
|
onKeyDown: i
|
|
557
557
|
} = e, c = Lo(e, Do);
|
|
558
|
-
const l = da(), d = J(!1), u = U(
|
|
558
|
+
const l = da(), d = J(!1), u = U(vn), m = U(gs);
|
|
559
559
|
let v, f;
|
|
560
560
|
m && (o = o || "tablist", a = m.activeKey, v = m.getControlledId, f = m.getControllerId);
|
|
561
561
|
const p = J(null), x = (w) => {
|
|
@@ -595,13 +595,13 @@ const Zn = () => {
|
|
|
595
595
|
d.current = !1;
|
|
596
596
|
});
|
|
597
597
|
const y = ua(t, p);
|
|
598
|
-
return /* @__PURE__ */ n.jsx(
|
|
598
|
+
return /* @__PURE__ */ n.jsx(vn.Provider, {
|
|
599
599
|
value: g,
|
|
600
600
|
children: /* @__PURE__ */ n.jsx(Fr.Provider, {
|
|
601
601
|
value: {
|
|
602
602
|
role: o,
|
|
603
603
|
// used by NavLink to determine it's role
|
|
604
|
-
activeKey:
|
|
604
|
+
activeKey: Cn(a),
|
|
605
605
|
getControlledId: v || Zn,
|
|
606
606
|
getControllerId: f || Zn
|
|
607
607
|
},
|
|
@@ -629,7 +629,7 @@ const To = Object.assign(vs, {
|
|
|
629
629
|
}, d) => {
|
|
630
630
|
e = he(e, "list-group-item");
|
|
631
631
|
const [u, m] = ps({
|
|
632
|
-
key:
|
|
632
|
+
key: Cn(s, l.href),
|
|
633
633
|
active: t,
|
|
634
634
|
...l
|
|
635
635
|
}), v = qt((p) => {
|
|
@@ -674,10 +674,10 @@ const js = /* @__PURE__ */ ie.forwardRef((e, t) => {
|
|
|
674
674
|
js.displayName = "ListGroup";
|
|
675
675
|
const ys = Object.assign(js, {
|
|
676
676
|
Item: Ft
|
|
677
|
-
}),
|
|
677
|
+
}), _n = /* @__PURE__ */ new WeakMap(), Xn = (e, t) => {
|
|
678
678
|
if (!e || !t) return;
|
|
679
|
-
const r =
|
|
680
|
-
|
|
679
|
+
const r = _n.get(t) || /* @__PURE__ */ new Map();
|
|
680
|
+
_n.set(t, r);
|
|
681
681
|
let s = r.get(e);
|
|
682
682
|
return s || (s = t.matchMedia(e), s.refCount = 0, r.set(s.media, s)), s;
|
|
683
683
|
};
|
|
@@ -687,7 +687,7 @@ function Eo(e, t = typeof window > "u" ? void 0 : window) {
|
|
|
687
687
|
let o = Xn(e, t);
|
|
688
688
|
if (!o)
|
|
689
689
|
return a(!1);
|
|
690
|
-
let i =
|
|
690
|
+
let i = _n.get(t);
|
|
691
691
|
const c = () => {
|
|
692
692
|
a(o.matches);
|
|
693
693
|
};
|
|
@@ -742,7 +742,7 @@ const Oo = Fo({
|
|
|
742
742
|
})));
|
|
743
743
|
ws.displayName = "OffcanvasBody";
|
|
744
744
|
const Ro = {
|
|
745
|
-
[
|
|
745
|
+
[kn]: "show",
|
|
746
746
|
[Lr]: "show"
|
|
747
747
|
}, _s = /* @__PURE__ */ ie.forwardRef(({
|
|
748
748
|
bsPrefix: e,
|
|
@@ -764,7 +764,7 @@ const Ro = {
|
|
|
764
764
|
childRef: r.ref,
|
|
765
765
|
children: (d, u) => /* @__PURE__ */ ie.cloneElement(r, {
|
|
766
766
|
...u,
|
|
767
|
-
className: _(t, r.props.className, (d ===
|
|
767
|
+
className: _(t, r.props.className, (d === kn || d === Dr) && `${e}-toggling`, Ro[d])
|
|
768
768
|
})
|
|
769
769
|
})));
|
|
770
770
|
_s.displayName = "OffcanvasToggling";
|
|
@@ -799,7 +799,7 @@ function Ao(e) {
|
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
801
|
function Bo(e) {
|
|
802
|
-
return /* @__PURE__ */ n.jsx(
|
|
802
|
+
return /* @__PURE__ */ n.jsx(xn, {
|
|
803
803
|
...e
|
|
804
804
|
});
|
|
805
805
|
}
|
|
@@ -840,7 +840,7 @@ const ks = /* @__PURE__ */ ie.forwardRef(({
|
|
|
840
840
|
B(() => {
|
|
841
841
|
O(o ? i && !D : i);
|
|
842
842
|
}, [i, o, D]);
|
|
843
|
-
const
|
|
843
|
+
const W = Y(() => ({
|
|
844
844
|
onHide: N
|
|
845
845
|
}), [N]);
|
|
846
846
|
function G() {
|
|
@@ -864,7 +864,7 @@ const ks = /* @__PURE__ */ ie.forwardRef(({
|
|
|
864
864
|
});
|
|
865
865
|
return /* @__PURE__ */ n.jsxs(n.Fragment, {
|
|
866
866
|
children: [!Q && (o || A) && ne({}), /* @__PURE__ */ n.jsx(pa.Provider, {
|
|
867
|
-
value:
|
|
867
|
+
value: W,
|
|
868
868
|
children: /* @__PURE__ */ n.jsx(xa, {
|
|
869
869
|
show: Q,
|
|
870
870
|
ref: P,
|
|
@@ -918,7 +918,7 @@ function Ss({
|
|
|
918
918
|
}
|
|
919
919
|
const Cs = /* @__PURE__ */ ie.forwardRef((e, t) => {
|
|
920
920
|
const r = Ss(e);
|
|
921
|
-
return /* @__PURE__ */ n.jsx(
|
|
921
|
+
return /* @__PURE__ */ n.jsx(jn, {
|
|
922
922
|
...r,
|
|
923
923
|
ref: t,
|
|
924
924
|
disabled: !0,
|
|
@@ -939,7 +939,7 @@ const Is = /* @__PURE__ */ ie.forwardRef(({
|
|
|
939
939
|
Is.displayName = "Placeholder";
|
|
940
940
|
const Ge = Object.assign(Is, {
|
|
941
941
|
Button: Cs
|
|
942
|
-
}),
|
|
942
|
+
}), Fn = /* @__PURE__ */ ie.forwardRef(({
|
|
943
943
|
bsPrefix: e,
|
|
944
944
|
variant: t,
|
|
945
945
|
animation: r = "border",
|
|
@@ -957,7 +957,7 @@ const Ge = Object.assign(Is, {
|
|
|
957
957
|
className: _(o, l, s && `${l}-${s}`, t && `text-${t}`)
|
|
958
958
|
});
|
|
959
959
|
});
|
|
960
|
-
|
|
960
|
+
Fn.displayName = "Spinner";
|
|
961
961
|
const Vo = /* @__PURE__ */ ie.forwardRef(({
|
|
962
962
|
bsPrefix: e,
|
|
963
963
|
className: t,
|
|
@@ -1019,9 +1019,9 @@ const Vo = /* @__PURE__ */ ie.forwardRef(({
|
|
|
1019
1019
|
/* @__PURE__ */ n.jsx("label", { htmlFor: i, className: _("btn luminus-context-button text-primary", `btn-${a}`, s), children: r }),
|
|
1020
1020
|
/* @__PURE__ */ n.jsx("input", { id: i, type: "file", accept: t, onChange: o, hidden: !0 })
|
|
1021
1021
|
] });
|
|
1022
|
-
}, zo = "_select_dlv1t_1",
|
|
1022
|
+
}, zo = "_select_dlv1t_1", cn = {
|
|
1023
1023
|
select: zo
|
|
1024
|
-
},
|
|
1024
|
+
}, Ho = ({ month: e, onChangeMonth: t, locale: r, yearMin: s = 2e3, yearMax: a = 2050 }) => {
|
|
1025
1025
|
const o = C((l) => {
|
|
1026
1026
|
const d = Jr(e, l);
|
|
1027
1027
|
d.getFullYear() < s || d.getFullYear() > a || t(d);
|
|
@@ -1040,19 +1040,19 @@ const Vo = /* @__PURE__ */ ie.forwardRef(({
|
|
|
1040
1040
|
return u;
|
|
1041
1041
|
}, [r]);
|
|
1042
1042
|
return /* @__PURE__ */ n.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
1043
|
-
/* @__PURE__ */ n.jsx(te, { onClick: () => o(-1), disabled: e.getFullYear() < s || e.getFullYear() === s && e.getMonth() <= 0, children: /* @__PURE__ */ n.jsx(
|
|
1043
|
+
/* @__PURE__ */ n.jsx(te, { onClick: () => o(-1), disabled: e.getFullYear() < s || e.getFullYear() === s && e.getMonth() <= 0, children: /* @__PURE__ */ n.jsx(In, {}) }),
|
|
1044
1044
|
/* @__PURE__ */ n.jsx(pe.Select, { value: e.getMonth(), onChange: (l) => {
|
|
1045
1045
|
var d;
|
|
1046
1046
|
return ((d = l.target) == null ? void 0 : d.value) && t(jo(e, Number(l.target.value)));
|
|
1047
|
-
}, className: _(
|
|
1047
|
+
}, className: _(cn.select, cn.month), children: c.map((l) => /* @__PURE__ */ n.jsx("option", { value: l.id, children: l.name }, l.id)) }),
|
|
1048
1048
|
/* @__PURE__ */ n.jsx(pe.Select, { value: e.getFullYear(), onChange: (l) => {
|
|
1049
1049
|
var d;
|
|
1050
|
-
return ((d = l.target) == null ? void 0 : d.value) && t(
|
|
1051
|
-
}, className: _(
|
|
1052
|
-
/* @__PURE__ */ n.jsx(te, { onClick: () => o(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ n.jsx(
|
|
1050
|
+
return ((d = l.target) == null ? void 0 : d.value) && t(wn(e, Number(l.target.value)));
|
|
1051
|
+
}, className: _(cn.select), children: i.map((l) => /* @__PURE__ */ n.jsx("option", { value: l, children: l }, l)) }),
|
|
1052
|
+
/* @__PURE__ */ n.jsx(te, { onClick: () => o(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ n.jsx($n, {}) })
|
|
1053
1053
|
] });
|
|
1054
|
-
},
|
|
1055
|
-
select:
|
|
1054
|
+
}, Wo = "_select_pywmr_1", Uo = {
|
|
1055
|
+
select: Wo
|
|
1056
1056
|
}, tr = 2e3, nr = 2050, Go = ({ year: e, onChangeYear: t, className: r, ...s }) => {
|
|
1057
1057
|
const a = Y(() => {
|
|
1058
1058
|
var l;
|
|
@@ -1072,7 +1072,7 @@ const Vo = /* @__PURE__ */ ie.forwardRef(({
|
|
|
1072
1072
|
const d = i.findIndex((u) => u === e.getFullYear());
|
|
1073
1073
|
if (d !== -1) {
|
|
1074
1074
|
const u = i.at(d + l) ?? null;
|
|
1075
|
-
u && t(
|
|
1075
|
+
u && t(wn(e, u));
|
|
1076
1076
|
}
|
|
1077
1077
|
} else {
|
|
1078
1078
|
const d = e.getFullYear() + l;
|
|
@@ -1080,12 +1080,12 @@ const Vo = /* @__PURE__ */ ie.forwardRef(({
|
|
|
1080
1080
|
}
|
|
1081
1081
|
}, [e, t, o, a, s, i]);
|
|
1082
1082
|
return /* @__PURE__ */ n.jsxs("div", { className: _("card d-flex flex-row align-items-center m-0 p-1 gap-2", r ?? ""), children: [
|
|
1083
|
-
/* @__PURE__ */ n.jsx(te, { onClick: () => c(-1), disabled: e.getFullYear() <= a, children: /* @__PURE__ */ n.jsx(
|
|
1083
|
+
/* @__PURE__ */ n.jsx(te, { onClick: () => c(-1), disabled: e.getFullYear() <= a, children: /* @__PURE__ */ n.jsx(In, {}) }),
|
|
1084
1084
|
/* @__PURE__ */ n.jsx(pe.Select, { value: e.getFullYear(), onChange: (l) => {
|
|
1085
1085
|
var d;
|
|
1086
|
-
return ((d = l.target) == null ? void 0 : d.value) && t(
|
|
1086
|
+
return ((d = l.target) == null ? void 0 : d.value) && t(wn(e, Number(l.target.value)));
|
|
1087
1087
|
}, className: Uo.select, children: i.map((l) => /* @__PURE__ */ n.jsx("option", { value: l, children: l }, l)) }),
|
|
1088
|
-
/* @__PURE__ */ n.jsx(te, { onClick: () => c(1), disabled: e.getFullYear() >= o, children: /* @__PURE__ */ n.jsx(
|
|
1088
|
+
/* @__PURE__ */ n.jsx(te, { onClick: () => c(1), disabled: e.getFullYear() >= o, children: /* @__PURE__ */ n.jsx($n, {}) })
|
|
1089
1089
|
] });
|
|
1090
1090
|
};
|
|
1091
1091
|
class Yo extends eo {
|
|
@@ -1160,8 +1160,8 @@ const Ko = (e) => (r) => {
|
|
|
1160
1160
|
const D = N;
|
|
1161
1161
|
s && (j && s(D == null || D === "" ? null : Number(D)), s(D || null));
|
|
1162
1162
|
}, [j, s]), L = C((N) => {
|
|
1163
|
-
var
|
|
1164
|
-
const D = (
|
|
1163
|
+
var W;
|
|
1164
|
+
const D = (W = N.target) == null ? void 0 : W.value;
|
|
1165
1165
|
if (!a) {
|
|
1166
1166
|
A(D);
|
|
1167
1167
|
return;
|
|
@@ -1406,7 +1406,7 @@ function si(e) {
|
|
|
1406
1406
|
});
|
|
1407
1407
|
return r.current;
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function On(e, t) {
|
|
1410
1410
|
t === void 0 && (t = !0);
|
|
1411
1411
|
var r = e[0] === "-", s = r && t;
|
|
1412
1412
|
e = e.replace("-", "");
|
|
@@ -1447,7 +1447,7 @@ function Os(e) {
|
|
|
1447
1447
|
function ar(e, t, r) {
|
|
1448
1448
|
if (["", "-"].indexOf(e) !== -1)
|
|
1449
1449
|
return e;
|
|
1450
|
-
var s = (e.indexOf(".") !== -1 || r) && t, a =
|
|
1450
|
+
var s = (e.indexOf(".") !== -1 || r) && t, a = On(e), o = a.beforeDecimal, i = a.afterDecimal, c = a.hasNegation, l = parseFloat("0." + (i || "0")), d = i.length <= t ? "0." + i : l.toFixed(t), u = d.split("."), m = o;
|
|
1451
1451
|
o && Number(u[0]) && (m = o.split("").reverse().reduce(function(x, g, h) {
|
|
1452
1452
|
return x.length > h ? (Number(x[0]) + Number(g)).toString() + x.substring(1, x.length) : g + x;
|
|
1453
1453
|
}, u[0]));
|
|
@@ -1482,7 +1482,7 @@ var Rs = ei(function(e, t) {
|
|
|
1482
1482
|
function ii(e, t, r) {
|
|
1483
1483
|
return Math.min(Math.max(e, t), r);
|
|
1484
1484
|
}
|
|
1485
|
-
function
|
|
1485
|
+
function dn(e) {
|
|
1486
1486
|
return Math.max(e.selectionStart, e.selectionEnd);
|
|
1487
1487
|
}
|
|
1488
1488
|
function li() {
|
|
@@ -1605,49 +1605,49 @@ function gi(e) {
|
|
|
1605
1605
|
w === void 0 && (w = Dt);
|
|
1606
1606
|
var b = e.isCharacterSame, j = Ls(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = Ms(h, l, !!d, i, c, u), T = S[0], $ = T.formattedValue, R = T.numAsString, A = S[1], L = J(), P = J({ formattedValue: $, numAsString: R }), k = function(I, M) {
|
|
1607
1607
|
P.current = { formattedValue: I.formattedValue, numAsString: I.value }, A(I, M);
|
|
1608
|
-
}, Q = E(!1), O = Q[0], N = Q[1], D = J(null),
|
|
1608
|
+
}, Q = E(!1), O = Q[0], N = Q[1], D = J(null), W = J({
|
|
1609
1609
|
setCaretTimeout: null,
|
|
1610
1610
|
focusTimeout: null
|
|
1611
1611
|
});
|
|
1612
1612
|
B(function() {
|
|
1613
1613
|
return N(!0), function() {
|
|
1614
|
-
clearTimeout(
|
|
1614
|
+
clearTimeout(W.current.setCaretTimeout), clearTimeout(W.current.focusTimeout);
|
|
1615
1615
|
};
|
|
1616
1616
|
}, []);
|
|
1617
1617
|
var G = i, X = function(I, M) {
|
|
1618
|
-
var
|
|
1618
|
+
var H = parseFloat(M);
|
|
1619
1619
|
return {
|
|
1620
1620
|
formattedValue: I,
|
|
1621
1621
|
value: M,
|
|
1622
|
-
floatValue: isNaN(
|
|
1622
|
+
floatValue: isNaN(H) ? void 0 : H
|
|
1623
1623
|
};
|
|
1624
|
-
}, z = function(I, M,
|
|
1625
|
-
I.selectionStart === 0 && I.selectionEnd === I.value.length || (ot(I, M),
|
|
1626
|
-
I.value ===
|
|
1624
|
+
}, z = function(I, M, H) {
|
|
1625
|
+
I.selectionStart === 0 && I.selectionEnd === I.value.length || (ot(I, M), W.current.setCaretTimeout = setTimeout(function() {
|
|
1626
|
+
I.value === H && I.selectionStart !== M && ot(I, M);
|
|
1627
1627
|
}, 0));
|
|
1628
|
-
}, Z = function(I, M,
|
|
1629
|
-
return or(I, M, y(I),
|
|
1630
|
-
}, ne = function(I, M,
|
|
1631
|
-
var le = y(M), ve = ui(M, $, I,
|
|
1628
|
+
}, Z = function(I, M, H) {
|
|
1629
|
+
return or(I, M, y(I), H);
|
|
1630
|
+
}, ne = function(I, M, H) {
|
|
1631
|
+
var le = y(M), ve = ui(M, $, I, H, le, w, b);
|
|
1632
1632
|
return ve = or(M, ve, le), ve;
|
|
1633
1633
|
}, re = function(I) {
|
|
1634
1634
|
var M = I.formattedValue;
|
|
1635
1635
|
M === void 0 && (M = "");
|
|
1636
|
-
var
|
|
1637
|
-
if (
|
|
1638
|
-
var Ie = I.inputValue ||
|
|
1639
|
-
|
|
1636
|
+
var H = I.input, le = I.source, ve = I.event, ce = I.numAsString, de;
|
|
1637
|
+
if (H) {
|
|
1638
|
+
var Ie = I.inputValue || H.value, Te = dn(H);
|
|
1639
|
+
H.value = M, de = ne(Ie, M, Te), de !== void 0 && z(H, de, M);
|
|
1640
1640
|
}
|
|
1641
1641
|
M !== $ && k(X(M, ce), { event: ve, source: le });
|
|
1642
1642
|
};
|
|
1643
1643
|
B(function() {
|
|
1644
|
-
var I = P.current, M = I.formattedValue,
|
|
1645
|
-
($ !== M || R !==
|
|
1644
|
+
var I = P.current, M = I.formattedValue, H = I.numAsString;
|
|
1645
|
+
($ !== M || R !== H) && k(X($, R), {
|
|
1646
1646
|
event: void 0,
|
|
1647
1647
|
source: $t.props
|
|
1648
1648
|
});
|
|
1649
1649
|
}, [$, R]);
|
|
1650
|
-
var V = D.current ?
|
|
1650
|
+
var V = D.current ? dn(D.current) : void 0, F = typeof window < "u" ? no : B;
|
|
1651
1651
|
F(function() {
|
|
1652
1652
|
var I = D.current;
|
|
1653
1653
|
if ($ !== P.current.formattedValue && I) {
|
|
@@ -1655,10 +1655,10 @@ function gi(e) {
|
|
|
1655
1655
|
I.value = $, z(I, M, $);
|
|
1656
1656
|
}
|
|
1657
1657
|
}, [$]);
|
|
1658
|
-
var ee = function(I, M,
|
|
1658
|
+
var ee = function(I, M, H) {
|
|
1659
1659
|
var le = M.target, ve = L.current ? oi(L.current, le.selectionEnd) : Rs($, I), ce = Object.assign(Object.assign({}, ve), { lastValue: $ }), de = c(I, ce), Ie = G(de);
|
|
1660
1660
|
if (de = c(Ie, void 0), m && !m(X(Ie, de))) {
|
|
1661
|
-
var Te = M.target, Ee =
|
|
1661
|
+
var Te = M.target, Ee = dn(Te), dt = ne(I, $, Ee);
|
|
1662
1662
|
return Te.value = $, z(Te, dt, $), !1;
|
|
1663
1663
|
}
|
|
1664
1664
|
return re({
|
|
@@ -1666,56 +1666,56 @@ function gi(e) {
|
|
|
1666
1666
|
numAsString: de,
|
|
1667
1667
|
inputValue: I,
|
|
1668
1668
|
event: M,
|
|
1669
|
-
source:
|
|
1669
|
+
source: H,
|
|
1670
1670
|
input: M.target
|
|
1671
1671
|
}), !0;
|
|
1672
1672
|
}, ae = function(I, M) {
|
|
1673
1673
|
M === void 0 && (M = 0);
|
|
1674
|
-
var
|
|
1675
|
-
L.current = { selectionStart:
|
|
1674
|
+
var H = I.selectionStart, le = I.selectionEnd;
|
|
1675
|
+
L.current = { selectionStart: H, selectionEnd: le + M };
|
|
1676
1676
|
}, be = function(I) {
|
|
1677
|
-
var M = I.target,
|
|
1677
|
+
var M = I.target, H = M.value, le = ee(H, I, $t.event);
|
|
1678
1678
|
le && v(I), L.current = void 0;
|
|
1679
1679
|
}, Le = function(I) {
|
|
1680
|
-
var M = I.target,
|
|
1680
|
+
var M = I.target, H = I.key, le = M.selectionStart, ve = M.selectionEnd, ce = M.value;
|
|
1681
1681
|
ce === void 0 && (ce = "");
|
|
1682
1682
|
var de;
|
|
1683
|
-
|
|
1683
|
+
H === "ArrowLeft" || H === "Backspace" ? de = Math.max(le - 1, 0) : H === "ArrowRight" ? de = Math.min(le + 1, ce.length) : H === "Delete" && (de = le);
|
|
1684
1684
|
var Ie = 0;
|
|
1685
|
-
|
|
1686
|
-
var Te =
|
|
1685
|
+
H === "Delete" && le === ve && (Ie = 1);
|
|
1686
|
+
var Te = H === "ArrowLeft" || H === "ArrowRight";
|
|
1687
1687
|
if (de === void 0 || le !== ve && !Te) {
|
|
1688
1688
|
f(I), ae(M, Ie);
|
|
1689
1689
|
return;
|
|
1690
1690
|
}
|
|
1691
1691
|
var Ee = de;
|
|
1692
1692
|
if (Te) {
|
|
1693
|
-
var dt =
|
|
1693
|
+
var dt = H === "ArrowLeft" ? "left" : "right";
|
|
1694
1694
|
Ee = Z(ce, de, dt), Ee !== de && I.preventDefault();
|
|
1695
|
-
} else
|
|
1695
|
+
} else H === "Delete" && !w(ce[de]) ? Ee = Z(ce, de, "right") : H === "Backspace" && !w(ce[de]) && (Ee = Z(ce, de, "left"));
|
|
1696
1696
|
Ee !== de && z(M, Ee, ce), f(I), ae(M, Ie);
|
|
1697
1697
|
}, ze = function(I) {
|
|
1698
|
-
var M = I.target,
|
|
1698
|
+
var M = I.target, H = function() {
|
|
1699
1699
|
var le = M.selectionStart, ve = M.selectionEnd, ce = M.value;
|
|
1700
1700
|
if (ce === void 0 && (ce = ""), le === ve) {
|
|
1701
1701
|
var de = Z(ce, le);
|
|
1702
1702
|
de !== le && z(M, de, ce);
|
|
1703
1703
|
}
|
|
1704
1704
|
};
|
|
1705
|
-
|
|
1706
|
-
|
|
1705
|
+
H(), requestAnimationFrame(function() {
|
|
1706
|
+
H();
|
|
1707
1707
|
}), p(I), ae(M);
|
|
1708
1708
|
}, se = function(I) {
|
|
1709
1709
|
I.persist && I.persist();
|
|
1710
|
-
var M = I.target,
|
|
1711
|
-
D.current = M,
|
|
1710
|
+
var M = I.target, H = I.currentTarget;
|
|
1711
|
+
D.current = M, W.current.focusTimeout = setTimeout(function() {
|
|
1712
1712
|
var le = M.selectionStart, ve = M.selectionEnd, ce = M.value;
|
|
1713
1713
|
ce === void 0 && (ce = "");
|
|
1714
1714
|
var de = Z(ce, le);
|
|
1715
|
-
de !== le && !(le === 0 && ve === ce.length) && z(M, de, ce), x(Object.assign(Object.assign({}, I), { currentTarget:
|
|
1715
|
+
de !== le && !(le === 0 && ve === ce.length) && z(M, de, ce), x(Object.assign(Object.assign({}, I), { currentTarget: H }));
|
|
1716
1716
|
}, 0);
|
|
1717
1717
|
}, _e = function(I) {
|
|
1718
|
-
D.current = null, clearTimeout(
|
|
1718
|
+
D.current = null, clearTimeout(W.current.focusTimeout), clearTimeout(W.current.setCaretTimeout), g(I);
|
|
1719
1719
|
}, Ne = O && li() ? "numeric" : void 0, et = Object.assign({ inputMode: Ne }, j, {
|
|
1720
1720
|
type: t,
|
|
1721
1721
|
value: $,
|
|
@@ -1741,7 +1741,7 @@ function ir(e, t) {
|
|
|
1741
1741
|
var i = t.allowNegative, c = t.thousandsGroupStyle;
|
|
1742
1742
|
if (c === void 0 && (c = "thousand"), e === "" || e === "-")
|
|
1743
1743
|
return e;
|
|
1744
|
-
var l = Xt(t), d = l.thousandSeparator, u = l.decimalSeparator, m = r !== 0 && e.indexOf(".") !== -1 || r && s, v =
|
|
1744
|
+
var l = Xt(t), d = l.thousandSeparator, u = l.decimalSeparator, m = r !== 0 && e.indexOf(".") !== -1 || r && s, v = On(e, i), f = v.beforeDecimal, p = v.afterDecimal, x = v.addNegation;
|
|
1745
1745
|
return r !== void 0 && (p = Fs(p, r, !!s)), d && (f = ri(f, d, c)), a && (f = a + f), o && (p = p + o), x && (f = "-" + f), e = f + (m && u || "") + p, e;
|
|
1746
1746
|
}
|
|
1747
1747
|
function Xt(e) {
|
|
@@ -1779,11 +1779,11 @@ function ji(e, t, r) {
|
|
|
1779
1779
|
var g = c === 0 ? "" : p;
|
|
1780
1780
|
e = e.substring(0, u) + g + e.substring(u + 1, e.length);
|
|
1781
1781
|
}
|
|
1782
|
-
var h = function(D,
|
|
1782
|
+
var h = function(D, W, G) {
|
|
1783
1783
|
var X = !1, z = !1;
|
|
1784
1784
|
o.startsWith("-") ? X = !1 : D.startsWith("--") ? (X = !1, z = !0) : i.startsWith("-") && D.length === i.length ? X = !1 : D[0] === "-" && (X = !0);
|
|
1785
1785
|
var Z = X ? 1 : 0;
|
|
1786
|
-
return z && (Z = 2), Z && (D = D.substring(Z),
|
|
1786
|
+
return z && (Z = 2), Z && (D = D.substring(Z), W -= Z, G -= Z), { value: D, start: W, end: G, hasNegation: X };
|
|
1787
1787
|
}, y = h(e, u, m), w = y.hasNegation;
|
|
1788
1788
|
s = y, e = s.value, u = s.start, m = s.end;
|
|
1789
1789
|
var b = h(t.lastValue, l.start, l.end), j = b.start, S = b.end, T = b.value, $ = e.substring(u, m);
|
|
@@ -1793,10 +1793,10 @@ function ji(e, t, r) {
|
|
|
1793
1793
|
var A = e.length, L = e.length - i.length;
|
|
1794
1794
|
e.endsWith(i) ? A = L : (m > L || m > e.length - i.length) && (A = m), e = e.substring(0, A), e = pi(w ? "-" + e : e, a), e = (e.match(xi(p)) || []).join("");
|
|
1795
1795
|
var P = e.indexOf(p);
|
|
1796
|
-
e = e.replace(new RegExp(Es(p), "g"), function(D,
|
|
1797
|
-
return
|
|
1796
|
+
e = e.replace(new RegExp(Es(p), "g"), function(D, W) {
|
|
1797
|
+
return W === P ? "." : "";
|
|
1798
1798
|
});
|
|
1799
|
-
var k =
|
|
1799
|
+
var k = On(e, a), Q = k.beforeDecimal, O = k.afterDecimal, N = k.addNegation;
|
|
1800
1800
|
return d.end - d.start < l.end - l.start && Q === "" && x && !parseFloat(O) && (e = N ? "-" : ""), e;
|
|
1801
1801
|
}
|
|
1802
1802
|
function yi(e, t) {
|
|
@@ -1844,8 +1844,8 @@ function _i(e) {
|
|
|
1844
1844
|
var S = function(N) {
|
|
1845
1845
|
return Ts(N) ? N : (typeof N == "number" && (N = Os(N)), j && typeof c == "number" ? ar(N, c, !!l) : N);
|
|
1846
1846
|
}, T = Ms(S(m), S(u), !!j, y, w, f), $ = T[0], R = $.numAsString, A = $.formattedValue, L = T[1], P = function(N) {
|
|
1847
|
-
var D = N.target,
|
|
1848
|
-
if (z === void 0 && (z = ""), (
|
|
1847
|
+
var D = N.target, W = N.key, G = D.selectionStart, X = D.selectionEnd, z = D.value;
|
|
1848
|
+
if (z === void 0 && (z = ""), (W === "Backspace" || W === "Delete") && X < d.length) {
|
|
1849
1849
|
N.preventDefault();
|
|
1850
1850
|
return;
|
|
1851
1851
|
}
|
|
@@ -1853,15 +1853,15 @@ function _i(e) {
|
|
|
1853
1853
|
a(N);
|
|
1854
1854
|
return;
|
|
1855
1855
|
}
|
|
1856
|
-
|
|
1856
|
+
W === "Backspace" && z[0] === "-" && G === d.length + 1 && r && ot(D, 1), c && l && (W === "Backspace" && z[G - 1] === g ? (ot(D, G - 1), N.preventDefault()) : W === "Delete" && z[G] === g && N.preventDefault()), h != null && h.includes(W) && z[G] === g && ot(D, G + 1);
|
|
1857
1857
|
var Z = i === !0 ? "," : i;
|
|
1858
|
-
|
|
1858
|
+
W === "Backspace" && z[G - 1] === Z && ot(D, G - 1), W === "Delete" && z[G] === Z && ot(D, G + 1), a(N);
|
|
1859
1859
|
}, k = function(N) {
|
|
1860
1860
|
var D = R;
|
|
1861
1861
|
if (D.match(/\d/g) || (D = ""), s || (D = ai(D)), l && c && (D = ar(D, c, l)), D !== R) {
|
|
1862
|
-
var
|
|
1862
|
+
var W = ir(D, e);
|
|
1863
1863
|
L({
|
|
1864
|
-
formattedValue:
|
|
1864
|
+
formattedValue: W,
|
|
1865
1865
|
value: D,
|
|
1866
1866
|
floatValue: parseFloat(D)
|
|
1867
1867
|
}, {
|
|
@@ -1873,7 +1873,7 @@ function _i(e) {
|
|
|
1873
1873
|
}, Q = function(N) {
|
|
1874
1874
|
return N === g ? !0 : Dt(N);
|
|
1875
1875
|
}, O = function(N) {
|
|
1876
|
-
var D = N.currentValue,
|
|
1876
|
+
var D = N.currentValue, W = N.lastValue, G = N.formattedValue, X = N.currentValueIndex, z = N.formattedValueIndex, Z = D[X], ne = G[z], re = Rs(W, D), V = re.to, F = function(ee) {
|
|
1877
1877
|
return w(ee).indexOf(".") + d.length;
|
|
1878
1878
|
};
|
|
1879
1879
|
return m === 0 && l && c && D[V.start] === g && F(D) < X && F(G) > z ? !1 : X >= V.start && X < V.end && h && h.includes(Z) && ne === g ? !0 : Z === ne;
|
|
@@ -1893,7 +1893,7 @@ function _i(e) {
|
|
|
1893
1893
|
onBlur: k
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1896
|
+
function Rn(e) {
|
|
1897
1897
|
var t = _i(e);
|
|
1898
1898
|
return ke.createElement(gi, Object.assign({}, t));
|
|
1899
1899
|
}
|
|
@@ -1924,7 +1924,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
1924
1924
|
}, [T, w, y, $]), B(() => {
|
|
1925
1925
|
!r || t === null || (w !== void 0 && t > w && r(w), y !== void 0 && t < y && r(y));
|
|
1926
1926
|
}, [t, w, y, r]), /* @__PURE__ */ n.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: l, className: v, hint: b, children: [
|
|
1927
|
-
/* @__PURE__ */ n.jsx(
|
|
1927
|
+
/* @__PURE__ */ n.jsx(Rn, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: x, prefix: g, suffix: h, defaultValue: "", value: s ? T : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? a, onFocus: (L) => {
|
|
1928
1928
|
!p && L.target.select();
|
|
1929
1929
|
}, onChange: A, hidden: l, disabled: d, className: _("form-control text-end w-100", {
|
|
1930
1930
|
[`form-control-${c}`]: c
|
|
@@ -1978,7 +1978,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
1978
1978
|
p && /* @__PURE__ */ n.jsx(lt, { message: p.message })
|
|
1979
1979
|
] });
|
|
1980
1980
|
}, hu = ({ InputContainer: e = Ae, formField: t, label: r, size: s, defaultSelection: a, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: d, items: u, onSearchQueryChange: m, selectedItemNavigateTo: v, texts: f, dropdownItemsNameWidth: p, isLoading: x, withoutLabel: g, additionalColumns: h, CustomOnChangeComponent: y, icon: w, displayIdAsName: b, onSelect: j, className: S, archiveColumn: T, hint: $, addNewOptionPath: R, refreshOptions: A }) => {
|
|
1981
|
-
const { formState: L, setValue: P, watch: k, control: Q } = Xe(), [O, N] = E(void 0), [D,
|
|
1981
|
+
const { formState: L, setValue: P, watch: k, control: Q } = Xe(), [O, N] = E(void 0), [D, W] = E(!1), [G, X] = E(!1), z = k(t) ?? null, Z = z === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : k(`${t}-DropdownName`), ne = Y(() => z == null ? null : { id: z ?? null, name: Z ?? "" }, [z, Z]), re = C(() => {
|
|
1982
1982
|
const se = t.split(".");
|
|
1983
1983
|
let _e = L.errors;
|
|
1984
1984
|
se.forEach((Ne) => {
|
|
@@ -2000,9 +2000,9 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2000
2000
|
shouldValidate: G
|
|
2001
2001
|
}), P(`${t}-DropdownName`, se.name ?? "");
|
|
2002
2002
|
}, [P, t, G, i, o, z, j]), F = C((se) => {
|
|
2003
|
-
|
|
2003
|
+
W(!1), V(se);
|
|
2004
2004
|
}, [V]), ee = C(() => {
|
|
2005
|
-
|
|
2005
|
+
W(!1);
|
|
2006
2006
|
}, []);
|
|
2007
2007
|
B(() => {
|
|
2008
2008
|
re();
|
|
@@ -2013,10 +2013,10 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2013
2013
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: g, isInvalid: be, inputContainerClassName: _({ "luminus-dropdown-select-open": D }), hint: $, className: S, children: [
|
|
2014
2014
|
/* @__PURE__ */ n.jsxs(Ds, { currentSelection: ne, selectedItemNavigateTo: v, children: [
|
|
2015
2015
|
b && (ne == null ? void 0 : ne.name) && /* @__PURE__ */ n.jsx(K, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: ne.name }),
|
|
2016
|
-
/* @__PURE__ */ n.jsx(
|
|
2016
|
+
/* @__PURE__ */ n.jsx(Dn, { control: Q, name: t, render: () => /* @__PURE__ */ n.jsx(pe.Select, { size: s, onMouseDown: (se) => {
|
|
2017
2017
|
se.currentTarget.focus(), se.preventDefault();
|
|
2018
2018
|
}, onClick: () => {
|
|
2019
|
-
!Le && !d &&
|
|
2019
|
+
!Le && !d && W(!0);
|
|
2020
2020
|
}, ref: ae, value: z ?? "", onChange: () => {
|
|
2021
2021
|
}, isInvalid: be, hidden: l, className: _("w-100", {
|
|
2022
2022
|
"luminus-dropdown-picker-disabled": d,
|
|
@@ -2024,7 +2024,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2024
2024
|
}), children: /* @__PURE__ */ n.jsx("option", { value: z, children: b ? z : (Z == null ? void 0 : Z.length) > 0 ? Z : z }) }) }),
|
|
2025
2025
|
y || !d && Le ? /* @__PURE__ */ n.jsxs("div", { className: "custom-picker-button", children: [
|
|
2026
2026
|
!y && !d && Le && /* @__PURE__ */ n.jsx(te, { size: "sm", color: "secondary", onClick: (se) => {
|
|
2027
|
-
se.preventDefault(), se.stopPropagation(),
|
|
2027
|
+
se.preventDefault(), se.stopPropagation(), W(!0);
|
|
2028
2028
|
}, children: w ?? /* @__PURE__ */ n.jsx(Mr, {}) }),
|
|
2029
2029
|
y ?? null
|
|
2030
2030
|
] }) : null
|
|
@@ -2061,7 +2061,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2061
2061
|
o(Object.keys(s.dirtyFields).length > 0);
|
|
2062
2062
|
}, [s]), a ? /* @__PURE__ */ n.jsx(Po, { onStorno: t, noSpacer: r, children: e }) : null;
|
|
2063
2063
|
}, xu = ({ InputContainer: e = Ae, options: t, formField: r, label: s, size: a, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: d, withoutLabel: u, noSortOptions: m, suffixIdToName: v, onSelect: f, className: p, appendCurrentSelectionWithName: x, hint: g, addNewOptionPath: h, refreshOptions: y }) => {
|
|
2064
|
-
const { texts: { customSelect: w } } = U(oe), { formState: b, setValue: j, watch: S, control: T } = Xe(), [$, R] = E(void 0), [A, L] = E(!1), [P, k] = E(!1), [Q, O] = E(""), N = S(r), D = Y(() => t.find((F) => F.id === N) ?? null, [t, N]),
|
|
2064
|
+
const { texts: { customSelect: w } } = U(oe), { formState: b, setValue: j, watch: S, control: T } = Xe(), [$, R] = E(void 0), [A, L] = E(!1), [P, k] = E(!1), [Q, O] = E(""), N = S(r), D = Y(() => t.find((F) => F.id === N) ?? null, [t, N]), W = C(() => {
|
|
2065
2065
|
const F = r.split(".");
|
|
2066
2066
|
let ee = b.errors;
|
|
2067
2067
|
F.forEach((ae) => {
|
|
@@ -2088,8 +2088,8 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2088
2088
|
O(F);
|
|
2089
2089
|
}, []);
|
|
2090
2090
|
B(() => {
|
|
2091
|
-
|
|
2092
|
-
}, [
|
|
2091
|
+
W();
|
|
2092
|
+
}, [W]), B(() => {
|
|
2093
2093
|
b.isSubmitted && k(!0);
|
|
2094
2094
|
}, [b]);
|
|
2095
2095
|
const Z = C((F) => {
|
|
@@ -2110,7 +2110,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2110
2110
|
N
|
|
2111
2111
|
]), re = J(null), V = $ !== void 0;
|
|
2112
2112
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${s}${c ? " *" : ""}`, hidden: l, withoutLabel: u, isInvalid: V, inputContainerClassName: _({ "luminus-dropdown-select-open": A }), hint: g, className: p, children: [
|
|
2113
|
-
/* @__PURE__ */ n.jsx(
|
|
2113
|
+
/* @__PURE__ */ n.jsx(Dn, { control: T, name: r, render: () => /* @__PURE__ */ n.jsx(pe.Select, { size: a, onMouseDown: (F) => {
|
|
2114
2114
|
F.currentTarget.focus(), F.preventDefault();
|
|
2115
2115
|
}, onClick: () => {
|
|
2116
2116
|
L(!0);
|
|
@@ -2120,8 +2120,8 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2120
2120
|
re.current && /* @__PURE__ */ n.jsx(tn, { show: A, onCancel: () => L(!1), items: ne, currentSelection: D ?? null, onSelectionChange: X, onSearchQueryChange: z, texts: w, disabled: d, inputRef: re, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: h, refreshOptions: y })
|
|
2121
2121
|
] }) });
|
|
2122
2122
|
}, vu = ({ InputContainer: e = Ae, formField: t, label: r, placeholder: s, size: a, resetsFields: o, showClearIcon: i, clearValue: c, required: l, hidden: d, disabled: u, withoutLabel: m, step: v, stepperStep: f = 1, className: p, min: x, max: g, onChange: h, hint: y }) => {
|
|
2123
|
-
const { register: w, formState: b, setValue: j, watch: S } = Xe(), [T, $] = E(void 0), [R, A] = E(!1), L = C((N, D,
|
|
2124
|
-
j(N, bt(D, x, g),
|
|
2123
|
+
const { register: w, formState: b, setValue: j, watch: S } = Xe(), [T, $] = E(void 0), [R, A] = E(!1), L = C((N, D, W) => {
|
|
2124
|
+
j(N, bt(D, x, g), W);
|
|
2125
2125
|
}, [g, x, j]), P = C(() => {
|
|
2126
2126
|
const N = c ?? null;
|
|
2127
2127
|
L(t, N !== null ? Number(N) : null, {
|
|
@@ -2131,8 +2131,8 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2131
2131
|
}, [c, L, t, R]), k = C(() => {
|
|
2132
2132
|
const N = t.split(".");
|
|
2133
2133
|
let D = b.errors;
|
|
2134
|
-
N.forEach((
|
|
2135
|
-
D !== void 0 && (D = D[
|
|
2134
|
+
N.forEach((W) => {
|
|
2135
|
+
D !== void 0 && (D = D[W]);
|
|
2136
2136
|
}), $(D);
|
|
2137
2137
|
}, [b, t]);
|
|
2138
2138
|
B(() => {
|
|
@@ -2149,7 +2149,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2149
2149
|
max: g,
|
|
2150
2150
|
onChange: (N) => {
|
|
2151
2151
|
var D;
|
|
2152
|
-
o && o.forEach((
|
|
2152
|
+
o && o.forEach((W) => j(W, null, { shouldDirty: !0, shouldValidate: R })), h && h((D = N.target) != null && D.value ? Number(N.target.value) ?? null : null);
|
|
2153
2153
|
}
|
|
2154
2154
|
}), isInvalid: Q, hidden: d, disabled: u, className: "w-100 luminus-numeric-stepper", step: v, min: x, max: g }),
|
|
2155
2155
|
/* @__PURE__ */ n.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ n.jsx(te, { size: "sm", onClick: (N) => {
|
|
@@ -2185,10 +2185,10 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2185
2185
|
B(() => {
|
|
2186
2186
|
b !== void 0 && D > b && $(t, b), w !== void 0 && D < w && $(t, w);
|
|
2187
2187
|
}, [t, D, b, w, $]);
|
|
2188
|
-
const
|
|
2189
|
-
return /* @__PURE__ */ n.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: u, isInvalid:
|
|
2188
|
+
const W = L !== void 0;
|
|
2189
|
+
return /* @__PURE__ */ n.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: u, isInvalid: W, hint: S, className: x, children: [
|
|
2190
2190
|
/* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
2191
|
-
/* @__PURE__ */ n.jsx(
|
|
2191
|
+
/* @__PURE__ */ n.jsx(Dn, { control: A, name: t, render: ({ field: { ref: G, onChange: X, name: z, value: Z } }) => /* @__PURE__ */ n.jsx(Rn, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: g, prefix: h, suffix: y, defaultValue: "", name: z, value: Z ?? "", placeholder: s ?? r, onFocus: (ne) => {
|
|
2192
2192
|
!p && ne.target.select();
|
|
2193
2193
|
}, onChange: (ne) => {
|
|
2194
2194
|
var F, ee;
|
|
@@ -2197,7 +2197,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2197
2197
|
const V = re == null || Number.isNaN(re) ? null : Number(re);
|
|
2198
2198
|
X(V), j && j(V);
|
|
2199
2199
|
}, hidden: l, disabled: d, className: _("form-control text-end w-100", {
|
|
2200
|
-
"is-invalid":
|
|
2200
|
+
"is-invalid": W
|
|
2201
2201
|
}, {
|
|
2202
2202
|
[`form-control-${v}`]: v
|
|
2203
2203
|
}), step: m, getInputRef: G, min: w, max: b }) }),
|
|
@@ -2219,25 +2219,25 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2219
2219
|
] });
|
|
2220
2220
|
}, bi = "_divider_1e6rk_1", Ni = {
|
|
2221
2221
|
divider: bi
|
|
2222
|
-
}, As = ({ className: e }) => /* @__PURE__ */ n.jsx(Ca.Divider, { className: _("luminus-dropdown-divider", e, Ni.divider) }),
|
|
2222
|
+
}, As = ({ className: e }) => /* @__PURE__ */ n.jsx(Ca.Divider, { className: _("luminus-dropdown-divider", e, Ni.divider) }), Mn = ["slice", "options", "formats", "conditions"], lr = (e) => {
|
|
2223
2223
|
const t = e.current.flexmonster.getReport({ withDefaults: !0 });
|
|
2224
2224
|
if (typeof t == "string")
|
|
2225
2225
|
throw alert("report is string"), new Error("report is string");
|
|
2226
2226
|
const r = {};
|
|
2227
|
-
return
|
|
2227
|
+
return Mn.forEach((s) => {
|
|
2228
2228
|
r[s] = t[s];
|
|
2229
2229
|
}), JSON.stringify(r);
|
|
2230
2230
|
}, ki = (e) => {
|
|
2231
2231
|
if (e.settings) {
|
|
2232
2232
|
const t = JSON.parse(e.settings);
|
|
2233
|
-
return
|
|
2233
|
+
return Mn.forEach((r) => {
|
|
2234
2234
|
t[r] === void 0 && (t[r] = null);
|
|
2235
2235
|
}), t;
|
|
2236
2236
|
}
|
|
2237
2237
|
return {};
|
|
2238
2238
|
}, Si = (e) => {
|
|
2239
2239
|
const t = {};
|
|
2240
|
-
return
|
|
2240
|
+
return Mn.forEach((r) => {
|
|
2241
2241
|
t[r] = (e == null ? void 0 : e[r]) ?? void 0;
|
|
2242
2242
|
}), t;
|
|
2243
2243
|
}, cr = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, dr = (e) => !e.member && !e.isDrillThrough, ur = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t), Ci = ({ dataSource: e, settings: t, pivotRef: r, localization: s, licenseKey: a, hyperlinkColumn: o, enabled: i = !0 }) => {
|
|
@@ -2484,7 +2484,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2484
2484
|
}, wu = ({ reportType: e, title: t, data: r, filterElements: s, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: c, localizationJsonFile: l, localizationTransformer: d, hyperlinkColumn: u }) => {
|
|
2485
2485
|
const { texts: { reports: m } } = U(oe), { confirm: v } = Qt(), f = Kr(), [p] = ao(), { id: x } = oo(), g = Y(() => x === void 0 ? null : Number(x), [x]), h = C((V) => {
|
|
2486
2486
|
const F = V === null ? "" : V.toString();
|
|
2487
|
-
f(
|
|
2487
|
+
f(Wt(a(e), { id: F }) + "?" + p.toString(), {
|
|
2488
2488
|
replace: !0,
|
|
2489
2489
|
flushSync: !0
|
|
2490
2490
|
});
|
|
@@ -2507,7 +2507,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2507
2507
|
const V = ki(k) ?? {};
|
|
2508
2508
|
A(V), (F = b.current) == null || F.flexmonster.refresh();
|
|
2509
2509
|
}, [S, k]);
|
|
2510
|
-
const { save: O, saveAs: N, archive: D, detach:
|
|
2510
|
+
const { save: O, saveAs: N, archive: D, detach: W } = Ii(e, b, g, P), G = Y(() => ({
|
|
2511
2511
|
data: r ?? [],
|
|
2512
2512
|
mapping: $ ?? void 0
|
|
2513
2513
|
}), [r, $]), X = C(async () => {
|
|
@@ -2519,8 +2519,8 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2519
2519
|
}, [k == null ? void 0 : k.users, j.personalNumber]), ne = C(async () => {
|
|
2520
2520
|
await v(m.confirmDelete(k == null ? void 0 : k.name)) && (await D(), h(null), await T());
|
|
2521
2521
|
}, [D, v, T, k == null ? void 0 : k.name, m, h]), re = C(async () => {
|
|
2522
|
-
await v(m.confirmDetach(k == null ? void 0 : k.name)) && (await
|
|
2523
|
-
}, [v,
|
|
2522
|
+
await v(m.confirmDetach(k == null ? void 0 : k.name)) && (await W(), h(null), await T());
|
|
2523
|
+
}, [v, W, T, k == null ? void 0 : k.name, m, h]);
|
|
2524
2524
|
return B(() => {
|
|
2525
2525
|
var V, F;
|
|
2526
2526
|
g === null && h(((V = S == null ? void 0 : S.reportVersions.find((ee) => ee.isSystem === !0)) == null ? void 0 : V.reportVersionId) ?? ((F = S == null ? void 0 : S.reportVersions[0]) == null ? void 0 : F.reportVersionId) ?? null);
|
|
@@ -2602,14 +2602,14 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2602
2602
|
] })
|
|
2603
2603
|
] }),
|
|
2604
2604
|
!t && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2605
|
-
e.length === 0 && /* @__PURE__ */ n.jsx(
|
|
2605
|
+
e.length === 0 && /* @__PURE__ */ n.jsx(nn, { variant: "info", size: "sm", className: "mt-2", children: i.noMessages }),
|
|
2606
2606
|
/* @__PURE__ */ n.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: d.map((u) => /* @__PURE__ */ n.jsx(Fi, { message: u, onDeleteMessage: r, onClickMessage: s, getIcon: a, getLinksTo: o }, u.id)) })
|
|
2607
2607
|
] })
|
|
2608
2608
|
] });
|
|
2609
|
-
},
|
|
2609
|
+
}, un = {
|
|
2610
2610
|
apiGet: "/messageBoard",
|
|
2611
2611
|
apiDelete: "/messageBoard/"
|
|
2612
|
-
}, bu = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r =
|
|
2612
|
+
}, bu = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = un.apiGet, apiDelete: s = un.apiDelete } = un, getIcon: a, getLinksTo: o }) => {
|
|
2613
2613
|
const c = Ze(), [l, d] = E([]), [u, m] = E(!1), [v, f] = E(!1), [p, x] = E(!1), g = C(async () => {
|
|
2614
2614
|
f(!0), await c.get(r).then(({ data: j }) => {
|
|
2615
2615
|
d(j), m(!0), f(!1);
|
|
@@ -2636,13 +2636,13 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2636
2636
|
] }),
|
|
2637
2637
|
/* @__PURE__ */ n.jsx(er, { show: p, onHide: () => x(!1), placement: "end", children: /* @__PURE__ */ n.jsx(er.Body, { children: /* @__PURE__ */ n.jsx(mr, { messages: l, isLoading: b, onDeleteMessage: y, onClickMessage: () => x(!1), getIcon: a, getLinksTo: o }) }) })
|
|
2638
2638
|
] }) : /* @__PURE__ */ n.jsx(mr, { messages: l, isLoading: b, onDeleteMessage: y, getIcon: a, getLinksTo: o });
|
|
2639
|
-
}, Oi = "_tab-panel_d8l8q_1", Ri = "_full-height-no-overflow_d8l8q_5", Mi = "_disabled_d8l8q_12",
|
|
2639
|
+
}, Oi = "_tab-panel_d8l8q_1", Ri = "_full-height-no-overflow_d8l8q_5", Mi = "_disabled_d8l8q_12", fn = {
|
|
2640
2640
|
"tab-panel": "_tab-panel_d8l8q_1",
|
|
2641
2641
|
tabPanel: Oi,
|
|
2642
2642
|
"full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
|
|
2643
2643
|
fullHeightNoOverflow: Ri,
|
|
2644
2644
|
disabled: Mi
|
|
2645
|
-
}, Nu = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: r, disabled: s, className: a, children: o }) => e !== t ? null : /* @__PURE__ */ n.jsx("div", { className: _("luminus-tab-panel",
|
|
2645
|
+
}, Nu = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: r, disabled: s, className: a, children: o }) => e !== t ? null : /* @__PURE__ */ n.jsx("div", { className: _("luminus-tab-panel", fn.tabPanel, { [fn.fullHeightNoOverflow]: r }, { disabled: s }, { [fn.disabled]: s }, a), children: o }), Ai = "_join-line_1q9e8_1", Bi = {
|
|
2646
2646
|
"join-line": "_join-line_1q9e8_1",
|
|
2647
2647
|
joinLine: Ai
|
|
2648
2648
|
}, Vi = ({ activeTab: e, onSelect: t, children: r, vertical: s, verticalStepper: a }) => /* @__PURE__ */ n.jsx("div", { className: _("luminus-tabs d-flex mb-2", { "gap-1": !a }, { "gap-0": a }, {
|
|
@@ -2658,16 +2658,16 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2658
2658
|
}, vertical: s || a, children: u }),
|
|
2659
2659
|
a && i < r.length - 1 && /* @__PURE__ */ n.jsx("div", { className: _("join-line", Bi.joinLine) })
|
|
2660
2660
|
] }, l.eventKey);
|
|
2661
|
-
}) }), Pi = "_tab_1tbi7_1", zi = "_disabled_1tbi7_7",
|
|
2661
|
+
}) }), Pi = "_tab_1tbi7_1", zi = "_disabled_1tbi7_7", Hi = "_vertical_1tbi7_13", mn = {
|
|
2662
2662
|
tab: Pi,
|
|
2663
2663
|
disabled: zi,
|
|
2664
|
-
vertical:
|
|
2665
|
-
},
|
|
2664
|
+
vertical: Hi
|
|
2665
|
+
}, Wi = ({ eventKey: e, className: t, onClick: r, disabled: s, vertical: a, children: o }) => /* @__PURE__ */ n.jsx("div", { role: "button", className: _("luminus-tab text-primary rounded", mn.tab, t, {
|
|
2666
2666
|
disabled: s
|
|
2667
|
-
}, { [
|
|
2667
|
+
}, { [mn.disabled]: s }, { vertical: a }, { [mn.vertical]: a }), onClick: () => r && !s && r(e), children: typeof o == "string" ? /* @__PURE__ */ n.jsx(K, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: o }) : o }), ku = ({ tabs: e, activeTab: t, onSelect: r, ...s }) => {
|
|
2668
2668
|
var i;
|
|
2669
2669
|
const { ProjectIconComponent: a } = U(oe), { isMobile: o } = Zt();
|
|
2670
|
-
return o ? /* @__PURE__ */ n.jsx(ht, { toggle: /* @__PURE__ */ n.jsx(gt, { as: Et, text: ((i = e.find((c) => c.id === t)) == null ? void 0 : i.name) ?? "", icon: /* @__PURE__ */ n.jsx(a, { icon: "chevron-down" }) }), ...s, children: e.map((c) => /* @__PURE__ */ n.jsx(Ce, { onClick: () => r(c.id), children: c.name }, c.id)) }) : /* @__PURE__ */ n.jsx(Vi, { activeTab: t, onSelect: (c) => r(c), ...s, children: e.map((c) => /* @__PURE__ */ n.jsx(
|
|
2670
|
+
return o ? /* @__PURE__ */ n.jsx(ht, { toggle: /* @__PURE__ */ n.jsx(gt, { as: Et, text: ((i = e.find((c) => c.id === t)) == null ? void 0 : i.name) ?? "", icon: /* @__PURE__ */ n.jsx(a, { icon: "chevron-down" }) }), ...s, children: e.map((c) => /* @__PURE__ */ n.jsx(Ce, { onClick: () => r(c.id), children: c.name }, c.id)) }) : /* @__PURE__ */ n.jsx(Vi, { activeTab: t, onSelect: (c) => r(c), ...s, children: e.map((c) => /* @__PURE__ */ n.jsx(Wi, { eventKey: c.id, children: c.name }, c.id)) });
|
|
2671
2671
|
}, Ui = "_selection_1dtmm_1", Gi = "_selectionBg_1dtmm_10", Yi = "_selectionItemsContainer_1dtmm_18", Ki = "_selectionItems_1dtmm_18", Mt = {
|
|
2672
2672
|
selection: Ui,
|
|
2673
2673
|
selectionBg: Gi,
|
|
@@ -2685,7 +2685,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2685
2685
|
] })
|
|
2686
2686
|
] });
|
|
2687
2687
|
}, Vs = () => {
|
|
2688
|
-
const e = U(
|
|
2688
|
+
const e = U(Hr);
|
|
2689
2689
|
if (e === void 0)
|
|
2690
2690
|
throw new Error("ShortcutLinksProvider not initilized. Probably tried to use useShortcutLinks outside ShortcutLinksProvider.");
|
|
2691
2691
|
return e;
|
|
@@ -2719,7 +2719,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2719
2719
|
] }) });
|
|
2720
2720
|
}, Su = ({ IconComponent: e, IconTypeArray: t }) => {
|
|
2721
2721
|
const { texts: r } = U(oe), { shortcutLinks: s, editShortcutLink: a, deleteShortcutLink: o } = Vs();
|
|
2722
|
-
return /* @__PURE__ */ n.jsxs(Vo, { title: r.shortcutLinks.shortcutLinksSetting, children: [
|
|
2722
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: s !== null && s.length > 0 ? /* @__PURE__ */ n.jsxs(Vo, { title: r.shortcutLinks.shortcutLinksSetting, children: [
|
|
2723
2723
|
/* @__PURE__ */ n.jsx("thead", { className: "fw-bold", children: /* @__PURE__ */ n.jsxs("tr", { children: [
|
|
2724
2724
|
/* @__PURE__ */ n.jsx("th", {}),
|
|
2725
2725
|
/* @__PURE__ */ n.jsx("th", { children: r.shortcutLinks.target }),
|
|
@@ -2728,8 +2728,8 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2728
2728
|
/* @__PURE__ */ n.jsx("th", {})
|
|
2729
2729
|
] }) }),
|
|
2730
2730
|
/* @__PURE__ */ n.jsx("tbody", { children: s == null ? void 0 : s.map((i) => /* @__PURE__ */ n.jsx(Qi, { shortcutLink: i, IconComponent: e, IconTypeArray: t, editShortcutLink: a, deleteShortcutLink: o }, i.id)) })
|
|
2731
|
-
] });
|
|
2732
|
-
},
|
|
2731
|
+
] }) : /* @__PURE__ */ n.jsx(nn, { variant: "info", children: r.shortcutLinks.addLinksToEditThemHereInfo }) });
|
|
2732
|
+
}, bn = 4, Zi = "_linkButton_pnlvi_1", Ji = "_linkAddButton_pnlvi_31", Xi = "_createLinkRow_pnlvi_39", mt = {
|
|
2733
2733
|
linkButton: Zi,
|
|
2734
2734
|
linkAddButton: Ji,
|
|
2735
2735
|
createLinkRow: Xi
|
|
@@ -2826,9 +2826,9 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
2826
2826
|
(i || l) && /* @__PURE__ */ n.jsx(rl, { IconComponent: e, IconTypeArray: t, closeModal: () => c(!1), createLink: s, isOpen: i, pageTitlePrefix: r })
|
|
2827
2827
|
] });
|
|
2828
2828
|
}, Cu = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r }) => {
|
|
2829
|
-
const { shortcutLinks: s, createShortcutLink: a } = Vs(), o = Y(() => s !== null && s.length <
|
|
2829
|
+
const { shortcutLinks: s, createShortcutLink: a } = Vs(), o = Y(() => s !== null && s.length < bn, [s]);
|
|
2830
2830
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex gap-2", children: [
|
|
2831
|
-
s == null ? void 0 : s.slice(0,
|
|
2831
|
+
s == null ? void 0 : s.slice(0, bn).map((i, c) => i !== null ? /* @__PURE__ */ n.jsx(el, { shortcutLink: i, IconComponent: e }, c) : null),
|
|
2832
2832
|
o && /* @__PURE__ */ n.jsx(sl, { IconComponent: e, IconTypeArray: t, pageTitlePrefix: r, createLink: a })
|
|
2833
2833
|
] }) });
|
|
2834
2834
|
}, al = (e) => {
|
|
@@ -2870,7 +2870,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
2870
2870
|
enabled: r !== null
|
|
2871
2871
|
}), { create: i, update: c, remove: l } = al(t), d = C(async (f) => {
|
|
2872
2872
|
const p = hr(r);
|
|
2873
|
-
if (ol(a).length >=
|
|
2873
|
+
if (ol(a).length >= bn)
|
|
2874
2874
|
throw new Error("Cannot add more shortcut links.");
|
|
2875
2875
|
await i({ ...f, employee: p.personalNumber }), await o();
|
|
2876
2876
|
}, [i, o, a, r]), u = C(async (f) => {
|
|
@@ -2884,7 +2884,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
2884
2884
|
editShortcutLink: u,
|
|
2885
2885
|
deleteShortcutLink: m
|
|
2886
2886
|
}), [d, m, u, a]);
|
|
2887
|
-
return /* @__PURE__ */ n.jsx(
|
|
2887
|
+
return /* @__PURE__ */ n.jsx(Hr.Provider, { value: v, children: e });
|
|
2888
2888
|
}, il = "_widgets-row_13gg1_1", ll = "_widget_13gg1_1", cl = "_widget-img_13gg1_5", dl = "_widget-title-spacer_13gg1_14", ul = "_widget-title_13gg1_14", fl = "_title_13gg1_28", $e = {
|
|
2889
2889
|
"widgets-row": "_widgets-row_13gg1_1",
|
|
2890
2890
|
widgetsRow: il,
|
|
@@ -2906,7 +2906,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
2906
2906
|
return c(((m = u.target) == null ? void 0 : m.value) ?? "");
|
|
2907
2907
|
}, className: "me-3", style: { maxWidth: "200px" } })
|
|
2908
2908
|
] }),
|
|
2909
|
-
/* @__PURE__ */ n.jsx(Se.Body, { className: "flex-column gap-3", children: l.length === 0 ? /* @__PURE__ */ n.jsx(
|
|
2909
|
+
/* @__PURE__ */ n.jsx(Se.Body, { className: "flex-column gap-3", children: l.length === 0 ? /* @__PURE__ */ n.jsx(nn, { variant: "warning", children: o.noWidgets }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2910
2910
|
d.map((u) => /* @__PURE__ */ n.jsx(Yt, { defaultOpen: !0, title: u.name ?? "", children: /* @__PURE__ */ n.jsx("div", { className: "p-1", children: /* @__PURE__ */ n.jsx("div", { className: _("row gx-3 gy-3", $e.widgetsRow), children: l.filter((m) => m.group === u.id).map((m) => /* @__PURE__ */ n.jsx("div", { className: "col col-4", children: /* @__PURE__ */ n.jsxs("div", { role: "button", className: _("p-0 pt-2 bg-white rounded shadow-sm", $e.widget), onClick: () => a(m.id), children: [
|
|
2911
2911
|
/* @__PURE__ */ n.jsx("div", { className: $e.widgetImg, style: {
|
|
2912
2912
|
backgroundImage: m.img ? `url(${m.img})` : void 0
|
|
@@ -2990,7 +2990,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
2990
2990
|
[Me.widgetEdit]: r && f.id !== -1
|
|
2991
2991
|
}, { [Me.fullWidth]: x }), children: [
|
|
2992
2992
|
r && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2993
|
-
/* @__PURE__ */ n.jsx(te, { color: "danger", onClick: () => l(p), className: _(Me.removeIcon), children: /* @__PURE__ */ n.jsx(
|
|
2993
|
+
/* @__PURE__ */ n.jsx(te, { color: "danger", onClick: () => l(p), className: _(Me.removeIcon), children: /* @__PURE__ */ n.jsx(Wr, {}) }),
|
|
2994
2994
|
/* @__PURE__ */ n.jsx(te, { color: x ? "danger" : "primary", onClick: () => d(p), className: _(Me.fullWidthIcon), children: /* @__PURE__ */ n.jsx(Ea, {}) })
|
|
2995
2995
|
] }),
|
|
2996
2996
|
f.id === -1 ? r && /* @__PURE__ */ n.jsx("div", { className: Me.widgetWrapper, children: /* @__PURE__ */ n.jsx(pr, { widgetGroups: e, availableWidgets: t, onAdd: (g) => c(p, g), texts: a }) }) : /* @__PURE__ */ n.jsx(Jo, { title: f.title, children: /* @__PURE__ */ n.jsx(f.WidgetElement, { title: f.title }) }),
|
|
@@ -3011,13 +3011,13 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3011
3011
|
return c((p = o.widgets) == null ? void 0 : p.length, f);
|
|
3012
3012
|
}, texts: a })
|
|
3013
3013
|
] }) });
|
|
3014
|
-
}, Sl = "_badge_193ci_1", Cl = "_sm_193ci_6", Il = "_md_193ci_10", $l = "_lg_193ci_14", Dl = "_light_193ci_18",
|
|
3014
|
+
}, Sl = "_badge_193ci_1", Cl = "_sm_193ci_6", Il = "_md_193ci_10", $l = "_lg_193ci_14", Dl = "_light_193ci_18", hn = {
|
|
3015
3015
|
badge: Sl,
|
|
3016
3016
|
sm: Cl,
|
|
3017
3017
|
md: Il,
|
|
3018
3018
|
lg: $l,
|
|
3019
3019
|
light: Dl
|
|
3020
|
-
}, Du = ({ children: e, color: t = "primary", size: r = "md", rounded: s, className: a, ...o }) => /* @__PURE__ */ n.jsx("span", { className: _(`luminus-badge badge bg-${t} ${a ?? ""}`, { "rounded-pill": s }, { "text-dark": t === "light" }, { [
|
|
3020
|
+
}, Du = ({ children: e, color: t = "primary", size: r = "md", rounded: s, className: a, ...o }) => /* @__PURE__ */ n.jsx("span", { className: _(`luminus-badge badge bg-${t} ${a ?? ""}`, { "rounded-pill": s }, { "text-dark": t === "light" }, { [hn.light]: t === "light" }, hn.badge, hn[r]), ...o, children: e }), Ll = "_collapse-icon_1ahhn_1", Tl = "_collapsed_1ahhn_6", xr = {
|
|
3021
3021
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
3022
3022
|
collapseIcon: Ll,
|
|
3023
3023
|
collapsed: Tl
|
|
@@ -3035,7 +3035,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3035
3035
|
/* @__PURE__ */ n.jsx(Xr, { in: c, children: /* @__PURE__ */ n.jsx("div", { children: t }) }),
|
|
3036
3036
|
/* @__PURE__ */ n.jsx("hr", { className: `my-0 ${c ? "mt-3" : ""}` })
|
|
3037
3037
|
] });
|
|
3038
|
-
}, El = "_wrapper_1kmlk_1", Fl = "_open_1kmlk_9", Ol = "_dropdown_1kmlk_13", Rl = "_search-input-container_1kmlk_19", Ml = "_search-input_1kmlk_19", Al = "_loading-container_1kmlk_25", Bl = "_items-container_1kmlk_32", Vl = "_header-row_1kmlk_38", Pl = "_item_1kmlk_32", zl = "_name_1kmlk_57",
|
|
3038
|
+
}, El = "_wrapper_1kmlk_1", Fl = "_open_1kmlk_9", Ol = "_dropdown_1kmlk_13", Rl = "_search-input-container_1kmlk_19", Ml = "_search-input_1kmlk_19", Al = "_loading-container_1kmlk_25", Bl = "_items-container_1kmlk_32", Vl = "_header-row_1kmlk_38", Pl = "_item_1kmlk_32", zl = "_name_1kmlk_57", Hl = "_column-item_1kmlk_62", Wl = "_icon_1kmlk_66", Ul = "_action-buttons-container_1kmlk_74", Gl = "_reverse_1kmlk_82", Yl = "_action-button_1kmlk_74", Kl = "_actions-dropdown_1kmlk_95", we = {
|
|
3039
3039
|
wrapper: El,
|
|
3040
3040
|
open: Fl,
|
|
3041
3041
|
dropdown: Ol,
|
|
@@ -3052,8 +3052,8 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3052
3052
|
item: Pl,
|
|
3053
3053
|
name: zl,
|
|
3054
3054
|
"column-item": "_column-item_1kmlk_62",
|
|
3055
|
-
columnItem:
|
|
3056
|
-
icon:
|
|
3055
|
+
columnItem: Hl,
|
|
3056
|
+
icon: Wl,
|
|
3057
3057
|
"action-buttons-container": "_action-buttons-container_1kmlk_74",
|
|
3058
3058
|
actionButtonsContainer: Ul,
|
|
3059
3059
|
reverse: Gl,
|
|
@@ -3063,7 +3063,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3063
3063
|
actionsDropdown: Kl
|
|
3064
3064
|
}, tn = ({ show: e, onCancel: t, items: r, currentSelection: s, onSelectionChange: a, onSearchQueryChange: o, texts: i, itemsNameWidth: c, additionalColumns: l, displayIdAsName: d = !1, autoHideSearch: u = !1, allItemsLength: m, disabled: v, isLoading: f = !1, inputRef: p, archiveColumn: x = "archive", addNewOptionPath: g, refreshOptions: h }) => {
|
|
3065
3065
|
var ct;
|
|
3066
|
-
const { texts: { customSelect: y } } = U(oe), w = J(null), b = J(null), j = J(null), S = J(null), T = J(null), [$, R] = E(""), [A] = en($, 500), [, L] = E(!1), { copyToClipboard: P } = co(), k = (ct = p.current) == null ? void 0 : ct.getBoundingClientRect(), Q = (k == null ? void 0 : k.x) ?? 0, O = ((k == null ? void 0 : k.x) ?? 0) + ((k == null ? void 0 : k.width) ?? 0), N = (k == null ? void 0 : k.y) ?? 0, D = ((k == null ? void 0 : k.y) ?? 0) + ((k == null ? void 0 : k.height) ?? 0),
|
|
3066
|
+
const { texts: { customSelect: y } } = U(oe), w = J(null), b = J(null), j = J(null), S = J(null), T = J(null), [$, R] = E(""), [A] = en($, 500), [, L] = E(!1), { copyToClipboard: P } = co(), k = (ct = p.current) == null ? void 0 : ct.getBoundingClientRect(), Q = (k == null ? void 0 : k.x) ?? 0, O = ((k == null ? void 0 : k.x) ?? 0) + ((k == null ? void 0 : k.width) ?? 0), N = (k == null ? void 0 : k.y) ?? 0, D = ((k == null ? void 0 : k.y) ?? 0) + ((k == null ? void 0 : k.height) ?? 0), W = (k == null ? void 0 : k.width) ?? 0, G = (k == null ? void 0 : k.height) ?? 0, X = 5, z = Y(() => Q ? Q > window.innerWidth / 2 : !1, [Q]), Z = Y(() => N ? N > window.innerHeight / 2 : !1, [N]);
|
|
3067
3067
|
B(() => {
|
|
3068
3068
|
var I;
|
|
3069
3069
|
e && ((I = j.current) == null || I.focus());
|
|
@@ -3078,9 +3078,9 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3078
3078
|
}, [r, e]);
|
|
3079
3079
|
const V = Y(() => ne !== null ? r.at(ne) ?? null : null, [ne, r]), F = C((I, M) => {
|
|
3080
3080
|
var le, ve;
|
|
3081
|
-
const
|
|
3082
|
-
if (
|
|
3083
|
-
const ce =
|
|
3081
|
+
const H = document.getElementById(`item-${I}`);
|
|
3082
|
+
if (H) {
|
|
3083
|
+
const ce = H.clientHeight ?? 0;
|
|
3084
3084
|
M === "down" ? (le = S.current) == null || le.scrollBy({
|
|
3085
3085
|
left: 0,
|
|
3086
3086
|
top: ce,
|
|
@@ -3095,7 +3095,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3095
3095
|
if (ne === null || v)
|
|
3096
3096
|
return;
|
|
3097
3097
|
const M = ne + I;
|
|
3098
|
-
M < 0 || M >= r.length || re((
|
|
3098
|
+
M < 0 || M >= r.length || re((H) => (H !== null && F(H, I > 0 ? "down" : "up"), M));
|
|
3099
3099
|
}, [ne, r, v, F]), ae = C((I) => {
|
|
3100
3100
|
if (e)
|
|
3101
3101
|
switch (I.key) {
|
|
@@ -3120,16 +3120,16 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3120
3120
|
}), [be]), B(() => (window.addEventListener("resize", be), () => {
|
|
3121
3121
|
window.removeEventListener("resize", be);
|
|
3122
3122
|
}), [be]), Qr(ae), qr([w, b, T], t);
|
|
3123
|
-
const Le = c ?? (l && l.length > 0 ? 250 : 0), ze = (l == null ? void 0 : l.reduce((I, M) => I + (M.width ?? 100), 0)) ?? 0, se = `calc(max(${
|
|
3123
|
+
const Le = c ?? (l && l.length > 0 ? 250 : 0), ze = (l == null ? void 0 : l.reduce((I, M) => I + (M.width ?? 100), 0)) ?? 0, se = `calc(max(${W}px, ${Le}px + ${ze}px))`, _e = Y(() => (s && e && !v) ?? !1, [s, e, v]), Ne = Y(() => (s && e) ?? !1, [s, e]), et = Y(() => e && (Ne || g !== void 0 || h !== void 0), [e, Ne, g, h]);
|
|
3124
3124
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3125
|
-
/* @__PURE__ */ n.jsx(
|
|
3125
|
+
/* @__PURE__ */ n.jsx(Ws, { show: e, onClick: t }),
|
|
3126
3126
|
/* @__PURE__ */ n.jsxs("div", { className: _("luminus-dropdown-picker-actions", we.actionButtonsContainer, {
|
|
3127
3127
|
[we.reverse]: z
|
|
3128
3128
|
}), style: {
|
|
3129
3129
|
top: `calc(${N}px + ${G / 2}px - 12px)`,
|
|
3130
3130
|
left: z ? _e && Ne ? `calc(${Q}px - 24px - 8px - 24px - 4px)` : `calc(${Q}px - 24px - 8px)` : `calc(${O}px + 8px)`
|
|
3131
3131
|
}, children: [
|
|
3132
|
-
_e && /* @__PURE__ */ n.jsx("button", { ref: b, type: "button", className: _("luminus-dropdown-picker-clear-button", we.actionButton), onClick: () => !v && a(null), children: /* @__PURE__ */ n.jsx(K, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ n.jsx(
|
|
3132
|
+
_e && /* @__PURE__ */ n.jsx("button", { ref: b, type: "button", className: _("luminus-dropdown-picker-clear-button", we.actionButton), onClick: () => !v && a(null), children: /* @__PURE__ */ n.jsx(K, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ n.jsx(Wr, { size: 16 }) }) }),
|
|
3133
3133
|
et ? /* @__PURE__ */ n.jsx("div", { ref: T, children: /* @__PURE__ */ n.jsxs(ht, { toggle: /* @__PURE__ */ n.jsx(gt, { as: Et, className: _("luminus-dropdown-picker-actions-dropdown", we.actionsDropdown), icon: /* @__PURE__ */ n.jsx(K, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ n.jsx(Fa, { size: 16 }) }) }), children: [
|
|
3134
3134
|
Ne ? /* @__PURE__ */ n.jsx(Ce, { icon: /* @__PURE__ */ n.jsx(Oa, {}), onClick: () => {
|
|
3135
3135
|
var I, M;
|
|
@@ -3157,7 +3157,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3157
3157
|
var M;
|
|
3158
3158
|
return R(((M = I.target) == null ? void 0 : M.value) ?? "");
|
|
3159
3159
|
} }) }),
|
|
3160
|
-
f ? /* @__PURE__ */ n.jsx("div", { className: we.loadingContainer, children: /* @__PURE__ */ n.jsx(
|
|
3160
|
+
f ? /* @__PURE__ */ n.jsx("div", { className: we.loadingContainer, children: /* @__PURE__ */ n.jsx(Fn, { animation: "border", variant: "primary" }) }) : r.length > 0 && /* @__PURE__ */ n.jsxs("div", { ref: S, className: _("items", we.itemsContainer), children: [
|
|
3161
3161
|
l && l.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: _("header-row border-bottom", we.headerRow), children: [
|
|
3162
3162
|
/* @__PURE__ */ n.jsx("div", { className: we.name }),
|
|
3163
3163
|
l == null ? void 0 : l.filter((I) => I.key !== x).map((I) => /* @__PURE__ */ n.jsx("div", { className: we.columnItem, style: {
|
|
@@ -3174,11 +3174,11 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3174
3174
|
archive: I.additionalColumns ? I.additionalColumns[x] : !1
|
|
3175
3175
|
}), onClick: () => !v && a(I), onMouseEnter: () => re(M), children: [
|
|
3176
3176
|
/* @__PURE__ */ n.jsx("div", { className: we.name, children: /* @__PURE__ */ n.jsx(K, { variant: "body2", children: d ? I.id : I.name }) }),
|
|
3177
|
-
l == null ? void 0 : l.filter((
|
|
3178
|
-
width: `${
|
|
3179
|
-
minWidth: `${
|
|
3180
|
-
maxWidth: `${
|
|
3181
|
-
}, children: /* @__PURE__ */ n.jsx(K, { variant: "caption", className: _("text-muted"), children: I.additionalColumns && I.additionalColumns[
|
|
3177
|
+
l == null ? void 0 : l.filter((H) => H.key !== x).map((H) => /* @__PURE__ */ n.jsx("div", { className: we.columnItem, style: {
|
|
3178
|
+
width: `${H.width ?? 100}px`,
|
|
3179
|
+
minWidth: `${H.width ?? 100}px`,
|
|
3180
|
+
maxWidth: `${H.width ?? 100}px`
|
|
3181
|
+
}, children: /* @__PURE__ */ n.jsx(K, { variant: "caption", className: _("text-muted"), children: I.additionalColumns && I.additionalColumns[H.key] }) }, H.key))
|
|
3182
3182
|
] }, I.id))
|
|
3183
3183
|
] })
|
|
3184
3184
|
] }) }) })
|
|
@@ -3211,7 +3211,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3211
3211
|
}, [o]);
|
|
3212
3212
|
return qr([c], r), /* @__PURE__ */ n.jsx("div", { ref: c, className: _("luminus-app-search-dropdown shadow rounded", nt.dropdown, {
|
|
3213
3213
|
[nt.open]: e
|
|
3214
|
-
}), children: a ? /* @__PURE__ */ n.jsx("div", { className: nt.loadingContainer, children: /* @__PURE__ */ n.jsx(
|
|
3214
|
+
}), children: a ? /* @__PURE__ */ n.jsx("div", { className: nt.loadingContainer, children: /* @__PURE__ */ n.jsx(Fn, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ n.jsx("div", { className: nt.groupsContainer, children: s == null ? void 0 : s.map((d) => {
|
|
3215
3215
|
var u;
|
|
3216
3216
|
return /* @__PURE__ */ n.jsxs("div", { className: _(nt.group), children: [
|
|
3217
3217
|
/* @__PURE__ */ n.jsxs(Oe, { to: `/search?query=${t}&type=${d.key.category}`, className: _("group-header", nt.header), onClick: r, children: [
|
|
@@ -3355,8 +3355,8 @@ var zs = function(e) {
|
|
|
3355
3355
|
}]), t;
|
|
3356
3356
|
}(ke.Component);
|
|
3357
3357
|
zs.propTypes = {
|
|
3358
|
-
children:
|
|
3359
|
-
node:
|
|
3358
|
+
children: Ht.node.isRequired,
|
|
3359
|
+
node: Ht.any
|
|
3360
3360
|
};
|
|
3361
3361
|
var bc = /* @__PURE__ */ function() {
|
|
3362
3362
|
function e(t, r) {
|
|
@@ -3383,7 +3383,7 @@ function Sc(e, t) {
|
|
|
3383
3383
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
3384
3384
|
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);
|
|
3385
3385
|
}
|
|
3386
|
-
var
|
|
3386
|
+
var Hs = function(e) {
|
|
3387
3387
|
Sc(t, e);
|
|
3388
3388
|
function t() {
|
|
3389
3389
|
return Nc(this, t), kc(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
|
|
@@ -3417,12 +3417,12 @@ var Ws = function(e) {
|
|
|
3417
3417
|
}
|
|
3418
3418
|
}]), t;
|
|
3419
3419
|
}(ke.Component);
|
|
3420
|
-
|
|
3421
|
-
children:
|
|
3422
|
-
node:
|
|
3420
|
+
Hs.propTypes = {
|
|
3421
|
+
children: Ht.node.isRequired,
|
|
3422
|
+
node: Ht.any
|
|
3423
3423
|
};
|
|
3424
|
-
var
|
|
3425
|
-
Ut.createPortal ?
|
|
3424
|
+
var Nn = void 0;
|
|
3425
|
+
Ut.createPortal ? Nn = zs : Nn = Hs;
|
|
3426
3426
|
const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20", Dc = "_photo-actions_18t5m_26", Lc = "_photo-container_18t5m_31", Tc = "_photo_18t5m_26", Ec = "_nav-button_18t5m_41", Fc = "_photos-preview_18t5m_49", Oc = "_selected_18t5m_62", Rc = "_default-indicator_18t5m_66", De = {
|
|
3427
3427
|
lightbox: Cc,
|
|
3428
3428
|
show: Ic,
|
|
@@ -3442,7 +3442,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3442
3442
|
}, Mc = "_backdrop_3huvf_1", Ac = "_show_3huvf_11", vr = {
|
|
3443
3443
|
backdrop: Mc,
|
|
3444
3444
|
show: Ac
|
|
3445
|
-
},
|
|
3445
|
+
}, Ws = ({ show: e, onClick: t }) => /* @__PURE__ */ n.jsx("div", { className: _("luminus-backdrop", vr.backdrop, {
|
|
3446
3446
|
[vr.show]: e
|
|
3447
3447
|
}), onClick: () => t && t() }), Us = ({ src: e, alt: t, baseUrl: r, customToken: s, placeholder: a, ...o }) => /* @__PURE__ */ n.jsx("img", { ...o, alt: t ?? "", src: e ?? a }), Bc = ({ show: e, onClose: t, photos: r, defaultIndex: s, uploadPhotosText: a, noPhotosText: o, onUploadPhotos: i, photoActions: c, baseUrl: l, customToken: d, placeholder: u, ImgComponent: m = Us }) => {
|
|
3448
3448
|
const v = J(null), [f, p] = E(s), x = r.at(f), g = f > 0, h = f < r.length - 1;
|
|
@@ -3464,8 +3464,8 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3464
3464
|
break;
|
|
3465
3465
|
}
|
|
3466
3466
|
}, [h, g, t]);
|
|
3467
|
-
return Qr(y), /* @__PURE__ */ n.jsxs(
|
|
3468
|
-
/* @__PURE__ */ n.jsx(
|
|
3467
|
+
return Qr(y), /* @__PURE__ */ n.jsxs(Nn, { children: [
|
|
3468
|
+
/* @__PURE__ */ n.jsx(Ws, { show: e, onClick: t }),
|
|
3469
3469
|
/* @__PURE__ */ n.jsx("div", { ref: v, className: _("luminus-lightbox rounded shadow", De.lightbox, {
|
|
3470
3470
|
[De.show]: e
|
|
3471
3471
|
}), children: e && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -3488,9 +3488,9 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3488
3488
|
] }),
|
|
3489
3489
|
r.length === 0 && /* @__PURE__ */ n.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ n.jsx(K, { variant: "body", children: o ?? "No photos available" }) }),
|
|
3490
3490
|
x && /* @__PURE__ */ n.jsxs("div", { className: De.photoContainer, children: [
|
|
3491
|
-
/* @__PURE__ */ n.jsx("div", { role: g ? "button" : void 0, className: _("align-items-start", De.navButton), onClick: () => g && p((w) => w - 1), children: g && /* @__PURE__ */ n.jsx(
|
|
3491
|
+
/* @__PURE__ */ n.jsx("div", { role: g ? "button" : void 0, className: _("align-items-start", De.navButton), onClick: () => g && p((w) => w - 1), children: g && /* @__PURE__ */ n.jsx(In, { style: { fontSize: "40px" } }) }),
|
|
3492
3492
|
/* @__PURE__ */ n.jsx(m, { src: x.lgSrc, alt: x.alt, className: _("rounded", De.photo), baseUrl: l, customToken: d, placeholder: u }),
|
|
3493
|
-
/* @__PURE__ */ n.jsx("div", { role: h ? "button" : void 0, className: _("align-items-end", De.navButton), onClick: () => h && p((w) => w + 1), children: h && /* @__PURE__ */ n.jsx(
|
|
3493
|
+
/* @__PURE__ */ n.jsx("div", { role: h ? "button" : void 0, className: _("align-items-end", De.navButton), onClick: () => h && p((w) => w + 1), children: h && /* @__PURE__ */ n.jsx($n, { style: { fontSize: "40px" } }) })
|
|
3494
3494
|
] }),
|
|
3495
3495
|
/* @__PURE__ */ n.jsx("div", { className: De.photosPreview, children: r.map((w, b) => /* @__PURE__ */ n.jsxs("div", { role: "button", onClick: () => p(b), className: "position-relative", children: [
|
|
3496
3496
|
/* @__PURE__ */ n.jsx(m, { role: b !== f ? "button" : void 0, src: w.smSrc, alt: w.alt, className: _("rounded", De.photo, {
|
|
@@ -3526,19 +3526,19 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3526
3526
|
] });
|
|
3527
3527
|
}, Tu = ({ children: e }) => {
|
|
3528
3528
|
var l, d, u;
|
|
3529
|
-
const { useMsal: t, msalScopes: r, msalExtraScopes: s } = U(za), { isAuthenticated: a } =
|
|
3530
|
-
return t ? /* @__PURE__ */ n.jsx(so, { interactionType: ro.Redirect, authenticationRequest: { scopes: r, extraScopesToConsent: s }, children: i || !a() ? /* @__PURE__ */ n.jsx(
|
|
3531
|
-
},
|
|
3529
|
+
const { useMsal: t, msalScopes: r, msalExtraScopes: s } = U(za), { isAuthenticated: a } = Ha(), { userLoginState: o } = U(Lt), i = o.state === Wa.LOGGING_IN, c = o.user && ((l = o.user) == null ? void 0 : l.permissions) && ((u = (d = o.user) == null ? void 0 : d.permissions) == null ? void 0 : u.length) > 0;
|
|
3530
|
+
return t ? /* @__PURE__ */ n.jsx(so, { interactionType: ro.Redirect, authenticationRequest: { scopes: r, extraScopesToConsent: s }, children: i || !a() ? /* @__PURE__ */ n.jsx(Hn, {}) : o.user ? c ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e }) : /* @__PURE__ */ n.jsx(Rt, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ n.jsx(Rt, { to: "/no-user-login", replace: !0 }) }) : i ? /* @__PURE__ */ n.jsx(Hn, {}) : !a() || !o.user ? /* @__PURE__ */ n.jsx(Rt, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ n.jsx(Rt, { to: "/user-not-permitted", replace: !0 });
|
|
3531
|
+
}, nn = (e) => {
|
|
3532
3532
|
const { variant: t, children: r, className: s, size: a = "md", typographyVariant: o = a === "sm" ? "body2" : "body", ...i } = { ...e };
|
|
3533
3533
|
return /* @__PURE__ */ n.jsx(bo, { variant: t, className: `text-center ${a === "sm" ? "p-1" : a === "md" ? "p-3" : "p-4"} bg-${t} bg-opacity-10 border-none ${s ?? ""}`, ...i, children: /* @__PURE__ */ n.jsx(K, { variant: o, children: r }) });
|
|
3534
|
-
}, Pc = "_item_z9z4m_1", zc = "_level-success_z9z4m_4",
|
|
3534
|
+
}, Pc = "_item_z9z4m_1", zc = "_level-success_z9z4m_4", Hc = "_level-info_z9z4m_10", Wc = "_level-warning_z9z4m_16", Uc = "_level-danger_z9z4m_22", Gc = "_type-icon_z9z4m_28", gn = {
|
|
3535
3535
|
item: Pc,
|
|
3536
3536
|
"level-success": "_level-success_z9z4m_4",
|
|
3537
3537
|
levelSuccess: zc,
|
|
3538
3538
|
"level-info": "_level-info_z9z4m_10",
|
|
3539
|
-
levelInfo:
|
|
3539
|
+
levelInfo: Hc,
|
|
3540
3540
|
"level-warning": "_level-warning_z9z4m_16",
|
|
3541
|
-
levelWarning:
|
|
3541
|
+
levelWarning: Wc,
|
|
3542
3542
|
"level-danger": "_level-danger_z9z4m_22",
|
|
3543
3543
|
levelDanger: Uc,
|
|
3544
3544
|
"type-icon": "_type-icon_z9z4m_28",
|
|
@@ -3556,8 +3556,8 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3556
3556
|
return /* @__PURE__ */ n.jsx(a, { icon: "check" });
|
|
3557
3557
|
}
|
|
3558
3558
|
}, [a, e]);
|
|
3559
|
-
return /* @__PURE__ */ n.jsxs("div", { className: _("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !s },
|
|
3560
|
-
!s && /* @__PURE__ */ n.jsx("div", { className: _(
|
|
3559
|
+
return /* @__PURE__ */ n.jsxs("div", { className: _("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !s }, gn.item, gn[`level-${e}`]), children: [
|
|
3560
|
+
!s && /* @__PURE__ */ n.jsx("div", { className: _(gn.typeIcon), children: r ?? o() }),
|
|
3561
3561
|
/* @__PURE__ */ n.jsx(K, { variant: "body2", className: "w-100", children: t })
|
|
3562
3562
|
] });
|
|
3563
3563
|
}, Eu = ({ version: e }) => /* @__PURE__ */ n.jsx("div", { className: "rounded", style: {
|
|
@@ -3740,12 +3740,12 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3740
3740
|
] });
|
|
3741
3741
|
}, Ru = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: r, yearMax: s }) => {
|
|
3742
3742
|
const { localizationContext: a } = U(oe), { dateFnsLocale: o } = U(a), { searchParams: i, setSearch: c } = uo(), l = i.get(t), d = l ? Ct(l) : e, u = C((m) => {
|
|
3743
|
-
c(t,
|
|
3743
|
+
c(t, yn(m, { representation: "date" }));
|
|
3744
3744
|
}, [t, c]);
|
|
3745
|
-
return /* @__PURE__ */ n.jsx(
|
|
3745
|
+
return /* @__PURE__ */ n.jsx(Ho, { month: d, onChangeMonth: u, locale: o, yearMin: r, yearMax: s });
|
|
3746
3746
|
}, Mu = ({ defaultYear: e, searchKey: t = "yearFrom", ...r }) => {
|
|
3747
|
-
const [s, a] = Zr(t,
|
|
3748
|
-
a(
|
|
3747
|
+
const [s, a] = Zr(t, yn(e, { representation: "date" })), o = s ? Ct(s) : e, i = C((c) => {
|
|
3748
|
+
a(yn(c, { representation: "date" }));
|
|
3749
3749
|
}, [a]);
|
|
3750
3750
|
return /* @__PURE__ */ n.jsx(Go, { year: o, onChangeYear: i, ...r });
|
|
3751
3751
|
}, Au = ({ data: e, showLegend: t = !1, legendPosition: r = "left", onClick: s }) => {
|
|
@@ -4031,7 +4031,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4031
4031
|
apiExportGet: "/dynamicForms/export"
|
|
4032
4032
|
}, Bu = ({ id: e, page: t, setPage: r, filters: s, setFilter: a, sortByField: o, sortByType: i, setSortBy: c, appUrls: { appDetail: l = kr.appDetail } = kr, apiUrls: { apiSchemaGet: d = at.apiSchemaGet, apiDataGet: u = at.apiDataGet, apiItemPost: m = at.apiItemPost, apiItemDelete: v = at.apiItemDelete, apiItemCreate: f = at.apiItemCreate, apiExportGet: p = at.apiExportGet } = at, customPickers: x }) => {
|
|
4033
4033
|
var ce, de, Ie, Te, Ee, dt;
|
|
4034
|
-
const { texts: { dynamicForms: g }, ProjectIconComponent: h } = U(oe), y = Ze(), { startLoading: w, stopLoading: b } = U(Tt), [j, S] = E(null), [T, $] = E(null), [R, A] = E(null), [L, P] = E(null), [k, Q] = E(!1), { addNotification: O } = Vr(), [N, D] = E([]), { confirm:
|
|
4034
|
+
const { texts: { dynamicForms: g }, ProjectIconComponent: h } = U(oe), y = Ze(), { startLoading: w, stopLoading: b } = U(Tt), [j, S] = E(null), [T, $] = E(null), [R, A] = E(null), [L, P] = E(null), [k, Q] = E(!1), { addNotification: O } = Vr(), [N, D] = E([]), { confirm: W } = Qt(), G = 20, X = G + 1, z = L ? Math.ceil(L.length / G) : 1, Z = t ? t > 1 : !1, ne = t ? t < z : !1, re = t ? (t - 1) * G : 0, V = t ? t * G : G, F = Y(() => L ? L.length > X : !1, [L, X]), ee = Y(() => F ? (L == null ? void 0 : L.slice(re, V)) ?? null : L ?? null, [F, L, re, V]), [ae, be] = E(null);
|
|
4035
4035
|
B(() => {
|
|
4036
4036
|
S(null), $(null), Q(!1), D([]), be(null);
|
|
4037
4037
|
}, [e]);
|
|
@@ -4062,17 +4062,17 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4062
4062
|
j === null || ((q = j.id) == null ? void 0 : q.toString()) !== e || j.masterReference && !ae || (w("dynamicFormExport"), await y.get(`${p}?id=${e}&showArchive=${k}${j.masterReference ? `&master=${ae}` : ""}`, {
|
|
4063
4063
|
responseType: "blob"
|
|
4064
4064
|
}).then((ue) => Qa(ue, { fallbackName: `export-${e}` })).finally(() => b("dynamicFormExport")));
|
|
4065
|
-
}, [y, e, j, w, b, k, ae, p]), _e = C(async (q) => (w("dynamicFormEdit"), y.post(`${m}?id=${e}`, q).then(() => (b("dynamicFormEdit"), D([]), !0)).catch((ue) => (b("dynamicFormEdit"), D(
|
|
4065
|
+
}, [y, e, j, w, b, k, ae, p]), _e = C(async (q) => (w("dynamicFormEdit"), y.post(`${m}?id=${e}`, q).then(() => (b("dynamicFormEdit"), D([]), !0)).catch((ue) => (b("dynamicFormEdit"), D(sn(ue)), !1))), [y, e, w, b, m]), Ne = C(async (q) => (w("dynamicFormDelete"), y.delete(`${v}?id=${e}&pk=${q}`).then(() => (b("dynamicFormDelete"), D([]), !0)).catch((ue) => (b("dynamicFormDelete"), D(sn(ue)), !1))), [y, e, w, b, v]), et = C(async (q) => (w("dynamicFormCreate"), y.post(`${f}?id=${e}`, q).then(({ data: ue }) => (b("dynamicFormCreate"), D([]), ue)).catch((ue) => (b("dynamicFormCreate"), D(sn(ue)), null))), [y, e, w, b, f]), ct = C(async (q) => {
|
|
4066
4066
|
j && await _e(j.masterReference ? { ...q, [j.masterReferenceColumn ?? ""]: ae } : q) && (O(g.editSuccess, "success"), $((ue) => ue && ue.map((ge) => {
|
|
4067
4067
|
var fe;
|
|
4068
4068
|
return ((fe = ge[(j == null ? void 0 : j.primaryKey) ?? ""]) == null ? void 0 : fe.value) === q[(j == null ? void 0 : j.primaryKey) ?? ""] ? br(q, j) : ge;
|
|
4069
4069
|
})));
|
|
4070
4070
|
}, [O, _e, j, ae, g]), I = C(async (q) => {
|
|
4071
|
-
await
|
|
4071
|
+
await W(g.deleteConfirm) && await Ne(q) && (O(g.deleteSuccess, "success"), $((ue) => ue && ue.filter((ge) => {
|
|
4072
4072
|
var fe;
|
|
4073
4073
|
return ((fe = ge[(j == null ? void 0 : j.primaryKey) ?? ""]) == null ? void 0 : fe.value) !== q;
|
|
4074
4074
|
})));
|
|
4075
|
-
}, [O, Ne, g,
|
|
4075
|
+
}, [O, Ne, g, W, j]), M = C(async (q) => {
|
|
4076
4076
|
if (!j)
|
|
4077
4077
|
return !1;
|
|
4078
4078
|
const ue = await et(j.masterReference ? { ...q, [j.masterReferenceColumn ?? ""]: ae } : q);
|
|
@@ -4082,7 +4082,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4082
4082
|
return ge[(j == null ? void 0 : j.primaryKey) ?? ""] = { value: ue, defaultValue: ue }, $((fe) => [...fe ?? [], ge]), !0;
|
|
4083
4083
|
}
|
|
4084
4084
|
return !1;
|
|
4085
|
-
}, [O, et, g, j, ae]),
|
|
4085
|
+
}, [O, et, g, j, ae]), H = (q) => {
|
|
4086
4086
|
q > z ? r(z) : q < 1 && r(1), r(q);
|
|
4087
4087
|
}, le = C(() => {
|
|
4088
4088
|
if (!T || !j) {
|
|
@@ -4132,22 +4132,22 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4132
4132
|
if (!fe)
|
|
4133
4133
|
return -1;
|
|
4134
4134
|
if (xe.values && xe.values.length > 0) {
|
|
4135
|
-
const Re = ((yt = xe.values.find((
|
|
4135
|
+
const Re = ((yt = xe.values.find((rn) => {
|
|
4136
4136
|
var wt;
|
|
4137
|
-
return ((wt =
|
|
4138
|
-
})) == null ? void 0 : yt.name) ?? "",
|
|
4137
|
+
return ((wt = rn.id) == null ? void 0 : wt.toString()) === ge;
|
|
4138
|
+
})) == null ? void 0 : yt.name) ?? "", He = ((Ot = xe.values.find((rn) => {
|
|
4139
4139
|
var wt;
|
|
4140
|
-
return ((wt =
|
|
4140
|
+
return ((wt = rn.id) == null ? void 0 : wt.toString()) === fe;
|
|
4141
4141
|
})) == null ? void 0 : Ot.name) ?? "";
|
|
4142
|
-
return i === "asc" ? Re.localeCompare(
|
|
4142
|
+
return i === "asc" ? Re.localeCompare(He) : He.localeCompare(Re);
|
|
4143
4143
|
}
|
|
4144
4144
|
if (ye === "NUM") {
|
|
4145
|
-
const Re = Number(ge),
|
|
4146
|
-
return i === "asc" ? Re -
|
|
4145
|
+
const Re = Number(ge), He = Number(fe);
|
|
4146
|
+
return i === "asc" ? Re - He : He - Re;
|
|
4147
4147
|
}
|
|
4148
4148
|
if (ye === "DT") {
|
|
4149
|
-
const Re = Ct(ge == null ? void 0 : ge.toString()).getTime(),
|
|
4150
|
-
return i === "asc" ? Re -
|
|
4149
|
+
const Re = Ct(ge == null ? void 0 : ge.toString()).getTime(), He = Ct(fe == null ? void 0 : fe.toString()).getTime();
|
|
4150
|
+
return i === "asc" ? Re - He : He - Re;
|
|
4151
4151
|
}
|
|
4152
4152
|
return i === "asc" ? ge.toString().localeCompare(fe.toString()) : fe.toString().localeCompare(ge.toString());
|
|
4153
4153
|
}));
|
|
@@ -4177,18 +4177,18 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4177
4177
|
(j == null ? void 0 : j.masterReference) && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ n.jsx(Fd, { label: ((de = (ce = j.columns) == null ? void 0 : ce.find((q) => q.field === j.masterReferenceColumn)) == null ? void 0 : de.caption) ?? "", options: ((Te = (Ie = j.columns) == null ? void 0 : Ie.find((q) => q.field === j.masterReferenceColumn)) == null ? void 0 : Te.values) ?? [], master: ae, onChange: (q) => be(q) }) }),
|
|
4178
4178
|
(j == null ? void 0 : j.slaves) && j.slaves.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex align-items-center flex-start gap-1", children: j.slaves.map((q) => {
|
|
4179
4179
|
var ue;
|
|
4180
|
-
return /* @__PURE__ */ n.jsx(Ve, { as: "link", href: `${
|
|
4180
|
+
return /* @__PURE__ */ n.jsx(Ve, { as: "link", href: `${Wt(l, { id: (ue = q.id) == null ? void 0 : ue.toString() })}?type=dynamic-form`, children: q.name }, q.id);
|
|
4181
4181
|
}) }),
|
|
4182
|
-
j != null && j.masterReference && !ae ? /* @__PURE__ */ n.jsx(
|
|
4182
|
+
j != null && j.masterReference && !ae ? /* @__PURE__ */ n.jsx(nn, { variant: "warning", children: g.selectMaster(((dt = (Ee = j.columns) == null ? void 0 : Ee.find((q) => q.field === j.masterReferenceColumn)) == null ? void 0 : dt.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4183
4183
|
j && N.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-2", children: /* @__PURE__ */ n.jsx(ud, { errors: N, schema: j }) }),
|
|
4184
4184
|
j && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4185
4185
|
/* @__PURE__ */ n.jsx("div", { className: _("rounded border overflow-auto", Nr.tableContainer), children: /* @__PURE__ */ n.jsx(Ed, { schema: j, items: !F && L && (L == null ? void 0 : L.length) > X ? [] : (F ? ee : L) ?? [], onEditItem: ct, onDeleteItem: I, onCreateItem: M, filters: s, setFilter: a, sortByField: o, sortByType: i, setSortBy: c, selectedMaster: (ae == null ? void 0 : ae.toString()) ?? null, customPickers: x }) }),
|
|
4186
4186
|
F && t && /* @__PURE__ */ n.jsxs("div", { className: _(Nr.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
|
|
4187
4187
|
/* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
4188
|
-
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () =>
|
|
4189
|
-
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () =>
|
|
4190
|
-
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () =>
|
|
4191
|
-
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () =>
|
|
4188
|
+
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () => H(1), disabled: !Z, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-double-left" }) }),
|
|
4189
|
+
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () => H(t - 1), disabled: !Z, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-left" }) }),
|
|
4190
|
+
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () => H(t + 1), disabled: !ne, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-right" }) }),
|
|
4191
|
+
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () => H(z), disabled: !ne, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-double-right" }) })
|
|
4192
4192
|
] }),
|
|
4193
4193
|
/* @__PURE__ */ n.jsxs(K, { variant: "body", children: [
|
|
4194
4194
|
g.tablePage,
|
|
@@ -4227,10 +4227,10 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4227
4227
|
!u && x();
|
|
4228
4228
|
}, [x, u]), f.length > 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: p.map((g) => /* @__PURE__ */ n.jsx(Yt, { title: g.name, defaultOpen: !0, children: g.items.map((h) => {
|
|
4229
4229
|
var y, w, b, j;
|
|
4230
|
-
return a ? /* @__PURE__ */ n.jsxs(Oe, { to: `${
|
|
4230
|
+
return a ? /* @__PURE__ */ n.jsxs(Oe, { to: `${Wt(o, { id: (y = h.id) == null ? void 0 : y.toString() })}?type=${h.type}&search=${v ?? ""}`, 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: [
|
|
4231
4231
|
/* @__PURE__ */ n.jsx(K, { variant: "body", children: h.name }),
|
|
4232
4232
|
h.description && /* @__PURE__ */ n.jsx(K, { variant: "body2", className: "text-muted mt-2", children: h.description })
|
|
4233
|
-
] }, h.id) : /* @__PURE__ */ n.jsx(Rd, { item: h, children: /* @__PURE__ */ n.jsx(Oe, { to: `${
|
|
4233
|
+
] }, h.id) : /* @__PURE__ */ n.jsx(Rd, { item: h, children: /* @__PURE__ */ n.jsx(Oe, { to: `${Wt(o, { id: (b = h.id) == null ? void 0 : b.toString() })}?type=${h.type}&search=${v ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((j = h.id) == null ? void 0 : j.toString()) ? "active" : ""}`, children: /* @__PURE__ */ n.jsx(K, { variant: "body2", children: h.name }) }) }, h.id);
|
|
4234
4234
|
}) }, g.id)) }) }) : null;
|
|
4235
4235
|
}, Pu = ({ label: e, to: t, value: r }) => /* @__PURE__ */ n.jsxs(Ae, { label: e, children: [
|
|
4236
4236
|
/* @__PURE__ */ n.jsx("input", { disabled: !0, className: "form-control d-none" }),
|
|
@@ -4250,7 +4250,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4250
4250
|
/* @__PURE__ */ n.jsx(Pn, {}),
|
|
4251
4251
|
/* @__PURE__ */ n.jsx("span", { children: "CZ" })
|
|
4252
4252
|
] }) });
|
|
4253
|
-
},
|
|
4253
|
+
}, Hu = ({ controlId: e, ...t }) => /* @__PURE__ */ n.jsx(pe.Group, { controlId: e, ...t }), Wu = ({ employeeId: e, alt: t, noPhotoImage: r, cafmApiUrl: s, showLargeInLightBox: a = !1 }) => {
|
|
4254
4254
|
const { user: o } = U(Lt), { photoPath: i, photoPathSm: c } = fo(e);
|
|
4255
4255
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsx(Vc, { baseUrl: s, customToken: o.cafmToken ?? void 0, photos: [
|
|
4256
4256
|
{
|
|
@@ -4267,10 +4267,10 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4267
4267
|
};
|
|
4268
4268
|
return /* @__PURE__ */ n.jsxs(Vt, { className: `${s}`, children: [
|
|
4269
4269
|
/* @__PURE__ */ n.jsx(pe.Control, { value: e, onChange: (o) => t(o.target.value) }),
|
|
4270
|
-
e && /* @__PURE__ */ n.jsx(
|
|
4271
|
-
/* @__PURE__ */ n.jsx(
|
|
4270
|
+
e && /* @__PURE__ */ n.jsx(jn, { onClick: () => a(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ n.jsx(Pe, {}) }),
|
|
4271
|
+
/* @__PURE__ */ n.jsx(jn, { onClick: () => r && r(e), variant: "link", className: "border", children: /* @__PURE__ */ n.jsx(Za, {}) })
|
|
4272
4272
|
] });
|
|
4273
|
-
}, Gu = ({ value: e, numberPrefix: t, numberSuffix: r, decimalScale: s = 2, fixedDecimalScale: a = !1, className: o }) => /* @__PURE__ */ n.jsx(
|
|
4273
|
+
}, Gu = ({ value: e, numberPrefix: t, numberSuffix: r, decimalScale: s = 2, fixedDecimalScale: a = !1, className: o }) => /* @__PURE__ */ n.jsx(Rn, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: s, fixedDecimalScale: a, defaultValue: "", prefix: t, suffix: r, className: o, decimalSeparator: "," }), Yu = ({ data: e, keys: t, colors: r, tooltipLabel: s }) => /* @__PURE__ */ n.jsx(Ja, { data: e.map((a) => ({ name: a.name, ...a.values })), indexBy: "name", keys: t, margin: {
|
|
4274
4274
|
top: 20,
|
|
4275
4275
|
right: 50,
|
|
4276
4276
|
bottom: 30,
|
|
@@ -4291,7 +4291,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4291
4291
|
modifiers: [["darker", 1.6]]
|
|
4292
4292
|
}, tooltipLabel: s }), Md = "_hrText_xxish_1", Ad = {
|
|
4293
4293
|
hrText: Md
|
|
4294
|
-
}, Bd = ({ text: e }) => /* @__PURE__ */ n.jsx("hr", { className: _(Ad.hrText), "data-content": e }), Vd = "_cards-group_1gvpy_1", Pd = "_group-title_1gvpy_1", zd = "_group-content_1gvpy_8",
|
|
4294
|
+
}, Bd = ({ text: e }) => /* @__PURE__ */ n.jsx("hr", { className: _(Ad.hrText), "data-content": e }), Vd = "_cards-group_1gvpy_1", Pd = "_group-title_1gvpy_1", zd = "_group-content_1gvpy_8", Hd = "_report-card_1gvpy_12", Wd = "_card-title-link_1gvpy_22", ut = {
|
|
4295
4295
|
"cards-group": "_cards-group_1gvpy_1",
|
|
4296
4296
|
cardsGroup: Vd,
|
|
4297
4297
|
"group-title": "_group-title_1gvpy_1",
|
|
@@ -4299,9 +4299,9 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4299
4299
|
"group-content": "_group-content_1gvpy_8",
|
|
4300
4300
|
groupContent: zd,
|
|
4301
4301
|
"report-card": "_report-card_1gvpy_12",
|
|
4302
|
-
reportCard:
|
|
4302
|
+
reportCard: Hd,
|
|
4303
4303
|
"card-title-link": "_card-title-link_1gvpy_22",
|
|
4304
|
-
cardTitleLink:
|
|
4304
|
+
cardTitleLink: Wd
|
|
4305
4305
|
}, Ud = ({ reportsLastUsedGet: e, getReportRoute: t, getReportName: r }) => {
|
|
4306
4306
|
const { texts: { reports: s } } = U(oe), { data: a } = It(e);
|
|
4307
4307
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(Yt, { defaultOpen: !0, title: s.index.lastUsedReports, children: /* @__PURE__ */ n.jsx(ys, { children: a && a.map((o) => o.versions.map((i) => /* @__PURE__ */ n.jsxs(Ft, { as: Oe, to: t(o, i.id), className: "p-1 px-2", action: !0, children: [
|
|
@@ -4311,10 +4311,10 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4311
4311
|
/* @__PURE__ */ n.jsx(K, { variant: "caption", className: "text-end opacity-50", children: Yr(i.lastUsedDate) })
|
|
4312
4312
|
] })
|
|
4313
4313
|
] }))) }) }) });
|
|
4314
|
-
},
|
|
4314
|
+
}, pn = {
|
|
4315
4315
|
reportsGet: "/reports",
|
|
4316
4316
|
reportsLastUsedGet: "/reports/last-used"
|
|
4317
|
-
}, Ku = ({ groups: e, apiUrls: { reportsGet: t =
|
|
4317
|
+
}, Ku = ({ groups: e, apiUrls: { reportsGet: t = pn.reportsGet, reportsLastUsedGet: r = pn.reportsLastUsedGet } = pn, getReportName: s, getReportDescription: a, getGroupTitle: o, getReportRoute: i }) => {
|
|
4318
4318
|
const { texts: { reports: c } } = U(oe), [l, d] = E(""), [u] = en(l, 500), m = C((g) => g.map((h) => ({
|
|
4319
4319
|
...h,
|
|
4320
4320
|
groupId: !h.groupId || h.groupId === 0 || !e.some((y) => y === h.groupId) ? 999 : h.groupId
|
|
@@ -4356,13 +4356,13 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4356
4356
|
] });
|
|
4357
4357
|
};
|
|
4358
4358
|
export {
|
|
4359
|
-
|
|
4359
|
+
nn as Alert,
|
|
4360
4360
|
Yc as AlertItem,
|
|
4361
4361
|
au as ApiFileDownloadButton,
|
|
4362
4362
|
Lu as AppSearch,
|
|
4363
4363
|
Tu as AuthTemplate,
|
|
4364
4364
|
zr as AvatarIcon,
|
|
4365
|
-
|
|
4365
|
+
Ws as Backdrop,
|
|
4366
4366
|
Du as Badge,
|
|
4367
4367
|
Yu as BarChart,
|
|
4368
4368
|
Ps as Card,
|
|
@@ -4378,7 +4378,7 @@ export {
|
|
|
4378
4378
|
iu as DropdownPicker,
|
|
4379
4379
|
gt as DropdownToggle,
|
|
4380
4380
|
Bu as DynamicForm,
|
|
4381
|
-
|
|
4381
|
+
Wu as EmployeeSmallPhoto,
|
|
4382
4382
|
qo as ErrorBoundary,
|
|
4383
4383
|
Ju as FileExtensionIcon,
|
|
4384
4384
|
ou as FileUploadButton,
|
|
@@ -4408,10 +4408,10 @@ export {
|
|
|
4408
4408
|
Us as ImgDirect,
|
|
4409
4409
|
lt as InvalidFeedback,
|
|
4410
4410
|
zu as LanguageSwitch,
|
|
4411
|
-
|
|
4411
|
+
Hn as Loading,
|
|
4412
4412
|
mo as LoadingBlock,
|
|
4413
4413
|
bu as MessageBoard,
|
|
4414
|
-
|
|
4414
|
+
Ho as MonthPicker,
|
|
4415
4415
|
Ru as MonthPickerSearchParams,
|
|
4416
4416
|
Fe as NoInputContainer,
|
|
4417
4417
|
Gu as NumericFormat,
|
|
@@ -4437,13 +4437,13 @@ export {
|
|
|
4437
4437
|
tn as SimplePicker,
|
|
4438
4438
|
Et as SimpleToggle,
|
|
4439
4439
|
Je as SimpleTooltip,
|
|
4440
|
-
|
|
4440
|
+
Wi as Tab,
|
|
4441
4441
|
Nu as TabPanel,
|
|
4442
4442
|
Vi as Tabs,
|
|
4443
4443
|
lu as TextAreaInput,
|
|
4444
4444
|
Qe as TextInput,
|
|
4445
4445
|
Fu as Timeline,
|
|
4446
|
-
|
|
4446
|
+
Hu as TypedFormGroup,
|
|
4447
4447
|
K as Typography,
|
|
4448
4448
|
sf as UserAvatarToggle,
|
|
4449
4449
|
_u as UserAvatarValueFormat,
|