react-luminus-components 2.0.5-beta.r19-12 → 2.0.5-beta.r19-13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs.js +7 -7
- package/dist/main.es.js +887 -882
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { c as V, a as z, t as Ze, b as
|
|
1
|
+
import { c as V, a as z, t as Ze, b as sl, s as ui, g as fi, m as Ha, d as Xn, e as Va, f as Ua, h as zt, i as Wa, j as Ga, k as Ka, l as Ya, n as qa, o as Qa, p as Xa, T as wo, q as xo, r as Co, u as mi, v as Za, E as No, w as Gl, x as ko, y as Ja, z as Je, A as Kl, B as er, F as _o, C as tr, D as nr, G as lr, M as ir, H as or, I as ar, J as rr, K as sr, L as cr, N as Rl, O as dr, P as ur, Q as ue, R as Dt, S as fr, U as mr, V as pr, W as Io, X as Ot, Y as Pe, Z as Yl, _ as ve, $ as ql, a0 as pi, a1 as hr, a2 as gr, a3 as vr, a4 as Te, a5 as K, a6 as sn, a7 as bt, a8 as Ql, a9 as Xl, aa as Do, ab as Zl, ac as Gt, ad as To, ae as $o, af as Xe, ag as Bt, ah as cn, ai as Sn, aj as yr, ak as ct, al as br, am as Sr, an as jt, ao as ut, ap as Kt, aq as Pt, ar as dn, as as cl, at as $n, au as kt, av as dt, aw as wr, ax as xr, ay as Cr, az as Yt, aA as un, aB as qt, aC as Ft, aD as _t, aE as rt, aF as St, aG as dl, aH as Lo, aI as Nt, aJ as Jl, aK as It, aL as ei, aM as tl, aN as ul, aO as Nr, aP as kr, aQ as _r, aR as Ir, aS as Dr, aT as Tr, aU as fl, aV as Eo, aW as ml, aX as wn, aY as $r, aZ as Lr, a_ as Er, a$ as Oo, b0 as nl, b1 as Ln, b2 as jn, b3 as Or, b4 as Pr, b5 as Ar, b6 as Rr, b7 as Mr, b8 as Fr, b9 as Po, ba as Br, bb as jr, bc as zr, bd as Hr, be as Vr, bf as Ur, bg as Wt, bh as Wr, bi as Gr, bj as Kr, bk as Yr, bl as qr, bm as Nn, bn as Ao, bo as Qr, bp as wl, bq as Ro, br as Xr, bs as Zr, bt as ll, bu as Jr, bv as Mo, bw as Hn, bx as Fo, by as Bo, bz as es, bA as ts, bB as ti, bC as ns, bD as ls } from "./nivo-bar-CyXsS9At.js";
|
|
2
2
|
import { bF as Ng, bE as kg } from "./nivo-bar-CyXsS9At.js";
|
|
3
3
|
import { jsx as r, jsxs as T, Fragment as pe } from "react/jsx-runtime";
|
|
4
|
-
import { c as Rt, a as is, b as os, L as
|
|
4
|
+
import { c as Rt, a as is, b as os, L as Zn, F as as } from "./FormDisabledProvider-C5tMeQG3.js";
|
|
5
5
|
import * as qe from "react";
|
|
6
6
|
import st, { useMemo as Re, useState as ee, useRef as Be, useEffect as me, useCallback as ke, useContext as ne, useId as rs, useLayoutEffect as ss, Component as cs, isValidElement as hi, Suspense as ds, Fragment as us } from "react";
|
|
7
7
|
import { InteractionType as fs } from "@azure/msal-browser";
|
|
8
8
|
import { MsalAuthenticationTemplate as ms } from "@azure/msal-react";
|
|
9
|
-
import { Link as at, useNavigate as
|
|
10
|
-
import
|
|
11
|
-
import { useFormContext as fn, useFormState as mn, useController as pn, useWatch as En, FormProvider as
|
|
9
|
+
import { Link as at, useNavigate as pl, useSearchParams as ps, useParams as jo, generatePath as xn, useLocation as hs, Navigate as Vn } from "react-router";
|
|
10
|
+
import il from "react-dom";
|
|
11
|
+
import { useFormContext as fn, useFormState as mn, useController as pn, useWatch as En, FormProvider as hl, useForm as gl } from "react-hook-form";
|
|
12
12
|
import { Pivot as gs } from "react-flexmonster";
|
|
13
|
-
import { l as Dn, g as Ml, d as vs, r as ys, h as
|
|
13
|
+
import { l as Dn, g as Ml, d as vs, r as ys, h as Jn } from "./localStorageUtils-CZ4HDRzi.js";
|
|
14
14
|
import { u as bs, a as Ss, b as an, c as ws } from "./useIsFormDirty-B7rzoRSx.js";
|
|
15
15
|
import { u as nt, a as On } from "./useLocalStorageState-aZb0PB2o.js";
|
|
16
16
|
const hh = (n) => {
|
|
@@ -53,7 +53,7 @@ const hh = (n) => {
|
|
|
53
53
|
};
|
|
54
54
|
function Cs(n, e) {
|
|
55
55
|
const t = Ze(n);
|
|
56
|
-
return isNaN(e) ?
|
|
56
|
+
return isNaN(e) ? sl(n, NaN) : (e && t.setDate(t.getDate() + e), t);
|
|
57
57
|
}
|
|
58
58
|
function Ns(n, e) {
|
|
59
59
|
const t = Ze(n), l = Ze(e), i = t.getTime() - l.getTime();
|
|
@@ -67,7 +67,7 @@ function vi(n) {
|
|
|
67
67
|
const e = Ze(n);
|
|
68
68
|
return Math.trunc(e.getMonth() / 3) + 1;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function xl(n, e) {
|
|
71
71
|
const t = Ze(n), l = Ze(e), i = t.getFullYear() - l.getFullYear(), o = vi(t) - vi(l);
|
|
72
72
|
return i * 4 + o;
|
|
73
73
|
}
|
|
@@ -75,7 +75,7 @@ function yi(n, e, t) {
|
|
|
75
75
|
const l = ui(n, t), i = ui(e, t), o = +l - fi(l), a = +i - fi(i);
|
|
76
76
|
return Math.round((o - a) / Ha);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Cl(n, e) {
|
|
79
79
|
const t = Ze(n), l = Ze(e);
|
|
80
80
|
return t.getFullYear() - l.getFullYear();
|
|
81
81
|
}
|
|
@@ -106,7 +106,7 @@ function wi(n, e, t) {
|
|
|
106
106
|
const l = li(n, e) / Ua;
|
|
107
107
|
return ni(t == null ? void 0 : t.roundingMethod)(l);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Nl(n, e, t) {
|
|
110
110
|
const l = li(n, e) / 1e3;
|
|
111
111
|
return ni(t == null ? void 0 : t.roundingMethod)(l);
|
|
112
112
|
}
|
|
@@ -128,23 +128,23 @@ function vn(n, e) {
|
|
|
128
128
|
a = `${u < 0 ? "+" : "-"}${g}:${y}`;
|
|
129
129
|
} else
|
|
130
130
|
a = "Z";
|
|
131
|
-
const c = zt(t.getHours(), 2), f = zt(t.getMinutes(), 2), m = zt(t.getSeconds(), 2),
|
|
132
|
-
o = `${o}${
|
|
131
|
+
const c = zt(t.getHours(), 2), f = zt(t.getMinutes(), 2), m = zt(t.getSeconds(), 2), h = o === "" ? "" : "T", p = [c, f, m].join(d);
|
|
132
|
+
o = `${o}${h}${p}${a}`;
|
|
133
133
|
}
|
|
134
134
|
return o;
|
|
135
135
|
}
|
|
136
136
|
function _s(n) {
|
|
137
|
-
const e = Ze(n), t = e.getFullYear(), l = e.getMonth(), i =
|
|
137
|
+
const e = Ze(n), t = e.getFullYear(), l = e.getMonth(), i = sl(n, 0);
|
|
138
138
|
return i.setFullYear(t, l + 1, 0), i.setHours(0, 0, 0, 0), i.getDate();
|
|
139
139
|
}
|
|
140
140
|
function Is(n, e, t) {
|
|
141
141
|
let l = 0, i;
|
|
142
142
|
const o = Ze(n), a = Ze(e);
|
|
143
143
|
if (t != null && t.unit)
|
|
144
|
-
i = t == null ? void 0 : t.unit, i === "second" ? l =
|
|
144
|
+
i = t == null ? void 0 : t.unit, i === "second" ? l = Nl(o, a) : i === "minute" ? l = wi(o, a) : i === "hour" ? l = Si(o, a) : i === "day" ? l = Xn(o, a) : i === "week" ? l = yi(o, a) : i === "month" ? l = gi(o, a) : i === "quarter" ? l = xl(o, a) : i === "year" && (l = Cl(o, a));
|
|
145
145
|
else {
|
|
146
|
-
const d =
|
|
147
|
-
Math.abs(d) < Wa ? (l =
|
|
146
|
+
const d = Nl(o, a);
|
|
147
|
+
Math.abs(d) < Wa ? (l = Nl(o, a), i = "second") : Math.abs(d) < Ga ? (l = wi(o, a), i = "minute") : Math.abs(d) < Ka && Math.abs(Xn(o, a)) < 1 ? (l = Si(o, a), i = "hour") : Math.abs(d) < Ya && (l = Xn(o, a)) && Math.abs(l) < 7 ? i = "day" : Math.abs(d) < qa ? (l = yi(o, a), i = "week") : Math.abs(d) < Qa ? (l = gi(o, a), i = "month") : Math.abs(d) < Xa && xl(o, a) < 4 ? (l = xl(o, a), i = "quarter") : (l = Cl(o, a), i = "year");
|
|
148
148
|
}
|
|
149
149
|
return new Intl.RelativeTimeFormat(t == null ? void 0 : t.locale, {
|
|
150
150
|
localeMatcher: t == null ? void 0 : t.localeMatcher,
|
|
@@ -153,14 +153,14 @@ function Is(n, e, t) {
|
|
|
153
153
|
}).format(l, i);
|
|
154
154
|
}
|
|
155
155
|
function Ds(n, e) {
|
|
156
|
-
const t = Ze(n), l = t.getFullYear(), i = t.getDate(), o =
|
|
156
|
+
const t = Ze(n), l = t.getFullYear(), i = t.getDate(), o = sl(n, 0);
|
|
157
157
|
o.setFullYear(l, e, 15), o.setHours(0, 0, 0, 0);
|
|
158
158
|
const a = _s(o);
|
|
159
159
|
return t.setMonth(e, Math.min(i, a)), t;
|
|
160
160
|
}
|
|
161
161
|
function Fl(n, e) {
|
|
162
162
|
const t = Ze(n);
|
|
163
|
-
return isNaN(+t) ?
|
|
163
|
+
return isNaN(+t) ? sl(n, NaN) : (t.setFullYear(e), t);
|
|
164
164
|
}
|
|
165
165
|
function kn(...n) {
|
|
166
166
|
return n.filter((e) => e != null).reduce((e, t) => {
|
|
@@ -200,8 +200,8 @@ const Ls = {
|
|
|
200
200
|
mountOnEnter: c = !1,
|
|
201
201
|
unmountOnExit: f = !1,
|
|
202
202
|
appear: m = !1,
|
|
203
|
-
getDimensionValue:
|
|
204
|
-
...
|
|
203
|
+
getDimensionValue: h = $s,
|
|
204
|
+
...p
|
|
205
205
|
}, v) => {
|
|
206
206
|
const g = typeof s == "function" ? s() : s, y = Re(() => kn((w) => {
|
|
207
207
|
w.style[g] = "0";
|
|
@@ -211,15 +211,15 @@ const Ls = {
|
|
|
211
211
|
}, e), [g, e]), C = Re(() => kn((w) => {
|
|
212
212
|
w.style[g] = null;
|
|
213
213
|
}, t), [g, t]), x = Re(() => kn((w) => {
|
|
214
|
-
w.style[g] = `${
|
|
215
|
-
}, l), [l,
|
|
214
|
+
w.style[g] = `${h(g, w)}px`, Za(w);
|
|
215
|
+
}, l), [l, h, g]), b = Re(() => kn((w) => {
|
|
216
216
|
w.style[g] = null;
|
|
217
217
|
}, i), [g, i]);
|
|
218
218
|
return /* @__PURE__ */ r(wo, {
|
|
219
219
|
ref: v,
|
|
220
220
|
addEndListener: Co,
|
|
221
|
-
...
|
|
222
|
-
"aria-expanded":
|
|
221
|
+
...p,
|
|
222
|
+
"aria-expanded": p.role ? d : null,
|
|
223
223
|
onEnter: y,
|
|
224
224
|
onEntering: S,
|
|
225
225
|
onEntered: C,
|
|
@@ -388,7 +388,7 @@ const xi = Object.assign(Qo, {
|
|
|
388
388
|
Header: Vo,
|
|
389
389
|
Footer: zo,
|
|
390
390
|
ImgOverlay: Wo
|
|
391
|
-
}),
|
|
391
|
+
}), vl = /* @__PURE__ */ qe.forwardRef(({
|
|
392
392
|
className: n,
|
|
393
393
|
bsPrefix: e,
|
|
394
394
|
as: t = "span",
|
|
@@ -398,13 +398,13 @@ const xi = Object.assign(Qo, {
|
|
|
398
398
|
className: z(n, e),
|
|
399
399
|
...l
|
|
400
400
|
})));
|
|
401
|
-
|
|
402
|
-
const Ps = (n) => /* @__PURE__ */ r(
|
|
401
|
+
vl.displayName = "InputGroupText";
|
|
402
|
+
const Ps = (n) => /* @__PURE__ */ r(vl, {
|
|
403
403
|
children: /* @__PURE__ */ r(_o, {
|
|
404
404
|
type: "checkbox",
|
|
405
405
|
...n
|
|
406
406
|
})
|
|
407
|
-
}), As = (n) => /* @__PURE__ */ r(
|
|
407
|
+
}), As = (n) => /* @__PURE__ */ r(vl, {
|
|
408
408
|
children: /* @__PURE__ */ r(_o, {
|
|
409
409
|
type: "radio",
|
|
410
410
|
...n
|
|
@@ -430,8 +430,8 @@ const Ps = (n) => /* @__PURE__ */ r(gl, {
|
|
|
430
430
|
});
|
|
431
431
|
});
|
|
432
432
|
Xo.displayName = "InputGroup";
|
|
433
|
-
const
|
|
434
|
-
Text:
|
|
433
|
+
const el = Object.assign(Xo, {
|
|
434
|
+
Text: vl,
|
|
435
435
|
Radio: As,
|
|
436
436
|
Checkbox: Ps
|
|
437
437
|
}), Bl = /* @__PURE__ */ new WeakMap(), Ci = (n, e) => {
|
|
@@ -478,7 +478,7 @@ function Ms(n) {
|
|
|
478
478
|
typeof s == "object" ? (c = s, u = d, d = !0) : (d = d || !0, c = {
|
|
479
479
|
[s]: d
|
|
480
480
|
});
|
|
481
|
-
let f = Re(() => Object.entries(c).reduce((m, [
|
|
481
|
+
let f = Re(() => Object.entries(c).reduce((m, [h, p]) => ((p === "up" || p === !0) && (m = t(m, o(h))), (p === "down" || p === !0) && (m = t(m, i(h))), m), ""), [JSON.stringify(c)]);
|
|
482
482
|
return Rs(f, u);
|
|
483
483
|
}
|
|
484
484
|
return a;
|
|
@@ -578,8 +578,8 @@ const na = /* @__PURE__ */ qe.forwardRef(({
|
|
|
578
578
|
onEscapeKeyDown: c,
|
|
579
579
|
onShow: f,
|
|
580
580
|
onHide: m,
|
|
581
|
-
container:
|
|
582
|
-
autoFocus:
|
|
581
|
+
container: h,
|
|
582
|
+
autoFocus: p = !0,
|
|
583
583
|
enforceFocus: v = !0,
|
|
584
584
|
restoreFocus: g = !0,
|
|
585
585
|
restoreFocusOptions: y,
|
|
@@ -629,9 +629,9 @@ const na = /* @__PURE__ */ qe.forwardRef(({
|
|
|
629
629
|
show: E,
|
|
630
630
|
ref: _,
|
|
631
631
|
backdrop: s,
|
|
632
|
-
container:
|
|
632
|
+
container: h,
|
|
633
633
|
keyboard: d,
|
|
634
|
-
autoFocus:
|
|
634
|
+
autoFocus: p,
|
|
635
635
|
enforceFocus: v && !u,
|
|
636
636
|
restoreFocus: g,
|
|
637
637
|
restoreFocusOptions: y,
|
|
@@ -678,7 +678,7 @@ function la({
|
|
|
678
678
|
}
|
|
679
679
|
const ia = /* @__PURE__ */ qe.forwardRef((n, e) => {
|
|
680
680
|
const t = la(n);
|
|
681
|
-
return /* @__PURE__ */ r(
|
|
681
|
+
return /* @__PURE__ */ r(Rl, {
|
|
682
682
|
...t,
|
|
683
683
|
ref: e,
|
|
684
684
|
disabled: !0,
|
|
@@ -714,8 +714,8 @@ const Ht = Object.assign(oa, {
|
|
|
714
714
|
f != null && typeof f == "object" ? {
|
|
715
715
|
cols: m
|
|
716
716
|
} = f : m = f;
|
|
717
|
-
const
|
|
718
|
-
m != null && u.push(`${d}${
|
|
717
|
+
const h = c !== s ? `-${c}` : "";
|
|
718
|
+
m != null && u.push(`${d}${h}-${m}`);
|
|
719
719
|
}), /* @__PURE__ */ r(t, {
|
|
720
720
|
ref: i,
|
|
721
721
|
...l,
|
|
@@ -735,19 +735,19 @@ const aa = /* @__PURE__ */ qe.forwardRef(({
|
|
|
735
735
|
responsive: d,
|
|
736
736
|
...u
|
|
737
737
|
}, c) => {
|
|
738
|
-
const f = Je(n, "table"), m = z(e, f, s && `${f}-${s}`, a && `${f}-${a}`, t && `${f}-${typeof t == "string" ? `striped-${t}` : "striped"}`, l && `${f}-bordered`, i && `${f}-borderless`, o && `${f}-hover`),
|
|
738
|
+
const f = Je(n, "table"), m = z(e, f, s && `${f}-${s}`, a && `${f}-${a}`, t && `${f}-${typeof t == "string" ? `striped-${t}` : "striped"}`, l && `${f}-bordered`, i && `${f}-borderless`, o && `${f}-hover`), h = /* @__PURE__ */ r("table", {
|
|
739
739
|
...u,
|
|
740
740
|
className: m,
|
|
741
741
|
ref: c
|
|
742
742
|
});
|
|
743
743
|
if (d) {
|
|
744
|
-
let
|
|
745
|
-
return typeof d == "string" && (
|
|
746
|
-
className:
|
|
747
|
-
children:
|
|
744
|
+
let p = `${f}-responsive`;
|
|
745
|
+
return typeof d == "string" && (p = `${p}-${d}`), /* @__PURE__ */ r("div", {
|
|
746
|
+
className: p,
|
|
747
|
+
children: h
|
|
748
748
|
});
|
|
749
749
|
}
|
|
750
|
-
return
|
|
750
|
+
return h;
|
|
751
751
|
});
|
|
752
752
|
aa.displayName = "Table";
|
|
753
753
|
const Vs = (n) => {
|
|
@@ -835,12 +835,12 @@ const Vs = (n) => {
|
|
|
835
835
|
yearClassName: u,
|
|
836
836
|
size: c
|
|
837
837
|
} = n, f = o === void 0 ? 2e3 : o, m = a === void 0 ? 2050 : a;
|
|
838
|
-
let
|
|
839
|
-
e[0] !== t || e[1] !== l || e[2] !== m || e[3] !== f ? (
|
|
838
|
+
let h;
|
|
839
|
+
e[0] !== t || e[1] !== l || e[2] !== m || e[3] !== f ? (h = (U) => {
|
|
840
840
|
const W = is(t, U);
|
|
841
841
|
W.getFullYear() < f || W.getFullYear() > m || l(W);
|
|
842
|
-
}, e[0] = t, e[1] = l, e[2] = m, e[3] = f, e[4] =
|
|
843
|
-
const
|
|
842
|
+
}, e[0] = t, e[1] = l, e[2] = m, e[3] = f, e[4] = h) : h = e[4];
|
|
843
|
+
const p = h;
|
|
844
844
|
let v;
|
|
845
845
|
if (e[5] !== m || e[6] !== f) {
|
|
846
846
|
v = [];
|
|
@@ -869,7 +869,7 @@ const Vs = (n) => {
|
|
|
869
869
|
[C]: c
|
|
870
870
|
}), e[10] = s, e[11] = c, e[12] = C, e[13] = x) : x = e[13];
|
|
871
871
|
let b;
|
|
872
|
-
e[14] !==
|
|
872
|
+
e[14] !== p ? (b = () => p(-1), e[14] = p, e[15] = b) : b = e[15];
|
|
873
873
|
let w;
|
|
874
874
|
e[16] !== t || e[17] !== f ? (w = t.getFullYear() < f || t.getFullYear() === f && t.getMonth() <= 0, e[16] = t, e[17] = f, e[18] = w) : w = e[18];
|
|
875
875
|
let N;
|
|
@@ -903,7 +903,7 @@ const Vs = (n) => {
|
|
|
903
903
|
let R;
|
|
904
904
|
e[46] !== E || e[47] !== A || e[48] !== P || e[49] !== O ? (R = /* @__PURE__ */ r(Pe.Select, { value: E, onChange: A, className: P, children: O }), e[46] = E, e[47] = A, e[48] = P, e[49] = O, e[50] = R) : R = e[50];
|
|
905
905
|
let F;
|
|
906
|
-
e[51] !==
|
|
906
|
+
e[51] !== p ? (F = () => p(1), e[51] = p, e[52] = F) : F = e[52];
|
|
907
907
|
let B;
|
|
908
908
|
e[53] !== t || e[54] !== m ? (B = t.getFullYear() > m || t.getFullYear() === m && t.getMonth() >= 11, e[53] = t, e[54] = m, e[55] = B) : B = e[55];
|
|
909
909
|
let j;
|
|
@@ -960,21 +960,21 @@ const Qs = "_select_pywmr_1", Xs = {
|
|
|
960
960
|
B = e[16];
|
|
961
961
|
m = B;
|
|
962
962
|
}
|
|
963
|
-
const
|
|
964
|
-
let
|
|
965
|
-
e[17] !== l || e[18] !== f || e[19] !== u || e[20] !== i.manualOptions || e[21] !==
|
|
963
|
+
const h = m;
|
|
964
|
+
let p;
|
|
965
|
+
e[17] !== l || e[18] !== f || e[19] !== u || e[20] !== i.manualOptions || e[21] !== h || e[22] !== a ? (p = (B) => {
|
|
966
966
|
if (i.manualOptions) {
|
|
967
|
-
const j =
|
|
967
|
+
const j = h.findIndex((H) => H === a.getFullYear());
|
|
968
968
|
if (j !== -1) {
|
|
969
|
-
const H =
|
|
969
|
+
const H = h.at(j + B) ?? null;
|
|
970
970
|
H && l(Fl(a, H));
|
|
971
971
|
}
|
|
972
972
|
} else {
|
|
973
973
|
const j = a.getFullYear() + B;
|
|
974
974
|
j >= u && j <= f && l(os(a, B));
|
|
975
975
|
}
|
|
976
|
-
}, e[17] = l, e[18] = f, e[19] = u, e[20] = i.manualOptions, e[21] =
|
|
977
|
-
const v =
|
|
976
|
+
}, e[17] = l, e[18] = f, e[19] = u, e[20] = i.manualOptions, e[21] = h, e[22] = a, e[23] = p) : p = e[23];
|
|
977
|
+
const v = p, g = s === "standart" ? "card p-1 gap-2" : void 0, y = s === "minimalist" ? "p-0 gap-0" : void 0, S = t ?? "";
|
|
978
978
|
let C;
|
|
979
979
|
e[24] !== g || e[25] !== y || e[26] !== S ? (C = z("d-flex flex-row align-items-center m-0", g, y, S), e[24] = g, e[25] = y, e[26] = S, e[27] = C) : C = e[27];
|
|
980
980
|
let x;
|
|
@@ -994,7 +994,7 @@ const Qs = "_select_pywmr_1", Xs = {
|
|
|
994
994
|
let L;
|
|
995
995
|
e[39] === Symbol.for("react.memo_cache_sentinel") ? (L = z(Xs.select, "bg-transparent"), e[39] = L) : L = e[39];
|
|
996
996
|
let I;
|
|
997
|
-
e[40] !==
|
|
997
|
+
e[40] !== h ? (I = h.map(Js), e[40] = h, e[41] = I) : I = e[41];
|
|
998
998
|
let _;
|
|
999
999
|
e[42] !== k || e[43] !== D || e[44] !== I ? (_ = /* @__PURE__ */ r(Pe.Select, { value: k, onChange: D, className: L, children: I }), e[42] = k, e[43] = D, e[44] = I, e[45] = _) : _ = e[45];
|
|
1000
1000
|
let $;
|
|
@@ -1166,12 +1166,12 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1166
1166
|
default:
|
|
1167
1167
|
throw new Error("Incorrect type for ContactsLink");
|
|
1168
1168
|
}
|
|
1169
|
-
const
|
|
1169
|
+
const h = m, p = t === null;
|
|
1170
1170
|
let v;
|
|
1171
1171
|
e[2] !== o ? (v = /* @__PURE__ */ r(o, { icon: "qr-code" }), e[2] = o, e[3] = v) : v = e[3];
|
|
1172
1172
|
let g;
|
|
1173
|
-
e[4] !== i || e[5] !==
|
|
1174
|
-
const y = `${
|
|
1173
|
+
e[4] !== i || e[5] !== p || e[6] !== v ? (g = /* @__PURE__ */ r(ve, { onClick: u, disabled: p, className: i, children: v }), e[4] = i, e[5] = p, e[6] = v, e[7] = g) : g = e[7];
|
|
1174
|
+
const y = `${h}:${t}`;
|
|
1175
1175
|
let S;
|
|
1176
1176
|
e[8] !== y ? (S = /* @__PURE__ */ r(ic, { value: y }), e[8] = y, e[9] = S) : S = e[9];
|
|
1177
1177
|
let C;
|
|
@@ -1234,8 +1234,8 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1234
1234
|
o,
|
|
1235
1235
|
(!o || a) && /* @__PURE__ */ r(ve, { children: /* @__PURE__ */ r(s, { icon: f }) })
|
|
1236
1236
|
] }), e[0] = s, e[1] = o, e[2] = u, e[3] = f, e[4] = a, e[5] = l, e[6] = m) : m = e[6];
|
|
1237
|
-
let
|
|
1238
|
-
return e[7] !== i || e[8] !== m ? (
|
|
1237
|
+
let h;
|
|
1238
|
+
return e[7] !== i || e[8] !== m ? (h = /* @__PURE__ */ r("div", { className: i, children: m }), e[7] = i, e[8] = m, e[9] = h) : h = e[9], h;
|
|
1239
1239
|
}, Pn = (n) => {
|
|
1240
1240
|
const e = V.c(23), {
|
|
1241
1241
|
InputContainer: t,
|
|
@@ -1249,11 +1249,11 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1249
1249
|
withoutLabel: c,
|
|
1250
1250
|
indeterminate: f,
|
|
1251
1251
|
hint: m
|
|
1252
|
-
} = n,
|
|
1252
|
+
} = n, h = t === void 0 ? sn : t, p = Be(null);
|
|
1253
1253
|
let v, g;
|
|
1254
1254
|
e[0] !== f ? (v = () => {
|
|
1255
|
-
|
|
1256
|
-
}, g = [
|
|
1255
|
+
p.current && (p.current.indeterminate = f ?? !1);
|
|
1256
|
+
}, g = [p, f], e[0] = f, e[1] = v, e[2] = g) : (v = e[1], g = e[2]), me(v, g);
|
|
1257
1257
|
const y = l ?? "", S = `check-${l}`, C = u ?? "checkbox", x = l ?? "";
|
|
1258
1258
|
let b;
|
|
1259
1259
|
e[3] !== o ? (b = (I) => {
|
|
@@ -1262,9 +1262,9 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1262
1262
|
}, e[3] = o, e[4] = b) : b = e[4];
|
|
1263
1263
|
const w = d ?? "", N = a ?? !1, k = s ?? !1;
|
|
1264
1264
|
let D;
|
|
1265
|
-
e[5] !== N || e[6] !== k || e[7] !== S || e[8] !== C || e[9] !== x || e[10] !== b || e[11] !== w || e[12] !== i ? (D = /* @__PURE__ */ r(Pe.Check, { ref:
|
|
1265
|
+
e[5] !== N || e[6] !== k || e[7] !== S || e[8] !== C || e[9] !== x || e[10] !== b || e[11] !== w || e[12] !== i ? (D = /* @__PURE__ */ r(Pe.Check, { ref: p, id: S, type: C, label: x, checked: i, onChange: b, className: w, hidden: N, disabled: k }), e[5] = N, e[6] = k, e[7] = S, e[8] = C, e[9] = x, e[10] = b, e[11] = w, e[12] = i, e[13] = D) : D = e[13];
|
|
1266
1266
|
let L;
|
|
1267
|
-
return e[14] !==
|
|
1267
|
+
return e[14] !== h || e[15] !== d || e[16] !== s || e[17] !== a || e[18] !== m || e[19] !== D || e[20] !== y || e[21] !== c ? (L = /* @__PURE__ */ r(h, { isForCheckInput: !0, hidden: a, label: y, withoutLabel: c, className: d, hint: m, disabled: s, children: D }), e[14] = h, e[15] = d, e[16] = s, e[17] = a, e[18] = m, e[19] = D, e[20] = y, e[21] = c, e[22] = L) : L = e[22], L;
|
|
1268
1268
|
}, rc = "_popoverContainer_j6114_1", sc = "_textInput_j6114_5", cc = "_btnsPopover_j6114_9", dc = "_popoverHandle_j6114_20", uc = "_btnsPopoverHideable_j6114_27", _n = {
|
|
1269
1269
|
popoverContainer: rc,
|
|
1270
1270
|
textInput: sc,
|
|
@@ -1290,17 +1290,17 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1290
1290
|
e[5] === Symbol.for("react.memo_cache_sentinel") ? (f = z("w-50", _n.popoverContainer), e[5] = f) : f = e[5];
|
|
1291
1291
|
let m;
|
|
1292
1292
|
e[6] !== t ? (m = /* @__PURE__ */ r("div", { className: _n.textInput, children: t }), e[6] = t, e[7] = m) : m = e[7];
|
|
1293
|
-
let
|
|
1294
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1293
|
+
let h, p;
|
|
1294
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (h = z("d-flex gap-1", _n.btnsPopover), p = z(_n.btnsPopoverHideable, "p-1"), e[8] = h, e[9] = p) : (h = e[8], p = e[9]);
|
|
1295
1295
|
let v;
|
|
1296
|
-
e[10] !== a || e[11] !== s ? (v = /* @__PURE__ */ T("div", { className:
|
|
1296
|
+
e[10] !== a || e[11] !== s ? (v = /* @__PURE__ */ T("div", { className: p, children: [
|
|
1297
1297
|
/* @__PURE__ */ r(oc, { contactType: a, value: s }),
|
|
1298
1298
|
/* @__PURE__ */ r(ac, { contactType: a, value: s })
|
|
1299
1299
|
] }), e[10] = a, e[11] = s, e[12] = v) : v = e[12];
|
|
1300
1300
|
let g;
|
|
1301
1301
|
e[13] !== d ? (g = /* @__PURE__ */ r("div", { role: "button", tabIndex: 0, className: _n.popoverHandle, children: /* @__PURE__ */ r(d, { icon: "chevron-left" }) }), e[13] = d, e[14] = g) : g = e[14];
|
|
1302
1302
|
let y;
|
|
1303
|
-
e[15] !== v || e[16] !== g ? (y = /* @__PURE__ */ T("div", { className:
|
|
1303
|
+
e[15] !== v || e[16] !== g ? (y = /* @__PURE__ */ T("div", { className: h, children: [
|
|
1304
1304
|
v,
|
|
1305
1305
|
g
|
|
1306
1306
|
] }), e[15] = v, e[16] = g, e[17] = y) : y = e[17];
|
|
@@ -1333,8 +1333,8 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1333
1333
|
return null;
|
|
1334
1334
|
let m;
|
|
1335
1335
|
e[10] !== f || e[11] !== i || e[12] !== s || e[13] !== u ? (m = /* @__PURE__ */ r(bt, { type: "text", value: u, disabled: i, InputContainer: f, size: "sm", withoutLabel: !0, ...s }), e[10] = f, e[11] = i, e[12] = s, e[13] = u, e[14] = m) : m = e[14];
|
|
1336
|
-
let
|
|
1337
|
-
return e[15] !== t || e[16] !== l || e[17] !== a || e[18] !== m || e[19] !== u || e[20] !== c ? (
|
|
1336
|
+
let h;
|
|
1337
|
+
return e[15] !== t || e[16] !== l || e[17] !== a || e[18] !== m || e[19] !== u || e[20] !== c ? (h = /* @__PURE__ */ r(sa, { contactType: l, value: u, withoutLabel: c, label: a, className: t, children: m }), e[15] = t, e[16] = l, e[17] = a, e[18] = m, e[19] = u, e[20] = c, e[21] = h) : h = e[21], h;
|
|
1338
1338
|
}, yh = ({
|
|
1339
1339
|
InputContainer: n = sn,
|
|
1340
1340
|
items: e,
|
|
@@ -1349,8 +1349,8 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1349
1349
|
size: c,
|
|
1350
1350
|
dropdownItemsNameWidth: f,
|
|
1351
1351
|
additionalColumns: m,
|
|
1352
|
-
hidden:
|
|
1353
|
-
disabled:
|
|
1352
|
+
hidden: h,
|
|
1353
|
+
disabled: p,
|
|
1354
1354
|
displayIdAsName: v,
|
|
1355
1355
|
CustomOnChangeComponent: g,
|
|
1356
1356
|
className: y,
|
|
@@ -1373,9 +1373,9 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1373
1373
|
var B, j;
|
|
1374
1374
|
return v ? ((B = a == null ? void 0 : a.id) == null ? void 0 : B.toString()) ?? "" : a != null && a.name && a.name.length > 0 ? a.name : ((j = a == null ? void 0 : a.id) == null ? void 0 : j.toString()) ?? "";
|
|
1375
1375
|
}, [a, v]);
|
|
1376
|
-
return /* @__PURE__ */ r(pe, { children: /* @__PURE__ */ T(n, { withoutLabel: u, label: d ?? "", hidden:
|
|
1376
|
+
return /* @__PURE__ */ r(pe, { children: /* @__PURE__ */ T(n, { withoutLabel: u, label: d ?? "", hidden: h, inputContainerClassName: z({
|
|
1377
1377
|
"luminus-dropdown-select-open": _
|
|
1378
|
-
}), className: y, hint: x, disabled:
|
|
1378
|
+
}), className: y, hint: x, disabled: p, children: [
|
|
1379
1379
|
/* @__PURE__ */ T(Ql, { currentSelection: a, selectedItemNavigateTo: t, children: [
|
|
1380
1380
|
v && (a == null ? void 0 : a.name) && /* @__PURE__ */ r(K, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: a.name }),
|
|
1381
1381
|
/* @__PURE__ */ r(Xl, { value: (a == null ? void 0 : a.id) ?? null, MiniDetailComponent: N, miniDetailPlacement: k, children: /* @__PURE__ */ T(
|
|
@@ -1388,29 +1388,29 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1388
1388
|
B.currentTarget.focus(), B.preventDefault();
|
|
1389
1389
|
},
|
|
1390
1390
|
onClick: () => {
|
|
1391
|
-
!O && !
|
|
1391
|
+
!O && !p && $(!0);
|
|
1392
1392
|
},
|
|
1393
1393
|
onChange: () => {
|
|
1394
1394
|
},
|
|
1395
1395
|
className: z("w-100", {
|
|
1396
|
-
"luminus-dropdown-picker-disabled":
|
|
1396
|
+
"luminus-dropdown-picker-disabled": p,
|
|
1397
1397
|
"luminus-dropdown-picker-link": R
|
|
1398
1398
|
}),
|
|
1399
|
-
hidden:
|
|
1399
|
+
hidden: h,
|
|
1400
1400
|
children: [
|
|
1401
1401
|
/* @__PURE__ */ r("option", { value: "" }),
|
|
1402
1402
|
a && /* @__PURE__ */ r("option", { value: a.id ?? void 0, children: F })
|
|
1403
1403
|
]
|
|
1404
1404
|
}
|
|
1405
1405
|
) }),
|
|
1406
|
-
g || !
|
|
1407
|
-
!g && !
|
|
1406
|
+
g || !p && O ? /* @__PURE__ */ T("div", { className: "custom-picker-button", children: [
|
|
1407
|
+
!g && !p && O && /* @__PURE__ */ r(ve, { size: "sm", color: "secondary", onClick: (B) => {
|
|
1408
1408
|
B.preventDefault(), B.stopPropagation(), $(!0);
|
|
1409
1409
|
}, children: C ?? /* @__PURE__ */ r(Do, {}) }),
|
|
1410
1410
|
g ?? null
|
|
1411
1411
|
] }) : null
|
|
1412
1412
|
] }),
|
|
1413
|
-
P.current && /* @__PURE__ */ r(Zl, { show: _, onCancel: () => $(!1), items: e, currentSelection: a, onSelectionChange: A, onSearchQueryChange: l, texts: i, itemsNameWidth: f, additionalColumns: m, isLoading: o, disabled:
|
|
1413
|
+
P.current && /* @__PURE__ */ r(Zl, { show: _, onCancel: () => $(!1), items: e, currentSelection: a, onSelectionChange: A, onSearchQueryChange: l, texts: i, itemsNameWidth: f, additionalColumns: m, isLoading: o, disabled: p, inputRef: P, archiveColumn: S, displayIdAsName: v, addNewOptionPath: b, refreshOptions: w, suggestedItems: D, suggestedItemsTitle: L, customEllipsisOptions: I })
|
|
1414
1414
|
] }) });
|
|
1415
1415
|
}, bh = (n) => {
|
|
1416
1416
|
const e = V.c(38), {
|
|
@@ -1425,8 +1425,8 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1425
1425
|
disabled: c,
|
|
1426
1426
|
rows: f,
|
|
1427
1427
|
withoutLabel: m,
|
|
1428
|
-
debounceMs:
|
|
1429
|
-
minLength:
|
|
1428
|
+
debounceMs: h,
|
|
1429
|
+
minLength: p,
|
|
1430
1430
|
maxLength: v,
|
|
1431
1431
|
className: g,
|
|
1432
1432
|
hint: y
|
|
@@ -1449,25 +1449,25 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1449
1449
|
}, e[5] = i, e[6] = D) : D = e[6];
|
|
1450
1450
|
const L = D;
|
|
1451
1451
|
let I;
|
|
1452
|
-
e[7] !==
|
|
1452
|
+
e[7] !== h || e[8] !== L ? (I = (j) => {
|
|
1453
1453
|
var M;
|
|
1454
1454
|
const H = (M = j.target) == null ? void 0 : M.value;
|
|
1455
|
-
if (!
|
|
1455
|
+
if (!h) {
|
|
1456
1456
|
L(H);
|
|
1457
1457
|
return;
|
|
1458
1458
|
}
|
|
1459
1459
|
k(H), b.current !== null && window.clearTimeout(b.current), b.current = window.setTimeout(() => {
|
|
1460
1460
|
L(H);
|
|
1461
|
-
},
|
|
1462
|
-
}, e[7] =
|
|
1461
|
+
}, h);
|
|
1462
|
+
}, e[7] = h, e[8] = L, e[9] = I) : I = e[9];
|
|
1463
1463
|
const _ = I;
|
|
1464
1464
|
let $, E;
|
|
1465
1465
|
e[10] !== l ? ($ = () => {
|
|
1466
1466
|
k(l === null ? "" : l.toString());
|
|
1467
1467
|
}, E = [l], e[10] = l, e[11] = $, e[12] = E) : ($ = e[11], E = e[12]), me($, E);
|
|
1468
|
-
const A = o ?? "", P =
|
|
1468
|
+
const A = o ?? "", P = h ? N : l ?? "", O = f ?? 2;
|
|
1469
1469
|
let R;
|
|
1470
|
-
e[13] !== c || e[14] !== _ || e[15] !== u || e[16] !== v || e[17] !==
|
|
1470
|
+
e[13] !== c || e[14] !== _ || e[15] !== u || e[16] !== v || e[17] !== p || e[18] !== a || e[19] !== O || e[20] !== P ? (R = /* @__PURE__ */ r(Pe.Control, { as: "textarea", size: a, value: P, onChange: _, hidden: u, disabled: c, rows: O, className: "w-100", minLength: p, maxLength: v }), e[13] = c, e[14] = _, e[15] = u, e[16] = v, e[17] = p, e[18] = a, e[19] = O, e[20] = P, e[21] = R) : R = e[21];
|
|
1471
1471
|
let F;
|
|
1472
1472
|
e[22] !== x || e[23] !== c || e[24] !== i || e[25] !== s || e[26] !== l ? (F = s && l && i && !c && /* @__PURE__ */ r("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r(ve, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ r(Gt, {}) }) }), e[22] = x, e[23] = c, e[24] = i, e[25] = s, e[26] = l, e[27] = F) : F = e[27];
|
|
1473
1473
|
let B;
|
|
@@ -1488,8 +1488,8 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1488
1488
|
hidden: c,
|
|
1489
1489
|
disabled: f,
|
|
1490
1490
|
showClearIcon: m,
|
|
1491
|
-
clearValue:
|
|
1492
|
-
className:
|
|
1491
|
+
clearValue: h,
|
|
1492
|
+
className: p,
|
|
1493
1493
|
step: v,
|
|
1494
1494
|
stepperStep: g,
|
|
1495
1495
|
min: y,
|
|
@@ -1497,12 +1497,12 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1497
1497
|
hint: C
|
|
1498
1498
|
} = n, x = t === void 0 ? sn : t, b = g === void 0 ? 1 : g;
|
|
1499
1499
|
let w;
|
|
1500
|
-
e[0] !==
|
|
1500
|
+
e[0] !== h || e[1] !== i ? (w = () => {
|
|
1501
1501
|
if (!i)
|
|
1502
1502
|
return;
|
|
1503
|
-
const se =
|
|
1503
|
+
const se = h ?? null;
|
|
1504
1504
|
i(se ? Number(se) : null);
|
|
1505
|
-
}, e[0] =
|
|
1505
|
+
}, e[0] = h, e[1] = i, e[2] = w) : w = e[2];
|
|
1506
1506
|
const N = w, k = Be(null);
|
|
1507
1507
|
let D;
|
|
1508
1508
|
e[3] !== l ? (D = (l == null ? void 0 : l.toString()) ?? "", e[3] = l, e[4] = D) : D = e[4];
|
|
@@ -1530,7 +1530,7 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1530
1530
|
e[14] !== S || e[15] !== y || e[16] !== l ? (P = () => {
|
|
1531
1531
|
I(l === null ? "" : Dn(l, y, S).toString());
|
|
1532
1532
|
}, O = [S, y, l], e[14] = S, e[15] = y, e[16] = l, e[17] = P, e[18] = O) : (P = e[17], O = e[18]), me(P, O);
|
|
1533
|
-
const R = a ?? "", F = d ?? a, B = o ? L : l ?? "", j = `luminus-numeric-stepper ${
|
|
1533
|
+
const R = a ?? "", F = d ?? a, B = o ? L : l ?? "", j = `luminus-numeric-stepper ${p ?? ""}`, H = f ?? !1;
|
|
1534
1534
|
let M;
|
|
1535
1535
|
e[19] !== A || e[20] !== c || e[21] !== u || e[22] !== v || e[23] !== F || e[24] !== B || e[25] !== j || e[26] !== H ? (M = /* @__PURE__ */ r(Pe.Control, { type: "number", placeholder: F, size: u, value: B, onChange: A, className: j, hidden: c, disabled: H, step: v }), e[19] = A, e[20] = c, e[21] = u, e[22] = v, e[23] = F, e[24] = B, e[25] = j, e[26] = H, e[27] = M) : M = e[27];
|
|
1536
1536
|
let U;
|
|
@@ -1555,7 +1555,7 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1555
1555
|
X
|
|
1556
1556
|
] }), e[48] = M, e[49] = W, e[50] = q, e[51] = X, e[52] = ie) : ie = e[52];
|
|
1557
1557
|
let te;
|
|
1558
|
-
return e[53] !== x || e[54] !==
|
|
1558
|
+
return e[53] !== x || e[54] !== p || e[55] !== f || e[56] !== c || e[57] !== C || e[58] !== ie || e[59] !== R || e[60] !== s ? (te = /* @__PURE__ */ r(x, { withoutLabel: s, label: R, hidden: c, hint: C, className: p, disabled: f, children: ie }), e[53] = x, e[54] = p, e[55] = f, e[56] = c, e[57] = C, e[58] = ie, e[59] = R, e[60] = s, e[61] = te) : te = e[61], te;
|
|
1559
1559
|
};
|
|
1560
1560
|
function ca(n, e) {
|
|
1561
1561
|
var t = {};
|
|
@@ -1665,8 +1665,8 @@ function Ti(n, e, t) {
|
|
|
1665
1665
|
o && Number(c[0]) && (f = o.split("").reverse().reduce(function(v, g, y) {
|
|
1666
1666
|
return v.length > y ? (Number(v[0]) + Number(g)).toString() + v.substring(1, v.length) : g + v;
|
|
1667
1667
|
}, c[0]));
|
|
1668
|
-
var m = fa(c[1] || "", e, t),
|
|
1669
|
-
return "" +
|
|
1668
|
+
var m = fa(c[1] || "", e, t), h = s ? "-" : "", p = l ? "." : "";
|
|
1669
|
+
return "" + h + f + p + m;
|
|
1670
1670
|
}
|
|
1671
1671
|
function ln(n, e) {
|
|
1672
1672
|
if (n.value = n.value, n !== null) {
|
|
@@ -1696,7 +1696,7 @@ var pa = fc(function(n, e) {
|
|
|
1696
1696
|
function bc(n, e, t) {
|
|
1697
1697
|
return Math.min(Math.max(n, e), t);
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function kl(n) {
|
|
1700
1700
|
return Math.max(n.selectionStart, n.selectionEnd);
|
|
1701
1701
|
}
|
|
1702
1702
|
function Sc() {
|
|
@@ -1725,18 +1725,18 @@ function Cc(n, e, t, l, i, o, a) {
|
|
|
1725
1725
|
return x;
|
|
1726
1726
|
}), d = n.slice(0, s);
|
|
1727
1727
|
!e && !t.startsWith(d) && (e = d, t = d + t, l = l + d.length);
|
|
1728
|
-
for (var u = t.length, c = n.length, f = {}, m = new Array(u),
|
|
1729
|
-
m[
|
|
1730
|
-
for (var
|
|
1728
|
+
for (var u = t.length, c = n.length, f = {}, m = new Array(u), h = 0; h < u; h++) {
|
|
1729
|
+
m[h] = -1;
|
|
1730
|
+
for (var p = 0, v = c; p < v; p++) {
|
|
1731
1731
|
var g = a({
|
|
1732
1732
|
currentValue: t,
|
|
1733
1733
|
lastValue: e,
|
|
1734
1734
|
formattedValue: n,
|
|
1735
|
-
currentValueIndex:
|
|
1736
|
-
formattedValueIndex:
|
|
1735
|
+
currentValueIndex: h,
|
|
1736
|
+
formattedValueIndex: p
|
|
1737
1737
|
});
|
|
1738
|
-
if (g && f[
|
|
1739
|
-
m[
|
|
1738
|
+
if (g && f[p] !== !0) {
|
|
1739
|
+
m[h] = p, f[p] = !0;
|
|
1740
1740
|
break;
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
@@ -1771,22 +1771,22 @@ function Nc(n) {
|
|
|
1771
1771
|
}
|
|
1772
1772
|
function ha(n, e, t, l, i, o) {
|
|
1773
1773
|
o === void 0 && (o = Ut);
|
|
1774
|
-
var a = gc(function(
|
|
1774
|
+
var a = gc(function(p, v) {
|
|
1775
1775
|
var g, y;
|
|
1776
|
-
return da(
|
|
1776
|
+
return da(p) ? (y = "", g = "") : typeof p == "number" || v ? (y = typeof p == "number" ? ma(p) : p, g = l(y)) : (y = i(p, void 0), g = l(y)), { formattedValue: g, numAsString: y };
|
|
1777
1777
|
}), s = ee(function() {
|
|
1778
1778
|
return a(yn(n) ? e : n, t);
|
|
1779
|
-
}), d = s[0], u = s[1], c = function(
|
|
1780
|
-
|
|
1781
|
-
formattedValue:
|
|
1782
|
-
numAsString:
|
|
1783
|
-
}), o(
|
|
1779
|
+
}), d = s[0], u = s[1], c = function(p, v) {
|
|
1780
|
+
p.formattedValue !== d.formattedValue && u({
|
|
1781
|
+
formattedValue: p.formattedValue,
|
|
1782
|
+
numAsString: p.value
|
|
1783
|
+
}), o(p, v);
|
|
1784
1784
|
}, f = n, m = t;
|
|
1785
1785
|
yn(n) && (f = d.numAsString, m = !0);
|
|
1786
|
-
var
|
|
1786
|
+
var h = a(f, m);
|
|
1787
1787
|
return Re(function() {
|
|
1788
|
-
u(
|
|
1789
|
-
}, [
|
|
1788
|
+
u(h);
|
|
1789
|
+
}, [h.formattedValue]), [d, c];
|
|
1790
1790
|
}
|
|
1791
1791
|
function kc(n) {
|
|
1792
1792
|
return n.replace(/[^0-9]/g, "");
|
|
@@ -1805,10 +1805,10 @@ function Ic(n) {
|
|
|
1805
1805
|
s === void 0 && (s = kc);
|
|
1806
1806
|
var d = n.defaultValue, u = n.valueIsNumericString, c = n.onValueChange, f = n.isAllowed, m = n.onChange;
|
|
1807
1807
|
m === void 0 && (m = Ut);
|
|
1808
|
-
var
|
|
1809
|
-
p === void 0 && (p = Ut);
|
|
1810
|
-
var h = n.onMouseUp;
|
|
1808
|
+
var h = n.onKeyDown;
|
|
1811
1809
|
h === void 0 && (h = Ut);
|
|
1810
|
+
var p = n.onMouseUp;
|
|
1811
|
+
p === void 0 && (p = Ut);
|
|
1812
1812
|
var v = n.onFocus;
|
|
1813
1813
|
v === void 0 && (v = Ut);
|
|
1814
1814
|
var g = n.onBlur;
|
|
@@ -1849,7 +1849,7 @@ function Ic(n) {
|
|
|
1849
1849
|
J === void 0 && (J = "");
|
|
1850
1850
|
var Y = Z.input, ce = Z.source, le = Z.event, oe = Z.numAsString, ae;
|
|
1851
1851
|
if (Y) {
|
|
1852
|
-
var ge = Z.inputValue || Y.value, Se =
|
|
1852
|
+
var ge = Z.inputValue || Y.value, Se = kl(Y);
|
|
1853
1853
|
Y.value = J, ae = M(ge, J, Se), ae !== void 0 && j(Y, ae, J);
|
|
1854
1854
|
}
|
|
1855
1855
|
J !== k && $(B(J, oe), { event: le, source: ce });
|
|
@@ -1861,7 +1861,7 @@ function Ic(n) {
|
|
|
1861
1861
|
source: An.props
|
|
1862
1862
|
});
|
|
1863
1863
|
}, [k, D]);
|
|
1864
|
-
var W = O.current ?
|
|
1864
|
+
var W = O.current ? kl(O.current) : void 0, G = typeof window < "u" ? ss : me;
|
|
1865
1865
|
G(function() {
|
|
1866
1866
|
var Z = O.current;
|
|
1867
1867
|
if (k !== _.current.formattedValue && Z) {
|
|
@@ -1872,7 +1872,7 @@ function Ic(n) {
|
|
|
1872
1872
|
var q = function(Z, J, Y) {
|
|
1873
1873
|
var ce = J.target, le = I.current ? yc(I.current, ce.selectionEnd) : pa(k, Z), oe = Object.assign(Object.assign({}, le), { lastValue: k }), ae = s(Z, oe), ge = F(ae);
|
|
1874
1874
|
if (ae = s(ge, void 0), f && !f(B(ge, ae))) {
|
|
1875
|
-
var Se = J.target, _e =
|
|
1875
|
+
var Se = J.target, _e = kl(Se), Oe = M(Z, k, _e);
|
|
1876
1876
|
return Se.value = k, j(Se, Oe, k), !1;
|
|
1877
1877
|
}
|
|
1878
1878
|
return U({
|
|
@@ -1899,7 +1899,7 @@ function Ic(n) {
|
|
|
1899
1899
|
Y === "Delete" && ce === le && (ge = 1);
|
|
1900
1900
|
var Se = Y === "ArrowLeft" || Y === "ArrowRight";
|
|
1901
1901
|
if (ae === void 0 || ce !== le && !Se) {
|
|
1902
|
-
|
|
1902
|
+
h(Z), X(J, ge);
|
|
1903
1903
|
return;
|
|
1904
1904
|
}
|
|
1905
1905
|
var _e = ae;
|
|
@@ -1907,7 +1907,7 @@ function Ic(n) {
|
|
|
1907
1907
|
var Oe = Y === "ArrowLeft" ? "left" : "right";
|
|
1908
1908
|
_e = H(oe, ae, Oe), _e !== ae && Z.preventDefault();
|
|
1909
1909
|
} else Y === "Delete" && !C(oe[ae]) ? _e = H(oe, ae, "right") : Y === "Backspace" && !C(oe[ae]) && (_e = H(oe, ae, "left"));
|
|
1910
|
-
_e !== ae && j(J, _e, oe),
|
|
1910
|
+
_e !== ae && j(J, _e, oe), h(Z), X(J, ge);
|
|
1911
1911
|
}, se = function(Z) {
|
|
1912
1912
|
var J = Z.target, Y = function() {
|
|
1913
1913
|
var ce = J.selectionStart, le = J.selectionEnd, oe = J.value;
|
|
@@ -1918,7 +1918,7 @@ function Ic(n) {
|
|
|
1918
1918
|
};
|
|
1919
1919
|
Y(), requestAnimationFrame(function() {
|
|
1920
1920
|
Y();
|
|
1921
|
-
}),
|
|
1921
|
+
}), p(Z), X(J);
|
|
1922
1922
|
}, Q = function(Z) {
|
|
1923
1923
|
Z.persist && Z.persist();
|
|
1924
1924
|
var J = Z.target, Y = Z.currentTarget;
|
|
@@ -1955,10 +1955,10 @@ function Li(n, e) {
|
|
|
1955
1955
|
var a = e.allowNegative, s = e.thousandsGroupStyle;
|
|
1956
1956
|
if (s === void 0 && (s = "thousand"), n === "" || n === "-")
|
|
1957
1957
|
return n;
|
|
1958
|
-
var d =
|
|
1959
|
-
return t !== void 0 && (
|
|
1958
|
+
var d = yl(e), u = d.thousandSeparator, c = d.decimalSeparator, f = t !== 0 && n.indexOf(".") !== -1 || t && l, m = si(n, a), h = m.beforeDecimal, p = m.afterDecimal, v = m.addNegation;
|
|
1959
|
+
return t !== void 0 && (p = fa(p, t, !!l)), u && (h = hc(h, u, s)), i && (h = i + h), o && (p = p + o), v && (h = "-" + h), n = h + (f && c || "") + p, n;
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1961
|
+
function yl(n) {
|
|
1962
1962
|
var e = n.decimalSeparator;
|
|
1963
1963
|
e === void 0 && (e = ".");
|
|
1964
1964
|
var t = n.thousandSeparator, l = n.allowedDecimalSeparators;
|
|
@@ -1986,11 +1986,11 @@ function Lc(n, e, t) {
|
|
|
1986
1986
|
o === void 0 && (o = "");
|
|
1987
1987
|
var a = t.suffix;
|
|
1988
1988
|
a === void 0 && (a = "");
|
|
1989
|
-
var s = t.decimalScale, d = e.from, u = e.to, c = u.start, f = u.end, m =
|
|
1989
|
+
var s = t.decimalScale, d = e.from, u = e.to, c = u.start, f = u.end, m = yl(t), h = m.allowedDecimalSeparators, p = m.decimalSeparator, v = n[f] === p;
|
|
1990
1990
|
if (Rn(n) && (n === o || n === a) && e.lastValue === "")
|
|
1991
1991
|
return n;
|
|
1992
|
-
if (f - c === 1 &&
|
|
1993
|
-
var g = s === 0 ? "" :
|
|
1992
|
+
if (f - c === 1 && h.indexOf(n[c]) !== -1) {
|
|
1993
|
+
var g = s === 0 ? "" : p;
|
|
1994
1994
|
n = n.substring(0, c) + g + n.substring(c + 1, n.length);
|
|
1995
1995
|
}
|
|
1996
1996
|
var y = function(O, R, F) {
|
|
@@ -2005,9 +2005,9 @@ function Lc(n, e, t) {
|
|
|
2005
2005
|
var D = 0;
|
|
2006
2006
|
n.startsWith(o) ? D += o.length : c < o.length && (D = c), n = n.substring(D), f -= D;
|
|
2007
2007
|
var L = n.length, I = n.length - a.length;
|
|
2008
|
-
n.endsWith(a) ? L = I : (f > I || f > n.length - a.length) && (L = f), n = n.substring(0, L), n = Dc(C ? "-" + n : n, i), n = (n.match(Tc(
|
|
2009
|
-
var _ = n.indexOf(
|
|
2010
|
-
n = n.replace(new RegExp(ua(
|
|
2008
|
+
n.endsWith(a) ? L = I : (f > I || f > n.length - a.length) && (L = f), n = n.substring(0, L), n = Dc(C ? "-" + n : n, i), n = (n.match(Tc(p)) || []).join("");
|
|
2009
|
+
var _ = n.indexOf(p);
|
|
2010
|
+
n = n.replace(new RegExp(ua(p), "g"), function(O, R) {
|
|
2011
2011
|
return R === _ ? "." : "";
|
|
2012
2012
|
});
|
|
2013
2013
|
var $ = si(n, i), E = $.beforeDecimal, A = $.afterDecimal, P = $.addNegation;
|
|
@@ -2026,7 +2026,7 @@ function Ec(n, e) {
|
|
|
2026
2026
|
return i.fill(!1, a - l.length + 1, a + 1), i;
|
|
2027
2027
|
}
|
|
2028
2028
|
function Oc(n) {
|
|
2029
|
-
var e =
|
|
2029
|
+
var e = yl(n), t = e.thousandSeparator, l = e.decimalSeparator, i = n.prefix;
|
|
2030
2030
|
i === void 0 && (i = "");
|
|
2031
2031
|
var o = n.allowNegative;
|
|
2032
2032
|
if (o === void 0 && (o = !0), t === l)
|
|
@@ -2049,7 +2049,7 @@ function Pc(n) {
|
|
|
2049
2049
|
o === void 0 && (o = Ut);
|
|
2050
2050
|
var a = n.thousandSeparator, s = n.decimalScale, d = n.fixedDecimalScale, u = n.prefix;
|
|
2051
2051
|
u === void 0 && (u = "");
|
|
2052
|
-
var c = n.defaultValue, f = n.value, m = n.valueIsNumericString,
|
|
2052
|
+
var c = n.defaultValue, f = n.value, m = n.valueIsNumericString, h = n.onValueChange, p = ca(n, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), v = yl(n), g = v.decimalSeparator, y = v.allowedDecimalSeparators, S = function(P) {
|
|
2053
2053
|
return Li(P, n);
|
|
2054
2054
|
}, C = function(P, O) {
|
|
2055
2055
|
return Lc(P, O, n);
|
|
@@ -2057,7 +2057,7 @@ function Pc(n) {
|
|
|
2057
2057
|
yn(f) ? yn(c) || (b = b || typeof c == "number") : b = b || typeof f == "number";
|
|
2058
2058
|
var w = function(P) {
|
|
2059
2059
|
return da(P) ? P : (typeof P == "number" && (P = ma(P)), b && typeof s == "number" ? Ti(P, s, !!d) : P);
|
|
2060
|
-
}, N = ha(w(f), w(c), !!b, S, C,
|
|
2060
|
+
}, N = ha(w(f), w(c), !!b, S, C, h), k = N[0], D = k.numAsString, L = k.formattedValue, I = N[1], _ = function(P) {
|
|
2061
2061
|
var O = P.target, R = P.key, F = O.selectionStart, B = O.selectionEnd, j = O.value;
|
|
2062
2062
|
if (j === void 0 && (j = ""), (R === "Backspace" || R === "Delete") && B < u.length) {
|
|
2063
2063
|
P.preventDefault();
|
|
@@ -2092,7 +2092,7 @@ function Pc(n) {
|
|
|
2092
2092
|
};
|
|
2093
2093
|
return f === 0 && d && s && O[W.start] === g && G(O) < B && G(F) > j ? !1 : B >= W.start && B < W.end && y && y.includes(H) && M === g ? !0 : H === M;
|
|
2094
2094
|
};
|
|
2095
|
-
return Object.assign(Object.assign({},
|
|
2095
|
+
return Object.assign(Object.assign({}, p), {
|
|
2096
2096
|
value: L,
|
|
2097
2097
|
valueIsNumericString: !1,
|
|
2098
2098
|
isValidInputCharacter: E,
|
|
@@ -2125,8 +2125,8 @@ const Ac = ({
|
|
|
2125
2125
|
showClearIcon: c,
|
|
2126
2126
|
clearValue: f,
|
|
2127
2127
|
className: m,
|
|
2128
|
-
step:
|
|
2129
|
-
noSelectOnFocus:
|
|
2128
|
+
step: h,
|
|
2129
|
+
noSelectOnFocus: p,
|
|
2130
2130
|
decimalScale: v,
|
|
2131
2131
|
fixedDecimalScale: g = !1,
|
|
2132
2132
|
numberPrefix: y,
|
|
@@ -2161,10 +2161,10 @@ const Ac = ({
|
|
|
2161
2161
|
!t || e === null || (x !== void 0 && e > x && t(x), C !== void 0 && e < C && t(C));
|
|
2162
2162
|
}, [e, x, C, t]), /* @__PURE__ */ T(n, { withoutLabel: o, label: i ?? "", hidden: d, className: m, hint: b, disabled: u, children: [
|
|
2163
2163
|
/* @__PURE__ */ r(ci, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: v, fixedDecimalScale: g, prefix: y, suffix: S, defaultValue: "", value: l ? k : (e == null ? void 0 : e.toString()) ?? "", placeholder: a ?? i, onFocus: (_) => {
|
|
2164
|
-
!
|
|
2164
|
+
!p && _.target.select();
|
|
2165
2165
|
}, onChange: I, hidden: d, disabled: u, className: z("form-control text-end w-100", {
|
|
2166
2166
|
[`form-control-${s}`]: s
|
|
2167
|
-
}), step:
|
|
2167
|
+
}), step: h, min: C, max: x }),
|
|
2168
2168
|
c && e !== null && t && !u && /* @__PURE__ */ r("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r(ve, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ r(Gt, {}) }) })
|
|
2169
2169
|
] });
|
|
2170
2170
|
}, Rc = (n) => {
|
|
@@ -2182,7 +2182,7 @@ const Ac = ({
|
|
|
2182
2182
|
e[0] !== u ? (f = (y) => {
|
|
2183
2183
|
u && u(y.target.value);
|
|
2184
2184
|
}, e[0] = u, e[1] = f) : f = e[1];
|
|
2185
|
-
const m = f,
|
|
2185
|
+
const m = f, h = !l, p = `${l}`;
|
|
2186
2186
|
let v;
|
|
2187
2187
|
if (e[2] !== o || e[3] !== m || e[4] !== a || e[5] !== i || e[6] !== d) {
|
|
2188
2188
|
let y;
|
|
@@ -2190,7 +2190,7 @@ const Ac = ({
|
|
|
2190
2190
|
} else
|
|
2191
2191
|
v = e[7];
|
|
2192
2192
|
let g;
|
|
2193
|
-
return e[13] !== c || e[14] !== s || e[15] !== o || e[16] !== a || e[17] !==
|
|
2193
|
+
return e[13] !== c || e[14] !== s || e[15] !== o || e[16] !== a || e[17] !== h || e[18] !== p || e[19] !== v ? (g = /* @__PURE__ */ r(c, { isForRadioInput: !0, hidden: a, withoutLabel: h, label: p, className: s, disabled: o, children: v }), e[13] = c, e[14] = s, e[15] = o, e[16] = a, e[17] = h, e[18] = p, e[19] = v, e[20] = g) : g = e[20], g;
|
|
2194
2194
|
}, wh = (n) => {
|
|
2195
2195
|
const e = V.c(41), {
|
|
2196
2196
|
InputContainer: t,
|
|
@@ -2204,8 +2204,8 @@ const Ac = ({
|
|
|
2204
2204
|
withoutLabel: c,
|
|
2205
2205
|
hint: f,
|
|
2206
2206
|
onChange: m,
|
|
2207
|
-
className:
|
|
2208
|
-
} = n,
|
|
2207
|
+
className: h
|
|
2208
|
+
} = n, p = t === void 0 ? Xe : t, {
|
|
2209
2209
|
control: v,
|
|
2210
2210
|
setValue: g
|
|
2211
2211
|
} = fn(), {
|
|
@@ -2257,10 +2257,10 @@ const Ac = ({
|
|
|
2257
2257
|
let ie;
|
|
2258
2258
|
e[27] !== D ? (ie = D && /* @__PURE__ */ r(cn, { message: D.message }), e[27] = D, e[28] = ie) : ie = e[28];
|
|
2259
2259
|
let te;
|
|
2260
|
-
return e[29] !==
|
|
2260
|
+
return e[29] !== p || e[30] !== A || e[31] !== h || e[32] !== d || e[33] !== f || e[34] !== R || e[35] !== s || e[36] !== X || e[37] !== ie || e[38] !== M || e[39] !== c ? (te = /* @__PURE__ */ T(p, { isForCheckInput: !0, hidden: d, label: M, required: s, disabled: A, isInvalid: R, withoutLabel: c, hint: f, className: h, children: [
|
|
2261
2261
|
X,
|
|
2262
2262
|
ie
|
|
2263
|
-
] }), e[29] =
|
|
2263
|
+
] }), e[29] = p, e[30] = A, e[31] = h, e[32] = d, e[33] = f, e[34] = R, e[35] = s, e[36] = X, e[37] = ie, e[38] = M, e[39] = c, e[40] = te) : te = e[40], te;
|
|
2264
2264
|
}, xh = (n) => {
|
|
2265
2265
|
const e = V.c(45), {
|
|
2266
2266
|
InputContainer: t,
|
|
@@ -2274,8 +2274,8 @@ const Ac = ({
|
|
|
2274
2274
|
onChange: c,
|
|
2275
2275
|
className: f
|
|
2276
2276
|
} = n, m = t === void 0 ? Xe : t, {
|
|
2277
|
-
control:
|
|
2278
|
-
setValue:
|
|
2277
|
+
control: h,
|
|
2278
|
+
setValue: p
|
|
2279
2279
|
} = fn(), {
|
|
2280
2280
|
isSubmitted: v
|
|
2281
2281
|
} = mn();
|
|
@@ -2285,10 +2285,10 @@ const Ac = ({
|
|
|
2285
2285
|
}, e[0] = g) : g = e[0];
|
|
2286
2286
|
const y = Bt(g);
|
|
2287
2287
|
let S;
|
|
2288
|
-
e[1] !==
|
|
2288
|
+
e[1] !== h || e[2] !== i ? (S = {
|
|
2289
2289
|
name: i,
|
|
2290
|
-
control:
|
|
2291
|
-
}, e[1] =
|
|
2290
|
+
control: h
|
|
2291
|
+
}, e[1] = h, e[2] = i, e[3] = S) : S = e[3];
|
|
2292
2292
|
const {
|
|
2293
2293
|
field: C,
|
|
2294
2294
|
fieldState: x
|
|
@@ -2307,12 +2307,12 @@ const Ac = ({
|
|
|
2307
2307
|
}, P = [v], e[4] = v, e[5] = A, e[6] = P) : (A = e[5], P = e[6]), me(A, P);
|
|
2308
2308
|
const O = L !== void 0;
|
|
2309
2309
|
let R;
|
|
2310
|
-
e[7] !== w || e[8] !== c || e[9] !== a || e[10] !==
|
|
2311
|
-
w(W), a && a.forEach((G) =>
|
|
2310
|
+
e[7] !== w || e[8] !== c || e[9] !== a || e[10] !== p || e[11] !== I ? (R = (W) => {
|
|
2311
|
+
w(W), a && a.forEach((G) => p(G, null, {
|
|
2312
2312
|
shouldDirty: !0,
|
|
2313
2313
|
shouldValidate: I
|
|
2314
2314
|
})), c && c(W === null ? null : W.toString());
|
|
2315
|
-
}, e[7] = w, e[8] = c, e[9] = a, e[10] =
|
|
2315
|
+
}, e[7] = w, e[8] = c, e[9] = a, e[10] = p, e[11] = I, e[12] = R) : R = e[12];
|
|
2316
2316
|
const F = R, B = !l, j = l ?? "";
|
|
2317
2317
|
let H;
|
|
2318
2318
|
if (e[13] !== E || e[14] !== D || e[15] !== N || e[16] !== k || e[17] !== b || e[18] !== F || e[19] !== u || e[20] !== O || e[21] !== $) {
|
|
@@ -2346,18 +2346,18 @@ const Ac = ({
|
|
|
2346
2346
|
e[10] !== o ? (m = {
|
|
2347
2347
|
name: o
|
|
2348
2348
|
}, e[10] = o, e[11] = m) : m = e[11];
|
|
2349
|
-
const
|
|
2350
|
-
let
|
|
2351
|
-
e[12] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2349
|
+
const h = En(m);
|
|
2350
|
+
let p;
|
|
2351
|
+
e[12] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
2352
2352
|
falseIfNotInit: !0
|
|
2353
|
-
}, e[12] =
|
|
2354
|
-
const v = Bt(
|
|
2353
|
+
}, e[12] = p) : p = e[12];
|
|
2354
|
+
const v = Bt(p), g = i || v;
|
|
2355
2355
|
if (a)
|
|
2356
2356
|
return null;
|
|
2357
2357
|
let y;
|
|
2358
2358
|
e[13] !== f || e[14] !== g || e[15] !== o || e[16] !== d ? (y = /* @__PURE__ */ r(Sn, { type: "text", formField: o, InputContainer: f, size: "sm", withoutLabel: !0, className: "flex-grow-1", disabled: g, ...d }), e[13] = f, e[14] = g, e[15] = o, e[16] = d, e[17] = y) : y = e[17];
|
|
2359
2359
|
let S;
|
|
2360
|
-
return e[18] !== t || e[19] !== l || e[20] !== s || e[21] !== y || e[22] !==
|
|
2360
|
+
return e[18] !== t || e[19] !== l || e[20] !== s || e[21] !== y || e[22] !== h || e[23] !== c ? (S = /* @__PURE__ */ r(sa, { contactType: l, value: h, withoutLabel: c, label: s, className: t, children: y }), e[18] = t, e[19] = l, e[20] = s, e[21] = y, e[22] = h, e[23] = c, e[24] = S) : S = e[24], S;
|
|
2361
2361
|
}, Nh = ({
|
|
2362
2362
|
InputContainer: n = Xe,
|
|
2363
2363
|
formField: e,
|
|
@@ -2372,8 +2372,8 @@ const Ac = ({
|
|
|
2372
2372
|
items: c,
|
|
2373
2373
|
onSearchQueryChange: f,
|
|
2374
2374
|
selectedItemNavigateTo: m,
|
|
2375
|
-
texts:
|
|
2376
|
-
dropdownItemsNameWidth:
|
|
2375
|
+
texts: h,
|
|
2376
|
+
dropdownItemsNameWidth: p,
|
|
2377
2377
|
isLoading: v,
|
|
2378
2378
|
withoutLabel: g,
|
|
2379
2379
|
additionalColumns: y,
|
|
@@ -2462,7 +2462,7 @@ const Ac = ({
|
|
|
2462
2462
|
] }) : null
|
|
2463
2463
|
] }),
|
|
2464
2464
|
H && /* @__PURE__ */ r(cn, { message: H.message }),
|
|
2465
|
-
he.current && /* @__PURE__ */ r(Zl, { show: M, onCancel: de, items: c, currentSelection: te, onSelectionChange: Q, onSearchQueryChange: f, texts:
|
|
2465
|
+
he.current && /* @__PURE__ */ r(Zl, { show: M, onCancel: de, items: c, currentSelection: te, onSelectionChange: Q, onSearchQueryChange: f, texts: h, itemsNameWidth: p, additionalColumns: y, displayIdAsName: x, isLoading: v, disabled: J, inputRef: he, archiveColumn: N, addNewOptionPath: D, refreshOptions: L, suggestedItems: $, suggestedItemsTitle: E })
|
|
2466
2466
|
] }) });
|
|
2467
2467
|
}, kh = (n) => {
|
|
2468
2468
|
const e = V.c(51), {
|
|
@@ -2477,8 +2477,8 @@ const Ac = ({
|
|
|
2477
2477
|
resetsFields: c,
|
|
2478
2478
|
multiple: f,
|
|
2479
2479
|
accept: m,
|
|
2480
|
-
withoutLabel:
|
|
2481
|
-
hint:
|
|
2480
|
+
withoutLabel: h,
|
|
2481
|
+
hint: p,
|
|
2482
2482
|
className: v
|
|
2483
2483
|
} = n, g = t === void 0 ? Xe : t, {
|
|
2484
2484
|
control: y,
|
|
@@ -2547,11 +2547,11 @@ const Ac = ({
|
|
|
2547
2547
|
let Q;
|
|
2548
2548
|
e[36] !== _ ? (Q = _ && /* @__PURE__ */ r(cn, { message: _.message }), e[36] = _, e[37] = Q) : Q = e[37];
|
|
2549
2549
|
let de;
|
|
2550
|
-
return e[38] !== g || e[39] !== H || e[40] !== v || e[41] !== o || e[42] !==
|
|
2550
|
+
return e[38] !== g || e[39] !== H || e[40] !== v || e[41] !== o || e[42] !== p || e[43] !== M || e[44] !== a || e[45] !== G || e[46] !== te || e[47] !== se || e[48] !== Q || e[49] !== h ? (de = /* @__PURE__ */ T(g, { label: G, required: a, disabled: H, hidden: o, withoutLabel: h, isInvalid: M, hint: p, className: v, children: [
|
|
2551
2551
|
te,
|
|
2552
2552
|
se,
|
|
2553
2553
|
Q
|
|
2554
|
-
] }), e[38] = g, e[39] = H, e[40] = v, e[41] = o, e[42] =
|
|
2554
|
+
] }), e[38] = g, e[39] = H, e[40] = v, e[41] = o, e[42] = p, e[43] = M, e[44] = a, e[45] = G, e[46] = te, e[47] = se, e[48] = Q, e[49] = h, e[50] = de) : de = e[50], de;
|
|
2555
2555
|
}, Mc = (n) => {
|
|
2556
2556
|
const e = V.c(7), {
|
|
2557
2557
|
children: t,
|
|
@@ -2579,8 +2579,8 @@ const Ac = ({
|
|
|
2579
2579
|
withoutLabel: c,
|
|
2580
2580
|
noSortOptions: f,
|
|
2581
2581
|
suffixIdToName: m,
|
|
2582
|
-
onSelect:
|
|
2583
|
-
className:
|
|
2582
|
+
onSelect: h,
|
|
2583
|
+
className: p,
|
|
2584
2584
|
appendCurrentSelectionWithName: v,
|
|
2585
2585
|
hint: g,
|
|
2586
2586
|
addNewOptionPath: y,
|
|
@@ -2615,7 +2615,7 @@ const Ac = ({
|
|
|
2615
2615
|
control: k
|
|
2616
2616
|
}), [P, O] = ee(!1), [R, F] = ee(!1), [B, j] = ee(""), H = _, M = Re(() => e.find((Q) => Q.id === H) ?? null, [e, H]), U = ke((Q) => {
|
|
2617
2617
|
if ((Q == null ? void 0 : Q.id) === H) return;
|
|
2618
|
-
if (
|
|
2618
|
+
if (h && h(Q), o && o.forEach((he) => D(he, null, {
|
|
2619
2619
|
shouldDirty: !0,
|
|
2620
2620
|
shouldValidate: R
|
|
2621
2621
|
})), Q === null) {
|
|
@@ -2630,7 +2630,7 @@ const Ac = ({
|
|
|
2630
2630
|
shouldDirty: !0,
|
|
2631
2631
|
shouldValidate: R
|
|
2632
2632
|
});
|
|
2633
|
-
}, [D, t, a, o, H, R,
|
|
2633
|
+
}, [D, t, a, o, H, R, h]), W = ke((Q) => {
|
|
2634
2634
|
O(!1), U(Q);
|
|
2635
2635
|
}, [U]), G = ke((Q) => {
|
|
2636
2636
|
j(Q);
|
|
@@ -2653,7 +2653,7 @@ const Ac = ({
|
|
|
2653
2653
|
}, [e, f, B, X, v, H]), te = Be(null), se = A !== void 0;
|
|
2654
2654
|
return /* @__PURE__ */ r(pe, { children: /* @__PURE__ */ T(n, { label: l ?? "", required: s, disabled: q, hidden: d, withoutLabel: c, isInvalid: se, inputContainerClassName: z({
|
|
2655
2655
|
"luminus-dropdown-select-open": P
|
|
2656
|
-
}), hint: g, className:
|
|
2656
|
+
}), hint: g, className: p, children: [
|
|
2657
2657
|
/* @__PURE__ */ T(Ql, { currentSelection: M, selectedItemNavigateTo: b, children: [
|
|
2658
2658
|
/* @__PURE__ */ r("input", { type: "hidden", name: E, value: _ ?? "", ref: $ }),
|
|
2659
2659
|
/* @__PURE__ */ r(Xl, { value: H, MiniDetailComponent: C, miniDetailPlacement: x, children: /* @__PURE__ */ r(Pe.Select, { size: i, onMouseDown: (Q) => {
|
|
@@ -2679,8 +2679,8 @@ const Ac = ({
|
|
|
2679
2679
|
required: c,
|
|
2680
2680
|
hidden: f,
|
|
2681
2681
|
disabled: m,
|
|
2682
|
-
withoutLabel:
|
|
2683
|
-
step:
|
|
2682
|
+
withoutLabel: h,
|
|
2683
|
+
step: p,
|
|
2684
2684
|
stepperStep: v,
|
|
2685
2685
|
className: g,
|
|
2686
2686
|
min: y,
|
|
@@ -2744,7 +2744,7 @@ const Ac = ({
|
|
|
2744
2744
|
}, e[16] = P, e[17] = S, e[18] = y, e[19] = C, e[20] = s, e[21] = k, e[22] = j, e[23] = se) : se = e[23];
|
|
2745
2745
|
const Q = se, de = i ?? "", he = o ?? i, ye = A ?? "";
|
|
2746
2746
|
let we;
|
|
2747
|
-
e[24] !== q || e[25] !== F || e[26] !== O || e[27] !== R || e[28] !== Q || e[29] !== f || e[30] !== te || e[31] !== S || e[32] !== y || e[33] !== a || e[34] !==
|
|
2747
|
+
e[24] !== q || e[25] !== F || e[26] !== O || e[27] !== R || e[28] !== Q || e[29] !== f || e[30] !== te || e[31] !== S || e[32] !== y || e[33] !== a || e[34] !== p || e[35] !== he || e[36] !== ye ? (we = /* @__PURE__ */ r(Pe.Control, { type: "number", placeholder: he, size: a, name: F, value: ye, onChange: Q, onBlur: O, ref: R, isInvalid: te, hidden: f, disabled: q, className: "w-100 luminus-numeric-stepper", step: p, min: y, max: S }), e[24] = q, e[25] = F, e[26] = O, e[27] = R, e[28] = Q, e[29] = f, e[30] = te, e[31] = S, e[32] = y, e[33] = a, e[34] = p, e[35] = he, e[36] = ye, e[37] = we) : we = e[37];
|
|
2748
2748
|
let Z;
|
|
2749
2749
|
e[38] !== m || e[39] !== A || e[40] !== l || e[41] !== U || e[42] !== j || e[43] !== w ? (Z = !m && /* @__PURE__ */ r(ve, { size: "sm", onClick: (Se) => {
|
|
2750
2750
|
Se.preventDefault(), Se.stopPropagation();
|
|
@@ -2778,11 +2778,11 @@ const Ac = ({
|
|
|
2778
2778
|
let ae;
|
|
2779
2779
|
e[64] !== B ? (ae = B && /* @__PURE__ */ r(cn, { message: B.message }), e[64] = B, e[65] = ae) : ae = e[65];
|
|
2780
2780
|
let ge;
|
|
2781
|
-
return e[66] !== b || e[67] !== q || e[68] !== g || e[69] !== f || e[70] !== x || e[71] !== te || e[72] !== c || e[73] !== de || e[74] !== le || e[75] !== oe || e[76] !== ae || e[77] !==
|
|
2781
|
+
return e[66] !== b || e[67] !== q || e[68] !== g || e[69] !== f || e[70] !== x || e[71] !== te || e[72] !== c || e[73] !== de || e[74] !== le || e[75] !== oe || e[76] !== ae || e[77] !== h ? (ge = /* @__PURE__ */ T(b, { label: de, required: c, disabled: q, hidden: f, withoutLabel: h, isInvalid: te, hint: x, className: g, children: [
|
|
2782
2782
|
le,
|
|
2783
2783
|
oe,
|
|
2784
2784
|
ae
|
|
2785
|
-
] }), e[66] = b, e[67] = q, e[68] = g, e[69] = f, e[70] = x, e[71] = te, e[72] = c, e[73] = de, e[74] = le, e[75] = oe, e[76] = ae, e[77] =
|
|
2785
|
+
] }), e[66] = b, e[67] = q, e[68] = g, e[69] = f, e[70] = x, e[71] = te, e[72] = c, e[73] = de, e[74] = le, e[75] = oe, e[76] = ae, e[77] = h, e[78] = ge) : ge = e[78], ge;
|
|
2786
2786
|
}, Ih = ({
|
|
2787
2787
|
InputContainer: n = Xe,
|
|
2788
2788
|
formField: e,
|
|
@@ -2797,8 +2797,8 @@ const Ac = ({
|
|
|
2797
2797
|
withoutLabel: c,
|
|
2798
2798
|
step: f,
|
|
2799
2799
|
size: m,
|
|
2800
|
-
CustomOnChangeComponent:
|
|
2801
|
-
noSelectOnFocus:
|
|
2800
|
+
CustomOnChangeComponent: h,
|
|
2801
|
+
noSelectOnFocus: p,
|
|
2802
2802
|
className: v,
|
|
2803
2803
|
decimalScale: g = 2,
|
|
2804
2804
|
fixedDecimalScale: y = !1,
|
|
@@ -2848,7 +2848,7 @@ const Ac = ({
|
|
|
2848
2848
|
return /* @__PURE__ */ T(n, { label: t ?? "", required: s, disabled: j, hidden: d, withoutLabel: c, isInvalid: M, hint: N, className: v, children: [
|
|
2849
2849
|
/* @__PURE__ */ T("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
2850
2850
|
/* @__PURE__ */ r(ci, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: g, fixedDecimalScale: y, prefix: S, suffix: C, defaultValue: "", name: P, value: _ ?? "", placeholder: l ?? t, onFocus: (U) => {
|
|
2851
|
-
!
|
|
2851
|
+
!p && U.target.select();
|
|
2852
2852
|
}, onChange: (U) => {
|
|
2853
2853
|
var q, X;
|
|
2854
2854
|
const W = parseFloat(((X = (q = U.target) == null ? void 0 : q.value) == null ? void 0 : X.replaceAll(" ", "").replaceAll(",", ".")) ?? "0");
|
|
@@ -2863,7 +2863,7 @@ const Ac = ({
|
|
|
2863
2863
|
}, {
|
|
2864
2864
|
[`form-control-${m}`]: m
|
|
2865
2865
|
}), step: f, getInputRef: A, min: x, max: b }),
|
|
2866
|
-
|
|
2866
|
+
h && /* @__PURE__ */ r("div", { className: "custom-picker-button", children: h })
|
|
2867
2867
|
] }),
|
|
2868
2868
|
o && H != null && /* @__PURE__ */ r("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r(ve, { color: "secondary", size: "sm", onClick: B, children: /* @__PURE__ */ r(Gt, {}) }) }),
|
|
2869
2869
|
O && /* @__PURE__ */ r(cn, { message: O.message })
|
|
@@ -2951,9 +2951,9 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
2951
2951
|
texts: {
|
|
2952
2952
|
reports: d
|
|
2953
2953
|
}
|
|
2954
|
-
} = ne(ue), [u, c] = ee(!1), f = Be(null), m = t ?? f,
|
|
2954
|
+
} = ne(ue), [u, c] = ee(!1), f = Be(null), m = t ?? f, h = Re(() => ({
|
|
2955
2955
|
localization: l
|
|
2956
|
-
}), [l]),
|
|
2956
|
+
}), [l]), p = ke((b) => {
|
|
2957
2957
|
const w = b.find((k) => k.id === "fm-tab-export");
|
|
2958
2958
|
if ((w == null ? void 0 : w.menu) == null || m.current == null) return b;
|
|
2959
2959
|
const N = w.menu.find((k) => k.id === "fm-tab-export-pdf");
|
|
@@ -2964,7 +2964,7 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
2964
2964
|
});
|
|
2965
2965
|
}), b;
|
|
2966
2966
|
}, [m]), v = ke((b) => {
|
|
2967
|
-
b =
|
|
2967
|
+
b = p(b), delete b[0], delete b[1], delete b[2];
|
|
2968
2968
|
const w = [{
|
|
2969
2969
|
id: "fm-tab-expand",
|
|
2970
2970
|
title: d.expandAll,
|
|
@@ -2983,7 +2983,7 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
2983
2983
|
menu: w,
|
|
2984
2984
|
rightGroup: !0
|
|
2985
2985
|
}), b;
|
|
2986
|
-
}, [m, d.collapseAll, d.expand, d.expandAll,
|
|
2986
|
+
}, [m, d.collapseAll, d.expand, d.expandAll, p]), g = (b) => {
|
|
2987
2987
|
const w = b.getTabs();
|
|
2988
2988
|
b.getTabs = () => v(w);
|
|
2989
2989
|
}, y = Re(() => n && n.mapping ? Object.values(n.mapping).filter((b) => b.caption.includes("P:")).map((b) => ({
|
|
@@ -3084,7 +3084,7 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
3084
3084
|
gs,
|
|
3085
3085
|
{
|
|
3086
3086
|
ref: m,
|
|
3087
|
-
global:
|
|
3087
|
+
global: h,
|
|
3088
3088
|
licenseKey: i,
|
|
3089
3089
|
toolbar: !0,
|
|
3090
3090
|
height: "100%",
|
|
@@ -3121,7 +3121,7 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
3121
3121
|
} finally {
|
|
3122
3122
|
c("report-versionSavingAs");
|
|
3123
3123
|
}
|
|
3124
|
-
}, [f, l, s, i.saveSuccessful, u, c]),
|
|
3124
|
+
}, [f, l, s, i.saveSuccessful, u, c]), h = ke(async () => {
|
|
3125
3125
|
if (t === null) {
|
|
3126
3126
|
f("none open", "warning");
|
|
3127
3127
|
return;
|
|
@@ -3134,7 +3134,7 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
3134
3134
|
reportVersionId: t,
|
|
3135
3135
|
settings: S
|
|
3136
3136
|
});
|
|
3137
|
-
}, [f, a, e, n, i.confirmOverwriteSave, m, t]),
|
|
3137
|
+
}, [f, a, e, n, i.confirmOverwriteSave, m, t]), p = ke(async () => {
|
|
3138
3138
|
const y = await o(i.enterName, {
|
|
3139
3139
|
input: "input",
|
|
3140
3140
|
required: !0
|
|
@@ -3173,8 +3173,8 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
3173
3173
|
}
|
|
3174
3174
|
}, [f, s, i.detachSuccessful, t, u, c, d.personalNumber]);
|
|
3175
3175
|
return {
|
|
3176
|
-
saveAs:
|
|
3177
|
-
save:
|
|
3176
|
+
saveAs: p,
|
|
3177
|
+
save: h,
|
|
3178
3178
|
archive: v,
|
|
3179
3179
|
detach: g
|
|
3180
3180
|
};
|
|
@@ -3216,8 +3216,8 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
3216
3216
|
reports: c
|
|
3217
3217
|
} = u, {
|
|
3218
3218
|
confirm: f
|
|
3219
|
-
} = jt(), [m,
|
|
3220
|
-
changeEmployeeRights:
|
|
3219
|
+
} = jt(), [m, h] = ee(null), {
|
|
3220
|
+
changeEmployeeRights: p
|
|
3221
3221
|
} = Vc(o);
|
|
3222
3222
|
let v;
|
|
3223
3223
|
e[0] !== s ? (v = (R) => {
|
|
@@ -3228,20 +3228,20 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
3228
3228
|
}, e[0] = s, e[1] = v) : v = e[1];
|
|
3229
3229
|
const g = v;
|
|
3230
3230
|
let y;
|
|
3231
|
-
e[2] !== m || e[3] !==
|
|
3231
|
+
e[2] !== m || e[3] !== p || e[4] !== g ? (y = async () => {
|
|
3232
3232
|
if (m === null)
|
|
3233
3233
|
return;
|
|
3234
|
-
const R = await
|
|
3235
|
-
g(R),
|
|
3236
|
-
}, e[2] = m, e[3] =
|
|
3234
|
+
const R = await p(m.id, !0);
|
|
3235
|
+
g(R), h(null);
|
|
3236
|
+
}, e[2] = m, e[3] = p, e[4] = g, e[5] = y) : y = e[5];
|
|
3237
3237
|
const S = y;
|
|
3238
3238
|
let C;
|
|
3239
|
-
e[6] !==
|
|
3239
|
+
e[6] !== p || e[7] !== f || e[8] !== c || e[9] !== g ? (C = async (R) => {
|
|
3240
3240
|
if (!await f(c.removeSharingWith(R)))
|
|
3241
3241
|
return;
|
|
3242
|
-
const B = await
|
|
3242
|
+
const B = await p(R, !1);
|
|
3243
3243
|
g(B);
|
|
3244
|
-
}, e[6] =
|
|
3244
|
+
}, e[6] = p, e[7] = f, e[8] = c, e[9] = g, e[10] = C) : C = e[10];
|
|
3245
3245
|
const x = C;
|
|
3246
3246
|
let b;
|
|
3247
3247
|
e[11] !== c.reportSharing ? (b = /* @__PURE__ */ r(Te.Header, { closeButton: !0, children: /* @__PURE__ */ r(Te.Title, { children: c.reportSharing }) }), e[11] = c.reportSharing, e[12] = b) : b = e[12];
|
|
@@ -3250,7 +3250,7 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
3250
3250
|
let N;
|
|
3251
3251
|
e[15] !== c.noone || e[16] !== i ? (N = i && i.length === 0 ? /* @__PURE__ */ r("div", { className: "px-2 text-muted", children: c.noone.toLowerCase() }) : null, e[15] = c.noone, e[16] = i, e[17] = N) : N = e[17];
|
|
3252
3252
|
let k;
|
|
3253
|
-
e[18] !== d || e[19] !== x || e[20] !== i ? (k = i == null ? void 0 : i.map((R) => /* @__PURE__ */ T(
|
|
3253
|
+
e[18] !== d || e[19] !== x || e[20] !== i ? (k = i == null ? void 0 : i.map((R) => /* @__PURE__ */ T(cl, { className: "d-flex justify-content-between align-items-center gap-3 border-bottom px-2 py-1", children: [
|
|
3254
3254
|
R.lastName,
|
|
3255
3255
|
" ",
|
|
3256
3256
|
R.firstName,
|
|
@@ -3269,10 +3269,10 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
3269
3269
|
let I;
|
|
3270
3270
|
e[27] === Symbol.for("react.memo_cache_sentinel") ? (I = (R) => {
|
|
3271
3271
|
if (R === null || typeof R.id != "number") {
|
|
3272
|
-
|
|
3272
|
+
h(null);
|
|
3273
3273
|
return;
|
|
3274
3274
|
}
|
|
3275
|
-
|
|
3275
|
+
h(R);
|
|
3276
3276
|
}, e[27] = I) : I = e[27];
|
|
3277
3277
|
let _;
|
|
3278
3278
|
e[28] !== a || e[29] !== m || e[30] !== c.shareWith ? (_ = /* @__PURE__ */ r("div", { className: "flex-grow-1", children: /* @__PURE__ */ r(a, { label: c.shareWith, onSelect: I, value: m }) }), e[28] = a, e[29] = m, e[30] = c.shareWith, e[31] = _) : _ = e[31];
|
|
@@ -3329,14 +3329,14 @@ const Gc = (n, e) => {
|
|
|
3329
3329
|
localizationJsonFile: c,
|
|
3330
3330
|
localizationTransformer: f,
|
|
3331
3331
|
hyperlinkColumn: m,
|
|
3332
|
-
roomPasportization:
|
|
3333
|
-
} = n,
|
|
3332
|
+
roomPasportization: h
|
|
3333
|
+
} = n, p = h === void 0 ? !1 : h, {
|
|
3334
3334
|
texts: v
|
|
3335
3335
|
} = ne(ue), {
|
|
3336
3336
|
reports: g
|
|
3337
3337
|
} = v, {
|
|
3338
3338
|
confirm: y
|
|
3339
|
-
} = jt(), S =
|
|
3339
|
+
} = jt(), S = pl(), [C] = ps(), {
|
|
3340
3340
|
id: x
|
|
3341
3341
|
} = jo(), b = x === void 0 ? null : Number(x);
|
|
3342
3342
|
let w;
|
|
@@ -3510,7 +3510,7 @@ const Gc = (n, e) => {
|
|
|
3510
3510
|
e[120] !== $t ? (pt = z("h-100 w-100", $t), e[120] = $t, e[121] = pt) : pt = e[121];
|
|
3511
3511
|
const Lt = ye.data && ye.data.length > 0;
|
|
3512
3512
|
let ht;
|
|
3513
|
-
e[122] !== ye || e[123] !== m || e[124] !== d || e[125] !== s || e[126] !==
|
|
3513
|
+
e[122] !== ye || e[123] !== m || e[124] !== d || e[125] !== s || e[126] !== p || e[127] !== A || e[128] !== Lt ? (ht = /* @__PURE__ */ r(zc, { dataSource: ye, settings: A, pivotRef: L, enabled: Lt, roomPasportization: p, localization: s, licenseKey: d, hyperlinkColumn: m }), e[122] = ye, e[123] = m, e[124] = d, e[125] = s, e[126] = p, e[127] = A, e[128] = Lt, e[129] = ht) : ht = e[129];
|
|
3514
3514
|
let gt;
|
|
3515
3515
|
e[130] !== pt || e[131] !== ht ? (gt = /* @__PURE__ */ r("div", { className: pt, children: ht }), e[130] = pt, e[131] = ht, e[132] = gt) : gt = e[132];
|
|
3516
3516
|
let vt;
|
|
@@ -3600,10 +3600,10 @@ const Lh = (n) => {
|
|
|
3600
3600
|
let f;
|
|
3601
3601
|
e[3] !== a || e[4] !== t ? (f = a(t) ?? void 0, e[3] = a, e[4] = t, e[5] = f) : f = e[5];
|
|
3602
3602
|
const m = t.type;
|
|
3603
|
-
let p;
|
|
3604
|
-
e[6] !== o || e[7] !== t ? (p = o(t), e[6] = o, e[7] = t, e[8] = p) : p = e[8];
|
|
3605
3603
|
let h;
|
|
3606
|
-
e[
|
|
3604
|
+
e[6] !== o || e[7] !== t ? (h = o(t), e[6] = o, e[7] = t, e[8] = h) : h = e[8];
|
|
3605
|
+
let p;
|
|
3606
|
+
e[9] !== t.subject ? (p = /* @__PURE__ */ r(K, { variant: "body2", className: "fw-bold", children: t.subject }), e[9] = t.subject, e[10] = p) : p = e[10];
|
|
3607
3607
|
let v;
|
|
3608
3608
|
e[11] !== t.id || e[12] !== l ? (v = (D) => {
|
|
3609
3609
|
D.preventDefault(), D.stopPropagation(), l(t.id);
|
|
@@ -3613,10 +3613,10 @@ const Lh = (n) => {
|
|
|
3613
3613
|
let y;
|
|
3614
3614
|
e[16] !== v || e[17] !== g ? (y = /* @__PURE__ */ r(ve, { size: "sm", onClick: v, children: g }), e[16] = v, e[17] = g, e[18] = y) : y = e[18];
|
|
3615
3615
|
let S;
|
|
3616
|
-
e[19] !==
|
|
3617
|
-
|
|
3616
|
+
e[19] !== p || e[20] !== y ? (S = /* @__PURE__ */ T("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
|
|
3617
|
+
p,
|
|
3618
3618
|
y
|
|
3619
|
-
] }), e[19] =
|
|
3619
|
+
] }), e[19] = p, e[20] = y, e[21] = S) : S = e[21];
|
|
3620
3620
|
let C;
|
|
3621
3621
|
e[22] !== t.text ? (C = /* @__PURE__ */ r(K, { variant: "body2", children: t.text }), e[22] = t.text, e[23] = C) : C = e[23];
|
|
3622
3622
|
let x;
|
|
@@ -3625,10 +3625,10 @@ const Lh = (n) => {
|
|
|
3625
3625
|
C
|
|
3626
3626
|
] }), e[24] = C, e[25] = S, e[26] = x) : x = e[26];
|
|
3627
3627
|
let b;
|
|
3628
|
-
e[27] !== x || e[28] !==
|
|
3629
|
-
|
|
3628
|
+
e[27] !== x || e[28] !== h ? (b = /* @__PURE__ */ T("div", { className: "d-flex align-items-start gap-2", children: [
|
|
3629
|
+
h,
|
|
3630
3630
|
x
|
|
3631
|
-
] }), e[27] = x, e[28] =
|
|
3631
|
+
] }), e[27] = x, e[28] = h, e[29] = b) : b = e[29];
|
|
3632
3632
|
let w;
|
|
3633
3633
|
e[30] !== t.type || e[31] !== b ? (w = /* @__PURE__ */ r(Z1, { level: m, noIcon: !0, children: b }), e[30] = t.type, e[31] = b, e[32] = w) : w = e[32];
|
|
3634
3634
|
let N;
|
|
@@ -3657,11 +3657,11 @@ const Lh = (n) => {
|
|
|
3657
3657
|
e[3] !== c ? (C = (x) => c.includes(x.type ?? ""), e[3] = c, e[4] = C) : C = e[4], m = t.filter(C), e[0] = t, e[1] = c, e[2] = m;
|
|
3658
3658
|
} else
|
|
3659
3659
|
m = e[2];
|
|
3660
|
-
const
|
|
3661
|
-
let
|
|
3662
|
-
e[5] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
3660
|
+
const h = m;
|
|
3661
|
+
let p;
|
|
3662
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (p = (C) => f(C), e[5] = p) : p = e[5];
|
|
3663
3663
|
let v;
|
|
3664
|
-
e[6] !== c ? (v = /* @__PURE__ */ r(Zc, { knownTypes: Ri, typeFilters: c, onChangeTypeFilters:
|
|
3664
|
+
e[6] !== c ? (v = /* @__PURE__ */ r(Zc, { knownTypes: Ri, typeFilters: c, onChangeTypeFilters: p }), e[6] = c, e[7] = v) : v = e[7];
|
|
3665
3665
|
let g;
|
|
3666
3666
|
e[8] !== l ? (g = l && /* @__PURE__ */ T("div", { className: "p-3 w-100", children: [
|
|
3667
3667
|
/* @__PURE__ */ r(Ht, { as: xi.Title, animation: "glow", children: /* @__PURE__ */ r(Ht, { xs: 6 }) }),
|
|
@@ -3678,17 +3678,17 @@ const Lh = (n) => {
|
|
|
3678
3678
|
] })
|
|
3679
3679
|
] }), e[8] = l, e[9] = g) : g = e[9];
|
|
3680
3680
|
let y;
|
|
3681
|
-
e[10] !==
|
|
3681
|
+
e[10] !== h || e[11] !== a || e[12] !== s || e[13] !== l || e[14] !== u || e[15] !== t.length || e[16] !== o || e[17] !== i ? (y = !l && /* @__PURE__ */ T(pe, { children: [
|
|
3682
3682
|
t.length === 0 && /* @__PURE__ */ r(St, { variant: "info", size: "sm", className: "mt-2", children: u.noMessages }),
|
|
3683
|
-
/* @__PURE__ */ r("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children:
|
|
3684
|
-
] }), e[10] =
|
|
3683
|
+
/* @__PURE__ */ r("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: h.map((C) => /* @__PURE__ */ r(ed, { message: C, onDeleteMessage: i, onClickMessage: o, getIcon: a, getLinksTo: s }, C.id)) })
|
|
3684
|
+
] }), e[10] = h, e[11] = a, e[12] = s, e[13] = l, e[14] = u, e[15] = t.length, e[16] = o, e[17] = i, e[18] = y) : y = e[18];
|
|
3685
3685
|
let S;
|
|
3686
3686
|
return e[19] !== v || e[20] !== g || e[21] !== y ? (S = /* @__PURE__ */ T("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
|
|
3687
3687
|
v,
|
|
3688
3688
|
g,
|
|
3689
3689
|
y
|
|
3690
3690
|
] }), e[19] = v, e[20] = g, e[21] = y, e[22] = S) : S = e[22], S;
|
|
3691
|
-
},
|
|
3691
|
+
}, _l = {
|
|
3692
3692
|
apiGet: "/messageBoard",
|
|
3693
3693
|
apiDelete: "/messageBoard/"
|
|
3694
3694
|
}, Eh = (n) => {
|
|
@@ -3701,19 +3701,19 @@ const Lh = (n) => {
|
|
|
3701
3701
|
} = n, {
|
|
3702
3702
|
apiGet: s,
|
|
3703
3703
|
apiDelete: d
|
|
3704
|
-
} = i === void 0 ?
|
|
3704
|
+
} = i === void 0 ? _l : i, u = s === void 0 ? _l.apiGet : s, c = d === void 0 ? _l.apiDelete : d, f = ut();
|
|
3705
3705
|
let m;
|
|
3706
3706
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (m = [], e[0] = m) : m = e[0];
|
|
3707
|
-
const [
|
|
3707
|
+
const [h, p] = ee(m), [v, g] = ee(!1), [y, S] = ee(!1), [C, x] = ee(!1);
|
|
3708
3708
|
let b;
|
|
3709
3709
|
e[1] !== u || e[2] !== f ? (b = async () => {
|
|
3710
3710
|
S(!0), await f.get(u).then((O) => {
|
|
3711
3711
|
const {
|
|
3712
3712
|
data: R
|
|
3713
3713
|
} = O;
|
|
3714
|
-
|
|
3714
|
+
p(R), g(!0), S(!1);
|
|
3715
3715
|
}).catch(() => {
|
|
3716
|
-
|
|
3716
|
+
p([]), S(!1);
|
|
3717
3717
|
});
|
|
3718
3718
|
}, e[1] = u, e[2] = f, e[3] = b) : b = e[3];
|
|
3719
3719
|
const w = b;
|
|
@@ -3721,11 +3721,11 @@ const Lh = (n) => {
|
|
|
3721
3721
|
e[4] !== c || e[5] !== f ? (N = async (O) => f.delete(`${c}${O}`).then(td).catch(nd), e[4] = c, e[5] = f, e[6] = N) : N = e[6];
|
|
3722
3722
|
const k = N;
|
|
3723
3723
|
let D;
|
|
3724
|
-
e[7] !== k || e[8] !==
|
|
3724
|
+
e[7] !== k || e[8] !== h ? (D = (O) => {
|
|
3725
3725
|
k(O).then((R) => {
|
|
3726
|
-
R && h
|
|
3726
|
+
R && p(h.filter((F) => F.id !== O));
|
|
3727
3727
|
});
|
|
3728
|
-
}, e[7] = k, e[8] =
|
|
3728
|
+
}, e[7] = k, e[8] = h, e[9] = D) : D = e[9];
|
|
3729
3729
|
const L = D;
|
|
3730
3730
|
let I, _;
|
|
3731
3731
|
e[10] !== w ? (I = () => {
|
|
@@ -3736,10 +3736,10 @@ const Lh = (n) => {
|
|
|
3736
3736
|
};
|
|
3737
3737
|
}, _ = [w], e[10] = w, e[11] = I, e[12] = _) : (I = e[11], _ = e[12]), me(I, _);
|
|
3738
3738
|
let $;
|
|
3739
|
-
e[13] !==
|
|
3739
|
+
e[13] !== h ? ($ = h.filter(ld), e[13] = h, e[14] = $) : $ = e[14];
|
|
3740
3740
|
const E = $.length, A = v ? !1 : y;
|
|
3741
3741
|
let P;
|
|
3742
|
-
return e[15] !== E || e[16] !== A || e[17] !== o || e[18] !== a || e[19] !==
|
|
3742
|
+
return e[15] !== E || e[16] !== A || e[17] !== o || e[18] !== a || e[19] !== h || e[20] !== l || e[21] !== L || e[22] !== t || e[23] !== C ? (P = t ? /* @__PURE__ */ T(pe, { children: [
|
|
3743
3743
|
/* @__PURE__ */ T("div", { className: "position-relative", children: [
|
|
3744
3744
|
/* @__PURE__ */ r(ve, { size: "md", onClick: () => x(!C), children: l }),
|
|
3745
3745
|
E > 0 && /* @__PURE__ */ r("div", { className: "badge rounded-pill bg-danger p-1 px-2 text-white", style: {
|
|
@@ -3749,8 +3749,8 @@ const Lh = (n) => {
|
|
|
3749
3749
|
fontSize: "10px"
|
|
3750
3750
|
}, children: E })
|
|
3751
3751
|
] }),
|
|
3752
|
-
/* @__PURE__ */ r(Ni, { show: C, onHide: () => x(!1), placement: "end", children: /* @__PURE__ */ r(Ni.Body, { children: /* @__PURE__ */ r(Mi, { messages:
|
|
3753
|
-
] }) : /* @__PURE__ */ r(Mi, { messages:
|
|
3752
|
+
/* @__PURE__ */ r(Ni, { show: C, onHide: () => x(!1), placement: "end", children: /* @__PURE__ */ r(Ni.Body, { children: /* @__PURE__ */ r(Mi, { messages: h, isLoading: A, onDeleteMessage: L, onClickMessage: () => x(!1), getIcon: o, getLinksTo: a }) }) })
|
|
3753
|
+
] }) : /* @__PURE__ */ r(Mi, { messages: h, isLoading: A, onDeleteMessage: L, getIcon: o, getLinksTo: a }), e[15] = E, e[16] = A, e[17] = o, e[18] = a, e[19] = h, e[20] = l, e[21] = L, e[22] = t, e[23] = C, e[24] = P) : P = e[24], P;
|
|
3754
3754
|
};
|
|
3755
3755
|
function td() {
|
|
3756
3756
|
return !0;
|
|
@@ -3761,7 +3761,7 @@ function nd() {
|
|
|
3761
3761
|
function ld(n) {
|
|
3762
3762
|
return n.type === "danger";
|
|
3763
3763
|
}
|
|
3764
|
-
const id = "_tab-panel_d8l8q_1", od = "_full-height-no-overflow_d8l8q_5", ad = "_disabled_d8l8q_12",
|
|
3764
|
+
const id = "_tab-panel_d8l8q_1", od = "_full-height-no-overflow_d8l8q_5", ad = "_disabled_d8l8q_12", Il = {
|
|
3765
3765
|
tabPanel: id,
|
|
3766
3766
|
fullHeightNoOverflow: od,
|
|
3767
3767
|
disabled: ad
|
|
@@ -3777,12 +3777,12 @@ const id = "_tab-panel_d8l8q_1", od = "_full-height-no-overflow_d8l8q_5", ad = "
|
|
|
3777
3777
|
if (t !== l)
|
|
3778
3778
|
return null;
|
|
3779
3779
|
let d;
|
|
3780
|
-
e[0] !== a || e[1] !== o || e[2] !== i ? (d = z("luminus-tab-panel",
|
|
3781
|
-
[
|
|
3780
|
+
e[0] !== a || e[1] !== o || e[2] !== i ? (d = z("luminus-tab-panel", Il.tabPanel, {
|
|
3781
|
+
[Il.fullHeightNoOverflow]: i
|
|
3782
3782
|
}, {
|
|
3783
3783
|
disabled: o
|
|
3784
3784
|
}, {
|
|
3785
|
-
[
|
|
3785
|
+
[Il.disabled]: o
|
|
3786
3786
|
}, a), e[0] = a, e[1] = o, e[2] = i, e[3] = d) : d = e[3];
|
|
3787
3787
|
let u;
|
|
3788
3788
|
return e[4] !== s || e[5] !== d ? (u = /* @__PURE__ */ r("div", { className: d, children: s }), e[4] = s, e[5] = d, e[6] = u) : u = e[6], u;
|
|
@@ -3808,24 +3808,24 @@ const id = "_tab-panel_d8l8q_1", od = "_full-height-no-overflow_d8l8q_5", ad = "
|
|
|
3808
3808
|
if (e[3] !== t || e[4] !== i || e[5] !== l || e[6] !== o || e[7] !== a) {
|
|
3809
3809
|
let c;
|
|
3810
3810
|
e[9] !== t || e[10] !== i.length || e[11] !== l || e[12] !== o || e[13] !== a ? (c = (f, m) => {
|
|
3811
|
-
const
|
|
3812
|
-
if (!
|
|
3811
|
+
const h = f.type, p = f.props;
|
|
3812
|
+
if (!p)
|
|
3813
3813
|
return null;
|
|
3814
|
-
const v =
|
|
3814
|
+
const v = p.eventKey, g = p.children, y = p.className, S = p.onClick;
|
|
3815
3815
|
return /* @__PURE__ */ T(st.Fragment, { children: [
|
|
3816
|
-
/* @__PURE__ */ r(
|
|
3816
|
+
/* @__PURE__ */ r(h, { ...p, className: z({
|
|
3817
3817
|
active: t === v
|
|
3818
3818
|
}, y), onClick: () => {
|
|
3819
3819
|
l(v), S && S(v);
|
|
3820
3820
|
}, vertical: o || a, children: g }),
|
|
3821
3821
|
a && m < i.length - 1 && /* @__PURE__ */ r("div", { className: z("join-line", cd.joinLine) })
|
|
3822
|
-
] },
|
|
3822
|
+
] }, p.eventKey);
|
|
3823
3823
|
}, e[9] = t, e[10] = i.length, e[11] = l, e[12] = o, e[13] = a, e[14] = c) : c = e[14], d = i.map(c), e[3] = t, e[4] = i, e[5] = l, e[6] = o, e[7] = a, e[8] = d;
|
|
3824
3824
|
} else
|
|
3825
3825
|
d = e[8];
|
|
3826
3826
|
let u;
|
|
3827
3827
|
return e[15] !== s || e[16] !== d ? (u = /* @__PURE__ */ r("div", { className: s, children: d }), e[15] = s, e[16] = d, e[17] = u) : u = e[17], u;
|
|
3828
|
-
}, dd = "_tab_1tbi7_1", ud = "_disabled_1tbi7_7", fd = "_vertical_1tbi7_13",
|
|
3828
|
+
}, dd = "_tab_1tbi7_1", ud = "_disabled_1tbi7_7", fd = "_vertical_1tbi7_13", Dl = {
|
|
3829
3829
|
tab: dd,
|
|
3830
3830
|
disabled: ud,
|
|
3831
3831
|
vertical: fd
|
|
@@ -3839,14 +3839,14 @@ const id = "_tab-panel_d8l8q_1", od = "_full-height-no-overflow_d8l8q_5", ad = "
|
|
|
3839
3839
|
children: s
|
|
3840
3840
|
} = n;
|
|
3841
3841
|
let d;
|
|
3842
|
-
e[0] !== l || e[1] !== o || e[2] !== a ? (d = z("luminus-tab text-primary rounded",
|
|
3842
|
+
e[0] !== l || e[1] !== o || e[2] !== a ? (d = z("luminus-tab text-primary rounded", Dl.tab, l, {
|
|
3843
3843
|
disabled: o
|
|
3844
3844
|
}, {
|
|
3845
|
-
[
|
|
3845
|
+
[Dl.disabled]: o
|
|
3846
3846
|
}, {
|
|
3847
3847
|
vertical: a
|
|
3848
3848
|
}, {
|
|
3849
|
-
[
|
|
3849
|
+
[Dl.vertical]: a
|
|
3850
3850
|
}), e[0] = l, e[1] = o, e[2] = a, e[3] = d) : d = e[3];
|
|
3851
3851
|
let u;
|
|
3852
3852
|
e[4] !== o || e[5] !== t || e[6] !== i ? (u = () => i && !o && i(t), e[4] = o, e[5] = t, e[6] = i, e[7] = u) : u = e[7];
|
|
@@ -3868,14 +3868,14 @@ const id = "_tab-panel_d8l8q_1", od = "_full-height-no-overflow_d8l8q_5", ad = "
|
|
|
3868
3868
|
ProjectIconComponent: a
|
|
3869
3869
|
} = ne(ue), {
|
|
3870
3870
|
isMobile: s
|
|
3871
|
-
} =
|
|
3871
|
+
} = dl();
|
|
3872
3872
|
if (s) {
|
|
3873
3873
|
let m;
|
|
3874
3874
|
e[5] !== t || e[6] !== o ? (m = ((f = o.find((y) => y.id === t)) == null ? void 0 : f.name) ?? "", e[5] = t, e[6] = o, e[7] = m) : m = e[7];
|
|
3875
|
-
let p;
|
|
3876
|
-
e[8] !== a ? (p = /* @__PURE__ */ r(a, { icon: "chevron-down" }), e[8] = a, e[9] = p) : p = e[9];
|
|
3877
3875
|
let h;
|
|
3878
|
-
e[
|
|
3876
|
+
e[8] !== a ? (h = /* @__PURE__ */ r(a, { icon: "chevron-down" }), e[8] = a, e[9] = h) : h = e[9];
|
|
3877
|
+
let p;
|
|
3878
|
+
e[10] !== m || e[11] !== h ? (p = /* @__PURE__ */ r(Yt, { as: un, text: m, icon: h }), e[10] = m, e[11] = h, e[12] = p) : p = e[12];
|
|
3879
3879
|
let v;
|
|
3880
3880
|
if (e[13] !== l || e[14] !== o) {
|
|
3881
3881
|
let y;
|
|
@@ -3883,7 +3883,7 @@ const id = "_tab-panel_d8l8q_1", od = "_full-height-no-overflow_d8l8q_5", ad = "
|
|
|
3883
3883
|
} else
|
|
3884
3884
|
v = e[15];
|
|
3885
3885
|
let g;
|
|
3886
|
-
return e[18] !== i || e[19] !==
|
|
3886
|
+
return e[18] !== i || e[19] !== p || e[20] !== v ? (g = /* @__PURE__ */ r(qt, { toggle: p, ...i, children: v }), e[18] = i, e[19] = p, e[20] = v, e[21] = g) : g = e[21], g;
|
|
3887
3887
|
}
|
|
3888
3888
|
let d;
|
|
3889
3889
|
e[22] !== l ? (d = (m) => l(m), e[22] = l, e[23] = d) : d = e[23];
|
|
@@ -3908,8 +3908,8 @@ const pd = "_selection_1dtmm_1", hd = "_selectionBg_1dtmm_10", gd = "_selectionI
|
|
|
3908
3908
|
IconTypeArray: o
|
|
3909
3909
|
} = n, [a, s] = ee(!1);
|
|
3910
3910
|
let d;
|
|
3911
|
-
e[0] !== l ? (d = (
|
|
3912
|
-
l(
|
|
3911
|
+
e[0] !== l ? (d = (p) => {
|
|
3912
|
+
l(p), s(!1);
|
|
3913
3913
|
}, e[0] = l, e[1] = d) : d = e[1];
|
|
3914
3914
|
const u = d;
|
|
3915
3915
|
let c;
|
|
@@ -3919,13 +3919,13 @@ const pd = "_selection_1dtmm_1", hd = "_selectionBg_1dtmm_10", gd = "_selectionI
|
|
|
3919
3919
|
let m;
|
|
3920
3920
|
e[6] !== i || e[7] !== o || e[8] !== u || e[9] !== a ? (m = a && /* @__PURE__ */ T("div", { className: Wn.selection, children: [
|
|
3921
3921
|
/* @__PURE__ */ r("div", { className: Wn.selectionBg, onClick: () => s(!1) }),
|
|
3922
|
-
/* @__PURE__ */ r("div", { className: Wn.selectionItemsContainer, children: /* @__PURE__ */ r("div", { className: Wn.selectionItems, children: o.filter(yd).map((
|
|
3922
|
+
/* @__PURE__ */ r("div", { className: Wn.selectionItemsContainer, children: /* @__PURE__ */ r("div", { className: Wn.selectionItems, children: o.filter(yd).map((p) => /* @__PURE__ */ r(ve, { className: "rounded", onClick: () => u(p), children: /* @__PURE__ */ r(i, { icon: p }) }, p)) }) })
|
|
3923
3923
|
] }), e[6] = i, e[7] = o, e[8] = u, e[9] = a, e[10] = m) : m = e[10];
|
|
3924
|
-
let
|
|
3925
|
-
return e[11] !== f || e[12] !== m ? (
|
|
3924
|
+
let h;
|
|
3925
|
+
return e[11] !== f || e[12] !== m ? (h = /* @__PURE__ */ T(pe, { children: [
|
|
3926
3926
|
f,
|
|
3927
3927
|
m
|
|
3928
|
-
] }), e[11] = f, e[12] = m, e[13] =
|
|
3928
|
+
] }), e[11] = f, e[12] = m, e[13] = h) : h = e[13], h;
|
|
3929
3929
|
};
|
|
3930
3930
|
function yd(n, e, t) {
|
|
3931
3931
|
return t.indexOf(n) === e;
|
|
@@ -3945,11 +3945,11 @@ const ba = () => {
|
|
|
3945
3945
|
} = n, {
|
|
3946
3946
|
ProjectIconComponent: s
|
|
3947
3947
|
} = ne(ue), [d, u] = ee(t.icon), [c, f] = ee(t.name), m = !(d === t.icon && c === t.name);
|
|
3948
|
-
let
|
|
3949
|
-
e[0] !== t.icon || e[1] !== t.name ? (
|
|
3948
|
+
let h;
|
|
3949
|
+
e[0] !== t.icon || e[1] !== t.name ? (h = () => {
|
|
3950
3950
|
u(t.icon), f(t.name);
|
|
3951
|
-
}, e[0] = t.icon, e[1] = t.name, e[2] =
|
|
3952
|
-
const
|
|
3951
|
+
}, e[0] = t.icon, e[1] = t.name, e[2] = h) : h = e[2];
|
|
3952
|
+
const p = h;
|
|
3953
3953
|
let v;
|
|
3954
3954
|
e[3] !== o || e[4] !== d || e[5] !== c || e[6] !== t ? (v = () => {
|
|
3955
3955
|
o({
|
|
@@ -3968,10 +3968,10 @@ const ba = () => {
|
|
|
3968
3968
|
width: "7em"
|
|
3969
3969
|
}, e[14] = C) : C = e[14];
|
|
3970
3970
|
let x;
|
|
3971
|
-
e[15] !== s || e[16] !==
|
|
3972
|
-
/* @__PURE__ */ r(ve, { onClick:
|
|
3971
|
+
e[15] !== s || e[16] !== p || e[17] !== g || e[18] !== m ? (x = m && /* @__PURE__ */ T(pe, { children: [
|
|
3972
|
+
/* @__PURE__ */ r(ve, { onClick: p, color: "secondary", className: "d-inline", children: /* @__PURE__ */ r(s, { icon: "cancel" }) }),
|
|
3973
3973
|
/* @__PURE__ */ r(ve, { onClick: g, color: "success", className: "d-inline", children: /* @__PURE__ */ r(s, { icon: "check" }) })
|
|
3974
|
-
] }), e[15] = s, e[16] =
|
|
3974
|
+
] }), e[15] = s, e[16] = p, e[17] = g, e[18] = m, e[19] = x) : x = e[19];
|
|
3975
3975
|
let b;
|
|
3976
3976
|
e[20] !== s ? (b = /* @__PURE__ */ r(s, { icon: "delete" }), e[20] = s, e[21] = b) : b = e[21];
|
|
3977
3977
|
let w;
|
|
@@ -4061,15 +4061,15 @@ const ba = () => {
|
|
|
4061
4061
|
} = ne(ue), [c, f] = ee("star-outline");
|
|
4062
4062
|
let m;
|
|
4063
4063
|
e[0] !== o ? (m = o ? document.title.replace(o, "") : document.title, e[0] = o, e[1] = m) : m = e[1];
|
|
4064
|
-
const [
|
|
4064
|
+
const [h, p] = ee(m);
|
|
4065
4065
|
let v;
|
|
4066
|
-
e[2] !== t || e[3] !== i || e[4] !== c || e[5] !== d.pathname || e[6] !== d.search || e[7] !==
|
|
4066
|
+
e[2] !== t || e[3] !== i || e[4] !== c || e[5] !== d.pathname || e[6] !== d.search || e[7] !== h ? (v = async () => {
|
|
4067
4067
|
await i({
|
|
4068
4068
|
icon: c,
|
|
4069
|
-
name:
|
|
4069
|
+
name: h,
|
|
4070
4070
|
url: d.pathname + d.search
|
|
4071
4071
|
}), t();
|
|
4072
|
-
}, e[2] = t, e[3] = i, e[4] = c, e[5] = d.pathname, e[6] = d.search, e[7] =
|
|
4072
|
+
}, e[2] = t, e[3] = i, e[4] = c, e[5] = d.pathname, e[6] = d.search, e[7] = h, e[8] = v) : v = e[8];
|
|
4073
4073
|
const g = v, y = d.pathname + d.search;
|
|
4074
4074
|
let S;
|
|
4075
4075
|
e[9] !== u.shortcutLinks.newShortcut ? (S = /* @__PURE__ */ r(Te.Header, { closeButton: !0, children: /* @__PURE__ */ r(Te.Title, { children: u.shortcutLinks.newShortcut }) }), e[9] = u.shortcutLinks.newShortcut, e[10] = S) : S = e[10];
|
|
@@ -4090,7 +4090,7 @@ const ba = () => {
|
|
|
4090
4090
|
let N;
|
|
4091
4091
|
e[20] !== u.shortcutLinks.name ? (N = /* @__PURE__ */ r(K, { variant: "form-label", className: "pe-3 text-end", children: u.shortcutLinks.name }), e[20] = u.shortcutLinks.name, e[21] = N) : N = e[21];
|
|
4092
4092
|
let k;
|
|
4093
|
-
e[22] !==
|
|
4093
|
+
e[22] !== h ? (k = /* @__PURE__ */ r("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ r(bt, { type: "text", maxLength: 25, value: h, onChange: p, className: "w-100", InputContainer: Xe, withoutLabel: !0 }) }), e[22] = h, e[23] = k) : k = e[23];
|
|
4094
4094
|
let D;
|
|
4095
4095
|
e[24] !== N || e[25] !== k ? (D = /* @__PURE__ */ T("div", { className: bn.createLinkRow, children: [
|
|
4096
4096
|
N,
|
|
@@ -4135,12 +4135,12 @@ const Id = (n) => {
|
|
|
4135
4135
|
ProjectIconComponent: a,
|
|
4136
4136
|
texts: s
|
|
4137
4137
|
} = ne(ue), [d, u] = ee(!1), [c] = Jl(d, 100), f = s.shortcutLinks.addShortcut;
|
|
4138
|
-
let m,
|
|
4139
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (m = z(bn.linkButton, bn.linkAddButton),
|
|
4140
|
-
let
|
|
4141
|
-
e[2] !== a ? (
|
|
4138
|
+
let m, h;
|
|
4139
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (m = z(bn.linkButton, bn.linkAddButton), h = () => u(!0), e[0] = m, e[1] = h) : (m = e[0], h = e[1]);
|
|
4140
|
+
let p;
|
|
4141
|
+
e[2] !== a ? (p = /* @__PURE__ */ r("button", { type: "button", className: m, onClick: h, children: /* @__PURE__ */ r(a, { icon: "add" }) }), e[2] = a, e[3] = p) : p = e[3];
|
|
4142
4142
|
let v;
|
|
4143
|
-
e[4] !==
|
|
4143
|
+
e[4] !== p || e[5] !== s.shortcutLinks.addShortcut ? (v = /* @__PURE__ */ r(rt, { text: f, placement: "bottom", children: p }), e[4] = p, e[5] = s.shortcutLinks.addShortcut, e[6] = v) : v = e[6];
|
|
4144
4144
|
let g;
|
|
4145
4145
|
e[7] !== t || e[8] !== l || e[9] !== o || e[10] !== c || e[11] !== d || e[12] !== i ? (g = (d || c) && /* @__PURE__ */ r(kd, { IconComponent: t, IconTypeArray: l, closeModal: () => u(!1), createLink: o, isOpen: d, pageTitlePrefix: i }), e[7] = t, e[8] = l, e[9] = o, e[10] = c, e[11] = d, e[12] = i, e[13] = g) : g = e[13];
|
|
4146
4146
|
let y;
|
|
@@ -4226,8 +4226,8 @@ const Id = (n) => {
|
|
|
4226
4226
|
update: f,
|
|
4227
4227
|
remove: m
|
|
4228
4228
|
} = Dd(l);
|
|
4229
|
-
let
|
|
4230
|
-
e[2] !== c || e[3] !== u || e[4] !== d || e[5] !== i ? (
|
|
4229
|
+
let h;
|
|
4230
|
+
e[2] !== c || e[3] !== u || e[4] !== d || e[5] !== i ? (h = async (w) => {
|
|
4231
4231
|
const N = Fi(i);
|
|
4232
4232
|
if (Td(d).length >= zl)
|
|
4233
4233
|
throw new Error("Cannot add more shortcut links.");
|
|
@@ -4235,8 +4235,8 @@ const Id = (n) => {
|
|
|
4235
4235
|
...w,
|
|
4236
4236
|
employee: N.personalNumber
|
|
4237
4237
|
}), await u();
|
|
4238
|
-
}, e[2] = c, e[3] = u, e[4] = d, e[5] = i, e[6] =
|
|
4239
|
-
const
|
|
4238
|
+
}, e[2] = c, e[3] = u, e[4] = d, e[5] = i, e[6] = h) : h = e[6];
|
|
4239
|
+
const p = h;
|
|
4240
4240
|
let v;
|
|
4241
4241
|
e[7] !== u || e[8] !== f || e[9] !== i ? (v = async (w) => {
|
|
4242
4242
|
const N = Fi(i);
|
|
@@ -4252,12 +4252,12 @@ const Id = (n) => {
|
|
|
4252
4252
|
}, e[11] = u, e[12] = m, e[13] = y) : y = e[13];
|
|
4253
4253
|
const S = y;
|
|
4254
4254
|
let C;
|
|
4255
|
-
e[14] !==
|
|
4255
|
+
e[14] !== p || e[15] !== S || e[16] !== g || e[17] !== d ? (C = {
|
|
4256
4256
|
shortcutLinks: d,
|
|
4257
|
-
createShortcutLink:
|
|
4257
|
+
createShortcutLink: p,
|
|
4258
4258
|
editShortcutLink: g,
|
|
4259
4259
|
deleteShortcutLink: S
|
|
4260
|
-
}, e[14] =
|
|
4260
|
+
}, e[14] = p, e[15] = S, e[16] = g, e[17] = d, e[18] = C) : C = e[18];
|
|
4261
4261
|
const x = C;
|
|
4262
4262
|
let b;
|
|
4263
4263
|
return e[19] !== t || e[20] !== x ? (b = /* @__PURE__ */ r(Lo.Provider, { value: x, children: t }), e[19] = t, e[20] = x, e[21] = b) : b = e[21], b;
|
|
@@ -4309,10 +4309,10 @@ const Pd = (n) => {
|
|
|
4309
4309
|
texts: d
|
|
4310
4310
|
} = ne(ue), {
|
|
4311
4311
|
notifCentrum: u
|
|
4312
|
-
} = d, [c, f] = ee(null), [m,
|
|
4312
|
+
} = d, [c, f] = ee(null), [m, h] = ee(null), [p, v] = ee("R");
|
|
4313
4313
|
let g;
|
|
4314
4314
|
e[0] !== l ? (g = () => {
|
|
4315
|
-
f(null),
|
|
4315
|
+
f(null), h(null), l();
|
|
4316
4316
|
}, e[0] = l, e[1] = g) : g = e[1];
|
|
4317
4317
|
const y = g;
|
|
4318
4318
|
let S;
|
|
@@ -4334,15 +4334,15 @@ const Pd = (n) => {
|
|
|
4334
4334
|
let N;
|
|
4335
4335
|
e[13] === Symbol.for("react.memo_cache_sentinel") ? (N = (E) => v(E), e[13] = N) : N = e[13];
|
|
4336
4336
|
let k;
|
|
4337
|
-
e[14] !== w || e[15] !==
|
|
4337
|
+
e[14] !== w || e[15] !== p ? (k = /* @__PURE__ */ r(Rc, { options: w, value: p, onChange: N, InputContainer: Xe }), e[14] = w, e[15] = p, e[16] = k) : k = e[16];
|
|
4338
4338
|
let D;
|
|
4339
|
-
e[17] !== a || e[18] !== (c == null ? void 0 : c.id) || e[19] !== (c == null ? void 0 : c.name) || e[20] !== u.employee || e[21] !== u.role || e[22] !== m || e[23] !== i || e[24] !==
|
|
4339
|
+
e[17] !== a || e[18] !== (c == null ? void 0 : c.id) || e[19] !== (c == null ? void 0 : c.name) || e[20] !== u.employee || e[21] !== u.role || e[22] !== m || e[23] !== i || e[24] !== p ? (D = p === "E" ? /* @__PURE__ */ r(a, { InputContainer: Xe, label: u.employee, value: {
|
|
4340
4340
|
id: (c == null ? void 0 : c.id) ?? null,
|
|
4341
4341
|
name: (c == null ? void 0 : c.name) ?? ""
|
|
4342
4342
|
}, onSelect: (E) => f({
|
|
4343
4343
|
id: Number(E == null ? void 0 : E.id) ?? null,
|
|
4344
4344
|
name: (E == null ? void 0 : E.name) ?? ""
|
|
4345
|
-
}) }) : /* @__PURE__ */ r(It, { InputContainer: Xe, label: u.role, options: i.map(Ad), value: m, onChange: (E) =>
|
|
4345
|
+
}) }) : /* @__PURE__ */ r(It, { InputContainer: Xe, label: u.role, options: i.map(Ad), value: m, onChange: (E) => h((E == null ? void 0 : E.toString()) ?? "") }), e[17] = a, e[18] = c == null ? void 0 : c.id, e[19] = c == null ? void 0 : c.name, e[20] = u.employee, e[21] = u.role, e[22] = m, e[23] = i, e[24] = p, e[25] = D) : D = e[25];
|
|
4346
4346
|
let L;
|
|
4347
4347
|
e[26] !== D || e[27] !== k ? (L = /* @__PURE__ */ T(Te.Body, { children: [
|
|
4348
4348
|
k,
|
|
@@ -4386,24 +4386,24 @@ const Rd = (n) => {
|
|
|
4386
4386
|
ProjectIconComponent: c
|
|
4387
4387
|
} = ne(ue), {
|
|
4388
4388
|
notifCentrum: f
|
|
4389
|
-
} = u, [m,
|
|
4390
|
-
let
|
|
4389
|
+
} = u, [m, h] = ee(!1);
|
|
4390
|
+
let p;
|
|
4391
4391
|
if (e[0] !== c || e[1] !== f || e[2] !== s || e[3] !== l || e[4] !== i || e[5] !== t) {
|
|
4392
4392
|
let x;
|
|
4393
4393
|
e[7] !== c || e[8] !== f || e[9] !== s || e[10] !== l || e[11] !== i ? (x = (b) => /* @__PURE__ */ T($n.Item, { action: l !== b.id, className: `p-0 mb-2 border rounded shadow-sm ${l === b.id ? "border-1 border-primary" : ""}`, onClick: () => i(b.id), children: [
|
|
4394
4394
|
/* @__PURE__ */ T("div", { className: "d-flex gap-2 justify-content-between align-items-center border-1 border-bottom border-primary p-2", children: [
|
|
4395
4395
|
/* @__PURE__ */ r("div", { className: "text-primary", children: b.destinationId === 1 ? /* @__PURE__ */ r(c, { icon: "mail-envelope" }) : /* @__PURE__ */ r(c, { icon: "dashboard" }) }),
|
|
4396
4396
|
/* @__PURE__ */ r(K, { className: "text-truncate text-primary", variant: "subtitle", children: b.subjectTemplate }),
|
|
4397
|
-
/* @__PURE__ */ r(ve, { size: "sm", onClick: () =>
|
|
4397
|
+
/* @__PURE__ */ r(ve, { size: "sm", onClick: () => h(!0), children: /* @__PURE__ */ r(c, { icon: "add" }) })
|
|
4398
4398
|
] }),
|
|
4399
4399
|
/* @__PURE__ */ r("div", { className: "my-2 ps-3 pe-2", children: b.targets.length > 0 ? /* @__PURE__ */ r(Ed, { targets: b.targets, removeNotifTarget: s }) : /* @__PURE__ */ r(St, { size: "sm", variant: "warning", children: f.noTargets }) })
|
|
4400
|
-
] }, b.id), e[7] = c, e[8] = f, e[9] = s, e[10] = l, e[11] = i, e[12] = x) : x = e[12],
|
|
4400
|
+
] }, b.id), e[7] = c, e[8] = f, e[9] = s, e[10] = l, e[11] = i, e[12] = x) : x = e[12], p = t.map(x), e[0] = c, e[1] = f, e[2] = s, e[3] = l, e[4] = i, e[5] = t, e[6] = p;
|
|
4401
4401
|
} else
|
|
4402
|
-
|
|
4402
|
+
p = e[6];
|
|
4403
4403
|
let v;
|
|
4404
|
-
e[13] !==
|
|
4404
|
+
e[13] !== p ? (v = /* @__PURE__ */ r($n, { className: "overflow-auto h-max-100 p-2", children: p }), e[13] = p, e[14] = v) : v = e[14];
|
|
4405
4405
|
let g;
|
|
4406
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (g = () =>
|
|
4406
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (g = () => h(!1), e[15] = g) : g = e[15];
|
|
4407
4407
|
let y;
|
|
4408
4408
|
e[16] !== o ? (y = o ?? [], e[16] = o, e[17] = y) : y = e[17];
|
|
4409
4409
|
let S;
|
|
@@ -4424,15 +4424,15 @@ const Rd = (n) => {
|
|
|
4424
4424
|
} = ne(ue), {
|
|
4425
4425
|
notifCentrum: s
|
|
4426
4426
|
} = a, [d, u] = ee(null), [c, f] = ee(null);
|
|
4427
|
-
let m,
|
|
4427
|
+
let m, h;
|
|
4428
4428
|
e[0] !== i ? (m = () => {
|
|
4429
4429
|
i && (u(i.subjectTemplate), f(i.textTemplate));
|
|
4430
|
-
},
|
|
4431
|
-
let
|
|
4432
|
-
e[3] !== c || e[4] !== o || e[5] !== l || e[6] !== d ? (
|
|
4430
|
+
}, h = [i], e[0] = i, e[1] = m, e[2] = h) : (m = e[1], h = e[2]), me(m, h);
|
|
4431
|
+
let p;
|
|
4432
|
+
e[3] !== c || e[4] !== o || e[5] !== l || e[6] !== d ? (p = () => {
|
|
4433
4433
|
!d || !c || (o(d, c), l());
|
|
4434
|
-
}, e[3] = c, e[4] = o, e[5] = l, e[6] = d, e[7] =
|
|
4435
|
-
const v =
|
|
4434
|
+
}, e[3] = c, e[4] = o, e[5] = l, e[6] = d, e[7] = p) : p = e[7];
|
|
4435
|
+
const v = p;
|
|
4436
4436
|
let g;
|
|
4437
4437
|
e[8] !== c || e[9] !== v || e[10] !== s || e[11] !== l || e[12] !== t || e[13] !== d || e[14] !== i ? (g = i && /* @__PURE__ */ T(Te, { show: t, onHide: l, size: "lg", scrollable: !0, children: [
|
|
4438
4438
|
/* @__PURE__ */ r(Te.Header, { children: /* @__PURE__ */ r(Te.Title, { children: s.editTemplate }) }),
|
|
@@ -4473,9 +4473,9 @@ const Rd = (n) => {
|
|
|
4473
4473
|
texts: f,
|
|
4474
4474
|
ProjectIconComponent: m
|
|
4475
4475
|
} = ne(ue), {
|
|
4476
|
-
notifCentrum:
|
|
4476
|
+
notifCentrum: h
|
|
4477
4477
|
} = f, {
|
|
4478
|
-
confirm:
|
|
4478
|
+
confirm: p
|
|
4479
4479
|
} = jt(), [v, g] = ee(null), [y, S] = ee(null), [C, x] = ee(!1), [b, w] = ee(null), [N, k] = On("notif-kind-id", null);
|
|
4480
4480
|
let D, L;
|
|
4481
4481
|
e[0] !== t || e[1] !== k ? (D = () => {
|
|
@@ -4559,15 +4559,15 @@ const Rd = (n) => {
|
|
|
4559
4559
|
}, e[36] = _, e[37] = u, e[38] = O, e[39] = v, e[40] = de) : de = e[40];
|
|
4560
4560
|
const he = de;
|
|
4561
4561
|
let ye;
|
|
4562
|
-
e[41] !== _ || e[42] !==
|
|
4563
|
-
await h
|
|
4562
|
+
e[41] !== _ || e[42] !== p || e[43] !== h.confirmTargetDelete || e[44] !== s || e[45] !== O || e[46] !== v ? (ye = async (fe) => {
|
|
4563
|
+
await p(h.confirmTargetDelete) && s(fe).then(() => $(_ ? [..._.map(($e) => $e.id !== O ? $e : {
|
|
4564
4564
|
...$e,
|
|
4565
4565
|
templates: [...$e.templates.map((He) => He.id !== v ? He : {
|
|
4566
4566
|
...He,
|
|
4567
4567
|
targets: He.targets.filter((Ge) => Ge.id !== fe)
|
|
4568
4568
|
})]
|
|
4569
4569
|
})] : []));
|
|
4570
|
-
}, e[41] = _, e[42] =
|
|
4570
|
+
}, e[41] = _, e[42] = p, e[43] = h.confirmTargetDelete, e[44] = s, e[45] = O, e[46] = v, e[47] = ye) : ye = e[47];
|
|
4571
4571
|
const we = ye;
|
|
4572
4572
|
let Z;
|
|
4573
4573
|
e[48] !== t || e[49] !== l ? (Z = ((je = t.filter((fe) => (fe.targetSystem & l) > 0)) == null ? void 0 : je.map(jd)) ?? [], e[48] = t, e[49] = l, e[50] = Z) : Z = e[50];
|
|
@@ -4575,14 +4575,14 @@ const Rd = (n) => {
|
|
|
4575
4575
|
let Y;
|
|
4576
4576
|
e[51] !== k ? (Y = (fe) => k(Number(fe)), e[51] = k, e[52] = Y) : Y = e[52];
|
|
4577
4577
|
let ce;
|
|
4578
|
-
e[53] !==
|
|
4578
|
+
e[53] !== h.kind || e[54] !== Z || e[55] !== J || e[56] !== Y ? (ce = /* @__PURE__ */ r("div", { className: "col-2", children: /* @__PURE__ */ r(It, { label: h.kind, size: "sm", noEmptyOption: !0, options: Z, value: J, onChange: Y, dropdownWidth: 200 }) }), e[53] = h.kind, e[54] = Z, e[55] = J, e[56] = Y, e[57] = ce) : ce = e[57];
|
|
4579
4579
|
let le;
|
|
4580
4580
|
e[58] !== _ ? (le = (_ == null ? void 0 : _.map(zd)) ?? [], e[58] = _, e[59] = le) : le = e[59];
|
|
4581
4581
|
const oe = O ?? null;
|
|
4582
4582
|
let ae;
|
|
4583
4583
|
e[60] !== R ? (ae = (fe) => R(Number(fe)), e[60] = R, e[61] = ae) : ae = e[61];
|
|
4584
4584
|
let ge;
|
|
4585
|
-
e[62] !==
|
|
4585
|
+
e[62] !== h.subkind || e[63] !== le || e[64] !== oe || e[65] !== ae ? (ge = /* @__PURE__ */ r("div", { className: "col-3", children: /* @__PURE__ */ r(It, { label: h.subkind, size: "sm", noEmptyOption: !0, options: le, value: oe, onChange: ae, dropdownWidth: 250 }) }), e[62] = h.subkind, e[63] = le, e[64] = oe, e[65] = ae, e[66] = ge) : ge = e[66];
|
|
4586
4586
|
let Se;
|
|
4587
4587
|
e[67] !== ce || e[68] !== ge ? (Se = /* @__PURE__ */ T("div", { className: "row w-100", children: [
|
|
4588
4588
|
ce,
|
|
@@ -4594,7 +4594,7 @@ const Rd = (n) => {
|
|
|
4594
4594
|
let Ae;
|
|
4595
4595
|
e[71] !== m ? (Ae = /* @__PURE__ */ r(m, { icon: "edit" }), e[71] = m, e[72] = Ae) : Ae = e[72];
|
|
4596
4596
|
let Me;
|
|
4597
|
-
e[73] !==
|
|
4597
|
+
e[73] !== h.editTemplate || e[74] !== Oe || e[75] !== Ae ? (Me = /* @__PURE__ */ r(ei, { children: /* @__PURE__ */ r(tl, { hideOn: "always", cKey: "template-edit", onClick: _e, disabled: Oe, icon: Ae, children: h.editTemplate }) }), e[73] = h.editTemplate, e[74] = Oe, e[75] = Ae, e[76] = Me) : Me = e[76];
|
|
4598
4598
|
let Ke;
|
|
4599
4599
|
e[77] !== Se || e[78] !== Me ? (Ke = /* @__PURE__ */ T("div", { className: "d-flex justify-content-between align-items-center mb-2", children: [
|
|
4600
4600
|
Se,
|
|
@@ -4611,8 +4611,8 @@ const Rd = (n) => {
|
|
|
4611
4611
|
let xe;
|
|
4612
4612
|
e[90] !== te || e[91] !== (y == null ? void 0 : y.message) || e[92] !== v ? (xe = v && /* @__PURE__ */ r("div", { className: "h-75 w-75 overflow-hidden border rounded bg-white", children: /* @__PURE__ */ r("iframe", { title: "notification", className: "w-100 h-100", srcDoc: (y == null ? void 0 : y.message) ?? ((ze = te.find((fe) => fe.id === v)) == null ? void 0 : ze.textTemplate) }) }), e[90] = te, e[91] = y == null ? void 0 : y.message, e[92] = v, e[93] = xe) : xe = e[93];
|
|
4613
4613
|
let De;
|
|
4614
|
-
e[94] !== b || e[95] !== B || e[96] !==
|
|
4615
|
-
/* @__PURE__ */ r(bt, { type: "text", value: b, onChange: (fe) => w((fe == null ? void 0 : fe.toString()) ?? ""), InputContainer: sn, label:
|
|
4614
|
+
e[94] !== b || e[95] !== B || e[96] !== h.historyLookup || e[97] !== (y == null ? void 0 : y.id) || e[98] !== v ? (De = v && /* @__PURE__ */ r("div", { className: "w-25 h-75 overflow-y-scroll", children: B.length > 0 ? /* @__PURE__ */ T(pe, { children: [
|
|
4615
|
+
/* @__PURE__ */ r(bt, { type: "text", value: b, onChange: (fe) => w((fe == null ? void 0 : fe.toString()) ?? ""), InputContainer: sn, label: h.historyLookup, size: "sm", className: "mx-1 mb-1" }),
|
|
4616
4616
|
/* @__PURE__ */ r("div", { children: B.filter((fe) => {
|
|
4617
4617
|
var $e;
|
|
4618
4618
|
return b ? ($e = fe.recipients) == null ? void 0 : $e.map(Hd).join(",").toLocaleLowerCase().includes(b) : fe;
|
|
@@ -4623,7 +4623,7 @@ const Rd = (n) => {
|
|
|
4623
4623
|
/* @__PURE__ */ r("div", { className: "d-flex gap-1", children: ($e = fe.recipients) == null ? void 0 : $e.map(Vd) })
|
|
4624
4624
|
] }, fe.id);
|
|
4625
4625
|
}) })
|
|
4626
|
-
] }) : /* @__PURE__ */ r(St, { variant: "warning", children: "Empty" }) }), e[94] = b, e[95] = B, e[96] =
|
|
4626
|
+
] }) : /* @__PURE__ */ r(St, { variant: "warning", children: "Empty" }) }), e[94] = b, e[95] = B, e[96] = h.historyLookup, e[97] = y == null ? void 0 : y.id, e[98] = v, e[99] = De) : De = e[99];
|
|
4627
4627
|
let Le;
|
|
4628
4628
|
e[100] === Symbol.for("react.memo_cache_sentinel") ? (Le = () => x(!1), e[100] = Le) : Le = e[100];
|
|
4629
4629
|
let Ve;
|
|
@@ -4678,7 +4678,7 @@ const Ud = (n) => {
|
|
|
4678
4678
|
notifCentrum: a
|
|
4679
4679
|
} = o;
|
|
4680
4680
|
let s;
|
|
4681
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (s =
|
|
4681
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = ul(), e[0] = s) : s = e[0];
|
|
4682
4682
|
const d = s;
|
|
4683
4683
|
let u, c, f, m;
|
|
4684
4684
|
e[1] === Symbol.for("react.memo_cache_sentinel") ? (u = d.accessor("id", {
|
|
@@ -4706,22 +4706,22 @@ const Ud = (n) => {
|
|
|
4706
4706
|
hidden: !0
|
|
4707
4707
|
}
|
|
4708
4708
|
}), e[1] = u, e[2] = c, e[3] = f, e[4] = m) : (u = e[1], c = e[2], f = e[3], m = e[4]);
|
|
4709
|
-
let
|
|
4710
|
-
e[5] !== a.subkind ? (
|
|
4709
|
+
let h;
|
|
4710
|
+
e[5] !== a.subkind ? (h = d.accessor("actionKindName", {
|
|
4711
4711
|
header: a.subkind,
|
|
4712
4712
|
type: "string",
|
|
4713
4713
|
meta: {
|
|
4714
4714
|
filterVariant: "select"
|
|
4715
4715
|
}
|
|
4716
|
-
}), e[5] = a.subkind, e[6] =
|
|
4717
|
-
let
|
|
4718
|
-
e[7] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
4716
|
+
}), e[5] = a.subkind, e[6] = h) : h = e[6];
|
|
4717
|
+
let p;
|
|
4718
|
+
e[7] === Symbol.for("react.memo_cache_sentinel") ? (p = d.accessor("actionId", {
|
|
4719
4719
|
header: "notificationHistory.actionId",
|
|
4720
4720
|
type: "number",
|
|
4721
4721
|
meta: {
|
|
4722
4722
|
hidden: !0
|
|
4723
4723
|
}
|
|
4724
|
-
}), e[7] =
|
|
4724
|
+
}), e[7] = p) : p = e[7];
|
|
4725
4725
|
let v;
|
|
4726
4726
|
e[8] !== a.subkind ? (v = d.accessor("actionName", {
|
|
4727
4727
|
header: a.subkind,
|
|
@@ -4749,7 +4749,7 @@ const Ud = (n) => {
|
|
|
4749
4749
|
}
|
|
4750
4750
|
}), e[14] = S) : S = e[14];
|
|
4751
4751
|
let C;
|
|
4752
|
-
e[15] !== g || e[16] !== y || e[17] !==
|
|
4752
|
+
e[15] !== g || e[16] !== y || e[17] !== h || e[18] !== v ? (C = [u, c, f, m, h, p, v, g, y, S], e[15] = g, e[16] = y, e[17] = h, e[18] = v, e[19] = C) : C = e[19];
|
|
4753
4753
|
const x = C;
|
|
4754
4754
|
let b;
|
|
4755
4755
|
e[20] !== l ? (b = (L) => {
|
|
@@ -4776,15 +4776,15 @@ const Ud = (n) => {
|
|
|
4776
4776
|
} = o, [s, d] = ee(null), [u, c] = On("notif-user", null);
|
|
4777
4777
|
let f;
|
|
4778
4778
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (f = [], e[0] = f) : f = e[0];
|
|
4779
|
-
const [m,
|
|
4780
|
-
let
|
|
4781
|
-
e[1] !== u || e[2] !== t ? (
|
|
4779
|
+
const [m, h] = ee(f);
|
|
4780
|
+
let p, v;
|
|
4781
|
+
e[1] !== u || e[2] !== t ? (p = () => {
|
|
4782
4782
|
u !== null && t(u.id).then((k) => {
|
|
4783
|
-
|
|
4783
|
+
h(k);
|
|
4784
4784
|
}).catch((k) => {
|
|
4785
|
-
console.log(k),
|
|
4785
|
+
console.log(k), h([]);
|
|
4786
4786
|
});
|
|
4787
|
-
}, v = [u, t], e[1] = u, e[2] = t, e[3] =
|
|
4787
|
+
}, v = [u, t], e[1] = u, e[2] = t, e[3] = p, e[4] = v) : (p = e[3], v = e[4]), me(p, v);
|
|
4788
4788
|
let g;
|
|
4789
4789
|
e[5] !== c ? (g = (k) => c(k ? {
|
|
4790
4790
|
id: Number(k.id),
|
|
@@ -4824,7 +4824,7 @@ const Ud = (n) => {
|
|
|
4824
4824
|
imports: d
|
|
4825
4825
|
} = a;
|
|
4826
4826
|
let u;
|
|
4827
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u =
|
|
4827
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = ul(), e[0] = u) : u = e[0];
|
|
4828
4828
|
const c = u;
|
|
4829
4829
|
let f;
|
|
4830
4830
|
e[1] !== d.row ? (f = c.accessor("row", {
|
|
@@ -4838,15 +4838,15 @@ const Ud = (n) => {
|
|
|
4838
4838
|
type: "number",
|
|
4839
4839
|
size: 100
|
|
4840
4840
|
}), e[3] = d.column, e[4] = m) : m = e[4];
|
|
4841
|
-
let
|
|
4842
|
-
e[5] !== d.error ? (
|
|
4841
|
+
let h;
|
|
4842
|
+
e[5] !== d.error ? (h = c.accessor("error", {
|
|
4843
4843
|
header: d.error,
|
|
4844
4844
|
type: "string",
|
|
4845
4845
|
size: 500
|
|
4846
|
-
}), e[5] = d.error, e[6] =
|
|
4847
|
-
let
|
|
4848
|
-
e[7] !== f || e[8] !== m || e[9] !==
|
|
4849
|
-
const v =
|
|
4846
|
+
}), e[5] = d.error, e[6] = h) : h = e[6];
|
|
4847
|
+
let p;
|
|
4848
|
+
e[7] !== f || e[8] !== m || e[9] !== h ? (p = [f, m, h], e[7] = f, e[8] = m, e[9] = h, e[10] = p) : p = e[10];
|
|
4849
|
+
const v = p;
|
|
4850
4850
|
if (!t)
|
|
4851
4851
|
return null;
|
|
4852
4852
|
const g = t.success ? "success" : "danger", y = t.success ? d.importSuccess : d.importFailed;
|
|
@@ -4884,7 +4884,7 @@ const Ud = (n) => {
|
|
|
4884
4884
|
] }), e[31] = b, e[32] = w, e[33] = N) : N = e[33];
|
|
4885
4885
|
let k;
|
|
4886
4886
|
return e[34] !== N || e[35] !== g ? (k = /* @__PURE__ */ r(pe, { children: /* @__PURE__ */ r(St, { variant: g, size: "sm", className: "mb-2 p-2", children: N }) }), e[34] = N, e[35] = g, e[36] = k) : k = e[36], k;
|
|
4887
|
-
}, Gd = "_upload-box_9ka79_1", Kd = "_browse-btn_9ka79_15",
|
|
4887
|
+
}, Gd = "_upload-box_9ka79_1", Kd = "_browse-btn_9ka79_15", Tl = {
|
|
4888
4888
|
uploadBox: Gd,
|
|
4889
4889
|
browseBtn: Kd
|
|
4890
4890
|
}, Yd = (n) => {
|
|
@@ -4906,14 +4906,14 @@ const Ud = (n) => {
|
|
|
4906
4906
|
D.length > 0 && l(a === !0 ? [...D] : D[0]);
|
|
4907
4907
|
}, e[0] = a, e[1] = l, e[2] = f) : f = e[2];
|
|
4908
4908
|
const m = f;
|
|
4909
|
-
let
|
|
4910
|
-
e[3] !== m ? (
|
|
4909
|
+
let h;
|
|
4910
|
+
e[3] !== m ? (h = (D) => {
|
|
4911
4911
|
var I;
|
|
4912
4912
|
D.preventDefault();
|
|
4913
4913
|
const L = (I = D.dataTransfer) == null ? void 0 : I.files;
|
|
4914
4914
|
L && (L == null ? void 0 : L.length) > 0 && m(L);
|
|
4915
|
-
}, e[3] = m, e[4] =
|
|
4916
|
-
const
|
|
4915
|
+
}, e[3] = m, e[4] = h) : h = e[4];
|
|
4916
|
+
const p = h;
|
|
4917
4917
|
let v;
|
|
4918
4918
|
e[5] !== o || e[6] !== t || e[7] !== c.start || e[8] !== a || e[9] !== i ? (v = t !== null ? /* @__PURE__ */ T("div", { className: "d-flex border rounded p-1 ps-2 bg-white justify-content-between align-items-center mb-2", children: [
|
|
4919
4919
|
/* @__PURE__ */ r(K, { variant: "body", children: a ? t.map(qd).join(", ") : t.name }),
|
|
@@ -4924,8 +4924,8 @@ const Ud = (n) => {
|
|
|
4924
4924
|
] }) : null, e[5] = o, e[6] = t, e[7] = c.start, e[8] = a, e[9] = i, e[10] = v) : v = e[10];
|
|
4925
4925
|
const g = t !== null;
|
|
4926
4926
|
let y;
|
|
4927
|
-
e[11] !== g ? (y = z(
|
|
4928
|
-
[
|
|
4927
|
+
e[11] !== g ? (y = z(Tl.uploadBox, {
|
|
4928
|
+
[Tl.active]: g
|
|
4929
4929
|
}), e[11] = g, e[12] = y) : y = e[12];
|
|
4930
4930
|
let S;
|
|
4931
4931
|
e[13] !== c.dropHint ? (S = /* @__PURE__ */ r(K, { variant: "body", children: c.dropHint }), e[13] = c.dropHint, e[14] = S) : S = e[14];
|
|
@@ -4939,16 +4939,16 @@ const Ud = (n) => {
|
|
|
4939
4939
|
let b;
|
|
4940
4940
|
e[21] !== d ? (b = /* @__PURE__ */ r(d, { icon: "file-upload" }), e[21] = d, e[22] = b) : b = e[22];
|
|
4941
4941
|
let w;
|
|
4942
|
-
e[23] !== c.pickFileHint || e[24] !== b ? (w = /* @__PURE__ */ r("label", { htmlFor: "browse", className:
|
|
4942
|
+
e[23] !== c.pickFileHint || e[24] !== b ? (w = /* @__PURE__ */ r("label", { htmlFor: "browse", className: Tl.browseBtn, children: /* @__PURE__ */ T(K, { variant: "body", className: "d-flex gap-2 align-items-center", children: [
|
|
4943
4943
|
b,
|
|
4944
4944
|
c.pickFileHint
|
|
4945
4945
|
] }) }), e[23] = c.pickFileHint, e[24] = b, e[25] = w) : w = e[25];
|
|
4946
4946
|
let N;
|
|
4947
|
-
e[26] !==
|
|
4947
|
+
e[26] !== p || e[27] !== w || e[28] !== y || e[29] !== S || e[30] !== x ? (N = /* @__PURE__ */ T("div", { className: y, onDrop: p, onDragOver: Qd, children: [
|
|
4948
4948
|
S,
|
|
4949
4949
|
x,
|
|
4950
4950
|
w
|
|
4951
|
-
] }), e[26] =
|
|
4951
|
+
] }), e[26] = p, e[27] = w, e[28] = y, e[29] = S, e[30] = x, e[31] = N) : N = e[31];
|
|
4952
4952
|
let k;
|
|
4953
4953
|
return e[32] !== N || e[33] !== v ? (k = /* @__PURE__ */ T(pe, { children: [
|
|
4954
4954
|
v,
|
|
@@ -4973,7 +4973,7 @@ const Bh = (n) => {
|
|
|
4973
4973
|
texts: d
|
|
4974
4974
|
} = ne(ue), {
|
|
4975
4975
|
localizations: u
|
|
4976
|
-
} = d, [c, f] = ee(l[0].id), [m,
|
|
4976
|
+
} = d, [c, f] = ee(l[0].id), [m, h] = ee(null), [p, v] = ee(null);
|
|
4977
4977
|
let g;
|
|
4978
4978
|
e[0] !== s || e[1] !== c || e[2] !== m ? (g = async () => {
|
|
4979
4979
|
if (m === null)
|
|
@@ -4986,9 +4986,9 @@ const Bh = (n) => {
|
|
|
4986
4986
|
}, e[0] = s, e[1] = c, e[2] = m, e[3] = g) : g = e[3];
|
|
4987
4987
|
const y = g;
|
|
4988
4988
|
let S;
|
|
4989
|
-
e[4] !== a || e[5] !== y || e[6] !== c || e[7] !== l || e[8] !== u.importedLanguage || e[9] !==
|
|
4989
|
+
e[4] !== a || e[5] !== y || e[6] !== c || e[7] !== l || e[8] !== u.importedLanguage || e[9] !== p || e[10] !== m || e[11] !== i ? (S = p ? /* @__PURE__ */ r(Wd, { result: p, onClose: () => v(null), BnfTableComponent: a, tableIdentifier: i }) : /* @__PURE__ */ r(Yd, { file: m, onFileChange: h, onImport: y, children: /* @__PURE__ */ r("div", { style: {
|
|
4990
4990
|
minWidth: 140
|
|
4991
|
-
}, children: /* @__PURE__ */ r(It, { value: c, onChange: (x) => typeof x == "string" ? f(x) : null, options: l, label: u.importedLanguage }) }) }), e[4] = a, e[5] = y, e[6] = c, e[7] = l, e[8] = u.importedLanguage, e[9] =
|
|
4991
|
+
}, children: /* @__PURE__ */ r(It, { value: c, onChange: (x) => typeof x == "string" ? f(x) : null, options: l, label: u.importedLanguage }) }) }), e[4] = a, e[5] = y, e[6] = c, e[7] = l, e[8] = u.importedLanguage, e[9] = p, e[10] = m, e[11] = i, e[12] = S) : S = e[12];
|
|
4992
4992
|
let C;
|
|
4993
4993
|
return e[13] !== o || e[14] !== u.localizationImport || e[15] !== t || e[16] !== S ? (C = /* @__PURE__ */ r(o, { itemId: t, title: u.localizationImport, children: S }), e[13] = o, e[14] = u.localizationImport, e[15] = t, e[16] = S, e[17] = C) : C = e[17], C;
|
|
4994
4994
|
}, Xd = (n, e) => {
|
|
@@ -5037,7 +5037,7 @@ const Bh = (n) => {
|
|
|
5037
5037
|
}]
|
|
5038
5038
|
}]), await o();
|
|
5039
5039
|
}, e[4] = i, e[5] = o, e[6] = a, e[7] = t, e[8] = c, e[9] = m) : m = e[9];
|
|
5040
|
-
const
|
|
5040
|
+
const h = m, p = c !== u, v = t + i;
|
|
5041
5041
|
let g;
|
|
5042
5042
|
e[10] === Symbol.for("react.memo_cache_sentinel") ? (g = (x) => {
|
|
5043
5043
|
f(typeof x != "string" ? "" : x);
|
|
@@ -5045,10 +5045,10 @@ const Bh = (n) => {
|
|
|
5045
5045
|
let y;
|
|
5046
5046
|
e[11] !== v || e[12] !== c ? (y = /* @__PURE__ */ r(bt, { label: v, type: "text", value: c, onChange: g, InputContainer: Xe, withoutLabel: !0, className: "flex-grow-1" }), e[11] = v, e[12] = c, e[13] = y) : y = e[13];
|
|
5047
5047
|
let S;
|
|
5048
|
-
e[14] !== s || e[15] !== u || e[16] !==
|
|
5048
|
+
e[14] !== s || e[15] !== u || e[16] !== h || e[17] !== p ? (S = p ? /* @__PURE__ */ T("div", { className: "d-flex align-items-center gap-1", children: [
|
|
5049
5049
|
/* @__PURE__ */ r(ve, { color: "danger", onClick: () => f(u), children: /* @__PURE__ */ r(s, { icon: "cancel" }) }),
|
|
5050
|
-
/* @__PURE__ */ r(ve, { onClick:
|
|
5051
|
-
] }) : null, e[14] = s, e[15] = u, e[16] =
|
|
5050
|
+
/* @__PURE__ */ r(ve, { onClick: h, children: /* @__PURE__ */ r(s, { icon: "check" }) })
|
|
5051
|
+
] }) : null, e[14] = s, e[15] = u, e[16] = h, e[17] = p, e[18] = S) : S = e[18];
|
|
5052
5052
|
let C;
|
|
5053
5053
|
return e[19] !== y || e[20] !== S ? (C = /* @__PURE__ */ T("div", { className: "d-flex", children: [
|
|
5054
5054
|
y,
|
|
@@ -5091,10 +5091,10 @@ const Bh = (n) => {
|
|
|
5091
5091
|
ProjectIconComponent: c
|
|
5092
5092
|
} = ne(ue), {
|
|
5093
5093
|
localizations: f
|
|
5094
|
-
} = u, [m,
|
|
5095
|
-
let
|
|
5096
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
5097
|
-
const [v, g] = ee(
|
|
5094
|
+
} = u, [m, h] = ee(1);
|
|
5095
|
+
let p;
|
|
5096
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ new Map(), e[0] = p) : p = e[0];
|
|
5097
|
+
const [v, g] = ee(p), [y, S] = ee(null), [C, x] = ee("");
|
|
5098
5098
|
let b;
|
|
5099
5099
|
e[1] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ new Set(), e[1] = b) : b = e[1];
|
|
5100
5100
|
const [w, N] = ee(b);
|
|
@@ -5130,8 +5130,8 @@ const Bh = (n) => {
|
|
|
5130
5130
|
Array.from(v).forEach((xt) => {
|
|
5131
5131
|
Object.entries(xt[1]).forEach((Xt) => tt(Xt));
|
|
5132
5132
|
});
|
|
5133
|
-
const Qt = Array.from(Ee),
|
|
5134
|
-
Ie = ((
|
|
5133
|
+
const Qt = Array.from(Ee), Sl = s.find((xt) => xt.path === y);
|
|
5134
|
+
Ie = ((Sl == null ? void 0 : Sl.type) === "report" ? Qt.filter(uu) : Qt).map((xt) => ({
|
|
5135
5135
|
key: xt,
|
|
5136
5136
|
lngData: new Map(Array.from(w).map((Xt) => {
|
|
5137
5137
|
const Cn = v.get(Xt);
|
|
@@ -5148,7 +5148,7 @@ const Bh = (n) => {
|
|
|
5148
5148
|
const A = E, P = Math.ceil(A.length / Gn);
|
|
5149
5149
|
let O;
|
|
5150
5150
|
e[17] !== P ? (O = (Ie) => {
|
|
5151
|
-
Ie !== null &&
|
|
5151
|
+
Ie !== null && h(() => Math.max(1, Math.min(Ie, P)));
|
|
5152
5152
|
}, e[17] = P, e[18] = O) : O = e[18];
|
|
5153
5153
|
const R = O;
|
|
5154
5154
|
let F;
|
|
@@ -5229,13 +5229,13 @@ const Bh = (n) => {
|
|
|
5229
5229
|
let ge;
|
|
5230
5230
|
e[67] === Symbol.for("react.memo_cache_sentinel") ? (ge = /* @__PURE__ */ r(kr, { fileExtension: "xls" }), e[67] = ge) : ge = e[67];
|
|
5231
5231
|
let Se;
|
|
5232
|
-
e[68] !== o || e[69] !== f.xlsExport ? (Se = /* @__PURE__ */ r(
|
|
5232
|
+
e[68] !== o || e[69] !== f.xlsExport ? (Se = /* @__PURE__ */ r(tl, { cKey: "export", hideOn: "always", onClick: o, icon: ge, children: f.xlsExport }), e[68] = o, e[69] = f.xlsExport, e[70] = Se) : Se = e[70];
|
|
5233
5233
|
let _e;
|
|
5234
5234
|
e[71] !== i ? (_e = i("localizationImport"), e[71] = i, e[72] = _e) : _e = e[72];
|
|
5235
5235
|
let Oe;
|
|
5236
5236
|
e[73] !== c ? (Oe = /* @__PURE__ */ r(c, { icon: "link" }), e[73] = c, e[74] = Oe) : Oe = e[74];
|
|
5237
5237
|
let Ae;
|
|
5238
|
-
e[75] !== f.import || e[76] !== _e || e[77] !== Oe ? (Ae = /* @__PURE__ */ r(
|
|
5238
|
+
e[75] !== f.import || e[76] !== _e || e[77] !== Oe ? (Ae = /* @__PURE__ */ r(tl, { cKey: "import", hideOn: "always", to: _e, icon: Oe, children: f.import }), e[75] = f.import, e[76] = _e, e[77] = Oe, e[78] = Ae) : Ae = e[78];
|
|
5239
5239
|
let Me;
|
|
5240
5240
|
e[79] !== Se || e[80] !== Ae ? (Me = /* @__PURE__ */ T(ei, { children: [
|
|
5241
5241
|
Se,
|
|
@@ -5373,8 +5373,8 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5373
5373
|
let u;
|
|
5374
5374
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (u = [], o[0] = u) : u = o[0];
|
|
5375
5375
|
const [c, f] = ee(u), m = n === "";
|
|
5376
|
-
let
|
|
5377
|
-
o[1] !== a || o[2] !== l || o[3] !== m || o[4] !== e || o[5] !== t || o[6] !== n ? (
|
|
5376
|
+
let h;
|
|
5377
|
+
o[1] !== a || o[2] !== l || o[3] !== m || o[4] !== e || o[5] !== t || o[6] !== n ? (h = () => {
|
|
5378
5378
|
f([]), !(e.length < Bi) && (d(!0), a.get(Ml(t, {
|
|
5379
5379
|
path: {
|
|
5380
5380
|
query: e
|
|
@@ -5391,8 +5391,8 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5391
5391
|
}).catch(() => {
|
|
5392
5392
|
d(!1);
|
|
5393
5393
|
}));
|
|
5394
|
-
}, o[1] = a, o[2] = l, o[3] = m, o[4] = e, o[5] = t, o[6] = n, o[7] =
|
|
5395
|
-
const
|
|
5394
|
+
}, o[1] = a, o[2] = l, o[3] = m, o[4] = e, o[5] = t, o[6] = n, o[7] = h) : h = o[7];
|
|
5395
|
+
const p = h;
|
|
5396
5396
|
let v;
|
|
5397
5397
|
e: {
|
|
5398
5398
|
if (i === void 0) {
|
|
@@ -5422,9 +5422,9 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5422
5422
|
o[13] !== c || o[14] !== g ? (y = g.concat(c), o[13] = c, o[14] = g, o[15] = y) : y = o[15];
|
|
5423
5423
|
const S = y;
|
|
5424
5424
|
let C, x;
|
|
5425
|
-
o[16] !==
|
|
5426
|
-
|
|
5427
|
-
}, x = [
|
|
5425
|
+
o[16] !== p ? (C = () => {
|
|
5426
|
+
p();
|
|
5427
|
+
}, x = [p], o[16] = p, o[17] = C, o[18] = x) : (C = o[17], x = o[18]), me(C, x);
|
|
5428
5428
|
let b;
|
|
5429
5429
|
return o[19] !== s || o[20] !== S ? (b = {
|
|
5430
5430
|
isLoading: s,
|
|
@@ -5484,13 +5484,13 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5484
5484
|
e[12] === Symbol.for("react.memo_cache_sentinel") ? (f = z("search-item d-flex gap-3 align-items-center justify-content-between", tn.item), e[12] = f) : f = e[12];
|
|
5485
5485
|
let m;
|
|
5486
5486
|
e[13] !== c ? (m = /* @__PURE__ */ r(K, { variant: "body2", className: "text-nowrap text-truncate", children: c }), e[13] = c, e[14] = m) : m = e[14];
|
|
5487
|
-
let p;
|
|
5488
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r(K, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ r(_r, {}) }), e[15] = p) : p = e[15];
|
|
5489
5487
|
let h;
|
|
5490
|
-
|
|
5488
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ r(K, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ r(_r, {}) }), e[15] = h) : h = e[15];
|
|
5489
|
+
let p;
|
|
5490
|
+
return e[16] !== d || e[17] !== i || e[18] !== m ? (p = /* @__PURE__ */ T(at, { to: d, className: f, onClick: i, children: [
|
|
5491
5491
|
m,
|
|
5492
|
-
|
|
5493
|
-
] }), e[16] = d, e[17] = i, e[18] = m, e[19] =
|
|
5492
|
+
h
|
|
5493
|
+
] }), e[16] = d, e[17] = i, e[18] = m, e[19] = p) : p = e[19], p;
|
|
5494
5494
|
}, Tu = (n) => {
|
|
5495
5495
|
const e = V.c(13), {
|
|
5496
5496
|
show: t,
|
|
@@ -5510,8 +5510,8 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5510
5510
|
e[1] !== t ? (m = z("luminus-app-search-dropdown shadow rounded", tn.dropdown, {
|
|
5511
5511
|
[tn.open]: t
|
|
5512
5512
|
}), e[1] = t, e[2] = m) : m = e[2];
|
|
5513
|
-
let
|
|
5514
|
-
e[3] !== u || e[4] !== o || e[5] !== a || e[6] !== i || e[7] !== l || e[8] !== s ? (
|
|
5513
|
+
let h;
|
|
5514
|
+
e[3] !== u || e[4] !== o || e[5] !== a || e[6] !== i || e[7] !== l || e[8] !== s ? (h = a ? /* @__PURE__ */ r("div", { className: tn.loadingContainer, children: /* @__PURE__ */ r(Dr, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ r("div", { className: tn.groupsContainer, children: o == null ? void 0 : o.map((v) => {
|
|
5515
5515
|
var g;
|
|
5516
5516
|
return /* @__PURE__ */ T("div", { className: z(tn.group), children: [
|
|
5517
5517
|
/* @__PURE__ */ T(at, { to: `/search?query=${l}&type=${v.key.category}`, className: z("group-header", tn.header), onClick: i, children: [
|
|
@@ -5526,9 +5526,9 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5526
5526
|
] }),
|
|
5527
5527
|
(g = v.items) == null ? void 0 : g.map((y, S) => /* @__PURE__ */ r(Du, { item: y, onCancel: i, searchTypes: s }, S))
|
|
5528
5528
|
] }, v.key.category);
|
|
5529
|
-
}) }), e[3] = u, e[4] = o, e[5] = a, e[6] = i, e[7] = l, e[8] = s, e[9] =
|
|
5530
|
-
let
|
|
5531
|
-
return e[10] !== m || e[11] !==
|
|
5529
|
+
}) }), e[3] = u, e[4] = o, e[5] = a, e[6] = i, e[7] = l, e[8] = s, e[9] = h) : h = e[9];
|
|
5530
|
+
let p;
|
|
5531
|
+
return e[10] !== m || e[11] !== h ? (p = /* @__PURE__ */ r("div", { ref: c, className: m, children: h }), e[10] = m, e[11] = h, e[12] = p) : p = e[12], p;
|
|
5532
5532
|
}, zh = (n) => {
|
|
5533
5533
|
var X;
|
|
5534
5534
|
const e = V.c(48), {
|
|
@@ -5543,10 +5543,10 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5543
5543
|
texts: c
|
|
5544
5544
|
} = ne(ue), {
|
|
5545
5545
|
appSearch: f
|
|
5546
|
-
} = c, [m,
|
|
5547
|
-
let
|
|
5548
|
-
e[0] !== t || e[1] !== m ? (
|
|
5549
|
-
const v =
|
|
5546
|
+
} = c, [m, h] = ee(t.length > 0 ? ((X = t.at(0)) == null ? void 0 : X.key) ?? null : null);
|
|
5547
|
+
let p;
|
|
5548
|
+
e[0] !== t || e[1] !== m ? (p = t.find((ie) => ie.key === m) ?? null, e[0] = t, e[1] = m, e[2] = p) : p = e[2];
|
|
5549
|
+
const v = p, [g, y] = ee(""), [S] = Jl(g, 500), {
|
|
5550
5550
|
isLoading: C,
|
|
5551
5551
|
searchItems: x
|
|
5552
5552
|
} = xa(m, S, d, !1, s), [b, w] = ee(!1);
|
|
@@ -5572,7 +5572,7 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5572
5572
|
let A;
|
|
5573
5573
|
e[19] === Symbol.for("react.memo_cache_sentinel") ? (A = z("p-1 rounded", Zt.inputGroupText, Zt.left), e[19] = A) : A = e[19];
|
|
5574
5574
|
let P;
|
|
5575
|
-
e[20] !== t || e[21] !== v ? (P = /* @__PURE__ */ r(
|
|
5575
|
+
e[20] !== t || e[21] !== v ? (P = /* @__PURE__ */ r(el.Text, { className: A, children: /* @__PURE__ */ r(Su, { searchTypes: t, selectedType: v, setSelectedType: h }) }), e[20] = t, e[21] = v, e[22] = P) : P = e[22];
|
|
5576
5576
|
const O = f.searchPlaceholder;
|
|
5577
5577
|
let R;
|
|
5578
5578
|
e[23] === Symbol.for("react.memo_cache_sentinel") ? (R = z("luminus-app-search-input", Zt.input), e[23] = R) : R = e[23];
|
|
@@ -5588,13 +5588,13 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5588
5588
|
let H;
|
|
5589
5589
|
e[31] === Symbol.for("react.memo_cache_sentinel") ? (H = z("p-0 rounded", Zt.inputGroupText, Zt.right), e[31] = H) : H = e[31];
|
|
5590
5590
|
let M;
|
|
5591
|
-
e[32] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ r(
|
|
5591
|
+
e[32] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ r(el.Text, { className: H, children: /* @__PURE__ */ r("button", { type: "submit", className: z("text-primary", Zt.submitButton), children: /* @__PURE__ */ r(Tr, {}) }) }), e[32] = M) : M = e[32];
|
|
5592
5592
|
let U;
|
|
5593
5593
|
e[33] === Symbol.for("react.memo_cache_sentinel") ? (U = () => w(!1), e[33] = U) : U = e[33];
|
|
5594
5594
|
let W;
|
|
5595
5595
|
e[34] !== S || e[35] !== C || e[36] !== x || e[37] !== t || e[38] !== b ? (W = /* @__PURE__ */ r(Tu, { query: S, searchTypes: t, show: b, onCancel: U, groups: x, isLoading: C }), e[34] = S, e[35] = C, e[36] = x, e[37] = t, e[38] = b, e[39] = W) : W = e[39];
|
|
5596
5596
|
let G;
|
|
5597
|
-
e[40] !== P || e[41] !== j || e[42] !== W || e[43] !== E ? (G = /* @__PURE__ */ T(
|
|
5597
|
+
e[40] !== P || e[41] !== j || e[42] !== W || e[43] !== E ? (G = /* @__PURE__ */ T(el, { className: E, children: [
|
|
5598
5598
|
P,
|
|
5599
5599
|
j,
|
|
5600
5600
|
M,
|
|
@@ -5611,8 +5611,8 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5611
5611
|
} = ne(ue);
|
|
5612
5612
|
let o;
|
|
5613
5613
|
if (e[0] !== t.type || e[1] !== l) {
|
|
5614
|
-
let
|
|
5615
|
-
e[3] !== t.type ? (
|
|
5614
|
+
let p;
|
|
5615
|
+
e[3] !== t.type ? (p = (v) => v.key === t.type, e[3] = t.type, e[4] = p) : p = e[4], o = l.find(p), e[0] = t.type, e[1] = l, e[2] = o;
|
|
5616
5616
|
} else
|
|
5617
5617
|
o = e[2];
|
|
5618
5618
|
const a = o;
|
|
@@ -5626,11 +5626,11 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5626
5626
|
e[12] !== c ? (f = /* @__PURE__ */ r(K, { variant: "body", children: c }), e[12] = c, e[13] = f) : f = e[13];
|
|
5627
5627
|
let m;
|
|
5628
5628
|
e[14] !== i ? (m = /* @__PURE__ */ r(i, { icon: "chevron-right", className: "text-primary" }), e[14] = i, e[15] = m) : m = e[15];
|
|
5629
|
-
let
|
|
5630
|
-
return e[16] !== d || e[17] !== f || e[18] !== m ? (
|
|
5629
|
+
let h;
|
|
5630
|
+
return e[16] !== d || e[17] !== f || e[18] !== m ? (h = /* @__PURE__ */ T(at, { to: d, className: "text-nowrap list-group-item list-group-item-action d-flex justify-content-between align-items-center", children: [
|
|
5631
5631
|
f,
|
|
5632
5632
|
m
|
|
5633
|
-
] }), e[16] = d, e[17] = f, e[18] = m, e[19] =
|
|
5633
|
+
] }), e[16] = d, e[17] = f, e[18] = m, e[19] = h) : h = e[19], h;
|
|
5634
5634
|
}, Hh = (n) => {
|
|
5635
5635
|
var g, y;
|
|
5636
5636
|
const e = V.c(11), {
|
|
@@ -5647,14 +5647,14 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5647
5647
|
searchItems: f,
|
|
5648
5648
|
isLoading: m
|
|
5649
5649
|
} = xa(l, t, o, !0, a);
|
|
5650
|
-
let
|
|
5651
|
-
if (e[0] !== u || e[1] !== f ? (
|
|
5650
|
+
let h, p;
|
|
5651
|
+
if (e[0] !== u || e[1] !== f ? (h = () => {
|
|
5652
5652
|
var S;
|
|
5653
5653
|
u || f === null || f.length === 0 || c(((S = f[0].key) == null ? void 0 : S.category) ?? "");
|
|
5654
|
-
},
|
|
5654
|
+
}, p = [f, u], e[0] = u, e[1] = f, e[2] = h, e[3] = p) : (h = e[2], p = e[3]), me(h, p), f === null)
|
|
5655
5655
|
return null;
|
|
5656
5656
|
let v;
|
|
5657
|
-
return e[4] !== u || e[5] !== d || e[6] !== i || e[7] !== m || e[8] !== t || e[9] !== f ? (v = /* @__PURE__ */ r(Ft, { variant: "fullScreen", children: m ? /* @__PURE__ */ r(
|
|
5657
|
+
return e[4] !== u || e[5] !== d || e[6] !== i || e[7] !== m || e[8] !== t || e[9] !== f ? (v = /* @__PURE__ */ r(Ft, { variant: "fullScreen", children: m ? /* @__PURE__ */ r(Zn, {}) : f.length === 0 ? /* @__PURE__ */ r("div", { className: "alert alert-warning", children: /* @__PURE__ */ r(K, { variant: "body", children: d.noResultsFor(t) }) }) : /* @__PURE__ */ T(pe, { children: [
|
|
5658
5658
|
/* @__PURE__ */ r(ga, { activeTab: u, onSelect: (S) => c((S == null ? void 0 : S.toString()) ?? ""), children: f.map(Lu) }),
|
|
5659
5659
|
/* @__PURE__ */ r(rd, { eventKey: u, activeTab: u, fullHeightNoOverflow: !0, children: /* @__PURE__ */ r("div", { className: "list-group h-100 overflow-auto", children: (y = (g = f.find((S) => S.key.category === u)) == null ? void 0 : g.items) == null ? void 0 : y.map((S, C) => /* @__PURE__ */ r($u, { item: S, searchTypes: i }, C)) }) })
|
|
5660
5660
|
] }) }), e[4] = u, e[5] = d, e[6] = i, e[7] = m, e[8] = t, e[9] = f, e[10] = v) : v = e[10], v;
|
|
@@ -5685,18 +5685,18 @@ const Vh = () => {
|
|
|
5685
5685
|
userSettings: s
|
|
5686
5686
|
} = a, {
|
|
5687
5687
|
zStringRequired: d
|
|
5688
|
-
} =
|
|
5688
|
+
} = fl(), {
|
|
5689
5689
|
addNotification: u
|
|
5690
5690
|
} = dn(), c = ut(), {
|
|
5691
5691
|
startLoading: f,
|
|
5692
5692
|
stopLoading: m
|
|
5693
|
-
} = ne(Pt), [
|
|
5693
|
+
} = ne(Pt), [h, p] = ee(null);
|
|
5694
5694
|
let v, g;
|
|
5695
5695
|
if (e[0] !== d) {
|
|
5696
5696
|
const B = Eo.object({
|
|
5697
5697
|
name: d()
|
|
5698
5698
|
});
|
|
5699
|
-
g =
|
|
5699
|
+
g = gl, v = ml(B), e[0] = d, e[1] = v, e[2] = g;
|
|
5700
5700
|
} else
|
|
5701
5701
|
v = e[1], g = e[2];
|
|
5702
5702
|
let y;
|
|
@@ -5711,13 +5711,13 @@ const Vh = () => {
|
|
|
5711
5711
|
}).then(Ou).catch(Pu).finally(() => m("localStorageSettingPost"))), e[5] = o, e[6] = c, e[7] = f, e[8] = m, e[9] = C) : C = e[9];
|
|
5712
5712
|
const x = C;
|
|
5713
5713
|
let b;
|
|
5714
|
-
e[10] !== u || e[11] !==
|
|
5715
|
-
await x(B.name, JSON.stringify(
|
|
5716
|
-
}, e[10] = u, e[11] =
|
|
5714
|
+
e[10] !== u || e[11] !== h || e[12] !== i || e[13] !== x || e[14] !== s.localStorageCreateBackupSuccess ? (b = async (B) => {
|
|
5715
|
+
await x(B.name, JSON.stringify(h)) && (u(s.localStorageCreateBackupSuccess, "success"), i());
|
|
5716
|
+
}, e[10] = u, e[11] = h, e[12] = i, e[13] = x, e[14] = s.localStorageCreateBackupSuccess, e[15] = b) : b = e[15];
|
|
5717
5717
|
const w = b;
|
|
5718
5718
|
let N, k;
|
|
5719
5719
|
e[16] !== t ? (N = () => {
|
|
5720
|
-
t &&
|
|
5720
|
+
t && p(vs());
|
|
5721
5721
|
}, k = [t], e[16] = t, e[17] = N, e[18] = k) : (N = e[17], k = e[18]), me(N, k);
|
|
5722
5722
|
let D;
|
|
5723
5723
|
e[19] !== l ? (D = () => l(), e[19] = l, e[20] = D) : D = e[20];
|
|
@@ -5726,9 +5726,9 @@ const Vh = () => {
|
|
|
5726
5726
|
let I;
|
|
5727
5727
|
e[23] !== S || e[24] !== w ? (I = S.handleSubmit(w), e[23] = S, e[24] = w, e[25] = I) : I = e[25];
|
|
5728
5728
|
let _;
|
|
5729
|
-
if (e[26] !==
|
|
5729
|
+
if (e[26] !== h || e[27] !== s) {
|
|
5730
5730
|
let B;
|
|
5731
|
-
e[29] !==
|
|
5731
|
+
e[29] !== h ? (B = Object.keys(h || {}), e[29] = h, e[30] = B) : B = e[30], _ = s.localStorageCreateBackupInfo(B.length), e[26] = h, e[27] = s, e[28] = _;
|
|
5732
5732
|
} else
|
|
5733
5733
|
_ = e[28];
|
|
5734
5734
|
let $;
|
|
@@ -5748,7 +5748,7 @@ const Vh = () => {
|
|
|
5748
5748
|
P
|
|
5749
5749
|
] }), e[40] = I, e[41] = A, e[42] = P, e[43] = O) : O = e[43];
|
|
5750
5750
|
let R;
|
|
5751
|
-
e[44] !== S || e[45] !== O ? (R = /* @__PURE__ */ r(
|
|
5751
|
+
e[44] !== S || e[45] !== O ? (R = /* @__PURE__ */ r(hl, { ...S, children: O }), e[44] = S, e[45] = O, e[46] = R) : R = e[46];
|
|
5752
5752
|
let F;
|
|
5753
5753
|
return e[47] !== t || e[48] !== L || e[49] !== R || e[50] !== D ? (F = /* @__PURE__ */ T(Te, { show: t, onHide: D, children: [
|
|
5754
5754
|
L,
|
|
@@ -5779,8 +5779,8 @@ const Kn = {
|
|
|
5779
5779
|
userSettings: f
|
|
5780
5780
|
} = c, {
|
|
5781
5781
|
confirm: m
|
|
5782
|
-
} = jt(),
|
|
5783
|
-
startLoading:
|
|
5782
|
+
} = jt(), h = ut(), {
|
|
5783
|
+
startLoading: p,
|
|
5784
5784
|
stopLoading: v
|
|
5785
5785
|
} = ne(Pt), {
|
|
5786
5786
|
addNotification: g
|
|
@@ -5790,7 +5790,7 @@ const Kn = {
|
|
|
5790
5790
|
reloadData: b
|
|
5791
5791
|
} = nt(a);
|
|
5792
5792
|
let w;
|
|
5793
|
-
e[0] !== d || e[1] !==
|
|
5793
|
+
e[0] !== d || e[1] !== h || e[2] !== p || e[3] !== v ? (w = async (F) => (p("localStorageSettingDelete"), h.delete(`${d}/${F}`).then(Au).catch(Ru).finally(() => v("localStorageSettingDelete"))), e[0] = d, e[1] = h, e[2] = p, e[3] = v, e[4] = w) : w = e[4];
|
|
5794
5794
|
const N = w;
|
|
5795
5795
|
let k;
|
|
5796
5796
|
e[5] !== g || e[6] !== m || e[7] !== N || e[8] !== x || e[9] !== f.localStorageDeleteBackupConfirm || e[10] !== f.localStorageDeleteBackupSuccess ? (k = async (F) => {
|
|
@@ -5876,9 +5876,9 @@ const Wh = () => {
|
|
|
5876
5876
|
e[8] !== f ? (w = (N) => f.some((k) => k.group === N.id), e[8] = f, e[9] = w) : w = e[9], m = l.filter(w), e[5] = f, e[6] = l, e[7] = m;
|
|
5877
5877
|
} else
|
|
5878
5878
|
m = e[7];
|
|
5879
|
-
const
|
|
5880
|
-
let
|
|
5881
|
-
e[10] !== o ? (
|
|
5879
|
+
const h = m;
|
|
5880
|
+
let p;
|
|
5881
|
+
e[10] !== o ? (p = () => o(), e[10] = o, e[11] = p) : p = e[11];
|
|
5882
5882
|
let v;
|
|
5883
5883
|
e[12] !== s.pickWidgetToAdd ? (v = /* @__PURE__ */ r(Te.Title, { className: "w-100", children: s.pickWidgetToAdd }), e[12] = s.pickWidgetToAdd, e[13] = v) : v = e[13];
|
|
5884
5884
|
let g;
|
|
@@ -5898,27 +5898,27 @@ const Wh = () => {
|
|
|
5898
5898
|
S
|
|
5899
5899
|
] }), e[19] = v, e[20] = S, e[21] = C) : C = e[21];
|
|
5900
5900
|
let x;
|
|
5901
|
-
e[22] !== f || e[23] !==
|
|
5902
|
-
|
|
5901
|
+
e[22] !== f || e[23] !== h || e[24] !== a || e[25] !== s.noWidgets || e[26] !== s.otherWidgets ? (x = /* @__PURE__ */ r(Te.Body, { className: "flex-column gap-3", children: f.length === 0 ? /* @__PURE__ */ r(St, { variant: "warning", children: s.noWidgets }) : /* @__PURE__ */ T(pe, { children: [
|
|
5902
|
+
h.map((w) => /* @__PURE__ */ r(ol, { defaultOpen: !0, title: w.name ?? "", children: /* @__PURE__ */ r("div", { className: "p-1", children: /* @__PURE__ */ r("div", { className: z("row gx-3 gy-3", wt.widgetsRow), children: f.filter((N) => N.group === w.id).map((N) => /* @__PURE__ */ r("div", { className: "col col-4", children: /* @__PURE__ */ T("div", { role: "button", className: z("p-0 pt-2 bg-white rounded shadow-sm", wt.widget), onClick: () => a(N.id), children: [
|
|
5903
5903
|
/* @__PURE__ */ r("div", { className: wt.widgetImg, style: {
|
|
5904
5904
|
backgroundImage: N.img ? `url(${N.img})` : void 0
|
|
5905
5905
|
} }),
|
|
5906
5906
|
/* @__PURE__ */ r("div", { className: wt.widgetTitleSpacer }),
|
|
5907
5907
|
/* @__PURE__ */ r("div", { className: z(wt.widgetTitle, "rounded"), children: /* @__PURE__ */ r(K, { variant: "body", className: z(wt.title, "text-white text-truncate"), children: N.name }) })
|
|
5908
5908
|
] }, N.id) })) }) }) }, w.id)),
|
|
5909
|
-
f.some(Uu) && /* @__PURE__ */ r(
|
|
5909
|
+
f.some(Uu) && /* @__PURE__ */ r(ol, { defaultOpen: !0, title: s.otherWidgets, children: /* @__PURE__ */ r("div", { className: "p-1", children: /* @__PURE__ */ r("div", { className: z("row gx-3 gy-3", wt.widgetsRow), children: f.filter(Wu).map((w) => /* @__PURE__ */ r("div", { className: "col col-4", children: /* @__PURE__ */ T("div", { role: "button", className: z("p-0 pt-2 bg-white rounded shadow-sm", wt.widget), onClick: () => a(w.id), children: [
|
|
5910
5910
|
/* @__PURE__ */ r("div", { className: wt.widgetImg, style: {
|
|
5911
5911
|
backgroundImage: w.img ? `url(${w.img})` : void 0
|
|
5912
5912
|
} }),
|
|
5913
5913
|
/* @__PURE__ */ r("div", { className: wt.widgetTitleSpacer }),
|
|
5914
5914
|
/* @__PURE__ */ r("div", { className: z(wt.widgetTitle, "rounded"), children: /* @__PURE__ */ r(K, { variant: "body", className: z(wt.title, "text-white text-truncate"), children: w.name }) })
|
|
5915
5915
|
] }, w.id) })) }) }) })
|
|
5916
|
-
] }) }), e[22] = f, e[23] =
|
|
5916
|
+
] }) }), e[22] = f, e[23] = h, e[24] = a, e[25] = s.noWidgets, e[26] = s.otherWidgets, e[27] = x) : x = e[27];
|
|
5917
5917
|
let b;
|
|
5918
|
-
return e[28] !== t || e[29] !==
|
|
5918
|
+
return e[28] !== t || e[29] !== p || e[30] !== C || e[31] !== x ? (b = /* @__PURE__ */ T(Te, { show: t, onHide: p, size: "lg", children: [
|
|
5919
5919
|
C,
|
|
5920
5920
|
x
|
|
5921
|
-
] }), e[28] = t, e[29] =
|
|
5921
|
+
] }), e[28] = t, e[29] = p, e[30] = C, e[31] = x, e[32] = b) : b = e[32], b;
|
|
5922
5922
|
};
|
|
5923
5923
|
function Uu(n) {
|
|
5924
5924
|
return n.group === void 0;
|
|
@@ -5937,7 +5937,7 @@ const Gu = "_widget_19xgl_1", Ku = "_mobile_19xgl_7", ji = {
|
|
|
5937
5937
|
texts: o
|
|
5938
5938
|
} = n, [a, s] = ee(!1), {
|
|
5939
5939
|
isMobile: d
|
|
5940
|
-
} =
|
|
5940
|
+
} = dl();
|
|
5941
5941
|
let u;
|
|
5942
5942
|
e[0] !== d ? (u = z("luminus-empty-widget", ji.widget, {
|
|
5943
5943
|
[ji.mobile]: d
|
|
@@ -5948,17 +5948,17 @@ const Gu = "_widget_19xgl_1", Ku = "_mobile_19xgl_7", ji = {
|
|
|
5948
5948
|
e[3] !== u ? (f = /* @__PURE__ */ r("div", { className: u, children: c }), e[3] = u, e[4] = f) : f = e[4];
|
|
5949
5949
|
let m;
|
|
5950
5950
|
e[5] === Symbol.for("react.memo_cache_sentinel") ? (m = () => s(!1), e[5] = m) : m = e[5];
|
|
5951
|
-
let p;
|
|
5952
|
-
e[6] !== i ? (p = (g) => {
|
|
5953
|
-
s(!1), i(g);
|
|
5954
|
-
}, e[6] = i, e[7] = p) : p = e[7];
|
|
5955
5951
|
let h;
|
|
5956
|
-
e[
|
|
5952
|
+
e[6] !== i ? (h = (g) => {
|
|
5953
|
+
s(!1), i(g);
|
|
5954
|
+
}, e[6] = i, e[7] = h) : h = e[7];
|
|
5955
|
+
let p;
|
|
5956
|
+
e[8] !== l || e[9] !== a || e[10] !== h || e[11] !== o || e[12] !== t ? (p = /* @__PURE__ */ r(Vu, { show: a, widgetGroups: t, widgets: l, handleClose: m, onWidgetPicked: h, texts: o }), e[8] = l, e[9] = a, e[10] = h, e[11] = o, e[12] = t, e[13] = p) : p = e[13];
|
|
5957
5957
|
let v;
|
|
5958
|
-
return e[14] !== f || e[15] !==
|
|
5958
|
+
return e[14] !== f || e[15] !== p ? (v = /* @__PURE__ */ T(pe, { children: [
|
|
5959
5959
|
f,
|
|
5960
|
-
|
|
5961
|
-
] }), e[14] = f, e[15] =
|
|
5960
|
+
p
|
|
5961
|
+
] }), e[14] = f, e[15] = p, e[16] = v) : v = e[16], v;
|
|
5962
5962
|
}, Yu = "_dashboard_1gf59_1", qu = "_widgets-grid_1gf59_1", Qu = "_widget-wrapper_1gf59_8", Xu = "_full-width_1gf59_13", Zu = "_widget-edit_1gf59_16", Ju = "_remove-icon_1gf59_19", ef = "_full-width-icon_1gf59_26", tf = "_widget-edit-overlay_1gf59_36", nf = "_mobile_1gf59_45", Et = {
|
|
5963
5963
|
dashboard: Yu,
|
|
5964
5964
|
widgetsGrid: qu,
|
|
@@ -5987,27 +5987,27 @@ const Gu = "_widget_19xgl_1", Ku = "_mobile_19xgl_7", ji = {
|
|
|
5987
5987
|
} = f;
|
|
5988
5988
|
if (!t)
|
|
5989
5989
|
return null;
|
|
5990
|
-
let
|
|
5991
|
-
e[0] !== o || e[1] !== i || e[2] !== t.id ? (
|
|
5990
|
+
let h;
|
|
5991
|
+
e[0] !== o || e[1] !== i || e[2] !== t.id ? (h = z(Et.widgetWrapper, {
|
|
5992
5992
|
[Et.widgetEdit]: o && t.id !== -1
|
|
5993
5993
|
}, {
|
|
5994
5994
|
[Et.fullWidth]: i
|
|
5995
|
-
}), e[0] = o, e[1] = i, e[2] = t.id, e[3] =
|
|
5996
|
-
let
|
|
5997
|
-
e[4] !== o || e[5] !== i || e[6] !== l || e[7] !== d || e[8] !== u ? (
|
|
5995
|
+
}), e[0] = o, e[1] = i, e[2] = t.id, e[3] = h) : h = e[3];
|
|
5996
|
+
let p;
|
|
5997
|
+
e[4] !== o || e[5] !== i || e[6] !== l || e[7] !== d || e[8] !== u ? (p = o && /* @__PURE__ */ T(pe, { children: [
|
|
5998
5998
|
/* @__PURE__ */ r(ve, { color: "danger", onClick: () => d(l), className: z(Et.removeIcon), children: /* @__PURE__ */ r(Lr, {}) }),
|
|
5999
5999
|
/* @__PURE__ */ r(ve, { color: i ? "danger" : "primary", onClick: () => u(l), className: z(Et.fullWidthIcon), children: /* @__PURE__ */ r(Er, {}) })
|
|
6000
|
-
] }), e[4] = o, e[5] = i, e[6] = l, e[7] = d, e[8] = u, e[9] =
|
|
6000
|
+
] }), e[4] = o, e[5] = i, e[6] = l, e[7] = d, e[8] = u, e[9] = p) : p = e[9];
|
|
6001
6001
|
let v;
|
|
6002
6002
|
e[10] !== s || e[11] !== o || e[12] !== m || e[13] !== c || e[14] !== l || e[15] !== t.WidgetElement || e[16] !== t.id || e[17] !== t.title || e[18] !== a ? (v = t.id === -1 ? o && /* @__PURE__ */ r("div", { className: Et.widgetWrapper, children: /* @__PURE__ */ r(Ca, { widgetGroups: a, availableWidgets: s, onAdd: (S) => c(l, S), texts: m }) }) : /* @__PURE__ */ r(im, { title: t.title, children: /* @__PURE__ */ r(t.WidgetElement, { title: t.title }) }), e[10] = s, e[11] = o, e[12] = m, e[13] = c, e[14] = l, e[15] = t.WidgetElement, e[16] = t.id, e[17] = t.title, e[18] = a, e[19] = v) : v = e[19];
|
|
6003
6003
|
let g;
|
|
6004
6004
|
e[20] !== o || e[21] !== t.id ? (g = t.id > -1 && o && /* @__PURE__ */ r("div", { className: Et.widgetEditOverlay }), e[20] = o, e[21] = t.id, e[22] = g) : g = e[22];
|
|
6005
6005
|
let y;
|
|
6006
|
-
return e[23] !== l || e[24] !==
|
|
6007
|
-
|
|
6006
|
+
return e[23] !== l || e[24] !== h || e[25] !== p || e[26] !== v || e[27] !== g ? (y = /* @__PURE__ */ T("div", { className: h, children: [
|
|
6007
|
+
p,
|
|
6008
6008
|
v,
|
|
6009
6009
|
g
|
|
6010
|
-
] }, l), e[23] = l, e[24] =
|
|
6010
|
+
] }, l), e[23] = l, e[24] = h, e[25] = p, e[26] = v, e[27] = g, e[28] = y) : y = e[28], y;
|
|
6011
6011
|
}, of = (n, e) => {
|
|
6012
6012
|
const t = V.c(10), l = e === void 0 ? "dashboardConfig" : e;
|
|
6013
6013
|
let i;
|
|
@@ -6064,15 +6064,15 @@ const Gu = "_widget_19xgl_1", Ku = "_mobile_19xgl_7", ji = {
|
|
|
6064
6064
|
});
|
|
6065
6065
|
}, e[0] = u, e[1] = c, e[2] = f) : f = e[2];
|
|
6066
6066
|
const m = f;
|
|
6067
|
-
let
|
|
6068
|
-
e[3] !== m || e[4] !== u || e[5] !== c ? (
|
|
6067
|
+
let h;
|
|
6068
|
+
e[3] !== m || e[4] !== u || e[5] !== c ? (h = (I) => {
|
|
6069
6069
|
var _, $;
|
|
6070
6070
|
((_ = u.widgets[I]) == null ? void 0 : _.widgetId) === -1 ? c({
|
|
6071
6071
|
...u,
|
|
6072
6072
|
widgets: (($ = u.widgets) == null ? void 0 : $.filter((E, A) => A !== I)) ?? []
|
|
6073
6073
|
}) : m(I, -1);
|
|
6074
|
-
}, e[3] = m, e[4] = u, e[5] = c, e[6] =
|
|
6075
|
-
const
|
|
6074
|
+
}, e[3] = m, e[4] = u, e[5] = c, e[6] = h) : h = e[6];
|
|
6075
|
+
const p = h;
|
|
6076
6076
|
let v;
|
|
6077
6077
|
e[7] !== u || e[8] !== c ? (v = (I) => {
|
|
6078
6078
|
var _;
|
|
@@ -6086,7 +6086,7 @@ const Gu = "_widget_19xgl_1", Ku = "_mobile_19xgl_7", ji = {
|
|
|
6086
6086
|
}, e[7] = u, e[8] = c, e[9] = v) : v = e[9];
|
|
6087
6087
|
const g = v, {
|
|
6088
6088
|
isMobile: y
|
|
6089
|
-
} =
|
|
6089
|
+
} = dl();
|
|
6090
6090
|
let S;
|
|
6091
6091
|
e[10] !== y ? (S = z(Et.dashboard, {
|
|
6092
6092
|
[Et.mobile]: y
|
|
@@ -6094,7 +6094,7 @@ const Gu = "_widget_19xgl_1", Ku = "_mobile_19xgl_7", ji = {
|
|
|
6094
6094
|
let C;
|
|
6095
6095
|
e[12] === Symbol.for("react.memo_cache_sentinel") ? (C = z(Et.widgetsGrid), e[12] = C) : C = e[12];
|
|
6096
6096
|
let x;
|
|
6097
|
-
e[13] !== m || e[14] !== l || e[15] !== u.widgets || e[16] !== i || e[17] !==
|
|
6097
|
+
e[13] !== m || e[14] !== l || e[15] !== u.widgets || e[16] !== i || e[17] !== p || e[18] !== g || e[19] !== t ? (x = (k = u.widgets) == null ? void 0 : k.map((I, _) => /* @__PURE__ */ r(lf, { widget: l.find(($) => $.id === I.widgetId), onIndex: _, fullWidth: I.fullWidth, editMode: i, widgetGroups: t, availableWidgets: l, onRemove: p, onToggleFullWidth: g, onAdd: m }, `${I.widgetId}-${_}`)), e[13] = m, e[14] = l, e[15] = u.widgets, e[16] = i, e[17] = p, e[18] = g, e[19] = t, e[20] = x) : x = e[20];
|
|
6098
6098
|
let b;
|
|
6099
6099
|
e[21] !== m || e[22] !== l || e[23] !== ((D = u.widgets) == null ? void 0 : D.length) || e[24] !== i || e[25] !== d || e[26] !== t ? (b = i && /* @__PURE__ */ r(Ca, { widgetGroups: t, availableWidgets: l, onAdd: (I) => {
|
|
6100
6100
|
var _;
|
|
@@ -6107,7 +6107,7 @@ const Gu = "_widget_19xgl_1", Ku = "_mobile_19xgl_7", ji = {
|
|
|
6107
6107
|
] }), e[28] = x, e[29] = b, e[30] = w) : w = e[30];
|
|
6108
6108
|
let N;
|
|
6109
6109
|
return e[31] !== S || e[32] !== w ? (N = /* @__PURE__ */ r("div", { className: S, children: w }), e[31] = S, e[32] = w, e[33] = N) : N = e[33], N;
|
|
6110
|
-
}, af = "_badge_193ci_1", rf = "_sm_193ci_6", sf = "_md_193ci_10", cf = "_lg_193ci_14", df = "_light_193ci_18",
|
|
6110
|
+
}, af = "_badge_193ci_1", rf = "_sm_193ci_6", sf = "_md_193ci_10", cf = "_lg_193ci_14", df = "_light_193ci_18", $l = {
|
|
6111
6111
|
badge: af,
|
|
6112
6112
|
sm: rf,
|
|
6113
6113
|
md: sf,
|
|
@@ -6142,21 +6142,21 @@ const Gu = "_widget_19xgl_1", Ku = "_mobile_19xgl_7", ji = {
|
|
|
6142
6142
|
}
|
|
6143
6143
|
m = "";
|
|
6144
6144
|
}
|
|
6145
|
-
const
|
|
6146
|
-
let
|
|
6147
|
-
e[12] !== l || e[13] !== u || e[14] !== o || e[15] !== c || e[16] !==
|
|
6145
|
+
const h = m;
|
|
6146
|
+
let p;
|
|
6147
|
+
e[12] !== l || e[13] !== u || e[14] !== o || e[15] !== c || e[16] !== h ? (p = z("luminus-badge badge", h, l, {
|
|
6148
6148
|
"rounded-pill": o
|
|
6149
6149
|
}, {
|
|
6150
6150
|
"text-dark": u === "light"
|
|
6151
6151
|
}, {
|
|
6152
|
-
[
|
|
6153
|
-
},
|
|
6152
|
+
[$l.light]: u === "light"
|
|
6153
|
+
}, $l.badge, $l[c]), e[12] = l, e[13] = u, e[14] = o, e[15] = c, e[16] = h, e[17] = p) : p = e[17];
|
|
6154
6154
|
let v;
|
|
6155
|
-
return e[18] !== t || e[19] !== i || e[20] !==
|
|
6155
|
+
return e[18] !== t || e[19] !== i || e[20] !== p ? (v = /* @__PURE__ */ r("span", { className: p, ...i, children: t }), e[18] = t, e[19] = i, e[20] = p, e[21] = v) : v = e[21], v;
|
|
6156
6156
|
}, uf = "_collapse-icon_1ahhn_1", ff = "_collapsed_1ahhn_6", zi = {
|
|
6157
6157
|
collapseIcon: uf,
|
|
6158
6158
|
collapsed: ff
|
|
6159
|
-
},
|
|
6159
|
+
}, ol = (n) => {
|
|
6160
6160
|
const e = V.c(23), {
|
|
6161
6161
|
title: t,
|
|
6162
6162
|
children: l,
|
|
@@ -6167,7 +6167,7 @@ const Gu = "_widget_19xgl_1", Ku = "_mobile_19xgl_7", ji = {
|
|
|
6167
6167
|
e[0] !== a ? (c = [a], e[0] = a, e[1] = c) : c = e[1], me(() => {
|
|
6168
6168
|
d(a);
|
|
6169
6169
|
}, c);
|
|
6170
|
-
const f = i ?? "", m = "button",
|
|
6170
|
+
const f = i ?? "", m = "button", h = "d-flex align-items-center justify-content-between pb-3 pt-2", p = () => o.controlled ? o.onToggle(!o.isOpen) : d(!s);
|
|
6171
6171
|
let v;
|
|
6172
6172
|
e[2] !== t ? (v = /* @__PURE__ */ r(K, { variant: "h6", children: t }), e[2] = t, e[3] = v) : v = e[3];
|
|
6173
6173
|
const g = Oo, y = z(zi.collapseIcon, {
|
|
@@ -6176,10 +6176,10 @@ const Gu = "_widget_19xgl_1", Ku = "_mobile_19xgl_7", ji = {
|
|
|
6176
6176
|
let S;
|
|
6177
6177
|
e[4] !== g || e[5] !== y ? (S = /* @__PURE__ */ r(g, { className: y }), e[4] = g, e[5] = y, e[6] = S) : S = e[6];
|
|
6178
6178
|
let C;
|
|
6179
|
-
e[7] !==
|
|
6179
|
+
e[7] !== p || e[8] !== v || e[9] !== S ? (C = /* @__PURE__ */ T("div", { role: m, className: h, onClick: p, children: [
|
|
6180
6180
|
v,
|
|
6181
6181
|
S
|
|
6182
|
-
] }), e[7] =
|
|
6182
|
+
] }), e[7] = p, e[8] = v, e[9] = S, e[10] = C) : C = e[10];
|
|
6183
6183
|
let x;
|
|
6184
6184
|
e[11] !== l ? (x = /* @__PURE__ */ r("div", { children: l }), e[11] = l, e[12] = x) : x = e[12];
|
|
6185
6185
|
let b;
|
|
@@ -6215,7 +6215,7 @@ const Gu = "_widget_19xgl_1", Ku = "_mobile_19xgl_7", ji = {
|
|
|
6215
6215
|
me(() => {
|
|
6216
6216
|
c(d);
|
|
6217
6217
|
}, [d]);
|
|
6218
|
-
const m = Re(() => !t || !t.toString() || t.toString().split(",").filter((
|
|
6218
|
+
const m = Re(() => !t || !t.toString() || t.toString().split(",").filter((h) => h && h !== "false").length === 0, [t]);
|
|
6219
6219
|
return a && m ? null : /* @__PURE__ */ T("div", { className: z("luminus-card rounded shadow-sm", Jt.card, {
|
|
6220
6220
|
[l ?? ""]: l
|
|
6221
6221
|
}), children: [
|
|
@@ -6275,13 +6275,13 @@ var Na = function(n) {
|
|
|
6275
6275
|
}, {
|
|
6276
6276
|
key: "render",
|
|
6277
6277
|
value: function() {
|
|
6278
|
-
return Sf ? (!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode)),
|
|
6278
|
+
return Sf ? (!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode)), il.createPortal(this.props.children, this.props.node || this.defaultNode)) : null;
|
|
6279
6279
|
}
|
|
6280
6280
|
}]), e;
|
|
6281
6281
|
}(st.Component);
|
|
6282
6282
|
Na.propTypes = {
|
|
6283
|
-
children:
|
|
6284
|
-
node:
|
|
6283
|
+
children: nl.node.isRequired,
|
|
6284
|
+
node: nl.any
|
|
6285
6285
|
};
|
|
6286
6286
|
var kf = /* @__PURE__ */ function() {
|
|
6287
6287
|
function n(e, t) {
|
|
@@ -6326,14 +6326,14 @@ var ka = function(n) {
|
|
|
6326
6326
|
}, {
|
|
6327
6327
|
key: "componentWillUnmount",
|
|
6328
6328
|
value: function() {
|
|
6329
|
-
|
|
6329
|
+
il.unmountComponentAtNode(this.defaultNode || this.props.node), this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null, this.portal = null;
|
|
6330
6330
|
}
|
|
6331
6331
|
}, {
|
|
6332
6332
|
key: "renderPortal",
|
|
6333
6333
|
value: function(l) {
|
|
6334
6334
|
!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode));
|
|
6335
6335
|
var i = this.props.children;
|
|
6336
|
-
typeof this.props.children.type == "function" && (i = st.cloneElement(this.props.children)), this.portal =
|
|
6336
|
+
typeof this.props.children.type == "function" && (i = st.cloneElement(this.props.children)), this.portal = il.unstable_renderSubtreeIntoContainer(this, i, this.props.node || this.defaultNode);
|
|
6337
6337
|
}
|
|
6338
6338
|
}, {
|
|
6339
6339
|
key: "render",
|
|
@@ -6343,11 +6343,11 @@ var ka = function(n) {
|
|
|
6343
6343
|
}]), e;
|
|
6344
6344
|
}(st.Component);
|
|
6345
6345
|
ka.propTypes = {
|
|
6346
|
-
children:
|
|
6347
|
-
node:
|
|
6346
|
+
children: nl.node.isRequired,
|
|
6347
|
+
node: nl.any
|
|
6348
6348
|
};
|
|
6349
6349
|
var Hl = void 0;
|
|
6350
|
-
|
|
6350
|
+
il.createPortal ? Hl = Na : Hl = ka;
|
|
6351
6351
|
const _a = (n) => {
|
|
6352
6352
|
const e = V.c(15);
|
|
6353
6353
|
let t, l, i, o, a;
|
|
@@ -6356,12 +6356,12 @@ const _a = (n) => {
|
|
|
6356
6356
|
src: c,
|
|
6357
6357
|
alt: f,
|
|
6358
6358
|
baseUrl: m,
|
|
6359
|
-
customToken:
|
|
6360
|
-
placeholder:
|
|
6359
|
+
customToken: h,
|
|
6360
|
+
placeholder: p,
|
|
6361
6361
|
renderAsDivBg: v,
|
|
6362
6362
|
...g
|
|
6363
6363
|
} = n;
|
|
6364
|
-
a = c, t = f, i =
|
|
6364
|
+
a = c, t = f, i = p, o = v, l = g, e[0] = n, e[1] = t, e[2] = l, e[3] = i, e[4] = o, e[5] = a;
|
|
6365
6365
|
} else
|
|
6366
6366
|
t = e[1], l = e[2], i = e[3], o = e[4], a = e[5];
|
|
6367
6367
|
if (!o) {
|
|
@@ -6872,7 +6872,7 @@ function h1(n) {
|
|
|
6872
6872
|
var a = {
|
|
6873
6873
|
current: o
|
|
6874
6874
|
};
|
|
6875
|
-
|
|
6875
|
+
Ll({
|
|
6876
6876
|
event: e,
|
|
6877
6877
|
current: o.dropTargets
|
|
6878
6878
|
});
|
|
@@ -6881,31 +6881,31 @@ function h1(n) {
|
|
|
6881
6881
|
dispatchEvent: i,
|
|
6882
6882
|
initial: o
|
|
6883
6883
|
});
|
|
6884
|
-
function d(
|
|
6885
|
-
var
|
|
6884
|
+
function d(h) {
|
|
6885
|
+
var p = p1({
|
|
6886
6886
|
current: a.current.dropTargets,
|
|
6887
|
-
next:
|
|
6887
|
+
next: h.dropTargets
|
|
6888
6888
|
});
|
|
6889
|
-
a.current =
|
|
6889
|
+
a.current = h, p && s.dragUpdate({
|
|
6890
6890
|
current: a.current
|
|
6891
6891
|
});
|
|
6892
6892
|
}
|
|
6893
|
-
function u(
|
|
6894
|
-
var
|
|
6895
|
-
x:
|
|
6896
|
-
y:
|
|
6897
|
-
}) :
|
|
6893
|
+
function u(h) {
|
|
6894
|
+
var p = Tn(h), v = Ea(h.target) ? Oa({
|
|
6895
|
+
x: p.clientX,
|
|
6896
|
+
y: p.clientY
|
|
6897
|
+
}) : h.target, g = l({
|
|
6898
6898
|
target: v,
|
|
6899
|
-
input:
|
|
6899
|
+
input: p,
|
|
6900
6900
|
source: t.payload,
|
|
6901
6901
|
current: a.current.dropTargets
|
|
6902
6902
|
});
|
|
6903
|
-
g.length && (
|
|
6904
|
-
event:
|
|
6903
|
+
g.length && (h.preventDefault(), Ll({
|
|
6904
|
+
event: h,
|
|
6905
6905
|
current: g
|
|
6906
6906
|
})), d({
|
|
6907
6907
|
dropTargets: g,
|
|
6908
|
-
input:
|
|
6908
|
+
input: p
|
|
6909
6909
|
});
|
|
6910
6910
|
}
|
|
6911
6911
|
function c() {
|
|
@@ -6930,8 +6930,8 @@ function h1(n) {
|
|
|
6930
6930
|
// Because we are binding to `window` - our `dragover` is effectively the same as a `drag`
|
|
6931
6931
|
// 🦊😤
|
|
6932
6932
|
type: "dragover",
|
|
6933
|
-
listener: function(
|
|
6934
|
-
u(
|
|
6933
|
+
listener: function(p) {
|
|
6934
|
+
u(p), s.drag({
|
|
6935
6935
|
current: a.current
|
|
6936
6936
|
});
|
|
6937
6937
|
}
|
|
@@ -6940,9 +6940,9 @@ function h1(n) {
|
|
|
6940
6940
|
listener: u
|
|
6941
6941
|
}, {
|
|
6942
6942
|
type: "dragleave",
|
|
6943
|
-
listener: function(
|
|
6943
|
+
listener: function(p) {
|
|
6944
6944
|
u1({
|
|
6945
|
-
dragLeave:
|
|
6945
|
+
dragLeave: p
|
|
6946
6946
|
}) && (d({
|
|
6947
6947
|
input: a.current.input,
|
|
6948
6948
|
dropTargets: []
|
|
@@ -6951,22 +6951,22 @@ function h1(n) {
|
|
|
6951
6951
|
}, {
|
|
6952
6952
|
// A "drop" can only happen if the browser allowed the drop
|
|
6953
6953
|
type: "drop",
|
|
6954
|
-
listener: function(
|
|
6954
|
+
listener: function(p) {
|
|
6955
6955
|
if (a.current = {
|
|
6956
6956
|
dropTargets: a.current.dropTargets,
|
|
6957
|
-
input: Tn(
|
|
6957
|
+
input: Tn(p)
|
|
6958
6958
|
}, !a.current.dropTargets.length) {
|
|
6959
6959
|
c();
|
|
6960
6960
|
return;
|
|
6961
6961
|
}
|
|
6962
|
-
|
|
6963
|
-
event:
|
|
6962
|
+
p.preventDefault(), Ll({
|
|
6963
|
+
event: p,
|
|
6964
6964
|
current: a.current.dropTargets
|
|
6965
6965
|
}), s.drop({
|
|
6966
6966
|
current: a.current,
|
|
6967
6967
|
// When dropping something native, we need to extract the latest
|
|
6968
6968
|
// `.items` from the "drop" event as it is now accessible
|
|
6969
|
-
updatedSourcePayload: t.type === "external" ? t.getDropPayload(
|
|
6969
|
+
updatedSourcePayload: t.type === "external" ? t.getDropPayload(p) : null
|
|
6970
6970
|
}), f();
|
|
6971
6971
|
}
|
|
6972
6972
|
}, {
|
|
@@ -6978,10 +6978,10 @@ function h1(n) {
|
|
|
6978
6978
|
// This "dragend" listener will not fire if there was a successful drop
|
|
6979
6979
|
// as we will have already removed the event listener
|
|
6980
6980
|
type: "dragend",
|
|
6981
|
-
listener: function(
|
|
6981
|
+
listener: function(p) {
|
|
6982
6982
|
a.current = {
|
|
6983
6983
|
dropTargets: a.current.dropTargets,
|
|
6984
|
-
input: Tn(
|
|
6984
|
+
input: Tn(p)
|
|
6985
6985
|
}, c();
|
|
6986
6986
|
}
|
|
6987
6987
|
}].concat(Pa(f1({
|
|
@@ -6999,7 +6999,7 @@ function h1(n) {
|
|
|
6999
6999
|
nativeSetDragImage: m1(e)
|
|
7000
7000
|
});
|
|
7001
7001
|
}
|
|
7002
|
-
function
|
|
7002
|
+
function Ll(n) {
|
|
7003
7003
|
var e, t = n.event, l = n.current, i = (e = l[0]) === null || e === void 0 ? void 0 : e.dropEffect;
|
|
7004
7004
|
i != null && t.dataTransfer && (t.dataTransfer.dropEffect = i);
|
|
7005
7005
|
}
|
|
@@ -7042,7 +7042,7 @@ function y1(n) {
|
|
|
7042
7042
|
e.usageCount--, !(e.usageCount > 0) && (e.unmount(), Wl.delete(n.typeKey));
|
|
7043
7043
|
};
|
|
7044
7044
|
}
|
|
7045
|
-
function
|
|
7045
|
+
function bl() {
|
|
7046
7046
|
for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
|
|
7047
7047
|
e[t] = arguments[t];
|
|
7048
7048
|
return function() {
|
|
@@ -7078,7 +7078,7 @@ function Vt(n) {
|
|
|
7078
7078
|
}
|
|
7079
7079
|
return n;
|
|
7080
7080
|
}
|
|
7081
|
-
function
|
|
7081
|
+
function El(n, e) {
|
|
7082
7082
|
var t = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
|
|
7083
7083
|
if (!t) {
|
|
7084
7084
|
if (Array.isArray(n) || (t = b1(n)) || e) {
|
|
@@ -7122,35 +7122,35 @@ function Xi(n, e) {
|
|
|
7122
7122
|
for (var t = 0, l = Array(e); t < e; t++) l[t] = n[t];
|
|
7123
7123
|
return l;
|
|
7124
7124
|
}
|
|
7125
|
-
function
|
|
7125
|
+
function Ol(n) {
|
|
7126
7126
|
return n.slice(0).reverse();
|
|
7127
7127
|
}
|
|
7128
7128
|
function S1(n) {
|
|
7129
7129
|
var e = n.typeKey, t = n.defaultDropEffect, l = /* @__PURE__ */ new WeakMap(), i = "data-drop-target-for-".concat(e), o = "[".concat(i, "]");
|
|
7130
|
-
function a(
|
|
7131
|
-
return l.set(
|
|
7132
|
-
return l.delete(
|
|
7130
|
+
function a(h) {
|
|
7131
|
+
return l.set(h.element, h), function() {
|
|
7132
|
+
return l.delete(h.element);
|
|
7133
7133
|
};
|
|
7134
7134
|
}
|
|
7135
|
-
function s(
|
|
7135
|
+
function s(h) {
|
|
7136
7136
|
if (process.env.NODE_ENV !== "production") {
|
|
7137
|
-
var
|
|
7138
|
-
|
|
7139
|
-
existing:
|
|
7140
|
-
proposed:
|
|
7141
|
-
}),
|
|
7137
|
+
var p = l.get(h.element);
|
|
7138
|
+
p && console.warn("You have already registered a [".concat(e, "] dropTarget on the same element"), {
|
|
7139
|
+
existing: p,
|
|
7140
|
+
proposed: h
|
|
7141
|
+
}), h.element instanceof HTMLIFrameElement && console.warn(`
|
|
7142
7142
|
We recommend not registering <iframe> elements as drop targets
|
|
7143
7143
|
as it can result in some strange browser event ordering.
|
|
7144
7144
|
`.replace(/\s{2,}/g, " ").trim());
|
|
7145
7145
|
}
|
|
7146
|
-
var v =
|
|
7146
|
+
var v = bl(Ra(h.element, {
|
|
7147
7147
|
attribute: i,
|
|
7148
7148
|
value: "true"
|
|
7149
|
-
}), a(
|
|
7149
|
+
}), a(h));
|
|
7150
7150
|
return jn(v);
|
|
7151
7151
|
}
|
|
7152
|
-
function d(
|
|
7153
|
-
var
|
|
7152
|
+
function d(h) {
|
|
7153
|
+
var p, v, g, y, S = h.source, C = h.target, x = h.input, b = h.result, w = b === void 0 ? [] : b;
|
|
7154
7154
|
if (C == null)
|
|
7155
7155
|
return w;
|
|
7156
7156
|
if (!(C instanceof Element))
|
|
@@ -7178,7 +7178,7 @@ function S1(n) {
|
|
|
7178
7178
|
input: x,
|
|
7179
7179
|
result: w
|
|
7180
7180
|
});
|
|
7181
|
-
var L = (
|
|
7181
|
+
var L = (p = (v = k.getData) === null || v === void 0 ? void 0 : v.call(k, D)) !== null && p !== void 0 ? p : {}, I = (g = (y = k.getDropEffect) === null || y === void 0 ? void 0 : y.call(k, D)) !== null && g !== void 0 ? g : t, _ = {
|
|
7182
7182
|
data: L,
|
|
7183
7183
|
element: k.element,
|
|
7184
7184
|
dropEffect: I,
|
|
@@ -7194,14 +7194,14 @@ function S1(n) {
|
|
|
7194
7194
|
result: [].concat(Pa(w), [_])
|
|
7195
7195
|
});
|
|
7196
7196
|
}
|
|
7197
|
-
function u(
|
|
7198
|
-
var
|
|
7197
|
+
function u(h) {
|
|
7198
|
+
var p = h.eventName, v = h.payload, g = El(v.location.current.dropTargets), y;
|
|
7199
7199
|
try {
|
|
7200
7200
|
for (g.s(); !(y = g.n()).done; ) {
|
|
7201
7201
|
var S, C = y.value, x = l.get(C.element), b = Vt(Vt({}, v), {}, {
|
|
7202
7202
|
self: C
|
|
7203
7203
|
});
|
|
7204
|
-
x == null || (S = x[
|
|
7204
|
+
x == null || (S = x[p]) === null || S === void 0 || S.call(
|
|
7205
7205
|
x,
|
|
7206
7206
|
// I cannot seem to get the types right here.
|
|
7207
7207
|
// TS doesn't seem to like that one event can need `nativeSetDragImage`
|
|
@@ -7220,10 +7220,10 @@ function S1(n) {
|
|
|
7220
7220
|
onDrag: u,
|
|
7221
7221
|
onDragStart: u,
|
|
7222
7222
|
onDrop: u,
|
|
7223
|
-
onDropTargetChange: function(
|
|
7224
|
-
var v =
|
|
7223
|
+
onDropTargetChange: function(p) {
|
|
7224
|
+
var v = p.payload, g = new Set(v.location.current.dropTargets.map(function(O) {
|
|
7225
7225
|
return O.element;
|
|
7226
|
-
})), y = /* @__PURE__ */ new Set(), S =
|
|
7226
|
+
})), y = /* @__PURE__ */ new Set(), S = El(v.location.previous.dropTargets), C;
|
|
7227
7227
|
try {
|
|
7228
7228
|
for (S.s(); !(C = S.n()).done; ) {
|
|
7229
7229
|
var x, b = C.value;
|
|
@@ -7241,7 +7241,7 @@ function S1(n) {
|
|
|
7241
7241
|
} finally {
|
|
7242
7242
|
S.f();
|
|
7243
7243
|
}
|
|
7244
|
-
var L =
|
|
7244
|
+
var L = El(v.location.current.dropTargets), I;
|
|
7245
7245
|
try {
|
|
7246
7246
|
for (L.s(); !(I = L.n()).done; ) {
|
|
7247
7247
|
var _, $, E = I.value;
|
|
@@ -7259,18 +7259,18 @@ function S1(n) {
|
|
|
7259
7259
|
}
|
|
7260
7260
|
}
|
|
7261
7261
|
};
|
|
7262
|
-
function f(
|
|
7263
|
-
c[
|
|
7262
|
+
function f(h) {
|
|
7263
|
+
c[h.eventName](h);
|
|
7264
7264
|
}
|
|
7265
|
-
function m(
|
|
7266
|
-
var
|
|
7267
|
-
source:
|
|
7265
|
+
function m(h) {
|
|
7266
|
+
var p = h.source, v = h.target, g = h.input, y = h.current, S = d({
|
|
7267
|
+
source: p,
|
|
7268
7268
|
target: v,
|
|
7269
7269
|
input: g
|
|
7270
7270
|
});
|
|
7271
7271
|
if (S.length >= y.length)
|
|
7272
7272
|
return S;
|
|
7273
|
-
for (var C =
|
|
7273
|
+
for (var C = Ol(y), x = Ol(S), b = [], w = 0; w < C.length; w++) {
|
|
7274
7274
|
var N, k = C[w], D = x[w];
|
|
7275
7275
|
if (D != null) {
|
|
7276
7276
|
b.push(D);
|
|
@@ -7284,7 +7284,7 @@ function S1(n) {
|
|
|
7284
7284
|
break;
|
|
7285
7285
|
var $ = {
|
|
7286
7286
|
input: g,
|
|
7287
|
-
source:
|
|
7287
|
+
source: p,
|
|
7288
7288
|
element: _.element
|
|
7289
7289
|
};
|
|
7290
7290
|
if (_.canDrop && !_.canDrop($) || !((N = _.getIsSticky) !== null && N !== void 0 && N.call(_, $)))
|
|
@@ -7294,7 +7294,7 @@ function S1(n) {
|
|
|
7294
7294
|
isActiveDueToStickiness: !0
|
|
7295
7295
|
}));
|
|
7296
7296
|
}
|
|
7297
|
-
return
|
|
7297
|
+
return Ol(b);
|
|
7298
7298
|
}
|
|
7299
7299
|
return {
|
|
7300
7300
|
dropTargetForConsumers: s,
|
|
@@ -7403,11 +7403,11 @@ function N1() {
|
|
|
7403
7403
|
}
|
|
7404
7404
|
}
|
|
7405
7405
|
if (e) {
|
|
7406
|
-
for (var f = Array.from(e.active), m = 0,
|
|
7407
|
-
var
|
|
7408
|
-
if (e.active.has(
|
|
7406
|
+
for (var f = Array.from(e.active), m = 0, h = f; m < h.length; m++) {
|
|
7407
|
+
var p = h[m];
|
|
7408
|
+
if (e.active.has(p)) {
|
|
7409
7409
|
var v;
|
|
7410
|
-
(v =
|
|
7410
|
+
(v = p[a]) === null || v === void 0 || v.call(p, s);
|
|
7411
7411
|
}
|
|
7412
7412
|
}
|
|
7413
7413
|
a === "onDrop" && (e.active.clear(), e = null);
|
|
@@ -7427,10 +7427,10 @@ function k1(n) {
|
|
|
7427
7427
|
l == null || l(f), s.dispatchEvent(f), a.dispatchEvent(f), i == null || i(f);
|
|
7428
7428
|
}
|
|
7429
7429
|
function u(f) {
|
|
7430
|
-
var m = f.event,
|
|
7430
|
+
var m = f.event, h = f.dragType;
|
|
7431
7431
|
qi.start({
|
|
7432
7432
|
event: m,
|
|
7433
|
-
dragType:
|
|
7433
|
+
dragType: h,
|
|
7434
7434
|
getDropTargetsOver: s.getIsOver,
|
|
7435
7435
|
dispatchEvent: d
|
|
7436
7436
|
});
|
|
@@ -7466,7 +7466,7 @@ var to = i1(), Ma = k1({
|
|
|
7466
7466
|
typeKey: "element",
|
|
7467
7467
|
defaultDropEffect: "move",
|
|
7468
7468
|
mount: function(e) {
|
|
7469
|
-
return
|
|
7469
|
+
return bl(to.bindEvents(), Ln.bind(document, {
|
|
7470
7470
|
type: "dragstart",
|
|
7471
7471
|
listener: function(l) {
|
|
7472
7472
|
var i, o, a, s, d, u;
|
|
@@ -7487,26 +7487,26 @@ var to = i1(), Ma = k1({
|
|
|
7487
7487
|
if (c instanceof HTMLElement) {
|
|
7488
7488
|
var f = Bn.get(c);
|
|
7489
7489
|
if (f) {
|
|
7490
|
-
var m = Tn(l),
|
|
7490
|
+
var m = Tn(l), h = {
|
|
7491
7491
|
element: f.element,
|
|
7492
7492
|
dragHandle: (i = f.dragHandle) !== null && i !== void 0 ? i : null,
|
|
7493
7493
|
input: m
|
|
7494
7494
|
};
|
|
7495
|
-
if (f.canDrag && !f.canDrag(
|
|
7495
|
+
if (f.canDrag && !f.canDrag(h)) {
|
|
7496
7496
|
l.preventDefault();
|
|
7497
7497
|
return;
|
|
7498
7498
|
}
|
|
7499
7499
|
if (f.dragHandle) {
|
|
7500
|
-
var
|
|
7500
|
+
var p = Oa({
|
|
7501
7501
|
x: m.clientX,
|
|
7502
7502
|
y: m.clientY
|
|
7503
7503
|
});
|
|
7504
|
-
if (!f.dragHandle.contains(
|
|
7504
|
+
if (!f.dragHandle.contains(p)) {
|
|
7505
7505
|
l.preventDefault();
|
|
7506
7506
|
return;
|
|
7507
7507
|
}
|
|
7508
7508
|
}
|
|
7509
|
-
var v = (o = (a = f.getInitialDataForExternal) === null || a === void 0 ? void 0 : a.call(f,
|
|
7509
|
+
var v = (o = (a = f.getInitialDataForExternal) === null || a === void 0 ? void 0 : a.call(f, h)) !== null && o !== void 0 ? o : null;
|
|
7510
7510
|
if (v)
|
|
7511
7511
|
for (var g = 0, y = Object.entries(v); g < y.length; g++) {
|
|
7512
7512
|
var S = $a(y[g], 2), C = S[0], x = S[1];
|
|
@@ -7516,7 +7516,7 @@ var to = i1(), Ma = k1({
|
|
|
7516
7516
|
var b = {
|
|
7517
7517
|
element: f.element,
|
|
7518
7518
|
dragHandle: (s = f.dragHandle) !== null && s !== void 0 ? s : null,
|
|
7519
|
-
data: (d = (u = f.getInitialData) === null || u === void 0 ? void 0 : u.call(f,
|
|
7519
|
+
data: (d = (u = f.getInitialData) === null || u === void 0 ? void 0 : u.call(f, h)) !== null && d !== void 0 ? d : {}
|
|
7520
7520
|
}, w = {
|
|
7521
7521
|
type: "element",
|
|
7522
7522
|
payload: b,
|
|
@@ -7555,7 +7555,7 @@ function L1(n) {
|
|
|
7555
7555
|
proposed: n
|
|
7556
7556
|
});
|
|
7557
7557
|
}
|
|
7558
|
-
var t =
|
|
7558
|
+
var t = bl(
|
|
7559
7559
|
// making the draggable register the adapter rather than drop targets
|
|
7560
7560
|
// this is because you *must* have a draggable element to start a drag
|
|
7561
7561
|
// but you _might_ not have any drop targets immediately
|
|
@@ -7597,9 +7597,9 @@ const no = (n) => {
|
|
|
7597
7597
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
7598
7598
|
type: "idle"
|
|
7599
7599
|
}, e[0] = f) : f = e[0];
|
|
7600
|
-
const [m,
|
|
7600
|
+
const [m, h] = ee(f), [p, v] = ee(!1);
|
|
7601
7601
|
let g, y;
|
|
7602
|
-
e[1] !== t.id ? (g = () => c.current ?
|
|
7602
|
+
e[1] !== t.id ? (g = () => c.current ? bl(Fa({
|
|
7603
7603
|
element: c.current,
|
|
7604
7604
|
getData: (O) => {
|
|
7605
7605
|
const {
|
|
@@ -7615,7 +7615,7 @@ const no = (n) => {
|
|
|
7615
7615
|
});
|
|
7616
7616
|
},
|
|
7617
7617
|
onDrop: () => {
|
|
7618
|
-
|
|
7618
|
+
h({
|
|
7619
7619
|
type: "idle"
|
|
7620
7620
|
});
|
|
7621
7621
|
},
|
|
@@ -7624,14 +7624,14 @@ const no = (n) => {
|
|
|
7624
7624
|
self: R,
|
|
7625
7625
|
source: F
|
|
7626
7626
|
} = O, B = Da(R.data);
|
|
7627
|
-
B &&
|
|
7627
|
+
B && h({
|
|
7628
7628
|
type: "is-over",
|
|
7629
7629
|
closestEdge: B,
|
|
7630
7630
|
draggedWidth: F.data.width
|
|
7631
7631
|
});
|
|
7632
7632
|
},
|
|
7633
7633
|
onDragLeave: () => {
|
|
7634
|
-
|
|
7634
|
+
h({
|
|
7635
7635
|
type: "idle"
|
|
7636
7636
|
});
|
|
7637
7637
|
},
|
|
@@ -7657,9 +7657,9 @@ const no = (n) => {
|
|
|
7657
7657
|
let C;
|
|
7658
7658
|
e[8] !== o || e[9] !== l ? (C = () => l(o), e[8] = o, e[9] = l, e[10] = C) : C = e[10];
|
|
7659
7659
|
let x;
|
|
7660
|
-
e[11] !==
|
|
7661
|
-
[ot.dragging]:
|
|
7662
|
-
}), e[11] =
|
|
7660
|
+
e[11] !== p ? (x = z(ot.lightboxDraggablePhoto, {
|
|
7661
|
+
[ot.dragging]: p
|
|
7662
|
+
}), e[11] = p, e[12] = x) : x = e[12];
|
|
7663
7663
|
const b = t.id, w = o !== i ? "button" : void 0, N = t.smSrc, k = t.alt, D = o === i;
|
|
7664
7664
|
let L;
|
|
7665
7665
|
e[13] !== D ? (L = z("rounded drag-handle", ot.photo, {
|
|
@@ -7706,7 +7706,7 @@ const R1 = (n) => {
|
|
|
7706
7706
|
reorderPhotos: u,
|
|
7707
7707
|
onChangeOrder: c
|
|
7708
7708
|
} = n, f = Be(null);
|
|
7709
|
-
let m,
|
|
7709
|
+
let m, h;
|
|
7710
7710
|
e[0] !== c || e[1] !== t || e[2] !== u ? (m = () => {
|
|
7711
7711
|
if (!f.current)
|
|
7712
7712
|
throw new Error("dropTargetRef is not defined");
|
|
@@ -7721,15 +7721,15 @@ const R1 = (n) => {
|
|
|
7721
7721
|
u(x, w), c && c(y, w);
|
|
7722
7722
|
}
|
|
7723
7723
|
});
|
|
7724
|
-
},
|
|
7725
|
-
let
|
|
7724
|
+
}, h = [c, t, u], e[0] = c, e[1] = t, e[2] = u, e[3] = m, e[4] = h) : (m = e[3], h = e[4]), me(m, h);
|
|
7725
|
+
let p;
|
|
7726
7726
|
if (e[5] !== o || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== d || e[10] !== i || e[11] !== l) {
|
|
7727
7727
|
let g;
|
|
7728
|
-
e[13] !== o || e[14] !== a || e[15] !== s || e[16] !== d || e[17] !== i || e[18] !== l ? (g = (y, S) => /* @__PURE__ */ r(E1, { photo: y, setSelectedIndex: l, selectedIndex: i, index: S, ImgComponent: o, baseUrl: a, customToken: s, placeholder: d }, y.id), e[13] = o, e[14] = a, e[15] = s, e[16] = d, e[17] = i, e[18] = l, e[19] = g) : g = e[19],
|
|
7728
|
+
e[13] !== o || e[14] !== a || e[15] !== s || e[16] !== d || e[17] !== i || e[18] !== l ? (g = (y, S) => /* @__PURE__ */ r(E1, { photo: y, setSelectedIndex: l, selectedIndex: i, index: S, ImgComponent: o, baseUrl: a, customToken: s, placeholder: d }, y.id), e[13] = o, e[14] = a, e[15] = s, e[16] = d, e[17] = i, e[18] = l, e[19] = g) : g = e[19], p = t.map(g), e[5] = o, e[6] = a, e[7] = s, e[8] = t, e[9] = d, e[10] = i, e[11] = l, e[12] = p;
|
|
7729
7729
|
} else
|
|
7730
|
-
|
|
7730
|
+
p = e[12];
|
|
7731
7731
|
let v;
|
|
7732
|
-
return e[20] !==
|
|
7732
|
+
return e[20] !== p ? (v = /* @__PURE__ */ r("div", { ref: f, className: "d-flex justify-content-center gap-1", children: p }), e[20] = p, e[21] = v) : v = e[21], v;
|
|
7733
7733
|
}, M1 = (n) => {
|
|
7734
7734
|
const e = V.c(40), {
|
|
7735
7735
|
show: t,
|
|
@@ -7743,9 +7743,9 @@ const R1 = (n) => {
|
|
|
7743
7743
|
baseUrl: c,
|
|
7744
7744
|
customToken: f,
|
|
7745
7745
|
placeholder: m,
|
|
7746
|
-
ImgComponent:
|
|
7747
|
-
onChangeOrder:
|
|
7748
|
-
} = n, v =
|
|
7746
|
+
ImgComponent: h,
|
|
7747
|
+
onChangeOrder: p
|
|
7748
|
+
} = n, v = h === void 0 ? _a : h, [g, y] = ee(i);
|
|
7749
7749
|
let S, C;
|
|
7750
7750
|
e[0] !== i ? (S = () => {
|
|
7751
7751
|
y(i);
|
|
@@ -7825,7 +7825,7 @@ const R1 = (n) => {
|
|
|
7825
7825
|
onClick: se,
|
|
7826
7826
|
...Q
|
|
7827
7827
|
} = X;
|
|
7828
|
-
return /* @__PURE__ */ r(
|
|
7828
|
+
return /* @__PURE__ */ r(tl, { hideOn: "sm", cKey: `action-${ie}`, onClick: () => se(w.id), ...Q, children: typeof te == "string" ? te : te(w.id) }, `action-${ie}`);
|
|
7829
7829
|
})) })
|
|
7830
7830
|
] }),
|
|
7831
7831
|
/* @__PURE__ */ r("div", { role: "button", onClick: l, children: /* @__PURE__ */ r(Gt, { style: {
|
|
@@ -7842,7 +7842,7 @@ const R1 = (n) => {
|
|
|
7842
7842
|
fontSize: "40px"
|
|
7843
7843
|
} }) })
|
|
7844
7844
|
] }),
|
|
7845
|
-
/* @__PURE__ */ r("div", { className: z("d-flex justify-content-center", ot.photosPreviewContainer), children: /* @__PURE__ */ r(R1, { photos: g, setSelectedIndex: b, selectedIndex: x, ImgComponent: v, baseUrl: c, customToken: f, placeholder: m, reorderPhotos: P, onChangeOrder:
|
|
7845
|
+
/* @__PURE__ */ r("div", { className: z("d-flex justify-content-center", ot.photosPreviewContainer), children: /* @__PURE__ */ r(R1, { photos: g, setSelectedIndex: b, selectedIndex: x, ImgComponent: v, baseUrl: c, customToken: f, placeholder: m, reorderPhotos: P, onChangeOrder: p }) })
|
|
7846
7846
|
] });
|
|
7847
7847
|
let G;
|
|
7848
7848
|
e[32] !== j || e[33] !== U || e[34] !== W ? (G = /* @__PURE__ */ r("div", { className: U, ...j, children: W }), e[32] = j, e[33] = U, e[34] = W, e[35] = G) : G = e[35];
|
|
@@ -7883,8 +7883,8 @@ const U1 = (n) => {
|
|
|
7883
7883
|
ImgComponent: c,
|
|
7884
7884
|
noLightboxOnlyButtonOnEmpty: f,
|
|
7885
7885
|
hideLightbox: m,
|
|
7886
|
-
onChangeOrder:
|
|
7887
|
-
} = n,
|
|
7886
|
+
onChangeOrder: h
|
|
7887
|
+
} = n, p = c === void 0 ? _a : c, v = f === void 0 ? !1 : f, g = m === void 0 ? !1 : m, [y, S] = ee(null), C = y !== null ? t[y] : null, [x, b] = ee(!1);
|
|
7888
7888
|
let w, N;
|
|
7889
7889
|
if (e[0] !== t ? (w = () => {
|
|
7890
7890
|
if (t.length === 0) {
|
|
@@ -7907,8 +7907,8 @@ const U1 = (n) => {
|
|
|
7907
7907
|
return e[6] !== E || e[7] !== P ? (O = /* @__PURE__ */ r(ra, { accept: ".jpg,.jpeg,.png", onUpload: E, icon: A, multiple: !0, children: P }), e[6] = E, e[7] = P, e[8] = O) : O = e[8], O;
|
|
7908
7908
|
}
|
|
7909
7909
|
let k;
|
|
7910
|
-
e[9] !==
|
|
7911
|
-
/* @__PURE__ */ r(
|
|
7910
|
+
e[9] !== p || e[10] !== s || e[11] !== d || e[12] !== C || e[13] !== t.length || e[14] !== u || e[15] !== i ? (k = C ? /* @__PURE__ */ T("div", { role: "button", className: "w-100 position-relative", onClick: () => b(!0), children: [
|
|
7911
|
+
/* @__PURE__ */ r(p, { src: C.smSrc, alt: C.alt, className: "rounded w-100", baseUrl: s, customToken: d, placeholder: u }),
|
|
7912
7912
|
t.length > 1 && /* @__PURE__ */ r("div", { className: "position-absolute rounded p-1", style: {
|
|
7913
7913
|
top: 0,
|
|
7914
7914
|
right: 0,
|
|
@@ -7916,13 +7916,13 @@ const U1 = (n) => {
|
|
|
7916
7916
|
textShadow: "-2px 2px 4px #696969",
|
|
7917
7917
|
background: "rgba(105,105,105,0.5)"
|
|
7918
7918
|
}, children: /* @__PURE__ */ r(jr, { fontSize: 24 }) })
|
|
7919
|
-
] }) : /* @__PURE__ */ r(rt, { text: i ?? "", placement: "left", children: /* @__PURE__ */ r("div", { role: "button", className: z("rounded p-3 d-flex justify-content-center"), onClick: () => b(!0), children: /* @__PURE__ */ r("img", { src: u, alt: "placeholder", className: "rounded w-25" }) }) }), e[9] =
|
|
7919
|
+
] }) : /* @__PURE__ */ r(rt, { text: i ?? "", placement: "left", children: /* @__PURE__ */ r("div", { role: "button", className: z("rounded p-3 d-flex justify-content-center"), onClick: () => b(!0), children: /* @__PURE__ */ r("img", { src: u, alt: "placeholder", className: "rounded w-25" }) }) }), e[9] = p, e[10] = s, e[11] = d, e[12] = C, e[13] = t.length, e[14] = u, e[15] = i, e[16] = k) : k = e[16];
|
|
7920
7920
|
const D = x && !g;
|
|
7921
7921
|
let L;
|
|
7922
7922
|
e[17] === Symbol.for("react.memo_cache_sentinel") ? (L = () => b(!1), e[17] = L) : L = e[17];
|
|
7923
7923
|
const I = y ?? 0;
|
|
7924
7924
|
let _;
|
|
7925
|
-
e[18] !==
|
|
7925
|
+
e[18] !== p || e[19] !== s || e[20] !== d || e[21] !== o || e[22] !== h || e[23] !== l || e[24] !== a || e[25] !== t || e[26] !== u || e[27] !== D || e[28] !== I || e[29] !== i ? (_ = /* @__PURE__ */ r(M1, { show: D, onClose: L, photos: t, defaultIndex: I, uploadPhotosText: i, noPhotosText: o, onUploadPhotos: l, photoActions: a, baseUrl: s, customToken: d, placeholder: u, ImgComponent: p, onChangeOrder: h }), e[18] = p, e[19] = s, e[20] = d, e[21] = o, e[22] = h, e[23] = l, e[24] = a, e[25] = t, e[26] = u, e[27] = D, e[28] = I, e[29] = i, e[30] = _) : _ = e[30];
|
|
7926
7926
|
let $;
|
|
7927
7927
|
return e[31] !== _ || e[32] !== k ? ($ = /* @__PURE__ */ T(pe, { children: [
|
|
7928
7928
|
k,
|
|
@@ -7933,7 +7933,7 @@ function W1(n) {
|
|
|
7933
7933
|
return n.isDefault;
|
|
7934
7934
|
}
|
|
7935
7935
|
const Yh = (n) => {
|
|
7936
|
-
var
|
|
7936
|
+
var f, m, h;
|
|
7937
7937
|
const e = V.c(15), {
|
|
7938
7938
|
children: t
|
|
7939
7939
|
} = n, {
|
|
@@ -7941,35 +7941,40 @@ const Yh = (n) => {
|
|
|
7941
7941
|
msalScopes: i,
|
|
7942
7942
|
msalExtraScopes: o
|
|
7943
7943
|
} = ne(zr), {
|
|
7944
|
-
isAuthenticated: a
|
|
7944
|
+
isAuthenticated: a,
|
|
7945
|
+
isAuthenticating: s
|
|
7945
7946
|
} = Hr(), {
|
|
7946
|
-
userLoginState:
|
|
7947
|
-
} = ne(Kt),
|
|
7947
|
+
userLoginState: d
|
|
7948
|
+
} = ne(Kt), u = d.state === Vr.LOGGING_IN, c = d.user && ((f = d.user) == null ? void 0 : f.permissions) && ((h = (m = d.user) == null ? void 0 : m.permissions) == null ? void 0 : h.length) > 0;
|
|
7948
7949
|
if (l) {
|
|
7950
|
+
if (console.log("isAuthenticating", s()), console.log("userLoginInProgress", u), console.log("isAuthenticated", a()), u || s()) {
|
|
7951
|
+
let y;
|
|
7952
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ r(Zn, {}), e[0] = y) : y = e[0], y;
|
|
7953
|
+
}
|
|
7949
7954
|
let p;
|
|
7950
|
-
e[
|
|
7955
|
+
e[1] !== o || e[2] !== i ? (p = {
|
|
7951
7956
|
scopes: i,
|
|
7952
7957
|
extraScopesToConsent: o
|
|
7953
|
-
}, e[
|
|
7954
|
-
let h;
|
|
7955
|
-
e[3] !== t || e[4] !== a || e[5] !== d || e[6] !== s.user || e[7] !== u ? (h = d || !a() ? /* @__PURE__ */ r(Rl, {}) : s.user ? u ? t : /* @__PURE__ */ r(Vn, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ r(Vn, { to: "/no-user-login", replace: !0 }), e[3] = t, e[4] = a, e[5] = d, e[6] = s.user, e[7] = u, e[8] = h) : h = e[8];
|
|
7958
|
+
}, e[1] = o, e[2] = i, e[3] = p) : p = e[3];
|
|
7956
7959
|
let v;
|
|
7957
|
-
|
|
7960
|
+
e[4] !== t || e[5] !== a || e[6] !== d.user || e[7] !== c ? (v = a() ? d.user ? c ? t : /* @__PURE__ */ r(Vn, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ r(Vn, { to: "/no-user-login", replace: !0 }) : /* @__PURE__ */ r(Zn, {}), e[4] = t, e[5] = a, e[6] = d.user, e[7] = c, e[8] = v) : v = e[8];
|
|
7961
|
+
let g;
|
|
7962
|
+
return e[9] !== p || e[10] !== v ? (g = /* @__PURE__ */ r(ms, { interactionType: fs.Redirect, authenticationRequest: p, children: v }), e[9] = p, e[10] = v, e[11] = g) : g = e[11], g;
|
|
7958
7963
|
}
|
|
7959
|
-
if (
|
|
7964
|
+
if (u) {
|
|
7960
7965
|
let p;
|
|
7961
|
-
return e[12] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r(
|
|
7966
|
+
return e[12] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r(Zn, {}), e[12] = p) : p = e[12], p;
|
|
7962
7967
|
}
|
|
7963
|
-
if (!a() || !
|
|
7968
|
+
if (!a() || !d.user) {
|
|
7964
7969
|
let p;
|
|
7965
7970
|
return e[13] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r(Vn, { to: "/login", replace: !0 }), e[13] = p) : p = e[13], p;
|
|
7966
7971
|
}
|
|
7967
|
-
if (!
|
|
7972
|
+
if (!c) {
|
|
7968
7973
|
let p;
|
|
7969
7974
|
return e[14] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r(Vn, { to: "/user-not-permitted", replace: !0 }), e[14] = p) : p = e[14], p;
|
|
7970
7975
|
}
|
|
7971
7976
|
return t;
|
|
7972
|
-
}, G1 = "_item_z9z4m_1", K1 = "_level-success_z9z4m_4", Y1 = "_level-info_z9z4m_10", q1 = "_level-warning_z9z4m_16", Q1 = "_level-danger_z9z4m_22", X1 = "_type-icon_z9z4m_28",
|
|
7977
|
+
}, G1 = "_item_z9z4m_1", K1 = "_level-success_z9z4m_4", Y1 = "_level-info_z9z4m_10", q1 = "_level-warning_z9z4m_16", Q1 = "_level-danger_z9z4m_22", X1 = "_type-icon_z9z4m_28", Pl = {
|
|
7973
7978
|
item: G1,
|
|
7974
7979
|
"level-success": "_level-success_z9z4m_4",
|
|
7975
7980
|
levelSuccess: K1,
|
|
@@ -8007,16 +8012,16 @@ const Yh = (n) => {
|
|
|
8007
8012
|
let c;
|
|
8008
8013
|
e[3] !== t || e[4] !== u ? (c = z("p-2 rounded d-flex gap-1 align-items-center justify-content-between", {
|
|
8009
8014
|
"ps-1": u
|
|
8010
|
-
},
|
|
8015
|
+
}, Pl.item, Pl[`level-${t}`]), e[3] = t, e[4] = u, e[5] = c) : c = e[5];
|
|
8011
8016
|
let f;
|
|
8012
|
-
e[6] !== i || e[7] !== d || e[8] !== o ? (f = !o && /* @__PURE__ */ r("div", { className: z(
|
|
8017
|
+
e[6] !== i || e[7] !== d || e[8] !== o ? (f = !o && /* @__PURE__ */ r("div", { className: z(Pl.typeIcon), children: i ?? d() }), e[6] = i, e[7] = d, e[8] = o, e[9] = f) : f = e[9];
|
|
8013
8018
|
let m;
|
|
8014
8019
|
e[10] !== l ? (m = /* @__PURE__ */ r(K, { variant: "body2", className: "w-100", children: l }), e[10] = l, e[11] = m) : m = e[11];
|
|
8015
|
-
let
|
|
8016
|
-
return e[12] !== c || e[13] !== f || e[14] !== m ? (
|
|
8020
|
+
let h;
|
|
8021
|
+
return e[12] !== c || e[13] !== f || e[14] !== m ? (h = /* @__PURE__ */ T("div", { className: c, children: [
|
|
8017
8022
|
f,
|
|
8018
8023
|
m
|
|
8019
|
-
] }), e[12] = c, e[13] = f, e[14] = m, e[15] =
|
|
8024
|
+
] }), e[12] = c, e[13] = f, e[14] = m, e[15] = h) : h = e[15], h;
|
|
8020
8025
|
}, qh = (n) => {
|
|
8021
8026
|
const e = V.c(3), {
|
|
8022
8027
|
version: t
|
|
@@ -8123,7 +8128,7 @@ const nm = (n) => (t) => {
|
|
|
8123
8128
|
texts: i
|
|
8124
8129
|
} = ne(ue), {
|
|
8125
8130
|
widget: o
|
|
8126
|
-
} = i, a =
|
|
8131
|
+
} = i, a = pl();
|
|
8127
8132
|
let s;
|
|
8128
8133
|
e[0] !== l || e[1] !== o.fallbackError ? (s = /* @__PURE__ */ r(lo, { title: l, children: o.fallbackError }), e[0] = l, e[1] = o.fallbackError, e[2] = s) : s = e[2];
|
|
8129
8134
|
let d;
|
|
@@ -8213,21 +8218,21 @@ const vm = (n, e, t, l) => {
|
|
|
8213
8218
|
u(!1), f(null);
|
|
8214
8219
|
});
|
|
8215
8220
|
}, i[4] = s, i[5] = n, i[6] = m) : m = i[6];
|
|
8216
|
-
const
|
|
8217
|
-
let
|
|
8218
|
-
i[7] !==
|
|
8221
|
+
const h = m;
|
|
8222
|
+
let p, v;
|
|
8223
|
+
i[7] !== h ? (p = () => {
|
|
8219
8224
|
const y = new AbortController();
|
|
8220
|
-
return
|
|
8225
|
+
return h(y.signal), () => {
|
|
8221
8226
|
y.abort();
|
|
8222
8227
|
};
|
|
8223
|
-
}, v = [
|
|
8228
|
+
}, v = [h], i[7] = h, i[8] = p, i[9] = v) : (p = i[8], v = i[9]), me(p, v);
|
|
8224
8229
|
let g;
|
|
8225
|
-
return i[10] !== c || i[11] !== d || i[12] !==
|
|
8230
|
+
return i[10] !== c || i[11] !== d || i[12] !== h ? (g = {
|
|
8226
8231
|
data: c,
|
|
8227
8232
|
setData: f,
|
|
8228
|
-
reloadData:
|
|
8233
|
+
reloadData: h,
|
|
8229
8234
|
isLoading: d
|
|
8230
|
-
}, i[10] = c, i[11] = d, i[12] =
|
|
8235
|
+
}, i[10] = c, i[11] = d, i[12] = h, i[13] = g) : g = i[13], g;
|
|
8231
8236
|
}, oo = (n) => {
|
|
8232
8237
|
const e = V.c(20);
|
|
8233
8238
|
let t, l, i, o, a, s, d;
|
|
@@ -8243,27 +8248,27 @@ const vm = (n, e, t, l) => {
|
|
|
8243
8248
|
const {
|
|
8244
8249
|
data: u
|
|
8245
8250
|
} = vm(d, l, i), [c, f] = ee(null);
|
|
8246
|
-
let m,
|
|
8251
|
+
let m, h;
|
|
8247
8252
|
if (e[8] !== u ? (m = () => {
|
|
8248
8253
|
let y = null;
|
|
8249
8254
|
return u !== null ? (y = URL.createObjectURL(u), f(y)) : f(null), () => {
|
|
8250
8255
|
y !== null && URL.revokeObjectURL(y);
|
|
8251
8256
|
};
|
|
8252
|
-
},
|
|
8257
|
+
}, h = [u], e[8] = u, e[9] = m, e[10] = h) : (m = e[9], h = e[10]), me(m, h), c === null && !a)
|
|
8253
8258
|
return null;
|
|
8254
8259
|
if (!s) {
|
|
8255
8260
|
const y = t ?? "", S = c ?? a;
|
|
8256
8261
|
let C;
|
|
8257
8262
|
return e[11] !== o || e[12] !== y || e[13] !== S ? (C = /* @__PURE__ */ r("img", { ...o, alt: y, src: S }), e[11] = o, e[12] = y, e[13] = S, e[14] = C) : C = e[14], C;
|
|
8258
8263
|
}
|
|
8259
|
-
const
|
|
8264
|
+
const p = c ? `url(${c})` : void 0;
|
|
8260
8265
|
let v;
|
|
8261
|
-
e[15] !==
|
|
8262
|
-
backgroundImage:
|
|
8266
|
+
e[15] !== p ? (v = {
|
|
8267
|
+
backgroundImage: p,
|
|
8263
8268
|
backgroundRepeat: "no-repeat",
|
|
8264
8269
|
backgroundPosition: "center",
|
|
8265
8270
|
backgroundSize: "contain"
|
|
8266
|
-
}, e[15] =
|
|
8271
|
+
}, e[15] = p, e[16] = v) : v = e[16];
|
|
8267
8272
|
let g;
|
|
8268
8273
|
return e[17] !== o || e[18] !== v ? (g = /* @__PURE__ */ r("div", { ...o, style: v }), e[17] = o, e[18] = v, e[19] = g) : g = e[19], g;
|
|
8269
8274
|
}, Qh = (n) => {
|
|
@@ -8271,15 +8276,15 @@ const vm = (n, e, t, l) => {
|
|
|
8271
8276
|
let t, l, i, o, a;
|
|
8272
8277
|
if (e[0] !== n) {
|
|
8273
8278
|
const {
|
|
8274
|
-
src:
|
|
8275
|
-
alt:
|
|
8279
|
+
src: h,
|
|
8280
|
+
alt: p,
|
|
8276
8281
|
baseUrl: v,
|
|
8277
8282
|
customToken: g,
|
|
8278
8283
|
placeholder: y,
|
|
8279
8284
|
renderAsDivBg: S,
|
|
8280
8285
|
...C
|
|
8281
8286
|
} = n;
|
|
8282
|
-
a =
|
|
8287
|
+
a = h, t = p, i = y, o = S, l = C, e[0] = n, e[1] = t, e[2] = l, e[3] = i, e[4] = o, e[5] = a;
|
|
8283
8288
|
} else
|
|
8284
8289
|
t = e[1], l = e[2], i = e[3], o = e[4], a = e[5];
|
|
8285
8290
|
let s;
|
|
@@ -8292,9 +8297,9 @@ const vm = (n, e, t, l) => {
|
|
|
8292
8297
|
if (!d || !a)
|
|
8293
8298
|
return null;
|
|
8294
8299
|
if (!o) {
|
|
8295
|
-
const
|
|
8300
|
+
const h = t ?? "", p = u ?? i;
|
|
8296
8301
|
let v;
|
|
8297
|
-
return e[7] !== l || e[8] !==
|
|
8302
|
+
return e[7] !== l || e[8] !== h || e[9] !== p ? (v = /* @__PURE__ */ r("img", { ...l, alt: h, src: p }), e[7] = l, e[8] = h, e[9] = p, e[10] = v) : v = e[10], v;
|
|
8298
8303
|
}
|
|
8299
8304
|
const c = u ? `url(${u})` : void 0;
|
|
8300
8305
|
let f;
|
|
@@ -8336,7 +8341,7 @@ const vm = (n, e, t, l) => {
|
|
|
8336
8341
|
lg: Sm,
|
|
8337
8342
|
sm: wm,
|
|
8338
8343
|
md: xm
|
|
8339
|
-
},
|
|
8344
|
+
}, al = (n) => {
|
|
8340
8345
|
const e = new Date(n), t = Wt(e.toISOString());
|
|
8341
8346
|
e.setUTCMonth(e.getUTCMonth() + 1), e.setUTCDate(e.getUTCDate() - 1);
|
|
8342
8347
|
const l = Wt(e.toISOString());
|
|
@@ -8344,7 +8349,7 @@ const vm = (n, e, t, l) => {
|
|
|
8344
8349
|
from: t,
|
|
8345
8350
|
to: l
|
|
8346
8351
|
};
|
|
8347
|
-
},
|
|
8352
|
+
}, rl = (n) => {
|
|
8348
8353
|
const e = new Date(n), t = Wt(e.toISOString());
|
|
8349
8354
|
e.setUTCFullYear(e.getUTCFullYear() + 1), e.setUTCDate(e.getUTCDate() - 1);
|
|
8350
8355
|
const l = Wt(e.toISOString());
|
|
@@ -8358,38 +8363,38 @@ const vm = (n, e, t, l) => {
|
|
|
8358
8363
|
if (n === e)
|
|
8359
8364
|
return "D";
|
|
8360
8365
|
const t = new Date(n);
|
|
8361
|
-
return
|
|
8366
|
+
return al(t).to === e ? "M" : rl(t).to === e ? "Y" : "C";
|
|
8362
8367
|
}, Nm = (n, e, t) => {
|
|
8363
8368
|
const l = V.c(14);
|
|
8364
8369
|
let i;
|
|
8365
8370
|
l[0] !== n || l[1] !== t || l[2] !== e ? (i = (f, m) => {
|
|
8366
8371
|
if (n === "C") {
|
|
8367
|
-
t((
|
|
8368
|
-
...
|
|
8372
|
+
t((h) => ({
|
|
8373
|
+
...h,
|
|
8369
8374
|
[f]: m
|
|
8370
8375
|
}));
|
|
8371
8376
|
return;
|
|
8372
8377
|
}
|
|
8373
8378
|
e: switch (f) {
|
|
8374
8379
|
case "from": {
|
|
8375
|
-
t((
|
|
8380
|
+
t((h) => {
|
|
8376
8381
|
if (m === null)
|
|
8377
|
-
return
|
|
8378
|
-
const
|
|
8382
|
+
return h;
|
|
8383
|
+
const p = new Date(m);
|
|
8379
8384
|
if (n === "D") {
|
|
8380
|
-
const v = Wt(
|
|
8385
|
+
const v = Wt(p.toISOString());
|
|
8381
8386
|
return {
|
|
8382
8387
|
from: v,
|
|
8383
8388
|
to: v
|
|
8384
8389
|
};
|
|
8385
8390
|
}
|
|
8386
|
-
return n === "M" ?
|
|
8391
|
+
return n === "M" ? al(p) : n === "Y" ? rl(p) : h;
|
|
8387
8392
|
});
|
|
8388
8393
|
break e;
|
|
8389
8394
|
}
|
|
8390
8395
|
case "to": {
|
|
8391
|
-
e("C"), t((
|
|
8392
|
-
...
|
|
8396
|
+
e("C"), t((h) => ({
|
|
8397
|
+
...h,
|
|
8393
8398
|
[f]: m
|
|
8394
8399
|
}));
|
|
8395
8400
|
break e;
|
|
@@ -8402,20 +8407,20 @@ const vm = (n, e, t, l) => {
|
|
|
8402
8407
|
t((m) => {
|
|
8403
8408
|
if (m.from === null || m.to === null)
|
|
8404
8409
|
return m;
|
|
8405
|
-
const
|
|
8406
|
-
|
|
8407
|
-
const
|
|
8410
|
+
const h = new Date(m.from);
|
|
8411
|
+
h.setHours(h.getHours() - h.getTimezoneOffset() / 60);
|
|
8412
|
+
const p = new Date(m.to);
|
|
8408
8413
|
if (n === "D") {
|
|
8409
|
-
|
|
8410
|
-
const v = Wt(
|
|
8414
|
+
h.setDate(h.getDate() + f);
|
|
8415
|
+
const v = Wt(h.toISOString());
|
|
8411
8416
|
return {
|
|
8412
8417
|
from: v,
|
|
8413
8418
|
to: v
|
|
8414
8419
|
};
|
|
8415
8420
|
}
|
|
8416
|
-
return n === "M" ? (
|
|
8417
|
-
from: Wt(
|
|
8418
|
-
to: Wt(
|
|
8421
|
+
return n === "M" ? (h.setMonth(h.getMonth() + f), al(h)) : n === "Y" ? (h.setFullYear(h.getFullYear() + f), rl(h)) : {
|
|
8422
|
+
from: Wt(h.toISOString()),
|
|
8423
|
+
to: Wt(p.toISOString())
|
|
8419
8424
|
};
|
|
8420
8425
|
});
|
|
8421
8426
|
}, l[4] = n, l[5] = t, l[6] = a) : a = l[6];
|
|
@@ -8442,13 +8447,13 @@ function _m(n) {
|
|
|
8442
8447
|
if (n.from === null)
|
|
8443
8448
|
return n;
|
|
8444
8449
|
const e = Wr(n.from);
|
|
8445
|
-
return
|
|
8450
|
+
return al(e);
|
|
8446
8451
|
}
|
|
8447
8452
|
function Im(n) {
|
|
8448
8453
|
if (n.from === null)
|
|
8449
8454
|
return n;
|
|
8450
8455
|
const e = Gr(new Date(n.from).getFullYear());
|
|
8451
|
-
return
|
|
8456
|
+
return rl(e);
|
|
8452
8457
|
}
|
|
8453
8458
|
const Xh = (n) => {
|
|
8454
8459
|
const e = V.c(55), {
|
|
@@ -8462,8 +8467,8 @@ const Xh = (n) => {
|
|
|
8462
8467
|
date: u
|
|
8463
8468
|
} = s, [c, f] = ee("C"), {
|
|
8464
8469
|
handleArrowClick: m,
|
|
8465
|
-
handleRangeChange:
|
|
8466
|
-
setFromToProp:
|
|
8470
|
+
handleRangeChange: h,
|
|
8471
|
+
setFromToProp: p
|
|
8467
8472
|
} = Nm(c, f, a), v = c === "C", g = Be(!0);
|
|
8468
8473
|
let y, S;
|
|
8469
8474
|
e[0] !== o.from || e[1] !== o.to ? (y = () => {
|
|
@@ -8484,7 +8489,7 @@ const Xh = (n) => {
|
|
|
8484
8489
|
let N;
|
|
8485
8490
|
e[11] !== v || e[12] !== b || e[13] !== w ? (N = /* @__PURE__ */ r(ve, { disabled: v, onClick: b, children: w }), e[11] = v, e[12] = b, e[13] = w, e[14] = N) : N = e[14];
|
|
8486
8491
|
let k;
|
|
8487
|
-
e[15] !==
|
|
8492
|
+
e[15] !== p ? (k = (H) => p("from", H === null ? null : H.toString()), e[15] = p, e[16] = k) : k = e[16];
|
|
8488
8493
|
let D;
|
|
8489
8494
|
e[17] !== o.from || e[18] !== i || e[19] !== k ? (D = /* @__PURE__ */ r(bt, { type: "date", value: o.from, onChange: k, InputContainer: Nt, size: i }), e[17] = o.from, e[18] = i, e[19] = k, e[20] = D) : D = e[20];
|
|
8490
8495
|
const L = u[ao.find((H) => H[0] === c)[1]];
|
|
@@ -8493,11 +8498,11 @@ const Xh = (n) => {
|
|
|
8493
8498
|
let _;
|
|
8494
8499
|
e[23] !== I ? (_ = /* @__PURE__ */ r(Yt, { text: I, as: ym }), e[23] = I, e[24] = _) : _ = e[24];
|
|
8495
8500
|
let $;
|
|
8496
|
-
e[25] !== u || e[26] !==
|
|
8501
|
+
e[25] !== u || e[26] !== h || e[27] !== c ? ($ = ao.map((H) => /* @__PURE__ */ r(dt, { disabled: H[0] === c, className: z(H[0] === c ? "text-black-50" : ""), onClick: () => h(H[0]), role: "button", children: u[H[1]] }, H[0])), e[25] = u, e[26] = h, e[27] = c, e[28] = $) : $ = e[28];
|
|
8497
8502
|
let E;
|
|
8498
8503
|
e[29] !== _ || e[30] !== $ ? (E = /* @__PURE__ */ r(qt, { toggle: _, children: $ }), e[29] = _, e[30] = $, e[31] = E) : E = e[31];
|
|
8499
8504
|
let A;
|
|
8500
|
-
e[32] !==
|
|
8505
|
+
e[32] !== p ? (A = (H) => p("to", H === null ? null : H.toString()), e[32] = p, e[33] = A) : A = e[33];
|
|
8501
8506
|
let P;
|
|
8502
8507
|
e[34] !== o.to || e[35] !== i || e[36] !== A ? (P = /* @__PURE__ */ r(bt, { type: "date", value: o.to, onChange: A, InputContainer: Nt, size: i }), e[34] = o.to, e[35] = i, e[36] = A, e[37] = P) : P = e[37];
|
|
8503
8508
|
let O;
|
|
@@ -8541,15 +8546,15 @@ const Xh = (n) => {
|
|
|
8541
8546
|
} else
|
|
8542
8547
|
f = e[3];
|
|
8543
8548
|
const m = f;
|
|
8544
|
-
let
|
|
8545
|
-
e[4] !== a || e[5] !== c ? (
|
|
8549
|
+
let h;
|
|
8550
|
+
e[4] !== a || e[5] !== c ? (h = (g) => {
|
|
8546
8551
|
c(a, vn(g, {
|
|
8547
8552
|
representation: "date"
|
|
8548
8553
|
}));
|
|
8549
|
-
}, e[4] = a, e[5] = c, e[6] =
|
|
8550
|
-
const
|
|
8554
|
+
}, e[4] = a, e[5] = c, e[6] = h) : h = e[6];
|
|
8555
|
+
const p = h;
|
|
8551
8556
|
let v;
|
|
8552
|
-
return e[7] !== d || e[8] !== m || e[9] !==
|
|
8557
|
+
return e[7] !== d || e[8] !== m || e[9] !== p || e[10] !== o || e[11] !== i ? (v = /* @__PURE__ */ r(Ks, { month: m, onChangeMonth: p, locale: d, yearMin: i, yearMax: o }), e[7] = d, e[8] = m, e[9] = p, e[10] = o, e[11] = i, e[12] = v) : v = e[12], v;
|
|
8553
8558
|
}, Jh = (n) => {
|
|
8554
8559
|
const e = V.c(15);
|
|
8555
8560
|
let t, l, i;
|
|
@@ -8568,14 +8573,14 @@ const Xh = (n) => {
|
|
|
8568
8573
|
e[6] !== t || e[7] !== s ? (u = s ? _t(s) : t, e[6] = t, e[7] = s, e[8] = u) : u = e[8];
|
|
8569
8574
|
const c = u;
|
|
8570
8575
|
let f;
|
|
8571
|
-
e[9] !== d ? (f = (
|
|
8572
|
-
d(vn(
|
|
8576
|
+
e[9] !== d ? (f = (p) => {
|
|
8577
|
+
d(vn(p, {
|
|
8573
8578
|
representation: "date"
|
|
8574
8579
|
}));
|
|
8575
8580
|
}, e[9] = d, e[10] = f) : f = e[10];
|
|
8576
8581
|
const m = f;
|
|
8577
|
-
let
|
|
8578
|
-
return e[11] !== m || e[12] !== l || e[13] !== c ? (
|
|
8582
|
+
let h;
|
|
8583
|
+
return e[11] !== m || e[12] !== l || e[13] !== c ? (h = /* @__PURE__ */ r(Zs, { year: c, onChangeYear: m, ...l }), e[11] = m, e[12] = l, e[13] = c, e[14] = h) : h = e[14], h;
|
|
8579
8584
|
}, eg = (n) => {
|
|
8580
8585
|
const e = V.c(17), {
|
|
8581
8586
|
data: t,
|
|
@@ -8597,15 +8602,15 @@ const Xh = (n) => {
|
|
|
8597
8602
|
from: "color",
|
|
8598
8603
|
modifiers: [["darker", 0.5]]
|
|
8599
8604
|
}, e[3] = m) : m = e[3];
|
|
8600
|
-
let
|
|
8601
|
-
e[4] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
8605
|
+
let h;
|
|
8606
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
8602
8607
|
from: "color",
|
|
8603
8608
|
modifiers: [["darker", 0.5]]
|
|
8604
|
-
}, e[4] =
|
|
8605
|
-
let
|
|
8606
|
-
e[5] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
8609
|
+
}, e[4] = h) : h = e[4];
|
|
8610
|
+
let p;
|
|
8611
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
8607
8612
|
from: "color"
|
|
8608
|
-
}, e[5] =
|
|
8613
|
+
}, e[5] = p) : p = e[5];
|
|
8609
8614
|
let v;
|
|
8610
8615
|
e[6] !== s || e[7] !== a ? (v = a ? [{
|
|
8611
8616
|
anchor: s,
|
|
@@ -8626,7 +8631,7 @@ const Xh = (n) => {
|
|
|
8626
8631
|
let g;
|
|
8627
8632
|
e[9] !== o ? (g = (S) => o && o(S.data), e[9] = o, e[10] = g) : g = e[10];
|
|
8628
8633
|
let y;
|
|
8629
|
-
return e[11] !== d || e[12] !== t || e[13] !== g || e[14] !== f || e[15] !== v ? (y = /* @__PURE__ */ r(Kr, { data: t, margin: f, innerRadius: 0.4, padAngle: 4, cornerRadius: 2, activeOuterRadiusOffset: 10, borderWidth: 2, borderColor: m, colors: d, arcLinkLabelsSkipAngle: 10, arcLinkLabelsTextColor:
|
|
8634
|
+
return e[11] !== d || e[12] !== t || e[13] !== g || e[14] !== f || e[15] !== v ? (y = /* @__PURE__ */ r(Kr, { data: t, margin: f, innerRadius: 0.4, padAngle: 4, cornerRadius: 2, activeOuterRadiusOffset: 10, borderWidth: 2, borderColor: m, colors: d, arcLinkLabelsSkipAngle: 10, arcLinkLabelsTextColor: h, arcLinkLabelsThickness: 2, arcLinkLabelsColor: p, enableArcLabels: !1, legends: v, onClick: g }), e[11] = d, e[12] = t, e[13] = g, e[14] = f, e[15] = v, e[16] = y) : y = e[16], y;
|
|
8630
8635
|
}, Dm = (n) => {
|
|
8631
8636
|
var N, k;
|
|
8632
8637
|
const e = V.c(23), {
|
|
@@ -8639,11 +8644,11 @@ const Xh = (n) => {
|
|
|
8639
8644
|
e[0] !== f ? (m = {
|
|
8640
8645
|
transform: f
|
|
8641
8646
|
}, e[0] = f, e[1] = m) : m = e[1];
|
|
8642
|
-
const
|
|
8643
|
-
let
|
|
8644
|
-
e[2] !== l || e[3] !== t.point.seriesId ? (
|
|
8647
|
+
const h = m;
|
|
8648
|
+
let p;
|
|
8649
|
+
e[2] !== l || e[3] !== t.point.seriesId ? (p = l(t.point.seriesId), e[2] = l, e[3] = t.point.seriesId, e[4] = p) : p = e[4];
|
|
8645
8650
|
let v;
|
|
8646
|
-
e[5] !==
|
|
8651
|
+
e[5] !== p ? (v = /* @__PURE__ */ r(K, { variant: "body", children: p }), e[5] = p, e[6] = v) : v = e[6];
|
|
8647
8652
|
let g;
|
|
8648
8653
|
e[7] !== t.point.data.x ? (g = (N = t.point.data.x) == null ? void 0 : N.toString(), e[7] = t.point.data.x, e[8] = g) : g = e[8];
|
|
8649
8654
|
let y;
|
|
@@ -8665,10 +8670,10 @@ const Xh = (n) => {
|
|
|
8665
8670
|
x
|
|
8666
8671
|
] }), e[16] = y, e[17] = x, e[18] = b) : b = e[18];
|
|
8667
8672
|
let w;
|
|
8668
|
-
return e[19] !==
|
|
8673
|
+
return e[19] !== h || e[20] !== b || e[21] !== v ? (w = /* @__PURE__ */ T("div", { className: "bg-white shadow-sm px-2 py-1 rounded", style: h, children: [
|
|
8669
8674
|
v,
|
|
8670
8675
|
b
|
|
8671
|
-
] }), e[19] =
|
|
8676
|
+
] }), e[19] = h, e[20] = b, e[21] = v, e[22] = w) : w = e[22], w;
|
|
8672
8677
|
}, tg = (n) => {
|
|
8673
8678
|
var ce;
|
|
8674
8679
|
const e = V.c(68), {
|
|
@@ -8681,8 +8686,8 @@ const Xh = (n) => {
|
|
|
8681
8686
|
legendPosition: d,
|
|
8682
8687
|
noSort: u,
|
|
8683
8688
|
unit: c
|
|
8684
|
-
} = n, f = a === void 0 ? !1 : a, m = s === void 0 ? "default" : s,
|
|
8685
|
-
confirm:
|
|
8689
|
+
} = n, f = a === void 0 ? !1 : a, m = s === void 0 ? "default" : s, h = u === void 0 ? !1 : u, {
|
|
8690
|
+
confirm: p
|
|
8686
8691
|
} = jt(), {
|
|
8687
8692
|
chartColorPalette: v,
|
|
8688
8693
|
texts: g
|
|
@@ -8693,10 +8698,10 @@ const Xh = (n) => {
|
|
|
8693
8698
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ new Set(), e[0] = S) : S = e[0];
|
|
8694
8699
|
const [C, x] = ee(S), b = Be(null);
|
|
8695
8700
|
let w;
|
|
8696
|
-
e[1] !== y || e[2] !==
|
|
8701
|
+
e[1] !== y || e[2] !== p ? (w = async () => {
|
|
8697
8702
|
var oe;
|
|
8698
8703
|
const le = (oe = b.current) == null ? void 0 : oe.querySelector("svg");
|
|
8699
|
-
if (le && await
|
|
8704
|
+
if (le && await p(y.confirmExport)) {
|
|
8700
8705
|
const ae = le.cloneNode(!0);
|
|
8701
8706
|
ae.setAttribute("fill", "none");
|
|
8702
8707
|
const Se = new XMLSerializer().serializeToString(ae);
|
|
@@ -8704,7 +8709,7 @@ const Xh = (n) => {
|
|
|
8704
8709
|
type: "image/svg+xml"
|
|
8705
8710
|
}), "graf.svg");
|
|
8706
8711
|
}
|
|
8707
|
-
}, e[1] = y, e[2] =
|
|
8712
|
+
}, e[1] = y, e[2] = p, e[3] = w) : w = e[3];
|
|
8708
8713
|
const N = w;
|
|
8709
8714
|
let k;
|
|
8710
8715
|
e[4] === Symbol.for("react.memo_cache_sentinel") ? (k = (le) => {
|
|
@@ -8715,10 +8720,10 @@ const Xh = (n) => {
|
|
|
8715
8720
|
}, e[4] = k) : k = e[4];
|
|
8716
8721
|
const D = k;
|
|
8717
8722
|
let L;
|
|
8718
|
-
e[5] !== t || e[6] !==
|
|
8723
|
+
e[5] !== t || e[6] !== h || e[7] !== l ? (L = h ? t : t.toSorted((le, oe) => {
|
|
8719
8724
|
var ae;
|
|
8720
8725
|
return typeof oe[l] == "number" && typeof le[l] == "number" ? le[l] - oe[l] : (le[l] ?? "").toString().localeCompare(((ae = oe[l]) == null ? void 0 : ae.toString()) ?? "");
|
|
8721
|
-
}), e[5] = t, e[6] =
|
|
8726
|
+
}), e[5] = t, e[6] = h, e[7] = l, e[8] = L) : L = e[8];
|
|
8722
8727
|
const I = L;
|
|
8723
8728
|
let _;
|
|
8724
8729
|
e[9] !== I || e[10] !== f || e[11] !== l || e[12] !== i ? (_ = [], i.forEach((le) => {
|
|
@@ -8964,10 +8969,10 @@ const Xh = (n) => {
|
|
|
8964
8969
|
specialOption: !1
|
|
8965
8970
|
});
|
|
8966
8971
|
}), x;
|
|
8967
|
-
}, [l, a, o]), m = Be(null),
|
|
8972
|
+
}, [l, a, o]), m = Be(null), h = Be(null), [p, v] = ee(!1);
|
|
8968
8973
|
return me(() => {
|
|
8969
|
-
|
|
8970
|
-
}, [
|
|
8974
|
+
p && h.current && h.current.focus();
|
|
8975
|
+
}, [p]), me(() => {
|
|
8971
8976
|
f.length < co && d("");
|
|
8972
8977
|
}, [f]), /* @__PURE__ */ T(Nn, { autoClose: "outside", onToggle: (x) => v(x), children: [
|
|
8973
8978
|
/* @__PURE__ */ r(Nn.Toggle, { variant: "light", ref: m, id: `multiselect-${e}`, size: "sm", className: z("bg-white border", hn.multiselect), onKeyDown: (x) => {
|
|
@@ -8978,7 +8983,7 @@ const Xh = (n) => {
|
|
|
8978
8983
|
top: (S = m.current) == null ? void 0 : S.getBoundingClientRect().bottom,
|
|
8979
8984
|
maxWidth: `max(300px, ${(C = m.current) == null ? void 0 : C.getBoundingClientRect().width}px)`
|
|
8980
8985
|
}, children: [
|
|
8981
|
-
f.length >= co ? /* @__PURE__ */ r(Nn.Item, { className: z("rounded", hn.dropdownItem, hn.searchItem), children: /* @__PURE__ */ r(Pe.Control, { ref:
|
|
8986
|
+
f.length >= co ? /* @__PURE__ */ r(Nn.Item, { className: z("rounded", hn.dropdownItem, hn.searchItem), children: /* @__PURE__ */ r(Pe.Control, { ref: h, type: "search", size: "sm", value: s, onChange: (x) => d(x.target.value ?? ""), className: "w-100" }) }) : null,
|
|
8982
8987
|
f.filter((x) => x.specialOption ? !0 : s ? ct(x.value, s) : !0).map((x) => /* @__PURE__ */ r(Nn.Item, { onClick: () => !t && c(x.value, x.specialOption), disabled: t, className: z("rounded", hn.dropdownItem, {
|
|
8983
8988
|
[hn.specialOption]: x.specialOption
|
|
8984
8989
|
}, {
|
|
@@ -9001,15 +9006,15 @@ const Xh = (n) => {
|
|
|
9001
9006
|
onChangeHandler: c,
|
|
9002
9007
|
hideClearIcon: f,
|
|
9003
9008
|
clearValue: m,
|
|
9004
|
-
customPickers:
|
|
9005
|
-
isMultiChoice:
|
|
9009
|
+
customPickers: h,
|
|
9010
|
+
isMultiChoice: p,
|
|
9006
9011
|
multiChoiceSeparator: v,
|
|
9007
9012
|
disabled: g
|
|
9008
9013
|
} = n, S = g || a ? !0 : o ? !(s === void 0 ? !1 : s) : !1;
|
|
9009
9014
|
switch (t) {
|
|
9010
9015
|
case "NUM": {
|
|
9011
9016
|
if (d && d.length > 0) {
|
|
9012
|
-
if (!
|
|
9017
|
+
if (!p) {
|
|
9013
9018
|
let _;
|
|
9014
9019
|
e[0] !== l ? (_ = (l == null ? void 0 : l.toString()) ?? "", e[0] = l, e[1] = _) : _ = e[1];
|
|
9015
9020
|
let $;
|
|
@@ -9035,7 +9040,7 @@ const Xh = (n) => {
|
|
|
9035
9040
|
}
|
|
9036
9041
|
case "STR": {
|
|
9037
9042
|
if (d && d.length > 0) {
|
|
9038
|
-
if (!
|
|
9043
|
+
if (!p) {
|
|
9039
9044
|
let $;
|
|
9040
9045
|
e[33] !== l ? ($ = (l == null ? void 0 : l.toString()) ?? "", e[33] = l, e[34] = $) : $ = e[34];
|
|
9041
9046
|
let E;
|
|
@@ -9082,7 +9087,7 @@ const Xh = (n) => {
|
|
|
9082
9087
|
}
|
|
9083
9088
|
default: {
|
|
9084
9089
|
let x;
|
|
9085
|
-
e[87] !==
|
|
9090
|
+
e[87] !== h || e[88] !== t ? (x = h == null ? void 0 : h.find((I) => I.type === t), e[87] = h, e[88] = t, e[89] = x) : x = e[89];
|
|
9086
9091
|
const b = x;
|
|
9087
9092
|
if (!b) {
|
|
9088
9093
|
let I;
|
|
@@ -9133,8 +9138,8 @@ const Xh = (n) => {
|
|
|
9133
9138
|
} = n, {
|
|
9134
9139
|
ProjectIconComponent: c
|
|
9135
9140
|
} = ne(ue), [f, m] = ee(o);
|
|
9136
|
-
let
|
|
9137
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
9141
|
+
let h;
|
|
9142
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = (_, $) => {
|
|
9138
9143
|
console.log("changeValue", _, $), m((E) => ({
|
|
9139
9144
|
...E,
|
|
9140
9145
|
[_]: {
|
|
@@ -9142,8 +9147,8 @@ const Xh = (n) => {
|
|
|
9142
9147
|
value: $
|
|
9143
9148
|
}
|
|
9144
9149
|
}));
|
|
9145
|
-
}, e[0] =
|
|
9146
|
-
const
|
|
9150
|
+
}, e[0] = h) : h = e[0];
|
|
9151
|
+
const p = h, v = Km;
|
|
9147
9152
|
let g;
|
|
9148
9153
|
e[1] !== f ? (g = () => Object.keys(f).some((_) => v(f[_])), e[1] = f, e[2] = g) : g = e[2];
|
|
9149
9154
|
const y = g;
|
|
@@ -9163,7 +9168,7 @@ const Xh = (n) => {
|
|
|
9163
9168
|
...P,
|
|
9164
9169
|
valuesForSelect: [...P.valuesForSelect ?? [], A]
|
|
9165
9170
|
} : P));
|
|
9166
|
-
}, onChangeHandler:
|
|
9171
|
+
}, onChangeHandler: p, hideClearIcon: !v(f[_.field ?? ""]), clearValue: (E = f[_.field ?? ""].defaultValue) == null ? void 0 : E.toString(), customPickers: d, isMultiChoice: _.multiChoice ?? !1, multiChoiceSeparator: _.multiChoiceSeparator ?? null, disabled: !t.userCanModify }) }, `${t.id}-${_.field}`);
|
|
9167
9172
|
}), e[13] = l, e[14] = d, e[15] = f, e[16] = t.id, e[17] = t.primaryKey, e[18] = t.userCanModify, e[19] = i, e[20] = w) : w = e[20];
|
|
9168
9173
|
let N;
|
|
9169
9174
|
e[21] === Symbol.for("react.memo_cache_sentinel") ? (N = z("table-cell d-flex gap-1", Fe.tableCell, Fe.stickyLast), e[21] = N) : N = e[21];
|
|
@@ -9227,9 +9232,9 @@ const Ym = (n) => {
|
|
|
9227
9232
|
}
|
|
9228
9233
|
});
|
|
9229
9234
|
}, e[2] = m) : m = e[2];
|
|
9230
|
-
const
|
|
9231
|
-
let
|
|
9232
|
-
return e[3] !== s || e[4] !== l || e[5] !== a || e[6] !== f || e[7] !== d || e[8] !== o || e[9] !== t.id || e[10] !== t.primaryKey || e[11] !== t.userCanModify || e[12] !== i ? (
|
|
9235
|
+
const h = m;
|
|
9236
|
+
let p;
|
|
9237
|
+
return e[3] !== s || e[4] !== l || e[5] !== a || e[6] !== f || e[7] !== d || e[8] !== o || e[9] !== t.id || e[10] !== t.primaryKey || e[11] !== t.userCanModify || e[12] !== i ? (p = d ? /* @__PURE__ */ T("tr", { className: "sticky-bottom shadow", children: [
|
|
9233
9238
|
t.userCanModify && /* @__PURE__ */ r("td", { className: "sticky-first", children: /* @__PURE__ */ r(ve, { color: "success", onClick: async () => {
|
|
9234
9239
|
const v = Ba(d);
|
|
9235
9240
|
v && await o(v) && u(null);
|
|
@@ -9239,12 +9244,12 @@ const Ym = (n) => {
|
|
|
9239
9244
|
...y,
|
|
9240
9245
|
valuesForSelect: [...y.valuesForSelect ?? [], g]
|
|
9241
9246
|
} : y));
|
|
9242
|
-
}, onChangeHandler:
|
|
9247
|
+
}, onChangeHandler: h, primaryEditable: !0, customPickers: a, isMultiChoice: v.multiChoice ?? !1, multiChoiceSeparator: v.multiChoiceSeparator ?? null, disabled: !t.userCanModify }) }, `${t.id}-${v.field}`)),
|
|
9243
9248
|
t.userCanModify && /* @__PURE__ */ r("td", { className: "sticky-last", children: /* @__PURE__ */ r(ve, { color: "danger", onClick: () => u(null), children: /* @__PURE__ */ r(s, { icon: "cancel" }) }) })
|
|
9244
9249
|
] }) : t.userCanModify && /* @__PURE__ */ T("tr", { className: "sticky-bottom shadow", children: [
|
|
9245
9250
|
/* @__PURE__ */ r("td", { className: "sticky-first", children: /* @__PURE__ */ r(ve, { onClick: f, children: /* @__PURE__ */ r(s, { icon: "add" }) }) }),
|
|
9246
9251
|
/* @__PURE__ */ r("td", { colSpan: l.length + 1 })
|
|
9247
|
-
] }), e[3] = s, e[4] = l, e[5] = a, e[6] = f, e[7] = d, e[8] = o, e[9] = t.id, e[10] = t.primaryKey, e[11] = t.userCanModify, e[12] = i, e[13] =
|
|
9252
|
+
] }), e[3] = s, e[4] = l, e[5] = a, e[6] = f, e[7] = d, e[8] = o, e[9] = t.id, e[10] = t.primaryKey, e[11] = t.userCanModify, e[12] = i, e[13] = p) : p = e[13], p;
|
|
9248
9253
|
}, qm = "_resizer_ref0b_1", Qm = "_content_ref0b_11", Xm = "_dragging_ref0b_16", Yn = {
|
|
9249
9254
|
resizer: qm,
|
|
9250
9255
|
content: Qm,
|
|
@@ -9268,18 +9273,18 @@ const Ym = (n) => {
|
|
|
9268
9273
|
e[8] !== a ? (m = (y) => {
|
|
9269
9274
|
a(y.currentTarget.getBoundingClientRect().x), y.currentTarget.classList.add(Yn.dragging);
|
|
9270
9275
|
}, e[8] = a, e[9] = m) : m = e[9];
|
|
9271
|
-
let p;
|
|
9272
|
-
e[10] !== t || e[11] !== a ? (p = (y) => {
|
|
9273
|
-
a((S) => (t.current && o((C) => C + y.clientX - (S ?? 0)), y.clientX));
|
|
9274
|
-
}, e[10] = t, e[11] = a, e[12] = p) : p = e[12];
|
|
9275
9276
|
let h;
|
|
9276
|
-
e[
|
|
9277
|
+
e[10] !== t || e[11] !== a ? (h = (y) => {
|
|
9278
|
+
a((S) => (t.current && o((C) => C + y.clientX - (S ?? 0)), y.clientX));
|
|
9279
|
+
}, e[10] = t, e[11] = a, e[12] = h) : h = e[12];
|
|
9280
|
+
let p;
|
|
9281
|
+
e[13] !== a ? (p = (y) => {
|
|
9277
9282
|
a(null), y.currentTarget.classList.remove(Yn.dragging);
|
|
9278
|
-
}, e[13] = a, e[14] =
|
|
9283
|
+
}, e[13] = a, e[14] = p) : p = e[14];
|
|
9279
9284
|
let v;
|
|
9280
9285
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ r("div", { className: z("content", Yn.content) }), e[15] = v) : v = e[15];
|
|
9281
9286
|
let g;
|
|
9282
|
-
return e[16] !== m || e[17] !==
|
|
9287
|
+
return e[16] !== m || e[17] !== h || e[18] !== p ? (g = /* @__PURE__ */ r("div", { className: f, draggable: !0, onDragStart: m, onDrag: h, onDragEnd: p, children: v }), e[16] = m, e[17] = h, e[18] = p, e[19] = g) : g = e[19], g;
|
|
9283
9288
|
}, Jm = (n) => {
|
|
9284
9289
|
const e = V.c(10), {
|
|
9285
9290
|
column: t,
|
|
@@ -9355,20 +9360,20 @@ const Ym = (n) => {
|
|
|
9355
9360
|
}, e[1] = t.field, e[2] = o, e[3] = l, e[4] = i, e[5] = f) : f = e[5];
|
|
9356
9361
|
let m;
|
|
9357
9362
|
e[6] !== a || e[7] !== t.field || e[8] !== l || e[9] !== i ? (m = l === t.field && /* @__PURE__ */ r(a, { icon: i === "asc" ? "chevron-up" : "chevron-down" }), e[6] = a, e[7] = t.field, e[8] = l, e[9] = i, e[10] = m) : m = e[10];
|
|
9358
|
-
let
|
|
9359
|
-
e[11] !== t.label || e[12] !== m ? (
|
|
9363
|
+
let h;
|
|
9364
|
+
e[11] !== t.label || e[12] !== m ? (h = /* @__PURE__ */ T("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
9360
9365
|
t.label,
|
|
9361
9366
|
m
|
|
9362
|
-
] }), e[11] = t.label, e[12] = m, e[13] =
|
|
9363
|
-
let
|
|
9364
|
-
e[14] !== t || e[15] !==
|
|
9367
|
+
] }), e[11] = t.label, e[12] = m, e[13] = h) : h = e[13];
|
|
9368
|
+
let p;
|
|
9369
|
+
e[14] !== t || e[15] !== h ? (p = /* @__PURE__ */ r(Jm, { column: t, children: h }), e[14] = t, e[15] = h, e[16] = p) : p = e[16];
|
|
9365
9370
|
let v;
|
|
9366
9371
|
e[17] !== u ? (v = /* @__PURE__ */ r(Zm, { cellRef: s, defaultWidth: u }), e[17] = u, e[18] = v) : v = e[18];
|
|
9367
9372
|
let g;
|
|
9368
|
-
return e[19] !== f || e[20] !==
|
|
9369
|
-
|
|
9373
|
+
return e[19] !== f || e[20] !== p || e[21] !== v ? (g = /* @__PURE__ */ T("th", { ref: s, className: c, onClick: f, children: [
|
|
9374
|
+
p,
|
|
9370
9375
|
v
|
|
9371
|
-
] }), e[19] = f, e[20] =
|
|
9376
|
+
] }), e[19] = f, e[20] = p, e[21] = v, e[22] = g) : g = e[22], g;
|
|
9372
9377
|
}, tp = (n) => {
|
|
9373
9378
|
const e = V.c(80), {
|
|
9374
9379
|
schema: t,
|
|
@@ -9382,8 +9387,8 @@ const Ym = (n) => {
|
|
|
9382
9387
|
sortByType: c,
|
|
9383
9388
|
setSortBy: f,
|
|
9384
9389
|
selectedMaster: m,
|
|
9385
|
-
customPickers:
|
|
9386
|
-
appDetail:
|
|
9390
|
+
customPickers: h,
|
|
9391
|
+
appDetail: p
|
|
9387
9392
|
} = n, {
|
|
9388
9393
|
texts: v
|
|
9389
9394
|
} = ne(ue), {
|
|
@@ -9463,15 +9468,15 @@ const Ym = (n) => {
|
|
|
9463
9468
|
let B;
|
|
9464
9469
|
e[50] === Symbol.for("react.memo_cache_sentinel") ? (B = z("table-body", Fe.tableBody), e[50] = B) : B = e[50];
|
|
9465
9470
|
let j;
|
|
9466
|
-
if (e[51] !==
|
|
9471
|
+
if (e[51] !== p || e[52] !== S || e[53] !== h || e[54] !== l || e[55] !== o || e[56] !== i || e[57] !== t) {
|
|
9467
9472
|
let W;
|
|
9468
9473
|
e[59] !== t.primaryKey ? (W = (q) => q[t.primaryKey ?? ""], e[59] = t.primaryKey, e[60] = W) : W = e[60];
|
|
9469
9474
|
let G;
|
|
9470
|
-
e[61] !==
|
|
9475
|
+
e[61] !== p || e[62] !== S || e[63] !== h || e[64] !== o || e[65] !== i || e[66] !== t ? (G = (q) => /* @__PURE__ */ r(Gm, { schema: t, columns: S, setColumns: C, initialItem: q, onEdit: i, onDelete: o, customPickers: h, appDetail: p }, `${t.id}-${q[t.primaryKey ?? ""].value}`), e[61] = p, e[62] = S, e[63] = h, e[64] = o, e[65] = i, e[66] = t, e[67] = G) : G = e[67], j = l.filter(W).map(G), e[51] = p, e[52] = S, e[53] = h, e[54] = l, e[55] = o, e[56] = i, e[57] = t, e[58] = j;
|
|
9471
9476
|
} else
|
|
9472
9477
|
j = e[58];
|
|
9473
9478
|
let H;
|
|
9474
|
-
e[68] !== S || e[69] !==
|
|
9479
|
+
e[68] !== S || e[69] !== h || e[70] !== a || e[71] !== t ? (H = /* @__PURE__ */ r(Ym, { schema: t, columns: S, setColumns: C, onCreate: a, customPickers: h }), e[68] = S, e[69] = h, e[70] = a, e[71] = t, e[72] = H) : H = e[72];
|
|
9475
9480
|
let M;
|
|
9476
9481
|
e[73] !== j || e[74] !== H ? (M = /* @__PURE__ */ T("tbody", { className: B, children: [
|
|
9477
9482
|
j,
|
|
@@ -9535,8 +9540,8 @@ const ip = (n) => {
|
|
|
9535
9540
|
apiDataGet: c = en.apiDataGet,
|
|
9536
9541
|
apiItemPost: f = en.apiItemPost,
|
|
9537
9542
|
apiItemDelete: m = en.apiItemDelete,
|
|
9538
|
-
apiItemCreate:
|
|
9539
|
-
apiExportGet:
|
|
9543
|
+
apiItemCreate: h = en.apiItemCreate,
|
|
9544
|
+
apiExportGet: p = en.apiExportGet
|
|
9540
9545
|
} = en,
|
|
9541
9546
|
customPickers: v
|
|
9542
9547
|
}) => {
|
|
@@ -9587,14 +9592,14 @@ const ip = (n) => {
|
|
|
9587
9592
|
}
|
|
9588
9593
|
}, [S, n, b, C, x, $, te, c]), he = ke(async () => {
|
|
9589
9594
|
var re;
|
|
9590
|
-
b === null || ((re = b.id) == null ? void 0 : re.toString()) !== n || b.masterReference && !te || (C("dynamicFormExport"), await S.get(`${
|
|
9595
|
+
b === null || ((re = b.id) == null ? void 0 : re.toString()) !== n || b.masterReference && !te || (C("dynamicFormExport"), await S.get(`${p}?id=${n}&showArchive=${$}${b.masterReference ? `&master=${te}` : ""}`, {
|
|
9591
9596
|
responseType: "blob"
|
|
9592
9597
|
}).then((be) => Qr(be, {
|
|
9593
9598
|
fallbackName: `export-${n}`
|
|
9594
9599
|
})).finally(() => x("dynamicFormExport")));
|
|
9595
|
-
}, [S, n, b, C, x, $, te,
|
|
9600
|
+
}, [S, n, b, C, x, $, te, p]), ye = ke(async (re) => (C("dynamicFormEdit"), S.post(`${f}?id=${n}`, re).then(() => (x("dynamicFormEdit"), O([]), !0)).catch((be) => (x("dynamicFormEdit"), O(wl(be)), !1))), [S, n, C, x, f]), we = ke(async (re) => (C("dynamicFormDelete"), S.delete(`${m}?id=${n}&pk=${re}`).then(() => (x("dynamicFormDelete"), O([]), !0)).catch((be) => (x("dynamicFormDelete"), O(wl(be)), !1))), [S, n, C, x, m]), Z = ke(async (re) => (C("dynamicFormCreate"), S.post(`${h}?id=${n}`, re).then(({
|
|
9596
9601
|
data: be
|
|
9597
|
-
}) => (x("dynamicFormCreate"), O([]), be)).catch((be) => (x("dynamicFormCreate"), O(
|
|
9602
|
+
}) => (x("dynamicFormCreate"), O([]), be)).catch((be) => (x("dynamicFormCreate"), O(wl(be)), null))), [S, n, C, x, h]), J = ke(async (re) => {
|
|
9598
9603
|
b && await ye(b.masterReference ? {
|
|
9599
9604
|
...re,
|
|
9600
9605
|
[b.masterReferenceColumn ?? ""]: te
|
|
@@ -9814,9 +9819,9 @@ const ip = (n) => {
|
|
|
9814
9819
|
const f = c;
|
|
9815
9820
|
let m;
|
|
9816
9821
|
e[2] !== o ? (m = o === void 0 ? [] : o, e[2] = o, e[3] = m) : m = e[3];
|
|
9817
|
-
const
|
|
9818
|
-
appDetail:
|
|
9819
|
-
} = d === void 0 ? po : d, v =
|
|
9822
|
+
const h = m, {
|
|
9823
|
+
appDetail: p
|
|
9824
|
+
} = d === void 0 ? po : d, v = p === void 0 ? po.appDetail : p, {
|
|
9820
9825
|
apiDynamicFormsGet: g
|
|
9821
9826
|
} = u === void 0 ? ho : u, y = g === void 0 ? ho.apiDynamicFormsGet : g, S = ut(), {
|
|
9822
9827
|
startLoading: C,
|
|
@@ -9829,13 +9834,13 @@ const ip = (n) => {
|
|
|
9829
9834
|
e[7] !== b || e[8] !== f || e[9] !== a ? (L = [...(b == null ? void 0 : b.map(sp)) ?? [], ...f].filter((F) => ct(F.name, a) || ct(F.description, a)).sort(cp) ?? [], e[7] = b, e[8] = f, e[9] = a, e[10] = L) : L = e[10];
|
|
9830
9835
|
const I = L;
|
|
9831
9836
|
let _;
|
|
9832
|
-
if (e[11] !== I || e[12] !==
|
|
9837
|
+
if (e[11] !== I || e[12] !== h) {
|
|
9833
9838
|
let F;
|
|
9834
9839
|
e[14] !== I ? (F = (B) => ({
|
|
9835
9840
|
id: B.id,
|
|
9836
9841
|
name: B.name ?? "",
|
|
9837
9842
|
items: I.filter((j) => j.group === B.id)
|
|
9838
|
-
}), e[14] = I, e[15] = F) : F = e[15], _ =
|
|
9843
|
+
}), e[14] = I, e[15] = F) : F = e[15], _ = h.map(F).filter(dp), e[11] = I, e[12] = h, e[13] = _;
|
|
9839
9844
|
} else
|
|
9840
9845
|
_ = e[13];
|
|
9841
9846
|
const $ = _;
|
|
@@ -9859,7 +9864,7 @@ const ip = (n) => {
|
|
|
9859
9864
|
D.map((F) => /* @__PURE__ */ r(vo, { item: F, fullSize: s ?? !1, appDetail: v, search: N, activeId: t, disabled: F.type === "dynamic-form" && !F.userCanModify && !F.userCanSelect }, F.id)),
|
|
9860
9865
|
/* @__PURE__ */ r("hr", { className: "mb-0" })
|
|
9861
9866
|
] }) : null,
|
|
9862
|
-
$.map((F) => /* @__PURE__ */ r(
|
|
9867
|
+
$.map((F) => /* @__PURE__ */ r(ol, { title: F.name, defaultOpen: !0, children: F.items.map((B) => /* @__PURE__ */ r(vo, { item: B, fullSize: s ?? !1, appDetail: v, search: N, activeId: t, disabled: B.type === "dynamic-form" && !B.userCanSelect && !B.userCanModify }, B.id)) }, F.id))
|
|
9863
9868
|
] }) }) : null, e[25] = t, e[26] = v, e[27] = D, e[28] = $, e[29] = I, e[30] = s, e[31] = N, e[32] = R) : R = e[32], R;
|
|
9864
9869
|
};
|
|
9865
9870
|
function rp(n, e) {
|
|
@@ -9926,23 +9931,23 @@ const ig = (n) => {
|
|
|
9926
9931
|
n[11] !== f ? (m = z("w-100 border-end border-primary text-center", {
|
|
9927
9932
|
"fw-bold": f
|
|
9928
9933
|
}), n[11] = f, n[12] = m) : m = n[12];
|
|
9929
|
-
let p;
|
|
9930
|
-
n[13] !== c || n[14] !== m ? (p = /* @__PURE__ */ r("span", { role: "button", onClick: c, className: m, children: "EN" }), n[13] = c, n[14] = m, n[15] = p) : p = n[15];
|
|
9931
9934
|
let h;
|
|
9932
|
-
n[
|
|
9935
|
+
n[13] !== c || n[14] !== m ? (h = /* @__PURE__ */ r("span", { role: "button", onClick: c, className: m, children: "EN" }), n[13] = c, n[14] = m, n[15] = h) : h = n[15];
|
|
9936
|
+
let p;
|
|
9937
|
+
n[16] !== o ? (p = (C) => o(C, "de"), n[16] = o, n[17] = p) : p = n[17];
|
|
9933
9938
|
const v = t === "de";
|
|
9934
9939
|
let g;
|
|
9935
9940
|
n[18] !== v ? (g = z("w-100 text-center", {
|
|
9936
9941
|
"fw-bold": v
|
|
9937
9942
|
}), n[18] = v, n[19] = g) : g = n[19];
|
|
9938
9943
|
let y;
|
|
9939
|
-
n[20] !== g || n[21] !==
|
|
9944
|
+
n[20] !== g || n[21] !== p ? (y = /* @__PURE__ */ r("span", { role: "button", onClick: p, className: g, children: "DE" }), n[20] = g, n[21] = p, n[22] = y) : y = n[22];
|
|
9940
9945
|
let S;
|
|
9941
|
-
return n[23] !== y || n[24] !== u || n[25] !==
|
|
9946
|
+
return n[23] !== y || n[24] !== u || n[25] !== h ? (S = /* @__PURE__ */ r(dt, { children: /* @__PURE__ */ T("div", { className: "w-100 d-flex align-items-center", children: [
|
|
9942
9947
|
u,
|
|
9943
|
-
|
|
9948
|
+
h,
|
|
9944
9949
|
y
|
|
9945
|
-
] }) }), n[23] = y, n[24] = u, n[25] =
|
|
9950
|
+
] }) }), n[23] = y, n[24] = u, n[25] = h, n[26] = S) : S = n[26], S;
|
|
9946
9951
|
}, ag = (n) => {
|
|
9947
9952
|
const e = V.c(6);
|
|
9948
9953
|
let t, l;
|
|
@@ -9992,19 +9997,19 @@ const ig = (n) => {
|
|
|
9992
9997
|
let c;
|
|
9993
9998
|
e[4] !== u || e[5] !== t ? (c = /* @__PURE__ */ r(Pe.Control, { value: t, onChange: u }), e[4] = u, e[5] = t, e[6] = c) : c = e[6];
|
|
9994
9999
|
let f;
|
|
9995
|
-
e[7] !== s || e[8] !== t ? (f = t && /* @__PURE__ */ r(
|
|
10000
|
+
e[7] !== s || e[8] !== t ? (f = t && /* @__PURE__ */ r(Rl, { onClick: () => s(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ r(Gt, {}) }), e[7] = s, e[8] = t, e[9] = f) : f = e[9];
|
|
9996
10001
|
let m;
|
|
9997
10002
|
e[10] !== i || e[11] !== t ? (m = () => i && i(t), e[10] = i, e[11] = t, e[12] = m) : m = e[12];
|
|
9998
|
-
let p;
|
|
9999
|
-
e[13] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r(Xr, {}), e[13] = p) : p = e[13];
|
|
10000
10003
|
let h;
|
|
10001
|
-
e[
|
|
10004
|
+
e[13] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ r(Xr, {}), e[13] = h) : h = e[13];
|
|
10005
|
+
let p;
|
|
10006
|
+
e[14] !== m ? (p = /* @__PURE__ */ r(Rl, { onClick: m, variant: "link", className: "border", children: h }), e[14] = m, e[15] = p) : p = e[15];
|
|
10002
10007
|
let v;
|
|
10003
|
-
return e[16] !== d || e[17] !== c || e[18] !== f || e[19] !==
|
|
10008
|
+
return e[16] !== d || e[17] !== c || e[18] !== f || e[19] !== p ? (v = /* @__PURE__ */ T(el, { className: d, children: [
|
|
10004
10009
|
c,
|
|
10005
10010
|
f,
|
|
10006
|
-
|
|
10007
|
-
] }), e[16] = d, e[17] = c, e[18] = f, e[19] =
|
|
10011
|
+
p
|
|
10012
|
+
] }), e[16] = d, e[17] = c, e[18] = f, e[19] = p, e[20] = v) : v = e[20], v;
|
|
10008
10013
|
}, cg = (n) => {
|
|
10009
10014
|
const e = V.c(7), {
|
|
10010
10015
|
value: t,
|
|
@@ -10084,7 +10089,7 @@ const fp = "_hrText_xxish_1", mp = {
|
|
|
10084
10089
|
data: s
|
|
10085
10090
|
} = nt(t);
|
|
10086
10091
|
let d;
|
|
10087
|
-
e[0] !== i || e[1] !== l || e[2] !== s ? (d = s && s.map((f) => f.versions.map((m) => /* @__PURE__ */ T(
|
|
10092
|
+
e[0] !== i || e[1] !== l || e[2] !== s ? (d = s && s.map((f) => f.versions.map((m) => /* @__PURE__ */ T(cl, { as: at, to: l(f, m.id), className: "p-1 px-2", action: !0, children: [
|
|
10088
10093
|
/* @__PURE__ */ r(K, { variant: "body2", className: "text-uppercase", children: i(f) }),
|
|
10089
10094
|
/* @__PURE__ */ T(K, { variant: "caption", className: "d-flex justify-content-between align-items-center gap-3 text-dark", children: [
|
|
10090
10095
|
m.name,
|
|
@@ -10094,7 +10099,7 @@ const fp = "_hrText_xxish_1", mp = {
|
|
|
10094
10099
|
let u;
|
|
10095
10100
|
e[4] !== d ? (u = /* @__PURE__ */ r($n, { children: d }), e[4] = d, e[5] = u) : u = e[5];
|
|
10096
10101
|
let c;
|
|
10097
|
-
return e[6] !== a.index.lastUsedReports || e[7] !== u ? (c = /* @__PURE__ */ r(pe, { children: /* @__PURE__ */ r(
|
|
10102
|
+
return e[6] !== a.index.lastUsedReports || e[7] !== u ? (c = /* @__PURE__ */ r(pe, { children: /* @__PURE__ */ r(ol, { defaultOpen: !0, title: a.index.lastUsedReports, children: u }) }), e[6] = a.index.lastUsedReports, e[7] = u, e[8] = c) : c = e[8], c;
|
|
10098
10103
|
}, gp = "_cards-group_163sq_1", vp = "_group-title_163sq_1", yp = "_group-content_163sq_8", bp = "_report-card_163sq_12", Sp = "_card-title-link_163sq_22", wp = "_disabled_163sq_28", on = {
|
|
10099
10104
|
cardsGroup: gp,
|
|
10100
10105
|
groupTitle: vp,
|
|
@@ -10113,7 +10118,7 @@ const fp = "_hrText_xxish_1", mp = {
|
|
|
10113
10118
|
let a;
|
|
10114
10119
|
e[4] !== t.name ? (a = /* @__PURE__ */ r(K, { variant: "body2", className: "d-flex justify-content-between align-items-center gap-3", children: /* @__PURE__ */ r("div", { className: "link", children: t.name }) }), e[4] = t.name, e[5] = a) : a = e[5];
|
|
10115
10120
|
let s;
|
|
10116
|
-
return e[6] !== o || e[7] !== a ? (s = /* @__PURE__ */ r(
|
|
10121
|
+
return e[6] !== o || e[7] !== a ? (s = /* @__PURE__ */ r(cl, { as: at, to: o, className: "p-1 px-2", action: !0, children: a }), e[6] = o, e[7] = a, e[8] = s) : s = e[8], s;
|
|
10117
10122
|
}, qn = 5, bo = (n) => {
|
|
10118
10123
|
const e = V.c(25), {
|
|
10119
10124
|
versionsList: t,
|
|
@@ -10149,16 +10154,16 @@ const fp = "_hrText_xxish_1", mp = {
|
|
|
10149
10154
|
e[9] !== l || e[10] !== i ? (g = (y) => /* @__PURE__ */ r(yo, { reportVersion: y, getReportRoute: l, report: i }), e[9] = l, e[10] = i, e[11] = g) : g = e[11], m = u.map(g), e[5] = u, e[6] = l, e[7] = i, e[8] = m;
|
|
10150
10155
|
} else
|
|
10151
10156
|
m = e[8];
|
|
10152
|
-
let p;
|
|
10153
|
-
e[12] !== a || e[13] !== l || e[14] !== f || e[15] !== i ? (p = a ? null : f.map((g) => /* @__PURE__ */ r(yo, { reportVersion: g, getReportRoute: l, report: i })), e[12] = a, e[13] = l, e[14] = f, e[15] = i, e[16] = p) : p = e[16];
|
|
10154
10157
|
let h;
|
|
10155
|
-
e[
|
|
10158
|
+
e[12] !== a || e[13] !== l || e[14] !== f || e[15] !== i ? (h = a ? null : f.map((g) => /* @__PURE__ */ r(yo, { reportVersion: g, getReportRoute: l, report: i })), e[12] = a, e[13] = l, e[14] = f, e[15] = i, e[16] = h) : h = e[16];
|
|
10159
|
+
let p;
|
|
10160
|
+
e[17] !== o || e[18] !== a || e[19] !== f.length ? (p = f.length > 0 && /* @__PURE__ */ r(cl, { onClick: () => s(xp), className: "py-0 d-flex justify-content-center", children: a ? /* @__PURE__ */ r(o, { icon: "chevron-down" }) : /* @__PURE__ */ r(o, { icon: "chevron-up" }) }), e[17] = o, e[18] = a, e[19] = f.length, e[20] = p) : p = e[20];
|
|
10156
10161
|
let v;
|
|
10157
|
-
return e[21] !== m || e[22] !==
|
|
10162
|
+
return e[21] !== m || e[22] !== h || e[23] !== p ? (v = /* @__PURE__ */ r(pe, { children: /* @__PURE__ */ T($n, { children: [
|
|
10158
10163
|
m,
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
] }) }), e[21] = m, e[22] =
|
|
10164
|
+
h,
|
|
10165
|
+
p
|
|
10166
|
+
] }) }), e[21] = m, e[22] = h, e[23] = p, e[24] = v) : v = e[24], v;
|
|
10162
10167
|
};
|
|
10163
10168
|
function xp(n) {
|
|
10164
10169
|
return !n;
|
|
@@ -10199,28 +10204,28 @@ const Cp = (n) => {
|
|
|
10199
10204
|
let f;
|
|
10200
10205
|
e[9] !== d || e[10] !== c ? (f = /* @__PURE__ */ r(at, { to: d, className: u, children: c }), e[9] = d, e[10] = c, e[11] = f) : f = e[11];
|
|
10201
10206
|
const m = !t.userHasPermission;
|
|
10202
|
-
let p;
|
|
10203
|
-
e[12] !== m ? (p = z(on.reportCard, "shadow h-100 d-flex flex-column", {
|
|
10204
|
-
[on.disabled]: m
|
|
10205
|
-
}), e[12] = m, e[13] = p) : p = e[13];
|
|
10206
10207
|
let h;
|
|
10207
|
-
e[
|
|
10208
|
+
e[12] !== m ? (h = z(on.reportCard, "shadow h-100 d-flex flex-column", {
|
|
10209
|
+
[on.disabled]: m
|
|
10210
|
+
}), e[12] = m, e[13] = h) : h = e[13];
|
|
10211
|
+
let p;
|
|
10212
|
+
e[14] !== o || e[15] !== t ? (p = o(t), e[14] = o, e[15] = t, e[16] = p) : p = e[16];
|
|
10208
10213
|
let v;
|
|
10209
|
-
e[17] !==
|
|
10214
|
+
e[17] !== p ? (v = /* @__PURE__ */ r(K, { variant: "body2", className: "px-2", children: p }), e[17] = p, e[18] = v) : v = e[18];
|
|
10210
10215
|
let g;
|
|
10211
|
-
e[19] !== l || e[20] !== t || e[21] !== s ? (g = t.versions && t.versions.length > 0 ? /* @__PURE__ */ r(
|
|
10216
|
+
e[19] !== l || e[20] !== t || e[21] !== s ? (g = t.versions && t.versions.length > 0 ? /* @__PURE__ */ r(ll, { ...s, children: /* @__PURE__ */ r(bo, { versionsList: t.versions, getReportRoute: l, report: t }) }) : null, e[19] = l, e[20] = t, e[21] = s, e[22] = g) : g = e[22];
|
|
10212
10217
|
let y;
|
|
10213
|
-
e[23] !== l || e[24] !== t || e[25] !== s ? (y = t.versionsCustom && t.versionsCustom.length > 0 ? /* @__PURE__ */ r(
|
|
10218
|
+
e[23] !== l || e[24] !== t || e[25] !== s ? (y = t.versionsCustom && t.versionsCustom.length > 0 ? /* @__PURE__ */ r(ll, { ...s, children: /* @__PURE__ */ r(bo, { versionsList: t.versionsCustom, getReportRoute: l, report: t }) }) : null, e[23] = l, e[24] = t, e[25] = s, e[26] = y) : y = e[26];
|
|
10214
10219
|
let S;
|
|
10215
10220
|
e[27] !== g || e[28] !== y ? (S = /* @__PURE__ */ T(ai, { className: "h-100 g-2", children: [
|
|
10216
10221
|
g,
|
|
10217
10222
|
y
|
|
10218
10223
|
] }), e[27] = g, e[28] = y, e[29] = S) : S = e[29];
|
|
10219
10224
|
let C;
|
|
10220
|
-
return e[30] !== S || e[31] !== f || e[32] !==
|
|
10225
|
+
return e[30] !== S || e[31] !== f || e[32] !== h || e[33] !== v ? (C = /* @__PURE__ */ r("div", { className: "col-12 col-lg-4", children: /* @__PURE__ */ T(rn, { title: f, headerClassName: "bg-darker", className: h, contentClassName: "d-flex flex-column gap-2 h-100", children: [
|
|
10221
10226
|
v,
|
|
10222
10227
|
S
|
|
10223
|
-
] }) }), e[30] = S, e[31] = f, e[32] =
|
|
10228
|
+
] }) }), e[30] = S, e[31] = f, e[32] = h, e[33] = v, e[34] = C) : C = e[34], C;
|
|
10224
10229
|
}, Np = (n) => {
|
|
10225
10230
|
const e = V.c(26), {
|
|
10226
10231
|
searchQuery: t,
|
|
@@ -10234,15 +10239,15 @@ const Cp = (n) => {
|
|
|
10234
10239
|
getReportDescription: c
|
|
10235
10240
|
} = n, {
|
|
10236
10241
|
isMobile: f
|
|
10237
|
-
} =
|
|
10242
|
+
} = dl();
|
|
10238
10243
|
let m;
|
|
10239
10244
|
e[0] !== l ? (m = (y) => {
|
|
10240
10245
|
var S;
|
|
10241
10246
|
return l(((S = y.target) == null ? void 0 : S.value) ?? "");
|
|
10242
10247
|
}, e[0] = l, e[1] = m) : m = e[1];
|
|
10243
|
-
let p;
|
|
10244
|
-
e[2] !== i.index.search || e[3] !== t || e[4] !== m ? (p = /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Pe.Control, { className: "mb-3", type: "search", value: t, onChange: m, placeholder: i.index.search }) }), e[2] = i.index.search, e[3] = t, e[4] = m, e[5] = p) : p = e[5];
|
|
10245
10248
|
let h;
|
|
10249
|
+
e[2] !== i.index.search || e[3] !== t || e[4] !== m ? (h = /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Pe.Control, { className: "mb-3", type: "search", value: t, onChange: m, placeholder: i.index.search }) }), e[2] = i.index.search, e[3] = t, e[4] = m, e[5] = h) : h = e[5];
|
|
10250
|
+
let p;
|
|
10246
10251
|
if (e[6] !== o || e[7] !== a || e[8] !== s || e[9] !== c || e[10] !== u || e[11] !== d || e[12] !== f) {
|
|
10247
10252
|
let y;
|
|
10248
10253
|
e[14] !== a || e[15] !== s || e[16] !== c || e[17] !== u || e[18] !== d || e[19] !== f ? (y = (S) => /* @__PURE__ */ T("div", { className: z(on.cardsGroup, {
|
|
@@ -10250,16 +10255,16 @@ const Cp = (n) => {
|
|
|
10250
10255
|
}), children: [
|
|
10251
10256
|
/* @__PURE__ */ r("div", { className: z("group-title z-1", on.groupTitle), children: /* @__PURE__ */ r(pp, { text: s(S) }) }),
|
|
10252
10257
|
/* @__PURE__ */ r("div", { className: z(on.groupContent), children: /* @__PURE__ */ r("div", { className: z("row gx-3 gy-3"), children: a[S].map((C) => /* @__PURE__ */ r(Cp, { report: C, getReportRoute: d, getReportName: u, getReportDescription: c }, C.id)) }) })
|
|
10253
|
-
] }, S), e[14] = a, e[15] = s, e[16] = c, e[17] = u, e[18] = d, e[19] = f, e[20] = y) : y = e[20],
|
|
10258
|
+
] }, S), e[14] = a, e[15] = s, e[16] = c, e[17] = u, e[18] = d, e[19] = f, e[20] = y) : y = e[20], p = o.map(y), e[6] = o, e[7] = a, e[8] = s, e[9] = c, e[10] = u, e[11] = d, e[12] = f, e[13] = p;
|
|
10254
10259
|
} else
|
|
10255
|
-
|
|
10260
|
+
p = e[13];
|
|
10256
10261
|
let v;
|
|
10257
|
-
e[21] !==
|
|
10262
|
+
e[21] !== p ? (v = /* @__PURE__ */ r("div", { className: "overflow-x-hidden luminus-thin-scrollbar luminus-reports-index", children: p }), e[21] = p, e[22] = v) : v = e[22];
|
|
10258
10263
|
let g;
|
|
10259
|
-
return e[23] !==
|
|
10260
|
-
|
|
10264
|
+
return e[23] !== h || e[24] !== v ? (g = /* @__PURE__ */ T(pe, { children: [
|
|
10265
|
+
h,
|
|
10261
10266
|
v
|
|
10262
|
-
] }), e[23] =
|
|
10267
|
+
] }), e[23] = h, e[24] = v, e[25] = g) : g = e[25], g;
|
|
10263
10268
|
}, kp = (n, e, t, l, i) => {
|
|
10264
10269
|
const o = V.c(18), {
|
|
10265
10270
|
data: a
|
|
@@ -10269,36 +10274,36 @@ const Cp = (n) => {
|
|
|
10269
10274
|
let d;
|
|
10270
10275
|
e: {
|
|
10271
10276
|
if (a === null || s === null) {
|
|
10272
|
-
let
|
|
10273
|
-
o[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
10277
|
+
let p;
|
|
10278
|
+
o[0] === Symbol.for("react.memo_cache_sentinel") ? (p = {}, o[0] = p) : p = o[0], d = p;
|
|
10274
10279
|
break e;
|
|
10275
10280
|
}
|
|
10276
|
-
let
|
|
10277
|
-
o[1] !== i || o[2] !== l || o[3] !== t || o[4] !== s || o[5] !== a ? (
|
|
10278
|
-
p
|
|
10281
|
+
let h;
|
|
10282
|
+
o[1] !== i || o[2] !== l || o[3] !== t || o[4] !== s || o[5] !== a ? (h = {}, s.forEach((p) => {
|
|
10283
|
+
h[p.id] = a.filter((v) => v.groupId === p.id && (ct(t(v), i) || ct(l(v), i) || v.versions.some((g) => ct(g.name, i)) || v.versionsCustom.some((g) => ct(g.name, i)))).map((v) => ({
|
|
10279
10284
|
...v,
|
|
10280
10285
|
groupId: !v.groupId || v.groupId === 0 || !s.some((g) => g.id === v.groupId) ? 999 : v.groupId
|
|
10281
10286
|
}));
|
|
10282
|
-
}), o[1] = i, o[2] = l, o[3] = t, o[4] = s, o[5] = a, o[6] =
|
|
10287
|
+
}), o[1] = i, o[2] = l, o[3] = t, o[4] = s, o[5] = a, o[6] = h) : h = o[6], d = h;
|
|
10283
10288
|
}
|
|
10284
10289
|
const u = d;
|
|
10285
10290
|
let c;
|
|
10286
10291
|
e: {
|
|
10287
10292
|
if (u === null || s === null) {
|
|
10288
|
-
let
|
|
10289
|
-
o[7] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
10293
|
+
let p;
|
|
10294
|
+
o[7] === Symbol.for("react.memo_cache_sentinel") ? (p = [], o[7] = p) : p = o[7], c = p;
|
|
10290
10295
|
break e;
|
|
10291
10296
|
}
|
|
10292
|
-
let
|
|
10297
|
+
let h;
|
|
10293
10298
|
if (o[8] !== u || o[9] !== s) {
|
|
10294
|
-
let
|
|
10295
|
-
o[11] !== u ? (
|
|
10299
|
+
let p;
|
|
10300
|
+
o[11] !== u ? (p = (v) => {
|
|
10296
10301
|
var g;
|
|
10297
10302
|
return ((g = u[v.id]) == null ? void 0 : g.length) > 0;
|
|
10298
|
-
}, o[11] = u, o[12] =
|
|
10303
|
+
}, o[11] = u, o[12] = p) : p = o[12], h = s.filter(p).map(_p), o[8] = u, o[9] = s, o[10] = h;
|
|
10299
10304
|
} else
|
|
10300
|
-
|
|
10301
|
-
c =
|
|
10305
|
+
h = o[10];
|
|
10306
|
+
c = h;
|
|
10302
10307
|
}
|
|
10303
10308
|
const f = c;
|
|
10304
10309
|
let m;
|
|
@@ -10328,17 +10333,17 @@ const Qn = {
|
|
|
10328
10333
|
reportsLastUsedGet: d,
|
|
10329
10334
|
groupsGet: u
|
|
10330
10335
|
} = t === void 0 ? Qn : t, c = s === void 0 ? Qn.reportsGet : s, f = d === void 0 ? Qn.reportsLastUsedGet : d, m = u === void 0 ? Qn.groupsGet : u, {
|
|
10331
|
-
texts:
|
|
10336
|
+
texts: h
|
|
10332
10337
|
} = ne(ue), {
|
|
10333
|
-
reports:
|
|
10334
|
-
} =
|
|
10338
|
+
reports: p
|
|
10339
|
+
} = h, [v, g] = ee(""), [y] = Jl(v, 500), {
|
|
10335
10340
|
filteredReports: S,
|
|
10336
10341
|
filteredGroups: C
|
|
10337
10342
|
} = kp(c, m, l, i, y);
|
|
10338
10343
|
let x;
|
|
10339
10344
|
e[0] !== l || e[1] !== a || e[2] !== f ? (x = /* @__PURE__ */ r(hp, { reportsLastUsedGet: f, getReportName: l, getReportRoute: a }), e[0] = l, e[1] = a, e[2] = f, e[3] = x) : x = e[3];
|
|
10340
10345
|
let b;
|
|
10341
|
-
e[4] !== C || e[5] !== S || e[6] !== o || e[7] !== i || e[8] !== l || e[9] !== a || e[10] !==
|
|
10346
|
+
e[4] !== C || e[5] !== S || e[6] !== o || e[7] !== i || e[8] !== l || e[9] !== a || e[10] !== p || e[11] !== v ? (b = /* @__PURE__ */ r(Np, { searchQuery: v, setSearchQuery: g, reportsTexts: p, filteredGroups: C, filteredReports: S, getGroupTitle: o, getReportRoute: a, getReportName: l, getReportDescription: i }), e[4] = C, e[5] = S, e[6] = o, e[7] = i, e[8] = l, e[9] = a, e[10] = p, e[11] = v, e[12] = b) : b = e[12];
|
|
10342
10347
|
let w;
|
|
10343
10348
|
return e[13] !== x || e[14] !== b ? (w = /* @__PURE__ */ r(Ft, { unavailableOnMobile: !0, variant: "fullScreen", sideContent: x, children: b }), e[13] = x, e[14] = b, e[15] = w) : w = e[15], w;
|
|
10344
10349
|
}, Ip = "_mini-detail-popover_obryf_1", Dp = "_sm_obryf_5", Tp = "_lg_obryf_9", So = {
|
|
@@ -10364,11 +10369,11 @@ const Qn = {
|
|
|
10364
10369
|
} = e({
|
|
10365
10370
|
...t,
|
|
10366
10371
|
enabled: s && !(a != null && a.external)
|
|
10367
|
-
}),
|
|
10372
|
+
}), h = Be(null);
|
|
10368
10373
|
return /* @__PURE__ */ r("div", { onMouseEnter: () => {
|
|
10369
|
-
|
|
10374
|
+
h.current = window.setTimeout(() => d(!0), o);
|
|
10370
10375
|
}, onMouseLeave: () => {
|
|
10371
|
-
|
|
10376
|
+
h.current && clearTimeout(h.current), d(!1);
|
|
10372
10377
|
}, children: s && !(a != null && a.external) ? /* @__PURE__ */ r(Jr, { heading: u ? /* @__PURE__ */ r(K, { variant: "body2", className: "placeholder-glow", children: /* @__PURE__ */ r("span", { className: "placeholder bg-primary col-6" }) }) : f, content: /* @__PURE__ */ r(pe, { children: u ? /* @__PURE__ */ T(K, { variant: "body2", className: "placeholder-glow", children: [
|
|
10373
10378
|
/* @__PURE__ */ T("div", { className: "d-flex justify-content-between py-1", children: [
|
|
10374
10379
|
/* @__PURE__ */ r("span", { className: "placeholder col-5" }),
|
|
@@ -10417,24 +10422,24 @@ const Qn = {
|
|
|
10417
10422
|
} = n, d = l === void 0 ? "link" : l, u = a === void 0 ? !1 : a, {
|
|
10418
10423
|
checkUserHasPermissions: c
|
|
10419
10424
|
} = Mo(), f = u || !(t.permissions === void 0 || c(t.permissions)), m = i ?? t.name;
|
|
10420
|
-
let
|
|
10425
|
+
let h;
|
|
10421
10426
|
e: switch (d) {
|
|
10422
10427
|
case "primaryButton": {
|
|
10423
|
-
|
|
10428
|
+
h = Dt;
|
|
10424
10429
|
break e;
|
|
10425
10430
|
}
|
|
10426
10431
|
case "contextButton": {
|
|
10427
|
-
|
|
10432
|
+
h = kt;
|
|
10428
10433
|
break e;
|
|
10429
10434
|
}
|
|
10430
10435
|
case "iconButton": {
|
|
10431
|
-
|
|
10436
|
+
h = ve;
|
|
10432
10437
|
break e;
|
|
10433
10438
|
}
|
|
10434
10439
|
default:
|
|
10435
|
-
|
|
10440
|
+
h = us;
|
|
10436
10441
|
}
|
|
10437
|
-
const
|
|
10442
|
+
const p = h;
|
|
10438
10443
|
if (d === "link") {
|
|
10439
10444
|
let C;
|
|
10440
10445
|
e[0] !== t.route || e[1] !== s ? (C = Ml(t.route, s), e[0] = t.route, e[1] = s, e[2] = C) : C = e[2];
|
|
@@ -10450,9 +10455,9 @@ const Qn = {
|
|
|
10450
10455
|
let y;
|
|
10451
10456
|
e[13] !== o || e[14] !== g ? (y = z(g, o), e[13] = o, e[14] = g, e[15] = y) : y = e[15];
|
|
10452
10457
|
let S;
|
|
10453
|
-
return e[16] !==
|
|
10458
|
+
return e[16] !== p || e[17] !== m || e[18] !== v || e[19] !== y ? (S = /* @__PURE__ */ r(p, { as: "link", href: v, className: y, children: m }), e[16] = p, e[17] = m, e[18] = v, e[19] = y, e[20] = S) : S = e[20], S;
|
|
10454
10459
|
}, hg = (n) => {
|
|
10455
|
-
var
|
|
10460
|
+
var h;
|
|
10456
10461
|
const e = V.c(17), {
|
|
10457
10462
|
id: t,
|
|
10458
10463
|
getTimelineApiPath: l
|
|
@@ -10468,9 +10473,9 @@ const Qn = {
|
|
|
10468
10473
|
data: d
|
|
10469
10474
|
} = nt(s);
|
|
10470
10475
|
let u;
|
|
10471
|
-
e[3] !== o || e[4] !== a ? (u = (
|
|
10476
|
+
e[3] !== o || e[4] !== a ? (u = (p, v) => {
|
|
10472
10477
|
const g = v === void 0 ? !1 : v;
|
|
10473
|
-
switch (
|
|
10478
|
+
switch (p) {
|
|
10474
10479
|
case Hn.Zamitnuto:
|
|
10475
10480
|
return /* @__PURE__ */ r(rt, { placement: "left", text: a.stateRejected, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(o, { icon: "cancel-simple", className: g ? "text-danger" : "bg-danger rounded-circle p-1", iconProps: {
|
|
10476
10481
|
fontSize: "14px",
|
|
@@ -10504,12 +10509,12 @@ const Qn = {
|
|
|
10504
10509
|
} : null, e[6] = a, e[7] = d, e[8] = f) : f = e[8];
|
|
10505
10510
|
let m;
|
|
10506
10511
|
if (e[9] !== a || e[10] !== c || e[11] !== f || e[12] !== d) {
|
|
10507
|
-
let
|
|
10508
|
-
e[14] !== a || e[15] !== d ? (
|
|
10512
|
+
let p;
|
|
10513
|
+
e[14] !== a || e[15] !== d ? (p = d != null && d.finishedDate ? {
|
|
10509
10514
|
date: _t(d.finishedDate),
|
|
10510
10515
|
title: /* @__PURE__ */ r(K, { variant: "body2", children: a.finishedDate }),
|
|
10511
10516
|
dateFormat: "date"
|
|
10512
|
-
} : null, e[14] = a, e[15] = d, e[16] =
|
|
10517
|
+
} : null, e[14] = a, e[15] = d, e[16] = p) : p = e[16], m = /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(hm, { dontSort: !0, steps: [f, ...((h = d == null ? void 0 : d.approvalLevels) == null ? void 0 : h.map((v) => {
|
|
10513
10518
|
var g;
|
|
10514
10519
|
return {
|
|
10515
10520
|
date: void 0,
|
|
@@ -10528,7 +10533,7 @@ const Qn = {
|
|
|
10528
10533
|
] })
|
|
10529
10534
|
] }) }, y.id)) }) : null
|
|
10530
10535
|
};
|
|
10531
|
-
})) ?? [],
|
|
10536
|
+
})) ?? [], p].filter($p).map(Lp) }) }), e[9] = a, e[10] = c, e[11] = f, e[12] = d, e[13] = m;
|
|
10532
10537
|
} else
|
|
10533
10538
|
m = e[13];
|
|
10534
10539
|
return m;
|
|
@@ -10574,15 +10579,15 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10574
10579
|
e[9] !== f ? (m = z(Ct.switchButton, Ct.right, {
|
|
10575
10580
|
[Ct.active]: f
|
|
10576
10581
|
}), e[9] = f, e[10] = m) : m = e[10];
|
|
10577
|
-
let p;
|
|
10578
|
-
e[11] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r("div", { className: Ct.bgLayer }), e[11] = p) : p = e[11];
|
|
10579
10582
|
let h;
|
|
10580
|
-
e[
|
|
10583
|
+
e[11] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ r("div", { className: Ct.bgLayer }), e[11] = h) : h = e[11];
|
|
10584
|
+
let p;
|
|
10585
|
+
e[12] !== o ? (p = /* @__PURE__ */ r("div", { className: Ct.textLayer, children: o }), e[12] = o, e[13] = p) : p = e[13];
|
|
10581
10586
|
let v;
|
|
10582
|
-
e[14] !== m || e[15] !==
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
] }), e[14] = m, e[15] =
|
|
10587
|
+
e[14] !== m || e[15] !== p ? (v = /* @__PURE__ */ T(K, { variant: "body2", className: m, children: [
|
|
10588
|
+
h,
|
|
10589
|
+
p
|
|
10590
|
+
] }), e[14] = m, e[15] = p, e[16] = v) : v = e[16];
|
|
10586
10591
|
let g;
|
|
10587
10592
|
return e[17] !== v || e[18] !== c || e[19] !== l ? (g = /* @__PURE__ */ T("div", { role: "button", className: a, onClick: l, children: [
|
|
10588
10593
|
c,
|
|
@@ -10608,24 +10613,24 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10608
10613
|
}, e[0] = u) : u = e[0];
|
|
10609
10614
|
const c = u;
|
|
10610
10615
|
let f;
|
|
10611
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (f =
|
|
10616
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (f = ul(), e[1] = f) : f = e[1];
|
|
10612
10617
|
const m = f;
|
|
10613
|
-
let
|
|
10614
|
-
e[2] !== s.index.employeeName ? (
|
|
10618
|
+
let h;
|
|
10619
|
+
e[2] !== s.index.employeeName ? (h = m.accessor("employeeName", {
|
|
10615
10620
|
header: s.index.employeeName,
|
|
10616
10621
|
type: "string",
|
|
10617
10622
|
mobileMeta: {
|
|
10618
10623
|
isIdentifier: !0
|
|
10619
10624
|
}
|
|
10620
|
-
}), e[2] = s.index.employeeName, e[3] =
|
|
10621
|
-
let
|
|
10622
|
-
e[4] !== s.index.substitute ? (
|
|
10625
|
+
}), e[2] = s.index.employeeName, e[3] = h) : h = e[3];
|
|
10626
|
+
let p;
|
|
10627
|
+
e[4] !== s.index.substitute ? (p = m.accessor("substituteName", {
|
|
10623
10628
|
header: s.index.substitute,
|
|
10624
10629
|
type: "string",
|
|
10625
10630
|
mobileMeta: {
|
|
10626
10631
|
isIdentifier: !0
|
|
10627
10632
|
}
|
|
10628
|
-
}), e[4] = s.index.substitute, e[5] =
|
|
10633
|
+
}), e[4] = s.index.substitute, e[5] = p) : p = e[5];
|
|
10629
10634
|
let v;
|
|
10630
10635
|
e[6] !== s.index.from || e[7] !== s.index.generalInfo ? (v = m.accessor("from", {
|
|
10631
10636
|
header: s.index.from,
|
|
@@ -10658,7 +10663,7 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10658
10663
|
size: 50
|
|
10659
10664
|
}), e[12] = y, e[13] = S) : (y = e[12], S = e[13]);
|
|
10660
10665
|
let C;
|
|
10661
|
-
e[14] !==
|
|
10666
|
+
e[14] !== h || e[15] !== p || e[16] !== v || e[17] !== g ? (C = [h, p, v, g, y, S], e[14] = h, e[15] = p, e[16] = v, e[17] = g, e[18] = C) : C = e[18];
|
|
10662
10667
|
const x = C;
|
|
10663
10668
|
let b;
|
|
10664
10669
|
e[19] !== o ? (b = (L) => xn(o, {
|
|
@@ -10674,13 +10679,13 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10674
10679
|
let D;
|
|
10675
10680
|
return e[24] !== l || e[25] !== x || e[26] !== w || e[27] !== N || e[28] !== i ? (D = /* @__PURE__ */ r(l, { data: N, columns: x, tableId: i, pagination: k, archiveHighlighting: c, rowNavigation: w }), e[24] = l, e[25] = x, e[26] = w, e[27] = N, e[28] = i, e[29] = D) : D = e[29], D;
|
|
10676
10681
|
}, Bp = (n, e) => {
|
|
10677
|
-
const t = ut(), l =
|
|
10682
|
+
const t = ut(), l = pl(), {
|
|
10678
10683
|
startLoading: i,
|
|
10679
10684
|
stopLoading: o
|
|
10680
10685
|
} = ne(Pt), {
|
|
10681
10686
|
zDateRequired: a,
|
|
10682
10687
|
zNumberRequired: s
|
|
10683
|
-
} =
|
|
10688
|
+
} = fl(), {
|
|
10684
10689
|
addNotification: d
|
|
10685
10690
|
} = dn(), {
|
|
10686
10691
|
refreshAvailableDelegations: u
|
|
@@ -10699,32 +10704,32 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10699
10704
|
from: a(),
|
|
10700
10705
|
to: a(),
|
|
10701
10706
|
roles: es(ts())
|
|
10702
|
-
}),
|
|
10707
|
+
}), h = Re(() => ({
|
|
10703
10708
|
id: (n == null ? void 0 : n.id) ?? 0,
|
|
10704
10709
|
employeeId: (n == null ? void 0 : n.employeeId) ?? (c == null ? void 0 : c.personalNumber) ?? void 0,
|
|
10705
10710
|
substituteId: (n == null ? void 0 : n.substituteId) ?? void 0,
|
|
10706
10711
|
from: (n == null ? void 0 : n.from) ?? Ot(/* @__PURE__ */ new Date(), "yyyy-MM-dd"),
|
|
10707
10712
|
to: (n == null ? void 0 : n.to) ?? Ot(/* @__PURE__ */ new Date(), "yyyy-MM-dd"),
|
|
10708
10713
|
roles: (n == null ? void 0 : n.roles) ?? []
|
|
10709
|
-
}), [n == null ? void 0 : n.employeeId, n == null ? void 0 : n.from, n == null ? void 0 : n.id, n == null ? void 0 : n.roles, n == null ? void 0 : n.substituteId, n == null ? void 0 : n.to, c == null ? void 0 : c.personalNumber]),
|
|
10710
|
-
resolver:
|
|
10711
|
-
defaultValues:
|
|
10714
|
+
}), [n == null ? void 0 : n.employeeId, n == null ? void 0 : n.from, n == null ? void 0 : n.id, n == null ? void 0 : n.roles, n == null ? void 0 : n.substituteId, n == null ? void 0 : n.to, c == null ? void 0 : c.personalNumber]), p = gl({
|
|
10715
|
+
resolver: ml(m),
|
|
10716
|
+
defaultValues: h
|
|
10712
10717
|
}), v = ke(async (g) => {
|
|
10713
10718
|
i("premissions-substitute-submit");
|
|
10714
10719
|
try {
|
|
10715
10720
|
await t.post("permissions/substitutions", g), d(f.updateSuccess, "success"), u(), l(e);
|
|
10716
10721
|
} catch (y) {
|
|
10717
|
-
ti(
|
|
10722
|
+
ti(p, y);
|
|
10718
10723
|
} finally {
|
|
10719
10724
|
o("premissions-substitute-submit");
|
|
10720
10725
|
}
|
|
10721
|
-
}, [d, t,
|
|
10726
|
+
}, [d, t, p, l, u, i, o, e, f]);
|
|
10722
10727
|
return me(() => {
|
|
10723
|
-
|
|
10724
|
-
}, [
|
|
10728
|
+
p.reset(h);
|
|
10729
|
+
}, [h, p]), {
|
|
10725
10730
|
formSchema: m,
|
|
10726
10731
|
onSubmit: v,
|
|
10727
|
-
formMethods:
|
|
10732
|
+
formMethods: p
|
|
10728
10733
|
};
|
|
10729
10734
|
}, yg = (n) => {
|
|
10730
10735
|
var Ke;
|
|
@@ -10734,7 +10739,7 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10734
10739
|
id: l
|
|
10735
10740
|
} = jo(), {
|
|
10736
10741
|
user: i
|
|
10737
|
-
} = ne(Kt), o = ut(), a =
|
|
10742
|
+
} = ne(Kt), o = ut(), a = pl(), {
|
|
10738
10743
|
confirm: s
|
|
10739
10744
|
} = jt(), {
|
|
10740
10745
|
texts: d
|
|
@@ -10748,13 +10753,13 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10748
10753
|
enabled: f
|
|
10749
10754
|
}, e[0] = f, e[1] = m) : m = e[1];
|
|
10750
10755
|
const {
|
|
10751
|
-
data: p
|
|
10752
|
-
} = nt(`/permissions/substitutions/${l}`, m), {
|
|
10753
10756
|
data: h
|
|
10757
|
+
} = nt(`/permissions/substitutions/${l}`, m), {
|
|
10758
|
+
data: p
|
|
10754
10759
|
} = nt("/permissions/users"), {
|
|
10755
10760
|
onSubmit: v,
|
|
10756
10761
|
formMethods: g
|
|
10757
|
-
} = Bp(
|
|
10762
|
+
} = Bp(h, t);
|
|
10758
10763
|
let y;
|
|
10759
10764
|
e[2] !== g.control ? (y = {
|
|
10760
10765
|
control: g.control,
|
|
@@ -10762,8 +10767,8 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10762
10767
|
}, e[2] = g.control, e[3] = y) : y = e[3];
|
|
10763
10768
|
const S = En(y);
|
|
10764
10769
|
let C;
|
|
10765
|
-
e[4] !== S || e[5] !==
|
|
10766
|
-
const x = S > 0 && !!
|
|
10770
|
+
e[4] !== S || e[5] !== p ? (C = (Ke = p == null ? void 0 : p.find((re) => re.employeeId === S)) == null ? void 0 : Ke.name, e[4] = S, e[5] = p, e[6] = C) : C = e[6];
|
|
10771
|
+
const x = S > 0 && !!p;
|
|
10767
10772
|
let b;
|
|
10768
10773
|
e[7] !== x ? (b = {
|
|
10769
10774
|
enabled: x
|
|
@@ -10813,7 +10818,7 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10813
10818
|
e[39] !== g || e[40] !== v ? (U = g.handleSubmit(v), e[39] = g, e[40] = v, e[41] = U) : U = e[41];
|
|
10814
10819
|
const W = c.title;
|
|
10815
10820
|
let G;
|
|
10816
|
-
e[42] !==
|
|
10821
|
+
e[42] !== p ? (G = (p == null ? void 0 : p.map(zp)) ?? [], e[42] = p, e[43] = G) : G = e[43];
|
|
10817
10822
|
const q = c.employee;
|
|
10818
10823
|
let X;
|
|
10819
10824
|
e[44] !== k ? (X = k(["ZASTUP_MODIFY"]), e[44] = k, e[45] = X) : X = e[45];
|
|
@@ -10823,7 +10828,7 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10823
10828
|
let se;
|
|
10824
10829
|
e[47] !== G || e[48] !== ie || e[49] !== c.employee ? (se = /* @__PURE__ */ r(jl, { formField: "employeeId", options: G, label: q, isNumber: !0, required: !0, disabled: ie, resetsFields: te }), e[47] = G, e[48] = ie, e[49] = c.employee, e[50] = se) : se = e[50];
|
|
10825
10830
|
let Q;
|
|
10826
|
-
e[51] !==
|
|
10831
|
+
e[51] !== p ? (Q = (p == null ? void 0 : p.map(Hp)) ?? [], e[51] = p, e[52] = Q) : Q = e[52];
|
|
10827
10832
|
let de;
|
|
10828
10833
|
e[53] !== Q || e[54] !== c.substitute ? (de = /* @__PURE__ */ r(jl, { formField: "substituteId", options: Q, label: c.substitute, isNumber: !0, required: !0 }), e[53] = Q, e[54] = c.substitute, e[55] = de) : de = e[55];
|
|
10829
10834
|
let he;
|
|
@@ -10831,7 +10836,7 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10831
10836
|
let ye;
|
|
10832
10837
|
e[58] !== c.to ? (ye = /* @__PURE__ */ r(Sn, { formField: "to", label: c.to, type: "date", required: !0 }), e[58] = c.to, e[59] = ye) : ye = e[59];
|
|
10833
10838
|
let we;
|
|
10834
|
-
e[60] !== se || e[61] !== de || e[62] !== he || e[63] !== ye || e[64] !== c.title ? (we = /* @__PURE__ */ r(
|
|
10839
|
+
e[60] !== se || e[61] !== de || e[62] !== he || e[63] !== ye || e[64] !== c.title ? (we = /* @__PURE__ */ r(ll, { sm: 12, md: 4, children: /* @__PURE__ */ T(rn, { title: W, children: [
|
|
10835
10840
|
se,
|
|
10836
10841
|
de,
|
|
10837
10842
|
he,
|
|
@@ -10866,7 +10871,7 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10866
10871
|
let le;
|
|
10867
10872
|
e[84] !== ce ? (le = /* @__PURE__ */ r("div", { className: "overflow-auto", style: Y, children: ce }), e[84] = ce, e[85] = le) : le = e[85];
|
|
10868
10873
|
let oe;
|
|
10869
|
-
e[86] !== Z || e[87] !== J || e[88] !== le ? (oe = /* @__PURE__ */ r(
|
|
10874
|
+
e[86] !== Z || e[87] !== J || e[88] !== le ? (oe = /* @__PURE__ */ r(ll, { sm: 12, md: 4, children: /* @__PURE__ */ T(rn, { title: Z, className: "h-max-100", contentClassName: "d-flex flex-column overflow-hidden", children: [
|
|
10870
10875
|
J,
|
|
10871
10876
|
le
|
|
10872
10877
|
] }) }), e[86] = Z, e[87] = J, e[88] = le, e[89] = oe) : oe = e[89];
|
|
@@ -10887,7 +10892,7 @@ const Ep = "_state-switch_uc6su_1", Op = "_switch-button_uc6su_7", Pp = "_bg-lay
|
|
|
10887
10892
|
let Oe;
|
|
10888
10893
|
e[102] !== _ || e[103] !== _e ? (Oe = /* @__PURE__ */ r(as, { disabled: _, children: _e }), e[102] = _, e[103] = _e, e[104] = Oe) : Oe = e[104];
|
|
10889
10894
|
let Ae;
|
|
10890
|
-
e[105] !== g || e[106] !== Oe ? (Ae = /* @__PURE__ */ r(
|
|
10895
|
+
e[105] !== g || e[106] !== Oe ? (Ae = /* @__PURE__ */ r(hl, { ...g, children: Oe }), e[105] = g, e[106] = Oe, e[107] = Ae) : Ae = e[107];
|
|
10891
10896
|
let Me;
|
|
10892
10897
|
return e[108] !== M || e[109] !== Ae ? (Me = /* @__PURE__ */ r(Ft, { title: M, children: Ae }), e[108] = M, e[109] = Ae, e[110] = Me) : Me = e[110], Me;
|
|
10893
10898
|
};
|
|
@@ -10924,7 +10929,7 @@ const Up = (n) => {
|
|
|
10924
10929
|
e[0] !== l ? (d = l.map(Wp), e[0] = l, e[1] = d) : d = e[1];
|
|
10925
10930
|
const u = d;
|
|
10926
10931
|
let c;
|
|
10927
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (c =
|
|
10932
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (c = ul(), e[2] = c) : c = e[2];
|
|
10928
10933
|
const f = c;
|
|
10929
10934
|
let m;
|
|
10930
10935
|
e[3] === Symbol.for("react.memo_cache_sentinel") ? (m = f.accessor("id", {
|
|
@@ -10935,8 +10940,8 @@ const Up = (n) => {
|
|
|
10935
10940
|
hidden: !0
|
|
10936
10941
|
}
|
|
10937
10942
|
}), e[3] = m) : m = e[3];
|
|
10938
|
-
let
|
|
10939
|
-
e[4] !== s.delegations.table.approval ? (
|
|
10943
|
+
let h;
|
|
10944
|
+
e[4] !== s.delegations.table.approval ? (h = f.accessor("approval.name", {
|
|
10940
10945
|
header: s.delegations.table.approval,
|
|
10941
10946
|
type: "string",
|
|
10942
10947
|
meta: {
|
|
@@ -10945,15 +10950,15 @@ const Up = (n) => {
|
|
|
10945
10950
|
mobileMeta: {
|
|
10946
10951
|
isIdentifier: !0
|
|
10947
10952
|
}
|
|
10948
|
-
}), e[4] = s.delegations.table.approval, e[5] =
|
|
10949
|
-
let
|
|
10950
|
-
e[6] !== s.delegations.table.employee ? (
|
|
10953
|
+
}), e[4] = s.delegations.table.approval, e[5] = h) : h = e[5];
|
|
10954
|
+
let p;
|
|
10955
|
+
e[6] !== s.delegations.table.employee ? (p = f.accessor("employee.name", {
|
|
10951
10956
|
header: s.delegations.table.employee,
|
|
10952
10957
|
type: "string",
|
|
10953
10958
|
mobileMeta: {
|
|
10954
10959
|
isIdentifier: !0
|
|
10955
10960
|
}
|
|
10956
|
-
}), e[6] = s.delegations.table.employee, e[7] =
|
|
10961
|
+
}), e[6] = s.delegations.table.employee, e[7] = p) : p = e[7];
|
|
10957
10962
|
let v;
|
|
10958
10963
|
e[8] !== s.delegations.table.delegate ? (v = f.accessor("delegate.name", {
|
|
10959
10964
|
header: s.delegations.table.delegate,
|
|
@@ -10987,7 +10992,7 @@ const Up = (n) => {
|
|
|
10987
10992
|
}
|
|
10988
10993
|
}), e[16] = S) : S = e[16];
|
|
10989
10994
|
let C;
|
|
10990
|
-
e[17] !==
|
|
10995
|
+
e[17] !== h || e[18] !== p || e[19] !== v || e[20] !== g || e[21] !== y ? (C = [m, h, p, v, g, y, S], e[17] = h, e[18] = p, e[19] = v, e[20] = g, e[21] = y, e[22] = C) : C = e[22];
|
|
10991
10996
|
const x = C;
|
|
10992
10997
|
let b;
|
|
10993
10998
|
e[23] !== l || e[24] !== i ? (b = (k) => {
|
|
@@ -11043,10 +11048,10 @@ const Gp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11043
11048
|
} = ne(ue), {
|
|
11044
11049
|
approval: m
|
|
11045
11050
|
} = f, {
|
|
11046
|
-
zDate:
|
|
11047
|
-
zObjectIdIntRequired:
|
|
11051
|
+
zDate: h,
|
|
11052
|
+
zObjectIdIntRequired: p,
|
|
11048
11053
|
zDateRequired: v
|
|
11049
|
-
} =
|
|
11054
|
+
} = fl(), {
|
|
11050
11055
|
addNotification: g
|
|
11051
11056
|
} = dn(), {
|
|
11052
11057
|
confirm: y
|
|
@@ -11054,15 +11059,15 @@ const Gp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11054
11059
|
data: S
|
|
11055
11060
|
} = nt(o);
|
|
11056
11061
|
let C, x;
|
|
11057
|
-
if (e[0] !==
|
|
11062
|
+
if (e[0] !== h || e[1] !== v || e[2] !== p) {
|
|
11058
11063
|
const Y = Bo({
|
|
11059
|
-
employee:
|
|
11060
|
-
delegate:
|
|
11064
|
+
employee: p(),
|
|
11065
|
+
delegate: p(),
|
|
11061
11066
|
dateFrom: v(),
|
|
11062
|
-
dateTo:
|
|
11063
|
-
approval:
|
|
11067
|
+
dateTo: h(),
|
|
11068
|
+
approval: p()
|
|
11064
11069
|
});
|
|
11065
|
-
x =
|
|
11070
|
+
x = gl, C = ml(Y), e[0] = h, e[1] = v, e[2] = p, e[3] = C, e[4] = x;
|
|
11066
11071
|
} else
|
|
11067
11072
|
C = e[3], x = e[4];
|
|
11068
11073
|
let b;
|
|
@@ -11091,7 +11096,7 @@ const Gp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11091
11096
|
}
|
|
11092
11097
|
}, {
|
|
11093
11098
|
keepDirty: !1
|
|
11094
|
-
}), (oe = t.employee) != null && oe.id ||
|
|
11099
|
+
}), (oe = t.employee) != null && oe.id || Jn(w, "employee.id"), (ae = t.delegate) != null && ae.id || Jn(w, "delegate.id"), (ge = t.approval) != null && ge.id || Jn(w, "approval.id"));
|
|
11095
11100
|
}, I = [t, w], e[7] = w, e[8] = t, e[9] = L, e[10] = I) : (L = e[9], I = e[10]), me(L, I);
|
|
11096
11101
|
let _;
|
|
11097
11102
|
e[11] !== g || e[12] !== y || e[13] !== w || e[14] !== N || e[15] !== t || e[16] !== i || e[17] !== k || e[18] !== m.delegations.createSuccess || e[19] !== m.delegations.delegateExistingsConfirmMessage || e[20] !== m.delegations.editSuccess ? (_ = async (Y) => {
|
|
@@ -11163,7 +11168,7 @@ const Gp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11163
11168
|
de
|
|
11164
11169
|
] }), e[73] = H, e[74] = se, e[75] = de, e[76] = he) : he = e[76];
|
|
11165
11170
|
let ye;
|
|
11166
|
-
e[77] !== w || e[78] !== he ? (ye = /* @__PURE__ */ r(
|
|
11171
|
+
e[77] !== w || e[78] !== he ? (ye = /* @__PURE__ */ r(hl, { ...w, children: he }), e[77] = w, e[78] = he, e[79] = ye) : ye = e[79];
|
|
11167
11172
|
let we;
|
|
11168
11173
|
return e[80] !== O || e[81] !== j || e[82] !== ye || e[83] !== P ? (we = /* @__PURE__ */ T(Te, { show: P, onHide: O, children: [
|
|
11169
11174
|
j,
|
|
@@ -11187,7 +11192,7 @@ const Gp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11187
11192
|
apiPostEditDelegation: d,
|
|
11188
11193
|
apiDeleteDelegation: u,
|
|
11189
11194
|
apiApprovalDefinitions: c
|
|
11190
|
-
} = t === void 0 ? gn : t, f = a === void 0 ? gn.apiApprovalDelegations : a, m = s === void 0 ? gn.apiHasRunningProcess : s,
|
|
11195
|
+
} = t === void 0 ? gn : t, f = a === void 0 ? gn.apiApprovalDelegations : a, m = s === void 0 ? gn.apiHasRunningProcess : s, h = d === void 0 ? gn.apiPostEditDelegation : d, p = u === void 0 ? gn.apiDeleteDelegation : u, v = c === void 0 ? gn.apiApprovalDefinitions : c, {
|
|
11191
11196
|
texts: g
|
|
11192
11197
|
} = ne(ue), {
|
|
11193
11198
|
approval: y
|
|
@@ -11238,7 +11243,7 @@ const Gp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11238
11243
|
b(null), N();
|
|
11239
11244
|
}, e[24] = N, e[25] = B) : B = e[25];
|
|
11240
11245
|
let j;
|
|
11241
|
-
e[26] !== o || e[27] !== v || e[28] !==
|
|
11246
|
+
e[26] !== o || e[27] !== v || e[28] !== p || e[29] !== m || e[30] !== h || e[31] !== x || e[32] !== B ? (j = /* @__PURE__ */ r(Kp, { model: x, handleClose: F, onConfirm: B, EmployeePickerComponent: o, apiApprovalDefinitions: v, apiHasRunningProcess: m, apiPostEditDelegation: h, apiDeleteDelegation: p }), e[26] = o, e[27] = v, e[28] = p, e[29] = m, e[30] = h, e[31] = x, e[32] = B, e[33] = j) : j = e[33];
|
|
11242
11247
|
let H;
|
|
11243
11248
|
return e[34] !== O || e[35] !== R || e[36] !== j ? (H = /* @__PURE__ */ T(Ft, { variant: "fullScreen", title: O, children: [
|
|
11244
11249
|
R,
|
|
@@ -11259,9 +11264,9 @@ const Gp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11259
11264
|
approval: c
|
|
11260
11265
|
} = u, {
|
|
11261
11266
|
zNumberRequired: f
|
|
11262
|
-
} =
|
|
11263
|
-
startLoading:
|
|
11264
|
-
stopLoading:
|
|
11267
|
+
} = fl(), m = ut(), {
|
|
11268
|
+
startLoading: h,
|
|
11269
|
+
stopLoading: p
|
|
11265
11270
|
} = ne(Pt), {
|
|
11266
11271
|
addNotification: v
|
|
11267
11272
|
} = dn();
|
|
@@ -11270,7 +11275,7 @@ const Gp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11270
11275
|
const R = Eo.object({
|
|
11271
11276
|
employeeId: f()
|
|
11272
11277
|
});
|
|
11273
|
-
y =
|
|
11278
|
+
y = gl, g = ml(R), e[0] = f, e[1] = g, e[2] = y;
|
|
11274
11279
|
} else
|
|
11275
11280
|
g = e[1], y = e[2];
|
|
11276
11281
|
let S;
|
|
@@ -11282,15 +11287,15 @@ const Gp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11282
11287
|
e[5] !== (o == null ? void 0 : o.id) || e[6] !== C || e[7] !== t ? (x = () => {
|
|
11283
11288
|
t && (C.reset({
|
|
11284
11289
|
employeeId: o == null ? void 0 : o.id
|
|
11285
|
-
}), !(o != null && o.id) &&
|
|
11290
|
+
}), !(o != null && o.id) && Jn(C, "employeeId"));
|
|
11286
11291
|
}, e[5] = o == null ? void 0 : o.id, e[6] = C, e[7] = t, e[8] = x) : x = e[8];
|
|
11287
11292
|
let b;
|
|
11288
11293
|
e[9] !== o || e[10] !== C || e[11] !== t ? (b = [t, o, C], e[9] = o, e[10] = C, e[11] = t, e[12] = b) : b = e[12], me(x, b);
|
|
11289
11294
|
let w;
|
|
11290
|
-
e[13] !== s || e[14] !== a || e[15] !== m || e[16] !== C || e[17] !==
|
|
11295
|
+
e[13] !== s || e[14] !== a || e[15] !== m || e[16] !== C || e[17] !== h || e[18] !== p ? (w = async (R) => (h("approvalChangeEmployee"), m.post(s, {
|
|
11291
11296
|
id: a,
|
|
11292
11297
|
employeeId: R
|
|
11293
|
-
}).then(qp).catch((F) => (ti(C, F), !1)).finally(() =>
|
|
11298
|
+
}).then(qp).catch((F) => (ti(C, F), !1)).finally(() => p("approvalChangeEmployee"))), e[13] = s, e[14] = a, e[15] = m, e[16] = C, e[17] = h, e[18] = p, e[19] = w) : w = e[19];
|
|
11294
11299
|
const N = w;
|
|
11295
11300
|
let k;
|
|
11296
11301
|
e[20] !== v || e[21] !== i || e[22] !== N || e[23] !== c.definitions.changeEmployeeSuccess ? (k = async (R) => {
|
|
@@ -11313,7 +11318,7 @@ const Gp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11313
11318
|
E
|
|
11314
11319
|
] }), e[38] = _, e[39] = $, e[40] = E, e[41] = A) : A = e[41];
|
|
11315
11320
|
let P;
|
|
11316
|
-
e[42] !== C || e[43] !== A ? (P = /* @__PURE__ */ r(
|
|
11321
|
+
e[42] !== C || e[43] !== A ? (P = /* @__PURE__ */ r(hl, { ...C, children: A }), e[42] = C, e[43] = A, e[44] = P) : P = e[44];
|
|
11317
11322
|
let O;
|
|
11318
11323
|
return e[45] !== t || e[46] !== I || e[47] !== P || e[48] !== L ? (O = /* @__PURE__ */ T(Te, { show: t, onHide: L, children: [
|
|
11319
11324
|
I,
|
|
@@ -11339,17 +11344,17 @@ const Qp = (n) => {
|
|
|
11339
11344
|
} = d, [c, f] = ee(null);
|
|
11340
11345
|
let m;
|
|
11341
11346
|
e[0] !== t.index || e[1] !== u.definitions ? (m = u.definitions.nthLevel(t.index + 1), e[0] = t.index, e[1] = u.definitions, e[2] = m) : m = e[2];
|
|
11342
|
-
let p;
|
|
11343
|
-
e[3] !== m ? (p = /* @__PURE__ */ r(K, { variant: "body", children: m }), e[3] = m, e[4] = p) : p = e[4];
|
|
11344
11347
|
let h;
|
|
11345
|
-
e[
|
|
11348
|
+
e[3] !== m ? (h = /* @__PURE__ */ r(K, { variant: "body", children: m }), e[3] = m, e[4] = h) : h = e[4];
|
|
11349
|
+
let p;
|
|
11350
|
+
e[5] !== t.threshold || e[6] !== u.definitions ? (p = u.definitions.levelThresholdInfo(t.threshold), e[5] = t.threshold, e[6] = u.definitions, e[7] = p) : p = e[7];
|
|
11346
11351
|
let v;
|
|
11347
|
-
e[8] !==
|
|
11352
|
+
e[8] !== p ? (v = /* @__PURE__ */ r(K, { variant: "body2", children: p }), e[8] = p, e[9] = v) : v = e[9];
|
|
11348
11353
|
let g;
|
|
11349
|
-
e[10] !==
|
|
11350
|
-
|
|
11354
|
+
e[10] !== h || e[11] !== v ? (g = /* @__PURE__ */ T("div", { className: "d-flex align-items-center justify-content-between", children: [
|
|
11355
|
+
h,
|
|
11351
11356
|
v
|
|
11352
|
-
] }), e[10] =
|
|
11357
|
+
] }), e[10] = h, e[11] = v, e[12] = g) : g = e[12];
|
|
11353
11358
|
let y;
|
|
11354
11359
|
e[13] !== s || e[14] !== i || e[15] !== t.approvers || e[16] !== t.threshold || e[17] !== u.definitions ? (y = t.approvers && t.approvers.length > 0 ? /* @__PURE__ */ r("div", { className: "list-group", children: (D = t.approvers) == null ? void 0 : D.map((L) => /* @__PURE__ */ T("div", { className: "list-group-item ms-3 p-1 px-2 d-flex align-items-center justify-content-between gap-5", children: [
|
|
11355
11360
|
/* @__PURE__ */ T(K, { variant: "body2", className: "d-flex align-items-center justify-content-between gap-2", children: [
|
|
@@ -11425,16 +11430,16 @@ const Qp = (n) => {
|
|
|
11425
11430
|
] })
|
|
11426
11431
|
] }, g.id);
|
|
11427
11432
|
}) }) : null, e[5] = o, e[6] = i, e[7] = c, e[8] = m) : m = e[8];
|
|
11428
|
-
let p;
|
|
11429
|
-
e[9] !== m ? (p = /* @__PURE__ */ r("div", { className: "overflow-auto h-100", children: m }), e[9] = m, e[10] = p) : p = e[10];
|
|
11430
11433
|
let h;
|
|
11431
|
-
e[
|
|
11434
|
+
e[9] !== m ? (h = /* @__PURE__ */ r("div", { className: "overflow-auto h-100", children: m }), e[9] = m, e[10] = h) : h = e[10];
|
|
11435
|
+
let p;
|
|
11436
|
+
e[11] !== c || e[12] !== s.delegations.noDelegations ? (p = c && c.length === 0 ? /* @__PURE__ */ r(St, { variant: "secondary", size: "sm", children: s.delegations.noDelegations }) : null, e[11] = c, e[12] = s.delegations.noDelegations, e[13] = p) : p = e[13];
|
|
11432
11437
|
let v;
|
|
11433
|
-
return e[14] !== f || e[15] !==
|
|
11438
|
+
return e[14] !== f || e[15] !== h || e[16] !== p ? (v = /* @__PURE__ */ T("div", { className: "bg-white rounded border p-2 px-3 d-flex flex-column gap-2 overflow-hidden h-max-100", children: [
|
|
11434
11439
|
f,
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
] }), e[14] = f, e[15] =
|
|
11440
|
+
h,
|
|
11441
|
+
p
|
|
11442
|
+
] }), e[14] = f, e[15] = h, e[16] = p, e[17] = v) : v = e[17], v;
|
|
11438
11443
|
}, Zp = (n) => {
|
|
11439
11444
|
var C, x;
|
|
11440
11445
|
const e = V.c(26), {
|
|
@@ -11457,20 +11462,20 @@ const Qp = (n) => {
|
|
|
11457
11462
|
" ",
|
|
11458
11463
|
wn(t.lastExecutionDate)
|
|
11459
11464
|
] }) : null, e[2] = t.lastExecutionDate, e[3] = u, e[4] = m) : m = e[4];
|
|
11460
|
-
let
|
|
11461
|
-
e[5] !== f || e[6] !== m ? (
|
|
11465
|
+
let h;
|
|
11466
|
+
e[5] !== f || e[6] !== m ? (h = /* @__PURE__ */ T("div", { className: "px-4 pt-1 d-flex align-items-center justify-content-between", children: [
|
|
11462
11467
|
f,
|
|
11463
11468
|
m
|
|
11464
|
-
] }), e[5] = f, e[6] = m, e[7] =
|
|
11465
|
-
let
|
|
11466
|
-
e[8] !== s || e[9] !== o || e[10] !== i || e[11] !== t.levels || e[12] !== l ? (
|
|
11469
|
+
] }), e[5] = f, e[6] = m, e[7] = h) : h = e[7];
|
|
11470
|
+
let p;
|
|
11471
|
+
e[8] !== s || e[9] !== o || e[10] !== i || e[11] !== t.levels || e[12] !== l ? (p = (x = (C = t.levels) == null ? void 0 : C.sort(Jp)) == null ? void 0 : x.map((b) => /* @__PURE__ */ r(Qp, { level: b, reloadApproval: l, appEmployeeDetail: i, apiPostChangeEmployee: o, EmployeePickerComponent: s }, b.id)), e[8] = s, e[9] = o, e[10] = i, e[11] = t.levels, e[12] = l, e[13] = p) : p = e[13];
|
|
11467
11472
|
let v;
|
|
11468
|
-
e[14] !==
|
|
11473
|
+
e[14] !== p ? (v = /* @__PURE__ */ r("div", { className: "d-flex flex-column gap-2 overflow-auto h-100 p-3 px-4", children: p }), e[14] = p, e[15] = v) : v = e[15];
|
|
11469
11474
|
let g;
|
|
11470
|
-
e[16] !==
|
|
11471
|
-
|
|
11475
|
+
e[16] !== h || e[17] !== v ? (g = /* @__PURE__ */ r("div", { className: "col-7 overflow-hidden h-100", children: /* @__PURE__ */ T("div", { className: "d-flex flex-column gap-0 overflow-hidden h-100", children: [
|
|
11476
|
+
h,
|
|
11472
11477
|
v
|
|
11473
|
-
] }) }), e[16] =
|
|
11478
|
+
] }) }), e[16] = h, e[17] = v, e[18] = g) : g = e[18];
|
|
11474
11479
|
let y;
|
|
11475
11480
|
e[19] !== a || e[20] !== i || e[21] !== t ? (y = /* @__PURE__ */ r("div", { className: "col-5 overflow-hidden h-100", children: /* @__PURE__ */ r(Xp, { approval: t, apiApprovalDelegations: a, appEmployeeDetail: i }) }), e[19] = a, e[20] = i, e[21] = t, e[22] = y) : y = e[22];
|
|
11476
11481
|
let S;
|
|
@@ -11487,7 +11492,7 @@ const In = {
|
|
|
11487
11492
|
apiApprovalDefinitionDetail: (n) => `/approval/definition/${n}`,
|
|
11488
11493
|
apiPostChangeEmployee: "/approval/definition/approver/edit",
|
|
11489
11494
|
apiApprovalDelegations: "/approval/delegation"
|
|
11490
|
-
},
|
|
11495
|
+
}, Al = {
|
|
11491
11496
|
appApprovalsDelegations: "/approvals/delegations",
|
|
11492
11497
|
appEmployeeDetail: (n) => `/employees/${n}`
|
|
11493
11498
|
}, Sg = (n) => {
|
|
@@ -11498,21 +11503,21 @@ const In = {
|
|
|
11498
11503
|
} = n, {
|
|
11499
11504
|
appApprovalsDelegations: o,
|
|
11500
11505
|
appEmployeeDetail: a
|
|
11501
|
-
} = t === void 0 ?
|
|
11506
|
+
} = t === void 0 ? Al : t, s = o === void 0 ? Al.appApprovalsDelegations : o, d = a === void 0 ? Al.appEmployeeDetail : a, {
|
|
11502
11507
|
apiApprovalDefinitions: u,
|
|
11503
11508
|
apiApprovalDefinitionDetail: c,
|
|
11504
11509
|
apiPostChangeEmployee: f,
|
|
11505
11510
|
apiApprovalDelegations: m
|
|
11506
|
-
} = l === void 0 ? In : l,
|
|
11511
|
+
} = l === void 0 ? In : l, h = u === void 0 ? In.apiApprovalDefinitions : u, p = c === void 0 ? In.apiApprovalDefinitionDetail : c, v = f === void 0 ? In.apiPostChangeEmployee : f, g = m === void 0 ? In.apiApprovalDelegations : m, {
|
|
11507
11512
|
ProjectIconComponent: y,
|
|
11508
11513
|
texts: S
|
|
11509
11514
|
} = ne(ue), {
|
|
11510
11515
|
approval: C
|
|
11511
11516
|
} = S, {
|
|
11512
11517
|
data: x
|
|
11513
|
-
} = nt(
|
|
11518
|
+
} = nt(h), [b, w] = an("approval", null), N = b ?? 0;
|
|
11514
11519
|
let k;
|
|
11515
|
-
e[0] !==
|
|
11520
|
+
e[0] !== p || e[1] !== N ? (k = p(N), e[0] = p, e[1] = N, e[2] = k) : k = e[2];
|
|
11516
11521
|
const D = b !== null;
|
|
11517
11522
|
let L;
|
|
11518
11523
|
e[3] !== D ? (L = {
|
|
@@ -11636,7 +11641,7 @@ export {
|
|
|
11636
11641
|
dg as BarChart,
|
|
11637
11642
|
rn as Card,
|
|
11638
11643
|
Pn as CheckInput,
|
|
11639
|
-
|
|
11644
|
+
ol as Collapse,
|
|
11640
11645
|
Zm as ColumnResizer,
|
|
11641
11646
|
oc as ContactButtonQrModal,
|
|
11642
11647
|
vh as ContactInput,
|
|
@@ -11687,7 +11692,7 @@ export {
|
|
|
11687
11692
|
cn as InvalidFeedback,
|
|
11688
11693
|
og as LanguageSwitch,
|
|
11689
11694
|
tg as LineChart,
|
|
11690
|
-
|
|
11695
|
+
Zn as Loading,
|
|
11691
11696
|
xs as LoadingBlock,
|
|
11692
11697
|
Uh as LocalStorageBackupUS,
|
|
11693
11698
|
Bh as LocalizationImport,
|
|
@@ -11713,7 +11718,7 @@ export {
|
|
|
11713
11718
|
$h as ReportPage,
|
|
11714
11719
|
ug as ReportsIndexPage,
|
|
11715
11720
|
ei as ResponsiveContextDropdown,
|
|
11716
|
-
|
|
11721
|
+
tl as ResponsiveContextDropdownItem,
|
|
11717
11722
|
Oh as ResponsiveTabs,
|
|
11718
11723
|
pg as RouteLink,
|
|
11719
11724
|
Xe as RowLabelInput,
|