react-luminus-components 2.0.3-beta.r19-10 → 2.0.3-beta.r19-12
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/.vite/manifest.json +26 -26
- package/dist/{FormDisabledProvider-Dy-3Z-9i.js → FormDisabledProvider-BPAzfs0s.js} +1 -1
- package/dist/{FormDisabledProvider-BdATzEBI.cjs → FormDisabledProvider-Df1ohtig.cjs} +1 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +6 -6
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +63 -63
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +13 -13
- package/dist/main.cjs.js +2 -2
- package/dist/main.es.js +745 -746
- package/dist/{nivo-bar-CAW-Jx1M.js → nivo-bar-CkGPzpeT.js} +4205 -4184
- package/dist/{nivo-bar-BbLPKXdj.cjs → nivo-bar-DIQcMyXJ.cjs} +53 -53
- package/dist/{useLocalStorageState-CEmt5A-f.cjs → useLocalStorageState-BStYdTWW.cjs} +1 -1
- package/dist/{useLocalStorageState-BGMKqdB2.js → useLocalStorageState-Bwt8wp1e.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +3 -3
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { c as I, t as Ce, a as Ln, s as zr, g as Hr, m as gi, d as Cn, b as vi, e as yi, f as st, h as bi, i as wi, j as Ni, k as xi, l as Si, n as Ci, o as ki, T as Ka, p as Qa, q as Xa, r as Vr, u as Ii, E as Za, v as yr, w as Ja, x as _i, y as ke, z as br, A as Di, F as eo, B as Ti, C as Ei, D as Oi, M as $i, G as Li, H as Ai, I as Ri, J as ji, K as Mi, L as lr, N as Pi, O as Fi, P as G, Q as Ke, R as Bi, S as zi, U as Hi, V as to, W as nt, X as J, Y as wr, Z as ie, _ as Nr, $ as Ur, a0 as Vi, a1 as Ui, a2 as Wi, a3 as re, a4 as $, a5 as Ht, a6 as Be, a7 as xr, a8 as Sr, a9 as no, aa as Cr, ab as ht, ac as ro, ad as ao, ae as Se, af as at, ag as
|
|
2
|
-
import { bF as
|
|
1
|
+
import { c as I, t as Ce, a as Ln, s as zr, g as Hr, m as gi, d as Cn, b as vi, e as yi, f as st, h as bi, i as wi, j as Ni, k as xi, l as Si, n as Ci, o as ki, T as Ka, p as Qa, q as Xa, r as Vr, u as Ii, E as Za, v as yr, w as Ja, x as _i, y as ke, z as br, A as Di, F as eo, B as Ti, C as Ei, D as Oi, M as $i, G as Li, H as Ai, I as Ri, J as ji, K as Mi, L as lr, N as Pi, O as Fi, P as G, Q as Ke, R as Bi, S as zi, U as Hi, V as to, W as nt, X as J, Y as wr, Z as ie, _ as Nr, $ as Ur, a0 as Vi, a1 as Ui, a2 as Wi, a3 as re, a4 as $, a5 as Ht, a6 as Be, a7 as xr, a8 as Sr, a9 as no, aa as Cr, ab as ht, ac as ro, ad as ao, ae as Se, af as at, ag as _t, ah as Ft, ai as Gi, aj as Ae, ak as Yi, al as qi, am as ot, an as je, ao as pt, ap as Ze, aq as Dt, ar as nn, as as An, at as rt, au as Ki, av as Ge, aw as Qi, ax as Xi, ay as gt, az as Re, aA as vt, aB as Tt, aC as Ye, aD as $e, aE as ze, aF as Rn, aG as oo, aH as We, aI as kr, aJ as qe, aK as mn, aL as Ir, aM as Dn, aN as Zi, aO as Ji, aP as el, aQ as tl, aR as nl, aS as rl, aT as jn, aU as io, aV as Mn, aW as Bt, aX as al, aY as ol, aZ as il, a_ as lo, a$ as Tn, b0 as rn, b1 as fn, b2 as ll, b3 as sl, b4 as cl, b5 as dl, b6 as ul, b7 as ml, b8 as fl, b9 as so, ba as hl, bb as pl, bc as gl, bd as vl, be as yl, bf as mt, bg as bl, bh as wl, bi as Nl, bj as xl, bk as Sl, bl as Kt, bm as co, bn as Cl, bo as Wn, bp as uo, bq as $t, br as kl, bs as Il, bt as En, bu as _l, bv as mo, bw as gn, bx as fo, by as ho, bz as Dl, bA as Tl, bB as _r, bC as El, bD as Ol } from "./nivo-bar-CkGPzpeT.js";
|
|
2
|
+
import { bF as Lp, bE as Ap } from "./nivo-bar-CkGPzpeT.js";
|
|
3
3
|
import { jsx as r, jsxs as g, Fragment as Z } from "react/jsx-runtime";
|
|
4
4
|
import * as we from "react";
|
|
5
5
|
import Le, { useCallback as D, useMemo as j, useState as L, useRef as ge, useEffect as U, useContext as F, useId as $l, useLayoutEffect as Ll, Component as Al, isValidElement as Wr, Suspense as Rl, Fragment as jl } from "react";
|
|
6
|
-
import { c as et, a as Ml, b as Pl, L as sr, F as Fl } from "./FormDisabledProvider-
|
|
6
|
+
import { c as et, a as Ml, b as Pl, L as sr, F as Fl } from "./FormDisabledProvider-BPAzfs0s.js";
|
|
7
7
|
import { InteractionType as Bl } from "@azure/msal-browser";
|
|
8
8
|
import { MsalAuthenticationTemplate as zl } from "@azure/msal-react";
|
|
9
|
-
import { Link as Oe, useNavigate as Pn, useSearchParams as Hl, useParams as po, generatePath as zt, useLocation as Vl, Navigate as vn } from "react-router";
|
|
10
9
|
import "@tanstack/react-query";
|
|
10
|
+
import { Link as Oe, useNavigate as Pn, useSearchParams as Hl, useParams as po, generatePath as zt, useLocation as Vl, Navigate as vn } from "react-router";
|
|
11
11
|
import On from "react-dom";
|
|
12
|
-
import { useFormContext as
|
|
13
|
-
import { Pivot as
|
|
14
|
-
import { l as Jt, g as cr, d as
|
|
15
|
-
import { u as De, a as an } from "./useLocalStorageState-
|
|
16
|
-
import { u as
|
|
17
|
-
const
|
|
12
|
+
import { useFormContext as Et, useWatch as ft, Controller as Dr, useFormState as Ul, useForm as Fn, FormProvider as Bn } from "react-hook-form";
|
|
13
|
+
import { Pivot as Wl } from "react-flexmonster";
|
|
14
|
+
import { l as Jt, g as cr, d as Gl, r as Yl, h as kn } from "./localStorageUtils-B7BmbR_u.js";
|
|
15
|
+
import { u as De, a as an } from "./useLocalStorageState-Bwt8wp1e.js";
|
|
16
|
+
import { u as ql, a as kt, b as Kl } from "./useEmployeePhotoPath-DdMmh1qU.js";
|
|
17
|
+
const Ch = ({ fileLoader: e, fileName: t, children: n }) => {
|
|
18
18
|
const a = D(async () => {
|
|
19
19
|
var s, c;
|
|
20
20
|
const o = await e();
|
|
@@ -24,16 +24,16 @@ const Sh = ({ fileLoader: e, fileName: t, children: n }) => {
|
|
|
24
24
|
i.href = l, i.setAttribute("download", t), (s = document.body) == null || s.appendChild(i), i.click(), (c = document.body) == null || c.removeChild(i);
|
|
25
25
|
}, [e, t]);
|
|
26
26
|
return /* @__PURE__ */ r("div", { role: "button", onClick: a, children: n });
|
|
27
|
-
},
|
|
27
|
+
}, Ql = ({ className: e, size: t, ...n }) => /* @__PURE__ */ g("div", { className: I("luminus-loading", et.loading, et.loadingBlock, t === "line" ? et.sizeLine : void 0, t === "fill" ? et.sizeFill : void 0, e), ...n, children: [
|
|
28
28
|
/* @__PURE__ */ r("div", { className: I("spinner-grow", et.spinnerGrow, "text-primary"), role: "status" }),
|
|
29
29
|
/* @__PURE__ */ r("div", { className: I("spinner-grow", et.spinnerGrow, "text-primary", et.second), role: "status" }),
|
|
30
30
|
/* @__PURE__ */ r("div", { className: I("spinner-grow", et.spinnerGrow, "text-primary", et.third), role: "status" })
|
|
31
31
|
] });
|
|
32
|
-
function
|
|
32
|
+
function Xl(e, t) {
|
|
33
33
|
const n = Ce(e);
|
|
34
34
|
return isNaN(t) ? Ln(e, NaN) : (t && n.setDate(n.getDate() + t), n);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Zl(e, t) {
|
|
37
37
|
const n = Ce(e), a = Ce(t), o = n.getTime() - a.getTime();
|
|
38
38
|
return o < 0 ? -1 : o > 0 ? 1 : o;
|
|
39
39
|
}
|
|
@@ -57,7 +57,7 @@ function Yn(e, t) {
|
|
|
57
57
|
const n = Ce(e), a = Ce(t);
|
|
58
58
|
return n.getFullYear() - a.getFullYear();
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Jl(e, t) {
|
|
61
61
|
const n = Ce(e), a = Ce(t), o = Kr(n, a), l = Math.abs(Cn(n, a));
|
|
62
62
|
n.setDate(n.getDate() - o * l);
|
|
63
63
|
const i = +(Kr(n, a) === -o), s = o * (l - i);
|
|
@@ -111,11 +111,11 @@ function jt(e, t) {
|
|
|
111
111
|
}
|
|
112
112
|
return l;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function es(e) {
|
|
115
115
|
const t = Ce(e), n = t.getFullYear(), a = t.getMonth(), o = Ln(e, 0);
|
|
116
116
|
return o.setFullYear(n, a + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function ts(e, t, n) {
|
|
119
119
|
let a = 0, o;
|
|
120
120
|
const l = Ce(e), i = Ce(t);
|
|
121
121
|
if (n != null && n.unit)
|
|
@@ -130,10 +130,10 @@ function es(e, t, n) {
|
|
|
130
130
|
style: n == null ? void 0 : n.style
|
|
131
131
|
}).format(a, o);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function ns(e, t) {
|
|
134
134
|
const n = Ce(e), a = n.getFullYear(), o = n.getDate(), l = Ln(e, 0);
|
|
135
135
|
l.setFullYear(a, t, 15), l.setHours(0, 0, 0, 0);
|
|
136
|
-
const i =
|
|
136
|
+
const i = es(l);
|
|
137
137
|
return n.setMonth(t, Math.min(o, i)), n;
|
|
138
138
|
}
|
|
139
139
|
function dr(e, t) {
|
|
@@ -149,17 +149,17 @@ function Qt(...e) {
|
|
|
149
149
|
};
|
|
150
150
|
}, null);
|
|
151
151
|
}
|
|
152
|
-
const
|
|
152
|
+
const rs = {
|
|
153
153
|
height: ["marginTop", "marginBottom"],
|
|
154
154
|
width: ["marginLeft", "marginRight"]
|
|
155
155
|
};
|
|
156
|
-
function
|
|
157
|
-
const n = `offset${e[0].toUpperCase()}${e.slice(1)}`, a = t[n], o =
|
|
156
|
+
function as(e, t) {
|
|
157
|
+
const n = `offset${e[0].toUpperCase()}${e.slice(1)}`, a = t[n], o = rs[e];
|
|
158
158
|
return a + // @ts-expect-error TODO
|
|
159
159
|
parseInt(Vr(t, o[0]), 10) + // @ts-expect-error TODO
|
|
160
160
|
parseInt(Vr(t, o[1]), 10);
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const os = {
|
|
163
163
|
[_i]: "collapse",
|
|
164
164
|
[Ja]: "collapsing",
|
|
165
165
|
[yr]: "collapsing",
|
|
@@ -178,7 +178,7 @@ const as = {
|
|
|
178
178
|
mountOnEnter: u = !1,
|
|
179
179
|
unmountOnExit: m = !1,
|
|
180
180
|
appear: f = !1,
|
|
181
|
-
getDimensionValue: p =
|
|
181
|
+
getDimensionValue: p = as,
|
|
182
182
|
...h
|
|
183
183
|
}, w) => {
|
|
184
184
|
const v = typeof s == "function" ? s() : s, b = j(() => Qt((S) => {
|
|
@@ -211,7 +211,7 @@ const as = {
|
|
|
211
211
|
appear: f,
|
|
212
212
|
children: (S, _) => /* @__PURE__ */ Le.cloneElement(i, {
|
|
213
213
|
..._,
|
|
214
|
-
className: I(l, i.props.className,
|
|
214
|
+
className: I(l, i.props.className, os[S], v === "width" && "collapse-horizontal")
|
|
215
215
|
})
|
|
216
216
|
});
|
|
217
217
|
});
|
|
@@ -300,10 +300,10 @@ const No = /* @__PURE__ */ we.forwardRef(({
|
|
|
300
300
|
...a
|
|
301
301
|
})));
|
|
302
302
|
No.displayName = "CardLink";
|
|
303
|
-
const
|
|
303
|
+
const is = br("h6"), xo = /* @__PURE__ */ we.forwardRef(({
|
|
304
304
|
className: e,
|
|
305
305
|
bsPrefix: t,
|
|
306
|
-
as: n =
|
|
306
|
+
as: n = is,
|
|
307
307
|
...a
|
|
308
308
|
}, o) => (t = ke(t, "card-subtitle"), /* @__PURE__ */ r(n, {
|
|
309
309
|
ref: o,
|
|
@@ -322,10 +322,10 @@ const So = /* @__PURE__ */ we.forwardRef(({
|
|
|
322
322
|
...a
|
|
323
323
|
})));
|
|
324
324
|
So.displayName = "CardText";
|
|
325
|
-
const
|
|
325
|
+
const ls = br("h5"), Co = /* @__PURE__ */ we.forwardRef(({
|
|
326
326
|
className: e,
|
|
327
327
|
bsPrefix: t,
|
|
328
|
-
as: n =
|
|
328
|
+
as: n = ls,
|
|
329
329
|
...a
|
|
330
330
|
}, o) => (t = ke(t, "card-title"), /* @__PURE__ */ r(n, {
|
|
331
331
|
ref: o,
|
|
@@ -377,12 +377,12 @@ const Zr = Object.assign(ko, {
|
|
|
377
377
|
...a
|
|
378
378
|
})));
|
|
379
379
|
zn.displayName = "InputGroupText";
|
|
380
|
-
const
|
|
380
|
+
const ss = (e) => /* @__PURE__ */ r(zn, {
|
|
381
381
|
children: /* @__PURE__ */ r(eo, {
|
|
382
382
|
type: "checkbox",
|
|
383
383
|
...e
|
|
384
384
|
})
|
|
385
|
-
}),
|
|
385
|
+
}), cs = (e) => /* @__PURE__ */ r(zn, {
|
|
386
386
|
children: /* @__PURE__ */ r(eo, {
|
|
387
387
|
type: "radio",
|
|
388
388
|
...e
|
|
@@ -410,8 +410,8 @@ const ls = (e) => /* @__PURE__ */ r(zn, {
|
|
|
410
410
|
Io.displayName = "InputGroup";
|
|
411
411
|
const In = Object.assign(Io, {
|
|
412
412
|
Text: zn,
|
|
413
|
-
Radio:
|
|
414
|
-
Checkbox:
|
|
413
|
+
Radio: cs,
|
|
414
|
+
Checkbox: ss
|
|
415
415
|
}), ur = /* @__PURE__ */ new WeakMap(), Jr = (e, t) => {
|
|
416
416
|
if (!e || !t) return;
|
|
417
417
|
const n = ur.get(t) || /* @__PURE__ */ new Map();
|
|
@@ -419,7 +419,7 @@ const In = Object.assign(Io, {
|
|
|
419
419
|
let a = n.get(e);
|
|
420
420
|
return a || (a = t.matchMedia(e), a.refCount = 0, n.set(a.media, a)), a;
|
|
421
421
|
};
|
|
422
|
-
function
|
|
422
|
+
function ds(e, t = typeof window > "u" ? void 0 : window) {
|
|
423
423
|
const n = Jr(e, t), [a, o] = L(() => n ? n.matches : !1);
|
|
424
424
|
return Ti(() => {
|
|
425
425
|
let l = Jr(e, t);
|
|
@@ -434,7 +434,7 @@ function cs(e, t = typeof window > "u" ? void 0 : window) {
|
|
|
434
434
|
};
|
|
435
435
|
}, [e]), a;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function us(e) {
|
|
438
438
|
const t = Object.keys(e);
|
|
439
439
|
function n(s, c) {
|
|
440
440
|
return s === c ? c : s ? `${s} and ${c}` : c;
|
|
@@ -457,11 +457,11 @@ function ds(e) {
|
|
|
457
457
|
[s]: c
|
|
458
458
|
});
|
|
459
459
|
let m = j(() => Object.entries(u).reduce((f, [p, h]) => ((h === "up" || h === !0) && (f = n(f, l(p))), (h === "down" || h === !0) && (f = n(f, o(p))), f), ""), [JSON.stringify(u)]);
|
|
460
|
-
return
|
|
460
|
+
return ds(m, d);
|
|
461
461
|
}
|
|
462
462
|
return i;
|
|
463
463
|
}
|
|
464
|
-
const
|
|
464
|
+
const ms = us({
|
|
465
465
|
xs: 0,
|
|
466
466
|
sm: 576,
|
|
467
467
|
md: 768,
|
|
@@ -479,7 +479,7 @@ const us = ds({
|
|
|
479
479
|
...a
|
|
480
480
|
})));
|
|
481
481
|
_o.displayName = "OffcanvasBody";
|
|
482
|
-
const
|
|
482
|
+
const fs = {
|
|
483
483
|
[yr]: "show",
|
|
484
484
|
[Za]: "show"
|
|
485
485
|
}, Do = /* @__PURE__ */ we.forwardRef(({
|
|
@@ -502,7 +502,7 @@ const ms = {
|
|
|
502
502
|
childRef: Qa(n),
|
|
503
503
|
children: (d, u) => /* @__PURE__ */ we.cloneElement(n, {
|
|
504
504
|
...u,
|
|
505
|
-
className: I(t, n.props.className, (d === yr || d === Ja) && `${e}-toggling`,
|
|
505
|
+
className: I(t, n.props.className, (d === yr || d === Ja) && `${e}-toggling`, fs[d])
|
|
506
506
|
})
|
|
507
507
|
})));
|
|
508
508
|
Do.displayName = "OffcanvasToggling";
|
|
@@ -520,10 +520,10 @@ const To = /* @__PURE__ */ we.forwardRef(({
|
|
|
520
520
|
closeButton: a
|
|
521
521
|
})));
|
|
522
522
|
To.displayName = "OffcanvasHeader";
|
|
523
|
-
const
|
|
523
|
+
const hs = br("h5"), Eo = /* @__PURE__ */ we.forwardRef(({
|
|
524
524
|
className: e,
|
|
525
525
|
bsPrefix: t,
|
|
526
|
-
as: n =
|
|
526
|
+
as: n = hs,
|
|
527
527
|
...a
|
|
528
528
|
}, o) => (t = ke(t, "offcanvas-title"), /* @__PURE__ */ r(n, {
|
|
529
529
|
ref: o,
|
|
@@ -531,12 +531,12 @@ const fs = br("h5"), Eo = /* @__PURE__ */ we.forwardRef(({
|
|
|
531
531
|
...a
|
|
532
532
|
})));
|
|
533
533
|
Eo.displayName = "OffcanvasTitle";
|
|
534
|
-
function
|
|
534
|
+
function ps(e) {
|
|
535
535
|
return /* @__PURE__ */ r(Do, {
|
|
536
536
|
...e
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function gs(e) {
|
|
540
540
|
return /* @__PURE__ */ r(Ai, {
|
|
541
541
|
...e
|
|
542
542
|
});
|
|
@@ -574,7 +574,7 @@ const Oo = /* @__PURE__ */ we.forwardRef(({
|
|
|
574
574
|
}, P) => {
|
|
575
575
|
const O = ge();
|
|
576
576
|
e = ke(e, "offcanvas");
|
|
577
|
-
const [E, X] = L(!1), z = Oi(f), V =
|
|
577
|
+
const [E, X] = L(!1), z = Oi(f), V = ms(l || "xs", "up");
|
|
578
578
|
U(() => {
|
|
579
579
|
X(l ? i && !V : i);
|
|
580
580
|
}, [i, l, V]);
|
|
@@ -623,8 +623,8 @@ const Oo = /* @__PURE__ */ we.forwardRef(({
|
|
|
623
623
|
onExiting: N,
|
|
624
624
|
onExited: Q,
|
|
625
625
|
manager: B(),
|
|
626
|
-
transition:
|
|
627
|
-
backdropTransition:
|
|
626
|
+
transition: ps,
|
|
627
|
+
backdropTransition: gs,
|
|
628
628
|
renderBackdrop: ne,
|
|
629
629
|
renderDialog: ce
|
|
630
630
|
})
|
|
@@ -728,9 +728,9 @@ const Ro = /* @__PURE__ */ we.forwardRef(({
|
|
|
728
728
|
return p;
|
|
729
729
|
});
|
|
730
730
|
Ro.displayName = "Table";
|
|
731
|
-
const
|
|
731
|
+
const vs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
732
732
|
const { texts: { formSubmit: o } } = F(G);
|
|
733
|
-
return /* @__PURE__ */ g(
|
|
733
|
+
return /* @__PURE__ */ g(Hm, { noSpacer: n, children: [
|
|
734
734
|
/* @__PURE__ */ g(Ke, { as: "button", color: "primary", size: "lg", type: "submit", disabled: a, children: [
|
|
735
735
|
/* @__PURE__ */ r(Bi, {}),
|
|
736
736
|
e
|
|
@@ -751,7 +751,7 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
751
751
|
] }),
|
|
752
752
|
/* @__PURE__ */ r("input", { id: a, type: "file", accept: o, onChange: u, hidden: !0, multiple: c })
|
|
753
753
|
] });
|
|
754
|
-
},
|
|
754
|
+
}, kh = ({ onUpload: e, accept: t, children: n, className: a, size: o = "md" }) => {
|
|
755
755
|
const l = D(async (s) => {
|
|
756
756
|
if (s.target.files)
|
|
757
757
|
try {
|
|
@@ -764,11 +764,11 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
764
764
|
/* @__PURE__ */ r("label", { htmlFor: i, className: I("btn luminus-context-button text-primary", `btn-${o}`, a), children: n }),
|
|
765
765
|
/* @__PURE__ */ r("input", { id: i, type: "file", accept: t, onChange: l, hidden: !0 })
|
|
766
766
|
] });
|
|
767
|
-
},
|
|
768
|
-
select:
|
|
769
|
-
sm:
|
|
770
|
-
lg:
|
|
771
|
-
},
|
|
767
|
+
}, ys = "_select_14f33_1", bs = "_sm_14f33_11", ws = "_lg_14f33_23", yn = {
|
|
768
|
+
select: ys,
|
|
769
|
+
sm: bs,
|
|
770
|
+
lg: ws
|
|
771
|
+
}, Ns = ({ month: e, onChangeMonth: t, locale: n, yearMin: a = 2e3, yearMax: o = 2050, className: l, monthClassName: i, yearClassName: s, size: c }) => {
|
|
772
772
|
const d = D((f) => {
|
|
773
773
|
const p = Ml(e, f);
|
|
774
774
|
p.getFullYear() < a || p.getFullYear() > o || t(p);
|
|
@@ -792,7 +792,7 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
792
792
|
/* @__PURE__ */ r(J, { onClick: () => d(-1), disabled: e.getFullYear() < a || e.getFullYear() === a && e.getMonth() <= 0, children: /* @__PURE__ */ r(wr, {}) }),
|
|
793
793
|
/* @__PURE__ */ r(ie.Select, { value: e.getMonth(), onChange: (f) => {
|
|
794
794
|
var p;
|
|
795
|
-
return ((p = f.target) == null ? void 0 : p.value) && t(
|
|
795
|
+
return ((p = f.target) == null ? void 0 : p.value) && t(ns(e, Number(f.target.value)));
|
|
796
796
|
}, className: I(yn.select, yn.month, i), children: m.map((f) => /* @__PURE__ */ r("option", { value: f.id, children: f.name }, f.id)) }),
|
|
797
797
|
/* @__PURE__ */ r(ie.Select, { value: e.getFullYear(), onChange: (f) => {
|
|
798
798
|
var p;
|
|
@@ -800,9 +800,9 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
800
800
|
}, className: I(yn.select, s), children: u.map((f) => /* @__PURE__ */ r("option", { value: f, children: f }, f)) }),
|
|
801
801
|
/* @__PURE__ */ r(J, { onClick: () => d(1), disabled: e.getFullYear() > o || e.getFullYear() === o && e.getMonth() >= 11, children: /* @__PURE__ */ r(Nr, {}) })
|
|
802
802
|
] });
|
|
803
|
-
},
|
|
804
|
-
select:
|
|
805
|
-
}, ta = 2e3, na = 2050,
|
|
803
|
+
}, xs = "_select_pywmr_1", Ss = {
|
|
804
|
+
select: xs
|
|
805
|
+
}, ta = 2e3, na = 2050, Cs = ({ year: e, onChangeYear: t, className: n, variant: a = "standart", ...o }) => {
|
|
806
806
|
const l = j(() => {
|
|
807
807
|
var d;
|
|
808
808
|
return o.manualOptions ? ((d = o.options) == null ? void 0 : d.at(0)) ?? ta : o.optionMin ?? ta;
|
|
@@ -833,11 +833,11 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
833
833
|
/* @__PURE__ */ r(ie.Select, { value: e.getFullYear(), onChange: (d) => {
|
|
834
834
|
var u;
|
|
835
835
|
return ((u = d.target) == null ? void 0 : u.value) && t(dr(e, Number(d.target.value)));
|
|
836
|
-
}, className: I(
|
|
836
|
+
}, className: I(Ss.select, "bg-transparent"), children: s.map((d) => /* @__PURE__ */ r("option", { value: d, children: d }, d)) }),
|
|
837
837
|
/* @__PURE__ */ r(J, { onClick: () => c(1), disabled: e.getFullYear() >= i, children: /* @__PURE__ */ r(Nr, {}) })
|
|
838
838
|
] });
|
|
839
|
-
},
|
|
840
|
-
avatarIcon:
|
|
839
|
+
}, ks = "_avatar-icon_1axl6_1", Is = {
|
|
840
|
+
avatarIcon: ks
|
|
841
841
|
}, Ar = ({ name: e, fontSize: t, size: n }) => {
|
|
842
842
|
const a = j(() => {
|
|
843
843
|
const i = e.split(" ");
|
|
@@ -856,7 +856,7 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
856
856
|
}
|
|
857
857
|
return d;
|
|
858
858
|
};
|
|
859
|
-
return /* @__PURE__ */ r(Vi, { placement: "bottom", overlay: /* @__PURE__ */ r(Ui, { children: e }), children: /* @__PURE__ */ r("div", { className: I("luminus-avatar-icon",
|
|
859
|
+
return /* @__PURE__ */ r(Vi, { placement: "bottom", overlay: /* @__PURE__ */ r(Ui, { children: e }), children: /* @__PURE__ */ r("div", { className: I("luminus-avatar-icon", Is.avatarIcon), style: {
|
|
860
860
|
backgroundColor: l(a),
|
|
861
861
|
fontSize: t ?? void 0,
|
|
862
862
|
minHeight: n ?? void 0,
|
|
@@ -869,7 +869,7 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
869
869
|
}, ra = {
|
|
870
870
|
"eon-red": "#ea1b0a",
|
|
871
871
|
"eon-turquoise": "#1999aa"
|
|
872
|
-
},
|
|
872
|
+
}, _s = {
|
|
873
873
|
plain: {
|
|
874
874
|
fgColor: "black",
|
|
875
875
|
eyeColor: "black",
|
|
@@ -949,7 +949,7 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
949
949
|
eyeRadius: { inner: 100, outer: 100 },
|
|
950
950
|
qrStyle: "dots"
|
|
951
951
|
}
|
|
952
|
-
},
|
|
952
|
+
}, Ds = _s, Ts = ({ value: e, qrRef: t, variant: n = "blackRedEyes" }) => /* @__PURE__ */ r(Wi, { ref: t, value: e, eyeColor: ra["eon-red"], fgColor: ra["eon-turquoise"], logoHeight: 32, logoWidth: 32, removeQrCodeBehindLogo: !0, logoPadding: 5, logoPaddingStyle: "circle", ecLevel: "Q", ...Ds[n] }), Es = ({ value: e, contactType: t, className: n }) => {
|
|
953
953
|
const { ProjectIconComponent: a } = F(G), [o, l] = L(!1), i = D(() => {
|
|
954
954
|
l(!0);
|
|
955
955
|
}, []), s = D(() => {
|
|
@@ -967,11 +967,11 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
967
967
|
return /* @__PURE__ */ g(Z, { children: [
|
|
968
968
|
/* @__PURE__ */ r(J, { onClick: i, disabled: e === null, className: n, children: /* @__PURE__ */ r(a, { icon: "qr-code" }) }),
|
|
969
969
|
/* @__PURE__ */ r(re, { show: o, onHide: s, size: "sm", children: /* @__PURE__ */ g(re.Body, { className: "d-flex flex-column align-items-center", children: [
|
|
970
|
-
/* @__PURE__ */ r(
|
|
970
|
+
/* @__PURE__ */ r(Ts, { value: `${c}:${e}` }),
|
|
971
971
|
/* @__PURE__ */ r($, { variant: "subtitle", children: e })
|
|
972
972
|
] }) })
|
|
973
973
|
] });
|
|
974
|
-
},
|
|
974
|
+
}, Os = ({ contactType: e, value: t, className: n, children: a, showIconWithChildren: o }) => {
|
|
975
975
|
const { ProjectIconComponent: l } = F(G), i = j(() => {
|
|
976
976
|
switch (e) {
|
|
977
977
|
case "email":
|
|
@@ -1006,12 +1006,12 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
1006
1006
|
var p;
|
|
1007
1007
|
a && a(((p = f.target) == null ? void 0 : p.checked) ?? !1);
|
|
1008
1008
|
}, className: i ?? "", hidden: o ?? !1, disabled: l ?? !1 }) });
|
|
1009
|
-
},
|
|
1010
|
-
popoverContainer:
|
|
1011
|
-
textInput:
|
|
1012
|
-
btnsPopover:
|
|
1013
|
-
popoverHandle:
|
|
1014
|
-
btnsPopoverHideable:
|
|
1009
|
+
}, $s = "_popoverContainer_j6114_1", Ls = "_textInput_j6114_5", As = "_btnsPopover_j6114_9", Rs = "_popoverHandle_j6114_20", js = "_btnsPopoverHideable_j6114_27", Xt = {
|
|
1010
|
+
popoverContainer: $s,
|
|
1011
|
+
textInput: Ls,
|
|
1012
|
+
btnsPopover: As,
|
|
1013
|
+
popoverHandle: Rs,
|
|
1014
|
+
btnsPopoverHideable: js
|
|
1015
1015
|
}, Mo = ({ children: e, className: t, withoutLabel: n, label: a, contactType: o, value: l }) => {
|
|
1016
1016
|
const { ProjectIconComponent: i } = F(G);
|
|
1017
1017
|
return /* @__PURE__ */ g("div", { className: I("d-flex align-items-center", t), children: [
|
|
@@ -1020,14 +1020,14 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
1020
1020
|
/* @__PURE__ */ r("div", { className: Xt.textInput, children: e }),
|
|
1021
1021
|
/* @__PURE__ */ g("div", { className: I("d-flex gap-1", Xt.btnsPopover), children: [
|
|
1022
1022
|
/* @__PURE__ */ g("div", { className: I(Xt.btnsPopoverHideable, "p-1"), children: [
|
|
1023
|
-
/* @__PURE__ */ r(
|
|
1024
|
-
/* @__PURE__ */ r(
|
|
1023
|
+
/* @__PURE__ */ r(Es, { contactType: o, value: l }),
|
|
1024
|
+
/* @__PURE__ */ r(Os, { contactType: o, value: l })
|
|
1025
1025
|
] }),
|
|
1026
1026
|
/* @__PURE__ */ r("div", { role: "button", tabIndex: 0, className: Xt.popoverHandle, children: /* @__PURE__ */ r(i, { icon: "chevron-left" }) })
|
|
1027
1027
|
] })
|
|
1028
1028
|
] })
|
|
1029
1029
|
] });
|
|
1030
|
-
},
|
|
1030
|
+
}, Ih = ({ value: e, label: t, InputContainer: n = Ht, className: a, withoutLabel: o, hidden: l, disabled: i, contactType: s, ...c }) => l ? null : /* @__PURE__ */ r(Mo, { contactType: s, value: e, withoutLabel: o, label: t, className: a, children: /* @__PURE__ */ r(Be, { type: "text", value: e, disabled: i, InputContainer: n, size: "sm", withoutLabel: !0, ...c }) }), _h = ({ InputContainer: e = Ht, items: t, selectedItemNavigateTo: n, onSearchQueryChange: a, texts: o, isLoading: l, value: i, onSelect: s, label: c, withoutLabel: d, size: u, dropdownItemsNameWidth: m, additionalColumns: f, hidden: p, disabled: h, displayIdAsName: w, CustomOnChangeComponent: v, className: b, archiveColumn: x, icon: C, hint: N, addNewOptionPath: y, refreshOptions: S, MiniDetailComponent: _, miniDetailPlacement: k, suggestedItems: A, suggestedItemsTitle: T }) => {
|
|
1031
1031
|
const [M, P] = L(!1), O = D((B) => {
|
|
1032
1032
|
s && s(B);
|
|
1033
1033
|
}, [s]), E = D((B) => {
|
|
@@ -1073,7 +1073,7 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
1073
1073
|
] }),
|
|
1074
1074
|
X.current && /* @__PURE__ */ r(Cr, { show: M, onCancel: () => P(!1), items: t, currentSelection: i, onSelectionChange: E, onSearchQueryChange: a, texts: o, itemsNameWidth: m, additionalColumns: f, isLoading: l, disabled: h, inputRef: X, archiveColumn: x, displayIdAsName: w, addNewOptionPath: y, refreshOptions: S, suggestedItems: A, suggestedItemsTitle: T })
|
|
1075
1075
|
] }) });
|
|
1076
|
-
},
|
|
1076
|
+
}, Dh = ({ InputContainer: e = Ht, value: t, onChange: n, label: a, size: o, showClearIcon: l, clearValue: i, hidden: s, disabled: c, rows: d, withoutLabel: u, debounceMs: m, minLength: f, maxLength: p, className: h, hint: w }) => {
|
|
1077
1077
|
const v = D(() => {
|
|
1078
1078
|
if (!n)
|
|
1079
1079
|
return;
|
|
@@ -1099,7 +1099,7 @@ const gs = ({ children: e, onStorno: t, noSpacer: n, disabled: a }) => {
|
|
|
1099
1099
|
/* @__PURE__ */ r(ie.Control, { as: "textarea", size: o, value: m ? x : t ?? "", onChange: y, hidden: s, disabled: c, rows: d ?? 2, className: "w-100", minLength: f, maxLength: p }),
|
|
1100
1100
|
l && t && n && !c && /* @__PURE__ */ r("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r(J, { color: "secondary", size: "sm", onClick: v, children: /* @__PURE__ */ r(ht, {}) }) })
|
|
1101
1101
|
] });
|
|
1102
|
-
},
|
|
1102
|
+
}, Th = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, label: o, withoutLabel: l, placeholder: i, size: s, hidden: c, disabled: d, showClearIcon: u, clearValue: m, className: f, step: p, stepperStep: h = 1, min: w, max: v, hint: b }) => {
|
|
1103
1103
|
const x = D(() => {
|
|
1104
1104
|
if (!n)
|
|
1105
1105
|
return;
|
|
@@ -1147,7 +1147,7 @@ var ln;
|
|
|
1147
1147
|
})(ln || (ln = {}));
|
|
1148
1148
|
function ut() {
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Ms(e) {
|
|
1151
1151
|
var t, n = void 0;
|
|
1152
1152
|
return function() {
|
|
1153
1153
|
for (var a = [], o = arguments.length; o--; ) a[o] = arguments[o];
|
|
@@ -1162,16 +1162,16 @@ function sn(e) {
|
|
|
1162
1162
|
function Mt(e) {
|
|
1163
1163
|
return e == null;
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function Ps(e) {
|
|
1166
1166
|
return typeof e == "number" && isNaN(e);
|
|
1167
1167
|
}
|
|
1168
1168
|
function Fo(e) {
|
|
1169
|
-
return Mt(e) ||
|
|
1169
|
+
return Mt(e) || Ps(e) || typeof e == "number" && !isFinite(e);
|
|
1170
1170
|
}
|
|
1171
1171
|
function Bo(e) {
|
|
1172
1172
|
return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Fs(e) {
|
|
1175
1175
|
switch (e) {
|
|
1176
1176
|
case "lakh":
|
|
1177
1177
|
return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
|
|
@@ -1182,11 +1182,11 @@ function Ps(e) {
|
|
|
1182
1182
|
return /(\d)(?=(\d{3})+(?!\d))/g;
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1186
|
-
var a =
|
|
1185
|
+
function Bs(e, t, n) {
|
|
1186
|
+
var a = Fs(n), o = e.search(/[1-9]/);
|
|
1187
1187
|
return o = o === -1 ? e.length : o, e.substring(0, o) + e.substring(o, e.length).replace(a, "$1" + t);
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function zs(e) {
|
|
1190
1190
|
var t = ge(e);
|
|
1191
1191
|
t.current = e;
|
|
1192
1192
|
var n = ge(function() {
|
|
@@ -1207,7 +1207,7 @@ function Rr(e, t) {
|
|
|
1207
1207
|
addNegation: a
|
|
1208
1208
|
};
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function Hs(e) {
|
|
1211
1211
|
if (!e)
|
|
1212
1212
|
return e;
|
|
1213
1213
|
var t = e[0] === "-";
|
|
@@ -1243,7 +1243,7 @@ function oa(e, t, n) {
|
|
|
1243
1243
|
var f = zo(u[1] || "", t, n), p = s ? "-" : "", h = a ? "." : "";
|
|
1244
1244
|
return "" + p + m + h + f;
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function Ct(e, t) {
|
|
1247
1247
|
if (e.value = e.value, e !== null) {
|
|
1248
1248
|
if (e.createTextRange) {
|
|
1249
1249
|
var n = e.createTextRange();
|
|
@@ -1252,7 +1252,7 @@ function kt(e, t) {
|
|
|
1252
1252
|
return e.selectionStart || e.selectionStart === 0 ? (e.focus(), e.setSelectionRange(t, t), !0) : (e.focus(), !1);
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
|
-
var Vo =
|
|
1255
|
+
var Vo = Ms(function(e, t) {
|
|
1256
1256
|
for (var n = 0, a = 0, o = e.length, l = t.length; e[n] === t[n] && n < o; )
|
|
1257
1257
|
n++;
|
|
1258
1258
|
for (; e[o - 1 - a] === t[l - 1 - a] && l - a > n && o - a > n; )
|
|
@@ -1261,23 +1261,23 @@ var Vo = js(function(e, t) {
|
|
|
1261
1261
|
from: { start: n, end: o - a },
|
|
1262
1262
|
to: { start: n, end: l - a }
|
|
1263
1263
|
};
|
|
1264
|
-
}),
|
|
1264
|
+
}), Vs = function(e, t) {
|
|
1265
1265
|
var n = Math.min(e.selectionStart, t);
|
|
1266
1266
|
return {
|
|
1267
1267
|
from: { start: n, end: e.selectionEnd },
|
|
1268
1268
|
to: { start: n, end: t }
|
|
1269
1269
|
};
|
|
1270
1270
|
};
|
|
1271
|
-
function
|
|
1271
|
+
function Us(e, t, n) {
|
|
1272
1272
|
return Math.min(Math.max(e, t), n);
|
|
1273
1273
|
}
|
|
1274
1274
|
function Kn(e) {
|
|
1275
1275
|
return Math.max(e.selectionStart, e.selectionEnd);
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function Ws() {
|
|
1278
1278
|
return typeof navigator < "u" && !(navigator.platform && /iPhone|iPod/.test(navigator.platform));
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function Gs(e) {
|
|
1281
1281
|
return {
|
|
1282
1282
|
from: {
|
|
1283
1283
|
start: 0,
|
|
@@ -1290,12 +1290,12 @@ function Ws(e) {
|
|
|
1290
1290
|
lastValue: ""
|
|
1291
1291
|
};
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function Ys(e) {
|
|
1294
1294
|
var t = e.currentValue, n = e.formattedValue, a = e.currentValueIndex, o = e.formattedValueIndex;
|
|
1295
1295
|
return t[a] === n[o];
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1298
|
-
i === void 0 && (i =
|
|
1297
|
+
function qs(e, t, n, a, o, l, i) {
|
|
1298
|
+
i === void 0 && (i = Ys);
|
|
1299
1299
|
var s = o.findIndex(function(N) {
|
|
1300
1300
|
return N;
|
|
1301
1301
|
}), c = e.slice(0, s);
|
|
@@ -1326,7 +1326,7 @@ function Ys(e, t, n, a, o, l, i) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
function ia(e, t, n, a) {
|
|
1328
1328
|
var o = e.length;
|
|
1329
|
-
if (t =
|
|
1329
|
+
if (t = Us(t, 0, o), a === "left") {
|
|
1330
1330
|
for (; t >= 0 && !n[t]; )
|
|
1331
1331
|
t--;
|
|
1332
1332
|
t === -1 && (t = n.indexOf(!0));
|
|
@@ -1337,7 +1337,7 @@ function ia(e, t, n, a) {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
return t === -1 && (t = o), t;
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function Ks(e) {
|
|
1341
1341
|
for (var t = Array.from({ length: e.length + 1 }).map(function() {
|
|
1342
1342
|
return !0;
|
|
1343
1343
|
}), n = 0, a = t.length; n < a; n++)
|
|
@@ -1346,7 +1346,7 @@ function qs(e) {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
function Uo(e, t, n, a, o, l) {
|
|
1348
1348
|
l === void 0 && (l = ut);
|
|
1349
|
-
var i =
|
|
1349
|
+
var i = zs(function(h, w) {
|
|
1350
1350
|
var v, b;
|
|
1351
1351
|
return Fo(h) ? (b = "", v = "") : typeof h == "number" || w ? (b = typeof h == "number" ? Ho(h) : h, v = a(b)) : (b = o(h, void 0), v = a(b)), { formattedValue: v, numAsString: b };
|
|
1352
1352
|
}), s = L(function() {
|
|
@@ -1363,21 +1363,21 @@ function Uo(e, t, n, a, o, l) {
|
|
|
1363
1363
|
d(p);
|
|
1364
1364
|
}, [p.formattedValue]), [c, u];
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function Qs(e) {
|
|
1367
1367
|
return e.replace(/[^0-9]/g, "");
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function Xs(e) {
|
|
1370
1370
|
return e;
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function Zs(e) {
|
|
1373
1373
|
var t = e.type;
|
|
1374
1374
|
t === void 0 && (t = "text");
|
|
1375
1375
|
var n = e.displayType;
|
|
1376
1376
|
n === void 0 && (n = "input");
|
|
1377
1377
|
var a = e.customInput, o = e.renderText, l = e.getInputRef, i = e.format;
|
|
1378
|
-
i === void 0 && (i =
|
|
1378
|
+
i === void 0 && (i = Xs);
|
|
1379
1379
|
var s = e.removeFormatting;
|
|
1380
|
-
s === void 0 && (s =
|
|
1380
|
+
s === void 0 && (s = Qs);
|
|
1381
1381
|
var c = e.defaultValue, d = e.valueIsNumericString, u = e.onValueChange, m = e.isAllowed, f = e.onChange;
|
|
1382
1382
|
f === void 0 && (f = ut);
|
|
1383
1383
|
var p = e.onKeyDown;
|
|
@@ -1389,7 +1389,7 @@ function Xs(e) {
|
|
|
1389
1389
|
var v = e.onBlur;
|
|
1390
1390
|
v === void 0 && (v = ut);
|
|
1391
1391
|
var b = e.value, x = e.getCaretBoundary;
|
|
1392
|
-
x === void 0 && (x =
|
|
1392
|
+
x === void 0 && (x = Ks);
|
|
1393
1393
|
var C = e.isValidInputCharacter;
|
|
1394
1394
|
C === void 0 && (C = sn);
|
|
1395
1395
|
var N = e.isCharacterSame, y = Po(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = Uo(b, c, !!d, i, s, u), _ = S[0], k = _.formattedValue, A = _.numAsString, T = S[1], M = ge(), P = ge({ formattedValue: k, numAsString: A }), O = function(q, K) {
|
|
@@ -1411,13 +1411,13 @@ function Xs(e) {
|
|
|
1411
1411
|
floatValue: isNaN(Y) ? void 0 : Y
|
|
1412
1412
|
};
|
|
1413
1413
|
}, Q = function(q, K, Y) {
|
|
1414
|
-
q.selectionStart === 0 && q.selectionEnd === q.value.length || (
|
|
1415
|
-
q.value === Y && q.selectionStart !== K &&
|
|
1414
|
+
q.selectionStart === 0 && q.selectionEnd === q.value.length || (Ct(q, K), R.current.setCaretTimeout = setTimeout(function() {
|
|
1415
|
+
q.value === Y && q.selectionStart !== K && Ct(q, K);
|
|
1416
1416
|
}, 0));
|
|
1417
1417
|
}, ne = function(q, K, Y) {
|
|
1418
1418
|
return ia(q, K, x(q), Y);
|
|
1419
1419
|
}, ce = function(q, K, Y) {
|
|
1420
|
-
var ae = x(K), be =
|
|
1420
|
+
var ae = x(K), be = qs(K, k, q, Y, ae, C, N);
|
|
1421
1421
|
return be = ia(K, be, ae), be;
|
|
1422
1422
|
}, le = function(q) {
|
|
1423
1423
|
var K = q.formattedValue;
|
|
@@ -1445,7 +1445,7 @@ function Xs(e) {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
}, [k]);
|
|
1447
1447
|
var oe = function(q, K, Y) {
|
|
1448
|
-
var ae = K.target, be = M.current ?
|
|
1448
|
+
var ae = K.target, be = M.current ? Vs(M.current, ae.selectionEnd) : Vo(k, q), fe = Object.assign(Object.assign({}, be), { lastValue: k }), se = s(q, fe), Pe = B(se);
|
|
1449
1449
|
if (se = s(Pe, void 0), m && !m(H(Pe, se))) {
|
|
1450
1450
|
var He = K.target, Ve = Kn(He), Ot = ce(q, k, Ve);
|
|
1451
1451
|
return He.value = k, Q(He, Ot, k), !1;
|
|
@@ -1505,7 +1505,7 @@ function Xs(e) {
|
|
|
1505
1505
|
}, 0);
|
|
1506
1506
|
}, Me = function(q) {
|
|
1507
1507
|
V.current = null, clearTimeout(R.current.focusTimeout), clearTimeout(R.current.setCaretTimeout), v(q);
|
|
1508
|
-
},
|
|
1508
|
+
}, yt = X && Ws() ? "numeric" : void 0, it = Object.assign({ inputMode: yt }, y, {
|
|
1509
1509
|
type: t,
|
|
1510
1510
|
value: k,
|
|
1511
1511
|
onChange: Ie,
|
|
@@ -1531,7 +1531,7 @@ function la(e, t) {
|
|
|
1531
1531
|
if (s === void 0 && (s = "thousand"), e === "" || e === "-")
|
|
1532
1532
|
return e;
|
|
1533
1533
|
var c = Hn(t), d = c.thousandSeparator, u = c.decimalSeparator, m = n !== 0 && e.indexOf(".") !== -1 || n && a, f = Rr(e, i), p = f.beforeDecimal, h = f.afterDecimal, w = f.addNegation;
|
|
1534
|
-
return n !== void 0 && (h = zo(h, n, !!a)), d && (p =
|
|
1534
|
+
return n !== void 0 && (h = zo(h, n, !!a)), d && (p = Bs(p, d, s)), o && (p = o + p), l && (h = h + l), w && (p = "-" + p), e = p + (m && u || "") + h, e;
|
|
1535
1535
|
}
|
|
1536
1536
|
function Hn(e) {
|
|
1537
1537
|
var t = e.decimalSeparator;
|
|
@@ -1543,20 +1543,20 @@ function Hn(e) {
|
|
|
1543
1543
|
allowedDecimalSeparators: a
|
|
1544
1544
|
};
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function Js(e, t) {
|
|
1547
1547
|
e === void 0 && (e = "");
|
|
1548
1548
|
var n = new RegExp("(-)"), a = new RegExp("(-)(.)*(-)"), o = n.test(e), l = a.test(e);
|
|
1549
1549
|
return e = e.replace(/-/g, ""), o && !l && t && (e = "-" + e), e;
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1551
|
+
function ec(e, t) {
|
|
1552
1552
|
return new RegExp("(^-)|[0-9]|" + Bo(e), "g");
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function tc(e, t, n) {
|
|
1555
1555
|
return e === "" ? !0 : !(t != null && t.match(/\d/)) && !(n != null && n.match(/\d/)) && typeof e == "string" && !isNaN(Number(e));
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1557
|
+
function nc(e, t, n) {
|
|
1558
1558
|
var a;
|
|
1559
|
-
t === void 0 && (t =
|
|
1559
|
+
t === void 0 && (t = Gs(e));
|
|
1560
1560
|
var o = n.allowNegative, l = n.prefix;
|
|
1561
1561
|
l === void 0 && (l = "");
|
|
1562
1562
|
var i = n.suffix;
|
|
@@ -1580,7 +1580,7 @@ function tc(e, t, n) {
|
|
|
1580
1580
|
var A = 0;
|
|
1581
1581
|
e.startsWith(l) ? A += l.length : u < l.length && (A = u), e = e.substring(A), m -= A;
|
|
1582
1582
|
var T = e.length, M = e.length - i.length;
|
|
1583
|
-
e.endsWith(i) ? T = M : (m > M || m > e.length - i.length) && (T = m), e = e.substring(0, T), e =
|
|
1583
|
+
e.endsWith(i) ? T = M : (m > M || m > e.length - i.length) && (T = m), e = e.substring(0, T), e = Js(C ? "-" + e : e, o), e = (e.match(ec(h)) || []).join("");
|
|
1584
1584
|
var P = e.indexOf(h);
|
|
1585
1585
|
e = e.replace(new RegExp(Bo(h), "g"), function(V, R) {
|
|
1586
1586
|
return R === P ? "." : "";
|
|
@@ -1588,7 +1588,7 @@ function tc(e, t, n) {
|
|
|
1588
1588
|
var O = Rr(e, o), E = O.beforeDecimal, X = O.afterDecimal, z = O.addNegation;
|
|
1589
1589
|
return d.end - d.start < c.end - c.start && E === "" && w && !parseFloat(X) && (e = z ? "-" : ""), e;
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1591
|
+
function rc(e, t) {
|
|
1592
1592
|
var n = t.prefix;
|
|
1593
1593
|
n === void 0 && (n = "");
|
|
1594
1594
|
var a = t.suffix;
|
|
@@ -1600,7 +1600,7 @@ function nc(e, t) {
|
|
|
1600
1600
|
var i = e.length;
|
|
1601
1601
|
return o.fill(!1, i - a.length + 1, i + 1), o;
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function ac(e) {
|
|
1604
1604
|
var t = Hn(e), n = t.thousandSeparator, a = t.decimalSeparator, o = e.prefix;
|
|
1605
1605
|
o === void 0 && (o = "");
|
|
1606
1606
|
var l = e.allowNegative;
|
|
@@ -1616,8 +1616,8 @@ function rc(e) {
|
|
|
1616
1616
|
allowNegative: ` + l + `
|
|
1617
1617
|
`), l = !1), Object.assign(Object.assign({}, e), { allowNegative: l });
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1620
|
-
e =
|
|
1619
|
+
function oc(e) {
|
|
1620
|
+
e = ac(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
|
|
1621
1621
|
var t = e.suffix, n = e.allowNegative, a = e.allowLeadingZeros, o = e.onKeyDown;
|
|
1622
1622
|
o === void 0 && (o = ut);
|
|
1623
1623
|
var l = e.onBlur;
|
|
@@ -1627,8 +1627,8 @@ function ac(e) {
|
|
|
1627
1627
|
var u = e.defaultValue, m = e.value, f = e.valueIsNumericString, p = e.onValueChange, h = Po(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), w = Hn(e), v = w.decimalSeparator, b = w.allowedDecimalSeparators, x = function(z) {
|
|
1628
1628
|
return la(z, e);
|
|
1629
1629
|
}, C = function(z, V) {
|
|
1630
|
-
return
|
|
1631
|
-
}, N = Mt(m) ? u : m, y = f ??
|
|
1630
|
+
return nc(z, V, e);
|
|
1631
|
+
}, N = Mt(m) ? u : m, y = f ?? tc(N, d, t);
|
|
1632
1632
|
Mt(m) ? Mt(u) || (y = y || typeof u == "number") : y = y || typeof m == "number";
|
|
1633
1633
|
var S = function(z) {
|
|
1634
1634
|
return Fo(z) ? z : (typeof z == "number" && (z = Ho(z)), y && typeof s == "number" ? oa(z, s, !!c) : z);
|
|
@@ -1642,12 +1642,12 @@ function ac(e) {
|
|
|
1642
1642
|
o(z);
|
|
1643
1643
|
return;
|
|
1644
1644
|
}
|
|
1645
|
-
R === "Backspace" && Q[0] === "-" && B === d.length + 1 && n &&
|
|
1645
|
+
R === "Backspace" && Q[0] === "-" && B === d.length + 1 && n && Ct(V, 1), s && c && (R === "Backspace" && Q[B - 1] === v ? (Ct(V, B - 1), z.preventDefault()) : R === "Delete" && Q[B] === v && z.preventDefault()), b != null && b.includes(R) && Q[B] === v && Ct(V, B + 1);
|
|
1646
1646
|
var ne = i === !0 ? "," : i;
|
|
1647
|
-
R === "Backspace" && Q[B - 1] === ne &&
|
|
1647
|
+
R === "Backspace" && Q[B - 1] === ne && Ct(V, B - 1), R === "Delete" && Q[B] === ne && Ct(V, B + 1), o(z);
|
|
1648
1648
|
}, O = function(z) {
|
|
1649
1649
|
var V = A;
|
|
1650
|
-
if (V.match(/\d/g) || (V = ""), a || (V =
|
|
1650
|
+
if (V.match(/\d/g) || (V = ""), a || (V = Hs(V)), c && s && (V = oa(V, s, c)), V !== A) {
|
|
1651
1651
|
var R = la(V, e);
|
|
1652
1652
|
M({
|
|
1653
1653
|
formattedValue: R,
|
|
@@ -1676,17 +1676,17 @@ function ac(e) {
|
|
|
1676
1676
|
format: x,
|
|
1677
1677
|
removeFormatting: C,
|
|
1678
1678
|
getCaretBoundary: function(z) {
|
|
1679
|
-
return
|
|
1679
|
+
return rc(z, e);
|
|
1680
1680
|
},
|
|
1681
1681
|
onKeyDown: P,
|
|
1682
1682
|
onBlur: O
|
|
1683
1683
|
});
|
|
1684
1684
|
}
|
|
1685
1685
|
function jr(e) {
|
|
1686
|
-
var t =
|
|
1687
|
-
return Le.createElement(
|
|
1686
|
+
var t = oc(e);
|
|
1687
|
+
return Le.createElement(Zs, Object.assign({}, t));
|
|
1688
1688
|
}
|
|
1689
|
-
const
|
|
1689
|
+
const ic = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, label: o, withoutLabel: l, placeholder: i, size: s, hidden: c, disabled: d, showClearIcon: u, clearValue: m, className: f, step: p, noSelectOnFocus: h, decimalScale: w, fixedDecimalScale: v = !1, numberPrefix: b, numberSuffix: x, min: C, max: N, hint: y }) => {
|
|
1690
1690
|
const S = D(() => {
|
|
1691
1691
|
if (!n)
|
|
1692
1692
|
return;
|
|
@@ -1720,13 +1720,13 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
1720
1720
|
}), step: p, min: C, max: N }),
|
|
1721
1721
|
u && t !== null && n && !d && /* @__PURE__ */ r("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r(J, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ r(ht, {}) }) })
|
|
1722
1722
|
] });
|
|
1723
|
-
},
|
|
1723
|
+
}, lc = ({ InputContainer: e = Se, label: t, options: n, disabled: a, hidden: o, className: l, value: i, onChange: s }) => {
|
|
1724
1724
|
const c = D((d) => {
|
|
1725
1725
|
s && s(d.target.value);
|
|
1726
1726
|
}, [s]);
|
|
1727
1727
|
return /* @__PURE__ */ r(e, { isForRadioInput: !0, hidden: o, withoutLabel: !t, label: `${t}`, className: l, disabled: a, children: n.map((d) => /* @__PURE__ */ r(ie.Check, { id: `radio-${d.id}`, label: d.name, type: "radio", value: d.id ?? "", checked: i === d.id, onChange: c, hidden: o, disabled: a, className: "w-100" }, d.id)) });
|
|
1728
|
-
},
|
|
1729
|
-
const { register: f, formState: { errors: p, isSubmitted: h }, setValue: w } =
|
|
1728
|
+
}, Eh = ({ InputContainer: e = Se, formField: t, label: n, resetsFields: a, type: o, required: l, hidden: i, disabled: s, withoutLabel: c, hint: d, onChange: u, className: m }) => {
|
|
1729
|
+
const { register: f, formState: { errors: p, isSubmitted: h }, setValue: w } = Et(), v = at({ falseIfNotInit: !0 }), [b, x] = L(void 0), [C, N] = L(!1);
|
|
1730
1730
|
U(() => {
|
|
1731
1731
|
const _ = t.split(".");
|
|
1732
1732
|
let k = p;
|
|
@@ -1743,10 +1743,10 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
1743
1743
|
a && a.forEach((k) => w(k, null, { shouldDirty: !0, shouldValidate: C })), u && u(_.target.value ?? null);
|
|
1744
1744
|
}
|
|
1745
1745
|
}), isInvalid: S, hidden: i, disabled: y, className: "w-100" }),
|
|
1746
|
-
b && /* @__PURE__ */ r(
|
|
1746
|
+
b && /* @__PURE__ */ r(_t, { message: b.message })
|
|
1747
1747
|
] });
|
|
1748
|
-
},
|
|
1749
|
-
const { register: u, formState: { errors: m, isSubmitted: f }, setValue: p } =
|
|
1748
|
+
}, Oh = ({ InputContainer: e = Se, label: t, formField: n, options: a, resetsFields: o, required: l, disabled: i, hidden: s, onChange: c, className: d }) => {
|
|
1749
|
+
const { register: u, formState: { errors: m, isSubmitted: f }, setValue: p } = Et(), h = at({ falseIfNotInit: !0 }), [w, v] = L(void 0), [b, x] = L(!1), C = j(() => a, [a]), N = j(() => i || h, [i, h]);
|
|
1750
1750
|
U(() => {
|
|
1751
1751
|
const _ = n.split(".");
|
|
1752
1752
|
let k = m;
|
|
@@ -1764,13 +1764,13 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
1764
1764
|
o && o.forEach((T) => p(T, null, { shouldDirty: !0, shouldValidate: b })), c && c((A = k.target) != null && A.value ? k.target.value.toString() : null);
|
|
1765
1765
|
}
|
|
1766
1766
|
}), isInvalid: y, hidden: s, disabled: N, className: "w-100" }, _.id)),
|
|
1767
|
-
w && /* @__PURE__ */ r(
|
|
1767
|
+
w && /* @__PURE__ */ r(_t, { message: w.message })
|
|
1768
1768
|
] });
|
|
1769
|
-
},
|
|
1769
|
+
}, $h = ({ label: e, InputContainer: t = Se, className: n, withoutLabel: a, hidden: o, disabled: l, contactType: i, formField: s, ...c }) => {
|
|
1770
1770
|
const d = ft({ name: s }), u = at({ falseIfNotInit: !0 }), m = j(() => l || u, [l, u]);
|
|
1771
1771
|
return o ? null : /* @__PURE__ */ r(Mo, { contactType: i, value: d, withoutLabel: a, label: e, className: n, children: /* @__PURE__ */ r(Ft, { type: "text", formField: s, InputContainer: t, size: "sm", withoutLabel: !0, className: "flex-grow-1", disabled: m, ...c }) });
|
|
1772
|
-
},
|
|
1773
|
-
const { formState: { errors: X, isSubmitted: z }, setValue: V, control: R } =
|
|
1772
|
+
}, Lh = ({ InputContainer: e = Se, formField: t, label: n, size: a, defaultSelection: o, resetsFields: l, isNumber: i, required: s, hidden: c, disabled: d, items: u, onSearchQueryChange: m, selectedItemNavigateTo: f, texts: p, dropdownItemsNameWidth: h, isLoading: w, withoutLabel: v, additionalColumns: b, CustomOnChangeComponent: x, icon: C, displayIdAsName: N, onSelect: y, className: S, archiveColumn: _, hint: k, addNewOptionPath: A, refreshOptions: T, MiniDetailComponent: M, miniDetailPlacement: P, suggestedItems: O, suggestedItemsTitle: E }) => {
|
|
1773
|
+
const { formState: { errors: X, isSubmitted: z }, setValue: V, control: R } = Et(), B = at({ falseIfNotInit: !0 }), [H, Q] = L(void 0), [ne, ce] = L(!1), [le, xe] = L(!1), W = ft({ name: t }) ?? null, oe = ft({ name: `${t}-DropdownName` }), ye = W === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : oe, Ie = j(() => W == null ? null : { id: W ?? null, name: ye ?? "" }, [W, ye]), pe = D(() => {
|
|
1774
1774
|
const Y = t.split(".");
|
|
1775
1775
|
let ae = X;
|
|
1776
1776
|
Y.forEach((be) => {
|
|
@@ -1795,7 +1795,7 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
1795
1795
|
ce(!1), ee(Y);
|
|
1796
1796
|
}, [ee]), Me = D(() => {
|
|
1797
1797
|
ce(!1);
|
|
1798
|
-
}, []),
|
|
1798
|
+
}, []), yt = ge(null), it = H !== void 0, Je = f !== void 0, q = Je && Ie !== null, K = j(() => d || B, [d, B]);
|
|
1799
1799
|
return U(() => {
|
|
1800
1800
|
pe();
|
|
1801
1801
|
}, [pe]), U(() => {
|
|
@@ -1807,7 +1807,7 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
1807
1807
|
Y.currentTarget.focus(), Y.preventDefault();
|
|
1808
1808
|
}, onClick: () => {
|
|
1809
1809
|
!Je && !K && ce(!0);
|
|
1810
|
-
}, ref:
|
|
1810
|
+
}, ref: yt, value: W ?? "", onChange: () => {
|
|
1811
1811
|
}, isInvalid: it, hidden: c, className: I("w-100", {
|
|
1812
1812
|
"luminus-dropdown-picker-disabled": K,
|
|
1813
1813
|
"luminus-dropdown-picker-link": q
|
|
@@ -1819,11 +1819,11 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
1819
1819
|
x ?? null
|
|
1820
1820
|
] }) : null
|
|
1821
1821
|
] }),
|
|
1822
|
-
H && /* @__PURE__ */ r(
|
|
1823
|
-
|
|
1822
|
+
H && /* @__PURE__ */ r(_t, { message: H.message }),
|
|
1823
|
+
yt.current && /* @__PURE__ */ r(Cr, { show: ne, onCancel: Me, items: u, currentSelection: Ie, onSelectionChange: me, onSearchQueryChange: m, texts: p, itemsNameWidth: h, additionalColumns: b, displayIdAsName: N, isLoading: w, disabled: K, inputRef: yt, archiveColumn: _, addNewOptionPath: A, refreshOptions: T, suggestedItems: O, suggestedItemsTitle: E })
|
|
1824
1824
|
] }) });
|
|
1825
|
-
},
|
|
1826
|
-
const { setValue: h, register: w, formState: { errors: v, isSubmitted: b } } =
|
|
1825
|
+
}, Ah = ({ InputContainer: e = Se, label: t, formField: n, hidden: a, required: o, placeholder: l, disabled: i, showClearIcon: s, resetsFields: c, multiple: d, accept: u, withoutLabel: m, hint: f, className: p }) => {
|
|
1826
|
+
const { setValue: h, register: w, formState: { errors: v, isSubmitted: b } } = Et(), x = at({ falseIfNotInit: !0 }), [C, N] = L(!1), [y, S] = L(void 0), _ = D(() => {
|
|
1827
1827
|
h(n, "");
|
|
1828
1828
|
}, [h, n]), k = D(() => {
|
|
1829
1829
|
const P = n.split(".");
|
|
@@ -1843,14 +1843,13 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
1843
1843
|
}
|
|
1844
1844
|
}) }),
|
|
1845
1845
|
s && M != null && /* @__PURE__ */ r("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r(J, { color: "secondary", size: "sm", onClick: _, children: /* @__PURE__ */ r(ht, {}) }) }),
|
|
1846
|
-
y && /* @__PURE__ */ r(
|
|
1846
|
+
y && /* @__PURE__ */ r(_t, { message: y.message })
|
|
1847
1847
|
] });
|
|
1848
|
-
},
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
return j(() => Object.keys(a).length > 0, [a]) ? /* @__PURE__ */ r(gs, { onStorno: t, noSpacer: n, disabled: o, children: e }) : null;
|
|
1848
|
+
}, sc = ({ children: e, onStorno: t, noSpacer: n }) => {
|
|
1849
|
+
const { isDirty: a } = Ul(), o = at({ falseIfNotInit: !0 });
|
|
1850
|
+
return a ? /* @__PURE__ */ r(vs, { onStorno: t, noSpacer: n, disabled: o, children: e }) : null;
|
|
1852
1851
|
}, mr = ({ InputContainer: e = Se, options: t, formField: n, label: a, size: o, resetsFields: l, isNumber: i, required: s, hidden: c, disabled: d, withoutLabel: u, noSortOptions: m, suffixIdToName: f, onSelect: p, className: h, appendCurrentSelectionWithName: w, hint: v, addNewOptionPath: b, refreshOptions: x, MiniDetailComponent: C, miniDetailPlacement: N, selectedItemNavigateTo: y }) => {
|
|
1853
|
-
const { texts: { customSelect: S } } = F(G), { formState: { errors: _, isSubmitted: k }, setValue: A, control: T } =
|
|
1852
|
+
const { texts: { customSelect: S } } = F(G), { formState: { errors: _, isSubmitted: k }, setValue: A, control: T } = Et(), M = at({ falseIfNotInit: !0 }), [P, O] = L(void 0), [E, X] = L(!1), [z, V] = L(!1), [R, B] = L(""), H = ft({ name: n }), Q = j(() => t.find((ee) => ee.id === H) ?? null, [t, H]), ne = D(() => {
|
|
1854
1853
|
const ee = n.split(".");
|
|
1855
1854
|
let me = _;
|
|
1856
1855
|
ee.forEach((Me) => {
|
|
@@ -1905,11 +1904,11 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
1905
1904
|
X(!0);
|
|
1906
1905
|
}, ref: Ie, value: H ?? "", onChange: () => {
|
|
1907
1906
|
}, isInvalid: pe, hidden: c, disabled: W, className: "w-100", children: /* @__PURE__ */ r("option", { value: (Q == null ? void 0 : Q.id) ?? "", children: oe(Q) }) }) }) }) }),
|
|
1908
|
-
P && /* @__PURE__ */ r(
|
|
1907
|
+
P && /* @__PURE__ */ r(_t, { message: P.message }),
|
|
1909
1908
|
Ie.current && /* @__PURE__ */ r(Cr, { show: E, onCancel: () => X(!1), items: ye, currentSelection: Q ?? null, onSelectionChange: le, onSearchQueryChange: xe, texts: S, disabled: W, inputRef: Ie, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: b, refreshOptions: x })
|
|
1910
1909
|
] }) });
|
|
1911
|
-
},
|
|
1912
|
-
const { register: C, formState: { errors: N, isSubmitted: y }, setValue: S } =
|
|
1910
|
+
}, Rh = ({ InputContainer: e = Se, formField: t, label: n, placeholder: a, size: o, resetsFields: l, showClearIcon: i, clearValue: s, required: c, hidden: d, disabled: u, withoutLabel: m, step: f, stepperStep: p = 1, className: h, min: w, max: v, onChange: b, hint: x }) => {
|
|
1911
|
+
const { register: C, formState: { errors: N, isSubmitted: y }, setValue: S } = Et(), _ = at({ falseIfNotInit: !0 }), [k, A] = L(void 0), [T, M] = L(!1), P = D((R, B, H) => {
|
|
1913
1912
|
S(R, Jt(B, w, v), H);
|
|
1914
1913
|
}, [v, w, S]), O = D(() => {
|
|
1915
1914
|
const R = s ?? null;
|
|
@@ -1949,10 +1948,10 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
1949
1948
|
}, children: /* @__PURE__ */ r(ao, {}) }) })
|
|
1950
1949
|
] }),
|
|
1951
1950
|
i && V != null && /* @__PURE__ */ r("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r(J, { color: "secondary", size: "sm", onClick: O, children: /* @__PURE__ */ r(ht, {}) }) }),
|
|
1952
|
-
k && /* @__PURE__ */ r(
|
|
1951
|
+
k && /* @__PURE__ */ r(_t, { message: k.message })
|
|
1953
1952
|
] });
|
|
1954
|
-
},
|
|
1955
|
-
const { formState: { errors: k, isSubmitted: A }, setValue: T, control: M } =
|
|
1953
|
+
}, jh = ({ InputContainer: e = Se, formField: t, label: n, placeholder: a, resetsFields: o, showClearIcon: l, clearValue: i, required: s, hidden: c, disabled: d, withoutLabel: u, step: m, size: f, CustomOnChangeComponent: p, noSelectOnFocus: h, className: w, decimalScale: v = 2, fixedDecimalScale: b = !1, numberPrefix: x, numberSuffix: C, min: N, max: y, onChange: S, hint: _ }) => {
|
|
1954
|
+
const { formState: { errors: k, isSubmitted: A }, setValue: T, control: M } = Et(), P = at({ falseIfNotInit: !0 }), [O, E] = L(void 0), [X, z] = L(!1), V = D(() => {
|
|
1956
1955
|
const ne = i ?? null;
|
|
1957
1956
|
T(t, ne !== null ? Number(ne) : null, {
|
|
1958
1957
|
shouldDirty: !0,
|
|
@@ -1993,9 +1992,9 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
1993
1992
|
p && /* @__PURE__ */ r("div", { className: "custom-picker-button", children: p })
|
|
1994
1993
|
] }),
|
|
1995
1994
|
l && H != null && /* @__PURE__ */ r("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r(J, { color: "secondary", size: "sm", onClick: V, children: /* @__PURE__ */ r(ht, {}) }) }),
|
|
1996
|
-
O && /* @__PURE__ */ r(
|
|
1995
|
+
O && /* @__PURE__ */ r(_t, { message: O.message })
|
|
1997
1996
|
] });
|
|
1998
|
-
},
|
|
1997
|
+
}, Mh = ({ ref: e, userName: t, onClick: n, children: a }) => /* @__PURE__ */ g("button", { type: "button", ref: e, onClick: (o) => {
|
|
1999
1998
|
o.preventDefault(), n(o);
|
|
2000
1999
|
}, "aria-label": "User avatar toggle", className: "m-0 p-0", style: {
|
|
2001
2000
|
backgroundColor: "transparent",
|
|
@@ -2004,7 +2003,7 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
2004
2003
|
}, children: [
|
|
2005
2004
|
/* @__PURE__ */ r(Ar, { name: t }),
|
|
2006
2005
|
a
|
|
2007
|
-
] }),
|
|
2006
|
+
] }), Ph = ({ color: e = "primary", icon: t = /* @__PURE__ */ r(to, { size: 12 }), inputId: n = "context-file-input", accept: a = "*", onUpload: o, multiple: l, className: i, children: s, ...c }) => {
|
|
2008
2007
|
const d = (u) => {
|
|
2009
2008
|
u.target.files && (o(u.target.files), u.target.value = "");
|
|
2010
2009
|
};
|
|
@@ -2023,7 +2022,7 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
2023
2022
|
return Mr.forEach((a) => {
|
|
2024
2023
|
n[a] = t[a];
|
|
2025
2024
|
}), JSON.stringify(n);
|
|
2026
|
-
},
|
|
2025
|
+
}, cc = (e) => {
|
|
2027
2026
|
if (e.settings) {
|
|
2028
2027
|
const t = JSON.parse(e.settings);
|
|
2029
2028
|
return Mr.forEach((n) => {
|
|
@@ -2031,13 +2030,13 @@ const oc = ({ InputContainer: e = Ht, value: t, onChange: n, debounceMs: a, labe
|
|
|
2031
2030
|
}), t;
|
|
2032
2031
|
}
|
|
2033
2032
|
return {};
|
|
2034
|
-
},
|
|
2033
|
+
}, dc = (e) => {
|
|
2035
2034
|
const t = {};
|
|
2036
2035
|
return Mr.forEach((n) => {
|
|
2037
2036
|
t[n] = (e == null ? void 0 : e[n]) ?? void 0;
|
|
2038
2037
|
}), t;
|
|
2039
|
-
},
|
|
2040
|
-
e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da = (e) => !e.member && !e.isDrillThrough, ua = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t),
|
|
2038
|
+
}, uc = (e) => e && e.type === "header" && e.member && e.member.caption !== "All" && // collapsed groups have this in continuing cells
|
|
2039
|
+
e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da = (e) => !e.member && !e.isDrillThrough, ua = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t), mc = ({ dataSource: e, settings: t, pivotRef: n, localization: a, licenseKey: o, hyperlinkColumn: l, roomPasportization: i, enabled: s = !0 }) => {
|
|
2041
2040
|
const { texts: { reports: c } } = F(G), [d, u] = L(!1), m = ge(null), f = n ?? m, p = j(() => ({
|
|
2042
2041
|
localization: a
|
|
2043
2042
|
}), [a]), h = D((N) => {
|
|
@@ -2118,7 +2117,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2118
2117
|
const A = (N = f.current) == null ? void 0 : N.flexmonster.getReport();
|
|
2119
2118
|
if (A === void 0 || typeof A == "string")
|
|
2120
2119
|
return;
|
|
2121
|
-
const T =
|
|
2120
|
+
const T = dc(t);
|
|
2122
2121
|
T.options = {
|
|
2123
2122
|
...t == null ? void 0 : t.options,
|
|
2124
2123
|
grid: { ...(y = t == null ? void 0 : t.options) == null ? void 0 : y.grid, autoSwitchToCompact: !1 },
|
|
@@ -2141,7 +2140,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2141
2140
|
}, [s, d, v, f, i, t]);
|
|
2142
2141
|
const x = D((N, y) => {
|
|
2143
2142
|
var P, O;
|
|
2144
|
-
if (
|
|
2143
|
+
if (uc(y)) {
|
|
2145
2144
|
N.text = ((P = y.member) == null ? void 0 : P.caption) ?? "";
|
|
2146
2145
|
const E = N.style["padding-left"] ?? "4px", X = parseInt(E, 10);
|
|
2147
2146
|
N.style["padding-left"] = X + 11 + "px";
|
|
@@ -2162,7 +2161,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2162
2161
|
window.open(y ?? "", "_blank", "noreferrer");
|
|
2163
2162
|
}, [l]);
|
|
2164
2163
|
return /* @__PURE__ */ r(Z, { children: /* @__PURE__ */ r(
|
|
2165
|
-
|
|
2164
|
+
Wl,
|
|
2166
2165
|
{
|
|
2167
2166
|
ref: f,
|
|
2168
2167
|
global: p,
|
|
@@ -2178,8 +2177,8 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2178
2177
|
cellclick: C
|
|
2179
2178
|
}
|
|
2180
2179
|
) });
|
|
2181
|
-
},
|
|
2182
|
-
const { texts: { reports: o } } = F(G), { prompt: l } = qi(), { confirm: i } = ot(), s = je(), { user: c } = F(pt), { startLoading: d, stopLoading: u } = F(Ze), { addNotification: m } =
|
|
2180
|
+
}, fc = (e, t, n, a) => {
|
|
2181
|
+
const { texts: { reports: o } } = F(G), { prompt: l } = qi(), { confirm: i } = ot(), s = je(), { user: c } = F(pt), { startLoading: d, stopLoading: u } = F(Ze), { addNotification: m } = Dt(), f = D(async (b) => {
|
|
2183
2182
|
d("report-versionSavingAs");
|
|
2184
2183
|
try {
|
|
2185
2184
|
const x = await s.post("/reports/version", b);
|
|
@@ -2262,7 +2261,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2262
2261
|
c.personalNumber
|
|
2263
2262
|
]);
|
|
2264
2263
|
return { saveAs: h, save: p, archive: w, detach: v };
|
|
2265
|
-
},
|
|
2264
|
+
}, hc = (e) => {
|
|
2266
2265
|
const t = je(), { startLoading: n, stopLoading: a } = F(Ze);
|
|
2267
2266
|
return { changeEmployeeRights: D(async (l, i) => {
|
|
2268
2267
|
let s = null;
|
|
@@ -2282,8 +2281,8 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2282
2281
|
}
|
|
2283
2282
|
return s;
|
|
2284
2283
|
}, [t, e, n, a]) };
|
|
2285
|
-
},
|
|
2286
|
-
const { ProjectIconComponent: i, texts: { reports: s } } = F(G), { confirm: c } = ot(), [d, u] = L(null), { changeEmployeeRights: m } =
|
|
2284
|
+
}, pc = ({ isOpen: e, onHide: t, usersData: n, reportVersionId: a, EmployeePicker: o, setReportVersion: l }) => {
|
|
2285
|
+
const { ProjectIconComponent: i, texts: { reports: s } } = F(G), { confirm: c } = ot(), [d, u] = L(null), { changeEmployeeRights: m } = hc(a), f = D((w) => {
|
|
2287
2286
|
l((v) => v === null ? null : {
|
|
2288
2287
|
...v,
|
|
2289
2288
|
users: w.filter((b) => b.isReportOwner === !1)
|
|
@@ -2328,7 +2327,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2328
2327
|
] })
|
|
2329
2328
|
] })
|
|
2330
2329
|
] });
|
|
2331
|
-
},
|
|
2330
|
+
}, gc = (e, t) => {
|
|
2332
2331
|
const [n, a] = L(null);
|
|
2333
2332
|
return U(() => {
|
|
2334
2333
|
e.then(({ default: o }) => {
|
|
@@ -2336,14 +2335,14 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2336
2335
|
a(l);
|
|
2337
2336
|
});
|
|
2338
2337
|
}, [t, e]), { mappings: n };
|
|
2339
|
-
},
|
|
2338
|
+
}, Fh = ({ reportType: e, title: t, data: n, filterElements: a, getReportRoute: o, localization: l, licenseKey: i, EmployeePicker: s, localizationJsonFile: c, localizationTransformer: d, hyperlinkColumn: u, roomPasportization: m = !1 }) => {
|
|
2340
2339
|
const { texts: { reports: f } } = F(G), { confirm: p } = ot(), h = Pn(), [w] = Hl(), { id: v } = po(), b = j(() => v === void 0 ? null : Number(v), [v]), x = D((W) => {
|
|
2341
2340
|
const oe = W === null ? "" : W.toString();
|
|
2342
2341
|
h(zt(o(e), { id: oe }) + "?" + w.toString(), {
|
|
2343
2342
|
replace: !0,
|
|
2344
2343
|
flushSync: !0
|
|
2345
2344
|
});
|
|
2346
|
-
}, [o, h, e, w]), [C, N] = L(!1), y = ge(null), { user: S } = F(pt), { data: _, reloadData: k } = De(`/reports/${e}`), { mappings: A } =
|
|
2345
|
+
}, [o, h, e, w]), [C, N] = L(!1), y = ge(null), { user: S } = F(pt), { data: _, reloadData: k } = De(`/reports/${e}`), { mappings: A } = gc(c, d), [T, M] = L({}), P = D((W) => {
|
|
2347
2346
|
const oe = W.target.value, ye = oe === "" ? null : Number(oe);
|
|
2348
2347
|
x(ye);
|
|
2349
2348
|
}, [x]), O = D(async (W) => {
|
|
@@ -2355,10 +2354,10 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2355
2354
|
M({});
|
|
2356
2355
|
return;
|
|
2357
2356
|
}
|
|
2358
|
-
const W =
|
|
2357
|
+
const W = cc(E) ?? {};
|
|
2359
2358
|
M(W), (oe = y.current) == null || oe.flexmonster.refresh();
|
|
2360
2359
|
}, [E]);
|
|
2361
|
-
const { save: z, saveAs: V, archive: R, detach: B } =
|
|
2360
|
+
const { save: z, saveAs: V, archive: R, detach: B } = fc(e, y, b, O), H = j(() => ({
|
|
2362
2361
|
data: n ?? [],
|
|
2363
2362
|
mapping: A ?? void 0
|
|
2364
2363
|
}), [n, A]), Q = D(async () => {
|
|
@@ -2387,16 +2386,16 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2387
2386
|
] }),
|
|
2388
2387
|
/* @__PURE__ */ r(Ge, { icon: /* @__PURE__ */ r(Qi, {}), onClick: z, disabled: b === null || (E == null ? void 0 : E.isSystem) || !ne, children: f.save }),
|
|
2389
2388
|
/* @__PURE__ */ r(Ge, { icon: /* @__PURE__ */ r(Xi, {}), onClick: V, className: "flex-shrink-0", children: f.saveAs }),
|
|
2390
|
-
/* @__PURE__ */ g(gt, { toggle: /* @__PURE__ */ r(vt, { as:
|
|
2389
|
+
/* @__PURE__ */ g(gt, { toggle: /* @__PURE__ */ r(vt, { as: Tt }), children: [
|
|
2391
2390
|
/* @__PURE__ */ r(Re, { onClick: Q, children: f.revertChanges }),
|
|
2392
2391
|
/* @__PURE__ */ r(Re, { onClick: () => N(!0), disabled: !ne || (E == null ? void 0 : E.isSystem), children: f.share }),
|
|
2393
2392
|
ne && !(E != null && E.isSystem) ? /* @__PURE__ */ r(Re, { color: "danger", onClick: le, children: f.delete }) : null,
|
|
2394
2393
|
ce && !(E != null && E.isSystem) ? /* @__PURE__ */ r(Re, { color: "danger", onClick: xe, children: f.detach }) : null
|
|
2395
2394
|
] })
|
|
2396
2395
|
] })
|
|
2397
|
-
] }), children: /* @__PURE__ */ r("div", { className: I("h-100 w-100", H.data && H.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ r(
|
|
2396
|
+
] }), children: /* @__PURE__ */ r("div", { className: I("h-100 w-100", H.data && H.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ r(mc, { dataSource: H, settings: T, pivotRef: y, enabled: H.data && H.data.length > 0, roomPasportization: m, localization: l, licenseKey: i, hyperlinkColumn: u }) }) }),
|
|
2398
2397
|
E !== null ? /* @__PURE__ */ r(
|
|
2399
|
-
|
|
2398
|
+
pc,
|
|
2400
2399
|
{
|
|
2401
2400
|
isOpen: C,
|
|
2402
2401
|
onHide: () => N(!1),
|
|
@@ -2407,7 +2406,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2407
2406
|
}
|
|
2408
2407
|
) : null
|
|
2409
2408
|
] });
|
|
2410
|
-
},
|
|
2409
|
+
}, Bh = ({ cell: { value: e } }) => /* @__PURE__ */ r(Z, { children: e ? /* @__PURE__ */ r(Ar, { name: e, size: 21, fontSize: 12 }) : /* @__PURE__ */ r(Z, {}) }), vc = ({ knownTypes: e, typeFilters: t, onChangeTypeFilters: n }) => /* @__PURE__ */ r("div", { className: "mb-1 d-flex justify-content-center gap-2", children: e.map((a) => /* @__PURE__ */ r("div", { role: "button", style: {
|
|
2411
2410
|
height: "14px",
|
|
2412
2411
|
width: "14px",
|
|
2413
2412
|
borderRadius: "50%",
|
|
@@ -2415,13 +2414,13 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2415
2414
|
backgroundColor: "transparent"
|
|
2416
2415
|
}, className: I(`border-${a}`, t.includes(a) && `bg-${a}`), onClick: () => {
|
|
2417
2416
|
t.includes(a) ? n(t.filter((o) => o !== a)) : n([...t, a]);
|
|
2418
|
-
} }, a)) }),
|
|
2419
|
-
const { ProjectIconComponent: l, localizationContext: i } = F(G), { dateFnsLocale: s } = F(i), c = e.dateTime ? Ye(e.dateTime) : null, d = c ?
|
|
2417
|
+
} }, a)) }), yc = ({ linksTo: e, onClick: t, children: n }) => e ? /* @__PURE__ */ r(Oe, { to: e, className: "text-decoration-none", onClick: t, children: n }) : /* @__PURE__ */ r(Z, { children: n }), bc = ({ message: e, onDeleteMessage: t, onClickMessage: n, getIcon: a, getLinksTo: o }) => {
|
|
2418
|
+
const { ProjectIconComponent: l, localizationContext: i } = F(G), { dateFnsLocale: s } = F(i), c = e.dateTime ? Ye(e.dateTime) : null, d = c ? Jl(new Date(Date.now()), c) : 0;
|
|
2420
2419
|
return /* @__PURE__ */ g("div", { children: [
|
|
2421
|
-
c && /* @__PURE__ */ r("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ r($e, { text: nt(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r($, { variant: "caption", children: d > 2 ? nt(c, "dd.MM.yyyy") :
|
|
2420
|
+
c && /* @__PURE__ */ r("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ r($e, { text: nt(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r($, { variant: "caption", children: d > 2 ? nt(c, "dd.MM.yyyy") : ts(c, new Date(Date.now()), {
|
|
2422
2421
|
locale: s.code
|
|
2423
2422
|
}) }) }) }) }),
|
|
2424
|
-
/* @__PURE__ */ r(
|
|
2423
|
+
/* @__PURE__ */ r(yc, { linksTo: o(e) ?? void 0, onClick: n, children: /* @__PURE__ */ r(Lm, { level: e.type, noIcon: !0, children: /* @__PURE__ */ g("div", { className: "d-flex align-items-start gap-2", children: [
|
|
2425
2424
|
a(e),
|
|
2426
2425
|
/* @__PURE__ */ g("div", { className: "d-flex flex-column gap-1 w-100", children: [
|
|
2427
2426
|
/* @__PURE__ */ g("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
|
|
@@ -2437,7 +2436,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2437
2436
|
}, ma = ["info", "warning", "danger"], fa = ({ messages: e, isLoading: t, onDeleteMessage: n, onClickMessage: a, getIcon: o, getLinksTo: l }) => {
|
|
2438
2437
|
const { texts: { messageBoard: i } } = F(G), [s, c] = L(ma), d = j(() => e.filter((u) => s.includes(u.type ?? "")), [s, e]);
|
|
2439
2438
|
return /* @__PURE__ */ g("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
|
|
2440
|
-
/* @__PURE__ */ r(
|
|
2439
|
+
/* @__PURE__ */ r(vc, { knownTypes: ma, typeFilters: s, onChangeTypeFilters: (u) => c(u) }),
|
|
2441
2440
|
t && /* @__PURE__ */ g("div", { className: "p-3 w-100", children: [
|
|
2442
2441
|
/* @__PURE__ */ r(ct, { as: Zr.Title, animation: "glow", children: /* @__PURE__ */ r(ct, { xs: 6 }) }),
|
|
2443
2442
|
/* @__PURE__ */ g(ct, { as: Zr.Text, animation: "glow", children: [
|
|
@@ -2454,13 +2453,13 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2454
2453
|
] }),
|
|
2455
2454
|
!t && /* @__PURE__ */ g(Z, { children: [
|
|
2456
2455
|
e.length === 0 && /* @__PURE__ */ r(ze, { variant: "info", size: "sm", className: "mt-2", children: i.noMessages }),
|
|
2457
|
-
/* @__PURE__ */ r("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: d.map((u) => /* @__PURE__ */ r(
|
|
2456
|
+
/* @__PURE__ */ r("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: d.map((u) => /* @__PURE__ */ r(bc, { message: u, onDeleteMessage: n, onClickMessage: a, getIcon: o, getLinksTo: l }, u.id)) })
|
|
2458
2457
|
] })
|
|
2459
2458
|
] });
|
|
2460
2459
|
}, Qn = {
|
|
2461
2460
|
apiGet: "/messageBoard",
|
|
2462
2461
|
apiDelete: "/messageBoard/"
|
|
2463
|
-
},
|
|
2462
|
+
}, zh = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: n = Qn.apiGet, apiDelete: a = Qn.apiDelete } = Qn, getIcon: o, getLinksTo: l }) => {
|
|
2464
2463
|
const s = je(), [c, d] = L([]), [u, m] = L(!1), [f, p] = L(!1), [h, w] = L(!1), v = D(async () => {
|
|
2465
2464
|
p(!0), await s.get(n).then(({ data: y }) => {
|
|
2466
2465
|
d(y), m(!0), p(!1);
|
|
@@ -2487,12 +2486,12 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2487
2486
|
] }),
|
|
2488
2487
|
/* @__PURE__ */ r(ea, { show: h, onHide: () => w(!1), placement: "end", children: /* @__PURE__ */ r(ea.Body, { children: /* @__PURE__ */ r(fa, { messages: c, isLoading: N, onDeleteMessage: x, onClickMessage: () => w(!1), getIcon: o, getLinksTo: l }) }) })
|
|
2489
2488
|
] }) : /* @__PURE__ */ r(fa, { messages: c, isLoading: N, onDeleteMessage: x, getIcon: o, getLinksTo: l });
|
|
2490
|
-
},
|
|
2491
|
-
tabPanel:
|
|
2492
|
-
fullHeightNoOverflow:
|
|
2493
|
-
disabled:
|
|
2494
|
-
},
|
|
2495
|
-
joinLine:
|
|
2489
|
+
}, wc = "_tab-panel_d8l8q_1", Nc = "_full-height-no-overflow_d8l8q_5", xc = "_disabled_d8l8q_12", Xn = {
|
|
2490
|
+
tabPanel: wc,
|
|
2491
|
+
fullHeightNoOverflow: Nc,
|
|
2492
|
+
disabled: xc
|
|
2493
|
+
}, Sc = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: n, disabled: a, className: o, children: l }) => e !== t ? null : /* @__PURE__ */ r("div", { className: I("luminus-tab-panel", Xn.tabPanel, { [Xn.fullHeightNoOverflow]: n }, { disabled: a }, { [Xn.disabled]: a }, o), children: l }), Cc = "_join-line_1q9e8_1", kc = {
|
|
2494
|
+
joinLine: Cc
|
|
2496
2495
|
}, Wo = ({ activeTab: e, onSelect: t, children: n, vertical: a, verticalStepper: o }) => /* @__PURE__ */ r("div", { className: I("luminus-tabs d-flex mb-2", { "gap-1": !o }, { "gap-0": o }, {
|
|
2497
2496
|
"flex-column": a || o
|
|
2498
2497
|
}), children: n.map((l, i) => {
|
|
@@ -2504,23 +2503,23 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2504
2503
|
/* @__PURE__ */ r(s, { ...c, className: I({ active: e === d }, m), onClick: () => {
|
|
2505
2504
|
t(d), f && f(d);
|
|
2506
2505
|
}, vertical: a || o, children: u }),
|
|
2507
|
-
o && i < n.length - 1 && /* @__PURE__ */ r("div", { className: I("join-line",
|
|
2506
|
+
o && i < n.length - 1 && /* @__PURE__ */ r("div", { className: I("join-line", kc.joinLine) })
|
|
2508
2507
|
] }, c.eventKey);
|
|
2509
|
-
}) }),
|
|
2510
|
-
tab:
|
|
2511
|
-
disabled:
|
|
2512
|
-
vertical:
|
|
2508
|
+
}) }), Ic = "_tab_1tbi7_1", _c = "_disabled_1tbi7_7", Dc = "_vertical_1tbi7_13", Zn = {
|
|
2509
|
+
tab: Ic,
|
|
2510
|
+
disabled: _c,
|
|
2511
|
+
vertical: Dc
|
|
2513
2512
|
}, Go = ({ eventKey: e, className: t, onClick: n, disabled: a, vertical: o, children: l }) => /* @__PURE__ */ r("div", { role: "button", className: I("luminus-tab text-primary rounded", Zn.tab, t, {
|
|
2514
2513
|
disabled: a
|
|
2515
|
-
}, { [Zn.disabled]: a }, { vertical: o }, { [Zn.vertical]: o }), onClick: () => n && !a && n(e), children: typeof l == "string" ? /* @__PURE__ */ r($, { variant: o ? "body" : "h6", className: o ? "" : "text-primary", children: l }) : l }),
|
|
2514
|
+
}, { [Zn.disabled]: a }, { vertical: o }, { [Zn.vertical]: o }), onClick: () => n && !a && n(e), children: typeof l == "string" ? /* @__PURE__ */ r($, { variant: o ? "body" : "h6", className: o ? "" : "text-primary", children: l }) : l }), Hh = ({ tabs: e, activeTab: t, onSelect: n, ...a }) => {
|
|
2516
2515
|
var i;
|
|
2517
2516
|
const { ProjectIconComponent: o } = F(G), { isMobile: l } = Rn();
|
|
2518
|
-
return l ? /* @__PURE__ */ r(gt, { toggle: /* @__PURE__ */ r(vt, { as:
|
|
2519
|
-
},
|
|
2520
|
-
selection:
|
|
2521
|
-
selectionBg:
|
|
2522
|
-
selectionItemsContainer:
|
|
2523
|
-
selectionItems:
|
|
2517
|
+
return l ? /* @__PURE__ */ r(gt, { toggle: /* @__PURE__ */ r(vt, { as: Tt, text: ((i = e.find((s) => s.id === t)) == null ? void 0 : i.name) ?? "", icon: /* @__PURE__ */ r(o, { icon: "chevron-down" }) }), ...a, children: e.map((s) => /* @__PURE__ */ r(Re, { onClick: () => n(s.id), children: s.name }, s.id)) }) : /* @__PURE__ */ r(Wo, { activeTab: t, onSelect: (s) => n(s), ...a, children: e.map((s) => /* @__PURE__ */ r(Go, { eventKey: s.id, children: s.name }, s.id)) });
|
|
2518
|
+
}, Tc = "_selection_1dtmm_1", Ec = "_selectionBg_1dtmm_10", Oc = "_selectionItemsContainer_1dtmm_18", $c = "_selectionItems_1dtmm_18", bn = {
|
|
2519
|
+
selection: Tc,
|
|
2520
|
+
selectionBg: Ec,
|
|
2521
|
+
selectionItemsContainer: Oc,
|
|
2522
|
+
selectionItems: $c
|
|
2524
2523
|
}, Yo = ({ icon: e, setIcon: t, IconComponent: n, IconTypeArray: a }) => {
|
|
2525
2524
|
const [o, l] = L(!1), i = (s) => {
|
|
2526
2525
|
t(s), l(!1);
|
|
@@ -2537,7 +2536,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2537
2536
|
if (e === void 0)
|
|
2538
2537
|
throw new Error("ShortcutLinksProvider not initilized. Probably tried to use useShortcutLinks outside ShortcutLinksProvider.");
|
|
2539
2538
|
return e;
|
|
2540
|
-
},
|
|
2539
|
+
}, Lc = ({ shortcutLink: e, IconComponent: t, IconTypeArray: n, editShortcutLink: a, deleteLocation: o }) => {
|
|
2541
2540
|
const { ProjectIconComponent: l } = F(G), [i, s] = L(e.icon), [c, d] = L(e.name), u = j(() => !(i === e.icon && c === e.name), [i, c, e.icon, e.name]), m = D(() => {
|
|
2542
2541
|
s(e.icon), d(e.name);
|
|
2543
2542
|
}, [e]), f = D(() => {
|
|
@@ -2554,7 +2553,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2554
2553
|
/* @__PURE__ */ r(J, { onClick: o, color: "danger", children: /* @__PURE__ */ r(l, { icon: "delete" }) })
|
|
2555
2554
|
] }) })
|
|
2556
2555
|
] });
|
|
2557
|
-
},
|
|
2556
|
+
}, Ac = ({ shortcutLink: e, IconComponent: t, IconTypeArray: n, editShortcutLink: a, deleteShortcutLink: o }) => {
|
|
2558
2557
|
const l = D(() => {
|
|
2559
2558
|
o(e.id);
|
|
2560
2559
|
}, [o, e.id]);
|
|
@@ -2563,9 +2562,9 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2563
2562
|
e.url.slice(0, 21),
|
|
2564
2563
|
"..."
|
|
2565
2564
|
] }) }) }),
|
|
2566
|
-
/* @__PURE__ */ r(
|
|
2565
|
+
/* @__PURE__ */ r(Lc, { shortcutLink: e, IconComponent: t, IconTypeArray: n, editShortcutLink: a, deleteLocation: l })
|
|
2567
2566
|
] }) });
|
|
2568
|
-
},
|
|
2567
|
+
}, Vh = ({ IconComponent: e, IconTypeArray: t }) => {
|
|
2569
2568
|
const { texts: n } = F(G), { shortcutLinks: a, editShortcutLink: o, deleteShortcutLink: l } = qo();
|
|
2570
2569
|
return /* @__PURE__ */ r(Z, { children: a !== null && a.length > 0 ? /* @__PURE__ */ g(Ro, { size: "sm", title: n.shortcutLinks.shortcutLinksSetting, children: [
|
|
2571
2570
|
/* @__PURE__ */ r("thead", { className: "fw-bold", children: /* @__PURE__ */ g("tr", { children: [
|
|
@@ -2574,13 +2573,13 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2574
2573
|
/* @__PURE__ */ r("th", { className: "text-center", children: /* @__PURE__ */ r($, { variant: "body2", children: n.shortcutLinks.icon }) }),
|
|
2575
2574
|
/* @__PURE__ */ r("th", {})
|
|
2576
2575
|
] }) }),
|
|
2577
|
-
/* @__PURE__ */ r("tbody", { children: a == null ? void 0 : a.map((i) => /* @__PURE__ */ r(
|
|
2576
|
+
/* @__PURE__ */ r("tbody", { children: a == null ? void 0 : a.map((i) => /* @__PURE__ */ r(Ac, { shortcutLink: i, IconComponent: e, IconTypeArray: t, editShortcutLink: o, deleteShortcutLink: l }, i.id)) })
|
|
2578
2577
|
] }) : /* @__PURE__ */ r(ze, { variant: "info", size: "sm", children: n.shortcutLinks.addLinksToEditThemHereInfo }) });
|
|
2579
|
-
}, fr = 5,
|
|
2580
|
-
linkButton:
|
|
2581
|
-
linkAddButton:
|
|
2582
|
-
createLinkRow:
|
|
2583
|
-
},
|
|
2578
|
+
}, fr = 5, Rc = "_linkButton_pnlvi_1", jc = "_linkAddButton_pnlvi_31", Mc = "_createLinkRow_pnlvi_39", Pt = {
|
|
2579
|
+
linkButton: Rc,
|
|
2580
|
+
linkAddButton: jc,
|
|
2581
|
+
createLinkRow: Mc
|
|
2582
|
+
}, Pc = ({ shortcutLink: e, IconComponent: t }) => /* @__PURE__ */ r($e, { text: e.name, placement: "bottom", children: /* @__PURE__ */ r(Oe, { to: e.url, className: Pt.linkButton, children: /* @__PURE__ */ r(t, { icon: e.icon }) }) }), Fc = ({ closeModal: e, isOpen: t, createLink: n, pageTitlePrefix: a, IconComponent: o, IconTypeArray: l }) => {
|
|
2584
2583
|
const i = Vl(), { texts: s } = F(G), [c, d] = L("star-outline"), [u, m] = L(a ? document.title.replace(a, "") : document.title), f = D(async () => {
|
|
2585
2584
|
await n({ icon: c, name: u, url: i.pathname + i.search }), e();
|
|
2586
2585
|
}, [e, n, c, i.pathname, i.search, u]), p = j(() => i.pathname + i.search, [i.pathname, i.search]);
|
|
@@ -2607,19 +2606,19 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2607
2606
|
] }),
|
|
2608
2607
|
/* @__PURE__ */ r(re.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ r(Ke, { onClick: f, children: s.shortcutLinks.addShortcut }) })
|
|
2609
2608
|
] }) });
|
|
2610
|
-
},
|
|
2609
|
+
}, Bc = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: n, createLink: a }) => {
|
|
2611
2610
|
const { ProjectIconComponent: o, texts: l } = F(G), [i, s] = L(!1), [c] = kr(i, 100);
|
|
2612
2611
|
return /* @__PURE__ */ g(Z, { children: [
|
|
2613
2612
|
/* @__PURE__ */ r($e, { text: l.shortcutLinks.addShortcut, placement: "bottom", children: /* @__PURE__ */ r("button", { type: "button", className: I(Pt.linkButton, Pt.linkAddButton), onClick: () => s(!0), children: /* @__PURE__ */ r(o, { icon: "add" }) }) }),
|
|
2614
|
-
(i || c) && /* @__PURE__ */ r(
|
|
2613
|
+
(i || c) && /* @__PURE__ */ r(Fc, { IconComponent: e, IconTypeArray: t, closeModal: () => s(!1), createLink: a, isOpen: i, pageTitlePrefix: n })
|
|
2615
2614
|
] });
|
|
2616
|
-
},
|
|
2615
|
+
}, Uh = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: n }) => {
|
|
2617
2616
|
const { shortcutLinks: a, createShortcutLink: o } = qo(), l = j(() => a !== null && a.length < fr, [a]);
|
|
2618
2617
|
return /* @__PURE__ */ r(Z, { children: /* @__PURE__ */ g("div", { className: "d-flex gap-2", children: [
|
|
2619
|
-
a == null ? void 0 : a.slice(0, fr).map((i, s) => i !== null ? /* @__PURE__ */ r(
|
|
2620
|
-
l && /* @__PURE__ */ r(
|
|
2618
|
+
a == null ? void 0 : a.slice(0, fr).map((i, s) => i !== null ? /* @__PURE__ */ r(Pc, { shortcutLink: i, IconComponent: e }, s) : null),
|
|
2619
|
+
l && /* @__PURE__ */ r(Bc, { IconComponent: e, IconTypeArray: t, pageTitlePrefix: n, createLink: o })
|
|
2621
2620
|
] }) });
|
|
2622
|
-
},
|
|
2621
|
+
}, zc = (e) => {
|
|
2623
2622
|
const t = je(), { startLoading: n, stopLoading: a } = F(Ze), o = D(async (s) => {
|
|
2624
2623
|
n("submit-createShortcutLink");
|
|
2625
2624
|
try {
|
|
@@ -2643,7 +2642,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2643
2642
|
}
|
|
2644
2643
|
}, [t, e, n, a]);
|
|
2645
2644
|
return { create: o, update: l, remove: i };
|
|
2646
|
-
},
|
|
2645
|
+
}, Hc = (e) => {
|
|
2647
2646
|
if (e == null)
|
|
2648
2647
|
throw new Error("Tried to make operation on null shortcutLinks.");
|
|
2649
2648
|
return e;
|
|
@@ -2651,14 +2650,14 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2651
2650
|
if (e == null)
|
|
2652
2651
|
throw new Error("Tried to make operation on null shortcutLinks.");
|
|
2653
2652
|
return e;
|
|
2654
|
-
},
|
|
2653
|
+
}, Wh = ({ children: e, referenceId: t }) => {
|
|
2655
2654
|
const { user: n } = F(pt), a = D((p) => p.map((h) => ({ id: h.id, icon: h.icon, name: h.name, url: h.url })), []), { data: o, reloadData: l } = De(`/dynamicForms/lookup-data-all?referenceId=${t}&employee=${n == null ? void 0 : n.personalNumber}`, {
|
|
2656
2655
|
silent: !0,
|
|
2657
2656
|
dataTransformer: a,
|
|
2658
2657
|
enabled: n !== null
|
|
2659
|
-
}), { create: i, update: s, remove: c } =
|
|
2658
|
+
}), { create: i, update: s, remove: c } = zc(t), d = D(async (p) => {
|
|
2660
2659
|
const h = ha(n);
|
|
2661
|
-
if (
|
|
2660
|
+
if (Hc(o).length >= fr)
|
|
2662
2661
|
throw new Error("Cannot add more shortcut links.");
|
|
2663
2662
|
await i({ ...p, employee: h.personalNumber }), await l();
|
|
2664
2663
|
}, [i, l, o, n]), u = D(async (p) => {
|
|
@@ -2673,7 +2672,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2673
2672
|
deleteShortcutLink: m
|
|
2674
2673
|
}), [d, m, u, o]);
|
|
2675
2674
|
return /* @__PURE__ */ r(oo.Provider, { value: f, children: e });
|
|
2676
|
-
},
|
|
2675
|
+
}, Vc = ({ targets: e, removeNotifTarget: t }) => {
|
|
2677
2676
|
const { ProjectIconComponent: n } = F(G);
|
|
2678
2677
|
return /* @__PURE__ */ r(Z, { children: e && e.sort((a, o) => (a.employeeId ?? 0) - (o.employeeId ?? 0)).map((a) => /* @__PURE__ */ g("div", { className: "d-flex gap-2 align-items-center justify-content-between mb-1", children: [
|
|
2679
2678
|
/* @__PURE__ */ r("div", { className: "text-secondary", children: /* @__PURE__ */ r("span", { className: "d-flex gap-2 ", children: a.employeeId && a.roleName === null ? /* @__PURE__ */ g(Z, { children: [
|
|
@@ -2685,14 +2684,14 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2685
2684
|
] }) }) }),
|
|
2686
2685
|
/* @__PURE__ */ r(J, { size: "sm", color: "danger", onClick: () => t(a.id), children: /* @__PURE__ */ r(n, { icon: "delete" }) })
|
|
2687
2686
|
] }, a.id)) });
|
|
2688
|
-
},
|
|
2687
|
+
}, Uc = ({ show: e, onHide: t, roles: n, onAddTarget: a, EmployeePicker: o, templateId: l }) => {
|
|
2689
2688
|
const { texts: { notifCentrum: i } } = F(G), [s, c] = L(null), [d, u] = L(null), [m, f] = L("R"), p = D(() => {
|
|
2690
2689
|
c(null), u(null), t();
|
|
2691
2690
|
}, [t]);
|
|
2692
2691
|
return /* @__PURE__ */ g(re, { show: e, onHide: () => p(), children: [
|
|
2693
2692
|
/* @__PURE__ */ r(re.Header, { closeButton: !0, children: /* @__PURE__ */ r(re.Title, { children: i.addNewTarget }) }),
|
|
2694
2693
|
/* @__PURE__ */ g(re.Body, { children: [
|
|
2695
|
-
/* @__PURE__ */ r(
|
|
2694
|
+
/* @__PURE__ */ r(lc, { options: [
|
|
2696
2695
|
{ id: "E", name: i.employee },
|
|
2697
2696
|
{ id: "R", name: i.role }
|
|
2698
2697
|
], value: m, onChange: (h) => f(h), InputContainer: Se }),
|
|
@@ -2707,7 +2706,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2707
2706
|
}, (s == null ? void 0 : s.name) ?? null), p();
|
|
2708
2707
|
}, children: i.add }) })
|
|
2709
2708
|
] });
|
|
2710
|
-
},
|
|
2709
|
+
}, Wc = ({ templates: e, selectedTemplateId: t, setSelectedTemplateId: n, roles: a, onAddNotifTarget: o, onRemoveNotifTarget: l, EmployeePicker: i }) => {
|
|
2711
2710
|
const { texts: { notifCentrum: s }, ProjectIconComponent: c } = F(G), [d, u] = L(!1);
|
|
2712
2711
|
return /* @__PURE__ */ g(Z, { children: [
|
|
2713
2712
|
/* @__PURE__ */ r(nn, { className: "overflow-auto h-max-100 p-2", children: e.map((m) => /* @__PURE__ */ g(nn.Item, { action: t !== m.id, className: `p-0 mb-2 border rounded shadow-sm ${t === m.id ? "border-1 border-primary" : ""}`, onClick: () => n(m.id), children: [
|
|
@@ -2716,11 +2715,11 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2716
2715
|
/* @__PURE__ */ r($, { className: "text-truncate text-primary", variant: "subtitle", children: m.subjectTemplate }),
|
|
2717
2716
|
/* @__PURE__ */ r(J, { size: "sm", onClick: () => u(!0), children: /* @__PURE__ */ r(c, { icon: "add" }) })
|
|
2718
2717
|
] }),
|
|
2719
|
-
/* @__PURE__ */ r("div", { className: "my-2 ps-3 pe-2", children: m.targets.length > 0 ? /* @__PURE__ */ r(
|
|
2718
|
+
/* @__PURE__ */ r("div", { className: "my-2 ps-3 pe-2", children: m.targets.length > 0 ? /* @__PURE__ */ r(Vc, { targets: m.targets, removeNotifTarget: l }) : /* @__PURE__ */ r(ze, { size: "sm", variant: "warning", children: s.noTargets }) })
|
|
2720
2719
|
] }, m.id)) }),
|
|
2721
|
-
/* @__PURE__ */ r(
|
|
2720
|
+
/* @__PURE__ */ r(Uc, { show: d, onHide: () => u(!1), roles: a ?? [], onAddTarget: o, EmployeePicker: i, templateId: t })
|
|
2722
2721
|
] });
|
|
2723
|
-
},
|
|
2722
|
+
}, Gc = ({ data: e, onClick: t, BnfTableComponent: n }) => {
|
|
2724
2723
|
const { texts: { notifCentrum: a } } = F(G), o = j(() => e == null ? void 0 : e.map((c) => {
|
|
2725
2724
|
var d;
|
|
2726
2725
|
return {
|
|
@@ -2754,7 +2753,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2754
2753
|
t(c.id);
|
|
2755
2754
|
}, [t]);
|
|
2756
2755
|
return /* @__PURE__ */ r(n, { columns: i, data: o, onRowClick: s });
|
|
2757
|
-
},
|
|
2756
|
+
}, Yc = ({ show: e, onHide: t, template: n, onEdit: a }) => {
|
|
2758
2757
|
const { texts: { notifCentrum: o } } = F(G), [l, i] = L(null), [s, c] = L(null);
|
|
2759
2758
|
U(() => {
|
|
2760
2759
|
n && (i(n.subjectTemplate), c(n.textTemplate));
|
|
@@ -2781,7 +2780,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2781
2780
|
console.log(l), console.log(s), d();
|
|
2782
2781
|
}, children: o.save }) })
|
|
2783
2782
|
] }) });
|
|
2784
|
-
},
|
|
2783
|
+
}, Gh = ({ kinds: e, reloadActions: t, reloadHistory: n, reloadRoles: a, onRemoveTarget: o, onPostTarget: l, onTemplateEdit: i, EmployeePicker: s, BnfTableComponent: c }) => {
|
|
2785
2784
|
var z, V;
|
|
2786
2785
|
const { texts: { notifCentrum: d }, ProjectIconComponent: u } = F(G), { confirm: m } = ot(), [f, p] = L(null), [h, w] = L(null), [v, b] = L(!1), [x, C] = an("notif-kind-id", null);
|
|
2787
2786
|
U(() => {
|
|
@@ -2856,15 +2855,15 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2856
2855
|
/* @__PURE__ */ r(Ir, { children: /* @__PURE__ */ r(Dn, { hideOn: "always", cKey: "template-edit", onClick: () => b(!0), disabled: f === null, icon: /* @__PURE__ */ r(u, { icon: "edit" }), children: d.editTemplate }) })
|
|
2857
2856
|
] }),
|
|
2858
2857
|
/* @__PURE__ */ g("div", { className: "vh-100 overflow-hidden d-flex gap-1", children: [
|
|
2859
|
-
/* @__PURE__ */ r("div", { className: "h-75 w-25 overflow-hidden", children: /* @__PURE__ */ r(
|
|
2858
|
+
/* @__PURE__ */ r("div", { className: "h-75 w-25 overflow-hidden", children: /* @__PURE__ */ r(Wc, { templates: P, roles: T ?? [], onAddNotifTarget: O, onRemoveNotifTarget: X, selectedTemplateId: f, setSelectedTemplateId: (R) => {
|
|
2860
2859
|
p(R), w(null);
|
|
2861
2860
|
}, EmployeePicker: s }) }),
|
|
2862
|
-
/* @__PURE__ */ r("div", { className: "w-25 h-75 overflow-hidden", children: f && /* @__PURE__ */ r(
|
|
2861
|
+
/* @__PURE__ */ r("div", { className: "w-25 h-75 overflow-hidden", children: f && /* @__PURE__ */ r(Gc, { data: k ?? [], onClick: (R) => w((k == null ? void 0 : k.find((B) => B.id === R)) ?? null), BnfTableComponent: c }) }),
|
|
2863
2862
|
f && /* @__PURE__ */ r("div", { className: "h-75 w-75 overflow-hidden bg-darker", children: /* @__PURE__ */ r("iframe", { title: "notification", className: "w-100 h-100", srcDoc: (h == null ? void 0 : h.message) ?? ((V = P.find((R) => R.id === f)) == null ? void 0 : V.textTemplate) }) })
|
|
2864
2863
|
] }),
|
|
2865
|
-
/* @__PURE__ */ r(
|
|
2864
|
+
/* @__PURE__ */ r(Yc, { show: v, onHide: () => b(!1), template: P.find((R) => R.id === f) ?? null, onEdit: E })
|
|
2866
2865
|
] });
|
|
2867
|
-
},
|
|
2866
|
+
}, qc = ({ history: e, onClick: t, BnfTableComponent: n }) => {
|
|
2868
2867
|
const { texts: { notifCentrum: a } } = F(G), o = mn(), l = j(() => [
|
|
2869
2868
|
o.accessor("id", {
|
|
2870
2869
|
header: "notificationHistory.id",
|
|
@@ -2934,7 +2933,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2934
2933
|
t(s.id);
|
|
2935
2934
|
}, [t]);
|
|
2936
2935
|
return /* @__PURE__ */ r(n, { columns: l, data: e, pagination: { mode: "enabled" }, fullScreen: { enabled: !1 }, onRowClick: i });
|
|
2937
|
-
},
|
|
2936
|
+
}, Yh = ({ reloadUserHistory: e, EmployeePicker: t, BnfTableComponent: n }) => {
|
|
2938
2937
|
const { texts: { notifCentrum: a } } = F(G), [o, l] = L(null), [i, s] = an("notif-user", null), [c, d] = L([]);
|
|
2939
2938
|
return U(() => {
|
|
2940
2939
|
i !== null && e(i.id).then((u) => {
|
|
@@ -2945,11 +2944,11 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2945
2944
|
}, [i, e]), /* @__PURE__ */ g("div", { className: "h-100 overflow-hidden d-flex flex-column gap-1", children: [
|
|
2946
2945
|
/* @__PURE__ */ r("div", { className: "row", children: /* @__PURE__ */ r("div", { className: "col-3", children: /* @__PURE__ */ r(t, { label: a.employee, value: i, size: "sm", onSelect: (u) => s(u ? { id: Number(u.id), name: u.name } : null) }) }) }),
|
|
2947
2946
|
/* @__PURE__ */ g("div", { className: "vh-100 overflow hidden row", children: [
|
|
2948
|
-
/* @__PURE__ */ r("div", { className: "col-5 h-75 overflow-hidden", children: /* @__PURE__ */ r(
|
|
2947
|
+
/* @__PURE__ */ r("div", { className: "col-5 h-75 overflow-hidden", children: /* @__PURE__ */ r(qc, { history: c ?? [], onClick: (u) => l((c == null ? void 0 : c.find((m) => m.id === u)) ?? null), BnfTableComponent: n }) }),
|
|
2949
2948
|
o && /* @__PURE__ */ r("div", { className: "col bg-darker h-75", children: /* @__PURE__ */ r("iframe", { title: "notification", className: "w-100 h-100", srcDoc: o == null ? void 0 : o.message }) })
|
|
2950
2949
|
] })
|
|
2951
2950
|
] });
|
|
2952
|
-
},
|
|
2951
|
+
}, Kc = ({ result: e, onClose: t, tableIdentifier: n, BnfTableComponent: a }) => {
|
|
2953
2952
|
var c, d, u, m, f;
|
|
2954
2953
|
const { texts: { imports: o }, ProjectIconComponent: l } = F(G), i = mn(), s = j(() => [
|
|
2955
2954
|
i.accessor("row", {
|
|
@@ -2989,10 +2988,10 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
2989
2988
|
] }),
|
|
2990
2989
|
t !== void 0 ? /* @__PURE__ */ r(J, { color: e.success ? "success" : "danger", className: I("hover-darken", e.success ? "bg-success-subtle" : "bg-danger-subtle"), onClick: t, children: /* @__PURE__ */ r(l, { icon: "close" }) }) : null
|
|
2991
2990
|
] }) }) }) : null;
|
|
2992
|
-
},
|
|
2993
|
-
uploadBox:
|
|
2994
|
-
browseBtn:
|
|
2995
|
-
},
|
|
2991
|
+
}, Qc = "_upload-box_9ka79_1", Xc = "_browse-btn_9ka79_15", Jn = {
|
|
2992
|
+
uploadBox: Qc,
|
|
2993
|
+
browseBtn: Xc
|
|
2994
|
+
}, Zc = ({ file: e, onFileChange: t, onImport: n, children: a, multiple: o, accept: l }) => {
|
|
2996
2995
|
const { ProjectIconComponent: i, texts: { imports: s } } = F(G), c = D(async (u) => {
|
|
2997
2996
|
u.length > 0 && t(o === !0 ? [...u] : u[0]);
|
|
2998
2997
|
}, [e, o, t]), d = D((u) => {
|
|
@@ -3021,15 +3020,15 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3021
3020
|
] }) })
|
|
3022
3021
|
] })
|
|
3023
3022
|
] });
|
|
3024
|
-
},
|
|
3023
|
+
}, qh = ({ otherSettingId: e, languageOptions: t, tableIdentifier: n, SettingsOutlet: a, BnfTableComponent: o, importLocalization: l }) => {
|
|
3025
3024
|
const { texts: { localizations: i } } = F(G), [s, c] = L(t[0].id), [d, u] = L(null), [m, f] = L(null), p = D(async () => {
|
|
3026
3025
|
if (d === null)
|
|
3027
3026
|
return;
|
|
3028
3027
|
const h = await l({ file: d, lang: s });
|
|
3029
3028
|
h.status === "success" && f(h.data);
|
|
3030
3029
|
}, [l, s, d]);
|
|
3031
|
-
return /* @__PURE__ */ r(a, { itemId: e, title: i.localizationImport, children: m ? /* @__PURE__ */ r(
|
|
3032
|
-
},
|
|
3030
|
+
return /* @__PURE__ */ r(a, { itemId: e, title: i.localizationImport, children: m ? /* @__PURE__ */ r(Kc, { result: m, onClose: () => f(null), BnfTableComponent: o, tableIdentifier: n }) : /* @__PURE__ */ r(Zc, { file: d, onFileChange: u, onImport: p, children: /* @__PURE__ */ r("div", { style: { minWidth: 140 }, children: /* @__PURE__ */ r(qe, { value: s, onChange: (h) => typeof h == "string" ? c(h) : null, options: t, label: i.importedLanguage }) }) }) });
|
|
3031
|
+
}, Jc = (e, t) => {
|
|
3033
3032
|
const n = t.split(".");
|
|
3034
3033
|
let a = e;
|
|
3035
3034
|
for (let o = 0; o < n.length; o++) {
|
|
@@ -3040,12 +3039,12 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3040
3039
|
return;
|
|
3041
3040
|
a = i;
|
|
3042
3041
|
}
|
|
3043
|
-
},
|
|
3042
|
+
}, ed = ({ selLng: e, lngsData: t, localizationKey: n, reloadData: a, saveChanges: o }) => {
|
|
3044
3043
|
const { ProjectIconComponent: l } = F(G), i = j(() => {
|
|
3045
3044
|
const m = t.get(e);
|
|
3046
3045
|
if (m === void 0)
|
|
3047
3046
|
return "";
|
|
3048
|
-
const f =
|
|
3047
|
+
const f = Jc(m, n);
|
|
3049
3048
|
return m !== void 0 && f !== void 0 ? f : "";
|
|
3050
3049
|
}, [t, n, e]), [s, c] = L(i), d = D(async () => {
|
|
3051
3050
|
await o([{ fileName: e + ".json", items: [{ key: n, value: s }] }]), await a();
|
|
@@ -3059,19 +3058,19 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3059
3058
|
/* @__PURE__ */ r(J, { onClick: d, children: /* @__PURE__ */ r(l, { icon: "check" }) })
|
|
3060
3059
|
] }) : null
|
|
3061
3060
|
] });
|
|
3062
|
-
},
|
|
3063
|
-
keysTable:
|
|
3064
|
-
subgrid:
|
|
3065
|
-
lngSelectRow:
|
|
3066
|
-
tableItem:
|
|
3067
|
-
tableFooter:
|
|
3068
|
-
tableFullWidth:
|
|
3069
|
-
tableBody:
|
|
3070
|
-
lngSelect:
|
|
3071
|
-
addLng:
|
|
3072
|
-
fileSelect:
|
|
3073
|
-
searchBox:
|
|
3074
|
-
}, wn = 50,
|
|
3061
|
+
}, td = "_keysTable_1j6ns_1", nd = "_subgrid_1j6ns_14", rd = "_lngSelectRow_1j6ns_19", ad = "_tableItem_1j6ns_26", od = "_tableFooter_1j6ns_29", id = "_tableFullWidth_1j6ns_35", ld = "_tableBody_1j6ns_39", sd = "_lngSelect_1j6ns_19", cd = "_addLng_1j6ns_52", dd = "_fileSelect_1j6ns_57", ud = "_searchBox_1j6ns_61", Te = {
|
|
3062
|
+
keysTable: td,
|
|
3063
|
+
subgrid: nd,
|
|
3064
|
+
lngSelectRow: rd,
|
|
3065
|
+
tableItem: ad,
|
|
3066
|
+
tableFooter: od,
|
|
3067
|
+
tableFullWidth: id,
|
|
3068
|
+
tableBody: ld,
|
|
3069
|
+
lngSelect: sd,
|
|
3070
|
+
addLng: cd,
|
|
3071
|
+
fileSelect: dd,
|
|
3072
|
+
searchBox: ud
|
|
3073
|
+
}, wn = 50, md = (e, t) => {
|
|
3075
3074
|
const n = t.split(".");
|
|
3076
3075
|
let a = e;
|
|
3077
3076
|
for (let o = 0; o < n.length; o++) {
|
|
@@ -3082,7 +3081,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3082
3081
|
return;
|
|
3083
3082
|
a = i;
|
|
3084
3083
|
}
|
|
3085
|
-
},
|
|
3084
|
+
}, Kh = ({ languageOptions: e, envMode: t, getOtherSettingsUrl: n, downloadXls: a, saveChanges: o, localizationFilesOptions: l, remoteLocalesRoot: i }) => {
|
|
3086
3085
|
const { texts: { localizations: s }, ProjectIconComponent: c } = F(G), [d, u] = L(1), [m, f] = L(/* @__PURE__ */ new Map()), [p, h] = L(null), [w, v] = L(""), [b, x] = L(/* @__PURE__ */ new Set()), C = D((O) => {
|
|
3087
3086
|
f(/* @__PURE__ */ new Map()), x(O);
|
|
3088
3087
|
}, []), N = j(() => e.filter((O) => !b.has(O.id)), [b, e]), y = j(() => {
|
|
@@ -3108,7 +3107,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3108
3107
|
const Q = m.get(H);
|
|
3109
3108
|
return [
|
|
3110
3109
|
H,
|
|
3111
|
-
(Q === void 0 ? void 0 :
|
|
3110
|
+
(Q === void 0 ? void 0 : md(Q, B)) ?? ""
|
|
3112
3111
|
];
|
|
3113
3112
|
}))
|
|
3114
3113
|
}));
|
|
@@ -3165,7 +3164,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3165
3164
|
y.length === 0 || S.length === 0 ? /* @__PURE__ */ r(ze, { variant: "warning", className: I(Te.tableFullWidth, Te.emptyTableAlert, "my-n1"), children: y.length === 0 ? s.noDataLoaded : S.length === 0 ? s.noDataFiltered : null }) : null,
|
|
3166
3165
|
S.slice(wn * (d - 1), wn * d).map((O) => /* @__PURE__ */ g("div", { className: I(Te.subgrid, Te.tableItem), children: [
|
|
3167
3166
|
/* @__PURE__ */ r($, { variant: "form-label", children: O.key }),
|
|
3168
|
-
Array.from(b).map((E) => /* @__PURE__ */ r(
|
|
3167
|
+
Array.from(b).map((E) => /* @__PURE__ */ r(ed, { localizationKey: O.key, lngsData: m, selLng: E, reloadData: T, saveChanges: o }, E))
|
|
3169
3168
|
] }, O.key))
|
|
3170
3169
|
] }),
|
|
3171
3170
|
/* @__PURE__ */ g("div", { className: I("d-flex align-items-center justify-content-around gap-3 px-2 py-0", Te.tableFooter), children: [
|
|
@@ -3182,7 +3181,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3182
3181
|
] }),
|
|
3183
3182
|
/* @__PURE__ */ g("div", { className: "d-flex align-items-center gap-1", children: [
|
|
3184
3183
|
/* @__PURE__ */ r(J, { size: "sm", onClick: () => k(d - 1), children: /* @__PURE__ */ r(c, { icon: "minus" }) }),
|
|
3185
|
-
/* @__PURE__ */ r("div", { style: { width: 30 }, children: /* @__PURE__ */ r(
|
|
3184
|
+
/* @__PURE__ */ r("div", { style: { width: 30 }, children: /* @__PURE__ */ r(ic, { value: d, onChange: k, InputContainer: Se, withoutLabel: !0, size: "sm" }) }),
|
|
3186
3185
|
/* @__PURE__ */ g($, { variant: "body", children: [
|
|
3187
3186
|
"/",
|
|
3188
3187
|
Math.ceil(S.length / wn)
|
|
@@ -3231,35 +3230,35 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3231
3230
|
return U(() => {
|
|
3232
3231
|
m();
|
|
3233
3232
|
}, [m]), { isLoading: i, searchItems: p };
|
|
3234
|
-
},
|
|
3235
|
-
inputGroup:
|
|
3236
|
-
inputGroupText:
|
|
3237
|
-
left:
|
|
3238
|
-
right:
|
|
3239
|
-
input:
|
|
3240
|
-
submitButton:
|
|
3241
|
-
},
|
|
3242
|
-
dropdown:
|
|
3243
|
-
open:
|
|
3244
|
-
loadingContainer:
|
|
3245
|
-
groupsContainer:
|
|
3246
|
-
group:
|
|
3247
|
-
header:
|
|
3248
|
-
item:
|
|
3249
|
-
},
|
|
3233
|
+
}, fd = "_input-group_1hcpm_1", hd = "_input-group-text_1hcpm_5", pd = "_left_1hcpm_9", gd = "_right_1hcpm_13", vd = "_input_1hcpm_1", yd = "_submit-button_1hcpm_20", bt = {
|
|
3234
|
+
inputGroup: fd,
|
|
3235
|
+
inputGroupText: hd,
|
|
3236
|
+
left: pd,
|
|
3237
|
+
right: gd,
|
|
3238
|
+
input: vd,
|
|
3239
|
+
submitButton: yd
|
|
3240
|
+
}, bd = ({ searchTypes: e, selectedType: t, setSelectedType: n }) => /* @__PURE__ */ r(gt, { toggle: /* @__PURE__ */ r(vt, { as: Tt, icon: null, text: t == null ? void 0 : t.text }), children: e.map((a) => /* @__PURE__ */ r(Re, { icon: null, onClick: () => n(a.key), children: a.text }, a.key)) }), wd = "_dropdown_1ddrg_1", Nd = "_open_1ddrg_12", xd = "_loading-container_1ddrg_15", Sd = "_groups-container_1ddrg_22", Cd = "_group_1ddrg_22", kd = "_header_1ddrg_26", Id = "_item_1ddrg_33", St = {
|
|
3241
|
+
dropdown: wd,
|
|
3242
|
+
open: Nd,
|
|
3243
|
+
loadingContainer: xd,
|
|
3244
|
+
groupsContainer: Sd,
|
|
3245
|
+
group: Cd,
|
|
3246
|
+
header: kd,
|
|
3247
|
+
item: Id
|
|
3248
|
+
}, _d = ({ item: e, searchTypes: t, onCancel: n }) => {
|
|
3250
3249
|
const a = j(() => t.find((i) => i.key === e.type), [e.type, t]), o = j(() => Ko(e, a, t), [e, a, t]), l = j(() => Qo(e, a), [e, a]);
|
|
3251
|
-
return /* @__PURE__ */ g(Oe, { to: o, className: I("search-item d-flex gap-3 align-items-center justify-content-between",
|
|
3250
|
+
return /* @__PURE__ */ g(Oe, { to: o, className: I("search-item d-flex gap-3 align-items-center justify-content-between", St.item), onClick: n, children: [
|
|
3252
3251
|
/* @__PURE__ */ r($, { variant: "body2", className: "text-nowrap text-truncate", children: l }),
|
|
3253
3252
|
/* @__PURE__ */ r($, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ r(el, {}) })
|
|
3254
3253
|
] });
|
|
3255
|
-
},
|
|
3254
|
+
}, Dd = ({ show: e, query: t, onCancel: n, groups: a, isLoading: o, searchTypes: l }) => {
|
|
3256
3255
|
const { texts: { appSearch: i } } = F(G), s = ge(null);
|
|
3257
|
-
return tl([s], n), /* @__PURE__ */ r("div", { ref: s, className: I("luminus-app-search-dropdown shadow rounded",
|
|
3258
|
-
[
|
|
3259
|
-
}), children: o ? /* @__PURE__ */ r("div", { className:
|
|
3256
|
+
return tl([s], n), /* @__PURE__ */ r("div", { ref: s, className: I("luminus-app-search-dropdown shadow rounded", St.dropdown, {
|
|
3257
|
+
[St.open]: e
|
|
3258
|
+
}), children: o ? /* @__PURE__ */ r("div", { className: St.loadingContainer, children: /* @__PURE__ */ r(nl, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ r("div", { className: St.groupsContainer, children: a == null ? void 0 : a.map((c) => {
|
|
3260
3259
|
var d;
|
|
3261
|
-
return /* @__PURE__ */ g("div", { className: I(
|
|
3262
|
-
/* @__PURE__ */ g(Oe, { to: `/search?query=${t}&type=${c.key.category}`, className: I("group-header",
|
|
3260
|
+
return /* @__PURE__ */ g("div", { className: I(St.group), children: [
|
|
3261
|
+
/* @__PURE__ */ g(Oe, { to: `/search?query=${t}&type=${c.key.category}`, className: I("group-header", St.header), onClick: n, children: [
|
|
3263
3262
|
/* @__PURE__ */ r($, { variant: "body", className: "text-primary", children: c.key.categoryName }),
|
|
3264
3263
|
/* @__PURE__ */ g($, { variant: "caption", children: [
|
|
3265
3264
|
c.items.length,
|
|
@@ -3270,7 +3269,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3270
3269
|
] })
|
|
3271
3270
|
] }),
|
|
3272
3271
|
(d = c.items) == null ? void 0 : d.map((u, m) => /* @__PURE__ */ r(
|
|
3273
|
-
|
|
3272
|
+
_d,
|
|
3274
3273
|
{
|
|
3275
3274
|
item: u,
|
|
3276
3275
|
onCancel: n,
|
|
@@ -3280,7 +3279,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3280
3279
|
))
|
|
3281
3280
|
] }, c.key.category);
|
|
3282
3281
|
}) }) });
|
|
3283
|
-
},
|
|
3282
|
+
}, Qh = ({ searchTypes: e, navigateFunction: t, currentPath: n, homePath: a = "/", className: o, staticAppItems: l, searchEndpointUri: i }) => {
|
|
3284
3283
|
var N;
|
|
3285
3284
|
const { texts: { appSearch: s } } = F(G), [c, d] = L(e.length > 0 ? ((N = e.at(0)) == null ? void 0 : N.key) ?? null : null), u = j(() => e.find((y) => y.key === c) ?? null, [e, c]), [m, f] = L(""), [p, h] = kr(encodeURIComponent(m), 500), { isLoading: w, searchItems: v } = Xo(c, p, i, !1, l), [b, x] = L(!1);
|
|
3286
3285
|
U(() => {
|
|
@@ -3292,22 +3291,22 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3292
3291
|
f(""), n === a && ((y = C.current) == null || y.focus());
|
|
3293
3292
|
}, [n, a]), /* @__PURE__ */ r(ie, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: (y) => {
|
|
3294
3293
|
y.preventDefault(), y.stopPropagation(), h.flush(), x(!1), p.length > 2 && t(`/search?query=${p}${u && u.key && `&type=${u == null ? void 0 : u.key}`}`);
|
|
3295
|
-
}, children: /* @__PURE__ */ g(In, { className: I(
|
|
3296
|
-
/* @__PURE__ */ r(In.Text, { className: I("p-1 rounded",
|
|
3297
|
-
/* @__PURE__ */ r(ie.Control, { ref: C, placeholder: s.searchPlaceholder, type: "text", size: "sm", className: I("luminus-app-search-input",
|
|
3294
|
+
}, children: /* @__PURE__ */ g(In, { className: I(bt.inputGroup, o), children: [
|
|
3295
|
+
/* @__PURE__ */ r(In.Text, { className: I("p-1 rounded", bt.inputGroupText, bt.left), children: /* @__PURE__ */ r(bd, { searchTypes: e, selectedType: u, setSelectedType: d }) }),
|
|
3296
|
+
/* @__PURE__ */ r(ie.Control, { ref: C, placeholder: s.searchPlaceholder, type: "text", size: "sm", className: I("luminus-app-search-input", bt.input), value: m, onChange: (y) => {
|
|
3298
3297
|
var S;
|
|
3299
3298
|
return f(((S = y.target) == null ? void 0 : S.value) ?? "");
|
|
3300
3299
|
}, onFocus: () => v.length > 0 && x(!0) }),
|
|
3301
|
-
/* @__PURE__ */ r(In.Text, { className: I("p-0 rounded",
|
|
3302
|
-
/* @__PURE__ */ r(
|
|
3300
|
+
/* @__PURE__ */ r(In.Text, { className: I("p-0 rounded", bt.inputGroupText, bt.right), children: /* @__PURE__ */ r("button", { type: "submit", className: I("text-primary", bt.submitButton), children: /* @__PURE__ */ r(rl, {}) }) }),
|
|
3301
|
+
/* @__PURE__ */ r(Dd, { query: p, searchTypes: e, show: b, onCancel: () => x(!1), groups: v, isLoading: w })
|
|
3303
3302
|
] }) });
|
|
3304
|
-
},
|
|
3303
|
+
}, Td = ({ item: e, searchTypes: t }) => {
|
|
3305
3304
|
const { ProjectIconComponent: n } = F(G), a = j(() => t.find((i) => i.key === e.type), [e.type, t]), o = j(() => Ko(e, a, t), [e, a, t]), l = j(() => Qo(e, a), [e, a]);
|
|
3306
3305
|
return /* @__PURE__ */ g(Oe, { to: o, className: "text-nowrap list-group-item list-group-item-action d-flex justify-content-between align-items-center", children: [
|
|
3307
3306
|
/* @__PURE__ */ r($, { variant: "body", children: l }),
|
|
3308
3307
|
/* @__PURE__ */ r(n, { icon: "chevron-right", className: "text-primary" })
|
|
3309
3308
|
] });
|
|
3310
|
-
},
|
|
3309
|
+
}, Xh = ({ query: e, type: t, appSearchTypes: n, searchEndpointUri: a, staticAppItems: o }) => {
|
|
3311
3310
|
var u, m;
|
|
3312
3311
|
const { texts: { appSearch: l } } = F(G), [i, s] = L(""), { searchItems: c, isLoading: d } = Xo(t, e, a, !0, o);
|
|
3313
3312
|
return U(() => {
|
|
@@ -3318,16 +3317,16 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3318
3317
|
var p, h;
|
|
3319
3318
|
return /* @__PURE__ */ r(Go, { eventKey: ((p = f.key) == null ? void 0 : p.category) ?? "", children: ((h = f.key) == null ? void 0 : h.categoryName) ?? "" }, f.key.category);
|
|
3320
3319
|
}) }),
|
|
3321
|
-
/* @__PURE__ */ r(
|
|
3320
|
+
/* @__PURE__ */ r(Sc, { eventKey: i, activeTab: i, fullHeightNoOverflow: !0, children: /* @__PURE__ */ r("div", { className: "list-group h-100 overflow-auto", children: (m = (u = c.find((f) => f.key.category === i)) == null ? void 0 : u.items) == null ? void 0 : m.map((f, p) => (
|
|
3322
3321
|
// eslint-disable-next-line react/no-array-index-key
|
|
3323
|
-
/* @__PURE__ */ r(
|
|
3322
|
+
/* @__PURE__ */ r(Td, { item: f, searchTypes: n }, p)
|
|
3324
3323
|
)) }) })
|
|
3325
3324
|
] }) });
|
|
3326
|
-
},
|
|
3325
|
+
}, Zh = () => {
|
|
3327
3326
|
const { texts: { userSettings: e } } = F(G), [t, n] = an("file-download-try-opening", !0);
|
|
3328
|
-
return /* @__PURE__ */ r(
|
|
3329
|
-
},
|
|
3330
|
-
const { texts: { userSettings: o } } = F(G), { zStringRequired: l } = jn(), { addNotification: i } =
|
|
3327
|
+
return /* @__PURE__ */ r(It, { collapsible: !0, title: e.downloads, defaultOpen: !0, children: /* @__PURE__ */ r(on, { type: "switch", value: t === void 0 ? !0 : t, onChange: n, label: e.tryOpenFileLabel }) });
|
|
3328
|
+
}, Ed = ({ show: e, handleClose: t, onConfirm: n, apiCreateBackup: a }) => {
|
|
3329
|
+
const { texts: { userSettings: o } } = F(G), { zStringRequired: l } = jn(), { addNotification: i } = Dt(), s = je(), { startLoading: c, stopLoading: d } = F(Ze), [u, m] = L(null), f = io.object({
|
|
3331
3330
|
name: l()
|
|
3332
3331
|
}), p = Fn({ resolver: Mn(f) }), h = D(async (v, b) => (c("localStorageSettingPost"), s.post(a, {
|
|
3333
3332
|
name: v,
|
|
@@ -3336,7 +3335,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3336
3335
|
await h(v.name, JSON.stringify(u)) && (i(o.localStorageCreateBackupSuccess, "success"), n());
|
|
3337
3336
|
};
|
|
3338
3337
|
return U(() => {
|
|
3339
|
-
e && m(
|
|
3338
|
+
e && m(Gl());
|
|
3340
3339
|
}, [e]), /* @__PURE__ */ g(re, { show: e, onHide: () => t(), children: [
|
|
3341
3340
|
/* @__PURE__ */ r(re.Header, { closeButton: !0, children: /* @__PURE__ */ r(re.Title, { children: o.localStorageCreateBackup }) }),
|
|
3342
3341
|
/* @__PURE__ */ r(Bn, { ...p, children: /* @__PURE__ */ g(ie, { onSubmit: p.handleSubmit(w), noValidate: !0, children: [
|
|
@@ -3351,13 +3350,13 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3351
3350
|
apiGetBackups: "/localStorageSettings",
|
|
3352
3351
|
apiCreateBackup: "/localStorageSettings",
|
|
3353
3352
|
apiDeleteBackup: "/localStorageSettings"
|
|
3354
|
-
},
|
|
3355
|
-
const { ProjectIconComponent: a, texts: { userSettings: o } } = F(G), { confirm: l } = ot(), i = je(), { startLoading: s, stopLoading: c } = F(Ze), { addNotification: d } =
|
|
3353
|
+
}, Jh = ({ apiUrls: { apiGetBackups: e = Nn.apiGetBackups, apiCreateBackup: t = Nn.apiCreateBackup, apiDeleteBackup: n = Nn.apiDeleteBackup } = Nn }) => {
|
|
3354
|
+
const { ProjectIconComponent: a, texts: { userSettings: o } } = F(G), { confirm: l } = ot(), i = je(), { startLoading: s, stopLoading: c } = F(Ze), { addNotification: d } = Dt(), [u, m] = L(!1), { data: f, setData: p, reloadData: h } = De(e), w = D(async (x) => (s("localStorageSettingDelete"), i.delete(`${n}/${x}`).then(() => !0).catch(() => !1).finally(() => c("localStorageSettingDelete"))), [i, n, s, c]), v = D(async (x) => {
|
|
3356
3355
|
await l(o.localStorageDeleteBackupConfirm) && await w(x) && (d(o.localStorageDeleteBackupSuccess, "success"), p((C) => (C == null ? void 0 : C.filter((N) => N.id !== x)) ?? null));
|
|
3357
3356
|
}, [l, o, w, d, p]), b = D(async (x) => {
|
|
3358
|
-
x.setting && await l(o.localStorageLoadBackup) && (
|
|
3357
|
+
x.setting && await l(o.localStorageLoadBackup) && (Yl(x.setting) ? d(o.localStorageLoadBackupSuccess, "success") : d(o.localStorageLoadBackupError, "danger"));
|
|
3359
3358
|
}, [l, o, d]);
|
|
3360
|
-
return /* @__PURE__ */ g(
|
|
3359
|
+
return /* @__PURE__ */ g(It, { collapsible: !0, title: o.localStorage, defaultOpen: !0, children: [
|
|
3361
3360
|
/* @__PURE__ */ r(Ge, { className: "mb-2", onClick: () => m(!0), children: o.localStorageCreateBackup }),
|
|
3362
3361
|
f && f.length > 0 ? /* @__PURE__ */ r("div", { className: "list-group", children: f.map((x, C) => /* @__PURE__ */ g(
|
|
3363
3362
|
"div",
|
|
@@ -3377,21 +3376,21 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3377
3376
|
},
|
|
3378
3377
|
C
|
|
3379
3378
|
)) }) : f ? /* @__PURE__ */ r(ze, { variant: "secondary", size: "sm", children: o.localStorageNoBackups }) : null,
|
|
3380
|
-
/* @__PURE__ */ r(
|
|
3379
|
+
/* @__PURE__ */ r(Ed, { show: u, handleClose: () => m(!1), onConfirm: () => {
|
|
3381
3380
|
m(!1), h();
|
|
3382
3381
|
}, apiCreateBackup: t })
|
|
3383
3382
|
] });
|
|
3384
|
-
},
|
|
3383
|
+
}, ep = () => {
|
|
3385
3384
|
const { texts: { userSettings: e } } = F(G), [t, n] = an("search-use-asterisk", !0);
|
|
3386
|
-
return /* @__PURE__ */ r(
|
|
3387
|
-
},
|
|
3388
|
-
widgetsRow:
|
|
3389
|
-
widget:
|
|
3390
|
-
widgetImg:
|
|
3391
|
-
widgetTitleSpacer:
|
|
3392
|
-
widgetTitle:
|
|
3393
|
-
title:
|
|
3394
|
-
},
|
|
3385
|
+
return /* @__PURE__ */ r(It, { collapsible: !0, title: e.searchSettings, defaultOpen: !0, children: /* @__PURE__ */ r(on, { type: "switch", value: t === void 0 ? !0 : t, onChange: n, label: e.searchSettingsUseAsterisk }) });
|
|
3386
|
+
}, Od = "_widgets-row_13gg1_1", $d = "_widget_13gg1_1", Ld = "_widget-img_13gg1_5", Ad = "_widget-title-spacer_13gg1_14", Rd = "_widget-title_13gg1_14", jd = "_title_13gg1_28", Fe = {
|
|
3387
|
+
widgetsRow: Od,
|
|
3388
|
+
widget: $d,
|
|
3389
|
+
widgetImg: Ld,
|
|
3390
|
+
widgetTitleSpacer: Ad,
|
|
3391
|
+
widgetTitle: Rd,
|
|
3392
|
+
title: jd
|
|
3393
|
+
}, Md = ({ show: e, widgetGroups: t, widgets: n, handleClose: a, onWidgetPicked: o, texts: l }) => {
|
|
3395
3394
|
const [i, s] = L(""), c = j(() => n.filter((u) => u.id !== -1 && Ae(u.name, i)), [n, i]), d = j(() => t.filter((u) => c.some((m) => m.group === u.id)), [t, c]);
|
|
3396
3395
|
return /* @__PURE__ */ g(re, { show: e, onHide: () => a(), size: "lg", children: [
|
|
3397
3396
|
/* @__PURE__ */ g(re.Header, { closeButton: !0, children: [
|
|
@@ -3418,30 +3417,30 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3418
3417
|
] }, u.id) })) }) }) })
|
|
3419
3418
|
] }) })
|
|
3420
3419
|
] });
|
|
3421
|
-
},
|
|
3422
|
-
widget:
|
|
3423
|
-
mobile:
|
|
3420
|
+
}, Pd = "_widget_19xgl_1", Fd = "_mobile_19xgl_7", ga = {
|
|
3421
|
+
widget: Pd,
|
|
3422
|
+
mobile: Fd
|
|
3424
3423
|
}, Zo = ({ widgetGroups: e, availableWidgets: t, onAdd: n, texts: a }) => {
|
|
3425
3424
|
const [o, l] = L(!1), { isMobile: i } = Rn();
|
|
3426
3425
|
return /* @__PURE__ */ g(Z, { children: [
|
|
3427
3426
|
/* @__PURE__ */ r("div", { className: I("luminus-empty-widget", ga.widget, {
|
|
3428
3427
|
[ga.mobile]: i
|
|
3429
3428
|
}), children: /* @__PURE__ */ r(J, { onClick: () => l(!0), children: /* @__PURE__ */ r(al, {}) }) }),
|
|
3430
|
-
/* @__PURE__ */ r(
|
|
3429
|
+
/* @__PURE__ */ r(Md, { show: o, widgetGroups: e, widgets: t, handleClose: () => l(!1), onWidgetPicked: (s) => {
|
|
3431
3430
|
l(!1), n(s);
|
|
3432
3431
|
}, texts: a })
|
|
3433
3432
|
] });
|
|
3434
|
-
},
|
|
3435
|
-
dashboard:
|
|
3436
|
-
widgetsGrid:
|
|
3437
|
-
widgetWrapper:
|
|
3438
|
-
fullWidth:
|
|
3439
|
-
widgetEdit:
|
|
3440
|
-
removeIcon:
|
|
3441
|
-
fullWidthIcon:
|
|
3442
|
-
widgetEditOverlay:
|
|
3443
|
-
mobile:
|
|
3444
|
-
},
|
|
3433
|
+
}, Bd = "_dashboard_1gf59_1", zd = "_widgets-grid_1gf59_1", Hd = "_widget-wrapper_1gf59_8", Vd = "_full-width_1gf59_13", Ud = "_widget-edit_1gf59_16", Wd = "_remove-icon_1gf59_19", Gd = "_full-width-icon_1gf59_26", Yd = "_widget-edit-overlay_1gf59_36", qd = "_mobile_1gf59_45", Xe = {
|
|
3434
|
+
dashboard: Bd,
|
|
3435
|
+
widgetsGrid: zd,
|
|
3436
|
+
widgetWrapper: Hd,
|
|
3437
|
+
fullWidth: Vd,
|
|
3438
|
+
widgetEdit: Ud,
|
|
3439
|
+
removeIcon: Wd,
|
|
3440
|
+
fullWidthIcon: Gd,
|
|
3441
|
+
widgetEditOverlay: Yd,
|
|
3442
|
+
mobile: qd
|
|
3443
|
+
}, Kd = ({ widget: e, onIndex: t, fullWidth: n, editMode: a, widgetGroups: o, availableWidgets: l, onRemove: i, onToggleFullWidth: s, onAdd: c }) => {
|
|
3445
3444
|
const { texts: { homeDashboard: d } } = F(G);
|
|
3446
3445
|
return e ? /* @__PURE__ */ g("div", { className: I(Xe.widgetWrapper, {
|
|
3447
3446
|
[Xe.widgetEdit]: a && e.id !== -1
|
|
@@ -3450,10 +3449,10 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3450
3449
|
/* @__PURE__ */ r(J, { color: "danger", onClick: () => i(t), className: I(Xe.removeIcon), children: /* @__PURE__ */ r(ol, {}) }),
|
|
3451
3450
|
/* @__PURE__ */ r(J, { color: n ? "danger" : "primary", onClick: () => s(t), className: I(Xe.fullWidthIcon), children: /* @__PURE__ */ r(il, {}) })
|
|
3452
3451
|
] }),
|
|
3453
|
-
e.id === -1 ? a && /* @__PURE__ */ r("div", { className: Xe.widgetWrapper, children: /* @__PURE__ */ r(Zo, { widgetGroups: o, availableWidgets: l, onAdd: (u) => c(t, u), texts: d }) }) : /* @__PURE__ */ r(
|
|
3452
|
+
e.id === -1 ? a && /* @__PURE__ */ r("div", { className: Xe.widgetWrapper, children: /* @__PURE__ */ r(Zo, { widgetGroups: o, availableWidgets: l, onAdd: (u) => c(t, u), texts: d }) }) : /* @__PURE__ */ r(Fm, { title: e.title, children: /* @__PURE__ */ r(e.WidgetElement, { title: e.title }) }),
|
|
3454
3453
|
e.id > -1 && a && /* @__PURE__ */ r("div", { className: Xe.widgetEditOverlay })
|
|
3455
3454
|
] }, t) : null;
|
|
3456
|
-
},
|
|
3455
|
+
}, Qd = (e, t = "dashboardConfig") => {
|
|
3457
3456
|
const [n, a] = L({ widgets: [] });
|
|
3458
3457
|
U(() => {
|
|
3459
3458
|
const l = localStorage.getItem(t);
|
|
@@ -3463,9 +3462,9 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3463
3462
|
a(l), localStorage.setItem(t, JSON.stringify(l));
|
|
3464
3463
|
}, [t]);
|
|
3465
3464
|
return { dashboardConfig: n, onChangeDashboardConfig: o };
|
|
3466
|
-
},
|
|
3465
|
+
}, tp = ({ widgetGroups: e, availableWidgets: t, editMode: n, defaultDashboardConfig: a, dashboardConfigKey: o }) => {
|
|
3467
3466
|
var f;
|
|
3468
|
-
const { texts: { homeDashboard: l } } = F(G), { dashboardConfig: i, onChangeDashboardConfig: s } =
|
|
3467
|
+
const { texts: { homeDashboard: l } } = F(G), { dashboardConfig: i, onChangeDashboardConfig: s } = Qd(a, o), c = D((p, h) => {
|
|
3469
3468
|
var w, v;
|
|
3470
3469
|
p === ((w = i.widgets) == null ? void 0 : w.length) ? s({
|
|
3471
3470
|
...i,
|
|
@@ -3489,7 +3488,7 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3489
3488
|
}, [i, s]), { isMobile: m } = Rn();
|
|
3490
3489
|
return /* @__PURE__ */ r("div", { className: I(Xe.dashboard, { [Xe.mobile]: m }), children: /* @__PURE__ */ g("div", { className: I(Xe.widgetsGrid), children: [
|
|
3491
3490
|
(f = i.widgets) == null ? void 0 : f.map((p, h) => /* @__PURE__ */ r(
|
|
3492
|
-
|
|
3491
|
+
Kd,
|
|
3493
3492
|
{
|
|
3494
3493
|
widget: t.find((w) => w.id === p.widgetId),
|
|
3495
3494
|
onIndex: h,
|
|
@@ -3508,18 +3507,18 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3508
3507
|
return c((h = i.widgets) == null ? void 0 : h.length, p);
|
|
3509
3508
|
}, texts: l })
|
|
3510
3509
|
] }) });
|
|
3511
|
-
},
|
|
3512
|
-
badge:
|
|
3513
|
-
sm:
|
|
3514
|
-
md:
|
|
3515
|
-
lg:
|
|
3516
|
-
light:
|
|
3517
|
-
},
|
|
3510
|
+
}, Xd = "_badge_193ci_1", Zd = "_sm_193ci_6", Jd = "_md_193ci_10", eu = "_lg_193ci_14", tu = "_light_193ci_18", er = {
|
|
3511
|
+
badge: Xd,
|
|
3512
|
+
sm: Zd,
|
|
3513
|
+
md: Jd,
|
|
3514
|
+
lg: eu,
|
|
3515
|
+
light: tu
|
|
3516
|
+
}, np = ({ children: e, color: t = "primary", size: n = "md", rounded: a, className: o, variant: l = "filled", ...i }) => {
|
|
3518
3517
|
const s = j(() => l === "filled" ? I(`bg-${t}`) : l === "outline" ? I(`text-${t} border-${t} border bg-white`) : "", [t, l]);
|
|
3519
3518
|
return /* @__PURE__ */ r("span", { className: I("luminus-badge badge", s, o, { "rounded-pill": a }, { "text-dark": t === "light" }, { [er.light]: t === "light" }, er.badge, er[n]), ...i, children: e });
|
|
3520
|
-
},
|
|
3521
|
-
collapseIcon:
|
|
3522
|
-
collapsed:
|
|
3519
|
+
}, nu = "_collapse-icon_1ahhn_1", ru = "_collapsed_1ahhn_6", va = {
|
|
3520
|
+
collapseIcon: nu,
|
|
3521
|
+
collapsed: ru
|
|
3523
3522
|
}, $n = ({ title: e, children: t, className: n, ...a }) => {
|
|
3524
3523
|
const o = a.controlled ? !1 : a.defaultOpen ?? !1, [l, i] = L(o), s = a.controlled ? a.isOpen : l;
|
|
3525
3524
|
return U(() => {
|
|
@@ -3534,42 +3533,42 @@ e.label === "", ca = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, da =
|
|
|
3534
3533
|
/* @__PURE__ */ r(Or, { in: s, children: /* @__PURE__ */ r("div", { children: t }) }),
|
|
3535
3534
|
/* @__PURE__ */ r("hr", { className: `my-0 ${s ? "mt-3" : ""}` })
|
|
3536
3535
|
] });
|
|
3537
|
-
},
|
|
3538
|
-
card:
|
|
3539
|
-
header:
|
|
3540
|
-
headerContent:
|
|
3541
|
-
title:
|
|
3542
|
-
collapseIcon:
|
|
3543
|
-
collapsed:
|
|
3544
|
-
content:
|
|
3545
|
-
},
|
|
3536
|
+
}, au = "_card_19733_1", ou = "_header_19733_6", iu = "_header-content_19733_13", lu = "_title_19733_19", su = "_collapse-icon_19733_22", cu = "_collapsed_19733_27", du = "_content_19733_30", wt = {
|
|
3537
|
+
card: au,
|
|
3538
|
+
header: ou,
|
|
3539
|
+
headerContent: iu,
|
|
3540
|
+
title: lu,
|
|
3541
|
+
collapseIcon: su,
|
|
3542
|
+
collapsed: cu,
|
|
3543
|
+
content: du
|
|
3544
|
+
}, It = ({ title: e, headerContent: t, children: n, className: a, headerClassName: o, contentClassName: l, dontRenderIfNoChildren: i, ...s }) => {
|
|
3546
3545
|
const c = s.collapsible ? s.controlled ? !1 : s.defaultOpen ?? !1 : !0, [d, u] = L(c), m = s.collapsible ? s.controlled ? s.isOpen : d : !0;
|
|
3547
3546
|
U(() => {
|
|
3548
3547
|
u(c);
|
|
3549
3548
|
}, [c]);
|
|
3550
3549
|
const f = j(() => !n || !n.toString() || n.toString().split(",").filter((p) => p && p !== "false").length === 0, [n]);
|
|
3551
|
-
return i && f ? null : /* @__PURE__ */ g("div", { className: I("luminus-card rounded shadow-sm",
|
|
3550
|
+
return i && f ? null : /* @__PURE__ */ g("div", { className: I("luminus-card rounded shadow-sm", wt.card, {
|
|
3552
3551
|
[a ?? ""]: a
|
|
3553
3552
|
}), children: [
|
|
3554
|
-
/* @__PURE__ */ g("div", { role: s.collapsible ? "button" : void 0, className: I("header",
|
|
3553
|
+
/* @__PURE__ */ g("div", { role: s.collapsible ? "button" : void 0, className: I("header", wt.header, {
|
|
3555
3554
|
[o ?? ""]: o
|
|
3556
3555
|
}), onClick: () => {
|
|
3557
3556
|
s.collapsible && (s.controlled ? s.onToggle(!s.isOpen) : u(!d));
|
|
3558
3557
|
}, children: [
|
|
3559
|
-
/* @__PURE__ */ g("div", { className: I("header-content",
|
|
3560
|
-
/* @__PURE__ */ r($, { variant: "h6", className: I("text-primary",
|
|
3558
|
+
/* @__PURE__ */ g("div", { className: I("header-content", wt.headerContent), children: [
|
|
3559
|
+
/* @__PURE__ */ r($, { variant: "h6", className: I("text-primary", wt.title), children: e }),
|
|
3561
3560
|
t ?? null
|
|
3562
3561
|
] }),
|
|
3563
|
-
s.collapsible && /* @__PURE__ */ r(lo, { className: I(
|
|
3564
|
-
[
|
|
3562
|
+
s.collapsible && /* @__PURE__ */ r(lo, { className: I(wt.collapseIcon, {
|
|
3563
|
+
[wt.collapsed]: m
|
|
3565
3564
|
}) })
|
|
3566
3565
|
] }),
|
|
3567
|
-
/* @__PURE__ */ r(Or, { in: m, children: /* @__PURE__ */ r("div", { className: I("card-content border-top border-primary",
|
|
3566
|
+
/* @__PURE__ */ r(Or, { in: m, children: /* @__PURE__ */ r("div", { className: I("card-content border-top border-primary", wt.content, {
|
|
3568
3567
|
[l ?? ""]: l
|
|
3569
3568
|
}), children: n }) })
|
|
3570
3569
|
] });
|
|
3571
3570
|
};
|
|
3572
|
-
var
|
|
3571
|
+
var uu = !!(typeof window < "u" && window.document && window.document.createElement), mu = /* @__PURE__ */ function() {
|
|
3573
3572
|
function e(t, n) {
|
|
3574
3573
|
for (var a = 0; a < n.length; a++) {
|
|
3575
3574
|
var o = n[a];
|
|
@@ -3580,26 +3579,26 @@ var du = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
3580
3579
|
return n && e(t.prototype, n), a && e(t, a), t;
|
|
3581
3580
|
};
|
|
3582
3581
|
}();
|
|
3583
|
-
function
|
|
3582
|
+
function fu(e, t) {
|
|
3584
3583
|
if (!(e instanceof t))
|
|
3585
3584
|
throw new TypeError("Cannot call a class as a function");
|
|
3586
3585
|
}
|
|
3587
|
-
function
|
|
3586
|
+
function hu(e, t) {
|
|
3588
3587
|
if (!e)
|
|
3589
3588
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3590
3589
|
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
3591
3590
|
}
|
|
3592
|
-
function
|
|
3591
|
+
function pu(e, t) {
|
|
3593
3592
|
if (typeof t != "function" && t !== null)
|
|
3594
3593
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
3595
3594
|
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);
|
|
3596
3595
|
}
|
|
3597
3596
|
var Jo = function(e) {
|
|
3598
|
-
|
|
3597
|
+
pu(t, e);
|
|
3599
3598
|
function t() {
|
|
3600
|
-
return
|
|
3599
|
+
return fu(this, t), hu(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
|
|
3601
3600
|
}
|
|
3602
|
-
return
|
|
3601
|
+
return mu(t, [{
|
|
3603
3602
|
key: "componentWillUnmount",
|
|
3604
3603
|
value: function() {
|
|
3605
3604
|
this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null;
|
|
@@ -3607,7 +3606,7 @@ var Jo = function(e) {
|
|
|
3607
3606
|
}, {
|
|
3608
3607
|
key: "render",
|
|
3609
3608
|
value: function() {
|
|
3610
|
-
return
|
|
3609
|
+
return uu ? (!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode)), On.createPortal(this.props.children, this.props.node || this.defaultNode)) : null;
|
|
3611
3610
|
}
|
|
3612
3611
|
}]), t;
|
|
3613
3612
|
}(Le.Component);
|
|
@@ -3615,7 +3614,7 @@ Jo.propTypes = {
|
|
|
3615
3614
|
children: Tn.node.isRequired,
|
|
3616
3615
|
node: Tn.any
|
|
3617
3616
|
};
|
|
3618
|
-
var
|
|
3617
|
+
var gu = /* @__PURE__ */ function() {
|
|
3619
3618
|
function e(t, n) {
|
|
3620
3619
|
for (var a = 0; a < n.length; a++) {
|
|
3621
3620
|
var o = n[a];
|
|
@@ -3626,26 +3625,26 @@ var pu = /* @__PURE__ */ function() {
|
|
|
3626
3625
|
return n && e(t.prototype, n), a && e(t, a), t;
|
|
3627
3626
|
};
|
|
3628
3627
|
}();
|
|
3629
|
-
function
|
|
3628
|
+
function vu(e, t) {
|
|
3630
3629
|
if (!(e instanceof t))
|
|
3631
3630
|
throw new TypeError("Cannot call a class as a function");
|
|
3632
3631
|
}
|
|
3633
|
-
function
|
|
3632
|
+
function yu(e, t) {
|
|
3634
3633
|
if (!e)
|
|
3635
3634
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3636
3635
|
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
3637
3636
|
}
|
|
3638
|
-
function
|
|
3637
|
+
function bu(e, t) {
|
|
3639
3638
|
if (typeof t != "function" && t !== null)
|
|
3640
3639
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
3641
3640
|
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);
|
|
3642
3641
|
}
|
|
3643
3642
|
var ei = function(e) {
|
|
3644
|
-
|
|
3643
|
+
bu(t, e);
|
|
3645
3644
|
function t() {
|
|
3646
|
-
return
|
|
3645
|
+
return vu(this, t), yu(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
|
|
3647
3646
|
}
|
|
3648
|
-
return
|
|
3647
|
+
return gu(t, [{
|
|
3649
3648
|
key: "componentDidMount",
|
|
3650
3649
|
value: function() {
|
|
3651
3650
|
this.renderPortal();
|
|
@@ -3685,21 +3684,21 @@ const ti = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: o, render
|
|
|
3685
3684
|
backgroundRepeat: "no-repeat",
|
|
3686
3685
|
backgroundPosition: "center",
|
|
3687
3686
|
backgroundSize: "contain"
|
|
3688
|
-
} }) : /* @__PURE__ */ r("img", { ...i, alt: t ?? "", src: e ?? o }),
|
|
3689
|
-
lightbox:
|
|
3690
|
-
show:
|
|
3691
|
-
header:
|
|
3692
|
-
photoActions:
|
|
3693
|
-
photoContainer:
|
|
3694
|
-
photo:
|
|
3695
|
-
navButton:
|
|
3696
|
-
photosPreviewContainer:
|
|
3697
|
-
lightboxDraggablePhoto:
|
|
3698
|
-
selected:
|
|
3699
|
-
indicators:
|
|
3700
|
-
left:
|
|
3701
|
-
right:
|
|
3702
|
-
dragging:
|
|
3687
|
+
} }) : /* @__PURE__ */ r("img", { ...i, alt: t ?? "", src: e ?? o }), wu = "_lightbox_1kenb_1", Nu = "_show_1kenb_16", xu = "_header_1kenb_20", Su = "_photo-actions_1kenb_26", Cu = "_photo-container_1kenb_31", ku = "_photo_1kenb_26", Iu = "_nav-button_1kenb_46", _u = "_photos-preview-container_1kenb_53", Du = "_lightbox-draggable-photo_1kenb_67", Tu = "_selected_1kenb_75", Eu = "_indicators_1kenb_79", Ou = "_left_1kenb_111", $u = "_right_1kenb_114", Lu = "_dragging_1kenb_125", Ee = {
|
|
3688
|
+
lightbox: wu,
|
|
3689
|
+
show: Nu,
|
|
3690
|
+
header: xu,
|
|
3691
|
+
photoActions: Su,
|
|
3692
|
+
photoContainer: Cu,
|
|
3693
|
+
photo: ku,
|
|
3694
|
+
navButton: Iu,
|
|
3695
|
+
photosPreviewContainer: _u,
|
|
3696
|
+
lightboxDraggablePhoto: Du,
|
|
3697
|
+
selected: Tu,
|
|
3698
|
+
indicators: Eu,
|
|
3699
|
+
left: Ou,
|
|
3700
|
+
right: $u,
|
|
3701
|
+
dragging: Lu
|
|
3703
3702
|
};
|
|
3704
3703
|
function cn(e) {
|
|
3705
3704
|
"@babel/helpers - typeof";
|
|
@@ -3709,7 +3708,7 @@ function cn(e) {
|
|
|
3709
3708
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3710
3709
|
}, cn(e);
|
|
3711
3710
|
}
|
|
3712
|
-
function
|
|
3711
|
+
function Au(e, t) {
|
|
3713
3712
|
if (cn(e) != "object" || !e) return e;
|
|
3714
3713
|
var n = e[Symbol.toPrimitive];
|
|
3715
3714
|
if (n !== void 0) {
|
|
@@ -3719,12 +3718,12 @@ function Lu(e, t) {
|
|
|
3719
3718
|
}
|
|
3720
3719
|
return (t === "string" ? String : Number)(e);
|
|
3721
3720
|
}
|
|
3722
|
-
function
|
|
3723
|
-
var t =
|
|
3721
|
+
function Ru(e) {
|
|
3722
|
+
var t = Au(e, "string");
|
|
3724
3723
|
return cn(t) == "symbol" ? t : t + "";
|
|
3725
3724
|
}
|
|
3726
3725
|
function hn(e, t, n) {
|
|
3727
|
-
return (t =
|
|
3726
|
+
return (t = Ru(t)) in e ? Object.defineProperty(e, t, {
|
|
3728
3727
|
value: n,
|
|
3729
3728
|
enumerable: !0,
|
|
3730
3729
|
configurable: !0,
|
|
@@ -3752,7 +3751,7 @@ function ba(e) {
|
|
|
3752
3751
|
}
|
|
3753
3752
|
return e;
|
|
3754
3753
|
}
|
|
3755
|
-
var
|
|
3754
|
+
var ju = {
|
|
3756
3755
|
top: function(t, n) {
|
|
3757
3756
|
return Math.abs(n.y - t.top);
|
|
3758
3757
|
},
|
|
@@ -3766,14 +3765,14 @@ var Ru = {
|
|
|
3766
3765
|
return Math.abs(n.x - t.left);
|
|
3767
3766
|
}
|
|
3768
3767
|
}, ni = Symbol("closestEdge");
|
|
3769
|
-
function
|
|
3768
|
+
function Mu(e, t) {
|
|
3770
3769
|
var n, a, o = t.element, l = t.input, i = t.allowedEdges, s = {
|
|
3771
3770
|
x: l.clientX,
|
|
3772
3771
|
y: l.clientY
|
|
3773
3772
|
}, c = o.getBoundingClientRect(), d = i.map(function(m) {
|
|
3774
3773
|
return {
|
|
3775
3774
|
edge: m,
|
|
3776
|
-
value:
|
|
3775
|
+
value: ju[m](c, s)
|
|
3777
3776
|
};
|
|
3778
3777
|
}), u = (n = (a = d.sort(function(m, f) {
|
|
3779
3778
|
return m.value - f.value;
|
|
@@ -3784,7 +3783,7 @@ function ri(e) {
|
|
|
3784
3783
|
var t;
|
|
3785
3784
|
return (t = e[ni]) !== null && t !== void 0 ? t : null;
|
|
3786
3785
|
}
|
|
3787
|
-
function
|
|
3786
|
+
function Pu(e) {
|
|
3788
3787
|
var t = e.startIndex, n = e.closestEdgeOfTarget, a = e.indexOfTarget;
|
|
3789
3788
|
if (t === -1 || a === -1 || t === a)
|
|
3790
3789
|
return t;
|
|
@@ -3793,10 +3792,10 @@ function Mu(e) {
|
|
|
3793
3792
|
var o = n === "right", l = t < a;
|
|
3794
3793
|
return l ? o ? a : a - 1 : o ? a + 1 : a;
|
|
3795
3794
|
}
|
|
3796
|
-
function
|
|
3795
|
+
function Fu(e) {
|
|
3797
3796
|
if (Array.isArray(e)) return e;
|
|
3798
3797
|
}
|
|
3799
|
-
function
|
|
3798
|
+
function Bu(e, t) {
|
|
3800
3799
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3801
3800
|
if (n != null) {
|
|
3802
3801
|
var a, o, l, i, s = [], c = !0, d = !1;
|
|
@@ -3826,12 +3825,12 @@ function ai(e, t) {
|
|
|
3826
3825
|
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? pr(e, t) : void 0;
|
|
3827
3826
|
}
|
|
3828
3827
|
}
|
|
3829
|
-
function
|
|
3828
|
+
function zu() {
|
|
3830
3829
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3831
3830
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3832
3831
|
}
|
|
3833
3832
|
function oi(e, t) {
|
|
3834
|
-
return
|
|
3833
|
+
return Fu(e) || Bu(e, t) || ai(e, t) || zu();
|
|
3835
3834
|
}
|
|
3836
3835
|
var ii = "data-pdnd-honey-pot";
|
|
3837
3836
|
function li(e) {
|
|
@@ -3841,7 +3840,7 @@ function si(e) {
|
|
|
3841
3840
|
var t = document.elementsFromPoint(e.x, e.y), n = oi(t, 2), a = n[0], o = n[1];
|
|
3842
3841
|
return a ? li(a) ? o ?? null : a : null;
|
|
3843
3842
|
}
|
|
3844
|
-
var
|
|
3843
|
+
var Hu = 2147483647;
|
|
3845
3844
|
function wa(e, t) {
|
|
3846
3845
|
var n = Object.keys(e);
|
|
3847
3846
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -3864,32 +3863,32 @@ function Na(e) {
|
|
|
3864
3863
|
return e;
|
|
3865
3864
|
}
|
|
3866
3865
|
var dn = 2, xa = dn / 2;
|
|
3867
|
-
function
|
|
3866
|
+
function Vu(e) {
|
|
3868
3867
|
return {
|
|
3869
3868
|
x: Math.floor(e.x),
|
|
3870
3869
|
y: Math.floor(e.y)
|
|
3871
3870
|
};
|
|
3872
3871
|
}
|
|
3873
|
-
function
|
|
3872
|
+
function Uu(e) {
|
|
3874
3873
|
return {
|
|
3875
3874
|
x: e.x - xa,
|
|
3876
3875
|
y: e.y - xa
|
|
3877
3876
|
};
|
|
3878
3877
|
}
|
|
3879
|
-
function
|
|
3878
|
+
function Wu(e) {
|
|
3880
3879
|
return {
|
|
3881
3880
|
x: Math.max(e.x, 0),
|
|
3882
3881
|
y: Math.max(e.y, 0)
|
|
3883
3882
|
};
|
|
3884
3883
|
}
|
|
3885
|
-
function
|
|
3884
|
+
function Gu(e) {
|
|
3886
3885
|
return {
|
|
3887
3886
|
x: Math.min(e.x, window.innerWidth - dn),
|
|
3888
3887
|
y: Math.min(e.y, window.innerHeight - dn)
|
|
3889
3888
|
};
|
|
3890
3889
|
}
|
|
3891
3890
|
function Sa(e) {
|
|
3892
|
-
var t = e.client, n = Wu(Uu(Vu(
|
|
3891
|
+
var t = e.client, n = Gu(Wu(Uu(Vu(t))));
|
|
3893
3892
|
return DOMRect.fromRect({
|
|
3894
3893
|
x: n.x,
|
|
3895
3894
|
y: n.y,
|
|
@@ -3906,7 +3905,7 @@ function Ca(e) {
|
|
|
3906
3905
|
height: "".concat(t.height, "px")
|
|
3907
3906
|
};
|
|
3908
3907
|
}
|
|
3909
|
-
function
|
|
3908
|
+
function Yu(e) {
|
|
3910
3909
|
var t = e.client, n = e.clientRect;
|
|
3911
3910
|
return (
|
|
3912
3911
|
// is within horizontal bounds
|
|
@@ -3914,7 +3913,7 @@ function Gu(e) {
|
|
|
3914
3913
|
t.y >= n.y && t.y <= n.y + n.height
|
|
3915
3914
|
);
|
|
3916
3915
|
}
|
|
3917
|
-
function
|
|
3916
|
+
function qu(e) {
|
|
3918
3917
|
var t = e.initial, n = document.createElement("div");
|
|
3919
3918
|
n.setAttribute(ii, "true");
|
|
3920
3919
|
var a = Sa({
|
|
@@ -3940,7 +3939,7 @@ function Yu(e) {
|
|
|
3940
3939
|
// Want to make sure the honey pot is top of everything else.
|
|
3941
3940
|
// Don't need to worry about native drag previews, as they will
|
|
3942
3941
|
// have been rendered (and removed) before the honey pot is rendered
|
|
3943
|
-
zIndex:
|
|
3942
|
+
zIndex: Hu
|
|
3944
3943
|
})), document.body.appendChild(n);
|
|
3945
3944
|
var o = rn.bind(window, {
|
|
3946
3945
|
type: "pointermove",
|
|
@@ -3962,7 +3961,7 @@ function Yu(e) {
|
|
|
3962
3961
|
});
|
|
3963
3962
|
return function(i) {
|
|
3964
3963
|
var s = i.current;
|
|
3965
|
-
if (o(),
|
|
3964
|
+
if (o(), Yu({
|
|
3966
3965
|
client: s,
|
|
3967
3966
|
clientRect: a
|
|
3968
3967
|
})) {
|
|
@@ -4014,7 +4013,7 @@ function Yu(e) {
|
|
|
4014
4013
|
});
|
|
4015
4014
|
};
|
|
4016
4015
|
}
|
|
4017
|
-
function
|
|
4016
|
+
function Ku() {
|
|
4018
4017
|
var e = null;
|
|
4019
4018
|
function t() {
|
|
4020
4019
|
return e = null, rn.bind(window, {
|
|
@@ -4041,7 +4040,7 @@ function qu() {
|
|
|
4041
4040
|
x: c.clientX,
|
|
4042
4041
|
y: c.clientY
|
|
4043
4042
|
};
|
|
4044
|
-
a =
|
|
4043
|
+
a = qu({
|
|
4045
4044
|
initial: d
|
|
4046
4045
|
});
|
|
4047
4046
|
}
|
|
@@ -4061,35 +4060,35 @@ function qu() {
|
|
|
4061
4060
|
getOnPostDispatch: n
|
|
4062
4061
|
};
|
|
4063
4062
|
}
|
|
4064
|
-
function
|
|
4063
|
+
function Qu(e) {
|
|
4065
4064
|
if (Array.isArray(e)) return pr(e);
|
|
4066
4065
|
}
|
|
4067
|
-
function
|
|
4066
|
+
function Xu(e) {
|
|
4068
4067
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
4069
4068
|
}
|
|
4070
|
-
function
|
|
4069
|
+
function Zu() {
|
|
4071
4070
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4072
4071
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4073
4072
|
}
|
|
4074
4073
|
function ci(e) {
|
|
4075
|
-
return
|
|
4074
|
+
return Qu(e) || Xu(e) || ai(e) || Zu();
|
|
4076
4075
|
}
|
|
4077
|
-
var
|
|
4076
|
+
var Ju = fn(function() {
|
|
4078
4077
|
return process.env.NODE_ENV === "test" ? !1 : navigator.userAgent.includes("Firefox");
|
|
4079
4078
|
});
|
|
4080
|
-
function Ju(e) {
|
|
4081
|
-
return "nodeName" in e;
|
|
4082
|
-
}
|
|
4083
4079
|
function em(e) {
|
|
4084
|
-
return
|
|
4080
|
+
return "nodeName" in e;
|
|
4085
4081
|
}
|
|
4086
4082
|
function tm(e) {
|
|
4083
|
+
return em(e) && e.ownerDocument !== document;
|
|
4084
|
+
}
|
|
4085
|
+
function nm(e) {
|
|
4087
4086
|
var t = e.dragLeave, n = t.type, a = t.relatedTarget;
|
|
4088
4087
|
return n !== "dragleave" ? !1 : ll() ? sl({
|
|
4089
4088
|
dragLeave: t
|
|
4090
|
-
}) : a == null ? !0 :
|
|
4089
|
+
}) : a == null ? !0 : Ju() ? tm(a) : a instanceof HTMLIFrameElement;
|
|
4091
4090
|
}
|
|
4092
|
-
function
|
|
4091
|
+
function rm(e) {
|
|
4093
4092
|
var t = e.onDragEnd;
|
|
4094
4093
|
return [
|
|
4095
4094
|
// ## Detecting drag ending for removed draggables
|
|
@@ -4153,10 +4152,10 @@ var gr = {
|
|
|
4153
4152
|
function di() {
|
|
4154
4153
|
return !gr.isActive;
|
|
4155
4154
|
}
|
|
4156
|
-
function
|
|
4155
|
+
function am(e) {
|
|
4157
4156
|
return e.dataTransfer ? e.dataTransfer.setDragImage.bind(e.dataTransfer) : null;
|
|
4158
4157
|
}
|
|
4159
|
-
function
|
|
4158
|
+
function om(e) {
|
|
4160
4159
|
var t = e.current, n = e.next;
|
|
4161
4160
|
if (t.length !== n.length)
|
|
4162
4161
|
return !0;
|
|
@@ -4165,11 +4164,11 @@ function am(e) {
|
|
|
4165
4164
|
return !0;
|
|
4166
4165
|
return !1;
|
|
4167
4166
|
}
|
|
4168
|
-
function
|
|
4167
|
+
function im(e) {
|
|
4169
4168
|
var t = e.event, n = e.dragType, a = e.getDropTargetsOver, o = e.dispatchEvent;
|
|
4170
4169
|
if (!di())
|
|
4171
4170
|
return;
|
|
4172
|
-
var l =
|
|
4171
|
+
var l = lm({
|
|
4173
4172
|
event: t,
|
|
4174
4173
|
dragType: n,
|
|
4175
4174
|
getDropTargetsOver: a
|
|
@@ -4188,7 +4187,7 @@ function om(e) {
|
|
|
4188
4187
|
initial: l
|
|
4189
4188
|
});
|
|
4190
4189
|
function c(p) {
|
|
4191
|
-
var h =
|
|
4190
|
+
var h = om({
|
|
4192
4191
|
current: i.current.dropTargets,
|
|
4193
4192
|
next: p.dropTargets
|
|
4194
4193
|
});
|
|
@@ -4247,7 +4246,7 @@ function om(e) {
|
|
|
4247
4246
|
}, {
|
|
4248
4247
|
type: "dragleave",
|
|
4249
4248
|
listener: function(h) {
|
|
4250
|
-
|
|
4249
|
+
nm({
|
|
4251
4250
|
dragLeave: h
|
|
4252
4251
|
}) && (c({
|
|
4253
4252
|
input: i.current.input,
|
|
@@ -4290,7 +4289,7 @@ function om(e) {
|
|
|
4290
4289
|
input: en(h)
|
|
4291
4290
|
}, u();
|
|
4292
4291
|
}
|
|
4293
|
-
}].concat(ci(
|
|
4292
|
+
}].concat(ci(rm({
|
|
4294
4293
|
onDragEnd: u
|
|
4295
4294
|
}))),
|
|
4296
4295
|
// Once we have started a managed drag operation it is important that we see / own all drag events
|
|
@@ -4302,14 +4301,14 @@ function om(e) {
|
|
|
4302
4301
|
}
|
|
4303
4302
|
);
|
|
4304
4303
|
s.start({
|
|
4305
|
-
nativeSetDragImage:
|
|
4304
|
+
nativeSetDragImage: am(t)
|
|
4306
4305
|
});
|
|
4307
4306
|
}
|
|
4308
4307
|
function tr(e) {
|
|
4309
4308
|
var t, n = e.event, a = e.current, o = (t = a[0]) === null || t === void 0 ? void 0 : t.dropEffect;
|
|
4310
4309
|
o != null && n.dataTransfer && (n.dataTransfer.dropEffect = o);
|
|
4311
4310
|
}
|
|
4312
|
-
function
|
|
4311
|
+
function lm(e) {
|
|
4313
4312
|
var t = e.event, n = e.dragType, a = e.getDropTargetsOver, o = en(t);
|
|
4314
4313
|
if (n.startedFrom === "external")
|
|
4315
4314
|
return {
|
|
@@ -4329,9 +4328,9 @@ function im(e) {
|
|
|
4329
4328
|
}
|
|
4330
4329
|
var ka = {
|
|
4331
4330
|
canStart: di,
|
|
4332
|
-
start:
|
|
4331
|
+
start: im
|
|
4333
4332
|
}, vr = /* @__PURE__ */ new Map();
|
|
4334
|
-
function
|
|
4333
|
+
function sm(e) {
|
|
4335
4334
|
var t = e.typeKey, n = e.mount, a = vr.get(t);
|
|
4336
4335
|
if (a)
|
|
4337
4336
|
return a.usageCount++, a;
|
|
@@ -4342,8 +4341,8 @@ function lm(e) {
|
|
|
4342
4341
|
};
|
|
4343
4342
|
return vr.set(t, o), o;
|
|
4344
4343
|
}
|
|
4345
|
-
function
|
|
4346
|
-
var t =
|
|
4344
|
+
function cm(e) {
|
|
4345
|
+
var t = sm(e);
|
|
4347
4346
|
return function() {
|
|
4348
4347
|
t.usageCount--, !(t.usageCount > 0) && (t.unmount(), vr.delete(e.typeKey));
|
|
4349
4348
|
};
|
|
@@ -4387,7 +4386,7 @@ function dt(e) {
|
|
|
4387
4386
|
function nr(e, t) {
|
|
4388
4387
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
4389
4388
|
if (!n) {
|
|
4390
|
-
if (Array.isArray(e) || (n =
|
|
4389
|
+
if (Array.isArray(e) || (n = dm(e)) || t) {
|
|
4391
4390
|
n && (e = n);
|
|
4392
4391
|
var a = 0, o = function() {
|
|
4393
4392
|
};
|
|
@@ -4416,7 +4415,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4416
4415
|
}
|
|
4417
4416
|
} };
|
|
4418
4417
|
}
|
|
4419
|
-
function
|
|
4418
|
+
function dm(e, t) {
|
|
4420
4419
|
if (e) {
|
|
4421
4420
|
if (typeof e == "string") return _a(e, t);
|
|
4422
4421
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -4431,7 +4430,7 @@ function _a(e, t) {
|
|
|
4431
4430
|
function rr(e) {
|
|
4432
4431
|
return e.slice(0).reverse();
|
|
4433
4432
|
}
|
|
4434
|
-
function
|
|
4433
|
+
function um(e) {
|
|
4435
4434
|
var t = e.typeKey, n = e.defaultDropEffect, a = /* @__PURE__ */ new WeakMap(), o = "data-drop-target-for-".concat(t), l = "[".concat(o, "]");
|
|
4436
4435
|
function i(p) {
|
|
4437
4436
|
return a.set(p.element, p), function() {
|
|
@@ -4608,10 +4607,10 @@ function dm(e) {
|
|
|
4608
4607
|
dispatchEvent: m
|
|
4609
4608
|
};
|
|
4610
4609
|
}
|
|
4611
|
-
function
|
|
4610
|
+
function mm(e, t) {
|
|
4612
4611
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
4613
4612
|
if (!n) {
|
|
4614
|
-
if (Array.isArray(e) || (n =
|
|
4613
|
+
if (Array.isArray(e) || (n = fm(e)) || t) {
|
|
4615
4614
|
n && (e = n);
|
|
4616
4615
|
var a = 0, o = function() {
|
|
4617
4616
|
};
|
|
@@ -4640,7 +4639,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4640
4639
|
}
|
|
4641
4640
|
} };
|
|
4642
4641
|
}
|
|
4643
|
-
function
|
|
4642
|
+
function fm(e, t) {
|
|
4644
4643
|
if (e) {
|
|
4645
4644
|
if (typeof e == "string") return Da(e, t);
|
|
4646
4645
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -4662,7 +4661,7 @@ function Ta(e, t) {
|
|
|
4662
4661
|
}
|
|
4663
4662
|
return n;
|
|
4664
4663
|
}
|
|
4665
|
-
function
|
|
4664
|
+
function hm(e) {
|
|
4666
4665
|
for (var t = 1; t < arguments.length; t++) {
|
|
4667
4666
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
4668
4667
|
t % 2 ? Ta(Object(n), !0).forEach(function(a) {
|
|
@@ -4673,13 +4672,13 @@ function fm(e) {
|
|
|
4673
4672
|
}
|
|
4674
4673
|
return e;
|
|
4675
4674
|
}
|
|
4676
|
-
function
|
|
4675
|
+
function pm() {
|
|
4677
4676
|
var e = /* @__PURE__ */ new Set(), t = null;
|
|
4678
4677
|
function n(l) {
|
|
4679
4678
|
t && (!l.canMonitor || l.canMonitor(t.canMonitorArgs)) && t.active.add(l);
|
|
4680
4679
|
}
|
|
4681
4680
|
function a(l) {
|
|
4682
|
-
var i =
|
|
4681
|
+
var i = hm({}, l);
|
|
4683
4682
|
e.add(i), n(i);
|
|
4684
4683
|
function s() {
|
|
4685
4684
|
e.delete(i), t && t.active.delete(i);
|
|
@@ -4696,7 +4695,7 @@ function hm() {
|
|
|
4696
4695
|
},
|
|
4697
4696
|
active: /* @__PURE__ */ new Set()
|
|
4698
4697
|
};
|
|
4699
|
-
var c =
|
|
4698
|
+
var c = mm(e), d;
|
|
4700
4699
|
try {
|
|
4701
4700
|
for (c.s(); !(d = c.n()).done; ) {
|
|
4702
4701
|
var u = d.value;
|
|
@@ -4724,8 +4723,8 @@ function hm() {
|
|
|
4724
4723
|
monitorForConsumers: a
|
|
4725
4724
|
};
|
|
4726
4725
|
}
|
|
4727
|
-
function
|
|
4728
|
-
var t = e.typeKey, n = e.mount, a = e.dispatchEventToSource, o = e.onPostDispatch, l = e.defaultDropEffect, i =
|
|
4726
|
+
function gm(e) {
|
|
4727
|
+
var t = e.typeKey, n = e.mount, a = e.dispatchEventToSource, o = e.onPostDispatch, l = e.defaultDropEffect, i = pm(), s = um({
|
|
4729
4728
|
typeKey: t,
|
|
4730
4729
|
defaultDropEffect: l
|
|
4731
4730
|
});
|
|
@@ -4749,7 +4748,7 @@ function pm(e) {
|
|
|
4749
4748
|
};
|
|
4750
4749
|
return n(f);
|
|
4751
4750
|
}
|
|
4752
|
-
return
|
|
4751
|
+
return cm({
|
|
4753
4752
|
typeKey: t,
|
|
4754
4753
|
mount: m
|
|
4755
4754
|
});
|
|
@@ -4760,15 +4759,15 @@ function pm(e) {
|
|
|
4760
4759
|
monitor: i.monitorForConsumers
|
|
4761
4760
|
};
|
|
4762
4761
|
}
|
|
4763
|
-
var
|
|
4762
|
+
var vm = fn(function() {
|
|
4764
4763
|
return navigator.userAgent.toLocaleLowerCase().includes("android");
|
|
4765
|
-
}),
|
|
4766
|
-
function
|
|
4764
|
+
}), ym = "pdnd:android-fallback", Ea = "text/plain", bm = "text/uri-list", wm = "application/vnd.pdnd", un = /* @__PURE__ */ new WeakMap();
|
|
4765
|
+
function Nm(e) {
|
|
4767
4766
|
return un.set(e.element, e), function() {
|
|
4768
4767
|
un.delete(e.element);
|
|
4769
4768
|
};
|
|
4770
4769
|
}
|
|
4771
|
-
var Oa =
|
|
4770
|
+
var Oa = Ku(), mi = gm({
|
|
4772
4771
|
typeKey: "element",
|
|
4773
4772
|
defaultDropEffect: "move",
|
|
4774
4773
|
mount: function(t) {
|
|
@@ -4818,7 +4817,7 @@ var Oa = qu(), mi = pm({
|
|
|
4818
4817
|
var x = oi(b[v], 2), C = x[0], N = x[1];
|
|
4819
4818
|
a.dataTransfer.setData(C, N ?? "");
|
|
4820
4819
|
}
|
|
4821
|
-
|
|
4820
|
+
vm() && !a.dataTransfer.types.includes(Ea) && !a.dataTransfer.types.includes(bm) && a.dataTransfer.setData(Ea, ym), a.dataTransfer.setData(wm, "");
|
|
4822
4821
|
var y = {
|
|
4823
4822
|
element: m.element,
|
|
4824
4823
|
dragHandle: (s = m.dragHandle) !== null && s !== void 0 ? s : null,
|
|
@@ -4850,7 +4849,7 @@ var Oa = qu(), mi = pm({
|
|
|
4850
4849
|
},
|
|
4851
4850
|
onPostDispatch: Oa.getOnPostDispatch()
|
|
4852
4851
|
}), fi = mi.dropTarget;
|
|
4853
|
-
function
|
|
4852
|
+
function xm(e) {
|
|
4854
4853
|
if (process.env.NODE_ENV !== "production" && e.dragHandle && !e.element.contains(e.dragHandle) && console.warn("Drag handle element must be contained in draggable element", {
|
|
4855
4854
|
element: e.element,
|
|
4856
4855
|
dragHandle: e.dragHandle
|
|
@@ -4867,7 +4866,7 @@ function Nm(e) {
|
|
|
4867
4866
|
// but you _might_ not have any drop targets immediately
|
|
4868
4867
|
// (You might create drop targets async)
|
|
4869
4868
|
mi.registerUsage(),
|
|
4870
|
-
|
|
4869
|
+
Nm(e),
|
|
4871
4870
|
ui(e.element, {
|
|
4872
4871
|
attribute: "draggable",
|
|
4873
4872
|
value: "true"
|
|
@@ -4881,14 +4880,14 @@ const $a = ({ width: e }) => /* @__PURE__ */ r("div", { style: {
|
|
|
4881
4880
|
backgroundColor: "#c9c9c9",
|
|
4882
4881
|
border: "1px solid #bdbdbd",
|
|
4883
4882
|
borderRadius: "4px"
|
|
4884
|
-
} }),
|
|
4883
|
+
} }), Sm = ({ photo: e, setSelectedIndex: t, selectedIndex: n, index: a, ImgComponent: o, baseUrl: l, customToken: i, placeholder: s }) => {
|
|
4885
4884
|
var p;
|
|
4886
4885
|
const c = ge(null), [d, u] = L({
|
|
4887
4886
|
type: "idle"
|
|
4888
4887
|
}), [m, f] = L(!1);
|
|
4889
4888
|
return U(() => c.current ? Vn(fi({
|
|
4890
4889
|
element: c.current,
|
|
4891
|
-
getData: ({ input: h, element: w }) =>
|
|
4890
|
+
getData: ({ input: h, element: w }) => Mu({ photoId: e.id }, { input: h, element: w, allowedEdges: ["left", "right"] }),
|
|
4892
4891
|
onDrop: () => {
|
|
4893
4892
|
u({ type: "idle" });
|
|
4894
4893
|
},
|
|
@@ -4904,7 +4903,7 @@ const $a = ({ width: e }) => /* @__PURE__ */ r("div", { style: {
|
|
|
4904
4903
|
u({ type: "idle" });
|
|
4905
4904
|
},
|
|
4906
4905
|
getIsSticky: () => !0
|
|
4907
|
-
}),
|
|
4906
|
+
}), xm({
|
|
4908
4907
|
element: c.current,
|
|
4909
4908
|
onDragStart: () => {
|
|
4910
4909
|
f(!0);
|
|
@@ -4947,7 +4946,7 @@ const $a = ({ width: e }) => /* @__PURE__ */ r("div", { style: {
|
|
|
4947
4946
|
),
|
|
4948
4947
|
d.type === "is-over" && d.closestEdge === "right" && /* @__PURE__ */ r($a, { width: d.draggedWidth })
|
|
4949
4948
|
] });
|
|
4950
|
-
},
|
|
4949
|
+
}, Cm = ({ photos: e, setSelectedIndex: t, selectedIndex: n, ImgComponent: a, baseUrl: o, customToken: l, placeholder: i, reorderPhotos: s, onChangeOrder: c }) => {
|
|
4951
4950
|
const d = ge(null);
|
|
4952
4951
|
return U(() => {
|
|
4953
4952
|
if (!d.current)
|
|
@@ -4957,7 +4956,7 @@ const $a = ({ width: e }) => /* @__PURE__ */ r("div", { style: {
|
|
|
4957
4956
|
onDrop: (u) => {
|
|
4958
4957
|
const m = u.source.data.photoId, f = u.location.current.dropTargets[0], p = e.findIndex((b) => b.id === f.data.photoId), h = e.findIndex((b) => b.id === m), w = ri(f.data);
|
|
4959
4958
|
console.log({ indexOfTarget: p, startIndex: h, closestEdgeOfTarget: w });
|
|
4960
|
-
const v =
|
|
4959
|
+
const v = Pu({
|
|
4961
4960
|
startIndex: h,
|
|
4962
4961
|
indexOfTarget: p,
|
|
4963
4962
|
closestEdgeOfTarget: w
|
|
@@ -4965,8 +4964,8 @@ const $a = ({ width: e }) => /* @__PURE__ */ r("div", { style: {
|
|
|
4965
4964
|
console.log("drop", u), s(h, v), c && c(m, v);
|
|
4966
4965
|
}
|
|
4967
4966
|
});
|
|
4968
|
-
}, [c, e, s]), /* @__PURE__ */ r("div", { ref: d, className: "d-flex justify-content-center gap-1", children: e.map((u, m) => /* @__PURE__ */ r(
|
|
4969
|
-
},
|
|
4967
|
+
}, [c, e, s]), /* @__PURE__ */ r("div", { ref: d, className: "d-flex justify-content-center gap-1", children: e.map((u, m) => /* @__PURE__ */ r(Sm, { photo: u, setSelectedIndex: t, selectedIndex: n, index: m, ImgComponent: a, baseUrl: o, customToken: l, placeholder: i }, u.id)) });
|
|
4968
|
+
}, km = ({ show: e, onClose: t, photos: n, defaultIndex: a, uploadPhotosText: o, noPhotosText: l, onUploadPhotos: i, photoActions: s, baseUrl: c, customToken: d, placeholder: u, ImgComponent: m = ti, onChangeOrder: f }) => {
|
|
4970
4969
|
const [p, h] = L(n);
|
|
4971
4970
|
U(() => {
|
|
4972
4971
|
h(n);
|
|
@@ -5033,10 +5032,10 @@ const $a = ({ width: e }) => /* @__PURE__ */ r("div", { style: {
|
|
|
5033
5032
|
/* @__PURE__ */ r(m, { src: b.lgSrc, alt: b.alt, className: I("rounded", Ee.photo), baseUrl: c, customToken: d, placeholder: u, renderAsDivBg: !0 }),
|
|
5034
5033
|
/* @__PURE__ */ r("div", { role: C ? "button" : void 0, className: I("align-items-end", Ee.navButton, Ee.right), onClick: () => C && v((_) => _ + 1), children: C && /* @__PURE__ */ r(Nr, { style: { fontSize: "40px" } }) })
|
|
5035
5034
|
] }),
|
|
5036
|
-
/* @__PURE__ */ r("div", { className: I("d-flex justify-content-center", Ee.photosPreviewContainer), children: /* @__PURE__ */ r(
|
|
5035
|
+
/* @__PURE__ */ r("div", { className: I("d-flex justify-content-center", Ee.photosPreviewContainer), children: /* @__PURE__ */ r(Cm, { photos: p, setSelectedIndex: v, selectedIndex: w, ImgComponent: m, baseUrl: c, customToken: d, placeholder: u, reorderPhotos: y, onChangeOrder: f }) })
|
|
5037
5036
|
] }) })
|
|
5038
5037
|
] });
|
|
5039
|
-
},
|
|
5038
|
+
}, Im = ({ photos: e, onUploadPhotos: t, uploadPhotosText: n, noPhotosText: a, photoActions: o, baseUrl: l, customToken: i, placeholder: s, ImgComponent: c = ti, noLightboxOnlyButtonOnEmpty: d = !1, hideLightbox: u = !1, onChangeOrder: m }) => {
|
|
5040
5039
|
const [f, p] = L(null), h = f !== null ? e[f] : null, [w, v] = L(!1);
|
|
5041
5040
|
return U(() => {
|
|
5042
5041
|
if (e.length === 0) {
|
|
@@ -5058,25 +5057,25 @@ const $a = ({ width: e }) => /* @__PURE__ */ r("div", { style: {
|
|
|
5058
5057
|
background: "rgba(105,105,105,0.5)"
|
|
5059
5058
|
}, children: /* @__PURE__ */ r(hl, { fontSize: 24 }) })
|
|
5060
5059
|
] }) : /* @__PURE__ */ r($e, { text: n ?? "", placement: "left", children: /* @__PURE__ */ r("div", { role: "button", className: I("rounded p-3 d-flex justify-content-center"), onClick: () => v(!0), children: /* @__PURE__ */ r("img", { src: s, alt: "placeholder", className: "rounded w-25" }) }) }),
|
|
5061
|
-
/* @__PURE__ */ r(
|
|
5060
|
+
/* @__PURE__ */ r(km, { show: w && !u, onClose: () => v(!1), photos: e, defaultIndex: f ?? 0, uploadPhotosText: n, noPhotosText: a, onUploadPhotos: t, photoActions: o, baseUrl: l, customToken: i, placeholder: s, ImgComponent: c, onChangeOrder: m })
|
|
5062
5061
|
] });
|
|
5063
|
-
},
|
|
5062
|
+
}, rp = ({ children: e }) => {
|
|
5064
5063
|
var c, d, u;
|
|
5065
5064
|
const { useMsal: t, msalScopes: n, msalExtraScopes: a } = F(pl), { isAuthenticated: o } = gl(), { userLoginState: l } = F(pt), i = l.state === vl.LOGGING_IN, s = l.user && ((c = l.user) == null ? void 0 : c.permissions) && ((u = (d = l.user) == null ? void 0 : d.permissions) == null ? void 0 : u.length) > 0;
|
|
5066
5065
|
return t ? /* @__PURE__ */ r(zl, { interactionType: Bl.Redirect, authenticationRequest: { scopes: n, extraScopesToConsent: a }, children: i || !o() ? /* @__PURE__ */ r(sr, {}) : l.user ? s ? /* @__PURE__ */ r(Z, { children: e }) : /* @__PURE__ */ r(vn, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ r(vn, { to: "/no-user-login", replace: !0 }) }) : i ? /* @__PURE__ */ r(sr, {}) : !o() || !l.user ? /* @__PURE__ */ r(vn, { to: "/login", replace: !0 }) : s ? e : /* @__PURE__ */ r(vn, { to: "/user-not-permitted", replace: !0 });
|
|
5067
|
-
},
|
|
5068
|
-
item:
|
|
5066
|
+
}, _m = "_item_z9z4m_1", Dm = "_level-success_z9z4m_4", Tm = "_level-info_z9z4m_10", Em = "_level-warning_z9z4m_16", Om = "_level-danger_z9z4m_22", $m = "_type-icon_z9z4m_28", ar = {
|
|
5067
|
+
item: _m,
|
|
5069
5068
|
"level-success": "_level-success_z9z4m_4",
|
|
5070
|
-
levelSuccess:
|
|
5069
|
+
levelSuccess: Dm,
|
|
5071
5070
|
"level-info": "_level-info_z9z4m_10",
|
|
5072
|
-
levelInfo:
|
|
5071
|
+
levelInfo: Tm,
|
|
5073
5072
|
"level-warning": "_level-warning_z9z4m_16",
|
|
5074
|
-
levelWarning:
|
|
5073
|
+
levelWarning: Em,
|
|
5075
5074
|
"level-danger": "_level-danger_z9z4m_22",
|
|
5076
|
-
levelDanger:
|
|
5075
|
+
levelDanger: Om,
|
|
5077
5076
|
"type-icon": "_type-icon_z9z4m_28",
|
|
5078
|
-
typeIcon:
|
|
5079
|
-
},
|
|
5077
|
+
typeIcon: $m
|
|
5078
|
+
}, Lm = ({ level: e, children: t, customIcon: n, noIcon: a }) => {
|
|
5080
5079
|
const { ProjectIconComponent: o } = F(G), l = D(() => {
|
|
5081
5080
|
switch (e) {
|
|
5082
5081
|
case "info":
|
|
@@ -5093,7 +5092,7 @@ const $a = ({ width: e }) => /* @__PURE__ */ r("div", { style: {
|
|
|
5093
5092
|
!a && /* @__PURE__ */ r("div", { className: I(ar.typeIcon), children: n ?? l() }),
|
|
5094
5093
|
/* @__PURE__ */ r($, { variant: "body2", className: "w-100", children: t })
|
|
5095
5094
|
] });
|
|
5096
|
-
},
|
|
5095
|
+
}, ap = ({ version: e }) => /* @__PURE__ */ r("div", { className: "rounded", style: {
|
|
5097
5096
|
position: "fixed",
|
|
5098
5097
|
right: "0px",
|
|
5099
5098
|
bottom: "0px",
|
|
@@ -5104,10 +5103,10 @@ const $a = ({ width: e }) => /* @__PURE__ */ r("div", { style: {
|
|
|
5104
5103
|
}, children: /* @__PURE__ */ g($, { variant: "caption", className: "w-100 text-end", children: [
|
|
5105
5104
|
"verze ",
|
|
5106
5105
|
e
|
|
5107
|
-
] }) }),
|
|
5108
|
-
widgetCard:
|
|
5109
|
-
}, La = ({ children: e, title: t, headerContent: n }) => /* @__PURE__ */ r(
|
|
5110
|
-
class
|
|
5106
|
+
] }) }), Am = "_widget-card_e9tsb_1", Rm = {
|
|
5107
|
+
widgetCard: Am
|
|
5108
|
+
}, La = ({ children: e, title: t, headerContent: n }) => /* @__PURE__ */ r(It, { className: I(Rm.widgetCard, "luminus-widget"), title: t, headerContent: n, contentClassName: "h-100 overflow-auto", children: e });
|
|
5109
|
+
class jm extends Al {
|
|
5111
5110
|
constructor(t) {
|
|
5112
5111
|
super(t), this.state = { hasError: !1, is404Error: !1 }, this.reload = this.reload.bind(this);
|
|
5113
5112
|
}
|
|
@@ -5150,42 +5149,42 @@ class Rm extends Al {
|
|
|
5150
5149
|
] }) : a;
|
|
5151
5150
|
}
|
|
5152
5151
|
}
|
|
5153
|
-
const
|
|
5152
|
+
const Mm = (e) => (n) => {
|
|
5154
5153
|
const { texts: { errorBoundary: a } } = F(G);
|
|
5155
5154
|
return /* @__PURE__ */ r(e, { texts: a, ...n });
|
|
5156
|
-
},
|
|
5155
|
+
}, Pm = Mm(jm), Fm = ({ children: e, title: t }) => {
|
|
5157
5156
|
const { texts: { widget: n } } = F(G), a = Pn();
|
|
5158
5157
|
return U(() => {
|
|
5159
5158
|
console.log("widget wrapper mounted");
|
|
5160
|
-
}, []), /* @__PURE__ */ r(
|
|
5161
|
-
},
|
|
5162
|
-
submitContainer:
|
|
5163
|
-
spacer:
|
|
5164
|
-
},
|
|
5159
|
+
}, []), /* @__PURE__ */ r(Pm, { fallback: /* @__PURE__ */ r(La, { title: t, children: n.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => a(-1), children: /* @__PURE__ */ r(Rl, { fallback: /* @__PURE__ */ r(La, { title: t, children: /* @__PURE__ */ r(Ql, {}) }), children: e }) });
|
|
5160
|
+
}, Bm = "_submit-container_j8pmc_1", zm = "_spacer_j8pmc_14", Aa = {
|
|
5161
|
+
submitContainer: Bm,
|
|
5162
|
+
spacer: zm
|
|
5163
|
+
}, Hm = ({ children: e, noSpacer: t = !1 }) => /* @__PURE__ */ g(Z, { children: [
|
|
5165
5164
|
!t && /* @__PURE__ */ r("div", { className: Aa.spacer }),
|
|
5166
5165
|
/* @__PURE__ */ r("div", { className: I("luminus-floating-action-container shadow", Aa.submitContainer), children: e })
|
|
5167
|
-
] }),
|
|
5168
|
-
timeline:
|
|
5169
|
-
stepContainer:
|
|
5170
|
-
stepDate:
|
|
5171
|
-
stepContent:
|
|
5172
|
-
contentHeader:
|
|
5173
|
-
contentText:
|
|
5174
|
-
stepIcon:
|
|
5175
|
-
},
|
|
5176
|
-
/* @__PURE__ */ r("div", { className: "col-3", children: n.date && /* @__PURE__ */ g($, { variant: "caption", className: I("h-100 d-flex flex-column align-items-end justify-content-center gap-0",
|
|
5166
|
+
] }), Vm = "_timeline_g1754_1", Um = "_step-container_g1754_1", Wm = "_step-date_g1754_1", Gm = "_step-content_g1754_4", Ym = "_content-header_g1754_8", qm = "_content-text_g1754_11", Km = "_step-icon_g1754_14", Nt = {
|
|
5167
|
+
timeline: Vm,
|
|
5168
|
+
stepContainer: Um,
|
|
5169
|
+
stepDate: Wm,
|
|
5170
|
+
stepContent: Gm,
|
|
5171
|
+
contentHeader: Ym,
|
|
5172
|
+
contentText: qm,
|
|
5173
|
+
stepIcon: Km
|
|
5174
|
+
}, Qm = ({ steps: e, dontSort: t }) => /* @__PURE__ */ r("div", { className: Nt.timeline, children: e.sort((n, a) => t ? 0 : Zl(n.date ?? /* @__PURE__ */ new Date(), a.date ?? /* @__PURE__ */ new Date())).map((n, a) => /* @__PURE__ */ g("div", { className: I("row g-0 gx-3", Nt.stepContainer), children: [
|
|
5175
|
+
/* @__PURE__ */ r("div", { className: "col-3", children: n.date && /* @__PURE__ */ g($, { variant: "caption", className: I("h-100 d-flex flex-column align-items-end justify-content-center gap-0", Nt.stepDate), children: [
|
|
5177
5176
|
/* @__PURE__ */ r("div", { children: nt(n.date, "dd.MM.yyyy") }),
|
|
5178
5177
|
n.dateFormat === "date" ? null : /* @__PURE__ */ r("div", { children: nt(n.date, "HH:mm") })
|
|
5179
5178
|
] }) }),
|
|
5180
|
-
/* @__PURE__ */ r("div", { className: "col-9", children: /* @__PURE__ */ g("div", { className: I("h-100 d-flex flex-column gap-1 border-start border-2 p-3",
|
|
5181
|
-
/* @__PURE__ */ g("div", { className: I("d-flex gap-2 align-items-center",
|
|
5179
|
+
/* @__PURE__ */ r("div", { className: "col-9", children: /* @__PURE__ */ g("div", { className: I("h-100 d-flex flex-column gap-1 border-start border-2 p-3", Nt.stepContent), children: [
|
|
5180
|
+
/* @__PURE__ */ g("div", { className: I("d-flex gap-2 align-items-center", Nt.contentHeader), children: [
|
|
5182
5181
|
n.person && /* @__PURE__ */ r(Ar, { name: n.person.name ?? "", size: 22, fontSize: 12 }),
|
|
5183
5182
|
typeof n.title == "string" ? /* @__PURE__ */ r($, { variant: "body", className: "fw-bold", children: n.title }) : n.title
|
|
5184
5183
|
] }),
|
|
5185
|
-
n.text && /* @__PURE__ */ r($, { variant: "body2", className:
|
|
5186
|
-
/* @__PURE__ */ r("div", { className: I("text-primary",
|
|
5184
|
+
n.text && /* @__PURE__ */ r($, { variant: "body2", className: Nt.contentText, children: n.text }),
|
|
5185
|
+
/* @__PURE__ */ r("div", { className: I("text-primary", Nt.stepIcon), children: n.icon ?? /* @__PURE__ */ r(yl, {}) })
|
|
5187
5186
|
] }) })
|
|
5188
|
-
] }, a)) }),
|
|
5187
|
+
] }, a)) }), Xm = (e, t, n, a = !0) => {
|
|
5189
5188
|
const o = je({ silent: a, differentBaseUrl: t, customToken: n }), [l, i] = L(!1), [s, c] = L(null), d = D(async (u) => {
|
|
5190
5189
|
i(!0), c(null), o.get(e, {
|
|
5191
5190
|
signal: u,
|
|
@@ -5203,7 +5202,7 @@ const jm = (e) => (n) => {
|
|
|
5203
5202
|
};
|
|
5204
5203
|
}, [d]), { data: s, setData: c, reloadData: d, isLoading: l };
|
|
5205
5204
|
}, Ra = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: o, renderAsDivBg: l, ...i }) => {
|
|
5206
|
-
const { data: s } =
|
|
5205
|
+
const { data: s } = Xm(e, n, a), [c, d] = L(null);
|
|
5207
5206
|
return U(() => {
|
|
5208
5207
|
let u = null;
|
|
5209
5208
|
return s !== null ? (u = URL.createObjectURL(s), d(u)) : d(null), () => {
|
|
@@ -5215,7 +5214,7 @@ const jm = (e) => (n) => {
|
|
|
5215
5214
|
backgroundPosition: "center",
|
|
5216
5215
|
backgroundSize: "contain"
|
|
5217
5216
|
} }) : /* @__PURE__ */ r("img", { ...i, alt: t ?? "", src: c ?? o });
|
|
5218
|
-
},
|
|
5217
|
+
}, op = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: o, renderAsDivBg: l, ...i }) => {
|
|
5219
5218
|
const { data: s } = De("/photos/SAS", { silent: !0 }), c = j(() => `${e}?${s}`, [e, s]);
|
|
5220
5219
|
return !s || !e ? null : l ? /* @__PURE__ */ r("div", { ...i, style: {
|
|
5221
5220
|
backgroundImage: c ? `url(${c})` : void 0,
|
|
@@ -5223,7 +5222,7 @@ const jm = (e) => (n) => {
|
|
|
5223
5222
|
backgroundPosition: "center",
|
|
5224
5223
|
backgroundSize: "contain"
|
|
5225
5224
|
} }) : /* @__PURE__ */ r("img", { ...i, alt: t ?? "", src: c ?? o });
|
|
5226
|
-
},
|
|
5225
|
+
}, Zm = ({ ref: e, onClick: t, text: n }) => /* @__PURE__ */ r("div", { ref: e, onClick: (a) => {
|
|
5227
5226
|
a.preventDefault(), t(a);
|
|
5228
5227
|
}, role: "button", className: "middle-div", children: /* @__PURE__ */ g("div", { className: "d-flex flex-column align-items-center", children: [
|
|
5229
5228
|
/* @__PURE__ */ r("div", { className: "mt-", children: "…" }),
|
|
@@ -5234,11 +5233,11 @@ const jm = (e) => (n) => {
|
|
|
5234
5233
|
["M", "month"],
|
|
5235
5234
|
["Y", "year"],
|
|
5236
5235
|
["C", "custom"]
|
|
5237
|
-
],
|
|
5238
|
-
wrapper:
|
|
5239
|
-
lg:
|
|
5240
|
-
sm:
|
|
5241
|
-
md:
|
|
5236
|
+
], Jm = "_wrapper_qfqux_1", ef = "_lg_qfqux_7", tf = "_sm_qfqux_11", nf = "_md_qfqux_14", Ma = {
|
|
5237
|
+
wrapper: Jm,
|
|
5238
|
+
lg: ef,
|
|
5239
|
+
sm: tf,
|
|
5240
|
+
md: nf
|
|
5242
5241
|
}, _n = (e) => {
|
|
5243
5242
|
const t = new Date(e), n = mt(t.toISOString());
|
|
5244
5243
|
t.setUTCMonth(t.getUTCMonth() + 1), t.setUTCDate(t.getUTCDate() - 1);
|
|
@@ -5249,14 +5248,14 @@ const jm = (e) => (n) => {
|
|
|
5249
5248
|
t.setUTCFullYear(t.getUTCFullYear() + 1), t.setUTCDate(t.getUTCDate() - 1);
|
|
5250
5249
|
const a = mt(t.toISOString());
|
|
5251
5250
|
return { from: n, to: a };
|
|
5252
|
-
},
|
|
5251
|
+
}, rf = (e, t) => {
|
|
5253
5252
|
if (e === null || t === null)
|
|
5254
5253
|
return "C";
|
|
5255
5254
|
if (e === t)
|
|
5256
5255
|
return "D";
|
|
5257
5256
|
const n = new Date(e);
|
|
5258
5257
|
return _n(n).to === t ? "M" : tn(n).to === t ? "Y" : (console.log(tn(n), t), "C");
|
|
5259
|
-
},
|
|
5258
|
+
}, af = (e, t, n) => {
|
|
5260
5259
|
const a = D((i, s) => {
|
|
5261
5260
|
if (e === "C") {
|
|
5262
5261
|
n((c) => ({ ...c, [i]: s }));
|
|
@@ -5316,11 +5315,11 @@ const jm = (e) => (n) => {
|
|
|
5316
5315
|
}), t(i);
|
|
5317
5316
|
}, [n, t]);
|
|
5318
5317
|
return { setFromToProp: a, handleArrowClick: o, handleRangeChange: l };
|
|
5319
|
-
},
|
|
5320
|
-
const { texts: { date: o }, ProjectIconComponent: l } = F(G), [i, s] = L("C"), { handleArrowClick: c, handleRangeChange: d, setFromToProp: u } =
|
|
5318
|
+
}, ip = ({ fromtoState: [e, t], className: n, size: a }) => {
|
|
5319
|
+
const { texts: { date: o }, ProjectIconComponent: l } = F(G), [i, s] = L("C"), { handleArrowClick: c, handleRangeChange: d, setFromToProp: u } = af(i, s, t), m = j(() => i === "C", [i]), f = ge(!0);
|
|
5321
5320
|
return U(() => {
|
|
5322
5321
|
if (f.current) {
|
|
5323
|
-
const p =
|
|
5322
|
+
const p = rf(e.from, e.to);
|
|
5324
5323
|
s(p), f.current = !1;
|
|
5325
5324
|
}
|
|
5326
5325
|
}, [e.from, e.to]), /* @__PURE__ */ g("div", { className: I("d-inline-flex align-items-center gap-1", Ma.wrapper, Ma[a ?? "md"], n), children: [
|
|
@@ -5329,24 +5328,24 @@ const jm = (e) => (n) => {
|
|
|
5329
5328
|
}, children: /* @__PURE__ */ r(l, { icon: "chevron-left" }) }),
|
|
5330
5329
|
/* @__PURE__ */ r("div", { children: /* @__PURE__ */ g("div", { className: "d-flex align-items-center gap-1", children: [
|
|
5331
5330
|
/* @__PURE__ */ r(Be, { type: "date", value: e.from, onChange: (p) => u("from", p === null ? null : p.toString()), InputContainer: We, size: a }),
|
|
5332
|
-
/* @__PURE__ */ r(gt, { toggle: /* @__PURE__ */ r(vt, { text: o[ja.find((p) => p[0] === i)[1]].substring(0, 1), as:
|
|
5331
|
+
/* @__PURE__ */ r(gt, { toggle: /* @__PURE__ */ r(vt, { text: o[ja.find((p) => p[0] === i)[1]].substring(0, 1), as: Zm }), children: ja.map((p) => /* @__PURE__ */ r(Re, { disabled: p[0] === i, className: I(p[0] === i ? "text-black-50" : ""), onClick: () => d(p[0]), role: "button", children: o[p[1]] }, p[0])) }),
|
|
5333
5332
|
/* @__PURE__ */ r(Be, { type: "date", value: e.to, onChange: (p) => u("to", p === null ? null : p.toString()), InputContainer: We, size: a })
|
|
5334
5333
|
] }) }),
|
|
5335
5334
|
/* @__PURE__ */ r(J, { disabled: m, onClick: () => {
|
|
5336
5335
|
c(1);
|
|
5337
5336
|
}, children: /* @__PURE__ */ r(l, { icon: "chevron-right" }) })
|
|
5338
5337
|
] });
|
|
5339
|
-
},
|
|
5340
|
-
const { localizationContext: o } = F(G), { dateFnsLocale: l } = F(o), { searchParams: i, setSearch: s } =
|
|
5338
|
+
}, lp = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: n, yearMax: a }) => {
|
|
5339
|
+
const { localizationContext: o } = F(G), { dateFnsLocale: l } = F(o), { searchParams: i, setSearch: s } = ql(), c = i.get(t), d = c ? Ye(c) : e, u = D((m) => {
|
|
5341
5340
|
s(t, jt(m, { representation: "date" }));
|
|
5342
5341
|
}, [t, s]);
|
|
5343
|
-
return /* @__PURE__ */ r(
|
|
5344
|
-
},
|
|
5345
|
-
const [a, o] =
|
|
5342
|
+
return /* @__PURE__ */ r(Ns, { month: d, onChangeMonth: u, locale: l, yearMin: n, yearMax: a });
|
|
5343
|
+
}, sp = ({ defaultYear: e, searchKey: t = "yearFrom", ...n }) => {
|
|
5344
|
+
const [a, o] = kt(t, jt(e, { representation: "date" })), l = a ? Ye(a) : e, i = D((s) => {
|
|
5346
5345
|
o(jt(s, { representation: "date" }));
|
|
5347
5346
|
}, [o]);
|
|
5348
|
-
return /* @__PURE__ */ r(
|
|
5349
|
-
},
|
|
5347
|
+
return /* @__PURE__ */ r(Cs, { year: l, onChangeYear: i, ...n });
|
|
5348
|
+
}, cp = ({ data: e, showLegend: t = !1, legendPosition: n = "left", onClick: a }) => {
|
|
5350
5349
|
const { chartColorPalette: o } = F(G);
|
|
5351
5350
|
return /* @__PURE__ */ r(Nl, { data: e, margin: {
|
|
5352
5351
|
top: 50,
|
|
@@ -5374,7 +5373,7 @@ const jm = (e) => (n) => {
|
|
|
5374
5373
|
padding: 10
|
|
5375
5374
|
}
|
|
5376
5375
|
] : [], onClick: (l) => a && a(l.data) });
|
|
5377
|
-
},
|
|
5376
|
+
}, of = ({ val: e, translateKey: t, data: n, unit: a }) => {
|
|
5378
5377
|
var c, d;
|
|
5379
5378
|
const o = e.point.id.split("."), l = o[0], i = Number(o[1]), s = j(() => {
|
|
5380
5379
|
const u = e.point.x < 100 ? "56%" : "-56%", m = e.point.y < 60 ? "70px" : "8px";
|
|
@@ -5393,7 +5392,7 @@ const jm = (e) => (n) => {
|
|
|
5393
5392
|
] })
|
|
5394
5393
|
] })
|
|
5395
5394
|
] });
|
|
5396
|
-
},
|
|
5395
|
+
}, dp = ({ data: e, xKey: t, yKeys: n, translateKey: a, usePercentageValue: o = !1, variant: l = "default", legendPosition: i, noSort: s = !1, unit: c }) => {
|
|
5397
5396
|
const { confirm: d } = ot(), { chartColorPalette: u, texts: { chart: m } } = F(G), [f, p] = L(/* @__PURE__ */ new Set()), h = ge(null), w = async () => {
|
|
5398
5397
|
var M;
|
|
5399
5398
|
const T = (M = h.current) == null ? void 0 : M.querySelector("svg");
|
|
@@ -5435,7 +5434,7 @@ const jm = (e) => (n) => {
|
|
|
5435
5434
|
}), T;
|
|
5436
5435
|
}, [b, o, t, n]), C = D((T) => {
|
|
5437
5436
|
var M;
|
|
5438
|
-
return /* @__PURE__ */ r(
|
|
5437
|
+
return /* @__PURE__ */ r(of, { data: b, translateKey: a, val: T, unit: ((M = n.find((P) => {
|
|
5439
5438
|
var O;
|
|
5440
5439
|
return P.key === ((O = T.point) == null ? void 0 : O.seriesId);
|
|
5441
5440
|
})) == null ? void 0 : M.unit) ?? c ?? void 0 });
|
|
@@ -5493,7 +5492,7 @@ const jm = (e) => (n) => {
|
|
|
5493
5492
|
bottom: _ === "bottom" ? 44 : 20,
|
|
5494
5493
|
left: k ? 50 : 20
|
|
5495
5494
|
}, colors: u, isInteractive: !0, enableCrosshair: !0, enableTouchCrosshair: !0, useMesh: !0, animate: !1, tooltip: C }) });
|
|
5496
|
-
},
|
|
5495
|
+
}, lf = ({ errors: e, schema: t }) => {
|
|
5497
5496
|
const n = (a) => {
|
|
5498
5497
|
var o, l;
|
|
5499
5498
|
return a.toLowerCase() === "others" ? "Obecné" : ((l = (o = t.columns) == null ? void 0 : o.find((i) => i.field === a)) == null ? void 0 : l.caption) ?? a;
|
|
@@ -5529,25 +5528,25 @@ const jm = (e) => (n) => {
|
|
|
5529
5528
|
}
|
|
5530
5529
|
n[a] = { value: o, defaultValue: o };
|
|
5531
5530
|
}), n;
|
|
5532
|
-
},
|
|
5533
|
-
table:
|
|
5534
|
-
tableHeader:
|
|
5535
|
-
tableRow:
|
|
5536
|
-
tableHead:
|
|
5537
|
-
filtersRow:
|
|
5538
|
-
tableBody:
|
|
5539
|
-
tableCell:
|
|
5540
|
-
actionColumn:
|
|
5541
|
-
stickyTop:
|
|
5542
|
-
stickyFirst:
|
|
5543
|
-
stickyLast:
|
|
5544
|
-
},
|
|
5545
|
-
input:
|
|
5546
|
-
},
|
|
5547
|
-
multiselect:
|
|
5548
|
-
multiselectMenu:
|
|
5549
|
-
dropdownItem:
|
|
5550
|
-
specialOption:
|
|
5531
|
+
}, sf = "_table_1klfy_1", cf = "_table-header_1klfy_10", df = "_table-row_1klfy_10", uf = "_table-head_1klfy_10", mf = "_filters-row_1klfy_19", ff = "_table-body_1klfy_30", hf = "_table-cell_1klfy_30", pf = "_action-column_1klfy_43", gf = "_sticky-top_1klfy_47", vf = "_sticky-first_1klfy_54", yf = "_sticky-last_1klfy_61", he = {
|
|
5532
|
+
table: sf,
|
|
5533
|
+
tableHeader: cf,
|
|
5534
|
+
tableRow: df,
|
|
5535
|
+
tableHead: uf,
|
|
5536
|
+
filtersRow: mf,
|
|
5537
|
+
tableBody: ff,
|
|
5538
|
+
tableCell: hf,
|
|
5539
|
+
actionColumn: pf,
|
|
5540
|
+
stickyTop: gf,
|
|
5541
|
+
stickyFirst: vf,
|
|
5542
|
+
stickyLast: yf
|
|
5543
|
+
}, bf = "_input_pxkkh_1", tt = {
|
|
5544
|
+
input: bf
|
|
5545
|
+
}, wf = "_multiselect_134m5_1", Nf = "_multiselect-menu_134m5_10", xf = "_dropdown-item_134m5_18", Sf = "_special-option_134m5_24", Lt = {
|
|
5546
|
+
multiselect: wf,
|
|
5547
|
+
multiselectMenu: Nf,
|
|
5548
|
+
dropdownItem: xf,
|
|
5549
|
+
specialOption: Sf
|
|
5551
5550
|
}, Fa = 10, Ba = ({ value: e, field: t, disabled: n, valuesForSelect: a, onChangeHandler: o, separator: l }) => {
|
|
5552
5551
|
var v, b, x, C;
|
|
5553
5552
|
const { texts: { dynamicForms: i } } = F(G), [s, c] = L("");
|
|
@@ -5632,7 +5631,7 @@ const jm = (e) => (n) => {
|
|
|
5632
5631
|
] }) });
|
|
5633
5632
|
}
|
|
5634
5633
|
}
|
|
5635
|
-
},
|
|
5634
|
+
}, Cf = ({ schema: e, columns: t, setColumns: n, initialItem: a, onEdit: o, onDelete: l, customPickers: i, appDetail: s }) => {
|
|
5636
5635
|
const { ProjectIconComponent: c } = F(G), [d, u] = L(a), m = D((h, w) => {
|
|
5637
5636
|
console.log("changeValue", h, w), u((v) => ({
|
|
5638
5637
|
...v,
|
|
@@ -5663,7 +5662,7 @@ const jm = (e) => (n) => {
|
|
|
5663
5662
|
/* @__PURE__ */ r(J, { color: "danger", onClick: () => l(d[e.primaryKey ?? ""].value), children: /* @__PURE__ */ r(c, { icon: "delete" }) })
|
|
5664
5663
|
] })
|
|
5665
5664
|
] });
|
|
5666
|
-
},
|
|
5665
|
+
}, kf = ({ schema: e, columns: t, setColumns: n, onCreate: a, customPickers: o }) => {
|
|
5667
5666
|
const { ProjectIconComponent: l } = F(G), [i, s] = L(null), c = D(() => {
|
|
5668
5667
|
var m;
|
|
5669
5668
|
const u = {};
|
|
@@ -5696,11 +5695,11 @@ const jm = (e) => (n) => {
|
|
|
5696
5695
|
/* @__PURE__ */ r("td", { className: "sticky-first", children: /* @__PURE__ */ r(J, { onClick: c, children: /* @__PURE__ */ r(l, { icon: "add" }) }) }),
|
|
5697
5696
|
/* @__PURE__ */ r("td", { colSpan: t.length + 1 })
|
|
5698
5697
|
] });
|
|
5699
|
-
},
|
|
5700
|
-
resizer:
|
|
5701
|
-
content:
|
|
5702
|
-
dragging:
|
|
5703
|
-
},
|
|
5698
|
+
}, If = "_resizer_ref0b_1", _f = "_content_ref0b_11", Df = "_dragging_ref0b_16", xn = {
|
|
5699
|
+
resizer: If,
|
|
5700
|
+
content: _f,
|
|
5701
|
+
dragging: Df
|
|
5702
|
+
}, Tf = ({ cellRef: e, defaultWidth: t }) => {
|
|
5704
5703
|
const [n, a] = L(t), [, o] = L(null);
|
|
5705
5704
|
return U(() => {
|
|
5706
5705
|
a(t);
|
|
@@ -5713,13 +5712,13 @@ const jm = (e) => (n) => {
|
|
|
5713
5712
|
}, onDragEnd: (l) => {
|
|
5714
5713
|
o(null), l.currentTarget.classList.remove(xn.dragging);
|
|
5715
5714
|
}, children: /* @__PURE__ */ r("div", { className: I("content", xn.content) }) });
|
|
5716
|
-
},
|
|
5715
|
+
}, Ef = ({ column: e, children: t }) => {
|
|
5717
5716
|
const { ProjectIconComponent: n } = F(G);
|
|
5718
5717
|
return e.description ? /* @__PURE__ */ r($e, { placement: "bottom", text: e.description ?? "", children: /* @__PURE__ */ g("div", { className: "d-flex justify-content-between", children: [
|
|
5719
5718
|
t,
|
|
5720
5719
|
/* @__PURE__ */ r(n, { icon: "info" })
|
|
5721
5720
|
] }) }) : /* @__PURE__ */ r(Z, { children: t });
|
|
5722
|
-
},
|
|
5721
|
+
}, Of = ({ column: e, sortByField: t, sortByType: n, setSortBy: a }) => {
|
|
5723
5722
|
const { ProjectIconComponent: o } = F(G), l = ge(null), i = j(() => {
|
|
5724
5723
|
if (e.valuesForSelect && e.valuesForSelect.length > 0)
|
|
5725
5724
|
return 200;
|
|
@@ -5748,13 +5747,13 @@ const jm = (e) => (n) => {
|
|
|
5748
5747
|
}
|
|
5749
5748
|
a(e.field, "asc");
|
|
5750
5749
|
}, children: [
|
|
5751
|
-
/* @__PURE__ */ r(
|
|
5750
|
+
/* @__PURE__ */ r(Ef, { column: e, children: /* @__PURE__ */ g("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
5752
5751
|
e.label,
|
|
5753
5752
|
t === e.field && /* @__PURE__ */ r(o, { icon: n === "asc" ? "chevron-up" : "chevron-down" })
|
|
5754
5753
|
] }) }),
|
|
5755
|
-
/* @__PURE__ */ r(
|
|
5754
|
+
/* @__PURE__ */ r(Tf, { cellRef: l, defaultWidth: i })
|
|
5756
5755
|
] });
|
|
5757
|
-
},
|
|
5756
|
+
}, $f = ({ schema: e, items: t, onEditItem: n, onDeleteItem: a, onCreateItem: o, filters: l, setFilter: i, sortByField: s, sortByType: c, setSortBy: d, selectedMaster: u, customPickers: m, appDetail: f }) => {
|
|
5758
5757
|
const { texts: { dynamicForms: p } } = F(G), [h, w] = L([]);
|
|
5759
5758
|
return U(() => {
|
|
5760
5759
|
var v, b, x;
|
|
@@ -5778,7 +5777,7 @@ const jm = (e) => (n) => {
|
|
|
5778
5777
|
/* @__PURE__ */ g("thead", { className: I("text-nowrap table-header", he.stickyTop, he.tableHeader), children: [
|
|
5779
5778
|
/* @__PURE__ */ g("tr", { className: I("table-row", he.tableRow), children: [
|
|
5780
5779
|
/* @__PURE__ */ r("th", { className: I("table-head", he.tableHead, he.actionColumn, he.stickyFirst) }),
|
|
5781
|
-
h.map((v) => /* @__PURE__ */ r(
|
|
5780
|
+
h.map((v) => /* @__PURE__ */ r(Of, { column: v, sortByField: s, sortByType: c, setSortBy: d }, `${e.id}-${v.field}`)),
|
|
5782
5781
|
/* @__PURE__ */ r("th", { className: I("table-head", he.tableHead, he.actionColumn, he.stickyLast) })
|
|
5783
5782
|
] }),
|
|
5784
5783
|
/* @__PURE__ */ g("tr", { className: I("table-row filters-row", he.tableRow, he.filtersRow), children: [
|
|
@@ -5791,24 +5790,24 @@ const jm = (e) => (n) => {
|
|
|
5791
5790
|
] })
|
|
5792
5791
|
] }),
|
|
5793
5792
|
/* @__PURE__ */ g("tbody", { className: I("table-body", he.tableBody), children: [
|
|
5794
|
-
t.filter((v) => v[e.primaryKey ?? ""]).map((v) => /* @__PURE__ */ r(
|
|
5795
|
-
/* @__PURE__ */ r(
|
|
5793
|
+
t.filter((v) => v[e.primaryKey ?? ""]).map((v) => /* @__PURE__ */ r(Cf, { schema: e, columns: h, setColumns: w, initialItem: v, onEdit: n, onDelete: a, customPickers: m, appDetail: f }, `${e.id}-${v[e.primaryKey ?? ""].value}`)),
|
|
5794
|
+
/* @__PURE__ */ r(kf, { schema: e, columns: h, setColumns: w, onCreate: o, customPickers: m })
|
|
5796
5795
|
] })
|
|
5797
5796
|
] });
|
|
5798
|
-
},
|
|
5799
|
-
pagination:
|
|
5797
|
+
}, Lf = ({ master: e, onChange: t, options: n, label: a }) => /* @__PURE__ */ r("div", { style: { minWidth: "200px" }, children: /* @__PURE__ */ r(qe, { label: a, value: e, onChange: (o) => t(o ? o.toString() : null), options: n, size: "sm" }) }), Af = "_pagination_gujwe_1", za = {
|
|
5798
|
+
pagination: Af
|
|
5800
5799
|
}, Ha = {
|
|
5801
5800
|
appDetail: "/settings/:id"
|
|
5802
|
-
},
|
|
5801
|
+
}, xt = {
|
|
5803
5802
|
apiSchemaGet: "/dynamicForms/schema",
|
|
5804
5803
|
apiDataGet: "/dynamicForms/data",
|
|
5805
5804
|
apiItemPost: "/dynamicForms/update",
|
|
5806
5805
|
apiItemDelete: "/dynamicForms/delete",
|
|
5807
5806
|
apiItemCreate: "/dynamicForms/insert",
|
|
5808
5807
|
apiExportGet: "/dynamicForms/export"
|
|
5809
|
-
},
|
|
5808
|
+
}, up = ({ id: e, page: t, setPage: n, filters: a, setFilter: o, sortByField: l, sortByType: i, setSortBy: s, appUrls: { appDetail: c = Ha.appDetail } = Ha, apiUrls: { apiSchemaGet: d = xt.apiSchemaGet, apiDataGet: u = xt.apiDataGet, apiItemPost: m = xt.apiItemPost, apiItemDelete: f = xt.apiItemDelete, apiItemCreate: p = xt.apiItemCreate, apiExportGet: h = xt.apiExportGet } = xt, customPickers: w }) => {
|
|
5810
5809
|
var Pe, He, Ve, Ot, Pr, Fr, Br;
|
|
5811
|
-
const { texts: { dynamicForms: v }, ProjectIconComponent: b } = F(G), x = je(), { startLoading: C, stopLoading: N } = F(Ze), [y, S] = L(null), [_, k] = L(null), [A, T] = L(null), [M, P] = L(null), [O, E] = L(!1), { addNotification: X } =
|
|
5810
|
+
const { texts: { dynamicForms: v }, ProjectIconComponent: b } = F(G), x = je(), { startLoading: C, stopLoading: N } = F(Ze), [y, S] = L(null), [_, k] = L(null), [A, T] = L(null), [M, P] = L(null), [O, E] = L(!1), { addNotification: X } = Dt(), [z, V] = L([]), { confirm: R } = ot(), B = 20, H = B + 1, Q = M ? Math.ceil(M.length / B) : 1, ne = t ? t > 1 : !1, ce = t ? t < Q : !1, le = t ? (t - 1) * B : 0, xe = t ? t * B : B, W = j(() => M ? M.length > H : !1, [M, H]), oe = j(() => W ? (M == null ? void 0 : M.slice(le, xe)) ?? null : M ?? null, [W, M, le, xe]), [ye, Ie] = kt("masterId", null, "string"), [pe, ee] = L(ye);
|
|
5812
5811
|
U(() => {
|
|
5813
5812
|
S(null), k(null), E(!1), V([]);
|
|
5814
5813
|
}, [e]), U(() => {
|
|
@@ -5836,7 +5835,7 @@ const jm = (e) => (n) => {
|
|
|
5836
5835
|
k(ve), N("dynamicFormData");
|
|
5837
5836
|
}).catch(() => N("dynamicFormData"));
|
|
5838
5837
|
}
|
|
5839
|
-
}, [x, e, y, C, N, O, pe, u]),
|
|
5838
|
+
}, [x, e, y, C, N, O, pe, u]), yt = D(async () => {
|
|
5840
5839
|
var te;
|
|
5841
5840
|
y === null || ((te = y.id) == null ? void 0 : te.toString()) !== e || y.masterReference && !pe || (C("dynamicFormExport"), await x.get(`${h}?id=${e}&showArchive=${O}${y.masterReference ? `&master=${pe}` : ""}`, {
|
|
5842
5841
|
responseType: "blob"
|
|
@@ -5947,7 +5946,7 @@ const jm = (e) => (n) => {
|
|
|
5947
5946
|
/* @__PURE__ */ g("div", { className: "mb-3 d-flex justify-content-between align-items-start", children: [
|
|
5948
5947
|
/* @__PURE__ */ g("div", { className: "d-flex align-items-center gap-3", children: [
|
|
5949
5948
|
/* @__PURE__ */ r($, { variant: "h3", children: (y == null ? void 0 : y.name) ?? "" }),
|
|
5950
|
-
(y == null ? void 0 : y.masterReference) && /* @__PURE__ */ r(
|
|
5949
|
+
(y == null ? void 0 : y.masterReference) && /* @__PURE__ */ r(Lf, { label: ((He = (Pe = y.columns) == null ? void 0 : Pe.find((te) => te.field === y.masterReferenceColumn)) == null ? void 0 : He.caption) ?? "", options: ((Ot = (Ve = y.columns) == null ? void 0 : Ve.find((te) => te.field === y.masterReferenceColumn)) == null ? void 0 : Ot.values) ?? [], master: pe, onChange: (te) => ee(te) })
|
|
5951
5950
|
] }),
|
|
5952
5951
|
/* @__PURE__ */ g("div", { className: "d-flex align-items-center gap-1", children: [
|
|
5953
5952
|
(Pr = y == null ? void 0 : y.slaves) == null ? void 0 : Pr.map((te, de) => {
|
|
@@ -5960,18 +5959,18 @@ const jm = (e) => (n) => {
|
|
|
5960
5959
|
te.name
|
|
5961
5960
|
] }, te.id);
|
|
5962
5961
|
}),
|
|
5963
|
-
/* @__PURE__ */ g(gt, { toggle: /* @__PURE__ */ r(vt, { as:
|
|
5962
|
+
/* @__PURE__ */ g(gt, { toggle: /* @__PURE__ */ r(vt, { as: Tt }), children: [
|
|
5964
5963
|
/* @__PURE__ */ r(Re, { onClick: () => E(!O), children: O ? v.hideArchived : v.showArchived }),
|
|
5965
5964
|
/* @__PURE__ */ r(uo, {}),
|
|
5966
|
-
/* @__PURE__ */ r(Re, { onClick:
|
|
5965
|
+
/* @__PURE__ */ r(Re, { onClick: yt, icon: /* @__PURE__ */ r(b, { icon: "file-download" }), children: v.downloadExport })
|
|
5967
5966
|
] })
|
|
5968
5967
|
] })
|
|
5969
5968
|
] }),
|
|
5970
5969
|
(y == null ? void 0 : y.description) && /* @__PURE__ */ r($, { variant: "body2", className: "mb-3", children: y == null ? void 0 : y.description }),
|
|
5971
5970
|
y != null && y.masterReference && !pe ? /* @__PURE__ */ r(ze, { variant: "warning", children: v.selectMaster(((Br = (Fr = y.columns) == null ? void 0 : Fr.find((te) => te.field === y.masterReferenceColumn)) == null ? void 0 : Br.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ g(Z, { children: [
|
|
5972
|
-
y && z.length > 0 && /* @__PURE__ */ r("div", { className: "mb-2", children: /* @__PURE__ */ r(
|
|
5971
|
+
y && z.length > 0 && /* @__PURE__ */ r("div", { className: "mb-2", children: /* @__PURE__ */ r(lf, { errors: z, schema: y }) }),
|
|
5973
5972
|
y && /* @__PURE__ */ g(Z, { children: [
|
|
5974
|
-
/* @__PURE__ */ r("div", { className: I("rounded border overflow-auto", za.tableContainer), children: /* @__PURE__ */ r(
|
|
5973
|
+
/* @__PURE__ */ r("div", { className: I("rounded border overflow-auto", za.tableContainer), children: /* @__PURE__ */ r($f, { schema: y, items: !W && M && (M == null ? void 0 : M.length) > H ? [] : (W ? oe : M) ?? [], onEditItem: K, onDeleteItem: Y, onCreateItem: ae, filters: a, setFilter: o, sortByField: l, sortByType: i, setSortBy: s, selectedMaster: (pe == null ? void 0 : pe.toString()) ?? null, customPickers: w, appDetail: c }) }),
|
|
5975
5974
|
W && t && /* @__PURE__ */ g("div", { className: I(za.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
|
|
5976
5975
|
/* @__PURE__ */ g("div", { className: "d-flex align-items-center gap-1", children: [
|
|
5977
5976
|
/* @__PURE__ */ r(J, { color: "primary", onClick: () => be(1), disabled: !ne, children: /* @__PURE__ */ r(b, { icon: "chevron-double-left" }) }),
|
|
@@ -5996,14 +5995,14 @@ const jm = (e) => (n) => {
|
|
|
5996
5995
|
appDetail: "/settings/:id"
|
|
5997
5996
|
}, Ua = {
|
|
5998
5997
|
apiDynamicFormsGet: "/dynamicForms"
|
|
5999
|
-
},
|
|
5998
|
+
}, Rf = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ r($e, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ r("div", { children: t }) }) : /* @__PURE__ */ r(Z, { children: t }), Wa = ({ item: e, fullSize: t, appDetail: n, search: a, activeId: o }) => {
|
|
6000
5999
|
var l, i, s, c;
|
|
6001
6000
|
return t ? /* @__PURE__ */ g(Oe, { to: `${zt(n, { id: (l = e.id) == null ? void 0 : l.toString() })}?type=${e.type}&search=${a ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(o == null ? void 0 : o.toString()) === ((i = e.id) == null ? void 0 : i.toString()) ? "active" : ""}`, children: [
|
|
6002
6001
|
/* @__PURE__ */ r($, { variant: "body", children: e.name }),
|
|
6003
6002
|
e.description && /* @__PURE__ */ r($, { variant: "body2", className: "text-muted mt-2", children: e.description })
|
|
6004
|
-
] }) : /* @__PURE__ */ r(
|
|
6005
|
-
},
|
|
6006
|
-
const c = je(), { startLoading: d, stopLoading: u } = F(Ze), [m, f] = L(null), [p] =
|
|
6003
|
+
] }) : /* @__PURE__ */ r(Rf, { item: e, children: /* @__PURE__ */ r(Oe, { to: `${zt(n, { id: (s = e.id) == null ? void 0 : s.toString() })}?type=${e.type}&search=${a ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(o == null ? void 0 : o.toString()) === ((c = e.id) == null ? void 0 : c.toString()) ? "active" : ""}`, children: /* @__PURE__ */ r($, { variant: "body2", children: e.name }) }) }, e.id);
|
|
6004
|
+
}, mp = ({ activeId: e, anchoredForms: t, otherForms: n = [], groupsDefs: a = [], searchQuery: o, fullSize: l, appUrls: { appDetail: i = Va.appDetail } = Va, apiUrls: { apiDynamicFormsGet: s = Ua.apiDynamicFormsGet } = Ua }) => {
|
|
6005
|
+
const c = je(), { startLoading: d, stopLoading: u } = F(Ze), [m, f] = L(null), [p] = kt("search", ""), h = j(() => (t == null ? void 0 : t.filter((x) => Ae(x.name, o) || Ae(x.description, o)).sort((x, C) => (x.name ?? "").localeCompare(C.name ?? ""))) ?? [], [t, o]), w = j(() => [
|
|
6007
6006
|
...(m == null ? void 0 : m.map((x) => ({
|
|
6008
6007
|
...x,
|
|
6009
6008
|
type: "dynamic-form"
|
|
@@ -6027,10 +6026,10 @@ const jm = (e) => (n) => {
|
|
|
6027
6026
|
] }) : null,
|
|
6028
6027
|
v.map((x) => /* @__PURE__ */ r($n, { title: x.name, defaultOpen: !0, children: x.items.map((C) => /* @__PURE__ */ r(Wa, { item: C, fullSize: l ?? !1, appDetail: i, search: p, activeId: e }, C.id)) }, x.id))
|
|
6029
6028
|
] }) }) : null;
|
|
6030
|
-
},
|
|
6029
|
+
}, fp = ({ label: e, to: t, value: n }) => /* @__PURE__ */ g(Se, { label: e, children: [
|
|
6031
6030
|
/* @__PURE__ */ r("input", { disabled: !0, className: "form-control d-none" }),
|
|
6032
6031
|
t ? /* @__PURE__ */ r(Oe, { to: t, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: n }) : /* @__PURE__ */ r("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: n })
|
|
6033
|
-
] }),
|
|
6032
|
+
] }), hp = () => {
|
|
6034
6033
|
const { localizationContext: e } = F(G), { language: t, setLanguage: n } = F(e), a = (o) => {
|
|
6035
6034
|
n(o);
|
|
6036
6035
|
};
|
|
@@ -6055,9 +6054,9 @@ const jm = (e) => (n) => {
|
|
|
6055
6054
|
/* @__PURE__ */ r($t, {}),
|
|
6056
6055
|
/* @__PURE__ */ r("span", { children: "EN" })
|
|
6057
6056
|
] }) });
|
|
6058
|
-
},
|
|
6059
|
-
const { user: l } = F(pt), { photoPath: i, photoPathSm: s } =
|
|
6060
|
-
return /* @__PURE__ */ r(Z, { children: e && /* @__PURE__ */ r(Z, { children: o ? /* @__PURE__ */ r(
|
|
6057
|
+
}, pp = ({ controlId: e, ...t }) => /* @__PURE__ */ r(ie.Group, { controlId: e, ...t }), gp = ({ employeeId: e, alt: t, noPhotoImage: n, cafmApiUrl: a, showLargeInLightBox: o = !1 }) => {
|
|
6058
|
+
const { user: l } = F(pt), { photoPath: i, photoPathSm: s } = Kl(e);
|
|
6059
|
+
return /* @__PURE__ */ r(Z, { children: e && /* @__PURE__ */ r(Z, { children: o ? /* @__PURE__ */ r(Im, { baseUrl: a, customToken: l.cafmToken ?? void 0, photos: [
|
|
6061
6060
|
{
|
|
6062
6061
|
id: e.toString(),
|
|
6063
6062
|
alt: t ?? "",
|
|
@@ -6066,7 +6065,7 @@ const jm = (e) => (n) => {
|
|
|
6066
6065
|
lgSrc: i
|
|
6067
6066
|
}
|
|
6068
6067
|
], placeholder: n, ImgComponent: Ra }) : /* @__PURE__ */ r(Ra, { baseUrl: a, customToken: l.cafmToken ?? void 0, src: s, alt: t, placeholder: n, className: "rounded w-100" }) }) });
|
|
6069
|
-
},
|
|
6068
|
+
}, vp = ({ text: e, setText: t, onSearchButtonClick: n, className: a }) => {
|
|
6070
6069
|
const o = (l) => {
|
|
6071
6070
|
t(l);
|
|
6072
6071
|
};
|
|
@@ -6075,7 +6074,7 @@ const jm = (e) => (n) => {
|
|
|
6075
6074
|
e && /* @__PURE__ */ r(lr, { onClick: () => o(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ r(ht, {}) }),
|
|
6076
6075
|
/* @__PURE__ */ r(lr, { onClick: () => n && n(e), variant: "link", className: "border", children: /* @__PURE__ */ r(kl, {}) })
|
|
6077
6076
|
] });
|
|
6078
|
-
},
|
|
6077
|
+
}, yp = ({ value: e, numberPrefix: t, numberSuffix: n, decimalScale: a = 2, fixedDecimalScale: o = !1, className: l }) => /* @__PURE__ */ r(jr, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: a, fixedDecimalScale: o, defaultValue: "", prefix: t, suffix: n, className: l, decimalSeparator: "," }), bp = ({ data: e, keys: t, colors: n, tooltipLabel: a }) => /* @__PURE__ */ r(Il, { data: e.map((o) => ({ name: o.name, ...o.values })), indexBy: "name", keys: t, margin: {
|
|
6079
6078
|
top: 20,
|
|
6080
6079
|
right: 50,
|
|
6081
6080
|
bottom: 30,
|
|
@@ -6094,15 +6093,15 @@ const jm = (e) => (n) => {
|
|
|
6094
6093
|
}, labelSkipWidth: 12, labelSkipHeight: 12, labelTextColor: {
|
|
6095
6094
|
from: "color",
|
|
6096
6095
|
modifiers: [["darker", 1.6]]
|
|
6097
|
-
}, tooltipLabel: a }),
|
|
6098
|
-
hrText:
|
|
6099
|
-
},
|
|
6100
|
-
cardsGroup:
|
|
6101
|
-
groupTitle:
|
|
6102
|
-
groupContent:
|
|
6103
|
-
reportCard:
|
|
6104
|
-
cardTitleLink:
|
|
6105
|
-
},
|
|
6096
|
+
}, tooltipLabel: a }), jf = "_hrText_xxish_1", Mf = {
|
|
6097
|
+
hrText: jf
|
|
6098
|
+
}, Pf = ({ text: e }) => /* @__PURE__ */ r("hr", { className: I(Mf.hrText), "data-content": e }), Ff = "_cards-group_1gvpy_1", Bf = "_group-title_1gvpy_1", zf = "_group-content_1gvpy_8", Hf = "_report-card_1gvpy_12", Vf = "_card-title-link_1gvpy_22", Rt = {
|
|
6099
|
+
cardsGroup: Ff,
|
|
6100
|
+
groupTitle: Bf,
|
|
6101
|
+
groupContent: zf,
|
|
6102
|
+
reportCard: Hf,
|
|
6103
|
+
cardTitleLink: Vf
|
|
6104
|
+
}, Uf = ({ reportsLastUsedGet: e, getReportRoute: t, getReportName: n }) => {
|
|
6106
6105
|
const { texts: { reports: a } } = F(G), { data: o } = De(e);
|
|
6107
6106
|
return /* @__PURE__ */ r(Z, { children: /* @__PURE__ */ r($n, { defaultOpen: !0, title: a.index.lastUsedReports, children: /* @__PURE__ */ r(nn, { children: o && o.map((l) => l.versions.map((i) => /* @__PURE__ */ g(An, { as: Oe, to: t(l, i.id), className: "p-1 px-2", action: !0, children: [
|
|
6108
6107
|
/* @__PURE__ */ r($, { variant: "body2", className: "text-uppercase", children: n(l) }),
|
|
@@ -6118,10 +6117,10 @@ const jm = (e) => (n) => {
|
|
|
6118
6117
|
o ? null : s.map((c) => /* @__PURE__ */ r(Ga, { reportVersion: c, getReportRoute: t, report: n })),
|
|
6119
6118
|
s.length > 0 && /* @__PURE__ */ r(An, { onClick: () => l((c) => !c), className: "py-0 d-flex justify-content-center", children: o ? /* @__PURE__ */ r(a, { icon: "chevron-down" }) : /* @__PURE__ */ r(a, { icon: "chevron-up" }) })
|
|
6120
6119
|
] }) });
|
|
6121
|
-
},
|
|
6120
|
+
}, Wf = ({ report: e, getReportRoute: t, getReportName: n, getReportDescription: a }) => {
|
|
6122
6121
|
const o = j(() => e.versionsCustom.length === 0 ? { xs: 12 } : { xs: 12, sm: 6, md: 12, lg: 12, xl: 12, xxl: 6 }, [e.versionsCustom.length]);
|
|
6123
6122
|
return /* @__PURE__ */ r("div", { className: "col-12 col-lg-4", children: /* @__PURE__ */ g(
|
|
6124
|
-
|
|
6123
|
+
It,
|
|
6125
6124
|
{
|
|
6126
6125
|
title: /* @__PURE__ */ r(Oe, { to: t(e), className: I(Rt.cardTitleLink, "w-100 text-uppercase fw-normal"), children: n(e) }),
|
|
6127
6126
|
headerClassName: "bg-darker",
|
|
@@ -6139,7 +6138,7 @@ const jm = (e) => (n) => {
|
|
|
6139
6138
|
}, or = {
|
|
6140
6139
|
reportsGet: "/reports",
|
|
6141
6140
|
reportsLastUsedGet: "/reports/last-used"
|
|
6142
|
-
},
|
|
6141
|
+
}, wp = ({ groups: e, apiUrls: { reportsGet: t = or.reportsGet, reportsLastUsedGet: n = or.reportsLastUsedGet } = or, getReportName: a, getReportDescription: o, getGroupTitle: l, getReportRoute: i }) => {
|
|
6143
6142
|
const { texts: { reports: s } } = F(G), [c, d] = L(""), [u] = kr(c, 500), m = D((v) => v.map((b) => ({
|
|
6144
6143
|
...b,
|
|
6145
6144
|
groupId: !b.groupId || b.groupId === 0 || !e.some((x) => x === b.groupId) ? 999 : b.groupId
|
|
@@ -6154,22 +6153,22 @@ const jm = (e) => (n) => {
|
|
|
6154
6153
|
var b;
|
|
6155
6154
|
return ((b = p[v]) == null ? void 0 : b.length) > 0;
|
|
6156
6155
|
}), [p, e]), { isMobile: w } = Rn();
|
|
6157
|
-
return /* @__PURE__ */ g(rt, { unavailableOnMobile: !0, variant: "fullScreen", sideContent: /* @__PURE__ */ r(Z, { children: /* @__PURE__ */ r(
|
|
6156
|
+
return /* @__PURE__ */ g(rt, { unavailableOnMobile: !0, variant: "fullScreen", sideContent: /* @__PURE__ */ r(Z, { children: /* @__PURE__ */ r(Uf, { reportsLastUsedGet: n, getReportName: a, getReportRoute: i }) }), children: [
|
|
6158
6157
|
/* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(ie.Control, { className: "mb-3", type: "search", value: c, onChange: (v) => {
|
|
6159
6158
|
var b;
|
|
6160
6159
|
return d(((b = v.target) == null ? void 0 : b.value) ?? "");
|
|
6161
6160
|
}, placeholder: s.index.search }) }),
|
|
6162
6161
|
/* @__PURE__ */ r("div", { className: "overflow-x-hidden luminus-thin-scrollbar luminus-reports-index", children: h.map((v) => /* @__PURE__ */ g("div", { className: I(Rt.cardsGroup, { [Rt.mobile]: w }), children: [
|
|
6163
|
-
/* @__PURE__ */ r("div", { className: I("group-title z-1", Rt.groupTitle), children: /* @__PURE__ */ r(
|
|
6164
|
-
/* @__PURE__ */ r("div", { className: I(Rt.groupContent), children: /* @__PURE__ */ r("div", { className: I("row gx-3 gy-3"), children: p[v].map((b) => /* @__PURE__ */ r(
|
|
6162
|
+
/* @__PURE__ */ r("div", { className: I("group-title z-1", Rt.groupTitle), children: /* @__PURE__ */ r(Pf, { text: l(v) }) }),
|
|
6163
|
+
/* @__PURE__ */ r("div", { className: I(Rt.groupContent), children: /* @__PURE__ */ r("div", { className: I("row gx-3 gy-3"), children: p[v].map((b) => /* @__PURE__ */ r(Wf, { report: b, getReportRoute: i, getReportName: a, getReportDescription: o })) }) })
|
|
6165
6164
|
] }, v)) })
|
|
6166
6165
|
] });
|
|
6167
|
-
},
|
|
6166
|
+
}, Gf = "_mini-detail-popover_obryf_1", Yf = "_sm_obryf_5", qf = "_lg_obryf_9", qa = {
|
|
6168
6167
|
"mini-detail-popover": "_mini-detail-popover_obryf_1",
|
|
6169
|
-
miniDetailPopover:
|
|
6170
|
-
sm:
|
|
6171
|
-
lg:
|
|
6172
|
-
},
|
|
6168
|
+
miniDetailPopover: Gf,
|
|
6169
|
+
sm: Yf,
|
|
6170
|
+
lg: qf
|
|
6171
|
+
}, Np = ({ children: e, useMiniDetail: t, miniDetailProps: n, placement: a = "bottom", trigger: o = ["hover"], delayMs: l = 500 }) => {
|
|
6173
6172
|
const { user: i } = F(pt), [s, c] = L(!1), { isLoading: d, detail: u, heading: m, tooltipWidth: f } = t({
|
|
6174
6173
|
...n,
|
|
6175
6174
|
enabled: s && !(i != null && i.external)
|
|
@@ -6200,10 +6199,10 @@ const jm = (e) => (n) => {
|
|
|
6200
6199
|
/* @__PURE__ */ r("span", { className: "placeholder col-4" })
|
|
6201
6200
|
] })
|
|
6202
6201
|
] }) : u }), placement: a, trigger: o, popoverClassName: I(qa.miniDetailPopover, qa[f]), children: /* @__PURE__ */ r("div", { children: e }) }) : /* @__PURE__ */ r(Z, { children: e }) });
|
|
6203
|
-
},
|
|
6202
|
+
}, xp = ({ label: e, value: t }) => /* @__PURE__ */ g("div", { className: "py-1 border-bottom d-flex gap-3 align-items-center justify-content-between", children: [
|
|
6204
6203
|
/* @__PURE__ */ r($, { variant: "caption", children: e }),
|
|
6205
6204
|
/* @__PURE__ */ r($, { variant: "body2", className: "text-end", children: t ?? "-" })
|
|
6206
|
-
] }),
|
|
6205
|
+
] }), Sp = ({ route: e, variant: t = "link", children: n, className: a, disabled: o = !1, routeParams: l }) => {
|
|
6207
6206
|
const { checkUserHasPermissions: i } = mo(), s = j(() => o || !(e.permissions === void 0 || i(e.permissions)), [i, o, e.permissions]), c = n ?? e.name, d = j(() => {
|
|
6208
6207
|
switch (t) {
|
|
6209
6208
|
case "primaryButton":
|
|
@@ -6217,7 +6216,7 @@ const jm = (e) => (n) => {
|
|
|
6217
6216
|
}
|
|
6218
6217
|
}, [t]);
|
|
6219
6218
|
return t === "link" ? /* @__PURE__ */ r(Oe, { to: cr(e.route, l), className: I("link font-size-14", s ? "disabled" : void 0, a), children: c }) : /* @__PURE__ */ r(d, { as: "link", href: cr(e.route, l), className: I(s ? "disabled" : void 0, a), children: c });
|
|
6220
|
-
},
|
|
6219
|
+
}, Cp = ({ id: e, getTimelineApiPath: t }) => {
|
|
6221
6220
|
var i;
|
|
6222
6221
|
const { texts: { approval: n }, ProjectIconComponent: a } = F(G), { data: o } = De(t(e)), l = D((s, c = !1) => {
|
|
6223
6222
|
switch (s) {
|
|
@@ -6233,7 +6232,7 @@ const jm = (e) => (n) => {
|
|
|
6233
6232
|
return null;
|
|
6234
6233
|
}
|
|
6235
6234
|
}, [n, a]);
|
|
6236
|
-
return /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
|
|
6235
|
+
return /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Qm, { dontSort: !0, steps: [
|
|
6237
6236
|
o != null && o.startDate ? {
|
|
6238
6237
|
date: Ye(o.startDate),
|
|
6239
6238
|
title: /* @__PURE__ */ r($, { variant: "body2", children: n.startDate }),
|
|
@@ -6265,15 +6264,15 @@ const jm = (e) => (n) => {
|
|
|
6265
6264
|
dateFormat: "date"
|
|
6266
6265
|
} : null
|
|
6267
6266
|
].filter((s) => s !== null).map((s) => s) }) });
|
|
6268
|
-
},
|
|
6269
|
-
stateSwitch:
|
|
6270
|
-
switchButton:
|
|
6271
|
-
bgLayer:
|
|
6272
|
-
textLayer:
|
|
6273
|
-
left:
|
|
6274
|
-
right:
|
|
6275
|
-
active:
|
|
6276
|
-
},
|
|
6267
|
+
}, Kf = "_state-switch_uc6su_1", Qf = "_switch-button_uc6su_7", Xf = "_bg-layer_uc6su_17", Zf = "_text-layer_uc6su_26", Jf = "_left_uc6su_38", eh = "_right_uc6su_41", th = "_active_uc6su_44", Ue = {
|
|
6268
|
+
stateSwitch: Kf,
|
|
6269
|
+
switchButton: Qf,
|
|
6270
|
+
bgLayer: Xf,
|
|
6271
|
+
textLayer: Zf,
|
|
6272
|
+
left: Jf,
|
|
6273
|
+
right: eh,
|
|
6274
|
+
active: th
|
|
6275
|
+
}, kp = ({ isLeftStateActive: e, toggleState: t, leftStateLabel: n, rightStateLabel: a }) => /* @__PURE__ */ g("div", { role: "button", className: I("gap-1", Ue.stateSwitch), onClick: t, children: [
|
|
6277
6276
|
/* @__PURE__ */ g($, { variant: "body2", className: I(Ue.switchButton, Ue.left, {
|
|
6278
6277
|
[Ue.active]: e
|
|
6279
6278
|
}), children: [
|
|
@@ -6286,7 +6285,7 @@ const jm = (e) => (n) => {
|
|
|
6286
6285
|
/* @__PURE__ */ r("div", { className: Ue.bgLayer }),
|
|
6287
6286
|
/* @__PURE__ */ r("div", { className: Ue.textLayer, children: a })
|
|
6288
6287
|
] })
|
|
6289
|
-
] }),
|
|
6288
|
+
] }), Ip = ({ showArchived: e, BnfTableComponent: t, tableIdentifier: n, detailRoute: a }) => {
|
|
6290
6289
|
const { texts: { substitutions: o } } = F(G), { data: l } = De(`/permissions/substitutions?archived=${e}`), i = j(() => ({ enable: !0, column: "archived" }), []), s = mn(), c = j(() => [
|
|
6291
6290
|
s.accessor("employeeName", {
|
|
6292
6291
|
header: o.index.employeeName,
|
|
@@ -6335,8 +6334,8 @@ const jm = (e) => (n) => {
|
|
|
6335
6334
|
id: u.id.toString()
|
|
6336
6335
|
}), [a]);
|
|
6337
6336
|
return /* @__PURE__ */ r(t, { data: l ?? [], columns: c, tableId: n, pagination: { mode: "enabled" }, archiveHighlighting: i, rowNavigation: d });
|
|
6338
|
-
},
|
|
6339
|
-
const n = je(), a = Pn(), { startLoading: o, stopLoading: l } = F(Ze), { zDateRequired: i, zNumberRequired: s } = jn(), { addNotification: c } =
|
|
6337
|
+
}, nh = (e, t) => {
|
|
6338
|
+
const n = je(), a = Pn(), { startLoading: o, stopLoading: l } = F(Ze), { zDateRequired: i, zNumberRequired: s } = jn(), { addNotification: c } = Dt(), { refreshAvailableDelegations: d } = F(fo), { user: u } = F(pt), { texts: { substitutions: { detail: m } } } = F(G), f = ho({
|
|
6340
6339
|
id: s(),
|
|
6341
6340
|
employeeId: s(),
|
|
6342
6341
|
substituteId: s(),
|
|
@@ -6384,19 +6383,19 @@ const jm = (e) => (n) => {
|
|
|
6384
6383
|
return U(() => {
|
|
6385
6384
|
h.reset(p);
|
|
6386
6385
|
}, [p, h]), { formSchema: f, onSubmit: w, formMethods: h };
|
|
6387
|
-
},
|
|
6386
|
+
}, _p = ({ indexRoute: e }) => {
|
|
6388
6387
|
var N;
|
|
6389
6388
|
const { id: t } = po(), { user: n } = F(pt), a = je(), o = Pn(), { confirm: l } = ot(), { texts: { substitutions: { detail: i } } } = F(G), { data: s } = De(`/permissions/substitutions/${t}`, {
|
|
6390
6389
|
enabled: t !== void 0
|
|
6391
|
-
}), { data: c } = De("/permissions/users"), { onSubmit: d, formMethods: u } =
|
|
6390
|
+
}), { data: c } = De("/permissions/users"), { onSubmit: d, formMethods: u } = nh(s, e), m = u.watch("employeeId"), { data: f } = De(`/permissions/roles?userName=${(N = c == null ? void 0 : c.find((y) => y.employeeId === m)) == null ? void 0 : N.name}`, { enabled: m > 0 && !!c }), { refreshAvailableDelegations: p } = F(fo), { checkUserHasPermissions: h } = mo(), w = D(async () => {
|
|
6392
6391
|
await l(i.deleteConfirm) && (await a.delete(`/permissions/substitutions/${t}`), p(), o(e));
|
|
6393
6392
|
}, [a, l, t, o, p, i, e]), v = j(() => m !== (n == null ? void 0 : n.personalNumber) && !h(["ZASTUP_MODIFY"]), [h, m, n == null ? void 0 : n.personalNumber]), b = u.watch("roles"), x = j(() => f == null ? void 0 : f.filter((y) => y.canBeRepresented), [f]), C = j(() => (x == null ? void 0 : x.every((y) => b == null ? void 0 : b.includes(y.name))) ?? !1, [x, b]);
|
|
6394
6393
|
return /* @__PURE__ */ r(rt, { title: /* @__PURE__ */ g("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
6395
6394
|
/* @__PURE__ */ r($, { variant: "h3", children: i.title }),
|
|
6396
|
-
/* @__PURE__ */ r(gt, { toggle: /* @__PURE__ */ r(vt, { as:
|
|
6395
|
+
/* @__PURE__ */ r(gt, { toggle: /* @__PURE__ */ r(vt, { as: Tt }), children: /* @__PURE__ */ r(Re, { onClick: () => w(), children: i.delete }) })
|
|
6397
6396
|
] }), children: /* @__PURE__ */ r(Bn, { ...u, children: /* @__PURE__ */ r(Fl, { disabled: v, children: /* @__PURE__ */ g(ie, { onSubmit: u.handleSubmit(d), className: "h-100", children: [
|
|
6398
6397
|
/* @__PURE__ */ g(Lr, { className: "h-100 gx-3 gy-3", children: [
|
|
6399
|
-
/* @__PURE__ */ r(En, { sm: 12, md: 4, children: /* @__PURE__ */ g(
|
|
6398
|
+
/* @__PURE__ */ r(En, { sm: 12, md: 4, children: /* @__PURE__ */ g(It, { title: i.title, children: [
|
|
6400
6399
|
/* @__PURE__ */ r(mr, { formField: "employeeId", options: (c == null ? void 0 : c.map((y) => ({
|
|
6401
6400
|
id: y.employeeId,
|
|
6402
6401
|
name: `${y.employeeName} (${y.name})`
|
|
@@ -6408,7 +6407,7 @@ const jm = (e) => (n) => {
|
|
|
6408
6407
|
/* @__PURE__ */ r(Ft, { formField: "from", label: i.from, type: "date", required: !0 }),
|
|
6409
6408
|
/* @__PURE__ */ r(Ft, { formField: "to", label: i.to, type: "date", required: !0 })
|
|
6410
6409
|
] }) }),
|
|
6411
|
-
/* @__PURE__ */ r(En, { sm: 12, md: 4, children: /* @__PURE__ */ g(
|
|
6410
|
+
/* @__PURE__ */ r(En, { sm: 12, md: 4, children: /* @__PURE__ */ g(It, { title: i.roles(`${(b == null ? void 0 : b.length) ?? 0}/${(x == null ? void 0 : x.length) ?? 0}`), className: "h-max-100", contentClassName: "d-flex flex-column overflow-hidden", children: [
|
|
6412
6411
|
v ? null : /* @__PURE__ */ r("div", { className: "bg-darker", style: {
|
|
6413
6412
|
marginLeft: "-12px",
|
|
6414
6413
|
marginRight: "-12px",
|
|
@@ -6427,9 +6426,9 @@ const jm = (e) => (n) => {
|
|
|
6427
6426
|
}, InputContainer: Se }, y.name)) })
|
|
6428
6427
|
] }) })
|
|
6429
6428
|
] }),
|
|
6430
|
-
/* @__PURE__ */ r(
|
|
6429
|
+
/* @__PURE__ */ r(sc, { onStorno: () => u.reset(), children: i.save })
|
|
6431
6430
|
] }) }) }) });
|
|
6432
|
-
},
|
|
6431
|
+
}, rh = ({ BnfTableComponent: e, items: t, onEditItem: n, tableIdentifier: a }) => {
|
|
6433
6432
|
const { texts: { approval: o } } = F(G), l = j(() => t.map((d) => ({ ...d, archive: !!(d.dateTo && El(Ye(d.dateTo))) })), [t]), i = mn(), s = j(() => [
|
|
6434
6433
|
i.accessor("id", {
|
|
6435
6434
|
header: "Id",
|
|
@@ -6488,7 +6487,7 @@ const jm = (e) => (n) => {
|
|
|
6488
6487
|
n(t.find((u) => u.id === d.id));
|
|
6489
6488
|
}, [t, n]);
|
|
6490
6489
|
return /* @__PURE__ */ r(e, { tableId: a, columns: s, data: l, onRowClick: c });
|
|
6491
|
-
},
|
|
6490
|
+
}, ah = (e, t = "/approval/delegation/runningProcess", n = "/approval/delegation", a = (o) => `/approval/delegation/${o}`) => {
|
|
6492
6491
|
const o = je(), { startLoading: l, stopLoading: i } = F(Ze), s = D(async (u, m) => {
|
|
6493
6492
|
let f = null;
|
|
6494
6493
|
l("getHasRunningProcesses");
|
|
@@ -6504,15 +6503,15 @@ const jm = (e) => (n) => {
|
|
|
6504
6503
|
[o, l, i, n]
|
|
6505
6504
|
), d = D(async () => e != null && e.id ? (l("approvalDelegationDelete"), o.delete(a(e.id)).then(() => !0).catch(() => !1).finally(() => i("approvalDelegationDelete"))) : !1, [o, e, l, i, a]);
|
|
6506
6505
|
return { getHasRunningProcesses: s, postEditDelegation: c, postDeleteDelegation: d };
|
|
6507
|
-
},
|
|
6506
|
+
}, oh = ({ model: e, handleClose: t, onConfirm: n, apiApprovalDefinitions: a, apiHasRunningProcess: o, apiPostEditDelegation: l, apiDeleteDelegation: i, EmployeePickerComponent: s }) => {
|
|
6508
6507
|
var _, k;
|
|
6509
|
-
const { ProjectIconComponent: c, texts: { approval: d } } = F(G), { zDate: u, zObjectIdIntRequired: m, zDateRequired: f } = jn(), { addNotification: p } =
|
|
6508
|
+
const { ProjectIconComponent: c, texts: { approval: d } } = F(G), { zDate: u, zObjectIdIntRequired: m, zDateRequired: f } = jn(), { addNotification: p } = Dt(), { confirm: h } = ot(), { data: w } = De(a), v = ho({
|
|
6510
6509
|
employee: m(),
|
|
6511
6510
|
delegate: m(),
|
|
6512
6511
|
dateFrom: f(),
|
|
6513
6512
|
dateTo: u(),
|
|
6514
6513
|
approval: m()
|
|
6515
|
-
}), b = Fn({ resolver: Mn(v) }), { getHasRunningProcesses: x, postEditDelegation: C, postDeleteDelegation: N } =
|
|
6514
|
+
}), b = Fn({ resolver: Mn(v) }), { getHasRunningProcesses: x, postEditDelegation: C, postDeleteDelegation: N } = ah(e, o, l, i);
|
|
6516
6515
|
U(() => {
|
|
6517
6516
|
var A, T, M, P, O, E;
|
|
6518
6517
|
e && (b.reset({
|
|
@@ -6536,7 +6535,7 @@ const jm = (e) => (n) => {
|
|
|
6536
6535
|
return /* @__PURE__ */ g(re, { show: e !== null, onHide: () => t(), children: [
|
|
6537
6536
|
/* @__PURE__ */ g(re.Header, { closeButton: !0, children: [
|
|
6538
6537
|
/* @__PURE__ */ r(re.Title, { className: "w-100", children: e != null && e.id ? d.delegations.detailTitle : d.delegations.newTitle }),
|
|
6539
|
-
e != null && e.id ? /* @__PURE__ */ r(gt, { toggle: /* @__PURE__ */ r(vt, { as:
|
|
6538
|
+
e != null && e.id ? /* @__PURE__ */ r(gt, { toggle: /* @__PURE__ */ r(vt, { as: Tt }), className: "modalHeaderDropdown", children: /* @__PURE__ */ r(Re, { color: "danger", icon: /* @__PURE__ */ r(c, { icon: "delete" }), onClick: S, children: d.delegations.delete }) }) : null
|
|
6540
6539
|
] }),
|
|
6541
6540
|
/* @__PURE__ */ r(Bn, { ...b, children: /* @__PURE__ */ g(ie, { onSubmit: b.handleSubmit(y), noValidate: !0, children: [
|
|
6542
6541
|
/* @__PURE__ */ g(re.Body, { children: [
|
|
@@ -6555,11 +6554,11 @@ const jm = (e) => (n) => {
|
|
|
6555
6554
|
apiPostEditDelegation: "/approval/delegation",
|
|
6556
6555
|
apiDeleteDelegation: (e) => `/approval/delegation/${e}`,
|
|
6557
6556
|
apiApprovalDefinitions: "/approval/definition"
|
|
6558
|
-
},
|
|
6559
|
-
const { texts: { approval: c } } = F(G), [d, u] =
|
|
6557
|
+
}, Dp = ({ apiUrls: { apiApprovalDelegations: e = At.apiApprovalDelegations, apiHasRunningProcess: t = At.apiHasRunningProcess, apiPostEditDelegation: n = At.apiPostEditDelegation, apiDeleteDelegation: a = At.apiDeleteDelegation, apiApprovalDefinitions: o = At.apiApprovalDefinitions } = At, BnfTableComponent: l, tableIdentifier: i, EmployeePickerComponent: s }) => {
|
|
6558
|
+
const { texts: { approval: c } } = F(G), [d, u] = kt("archive", !1), [m, f] = L(null), { data: p, reloadData: h } = De(`${e}?archive=${d}`);
|
|
6560
6559
|
return /* @__PURE__ */ g(rt, { variant: "fullScreen", title: /* @__PURE__ */ g("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
6561
6560
|
/* @__PURE__ */ r($, { variant: "h3", children: c.delegations.title }),
|
|
6562
|
-
/* @__PURE__ */ g(gt, { toggle: /* @__PURE__ */ r(vt, { as:
|
|
6561
|
+
/* @__PURE__ */ g(gt, { toggle: /* @__PURE__ */ r(vt, { as: Tt }), children: [
|
|
6563
6562
|
/* @__PURE__ */ r(Re, { onClick: () => f({
|
|
6564
6563
|
id: null,
|
|
6565
6564
|
employee: null,
|
|
@@ -6573,13 +6572,13 @@ const jm = (e) => (n) => {
|
|
|
6573
6572
|
/* @__PURE__ */ r(Re, { onClick: () => u(!d), children: d ? c.delegations.hideArchived : c.delegations.showArchived })
|
|
6574
6573
|
] })
|
|
6575
6574
|
] }), children: [
|
|
6576
|
-
p ? /* @__PURE__ */ r(
|
|
6577
|
-
/* @__PURE__ */ r(
|
|
6575
|
+
p ? /* @__PURE__ */ r(rh, { items: p, onEditItem: f, BnfTableComponent: l, tableIdentifier: i }) : null,
|
|
6576
|
+
/* @__PURE__ */ r(oh, { model: m, handleClose: () => f(null), onConfirm: () => {
|
|
6578
6577
|
f(null), h();
|
|
6579
6578
|
}, EmployeePickerComponent: s, apiApprovalDefinitions: o, apiHasRunningProcess: t, apiPostEditDelegation: n, apiDeleteDelegation: a })
|
|
6580
6579
|
] });
|
|
6581
|
-
},
|
|
6582
|
-
const { texts: { approval: s } } = F(G), { zNumberRequired: c } = jn(), d = je(), { startLoading: u, stopLoading: m } = F(Ze), { addNotification: f } =
|
|
6580
|
+
}, ih = ({ show: e, handleClose: t, onConfirm: n, currentEmployee: a, approvalApproverId: o, apiPostChangeEmployee: l, EmployeePickerComponent: i }) => {
|
|
6581
|
+
const { texts: { approval: s } } = F(G), { zNumberRequired: c } = jn(), d = je(), { startLoading: u, stopLoading: m } = F(Ze), { addNotification: f } = Dt(), p = io.object({
|
|
6583
6582
|
employeeId: c()
|
|
6584
6583
|
}), h = Fn({
|
|
6585
6584
|
resolver: Mn(p)
|
|
@@ -6600,7 +6599,7 @@ const jm = (e) => (n) => {
|
|
|
6600
6599
|
/* @__PURE__ */ r(re.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ r(Ke, { type: "submit", children: s.definitions.changeEmployeeConfirm }) })
|
|
6601
6600
|
] }) })
|
|
6602
6601
|
] });
|
|
6603
|
-
},
|
|
6602
|
+
}, lh = ({ level: e, reloadApproval: t, appEmployeeDetail: n, apiPostChangeEmployee: a, EmployeePickerComponent: o }) => {
|
|
6604
6603
|
var d;
|
|
6605
6604
|
const { ProjectIconComponent: l, texts: { approval: i } } = F(G), [s, c] = L(null);
|
|
6606
6605
|
return /* @__PURE__ */ g("div", { className: "bg-white rounded p-2 px-3 d-flex flex-column gap-2 shadow-sm", children: [
|
|
@@ -6629,11 +6628,11 @@ const jm = (e) => (n) => {
|
|
|
6629
6628
|
] }),
|
|
6630
6629
|
/* @__PURE__ */ r($, { variant: "body2", children: i.definitions.approverThresholdInfo(e.threshold, u.scale) })
|
|
6631
6630
|
] })) }) : null,
|
|
6632
|
-
/* @__PURE__ */ r(
|
|
6631
|
+
/* @__PURE__ */ r(ih, { approvalApproverId: (s == null ? void 0 : s.id) ?? 0, currentEmployee: (s == null ? void 0 : s.employee) ?? null, show: s !== null, handleClose: () => c(null), onConfirm: () => {
|
|
6633
6632
|
c(null), t();
|
|
6634
6633
|
}, apiPostChangeEmployee: a, EmployeePickerComponent: o })
|
|
6635
6634
|
] });
|
|
6636
|
-
},
|
|
6635
|
+
}, sh = ({ approval: e, apiApprovalDelegations: t, appEmployeeDetail: n }) => {
|
|
6637
6636
|
const { ProjectIconComponent: a, texts: { approval: o } } = F(G), { data: l } = De(t), i = j(() => l ? l.filter((s) => {
|
|
6638
6637
|
var c;
|
|
6639
6638
|
return ((c = s.approval) == null ? void 0 : c.id) === e.id;
|
|
@@ -6658,7 +6657,7 @@ const jm = (e) => (n) => {
|
|
|
6658
6657
|
}) }) : null }),
|
|
6659
6658
|
i && i.length === 0 ? /* @__PURE__ */ r(ze, { variant: "secondary", size: "sm", children: o.delegations.noDelegations }) : null
|
|
6660
6659
|
] });
|
|
6661
|
-
},
|
|
6660
|
+
}, ch = ({ approval: e, reloadApproval: t, appEmployeeDetail: n, apiPostChangeEmployee: a, apiApprovalDelegations: o, EmployeePickerComponent: l }) => {
|
|
6662
6661
|
var s, c;
|
|
6663
6662
|
const { texts: { approval: i } } = F(G);
|
|
6664
6663
|
return /* @__PURE__ */ g("div", { className: "row g-0 overflow-hidden h-100", children: [
|
|
@@ -6671,9 +6670,9 @@ const jm = (e) => (n) => {
|
|
|
6671
6670
|
Bt(e.lastExecutionDate)
|
|
6672
6671
|
] }) : null
|
|
6673
6672
|
] }),
|
|
6674
|
-
/* @__PURE__ */ r("div", { className: "d-flex flex-column gap-2 overflow-auto h-100 p-3 px-4", children: (c = (s = e.levels) == null ? void 0 : s.sort((d, u) => d.index - u.index)) == null ? void 0 : c.map((d) => /* @__PURE__ */ r(
|
|
6673
|
+
/* @__PURE__ */ r("div", { className: "d-flex flex-column gap-2 overflow-auto h-100 p-3 px-4", children: (c = (s = e.levels) == null ? void 0 : s.sort((d, u) => d.index - u.index)) == null ? void 0 : c.map((d) => /* @__PURE__ */ r(lh, { level: d, reloadApproval: t, appEmployeeDetail: n, apiPostChangeEmployee: a, EmployeePickerComponent: l }, d.id)) })
|
|
6675
6674
|
] }) }),
|
|
6676
|
-
/* @__PURE__ */ r("div", { className: "col-5 overflow-hidden h-100", children: /* @__PURE__ */ r(
|
|
6675
|
+
/* @__PURE__ */ r("div", { className: "col-5 overflow-hidden h-100", children: /* @__PURE__ */ r(sh, { approval: e, apiApprovalDelegations: o, appEmployeeDetail: n }) })
|
|
6677
6676
|
] });
|
|
6678
6677
|
}, Zt = {
|
|
6679
6678
|
apiApprovalDefinitions: "/approval/definition",
|
|
@@ -6683,8 +6682,8 @@ const jm = (e) => (n) => {
|
|
|
6683
6682
|
}, ir = {
|
|
6684
6683
|
appApprovalsDelegations: "/approvals/delegations",
|
|
6685
6684
|
appEmployeeDetail: (e) => `/employees/${e}`
|
|
6686
|
-
},
|
|
6687
|
-
const { ProjectIconComponent: s, texts: { approval: c } } = F(G), { data: d } = De(n), [u, m] =
|
|
6685
|
+
}, Tp = ({ appUrls: { appApprovalsDelegations: e = ir.appApprovalsDelegations, appEmployeeDetail: t = ir.appEmployeeDetail } = ir, apiUrls: { apiApprovalDefinitions: n = Zt.apiApprovalDefinitions, apiApprovalDefinitionDetail: a = Zt.apiApprovalDefinitionDetail, apiPostChangeEmployee: o = Zt.apiPostChangeEmployee, apiApprovalDelegations: l = Zt.apiApprovalDelegations } = Zt, EmployeePickerComponent: i }) => {
|
|
6686
|
+
const { ProjectIconComponent: s, texts: { approval: c } } = F(G), { data: d } = De(n), [u, m] = kt("approval", null), { data: f, reloadData: p } = De(a(u ?? 0), {
|
|
6688
6687
|
enabled: u !== null
|
|
6689
6688
|
});
|
|
6690
6689
|
return U(() => {
|
|
@@ -6703,12 +6702,12 @@ const jm = (e) => (n) => {
|
|
|
6703
6702
|
h.levelCount
|
|
6704
6703
|
] })
|
|
6705
6704
|
] }, h.id)) }) }) }),
|
|
6706
|
-
/* @__PURE__ */ r("div", { className: "col-10 overflow-hidden h-100", children: f ? /* @__PURE__ */ r(
|
|
6705
|
+
/* @__PURE__ */ r("div", { className: "col-10 overflow-hidden h-100", children: f ? /* @__PURE__ */ r(ch, { approval: f, reloadApproval: p, appEmployeeDetail: t, apiPostChangeEmployee: o, EmployeePickerComponent: i, apiApprovalDelegations: l }) : null })
|
|
6707
6706
|
] }) });
|
|
6708
|
-
},
|
|
6709
|
-
const { ProjectIconComponent: t, texts: { emailOverview: n } } = F(G), [a, o] =
|
|
6710
|
-
o(jt(
|
|
6711
|
-
}, [l, o]), [c, d] =
|
|
6707
|
+
}, Ep = ({ overviewApiPath: e = (t) => `/notification/email/overview?date=${t}` }) => {
|
|
6708
|
+
const { ProjectIconComponent: t, texts: { emailOverview: n } } = F(G), [a, o] = kt("date", jt(/* @__PURE__ */ new Date(), { representation: "date" })), l = j(() => a ? Ye(a) : /* @__PURE__ */ new Date(), [a]), { data: i } = De(e(jt(l, { representation: "date" }))), s = D((m) => {
|
|
6709
|
+
o(jt(Xl(l, m), { representation: "date" }));
|
|
6710
|
+
}, [l, o]), [c, d] = kt("email", null), u = j(() => c ? i == null ? void 0 : i.find((m) => m.id === c) : null, [c, i]);
|
|
6712
6711
|
return /* @__PURE__ */ r(rt, { variant: "fullScreen", title: /* @__PURE__ */ g("div", { className: "d-flex align-items-center gap-3", children: [
|
|
6713
6712
|
/* @__PURE__ */ r($, { variant: "h3", children: n.title }),
|
|
6714
6713
|
/* @__PURE__ */ g("div", { className: "d-flex gap-1 align-items-center justify-content-start", children: [
|
|
@@ -6744,125 +6743,125 @@ const jm = (e) => (n) => {
|
|
|
6744
6743
|
};
|
|
6745
6744
|
export {
|
|
6746
6745
|
ze as Alert,
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6746
|
+
Lm as AlertItem,
|
|
6747
|
+
Ch as ApiFileDownloadButton,
|
|
6748
|
+
Qh as AppSearch,
|
|
6749
|
+
Cp as Approval,
|
|
6750
|
+
Tp as Approvals,
|
|
6751
|
+
Dp as ApprovalsDelegations,
|
|
6752
|
+
rp as AuthTemplate,
|
|
6754
6753
|
Ar as AvatarIcon,
|
|
6755
6754
|
fl as Backdrop,
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6755
|
+
np as Badge,
|
|
6756
|
+
bp as BarChart,
|
|
6757
|
+
It as Card,
|
|
6759
6758
|
on as CheckInput,
|
|
6760
6759
|
$n as Collapse,
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6760
|
+
Tf as ColumnResizer,
|
|
6761
|
+
Es as ContactButtonQrModal,
|
|
6762
|
+
Ih as ContactInput,
|
|
6763
|
+
Os as ContactsLink,
|
|
6765
6764
|
Ge as ContextButton,
|
|
6766
|
-
|
|
6767
|
-
|
|
6765
|
+
fp as DisabledRowLabelLink,
|
|
6766
|
+
Lp as Documents,
|
|
6768
6767
|
gt as Dropdown,
|
|
6769
6768
|
uo as DropdownDivider,
|
|
6770
6769
|
Re as DropdownItem,
|
|
6771
|
-
|
|
6770
|
+
_h as DropdownPicker,
|
|
6772
6771
|
vt as DropdownToggle,
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6772
|
+
up as DynamicForm,
|
|
6773
|
+
Ep as EmailOverview,
|
|
6774
|
+
gp as EmployeeSmallPhoto,
|
|
6775
|
+
Pm as ErrorBoundary,
|
|
6776
|
+
Zh as FileDownloadUS,
|
|
6778
6777
|
Ji as FileExtensionIcon,
|
|
6779
|
-
|
|
6778
|
+
kh as FileUploadButton,
|
|
6780
6779
|
jo as FileUploadContextButton,
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6780
|
+
Ph as FileUploadDropdownItem,
|
|
6781
|
+
mc as Flexmonster,
|
|
6782
|
+
Hm as FloatingActionContainer,
|
|
6783
|
+
vs as FloatingFormSubmit,
|
|
6785
6784
|
Ht as FloatingLabelInput,
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6785
|
+
ip as FromToDatePicker,
|
|
6786
|
+
tp as HomeDashboard,
|
|
6787
|
+
Eh as HookFormCheckInput,
|
|
6788
|
+
$h as HookFormContactInput,
|
|
6789
|
+
Lh as HookFormDropdownPicker,
|
|
6790
|
+
Ah as HookFormFileInput,
|
|
6791
|
+
sc as HookFormFloatingSubmit,
|
|
6792
|
+
Rh as HookFormNumericStepperInput,
|
|
6793
|
+
jh as HookFormNumericTextInput,
|
|
6794
|
+
Oh as HookFormRadioInput,
|
|
6796
6795
|
mr as HookFormSelectInput,
|
|
6797
|
-
|
|
6796
|
+
Ap as HookFormTextAreaInput,
|
|
6798
6797
|
Ft as HookFormTextInput,
|
|
6799
|
-
|
|
6798
|
+
Pf as HrWithText,
|
|
6800
6799
|
_l as HtmlTooltip,
|
|
6801
6800
|
J as IconButton,
|
|
6802
6801
|
Yo as IconPicker,
|
|
6803
6802
|
Ra as ImgApi,
|
|
6804
|
-
|
|
6803
|
+
op as ImgBlob,
|
|
6805
6804
|
ti as ImgDirect,
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6805
|
+
Zc as ImportFilePicker,
|
|
6806
|
+
Kc as ImportResult,
|
|
6807
|
+
_t as InvalidFeedback,
|
|
6808
|
+
hp as LanguageSwitch,
|
|
6809
|
+
dp as LineChart,
|
|
6811
6810
|
sr as Loading,
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6811
|
+
Ql as LoadingBlock,
|
|
6812
|
+
Jh as LocalStorageBackupUS,
|
|
6813
|
+
qh as LocalizationImport,
|
|
6814
|
+
Kh as LocalizationSettings,
|
|
6815
|
+
zh as MessageBoard,
|
|
6816
|
+
Np as MiniDetailTooltip,
|
|
6817
|
+
xp as MiniDetailValueItem,
|
|
6818
|
+
Ns as MonthPicker,
|
|
6819
|
+
lp as MonthPickerSearchParams,
|
|
6821
6820
|
We as NoInputContainer,
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6821
|
+
Gh as NotificationActions,
|
|
6822
|
+
Yh as NotificationUsers,
|
|
6823
|
+
yp as NumericFormat,
|
|
6824
|
+
Th as NumericStepperInput,
|
|
6825
|
+
ic as NumericTextInput,
|
|
6826
|
+
_p as PermissionSubstituteDetail,
|
|
6827
|
+
Ip as PermissionSubstituteTable,
|
|
6828
|
+
Im as PhotoLibrary,
|
|
6829
|
+
km as PhotoLightbox,
|
|
6830
|
+
cp as PieChart,
|
|
6832
6831
|
Ke as PrimaryButton,
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6832
|
+
lc as RadioInput,
|
|
6833
|
+
Fh as ReportPage,
|
|
6834
|
+
wp as ReportsIndexPage,
|
|
6836
6835
|
Ir as ResponsiveContextDropdown,
|
|
6837
6836
|
Dn as ResponsiveContextDropdownItem,
|
|
6838
|
-
|
|
6839
|
-
|
|
6837
|
+
Hh as ResponsiveTabs,
|
|
6838
|
+
Sp as RouteLink,
|
|
6840
6839
|
Se as RowLabelInput,
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6840
|
+
vp as SearchBox,
|
|
6841
|
+
Xh as SearchPage,
|
|
6842
|
+
ep as SearchSettingsUS,
|
|
6844
6843
|
qe as SelectInput,
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6844
|
+
mp as SettingsFormPicker,
|
|
6845
|
+
Uh as ShortcutLinks,
|
|
6846
|
+
Wh as ShortcutLinksProvider,
|
|
6847
|
+
Vh as ShortcutLinksSetup,
|
|
6849
6848
|
Cr as SimplePicker,
|
|
6850
|
-
|
|
6849
|
+
Tt as SimpleToggle,
|
|
6851
6850
|
$e as SimpleTooltip,
|
|
6852
|
-
|
|
6851
|
+
kp as StateToggle,
|
|
6853
6852
|
Go as Tab,
|
|
6854
|
-
|
|
6853
|
+
Sc as TabPanel,
|
|
6855
6854
|
Wo as Tabs,
|
|
6856
|
-
|
|
6855
|
+
Dh as TextAreaInput,
|
|
6857
6856
|
Be as TextInput,
|
|
6858
|
-
|
|
6859
|
-
|
|
6857
|
+
Qm as Timeline,
|
|
6858
|
+
pp as TypedFormGroup,
|
|
6860
6859
|
$ as Typography,
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6860
|
+
Mh as UserAvatarToggle,
|
|
6861
|
+
Bh as UserAvatarValueFormat,
|
|
6862
|
+
ap as VersionInfo,
|
|
6864
6863
|
La as WidgetCard,
|
|
6865
|
-
|
|
6866
|
-
|
|
6864
|
+
Cs as YearPicker,
|
|
6865
|
+
sp as YearPickerSearchParams,
|
|
6867
6866
|
qo as useShortcutLinksContext
|
|
6868
6867
|
};
|