react-luminus-components 1.5.18 → 2.0.0-table-b0cb70b74a4fbbb9f83e28b44d73469c738618bb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/common/LineChart/LineChart.d.ts +4 -1
- package/dist/main.cjs.js +9 -9
- package/dist/main.es.js +385 -379
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as a, c as I, t as Te, a as kr, s as $i, g as Gi, m as Yc, d as yr, b as Kc, e as Xc, f as It, h as Qc, i as Jc, k as Zc, l as ed, n as td, o as nd, p as rd, T as Os, q as Ps, r as Ui, E as ad, u as Ts, v as Ha, w as As, x as id, y as Ae, z as Wa, F as Rs, A as od, B as sd, C as ld, D as cd, M as dd, G as ud, H as pd, I as fd, J as md, K as gd, L as Ia, N as vd, O as hd, P as Q, Q as mt, R as xd, S as bd, U as jt, V as ee, W as za, X as ve, Y as qa, Z as dt, _ as qe, $ as ce, a0 as it, a1 as M, a2 as Br, a3 as yd, a4 as wd, a5 as jd, a6 as ks, a7 as Nd, a8 as Dd, a9 as ht, aa as Sd, ab as Cd, ac as Sr, ad as re, ae as Bs, af as Ed, ag as Id, ah as _d, ai as Ls, aj as Ms, ak as Ya, al as Cr, am as Bt, an as Od, ao as ze, ap as Pd, aq as Td, ar as Ad, as as Lt, at as Rd, au as Fs, av as kd, aw as Ke, ax as yn, ay as Bd, az as rt, aA as Ka, aB as Xa, aC as Vs, aD as Qa, aE as $s, aF as Gs, aG as Pe, aH as Pt, aI as Ld, aJ as Md, aK as ct, aL as Mt, aM as Ft, aN as Fd, aO as Ye, aP as pt, aQ as Vd, aR as Dt, aS as $d, aT as Gd, aU as _n, aV as ft, aW as Us, aX as xt, aY as Zt, aZ as Ud, a_ as Jr, a$ as en, b0 as Hs, b1 as an, b2 as Hd, b3 as Wd, b4 as Vn, b5 as Lr, b6 as mn, b7 as Er, b8 as Ja, b9 as Nt, ba as zd, bb as Ws, bc as lr, bd as er, be as St, bf as tn, bg as gn, bh as qd, bi as Mr, bj as zs, bk as dn, bl as Fr, bm as Za, bn as Yd, bo as Kd, bp as Xd, bq as Qd, br as Jd, bs as Zd, bt as qs, bu as eu, bv as tu, bw as nu, bx as ru, by as au, bz as iu } from "./ShortcutLinksContext-B6B_uG2X.js";
|
|
2
2
|
import { bC as aD, bA as iD, bB as oD } from "./ShortcutLinksContext-B6B_uG2X.js";
|
|
3
3
|
import * as Ie from "react";
|
|
4
|
-
import le, { useCallback as P, useMemo as
|
|
4
|
+
import le, { useCallback as P, useMemo as B, useState as L, useRef as te, useEffect as q, useContext as G, useId as ou, Component as su, isValidElement as Hi, Suspense as lu, useLayoutEffect as ei, useReducer as cu, Fragment as du } from "react";
|
|
5
5
|
import { c as yt, a as uu, b as pu, L as _a, F as fu } from "./FormDisabledProvider-Ct-odePz.js";
|
|
6
6
|
import { InteractionType as mu } from "@azure/msal-browser";
|
|
7
7
|
import { MsalAuthenticationTemplate as gu } from "@azure/msal-react";
|
|
@@ -179,16 +179,16 @@ const Ru = {
|
|
|
179
179
|
getDimensionValue: m = Au,
|
|
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`, id(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(Os, {
|
|
@@ -207,8 +207,8 @@ const Ru = {
|
|
|
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, Ru[D], h === "width" && "collapse-horizontal")
|
|
213
213
|
})
|
|
214
214
|
});
|
|
@@ -243,7 +243,7 @@ const Js = /* @__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(Qs.Provider, {
|
|
@@ -393,7 +393,7 @@ const Lu = (e) => /* @__PURE__ */ a.jsx(Ur, {
|
|
|
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(od.Provider, {
|
|
398
398
|
value: l,
|
|
399
399
|
children: /* @__PURE__ */ a.jsx(i, {
|
|
@@ -452,7 +452,7 @@ function Vu(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 Fu(p, u);
|
|
457
457
|
}
|
|
458
458
|
return s;
|
|
@@ -562,30 +562,30 @@ const ul = /* @__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), $ = cd(f), H = $u(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 fd({
|
|
582
582
|
handleContainerOverflow: !1
|
|
583
|
-
})),
|
|
583
|
+
})), S.current) : md());
|
|
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 ul = /* @__PURE__ */ Ie.forwardRef(({
|
|
|
601
601
|
value: R,
|
|
602
602
|
children: /* @__PURE__ */ a.jsx(ud, {
|
|
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 zu = /* @__PURE__ */ Ie.forwardRef(({
|
|
|
755
755
|
const u = P((f) => {
|
|
756
756
|
const m = uu(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 zu = /* @__PURE__ */ Ie.forwardRef(({
|
|
|
786
786
|
}, Ju = "_select_pywmr_1", Zu = {
|
|
787
787
|
select: Ju
|
|
788
788
|
}, eo = 2e3, to = 2050, ep = ({ 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)) ?? eo : i.optionMin ?? eo;
|
|
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)) ?? to : i.optionMax ?? to;
|
|
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 np = (e) => (n) => {
|
|
|
881
881
|
widgetTitle: up,
|
|
882
882
|
title: pp
|
|
883
883
|
}, fp = ({ 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 np = (e) => (n) => {
|
|
|
1002
1002
|
lg: _p,
|
|
1003
1003
|
light: Op
|
|
1004
1004
|
}, Zj = ({ 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" }, { [na.light]: t === "light" }, na.badge, na[n]), ...s, children: e });
|
|
1007
1007
|
}, Pp = "_collapse-icon_1ahhn_1", Tp = "_collapsed_1ahhn_6", io = {
|
|
1008
1008
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
@@ -1048,7 +1048,7 @@ const np = (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 xl(e, t) {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
var bl = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? ei : q;
|
|
1410
1410
|
function yl(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 = xl(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
|
bl(function() {
|
|
@@ -1518,26 +1518,26 @@ function lf() {
|
|
|
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 lf() {
|
|
|
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 cf() {
|
|
|
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 cf() {
|
|
|
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" ? Aa.exports = lf() : Aa.exports = cf();
|
|
@@ -1737,10 +1737,10 @@ function bf(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" && !yo.isValidElementType(
|
|
1742
|
-
throw new Error("You must pass a component to the function returned by " + (s + ". Instead received " + mf(
|
|
1743
|
-
var _ =
|
|
1740
|
+
return function(C) {
|
|
1741
|
+
if (process.env.NODE_ENV !== "production" && !yo.isValidElementType(C))
|
|
1742
|
+
throw new Error("You must pass a component to the function returned by " + (s + ". Instead received " + mf(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 bf(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 = Sr(H, uf);
|
|
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 && yo.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 ff;
|
|
1772
1772
|
var de = xl(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 = cu(gf, pf, xf), _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
|
wo(vf, [K, bt, ne, X, pe, W, fe]), wo(hf, [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 bf(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, ho($, C);
|
|
1804
1804
|
}
|
|
1805
|
-
return ho(Y,
|
|
1805
|
+
return ho(Y, C);
|
|
1806
1806
|
};
|
|
1807
1807
|
}
|
|
1808
1808
|
function jo(e, t) {
|
|
@@ -1978,7 +1978,7 @@ function $f(e) {
|
|
|
1978
1978
|
var t = {}, n = t.connectHOC, r = n === void 0 ? bf : n, i = t.mapStateToPropsFactories, o = i === void 0 ? If : i, s = t.mapDispatchToPropsFactories, l = s === void 0 ? Sf : s, c = t.mergePropsFactories, u = c === void 0 ? Af : c, d = t.selectorFactory, p = d === void 0 ? Mf : 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 ? Vf : b, D = v.areOwnPropsEqual,
|
|
1981
|
+
var v = h, y = v.pure, j = y === void 0 ? !0 : y, b = v.areStatesEqual, w = b === void 0 ? Vf : b, D = v.areOwnPropsEqual, C = D === void 0 ? aa : D, _ = v.areStatePropsEqual, E = _ === void 0 ? aa : _, O = v.areMergedPropsEqual, A = O === void 0 ? aa : O, k = Sr(v, Ff), S = oa(m, o, "mapStateToProps"), T = oa(g, l, "mapDispatchToProps"), Y = oa(x, u, "mergeProps");
|
|
1982
1982
|
return r(p, re({
|
|
1983
1983
|
// used in error messages
|
|
1984
1984
|
methodName: "connect",
|
|
@@ -1989,15 +1989,15 @@ function $f(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 Cl = /* @__PURE__ */ $f();
|
|
@@ -3719,8 +3719,8 @@ var Lo = {
|
|
|
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 ca(e,
|
|
3722
|
+
var C = pi(D, w);
|
|
3723
|
+
return ca(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 Lo = {
|
|
|
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 ca(e,
|
|
3735
|
+
return ca(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 _h(e) {
|
|
|
6067
6067
|
function g() {
|
|
6068
6068
|
return t.isActive(p);
|
|
6069
6069
|
}
|
|
6070
|
-
function x(D,
|
|
6070
|
+
function x(D, C) {
|
|
6071
6071
|
fr({
|
|
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(mg(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 _h(e) {
|
|
|
6096
6096
|
}]);
|
|
6097
6097
|
setTimeout(A);
|
|
6098
6098
|
}
|
|
6099
|
-
|
|
6099
|
+
C(), r.dispatch(tc({
|
|
6100
6100
|
reason: E
|
|
6101
6101
|
}));
|
|
6102
6102
|
}
|
|
@@ -6119,7 +6119,7 @@ function _h(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 ec({
|
|
6125
6125
|
client: E
|
|
@@ -6132,14 +6132,14 @@ function _h(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 Ah(e) {
|
|
|
6311
6311
|
n(w);
|
|
6312
6312
|
var D = J(function(E) {
|
|
6313
6313
|
return lc(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 Ah(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 Ph({
|
|
6328
6328
|
contextId: t,
|
|
6329
6329
|
store: y,
|
|
@@ -6559,17 +6559,17 @@ function Xh(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 _ = Hh(
|
|
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 _ = Hh(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 = qh({
|
|
6572
|
-
ref:
|
|
6572
|
+
ref: C,
|
|
6573
6573
|
descriptor: l,
|
|
6574
6574
|
env: _,
|
|
6575
6575
|
windowScroll: b,
|
|
@@ -6911,7 +6911,7 @@ function hx(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 = ux(y), O = y.type === "DRAGGING" && y.dropping ? D : null, A = {
|
|
6916
6916
|
innerRef: n,
|
|
6917
6917
|
draggableProps: {
|
|
@@ -6933,7 +6933,7 @@ function hx(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 Nc = function(e, t) {
|
|
6939
6939
|
return e === t;
|
|
@@ -7106,12 +7106,12 @@ function Ex(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
|
ax({
|
|
7117
7117
|
props: e,
|
|
@@ -7133,14 +7133,14 @@ function Ex(e) {
|
|
|
7133
7133
|
ignoreContainerClipping: p,
|
|
7134
7134
|
getDroppableRef: y
|
|
7135
7135
|
});
|
|
7136
|
-
var
|
|
7136
|
+
var C = le.createElement(ix, {
|
|
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(ex, {
|
|
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 Ex(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 Ex(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(Cc, {
|
|
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 Oc = ({ 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 Oc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7486
7486
|
s && /* @__PURE__ */ a.jsx(Ls, { accept: ".jpg,.jpeg,.png", onUpload: (E) => {
|
|
7487
7487
|
E.length > 0 && s(Array.from(E));
|
|
7488
7488
|
}, icon: /* @__PURE__ */ a.jsx(Ms, { style: { fontSize: 18 } }), multiple: !0, className: "me-1 me-lg-3", children: i ?? null }),
|
|
7489
|
-
/* @__PURE__ */ a.jsx(Ya, { children: y && (l == null ? void 0 : l.map(({ label: E, onClick: O, ...A },
|
|
7489
|
+
/* @__PURE__ */ a.jsx(Ya, { children: y && (l == null ? void 0 : l.map(({ label: E, onClick: O, ...A }, k) => /* @__PURE__ */ a.jsx(
|
|
7490
7490
|
Cr,
|
|
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 Oc = ({ 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(qa, { style: { fontSize: "40px" } }) })
|
|
7508
7508
|
] }),
|
|
7509
|
-
/* @__PURE__ */ a.jsx("div", { className: I("d-flex justify-content-center", Ve.photosPreviewContainer), children: /* @__PURE__ */ a.jsx(Bh, { onDragEnd:
|
|
7510
|
-
g.map((O, A) => /* @__PURE__ */ a.jsx(Cx, { 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(Bh, { onDragEnd: C, children: /* @__PURE__ */ a.jsx($x, { 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(Cx, { 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(Od, {}) }),
|
|
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 Oc = ({ 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
|
}, rN = ({ 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 Oc = ({ 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 Oc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7781
7781
|
] }) })
|
|
7782
7782
|
] });
|
|
7783
7783
|
}, Eb = ({ 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 Oc = ({ 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 Oc = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7828
7828
|
] })
|
|
7829
7829
|
] })
|
|
7830
7830
|
] });
|
|
7831
|
-
}, aN = ({ value: e, label: t, InputContainer: n = yn, className: r, withoutLabel: i, hidden: o, disabled: s, contactType: l, ...c }) => o ? null : /* @__PURE__ */ a.jsx(Pc, { 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 }) }), iN = ({ 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
|
+
}, aN = ({ value: e, label: t, InputContainer: n = yn, className: r, withoutLabel: i, hidden: o, disabled: s, contactType: l, ...c }) => o ? null : /* @__PURE__ */ a.jsx(Pc, { 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 }) }), iN = ({ 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(Ka, { 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(Xa, { value: (s == null ? void 0 : s.id) ?? null, MiniDetailComponent:
|
|
7843
|
+
/* @__PURE__ */ a.jsx(Xa, { 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 Oc = ({ 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 Oc = ({ 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(Vs, {}) }),
|
|
7872
7872
|
h ?? null
|
|
7873
7873
|
] }) : null
|
|
7874
7874
|
] }),
|
|
7875
|
-
Y.current && /* @__PURE__ */ a.jsx(Qa, { show: A, onCancel: () =>
|
|
7875
|
+
Y.current && /* @__PURE__ */ a.jsx(Qa, { 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
|
}, oN = ({ 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 Oc = ({ 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 Oc = ({ 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 Oc = ({ 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($s, {}) }) }),
|
|
@@ -8160,7 +8160,7 @@ function Mc(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 Yb(e) {
|
|
|
8193
8193
|
y === void 0 && (y = Wb);
|
|
8194
8194
|
var j = e.isValidInputCharacter;
|
|
8195
8195
|
j === void 0 && (j = Zn);
|
|
8196
|
-
var b = e.isCharacterSame, w = Tc(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), D = Mc(v, c, !!u, s, l, d),
|
|
8197
|
-
|
|
8196
|
+
var b = e.isCharacterSame, w = Tc(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), D = Mc(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 Yb(e) {
|
|
|
8228
8228
|
var Fe = K.inputValue || ne.value, ot = wa(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 Yb(e) {
|
|
|
8240
8240
|
var ye = H.current ? wa(H.current) : void 0, z = typeof window < "u" ? ei : 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 Jb(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 = Kb(j ? "-" + e : e, i), e = (e.match(Xb(g)) || []).join("");
|
|
8385
|
-
var
|
|
8385
|
+
var k = e.indexOf(g);
|
|
8386
8386
|
e = e.replace(new RegExp(Rc(g), "g"), function(H, R) {
|
|
8387
|
-
return R ===
|
|
8387
|
+
return R === k ? "." : "";
|
|
8388
8388
|
});
|
|
8389
|
-
var
|
|
8389
|
+
var S = ki(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 Zb(e, t) {
|
|
@@ -8433,7 +8433,7 @@ function ty(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 Ac($) ? $ : (typeof $ == "number" && ($ = Bc($)), w && typeof l == "number" ? os($, l, !!c) : $);
|
|
8436
|
-
},
|
|
8436
|
+
}, C = Mc(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 ty(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 = Mb(H)), c && l && (H = os(H, l, c)), H !== E) {
|
|
8452
8452
|
var R = ls(H, e);
|
|
@@ -8479,8 +8479,8 @@ function ty(e) {
|
|
|
8479
8479
|
getCaretBoundary: function($) {
|
|
8480
8480
|
return Zb($, e);
|
|
8481
8481
|
},
|
|
8482
|
-
onKeyDown:
|
|
8483
|
-
onBlur:
|
|
8482
|
+
onKeyDown: k,
|
|
8483
|
+
onBlur: S
|
|
8484
8484
|
});
|
|
8485
8485
|
}
|
|
8486
8486
|
function Bi(e) {
|
|
@@ -8491,20 +8491,20 @@ const ny = ({ 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 ny = ({ 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(Bi, { 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(Bi, { 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 ny = ({ 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
|
}, lN = ({ 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 } = cy(s, l, t), p =
|
|
8618
|
+
const { texts: { date: i }, ProjectIconComponent: o } = G(Q), [s, l] = L("C"), { handleArrowClick: c, handleRangeChange: u, setFromToProp: d } = cy(s, l, t), p = B(() => s === "C", [s]), f = te(!0);
|
|
8619
8619
|
return q(() => {
|
|
8620
8620
|
if (f.current) {
|
|
8621
8621
|
const m = ly(e.from, e.to);
|
|
@@ -8674,7 +8674,7 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
8674
8674
|
] : [], onClick: (o) => r && r(o.data) });
|
|
8675
8675
|
}, dy = ({ 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 ny = ({ 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
|
Gd(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(dy, { 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($d, { 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 ny = ({ 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 ny = ({ 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
|
}, uy = ({ errors: e, schema: t }) => {
|
|
@@ -8859,13 +8865,13 @@ const ny = ({ 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 ny = ({ 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 ny = ({ 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
|
}, By = ({ 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 ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9115
9121
|
apiExportGet: "/dynamicForms/export"
|
|
9116
9122
|
}, fN = ({ id: e, page: t, setPage: n, filters: r, setFilter: i, sortByField: o, sortByType: s, setSortBy: l, appUrls: { appDetail: c = gs.appDetail } = gs, 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, Mi, Fi, Vi;
|
|
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 ny = ({ 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 ny = ({ 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) => Ud(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(Jr(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(Jr(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(Jr(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) ?? ""] ? us(ie, w) : Se;
|
|
@@ -9171,11 +9177,11 @@ const ny = ({ 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 ny = ({ 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, sr;
|
|
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 ny = ({ 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(Hs, {}),
|
|
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 ny = ({ 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(Vy, { 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
|
}, mN = ({ activeId: e, anchoredForms: t, otherForms: n = [], groupsDefs: r = [], searchQuery: i, fullSize: o, appUrls: { appDetail: s = vs.appDetail } = vs, apiUrls: { apiDynamicFormsGet: l = hs.apiDynamicFormsGet } = hs }) => {
|
|
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 ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9424
9430
|
] })
|
|
9425
9431
|
] }))) }) }) });
|
|
9426
9432
|
}, bs = ({ reportVersion: e, getReportRoute: t, report: n }) => /* @__PURE__ */ a.jsx(Lr, { 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 }) }) }), vr = 5, ys = ({ 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 <= vr ? e : e.slice(0, vr - 1), [e]), l = B(() => e.length <= vr ? [] : e.slice(vr - 1), [e]);
|
|
9428
9434
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(Vn, { children: [
|
|
9429
9435
|
s.map((c) => /* @__PURE__ */ a.jsx(bs, { reportVersion: c, getReportRoute: t, report: n })),
|
|
9430
9436
|
i ? null : l.map((c) => /* @__PURE__ */ a.jsx(bs, { reportVersion: c, getReportRoute: t, report: n })),
|
|
9431
9437
|
l.length > 0 && /* @__PURE__ */ a.jsx(Lr, { 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
|
}, Xy = ({ 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 ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9455
9461
|
const { texts: { reports: l } } = G(Q), [c, u] = L(""), [d] = Ja(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 } = Br();
|
|
@@ -9516,7 +9522,7 @@ const ny = ({ 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
|
] }), SN = ({ route: e, variant: t = "link", children: n, className: r, disabled: i = !1, routeParams: o }) => {
|
|
9519
|
-
const { checkUserHasPermissions: s } = Ws(), l =
|
|
9525
|
+
const { checkUserHasPermissions: s } = Ws(), 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 ny = ({ 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
|
] }), IN = ({ 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 = er(), c = B(() => [
|
|
9607
9613
|
l.accessor("employeeName", {
|
|
9608
9614
|
header: i.index.employeeName,
|
|
9609
9615
|
type: "string",
|
|
@@ -9655,48 +9661,48 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9655
9661
|
const { register: f, formState: m, setValue: g } = Ct(), x = St({ falseIfNotInit: !0 }), [h, v] = L(void 0), [y, j] = L(!1);
|
|
9656
9662
|
q(() => {
|
|
9657
9663
|
const D = t.split(".");
|
|
9658
|
-
let
|
|
9664
|
+
let C = m.errors;
|
|
9659
9665
|
D.forEach((_) => {
|
|
9660
|
-
|
|
9661
|
-
}), v(
|
|
9666
|
+
C !== void 0 && (C = C[_]);
|
|
9667
|
+
}), v(C);
|
|
9662
9668
|
}, [m, t]);
|
|
9663
|
-
const b =
|
|
9669
|
+
const b = B(() => l || x, [l, x]), w = h !== void 0;
|
|
9664
9670
|
return q(() => {
|
|
9665
9671
|
m.isSubmitted && j(!0);
|
|
9666
9672
|
}, [m]), /* @__PURE__ */ a.jsxs(e, { isForCheckInput: !0, hidden: s, label: n ?? "", required: o, disabled: b, isInvalid: w, withoutLabel: c, hint: u, className: p, children: [
|
|
9667
9673
|
/* @__PURE__ */ a.jsx(ve.Check, { id: `check-${t}`, type: i ?? "checkbox", label: `${n}${o ? " *" : ""}`, ...f(t, {
|
|
9668
9674
|
onChange: (D) => {
|
|
9669
|
-
r && r.forEach((
|
|
9675
|
+
r && r.forEach((C) => g(C, null, { shouldDirty: !0, shouldValidate: y })), d && d(D.target.value ?? null);
|
|
9670
9676
|
}
|
|
9671
9677
|
}), isInvalid: w, hidden: s, disabled: b, className: "w-100" }),
|
|
9672
9678
|
h && /* @__PURE__ */ a.jsx(tn, { message: h.message })
|
|
9673
9679
|
] });
|
|
9674
9680
|
}, ON = ({ InputContainer: e = Pe, label: t, formField: n, options: r, resetsFields: i, required: o, disabled: s, hidden: l, onChange: c, className: u }) => {
|
|
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 =
|
|
9681
|
+
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]);
|
|
9676
9682
|
q(() => {
|
|
9677
9683
|
const D = n.split(".");
|
|
9678
|
-
let
|
|
9684
|
+
let C = p.errors;
|
|
9679
9685
|
D.forEach((_) => {
|
|
9680
|
-
|
|
9681
|
-
}), h(
|
|
9686
|
+
C !== void 0 && (C = C[_]);
|
|
9687
|
+
}), h(C);
|
|
9682
9688
|
}, [p, n]), q(() => {
|
|
9683
9689
|
p.isSubmitted && y(!0);
|
|
9684
9690
|
}, [p]);
|
|
9685
9691
|
const w = x !== void 0;
|
|
9686
9692
|
return /* @__PURE__ */ a.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: o, disabled: b, isInvalid: w, className: u, children: [
|
|
9687
9693
|
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, {
|
|
9688
|
-
onChange: (
|
|
9694
|
+
onChange: (C) => {
|
|
9689
9695
|
var _;
|
|
9690
|
-
i && i.forEach((E) => f(E, null, { shouldDirty: !0, shouldValidate: v })), c && c((_ =
|
|
9696
|
+
i && i.forEach((E) => f(E, null, { shouldDirty: !0, shouldValidate: v })), c && c((_ = C.target) != null && _.value ? C.target.value.toString() : null);
|
|
9691
9697
|
}
|
|
9692
9698
|
}), isInvalid: w, hidden: l, disabled: b, className: "w-100" }, D.id)),
|
|
9693
9699
|
x && /* @__PURE__ */ a.jsx(tn, { message: x.message })
|
|
9694
9700
|
] });
|
|
9695
9701
|
}, PN = ({ label: e, InputContainer: t = Pe, className: n, withoutLabel: r, hidden: i, disabled: o, contactType: s, formField: l, ...c }) => {
|
|
9696
|
-
const { watch: u } = Ct(), d = u(l), p = St({ falseIfNotInit: !0 }), f =
|
|
9702
|
+
const { watch: u } = Ct(), d = u(l), p = St({ falseIfNotInit: !0 }), f = B(() => o || p, [o, p]);
|
|
9697
9703
|
return i ? null : /* @__PURE__ */ a.jsx(Pc, { 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 }) });
|
|
9698
|
-
}, TN = ({ 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:
|
|
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 =
|
|
9704
|
+
}, TN = ({ 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 }) => {
|
|
9705
|
+
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(() => {
|
|
9700
9706
|
const W = t.split(".");
|
|
9701
9707
|
let ne = Y.errors;
|
|
9702
9708
|
W.forEach((pe) => {
|
|
@@ -9721,7 +9727,7 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9721
9727
|
oe(!1), fe(W);
|
|
9722
9728
|
}, [fe]), ue = P(() => {
|
|
9723
9729
|
oe(!1);
|
|
9724
|
-
}, []), _e = te(null), He = U !== void 0, Ze = f !== void 0, bt = Ze && ge !== null, K =
|
|
9730
|
+
}, []), _e = te(null), He = U !== void 0, Ze = f !== void 0, bt = Ze && ge !== null, K = B(() => u || V, [u, V]);
|
|
9725
9731
|
return q(() => {
|
|
9726
9732
|
Ce();
|
|
9727
9733
|
}, [Ce]), q(() => {
|
|
@@ -9729,7 +9735,7 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9729
9735
|
}, [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: [
|
|
9730
9736
|
/* @__PURE__ */ a.jsxs(Ka, { currentSelection: ge, selectedItemNavigateTo: f, children: [
|
|
9731
9737
|
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 }),
|
|
9732
|
-
/* @__PURE__ */ a.jsx(ti, { control: R, name: t, render: () => /* @__PURE__ */ a.jsx(Xa, { value: z, MiniDetailComponent: A, miniDetailPlacement:
|
|
9738
|
+
/* @__PURE__ */ a.jsx(ti, { control: R, name: t, render: () => /* @__PURE__ */ a.jsx(Xa, { value: z, MiniDetailComponent: A, miniDetailPlacement: k, children: /* @__PURE__ */ a.jsx(ve.Select, { size: r, onMouseDown: (W) => {
|
|
9733
9739
|
W.currentTarget.focus(), W.preventDefault();
|
|
9734
9740
|
}, onClick: () => {
|
|
9735
9741
|
!Ze && !K && oe(!0);
|
|
@@ -9746,29 +9752,29 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9746
9752
|
] }) : null
|
|
9747
9753
|
] }),
|
|
9748
9754
|
U && /* @__PURE__ */ a.jsx(tn, { message: U.message }),
|
|
9749
|
-
_e.current && /* @__PURE__ */ a.jsx(Qa, { 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:
|
|
9755
|
+
_e.current && /* @__PURE__ */ a.jsx(Qa, { 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 })
|
|
9750
9756
|
] }) });
|
|
9751
9757
|
}, AN = ({ 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 }) => {
|
|
9752
|
-
const { watch: g, setValue: x, register: h, formState: v } = Ct(), y = St({ falseIfNotInit: !0 }), [j, b] = L(!1), [w, D] = L(void 0),
|
|
9758
|
+
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(() => {
|
|
9753
9759
|
x(n, "");
|
|
9754
9760
|
}, [x, n]), _ = P(() => {
|
|
9755
9761
|
const A = n.split(".");
|
|
9756
|
-
let
|
|
9757
|
-
A.forEach((
|
|
9758
|
-
|
|
9759
|
-
}), D(
|
|
9762
|
+
let k = v.errors;
|
|
9763
|
+
A.forEach((S) => {
|
|
9764
|
+
k !== void 0 && (k = k[S]);
|
|
9765
|
+
}), D(k);
|
|
9760
9766
|
}, [v, n]);
|
|
9761
9767
|
q(_, [_]), q(() => {
|
|
9762
9768
|
v.isSubmitted && b(!0);
|
|
9763
9769
|
}, [v]);
|
|
9764
|
-
const E =
|
|
9770
|
+
const E = B(() => s || y, [s, y]), O = w !== void 0;
|
|
9765
9771
|
return /* @__PURE__ */ a.jsxs(e, { label: t ?? "", required: i, disabled: E, hidden: r, withoutLabel: p, isInvalid: O, hint: f, className: m, children: [
|
|
9766
9772
|
/* @__PURE__ */ a.jsx(qd, { type: "file", multiple: u, accept: d.join(", "), placeholder: o ?? t, isInvalid: O, hidden: r, disabled: E, className: "w-100", ...h(n, {
|
|
9767
9773
|
onChange: () => {
|
|
9768
9774
|
c && c.forEach((A) => x(A, null, { shouldDirty: !0, shouldValidate: j }));
|
|
9769
9775
|
}
|
|
9770
9776
|
}) }),
|
|
9771
|
-
l && g(n) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(ee, { color: "secondary", size: "sm", onClick:
|
|
9777
|
+
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, {}) }) }),
|
|
9772
9778
|
w && /* @__PURE__ */ a.jsx(tn, { message: w.message })
|
|
9773
9779
|
] });
|
|
9774
9780
|
}, sw = ({ children: e, onStorno: t, noSpacer: n }) => {
|
|
@@ -9777,13 +9783,13 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9777
9783
|
s(Object.keys(r.dirtyFields).length > 0);
|
|
9778
9784
|
}, [r]), o ? /* @__PURE__ */ a.jsx(qu, { onStorno: t, noSpacer: n, disabled: i, children: e }) : null;
|
|
9779
9785
|
}, Ga = ({ 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 }) => {
|
|
9780
|
-
const { texts: { customSelect: D } } = G(Q), { formState:
|
|
9786
|
+
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(() => {
|
|
9781
9787
|
const F = n.split(".");
|
|
9782
|
-
let ue =
|
|
9788
|
+
let ue = C.errors;
|
|
9783
9789
|
F.forEach((_e) => {
|
|
9784
9790
|
ue !== void 0 && (ue = ue[_e]);
|
|
9785
|
-
}),
|
|
9786
|
-
}, [
|
|
9791
|
+
}), S(ue);
|
|
9792
|
+
}, [C, n]), oe = P((F) => {
|
|
9787
9793
|
if ((F == null ? void 0 : F.id) === U)
|
|
9788
9794
|
return;
|
|
9789
9795
|
if (m && m(F), o && o.forEach((_e) => _(_e, null, { shouldDirty: !0, shouldValidate: $ })), F === null) {
|
|
@@ -9802,16 +9808,16 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9802
9808
|
Y(!1), oe(F);
|
|
9803
9809
|
}, [oe]), ye = P((F) => {
|
|
9804
9810
|
V(F);
|
|
9805
|
-
}, []), z =
|
|
9811
|
+
}, []), z = B(() => u || A, [u, A]);
|
|
9806
9812
|
q(() => {
|
|
9807
9813
|
Z();
|
|
9808
9814
|
}, [Z]), q(() => {
|
|
9809
|
-
|
|
9810
|
-
}, [
|
|
9815
|
+
C.isSubmitted && H(!0);
|
|
9816
|
+
}, [C]);
|
|
9811
9817
|
const ae = P((F) => {
|
|
9812
9818
|
var ue;
|
|
9813
9819
|
return F === null ? "" : !F.name || F.name.length === 0 ? ((ue = F.id) == null ? void 0 : ue.toString()) ?? "" : f ? `${F.name} (${F.id})` : F.name;
|
|
9814
|
-
}, [f]), ge =
|
|
9820
|
+
}, [f]), ge = B(() => {
|
|
9815
9821
|
const F = t ? [...t] : [];
|
|
9816
9822
|
return x !== void 0 && U && (F.some((ue) => ue.id === U) || F.push({ id: U, name: x })), F.map((ue) => ({
|
|
9817
9823
|
id: ue.id,
|
|
@@ -9824,7 +9830,7 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9824
9830
|
ae,
|
|
9825
9831
|
x,
|
|
9826
9832
|
U
|
|
9827
|
-
]), Ce = te(null), fe =
|
|
9833
|
+
]), Ce = te(null), fe = k !== void 0;
|
|
9828
9834
|
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: [
|
|
9829
9835
|
/* @__PURE__ */ a.jsx(Ka, { currentSelection: X, selectedItemNavigateTo: w, children: /* @__PURE__ */ a.jsx(ti, { control: O, name: n, render: () => /* @__PURE__ */ a.jsx(Xa, { value: U, MiniDetailComponent: j, miniDetailPlacement: b, children: /* @__PURE__ */ a.jsx(ve.Select, { size: i, onMouseDown: (F) => {
|
|
9830
9836
|
F.currentTarget.focus(), F.preventDefault();
|
|
@@ -9832,25 +9838,25 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9832
9838
|
Y(!0);
|
|
9833
9839
|
}, ref: Ce, value: U ?? "", onChange: () => {
|
|
9834
9840
|
}, isInvalid: fe, hidden: c, disabled: z, className: "w-100", children: /* @__PURE__ */ a.jsx("option", { value: (X == null ? void 0 : X.id) ?? "", children: ae(X) }) }) }) }) }),
|
|
9835
|
-
|
|
9841
|
+
k && /* @__PURE__ */ a.jsx(tn, { message: k.message }),
|
|
9836
9842
|
Ce.current && /* @__PURE__ */ a.jsx(Qa, { 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 })
|
|
9837
9843
|
] }) });
|
|
9838
9844
|
}, RN = ({ 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 }) => {
|
|
9839
|
-
const { register: j, formState: b, setValue: w, watch: D } = Ct(),
|
|
9845
|
+
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) => {
|
|
9840
9846
|
w(R, Bn(V, x, h), U);
|
|
9841
|
-
}, [h, x, w]),
|
|
9847
|
+
}, [h, x, w]), S = P(() => {
|
|
9842
9848
|
const R = l ?? null;
|
|
9843
|
-
|
|
9849
|
+
k(t, R !== null ? Number(R) : null, {
|
|
9844
9850
|
shouldDirty: !0,
|
|
9845
9851
|
shouldValidate: O
|
|
9846
9852
|
});
|
|
9847
|
-
}, [l,
|
|
9853
|
+
}, [l, k, t, O]), T = P(() => {
|
|
9848
9854
|
const R = t.split(".");
|
|
9849
9855
|
let V = b.errors;
|
|
9850
9856
|
R.forEach((U) => {
|
|
9851
9857
|
V !== void 0 && (V = V[U]);
|
|
9852
9858
|
}), E(V);
|
|
9853
|
-
}, [b, t]), Y =
|
|
9859
|
+
}, [b, t]), Y = B(() => d || C, [d, C]);
|
|
9854
9860
|
q(() => {
|
|
9855
9861
|
T();
|
|
9856
9862
|
}, [T]), q(() => {
|
|
@@ -9869,17 +9875,17 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9869
9875
|
}
|
|
9870
9876
|
}), isInvalid: $, hidden: u, disabled: Y, className: "w-100 luminus-numeric-stepper", step: f, min: x, max: h }),
|
|
9871
9877
|
/* @__PURE__ */ a.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ a.jsx(ee, { size: "sm", onClick: (R) => {
|
|
9872
|
-
R.preventDefault(), R.stopPropagation(),
|
|
9878
|
+
R.preventDefault(), R.stopPropagation(), k(t, ((H ? Number(H) : 0) - m).toString(), { shouldDirty: !0, shouldValidate: O });
|
|
9873
9879
|
}, children: /* @__PURE__ */ a.jsx($s, {}) }) }),
|
|
9874
9880
|
/* @__PURE__ */ a.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ a.jsx(ee, { size: "sm", onClick: (R) => {
|
|
9875
|
-
R.preventDefault(), R.stopPropagation(),
|
|
9881
|
+
R.preventDefault(), R.stopPropagation(), k(t, ((H ? Number(H) : 0) + m).toString(), { shouldDirty: !0, shouldValidate: O });
|
|
9876
9882
|
}, children: /* @__PURE__ */ a.jsx(Gs, {}) }) })
|
|
9877
9883
|
] }),
|
|
9878
|
-
s && D(t) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(ee, { color: "secondary", size: "sm", onClick:
|
|
9884
|
+
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, {}) }) }),
|
|
9879
9885
|
_ && /* @__PURE__ */ a.jsx(tn, { message: _.message })
|
|
9880
9886
|
] });
|
|
9881
|
-
}, kN = ({ 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:
|
|
9882
|
-
const { formState: _, setValue: E, watch: O, control: A } = Ct(),
|
|
9887
|
+
}, kN = ({ 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 }) => {
|
|
9888
|
+
const { formState: _, setValue: E, watch: O, control: A } = Ct(), k = St({ falseIfNotInit: !0 }), [S, T] = L(void 0), [Y, $] = L(!1), H = P(() => {
|
|
9883
9889
|
const Z = s ?? null;
|
|
9884
9890
|
E(t, Z !== null ? Number(Z) : null, {
|
|
9885
9891
|
shouldDirty: !0,
|
|
@@ -9891,7 +9897,7 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9891
9897
|
Z.forEach((se) => {
|
|
9892
9898
|
oe !== void 0 && (oe = oe[se]);
|
|
9893
9899
|
}), T(oe);
|
|
9894
|
-
}, [_, t]), V =
|
|
9900
|
+
}, [_, t]), V = B(() => u || k, [u, k]);
|
|
9895
9901
|
q(() => {
|
|
9896
9902
|
R();
|
|
9897
9903
|
}, [R]), q(() => {
|
|
@@ -9901,8 +9907,8 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9901
9907
|
q(() => {
|
|
9902
9908
|
w !== void 0 && U > w && E(t, w), b !== void 0 && U < b && E(t, b);
|
|
9903
9909
|
}, [t, U, w, b, E]);
|
|
9904
|
-
const X =
|
|
9905
|
-
return /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: l, disabled: V, hidden: c, withoutLabel: d, isInvalid: X, hint:
|
|
9910
|
+
const X = S !== void 0;
|
|
9911
|
+
return /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: l, disabled: V, hidden: c, withoutLabel: d, isInvalid: X, hint: C, className: x, children: [
|
|
9906
9912
|
/* @__PURE__ */ a.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
9907
9913
|
/* @__PURE__ */ a.jsx(ti, { control: A, name: t, render: ({ field: { ref: Z, onChange: oe, name: se, value: ye } }) => /* @__PURE__ */ a.jsx(Bi, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: h, fixedDecimalScale: v, prefix: y, suffix: j, defaultValue: "", name: se, value: ye ?? "", placeholder: r ?? n, onFocus: (z) => {
|
|
9908
9914
|
!g && z.target.select();
|
|
@@ -9920,7 +9926,7 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9920
9926
|
m && /* @__PURE__ */ a.jsx("div", { className: "custom-picker-button", children: m })
|
|
9921
9927
|
] }),
|
|
9922
9928
|
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, {}) }) }),
|
|
9923
|
-
|
|
9929
|
+
S && /* @__PURE__ */ a.jsx(tn, { message: S.message })
|
|
9924
9930
|
] });
|
|
9925
9931
|
}, lw = (e, t) => {
|
|
9926
9932
|
const n = Ke(), r = Vr(), { startLoading: i, stopLoading: o } = G(xt), { zDateRequired: s, zNumberRequired: l } = Mr(), { addNotification: c } = Zt(), { refreshAvailableDelegations: u } = G(zs), { user: d } = G(Lt), { texts: { substitutions: { detail: p } } } = G(Q), f = dn.object({
|
|
@@ -9930,7 +9936,7 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9930
9936
|
from: s(),
|
|
9931
9937
|
to: s(),
|
|
9932
9938
|
roles: dn.array(dn.string())
|
|
9933
|
-
}), m =
|
|
9939
|
+
}), m = B(() => ({
|
|
9934
9940
|
id: (e == null ? void 0 : e.id) ?? 0,
|
|
9935
9941
|
employeeId: (e == null ? void 0 : e.employeeId) ?? (d == null ? void 0 : d.personalNumber) ?? void 0,
|
|
9936
9942
|
substituteId: (e == null ? void 0 : e.substituteId) ?? void 0,
|
|
@@ -9977,7 +9983,7 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
9977
9983
|
enabled: t !== void 0
|
|
9978
9984
|
}), { data: c } = ke("/permissions/users"), { onSubmit: u, formMethods: d } = lw(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(zs), { checkUserHasPermissions: g } = Ws(), x = P(async () => {
|
|
9979
9985
|
await o(s.deleteConfirm) && (await r.delete(`/permissions/substitutions/${t}`), m(), i(e));
|
|
9980
|
-
}, [r, o, t, i, m, s, e]), h =
|
|
9986
|
+
}, [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]);
|
|
9981
9987
|
return /* @__PURE__ */ a.jsx(Nt, { title: /* @__PURE__ */ a.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
9982
9988
|
/* @__PURE__ */ a.jsx(M, { variant: "h3", children: s.title }),
|
|
9983
9989
|
/* @__PURE__ */ a.jsx(Mt, { toggle: /* @__PURE__ */ a.jsx(Ft, { as: en }), children: /* @__PURE__ */ a.jsx(Ye, { onClick: () => x(), children: s.delete }) })
|
|
@@ -10010,14 +10016,14 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10010
10016
|
marginRight: "-12px",
|
|
10011
10017
|
padding: "0px 12px"
|
|
10012
10018
|
}, 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) => {
|
|
10013
|
-
d.setValue("roles", D ? [...v ?? [], w.name] : (v == null ? void 0 : v.filter((
|
|
10019
|
+
d.setValue("roles", D ? [...v ?? [], w.name] : (v == null ? void 0 : v.filter((C) => C !== w.name)) ?? [], { shouldDirty: !0 });
|
|
10014
10020
|
}, InputContainer: Pe }, w.name)) })
|
|
10015
10021
|
] }) })
|
|
10016
10022
|
] }),
|
|
10017
10023
|
/* @__PURE__ */ a.jsx(sw, { onStorno: () => d.reset(), children: s.save })
|
|
10018
10024
|
] }) }) }) });
|
|
10019
10025
|
}, cw = ({ BnfTableComponent: e, items: t, onEditItem: n, tableIdentifier: r }) => {
|
|
10020
|
-
const { texts: { approval: i } } = G(Q), o =
|
|
10026
|
+
const { texts: { approval: i } } = G(Q), o = B(() => t.map((u) => ({ ...u, archive: !!(u.dateTo && Yd(pt(u.dateTo))) })), [t]), s = er(), l = B(() => [
|
|
10021
10027
|
s.accessor("id", {
|
|
10022
10028
|
header: "Id",
|
|
10023
10029
|
type: "number",
|
|
@@ -10092,7 +10098,7 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10092
10098
|
), 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]);
|
|
10093
10099
|
return { getHasRunningProcesses: l, postEditDelegation: c, postDeleteDelegation: u };
|
|
10094
10100
|
}, uw = ({ model: e, handleClose: t, onConfirm: n, apiApprovalDefinitions: r, apiHasRunningProcess: i, apiPostEditDelegation: o, apiDeleteDelegation: s, EmployeePickerComponent: l }) => {
|
|
10095
|
-
var
|
|
10101
|
+
var C, _;
|
|
10096
10102
|
const { ProjectIconComponent: c, texts: { approval: u } } = G(Q), { zDate: d, zObjectIdIntRequired: p, zDateRequired: f } = Mr(), { addNotification: m } = Zt(), { confirm: g } = Dt(), { data: x } = ke(r), h = dn.object({
|
|
10097
10103
|
employee: p(),
|
|
10098
10104
|
delegate: p(),
|
|
@@ -10101,14 +10107,14 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10101
10107
|
approval: p()
|
|
10102
10108
|
}), v = $r({ resolver: Fr(h) }), { getHasRunningProcesses: y, postEditDelegation: j, postDeleteDelegation: b } = dw(e, i, o, s);
|
|
10103
10109
|
q(() => {
|
|
10104
|
-
var E, O, A,
|
|
10110
|
+
var E, O, A, k, S, T;
|
|
10105
10111
|
e && (v.reset({
|
|
10106
10112
|
...e,
|
|
10107
10113
|
employee: { id: ((E = e.employee) == null ? void 0 : E.id) ?? 0 },
|
|
10108
10114
|
delegate: { id: ((O = e.delegate) == null ? void 0 : O.id) ?? 0 },
|
|
10109
10115
|
dateFrom: e.dateFrom ?? "",
|
|
10110
10116
|
approval: { id: ((A = e.approval) == null ? void 0 : A.id) ?? 0 }
|
|
10111
|
-
}, { keepDirty: !1 }), (
|
|
10117
|
+
}, { keepDirty: !1 }), (k = e.employee) != null && k.id || wr(v, "employee.id"), (S = e.delegate) != null && S.id || wr(v, "delegate.id"), (T = e.approval) != null && T.id || wr(v, "approval.id"));
|
|
10112
10118
|
}, [e, v]);
|
|
10113
10119
|
const w = async (E) => {
|
|
10114
10120
|
if (!e)
|
|
@@ -10128,7 +10134,7 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10128
10134
|
/* @__PURE__ */ a.jsx(Gr, { ...v, children: /* @__PURE__ */ a.jsxs(ve, { onSubmit: v.handleSubmit(w), noValidate: !0, children: [
|
|
10129
10135
|
/* @__PURE__ */ a.jsxs(ce.Body, { children: [
|
|
10130
10136
|
/* @__PURE__ */ a.jsx(Ga, { label: u.delegations.detail.approval, isNumber: !0, formField: "approval.id", options: x ?? [], required: !0 }),
|
|
10131
|
-
/* @__PURE__ */ a.jsx(l, { label: u.delegations.detail.employee, formField: "employee.id", defaultSelection: (
|
|
10137
|
+
/* @__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 }),
|
|
10132
10138
|
/* @__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 }),
|
|
10133
10139
|
/* @__PURE__ */ a.jsx(gn, { label: u.delegations.detail.dateFrom, formField: "dateFrom", type: "date", required: !0 }),
|
|
10134
10140
|
/* @__PURE__ */ a.jsx(gn, { label: u.delegations.detail.dateTo, formField: "dateTo", type: "date" })
|
|
@@ -10221,7 +10227,7 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10221
10227
|
}, apiPostChangeEmployee: r, EmployeePickerComponent: i })
|
|
10222
10228
|
] });
|
|
10223
10229
|
}, mw = ({ approval: e, apiApprovalDelegations: t, appEmployeeDetail: n }) => {
|
|
10224
|
-
const { ProjectIconComponent: r, texts: { approval: i } } = G(Q), { data: o } = ke(t), s =
|
|
10230
|
+
const { ProjectIconComponent: r, texts: { approval: i } } = G(Q), { data: o } = ke(t), s = B(() => o ? o.filter((l) => {
|
|
10225
10231
|
var c;
|
|
10226
10232
|
return ((c = l.approval) == null ? void 0 : c.id) === e.id;
|
|
10227
10233
|
}) : null, [o, e]);
|
|
@@ -10293,9 +10299,9 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10293
10299
|
/* @__PURE__ */ a.jsx("div", { className: "col-10 overflow-hidden h-100", children: f ? /* @__PURE__ */ a.jsx(gw, { approval: f, reloadApproval: m, appEmployeeDetail: t, apiPostChangeEmployee: i, EmployeePickerComponent: s, apiApprovalDelegations: o }) : null })
|
|
10294
10300
|
] }) });
|
|
10295
10301
|
}, FN = ({ overviewApiPath: e = (t) => `/notification/email/overview?date=${t}` }) => {
|
|
10296
|
-
const { ProjectIconComponent: t, texts: { emailOverview: n } } = G(Q), [r, i] = Xt("date", un(/* @__PURE__ */ new Date(), { representation: "date" })), o =
|
|
10302
|
+
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) => {
|
|
10297
10303
|
i(un(Cu(o, p), { representation: "date" }));
|
|
10298
|
-
}, [o, i]), [c, u] = Xt("email", null), d =
|
|
10304
|
+
}, [o, i]), [c, u] = Xt("email", null), d = B(() => c ? s == null ? void 0 : s.find((p) => p.id === c) : null, [c, s]);
|
|
10299
10305
|
return /* @__PURE__ */ a.jsx(Nt, { variant: "fullScreen", title: /* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center gap-3", children: [
|
|
10300
10306
|
/* @__PURE__ */ a.jsx(M, { variant: "h3", children: n.title }),
|
|
10301
10307
|
/* @__PURE__ */ a.jsxs("div", { className: "d-flex gap-1 align-items-center justify-content-start", children: [
|
|
@@ -10351,7 +10357,7 @@ const ny = ({ InputContainer: e = yn, value: t, onChange: n, debounceMs: r, labe
|
|
|
10351
10357
|
}), t;
|
|
10352
10358
|
}, xw = (e) => e && e.type === "header" && e.member && e.member.caption !== "All" && // collapsed groups have this in continuing cells
|
|
10353
10359
|
e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds = (e) => !e.member && !e.isDrillThrough, Ss = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t), bw = ({ dataSource: e, settings: t, pivotRef: n, localization: r, licenseKey: i, hyperlinkColumn: o, roomPasportization: s, enabled: l = !0 }) => {
|
|
10354
|
-
const { texts: { reports: c } } = G(Q), [u, d] = L(!1), p = te(null), f = n ?? p, m =
|
|
10360
|
+
const { texts: { reports: c } } = G(Q), [u, d] = L(!1), p = te(null), f = n ?? p, m = B(() => ({
|
|
10355
10361
|
localization: r
|
|
10356
10362
|
}), [r]), g = P((b) => {
|
|
10357
10363
|
delete b[0], delete b[1], delete b[2];
|
|
@@ -10379,8 +10385,8 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10379
10385
|
}, [f, c.collapseAll, c.expand, c.expandAll]), x = (b) => {
|
|
10380
10386
|
const w = b.getTabs();
|
|
10381
10387
|
b.getTabs = () => g(w);
|
|
10382
|
-
}, h =
|
|
10383
|
-
var w, D,
|
|
10388
|
+
}, 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(() => {
|
|
10389
|
+
var w, D, C, _;
|
|
10384
10390
|
const b = (w = f.current) == null ? void 0 : w.flexmonster.getReport();
|
|
10385
10391
|
return b && b.slice ? {
|
|
10386
10392
|
...b.slice,
|
|
@@ -10392,7 +10398,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10392
10398
|
...h
|
|
10393
10399
|
],
|
|
10394
10400
|
columns: [
|
|
10395
|
-
...((
|
|
10401
|
+
...((C = b.slice.columns) == null ? void 0 : C.filter((E) => {
|
|
10396
10402
|
var O;
|
|
10397
10403
|
return !((O = E.caption) != null && O.includes("P:"));
|
|
10398
10404
|
})) ?? [],
|
|
@@ -10408,7 +10414,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10408
10414
|
} : null;
|
|
10409
10415
|
}, [h, f]);
|
|
10410
10416
|
q(() => {
|
|
10411
|
-
var b, w, D,
|
|
10417
|
+
var b, w, D, C;
|
|
10412
10418
|
if (u && l) {
|
|
10413
10419
|
if (s && v) {
|
|
10414
10420
|
const _ = (b = f.current) == null ? void 0 : b.flexmonster.getReport(), E = _ && _.options ? {
|
|
@@ -10422,11 +10428,11 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10422
10428
|
options: E
|
|
10423
10429
|
});
|
|
10424
10430
|
} else
|
|
10425
|
-
(
|
|
10431
|
+
(C = f.current) == null || C.flexmonster.updateData(e);
|
|
10426
10432
|
console.log("Updating flexmonster dataSource to: ", e);
|
|
10427
10433
|
}
|
|
10428
10434
|
}, [e, l, u, h, f, s, v]), q(() => {
|
|
10429
|
-
var b, w, D,
|
|
10435
|
+
var b, w, D, C, _;
|
|
10430
10436
|
if (u && l) {
|
|
10431
10437
|
const E = (b = f.current) == null ? void 0 : b.flexmonster.getReport();
|
|
10432
10438
|
if (E === void 0 || typeof E == "string")
|
|
@@ -10441,9 +10447,9 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10441
10447
|
}, s && (O.slice = {
|
|
10442
10448
|
...t == null ? void 0 : t.slice,
|
|
10443
10449
|
rows: [
|
|
10444
|
-
...((
|
|
10445
|
-
var
|
|
10446
|
-
return !((
|
|
10450
|
+
...((C = (D = t == null ? void 0 : t.slice) == null ? void 0 : D.rows) == null ? void 0 : C.filter((k) => {
|
|
10451
|
+
var S;
|
|
10452
|
+
return !((S = k.caption) != null && S.includes("P:"));
|
|
10447
10453
|
})) ?? [],
|
|
10448
10454
|
...h
|
|
10449
10455
|
]
|
|
@@ -10453,18 +10459,18 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10453
10459
|
}
|
|
10454
10460
|
}, [l, u, h, f, s, t]);
|
|
10455
10461
|
const y = P((b, w) => {
|
|
10456
|
-
var
|
|
10462
|
+
var k, S;
|
|
10457
10463
|
if (xw(w)) {
|
|
10458
|
-
b.text = ((
|
|
10464
|
+
b.text = ((k = w.member) == null ? void 0 : k.caption) ?? "";
|
|
10459
10465
|
const T = b.style["padding-left"] ?? "4px", Y = parseInt(T, 10);
|
|
10460
10466
|
b.style["padding-left"] = Y + 11 + "px";
|
|
10461
10467
|
}
|
|
10462
10468
|
if (!o || !Ns(w, o.idColumn) || Ds(w))
|
|
10463
10469
|
return;
|
|
10464
|
-
const D = (
|
|
10470
|
+
const D = (S = w.escapedLabel) == null ? void 0 : S.toString();
|
|
10465
10471
|
if (D === void 0)
|
|
10466
10472
|
return;
|
|
10467
|
-
const
|
|
10473
|
+
const C = Ss(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'` : "";
|
|
10468
10474
|
b.style && (b.style["z-index"] = 1);
|
|
10469
10475
|
const A = `<a ${O} ${_} ${E}>${w.escapedLabel}</a>`;
|
|
10470
10476
|
b.text = A;
|
|
@@ -10650,16 +10656,16 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10650
10656
|
});
|
|
10651
10657
|
}, [t, e]), { mappings: n };
|
|
10652
10658
|
}, VN = ({ 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 }) => {
|
|
10653
|
-
const { texts: { reports: f } } = G(Q), { confirm: m } = Dt(), g = Vr(), [x] = vu(), { id: h } = Ys(), v =
|
|
10659
|
+
const { texts: { reports: f } } = G(Q), { confirm: m } = Dt(), g = Vr(), [x] = vu(), { id: h } = Ys(), v = B(() => h === void 0 ? null : Number(h), [h]), y = P((z) => {
|
|
10654
10660
|
const ae = z === null ? "" : z.toString();
|
|
10655
10661
|
g(vn(i(e), { id: ae }) + "?" + x.toString(), {
|
|
10656
10662
|
replace: !0,
|
|
10657
10663
|
flushSync: !0
|
|
10658
10664
|
});
|
|
10659
|
-
}, [i, g, e, x]), [j, b] = L(!1), w = te(null), { user: D } = G(Lt), { data:
|
|
10665
|
+
}, [i, g, e, x]), [j, b] = L(!1), w = te(null), { user: D } = G(Lt), { data: C, reloadData: _ } = ke(`/reports/${e}`), { mappings: E } = Nw(c, u), [O, A] = L({}), k = P((z) => {
|
|
10660
10666
|
const ae = z.target.value, ge = ae === "" ? null : Number(ae);
|
|
10661
10667
|
y(ge);
|
|
10662
|
-
}, [y]),
|
|
10668
|
+
}, [y]), S = P(async (z) => {
|
|
10663
10669
|
await _(), y(z);
|
|
10664
10670
|
}, [_, y]), { data: T, setData: Y } = ke(`/reports/version/${v}`, { enabled: v !== null, nullStateBeforeLoad: !1, nullStateOnFail: !0 });
|
|
10665
10671
|
q(() => {
|
|
@@ -10671,13 +10677,13 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10671
10677
|
const z = vw(T) ?? {};
|
|
10672
10678
|
A(z), (ae = w.current) == null || ae.flexmonster.refresh();
|
|
10673
10679
|
}, [T]);
|
|
10674
|
-
const { save: $, saveAs: H, archive: R, detach: V } = yw(e, w, v,
|
|
10680
|
+
const { save: $, saveAs: H, archive: R, detach: V } = yw(e, w, v, S), U = B(() => ({
|
|
10675
10681
|
data: n ?? [],
|
|
10676
10682
|
mapping: E ?? void 0
|
|
10677
10683
|
}), [n, E]), X = P(async () => {
|
|
10678
10684
|
var ae;
|
|
10679
10685
|
await m(f.confirmRevertChanges) && ((ae = w.current) == null || ae.flexmonster.setReport({ dataSource: U, ...O }));
|
|
10680
|
-
}, [m, U, f.confirmRevertChanges, O]), Z =
|
|
10686
|
+
}, [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(() => {
|
|
10681
10687
|
var z;
|
|
10682
10688
|
return (z = T == null ? void 0 : T.users) == null ? void 0 : z.some((ae) => ae.id === D.personalNumber && !ae.isReportOwner);
|
|
10683
10689
|
}, [T == null ? void 0 : T.users, D.personalNumber]), se = P(async () => {
|
|
@@ -10687,16 +10693,16 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10687
10693
|
}, [m, V, _, T == null ? void 0 : T.name, f, y]);
|
|
10688
10694
|
return q(() => {
|
|
10689
10695
|
var z, ae;
|
|
10690
|
-
v === null && y(((z =
|
|
10691
|
-
}, [
|
|
10696
|
+
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);
|
|
10697
|
+
}, [C == null ? void 0 : C.reportVersions, v, y]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
10692
10698
|
/* @__PURE__ */ a.jsx(Nt, { variant: "fullScreen", title: /* @__PURE__ */ a.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
|
|
10693
10699
|
/* @__PURE__ */ a.jsx(M, { variant: "h3", children: t }),
|
|
10694
10700
|
r,
|
|
10695
10701
|
/* @__PURE__ */ a.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
|
|
10696
|
-
/* @__PURE__ */ a.jsxs(Qd, { size: "sm", value: v ?? void 0, onChange:
|
|
10697
|
-
/* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectSystem, children:
|
|
10698
|
-
/* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectYour, children:
|
|
10699
|
-
/* @__PURE__ */ a.jsx("optgroup", { label: f.versionSelectSharedWithYou, children:
|
|
10702
|
+
/* @__PURE__ */ a.jsxs(Qd, { size: "sm", value: v ?? void 0, onChange: k, children: [
|
|
10703
|
+
/* @__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)) }),
|
|
10704
|
+
/* @__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)) }),
|
|
10705
|
+
/* @__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)) })
|
|
10700
10706
|
] }),
|
|
10701
10707
|
/* @__PURE__ */ a.jsx(dt, { icon: /* @__PURE__ */ a.jsx(Jd, {}), onClick: $, disabled: v === null || (T == null ? void 0 : T.isSystem) || !Z, children: f.save }),
|
|
10702
10708
|
/* @__PURE__ */ a.jsx(dt, { icon: /* @__PURE__ */ a.jsx(Zd, {}), onClick: H, className: "flex-shrink-0", children: f.saveAs }),
|
|
@@ -10748,7 +10754,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10748
10754
|
] }) }) })
|
|
10749
10755
|
] });
|
|
10750
10756
|
}, Cs = ["info", "warning", "danger"], Es = ({ messages: e, isLoading: t, onDeleteMessage: n, onClickMessage: r, getIcon: i, getLinksTo: o }) => {
|
|
10751
|
-
const { texts: { messageBoard: s } } = G(Q), [l, c] = L(Cs), u =
|
|
10757
|
+
const { texts: { messageBoard: s } } = G(Q), [l, c] = L(Cs), u = B(() => e.filter((d) => l.includes(d.type ?? "")), [l, e]);
|
|
10752
10758
|
return /* @__PURE__ */ a.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
|
|
10753
10759
|
/* @__PURE__ */ a.jsx(Dw, { knownTypes: Cs, typeFilters: l, onChangeTypeFilters: (d) => c(d) }),
|
|
10754
10760
|
t && /* @__PURE__ */ a.jsxs("div", { className: "p-3 w-100", children: [
|
|
@@ -10782,7 +10788,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10782
10788
|
});
|
|
10783
10789
|
}, [n, l]), v = P(async (w) => l.delete(`${r}${w}`).then(() => !0).catch(() => !1), [r, l]), y = P((w) => {
|
|
10784
10790
|
v(w).then((D) => {
|
|
10785
|
-
D && u(c.filter((
|
|
10791
|
+
D && u(c.filter((C) => C.id !== w));
|
|
10786
10792
|
});
|
|
10787
10793
|
}, [v, c]);
|
|
10788
10794
|
q(() => {
|
|
@@ -10856,7 +10862,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10856
10862
|
}, Vw = ({ shortcutLink: e, IconComponent: t, IconTypeArray: n, editShortcutLink: r, deleteLocation: i }) => {
|
|
10857
10863
|
const { ProjectIconComponent: o } = G(Q), [s, l] = L(e.icon), [c, u] = L(e.name);
|
|
10858
10864
|
console.log(s, typeof s);
|
|
10859
|
-
const d =
|
|
10865
|
+
const d = B(() => !(s === e.icon && c === e.name), [s, c, e.icon, e.name]), p = P(() => {
|
|
10860
10866
|
l(e.icon), u(e.name);
|
|
10861
10867
|
}, [e]), f = P(() => {
|
|
10862
10868
|
r({ ...e, icon: s, name: c });
|
|
@@ -10901,7 +10907,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10901
10907
|
}, Ww = ({ 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 }) }) }), zw = ({ closeModal: e, isOpen: t, createLink: n, pageTitlePrefix: r, IconComponent: i, IconTypeArray: o }) => {
|
|
10902
10908
|
const s = hu(), { texts: l } = G(Q), [c, u] = L("star-outline"), [d, p] = L(r ? document.title.replace(r, "") : document.title), f = P(async () => {
|
|
10903
10909
|
await n({ icon: c, name: d, url: s.pathname + s.search }), e();
|
|
10904
|
-
}, [e, n, c, s.pathname, s.search, d]), m =
|
|
10910
|
+
}, [e, n, c, s.pathname, s.search, d]), m = B(() => s.pathname + s.search, [s.pathname, s.search]);
|
|
10905
10911
|
return /* @__PURE__ */ a.jsx(ce, { show: t, onHide: e, size: "sm", children: /* @__PURE__ */ a.jsxs("div", { onKeyDown: (g) => {
|
|
10906
10912
|
g.code !== "Escape" && g.stopPropagation();
|
|
10907
10913
|
}, children: [
|
|
@@ -10932,7 +10938,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10932
10938
|
(s || c) && /* @__PURE__ */ a.jsx(zw, { IconComponent: e, IconTypeArray: t, closeModal: () => l(!1), createLink: r, isOpen: s, pageTitlePrefix: n })
|
|
10933
10939
|
] });
|
|
10934
10940
|
}, WN = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: n }) => {
|
|
10935
|
-
const { shortcutLinks: r, createShortcutLink: i } = Hc(), o =
|
|
10941
|
+
const { shortcutLinks: r, createShortcutLink: i } = Hc(), o = B(() => r !== null && r.length < Ua, [r]);
|
|
10936
10942
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className: "d-flex gap-2", children: [
|
|
10937
10943
|
r == null ? void 0 : r.slice(0, Ua).map((s, l) => s !== null ? /* @__PURE__ */ a.jsx(Ww, { shortcutLink: s, IconComponent: e }, l) : null),
|
|
10938
10944
|
o && /* @__PURE__ */ a.jsx(qw, { IconComponent: e, IconTypeArray: t, pageTitlePrefix: n, createLink: i })
|
|
@@ -10984,7 +10990,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
10984
10990
|
await l({ ...m, employee: g.personalNumber }), await o();
|
|
10985
10991
|
}, [o, l, n]), p = P(async (m) => {
|
|
10986
10992
|
await c(m), await o();
|
|
10987
|
-
}, [o, c]), f =
|
|
10993
|
+
}, [o, c]), f = B(() => ({
|
|
10988
10994
|
shortcutLinks: i,
|
|
10989
10995
|
createShortcutLink: u,
|
|
10990
10996
|
editShortcutLink: d,
|
|
@@ -11039,13 +11045,13 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11039
11045
|
/* @__PURE__ */ a.jsx(Qw, { show: u, onHide: () => d(!1), roles: r ?? [], onAddTarget: i, EmployeePicker: s, templateId: t })
|
|
11040
11046
|
] });
|
|
11041
11047
|
}, Zw = ({ data: e, onClick: t, BnfTableComponent: n }) => {
|
|
11042
|
-
const { texts: { notifCentrum: r } } = G(Q), i =
|
|
11048
|
+
const { texts: { notifCentrum: r } } = G(Q), i = B(() => e == null ? void 0 : e.map((c) => {
|
|
11043
11049
|
var u;
|
|
11044
11050
|
return {
|
|
11045
11051
|
...c,
|
|
11046
11052
|
recipientsString: ((u = c.recipients) == null ? void 0 : u.map((d) => d.name).join(", ")) ?? ""
|
|
11047
11053
|
};
|
|
11048
|
-
}), [e]), o = er(), s =
|
|
11054
|
+
}), [e]), o = er(), s = B(() => [
|
|
11049
11055
|
o.accessor("date", {
|
|
11050
11056
|
header: r.date,
|
|
11051
11057
|
type: "date"
|
|
@@ -11114,7 +11120,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11114
11120
|
console.log(R), w([]);
|
|
11115
11121
|
});
|
|
11116
11122
|
}, [t, y]);
|
|
11117
|
-
const [D,
|
|
11123
|
+
const [D, C] = Gn("notif-action-id", (($ = b == null ? void 0 : b.at(0)) == null ? void 0 : $.id) ?? null), [_, E] = L([]);
|
|
11118
11124
|
q(() => {
|
|
11119
11125
|
D === null || f === null || n(D, f).then((R) => {
|
|
11120
11126
|
E(R);
|
|
@@ -11130,10 +11136,10 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11130
11136
|
console.log(R), A([]);
|
|
11131
11137
|
});
|
|
11132
11138
|
}, [r, D]);
|
|
11133
|
-
const
|
|
11139
|
+
const k = B(() => {
|
|
11134
11140
|
var R;
|
|
11135
11141
|
return !b || !D ? [] : ((R = b.find((V) => V.id === D)) == null ? void 0 : R.templates) ?? [];
|
|
11136
|
-
}, [b, D]),
|
|
11142
|
+
}, [b, D]), S = P((R, V) => {
|
|
11137
11143
|
o(R, V).then((U) => {
|
|
11138
11144
|
w(b ? [
|
|
11139
11145
|
...b.map((X) => X.id !== D ? X : {
|
|
@@ -11169,21 +11175,21 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11169
11175
|
/* @__PURE__ */ a.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
11170
11176
|
/* @__PURE__ */ a.jsxs("div", { className: "row w-100", children: [
|
|
11171
11177
|
/* @__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 }) }),
|
|
11172
|
-
/* @__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) =>
|
|
11178
|
+
/* @__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 }) })
|
|
11173
11179
|
] }),
|
|
11174
11180
|
/* @__PURE__ */ a.jsx(Ya, { children: /* @__PURE__ */ a.jsx(Cr, { hideOn: "always", cKey: "template-edit", onClick: () => v(!0), disabled: f === null, icon: /* @__PURE__ */ a.jsx(d, { icon: "edit" }), children: u.editTemplate }) })
|
|
11175
11181
|
] }),
|
|
11176
11182
|
/* @__PURE__ */ a.jsxs("div", { className: "vh-100 overflow-hidden d-flex gap-1", children: [
|
|
11177
|
-
/* @__PURE__ */ a.jsx("div", { className: "h-75 w-25 overflow-hidden", children: /* @__PURE__ */ a.jsx(Jw, { templates:
|
|
11183
|
+
/* @__PURE__ */ a.jsx("div", { className: "h-75 w-25 overflow-hidden", children: /* @__PURE__ */ a.jsx(Jw, { templates: k, roles: O ?? [], onAddNotifTarget: S, onRemoveNotifTarget: Y, selectedTemplateId: f, setSelectedTemplateId: (R) => {
|
|
11178
11184
|
m(R), x(null);
|
|
11179
11185
|
}, EmployeePicker: l }) }),
|
|
11180
11186
|
/* @__PURE__ */ a.jsx("div", { className: "w-25 h-75 overflow-hidden", children: f && /* @__PURE__ */ a.jsx(Zw, { data: _ ?? [], onClick: (R) => x((_ == null ? void 0 : _.find((V) => V.id === R)) ?? null), BnfTableComponent: c }) }),
|
|
11181
|
-
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 =
|
|
11187
|
+
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) }) })
|
|
11182
11188
|
] }),
|
|
11183
|
-
/* @__PURE__ */ a.jsx(ej, { show: h, onHide: () => v(!1), template:
|
|
11189
|
+
/* @__PURE__ */ a.jsx(ej, { show: h, onHide: () => v(!1), template: k.find((R) => R.id === f) ?? null, onEdit: T })
|
|
11184
11190
|
] });
|
|
11185
11191
|
}, tj = ({ history: e, onClick: t, BnfTableComponent: n }) => {
|
|
11186
|
-
const { texts: { notifCentrum: r } } = G(Q), i = er(), o =
|
|
11192
|
+
const { texts: { notifCentrum: r } } = G(Q), i = er(), o = B(() => [
|
|
11187
11193
|
i.accessor("id", {
|
|
11188
11194
|
header: "notificationHistory.id",
|
|
11189
11195
|
type: "number",
|
|
@@ -11269,7 +11275,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11269
11275
|
] });
|
|
11270
11276
|
}, nj = ({ result: e, onClose: t, tableIdentifier: n, BnfTableComponent: r }) => {
|
|
11271
11277
|
var c, u, d, p, f;
|
|
11272
|
-
const { texts: { imports: i }, ProjectIconComponent: o } = G(Q), s = er(), l =
|
|
11278
|
+
const { texts: { imports: i }, ProjectIconComponent: o } = G(Q), s = er(), l = B(() => [
|
|
11273
11279
|
s.accessor("row", {
|
|
11274
11280
|
header: i.row,
|
|
11275
11281
|
type: "number",
|
|
@@ -11361,7 +11367,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11361
11367
|
r = s;
|
|
11362
11368
|
}
|
|
11363
11369
|
}, sj = ({ selLng: e, lngsData: t, localizationKey: n, reloadData: r, saveChanges: i }) => {
|
|
11364
|
-
const { ProjectIconComponent: o } = G(Q), s =
|
|
11370
|
+
const { ProjectIconComponent: o } = G(Q), s = B(() => {
|
|
11365
11371
|
const p = t.get(e);
|
|
11366
11372
|
if (p === void 0)
|
|
11367
11373
|
return "";
|
|
@@ -11369,7 +11375,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11369
11375
|
return p !== void 0 && f !== void 0 ? f : "";
|
|
11370
11376
|
}, [t, n, e]), [l, c] = L(s), u = P(async () => {
|
|
11371
11377
|
await i([{ fileName: e + ".json", items: [{ key: n, value: l }] }]), await r();
|
|
11372
|
-
}, [n, r, i, e, l]), d =
|
|
11378
|
+
}, [n, r, i, e, l]), d = B(() => l !== s, [s, l]);
|
|
11373
11379
|
return /* @__PURE__ */ a.jsxs("div", { className: "d-flex", children: [
|
|
11374
11380
|
/* @__PURE__ */ a.jsx(rt, { label: e + n, type: "text", value: l, onChange: (p) => {
|
|
11375
11381
|
c(typeof p != "string" ? "" : p);
|
|
@@ -11403,22 +11409,22 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11403
11409
|
r = s;
|
|
11404
11410
|
}
|
|
11405
11411
|
}, XN = ({ languageOptions: e, envMode: t, getOtherSettingsUrl: n, downloadXls: r, saveChanges: i, localizationFilesOptions: o, remoteLocalesRoot: s }) => {
|
|
11406
|
-
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((
|
|
11407
|
-
f(/* @__PURE__ */ new Map()), y(
|
|
11408
|
-
}, []), b =
|
|
11412
|
+
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) => {
|
|
11413
|
+
f(/* @__PURE__ */ new Map()), y(S);
|
|
11414
|
+
}, []), b = B(() => e.filter((S) => !v.has(S.id)), [v, e]), w = B(() => {
|
|
11409
11415
|
if (p.size === 0)
|
|
11410
11416
|
return [];
|
|
11411
|
-
const
|
|
11417
|
+
const S = /* @__PURE__ */ new Set(), T = (V, U = "") => {
|
|
11412
11418
|
if (typeof V[1] == "object") {
|
|
11413
11419
|
Object.entries(V[1]).forEach((X) => T(X, U + V[0] + "."));
|
|
11414
11420
|
return;
|
|
11415
11421
|
}
|
|
11416
|
-
|
|
11422
|
+
S.add(U + V[0]);
|
|
11417
11423
|
};
|
|
11418
11424
|
Array.from(p).forEach((V) => {
|
|
11419
11425
|
Object.entries(V[1]).forEach((U) => T(U));
|
|
11420
11426
|
});
|
|
11421
|
-
const Y = Array.from(
|
|
11427
|
+
const Y = Array.from(S), $ = o.find((V) => V.path === m);
|
|
11422
11428
|
return (($ == null ? void 0 : $.type) === "report" ? Y.filter((V) => {
|
|
11423
11429
|
const U = V.split(".");
|
|
11424
11430
|
return U[U.length - 1] === "caption";
|
|
@@ -11432,23 +11438,23 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11432
11438
|
];
|
|
11433
11439
|
}))
|
|
11434
11440
|
}));
|
|
11435
|
-
}, [p, o, m, v]), D =
|
|
11436
|
-
|
|
11437
|
-
}, [
|
|
11441
|
+
}, [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 / xr), [D.length]), _ = P((S) => {
|
|
11442
|
+
S !== null && d(() => Math.max(1, Math.min(S, C)));
|
|
11443
|
+
}, [C]), E = P(async () => {
|
|
11438
11444
|
if (m === null)
|
|
11439
11445
|
return;
|
|
11440
|
-
const
|
|
11446
|
+
const S = Array.from(v).map((Y) => (async () => {
|
|
11441
11447
|
const $ = await eu.get(
|
|
11442
11448
|
`${s}${m == null ? void 0 : m.replace("{{lng}}", Y)}&v=${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
11443
11449
|
// &v to not hit browser cache
|
|
11444
11450
|
{ responseType: "json" }
|
|
11445
11451
|
);
|
|
11446
11452
|
return [Y, $.data];
|
|
11447
|
-
})()), T = await Promise.allSettled(
|
|
11453
|
+
})()), T = await Promise.allSettled(S);
|
|
11448
11454
|
f(new Map(T.map((Y) => Y.status === "fulfilled" ? Y.value : ["", {}])));
|
|
11449
11455
|
}, [s, m, v]), O = P(async () => {
|
|
11450
11456
|
E();
|
|
11451
|
-
}, [E]), A =
|
|
11457
|
+
}, [E]), A = B(() => b.length > 0, [b.length]), k = B(() => v.size + 1 + (A ? 1 : 0), [A, v.size]);
|
|
11452
11458
|
return q(() => {
|
|
11453
11459
|
_(u);
|
|
11454
11460
|
}, [_, u, D]), q(() => {
|
|
@@ -11459,17 +11465,17 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11459
11465
|
/* @__PURE__ */ a.jsx("br", {}),
|
|
11460
11466
|
l.envNotConnectedToRemote(t.toUpperCase())
|
|
11461
11467
|
] }) }) : /* @__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: {
|
|
11462
|
-
"--keys-table-columns":
|
|
11468
|
+
"--keys-table-columns": k,
|
|
11463
11469
|
"--adding-column": A ? 1 : 0
|
|
11464
11470
|
}, children: [
|
|
11465
11471
|
/* @__PURE__ */ a.jsxs("div", { className: I($e.tableFullWidth, "d-flex align-items-center justify-content-between gap-2 px-2 mt-1"), children: [
|
|
11466
|
-
/* @__PURE__ */ a.jsx(ft, { options: o.map((
|
|
11467
|
-
id:
|
|
11468
|
-
name:
|
|
11469
|
-
})), value: m, onChange: (
|
|
11472
|
+
/* @__PURE__ */ a.jsx(ft, { options: o.map((S) => ({
|
|
11473
|
+
id: S.path,
|
|
11474
|
+
name: S.nameTranslationKey
|
|
11475
|
+
})), value: m, onChange: (S) => typeof S != "number" ? g(S) : null, size: "sm", label: l.localizationFile, className: $e.fileSelect, noSortOptions: !0 }),
|
|
11470
11476
|
/* @__PURE__ */ a.jsxs("div", { className: I($e.searchBox, "d-flex align-items-center gap-2 border rounded"), children: [
|
|
11471
11477
|
/* @__PURE__ */ a.jsx(c, { icon: "search", className: "text-muted", size: 18, iconProps: { className: "mt- me-n4" } }),
|
|
11472
|
-
/* @__PURE__ */ a.jsx(rt, { type: "text", value: x, onChange: (
|
|
11478
|
+
/* @__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" })
|
|
11473
11479
|
] }),
|
|
11474
11480
|
/* @__PURE__ */ a.jsxs(Ya, { children: [
|
|
11475
11481
|
/* @__PURE__ */ a.jsx(Cr, { cKey: "export", hideOn: "always", onClick: r, icon: /* @__PURE__ */ a.jsx(tu, { fileExtension: "xls" }), children: l.xlsExport }),
|
|
@@ -11478,15 +11484,15 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11478
11484
|
] }),
|
|
11479
11485
|
/* @__PURE__ */ a.jsxs("div", { className: I($e.subgrid, $e.lngSelectRow), children: [
|
|
11480
11486
|
/* @__PURE__ */ a.jsx(M, { variant: "body", children: l.key }),
|
|
11481
|
-
Array.from(v).map((
|
|
11482
|
-
A ? /* @__PURE__ */ a.jsx(ft, { options: b, value: null, onChange: (
|
|
11487
|
+
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)),
|
|
11488
|
+
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
|
|
11483
11489
|
] }),
|
|
11484
11490
|
/* @__PURE__ */ a.jsxs("div", { className: I($e.subgrid, $e.tableBody), children: [
|
|
11485
11491
|
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,
|
|
11486
|
-
D.slice(xr * (u - 1), xr * u).map((
|
|
11487
|
-
/* @__PURE__ */ a.jsx(M, { variant: "form-label", children:
|
|
11488
|
-
Array.from(v).map((T) => /* @__PURE__ */ a.jsx(sj, { localizationKey:
|
|
11489
|
-
] },
|
|
11492
|
+
D.slice(xr * (u - 1), xr * u).map((S) => /* @__PURE__ */ a.jsxs("div", { className: I($e.subgrid, $e.tableItem), children: [
|
|
11493
|
+
/* @__PURE__ */ a.jsx(M, { variant: "form-label", children: S.key }),
|
|
11494
|
+
Array.from(v).map((T) => /* @__PURE__ */ a.jsx(sj, { localizationKey: S.key, lngsData: p, selLng: T, reloadData: O, saveChanges: i }, T))
|
|
11495
|
+
] }, S.key))
|
|
11490
11496
|
] }),
|
|
11491
11497
|
/* @__PURE__ */ a.jsxs("div", { className: I("d-flex align-items-center justify-content-around gap-3 px-2 py-0", $e.tableFooter), children: [
|
|
11492
11498
|
/* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsxs(M, { variant: "body", children: [
|
|
@@ -11534,7 +11540,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11534
11540
|
}).catch(() => {
|
|
11535
11541
|
l(!1);
|
|
11536
11542
|
}));
|
|
11537
|
-
}, [o, r, d, t, n, e]), f =
|
|
11543
|
+
}, [o, r, d, t, n, e]), f = B(() => {
|
|
11538
11544
|
if (i === void 0)
|
|
11539
11545
|
return [];
|
|
11540
11546
|
if (t.length < _s || !["XAP", "", null].includes(e))
|
|
@@ -11547,7 +11553,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11547
11553
|
items: h
|
|
11548
11554
|
});
|
|
11549
11555
|
}), g;
|
|
11550
|
-
}, [t, i, e]), m =
|
|
11556
|
+
}, [t, i, e]), m = B(() => f.concat(c), [c, f]);
|
|
11551
11557
|
return q(() => {
|
|
11552
11558
|
p();
|
|
11553
11559
|
}, [p]), { isLoading: s, searchItems: m };
|
|
@@ -11572,7 +11578,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11572
11578
|
header: Tj,
|
|
11573
11579
|
item: Aj
|
|
11574
11580
|
}, Rj = ({ item: e, searchTypes: t, onCancel: n }) => {
|
|
11575
|
-
const r =
|
|
11581
|
+
const r = B(() => t.find((s) => s.key === e.type), [e.type, t]), i = B(() => Wc(e, r, t), [e, r, t]), o = B(() => zc(e, r), [e, r]);
|
|
11576
11582
|
return /* @__PURE__ */ a.jsxs(
|
|
11577
11583
|
Ge,
|
|
11578
11584
|
{
|
|
@@ -11615,7 +11621,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11615
11621
|
}) }) });
|
|
11616
11622
|
}, QN = ({ searchTypes: e, navigateFunction: t, currentPath: n, homePath: r = "/", className: i, staticAppItems: o, searchEndpointUri: s }) => {
|
|
11617
11623
|
var b;
|
|
11618
|
-
const { texts: { appSearch: l } } = G(Q), [c, u] = L(e.length > 0 ? ((b = e.at(0)) == null ? void 0 : b.key) ?? null : null), d =
|
|
11624
|
+
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] = Ja(encodeURIComponent(p), 500), { isLoading: x, searchItems: h } = qc(c, m, s, !1, o), [v, y] = L(!1);
|
|
11619
11625
|
q(() => {
|
|
11620
11626
|
(h.length > 0 || x) && y(!0);
|
|
11621
11627
|
}, [h, x]);
|
|
@@ -11635,7 +11641,7 @@ e.label === "", Ns = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ds =
|
|
|
11635
11641
|
/* @__PURE__ */ a.jsx(kj, { query: m, searchTypes: e, show: v, onCancel: () => y(!1), groups: h, isLoading: x })
|
|
11636
11642
|
] }) });
|
|
11637
11643
|
}, Bj = ({ item: e, searchTypes: t }) => {
|
|
11638
|
-
const { ProjectIconComponent: n } = G(Q), r =
|
|
11644
|
+
const { ProjectIconComponent: n } = G(Q), r = B(() => t.find((s) => s.key === e.type), [e.type, t]), i = B(() => Wc(e, r, t), [e, r, t]), o = B(() => zc(e, r), [e, r]);
|
|
11639
11645
|
return /* @__PURE__ */ a.jsxs(
|
|
11640
11646
|
Ge,
|
|
11641
11647
|
{
|