react-luminus-components 1.5.15 → 1.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +26 -26
- package/dist/{FormDisabledProvider-CB65Qinl.cjs → FormDisabledProvider-DGZAPk9U.cjs} +1 -1
- package/dist/{FormDisabledProvider-BCWVZKeJ.js → FormDisabledProvider-Xx2Oc8Mr.js} +1 -1
- package/dist/{ShortcutLinksContext-DpohvVH2.js → ShortcutLinksContext-BWm15pnf.js} +2333 -2333
- package/dist/{ShortcutLinksContext-NoGMjMaY.cjs → ShortcutLinksContext-D6QD8JEU.cjs} +23 -23
- package/dist/components/common/LineChart/LineChart.d.ts +4 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +5 -5
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +3 -3
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +2 -2
- package/dist/main.cjs.js +9 -9
- package/dist/main.es.js +389 -383
- package/dist/style.css +1 -1
- package/dist/{useLocalStorageState-CPRjDOj9.cjs → useLocalStorageState-DNw9Zo_I.cjs} +1 -1
- package/dist/{useLocalStorageState-DJjnd4uC.js → useLocalStorageState-DVjE5NF9.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +2 -2
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as a, c as I, t as Te, a as Rr, s as Vi, g as $i, m as qc, d as br, b as Yc, e as Kc, f as It, h as Xc, i as Qc, k as Jc, l as Zc, n as ed, o as td, p as nd, T as _s, q as Os, r as Gi, E as rd, u as Ps, v as Ua, w as Ts, x as ad, y as Ae, z as Ha, F as As, A as id, B as od, C as sd, D as ld, M as cd, G as dd, H as ud, I as pd, J as fd, K as md, L as Ea, N as gd, O as vd, P as Q, Q as mt, R as hd, S as xd, U as jt, V as ee, W as Wa, X as ve, Y as za, Z as dt, _ as qe, $ as ce, a0 as it, a1 as M, a2 as kr, a3 as bd, a4 as yd, a5 as wd, a6 as Rs, a7 as jd, a8 as Nd, a9 as ht, aa as Dd, ab as Sd, ac as Dr, ad as re, ae as ks, af as Cd, ag as Ed, ah as Id, ai as Bs, aj as Ls, ak as qa, al as Sr, am as Bt, an as _d, ao as ze, ap as Od, aq as Pd, ar as Td, as as Lt, at as Ad, au as Ms, av as Rd, aw as Ke, ax as yn, ay as kd, az as rt, aA as Ya, aB as Ka, aC as Fs, aD as Xa, aE as Vs, aF as $s, aG as Pe, aH as Pt, aI as Bd, aJ as Ld, aK as ct, aL as Mt, aM as Ft, aN as Md, aO as Ye, aP as pt, aQ as Fd, aR as Dt, aS as Vd, aT as $d, aU as _n, aV as ft, aW as Gs, aX as xt, aY as Zt, aZ as Gd, a_ as Qr, a$ as en, b0 as Us, b1 as an, b2 as Ud, b3 as Hd, b4 as Vn, b5 as Br, b6 as mn, b7 as Cr, b8 as Qa, b9 as Nt, ba as Wd, bb as Hs, bc as sr, bd as St, be as tn, bf as gn, bg as zd, bh as Lr, bi as Ws, bj as dn, bk as Mr, bl as Ja, bm as qd, bn as Yd, bo as Kd, bp as Xd, bq as Qd, br as Jd, bs as zs, bt as Zd, bu as eu, bv as tu, bw as nu, bx as ru, by as au } from "./ShortcutLinksContext-
|
|
2
|
-
import { bB as rD, bz as aD, bA as iD } from "./ShortcutLinksContext-
|
|
1
|
+
import { j as a, c as I, t as Te, a as Rr, s as Vi, g as $i, m as qc, d as br, b as Yc, e as Kc, f as It, h as Xc, i as Qc, k as Jc, l as Zc, n as ed, o as td, p as nd, T as _s, q as Os, r as Gi, E as rd, u as Ps, v as Ua, w as Ts, x as ad, y as Ae, z as Ha, F as As, A as id, B as od, C as sd, D as ld, M as cd, G as dd, H as ud, I as pd, J as fd, K as md, L as Ea, N as gd, O as vd, P as Q, Q as mt, R as hd, S as xd, U as jt, V as ee, W as Wa, X as ve, Y as za, Z as dt, _ as qe, $ as ce, a0 as it, a1 as M, a2 as kr, a3 as bd, a4 as yd, a5 as wd, a6 as Rs, a7 as jd, a8 as Nd, a9 as ht, aa as Dd, ab as Sd, ac as Dr, ad as re, ae as ks, af as Cd, ag as Ed, ah as Id, ai as Bs, aj as Ls, ak as qa, al as Sr, am as Bt, an as _d, ao as ze, ap as Od, aq as Pd, ar as Td, as as Lt, at as Ad, au as Ms, av as Rd, aw as Ke, ax as yn, ay as kd, az as rt, aA as Ya, aB as Ka, aC as Fs, aD as Xa, aE as Vs, aF as $s, aG as Pe, aH as Pt, aI as Bd, aJ as Ld, aK as ct, aL as Mt, aM as Ft, aN as Md, aO as Ye, aP as pt, aQ as Fd, aR as Dt, aS as Vd, aT as $d, aU as _n, aV as ft, aW as Gs, aX as xt, aY as Zt, aZ as Gd, a_ as Qr, a$ as en, b0 as Us, b1 as an, b2 as Ud, b3 as Hd, b4 as Vn, b5 as Br, b6 as mn, b7 as Cr, b8 as Qa, b9 as Nt, ba as Wd, bb as Hs, bc as sr, bd as St, be as tn, bf as gn, bg as zd, bh as Lr, bi as Ws, bj as dn, bk as Mr, bl as Ja, bm as qd, bn as Yd, bo as Kd, bp as Xd, bq as Qd, br as Jd, bs as zs, bt as Zd, bu as eu, bv as tu, bw as nu, bx as ru, by as au } from "./ShortcutLinksContext-BWm15pnf.js";
|
|
2
|
+
import { bB as rD, bz as aD, bA as iD } from "./ShortcutLinksContext-BWm15pnf.js";
|
|
3
3
|
import * as Ie from "react";
|
|
4
|
-
import le, { useCallback as P, useMemo as
|
|
5
|
-
import { c as yt, a as du, b as uu, L as Ia, F as pu } from "./FormDisabledProvider-
|
|
4
|
+
import le, { useCallback as P, useMemo as B, useState as L, useRef as te, useEffect as q, useContext as G, useId as iu, Component as ou, isValidElement as Ui, Suspense as su, useLayoutEffect as Za, useReducer as lu, Fragment as cu } from "react";
|
|
5
|
+
import { c as yt, a as du, b as uu, L as Ia, F as pu } from "./FormDisabledProvider-Xx2Oc8Mr.js";
|
|
6
6
|
import { InteractionType as fu } from "@azure/msal-browser";
|
|
7
7
|
import { MsalAuthenticationTemplate as mu } from "@azure/msal-react";
|
|
8
8
|
import { useNavigate as Fr, Navigate as lr, Link as Ge, generatePath as vn, useParams as qs, useSearchParams as gu, useLocation as vu } from "react-router-dom";
|
|
@@ -10,7 +10,7 @@ import $n, { unstable_batchedUpdates as hu } from "react-dom";
|
|
|
10
10
|
import { useFormContext as Ct, Controller as ei, useForm as Vr, FormProvider as $r } from "react-hook-form";
|
|
11
11
|
import { Pivot as xu } from "react-flexmonster";
|
|
12
12
|
import { u as bu, a as yu, b as Xt, c as wu } from "./useRenderDraggableInPortal-D0OLp7Qb.js";
|
|
13
|
-
import { u as ke, a as Gn } from "./useLocalStorageState-
|
|
13
|
+
import { u as ke, a as Gn } from "./useLocalStorageState-DVjE5NF9.js";
|
|
14
14
|
import { l as Bn, g as _a, h as yr, d as ju, r as Nu } from "./localStorageUtils-DBNNyBcc.js";
|
|
15
15
|
const Kj = ({ fileLoader: e, fileName: t, children: n }) => {
|
|
16
16
|
const r = P(async () => {
|
|
@@ -179,16 +179,16 @@ const Au = {
|
|
|
179
179
|
getDimensionValue: m = Tu,
|
|
180
180
|
...g
|
|
181
181
|
}, x) => {
|
|
182
|
-
const h = typeof l == "function" ? l() : l, v =
|
|
182
|
+
const h = typeof l == "function" ? l() : l, v = B(() => On((D) => {
|
|
183
183
|
D.style[h] = "0";
|
|
184
|
-
}, e), [h, e]), y =
|
|
185
|
-
const
|
|
186
|
-
D.style[h] = `${D[
|
|
187
|
-
}, t), [h, t]), j =
|
|
184
|
+
}, e), [h, e]), y = B(() => On((D) => {
|
|
185
|
+
const C = `scroll${h[0].toUpperCase()}${h.slice(1)}`;
|
|
186
|
+
D.style[h] = `${D[C]}px`;
|
|
187
|
+
}, t), [h, t]), j = B(() => On((D) => {
|
|
188
188
|
D.style[h] = null;
|
|
189
|
-
}, n), [h, n]), b =
|
|
189
|
+
}, n), [h, n]), b = B(() => On((D) => {
|
|
190
190
|
D.style[h] = `${m(h, D)}px`, ad(D);
|
|
191
|
-
}, r), [r, m, h]), w =
|
|
191
|
+
}, r), [r, m, h]), w = B(() => On((D) => {
|
|
192
192
|
D.style[h] = null;
|
|
193
193
|
}, i), [h, i]);
|
|
194
194
|
return /* @__PURE__ */ a.jsx(_s, {
|
|
@@ -207,8 +207,8 @@ const Au = {
|
|
|
207
207
|
mountOnEnter: d,
|
|
208
208
|
unmountOnExit: p,
|
|
209
209
|
appear: f,
|
|
210
|
-
children: (D,
|
|
211
|
-
...
|
|
210
|
+
children: (D, C) => /* @__PURE__ */ le.cloneElement(s, {
|
|
211
|
+
...C,
|
|
212
212
|
className: I(o, s.props.className, Au[D], h === "width" && "collapse-horizontal")
|
|
213
213
|
})
|
|
214
214
|
});
|
|
@@ -243,7 +243,7 @@ const Qs = /* @__PURE__ */ Ie.forwardRef(({
|
|
|
243
243
|
as: n = "div",
|
|
244
244
|
...r
|
|
245
245
|
}, i) => {
|
|
246
|
-
const o = Ae(e, "card-header"), s =
|
|
246
|
+
const o = Ae(e, "card-header"), s = B(() => ({
|
|
247
247
|
cardHeaderBsPrefix: o
|
|
248
248
|
}), [o]);
|
|
249
249
|
return /* @__PURE__ */ a.jsx(Xs.Provider, {
|
|
@@ -393,7 +393,7 @@ const Bu = (e) => /* @__PURE__ */ a.jsx(Gr, {
|
|
|
393
393
|
...o
|
|
394
394
|
}, s) => {
|
|
395
395
|
e = Ae(e, "input-group");
|
|
396
|
-
const l =
|
|
396
|
+
const l = B(() => ({}), []);
|
|
397
397
|
return /* @__PURE__ */ a.jsx(id.Provider, {
|
|
398
398
|
value: l,
|
|
399
399
|
children: /* @__PURE__ */ a.jsx(i, {
|
|
@@ -452,7 +452,7 @@ function Fu(e) {
|
|
|
452
452
|
typeof l == "object" ? (d = l, u = c, c = !0) : (c = c || !0, d = {
|
|
453
453
|
[l]: c
|
|
454
454
|
});
|
|
455
|
-
let p =
|
|
455
|
+
let p = B(() => Object.entries(d).reduce((f, [m, g]) => ((g === "up" || g === !0) && (f = n(f, o(m))), (g === "down" || g === !0) && (f = n(f, i(m))), f), ""), [JSON.stringify(d)]);
|
|
456
456
|
return Mu(p, u);
|
|
457
457
|
}
|
|
458
458
|
return s;
|
|
@@ -562,30 +562,30 @@ const dl = /* @__PURE__ */ Ie.forwardRef(({
|
|
|
562
562
|
onExiting: b,
|
|
563
563
|
onEnter: w,
|
|
564
564
|
onEntering: D,
|
|
565
|
-
onExited:
|
|
565
|
+
onExited: C,
|
|
566
566
|
backdropClassName: _,
|
|
567
567
|
manager: E,
|
|
568
568
|
renderStaticNode: O = !1,
|
|
569
569
|
...A
|
|
570
|
-
},
|
|
571
|
-
const
|
|
570
|
+
}, k) => {
|
|
571
|
+
const S = te();
|
|
572
572
|
e = Ae(e, "offcanvas");
|
|
573
573
|
const [T, Y] = L(!1), $ = ld(f), H = Vu(o || "xs", "up");
|
|
574
574
|
q(() => {
|
|
575
575
|
Y(o ? s && !H : s);
|
|
576
576
|
}, [s, o, H]);
|
|
577
|
-
const R =
|
|
577
|
+
const R = B(() => ({
|
|
578
578
|
onHide: $
|
|
579
579
|
}), [$]);
|
|
580
580
|
function V() {
|
|
581
|
-
return E || (u ? (
|
|
581
|
+
return E || (u ? (S.current || (S.current = new pd({
|
|
582
582
|
handleContainerOverflow: !1
|
|
583
|
-
})),
|
|
583
|
+
})), S.current) : fd());
|
|
584
584
|
}
|
|
585
585
|
const U = (se, ...ye) => {
|
|
586
586
|
se && (se.style.visibility = "visible"), w == null || w(se, ...ye);
|
|
587
587
|
}, X = (se, ...ye) => {
|
|
588
|
-
se && (se.style.visibility = ""),
|
|
588
|
+
se && (se.style.visibility = ""), C == null || C(...ye);
|
|
589
589
|
}, Z = P((se) => /* @__PURE__ */ a.jsx("div", {
|
|
590
590
|
...se,
|
|
591
591
|
className: I(`${e}-backdrop`, _)
|
|
@@ -601,7 +601,7 @@ const dl = /* @__PURE__ */ Ie.forwardRef(({
|
|
|
601
601
|
value: R,
|
|
602
602
|
children: /* @__PURE__ */ a.jsx(dd, {
|
|
603
603
|
show: T,
|
|
604
|
-
ref:
|
|
604
|
+
ref: k,
|
|
605
605
|
backdrop: l,
|
|
606
606
|
container: m,
|
|
607
607
|
keyboard: c,
|
|
@@ -755,12 +755,12 @@ const Wu = /* @__PURE__ */ Ie.forwardRef(({
|
|
|
755
755
|
const u = P((f) => {
|
|
756
756
|
const m = du(e, f);
|
|
757
757
|
m.getFullYear() < r || m.getFullYear() > i || t(m);
|
|
758
|
-
}, [e, t, r, i]), d =
|
|
758
|
+
}, [e, t, r, i]), d = B(() => {
|
|
759
759
|
const f = [];
|
|
760
760
|
for (let m = r; m <= i; m++)
|
|
761
761
|
f.push(m);
|
|
762
762
|
return f;
|
|
763
|
-
}, [r, i]), p =
|
|
763
|
+
}, [r, i]), p = B(() => {
|
|
764
764
|
const g = [];
|
|
765
765
|
for (let x = 0; x <= 11; x++)
|
|
766
766
|
g.push({
|
|
@@ -786,13 +786,13 @@ const Wu = /* @__PURE__ */ Ie.forwardRef(({
|
|
|
786
786
|
}, Qu = "_select_pywmr_1", Ju = {
|
|
787
787
|
select: Qu
|
|
788
788
|
}, Zi = 2e3, eo = 2050, Zu = ({ year: e, onChangeYear: t, className: n, variant: r = "standart", ...i }) => {
|
|
789
|
-
const o =
|
|
789
|
+
const o = B(() => {
|
|
790
790
|
var u;
|
|
791
791
|
return i.manualOptions ? ((u = i.options) == null ? void 0 : u.at(0)) ?? Zi : i.optionMin ?? Zi;
|
|
792
|
-
}, [i]), s =
|
|
792
|
+
}, [i]), s = B(() => {
|
|
793
793
|
var u;
|
|
794
794
|
return i.manualOptions ? ((u = i.options) == null ? void 0 : u.at(-1)) ?? eo : i.optionMax ?? eo;
|
|
795
|
-
}, [i]), l =
|
|
795
|
+
}, [i]), l = B(() => {
|
|
796
796
|
if (i.manualOptions)
|
|
797
797
|
return i.options;
|
|
798
798
|
const u = [];
|
|
@@ -881,7 +881,7 @@ const tp = (e) => (n) => {
|
|
|
881
881
|
widgetTitle: dp,
|
|
882
882
|
title: up
|
|
883
883
|
}, pp = ({ show: e, widgetGroups: t, widgets: n, handleClose: r, onWidgetPicked: i, texts: o }) => {
|
|
884
|
-
const [s, l] = L(""), c =
|
|
884
|
+
const [s, l] = L(""), c = B(() => n.filter((d) => d.id !== -1 && qe(d.name, s)), [n, s]), u = B(() => t.filter((d) => c.some((p) => p.group === d.id)), [t, c]);
|
|
885
885
|
return /* @__PURE__ */ a.jsxs(ce, { show: e, onHide: () => r(), size: "lg", children: [
|
|
886
886
|
/* @__PURE__ */ a.jsxs(ce.Header, { closeButton: !0, children: [
|
|
887
887
|
/* @__PURE__ */ a.jsx(ce.Title, { className: "w-100", children: o.pickWidgetToAdd }),
|
|
@@ -1002,7 +1002,7 @@ const tp = (e) => (n) => {
|
|
|
1002
1002
|
lg: Ip,
|
|
1003
1003
|
light: _p
|
|
1004
1004
|
}, Jj = ({ children: e, color: t = "primary", size: n = "md", rounded: r, className: i, variant: o = "filled", ...s }) => {
|
|
1005
|
-
const l =
|
|
1005
|
+
const l = B(() => o === "filled" ? I(`bg-${t}`) : o === "outline" ? I(`text-${t} border-${t} border bg-white`) : "", [t, o]);
|
|
1006
1006
|
return /* @__PURE__ */ a.jsx("span", { className: I("luminus-badge badge", l, i, { "rounded-pill": r }, { "text-dark": t === "light" }, { [ta.light]: t === "light" }, ta.badge, ta[n]), ...s, children: e });
|
|
1007
1007
|
}, Op = "_collapse-icon_1ahhn_1", Pp = "_collapsed_1ahhn_6", ao = {
|
|
1008
1008
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
@@ -1048,7 +1048,7 @@ const tp = (e) => (n) => {
|
|
|
1048
1048
|
q(() => {
|
|
1049
1049
|
d(c);
|
|
1050
1050
|
}, [c]);
|
|
1051
|
-
const f =
|
|
1051
|
+
const f = B(() => !n || !n.toString() || n.toString().split(",").filter((m) => m && m !== "false").length === 0, [n]);
|
|
1052
1052
|
return s && f ? null : /* @__PURE__ */ a.jsxs("div", { className: I("luminus-card rounded shadow-sm", $t.card, {
|
|
1053
1053
|
[r ?? ""]: r
|
|
1054
1054
|
}), children: [
|
|
@@ -1408,13 +1408,13 @@ function hl(e, t) {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
var xl = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Za : q;
|
|
1410
1410
|
function bl(e) {
|
|
1411
|
-
var t = e.store, n = e.context, r = e.children, i =
|
|
1411
|
+
var t = e.store, n = e.context, r = e.children, i = B(function() {
|
|
1412
1412
|
var l = hl(t);
|
|
1413
1413
|
return {
|
|
1414
1414
|
store: t,
|
|
1415
1415
|
subscription: l
|
|
1416
1416
|
};
|
|
1417
|
-
}, [t]), o =
|
|
1417
|
+
}, [t]), o = B(function() {
|
|
1418
1418
|
return t.getState();
|
|
1419
1419
|
}, [t]);
|
|
1420
1420
|
xl(function() {
|
|
@@ -1518,26 +1518,26 @@ function sf() {
|
|
|
1518
1518
|
var v = Symbol.for;
|
|
1519
1519
|
e = v("react.element"), t = v("react.portal"), n = v("react.fragment"), r = v("react.strict_mode"), i = v("react.profiler"), o = v("react.provider"), s = v("react.context"), l = v("react.forward_ref"), c = v("react.suspense"), u = v("react.suspense_list"), d = v("react.memo"), p = v("react.lazy"), f = v("react.block"), m = v("react.server.block"), g = v("react.fundamental"), x = v("react.debug_trace_mode"), h = v("react.legacy_hidden");
|
|
1520
1520
|
}
|
|
1521
|
-
function y(
|
|
1522
|
-
if (typeof
|
|
1523
|
-
var T =
|
|
1521
|
+
function y(S) {
|
|
1522
|
+
if (typeof S == "object" && S !== null) {
|
|
1523
|
+
var T = S.$$typeof;
|
|
1524
1524
|
switch (T) {
|
|
1525
1525
|
case e:
|
|
1526
|
-
switch (
|
|
1526
|
+
switch (S = S.type, S) {
|
|
1527
1527
|
case n:
|
|
1528
1528
|
case i:
|
|
1529
1529
|
case r:
|
|
1530
1530
|
case c:
|
|
1531
1531
|
case u:
|
|
1532
|
-
return
|
|
1532
|
+
return S;
|
|
1533
1533
|
default:
|
|
1534
|
-
switch (
|
|
1534
|
+
switch (S = S && S.$$typeof, S) {
|
|
1535
1535
|
case s:
|
|
1536
1536
|
case l:
|
|
1537
1537
|
case p:
|
|
1538
1538
|
case d:
|
|
1539
1539
|
case o:
|
|
1540
|
-
return
|
|
1540
|
+
return S;
|
|
1541
1541
|
default:
|
|
1542
1542
|
return T;
|
|
1543
1543
|
}
|
|
@@ -1547,35 +1547,35 @@ function sf() {
|
|
|
1547
1547
|
}
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
1550
|
-
var j = o, b = e, w = l, D = n,
|
|
1551
|
-
return we.ContextConsumer = s, we.ContextProvider = j, we.Element = b, we.ForwardRef = w, we.Fragment = D, we.Lazy =
|
|
1550
|
+
var j = o, b = e, w = l, D = n, C = p, _ = d, E = t, O = i, A = r, k = c;
|
|
1551
|
+
return we.ContextConsumer = s, we.ContextProvider = j, we.Element = b, we.ForwardRef = w, we.Fragment = D, we.Lazy = C, we.Memo = _, we.Portal = E, we.Profiler = O, we.StrictMode = A, we.Suspense = k, we.isAsyncMode = function() {
|
|
1552
1552
|
return !1;
|
|
1553
1553
|
}, we.isConcurrentMode = function() {
|
|
1554
1554
|
return !1;
|
|
1555
|
-
}, we.isContextConsumer = function(
|
|
1556
|
-
return y(
|
|
1557
|
-
}, we.isContextProvider = function(
|
|
1558
|
-
return y(
|
|
1559
|
-
}, we.isElement = function(
|
|
1560
|
-
return typeof
|
|
1561
|
-
}, we.isForwardRef = function(
|
|
1562
|
-
return y(
|
|
1563
|
-
}, we.isFragment = function(
|
|
1564
|
-
return y(
|
|
1565
|
-
}, we.isLazy = function(
|
|
1566
|
-
return y(
|
|
1567
|
-
}, we.isMemo = function(
|
|
1568
|
-
return y(
|
|
1569
|
-
}, we.isPortal = function(
|
|
1570
|
-
return y(
|
|
1571
|
-
}, we.isProfiler = function(
|
|
1572
|
-
return y(
|
|
1573
|
-
}, we.isStrictMode = function(
|
|
1574
|
-
return y(
|
|
1575
|
-
}, we.isSuspense = function(
|
|
1576
|
-
return y(
|
|
1577
|
-
}, we.isValidElementType = function(
|
|
1578
|
-
return typeof
|
|
1555
|
+
}, we.isContextConsumer = function(S) {
|
|
1556
|
+
return y(S) === s;
|
|
1557
|
+
}, we.isContextProvider = function(S) {
|
|
1558
|
+
return y(S) === o;
|
|
1559
|
+
}, we.isElement = function(S) {
|
|
1560
|
+
return typeof S == "object" && S !== null && S.$$typeof === e;
|
|
1561
|
+
}, we.isForwardRef = function(S) {
|
|
1562
|
+
return y(S) === l;
|
|
1563
|
+
}, we.isFragment = function(S) {
|
|
1564
|
+
return y(S) === n;
|
|
1565
|
+
}, we.isLazy = function(S) {
|
|
1566
|
+
return y(S) === p;
|
|
1567
|
+
}, we.isMemo = function(S) {
|
|
1568
|
+
return y(S) === d;
|
|
1569
|
+
}, we.isPortal = function(S) {
|
|
1570
|
+
return y(S) === t;
|
|
1571
|
+
}, we.isProfiler = function(S) {
|
|
1572
|
+
return y(S) === i;
|
|
1573
|
+
}, we.isStrictMode = function(S) {
|
|
1574
|
+
return y(S) === r;
|
|
1575
|
+
}, we.isSuspense = function(S) {
|
|
1576
|
+
return y(S) === c;
|
|
1577
|
+
}, we.isValidElementType = function(S) {
|
|
1578
|
+
return typeof S == "string" || typeof S == "function" || S === n || S === i || S === x || S === r || S === c || S === u || S === h || typeof S == "object" && S !== null && (S.$$typeof === p || S.$$typeof === d || S.$$typeof === o || S.$$typeof === s || S.$$typeof === l || S.$$typeof === g || S.$$typeof === f || S[0] === m);
|
|
1579
1579
|
}, we.typeOf = y, we;
|
|
1580
1580
|
}
|
|
1581
1581
|
var je = {};
|
|
@@ -1630,7 +1630,7 @@ function lf() {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
}
|
|
1632
1632
|
}
|
|
1633
|
-
var w = s, D = o,
|
|
1633
|
+
var w = s, D = o, C = e, _ = l, E = n, O = p, A = d, k = t, S = i, T = r, Y = c, $ = !1, H = !1;
|
|
1634
1634
|
function R(F) {
|
|
1635
1635
|
return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
1636
1636
|
}
|
|
@@ -1670,7 +1670,7 @@ function lf() {
|
|
|
1670
1670
|
function fe(F) {
|
|
1671
1671
|
return b(F) === c;
|
|
1672
1672
|
}
|
|
1673
|
-
je.ContextConsumer = w, je.ContextProvider = D, je.Element =
|
|
1673
|
+
je.ContextConsumer = w, je.ContextProvider = D, je.Element = C, je.ForwardRef = _, je.Fragment = E, je.Lazy = O, je.Memo = A, je.Portal = k, je.Profiler = S, je.StrictMode = T, je.Suspense = Y, je.isAsyncMode = R, je.isConcurrentMode = V, je.isContextConsumer = U, je.isContextProvider = X, je.isElement = Z, je.isForwardRef = oe, je.isFragment = se, je.isLazy = ye, je.isMemo = z, je.isPortal = ae, je.isProfiler = ge, je.isStrictMode = Ce, je.isSuspense = fe, je.isValidElementType = j, je.typeOf = b;
|
|
1674
1674
|
}()), je;
|
|
1675
1675
|
}
|
|
1676
1676
|
process.env.NODE_ENV === "production" ? Ta.exports = sf() : Ta.exports = lf();
|
|
@@ -1737,10 +1737,10 @@ function xf(e, t) {
|
|
|
1737
1737
|
throw new Error("storeKey has been removed and does not do anything. " + b);
|
|
1738
1738
|
}
|
|
1739
1739
|
var w = y;
|
|
1740
|
-
return function(
|
|
1741
|
-
if (process.env.NODE_ENV !== "production" && !bo.isValidElementType(
|
|
1742
|
-
throw new Error("You must pass a component to the function returned by " + (s + ". Instead received " + ff(
|
|
1743
|
-
var _ =
|
|
1740
|
+
return function(C) {
|
|
1741
|
+
if (process.env.NODE_ENV !== "production" && !bo.isValidElementType(C))
|
|
1742
|
+
throw new Error("You must pass a component to the function returned by " + (s + ". Instead received " + ff(C)));
|
|
1743
|
+
var _ = C.displayName || C.name || "Component", E = i(_), O = re({}, j, {
|
|
1744
1744
|
getDisplayName: i,
|
|
1745
1745
|
methodName: s,
|
|
1746
1746
|
renderCountProp: c,
|
|
@@ -1748,45 +1748,45 @@ function xf(e, t) {
|
|
|
1748
1748
|
storeKey: f,
|
|
1749
1749
|
displayName: E,
|
|
1750
1750
|
wrappedComponentName: _,
|
|
1751
|
-
WrappedComponent:
|
|
1751
|
+
WrappedComponent: C
|
|
1752
1752
|
}), A = j.pure;
|
|
1753
|
-
function
|
|
1753
|
+
function k(H) {
|
|
1754
1754
|
return e(H.dispatch, O);
|
|
1755
1755
|
}
|
|
1756
|
-
var
|
|
1756
|
+
var S = A ? B : function(H) {
|
|
1757
1757
|
return H();
|
|
1758
1758
|
};
|
|
1759
1759
|
function T(H) {
|
|
1760
|
-
var R =
|
|
1760
|
+
var R = B(function() {
|
|
1761
1761
|
var de = H.reactReduxForwardedRef, Fe = Dr(H, df);
|
|
1762
1762
|
return [H.context, de, Fe];
|
|
1763
|
-
}, [H]), V = R[0], U = R[1], X = R[2], Z =
|
|
1763
|
+
}, [H]), V = R[0], U = R[1], X = R[2], Z = B(function() {
|
|
1764
1764
|
return V && V.Consumer && bo.isContextConsumer(/* @__PURE__ */ le.createElement(V.Consumer, null)) ? V : w;
|
|
1765
1765
|
}, [V, w]), oe = G(Z), se = !!H.store && !!H.store.getState && !!H.store.dispatch, ye = !!oe && !!oe.store;
|
|
1766
1766
|
if (process.env.NODE_ENV !== "production" && !se && !ye)
|
|
1767
1767
|
throw new Error('Could not find "store" in the context of ' + ('"' + E + '". Either wrap the root component in a <Provider>, ') + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + E + " in connect options."));
|
|
1768
|
-
var z = se ? H.store : oe.store, ae =
|
|
1769
|
-
return
|
|
1770
|
-
}, [z]), ge =
|
|
1768
|
+
var z = se ? H.store : oe.store, ae = B(function() {
|
|
1769
|
+
return k(z);
|
|
1770
|
+
}, [z]), ge = B(function() {
|
|
1771
1771
|
if (!d) return pf;
|
|
1772
1772
|
var de = hl(z, se ? null : oe.subscription), Fe = de.notifyNestedSubs.bind(de);
|
|
1773
1773
|
return [de, Fe];
|
|
1774
|
-
}, [z, se, oe]), Ce = ge[0], fe = ge[1], F =
|
|
1774
|
+
}, [z, se, oe]), Ce = ge[0], fe = ge[1], F = B(function() {
|
|
1775
1775
|
return se ? oe : re({}, oe, {
|
|
1776
1776
|
subscription: Ce
|
|
1777
1777
|
});
|
|
1778
1778
|
}, [se, oe, Ce]), ue = lu(mf, uf, hf), _e = ue[0], He = _e[0], Ze = ue[1];
|
|
1779
1779
|
if (He && He.error)
|
|
1780
1780
|
throw He.error;
|
|
1781
|
-
var bt = te(), K = te(X), W = te(), ne = te(!1), pe =
|
|
1781
|
+
var bt = te(), K = te(X), W = te(), ne = te(!1), pe = S(function() {
|
|
1782
1782
|
return W.current && X === K.current ? W.current : ae(z.getState(), X);
|
|
1783
1783
|
}, [z, He, X]);
|
|
1784
1784
|
yo(gf, [K, bt, ne, X, pe, W, fe]), yo(vf, [d, z, Ce, ae, K, bt, ne, W, fe, Ze], [z, Ce, ae]);
|
|
1785
|
-
var Ee =
|
|
1786
|
-
return /* @__PURE__ */ le.createElement(
|
|
1785
|
+
var Ee = B(function() {
|
|
1786
|
+
return /* @__PURE__ */ le.createElement(C, re({}, pe, {
|
|
1787
1787
|
ref: U
|
|
1788
1788
|
}));
|
|
1789
|
-
}, [U,
|
|
1789
|
+
}, [U, C, pe]), he = B(function() {
|
|
1790
1790
|
return d ? /* @__PURE__ */ le.createElement(Z.Provider, {
|
|
1791
1791
|
value: F
|
|
1792
1792
|
}, Ee) : Ee;
|
|
@@ -1794,15 +1794,15 @@ function xf(e, t) {
|
|
|
1794
1794
|
return he;
|
|
1795
1795
|
}
|
|
1796
1796
|
var Y = A ? le.memo(T) : T;
|
|
1797
|
-
if (Y.WrappedComponent =
|
|
1797
|
+
if (Y.WrappedComponent = C, Y.displayName = T.displayName = E, h) {
|
|
1798
1798
|
var $ = le.forwardRef(function(R, V) {
|
|
1799
1799
|
return /* @__PURE__ */ le.createElement(Y, re({}, R, {
|
|
1800
1800
|
reactReduxForwardedRef: V
|
|
1801
1801
|
}));
|
|
1802
1802
|
});
|
|
1803
|
-
return $.displayName = E, $.WrappedComponent =
|
|
1803
|
+
return $.displayName = E, $.WrappedComponent = C, vo($, C);
|
|
1804
1804
|
}
|
|
1805
|
-
return vo(Y,
|
|
1805
|
+
return vo(Y, C);
|
|
1806
1806
|
};
|
|
1807
1807
|
}
|
|
1808
1808
|
function wo(e, t) {
|
|
@@ -1978,7 +1978,7 @@ function Vf(e) {
|
|
|
1978
1978
|
var t = {}, n = t.connectHOC, r = n === void 0 ? xf : n, i = t.mapStateToPropsFactories, o = i === void 0 ? Ef : i, s = t.mapDispatchToPropsFactories, l = s === void 0 ? Df : s, c = t.mergePropsFactories, u = c === void 0 ? Tf : c, d = t.selectorFactory, p = d === void 0 ? Lf : d;
|
|
1979
1979
|
return function(m, g, x, h) {
|
|
1980
1980
|
h === void 0 && (h = {});
|
|
1981
|
-
var v = h, y = v.pure, j = y === void 0 ? !0 : y, b = v.areStatesEqual, w = b === void 0 ? Ff : b, D = v.areOwnPropsEqual,
|
|
1981
|
+
var v = h, y = v.pure, j = y === void 0 ? !0 : y, b = v.areStatesEqual, w = b === void 0 ? Ff : b, D = v.areOwnPropsEqual, C = D === void 0 ? ra : D, _ = v.areStatePropsEqual, E = _ === void 0 ? ra : _, O = v.areMergedPropsEqual, A = O === void 0 ? ra : O, k = Dr(v, Mf), S = ia(m, o, "mapStateToProps"), T = ia(g, l, "mapDispatchToProps"), Y = ia(x, u, "mergeProps");
|
|
1982
1982
|
return r(p, re({
|
|
1983
1983
|
// used in error messages
|
|
1984
1984
|
methodName: "connect",
|
|
@@ -1989,15 +1989,15 @@ function Vf(e) {
|
|
|
1989
1989
|
// if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes
|
|
1990
1990
|
shouldHandleStateChanges: !!m,
|
|
1991
1991
|
// passed through to selectorFactory
|
|
1992
|
-
initMapStateToProps:
|
|
1992
|
+
initMapStateToProps: S,
|
|
1993
1993
|
initMapDispatchToProps: T,
|
|
1994
1994
|
initMergeProps: Y,
|
|
1995
1995
|
pure: j,
|
|
1996
1996
|
areStatesEqual: w,
|
|
1997
|
-
areOwnPropsEqual:
|
|
1997
|
+
areOwnPropsEqual: C,
|
|
1998
1998
|
areStatePropsEqual: E,
|
|
1999
1999
|
areMergedPropsEqual: A
|
|
2000
|
-
},
|
|
2000
|
+
}, k));
|
|
2001
2001
|
};
|
|
2002
2002
|
}
|
|
2003
2003
|
const Sl = /* @__PURE__ */ Vf();
|
|
@@ -3719,8 +3719,8 @@ var Bo = {
|
|
|
3719
3719
|
var j = t.payload, b = j.id, w = j.newScroll, D = e.dimensions.droppables[b];
|
|
3720
3720
|
if (!D)
|
|
3721
3721
|
return e;
|
|
3722
|
-
var
|
|
3723
|
-
return la(e,
|
|
3722
|
+
var C = ui(D, w);
|
|
3723
|
+
return la(e, C, !1);
|
|
3724
3724
|
}
|
|
3725
3725
|
if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
|
|
3726
3726
|
if (e.phase === "DROP_PENDING")
|
|
@@ -3729,16 +3729,16 @@ var Bo = {
|
|
|
3729
3729
|
var _ = t.payload, E = _.id, O = _.isEnabled, A = e.dimensions.droppables[E];
|
|
3730
3730
|
A || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot find Droppable[id: " + E + "] to toggle its enabled state") : N()), A.isEnabled === O && (process.env.NODE_ENV !== "production" ? N(!1, "Trying to set droppable isEnabled to " + String(O) + `
|
|
3731
3731
|
but it is already ` + String(A.isEnabled)) : N());
|
|
3732
|
-
var
|
|
3732
|
+
var k = re({}, A, {
|
|
3733
3733
|
isEnabled: O
|
|
3734
3734
|
});
|
|
3735
|
-
return la(e,
|
|
3735
|
+
return la(e, k, !0);
|
|
3736
3736
|
}
|
|
3737
3737
|
if (t.type === "UPDATE_DROPPABLE_IS_COMBINE_ENABLED") {
|
|
3738
3738
|
if (e.phase === "DROP_PENDING")
|
|
3739
3739
|
return e;
|
|
3740
3740
|
qt(e) || (process.env.NODE_ENV !== "production" ? N(!1, "Attempting to move in an unsupported phase " + e.phase) : N());
|
|
3741
|
-
var
|
|
3741
|
+
var S = t.payload, T = S.id, Y = S.isCombineEnabled, $ = e.dimensions.droppables[T];
|
|
3742
3742
|
$ || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot find Droppable[id: " + T + "] to toggle its isCombineEnabled state") : N()), $.isCombineEnabled === Y && (process.env.NODE_ENV !== "production" ? N(!1, "Trying to set droppable isCombineEnabled to " + String(Y) + `
|
|
3743
3743
|
but it is already ` + String($.isCombineEnabled)) : N());
|
|
3744
3744
|
var H = re({}, $, {
|
|
@@ -6067,20 +6067,20 @@ function Ih(e) {
|
|
|
6067
6067
|
function g() {
|
|
6068
6068
|
return t.isActive(p);
|
|
6069
6069
|
}
|
|
6070
|
-
function x(D,
|
|
6070
|
+
function x(D, C) {
|
|
6071
6071
|
pr({
|
|
6072
6072
|
expected: D,
|
|
6073
6073
|
phase: f,
|
|
6074
6074
|
isLockActive: g,
|
|
6075
6075
|
shouldWarn: !0
|
|
6076
|
-
}) && r.dispatch(
|
|
6076
|
+
}) && r.dispatch(C());
|
|
6077
6077
|
}
|
|
6078
6078
|
var h = x.bind(null, "DRAGGING");
|
|
6079
6079
|
function v(D) {
|
|
6080
|
-
function
|
|
6080
|
+
function C() {
|
|
6081
6081
|
t.release(), f = "COMPLETED";
|
|
6082
6082
|
}
|
|
6083
|
-
f !== "PRE_DRAG" && (
|
|
6083
|
+
f !== "PRE_DRAG" && (C(), f !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot lift in phase " + f) : N())), r.dispatch(fg(D.liftActionArgs)), f = "DRAGGING";
|
|
6084
6084
|
function _(E, O) {
|
|
6085
6085
|
if (O === void 0 && (O = {
|
|
6086
6086
|
shouldBlockNextClick: !1
|
|
@@ -6096,7 +6096,7 @@ function Ih(e) {
|
|
|
6096
6096
|
}]);
|
|
6097
6097
|
setTimeout(A);
|
|
6098
6098
|
}
|
|
6099
|
-
|
|
6099
|
+
C(), r.dispatch(ec({
|
|
6100
6100
|
reason: E
|
|
6101
6101
|
}));
|
|
6102
6102
|
}
|
|
@@ -6119,7 +6119,7 @@ function Ih(e) {
|
|
|
6119
6119
|
}, D.actions);
|
|
6120
6120
|
}
|
|
6121
6121
|
function y(D) {
|
|
6122
|
-
var
|
|
6122
|
+
var C = Hn(function(E) {
|
|
6123
6123
|
h(function() {
|
|
6124
6124
|
return Zl({
|
|
6125
6125
|
client: E
|
|
@@ -6132,14 +6132,14 @@ function Ih(e) {
|
|
|
6132
6132
|
movementMode: "FLUID"
|
|
6133
6133
|
},
|
|
6134
6134
|
cleanup: function() {
|
|
6135
|
-
return
|
|
6135
|
+
return C.cancel();
|
|
6136
6136
|
},
|
|
6137
6137
|
actions: {
|
|
6138
|
-
move:
|
|
6138
|
+
move: C
|
|
6139
6139
|
}
|
|
6140
6140
|
});
|
|
6141
6141
|
return re({}, _, {
|
|
6142
|
-
move:
|
|
6142
|
+
move: C
|
|
6143
6143
|
});
|
|
6144
6144
|
}
|
|
6145
6145
|
function j() {
|
|
@@ -6311,7 +6311,7 @@ function Th(e) {
|
|
|
6311
6311
|
n(w);
|
|
6312
6312
|
var D = J(function(E) {
|
|
6313
6313
|
return sc(An(s).getState(), E);
|
|
6314
|
-
}, []),
|
|
6314
|
+
}, []), C = J(function() {
|
|
6315
6315
|
return qt(An(s).getState());
|
|
6316
6316
|
}, []), _ = me(function() {
|
|
6317
6317
|
return {
|
|
@@ -6319,11 +6319,11 @@ function Th(e) {
|
|
|
6319
6319
|
focus: v,
|
|
6320
6320
|
contextId: t,
|
|
6321
6321
|
canLift: D,
|
|
6322
|
-
isMovementAllowed:
|
|
6322
|
+
isMovementAllowed: C,
|
|
6323
6323
|
dragHandleUsageInstructionsId: d,
|
|
6324
6324
|
registry: g
|
|
6325
6325
|
};
|
|
6326
|
-
}, [t, x, d, v, D,
|
|
6326
|
+
}, [t, x, d, v, D, C, g]);
|
|
6327
6327
|
return Oh({
|
|
6328
6328
|
contextId: t,
|
|
6329
6329
|
store: y,
|
|
@@ -6559,17 +6559,17 @@ function Kh(e) {
|
|
|
6559
6559
|
f();
|
|
6560
6560
|
}, [f, p]), g = J(function(b, w) {
|
|
6561
6561
|
t.current && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot collect a droppable while a drag is occurring") : N());
|
|
6562
|
-
var D = s.current,
|
|
6563
|
-
|
|
6564
|
-
var _ = Uh(
|
|
6565
|
-
ref:
|
|
6562
|
+
var D = s.current, C = D.getDroppableRef();
|
|
6563
|
+
C || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot collect without a droppable ref") : N());
|
|
6564
|
+
var _ = Uh(C), E = {
|
|
6565
|
+
ref: C,
|
|
6566
6566
|
descriptor: l,
|
|
6567
6567
|
env: _,
|
|
6568
6568
|
scrollOptions: w
|
|
6569
6569
|
};
|
|
6570
6570
|
t.current = E;
|
|
6571
6571
|
var O = zh({
|
|
6572
|
-
ref:
|
|
6572
|
+
ref: C,
|
|
6573
6573
|
descriptor: l,
|
|
6574
6574
|
env: _,
|
|
6575
6575
|
windowScroll: b,
|
|
@@ -6911,7 +6911,7 @@ function vx(e) {
|
|
|
6911
6911
|
} : null;
|
|
6912
6912
|
}, [o, s, m, g]), D = J(function(E) {
|
|
6913
6913
|
y.type === "DRAGGING" && y.dropping && E.propertyName === "transform" && j();
|
|
6914
|
-
}, [j, y]),
|
|
6914
|
+
}, [j, y]), C = me(function() {
|
|
6915
6915
|
var E = dx(y), O = y.type === "DRAGGING" && y.dropping ? D : null, A = {
|
|
6916
6916
|
innerRef: n,
|
|
6917
6917
|
draggableProps: {
|
|
@@ -6933,7 +6933,7 @@ function vx(e) {
|
|
|
6933
6933
|
}
|
|
6934
6934
|
};
|
|
6935
6935
|
}, [p.droppableId, p.id, p.index, p.type]);
|
|
6936
|
-
return f(
|
|
6936
|
+
return f(C, y.snapshot, _);
|
|
6937
6937
|
}
|
|
6938
6938
|
var jc = function(e, t) {
|
|
6939
6939
|
return e === t;
|
|
@@ -7106,12 +7106,12 @@ function Cx(e) {
|
|
|
7106
7106
|
t || (process.env.NODE_ENV !== "production" ? N(!1, "Could not find app context") : N());
|
|
7107
7107
|
var n = t.contextId, r = t.isMovementAllowed, i = te(null), o = te(null), s = e.children, l = e.droppableId, c = e.type, u = e.mode, d = e.direction, p = e.ignoreContainerClipping, f = e.isDropDisabled, m = e.isCombineEnabled, g = e.snapshot, x = e.useClone, h = e.updateViewportMaxScroll, v = e.getContainerForClone, y = J(function() {
|
|
7108
7108
|
return i.current;
|
|
7109
|
-
}, []), j = J(function(
|
|
7110
|
-
i.current =
|
|
7109
|
+
}, []), j = J(function(k) {
|
|
7110
|
+
i.current = k;
|
|
7111
7111
|
}, []), b = J(function() {
|
|
7112
7112
|
return o.current;
|
|
7113
|
-
}, []), w = J(function(
|
|
7114
|
-
o.current =
|
|
7113
|
+
}, []), w = J(function(k) {
|
|
7114
|
+
o.current = k;
|
|
7115
7115
|
}, []);
|
|
7116
7116
|
rx({
|
|
7117
7117
|
props: e,
|
|
@@ -7133,14 +7133,14 @@ function Cx(e) {
|
|
|
7133
7133
|
ignoreContainerClipping: p,
|
|
7134
7134
|
getDroppableRef: y
|
|
7135
7135
|
});
|
|
7136
|
-
var
|
|
7136
|
+
var C = le.createElement(ax, {
|
|
7137
7137
|
on: e.placeholder,
|
|
7138
7138
|
shouldAnimate: e.shouldAnimatePlaceholder
|
|
7139
|
-
}, function(
|
|
7140
|
-
var
|
|
7139
|
+
}, function(k) {
|
|
7140
|
+
var S = k.onClose, T = k.data, Y = k.animate;
|
|
7141
7141
|
return le.createElement(Zh, {
|
|
7142
7142
|
placeholder: T,
|
|
7143
|
-
onClose:
|
|
7143
|
+
onClose: S,
|
|
7144
7144
|
innerRef: w,
|
|
7145
7145
|
animate: Y,
|
|
7146
7146
|
contextId: n,
|
|
@@ -7149,13 +7149,13 @@ function Cx(e) {
|
|
|
7149
7149
|
}), _ = me(function() {
|
|
7150
7150
|
return {
|
|
7151
7151
|
innerRef: j,
|
|
7152
|
-
placeholder:
|
|
7152
|
+
placeholder: C,
|
|
7153
7153
|
droppableProps: {
|
|
7154
7154
|
"data-rbd-droppable-id": l,
|
|
7155
7155
|
"data-rbd-droppable-context-id": n
|
|
7156
7156
|
}
|
|
7157
7157
|
};
|
|
7158
|
-
}, [n, l,
|
|
7158
|
+
}, [n, l, C, j]), E = x ? x.dragging.draggableId : null, O = me(function() {
|
|
7159
7159
|
return {
|
|
7160
7160
|
droppableId: l,
|
|
7161
7161
|
type: c,
|
|
@@ -7165,15 +7165,15 @@ function Cx(e) {
|
|
|
7165
7165
|
function A() {
|
|
7166
7166
|
if (!x)
|
|
7167
7167
|
return null;
|
|
7168
|
-
var
|
|
7169
|
-
draggableId:
|
|
7170
|
-
index:
|
|
7168
|
+
var k = x.dragging, S = x.render, T = le.createElement(Sc, {
|
|
7169
|
+
draggableId: k.draggableId,
|
|
7170
|
+
index: k.source.index,
|
|
7171
7171
|
isClone: !0,
|
|
7172
7172
|
isEnabled: !0,
|
|
7173
7173
|
shouldRespectForcePress: !1,
|
|
7174
7174
|
canDragInteractiveElements: !0
|
|
7175
7175
|
}, function(Y, $) {
|
|
7176
|
-
return
|
|
7176
|
+
return S(Y, $, k);
|
|
7177
7177
|
});
|
|
7178
7178
|
return $n.createPortal(T, v());
|
|
7179
7179
|
}
|
|
@@ -7458,9 +7458,9 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7458
7458
|
break;
|
|
7459
7459
|
}
|
|
7460
7460
|
}, [b, j, t]), D = (E, O) => {
|
|
7461
|
-
const A = Array.from(g), [
|
|
7462
|
-
return A.splice(O, 0,
|
|
7463
|
-
},
|
|
7461
|
+
const A = Array.from(g), [k] = A.splice(E, 1);
|
|
7462
|
+
return A.splice(O, 0, k), A;
|
|
7463
|
+
}, C = (E) => {
|
|
7464
7464
|
if (!E.destination)
|
|
7465
7465
|
return;
|
|
7466
7466
|
const O = D(E.source.index, E.destination.index);
|
|
@@ -7486,16 +7486,16 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7486
7486
|
s && /* @__PURE__ */ a.jsx(Bs, { accept: ".jpg,.jpeg,.png", onUpload: (E) => {
|
|
7487
7487
|
E.length > 0 && s(Array.from(E));
|
|
7488
7488
|
}, icon: /* @__PURE__ */ a.jsx(Ls, { style: { fontSize: 18 } }), multiple: !0, className: "me-1 me-lg-3", children: i ?? null }),
|
|
7489
|
-
/* @__PURE__ */ a.jsx(qa, { children: y && (l == null ? void 0 : l.map(({ label: E, onClick: O, ...A },
|
|
7489
|
+
/* @__PURE__ */ a.jsx(qa, { children: y && (l == null ? void 0 : l.map(({ label: E, onClick: O, ...A }, k) => /* @__PURE__ */ a.jsx(
|
|
7490
7490
|
Sr,
|
|
7491
7491
|
{
|
|
7492
7492
|
hideOn: "sm",
|
|
7493
|
-
cKey: `action-${
|
|
7493
|
+
cKey: `action-${k}`,
|
|
7494
7494
|
onClick: () => O(y.id),
|
|
7495
7495
|
...A,
|
|
7496
7496
|
children: typeof E == "string" ? E : E(y.id)
|
|
7497
7497
|
},
|
|
7498
|
-
`action-${
|
|
7498
|
+
`action-${k}`
|
|
7499
7499
|
))) })
|
|
7500
7500
|
] }),
|
|
7501
7501
|
/* @__PURE__ */ a.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ a.jsx(Bt, { style: { fontSize: "32px" } }) })
|
|
@@ -7506,16 +7506,16 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7506
7506
|
/* @__PURE__ */ a.jsx(p, { src: y.lgSrc, alt: y.alt, className: I("rounded", Ve.photo), baseUrl: c, customToken: u, placeholder: d, renderAsDivBg: !0 }),
|
|
7507
7507
|
/* @__PURE__ */ a.jsx("div", { role: b ? "button" : void 0, className: I("align-items-end", Ve.navButton, Ve.right), onClick: () => b && v((E) => E + 1), children: b && /* @__PURE__ */ a.jsx(za, { style: { fontSize: "40px" } }) })
|
|
7508
7508
|
] }),
|
|
7509
|
-
/* @__PURE__ */ a.jsx("div", { className: I("d-flex justify-content-center", Ve.photosPreviewContainer), children: /* @__PURE__ */ a.jsx(kh, { onDragEnd:
|
|
7510
|
-
g.map((O, A) => /* @__PURE__ */ a.jsx(Sx, { draggableId: O.id, index: A, isDragDisabled: f === void 0, children: m((
|
|
7511
|
-
var
|
|
7512
|
-
return /* @__PURE__ */ a.jsxs("div", { ref:
|
|
7509
|
+
/* @__PURE__ */ a.jsx("div", { className: I("d-flex justify-content-center", Ve.photosPreviewContainer), children: /* @__PURE__ */ a.jsx(kh, { onDragEnd: C, children: /* @__PURE__ */ a.jsx(Vx, { droppableId: "droppable", direction: "horizontal", children: (E) => /* @__PURE__ */ a.jsxs("div", { ...E.droppableProps, ref: E.innerRef, className: Ve.photosPreview, children: [
|
|
7510
|
+
g.map((O, A) => /* @__PURE__ */ a.jsx(Sx, { draggableId: O.id, index: A, isDragDisabled: f === void 0, children: m((k) => {
|
|
7511
|
+
var S;
|
|
7512
|
+
return /* @__PURE__ */ a.jsxs("div", { ref: k.innerRef, ...k.draggableProps, ...k.dragHandleProps, role: "button", onClick: () => v(A), className: I(Ve.lightboxDraggablePhoto), children: [
|
|
7513
7513
|
/* @__PURE__ */ a.jsx(p, { role: A !== h ? "button" : void 0, src: O.smSrc, alt: O.alt, className: I("rounded", Ve.photo, {
|
|
7514
7514
|
[Ve.selected]: A === h
|
|
7515
7515
|
}), baseUrl: c, customToken: u, placeholder: d }, O.id),
|
|
7516
7516
|
O.isDefault || O.customIndicators && O.customIndicators.length > 0 ? /* @__PURE__ */ a.jsxs("div", { className: I(Ve.indicators, "gap-1"), children: [
|
|
7517
7517
|
O.isDefault && /* @__PURE__ */ a.jsx("div", { className: "text-primary", children: /* @__PURE__ */ a.jsx(_d, {}) }),
|
|
7518
|
-
(
|
|
7518
|
+
(S = O.customIndicators) == null ? void 0 : S.map((T, Y) => (
|
|
7519
7519
|
// eslint-disable-next-line react/no-array-index-key
|
|
7520
7520
|
/* @__PURE__ */ a.jsx("div", { className: T.className, children: T.content }, Y)
|
|
7521
7521
|
))
|
|
@@ -7659,7 +7659,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7659
7659
|
backgroundSize: "contain"
|
|
7660
7660
|
} }) : /* @__PURE__ */ a.jsx("img", { ...s, alt: t ?? "", src: c ?? i });
|
|
7661
7661
|
}, nN = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, renderAsDivBg: o, ...s }) => {
|
|
7662
|
-
const { data: l } = ke("/photos/SAS", { silent: !0 }), c =
|
|
7662
|
+
const { data: l } = ke("/photos/SAS", { silent: !0 }), c = B(() => `${e}?${l}`, [e, l]);
|
|
7663
7663
|
return !l || !e ? null : o ? /* @__PURE__ */ a.jsx("div", { ...s, style: {
|
|
7664
7664
|
backgroundImage: c ? `url(${c})` : void 0,
|
|
7665
7665
|
backgroundRepeat: "no-repeat",
|
|
@@ -7763,7 +7763,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7763
7763
|
o(!0);
|
|
7764
7764
|
}, []), l = P(() => {
|
|
7765
7765
|
o(!1);
|
|
7766
|
-
}, []), c =
|
|
7766
|
+
}, []), c = B(() => {
|
|
7767
7767
|
switch (t) {
|
|
7768
7768
|
case "email":
|
|
7769
7769
|
return "mailto";
|
|
@@ -7781,7 +7781,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7781
7781
|
] }) })
|
|
7782
7782
|
] });
|
|
7783
7783
|
}, Cb = ({ contactType: e, value: t, className: n, children: r, showIconWithChildren: i }) => {
|
|
7784
|
-
const { ProjectIconComponent: o } = G(Q), s =
|
|
7784
|
+
const { ProjectIconComponent: o } = G(Q), s = B(() => {
|
|
7785
7785
|
switch (e) {
|
|
7786
7786
|
case "email":
|
|
7787
7787
|
return "mailto";
|
|
@@ -7790,7 +7790,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7790
7790
|
default:
|
|
7791
7791
|
throw new Error("Incorrect type for ContactsLink");
|
|
7792
7792
|
}
|
|
7793
|
-
}, [e]), l =
|
|
7793
|
+
}, [e]), l = B(() => {
|
|
7794
7794
|
switch (e) {
|
|
7795
7795
|
case "email":
|
|
7796
7796
|
return "mail";
|
|
@@ -7828,19 +7828,19 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7828
7828
|
] })
|
|
7829
7829
|
] })
|
|
7830
7830
|
] });
|
|
7831
|
-
}, rN = ({ value: e, label: t, InputContainer: n = yn, className: r, withoutLabel: i, hidden: o, disabled: s, contactType: l, ...c }) => o ? null : /* @__PURE__ */ a.jsx(Oc, { contactType: l, value: e, withoutLabel: i, label: t, className: r, children: /* @__PURE__ */ a.jsx(rt, { type: "text", value: e, disabled: s, InputContainer: n, size: "sm", withoutLabel: !0, ...c }) }), aN = ({ InputContainer: e = yn, items: t, selectedItemNavigateTo: n, onSearchQueryChange: r, texts: i, isLoading: o, value: s, onSelect: l, label: c, withoutLabel: u, size: d, dropdownItemsNameWidth: p, additionalColumns: f, hidden: m, disabled: g, displayIdAsName: x, CustomOnChangeComponent: h, className: v, archiveColumn: y, icon: j, hint: b, addNewOptionPath: w, refreshOptions: D, MiniDetailComponent:
|
|
7832
|
-
const [A,
|
|
7831
|
+
}, rN = ({ value: e, label: t, InputContainer: n = yn, className: r, withoutLabel: i, hidden: o, disabled: s, contactType: l, ...c }) => o ? null : /* @__PURE__ */ a.jsx(Oc, { contactType: l, value: e, withoutLabel: i, label: t, className: r, children: /* @__PURE__ */ a.jsx(rt, { type: "text", value: e, disabled: s, InputContainer: n, size: "sm", withoutLabel: !0, ...c }) }), aN = ({ InputContainer: e = yn, items: t, selectedItemNavigateTo: n, onSearchQueryChange: r, texts: i, isLoading: o, value: s, onSelect: l, label: c, withoutLabel: u, size: d, dropdownItemsNameWidth: p, additionalColumns: f, hidden: m, disabled: g, displayIdAsName: x, CustomOnChangeComponent: h, className: v, archiveColumn: y, icon: j, hint: b, addNewOptionPath: w, refreshOptions: D, MiniDetailComponent: C, miniDetailPlacement: _, suggestedItems: E, suggestedItemsTitle: O }) => {
|
|
7832
|
+
const [A, k] = L(!1), S = P((V) => {
|
|
7833
7833
|
l && l(V);
|
|
7834
7834
|
}, [l]), T = P((V) => {
|
|
7835
|
-
|
|
7836
|
-
}, [
|
|
7835
|
+
k(!1), S(V);
|
|
7836
|
+
}, [S]), Y = te(null), $ = n !== void 0, H = $ && s !== null, R = B(() => {
|
|
7837
7837
|
var V, U;
|
|
7838
7838
|
return x ? ((V = s == null ? void 0 : s.id) == null ? void 0 : V.toString()) ?? "" : s != null && s.name && s.name.length > 0 ? s.name : ((U = s == null ? void 0 : s.id) == null ? void 0 : U.toString()) ?? "";
|
|
7839
7839
|
}, [s, x]);
|
|
7840
7840
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { withoutLabel: u, label: c ?? "", hidden: m, inputContainerClassName: I({ "luminus-dropdown-select-open": A }), className: v, hint: b, disabled: g, children: [
|
|
7841
7841
|
/* @__PURE__ */ a.jsxs(Ya, { currentSelection: s, selectedItemNavigateTo: n, children: [
|
|
7842
7842
|
x && (s == null ? void 0 : s.name) && /* @__PURE__ */ a.jsx(M, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: s.name }),
|
|
7843
|
-
/* @__PURE__ */ a.jsx(Ka, { value: (s == null ? void 0 : s.id) ?? null, MiniDetailComponent:
|
|
7843
|
+
/* @__PURE__ */ a.jsx(Ka, { value: (s == null ? void 0 : s.id) ?? null, MiniDetailComponent: C, miniDetailPlacement: _, children: /* @__PURE__ */ a.jsxs(
|
|
7844
7844
|
ve.Select,
|
|
7845
7845
|
{
|
|
7846
7846
|
ref: Y,
|
|
@@ -7850,7 +7850,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7850
7850
|
V.currentTarget.focus(), V.preventDefault();
|
|
7851
7851
|
},
|
|
7852
7852
|
onClick: () => {
|
|
7853
|
-
!$ && !g &&
|
|
7853
|
+
!$ && !g && k(!0);
|
|
7854
7854
|
},
|
|
7855
7855
|
onChange: () => {
|
|
7856
7856
|
},
|
|
@@ -7867,12 +7867,12 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7867
7867
|
) }),
|
|
7868
7868
|
h || !g && $ ? /* @__PURE__ */ a.jsxs("div", { className: "custom-picker-button", children: [
|
|
7869
7869
|
!h && !g && $ && /* @__PURE__ */ a.jsx(ee, { size: "sm", color: "secondary", onClick: (V) => {
|
|
7870
|
-
V.preventDefault(), V.stopPropagation(),
|
|
7870
|
+
V.preventDefault(), V.stopPropagation(), k(!0);
|
|
7871
7871
|
}, children: j ?? /* @__PURE__ */ a.jsx(Fs, {}) }),
|
|
7872
7872
|
h ?? null
|
|
7873
7873
|
] }) : null
|
|
7874
7874
|
] }),
|
|
7875
|
-
Y.current && /* @__PURE__ */ a.jsx(Xa, { show: A, onCancel: () =>
|
|
7875
|
+
Y.current && /* @__PURE__ */ a.jsx(Xa, { show: A, onCancel: () => k(!1), items: t, currentSelection: s, onSelectionChange: T, onSearchQueryChange: r, texts: i, itemsNameWidth: p, additionalColumns: f, isLoading: o, disabled: g, inputRef: Y, archiveColumn: y, displayIdAsName: x, addNewOptionPath: w, refreshOptions: D, suggestedItems: E, suggestedItemsTitle: O })
|
|
7876
7876
|
] }) });
|
|
7877
7877
|
}, iN = ({ InputContainer: e = yn, value: t, onChange: n, label: r, size: i, showClearIcon: o, clearValue: s, hidden: l, disabled: c, rows: u, withoutLabel: d, debounceMs: p, minLength: f, maxLength: m, className: g, hint: x }) => {
|
|
7878
7878
|
const h = P(() => {
|
|
@@ -7881,17 +7881,17 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7881
7881
|
const D = s ?? null;
|
|
7882
7882
|
n((D == null ? void 0 : D.toString()) ?? "");
|
|
7883
7883
|
}, [s, n]), v = te(null), [y, j] = L((t == null ? void 0 : t.toString()) ?? ""), b = P((D) => {
|
|
7884
|
-
const
|
|
7885
|
-
n && n(
|
|
7884
|
+
const C = D;
|
|
7885
|
+
n && n(C || null);
|
|
7886
7886
|
}, [n]), w = P((D) => {
|
|
7887
7887
|
var _;
|
|
7888
|
-
const
|
|
7888
|
+
const C = (_ = D.target) == null ? void 0 : _.value;
|
|
7889
7889
|
if (!p) {
|
|
7890
|
-
b(
|
|
7890
|
+
b(C);
|
|
7891
7891
|
return;
|
|
7892
7892
|
}
|
|
7893
|
-
j(
|
|
7894
|
-
b(
|
|
7893
|
+
j(C), v.current !== null && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
7894
|
+
b(C);
|
|
7895
7895
|
}, p);
|
|
7896
7896
|
}, [p, b]);
|
|
7897
7897
|
return q(() => {
|
|
@@ -7909,7 +7909,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7909
7909
|
}, [p, n]), j = te(null), [b, w] = L((t == null ? void 0 : t.toString()) ?? ""), D = P((_) => {
|
|
7910
7910
|
const E = _;
|
|
7911
7911
|
n && n(E == null || E === "" ? null : Bn(Number(E), x, h));
|
|
7912
|
-
}, [h, x, n]),
|
|
7912
|
+
}, [h, x, n]), C = P((_) => {
|
|
7913
7913
|
var O;
|
|
7914
7914
|
const E = (O = _.target) == null ? void 0 : O.value;
|
|
7915
7915
|
if (!r) {
|
|
@@ -7923,7 +7923,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7923
7923
|
return q(() => {
|
|
7924
7924
|
w(t === null ? "" : Bn(t, x, h).toString());
|
|
7925
7925
|
}, [h, x, t]), /* @__PURE__ */ a.jsx(e, { withoutLabel: o, label: i ?? "", hidden: c, hint: v, className: f, disabled: u, children: /* @__PURE__ */ a.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
7926
|
-
/* @__PURE__ */ a.jsx(ve.Control, { type: "number", placeholder: s ?? i, size: l, value: r ? b : t ?? "", onChange:
|
|
7926
|
+
/* @__PURE__ */ a.jsx(ve.Control, { type: "number", placeholder: s ?? i, size: l, value: r ? b : t ?? "", onChange: C, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: u ?? !1, step: m }),
|
|
7927
7927
|
/* @__PURE__ */ a.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ a.jsx(ee, { size: "sm", onClick: (_) => {
|
|
7928
7928
|
_.preventDefault(), _.stopPropagation(), D(((t ?? 0) - g).toString());
|
|
7929
7929
|
}, children: /* @__PURE__ */ a.jsx(Vs, {}) }) }),
|
|
@@ -8160,7 +8160,7 @@ function Lc(e, t, n, r, i, o) {
|
|
|
8160
8160
|
}, p = e, f = n;
|
|
8161
8161
|
pn(e) && (p = c.numAsString, f = !0);
|
|
8162
8162
|
var m = s(p, f);
|
|
8163
|
-
return
|
|
8163
|
+
return B(function() {
|
|
8164
8164
|
u(m);
|
|
8165
8165
|
}, [m.formattedValue]), [c, d];
|
|
8166
8166
|
}
|
|
@@ -8193,8 +8193,8 @@ function qb(e) {
|
|
|
8193
8193
|
y === void 0 && (y = Hb);
|
|
8194
8194
|
var j = e.isValidInputCharacter;
|
|
8195
8195
|
j === void 0 && (j = Zn);
|
|
8196
|
-
var b = e.isCharacterSame, w = Pc(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), D = Lc(v, c, !!u, s, l, d),
|
|
8197
|
-
|
|
8196
|
+
var b = e.isCharacterSame, w = Pc(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), D = Lc(v, c, !!u, s, l, d), C = D[0], _ = C.formattedValue, E = C.numAsString, O = D[1], A = te(), k = te({ formattedValue: _, numAsString: E }), S = function(K, W) {
|
|
8197
|
+
k.current = { formattedValue: K.formattedValue, numAsString: K.value }, O(K, W);
|
|
8198
8198
|
}, T = L(!1), Y = T[0], $ = T[1], H = te(null), R = te({
|
|
8199
8199
|
setCaretTimeout: null,
|
|
8200
8200
|
focusTimeout: null
|
|
@@ -8228,11 +8228,11 @@ function qb(e) {
|
|
|
8228
8228
|
var Fe = K.inputValue || ne.value, ot = ya(ne);
|
|
8229
8229
|
ne.value = W, de = oe(Fe, W, ot), de !== void 0 && X(ne, de, W);
|
|
8230
8230
|
}
|
|
8231
|
-
W !== _ &&
|
|
8231
|
+
W !== _ && S(U(W, he), { event: Ee, source: pe });
|
|
8232
8232
|
};
|
|
8233
8233
|
q(function() {
|
|
8234
|
-
var K =
|
|
8235
|
-
(_ !== W || E !== ne) &&
|
|
8234
|
+
var K = k.current, W = K.formattedValue, ne = K.numAsString;
|
|
8235
|
+
(_ !== W || E !== ne) && S(U(_, E), {
|
|
8236
8236
|
event: void 0,
|
|
8237
8237
|
source: Jn.props
|
|
8238
8238
|
});
|
|
@@ -8240,8 +8240,8 @@ function qb(e) {
|
|
|
8240
8240
|
var ye = H.current ? ya(H.current) : void 0, z = typeof window < "u" ? Za : q;
|
|
8241
8241
|
z(function() {
|
|
8242
8242
|
var K = H.current;
|
|
8243
|
-
if (_ !==
|
|
8244
|
-
var W = oe(
|
|
8243
|
+
if (_ !== k.current.formattedValue && K) {
|
|
8244
|
+
var W = oe(k.current.formattedValue, _, ye);
|
|
8245
8245
|
K.value = _, X(K, W, _);
|
|
8246
8246
|
}
|
|
8247
8247
|
}, [_]);
|
|
@@ -8376,17 +8376,17 @@ function Qb(e, t, n) {
|
|
|
8376
8376
|
return X && (Z = 2), Z && (H = H.substring(Z), R -= Z, V -= Z), { value: H, start: R, end: V, hasNegation: U };
|
|
8377
8377
|
}, y = v(e, d, p), j = y.hasNegation;
|
|
8378
8378
|
r = y, e = r.value, d = r.start, p = r.end;
|
|
8379
|
-
var b = v(t.lastValue, c.start, c.end), w = b.start, D = b.end,
|
|
8380
|
-
e.length &&
|
|
8379
|
+
var b = v(t.lastValue, c.start, c.end), w = b.start, D = b.end, C = b.value, _ = e.substring(d, p);
|
|
8380
|
+
e.length && C.length && (w > C.length - s.length || D < o.length) && !(_ && s.startsWith(_)) && (e = C);
|
|
8381
8381
|
var E = 0;
|
|
8382
8382
|
e.startsWith(o) ? E += o.length : d < o.length && (E = d), e = e.substring(E), p -= E;
|
|
8383
8383
|
var O = e.length, A = e.length - s.length;
|
|
8384
8384
|
e.endsWith(s) ? O = A : (p > A || p > e.length - s.length) && (O = p), e = e.substring(0, O), e = Yb(j ? "-" + e : e, i), e = (e.match(Kb(g)) || []).join("");
|
|
8385
|
-
var
|
|
8385
|
+
var k = e.indexOf(g);
|
|
8386
8386
|
e = e.replace(new RegExp(Ac(g), "g"), function(H, R) {
|
|
8387
|
-
return R ===
|
|
8387
|
+
return R === k ? "." : "";
|
|
8388
8388
|
});
|
|
8389
|
-
var
|
|
8389
|
+
var S = Ri(e, i), T = S.beforeDecimal, Y = S.afterDecimal, $ = S.addNegation;
|
|
8390
8390
|
return u.end - u.start < c.end - c.start && T === "" && x && !parseFloat(Y) && (e = $ ? "-" : ""), e;
|
|
8391
8391
|
}
|
|
8392
8392
|
function Jb(e, t) {
|
|
@@ -8433,7 +8433,7 @@ function ey(e) {
|
|
|
8433
8433
|
pn(p) ? pn(d) || (w = w || typeof d == "number") : w = w || typeof p == "number";
|
|
8434
8434
|
var D = function($) {
|
|
8435
8435
|
return Tc($) ? $ : (typeof $ == "number" && ($ = kc($)), w && typeof l == "number" ? is($, l, !!c) : $);
|
|
8436
|
-
},
|
|
8436
|
+
}, C = Lc(D(p), D(d), !!w, y, j, m), _ = C[0], E = _.numAsString, O = _.formattedValue, A = C[1], k = function($) {
|
|
8437
8437
|
var H = $.target, R = $.key, V = H.selectionStart, U = H.selectionEnd, X = H.value;
|
|
8438
8438
|
if (X === void 0 && (X = ""), (R === "Backspace" || R === "Delete") && U < u.length) {
|
|
8439
8439
|
$.preventDefault();
|
|
@@ -8446,7 +8446,7 @@ function ey(e) {
|
|
|
8446
8446
|
R === "Backspace" && X[0] === "-" && V === u.length + 1 && n && Kt(H, 1), l && c && (R === "Backspace" && X[V - 1] === h ? (Kt(H, V - 1), $.preventDefault()) : R === "Delete" && X[V] === h && $.preventDefault()), v != null && v.includes(R) && X[V] === h && Kt(H, V + 1);
|
|
8447
8447
|
var Z = s === !0 ? "," : s;
|
|
8448
8448
|
R === "Backspace" && X[V - 1] === Z && Kt(H, V - 1), R === "Delete" && X[V] === Z && Kt(H, V + 1), i($);
|
|
8449
|
-
},
|
|
8449
|
+
}, S = function($) {
|
|
8450
8450
|
var H = E;
|
|
8451
8451
|
if (H.match(/\d/g) || (H = ""), r || (H = Lb(H)), c && l && (H = is(H, l, c)), H !== E) {
|
|
8452
8452
|
var R = ss(H, e);
|
|
@@ -8479,8 +8479,8 @@ function ey(e) {
|
|
|
8479
8479
|
getCaretBoundary: function($) {
|
|
8480
8480
|
return Jb($, e);
|
|
8481
8481
|
},
|
|
8482
|
-
onKeyDown:
|
|
8483
|
-
onBlur:
|
|
8482
|
+
onKeyDown: k,
|
|
8483
|
+
onBlur: S
|
|
8484
8484
|
});
|
|
8485
8485
|
}
|
|
8486
8486
|
function ki(e) {
|
|
@@ -8491,20 +8491,20 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
8491
8491
|
const D = P(() => {
|
|
8492
8492
|
if (!n)
|
|
8493
8493
|
return;
|
|
8494
|
-
const
|
|
8495
|
-
n(
|
|
8496
|
-
}, [p, n]),
|
|
8497
|
-
const
|
|
8498
|
-
n && n(
|
|
8499
|
-
}, [n]), A = P((
|
|
8494
|
+
const k = p ?? null;
|
|
8495
|
+
n(k ? Number(k) : null);
|
|
8496
|
+
}, [p, n]), C = te(null), [_, E] = L((t == null ? void 0 : t.toString()) ?? ""), O = P((k) => {
|
|
8497
|
+
const S = k;
|
|
8498
|
+
n && n(S == null || S === "" ? null : Number(S));
|
|
8499
|
+
}, [n]), A = P((k) => {
|
|
8500
8500
|
var T, Y;
|
|
8501
|
-
let
|
|
8502
|
-
if (Number.isNaN(
|
|
8503
|
-
O(
|
|
8501
|
+
let S = parseFloat(((Y = (T = k.target) == null ? void 0 : T.value) == null ? void 0 : Y.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
|
|
8502
|
+
if (Number.isNaN(S) && (S = 0), !r) {
|
|
8503
|
+
O(S.toString());
|
|
8504
8504
|
return;
|
|
8505
8505
|
}
|
|
8506
|
-
E(
|
|
8507
|
-
O(
|
|
8506
|
+
E(S.toString()), C.current !== null && window.clearTimeout(C.current), C.current = window.setTimeout(() => {
|
|
8507
|
+
O(S.toString());
|
|
8508
8508
|
}, r);
|
|
8509
8509
|
}, [r, O]);
|
|
8510
8510
|
return q(() => {
|
|
@@ -8514,8 +8514,8 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
8514
8514
|
}, [_, b, j, E]), q(() => {
|
|
8515
8515
|
!n || t === null || (b !== void 0 && t > b && n(b), j !== void 0 && t < j && n(j));
|
|
8516
8516
|
}, [t, b, j, n]), /* @__PURE__ */ a.jsxs(e, { withoutLabel: o, label: i ?? "", hidden: c, className: f, hint: w, disabled: u, children: [
|
|
8517
|
-
/* @__PURE__ */ a.jsx(ki, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: x, fixedDecimalScale: h, prefix: v, suffix: y, defaultValue: "", value: r ? _ : (t == null ? void 0 : t.toString()) ?? "", placeholder: s ?? i, onFocus: (
|
|
8518
|
-
!g &&
|
|
8517
|
+
/* @__PURE__ */ a.jsx(ki, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: x, fixedDecimalScale: h, prefix: v, suffix: y, defaultValue: "", value: r ? _ : (t == null ? void 0 : t.toString()) ?? "", placeholder: s ?? i, onFocus: (k) => {
|
|
8518
|
+
!g && k.target.select();
|
|
8519
8519
|
}, onChange: A, hidden: c, disabled: u, className: I("form-control text-end w-100", {
|
|
8520
8520
|
[`form-control-${l}`]: l
|
|
8521
8521
|
}), step: m, min: j, max: b }),
|
|
@@ -8615,7 +8615,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
8615
8615
|
}, [n, t]);
|
|
8616
8616
|
return { setFromToProp: r, handleArrowClick: i, handleRangeChange: o };
|
|
8617
8617
|
}, sN = ({ fromtoState: [e, t], className: n, size: r }) => {
|
|
8618
|
-
const { texts: { date: i }, ProjectIconComponent: o } = G(Q), [s, l] = L("C"), { handleArrowClick: c, handleRangeChange: u, setFromToProp: d } = ly(s, l, t), p =
|
|
8618
|
+
const { texts: { date: i }, ProjectIconComponent: o } = G(Q), [s, l] = L("C"), { handleArrowClick: c, handleRangeChange: u, setFromToProp: d } = ly(s, l, t), p = B(() => s === "C", [s]), f = te(!0);
|
|
8619
8619
|
return q(() => {
|
|
8620
8620
|
if (f.current) {
|
|
8621
8621
|
const m = sy(e.from, e.to);
|
|
@@ -8674,7 +8674,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
8674
8674
|
] : [], onClick: (o) => r && r(o.data) });
|
|
8675
8675
|
}, cy = ({ val: e, translateKey: t, data: n, unit: r }) => {
|
|
8676
8676
|
var c, u;
|
|
8677
|
-
const i = e.point.id.split("."), o = i[0], s = Number(i[1]), l =
|
|
8677
|
+
const i = e.point.id.split("."), o = i[0], s = Number(i[1]), l = B(() => {
|
|
8678
8678
|
const d = e.point.x < 100 ? "56%" : "-56%", p = e.point.y < 60 ? "70px" : "8px";
|
|
8679
8679
|
return { transform: `translate(${d}, ${p})` };
|
|
8680
8680
|
}, [e.point.x, e.point.y]);
|
|
@@ -8696,45 +8696,51 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
8696
8696
|
var A;
|
|
8697
8697
|
const O = (A = g.current) == null ? void 0 : A.querySelector("svg");
|
|
8698
8698
|
if (O && await u(p.confirmExport)) {
|
|
8699
|
-
const
|
|
8700
|
-
|
|
8701
|
-
const T = new XMLSerializer().serializeToString(
|
|
8699
|
+
const k = O.cloneNode(!0);
|
|
8700
|
+
k.setAttribute("fill", "none");
|
|
8701
|
+
const T = new XMLSerializer().serializeToString(k);
|
|
8702
8702
|
$d(new Blob([T], {
|
|
8703
8703
|
type: "image/svg+xml"
|
|
8704
8704
|
}), "graf.svg");
|
|
8705
8705
|
}
|
|
8706
8706
|
}, h = (O) => {
|
|
8707
8707
|
m((A) => {
|
|
8708
|
-
const
|
|
8709
|
-
return
|
|
8708
|
+
const k = new Set(A);
|
|
8709
|
+
return k.has(O.id) ? k.delete(O.id) : k.add(O.id), k;
|
|
8710
8710
|
});
|
|
8711
|
-
}, v =
|
|
8712
|
-
var
|
|
8713
|
-
return typeof A[t] == "number" && typeof O[t] == "number" ? O[t] - A[t] : (O[t] ?? "").toString().localeCompare(((
|
|
8714
|
-
}), [e, l, t]), y =
|
|
8711
|
+
}, v = B(() => l ? e : e.toSorted((O, A) => {
|
|
8712
|
+
var k;
|
|
8713
|
+
return typeof A[t] == "number" && typeof O[t] == "number" ? O[t] - A[t] : (O[t] ?? "").toString().localeCompare(((k = A[t]) == null ? void 0 : k.toString()) ?? "");
|
|
8714
|
+
}), [e, l, t]), y = B(() => {
|
|
8715
8715
|
const O = [];
|
|
8716
8716
|
return n.forEach((A) => {
|
|
8717
8717
|
if (i) {
|
|
8718
|
-
const
|
|
8719
|
-
if (
|
|
8718
|
+
const k = Math.max(...v.map((T) => T[A.key] ?? -1 / 0));
|
|
8719
|
+
if (k === -1 / 0)
|
|
8720
8720
|
return;
|
|
8721
|
-
const
|
|
8721
|
+
const S = [];
|
|
8722
8722
|
v.forEach((T) => {
|
|
8723
|
-
T[A] != null &&
|
|
8723
|
+
T[A.key] != null && S.push({ x: T[t], y: k === 0 ? 0 : T[A.key] / k });
|
|
8724
8724
|
}), O.push({
|
|
8725
|
-
id: A,
|
|
8726
|
-
data:
|
|
8725
|
+
id: A.key,
|
|
8726
|
+
data: S
|
|
8727
8727
|
});
|
|
8728
8728
|
} else
|
|
8729
8729
|
O.push({
|
|
8730
|
-
id: A,
|
|
8731
|
-
data: v.map((
|
|
8730
|
+
id: A.key,
|
|
8731
|
+
data: v.map((k) => ({ x: k[t], y: k[A.key] }))
|
|
8732
8732
|
});
|
|
8733
8733
|
}), O;
|
|
8734
|
-
}, [v, i, t, n]), j = P((O) =>
|
|
8734
|
+
}, [v, i, t, n]), j = P((O) => {
|
|
8735
|
+
var A;
|
|
8736
|
+
return /* @__PURE__ */ a.jsx(cy, { data: v, translateKey: r, val: O, unit: ((A = n.find((k) => {
|
|
8737
|
+
var S;
|
|
8738
|
+
return k.key === ((S = O.point) == null ? void 0 : S.serieId);
|
|
8739
|
+
})) == null ? void 0 : A.unit) ?? c ?? void 0 });
|
|
8740
|
+
}, [v, r, c, n]), b = B(() => Math.min(...e.map((O) => O[t] ?? 1 / 0)), [e, t]), w = B(() => Math.max(...e.map((O) => O[t] ?? -1 / 0)), [e, t]), D = B(() => {
|
|
8735
8741
|
var O;
|
|
8736
8742
|
return typeof ((O = e == null ? void 0 : e[0]) == null ? void 0 : O[t]);
|
|
8737
|
-
}, [e, t]),
|
|
8743
|
+
}, [e, t]), C = s ?? (o === "sideContent" ? "bottom" : "right"), _ = B(() => !i && o !== "sideContent", [i, o]), E = B(() => [b, w], [w, b]);
|
|
8738
8744
|
return /* @__PURE__ */ a.jsx("div", { ref: g, className: "d-flex h-100 w-100", children: /* @__PURE__ */ a.jsx(Vd, { onClick: () => x(), data: y, xScale: D === "string" ? { type: "point" } : { type: "linear", min: b }, yScale: { type: "linear", nice: !0 }, axisLeft: _ ? {
|
|
8739
8745
|
tickSize: 5,
|
|
8740
8746
|
tickPadding: 5,
|
|
@@ -8746,21 +8752,21 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
8746
8752
|
// format: val => `${val * 100} %`,
|
|
8747
8753
|
} : null, axisBottom: {
|
|
8748
8754
|
tickValues: o === "sideContent" ? E : void 0
|
|
8749
|
-
}, gridYValues: o === "sideContent" ? [0] : void 0, legends:
|
|
8755
|
+
}, gridYValues: o === "sideContent" ? [0] : void 0, legends: C !== "none" ? [
|
|
8750
8756
|
{
|
|
8751
8757
|
data: n.map((O, A) => ({
|
|
8752
|
-
id: O,
|
|
8753
|
-
label: r(O),
|
|
8758
|
+
id: O.key,
|
|
8759
|
+
label: r(O.key),
|
|
8754
8760
|
color: d == null ? void 0 : d[A],
|
|
8755
|
-
hidden: f.has(O)
|
|
8761
|
+
hidden: f.has(O.key)
|
|
8756
8762
|
})),
|
|
8757
8763
|
onClick: h,
|
|
8758
|
-
anchor:
|
|
8759
|
-
direction:
|
|
8764
|
+
anchor: C,
|
|
8765
|
+
direction: C === "right" ? "column" : "row",
|
|
8760
8766
|
toggleSerie: !0,
|
|
8761
8767
|
justify: !1,
|
|
8762
|
-
translateX:
|
|
8763
|
-
translateY:
|
|
8768
|
+
translateX: C === "right" ? 120 : void 0,
|
|
8769
|
+
translateY: C === "right" ? 0 : C === "bottom" ? 44 : void 0,
|
|
8764
8770
|
itemsSpacing: 0,
|
|
8765
8771
|
itemDirection: "left-to-right",
|
|
8766
8772
|
itemWidth: 100,
|
|
@@ -8781,8 +8787,8 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
8781
8787
|
}
|
|
8782
8788
|
] : void 0, pointSize: 6, pointColor: { theme: "background" }, pointBorderWidth: 2, pointBorderColor: { from: "serieColor" }, margin: {
|
|
8783
8789
|
top: 10,
|
|
8784
|
-
right:
|
|
8785
|
-
bottom:
|
|
8790
|
+
right: C === "right" ? 130 : 20,
|
|
8791
|
+
bottom: C === "bottom" ? 44 : 20,
|
|
8786
8792
|
left: _ ? 50 : 20
|
|
8787
8793
|
}, colors: d, isInteractive: !0, enableCrosshair: !0, enableTouchCrosshair: !0, useMesh: !0, animate: !1, tooltip: j }) });
|
|
8788
8794
|
}, dy = ({ errors: e, schema: t }) => {
|
|
@@ -8859,13 +8865,13 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
8859
8865
|
var h, v, y, j;
|
|
8860
8866
|
const { texts: { dynamicForms: s } } = G(Q), [l, c] = L("");
|
|
8861
8867
|
r == null || r.sort((b, w) => (b.name ?? "").localeCompare(w.name ?? ""));
|
|
8862
|
-
const u =
|
|
8868
|
+
const u = B(() => {
|
|
8863
8869
|
var b;
|
|
8864
8870
|
return e ? (b = e == null ? void 0 : e.toString()) == null ? void 0 : b.split(o) : [];
|
|
8865
8871
|
}, [e, o]), d = P((b, w) => {
|
|
8866
|
-
const D = b.split(o),
|
|
8867
|
-
i(
|
|
8868
|
-
}, [i, u, o]), p =
|
|
8872
|
+
const D = b.split(o), C = w ? D.every((_) => u.includes(_)) && u.length === D.length ? null : D : b === "" ? void 0 : u.includes(b) ? u.filter((_) => _ !== b) : [...u, b];
|
|
8873
|
+
i(C != null && C.length ? C.join(o) : null);
|
|
8874
|
+
}, [i, u, o]), p = B(() => {
|
|
8869
8875
|
const b = [
|
|
8870
8876
|
{
|
|
8871
8877
|
value: r.map((w) => {
|
|
@@ -8877,10 +8883,10 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
8877
8883
|
}
|
|
8878
8884
|
];
|
|
8879
8885
|
return r.forEach((w) => {
|
|
8880
|
-
var D,
|
|
8886
|
+
var D, C;
|
|
8881
8887
|
b.push({
|
|
8882
8888
|
value: ((D = w.id) == null ? void 0 : D.toString()) ?? "",
|
|
8883
|
-
label: ((
|
|
8889
|
+
label: ((C = w.name) == null ? void 0 : C.toString()) ?? "",
|
|
8884
8890
|
specialOption: !1
|
|
8885
8891
|
});
|
|
8886
8892
|
}), b;
|
|
@@ -9027,7 +9033,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9027
9033
|
/* @__PURE__ */ a.jsx(n, { icon: "info" })
|
|
9028
9034
|
] }) }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t });
|
|
9029
9035
|
}, ky = ({ column: e, sortByField: t, sortByType: n, setSortBy: r }) => {
|
|
9030
|
-
const { ProjectIconComponent: i } = G(Q), o = te(null), s =
|
|
9036
|
+
const { ProjectIconComponent: i } = G(Q), o = te(null), s = B(() => {
|
|
9031
9037
|
if (e.valuesForSelect && e.valuesForSelect.length > 0)
|
|
9032
9038
|
return 200;
|
|
9033
9039
|
switch (e.type) {
|
|
@@ -9115,7 +9121,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9115
9121
|
apiExportGet: "/dynamicForms/export"
|
|
9116
9122
|
}, pN = ({ id: e, page: t, setPage: n, filters: r, setFilter: i, sortByField: o, sortByType: s, setSortBy: l, appUrls: { appDetail: c = ms.appDetail } = ms, apiUrls: { apiSchemaGet: u = Ht.apiSchemaGet, apiDataGet: d = Ht.apiDataGet, apiItemPost: p = Ht.apiItemPost, apiItemDelete: f = Ht.apiItemDelete, apiItemCreate: m = Ht.apiItemCreate, apiExportGet: g = Ht.apiExportGet } = Ht, customPickers: x }) => {
|
|
9117
9123
|
var Fe, ot, st, rn, Li, Mi, Fi;
|
|
9118
|
-
const { texts: { dynamicForms: h }, ProjectIconComponent: v } = G(Q), y = Ke(), { startLoading: j, stopLoading: b } = G(xt), [w, D] = L(null), [
|
|
9124
|
+
const { texts: { dynamicForms: h }, ProjectIconComponent: v } = G(Q), y = Ke(), { startLoading: j, stopLoading: b } = G(xt), [w, D] = L(null), [C, _] = L(null), [E, O] = L(null), [A, k] = L(null), [S, T] = L(!1), { addNotification: Y } = Zt(), [$, H] = L([]), { confirm: R } = Dt(), V = 20, U = V + 1, X = A ? Math.ceil(A.length / V) : 1, Z = t ? t > 1 : !1, oe = t ? t < X : !1, se = t ? (t - 1) * V : 0, ye = t ? t * V : V, z = B(() => A ? A.length > U : !1, [A, U]), ae = B(() => z ? (A == null ? void 0 : A.slice(se, ye)) ?? null : A ?? null, [z, A, se, ye]), [ge, Ce] = Xt("masterId", null, "string"), [fe, F] = L(ge);
|
|
9119
9125
|
q(() => {
|
|
9120
9126
|
D(null), _(null), T(!1), H([]);
|
|
9121
9127
|
}, [e]), q(() => {
|
|
@@ -9132,7 +9138,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9132
9138
|
_([]);
|
|
9133
9139
|
return;
|
|
9134
9140
|
}
|
|
9135
|
-
j("dynamicFormData"), await y.get(`${d}?id=${e}&showArchive=${
|
|
9141
|
+
j("dynamicFormData"), await y.get(`${d}?id=${e}&showArchive=${S}${w.masterReference ? `&master=${fe}` : ""}`).then(({ data: xe }) => {
|
|
9136
9142
|
const Se = xe.map((be) => {
|
|
9137
9143
|
var Oe;
|
|
9138
9144
|
return Object.fromEntries(((Oe = w.columns) == null ? void 0 : Oe.filter((Re) => Re.field).map((Re) => [
|
|
@@ -9143,12 +9149,12 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9143
9149
|
_(Se), b("dynamicFormData");
|
|
9144
9150
|
}).catch(() => b("dynamicFormData"));
|
|
9145
9151
|
}
|
|
9146
|
-
}, [y, e, w, j, b,
|
|
9152
|
+
}, [y, e, w, j, b, S, fe, d]), He = P(async () => {
|
|
9147
9153
|
var ie;
|
|
9148
|
-
w === null || ((ie = w.id) == null ? void 0 : ie.toString()) !== e || w.masterReference && !fe || (j("dynamicFormExport"), await y.get(`${g}?id=${e}&showArchive=${
|
|
9154
|
+
w === null || ((ie = w.id) == null ? void 0 : ie.toString()) !== e || w.masterReference && !fe || (j("dynamicFormExport"), await y.get(`${g}?id=${e}&showArchive=${S}${w.masterReference ? `&master=${fe}` : ""}`, {
|
|
9149
9155
|
responseType: "blob"
|
|
9150
9156
|
}).then((xe) => Gd(xe, { fallbackName: `export-${e}` })).finally(() => b("dynamicFormExport")));
|
|
9151
|
-
}, [y, e, w, j, b,
|
|
9157
|
+
}, [y, e, w, j, b, S, fe, g]), Ze = P(async (ie) => (j("dynamicFormEdit"), y.post(`${p}?id=${e}`, ie).then(() => (b("dynamicFormEdit"), H([]), !0)).catch((xe) => (b("dynamicFormEdit"), H(Qr(xe)), !1))), [y, e, j, b, p]), bt = P(async (ie) => (j("dynamicFormDelete"), y.delete(`${f}?id=${e}&pk=${ie}`).then(() => (b("dynamicFormDelete"), H([]), !0)).catch((xe) => (b("dynamicFormDelete"), H(Qr(xe)), !1))), [y, e, j, b, f]), K = P(async (ie) => (j("dynamicFormCreate"), y.post(`${m}?id=${e}`, ie).then(({ data: xe }) => (b("dynamicFormCreate"), H([]), xe)).catch((xe) => (b("dynamicFormCreate"), H(Qr(xe)), null))), [y, e, j, b, m]), W = P(async (ie) => {
|
|
9152
9158
|
w && await Ze(w.masterReference ? { ...ie, [w.masterReferenceColumn ?? ""]: fe } : ie) && (Y(h.editSuccess, "success"), _((xe) => xe && xe.map((Se) => {
|
|
9153
9159
|
var be;
|
|
9154
9160
|
return ((be = Se[(w == null ? void 0 : w.primaryKey) ?? ""]) == null ? void 0 : be.value) === ie[(w == null ? void 0 : w.primaryKey) ?? ""] ? ds(ie, w) : Se;
|
|
@@ -9171,11 +9177,11 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9171
9177
|
}, [Y, K, h, w, fe]), Ee = (ie) => {
|
|
9172
9178
|
ie > X ? n(X) : ie < 1 && n(1), n(ie);
|
|
9173
9179
|
}, he = P(() => {
|
|
9174
|
-
if (!
|
|
9180
|
+
if (!C || !w) {
|
|
9175
9181
|
O(null);
|
|
9176
9182
|
return;
|
|
9177
9183
|
}
|
|
9178
|
-
const ie =
|
|
9184
|
+
const ie = C.filter((xe) => Object.entries(r).every(([Se, be]) => {
|
|
9179
9185
|
var Sn, Cn, En;
|
|
9180
9186
|
if (be === null)
|
|
9181
9187
|
return !0;
|
|
@@ -9199,16 +9205,16 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9199
9205
|
}
|
|
9200
9206
|
}));
|
|
9201
9207
|
O(ie);
|
|
9202
|
-
}, [
|
|
9208
|
+
}, [C, r, w]), de = P(() => {
|
|
9203
9209
|
if (!E || !w) {
|
|
9204
|
-
|
|
9210
|
+
k([]);
|
|
9205
9211
|
return;
|
|
9206
9212
|
}
|
|
9207
9213
|
if (!o) {
|
|
9208
|
-
|
|
9214
|
+
k(E);
|
|
9209
9215
|
return;
|
|
9210
9216
|
}
|
|
9211
|
-
|
|
9217
|
+
k([...E].sort((ie, xe) => {
|
|
9212
9218
|
var Nn, Dn, Sn, Cn, En, or;
|
|
9213
9219
|
const Se = ((Dn = (Nn = ie[o]) == null ? void 0 : Nn.value) == null ? void 0 : Dn.toString()) ?? "", be = ((Cn = (Sn = xe[o]) == null ? void 0 : Sn.value) == null ? void 0 : Cn.toString()) ?? "", Oe = w.columns.find((gt) => gt.field === o), Re = Oe == null ? void 0 : Oe.type;
|
|
9214
9220
|
if (!Oe || !Re || !Se && !be)
|
|
@@ -9268,7 +9274,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9268
9274
|
] }, ie.id);
|
|
9269
9275
|
}),
|
|
9270
9276
|
/* @__PURE__ */ a.jsxs(Mt, { toggle: /* @__PURE__ */ a.jsx(Ft, { as: en }), children: [
|
|
9271
|
-
/* @__PURE__ */ a.jsx(Ye, { onClick: () => T(!
|
|
9277
|
+
/* @__PURE__ */ a.jsx(Ye, { onClick: () => T(!S), children: S ? h.hideArchived : h.showArchived }),
|
|
9272
9278
|
/* @__PURE__ */ a.jsx(Us, {}),
|
|
9273
9279
|
/* @__PURE__ */ a.jsx(Ye, { onClick: He, icon: /* @__PURE__ */ a.jsx(v, { icon: "file-download" }), children: h.downloadExport })
|
|
9274
9280
|
] })
|
|
@@ -9310,13 +9316,13 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9310
9316
|
e.description && /* @__PURE__ */ a.jsx(M, { variant: "body2", className: "text-muted mt-2", children: e.description })
|
|
9311
9317
|
] }) : /* @__PURE__ */ a.jsx(Fy, { item: e, children: /* @__PURE__ */ a.jsx(Ge, { to: `${vn(n, { id: (l = e.id) == null ? void 0 : l.toString() })}?type=${e.type}&search=${r ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(i == null ? void 0 : i.toString()) === ((c = e.id) == null ? void 0 : c.toString()) ? "active" : ""}`, children: /* @__PURE__ */ a.jsx(M, { variant: "body2", children: e.name }) }) }, e.id);
|
|
9312
9318
|
}, fN = ({ activeId: e, anchoredForms: t, otherForms: n = [], groupsDefs: r = [], searchQuery: i, fullSize: o, appUrls: { appDetail: s = gs.appDetail } = gs, apiUrls: { apiDynamicFormsGet: l = vs.apiDynamicFormsGet } = vs }) => {
|
|
9313
|
-
const c = Ke(), { startLoading: u, stopLoading: d } = G(xt), [p, f] = L(null), [m] = Xt("search", ""), g =
|
|
9319
|
+
const c = Ke(), { startLoading: u, stopLoading: d } = G(xt), [p, f] = L(null), [m] = Xt("search", ""), g = B(() => (t == null ? void 0 : t.filter((y) => qe(y.name, i) || qe(y.description, i)).sort((y, j) => (y.name ?? "").localeCompare(j.name ?? ""))) ?? [], [t, i]), x = B(() => [
|
|
9314
9320
|
...(p == null ? void 0 : p.map((y) => ({
|
|
9315
9321
|
...y,
|
|
9316
9322
|
type: "dynamic-form"
|
|
9317
9323
|
}))) ?? [],
|
|
9318
9324
|
...n
|
|
9319
|
-
].filter((y) => qe(y.name, i) || qe(y.description, i)).sort((y, j) => (y.name ?? "").localeCompare(j.name ?? "")) ?? [], [p, n, i]), h =
|
|
9325
|
+
].filter((y) => qe(y.name, i) || qe(y.description, i)).sort((y, j) => (y.name ?? "").localeCompare(j.name ?? "")) ?? [], [p, n, i]), h = B(() => r.map((y) => ({
|
|
9320
9326
|
id: y.id,
|
|
9321
9327
|
name: y.name ?? "",
|
|
9322
9328
|
items: x.filter((j) => j.group === y.id)
|
|
@@ -9424,14 +9430,14 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9424
9430
|
] })
|
|
9425
9431
|
] }))) }) }) });
|
|
9426
9432
|
}, xs = ({ reportVersion: e, getReportRoute: t, report: n }) => /* @__PURE__ */ a.jsx(Br, { as: Ge, to: t(n, e.id), className: "p-1 px-2", action: !0, children: /* @__PURE__ */ a.jsx(M, { variant: "body2", className: "d-flex justify-content-between align-items-center gap-3", children: /* @__PURE__ */ a.jsx("div", { className: "link", children: e.name }) }) }), gr = 5, bs = ({ versionsList: e, getReportRoute: t, report: n }) => {
|
|
9427
|
-
const { ProjectIconComponent: r } = G(Q), [i, o] = L(!0), s =
|
|
9433
|
+
const { ProjectIconComponent: r } = G(Q), [i, o] = L(!0), s = B(() => e.length <= gr ? e : e.slice(0, gr - 1), [e]), l = B(() => e.length <= gr ? [] : e.slice(gr - 1), [e]);
|
|
9428
9434
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(Vn, { children: [
|
|
9429
9435
|
s.map((c) => /* @__PURE__ */ a.jsx(xs, { reportVersion: c, getReportRoute: t, report: n })),
|
|
9430
9436
|
i ? null : l.map((c) => /* @__PURE__ */ a.jsx(xs, { reportVersion: c, getReportRoute: t, report: n })),
|
|
9431
9437
|
l.length > 0 && /* @__PURE__ */ a.jsx(Br, { onClick: () => o((c) => !c), className: "py-0 d-flex justify-content-center", children: i ? /* @__PURE__ */ a.jsx(r, { icon: "chevron-down" }) : /* @__PURE__ */ a.jsx(r, { icon: "chevron-up" }) })
|
|
9432
9438
|
] }) });
|
|
9433
9439
|
}, Ky = ({ report: e, getReportRoute: t, getReportName: n, getReportDescription: r }) => {
|
|
9434
|
-
const i =
|
|
9440
|
+
const i = B(() => e.versionsCustom.length === 0 ? { xs: 12 } : { xs: 12, sm: 6, md: 12, lg: 12, xl: 12, xxl: 6 }, [e.versionsCustom.length]);
|
|
9435
9441
|
return /* @__PURE__ */ a.jsx("div", { className: "col-12 col-lg-4", children: /* @__PURE__ */ a.jsxs(
|
|
9436
9442
|
Qt,
|
|
9437
9443
|
{
|
|
@@ -9455,14 +9461,14 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9455
9461
|
const { texts: { reports: l } } = G(Q), [c, u] = L(""), [d] = Qa(c, 500), p = P((h) => h.map((v) => ({
|
|
9456
9462
|
...v,
|
|
9457
9463
|
groupId: !v.groupId || v.groupId === 0 || !e.some((y) => y === v.groupId) ? 999 : v.groupId
|
|
9458
|
-
})), [e]), { data: f } = ke(t, { dataTransformer: p }), m =
|
|
9464
|
+
})), [e]), { data: f } = ke(t, { dataTransformer: p }), m = B(() => {
|
|
9459
9465
|
if (f === null)
|
|
9460
9466
|
return {};
|
|
9461
9467
|
const h = {};
|
|
9462
9468
|
return e.forEach((v) => {
|
|
9463
9469
|
h[v] = f.filter((y) => y.groupId === v && (qe(r(y), d) || qe(i(y), d) || y.versions.some((j) => qe(j.name, d)) || y.versionsCustom.some((j) => qe(j.name, d))));
|
|
9464
9470
|
}), h;
|
|
9465
|
-
}, [d, e, f, i, r]), g =
|
|
9471
|
+
}, [d, e, f, i, r]), g = B(() => e.filter((h) => {
|
|
9466
9472
|
var v;
|
|
9467
9473
|
return ((v = m[h]) == null ? void 0 : v.length) > 0;
|
|
9468
9474
|
}), [m, e]), { isMobile: x } = kr();
|
|
@@ -9516,7 +9522,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9516
9522
|
/* @__PURE__ */ a.jsx(M, { variant: "caption", children: e }),
|
|
9517
9523
|
/* @__PURE__ */ a.jsx(M, { variant: "body2", className: "text-end", children: t ?? "-" })
|
|
9518
9524
|
] }), DN = ({ route: e, variant: t = "link", children: n, className: r, disabled: i = !1, routeParams: o }) => {
|
|
9519
|
-
const { checkUserHasPermissions: s } = Hs(), l =
|
|
9525
|
+
const { checkUserHasPermissions: s } = Hs(), l = B(() => i || !(e.permissions === void 0 || s(e.permissions)), [s, i, e.permissions]), c = n ?? e.name, u = B(() => {
|
|
9520
9526
|
switch (t) {
|
|
9521
9527
|
case "primaryButton":
|
|
9522
9528
|
return mt;
|
|
@@ -9603,7 +9609,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9603
9609
|
/* @__PURE__ */ a.jsx("div", { className: lt.textLayer, children: r })
|
|
9604
9610
|
] })
|
|
9605
9611
|
] }), EN = ({ showArchived: e, BnfTableComponent: t, tableIdentifier: n, detailRoute: r }) => {
|
|
9606
|
-
const { texts: { substitutions: i } } = G(Q), { data: o } = ke(`/permissions/substitutions?archived=${e}`), s =
|
|
9612
|
+
const { texts: { substitutions: i } } = G(Q), { data: o } = ke(`/permissions/substitutions?archived=${e}`), s = B(() => ({ enable: !0, column: "archived" }), []), l = B(() => [
|
|
9607
9613
|
{
|
|
9608
9614
|
fieldName: "employeeName",
|
|
9609
9615
|
caption: i.index.employeeName,
|
|
@@ -9649,48 +9655,48 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9649
9655
|
const { register: f, formState: m, setValue: g } = Ct(), x = St({ falseIfNotInit: !0 }), [h, v] = L(void 0), [y, j] = L(!1);
|
|
9650
9656
|
q(() => {
|
|
9651
9657
|
const D = t.split(".");
|
|
9652
|
-
let
|
|
9658
|
+
let C = m.errors;
|
|
9653
9659
|
D.forEach((_) => {
|
|
9654
|
-
|
|
9655
|
-
}), v(
|
|
9660
|
+
C !== void 0 && (C = C[_]);
|
|
9661
|
+
}), v(C);
|
|
9656
9662
|
}, [m, t]);
|
|
9657
|
-
const b =
|
|
9663
|
+
const b = B(() => l || x, [l, x]), w = h !== void 0;
|
|
9658
9664
|
return q(() => {
|
|
9659
9665
|
m.isSubmitted && j(!0);
|
|
9660
9666
|
}, [m]), /* @__PURE__ */ a.jsxs(e, { isForCheckInput: !0, hidden: s, label: n ?? "", required: o, disabled: b, isInvalid: w, withoutLabel: c, hint: u, className: p, children: [
|
|
9661
9667
|
/* @__PURE__ */ a.jsx(ve.Check, { id: `check-${t}`, type: i ?? "checkbox", label: `${n}${o ? " *" : ""}`, ...f(t, {
|
|
9662
9668
|
onChange: (D) => {
|
|
9663
|
-
r && r.forEach((
|
|
9669
|
+
r && r.forEach((C) => g(C, null, { shouldDirty: !0, shouldValidate: y })), d && d(D.target.value ?? null);
|
|
9664
9670
|
}
|
|
9665
9671
|
}), isInvalid: w, hidden: s, disabled: b, className: "w-100" }),
|
|
9666
9672
|
h && /* @__PURE__ */ a.jsx(tn, { message: h.message })
|
|
9667
9673
|
] });
|
|
9668
9674
|
}, _N = ({ InputContainer: e = Pe, label: t, formField: n, options: r, resetsFields: i, required: o, disabled: s, hidden: l, onChange: c, className: u }) => {
|
|
9669
|
-
const { register: d, formState: p, setValue: f, watch: m } = Ct(), g = St({ falseIfNotInit: !0 }), [x, h] = L(void 0), [v, y] = L(!1), j =
|
|
9675
|
+
const { register: d, formState: p, setValue: f, watch: m } = Ct(), g = St({ falseIfNotInit: !0 }), [x, h] = L(void 0), [v, y] = L(!1), j = B(() => r, [r]), b = B(() => s || g, [s, g]);
|
|
9670
9676
|
q(() => {
|
|
9671
9677
|
const D = n.split(".");
|
|
9672
|
-
let
|
|
9678
|
+
let C = p.errors;
|
|
9673
9679
|
D.forEach((_) => {
|
|
9674
|
-
|
|
9675
|
-
}), h(
|
|
9680
|
+
C !== void 0 && (C = C[_]);
|
|
9681
|
+
}), h(C);
|
|
9676
9682
|
}, [p, n]), q(() => {
|
|
9677
9683
|
p.isSubmitted && y(!0);
|
|
9678
9684
|
}, [p]);
|
|
9679
9685
|
const w = x !== void 0;
|
|
9680
9686
|
return /* @__PURE__ */ a.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: o, disabled: b, isInvalid: w, className: u, children: [
|
|
9681
9687
|
j.map((D) => /* @__PURE__ */ a.jsx(ve.Check, { id: `radio-${D.id}`, label: D.name, type: "radio", value: D.id ?? "", checked: m(n) === D.id, ...d(n, {
|
|
9682
|
-
onChange: (
|
|
9688
|
+
onChange: (C) => {
|
|
9683
9689
|
var _;
|
|
9684
|
-
i && i.forEach((E) => f(E, null, { shouldDirty: !0, shouldValidate: v })), c && c((_ =
|
|
9690
|
+
i && i.forEach((E) => f(E, null, { shouldDirty: !0, shouldValidate: v })), c && c((_ = C.target) != null && _.value ? C.target.value.toString() : null);
|
|
9685
9691
|
}
|
|
9686
9692
|
}), isInvalid: w, hidden: l, disabled: b, className: "w-100" }, D.id)),
|
|
9687
9693
|
x && /* @__PURE__ */ a.jsx(tn, { message: x.message })
|
|
9688
9694
|
] });
|
|
9689
9695
|
}, ON = ({ label: e, InputContainer: t = Pe, className: n, withoutLabel: r, hidden: i, disabled: o, contactType: s, formField: l, ...c }) => {
|
|
9690
|
-
const { watch: u } = Ct(), d = u(l), p = St({ falseIfNotInit: !0 }), f =
|
|
9696
|
+
const { watch: u } = Ct(), d = u(l), p = St({ falseIfNotInit: !0 }), f = B(() => o || p, [o, p]);
|
|
9691
9697
|
return i ? null : /* @__PURE__ */ a.jsx(Oc, { contactType: s, value: d, withoutLabel: r, label: e, className: n, children: /* @__PURE__ */ a.jsx(gn, { type: "text", formField: l, InputContainer: t, size: "sm", withoutLabel: !0, className: "flex-grow-1", disabled: f, ...c }) });
|
|
9692
|
-
}, PN = ({ InputContainer: e = Pe, formField: t, label: n, size: r, defaultSelection: i, resetsFields: o, isNumber: s, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: p, selectedItemNavigateTo: f, texts: m, dropdownItemsNameWidth: g, isLoading: x, withoutLabel: h, additionalColumns: v, CustomOnChangeComponent: y, icon: j, displayIdAsName: b, onSelect: w, className: D, archiveColumn:
|
|
9693
|
-
const { formState: Y, setValue: $, watch: H, control: R } = Ct(), V = St({ falseIfNotInit: !0 }), [U, X] = L(void 0), [Z, oe] = L(!1), [se, ye] = L(!1), z = H(t) ?? null, ae = z === (i == null ? void 0 : i.id) ? i == null ? void 0 : i.name : H(`${t}-DropdownName`), ge =
|
|
9698
|
+
}, PN = ({ InputContainer: e = Pe, formField: t, label: n, size: r, defaultSelection: i, resetsFields: o, isNumber: s, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: p, selectedItemNavigateTo: f, texts: m, dropdownItemsNameWidth: g, isLoading: x, withoutLabel: h, additionalColumns: v, CustomOnChangeComponent: y, icon: j, displayIdAsName: b, onSelect: w, className: D, archiveColumn: C, hint: _, addNewOptionPath: E, refreshOptions: O, MiniDetailComponent: A, miniDetailPlacement: k, suggestedItems: S, suggestedItemsTitle: T }) => {
|
|
9699
|
+
const { formState: Y, setValue: $, watch: H, control: R } = Ct(), V = St({ falseIfNotInit: !0 }), [U, X] = L(void 0), [Z, oe] = L(!1), [se, ye] = L(!1), z = H(t) ?? null, ae = z === (i == null ? void 0 : i.id) ? i == null ? void 0 : i.name : H(`${t}-DropdownName`), ge = B(() => z == null ? null : { id: z ?? null, name: ae ?? "" }, [z, ae]), Ce = P(() => {
|
|
9694
9700
|
const W = t.split(".");
|
|
9695
9701
|
let ne = Y.errors;
|
|
9696
9702
|
W.forEach((pe) => {
|
|
@@ -9715,7 +9721,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9715
9721
|
oe(!1), fe(W);
|
|
9716
9722
|
}, [fe]), ue = P(() => {
|
|
9717
9723
|
oe(!1);
|
|
9718
|
-
}, []), _e = te(null), He = U !== void 0, Ze = f !== void 0, bt = Ze && ge !== null, K =
|
|
9724
|
+
}, []), _e = te(null), He = U !== void 0, Ze = f !== void 0, bt = Ze && ge !== null, K = B(() => u || V, [u, V]);
|
|
9719
9725
|
return q(() => {
|
|
9720
9726
|
Ce();
|
|
9721
9727
|
}, [Ce]), q(() => {
|
|
@@ -9723,7 +9729,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9723
9729
|
}, [Y]), /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: l, disabled: K, hidden: c, withoutLabel: h, isInvalid: He, inputContainerClassName: I({ "luminus-dropdown-select-open": Z }), hint: _, className: D, children: [
|
|
9724
9730
|
/* @__PURE__ */ a.jsxs(Ya, { currentSelection: ge, selectedItemNavigateTo: f, children: [
|
|
9725
9731
|
b && (ge == null ? void 0 : ge.name) && /* @__PURE__ */ a.jsx(M, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: ge.name }),
|
|
9726
|
-
/* @__PURE__ */ a.jsx(ei, { control: R, name: t, render: () => /* @__PURE__ */ a.jsx(Ka, { value: z, MiniDetailComponent: A, miniDetailPlacement:
|
|
9732
|
+
/* @__PURE__ */ a.jsx(ei, { control: R, name: t, render: () => /* @__PURE__ */ a.jsx(Ka, { value: z, MiniDetailComponent: A, miniDetailPlacement: k, children: /* @__PURE__ */ a.jsx(ve.Select, { size: r, onMouseDown: (W) => {
|
|
9727
9733
|
W.currentTarget.focus(), W.preventDefault();
|
|
9728
9734
|
}, onClick: () => {
|
|
9729
9735
|
!Ze && !K && oe(!0);
|
|
@@ -9740,29 +9746,29 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9740
9746
|
] }) : null
|
|
9741
9747
|
] }),
|
|
9742
9748
|
U && /* @__PURE__ */ a.jsx(tn, { message: U.message }),
|
|
9743
|
-
_e.current && /* @__PURE__ */ a.jsx(Xa, { show: Z, onCancel: ue, items: d, currentSelection: ge, onSelectionChange: F, onSearchQueryChange: p, texts: m, itemsNameWidth: g, additionalColumns: v, displayIdAsName: b, isLoading: x, disabled: K, inputRef: _e, archiveColumn:
|
|
9749
|
+
_e.current && /* @__PURE__ */ a.jsx(Xa, { show: Z, onCancel: ue, items: d, currentSelection: ge, onSelectionChange: F, onSearchQueryChange: p, texts: m, itemsNameWidth: g, additionalColumns: v, displayIdAsName: b, isLoading: x, disabled: K, inputRef: _e, archiveColumn: C, addNewOptionPath: E, refreshOptions: O, suggestedItems: S, suggestedItemsTitle: T })
|
|
9744
9750
|
] }) });
|
|
9745
9751
|
}, TN = ({ InputContainer: e = Pe, label: t, formField: n, hidden: r, required: i, placeholder: o, disabled: s, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: p, hint: f, className: m }) => {
|
|
9746
|
-
const { watch: g, setValue: x, register: h, formState: v } = Ct(), y = St({ falseIfNotInit: !0 }), [j, b] = L(!1), [w, D] = L(void 0),
|
|
9752
|
+
const { watch: g, setValue: x, register: h, formState: v } = Ct(), y = St({ falseIfNotInit: !0 }), [j, b] = L(!1), [w, D] = L(void 0), C = P(() => {
|
|
9747
9753
|
x(n, "");
|
|
9748
9754
|
}, [x, n]), _ = P(() => {
|
|
9749
9755
|
const A = n.split(".");
|
|
9750
|
-
let
|
|
9751
|
-
A.forEach((
|
|
9752
|
-
|
|
9753
|
-
}), D(
|
|
9756
|
+
let k = v.errors;
|
|
9757
|
+
A.forEach((S) => {
|
|
9758
|
+
k !== void 0 && (k = k[S]);
|
|
9759
|
+
}), D(k);
|
|
9754
9760
|
}, [v, n]);
|
|
9755
9761
|
q(_, [_]), q(() => {
|
|
9756
9762
|
v.isSubmitted && b(!0);
|
|
9757
9763
|
}, [v]);
|
|
9758
|
-
const E =
|
|
9764
|
+
const E = B(() => s || y, [s, y]), O = w !== void 0;
|
|
9759
9765
|
return /* @__PURE__ */ a.jsxs(e, { label: t ?? "", required: i, disabled: E, hidden: r, withoutLabel: p, isInvalid: O, hint: f, className: m, children: [
|
|
9760
9766
|
/* @__PURE__ */ a.jsx(zd, { type: "file", multiple: u, accept: d.join(", "), placeholder: o ?? t, isInvalid: O, hidden: r, disabled: E, className: "w-100", ...h(n, {
|
|
9761
9767
|
onChange: () => {
|
|
9762
9768
|
c && c.forEach((A) => x(A, null, { shouldDirty: !0, shouldValidate: j }));
|
|
9763
9769
|
}
|
|
9764
9770
|
}) }),
|
|
9765
|
-
l && g(n) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(ee, { color: "secondary", size: "sm", onClick:
|
|
9771
|
+
l && g(n) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(ee, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ a.jsx(Bt, {}) }) }),
|
|
9766
9772
|
w && /* @__PURE__ */ a.jsx(tn, { message: w.message })
|
|
9767
9773
|
] });
|
|
9768
9774
|
}, ow = ({ children: e, onStorno: t, noSpacer: n }) => {
|
|
@@ -9771,13 +9777,13 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9771
9777
|
s(Object.keys(r.dirtyFields).length > 0);
|
|
9772
9778
|
}, [r]), o ? /* @__PURE__ */ a.jsx(zu, { onStorno: t, noSpacer: n, disabled: i, children: e }) : null;
|
|
9773
9779
|
}, $a = ({ InputContainer: e = Pe, options: t, formField: n, label: r, size: i, resetsFields: o, isNumber: s, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: p, suffixIdToName: f, onSelect: m, className: g, appendCurrentSelectionWithName: x, hint: h, addNewOptionPath: v, refreshOptions: y, MiniDetailComponent: j, miniDetailPlacement: b, selectedItemNavigateTo: w }) => {
|
|
9774
|
-
const { texts: { customSelect: D } } = G(Q), { formState:
|
|
9780
|
+
const { texts: { customSelect: D } } = G(Q), { formState: C, setValue: _, watch: E, control: O } = Ct(), A = St({ falseIfNotInit: !0 }), [k, S] = L(void 0), [T, Y] = L(!1), [$, H] = L(!1), [R, V] = L(""), U = E(n), X = B(() => t.find((F) => F.id === U) ?? null, [t, U]), Z = P(() => {
|
|
9775
9781
|
const F = n.split(".");
|
|
9776
|
-
let ue =
|
|
9782
|
+
let ue = C.errors;
|
|
9777
9783
|
F.forEach((_e) => {
|
|
9778
9784
|
ue !== void 0 && (ue = ue[_e]);
|
|
9779
|
-
}),
|
|
9780
|
-
}, [
|
|
9785
|
+
}), S(ue);
|
|
9786
|
+
}, [C, n]), oe = P((F) => {
|
|
9781
9787
|
if ((F == null ? void 0 : F.id) === U)
|
|
9782
9788
|
return;
|
|
9783
9789
|
if (m && m(F), o && o.forEach((_e) => _(_e, null, { shouldDirty: !0, shouldValidate: $ })), F === null) {
|
|
@@ -9796,16 +9802,16 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9796
9802
|
Y(!1), oe(F);
|
|
9797
9803
|
}, [oe]), ye = P((F) => {
|
|
9798
9804
|
V(F);
|
|
9799
|
-
}, []), z =
|
|
9805
|
+
}, []), z = B(() => u || A, [u, A]);
|
|
9800
9806
|
q(() => {
|
|
9801
9807
|
Z();
|
|
9802
9808
|
}, [Z]), q(() => {
|
|
9803
|
-
|
|
9804
|
-
}, [
|
|
9809
|
+
C.isSubmitted && H(!0);
|
|
9810
|
+
}, [C]);
|
|
9805
9811
|
const ae = P((F) => {
|
|
9806
9812
|
var ue;
|
|
9807
9813
|
return F === null ? "" : !F.name || F.name.length === 0 ? ((ue = F.id) == null ? void 0 : ue.toString()) ?? "" : f ? `${F.name} (${F.id})` : F.name;
|
|
9808
|
-
}, [f]), ge =
|
|
9814
|
+
}, [f]), ge = B(() => {
|
|
9809
9815
|
const F = t ? [...t] : [];
|
|
9810
9816
|
return x !== void 0 && U && (F.some((ue) => ue.id === U) || F.push({ id: U, name: x })), F.map((ue) => ({
|
|
9811
9817
|
id: ue.id,
|
|
@@ -9818,7 +9824,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9818
9824
|
ae,
|
|
9819
9825
|
x,
|
|
9820
9826
|
U
|
|
9821
|
-
]), Ce = te(null), fe =
|
|
9827
|
+
]), Ce = te(null), fe = k !== void 0;
|
|
9822
9828
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { label: r ?? "", required: l, disabled: z, hidden: c, withoutLabel: d, isInvalid: fe, inputContainerClassName: I({ "luminus-dropdown-select-open": T }), hint: h, className: g, children: [
|
|
9823
9829
|
/* @__PURE__ */ a.jsx(Ya, { currentSelection: X, selectedItemNavigateTo: w, children: /* @__PURE__ */ a.jsx(ei, { control: O, name: n, render: () => /* @__PURE__ */ a.jsx(Ka, { value: U, MiniDetailComponent: j, miniDetailPlacement: b, children: /* @__PURE__ */ a.jsx(ve.Select, { size: i, onMouseDown: (F) => {
|
|
9824
9830
|
F.currentTarget.focus(), F.preventDefault();
|
|
@@ -9826,25 +9832,25 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9826
9832
|
Y(!0);
|
|
9827
9833
|
}, ref: Ce, value: U ?? "", onChange: () => {
|
|
9828
9834
|
}, isInvalid: fe, hidden: c, disabled: z, className: "w-100", children: /* @__PURE__ */ a.jsx("option", { value: (X == null ? void 0 : X.id) ?? "", children: ae(X) }) }) }) }) }),
|
|
9829
|
-
|
|
9835
|
+
k && /* @__PURE__ */ a.jsx(tn, { message: k.message }),
|
|
9830
9836
|
Ce.current && /* @__PURE__ */ a.jsx(Xa, { show: T, onCancel: () => Y(!1), items: ge, currentSelection: X ?? null, onSelectionChange: se, onSearchQueryChange: ye, texts: D, disabled: z, inputRef: Ce, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: v, refreshOptions: y })
|
|
9831
9837
|
] }) });
|
|
9832
9838
|
}, AN = ({ InputContainer: e = Pe, formField: t, label: n, placeholder: r, size: i, resetsFields: o, showClearIcon: s, clearValue: l, required: c, hidden: u, disabled: d, withoutLabel: p, step: f, stepperStep: m = 1, className: g, min: x, max: h, onChange: v, hint: y }) => {
|
|
9833
|
-
const { register: j, formState: b, setValue: w, watch: D } = Ct(),
|
|
9839
|
+
const { register: j, formState: b, setValue: w, watch: D } = Ct(), C = St({ falseIfNotInit: !0 }), [_, E] = L(void 0), [O, A] = L(!1), k = P((R, V, U) => {
|
|
9834
9840
|
w(R, Bn(V, x, h), U);
|
|
9835
|
-
}, [h, x, w]),
|
|
9841
|
+
}, [h, x, w]), S = P(() => {
|
|
9836
9842
|
const R = l ?? null;
|
|
9837
|
-
|
|
9843
|
+
k(t, R !== null ? Number(R) : null, {
|
|
9838
9844
|
shouldDirty: !0,
|
|
9839
9845
|
shouldValidate: O
|
|
9840
9846
|
});
|
|
9841
|
-
}, [l,
|
|
9847
|
+
}, [l, k, t, O]), T = P(() => {
|
|
9842
9848
|
const R = t.split(".");
|
|
9843
9849
|
let V = b.errors;
|
|
9844
9850
|
R.forEach((U) => {
|
|
9845
9851
|
V !== void 0 && (V = V[U]);
|
|
9846
9852
|
}), E(V);
|
|
9847
|
-
}, [b, t]), Y =
|
|
9853
|
+
}, [b, t]), Y = B(() => d || C, [d, C]);
|
|
9848
9854
|
q(() => {
|
|
9849
9855
|
T();
|
|
9850
9856
|
}, [T]), q(() => {
|
|
@@ -9863,17 +9869,17 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9863
9869
|
}
|
|
9864
9870
|
}), isInvalid: $, hidden: u, disabled: Y, className: "w-100 luminus-numeric-stepper", step: f, min: x, max: h }),
|
|
9865
9871
|
/* @__PURE__ */ a.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ a.jsx(ee, { size: "sm", onClick: (R) => {
|
|
9866
|
-
R.preventDefault(), R.stopPropagation(),
|
|
9872
|
+
R.preventDefault(), R.stopPropagation(), k(t, ((H ? Number(H) : 0) - m).toString(), { shouldDirty: !0, shouldValidate: O });
|
|
9867
9873
|
}, children: /* @__PURE__ */ a.jsx(Vs, {}) }) }),
|
|
9868
9874
|
/* @__PURE__ */ a.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ a.jsx(ee, { size: "sm", onClick: (R) => {
|
|
9869
|
-
R.preventDefault(), R.stopPropagation(),
|
|
9875
|
+
R.preventDefault(), R.stopPropagation(), k(t, ((H ? Number(H) : 0) + m).toString(), { shouldDirty: !0, shouldValidate: O });
|
|
9870
9876
|
}, children: /* @__PURE__ */ a.jsx($s, {}) }) })
|
|
9871
9877
|
] }),
|
|
9872
|
-
s && D(t) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(ee, { color: "secondary", size: "sm", onClick:
|
|
9878
|
+
s && D(t) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(ee, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ a.jsx(Bt, {}) }) }),
|
|
9873
9879
|
_ && /* @__PURE__ */ a.jsx(tn, { message: _.message })
|
|
9874
9880
|
] });
|
|
9875
|
-
}, RN = ({ InputContainer: e = Pe, formField: t, label: n, placeholder: r, resetsFields: i, showClearIcon: o, clearValue: s, required: l, hidden: c, disabled: u, withoutLabel: d, step: p, size: f, CustomOnChangeComponent: m, noSelectOnFocus: g, className: x, decimalScale: h = 2, fixedDecimalScale: v = !1, numberPrefix: y, numberSuffix: j, min: b, max: w, onChange: D, hint:
|
|
9876
|
-
const { formState: _, setValue: E, watch: O, control: A } = Ct(),
|
|
9881
|
+
}, RN = ({ InputContainer: e = Pe, formField: t, label: n, placeholder: r, resetsFields: i, showClearIcon: o, clearValue: s, required: l, hidden: c, disabled: u, withoutLabel: d, step: p, size: f, CustomOnChangeComponent: m, noSelectOnFocus: g, className: x, decimalScale: h = 2, fixedDecimalScale: v = !1, numberPrefix: y, numberSuffix: j, min: b, max: w, onChange: D, hint: C }) => {
|
|
9882
|
+
const { formState: _, setValue: E, watch: O, control: A } = Ct(), k = St({ falseIfNotInit: !0 }), [S, T] = L(void 0), [Y, $] = L(!1), H = P(() => {
|
|
9877
9883
|
const Z = s ?? null;
|
|
9878
9884
|
E(t, Z !== null ? Number(Z) : null, {
|
|
9879
9885
|
shouldDirty: !0,
|
|
@@ -9885,7 +9891,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9885
9891
|
Z.forEach((se) => {
|
|
9886
9892
|
oe !== void 0 && (oe = oe[se]);
|
|
9887
9893
|
}), T(oe);
|
|
9888
|
-
}, [_, t]), V =
|
|
9894
|
+
}, [_, t]), V = B(() => u || k, [u, k]);
|
|
9889
9895
|
q(() => {
|
|
9890
9896
|
R();
|
|
9891
9897
|
}, [R]), q(() => {
|
|
@@ -9895,8 +9901,8 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9895
9901
|
q(() => {
|
|
9896
9902
|
w !== void 0 && U > w && E(t, w), b !== void 0 && U < b && E(t, b);
|
|
9897
9903
|
}, [t, U, w, b, E]);
|
|
9898
|
-
const X =
|
|
9899
|
-
return /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: l, disabled: V, hidden: c, withoutLabel: d, isInvalid: X, hint:
|
|
9904
|
+
const X = S !== void 0;
|
|
9905
|
+
return /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: l, disabled: V, hidden: c, withoutLabel: d, isInvalid: X, hint: C, className: x, children: [
|
|
9900
9906
|
/* @__PURE__ */ a.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
9901
9907
|
/* @__PURE__ */ a.jsx(ei, { control: A, name: t, render: ({ field: { ref: Z, onChange: oe, name: se, value: ye } }) => /* @__PURE__ */ a.jsx(ki, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: h, fixedDecimalScale: v, prefix: y, suffix: j, defaultValue: "", name: se, value: ye ?? "", placeholder: r ?? n, onFocus: (z) => {
|
|
9902
9908
|
!g && z.target.select();
|
|
@@ -9914,7 +9920,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9914
9920
|
m && /* @__PURE__ */ a.jsx("div", { className: "custom-picker-button", children: m })
|
|
9915
9921
|
] }),
|
|
9916
9922
|
o && O(t) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ a.jsx(ee, { color: "secondary", size: "sm", onClick: H, children: /* @__PURE__ */ a.jsx(Bt, {}) }) }),
|
|
9917
|
-
|
|
9923
|
+
S && /* @__PURE__ */ a.jsx(tn, { message: S.message })
|
|
9918
9924
|
] });
|
|
9919
9925
|
}, sw = (e, t) => {
|
|
9920
9926
|
const n = Ke(), r = Fr(), { startLoading: i, stopLoading: o } = G(xt), { zDateRequired: s, zNumberRequired: l } = Lr(), { addNotification: c } = Zt(), { refreshAvailableDelegations: u } = G(Ws), { user: d } = G(Lt), { texts: { substitutions: { detail: p } } } = G(Q), f = dn.object({
|
|
@@ -9924,7 +9930,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9924
9930
|
from: s(),
|
|
9925
9931
|
to: s(),
|
|
9926
9932
|
roles: dn.array(dn.string())
|
|
9927
|
-
}), m =
|
|
9933
|
+
}), m = B(() => ({
|
|
9928
9934
|
id: (e == null ? void 0 : e.id) ?? 0,
|
|
9929
9935
|
employeeId: (e == null ? void 0 : e.employeeId) ?? (d == null ? void 0 : d.personalNumber) ?? void 0,
|
|
9930
9936
|
substituteId: (e == null ? void 0 : e.substituteId) ?? void 0,
|
|
@@ -9971,7 +9977,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9971
9977
|
enabled: t !== void 0
|
|
9972
9978
|
}), { data: c } = ke("/permissions/users"), { onSubmit: u, formMethods: d } = sw(l, e), p = d.watch("employeeId"), { data: f } = ke(`/permissions/roles?userName=${(b = c == null ? void 0 : c.find((w) => w.employeeId === p)) == null ? void 0 : b.name}`, { enabled: p > 0 && !!c }), { refreshAvailableDelegations: m } = G(Ws), { checkUserHasPermissions: g } = Hs(), x = P(async () => {
|
|
9973
9979
|
await o(s.deleteConfirm) && (await r.delete(`/permissions/substitutions/${t}`), m(), i(e));
|
|
9974
|
-
}, [r, o, t, i, m, s, e]), h =
|
|
9980
|
+
}, [r, o, t, i, m, s, e]), h = B(() => p !== (n == null ? void 0 : n.personalNumber) && !g(["ZASTUP_MODIFY"]), [g, p, n == null ? void 0 : n.personalNumber]), v = d.watch("roles"), y = B(() => f == null ? void 0 : f.filter((w) => w.canBeRepresented), [f]), j = B(() => (y == null ? void 0 : y.every((w) => v == null ? void 0 : v.includes(w.name))) ?? !1, [y, v]);
|
|
9975
9981
|
return /* @__PURE__ */ a.jsx(Nt, { title: /* @__PURE__ */ a.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
9976
9982
|
/* @__PURE__ */ a.jsx(M, { variant: "h3", children: s.title }),
|
|
9977
9983
|
/* @__PURE__ */ a.jsx(Mt, { toggle: /* @__PURE__ */ a.jsx(Ft, { as: en }), children: /* @__PURE__ */ a.jsx(Ye, { onClick: () => x(), children: s.delete }) })
|
|
@@ -10004,14 +10010,14 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10004
10010
|
marginRight: "-12px",
|
|
10005
10011
|
padding: "0px 12px"
|
|
10006
10012
|
}, children: f == null ? void 0 : f.map((w) => /* @__PURE__ */ a.jsx(Qn, { label: w.name, value: (v == null ? void 0 : v.find((D) => D === w.name)) !== void 0, disabled: h || !w.canBeRepresented, onChange: (D) => {
|
|
10007
|
-
d.setValue("roles", D ? [...v ?? [], w.name] : (v == null ? void 0 : v.filter((
|
|
10013
|
+
d.setValue("roles", D ? [...v ?? [], w.name] : (v == null ? void 0 : v.filter((C) => C !== w.name)) ?? [], { shouldDirty: !0 });
|
|
10008
10014
|
}, InputContainer: Pe }, w.name)) })
|
|
10009
10015
|
] }) })
|
|
10010
10016
|
] }),
|
|
10011
10017
|
/* @__PURE__ */ a.jsx(ow, { onStorno: () => d.reset(), children: s.save })
|
|
10012
10018
|
] }) }) }) });
|
|
10013
10019
|
}, lw = ({ BnfTableComponent: e, items: t, onEditItem: n, tableIdentifier: r }) => {
|
|
10014
|
-
const { texts: { approval: i } } = G(Q), o =
|
|
10020
|
+
const { texts: { approval: i } } = G(Q), o = B(() => t.map((c) => ({ ...c, archive: !!(c.dateTo && qd(pt(c.dateTo))) })), [t]), s = B(() => [
|
|
10015
10021
|
{
|
|
10016
10022
|
caption: "Id",
|
|
10017
10023
|
fieldName: "id",
|
|
@@ -10072,7 +10078,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10072
10078
|
), u = P(async () => e != null && e.id ? (o("approvalDelegationDelete"), i.delete(r(e.id)).then(() => !0).catch(() => !1).finally(() => s("approvalDelegationDelete"))) : !1, [i, e, o, s, r]);
|
|
10073
10079
|
return { getHasRunningProcesses: l, postEditDelegation: c, postDeleteDelegation: u };
|
|
10074
10080
|
}, dw = ({ model: e, handleClose: t, onConfirm: n, apiApprovalDefinitions: r, apiHasRunningProcess: i, apiPostEditDelegation: o, apiDeleteDelegation: s, EmployeePickerComponent: l }) => {
|
|
10075
|
-
var
|
|
10081
|
+
var C, _;
|
|
10076
10082
|
const { ProjectIconComponent: c, texts: { approval: u } } = G(Q), { zDate: d, zObjectIdIntRequired: p, zDateRequired: f } = Lr(), { addNotification: m } = Zt(), { confirm: g } = Dt(), { data: x } = ke(r), h = dn.object({
|
|
10077
10083
|
employee: p(),
|
|
10078
10084
|
delegate: p(),
|
|
@@ -10081,14 +10087,14 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10081
10087
|
approval: p()
|
|
10082
10088
|
}), v = Vr({ resolver: Mr(h) }), { getHasRunningProcesses: y, postEditDelegation: j, postDeleteDelegation: b } = cw(e, i, o, s);
|
|
10083
10089
|
q(() => {
|
|
10084
|
-
var E, O, A,
|
|
10090
|
+
var E, O, A, k, S, T;
|
|
10085
10091
|
e && (v.reset({
|
|
10086
10092
|
...e,
|
|
10087
10093
|
employee: { id: ((E = e.employee) == null ? void 0 : E.id) ?? 0 },
|
|
10088
10094
|
delegate: { id: ((O = e.delegate) == null ? void 0 : O.id) ?? 0 },
|
|
10089
10095
|
dateFrom: e.dateFrom ?? "",
|
|
10090
10096
|
approval: { id: ((A = e.approval) == null ? void 0 : A.id) ?? 0 }
|
|
10091
|
-
}, { keepDirty: !1 }), (
|
|
10097
|
+
}, { keepDirty: !1 }), (k = e.employee) != null && k.id || yr(v, "employee.id"), (S = e.delegate) != null && S.id || yr(v, "delegate.id"), (T = e.approval) != null && T.id || yr(v, "approval.id"));
|
|
10092
10098
|
}, [e, v]);
|
|
10093
10099
|
const w = async (E) => {
|
|
10094
10100
|
if (!e)
|
|
@@ -10108,7 +10114,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10108
10114
|
/* @__PURE__ */ a.jsx($r, { ...v, children: /* @__PURE__ */ a.jsxs(ve, { onSubmit: v.handleSubmit(w), noValidate: !0, children: [
|
|
10109
10115
|
/* @__PURE__ */ a.jsxs(ce.Body, { children: [
|
|
10110
10116
|
/* @__PURE__ */ a.jsx($a, { label: u.delegations.detail.approval, isNumber: !0, formField: "approval.id", options: x ?? [], required: !0 }),
|
|
10111
|
-
/* @__PURE__ */ a.jsx(l, { label: u.delegations.detail.employee, formField: "employee.id", defaultSelection: (
|
|
10117
|
+
/* @__PURE__ */ a.jsx(l, { label: u.delegations.detail.employee, formField: "employee.id", defaultSelection: (C = e == null ? void 0 : e.employee) != null && C.id ? { id: e.employee.id, name: e.employee.name } : null, required: !0 }),
|
|
10112
10118
|
/* @__PURE__ */ a.jsx(l, { label: u.delegations.detail.delegate, formField: "delegate.id", defaultSelection: (_ = e == null ? void 0 : e.delegate) != null && _.id ? { id: e.delegate.id, name: e.delegate.name } : null, required: !0 }),
|
|
10113
10119
|
/* @__PURE__ */ a.jsx(gn, { label: u.delegations.detail.dateFrom, formField: "dateFrom", type: "date", required: !0 }),
|
|
10114
10120
|
/* @__PURE__ */ a.jsx(gn, { label: u.delegations.detail.dateTo, formField: "dateTo", type: "date" })
|
|
@@ -10201,7 +10207,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10201
10207
|
}, apiPostChangeEmployee: r, EmployeePickerComponent: i })
|
|
10202
10208
|
] });
|
|
10203
10209
|
}, fw = ({ approval: e, apiApprovalDelegations: t, appEmployeeDetail: n }) => {
|
|
10204
|
-
const { ProjectIconComponent: r, texts: { approval: i } } = G(Q), { data: o } = ke(t), s =
|
|
10210
|
+
const { ProjectIconComponent: r, texts: { approval: i } } = G(Q), { data: o } = ke(t), s = B(() => o ? o.filter((l) => {
|
|
10205
10211
|
var c;
|
|
10206
10212
|
return ((c = l.approval) == null ? void 0 : c.id) === e.id;
|
|
10207
10213
|
}) : null, [o, e]);
|
|
@@ -10273,9 +10279,9 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10273
10279
|
/* @__PURE__ */ a.jsx("div", { className: "col-10 overflow-hidden h-100", children: f ? /* @__PURE__ */ a.jsx(mw, { approval: f, reloadApproval: m, appEmployeeDetail: t, apiPostChangeEmployee: i, EmployeePickerComponent: s, apiApprovalDelegations: o }) : null })
|
|
10274
10280
|
] }) });
|
|
10275
10281
|
}, MN = ({ overviewApiPath: e = (t) => `/notification/email/overview?date=${t}` }) => {
|
|
10276
|
-
const { ProjectIconComponent: t, texts: { emailOverview: n } } = G(Q), [r, i] = Xt("date", un(/* @__PURE__ */ new Date(), { representation: "date" })), o =
|
|
10282
|
+
const { ProjectIconComponent: t, texts: { emailOverview: n } } = G(Q), [r, i] = Xt("date", un(/* @__PURE__ */ new Date(), { representation: "date" })), o = B(() => r ? pt(r) : /* @__PURE__ */ new Date(), [r]), { data: s } = ke(e(un(o, { representation: "date" }))), l = P((p) => {
|
|
10277
10283
|
i(un(Su(o, p), { representation: "date" }));
|
|
10278
|
-
}, [o, i]), [c, u] = Xt("email", null), d =
|
|
10284
|
+
}, [o, i]), [c, u] = Xt("email", null), d = B(() => c ? s == null ? void 0 : s.find((p) => p.id === c) : null, [c, s]);
|
|
10279
10285
|
return /* @__PURE__ */ a.jsx(Nt, { variant: "fullScreen", title: /* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center gap-3", children: [
|
|
10280
10286
|
/* @__PURE__ */ a.jsx(M, { variant: "h3", children: n.title }),
|
|
10281
10287
|
/* @__PURE__ */ a.jsxs("div", { className: "d-flex gap-1 align-items-center justify-content-start", children: [
|
|
@@ -10331,7 +10337,7 @@ const ty = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10331
10337
|
}), t;
|
|
10332
10338
|
}, hw = (e) => e && e.type === "header" && e.member && e.member.caption !== "All" && // collapsed groups have this in continuing cells
|
|
10333
10339
|
e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns = (e) => !e.member && !e.isDrillThrough, Ds = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t), xw = ({ dataSource: e, settings: t, pivotRef: n, localization: r, licenseKey: i, hyperlinkColumn: o, roomPasportization: s, enabled: l = !0 }) => {
|
|
10334
|
-
const { texts: { reports: c } } = G(Q), [u, d] = L(!1), p = te(null), f = n ?? p, m =
|
|
10340
|
+
const { texts: { reports: c } } = G(Q), [u, d] = L(!1), p = te(null), f = n ?? p, m = B(() => ({
|
|
10335
10341
|
localization: r
|
|
10336
10342
|
}), [r]), g = P((b) => {
|
|
10337
10343
|
delete b[0], delete b[1], delete b[2];
|
|
@@ -10359,8 +10365,8 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10359
10365
|
}, [f, c.collapseAll, c.expand, c.expandAll]), x = (b) => {
|
|
10360
10366
|
const w = b.getTabs();
|
|
10361
10367
|
b.getTabs = () => g(w);
|
|
10362
|
-
}, h =
|
|
10363
|
-
var w, D,
|
|
10368
|
+
}, h = B(() => e && e.mapping ? Object.values(e.mapping).filter((b) => b.caption.includes("P:")).map((b) => ({ uniqueName: b.caption.replace("P:", ""), caption: b.caption })) : [], [e]), v = B(() => {
|
|
10369
|
+
var w, D, C, _;
|
|
10364
10370
|
const b = (w = f.current) == null ? void 0 : w.flexmonster.getReport();
|
|
10365
10371
|
return b && b.slice ? {
|
|
10366
10372
|
...b.slice,
|
|
@@ -10372,7 +10378,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10372
10378
|
...h
|
|
10373
10379
|
],
|
|
10374
10380
|
columns: [
|
|
10375
|
-
...((
|
|
10381
|
+
...((C = b.slice.columns) == null ? void 0 : C.filter((E) => {
|
|
10376
10382
|
var O;
|
|
10377
10383
|
return !((O = E.caption) != null && O.includes("P:"));
|
|
10378
10384
|
})) ?? [],
|
|
@@ -10388,7 +10394,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10388
10394
|
} : null;
|
|
10389
10395
|
}, [h, f]);
|
|
10390
10396
|
q(() => {
|
|
10391
|
-
var b, w, D,
|
|
10397
|
+
var b, w, D, C;
|
|
10392
10398
|
if (u && l) {
|
|
10393
10399
|
if (s && v) {
|
|
10394
10400
|
const _ = (b = f.current) == null ? void 0 : b.flexmonster.getReport(), E = _ && _.options ? {
|
|
@@ -10402,11 +10408,11 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10402
10408
|
options: E
|
|
10403
10409
|
});
|
|
10404
10410
|
} else
|
|
10405
|
-
(
|
|
10411
|
+
(C = f.current) == null || C.flexmonster.updateData(e);
|
|
10406
10412
|
console.log("Updating flexmonster dataSource to: ", e);
|
|
10407
10413
|
}
|
|
10408
10414
|
}, [e, l, u, h, f, s, v]), q(() => {
|
|
10409
|
-
var b, w, D,
|
|
10415
|
+
var b, w, D, C, _;
|
|
10410
10416
|
if (u && l) {
|
|
10411
10417
|
const E = (b = f.current) == null ? void 0 : b.flexmonster.getReport();
|
|
10412
10418
|
if (E === void 0 || typeof E == "string")
|
|
@@ -10421,9 +10427,9 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10421
10427
|
}, s && (O.slice = {
|
|
10422
10428
|
...t == null ? void 0 : t.slice,
|
|
10423
10429
|
rows: [
|
|
10424
|
-
...((
|
|
10425
|
-
var
|
|
10426
|
-
return !((
|
|
10430
|
+
...((C = (D = t == null ? void 0 : t.slice) == null ? void 0 : D.rows) == null ? void 0 : C.filter((k) => {
|
|
10431
|
+
var S;
|
|
10432
|
+
return !((S = k.caption) != null && S.includes("P:"));
|
|
10427
10433
|
})) ?? [],
|
|
10428
10434
|
...h
|
|
10429
10435
|
]
|
|
@@ -10433,18 +10439,18 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10433
10439
|
}
|
|
10434
10440
|
}, [l, u, h, f, s, t]);
|
|
10435
10441
|
const y = P((b, w) => {
|
|
10436
|
-
var
|
|
10442
|
+
var k, S;
|
|
10437
10443
|
if (hw(w)) {
|
|
10438
|
-
b.text = ((
|
|
10444
|
+
b.text = ((k = w.member) == null ? void 0 : k.caption) ?? "";
|
|
10439
10445
|
const T = b.style["padding-left"] ?? "4px", Y = parseInt(T, 10);
|
|
10440
10446
|
b.style["padding-left"] = Y + 11 + "px";
|
|
10441
10447
|
}
|
|
10442
10448
|
if (!o || !js(w, o.idColumn) || Ns(w))
|
|
10443
10449
|
return;
|
|
10444
|
-
const D = (
|
|
10450
|
+
const D = (S = w.escapedLabel) == null ? void 0 : S.toString();
|
|
10445
10451
|
if (D === void 0)
|
|
10446
10452
|
return;
|
|
10447
|
-
const
|
|
10453
|
+
const C = Ds(o.url, D), _ = "style='color: #00a45a; text-decoration: underline; cursor: pointer;'", E = w.type === "header" ? "onclick='event.stopImmediatePropagation()'" : "", O = w.isDrillThrough || w.type === "header" ? `href='${C}' target='_blank'` : "";
|
|
10448
10454
|
b.style && (b.style["z-index"] = 1);
|
|
10449
10455
|
const A = `<a ${O} ${_} ${E}>${w.escapedLabel}</a>`;
|
|
10450
10456
|
b.text = A;
|
|
@@ -10630,16 +10636,16 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10630
10636
|
});
|
|
10631
10637
|
}, [t, e]), { mappings: n };
|
|
10632
10638
|
}, FN = ({ reportType: e, title: t, data: n, filterElements: r, getReportRoute: i, localization: o, licenseKey: s, EmployeePicker: l, localizationJsonFile: c, localizationTransformer: u, hyperlinkColumn: d, roomPasportization: p = !1 }) => {
|
|
10633
|
-
const { texts: { reports: f } } = G(Q), { confirm: m } = Dt(), g = Fr(), [x] = gu(), { id: h } = qs(), v =
|
|
10639
|
+
const { texts: { reports: f } } = G(Q), { confirm: m } = Dt(), g = Fr(), [x] = gu(), { id: h } = qs(), v = B(() => h === void 0 ? null : Number(h), [h]), y = P((z) => {
|
|
10634
10640
|
const ae = z === null ? "" : z.toString();
|
|
10635
10641
|
g(vn(i(e), { id: ae }) + "?" + x.toString(), {
|
|
10636
10642
|
replace: !0,
|
|
10637
10643
|
flushSync: !0
|
|
10638
10644
|
});
|
|
10639
|
-
}, [i, g, e, x]), [j, b] = L(!1), w = te(null), { user: D } = G(Lt), { data:
|
|
10645
|
+
}, [i, g, e, x]), [j, b] = L(!1), w = te(null), { user: D } = G(Lt), { data: C, reloadData: _ } = ke(`/reports/${e}`), { mappings: E } = jw(c, u), [O, A] = L({}), k = P((z) => {
|
|
10640
10646
|
const ae = z.target.value, ge = ae === "" ? null : Number(ae);
|
|
10641
10647
|
y(ge);
|
|
10642
|
-
}, [y]),
|
|
10648
|
+
}, [y]), S = P(async (z) => {
|
|
10643
10649
|
await _(), y(z);
|
|
10644
10650
|
}, [_, y]), { data: T, setData: Y } = ke(`/reports/version/${v}`, { enabled: v !== null, nullStateBeforeLoad: !1, nullStateOnFail: !0 });
|
|
10645
10651
|
q(() => {
|
|
@@ -10651,13 +10657,13 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10651
10657
|
const z = gw(T) ?? {};
|
|
10652
10658
|
A(z), (ae = w.current) == null || ae.flexmonster.refresh();
|
|
10653
10659
|
}, [T]);
|
|
10654
|
-
const { save: $, saveAs: H, archive: R, detach: V } = bw(e, w, v,
|
|
10660
|
+
const { save: $, saveAs: H, archive: R, detach: V } = bw(e, w, v, S), U = B(() => ({
|
|
10655
10661
|
data: n ?? [],
|
|
10656
10662
|
mapping: E ?? void 0
|
|
10657
10663
|
}), [n, E]), X = P(async () => {
|
|
10658
10664
|
var ae;
|
|
10659
10665
|
await m(f.confirmRevertChanges) && ((ae = w.current) == null || ae.flexmonster.setReport({ dataSource: U, ...O }));
|
|
10660
|
-
}, [m, U, f.confirmRevertChanges, O]), Z =
|
|
10666
|
+
}, [m, U, f.confirmRevertChanges, O]), Z = B(() => (T == null ? void 0 : T.ownerId) === D.personalNumber, [T == null ? void 0 : T.ownerId, D.personalNumber]), oe = B(() => {
|
|
10661
10667
|
var z;
|
|
10662
10668
|
return (z = T == null ? void 0 : T.users) == null ? void 0 : z.some((ae) => ae.id === D.personalNumber && !ae.isReportOwner);
|
|
10663
10669
|
}, [T == null ? void 0 : T.users, D.personalNumber]), se = P(async () => {
|
|
@@ -10667,16 +10673,16 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10667
10673
|
}, [m, V, _, T == null ? void 0 : T.name, f, y]);
|
|
10668
10674
|
return q(() => {
|
|
10669
10675
|
var z, ae;
|
|
10670
|
-
v === null && y(((z =
|
|
10671
|
-
}, [
|
|
10676
|
+
v === null && y(((z = C == null ? void 0 : C.reportVersions.find((ge) => ge.isSystem === !0)) == null ? void 0 : z.reportVersionId) ?? ((ae = C == null ? void 0 : C.reportVersions[0]) == null ? void 0 : ae.reportVersionId) ?? null);
|
|
10677
|
+
}, [C == null ? void 0 : C.reportVersions, v, y]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
10672
10678
|
/* @__PURE__ */ a.jsx(Nt, { variant: "fullScreen", title: /* @__PURE__ */ a.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
|
|
10673
10679
|
/* @__PURE__ */ a.jsx(M, { variant: "h3", children: t }),
|
|
10674
10680
|
r,
|
|
10675
10681
|
/* @__PURE__ */ a.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
|
|
10676
|
-
/* @__PURE__ */ a.jsxs(Xd, { size: "sm", value: v ?? void 0, onChange:
|
|
10677
|
-
/* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectSystem, children:
|
|
10678
|
-
/* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectYour, children:
|
|
10679
|
-
/* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectSharedWithYou, children:
|
|
10682
|
+
/* @__PURE__ */ a.jsxs(Xd, { size: "sm", value: v ?? void 0, onChange: k, children: [
|
|
10683
|
+
/* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectSystem, children: C == null ? void 0 : C.reportVersions.filter((z) => z.isSystem === !0).map((z) => /* @__PURE__ */ a.jsx("option", { value: z.reportVersionId, children: z.name }, z.reportVersionId)) }),
|
|
10684
|
+
/* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectYour, children: C == null ? void 0 : C.reportVersions.filter((z) => z.ownerId === D.personalNumber).map((z) => /* @__PURE__ */ a.jsx("option", { value: z.reportVersionId, children: z.name }, z.reportVersionId)) }),
|
|
10685
|
+
/* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectSharedWithYou, children: C == null ? void 0 : C.reportVersions.filter((z) => z.isSystem === !1 && z.ownerId !== D.personalNumber).map((z) => /* @__PURE__ */ a.jsx("option", { value: z.reportVersionId, children: `${z.name} [${z.ownerId}]` }, z.reportVersionId)) })
|
|
10680
10686
|
] }),
|
|
10681
10687
|
/* @__PURE__ */ a.jsx(dt, { icon: /* @__PURE__ */ a.jsx(Qd, {}), onClick: $, disabled: v === null || (T == null ? void 0 : T.isSystem) || !Z, children: f.save }),
|
|
10682
10688
|
/* @__PURE__ */ a.jsx(dt, { icon: /* @__PURE__ */ a.jsx(Jd, {}), onClick: H, className: "flex-shrink-0", children: f.saveAs }),
|
|
@@ -10728,7 +10734,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10728
10734
|
] }) }) })
|
|
10729
10735
|
] });
|
|
10730
10736
|
}, Ss = ["info", "warning", "danger"], Cs = ({ messages: e, isLoading: t, onDeleteMessage: n, onClickMessage: r, getIcon: i, getLinksTo: o }) => {
|
|
10731
|
-
const { texts: { messageBoard: s } } = G(Q), [l, c] = L(Ss), u =
|
|
10737
|
+
const { texts: { messageBoard: s } } = G(Q), [l, c] = L(Ss), u = B(() => e.filter((d) => l.includes(d.type ?? "")), [l, e]);
|
|
10732
10738
|
return /* @__PURE__ */ a.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
|
|
10733
10739
|
/* @__PURE__ */ a.jsx(Nw, { knownTypes: Ss, typeFilters: l, onChangeTypeFilters: (d) => c(d) }),
|
|
10734
10740
|
t && /* @__PURE__ */ a.jsxs("div", { className: "p-3 w-100", children: [
|
|
@@ -10762,7 +10768,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10762
10768
|
});
|
|
10763
10769
|
}, [n, l]), v = P(async (w) => l.delete(`${r}${w}`).then(() => !0).catch(() => !1), [r, l]), y = P((w) => {
|
|
10764
10770
|
v(w).then((D) => {
|
|
10765
|
-
D && u(c.filter((
|
|
10771
|
+
D && u(c.filter((C) => C.id !== w));
|
|
10766
10772
|
});
|
|
10767
10773
|
}, [v, c]);
|
|
10768
10774
|
q(() => {
|
|
@@ -10836,7 +10842,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10836
10842
|
}, Fw = ({ shortcutLink: e, IconComponent: t, IconTypeArray: n, editShortcutLink: r, deleteLocation: i }) => {
|
|
10837
10843
|
const { ProjectIconComponent: o } = G(Q), [s, l] = L(e.icon), [c, u] = L(e.name);
|
|
10838
10844
|
console.log(s, typeof s);
|
|
10839
|
-
const d =
|
|
10845
|
+
const d = B(() => !(s === e.icon && c === e.name), [s, c, e.icon, e.name]), p = P(() => {
|
|
10840
10846
|
l(e.icon), u(e.name);
|
|
10841
10847
|
}, [e]), f = P(() => {
|
|
10842
10848
|
r({ ...e, icon: s, name: c });
|
|
@@ -10881,7 +10887,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10881
10887
|
}, Hw = ({ shortcutLink: e, IconComponent: t }) => /* @__PURE__ */ a.jsx(ze, { text: e.name, placement: "bottom", children: /* @__PURE__ */ a.jsx(Ge, { to: e.url, className: fn.linkButton, children: /* @__PURE__ */ a.jsx(t, { icon: e.icon }) }) }), Ww = ({ closeModal: e, isOpen: t, createLink: n, pageTitlePrefix: r, IconComponent: i, IconTypeArray: o }) => {
|
|
10882
10888
|
const s = vu(), { texts: l } = G(Q), [c, u] = L("star-outline"), [d, p] = L(r ? document.title.replace(r, "") : document.title), f = P(async () => {
|
|
10883
10889
|
await n({ icon: c, name: d, url: s.pathname + s.search }), e();
|
|
10884
|
-
}, [e, n, c, s.pathname, s.search, d]), m =
|
|
10890
|
+
}, [e, n, c, s.pathname, s.search, d]), m = B(() => s.pathname + s.search, [s.pathname, s.search]);
|
|
10885
10891
|
return /* @__PURE__ */ a.jsx(ce, { show: t, onHide: e, size: "sm", children: /* @__PURE__ */ a.jsxs("div", { onKeyDown: (g) => {
|
|
10886
10892
|
g.code !== "Escape" && g.stopPropagation();
|
|
10887
10893
|
}, children: [
|
|
@@ -10912,7 +10918,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10912
10918
|
(s || c) && /* @__PURE__ */ a.jsx(Ww, { IconComponent: e, IconTypeArray: t, closeModal: () => l(!1), createLink: r, isOpen: s, pageTitlePrefix: n })
|
|
10913
10919
|
] });
|
|
10914
10920
|
}, HN = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: n }) => {
|
|
10915
|
-
const { shortcutLinks: r, createShortcutLink: i } = Uc(), o =
|
|
10921
|
+
const { shortcutLinks: r, createShortcutLink: i } = Uc(), o = B(() => r !== null && r.length < Ga, [r]);
|
|
10916
10922
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className: "d-flex gap-2", children: [
|
|
10917
10923
|
r == null ? void 0 : r.slice(0, Ga).map((s, l) => s !== null ? /* @__PURE__ */ a.jsx(Hw, { shortcutLink: s, IconComponent: e }, l) : null),
|
|
10918
10924
|
o && /* @__PURE__ */ a.jsx(zw, { IconComponent: e, IconTypeArray: t, pageTitlePrefix: n, createLink: i })
|
|
@@ -10964,7 +10970,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10964
10970
|
await l({ ...m, employee: g.personalNumber }), await o();
|
|
10965
10971
|
}, [o, l, n]), p = P(async (m) => {
|
|
10966
10972
|
await c(m), await o();
|
|
10967
|
-
}, [o, c]), f =
|
|
10973
|
+
}, [o, c]), f = B(() => ({
|
|
10968
10974
|
shortcutLinks: i,
|
|
10969
10975
|
createShortcutLink: u,
|
|
10970
10976
|
editShortcutLink: d,
|
|
@@ -11019,13 +11025,13 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11019
11025
|
/* @__PURE__ */ a.jsx(Xw, { show: u, onHide: () => d(!1), roles: r ?? [], onAddTarget: i, EmployeePicker: s, templateId: t })
|
|
11020
11026
|
] });
|
|
11021
11027
|
}, Jw = ({ data: e, onClick: t, BnfTableComponent: n }) => {
|
|
11022
|
-
const { texts: { notifCentrum: r } } = G(Q), i =
|
|
11028
|
+
const { texts: { notifCentrum: r } } = G(Q), i = B(() => e == null ? void 0 : e.map((l) => {
|
|
11023
11029
|
var c;
|
|
11024
11030
|
return {
|
|
11025
11031
|
...l,
|
|
11026
11032
|
recipientsString: ((c = l.recipients) == null ? void 0 : c.map((u) => u.name).join(", ")) ?? ""
|
|
11027
11033
|
};
|
|
11028
|
-
}), [e]), o =
|
|
11034
|
+
}), [e]), o = B(() => [
|
|
11029
11035
|
{
|
|
11030
11036
|
caption: r.date,
|
|
11031
11037
|
fieldName: "date",
|
|
@@ -11094,7 +11100,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11094
11100
|
console.log(R), w([]);
|
|
11095
11101
|
});
|
|
11096
11102
|
}, [t, y]);
|
|
11097
|
-
const [D,
|
|
11103
|
+
const [D, C] = Gn("notif-action-id", (($ = b == null ? void 0 : b.at(0)) == null ? void 0 : $.id) ?? null), [_, E] = L([]);
|
|
11098
11104
|
q(() => {
|
|
11099
11105
|
D === null || f === null || n(D, f).then((R) => {
|
|
11100
11106
|
E(R);
|
|
@@ -11110,10 +11116,10 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11110
11116
|
console.log(R), A([]);
|
|
11111
11117
|
});
|
|
11112
11118
|
}, [r, D]);
|
|
11113
|
-
const
|
|
11119
|
+
const k = B(() => {
|
|
11114
11120
|
var R;
|
|
11115
11121
|
return !b || !D ? [] : ((R = b.find((V) => V.id === D)) == null ? void 0 : R.templates) ?? [];
|
|
11116
|
-
}, [b, D]),
|
|
11122
|
+
}, [b, D]), S = P((R, V) => {
|
|
11117
11123
|
o(R, V).then((U) => {
|
|
11118
11124
|
w(b ? [
|
|
11119
11125
|
...b.map((X) => X.id !== D ? X : {
|
|
@@ -11149,21 +11155,21 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11149
11155
|
/* @__PURE__ */ a.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
11150
11156
|
/* @__PURE__ */ a.jsxs("div", { className: "row w-100", children: [
|
|
11151
11157
|
/* @__PURE__ */ a.jsx("div", { className: "col-2", children: /* @__PURE__ */ a.jsx(ft, { label: u.kind, size: "sm", noEmptyOption: !0, options: (e == null ? void 0 : e.map((R) => ({ id: R.id, name: R.name }))) ?? [], value: y ?? null, onChange: (R) => j(Number(R)), dropdownWidth: 200 }) }),
|
|
11152
|
-
/* @__PURE__ */ a.jsx("div", { className: "col-3", children: /* @__PURE__ */ a.jsx(ft, { label: u.subkind, size: "sm", noEmptyOption: !0, options: (b == null ? void 0 : b.map((R) => ({ id: R.id, name: R.name }))) ?? [], value: D ?? null, onChange: (R) =>
|
|
11158
|
+
/* @__PURE__ */ a.jsx("div", { className: "col-3", children: /* @__PURE__ */ a.jsx(ft, { label: u.subkind, size: "sm", noEmptyOption: !0, options: (b == null ? void 0 : b.map((R) => ({ id: R.id, name: R.name }))) ?? [], value: D ?? null, onChange: (R) => C(Number(R)), dropdownWidth: 250 }) })
|
|
11153
11159
|
] }),
|
|
11154
11160
|
/* @__PURE__ */ a.jsx(qa, { children: /* @__PURE__ */ a.jsx(Sr, { hideOn: "always", cKey: "template-edit", onClick: () => v(!0), disabled: f === null, icon: /* @__PURE__ */ a.jsx(d, { icon: "edit" }), children: u.editTemplate }) })
|
|
11155
11161
|
] }),
|
|
11156
11162
|
/* @__PURE__ */ a.jsxs("div", { className: "vh-100 overflow-hidden d-flex gap-1", children: [
|
|
11157
|
-
/* @__PURE__ */ a.jsx("div", { className: "h-75 w-25 overflow-hidden", children: /* @__PURE__ */ a.jsx(Qw, { templates:
|
|
11163
|
+
/* @__PURE__ */ a.jsx("div", { className: "h-75 w-25 overflow-hidden", children: /* @__PURE__ */ a.jsx(Qw, { templates: k, roles: O ?? [], onAddNotifTarget: S, onRemoveNotifTarget: Y, selectedTemplateId: f, setSelectedTemplateId: (R) => {
|
|
11158
11164
|
m(R), x(null);
|
|
11159
11165
|
}, EmployeePicker: l }) }),
|
|
11160
11166
|
/* @__PURE__ */ a.jsx("div", { className: "w-25 h-75 overflow-hidden", children: f && /* @__PURE__ */ a.jsx(Jw, { data: _ ?? [], onClick: (R) => x((_ == null ? void 0 : _.find((V) => V.id === R)) ?? null), BnfTableComponent: c }) }),
|
|
11161
|
-
f && /* @__PURE__ */ a.jsx("div", { className: "h-75 w-75 overflow-hidden bg-darker", children: /* @__PURE__ */ a.jsx("iframe", { title: "notification", className: "w-100 h-100", srcDoc: (g == null ? void 0 : g.message) ?? ((H =
|
|
11167
|
+
f && /* @__PURE__ */ a.jsx("div", { className: "h-75 w-75 overflow-hidden bg-darker", children: /* @__PURE__ */ a.jsx("iframe", { title: "notification", className: "w-100 h-100", srcDoc: (g == null ? void 0 : g.message) ?? ((H = k.find((R) => R.id === f)) == null ? void 0 : H.textTemplate) }) })
|
|
11162
11168
|
] }),
|
|
11163
|
-
/* @__PURE__ */ a.jsx(Zw, { show: h, onHide: () => v(!1), template:
|
|
11169
|
+
/* @__PURE__ */ a.jsx(Zw, { show: h, onHide: () => v(!1), template: k.find((R) => R.id === f) ?? null, onEdit: T })
|
|
11164
11170
|
] });
|
|
11165
11171
|
}, ej = ({ history: e, onClick: t, BnfTableComponent: n }) => {
|
|
11166
|
-
const { texts: { notifCentrum: r } } = G(Q), i =
|
|
11172
|
+
const { texts: { notifCentrum: r } } = G(Q), i = B(() => [
|
|
11167
11173
|
{
|
|
11168
11174
|
caption: "notificationHistory.id",
|
|
11169
11175
|
fieldName: "id",
|
|
@@ -11243,7 +11249,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11243
11249
|
] });
|
|
11244
11250
|
}, tj = ({ result: e, onClose: t, tableIdentifier: n, BnfTableComponent: r }) => {
|
|
11245
11251
|
var l, c, u, d, p;
|
|
11246
|
-
const { texts: { imports: i }, ProjectIconComponent: o } = G(Q), s =
|
|
11252
|
+
const { texts: { imports: i }, ProjectIconComponent: o } = G(Q), s = B(() => [
|
|
11247
11253
|
{
|
|
11248
11254
|
fieldName: "row",
|
|
11249
11255
|
caption: i.row,
|
|
@@ -11338,7 +11344,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11338
11344
|
r = s;
|
|
11339
11345
|
}
|
|
11340
11346
|
}, oj = ({ selLng: e, lngsData: t, localizationKey: n, reloadData: r, saveChanges: i }) => {
|
|
11341
|
-
const { ProjectIconComponent: o } = G(Q), s =
|
|
11347
|
+
const { ProjectIconComponent: o } = G(Q), s = B(() => {
|
|
11342
11348
|
const p = t.get(e);
|
|
11343
11349
|
if (p === void 0)
|
|
11344
11350
|
return "";
|
|
@@ -11346,7 +11352,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11346
11352
|
return p !== void 0 && f !== void 0 ? f : "";
|
|
11347
11353
|
}, [t, n, e]), [l, c] = L(s), u = P(async () => {
|
|
11348
11354
|
await i([{ fileName: e + ".json", items: [{ key: n, value: l }] }]), await r();
|
|
11349
|
-
}, [n, r, i, e, l]), d =
|
|
11355
|
+
}, [n, r, i, e, l]), d = B(() => l !== s, [s, l]);
|
|
11350
11356
|
return /* @__PURE__ */ a.jsxs("div", { className: "d-flex", children: [
|
|
11351
11357
|
/* @__PURE__ */ a.jsx(rt, { label: e + n, type: "text", value: l, onChange: (p) => {
|
|
11352
11358
|
c(typeof p != "string" ? "" : p);
|
|
@@ -11380,22 +11386,22 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11380
11386
|
r = s;
|
|
11381
11387
|
}
|
|
11382
11388
|
}, KN = ({ languageOptions: e, envMode: t, getOtherSettingsUrl: n, downloadXls: r, saveChanges: i, localizationFilesOptions: o, remoteLocalesRoot: s }) => {
|
|
11383
|
-
const { texts: { localizations: l }, ProjectIconComponent: c } = G(Q), [u, d] = L(1), [p, f] = L(/* @__PURE__ */ new Map()), [m, g] = L(null), [x, h] = L(""), [v, y] = L(/* @__PURE__ */ new Set()), j = P((
|
|
11384
|
-
f(/* @__PURE__ */ new Map()), y(
|
|
11385
|
-
}, []), b =
|
|
11389
|
+
const { texts: { localizations: l }, ProjectIconComponent: c } = G(Q), [u, d] = L(1), [p, f] = L(/* @__PURE__ */ new Map()), [m, g] = L(null), [x, h] = L(""), [v, y] = L(/* @__PURE__ */ new Set()), j = P((S) => {
|
|
11390
|
+
f(/* @__PURE__ */ new Map()), y(S);
|
|
11391
|
+
}, []), b = B(() => e.filter((S) => !v.has(S.id)), [v, e]), w = B(() => {
|
|
11386
11392
|
if (p.size === 0)
|
|
11387
11393
|
return [];
|
|
11388
|
-
const
|
|
11394
|
+
const S = /* @__PURE__ */ new Set(), T = (V, U = "") => {
|
|
11389
11395
|
if (typeof V[1] == "object") {
|
|
11390
11396
|
Object.entries(V[1]).forEach((X) => T(X, U + V[0] + "."));
|
|
11391
11397
|
return;
|
|
11392
11398
|
}
|
|
11393
|
-
|
|
11399
|
+
S.add(U + V[0]);
|
|
11394
11400
|
};
|
|
11395
11401
|
Array.from(p).forEach((V) => {
|
|
11396
11402
|
Object.entries(V[1]).forEach((U) => T(U));
|
|
11397
11403
|
});
|
|
11398
|
-
const Y = Array.from(
|
|
11404
|
+
const Y = Array.from(S), $ = o.find((V) => V.path === m);
|
|
11399
11405
|
return (($ == null ? void 0 : $.type) === "report" ? Y.filter((V) => {
|
|
11400
11406
|
const U = V.split(".");
|
|
11401
11407
|
return U[U.length - 1] === "caption";
|
|
@@ -11409,23 +11415,23 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11409
11415
|
];
|
|
11410
11416
|
}))
|
|
11411
11417
|
}));
|
|
11412
|
-
}, [p, o, m, v]), D =
|
|
11413
|
-
|
|
11414
|
-
}, [
|
|
11418
|
+
}, [p, o, m, v]), D = B(() => w.filter((S) => qe(S.key, x) || Array.from(S.lngData).some((T) => typeof (T == null ? void 0 : T[1]) != "string" ? !1 : qe((T == null ? void 0 : T[1]) ?? "", x))), [x, w]), C = B(() => Math.ceil(D.length / hr), [D.length]), _ = P((S) => {
|
|
11419
|
+
S !== null && d(() => Math.max(1, Math.min(S, C)));
|
|
11420
|
+
}, [C]), E = P(async () => {
|
|
11415
11421
|
if (m === null)
|
|
11416
11422
|
return;
|
|
11417
|
-
const
|
|
11423
|
+
const S = Array.from(v).map((Y) => (async () => {
|
|
11418
11424
|
const $ = await Zd.get(
|
|
11419
11425
|
`${s}${m == null ? void 0 : m.replace("{{lng}}", Y)}&v=${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
11420
11426
|
// &v to not hit browser cache
|
|
11421
11427
|
{ responseType: "json" }
|
|
11422
11428
|
);
|
|
11423
11429
|
return [Y, $.data];
|
|
11424
|
-
})()), T = await Promise.allSettled(
|
|
11430
|
+
})()), T = await Promise.allSettled(S);
|
|
11425
11431
|
f(new Map(T.map((Y) => Y.status === "fulfilled" ? Y.value : ["", {}])));
|
|
11426
11432
|
}, [s, m, v]), O = P(async () => {
|
|
11427
11433
|
E();
|
|
11428
|
-
}, [E]), A =
|
|
11434
|
+
}, [E]), A = B(() => b.length > 0, [b.length]), k = B(() => v.size + 1 + (A ? 1 : 0), [A, v.size]);
|
|
11429
11435
|
return q(() => {
|
|
11430
11436
|
_(u);
|
|
11431
11437
|
}, [_, u, D]), q(() => {
|
|
@@ -11436,17 +11442,17 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11436
11442
|
/* @__PURE__ */ a.jsx("br", {}),
|
|
11437
11443
|
l.envNotConnectedToRemote(t.toUpperCase())
|
|
11438
11444
|
] }) }) : /* @__PURE__ */ a.jsx(Nt, { title: /* @__PURE__ */ a.jsx("div", { className: "d-flex gap-4", children: /* @__PURE__ */ a.jsx(M, { variant: "h3", children: l.localizationSettings }) }), helmet: l.localizationSettings, variant: "fullScreen", children: /* @__PURE__ */ a.jsxs("div", { className: $e.keysTable, style: {
|
|
11439
|
-
"--keys-table-columns":
|
|
11445
|
+
"--keys-table-columns": k,
|
|
11440
11446
|
"--adding-column": A ? 1 : 0
|
|
11441
11447
|
}, children: [
|
|
11442
11448
|
/* @__PURE__ */ a.jsxs("div", { className: I($e.tableFullWidth, "d-flex align-items-center justify-content-between gap-2 px-2 mt-1"), children: [
|
|
11443
|
-
/* @__PURE__ */ a.jsx(ft, { options: o.map((
|
|
11444
|
-
id:
|
|
11445
|
-
name:
|
|
11446
|
-
})), value: m, onChange: (
|
|
11449
|
+
/* @__PURE__ */ a.jsx(ft, { options: o.map((S) => ({
|
|
11450
|
+
id: S.path,
|
|
11451
|
+
name: S.nameTranslationKey
|
|
11452
|
+
})), value: m, onChange: (S) => typeof S != "number" ? g(S) : null, size: "sm", label: l.localizationFile, className: $e.fileSelect, noSortOptions: !0 }),
|
|
11447
11453
|
/* @__PURE__ */ a.jsxs("div", { className: I($e.searchBox, "d-flex align-items-center gap-2 border rounded"), children: [
|
|
11448
11454
|
/* @__PURE__ */ a.jsx(c, { icon: "search", className: "text-muted", size: 18, iconProps: { className: "mt- me-n4" } }),
|
|
11449
|
-
/* @__PURE__ */ a.jsx(rt, { type: "text", value: x, onChange: (
|
|
11455
|
+
/* @__PURE__ */ a.jsx(rt, { type: "text", value: x, onChange: (S) => h(typeof S == "string" ? S : ""), size: "sm", showClearIcon: x !== "", withoutLabel: !0, placeholder: "vyhledávat...", className: "placeholder-muted bg-transparent border-0 my-0 py-0 w-100" })
|
|
11450
11456
|
] }),
|
|
11451
11457
|
/* @__PURE__ */ a.jsxs(qa, { children: [
|
|
11452
11458
|
/* @__PURE__ */ a.jsx(Sr, { cKey: "export", hideOn: "always", onClick: r, icon: /* @__PURE__ */ a.jsx(eu, { fileExtension: "xls" }), children: l.xlsExport }),
|
|
@@ -11455,15 +11461,15 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11455
11461
|
] }),
|
|
11456
11462
|
/* @__PURE__ */ a.jsxs("div", { className: I($e.subgrid, $e.lngSelectRow), children: [
|
|
11457
11463
|
/* @__PURE__ */ a.jsx(M, { variant: "body", children: l.key }),
|
|
11458
|
-
Array.from(v).map((
|
|
11459
|
-
A ? /* @__PURE__ */ a.jsx(ft, { options: b, value: null, onChange: (
|
|
11464
|
+
Array.from(v).map((S, T) => /* @__PURE__ */ a.jsx(ft, { options: e.filter((Y) => Y.id === S || !v.has(Y.id)), value: S, onChange: (Y) => j(($) => Y === null ? ($.delete(S), new Set($)) : (typeof Y == "string" && ($.delete(S), $.add(Y)), new Set($))), size: "sm", label: `${l.language} ${T + 1}`, withoutLabel: !0, InputContainer: Pe, className: I($e.lngSelect) }, S)),
|
|
11465
|
+
A ? /* @__PURE__ */ a.jsx(ft, { options: b, value: null, onChange: (S) => j((T) => (typeof S == "string" && T.add(S), new Set(T))), size: "sm", label: l.addLanguage, InputContainer: Pe, className: I($e.lngSelect, $e.addLng) }) : null
|
|
11460
11466
|
] }),
|
|
11461
11467
|
/* @__PURE__ */ a.jsxs("div", { className: I($e.subgrid, $e.tableBody), children: [
|
|
11462
11468
|
w.length === 0 || D.length === 0 ? /* @__PURE__ */ a.jsx(it, { variant: "warning", className: I($e.tableFullWidth, $e.emptyTableAlert, "my-n1"), children: w.length === 0 ? l.noDataLoaded : D.length === 0 ? l.noDataFiltered : null }) : null,
|
|
11463
|
-
D.slice(hr * (u - 1), hr * u).map((
|
|
11464
|
-
/* @__PURE__ */ a.jsx(M, { variant: "form-label", children:
|
|
11465
|
-
Array.from(v).map((T) => /* @__PURE__ */ a.jsx(oj, { localizationKey:
|
|
11466
|
-
] },
|
|
11469
|
+
D.slice(hr * (u - 1), hr * u).map((S) => /* @__PURE__ */ a.jsxs("div", { className: I($e.subgrid, $e.tableItem), children: [
|
|
11470
|
+
/* @__PURE__ */ a.jsx(M, { variant: "form-label", children: S.key }),
|
|
11471
|
+
Array.from(v).map((T) => /* @__PURE__ */ a.jsx(oj, { localizationKey: S.key, lngsData: p, selLng: T, reloadData: O, saveChanges: i }, T))
|
|
11472
|
+
] }, S.key))
|
|
11467
11473
|
] }),
|
|
11468
11474
|
/* @__PURE__ */ a.jsxs("div", { className: I("d-flex align-items-center justify-content-around gap-3 px-2 py-0", $e.tableFooter), children: [
|
|
11469
11475
|
/* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsxs(M, { variant: "body", children: [
|
|
@@ -11511,7 +11517,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11511
11517
|
}).catch(() => {
|
|
11512
11518
|
l(!1);
|
|
11513
11519
|
}));
|
|
11514
|
-
}, [o, r, d, t, n, e]), f =
|
|
11520
|
+
}, [o, r, d, t, n, e]), f = B(() => {
|
|
11515
11521
|
if (i === void 0)
|
|
11516
11522
|
return [];
|
|
11517
11523
|
if (t.length < Is || !["XAP", "", null].includes(e))
|
|
@@ -11524,7 +11530,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11524
11530
|
items: h
|
|
11525
11531
|
});
|
|
11526
11532
|
}), g;
|
|
11527
|
-
}, [t, i, e]), m =
|
|
11533
|
+
}, [t, i, e]), m = B(() => f.concat(c), [c, f]);
|
|
11528
11534
|
return q(() => {
|
|
11529
11535
|
p();
|
|
11530
11536
|
}, [p]), { isLoading: s, searchItems: m };
|
|
@@ -11549,7 +11555,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11549
11555
|
header: Pj,
|
|
11550
11556
|
item: Tj
|
|
11551
11557
|
}, Aj = ({ item: e, searchTypes: t, onCancel: n }) => {
|
|
11552
|
-
const r =
|
|
11558
|
+
const r = B(() => t.find((s) => s.key === e.type), [e.type, t]), i = B(() => Hc(e, r, t), [e, r, t]), o = B(() => Wc(e, r), [e, r]);
|
|
11553
11559
|
return /* @__PURE__ */ a.jsxs(
|
|
11554
11560
|
Ge,
|
|
11555
11561
|
{
|
|
@@ -11592,7 +11598,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11592
11598
|
}) }) });
|
|
11593
11599
|
}, XN = ({ searchTypes: e, navigateFunction: t, currentPath: n, homePath: r = "/", className: i, staticAppItems: o, searchEndpointUri: s }) => {
|
|
11594
11600
|
var b;
|
|
11595
|
-
const { texts: { appSearch: l } } = G(Q), [c, u] = L(e.length > 0 ? ((b = e.at(0)) == null ? void 0 : b.key) ?? null : null), d =
|
|
11601
|
+
const { texts: { appSearch: l } } = G(Q), [c, u] = L(e.length > 0 ? ((b = e.at(0)) == null ? void 0 : b.key) ?? null : null), d = B(() => e.find((w) => w.key === c) ?? null, [e, c]), [p, f] = L(""), [m, g] = Qa(encodeURIComponent(p), 500), { isLoading: x, searchItems: h } = zc(c, m, s, !1, o), [v, y] = L(!1);
|
|
11596
11602
|
q(() => {
|
|
11597
11603
|
(h.length > 0 || x) && y(!0);
|
|
11598
11604
|
}, [h, x]);
|
|
@@ -11612,7 +11618,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11612
11618
|
/* @__PURE__ */ a.jsx(Rj, { query: m, searchTypes: e, show: v, onCancel: () => y(!1), groups: h, isLoading: x })
|
|
11613
11619
|
] }) });
|
|
11614
11620
|
}, kj = ({ item: e, searchTypes: t }) => {
|
|
11615
|
-
const { ProjectIconComponent: n } = G(Q), r =
|
|
11621
|
+
const { ProjectIconComponent: n } = G(Q), r = B(() => t.find((s) => s.key === e.type), [e.type, t]), i = B(() => Hc(e, r, t), [e, r, t]), o = B(() => Wc(e, r), [e, r]);
|
|
11616
11622
|
return /* @__PURE__ */ a.jsxs(
|
|
11617
11623
|
Ge,
|
|
11618
11624
|
{
|