react-luminus-components 1.3.59 → 1.3.60
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/components/NewTabs/Tabs/Tabs.d.ts +2 -1
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +433 -433
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { j as n, c as j, t as ce, a as Je, m as Pr, b as Hr, d as Wr, s as zr, e as Vr, f as Ur, g as Gr, h as Yr, i as Kr, k as qr, l as Qr, T as Xn, n as es, o as gn, E as Zr, p as ts, q as Vt, r as ns, u as Jr, v as z, w as ve, x as ss, F as Lt, y as Xr, z as eo, A as to, B as no, C as so, D as ro, G as oo, H as ao, I as Ut, J as rs, K as os, L as lo, M as Re, N as co, O as io, P as Le, Q as uo, R as Ct, S as V, U as ue, V as fo, W as mo, X as as, Y as Gt, Z as Yt, _ as po, $ as ls, a0 as ho, a1 as cs, a2 as Kt, a3 as go, a4 as xo, a5 as st, a6 as is, a7 as ye, a8 as jo, a9 as wo, aa as yo, ab as ds, ac as bo, ad as us, ae as vo, af as He, ag as fs, ah as we, ai as _o, aj as No, ak as ms, al as Co, am as kt, an as Ne, ao as xn, ap as ko } from "./nivo-pie.es-B6Ojc01x.js";
|
|
2
|
-
import { aq as
|
|
2
|
+
import { aq as zd } from "./nivo-pie.es-B6Ojc01x.js";
|
|
3
3
|
import * as M from "react";
|
|
4
|
-
import
|
|
5
|
-
import { c as $e, d as yt, C as
|
|
6
|
-
import { InteractionType as
|
|
7
|
-
import { MsalAuthenticationTemplate as
|
|
4
|
+
import pe, { useCallback as $, useMemo as q, useEffect as O, useRef as Y, useState as S, useReducer as ps, useContext as B, Component as $o, isValidElement as Io, Suspense as So } from "react";
|
|
5
|
+
import { c as $e, d as yt, C as Do, a as hs, u as Fo, q as jn, F as Eo, b as gs, A as Oo, M as To, B as Mo, e as Lo, g as Ro, P as wn, f as ct, L as yn } from "./PrimaryButton-CnFyjyQe.js";
|
|
6
|
+
import { InteractionType as Ao } from "@azure/msal-browser";
|
|
7
|
+
import { MsalAuthenticationTemplate as Bo } from "@azure/msal-react";
|
|
8
8
|
import { Link as _e, Navigate as it, generatePath as Rt } from "react-router-dom";
|
|
9
9
|
import { useFormContext as Ce, Controller as xs } from "react-hook-form";
|
|
10
|
-
import { s as bn, g as vn, d as ut, a as Ie, f as Xe, t as De, b as
|
|
10
|
+
import { s as bn, g as vn, d as ut, a as Ie, f as Xe, t as De, b as Po, c as Ho, p as et } from "./dateUtils-BSbNrnHO.js";
|
|
11
11
|
import { S as qt } from "./SimpleTooltip-B5HNfoAQ.js";
|
|
12
|
-
import { u as js, a as ws, b as ys, c as
|
|
12
|
+
import { u as js, a as ws, b as ys, c as Wo, d as zo, e as Vo } from "./useEmployeePhotoPath-DjxgOb6H.js";
|
|
13
13
|
import pt from "react-dom";
|
|
14
|
-
import { u as
|
|
14
|
+
import { u as Uo } from "./useConfirm-QPOkaeUY.js";
|
|
15
15
|
import { s as At } from "./searchUtils-ClCfXRxm.js";
|
|
16
|
-
const
|
|
16
|
+
const sd = ({ fileLoader: t, fileName: e, children: s }) => {
|
|
17
17
|
const r = $(async () => {
|
|
18
18
|
var i, c;
|
|
19
19
|
const o = await t();
|
|
@@ -23,7 +23,7 @@ const rd = ({ fileLoader: t, fileName: e, children: s }) => {
|
|
|
23
23
|
l.href = a, l.setAttribute("download", e), (i = document.body) == null || i.appendChild(l), l.click(), (c = document.body) == null || c.removeChild(l);
|
|
24
24
|
}, [t, e]);
|
|
25
25
|
return /* @__PURE__ */ n.jsx("div", { role: "button", onClick: r, children: s });
|
|
26
|
-
},
|
|
26
|
+
}, Go = ({ className: t, ...e }) => /* @__PURE__ */ n.jsxs("div", { className: j("luminus-loading", $e.loading, $e.loadingBlock, $e.loadingBlock), ...e, children: [
|
|
27
27
|
/* @__PURE__ */ n.jsx("div", { className: j("spinner-grow", $e.spinnerGrow, "text-primary"), role: "status" }),
|
|
28
28
|
/* @__PURE__ */ n.jsx("div", { className: j("spinner-grow", $e.spinnerGrow, "text-primary", $e.second), role: "status" }),
|
|
29
29
|
/* @__PURE__ */ n.jsx("div", { className: j("spinner-grow", $e.spinnerGrow, "text-primary", $e.third), role: "status" })
|
|
@@ -42,10 +42,10 @@ function bs(t, e) {
|
|
|
42
42
|
r
|
|
43
43
|
), s);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Yo(t, e) {
|
|
46
46
|
return bs(t, e * 12);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Ko(t, e) {
|
|
49
49
|
const s = ce(t), r = ce(e), o = s.getTime() - r.getTime();
|
|
50
50
|
return o < 0 ? -1 : o > 0 ? 1 : o;
|
|
51
51
|
}
|
|
@@ -69,7 +69,7 @@ function It(t, e) {
|
|
|
69
69
|
const s = ce(t), r = ce(e);
|
|
70
70
|
return s.getFullYear() - r.getFullYear();
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function qo(t, e) {
|
|
73
73
|
const s = ce(t), r = ce(e), o = kn(s, r), a = Math.abs(ut(s, r));
|
|
74
74
|
s.setDate(s.getDate() - o * a);
|
|
75
75
|
const l = +(kn(s, r) === -o), i = o * (a - l);
|
|
@@ -123,11 +123,11 @@ function Bt(t, e) {
|
|
|
123
123
|
}
|
|
124
124
|
return a;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Qo(t) {
|
|
127
127
|
const e = ce(t), s = e.getFullYear(), r = e.getMonth(), o = Je(t, 0);
|
|
128
128
|
return o.setFullYear(s, r + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function Zo(t, e, s) {
|
|
131
131
|
let r = 0, o;
|
|
132
132
|
const a = ce(t), l = ce(e);
|
|
133
133
|
if (s != null && s.unit)
|
|
@@ -142,17 +142,17 @@ function Jo(t, e, s) {
|
|
|
142
142
|
style: s == null ? void 0 : s.style
|
|
143
143
|
}).format(r, o);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Jo(t, e) {
|
|
146
146
|
const s = ce(t), r = s.getFullYear(), o = s.getDate(), a = Je(t, 0);
|
|
147
147
|
a.setFullYear(r, e, 15), a.setHours(0, 0, 0, 0);
|
|
148
|
-
const l =
|
|
148
|
+
const l = Qo(a);
|
|
149
149
|
return s.setMonth(e, Math.min(o, l)), s;
|
|
150
150
|
}
|
|
151
151
|
function vs(t, e) {
|
|
152
152
|
const s = ce(t);
|
|
153
153
|
return isNaN(+s) ? Je(t, NaN) : (s.setFullYear(e), s);
|
|
154
154
|
}
|
|
155
|
-
var
|
|
155
|
+
var Xo = function(t, e, s, r, o, a, l, i) {
|
|
156
156
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
157
157
|
throw new Error("invariant requires an error message argument");
|
|
158
158
|
if (!t) {
|
|
@@ -171,8 +171,8 @@ var ea = function(t, e, s, r, o, a, l, i) {
|
|
|
171
171
|
}
|
|
172
172
|
throw c.framesToPop = 1, c;
|
|
173
173
|
}
|
|
174
|
-
},
|
|
175
|
-
const Sn = /* @__PURE__ */ Qr(
|
|
174
|
+
}, ea = Xo;
|
|
175
|
+
const Sn = /* @__PURE__ */ Qr(ea);
|
|
176
176
|
function Qe(...t) {
|
|
177
177
|
return t.filter((e) => e != null).reduce((e, s) => {
|
|
178
178
|
if (typeof s != "function")
|
|
@@ -182,22 +182,22 @@ function Qe(...t) {
|
|
|
182
182
|
};
|
|
183
183
|
}, null);
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const ta = {
|
|
186
186
|
height: ["marginTop", "marginBottom"],
|
|
187
187
|
width: ["marginLeft", "marginRight"]
|
|
188
188
|
};
|
|
189
|
-
function
|
|
190
|
-
const s = `offset${t[0].toUpperCase()}${t.slice(1)}`, r = e[s], o =
|
|
189
|
+
function na(t, e) {
|
|
190
|
+
const s = `offset${t[0].toUpperCase()}${t.slice(1)}`, r = e[s], o = ta[t];
|
|
191
191
|
return r + // @ts-ignore
|
|
192
192
|
parseInt(gn(e, o[0]), 10) + // @ts-ignore
|
|
193
193
|
parseInt(gn(e, o[1]), 10);
|
|
194
194
|
}
|
|
195
|
-
const
|
|
195
|
+
const sa = {
|
|
196
196
|
[Zr]: "collapse",
|
|
197
197
|
[ts]: "collapsing",
|
|
198
198
|
[Vt]: "collapsing",
|
|
199
199
|
[ns]: "collapse show"
|
|
200
|
-
}, _s = /* @__PURE__ */
|
|
200
|
+
}, _s = /* @__PURE__ */ pe.forwardRef(({
|
|
201
201
|
onEnter: t,
|
|
202
202
|
onEntering: e,
|
|
203
203
|
onEntered: s,
|
|
@@ -211,7 +211,7 @@ const ra = {
|
|
|
211
211
|
mountOnEnter: u = !1,
|
|
212
212
|
unmountOnExit: m = !1,
|
|
213
213
|
appear: h = !1,
|
|
214
|
-
getDimensionValue: g =
|
|
214
|
+
getDimensionValue: g = na,
|
|
215
215
|
...x
|
|
216
216
|
}, w) => {
|
|
217
217
|
const p = typeof i == "function" ? i() : i, y = q(() => Qe((k) => {
|
|
@@ -242,9 +242,9 @@ const ra = {
|
|
|
242
242
|
mountOnEnter: u,
|
|
243
243
|
unmountOnExit: m,
|
|
244
244
|
appear: h,
|
|
245
|
-
children: (k, _) => /* @__PURE__ */
|
|
245
|
+
children: (k, _) => /* @__PURE__ */ pe.cloneElement(l, {
|
|
246
246
|
..._,
|
|
247
|
-
className: j(a, l.props.className,
|
|
247
|
+
className: j(a, l.props.className, sa[k], p === "width" && "collapse-horizontal")
|
|
248
248
|
})
|
|
249
249
|
});
|
|
250
250
|
}), Ns = yt("h4");
|
|
@@ -260,15 +260,15 @@ const Cs = /* @__PURE__ */ M.forwardRef(({
|
|
|
260
260
|
...r
|
|
261
261
|
})));
|
|
262
262
|
Cs.displayName = "AlertHeading";
|
|
263
|
-
function
|
|
263
|
+
function ra(t, e, s, r = !1) {
|
|
264
264
|
const o = ve(s);
|
|
265
265
|
O(() => {
|
|
266
266
|
const a = typeof t == "function" ? t() : t;
|
|
267
267
|
return a.addEventListener(e, o, r), () => a.removeEventListener(e, o, r);
|
|
268
268
|
}, [t]);
|
|
269
269
|
}
|
|
270
|
-
const
|
|
271
|
-
function
|
|
270
|
+
const oa = ["as", "disabled"];
|
|
271
|
+
function aa(t, e) {
|
|
272
272
|
if (t == null) return {};
|
|
273
273
|
var s = {};
|
|
274
274
|
for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
|
|
@@ -277,7 +277,7 @@ function la(t, e) {
|
|
|
277
277
|
}
|
|
278
278
|
return s;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function la(t) {
|
|
281
281
|
return !t || t.trim() === "#";
|
|
282
282
|
}
|
|
283
283
|
function Jt({
|
|
@@ -301,7 +301,7 @@ function Jt({
|
|
|
301
301
|
disabled: e
|
|
302
302
|
}, d];
|
|
303
303
|
const u = (h) => {
|
|
304
|
-
if ((e || t === "a" &&
|
|
304
|
+
if ((e || t === "a" && la(s)) && h.preventDefault(), e) {
|
|
305
305
|
h.stopPropagation();
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
@@ -327,7 +327,7 @@ const ks = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
|
327
327
|
let {
|
|
328
328
|
as: s,
|
|
329
329
|
disabled: r
|
|
330
|
-
} = t, o =
|
|
330
|
+
} = t, o = aa(t, oa);
|
|
331
331
|
const [a, {
|
|
332
332
|
tagName: l
|
|
333
333
|
}] = Jt(Object.assign({
|
|
@@ -339,8 +339,8 @@ const ks = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
|
339
339
|
}));
|
|
340
340
|
});
|
|
341
341
|
ks.displayName = "Button";
|
|
342
|
-
const
|
|
343
|
-
function
|
|
342
|
+
const ca = ["onKeyDown"];
|
|
343
|
+
function ia(t, e) {
|
|
344
344
|
if (t == null) return {};
|
|
345
345
|
var s = {};
|
|
346
346
|
for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
|
|
@@ -349,19 +349,19 @@ function da(t, e) {
|
|
|
349
349
|
}
|
|
350
350
|
return s;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function da(t) {
|
|
353
353
|
return !t || t.trim() === "#";
|
|
354
354
|
}
|
|
355
355
|
const Xt = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
356
356
|
let {
|
|
357
357
|
onKeyDown: s
|
|
358
|
-
} = t, r =
|
|
358
|
+
} = t, r = ia(t, ca);
|
|
359
359
|
const [o] = Jt(Object.assign({
|
|
360
360
|
tagName: "a"
|
|
361
361
|
}, r)), a = ve((l) => {
|
|
362
362
|
o.onKeyDown(l), s == null || s(l);
|
|
363
363
|
});
|
|
364
|
-
return
|
|
364
|
+
return da(r.href) || r.role === "button" ? /* @__PURE__ */ n.jsx("a", Object.assign({
|
|
365
365
|
ref: e
|
|
366
366
|
}, r, o, {
|
|
367
367
|
onKeyDown: a
|
|
@@ -405,7 +405,7 @@ const Is = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
|
405
405
|
...w ? void 0 : h,
|
|
406
406
|
ref: e,
|
|
407
407
|
className: j(l, g, c && `${g}-${c}`, u && `${g}-dismissible`),
|
|
408
|
-
children: [u && /* @__PURE__ */ n.jsx(
|
|
408
|
+
children: [u && /* @__PURE__ */ n.jsx(Do, {
|
|
409
409
|
onClick: x,
|
|
410
410
|
"aria-label": o,
|
|
411
411
|
variant: a
|
|
@@ -420,7 +420,7 @@ const Is = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
|
420
420
|
}) : r ? p : null;
|
|
421
421
|
});
|
|
422
422
|
Is.displayName = "Alert";
|
|
423
|
-
const
|
|
423
|
+
const ua = Object.assign(Is, {
|
|
424
424
|
Link: $s,
|
|
425
425
|
Heading: Cs
|
|
426
426
|
}), tt = /* @__PURE__ */ M.forwardRef(({
|
|
@@ -533,10 +533,10 @@ const Ts = /* @__PURE__ */ M.forwardRef(({
|
|
|
533
533
|
...r
|
|
534
534
|
})));
|
|
535
535
|
Ts.displayName = "CardLink";
|
|
536
|
-
const
|
|
536
|
+
const fa = yt("h6"), Ms = /* @__PURE__ */ M.forwardRef(({
|
|
537
537
|
className: t,
|
|
538
538
|
bsPrefix: e,
|
|
539
|
-
as: s =
|
|
539
|
+
as: s = fa,
|
|
540
540
|
...r
|
|
541
541
|
}, o) => (e = z(e, "card-subtitle"), /* @__PURE__ */ n.jsx(s, {
|
|
542
542
|
ref: o,
|
|
@@ -555,10 +555,10 @@ const Ls = /* @__PURE__ */ M.forwardRef(({
|
|
|
555
555
|
...r
|
|
556
556
|
})));
|
|
557
557
|
Ls.displayName = "CardText";
|
|
558
|
-
const
|
|
558
|
+
const ma = yt("h5"), Rs = /* @__PURE__ */ M.forwardRef(({
|
|
559
559
|
className: t,
|
|
560
560
|
bsPrefix: e,
|
|
561
|
-
as: s =
|
|
561
|
+
as: s = ma,
|
|
562
562
|
...r
|
|
563
563
|
}, o) => (e = z(e, "card-title"), /* @__PURE__ */ n.jsx(s, {
|
|
564
564
|
ref: o,
|
|
@@ -600,7 +600,7 @@ const Dn = Object.assign(As, {
|
|
|
600
600
|
Footer: Ss,
|
|
601
601
|
ImgOverlay: Os
|
|
602
602
|
});
|
|
603
|
-
function
|
|
603
|
+
function pa(t, e) {
|
|
604
604
|
return M.Children.toArray(t).some((s) => /* @__PURE__ */ M.isValidElement(s) && s.type === e);
|
|
605
605
|
}
|
|
606
606
|
function Bs({
|
|
@@ -650,7 +650,7 @@ const Ps = /* @__PURE__ */ M.forwardRef(
|
|
|
650
650
|
}
|
|
651
651
|
);
|
|
652
652
|
Ps.displayName = "Col";
|
|
653
|
-
function
|
|
653
|
+
function ha(t, e, s) {
|
|
654
654
|
const r = Y(t !== void 0), [o, a] = S(e), l = t !== void 0, i = r.current;
|
|
655
655
|
return r.current = l, !l && i && o !== e && a(e), [l ? t : o, $((...c) => {
|
|
656
656
|
const [d, ...u] = c;
|
|
@@ -658,12 +658,12 @@ function ga(t, e, s) {
|
|
|
658
658
|
return a(d), m;
|
|
659
659
|
}, [s])];
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function ga() {
|
|
662
662
|
const [, t] = ps((e) => !e, !1);
|
|
663
663
|
return t;
|
|
664
664
|
}
|
|
665
|
-
const bt = /* @__PURE__ */ M.createContext(null),
|
|
666
|
-
function
|
|
665
|
+
const bt = /* @__PURE__ */ M.createContext(null), xa = ["children", "usePopper"];
|
|
666
|
+
function ja(t, e) {
|
|
667
667
|
if (t == null) return {};
|
|
668
668
|
var s = {};
|
|
669
669
|
for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
|
|
@@ -672,7 +672,7 @@ function wa(t, e) {
|
|
|
672
672
|
}
|
|
673
673
|
return s;
|
|
674
674
|
}
|
|
675
|
-
const
|
|
675
|
+
const wa = () => {
|
|
676
676
|
};
|
|
677
677
|
function Hs(t = {}) {
|
|
678
678
|
const e = B(bt), [s, r] = to(), o = Y(!1), {
|
|
@@ -703,7 +703,7 @@ function Hs(t = {}) {
|
|
|
703
703
|
arrowElement: s,
|
|
704
704
|
popperConfig: u
|
|
705
705
|
})), C = Object.assign({
|
|
706
|
-
ref: p ||
|
|
706
|
+
ref: p || wa,
|
|
707
707
|
"aria-labelledby": N == null ? void 0 : N.id
|
|
708
708
|
}, f.attributes.popper, {
|
|
709
709
|
style: f.styles.popper
|
|
@@ -728,7 +728,7 @@ function Ws(t) {
|
|
|
728
728
|
let {
|
|
729
729
|
children: e,
|
|
730
730
|
usePopper: s = !0
|
|
731
|
-
} = t, r =
|
|
731
|
+
} = t, r = ja(t, xa);
|
|
732
732
|
const [o, a] = Hs(Object.assign({}, r, {
|
|
733
733
|
usePopper: s
|
|
734
734
|
}));
|
|
@@ -740,13 +740,13 @@ Ws.displayName = "DropdownMenu";
|
|
|
740
740
|
const ht = {
|
|
741
741
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
742
742
|
current: 0
|
|
743
|
-
}, zs = /* @__PURE__ */
|
|
744
|
-
let
|
|
745
|
-
function
|
|
743
|
+
}, zs = /* @__PURE__ */ pe.createContext(ht), ya = /* @__PURE__ */ pe.createContext(!1);
|
|
744
|
+
let ba = !!(typeof window < "u" && window.document && window.document.createElement), Dt = /* @__PURE__ */ new WeakMap();
|
|
745
|
+
function va(t = !1) {
|
|
746
746
|
let e = B(zs), s = Y(null);
|
|
747
747
|
if (s.current === null && !t) {
|
|
748
748
|
var r, o;
|
|
749
|
-
let a = (o =
|
|
749
|
+
let a = (o = pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
750
750
|
if (a) {
|
|
751
751
|
let l = Dt.get(a);
|
|
752
752
|
l == null ? Dt.set(a, {
|
|
@@ -758,29 +758,29 @@ function _a(t = !1) {
|
|
|
758
758
|
}
|
|
759
759
|
return s.current;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function _a(t) {
|
|
762
762
|
let e = B(zs);
|
|
763
|
-
e === ht && !
|
|
764
|
-
let s =
|
|
763
|
+
e === ht && !ba && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
764
|
+
let s = va(!!t), r = e === ht && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
765
765
|
return t || `${r}-${s}`;
|
|
766
766
|
}
|
|
767
|
-
function
|
|
768
|
-
let e =
|
|
767
|
+
function Na(t) {
|
|
768
|
+
let e = pe.useId(), [s] = S(Sa()), r = s || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ht.prefix}`;
|
|
769
769
|
return t || `${r}-${e}`;
|
|
770
770
|
}
|
|
771
|
-
const
|
|
772
|
-
function
|
|
771
|
+
const Ca = typeof pe.useId == "function" ? Na : _a;
|
|
772
|
+
function ka() {
|
|
773
773
|
return !1;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function $a() {
|
|
776
776
|
return !0;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function Ia(t) {
|
|
779
779
|
return () => {
|
|
780
780
|
};
|
|
781
781
|
}
|
|
782
|
-
function
|
|
783
|
-
return typeof
|
|
782
|
+
function Sa() {
|
|
783
|
+
return typeof pe.useSyncExternalStore == "function" ? pe.useSyncExternalStore(Ia, ka, $a) : B(ya);
|
|
784
784
|
}
|
|
785
785
|
const Vs = (t) => {
|
|
786
786
|
var e;
|
|
@@ -788,7 +788,7 @@ const Vs = (t) => {
|
|
|
788
788
|
}, Fn = () => {
|
|
789
789
|
};
|
|
790
790
|
function Us() {
|
|
791
|
-
const t =
|
|
791
|
+
const t = Ca(), {
|
|
792
792
|
show: e = !1,
|
|
793
793
|
toggle: s = Fn,
|
|
794
794
|
setToggle: r,
|
|
@@ -817,8 +817,8 @@ function Gs({
|
|
|
817
817
|
Gs.displayName = "DropdownToggle";
|
|
818
818
|
const Pt = /* @__PURE__ */ M.createContext(null), En = (t, e = null) => t != null ? String(t) : e || null, Ys = /* @__PURE__ */ M.createContext(null);
|
|
819
819
|
Ys.displayName = "NavContext";
|
|
820
|
-
const
|
|
821
|
-
function
|
|
820
|
+
const Da = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
821
|
+
function Fa(t, e) {
|
|
822
822
|
if (t == null) return {};
|
|
823
823
|
var s = {};
|
|
824
824
|
for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
|
|
@@ -855,7 +855,7 @@ const qs = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
|
855
855
|
onClick: o,
|
|
856
856
|
active: a,
|
|
857
857
|
as: l = ks
|
|
858
|
-
} = t, i =
|
|
858
|
+
} = t, i = Fa(t, Da);
|
|
859
859
|
const [c] = Ks({
|
|
860
860
|
key: s,
|
|
861
861
|
href: i.href,
|
|
@@ -869,7 +869,7 @@ const qs = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
|
869
869
|
});
|
|
870
870
|
qs.displayName = "DropdownItem";
|
|
871
871
|
function On() {
|
|
872
|
-
const t =
|
|
872
|
+
const t = ga(), e = Y(null), s = $((r) => {
|
|
873
873
|
e.current = r, t();
|
|
874
874
|
}, [t]);
|
|
875
875
|
return [e, s];
|
|
@@ -884,7 +884,7 @@ function rt({
|
|
|
884
884
|
placement: l = "bottom-start",
|
|
885
885
|
children: i
|
|
886
886
|
}) {
|
|
887
|
-
const c = oo(), [d, u] =
|
|
887
|
+
const c = oo(), [d, u] = ha(e, t, r), [m, h] = On(), g = m.current, [x, w] = On(), p = x.current, y = Fo(d), N = Y(null), f = Y(!1), C = B(Pt), b = $((v, D, R = D == null ? void 0 : D.type) => {
|
|
888
888
|
u(v, {
|
|
889
889
|
originalEvent: D,
|
|
890
890
|
source: R
|
|
@@ -922,7 +922,7 @@ function rt({
|
|
|
922
922
|
let H = R.indexOf(v) + D;
|
|
923
923
|
return H = Math.max(0, Math.min(H, R.length)), R[H];
|
|
924
924
|
};
|
|
925
|
-
return
|
|
925
|
+
return ra($(() => c.document, [c]), "keydown", (v) => {
|
|
926
926
|
var D, R;
|
|
927
927
|
const {
|
|
928
928
|
key: H
|
|
@@ -1258,7 +1258,7 @@ const or = /* @__PURE__ */ M.forwardRef(({
|
|
|
1258
1258
|
controlId: C
|
|
1259
1259
|
} = B(Re), b = q(() => ({
|
|
1260
1260
|
controlId: t || C
|
|
1261
|
-
}), [C, t]), k = !p && w != null && w !== !1 ||
|
|
1261
|
+
}), [C, t]), k = !p && w != null && w !== !1 || pa(p, gt), _ = /* @__PURE__ */ n.jsx(ot, {
|
|
1262
1262
|
...N,
|
|
1263
1263
|
type: x === "switch" ? "checkbox" : x,
|
|
1264
1264
|
ref: f,
|
|
@@ -1276,7 +1276,7 @@ const or = /* @__PURE__ */ M.forwardRef(({
|
|
|
1276
1276
|
children: [_, k && /* @__PURE__ */ n.jsx(gt, {
|
|
1277
1277
|
title: g,
|
|
1278
1278
|
children: w
|
|
1279
|
-
}), d && /* @__PURE__ */ n.jsx(
|
|
1279
|
+
}), d && /* @__PURE__ */ n.jsx(Eo, {
|
|
1280
1280
|
type: u,
|
|
1281
1281
|
tooltip: c,
|
|
1282
1282
|
children: d
|
|
@@ -1395,10 +1395,10 @@ const ur = /* @__PURE__ */ M.forwardRef((t, e) => /* @__PURE__ */ n.jsx(xt, {
|
|
|
1395
1395
|
type: "switch"
|
|
1396
1396
|
}));
|
|
1397
1397
|
ur.displayName = "Switch";
|
|
1398
|
-
const
|
|
1398
|
+
const Ea = Object.assign(ur, {
|
|
1399
1399
|
Input: xt.Input,
|
|
1400
1400
|
Label: xt.Label
|
|
1401
|
-
}),
|
|
1401
|
+
}), Oa = {
|
|
1402
1402
|
/**
|
|
1403
1403
|
* The Form `ref` will be forwarded to the underlying element,
|
|
1404
1404
|
* which means, unless it's rendered `as` a composite component,
|
|
@@ -1426,13 +1426,13 @@ const Oa = Object.assign(ur, {
|
|
|
1426
1426
|
className: j(t, e && "was-validated")
|
|
1427
1427
|
}));
|
|
1428
1428
|
sn.displayName = "Form";
|
|
1429
|
-
sn.propTypes =
|
|
1429
|
+
sn.propTypes = Oa;
|
|
1430
1430
|
const ae = Object.assign(sn, {
|
|
1431
1431
|
Group: co,
|
|
1432
1432
|
Control: gs,
|
|
1433
1433
|
Floating: ar,
|
|
1434
1434
|
Check: xt,
|
|
1435
|
-
Switch:
|
|
1435
|
+
Switch: Ea,
|
|
1436
1436
|
Label: lr,
|
|
1437
1437
|
Text: dr,
|
|
1438
1438
|
Range: cr,
|
|
@@ -1449,12 +1449,12 @@ const ae = Object.assign(sn, {
|
|
|
1449
1449
|
...r
|
|
1450
1450
|
})));
|
|
1451
1451
|
_t.displayName = "InputGroupText";
|
|
1452
|
-
const
|
|
1452
|
+
const Ta = (t) => /* @__PURE__ */ n.jsx(_t, {
|
|
1453
1453
|
children: /* @__PURE__ */ n.jsx(ot, {
|
|
1454
1454
|
type: "checkbox",
|
|
1455
1455
|
...t
|
|
1456
1456
|
})
|
|
1457
|
-
}),
|
|
1457
|
+
}), Ma = (t) => /* @__PURE__ */ n.jsx(_t, {
|
|
1458
1458
|
children: /* @__PURE__ */ n.jsx(ot, {
|
|
1459
1459
|
type: "radio",
|
|
1460
1460
|
...t
|
|
@@ -1482,8 +1482,8 @@ const Ma = (t) => /* @__PURE__ */ n.jsx(_t, {
|
|
|
1482
1482
|
fr.displayName = "InputGroup";
|
|
1483
1483
|
const ft = Object.assign(fr, {
|
|
1484
1484
|
Text: _t,
|
|
1485
|
-
Radio:
|
|
1486
|
-
Checkbox:
|
|
1485
|
+
Radio: Ma,
|
|
1486
|
+
Checkbox: Ta
|
|
1487
1487
|
}), Ht = /* @__PURE__ */ new WeakMap(), Tn = (t, e) => {
|
|
1488
1488
|
if (!t || !e) return;
|
|
1489
1489
|
const s = Ht.get(e) || /* @__PURE__ */ new Map();
|
|
@@ -1491,7 +1491,7 @@ const ft = Object.assign(fr, {
|
|
|
1491
1491
|
let r = s.get(t);
|
|
1492
1492
|
return r || (r = e.matchMedia(t), r.refCount = 0, s.set(r.media, r)), r;
|
|
1493
1493
|
};
|
|
1494
|
-
function
|
|
1494
|
+
function La(t, e = typeof window > "u" ? void 0 : window) {
|
|
1495
1495
|
const s = Tn(t, e), [r, o] = S(() => s ? s.matches : !1);
|
|
1496
1496
|
return os(() => {
|
|
1497
1497
|
let a = Tn(t, e);
|
|
@@ -1506,7 +1506,7 @@ function Ra(t, e = typeof window > "u" ? void 0 : window) {
|
|
|
1506
1506
|
};
|
|
1507
1507
|
}, [t]), r;
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function Ra(t) {
|
|
1510
1510
|
const e = Object.keys(t);
|
|
1511
1511
|
function s(i, c) {
|
|
1512
1512
|
return i === c ? c : i ? `${i} and ${c}` : c;
|
|
@@ -1529,11 +1529,11 @@ function Aa(t) {
|
|
|
1529
1529
|
[i]: c
|
|
1530
1530
|
});
|
|
1531
1531
|
let m = q(() => Object.entries(u).reduce((h, [g, x]) => ((x === "up" || x === !0) && (h = s(h, a(g))), (x === "down" || x === !0) && (h = s(h, o(g))), h), ""), [JSON.stringify(u)]);
|
|
1532
|
-
return
|
|
1532
|
+
return La(m, d);
|
|
1533
1533
|
}
|
|
1534
1534
|
return l;
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1536
|
+
const Aa = Ra({
|
|
1537
1537
|
xs: 0,
|
|
1538
1538
|
sm: 576,
|
|
1539
1539
|
md: 768,
|
|
@@ -1551,7 +1551,7 @@ const Ba = Aa({
|
|
|
1551
1551
|
...r
|
|
1552
1552
|
})));
|
|
1553
1553
|
mr.displayName = "OffcanvasBody";
|
|
1554
|
-
const
|
|
1554
|
+
const Ba = {
|
|
1555
1555
|
[Vt]: "show",
|
|
1556
1556
|
[ns]: "show"
|
|
1557
1557
|
}, pr = /* @__PURE__ */ M.forwardRef(({
|
|
@@ -1574,7 +1574,7 @@ const Pa = {
|
|
|
1574
1574
|
childRef: s.ref,
|
|
1575
1575
|
children: (d, u) => /* @__PURE__ */ M.cloneElement(s, {
|
|
1576
1576
|
...u,
|
|
1577
|
-
className: j(e, s.props.className, (d === Vt || d === ts) && `${t}-toggling`,
|
|
1577
|
+
className: j(e, s.props.className, (d === Vt || d === ts) && `${t}-toggling`, Ba[d])
|
|
1578
1578
|
})
|
|
1579
1579
|
})));
|
|
1580
1580
|
pr.displayName = "OffcanvasToggling";
|
|
@@ -1584,7 +1584,7 @@ const hr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1584
1584
|
closeLabel: s = "Close",
|
|
1585
1585
|
closeButton: r = !1,
|
|
1586
1586
|
...o
|
|
1587
|
-
}, a) => (t = z(t, "offcanvas-header"), /* @__PURE__ */ n.jsx(
|
|
1587
|
+
}, a) => (t = z(t, "offcanvas-header"), /* @__PURE__ */ n.jsx(Oo, {
|
|
1588
1588
|
ref: a,
|
|
1589
1589
|
...o,
|
|
1590
1590
|
className: j(e, t),
|
|
@@ -1592,10 +1592,10 @@ const hr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1592
1592
|
closeButton: r
|
|
1593
1593
|
})));
|
|
1594
1594
|
hr.displayName = "OffcanvasHeader";
|
|
1595
|
-
const
|
|
1595
|
+
const Pa = yt("h5"), gr = /* @__PURE__ */ M.forwardRef(({
|
|
1596
1596
|
className: t,
|
|
1597
1597
|
bsPrefix: e,
|
|
1598
|
-
as: s =
|
|
1598
|
+
as: s = Pa,
|
|
1599
1599
|
...r
|
|
1600
1600
|
}, o) => (e = z(e, "offcanvas-title"), /* @__PURE__ */ n.jsx(s, {
|
|
1601
1601
|
ref: o,
|
|
@@ -1603,12 +1603,12 @@ const Ha = yt("h5"), gr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1603
1603
|
...r
|
|
1604
1604
|
})));
|
|
1605
1605
|
gr.displayName = "OffcanvasTitle";
|
|
1606
|
-
function
|
|
1606
|
+
function Ha(t) {
|
|
1607
1607
|
return /* @__PURE__ */ n.jsx(pr, {
|
|
1608
1608
|
...t
|
|
1609
1609
|
});
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function Wa(t) {
|
|
1612
1612
|
return /* @__PURE__ */ n.jsx(Lt, {
|
|
1613
1613
|
...t
|
|
1614
1614
|
});
|
|
@@ -1648,7 +1648,7 @@ const xr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1648
1648
|
t = z(t, "offcanvas");
|
|
1649
1649
|
const {
|
|
1650
1650
|
onToggle: H
|
|
1651
|
-
} = B(nn) || {}, [Q, X] = S(!1), L =
|
|
1651
|
+
} = B(nn) || {}, [Q, X] = S(!1), L = Aa(a || "xs", "up");
|
|
1652
1652
|
O(() => {
|
|
1653
1653
|
X(a ? l && !L : l);
|
|
1654
1654
|
}, [l, a, L]);
|
|
@@ -1658,9 +1658,9 @@ const xr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1658
1658
|
onHide: Z
|
|
1659
1659
|
}), [Z]);
|
|
1660
1660
|
function te() {
|
|
1661
|
-
return I || (d ? (R.current || (R.current = new
|
|
1661
|
+
return I || (d ? (R.current || (R.current = new Lo({
|
|
1662
1662
|
handleContainerOverflow: !1
|
|
1663
|
-
})), R.current) :
|
|
1663
|
+
})), R.current) : Ro());
|
|
1664
1664
|
}
|
|
1665
1665
|
const T = (le, ...xe) => {
|
|
1666
1666
|
le && (le.style.visibility = "visible"), b == null || b(le, ...xe);
|
|
@@ -1669,7 +1669,7 @@ const xr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1669
1669
|
}, de = $((le) => /* @__PURE__ */ n.jsx("div", {
|
|
1670
1670
|
...le,
|
|
1671
1671
|
className: j(`${t}-backdrop`, E)
|
|
1672
|
-
}), [E, t]),
|
|
1672
|
+
}), [E, t]), he = (le) => /* @__PURE__ */ n.jsx("div", {
|
|
1673
1673
|
...le,
|
|
1674
1674
|
...v,
|
|
1675
1675
|
className: j(e, a ? `${t}-${a}` : t, `${t}-${o}`),
|
|
@@ -1677,9 +1677,9 @@ const xr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1677
1677
|
children: s
|
|
1678
1678
|
});
|
|
1679
1679
|
return /* @__PURE__ */ n.jsxs(n.Fragment, {
|
|
1680
|
-
children: [!Q && (a || F) &&
|
|
1680
|
+
children: [!Q && (a || F) && he({}), /* @__PURE__ */ n.jsx(To.Provider, {
|
|
1681
1681
|
value: ee,
|
|
1682
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1682
|
+
children: /* @__PURE__ */ n.jsx(Mo, {
|
|
1683
1683
|
show: Q,
|
|
1684
1684
|
ref: D,
|
|
1685
1685
|
backdrop: i,
|
|
@@ -1699,10 +1699,10 @@ const xr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1699
1699
|
onExiting: C,
|
|
1700
1700
|
onExited: re,
|
|
1701
1701
|
manager: te(),
|
|
1702
|
-
transition:
|
|
1703
|
-
backdropTransition:
|
|
1702
|
+
transition: Ha,
|
|
1703
|
+
backdropTransition: Wa,
|
|
1704
1704
|
renderBackdrop: de,
|
|
1705
|
-
renderDialog:
|
|
1705
|
+
renderDialog: he
|
|
1706
1706
|
})
|
|
1707
1707
|
})]
|
|
1708
1708
|
});
|
|
@@ -1772,12 +1772,12 @@ const Se = Object.assign(yr, {
|
|
|
1772
1772
|
});
|
|
1773
1773
|
});
|
|
1774
1774
|
rn.displayName = "Spinner";
|
|
1775
|
-
const
|
|
1775
|
+
const rd = ({ heading: t, content: e, placement: s, children: r, trigger: o, popoverClassName: a, ...l }) => /* @__PURE__ */ n.jsx(uo, { placement: s, overlay: /* @__PURE__ */ n.jsxs(Ct, { className: j("luminus-popover", a), onClick: (i) => i.stopPropagation(), children: [
|
|
1776
1776
|
t && /* @__PURE__ */ n.jsx(Ct.Header, { children: typeof t == "string" ? /* @__PURE__ */ n.jsx(V, { variant: "h6", className: "text-primary", children: t }) : t }),
|
|
1777
1777
|
/* @__PURE__ */ n.jsx(Ct.Body, { children: e })
|
|
1778
|
-
] }), trigger: o ?? "hover", rootClose: !0, show: l.controlled ? l.isOpen : void 0, onToggle: l.controlled ? (i) => l.setIsOpen(i) : void 0, children: r }),
|
|
1778
|
+
] }), trigger: o ?? "hover", rootClose: !0, show: l.controlled ? l.isOpen : void 0, onToggle: l.controlled ? (i) => l.setIsOpen(i) : void 0, children: r }), za = ({ children: t, onStorno: e, noSpacer: s }) => {
|
|
1779
1779
|
const { texts: { formSubmit: r } } = B(ue);
|
|
1780
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1780
|
+
return /* @__PURE__ */ n.jsxs(Zc, { noSpacer: s, children: [
|
|
1781
1781
|
/* @__PURE__ */ n.jsxs(wn, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
1782
1782
|
/* @__PURE__ */ n.jsx(fo, {}),
|
|
1783
1783
|
t
|
|
@@ -1787,8 +1787,8 @@ const od = ({ heading: t, content: e, placement: s, children: r, trigger: o, pop
|
|
|
1787
1787
|
r.storno
|
|
1788
1788
|
] })
|
|
1789
1789
|
] });
|
|
1790
|
-
},
|
|
1791
|
-
button:
|
|
1790
|
+
}, Va = "_button_1r3i0_1", Wt = {
|
|
1791
|
+
button: Va
|
|
1792
1792
|
}, jt = ({
|
|
1793
1793
|
color: t = "primary",
|
|
1794
1794
|
// icon = <MdOutlineArrowOutward size={10} />,
|
|
@@ -1813,12 +1813,12 @@ const od = ({ heading: t, content: e, placement: s, children: r, trigger: o, pop
|
|
|
1813
1813
|
] }),
|
|
1814
1814
|
/* @__PURE__ */ n.jsx("input", { id: s, type: "file", accept: r, onChange: d, hidden: !0, multiple: i })
|
|
1815
1815
|
] });
|
|
1816
|
-
},
|
|
1816
|
+
}, Ua = "_icon-button_15e26_1", Ga = "_sm_15e26_14", Ya = "_md_15e26_23", Ka = "_lg_15e26_32", dt = {
|
|
1817
1817
|
"icon-button": "_icon-button_15e26_1",
|
|
1818
|
-
iconButton:
|
|
1819
|
-
sm:
|
|
1820
|
-
md:
|
|
1821
|
-
lg:
|
|
1818
|
+
iconButton: Ua,
|
|
1819
|
+
sm: Ga,
|
|
1820
|
+
md: Ya,
|
|
1821
|
+
lg: Ka
|
|
1822
1822
|
}, U = ({ type: t = "button", color: e = "primary", size: s = "md", children: r, className: o, ...a }) => a.as === "link" ? /* @__PURE__ */ n.jsx(_e, { to: a.href ?? "/", className: j(`luminus-icon-button btn text-${e} ${o ?? ""}`, dt.iconButton, dt[s]), ...a, children: r }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ n.jsx(
|
|
1823
1823
|
"button",
|
|
1824
1824
|
{
|
|
@@ -1827,9 +1827,9 @@ const od = ({ heading: t, content: e, placement: s, children: r, trigger: o, pop
|
|
|
1827
1827
|
...a,
|
|
1828
1828
|
children: r
|
|
1829
1829
|
}
|
|
1830
|
-
) : null,
|
|
1831
|
-
select:
|
|
1832
|
-
},
|
|
1830
|
+
) : null, qa = "_select_dlv1t_1", Ft = {
|
|
1831
|
+
select: qa
|
|
1832
|
+
}, Qa = ({ month: t, onChangeMonth: e, locale: s, yearMin: r = 2e3, yearMax: o = 2050 }) => {
|
|
1833
1833
|
const a = $((c) => {
|
|
1834
1834
|
const d = bs(t, c);
|
|
1835
1835
|
d.getFullYear() < r || d.getFullYear() > o || e(d);
|
|
@@ -1851,7 +1851,7 @@ const od = ({ heading: t, content: e, placement: s, children: r, trigger: o, pop
|
|
|
1851
1851
|
/* @__PURE__ */ n.jsx(U, { onClick: () => a(-1), disabled: t.getFullYear() < r || t.getFullYear() === r && t.getMonth() <= 0, children: /* @__PURE__ */ n.jsx(Gt, {}) }),
|
|
1852
1852
|
/* @__PURE__ */ n.jsx(ae.Select, { value: t.getMonth(), onChange: (c) => {
|
|
1853
1853
|
var d;
|
|
1854
|
-
return ((d = c.target) == null ? void 0 : d.value) && e(
|
|
1854
|
+
return ((d = c.target) == null ? void 0 : d.value) && e(Jo(t, Number(c.target.value)));
|
|
1855
1855
|
}, className: j(Ft.select, Ft.month), children: i.map((c) => /* @__PURE__ */ n.jsx("option", { value: c.id, children: c.name }, c.id)) }),
|
|
1856
1856
|
/* @__PURE__ */ n.jsx(ae.Select, { value: t.getFullYear(), onChange: (c) => {
|
|
1857
1857
|
var d;
|
|
@@ -1859,12 +1859,12 @@ const od = ({ heading: t, content: e, placement: s, children: r, trigger: o, pop
|
|
|
1859
1859
|
}, className: j(Ft.select), children: l.map((c) => /* @__PURE__ */ n.jsx("option", { value: c, children: c }, c)) }),
|
|
1860
1860
|
/* @__PURE__ */ n.jsx(U, { onClick: () => a(1), disabled: t.getFullYear() > o || t.getFullYear() === o && t.getMonth() >= 11, children: /* @__PURE__ */ n.jsx(Yt, {}) })
|
|
1861
1861
|
] });
|
|
1862
|
-
},
|
|
1863
|
-
select:
|
|
1864
|
-
},
|
|
1862
|
+
}, Za = "_select_pywmr_1", Ja = {
|
|
1863
|
+
select: Za
|
|
1864
|
+
}, Xa = ({ year: t, onChangeYear: e, optionMin: s = 2e3, optionMax: r = 2050, className: o }) => {
|
|
1865
1865
|
const a = $((i) => {
|
|
1866
1866
|
const c = t.getFullYear() + i;
|
|
1867
|
-
c < s || c > r || e(
|
|
1867
|
+
c < s || c > r || e(Yo(t, i));
|
|
1868
1868
|
}, [t, e, r, s]), l = q(() => {
|
|
1869
1869
|
const i = [];
|
|
1870
1870
|
for (let c = s; c <= r; c++)
|
|
@@ -1876,23 +1876,23 @@ const od = ({ heading: t, content: e, placement: s, children: r, trigger: o, pop
|
|
|
1876
1876
|
/* @__PURE__ */ n.jsx(ae.Select, { value: t.getFullYear(), onChange: (i) => {
|
|
1877
1877
|
var c;
|
|
1878
1878
|
return ((c = i.target) == null ? void 0 : c.value) && e(vs(t, Number(i.target.value)));
|
|
1879
|
-
}, className:
|
|
1879
|
+
}, className: Ja.select, children: l.map((i) => /* @__PURE__ */ n.jsx("option", { value: i, children: i }, i)) }),
|
|
1880
1880
|
/* @__PURE__ */ n.jsx(U, { onClick: () => a(1), disabled: t.getFullYear() >= r, children: /* @__PURE__ */ n.jsx(Yt, {}) })
|
|
1881
1881
|
] });
|
|
1882
|
-
},
|
|
1883
|
-
widget:
|
|
1884
|
-
},
|
|
1882
|
+
}, el = "_widget_etgh3_1", tl = {
|
|
1883
|
+
widget: el
|
|
1884
|
+
}, nl = ({ show: t, widgets: e, handleClose: s, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ n.jsxs(ct, { show: t, onHide: () => s(), children: [
|
|
1885
1885
|
/* @__PURE__ */ n.jsx(ct.Header, { closeButton: !0, children: /* @__PURE__ */ n.jsx(ct.Title, { children: o.pickWidgetToAdd }) }),
|
|
1886
1886
|
/* @__PURE__ */ n.jsx(ct.Body, { children: /* @__PURE__ */ n.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ n.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ n.jsx(V, { variant: "body", children: a.name }) })) }) })
|
|
1887
1887
|
] }), Ln = ({ availableWidgets: t, onAdd: e, texts: s }) => {
|
|
1888
1888
|
const [r, o] = S(!1);
|
|
1889
1889
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1890
|
-
/* @__PURE__ */ n.jsx("div", { className: j("luminus-empty-widget",
|
|
1891
|
-
/* @__PURE__ */ n.jsx(
|
|
1890
|
+
/* @__PURE__ */ n.jsx("div", { className: j("luminus-empty-widget", tl.widget), children: /* @__PURE__ */ n.jsx(U, { onClick: () => o(!0), children: /* @__PURE__ */ n.jsx(po, {}) }) }),
|
|
1891
|
+
/* @__PURE__ */ n.jsx(nl, { show: r, widgets: t, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
1892
1892
|
o(!1), e(a);
|
|
1893
1893
|
}, texts: s })
|
|
1894
1894
|
] });
|
|
1895
|
-
},
|
|
1895
|
+
}, sl = (t) => {
|
|
1896
1896
|
const [e, s] = S({ widgets: [] });
|
|
1897
1897
|
O(() => {
|
|
1898
1898
|
const o = localStorage.getItem("dashboardConfig");
|
|
@@ -1902,24 +1902,24 @@ const od = ({ heading: t, content: e, placement: s, children: r, trigger: o, pop
|
|
|
1902
1902
|
s(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
|
|
1903
1903
|
}, []);
|
|
1904
1904
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
1905
|
-
},
|
|
1906
|
-
dashboard:
|
|
1905
|
+
}, rl = "_dashboard_16plm_1", ol = "_widgets-grid_16plm_1", al = "_widget-wrapper_16plm_8", ll = "_full-width_16plm_13", cl = "_widget-edit_16plm_16", il = "_remove-icon_16plm_19", dl = "_full-width-icon_16plm_26", ul = "_widget-edit-overlay_16plm_36", be = {
|
|
1906
|
+
dashboard: rl,
|
|
1907
1907
|
"widgets-grid": "_widgets-grid_16plm_1",
|
|
1908
|
-
widgetsGrid:
|
|
1908
|
+
widgetsGrid: ol,
|
|
1909
1909
|
"widget-wrapper": "_widget-wrapper_16plm_8",
|
|
1910
|
-
widgetWrapper:
|
|
1910
|
+
widgetWrapper: al,
|
|
1911
1911
|
"full-width": "_full-width_16plm_13",
|
|
1912
|
-
fullWidth:
|
|
1912
|
+
fullWidth: ll,
|
|
1913
1913
|
"widget-edit": "_widget-edit_16plm_16",
|
|
1914
|
-
widgetEdit:
|
|
1914
|
+
widgetEdit: cl,
|
|
1915
1915
|
"remove-icon": "_remove-icon_16plm_19",
|
|
1916
|
-
removeIcon:
|
|
1916
|
+
removeIcon: il,
|
|
1917
1917
|
"full-width-icon": "_full-width-icon_16plm_26",
|
|
1918
|
-
fullWidthIcon:
|
|
1918
|
+
fullWidthIcon: dl,
|
|
1919
1919
|
"widget-edit-overlay": "_widget-edit-overlay_16plm_36",
|
|
1920
|
-
widgetEditOverlay:
|
|
1920
|
+
widgetEditOverlay: ul
|
|
1921
1921
|
};
|
|
1922
|
-
class
|
|
1922
|
+
class fl extends $o {
|
|
1923
1923
|
constructor(e) {
|
|
1924
1924
|
super(e), this.state = { hasError: !1 }, this.reload = this.reload.bind(this);
|
|
1925
1925
|
}
|
|
@@ -1938,7 +1938,7 @@ class ml extends $o {
|
|
|
1938
1938
|
}
|
|
1939
1939
|
render() {
|
|
1940
1940
|
const { fallback: e, children: s, texts: r, reloadButtonDisplay: o = "append-after-child" } = this.props;
|
|
1941
|
-
return this.state.hasError ? o === "inject-to-child" && Io(e) ?
|
|
1941
|
+
return this.state.hasError ? o === "inject-to-child" && Io(e) ? pe.cloneElement(e, {
|
|
1942
1942
|
...e.props
|
|
1943
1943
|
}, /* @__PURE__ */ n.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
1944
1944
|
...e.props.children,
|
|
@@ -1949,18 +1949,18 @@ class ml extends $o {
|
|
|
1949
1949
|
] }) : s;
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
|
-
const
|
|
1952
|
+
const ml = (t) => (s) => {
|
|
1953
1953
|
const { texts: { errorBoundary: r } } = B(ue);
|
|
1954
1954
|
return /* @__PURE__ */ n.jsx(t, { texts: r, ...s });
|
|
1955
|
-
},
|
|
1955
|
+
}, pl = ml(fl), hl = "_widget-card_e9tsb_1", gl = {
|
|
1956
1956
|
"widget-card": "_widget-card_e9tsb_1",
|
|
1957
|
-
widgetCard:
|
|
1958
|
-
}, Rn = ({ children: t, title: e, headerContent: s }) => /* @__PURE__ */ n.jsx(
|
|
1957
|
+
widgetCard: hl
|
|
1958
|
+
}, Rn = ({ children: t, title: e, headerContent: s }) => /* @__PURE__ */ n.jsx(jc, { className: j(gl.widgetCard, "luminus-widget"), title: e, headerContent: s, contentClassName: "h-100 overflow-auto", children: t }), xl = ({ children: t, title: e }) => {
|
|
1959
1959
|
const { texts: { widget: s } } = B(ue);
|
|
1960
|
-
return /* @__PURE__ */ n.jsx(
|
|
1961
|
-
},
|
|
1960
|
+
return /* @__PURE__ */ n.jsx(pl, { fallback: /* @__PURE__ */ n.jsx(Rn, { title: e, children: s.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ n.jsx(So, { fallback: /* @__PURE__ */ n.jsx(Rn, { title: e, children: /* @__PURE__ */ n.jsx(Go, {}) }), children: t }) });
|
|
1961
|
+
}, od = ({ availableWidgets: t, editMode: e, defaultDashboardConfig: s }) => {
|
|
1962
1962
|
var u;
|
|
1963
|
-
const { texts: { homeDashboard: r } } = B(ue), { dashboardConfig: o, onChangeDashboardConfig: a } =
|
|
1963
|
+
const { texts: { homeDashboard: r } } = B(ue), { dashboardConfig: o, onChangeDashboardConfig: a } = sl(s), l = $((m, h) => {
|
|
1964
1964
|
var g, x;
|
|
1965
1965
|
m === ((g = o.widgets) == null ? void 0 : g.length) ? a({
|
|
1966
1966
|
...o,
|
|
@@ -1988,7 +1988,7 @@ const pl = (t) => (s) => {
|
|
|
1988
1988
|
/* @__PURE__ */ n.jsx(U, { color: "danger", onClick: () => i(h), className: j(be.removeIcon), children: /* @__PURE__ */ n.jsx(ls, {}) }),
|
|
1989
1989
|
/* @__PURE__ */ n.jsx(U, { color: g ? "danger" : "primary", onClick: () => c(h), className: j(be.fullWidthIcon), children: /* @__PURE__ */ n.jsx(ho, {}) })
|
|
1990
1990
|
] }),
|
|
1991
|
-
m.id === -1 ? e && /* @__PURE__ */ n.jsx("div", { className: be.widgetWrapper, children: /* @__PURE__ */ n.jsx(Ln, { availableWidgets: t, onAdd: (x) => l(h, x), texts: r }) }) : /* @__PURE__ */ n.jsx(
|
|
1991
|
+
m.id === -1 ? e && /* @__PURE__ */ n.jsx("div", { className: be.widgetWrapper, children: /* @__PURE__ */ n.jsx(Ln, { availableWidgets: t, onAdd: (x) => l(h, x), texts: r }) }) : /* @__PURE__ */ n.jsx(xl, { title: m.title, children: /* @__PURE__ */ n.jsx(m.WidgetElement, { title: m.title }) }),
|
|
1992
1992
|
m.id > -1 && e && /* @__PURE__ */ n.jsx("div", { className: be.widgetEditOverlay })
|
|
1993
1993
|
] }, h) : /* @__PURE__ */ n.jsx(n.Fragment, {}), [
|
|
1994
1994
|
e,
|
|
@@ -2005,16 +2005,16 @@ const pl = (t) => (s) => {
|
|
|
2005
2005
|
return l((h = o.widgets) == null ? void 0 : h.length, m);
|
|
2006
2006
|
}, texts: r })
|
|
2007
2007
|
] }) });
|
|
2008
|
-
},
|
|
2009
|
-
badge:
|
|
2010
|
-
sm:
|
|
2011
|
-
md:
|
|
2012
|
-
lg:
|
|
2013
|
-
},
|
|
2008
|
+
}, jl = "_badge_nhser_1", wl = "_sm_nhser_1", yl = "_md_nhser_4", bl = "_lg_nhser_7", An = {
|
|
2009
|
+
badge: jl,
|
|
2010
|
+
sm: wl,
|
|
2011
|
+
md: yl,
|
|
2012
|
+
lg: bl
|
|
2013
|
+
}, ad = ({ children: t, color: e = "primary", size: s = "md", className: r }) => /* @__PURE__ */ n.jsx("span", { className: j(`luminus-badge badge bg-${e} ${r ?? ""}`, An.badge, An[s]), children: t }), vl = "_collapse-icon_1ahhn_1", _l = "_collapsed_1ahhn_6", Bn = {
|
|
2014
2014
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
2015
|
-
collapseIcon:
|
|
2016
|
-
collapsed:
|
|
2017
|
-
},
|
|
2015
|
+
collapseIcon: vl,
|
|
2016
|
+
collapsed: _l
|
|
2017
|
+
}, Nl = ({ title: t, children: e, className: s, ...r }) => {
|
|
2018
2018
|
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, l] = S(o), i = r.controlled ? r.isOpen : a;
|
|
2019
2019
|
return O(() => {
|
|
2020
2020
|
l(o);
|
|
@@ -2028,15 +2028,15 @@ const pl = (t) => (s) => {
|
|
|
2028
2028
|
/* @__PURE__ */ n.jsx(_s, { in: i, children: /* @__PURE__ */ n.jsx("div", { children: e }) }),
|
|
2029
2029
|
/* @__PURE__ */ n.jsx("hr", { className: `my-0 ${i ? "mt-3" : ""}` })
|
|
2030
2030
|
] });
|
|
2031
|
-
},
|
|
2032
|
-
feedback:
|
|
2031
|
+
}, Cl = "_feedback_esh1j_1", kl = "_feedback-spacer_esh1j_8", Pn = {
|
|
2032
|
+
feedback: Cl,
|
|
2033
2033
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
2034
|
-
feedbackSpacer:
|
|
2034
|
+
feedbackSpacer: kl
|
|
2035
2035
|
}, Fe = ({ message: t }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2036
2036
|
/* @__PURE__ */ n.jsx("div", { className: j("invalid-feedback luminus-invalid-feedback", Pn.feedback), children: t }),
|
|
2037
2037
|
/* @__PURE__ */ n.jsx("div", { className: j("invalid-feedback-spacer", Pn.feedbackSpacer), children: t })
|
|
2038
2038
|
] });
|
|
2039
|
-
function
|
|
2039
|
+
function $l(t, e, s) {
|
|
2040
2040
|
var r = this, o = Y(null), a = Y(0), l = Y(null), i = Y([]), c = Y(), d = Y(), u = Y(t), m = Y(!0);
|
|
2041
2041
|
u.current = t;
|
|
2042
2042
|
var h = typeof window < "u", g = !e && e !== 0 && h;
|
|
@@ -2087,39 +2087,39 @@ function Il(t, e, s) {
|
|
|
2087
2087
|
}, [x, p, e, N, w, g, h, y]);
|
|
2088
2088
|
return f;
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2090
|
+
function Il(t, e) {
|
|
2091
2091
|
return t === e;
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function Sl(t, e) {
|
|
2094
2094
|
return e;
|
|
2095
2095
|
}
|
|
2096
2096
|
function vr(t, e, s) {
|
|
2097
|
-
var r =
|
|
2097
|
+
var r = Il, o = ps(Sl, t), a = o[0], l = o[1], i = $l($(function(d) {
|
|
2098
2098
|
return l(d);
|
|
2099
2099
|
}, [l]), e, s), c = Y(t);
|
|
2100
2100
|
return r(c.current, t) || (i(t), c.current = t), r(a, t) && i.cancel(), [a, i];
|
|
2101
2101
|
}
|
|
2102
|
-
const
|
|
2103
|
-
wrapper:
|
|
2104
|
-
open:
|
|
2105
|
-
dropdown:
|
|
2102
|
+
const Dl = "_wrapper_uccrb_1", Fl = "_open_uccrb_9", El = "_dropdown_uccrb_13", Ol = "_search-input-container_uccrb_19", Tl = "_search-input_uccrb_19", Ml = "_loading-container_uccrb_25", Ll = "_items-container_uccrb_32", Rl = "_header-row_uccrb_38", Al = "_item_uccrb_32", Bl = "_name_uccrb_57", Pl = "_column-item_uccrb_62", Hl = "_icon_uccrb_66", Wl = "_clear-button_uccrb_74", fe = {
|
|
2103
|
+
wrapper: Dl,
|
|
2104
|
+
open: Fl,
|
|
2105
|
+
dropdown: El,
|
|
2106
2106
|
"search-input-container": "_search-input-container_uccrb_19",
|
|
2107
|
-
searchInputContainer:
|
|
2107
|
+
searchInputContainer: Ol,
|
|
2108
2108
|
"search-input": "_search-input_uccrb_19",
|
|
2109
|
-
searchInput:
|
|
2109
|
+
searchInput: Tl,
|
|
2110
2110
|
"loading-container": "_loading-container_uccrb_25",
|
|
2111
|
-
loadingContainer:
|
|
2111
|
+
loadingContainer: Ml,
|
|
2112
2112
|
"items-container": "_items-container_uccrb_32",
|
|
2113
|
-
itemsContainer:
|
|
2113
|
+
itemsContainer: Ll,
|
|
2114
2114
|
"header-row": "_header-row_uccrb_38",
|
|
2115
|
-
headerRow:
|
|
2116
|
-
item:
|
|
2117
|
-
name:
|
|
2115
|
+
headerRow: Rl,
|
|
2116
|
+
item: Al,
|
|
2117
|
+
name: Bl,
|
|
2118
2118
|
"column-item": "_column-item_uccrb_62",
|
|
2119
|
-
columnItem:
|
|
2120
|
-
icon:
|
|
2119
|
+
columnItem: Pl,
|
|
2120
|
+
icon: Hl,
|
|
2121
2121
|
"clear-button": "_clear-button_uccrb_74",
|
|
2122
|
-
clearButton:
|
|
2122
|
+
clearButton: Wl
|
|
2123
2123
|
}, on = ({ show: t, onCancel: e, items: s, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: l, itemsNameWidth: i, additionalColumns: c, displayIdAsName: d = !1, autoHideSearch: u = !1, allItemsLength: m, disabled: h, isLoading: g = !1, inputRef: x }) => {
|
|
2124
2124
|
var W;
|
|
2125
2125
|
const w = Y(null), p = Y(null), y = Y(null), N = Y(null), [f, C] = S(""), [b] = vr(f, 500), [, k] = S(!1), _ = (W = x.current) == null ? void 0 : W.getBoundingClientRect(), E = (_ == null ? void 0 : _.x) ?? 0, I = ((_ == null ? void 0 : _.x) ?? 0) + ((_ == null ? void 0 : _.width) ?? 0), F = (_ == null ? void 0 : _.y) ?? 0, v = ((_ == null ? void 0 : _.y) ?? 0) + ((_ == null ? void 0 : _.height) ?? 0), D = (_ == null ? void 0 : _.width) ?? 0, R = (_ == null ? void 0 : _.height) ?? 0, H = 5, Q = q(() => E ? E > window.innerWidth / 2 : !1, [E]), X = q(() => F ? F > window.innerHeight / 2 : !1, [F]);
|
|
@@ -2179,7 +2179,7 @@ const Fl = "_wrapper_uccrb_1", El = "_open_uccrb_9", Ol = "_dropdown_uccrb_13",
|
|
|
2179
2179
|
}), [de]), O(() => (window.addEventListener("resize", de), () => {
|
|
2180
2180
|
window.removeEventListener("resize", de);
|
|
2181
2181
|
}), [de]), js(re), ws([w, p], e);
|
|
2182
|
-
const
|
|
2182
|
+
const he = i ?? (c && c.length > 0 ? 250 : 0), le = (c == null ? void 0 : c.reduce((A, ne) => A + (ne.width ?? 100), 0)) ?? 0, xe = `calc(max(${D}px, ${he}px + ${le}px))`;
|
|
2183
2183
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2184
2184
|
/* @__PURE__ */ n.jsx(Dr, { show: t, onClick: e }),
|
|
2185
2185
|
r && t && !h && /* @__PURE__ */ n.jsx("button", { ref: p, type: "button", className: j("luminus-dropdown-picker-clear-button", fe.clearButton), onClick: () => !h && o(null), style: {
|
|
@@ -2230,11 +2230,11 @@ function _r(t) {
|
|
|
2230
2230
|
function Nr(t) {
|
|
2231
2231
|
return Kt({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }, child: [] }] })(t);
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2233
|
+
function zl(t) {
|
|
2234
2234
|
return Kt({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" }, child: [] }] })(t);
|
|
2235
2235
|
}
|
|
2236
|
-
const
|
|
2237
|
-
item:
|
|
2236
|
+
const Vl = "_item_1dy8x_1", Cr = {
|
|
2237
|
+
item: Vl
|
|
2238
2238
|
}, an = ({
|
|
2239
2239
|
color: t = "primary",
|
|
2240
2240
|
// icon = <MdOutlineArrowOutward />,
|
|
@@ -2245,7 +2245,7 @@ const Ul = "_item_1dy8x_1", Cr = {
|
|
|
2245
2245
|
}) => /* @__PURE__ */ n.jsxs(nt.Item, { className: j(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${s ?? ""}`, Cr.item), ...o, children: [
|
|
2246
2246
|
e,
|
|
2247
2247
|
r
|
|
2248
|
-
] }), kr = (t) => /* @__PURE__ */ n.jsx(nt.Toggle, { ...t }),
|
|
2248
|
+
] }), kr = (t) => /* @__PURE__ */ n.jsx(nt.Toggle, { ...t }), ld = ({ color: t = "primary", icon: e = /* @__PURE__ */ n.jsx(as, { size: 12 }), inputId: s = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: l, children: i, ...c }) => {
|
|
2249
2249
|
const d = (u) => {
|
|
2250
2250
|
u.target.files && (o(u.target.files), u.target.value = "");
|
|
2251
2251
|
};
|
|
@@ -2256,24 +2256,24 @@ const Ul = "_item_1dy8x_1", Cr = {
|
|
|
2256
2256
|
] }),
|
|
2257
2257
|
/* @__PURE__ */ n.jsx("input", { id: s, type: "file", accept: r, onChange: d, hidden: !0, multiple: a })
|
|
2258
2258
|
] });
|
|
2259
|
-
},
|
|
2260
|
-
divider:
|
|
2261
|
-
},
|
|
2262
|
-
dropdown:
|
|
2259
|
+
}, Ul = "_divider_1e6rk_1", Gl = {
|
|
2260
|
+
divider: Ul
|
|
2261
|
+
}, cd = ({ className: t }) => /* @__PURE__ */ n.jsx(nt.Divider, { className: j("luminus-dropdown-divider", t, Gl.divider) }), Yl = "_dropdown_1lk66_1", Kl = {
|
|
2262
|
+
dropdown: Yl
|
|
2263
2263
|
}, $r = ({ toggle: t, children: e, ...s }) => /* @__PURE__ */ n.jsxs(nt, { ...s, children: [
|
|
2264
2264
|
t,
|
|
2265
|
-
/* @__PURE__ */ n.jsx(nt.Menu, { className: j("luminus-dropdown rounded shadow",
|
|
2266
|
-
] }),
|
|
2267
|
-
dropdown:
|
|
2268
|
-
open:
|
|
2265
|
+
/* @__PURE__ */ n.jsx(nt.Menu, { className: j("luminus-dropdown rounded shadow", Kl.dropdown), children: e })
|
|
2266
|
+
] }), ql = ({ searchTypes: t, selectedType: e, setSelectedType: s }) => /* @__PURE__ */ n.jsx($r, { toggle: /* @__PURE__ */ n.jsx(kr, { as: go, icon: null, text: e == null ? void 0 : e.text }), children: t.map((r) => /* @__PURE__ */ n.jsx(an, { icon: null, onClick: () => s(r.key), children: r.text }, r.key)) }), Ql = "_dropdown_1ddrg_1", Zl = "_open_1ddrg_12", Jl = "_loading-container_1ddrg_15", Xl = "_groups-container_1ddrg_22", ec = "_group_1ddrg_22", tc = "_header_1ddrg_26", nc = "_item_1ddrg_33", Ee = {
|
|
2267
|
+
dropdown: Ql,
|
|
2268
|
+
open: Zl,
|
|
2269
2269
|
"loading-container": "_loading-container_1ddrg_15",
|
|
2270
|
-
loadingContainer:
|
|
2270
|
+
loadingContainer: Jl,
|
|
2271
2271
|
"groups-container": "_groups-container_1ddrg_22",
|
|
2272
|
-
groupsContainer:
|
|
2273
|
-
group:
|
|
2274
|
-
header:
|
|
2275
|
-
item:
|
|
2276
|
-
},
|
|
2272
|
+
groupsContainer: Xl,
|
|
2273
|
+
group: ec,
|
|
2274
|
+
header: tc,
|
|
2275
|
+
item: nc
|
|
2276
|
+
}, sc = ({ show: t, query: e, onCancel: s, groups: r, isLoading: o, searchTypes: a }) => {
|
|
2277
2277
|
const { texts: { appSearch: l } } = B(ue), i = Y(null), c = $((d) => {
|
|
2278
2278
|
var m;
|
|
2279
2279
|
const u = (m = a.find((h) => h.key === d.type)) == null ? void 0 : m.toPath;
|
|
@@ -2309,17 +2309,17 @@ const Ul = "_item_1dy8x_1", Cr = {
|
|
|
2309
2309
|
))
|
|
2310
2310
|
] }, d.key.category);
|
|
2311
2311
|
}) }) });
|
|
2312
|
-
},
|
|
2312
|
+
}, rc = "_input-group_1lkfy_1", oc = "_input-group-text_1lkfy_5", ac = "_left_1lkfy_9", lc = "_right_1lkfy_13", cc = "_input_1lkfy_1", ic = "_submit-button_1lkfy_20", Oe = {
|
|
2313
2313
|
"input-group": "_input-group_1lkfy_1",
|
|
2314
|
-
inputGroup:
|
|
2314
|
+
inputGroup: rc,
|
|
2315
2315
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
2316
|
-
inputGroupText:
|
|
2317
|
-
left:
|
|
2318
|
-
right:
|
|
2319
|
-
input:
|
|
2316
|
+
inputGroupText: oc,
|
|
2317
|
+
left: ac,
|
|
2318
|
+
right: lc,
|
|
2319
|
+
input: cc,
|
|
2320
2320
|
"submit-button": "_submit-button_1lkfy_20",
|
|
2321
|
-
submitButton:
|
|
2322
|
-
},
|
|
2321
|
+
submitButton: ic
|
|
2322
|
+
}, dc = (t, e) => {
|
|
2323
2323
|
const s = st(), [r, o] = S(!1), [a, l] = S([]), i = !t || !t.key, c = $(() => {
|
|
2324
2324
|
if (e.length < 3) {
|
|
2325
2325
|
l([]);
|
|
@@ -2334,9 +2334,9 @@ const Ul = "_item_1dy8x_1", Cr = {
|
|
|
2334
2334
|
return O(() => {
|
|
2335
2335
|
c();
|
|
2336
2336
|
}, [c]), { isLoading: r, searchItems: a };
|
|
2337
|
-
},
|
|
2337
|
+
}, id = ({ searchTypes: t, navigateFunction: e, currentPath: s }) => {
|
|
2338
2338
|
var w;
|
|
2339
|
-
const { texts: { appSearch: r } } = B(ue), [o, a] = S(t.length > 0 ? ((w = t.at(0)) == null ? void 0 : w.key) ?? null : null), l = q(() => t.find((p) => p.key === o) ?? null, [t, o]), [i, c] = S(""), [d, u] = vr(i, 500), { isLoading: m, searchItems: h } =
|
|
2339
|
+
const { texts: { appSearch: r } } = B(ue), [o, a] = S(t.length > 0 ? ((w = t.at(0)) == null ? void 0 : w.key) ?? null : null), l = q(() => t.find((p) => p.key === o) ?? null, [t, o]), [i, c] = S(""), [d, u] = vr(i, 500), { isLoading: m, searchItems: h } = dc(l, d), [g, x] = S(!1);
|
|
2340
2340
|
return O(() => {
|
|
2341
2341
|
(h.length > 0 || m) && x(!0);
|
|
2342
2342
|
}, [h, m]), O(() => {
|
|
@@ -2344,25 +2344,25 @@ const Ul = "_item_1dy8x_1", Cr = {
|
|
|
2344
2344
|
}, [s]), /* @__PURE__ */ n.jsx(ae, { onSubmit: (p) => {
|
|
2345
2345
|
p.preventDefault(), p.stopPropagation(), u.flush(), x(!1), i.length > 2 && e(`/search?query=${i}${l && l.key && `&type=${l == null ? void 0 : l.key}`}`);
|
|
2346
2346
|
}, children: /* @__PURE__ */ n.jsxs(ft, { className: Oe.inputGroup, children: [
|
|
2347
|
-
/* @__PURE__ */ n.jsx(ft.Text, { className: j("p-1 rounded", Oe.inputGroupText, Oe.left), children: /* @__PURE__ */ n.jsx(
|
|
2347
|
+
/* @__PURE__ */ n.jsx(ft.Text, { className: j("p-1 rounded", Oe.inputGroupText, Oe.left), children: /* @__PURE__ */ n.jsx(ql, { searchTypes: t, selectedType: l, setSelectedType: a }) }),
|
|
2348
2348
|
/* @__PURE__ */ n.jsx(ae.Control, { placeholder: r.searchPlaceholder, type: "text", size: "sm", className: j("luminus-app-search-input", Oe.input), value: i, onChange: (p) => {
|
|
2349
2349
|
var y;
|
|
2350
2350
|
return c(((y = p.target) == null ? void 0 : y.value) ?? "");
|
|
2351
2351
|
}, onFocus: () => h.length > 0 && x(!0) }),
|
|
2352
|
-
/* @__PURE__ */ n.jsx(ft.Text, { className: j("p-0 rounded", Oe.inputGroupText, Oe.right), children: /* @__PURE__ */ n.jsx("button", { type: "submit", className: j("text-primary", Oe.submitButton), children: /* @__PURE__ */ n.jsx(
|
|
2353
|
-
/* @__PURE__ */ n.jsx(
|
|
2352
|
+
/* @__PURE__ */ n.jsx(ft.Text, { className: j("p-0 rounded", Oe.inputGroupText, Oe.right), children: /* @__PURE__ */ n.jsx("button", { type: "submit", className: j("text-primary", Oe.submitButton), children: /* @__PURE__ */ n.jsx(zl, {}) }) }),
|
|
2353
|
+
/* @__PURE__ */ n.jsx(sc, { query: d, searchTypes: t, show: g, onCancel: () => x(!1), groups: h, isLoading: m })
|
|
2354
2354
|
] }) });
|
|
2355
|
-
},
|
|
2356
|
-
card:
|
|
2357
|
-
header:
|
|
2355
|
+
}, uc = "_card_19733_1", fc = "_header_19733_6", mc = "_header-content_19733_13", pc = "_title_19733_19", hc = "_collapse-icon_19733_22", gc = "_collapsed_19733_27", xc = "_content_19733_30", Te = {
|
|
2356
|
+
card: uc,
|
|
2357
|
+
header: fc,
|
|
2358
2358
|
"header-content": "_header-content_19733_13",
|
|
2359
|
-
headerContent:
|
|
2360
|
-
title:
|
|
2359
|
+
headerContent: mc,
|
|
2360
|
+
title: pc,
|
|
2361
2361
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
2362
|
-
collapseIcon:
|
|
2363
|
-
collapsed:
|
|
2364
|
-
content:
|
|
2365
|
-
},
|
|
2362
|
+
collapseIcon: hc,
|
|
2363
|
+
collapsed: gc,
|
|
2364
|
+
content: xc
|
|
2365
|
+
}, jc = ({ title: t, headerContent: e, children: s, className: r, headerClassName: o, contentClassName: a, ...l }) => {
|
|
2366
2366
|
const i = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [c, d] = S(i), u = l.collapsible ? l.controlled ? l.isOpen : c : !0;
|
|
2367
2367
|
return O(() => {
|
|
2368
2368
|
d(i);
|
|
@@ -2387,7 +2387,7 @@ const Ul = "_item_1dy8x_1", Cr = {
|
|
|
2387
2387
|
}), children: s }) })
|
|
2388
2388
|
] });
|
|
2389
2389
|
};
|
|
2390
|
-
var
|
|
2390
|
+
var wc = !!(typeof window < "u" && window.document && window.document.createElement), yc = /* @__PURE__ */ function() {
|
|
2391
2391
|
function t(e, s) {
|
|
2392
2392
|
for (var r = 0; r < s.length; r++) {
|
|
2393
2393
|
var o = s[r];
|
|
@@ -2398,26 +2398,26 @@ var yc = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
2398
2398
|
return s && t(e.prototype, s), r && t(e, r), e;
|
|
2399
2399
|
};
|
|
2400
2400
|
}();
|
|
2401
|
-
function
|
|
2401
|
+
function bc(t, e) {
|
|
2402
2402
|
if (!(t instanceof e))
|
|
2403
2403
|
throw new TypeError("Cannot call a class as a function");
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2405
|
+
function vc(t, e) {
|
|
2406
2406
|
if (!t)
|
|
2407
2407
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2408
2408
|
return e && (typeof e == "object" || typeof e == "function") ? e : t;
|
|
2409
2409
|
}
|
|
2410
|
-
function
|
|
2410
|
+
function _c(t, e) {
|
|
2411
2411
|
if (typeof e != "function" && e !== null)
|
|
2412
2412
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
|
2413
2413
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
|
2414
2414
|
}
|
|
2415
2415
|
var Ir = function(t) {
|
|
2416
|
-
|
|
2416
|
+
_c(e, t);
|
|
2417
2417
|
function e() {
|
|
2418
|
-
return
|
|
2418
|
+
return bc(this, e), vc(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
|
|
2419
2419
|
}
|
|
2420
|
-
return
|
|
2420
|
+
return yc(e, [{
|
|
2421
2421
|
key: "componentWillUnmount",
|
|
2422
2422
|
value: function() {
|
|
2423
2423
|
this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null;
|
|
@@ -2425,15 +2425,15 @@ var Ir = function(t) {
|
|
|
2425
2425
|
}, {
|
|
2426
2426
|
key: "render",
|
|
2427
2427
|
value: function() {
|
|
2428
|
-
return
|
|
2428
|
+
return wc ? (!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode)), pt.createPortal(this.props.children, this.props.node || this.defaultNode)) : null;
|
|
2429
2429
|
}
|
|
2430
2430
|
}]), e;
|
|
2431
|
-
}(
|
|
2431
|
+
}(pe.Component);
|
|
2432
2432
|
Ir.propTypes = {
|
|
2433
2433
|
children: Le.node.isRequired,
|
|
2434
2434
|
node: Le.any
|
|
2435
2435
|
};
|
|
2436
|
-
var
|
|
2436
|
+
var Nc = /* @__PURE__ */ function() {
|
|
2437
2437
|
function t(e, s) {
|
|
2438
2438
|
for (var r = 0; r < s.length; r++) {
|
|
2439
2439
|
var o = s[r];
|
|
@@ -2444,26 +2444,26 @@ var Cc = /* @__PURE__ */ function() {
|
|
|
2444
2444
|
return s && t(e.prototype, s), r && t(e, r), e;
|
|
2445
2445
|
};
|
|
2446
2446
|
}();
|
|
2447
|
-
function
|
|
2447
|
+
function Cc(t, e) {
|
|
2448
2448
|
if (!(t instanceof e))
|
|
2449
2449
|
throw new TypeError("Cannot call a class as a function");
|
|
2450
2450
|
}
|
|
2451
|
-
function
|
|
2451
|
+
function kc(t, e) {
|
|
2452
2452
|
if (!t)
|
|
2453
2453
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2454
2454
|
return e && (typeof e == "object" || typeof e == "function") ? e : t;
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2456
|
+
function $c(t, e) {
|
|
2457
2457
|
if (typeof e != "function" && e !== null)
|
|
2458
2458
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
|
2459
2459
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
|
2460
2460
|
}
|
|
2461
2461
|
var Sr = function(t) {
|
|
2462
|
-
|
|
2462
|
+
$c(e, t);
|
|
2463
2463
|
function e() {
|
|
2464
|
-
return
|
|
2464
|
+
return Cc(this, e), kc(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
|
|
2465
2465
|
}
|
|
2466
|
-
return
|
|
2466
|
+
return Nc(e, [{
|
|
2467
2467
|
key: "componentDidMount",
|
|
2468
2468
|
value: function() {
|
|
2469
2469
|
this.renderPortal();
|
|
@@ -2483,7 +2483,7 @@ var Sr = function(t) {
|
|
|
2483
2483
|
value: function(r) {
|
|
2484
2484
|
!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode));
|
|
2485
2485
|
var o = this.props.children;
|
|
2486
|
-
typeof this.props.children.type == "function" && (o =
|
|
2486
|
+
typeof this.props.children.type == "function" && (o = pe.cloneElement(this.props.children)), this.portal = pt.unstable_renderSubtreeIntoContainer(this, o, this.props.node || this.defaultNode);
|
|
2487
2487
|
}
|
|
2488
2488
|
}, {
|
|
2489
2489
|
key: "render",
|
|
@@ -2491,35 +2491,35 @@ var Sr = function(t) {
|
|
|
2491
2491
|
return null;
|
|
2492
2492
|
}
|
|
2493
2493
|
}]), e;
|
|
2494
|
-
}(
|
|
2494
|
+
}(pe.Component);
|
|
2495
2495
|
Sr.propTypes = {
|
|
2496
2496
|
children: Le.node.isRequired,
|
|
2497
2497
|
node: Le.any
|
|
2498
2498
|
};
|
|
2499
2499
|
var zt = void 0;
|
|
2500
2500
|
pt.createPortal ? zt = Ir : zt = Sr;
|
|
2501
|
-
const
|
|
2502
|
-
lightbox:
|
|
2503
|
-
show:
|
|
2504
|
-
header:
|
|
2501
|
+
const Ic = "_lightbox_14acg_1", Sc = "_show_14acg_16", Dc = "_header_14acg_20", Fc = "_photo-actions_14acg_26", Ec = "_photo-container_14acg_31", Oc = "_photo_14acg_26", Tc = "_nav-button_14acg_41", Mc = "_photos-preview_14acg_49", Lc = "_selected_14acg_62", Rc = "_default-indicator_14acg_66", ge = {
|
|
2502
|
+
lightbox: Ic,
|
|
2503
|
+
show: Sc,
|
|
2504
|
+
header: Dc,
|
|
2505
2505
|
"photo-actions": "_photo-actions_14acg_26",
|
|
2506
|
-
photoActions:
|
|
2506
|
+
photoActions: Fc,
|
|
2507
2507
|
"photo-container": "_photo-container_14acg_31",
|
|
2508
|
-
photoContainer:
|
|
2509
|
-
photo:
|
|
2508
|
+
photoContainer: Ec,
|
|
2509
|
+
photo: Oc,
|
|
2510
2510
|
"nav-button": "_nav-button_14acg_41",
|
|
2511
|
-
navButton:
|
|
2511
|
+
navButton: Tc,
|
|
2512
2512
|
"photos-preview": "_photos-preview_14acg_49",
|
|
2513
|
-
photosPreview:
|
|
2514
|
-
selected:
|
|
2513
|
+
photosPreview: Mc,
|
|
2514
|
+
selected: Lc,
|
|
2515
2515
|
"default-indicator": "_default-indicator_14acg_66",
|
|
2516
|
-
defaultIndicator:
|
|
2517
|
-
},
|
|
2518
|
-
backdrop:
|
|
2519
|
-
show:
|
|
2516
|
+
defaultIndicator: Rc
|
|
2517
|
+
}, Ac = "_backdrop_3huvf_1", Bc = "_show_3huvf_11", Hn = {
|
|
2518
|
+
backdrop: Ac,
|
|
2519
|
+
show: Bc
|
|
2520
2520
|
}, Dr = ({ show: t, onClick: e }) => /* @__PURE__ */ n.jsx("div", { className: j("luminus-backdrop", Hn.backdrop, {
|
|
2521
2521
|
[Hn.show]: t
|
|
2522
|
-
}), onClick: () => e && e() }), Fr = ({ src: t, alt: e, baseUrl: s, customToken: r, placeholder: o, ...a }) => /* @__PURE__ */ n.jsx("img", { ...a, alt: e ?? "", src: t ?? o }),
|
|
2522
|
+
}), onClick: () => e && e() }), Fr = ({ src: t, alt: e, baseUrl: s, customToken: r, placeholder: o, ...a }) => /* @__PURE__ */ n.jsx("img", { ...a, alt: e ?? "", src: t ?? o }), Pc = ({ show: t, onClose: e, photos: s, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: l, photoActions: i, baseUrl: c, customToken: d, placeholder: u, ImgComponent: m = Fr }) => {
|
|
2523
2523
|
const h = Y(null), [g, x] = S(r), w = s.at(g), p = g > 0, y = g < s.length - 1;
|
|
2524
2524
|
O(() => {
|
|
2525
2525
|
t && x(r);
|
|
@@ -2575,7 +2575,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2575
2575
|
] })) })
|
|
2576
2576
|
] })
|
|
2577
2577
|
] });
|
|
2578
|
-
},
|
|
2578
|
+
}, Hc = ({ photos: t, onUploadPhotos: e, uploadPhotosText: s, photoActions: r, baseUrl: o, customToken: a, placeholder: l, ImgComponent: i = Fr }) => {
|
|
2579
2579
|
const [c, d] = S(null), u = c !== null ? t[c] : null, [m, h] = S(!1);
|
|
2580
2580
|
return O(() => {
|
|
2581
2581
|
if (t.length === 0) {
|
|
@@ -2586,30 +2586,30 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2586
2586
|
d(g > -1 ? g : 0);
|
|
2587
2587
|
}, [t]), u ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2588
2588
|
/* @__PURE__ */ n.jsx(i, { role: "button", src: u.smSrc, alt: u.alt, className: "rounded w-100", onClick: () => h(!0), baseUrl: o, customToken: a, placeholder: l }),
|
|
2589
|
-
/* @__PURE__ */ n.jsx(
|
|
2589
|
+
/* @__PURE__ */ n.jsx(Pc, { show: m, onClose: () => h(!1), photos: t, defaultIndex: c ?? 0, uploadPhotosText: s, onUploadPhotos: e, photoActions: r, baseUrl: o, customToken: a, placeholder: l, ImgComponent: i })
|
|
2590
2590
|
] }) : e ? /* @__PURE__ */ n.jsx(br, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
|
|
2591
2591
|
g.length > 0 && e(Array.from(g));
|
|
2592
2592
|
}, icon: /* @__PURE__ */ n.jsx(is, { style: { fontSize: 18 } }), multiple: !0, children: s ?? null }) : null;
|
|
2593
|
-
},
|
|
2593
|
+
}, dd = ({ children: t }) => {
|
|
2594
2594
|
var i, c, d;
|
|
2595
2595
|
const { useMsal: e, msalScopes: s } = B(wo), { isAuthenticated: r } = yo(), { userLoginState: o } = B(ds), a = o.state === bo.LOGGING_IN, l = o.user && ((i = o.user) == null ? void 0 : i.permissions) && ((d = (c = o.user) == null ? void 0 : c.permissions) == null ? void 0 : d.length) > 0;
|
|
2596
|
-
return e ? /* @__PURE__ */ n.jsx(
|
|
2596
|
+
return e ? /* @__PURE__ */ n.jsx(Bo, { interactionType: Ao.Redirect, authenticationRequest: { scopes: s }, children: a || !r() ? /* @__PURE__ */ n.jsx(yn, {}) : o.user ? l ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : /* @__PURE__ */ n.jsx(it, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ n.jsx(it, { to: "/no-user-login", replace: !0 }) }) : a ? /* @__PURE__ */ n.jsx(yn, {}) : !r() || !o.user ? /* @__PURE__ */ n.jsx(it, { to: "/login", replace: !0 }) : l ? t : /* @__PURE__ */ n.jsx(it, { to: "/user-not-permitted", replace: !0 });
|
|
2597
2597
|
}, Er = (t) => {
|
|
2598
2598
|
const { variant: e, children: s, className: r, size: o = "md", typographyVariant: a = o === "sm" ? "body2" : "body", ...l } = { ...t };
|
|
2599
|
-
return /* @__PURE__ */ n.jsx(
|
|
2600
|
-
},
|
|
2601
|
-
item:
|
|
2599
|
+
return /* @__PURE__ */ n.jsx(ua, { variant: e, className: `text-center ${o === "sm" ? "p-1" : o === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...l, children: /* @__PURE__ */ n.jsx(V, { variant: a, children: s }) });
|
|
2600
|
+
}, Wc = "_item_1lf6j_1", zc = "_level-success_1lf6j_4", Vc = "_level-info_1lf6j_10", Uc = "_level-warning_1lf6j_16", Gc = "_level-danger_1lf6j_22", Yc = "_type-icon_1lf6j_28", Et = {
|
|
2601
|
+
item: Wc,
|
|
2602
2602
|
"level-success": "_level-success_1lf6j_4",
|
|
2603
|
-
levelSuccess:
|
|
2603
|
+
levelSuccess: zc,
|
|
2604
2604
|
"level-info": "_level-info_1lf6j_10",
|
|
2605
|
-
levelInfo:
|
|
2605
|
+
levelInfo: Vc,
|
|
2606
2606
|
"level-warning": "_level-warning_1lf6j_16",
|
|
2607
|
-
levelWarning:
|
|
2607
|
+
levelWarning: Uc,
|
|
2608
2608
|
"level-danger": "_level-danger_1lf6j_22",
|
|
2609
|
-
levelDanger:
|
|
2609
|
+
levelDanger: Gc,
|
|
2610
2610
|
"type-icon": "_type-icon_1lf6j_28",
|
|
2611
|
-
typeIcon:
|
|
2612
|
-
},
|
|
2611
|
+
typeIcon: Yc
|
|
2612
|
+
}, Kc = ({ level: t, children: e, customIcon: s, noIcon: r }) => {
|
|
2613
2613
|
const { ProjectIconComponent: o } = B(ue), a = $(() => {
|
|
2614
2614
|
switch (t) {
|
|
2615
2615
|
case "info":
|
|
@@ -2626,7 +2626,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2626
2626
|
!r && /* @__PURE__ */ n.jsx("div", { className: j(Et.typeIcon), children: s ?? a() }),
|
|
2627
2627
|
/* @__PURE__ */ n.jsx(V, { variant: "body2", className: "w-100", children: e })
|
|
2628
2628
|
] });
|
|
2629
|
-
},
|
|
2629
|
+
}, ud = ({ version: t }) => /* @__PURE__ */ n.jsx("div", { className: "rounded", style: {
|
|
2630
2630
|
position: "fixed",
|
|
2631
2631
|
right: "0px",
|
|
2632
2632
|
bottom: "0px",
|
|
@@ -2637,28 +2637,28 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2637
2637
|
}, children: /* @__PURE__ */ n.jsxs(V, { variant: "caption", className: "w-100 text-end", children: [
|
|
2638
2638
|
"verze ",
|
|
2639
2639
|
t
|
|
2640
|
-
] }) }),
|
|
2640
|
+
] }) }), qc = "_submit-container_a9slg_1", Qc = "_spacer_a9slg_14", Wn = {
|
|
2641
2641
|
"submit-container": "_submit-container_a9slg_1",
|
|
2642
|
-
submitContainer:
|
|
2643
|
-
spacer:
|
|
2644
|
-
},
|
|
2642
|
+
submitContainer: qc,
|
|
2643
|
+
spacer: Qc
|
|
2644
|
+
}, Zc = ({ children: t, noSpacer: e = !1 }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2645
2645
|
!e && /* @__PURE__ */ n.jsx("div", { className: Wn.spacer }),
|
|
2646
2646
|
/* @__PURE__ */ n.jsx("div", { className: j("luminus-floating-action-container shadow", Wn.submitContainer), children: t })
|
|
2647
|
-
] }),
|
|
2648
|
-
timeline:
|
|
2647
|
+
] }), Jc = "_timeline_g1754_1", Xc = "_step-container_g1754_1", ei = "_step-date_g1754_1", ti = "_step-content_g1754_4", ni = "_content-header_g1754_8", si = "_content-text_g1754_11", ri = "_step-icon_g1754_14", Me = {
|
|
2648
|
+
timeline: Jc,
|
|
2649
2649
|
"step-container": "_step-container_g1754_1",
|
|
2650
|
-
stepContainer:
|
|
2650
|
+
stepContainer: Xc,
|
|
2651
2651
|
"step-date": "_step-date_g1754_1",
|
|
2652
|
-
stepDate:
|
|
2652
|
+
stepDate: ei,
|
|
2653
2653
|
"step-content": "_step-content_g1754_4",
|
|
2654
|
-
stepContent:
|
|
2654
|
+
stepContent: ti,
|
|
2655
2655
|
"content-header": "_content-header_g1754_8",
|
|
2656
|
-
contentHeader:
|
|
2656
|
+
contentHeader: ni,
|
|
2657
2657
|
"content-text": "_content-text_g1754_11",
|
|
2658
|
-
contentText:
|
|
2658
|
+
contentText: si,
|
|
2659
2659
|
"step-icon": "_step-icon_g1754_14",
|
|
2660
|
-
stepIcon:
|
|
2661
|
-
},
|
|
2660
|
+
stepIcon: ri
|
|
2661
|
+
}, fd = ({ steps: t }) => /* @__PURE__ */ n.jsx("div", { className: Me.timeline, children: t.sort((e, s) => Ko(e.date ?? /* @__PURE__ */ new Date(), s.date ?? /* @__PURE__ */ new Date())).map((e, s) => /* @__PURE__ */ n.jsxs("div", { className: j("row g-0 gx-3", Me.stepContainer), children: [
|
|
2662
2662
|
/* @__PURE__ */ n.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ n.jsxs(V, { variant: "caption", className: j("h-100 d-flex flex-column align-items-end justify-content-center gap-0", Me.stepDate), children: [
|
|
2663
2663
|
/* @__PURE__ */ n.jsx("div", { children: Xe(e.date, "dd.MM.yyyy") }),
|
|
2664
2664
|
/* @__PURE__ */ n.jsx("div", { children: Xe(e.date, "HH:mm") })
|
|
@@ -2671,7 +2671,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2671
2671
|
e.text && /* @__PURE__ */ n.jsx(V, { variant: "body2", className: Me.contentText, children: e.text }),
|
|
2672
2672
|
/* @__PURE__ */ n.jsx("div", { className: j("text-primary", Me.stepIcon), children: e.icon ?? /* @__PURE__ */ n.jsx(vo, {}) })
|
|
2673
2673
|
] }) })
|
|
2674
|
-
] }, s)) }),
|
|
2674
|
+
] }, s)) }), oi = (t, e, s, r = !0) => {
|
|
2675
2675
|
const o = st({ silent: r, differentBaseUrl: e, customToken: s }), [a, l] = S(!1), [i, c] = S(null), d = $(async (u) => {
|
|
2676
2676
|
l(!0), c(null), o.get(t, {
|
|
2677
2677
|
signal: u,
|
|
@@ -2689,7 +2689,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2689
2689
|
};
|
|
2690
2690
|
}, [d]), { data: i, setData: c, reloadData: d, isLoading: a };
|
|
2691
2691
|
}, zn = ({ src: t, alt: e, baseUrl: s, customToken: r, placeholder: o, ...a }) => {
|
|
2692
|
-
const { data: l } =
|
|
2692
|
+
const { data: l } = oi(t, s, r), [i, c] = S(null);
|
|
2693
2693
|
return O(() => {
|
|
2694
2694
|
let d = null;
|
|
2695
2695
|
return l !== null ? (d = URL.createObjectURL(l), c(d)) : c(null), () => {
|
|
@@ -2771,7 +2771,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2771
2771
|
] }),
|
|
2772
2772
|
u && e && r && !d && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ n.jsx(ye, {}) }) })
|
|
2773
2773
|
] });
|
|
2774
|
-
},
|
|
2774
|
+
}, md = ({ InputContainer: t = He, items: e, defaultSelection: s, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: l, isNumber: i, onSelect: c, label: d, withoutLabel: u, size: m, dropdownItemsNameWidth: h, additionalColumns: g, hidden: x, disabled: w, displayIdAsName: p, CustomOnChangeComponent: y, className: N }) => {
|
|
2775
2775
|
var D, R;
|
|
2776
2776
|
const [f, C] = S(s), [b, k] = S(!1);
|
|
2777
2777
|
O(() => {
|
|
@@ -2813,7 +2813,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2813
2813
|
] }),
|
|
2814
2814
|
I.current && /* @__PURE__ */ n.jsx(on, { show: b, onCancel: () => k(!1), items: e, currentSelection: f, onSelectionChange: E, onSearchQueryChange: o, texts: a, itemsNameWidth: h, additionalColumns: g, isLoading: l, disabled: w, inputRef: I })
|
|
2815
2815
|
] }) });
|
|
2816
|
-
},
|
|
2816
|
+
}, pd = ({ InputContainer: t = He, value: e, onChange: s, label: r, size: o, showClearIcon: a, clearValue: l, hidden: i, disabled: c, rows: d, withoutLabel: u, debounceMs: m, className: h }) => {
|
|
2817
2817
|
const g = $(() => {
|
|
2818
2818
|
if (!s)
|
|
2819
2819
|
return;
|
|
@@ -2839,7 +2839,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2839
2839
|
/* @__PURE__ */ n.jsx(ae.Control, { as: "textarea", size: o, value: m ? w : e ?? "", onChange: N, hidden: i, disabled: c, rows: d ?? 2, className: "w-100" }),
|
|
2840
2840
|
a && e && s && !c && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ n.jsx(ye, {}) }) })
|
|
2841
2841
|
] });
|
|
2842
|
-
},
|
|
2842
|
+
}, hd = ({ InputContainer: t = He, value: e, onChange: s, debounceMs: r, label: o, withoutLabel: a, placeholder: l, size: i, hidden: c, disabled: d, showClearIcon: u, clearValue: m, className: h, step: g, stepperStep: x = 1 }) => {
|
|
2843
2843
|
const w = $(() => {
|
|
2844
2844
|
if (!s)
|
|
2845
2845
|
return;
|
|
@@ -2877,11 +2877,11 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2877
2877
|
["M", "month"],
|
|
2878
2878
|
["Y", "year"],
|
|
2879
2879
|
["C", "custom"]
|
|
2880
|
-
],
|
|
2881
|
-
wrapper:
|
|
2882
|
-
lg:
|
|
2883
|
-
sm:
|
|
2884
|
-
md:
|
|
2880
|
+
], ai = "_wrapper_qfqux_1", li = "_lg_qfqux_7", ci = "_sm_qfqux_11", ii = "_md_qfqux_14", Un = {
|
|
2881
|
+
wrapper: ai,
|
|
2882
|
+
lg: li,
|
|
2883
|
+
sm: ci,
|
|
2884
|
+
md: ii
|
|
2885
2885
|
}, mt = (t) => {
|
|
2886
2886
|
const e = new Date(t), s = De(e.toISOString());
|
|
2887
2887
|
e.setMonth(e.getMonth() + 1), e.setDate(e.getDate() - 1);
|
|
@@ -2892,14 +2892,14 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2892
2892
|
e.setFullYear(e.getFullYear() + 1), e.setDate(e.getDate() - 1);
|
|
2893
2893
|
const r = De(e.toISOString());
|
|
2894
2894
|
return { from: s, to: r };
|
|
2895
|
-
},
|
|
2895
|
+
}, di = (t, e) => {
|
|
2896
2896
|
if (t === null || e === null)
|
|
2897
2897
|
return "C";
|
|
2898
2898
|
if (t === e)
|
|
2899
2899
|
return "D";
|
|
2900
2900
|
const s = new Date(t);
|
|
2901
2901
|
return mt(s).to === e ? "M" : Ze(s).to === e ? "Y" : (console.log(Ze(s), e), "C");
|
|
2902
|
-
},
|
|
2902
|
+
}, ui = (t, e, s) => {
|
|
2903
2903
|
const r = $((l, i) => {
|
|
2904
2904
|
if (t === "C") {
|
|
2905
2905
|
s((c) => ({ ...c, [l]: i }));
|
|
@@ -2949,21 +2949,21 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2949
2949
|
l === "D" ? s((i) => ({ from: i.from, to: i.from })) : l === "M" ? s((i) => {
|
|
2950
2950
|
if (i.from === null)
|
|
2951
2951
|
return i;
|
|
2952
|
-
const c =
|
|
2952
|
+
const c = Po(i.from);
|
|
2953
2953
|
return mt(c);
|
|
2954
2954
|
}) : l === "Y" && s((i) => {
|
|
2955
2955
|
if (i.from === null)
|
|
2956
2956
|
return i;
|
|
2957
|
-
const c =
|
|
2957
|
+
const c = Ho(new Date(i.from).getFullYear());
|
|
2958
2958
|
return Ze(c);
|
|
2959
2959
|
}), e(l);
|
|
2960
2960
|
}, [s, e]);
|
|
2961
2961
|
return { setFromToProp: r, handleArrowClick: o, handleRangeChange: a };
|
|
2962
|
-
},
|
|
2963
|
-
const { texts: { date: o }, ProjectIconComponent: a } = B(ue), [l, i] = S("C"), { handleArrowClick: c, handleRangeChange: d, setFromToProp: u } =
|
|
2962
|
+
}, gd = ({ fromtoState: [t, e], className: s, size: r }) => {
|
|
2963
|
+
const { texts: { date: o }, ProjectIconComponent: a } = B(ue), [l, i] = S("C"), { handleArrowClick: c, handleRangeChange: d, setFromToProp: u } = ui(l, i, e), m = q(() => l === "C", [l]), h = Y(!0);
|
|
2964
2964
|
return O(() => {
|
|
2965
2965
|
if (h.current) {
|
|
2966
|
-
const g =
|
|
2966
|
+
const g = di(t.from, t.to);
|
|
2967
2967
|
i(g), h.current = !1;
|
|
2968
2968
|
}
|
|
2969
2969
|
}, [t.from, t.to]), /* @__PURE__ */ n.jsxs("div", { className: j("d-inline-flex align-items-center gap-1", Un.wrapper, Un[r ?? "md"], s), children: [
|
|
@@ -2979,17 +2979,17 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2979
2979
|
c(1);
|
|
2980
2980
|
}, children: /* @__PURE__ */ n.jsx(a, { icon: "chevron-right" }) })
|
|
2981
2981
|
] });
|
|
2982
|
-
},
|
|
2983
|
-
const { localizationContext: o } = B(ue), { dateFnsLocale: a } = B(o), { searchParams: l, setSearch: i } =
|
|
2982
|
+
}, xd = ({ defaultMonth: t, searchKey: e = "monthFrom", yearMin: s, yearMax: r }) => {
|
|
2983
|
+
const { localizationContext: o } = B(ue), { dateFnsLocale: a } = B(o), { searchParams: l, setSearch: i } = Wo(), c = l.get(e), d = c ? et(c) : t, u = $((m) => {
|
|
2984
2984
|
i(e, Bt(m, { representation: "date" }));
|
|
2985
2985
|
}, [e, i]);
|
|
2986
|
-
return /* @__PURE__ */ n.jsx(
|
|
2987
|
-
},
|
|
2988
|
-
const [a, l] =
|
|
2986
|
+
return /* @__PURE__ */ n.jsx(Qa, { month: d, onChangeMonth: u, locale: a, yearMin: s, yearMax: r });
|
|
2987
|
+
}, jd = ({ defaultYear: t, searchKey: e = "yearFrom", optionMin: s, optionMax: r, className: o }) => {
|
|
2988
|
+
const [a, l] = zo(e, Bt(t, { representation: "date" })), i = a ? et(a) : t, c = $((d) => {
|
|
2989
2989
|
l(Bt(d, { representation: "date" }));
|
|
2990
2990
|
}, [l]);
|
|
2991
|
-
return /* @__PURE__ */ n.jsx(
|
|
2992
|
-
},
|
|
2991
|
+
return /* @__PURE__ */ n.jsx(Xa, { year: i, onChangeYear: c, optionMin: s, optionMax: r, className: o });
|
|
2992
|
+
}, wd = ({ data: t, showLegend: e = !1, legendPosition: s = "left" }) => {
|
|
2993
2993
|
const { chartColorPalette: r } = B(ue);
|
|
2994
2994
|
return /* @__PURE__ */ n.jsx(No, { data: t, margin: {
|
|
2995
2995
|
top: 50,
|
|
@@ -3017,7 +3017,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3017
3017
|
padding: 10
|
|
3018
3018
|
}
|
|
3019
3019
|
] : [] });
|
|
3020
|
-
},
|
|
3020
|
+
}, fi = ({ errors: t, schema: e }) => {
|
|
3021
3021
|
const s = (r) => {
|
|
3022
3022
|
var o, a;
|
|
3023
3023
|
return r.toLowerCase() === "others" ? "Obecné" : ((a = (o = e.columns) == null ? void 0 : o.find((l) => l.field === r)) == null ? void 0 : a.caption) ?? r;
|
|
@@ -3053,32 +3053,32 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3053
3053
|
}
|
|
3054
3054
|
s[r] = { value: o, defaultValue: o };
|
|
3055
3055
|
}), s;
|
|
3056
|
-
},
|
|
3057
|
-
table:
|
|
3056
|
+
}, mi = "_table_1klfy_1", pi = "_table-header_1klfy_10", hi = "_table-row_1klfy_10", gi = "_table-head_1klfy_10", xi = "_filters-row_1klfy_19", ji = "_table-body_1klfy_30", wi = "_table-cell_1klfy_30", yi = "_action-column_1klfy_43", bi = "_sticky-top_1klfy_47", vi = "_sticky-first_1klfy_54", _i = "_sticky-last_1klfy_61", Ni = "_sticky-bottom_1klfy_68", J = {
|
|
3057
|
+
table: mi,
|
|
3058
3058
|
"table-header": "_table-header_1klfy_10",
|
|
3059
|
-
tableHeader:
|
|
3059
|
+
tableHeader: pi,
|
|
3060
3060
|
"table-row": "_table-row_1klfy_10",
|
|
3061
|
-
tableRow:
|
|
3061
|
+
tableRow: hi,
|
|
3062
3062
|
"table-head": "_table-head_1klfy_10",
|
|
3063
|
-
tableHead:
|
|
3063
|
+
tableHead: gi,
|
|
3064
3064
|
"filters-row": "_filters-row_1klfy_19",
|
|
3065
|
-
filtersRow:
|
|
3065
|
+
filtersRow: xi,
|
|
3066
3066
|
"table-body": "_table-body_1klfy_30",
|
|
3067
|
-
tableBody:
|
|
3067
|
+
tableBody: ji,
|
|
3068
3068
|
"table-cell": "_table-cell_1klfy_30",
|
|
3069
|
-
tableCell:
|
|
3069
|
+
tableCell: wi,
|
|
3070
3070
|
"action-column": "_action-column_1klfy_43",
|
|
3071
|
-
actionColumn:
|
|
3071
|
+
actionColumn: yi,
|
|
3072
3072
|
"sticky-top": "_sticky-top_1klfy_47",
|
|
3073
|
-
stickyTop:
|
|
3073
|
+
stickyTop: bi,
|
|
3074
3074
|
"sticky-first": "_sticky-first_1klfy_54",
|
|
3075
|
-
stickyFirst:
|
|
3075
|
+
stickyFirst: vi,
|
|
3076
3076
|
"sticky-last": "_sticky-last_1klfy_61",
|
|
3077
|
-
stickyLast:
|
|
3077
|
+
stickyLast: _i,
|
|
3078
3078
|
"sticky-bottom": "_sticky-bottom_1klfy_68",
|
|
3079
|
-
stickyBottom:
|
|
3080
|
-
},
|
|
3081
|
-
input:
|
|
3079
|
+
stickyBottom: Ni
|
|
3080
|
+
}, Ci = "_input_13mhy_1", Ae = {
|
|
3081
|
+
input: Ci
|
|
3082
3082
|
}, Lr = ({ type: t, value: e, field: s, isPrimary: r, isReadonly: o, primaryEditable: a = !1, valuesForSelect: l, onChangeHandler: i, hideClearIcon: c, clearValue: d }) => {
|
|
3083
3083
|
switch (t) {
|
|
3084
3084
|
case "NUM":
|
|
@@ -3095,7 +3095,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3095
3095
|
t
|
|
3096
3096
|
] }) });
|
|
3097
3097
|
}
|
|
3098
|
-
},
|
|
3098
|
+
}, ki = ({ schema: t, columns: e, initialItem: s, onEdit: r, onDelete: o }) => {
|
|
3099
3099
|
const { ProjectIconComponent: a } = B(ue), [l, i] = S(s), c = $((m, h) => {
|
|
3100
3100
|
console.log("changeValue", m, h), i((g) => ({
|
|
3101
3101
|
...g,
|
|
@@ -3115,7 +3115,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3115
3115
|
}),
|
|
3116
3116
|
/* @__PURE__ */ n.jsx("td", { className: j("table-cell", J.tableCell, J.stickyLast), children: /* @__PURE__ */ n.jsx(U, { color: "danger", onClick: () => o(l[t.primaryKey ?? ""].value), children: /* @__PURE__ */ n.jsx(a, { icon: "delete" }) }) })
|
|
3117
3117
|
] });
|
|
3118
|
-
},
|
|
3118
|
+
}, $i = ({ schema: t, columns: e, onCreate: s }) => {
|
|
3119
3119
|
const { ProjectIconComponent: r } = B(ue), [o, a] = S(null), l = $(() => {
|
|
3120
3120
|
var d;
|
|
3121
3121
|
const c = {};
|
|
@@ -3146,7 +3146,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3146
3146
|
/* @__PURE__ */ n.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ n.jsx(U, { onClick: l, children: /* @__PURE__ */ n.jsx(r, { icon: "add" }) }) }),
|
|
3147
3147
|
/* @__PURE__ */ n.jsx("td", { colSpan: e.length + 1 })
|
|
3148
3148
|
] });
|
|
3149
|
-
},
|
|
3149
|
+
}, Ii = ({ column: t, children: e }) => t.description ? /* @__PURE__ */ n.jsx(qt, { placement: "bottom", text: t.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: e }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: e }), Si = ({ schema: t, items: e, onEditItem: s, onDeleteItem: r, onCreateItem: o, filters: a, setFilter: l, sortByField: i, sortByType: c, setSortBy: d }) => {
|
|
3150
3150
|
const { texts: { dynamicForms: u }, ProjectIconComponent: m } = B(ue), [h, g] = S([]);
|
|
3151
3151
|
return O(() => {
|
|
3152
3152
|
var x, w, p;
|
|
@@ -3175,7 +3175,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3175
3175
|
return;
|
|
3176
3176
|
}
|
|
3177
3177
|
d(x.field, "asc");
|
|
3178
|
-
}, children: /* @__PURE__ */ n.jsx(
|
|
3178
|
+
}, children: /* @__PURE__ */ n.jsx(Ii, { column: x, children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
3179
3179
|
x.label,
|
|
3180
3180
|
i === x.field && /* @__PURE__ */ n.jsx(m, { icon: c === "asc" ? "chevron-up" : "chevron-down" })
|
|
3181
3181
|
] }) }) }, `${t.id}-${x.field}`)),
|
|
@@ -3191,12 +3191,12 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3191
3191
|
] })
|
|
3192
3192
|
] }),
|
|
3193
3193
|
/* @__PURE__ */ n.jsxs("tbody", { className: j("table-body", J.tableBody), children: [
|
|
3194
|
-
e.filter((x) => x[t.primaryKey ?? ""]).map((x) => /* @__PURE__ */ n.jsx(
|
|
3195
|
-
/* @__PURE__ */ n.jsx(
|
|
3194
|
+
e.filter((x) => x[t.primaryKey ?? ""]).map((x) => /* @__PURE__ */ n.jsx(ki, { schema: t, columns: h, initialItem: x, onEdit: s, onDelete: r }, `${t.id}-${x[t.primaryKey ?? ""].value}`)),
|
|
3195
|
+
/* @__PURE__ */ n.jsx($i, { schema: t, columns: h, onCreate: o })
|
|
3196
3196
|
] })
|
|
3197
3197
|
] });
|
|
3198
|
-
},
|
|
3199
|
-
pagination:
|
|
3198
|
+
}, Di = ({ master: t, onChange: e, options: s, label: r }) => /* @__PURE__ */ n.jsx(wt, { label: r, value: t, onChange: (o) => e(o ? o.toString() : null), options: s, size: "sm" }), Fi = "_pagination_gujwe_1", Yn = {
|
|
3199
|
+
pagination: Fi
|
|
3200
3200
|
}, Kn = {
|
|
3201
3201
|
appDetail: "/settings/:id"
|
|
3202
3202
|
}, Be = {
|
|
@@ -3205,9 +3205,9 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3205
3205
|
apiItemPost: "/dynamicForms/update",
|
|
3206
3206
|
apiItemDelete: "/dynamicForms/delete",
|
|
3207
3207
|
apiItemCreate: "/dynamicForms/insert"
|
|
3208
|
-
},
|
|
3208
|
+
}, yd = ({ id: t, page: e, setPage: s, filters: r, setFilter: o, sortByField: a, sortByType: l, setSortBy: i, appUrls: { appDetail: c = Kn.appDetail } = Kn, apiUrls: { apiSchemaGet: d = Be.apiSchemaGet, apiDataGet: u = Be.apiDataGet, apiItemPost: m = Be.apiItemPost, apiItemDelete: h = Be.apiItemDelete, apiItemCreate: g = Be.apiItemCreate } = Be }) => {
|
|
3209
3209
|
var dn, un, fn, mn, pn, hn;
|
|
3210
|
-
const { texts: { dynamicForms: x }, ProjectIconComponent: w } = B(ue), p = st(), { startLoading: y, stopLoading: N } = B(ms), [f, C] = S(null), [b, k] = S(null), [_, E] = S(null), [I, F] = S(null), [v, D] = S(!1), { addNotification: R } = Co(), [H, Q] = S([]), { confirm: X } =
|
|
3210
|
+
const { texts: { dynamicForms: x }, ProjectIconComponent: w } = B(ue), p = st(), { startLoading: y, stopLoading: N } = B(ms), [f, C] = S(null), [b, k] = S(null), [_, E] = S(null), [I, F] = S(null), [v, D] = S(!1), { addNotification: R } = Co(), [H, Q] = S([]), { confirm: X } = Uo(), L = 20, Z = L + 1, ee = I ? Math.ceil(I.length / L) : 1, te = e ? e > 1 : !1, T = e ? e < ee : !1, re = e ? (e - 1) * L : 0, de = e ? e * L : L, [he, le] = S(!1), xe = he ? I == null ? void 0 : I.slice(re, de) : I, [W, A] = S(null);
|
|
3211
3211
|
O(() => {
|
|
3212
3212
|
C(null), k(null), D(!1), Q([]), A(null);
|
|
3213
3213
|
}, [t]);
|
|
@@ -3328,23 +3328,23 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3328
3328
|
}, [cn]), O(() => {
|
|
3329
3329
|
I && I.length > Z ? (le(!0), e || s(1)) : (le(!1), I && s(null));
|
|
3330
3330
|
}, [I, s, e, Z]), O(() => {
|
|
3331
|
-
!
|
|
3332
|
-
}, [e,
|
|
3331
|
+
!he || !e || (e > ee && s(ee), e < 1 && s(1));
|
|
3332
|
+
}, [e, he, ee, s]), /* @__PURE__ */ n.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
|
|
3333
3333
|
/* @__PURE__ */ n.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-center", children: [
|
|
3334
3334
|
/* @__PURE__ */ n.jsx(V, { variant: "h3", children: (f == null ? void 0 : f.name) ?? "" }),
|
|
3335
3335
|
/* @__PURE__ */ n.jsx(Tr, { label: x.showArchived, value: v === !0, onChange: (P) => D(P) })
|
|
3336
3336
|
] }),
|
|
3337
3337
|
(f == null ? void 0 : f.description) && /* @__PURE__ */ n.jsx(V, { variant: "body2", className: "mb-3", children: f == null ? void 0 : f.description }),
|
|
3338
|
-
(f == null ? void 0 : f.masterReference) && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ n.jsx(
|
|
3338
|
+
(f == null ? void 0 : f.masterReference) && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ n.jsx(Di, { label: ((un = (dn = f.columns) == null ? void 0 : dn.find((P) => P.field === f.masterReferenceColumn)) == null ? void 0 : un.caption) ?? "", options: ((mn = (fn = f.columns) == null ? void 0 : fn.find((P) => P.field === f.masterReferenceColumn)) == null ? void 0 : mn.values) ?? [], master: W, onChange: (P) => A(P) }) }),
|
|
3339
3339
|
(f == null ? void 0 : f.slaves) && f.slaves.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex align-items-center flex-start", children: f.slaves.map((P) => {
|
|
3340
3340
|
var K;
|
|
3341
3341
|
return /* @__PURE__ */ n.jsx(jt, { as: "link", href: `${Rt(c, { id: (K = P.id) == null ? void 0 : K.toString() })}?type=dynamic-form`, children: P.name }, P.id);
|
|
3342
3342
|
}) }),
|
|
3343
3343
|
f != null && f.masterReference && !W ? /* @__PURE__ */ n.jsx(Er, { variant: "warning", children: x.selectMaster(((hn = (pn = f.columns) == null ? void 0 : pn.find((P) => P.field === f.masterReferenceColumn)) == null ? void 0 : hn.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3344
|
-
f && H.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-2", children: /* @__PURE__ */ n.jsx(
|
|
3344
|
+
f && H.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-2", children: /* @__PURE__ */ n.jsx(fi, { errors: H, schema: f }) }),
|
|
3345
3345
|
f && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3346
|
-
/* @__PURE__ */ n.jsx("div", { className: j("rounded border overflow-auto", Yn.tableContainer), children: /* @__PURE__ */ n.jsx(
|
|
3347
|
-
|
|
3346
|
+
/* @__PURE__ */ n.jsx("div", { className: j("rounded border overflow-auto", Yn.tableContainer), children: /* @__PURE__ */ n.jsx(Si, { schema: f, items: (he ? xe : I) ?? [], onEditItem: Rr, onDeleteItem: Ar, onCreateItem: Br, filters: r, setFilter: o, sortByField: a, sortByType: l, setSortBy: i }) }),
|
|
3347
|
+
he && e && /* @__PURE__ */ n.jsxs("div", { className: j(Yn.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
|
|
3348
3348
|
/* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
3349
3349
|
/* @__PURE__ */ n.jsx(U, { color: "primary", onClick: () => at(1), disabled: !te, children: /* @__PURE__ */ n.jsx(w, { icon: "chevron-double-left" }) }),
|
|
3350
3350
|
/* @__PURE__ */ n.jsx(U, { color: "primary", onClick: () => at(e - 1), disabled: !te, children: /* @__PURE__ */ n.jsx(w, { icon: "chevron-left" }) }),
|
|
@@ -3368,7 +3368,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3368
3368
|
appDetail: "/settings/:id"
|
|
3369
3369
|
}, Qn = {
|
|
3370
3370
|
apiDynamicFormsGet: "/dynamicForms"
|
|
3371
|
-
},
|
|
3371
|
+
}, Ei = ({ item: t, children: e }) => t.description ? /* @__PURE__ */ n.jsx(qt, { placement: "left", text: t.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: e }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: e }), bd = ({ activeId: t, otherForms: e = [], groupsDefs: s = [], searchQuery: r, fullSize: o, appUrls: { appDetail: a = qn.appDetail } = qn, apiUrls: { apiDynamicFormsGet: l = Qn.apiDynamicFormsGet } = Qn }) => {
|
|
3372
3372
|
const i = st(), { startLoading: c, stopLoading: d } = B(ms), [u, m] = S(null), h = q(() => [
|
|
3373
3373
|
...(u == null ? void 0 : u.map((w) => ({
|
|
3374
3374
|
...w,
|
|
@@ -3386,17 +3386,17 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3386
3386
|
}, [i, c, d, l]);
|
|
3387
3387
|
return O(() => {
|
|
3388
3388
|
!u && x();
|
|
3389
|
-
}, [x, u]), h.length > 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((w) => /* @__PURE__ */ n.jsx(
|
|
3389
|
+
}, [x, u]), h.length > 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((w) => /* @__PURE__ */ n.jsx(Nl, { title: w.name, defaultOpen: !0, children: w.items.map((p) => {
|
|
3390
3390
|
var y, N, f, C;
|
|
3391
3391
|
return o ? /* @__PURE__ */ n.jsxs(_e, { to: `${Rt(a, { id: (y = p.id) == null ? void 0 : y.toString() })}?type=${p.type}`, className: `text-nowrap list-group-item list-group-item-action ${(t == null ? void 0 : t.toString()) === ((N = p.id) == null ? void 0 : N.toString()) ? "active" : ""}`, children: [
|
|
3392
3392
|
/* @__PURE__ */ n.jsx(V, { variant: "body", children: p.name }),
|
|
3393
3393
|
p.description && /* @__PURE__ */ n.jsx(V, { variant: "body2", className: "text-muted mt-2", children: p.description })
|
|
3394
|
-
] }, p.id) : /* @__PURE__ */ n.jsx(
|
|
3394
|
+
] }, p.id) : /* @__PURE__ */ n.jsx(Ei, { item: p, children: /* @__PURE__ */ n.jsx(_e, { to: `${Rt(a, { id: (f = p.id) == null ? void 0 : f.toString() })}?type=${p.type}`, className: `text-nowrap list-group-item list-group-item-action ${(t == null ? void 0 : t.toString()) === ((C = p.id) == null ? void 0 : C.toString()) ? "active" : ""}`, children: /* @__PURE__ */ n.jsx(V, { variant: "body2", children: p.name }) }) }, p.id);
|
|
3395
3395
|
}) }, w.id)) }) }) : null;
|
|
3396
|
-
},
|
|
3396
|
+
}, vd = ({ label: t, to: e, value: s }) => /* @__PURE__ */ n.jsxs(Ne, { label: t, children: [
|
|
3397
3397
|
/* @__PURE__ */ n.jsx("input", { disabled: !0, className: "form-control d-none" }),
|
|
3398
3398
|
e ? /* @__PURE__ */ n.jsx(_e, { to: e, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: s }) : /* @__PURE__ */ n.jsx("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: s })
|
|
3399
|
-
] }),
|
|
3399
|
+
] }), _d = () => {
|
|
3400
3400
|
const { localizationContext: t } = B(ue), { language: e, setLanguage: s } = B(t), r = (o) => {
|
|
3401
3401
|
s(o);
|
|
3402
3402
|
};
|
|
@@ -3411,9 +3411,9 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3411
3411
|
/* @__PURE__ */ n.jsx(xn, {}),
|
|
3412
3412
|
/* @__PURE__ */ n.jsx("span", { children: "CZ" })
|
|
3413
3413
|
] }) });
|
|
3414
|
-
},
|
|
3415
|
-
const { user: a } = B(ds), { photoPath: l, photoPathSm: i } =
|
|
3416
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsx(
|
|
3414
|
+
}, Nd = ({ controlId: t, ...e }) => /* @__PURE__ */ n.jsx(ae.Group, { controlId: t, ...e }), Cd = ({ employeeId: t, alt: e, noPhotoImage: s, cafmApiUrl: r, showLargeInLightBox: o = !1 }) => {
|
|
3415
|
+
const { user: a } = B(ds), { photoPath: l, photoPathSm: i } = Vo(t);
|
|
3416
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsx(Hc, { baseUrl: r, customToken: a.cafmToken ?? void 0, photos: [
|
|
3417
3417
|
{
|
|
3418
3418
|
id: t.toString(),
|
|
3419
3419
|
alt: e ?? "",
|
|
@@ -3422,7 +3422,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3422
3422
|
lgSrc: l
|
|
3423
3423
|
}
|
|
3424
3424
|
], placeholder: s, ImgComponent: zn }) : /* @__PURE__ */ n.jsx(zn, { baseUrl: r, customToken: a.cafmToken ?? void 0, src: i, alt: e, placeholder: s, className: "rounded w-100" }) }) });
|
|
3425
|
-
},
|
|
3425
|
+
}, kd = ({ text: t, setText: e, onSearchButtonClick: s, className: r }) => {
|
|
3426
3426
|
const o = (a) => {
|
|
3427
3427
|
e(a);
|
|
3428
3428
|
};
|
|
@@ -3431,7 +3431,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3431
3431
|
t && /* @__PURE__ */ n.jsx(tt, { onClick: () => o(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ n.jsx(ye, {}) }),
|
|
3432
3432
|
/* @__PURE__ */ n.jsx(tt, { onClick: () => s && s(t), variant: "link", className: "border", children: /* @__PURE__ */ n.jsx(ko, {}) })
|
|
3433
3433
|
] });
|
|
3434
|
-
},
|
|
3434
|
+
}, $d = ({ InputContainer: t = Ne, formField: e, label: s, resetsFields: r, type: o, required: a, hidden: l, disabled: i, withoutLabel: c, className: d }) => {
|
|
3435
3435
|
const { register: u, formState: m, setValue: h } = Ce(), [g, x] = S(void 0), [w, p] = S(!1);
|
|
3436
3436
|
O(() => {
|
|
3437
3437
|
const N = e.split(".");
|
|
@@ -3451,7 +3451,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3451
3451
|
}), isInvalid: y, hidden: l, disabled: i, className: "w-100" }),
|
|
3452
3452
|
g && /* @__PURE__ */ n.jsx(Fe, { message: g.message })
|
|
3453
3453
|
] });
|
|
3454
|
-
},
|
|
3454
|
+
}, Id = ({ InputContainer: t = Ne, label: e, formField: s, options: r, resetsFields: o, required: a, disabled: l, hidden: i, className: c }) => {
|
|
3455
3455
|
const { register: d, formState: u, setValue: m, watch: h } = Ce(), [g, x] = S(void 0), [w, p] = S(!1), y = q(() => r, [r]);
|
|
3456
3456
|
O(() => {
|
|
3457
3457
|
const f = s.split(".");
|
|
@@ -3471,7 +3471,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3471
3471
|
}), isInvalid: N, hidden: i, disabled: l, className: "w-100" }, f.id)),
|
|
3472
3472
|
g && /* @__PURE__ */ n.jsx(Fe, { message: g.message })
|
|
3473
3473
|
] });
|
|
3474
|
-
},
|
|
3474
|
+
}, Sd = ({ InputContainer: t = Ne, formField: e, label: s, resetsFields: r, size: o, showClearIcon: a, clearValue: l, required: i, hidden: c, disabled: d, rows: u, withoutLabel: m, customFormControlProps: h, className: g }) => {
|
|
3475
3475
|
const { register: x, formState: w, setValue: p, watch: y } = Ce(), [N, f] = S(void 0), [C, b] = S(!1), k = $(() => {
|
|
3476
3476
|
const I = l ?? null;
|
|
3477
3477
|
p(e, (I == null ? void 0 : I.toString()) ?? "", { shouldDirty: !0, shouldValidate: C });
|
|
@@ -3498,7 +3498,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3498
3498
|
a && y(e) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ n.jsx(ye, {}) }) }),
|
|
3499
3499
|
N && /* @__PURE__ */ n.jsx(Fe, { message: N.message })
|
|
3500
3500
|
] });
|
|
3501
|
-
},
|
|
3501
|
+
}, Dd = ({ InputContainer: t = Ne, type: e, formField: s, label: r, placeholder: o, size: a, resetsFields: l, showClearIcon: i, clearValue: c, required: d, hidden: u, disabled: m, withoutLabel: h, list: g, step: x, CustomOnChangeComponent: w, noSelectOnFocus: p, className: y }) => {
|
|
3502
3502
|
const { register: N, formState: f, setValue: C, watch: b } = Ce(), [k, _] = S(void 0), [E, I] = S(!1), F = $(() => {
|
|
3503
3503
|
const L = c ?? null;
|
|
3504
3504
|
e === "number" ? C(s, L !== null ? Number(L) : null, {
|
|
@@ -3534,7 +3534,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3534
3534
|
i && b(s) && /* @__PURE__ */ n.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: F, children: /* @__PURE__ */ n.jsx(ye, {}) }) }),
|
|
3535
3535
|
k && /* @__PURE__ */ n.jsx(Fe, { message: k.message })
|
|
3536
3536
|
] });
|
|
3537
|
-
},
|
|
3537
|
+
}, Fd = ({ InputContainer: t = Ne, formField: e, label: s, size: r, defaultSelection: o, resetsFields: a, isNumber: l, required: i, hidden: c, disabled: d, items: u, onSearchQueryChange: m, selectedItemNavigateTo: h, texts: g, dropdownItemsNameWidth: x, isLoading: w, withoutLabel: p, additionalColumns: y, CustomOnChangeComponent: N, displayIdAsName: f, onSelect: C, className: b }) => {
|
|
3538
3538
|
const { formState: k, setValue: _, watch: E, control: I } = Ce(), [F, v] = S(void 0), [D, R] = S(!1), [H, Q] = S(!1), X = E(e) ?? null, L = X === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : E(`${e}-DropdownName`), Z = q(() => X == null ? null : { id: X ?? null, name: L ?? "" }, [X, L]), ee = $(() => {
|
|
3539
3539
|
const W = e.split(".");
|
|
3540
3540
|
let A = k.errors;
|
|
@@ -3566,8 +3566,8 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3566
3566
|
}, [ee]), O(() => {
|
|
3567
3567
|
k.isSubmitted && Q(!0);
|
|
3568
3568
|
}, [k]);
|
|
3569
|
-
const de = Y(null),
|
|
3570
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(t, { label: `${s}${i ? " *" : ""}`, hidden: c, withoutLabel: p, isInvalid:
|
|
3569
|
+
const de = Y(null), he = F !== void 0, le = h !== void 0, xe = le && Z !== null;
|
|
3570
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(t, { label: `${s}${i ? " *" : ""}`, hidden: c, withoutLabel: p, isInvalid: he, inputContainerClassName: j({ "luminus-dropdown-select-open": D }), className: b, children: [
|
|
3571
3571
|
/* @__PURE__ */ n.jsxs(Or, { currentSelection: Z, selectedItemNavigateTo: h, children: [
|
|
3572
3572
|
f && (Z == null ? void 0 : Z.name) && /* @__PURE__ */ n.jsx(V, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: Z.name }),
|
|
3573
3573
|
/* @__PURE__ */ n.jsx(xs, { control: I, name: e, render: () => /* @__PURE__ */ n.jsx(ae.Select, { size: r, onMouseDown: (W) => {
|
|
@@ -3575,7 +3575,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3575
3575
|
}, onClick: () => {
|
|
3576
3576
|
!le && !d && R(!0);
|
|
3577
3577
|
}, ref: de, value: X ?? "", onChange: () => {
|
|
3578
|
-
}, isInvalid:
|
|
3578
|
+
}, isInvalid: he, hidden: c, className: j("w-100", {
|
|
3579
3579
|
"luminus-dropdown-picker-disabled": d,
|
|
3580
3580
|
"luminus-dropdown-picker-link": xe
|
|
3581
3581
|
}), children: /* @__PURE__ */ n.jsx("option", { value: X, children: f ? X : (L == null ? void 0 : L.length) > 0 ? L : X }) }) }),
|
|
@@ -3589,7 +3589,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3589
3589
|
F && /* @__PURE__ */ n.jsx(Fe, { message: F.message }),
|
|
3590
3590
|
de.current && /* @__PURE__ */ n.jsx(on, { show: D, onCancel: re, items: u, currentSelection: Z, onSelectionChange: T, onSearchQueryChange: m, texts: g, itemsNameWidth: x, additionalColumns: y, displayIdAsName: f, isLoading: w, disabled: d, inputRef: de })
|
|
3591
3591
|
] }) });
|
|
3592
|
-
},
|
|
3592
|
+
}, Ed = ({ InputContainer: t = Ne, label: e, formField: s, hidden: r, required: o, placeholder: a, disabled: l, showClearIcon: i, resetsFields: c, multiple: d, accept: u, withoutLabel: m, className: h }) => {
|
|
3593
3593
|
const { watch: g, setValue: x, register: w, formState: p } = Ce(), [y, N] = S(!1), [f, C] = S(void 0), b = $(() => {
|
|
3594
3594
|
x(s, "");
|
|
3595
3595
|
}, [x, s]), k = $(() => {
|
|
@@ -3612,12 +3612,12 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3612
3612
|
i && g(s) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ n.jsx(ye, {}) }) }),
|
|
3613
3613
|
f && /* @__PURE__ */ n.jsx(Fe, { message: f.message })
|
|
3614
3614
|
] });
|
|
3615
|
-
},
|
|
3615
|
+
}, Od = ({ children: t, onStorno: e, noSpacer: s }) => {
|
|
3616
3616
|
const { formState: r } = Ce(), [o, a] = S(!1);
|
|
3617
3617
|
return O(() => {
|
|
3618
3618
|
a(Object.keys(r.dirtyFields).length > 0);
|
|
3619
|
-
}, [r]), o ? /* @__PURE__ */ n.jsx(
|
|
3620
|
-
},
|
|
3619
|
+
}, [r]), o ? /* @__PURE__ */ n.jsx(za, { onStorno: e, noSpacer: s, children: t }) : null;
|
|
3620
|
+
}, Td = ({ InputContainer: t = Ne, options: e, formField: s, label: r, size: o, resetsFields: a, isNumber: l, required: i, hidden: c, disabled: d, withoutLabel: u, noSortOptions: m, suffixIdToName: h, className: g }) => {
|
|
3621
3621
|
const { texts: { customSelect: x } } = B(ue), { formState: w, setValue: p, watch: y, control: N } = Ce(), [f, C] = S(void 0), [b, k] = S(!1), [_, E] = S(!1), [I, F] = S(""), v = y(s), D = q(() => e.find((T) => T.id === v) ?? null, [e, v]), R = $(() => {
|
|
3622
3622
|
const T = s.split(".");
|
|
3623
3623
|
let re = w.errors;
|
|
@@ -3666,7 +3666,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3666
3666
|
f && /* @__PURE__ */ n.jsx(Fe, { message: f.message }),
|
|
3667
3667
|
ee.current && /* @__PURE__ */ n.jsx(on, { show: b, onCancel: () => k(!1), items: Z, currentSelection: D ?? null, onSelectionChange: Q, onSearchQueryChange: X, texts: x, disabled: d, inputRef: ee, autoHideSearch: !0, allItemsLength: e.length })
|
|
3668
3668
|
] }) });
|
|
3669
|
-
},
|
|
3669
|
+
}, Md = ({ InputContainer: t = Ne, formField: e, label: s, placeholder: r, size: o, resetsFields: a, showClearIcon: l, clearValue: i, required: c, hidden: d, disabled: u, withoutLabel: m, step: h, stepperStep: g = 1, className: x }) => {
|
|
3670
3670
|
const { register: w, formState: p, setValue: y, watch: N } = Ce(), [f, C] = S(void 0), [b, k] = S(!1), _ = $(() => {
|
|
3671
3671
|
const v = i ?? null;
|
|
3672
3672
|
y(e, v !== null ? Number(v) : null, {
|
|
@@ -3704,7 +3704,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3704
3704
|
l && N(e) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: _, children: /* @__PURE__ */ n.jsx(ye, {}) }) }),
|
|
3705
3705
|
f && /* @__PURE__ */ n.jsx(Fe, { message: f.message })
|
|
3706
3706
|
] });
|
|
3707
|
-
},
|
|
3707
|
+
}, Ld = ({ cell: { value: t } }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsx(us, { name: t, size: 21, fontSize: 12 }) : /* @__PURE__ */ n.jsx(n.Fragment, {}) }), Oi = ({ knownTypes: t, typeFilters: e, onChangeTypeFilters: s }) => /* @__PURE__ */ n.jsx("div", { className: "mb-1 d-flex justify-content-center gap-2", children: t.map((r) => /* @__PURE__ */ n.jsx("div", { role: "button", style: {
|
|
3708
3708
|
height: "14px",
|
|
3709
3709
|
width: "14px",
|
|
3710
3710
|
borderRadius: "50%",
|
|
@@ -3712,13 +3712,13 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3712
3712
|
backgroundColor: "transparent"
|
|
3713
3713
|
}, className: j(`border-${r}`, e.includes(r) && `bg-${r}`), onClick: () => {
|
|
3714
3714
|
e.includes(r) ? s(e.filter((o) => o !== r)) : s([...e, r]);
|
|
3715
|
-
} }, r)) }),
|
|
3716
|
-
const { ProjectIconComponent: a, localizationContext: l } = B(ue), { dateFnsLocale: i } = B(l), c = t.dateTime ? et(t.dateTime) : null, d = c ?
|
|
3715
|
+
} }, r)) }), Ti = ({ linksTo: t, onClick: e, children: s }) => t ? /* @__PURE__ */ n.jsx(_e, { to: t, className: "text-decoration-none", onClick: e, children: s }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: s }), Mi = ({ message: t, onDeleteMessage: e, onClickMessage: s, getIcon: r, getLinksTo: o }) => {
|
|
3716
|
+
const { ProjectIconComponent: a, localizationContext: l } = B(ue), { dateFnsLocale: i } = B(l), c = t.dateTime ? et(t.dateTime) : null, d = c ? qo(new Date(Date.now()), c) : 0;
|
|
3717
3717
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
3718
|
-
c && /* @__PURE__ */ n.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ n.jsx(qt, { text: Xe(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(V, { variant: "caption", children: d > 2 ? Xe(c, "dd.MM.yyyy") :
|
|
3718
|
+
c && /* @__PURE__ */ n.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ n.jsx(qt, { text: Xe(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(V, { variant: "caption", children: d > 2 ? Xe(c, "dd.MM.yyyy") : Zo(c, new Date(Date.now()), {
|
|
3719
3719
|
locale: i.code
|
|
3720
3720
|
}) }) }) }) }),
|
|
3721
|
-
/* @__PURE__ */ n.jsx(
|
|
3721
|
+
/* @__PURE__ */ n.jsx(Ti, { linksTo: o(t) ?? void 0, onClick: s, children: /* @__PURE__ */ n.jsx(Kc, { level: t.type, noIcon: !0, children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
|
|
3722
3722
|
r(t),
|
|
3723
3723
|
/* @__PURE__ */ n.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
|
|
3724
3724
|
/* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
|
|
@@ -3734,7 +3734,7 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3734
3734
|
}, Zn = ["info", "warning", "danger"], Jn = ({ messages: t, isLoading: e, onDeleteMessage: s, onClickMessage: r, getIcon: o, getLinksTo: a }) => {
|
|
3735
3735
|
const { texts: { messageBoard: l } } = B(ue), [i, c] = S(Zn), d = q(() => t.filter((u) => i.includes(u.type ?? "")), [i, t]);
|
|
3736
3736
|
return /* @__PURE__ */ n.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
|
|
3737
|
-
/* @__PURE__ */ n.jsx(
|
|
3737
|
+
/* @__PURE__ */ n.jsx(Oi, { knownTypes: Zn, typeFilters: i, onChangeTypeFilters: (u) => c(u) }),
|
|
3738
3738
|
e && /* @__PURE__ */ n.jsxs("div", { className: "p-3 w-100", children: [
|
|
3739
3739
|
/* @__PURE__ */ n.jsx(Se, { as: Dn.Title, animation: "glow", children: /* @__PURE__ */ n.jsx(Se, { xs: 6 }) }),
|
|
3740
3740
|
/* @__PURE__ */ n.jsxs(Se, { as: Dn.Text, animation: "glow", children: [
|
|
@@ -3751,13 +3751,13 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3751
3751
|
] }),
|
|
3752
3752
|
!e && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3753
3753
|
t.length === 0 && /* @__PURE__ */ n.jsx(Er, { variant: "info", size: "sm", className: "mt-2", children: l.noMessages }),
|
|
3754
|
-
/* @__PURE__ */ n.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: d.map((u) => /* @__PURE__ */ n.jsx(
|
|
3754
|
+
/* @__PURE__ */ n.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: d.map((u) => /* @__PURE__ */ n.jsx(Mi, { message: u, onDeleteMessage: s, onClickMessage: r, getIcon: o, getLinksTo: a }, u.id)) })
|
|
3755
3755
|
] })
|
|
3756
3756
|
] });
|
|
3757
3757
|
}, Ot = {
|
|
3758
3758
|
apiGet: "/messageBoard",
|
|
3759
3759
|
apiDelete: "/messageBoard/"
|
|
3760
|
-
},
|
|
3760
|
+
}, Rd = ({ renderAsNotifPanel: t, notifIcon: e, apiUrls: { apiGet: s = Ot.apiGet, apiDelete: r = Ot.apiDelete } = Ot, getIcon: o, getLinksTo: a }) => {
|
|
3761
3761
|
const i = st(), [c, d] = S([]), [u, m] = S(!1), [h, g] = S(!1), [x, w] = S(!1), p = $(async () => {
|
|
3762
3762
|
g(!0), await i.get(s).then(({ data: b }) => {
|
|
3763
3763
|
d(b), m(!0), g(!1);
|
|
@@ -3784,109 +3784,109 @@ const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3784
3784
|
] }),
|
|
3785
3785
|
/* @__PURE__ */ n.jsx(Mn, { show: x, onHide: () => w(!1), placement: "end", children: /* @__PURE__ */ n.jsx(Mn.Body, { children: /* @__PURE__ */ n.jsx(Jn, { messages: c, isLoading: C, onDeleteMessage: N, onClickMessage: () => w(!1), getIcon: o, getLinksTo: a }) }) })
|
|
3786
3786
|
] }) : /* @__PURE__ */ n.jsx(Jn, { messages: c, isLoading: C, onDeleteMessage: N, getIcon: o, getLinksTo: a });
|
|
3787
|
-
},
|
|
3787
|
+
}, Li = "_tab-panel_d8l8q_1", Ri = "_full-height-no-overflow_d8l8q_5", Ai = "_disabled_d8l8q_12", Tt = {
|
|
3788
3788
|
"tab-panel": "_tab-panel_d8l8q_1",
|
|
3789
|
-
tabPanel:
|
|
3789
|
+
tabPanel: Li,
|
|
3790
3790
|
"full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
|
|
3791
|
-
fullHeightNoOverflow:
|
|
3792
|
-
disabled:
|
|
3793
|
-
},
|
|
3791
|
+
fullHeightNoOverflow: Ri,
|
|
3792
|
+
disabled: Ai
|
|
3793
|
+
}, Ad = ({ eventKey: t, activeTab: e, fullHeightNoOverflow: s, disabled: r, className: o, children: a }) => t !== e ? null : /* @__PURE__ */ n.jsx("div", { className: j("luminus-tab-panel", Tt.tabPanel, { [Tt.fullHeightNoOverflow]: s }, { disabled: r }, { [Tt.disabled]: r }, o), children: a }), Bi = "_join-line_1q9e8_1", Pi = {
|
|
3794
3794
|
"join-line": "_join-line_1q9e8_1",
|
|
3795
|
-
joinLine:
|
|
3796
|
-
},
|
|
3795
|
+
joinLine: Bi
|
|
3796
|
+
}, Bd = ({ activeTab: t, onSelect: e, children: s, vertical: r, verticalStepper: o }) => /* @__PURE__ */ n.jsx("div", { className: j("luminus-tabs d-flex mb-2", { "gap-1": !o }, { "gap-0": o }, {
|
|
3797
3797
|
"flex-column": r || o
|
|
3798
3798
|
}), children: s.map((a, l) => {
|
|
3799
3799
|
const i = a.type, c = a.props;
|
|
3800
3800
|
if (!c)
|
|
3801
3801
|
return null;
|
|
3802
3802
|
const d = c.eventKey, u = c.children, m = c.className, h = c.onClick;
|
|
3803
|
-
return /* @__PURE__ */ n.jsxs(
|
|
3804
|
-
/* @__PURE__ */
|
|
3803
|
+
return /* @__PURE__ */ n.jsxs(pe.Fragment, { children: [
|
|
3804
|
+
/* @__PURE__ */ n.jsx(i, { ...c, className: j({ active: t === d }, m), onClick: () => {
|
|
3805
3805
|
e(d), h && h(d);
|
|
3806
|
-
}, vertical: r || o
|
|
3807
|
-
o && l < s.length - 1 && /* @__PURE__ */ n.jsx("div", { className: j("join-line",
|
|
3808
|
-
] });
|
|
3809
|
-
}) }),
|
|
3810
|
-
tab:
|
|
3811
|
-
disabled:
|
|
3812
|
-
vertical:
|
|
3813
|
-
},
|
|
3806
|
+
}, vertical: r || o, children: u }),
|
|
3807
|
+
o && l < s.length - 1 && /* @__PURE__ */ n.jsx("div", { className: j("join-line", Pi.joinLine) })
|
|
3808
|
+
] }, c.eventKey);
|
|
3809
|
+
}) }), Hi = "_tab_1tbi7_1", Wi = "_disabled_1tbi7_7", zi = "_vertical_1tbi7_13", Mt = {
|
|
3810
|
+
tab: Hi,
|
|
3811
|
+
disabled: Wi,
|
|
3812
|
+
vertical: zi
|
|
3813
|
+
}, Pd = ({ eventKey: t, className: e, onClick: s, disabled: r, vertical: o, children: a }) => /* @__PURE__ */ n.jsx("div", { role: "button", className: j("luminus-tab text-primary rounded", Mt.tab, e, {
|
|
3814
3814
|
disabled: r
|
|
3815
3815
|
}, { [Mt.disabled]: r }, { vertical: o }, { [Mt.vertical]: o }), onClick: () => s && !r && s(t), children: typeof a == "string" ? /* @__PURE__ */ n.jsx(V, { variant: o ? "body" : "h6", className: o ? "" : "text-primary", children: a }) : a });
|
|
3816
3816
|
export {
|
|
3817
3817
|
Er as Alert,
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3818
|
+
Kc as AlertItem,
|
|
3819
|
+
sd as ApiFileDownloadButton,
|
|
3820
|
+
id as AppSearch,
|
|
3821
|
+
dd as AuthTemplate,
|
|
3822
3822
|
us as AvatarIcon,
|
|
3823
3823
|
Dr as Backdrop,
|
|
3824
|
-
|
|
3825
|
-
|
|
3824
|
+
ad as Badge,
|
|
3825
|
+
jc as Card,
|
|
3826
3826
|
Tr as CheckInput,
|
|
3827
|
-
|
|
3827
|
+
Nl as Collapse,
|
|
3828
3828
|
jt as ContextButton,
|
|
3829
|
-
|
|
3829
|
+
vd as DisabledRowLabelLink,
|
|
3830
3830
|
$r as Dropdown,
|
|
3831
|
-
|
|
3831
|
+
cd as DropdownDivider,
|
|
3832
3832
|
an as DropdownItem,
|
|
3833
|
-
|
|
3833
|
+
md as DropdownPicker,
|
|
3834
3834
|
kr as DropdownToggle,
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3835
|
+
yd as DynamicForm,
|
|
3836
|
+
Cd as EmployeeSmallPhoto,
|
|
3837
|
+
pl as ErrorBoundary,
|
|
3838
3838
|
br as FileUploadContextButton,
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3839
|
+
ld as FileUploadDropdownItem,
|
|
3840
|
+
Zc as FloatingActionContainer,
|
|
3841
|
+
za as FloatingFormSubmit,
|
|
3842
3842
|
He as FloatingLabelInput,
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3843
|
+
gd as FromToDatePicker,
|
|
3844
|
+
od as HomeDashboard,
|
|
3845
|
+
$d as HookFormCheckInput,
|
|
3846
|
+
Fd as HookFormDropdownPicker,
|
|
3847
|
+
Ed as HookFormFileInput,
|
|
3848
|
+
Od as HookFormFloatingSubmit,
|
|
3849
|
+
Md as HookFormNumericStepperInput,
|
|
3850
|
+
Id as HookFormRadioInput,
|
|
3851
|
+
Td as HookFormSelectInput,
|
|
3852
|
+
Sd as HookFormTextAreaInput,
|
|
3853
|
+
Dd as HookFormTextInput,
|
|
3854
|
+
rd as HtmlTooltip,
|
|
3855
3855
|
U as IconButton,
|
|
3856
3856
|
zn as ImgApi,
|
|
3857
3857
|
Fr as ImgDirect,
|
|
3858
3858
|
Fe as InvalidFeedback,
|
|
3859
|
-
|
|
3859
|
+
_d as LanguageSwitch,
|
|
3860
3860
|
yn as Loading,
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3861
|
+
Go as LoadingBlock,
|
|
3862
|
+
Rd as MessageBoard,
|
|
3863
|
+
Qa as MonthPicker,
|
|
3864
|
+
xd as MonthPickerSearchParams,
|
|
3865
3865
|
we as NoInputContainer,
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3866
|
+
hd as NumericStepperInput,
|
|
3867
|
+
Hc as PhotoLibrary,
|
|
3868
|
+
Pc as PhotoLightbox,
|
|
3869
|
+
wd as PieChart,
|
|
3870
3870
|
wn as PrimaryButton,
|
|
3871
3871
|
Ne as RowLabelInput,
|
|
3872
|
-
|
|
3872
|
+
kd as SearchBox,
|
|
3873
3873
|
wt as SelectInput,
|
|
3874
|
-
|
|
3874
|
+
bd as SettingsFormPicker,
|
|
3875
3875
|
on as SimplePicker,
|
|
3876
3876
|
go as SimpleToggle,
|
|
3877
3877
|
qt as SimpleTooltip,
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3878
|
+
Pd as Tab,
|
|
3879
|
+
Ad as TabPanel,
|
|
3880
|
+
Bd as Tabs,
|
|
3881
|
+
pd as TextAreaInput,
|
|
3882
3882
|
Pe as TextInput,
|
|
3883
|
-
|
|
3884
|
-
|
|
3883
|
+
fd as Timeline,
|
|
3884
|
+
Nd as TypedFormGroup,
|
|
3885
3885
|
V as Typography,
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3886
|
+
zd as UserAvatarToggle,
|
|
3887
|
+
Ld as UserAvatarValueFormat,
|
|
3888
|
+
ud as VersionInfo,
|
|
3889
3889
|
Rn as WidgetCard,
|
|
3890
|
-
|
|
3891
|
-
|
|
3890
|
+
Xa as YearPicker,
|
|
3891
|
+
jd as YearPickerSearchParams
|
|
3892
3892
|
};
|