react-luminus-components 2.0.5-beta.r19-5 → 2.0.5-beta.r19-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +7 -7
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +1 -1
- package/dist/main.cjs.js +3 -3
- package/dist/main.es.js +361 -359
- package/dist/useLocalStorageState-CMuPkmZV.cjs +1 -0
- package/dist/{useLocalStorageState-skKtExdF.js → useLocalStorageState-DA3M0F64.js} +31 -31
- package/package.json +1 -1
- package/dist/useLocalStorageState-C1aAxlx5.cjs +0 -1
package/dist/main.es.js
CHANGED
|
@@ -13,7 +13,7 @@ import { useFormContext as dn, useFormState as un, useController as fn, useWatch
|
|
|
13
13
|
import { Pivot as gs } from "react-flexmonster";
|
|
14
14
|
import { l as Dn, g as Ml, d as vs, r as ys, h as Zn } from "./localStorageUtils-CZ4HDRzi.js";
|
|
15
15
|
import { u as bs, a as Ss, b as on, c as ws } from "./useIsFormDirty-DSytgWJ-.js";
|
|
16
|
-
import { u as nt, a as On } from "./useLocalStorageState-
|
|
16
|
+
import { u as nt, a as On } from "./useLocalStorageState-DA3M0F64.js";
|
|
17
17
|
const mh = (n) => {
|
|
18
18
|
const e = V.c(6), {
|
|
19
19
|
fileLoader: t,
|
|
@@ -604,27 +604,27 @@ const na = /* @__PURE__ */ Ye.forwardRef(({
|
|
|
604
604
|
const R = Re(() => ({
|
|
605
605
|
onHide: T
|
|
606
606
|
}), [T]);
|
|
607
|
-
function
|
|
607
|
+
function M() {
|
|
608
608
|
return D || (u ? ($.current || ($.current = new rr({
|
|
609
609
|
handleContainerOverflow: !1
|
|
610
610
|
})), $.current) : sr());
|
|
611
611
|
}
|
|
612
|
-
const B = (
|
|
613
|
-
|
|
614
|
-
}, j = (
|
|
615
|
-
|
|
616
|
-
}, H = ke((
|
|
617
|
-
...
|
|
612
|
+
const B = (U, ...W) => {
|
|
613
|
+
U && (U.style.visibility = "visible"), b == null || b(U, ...W);
|
|
614
|
+
}, j = (U, ...W) => {
|
|
615
|
+
U && (U.style.visibility = ""), N == null || N(...W);
|
|
616
|
+
}, H = ke((U) => /* @__PURE__ */ r("div", {
|
|
617
|
+
...U,
|
|
618
618
|
className: z(`${n}-backdrop`, k)
|
|
619
|
-
}), [k, n]),
|
|
620
|
-
...
|
|
619
|
+
}), [k, n]), F = (U) => /* @__PURE__ */ r("div", {
|
|
620
|
+
...U,
|
|
621
621
|
...I,
|
|
622
622
|
className: z(e, o ? `${n}-${o}` : n, `${n}-${i}`),
|
|
623
623
|
"aria-labelledby": l,
|
|
624
624
|
children: t
|
|
625
625
|
});
|
|
626
626
|
return /* @__PURE__ */ E(he, {
|
|
627
|
-
children: [!O && (o || L) &&
|
|
627
|
+
children: [!O && (o || L) && F({}), /* @__PURE__ */ r(ir.Provider, {
|
|
628
628
|
value: R,
|
|
629
629
|
children: /* @__PURE__ */ r(or, {
|
|
630
630
|
show: O,
|
|
@@ -645,11 +645,11 @@ const na = /* @__PURE__ */ Ye.forwardRef(({
|
|
|
645
645
|
onExit: C,
|
|
646
646
|
onExiting: w,
|
|
647
647
|
onExited: j,
|
|
648
|
-
manager:
|
|
648
|
+
manager: M(),
|
|
649
649
|
transition: zs,
|
|
650
650
|
backdropTransition: Hs,
|
|
651
651
|
renderBackdrop: H,
|
|
652
|
-
renderDialog:
|
|
652
|
+
renderDialog: F
|
|
653
653
|
})
|
|
654
654
|
})]
|
|
655
655
|
});
|
|
@@ -837,16 +837,16 @@ const Vs = (n) => {
|
|
|
837
837
|
size: c
|
|
838
838
|
} = n, f = o === void 0 ? 2e3 : o, m = a === void 0 ? 2050 : a;
|
|
839
839
|
let h;
|
|
840
|
-
e[0] !== t || e[1] !== l || e[2] !== m || e[3] !== f ? (h = (
|
|
841
|
-
const
|
|
842
|
-
|
|
840
|
+
e[0] !== t || e[1] !== l || e[2] !== m || e[3] !== f ? (h = (U) => {
|
|
841
|
+
const W = is(t, U);
|
|
842
|
+
W.getFullYear() < f || W.getFullYear() > m || l(W);
|
|
843
843
|
}, e[0] = t, e[1] = l, e[2] = m, e[3] = f, e[4] = h) : h = e[4];
|
|
844
844
|
const g = h;
|
|
845
845
|
let v;
|
|
846
846
|
if (e[5] !== m || e[6] !== f) {
|
|
847
847
|
v = [];
|
|
848
|
-
for (let
|
|
849
|
-
v.push(
|
|
848
|
+
for (let U = f; U <= m; U++)
|
|
849
|
+
v.push(U);
|
|
850
850
|
e[5] = m, e[6] = f, e[7] = v;
|
|
851
851
|
} else
|
|
852
852
|
v = e[7];
|
|
@@ -854,10 +854,10 @@ const Vs = (n) => {
|
|
|
854
854
|
let y;
|
|
855
855
|
if (e[8] !== i) {
|
|
856
856
|
y = [];
|
|
857
|
-
for (let
|
|
857
|
+
for (let U = 0; U <= 11; U++)
|
|
858
858
|
y.push({
|
|
859
|
-
id:
|
|
860
|
-
name: Mt(new Date(2024,
|
|
859
|
+
id: U,
|
|
860
|
+
name: Mt(new Date(2024, U, 1), "LLLL", {
|
|
861
861
|
locale: i
|
|
862
862
|
})
|
|
863
863
|
});
|
|
@@ -880,9 +880,9 @@ const Vs = (n) => {
|
|
|
880
880
|
let D;
|
|
881
881
|
e[23] !== t ? (D = t.getMonth(), e[23] = t, e[24] = D) : D = e[24];
|
|
882
882
|
let L;
|
|
883
|
-
e[25] !== t || e[26] !== l ? (L = (
|
|
884
|
-
var
|
|
885
|
-
return ((
|
|
883
|
+
e[25] !== t || e[26] !== l ? (L = (U) => {
|
|
884
|
+
var W;
|
|
885
|
+
return ((W = U.target) == null ? void 0 : W.value) && l(Ds(t, Number(U.target.value)));
|
|
886
886
|
}, e[25] = t, e[26] = l, e[27] = L) : L = e[27];
|
|
887
887
|
let I;
|
|
888
888
|
e[28] !== d ? (I = z(Wn.select, Wn.month, d), e[28] = d, e[29] = I) : I = e[29];
|
|
@@ -893,9 +893,9 @@ const Vs = (n) => {
|
|
|
893
893
|
let O;
|
|
894
894
|
e[37] !== t ? (O = t.getFullYear(), e[37] = t, e[38] = O) : O = e[38];
|
|
895
895
|
let A;
|
|
896
|
-
e[39] !== t || e[40] !== l ? (A = (
|
|
897
|
-
var
|
|
898
|
-
return ((
|
|
896
|
+
e[39] !== t || e[40] !== l ? (A = (U) => {
|
|
897
|
+
var W;
|
|
898
|
+
return ((W = U.target) == null ? void 0 : W.value) && l(Fl(t, Number(U.target.value)));
|
|
899
899
|
}, e[39] = t, e[40] = l, e[41] = A) : A = e[41];
|
|
900
900
|
let T;
|
|
901
901
|
e[42] !== u ? (T = z(Wn.select, u), e[42] = u, e[43] = T) : T = e[43];
|
|
@@ -903,21 +903,21 @@ const Vs = (n) => {
|
|
|
903
903
|
e[44] !== p ? (P = p.map(qs), e[44] = p, e[45] = P) : P = e[45];
|
|
904
904
|
let R;
|
|
905
905
|
e[46] !== O || e[47] !== A || e[48] !== T || e[49] !== P ? (R = /* @__PURE__ */ r(Pe.Select, { value: O, onChange: A, className: T, children: P }), e[46] = O, e[47] = A, e[48] = T, e[49] = P, e[50] = R) : R = e[50];
|
|
906
|
-
let
|
|
907
|
-
e[51] !== g ? (
|
|
906
|
+
let M;
|
|
907
|
+
e[51] !== g ? (M = () => g(1), e[51] = g, e[52] = M) : M = e[52];
|
|
908
908
|
let B;
|
|
909
909
|
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];
|
|
910
910
|
let j;
|
|
911
911
|
e[56] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ r(ql, {}), e[56] = j) : j = e[56];
|
|
912
912
|
let H;
|
|
913
|
-
e[57] !==
|
|
914
|
-
let
|
|
915
|
-
return e[60] !== $ || e[61] !== R || e[62] !== H || e[63] !== w || e[64] !== k ? (
|
|
913
|
+
e[57] !== M || e[58] !== B ? (H = /* @__PURE__ */ r(ye, { onClick: M, disabled: B, children: j }), e[57] = M, e[58] = B, e[59] = H) : H = e[59];
|
|
914
|
+
let F;
|
|
915
|
+
return e[60] !== $ || e[61] !== R || e[62] !== H || e[63] !== w || e[64] !== k ? (F = /* @__PURE__ */ E("div", { className: w, children: [
|
|
916
916
|
k,
|
|
917
917
|
$,
|
|
918
918
|
R,
|
|
919
919
|
H
|
|
920
|
-
] }), e[60] = $, e[61] = R, e[62] = H, e[63] = w, e[64] = k, e[65] =
|
|
920
|
+
] }), e[60] = $, e[61] = R, e[62] = H, e[63] = w, e[64] = k, e[65] = F) : F = e[65], F;
|
|
921
921
|
};
|
|
922
922
|
function Ys(n) {
|
|
923
923
|
return /* @__PURE__ */ r("option", { value: n.id, children: n.name }, n.id);
|
|
@@ -928,7 +928,7 @@ function qs(n) {
|
|
|
928
928
|
const Qs = "_select_pywmr_1", Xs = {
|
|
929
929
|
select: Qs
|
|
930
930
|
}, ki = 2e3, _i = 2050, Zs = (n) => {
|
|
931
|
-
var R,
|
|
931
|
+
var R, M;
|
|
932
932
|
const e = V.c(57);
|
|
933
933
|
let t, l, i, o, a;
|
|
934
934
|
e[0] !== n ? ({
|
|
@@ -943,7 +943,7 @@ const Qs = "_select_pywmr_1", Xs = {
|
|
|
943
943
|
e[6] !== i.manualOptions || e[7] !== i.optionMin || e[8] !== i.options ? (d = i.manualOptions ? ((R = i.options) == null ? void 0 : R.at(0)) ?? ki : i.optionMin ?? ki, e[6] = i.manualOptions, e[7] = i.optionMin, e[8] = i.options, e[9] = d) : d = e[9];
|
|
944
944
|
const u = d;
|
|
945
945
|
let c;
|
|
946
|
-
e[10] !== i.manualOptions || e[11] !== i.optionMax || e[12] !== i.options ? (c = i.manualOptions ? ((
|
|
946
|
+
e[10] !== i.manualOptions || e[11] !== i.optionMax || e[12] !== i.options ? (c = i.manualOptions ? ((M = i.options) == null ? void 0 : M.at(-1)) ?? _i : i.optionMax ?? _i, e[10] = i.manualOptions, e[11] = i.optionMax, e[12] = i.options, e[13] = c) : c = e[13];
|
|
947
947
|
const f = c;
|
|
948
948
|
let m;
|
|
949
949
|
e: {
|
|
@@ -1370,7 +1370,7 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1370
1370
|
s && s(B);
|
|
1371
1371
|
}, [s]), A = ke((B) => {
|
|
1372
1372
|
$(!1), O(B);
|
|
1373
|
-
}, [O]), T = Be(null), P = t !== void 0, R = P && a !== null,
|
|
1373
|
+
}, [O]), T = Be(null), P = t !== void 0, R = P && a !== null, M = Re(() => {
|
|
1374
1374
|
var B, j;
|
|
1375
1375
|
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()) ?? "";
|
|
1376
1376
|
}, [a, v]);
|
|
@@ -1400,7 +1400,7 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1400
1400
|
hidden: h,
|
|
1401
1401
|
children: [
|
|
1402
1402
|
/* @__PURE__ */ r("option", { value: "" }),
|
|
1403
|
-
a && /* @__PURE__ */ r("option", { value: a.id ?? void 0, children:
|
|
1403
|
+
a && /* @__PURE__ */ r("option", { value: a.id ?? void 0, children: M })
|
|
1404
1404
|
]
|
|
1405
1405
|
}
|
|
1406
1406
|
) }),
|
|
@@ -1451,8 +1451,8 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1451
1451
|
const L = D;
|
|
1452
1452
|
let I;
|
|
1453
1453
|
e[7] !== h || e[8] !== L ? (I = (j) => {
|
|
1454
|
-
var
|
|
1455
|
-
const H = (
|
|
1454
|
+
var F;
|
|
1455
|
+
const H = (F = j.target) == null ? void 0 : F.value;
|
|
1456
1456
|
if (!h) {
|
|
1457
1457
|
L(H);
|
|
1458
1458
|
return;
|
|
@@ -1469,13 +1469,13 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1469
1469
|
const A = o ?? "", T = h ? N : l ?? "", P = f ?? 2;
|
|
1470
1470
|
let R;
|
|
1471
1471
|
e[13] !== c || e[14] !== _ || e[15] !== u || e[16] !== v || e[17] !== g || e[18] !== a || e[19] !== P || e[20] !== T ? (R = /* @__PURE__ */ r(Pe.Control, { as: "textarea", size: a, value: T, onChange: _, hidden: u, disabled: c, rows: P, className: "w-100", minLength: g, maxLength: v }), e[13] = c, e[14] = _, e[15] = u, e[16] = v, e[17] = g, e[18] = a, e[19] = P, e[20] = T, e[21] = R) : R = e[21];
|
|
1472
|
-
let
|
|
1473
|
-
e[22] !== w || e[23] !== c || e[24] !== i || e[25] !== s || e[26] !== l ? (
|
|
1472
|
+
let M;
|
|
1473
|
+
e[22] !== w || e[23] !== c || e[24] !== i || e[25] !== s || e[26] !== l ? (M = s && l && i && !c && /* @__PURE__ */ r("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r(ye, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ r(Gt, {}) }) }), e[22] = w, e[23] = c, e[24] = i, e[25] = s, e[26] = l, e[27] = M) : M = e[27];
|
|
1474
1474
|
let B;
|
|
1475
|
-
return e[28] !== S || e[29] !== p || e[30] !== c || e[31] !== u || e[32] !== y || e[33] !== R || e[34] !==
|
|
1475
|
+
return e[28] !== S || e[29] !== p || e[30] !== c || e[31] !== u || e[32] !== y || e[33] !== R || e[34] !== M || e[35] !== A || e[36] !== m ? (B = /* @__PURE__ */ E(S, { label: A, hidden: u, withoutLabel: m, className: p, isForTextAreaInput: !0, hint: y, disabled: c, children: [
|
|
1476
1476
|
R,
|
|
1477
|
-
|
|
1478
|
-
] }), e[28] = S, e[29] = p, e[30] = c, e[31] = u, e[32] = y, e[33] = R, e[34] =
|
|
1477
|
+
M
|
|
1478
|
+
] }), e[28] = S, e[29] = p, e[30] = c, e[31] = u, e[32] = y, e[33] = R, e[34] = M, e[35] = A, e[36] = m, e[37] = B) : B = e[37], B;
|
|
1479
1479
|
}, yh = (n) => {
|
|
1480
1480
|
const e = V.c(62), {
|
|
1481
1481
|
InputContainer: t,
|
|
@@ -1531,15 +1531,15 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1531
1531
|
e[14] !== S || e[15] !== y || e[16] !== l ? (T = () => {
|
|
1532
1532
|
I(l === null ? "" : Dn(l, y, S).toString());
|
|
1533
1533
|
}, P = [S, y, l], e[14] = S, e[15] = y, e[16] = l, e[17] = T, e[18] = P) : (T = e[17], P = e[18]), fe(T, P);
|
|
1534
|
-
const R = a ?? "",
|
|
1535
|
-
let
|
|
1536
|
-
e[19] !== A || e[20] !== c || e[21] !== u || e[22] !== v || e[23] !==
|
|
1537
|
-
let M;
|
|
1538
|
-
e[28] !== f || e[29] !== $ || e[30] !== b || e[31] !== l ? (M = !f && /* @__PURE__ */ r(ye, { size: "sm", onClick: (re) => {
|
|
1539
|
-
re.preventDefault(), re.stopPropagation(), $(((l ?? 0) - b).toString());
|
|
1540
|
-
}, children: /* @__PURE__ */ r(To, {}) }), e[28] = f, e[29] = $, e[30] = b, e[31] = l, e[32] = M) : M = e[32];
|
|
1534
|
+
const R = a ?? "", M = d ?? a, B = o ? L : l ?? "", j = `luminus-numeric-stepper ${g ?? ""}`, H = f ?? !1;
|
|
1535
|
+
let F;
|
|
1536
|
+
e[19] !== A || e[20] !== c || e[21] !== u || e[22] !== v || e[23] !== M || e[24] !== B || e[25] !== j || e[26] !== H ? (F = /* @__PURE__ */ r(Pe.Control, { type: "number", placeholder: M, 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] = M, e[24] = B, e[25] = j, e[26] = H, e[27] = F) : F = e[27];
|
|
1541
1537
|
let U;
|
|
1542
|
-
e[
|
|
1538
|
+
e[28] !== f || e[29] !== $ || e[30] !== b || e[31] !== l ? (U = !f && /* @__PURE__ */ r(ye, { size: "sm", onClick: (re) => {
|
|
1539
|
+
re.preventDefault(), re.stopPropagation(), $(((l ?? 0) - b).toString());
|
|
1540
|
+
}, children: /* @__PURE__ */ r(To, {}) }), e[28] = f, e[29] = $, e[30] = b, e[31] = l, e[32] = U) : U = e[32];
|
|
1541
|
+
let W;
|
|
1542
|
+
e[33] !== U ? (W = /* @__PURE__ */ r("div", { className: "stepper-icon left", children: U }), e[33] = U, e[34] = W) : W = e[34];
|
|
1543
1543
|
let G;
|
|
1544
1544
|
e[35] !== f || e[36] !== $ || e[37] !== b || e[38] !== l ? (G = !f && /* @__PURE__ */ r(ye, { size: "sm", onClick: (re) => {
|
|
1545
1545
|
re.preventDefault(), re.stopPropagation(), $(((l ?? 0) + b).toString());
|
|
@@ -1549,12 +1549,12 @@ const ec = "_avatar-icon_1axl6_1", tc = {
|
|
|
1549
1549
|
let Z;
|
|
1550
1550
|
e[42] !== N || e[43] !== f || e[44] !== i || e[45] !== m || e[46] !== l ? (Z = m && l && i && !f && /* @__PURE__ */ r("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r(ye, { color: "secondary", size: "sm", onClick: N, children: /* @__PURE__ */ r(Gt, {}) }) }), e[42] = N, e[43] = f, e[44] = i, e[45] = m, e[46] = l, e[47] = Z) : Z = e[47];
|
|
1551
1551
|
let ne;
|
|
1552
|
-
e[48] !==
|
|
1552
|
+
e[48] !== F || e[49] !== W || e[50] !== q || e[51] !== Z ? (ne = /* @__PURE__ */ E("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
1553
|
+
F,
|
|
1553
1554
|
W,
|
|
1554
|
-
U,
|
|
1555
1555
|
q,
|
|
1556
1556
|
Z
|
|
1557
|
-
] }), e[48] =
|
|
1557
|
+
] }), e[48] = F, e[49] = W, e[50] = q, e[51] = Z, e[52] = ne) : ne = e[52];
|
|
1558
1558
|
let te;
|
|
1559
1559
|
return e[53] !== w || e[54] !== g || e[55] !== f || e[56] !== c || e[57] !== C || e[58] !== ne || e[59] !== R || e[60] !== s ? (te = /* @__PURE__ */ r(w, { withoutLabel: s, label: R, hidden: c, hint: C, className: g, disabled: f, children: ne }), e[53] = w, e[54] = g, e[55] = f, e[56] = c, e[57] = C, e[58] = ne, e[59] = R, e[60] = s, e[61] = te) : te = e[61], te;
|
|
1560
1560
|
};
|
|
@@ -1829,7 +1829,7 @@ function Ic(n) {
|
|
|
1829
1829
|
clearTimeout(R.current.setCaretTimeout), clearTimeout(R.current.focusTimeout);
|
|
1830
1830
|
};
|
|
1831
1831
|
}, []);
|
|
1832
|
-
var
|
|
1832
|
+
var M = a, B = function(ee, X) {
|
|
1833
1833
|
var K = parseFloat(X);
|
|
1834
1834
|
return {
|
|
1835
1835
|
formattedValue: ee,
|
|
@@ -1842,16 +1842,16 @@ function Ic(n) {
|
|
|
1842
1842
|
}, 0));
|
|
1843
1843
|
}, H = function(ee, X, K) {
|
|
1844
1844
|
return $i(ee, X, S(ee), K);
|
|
1845
|
-
},
|
|
1845
|
+
}, F = function(ee, X, K) {
|
|
1846
1846
|
var se = S(X), oe = Cc(X, k, ee, K, se, C, w);
|
|
1847
1847
|
return oe = $i(X, oe, se), oe;
|
|
1848
|
-
},
|
|
1848
|
+
}, U = function(ee) {
|
|
1849
1849
|
var X = ee.formattedValue;
|
|
1850
1850
|
X === void 0 && (X = "");
|
|
1851
1851
|
var K = ee.input, se = ee.source, oe = ee.event, ie = ee.numAsString, ae;
|
|
1852
1852
|
if (K) {
|
|
1853
1853
|
var ge = ee.inputValue || K.value, xe = Cl(K);
|
|
1854
|
-
K.value = X, ae =
|
|
1854
|
+
K.value = X, ae = F(ge, X, xe), ae !== void 0 && j(K, ae, X);
|
|
1855
1855
|
}
|
|
1856
1856
|
X !== k && $(B(X, ie), { event: oe, source: se });
|
|
1857
1857
|
};
|
|
@@ -1862,21 +1862,21 @@ function Ic(n) {
|
|
|
1862
1862
|
source: An.props
|
|
1863
1863
|
});
|
|
1864
1864
|
}, [k, D]);
|
|
1865
|
-
var
|
|
1865
|
+
var W = P.current ? Cl(P.current) : void 0, G = typeof window < "u" ? ss : fe;
|
|
1866
1866
|
G(function() {
|
|
1867
1867
|
var ee = P.current;
|
|
1868
1868
|
if (k !== _.current.formattedValue && ee) {
|
|
1869
|
-
var X =
|
|
1869
|
+
var X = F(_.current.formattedValue, k, W);
|
|
1870
1870
|
ee.value = k, j(ee, X, k);
|
|
1871
1871
|
}
|
|
1872
1872
|
}, [k]);
|
|
1873
1873
|
var q = function(ee, X, K) {
|
|
1874
|
-
var se = X.target, oe = I.current ? yc(I.current, se.selectionEnd) : pa(k, ee), ie = Object.assign(Object.assign({}, oe), { lastValue: k }), ae = s(ee, ie), ge =
|
|
1874
|
+
var se = X.target, oe = I.current ? yc(I.current, se.selectionEnd) : pa(k, ee), ie = Object.assign(Object.assign({}, oe), { lastValue: k }), ae = s(ee, ie), ge = M(ae);
|
|
1875
1875
|
if (ae = s(ge, void 0), f && !f(B(ge, ae))) {
|
|
1876
|
-
var xe = X.target, _e = Cl(xe), Le =
|
|
1876
|
+
var xe = X.target, _e = Cl(xe), Le = F(ee, k, _e);
|
|
1877
1877
|
return xe.value = k, j(xe, Le, k), !1;
|
|
1878
1878
|
}
|
|
1879
|
-
return
|
|
1879
|
+
return U({
|
|
1880
1880
|
formattedValue: ge,
|
|
1881
1881
|
numAsString: ae,
|
|
1882
1882
|
inputValue: ee,
|
|
@@ -1994,11 +1994,11 @@ function Lc(n, e, t) {
|
|
|
1994
1994
|
var p = s === 0 ? "" : g;
|
|
1995
1995
|
n = n.substring(0, c) + p + n.substring(c + 1, n.length);
|
|
1996
1996
|
}
|
|
1997
|
-
var y = function(P, R,
|
|
1997
|
+
var y = function(P, R, M) {
|
|
1998
1998
|
var B = !1, j = !1;
|
|
1999
1999
|
o.startsWith("-") ? B = !1 : P.startsWith("--") ? (B = !1, j = !0) : a.startsWith("-") && P.length === a.length ? B = !1 : P[0] === "-" && (B = !0);
|
|
2000
2000
|
var H = B ? 1 : 0;
|
|
2001
|
-
return j && (H = 2), H && (P = P.substring(H), R -= H,
|
|
2001
|
+
return j && (H = 2), H && (P = P.substring(H), R -= H, M -= H), { value: P, start: R, end: M, hasNegation: B };
|
|
2002
2002
|
}, S = y(n, c, f), C = S.hasNegation;
|
|
2003
2003
|
l = S, n = l.value, c = l.start, f = l.end;
|
|
2004
2004
|
var w = y(e.lastValue, d.start, d.end), b = w.start, x = w.end, N = w.value, k = n.substring(c, f);
|
|
@@ -2059,18 +2059,18 @@ function Pc(n) {
|
|
|
2059
2059
|
var x = function(T) {
|
|
2060
2060
|
return da(T) ? T : (typeof T == "number" && (T = ma(T)), b && typeof s == "number" ? Ti(T, s, !!d) : T);
|
|
2061
2061
|
}, N = ha(x(f), x(c), !!b, S, C, h), k = N[0], D = k.numAsString, L = k.formattedValue, I = N[1], _ = function(T) {
|
|
2062
|
-
var P = T.target, R = T.key,
|
|
2062
|
+
var P = T.target, R = T.key, M = P.selectionStart, B = P.selectionEnd, j = P.value;
|
|
2063
2063
|
if (j === void 0 && (j = ""), (R === "Backspace" || R === "Delete") && B < u.length) {
|
|
2064
2064
|
T.preventDefault();
|
|
2065
2065
|
return;
|
|
2066
2066
|
}
|
|
2067
|
-
if (
|
|
2067
|
+
if (M !== B) {
|
|
2068
2068
|
i(T);
|
|
2069
2069
|
return;
|
|
2070
2070
|
}
|
|
2071
|
-
R === "Backspace" && j[0] === "-" &&
|
|
2071
|
+
R === "Backspace" && j[0] === "-" && M === u.length + 1 && t && ln(P, 1), s && d && (R === "Backspace" && j[M - 1] === p ? (ln(P, M - 1), T.preventDefault()) : R === "Delete" && j[M] === p && T.preventDefault()), y != null && y.includes(R) && j[M] === p && ln(P, M + 1);
|
|
2072
2072
|
var H = a === !0 ? "," : a;
|
|
2073
|
-
R === "Backspace" && j[
|
|
2073
|
+
R === "Backspace" && j[M - 1] === H && ln(P, M - 1), R === "Delete" && j[M] === H && ln(P, M + 1), i(T);
|
|
2074
2074
|
}, $ = function(T) {
|
|
2075
2075
|
var P = D;
|
|
2076
2076
|
if (P.match(/\d/g) || (P = ""), l || (P = vc(P)), d && s && (P = Ti(P, s, d)), P !== D) {
|
|
@@ -2088,10 +2088,10 @@ function Pc(n) {
|
|
|
2088
2088
|
}, O = function(T) {
|
|
2089
2089
|
return T === p ? !0 : Rn(T);
|
|
2090
2090
|
}, A = function(T) {
|
|
2091
|
-
var P = T.currentValue, R = T.lastValue,
|
|
2091
|
+
var P = T.currentValue, R = T.lastValue, M = T.formattedValue, B = T.currentValueIndex, j = T.formattedValueIndex, H = P[B], F = M[j], U = pa(R, P), W = U.to, G = function(q) {
|
|
2092
2092
|
return C(q).indexOf(".") + u.length;
|
|
2093
2093
|
};
|
|
2094
|
-
return f === 0 && d && s && P[
|
|
2094
|
+
return f === 0 && d && s && P[W.start] === p && G(P) < B && G(M) > j ? !1 : B >= W.start && B < W.end && y && y.includes(H) && F === p ? !0 : H === F;
|
|
2095
2095
|
};
|
|
2096
2096
|
return Object.assign(Object.assign({}, g), {
|
|
2097
2097
|
value: L,
|
|
@@ -2239,29 +2239,29 @@ const Ac = ({
|
|
|
2239
2239
|
y && b(!0);
|
|
2240
2240
|
}, P = [y], e[4] = y, e[5] = T, e[6] = P) : (T = e[5], P = e[6]), fe(T, P);
|
|
2241
2241
|
const R = D !== void 0;
|
|
2242
|
-
let
|
|
2243
|
-
e[7] !== L || e[8] !== m || e[9] !== o || e[10] !== p || e[11] !== w ? (
|
|
2242
|
+
let M;
|
|
2243
|
+
e[7] !== L || e[8] !== m || e[9] !== o || e[10] !== p || e[11] !== w ? (M = (re) => {
|
|
2244
2244
|
const Q = re.target.checked ?? !1;
|
|
2245
2245
|
L(Q), o && o.forEach((ue) => p(ue, null, {
|
|
2246
2246
|
shouldDirty: !0,
|
|
2247
2247
|
shouldValidate: w
|
|
2248
2248
|
})), m && m(Q);
|
|
2249
|
-
}, e[7] = L, e[8] = m, e[9] = o, e[10] = p, e[11] = w, e[12] =
|
|
2250
|
-
const B =
|
|
2249
|
+
}, e[7] = L, e[8] = m, e[9] = o, e[10] = p, e[11] = w, e[12] = M) : M = e[12];
|
|
2250
|
+
const B = M;
|
|
2251
2251
|
let j;
|
|
2252
2252
|
e[13] !== I ? (j = () => {
|
|
2253
2253
|
I();
|
|
2254
2254
|
}, e[13] = I, e[14] = j) : j = e[14];
|
|
2255
|
-
const H = j,
|
|
2255
|
+
const H = j, F = i ?? "", U = `check-${l}`, W = a ?? "checkbox", G = `${i}${s ? " *" : ""}`, q = $ ?? !1;
|
|
2256
2256
|
let Z;
|
|
2257
|
-
e[15] !== A || e[16] !== O || e[17] !== _ || e[18] !== H || e[19] !== B || e[20] !== d || e[21] !== R || e[22] !==
|
|
2257
|
+
e[15] !== A || e[16] !== O || e[17] !== _ || e[18] !== H || e[19] !== B || e[20] !== d || e[21] !== R || e[22] !== U || e[23] !== W || e[24] !== G || e[25] !== q ? (Z = /* @__PURE__ */ r(Pe.Check, { id: U, type: W, label: G, name: O, checked: q, onChange: B, onBlur: H, ref: _, isInvalid: R, hidden: d, disabled: A, className: "w-100" }), e[15] = A, e[16] = O, e[17] = _, e[18] = H, e[19] = B, e[20] = d, e[21] = R, e[22] = U, e[23] = W, e[24] = G, e[25] = q, e[26] = Z) : Z = e[26];
|
|
2258
2258
|
let ne;
|
|
2259
2259
|
e[27] !== D ? (ne = D && /* @__PURE__ */ r(rn, { message: D.message }), e[27] = D, e[28] = ne) : ne = e[28];
|
|
2260
2260
|
let te;
|
|
2261
|
-
return e[29] !== g || e[30] !== A || e[31] !== h || e[32] !== d || e[33] !== f || e[34] !== R || e[35] !== s || e[36] !== Z || e[37] !== ne || e[38] !==
|
|
2261
|
+
return e[29] !== g || e[30] !== A || e[31] !== h || e[32] !== d || e[33] !== f || e[34] !== R || e[35] !== s || e[36] !== Z || e[37] !== ne || e[38] !== F || e[39] !== c ? (te = /* @__PURE__ */ E(g, { isForCheckInput: !0, hidden: d, label: F, required: s, disabled: A, isInvalid: R, withoutLabel: c, hint: f, className: h, children: [
|
|
2262
2262
|
Z,
|
|
2263
2263
|
ne
|
|
2264
|
-
] }), e[29] = g, e[30] = A, e[31] = h, e[32] = d, e[33] = f, e[34] = R, e[35] = s, e[36] = Z, e[37] = ne, e[38] =
|
|
2264
|
+
] }), e[29] = g, e[30] = A, e[31] = h, e[32] = d, e[33] = f, e[34] = R, e[35] = s, e[36] = Z, e[37] = ne, e[38] = F, e[39] = c, e[40] = te) : te = e[40], te;
|
|
2265
2265
|
}, Sh = (n) => {
|
|
2266
2266
|
const e = V.c(45), {
|
|
2267
2267
|
InputContainer: t,
|
|
@@ -2308,26 +2308,26 @@ const Ac = ({
|
|
|
2308
2308
|
}, T = [v], e[4] = v, e[5] = A, e[6] = T) : (A = e[5], T = e[6]), fe(A, T);
|
|
2309
2309
|
const P = L !== void 0;
|
|
2310
2310
|
let R;
|
|
2311
|
-
e[7] !== x || e[8] !== c || e[9] !== a || e[10] !== g || e[11] !== I ? (R = (
|
|
2312
|
-
x(
|
|
2311
|
+
e[7] !== x || e[8] !== c || e[9] !== a || e[10] !== g || e[11] !== I ? (R = (W) => {
|
|
2312
|
+
x(W), a && a.forEach((G) => g(G, null, {
|
|
2313
2313
|
shouldDirty: !0,
|
|
2314
2314
|
shouldValidate: I
|
|
2315
|
-
})), c && c(
|
|
2315
|
+
})), c && c(W === null ? null : W.toString());
|
|
2316
2316
|
}, e[7] = x, e[8] = c, e[9] = a, e[10] = g, e[11] = I, e[12] = R) : R = e[12];
|
|
2317
|
-
const
|
|
2317
|
+
const M = R, B = !l, j = l ?? "";
|
|
2318
2318
|
let H;
|
|
2319
|
-
if (e[13] !== O || e[14] !== D || e[15] !== N || e[16] !== k || e[17] !== b || e[18] !==
|
|
2320
|
-
let
|
|
2321
|
-
e[23] !== O || e[24] !== D || e[25] !== N || e[26] !== k || e[27] !== b || e[28] !==
|
|
2319
|
+
if (e[13] !== O || e[14] !== D || e[15] !== N || e[16] !== k || e[17] !== b || e[18] !== M || e[19] !== u || e[20] !== P || e[21] !== $) {
|
|
2320
|
+
let W;
|
|
2321
|
+
e[23] !== O || e[24] !== D || e[25] !== N || e[26] !== k || e[27] !== b || e[28] !== M || e[29] !== u || e[30] !== P ? (W = (G, q) => /* @__PURE__ */ r(Pe.Check, { id: `radio-${G.id}`, label: G.name, type: "radio", value: G.id ?? "", name: D, checked: b === G.id, onChange: () => M(G.id ?? null), onBlur: N, ref: q === 0 ? k : void 0, isInvalid: P, hidden: u, disabled: O, className: "w-100" }, G.id), e[23] = O, e[24] = D, e[25] = N, e[26] = k, e[27] = b, e[28] = M, e[29] = u, e[30] = P, e[31] = W) : W = e[31], H = $.map(W), e[13] = O, e[14] = D, e[15] = N, e[16] = k, e[17] = b, e[18] = M, e[19] = u, e[20] = P, e[21] = $, e[22] = H;
|
|
2322
2322
|
} else
|
|
2323
2323
|
H = e[22];
|
|
2324
|
-
let
|
|
2325
|
-
e[32] !== L ? (
|
|
2326
|
-
let
|
|
2327
|
-
return e[34] !== m || e[35] !== O || e[36] !== f || e[37] !== u || e[38] !== P || e[39] !== s || e[40] !== j || e[41] !== H || e[42] !==
|
|
2324
|
+
let F;
|
|
2325
|
+
e[32] !== L ? (F = L && /* @__PURE__ */ r(rn, { message: L.message }), e[32] = L, e[33] = F) : F = e[33];
|
|
2326
|
+
let U;
|
|
2327
|
+
return e[34] !== m || e[35] !== O || e[36] !== f || e[37] !== u || e[38] !== P || e[39] !== s || e[40] !== j || e[41] !== H || e[42] !== F || e[43] !== B ? (U = /* @__PURE__ */ E(m, { isForRadioInput: !0, hidden: u, withoutLabel: B, label: j, required: s, disabled: O, isInvalid: P, className: f, children: [
|
|
2328
2328
|
H,
|
|
2329
|
-
|
|
2330
|
-
] }), e[34] = m, e[35] = O, e[36] = f, e[37] = u, e[38] = P, e[39] = s, e[40] = j, e[41] = H, e[42] =
|
|
2329
|
+
F
|
|
2330
|
+
] }), e[34] = m, e[35] = O, e[36] = f, e[37] = u, e[38] = P, e[39] = s, e[40] = j, e[41] = H, e[42] = F, e[43] = B, e[44] = U) : U = e[44], U;
|
|
2331
2331
|
}, wh = (n) => {
|
|
2332
2332
|
const e = V.c(25);
|
|
2333
2333
|
let t, l, i, o, a, s, d, u, c;
|
|
@@ -2401,7 +2401,7 @@ const Ac = ({
|
|
|
2401
2401
|
falseIfNotInit: !0
|
|
2402
2402
|
}), {
|
|
2403
2403
|
field: {
|
|
2404
|
-
value:
|
|
2404
|
+
value: M,
|
|
2405
2405
|
ref: B,
|
|
2406
2406
|
name: j
|
|
2407
2407
|
},
|
|
@@ -2411,7 +2411,7 @@ const Ac = ({
|
|
|
2411
2411
|
} = fn({
|
|
2412
2412
|
name: e,
|
|
2413
2413
|
control: A
|
|
2414
|
-
}), [
|
|
2414
|
+
}), [F, U] = J(!1), [W, G] = J(!1), q = M ?? null, Z = En({
|
|
2415
2415
|
name: `${e}-DropdownName`
|
|
2416
2416
|
}), ne = q === (i == null ? void 0 : i.id) ? i == null ? void 0 : i.name : Z, te = Re(() => q == null ? null : {
|
|
2417
2417
|
id: q ?? null,
|
|
@@ -2420,36 +2420,36 @@ const Ac = ({
|
|
|
2420
2420
|
if ((K == null ? void 0 : K.id) === q) return;
|
|
2421
2421
|
if (b && b(K), o && o.forEach((oe) => T(oe, null, {
|
|
2422
2422
|
shouldDirty: !0,
|
|
2423
|
-
shouldValidate:
|
|
2423
|
+
shouldValidate: W
|
|
2424
2424
|
})), K === null) {
|
|
2425
2425
|
T(e, null, {
|
|
2426
2426
|
shouldDirty: !0,
|
|
2427
|
-
shouldValidate:
|
|
2427
|
+
shouldValidate: W
|
|
2428
2428
|
}), T(`${e}-DropdownName`, null);
|
|
2429
2429
|
return;
|
|
2430
2430
|
}
|
|
2431
2431
|
let se = null;
|
|
2432
2432
|
a ? se = (K == null ? void 0 : K.id) !== null && (K == null ? void 0 : K.id) !== "" ? parseInt(K.id.toString(), 10) : null : se = K.id === null || K.id === void 0 || K.id === "" ? null : K.id, T(e, se, {
|
|
2433
2433
|
shouldDirty: !0,
|
|
2434
|
-
shouldValidate:
|
|
2434
|
+
shouldValidate: W
|
|
2435
2435
|
}), T(`${e}-DropdownName`, K.name ?? "");
|
|
2436
|
-
}, [T, e,
|
|
2437
|
-
|
|
2436
|
+
}, [T, e, W, a, o, q, b]), Q = ke((K) => {
|
|
2437
|
+
U(!1), re(K);
|
|
2438
2438
|
}, [re]), ue = ke(() => {
|
|
2439
|
-
|
|
2439
|
+
U(!1);
|
|
2440
2440
|
}, []), pe = Be(null), Se = H !== void 0, be = m !== void 0, ee = be && te !== null, X = Re(() => u || R, [u, R]);
|
|
2441
2441
|
return fe(() => {
|
|
2442
2442
|
P && G(!0);
|
|
2443
2443
|
}, [P]), /* @__PURE__ */ r(he, { children: /* @__PURE__ */ E(n, { label: t ?? "", required: s, disabled: X, hidden: d, withoutLabel: p, isInvalid: Se, inputContainerClassName: z({
|
|
2444
|
-
"luminus-dropdown-select-open":
|
|
2444
|
+
"luminus-dropdown-select-open": F
|
|
2445
2445
|
}), hint: k, className: x, children: [
|
|
2446
2446
|
/* @__PURE__ */ E(Ql, { currentSelection: te, selectedItemNavigateTo: m, children: [
|
|
2447
2447
|
w && (te == null ? void 0 : te.name) && /* @__PURE__ */ r(Y, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: te.name }),
|
|
2448
|
-
/* @__PURE__ */ r("input", { type: "hidden", name: j, value:
|
|
2448
|
+
/* @__PURE__ */ r("input", { type: "hidden", name: j, value: M ?? "", ref: B }),
|
|
2449
2449
|
/* @__PURE__ */ r(Xl, { value: q, MiniDetailComponent: I, miniDetailPlacement: _, children: /* @__PURE__ */ r(Pe.Select, { size: l, onMouseDown: (K) => {
|
|
2450
2450
|
K.currentTarget.focus(), K.preventDefault();
|
|
2451
2451
|
}, onClick: () => {
|
|
2452
|
-
!be && !X &&
|
|
2452
|
+
!be && !X && U(!0);
|
|
2453
2453
|
}, ref: pe, value: q ?? "", onChange: () => {
|
|
2454
2454
|
}, isInvalid: Se, hidden: d, className: z("w-100", {
|
|
2455
2455
|
"luminus-dropdown-picker-disabled": X,
|
|
@@ -2457,13 +2457,13 @@ const Ac = ({
|
|
|
2457
2457
|
}), children: /* @__PURE__ */ r("option", { value: q, children: w ? q : (ne == null ? void 0 : ne.length) > 0 ? ne : q }) }) }),
|
|
2458
2458
|
S || !X && be ? /* @__PURE__ */ E("div", { className: "custom-picker-button", children: [
|
|
2459
2459
|
!S && !X && be && /* @__PURE__ */ r(ye, { size: "sm", color: "secondary", onClick: (K) => {
|
|
2460
|
-
K.preventDefault(), K.stopPropagation(),
|
|
2460
|
+
K.preventDefault(), K.stopPropagation(), U(!0);
|
|
2461
2461
|
}, children: C ?? /* @__PURE__ */ r(Do, {}) }),
|
|
2462
2462
|
S ?? null
|
|
2463
2463
|
] }) : null
|
|
2464
2464
|
] }),
|
|
2465
2465
|
H && /* @__PURE__ */ r(rn, { message: H.message }),
|
|
2466
|
-
pe.current && /* @__PURE__ */ r(Zl, { show:
|
|
2466
|
+
pe.current && /* @__PURE__ */ r(Zl, { show: F, onCancel: ue, items: c, currentSelection: te, onSelectionChange: Q, onSearchQueryChange: f, texts: h, itemsNameWidth: g, additionalColumns: y, displayIdAsName: w, isLoading: v, disabled: X, inputRef: pe, archiveColumn: N, addNewOptionPath: D, refreshOptions: L, suggestedItems: $, suggestedItemsTitle: O })
|
|
2467
2467
|
] }) });
|
|
2468
2468
|
}, Ch = (n) => {
|
|
2469
2469
|
const e = V.c(51), {
|
|
@@ -2523,17 +2523,17 @@ const Ac = ({
|
|
|
2523
2523
|
shouldValidate: $
|
|
2524
2524
|
}));
|
|
2525
2525
|
}, e[8] = D, e[9] = c, e[10] = S, e[11] = $, e[12] = R) : R = e[12];
|
|
2526
|
-
const
|
|
2526
|
+
const M = R;
|
|
2527
2527
|
let B, j;
|
|
2528
2528
|
e[13] !== C ? (B = () => {
|
|
2529
2529
|
C && O(!0);
|
|
2530
2530
|
}, j = [C], e[13] = C, e[14] = B, e[15] = j) : (B = e[14], j = e[15]), fe(B, j);
|
|
2531
|
-
const H = d || b,
|
|
2532
|
-
let
|
|
2533
|
-
e[16] !== i ? (
|
|
2531
|
+
const H = d || b, F = _ !== void 0;
|
|
2532
|
+
let U;
|
|
2533
|
+
e[16] !== i ? (U = {
|
|
2534
2534
|
name: i
|
|
2535
|
-
}, e[16] = i, e[17] =
|
|
2536
|
-
const
|
|
2535
|
+
}, e[16] = i, e[17] = U) : U = e[17];
|
|
2536
|
+
const W = En(U), G = l ?? "";
|
|
2537
2537
|
let q;
|
|
2538
2538
|
e[18] !== m ? (q = m.join(", "), e[18] = m, e[19] = q) : q = e[19];
|
|
2539
2539
|
const Z = s ?? l;
|
|
@@ -2542,17 +2542,17 @@ const Ac = ({
|
|
|
2542
2542
|
L(pe), A.current = pe;
|
|
2543
2543
|
}, e[20] = L, e[21] = ne) : ne = e[21];
|
|
2544
2544
|
let te;
|
|
2545
|
-
e[22] !== H || e[23] !== I || e[24] !==
|
|
2545
|
+
e[22] !== H || e[23] !== I || e[24] !== M || e[25] !== o || e[26] !== F || e[27] !== f || e[28] !== q || e[29] !== Z || e[30] !== ne ? (te = /* @__PURE__ */ r(yr, { type: "file", multiple: f, accept: q, placeholder: Z, isInvalid: F, hidden: o, disabled: H, className: "w-100", name: I, onChange: M, ref: ne }), e[22] = H, e[23] = I, e[24] = M, e[25] = o, e[26] = F, e[27] = f, e[28] = q, e[29] = Z, e[30] = ne, e[31] = te) : te = e[31];
|
|
2546
2546
|
let re;
|
|
2547
|
-
e[32] !== P || e[33] !==
|
|
2547
|
+
e[32] !== P || e[33] !== W || e[34] !== u ? (re = u && W != null && /* @__PURE__ */ r("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r(ye, { color: "secondary", size: "sm", onClick: P, children: /* @__PURE__ */ r(Gt, {}) }) }), e[32] = P, e[33] = W, e[34] = u, e[35] = re) : re = e[35];
|
|
2548
2548
|
let Q;
|
|
2549
2549
|
e[36] !== _ ? (Q = _ && /* @__PURE__ */ r(rn, { message: _.message }), e[36] = _, e[37] = Q) : Q = e[37];
|
|
2550
2550
|
let ue;
|
|
2551
|
-
return e[38] !== p || e[39] !== H || e[40] !== v || e[41] !== o || e[42] !== g || e[43] !==
|
|
2551
|
+
return e[38] !== p || e[39] !== H || e[40] !== v || e[41] !== o || e[42] !== g || e[43] !== F || e[44] !== a || e[45] !== G || e[46] !== te || e[47] !== re || e[48] !== Q || e[49] !== h ? (ue = /* @__PURE__ */ E(p, { label: G, required: a, disabled: H, hidden: o, withoutLabel: h, isInvalid: F, hint: g, className: v, children: [
|
|
2552
2552
|
te,
|
|
2553
2553
|
re,
|
|
2554
2554
|
Q
|
|
2555
|
-
] }), e[38] = p, e[39] = H, e[40] = v, e[41] = o, e[42] = g, e[43] =
|
|
2555
|
+
] }), e[38] = p, e[39] = H, e[40] = v, e[41] = o, e[42] = g, e[43] = F, e[44] = a, e[45] = G, e[46] = te, e[47] = re, e[48] = Q, e[49] = h, e[50] = ue) : ue = e[50], ue;
|
|
2556
2556
|
}, Mc = (n) => {
|
|
2557
2557
|
const e = V.c(7), {
|
|
2558
2558
|
children: t,
|
|
@@ -2614,7 +2614,7 @@ const Ac = ({
|
|
|
2614
2614
|
} = fn({
|
|
2615
2615
|
name: t,
|
|
2616
2616
|
control: k
|
|
2617
|
-
}), [T, P] = J(!1), [R,
|
|
2617
|
+
}), [T, P] = J(!1), [R, M] = J(!1), [B, j] = J(""), H = _, F = Re(() => e.find((Q) => Q.id === H) ?? null, [e, H]), U = ke((Q) => {
|
|
2618
2618
|
if ((Q == null ? void 0 : Q.id) === H) return;
|
|
2619
2619
|
if (h && h(Q), o && o.forEach((pe) => D(pe, null, {
|
|
2620
2620
|
shouldDirty: !0,
|
|
@@ -2631,13 +2631,13 @@ const Ac = ({
|
|
|
2631
2631
|
shouldDirty: !0,
|
|
2632
2632
|
shouldValidate: R
|
|
2633
2633
|
});
|
|
2634
|
-
}, [D, t, a, o, H, R, h]),
|
|
2635
|
-
P(!1),
|
|
2636
|
-
}, [
|
|
2634
|
+
}, [D, t, a, o, H, R, h]), W = ke((Q) => {
|
|
2635
|
+
P(!1), U(Q);
|
|
2636
|
+
}, [U]), G = ke((Q) => {
|
|
2637
2637
|
j(Q);
|
|
2638
2638
|
}, []), q = Re(() => u || I, [u, I]);
|
|
2639
2639
|
fe(() => {
|
|
2640
|
-
L &&
|
|
2640
|
+
L && M(!0);
|
|
2641
2641
|
}, [L]);
|
|
2642
2642
|
const Z = ke((Q) => {
|
|
2643
2643
|
var ue;
|
|
@@ -2655,17 +2655,17 @@ const Ac = ({
|
|
|
2655
2655
|
return /* @__PURE__ */ r(he, { children: /* @__PURE__ */ E(n, { label: l ?? "", required: s, disabled: q, hidden: d, withoutLabel: c, isInvalid: re, inputContainerClassName: z({
|
|
2656
2656
|
"luminus-dropdown-select-open": T
|
|
2657
2657
|
}), hint: p, className: g, children: [
|
|
2658
|
-
/* @__PURE__ */ E(Ql, { currentSelection:
|
|
2658
|
+
/* @__PURE__ */ E(Ql, { currentSelection: F, selectedItemNavigateTo: b, children: [
|
|
2659
2659
|
/* @__PURE__ */ r("input", { type: "hidden", name: O, value: _ ?? "", ref: $ }),
|
|
2660
2660
|
/* @__PURE__ */ r(Xl, { value: H, MiniDetailComponent: C, miniDetailPlacement: w, children: /* @__PURE__ */ r(Pe.Select, { size: i, onMouseDown: (Q) => {
|
|
2661
2661
|
Q.currentTarget.focus(), Q.preventDefault();
|
|
2662
2662
|
}, onClick: () => {
|
|
2663
2663
|
P(!0);
|
|
2664
2664
|
}, ref: te, value: H ?? "", onChange: () => {
|
|
2665
|
-
}, isInvalid: re, hidden: d, disabled: q, className: "w-100", children: /* @__PURE__ */ r("option", { value: (
|
|
2665
|
+
}, isInvalid: re, hidden: d, disabled: q, className: "w-100", children: /* @__PURE__ */ r("option", { value: (F == null ? void 0 : F.id) ?? "", children: Z(F) }) }) })
|
|
2666
2666
|
] }),
|
|
2667
2667
|
A && /* @__PURE__ */ r(rn, { message: A.message }),
|
|
2668
|
-
te.current && /* @__PURE__ */ r(Zl, { show: T, onCancel: () => P(!1), items: ne, currentSelection:
|
|
2668
|
+
te.current && /* @__PURE__ */ r(Zl, { show: T, onCancel: () => P(!1), items: ne, currentSelection: F ?? null, onSelectionChange: W, onSearchQueryChange: G, texts: N, disabled: q, inputRef: te, autoHideSearch: !0, allItemsLength: e.length, addNewOptionPath: y, refreshOptions: S, noRemoveButton: x })
|
|
2669
2669
|
] }) });
|
|
2670
2670
|
}, Nh = (n) => {
|
|
2671
2671
|
const e = V.c(79), {
|
|
@@ -2712,24 +2712,24 @@ const Ac = ({
|
|
|
2712
2712
|
onChange: T,
|
|
2713
2713
|
onBlur: P,
|
|
2714
2714
|
ref: R,
|
|
2715
|
-
name:
|
|
2715
|
+
name: M
|
|
2716
2716
|
} = $, {
|
|
2717
2717
|
error: B
|
|
2718
2718
|
} = O, [j, H] = J(!1);
|
|
2719
|
-
let
|
|
2720
|
-
e[4] !== S || e[5] !== y || e[6] !== k ? (
|
|
2719
|
+
let F;
|
|
2720
|
+
e[4] !== S || e[5] !== y || e[6] !== k ? (F = (xe, _e, Le) => {
|
|
2721
2721
|
k(xe, Dn(_e, y, S), Le);
|
|
2722
|
-
}, e[4] = S, e[5] = y, e[6] = k, e[7] =
|
|
2723
|
-
const
|
|
2724
|
-
let
|
|
2725
|
-
e[8] !== u || e[9] !== l || e[10] !==
|
|
2722
|
+
}, e[4] = S, e[5] = y, e[6] = k, e[7] = F) : F = e[7];
|
|
2723
|
+
const U = F;
|
|
2724
|
+
let W;
|
|
2725
|
+
e[8] !== u || e[9] !== l || e[10] !== U || e[11] !== j ? (W = () => {
|
|
2726
2726
|
const xe = u ?? null;
|
|
2727
|
-
|
|
2727
|
+
U(l, xe !== null ? Number(xe) : null, {
|
|
2728
2728
|
shouldDirty: !0,
|
|
2729
2729
|
shouldValidate: j
|
|
2730
2730
|
});
|
|
2731
|
-
}, e[8] = u, e[9] = l, e[10] =
|
|
2732
|
-
const G =
|
|
2731
|
+
}, e[8] = u, e[9] = l, e[10] = U, e[11] = j, e[12] = W) : W = e[12];
|
|
2732
|
+
const G = W, q = m || I;
|
|
2733
2733
|
let Z, ne;
|
|
2734
2734
|
e[13] !== D ? (ne = () => {
|
|
2735
2735
|
D && H(!0);
|
|
@@ -2745,27 +2745,27 @@ const Ac = ({
|
|
|
2745
2745
|
}, e[16] = T, e[17] = S, e[18] = y, e[19] = C, e[20] = s, e[21] = k, e[22] = j, e[23] = re) : re = e[23];
|
|
2746
2746
|
const Q = re, ue = i ?? "", pe = o ?? i, Se = A ?? "";
|
|
2747
2747
|
let be;
|
|
2748
|
-
e[24] !== q || e[25] !==
|
|
2748
|
+
e[24] !== q || e[25] !== M || e[26] !== P || e[27] !== R || e[28] !== Q || e[29] !== f || e[30] !== te || e[31] !== S || e[32] !== y || e[33] !== a || e[34] !== g || e[35] !== pe || e[36] !== Se ? (be = /* @__PURE__ */ r(Pe.Control, { type: "number", placeholder: pe, size: a, name: M, value: Se, onChange: Q, onBlur: P, ref: R, isInvalid: te, hidden: f, disabled: q, className: "w-100 luminus-numeric-stepper", step: g, min: y, max: S }), e[24] = q, e[25] = M, e[26] = P, e[27] = R, e[28] = Q, e[29] = f, e[30] = te, e[31] = S, e[32] = y, e[33] = a, e[34] = g, e[35] = pe, e[36] = Se, e[37] = be) : be = e[37];
|
|
2749
2749
|
let ee;
|
|
2750
|
-
e[38] !== m || e[39] !== A || e[40] !== l || e[41] !==
|
|
2750
|
+
e[38] !== m || e[39] !== A || e[40] !== l || e[41] !== U || e[42] !== j || e[43] !== x ? (ee = !m && /* @__PURE__ */ r(ye, { size: "sm", onClick: (xe) => {
|
|
2751
2751
|
xe.preventDefault(), xe.stopPropagation();
|
|
2752
2752
|
const _e = (A ? Number(A) : 0) - x;
|
|
2753
|
-
|
|
2753
|
+
U(l, _e, {
|
|
2754
2754
|
shouldDirty: !0,
|
|
2755
2755
|
shouldValidate: j
|
|
2756
2756
|
});
|
|
2757
|
-
}, children: /* @__PURE__ */ r(To, {}) }), e[38] = m, e[39] = A, e[40] = l, e[41] =
|
|
2757
|
+
}, children: /* @__PURE__ */ r(To, {}) }), e[38] = m, e[39] = A, e[40] = l, e[41] = U, e[42] = j, e[43] = x, e[44] = ee) : ee = e[44];
|
|
2758
2758
|
let X;
|
|
2759
2759
|
e[45] !== ee ? (X = /* @__PURE__ */ r("div", { className: "stepper-icon left", children: ee }), e[45] = ee, e[46] = X) : X = e[46];
|
|
2760
2760
|
let K;
|
|
2761
|
-
e[47] !== m || e[48] !== A || e[49] !== l || e[50] !==
|
|
2761
|
+
e[47] !== m || e[48] !== A || e[49] !== l || e[50] !== U || e[51] !== j || e[52] !== x ? (K = !m && /* @__PURE__ */ r(ye, { size: "sm", onClick: (xe) => {
|
|
2762
2762
|
xe.preventDefault(), xe.stopPropagation();
|
|
2763
2763
|
const _e = (A ? Number(A) : 0) + x;
|
|
2764
|
-
|
|
2764
|
+
U(l, _e, {
|
|
2765
2765
|
shouldDirty: !0,
|
|
2766
2766
|
shouldValidate: j
|
|
2767
2767
|
});
|
|
2768
|
-
}, children: /* @__PURE__ */ r($o, {}) }), e[47] = m, e[48] = A, e[49] = l, e[50] =
|
|
2768
|
+
}, children: /* @__PURE__ */ r($o, {}) }), e[47] = m, e[48] = A, e[49] = l, e[50] = U, e[51] = j, e[52] = x, e[53] = K) : K = e[53];
|
|
2769
2769
|
let se;
|
|
2770
2770
|
e[54] !== K ? (se = /* @__PURE__ */ r("div", { className: "stepper-icon right", children: K }), e[54] = K, e[55] = se) : se = e[55];
|
|
2771
2771
|
let oe;
|
|
@@ -2831,36 +2831,36 @@ const Ac = ({
|
|
|
2831
2831
|
} = fn({
|
|
2832
2832
|
name: e,
|
|
2833
2833
|
control: k
|
|
2834
|
-
}), [R,
|
|
2835
|
-
const
|
|
2836
|
-
D(e,
|
|
2834
|
+
}), [R, M] = J(!1), B = ke(() => {
|
|
2835
|
+
const U = a ?? null;
|
|
2836
|
+
D(e, U !== null ? Number(U) : null, {
|
|
2837
2837
|
shouldDirty: !0,
|
|
2838
2838
|
shouldValidate: R
|
|
2839
2839
|
});
|
|
2840
2840
|
}, [a, D, e, R]), j = Re(() => u || I, [u, I]);
|
|
2841
2841
|
fe(() => {
|
|
2842
|
-
L &&
|
|
2842
|
+
L && M(!0);
|
|
2843
2843
|
}, [L]);
|
|
2844
2844
|
const H = _;
|
|
2845
2845
|
fe(() => {
|
|
2846
2846
|
b !== void 0 && H > b && D(e, b), w !== void 0 && H < w && D(e, w);
|
|
2847
2847
|
}, [e, H, b, w, D]);
|
|
2848
|
-
const
|
|
2849
|
-
return /* @__PURE__ */ E(n, { label: t ?? "", required: s, disabled: j, hidden: d, withoutLabel: c, isInvalid:
|
|
2848
|
+
const F = P !== void 0;
|
|
2849
|
+
return /* @__PURE__ */ E(n, { label: t ?? "", required: s, disabled: j, hidden: d, withoutLabel: c, isInvalid: F, hint: N, className: v, children: [
|
|
2850
2850
|
/* @__PURE__ */ E("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
2851
|
-
/* @__PURE__ */ r(ci, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: p, fixedDecimalScale: y, prefix: S, suffix: C, defaultValue: "", name: T, value: _ ?? "", placeholder: l ?? t, onFocus: (
|
|
2852
|
-
!g &&
|
|
2853
|
-
}, onChange: (
|
|
2851
|
+
/* @__PURE__ */ r(ci, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: p, fixedDecimalScale: y, prefix: S, suffix: C, defaultValue: "", name: T, value: _ ?? "", placeholder: l ?? t, onFocus: (U) => {
|
|
2852
|
+
!g && U.target.select();
|
|
2853
|
+
}, onChange: (U) => {
|
|
2854
2854
|
var q, Z;
|
|
2855
|
-
const
|
|
2855
|
+
const W = parseFloat(((Z = (q = U.target) == null ? void 0 : q.value) == null ? void 0 : Z.replaceAll(" ", "").replaceAll(",", ".")) ?? "0");
|
|
2856
2856
|
i && i.forEach((ne) => D(ne, null, {
|
|
2857
2857
|
shouldDirty: !0,
|
|
2858
2858
|
shouldValidate: R
|
|
2859
2859
|
}));
|
|
2860
|
-
const G = Number.isNaN(
|
|
2860
|
+
const G = Number.isNaN(W) ? null : Number(W);
|
|
2861
2861
|
$(G), x && x(G);
|
|
2862
2862
|
}, onBlur: () => O(), hidden: d, disabled: j, className: z("form-control text-end w-100", {
|
|
2863
|
-
"is-invalid":
|
|
2863
|
+
"is-invalid": F
|
|
2864
2864
|
}, {
|
|
2865
2865
|
[`form-control-${m}`]: m
|
|
2866
2866
|
}), step: f, getInputRef: A, min: w, max: b }),
|
|
@@ -3021,7 +3021,7 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
3021
3021
|
}
|
|
3022
3022
|
}, [n, s, u, p, m, a, y]), fe(() => {
|
|
3023
3023
|
var w, b, x, N, k;
|
|
3024
|
-
if (u && s) {
|
|
3024
|
+
if (u && s && e !== void 0) {
|
|
3025
3025
|
const D = (w = m.current) == null ? void 0 : w.flexmonster.getReport();
|
|
3026
3026
|
if (D === void 0 || typeof D == "string")
|
|
3027
3027
|
return;
|
|
@@ -3212,8 +3212,8 @@ n.label === "", Oi = (n, e) => n.hierarchy && n.hierarchy.uniqueName === e, Pi =
|
|
|
3212
3212
|
} = Vc(o);
|
|
3213
3213
|
let v;
|
|
3214
3214
|
e[0] !== s ? (v = (R) => {
|
|
3215
|
-
s((
|
|
3216
|
-
...
|
|
3215
|
+
s((M) => M === null ? null : {
|
|
3216
|
+
...M,
|
|
3217
3217
|
users: R.filter(Wc)
|
|
3218
3218
|
});
|
|
3219
3219
|
}, e[0] = s, e[1] = v) : v = e[1];
|
|
@@ -3347,47 +3347,49 @@ const Gc = (n, e) => {
|
|
|
3347
3347
|
reloadData: $
|
|
3348
3348
|
} = nt(`/reports/${t}`), {
|
|
3349
3349
|
mappings: O
|
|
3350
|
-
} = Gc(c, f);
|
|
3351
|
-
let
|
|
3352
|
-
e[5]
|
|
3353
|
-
const [T, P] = J(A);
|
|
3354
|
-
let R;
|
|
3355
|
-
e[6] !== N ? (R = (Ne) => {
|
|
3350
|
+
} = Gc(c, f), [A, T] = J(void 0);
|
|
3351
|
+
let P;
|
|
3352
|
+
e[5] !== N ? (P = (Ne) => {
|
|
3356
3353
|
const Ee = Ne.target.value, tt = Ee === "" ? null : Number(Ee);
|
|
3357
3354
|
N(tt);
|
|
3358
|
-
}, e[
|
|
3359
|
-
const
|
|
3360
|
-
let
|
|
3361
|
-
e[
|
|
3355
|
+
}, e[5] = N, e[6] = P) : P = e[6];
|
|
3356
|
+
const R = P;
|
|
3357
|
+
let M;
|
|
3358
|
+
e[7] !== $ || e[8] !== N ? (M = async (Ne) => {
|
|
3362
3359
|
await $(), N(Ne);
|
|
3363
|
-
}, e[
|
|
3364
|
-
const
|
|
3365
|
-
let
|
|
3366
|
-
e[
|
|
3367
|
-
enabled:
|
|
3360
|
+
}, e[7] = $, e[8] = N, e[9] = M) : M = e[9];
|
|
3361
|
+
const B = M, j = b !== null;
|
|
3362
|
+
let H;
|
|
3363
|
+
e[10] !== j ? (H = {
|
|
3364
|
+
enabled: j,
|
|
3368
3365
|
nullStateBeforeLoad: !1,
|
|
3369
3366
|
nullStateOnFail: !0
|
|
3370
|
-
}, e[
|
|
3367
|
+
}, e[10] = j, e[11] = H) : H = e[11];
|
|
3371
3368
|
const {
|
|
3372
|
-
data:
|
|
3373
|
-
setData: U
|
|
3374
|
-
|
|
3369
|
+
data: F,
|
|
3370
|
+
setData: U,
|
|
3371
|
+
isLoading: W
|
|
3372
|
+
} = nt(`/reports/version/${b}`, H);
|
|
3375
3373
|
let G, q;
|
|
3376
|
-
e[13] !==
|
|
3374
|
+
e[12] !== W || e[13] !== F ? (G = () => {
|
|
3377
3375
|
var Ee;
|
|
3378
|
-
if (
|
|
3379
|
-
|
|
3376
|
+
if (W) {
|
|
3377
|
+
T(void 0);
|
|
3380
3378
|
return;
|
|
3381
3379
|
}
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3380
|
+
if (F === null) {
|
|
3381
|
+
T({});
|
|
3382
|
+
return;
|
|
3383
|
+
}
|
|
3384
|
+
const Ne = Fc(F) ?? {};
|
|
3385
|
+
T(Ne), (Ee = L.current) == null || Ee.flexmonster.refresh();
|
|
3386
|
+
}, q = [F, W], e[12] = W, e[13] = F, e[14] = G, e[15] = q) : (G = e[14], q = e[15]), fe(G, q);
|
|
3385
3387
|
const {
|
|
3386
3388
|
save: Z,
|
|
3387
3389
|
saveAs: ne,
|
|
3388
3390
|
archive: te,
|
|
3389
3391
|
detach: re
|
|
3390
|
-
} = Hc(t, L, b,
|
|
3392
|
+
} = Hc(t, L, b, B);
|
|
3391
3393
|
let Q;
|
|
3392
3394
|
e[16] !== i ? (Q = i ?? [], e[16] = i, e[17] = Q) : Q = e[17];
|
|
3393
3395
|
const ue = O ?? void 0;
|
|
@@ -3398,30 +3400,30 @@ const Gc = (n, e) => {
|
|
|
3398
3400
|
}, e[18] = Q, e[19] = ue, e[20] = pe) : pe = e[20];
|
|
3399
3401
|
const Se = pe;
|
|
3400
3402
|
let be;
|
|
3401
|
-
e[21] !== y || e[22] !== Se || e[23] !== p.confirmRevertChanges || e[24] !==
|
|
3403
|
+
e[21] !== y || e[22] !== Se || e[23] !== p.confirmRevertChanges || e[24] !== A ? (be = async () => {
|
|
3402
3404
|
var Ee;
|
|
3403
3405
|
await y(p.confirmRevertChanges) && ((Ee = L.current) == null || Ee.flexmonster.setReport({
|
|
3404
3406
|
dataSource: Se,
|
|
3405
|
-
...
|
|
3407
|
+
...A
|
|
3406
3408
|
}));
|
|
3407
|
-
}, e[21] = y, e[22] = Se, e[23] = p.confirmRevertChanges, e[24] =
|
|
3409
|
+
}, e[21] = y, e[22] = Se, e[23] = p.confirmRevertChanges, e[24] = A, e[25] = be) : be = e[25];
|
|
3408
3410
|
const ee = be;
|
|
3409
3411
|
let X;
|
|
3410
|
-
e[26] !== (
|
|
3412
|
+
e[26] !== (F == null ? void 0 : F.ownerId) || e[27] !== I.personalNumber ? (X = () => (F == null ? void 0 : F.ownerId) === I.personalNumber, e[26] = F == null ? void 0 : F.ownerId, e[27] = I.personalNumber, e[28] = X) : X = e[28], F == null || F.ownerId;
|
|
3411
3413
|
const K = X();
|
|
3412
|
-
|
|
3414
|
+
F == null || F.users;
|
|
3413
3415
|
let se;
|
|
3414
|
-
e[29] !== (
|
|
3416
|
+
e[29] !== (F == null ? void 0 : F.users) || e[30] !== I.personalNumber ? (se = (Ie = F == null ? void 0 : F.users) == null ? void 0 : Ie.some((Ne) => Ne.id === I.personalNumber && !Ne.isReportOwner), e[29] = F == null ? void 0 : F.users, e[30] = I.personalNumber, e[31] = se) : se = e[31];
|
|
3415
3417
|
const oe = se;
|
|
3416
3418
|
let ie;
|
|
3417
|
-
e[32] !== te || e[33] !== y || e[34] !== $ || e[35] !== (
|
|
3418
|
-
await y(p.confirmDelete(
|
|
3419
|
-
}, e[32] = te, e[33] = y, e[34] = $, e[35] =
|
|
3419
|
+
e[32] !== te || e[33] !== y || e[34] !== $ || e[35] !== (F == null ? void 0 : F.name) || e[36] !== p || e[37] !== N ? (ie = async () => {
|
|
3420
|
+
await y(p.confirmDelete(F == null ? void 0 : F.name)) && (await te(), N(null), await $());
|
|
3421
|
+
}, e[32] = te, e[33] = y, e[34] = $, e[35] = F == null ? void 0 : F.name, e[36] = p, e[37] = N, e[38] = ie) : ie = e[38], F == null || F.name;
|
|
3420
3422
|
const ae = ie;
|
|
3421
3423
|
let ge;
|
|
3422
|
-
e[39] !== y || e[40] !== re || e[41] !== $ || e[42] !== (
|
|
3423
|
-
await y(p.confirmDetach(
|
|
3424
|
-
}, e[39] = y, e[40] = re, e[41] = $, e[42] =
|
|
3424
|
+
e[39] !== y || e[40] !== re || e[41] !== $ || e[42] !== (F == null ? void 0 : F.name) || e[43] !== p || e[44] !== N ? (ge = async () => {
|
|
3425
|
+
await y(p.confirmDetach(F == null ? void 0 : F.name)) && (await re(), N(null), await $());
|
|
3426
|
+
}, e[39] = y, e[40] = re, e[41] = $, e[42] = F == null ? void 0 : F.name, e[43] = p, e[44] = N, e[45] = ge) : ge = e[45], F == null || F.name;
|
|
3425
3427
|
const xe = ge;
|
|
3426
3428
|
let _e;
|
|
3427
3429
|
e[46] !== (_ == null ? void 0 : _.reportVersions) || e[47] !== b || e[48] !== N ? (_e = () => {
|
|
@@ -3447,14 +3449,14 @@ const Gc = (n, e) => {
|
|
|
3447
3449
|
let Te;
|
|
3448
3450
|
e[70] !== p.versionSelectSharedWithYou || e[71] !== De ? (Te = /* @__PURE__ */ r("optgroup", { label: p.versionSelectSharedWithYou, children: De }), e[70] = p.versionSelectSharedWithYou, e[71] = De, e[72] = Te) : Te = e[72];
|
|
3449
3451
|
let qe;
|
|
3450
|
-
e[73] !==
|
|
3452
|
+
e[73] !== R || e[74] !== Ge || e[75] !== ve || e[76] !== we || e[77] !== Te ? (qe = /* @__PURE__ */ E(wr, { size: "sm", value: Ge, onChange: R, children: [
|
|
3451
3453
|
ve,
|
|
3452
3454
|
we,
|
|
3453
3455
|
Te
|
|
3454
|
-
] }), e[73] =
|
|
3456
|
+
] }), e[73] = R, e[74] = Ge, e[75] = ve, e[76] = we, e[77] = Te, e[78] = qe) : qe = e[78];
|
|
3455
3457
|
let Ve;
|
|
3456
3458
|
e[79] === Symbol.for("react.memo_cache_sentinel") ? (Ve = /* @__PURE__ */ r(xr, {}), e[79] = Ve) : Ve = e[79];
|
|
3457
|
-
const Ke = b === null || (
|
|
3459
|
+
const Ke = b === null || (F == null ? void 0 : F.isSystem) || !K;
|
|
3458
3460
|
let Ue;
|
|
3459
3461
|
e[80] !== p.save || e[81] !== Z || e[82] !== Ke ? (Ue = /* @__PURE__ */ r(kt, { icon: Ve, onClick: Z, disabled: Ke, children: p.save }), e[80] = p.save, e[81] = Z, e[82] = Ke, e[83] = Ue) : Ue = e[83];
|
|
3460
3462
|
let Qe;
|
|
@@ -3467,13 +3469,13 @@ const Gc = (n, e) => {
|
|
|
3467
3469
|
e[89] !== ee || e[90] !== p.revertChanges ? (ze = /* @__PURE__ */ r(dt, { onClick: ee, children: p.revertChanges }), e[89] = ee, e[90] = p.revertChanges, e[91] = ze) : ze = e[91];
|
|
3468
3470
|
let me;
|
|
3469
3471
|
e[92] === Symbol.for("react.memo_cache_sentinel") ? (me = () => D(!0), e[92] = me) : me = e[92];
|
|
3470
|
-
const Oe = !K || (
|
|
3472
|
+
const Oe = !K || (F == null ? void 0 : F.isSystem);
|
|
3471
3473
|
let He;
|
|
3472
3474
|
e[93] !== p.share || e[94] !== Oe ? (He = /* @__PURE__ */ r(dt, { onClick: me, disabled: Oe, children: p.share }), e[93] = p.share, e[94] = Oe, e[95] = He) : He = e[95];
|
|
3473
3475
|
let We;
|
|
3474
|
-
e[96] !== ae || e[97] !== K || e[98] !== (
|
|
3476
|
+
e[96] !== ae || e[97] !== K || e[98] !== (F == null ? void 0 : F.isSystem) || e[99] !== p.delete ? (We = K && !(F != null && F.isSystem) ? /* @__PURE__ */ r(dt, { color: "danger", onClick: ae, children: p.delete }) : null, e[96] = ae, e[97] = K, e[98] = F == null ? void 0 : F.isSystem, e[99] = p.delete, e[100] = We) : We = e[100];
|
|
3475
3477
|
let lt;
|
|
3476
|
-
e[101] !== xe || e[102] !== oe || e[103] !== (
|
|
3478
|
+
e[101] !== xe || e[102] !== oe || e[103] !== (F == null ? void 0 : F.isSystem) || e[104] !== p.detach ? (lt = oe && !(F != null && F.isSystem) ? /* @__PURE__ */ r(dt, { color: "danger", onClick: xe, children: p.detach }) : null, e[101] = xe, e[102] = oe, e[103] = F == null ? void 0 : F.isSystem, e[104] = p.detach, e[105] = lt) : lt = e[105];
|
|
3477
3479
|
let ft;
|
|
3478
3480
|
e[106] !== ze || e[107] !== He || e[108] !== We || e[109] !== lt ? (ft = /* @__PURE__ */ E(qt, { toggle: je, children: [
|
|
3479
3481
|
ze,
|
|
@@ -3499,13 +3501,13 @@ const Gc = (n, e) => {
|
|
|
3499
3501
|
e[120] !== $t ? (pt = z("h-100 w-100", $t), e[120] = $t, e[121] = pt) : pt = e[121];
|
|
3500
3502
|
const Lt = Se.data && Se.data.length > 0;
|
|
3501
3503
|
let ht;
|
|
3502
|
-
e[122] !== Se || e[123] !== m || e[124] !== d || e[125] !== s || e[126] !== g || e[127] !==
|
|
3504
|
+
e[122] !== Se || e[123] !== m || e[124] !== d || e[125] !== s || e[126] !== g || e[127] !== A || e[128] !== Lt ? (ht = /* @__PURE__ */ r(zc, { dataSource: Se, settings: A, pivotRef: L, enabled: Lt, roomPasportization: g, localization: s, licenseKey: d, hyperlinkColumn: m }), e[122] = Se, e[123] = m, e[124] = d, e[125] = s, e[126] = g, e[127] = A, e[128] = Lt, e[129] = ht) : ht = e[129];
|
|
3503
3505
|
let gt;
|
|
3504
3506
|
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];
|
|
3505
3507
|
let vt;
|
|
3506
3508
|
e[133] !== mt || e[134] !== gt ? (vt = /* @__PURE__ */ r(Ft, { variant: "fullScreen", title: mt, children: gt }), e[133] = mt, e[134] = gt, e[135] = vt) : vt = e[135];
|
|
3507
3509
|
let yt;
|
|
3508
|
-
e[136] !== u || e[137] !== k || e[138] !==
|
|
3510
|
+
e[136] !== u || e[137] !== k || e[138] !== F || e[139] !== U ? (yt = F !== null ? /* @__PURE__ */ r(Uc, { isOpen: k, onHide: () => D(!1), usersData: F.users ?? null, setReportVersion: U, reportVersionId: F == null ? void 0 : F.reportVersionId, EmployeePicker: u }) : null, e[136] = u, e[137] = k, e[138] = F, e[139] = U, e[140] = yt) : yt = e[140];
|
|
3509
3511
|
let Pt;
|
|
3510
3512
|
return e[141] !== vt || e[142] !== yt ? (Pt = /* @__PURE__ */ E(he, { children: [
|
|
3511
3513
|
vt,
|
|
@@ -3712,7 +3714,7 @@ const Th = (n) => {
|
|
|
3712
3714
|
let D;
|
|
3713
3715
|
e[7] !== k || e[8] !== h ? (D = (P) => {
|
|
3714
3716
|
k(P).then((R) => {
|
|
3715
|
-
R && g(h.filter((
|
|
3717
|
+
R && g(h.filter((M) => M.id !== P));
|
|
3716
3718
|
});
|
|
3717
3719
|
}, e[7] = k, e[8] = h, e[9] = D) : D = e[9];
|
|
3718
3720
|
const L = D;
|
|
@@ -4551,7 +4553,7 @@ const jd = (n) => {
|
|
|
4551
4553
|
const [T, P] = On("notif-action-id", A);
|
|
4552
4554
|
let R;
|
|
4553
4555
|
e[11] === Symbol.for("react.memo_cache_sentinel") ? (R = [], e[11] = R) : R = e[11];
|
|
4554
|
-
const [
|
|
4556
|
+
const [M, B] = J(R);
|
|
4555
4557
|
let j;
|
|
4556
4558
|
e[12] !== o || e[13] !== T || e[14] !== p ? (j = () => {
|
|
4557
4559
|
T === null || p === null || o(T, p).then((me) => {
|
|
@@ -4562,15 +4564,15 @@ const jd = (n) => {
|
|
|
4562
4564
|
}, e[12] = o, e[13] = T, e[14] = p, e[15] = j) : j = e[15];
|
|
4563
4565
|
let H;
|
|
4564
4566
|
e[16] !== i || e[17] !== o || e[18] !== T || e[19] !== x || e[20] !== p ? (H = [i, o, T, x, p], e[16] = i, e[17] = o, e[18] = T, e[19] = x, e[20] = p, e[21] = H) : H = e[21], fe(j, H);
|
|
4565
|
-
let
|
|
4566
|
-
e[22] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
4567
|
-
const [
|
|
4567
|
+
let F;
|
|
4568
|
+
e[22] === Symbol.for("react.memo_cache_sentinel") ? (F = [], e[22] = F) : F = e[22];
|
|
4569
|
+
const [U, W] = J(F);
|
|
4568
4570
|
let G, q;
|
|
4569
4571
|
e[23] !== a || e[24] !== T ? (G = () => {
|
|
4570
4572
|
T !== null && a(T).then((me) => {
|
|
4571
|
-
|
|
4573
|
+
W(me);
|
|
4572
4574
|
}).catch((me) => {
|
|
4573
|
-
console.log(me),
|
|
4575
|
+
console.log(me), W([]);
|
|
4574
4576
|
});
|
|
4575
4577
|
}, q = [a, T], e[23] = a, e[24] = T, e[25] = G, e[26] = q) : (G = e[25], q = e[26]), fe(G, q);
|
|
4576
4578
|
let Z;
|
|
@@ -4654,7 +4656,7 @@ const jd = (n) => {
|
|
|
4654
4656
|
Ae
|
|
4655
4657
|
] }), e[77] = ge, e[78] = Ae, e[79] = Me) : Me = e[79];
|
|
4656
4658
|
let Ge;
|
|
4657
|
-
e[80] !==
|
|
4659
|
+
e[80] !== U ? (Ge = U ?? [], e[80] = U, e[81] = Ge) : Ge = e[81];
|
|
4658
4660
|
let ce;
|
|
4659
4661
|
e[82] === Symbol.for("react.memo_cache_sentinel") ? (ce = (me) => {
|
|
4660
4662
|
y(me), C(null);
|
|
@@ -4662,7 +4664,7 @@ const jd = (n) => {
|
|
|
4662
4664
|
let ve;
|
|
4663
4665
|
e[83] !== c || e[84] !== ne || e[85] !== re || e[86] !== Se || e[87] !== p || e[88] !== Ge ? (ve = /* @__PURE__ */ r("div", { className: "h-75 w-25 overflow-hidden", children: /* @__PURE__ */ r(Rd, { templates: ne, roles: Ge, onAddNotifTarget: re, onRemoveNotifTarget: Se, selectedTemplateId: p, setSelectedTemplateId: ce, EmployeePicker: c }) }), e[83] = c, e[84] = ne, e[85] = re, e[86] = Se, e[87] = p, e[88] = Ge, e[89] = ve) : ve = e[89];
|
|
4664
4666
|
let Ce;
|
|
4665
|
-
e[90] !== f || e[91] !==
|
|
4667
|
+
e[90] !== f || e[91] !== M || e[92] !== p ? (Ce = p && /* @__PURE__ */ r(Md, { data: M ?? [], onClick: (me) => C((M == null ? void 0 : M.find((Oe) => Oe.id === me)) ?? null), BnfTableComponent: f }), e[90] = f, e[91] = M, e[92] = p, e[93] = Ce) : Ce = e[93];
|
|
4666
4668
|
let we;
|
|
4667
4669
|
e[94] !== Ce ? (we = /* @__PURE__ */ r("div", { className: "w-25 h-75 overflow-hidden", children: Ce }), e[94] = Ce, e[95] = we) : we = e[95];
|
|
4668
4670
|
let De;
|
|
@@ -5188,8 +5190,8 @@ const Mh = (n) => {
|
|
|
5188
5190
|
Ie !== null && h(() => Math.max(1, Math.min(Ie, T)));
|
|
5189
5191
|
}, e[17] = T, e[18] = P) : P = e[18];
|
|
5190
5192
|
const R = P;
|
|
5191
|
-
let
|
|
5192
|
-
e[19] !== d || e[20] !== y || e[21] !== x ? (
|
|
5193
|
+
let M;
|
|
5194
|
+
e[19] !== d || e[20] !== y || e[21] !== x ? (M = async () => {
|
|
5193
5195
|
if (y === null)
|
|
5194
5196
|
return;
|
|
5195
5197
|
const Ie = Array.from(x).map((Ee) => (async () => {
|
|
@@ -5199,19 +5201,19 @@ const Mh = (n) => {
|
|
|
5199
5201
|
return [Ee, tt.data];
|
|
5200
5202
|
})()), Ne = await Promise.allSettled(Ie);
|
|
5201
5203
|
p(new Map(Ne.map(mu)));
|
|
5202
|
-
}, e[19] = d, e[20] = y, e[21] = x, e[22] =
|
|
5203
|
-
const B =
|
|
5204
|
+
}, e[19] = d, e[20] = y, e[21] = x, e[22] = M) : M = e[22];
|
|
5205
|
+
const B = M;
|
|
5204
5206
|
let j;
|
|
5205
5207
|
e[23] !== B ? (j = async () => {
|
|
5206
5208
|
B();
|
|
5207
5209
|
}, e[23] = B, e[24] = j) : j = e[24];
|
|
5208
|
-
const H = j,
|
|
5209
|
-
let
|
|
5210
|
-
e[25] !== R || e[26] !== m ? (
|
|
5210
|
+
const H = j, F = I.length > 0, U = x.size + 1 + (F ? 1 : 0);
|
|
5211
|
+
let W;
|
|
5212
|
+
e[25] !== R || e[26] !== m ? (W = () => {
|
|
5211
5213
|
R(m);
|
|
5212
|
-
}, e[25] = R, e[26] = m, e[27] =
|
|
5214
|
+
}, e[25] = R, e[26] = m, e[27] = W) : W = e[27];
|
|
5213
5215
|
let G;
|
|
5214
|
-
e[28] !== R || e[29] !== m || e[30] !== A ? (G = [R, m, A], e[28] = R, e[29] = m, e[30] = A, e[31] = G) : G = e[31], fe(
|
|
5216
|
+
e[28] !== R || e[29] !== m || e[30] !== A ? (G = [R, m, A], e[28] = R, e[29] = m, e[30] = A, e[31] = G) : G = e[31], fe(W, G);
|
|
5215
5217
|
let q, Z;
|
|
5216
5218
|
if (e[32] !== B ? (q = () => {
|
|
5217
5219
|
B();
|
|
@@ -5231,12 +5233,12 @@ const Mh = (n) => {
|
|
|
5231
5233
|
}
|
|
5232
5234
|
let ne;
|
|
5233
5235
|
e[43] !== f.localizationSettings ? (ne = /* @__PURE__ */ r("div", { className: "d-flex gap-4", children: /* @__PURE__ */ r(Y, { variant: "h3", children: f.localizationSettings }) }), e[43] = f.localizationSettings, e[44] = ne) : ne = e[44];
|
|
5234
|
-
const te = f.localizationSettings, re =
|
|
5236
|
+
const te = f.localizationSettings, re = F ? 1 : 0;
|
|
5235
5237
|
let Q;
|
|
5236
|
-
e[45] !== re || e[46] !==
|
|
5237
|
-
"--keys-table-columns":
|
|
5238
|
+
e[45] !== re || e[46] !== U ? (Q = {
|
|
5239
|
+
"--keys-table-columns": U,
|
|
5238
5240
|
"--adding-column": re
|
|
5239
|
-
}, e[45] = re, e[46] =
|
|
5241
|
+
}, e[45] = re, e[46] = U, e[47] = Q) : Q = e[47];
|
|
5240
5242
|
let ue;
|
|
5241
5243
|
e[48] === Symbol.for("react.memo_cache_sentinel") ? (ue = z(it.tableFullWidth, "d-flex align-items-center justify-content-between gap-2 px-2 mt-1"), e[48] = ue) : ue = e[48];
|
|
5242
5244
|
let pe;
|
|
@@ -5293,7 +5295,7 @@ const Mh = (n) => {
|
|
|
5293
5295
|
let we;
|
|
5294
5296
|
e[91] !== t || e[92] !== f.language || e[93] !== x || e[94] !== Ce ? (we = Ce.map((Ie, Ne) => /* @__PURE__ */ r(It, { options: t.filter((Ee) => Ee.id === Ie || !x.has(Ee.id)), value: Ie, onChange: (Ee) => D((tt) => Ee === null ? (tt.delete(Ie), new Set(tt)) : (typeof Ee == "string" && (tt.delete(Ie), tt.add(Ee)), new Set(tt))), size: "sm", label: `${f.language} ${Ne + 1}`, withoutLabel: !0, InputContainer: Xe, className: z(it.lngSelect) }, Ie)), e[91] = t, e[92] = f.language, e[93] = x, e[94] = Ce, e[95] = we) : we = e[95];
|
|
5295
5297
|
let De;
|
|
5296
|
-
e[96] !== I || e[97] !==
|
|
5298
|
+
e[96] !== I || e[97] !== F || e[98] !== f.addLanguage ? (De = F ? /* @__PURE__ */ r(It, { options: I, value: null, onChange: (Ie) => D((Ne) => (typeof Ie == "string" && Ne.add(Ie), new Set(Ne))), size: "sm", label: f.addLanguage, InputContainer: Xe, className: z(it.lngSelect, it.addLng) }) : null, e[96] = I, e[97] = F, e[98] = f.addLanguage, e[99] = De) : De = e[99];
|
|
5297
5299
|
let Te;
|
|
5298
5300
|
e[100] !== ve || e[101] !== we || e[102] !== De ? (Te = /* @__PURE__ */ E("div", { className: ce, children: [
|
|
5299
5301
|
ve,
|
|
@@ -5612,30 +5614,30 @@ const Bi = 3, Sa = (n, e, t) => {
|
|
|
5612
5614
|
const P = f.searchPlaceholder;
|
|
5613
5615
|
let R;
|
|
5614
5616
|
e[24] === Symbol.for("react.memo_cache_sentinel") ? (R = z("luminus-app-search-input", Zt.input), e[24] = R) : R = e[24];
|
|
5615
|
-
let
|
|
5616
|
-
e[25] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
5617
|
+
let M;
|
|
5618
|
+
e[25] === Symbol.for("react.memo_cache_sentinel") ? (M = (ne) => {
|
|
5617
5619
|
var te;
|
|
5618
5620
|
return y(((te = ne.target) == null ? void 0 : te.value) ?? "");
|
|
5619
|
-
}, e[25] =
|
|
5621
|
+
}, e[25] = M) : M = e[25];
|
|
5620
5622
|
let B;
|
|
5621
5623
|
e[26] !== b.length ? (B = () => b.length > 0 && N(!0), e[26] = b.length, e[27] = B) : B = e[27];
|
|
5622
5624
|
let j;
|
|
5623
|
-
e[28] !== f.searchPlaceholder || e[29] !== p || e[30] !== B ? (j = /* @__PURE__ */ r(Pe.Control, { ref: L, placeholder: P, type: "text", size: "sm", className: R, value: p, onChange:
|
|
5625
|
+
e[28] !== f.searchPlaceholder || e[29] !== p || e[30] !== B ? (j = /* @__PURE__ */ r(Pe.Control, { ref: L, placeholder: P, type: "text", size: "sm", className: R, value: p, onChange: M, onFocus: B }), e[28] = f.searchPlaceholder, e[29] = p, e[30] = B, e[31] = j) : j = e[31];
|
|
5624
5626
|
let H;
|
|
5625
5627
|
e[32] === Symbol.for("react.memo_cache_sentinel") ? (H = z("p-0 rounded", Zt.inputGroupText, Zt.right), e[32] = H) : H = e[32];
|
|
5626
|
-
let
|
|
5627
|
-
e[33] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
5628
|
-
let M;
|
|
5629
|
-
e[34] === Symbol.for("react.memo_cache_sentinel") ? (M = () => N(!1), e[34] = M) : M = e[34];
|
|
5628
|
+
let F;
|
|
5629
|
+
e[33] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ r(Jn.Text, { className: H, children: /* @__PURE__ */ r("button", { type: "submit", className: z("text-primary", Zt.submitButton), children: /* @__PURE__ */ r(Tr, {}) }) }), e[33] = F) : F = e[33];
|
|
5630
5630
|
let U;
|
|
5631
|
-
e[
|
|
5631
|
+
e[34] === Symbol.for("react.memo_cache_sentinel") ? (U = () => N(!1), e[34] = U) : U = e[34];
|
|
5632
|
+
let W;
|
|
5633
|
+
e[35] !== S || e[36] !== w || e[37] !== b || e[38] !== t || e[39] !== x ? (W = /* @__PURE__ */ r($u, { query: S, searchTypes: t, show: x, onCancel: U, groups: b, isLoading: w }), e[35] = S, e[36] = w, e[37] = b, e[38] = t, e[39] = x, e[40] = W) : W = e[40];
|
|
5632
5634
|
let G;
|
|
5633
|
-
e[41] !== T || e[42] !== j || e[43] !==
|
|
5635
|
+
e[41] !== T || e[42] !== j || e[43] !== W || e[44] !== O ? (G = /* @__PURE__ */ E(Jn, { className: O, children: [
|
|
5634
5636
|
T,
|
|
5635
5637
|
j,
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
] }), e[41] = T, e[42] = j, e[43] =
|
|
5638
|
+
F,
|
|
5639
|
+
W
|
|
5640
|
+
] }), e[41] = T, e[42] = j, e[43] = W, e[44] = O, e[45] = G) : G = e[45];
|
|
5639
5641
|
let q;
|
|
5640
5642
|
return e[46] !== G || e[47] !== $ ? (q = /* @__PURE__ */ r(Pe, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: $, children: G }), e[46] = G, e[47] = $, e[48] = q) : q = e[48], q;
|
|
5641
5643
|
}, Lu = (n) => {
|
|
@@ -5785,11 +5787,11 @@ const zh = () => {
|
|
|
5785
5787
|
] }), e[40] = I, e[41] = A, e[42] = T, e[43] = P) : P = e[43];
|
|
5786
5788
|
let R;
|
|
5787
5789
|
e[44] !== S || e[45] !== P ? (R = /* @__PURE__ */ r(ml, { ...S, children: P }), e[44] = S, e[45] = P, e[46] = R) : R = e[46];
|
|
5788
|
-
let
|
|
5789
|
-
return e[47] !== t || e[48] !== L || e[49] !== R || e[50] !== D ? (
|
|
5790
|
+
let M;
|
|
5791
|
+
return e[47] !== t || e[48] !== L || e[49] !== R || e[50] !== D ? (M = /* @__PURE__ */ E($e, { show: t, onHide: D, children: [
|
|
5790
5792
|
L,
|
|
5791
5793
|
R
|
|
5792
|
-
] }), e[47] = t, e[48] = L, e[49] = R, e[50] = D, e[51] =
|
|
5794
|
+
] }), e[47] = t, e[48] = L, e[49] = R, e[50] = D, e[51] = M) : M = e[51], M;
|
|
5793
5795
|
};
|
|
5794
5796
|
function Pu() {
|
|
5795
5797
|
return !0;
|
|
@@ -5826,16 +5828,16 @@ const Yn = {
|
|
|
5826
5828
|
reloadData: b
|
|
5827
5829
|
} = nt(a);
|
|
5828
5830
|
let x;
|
|
5829
|
-
e[0] !== d || e[1] !== h || e[2] !== g || e[3] !== v ? (x = async (
|
|
5831
|
+
e[0] !== d || e[1] !== h || e[2] !== g || e[3] !== v ? (x = async (M) => (g("localStorageSettingDelete"), h.delete(`${d}/${M}`).then(Ru).catch(Mu).finally(() => v("localStorageSettingDelete"))), e[0] = d, e[1] = h, e[2] = g, e[3] = v, e[4] = x) : x = e[4];
|
|
5830
5832
|
const N = x;
|
|
5831
5833
|
let k;
|
|
5832
|
-
e[5] !== p || e[6] !== m || e[7] !== N || e[8] !== w || e[9] !== f.localStorageDeleteBackupConfirm || e[10] !== f.localStorageDeleteBackupSuccess ? (k = async (
|
|
5833
|
-
await m(f.localStorageDeleteBackupConfirm) && await N(
|
|
5834
|
+
e[5] !== p || e[6] !== m || e[7] !== N || e[8] !== w || e[9] !== f.localStorageDeleteBackupConfirm || e[10] !== f.localStorageDeleteBackupSuccess ? (k = async (M) => {
|
|
5835
|
+
await m(f.localStorageDeleteBackupConfirm) && await N(M) && (p(f.localStorageDeleteBackupSuccess, "success"), w((B) => (B == null ? void 0 : B.filter((j) => j.id !== M)) ?? null));
|
|
5834
5836
|
}, e[5] = p, e[6] = m, e[7] = N, e[8] = w, e[9] = f.localStorageDeleteBackupConfirm, e[10] = f.localStorageDeleteBackupSuccess, e[11] = k) : k = e[11];
|
|
5835
5837
|
const D = k;
|
|
5836
5838
|
let L;
|
|
5837
|
-
e[12] !== p || e[13] !== m || e[14] !== f.localStorageLoadBackup || e[15] !== f.localStorageLoadBackupError || e[16] !== f.localStorageLoadBackupSuccess ? (L = async (
|
|
5838
|
-
|
|
5839
|
+
e[12] !== p || e[13] !== m || e[14] !== f.localStorageLoadBackup || e[15] !== f.localStorageLoadBackupError || e[16] !== f.localStorageLoadBackupSuccess ? (L = async (M) => {
|
|
5840
|
+
M.setting && await m(f.localStorageLoadBackup) && (ys(M.setting) ? p(f.localStorageLoadBackupSuccess, "success") : p(f.localStorageLoadBackupError, "danger"));
|
|
5839
5841
|
}, e[12] = p, e[13] = m, e[14] = f.localStorageLoadBackup, e[15] = f.localStorageLoadBackupError, e[16] = f.localStorageLoadBackupSuccess, e[17] = L) : L = e[17];
|
|
5840
5842
|
const I = L;
|
|
5841
5843
|
let _;
|
|
@@ -5843,12 +5845,12 @@ const Yn = {
|
|
|
5843
5845
|
let $;
|
|
5844
5846
|
e[19] !== f.localStorageCreateBackup ? ($ = /* @__PURE__ */ r(kt, { className: "mb-2", onClick: _, children: f.localStorageCreateBackup }), e[19] = f.localStorageCreateBackup, e[20] = $) : $ = e[20];
|
|
5845
5847
|
let O;
|
|
5846
|
-
e[21] !== u || e[22] !== C || e[23] !== D || e[24] !== I || e[25] !== f.localStorageNoBackups ? (O = C && C.length > 0 ? /* @__PURE__ */ r("div", { className: "list-group", children: C.map((
|
|
5847
|
-
/* @__PURE__ */ r(Y, { variant: "body2", children:
|
|
5848
|
+
e[21] !== u || e[22] !== C || e[23] !== D || e[24] !== I || e[25] !== f.localStorageNoBackups ? (O = C && C.length > 0 ? /* @__PURE__ */ r("div", { className: "list-group", children: C.map((M, B) => /* @__PURE__ */ E("div", { role: "button", className: "list-group-item list-group-item-action d-flex justify-content-between align-items-center", onClick: () => I(M), children: [
|
|
5849
|
+
/* @__PURE__ */ r(Y, { variant: "body2", children: M.name }),
|
|
5848
5850
|
/* @__PURE__ */ E("div", { className: "d-flex align-items-center gap-3", children: [
|
|
5849
|
-
/* @__PURE__ */ r(Y, { variant: "body2", className: "text-muted", children:
|
|
5851
|
+
/* @__PURE__ */ r(Y, { variant: "body2", className: "text-muted", children: M.date ? Sn(M.date) : "" }),
|
|
5850
5852
|
/* @__PURE__ */ r(ye, { size: "sm", color: "danger", onClick: (j) => {
|
|
5851
|
-
j.stopPropagation(), D(
|
|
5853
|
+
j.stopPropagation(), D(M.id);
|
|
5852
5854
|
}, children: /* @__PURE__ */ r(u, { icon: "delete" }) })
|
|
5853
5855
|
] })
|
|
5854
5856
|
] }, B)) }) : C ? /* @__PURE__ */ r(wt, { variant: "secondary", size: "sm", children: f.localStorageNoBackups }) : null, e[21] = u, e[22] = C, e[23] = D, e[24] = I, e[25] = f.localStorageNoBackups, e[26] = O) : O = e[26];
|
|
@@ -7640,13 +7642,13 @@ const no = (n) => {
|
|
|
7640
7642
|
getData: (P) => {
|
|
7641
7643
|
const {
|
|
7642
7644
|
input: R,
|
|
7643
|
-
element:
|
|
7645
|
+
element: M
|
|
7644
7646
|
} = P;
|
|
7645
7647
|
return Kf({
|
|
7646
7648
|
photoId: t.id
|
|
7647
7649
|
}, {
|
|
7648
7650
|
input: R,
|
|
7649
|
-
element:
|
|
7651
|
+
element: M,
|
|
7650
7652
|
allowedEdges: ["left", "right"]
|
|
7651
7653
|
});
|
|
7652
7654
|
},
|
|
@@ -7658,12 +7660,12 @@ const no = (n) => {
|
|
|
7658
7660
|
onDrag: (P) => {
|
|
7659
7661
|
const {
|
|
7660
7662
|
self: R,
|
|
7661
|
-
source:
|
|
7663
|
+
source: M
|
|
7662
7664
|
} = P, B = Da(R.data);
|
|
7663
7665
|
B && h({
|
|
7664
7666
|
type: "is-over",
|
|
7665
7667
|
closestEdge: B,
|
|
7666
|
-
draggedWidth:
|
|
7668
|
+
draggedWidth: M.data.width
|
|
7667
7669
|
});
|
|
7668
7670
|
},
|
|
7669
7671
|
onDragLeave: () => {
|
|
@@ -7830,24 +7832,24 @@ const M1 = (n) => {
|
|
|
7830
7832
|
e[21] !== N ? (R = (Z) => {
|
|
7831
7833
|
Z.velocity > 0.8 && N && b(H1);
|
|
7832
7834
|
}, e[21] = N, e[22] = R) : R = e[22];
|
|
7833
|
-
let
|
|
7834
|
-
e[23] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
7835
|
+
let M;
|
|
7836
|
+
e[23] === Symbol.for("react.memo_cache_sentinel") ? (M = {
|
|
7835
7837
|
delta: 100
|
|
7836
|
-
}, e[23] =
|
|
7838
|
+
}, e[23] = M) : M = e[23];
|
|
7837
7839
|
let B;
|
|
7838
7840
|
e[24] !== P || e[25] !== R ? (B = {
|
|
7839
7841
|
onSwipedLeft: P,
|
|
7840
7842
|
onSwipedRight: R,
|
|
7841
|
-
...
|
|
7843
|
+
...M
|
|
7842
7844
|
}, e[24] = P, e[25] = R, e[26] = B) : B = e[26];
|
|
7843
7845
|
const j = Fr(B), H = Hl;
|
|
7844
|
-
let
|
|
7845
|
-
e[27] !== l || e[28] !== t ? (
|
|
7846
|
-
let
|
|
7847
|
-
e[30] !== t ? (
|
|
7846
|
+
let F;
|
|
7847
|
+
e[27] !== l || e[28] !== t ? (F = /* @__PURE__ */ r(Br, { show: t, onClick: l }), e[27] = l, e[28] = t, e[29] = F) : F = e[29];
|
|
7848
|
+
let U;
|
|
7849
|
+
e[30] !== t ? (U = z("luminus-lightbox rounded shadow", ot.lightbox, {
|
|
7848
7850
|
[ot.show]: t
|
|
7849
|
-
}), e[30] = t, e[31] =
|
|
7850
|
-
const
|
|
7851
|
+
}), e[30] = t, e[31] = U) : U = e[31];
|
|
7852
|
+
const W = t && /* @__PURE__ */ E(he, { children: [
|
|
7851
7853
|
/* @__PURE__ */ E("div", { className: ot.header, children: [
|
|
7852
7854
|
/* @__PURE__ */ E("div", { className: z("rounded", ot.photoActions), children: [
|
|
7853
7855
|
d && /* @__PURE__ */ r(ra, { accept: ".jpg,.jpeg,.png", onUpload: (Z) => {
|
|
@@ -7881,12 +7883,12 @@ const M1 = (n) => {
|
|
|
7881
7883
|
/* @__PURE__ */ r("div", { className: z("d-flex justify-content-center", ot.photosPreviewContainer), children: /* @__PURE__ */ r(M1, { photos: p, setSelectedIndex: b, selectedIndex: w, ImgComponent: v, baseUrl: c, customToken: f, placeholder: m, reorderPhotos: T, onChangeOrder: g }) })
|
|
7882
7884
|
] });
|
|
7883
7885
|
let G;
|
|
7884
|
-
e[32] !== j || e[33] !==
|
|
7886
|
+
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];
|
|
7885
7887
|
let q;
|
|
7886
|
-
return e[36] !== H || e[37] !==
|
|
7887
|
-
|
|
7888
|
+
return e[36] !== H || e[37] !== F || e[38] !== G ? (q = /* @__PURE__ */ E(H, { children: [
|
|
7889
|
+
F,
|
|
7888
7890
|
G
|
|
7889
|
-
] }), e[36] = H, e[37] =
|
|
7891
|
+
] }), e[36] = H, e[37] = F, e[38] = G, e[39] = q) : q = e[39], q;
|
|
7890
7892
|
};
|
|
7891
7893
|
function B1(n) {
|
|
7892
7894
|
return n - 1;
|
|
@@ -8546,10 +8548,10 @@ const qh = (n) => {
|
|
|
8546
8548
|
e[42] !== m ? (R = () => {
|
|
8547
8549
|
m(1);
|
|
8548
8550
|
}, e[42] = m, e[43] = R) : R = e[43];
|
|
8549
|
-
let
|
|
8550
|
-
e[44] !== d ? (
|
|
8551
|
+
let M;
|
|
8552
|
+
e[44] !== d ? (M = /* @__PURE__ */ r(d, { icon: "chevron-right" }), e[44] = d, e[45] = M) : M = e[45];
|
|
8551
8553
|
let B;
|
|
8552
|
-
e[46] !== v || e[47] !== R || e[48] !==
|
|
8554
|
+
e[46] !== v || e[47] !== R || e[48] !== M ? (B = /* @__PURE__ */ r(ye, { disabled: v, onClick: R, children: M }), e[46] = v, e[47] = R, e[48] = M, e[49] = B) : B = e[49];
|
|
8553
8555
|
let j;
|
|
8554
8556
|
return e[50] !== P || e[51] !== B || e[52] !== w || e[53] !== N ? (j = /* @__PURE__ */ E("div", { className: w, children: [
|
|
8555
8557
|
N,
|
|
@@ -8804,12 +8806,12 @@ const qh = (n) => {
|
|
|
8804
8806
|
e[27] !== l ? (oe = (ie) => ie[l] ?? -1 / 0, e[27] = l, e[28] = oe) : oe = e[28], R = Math.max(...t.map(oe)), e[24] = t, e[25] = l, e[26] = R;
|
|
8805
8807
|
} else
|
|
8806
8808
|
R = e[26];
|
|
8807
|
-
const
|
|
8809
|
+
const M = R, B = typeof ((se = t == null ? void 0 : t[0]) == null ? void 0 : se[l]), j = d ?? (m === "sideContent" ? "bottom" : "right"), H = !f && m !== "sideContent";
|
|
8810
|
+
let F;
|
|
8811
|
+
e[29] !== M || e[30] !== P ? (F = [P, M], e[29] = M, e[30] = P, e[31] = F) : F = e[31];
|
|
8812
|
+
const U = F;
|
|
8808
8813
|
let W;
|
|
8809
|
-
e[
|
|
8810
|
-
const M = W;
|
|
8811
|
-
let U;
|
|
8812
|
-
e[32] !== N ? (U = () => N(), e[32] = N, e[33] = U) : U = e[33];
|
|
8814
|
+
e[32] !== N ? (W = () => N(), e[32] = N, e[33] = W) : W = e[33];
|
|
8813
8815
|
let G;
|
|
8814
8816
|
e[34] !== P || e[35] !== B ? (G = B === "string" ? {
|
|
8815
8817
|
type: "point"
|
|
@@ -8832,7 +8834,7 @@ const qh = (n) => {
|
|
|
8832
8834
|
legendPosition: "middle",
|
|
8833
8835
|
truncateTickAt: 0
|
|
8834
8836
|
} : null, e[38] = H, e[39] = f, e[40] = Z) : Z = e[40];
|
|
8835
|
-
const ne = m === "sideContent" ?
|
|
8837
|
+
const ne = m === "sideContent" ? U : void 0;
|
|
8836
8838
|
let te;
|
|
8837
8839
|
e[41] !== ne ? (te = {
|
|
8838
8840
|
tickValues: ne
|
|
@@ -8887,7 +8889,7 @@ const qh = (n) => {
|
|
|
8887
8889
|
left: ee
|
|
8888
8890
|
}, e[53] = Se, e[54] = be, e[55] = ee, e[56] = X) : X = e[56];
|
|
8889
8891
|
let K;
|
|
8890
|
-
return e[57] !== v || e[58] !== $ || e[59] !==
|
|
8892
|
+
return e[57] !== v || e[58] !== $ || e[59] !== W || e[60] !== G || e[61] !== Z || e[62] !== te || e[63] !== re || e[64] !== Q || e[65] !== X || e[66] !== A ? (K = /* @__PURE__ */ r("div", { ref: b, className: "d-flex h-100 w-100", children: /* @__PURE__ */ r(qr, { onClick: W, data: $, xScale: G, yScale: q, axisLeft: Z, axisBottom: te, gridYValues: re, legends: Q, pointSize: 6, pointColor: ue, pointBorderWidth: 2, pointBorderColor: pe, margin: X, colors: v, isInteractive: !0, enableCrosshair: !0, enableTouchCrosshair: !0, useMesh: !0, animate: !1, tooltip: A }) }), e[57] = v, e[58] = $, e[59] = W, e[60] = G, e[61] = Z, e[62] = te, e[63] = re, e[64] = Q, e[65] = X, e[66] = A, e[67] = K) : K = e[67], K;
|
|
8891
8893
|
}, $m = (n) => {
|
|
8892
8894
|
const e = V.c(9), {
|
|
8893
8895
|
errors: t,
|
|
@@ -9430,8 +9432,8 @@ const qm = (n) => {
|
|
|
9430
9432
|
const [S, C] = J(y);
|
|
9431
9433
|
let w;
|
|
9432
9434
|
e[1] !== t.columns || e[2] !== t.masterReference || e[3] !== t.masterReferenceColumn || e[4] !== m ? (w = () => {
|
|
9433
|
-
var
|
|
9434
|
-
C([...((q = (G = (
|
|
9435
|
+
var W, G, q;
|
|
9436
|
+
C([...((q = (G = (W = t.columns) == null ? void 0 : W.filter(lp)) == null ? void 0 : G.filter((Z) => t.masterReference ? Z.field !== t.masterReferenceColumn : !0)) == null ? void 0 : q.map((Z) => {
|
|
9435
9437
|
var ne;
|
|
9436
9438
|
return {
|
|
9437
9439
|
label: Z.caption ?? "",
|
|
@@ -9455,8 +9457,8 @@ const qm = (n) => {
|
|
|
9455
9457
|
e[12] !== t.userCanModify ? (L = t.userCanModify && /* @__PURE__ */ r("th", { className: z("table-head", Fe.tableHead, Fe.actionColumn, Fe.stickyFirst) }), e[12] = t.userCanModify, e[13] = L) : L = e[13];
|
|
9456
9458
|
let I;
|
|
9457
9459
|
if (e[14] !== S || e[15] !== t.id || e[16] !== f || e[17] !== u || e[18] !== c) {
|
|
9458
|
-
let
|
|
9459
|
-
e[20] !== t.id || e[21] !== f || e[22] !== u || e[23] !== c ? (
|
|
9460
|
+
let W;
|
|
9461
|
+
e[20] !== t.id || e[21] !== f || e[22] !== u || e[23] !== c ? (W = (G) => /* @__PURE__ */ r(tp, { column: G, sortByField: u, sortByType: c, setSortBy: f }, `${t.id}-${G.field}`), e[20] = t.id, e[21] = f, e[22] = u, e[23] = c, e[24] = W) : W = e[24], I = S.map(W), e[14] = S, e[15] = t.id, e[16] = f, e[17] = u, e[18] = c, e[19] = I;
|
|
9460
9462
|
} else
|
|
9461
9463
|
I = e[19];
|
|
9462
9464
|
let _;
|
|
@@ -9473,14 +9475,14 @@ const qm = (n) => {
|
|
|
9473
9475
|
e[30] !== t.userCanModify ? (A = t.userCanModify && /* @__PURE__ */ r("th", { className: z("table-head", Fe.tableHead, Fe.actionColumn, Fe.stickyFirst) }), e[30] = t.userCanModify, e[31] = A) : A = e[31];
|
|
9474
9476
|
let T;
|
|
9475
9477
|
if (e[32] !== S || e[33] !== p || e[34] !== s || e[35] !== t.id || e[36] !== d) {
|
|
9476
|
-
let
|
|
9477
|
-
e[38] !== p || e[39] !== s || e[40] !== t.id || e[41] !== d ? (
|
|
9478
|
+
let W;
|
|
9479
|
+
e[38] !== p || e[39] !== s || e[40] !== t.id || e[41] !== d ? (W = (G) => /* @__PURE__ */ r("th", { className: z("table-head", Fe.tableHead), children: G.valuesForSelect && G.valuesForSelect.length > 0 || G.type === "BIT" ? /* @__PURE__ */ r(he, { children: /* @__PURE__ */ r(It, { InputContainer: Nt, withoutLabel: !0, size: "sm", value: s[G.field] ?? "", onChange: (q) => d(G.field, (q == null ? void 0 : q.toString()) ?? null), options: G.type === "BIT" ? [{
|
|
9478
9480
|
id: 1,
|
|
9479
9481
|
name: p.yes
|
|
9480
9482
|
}, {
|
|
9481
9483
|
id: 0,
|
|
9482
9484
|
name: p.no
|
|
9483
|
-
}] : G.valuesForSelect ?? [], isNumber: G.type === "BIT", showClearIcon: !0, dropdownWidth: 200 }) }) : /* @__PURE__ */ r(he, { children: /* @__PURE__ */ r(St, { InputContainer: Nt, withoutLabel: !0, size: "sm", type: G.type === "NUM" ? "number" : G.type === "DT" ? "date" : "text", value: s[G.field] ?? "", onChange: (q) => d(G.field, (q == null ? void 0 : q.toString()) ?? null) }) }) }, `${t.id}-${G.field}`), e[38] = p, e[39] = s, e[40] = t.id, e[41] = d, e[42] =
|
|
9485
|
+
}] : G.valuesForSelect ?? [], isNumber: G.type === "BIT", showClearIcon: !0, dropdownWidth: 200 }) }) : /* @__PURE__ */ r(he, { children: /* @__PURE__ */ r(St, { InputContainer: Nt, withoutLabel: !0, size: "sm", type: G.type === "NUM" ? "number" : G.type === "DT" ? "date" : "text", value: s[G.field] ?? "", onChange: (q) => d(G.field, (q == null ? void 0 : q.toString()) ?? null) }) }) }, `${t.id}-${G.field}`), e[38] = p, e[39] = s, e[40] = t.id, e[41] = d, e[42] = W) : W = e[42], T = S.map(W), e[32] = S, e[33] = p, e[34] = s, e[35] = t.id, e[36] = d, e[37] = T;
|
|
9484
9486
|
} else
|
|
9485
9487
|
T = e[37];
|
|
9486
9488
|
let P;
|
|
@@ -9491,33 +9493,33 @@ const qm = (n) => {
|
|
|
9491
9493
|
T,
|
|
9492
9494
|
P
|
|
9493
9495
|
] }), e[44] = A, e[45] = T, e[46] = R) : R = e[46];
|
|
9494
|
-
let
|
|
9495
|
-
e[47] !== $ || e[48] !== R ? (
|
|
9496
|
+
let M;
|
|
9497
|
+
e[47] !== $ || e[48] !== R ? (M = /* @__PURE__ */ E("thead", { className: k, children: [
|
|
9496
9498
|
$,
|
|
9497
9499
|
R
|
|
9498
|
-
] }), e[47] = $, e[48] = R, e[49] =
|
|
9500
|
+
] }), e[47] = $, e[48] = R, e[49] = M) : M = e[49];
|
|
9499
9501
|
let B;
|
|
9500
9502
|
e[50] === Symbol.for("react.memo_cache_sentinel") ? (B = z("table-body", Fe.tableBody), e[50] = B) : B = e[50];
|
|
9501
9503
|
let j;
|
|
9502
9504
|
if (e[51] !== g || e[52] !== S || e[53] !== h || e[54] !== l || e[55] !== o || e[56] !== i || e[57] !== t) {
|
|
9503
|
-
let
|
|
9504
|
-
e[59] !== t.primaryKey ? (
|
|
9505
|
+
let W;
|
|
9506
|
+
e[59] !== t.primaryKey ? (W = (q) => q[t.primaryKey ?? ""], e[59] = t.primaryKey, e[60] = W) : W = e[60];
|
|
9505
9507
|
let G;
|
|
9506
|
-
e[61] !== g || e[62] !== S || e[63] !== h || e[64] !== o || e[65] !== i || e[66] !== t ? (G = (q) => /* @__PURE__ */ r(Km, { schema: t, columns: S, setColumns: C, initialItem: q, onEdit: i, onDelete: o, customPickers: h, appDetail: g }, `${t.id}-${q[t.primaryKey ?? ""].value}`), e[61] = g, e[62] = S, e[63] = h, e[64] = o, e[65] = i, e[66] = t, e[67] = G) : G = e[67], j = l.filter(
|
|
9508
|
+
e[61] !== g || e[62] !== S || e[63] !== h || e[64] !== o || e[65] !== i || e[66] !== t ? (G = (q) => /* @__PURE__ */ r(Km, { schema: t, columns: S, setColumns: C, initialItem: q, onEdit: i, onDelete: o, customPickers: h, appDetail: g }, `${t.id}-${q[t.primaryKey ?? ""].value}`), e[61] = g, 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] = g, e[52] = S, e[53] = h, e[54] = l, e[55] = o, e[56] = i, e[57] = t, e[58] = j;
|
|
9507
9509
|
} else
|
|
9508
9510
|
j = e[58];
|
|
9509
9511
|
let H;
|
|
9510
9512
|
e[68] !== S || e[69] !== h || e[70] !== a || e[71] !== t ? (H = /* @__PURE__ */ r(qm, { 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];
|
|
9511
|
-
let
|
|
9512
|
-
e[73] !== j || e[74] !== H ? (
|
|
9513
|
+
let F;
|
|
9514
|
+
e[73] !== j || e[74] !== H ? (F = /* @__PURE__ */ E("tbody", { className: B, children: [
|
|
9513
9515
|
j,
|
|
9514
9516
|
H
|
|
9515
|
-
] }), e[73] = j, e[74] = H, e[75] =
|
|
9516
|
-
let
|
|
9517
|
-
return e[76] !==
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
] }), e[76] =
|
|
9517
|
+
] }), e[73] = j, e[74] = H, e[75] = F) : F = e[75];
|
|
9518
|
+
let U;
|
|
9519
|
+
return e[76] !== M || e[77] !== F || e[78] !== x ? (U = /* @__PURE__ */ E("table", { id: x, className: N, children: [
|
|
9520
|
+
M,
|
|
9521
|
+
F
|
|
9522
|
+
] }), e[76] = M, e[77] = F, e[78] = x, e[79] = U) : U = e[79], U;
|
|
9521
9523
|
};
|
|
9522
9524
|
function lp(n) {
|
|
9523
9525
|
return !n.hidden;
|
|
@@ -9589,7 +9591,7 @@ const op = (n) => {
|
|
|
9589
9591
|
addNotification: A
|
|
9590
9592
|
} = sn(), [T, P] = J([]), {
|
|
9591
9593
|
confirm: R
|
|
9592
|
-
} = jt(),
|
|
9594
|
+
} = jt(), M = 20, B = M + 1, j = I ? Math.ceil(I.length / M) : 1, H = e ? e > 1 : !1, F = e ? e < j : !1, U = e ? (e - 1) * M : 0, W = e ? e * M : M, G = Re(() => I ? I.length > B : !1, [I, B]), q = Re(() => G ? (I == null ? void 0 : I.slice(U, W)) ?? null : I ?? null, [G, I, U, W]), [Z, ne] = on("masterId", null, "string"), [te, re] = J(Z);
|
|
9593
9595
|
fe(() => {
|
|
9594
9596
|
x(null), k(null), O(!1), P([]);
|
|
9595
9597
|
}, [n]), fe(() => {
|
|
@@ -9769,8 +9771,8 @@ const op = (n) => {
|
|
|
9769
9771
|
/* @__PURE__ */ E("div", { className: "d-flex align-items-center gap-1", children: [
|
|
9770
9772
|
/* @__PURE__ */ r(ye, { color: "primary", onClick: () => oe(1), disabled: !H, children: /* @__PURE__ */ r(y, { icon: "chevron-double-left" }) }),
|
|
9771
9773
|
/* @__PURE__ */ r(ye, { color: "primary", onClick: () => oe(e - 1), disabled: !H, children: /* @__PURE__ */ r(y, { icon: "chevron-left" }) }),
|
|
9772
|
-
/* @__PURE__ */ r(ye, { color: "primary", onClick: () => oe(e + 1), disabled: !
|
|
9773
|
-
/* @__PURE__ */ r(ye, { color: "primary", onClick: () => oe(j), disabled: !
|
|
9774
|
+
/* @__PURE__ */ r(ye, { color: "primary", onClick: () => oe(e + 1), disabled: !F, children: /* @__PURE__ */ r(y, { icon: "chevron-right" }) }),
|
|
9775
|
+
/* @__PURE__ */ r(ye, { color: "primary", onClick: () => oe(j), disabled: !F, children: /* @__PURE__ */ r(y, { icon: "chevron-double-right" }) })
|
|
9774
9776
|
] }),
|
|
9775
9777
|
/* @__PURE__ */ E(Y, { variant: "body", children: [
|
|
9776
9778
|
p.tablePage,
|
|
@@ -9859,28 +9861,28 @@ const op = (n) => {
|
|
|
9859
9861
|
stopLoading: w
|
|
9860
9862
|
} = le(Ot), [b, x] = J(null), [N] = on("search", "");
|
|
9861
9863
|
let k;
|
|
9862
|
-
e[4] !== l || e[5] !== a ? (k = (l == null ? void 0 : l.filter((
|
|
9864
|
+
e[4] !== l || e[5] !== a ? (k = (l == null ? void 0 : l.filter((M) => ct(M.name, a) || ct(M.description, a)).sort(sp)) ?? [], e[4] = l, e[5] = a, e[6] = k) : k = e[6];
|
|
9863
9865
|
const D = k;
|
|
9864
9866
|
let L;
|
|
9865
|
-
e[7] !== b || e[8] !== f || e[9] !== a ? (L = [...(b == null ? void 0 : b.map(cp)) ?? [], ...f].filter((
|
|
9867
|
+
e[7] !== b || e[8] !== f || e[9] !== a ? (L = [...(b == null ? void 0 : b.map(cp)) ?? [], ...f].filter((M) => ct(M.name, a) || ct(M.description, a)).sort(dp) ?? [], e[7] = b, e[8] = f, e[9] = a, e[10] = L) : L = e[10];
|
|
9866
9868
|
const I = L;
|
|
9867
9869
|
let _;
|
|
9868
9870
|
if (e[11] !== I || e[12] !== h) {
|
|
9869
|
-
let
|
|
9870
|
-
e[14] !== I ? (
|
|
9871
|
+
let M;
|
|
9872
|
+
e[14] !== I ? (M = (B) => ({
|
|
9871
9873
|
id: B.id,
|
|
9872
9874
|
name: B.name ?? "",
|
|
9873
9875
|
items: I.filter((j) => j.group === B.id)
|
|
9874
|
-
}), e[14] = I, e[15] =
|
|
9876
|
+
}), e[14] = I, e[15] = M) : M = e[15], _ = h.map(M).filter(up), e[11] = I, e[12] = h, e[13] = _;
|
|
9875
9877
|
} else
|
|
9876
9878
|
_ = e[13];
|
|
9877
9879
|
const $ = _;
|
|
9878
9880
|
let O;
|
|
9879
9881
|
e[16] !== y || e[17] !== S || e[18] !== C || e[19] !== w ? (O = async () => {
|
|
9880
|
-
C("dynamicForms"), await S.get(y).then((
|
|
9882
|
+
C("dynamicForms"), await S.get(y).then((M) => {
|
|
9881
9883
|
const {
|
|
9882
9884
|
data: B
|
|
9883
|
-
} =
|
|
9885
|
+
} = M;
|
|
9884
9886
|
x(B), w("dynamicForms");
|
|
9885
9887
|
}).catch(() => w("dynamicForms"));
|
|
9886
9888
|
}, e[16] = y, e[17] = S, e[18] = C, e[19] = w, e[20] = O) : O = e[20];
|
|
@@ -9892,10 +9894,10 @@ const op = (n) => {
|
|
|
9892
9894
|
let R;
|
|
9893
9895
|
return e[25] !== t || e[26] !== v || e[27] !== D || e[28] !== $ || e[29] !== I || e[30] !== s || e[31] !== N ? (R = [...D, ...I].length > 0 ? /* @__PURE__ */ r(he, { children: /* @__PURE__ */ E("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: [
|
|
9894
9896
|
D.length > 0 ? /* @__PURE__ */ E(he, { children: [
|
|
9895
|
-
D.map((
|
|
9897
|
+
D.map((M) => /* @__PURE__ */ r(vo, { item: M, fullSize: s ?? !1, appDetail: v, search: N, activeId: t, disabled: M.type === "dynamic-form" && !M.userCanModify && !M.userCanSelect }, M.id)),
|
|
9896
9898
|
/* @__PURE__ */ r("hr", { className: "mb-0" })
|
|
9897
9899
|
] }) : null,
|
|
9898
|
-
$.map((
|
|
9900
|
+
$.map((M) => /* @__PURE__ */ r(il, { title: M.name, defaultOpen: !0, children: M.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)) }, M.id))
|
|
9899
9901
|
] }) }) : 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;
|
|
9900
9902
|
};
|
|
9901
9903
|
function sp(n, e) {
|
|
@@ -10296,7 +10298,7 @@ const Cp = (n) => {
|
|
|
10296
10298
|
}
|
|
10297
10299
|
let T;
|
|
10298
10300
|
e[5] !== p || e[6] !== o || e[7] !== i || e[8] !== t || e[9] !== w ? (T = {}, t.forEach((P) => {
|
|
10299
|
-
T[P] = w.filter((R) => R.groupId === P && (ct(i(R), p) || ct(o(R), p) || R.versions.some((
|
|
10301
|
+
T[P] = w.filter((R) => R.groupId === P && (ct(i(R), p) || ct(o(R), p) || R.versions.some((M) => ct(M.name, p)) || R.versionsCustom.some((M) => ct(M.name, p))));
|
|
10300
10302
|
}), e[5] = p, e[6] = o, e[7] = i, e[8] = t, e[9] = w, e[10] = T) : T = e[10], b = T;
|
|
10301
10303
|
}
|
|
10302
10304
|
const x = b;
|
|
@@ -10794,22 +10796,22 @@ const Tp = "_state-switch_uc6su_1", $p = "_switch-button_uc6su_7", Lp = "_bg-lay
|
|
|
10794
10796
|
let P;
|
|
10795
10797
|
e[25] !== T || e[26] !== O ? (P = (T == null ? void 0 : T.every((ce) => O == null ? void 0 : O.includes(ce.name))) ?? !1, e[25] = T, e[26] = O, e[27] = P) : P = e[27];
|
|
10796
10798
|
const R = P;
|
|
10797
|
-
let
|
|
10798
|
-
e[28] !== c.title ? (
|
|
10799
|
+
let M;
|
|
10800
|
+
e[28] !== c.title ? (M = /* @__PURE__ */ r(Y, { variant: "h3", children: c.title }), e[28] = c.title, e[29] = M) : M = e[29];
|
|
10799
10801
|
let B;
|
|
10800
10802
|
e[30] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ r(Yt, { as: cn }), e[30] = B) : B = e[30];
|
|
10801
10803
|
let j;
|
|
10802
10804
|
e[31] !== L ? (j = () => L(), e[31] = L, e[32] = j) : j = e[32];
|
|
10803
10805
|
let H;
|
|
10804
10806
|
e[33] !== j || e[34] !== c.delete ? (H = /* @__PURE__ */ r(qt, { toggle: B, children: /* @__PURE__ */ r(dt, { onClick: j, children: c.delete }) }), e[33] = j, e[34] = c.delete, e[35] = H) : H = e[35];
|
|
10805
|
-
let
|
|
10806
|
-
e[36] !==
|
|
10807
|
-
|
|
10807
|
+
let F;
|
|
10808
|
+
e[36] !== M || e[37] !== H ? (F = /* @__PURE__ */ E("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
10809
|
+
M,
|
|
10808
10810
|
H
|
|
10809
|
-
] }), e[36] =
|
|
10810
|
-
let
|
|
10811
|
-
e[39] !== p || e[40] !== v ? (
|
|
10812
|
-
const
|
|
10811
|
+
] }), e[36] = M, e[37] = H, e[38] = F) : F = e[38];
|
|
10812
|
+
let U;
|
|
10813
|
+
e[39] !== p || e[40] !== v ? (U = p.handleSubmit(v), e[39] = p, e[40] = v, e[41] = U) : U = e[41];
|
|
10814
|
+
const W = c.title;
|
|
10813
10815
|
let G;
|
|
10814
10816
|
e[42] !== g ? (G = (g == null ? void 0 : g.map(Fp)) ?? [], e[42] = g, e[43] = G) : G = e[43];
|
|
10815
10817
|
const q = c.employee;
|
|
@@ -10829,7 +10831,7 @@ const Tp = "_state-switch_uc6su_1", $p = "_switch-button_uc6su_7", Lp = "_bg-lay
|
|
|
10829
10831
|
let Se;
|
|
10830
10832
|
e[58] !== c.to ? (Se = /* @__PURE__ */ r(bn, { formField: "to", label: c.to, type: "date", required: !0 }), e[58] = c.to, e[59] = Se) : Se = e[59];
|
|
10831
10833
|
let be;
|
|
10832
|
-
e[60] !== re || e[61] !== ue || e[62] !== pe || e[63] !== Se || e[64] !== c.title ? (be = /* @__PURE__ */ r(nl, { sm: 12, md: 4, children: /* @__PURE__ */ E(an, { title:
|
|
10834
|
+
e[60] !== re || e[61] !== ue || e[62] !== pe || e[63] !== Se || e[64] !== c.title ? (be = /* @__PURE__ */ r(nl, { sm: 12, md: 4, children: /* @__PURE__ */ E(an, { title: W, children: [
|
|
10833
10835
|
re,
|
|
10834
10836
|
ue,
|
|
10835
10837
|
pe,
|
|
@@ -10878,16 +10880,16 @@ const Tp = "_state-switch_uc6su_1", $p = "_switch-button_uc6su_7", Lp = "_bg-lay
|
|
|
10878
10880
|
let xe;
|
|
10879
10881
|
e[95] !== ge || e[96] !== c.save ? (xe = /* @__PURE__ */ r(Mc, { onStorno: ge, children: c.save }), e[95] = ge, e[96] = c.save, e[97] = xe) : xe = e[97];
|
|
10880
10882
|
let _e;
|
|
10881
|
-
e[98] !==
|
|
10883
|
+
e[98] !== U || e[99] !== ae || e[100] !== xe ? (_e = /* @__PURE__ */ E(Pe, { onSubmit: U, className: "h-100", children: [
|
|
10882
10884
|
ae,
|
|
10883
10885
|
xe
|
|
10884
|
-
] }), e[98] =
|
|
10886
|
+
] }), e[98] = U, e[99] = ae, e[100] = xe, e[101] = _e) : _e = e[101];
|
|
10885
10887
|
let Le;
|
|
10886
10888
|
e[102] !== _ || e[103] !== _e ? (Le = /* @__PURE__ */ r(as, { disabled: _, children: _e }), e[102] = _, e[103] = _e, e[104] = Le) : Le = e[104];
|
|
10887
10889
|
let Ae;
|
|
10888
10890
|
e[105] !== p || e[106] !== Le ? (Ae = /* @__PURE__ */ r(ml, { ...p, children: Le }), e[105] = p, e[106] = Le, e[107] = Ae) : Ae = e[107];
|
|
10889
10891
|
let Me;
|
|
10890
|
-
return e[108] !==
|
|
10892
|
+
return e[108] !== F || e[109] !== Ae ? (Me = /* @__PURE__ */ r(Ft, { title: F, children: Ae }), e[108] = F, e[109] = Ae, e[110] = Me) : Me = e[110], Me;
|
|
10891
10893
|
};
|
|
10892
10894
|
function Mp(n) {
|
|
10893
10895
|
return n.canBeRepresented;
|
|
@@ -11111,28 +11113,28 @@ const Vp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11111
11113
|
let P;
|
|
11112
11114
|
e[29] !== l ? (P = () => l(), e[29] = l, e[30] = P) : P = e[30];
|
|
11113
11115
|
const R = t != null && t.id ? m.delegations.detailTitle : m.delegations.newTitle;
|
|
11114
|
-
let
|
|
11115
|
-
e[31] !== R ? (
|
|
11116
|
+
let M;
|
|
11117
|
+
e[31] !== R ? (M = /* @__PURE__ */ r($e.Title, { className: "w-100", children: R }), e[31] = R, e[32] = M) : M = e[32];
|
|
11116
11118
|
let B;
|
|
11117
11119
|
e[33] !== c || e[34] !== (t == null ? void 0 : t.id) || e[35] !== A || e[36] !== m.delegations.delete ? (B = t != null && t.id ? /* @__PURE__ */ r(qt, { toggle: /* @__PURE__ */ r(Yt, { as: cn }), className: "modalHeaderDropdown", children: /* @__PURE__ */ r(dt, { color: "danger", icon: /* @__PURE__ */ r(c, { icon: "delete" }), onClick: A, children: m.delegations.delete }) }) : null, e[33] = c, e[34] = t == null ? void 0 : t.id, e[35] = A, e[36] = m.delegations.delete, e[37] = B) : B = e[37];
|
|
11118
11120
|
let j;
|
|
11119
|
-
e[38] !==
|
|
11120
|
-
|
|
11121
|
+
e[38] !== M || e[39] !== B ? (j = /* @__PURE__ */ E($e.Header, { closeButton: !0, children: [
|
|
11122
|
+
M,
|
|
11121
11123
|
B
|
|
11122
|
-
] }), e[38] =
|
|
11124
|
+
] }), e[38] = M, e[39] = B, e[40] = j) : j = e[40];
|
|
11123
11125
|
let H;
|
|
11124
11126
|
e[41] !== x || e[42] !== $ ? (H = x.handleSubmit($), e[41] = x, e[42] = $, e[43] = H) : H = e[43];
|
|
11125
|
-
let
|
|
11126
|
-
e[44] !== S ? (
|
|
11127
|
-
let M;
|
|
11128
|
-
e[46] !== W || e[47] !== m.delegations.detail.approval ? (M = /* @__PURE__ */ r(jl, { label: m.delegations.detail.approval, isNumber: !0, formField: "approval.id", options: W, required: !0 }), e[46] = W, e[47] = m.delegations.detail.approval, e[48] = M) : M = e[48];
|
|
11127
|
+
let F;
|
|
11128
|
+
e[44] !== S ? (F = S ?? [], e[44] = S, e[45] = F) : F = e[45];
|
|
11129
11129
|
let U;
|
|
11130
|
-
e[
|
|
11130
|
+
e[46] !== F || e[47] !== m.delegations.detail.approval ? (U = /* @__PURE__ */ r(jl, { label: m.delegations.detail.approval, isNumber: !0, formField: "approval.id", options: F, required: !0 }), e[46] = F, e[47] = m.delegations.detail.approval, e[48] = U) : U = e[48];
|
|
11131
|
+
let W;
|
|
11132
|
+
e[49] !== t ? (W = (ee = t == null ? void 0 : t.employee) != null && ee.id ? {
|
|
11131
11133
|
id: t.employee.id,
|
|
11132
11134
|
name: t.employee.name
|
|
11133
|
-
} : null, e[49] = t, e[50] =
|
|
11135
|
+
} : null, e[49] = t, e[50] = W) : W = e[50];
|
|
11134
11136
|
let G;
|
|
11135
|
-
e[51] !== u || e[52] !==
|
|
11137
|
+
e[51] !== u || e[52] !== W || e[53] !== m.delegations.detail.employee ? (G = /* @__PURE__ */ r(u, { label: m.delegations.detail.employee, formField: "employee.id", defaultSelection: W, required: !0 }), e[51] = u, e[52] = W, e[53] = m.delegations.detail.employee, e[54] = G) : G = e[54];
|
|
11136
11138
|
let q;
|
|
11137
11139
|
e[55] !== t ? (q = (X = t == null ? void 0 : t.delegate) != null && X.id ? {
|
|
11138
11140
|
id: t.delegate.id,
|
|
@@ -11145,13 +11147,13 @@ const Vp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11145
11147
|
let te;
|
|
11146
11148
|
e[63] !== m.delegations.detail.dateTo ? (te = /* @__PURE__ */ r(bn, { label: m.delegations.detail.dateTo, formField: "dateTo", type: "date" }), e[63] = m.delegations.detail.dateTo, e[64] = te) : te = e[64];
|
|
11147
11149
|
let re;
|
|
11148
|
-
e[65] !==
|
|
11149
|
-
|
|
11150
|
+
e[65] !== U || e[66] !== G || e[67] !== Z || e[68] !== ne || e[69] !== te ? (re = /* @__PURE__ */ E($e.Body, { children: [
|
|
11151
|
+
U,
|
|
11150
11152
|
G,
|
|
11151
11153
|
Z,
|
|
11152
11154
|
ne,
|
|
11153
11155
|
te
|
|
11154
|
-
] }), e[65] =
|
|
11156
|
+
] }), e[65] = U, e[66] = G, e[67] = Z, e[68] = ne, e[69] = te, e[70] = re) : re = e[70];
|
|
11155
11157
|
const Q = t != null && t.id ? m.delegations.save : m.delegations.create;
|
|
11156
11158
|
let ue;
|
|
11157
11159
|
e[71] !== Q ? (ue = /* @__PURE__ */ r($e.Footer, { className: "justify-content-end", children: /* @__PURE__ */ r(Dt, { type: "submit", children: Q }) }), e[71] = Q, e[72] = ue) : ue = e[72];
|
|
@@ -11229,14 +11231,14 @@ const Vp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11229
11231
|
] }), e[16] = T, e[17] = k, e[18] = P) : P = e[18];
|
|
11230
11232
|
let R;
|
|
11231
11233
|
e[19] !== l || e[20] !== x || e[21] !== i ? (R = x ? /* @__PURE__ */ r(zp, { items: x, onEditItem: b, BnfTableComponent: l, tableIdentifier: i }) : null, e[19] = l, e[20] = x, e[21] = i, e[22] = R) : R = e[22];
|
|
11232
|
-
let
|
|
11233
|
-
e[23] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
11234
|
+
let M;
|
|
11235
|
+
e[23] === Symbol.for("react.memo_cache_sentinel") ? (M = () => b(null), e[23] = M) : M = e[23];
|
|
11234
11236
|
let B;
|
|
11235
11237
|
e[24] !== N ? (B = () => {
|
|
11236
11238
|
b(null), N();
|
|
11237
11239
|
}, e[24] = N, e[25] = B) : B = e[25];
|
|
11238
11240
|
let j;
|
|
11239
|
-
e[26] !== o || e[27] !== v || e[28] !== g || e[29] !== m || e[30] !== h || e[31] !== w || e[32] !== B ? (j = /* @__PURE__ */ r(Up, { model: w, handleClose:
|
|
11241
|
+
e[26] !== o || e[27] !== v || e[28] !== g || e[29] !== m || e[30] !== h || e[31] !== w || e[32] !== B ? (j = /* @__PURE__ */ r(Up, { model: w, handleClose: M, onConfirm: B, EmployeePickerComponent: o, apiApprovalDefinitions: v, apiHasRunningProcess: m, apiPostEditDelegation: h, apiDeleteDelegation: g }), e[26] = o, e[27] = v, e[28] = g, e[29] = m, e[30] = h, e[31] = w, e[32] = B, e[33] = j) : j = e[33];
|
|
11240
11242
|
let H;
|
|
11241
11243
|
return e[34] !== P || e[35] !== R || e[36] !== j ? (H = /* @__PURE__ */ E(Ft, { variant: "fullScreen", title: P, children: [
|
|
11242
11244
|
R,
|
|
@@ -11288,7 +11290,7 @@ const Vp = (n, e = "/approval/delegation/runningProcess", t = "/approval/delegat
|
|
|
11288
11290
|
e[13] !== s || e[14] !== a || e[15] !== m || e[16] !== C || e[17] !== h || e[18] !== g ? (x = async (R) => (h("approvalChangeEmployee"), m.post(s, {
|
|
11289
11291
|
id: a,
|
|
11290
11292
|
employeeId: R
|
|
11291
|
-
}).then(Gp).catch((
|
|
11293
|
+
}).then(Gp).catch((M) => (ti(C, M), !1)).finally(() => g("approvalChangeEmployee"))), e[13] = s, e[14] = a, e[15] = m, e[16] = C, e[17] = h, e[18] = g, e[19] = x) : x = e[19];
|
|
11292
11294
|
const N = x;
|
|
11293
11295
|
let k;
|
|
11294
11296
|
e[20] !== v || e[21] !== i || e[22] !== N || e[23] !== c.definitions.changeEmployeeSuccess ? (k = async (R) => {
|
|
@@ -11522,8 +11524,8 @@ const In = {
|
|
|
11522
11524
|
} = nt(k, L);
|
|
11523
11525
|
let $, O;
|
|
11524
11526
|
e[5] !== w || e[6] !== b || e[7] !== x ? ($ = () => {
|
|
11525
|
-
var
|
|
11526
|
-
b || x(((
|
|
11527
|
+
var W;
|
|
11528
|
+
b || x(((W = w == null ? void 0 : w.at(0)) == null ? void 0 : W.id) ?? null);
|
|
11527
11529
|
}, O = [w, b, x], e[5] = w, e[6] = b, e[7] = x, e[8] = $, e[9] = O) : ($ = e[8], O = e[9]), fe($, O);
|
|
11528
11530
|
let A;
|
|
11529
11531
|
e[10] !== C.definitions.title ? (A = /* @__PURE__ */ r(Y, { variant: "h3", children: C.definitions.title }), e[10] = C.definitions.title, e[11] = A) : A = e[11];
|
|
@@ -11536,29 +11538,29 @@ const In = {
|
|
|
11536
11538
|
A,
|
|
11537
11539
|
P
|
|
11538
11540
|
] }), e[18] = A, e[19] = P, e[20] = R) : R = e[20];
|
|
11539
|
-
let
|
|
11540
|
-
e[21] !== y || e[22] !== w || e[23] !== b || e[24] !== x ? (
|
|
11541
|
-
"bg-primary text-white": b ===
|
|
11542
|
-
}), onClick: () => x(
|
|
11543
|
-
/* @__PURE__ */ r("span", { children:
|
|
11541
|
+
let M;
|
|
11542
|
+
e[21] !== y || e[22] !== w || e[23] !== b || e[24] !== x ? (M = w == null ? void 0 : w.sort(Xp).map((W) => /* @__PURE__ */ E("div", { role: "button", className: z("list-group-item list-group-item-action p-2 d-flex gap-3 align-items-center justify-content-between", {
|
|
11543
|
+
"bg-primary text-white": b === W.id
|
|
11544
|
+
}), onClick: () => x(W.id), children: [
|
|
11545
|
+
/* @__PURE__ */ r("span", { children: W.name }),
|
|
11544
11546
|
/* @__PURE__ */ E(Y, { variant: "caption", className: "d-flex align-items-center gap-1", children: [
|
|
11545
11547
|
/* @__PURE__ */ r(y, { icon: "menu" }),
|
|
11546
|
-
|
|
11548
|
+
W.levelCount
|
|
11547
11549
|
] })
|
|
11548
|
-
] },
|
|
11550
|
+
] }, W.id)), e[21] = y, e[22] = w, e[23] = b, e[24] = x, e[25] = M) : M = e[25];
|
|
11549
11551
|
let B;
|
|
11550
|
-
e[26] !==
|
|
11552
|
+
e[26] !== M ? (B = /* @__PURE__ */ r("div", { className: "col-2 overflow-hidden h-100", children: /* @__PURE__ */ r(Y, { variant: "body2", className: "overflow-x-hidden overflow-y-auto h-100", children: /* @__PURE__ */ r("div", { className: "list-group", children: M }) }) }), e[26] = M, e[27] = B) : B = e[27];
|
|
11551
11553
|
let j;
|
|
11552
11554
|
e[28] !== i || e[29] !== p || e[30] !== v || e[31] !== d || e[32] !== I || e[33] !== _ ? (j = I ? /* @__PURE__ */ r(qp, { approval: I, reloadApproval: _, appEmployeeDetail: d, apiPostChangeEmployee: v, EmployeePickerComponent: i, apiApprovalDelegations: p }) : null, e[28] = i, e[29] = p, e[30] = v, e[31] = d, e[32] = I, e[33] = _, e[34] = j) : j = e[34];
|
|
11553
11555
|
let H;
|
|
11554
11556
|
e[35] !== j ? (H = /* @__PURE__ */ r("div", { className: "col-10 overflow-hidden h-100", children: j }), e[35] = j, e[36] = H) : H = e[36];
|
|
11555
|
-
let
|
|
11556
|
-
e[37] !== B || e[38] !== H ? (
|
|
11557
|
+
let F;
|
|
11558
|
+
e[37] !== B || e[38] !== H ? (F = /* @__PURE__ */ E("div", { className: "row g-0 h-max-100 overflow-hidden", children: [
|
|
11557
11559
|
B,
|
|
11558
11560
|
H
|
|
11559
|
-
] }), e[37] = B, e[38] = H, e[39] =
|
|
11560
|
-
let
|
|
11561
|
-
return e[40] !== R || e[41] !==
|
|
11561
|
+
] }), e[37] = B, e[38] = H, e[39] = F) : F = e[39];
|
|
11562
|
+
let U;
|
|
11563
|
+
return e[40] !== R || e[41] !== F ? (U = /* @__PURE__ */ r(Ft, { variant: "fullScreen", title: R, children: F }), e[40] = R, e[41] = F, e[42] = U) : U = e[42], U;
|
|
11562
11564
|
};
|
|
11563
11565
|
function Xp(n, e) {
|
|
11564
11566
|
return (n.name ?? "").localeCompare(e.name ?? "");
|