react-luminus-components 1.3.108 → 1.3.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +67 -67
- package/dist/{FullScreenContainer-D0yAJKHP.js → FullScreenContainer-BOjp3J6I.js} +1 -1
- package/dist/{FullScreenContainer-BCkQt6Aq.cjs → FullScreenContainer-MQRLJVdX.cjs} +1 -1
- package/dist/{Loading-DwxC92Wf.cjs → Loading-BIMTWsF3.cjs} +1 -1
- package/dist/{Loading-mcHn37wo.js → Loading-D4ukb10a.js} +1 -1
- package/dist/{ResponsiveContextDropdown-C3qRV31t.cjs → ResponsiveContextDropdown-CeHjnnKo.cjs} +29 -29
- package/dist/{ResponsiveContextDropdown-BXtbwhRj.js → ResponsiveContextDropdown-DJxAkknX.js} +930 -929
- package/dist/{SimpleTooltip-B8dnY-Or.js → SimpleTooltip-BWTASqOY.js} +1 -1
- package/dist/{SimpleTooltip-CFEF4-Ap.cjs → SimpleTooltip-jHsgGtLz.cjs} +1 -1
- package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +2 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +3 -3
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useAxios/useAxios.d.ts +1 -0
- package/dist/hooks/useGetApiDataBound/useGetApiDataBound.d.ts +9 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +115 -45
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +5 -5
- package/dist/main.cjs.js +2 -2
- package/dist/main.es.js +857 -846
- package/dist/models/texts/ErrorBoundaryTexts.d.ts +1 -0
- package/dist/models/types/UseGetApiDataOptions.d.ts +1 -0
- package/dist/{searchUtils-BbHhz2xA.cjs → searchUtils-BYZluRie.cjs} +1 -1
- package/dist/{searchUtils-Bx9-o25P.js → searchUtils-ClTX12v5.js} +1 -1
- package/dist/{useClipboard-CgSOX1bO.js → useClipboard-Bfa8uP6M.js} +1 -1
- package/dist/{useClipboard-2QjZh01g.cjs → useClipboard-XWeiqXIM.cjs} +1 -1
- package/dist/{useGetApiData-VNEisTXi.js → useGetApiData-Bl8eCz41.js} +1 -1
- package/dist/{useGetApiData-DSFjBOJv.cjs → useGetApiData-pUa4nz8_.cjs} +1 -1
- package/dist/{usePermissions-B_TUwJ27.js → usePermissions-BGwM47vE.js} +1 -1
- package/dist/{usePermissions-BXT-mfxC.cjs → usePermissions-SlMH3Zws.cjs} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +4 -4
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { j as r, c as w, t as ve, a as pt, s as _n, g as Nn, m as
|
|
2
|
-
import { b6 as zd, b7 as Ud, b4 as Gd, b3 as Yd, b8 as Kd, b9 as qd, b5 as Qd } from "./ResponsiveContextDropdown-
|
|
1
|
+
import { j as r, c as w, t as ve, a as pt, s as _n, g as Nn, m as wa, d as _t, b as _a, e as Na, f as Re, h as Ca, i as ka, k as Sa, l as Ia, n as Da, o as $a, p as Ea, T as or, q as ir, r as Cn, E as Fa, u as lr, v as sn, w as cr, x as Oa, y as ue, z as $t, A as Ta, B as dr, C as Et, D as La, F as Zt, G as ur, H as Ra, S as Jt, N as fr, I as on, J as ln, K as Aa, L as Ma, M as Ba, O as Va, P as Pa, Q as mr, R as Ha, U as Wa, V as za, W as Ua, X as Ga, Y as Ya, Z as Ka, _ as qa, $ as Xt, a0 as Qa, a1 as Bt, a2 as J, a3 as ge, a4 as en, a5 as Za, a6 as Ja, a7 as Xa, a8 as hr, a9 as xt, aa as re, ab as cn, ac as ye, ad as dn, ae as Ve, af as es, ag as Te, ah as gr, ai as ts, aj as pr, ak as ns, al as rs, am as as, an as un, ao as fn, ap as xr, aq as Ze, ar as ss, as as Xe, at as os, au as kt, av as vr, aw as Fe, ax as is, ay as ls, az as cs, aA as ds, aB as Ft, aC as us, aD as jr, aE as fs, aF as et, aG as ms, aH as yr, aI as br, aJ as wr, aK as Pe, aL as hs, aM as gs, aN as Ee, aO as ps, aP as vt, aQ as xs, aR as Ot, aS as _r, aT as Tt, aU as Vt, aV as He, aW as kn, aX as vs, aY as js, aZ as tt, a_ as ys, a$ as bs, b0 as ws, b1 as _s, b2 as Ns } from "./ResponsiveContextDropdown-DJxAkknX.js";
|
|
2
|
+
import { b6 as zd, b7 as Ud, b4 as Gd, b3 as Yd, b8 as Kd, b9 as qd, b5 as Qd } from "./ResponsiveContextDropdown-DJxAkknX.js";
|
|
3
3
|
import * as oe from "react";
|
|
4
|
-
import Ce, { useCallback as
|
|
5
|
-
import { c as
|
|
6
|
-
import { InteractionType as
|
|
7
|
-
import { MsalAuthenticationTemplate as
|
|
8
|
-
import {
|
|
9
|
-
import { useFormContext as
|
|
10
|
-
import { Pivot as
|
|
11
|
-
import { S as Lt } from "./SimpleTooltip-
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as Ts, a as
|
|
4
|
+
import Ce, { useCallback as k, useMemo as ne, useContext as q, useRef as te, useEffect as M, useState as O, useId as Cs, Component as ks, isValidElement as Sn, Suspense as Ss, useReducer as Is, useLayoutEffect as Ds } from "react";
|
|
5
|
+
import { c as Ae, L as In } from "./Loading-D4ukb10a.js";
|
|
6
|
+
import { InteractionType as $s } from "@azure/msal-browser";
|
|
7
|
+
import { MsalAuthenticationTemplate as Es } from "@azure/msal-react";
|
|
8
|
+
import { useNavigate as Nr, Link as Je, Navigate as wt, generatePath as St, useParams as Fs } from "react-router-dom";
|
|
9
|
+
import { useFormContext as We, Controller as mn } from "react-hook-form";
|
|
10
|
+
import { Pivot as Os } from "react-flexmonster";
|
|
11
|
+
import { S as Lt } from "./SimpleTooltip-BWTASqOY.js";
|
|
12
|
+
import { u as Cr } from "./useClickOutside-BmlXg38T.js";
|
|
13
|
+
import { u as Ts, a as kr, b as Ls, c as Rs, d as As } from "./useClipboard-Bfa8uP6M.js";
|
|
14
14
|
import It from "react-dom";
|
|
15
|
-
import { l as ht, s as tn } from "./searchUtils-
|
|
16
|
-
import { u as Ms } from "./useGetApiData-
|
|
17
|
-
import { F as
|
|
15
|
+
import { l as ht, s as tn } from "./searchUtils-ClTX12v5.js";
|
|
16
|
+
import { u as Ms } from "./useGetApiData-Bl8eCz41.js";
|
|
17
|
+
import { F as Bs } from "./FullScreenContainer-BOjp3J6I.js";
|
|
18
18
|
const ed = ({ fileLoader: e, fileName: t, children: n }) => {
|
|
19
|
-
const a =
|
|
19
|
+
const a = k(async () => {
|
|
20
20
|
var c, l;
|
|
21
21
|
const s = await e();
|
|
22
22
|
if (!s)
|
|
@@ -25,12 +25,12 @@ const ed = ({ fileLoader: e, fileName: t, children: n }) => {
|
|
|
25
25
|
i.href = o, i.setAttribute("download", t), (c = document.body) == null || c.appendChild(i), i.click(), (l = document.body) == null || l.removeChild(i);
|
|
26
26
|
}, [e, t]);
|
|
27
27
|
return /* @__PURE__ */ r.jsx("div", { role: "button", onClick: a, children: n });
|
|
28
|
-
},
|
|
29
|
-
/* @__PURE__ */ r.jsx("div", { className: w("spinner-grow",
|
|
30
|
-
/* @__PURE__ */ r.jsx("div", { className: w("spinner-grow",
|
|
31
|
-
/* @__PURE__ */ r.jsx("div", { className: w("spinner-grow",
|
|
28
|
+
}, Vs = ({ className: e, ...t }) => /* @__PURE__ */ r.jsxs("div", { className: w("luminus-loading", Ae.loading, Ae.loadingBlock, Ae.loadingBlock), ...t, children: [
|
|
29
|
+
/* @__PURE__ */ r.jsx("div", { className: w("spinner-grow", Ae.spinnerGrow, "text-primary"), role: "status" }),
|
|
30
|
+
/* @__PURE__ */ r.jsx("div", { className: w("spinner-grow", Ae.spinnerGrow, "text-primary", Ae.second), role: "status" }),
|
|
31
|
+
/* @__PURE__ */ r.jsx("div", { className: w("spinner-grow", Ae.spinnerGrow, "text-primary", Ae.third), role: "status" })
|
|
32
32
|
] });
|
|
33
|
-
function
|
|
33
|
+
function Sr(e, t) {
|
|
34
34
|
const n = ve(e);
|
|
35
35
|
if (isNaN(t)) return pt(e, NaN);
|
|
36
36
|
if (!t)
|
|
@@ -45,27 +45,27 @@ function Cr(e, t) {
|
|
|
45
45
|
), n);
|
|
46
46
|
}
|
|
47
47
|
function Ps(e, t) {
|
|
48
|
-
return
|
|
48
|
+
return Sr(e, t * 12);
|
|
49
49
|
}
|
|
50
50
|
function Hs(e, t) {
|
|
51
51
|
const n = ve(e), a = ve(t), s = n.getTime() - a.getTime();
|
|
52
52
|
return s < 0 ? -1 : s > 0 ? 1 : s;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Dn(e, t) {
|
|
55
55
|
const n = ve(e), a = ve(t), s = n.getFullYear() - a.getFullYear(), o = n.getMonth() - a.getMonth();
|
|
56
56
|
return s * 12 + o;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function $n(e) {
|
|
59
59
|
const t = ve(e);
|
|
60
60
|
return Math.trunc(t.getMonth() / 3) + 1;
|
|
61
61
|
}
|
|
62
62
|
function Pt(e, t) {
|
|
63
|
-
const n = ve(e), a = ve(t), s = n.getFullYear() - a.getFullYear(), o =
|
|
63
|
+
const n = ve(e), a = ve(t), s = n.getFullYear() - a.getFullYear(), o = $n(n) - $n(a);
|
|
64
64
|
return s * 4 + o;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function En(e, t, n) {
|
|
67
67
|
const a = _n(e, n), s = _n(t, n), o = +a - Nn(a), i = +s - Nn(s);
|
|
68
|
-
return Math.round((o - i) /
|
|
68
|
+
return Math.round((o - i) / wa);
|
|
69
69
|
}
|
|
70
70
|
function Ht(e, t) {
|
|
71
71
|
const n = ve(e), a = ve(t);
|
|
@@ -91,11 +91,11 @@ function gn(e, t) {
|
|
|
91
91
|
return +ve(e) - +ve(t);
|
|
92
92
|
}
|
|
93
93
|
function On(e, t, n) {
|
|
94
|
-
const a = gn(e, t) /
|
|
94
|
+
const a = gn(e, t) / _a;
|
|
95
95
|
return hn(n == null ? void 0 : n.roundingMethod)(a);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
const a = gn(e, t) /
|
|
97
|
+
function Tn(e, t, n) {
|
|
98
|
+
const a = gn(e, t) / Na;
|
|
99
99
|
return hn(n == null ? void 0 : n.roundingMethod)(a);
|
|
100
100
|
}
|
|
101
101
|
function Wt(e, t, n) {
|
|
@@ -110,17 +110,17 @@ function nn(e, t) {
|
|
|
110
110
|
let o = "", i = "";
|
|
111
111
|
const c = a === "extended" ? "-" : "", l = a === "extended" ? ":" : "";
|
|
112
112
|
if (s !== "time") {
|
|
113
|
-
const u =
|
|
114
|
-
o = `${
|
|
113
|
+
const u = Re(n.getDate(), 2), d = Re(n.getMonth() + 1, 2);
|
|
114
|
+
o = `${Re(n.getFullYear(), 4)}${c}${d}${c}${u}`;
|
|
115
115
|
}
|
|
116
116
|
if (s !== "date") {
|
|
117
117
|
const u = n.getTimezoneOffset();
|
|
118
118
|
if (u !== 0) {
|
|
119
|
-
const g = Math.abs(u), p =
|
|
119
|
+
const g = Math.abs(u), p = Re(Math.trunc(g / 60), 2), y = Re(g % 60, 2);
|
|
120
120
|
i = `${u < 0 ? "+" : "-"}${p}:${y}`;
|
|
121
121
|
} else
|
|
122
122
|
i = "Z";
|
|
123
|
-
const d =
|
|
123
|
+
const d = Re(n.getHours(), 2), m = Re(n.getMinutes(), 2), x = Re(n.getSeconds(), 2), v = o === "" ? "" : "T", h = [d, m, x].join(l);
|
|
124
124
|
o = `${o}${v}${h}${i}`;
|
|
125
125
|
}
|
|
126
126
|
return o;
|
|
@@ -133,10 +133,10 @@ function Us(e, t, n) {
|
|
|
133
133
|
let a = 0, s;
|
|
134
134
|
const o = ve(e), i = ve(t);
|
|
135
135
|
if (n != null && n.unit)
|
|
136
|
-
s = n == null ? void 0 : n.unit, s === "second" ? a = Wt(o, i) : s === "minute" ? a =
|
|
136
|
+
s = n == null ? void 0 : n.unit, s === "second" ? a = Wt(o, i) : s === "minute" ? a = Tn(o, i) : s === "hour" ? a = On(o, i) : s === "day" ? a = _t(o, i) : s === "week" ? a = En(o, i) : s === "month" ? a = Dn(o, i) : s === "quarter" ? a = Pt(o, i) : s === "year" && (a = Ht(o, i));
|
|
137
137
|
else {
|
|
138
138
|
const l = Wt(o, i);
|
|
139
|
-
Math.abs(l) <
|
|
139
|
+
Math.abs(l) < Ca ? (a = Wt(o, i), s = "second") : Math.abs(l) < ka ? (a = Tn(o, i), s = "minute") : Math.abs(l) < Sa && Math.abs(_t(o, i)) < 1 ? (a = On(o, i), s = "hour") : Math.abs(l) < Ia && (a = _t(o, i)) && Math.abs(a) < 7 ? s = "day" : Math.abs(l) < Da ? (a = En(o, i), s = "week") : Math.abs(l) < $a ? (a = Dn(o, i), s = "month") : Math.abs(l) < Ea && Pt(o, i) < 4 ? (a = Pt(o, i), s = "quarter") : (a = Ht(o, i), s = "year");
|
|
140
140
|
}
|
|
141
141
|
return new Intl.RelativeTimeFormat(n == null ? void 0 : n.locale, {
|
|
142
142
|
localeMatcher: n == null ? void 0 : n.localeMatcher,
|
|
@@ -150,7 +150,7 @@ function Gs(e, t) {
|
|
|
150
150
|
const i = zs(o);
|
|
151
151
|
return n.setMonth(t, Math.min(s, i)), n;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ir(e, t) {
|
|
154
154
|
const n = ve(e);
|
|
155
155
|
return isNaN(+n) ? pt(e, NaN) : (n.setFullYear(t), n);
|
|
156
156
|
}
|
|
@@ -174,11 +174,11 @@ function Ks(e, t) {
|
|
|
174
174
|
parseInt(Cn(t, s[1]), 10);
|
|
175
175
|
}
|
|
176
176
|
const qs = {
|
|
177
|
-
[
|
|
178
|
-
[
|
|
177
|
+
[Fa]: "collapse",
|
|
178
|
+
[lr]: "collapsing",
|
|
179
179
|
[sn]: "collapsing",
|
|
180
|
-
[
|
|
181
|
-
},
|
|
180
|
+
[cr]: "collapse show"
|
|
181
|
+
}, Dr = /* @__PURE__ */ Ce.forwardRef(({
|
|
182
182
|
onEnter: e,
|
|
183
183
|
onEntering: t,
|
|
184
184
|
onEntered: n,
|
|
@@ -195,21 +195,21 @@ const qs = {
|
|
|
195
195
|
getDimensionValue: v = Ks,
|
|
196
196
|
...h
|
|
197
197
|
}, g) => {
|
|
198
|
-
const p = typeof c == "function" ? c() : c, y = ne(() => mt((
|
|
199
|
-
|
|
200
|
-
}, e), [p, e]), j = ne(() => mt((
|
|
198
|
+
const p = typeof c == "function" ? c() : c, y = ne(() => mt((S) => {
|
|
199
|
+
S.style[p] = "0";
|
|
200
|
+
}, e), [p, e]), j = ne(() => mt((S) => {
|
|
201
201
|
const I = `scroll${p[0].toUpperCase()}${p.slice(1)}`;
|
|
202
|
-
|
|
203
|
-
}, t), [p, t]), f = ne(() => mt((
|
|
204
|
-
|
|
205
|
-
}, n), [p, n]), b = ne(() => mt((
|
|
206
|
-
|
|
207
|
-
}, a), [a, v, p]), N = ne(() => mt((
|
|
208
|
-
|
|
202
|
+
S.style[p] = `${S[I]}px`;
|
|
203
|
+
}, t), [p, t]), f = ne(() => mt((S) => {
|
|
204
|
+
S.style[p] = null;
|
|
205
|
+
}, n), [p, n]), b = ne(() => mt((S) => {
|
|
206
|
+
S.style[p] = `${v(p, S)}px`, Oa(S);
|
|
207
|
+
}, a), [a, v, p]), N = ne(() => mt((S) => {
|
|
208
|
+
S.style[p] = null;
|
|
209
209
|
}, s), [p, s]);
|
|
210
|
-
return /* @__PURE__ */ r.jsx(
|
|
210
|
+
return /* @__PURE__ */ r.jsx(or, {
|
|
211
211
|
ref: g,
|
|
212
|
-
addEndListener:
|
|
212
|
+
addEndListener: ir,
|
|
213
213
|
...h,
|
|
214
214
|
"aria-expanded": h.role ? l : null,
|
|
215
215
|
onEnter: y,
|
|
@@ -223,36 +223,36 @@ const qs = {
|
|
|
223
223
|
mountOnEnter: d,
|
|
224
224
|
unmountOnExit: m,
|
|
225
225
|
appear: x,
|
|
226
|
-
children: (
|
|
226
|
+
children: (S, I) => /* @__PURE__ */ Ce.cloneElement(i, {
|
|
227
227
|
...I,
|
|
228
|
-
className: w(o, i.props.className, qs[
|
|
228
|
+
className: w(o, i.props.className, qs[S], p === "width" && "collapse-horizontal")
|
|
229
229
|
})
|
|
230
230
|
});
|
|
231
|
-
}),
|
|
232
|
-
|
|
233
|
-
const
|
|
231
|
+
}), $r = $t("h4");
|
|
232
|
+
$r.displayName = "DivStyledAsH4";
|
|
233
|
+
const Er = /* @__PURE__ */ oe.forwardRef(({
|
|
234
234
|
className: e,
|
|
235
235
|
bsPrefix: t,
|
|
236
|
-
as: n =
|
|
236
|
+
as: n = $r,
|
|
237
237
|
...a
|
|
238
238
|
}, s) => (t = ue(t, "alert-heading"), /* @__PURE__ */ r.jsx(n, {
|
|
239
239
|
ref: s,
|
|
240
240
|
className: w(e, t),
|
|
241
241
|
...a
|
|
242
242
|
})));
|
|
243
|
-
|
|
244
|
-
const
|
|
243
|
+
Er.displayName = "AlertHeading";
|
|
244
|
+
const Fr = /* @__PURE__ */ oe.forwardRef(({
|
|
245
245
|
className: e,
|
|
246
246
|
bsPrefix: t,
|
|
247
|
-
as: n =
|
|
247
|
+
as: n = Ta,
|
|
248
248
|
...a
|
|
249
249
|
}, s) => (t = ue(t, "alert-link"), /* @__PURE__ */ r.jsx(n, {
|
|
250
250
|
ref: s,
|
|
251
251
|
className: w(e, t),
|
|
252
252
|
...a
|
|
253
253
|
})));
|
|
254
|
-
|
|
255
|
-
const
|
|
254
|
+
Fr.displayName = "AlertLink";
|
|
255
|
+
const Or = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
256
256
|
const {
|
|
257
257
|
bsPrefix: n,
|
|
258
258
|
show: a = !0,
|
|
@@ -265,16 +265,16 @@ const Fr = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
|
265
265
|
dismissible: d,
|
|
266
266
|
transition: m = Zt,
|
|
267
267
|
...x
|
|
268
|
-
} =
|
|
268
|
+
} = dr(e, {
|
|
269
269
|
show: "onClose"
|
|
270
|
-
}), v = ue(n, "alert"), h =
|
|
270
|
+
}), v = ue(n, "alert"), h = Et((y) => {
|
|
271
271
|
u && u(!1, y);
|
|
272
272
|
}), g = m === !0 ? Zt : m, p = /* @__PURE__ */ r.jsxs("div", {
|
|
273
273
|
role: "alert",
|
|
274
274
|
...g ? void 0 : x,
|
|
275
275
|
ref: t,
|
|
276
276
|
className: w(i, v, l && `${v}-${l}`, d && `${v}-dismissible`),
|
|
277
|
-
children: [d && /* @__PURE__ */ r.jsx(
|
|
277
|
+
children: [d && /* @__PURE__ */ r.jsx(La, {
|
|
278
278
|
onClick: h,
|
|
279
279
|
"aria-label": s,
|
|
280
280
|
variant: o
|
|
@@ -288,10 +288,10 @@ const Fr = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
|
288
288
|
children: p
|
|
289
289
|
}) : a ? p : null;
|
|
290
290
|
});
|
|
291
|
-
|
|
292
|
-
const Qs = Object.assign(
|
|
293
|
-
Link:
|
|
294
|
-
Heading:
|
|
291
|
+
Or.displayName = "Alert";
|
|
292
|
+
const Qs = Object.assign(Or, {
|
|
293
|
+
Link: Fr,
|
|
294
|
+
Heading: Er
|
|
295
295
|
}), pn = /* @__PURE__ */ oe.forwardRef(({
|
|
296
296
|
className: e,
|
|
297
297
|
bsPrefix: t,
|
|
@@ -303,7 +303,7 @@ const Qs = Object.assign(Fr, {
|
|
|
303
303
|
...a
|
|
304
304
|
})));
|
|
305
305
|
pn.displayName = "CardBody";
|
|
306
|
-
const
|
|
306
|
+
const Tr = /* @__PURE__ */ oe.forwardRef(({
|
|
307
307
|
className: e,
|
|
308
308
|
bsPrefix: t,
|
|
309
309
|
as: n = "div",
|
|
@@ -313,10 +313,10 @@ const Or = /* @__PURE__ */ oe.forwardRef(({
|
|
|
313
313
|
className: w(e, t),
|
|
314
314
|
...a
|
|
315
315
|
})));
|
|
316
|
-
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
const
|
|
316
|
+
Tr.displayName = "CardFooter";
|
|
317
|
+
const Lr = /* @__PURE__ */ oe.createContext(null);
|
|
318
|
+
Lr.displayName = "CardHeaderContext";
|
|
319
|
+
const Rr = /* @__PURE__ */ oe.forwardRef(({
|
|
320
320
|
bsPrefix: e,
|
|
321
321
|
className: t,
|
|
322
322
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -326,7 +326,7 @@ const Tr = /* @__PURE__ */ oe.forwardRef(({
|
|
|
326
326
|
const o = ue(e, "card-header"), i = ne(() => ({
|
|
327
327
|
cardHeaderBsPrefix: o
|
|
328
328
|
}), [o]);
|
|
329
|
-
return /* @__PURE__ */ r.jsx(
|
|
329
|
+
return /* @__PURE__ */ r.jsx(Lr.Provider, {
|
|
330
330
|
value: i,
|
|
331
331
|
children: /* @__PURE__ */ r.jsx(n, {
|
|
332
332
|
ref: s,
|
|
@@ -335,8 +335,8 @@ const Tr = /* @__PURE__ */ oe.forwardRef(({
|
|
|
335
335
|
})
|
|
336
336
|
});
|
|
337
337
|
});
|
|
338
|
-
|
|
339
|
-
const
|
|
338
|
+
Rr.displayName = "CardHeader";
|
|
339
|
+
const Ar = /* @__PURE__ */ oe.forwardRef(
|
|
340
340
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
341
341
|
({
|
|
342
342
|
bsPrefix: e,
|
|
@@ -353,8 +353,8 @@ const Lr = /* @__PURE__ */ oe.forwardRef(
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
);
|
|
356
|
-
|
|
357
|
-
const
|
|
356
|
+
Ar.displayName = "CardImg";
|
|
357
|
+
const Mr = /* @__PURE__ */ oe.forwardRef(({
|
|
358
358
|
className: e,
|
|
359
359
|
bsPrefix: t,
|
|
360
360
|
as: n = "div",
|
|
@@ -364,8 +364,8 @@ const Rr = /* @__PURE__ */ oe.forwardRef(({
|
|
|
364
364
|
className: w(e, t),
|
|
365
365
|
...a
|
|
366
366
|
})));
|
|
367
|
-
|
|
368
|
-
const
|
|
367
|
+
Mr.displayName = "CardImgOverlay";
|
|
368
|
+
const Br = /* @__PURE__ */ oe.forwardRef(({
|
|
369
369
|
className: e,
|
|
370
370
|
bsPrefix: t,
|
|
371
371
|
as: n = "a",
|
|
@@ -375,8 +375,8 @@ const Ar = /* @__PURE__ */ oe.forwardRef(({
|
|
|
375
375
|
className: w(e, t),
|
|
376
376
|
...a
|
|
377
377
|
})));
|
|
378
|
-
|
|
379
|
-
const Zs = $t("h6"),
|
|
378
|
+
Br.displayName = "CardLink";
|
|
379
|
+
const Zs = $t("h6"), Vr = /* @__PURE__ */ oe.forwardRef(({
|
|
380
380
|
className: e,
|
|
381
381
|
bsPrefix: t,
|
|
382
382
|
as: n = Zs,
|
|
@@ -386,8 +386,8 @@ const Zs = $t("h6"), Mr = /* @__PURE__ */ oe.forwardRef(({
|
|
|
386
386
|
className: w(e, t),
|
|
387
387
|
...a
|
|
388
388
|
})));
|
|
389
|
-
|
|
390
|
-
const
|
|
389
|
+
Vr.displayName = "CardSubtitle";
|
|
390
|
+
const Pr = /* @__PURE__ */ oe.forwardRef(({
|
|
391
391
|
className: e,
|
|
392
392
|
bsPrefix: t,
|
|
393
393
|
as: n = "p",
|
|
@@ -397,8 +397,8 @@ const Vr = /* @__PURE__ */ oe.forwardRef(({
|
|
|
397
397
|
className: w(e, t),
|
|
398
398
|
...a
|
|
399
399
|
})));
|
|
400
|
-
|
|
401
|
-
const Js = $t("h5"),
|
|
400
|
+
Pr.displayName = "CardText";
|
|
401
|
+
const Js = $t("h5"), Hr = /* @__PURE__ */ oe.forwardRef(({
|
|
402
402
|
className: e,
|
|
403
403
|
bsPrefix: t,
|
|
404
404
|
as: n = Js,
|
|
@@ -408,8 +408,8 @@ const Js = $t("h5"), Br = /* @__PURE__ */ oe.forwardRef(({
|
|
|
408
408
|
className: w(e, t),
|
|
409
409
|
...a
|
|
410
410
|
})));
|
|
411
|
-
|
|
412
|
-
const
|
|
411
|
+
Hr.displayName = "CardTitle";
|
|
412
|
+
const Wr = /* @__PURE__ */ oe.forwardRef(({
|
|
413
413
|
bsPrefix: e,
|
|
414
414
|
className: t,
|
|
415
415
|
bg: n,
|
|
@@ -431,17 +431,17 @@ const Pr = /* @__PURE__ */ oe.forwardRef(({
|
|
|
431
431
|
}) : i
|
|
432
432
|
});
|
|
433
433
|
});
|
|
434
|
-
|
|
435
|
-
const
|
|
436
|
-
Img:
|
|
437
|
-
Title:
|
|
438
|
-
Subtitle:
|
|
434
|
+
Wr.displayName = "Card";
|
|
435
|
+
const Ln = Object.assign(Wr, {
|
|
436
|
+
Img: Ar,
|
|
437
|
+
Title: Hr,
|
|
438
|
+
Subtitle: Vr,
|
|
439
439
|
Body: pn,
|
|
440
|
-
Link:
|
|
441
|
-
Text:
|
|
442
|
-
Header:
|
|
443
|
-
Footer:
|
|
444
|
-
ImgOverlay:
|
|
440
|
+
Link: Br,
|
|
441
|
+
Text: Pr,
|
|
442
|
+
Header: Rr,
|
|
443
|
+
Footer: Tr,
|
|
444
|
+
ImgOverlay: Mr
|
|
445
445
|
}), Rt = /* @__PURE__ */ oe.forwardRef(({
|
|
446
446
|
className: e,
|
|
447
447
|
bsPrefix: t,
|
|
@@ -454,16 +454,16 @@ const Tn = Object.assign(Pr, {
|
|
|
454
454
|
})));
|
|
455
455
|
Rt.displayName = "InputGroupText";
|
|
456
456
|
const Xs = (e) => /* @__PURE__ */ r.jsx(Rt, {
|
|
457
|
-
children: /* @__PURE__ */ r.jsx(
|
|
457
|
+
children: /* @__PURE__ */ r.jsx(ur, {
|
|
458
458
|
type: "checkbox",
|
|
459
459
|
...e
|
|
460
460
|
})
|
|
461
461
|
}), eo = (e) => /* @__PURE__ */ r.jsx(Rt, {
|
|
462
|
-
children: /* @__PURE__ */ r.jsx(
|
|
462
|
+
children: /* @__PURE__ */ r.jsx(ur, {
|
|
463
463
|
type: "radio",
|
|
464
464
|
...e
|
|
465
465
|
})
|
|
466
|
-
}),
|
|
466
|
+
}), zr = /* @__PURE__ */ oe.forwardRef(({
|
|
467
467
|
bsPrefix: e,
|
|
468
468
|
size: t,
|
|
469
469
|
hasValidation: n,
|
|
@@ -474,7 +474,7 @@ const Xs = (e) => /* @__PURE__ */ r.jsx(Rt, {
|
|
|
474
474
|
}, i) => {
|
|
475
475
|
e = ue(e, "input-group");
|
|
476
476
|
const c = ne(() => ({}), []);
|
|
477
|
-
return /* @__PURE__ */ r.jsx(
|
|
477
|
+
return /* @__PURE__ */ r.jsx(Ra.Provider, {
|
|
478
478
|
value: c,
|
|
479
479
|
children: /* @__PURE__ */ r.jsx(s, {
|
|
480
480
|
ref: i,
|
|
@@ -483,12 +483,12 @@ const Xs = (e) => /* @__PURE__ */ r.jsx(Rt, {
|
|
|
483
483
|
})
|
|
484
484
|
});
|
|
485
485
|
});
|
|
486
|
-
|
|
487
|
-
const Nt = Object.assign(
|
|
486
|
+
zr.displayName = "InputGroup";
|
|
487
|
+
const Nt = Object.assign(zr, {
|
|
488
488
|
Text: Rt,
|
|
489
489
|
Radio: eo,
|
|
490
490
|
Checkbox: Xs
|
|
491
|
-
}),
|
|
491
|
+
}), Ur = /* @__PURE__ */ oe.createContext(null), to = ["as", "active", "eventKey"];
|
|
492
492
|
function no(e, t) {
|
|
493
493
|
if (e == null) return {};
|
|
494
494
|
var n = {};
|
|
@@ -498,7 +498,7 @@ function no(e, t) {
|
|
|
498
498
|
}
|
|
499
499
|
return n;
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function Gr({
|
|
502
502
|
key: e,
|
|
503
503
|
onClick: t,
|
|
504
504
|
active: n,
|
|
@@ -506,7 +506,7 @@ function zr({
|
|
|
506
506
|
role: s,
|
|
507
507
|
disabled: o
|
|
508
508
|
}) {
|
|
509
|
-
const i = q(Jt), c = q(
|
|
509
|
+
const i = q(Jt), c = q(fr), l = q(Ur);
|
|
510
510
|
let u = n;
|
|
511
511
|
const d = {
|
|
512
512
|
role: s
|
|
@@ -516,19 +516,19 @@ function zr({
|
|
|
516
516
|
const m = c.getControllerId(e ?? null), x = c.getControlledId(e ?? null);
|
|
517
517
|
d[on("event-key")] = e, d.id = m || a, u = n == null && e != null ? c.activeKey === e : n, (u || !(l != null && l.unmountOnExit) && !(l != null && l.mountOnEnter)) && (d["aria-controls"] = x);
|
|
518
518
|
}
|
|
519
|
-
return d.role === "tab" && (d["aria-selected"] = u, u || (d.tabIndex = -1), o && (d.tabIndex = -1, d["aria-disabled"] = !0)), d.onClick =
|
|
519
|
+
return d.role === "tab" && (d["aria-selected"] = u, u || (d.tabIndex = -1), o && (d.tabIndex = -1, d["aria-disabled"] = !0)), d.onClick = Et((m) => {
|
|
520
520
|
o || (t == null || t(m), e != null && i && !m.isPropagationStopped() && i(e, m));
|
|
521
521
|
}), [d, {
|
|
522
522
|
isActive: u
|
|
523
523
|
}];
|
|
524
524
|
}
|
|
525
|
-
const
|
|
525
|
+
const Yr = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
526
526
|
let {
|
|
527
|
-
as: n =
|
|
527
|
+
as: n = Aa,
|
|
528
528
|
active: a,
|
|
529
529
|
eventKey: s
|
|
530
530
|
} = e, o = no(e, to);
|
|
531
|
-
const [i, c] =
|
|
531
|
+
const [i, c] = Gr(Object.assign({
|
|
532
532
|
key: ln(s, o.href),
|
|
533
533
|
active: a
|
|
534
534
|
}, o));
|
|
@@ -536,8 +536,8 @@ const Ur = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
|
536
536
|
ref: t
|
|
537
537
|
}));
|
|
538
538
|
});
|
|
539
|
-
|
|
540
|
-
const ro =
|
|
539
|
+
Yr.displayName = "NavItem";
|
|
540
|
+
const ro = Yr, ao = ["as", "onSelect", "activeKey", "role", "onKeyDown"];
|
|
541
541
|
function so(e, t) {
|
|
542
542
|
if (e == null) return {};
|
|
543
543
|
var n = {};
|
|
@@ -547,8 +547,8 @@ function so(e, t) {
|
|
|
547
547
|
}
|
|
548
548
|
return n;
|
|
549
549
|
}
|
|
550
|
-
const
|
|
551
|
-
},
|
|
550
|
+
const Rn = () => {
|
|
551
|
+
}, An = on("event-key"), Kr = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
552
552
|
let {
|
|
553
553
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
554
554
|
as: n = "div",
|
|
@@ -557,15 +557,15 @@ const Ln = () => {
|
|
|
557
557
|
role: o,
|
|
558
558
|
onKeyDown: i
|
|
559
559
|
} = e, c = so(e, ao);
|
|
560
|
-
const l =
|
|
560
|
+
const l = Ma(), u = te(!1), d = q(Jt), m = q(Ur);
|
|
561
561
|
let x, v;
|
|
562
562
|
m && (o = o || "tablist", s = m.activeKey, x = m.getControlledId, v = m.getControllerId);
|
|
563
563
|
const h = te(null), g = (f) => {
|
|
564
564
|
const b = h.current;
|
|
565
565
|
if (!b) return null;
|
|
566
|
-
const N =
|
|
567
|
-
if (!
|
|
568
|
-
const I = N.indexOf(
|
|
566
|
+
const N = Pa(b, `[${An}]:not([aria-disabled=true])`), S = b.querySelector("[aria-selected=true]");
|
|
567
|
+
if (!S || S !== document.activeElement) return null;
|
|
568
|
+
const I = N.indexOf(S);
|
|
569
569
|
if (I === -1) return null;
|
|
570
570
|
let D = I + f;
|
|
571
571
|
return D >= N.length && (D = 0), D < 0 && (D = N.length - 1), N[D];
|
|
@@ -587,25 +587,25 @@ const Ln = () => {
|
|
|
587
587
|
default:
|
|
588
588
|
return;
|
|
589
589
|
}
|
|
590
|
-
b && (f.preventDefault(), p(b.dataset[
|
|
590
|
+
b && (f.preventDefault(), p(b.dataset[Va("EventKey")] || null, f), u.current = !0, l());
|
|
591
591
|
};
|
|
592
592
|
M(() => {
|
|
593
593
|
if (h.current && u.current) {
|
|
594
|
-
const f = h.current.querySelector(`[${
|
|
594
|
+
const f = h.current.querySelector(`[${An}][aria-selected=true]`);
|
|
595
595
|
f == null || f.focus();
|
|
596
596
|
}
|
|
597
597
|
u.current = !1;
|
|
598
598
|
});
|
|
599
|
-
const j =
|
|
599
|
+
const j = Ba(t, h);
|
|
600
600
|
return /* @__PURE__ */ r.jsx(Jt.Provider, {
|
|
601
601
|
value: p,
|
|
602
|
-
children: /* @__PURE__ */ r.jsx(
|
|
602
|
+
children: /* @__PURE__ */ r.jsx(fr.Provider, {
|
|
603
603
|
value: {
|
|
604
604
|
role: o,
|
|
605
605
|
// used by NavLink to determine it's role
|
|
606
606
|
activeKey: ln(s),
|
|
607
|
-
getControlledId: x ||
|
|
608
|
-
getControllerId: v ||
|
|
607
|
+
getControlledId: x || Rn,
|
|
608
|
+
getControllerId: v || Rn
|
|
609
609
|
},
|
|
610
610
|
children: /* @__PURE__ */ r.jsx(n, Object.assign({}, c, {
|
|
611
611
|
onKeyDown: y,
|
|
@@ -615,8 +615,8 @@ const Ln = () => {
|
|
|
615
615
|
})
|
|
616
616
|
});
|
|
617
617
|
});
|
|
618
|
-
|
|
619
|
-
const oo = Object.assign(
|
|
618
|
+
Kr.displayName = "Nav";
|
|
619
|
+
const oo = Object.assign(Kr, {
|
|
620
620
|
Item: ro
|
|
621
621
|
}), xn = /* @__PURE__ */ oe.forwardRef(({
|
|
622
622
|
bsPrefix: e,
|
|
@@ -630,11 +630,11 @@ const oo = Object.assign(Gr, {
|
|
|
630
630
|
...l
|
|
631
631
|
}, u) => {
|
|
632
632
|
e = ue(e, "list-group-item");
|
|
633
|
-
const [d, m] =
|
|
633
|
+
const [d, m] = Gr({
|
|
634
634
|
key: ln(a, l.href),
|
|
635
635
|
active: t,
|
|
636
636
|
...l
|
|
637
|
-
}), x =
|
|
637
|
+
}), x = Et((h) => {
|
|
638
638
|
if (n) {
|
|
639
639
|
h.preventDefault(), h.stopPropagation();
|
|
640
640
|
return;
|
|
@@ -643,7 +643,7 @@ const oo = Object.assign(Gr, {
|
|
|
643
643
|
});
|
|
644
644
|
n && l.tabIndex === void 0 && (l.tabIndex = -1, l["aria-disabled"] = !0);
|
|
645
645
|
const v = c || (i ? l.href ? "a" : "button" : "div");
|
|
646
|
-
return process.env.NODE_ENV !== "production" &&
|
|
646
|
+
return process.env.NODE_ENV !== "production" && mr(c || !(!i && l.href), "`action=false` and `href` should not be used together."), /* @__PURE__ */ r.jsx(v, {
|
|
647
647
|
ref: u,
|
|
648
648
|
...l,
|
|
649
649
|
...d,
|
|
@@ -652,7 +652,7 @@ const oo = Object.assign(Gr, {
|
|
|
652
652
|
});
|
|
653
653
|
});
|
|
654
654
|
xn.displayName = "ListGroupItem";
|
|
655
|
-
const
|
|
655
|
+
const qr = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
656
656
|
const {
|
|
657
657
|
className: n,
|
|
658
658
|
bsPrefix: a,
|
|
@@ -662,21 +662,21 @@ const Yr = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
|
662
662
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
663
663
|
as: c = "div",
|
|
664
664
|
...l
|
|
665
|
-
} =
|
|
665
|
+
} = dr(e, {
|
|
666
666
|
activeKey: "onSelect"
|
|
667
667
|
}), u = ue(a, "list-group");
|
|
668
668
|
let d;
|
|
669
|
-
return o && (d = o === !0 ? "horizontal" : `horizontal-${o}`), process.env.NODE_ENV !== "production" &&
|
|
669
|
+
return o && (d = o === !0 ? "horizontal" : `horizontal-${o}`), process.env.NODE_ENV !== "production" && mr(!(o && s === "flush"), '`variant="flush"` and `horizontal` should not be used together.'), /* @__PURE__ */ r.jsx(oo, {
|
|
670
670
|
ref: t,
|
|
671
671
|
...l,
|
|
672
672
|
as: c,
|
|
673
673
|
className: w(n, u, s && `${u}-${s}`, d && `${u}-${d}`, i && `${u}-numbered`)
|
|
674
674
|
});
|
|
675
675
|
});
|
|
676
|
-
|
|
677
|
-
const io = Object.assign(
|
|
676
|
+
qr.displayName = "ListGroup";
|
|
677
|
+
const io = Object.assign(qr, {
|
|
678
678
|
Item: xn
|
|
679
|
-
}), rn = /* @__PURE__ */ new WeakMap(),
|
|
679
|
+
}), rn = /* @__PURE__ */ new WeakMap(), Mn = (e, t) => {
|
|
680
680
|
if (!e || !t) return;
|
|
681
681
|
const n = rn.get(t) || /* @__PURE__ */ new Map();
|
|
682
682
|
rn.set(t, n);
|
|
@@ -684,9 +684,9 @@ const io = Object.assign(Yr, {
|
|
|
684
684
|
return a || (a = t.matchMedia(e), a.refCount = 0, n.set(a.media, a)), a;
|
|
685
685
|
};
|
|
686
686
|
function lo(e, t = typeof window > "u" ? void 0 : window) {
|
|
687
|
-
const n =
|
|
688
|
-
return
|
|
689
|
-
let o =
|
|
687
|
+
const n = Mn(e, t), [a, s] = O(() => n ? n.matches : !1);
|
|
688
|
+
return Ha(() => {
|
|
689
|
+
let o = Mn(e, t);
|
|
690
690
|
if (!o)
|
|
691
691
|
return s(!1);
|
|
692
692
|
let i = rn.get(t);
|
|
@@ -732,7 +732,7 @@ const uo = co({
|
|
|
732
732
|
lg: 992,
|
|
733
733
|
xl: 1200,
|
|
734
734
|
xxl: 1400
|
|
735
|
-
}),
|
|
735
|
+
}), Qr = /* @__PURE__ */ oe.forwardRef(({
|
|
736
736
|
className: e,
|
|
737
737
|
bsPrefix: t,
|
|
738
738
|
as: n = "div",
|
|
@@ -742,11 +742,11 @@ const uo = co({
|
|
|
742
742
|
className: w(e, t),
|
|
743
743
|
...a
|
|
744
744
|
})));
|
|
745
|
-
|
|
745
|
+
Qr.displayName = "OffcanvasBody";
|
|
746
746
|
const fo = {
|
|
747
747
|
[sn]: "show",
|
|
748
|
-
[
|
|
749
|
-
},
|
|
748
|
+
[cr]: "show"
|
|
749
|
+
}, Zr = /* @__PURE__ */ oe.forwardRef(({
|
|
750
750
|
bsPrefix: e,
|
|
751
751
|
className: t,
|
|
752
752
|
children: n,
|
|
@@ -755,9 +755,9 @@ const fo = {
|
|
|
755
755
|
unmountOnExit: o = !1,
|
|
756
756
|
appear: i = !1,
|
|
757
757
|
...c
|
|
758
|
-
}, l) => (e = ue(e, "offcanvas"), /* @__PURE__ */ r.jsx(
|
|
758
|
+
}, l) => (e = ue(e, "offcanvas"), /* @__PURE__ */ r.jsx(or, {
|
|
759
759
|
ref: l,
|
|
760
|
-
addEndListener:
|
|
760
|
+
addEndListener: ir,
|
|
761
761
|
in: a,
|
|
762
762
|
mountOnEnter: s,
|
|
763
763
|
unmountOnExit: o,
|
|
@@ -766,25 +766,25 @@ const fo = {
|
|
|
766
766
|
childRef: n.ref,
|
|
767
767
|
children: (u, d) => /* @__PURE__ */ oe.cloneElement(n, {
|
|
768
768
|
...d,
|
|
769
|
-
className: w(t, n.props.className, (u === sn || u ===
|
|
769
|
+
className: w(t, n.props.className, (u === sn || u === lr) && `${e}-toggling`, fo[u])
|
|
770
770
|
})
|
|
771
771
|
})));
|
|
772
|
-
|
|
773
|
-
const
|
|
772
|
+
Zr.displayName = "OffcanvasToggling";
|
|
773
|
+
const Jr = /* @__PURE__ */ oe.forwardRef(({
|
|
774
774
|
bsPrefix: e,
|
|
775
775
|
className: t,
|
|
776
776
|
closeLabel: n = "Close",
|
|
777
777
|
closeButton: a = !1,
|
|
778
778
|
...s
|
|
779
|
-
}, o) => (e = ue(e, "offcanvas-header"), /* @__PURE__ */ r.jsx(
|
|
779
|
+
}, o) => (e = ue(e, "offcanvas-header"), /* @__PURE__ */ r.jsx(Wa, {
|
|
780
780
|
ref: o,
|
|
781
781
|
...s,
|
|
782
782
|
className: w(t, e),
|
|
783
783
|
closeLabel: n,
|
|
784
784
|
closeButton: a
|
|
785
785
|
})));
|
|
786
|
-
|
|
787
|
-
const mo = $t("h5"),
|
|
786
|
+
Jr.displayName = "OffcanvasHeader";
|
|
787
|
+
const mo = $t("h5"), Xr = /* @__PURE__ */ oe.forwardRef(({
|
|
788
788
|
className: e,
|
|
789
789
|
bsPrefix: t,
|
|
790
790
|
as: n = mo,
|
|
@@ -794,9 +794,9 @@ const mo = $t("h5"), Zr = /* @__PURE__ */ oe.forwardRef(({
|
|
|
794
794
|
className: w(e, t),
|
|
795
795
|
...a
|
|
796
796
|
})));
|
|
797
|
-
|
|
797
|
+
Xr.displayName = "OffcanvasTitle";
|
|
798
798
|
function ho(e) {
|
|
799
|
-
return /* @__PURE__ */ r.jsx(
|
|
799
|
+
return /* @__PURE__ */ r.jsx(Zr, {
|
|
800
800
|
...e
|
|
801
801
|
});
|
|
802
802
|
}
|
|
@@ -805,7 +805,7 @@ function go(e) {
|
|
|
805
805
|
...e
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
|
-
const
|
|
808
|
+
const ea = /* @__PURE__ */ oe.forwardRef(({
|
|
809
809
|
bsPrefix: e,
|
|
810
810
|
className: t,
|
|
811
811
|
children: n,
|
|
@@ -829,49 +829,49 @@ const Jr = /* @__PURE__ */ oe.forwardRef(({
|
|
|
829
829
|
onExit: f,
|
|
830
830
|
onExiting: b,
|
|
831
831
|
onEnter: N,
|
|
832
|
-
onEntering:
|
|
832
|
+
onEntering: S,
|
|
833
833
|
onExited: I,
|
|
834
834
|
backdropClassName: D,
|
|
835
835
|
manager: C,
|
|
836
836
|
renderStaticNode: L = !1,
|
|
837
|
-
...
|
|
837
|
+
...F
|
|
838
838
|
}, _) => {
|
|
839
839
|
const W = te();
|
|
840
840
|
e = ue(e, "offcanvas");
|
|
841
841
|
const {
|
|
842
|
-
onToggle:
|
|
843
|
-
} = q(
|
|
842
|
+
onToggle: B
|
|
843
|
+
} = q(za) || {}, [X, R] = O(!1), $ = uo(o || "xs", "up");
|
|
844
844
|
M(() => {
|
|
845
845
|
R(o ? i && !$ : i);
|
|
846
846
|
}, [i, o, $]);
|
|
847
|
-
const P =
|
|
848
|
-
|
|
847
|
+
const P = Et(() => {
|
|
848
|
+
B == null || B(), x == null || x();
|
|
849
849
|
}), U = ne(() => ({
|
|
850
850
|
onHide: P
|
|
851
851
|
}), [P]);
|
|
852
852
|
function Z() {
|
|
853
|
-
return C || (u ? (W.current || (W.current = new
|
|
853
|
+
return C || (u ? (W.current || (W.current = new Ya({
|
|
854
854
|
handleContainerOverflow: !1
|
|
855
|
-
})), W.current) :
|
|
855
|
+
})), W.current) : Ka());
|
|
856
856
|
}
|
|
857
857
|
const Q = (z, ...me) => {
|
|
858
858
|
z && (z.style.visibility = "visible"), N == null || N(z, ...me);
|
|
859
|
-
},
|
|
859
|
+
}, E = (z, ...me) => {
|
|
860
860
|
z && (z.style.visibility = ""), I == null || I(...me);
|
|
861
|
-
}, ee =
|
|
861
|
+
}, ee = k((z) => /* @__PURE__ */ r.jsx("div", {
|
|
862
862
|
...z,
|
|
863
863
|
className: w(`${e}-backdrop`, D)
|
|
864
864
|
}), [D, e]), A = (z) => /* @__PURE__ */ r.jsx("div", {
|
|
865
865
|
...z,
|
|
866
|
-
...
|
|
866
|
+
...F,
|
|
867
867
|
className: w(t, o ? `${e}-${o}` : e, `${e}-${s}`),
|
|
868
868
|
"aria-labelledby": a,
|
|
869
869
|
children: n
|
|
870
870
|
});
|
|
871
871
|
return /* @__PURE__ */ r.jsxs(r.Fragment, {
|
|
872
|
-
children: [!X && (o || L) && A({}), /* @__PURE__ */ r.jsx(
|
|
872
|
+
children: [!X && (o || L) && A({}), /* @__PURE__ */ r.jsx(Ua.Provider, {
|
|
873
873
|
value: U,
|
|
874
|
-
children: /* @__PURE__ */ r.jsx(
|
|
874
|
+
children: /* @__PURE__ */ r.jsx(Ga, {
|
|
875
875
|
show: X,
|
|
876
876
|
ref: _,
|
|
877
877
|
backdrop: c,
|
|
@@ -885,11 +885,11 @@ const Jr = /* @__PURE__ */ oe.forwardRef(({
|
|
|
885
885
|
onShow: m,
|
|
886
886
|
onHide: P,
|
|
887
887
|
onEnter: Q,
|
|
888
|
-
onEntering:
|
|
888
|
+
onEntering: S,
|
|
889
889
|
onEntered: j,
|
|
890
890
|
onExit: f,
|
|
891
891
|
onExiting: b,
|
|
892
|
-
onExited:
|
|
892
|
+
onExited: E,
|
|
893
893
|
manager: Z(),
|
|
894
894
|
transition: ho,
|
|
895
895
|
backdropTransition: go,
|
|
@@ -899,13 +899,13 @@ const Jr = /* @__PURE__ */ oe.forwardRef(({
|
|
|
899
899
|
})]
|
|
900
900
|
});
|
|
901
901
|
});
|
|
902
|
-
|
|
903
|
-
const
|
|
904
|
-
Body:
|
|
905
|
-
Header:
|
|
906
|
-
Title:
|
|
902
|
+
ea.displayName = "Offcanvas";
|
|
903
|
+
const Bn = Object.assign(ea, {
|
|
904
|
+
Body: Qr,
|
|
905
|
+
Header: Jr,
|
|
906
|
+
Title: Xr
|
|
907
907
|
});
|
|
908
|
-
function
|
|
908
|
+
function ta({
|
|
909
909
|
animation: e,
|
|
910
910
|
bg: t,
|
|
911
911
|
bsPrefix: n,
|
|
@@ -916,14 +916,14 @@ function Xr({
|
|
|
916
916
|
const [{
|
|
917
917
|
className: o,
|
|
918
918
|
...i
|
|
919
|
-
}] =
|
|
919
|
+
}] = qa(s);
|
|
920
920
|
return {
|
|
921
921
|
...i,
|
|
922
922
|
className: w(o, e ? `${n}-${e}` : n, a && `${n}-${a}`, t && `bg-${t}`)
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
|
-
const
|
|
926
|
-
const n =
|
|
925
|
+
const na = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
926
|
+
const n = ta(e);
|
|
927
927
|
return /* @__PURE__ */ r.jsx(Xt, {
|
|
928
928
|
...n,
|
|
929
929
|
ref: t,
|
|
@@ -931,20 +931,20 @@ const ea = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
|
931
931
|
tabIndex: -1
|
|
932
932
|
});
|
|
933
933
|
});
|
|
934
|
-
|
|
935
|
-
const
|
|
934
|
+
na.displayName = "PlaceholderButton";
|
|
935
|
+
const ra = /* @__PURE__ */ oe.forwardRef(({
|
|
936
936
|
as: e = "span",
|
|
937
937
|
...t
|
|
938
938
|
}, n) => {
|
|
939
|
-
const a =
|
|
939
|
+
const a = ta(t);
|
|
940
940
|
return /* @__PURE__ */ r.jsx(e, {
|
|
941
941
|
...a,
|
|
942
942
|
ref: n
|
|
943
943
|
});
|
|
944
944
|
});
|
|
945
|
-
|
|
946
|
-
const
|
|
947
|
-
Button:
|
|
945
|
+
ra.displayName = "Placeholder";
|
|
946
|
+
const Me = Object.assign(ra, {
|
|
947
|
+
Button: na
|
|
948
948
|
}), vn = /* @__PURE__ */ oe.forwardRef(({
|
|
949
949
|
bsPrefix: e,
|
|
950
950
|
variant: t,
|
|
@@ -964,41 +964,41 @@ const Ae = Object.assign(ta, {
|
|
|
964
964
|
});
|
|
965
965
|
});
|
|
966
966
|
vn.displayName = "Spinner";
|
|
967
|
-
const td = ({ heading: e, content: t, placement: n, children: a, trigger: s, popoverClassName: o, ...i }) => /* @__PURE__ */ r.jsx(
|
|
968
|
-
e && /* @__PURE__ */ r.jsx(
|
|
969
|
-
/* @__PURE__ */ r.jsx(
|
|
967
|
+
const td = ({ heading: e, content: t, placement: n, children: a, trigger: s, popoverClassName: o, ...i }) => /* @__PURE__ */ r.jsx(Qa, { placement: n, overlay: /* @__PURE__ */ r.jsxs(Bt, { className: w("luminus-popover", o), onClick: (c) => c.stopPropagation(), children: [
|
|
968
|
+
e && /* @__PURE__ */ r.jsx(Bt.Header, { children: typeof e == "string" ? /* @__PURE__ */ r.jsx(J, { variant: "h6", className: "text-primary", children: e }) : e }),
|
|
969
|
+
/* @__PURE__ */ r.jsx(Bt.Body, { children: t })
|
|
970
970
|
] }), trigger: s ?? "hover", rootClose: !0, show: i.controlled ? i.isOpen : void 0, onToggle: i.controlled ? (c) => i.setIsOpen(c) : void 0, children: a }), po = ({ children: e, onStorno: t, noSpacer: n }) => {
|
|
971
971
|
const { texts: { formSubmit: a } } = q(ge);
|
|
972
972
|
return /* @__PURE__ */ r.jsxs(pl, { noSpacer: n, children: [
|
|
973
973
|
/* @__PURE__ */ r.jsxs(en, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
974
|
-
/* @__PURE__ */ r.jsx(
|
|
974
|
+
/* @__PURE__ */ r.jsx(Za, {}),
|
|
975
975
|
e
|
|
976
976
|
] }),
|
|
977
977
|
t && /* @__PURE__ */ r.jsxs(en, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: t, children: [
|
|
978
|
-
/* @__PURE__ */ r.jsx(
|
|
978
|
+
/* @__PURE__ */ r.jsx(Ja, {}),
|
|
979
979
|
a.storno
|
|
980
980
|
] })
|
|
981
981
|
] });
|
|
982
|
-
},
|
|
982
|
+
}, aa = ({ color: e = "primary", icon: t = /* @__PURE__ */ r.jsx(hr, { size: 12 }), inputId: n = "context-file-input", accept: a = "*", onUpload: s, className: o, children: i, multiple: c, ...l }) => {
|
|
983
983
|
const u = (d) => {
|
|
984
984
|
d.target.files && (s(d.target.files), d.target.value = "");
|
|
985
985
|
};
|
|
986
986
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
987
|
-
/* @__PURE__ */ r.jsxs("label", { htmlFor: n, className: w(`luminus-context-button btn text-${e} ${o ?? ""}`,
|
|
987
|
+
/* @__PURE__ */ r.jsxs("label", { htmlFor: n, className: w(`luminus-context-button btn text-${e} ${o ?? ""}`, Xa.button), ...l, children: [
|
|
988
988
|
t,
|
|
989
989
|
i
|
|
990
990
|
] }),
|
|
991
991
|
/* @__PURE__ */ r.jsx("input", { id: n, type: "file", accept: a, onChange: u, hidden: !0, multiple: c })
|
|
992
992
|
] });
|
|
993
993
|
}, nd = ({ onUpload: e, accept: t, children: n, className: a, size: s = "md" }) => {
|
|
994
|
-
const o =
|
|
994
|
+
const o = k(async (c) => {
|
|
995
995
|
if (c.target.files)
|
|
996
996
|
try {
|
|
997
997
|
await e(c.target.files);
|
|
998
998
|
} finally {
|
|
999
999
|
c.target.value = "";
|
|
1000
1000
|
}
|
|
1001
|
-
}, [e]), i =
|
|
1001
|
+
}, [e]), i = Cs();
|
|
1002
1002
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1003
1003
|
/* @__PURE__ */ r.jsx("label", { htmlFor: i, className: w("btn luminus-context-button text-primary", `btn-${s}`, a), children: n }),
|
|
1004
1004
|
/* @__PURE__ */ r.jsx("input", { id: i, type: "file", accept: t, onChange: o, hidden: !0 })
|
|
@@ -1006,8 +1006,8 @@ const td = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
|
|
|
1006
1006
|
}, xo = "_select_dlv1t_1", zt = {
|
|
1007
1007
|
select: xo
|
|
1008
1008
|
}, vo = ({ month: e, onChangeMonth: t, locale: n, yearMin: a = 2e3, yearMax: s = 2050 }) => {
|
|
1009
|
-
const o =
|
|
1010
|
-
const u =
|
|
1009
|
+
const o = k((l) => {
|
|
1010
|
+
const u = Sr(e, l);
|
|
1011
1011
|
u.getFullYear() < a || u.getFullYear() > s || t(u);
|
|
1012
1012
|
}, [e, t, a, s]), i = ne(() => {
|
|
1013
1013
|
const l = [];
|
|
@@ -1031,14 +1031,14 @@ const td = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
|
|
|
1031
1031
|
}, className: w(zt.select, zt.month), children: c.map((l) => /* @__PURE__ */ r.jsx("option", { value: l.id, children: l.name }, l.id)) }),
|
|
1032
1032
|
/* @__PURE__ */ r.jsx(ye.Select, { value: e.getFullYear(), onChange: (l) => {
|
|
1033
1033
|
var u;
|
|
1034
|
-
return ((u = l.target) == null ? void 0 : u.value) && t(
|
|
1034
|
+
return ((u = l.target) == null ? void 0 : u.value) && t(Ir(e, Number(l.target.value)));
|
|
1035
1035
|
}, className: w(zt.select), children: i.map((l) => /* @__PURE__ */ r.jsx("option", { value: l, children: l }, l)) }),
|
|
1036
1036
|
/* @__PURE__ */ r.jsx(re, { onClick: () => o(1), disabled: e.getFullYear() > s || e.getFullYear() === s && e.getMonth() >= 11, children: /* @__PURE__ */ r.jsx(dn, {}) })
|
|
1037
1037
|
] });
|
|
1038
1038
|
}, jo = "_select_pywmr_1", yo = {
|
|
1039
1039
|
select: jo
|
|
1040
1040
|
}, bo = ({ year: e, onChangeYear: t, optionMin: n = 2e3, optionMax: a = 2050, className: s }) => {
|
|
1041
|
-
const o =
|
|
1041
|
+
const o = k((c) => {
|
|
1042
1042
|
const l = e.getFullYear() + c;
|
|
1043
1043
|
l < n || l > a || t(Ps(e, c));
|
|
1044
1044
|
}, [e, t, a, n]), i = ne(() => {
|
|
@@ -1051,7 +1051,7 @@ const td = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
|
|
|
1051
1051
|
/* @__PURE__ */ r.jsx(re, { onClick: () => o(-1), disabled: e.getFullYear() <= n, children: /* @__PURE__ */ r.jsx(cn, {}) }),
|
|
1052
1052
|
/* @__PURE__ */ r.jsx(ye.Select, { value: e.getFullYear(), onChange: (c) => {
|
|
1053
1053
|
var l;
|
|
1054
|
-
return ((l = c.target) == null ? void 0 : l.value) && t(
|
|
1054
|
+
return ((l = c.target) == null ? void 0 : l.value) && t(Ir(e, Number(c.target.value)));
|
|
1055
1055
|
}, className: yo.select, children: i.map((c) => /* @__PURE__ */ r.jsx("option", { value: c, children: c }, c)) }),
|
|
1056
1056
|
/* @__PURE__ */ r.jsx(re, { onClick: () => o(1), disabled: e.getFullYear() >= a, children: /* @__PURE__ */ r.jsx(dn, {}) })
|
|
1057
1057
|
] });
|
|
@@ -1061,27 +1061,27 @@ const td = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
|
|
|
1061
1061
|
/* @__PURE__ */ r.jsx(Ve.Header, { closeButton: !0, children: /* @__PURE__ */ r.jsx(Ve.Title, { children: s.pickWidgetToAdd }) }),
|
|
1062
1062
|
/* @__PURE__ */ r.jsx(Ve.Body, { children: /* @__PURE__ */ r.jsx("div", { className: "list-group", children: t.filter((o) => o.id >= 0).map((o) => /* @__PURE__ */ r.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => a(o.id), children: /* @__PURE__ */ r.jsx(J, { variant: "body", children: o.name }) })) }) })
|
|
1063
1063
|
] }), Vn = ({ availableWidgets: e, onAdd: t, texts: n }) => {
|
|
1064
|
-
const [a, s] =
|
|
1064
|
+
const [a, s] = O(!1);
|
|
1065
1065
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1066
|
-
/* @__PURE__ */ r.jsx("div", { className: w("luminus-empty-widget", _o.widget), children: /* @__PURE__ */ r.jsx(re, { onClick: () => s(!0), children: /* @__PURE__ */ r.jsx(
|
|
1066
|
+
/* @__PURE__ */ r.jsx("div", { className: w("luminus-empty-widget", _o.widget), children: /* @__PURE__ */ r.jsx(re, { onClick: () => s(!0), children: /* @__PURE__ */ r.jsx(es, {}) }) }),
|
|
1067
1067
|
/* @__PURE__ */ r.jsx(No, { show: a, widgets: e, handleClose: () => s(!1), onWidgetPicked: (o) => {
|
|
1068
1068
|
s(!1), t(o);
|
|
1069
1069
|
}, texts: n })
|
|
1070
1070
|
] });
|
|
1071
1071
|
}, Co = (e) => {
|
|
1072
|
-
const [t, n] =
|
|
1072
|
+
const [t, n] = O({ widgets: [] });
|
|
1073
1073
|
M(() => {
|
|
1074
1074
|
const s = localStorage.getItem("dashboardConfig");
|
|
1075
1075
|
s ? n(JSON.parse(s)) : e && n(e);
|
|
1076
1076
|
}, [e]);
|
|
1077
|
-
const a =
|
|
1077
|
+
const a = k((s) => {
|
|
1078
1078
|
n(s), localStorage.setItem("dashboardConfig", JSON.stringify(s));
|
|
1079
1079
|
}, []);
|
|
1080
1080
|
return { dashboardConfig: t, onChangeDashboardConfig: a };
|
|
1081
|
-
},
|
|
1082
|
-
dashboard:
|
|
1081
|
+
}, ko = "_dashboard_16plm_1", So = "_widgets-grid_16plm_1", Io = "_widget-wrapper_16plm_8", Do = "_full-width_16plm_13", $o = "_widget-edit_16plm_16", Eo = "_remove-icon_16plm_19", Fo = "_full-width-icon_16plm_26", Oo = "_widget-edit-overlay_16plm_36", Oe = {
|
|
1082
|
+
dashboard: ko,
|
|
1083
1083
|
"widgets-grid": "_widgets-grid_16plm_1",
|
|
1084
|
-
widgetsGrid:
|
|
1084
|
+
widgetsGrid: So,
|
|
1085
1085
|
"widget-wrapper": "_widget-wrapper_16plm_8",
|
|
1086
1086
|
widgetWrapper: Io,
|
|
1087
1087
|
"full-width": "_full-width_16plm_13",
|
|
@@ -1089,40 +1089,51 @@ const td = ({ heading: e, content: t, placement: n, children: a, trigger: s, pop
|
|
|
1089
1089
|
"widget-edit": "_widget-edit_16plm_16",
|
|
1090
1090
|
widgetEdit: $o,
|
|
1091
1091
|
"remove-icon": "_remove-icon_16plm_19",
|
|
1092
|
-
removeIcon:
|
|
1092
|
+
removeIcon: Eo,
|
|
1093
1093
|
"full-width-icon": "_full-width-icon_16plm_26",
|
|
1094
|
-
fullWidthIcon:
|
|
1094
|
+
fullWidthIcon: Fo,
|
|
1095
1095
|
"widget-edit-overlay": "_widget-edit-overlay_16plm_36",
|
|
1096
|
-
widgetEditOverlay:
|
|
1096
|
+
widgetEditOverlay: Oo
|
|
1097
1097
|
};
|
|
1098
|
-
class To extends
|
|
1098
|
+
class To extends ks {
|
|
1099
1099
|
constructor(t) {
|
|
1100
|
-
super(t), this.state = { hasError: !1 }, this.reload = this.reload.bind(this);
|
|
1100
|
+
super(t), this.state = { hasError: !1, is404Error: !1 }, this.reload = this.reload.bind(this);
|
|
1101
1101
|
}
|
|
1102
1102
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1103
1103
|
static getDerivedStateFromError(t) {
|
|
1104
|
-
return { hasError: !0 };
|
|
1104
|
+
return { hasError: !0, is404Error: t.message === "404" };
|
|
1105
1105
|
}
|
|
1106
1106
|
componentDidUpdate(t) {
|
|
1107
|
-
this.state.hasError && t.keyForErrorState !== this.props.keyForErrorState && this.setState({ hasError: !1 });
|
|
1107
|
+
this.state.hasError && t.keyForErrorState !== this.props.keyForErrorState && this.setState({ hasError: !1, is404Error: !1 });
|
|
1108
1108
|
}
|
|
1109
1109
|
componentDidCatch(t, n) {
|
|
1110
1110
|
console.error("Error:", t, n);
|
|
1111
1111
|
}
|
|
1112
1112
|
reload() {
|
|
1113
|
-
this.setState({ hasError: !1 });
|
|
1113
|
+
this.setState({ hasError: !1, is404Error: !1 });
|
|
1114
1114
|
}
|
|
1115
1115
|
render() {
|
|
1116
|
-
const { fallback: t,
|
|
1117
|
-
return this.state.hasError ?
|
|
1116
|
+
const { fallback: t, fallbackOn404: n, children: a, texts: s, reloadButtonDisplay: o = "append-after-child" } = this.props;
|
|
1117
|
+
return this.state.hasError ? o === "inject-to-child" && !this.state.is404Error && Sn(t) ? Ce.cloneElement(t, {
|
|
1118
1118
|
...t.props
|
|
1119
1119
|
}, /* @__PURE__ */ r.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
1120
1120
|
...t.props.children,
|
|
1121
|
-
/* @__PURE__ */ r.jsx(
|
|
1121
|
+
/* @__PURE__ */ r.jsx("div", { className: "d-flex gap-2 justify-content-center", children: /* @__PURE__ */ r.jsx(Te, { type: "button", onClick: this.reload, children: s.reloadButtonContent }) })
|
|
1122
|
+
] })) : o === "inject-to-child" && this.state.is404Error && Sn(n) ? Ce.cloneElement(n, {
|
|
1123
|
+
...n.props
|
|
1124
|
+
}, /* @__PURE__ */ r.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
1125
|
+
...n.props.children,
|
|
1126
|
+
/* @__PURE__ */ r.jsxs("div", { className: "d-flex gap-2 justify-content-center", children: [
|
|
1127
|
+
/* @__PURE__ */ r.jsx(Te, { type: "button", onClick: this.reload, children: s.reloadButtonContent }),
|
|
1128
|
+
/* @__PURE__ */ r.jsx(Te, { type: "button", onClick: this.props.navigateBack, children: s.navigateBackButtonContent })
|
|
1129
|
+
] })
|
|
1122
1130
|
] })) : /* @__PURE__ */ r.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
1123
|
-
t,
|
|
1124
|
-
|
|
1125
|
-
|
|
1131
|
+
this.state.is404Error ? n : t,
|
|
1132
|
+
/* @__PURE__ */ r.jsxs("div", { className: "d-flex gap-2 justify-content-center", children: [
|
|
1133
|
+
o === "none" ? null : /* @__PURE__ */ r.jsx(Te, { type: "button", onClick: this.reload, children: s.reloadButtonContent }),
|
|
1134
|
+
this.state.is404Error && /* @__PURE__ */ r.jsx(Te, { type: "button", onClick: this.props.navigateBack, children: s.navigateBackButtonContent })
|
|
1135
|
+
] })
|
|
1136
|
+
] }) : a;
|
|
1126
1137
|
}
|
|
1127
1138
|
}
|
|
1128
1139
|
const Lo = (e) => (n) => {
|
|
@@ -1131,12 +1142,12 @@ const Lo = (e) => (n) => {
|
|
|
1131
1142
|
}, Ro = Lo(To), Ao = "_widget-card_e9tsb_1", Mo = {
|
|
1132
1143
|
"widget-card": "_widget-card_e9tsb_1",
|
|
1133
1144
|
widgetCard: Ao
|
|
1134
|
-
},
|
|
1135
|
-
const { texts: { widget: n } } = q(ge);
|
|
1136
|
-
return /* @__PURE__ */ r.jsx(Ro, { fallback: /* @__PURE__ */ r.jsx(
|
|
1145
|
+
}, Pn = ({ children: e, title: t, headerContent: n }) => /* @__PURE__ */ r.jsx(Ai, { className: w(Mo.widgetCard, "luminus-widget"), title: t, headerContent: n, contentClassName: "h-100 overflow-auto", children: e }), Bo = ({ children: e, title: t }) => {
|
|
1146
|
+
const { texts: { widget: n } } = q(ge), a = Nr();
|
|
1147
|
+
return /* @__PURE__ */ r.jsx(Ro, { fallback: /* @__PURE__ */ r.jsx(Pn, { title: t, children: n.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => a(-1), children: /* @__PURE__ */ r.jsx(Ss, { fallback: /* @__PURE__ */ r.jsx(Pn, { title: t, children: /* @__PURE__ */ r.jsx(Vs, {}) }), children: e }) });
|
|
1137
1148
|
}, rd = ({ availableWidgets: e, editMode: t, defaultDashboardConfig: n }) => {
|
|
1138
1149
|
var d;
|
|
1139
|
-
const { texts: { homeDashboard: a } } = q(ge), { dashboardConfig: s, onChangeDashboardConfig: o } = Co(n), i =
|
|
1150
|
+
const { texts: { homeDashboard: a } } = q(ge), { dashboardConfig: s, onChangeDashboardConfig: o } = Co(n), i = k((m, x) => {
|
|
1140
1151
|
var v, h;
|
|
1141
1152
|
m === ((v = s.widgets) == null ? void 0 : v.length) ? o({
|
|
1142
1153
|
...s,
|
|
@@ -1145,27 +1156,27 @@ const Lo = (e) => (n) => {
|
|
|
1145
1156
|
...s,
|
|
1146
1157
|
widgets: ((h = s.widgets) == null ? void 0 : h.map((g, p) => p === m ? { widgetId: x, fullWidth: !1 } : g)) ?? []
|
|
1147
1158
|
});
|
|
1148
|
-
}, [s, o]), c =
|
|
1159
|
+
}, [s, o]), c = k((m) => {
|
|
1149
1160
|
var x, v;
|
|
1150
1161
|
((x = s.widgets[m]) == null ? void 0 : x.widgetId) === -1 ? o({
|
|
1151
1162
|
...s,
|
|
1152
1163
|
widgets: ((v = s.widgets) == null ? void 0 : v.filter((h, g) => g !== m)) ?? []
|
|
1153
1164
|
}) : i(m, -1);
|
|
1154
|
-
}, [s, o, i]), l =
|
|
1165
|
+
}, [s, o, i]), l = k((m) => {
|
|
1155
1166
|
var x;
|
|
1156
1167
|
o({
|
|
1157
1168
|
...s,
|
|
1158
1169
|
widgets: ((x = s.widgets) == null ? void 0 : x.map((v, h) => h === m ? { ...v, fullWidth: !v.fullWidth } : v)) ?? []
|
|
1159
1170
|
});
|
|
1160
|
-
}, [s, o]), u =
|
|
1161
|
-
[
|
|
1162
|
-
}, { [
|
|
1171
|
+
}, [s, o]), u = k((m, x, v) => m ? /* @__PURE__ */ r.jsxs("div", { className: w(Oe.widgetWrapper, {
|
|
1172
|
+
[Oe.widgetEdit]: t && m.id !== -1
|
|
1173
|
+
}, { [Oe.fullWidth]: v }), children: [
|
|
1163
1174
|
t && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1164
|
-
/* @__PURE__ */ r.jsx(re, { color: "danger", onClick: () => c(x), className: w(
|
|
1165
|
-
/* @__PURE__ */ r.jsx(re, { color: v ? "danger" : "primary", onClick: () => l(x), className: w(
|
|
1175
|
+
/* @__PURE__ */ r.jsx(re, { color: "danger", onClick: () => c(x), className: w(Oe.removeIcon), children: /* @__PURE__ */ r.jsx(gr, {}) }),
|
|
1176
|
+
/* @__PURE__ */ r.jsx(re, { color: v ? "danger" : "primary", onClick: () => l(x), className: w(Oe.fullWidthIcon), children: /* @__PURE__ */ r.jsx(ts, {}) })
|
|
1166
1177
|
] }),
|
|
1167
|
-
m.id === -1 ? t && /* @__PURE__ */ r.jsx("div", { className:
|
|
1168
|
-
m.id > -1 && t && /* @__PURE__ */ r.jsx("div", { className:
|
|
1178
|
+
m.id === -1 ? t && /* @__PURE__ */ r.jsx("div", { className: Oe.widgetWrapper, children: /* @__PURE__ */ r.jsx(Vn, { availableWidgets: e, onAdd: (h) => i(x, h), texts: a }) }) : /* @__PURE__ */ r.jsx(Bo, { title: m.title, children: /* @__PURE__ */ r.jsx(m.WidgetElement, { title: m.title }) }),
|
|
1179
|
+
m.id > -1 && t && /* @__PURE__ */ r.jsx("div", { className: Oe.widgetEditOverlay })
|
|
1169
1180
|
] }, x) : /* @__PURE__ */ r.jsx(r.Fragment, {}), [
|
|
1170
1181
|
t,
|
|
1171
1182
|
i,
|
|
@@ -1174,35 +1185,35 @@ const Lo = (e) => (n) => {
|
|
|
1174
1185
|
e,
|
|
1175
1186
|
a
|
|
1176
1187
|
]);
|
|
1177
|
-
return /* @__PURE__ */ r.jsx("div", { className:
|
|
1188
|
+
return /* @__PURE__ */ r.jsx("div", { className: Oe.dashboard, children: /* @__PURE__ */ r.jsxs("div", { className: Oe.widgetsGrid, children: [
|
|
1178
1189
|
(d = s.widgets) == null ? void 0 : d.map((m, x) => u(e.find((v) => v.id === m.widgetId), x, m.fullWidth)),
|
|
1179
1190
|
t && /* @__PURE__ */ r.jsx(Vn, { availableWidgets: e, onAdd: (m) => {
|
|
1180
1191
|
var x;
|
|
1181
1192
|
return i((x = s.widgets) == null ? void 0 : x.length, m);
|
|
1182
1193
|
}, texts: a })
|
|
1183
1194
|
] }) });
|
|
1184
|
-
},
|
|
1185
|
-
badge:
|
|
1195
|
+
}, Vo = "_badge_193ci_1", Po = "_sm_193ci_6", Ho = "_md_193ci_10", Wo = "_lg_193ci_14", zo = "_light_193ci_18", Ut = {
|
|
1196
|
+
badge: Vo,
|
|
1186
1197
|
sm: Po,
|
|
1187
1198
|
md: Ho,
|
|
1188
1199
|
lg: Wo,
|
|
1189
1200
|
light: zo
|
|
1190
|
-
}, ad = ({ children: e, color: t = "primary", size: n = "md", rounded: a, className: s, ...o }) => /* @__PURE__ */ r.jsx("span", { className: w(`luminus-badge badge bg-${t} ${s ?? ""}`, { "rounded-pill": a }, { "text-dark": t === "light" }, { [Ut.light]: t === "light" }, Ut.badge, Ut[n]), ...o, children: e }), Uo = "_collapse-icon_1ahhn_1", Go = "_collapsed_1ahhn_6",
|
|
1201
|
+
}, ad = ({ children: e, color: t = "primary", size: n = "md", rounded: a, className: s, ...o }) => /* @__PURE__ */ r.jsx("span", { className: w(`luminus-badge badge bg-${t} ${s ?? ""}`, { "rounded-pill": a }, { "text-dark": t === "light" }, { [Ut.light]: t === "light" }, Ut.badge, Ut[n]), ...o, children: e }), Uo = "_collapse-icon_1ahhn_1", Go = "_collapsed_1ahhn_6", Hn = {
|
|
1191
1202
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
1192
1203
|
collapseIcon: Uo,
|
|
1193
1204
|
collapsed: Go
|
|
1194
1205
|
}, Yo = ({ title: e, children: t, className: n, ...a }) => {
|
|
1195
|
-
const s = a.controlled ? !1 : a.defaultOpen ?? !1, [o, i] =
|
|
1206
|
+
const s = a.controlled ? !1 : a.defaultOpen ?? !1, [o, i] = O(s), c = a.controlled ? a.isOpen : o;
|
|
1196
1207
|
return M(() => {
|
|
1197
1208
|
i(s);
|
|
1198
1209
|
}, [s]), /* @__PURE__ */ r.jsxs("div", { className: n ?? "", children: [
|
|
1199
1210
|
/* @__PURE__ */ r.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => a.controlled ? a.onToggle(!a.isOpen) : i(!o), children: [
|
|
1200
1211
|
/* @__PURE__ */ r.jsx(J, { variant: "h6", children: e }),
|
|
1201
|
-
/* @__PURE__ */ r.jsx(
|
|
1202
|
-
[
|
|
1212
|
+
/* @__PURE__ */ r.jsx(pr, { className: w(Hn.collapseIcon, {
|
|
1213
|
+
[Hn.collapsed]: c
|
|
1203
1214
|
}) })
|
|
1204
1215
|
] }),
|
|
1205
|
-
/* @__PURE__ */ r.jsx(
|
|
1216
|
+
/* @__PURE__ */ r.jsx(Dr, { in: c, children: /* @__PURE__ */ r.jsx("div", { children: t }) }),
|
|
1206
1217
|
/* @__PURE__ */ r.jsx("hr", { className: `my-0 ${c ? "mt-3" : ""}` })
|
|
1207
1218
|
] });
|
|
1208
1219
|
};
|
|
@@ -1220,27 +1231,27 @@ function Ko(e, t, n) {
|
|
|
1220
1231
|
}, []);
|
|
1221
1232
|
var f = ne(function() {
|
|
1222
1233
|
var b = function(L) {
|
|
1223
|
-
var
|
|
1224
|
-
return c.current = l.current = null, o.current = L, u.current = d.current.apply(_,
|
|
1225
|
-
}, N = function(L,
|
|
1226
|
-
v && cancelAnimationFrame(i.current), i.current = v ? requestAnimationFrame(L) : setTimeout(L,
|
|
1227
|
-
},
|
|
1234
|
+
var F = c.current, _ = l.current;
|
|
1235
|
+
return c.current = l.current = null, o.current = L, u.current = d.current.apply(_, F);
|
|
1236
|
+
}, N = function(L, F) {
|
|
1237
|
+
v && cancelAnimationFrame(i.current), i.current = v ? requestAnimationFrame(L) : setTimeout(L, F);
|
|
1238
|
+
}, S = function(L) {
|
|
1228
1239
|
if (!m.current) return !1;
|
|
1229
|
-
var
|
|
1230
|
-
return !s.current ||
|
|
1240
|
+
var F = L - s.current;
|
|
1241
|
+
return !s.current || F >= t || F < 0 || p && L - o.current >= j;
|
|
1231
1242
|
}, I = function(L) {
|
|
1232
1243
|
return i.current = null, g && c.current ? b(L) : (c.current = l.current = null, u.current);
|
|
1233
1244
|
}, D = function L() {
|
|
1234
|
-
var
|
|
1235
|
-
if (
|
|
1245
|
+
var F = Date.now();
|
|
1246
|
+
if (S(F)) return I(F);
|
|
1236
1247
|
if (m.current) {
|
|
1237
|
-
var _ = t - (
|
|
1248
|
+
var _ = t - (F - s.current), W = p ? Math.min(_, j - (F - o.current)) : _;
|
|
1238
1249
|
N(L, W);
|
|
1239
1250
|
}
|
|
1240
1251
|
}, C = function() {
|
|
1241
1252
|
if (x || y) {
|
|
1242
|
-
var L = Date.now(),
|
|
1243
|
-
if (c.current = [].slice.call(arguments), l.current = a, s.current = L,
|
|
1253
|
+
var L = Date.now(), F = S(L);
|
|
1254
|
+
if (c.current = [].slice.call(arguments), l.current = a, s.current = L, F) {
|
|
1244
1255
|
if (!i.current && m.current) return o.current = s.current, N(D, t), h ? b(s.current) : u.current;
|
|
1245
1256
|
if (p) return N(D, t), b(s.current);
|
|
1246
1257
|
}
|
|
@@ -1263,8 +1274,8 @@ function qo(e, t) {
|
|
|
1263
1274
|
function Qo(e, t) {
|
|
1264
1275
|
return t;
|
|
1265
1276
|
}
|
|
1266
|
-
function
|
|
1267
|
-
var a = qo, s =
|
|
1277
|
+
function sa(e, t, n) {
|
|
1278
|
+
var a = qo, s = Is(Qo, e), o = s[0], i = s[1], c = Ko(k(function(u) {
|
|
1268
1279
|
return i(u);
|
|
1269
1280
|
}, [i]), t, n), l = te(e);
|
|
1270
1281
|
return a(l.current, e) || (c(e), l.current = e), a(o, e) && c.cancel(), [o, c];
|
|
@@ -1294,41 +1305,41 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
|
|
|
1294
1305
|
"action-button": "_action-button_1kgb8_74",
|
|
1295
1306
|
actionButton: ui
|
|
1296
1307
|
}, jn = ({ show: e, onCancel: t, items: n, currentSelection: a, onSelectionChange: s, onSearchQueryChange: o, texts: i, itemsNameWidth: c, additionalColumns: l, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: m, disabled: x, isLoading: v = !1, inputRef: h }) => {
|
|
1297
|
-
var
|
|
1298
|
-
const g = te(null), p = te(null), y = te(null), j = te(null), f = te(null), [b, N] =
|
|
1308
|
+
var ze;
|
|
1309
|
+
const g = te(null), p = te(null), y = te(null), j = te(null), f = te(null), [b, N] = O(""), [S] = sa(b, 500), [, I] = O(!1), { copyToClipboard: D } = Ts(), C = (ze = h.current) == null ? void 0 : ze.getBoundingClientRect(), L = (C == null ? void 0 : C.x) ?? 0, F = ((C == null ? void 0 : C.x) ?? 0) + ((C == null ? void 0 : C.width) ?? 0), _ = (C == null ? void 0 : C.y) ?? 0, W = ((C == null ? void 0 : C.y) ?? 0) + ((C == null ? void 0 : C.height) ?? 0), B = (C == null ? void 0 : C.width) ?? 0, X = (C == null ? void 0 : C.height) ?? 0, R = 5, $ = ne(() => L ? L > window.innerWidth / 2 : !1, [L]), P = ne(() => _ ? _ > window.innerHeight / 2 : !1, [_]);
|
|
1299
1310
|
M(() => {
|
|
1300
1311
|
var Y;
|
|
1301
1312
|
e && ((Y = j.current) == null || Y.focus());
|
|
1302
1313
|
}, [j, e]), M(() => {
|
|
1303
1314
|
e || N("");
|
|
1304
1315
|
}, [e]), M(() => {
|
|
1305
|
-
o(
|
|
1306
|
-
}, [
|
|
1307
|
-
const [U, Z] =
|
|
1316
|
+
o(S);
|
|
1317
|
+
}, [S, o]);
|
|
1318
|
+
const [U, Z] = O(null);
|
|
1308
1319
|
M(() => {
|
|
1309
1320
|
e && n.length > 0 ? Z(0) : Z(null);
|
|
1310
1321
|
}, [n, e]);
|
|
1311
|
-
const Q = ne(() => U !== null ? n.at(U) ?? null : null, [U, n]),
|
|
1312
|
-
var
|
|
1322
|
+
const Q = ne(() => U !== null ? n.at(U) ?? null : null, [U, n]), E = k((Y, fe) => {
|
|
1323
|
+
var Ue, nt;
|
|
1313
1324
|
const _e = document.getElementById(`item-${Y}`);
|
|
1314
1325
|
if (_e) {
|
|
1315
1326
|
const T = _e.clientHeight ?? 0;
|
|
1316
|
-
fe === "down" ? (
|
|
1327
|
+
fe === "down" ? (Ue = f.current) == null || Ue.scrollBy({
|
|
1317
1328
|
left: 0,
|
|
1318
1329
|
top: T,
|
|
1319
1330
|
behavior: "smooth"
|
|
1320
|
-
}) : (
|
|
1331
|
+
}) : (nt = f.current) == null || nt.scrollBy({
|
|
1321
1332
|
left: 0,
|
|
1322
1333
|
top: -T,
|
|
1323
1334
|
behavior: "smooth"
|
|
1324
1335
|
});
|
|
1325
1336
|
}
|
|
1326
|
-
}, []), ee =
|
|
1337
|
+
}, []), ee = k((Y) => {
|
|
1327
1338
|
if (U === null || x)
|
|
1328
1339
|
return;
|
|
1329
1340
|
const fe = U + Y;
|
|
1330
|
-
fe < 0 || fe >= n.length || Z((_e) => (_e !== null &&
|
|
1331
|
-
}, [U, n, x,
|
|
1341
|
+
fe < 0 || fe >= n.length || Z((_e) => (_e !== null && E(_e, Y > 0 ? "down" : "up"), fe));
|
|
1342
|
+
}, [U, n, x, E]), A = k((Y) => {
|
|
1332
1343
|
if (e)
|
|
1333
1344
|
switch (Y.key) {
|
|
1334
1345
|
case "Escape":
|
|
@@ -1344,35 +1355,35 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
|
|
|
1344
1355
|
Y.stopPropagation(), Y.preventDefault(), ee(1);
|
|
1345
1356
|
break;
|
|
1346
1357
|
}
|
|
1347
|
-
}, [t, e, ee, Q, x, s]), z =
|
|
1358
|
+
}, [t, e, ee, Q, x, s]), z = k(() => {
|
|
1348
1359
|
I((Y) => !Y);
|
|
1349
1360
|
}, []);
|
|
1350
1361
|
M(() => (window.addEventListener("scroll", z), () => {
|
|
1351
1362
|
window.removeEventListener("scroll", z);
|
|
1352
1363
|
}), [z]), M(() => (window.addEventListener("resize", z), () => {
|
|
1353
1364
|
window.removeEventListener("resize", z);
|
|
1354
|
-
}), [z]),
|
|
1355
|
-
const me = c ?? (l && l.length > 0 ? 250 : 0), G = (l == null ? void 0 : l.reduce((Y, fe) => Y + (fe.width ?? 100), 0)) ?? 0, pe = `calc(max(${
|
|
1365
|
+
}), [z]), kr(A), Cr([g, p, y], t);
|
|
1366
|
+
const me = c ?? (l && l.length > 0 ? 250 : 0), G = (l == null ? void 0 : l.reduce((Y, fe) => Y + (fe.width ?? 100), 0)) ?? 0, pe = `calc(max(${B}px, ${me}px + ${G}px))`, Ne = ne(() => (a && e && !x) ?? !1, [a, e, x]), Ie = ne(() => (a && e) ?? !1, [a, e]);
|
|
1356
1367
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1357
|
-
/* @__PURE__ */ r.jsx(
|
|
1368
|
+
/* @__PURE__ */ r.jsx(la, { show: e, onClick: t }),
|
|
1358
1369
|
/* @__PURE__ */ r.jsxs("div", { className: w("luminus-dropdown-picker-actions", be.actionButtonsContainer, {
|
|
1359
1370
|
[be.reverse]: $
|
|
1360
1371
|
}), style: {
|
|
1361
1372
|
top: `calc(${_}px + ${X / 2}px - 12px)`,
|
|
1362
|
-
left: $ ? Ne && Ie ? `calc(${L}px - 24px - 8px - 24px - 4px)` : `calc(${L}px - 24px - 8px)` : `calc(${
|
|
1373
|
+
left: $ ? Ne && Ie ? `calc(${L}px - 24px - 8px - 24px - 4px)` : `calc(${L}px - 24px - 8px)` : `calc(${F}px + 8px)`
|
|
1363
1374
|
}, children: [
|
|
1364
|
-
Ne && /* @__PURE__ */ r.jsx("button", { ref: p, type: "button", className: w("luminus-dropdown-picker-clear-button", be.actionButton), onClick: () => !x && s(null), children: /* @__PURE__ */ r.jsx(J, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ r.jsx(
|
|
1375
|
+
Ne && /* @__PURE__ */ r.jsx("button", { ref: p, type: "button", className: w("luminus-dropdown-picker-clear-button", be.actionButton), onClick: () => !x && s(null), children: /* @__PURE__ */ r.jsx(J, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ r.jsx(gr, { size: 16 }) }) }),
|
|
1365
1376
|
Ie && /* @__PURE__ */ r.jsx("button", { ref: y, type: "button", className: w("luminus-dropdown-picker-copy-button", be.actionButton), onClick: () => {
|
|
1366
1377
|
var Y, fe;
|
|
1367
1378
|
D(u ? ((Y = a == null ? void 0 : a.id) == null ? void 0 : Y.toString()) ?? "" : ((fe = a == null ? void 0 : a.name) == null ? void 0 : fe.toString()) ?? ""), t();
|
|
1368
|
-
}, children: /* @__PURE__ */ r.jsx(J, { variant: "caption", className: "text-info", children: /* @__PURE__ */ r.jsx(
|
|
1379
|
+
}, children: /* @__PURE__ */ r.jsx(J, { variant: "caption", className: "text-info", children: /* @__PURE__ */ r.jsx(ns, { size: 16 }) }) })
|
|
1369
1380
|
] }),
|
|
1370
1381
|
/* @__PURE__ */ r.jsx("div", { className: w("luminus-dropdown-picker", be.wrapper, {
|
|
1371
1382
|
[be.open]: e
|
|
1372
1383
|
}), style: {
|
|
1373
1384
|
top: P ? `calc(${_}px - 50vh - 8px)` : `calc(${W}px + 8px)`,
|
|
1374
|
-
left: $ ? `calc(${
|
|
1375
|
-
right: $ ? `${
|
|
1385
|
+
left: $ ? `calc(${F}px - ${pe})` : L,
|
|
1386
|
+
right: $ ? `${F}px` : `calc(${L}px + ${pe})`,
|
|
1376
1387
|
width: pe,
|
|
1377
1388
|
justifyContent: P ? "flex-end" : "flex-start"
|
|
1378
1389
|
}, children: /* @__PURE__ */ r.jsx("div", { ref: g, className: w("shadow rounded", be.dropdown), children: !x && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -1404,12 +1415,12 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
|
|
|
1404
1415
|
] })
|
|
1405
1416
|
] }) }) })
|
|
1406
1417
|
] });
|
|
1407
|
-
}, sd = ({ color: e = "primary", icon: t = /* @__PURE__ */ r.jsx(
|
|
1418
|
+
}, sd = ({ color: e = "primary", icon: t = /* @__PURE__ */ r.jsx(hr, { size: 12 }), inputId: n = "context-file-input", accept: a = "*", onUpload: s, multiple: o, className: i, children: c, ...l }) => {
|
|
1408
1419
|
const u = (d) => {
|
|
1409
1420
|
d.target.files && (s(d.target.files), d.target.value = "");
|
|
1410
1421
|
};
|
|
1411
1422
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1412
|
-
/* @__PURE__ */ r.jsxs("label", { htmlFor: n, className: w(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i ?? ""}`,
|
|
1423
|
+
/* @__PURE__ */ r.jsxs("label", { htmlFor: n, className: w(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i ?? ""}`, rs.item), ...l, children: [
|
|
1413
1424
|
t,
|
|
1414
1425
|
c
|
|
1415
1426
|
] }),
|
|
@@ -1417,7 +1428,7 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
|
|
|
1417
1428
|
] });
|
|
1418
1429
|
}, fi = "_divider_1e6rk_1", mi = {
|
|
1419
1430
|
divider: fi
|
|
1420
|
-
}, od = ({ className: e }) => /* @__PURE__ */ r.jsx(
|
|
1431
|
+
}, od = ({ className: e }) => /* @__PURE__ */ r.jsx(as.Divider, { className: w("luminus-dropdown-divider", e, mi.divider) }), hi = ({ searchTypes: e, selectedType: t, setSelectedType: n }) => /* @__PURE__ */ r.jsx(un, { toggle: /* @__PURE__ */ r.jsx(fn, { as: xr, icon: null, text: t == null ? void 0 : t.text }), children: e.map((a) => /* @__PURE__ */ r.jsx(Ze, { icon: null, onClick: () => n(a.key), children: a.text }, a.key)) }), gi = "_dropdown_1ddrg_1", pi = "_open_1ddrg_12", xi = "_loading-container_1ddrg_15", vi = "_groups-container_1ddrg_22", ji = "_group_1ddrg_22", yi = "_header_1ddrg_26", bi = "_item_1ddrg_33", Ge = {
|
|
1421
1432
|
dropdown: gi,
|
|
1422
1433
|
open: pi,
|
|
1423
1434
|
"loading-container": "_loading-container_1ddrg_15",
|
|
@@ -1428,17 +1439,17 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
|
|
|
1428
1439
|
header: yi,
|
|
1429
1440
|
item: bi
|
|
1430
1441
|
}, wi = ({ show: e, query: t, onCancel: n, groups: a, isLoading: s, searchTypes: o }) => {
|
|
1431
|
-
const { texts: { appSearch: i } } = q(ge), c = te(null), l =
|
|
1442
|
+
const { texts: { appSearch: i } } = q(ge), c = te(null), l = k((u) => {
|
|
1432
1443
|
var m;
|
|
1433
1444
|
const d = (m = o.find((x) => x.key === u.type)) == null ? void 0 : m.toPath;
|
|
1434
1445
|
return d ? `${d}/${u.searchKey}` : "/not-found";
|
|
1435
1446
|
}, [o]);
|
|
1436
|
-
return
|
|
1437
|
-
[
|
|
1438
|
-
}), children: s ? /* @__PURE__ */ r.jsx("div", { className:
|
|
1447
|
+
return Cr([c], n), /* @__PURE__ */ r.jsx("div", { ref: c, className: w("luminus-app-search-dropdown shadow rounded", Ge.dropdown, {
|
|
1448
|
+
[Ge.open]: e
|
|
1449
|
+
}), children: s ? /* @__PURE__ */ r.jsx("div", { className: Ge.loadingContainer, children: /* @__PURE__ */ r.jsx(vn, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ r.jsx("div", { className: Ge.groupsContainer, children: a == null ? void 0 : a.map((u) => {
|
|
1439
1450
|
var d;
|
|
1440
|
-
return /* @__PURE__ */ r.jsxs("div", { className: w(
|
|
1441
|
-
/* @__PURE__ */ r.jsxs(
|
|
1451
|
+
return /* @__PURE__ */ r.jsxs("div", { className: w(Ge.group), children: [
|
|
1452
|
+
/* @__PURE__ */ r.jsxs(Je, { to: `/search?query=${t}&type=${u.key.category}`, className: w("group-header", Ge.header), onClick: n, children: [
|
|
1442
1453
|
/* @__PURE__ */ r.jsx(J, { variant: "body", className: "text-primary", children: u.key.categoryName }),
|
|
1443
1454
|
/* @__PURE__ */ r.jsxs(J, { variant: "caption", children: [
|
|
1444
1455
|
u.items.length,
|
|
@@ -1449,32 +1460,32 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
|
|
|
1449
1460
|
] })
|
|
1450
1461
|
] }),
|
|
1451
1462
|
(d = u.items) == null ? void 0 : d.map((m, x) => /* @__PURE__ */ r.jsxs(
|
|
1452
|
-
|
|
1463
|
+
Je,
|
|
1453
1464
|
{
|
|
1454
1465
|
to: l(m),
|
|
1455
|
-
className: w("search-item d-flex gap-3 align-items-center justify-content-between",
|
|
1466
|
+
className: w("search-item d-flex gap-3 align-items-center justify-content-between", Ge.item),
|
|
1456
1467
|
onClick: n,
|
|
1457
1468
|
children: [
|
|
1458
1469
|
/* @__PURE__ */ r.jsx(J, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
|
|
1459
|
-
/* @__PURE__ */ r.jsx(J, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ r.jsx(
|
|
1470
|
+
/* @__PURE__ */ r.jsx(J, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ r.jsx(ss, {}) })
|
|
1460
1471
|
]
|
|
1461
1472
|
},
|
|
1462
1473
|
x
|
|
1463
1474
|
))
|
|
1464
1475
|
] }, u.key.category);
|
|
1465
1476
|
}) }) });
|
|
1466
|
-
}, _i = "_input-group_1lkfy_1", Ni = "_input-group-text_1lkfy_5", Ci = "_left_1lkfy_9",
|
|
1477
|
+
}, _i = "_input-group_1lkfy_1", Ni = "_input-group-text_1lkfy_5", Ci = "_left_1lkfy_9", ki = "_right_1lkfy_13", Si = "_input_1lkfy_1", Ii = "_submit-button_1lkfy_20", Ye = {
|
|
1467
1478
|
"input-group": "_input-group_1lkfy_1",
|
|
1468
1479
|
inputGroup: _i,
|
|
1469
1480
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
1470
1481
|
inputGroupText: Ni,
|
|
1471
1482
|
left: Ci,
|
|
1472
|
-
right:
|
|
1473
|
-
input:
|
|
1483
|
+
right: ki,
|
|
1484
|
+
input: Si,
|
|
1474
1485
|
"submit-button": "_submit-button_1lkfy_20",
|
|
1475
1486
|
submitButton: Ii
|
|
1476
1487
|
}, Di = (e, t) => {
|
|
1477
|
-
const n =
|
|
1488
|
+
const n = Xe(), [a, s] = O(!1), [o, i] = O([]), c = !e || !e.key, l = k(() => {
|
|
1478
1489
|
if (t.length < 3) {
|
|
1479
1490
|
i([]);
|
|
1480
1491
|
return;
|
|
@@ -1490,7 +1501,7 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
|
|
|
1490
1501
|
}, [l]), { isLoading: a, searchItems: o };
|
|
1491
1502
|
}, id = ({ searchTypes: e, navigateFunction: t, currentPath: n, homePath: a = "/" }) => {
|
|
1492
1503
|
var y;
|
|
1493
|
-
const { texts: { appSearch: s } } = q(ge), [o, i] =
|
|
1504
|
+
const { texts: { appSearch: s } } = q(ge), [o, i] = O(e.length > 0 ? ((y = e.at(0)) == null ? void 0 : y.key) ?? null : null), c = ne(() => e.find((j) => j.key === o) ?? null, [e, o]), [l, u] = O(""), [d, m] = sa(l, 500), { isLoading: x, searchItems: v } = Di(c, d), [h, g] = O(!1);
|
|
1494
1505
|
M(() => {
|
|
1495
1506
|
(v.length > 0 || x) && g(!0);
|
|
1496
1507
|
}, [v, x]);
|
|
@@ -1500,53 +1511,53 @@ const Zo = "_wrapper_1kgb8_1", Jo = "_open_1kgb8_9", Xo = "_dropdown_1kgb8_13",
|
|
|
1500
1511
|
u(""), n === a && ((j = p.current) == null || j.focus());
|
|
1501
1512
|
}, [n, a]), /* @__PURE__ */ r.jsx(ye, { onSubmit: (j) => {
|
|
1502
1513
|
j.preventDefault(), j.stopPropagation(), m.flush(), g(!1), l.length > 2 && t(`/search?query=${l}${c && c.key && `&type=${c == null ? void 0 : c.key}`}`);
|
|
1503
|
-
}, children: /* @__PURE__ */ r.jsxs(Nt, { className:
|
|
1504
|
-
/* @__PURE__ */ r.jsx(Nt.Text, { className: w("p-1 rounded",
|
|
1505
|
-
/* @__PURE__ */ r.jsx(ye.Control, { ref: p, placeholder: s.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input",
|
|
1514
|
+
}, children: /* @__PURE__ */ r.jsxs(Nt, { className: Ye.inputGroup, children: [
|
|
1515
|
+
/* @__PURE__ */ r.jsx(Nt.Text, { className: w("p-1 rounded", Ye.inputGroupText, Ye.left), children: /* @__PURE__ */ r.jsx(hi, { searchTypes: e, selectedType: c, setSelectedType: i }) }),
|
|
1516
|
+
/* @__PURE__ */ r.jsx(ye.Control, { ref: p, placeholder: s.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", Ye.input), value: l, onChange: (j) => {
|
|
1506
1517
|
var f;
|
|
1507
1518
|
return u(((f = j.target) == null ? void 0 : f.value) ?? "");
|
|
1508
1519
|
}, onFocus: () => v.length > 0 && g(!0) }),
|
|
1509
|
-
/* @__PURE__ */ r.jsx(Nt.Text, { className: w("p-0 rounded",
|
|
1520
|
+
/* @__PURE__ */ r.jsx(Nt.Text, { className: w("p-0 rounded", Ye.inputGroupText, Ye.right), children: /* @__PURE__ */ r.jsx("button", { type: "submit", className: w("text-primary", Ye.submitButton), children: /* @__PURE__ */ r.jsx(os, {}) }) }),
|
|
1510
1521
|
/* @__PURE__ */ r.jsx(wi, { query: d, searchTypes: e, show: h, onCancel: () => g(!1), groups: v, isLoading: x })
|
|
1511
1522
|
] }) });
|
|
1512
|
-
}, $i = "_card_19733_1",
|
|
1523
|
+
}, $i = "_card_19733_1", Ei = "_header_19733_6", Fi = "_header-content_19733_13", Oi = "_title_19733_19", Ti = "_collapse-icon_19733_22", Li = "_collapsed_19733_27", Ri = "_content_19733_30", Ke = {
|
|
1513
1524
|
card: $i,
|
|
1514
|
-
header:
|
|
1525
|
+
header: Ei,
|
|
1515
1526
|
"header-content": "_header-content_19733_13",
|
|
1516
|
-
headerContent:
|
|
1517
|
-
title:
|
|
1527
|
+
headerContent: Fi,
|
|
1528
|
+
title: Oi,
|
|
1518
1529
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
1519
1530
|
collapseIcon: Ti,
|
|
1520
1531
|
collapsed: Li,
|
|
1521
1532
|
content: Ri
|
|
1522
1533
|
}, Ai = ({ title: e, headerContent: t, children: n, className: a, headerClassName: s, contentClassName: o, dontRenderIfNoChildren: i, ...c }) => {
|
|
1523
|
-
const l = c.collapsible ? c.controlled ? !1 : c.defaultOpen ?? !1 : !0, [u, d] =
|
|
1534
|
+
const l = c.collapsible ? c.controlled ? !1 : c.defaultOpen ?? !1 : !0, [u, d] = O(l), m = c.collapsible ? c.controlled ? c.isOpen : u : !0;
|
|
1524
1535
|
M(() => {
|
|
1525
1536
|
d(l);
|
|
1526
1537
|
}, [l]);
|
|
1527
1538
|
const x = ne(() => !n || !n.toString() || n.toString().split(",").filter((v) => v && v !== "false").length === 0, [n]);
|
|
1528
|
-
return i && x ? null : /* @__PURE__ */ r.jsxs("div", { className: w("luminus-card rounded shadow-sm",
|
|
1539
|
+
return i && x ? null : /* @__PURE__ */ r.jsxs("div", { className: w("luminus-card rounded shadow-sm", Ke.card, {
|
|
1529
1540
|
[a ?? ""]: a
|
|
1530
1541
|
}), children: [
|
|
1531
|
-
/* @__PURE__ */ r.jsxs("div", { role: c.collapsible ? "button" : void 0, className: w("header",
|
|
1542
|
+
/* @__PURE__ */ r.jsxs("div", { role: c.collapsible ? "button" : void 0, className: w("header", Ke.header, {
|
|
1532
1543
|
[s ?? ""]: s
|
|
1533
1544
|
}), onClick: () => {
|
|
1534
1545
|
c.collapsible && (c.controlled ? c.onToggle(!c.isOpen) : d(!u));
|
|
1535
1546
|
}, children: [
|
|
1536
|
-
/* @__PURE__ */ r.jsxs("div", { className: w("header-content",
|
|
1537
|
-
/* @__PURE__ */ r.jsx(J, { variant: "h6", className: w("text-primary",
|
|
1547
|
+
/* @__PURE__ */ r.jsxs("div", { className: w("header-content", Ke.headerContent), children: [
|
|
1548
|
+
/* @__PURE__ */ r.jsx(J, { variant: "h6", className: w("text-primary", Ke.title), children: e }),
|
|
1538
1549
|
t ?? null
|
|
1539
1550
|
] }),
|
|
1540
|
-
c.collapsible && /* @__PURE__ */ r.jsx(
|
|
1541
|
-
[
|
|
1551
|
+
c.collapsible && /* @__PURE__ */ r.jsx(pr, { className: w(Ke.collapseIcon, {
|
|
1552
|
+
[Ke.collapsed]: m
|
|
1542
1553
|
}) })
|
|
1543
1554
|
] }),
|
|
1544
|
-
/* @__PURE__ */ r.jsx(
|
|
1555
|
+
/* @__PURE__ */ r.jsx(Dr, { in: m, children: /* @__PURE__ */ r.jsx("div", { className: w("card-content border-top border-primary", Ke.content, {
|
|
1545
1556
|
[o ?? ""]: o
|
|
1546
1557
|
}), children: n }) })
|
|
1547
1558
|
] });
|
|
1548
1559
|
};
|
|
1549
|
-
var Mi = !!(typeof window < "u" && window.document && window.document.createElement),
|
|
1560
|
+
var Mi = !!(typeof window < "u" && window.document && window.document.createElement), Bi = /* @__PURE__ */ function() {
|
|
1550
1561
|
function e(t, n) {
|
|
1551
1562
|
for (var a = 0; a < n.length; a++) {
|
|
1552
1563
|
var s = n[a];
|
|
@@ -1557,7 +1568,7 @@ var Mi = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
1557
1568
|
return n && e(t.prototype, n), a && e(t, a), t;
|
|
1558
1569
|
};
|
|
1559
1570
|
}();
|
|
1560
|
-
function
|
|
1571
|
+
function Vi(e, t) {
|
|
1561
1572
|
if (!(e instanceof t))
|
|
1562
1573
|
throw new TypeError("Cannot call a class as a function");
|
|
1563
1574
|
}
|
|
@@ -1571,12 +1582,12 @@ function Hi(e, t) {
|
|
|
1571
1582
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1572
1583
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1573
1584
|
}
|
|
1574
|
-
var
|
|
1585
|
+
var oa = function(e) {
|
|
1575
1586
|
Hi(t, e);
|
|
1576
1587
|
function t() {
|
|
1577
|
-
return
|
|
1588
|
+
return Vi(this, t), Pi(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
|
|
1578
1589
|
}
|
|
1579
|
-
return
|
|
1590
|
+
return Bi(t, [{
|
|
1580
1591
|
key: "componentWillUnmount",
|
|
1581
1592
|
value: function() {
|
|
1582
1593
|
this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null;
|
|
@@ -1588,9 +1599,9 @@ var aa = function(e) {
|
|
|
1588
1599
|
}
|
|
1589
1600
|
}]), t;
|
|
1590
1601
|
}(Ce.Component);
|
|
1591
|
-
|
|
1592
|
-
children:
|
|
1593
|
-
node:
|
|
1602
|
+
oa.propTypes = {
|
|
1603
|
+
children: kt.node.isRequired,
|
|
1604
|
+
node: kt.any
|
|
1594
1605
|
};
|
|
1595
1606
|
var Wi = /* @__PURE__ */ function() {
|
|
1596
1607
|
function e(t, n) {
|
|
@@ -1617,7 +1628,7 @@ function Gi(e, t) {
|
|
|
1617
1628
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1618
1629
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1619
1630
|
}
|
|
1620
|
-
var
|
|
1631
|
+
var ia = function(e) {
|
|
1621
1632
|
Gi(t, e);
|
|
1622
1633
|
function t() {
|
|
1623
1634
|
return zi(this, t), Ui(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
|
|
@@ -1651,13 +1662,13 @@ var sa = function(e) {
|
|
|
1651
1662
|
}
|
|
1652
1663
|
}]), t;
|
|
1653
1664
|
}(Ce.Component);
|
|
1654
|
-
|
|
1655
|
-
children:
|
|
1656
|
-
node:
|
|
1665
|
+
ia.propTypes = {
|
|
1666
|
+
children: kt.node.isRequired,
|
|
1667
|
+
node: kt.any
|
|
1657
1668
|
};
|
|
1658
1669
|
var an = void 0;
|
|
1659
|
-
It.createPortal ? an =
|
|
1660
|
-
const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20", Qi = "_photo-actions_14acg_26", Zi = "_photo-container_14acg_31", Ji = "_photo_14acg_26", Xi = "_nav-button_14acg_41", el = "_photos-preview_14acg_49", tl = "_selected_14acg_62", nl = "_default-indicator_14acg_66",
|
|
1670
|
+
It.createPortal ? an = oa : an = ia;
|
|
1671
|
+
const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20", Qi = "_photo-actions_14acg_26", Zi = "_photo-container_14acg_31", Ji = "_photo_14acg_26", Xi = "_nav-button_14acg_41", el = "_photos-preview_14acg_49", tl = "_selected_14acg_62", nl = "_default-indicator_14acg_66", Se = {
|
|
1661
1672
|
lightbox: Yi,
|
|
1662
1673
|
show: Ki,
|
|
1663
1674
|
header: qi,
|
|
@@ -1673,19 +1684,19 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
1673
1684
|
selected: tl,
|
|
1674
1685
|
"default-indicator": "_default-indicator_14acg_66",
|
|
1675
1686
|
defaultIndicator: nl
|
|
1676
|
-
}, rl = "_backdrop_3huvf_1", al = "_show_3huvf_11",
|
|
1687
|
+
}, rl = "_backdrop_3huvf_1", al = "_show_3huvf_11", Wn = {
|
|
1677
1688
|
backdrop: rl,
|
|
1678
1689
|
show: al
|
|
1679
|
-
},
|
|
1680
|
-
[
|
|
1681
|
-
}), onClick: () => t && t() }),
|
|
1682
|
-
const x = te(null), [v, h] =
|
|
1690
|
+
}, la = ({ show: e, onClick: t }) => /* @__PURE__ */ r.jsx("div", { className: w("luminus-backdrop", Wn.backdrop, {
|
|
1691
|
+
[Wn.show]: e
|
|
1692
|
+
}), onClick: () => t && t() }), ca = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: s, ...o }) => /* @__PURE__ */ r.jsx("img", { ...o, alt: t ?? "", src: e ?? s }), sl = ({ show: e, onClose: t, photos: n, defaultIndex: a, uploadPhotosText: s, noPhotosText: o, onUploadPhotos: i, photoActions: c, baseUrl: l, customToken: u, placeholder: d, ImgComponent: m = ca }) => {
|
|
1693
|
+
const x = te(null), [v, h] = O(a), g = n.at(v), p = v > 0, y = v < n.length - 1;
|
|
1683
1694
|
M(() => {
|
|
1684
1695
|
e && h(a);
|
|
1685
1696
|
}, [a, e]), M(() => {
|
|
1686
1697
|
v >= n.length && h(n.length - 1);
|
|
1687
1698
|
}, [n, v]);
|
|
1688
|
-
const j =
|
|
1699
|
+
const j = k((f) => {
|
|
1689
1700
|
switch (f.key) {
|
|
1690
1701
|
case "ArrowLeft":
|
|
1691
1702
|
f.stopPropagation(), p && h((b) => b - 1);
|
|
@@ -1698,44 +1709,44 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
1698
1709
|
break;
|
|
1699
1710
|
}
|
|
1700
1711
|
}, [y, p, t]);
|
|
1701
|
-
return
|
|
1702
|
-
/* @__PURE__ */ r.jsx(
|
|
1703
|
-
/* @__PURE__ */ r.jsx("div", { ref: x, className: w("luminus-lightbox rounded shadow",
|
|
1704
|
-
[
|
|
1712
|
+
return kr(j), /* @__PURE__ */ r.jsxs(an, { children: [
|
|
1713
|
+
/* @__PURE__ */ r.jsx(la, { show: e, onClick: t }),
|
|
1714
|
+
/* @__PURE__ */ r.jsx("div", { ref: x, className: w("luminus-lightbox rounded shadow", Se.lightbox, {
|
|
1715
|
+
[Se.show]: e
|
|
1705
1716
|
}), children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1706
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1707
|
-
/* @__PURE__ */ r.jsxs("div", { className: w("rounded",
|
|
1708
|
-
i && /* @__PURE__ */ r.jsx(
|
|
1717
|
+
/* @__PURE__ */ r.jsxs("div", { className: Se.header, children: [
|
|
1718
|
+
/* @__PURE__ */ r.jsxs("div", { className: w("rounded", Se.photoActions), children: [
|
|
1719
|
+
i && /* @__PURE__ */ r.jsx(aa, { accept: ".jpg,.jpeg,.png", onUpload: (f) => {
|
|
1709
1720
|
f.length > 0 && i(Array.from(f));
|
|
1710
|
-
}, icon: /* @__PURE__ */ r.jsx(
|
|
1711
|
-
g && (c == null ? void 0 : c.map(({ label: f, onClick: b, ...N },
|
|
1712
|
-
|
|
1721
|
+
}, icon: /* @__PURE__ */ r.jsx(vr, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: s ?? null }),
|
|
1722
|
+
g && (c == null ? void 0 : c.map(({ label: f, onClick: b, ...N }, S) => /* @__PURE__ */ r.jsx(
|
|
1723
|
+
Te,
|
|
1713
1724
|
{
|
|
1714
1725
|
onClick: () => b(g.id),
|
|
1715
1726
|
...N,
|
|
1716
1727
|
children: f
|
|
1717
1728
|
},
|
|
1718
|
-
`action-${
|
|
1729
|
+
`action-${S}`
|
|
1719
1730
|
)))
|
|
1720
1731
|
] }),
|
|
1721
|
-
/* @__PURE__ */ r.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ r.jsx(
|
|
1732
|
+
/* @__PURE__ */ r.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ r.jsx(Fe, { style: { fontSize: "32px" } }) })
|
|
1722
1733
|
] }),
|
|
1723
1734
|
n.length === 0 && /* @__PURE__ */ r.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ r.jsx(J, { variant: "body", children: o ?? "No photos available" }) }),
|
|
1724
|
-
g && /* @__PURE__ */ r.jsxs("div", { className:
|
|
1725
|
-
/* @__PURE__ */ r.jsx("div", { role: p ? "button" : void 0, className: w("align-items-start",
|
|
1726
|
-
/* @__PURE__ */ r.jsx(m, { src: g.lgSrc, alt: g.alt, className: w("rounded",
|
|
1727
|
-
/* @__PURE__ */ r.jsx("div", { role: y ? "button" : void 0, className: w("align-items-end",
|
|
1735
|
+
g && /* @__PURE__ */ r.jsxs("div", { className: Se.photoContainer, children: [
|
|
1736
|
+
/* @__PURE__ */ r.jsx("div", { role: p ? "button" : void 0, className: w("align-items-start", Se.navButton), onClick: () => p && h((f) => f - 1), children: p && /* @__PURE__ */ r.jsx(cn, { style: { fontSize: "40px" } }) }),
|
|
1737
|
+
/* @__PURE__ */ r.jsx(m, { src: g.lgSrc, alt: g.alt, className: w("rounded", Se.photo), baseUrl: l, customToken: u, placeholder: d }),
|
|
1738
|
+
/* @__PURE__ */ r.jsx("div", { role: y ? "button" : void 0, className: w("align-items-end", Se.navButton), onClick: () => y && h((f) => f + 1), children: y && /* @__PURE__ */ r.jsx(dn, { style: { fontSize: "40px" } }) })
|
|
1728
1739
|
] }),
|
|
1729
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1730
|
-
/* @__PURE__ */ r.jsx(m, { role: b !== v ? "button" : void 0, src: f.smSrc, alt: f.alt, className: w("rounded",
|
|
1731
|
-
[
|
|
1740
|
+
/* @__PURE__ */ r.jsx("div", { className: Se.photosPreview, children: n.map((f, b) => /* @__PURE__ */ r.jsxs("div", { role: "button", onClick: () => h(b), className: "position-relative", children: [
|
|
1741
|
+
/* @__PURE__ */ r.jsx(m, { role: b !== v ? "button" : void 0, src: f.smSrc, alt: f.alt, className: w("rounded", Se.photo, {
|
|
1742
|
+
[Se.selected]: b === v
|
|
1732
1743
|
}), baseUrl: l, customToken: u, placeholder: d }, f.id),
|
|
1733
|
-
f.isDefault && /* @__PURE__ */ r.jsx("div", { className: w("text-primary",
|
|
1744
|
+
f.isDefault && /* @__PURE__ */ r.jsx("div", { className: w("text-primary", Se.defaultIndicator), children: /* @__PURE__ */ r.jsx(is, {}) })
|
|
1734
1745
|
] })) })
|
|
1735
1746
|
] }) })
|
|
1736
1747
|
] });
|
|
1737
|
-
}, ol = ({ photos: e, onUploadPhotos: t, uploadPhotosText: n, noPhotosText: a, photoActions: s, baseUrl: o, customToken: i, placeholder: c, ImgComponent: l =
|
|
1738
|
-
const [d, m] =
|
|
1748
|
+
}, ol = ({ photos: e, onUploadPhotos: t, uploadPhotosText: n, noPhotosText: a, photoActions: s, baseUrl: o, customToken: i, placeholder: c, ImgComponent: l = ca, noLightboxOnlyButtonOnEmpty: u = !1 }) => {
|
|
1749
|
+
const [d, m] = O(null), x = d !== null ? e[d] : null, [v, h] = O(!1);
|
|
1739
1750
|
return M(() => {
|
|
1740
1751
|
if (e.length === 0) {
|
|
1741
1752
|
m(null), h(!1);
|
|
@@ -1743,9 +1754,9 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
1743
1754
|
}
|
|
1744
1755
|
const g = e.findIndex((p) => p.isDefault);
|
|
1745
1756
|
m(g > -1 ? g : 0);
|
|
1746
|
-
}, [e]), !x && t && u ? /* @__PURE__ */ r.jsx(
|
|
1757
|
+
}, [e]), !x && t && u ? /* @__PURE__ */ r.jsx(aa, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
|
|
1747
1758
|
g.length > 0 && t(Array.from(g));
|
|
1748
|
-
}, icon: /* @__PURE__ */ r.jsx(
|
|
1759
|
+
}, icon: /* @__PURE__ */ r.jsx(vr, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1749
1760
|
x ? /* @__PURE__ */ r.jsxs("div", { role: "button", className: "w-100 position-relative", onClick: () => h(!0), children: [
|
|
1750
1761
|
/* @__PURE__ */ r.jsx(l, { src: x.smSrc, alt: x.alt, className: "rounded w-100", baseUrl: o, customToken: i, placeholder: c }),
|
|
1751
1762
|
e.length > 1 && /* @__PURE__ */ r.jsx("div", { className: "position-absolute rounded p-1", style: {
|
|
@@ -1754,15 +1765,15 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
1754
1765
|
color: "white",
|
|
1755
1766
|
textShadow: "-2px 2px 4px #696969",
|
|
1756
1767
|
background: "rgba(105,105,105,0.5)"
|
|
1757
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
1768
|
+
}, children: /* @__PURE__ */ r.jsx(ls, { fontSize: 24 }) })
|
|
1758
1769
|
] }) : /* @__PURE__ */ r.jsx(Lt, { text: n ?? "", placement: "left", children: /* @__PURE__ */ r.jsx("div", { role: "button", className: w("rounded p-3 d-flex justify-content-center"), onClick: () => h(!0), children: /* @__PURE__ */ r.jsx("img", { src: c, alt: "placeholder", className: "rounded w-25" }) }) }),
|
|
1759
1770
|
/* @__PURE__ */ r.jsx(sl, { show: v, onClose: () => h(!1), photos: e, defaultIndex: d ?? 0, uploadPhotosText: n, noPhotosText: a, onUploadPhotos: t, photoActions: s, baseUrl: o, customToken: i, placeholder: c, ImgComponent: l })
|
|
1760
1771
|
] });
|
|
1761
1772
|
}, ld = ({ children: e }) => {
|
|
1762
1773
|
var c, l, u;
|
|
1763
|
-
const { useMsal: t, msalScopes: n } = q(
|
|
1764
|
-
return t ? /* @__PURE__ */ r.jsx(
|
|
1765
|
-
},
|
|
1774
|
+
const { useMsal: t, msalScopes: n } = q(cs), { isAuthenticated: a } = ds(), { userLoginState: s } = q(Ft), o = s.state === us.LOGGING_IN, i = s.user && ((c = s.user) == null ? void 0 : c.permissions) && ((u = (l = s.user) == null ? void 0 : l.permissions) == null ? void 0 : u.length) > 0;
|
|
1775
|
+
return t ? /* @__PURE__ */ r.jsx(Es, { interactionType: $s.Redirect, authenticationRequest: { scopes: n }, children: o || !a() ? /* @__PURE__ */ r.jsx(In, {}) : s.user ? i ? /* @__PURE__ */ r.jsx(r.Fragment, { children: e }) : /* @__PURE__ */ r.jsx(wt, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ r.jsx(wt, { to: "/no-user-login", replace: !0 }) }) : o ? /* @__PURE__ */ r.jsx(In, {}) : !a() || !s.user ? /* @__PURE__ */ r.jsx(wt, { to: "/login", replace: !0 }) : i ? e : /* @__PURE__ */ r.jsx(wt, { to: "/user-not-permitted", replace: !0 });
|
|
1776
|
+
}, da = (e) => {
|
|
1766
1777
|
const { variant: t, children: n, className: a, size: s = "md", typographyVariant: o = s === "sm" ? "body2" : "body", ...i } = { ...e };
|
|
1767
1778
|
return /* @__PURE__ */ r.jsx(Qs, { variant: t, className: `text-center ${s === "sm" ? "p-1" : s === "md" ? "p-3" : "p-4"} bg-${t} bg-opacity-10 border-none ${a ?? ""}`, ...i, children: /* @__PURE__ */ r.jsx(J, { variant: o, children: n }) });
|
|
1768
1779
|
}, il = "_item_1lf6j_1", ll = "_level-success_1lf6j_4", cl = "_level-info_1lf6j_10", dl = "_level-warning_1lf6j_16", ul = "_level-danger_1lf6j_22", fl = "_type-icon_1lf6j_28", Gt = {
|
|
@@ -1778,7 +1789,7 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
1778
1789
|
"type-icon": "_type-icon_1lf6j_28",
|
|
1779
1790
|
typeIcon: fl
|
|
1780
1791
|
}, ml = ({ level: e, children: t, customIcon: n, noIcon: a }) => {
|
|
1781
|
-
const { ProjectIconComponent: s } = q(ge), o =
|
|
1792
|
+
const { ProjectIconComponent: s } = q(ge), o = k(() => {
|
|
1782
1793
|
switch (e) {
|
|
1783
1794
|
case "info":
|
|
1784
1795
|
return /* @__PURE__ */ r.jsx(s, { icon: "info" });
|
|
@@ -1805,14 +1816,14 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
1805
1816
|
}, children: /* @__PURE__ */ r.jsxs(J, { variant: "caption", className: "w-100 text-end", children: [
|
|
1806
1817
|
"verze ",
|
|
1807
1818
|
e
|
|
1808
|
-
] }) }), hl = "_submit-container_a9slg_1", gl = "_spacer_a9slg_14",
|
|
1819
|
+
] }) }), hl = "_submit-container_a9slg_1", gl = "_spacer_a9slg_14", zn = {
|
|
1809
1820
|
"submit-container": "_submit-container_a9slg_1",
|
|
1810
1821
|
submitContainer: hl,
|
|
1811
1822
|
spacer: gl
|
|
1812
1823
|
}, pl = ({ children: e, noSpacer: t = !1 }) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1813
|
-
!t && /* @__PURE__ */ r.jsx("div", { className:
|
|
1814
|
-
/* @__PURE__ */ r.jsx("div", { className: w("luminus-floating-action-container shadow",
|
|
1815
|
-
] }), xl = "_timeline_g1754_1", vl = "_step-container_g1754_1", jl = "_step-date_g1754_1", yl = "_step-content_g1754_4", bl = "_content-header_g1754_8", wl = "_content-text_g1754_11", _l = "_step-icon_g1754_14",
|
|
1824
|
+
!t && /* @__PURE__ */ r.jsx("div", { className: zn.spacer }),
|
|
1825
|
+
/* @__PURE__ */ r.jsx("div", { className: w("luminus-floating-action-container shadow", zn.submitContainer), children: e })
|
|
1826
|
+
] }), xl = "_timeline_g1754_1", vl = "_step-container_g1754_1", jl = "_step-date_g1754_1", yl = "_step-content_g1754_4", bl = "_content-header_g1754_8", wl = "_content-text_g1754_11", _l = "_step-icon_g1754_14", qe = {
|
|
1816
1827
|
timeline: xl,
|
|
1817
1828
|
"step-container": "_step-container_g1754_1",
|
|
1818
1829
|
stepContainer: vl,
|
|
@@ -1826,21 +1837,21 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
1826
1837
|
contentText: wl,
|
|
1827
1838
|
"step-icon": "_step-icon_g1754_14",
|
|
1828
1839
|
stepIcon: _l
|
|
1829
|
-
}, dd = ({ steps: e }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1830
|
-
/* @__PURE__ */ r.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ r.jsxs(J, { variant: "caption", className: w("h-100 d-flex flex-column align-items-end justify-content-center gap-0",
|
|
1840
|
+
}, dd = ({ steps: e }) => /* @__PURE__ */ r.jsx("div", { className: qe.timeline, children: e.sort((t, n) => Hs(t.date ?? /* @__PURE__ */ new Date(), n.date ?? /* @__PURE__ */ new Date())).map((t, n) => /* @__PURE__ */ r.jsxs("div", { className: w("row g-0 gx-3", qe.stepContainer), children: [
|
|
1841
|
+
/* @__PURE__ */ r.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ r.jsxs(J, { variant: "caption", className: w("h-100 d-flex flex-column align-items-end justify-content-center gap-0", qe.stepDate), children: [
|
|
1831
1842
|
/* @__PURE__ */ r.jsx("div", { children: xt(t.date, "dd.MM.yyyy") }),
|
|
1832
1843
|
/* @__PURE__ */ r.jsx("div", { children: xt(t.date, "HH:mm") })
|
|
1833
1844
|
] }) }),
|
|
1834
|
-
/* @__PURE__ */ r.jsx("div", { className: "col-9", children: /* @__PURE__ */ r.jsxs("div", { className: w("h-100 d-flex flex-column gap-1 border-start border-2 p-3",
|
|
1835
|
-
/* @__PURE__ */ r.jsxs("div", { className: w("d-flex gap-2 align-items-center",
|
|
1836
|
-
t.person && /* @__PURE__ */ r.jsx(
|
|
1845
|
+
/* @__PURE__ */ r.jsx("div", { className: "col-9", children: /* @__PURE__ */ r.jsxs("div", { className: w("h-100 d-flex flex-column gap-1 border-start border-2 p-3", qe.stepContent), children: [
|
|
1846
|
+
/* @__PURE__ */ r.jsxs("div", { className: w("d-flex gap-2 align-items-center", qe.contentHeader), children: [
|
|
1847
|
+
t.person && /* @__PURE__ */ r.jsx(jr, { name: t.person.name ?? "", size: 22, fontSize: 12 }),
|
|
1837
1848
|
typeof t.title == "string" ? /* @__PURE__ */ r.jsx(J, { variant: "body", className: "fw-bold", children: t.title }) : t.title
|
|
1838
1849
|
] }),
|
|
1839
|
-
t.text && /* @__PURE__ */ r.jsx(J, { variant: "body2", className:
|
|
1840
|
-
/* @__PURE__ */ r.jsx("div", { className: w("text-primary",
|
|
1850
|
+
t.text && /* @__PURE__ */ r.jsx(J, { variant: "body2", className: qe.contentText, children: t.text }),
|
|
1851
|
+
/* @__PURE__ */ r.jsx("div", { className: w("text-primary", qe.stepIcon), children: t.icon ?? /* @__PURE__ */ r.jsx(fs, {}) })
|
|
1841
1852
|
] }) })
|
|
1842
1853
|
] }, n)) }), Nl = (e, t, n, a = !0) => {
|
|
1843
|
-
const s =
|
|
1854
|
+
const s = Xe({ silent: a, differentBaseUrl: t, customToken: n }), [o, i] = O(!1), [c, l] = O(null), u = k(async (d) => {
|
|
1844
1855
|
i(!0), l(null), s.get(e, {
|
|
1845
1856
|
signal: d,
|
|
1846
1857
|
responseType: "blob"
|
|
@@ -1856,20 +1867,20 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
1856
1867
|
d.abort();
|
|
1857
1868
|
};
|
|
1858
1869
|
}, [u]), { data: c, setData: l, reloadData: u, isLoading: o };
|
|
1859
|
-
},
|
|
1860
|
-
const { data: i } = Nl(e, n, a), [c, l] =
|
|
1870
|
+
}, Un = ({ src: e, alt: t, baseUrl: n, customToken: a, placeholder: s, ...o }) => {
|
|
1871
|
+
const { data: i } = Nl(e, n, a), [c, l] = O(null);
|
|
1861
1872
|
return M(() => {
|
|
1862
1873
|
let u = null;
|
|
1863
1874
|
return i !== null ? (u = URL.createObjectURL(i), l(u)) : l(null), () => {
|
|
1864
1875
|
u !== null && URL.revokeObjectURL(u);
|
|
1865
1876
|
};
|
|
1866
1877
|
}, [i]), c === null && !s ? null : /* @__PURE__ */ r.jsx("img", { ...o, alt: t ?? "", src: c ?? s });
|
|
1867
|
-
},
|
|
1878
|
+
}, ua = ({ currentSelection: e, selectedItemNavigateTo: t, children: n }) => {
|
|
1868
1879
|
if (!e || !e.id || !t)
|
|
1869
1880
|
return /* @__PURE__ */ r.jsx("div", { className: "luminus-input-container position-relative w-100", children: n });
|
|
1870
1881
|
const a = t(e);
|
|
1871
|
-
return /* @__PURE__ */ r.jsx(
|
|
1872
|
-
},
|
|
1882
|
+
return /* @__PURE__ */ r.jsx(Je, { to: a, className: "luminus-input-container position-relative w-100 text-decoration-none", children: n });
|
|
1883
|
+
}, fa = ({ InputContainer: e = et, label: t, value: n, onChange: a, hidden: s, disabled: o, className: i, type: c, withoutLabel: l, indeterminate: u }) => {
|
|
1873
1884
|
const d = te(null);
|
|
1874
1885
|
return M(() => {
|
|
1875
1886
|
d.current && (d.current.indeterminate = u ?? !1);
|
|
@@ -1877,38 +1888,38 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
1877
1888
|
var x;
|
|
1878
1889
|
a && a(((x = m.target) == null ? void 0 : x.checked) ?? !1);
|
|
1879
1890
|
}, className: i ?? "", hidden: s ?? !1, disabled: o ?? !1 }) });
|
|
1880
|
-
},
|
|
1881
|
-
const y = t === "number", j =
|
|
1891
|
+
}, st = ({ InputContainer: e = et, type: t, value: n, onChange: a, debounceMs: s, label: o, withoutLabel: i, placeholder: c, size: l, hidden: u, disabled: d, showClearIcon: m, clearValue: x, list: v, className: h, step: g, noSelectOnFocus: p }) => {
|
|
1892
|
+
const y = t === "number", j = k(() => {
|
|
1882
1893
|
if (!a)
|
|
1883
1894
|
return;
|
|
1884
|
-
const
|
|
1885
|
-
a(y ?
|
|
1886
|
-
}, [x, y, a]), f = te(null), [b, N] =
|
|
1887
|
-
const _ =
|
|
1895
|
+
const F = x ?? null;
|
|
1896
|
+
a(y ? F ? Number(F) : null : (F == null ? void 0 : F.toString()) ?? "");
|
|
1897
|
+
}, [x, y, a]), f = te(null), [b, N] = O((n == null ? void 0 : n.toString()) ?? ""), S = k((F) => {
|
|
1898
|
+
const _ = F;
|
|
1888
1899
|
a && (y && a(_ == null || _ === "" ? null : Number(_)), a(_ || null));
|
|
1889
|
-
}, [y, a]), I =
|
|
1900
|
+
}, [y, a]), I = k((F) => {
|
|
1890
1901
|
var W;
|
|
1891
|
-
const _ = (W =
|
|
1902
|
+
const _ = (W = F.target) == null ? void 0 : W.value;
|
|
1892
1903
|
if (!s) {
|
|
1893
|
-
|
|
1904
|
+
S(_);
|
|
1894
1905
|
return;
|
|
1895
1906
|
}
|
|
1896
1907
|
N(_), f.current !== null && window.clearTimeout(f.current), f.current = window.setTimeout(() => {
|
|
1897
|
-
|
|
1908
|
+
S(_);
|
|
1898
1909
|
}, s);
|
|
1899
|
-
}, [s,
|
|
1910
|
+
}, [s, S]);
|
|
1900
1911
|
M(() => {
|
|
1901
1912
|
N(n === null ? "" : n.toString());
|
|
1902
1913
|
}, [n]);
|
|
1903
|
-
const [D, C] =
|
|
1914
|
+
const [D, C] = O(!1), L = ms(t, n ? n.toString() ?? null : null, D);
|
|
1904
1915
|
return /* @__PURE__ */ r.jsxs(e, { withoutLabel: i, label: o ?? "", hidden: u, className: h, children: [
|
|
1905
|
-
/* @__PURE__ */ r.jsx(ye.Control, { type: L, placeholder: c ?? o, size: l, value: s ? b : (n == null ? void 0 : n.toString()) ?? "", onChange: I, className: h ?? "", hidden: u, disabled: d ?? !1, list: v, onFocus: (
|
|
1906
|
-
C(!0), !p &&
|
|
1916
|
+
/* @__PURE__ */ r.jsx(ye.Control, { type: L, placeholder: c ?? o, size: l, value: s ? b : (n == null ? void 0 : n.toString()) ?? "", onChange: I, className: h ?? "", hidden: u, disabled: d ?? !1, list: v, onFocus: (F) => {
|
|
1917
|
+
C(!0), !p && F.target.select();
|
|
1907
1918
|
}, onBlur: () => C(!1), step: g }),
|
|
1908
|
-
m && n !== null && a && !d && /* @__PURE__ */ r.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ r.jsx(
|
|
1919
|
+
m && n !== null && a && !d && /* @__PURE__ */ r.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ r.jsx(Fe, {}) }) })
|
|
1909
1920
|
] });
|
|
1910
1921
|
}, Dt = ({
|
|
1911
|
-
InputContainer: e =
|
|
1922
|
+
InputContainer: e = et,
|
|
1912
1923
|
value: t,
|
|
1913
1924
|
options: n,
|
|
1914
1925
|
onChange: a,
|
|
@@ -1925,7 +1936,7 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
1925
1936
|
noEmptyOption: h
|
|
1926
1937
|
// it will still add the empty option if there is no value provided or value is empty string or null
|
|
1927
1938
|
}) => {
|
|
1928
|
-
const g =
|
|
1939
|
+
const g = k(() => {
|
|
1929
1940
|
if (!a)
|
|
1930
1941
|
return;
|
|
1931
1942
|
const p = m ?? null;
|
|
@@ -1942,60 +1953,60 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
1942
1953
|
h && !(t == null || t === "") ? void 0 : /* @__PURE__ */ r.jsx("option", { value: "" }),
|
|
1943
1954
|
n == null ? void 0 : n.sort((p, y) => x ? 0 : (p.name ?? "").localeCompare(y.name ?? "")).map((p) => /* @__PURE__ */ r.jsx("option", { value: p.id ?? "", children: p.name }, p.id))
|
|
1944
1955
|
] }),
|
|
1945
|
-
d && t && a && !u && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ r.jsx(
|
|
1956
|
+
d && t && a && !u && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ r.jsx(Fe, {}) }) })
|
|
1946
1957
|
] });
|
|
1947
|
-
}, ud = ({ InputContainer: e =
|
|
1958
|
+
}, ud = ({ InputContainer: e = et, items: t, defaultSelection: n, selectedItemNavigateTo: a, onSearchQueryChange: s, texts: o, isLoading: i, isNumber: c, onSelect: l, label: u, withoutLabel: d, size: m, dropdownItemsNameWidth: x, additionalColumns: v, hidden: h, disabled: g, displayIdAsName: p, CustomOnChangeComponent: y, className: j }) => {
|
|
1948
1959
|
var _, W;
|
|
1949
|
-
const [f, b] =
|
|
1960
|
+
const [f, b] = O(n), [N, S] = O(!1);
|
|
1950
1961
|
M(() => {
|
|
1951
1962
|
b((n == null ? void 0 : n.id) == null && (n == null ? void 0 : n.name) == null ? null : { id: n.id, name: n.name });
|
|
1952
1963
|
}, [n == null ? void 0 : n.id, n == null ? void 0 : n.name]);
|
|
1953
|
-
const I =
|
|
1954
|
-
b(
|
|
1955
|
-
}, []), D =
|
|
1956
|
-
|
|
1964
|
+
const I = k((B) => {
|
|
1965
|
+
b(B);
|
|
1966
|
+
}, []), D = k((B) => {
|
|
1967
|
+
S(!1), I(B);
|
|
1957
1968
|
}, [I]);
|
|
1958
1969
|
M(() => {
|
|
1959
1970
|
l && l(f);
|
|
1960
1971
|
}, [f, l]);
|
|
1961
|
-
const C = te(null), L = a !== void 0,
|
|
1972
|
+
const C = te(null), L = a !== void 0, F = L && f !== null;
|
|
1962
1973
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(e, { withoutLabel: d, label: u ?? "", hidden: h, inputContainerClassName: w({ "luminus-dropdown-select-open": N }), className: j, children: [
|
|
1963
|
-
/* @__PURE__ */ r.jsxs(
|
|
1974
|
+
/* @__PURE__ */ r.jsxs(ua, { currentSelection: f, selectedItemNavigateTo: a, children: [
|
|
1964
1975
|
p && (f == null ? void 0 : f.name) && /* @__PURE__ */ r.jsx(J, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: f.name }),
|
|
1965
|
-
/* @__PURE__ */ r.jsxs(ye.Select, { ref: C, size: m, value: (f == null ? void 0 : f.id) ?? "", onChange: (
|
|
1966
|
-
id: c ? Number(
|
|
1976
|
+
/* @__PURE__ */ r.jsxs(ye.Select, { ref: C, size: m, value: (f == null ? void 0 : f.id) ?? "", onChange: (B) => b({
|
|
1977
|
+
id: c ? Number(B.target.value) ?? null : B.target.value,
|
|
1967
1978
|
name: ""
|
|
1968
|
-
}), onMouseDown: (
|
|
1969
|
-
|
|
1979
|
+
}), onMouseDown: (B) => {
|
|
1980
|
+
B.currentTarget.focus(), B.preventDefault();
|
|
1970
1981
|
}, onClick: () => {
|
|
1971
|
-
!L && !g &&
|
|
1982
|
+
!L && !g && S(!0);
|
|
1972
1983
|
}, className: w("w-100", {
|
|
1973
1984
|
"luminus-dropdown-picker-disabled": g,
|
|
1974
|
-
"luminus-dropdown-picker-link":
|
|
1985
|
+
"luminus-dropdown-picker-link": F
|
|
1975
1986
|
}), hidden: h, children: [
|
|
1976
1987
|
/* @__PURE__ */ r.jsx("option", { value: "" }),
|
|
1977
1988
|
n && /* @__PURE__ */ r.jsx("option", { value: n.id ?? void 0, children: n.name && ((_ = n.name) == null ? void 0 : _.length) > 0 ? n.name : n.id }),
|
|
1978
1989
|
f && /* @__PURE__ */ r.jsx("option", { value: f.id ?? void 0, children: f.name && ((W = f.name) == null ? void 0 : W.length) > 0 ? f.name : f.id })
|
|
1979
1990
|
] }),
|
|
1980
1991
|
y || !g && L ? /* @__PURE__ */ r.jsxs("div", { className: "custom-picker-button", children: [
|
|
1981
|
-
!y && !g && L && /* @__PURE__ */ r.jsx(re, { size: "sm", color: "secondary", onClick: (
|
|
1982
|
-
|
|
1983
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
1992
|
+
!y && !g && L && /* @__PURE__ */ r.jsx(re, { size: "sm", color: "secondary", onClick: (B) => {
|
|
1993
|
+
B.preventDefault(), B.stopPropagation(), S(!0);
|
|
1994
|
+
}, children: /* @__PURE__ */ r.jsx(yr, {}) }),
|
|
1984
1995
|
y ?? null
|
|
1985
1996
|
] }) : null
|
|
1986
1997
|
] }),
|
|
1987
|
-
C.current && /* @__PURE__ */ r.jsx(jn, { show: N, onCancel: () =>
|
|
1998
|
+
C.current && /* @__PURE__ */ r.jsx(jn, { show: N, onCancel: () => S(!1), items: t, currentSelection: f, onSelectionChange: D, onSearchQueryChange: s, texts: o, itemsNameWidth: x, additionalColumns: v, isLoading: i, disabled: g, inputRef: C })
|
|
1988
1999
|
] }) });
|
|
1989
|
-
}, fd = ({ InputContainer: e =
|
|
1990
|
-
const v =
|
|
2000
|
+
}, fd = ({ InputContainer: e = et, value: t, onChange: n, label: a, size: s, showClearIcon: o, clearValue: i, hidden: c, disabled: l, rows: u, withoutLabel: d, debounceMs: m, className: x }) => {
|
|
2001
|
+
const v = k(() => {
|
|
1991
2002
|
if (!n)
|
|
1992
2003
|
return;
|
|
1993
2004
|
const f = i ?? null;
|
|
1994
2005
|
n((f == null ? void 0 : f.toString()) ?? "");
|
|
1995
|
-
}, [i, n]), h = te(null), [g, p] =
|
|
2006
|
+
}, [i, n]), h = te(null), [g, p] = O((t == null ? void 0 : t.toString()) ?? ""), y = k((f) => {
|
|
1996
2007
|
const b = f;
|
|
1997
2008
|
n && n(b || null);
|
|
1998
|
-
}, [n]), j =
|
|
2009
|
+
}, [n]), j = k((f) => {
|
|
1999
2010
|
var N;
|
|
2000
2011
|
const b = (N = f.target) == null ? void 0 : N.value;
|
|
2001
2012
|
if (!m) {
|
|
@@ -2010,18 +2021,18 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
2010
2021
|
p(t === null ? "" : t.toString());
|
|
2011
2022
|
}, [t]), /* @__PURE__ */ r.jsxs(e, { label: a ?? "", hidden: c, withoutLabel: d, className: x, isForTextAreaInput: !0, children: [
|
|
2012
2023
|
/* @__PURE__ */ r.jsx(ye.Control, { as: "textarea", size: s, value: m ? g : t ?? "", onChange: j, hidden: c, disabled: l, rows: u ?? 2, className: "w-100" }),
|
|
2013
|
-
o && t && n && !l && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: v, children: /* @__PURE__ */ r.jsx(
|
|
2024
|
+
o && t && n && !l && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: v, children: /* @__PURE__ */ r.jsx(Fe, {}) }) })
|
|
2014
2025
|
] });
|
|
2015
|
-
}, md = ({ InputContainer: e =
|
|
2016
|
-
const y =
|
|
2026
|
+
}, md = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, label: s, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: x, step: v, stepperStep: h = 1, min: g, max: p }) => {
|
|
2027
|
+
const y = k(() => {
|
|
2017
2028
|
if (!n)
|
|
2018
2029
|
return;
|
|
2019
2030
|
const I = m ?? null;
|
|
2020
2031
|
n(I ? Number(I) : null);
|
|
2021
|
-
}, [m, n]), j = te(null), [f, b] =
|
|
2032
|
+
}, [m, n]), j = te(null), [f, b] = O((t == null ? void 0 : t.toString()) ?? ""), N = k((I) => {
|
|
2022
2033
|
const D = I;
|
|
2023
2034
|
n && n(D == null || D === "" ? null : ht(Number(D), g, p));
|
|
2024
|
-
}, [p, g, n]),
|
|
2035
|
+
}, [p, g, n]), S = k((I) => {
|
|
2025
2036
|
var C;
|
|
2026
2037
|
const D = (C = I.target) == null ? void 0 : C.value;
|
|
2027
2038
|
if (!a) {
|
|
@@ -2035,17 +2046,17 @@ const Yi = "_lightbox_14acg_1", Ki = "_show_14acg_16", qi = "_header_14acg_20",
|
|
|
2035
2046
|
return M(() => {
|
|
2036
2047
|
b(t === null ? "" : ht(t, g, p).toString());
|
|
2037
2048
|
}, [p, g, t]), /* @__PURE__ */ r.jsx(e, { withoutLabel: o, label: s ?? "", hidden: l, className: x, children: /* @__PURE__ */ r.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
2038
|
-
/* @__PURE__ */ r.jsx(ye.Control, { type: "number", placeholder: i ?? s, size: c, value: a ? f : t ?? "", onChange:
|
|
2049
|
+
/* @__PURE__ */ r.jsx(ye.Control, { type: "number", placeholder: i ?? s, size: c, value: a ? f : t ?? "", onChange: S, className: `luminus-numeric-stepper ${x ?? ""}`, hidden: l, disabled: u ?? !1, step: v }),
|
|
2039
2050
|
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (I) => {
|
|
2040
2051
|
I.preventDefault(), I.stopPropagation(), N(((t ?? 0) - h).toString());
|
|
2041
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
2052
|
+
}, children: /* @__PURE__ */ r.jsx(br, {}) }) }),
|
|
2042
2053
|
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (I) => {
|
|
2043
2054
|
I.preventDefault(), I.stopPropagation(), N(((t ?? 0) + h).toString());
|
|
2044
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
2045
|
-
d && t && n && !u && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ r.jsx(
|
|
2055
|
+
}, children: /* @__PURE__ */ r.jsx(wr, {}) }) }),
|
|
2056
|
+
d && t && n && !u && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ r.jsx(Fe, {}) }) })
|
|
2046
2057
|
] }) });
|
|
2047
2058
|
};
|
|
2048
|
-
function
|
|
2059
|
+
function ma(e, t) {
|
|
2049
2060
|
var n = {};
|
|
2050
2061
|
for (var a in e)
|
|
2051
2062
|
Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
|
|
@@ -2058,7 +2069,7 @@ var jt;
|
|
|
2058
2069
|
(function(e) {
|
|
2059
2070
|
e.event = "event", e.props = "prop";
|
|
2060
2071
|
})(jt || (jt = {}));
|
|
2061
|
-
function
|
|
2072
|
+
function Be() {
|
|
2062
2073
|
}
|
|
2063
2074
|
function Cl(e) {
|
|
2064
2075
|
var t, n = void 0;
|
|
@@ -2072,19 +2083,19 @@ function Cl(e) {
|
|
|
2072
2083
|
function yt(e) {
|
|
2073
2084
|
return !!(e || "").match(/\d/);
|
|
2074
2085
|
}
|
|
2075
|
-
function
|
|
2086
|
+
function ot(e) {
|
|
2076
2087
|
return e == null;
|
|
2077
2088
|
}
|
|
2078
|
-
function
|
|
2089
|
+
function kl(e) {
|
|
2079
2090
|
return typeof e == "number" && isNaN(e);
|
|
2080
2091
|
}
|
|
2081
|
-
function
|
|
2082
|
-
return
|
|
2092
|
+
function ha(e) {
|
|
2093
|
+
return ot(e) || kl(e) || typeof e == "number" && !isFinite(e);
|
|
2083
2094
|
}
|
|
2084
|
-
function
|
|
2095
|
+
function ga(e) {
|
|
2085
2096
|
return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
2086
2097
|
}
|
|
2087
|
-
function
|
|
2098
|
+
function Sl(e) {
|
|
2088
2099
|
switch (e) {
|
|
2089
2100
|
case "lakh":
|
|
2090
2101
|
return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
|
|
@@ -2096,7 +2107,7 @@ function kl(e) {
|
|
|
2096
2107
|
}
|
|
2097
2108
|
}
|
|
2098
2109
|
function Il(e, t, n) {
|
|
2099
|
-
var a =
|
|
2110
|
+
var a = Sl(n), s = e.search(/[1-9]/);
|
|
2100
2111
|
return s = s === -1 ? e.length : s, e.substring(0, s) + e.substring(s, e.length).replace(a, "$1" + t);
|
|
2101
2112
|
}
|
|
2102
2113
|
function Dl(e) {
|
|
@@ -2128,15 +2139,15 @@ function $l(e) {
|
|
|
2128
2139
|
var n = e.split("."), a = n[0].replace(/^0+/, "") || "0", s = n[1] || "";
|
|
2129
2140
|
return (t ? "-" : "") + a + (s ? "." + s : "");
|
|
2130
2141
|
}
|
|
2131
|
-
function
|
|
2142
|
+
function pa(e, t, n) {
|
|
2132
2143
|
for (var a = "", s = n ? "0" : "", o = 0; o <= t - 1; o++)
|
|
2133
2144
|
a += e[o] || s;
|
|
2134
2145
|
return a;
|
|
2135
2146
|
}
|
|
2136
|
-
function
|
|
2147
|
+
function Gn(e, t) {
|
|
2137
2148
|
return Array(t + 1).join(e);
|
|
2138
2149
|
}
|
|
2139
|
-
function
|
|
2150
|
+
function xa(e) {
|
|
2140
2151
|
var t = e + "", n = t[0] === "-" ? "-" : "";
|
|
2141
2152
|
n && (t = t.substring(1));
|
|
2142
2153
|
var a = t.split(/[eE]/g), s = a[0], o = a[1];
|
|
@@ -2144,19 +2155,19 @@ function ga(e) {
|
|
|
2144
2155
|
return n + s;
|
|
2145
2156
|
s = s.replace(".", "");
|
|
2146
2157
|
var i = 1 + o, c = s.length;
|
|
2147
|
-
return i < 0 ? s = "0." +
|
|
2158
|
+
return i < 0 ? s = "0." + Gn("0", Math.abs(i)) + s : i >= c ? s = s + Gn("0", i - c) : s = (s.substring(0, i) || "0") + "." + s.substring(i), n + s;
|
|
2148
2159
|
}
|
|
2149
|
-
function
|
|
2160
|
+
function Yn(e, t, n) {
|
|
2150
2161
|
if (["", "-"].indexOf(e) !== -1)
|
|
2151
2162
|
return e;
|
|
2152
2163
|
var a = (e.indexOf(".") !== -1 || n) && t, s = yn(e), o = s.beforeDecimal, i = s.afterDecimal, c = s.hasNegation, l = parseFloat("0." + (i || "0")), u = i.length <= t ? "0." + i : l.toFixed(t), d = u.split("."), m = o;
|
|
2153
2164
|
o && Number(d[0]) && (m = o.split("").reverse().reduce(function(g, p, y) {
|
|
2154
2165
|
return g.length > y ? (Number(g[0]) + Number(p)).toString() + g.substring(1, g.length) : p + g;
|
|
2155
2166
|
}, d[0]));
|
|
2156
|
-
var x =
|
|
2167
|
+
var x = pa(d[1] || "", t, n), v = c ? "-" : "", h = a ? "." : "";
|
|
2157
2168
|
return "" + v + m + h + x;
|
|
2158
2169
|
}
|
|
2159
|
-
function
|
|
2170
|
+
function Qe(e, t) {
|
|
2160
2171
|
if (e.value = e.value, e !== null) {
|
|
2161
2172
|
if (e.createTextRange) {
|
|
2162
2173
|
var n = e.createTextRange();
|
|
@@ -2165,7 +2176,7 @@ function qe(e, t) {
|
|
|
2165
2176
|
return e.selectionStart || e.selectionStart === 0 ? (e.focus(), e.setSelectionRange(t, t), !0) : (e.focus(), !1);
|
|
2166
2177
|
}
|
|
2167
2178
|
}
|
|
2168
|
-
var
|
|
2179
|
+
var va = Cl(function(e, t) {
|
|
2169
2180
|
for (var n = 0, a = 0, s = e.length, o = t.length; e[n] === t[n] && n < s; )
|
|
2170
2181
|
n++;
|
|
2171
2182
|
for (; e[s - 1 - a] === t[o - 1 - a] && o - a > n && s - a > n; )
|
|
@@ -2174,20 +2185,20 @@ var pa = Cl(function(e, t) {
|
|
|
2174
2185
|
from: { start: n, end: s - a },
|
|
2175
2186
|
to: { start: n, end: o - a }
|
|
2176
2187
|
};
|
|
2177
|
-
}),
|
|
2188
|
+
}), El = function(e, t) {
|
|
2178
2189
|
var n = Math.min(e.selectionStart, t);
|
|
2179
2190
|
return {
|
|
2180
2191
|
from: { start: n, end: e.selectionEnd },
|
|
2181
2192
|
to: { start: n, end: t }
|
|
2182
2193
|
};
|
|
2183
2194
|
};
|
|
2184
|
-
function
|
|
2195
|
+
function Fl(e, t, n) {
|
|
2185
2196
|
return Math.min(Math.max(e, t), n);
|
|
2186
2197
|
}
|
|
2187
2198
|
function Yt(e) {
|
|
2188
2199
|
return Math.max(e.selectionStart, e.selectionEnd);
|
|
2189
2200
|
}
|
|
2190
|
-
function
|
|
2201
|
+
function Ol() {
|
|
2191
2202
|
return typeof navigator < "u" && !(navigator.platform && /iPhone|iPod/.test(navigator.platform));
|
|
2192
2203
|
}
|
|
2193
2204
|
function Tl(e) {
|
|
@@ -2237,9 +2248,9 @@ function Rl(e, t, n, a, s, o, i) {
|
|
|
2237
2248
|
var f = y === -1 || x[y] === -1 ? 0 : x[y] + 1;
|
|
2238
2249
|
return f > j ? j : a - f < j - a ? f : j;
|
|
2239
2250
|
}
|
|
2240
|
-
function
|
|
2251
|
+
function Kn(e, t, n, a) {
|
|
2241
2252
|
var s = e.length;
|
|
2242
|
-
if (t =
|
|
2253
|
+
if (t = Fl(t, 0, s), a === "left") {
|
|
2243
2254
|
for (; t >= 0 && !n[t]; )
|
|
2244
2255
|
t--;
|
|
2245
2256
|
t === -1 && (t = n.indexOf(!0));
|
|
@@ -2257,20 +2268,20 @@ function Al(e) {
|
|
|
2257
2268
|
t[n] = !!(yt(e[n]) || yt(e[n - 1]));
|
|
2258
2269
|
return t;
|
|
2259
2270
|
}
|
|
2260
|
-
function
|
|
2261
|
-
o === void 0 && (o =
|
|
2271
|
+
function ja(e, t, n, a, s, o) {
|
|
2272
|
+
o === void 0 && (o = Be);
|
|
2262
2273
|
var i = Dl(function(h, g) {
|
|
2263
2274
|
var p, y;
|
|
2264
|
-
return
|
|
2265
|
-
}), c =
|
|
2266
|
-
return i(
|
|
2275
|
+
return ha(h) ? (y = "", p = "") : typeof h == "number" || g ? (y = typeof h == "number" ? xa(h) : h, p = a(y)) : (y = s(h, void 0), p = a(y)), { formattedValue: p, numAsString: y };
|
|
2276
|
+
}), c = O(function() {
|
|
2277
|
+
return i(ot(e) ? t : e, n);
|
|
2267
2278
|
}), l = c[0], u = c[1], d = function(h, g) {
|
|
2268
2279
|
h.formattedValue !== l.formattedValue && u({
|
|
2269
2280
|
formattedValue: h.formattedValue,
|
|
2270
2281
|
numAsString: h.value
|
|
2271
2282
|
}), o(h, g);
|
|
2272
2283
|
}, m = e, x = n;
|
|
2273
|
-
|
|
2284
|
+
ot(e) && (m = l.numAsString, x = !0);
|
|
2274
2285
|
var v = i(m, x);
|
|
2275
2286
|
return ne(function() {
|
|
2276
2287
|
u(v);
|
|
@@ -2279,35 +2290,35 @@ function xa(e, t, n, a, s, o) {
|
|
|
2279
2290
|
function Ml(e) {
|
|
2280
2291
|
return e.replace(/[^0-9]/g, "");
|
|
2281
2292
|
}
|
|
2282
|
-
function
|
|
2293
|
+
function Bl(e) {
|
|
2283
2294
|
return e;
|
|
2284
2295
|
}
|
|
2285
|
-
function
|
|
2296
|
+
function Vl(e) {
|
|
2286
2297
|
var t = e.type;
|
|
2287
2298
|
t === void 0 && (t = "text");
|
|
2288
2299
|
var n = e.displayType;
|
|
2289
2300
|
n === void 0 && (n = "input");
|
|
2290
2301
|
var a = e.customInput, s = e.renderText, o = e.getInputRef, i = e.format;
|
|
2291
|
-
i === void 0 && (i =
|
|
2302
|
+
i === void 0 && (i = Bl);
|
|
2292
2303
|
var c = e.removeFormatting;
|
|
2293
2304
|
c === void 0 && (c = Ml);
|
|
2294
2305
|
var l = e.defaultValue, u = e.valueIsNumericString, d = e.onValueChange, m = e.isAllowed, x = e.onChange;
|
|
2295
|
-
x === void 0 && (x =
|
|
2306
|
+
x === void 0 && (x = Be);
|
|
2296
2307
|
var v = e.onKeyDown;
|
|
2297
|
-
v === void 0 && (v =
|
|
2308
|
+
v === void 0 && (v = Be);
|
|
2298
2309
|
var h = e.onMouseUp;
|
|
2299
|
-
h === void 0 && (h =
|
|
2310
|
+
h === void 0 && (h = Be);
|
|
2300
2311
|
var g = e.onFocus;
|
|
2301
|
-
g === void 0 && (g =
|
|
2312
|
+
g === void 0 && (g = Be);
|
|
2302
2313
|
var p = e.onBlur;
|
|
2303
|
-
p === void 0 && (p =
|
|
2314
|
+
p === void 0 && (p = Be);
|
|
2304
2315
|
var y = e.value, j = e.getCaretBoundary;
|
|
2305
2316
|
j === void 0 && (j = Al);
|
|
2306
2317
|
var f = e.isValidInputCharacter;
|
|
2307
2318
|
f === void 0 && (f = yt);
|
|
2308
|
-
var b = e.isCharacterSame, N =
|
|
2309
|
-
_.current = { formattedValue: T.formattedValue, numAsString: T.value }, L(T,
|
|
2310
|
-
},
|
|
2319
|
+
var b = e.isCharacterSame, N = ma(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = ja(y, l, !!u, i, c, d), I = S[0], D = I.formattedValue, C = I.numAsString, L = S[1], F = te(), _ = te({ formattedValue: D, numAsString: C }), W = function(T, V) {
|
|
2320
|
+
_.current = { formattedValue: T.formattedValue, numAsString: T.value }, L(T, V);
|
|
2321
|
+
}, B = O(!1), X = B[0], R = B[1], $ = te(null), P = te({
|
|
2311
2322
|
setCaretTimeout: null,
|
|
2312
2323
|
focusTimeout: null
|
|
2313
2324
|
});
|
|
@@ -2316,126 +2327,126 @@ function Bl(e) {
|
|
|
2316
2327
|
clearTimeout(P.current.setCaretTimeout), clearTimeout(P.current.focusTimeout);
|
|
2317
2328
|
};
|
|
2318
2329
|
}, []);
|
|
2319
|
-
var U = i, Z = function(T,
|
|
2320
|
-
var K = parseFloat(
|
|
2330
|
+
var U = i, Z = function(T, V) {
|
|
2331
|
+
var K = parseFloat(V);
|
|
2321
2332
|
return {
|
|
2322
2333
|
formattedValue: T,
|
|
2323
|
-
value:
|
|
2334
|
+
value: V,
|
|
2324
2335
|
floatValue: isNaN(K) ? void 0 : K
|
|
2325
2336
|
};
|
|
2326
|
-
}, Q = function(T,
|
|
2327
|
-
T.selectionStart === 0 && T.selectionEnd === T.value.length || (
|
|
2328
|
-
T.value === K && T.selectionStart !==
|
|
2337
|
+
}, Q = function(T, V, K) {
|
|
2338
|
+
T.selectionStart === 0 && T.selectionEnd === T.value.length || (Qe(T, V), P.current.setCaretTimeout = setTimeout(function() {
|
|
2339
|
+
T.value === K && T.selectionStart !== V && Qe(T, V);
|
|
2329
2340
|
}, 0));
|
|
2330
|
-
},
|
|
2331
|
-
return
|
|
2332
|
-
}, ee = function(T,
|
|
2333
|
-
var le = j(
|
|
2334
|
-
return we =
|
|
2341
|
+
}, E = function(T, V, K) {
|
|
2342
|
+
return Kn(T, V, j(T), K);
|
|
2343
|
+
}, ee = function(T, V, K) {
|
|
2344
|
+
var le = j(V), we = Rl(V, D, T, K, le, f, b);
|
|
2345
|
+
return we = Kn(V, we, le), we;
|
|
2335
2346
|
}, A = function(T) {
|
|
2336
|
-
var
|
|
2337
|
-
|
|
2347
|
+
var V = T.formattedValue;
|
|
2348
|
+
V === void 0 && (V = "");
|
|
2338
2349
|
var K = T.input, le = T.source, we = T.event, ce = T.numAsString, se;
|
|
2339
2350
|
if (K) {
|
|
2340
|
-
var
|
|
2341
|
-
K.value =
|
|
2351
|
+
var ke = T.inputValue || K.value, De = Yt(K);
|
|
2352
|
+
K.value = V, se = ee(ke, V, De), se !== void 0 && Q(K, se, V);
|
|
2342
2353
|
}
|
|
2343
|
-
|
|
2354
|
+
V !== D && W(Z(V, ce), { event: we, source: le });
|
|
2344
2355
|
};
|
|
2345
2356
|
M(function() {
|
|
2346
|
-
var T = _.current,
|
|
2347
|
-
(D !==
|
|
2357
|
+
var T = _.current, V = T.formattedValue, K = T.numAsString;
|
|
2358
|
+
(D !== V || C !== K) && W(Z(D, C), {
|
|
2348
2359
|
event: void 0,
|
|
2349
2360
|
source: jt.props
|
|
2350
2361
|
});
|
|
2351
2362
|
}, [D, C]);
|
|
2352
|
-
var z = $.current ? Yt($.current) : void 0, me = typeof window < "u" ?
|
|
2363
|
+
var z = $.current ? Yt($.current) : void 0, me = typeof window < "u" ? Ds : M;
|
|
2353
2364
|
me(function() {
|
|
2354
2365
|
var T = $.current;
|
|
2355
2366
|
if (D !== _.current.formattedValue && T) {
|
|
2356
|
-
var
|
|
2357
|
-
T.value = D, Q(T,
|
|
2367
|
+
var V = ee(_.current.formattedValue, D, z);
|
|
2368
|
+
T.value = D, Q(T, V, D);
|
|
2358
2369
|
}
|
|
2359
2370
|
}, [D]);
|
|
2360
|
-
var G = function(T,
|
|
2361
|
-
var le =
|
|
2362
|
-
if (se = c(
|
|
2363
|
-
var De =
|
|
2371
|
+
var G = function(T, V, K) {
|
|
2372
|
+
var le = V.target, we = F.current ? El(F.current, le.selectionEnd) : va(D, T), ce = Object.assign(Object.assign({}, we), { lastValue: D }), se = c(T, ce), ke = U(se);
|
|
2373
|
+
if (se = c(ke, void 0), m && !m(Z(ke, se))) {
|
|
2374
|
+
var De = V.target, H = Yt(De), ae = ee(T, D, H);
|
|
2364
2375
|
return De.value = D, Q(De, ae, D), !1;
|
|
2365
2376
|
}
|
|
2366
2377
|
return A({
|
|
2367
|
-
formattedValue:
|
|
2378
|
+
formattedValue: ke,
|
|
2368
2379
|
numAsString: se,
|
|
2369
2380
|
inputValue: T,
|
|
2370
|
-
event:
|
|
2381
|
+
event: V,
|
|
2371
2382
|
source: K,
|
|
2372
|
-
input:
|
|
2383
|
+
input: V.target
|
|
2373
2384
|
}), !0;
|
|
2374
|
-
}, pe = function(T,
|
|
2375
|
-
|
|
2385
|
+
}, pe = function(T, V) {
|
|
2386
|
+
V === void 0 && (V = 0);
|
|
2376
2387
|
var K = T.selectionStart, le = T.selectionEnd;
|
|
2377
|
-
|
|
2388
|
+
F.current = { selectionStart: K, selectionEnd: le + V };
|
|
2378
2389
|
}, Ne = function(T) {
|
|
2379
|
-
var
|
|
2380
|
-
le && x(T),
|
|
2390
|
+
var V = T.target, K = V.value, le = G(K, T, jt.event);
|
|
2391
|
+
le && x(T), F.current = void 0;
|
|
2381
2392
|
}, Ie = function(T) {
|
|
2382
|
-
var
|
|
2393
|
+
var V = T.target, K = T.key, le = V.selectionStart, we = V.selectionEnd, ce = V.value;
|
|
2383
2394
|
ce === void 0 && (ce = "");
|
|
2384
2395
|
var se;
|
|
2385
2396
|
K === "ArrowLeft" || K === "Backspace" ? se = Math.max(le - 1, 0) : K === "ArrowRight" ? se = Math.min(le + 1, ce.length) : K === "Delete" && (se = le);
|
|
2386
|
-
var
|
|
2387
|
-
K === "Delete" && le === we && (
|
|
2397
|
+
var ke = 0;
|
|
2398
|
+
K === "Delete" && le === we && (ke = 1);
|
|
2388
2399
|
var De = K === "ArrowLeft" || K === "ArrowRight";
|
|
2389
2400
|
if (se === void 0 || le !== we && !De) {
|
|
2390
|
-
v(T), pe(
|
|
2401
|
+
v(T), pe(V, ke);
|
|
2391
2402
|
return;
|
|
2392
2403
|
}
|
|
2393
2404
|
var H = se;
|
|
2394
2405
|
if (De) {
|
|
2395
2406
|
var ae = K === "ArrowLeft" ? "left" : "right";
|
|
2396
|
-
H =
|
|
2397
|
-
} else K === "Delete" && !f(ce[se]) ? H =
|
|
2398
|
-
H !== se && Q(
|
|
2399
|
-
},
|
|
2400
|
-
var
|
|
2401
|
-
var le =
|
|
2407
|
+
H = E(ce, se, ae), H !== se && T.preventDefault();
|
|
2408
|
+
} else K === "Delete" && !f(ce[se]) ? H = E(ce, se, "right") : K === "Backspace" && !f(ce[se]) && (H = E(ce, se, "left"));
|
|
2409
|
+
H !== se && Q(V, H, ce), v(T), pe(V, ke);
|
|
2410
|
+
}, ze = function(T) {
|
|
2411
|
+
var V = T.target, K = function() {
|
|
2412
|
+
var le = V.selectionStart, we = V.selectionEnd, ce = V.value;
|
|
2402
2413
|
if (ce === void 0 && (ce = ""), le === we) {
|
|
2403
|
-
var se =
|
|
2404
|
-
se !== le && Q(
|
|
2414
|
+
var se = E(ce, le);
|
|
2415
|
+
se !== le && Q(V, se, ce);
|
|
2405
2416
|
}
|
|
2406
2417
|
};
|
|
2407
2418
|
K(), requestAnimationFrame(function() {
|
|
2408
2419
|
K();
|
|
2409
|
-
}), h(T), pe(
|
|
2420
|
+
}), h(T), pe(V);
|
|
2410
2421
|
}, Y = function(T) {
|
|
2411
2422
|
T.persist && T.persist();
|
|
2412
|
-
var
|
|
2413
|
-
$.current =
|
|
2414
|
-
var le =
|
|
2423
|
+
var V = T.target, K = T.currentTarget;
|
|
2424
|
+
$.current = V, P.current.focusTimeout = setTimeout(function() {
|
|
2425
|
+
var le = V.selectionStart, we = V.selectionEnd, ce = V.value;
|
|
2415
2426
|
ce === void 0 && (ce = "");
|
|
2416
|
-
var se =
|
|
2417
|
-
se !== le && !(le === 0 && we === ce.length) && Q(
|
|
2427
|
+
var se = E(ce, le);
|
|
2428
|
+
se !== le && !(le === 0 && we === ce.length) && Q(V, se, ce), g(Object.assign(Object.assign({}, T), { currentTarget: K }));
|
|
2418
2429
|
}, 0);
|
|
2419
2430
|
}, fe = function(T) {
|
|
2420
2431
|
$.current = null, clearTimeout(P.current.focusTimeout), clearTimeout(P.current.setCaretTimeout), p(T);
|
|
2421
|
-
}, _e = X &&
|
|
2432
|
+
}, _e = X && Ol() ? "numeric" : void 0, Ue = Object.assign({ inputMode: _e }, N, {
|
|
2422
2433
|
type: t,
|
|
2423
2434
|
value: D,
|
|
2424
2435
|
onChange: Ne,
|
|
2425
2436
|
onKeyDown: Ie,
|
|
2426
|
-
onMouseUp:
|
|
2437
|
+
onMouseUp: ze,
|
|
2427
2438
|
onFocus: Y,
|
|
2428
2439
|
onBlur: fe
|
|
2429
2440
|
});
|
|
2430
2441
|
if (n === "text")
|
|
2431
2442
|
return s ? Ce.createElement(Ce.Fragment, null, s(D, N) || null) : Ce.createElement("span", Object.assign({}, N, { ref: o }), D);
|
|
2432
2443
|
if (a) {
|
|
2433
|
-
var
|
|
2434
|
-
return Ce.createElement(
|
|
2444
|
+
var nt = a;
|
|
2445
|
+
return Ce.createElement(nt, Object.assign({}, Ue, { ref: o }));
|
|
2435
2446
|
}
|
|
2436
|
-
return Ce.createElement("input", Object.assign({},
|
|
2447
|
+
return Ce.createElement("input", Object.assign({}, Ue, { ref: o }));
|
|
2437
2448
|
}
|
|
2438
|
-
function
|
|
2449
|
+
function qn(e, t) {
|
|
2439
2450
|
var n = t.decimalScale, a = t.fixedDecimalScale, s = t.prefix;
|
|
2440
2451
|
s === void 0 && (s = "");
|
|
2441
2452
|
var o = t.suffix;
|
|
@@ -2444,7 +2455,7 @@ function Kn(e, t) {
|
|
|
2444
2455
|
if (c === void 0 && (c = "thousand"), e === "" || e === "-")
|
|
2445
2456
|
return e;
|
|
2446
2457
|
var l = At(t), u = l.thousandSeparator, d = l.decimalSeparator, m = n !== 0 && e.indexOf(".") !== -1 || n && a, x = yn(e, i), v = x.beforeDecimal, h = x.afterDecimal, g = x.addNegation;
|
|
2447
|
-
return n !== void 0 && (h =
|
|
2458
|
+
return n !== void 0 && (h = pa(h, n, !!a)), u && (v = Il(v, u, c)), s && (v = s + v), o && (h = h + o), g && (v = "-" + v), e = v + (m && d || "") + h, e;
|
|
2448
2459
|
}
|
|
2449
2460
|
function At(e) {
|
|
2450
2461
|
var t = e.decimalSeparator;
|
|
@@ -2462,7 +2473,7 @@ function Pl(e, t) {
|
|
|
2462
2473
|
return e = e.replace(/-/g, ""), s && !o && t && (e = "-" + e), e;
|
|
2463
2474
|
}
|
|
2464
2475
|
function Hl(e, t) {
|
|
2465
|
-
return new RegExp("(^-)|[0-9]|" +
|
|
2476
|
+
return new RegExp("(^-)|[0-9]|" + ga(e), "g");
|
|
2466
2477
|
}
|
|
2467
2478
|
function Wl(e, t, n) {
|
|
2468
2479
|
return e === "" ? !0 : !(t != null && t.match(/\d/)) && !(n != null && n.match(/\d/)) && typeof e == "string" && !isNaN(Number(e));
|
|
@@ -2484,22 +2495,22 @@ function zl(e, t, n) {
|
|
|
2484
2495
|
var y = function($, P, U) {
|
|
2485
2496
|
var Z = !1, Q = !1;
|
|
2486
2497
|
o.startsWith("-") ? Z = !1 : $.startsWith("--") ? (Z = !1, Q = !0) : i.startsWith("-") && $.length === i.length ? Z = !1 : $[0] === "-" && (Z = !0);
|
|
2487
|
-
var
|
|
2488
|
-
return Q && (
|
|
2498
|
+
var E = Z ? 1 : 0;
|
|
2499
|
+
return Q && (E = 2), E && ($ = $.substring(E), P -= E, U -= E), { value: $, start: P, end: U, hasNegation: Z };
|
|
2489
2500
|
}, j = y(e, d, m), f = j.hasNegation;
|
|
2490
2501
|
a = j, e = a.value, d = a.start, m = a.end;
|
|
2491
|
-
var b = y(t.lastValue, l.start, l.end), N = b.start,
|
|
2492
|
-
e.length && I.length && (N > I.length - i.length ||
|
|
2502
|
+
var b = y(t.lastValue, l.start, l.end), N = b.start, S = b.end, I = b.value, D = e.substring(d, m);
|
|
2503
|
+
e.length && I.length && (N > I.length - i.length || S < o.length) && !(D && i.startsWith(D)) && (e = I);
|
|
2493
2504
|
var C = 0;
|
|
2494
2505
|
e.startsWith(o) ? C += o.length : d < o.length && (C = d), e = e.substring(C), m -= C;
|
|
2495
|
-
var L = e.length,
|
|
2496
|
-
e.endsWith(i) ? L =
|
|
2506
|
+
var L = e.length, F = e.length - i.length;
|
|
2507
|
+
e.endsWith(i) ? L = F : (m > F || m > e.length - i.length) && (L = m), e = e.substring(0, L), e = Pl(f ? "-" + e : e, s), e = (e.match(Hl(h)) || []).join("");
|
|
2497
2508
|
var _ = e.indexOf(h);
|
|
2498
|
-
e = e.replace(new RegExp(
|
|
2509
|
+
e = e.replace(new RegExp(ga(h), "g"), function($, P) {
|
|
2499
2510
|
return P === _ ? "." : "";
|
|
2500
2511
|
});
|
|
2501
|
-
var W = yn(e, s),
|
|
2502
|
-
return u.end - u.start < l.end - l.start &&
|
|
2512
|
+
var W = yn(e, s), B = W.beforeDecimal, X = W.afterDecimal, R = W.addNegation;
|
|
2513
|
+
return u.end - u.start < l.end - l.start && B === "" && g && !parseFloat(X) && (e = R ? "-" : ""), e;
|
|
2503
2514
|
}
|
|
2504
2515
|
function Ul(e, t) {
|
|
2505
2516
|
var n = t.prefix;
|
|
@@ -2532,20 +2543,20 @@ function Gl(e) {
|
|
|
2532
2543
|
function Yl(e) {
|
|
2533
2544
|
e = Gl(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
|
|
2534
2545
|
var t = e.suffix, n = e.allowNegative, a = e.allowLeadingZeros, s = e.onKeyDown;
|
|
2535
|
-
s === void 0 && (s =
|
|
2546
|
+
s === void 0 && (s = Be);
|
|
2536
2547
|
var o = e.onBlur;
|
|
2537
|
-
o === void 0 && (o =
|
|
2548
|
+
o === void 0 && (o = Be);
|
|
2538
2549
|
var i = e.thousandSeparator, c = e.decimalScale, l = e.fixedDecimalScale, u = e.prefix;
|
|
2539
2550
|
u === void 0 && (u = "");
|
|
2540
|
-
var d = e.defaultValue, m = e.value, x = e.valueIsNumericString, v = e.onValueChange, h =
|
|
2541
|
-
return
|
|
2551
|
+
var d = e.defaultValue, m = e.value, x = e.valueIsNumericString, v = e.onValueChange, h = ma(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), g = At(e), p = g.decimalSeparator, y = g.allowedDecimalSeparators, j = function(R) {
|
|
2552
|
+
return qn(R, e);
|
|
2542
2553
|
}, f = function(R, $) {
|
|
2543
2554
|
return zl(R, $, e);
|
|
2544
|
-
}, b =
|
|
2545
|
-
|
|
2546
|
-
var
|
|
2547
|
-
return
|
|
2548
|
-
}, I =
|
|
2555
|
+
}, b = ot(m) ? d : m, N = x ?? Wl(b, u, t);
|
|
2556
|
+
ot(m) ? ot(d) || (N = N || typeof d == "number") : N = N || typeof m == "number";
|
|
2557
|
+
var S = function(R) {
|
|
2558
|
+
return ha(R) ? R : (typeof R == "number" && (R = xa(R)), N && typeof c == "number" ? Yn(R, c, !!l) : R);
|
|
2559
|
+
}, I = ja(S(m), S(d), !!N, j, f, v), D = I[0], C = D.numAsString, L = D.formattedValue, F = I[1], _ = function(R) {
|
|
2549
2560
|
var $ = R.target, P = R.key, U = $.selectionStart, Z = $.selectionEnd, Q = $.value;
|
|
2550
2561
|
if (Q === void 0 && (Q = ""), (P === "Backspace" || P === "Delete") && Z < u.length) {
|
|
2551
2562
|
R.preventDefault();
|
|
@@ -2555,14 +2566,14 @@ function Yl(e) {
|
|
|
2555
2566
|
s(R);
|
|
2556
2567
|
return;
|
|
2557
2568
|
}
|
|
2558
|
-
P === "Backspace" && Q[0] === "-" && U === u.length + 1 && n &&
|
|
2559
|
-
var
|
|
2560
|
-
P === "Backspace" && Q[U - 1] ===
|
|
2569
|
+
P === "Backspace" && Q[0] === "-" && U === u.length + 1 && n && Qe($, 1), c && l && (P === "Backspace" && Q[U - 1] === p ? (Qe($, U - 1), R.preventDefault()) : P === "Delete" && Q[U] === p && R.preventDefault()), y != null && y.includes(P) && Q[U] === p && Qe($, U + 1);
|
|
2570
|
+
var E = i === !0 ? "," : i;
|
|
2571
|
+
P === "Backspace" && Q[U - 1] === E && Qe($, U - 1), P === "Delete" && Q[U] === E && Qe($, U + 1), s(R);
|
|
2561
2572
|
}, W = function(R) {
|
|
2562
2573
|
var $ = C;
|
|
2563
|
-
if ($.match(/\d/g) || ($ = ""), a || ($ = $l($)), l && c && ($ =
|
|
2564
|
-
var P =
|
|
2565
|
-
|
|
2574
|
+
if ($.match(/\d/g) || ($ = ""), a || ($ = $l($)), l && c && ($ = Yn($, c, l)), $ !== C) {
|
|
2575
|
+
var P = qn($, e);
|
|
2576
|
+
F({
|
|
2566
2577
|
formattedValue: P,
|
|
2567
2578
|
value: $,
|
|
2568
2579
|
floatValue: parseFloat($)
|
|
@@ -2572,18 +2583,18 @@ function Yl(e) {
|
|
|
2572
2583
|
});
|
|
2573
2584
|
}
|
|
2574
2585
|
o(R);
|
|
2575
|
-
},
|
|
2586
|
+
}, B = function(R) {
|
|
2576
2587
|
return R === p ? !0 : yt(R);
|
|
2577
2588
|
}, X = function(R) {
|
|
2578
|
-
var $ = R.currentValue, P = R.lastValue, U = R.formattedValue, Z = R.currentValueIndex, Q = R.formattedValueIndex,
|
|
2579
|
-
return Z >= z.start && Z < z.end && y && y.includes(
|
|
2589
|
+
var $ = R.currentValue, P = R.lastValue, U = R.formattedValue, Z = R.currentValueIndex, Q = R.formattedValueIndex, E = $[Z], ee = U[Q], A = va(P, $), z = A.to;
|
|
2590
|
+
return Z >= z.start && Z < z.end && y && y.includes(E) && ee === p ? !0 : E === ee;
|
|
2580
2591
|
};
|
|
2581
2592
|
return Object.assign(Object.assign({}, h), {
|
|
2582
2593
|
value: L,
|
|
2583
2594
|
valueIsNumericString: !1,
|
|
2584
|
-
isValidInputCharacter:
|
|
2595
|
+
isValidInputCharacter: B,
|
|
2585
2596
|
isCharacterSame: X,
|
|
2586
|
-
onValueChange:
|
|
2597
|
+
onValueChange: F,
|
|
2587
2598
|
format: j,
|
|
2588
2599
|
removeFormatting: f,
|
|
2589
2600
|
getCaretBoundary: function(R) {
|
|
@@ -2595,62 +2606,62 @@ function Yl(e) {
|
|
|
2595
2606
|
}
|
|
2596
2607
|
function bn(e) {
|
|
2597
2608
|
var t = Yl(e);
|
|
2598
|
-
return Ce.createElement(
|
|
2609
|
+
return Ce.createElement(Vl, Object.assign({}, t));
|
|
2599
2610
|
}
|
|
2600
|
-
const hd = ({ InputContainer: e =
|
|
2601
|
-
const b =
|
|
2611
|
+
const hd = ({ InputContainer: e = et, value: t, onChange: n, debounceMs: a, label: s, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: d, clearValue: m, className: x, step: v, noSelectOnFocus: h, decimalScale: g, numberPrefix: p, numberSuffix: y, min: j, max: f }) => {
|
|
2612
|
+
const b = k(() => {
|
|
2602
2613
|
if (!n)
|
|
2603
2614
|
return;
|
|
2604
2615
|
const L = m ?? null;
|
|
2605
2616
|
n(L ? Number(L) : null);
|
|
2606
|
-
}, [m, n]), N = te(null), [
|
|
2607
|
-
const
|
|
2608
|
-
n && n(
|
|
2609
|
-
}, [n]), C =
|
|
2617
|
+
}, [m, n]), N = te(null), [S, I] = O((t == null ? void 0 : t.toString()) ?? ""), D = k((L) => {
|
|
2618
|
+
const F = L;
|
|
2619
|
+
n && n(F == null || F === "" ? null : Number(F));
|
|
2620
|
+
}, [n]), C = k((L) => {
|
|
2610
2621
|
var _, W;
|
|
2611
|
-
let
|
|
2612
|
-
if (Number.isNaN(
|
|
2613
|
-
D(
|
|
2622
|
+
let F = parseFloat(((W = (_ = L.target) == null ? void 0 : _.value) == null ? void 0 : W.replaceAll(" ", "")) ?? 0);
|
|
2623
|
+
if (Number.isNaN(F) && (F = 0), !a) {
|
|
2624
|
+
D(F.toString());
|
|
2614
2625
|
return;
|
|
2615
2626
|
}
|
|
2616
|
-
I(
|
|
2617
|
-
D(
|
|
2627
|
+
I(F.toString()), N.current !== null && window.clearTimeout(N.current), N.current = window.setTimeout(() => {
|
|
2628
|
+
D(F.toString());
|
|
2618
2629
|
}, a);
|
|
2619
2630
|
}, [a, D]);
|
|
2620
2631
|
return M(() => {
|
|
2621
2632
|
I(t === null ? "" : t.toString());
|
|
2622
2633
|
}, [f, j, t]), M(() => {
|
|
2623
|
-
f !== void 0 && Number(
|
|
2624
|
-
}, [
|
|
2634
|
+
f !== void 0 && Number(S) > f && I(f.toString()), j !== void 0 && Number(S) < j && I(j.toString());
|
|
2635
|
+
}, [S, f, j, I]), M(() => {
|
|
2625
2636
|
!n || t === null || (f !== void 0 && t > f && n(f), j !== void 0 && t < j && n(j));
|
|
2626
2637
|
}, [t, f, j, n]), /* @__PURE__ */ r.jsxs(e, { withoutLabel: o, label: s ?? "", hidden: l, className: x, children: [
|
|
2627
|
-
/* @__PURE__ */ r.jsx(bn, { displayType: "input", thousandSeparator: " ", decimalScale: g, prefix: p, suffix: y, defaultValue: "", value: a ?
|
|
2638
|
+
/* @__PURE__ */ r.jsx(bn, { displayType: "input", thousandSeparator: " ", decimalScale: g, prefix: p, suffix: y, defaultValue: "", value: a ? S : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? s, onFocus: (L) => {
|
|
2628
2639
|
!h && L.target.select();
|
|
2629
2640
|
}, onChange: C, hidden: l, disabled: u, className: w("form-control text-end w-100", {
|
|
2630
2641
|
[`form-control-${c}`]: c
|
|
2631
2642
|
}), step: v, min: j, max: f }),
|
|
2632
|
-
d && t !== null && n && !u && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ r.jsx(
|
|
2643
|
+
d && t !== null && n && !u && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ r.jsx(Fe, {}) }) })
|
|
2633
2644
|
] });
|
|
2634
|
-
},
|
|
2645
|
+
}, Qn = [
|
|
2635
2646
|
["D", "day"],
|
|
2636
2647
|
// ['W', 'week'],
|
|
2637
2648
|
["M", "month"],
|
|
2638
2649
|
["Y", "year"],
|
|
2639
2650
|
["C", "custom"]
|
|
2640
|
-
], Kl = "_wrapper_qfqux_1", ql = "_lg_qfqux_7", Ql = "_sm_qfqux_11", Zl = "_md_qfqux_14",
|
|
2651
|
+
], Kl = "_wrapper_qfqux_1", ql = "_lg_qfqux_7", Ql = "_sm_qfqux_11", Zl = "_md_qfqux_14", Zn = {
|
|
2641
2652
|
wrapper: Kl,
|
|
2642
2653
|
lg: ql,
|
|
2643
2654
|
sm: Ql,
|
|
2644
2655
|
md: Zl
|
|
2645
2656
|
}, Ct = (e) => {
|
|
2646
|
-
const t = new Date(e), n =
|
|
2657
|
+
const t = new Date(e), n = Pe(t.toISOString());
|
|
2647
2658
|
t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1);
|
|
2648
|
-
const a =
|
|
2659
|
+
const a = Pe(t.toISOString());
|
|
2649
2660
|
return { from: n, to: a };
|
|
2650
2661
|
}, gt = (e) => {
|
|
2651
|
-
const t = new Date(e), n =
|
|
2662
|
+
const t = new Date(e), n = Pe(t.toISOString());
|
|
2652
2663
|
t.setFullYear(t.getFullYear() + 1), t.setDate(t.getDate() - 1);
|
|
2653
|
-
const a =
|
|
2664
|
+
const a = Pe(t.toISOString());
|
|
2654
2665
|
return { from: n, to: a };
|
|
2655
2666
|
}, Jl = (e, t) => {
|
|
2656
2667
|
if (e === null || t === null)
|
|
@@ -2660,7 +2671,7 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2660
2671
|
const n = new Date(e);
|
|
2661
2672
|
return Ct(n).to === t ? "M" : gt(n).to === t ? "Y" : (console.log(gt(n), t), "C");
|
|
2662
2673
|
}, Xl = (e, t, n) => {
|
|
2663
|
-
const a =
|
|
2674
|
+
const a = k((i, c) => {
|
|
2664
2675
|
if (e === "C") {
|
|
2665
2676
|
n((l) => ({ ...l, [i]: c }));
|
|
2666
2677
|
return;
|
|
@@ -2672,7 +2683,7 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2672
2683
|
return l;
|
|
2673
2684
|
const u = new Date(c);
|
|
2674
2685
|
if (e === "D") {
|
|
2675
|
-
const d =
|
|
2686
|
+
const d = Pe(u.toISOString());
|
|
2676
2687
|
return {
|
|
2677
2688
|
from: d,
|
|
2678
2689
|
to: d
|
|
@@ -2685,7 +2696,7 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2685
2696
|
t("C"), n((l) => ({ ...l, [i]: c }));
|
|
2686
2697
|
break;
|
|
2687
2698
|
}
|
|
2688
|
-
}, [e, n, t]), s =
|
|
2699
|
+
}, [e, n, t]), s = k((i) => {
|
|
2689
2700
|
n((c) => {
|
|
2690
2701
|
if (c.from === null || c.to === null)
|
|
2691
2702
|
return c;
|
|
@@ -2694,64 +2705,64 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2694
2705
|
const u = new Date(c.to);
|
|
2695
2706
|
if (e === "D") {
|
|
2696
2707
|
l.setDate(l.getDate() + i);
|
|
2697
|
-
const d =
|
|
2708
|
+
const d = Pe(l.toISOString());
|
|
2698
2709
|
return {
|
|
2699
2710
|
from: d,
|
|
2700
2711
|
to: d
|
|
2701
2712
|
};
|
|
2702
2713
|
}
|
|
2703
2714
|
return e === "M" ? (l.setMonth(l.getMonth() + i), Ct(l)) : e === "Y" ? (l.setFullYear(l.getFullYear() + i), gt(l)) : {
|
|
2704
|
-
from:
|
|
2705
|
-
to:
|
|
2715
|
+
from: Pe(l.toISOString()),
|
|
2716
|
+
to: Pe(u.toISOString())
|
|
2706
2717
|
};
|
|
2707
2718
|
});
|
|
2708
|
-
}, [e, n]), o =
|
|
2719
|
+
}, [e, n]), o = k((i) => {
|
|
2709
2720
|
i === "D" ? n((c) => ({ from: c.from, to: c.from })) : i === "M" ? n((c) => {
|
|
2710
2721
|
if (c.from === null)
|
|
2711
2722
|
return c;
|
|
2712
|
-
const l =
|
|
2723
|
+
const l = hs(c.from);
|
|
2713
2724
|
return Ct(l);
|
|
2714
2725
|
}) : i === "Y" && n((c) => {
|
|
2715
2726
|
if (c.from === null)
|
|
2716
2727
|
return c;
|
|
2717
|
-
const l =
|
|
2728
|
+
const l = gs(new Date(c.from).getFullYear());
|
|
2718
2729
|
return gt(l);
|
|
2719
2730
|
}), t(i);
|
|
2720
2731
|
}, [n, t]);
|
|
2721
2732
|
return { setFromToProp: a, handleArrowClick: s, handleRangeChange: o };
|
|
2722
2733
|
}, gd = ({ fromtoState: [e, t], className: n, size: a }) => {
|
|
2723
|
-
const { texts: { date: s }, ProjectIconComponent: o } = q(ge), [i, c] =
|
|
2734
|
+
const { texts: { date: s }, ProjectIconComponent: o } = q(ge), [i, c] = O("C"), { handleArrowClick: l, handleRangeChange: u, setFromToProp: d } = Xl(i, c, t), m = ne(() => i === "C", [i]), x = te(!0);
|
|
2724
2735
|
return M(() => {
|
|
2725
2736
|
if (x.current) {
|
|
2726
2737
|
const v = Jl(e.from, e.to);
|
|
2727
2738
|
c(v), x.current = !1;
|
|
2728
2739
|
}
|
|
2729
|
-
}, [e.from, e.to]), /* @__PURE__ */ r.jsxs("div", { className: w("d-inline-flex align-items-center gap-1",
|
|
2740
|
+
}, [e.from, e.to]), /* @__PURE__ */ r.jsxs("div", { className: w("d-inline-flex align-items-center gap-1", Zn.wrapper, Zn[a ?? "md"], n), children: [
|
|
2730
2741
|
/* @__PURE__ */ r.jsx(re, { disabled: m, onClick: () => {
|
|
2731
2742
|
l(-1);
|
|
2732
2743
|
}, children: /* @__PURE__ */ r.jsx(o, { icon: "chevron-left" }) }),
|
|
2733
2744
|
/* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
2734
|
-
/* @__PURE__ */ r.jsx(
|
|
2735
|
-
/* @__PURE__ */ r.jsx(un, { toggle: /* @__PURE__ */ r.jsx(fn, { text: s[
|
|
2736
|
-
/* @__PURE__ */ r.jsx(
|
|
2745
|
+
/* @__PURE__ */ r.jsx(st, { type: "date", value: e.from, onChange: (v) => d("from", v === null ? null : v.toString()), InputContainer: Ee, size: a }),
|
|
2746
|
+
/* @__PURE__ */ r.jsx(un, { toggle: /* @__PURE__ */ r.jsx(fn, { text: s[Qn.find((v) => v[0] === i)[1]].substring(0, 1), as: ps }), children: Qn.map((v) => /* @__PURE__ */ r.jsx(Ze, { disabled: v[0] === i, className: w(v[0] === i ? "text-black-50" : ""), onClick: () => u(v[0]), role: "button", children: s[v[1]] }, v[0])) }),
|
|
2747
|
+
/* @__PURE__ */ r.jsx(st, { type: "date", value: e.to, onChange: (v) => d("to", v === null ? null : v.toString()), InputContainer: Ee, size: a })
|
|
2737
2748
|
] }) }),
|
|
2738
2749
|
/* @__PURE__ */ r.jsx(re, { disabled: m, onClick: () => {
|
|
2739
2750
|
l(1);
|
|
2740
2751
|
}, children: /* @__PURE__ */ r.jsx(o, { icon: "chevron-right" }) })
|
|
2741
2752
|
] });
|
|
2742
2753
|
}, pd = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: n, yearMax: a }) => {
|
|
2743
|
-
const { localizationContext: s } = q(ge), { dateFnsLocale: o } = q(s), { searchParams: i, setSearch: c } = Ls(), l = i.get(t), u = l ? vt(l) : e, d =
|
|
2754
|
+
const { localizationContext: s } = q(ge), { dateFnsLocale: o } = q(s), { searchParams: i, setSearch: c } = Ls(), l = i.get(t), u = l ? vt(l) : e, d = k((m) => {
|
|
2744
2755
|
c(t, nn(m, { representation: "date" }));
|
|
2745
2756
|
}, [t, c]);
|
|
2746
2757
|
return /* @__PURE__ */ r.jsx(vo, { month: u, onChangeMonth: d, locale: o, yearMin: n, yearMax: a });
|
|
2747
2758
|
}, xd = ({ defaultYear: e, searchKey: t = "yearFrom", optionMin: n, optionMax: a, className: s }) => {
|
|
2748
|
-
const [o, i] = Rs(t, nn(e, { representation: "date" })), c = o ? vt(o) : e, l =
|
|
2759
|
+
const [o, i] = Rs(t, nn(e, { representation: "date" })), c = o ? vt(o) : e, l = k((u) => {
|
|
2749
2760
|
i(nn(u, { representation: "date" }));
|
|
2750
2761
|
}, [i]);
|
|
2751
2762
|
return /* @__PURE__ */ r.jsx(bo, { year: c, onChangeYear: l, optionMin: n, optionMax: a, className: s });
|
|
2752
2763
|
}, vd = ({ data: e, showLegend: t = !1, legendPosition: n = "left", onClick: a }) => {
|
|
2753
2764
|
const { chartColorPalette: s } = q(ge);
|
|
2754
|
-
return /* @__PURE__ */ r.jsx(
|
|
2765
|
+
return /* @__PURE__ */ r.jsx(xs, { data: e, margin: {
|
|
2755
2766
|
top: 50,
|
|
2756
2767
|
right: t && n === "right" ? 200 : 100,
|
|
2757
2768
|
bottom: 50,
|
|
@@ -2789,7 +2800,7 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2789
2800
|
] }) }),
|
|
2790
2801
|
/* @__PURE__ */ r.jsx("td", { className: "", children: /* @__PURE__ */ r.jsx(J, { variant: "body", children: a.errors }) })
|
|
2791
2802
|
] }, a.name)) }) }) });
|
|
2792
|
-
},
|
|
2803
|
+
}, ya = (e) => {
|
|
2793
2804
|
const t = {};
|
|
2794
2805
|
return Object.keys(e).forEach((n) => {
|
|
2795
2806
|
if (e[n].value === !0) {
|
|
@@ -2802,7 +2813,7 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2802
2813
|
}
|
|
2803
2814
|
t[n] = e[n].value;
|
|
2804
2815
|
}), t;
|
|
2805
|
-
},
|
|
2816
|
+
}, Jn = (e, t) => {
|
|
2806
2817
|
const n = {};
|
|
2807
2818
|
return Object.keys(e).forEach((a) => {
|
|
2808
2819
|
var i;
|
|
@@ -2837,18 +2848,18 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2837
2848
|
stickyLast: uc,
|
|
2838
2849
|
"sticky-bottom": "_sticky-bottom_1klfy_68",
|
|
2839
2850
|
stickyBottom: fc
|
|
2840
|
-
}, mc = "_input_13mhy_1",
|
|
2851
|
+
}, mc = "_input_13mhy_1", rt = {
|
|
2841
2852
|
input: mc
|
|
2842
|
-
},
|
|
2853
|
+
}, ba = ({ type: e, value: t, field: n, isPrimary: a, isReadonly: s, primaryEditable: o = !1, valuesForSelect: i, onChangeHandler: c, hideClearIcon: l, clearValue: u }) => {
|
|
2843
2854
|
switch (e) {
|
|
2844
2855
|
case "NUM":
|
|
2845
|
-
return i && i.length > 0 ? /* @__PURE__ */ r.jsx(Dt, { withoutLabel: !0, InputContainer:
|
|
2856
|
+
return i && i.length > 0 ? /* @__PURE__ */ r.jsx(Dt, { withoutLabel: !0, InputContainer: Ee, className: rt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (d) => c(n, d === null ? null : Number(d)), options: i, disabled: s || o ? !1 : a, showClearIcon: !l, clearValue: u }) : /* @__PURE__ */ r.jsx(st, { withoutLabel: !0, InputContainer: Ee, className: rt.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (d) => c(n, d === null ? null : Number(d)), disabled: s || o ? !1 : a, showClearIcon: !l, clearValue: u });
|
|
2846
2857
|
case "STR":
|
|
2847
|
-
return i && i.length > 0 ? /* @__PURE__ */ r.jsx(Dt, { withoutLabel: !0, InputContainer:
|
|
2858
|
+
return i && i.length > 0 ? /* @__PURE__ */ r.jsx(Dt, { withoutLabel: !0, InputContainer: Ee, className: rt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (d) => c(n, (d == null ? void 0 : d.toString()) ?? null), options: i, disabled: s || o ? !1 : a, showClearIcon: !l, clearValue: u }) : /* @__PURE__ */ r.jsx(st, { withoutLabel: !0, InputContainer: Ee, className: rt.input, size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (d) => c(n, (d == null ? void 0 : d.toString()) ?? null), disabled: s || o ? !1 : a, showClearIcon: !l, clearValue: u });
|
|
2848
2859
|
case "BIT":
|
|
2849
|
-
return /* @__PURE__ */ r.jsx(
|
|
2860
|
+
return /* @__PURE__ */ r.jsx(fa, { InputContainer: Ee, className: rt.input, value: t === !0, onChange: (d) => c(n, d), disabled: s || o ? !1 : a });
|
|
2850
2861
|
case "DT":
|
|
2851
|
-
return /* @__PURE__ */ r.jsx(
|
|
2862
|
+
return /* @__PURE__ */ r.jsx(st, { withoutLabel: !0, InputContainer: Ee, className: rt.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (d) => c(n, (d == null ? void 0 : d.toString()) ?? null), disabled: s || o ? !1 : a, showClearIcon: !l, clearValue: u });
|
|
2852
2863
|
default:
|
|
2853
2864
|
return /* @__PURE__ */ r.jsx("div", { className: "alert alert-warning p-1 m-0", children: /* @__PURE__ */ r.jsxs(J, { variant: "body", children: [
|
|
2854
2865
|
"Neznámý typ ",
|
|
@@ -2856,7 +2867,7 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2856
2867
|
] }) });
|
|
2857
2868
|
}
|
|
2858
2869
|
}, hc = ({ schema: e, columns: t, initialItem: n, onEdit: a, onDelete: s }) => {
|
|
2859
|
-
const { ProjectIconComponent: o } = q(ge), [i, c] =
|
|
2870
|
+
const { ProjectIconComponent: o } = q(ge), [i, c] = O(n), l = k((m, x) => {
|
|
2860
2871
|
console.log("changeValue", m, x), c((v) => ({
|
|
2861
2872
|
...v,
|
|
2862
2873
|
[m]: {
|
|
@@ -2864,19 +2875,19 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2864
2875
|
value: x
|
|
2865
2876
|
}
|
|
2866
2877
|
}));
|
|
2867
|
-
}, []), u = (m) => (m == null ? void 0 : m.value) !== (m == null ? void 0 : m.defaultValue), d =
|
|
2878
|
+
}, []), u = (m) => (m == null ? void 0 : m.value) !== (m == null ? void 0 : m.defaultValue), d = k(() => Object.keys(i).some((m) => u(i[m])), [i]);
|
|
2868
2879
|
return M(() => {
|
|
2869
2880
|
c(n);
|
|
2870
2881
|
}, [n]), /* @__PURE__ */ r.jsxs("tr", { className: w("table-row", de.tableRow), children: [
|
|
2871
|
-
/* @__PURE__ */ r.jsx("td", { className: w("table-cell", de.tableCell, de.stickyFirst), children: d() && /* @__PURE__ */ r.jsx(re, { color: "success", onClick: () => a(
|
|
2882
|
+
/* @__PURE__ */ r.jsx("td", { className: w("table-cell", de.tableCell, de.stickyFirst), children: d() && /* @__PURE__ */ r.jsx(re, { color: "success", onClick: () => a(ya(i)), children: /* @__PURE__ */ r.jsx(o, { icon: "check" }) }) }),
|
|
2872
2883
|
t.map((m) => {
|
|
2873
2884
|
var x, v;
|
|
2874
|
-
return /* @__PURE__ */ r.jsx("td", { className: w("table-cell", de.tableCell), children: /* @__PURE__ */ r.jsx(
|
|
2885
|
+
return /* @__PURE__ */ r.jsx("td", { className: w("table-cell", de.tableCell), children: /* @__PURE__ */ r.jsx(ba, { type: m.type, value: (x = i[m.field ?? ""]) == null ? void 0 : x.value, field: m.field, isReadonly: m.readOnly, isPrimary: e.primaryKey === m.field, valuesForSelect: m.valuesForSelect, onChangeHandler: l, hideClearIcon: !u(i[m.field ?? ""]), clearValue: (v = i[m.field ?? ""].defaultValue) == null ? void 0 : v.toString() }) }, `${e.id}-${m.field}`);
|
|
2875
2886
|
}),
|
|
2876
2887
|
/* @__PURE__ */ r.jsx("td", { className: w("table-cell", de.tableCell, de.stickyLast), children: /* @__PURE__ */ r.jsx(re, { color: "danger", onClick: () => s(i[e.primaryKey ?? ""].value), children: /* @__PURE__ */ r.jsx(o, { icon: "delete" }) }) })
|
|
2877
2888
|
] });
|
|
2878
2889
|
}, gc = ({ schema: e, columns: t, onCreate: n }) => {
|
|
2879
|
-
const { ProjectIconComponent: a } = q(ge), [s, o] =
|
|
2890
|
+
const { ProjectIconComponent: a } = q(ge), [s, o] = O(null), i = k(() => {
|
|
2880
2891
|
var u;
|
|
2881
2892
|
const l = {};
|
|
2882
2893
|
(u = e.columns) == null || u.forEach((d) => {
|
|
@@ -2886,7 +2897,7 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2886
2897
|
defaultValue: m
|
|
2887
2898
|
};
|
|
2888
2899
|
}), o(l);
|
|
2889
|
-
}, [e]), c =
|
|
2900
|
+
}, [e]), c = k((l, u) => {
|
|
2890
2901
|
o((d) => d && {
|
|
2891
2902
|
...d,
|
|
2892
2903
|
[l]: {
|
|
@@ -2897,17 +2908,17 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2897
2908
|
}, []);
|
|
2898
2909
|
return s ? /* @__PURE__ */ r.jsxs("tr", { className: "sticky-bottom shadow", children: [
|
|
2899
2910
|
/* @__PURE__ */ r.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ r.jsx(re, { color: "success", onClick: async () => {
|
|
2900
|
-
const l =
|
|
2911
|
+
const l = ya(s);
|
|
2901
2912
|
l && await n(l) && o(null);
|
|
2902
2913
|
}, children: /* @__PURE__ */ r.jsx(a, { icon: "check" }) }) }),
|
|
2903
|
-
t.map((l) => /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
2914
|
+
t.map((l) => /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(ba, { type: l.type, value: s[l.field ?? ""].value, field: l.field, isReadonly: l.readOnly, isPrimary: e.primaryKey === l.field, valuesForSelect: l.valuesForSelect, onChangeHandler: c, primaryEditable: !0 }) }, `${e.id}-${l.field}`)),
|
|
2904
2915
|
/* @__PURE__ */ r.jsx("td", { className: "sticky-last", children: /* @__PURE__ */ r.jsx(re, { color: "danger", onClick: () => o(null), children: /* @__PURE__ */ r.jsx(a, { icon: "cancel" }) }) })
|
|
2905
2916
|
] }) : /* @__PURE__ */ r.jsxs("tr", { className: "sticky-bottom shadow", children: [
|
|
2906
2917
|
/* @__PURE__ */ r.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ r.jsx(re, { onClick: i, children: /* @__PURE__ */ r.jsx(a, { icon: "add" }) }) }),
|
|
2907
2918
|
/* @__PURE__ */ r.jsx("td", { colSpan: t.length + 1 })
|
|
2908
2919
|
] });
|
|
2909
2920
|
}, pc = ({ column: e, children: t }) => e.description ? /* @__PURE__ */ r.jsx(Lt, { placement: "bottom", text: e.description ?? "", children: /* @__PURE__ */ r.jsx("div", { children: t }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t }), xc = ({ schema: e, items: t, onEditItem: n, onDeleteItem: a, onCreateItem: s, filters: o, setFilter: i, sortByField: c, sortByType: l, setSortBy: u, selectedMaster: d }) => {
|
|
2910
|
-
const { texts: { dynamicForms: m }, ProjectIconComponent: x } = q(ge), [v, h] =
|
|
2921
|
+
const { texts: { dynamicForms: m }, ProjectIconComponent: x } = q(ge), [v, h] = O([]);
|
|
2911
2922
|
return M(() => {
|
|
2912
2923
|
var g, p, y;
|
|
2913
2924
|
h([
|
|
@@ -2946,10 +2957,10 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2946
2957
|
] }),
|
|
2947
2958
|
/* @__PURE__ */ r.jsxs("tr", { className: w("table-row filters-row", de.tableRow, de.filtersRow), children: [
|
|
2948
2959
|
/* @__PURE__ */ r.jsx("th", { className: w("table-head", de.tableHead, de.actionColumn, de.stickyFirst) }),
|
|
2949
|
-
v.map((g) => /* @__PURE__ */ r.jsx("th", { className: w("table-head", de.tableHead), children: g.valuesForSelect && g.valuesForSelect.length > 0 || g.type === "BIT" ? /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(Dt, { InputContainer:
|
|
2960
|
+
v.map((g) => /* @__PURE__ */ r.jsx("th", { className: w("table-head", de.tableHead), children: g.valuesForSelect && g.valuesForSelect.length > 0 || g.type === "BIT" ? /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(Dt, { InputContainer: Ee, withoutLabel: !0, size: "sm", value: o[g.field] ?? "", onChange: (p) => i(g.field, (p == null ? void 0 : p.toString()) ?? null), options: g.type === "BIT" ? [
|
|
2950
2961
|
{ id: 1, name: m.yes },
|
|
2951
2962
|
{ id: 0, name: m.no }
|
|
2952
|
-
] : g.valuesForSelect ?? [], isNumber: g.type === "BIT", showClearIcon: !0 }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(
|
|
2963
|
+
] : g.valuesForSelect ?? [], isNumber: g.type === "BIT", showClearIcon: !0 }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(st, { InputContainer: Ee, withoutLabel: !0, size: "sm", type: g.type === "NUM" ? "number" : g.type === "DT" ? "date" : "text", value: o[g.field] ?? "", onChange: (p) => i(g.field, (p == null ? void 0 : p.toString()) ?? null) }) }) }, `${e.id}-${g.field}`)),
|
|
2953
2964
|
/* @__PURE__ */ r.jsx("th", { className: w("table-head", de.tableHead, de.actionColumn, de.stickyLast) })
|
|
2954
2965
|
] })
|
|
2955
2966
|
] }),
|
|
@@ -2958,34 +2969,34 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2958
2969
|
/* @__PURE__ */ r.jsx(gc, { schema: e, columns: v, onCreate: s })
|
|
2959
2970
|
] })
|
|
2960
2971
|
] });
|
|
2961
|
-
}, vc = ({ master: e, onChange: t, options: n, label: a }) => /* @__PURE__ */ r.jsx(Dt, { label: a, value: e, onChange: (s) => t(s ? s.toString() : null), options: n, size: "sm" }), jc = "_pagination_gujwe_1",
|
|
2972
|
+
}, vc = ({ master: e, onChange: t, options: n, label: a }) => /* @__PURE__ */ r.jsx(Dt, { label: a, value: e, onChange: (s) => t(s ? s.toString() : null), options: n, size: "sm" }), jc = "_pagination_gujwe_1", Xn = {
|
|
2962
2973
|
pagination: jc
|
|
2963
|
-
},
|
|
2974
|
+
}, er = {
|
|
2964
2975
|
appDetail: "/settings/:id"
|
|
2965
|
-
},
|
|
2976
|
+
}, at = {
|
|
2966
2977
|
apiSchemaGet: "/dynamicForms/schema",
|
|
2967
2978
|
apiDataGet: "/dynamicForms/data",
|
|
2968
2979
|
apiItemPost: "/dynamicForms/update",
|
|
2969
2980
|
apiItemDelete: "/dynamicForms/delete",
|
|
2970
2981
|
apiItemCreate: "/dynamicForms/insert"
|
|
2971
|
-
}, jd = ({ id: e, page: t, setPage: n, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, appUrls: { appDetail: l =
|
|
2972
|
-
var le, we, ce, se,
|
|
2973
|
-
const { texts: { dynamicForms: h }, ProjectIconComponent: g } = q(ge), p =
|
|
2982
|
+
}, jd = ({ id: e, page: t, setPage: n, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, appUrls: { appDetail: l = er.appDetail } = er, apiUrls: { apiSchemaGet: u = at.apiSchemaGet, apiDataGet: d = at.apiDataGet, apiItemPost: m = at.apiItemPost, apiItemDelete: x = at.apiItemDelete, apiItemCreate: v = at.apiItemCreate } = at }) => {
|
|
2983
|
+
var le, we, ce, se, ke, De;
|
|
2984
|
+
const { texts: { dynamicForms: h }, ProjectIconComponent: g } = q(ge), p = Xe(), { startLoading: y, stopLoading: j } = q(Ot), [f, b] = O(null), [N, S] = O(null), [I, D] = O(null), [C, L] = O(null), [F, _] = O(!1), { addNotification: W } = _r(), [B, X] = O([]), { confirm: R } = Tt(), $ = 20, P = $ + 1, U = C ? Math.ceil(C.length / $) : 1, Z = t ? t > 1 : !1, Q = t ? t < U : !1, E = t ? (t - 1) * $ : 0, ee = t ? t * $ : $, [A, z] = O(!1), me = A ? C == null ? void 0 : C.slice(E, ee) : C, [G, pe] = O(null);
|
|
2974
2985
|
M(() => {
|
|
2975
|
-
b(null),
|
|
2986
|
+
b(null), S(null), _(!1), X([]), pe(null);
|
|
2976
2987
|
}, [e]);
|
|
2977
|
-
const Ne =
|
|
2988
|
+
const Ne = k(async () => {
|
|
2978
2989
|
y("dynamicFormSchema"), await p.get(`${u}?id=${e}`).then(({ data: H }) => {
|
|
2979
2990
|
b(H), j("dynamicFormSchema");
|
|
2980
2991
|
}).catch(() => j("dynamicFormSchema"));
|
|
2981
|
-
}, [p, e, y, j, u]), Ie =
|
|
2992
|
+
}, [p, e, y, j, u]), Ie = k(async () => {
|
|
2982
2993
|
var H;
|
|
2983
2994
|
if (!(f === null || ((H = f.id) == null ? void 0 : H.toString()) !== e)) {
|
|
2984
2995
|
if (f.masterReference && !G) {
|
|
2985
|
-
|
|
2996
|
+
S([]);
|
|
2986
2997
|
return;
|
|
2987
2998
|
}
|
|
2988
|
-
y("dynamicFormData"), await p.get(`${d}?id=${e}&showArchive=${
|
|
2999
|
+
y("dynamicFormData"), await p.get(`${d}?id=${e}&showArchive=${F}${f.masterReference ? `&master=${G}` : ""}`).then(({ data: ae }) => {
|
|
2989
3000
|
const he = ae.map((ie) => {
|
|
2990
3001
|
var xe;
|
|
2991
3002
|
return Object.fromEntries(((xe = f.columns) == null ? void 0 : xe.filter((je) => je.field).map((je) => [
|
|
@@ -2993,32 +3004,32 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
2993
3004
|
{ value: ie[je.field ?? ""], defaultValue: ie[je.field ?? ""] }
|
|
2994
3005
|
])) ?? []);
|
|
2995
3006
|
});
|
|
2996
|
-
|
|
3007
|
+
S(he), j("dynamicFormData");
|
|
2997
3008
|
}).catch(() => j("dynamicFormData"));
|
|
2998
3009
|
}
|
|
2999
|
-
}, [p, e, f, y, j,
|
|
3000
|
-
f && await
|
|
3010
|
+
}, [p, e, f, y, j, F, G, d]), ze = k(async (H) => (y("dynamicFormEdit"), p.post(`${m}?id=${e}`, H).then(() => (j("dynamicFormEdit"), X([]), !0)).catch((ae) => (j("dynamicFormEdit"), X(Vt(ae)), !1))), [p, e, y, j, m]), Y = k(async (H) => (y("dynamicFormDelete"), p.delete(`${x}?id=${e}&pk=${H}`).then(() => (j("dynamicFormDelete"), X([]), !0)).catch((ae) => (j("dynamicFormDelete"), X(Vt(ae)), !1))), [p, e, y, j, x]), fe = k(async (H) => (y("dynamicFormCreate"), p.post(`${v}?id=${e}`, H).then(({ data: ae }) => (j("dynamicFormCreate"), X([]), ae)).catch((ae) => (j("dynamicFormCreate"), X(Vt(ae)), null))), [p, e, y, j, v]), _e = k(async (H) => {
|
|
3011
|
+
f && await ze(f.masterReference ? { ...H, [f.masterReferenceColumn ?? ""]: G } : H) && (W(h.editSuccess, "success"), S((ae) => ae && ae.map((he) => {
|
|
3001
3012
|
var ie;
|
|
3002
|
-
return ((ie = he[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : ie.value) === H[(f == null ? void 0 : f.primaryKey) ?? ""] ?
|
|
3013
|
+
return ((ie = he[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : ie.value) === H[(f == null ? void 0 : f.primaryKey) ?? ""] ? Jn(H, f) : he;
|
|
3003
3014
|
})));
|
|
3004
|
-
}, [W,
|
|
3005
|
-
await R(h.deleteConfirm) && await Y(H) && (W(h.deleteSuccess, "success"),
|
|
3015
|
+
}, [W, ze, f, G, h]), Ue = k(async (H) => {
|
|
3016
|
+
await R(h.deleteConfirm) && await Y(H) && (W(h.deleteSuccess, "success"), S((ae) => ae && ae.filter((he) => {
|
|
3006
3017
|
var ie;
|
|
3007
3018
|
return ((ie = he[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : ie.value) !== H;
|
|
3008
3019
|
})));
|
|
3009
|
-
}, [W, Y, h, R, f]),
|
|
3020
|
+
}, [W, Y, h, R, f]), nt = k(async (H) => {
|
|
3010
3021
|
if (!f)
|
|
3011
3022
|
return !1;
|
|
3012
3023
|
const ae = await fe(f.masterReference ? { ...H, [f.masterReferenceColumn ?? ""]: G } : H);
|
|
3013
3024
|
if (ae !== null) {
|
|
3014
3025
|
W(h.createSuccess, "success");
|
|
3015
|
-
const he =
|
|
3016
|
-
return he[(f == null ? void 0 : f.primaryKey) ?? ""] = { value: ae, defaultValue: ae },
|
|
3026
|
+
const he = Jn(H, f);
|
|
3027
|
+
return he[(f == null ? void 0 : f.primaryKey) ?? ""] = { value: ae, defaultValue: ae }, S((ie) => [...ie ?? [], he]), !0;
|
|
3017
3028
|
}
|
|
3018
3029
|
return !1;
|
|
3019
3030
|
}, [W, fe, h, f, G]), T = (H) => {
|
|
3020
3031
|
H > U ? n(U) : H < 1 && n(1), n(H);
|
|
3021
|
-
},
|
|
3032
|
+
}, V = k(() => {
|
|
3022
3033
|
if (!N || !f) {
|
|
3023
3034
|
D(null);
|
|
3024
3035
|
return;
|
|
@@ -3047,7 +3058,7 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3047
3058
|
}
|
|
3048
3059
|
}));
|
|
3049
3060
|
D(H);
|
|
3050
|
-
}, [N, a, f]), K =
|
|
3061
|
+
}, [N, a, f]), K = k(() => {
|
|
3051
3062
|
if (!I || !f) {
|
|
3052
3063
|
L([]);
|
|
3053
3064
|
return;
|
|
@@ -3069,19 +3080,19 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3069
3080
|
const $e = ((ut = xe.values.find((Mt) => {
|
|
3070
3081
|
var ft;
|
|
3071
3082
|
return ((ft = Mt.id) == null ? void 0 : ft.toString()) === he;
|
|
3072
|
-
})) == null ? void 0 : ut.name) ?? "",
|
|
3083
|
+
})) == null ? void 0 : ut.name) ?? "", Le = ((bt = xe.values.find((Mt) => {
|
|
3073
3084
|
var ft;
|
|
3074
3085
|
return ((ft = Mt.id) == null ? void 0 : ft.toString()) === ie;
|
|
3075
3086
|
})) == null ? void 0 : bt.name) ?? "";
|
|
3076
|
-
return i === "asc" ? $e.localeCompare(
|
|
3087
|
+
return i === "asc" ? $e.localeCompare(Le) : Le.localeCompare($e);
|
|
3077
3088
|
}
|
|
3078
3089
|
if (je === "NUM") {
|
|
3079
|
-
const $e = Number(he),
|
|
3080
|
-
return i === "asc" ? $e -
|
|
3090
|
+
const $e = Number(he), Le = Number(ie);
|
|
3091
|
+
return i === "asc" ? $e - Le : Le - $e;
|
|
3081
3092
|
}
|
|
3082
3093
|
if (je === "DT") {
|
|
3083
|
-
const $e = vt(he == null ? void 0 : he.toString()).getTime(),
|
|
3084
|
-
return i === "asc" ? $e -
|
|
3094
|
+
const $e = vt(he == null ? void 0 : he.toString()).getTime(), Le = vt(ie == null ? void 0 : ie.toString()).getTime();
|
|
3095
|
+
return i === "asc" ? $e - Le : Le - $e;
|
|
3085
3096
|
}
|
|
3086
3097
|
return i === "asc" ? he.toString().localeCompare(ie.toString()) : ie.toString().localeCompare(he.toString());
|
|
3087
3098
|
}));
|
|
@@ -3091,8 +3102,8 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3091
3102
|
}, [Ne]), M(() => {
|
|
3092
3103
|
Ie();
|
|
3093
3104
|
}, [Ie]), M(() => {
|
|
3094
|
-
|
|
3095
|
-
}, [
|
|
3105
|
+
V();
|
|
3106
|
+
}, [V]), M(() => {
|
|
3096
3107
|
K();
|
|
3097
3108
|
}, [K]), M(() => {
|
|
3098
3109
|
C && C.length > P ? (z(!0), t || n(1)) : (z(!1), C && n(null));
|
|
@@ -3101,19 +3112,19 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3101
3112
|
}, [t, A, U, n]), /* @__PURE__ */ r.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
|
|
3102
3113
|
/* @__PURE__ */ r.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-center", children: [
|
|
3103
3114
|
/* @__PURE__ */ r.jsx(J, { variant: "h3", children: (f == null ? void 0 : f.name) ?? "" }),
|
|
3104
|
-
/* @__PURE__ */ r.jsx(
|
|
3115
|
+
/* @__PURE__ */ r.jsx(fa, { label: h.showArchived, value: F === !0, onChange: (H) => _(H) })
|
|
3105
3116
|
] }),
|
|
3106
3117
|
(f == null ? void 0 : f.description) && /* @__PURE__ */ r.jsx(J, { variant: "body2", className: "mb-3", children: f == null ? void 0 : f.description }),
|
|
3107
3118
|
(f == null ? void 0 : f.masterReference) && /* @__PURE__ */ r.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ r.jsx(vc, { label: ((we = (le = f.columns) == null ? void 0 : le.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : we.caption) ?? "", options: ((se = (ce = f.columns) == null ? void 0 : ce.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : se.values) ?? [], master: G, onChange: (H) => pe(H) }) }),
|
|
3108
3119
|
(f == null ? void 0 : f.slaves) && f.slaves.length > 0 && /* @__PURE__ */ r.jsx("div", { className: "mb-3 d-flex align-items-center flex-start", children: f.slaves.map((H) => {
|
|
3109
3120
|
var ae;
|
|
3110
|
-
return /* @__PURE__ */ r.jsx(
|
|
3121
|
+
return /* @__PURE__ */ r.jsx(Te, { as: "link", href: `${St(l, { id: (ae = H.id) == null ? void 0 : ae.toString() })}?type=dynamic-form`, children: H.name }, H.id);
|
|
3111
3122
|
}) }),
|
|
3112
|
-
f != null && f.masterReference && !G ? /* @__PURE__ */ r.jsx(
|
|
3113
|
-
f &&
|
|
3123
|
+
f != null && f.masterReference && !G ? /* @__PURE__ */ r.jsx(da, { variant: "warning", children: h.selectMaster(((De = (ke = f.columns) == null ? void 0 : ke.find((H) => H.field === f.masterReferenceColumn)) == null ? void 0 : De.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3124
|
+
f && B.length > 0 && /* @__PURE__ */ r.jsx("div", { className: "mb-2", children: /* @__PURE__ */ r.jsx(ec, { errors: B, schema: f }) }),
|
|
3114
3125
|
f && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3115
|
-
/* @__PURE__ */ r.jsx("div", { className: w("rounded border overflow-auto",
|
|
3116
|
-
A && t && /* @__PURE__ */ r.jsxs("div", { className: w(
|
|
3126
|
+
/* @__PURE__ */ r.jsx("div", { className: w("rounded border overflow-auto", Xn.tableContainer), children: /* @__PURE__ */ r.jsx(xc, { schema: f, items: (A ? me : C) ?? [], onEditItem: _e, onDeleteItem: Ue, onCreateItem: nt, filters: a, setFilter: s, sortByField: o, sortByType: i, setSortBy: c, selectedMaster: (G == null ? void 0 : G.toString()) ?? null }) }),
|
|
3127
|
+
A && t && /* @__PURE__ */ r.jsxs("div", { className: w(Xn.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
|
|
3117
3128
|
/* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
3118
3129
|
/* @__PURE__ */ r.jsx(re, { color: "primary", onClick: () => T(1), disabled: !Z, children: /* @__PURE__ */ r.jsx(g, { icon: "chevron-double-left" }) }),
|
|
3119
3130
|
/* @__PURE__ */ r.jsx(re, { color: "primary", onClick: () => T(t - 1), disabled: !Z, children: /* @__PURE__ */ r.jsx(g, { icon: "chevron-left" }) }),
|
|
@@ -3133,12 +3144,12 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3133
3144
|
] })
|
|
3134
3145
|
] })
|
|
3135
3146
|
] });
|
|
3136
|
-
}, er = {
|
|
3137
|
-
appDetail: "/settings/:id"
|
|
3138
3147
|
}, tr = {
|
|
3148
|
+
appDetail: "/settings/:id"
|
|
3149
|
+
}, nr = {
|
|
3139
3150
|
apiDynamicFormsGet: "/dynamicForms"
|
|
3140
|
-
}, yc = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ r.jsx(Lt, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ r.jsx("div", { children: t }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t }), yd = ({ activeId: e, otherForms: t = [], groupsDefs: n = [], searchQuery: a, fullSize: s, appUrls: { appDetail: o =
|
|
3141
|
-
const c =
|
|
3151
|
+
}, yc = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ r.jsx(Lt, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ r.jsx("div", { children: t }) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t }), yd = ({ activeId: e, otherForms: t = [], groupsDefs: n = [], searchQuery: a, fullSize: s, appUrls: { appDetail: o = tr.appDetail } = tr, apiUrls: { apiDynamicFormsGet: i = nr.apiDynamicFormsGet } = nr }) => {
|
|
3152
|
+
const c = Xe(), { startLoading: l, stopLoading: u } = q(Ot), [d, m] = O(null), x = ne(() => [
|
|
3142
3153
|
...(d == null ? void 0 : d.map((g) => ({
|
|
3143
3154
|
...g,
|
|
3144
3155
|
type: "dynamic-form"
|
|
@@ -3148,7 +3159,7 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3148
3159
|
id: g.id,
|
|
3149
3160
|
name: g.name ?? "",
|
|
3150
3161
|
items: x.filter((p) => p.group === g.id)
|
|
3151
|
-
})).filter((g) => g.items.length > 0), [n, x]), h =
|
|
3162
|
+
})).filter((g) => g.items.length > 0), [n, x]), h = k(async () => {
|
|
3152
3163
|
l("dynamicForms"), await c.get(i).then(({ data: g }) => {
|
|
3153
3164
|
m(g), u("dynamicForms");
|
|
3154
3165
|
}).catch(() => u("dynamicForms"));
|
|
@@ -3157,31 +3168,31 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3157
3168
|
!d && h();
|
|
3158
3169
|
}, [h, d]), x.length > 0 ? /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: v.map((g) => /* @__PURE__ */ r.jsx(Yo, { title: g.name, defaultOpen: !0, children: g.items.map((p) => {
|
|
3159
3170
|
var y, j, f, b;
|
|
3160
|
-
return s ? /* @__PURE__ */ r.jsxs(
|
|
3171
|
+
return s ? /* @__PURE__ */ r.jsxs(Je, { to: `${St(o, { id: (y = p.id) == null ? void 0 : y.toString() })}?type=${p.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((j = p.id) == null ? void 0 : j.toString()) ? "active" : ""}`, children: [
|
|
3161
3172
|
/* @__PURE__ */ r.jsx(J, { variant: "body", children: p.name }),
|
|
3162
3173
|
p.description && /* @__PURE__ */ r.jsx(J, { variant: "body2", className: "text-muted mt-2", children: p.description })
|
|
3163
|
-
] }, p.id) : /* @__PURE__ */ r.jsx(yc, { item: p, children: /* @__PURE__ */ r.jsx(
|
|
3174
|
+
] }, p.id) : /* @__PURE__ */ r.jsx(yc, { item: p, children: /* @__PURE__ */ r.jsx(Je, { to: `${St(o, { id: (f = p.id) == null ? void 0 : f.toString() })}?type=${p.type}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((b = p.id) == null ? void 0 : b.toString()) ? "active" : ""}`, children: /* @__PURE__ */ r.jsx(J, { variant: "body2", children: p.name }) }) }, p.id);
|
|
3164
3175
|
}) }, g.id)) }) }) : null;
|
|
3165
|
-
}, bd = ({ label: e, to: t, value: n }) => /* @__PURE__ */ r.jsxs(
|
|
3176
|
+
}, bd = ({ label: e, to: t, value: n }) => /* @__PURE__ */ r.jsxs(He, { label: e, children: [
|
|
3166
3177
|
/* @__PURE__ */ r.jsx("input", { disabled: !0, className: "form-control d-none" }),
|
|
3167
|
-
t ? /* @__PURE__ */ r.jsx(
|
|
3178
|
+
t ? /* @__PURE__ */ r.jsx(Je, { to: t, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: n }) : /* @__PURE__ */ r.jsx("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: n })
|
|
3168
3179
|
] }), wd = () => {
|
|
3169
3180
|
const { localizationContext: e } = q(ge), { language: t, setLanguage: n } = q(e), a = (s) => {
|
|
3170
3181
|
n(s);
|
|
3171
3182
|
};
|
|
3172
|
-
return /* @__PURE__ */ r.jsx(
|
|
3183
|
+
return /* @__PURE__ */ r.jsx(Ze, { onClick: (s) => {
|
|
3173
3184
|
a(t === "cz" ? "en" : "cz"), s.stopPropagation();
|
|
3174
3185
|
}, children: t === "cz" ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3175
3186
|
/* @__PURE__ */ r.jsx("strong", { children: "CZ" }),
|
|
3176
|
-
/* @__PURE__ */ r.jsx(
|
|
3187
|
+
/* @__PURE__ */ r.jsx(kn, {}),
|
|
3177
3188
|
/* @__PURE__ */ r.jsx("span", { children: "EN" })
|
|
3178
3189
|
] }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3179
3190
|
/* @__PURE__ */ r.jsx("strong", { children: "EN" }),
|
|
3180
|
-
/* @__PURE__ */ r.jsx(
|
|
3191
|
+
/* @__PURE__ */ r.jsx(kn, {}),
|
|
3181
3192
|
/* @__PURE__ */ r.jsx("span", { children: "CZ" })
|
|
3182
3193
|
] }) });
|
|
3183
3194
|
}, _d = ({ controlId: e, ...t }) => /* @__PURE__ */ r.jsx(ye.Group, { controlId: e, ...t }), Nd = ({ employeeId: e, alt: t, noPhotoImage: n, cafmApiUrl: a, showLargeInLightBox: s = !1 }) => {
|
|
3184
|
-
const { user: o } = q(
|
|
3195
|
+
const { user: o } = q(Ft), { photoPath: i, photoPathSm: c } = As(e);
|
|
3185
3196
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsx(r.Fragment, { children: s ? /* @__PURE__ */ r.jsx(ol, { baseUrl: a, customToken: o.cafmToken ?? void 0, photos: [
|
|
3186
3197
|
{
|
|
3187
3198
|
id: e.toString(),
|
|
@@ -3190,17 +3201,17 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3190
3201
|
smSrc: c,
|
|
3191
3202
|
lgSrc: i
|
|
3192
3203
|
}
|
|
3193
|
-
], placeholder: n, ImgComponent:
|
|
3204
|
+
], placeholder: n, ImgComponent: Un }) : /* @__PURE__ */ r.jsx(Un, { baseUrl: a, customToken: o.cafmToken ?? void 0, src: c, alt: t, placeholder: n, className: "rounded w-100" }) }) });
|
|
3194
3205
|
}, Cd = ({ text: e, setText: t, onSearchButtonClick: n, className: a }) => {
|
|
3195
3206
|
const s = (o) => {
|
|
3196
3207
|
t(o);
|
|
3197
3208
|
};
|
|
3198
3209
|
return /* @__PURE__ */ r.jsxs(Nt, { className: `${a}`, children: [
|
|
3199
3210
|
/* @__PURE__ */ r.jsx(ye.Control, { value: e, onChange: (o) => t(o.target.value) }),
|
|
3200
|
-
e && /* @__PURE__ */ r.jsx(Xt, { onClick: () => s(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ r.jsx(
|
|
3201
|
-
/* @__PURE__ */ r.jsx(Xt, { onClick: () => n && n(e), variant: "link", className: "border", children: /* @__PURE__ */ r.jsx(
|
|
3211
|
+
e && /* @__PURE__ */ r.jsx(Xt, { onClick: () => s(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ r.jsx(Fe, {}) }),
|
|
3212
|
+
/* @__PURE__ */ r.jsx(Xt, { onClick: () => n && n(e), variant: "link", className: "border", children: /* @__PURE__ */ r.jsx(vs, {}) })
|
|
3202
3213
|
] });
|
|
3203
|
-
},
|
|
3214
|
+
}, kd = ({ value: e, numberPrefix: t, numberSuffix: n, decimalScale: a = 2, className: s }) => /* @__PURE__ */ r.jsx(bn, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: a, defaultValue: "", prefix: t, suffix: n, className: s }), Sd = ({ data: e, keys: t, colors: n, tooltipLabel: a }) => /* @__PURE__ */ r.jsx(js, { data: e.map((s) => ({ name: s.name, ...s.values })), indexBy: "name", keys: t, margin: {
|
|
3204
3215
|
top: 20,
|
|
3205
3216
|
right: 50,
|
|
3206
3217
|
bottom: 30,
|
|
@@ -3219,8 +3230,8 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3219
3230
|
}, labelSkipWidth: 12, labelSkipHeight: 12, labelTextColor: {
|
|
3220
3231
|
from: "color",
|
|
3221
3232
|
modifiers: [["darker", 1.6]]
|
|
3222
|
-
}, tooltipLabel: a }), Id = ({ InputContainer: e =
|
|
3223
|
-
const { register: d, formState: m, setValue: x } =
|
|
3233
|
+
}, tooltipLabel: a }), Id = ({ InputContainer: e = He, formField: t, label: n, resetsFields: a, type: s, required: o, hidden: i, disabled: c, withoutLabel: l, className: u }) => {
|
|
3234
|
+
const { register: d, formState: m, setValue: x } = We(), [v, h] = O(void 0), [g, p] = O(!1);
|
|
3224
3235
|
M(() => {
|
|
3225
3236
|
const j = t.split(".");
|
|
3226
3237
|
let f = m.errors;
|
|
@@ -3237,10 +3248,10 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3237
3248
|
a && a.forEach((j) => x(j, null, { shouldDirty: !0, shouldValidate: g }));
|
|
3238
3249
|
}
|
|
3239
3250
|
}), isInvalid: y, hidden: i, disabled: c, className: "w-100" }),
|
|
3240
|
-
v && /* @__PURE__ */ r.jsx(
|
|
3251
|
+
v && /* @__PURE__ */ r.jsx(tt, { message: v.message })
|
|
3241
3252
|
] });
|
|
3242
|
-
}, Dd = ({ InputContainer: e =
|
|
3243
|
-
const { register: u, formState: d, setValue: m, watch: x } =
|
|
3253
|
+
}, Dd = ({ InputContainer: e = He, label: t, formField: n, options: a, resetsFields: s, required: o, disabled: i, hidden: c, className: l }) => {
|
|
3254
|
+
const { register: u, formState: d, setValue: m, watch: x } = We(), [v, h] = O(void 0), [g, p] = O(!1), y = ne(() => a, [a]);
|
|
3244
3255
|
M(() => {
|
|
3245
3256
|
const f = n.split(".");
|
|
3246
3257
|
let b = d.errors;
|
|
@@ -3257,43 +3268,43 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3257
3268
|
s && s.forEach((b) => m(b, null, { shouldDirty: !0, shouldValidate: g }));
|
|
3258
3269
|
}
|
|
3259
3270
|
}), isInvalid: j, hidden: c, disabled: i, className: "w-100" }, f.id)),
|
|
3260
|
-
v && /* @__PURE__ */ r.jsx(
|
|
3271
|
+
v && /* @__PURE__ */ r.jsx(tt, { message: v.message })
|
|
3261
3272
|
] });
|
|
3262
|
-
}, $d = ({ InputContainer: e =
|
|
3263
|
-
const { formState:
|
|
3273
|
+
}, $d = ({ InputContainer: e = He, formField: t, label: n, size: a, defaultSelection: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, items: d, onSearchQueryChange: m, selectedItemNavigateTo: x, texts: v, dropdownItemsNameWidth: h, isLoading: g, withoutLabel: p, additionalColumns: y, CustomOnChangeComponent: j, displayIdAsName: f, onSelect: b, className: N }) => {
|
|
3274
|
+
const { formState: S, setValue: I, watch: D, control: C } = We(), [L, F] = O(void 0), [_, W] = O(!1), [B, X] = O(!1), R = D(t) ?? null, $ = R === (s == null ? void 0 : s.id) ? s == null ? void 0 : s.name : D(`${t}-DropdownName`), P = ne(() => R == null ? null : { id: R ?? null, name: $ ?? "" }, [R, $]), U = k(() => {
|
|
3264
3275
|
const G = t.split(".");
|
|
3265
|
-
let pe =
|
|
3276
|
+
let pe = S.errors;
|
|
3266
3277
|
G.forEach((Ne) => {
|
|
3267
3278
|
pe !== void 0 && (pe = pe[Ne]);
|
|
3268
|
-
}),
|
|
3269
|
-
}, [
|
|
3279
|
+
}), F(pe);
|
|
3280
|
+
}, [S, t]), Z = k((G) => {
|
|
3270
3281
|
if ((G == null ? void 0 : G.id) === R)
|
|
3271
3282
|
return;
|
|
3272
|
-
if (b && b(G), o && o.forEach((Ne) => I(Ne, null, { shouldDirty: !0, shouldValidate:
|
|
3283
|
+
if (b && b(G), o && o.forEach((Ne) => I(Ne, null, { shouldDirty: !0, shouldValidate: B })), G === null) {
|
|
3273
3284
|
I(t, null, {
|
|
3274
3285
|
shouldDirty: !0,
|
|
3275
|
-
shouldValidate:
|
|
3286
|
+
shouldValidate: B
|
|
3276
3287
|
}), I(`${t}-DropdownName`, null);
|
|
3277
3288
|
return;
|
|
3278
3289
|
}
|
|
3279
3290
|
let pe = null;
|
|
3280
3291
|
i ? pe = (G == null ? void 0 : G.id) !== null && (G == null ? void 0 : G.id) !== "" ? parseInt(G.id.toString(), 10) : null : pe = G.id === null || G.id === void 0 || G.id === "" ? null : G.id, I(t, pe, {
|
|
3281
3292
|
shouldDirty: !0,
|
|
3282
|
-
shouldValidate:
|
|
3293
|
+
shouldValidate: B
|
|
3283
3294
|
}), I(`${t}-DropdownName`, G.name ?? "");
|
|
3284
|
-
}, [I, t,
|
|
3295
|
+
}, [I, t, B, i, o, R, b]), Q = k((G) => {
|
|
3285
3296
|
W(!1), Z(G);
|
|
3286
|
-
}, [Z]),
|
|
3297
|
+
}, [Z]), E = k(() => {
|
|
3287
3298
|
W(!1);
|
|
3288
3299
|
}, []);
|
|
3289
3300
|
M(() => {
|
|
3290
3301
|
U();
|
|
3291
3302
|
}, [U]), M(() => {
|
|
3292
|
-
|
|
3293
|
-
}, [
|
|
3303
|
+
S.isSubmitted && X(!0);
|
|
3304
|
+
}, [S]);
|
|
3294
3305
|
const ee = te(null), A = L !== void 0, z = x !== void 0, me = z && P !== null;
|
|
3295
3306
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(e, { label: `${n}${c ? " *" : ""}`, hidden: l, withoutLabel: p, isInvalid: A, inputContainerClassName: w({ "luminus-dropdown-select-open": _ }), className: N, children: [
|
|
3296
|
-
/* @__PURE__ */ r.jsxs(
|
|
3307
|
+
/* @__PURE__ */ r.jsxs(ua, { currentSelection: P, selectedItemNavigateTo: x, children: [
|
|
3297
3308
|
f && (P == null ? void 0 : P.name) && /* @__PURE__ */ r.jsx(J, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: P.name }),
|
|
3298
3309
|
/* @__PURE__ */ r.jsx(mn, { control: C, name: t, render: () => /* @__PURE__ */ r.jsx(ye.Select, { size: a, onMouseDown: (G) => {
|
|
3299
3310
|
G.currentTarget.focus(), G.preventDefault();
|
|
@@ -3307,52 +3318,52 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3307
3318
|
j || !u && z ? /* @__PURE__ */ r.jsxs("div", { className: "custom-picker-button", children: [
|
|
3308
3319
|
!j && !u && z && /* @__PURE__ */ r.jsx(re, { size: "sm", color: "secondary", onClick: (G) => {
|
|
3309
3320
|
G.preventDefault(), G.stopPropagation(), W(!0);
|
|
3310
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
3321
|
+
}, children: /* @__PURE__ */ r.jsx(yr, {}) }),
|
|
3311
3322
|
j ?? null
|
|
3312
3323
|
] }) : null
|
|
3313
3324
|
] }),
|
|
3314
|
-
L && /* @__PURE__ */ r.jsx(
|
|
3315
|
-
ee.current && /* @__PURE__ */ r.jsx(jn, { show: _, onCancel:
|
|
3325
|
+
L && /* @__PURE__ */ r.jsx(tt, { message: L.message }),
|
|
3326
|
+
ee.current && /* @__PURE__ */ r.jsx(jn, { show: _, onCancel: E, items: d, currentSelection: P, onSelectionChange: Q, onSearchQueryChange: m, texts: v, itemsNameWidth: h, additionalColumns: y, displayIdAsName: f, isLoading: g, disabled: u, inputRef: ee })
|
|
3316
3327
|
] }) });
|
|
3317
|
-
},
|
|
3318
|
-
const { watch: v, setValue: h, register: g, formState: p } =
|
|
3328
|
+
}, Ed = ({ InputContainer: e = He, label: t, formField: n, hidden: a, required: s, placeholder: o, disabled: i, showClearIcon: c, resetsFields: l, multiple: u, accept: d, withoutLabel: m, className: x }) => {
|
|
3329
|
+
const { watch: v, setValue: h, register: g, formState: p } = We(), [y, j] = O(!1), [f, b] = O(void 0), N = k(() => {
|
|
3319
3330
|
h(n, "");
|
|
3320
|
-
}, [h, n]),
|
|
3331
|
+
}, [h, n]), S = k(() => {
|
|
3321
3332
|
const D = n.split(".");
|
|
3322
3333
|
let C = p.errors;
|
|
3323
3334
|
D.forEach((L) => {
|
|
3324
3335
|
C !== void 0 && (C = C[L]);
|
|
3325
3336
|
}), b(C);
|
|
3326
3337
|
}, [p, n]);
|
|
3327
|
-
M(
|
|
3338
|
+
M(S, [S]), M(() => {
|
|
3328
3339
|
p.isSubmitted && j(!0);
|
|
3329
3340
|
}, [p]);
|
|
3330
3341
|
const I = f !== void 0;
|
|
3331
3342
|
return /* @__PURE__ */ r.jsxs(e, { label: `${t}${s ? "*" : ""}`, hidden: a, withoutLabel: m, isInvalid: I, className: x, children: [
|
|
3332
|
-
/* @__PURE__ */ r.jsx(
|
|
3343
|
+
/* @__PURE__ */ r.jsx(ys, { type: "file", multiple: u, accept: d.join(", "), placeholder: o ?? t, isInvalid: I, hidden: a, disabled: i, className: "w-100", ...g(n, {
|
|
3333
3344
|
onChange: () => {
|
|
3334
3345
|
l && l.forEach((D) => h(D, null, { shouldDirty: !0, shouldValidate: y }));
|
|
3335
3346
|
}
|
|
3336
3347
|
}) }),
|
|
3337
|
-
c && v(n) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: N, children: /* @__PURE__ */ r.jsx(
|
|
3338
|
-
f && /* @__PURE__ */ r.jsx(
|
|
3348
|
+
c && v(n) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: N, children: /* @__PURE__ */ r.jsx(Fe, {}) }) }),
|
|
3349
|
+
f && /* @__PURE__ */ r.jsx(tt, { message: f.message })
|
|
3339
3350
|
] });
|
|
3340
|
-
},
|
|
3341
|
-
const { formState: a } =
|
|
3351
|
+
}, Fd = ({ children: e, onStorno: t, noSpacer: n }) => {
|
|
3352
|
+
const { formState: a } = We(), [s, o] = O(!1);
|
|
3342
3353
|
return M(() => {
|
|
3343
3354
|
o(Object.keys(a.dirtyFields).length > 0);
|
|
3344
3355
|
}, [a]), s ? /* @__PURE__ */ r.jsx(po, { onStorno: t, noSpacer: n, children: e }) : null;
|
|
3345
|
-
},
|
|
3346
|
-
const { texts: { customSelect: g } } = q(ge), { formState: p, setValue: y, watch: j, control: f } =
|
|
3347
|
-
const
|
|
3356
|
+
}, Od = ({ InputContainer: e = He, options: t, formField: n, label: a, size: s, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: u, withoutLabel: d, noSortOptions: m, suffixIdToName: x, onSelect: v, className: h }) => {
|
|
3357
|
+
const { texts: { customSelect: g } } = q(ge), { formState: p, setValue: y, watch: j, control: f } = We(), [b, N] = O(void 0), [S, I] = O(!1), [D, C] = O(!1), [L, F] = O(""), _ = j(n), W = ne(() => t.find((E) => E.id === _) ?? null, [t, _]), B = k(() => {
|
|
3358
|
+
const E = n.split(".");
|
|
3348
3359
|
let ee = p.errors;
|
|
3349
|
-
|
|
3360
|
+
E.forEach((A) => {
|
|
3350
3361
|
ee !== void 0 && (ee = ee[A]);
|
|
3351
3362
|
}), N(ee);
|
|
3352
|
-
}, [p, n]), X =
|
|
3353
|
-
if ((
|
|
3363
|
+
}, [p, n]), X = k((E) => {
|
|
3364
|
+
if ((E == null ? void 0 : E.id) === _)
|
|
3354
3365
|
return;
|
|
3355
|
-
if (v && v(
|
|
3366
|
+
if (v && v(E), o && o.forEach((A) => y(A, null, { shouldDirty: !0, shouldValidate: D })), E === null) {
|
|
3356
3367
|
y(n, null, {
|
|
3357
3368
|
shouldDirty: !0,
|
|
3358
3369
|
shouldValidate: D
|
|
@@ -3360,87 +3371,87 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3360
3371
|
return;
|
|
3361
3372
|
}
|
|
3362
3373
|
let ee = null;
|
|
3363
|
-
i ? ee = (
|
|
3374
|
+
i ? ee = (E == null ? void 0 : E.id) !== null && (E == null ? void 0 : E.id) !== "" ? parseInt(E.id.toString(), 10) : null : ee = E.id === null || E.id === void 0 || E.id === "" ? null : E.id, y(n, ee, {
|
|
3364
3375
|
shouldDirty: !0,
|
|
3365
3376
|
shouldValidate: D
|
|
3366
3377
|
});
|
|
3367
|
-
}, [y, n, i, o, _, D, v]), R =
|
|
3368
|
-
I(!1), X(
|
|
3369
|
-
}, [X]), $ =
|
|
3370
|
-
|
|
3378
|
+
}, [y, n, i, o, _, D, v]), R = k((E) => {
|
|
3379
|
+
I(!1), X(E);
|
|
3380
|
+
}, [X]), $ = k((E) => {
|
|
3381
|
+
F(E);
|
|
3371
3382
|
}, []);
|
|
3372
3383
|
M(() => {
|
|
3373
|
-
|
|
3374
|
-
}, [
|
|
3384
|
+
B();
|
|
3385
|
+
}, [B]), M(() => {
|
|
3375
3386
|
p.isSubmitted && C(!0);
|
|
3376
3387
|
}, [p]);
|
|
3377
|
-
const P =
|
|
3388
|
+
const P = k((E) => {
|
|
3378
3389
|
var ee;
|
|
3379
|
-
return
|
|
3380
|
-
}, [x]), U = ne(() => t.map((
|
|
3381
|
-
id:
|
|
3382
|
-
name: P(
|
|
3383
|
-
})).filter((
|
|
3384
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(e, { label: `${a}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: Q, inputContainerClassName: w({ "luminus-dropdown-select-open":
|
|
3385
|
-
/* @__PURE__ */ r.jsx(mn, { control: f, name: n, render: () => /* @__PURE__ */ r.jsx(ye.Select, { size: s, onMouseDown: (
|
|
3386
|
-
|
|
3390
|
+
return E === null ? "" : !E.name || E.name.length === 0 ? ((ee = E.id) == null ? void 0 : ee.toString()) ?? "" : x ? `${E.name} (${E.id})` : E.name;
|
|
3391
|
+
}, [x]), U = ne(() => t.map((E) => ({
|
|
3392
|
+
id: E.id,
|
|
3393
|
+
name: P(E)
|
|
3394
|
+
})).filter((E) => tn(E.name, L)).sort((E, ee) => m ? 0 : (E.name ?? "").localeCompare(ee.name ?? "")), [t, m, L, P]), Z = te(null), Q = b !== void 0;
|
|
3395
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(e, { label: `${a}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: Q, inputContainerClassName: w({ "luminus-dropdown-select-open": S }), className: h, children: [
|
|
3396
|
+
/* @__PURE__ */ r.jsx(mn, { control: f, name: n, render: () => /* @__PURE__ */ r.jsx(ye.Select, { size: s, onMouseDown: (E) => {
|
|
3397
|
+
E.currentTarget.focus(), E.preventDefault();
|
|
3387
3398
|
}, onClick: () => {
|
|
3388
3399
|
I(!0);
|
|
3389
3400
|
}, ref: Z, value: _ ?? "", onChange: () => {
|
|
3390
3401
|
}, isInvalid: Q, hidden: l, disabled: u, className: "w-100", children: /* @__PURE__ */ r.jsx("option", { value: (W == null ? void 0 : W.id) ?? "", children: P(W) }) }) }),
|
|
3391
|
-
b && /* @__PURE__ */ r.jsx(
|
|
3392
|
-
Z.current && /* @__PURE__ */ r.jsx(jn, { show:
|
|
3402
|
+
b && /* @__PURE__ */ r.jsx(tt, { message: b.message }),
|
|
3403
|
+
Z.current && /* @__PURE__ */ r.jsx(jn, { show: S, onCancel: () => I(!1), items: U, currentSelection: W ?? null, onSelectionChange: R, onSearchQueryChange: $, texts: g, disabled: u, inputRef: Z, autoHideSearch: !0, allItemsLength: t.length })
|
|
3393
3404
|
] }) });
|
|
3394
|
-
}, Td = ({ InputContainer: e =
|
|
3395
|
-
const { register: y, formState: j, setValue: f, watch: b } =
|
|
3396
|
-
f(
|
|
3397
|
-
}, [p, g, f]), L =
|
|
3398
|
-
const
|
|
3399
|
-
C(t,
|
|
3405
|
+
}, Td = ({ InputContainer: e = He, formField: t, label: n, placeholder: a, size: s, resetsFields: o, showClearIcon: i, clearValue: c, required: l, hidden: u, disabled: d, withoutLabel: m, step: x, stepperStep: v = 1, className: h, min: g, max: p }) => {
|
|
3406
|
+
const { register: y, formState: j, setValue: f, watch: b } = We(), [N, S] = O(void 0), [I, D] = O(!1), C = k((B, X, R) => {
|
|
3407
|
+
f(B, ht(X, g, p), R);
|
|
3408
|
+
}, [p, g, f]), L = k(() => {
|
|
3409
|
+
const B = c ?? null;
|
|
3410
|
+
C(t, B !== null ? Number(B) : null, {
|
|
3400
3411
|
shouldDirty: !0,
|
|
3401
3412
|
shouldValidate: I
|
|
3402
3413
|
});
|
|
3403
|
-
}, [c, C, t, I]),
|
|
3404
|
-
const
|
|
3414
|
+
}, [c, C, t, I]), F = k(() => {
|
|
3415
|
+
const B = t.split(".");
|
|
3405
3416
|
let X = j.errors;
|
|
3406
|
-
|
|
3417
|
+
B.forEach((R) => {
|
|
3407
3418
|
X !== void 0 && (X = X[R]);
|
|
3408
|
-
}),
|
|
3419
|
+
}), S(X);
|
|
3409
3420
|
}, [j, t]);
|
|
3410
3421
|
M(() => {
|
|
3411
|
-
|
|
3412
|
-
}, [
|
|
3422
|
+
F();
|
|
3423
|
+
}, [F]), M(() => {
|
|
3413
3424
|
j.isSubmitted && D(!0);
|
|
3414
3425
|
}, [j]);
|
|
3415
3426
|
const _ = N !== void 0, W = b(t);
|
|
3416
3427
|
return /* @__PURE__ */ r.jsxs(e, { label: `${n}${l ? " *" : ""}`, hidden: u, withoutLabel: m, isInvalid: _, className: h, children: [
|
|
3417
3428
|
/* @__PURE__ */ r.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3418
3429
|
/* @__PURE__ */ r.jsx(ye.Control, { type: "number", placeholder: a ?? n, size: s, ...y(t, {
|
|
3419
|
-
setValueAs: (
|
|
3430
|
+
setValueAs: (B) => B == null || B === "" ? null : ht(Number(B), g, p),
|
|
3420
3431
|
min: g,
|
|
3421
3432
|
max: p,
|
|
3422
3433
|
onChange: () => {
|
|
3423
|
-
o && o.forEach((
|
|
3434
|
+
o && o.forEach((B) => f(B, null, { shouldDirty: !0, shouldValidate: I }));
|
|
3424
3435
|
}
|
|
3425
3436
|
}), isInvalid: _, hidden: u, disabled: d, className: "w-100 luminus-numeric-stepper", step: x, min: g, max: p }),
|
|
3426
|
-
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (
|
|
3427
|
-
|
|
3428
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
3429
|
-
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (
|
|
3430
|
-
|
|
3431
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
3437
|
+
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (B) => {
|
|
3438
|
+
B.preventDefault(), B.stopPropagation(), C(t, ((W ? Number(W) : 0) - v).toString(), { shouldDirty: !0, shouldValidate: I });
|
|
3439
|
+
}, children: /* @__PURE__ */ r.jsx(br, {}) }) }),
|
|
3440
|
+
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ r.jsx(re, { size: "sm", onClick: (B) => {
|
|
3441
|
+
B.preventDefault(), B.stopPropagation(), C(t, ((W ? Number(W) : 0) + v).toString(), { shouldDirty: !0, shouldValidate: I });
|
|
3442
|
+
}, children: /* @__PURE__ */ r.jsx(wr, {}) }) })
|
|
3432
3443
|
] }),
|
|
3433
|
-
i && b(t) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: L, children: /* @__PURE__ */ r.jsx(
|
|
3434
|
-
N && /* @__PURE__ */ r.jsx(
|
|
3444
|
+
i && b(t) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: L, children: /* @__PURE__ */ r.jsx(Fe, {}) }) }),
|
|
3445
|
+
N && /* @__PURE__ */ r.jsx(tt, { message: N.message })
|
|
3435
3446
|
] });
|
|
3436
|
-
}, Ld = ({ InputContainer: e =
|
|
3437
|
-
const { formState: N, setValue:
|
|
3447
|
+
}, Ld = ({ InputContainer: e = He, formField: t, label: n, placeholder: a, resetsFields: s, showClearIcon: o, clearValue: i, required: c, hidden: l, disabled: u, withoutLabel: d, step: m, size: x, CustomOnChangeComponent: v, noSelectOnFocus: h, className: g, decimalScale: p = 2, numberPrefix: y, numberSuffix: j, min: f, max: b }) => {
|
|
3448
|
+
const { formState: N, setValue: S, watch: I, control: D } = We(), [C, L] = O(void 0), [F, _] = O(!1), W = k(() => {
|
|
3438
3449
|
const $ = i ?? null;
|
|
3439
|
-
|
|
3450
|
+
S(t, $ !== null ? Number($) : null, {
|
|
3440
3451
|
shouldDirty: !0,
|
|
3441
|
-
shouldValidate:
|
|
3452
|
+
shouldValidate: F
|
|
3442
3453
|
});
|
|
3443
|
-
}, [i,
|
|
3454
|
+
}, [i, S, t, F]), B = k(() => {
|
|
3444
3455
|
const $ = t.split(".");
|
|
3445
3456
|
let P = N.errors;
|
|
3446
3457
|
$.forEach((U) => {
|
|
@@ -3448,14 +3459,14 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3448
3459
|
}), L(P);
|
|
3449
3460
|
}, [N, t]);
|
|
3450
3461
|
M(() => {
|
|
3451
|
-
|
|
3452
|
-
}, [
|
|
3462
|
+
B();
|
|
3463
|
+
}, [B]), M(() => {
|
|
3453
3464
|
N.isSubmitted && _(!0);
|
|
3454
3465
|
}, [N]);
|
|
3455
3466
|
const X = I(t);
|
|
3456
3467
|
M(() => {
|
|
3457
|
-
b !== void 0 && X > b &&
|
|
3458
|
-
}, [t, X, b, f,
|
|
3468
|
+
b !== void 0 && X > b && S(t, b), f !== void 0 && X < f && S(t, f);
|
|
3469
|
+
}, [t, X, b, f, S]);
|
|
3459
3470
|
const R = C !== void 0;
|
|
3460
3471
|
return /* @__PURE__ */ r.jsxs(e, { label: `${n}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: R, className: g, children: [
|
|
3461
3472
|
/* @__PURE__ */ r.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
@@ -3463,8 +3474,8 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3463
3474
|
!h && Q.target.select();
|
|
3464
3475
|
}, onChange: (Q) => {
|
|
3465
3476
|
var ee, A;
|
|
3466
|
-
const
|
|
3467
|
-
s && s.forEach((z) =>
|
|
3477
|
+
const E = parseFloat(((A = (ee = Q.target) == null ? void 0 : ee.value) == null ? void 0 : A.replaceAll(" ", "")) ?? 0);
|
|
3478
|
+
s && s.forEach((z) => S(z, null, { shouldDirty: !0, shouldValidate: F })), P(E == null || Number.isNaN(E) ? null : Number(E));
|
|
3468
3479
|
}, hidden: l, disabled: u, className: w("form-control text-end w-100", {
|
|
3469
3480
|
"is-invalid": R
|
|
3470
3481
|
}, {
|
|
@@ -3472,10 +3483,10 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3472
3483
|
}), step: m, getInputRef: $, min: f, max: b }) }),
|
|
3473
3484
|
v && /* @__PURE__ */ r.jsx("div", { className: "custom-picker-button", children: v })
|
|
3474
3485
|
] }),
|
|
3475
|
-
o && I(t) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: W, children: /* @__PURE__ */ r.jsx(
|
|
3476
|
-
C && /* @__PURE__ */ r.jsx(
|
|
3486
|
+
o && I(t) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(re, { color: "secondary", size: "sm", onClick: W, children: /* @__PURE__ */ r.jsx(Fe, {}) }) }),
|
|
3487
|
+
C && /* @__PURE__ */ r.jsx(tt, { message: C.message })
|
|
3477
3488
|
] });
|
|
3478
|
-
}, wn = ["slice", "options", "formats", "conditions"],
|
|
3489
|
+
}, wn = ["slice", "options", "formats", "conditions"], rr = (e) => {
|
|
3479
3490
|
const t = e.current.flexmonster.getReport({ withDefaults: !0 });
|
|
3480
3491
|
if (typeof t == "string")
|
|
3481
3492
|
throw alert("report is string"), new Error("report is string");
|
|
@@ -3497,9 +3508,9 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3497
3508
|
t[n] = (e == null ? void 0 : e[n]) ?? void 0;
|
|
3498
3509
|
}), t;
|
|
3499
3510
|
}, _c = ({ dataSource: e, settings: t, pivotRef: n, localization: a, licenseKey: s, enabled: o = !0 }) => {
|
|
3500
|
-
const { texts: { reports: i } } = q(ge), [c, l] =
|
|
3511
|
+
const { texts: { reports: i } } = q(ge), [c, l] = O(!1), u = te(null), d = n ?? u, m = ne(() => ({
|
|
3501
3512
|
localization: a
|
|
3502
|
-
}), [a]), x =
|
|
3513
|
+
}), [a]), x = k((h) => {
|
|
3503
3514
|
delete h[0], delete h[1], delete h[2];
|
|
3504
3515
|
const g = [
|
|
3505
3516
|
{
|
|
@@ -3535,16 +3546,16 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3535
3546
|
const { options: y, conditions: j, formats: f, slice: b, ...N } = (h = d.current) == null ? void 0 : h.flexmonster.getReport();
|
|
3536
3547
|
if (N === void 0 || typeof N == "string")
|
|
3537
3548
|
return;
|
|
3538
|
-
const
|
|
3539
|
-
|
|
3549
|
+
const S = wc(t);
|
|
3550
|
+
S.options = {
|
|
3540
3551
|
...t == null ? void 0 : t.options,
|
|
3541
3552
|
grid: { ...(g = t == null ? void 0 : t.options) == null ? void 0 : g.grid, autoSwitchToCompact: !1 }
|
|
3542
3553
|
};
|
|
3543
|
-
const I = { ...N, ...
|
|
3554
|
+
const I = { ...N, ...S };
|
|
3544
3555
|
(p = d.current) == null || p.flexmonster.setReport(I), console.log("Refreshing flexmonster settings. New report: ", I);
|
|
3545
3556
|
}
|
|
3546
3557
|
}, [o, c, d, t]), /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(
|
|
3547
|
-
|
|
3558
|
+
Os,
|
|
3548
3559
|
{
|
|
3549
3560
|
ref: d,
|
|
3550
3561
|
global: m,
|
|
@@ -3559,7 +3570,7 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3559
3570
|
}
|
|
3560
3571
|
) });
|
|
3561
3572
|
}, Nc = (e, t, n, a) => {
|
|
3562
|
-
const { texts: { reports: s } } = q(ge), { prompt: o } =
|
|
3573
|
+
const { texts: { reports: s } } = q(ge), { prompt: o } = bs(), { confirm: i } = Tt(), c = Xe(), { user: l } = q(Ft), { startLoading: u, stopLoading: d } = q(Ot), { addNotification: m } = _r(), x = k(async (y) => {
|
|
3563
3574
|
u("report-versionSavingAs");
|
|
3564
3575
|
try {
|
|
3565
3576
|
const j = await c.post("/reports/version", y);
|
|
@@ -3567,14 +3578,14 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3567
3578
|
} finally {
|
|
3568
3579
|
d("report-versionSavingAs");
|
|
3569
3580
|
}
|
|
3570
|
-
}, [m, a, c, s.saveSuccessful, u, d]), v =
|
|
3581
|
+
}, [m, a, c, s.saveSuccessful, u, d]), v = k(async () => {
|
|
3571
3582
|
if (n === null) {
|
|
3572
3583
|
m("none open", "warning");
|
|
3573
3584
|
return;
|
|
3574
3585
|
}
|
|
3575
3586
|
if (!await i(s.confirmOverwriteSave))
|
|
3576
3587
|
return;
|
|
3577
|
-
const j =
|
|
3588
|
+
const j = rr(t);
|
|
3578
3589
|
x({
|
|
3579
3590
|
reportSourceName: e,
|
|
3580
3591
|
reportVersionId: n,
|
|
@@ -3588,17 +3599,17 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3588
3599
|
s.confirmOverwriteSave,
|
|
3589
3600
|
x,
|
|
3590
3601
|
n
|
|
3591
|
-
]), h =
|
|
3602
|
+
]), h = k(async () => {
|
|
3592
3603
|
const y = await o(s.enterName, { input: "input", required: !0 });
|
|
3593
3604
|
if (y === null)
|
|
3594
3605
|
return;
|
|
3595
|
-
const j =
|
|
3606
|
+
const j = rr(t);
|
|
3596
3607
|
x({
|
|
3597
3608
|
reportSourceName: e,
|
|
3598
3609
|
name: y,
|
|
3599
3610
|
settings: j
|
|
3600
3611
|
});
|
|
3601
|
-
}, [t, o, e, s.enterName, x]), g =
|
|
3612
|
+
}, [t, o, e, s.enterName, x]), g = k(async () => {
|
|
3602
3613
|
u("report-versionSavingAs");
|
|
3603
3614
|
try {
|
|
3604
3615
|
await c.post("/reports/version", {
|
|
@@ -3617,7 +3628,7 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3617
3628
|
n,
|
|
3618
3629
|
u,
|
|
3619
3630
|
d
|
|
3620
|
-
]), p =
|
|
3631
|
+
]), p = k(async () => {
|
|
3621
3632
|
u("report-versionSavingAs");
|
|
3622
3633
|
try {
|
|
3623
3634
|
await c.post("/reports/version-restrictions", {
|
|
@@ -3643,8 +3654,8 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3643
3654
|
]);
|
|
3644
3655
|
return { saveAs: h, save: v, archive: g, detach: p };
|
|
3645
3656
|
}, Cc = (e) => {
|
|
3646
|
-
const t =
|
|
3647
|
-
return { changeEmployeeRights:
|
|
3657
|
+
const t = Xe(), { startLoading: n, stopLoading: a } = q(Ot);
|
|
3658
|
+
return { changeEmployeeRights: k(async (o, i) => {
|
|
3648
3659
|
let c = null;
|
|
3649
3660
|
n("reportSharing-addPerson");
|
|
3650
3661
|
try {
|
|
@@ -3662,13 +3673,13 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3662
3673
|
}
|
|
3663
3674
|
return c;
|
|
3664
3675
|
}, [t, e, n, a]) };
|
|
3665
|
-
},
|
|
3666
|
-
const { ProjectIconComponent: i, texts: { reports: c } } = q(ge), { confirm: l } = Tt(), [u, d] =
|
|
3676
|
+
}, kc = ({ isOpen: e, onHide: t, usersData: n, setUsersData: a, reportVersionId: s, EmployeePicker: o }) => {
|
|
3677
|
+
const { ProjectIconComponent: i, texts: { reports: c } } = q(ge), { confirm: l } = Tt(), [u, d] = O(null), { changeEmployeeRights: m } = Cc(s), x = k(async () => {
|
|
3667
3678
|
if (u === null)
|
|
3668
3679
|
return;
|
|
3669
3680
|
const h = await m(u, !0);
|
|
3670
3681
|
a(s, h);
|
|
3671
|
-
}, [u, m, s, a]), v =
|
|
3682
|
+
}, [u, m, s, a]), v = k(async (h) => {
|
|
3672
3683
|
if (!await l(c.removeSharingWith(h)))
|
|
3673
3684
|
return;
|
|
3674
3685
|
const p = await m(h, !1);
|
|
@@ -3699,8 +3710,8 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3699
3710
|
] })
|
|
3700
3711
|
] })
|
|
3701
3712
|
] });
|
|
3702
|
-
},
|
|
3703
|
-
const [n, a] =
|
|
3713
|
+
}, Sc = (e, t) => {
|
|
3714
|
+
const [n, a] = O(null);
|
|
3704
3715
|
return M(() => {
|
|
3705
3716
|
e.then(({ default: s }) => {
|
|
3706
3717
|
const o = t !== void 0 ? t(s) : s;
|
|
@@ -3708,17 +3719,17 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3708
3719
|
});
|
|
3709
3720
|
}, [t, e]), { mappings: n };
|
|
3710
3721
|
}, Rd = ({ reportType: e, title: t, data: n, filterElements: a, getReportRoute: s, localization: o, licenseKey: i, EmployeePicker: c, localizationJsonFile: l, localizationTransformer: u }) => {
|
|
3711
|
-
const { texts: { reports: d } } = q(ge), { confirm: m } = Tt(), x =
|
|
3722
|
+
const { texts: { reports: d } } = q(ge), { confirm: m } = Tt(), x = Nr(), { id: v } = Fs(), h = ne(() => v === void 0 ? null : Number(v), [v]), g = k((A) => {
|
|
3712
3723
|
const z = A === null ? "" : A.toString();
|
|
3713
|
-
x(
|
|
3724
|
+
x(St(s(e), { id: z }), {
|
|
3714
3725
|
replace: !0
|
|
3715
3726
|
});
|
|
3716
|
-
}, [s, x, e]), [p, y] =
|
|
3727
|
+
}, [s, x, e]), [p, y] = O(!1), j = te(null), { user: f } = q(Ft), { data: b, reloadData: N, setData: S } = Ms(`/reports/${e}`), { mappings: I } = Sc(l, u), [D, C] = O({}), L = k((A) => {
|
|
3717
3728
|
if (b === null)
|
|
3718
3729
|
return;
|
|
3719
3730
|
const z = A.target.value, me = z === "" ? null : Number(z);
|
|
3720
3731
|
g(me);
|
|
3721
|
-
}, [b, g]),
|
|
3732
|
+
}, [b, g]), F = k(async (A) => {
|
|
3722
3733
|
await N(), g(A);
|
|
3723
3734
|
}, [N, g]), _ = ne(() => {
|
|
3724
3735
|
if (b === null)
|
|
@@ -3737,17 +3748,17 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3737
3748
|
const A = bc(_) ?? {};
|
|
3738
3749
|
C(A), (z = j.current) == null || z.flexmonster.refresh();
|
|
3739
3750
|
}, [b, _, h]);
|
|
3740
|
-
const { save: W, saveAs:
|
|
3751
|
+
const { save: W, saveAs: B, archive: X, detach: R } = Nc(e, j, h, F), $ = ne(() => ({
|
|
3741
3752
|
data: n ?? [],
|
|
3742
3753
|
mapping: I ?? void 0
|
|
3743
|
-
}), [n, I]), P =
|
|
3754
|
+
}), [n, I]), P = k(async () => {
|
|
3744
3755
|
var z;
|
|
3745
3756
|
await m(d.confirmRevertChanges) && ((z = j.current) == null || z.flexmonster.setReport({ dataSource: $, ...D }));
|
|
3746
3757
|
}, [m, $, d.confirmRevertChanges, D]), U = ne(() => (_ == null ? void 0 : _.ownerId) === f.personalNumber, [_ == null ? void 0 : _.ownerId, f.personalNumber]), Z = ne(() => {
|
|
3747
3758
|
var A;
|
|
3748
3759
|
return (A = _ == null ? void 0 : _.users) == null ? void 0 : A.some((z) => z.id === f.personalNumber && !z.isReportOwner);
|
|
3749
|
-
}, [_ == null ? void 0 : _.users, f.personalNumber]), Q =
|
|
3750
|
-
|
|
3760
|
+
}, [_ == null ? void 0 : _.users, f.personalNumber]), Q = k((A, z) => {
|
|
3761
|
+
S((me) => {
|
|
3751
3762
|
const G = me == null ? void 0 : me.reportVersions.findIndex((Ie) => Ie.reportVersionId === A);
|
|
3752
3763
|
if (G === void 0 || me === null)
|
|
3753
3764
|
return me;
|
|
@@ -3760,37 +3771,37 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3760
3771
|
reportVersions: Ne
|
|
3761
3772
|
};
|
|
3762
3773
|
});
|
|
3763
|
-
}, [
|
|
3774
|
+
}, [S]), E = k(async () => {
|
|
3764
3775
|
await m(d.confirmDelete(_ == null ? void 0 : _.name)) && (await X(), g(null), await N());
|
|
3765
|
-
}, [X, m, N, _ == null ? void 0 : _.name, d, g]), ee =
|
|
3776
|
+
}, [X, m, N, _ == null ? void 0 : _.name, d, g]), ee = k(async () => {
|
|
3766
3777
|
await m(d.confirmDetach(_ == null ? void 0 : _.name)) && (await R(), g(null), await N());
|
|
3767
3778
|
}, [m, R, N, _ == null ? void 0 : _.name, d, g]);
|
|
3768
3779
|
return M(() => {
|
|
3769
3780
|
var A;
|
|
3770
3781
|
h === null && g(((A = b == null ? void 0 : b.reportVersions.find((z) => z.isSystem === !0)) == null ? void 0 : A.reportVersionId) ?? null);
|
|
3771
3782
|
}, [b == null ? void 0 : b.reportVersions, h, g]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3772
|
-
/* @__PURE__ */ r.jsx(
|
|
3783
|
+
/* @__PURE__ */ r.jsx(Bs, { title: /* @__PURE__ */ r.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
|
|
3773
3784
|
/* @__PURE__ */ r.jsx(J, { variant: "h3", children: t }),
|
|
3774
3785
|
a,
|
|
3775
3786
|
/* @__PURE__ */ r.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
|
|
3776
|
-
/* @__PURE__ */ r.jsxs(
|
|
3787
|
+
/* @__PURE__ */ r.jsxs(ws, { size: "sm", value: h ?? void 0, onChange: L, children: [
|
|
3777
3788
|
/* @__PURE__ */ r.jsx("optgroup", { label: d.versionSelectSystem, children: b == null ? void 0 : b.reportVersions.filter((A) => A.isSystem === !0).map((A) => /* @__PURE__ */ r.jsx("option", { value: A.reportVersionId, children: A.name }, A.reportVersionId)) }),
|
|
3778
3789
|
/* @__PURE__ */ r.jsx("optgroup", { label: d.versionSelectYour, children: b == null ? void 0 : b.reportVersions.filter((A) => A.ownerId === f.personalNumber).map((A) => /* @__PURE__ */ r.jsx("option", { value: A.reportVersionId, children: A.name }, A.reportVersionId)) }),
|
|
3779
3790
|
/* @__PURE__ */ r.jsx("optgroup", { label: d.versionSelectSharedWithYou, children: b == null ? void 0 : b.reportVersions.filter((A) => A.isSystem === !1 && A.ownerId !== f.personalNumber).map((A) => /* @__PURE__ */ r.jsx("option", { value: A.reportVersionId, children: `${A.name} [${A.ownerId}]` }, A.reportVersionId)) })
|
|
3780
3791
|
] }),
|
|
3781
|
-
/* @__PURE__ */ r.jsx(
|
|
3782
|
-
/* @__PURE__ */ r.jsx(
|
|
3783
|
-
/* @__PURE__ */ r.jsxs(un, { toggle: /* @__PURE__ */ r.jsx(fn, { as:
|
|
3784
|
-
/* @__PURE__ */ r.jsx(
|
|
3785
|
-
/* @__PURE__ */ r.jsx(
|
|
3786
|
-
U && !(_ != null && _.isSystem) ? /* @__PURE__ */ r.jsx(
|
|
3787
|
-
Z && !(_ != null && _.isSystem) ? /* @__PURE__ */ r.jsx(
|
|
3792
|
+
/* @__PURE__ */ r.jsx(Te, { icon: /* @__PURE__ */ r.jsx(_s, {}), onClick: W, disabled: h === null || (_ == null ? void 0 : _.isSystem) || !U, children: d.save }),
|
|
3793
|
+
/* @__PURE__ */ r.jsx(Te, { icon: /* @__PURE__ */ r.jsx(Ns, {}), onClick: B, className: "flex-shrink-0", children: d.saveAs }),
|
|
3794
|
+
/* @__PURE__ */ r.jsxs(un, { toggle: /* @__PURE__ */ r.jsx(fn, { as: xr }), children: [
|
|
3795
|
+
/* @__PURE__ */ r.jsx(Ze, { onClick: P, children: d.revertChanges }),
|
|
3796
|
+
/* @__PURE__ */ r.jsx(Ze, { onClick: () => y(!0), disabled: !U || (_ == null ? void 0 : _.isSystem), children: d.share }),
|
|
3797
|
+
U && !(_ != null && _.isSystem) ? /* @__PURE__ */ r.jsx(Ze, { color: "danger", onClick: E, children: d.delete }) : null,
|
|
3798
|
+
Z && !(_ != null && _.isSystem) ? /* @__PURE__ */ r.jsx(Ze, { color: "danger", onClick: ee, children: d.detach }) : null
|
|
3788
3799
|
] })
|
|
3789
3800
|
] })
|
|
3790
3801
|
] }), children: /* @__PURE__ */ r.jsx("div", { className: w("h-100 w-100", $.data && $.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ r.jsx(_c, { dataSource: $, settings: D, pivotRef: j, enabled: $.data && $.data.length > 0, localization: o, licenseKey: i }) }) }),
|
|
3791
|
-
_ !== null ? /* @__PURE__ */ r.jsx(
|
|
3802
|
+
_ !== null ? /* @__PURE__ */ r.jsx(kc, { isOpen: p, onHide: () => y(!1), usersData: _.users ?? null, setUsersData: Q, reportVersionId: _ == null ? void 0 : _.reportVersionId, EmployeePicker: c }) : null
|
|
3792
3803
|
] });
|
|
3793
|
-
}, Ad = ({ cell: { value: e } }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: e ? /* @__PURE__ */ r.jsx(
|
|
3804
|
+
}, Ad = ({ cell: { value: e } }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: e ? /* @__PURE__ */ r.jsx(jr, { name: e, size: 21, fontSize: 12 }) : /* @__PURE__ */ r.jsx(r.Fragment, {}) }), Ic = ({ knownTypes: e, typeFilters: t, onChangeTypeFilters: n }) => /* @__PURE__ */ r.jsx("div", { className: "mb-1 d-flex justify-content-center gap-2", children: e.map((a) => /* @__PURE__ */ r.jsx("div", { role: "button", style: {
|
|
3794
3805
|
height: "14px",
|
|
3795
3806
|
width: "14px",
|
|
3796
3807
|
borderRadius: "50%",
|
|
@@ -3798,7 +3809,7 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3798
3809
|
backgroundColor: "transparent"
|
|
3799
3810
|
}, className: w(`border-${a}`, t.includes(a) && `bg-${a}`), onClick: () => {
|
|
3800
3811
|
t.includes(a) ? n(t.filter((s) => s !== a)) : n([...t, a]);
|
|
3801
|
-
} }, a)) }), Dc = ({ linksTo: e, onClick: t, children: n }) => e ? /* @__PURE__ */ r.jsx(
|
|
3812
|
+
} }, a)) }), Dc = ({ linksTo: e, onClick: t, children: n }) => e ? /* @__PURE__ */ r.jsx(Je, { to: e, className: "text-decoration-none", onClick: t, children: n }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: n }), $c = ({ message: e, onDeleteMessage: t, onClickMessage: n, getIcon: a, getLinksTo: s }) => {
|
|
3802
3813
|
const { ProjectIconComponent: o, localizationContext: i } = q(ge), { dateFnsLocale: c } = q(i), l = e.dateTime ? vt(e.dateTime) : null, u = l ? Ws(new Date(Date.now()), l) : 0;
|
|
3803
3814
|
return /* @__PURE__ */ r.jsxs("div", { children: [
|
|
3804
3815
|
l && /* @__PURE__ */ r.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ r.jsx(Lt, { text: xt(l, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(J, { variant: "caption", children: u > 2 ? xt(l, "dd.MM.yyyy") : Us(l, new Date(Date.now()), {
|
|
@@ -3817,26 +3828,26 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3817
3828
|
] })
|
|
3818
3829
|
] }) }) })
|
|
3819
3830
|
] });
|
|
3820
|
-
},
|
|
3821
|
-
const { texts: { messageBoard: i } } = q(ge), [c, l] =
|
|
3831
|
+
}, ar = ["info", "warning", "danger"], sr = ({ messages: e, isLoading: t, onDeleteMessage: n, onClickMessage: a, getIcon: s, getLinksTo: o }) => {
|
|
3832
|
+
const { texts: { messageBoard: i } } = q(ge), [c, l] = O(ar), u = ne(() => e.filter((d) => c.includes(d.type ?? "")), [c, e]);
|
|
3822
3833
|
return /* @__PURE__ */ r.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
|
|
3823
|
-
/* @__PURE__ */ r.jsx(Ic, { knownTypes:
|
|
3834
|
+
/* @__PURE__ */ r.jsx(Ic, { knownTypes: ar, typeFilters: c, onChangeTypeFilters: (d) => l(d) }),
|
|
3824
3835
|
t && /* @__PURE__ */ r.jsxs("div", { className: "p-3 w-100", children: [
|
|
3825
|
-
/* @__PURE__ */ r.jsx(
|
|
3826
|
-
/* @__PURE__ */ r.jsxs(
|
|
3827
|
-
/* @__PURE__ */ r.jsx(
|
|
3836
|
+
/* @__PURE__ */ r.jsx(Me, { as: Ln.Title, animation: "glow", children: /* @__PURE__ */ r.jsx(Me, { xs: 6 }) }),
|
|
3837
|
+
/* @__PURE__ */ r.jsxs(Me, { as: Ln.Text, animation: "glow", children: [
|
|
3838
|
+
/* @__PURE__ */ r.jsx(Me, { xs: 7 }),
|
|
3828
3839
|
" ",
|
|
3829
|
-
/* @__PURE__ */ r.jsx(
|
|
3840
|
+
/* @__PURE__ */ r.jsx(Me, { xs: 4 }),
|
|
3830
3841
|
" ",
|
|
3831
|
-
/* @__PURE__ */ r.jsx(
|
|
3842
|
+
/* @__PURE__ */ r.jsx(Me, { xs: 4 }),
|
|
3832
3843
|
" ",
|
|
3833
|
-
/* @__PURE__ */ r.jsx(
|
|
3844
|
+
/* @__PURE__ */ r.jsx(Me, { xs: 6 }),
|
|
3834
3845
|
" ",
|
|
3835
|
-
/* @__PURE__ */ r.jsx(
|
|
3846
|
+
/* @__PURE__ */ r.jsx(Me, { xs: 8 })
|
|
3836
3847
|
] })
|
|
3837
3848
|
] }),
|
|
3838
3849
|
!t && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3839
|
-
e.length === 0 && /* @__PURE__ */ r.jsx(
|
|
3850
|
+
e.length === 0 && /* @__PURE__ */ r.jsx(da, { variant: "info", size: "sm", className: "mt-2", children: i.noMessages }),
|
|
3840
3851
|
/* @__PURE__ */ r.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: u.map((d) => /* @__PURE__ */ r.jsx($c, { message: d, onDeleteMessage: n, onClickMessage: a, getIcon: s, getLinksTo: o }, d.id)) })
|
|
3841
3852
|
] })
|
|
3842
3853
|
] });
|
|
@@ -3844,15 +3855,15 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3844
3855
|
apiGet: "/messageBoard",
|
|
3845
3856
|
apiDelete: "/messageBoard/"
|
|
3846
3857
|
}, Md = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: n = Kt.apiGet, apiDelete: a = Kt.apiDelete } = Kt, getIcon: s, getLinksTo: o }) => {
|
|
3847
|
-
const c =
|
|
3858
|
+
const c = Xe(), [l, u] = O([]), [d, m] = O(!1), [x, v] = O(!1), [h, g] = O(!1), p = k(async () => {
|
|
3848
3859
|
v(!0), await c.get(n).then(({ data: N }) => {
|
|
3849
3860
|
u(N), m(!0), v(!1);
|
|
3850
3861
|
}).catch(() => {
|
|
3851
3862
|
u([]), v(!1);
|
|
3852
3863
|
});
|
|
3853
|
-
}, [n, c]), y =
|
|
3854
|
-
y(N).then((
|
|
3855
|
-
|
|
3864
|
+
}, [n, c]), y = k(async (N) => c.delete(`${a}${N}`).then(() => !0).catch(() => !1), [a, c]), j = k((N) => {
|
|
3865
|
+
y(N).then((S) => {
|
|
3866
|
+
S && u(l.filter((I) => I.id !== N));
|
|
3856
3867
|
});
|
|
3857
3868
|
}, [y, l]);
|
|
3858
3869
|
M(() => {
|
|
@@ -3868,18 +3879,18 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3868
3879
|
/* @__PURE__ */ r.jsx(re, { size: "md", onClick: () => g(!h), children: t }),
|
|
3869
3880
|
f > 0 && /* @__PURE__ */ r.jsx("div", { className: "badge rounded-pill bg-danger p-1 px-2 text-white", style: { position: "absolute", top: "-6px", right: "-10px", fontSize: "10px" }, children: f })
|
|
3870
3881
|
] }),
|
|
3871
|
-
/* @__PURE__ */ r.jsx(
|
|
3872
|
-
] }) : /* @__PURE__ */ r.jsx(
|
|
3873
|
-
},
|
|
3882
|
+
/* @__PURE__ */ r.jsx(Bn, { show: h, onHide: () => g(!1), placement: "end", children: /* @__PURE__ */ r.jsx(Bn.Body, { children: /* @__PURE__ */ r.jsx(sr, { messages: l, isLoading: b, onDeleteMessage: j, onClickMessage: () => g(!1), getIcon: s, getLinksTo: o }) }) })
|
|
3883
|
+
] }) : /* @__PURE__ */ r.jsx(sr, { messages: l, isLoading: b, onDeleteMessage: j, getIcon: s, getLinksTo: o });
|
|
3884
|
+
}, Ec = "_tab-panel_d8l8q_1", Fc = "_full-height-no-overflow_d8l8q_5", Oc = "_disabled_d8l8q_12", qt = {
|
|
3874
3885
|
"tab-panel": "_tab-panel_d8l8q_1",
|
|
3875
|
-
tabPanel:
|
|
3886
|
+
tabPanel: Ec,
|
|
3876
3887
|
"full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
|
|
3877
|
-
fullHeightNoOverflow:
|
|
3878
|
-
disabled:
|
|
3879
|
-
},
|
|
3888
|
+
fullHeightNoOverflow: Fc,
|
|
3889
|
+
disabled: Oc
|
|
3890
|
+
}, Bd = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: n, disabled: a, className: s, children: o }) => e !== t ? null : /* @__PURE__ */ r.jsx("div", { className: w("luminus-tab-panel", qt.tabPanel, { [qt.fullHeightNoOverflow]: n }, { disabled: a }, { [qt.disabled]: a }, s), children: o }), Tc = "_join-line_1q9e8_1", Lc = {
|
|
3880
3891
|
"join-line": "_join-line_1q9e8_1",
|
|
3881
3892
|
joinLine: Tc
|
|
3882
|
-
},
|
|
3893
|
+
}, Vd = ({ activeTab: e, onSelect: t, children: n, vertical: a, verticalStepper: s }) => /* @__PURE__ */ r.jsx("div", { className: w("luminus-tabs d-flex mb-2", { "gap-1": !s }, { "gap-0": s }, {
|
|
3883
3894
|
"flex-column": a || s
|
|
3884
3895
|
}), children: n.map((o, i) => {
|
|
3885
3896
|
const c = o.type, l = o.props;
|
|
@@ -3900,24 +3911,24 @@ const hd = ({ InputContainer: e = Xe, value: t, onChange: n, debounceMs: a, labe
|
|
|
3900
3911
|
disabled: a
|
|
3901
3912
|
}, { [Qt.disabled]: a }, { vertical: s }, { [Qt.vertical]: s }), onClick: () => n && !a && n(e), children: typeof o == "string" ? /* @__PURE__ */ r.jsx(J, { variant: s ? "body" : "h6", className: s ? "" : "text-primary", children: o }) : o });
|
|
3902
3913
|
export {
|
|
3903
|
-
|
|
3914
|
+
da as Alert,
|
|
3904
3915
|
ml as AlertItem,
|
|
3905
3916
|
ed as ApiFileDownloadButton,
|
|
3906
3917
|
id as AppSearch,
|
|
3907
3918
|
ld as AuthTemplate,
|
|
3908
|
-
|
|
3909
|
-
|
|
3919
|
+
jr as AvatarIcon,
|
|
3920
|
+
la as Backdrop,
|
|
3910
3921
|
ad as Badge,
|
|
3911
|
-
|
|
3922
|
+
Sd as BarChart,
|
|
3912
3923
|
Ai as Card,
|
|
3913
|
-
|
|
3924
|
+
fa as CheckInput,
|
|
3914
3925
|
Yo as Collapse,
|
|
3915
|
-
|
|
3926
|
+
Te as ContextButton,
|
|
3916
3927
|
bd as DisabledRowLabelLink,
|
|
3917
3928
|
zd as Documents,
|
|
3918
3929
|
un as Dropdown,
|
|
3919
3930
|
od as DropdownDivider,
|
|
3920
|
-
|
|
3931
|
+
Ze as DropdownItem,
|
|
3921
3932
|
ud as DropdownPicker,
|
|
3922
3933
|
fn as DropdownToggle,
|
|
3923
3934
|
jd as DynamicForm,
|
|
@@ -3925,37 +3936,37 @@ export {
|
|
|
3925
3936
|
Ro as ErrorBoundary,
|
|
3926
3937
|
Ud as FileExtensionIcon,
|
|
3927
3938
|
nd as FileUploadButton,
|
|
3928
|
-
|
|
3939
|
+
aa as FileUploadContextButton,
|
|
3929
3940
|
sd as FileUploadDropdownItem,
|
|
3930
3941
|
_c as Flexmonster,
|
|
3931
3942
|
pl as FloatingActionContainer,
|
|
3932
3943
|
po as FloatingFormSubmit,
|
|
3933
|
-
|
|
3944
|
+
et as FloatingLabelInput,
|
|
3934
3945
|
gd as FromToDatePicker,
|
|
3935
3946
|
rd as HomeDashboard,
|
|
3936
3947
|
Id as HookFormCheckInput,
|
|
3937
3948
|
$d as HookFormDropdownPicker,
|
|
3938
|
-
|
|
3939
|
-
|
|
3949
|
+
Ed as HookFormFileInput,
|
|
3950
|
+
Fd as HookFormFloatingSubmit,
|
|
3940
3951
|
Td as HookFormNumericStepperInput,
|
|
3941
3952
|
Ld as HookFormNumericTextInput,
|
|
3942
3953
|
Dd as HookFormRadioInput,
|
|
3943
|
-
|
|
3954
|
+
Od as HookFormSelectInput,
|
|
3944
3955
|
Gd as HookFormTextAreaInput,
|
|
3945
3956
|
Yd as HookFormTextInput,
|
|
3946
3957
|
td as HtmlTooltip,
|
|
3947
3958
|
re as IconButton,
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3959
|
+
Un as ImgApi,
|
|
3960
|
+
ca as ImgDirect,
|
|
3961
|
+
tt as InvalidFeedback,
|
|
3951
3962
|
wd as LanguageSwitch,
|
|
3952
|
-
|
|
3953
|
-
|
|
3963
|
+
In as Loading,
|
|
3964
|
+
Vs as LoadingBlock,
|
|
3954
3965
|
Md as MessageBoard,
|
|
3955
3966
|
vo as MonthPicker,
|
|
3956
3967
|
pd as MonthPickerSearchParams,
|
|
3957
|
-
|
|
3958
|
-
|
|
3968
|
+
Ee as NoInputContainer,
|
|
3969
|
+
kd as NumericFormat,
|
|
3959
3970
|
md as NumericStepperInput,
|
|
3960
3971
|
hd as NumericTextInput,
|
|
3961
3972
|
ol as PhotoLibrary,
|
|
@@ -3965,25 +3976,25 @@ export {
|
|
|
3965
3976
|
Rd as ReportPage,
|
|
3966
3977
|
Kd as ResponsiveContextDropdown,
|
|
3967
3978
|
qd as ResponsiveContextDropdownItem,
|
|
3968
|
-
|
|
3979
|
+
He as RowLabelInput,
|
|
3969
3980
|
Cd as SearchBox,
|
|
3970
3981
|
Dt as SelectInput,
|
|
3971
3982
|
yd as SettingsFormPicker,
|
|
3972
3983
|
jn as SimplePicker,
|
|
3973
|
-
|
|
3984
|
+
xr as SimpleToggle,
|
|
3974
3985
|
Lt as SimpleTooltip,
|
|
3975
3986
|
Pd as Tab,
|
|
3976
|
-
|
|
3977
|
-
|
|
3987
|
+
Bd as TabPanel,
|
|
3988
|
+
Vd as Tabs,
|
|
3978
3989
|
fd as TextAreaInput,
|
|
3979
|
-
|
|
3990
|
+
st as TextInput,
|
|
3980
3991
|
dd as Timeline,
|
|
3981
3992
|
_d as TypedFormGroup,
|
|
3982
3993
|
J as Typography,
|
|
3983
3994
|
Qd as UserAvatarToggle,
|
|
3984
3995
|
Ad as UserAvatarValueFormat,
|
|
3985
3996
|
cd as VersionInfo,
|
|
3986
|
-
|
|
3997
|
+
Pn as WidgetCard,
|
|
3987
3998
|
bo as YearPicker,
|
|
3988
3999
|
xd as YearPickerSearchParams
|
|
3989
4000
|
};
|