react-luminus-components 1.3.58 → 1.3.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/NewTabs/Tab/Tab.d.ts +2 -1
- package/dist/components/NewTabs/Tabs/Tabs.d.ts +3 -1
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +1271 -1262
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { aq as
|
|
1
|
+
import { j as n, c as j, t as ce, a as Je, m as Pr, b as Hr, d as Wr, s as zr, e as Vr, f as Ur, g as Gr, h as Yr, i as Kr, k as qr, l as Qr, T as Xn, n as es, o as gn, E as Zr, p as ts, q as Vt, r as ns, u as Jr, v as z, w as ve, x as ss, F as Lt, y as Xr, z as eo, A as to, B as no, C as so, D as ro, G as oo, H as ao, I as Ut, J as rs, K as os, L as lo, M as Re, N as co, O as io, P as Le, Q as uo, R as Ct, S as V, U as ue, V as fo, W as mo, X as as, Y as Gt, Z as Yt, _ as po, $ as ls, a0 as ho, a1 as cs, a2 as Kt, a3 as go, a4 as xo, a5 as st, a6 as is, a7 as ye, a8 as jo, a9 as wo, aa as yo, ab as ds, ac as bo, ad as us, ae as vo, af as He, ag as fs, ah as we, ai as _o, aj as No, ak as ms, al as Co, am as kt, an as Ne, ao as xn, ap as ko } from "./nivo-pie.es-B6Ojc01x.js";
|
|
2
|
+
import { aq as Vd } from "./nivo-pie.es-B6Ojc01x.js";
|
|
3
3
|
import * as M from "react";
|
|
4
|
-
import he, { useCallback as $, useMemo as q, useEffect as O, useRef as Y, useState as
|
|
5
|
-
import { c as $e, d as yt, C as Fo, a as hs, u as Eo, q as
|
|
4
|
+
import he, { useCallback as $, useMemo as q, useEffect as O, useRef as Y, useState as S, useReducer as ps, useContext as B, Component as $o, isValidElement as Io, Suspense as So, createElement as Do } from "react";
|
|
5
|
+
import { c as $e, d as yt, C as Fo, a as hs, u as Eo, q as jn, F as Oo, b as gs, A as To, M as Mo, B as Lo, e as Ro, g as Ao, P as wn, f as ct, L as yn } from "./PrimaryButton-CnFyjyQe.js";
|
|
6
6
|
import { InteractionType as Bo } from "@azure/msal-browser";
|
|
7
7
|
import { MsalAuthenticationTemplate as Po } from "@azure/msal-react";
|
|
8
|
-
import { Link as _e, Navigate as it, generatePath as
|
|
9
|
-
import { useFormContext as
|
|
10
|
-
import { s as
|
|
11
|
-
import { S as
|
|
8
|
+
import { Link as _e, Navigate as it, generatePath as Rt } from "react-router-dom";
|
|
9
|
+
import { useFormContext as Ce, Controller as xs } from "react-hook-form";
|
|
10
|
+
import { s as bn, g as vn, d as ut, a as Ie, f as Xe, t as De, b as Ho, c as Wo, p as et } from "./dateUtils-BSbNrnHO.js";
|
|
11
|
+
import { S as qt } from "./SimpleTooltip-B5HNfoAQ.js";
|
|
12
12
|
import { u as js, a as ws, b as ys, c as zo, d as Vo, e as Uo } from "./useEmployeePhotoPath-DjxgOb6H.js";
|
|
13
13
|
import pt from "react-dom";
|
|
14
14
|
import { u as Go } from "./useConfirm-QPOkaeUY.js";
|
|
15
|
-
import { s as
|
|
16
|
-
const
|
|
15
|
+
import { s as At } from "./searchUtils-ClCfXRxm.js";
|
|
16
|
+
const rd = ({ fileLoader: t, fileName: e, children: s }) => {
|
|
17
17
|
const r = $(async () => {
|
|
18
18
|
var i, c;
|
|
19
19
|
const o = await t();
|
|
@@ -22,137 +22,137 @@ const td = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
|
22
22
|
const a = window.URL.createObjectURL(new Blob([o])), l = document.createElement("a");
|
|
23
23
|
l.href = a, l.setAttribute("download", e), (i = document.body) == null || i.appendChild(l), l.click(), (c = document.body) == null || c.removeChild(l);
|
|
24
24
|
}, [t, e]);
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
}, Yo = ({ className: t, ...e }) => /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ n.jsx("div", { role: "button", onClick: r, children: s });
|
|
26
|
+
}, Yo = ({ className: t, ...e }) => /* @__PURE__ */ n.jsxs("div", { className: j("luminus-loading", $e.loading, $e.loadingBlock, $e.loadingBlock), ...e, children: [
|
|
27
|
+
/* @__PURE__ */ n.jsx("div", { className: j("spinner-grow", $e.spinnerGrow, "text-primary"), role: "status" }),
|
|
28
|
+
/* @__PURE__ */ n.jsx("div", { className: j("spinner-grow", $e.spinnerGrow, "text-primary", $e.second), role: "status" }),
|
|
29
|
+
/* @__PURE__ */ n.jsx("div", { className: j("spinner-grow", $e.spinnerGrow, "text-primary", $e.third), role: "status" })
|
|
30
30
|
] });
|
|
31
|
-
function
|
|
32
|
-
const
|
|
31
|
+
function bs(t, e) {
|
|
32
|
+
const s = ce(t);
|
|
33
33
|
if (isNaN(e)) return Je(t, NaN);
|
|
34
34
|
if (!e)
|
|
35
|
-
return
|
|
36
|
-
const r =
|
|
37
|
-
o.setMonth(
|
|
35
|
+
return s;
|
|
36
|
+
const r = s.getDate(), o = Je(t, s.getTime());
|
|
37
|
+
o.setMonth(s.getMonth() + e + 1, 0);
|
|
38
38
|
const a = o.getDate();
|
|
39
|
-
return r >= a ? o : (
|
|
39
|
+
return r >= a ? o : (s.setFullYear(
|
|
40
40
|
o.getFullYear(),
|
|
41
41
|
o.getMonth(),
|
|
42
42
|
r
|
|
43
|
-
),
|
|
43
|
+
), s);
|
|
44
44
|
}
|
|
45
45
|
function Ko(t, e) {
|
|
46
|
-
return
|
|
46
|
+
return bs(t, e * 12);
|
|
47
47
|
}
|
|
48
48
|
function qo(t, e) {
|
|
49
|
-
const
|
|
49
|
+
const s = ce(t), r = ce(e), o = s.getTime() - r.getTime();
|
|
50
50
|
return o < 0 ? -1 : o > 0 ? 1 : o;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
const
|
|
52
|
+
function _n(t, e) {
|
|
53
|
+
const s = ce(t), r = ce(e), o = s.getFullYear() - r.getFullYear(), a = s.getMonth() - r.getMonth();
|
|
54
54
|
return o * 12 + a;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Nn(t) {
|
|
57
57
|
const e = ce(t);
|
|
58
58
|
return Math.trunc(e.getMonth() / 3) + 1;
|
|
59
59
|
}
|
|
60
60
|
function $t(t, e) {
|
|
61
|
-
const
|
|
61
|
+
const s = ce(t), r = ce(e), o = s.getFullYear() - r.getFullYear(), a = Nn(s) - Nn(r);
|
|
62
62
|
return o * 4 + a;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
const r =
|
|
64
|
+
function Cn(t, e, s) {
|
|
65
|
+
const r = bn(t, s), o = bn(e, s), a = +r - vn(r), l = +o - vn(o);
|
|
66
66
|
return Math.round((a - l) / Pr);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const
|
|
70
|
-
return
|
|
68
|
+
function It(t, e) {
|
|
69
|
+
const s = ce(t), r = ce(e);
|
|
70
|
+
return s.getFullYear() - r.getFullYear();
|
|
71
71
|
}
|
|
72
72
|
function Qo(t, e) {
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
const l = +(kn(
|
|
73
|
+
const s = ce(t), r = ce(e), o = kn(s, r), a = Math.abs(ut(s, r));
|
|
74
|
+
s.setDate(s.getDate() - o * a);
|
|
75
|
+
const l = +(kn(s, r) === -o), i = o * (a - l);
|
|
76
76
|
return i === 0 ? 0 : i;
|
|
77
77
|
}
|
|
78
78
|
function kn(t, e) {
|
|
79
|
-
const
|
|
80
|
-
return
|
|
79
|
+
const s = t.getFullYear() - e.getFullYear() || t.getMonth() - e.getMonth() || t.getDate() - e.getDate() || t.getHours() - e.getHours() || t.getMinutes() - e.getMinutes() || t.getSeconds() - e.getSeconds() || t.getMilliseconds() - e.getMilliseconds();
|
|
80
|
+
return s < 0 ? -1 : s > 0 ? 1 : s;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Qt(t) {
|
|
83
83
|
return (e) => {
|
|
84
84
|
const r = (t ? Math[t] : Math.trunc)(e);
|
|
85
85
|
return r === 0 ? 0 : r;
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Zt(t, e) {
|
|
89
89
|
return +ce(t) - +ce(e);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
const r =
|
|
93
|
-
return
|
|
91
|
+
function $n(t, e, s) {
|
|
92
|
+
const r = Zt(t, e) / Hr;
|
|
93
|
+
return Qt(s == null ? void 0 : s.roundingMethod)(r);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
const r =
|
|
97
|
-
return
|
|
95
|
+
function In(t, e, s) {
|
|
96
|
+
const r = Zt(t, e) / Wr;
|
|
97
|
+
return Qt(s == null ? void 0 : s.roundingMethod)(r);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
const r =
|
|
101
|
-
return
|
|
99
|
+
function St(t, e, s) {
|
|
100
|
+
const r = Zt(t, e) / 1e3;
|
|
101
|
+
return Qt(s == null ? void 0 : s.roundingMethod)(r);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
const
|
|
105
|
-
if (isNaN(
|
|
103
|
+
function Bt(t, e) {
|
|
104
|
+
const s = ce(t);
|
|
105
|
+
if (isNaN(s.getTime()))
|
|
106
106
|
throw new RangeError("Invalid time value");
|
|
107
107
|
const r = (e == null ? void 0 : e.format) ?? "extended", o = (e == null ? void 0 : e.representation) ?? "complete";
|
|
108
108
|
let a = "", l = "";
|
|
109
109
|
const i = r === "extended" ? "-" : "", c = r === "extended" ? ":" : "";
|
|
110
110
|
if (o !== "time") {
|
|
111
|
-
const d =
|
|
112
|
-
a = `${
|
|
111
|
+
const d = Ie(s.getDate(), 2), u = Ie(s.getMonth() + 1, 2);
|
|
112
|
+
a = `${Ie(s.getFullYear(), 4)}${i}${u}${i}${d}`;
|
|
113
113
|
}
|
|
114
114
|
if (o !== "date") {
|
|
115
|
-
const d =
|
|
115
|
+
const d = s.getTimezoneOffset();
|
|
116
116
|
if (d !== 0) {
|
|
117
|
-
const w = Math.abs(d), p =
|
|
117
|
+
const w = Math.abs(d), p = Ie(Math.trunc(w / 60), 2), y = Ie(w % 60, 2);
|
|
118
118
|
l = `${d < 0 ? "+" : "-"}${p}:${y}`;
|
|
119
119
|
} else
|
|
120
120
|
l = "Z";
|
|
121
|
-
const u =
|
|
121
|
+
const u = Ie(s.getHours(), 2), m = Ie(s.getMinutes(), 2), h = Ie(s.getSeconds(), 2), g = a === "" ? "" : "T", x = [u, m, h].join(c);
|
|
122
122
|
a = `${a}${g}${x}${l}`;
|
|
123
123
|
}
|
|
124
124
|
return a;
|
|
125
125
|
}
|
|
126
126
|
function Zo(t) {
|
|
127
|
-
const e = ce(t),
|
|
128
|
-
return o.setFullYear(
|
|
127
|
+
const e = ce(t), s = e.getFullYear(), r = e.getMonth(), o = Je(t, 0);
|
|
128
|
+
return o.setFullYear(s, r + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
129
129
|
}
|
|
130
|
-
function Jo(t, e,
|
|
130
|
+
function Jo(t, e, s) {
|
|
131
131
|
let r = 0, o;
|
|
132
132
|
const a = ce(t), l = ce(e);
|
|
133
|
-
if (
|
|
134
|
-
o =
|
|
133
|
+
if (s != null && s.unit)
|
|
134
|
+
o = s == null ? void 0 : s.unit, o === "second" ? r = St(a, l) : o === "minute" ? r = In(a, l) : o === "hour" ? r = $n(a, l) : o === "day" ? r = ut(a, l) : o === "week" ? r = Cn(a, l) : o === "month" ? r = _n(a, l) : o === "quarter" ? r = $t(a, l) : o === "year" && (r = It(a, l));
|
|
135
135
|
else {
|
|
136
|
-
const c =
|
|
137
|
-
Math.abs(c) < zr ? (r =
|
|
136
|
+
const c = St(a, l);
|
|
137
|
+
Math.abs(c) < zr ? (r = St(a, l), o = "second") : Math.abs(c) < Vr ? (r = In(a, l), o = "minute") : Math.abs(c) < Ur && Math.abs(ut(a, l)) < 1 ? (r = $n(a, l), o = "hour") : Math.abs(c) < Gr && (r = ut(a, l)) && Math.abs(r) < 7 ? o = "day" : Math.abs(c) < Yr ? (r = Cn(a, l), o = "week") : Math.abs(c) < Kr ? (r = _n(a, l), o = "month") : Math.abs(c) < qr && $t(a, l) < 4 ? (r = $t(a, l), o = "quarter") : (r = It(a, l), o = "year");
|
|
138
138
|
}
|
|
139
|
-
return new Intl.RelativeTimeFormat(
|
|
140
|
-
localeMatcher:
|
|
141
|
-
numeric: (
|
|
142
|
-
style:
|
|
139
|
+
return new Intl.RelativeTimeFormat(s == null ? void 0 : s.locale, {
|
|
140
|
+
localeMatcher: s == null ? void 0 : s.localeMatcher,
|
|
141
|
+
numeric: (s == null ? void 0 : s.numeric) || "auto",
|
|
142
|
+
style: s == null ? void 0 : s.style
|
|
143
143
|
}).format(r, o);
|
|
144
144
|
}
|
|
145
145
|
function Xo(t, e) {
|
|
146
|
-
const
|
|
146
|
+
const s = ce(t), r = s.getFullYear(), o = s.getDate(), a = Je(t, 0);
|
|
147
147
|
a.setFullYear(r, e, 15), a.setHours(0, 0, 0, 0);
|
|
148
148
|
const l = Zo(a);
|
|
149
|
-
return
|
|
149
|
+
return s.setMonth(e, Math.min(o, l)), s;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
const
|
|
153
|
-
return isNaN(+
|
|
151
|
+
function vs(t, e) {
|
|
152
|
+
const s = ce(t);
|
|
153
|
+
return isNaN(+s) ? Je(t, NaN) : (s.setFullYear(e), s);
|
|
154
154
|
}
|
|
155
|
-
var ea = function(t, e,
|
|
155
|
+
var ea = function(t, e, s, r, o, a, l, i) {
|
|
156
156
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
157
157
|
throw new Error("invariant requires an error message argument");
|
|
158
158
|
if (!t) {
|
|
@@ -162,7 +162,7 @@ var ea = function(t, e, n, r, o, a, l, i) {
|
|
|
162
162
|
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
|
|
163
163
|
);
|
|
164
164
|
else {
|
|
165
|
-
var d = [
|
|
165
|
+
var d = [s, r, o, a, l, i], u = 0;
|
|
166
166
|
c = new Error(
|
|
167
167
|
e.replace(/%s/g, function() {
|
|
168
168
|
return d[u++];
|
|
@@ -174,11 +174,11 @@ var ea = function(t, e, n, r, o, a, l, i) {
|
|
|
174
174
|
}, ta = ea;
|
|
175
175
|
const Sn = /* @__PURE__ */ Qr(ta);
|
|
176
176
|
function Qe(...t) {
|
|
177
|
-
return t.filter((e) => e != null).reduce((e,
|
|
178
|
-
if (typeof
|
|
177
|
+
return t.filter((e) => e != null).reduce((e, s) => {
|
|
178
|
+
if (typeof s != "function")
|
|
179
179
|
throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");
|
|
180
|
-
return e === null ?
|
|
181
|
-
e.apply(this, o),
|
|
180
|
+
return e === null ? s : function(...o) {
|
|
181
|
+
e.apply(this, o), s.apply(this, o);
|
|
182
182
|
};
|
|
183
183
|
}, null);
|
|
184
184
|
}
|
|
@@ -187,20 +187,20 @@ const na = {
|
|
|
187
187
|
width: ["marginLeft", "marginRight"]
|
|
188
188
|
};
|
|
189
189
|
function sa(t, e) {
|
|
190
|
-
const
|
|
190
|
+
const s = `offset${t[0].toUpperCase()}${t.slice(1)}`, r = e[s], o = na[t];
|
|
191
191
|
return r + // @ts-ignore
|
|
192
|
-
parseInt(
|
|
193
|
-
parseInt(
|
|
192
|
+
parseInt(gn(e, o[0]), 10) + // @ts-ignore
|
|
193
|
+
parseInt(gn(e, o[1]), 10);
|
|
194
194
|
}
|
|
195
195
|
const ra = {
|
|
196
196
|
[Zr]: "collapse",
|
|
197
197
|
[ts]: "collapsing",
|
|
198
|
-
[
|
|
198
|
+
[Vt]: "collapsing",
|
|
199
199
|
[ns]: "collapse show"
|
|
200
200
|
}, _s = /* @__PURE__ */ he.forwardRef(({
|
|
201
201
|
onEnter: t,
|
|
202
202
|
onEntering: e,
|
|
203
|
-
onEntered:
|
|
203
|
+
onEntered: s,
|
|
204
204
|
onExit: r,
|
|
205
205
|
onExiting: o,
|
|
206
206
|
className: a,
|
|
@@ -214,19 +214,19 @@ const ra = {
|
|
|
214
214
|
getDimensionValue: g = sa,
|
|
215
215
|
...x
|
|
216
216
|
}, w) => {
|
|
217
|
-
const p = typeof i == "function" ? i() : i, y = q(() => Qe((
|
|
218
|
-
|
|
219
|
-
}, t), [p, t]), N = q(() => Qe((
|
|
217
|
+
const p = typeof i == "function" ? i() : i, y = q(() => Qe((k) => {
|
|
218
|
+
k.style[p] = "0";
|
|
219
|
+
}, t), [p, t]), N = q(() => Qe((k) => {
|
|
220
220
|
const _ = `scroll${p[0].toUpperCase()}${p.slice(1)}`;
|
|
221
|
-
|
|
222
|
-
}, e), [p, e]), f = q(() => Qe((
|
|
223
|
-
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
}, r), [r, g, p]),
|
|
227
|
-
|
|
221
|
+
k.style[p] = `${k[_]}px`;
|
|
222
|
+
}, e), [p, e]), f = q(() => Qe((k) => {
|
|
223
|
+
k.style[p] = null;
|
|
224
|
+
}, s), [p, s]), C = q(() => Qe((k) => {
|
|
225
|
+
k.style[p] = `${g(p, k)}px`, Jr(k);
|
|
226
|
+
}, r), [r, g, p]), b = q(() => Qe((k) => {
|
|
227
|
+
k.style[p] = null;
|
|
228
228
|
}, o), [p, o]);
|
|
229
|
-
return /* @__PURE__ */
|
|
229
|
+
return /* @__PURE__ */ n.jsx(Xn, {
|
|
230
230
|
ref: w,
|
|
231
231
|
addEndListener: es,
|
|
232
232
|
...x,
|
|
@@ -234,34 +234,34 @@ const ra = {
|
|
|
234
234
|
onEnter: y,
|
|
235
235
|
onEntering: N,
|
|
236
236
|
onEntered: f,
|
|
237
|
-
onExit:
|
|
238
|
-
onExiting:
|
|
237
|
+
onExit: C,
|
|
238
|
+
onExiting: b,
|
|
239
239
|
childRef: l.ref,
|
|
240
240
|
in: c,
|
|
241
241
|
timeout: d,
|
|
242
242
|
mountOnEnter: u,
|
|
243
243
|
unmountOnExit: m,
|
|
244
244
|
appear: h,
|
|
245
|
-
children: (
|
|
245
|
+
children: (k, _) => /* @__PURE__ */ he.cloneElement(l, {
|
|
246
246
|
..._,
|
|
247
|
-
className: j(a, l.props.className, ra[
|
|
247
|
+
className: j(a, l.props.className, ra[k], p === "width" && "collapse-horizontal")
|
|
248
248
|
})
|
|
249
249
|
});
|
|
250
250
|
}), Ns = yt("h4");
|
|
251
251
|
Ns.displayName = "DivStyledAsH4";
|
|
252
|
-
const
|
|
252
|
+
const Cs = /* @__PURE__ */ M.forwardRef(({
|
|
253
253
|
className: t,
|
|
254
254
|
bsPrefix: e,
|
|
255
|
-
as:
|
|
255
|
+
as: s = Ns,
|
|
256
256
|
...r
|
|
257
|
-
}, o) => (e = z(e, "alert-heading"), /* @__PURE__ */
|
|
257
|
+
}, o) => (e = z(e, "alert-heading"), /* @__PURE__ */ n.jsx(s, {
|
|
258
258
|
ref: o,
|
|
259
259
|
className: j(t, e),
|
|
260
260
|
...r
|
|
261
261
|
})));
|
|
262
|
-
|
|
263
|
-
function oa(t, e,
|
|
264
|
-
const o =
|
|
262
|
+
Cs.displayName = "AlertHeading";
|
|
263
|
+
function oa(t, e, s, r = !1) {
|
|
264
|
+
const o = ve(s);
|
|
265
265
|
O(() => {
|
|
266
266
|
const a = typeof t == "function" ? t() : t;
|
|
267
267
|
return a.addEventListener(e, o, r), () => a.removeEventListener(e, o, r);
|
|
@@ -270,20 +270,20 @@ function oa(t, e, n, r = !1) {
|
|
|
270
270
|
const aa = ["as", "disabled"];
|
|
271
271
|
function la(t, e) {
|
|
272
272
|
if (t == null) return {};
|
|
273
|
-
var
|
|
273
|
+
var s = {};
|
|
274
274
|
for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
|
|
275
275
|
if (e.indexOf(r) >= 0) continue;
|
|
276
|
-
|
|
276
|
+
s[r] = t[r];
|
|
277
277
|
}
|
|
278
|
-
return
|
|
278
|
+
return s;
|
|
279
279
|
}
|
|
280
280
|
function ca(t) {
|
|
281
281
|
return !t || t.trim() === "#";
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Jt({
|
|
284
284
|
tagName: t,
|
|
285
285
|
disabled: e,
|
|
286
|
-
href:
|
|
286
|
+
href: s,
|
|
287
287
|
target: r,
|
|
288
288
|
rel: o,
|
|
289
289
|
role: a,
|
|
@@ -291,7 +291,7 @@ function Zt({
|
|
|
291
291
|
tabIndex: i = 0,
|
|
292
292
|
type: c
|
|
293
293
|
}) {
|
|
294
|
-
t || (
|
|
294
|
+
t || (s != null || r != null || o != null ? t = "a" : t = "button");
|
|
295
295
|
const d = {
|
|
296
296
|
tagName: t
|
|
297
297
|
};
|
|
@@ -301,7 +301,7 @@ function Zt({
|
|
|
301
301
|
disabled: e
|
|
302
302
|
}, d];
|
|
303
303
|
const u = (h) => {
|
|
304
|
-
if ((e || t === "a" && ca(
|
|
304
|
+
if ((e || t === "a" && ca(s)) && h.preventDefault(), e) {
|
|
305
305
|
h.stopPropagation();
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
@@ -309,13 +309,13 @@ function Zt({
|
|
|
309
309
|
}, m = (h) => {
|
|
310
310
|
h.key === " " && (h.preventDefault(), u(h));
|
|
311
311
|
};
|
|
312
|
-
return t === "a" && (
|
|
312
|
+
return t === "a" && (s || (s = "#"), e && (s = void 0)), [{
|
|
313
313
|
role: a ?? "button",
|
|
314
314
|
// explicitly undefined so that it overrides the props disabled in a spread
|
|
315
315
|
// e.g. <Tag {...props} {...hookProps} />
|
|
316
316
|
disabled: void 0,
|
|
317
317
|
tabIndex: e ? void 0 : i,
|
|
318
|
-
href:
|
|
318
|
+
href: s,
|
|
319
319
|
target: t === "a" ? r : void 0,
|
|
320
320
|
"aria-disabled": e || void 0,
|
|
321
321
|
rel: t === "a" ? o : void 0,
|
|
@@ -323,69 +323,69 @@ function Zt({
|
|
|
323
323
|
onKeyDown: m
|
|
324
324
|
}, d];
|
|
325
325
|
}
|
|
326
|
-
const
|
|
326
|
+
const ks = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
327
327
|
let {
|
|
328
|
-
as:
|
|
328
|
+
as: s,
|
|
329
329
|
disabled: r
|
|
330
330
|
} = t, o = la(t, aa);
|
|
331
331
|
const [a, {
|
|
332
332
|
tagName: l
|
|
333
|
-
}] =
|
|
334
|
-
tagName:
|
|
333
|
+
}] = Jt(Object.assign({
|
|
334
|
+
tagName: s,
|
|
335
335
|
disabled: r
|
|
336
336
|
}, o));
|
|
337
|
-
return /* @__PURE__ */
|
|
337
|
+
return /* @__PURE__ */ n.jsx(l, Object.assign({}, o, a, {
|
|
338
338
|
ref: e
|
|
339
339
|
}));
|
|
340
340
|
});
|
|
341
|
-
|
|
341
|
+
ks.displayName = "Button";
|
|
342
342
|
const ia = ["onKeyDown"];
|
|
343
343
|
function da(t, e) {
|
|
344
344
|
if (t == null) return {};
|
|
345
|
-
var
|
|
345
|
+
var s = {};
|
|
346
346
|
for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
|
|
347
347
|
if (e.indexOf(r) >= 0) continue;
|
|
348
|
-
|
|
348
|
+
s[r] = t[r];
|
|
349
349
|
}
|
|
350
|
-
return
|
|
350
|
+
return s;
|
|
351
351
|
}
|
|
352
352
|
function ua(t) {
|
|
353
353
|
return !t || t.trim() === "#";
|
|
354
354
|
}
|
|
355
|
-
const
|
|
355
|
+
const Xt = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
356
356
|
let {
|
|
357
|
-
onKeyDown:
|
|
357
|
+
onKeyDown: s
|
|
358
358
|
} = t, r = da(t, ia);
|
|
359
|
-
const [o] =
|
|
359
|
+
const [o] = Jt(Object.assign({
|
|
360
360
|
tagName: "a"
|
|
361
|
-
}, r)), a =
|
|
362
|
-
o.onKeyDown(l),
|
|
361
|
+
}, r)), a = ve((l) => {
|
|
362
|
+
o.onKeyDown(l), s == null || s(l);
|
|
363
363
|
});
|
|
364
|
-
return ua(r.href) || r.role === "button" ? /* @__PURE__ */
|
|
364
|
+
return ua(r.href) || r.role === "button" ? /* @__PURE__ */ n.jsx("a", Object.assign({
|
|
365
365
|
ref: e
|
|
366
366
|
}, r, o, {
|
|
367
367
|
onKeyDown: a
|
|
368
|
-
})) : /* @__PURE__ */
|
|
368
|
+
})) : /* @__PURE__ */ n.jsx("a", Object.assign({
|
|
369
369
|
ref: e
|
|
370
370
|
}, r, {
|
|
371
|
-
onKeyDown:
|
|
371
|
+
onKeyDown: s
|
|
372
372
|
}));
|
|
373
373
|
});
|
|
374
|
-
|
|
374
|
+
Xt.displayName = "Anchor";
|
|
375
375
|
const $s = /* @__PURE__ */ M.forwardRef(({
|
|
376
376
|
className: t,
|
|
377
377
|
bsPrefix: e,
|
|
378
|
-
as:
|
|
378
|
+
as: s = Xt,
|
|
379
379
|
...r
|
|
380
|
-
}, o) => (e = z(e, "alert-link"), /* @__PURE__ */
|
|
380
|
+
}, o) => (e = z(e, "alert-link"), /* @__PURE__ */ n.jsx(s, {
|
|
381
381
|
ref: o,
|
|
382
382
|
className: j(t, e),
|
|
383
383
|
...r
|
|
384
384
|
})));
|
|
385
385
|
$s.displayName = "AlertLink";
|
|
386
|
-
const
|
|
386
|
+
const Is = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
387
387
|
const {
|
|
388
|
-
bsPrefix:
|
|
388
|
+
bsPrefix: s,
|
|
389
389
|
show: r = !0,
|
|
390
390
|
closeLabel: o = "Close alert",
|
|
391
391
|
closeVariant: a,
|
|
@@ -394,24 +394,24 @@ const Ss = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
|
394
394
|
variant: c = "primary",
|
|
395
395
|
onClose: d,
|
|
396
396
|
dismissible: u,
|
|
397
|
-
transition: m =
|
|
397
|
+
transition: m = Lt,
|
|
398
398
|
...h
|
|
399
399
|
} = ss(t, {
|
|
400
400
|
show: "onClose"
|
|
401
|
-
}), g = z(
|
|
401
|
+
}), g = z(s, "alert"), x = ve((y) => {
|
|
402
402
|
d && d(!1, y);
|
|
403
|
-
}), w = m === !0 ?
|
|
403
|
+
}), w = m === !0 ? Lt : m, p = /* @__PURE__ */ n.jsxs("div", {
|
|
404
404
|
role: "alert",
|
|
405
405
|
...w ? void 0 : h,
|
|
406
406
|
ref: e,
|
|
407
407
|
className: j(l, g, c && `${g}-${c}`, u && `${g}-dismissible`),
|
|
408
|
-
children: [u && /* @__PURE__ */
|
|
408
|
+
children: [u && /* @__PURE__ */ n.jsx(Fo, {
|
|
409
409
|
onClick: x,
|
|
410
410
|
"aria-label": o,
|
|
411
411
|
variant: a
|
|
412
412
|
}), i]
|
|
413
413
|
});
|
|
414
|
-
return w ? /* @__PURE__ */
|
|
414
|
+
return w ? /* @__PURE__ */ n.jsx(w, {
|
|
415
415
|
unmountOnExit: !0,
|
|
416
416
|
...h,
|
|
417
417
|
ref: void 0,
|
|
@@ -419,14 +419,14 @@ const Ss = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
|
419
419
|
children: p
|
|
420
420
|
}) : r ? p : null;
|
|
421
421
|
});
|
|
422
|
-
|
|
423
|
-
const fa = Object.assign(
|
|
422
|
+
Is.displayName = "Alert";
|
|
423
|
+
const fa = Object.assign(Is, {
|
|
424
424
|
Link: $s,
|
|
425
|
-
Heading:
|
|
425
|
+
Heading: Cs
|
|
426
426
|
}), tt = /* @__PURE__ */ M.forwardRef(({
|
|
427
427
|
as: t,
|
|
428
428
|
bsPrefix: e,
|
|
429
|
-
variant:
|
|
429
|
+
variant: s = "primary",
|
|
430
430
|
size: r,
|
|
431
431
|
active: o = !1,
|
|
432
432
|
disabled: a = !1,
|
|
@@ -435,57 +435,57 @@ const fa = Object.assign(Ss, {
|
|
|
435
435
|
}, c) => {
|
|
436
436
|
const d = z(e, "btn"), [u, {
|
|
437
437
|
tagName: m
|
|
438
|
-
}] =
|
|
438
|
+
}] = Jt({
|
|
439
439
|
tagName: t,
|
|
440
440
|
disabled: a,
|
|
441
441
|
...i
|
|
442
442
|
}), h = m;
|
|
443
|
-
return /* @__PURE__ */
|
|
443
|
+
return /* @__PURE__ */ n.jsx(h, {
|
|
444
444
|
...u,
|
|
445
445
|
...i,
|
|
446
446
|
ref: c,
|
|
447
447
|
disabled: a,
|
|
448
|
-
className: j(l, d, o && "active",
|
|
448
|
+
className: j(l, d, o && "active", s && `${d}-${s}`, r && `${d}-${r}`, i.href && a && "disabled")
|
|
449
449
|
});
|
|
450
450
|
});
|
|
451
451
|
tt.displayName = "Button";
|
|
452
|
-
const
|
|
452
|
+
const en = /* @__PURE__ */ M.forwardRef(({
|
|
453
453
|
className: t,
|
|
454
454
|
bsPrefix: e,
|
|
455
|
-
as:
|
|
455
|
+
as: s = "div",
|
|
456
456
|
...r
|
|
457
|
-
}, o) => (e = z(e, "card-body"), /* @__PURE__ */
|
|
457
|
+
}, o) => (e = z(e, "card-body"), /* @__PURE__ */ n.jsx(s, {
|
|
458
458
|
ref: o,
|
|
459
459
|
className: j(t, e),
|
|
460
460
|
...r
|
|
461
461
|
})));
|
|
462
|
-
|
|
463
|
-
const
|
|
462
|
+
en.displayName = "CardBody";
|
|
463
|
+
const Ss = /* @__PURE__ */ M.forwardRef(({
|
|
464
464
|
className: t,
|
|
465
465
|
bsPrefix: e,
|
|
466
|
-
as:
|
|
466
|
+
as: s = "div",
|
|
467
467
|
...r
|
|
468
|
-
}, o) => (e = z(e, "card-footer"), /* @__PURE__ */
|
|
468
|
+
}, o) => (e = z(e, "card-footer"), /* @__PURE__ */ n.jsx(s, {
|
|
469
469
|
ref: o,
|
|
470
470
|
className: j(t, e),
|
|
471
471
|
...r
|
|
472
472
|
})));
|
|
473
|
-
|
|
473
|
+
Ss.displayName = "CardFooter";
|
|
474
474
|
const Ds = /* @__PURE__ */ M.createContext(null);
|
|
475
475
|
Ds.displayName = "CardHeaderContext";
|
|
476
476
|
const Fs = /* @__PURE__ */ M.forwardRef(({
|
|
477
477
|
bsPrefix: t,
|
|
478
478
|
className: e,
|
|
479
479
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
480
|
-
as:
|
|
480
|
+
as: s = "div",
|
|
481
481
|
...r
|
|
482
482
|
}, o) => {
|
|
483
483
|
const a = z(t, "card-header"), l = q(() => ({
|
|
484
484
|
cardHeaderBsPrefix: a
|
|
485
485
|
}), [a]);
|
|
486
|
-
return /* @__PURE__ */
|
|
486
|
+
return /* @__PURE__ */ n.jsx(Ds.Provider, {
|
|
487
487
|
value: l,
|
|
488
|
-
children: /* @__PURE__ */
|
|
488
|
+
children: /* @__PURE__ */ n.jsx(s, {
|
|
489
489
|
ref: o,
|
|
490
490
|
...r,
|
|
491
491
|
className: j(e, a)
|
|
@@ -498,14 +498,14 @@ const Es = /* @__PURE__ */ M.forwardRef(
|
|
|
498
498
|
({
|
|
499
499
|
bsPrefix: t,
|
|
500
500
|
className: e,
|
|
501
|
-
variant:
|
|
501
|
+
variant: s,
|
|
502
502
|
as: r = "img",
|
|
503
503
|
...o
|
|
504
504
|
}, a) => {
|
|
505
505
|
const l = z(t, "card-img");
|
|
506
|
-
return /* @__PURE__ */
|
|
506
|
+
return /* @__PURE__ */ n.jsx(r, {
|
|
507
507
|
ref: a,
|
|
508
|
-
className: j(
|
|
508
|
+
className: j(s ? `${l}-${s}` : l, e),
|
|
509
509
|
...o
|
|
510
510
|
});
|
|
511
511
|
}
|
|
@@ -514,9 +514,9 @@ Es.displayName = "CardImg";
|
|
|
514
514
|
const Os = /* @__PURE__ */ M.forwardRef(({
|
|
515
515
|
className: t,
|
|
516
516
|
bsPrefix: e,
|
|
517
|
-
as:
|
|
517
|
+
as: s = "div",
|
|
518
518
|
...r
|
|
519
|
-
}, o) => (e = z(e, "card-img-overlay"), /* @__PURE__ */
|
|
519
|
+
}, o) => (e = z(e, "card-img-overlay"), /* @__PURE__ */ n.jsx(s, {
|
|
520
520
|
ref: o,
|
|
521
521
|
className: j(t, e),
|
|
522
522
|
...r
|
|
@@ -525,9 +525,9 @@ Os.displayName = "CardImgOverlay";
|
|
|
525
525
|
const Ts = /* @__PURE__ */ M.forwardRef(({
|
|
526
526
|
className: t,
|
|
527
527
|
bsPrefix: e,
|
|
528
|
-
as:
|
|
528
|
+
as: s = "a",
|
|
529
529
|
...r
|
|
530
|
-
}, o) => (e = z(e, "card-link"), /* @__PURE__ */
|
|
530
|
+
}, o) => (e = z(e, "card-link"), /* @__PURE__ */ n.jsx(s, {
|
|
531
531
|
ref: o,
|
|
532
532
|
className: j(t, e),
|
|
533
533
|
...r
|
|
@@ -536,9 +536,9 @@ Ts.displayName = "CardLink";
|
|
|
536
536
|
const ma = yt("h6"), Ms = /* @__PURE__ */ M.forwardRef(({
|
|
537
537
|
className: t,
|
|
538
538
|
bsPrefix: e,
|
|
539
|
-
as:
|
|
539
|
+
as: s = ma,
|
|
540
540
|
...r
|
|
541
|
-
}, o) => (e = z(e, "card-subtitle"), /* @__PURE__ */
|
|
541
|
+
}, o) => (e = z(e, "card-subtitle"), /* @__PURE__ */ n.jsx(s, {
|
|
542
542
|
ref: o,
|
|
543
543
|
className: j(t, e),
|
|
544
544
|
...r
|
|
@@ -547,9 +547,9 @@ Ms.displayName = "CardSubtitle";
|
|
|
547
547
|
const Ls = /* @__PURE__ */ M.forwardRef(({
|
|
548
548
|
className: t,
|
|
549
549
|
bsPrefix: e,
|
|
550
|
-
as:
|
|
550
|
+
as: s = "p",
|
|
551
551
|
...r
|
|
552
|
-
}, o) => (e = z(e, "card-text"), /* @__PURE__ */
|
|
552
|
+
}, o) => (e = z(e, "card-text"), /* @__PURE__ */ n.jsx(s, {
|
|
553
553
|
ref: o,
|
|
554
554
|
className: j(t, e),
|
|
555
555
|
...r
|
|
@@ -558,9 +558,9 @@ Ls.displayName = "CardText";
|
|
|
558
558
|
const pa = yt("h5"), Rs = /* @__PURE__ */ M.forwardRef(({
|
|
559
559
|
className: t,
|
|
560
560
|
bsPrefix: e,
|
|
561
|
-
as:
|
|
561
|
+
as: s = pa,
|
|
562
562
|
...r
|
|
563
|
-
}, o) => (e = z(e, "card-title"), /* @__PURE__ */
|
|
563
|
+
}, o) => (e = z(e, "card-title"), /* @__PURE__ */ n.jsx(s, {
|
|
564
564
|
ref: o,
|
|
565
565
|
className: j(t, e),
|
|
566
566
|
...r
|
|
@@ -569,7 +569,7 @@ Rs.displayName = "CardTitle";
|
|
|
569
569
|
const As = /* @__PURE__ */ M.forwardRef(({
|
|
570
570
|
bsPrefix: t,
|
|
571
571
|
className: e,
|
|
572
|
-
bg:
|
|
572
|
+
bg: s,
|
|
573
573
|
text: r,
|
|
574
574
|
border: o,
|
|
575
575
|
body: a = !1,
|
|
@@ -579,34 +579,34 @@ const As = /* @__PURE__ */ M.forwardRef(({
|
|
|
579
579
|
...c
|
|
580
580
|
}, d) => {
|
|
581
581
|
const u = z(t, "card");
|
|
582
|
-
return /* @__PURE__ */
|
|
582
|
+
return /* @__PURE__ */ n.jsx(i, {
|
|
583
583
|
ref: d,
|
|
584
584
|
...c,
|
|
585
|
-
className: j(e, u,
|
|
586
|
-
children: a ? /* @__PURE__ */
|
|
585
|
+
className: j(e, u, s && `bg-${s}`, r && `text-${r}`, o && `border-${o}`),
|
|
586
|
+
children: a ? /* @__PURE__ */ n.jsx(en, {
|
|
587
587
|
children: l
|
|
588
588
|
}) : l
|
|
589
589
|
});
|
|
590
590
|
});
|
|
591
591
|
As.displayName = "Card";
|
|
592
|
-
const
|
|
592
|
+
const Dn = Object.assign(As, {
|
|
593
593
|
Img: Es,
|
|
594
594
|
Title: Rs,
|
|
595
595
|
Subtitle: Ms,
|
|
596
|
-
Body:
|
|
596
|
+
Body: en,
|
|
597
597
|
Link: Ts,
|
|
598
598
|
Text: Ls,
|
|
599
599
|
Header: Fs,
|
|
600
|
-
Footer:
|
|
600
|
+
Footer: Ss,
|
|
601
601
|
ImgOverlay: Os
|
|
602
602
|
});
|
|
603
603
|
function ha(t, e) {
|
|
604
|
-
return M.Children.toArray(t).some((
|
|
604
|
+
return M.Children.toArray(t).some((s) => /* @__PURE__ */ M.isValidElement(s) && s.type === e);
|
|
605
605
|
}
|
|
606
606
|
function Bs({
|
|
607
607
|
as: t,
|
|
608
608
|
bsPrefix: e,
|
|
609
|
-
className:
|
|
609
|
+
className: s,
|
|
610
610
|
...r
|
|
611
611
|
}) {
|
|
612
612
|
e = z(e, "col");
|
|
@@ -624,7 +624,7 @@ function Bs({
|
|
|
624
624
|
u && l.push(u === !0 ? `${e}${g}` : `${e}${g}-${u}`), h != null && i.push(`order${g}-${h}`), m != null && i.push(`offset${g}-${m}`);
|
|
625
625
|
}), [{
|
|
626
626
|
...r,
|
|
627
|
-
className: j(
|
|
627
|
+
className: j(s, ...l, ...i)
|
|
628
628
|
}, {
|
|
629
629
|
as: t,
|
|
630
630
|
bsPrefix: e,
|
|
@@ -635,47 +635,47 @@ const Ps = /* @__PURE__ */ M.forwardRef(
|
|
|
635
635
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
636
636
|
(t, e) => {
|
|
637
637
|
const [{
|
|
638
|
-
className:
|
|
638
|
+
className: s,
|
|
639
639
|
...r
|
|
640
640
|
}, {
|
|
641
641
|
as: o = "div",
|
|
642
642
|
bsPrefix: a,
|
|
643
643
|
spans: l
|
|
644
644
|
}] = Bs(t);
|
|
645
|
-
return /* @__PURE__ */
|
|
645
|
+
return /* @__PURE__ */ n.jsx(o, {
|
|
646
646
|
...r,
|
|
647
647
|
ref: e,
|
|
648
|
-
className: j(
|
|
648
|
+
className: j(s, !l.length && a)
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
651
|
);
|
|
652
652
|
Ps.displayName = "Col";
|
|
653
|
-
function ga(t, e,
|
|
654
|
-
const r = Y(t !== void 0), [o, a] =
|
|
653
|
+
function ga(t, e, s) {
|
|
654
|
+
const r = Y(t !== void 0), [o, a] = S(e), l = t !== void 0, i = r.current;
|
|
655
655
|
return r.current = l, !l && i && o !== e && a(e), [l ? t : o, $((...c) => {
|
|
656
656
|
const [d, ...u] = c;
|
|
657
|
-
let m =
|
|
657
|
+
let m = s == null ? void 0 : s(d, ...u);
|
|
658
658
|
return a(d), m;
|
|
659
|
-
}, [
|
|
659
|
+
}, [s])];
|
|
660
660
|
}
|
|
661
661
|
function xa() {
|
|
662
662
|
const [, t] = ps((e) => !e, !1);
|
|
663
663
|
return t;
|
|
664
664
|
}
|
|
665
|
-
const
|
|
665
|
+
const bt = /* @__PURE__ */ M.createContext(null), ja = ["children", "usePopper"];
|
|
666
666
|
function wa(t, e) {
|
|
667
667
|
if (t == null) return {};
|
|
668
|
-
var
|
|
668
|
+
var s = {};
|
|
669
669
|
for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
|
|
670
670
|
if (e.indexOf(r) >= 0) continue;
|
|
671
|
-
|
|
671
|
+
s[r] = t[r];
|
|
672
672
|
}
|
|
673
|
-
return
|
|
673
|
+
return s;
|
|
674
674
|
}
|
|
675
675
|
const ya = () => {
|
|
676
676
|
};
|
|
677
677
|
function Hs(t = {}) {
|
|
678
|
-
const e = B(
|
|
678
|
+
const e = B(bt), [s, r] = to(), o = Y(!1), {
|
|
679
679
|
flip: a,
|
|
680
680
|
offset: l,
|
|
681
681
|
rootCloseEvent: i,
|
|
@@ -686,8 +686,8 @@ function Hs(t = {}) {
|
|
|
686
686
|
usePopper: h = !!e
|
|
687
687
|
} = t, g = (e == null ? void 0 : e.show) == null ? !!t.show : e.show;
|
|
688
688
|
g && !o.current && (o.current = !0);
|
|
689
|
-
const x = (
|
|
690
|
-
e == null || e.toggle(!1,
|
|
689
|
+
const x = (k) => {
|
|
690
|
+
e == null || e.toggle(!1, k);
|
|
691
691
|
}, {
|
|
692
692
|
placement: w,
|
|
693
693
|
setMenu: p,
|
|
@@ -700,14 +700,14 @@ function Hs(t = {}) {
|
|
|
700
700
|
offset: l,
|
|
701
701
|
flip: a,
|
|
702
702
|
fixed: c,
|
|
703
|
-
arrowElement:
|
|
703
|
+
arrowElement: s,
|
|
704
704
|
popperConfig: u
|
|
705
|
-
})),
|
|
705
|
+
})), C = Object.assign({
|
|
706
706
|
ref: p || ya,
|
|
707
707
|
"aria-labelledby": N == null ? void 0 : N.id
|
|
708
708
|
}, f.attributes.popper, {
|
|
709
709
|
style: f.styles.popper
|
|
710
|
-
}),
|
|
710
|
+
}), b = {
|
|
711
711
|
show: g,
|
|
712
712
|
placement: w,
|
|
713
713
|
hasShown: o.current,
|
|
@@ -722,17 +722,17 @@ function Hs(t = {}) {
|
|
|
722
722
|
return ro(y, x, {
|
|
723
723
|
clickTrigger: i,
|
|
724
724
|
disabled: !g
|
|
725
|
-
}), [
|
|
725
|
+
}), [C, b];
|
|
726
726
|
}
|
|
727
727
|
function Ws(t) {
|
|
728
728
|
let {
|
|
729
729
|
children: e,
|
|
730
|
-
usePopper:
|
|
730
|
+
usePopper: s = !0
|
|
731
731
|
} = t, r = wa(t, ja);
|
|
732
732
|
const [o, a] = Hs(Object.assign({}, r, {
|
|
733
|
-
usePopper:
|
|
733
|
+
usePopper: s
|
|
734
734
|
}));
|
|
735
|
-
return /* @__PURE__ */
|
|
735
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, {
|
|
736
736
|
children: e(o, a)
|
|
737
737
|
});
|
|
738
738
|
}
|
|
@@ -740,11 +740,11 @@ Ws.displayName = "DropdownMenu";
|
|
|
740
740
|
const ht = {
|
|
741
741
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
742
742
|
current: 0
|
|
743
|
-
}, zs = /* @__PURE__ */ he.createContext(ht),
|
|
744
|
-
let
|
|
743
|
+
}, zs = /* @__PURE__ */ he.createContext(ht), ba = /* @__PURE__ */ he.createContext(!1);
|
|
744
|
+
let va = !!(typeof window < "u" && window.document && window.document.createElement), Dt = /* @__PURE__ */ new WeakMap();
|
|
745
745
|
function _a(t = !1) {
|
|
746
|
-
let e = B(zs),
|
|
747
|
-
if (
|
|
746
|
+
let e = B(zs), s = Y(null);
|
|
747
|
+
if (s.current === null && !t) {
|
|
748
748
|
var r, o;
|
|
749
749
|
let a = (o = he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
750
750
|
if (a) {
|
|
@@ -754,91 +754,91 @@ function _a(t = !1) {
|
|
|
754
754
|
state: a.memoizedState
|
|
755
755
|
}) : a.memoizedState !== l.state && (e.current = l.id, Dt.delete(a));
|
|
756
756
|
}
|
|
757
|
-
|
|
757
|
+
s.current = ++e.current;
|
|
758
758
|
}
|
|
759
|
-
return
|
|
759
|
+
return s.current;
|
|
760
760
|
}
|
|
761
761
|
function Na(t) {
|
|
762
762
|
let e = B(zs);
|
|
763
|
-
e === ht && !
|
|
764
|
-
let
|
|
765
|
-
return t || `${r}-${
|
|
763
|
+
e === ht && !va && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
764
|
+
let s = _a(!!t), r = e === ht && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
765
|
+
return t || `${r}-${s}`;
|
|
766
766
|
}
|
|
767
|
-
function
|
|
768
|
-
let e = he.useId(), [
|
|
767
|
+
function Ca(t) {
|
|
768
|
+
let e = he.useId(), [s] = S(Da()), r = s || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ht.prefix}`;
|
|
769
769
|
return t || `${r}-${e}`;
|
|
770
770
|
}
|
|
771
|
-
const
|
|
771
|
+
const ka = typeof he.useId == "function" ? Ca : Na;
|
|
772
772
|
function $a() {
|
|
773
773
|
return !1;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function Ia() {
|
|
776
776
|
return !0;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function Sa(t) {
|
|
779
779
|
return () => {
|
|
780
780
|
};
|
|
781
781
|
}
|
|
782
782
|
function Da() {
|
|
783
|
-
return typeof he.useSyncExternalStore == "function" ? he.useSyncExternalStore(
|
|
783
|
+
return typeof he.useSyncExternalStore == "function" ? he.useSyncExternalStore(Sa, $a, Ia) : B(ba);
|
|
784
784
|
}
|
|
785
785
|
const Vs = (t) => {
|
|
786
786
|
var e;
|
|
787
787
|
return ((e = t.getAttribute("role")) == null ? void 0 : e.toLowerCase()) === "menu";
|
|
788
|
-
},
|
|
788
|
+
}, Fn = () => {
|
|
789
789
|
};
|
|
790
790
|
function Us() {
|
|
791
|
-
const t =
|
|
791
|
+
const t = ka(), {
|
|
792
792
|
show: e = !1,
|
|
793
|
-
toggle:
|
|
793
|
+
toggle: s = Fn,
|
|
794
794
|
setToggle: r,
|
|
795
795
|
menuElement: o
|
|
796
|
-
} = B(
|
|
797
|
-
|
|
798
|
-
}, [e,
|
|
796
|
+
} = B(bt) || {}, a = $((i) => {
|
|
797
|
+
s(!e, i);
|
|
798
|
+
}, [e, s]), l = {
|
|
799
799
|
id: t,
|
|
800
|
-
ref: r ||
|
|
800
|
+
ref: r || Fn,
|
|
801
801
|
onClick: a,
|
|
802
802
|
"aria-expanded": !!e
|
|
803
803
|
};
|
|
804
804
|
return o && Vs(o) && (l["aria-haspopup"] = !0), [l, {
|
|
805
805
|
show: e,
|
|
806
|
-
toggle:
|
|
806
|
+
toggle: s
|
|
807
807
|
}];
|
|
808
808
|
}
|
|
809
809
|
function Gs({
|
|
810
810
|
children: t
|
|
811
811
|
}) {
|
|
812
|
-
const [e,
|
|
813
|
-
return /* @__PURE__ */
|
|
814
|
-
children: t(e,
|
|
812
|
+
const [e, s] = Us();
|
|
813
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, {
|
|
814
|
+
children: t(e, s)
|
|
815
815
|
});
|
|
816
816
|
}
|
|
817
817
|
Gs.displayName = "DropdownToggle";
|
|
818
|
-
const
|
|
818
|
+
const Pt = /* @__PURE__ */ M.createContext(null), En = (t, e = null) => t != null ? String(t) : e || null, Ys = /* @__PURE__ */ M.createContext(null);
|
|
819
819
|
Ys.displayName = "NavContext";
|
|
820
820
|
const Fa = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
821
821
|
function Ea(t, e) {
|
|
822
822
|
if (t == null) return {};
|
|
823
|
-
var
|
|
823
|
+
var s = {};
|
|
824
824
|
for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
|
|
825
825
|
if (e.indexOf(r) >= 0) continue;
|
|
826
|
-
|
|
826
|
+
s[r] = t[r];
|
|
827
827
|
}
|
|
828
|
-
return
|
|
828
|
+
return s;
|
|
829
829
|
}
|
|
830
830
|
function Ks({
|
|
831
831
|
key: t,
|
|
832
832
|
href: e,
|
|
833
|
-
active:
|
|
833
|
+
active: s,
|
|
834
834
|
disabled: r,
|
|
835
835
|
onClick: o
|
|
836
836
|
}) {
|
|
837
|
-
const a = B(
|
|
837
|
+
const a = B(Pt), l = B(Ys), {
|
|
838
838
|
activeKey: i
|
|
839
|
-
} = l || {}, c =
|
|
839
|
+
} = l || {}, c = En(t, e), d = s == null && t != null ? En(i) === c : s;
|
|
840
840
|
return [{
|
|
841
|
-
onClick:
|
|
841
|
+
onClick: ve((m) => {
|
|
842
842
|
r || (o == null || o(m), a && !m.isPropagationStopped() && a(c, m));
|
|
843
843
|
}),
|
|
844
844
|
"aria-disabled": r || void 0,
|
|
@@ -850,98 +850,98 @@ function Ks({
|
|
|
850
850
|
}
|
|
851
851
|
const qs = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
852
852
|
let {
|
|
853
|
-
eventKey:
|
|
853
|
+
eventKey: s,
|
|
854
854
|
disabled: r,
|
|
855
855
|
onClick: o,
|
|
856
856
|
active: a,
|
|
857
|
-
as: l =
|
|
857
|
+
as: l = ks
|
|
858
858
|
} = t, i = Ea(t, Fa);
|
|
859
859
|
const [c] = Ks({
|
|
860
|
-
key:
|
|
860
|
+
key: s,
|
|
861
861
|
href: i.href,
|
|
862
862
|
disabled: r,
|
|
863
863
|
onClick: o,
|
|
864
864
|
active: a
|
|
865
865
|
});
|
|
866
|
-
return /* @__PURE__ */
|
|
866
|
+
return /* @__PURE__ */ n.jsx(l, Object.assign({}, i, {
|
|
867
867
|
ref: e
|
|
868
868
|
}, c));
|
|
869
869
|
});
|
|
870
870
|
qs.displayName = "DropdownItem";
|
|
871
|
-
function
|
|
872
|
-
const t = xa(), e = Y(null),
|
|
871
|
+
function On() {
|
|
872
|
+
const t = xa(), e = Y(null), s = $((r) => {
|
|
873
873
|
e.current = r, t();
|
|
874
874
|
}, [t]);
|
|
875
|
-
return [e,
|
|
875
|
+
return [e, s];
|
|
876
876
|
}
|
|
877
877
|
function rt({
|
|
878
878
|
defaultShow: t,
|
|
879
879
|
show: e,
|
|
880
|
-
onSelect:
|
|
880
|
+
onSelect: s,
|
|
881
881
|
onToggle: r,
|
|
882
882
|
itemSelector: o = `* [${hs("dropdown-item")}]`,
|
|
883
883
|
focusFirstItemOnShow: a,
|
|
884
884
|
placement: l = "bottom-start",
|
|
885
885
|
children: i
|
|
886
886
|
}) {
|
|
887
|
-
const c = oo(), [d, u] = ga(e, t, r), [m, h] =
|
|
888
|
-
u(
|
|
887
|
+
const c = oo(), [d, u] = ga(e, t, r), [m, h] = On(), g = m.current, [x, w] = On(), p = x.current, y = Eo(d), N = Y(null), f = Y(!1), C = B(Pt), b = $((v, D, R = D == null ? void 0 : D.type) => {
|
|
888
|
+
u(v, {
|
|
889
889
|
originalEvent: D,
|
|
890
890
|
source: R
|
|
891
891
|
});
|
|
892
|
-
}, [u]),
|
|
893
|
-
|
|
892
|
+
}, [u]), k = ve((v, D) => {
|
|
893
|
+
s == null || s(v, D), b(!1, D, "select"), D.isPropagationStopped() || C == null || C(v, D);
|
|
894
894
|
}), _ = q(() => ({
|
|
895
|
-
toggle:
|
|
895
|
+
toggle: b,
|
|
896
896
|
placement: l,
|
|
897
897
|
show: d,
|
|
898
898
|
menuElement: g,
|
|
899
899
|
toggleElement: p,
|
|
900
900
|
setMenu: h,
|
|
901
901
|
setToggle: w
|
|
902
|
-
}), [
|
|
902
|
+
}), [b, l, d, g, p, h, w]);
|
|
903
903
|
g && y && !d && (f.current = g.contains(g.ownerDocument.activeElement));
|
|
904
|
-
const E =
|
|
904
|
+
const E = ve(() => {
|
|
905
905
|
p && p.focus && p.focus();
|
|
906
|
-
}),
|
|
907
|
-
const
|
|
906
|
+
}), I = ve(() => {
|
|
907
|
+
const v = N.current;
|
|
908
908
|
let D = a;
|
|
909
|
-
if (D == null && (D = m.current && Vs(m.current) ? "keyboard" : !1), D === !1 || D === "keyboard" && !/^key.+$/.test(
|
|
909
|
+
if (D == null && (D = m.current && Vs(m.current) ? "keyboard" : !1), D === !1 || D === "keyboard" && !/^key.+$/.test(v))
|
|
910
910
|
return;
|
|
911
|
-
const R =
|
|
911
|
+
const R = jn(m.current, o)[0];
|
|
912
912
|
R && R.focus && R.focus();
|
|
913
913
|
});
|
|
914
914
|
O(() => {
|
|
915
|
-
d ?
|
|
916
|
-
}, [d, f, E,
|
|
915
|
+
d ? I() : f.current && (f.current = !1, E());
|
|
916
|
+
}, [d, f, E, I]), O(() => {
|
|
917
917
|
N.current = null;
|
|
918
918
|
});
|
|
919
|
-
const F = (
|
|
919
|
+
const F = (v, D) => {
|
|
920
920
|
if (!m.current) return null;
|
|
921
|
-
const R =
|
|
922
|
-
let H = R.indexOf(
|
|
921
|
+
const R = jn(m.current, o);
|
|
922
|
+
let H = R.indexOf(v) + D;
|
|
923
923
|
return H = Math.max(0, Math.min(H, R.length)), R[H];
|
|
924
924
|
};
|
|
925
|
-
return oa($(() => c.document, [c]), "keydown", (
|
|
925
|
+
return oa($(() => c.document, [c]), "keydown", (v) => {
|
|
926
926
|
var D, R;
|
|
927
927
|
const {
|
|
928
928
|
key: H
|
|
929
|
-
} =
|
|
929
|
+
} = v, Q = v.target, X = (D = m.current) == null ? void 0 : D.contains(Q), L = (R = x.current) == null ? void 0 : R.contains(Q);
|
|
930
930
|
if (/input|textarea/i.test(Q.tagName) && (H === " " || H !== "Escape" && X || H === "Escape" && Q.type === "search") || !X && !L || H === "Tab" && (!m.current || !d))
|
|
931
931
|
return;
|
|
932
|
-
N.current =
|
|
932
|
+
N.current = v.type;
|
|
933
933
|
const ee = {
|
|
934
|
-
originalEvent:
|
|
935
|
-
source:
|
|
934
|
+
originalEvent: v,
|
|
935
|
+
source: v.type
|
|
936
936
|
};
|
|
937
937
|
switch (H) {
|
|
938
938
|
case "ArrowUp": {
|
|
939
939
|
const te = F(Q, -1);
|
|
940
|
-
te && te.focus && te.focus(),
|
|
940
|
+
te && te.focus && te.focus(), v.preventDefault();
|
|
941
941
|
return;
|
|
942
942
|
}
|
|
943
943
|
case "ArrowDown":
|
|
944
|
-
if (
|
|
944
|
+
if (v.preventDefault(), !d)
|
|
945
945
|
u(!0, ee);
|
|
946
946
|
else {
|
|
947
947
|
const te = F(Q, 1);
|
|
@@ -957,12 +957,12 @@ function rt({
|
|
|
957
957
|
});
|
|
958
958
|
break;
|
|
959
959
|
case "Escape":
|
|
960
|
-
H === "Escape" && (
|
|
960
|
+
H === "Escape" && (v.preventDefault(), v.stopPropagation()), u(!1, ee);
|
|
961
961
|
break;
|
|
962
962
|
}
|
|
963
|
-
}), /* @__PURE__ */
|
|
964
|
-
value:
|
|
965
|
-
children: /* @__PURE__ */
|
|
963
|
+
}), /* @__PURE__ */ n.jsx(Pt.Provider, {
|
|
964
|
+
value: k,
|
|
965
|
+
children: /* @__PURE__ */ n.jsx(bt.Provider, {
|
|
966
966
|
value: _,
|
|
967
967
|
children: i
|
|
968
968
|
})
|
|
@@ -972,15 +972,15 @@ rt.displayName = "Dropdown";
|
|
|
972
972
|
rt.Menu = Ws;
|
|
973
973
|
rt.Toggle = Gs;
|
|
974
974
|
rt.Item = qs;
|
|
975
|
-
const
|
|
976
|
-
|
|
975
|
+
const tn = /* @__PURE__ */ M.createContext({});
|
|
976
|
+
tn.displayName = "DropdownContext";
|
|
977
977
|
const Qs = /* @__PURE__ */ M.forwardRef(({
|
|
978
978
|
className: t,
|
|
979
979
|
bsPrefix: e,
|
|
980
|
-
as:
|
|
980
|
+
as: s = "hr",
|
|
981
981
|
role: r = "separator",
|
|
982
982
|
...o
|
|
983
|
-
}, a) => (e = z(e, "dropdown-divider"), /* @__PURE__ */
|
|
983
|
+
}, a) => (e = z(e, "dropdown-divider"), /* @__PURE__ */ n.jsx(s, {
|
|
984
984
|
ref: a,
|
|
985
985
|
className: j(t, e),
|
|
986
986
|
role: r,
|
|
@@ -990,10 +990,10 @@ Qs.displayName = "DropdownDivider";
|
|
|
990
990
|
const Zs = /* @__PURE__ */ M.forwardRef(({
|
|
991
991
|
className: t,
|
|
992
992
|
bsPrefix: e,
|
|
993
|
-
as:
|
|
993
|
+
as: s = "div",
|
|
994
994
|
role: r = "heading",
|
|
995
995
|
...o
|
|
996
|
-
}, a) => (e = z(e, "dropdown-header"), /* @__PURE__ */
|
|
996
|
+
}, a) => (e = z(e, "dropdown-header"), /* @__PURE__ */ n.jsx(s, {
|
|
997
997
|
ref: a,
|
|
998
998
|
className: j(t, e),
|
|
999
999
|
role: r,
|
|
@@ -1003,21 +1003,21 @@ Zs.displayName = "DropdownHeader";
|
|
|
1003
1003
|
const Js = /* @__PURE__ */ M.forwardRef(({
|
|
1004
1004
|
bsPrefix: t,
|
|
1005
1005
|
className: e,
|
|
1006
|
-
eventKey:
|
|
1006
|
+
eventKey: s,
|
|
1007
1007
|
disabled: r = !1,
|
|
1008
1008
|
onClick: o,
|
|
1009
1009
|
active: a,
|
|
1010
|
-
as: l =
|
|
1010
|
+
as: l = Xt,
|
|
1011
1011
|
...i
|
|
1012
1012
|
}, c) => {
|
|
1013
1013
|
const d = z(t, "dropdown-item"), [u, m] = Ks({
|
|
1014
|
-
key:
|
|
1014
|
+
key: s,
|
|
1015
1015
|
href: i.href,
|
|
1016
1016
|
disabled: r,
|
|
1017
1017
|
onClick: o,
|
|
1018
1018
|
active: a
|
|
1019
1019
|
});
|
|
1020
|
-
return /* @__PURE__ */
|
|
1020
|
+
return /* @__PURE__ */ n.jsx(l, {
|
|
1021
1021
|
...i,
|
|
1022
1022
|
...u,
|
|
1023
1023
|
ref: c,
|
|
@@ -1028,34 +1028,34 @@ Js.displayName = "DropdownItem";
|
|
|
1028
1028
|
const Xs = /* @__PURE__ */ M.forwardRef(({
|
|
1029
1029
|
className: t,
|
|
1030
1030
|
bsPrefix: e,
|
|
1031
|
-
as:
|
|
1031
|
+
as: s = "span",
|
|
1032
1032
|
...r
|
|
1033
|
-
}, o) => (e = z(e, "dropdown-item-text"), /* @__PURE__ */
|
|
1033
|
+
}, o) => (e = z(e, "dropdown-item-text"), /* @__PURE__ */ n.jsx(s, {
|
|
1034
1034
|
ref: o,
|
|
1035
1035
|
className: j(t, e),
|
|
1036
1036
|
...r
|
|
1037
1037
|
})));
|
|
1038
1038
|
Xs.displayName = "DropdownItemText";
|
|
1039
|
-
const
|
|
1040
|
-
|
|
1041
|
-
const
|
|
1042
|
-
|
|
1039
|
+
const vt = /* @__PURE__ */ M.createContext(null);
|
|
1040
|
+
vt.displayName = "InputGroupContext";
|
|
1041
|
+
const nn = /* @__PURE__ */ M.createContext(null);
|
|
1042
|
+
nn.displayName = "NavbarContext";
|
|
1043
1043
|
function er(t, e) {
|
|
1044
1044
|
if (process.env.NODE_ENV === "production") return t;
|
|
1045
|
-
const
|
|
1045
|
+
const s = $((r) => {
|
|
1046
1046
|
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? Sn(!1, `${e} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : Sn(!1));
|
|
1047
1047
|
}, [e]);
|
|
1048
|
-
return
|
|
1048
|
+
return Ut(s, t);
|
|
1049
1049
|
}
|
|
1050
|
-
function tr(t, e,
|
|
1051
|
-
const r =
|
|
1050
|
+
function tr(t, e, s) {
|
|
1051
|
+
const r = s ? "top-end" : "top-start", o = s ? "top-start" : "top-end", a = s ? "bottom-end" : "bottom-start", l = s ? "bottom-start" : "bottom-end", i = s ? "right-start" : "left-start", c = s ? "right-end" : "left-end", d = s ? "left-start" : "right-start", u = s ? "left-end" : "right-end";
|
|
1052
1052
|
let m = t ? l : a;
|
|
1053
1053
|
return e === "up" ? m = t ? o : r : e === "end" ? m = t ? u : d : e === "start" ? m = t ? c : i : e === "down-centered" ? m = "bottom" : e === "up-centered" && (m = "top"), m;
|
|
1054
1054
|
}
|
|
1055
1055
|
const nr = /* @__PURE__ */ M.forwardRef(({
|
|
1056
1056
|
bsPrefix: t,
|
|
1057
1057
|
className: e,
|
|
1058
|
-
align:
|
|
1058
|
+
align: s,
|
|
1059
1059
|
rootCloseEvent: r,
|
|
1060
1060
|
flip: o = !0,
|
|
1061
1061
|
show: a,
|
|
@@ -1067,26 +1067,26 @@ const nr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1067
1067
|
...u
|
|
1068
1068
|
}, m) => {
|
|
1069
1069
|
let h = !1;
|
|
1070
|
-
const g = B(
|
|
1070
|
+
const g = B(nn), x = z(t, "dropdown-menu"), {
|
|
1071
1071
|
align: w,
|
|
1072
1072
|
drop: p,
|
|
1073
1073
|
isRTL: y
|
|
1074
|
-
} = B(
|
|
1075
|
-
|
|
1076
|
-
const N = B(
|
|
1077
|
-
if (
|
|
1078
|
-
if (typeof
|
|
1079
|
-
const
|
|
1080
|
-
if (process.env.NODE_ENV !== "production" && rs(
|
|
1081
|
-
const D =
|
|
1074
|
+
} = B(tn);
|
|
1075
|
+
s = s || w;
|
|
1076
|
+
const N = B(vt), f = [];
|
|
1077
|
+
if (s)
|
|
1078
|
+
if (typeof s == "object") {
|
|
1079
|
+
const v = Object.keys(s);
|
|
1080
|
+
if (process.env.NODE_ENV !== "production" && rs(v.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), v.length) {
|
|
1081
|
+
const D = v[0], R = s[D];
|
|
1082
1082
|
h = R === "start", f.push(`${x}-${D}-${R}`);
|
|
1083
1083
|
}
|
|
1084
|
-
} else
|
|
1085
|
-
const
|
|
1086
|
-
hasShown:
|
|
1084
|
+
} else s === "end" && (h = !0);
|
|
1085
|
+
const C = tr(h, p, y), [b, {
|
|
1086
|
+
hasShown: k,
|
|
1087
1087
|
popper: _,
|
|
1088
1088
|
show: E,
|
|
1089
|
-
toggle:
|
|
1089
|
+
toggle: I
|
|
1090
1090
|
}] = Hs({
|
|
1091
1091
|
flip: o,
|
|
1092
1092
|
rootCloseEvent: r,
|
|
@@ -1094,19 +1094,19 @@ const nr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1094
1094
|
usePopper: !g && f.length === 0,
|
|
1095
1095
|
offset: [0, 2],
|
|
1096
1096
|
popperConfig: c,
|
|
1097
|
-
placement:
|
|
1097
|
+
placement: C
|
|
1098
1098
|
});
|
|
1099
|
-
if (
|
|
1099
|
+
if (b.ref = Ut(er(m, "DropdownMenu"), b.ref), os(() => {
|
|
1100
1100
|
E && (_ == null || _.update());
|
|
1101
|
-
}, [E]), !
|
|
1102
|
-
typeof i != "string" && (
|
|
1101
|
+
}, [E]), !k && !l && !N) return null;
|
|
1102
|
+
typeof i != "string" && (b.show = E, b.close = () => I == null ? void 0 : I(!1), b.align = s);
|
|
1103
1103
|
let F = u.style;
|
|
1104
1104
|
return _ != null && _.placement && (F = {
|
|
1105
1105
|
...u.style,
|
|
1106
|
-
...
|
|
1107
|
-
}, u["x-placement"] = _.placement), /* @__PURE__ */
|
|
1106
|
+
...b.style
|
|
1107
|
+
}, u["x-placement"] = _.placement), /* @__PURE__ */ n.jsx(i, {
|
|
1108
1108
|
...u,
|
|
1109
|
-
...
|
|
1109
|
+
...b,
|
|
1110
1110
|
style: F,
|
|
1111
1111
|
...(f.length || g) && {
|
|
1112
1112
|
"data-bs-popper": "static"
|
|
@@ -1118,17 +1118,17 @@ nr.displayName = "DropdownMenu";
|
|
|
1118
1118
|
const sr = /* @__PURE__ */ M.forwardRef(({
|
|
1119
1119
|
bsPrefix: t,
|
|
1120
1120
|
split: e,
|
|
1121
|
-
className:
|
|
1121
|
+
className: s,
|
|
1122
1122
|
childBsPrefix: r,
|
|
1123
1123
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1124
1124
|
as: o = tt,
|
|
1125
1125
|
...a
|
|
1126
1126
|
}, l) => {
|
|
1127
|
-
const i = z(t, "dropdown-toggle"), c = B(
|
|
1127
|
+
const i = z(t, "dropdown-toggle"), c = B(bt);
|
|
1128
1128
|
r !== void 0 && (a.bsPrefix = r);
|
|
1129
1129
|
const [d] = Us();
|
|
1130
|
-
return d.ref =
|
|
1131
|
-
className: j(
|
|
1130
|
+
return d.ref = Ut(d.ref, er(l, "DropdownToggle")), /* @__PURE__ */ n.jsx(o, {
|
|
1131
|
+
className: j(s, i, e && `${i}-split`, (c == null ? void 0 : c.show) && "show"),
|
|
1132
1132
|
...d,
|
|
1133
1133
|
...a
|
|
1134
1134
|
});
|
|
@@ -1136,7 +1136,7 @@ const sr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1136
1136
|
sr.displayName = "DropdownToggle";
|
|
1137
1137
|
const rr = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
1138
1138
|
const {
|
|
1139
|
-
bsPrefix:
|
|
1139
|
+
bsPrefix: s,
|
|
1140
1140
|
drop: r = "down",
|
|
1141
1141
|
show: o,
|
|
1142
1142
|
className: a,
|
|
@@ -1151,14 +1151,14 @@ const rr = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
|
1151
1151
|
...g
|
|
1152
1152
|
} = ss(t, {
|
|
1153
1153
|
show: "onToggle"
|
|
1154
|
-
}), x = B(
|
|
1155
|
-
var
|
|
1156
|
-
!((
|
|
1157
|
-
}),
|
|
1154
|
+
}), x = B(vt), w = z(s, "dropdown"), p = lo(), y = (_) => h === !1 ? _ === "click" : h === "inside" ? _ !== "rootClose" : h === "outside" ? _ !== "select" : !0, N = ve((_, E) => {
|
|
1155
|
+
var I;
|
|
1156
|
+
!((I = E.originalEvent) == null || (I = I.target) == null) && I.classList.contains("dropdown-toggle") && E.source === "mousedown" || (E.originalEvent.currentTarget === document && (E.source !== "keydown" || E.originalEvent.key === "Escape") && (E.source = "rootClose"), y(E.source) && (c == null || c(_, E)));
|
|
1157
|
+
}), C = tr(l === "end", r, p), b = q(() => ({
|
|
1158
1158
|
align: l,
|
|
1159
1159
|
drop: r,
|
|
1160
1160
|
isRTL: p
|
|
1161
|
-
}), [l, r, p]),
|
|
1161
|
+
}), [l, r, p]), k = {
|
|
1162
1162
|
down: w,
|
|
1163
1163
|
"down-centered": `${w}-center`,
|
|
1164
1164
|
up: "dropup",
|
|
@@ -1166,19 +1166,19 @@ const rr = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
|
1166
1166
|
end: "dropend",
|
|
1167
1167
|
start: "dropstart"
|
|
1168
1168
|
};
|
|
1169
|
-
return /* @__PURE__ */
|
|
1170
|
-
value:
|
|
1171
|
-
children: /* @__PURE__ */
|
|
1172
|
-
placement:
|
|
1169
|
+
return /* @__PURE__ */ n.jsx(tn.Provider, {
|
|
1170
|
+
value: b,
|
|
1171
|
+
children: /* @__PURE__ */ n.jsx(rt, {
|
|
1172
|
+
placement: C,
|
|
1173
1173
|
show: o,
|
|
1174
1174
|
onSelect: i,
|
|
1175
1175
|
onToggle: N,
|
|
1176
1176
|
focusFirstItemOnShow: d,
|
|
1177
1177
|
itemSelector: `.${w}-item:not(.disabled):not(:disabled)`,
|
|
1178
|
-
children: x ? g.children : /* @__PURE__ */
|
|
1178
|
+
children: x ? g.children : /* @__PURE__ */ n.jsx(u, {
|
|
1179
1179
|
...g,
|
|
1180
1180
|
ref: e,
|
|
1181
|
-
className: j(a, o && "show",
|
|
1181
|
+
className: j(a, o && "show", k[r])
|
|
1182
1182
|
})
|
|
1183
1183
|
})
|
|
1184
1184
|
});
|
|
@@ -1194,7 +1194,7 @@ const nt = Object.assign(rr, {
|
|
|
1194
1194
|
}), ot = /* @__PURE__ */ M.forwardRef(({
|
|
1195
1195
|
id: t,
|
|
1196
1196
|
bsPrefix: e,
|
|
1197
|
-
className:
|
|
1197
|
+
className: s,
|
|
1198
1198
|
type: r = "checkbox",
|
|
1199
1199
|
isValid: o = !1,
|
|
1200
1200
|
isInvalid: a = !1,
|
|
@@ -1205,28 +1205,28 @@ const nt = Object.assign(rr, {
|
|
|
1205
1205
|
const {
|
|
1206
1206
|
controlId: d
|
|
1207
1207
|
} = B(Re);
|
|
1208
|
-
return e = z(e, "form-check-input"), /* @__PURE__ */
|
|
1208
|
+
return e = z(e, "form-check-input"), /* @__PURE__ */ n.jsx(l, {
|
|
1209
1209
|
...i,
|
|
1210
1210
|
ref: c,
|
|
1211
1211
|
type: r,
|
|
1212
1212
|
id: t || d,
|
|
1213
|
-
className: j(
|
|
1213
|
+
className: j(s, e, o && "is-valid", a && "is-invalid")
|
|
1214
1214
|
});
|
|
1215
1215
|
});
|
|
1216
1216
|
ot.displayName = "FormCheckInput";
|
|
1217
1217
|
const gt = /* @__PURE__ */ M.forwardRef(({
|
|
1218
1218
|
bsPrefix: t,
|
|
1219
1219
|
className: e,
|
|
1220
|
-
htmlFor:
|
|
1220
|
+
htmlFor: s,
|
|
1221
1221
|
...r
|
|
1222
1222
|
}, o) => {
|
|
1223
1223
|
const {
|
|
1224
1224
|
controlId: a
|
|
1225
1225
|
} = B(Re);
|
|
1226
|
-
return t = z(t, "form-check-label"), /* @__PURE__ */
|
|
1226
|
+
return t = z(t, "form-check-label"), /* @__PURE__ */ n.jsx("label", {
|
|
1227
1227
|
...r,
|
|
1228
1228
|
ref: o,
|
|
1229
|
-
htmlFor:
|
|
1229
|
+
htmlFor: s || a,
|
|
1230
1230
|
className: j(e, t)
|
|
1231
1231
|
});
|
|
1232
1232
|
});
|
|
@@ -1234,7 +1234,7 @@ gt.displayName = "FormCheckLabel";
|
|
|
1234
1234
|
const or = /* @__PURE__ */ M.forwardRef(({
|
|
1235
1235
|
id: t,
|
|
1236
1236
|
bsPrefix: e,
|
|
1237
|
-
bsSwitchPrefix:
|
|
1237
|
+
bsSwitchPrefix: s,
|
|
1238
1238
|
inline: r = !1,
|
|
1239
1239
|
reverse: o = !1,
|
|
1240
1240
|
disabled: a = !1,
|
|
@@ -1253,12 +1253,12 @@ const or = /* @__PURE__ */ M.forwardRef(({
|
|
|
1253
1253
|
as: y = "input",
|
|
1254
1254
|
...N
|
|
1255
1255
|
}, f) => {
|
|
1256
|
-
e = z(e, "form-check"),
|
|
1256
|
+
e = z(e, "form-check"), s = z(s, "form-switch");
|
|
1257
1257
|
const {
|
|
1258
|
-
controlId:
|
|
1259
|
-
} = B(Re),
|
|
1260
|
-
controlId: t ||
|
|
1261
|
-
}), [
|
|
1258
|
+
controlId: C
|
|
1259
|
+
} = B(Re), b = q(() => ({
|
|
1260
|
+
controlId: t || C
|
|
1261
|
+
}), [C, t]), k = !p && w != null && w !== !1 || ha(p, gt), _ = /* @__PURE__ */ n.jsx(ot, {
|
|
1262
1262
|
...N,
|
|
1263
1263
|
type: x === "switch" ? "checkbox" : x,
|
|
1264
1264
|
ref: f,
|
|
@@ -1267,16 +1267,16 @@ const or = /* @__PURE__ */ M.forwardRef(({
|
|
|
1267
1267
|
disabled: a,
|
|
1268
1268
|
as: y
|
|
1269
1269
|
});
|
|
1270
|
-
return /* @__PURE__ */
|
|
1271
|
-
value:
|
|
1272
|
-
children: /* @__PURE__ */
|
|
1270
|
+
return /* @__PURE__ */ n.jsx(Re.Provider, {
|
|
1271
|
+
value: b,
|
|
1272
|
+
children: /* @__PURE__ */ n.jsx("div", {
|
|
1273
1273
|
style: h,
|
|
1274
|
-
className: j(m,
|
|
1275
|
-
children: p || /* @__PURE__ */
|
|
1276
|
-
children: [_,
|
|
1274
|
+
className: j(m, k && e, r && `${e}-inline`, o && `${e}-reverse`, x === "switch" && s),
|
|
1275
|
+
children: p || /* @__PURE__ */ n.jsxs(n.Fragment, {
|
|
1276
|
+
children: [_, k && /* @__PURE__ */ n.jsx(gt, {
|
|
1277
1277
|
title: g,
|
|
1278
1278
|
children: w
|
|
1279
|
-
}), d && /* @__PURE__ */
|
|
1279
|
+
}), d && /* @__PURE__ */ n.jsx(Oo, {
|
|
1280
1280
|
type: u,
|
|
1281
1281
|
tooltip: c,
|
|
1282
1282
|
children: d
|
|
@@ -1292,9 +1292,9 @@ const xt = Object.assign(or, {
|
|
|
1292
1292
|
}), ar = /* @__PURE__ */ M.forwardRef(({
|
|
1293
1293
|
className: t,
|
|
1294
1294
|
bsPrefix: e,
|
|
1295
|
-
as:
|
|
1295
|
+
as: s = "div",
|
|
1296
1296
|
...r
|
|
1297
|
-
}, o) => (e = z(e, "form-floating"), /* @__PURE__ */
|
|
1297
|
+
}, o) => (e = z(e, "form-floating"), /* @__PURE__ */ n.jsx(s, {
|
|
1298
1298
|
ref: o,
|
|
1299
1299
|
className: j(t, e),
|
|
1300
1300
|
...r
|
|
@@ -1304,7 +1304,7 @@ const lr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1304
1304
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1305
1305
|
as: t = "label",
|
|
1306
1306
|
bsPrefix: e,
|
|
1307
|
-
column:
|
|
1307
|
+
column: s = !1,
|
|
1308
1308
|
visuallyHidden: r = !1,
|
|
1309
1309
|
className: o,
|
|
1310
1310
|
htmlFor: a,
|
|
@@ -1315,9 +1315,9 @@ const lr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1315
1315
|
} = B(Re);
|
|
1316
1316
|
e = z(e, "form-label");
|
|
1317
1317
|
let d = "col-form-label";
|
|
1318
|
-
typeof
|
|
1319
|
-
const u = j(o, e, r && "visually-hidden",
|
|
1320
|
-
return process.env.NODE_ENV !== "production" && rs(c == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || c,
|
|
1318
|
+
typeof s == "string" && (d = `${d} ${d}-${s}`);
|
|
1319
|
+
const u = j(o, e, r && "visually-hidden", s && d);
|
|
1320
|
+
return process.env.NODE_ENV !== "production" && rs(c == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || c, s ? /* @__PURE__ */ n.jsx(Ps, {
|
|
1321
1321
|
ref: i,
|
|
1322
1322
|
as: "label",
|
|
1323
1323
|
className: u,
|
|
@@ -1325,7 +1325,7 @@ const lr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1325
1325
|
...l
|
|
1326
1326
|
}) : (
|
|
1327
1327
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
1328
|
-
/* @__PURE__ */
|
|
1328
|
+
/* @__PURE__ */ n.jsx(t, {
|
|
1329
1329
|
ref: i,
|
|
1330
1330
|
className: u,
|
|
1331
1331
|
htmlFor: a,
|
|
@@ -1337,25 +1337,25 @@ lr.displayName = "FormLabel";
|
|
|
1337
1337
|
const cr = /* @__PURE__ */ M.forwardRef(({
|
|
1338
1338
|
bsPrefix: t,
|
|
1339
1339
|
className: e,
|
|
1340
|
-
id:
|
|
1340
|
+
id: s,
|
|
1341
1341
|
...r
|
|
1342
1342
|
}, o) => {
|
|
1343
1343
|
const {
|
|
1344
1344
|
controlId: a
|
|
1345
1345
|
} = B(Re);
|
|
1346
|
-
return t = z(t, "form-range"), /* @__PURE__ */
|
|
1346
|
+
return t = z(t, "form-range"), /* @__PURE__ */ n.jsx("input", {
|
|
1347
1347
|
...r,
|
|
1348
1348
|
type: "range",
|
|
1349
1349
|
ref: o,
|
|
1350
1350
|
className: j(e, t),
|
|
1351
|
-
id:
|
|
1351
|
+
id: s || a
|
|
1352
1352
|
});
|
|
1353
1353
|
});
|
|
1354
1354
|
cr.displayName = "FormRange";
|
|
1355
1355
|
const ir = /* @__PURE__ */ M.forwardRef(({
|
|
1356
1356
|
bsPrefix: t,
|
|
1357
1357
|
size: e,
|
|
1358
|
-
htmlSize:
|
|
1358
|
+
htmlSize: s,
|
|
1359
1359
|
className: r,
|
|
1360
1360
|
isValid: o = !1,
|
|
1361
1361
|
isInvalid: a = !1,
|
|
@@ -1365,9 +1365,9 @@ const ir = /* @__PURE__ */ M.forwardRef(({
|
|
|
1365
1365
|
const {
|
|
1366
1366
|
controlId: d
|
|
1367
1367
|
} = B(Re);
|
|
1368
|
-
return t = z(t, "form-select"), /* @__PURE__ */
|
|
1368
|
+
return t = z(t, "form-select"), /* @__PURE__ */ n.jsx("select", {
|
|
1369
1369
|
...i,
|
|
1370
|
-
size:
|
|
1370
|
+
size: s,
|
|
1371
1371
|
ref: c,
|
|
1372
1372
|
className: j(r, t, e && `${t}-${e}`, o && "is-valid", a && "is-invalid"),
|
|
1373
1373
|
id: l || d
|
|
@@ -1379,17 +1379,17 @@ const dr = /* @__PURE__ */ M.forwardRef(
|
|
|
1379
1379
|
({
|
|
1380
1380
|
bsPrefix: t,
|
|
1381
1381
|
className: e,
|
|
1382
|
-
as:
|
|
1382
|
+
as: s = "small",
|
|
1383
1383
|
muted: r,
|
|
1384
1384
|
...o
|
|
1385
|
-
}, a) => (t = z(t, "form-text"), /* @__PURE__ */
|
|
1385
|
+
}, a) => (t = z(t, "form-text"), /* @__PURE__ */ n.jsx(s, {
|
|
1386
1386
|
...o,
|
|
1387
1387
|
ref: a,
|
|
1388
1388
|
className: j(e, t, r && "text-muted")
|
|
1389
1389
|
}))
|
|
1390
1390
|
);
|
|
1391
1391
|
dr.displayName = "FormText";
|
|
1392
|
-
const ur = /* @__PURE__ */ M.forwardRef((t, e) => /* @__PURE__ */
|
|
1392
|
+
const ur = /* @__PURE__ */ M.forwardRef((t, e) => /* @__PURE__ */ n.jsx(xt, {
|
|
1393
1393
|
...t,
|
|
1394
1394
|
ref: e,
|
|
1395
1395
|
type: "switch"
|
|
@@ -1414,20 +1414,20 @@ const Oa = Object.assign(ur, {
|
|
|
1414
1414
|
*/
|
|
1415
1415
|
validated: Le.bool,
|
|
1416
1416
|
as: Le.elementType
|
|
1417
|
-
},
|
|
1417
|
+
}, sn = /* @__PURE__ */ M.forwardRef(({
|
|
1418
1418
|
className: t,
|
|
1419
1419
|
validated: e,
|
|
1420
1420
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1421
|
-
as:
|
|
1421
|
+
as: s = "form",
|
|
1422
1422
|
...r
|
|
1423
|
-
}, o) => /* @__PURE__ */
|
|
1423
|
+
}, o) => /* @__PURE__ */ n.jsx(s, {
|
|
1424
1424
|
...r,
|
|
1425
1425
|
ref: o,
|
|
1426
1426
|
className: j(t, e && "was-validated")
|
|
1427
1427
|
}));
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
const ae = Object.assign(
|
|
1428
|
+
sn.displayName = "Form";
|
|
1429
|
+
sn.propTypes = Ta;
|
|
1430
|
+
const ae = Object.assign(sn, {
|
|
1431
1431
|
Group: co,
|
|
1432
1432
|
Control: gs,
|
|
1433
1433
|
Floating: ar,
|
|
@@ -1441,28 +1441,28 @@ const ae = Object.assign(nn, {
|
|
|
1441
1441
|
}), _t = /* @__PURE__ */ M.forwardRef(({
|
|
1442
1442
|
className: t,
|
|
1443
1443
|
bsPrefix: e,
|
|
1444
|
-
as:
|
|
1444
|
+
as: s = "span",
|
|
1445
1445
|
...r
|
|
1446
|
-
}, o) => (e = z(e, "input-group-text"), /* @__PURE__ */
|
|
1446
|
+
}, o) => (e = z(e, "input-group-text"), /* @__PURE__ */ n.jsx(s, {
|
|
1447
1447
|
ref: o,
|
|
1448
1448
|
className: j(t, e),
|
|
1449
1449
|
...r
|
|
1450
1450
|
})));
|
|
1451
1451
|
_t.displayName = "InputGroupText";
|
|
1452
|
-
const Ma = (t) => /* @__PURE__ */
|
|
1453
|
-
children: /* @__PURE__ */
|
|
1452
|
+
const Ma = (t) => /* @__PURE__ */ n.jsx(_t, {
|
|
1453
|
+
children: /* @__PURE__ */ n.jsx(ot, {
|
|
1454
1454
|
type: "checkbox",
|
|
1455
1455
|
...t
|
|
1456
1456
|
})
|
|
1457
|
-
}), La = (t) => /* @__PURE__ */
|
|
1458
|
-
children: /* @__PURE__ */
|
|
1457
|
+
}), La = (t) => /* @__PURE__ */ n.jsx(_t, {
|
|
1458
|
+
children: /* @__PURE__ */ n.jsx(ot, {
|
|
1459
1459
|
type: "radio",
|
|
1460
1460
|
...t
|
|
1461
1461
|
})
|
|
1462
1462
|
}), fr = /* @__PURE__ */ M.forwardRef(({
|
|
1463
1463
|
bsPrefix: t,
|
|
1464
1464
|
size: e,
|
|
1465
|
-
hasValidation:
|
|
1465
|
+
hasValidation: s,
|
|
1466
1466
|
className: r,
|
|
1467
1467
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1468
1468
|
as: o = "div",
|
|
@@ -1470,12 +1470,12 @@ const Ma = (t) => /* @__PURE__ */ s.jsx(_t, {
|
|
|
1470
1470
|
}, l) => {
|
|
1471
1471
|
t = z(t, "input-group");
|
|
1472
1472
|
const i = q(() => ({}), []);
|
|
1473
|
-
return /* @__PURE__ */
|
|
1473
|
+
return /* @__PURE__ */ n.jsx(vt.Provider, {
|
|
1474
1474
|
value: i,
|
|
1475
|
-
children: /* @__PURE__ */
|
|
1475
|
+
children: /* @__PURE__ */ n.jsx(o, {
|
|
1476
1476
|
ref: l,
|
|
1477
1477
|
...a,
|
|
1478
|
-
className: j(r, t, e && `${t}-${e}`,
|
|
1478
|
+
className: j(r, t, e && `${t}-${e}`, s && "has-validation")
|
|
1479
1479
|
})
|
|
1480
1480
|
});
|
|
1481
1481
|
});
|
|
@@ -1484,20 +1484,20 @@ const ft = Object.assign(fr, {
|
|
|
1484
1484
|
Text: _t,
|
|
1485
1485
|
Radio: La,
|
|
1486
1486
|
Checkbox: Ma
|
|
1487
|
-
}),
|
|
1487
|
+
}), Ht = /* @__PURE__ */ new WeakMap(), Tn = (t, e) => {
|
|
1488
1488
|
if (!t || !e) return;
|
|
1489
|
-
const
|
|
1490
|
-
|
|
1491
|
-
let r =
|
|
1492
|
-
return r || (r = e.matchMedia(t), r.refCount = 0,
|
|
1489
|
+
const s = Ht.get(e) || /* @__PURE__ */ new Map();
|
|
1490
|
+
Ht.set(e, s);
|
|
1491
|
+
let r = s.get(t);
|
|
1492
|
+
return r || (r = e.matchMedia(t), r.refCount = 0, s.set(r.media, r)), r;
|
|
1493
1493
|
};
|
|
1494
1494
|
function Ra(t, e = typeof window > "u" ? void 0 : window) {
|
|
1495
|
-
const
|
|
1495
|
+
const s = Tn(t, e), [r, o] = S(() => s ? s.matches : !1);
|
|
1496
1496
|
return os(() => {
|
|
1497
|
-
let a =
|
|
1497
|
+
let a = Tn(t, e);
|
|
1498
1498
|
if (!a)
|
|
1499
1499
|
return o(!1);
|
|
1500
|
-
let l =
|
|
1500
|
+
let l = Ht.get(e);
|
|
1501
1501
|
const i = () => {
|
|
1502
1502
|
o(a.matches);
|
|
1503
1503
|
};
|
|
@@ -1508,7 +1508,7 @@ function Ra(t, e = typeof window > "u" ? void 0 : window) {
|
|
|
1508
1508
|
}
|
|
1509
1509
|
function Aa(t) {
|
|
1510
1510
|
const e = Object.keys(t);
|
|
1511
|
-
function
|
|
1511
|
+
function s(i, c) {
|
|
1512
1512
|
return i === c ? c : i ? `${i} and ${c}` : c;
|
|
1513
1513
|
}
|
|
1514
1514
|
function r(i) {
|
|
@@ -1528,7 +1528,7 @@ function Aa(t) {
|
|
|
1528
1528
|
typeof i == "object" ? (u = i, d = c, c = !0) : (c = c || !0, u = {
|
|
1529
1529
|
[i]: c
|
|
1530
1530
|
});
|
|
1531
|
-
let m = q(() => Object.entries(u).reduce((h, [g, x]) => ((x === "up" || x === !0) && (h =
|
|
1531
|
+
let m = q(() => Object.entries(u).reduce((h, [g, x]) => ((x === "up" || x === !0) && (h = s(h, a(g))), (x === "down" || x === !0) && (h = s(h, o(g))), h), ""), [JSON.stringify(u)]);
|
|
1532
1532
|
return Ra(m, d);
|
|
1533
1533
|
}
|
|
1534
1534
|
return l;
|
|
@@ -1543,27 +1543,27 @@ const Ba = Aa({
|
|
|
1543
1543
|
}), mr = /* @__PURE__ */ M.forwardRef(({
|
|
1544
1544
|
className: t,
|
|
1545
1545
|
bsPrefix: e,
|
|
1546
|
-
as:
|
|
1546
|
+
as: s = "div",
|
|
1547
1547
|
...r
|
|
1548
|
-
}, o) => (e = z(e, "offcanvas-body"), /* @__PURE__ */
|
|
1548
|
+
}, o) => (e = z(e, "offcanvas-body"), /* @__PURE__ */ n.jsx(s, {
|
|
1549
1549
|
ref: o,
|
|
1550
1550
|
className: j(t, e),
|
|
1551
1551
|
...r
|
|
1552
1552
|
})));
|
|
1553
1553
|
mr.displayName = "OffcanvasBody";
|
|
1554
1554
|
const Pa = {
|
|
1555
|
-
[
|
|
1555
|
+
[Vt]: "show",
|
|
1556
1556
|
[ns]: "show"
|
|
1557
1557
|
}, pr = /* @__PURE__ */ M.forwardRef(({
|
|
1558
1558
|
bsPrefix: t,
|
|
1559
1559
|
className: e,
|
|
1560
|
-
children:
|
|
1560
|
+
children: s,
|
|
1561
1561
|
in: r = !1,
|
|
1562
1562
|
mountOnEnter: o = !1,
|
|
1563
1563
|
unmountOnExit: a = !1,
|
|
1564
1564
|
appear: l = !1,
|
|
1565
1565
|
...i
|
|
1566
|
-
}, c) => (t = z(t, "offcanvas"), /* @__PURE__ */
|
|
1566
|
+
}, c) => (t = z(t, "offcanvas"), /* @__PURE__ */ n.jsx(Xn, {
|
|
1567
1567
|
ref: c,
|
|
1568
1568
|
addEndListener: es,
|
|
1569
1569
|
in: r,
|
|
@@ -1571,52 +1571,52 @@ const Pa = {
|
|
|
1571
1571
|
unmountOnExit: a,
|
|
1572
1572
|
appear: l,
|
|
1573
1573
|
...i,
|
|
1574
|
-
childRef:
|
|
1575
|
-
children: (d, u) => /* @__PURE__ */ M.cloneElement(
|
|
1574
|
+
childRef: s.ref,
|
|
1575
|
+
children: (d, u) => /* @__PURE__ */ M.cloneElement(s, {
|
|
1576
1576
|
...u,
|
|
1577
|
-
className: j(e,
|
|
1577
|
+
className: j(e, s.props.className, (d === Vt || d === ts) && `${t}-toggling`, Pa[d])
|
|
1578
1578
|
})
|
|
1579
1579
|
})));
|
|
1580
1580
|
pr.displayName = "OffcanvasToggling";
|
|
1581
1581
|
const hr = /* @__PURE__ */ M.forwardRef(({
|
|
1582
1582
|
bsPrefix: t,
|
|
1583
1583
|
className: e,
|
|
1584
|
-
closeLabel:
|
|
1584
|
+
closeLabel: s = "Close",
|
|
1585
1585
|
closeButton: r = !1,
|
|
1586
1586
|
...o
|
|
1587
|
-
}, a) => (t = z(t, "offcanvas-header"), /* @__PURE__ */
|
|
1587
|
+
}, a) => (t = z(t, "offcanvas-header"), /* @__PURE__ */ n.jsx(To, {
|
|
1588
1588
|
ref: a,
|
|
1589
1589
|
...o,
|
|
1590
1590
|
className: j(e, t),
|
|
1591
|
-
closeLabel:
|
|
1591
|
+
closeLabel: s,
|
|
1592
1592
|
closeButton: r
|
|
1593
1593
|
})));
|
|
1594
1594
|
hr.displayName = "OffcanvasHeader";
|
|
1595
1595
|
const Ha = yt("h5"), gr = /* @__PURE__ */ M.forwardRef(({
|
|
1596
1596
|
className: t,
|
|
1597
1597
|
bsPrefix: e,
|
|
1598
|
-
as:
|
|
1598
|
+
as: s = Ha,
|
|
1599
1599
|
...r
|
|
1600
|
-
}, o) => (e = z(e, "offcanvas-title"), /* @__PURE__ */
|
|
1600
|
+
}, o) => (e = z(e, "offcanvas-title"), /* @__PURE__ */ n.jsx(s, {
|
|
1601
1601
|
ref: o,
|
|
1602
1602
|
className: j(t, e),
|
|
1603
1603
|
...r
|
|
1604
1604
|
})));
|
|
1605
1605
|
gr.displayName = "OffcanvasTitle";
|
|
1606
1606
|
function Wa(t) {
|
|
1607
|
-
return /* @__PURE__ */
|
|
1607
|
+
return /* @__PURE__ */ n.jsx(pr, {
|
|
1608
1608
|
...t
|
|
1609
1609
|
});
|
|
1610
1610
|
}
|
|
1611
1611
|
function za(t) {
|
|
1612
|
-
return /* @__PURE__ */
|
|
1612
|
+
return /* @__PURE__ */ n.jsx(Lt, {
|
|
1613
1613
|
...t
|
|
1614
1614
|
});
|
|
1615
1615
|
}
|
|
1616
1616
|
const xr = /* @__PURE__ */ M.forwardRef(({
|
|
1617
1617
|
bsPrefix: t,
|
|
1618
1618
|
className: e,
|
|
1619
|
-
children:
|
|
1619
|
+
children: s,
|
|
1620
1620
|
"aria-labelledby": r,
|
|
1621
1621
|
placement: o = "start",
|
|
1622
1622
|
responsive: a,
|
|
@@ -1635,51 +1635,51 @@ const xr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1635
1635
|
restoreFocusOptions: y,
|
|
1636
1636
|
onEntered: N,
|
|
1637
1637
|
onExit: f,
|
|
1638
|
-
onExiting:
|
|
1639
|
-
onEnter:
|
|
1640
|
-
onEntering:
|
|
1638
|
+
onExiting: C,
|
|
1639
|
+
onEnter: b,
|
|
1640
|
+
onEntering: k,
|
|
1641
1641
|
onExited: _,
|
|
1642
1642
|
backdropClassName: E,
|
|
1643
|
-
manager:
|
|
1643
|
+
manager: I,
|
|
1644
1644
|
renderStaticNode: F = !1,
|
|
1645
|
-
...
|
|
1645
|
+
...v
|
|
1646
1646
|
}, D) => {
|
|
1647
1647
|
const R = Y();
|
|
1648
1648
|
t = z(t, "offcanvas");
|
|
1649
1649
|
const {
|
|
1650
1650
|
onToggle: H
|
|
1651
|
-
} = B(
|
|
1651
|
+
} = B(nn) || {}, [Q, X] = S(!1), L = Ba(a || "xs", "up");
|
|
1652
1652
|
O(() => {
|
|
1653
1653
|
X(a ? l && !L : l);
|
|
1654
1654
|
}, [l, a, L]);
|
|
1655
|
-
const Z =
|
|
1655
|
+
const Z = ve(() => {
|
|
1656
1656
|
H == null || H(), h == null || h();
|
|
1657
1657
|
}), ee = q(() => ({
|
|
1658
1658
|
onHide: Z
|
|
1659
1659
|
}), [Z]);
|
|
1660
1660
|
function te() {
|
|
1661
|
-
return
|
|
1661
|
+
return I || (d ? (R.current || (R.current = new Ro({
|
|
1662
1662
|
handleContainerOverflow: !1
|
|
1663
1663
|
})), R.current) : Ao());
|
|
1664
1664
|
}
|
|
1665
1665
|
const T = (le, ...xe) => {
|
|
1666
|
-
le && (le.style.visibility = "visible"),
|
|
1666
|
+
le && (le.style.visibility = "visible"), b == null || b(le, ...xe);
|
|
1667
1667
|
}, re = (le, ...xe) => {
|
|
1668
1668
|
le && (le.style.visibility = ""), _ == null || _(...xe);
|
|
1669
|
-
}, de = $((le) => /* @__PURE__ */
|
|
1669
|
+
}, de = $((le) => /* @__PURE__ */ n.jsx("div", {
|
|
1670
1670
|
...le,
|
|
1671
1671
|
className: j(`${t}-backdrop`, E)
|
|
1672
|
-
}), [E, t]), pe = (le) => /* @__PURE__ */
|
|
1672
|
+
}), [E, t]), pe = (le) => /* @__PURE__ */ n.jsx("div", {
|
|
1673
1673
|
...le,
|
|
1674
|
-
...
|
|
1674
|
+
...v,
|
|
1675
1675
|
className: j(e, a ? `${t}-${a}` : t, `${t}-${o}`),
|
|
1676
1676
|
"aria-labelledby": r,
|
|
1677
|
-
children:
|
|
1677
|
+
children: s
|
|
1678
1678
|
});
|
|
1679
|
-
return /* @__PURE__ */
|
|
1680
|
-
children: [!Q && (a || F) && pe({}), /* @__PURE__ */
|
|
1679
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, {
|
|
1680
|
+
children: [!Q && (a || F) && pe({}), /* @__PURE__ */ n.jsx(Mo.Provider, {
|
|
1681
1681
|
value: ee,
|
|
1682
|
-
children: /* @__PURE__ */
|
|
1682
|
+
children: /* @__PURE__ */ n.jsx(Lo, {
|
|
1683
1683
|
show: Q,
|
|
1684
1684
|
ref: D,
|
|
1685
1685
|
backdrop: i,
|
|
@@ -1693,10 +1693,10 @@ const xr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1693
1693
|
onShow: m,
|
|
1694
1694
|
onHide: Z,
|
|
1695
1695
|
onEnter: T,
|
|
1696
|
-
onEntering:
|
|
1696
|
+
onEntering: k,
|
|
1697
1697
|
onEntered: N,
|
|
1698
1698
|
onExit: f,
|
|
1699
|
-
onExiting:
|
|
1699
|
+
onExiting: C,
|
|
1700
1700
|
onExited: re,
|
|
1701
1701
|
manager: te(),
|
|
1702
1702
|
transition: Wa,
|
|
@@ -1708,7 +1708,7 @@ const xr = /* @__PURE__ */ M.forwardRef(({
|
|
|
1708
1708
|
});
|
|
1709
1709
|
});
|
|
1710
1710
|
xr.displayName = "Offcanvas";
|
|
1711
|
-
const
|
|
1711
|
+
const Mn = Object.assign(xr, {
|
|
1712
1712
|
Body: mr,
|
|
1713
1713
|
Header: hr,
|
|
1714
1714
|
Title: gr
|
|
@@ -1716,24 +1716,24 @@ const Tn = Object.assign(xr, {
|
|
|
1716
1716
|
function jr({
|
|
1717
1717
|
animation: t,
|
|
1718
1718
|
bg: e,
|
|
1719
|
-
bsPrefix:
|
|
1719
|
+
bsPrefix: s,
|
|
1720
1720
|
size: r,
|
|
1721
1721
|
...o
|
|
1722
1722
|
}) {
|
|
1723
|
-
|
|
1723
|
+
s = z(s, "placeholder");
|
|
1724
1724
|
const [{
|
|
1725
1725
|
className: a,
|
|
1726
1726
|
...l
|
|
1727
1727
|
}] = Bs(o);
|
|
1728
1728
|
return {
|
|
1729
1729
|
...l,
|
|
1730
|
-
className: j(a, t ? `${
|
|
1730
|
+
className: j(a, t ? `${s}-${t}` : s, r && `${s}-${r}`, e && `bg-${e}`)
|
|
1731
1731
|
};
|
|
1732
1732
|
}
|
|
1733
1733
|
const wr = /* @__PURE__ */ M.forwardRef((t, e) => {
|
|
1734
|
-
const
|
|
1735
|
-
return /* @__PURE__ */
|
|
1736
|
-
...
|
|
1734
|
+
const s = jr(t);
|
|
1735
|
+
return /* @__PURE__ */ n.jsx(tt, {
|
|
1736
|
+
...s,
|
|
1737
1737
|
ref: e,
|
|
1738
1738
|
disabled: !0,
|
|
1739
1739
|
tabIndex: -1
|
|
@@ -1743,20 +1743,20 @@ wr.displayName = "PlaceholderButton";
|
|
|
1743
1743
|
const yr = /* @__PURE__ */ M.forwardRef(({
|
|
1744
1744
|
as: t = "span",
|
|
1745
1745
|
...e
|
|
1746
|
-
},
|
|
1746
|
+
}, s) => {
|
|
1747
1747
|
const r = jr(e);
|
|
1748
|
-
return /* @__PURE__ */
|
|
1748
|
+
return /* @__PURE__ */ n.jsx(t, {
|
|
1749
1749
|
...r,
|
|
1750
|
-
ref:
|
|
1750
|
+
ref: s
|
|
1751
1751
|
});
|
|
1752
1752
|
});
|
|
1753
1753
|
yr.displayName = "Placeholder";
|
|
1754
|
-
const
|
|
1754
|
+
const Se = Object.assign(yr, {
|
|
1755
1755
|
Button: wr
|
|
1756
|
-
}),
|
|
1756
|
+
}), rn = /* @__PURE__ */ M.forwardRef(({
|
|
1757
1757
|
bsPrefix: t,
|
|
1758
1758
|
variant: e,
|
|
1759
|
-
animation:
|
|
1759
|
+
animation: s = "border",
|
|
1760
1760
|
size: r,
|
|
1761
1761
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1762
1762
|
as: o = "div",
|
|
@@ -1764,54 +1764,54 @@ const Ie = Object.assign(yr, {
|
|
|
1764
1764
|
...l
|
|
1765
1765
|
}, i) => {
|
|
1766
1766
|
t = z(t, "spinner");
|
|
1767
|
-
const c = `${t}-${
|
|
1768
|
-
return /* @__PURE__ */
|
|
1767
|
+
const c = `${t}-${s}`;
|
|
1768
|
+
return /* @__PURE__ */ n.jsx(o, {
|
|
1769
1769
|
ref: i,
|
|
1770
1770
|
...l,
|
|
1771
1771
|
className: j(a, c, r && `${c}-${r}`, e && `text-${e}`)
|
|
1772
1772
|
});
|
|
1773
1773
|
});
|
|
1774
|
-
|
|
1775
|
-
const
|
|
1776
|
-
t && /* @__PURE__ */
|
|
1777
|
-
/* @__PURE__ */
|
|
1778
|
-
] }), trigger: o ?? "hover", rootClose: !0, show: l.controlled ? l.isOpen : void 0, onToggle: l.controlled ? (i) => l.setIsOpen(i) : void 0, children: r }), Va = ({ children: t, onStorno: e, noSpacer:
|
|
1774
|
+
rn.displayName = "Spinner";
|
|
1775
|
+
const od = ({ heading: t, content: e, placement: s, children: r, trigger: o, popoverClassName: a, ...l }) => /* @__PURE__ */ n.jsx(uo, { placement: s, overlay: /* @__PURE__ */ n.jsxs(Ct, { className: j("luminus-popover", a), onClick: (i) => i.stopPropagation(), children: [
|
|
1776
|
+
t && /* @__PURE__ */ n.jsx(Ct.Header, { children: typeof t == "string" ? /* @__PURE__ */ n.jsx(V, { variant: "h6", className: "text-primary", children: t }) : t }),
|
|
1777
|
+
/* @__PURE__ */ n.jsx(Ct.Body, { children: e })
|
|
1778
|
+
] }), trigger: o ?? "hover", rootClose: !0, show: l.controlled ? l.isOpen : void 0, onToggle: l.controlled ? (i) => l.setIsOpen(i) : void 0, children: r }), Va = ({ children: t, onStorno: e, noSpacer: s }) => {
|
|
1779
1779
|
const { texts: { formSubmit: r } } = B(ue);
|
|
1780
|
-
return /* @__PURE__ */
|
|
1781
|
-
/* @__PURE__ */
|
|
1782
|
-
/* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ n.jsxs(Jc, { noSpacer: s, children: [
|
|
1781
|
+
/* @__PURE__ */ n.jsxs(wn, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
1782
|
+
/* @__PURE__ */ n.jsx(fo, {}),
|
|
1783
1783
|
t
|
|
1784
1784
|
] }),
|
|
1785
|
-
e && /* @__PURE__ */
|
|
1786
|
-
/* @__PURE__ */
|
|
1785
|
+
e && /* @__PURE__ */ n.jsxs(wn, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: e, children: [
|
|
1786
|
+
/* @__PURE__ */ n.jsx(mo, {}),
|
|
1787
1787
|
r.storno
|
|
1788
1788
|
] })
|
|
1789
1789
|
] });
|
|
1790
|
-
}, Ua = "_button_1r3i0_1",
|
|
1790
|
+
}, Ua = "_button_1r3i0_1", Wt = {
|
|
1791
1791
|
button: Ua
|
|
1792
1792
|
}, jt = ({
|
|
1793
1793
|
color: t = "primary",
|
|
1794
1794
|
// icon = <MdOutlineArrowOutward size={10} />,
|
|
1795
1795
|
icon: e,
|
|
1796
|
-
className:
|
|
1796
|
+
className: s,
|
|
1797
1797
|
children: r,
|
|
1798
1798
|
...o
|
|
1799
|
-
}) => o.as === "link" ? /* @__PURE__ */
|
|
1799
|
+
}) => o.as === "link" ? /* @__PURE__ */ n.jsxs(_e, { to: o.href ?? "/", className: j(`luminus-context-button btn text-${t} ${s ?? ""}`, Wt.button), ...o, children: [
|
|
1800
1800
|
e,
|
|
1801
1801
|
r
|
|
1802
|
-
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */
|
|
1802
|
+
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ n.jsxs("button", { type: "button", className: j(`luminus-context-button btn text-${t} ${s ?? ""}`, Wt.button), ...o, children: [
|
|
1803
1803
|
e,
|
|
1804
1804
|
r
|
|
1805
|
-
] }) : null,
|
|
1805
|
+
] }) : null, br = ({ color: t = "primary", icon: e = /* @__PURE__ */ n.jsx(as, { size: 12 }), inputId: s = "context-file-input", accept: r = "*", onUpload: o, className: a, children: l, multiple: i, ...c }) => {
|
|
1806
1806
|
const d = (u) => {
|
|
1807
1807
|
u.target.files && (o(u.target.files), u.target.value = "");
|
|
1808
1808
|
};
|
|
1809
|
-
return /* @__PURE__ */
|
|
1810
|
-
/* @__PURE__ */
|
|
1809
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1810
|
+
/* @__PURE__ */ n.jsxs("label", { htmlFor: s, className: j(`luminus-context-button btn text-${t} ${a ?? ""}`, Wt.button), ...c, children: [
|
|
1811
1811
|
e,
|
|
1812
1812
|
l
|
|
1813
1813
|
] }),
|
|
1814
|
-
/* @__PURE__ */
|
|
1814
|
+
/* @__PURE__ */ n.jsx("input", { id: s, type: "file", accept: r, onChange: d, hidden: !0, multiple: i })
|
|
1815
1815
|
] });
|
|
1816
1816
|
}, Ga = "_icon-button_15e26_1", Ya = "_sm_15e26_14", Ka = "_md_15e26_23", qa = "_lg_15e26_32", dt = {
|
|
1817
1817
|
"icon-button": "_icon-button_15e26_1",
|
|
@@ -1819,19 +1819,19 @@ const nd = ({ heading: t, content: e, placement: n, children: r, trigger: o, pop
|
|
|
1819
1819
|
sm: Ya,
|
|
1820
1820
|
md: Ka,
|
|
1821
1821
|
lg: qa
|
|
1822
|
-
}, U = ({ type: t = "button", color: e = "primary", size:
|
|
1822
|
+
}, U = ({ type: t = "button", color: e = "primary", size: s = "md", children: r, className: o, ...a }) => a.as === "link" ? /* @__PURE__ */ n.jsx(_e, { to: a.href ?? "/", className: j(`luminus-icon-button btn text-${e} ${o ?? ""}`, dt.iconButton, dt[s]), ...a, children: r }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ n.jsx(
|
|
1823
1823
|
"button",
|
|
1824
1824
|
{
|
|
1825
1825
|
type: t,
|
|
1826
|
-
className: j(`luminus-icon-button btn text-${e} ${o ?? ""}`, dt.iconButton, dt[
|
|
1826
|
+
className: j(`luminus-icon-button btn text-${e} ${o ?? ""}`, dt.iconButton, dt[s]),
|
|
1827
1827
|
...a,
|
|
1828
1828
|
children: r
|
|
1829
1829
|
}
|
|
1830
1830
|
) : null, Qa = "_select_dlv1t_1", Ft = {
|
|
1831
1831
|
select: Qa
|
|
1832
|
-
}, Za = ({ month: t, onChangeMonth: e, locale:
|
|
1832
|
+
}, Za = ({ month: t, onChangeMonth: e, locale: s, yearMin: r = 2e3, yearMax: o = 2050 }) => {
|
|
1833
1833
|
const a = $((c) => {
|
|
1834
|
-
const d =
|
|
1834
|
+
const d = bs(t, c);
|
|
1835
1835
|
d.getFullYear() < r || d.getFullYear() > o || e(d);
|
|
1836
1836
|
}, [t, e, r, o]), l = q(() => {
|
|
1837
1837
|
const c = [];
|
|
@@ -1843,66 +1843,66 @@ const nd = ({ heading: t, content: e, placement: n, children: r, trigger: o, pop
|
|
|
1843
1843
|
for (let m = 0; m <= 11; m++)
|
|
1844
1844
|
u.push({
|
|
1845
1845
|
id: m,
|
|
1846
|
-
name: Xe(new Date(2024, m, 1), "LLLL", { locale:
|
|
1846
|
+
name: Xe(new Date(2024, m, 1), "LLLL", { locale: s })
|
|
1847
1847
|
});
|
|
1848
1848
|
return u;
|
|
1849
|
-
}, [
|
|
1850
|
-
return /* @__PURE__ */
|
|
1851
|
-
/* @__PURE__ */
|
|
1852
|
-
/* @__PURE__ */
|
|
1849
|
+
}, [s]);
|
|
1850
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
1851
|
+
/* @__PURE__ */ n.jsx(U, { onClick: () => a(-1), disabled: t.getFullYear() < r || t.getFullYear() === r && t.getMonth() <= 0, children: /* @__PURE__ */ n.jsx(Gt, {}) }),
|
|
1852
|
+
/* @__PURE__ */ n.jsx(ae.Select, { value: t.getMonth(), onChange: (c) => {
|
|
1853
1853
|
var d;
|
|
1854
1854
|
return ((d = c.target) == null ? void 0 : d.value) && e(Xo(t, Number(c.target.value)));
|
|
1855
|
-
}, className: j(Ft.select, Ft.month), children: i.map((c) => /* @__PURE__ */
|
|
1856
|
-
/* @__PURE__ */
|
|
1855
|
+
}, className: j(Ft.select, Ft.month), children: i.map((c) => /* @__PURE__ */ n.jsx("option", { value: c.id, children: c.name }, c.id)) }),
|
|
1856
|
+
/* @__PURE__ */ n.jsx(ae.Select, { value: t.getFullYear(), onChange: (c) => {
|
|
1857
1857
|
var d;
|
|
1858
|
-
return ((d = c.target) == null ? void 0 : d.value) && e(
|
|
1859
|
-
}, className: j(Ft.select), children: l.map((c) => /* @__PURE__ */
|
|
1860
|
-
/* @__PURE__ */
|
|
1858
|
+
return ((d = c.target) == null ? void 0 : d.value) && e(vs(t, Number(c.target.value)));
|
|
1859
|
+
}, className: j(Ft.select), children: l.map((c) => /* @__PURE__ */ n.jsx("option", { value: c, children: c }, c)) }),
|
|
1860
|
+
/* @__PURE__ */ n.jsx(U, { onClick: () => a(1), disabled: t.getFullYear() > o || t.getFullYear() === o && t.getMonth() >= 11, children: /* @__PURE__ */ n.jsx(Yt, {}) })
|
|
1861
1861
|
] });
|
|
1862
1862
|
}, Ja = "_select_pywmr_1", Xa = {
|
|
1863
1863
|
select: Ja
|
|
1864
|
-
}, el = ({ year: t, onChangeYear: e, optionMin:
|
|
1864
|
+
}, el = ({ year: t, onChangeYear: e, optionMin: s = 2e3, optionMax: r = 2050, className: o }) => {
|
|
1865
1865
|
const a = $((i) => {
|
|
1866
1866
|
const c = t.getFullYear() + i;
|
|
1867
|
-
c <
|
|
1868
|
-
}, [t, e, r,
|
|
1867
|
+
c < s || c > r || e(Ko(t, i));
|
|
1868
|
+
}, [t, e, r, s]), l = q(() => {
|
|
1869
1869
|
const i = [];
|
|
1870
|
-
for (let c =
|
|
1870
|
+
for (let c = s; c <= r; c++)
|
|
1871
1871
|
i.push(c);
|
|
1872
1872
|
return i;
|
|
1873
|
-
}, [
|
|
1874
|
-
return /* @__PURE__ */
|
|
1875
|
-
/* @__PURE__ */
|
|
1876
|
-
/* @__PURE__ */
|
|
1873
|
+
}, [s, r]);
|
|
1874
|
+
return /* @__PURE__ */ n.jsxs("div", { className: j("card d-flex flex-row align-items-center m-0 p-1 gap-2", o ?? ""), children: [
|
|
1875
|
+
/* @__PURE__ */ n.jsx(U, { onClick: () => a(-1), disabled: t.getFullYear() <= s, children: /* @__PURE__ */ n.jsx(Gt, {}) }),
|
|
1876
|
+
/* @__PURE__ */ n.jsx(ae.Select, { value: t.getFullYear(), onChange: (i) => {
|
|
1877
1877
|
var c;
|
|
1878
|
-
return ((c = i.target) == null ? void 0 : c.value) && e(
|
|
1879
|
-
}, className: Xa.select, children: l.map((i) => /* @__PURE__ */
|
|
1880
|
-
/* @__PURE__ */
|
|
1878
|
+
return ((c = i.target) == null ? void 0 : c.value) && e(vs(t, Number(i.target.value)));
|
|
1879
|
+
}, className: Xa.select, children: l.map((i) => /* @__PURE__ */ n.jsx("option", { value: i, children: i }, i)) }),
|
|
1880
|
+
/* @__PURE__ */ n.jsx(U, { onClick: () => a(1), disabled: t.getFullYear() >= r, children: /* @__PURE__ */ n.jsx(Yt, {}) })
|
|
1881
1881
|
] });
|
|
1882
1882
|
}, tl = "_widget_etgh3_1", nl = {
|
|
1883
1883
|
widget: tl
|
|
1884
|
-
}, sl = ({ show: t, widgets: e, handleClose:
|
|
1885
|
-
/* @__PURE__ */
|
|
1886
|
-
/* @__PURE__ */
|
|
1887
|
-
] }),
|
|
1888
|
-
const [r, o] =
|
|
1889
|
-
return /* @__PURE__ */
|
|
1890
|
-
/* @__PURE__ */
|
|
1891
|
-
/* @__PURE__ */
|
|
1884
|
+
}, sl = ({ show: t, widgets: e, handleClose: s, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ n.jsxs(ct, { show: t, onHide: () => s(), children: [
|
|
1885
|
+
/* @__PURE__ */ n.jsx(ct.Header, { closeButton: !0, children: /* @__PURE__ */ n.jsx(ct.Title, { children: o.pickWidgetToAdd }) }),
|
|
1886
|
+
/* @__PURE__ */ n.jsx(ct.Body, { children: /* @__PURE__ */ n.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ n.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ n.jsx(V, { variant: "body", children: a.name }) })) }) })
|
|
1887
|
+
] }), Ln = ({ availableWidgets: t, onAdd: e, texts: s }) => {
|
|
1888
|
+
const [r, o] = S(!1);
|
|
1889
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1890
|
+
/* @__PURE__ */ n.jsx("div", { className: j("luminus-empty-widget", nl.widget), children: /* @__PURE__ */ n.jsx(U, { onClick: () => o(!0), children: /* @__PURE__ */ n.jsx(po, {}) }) }),
|
|
1891
|
+
/* @__PURE__ */ n.jsx(sl, { show: r, widgets: t, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
1892
1892
|
o(!1), e(a);
|
|
1893
|
-
}, texts:
|
|
1893
|
+
}, texts: s })
|
|
1894
1894
|
] });
|
|
1895
1895
|
}, rl = (t) => {
|
|
1896
|
-
const [e,
|
|
1896
|
+
const [e, s] = S({ widgets: [] });
|
|
1897
1897
|
O(() => {
|
|
1898
1898
|
const o = localStorage.getItem("dashboardConfig");
|
|
1899
|
-
o ?
|
|
1899
|
+
o ? s(JSON.parse(o)) : t && s(t);
|
|
1900
1900
|
}, [t]);
|
|
1901
1901
|
const r = $((o) => {
|
|
1902
|
-
|
|
1902
|
+
s(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
|
|
1903
1903
|
}, []);
|
|
1904
1904
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
1905
|
-
}, ol = "_dashboard_16plm_1", al = "_widgets-grid_16plm_1", ll = "_widget-wrapper_16plm_8", cl = "_full-width_16plm_13", il = "_widget-edit_16plm_16", dl = "_remove-icon_16plm_19", ul = "_full-width-icon_16plm_26", fl = "_widget-edit-overlay_16plm_36",
|
|
1905
|
+
}, ol = "_dashboard_16plm_1", al = "_widgets-grid_16plm_1", ll = "_widget-wrapper_16plm_8", cl = "_full-width_16plm_13", il = "_widget-edit_16plm_16", dl = "_remove-icon_16plm_19", ul = "_full-width-icon_16plm_26", fl = "_widget-edit-overlay_16plm_36", be = {
|
|
1906
1906
|
dashboard: ol,
|
|
1907
1907
|
"widgets-grid": "_widgets-grid_16plm_1",
|
|
1908
1908
|
widgetsGrid: al,
|
|
@@ -1930,37 +1930,37 @@ class ml extends $o {
|
|
|
1930
1930
|
componentDidUpdate(e) {
|
|
1931
1931
|
this.state.hasError && e.keyForErrorState !== this.props.keyForErrorState && this.setState({ hasError: !1 });
|
|
1932
1932
|
}
|
|
1933
|
-
componentDidCatch(e,
|
|
1934
|
-
console.error("Error:", e,
|
|
1933
|
+
componentDidCatch(e, s) {
|
|
1934
|
+
console.error("Error:", e, s);
|
|
1935
1935
|
}
|
|
1936
1936
|
reload() {
|
|
1937
1937
|
this.setState({ hasError: !1 });
|
|
1938
1938
|
}
|
|
1939
1939
|
render() {
|
|
1940
|
-
const { fallback: e, children:
|
|
1941
|
-
return this.state.hasError ? o === "inject-to-child" &&
|
|
1940
|
+
const { fallback: e, children: s, texts: r, reloadButtonDisplay: o = "append-after-child" } = this.props;
|
|
1941
|
+
return this.state.hasError ? o === "inject-to-child" && Io(e) ? he.cloneElement(e, {
|
|
1942
1942
|
...e.props
|
|
1943
|
-
}, /* @__PURE__ */
|
|
1943
|
+
}, /* @__PURE__ */ n.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
1944
1944
|
...e.props.children,
|
|
1945
|
-
/* @__PURE__ */
|
|
1946
|
-
] })) : /* @__PURE__ */
|
|
1945
|
+
/* @__PURE__ */ n.jsx(jt, { type: "button", onClick: this.reload, children: r.reloadButtonContent })
|
|
1946
|
+
] })) : /* @__PURE__ */ n.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
1947
1947
|
e,
|
|
1948
|
-
o === "none" ? null : /* @__PURE__ */
|
|
1949
|
-
] }) :
|
|
1948
|
+
o === "none" ? null : /* @__PURE__ */ n.jsx(jt, { type: "button", onClick: this.reload, children: r.reloadButtonContent })
|
|
1949
|
+
] }) : s;
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
|
-
const pl = (t) => (
|
|
1952
|
+
const pl = (t) => (s) => {
|
|
1953
1953
|
const { texts: { errorBoundary: r } } = B(ue);
|
|
1954
|
-
return /* @__PURE__ */
|
|
1954
|
+
return /* @__PURE__ */ n.jsx(t, { texts: r, ...s });
|
|
1955
1955
|
}, hl = pl(ml), gl = "_widget-card_e9tsb_1", xl = {
|
|
1956
1956
|
"widget-card": "_widget-card_e9tsb_1",
|
|
1957
1957
|
widgetCard: gl
|
|
1958
|
-
},
|
|
1959
|
-
const { texts: { widget:
|
|
1960
|
-
return /* @__PURE__ */
|
|
1961
|
-
},
|
|
1958
|
+
}, Rn = ({ children: t, title: e, headerContent: s }) => /* @__PURE__ */ n.jsx(wc, { className: j(xl.widgetCard, "luminus-widget"), title: e, headerContent: s, contentClassName: "h-100 overflow-auto", children: t }), jl = ({ children: t, title: e }) => {
|
|
1959
|
+
const { texts: { widget: s } } = B(ue);
|
|
1960
|
+
return /* @__PURE__ */ n.jsx(hl, { fallback: /* @__PURE__ */ n.jsx(Rn, { title: e, children: s.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ n.jsx(So, { fallback: /* @__PURE__ */ n.jsx(Rn, { title: e, children: /* @__PURE__ */ n.jsx(Yo, {}) }), children: t }) });
|
|
1961
|
+
}, ad = ({ availableWidgets: t, editMode: e, defaultDashboardConfig: s }) => {
|
|
1962
1962
|
var u;
|
|
1963
|
-
const { texts: { homeDashboard: r } } = B(ue), { dashboardConfig: o, onChangeDashboardConfig: a } = rl(
|
|
1963
|
+
const { texts: { homeDashboard: r } } = B(ue), { dashboardConfig: o, onChangeDashboardConfig: a } = rl(s), l = $((m, h) => {
|
|
1964
1964
|
var g, x;
|
|
1965
1965
|
m === ((g = o.widgets) == null ? void 0 : g.length) ? a({
|
|
1966
1966
|
...o,
|
|
@@ -1981,16 +1981,16 @@ const pl = (t) => (n) => {
|
|
|
1981
1981
|
...o,
|
|
1982
1982
|
widgets: ((h = o.widgets) == null ? void 0 : h.map((g, x) => x === m ? { ...g, fullWidth: !g.fullWidth } : g)) ?? []
|
|
1983
1983
|
});
|
|
1984
|
-
}, [o, a]), d = $((m, h, g) => m ? /* @__PURE__ */
|
|
1985
|
-
[
|
|
1986
|
-
}, { [
|
|
1987
|
-
e && /* @__PURE__ */
|
|
1988
|
-
/* @__PURE__ */
|
|
1989
|
-
/* @__PURE__ */
|
|
1984
|
+
}, [o, a]), d = $((m, h, g) => m ? /* @__PURE__ */ n.jsxs("div", { className: j(be.widgetWrapper, {
|
|
1985
|
+
[be.widgetEdit]: e && m.id !== -1
|
|
1986
|
+
}, { [be.fullWidth]: g }), children: [
|
|
1987
|
+
e && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1988
|
+
/* @__PURE__ */ n.jsx(U, { color: "danger", onClick: () => i(h), className: j(be.removeIcon), children: /* @__PURE__ */ n.jsx(ls, {}) }),
|
|
1989
|
+
/* @__PURE__ */ n.jsx(U, { color: g ? "danger" : "primary", onClick: () => c(h), className: j(be.fullWidthIcon), children: /* @__PURE__ */ n.jsx(ho, {}) })
|
|
1990
1990
|
] }),
|
|
1991
|
-
m.id === -1 ? e && /* @__PURE__ */
|
|
1992
|
-
m.id > -1 && e && /* @__PURE__ */
|
|
1993
|
-
] }, h) : /* @__PURE__ */
|
|
1991
|
+
m.id === -1 ? e && /* @__PURE__ */ n.jsx("div", { className: be.widgetWrapper, children: /* @__PURE__ */ n.jsx(Ln, { availableWidgets: t, onAdd: (x) => l(h, x), texts: r }) }) : /* @__PURE__ */ n.jsx(jl, { title: m.title, children: /* @__PURE__ */ n.jsx(m.WidgetElement, { title: m.title }) }),
|
|
1992
|
+
m.id > -1 && e && /* @__PURE__ */ n.jsx("div", { className: be.widgetEditOverlay })
|
|
1993
|
+
] }, h) : /* @__PURE__ */ n.jsx(n.Fragment, {}), [
|
|
1994
1994
|
e,
|
|
1995
1995
|
l,
|
|
1996
1996
|
i,
|
|
@@ -1998,105 +1998,105 @@ const pl = (t) => (n) => {
|
|
|
1998
1998
|
t,
|
|
1999
1999
|
r
|
|
2000
2000
|
]);
|
|
2001
|
-
return /* @__PURE__ */
|
|
2001
|
+
return /* @__PURE__ */ n.jsx("div", { className: be.dashboard, children: /* @__PURE__ */ n.jsxs("div", { className: be.widgetsGrid, children: [
|
|
2002
2002
|
(u = o.widgets) == null ? void 0 : u.map((m, h) => d(t.find((g) => g.id === m.widgetId), h, m.fullWidth)),
|
|
2003
|
-
e && /* @__PURE__ */
|
|
2003
|
+
e && /* @__PURE__ */ n.jsx(Ln, { availableWidgets: t, onAdd: (m) => {
|
|
2004
2004
|
var h;
|
|
2005
2005
|
return l((h = o.widgets) == null ? void 0 : h.length, m);
|
|
2006
2006
|
}, texts: r })
|
|
2007
2007
|
] }) });
|
|
2008
|
-
}, wl = "_badge_nhser_1", yl = "_sm_nhser_1",
|
|
2008
|
+
}, wl = "_badge_nhser_1", yl = "_sm_nhser_1", bl = "_md_nhser_4", vl = "_lg_nhser_7", An = {
|
|
2009
2009
|
badge: wl,
|
|
2010
2010
|
sm: yl,
|
|
2011
|
-
md:
|
|
2012
|
-
lg:
|
|
2013
|
-
},
|
|
2011
|
+
md: bl,
|
|
2012
|
+
lg: vl
|
|
2013
|
+
}, ld = ({ children: t, color: e = "primary", size: s = "md", className: r }) => /* @__PURE__ */ n.jsx("span", { className: j(`luminus-badge badge bg-${e} ${r ?? ""}`, An.badge, An[s]), children: t }), _l = "_collapse-icon_1ahhn_1", Nl = "_collapsed_1ahhn_6", Bn = {
|
|
2014
2014
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
2015
2015
|
collapseIcon: _l,
|
|
2016
2016
|
collapsed: Nl
|
|
2017
|
-
},
|
|
2018
|
-
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, l] =
|
|
2017
|
+
}, Cl = ({ title: t, children: e, className: s, ...r }) => {
|
|
2018
|
+
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, l] = S(o), i = r.controlled ? r.isOpen : a;
|
|
2019
2019
|
return O(() => {
|
|
2020
2020
|
l(o);
|
|
2021
|
-
}, [o]), /* @__PURE__ */
|
|
2022
|
-
/* @__PURE__ */
|
|
2023
|
-
/* @__PURE__ */
|
|
2024
|
-
/* @__PURE__ */
|
|
2025
|
-
[
|
|
2021
|
+
}, [o]), /* @__PURE__ */ n.jsxs("div", { className: s ?? "", children: [
|
|
2022
|
+
/* @__PURE__ */ n.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => r.controlled ? r.onToggle(!r.isOpen) : l(!a), children: [
|
|
2023
|
+
/* @__PURE__ */ n.jsx(V, { variant: "h6", children: t }),
|
|
2024
|
+
/* @__PURE__ */ n.jsx(cs, { className: j(Bn.collapseIcon, {
|
|
2025
|
+
[Bn.collapsed]: i
|
|
2026
2026
|
}) })
|
|
2027
2027
|
] }),
|
|
2028
|
-
/* @__PURE__ */
|
|
2029
|
-
/* @__PURE__ */
|
|
2028
|
+
/* @__PURE__ */ n.jsx(_s, { in: i, children: /* @__PURE__ */ n.jsx("div", { children: e }) }),
|
|
2029
|
+
/* @__PURE__ */ n.jsx("hr", { className: `my-0 ${i ? "mt-3" : ""}` })
|
|
2030
2030
|
] });
|
|
2031
|
-
},
|
|
2032
|
-
feedback:
|
|
2031
|
+
}, kl = "_feedback_esh1j_1", $l = "_feedback-spacer_esh1j_8", Pn = {
|
|
2032
|
+
feedback: kl,
|
|
2033
2033
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
2034
2034
|
feedbackSpacer: $l
|
|
2035
|
-
}, Fe = ({ message: t }) => /* @__PURE__ */
|
|
2036
|
-
/* @__PURE__ */
|
|
2037
|
-
/* @__PURE__ */
|
|
2035
|
+
}, Fe = ({ message: t }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2036
|
+
/* @__PURE__ */ n.jsx("div", { className: j("invalid-feedback luminus-invalid-feedback", Pn.feedback), children: t }),
|
|
2037
|
+
/* @__PURE__ */ n.jsx("div", { className: j("invalid-feedback-spacer", Pn.feedbackSpacer), children: t })
|
|
2038
2038
|
] });
|
|
2039
|
-
function
|
|
2039
|
+
function Il(t, e, s) {
|
|
2040
2040
|
var r = this, o = Y(null), a = Y(0), l = Y(null), i = Y([]), c = Y(), d = Y(), u = Y(t), m = Y(!0);
|
|
2041
2041
|
u.current = t;
|
|
2042
2042
|
var h = typeof window < "u", g = !e && e !== 0 && h;
|
|
2043
2043
|
if (typeof t != "function") throw new TypeError("Expected a function");
|
|
2044
2044
|
e = +e || 0;
|
|
2045
|
-
var x = !!(
|
|
2045
|
+
var x = !!(s = s || {}).leading, w = !("trailing" in s) || !!s.trailing, p = "maxWait" in s, y = "debounceOnServer" in s && !!s.debounceOnServer, N = p ? Math.max(+s.maxWait || 0, e) : null;
|
|
2046
2046
|
O(function() {
|
|
2047
2047
|
return m.current = !0, function() {
|
|
2048
2048
|
m.current = !1;
|
|
2049
2049
|
};
|
|
2050
2050
|
}, []);
|
|
2051
2051
|
var f = q(function() {
|
|
2052
|
-
var
|
|
2053
|
-
var
|
|
2054
|
-
return i.current = c.current = null, a.current = F, d.current = u.current.apply(D,
|
|
2055
|
-
},
|
|
2056
|
-
g && cancelAnimationFrame(l.current), l.current = g ? requestAnimationFrame(F) : setTimeout(F,
|
|
2057
|
-
},
|
|
2052
|
+
var C = function(F) {
|
|
2053
|
+
var v = i.current, D = c.current;
|
|
2054
|
+
return i.current = c.current = null, a.current = F, d.current = u.current.apply(D, v);
|
|
2055
|
+
}, b = function(F, v) {
|
|
2056
|
+
g && cancelAnimationFrame(l.current), l.current = g ? requestAnimationFrame(F) : setTimeout(F, v);
|
|
2057
|
+
}, k = function(F) {
|
|
2058
2058
|
if (!m.current) return !1;
|
|
2059
|
-
var
|
|
2060
|
-
return !o.current ||
|
|
2059
|
+
var v = F - o.current;
|
|
2060
|
+
return !o.current || v >= e || v < 0 || p && F - a.current >= N;
|
|
2061
2061
|
}, _ = function(F) {
|
|
2062
|
-
return l.current = null, w && i.current ?
|
|
2062
|
+
return l.current = null, w && i.current ? C(F) : (i.current = c.current = null, d.current);
|
|
2063
2063
|
}, E = function F() {
|
|
2064
|
-
var
|
|
2065
|
-
if (
|
|
2064
|
+
var v = Date.now();
|
|
2065
|
+
if (k(v)) return _(v);
|
|
2066
2066
|
if (m.current) {
|
|
2067
|
-
var D = e - (
|
|
2068
|
-
|
|
2067
|
+
var D = e - (v - o.current), R = p ? Math.min(D, N - (v - a.current)) : D;
|
|
2068
|
+
b(F, R);
|
|
2069
2069
|
}
|
|
2070
|
-
},
|
|
2070
|
+
}, I = function() {
|
|
2071
2071
|
if (h || y) {
|
|
2072
|
-
var F = Date.now(),
|
|
2073
|
-
if (i.current = [].slice.call(arguments), c.current = r, o.current = F,
|
|
2074
|
-
if (!l.current && m.current) return a.current = o.current,
|
|
2075
|
-
if (p) return
|
|
2072
|
+
var F = Date.now(), v = k(F);
|
|
2073
|
+
if (i.current = [].slice.call(arguments), c.current = r, o.current = F, v) {
|
|
2074
|
+
if (!l.current && m.current) return a.current = o.current, b(E, e), x ? C(o.current) : d.current;
|
|
2075
|
+
if (p) return b(E, e), C(o.current);
|
|
2076
2076
|
}
|
|
2077
|
-
return l.current ||
|
|
2077
|
+
return l.current || b(E, e), d.current;
|
|
2078
2078
|
}
|
|
2079
2079
|
};
|
|
2080
|
-
return
|
|
2080
|
+
return I.cancel = function() {
|
|
2081
2081
|
l.current && (g ? cancelAnimationFrame(l.current) : clearTimeout(l.current)), a.current = 0, i.current = o.current = c.current = l.current = null;
|
|
2082
|
-
},
|
|
2082
|
+
}, I.isPending = function() {
|
|
2083
2083
|
return !!l.current;
|
|
2084
|
-
},
|
|
2084
|
+
}, I.flush = function() {
|
|
2085
2085
|
return l.current ? _(Date.now()) : d.current;
|
|
2086
|
-
},
|
|
2086
|
+
}, I;
|
|
2087
2087
|
}, [x, p, e, N, w, g, h, y]);
|
|
2088
2088
|
return f;
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2090
|
+
function Sl(t, e) {
|
|
2091
2091
|
return t === e;
|
|
2092
2092
|
}
|
|
2093
2093
|
function Dl(t, e) {
|
|
2094
2094
|
return e;
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2097
|
-
var r =
|
|
2096
|
+
function vr(t, e, s) {
|
|
2097
|
+
var r = Sl, o = ps(Dl, t), a = o[0], l = o[1], i = Il($(function(d) {
|
|
2098
2098
|
return l(d);
|
|
2099
|
-
}, [l]), e,
|
|
2099
|
+
}, [l]), e, s), c = Y(t);
|
|
2100
2100
|
return r(c.current, t) || (i(t), c.current = t), r(a, t) && i.cancel(), [a, i];
|
|
2101
2101
|
}
|
|
2102
2102
|
const Fl = "_wrapper_uccrb_1", El = "_open_uccrb_9", Ol = "_dropdown_uccrb_13", Tl = "_search-input-container_uccrb_19", Ml = "_search-input_uccrb_19", Ll = "_loading-container_uccrb_25", Rl = "_items-container_uccrb_32", Al = "_header-row_uccrb_38", Bl = "_item_uccrb_32", Pl = "_name_uccrb_57", Hl = "_column-item_uccrb_62", Wl = "_icon_uccrb_66", zl = "_clear-button_uccrb_74", fe = {
|
|
@@ -2120,22 +2120,22 @@ const Fl = "_wrapper_uccrb_1", El = "_open_uccrb_9", Ol = "_dropdown_uccrb_13",
|
|
|
2120
2120
|
icon: Wl,
|
|
2121
2121
|
"clear-button": "_clear-button_uccrb_74",
|
|
2122
2122
|
clearButton: zl
|
|
2123
|
-
},
|
|
2123
|
+
}, on = ({ show: t, onCancel: e, items: s, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: l, itemsNameWidth: i, additionalColumns: c, displayIdAsName: d = !1, autoHideSearch: u = !1, allItemsLength: m, disabled: h, isLoading: g = !1, inputRef: x }) => {
|
|
2124
2124
|
var W;
|
|
2125
|
-
const w = Y(null), p = Y(null), y = Y(null), N = Y(null), [f,
|
|
2125
|
+
const w = Y(null), p = Y(null), y = Y(null), N = Y(null), [f, C] = S(""), [b] = vr(f, 500), [, k] = S(!1), _ = (W = x.current) == null ? void 0 : W.getBoundingClientRect(), E = (_ == null ? void 0 : _.x) ?? 0, I = ((_ == null ? void 0 : _.x) ?? 0) + ((_ == null ? void 0 : _.width) ?? 0), F = (_ == null ? void 0 : _.y) ?? 0, v = ((_ == null ? void 0 : _.y) ?? 0) + ((_ == null ? void 0 : _.height) ?? 0), D = (_ == null ? void 0 : _.width) ?? 0, R = (_ == null ? void 0 : _.height) ?? 0, H = 5, Q = q(() => E ? E > window.innerWidth / 2 : !1, [E]), X = q(() => F ? F > window.innerHeight / 2 : !1, [F]);
|
|
2126
2126
|
O(() => {
|
|
2127
2127
|
var A;
|
|
2128
2128
|
t && ((A = y.current) == null || A.focus());
|
|
2129
2129
|
}, [y, t]), O(() => {
|
|
2130
|
-
t ||
|
|
2130
|
+
t || C("");
|
|
2131
2131
|
}, [t]), O(() => {
|
|
2132
|
-
a(
|
|
2133
|
-
}, [
|
|
2134
|
-
const [L, Z] =
|
|
2132
|
+
a(b);
|
|
2133
|
+
}, [b, a]);
|
|
2134
|
+
const [L, Z] = S(null);
|
|
2135
2135
|
O(() => {
|
|
2136
|
-
t &&
|
|
2137
|
-
}, [
|
|
2138
|
-
const ee = q(() => L !== null ?
|
|
2136
|
+
t && s.length > 0 ? Z(0) : Z(null);
|
|
2137
|
+
}, [s, t]);
|
|
2138
|
+
const ee = q(() => L !== null ? s.at(L) ?? null : null, [L, s]), te = $((A, ne) => {
|
|
2139
2139
|
var We, ze;
|
|
2140
2140
|
const me = document.getElementById(`item-${A}`);
|
|
2141
2141
|
if (me) {
|
|
@@ -2154,8 +2154,8 @@ const Fl = "_wrapper_uccrb_1", El = "_open_uccrb_9", Ol = "_dropdown_uccrb_13",
|
|
|
2154
2154
|
if (L === null || h)
|
|
2155
2155
|
return;
|
|
2156
2156
|
const ne = L + A;
|
|
2157
|
-
ne < 0 || ne >=
|
|
2158
|
-
}, [L,
|
|
2157
|
+
ne < 0 || ne >= s.length || Z((me) => (me !== null && te(me, A > 0 ? "down" : "up"), ne));
|
|
2158
|
+
}, [L, s, h, te]), re = $((A) => {
|
|
2159
2159
|
if (t)
|
|
2160
2160
|
switch (A.key) {
|
|
2161
2161
|
case "Escape":
|
|
@@ -2172,7 +2172,7 @@ const Fl = "_wrapper_uccrb_1", El = "_open_uccrb_9", Ol = "_dropdown_uccrb_13",
|
|
|
2172
2172
|
break;
|
|
2173
2173
|
}
|
|
2174
2174
|
}, [e, t, T, ee, h, o]), de = $(() => {
|
|
2175
|
-
|
|
2175
|
+
k((A) => !A);
|
|
2176
2176
|
}, []);
|
|
2177
2177
|
O(() => (window.addEventListener("scroll", de), () => {
|
|
2178
2178
|
window.removeEventListener("scroll", de);
|
|
@@ -2180,90 +2180,90 @@ const Fl = "_wrapper_uccrb_1", El = "_open_uccrb_9", Ol = "_dropdown_uccrb_13",
|
|
|
2180
2180
|
window.removeEventListener("resize", de);
|
|
2181
2181
|
}), [de]), js(re), ws([w, p], e);
|
|
2182
2182
|
const pe = i ?? (c && c.length > 0 ? 250 : 0), le = (c == null ? void 0 : c.reduce((A, ne) => A + (ne.width ?? 100), 0)) ?? 0, xe = `calc(max(${D}px, ${pe}px + ${le}px))`;
|
|
2183
|
-
return /* @__PURE__ */
|
|
2184
|
-
/* @__PURE__ */
|
|
2185
|
-
r && t && !h && /* @__PURE__ */
|
|
2183
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2184
|
+
/* @__PURE__ */ n.jsx(Dr, { show: t, onClick: e }),
|
|
2185
|
+
r && t && !h && /* @__PURE__ */ n.jsx("button", { ref: p, type: "button", className: j("luminus-dropdown-picker-clear-button", fe.clearButton), onClick: () => !h && o(null), style: {
|
|
2186
2186
|
top: `calc(${F}px + ${R / 2}px - 12px)`,
|
|
2187
2187
|
left: `calc(${E}px - 24px - 8px)`
|
|
2188
|
-
}, children: /* @__PURE__ */
|
|
2189
|
-
/* @__PURE__ */
|
|
2188
|
+
}, children: /* @__PURE__ */ n.jsx(V, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ n.jsx(ls, { size: 16 }) }) }),
|
|
2189
|
+
/* @__PURE__ */ n.jsx("div", { className: j("luminus-dropdown-picker", fe.wrapper, {
|
|
2190
2190
|
[fe.open]: t
|
|
2191
2191
|
}), style: {
|
|
2192
|
-
top: X ? `calc(${F}px - 50vh - 8px)` : `calc(${
|
|
2193
|
-
left: Q ? `calc(${
|
|
2194
|
-
right: Q ? `${
|
|
2192
|
+
top: X ? `calc(${F}px - 50vh - 8px)` : `calc(${v}px + 8px)`,
|
|
2193
|
+
left: Q ? `calc(${I}px - ${xe})` : E,
|
|
2194
|
+
right: Q ? `${I}px` : `calc(${E}px + ${xe})`,
|
|
2195
2195
|
width: xe,
|
|
2196
2196
|
justifyContent: X ? "flex-end" : "flex-start"
|
|
2197
|
-
}, children: /* @__PURE__ */
|
|
2198
|
-
u && (m ??
|
|
2197
|
+
}, children: /* @__PURE__ */ n.jsx("div", { ref: w, className: j("shadow rounded", fe.dropdown), children: !h && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2198
|
+
u && (m ?? s.length) <= H ? null : /* @__PURE__ */ n.jsx("div", { className: j("search-input-container border-bottom", fe.searchInputContainer), children: /* @__PURE__ */ n.jsx(ae.Control, { ref: y, type: "search", size: "sm", className: fe.searchInput, placeholder: l.searchPlaceholder, value: f, onChange: (A) => {
|
|
2199
2199
|
var ne;
|
|
2200
|
-
return
|
|
2200
|
+
return C(((ne = A.target) == null ? void 0 : ne.value) ?? "");
|
|
2201
2201
|
} }) }),
|
|
2202
|
-
g ? /* @__PURE__ */
|
|
2203
|
-
c && c.length > 0 && /* @__PURE__ */
|
|
2204
|
-
/* @__PURE__ */
|
|
2205
|
-
c == null ? void 0 : c.map((A) => /* @__PURE__ */
|
|
2202
|
+
g ? /* @__PURE__ */ n.jsx("div", { className: fe.loadingContainer, children: /* @__PURE__ */ n.jsx(rn, { animation: "border", variant: "primary" }) }) : s.length > 0 && /* @__PURE__ */ n.jsxs("div", { ref: N, className: j("items", fe.itemsContainer), children: [
|
|
2203
|
+
c && c.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: j("header-row border-bottom", fe.headerRow), children: [
|
|
2204
|
+
/* @__PURE__ */ n.jsx("div", { className: fe.name }),
|
|
2205
|
+
c == null ? void 0 : c.map((A) => /* @__PURE__ */ n.jsx("div", { className: fe.columnItem, style: {
|
|
2206
2206
|
width: `${A.width ?? 100}px`,
|
|
2207
2207
|
minWidth: `${A.width ?? 100}px`,
|
|
2208
2208
|
maxWidth: `${A.width ?? 100}px`
|
|
2209
|
-
}, children: /* @__PURE__ */
|
|
2209
|
+
}, children: /* @__PURE__ */ n.jsx(V, { variant: "caption", children: A.name }) }, A.key))
|
|
2210
2210
|
] }),
|
|
2211
|
-
|
|
2211
|
+
s == null ? void 0 : s.map((A, ne) => /* @__PURE__ */ n.jsxs("button", { id: `item-${ne}`, type: "button", className: j("item cursor-pointer", fe.item, {
|
|
2212
2212
|
[fe.focused]: L === ne
|
|
2213
2213
|
}, {
|
|
2214
2214
|
focused: L === ne
|
|
2215
2215
|
}), onClick: () => !h && o(A), onMouseEnter: () => Z(ne), children: [
|
|
2216
|
-
/* @__PURE__ */
|
|
2217
|
-
c == null ? void 0 : c.map((me) => /* @__PURE__ */
|
|
2216
|
+
/* @__PURE__ */ n.jsx("div", { className: fe.name, children: /* @__PURE__ */ n.jsx(V, { variant: "body2", children: d ? A.id : A.name }) }),
|
|
2217
|
+
c == null ? void 0 : c.map((me) => /* @__PURE__ */ n.jsx("div", { className: fe.columnItem, style: {
|
|
2218
2218
|
width: `${me.width ?? 100}px`,
|
|
2219
2219
|
minWidth: `${me.width ?? 100}px`,
|
|
2220
2220
|
maxWidth: `${me.width ?? 100}px`
|
|
2221
|
-
}, children: /* @__PURE__ */
|
|
2221
|
+
}, children: /* @__PURE__ */ n.jsx(V, { variant: "caption", className: j("text-muted"), children: A.additionalColumns && A.additionalColumns[me.key] }) }, me.key))
|
|
2222
2222
|
] }, A.id))
|
|
2223
2223
|
] })
|
|
2224
2224
|
] }) }) })
|
|
2225
2225
|
] });
|
|
2226
2226
|
};
|
|
2227
2227
|
function _r(t) {
|
|
2228
|
-
return
|
|
2228
|
+
return Kt({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }, child: [] }] })(t);
|
|
2229
2229
|
}
|
|
2230
2230
|
function Nr(t) {
|
|
2231
|
-
return
|
|
2231
|
+
return Kt({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }, child: [] }] })(t);
|
|
2232
2232
|
}
|
|
2233
2233
|
function Vl(t) {
|
|
2234
|
-
return
|
|
2234
|
+
return Kt({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" }, child: [] }] })(t);
|
|
2235
2235
|
}
|
|
2236
|
-
const Ul = "_item_1dy8x_1",
|
|
2236
|
+
const Ul = "_item_1dy8x_1", Cr = {
|
|
2237
2237
|
item: Ul
|
|
2238
|
-
},
|
|
2238
|
+
}, an = ({
|
|
2239
2239
|
color: t = "primary",
|
|
2240
2240
|
// icon = <MdOutlineArrowOutward />,
|
|
2241
2241
|
icon: e,
|
|
2242
|
-
className:
|
|
2242
|
+
className: s,
|
|
2243
2243
|
children: r,
|
|
2244
2244
|
...o
|
|
2245
|
-
}) => /* @__PURE__ */
|
|
2245
|
+
}) => /* @__PURE__ */ n.jsxs(nt.Item, { className: j(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${s ?? ""}`, Cr.item), ...o, children: [
|
|
2246
2246
|
e,
|
|
2247
2247
|
r
|
|
2248
|
-
] }),
|
|
2248
|
+
] }), kr = (t) => /* @__PURE__ */ n.jsx(nt.Toggle, { ...t }), cd = ({ color: t = "primary", icon: e = /* @__PURE__ */ n.jsx(as, { size: 12 }), inputId: s = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: l, children: i, ...c }) => {
|
|
2249
2249
|
const d = (u) => {
|
|
2250
2250
|
u.target.files && (o(u.target.files), u.target.value = "");
|
|
2251
2251
|
};
|
|
2252
|
-
return /* @__PURE__ */
|
|
2253
|
-
/* @__PURE__ */
|
|
2252
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2253
|
+
/* @__PURE__ */ n.jsxs("label", { htmlFor: s, className: j(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${l ?? ""}`, Cr.item), ...c, children: [
|
|
2254
2254
|
e,
|
|
2255
2255
|
i
|
|
2256
2256
|
] }),
|
|
2257
|
-
/* @__PURE__ */
|
|
2257
|
+
/* @__PURE__ */ n.jsx("input", { id: s, type: "file", accept: r, onChange: d, hidden: !0, multiple: a })
|
|
2258
2258
|
] });
|
|
2259
2259
|
}, Gl = "_divider_1e6rk_1", Yl = {
|
|
2260
2260
|
divider: Gl
|
|
2261
|
-
},
|
|
2261
|
+
}, id = ({ className: t }) => /* @__PURE__ */ n.jsx(nt.Divider, { className: j("luminus-dropdown-divider", t, Yl.divider) }), Kl = "_dropdown_1lk66_1", ql = {
|
|
2262
2262
|
dropdown: Kl
|
|
2263
|
-
}, $r = ({ toggle: t, children: e, ...
|
|
2263
|
+
}, $r = ({ toggle: t, children: e, ...s }) => /* @__PURE__ */ n.jsxs(nt, { ...s, children: [
|
|
2264
2264
|
t,
|
|
2265
|
-
/* @__PURE__ */
|
|
2266
|
-
] }), Ql = ({ searchTypes: t, selectedType: e, setSelectedType:
|
|
2265
|
+
/* @__PURE__ */ n.jsx(nt.Menu, { className: j("luminus-dropdown rounded shadow", ql.dropdown), children: e })
|
|
2266
|
+
] }), Ql = ({ searchTypes: t, selectedType: e, setSelectedType: s }) => /* @__PURE__ */ n.jsx($r, { toggle: /* @__PURE__ */ n.jsx(kr, { as: go, icon: null, text: e == null ? void 0 : e.text }), children: t.map((r) => /* @__PURE__ */ n.jsx(an, { icon: null, onClick: () => s(r.key), children: r.text }, r.key)) }), Zl = "_dropdown_1ddrg_1", Jl = "_open_1ddrg_12", Xl = "_loading-container_1ddrg_15", ec = "_groups-container_1ddrg_22", tc = "_group_1ddrg_22", nc = "_header_1ddrg_26", sc = "_item_1ddrg_33", Ee = {
|
|
2267
2267
|
dropdown: Zl,
|
|
2268
2268
|
open: Jl,
|
|
2269
2269
|
"loading-container": "_loading-container_1ddrg_15",
|
|
@@ -2273,20 +2273,20 @@ const Ul = "_item_1dy8x_1", kr = {
|
|
|
2273
2273
|
group: tc,
|
|
2274
2274
|
header: nc,
|
|
2275
2275
|
item: sc
|
|
2276
|
-
}, rc = ({ show: t, query: e, onCancel:
|
|
2276
|
+
}, rc = ({ show: t, query: e, onCancel: s, groups: r, isLoading: o, searchTypes: a }) => {
|
|
2277
2277
|
const { texts: { appSearch: l } } = B(ue), i = Y(null), c = $((d) => {
|
|
2278
2278
|
var m;
|
|
2279
2279
|
const u = (m = a.find((h) => h.key === d.type)) == null ? void 0 : m.toPath;
|
|
2280
2280
|
return u ? `${u}/${d.searchKey}` : "/not-found";
|
|
2281
2281
|
}, [a]);
|
|
2282
|
-
return ws([i],
|
|
2282
|
+
return ws([i], s), /* @__PURE__ */ n.jsx("div", { ref: i, className: j("luminus-app-search-dropdown shadow rounded", Ee.dropdown, {
|
|
2283
2283
|
[Ee.open]: t
|
|
2284
|
-
}), children: o ? /* @__PURE__ */
|
|
2284
|
+
}), children: o ? /* @__PURE__ */ n.jsx("div", { className: Ee.loadingContainer, children: /* @__PURE__ */ n.jsx(rn, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ n.jsx("div", { className: Ee.groupsContainer, children: r == null ? void 0 : r.map((d) => {
|
|
2285
2285
|
var u;
|
|
2286
|
-
return /* @__PURE__ */
|
|
2287
|
-
/* @__PURE__ */
|
|
2288
|
-
/* @__PURE__ */
|
|
2289
|
-
/* @__PURE__ */
|
|
2286
|
+
return /* @__PURE__ */ n.jsxs("div", { className: j(Ee.group), children: [
|
|
2287
|
+
/* @__PURE__ */ n.jsxs(_e, { to: `/search?query=${e}&type=${d.key.category}`, className: j("group-header", Ee.header), onClick: s, children: [
|
|
2288
|
+
/* @__PURE__ */ n.jsx(V, { variant: "body", className: "text-primary", children: d.key.categoryName }),
|
|
2289
|
+
/* @__PURE__ */ n.jsxs(V, { variant: "caption", children: [
|
|
2290
2290
|
d.items.length,
|
|
2291
2291
|
" ",
|
|
2292
2292
|
l.amountFrom,
|
|
@@ -2294,15 +2294,15 @@ const Ul = "_item_1dy8x_1", kr = {
|
|
|
2294
2294
|
d.key.totalCount
|
|
2295
2295
|
] })
|
|
2296
2296
|
] }),
|
|
2297
|
-
(u = d.items) == null ? void 0 : u.map((m, h) => /* @__PURE__ */
|
|
2297
|
+
(u = d.items) == null ? void 0 : u.map((m, h) => /* @__PURE__ */ n.jsxs(
|
|
2298
2298
|
_e,
|
|
2299
2299
|
{
|
|
2300
2300
|
to: c(m),
|
|
2301
2301
|
className: j("search-item d-flex gap-3 align-items-center justify-content-between", Ee.item),
|
|
2302
|
-
onClick:
|
|
2302
|
+
onClick: s,
|
|
2303
2303
|
children: [
|
|
2304
|
-
/* @__PURE__ */
|
|
2305
|
-
/* @__PURE__ */
|
|
2304
|
+
/* @__PURE__ */ n.jsx(V, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
|
|
2305
|
+
/* @__PURE__ */ n.jsx(V, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ n.jsx(xo, {}) })
|
|
2306
2306
|
]
|
|
2307
2307
|
},
|
|
2308
2308
|
h
|
|
@@ -2320,37 +2320,37 @@ const Ul = "_item_1dy8x_1", kr = {
|
|
|
2320
2320
|
"submit-button": "_submit-button_1lkfy_20",
|
|
2321
2321
|
submitButton: dc
|
|
2322
2322
|
}, uc = (t, e) => {
|
|
2323
|
-
const
|
|
2323
|
+
const s = st(), [r, o] = S(!1), [a, l] = S([]), i = !t || !t.key, c = $(() => {
|
|
2324
2324
|
if (e.length < 3) {
|
|
2325
2325
|
l([]);
|
|
2326
2326
|
return;
|
|
2327
2327
|
}
|
|
2328
|
-
o(!0),
|
|
2328
|
+
o(!0), s.get(`/search/${e}?count=${i ? 5 : 20}${i ? "" : `&type=${t.key}`}`).then(({ data: d }) => {
|
|
2329
2329
|
l(d), o(!1);
|
|
2330
2330
|
}).catch(() => {
|
|
2331
2331
|
o(!1);
|
|
2332
2332
|
});
|
|
2333
|
-
}, [t, e,
|
|
2333
|
+
}, [t, e, s, i]);
|
|
2334
2334
|
return O(() => {
|
|
2335
2335
|
c();
|
|
2336
2336
|
}, [c]), { isLoading: r, searchItems: a };
|
|
2337
|
-
},
|
|
2337
|
+
}, dd = ({ searchTypes: t, navigateFunction: e, currentPath: s }) => {
|
|
2338
2338
|
var w;
|
|
2339
|
-
const { texts: { appSearch: r } } = B(ue), [o, a] =
|
|
2339
|
+
const { texts: { appSearch: r } } = B(ue), [o, a] = S(t.length > 0 ? ((w = t.at(0)) == null ? void 0 : w.key) ?? null : null), l = q(() => t.find((p) => p.key === o) ?? null, [t, o]), [i, c] = S(""), [d, u] = vr(i, 500), { isLoading: m, searchItems: h } = uc(l, d), [g, x] = S(!1);
|
|
2340
2340
|
return O(() => {
|
|
2341
2341
|
(h.length > 0 || m) && x(!0);
|
|
2342
2342
|
}, [h, m]), O(() => {
|
|
2343
2343
|
c("");
|
|
2344
|
-
}, [
|
|
2344
|
+
}, [s]), /* @__PURE__ */ n.jsx(ae, { onSubmit: (p) => {
|
|
2345
2345
|
p.preventDefault(), p.stopPropagation(), u.flush(), x(!1), i.length > 2 && e(`/search?query=${i}${l && l.key && `&type=${l == null ? void 0 : l.key}`}`);
|
|
2346
|
-
}, children: /* @__PURE__ */
|
|
2347
|
-
/* @__PURE__ */
|
|
2348
|
-
/* @__PURE__ */
|
|
2346
|
+
}, children: /* @__PURE__ */ n.jsxs(ft, { className: Oe.inputGroup, children: [
|
|
2347
|
+
/* @__PURE__ */ n.jsx(ft.Text, { className: j("p-1 rounded", Oe.inputGroupText, Oe.left), children: /* @__PURE__ */ n.jsx(Ql, { searchTypes: t, selectedType: l, setSelectedType: a }) }),
|
|
2348
|
+
/* @__PURE__ */ n.jsx(ae.Control, { placeholder: r.searchPlaceholder, type: "text", size: "sm", className: j("luminus-app-search-input", Oe.input), value: i, onChange: (p) => {
|
|
2349
2349
|
var y;
|
|
2350
2350
|
return c(((y = p.target) == null ? void 0 : y.value) ?? "");
|
|
2351
2351
|
}, onFocus: () => h.length > 0 && x(!0) }),
|
|
2352
|
-
/* @__PURE__ */
|
|
2353
|
-
/* @__PURE__ */
|
|
2352
|
+
/* @__PURE__ */ n.jsx(ft.Text, { className: j("p-0 rounded", Oe.inputGroupText, Oe.right), children: /* @__PURE__ */ n.jsx("button", { type: "submit", className: j("text-primary", Oe.submitButton), children: /* @__PURE__ */ n.jsx(Vl, {}) }) }),
|
|
2353
|
+
/* @__PURE__ */ n.jsx(rc, { query: d, searchTypes: t, show: g, onCancel: () => x(!1), groups: h, isLoading: m })
|
|
2354
2354
|
] }) });
|
|
2355
2355
|
}, fc = "_card_19733_1", mc = "_header_19733_6", pc = "_header-content_19733_13", hc = "_title_19733_19", gc = "_collapse-icon_19733_22", xc = "_collapsed_19733_27", jc = "_content_19733_30", Te = {
|
|
2356
2356
|
card: fc,
|
|
@@ -2362,43 +2362,43 @@ const Ul = "_item_1dy8x_1", kr = {
|
|
|
2362
2362
|
collapseIcon: gc,
|
|
2363
2363
|
collapsed: xc,
|
|
2364
2364
|
content: jc
|
|
2365
|
-
}, wc = ({ title: t, headerContent: e, children:
|
|
2366
|
-
const i = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [c, d] =
|
|
2365
|
+
}, wc = ({ title: t, headerContent: e, children: s, className: r, headerClassName: o, contentClassName: a, ...l }) => {
|
|
2366
|
+
const i = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [c, d] = S(i), u = l.collapsible ? l.controlled ? l.isOpen : c : !0;
|
|
2367
2367
|
return O(() => {
|
|
2368
2368
|
d(i);
|
|
2369
|
-
}, [i]), /* @__PURE__ */
|
|
2369
|
+
}, [i]), /* @__PURE__ */ n.jsxs("div", { className: j("luminus-card rounded shadow-sm", Te.card, {
|
|
2370
2370
|
[r ?? ""]: r
|
|
2371
2371
|
}), children: [
|
|
2372
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ n.jsxs("div", { role: l.collapsible ? "button" : void 0, className: j("header", Te.header, {
|
|
2373
2373
|
[o ?? ""]: o
|
|
2374
2374
|
}), onClick: () => {
|
|
2375
2375
|
l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) : d(!c));
|
|
2376
2376
|
}, children: [
|
|
2377
|
-
/* @__PURE__ */
|
|
2378
|
-
/* @__PURE__ */
|
|
2377
|
+
/* @__PURE__ */ n.jsxs("div", { className: j("header-content", Te.headerContent), children: [
|
|
2378
|
+
/* @__PURE__ */ n.jsx(V, { variant: "h6", className: j("text-primary", Te.title), children: t }),
|
|
2379
2379
|
e ?? null
|
|
2380
2380
|
] }),
|
|
2381
|
-
l.collapsible && /* @__PURE__ */
|
|
2381
|
+
l.collapsible && /* @__PURE__ */ n.jsx(cs, { className: j(Te.collapseIcon, {
|
|
2382
2382
|
[Te.collapsed]: u
|
|
2383
2383
|
}) })
|
|
2384
2384
|
] }),
|
|
2385
|
-
/* @__PURE__ */
|
|
2385
|
+
/* @__PURE__ */ n.jsx(_s, { in: u, children: /* @__PURE__ */ n.jsx("div", { className: j("card-content border-top border-primary", Te.content, {
|
|
2386
2386
|
[a ?? ""]: a
|
|
2387
|
-
}), children:
|
|
2387
|
+
}), children: s }) })
|
|
2388
2388
|
] });
|
|
2389
2389
|
};
|
|
2390
|
-
var yc = !!(typeof window < "u" && window.document && window.document.createElement),
|
|
2391
|
-
function t(e,
|
|
2392
|
-
for (var r = 0; r <
|
|
2393
|
-
var o =
|
|
2390
|
+
var yc = !!(typeof window < "u" && window.document && window.document.createElement), bc = /* @__PURE__ */ function() {
|
|
2391
|
+
function t(e, s) {
|
|
2392
|
+
for (var r = 0; r < s.length; r++) {
|
|
2393
|
+
var o = s[r];
|
|
2394
2394
|
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);
|
|
2395
2395
|
}
|
|
2396
2396
|
}
|
|
2397
|
-
return function(e,
|
|
2398
|
-
return
|
|
2397
|
+
return function(e, s, r) {
|
|
2398
|
+
return s && t(e.prototype, s), r && t(e, r), e;
|
|
2399
2399
|
};
|
|
2400
2400
|
}();
|
|
2401
|
-
function
|
|
2401
|
+
function vc(t, e) {
|
|
2402
2402
|
if (!(t instanceof e))
|
|
2403
2403
|
throw new TypeError("Cannot call a class as a function");
|
|
2404
2404
|
}
|
|
@@ -2412,12 +2412,12 @@ function Nc(t, e) {
|
|
|
2412
2412
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
|
2413
2413
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
|
2414
2414
|
}
|
|
2415
|
-
var
|
|
2415
|
+
var Ir = function(t) {
|
|
2416
2416
|
Nc(e, t);
|
|
2417
2417
|
function e() {
|
|
2418
|
-
return
|
|
2418
|
+
return vc(this, e), _c(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
|
|
2419
2419
|
}
|
|
2420
|
-
return
|
|
2420
|
+
return bc(e, [{
|
|
2421
2421
|
key: "componentWillUnmount",
|
|
2422
2422
|
value: function() {
|
|
2423
2423
|
this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null;
|
|
@@ -2429,22 +2429,22 @@ var Sr = function(t) {
|
|
|
2429
2429
|
}
|
|
2430
2430
|
}]), e;
|
|
2431
2431
|
}(he.Component);
|
|
2432
|
-
|
|
2432
|
+
Ir.propTypes = {
|
|
2433
2433
|
children: Le.node.isRequired,
|
|
2434
2434
|
node: Le.any
|
|
2435
2435
|
};
|
|
2436
|
-
var
|
|
2437
|
-
function t(e,
|
|
2438
|
-
for (var r = 0; r <
|
|
2439
|
-
var o =
|
|
2436
|
+
var Cc = /* @__PURE__ */ function() {
|
|
2437
|
+
function t(e, s) {
|
|
2438
|
+
for (var r = 0; r < s.length; r++) {
|
|
2439
|
+
var o = s[r];
|
|
2440
2440
|
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);
|
|
2441
2441
|
}
|
|
2442
2442
|
}
|
|
2443
|
-
return function(e,
|
|
2444
|
-
return
|
|
2443
|
+
return function(e, s, r) {
|
|
2444
|
+
return s && t(e.prototype, s), r && t(e, r), e;
|
|
2445
2445
|
};
|
|
2446
2446
|
}();
|
|
2447
|
-
function
|
|
2447
|
+
function kc(t, e) {
|
|
2448
2448
|
if (!(t instanceof e))
|
|
2449
2449
|
throw new TypeError("Cannot call a class as a function");
|
|
2450
2450
|
}
|
|
@@ -2453,17 +2453,17 @@ function $c(t, e) {
|
|
|
2453
2453
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2454
2454
|
return e && (typeof e == "object" || typeof e == "function") ? e : t;
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2456
|
+
function Ic(t, e) {
|
|
2457
2457
|
if (typeof e != "function" && e !== null)
|
|
2458
2458
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
|
2459
2459
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
|
2460
2460
|
}
|
|
2461
|
-
var
|
|
2462
|
-
|
|
2461
|
+
var Sr = function(t) {
|
|
2462
|
+
Ic(e, t);
|
|
2463
2463
|
function e() {
|
|
2464
|
-
return
|
|
2464
|
+
return kc(this, e), $c(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
|
|
2465
2465
|
}
|
|
2466
|
-
return
|
|
2466
|
+
return Cc(e, [{
|
|
2467
2467
|
key: "componentDidMount",
|
|
2468
2468
|
value: function() {
|
|
2469
2469
|
this.renderPortal();
|
|
@@ -2492,14 +2492,14 @@ var Ir = function(t) {
|
|
|
2492
2492
|
}
|
|
2493
2493
|
}]), e;
|
|
2494
2494
|
}(he.Component);
|
|
2495
|
-
|
|
2495
|
+
Sr.propTypes = {
|
|
2496
2496
|
children: Le.node.isRequired,
|
|
2497
2497
|
node: Le.any
|
|
2498
2498
|
};
|
|
2499
|
-
var
|
|
2500
|
-
pt.createPortal ?
|
|
2501
|
-
const
|
|
2502
|
-
lightbox:
|
|
2499
|
+
var zt = void 0;
|
|
2500
|
+
pt.createPortal ? zt = Ir : zt = Sr;
|
|
2501
|
+
const Sc = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20", Ec = "_photo-actions_14acg_26", Oc = "_photo-container_14acg_31", Tc = "_photo_14acg_26", Mc = "_nav-button_14acg_41", Lc = "_photos-preview_14acg_49", Rc = "_selected_14acg_62", Ac = "_default-indicator_14acg_66", ge = {
|
|
2502
|
+
lightbox: Sc,
|
|
2503
2503
|
show: Dc,
|
|
2504
2504
|
header: Fc,
|
|
2505
2505
|
"photo-actions": "_photo-actions_14acg_26",
|
|
@@ -2514,69 +2514,69 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2514
2514
|
selected: Rc,
|
|
2515
2515
|
"default-indicator": "_default-indicator_14acg_66",
|
|
2516
2516
|
defaultIndicator: Ac
|
|
2517
|
-
}, Bc = "_backdrop_3huvf_1", Pc = "_show_3huvf_11",
|
|
2517
|
+
}, Bc = "_backdrop_3huvf_1", Pc = "_show_3huvf_11", Hn = {
|
|
2518
2518
|
backdrop: Bc,
|
|
2519
2519
|
show: Pc
|
|
2520
|
-
}, Dr = ({ show: t, onClick: e }) => /* @__PURE__ */
|
|
2521
|
-
[
|
|
2522
|
-
}), onClick: () => e && e() }), Fr = ({ src: t, alt: e, baseUrl:
|
|
2523
|
-
const h = Y(null), [g, x] =
|
|
2520
|
+
}, Dr = ({ show: t, onClick: e }) => /* @__PURE__ */ n.jsx("div", { className: j("luminus-backdrop", Hn.backdrop, {
|
|
2521
|
+
[Hn.show]: t
|
|
2522
|
+
}), onClick: () => e && e() }), Fr = ({ src: t, alt: e, baseUrl: s, customToken: r, placeholder: o, ...a }) => /* @__PURE__ */ n.jsx("img", { ...a, alt: e ?? "", src: t ?? o }), Hc = ({ show: t, onClose: e, photos: s, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: l, photoActions: i, baseUrl: c, customToken: d, placeholder: u, ImgComponent: m = Fr }) => {
|
|
2523
|
+
const h = Y(null), [g, x] = S(r), w = s.at(g), p = g > 0, y = g < s.length - 1;
|
|
2524
2524
|
O(() => {
|
|
2525
2525
|
t && x(r);
|
|
2526
2526
|
}, [r, t]), O(() => {
|
|
2527
|
-
g >=
|
|
2528
|
-
}, [
|
|
2527
|
+
g >= s.length && x(s.length - 1);
|
|
2528
|
+
}, [s, g]);
|
|
2529
2529
|
const N = $((f) => {
|
|
2530
2530
|
switch (f.key) {
|
|
2531
2531
|
case "ArrowLeft":
|
|
2532
|
-
f.stopPropagation(), p && x((
|
|
2532
|
+
f.stopPropagation(), p && x((C) => C - 1);
|
|
2533
2533
|
break;
|
|
2534
2534
|
case "ArrowRight":
|
|
2535
|
-
f.stopPropagation(), y && x((
|
|
2535
|
+
f.stopPropagation(), y && x((C) => C + 1);
|
|
2536
2536
|
break;
|
|
2537
2537
|
case "Escape":
|
|
2538
2538
|
f.stopPropagation(), e();
|
|
2539
2539
|
break;
|
|
2540
2540
|
}
|
|
2541
2541
|
}, [y, p, e]);
|
|
2542
|
-
return js(N), /* @__PURE__ */
|
|
2543
|
-
/* @__PURE__ */
|
|
2544
|
-
/* @__PURE__ */
|
|
2542
|
+
return js(N), /* @__PURE__ */ n.jsxs(zt, { children: [
|
|
2543
|
+
/* @__PURE__ */ n.jsx(Dr, { show: t, onClick: e }),
|
|
2544
|
+
/* @__PURE__ */ n.jsxs("div", { ref: h, className: j("luminus-lightbox rounded shadow", ge.lightbox, {
|
|
2545
2545
|
[ge.show]: t
|
|
2546
2546
|
}), children: [
|
|
2547
|
-
/* @__PURE__ */
|
|
2548
|
-
/* @__PURE__ */
|
|
2549
|
-
l && /* @__PURE__ */
|
|
2547
|
+
/* @__PURE__ */ n.jsxs("div", { className: ge.header, children: [
|
|
2548
|
+
/* @__PURE__ */ n.jsxs("div", { className: j("rounded", ge.photoActions), children: [
|
|
2549
|
+
l && /* @__PURE__ */ n.jsx(br, { accept: ".jpg,.jpeg,.png", onUpload: (f) => {
|
|
2550
2550
|
f.length > 0 && l(Array.from(f));
|
|
2551
|
-
}, icon: /* @__PURE__ */
|
|
2552
|
-
w && (i == null ? void 0 : i.map(({ label: f, onClick:
|
|
2551
|
+
}, icon: /* @__PURE__ */ n.jsx(is, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
2552
|
+
w && (i == null ? void 0 : i.map(({ label: f, onClick: C, ...b }, k) => /* @__PURE__ */ n.jsx(
|
|
2553
2553
|
jt,
|
|
2554
2554
|
{
|
|
2555
|
-
onClick: () =>
|
|
2556
|
-
...
|
|
2555
|
+
onClick: () => C(w.id),
|
|
2556
|
+
...b,
|
|
2557
2557
|
children: f
|
|
2558
2558
|
},
|
|
2559
|
-
`action-${
|
|
2559
|
+
`action-${k}`
|
|
2560
2560
|
)))
|
|
2561
2561
|
] }),
|
|
2562
|
-
/* @__PURE__ */
|
|
2562
|
+
/* @__PURE__ */ n.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ n.jsx(ye, { style: { fontSize: "32px" } }) })
|
|
2563
2563
|
] }),
|
|
2564
|
-
|
|
2565
|
-
w && /* @__PURE__ */
|
|
2566
|
-
/* @__PURE__ */
|
|
2567
|
-
/* @__PURE__ */
|
|
2568
|
-
/* @__PURE__ */
|
|
2564
|
+
s.length === 0 && /* @__PURE__ */ n.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ n.jsx(V, { variant: "body", children: a ?? "No photos available" }) }),
|
|
2565
|
+
w && /* @__PURE__ */ n.jsxs("div", { className: ge.photoContainer, children: [
|
|
2566
|
+
/* @__PURE__ */ n.jsx("div", { role: p ? "button" : void 0, className: j("align-items-start", ge.navButton), onClick: () => p && x((f) => f - 1), children: p && /* @__PURE__ */ n.jsx(Gt, { style: { fontSize: "40px" } }) }),
|
|
2567
|
+
/* @__PURE__ */ n.jsx(m, { src: w.lgSrc, alt: w.alt, className: j("rounded", ge.photo), baseUrl: c, customToken: d, placeholder: u }),
|
|
2568
|
+
/* @__PURE__ */ n.jsx("div", { role: y ? "button" : void 0, className: j("align-items-end", ge.navButton), onClick: () => y && x((f) => f + 1), children: y && /* @__PURE__ */ n.jsx(Yt, { style: { fontSize: "40px" } }) })
|
|
2569
2569
|
] }),
|
|
2570
|
-
/* @__PURE__ */
|
|
2571
|
-
/* @__PURE__ */
|
|
2572
|
-
[ge.selected]:
|
|
2570
|
+
/* @__PURE__ */ n.jsx("div", { className: ge.photosPreview, children: s.map((f, C) => /* @__PURE__ */ n.jsxs("div", { role: "button", onClick: () => x(C), className: "position-relative", children: [
|
|
2571
|
+
/* @__PURE__ */ n.jsx(m, { role: C !== g ? "button" : void 0, src: f.smSrc, alt: f.alt, className: j("rounded", ge.photo, {
|
|
2572
|
+
[ge.selected]: C === g
|
|
2573
2573
|
}), baseUrl: c, customToken: d, placeholder: u }, f.id),
|
|
2574
|
-
f.isDefault && /* @__PURE__ */
|
|
2574
|
+
f.isDefault && /* @__PURE__ */ n.jsx("div", { className: j("text-primary", ge.defaultIndicator), children: /* @__PURE__ */ n.jsx(jo, {}) })
|
|
2575
2575
|
] })) })
|
|
2576
2576
|
] })
|
|
2577
2577
|
] });
|
|
2578
|
-
}, Wc = ({ photos: t, onUploadPhotos: e, uploadPhotosText:
|
|
2579
|
-
const [c, d] =
|
|
2578
|
+
}, Wc = ({ photos: t, onUploadPhotos: e, uploadPhotosText: s, photoActions: r, baseUrl: o, customToken: a, placeholder: l, ImgComponent: i = Fr }) => {
|
|
2579
|
+
const [c, d] = S(null), u = c !== null ? t[c] : null, [m, h] = S(!1);
|
|
2580
2580
|
return O(() => {
|
|
2581
2581
|
if (t.length === 0) {
|
|
2582
2582
|
d(null), h(!1);
|
|
@@ -2584,19 +2584,19 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2584
2584
|
}
|
|
2585
2585
|
const g = t.findIndex((x) => x.isDefault);
|
|
2586
2586
|
d(g > -1 ? g : 0);
|
|
2587
|
-
}, [t]), u ? /* @__PURE__ */
|
|
2588
|
-
/* @__PURE__ */
|
|
2589
|
-
/* @__PURE__ */
|
|
2590
|
-
] }) : e ? /* @__PURE__ */
|
|
2587
|
+
}, [t]), u ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2588
|
+
/* @__PURE__ */ n.jsx(i, { role: "button", src: u.smSrc, alt: u.alt, className: "rounded w-100", onClick: () => h(!0), baseUrl: o, customToken: a, placeholder: l }),
|
|
2589
|
+
/* @__PURE__ */ n.jsx(Hc, { show: m, onClose: () => h(!1), photos: t, defaultIndex: c ?? 0, uploadPhotosText: s, onUploadPhotos: e, photoActions: r, baseUrl: o, customToken: a, placeholder: l, ImgComponent: i })
|
|
2590
|
+
] }) : e ? /* @__PURE__ */ n.jsx(br, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
|
|
2591
2591
|
g.length > 0 && e(Array.from(g));
|
|
2592
|
-
}, icon: /* @__PURE__ */
|
|
2593
|
-
},
|
|
2592
|
+
}, icon: /* @__PURE__ */ n.jsx(is, { style: { fontSize: 18 } }), multiple: !0, children: s ?? null }) : null;
|
|
2593
|
+
}, ud = ({ children: t }) => {
|
|
2594
2594
|
var i, c, d;
|
|
2595
|
-
const { useMsal: e, msalScopes:
|
|
2596
|
-
return e ? /* @__PURE__ */
|
|
2595
|
+
const { useMsal: e, msalScopes: s } = B(wo), { isAuthenticated: r } = yo(), { userLoginState: o } = B(ds), a = o.state === bo.LOGGING_IN, l = o.user && ((i = o.user) == null ? void 0 : i.permissions) && ((d = (c = o.user) == null ? void 0 : c.permissions) == null ? void 0 : d.length) > 0;
|
|
2596
|
+
return e ? /* @__PURE__ */ n.jsx(Po, { interactionType: Bo.Redirect, authenticationRequest: { scopes: s }, children: a || !r() ? /* @__PURE__ */ n.jsx(yn, {}) : o.user ? l ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : /* @__PURE__ */ n.jsx(it, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ n.jsx(it, { to: "/no-user-login", replace: !0 }) }) : a ? /* @__PURE__ */ n.jsx(yn, {}) : !r() || !o.user ? /* @__PURE__ */ n.jsx(it, { to: "/login", replace: !0 }) : l ? t : /* @__PURE__ */ n.jsx(it, { to: "/user-not-permitted", replace: !0 });
|
|
2597
2597
|
}, Er = (t) => {
|
|
2598
|
-
const { variant: e, children:
|
|
2599
|
-
return /* @__PURE__ */
|
|
2598
|
+
const { variant: e, children: s, className: r, size: o = "md", typographyVariant: a = o === "sm" ? "body2" : "body", ...l } = { ...t };
|
|
2599
|
+
return /* @__PURE__ */ n.jsx(fa, { variant: e, className: `text-center ${o === "sm" ? "p-1" : o === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...l, children: /* @__PURE__ */ n.jsx(V, { variant: a, children: s }) });
|
|
2600
2600
|
}, zc = "_item_1lf6j_1", Vc = "_level-success_1lf6j_4", Uc = "_level-info_1lf6j_10", Gc = "_level-warning_1lf6j_16", Yc = "_level-danger_1lf6j_22", Kc = "_type-icon_1lf6j_28", Et = {
|
|
2601
2601
|
item: zc,
|
|
2602
2602
|
"level-success": "_level-success_1lf6j_4",
|
|
@@ -2609,24 +2609,24 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2609
2609
|
levelDanger: Yc,
|
|
2610
2610
|
"type-icon": "_type-icon_1lf6j_28",
|
|
2611
2611
|
typeIcon: Kc
|
|
2612
|
-
}, qc = ({ level: t, children: e, customIcon:
|
|
2612
|
+
}, qc = ({ level: t, children: e, customIcon: s, noIcon: r }) => {
|
|
2613
2613
|
const { ProjectIconComponent: o } = B(ue), a = $(() => {
|
|
2614
2614
|
switch (t) {
|
|
2615
2615
|
case "info":
|
|
2616
|
-
return /* @__PURE__ */
|
|
2616
|
+
return /* @__PURE__ */ n.jsx(o, { icon: "info" });
|
|
2617
2617
|
case "warning":
|
|
2618
|
-
return /* @__PURE__ */
|
|
2618
|
+
return /* @__PURE__ */ n.jsx(o, { icon: "warning" });
|
|
2619
2619
|
case "danger":
|
|
2620
|
-
return /* @__PURE__ */
|
|
2620
|
+
return /* @__PURE__ */ n.jsx(o, { icon: "danger" });
|
|
2621
2621
|
default:
|
|
2622
|
-
return /* @__PURE__ */
|
|
2622
|
+
return /* @__PURE__ */ n.jsx(o, { icon: "check" });
|
|
2623
2623
|
}
|
|
2624
2624
|
}, [o, t]);
|
|
2625
|
-
return /* @__PURE__ */
|
|
2626
|
-
!r && /* @__PURE__ */
|
|
2627
|
-
/* @__PURE__ */
|
|
2625
|
+
return /* @__PURE__ */ n.jsxs("div", { className: j("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !r }, Et.item, Et[`level-${t}`]), children: [
|
|
2626
|
+
!r && /* @__PURE__ */ n.jsx("div", { className: j(Et.typeIcon), children: s ?? a() }),
|
|
2627
|
+
/* @__PURE__ */ n.jsx(V, { variant: "body2", className: "w-100", children: e })
|
|
2628
2628
|
] });
|
|
2629
|
-
},
|
|
2629
|
+
}, fd = ({ version: t }) => /* @__PURE__ */ n.jsx("div", { className: "rounded", style: {
|
|
2630
2630
|
position: "fixed",
|
|
2631
2631
|
right: "0px",
|
|
2632
2632
|
bottom: "0px",
|
|
@@ -2634,16 +2634,16 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2634
2634
|
backgroundColor: "rgba(255, 255, 255, 0.5)",
|
|
2635
2635
|
padding: "4px",
|
|
2636
2636
|
pointerEvents: "all"
|
|
2637
|
-
}, children: /* @__PURE__ */
|
|
2637
|
+
}, children: /* @__PURE__ */ n.jsxs(V, { variant: "caption", className: "w-100 text-end", children: [
|
|
2638
2638
|
"verze ",
|
|
2639
2639
|
t
|
|
2640
|
-
] }) }), Qc = "_submit-container_a9slg_1", Zc = "_spacer_a9slg_14",
|
|
2640
|
+
] }) }), Qc = "_submit-container_a9slg_1", Zc = "_spacer_a9slg_14", Wn = {
|
|
2641
2641
|
"submit-container": "_submit-container_a9slg_1",
|
|
2642
2642
|
submitContainer: Qc,
|
|
2643
2643
|
spacer: Zc
|
|
2644
|
-
}, Jc = ({ children: t, noSpacer: e = !1 }) => /* @__PURE__ */
|
|
2645
|
-
!e && /* @__PURE__ */
|
|
2646
|
-
/* @__PURE__ */
|
|
2644
|
+
}, Jc = ({ children: t, noSpacer: e = !1 }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2645
|
+
!e && /* @__PURE__ */ n.jsx("div", { className: Wn.spacer }),
|
|
2646
|
+
/* @__PURE__ */ n.jsx("div", { className: j("luminus-floating-action-container shadow", Wn.submitContainer), children: t })
|
|
2647
2647
|
] }), Xc = "_timeline_g1754_1", ei = "_step-container_g1754_1", ti = "_step-date_g1754_1", ni = "_step-content_g1754_4", si = "_content-header_g1754_8", ri = "_content-text_g1754_11", oi = "_step-icon_g1754_14", Me = {
|
|
2648
2648
|
timeline: Xc,
|
|
2649
2649
|
"step-container": "_step-container_g1754_1",
|
|
@@ -2658,21 +2658,21 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2658
2658
|
contentText: ri,
|
|
2659
2659
|
"step-icon": "_step-icon_g1754_14",
|
|
2660
2660
|
stepIcon: oi
|
|
2661
|
-
},
|
|
2662
|
-
/* @__PURE__ */
|
|
2663
|
-
/* @__PURE__ */
|
|
2664
|
-
/* @__PURE__ */
|
|
2661
|
+
}, md = ({ steps: t }) => /* @__PURE__ */ n.jsx("div", { className: Me.timeline, children: t.sort((e, s) => qo(e.date ?? /* @__PURE__ */ new Date(), s.date ?? /* @__PURE__ */ new Date())).map((e, s) => /* @__PURE__ */ n.jsxs("div", { className: j("row g-0 gx-3", Me.stepContainer), children: [
|
|
2662
|
+
/* @__PURE__ */ n.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ n.jsxs(V, { variant: "caption", className: j("h-100 d-flex flex-column align-items-end justify-content-center gap-0", Me.stepDate), children: [
|
|
2663
|
+
/* @__PURE__ */ n.jsx("div", { children: Xe(e.date, "dd.MM.yyyy") }),
|
|
2664
|
+
/* @__PURE__ */ n.jsx("div", { children: Xe(e.date, "HH:mm") })
|
|
2665
2665
|
] }) }),
|
|
2666
|
-
/* @__PURE__ */
|
|
2667
|
-
/* @__PURE__ */
|
|
2668
|
-
e.person && /* @__PURE__ */
|
|
2669
|
-
typeof e.title == "string" ? /* @__PURE__ */
|
|
2666
|
+
/* @__PURE__ */ n.jsx("div", { className: "col-9", children: /* @__PURE__ */ n.jsxs("div", { className: j("h-100 d-flex flex-column gap-1 border-start border-2 p-3", Me.stepContent), children: [
|
|
2667
|
+
/* @__PURE__ */ n.jsxs("div", { className: j("d-flex gap-2 align-items-center", Me.contentHeader), children: [
|
|
2668
|
+
e.person && /* @__PURE__ */ n.jsx(us, { name: e.person.name ?? "", size: 22, fontSize: 12 }),
|
|
2669
|
+
typeof e.title == "string" ? /* @__PURE__ */ n.jsx(V, { variant: "body", className: "fw-bold", children: e.title }) : e.title
|
|
2670
2670
|
] }),
|
|
2671
|
-
e.text && /* @__PURE__ */
|
|
2672
|
-
/* @__PURE__ */
|
|
2671
|
+
e.text && /* @__PURE__ */ n.jsx(V, { variant: "body2", className: Me.contentText, children: e.text }),
|
|
2672
|
+
/* @__PURE__ */ n.jsx("div", { className: j("text-primary", Me.stepIcon), children: e.icon ?? /* @__PURE__ */ n.jsx(vo, {}) })
|
|
2673
2673
|
] }) })
|
|
2674
|
-
] },
|
|
2675
|
-
const o = st({ silent: r, differentBaseUrl: e, customToken:
|
|
2674
|
+
] }, s)) }), ai = (t, e, s, r = !0) => {
|
|
2675
|
+
const o = st({ silent: r, differentBaseUrl: e, customToken: s }), [a, l] = S(!1), [i, c] = S(null), d = $(async (u) => {
|
|
2676
2676
|
l(!0), c(null), o.get(t, {
|
|
2677
2677
|
signal: u,
|
|
2678
2678
|
responseType: "blob"
|
|
@@ -2688,56 +2688,56 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2688
2688
|
u.abort();
|
|
2689
2689
|
};
|
|
2690
2690
|
}, [d]), { data: i, setData: c, reloadData: d, isLoading: a };
|
|
2691
|
-
},
|
|
2692
|
-
const { data: l } = ai(t,
|
|
2691
|
+
}, zn = ({ src: t, alt: e, baseUrl: s, customToken: r, placeholder: o, ...a }) => {
|
|
2692
|
+
const { data: l } = ai(t, s, r), [i, c] = S(null);
|
|
2693
2693
|
return O(() => {
|
|
2694
2694
|
let d = null;
|
|
2695
2695
|
return l !== null ? (d = URL.createObjectURL(l), c(d)) : c(null), () => {
|
|
2696
2696
|
d !== null && URL.revokeObjectURL(d);
|
|
2697
2697
|
};
|
|
2698
|
-
}, [l]), i === null && !o ? null : /* @__PURE__ */
|
|
2699
|
-
}, Or = ({ currentSelection: t, selectedItemNavigateTo: e, children:
|
|
2698
|
+
}, [l]), i === null && !o ? null : /* @__PURE__ */ n.jsx("img", { ...a, alt: e ?? "", src: i ?? o });
|
|
2699
|
+
}, Or = ({ currentSelection: t, selectedItemNavigateTo: e, children: s }) => {
|
|
2700
2700
|
if (!t || !t.id || !e)
|
|
2701
|
-
return /* @__PURE__ */
|
|
2701
|
+
return /* @__PURE__ */ n.jsx("div", { className: "luminus-input-container position-relative w-100", children: s });
|
|
2702
2702
|
const r = e(t);
|
|
2703
|
-
return /* @__PURE__ */
|
|
2704
|
-
}, Tr = ({ InputContainer: t = He, label: e, value:
|
|
2703
|
+
return /* @__PURE__ */ n.jsx(_e, { to: r, className: "luminus-input-container position-relative w-100 text-decoration-none", children: s });
|
|
2704
|
+
}, Tr = ({ InputContainer: t = He, label: e, value: s, onChange: r, hidden: o, disabled: a, className: l, type: i, withoutLabel: c }) => /* @__PURE__ */ n.jsx(t, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, className: l, children: /* @__PURE__ */ n.jsx(ae.Check, { id: `check-${e}`, type: i ?? "checkbox", label: e ?? "", checked: s, onChange: (d) => {
|
|
2705
2705
|
var u;
|
|
2706
2706
|
r && r(((u = d.target) == null ? void 0 : u.checked) ?? !1);
|
|
2707
|
-
}, className: l ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Pe = ({ InputContainer: t = He, type: e, value:
|
|
2707
|
+
}, className: l ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Pe = ({ InputContainer: t = He, type: e, value: s, onChange: r, debounceMs: o, label: a, withoutLabel: l, placeholder: i, size: c, hidden: d, disabled: u, showClearIcon: m, clearValue: h, list: g, className: x, step: w, noSelectOnFocus: p }) => {
|
|
2708
2708
|
const y = e === "number", N = $(() => {
|
|
2709
2709
|
if (!r)
|
|
2710
2710
|
return;
|
|
2711
|
-
const
|
|
2712
|
-
r(y ?
|
|
2713
|
-
}, [h, y, r]), f = Y(null), [
|
|
2714
|
-
const D =
|
|
2711
|
+
const v = h ?? null;
|
|
2712
|
+
r(y ? v ? Number(v) : null : (v == null ? void 0 : v.toString()) ?? "");
|
|
2713
|
+
}, [h, y, r]), f = Y(null), [C, b] = S((s == null ? void 0 : s.toString()) ?? ""), k = $((v) => {
|
|
2714
|
+
const D = v;
|
|
2715
2715
|
r && (y && r(D == null || D === "" ? null : Number(D)), r(D || null));
|
|
2716
|
-
}, [y, r]), _ = $((
|
|
2716
|
+
}, [y, r]), _ = $((v) => {
|
|
2717
2717
|
var R;
|
|
2718
|
-
const D = (R =
|
|
2718
|
+
const D = (R = v.target) == null ? void 0 : R.value;
|
|
2719
2719
|
if (!o) {
|
|
2720
|
-
|
|
2720
|
+
k(D);
|
|
2721
2721
|
return;
|
|
2722
2722
|
}
|
|
2723
|
-
|
|
2724
|
-
|
|
2723
|
+
b(D), f.current !== null && window.clearTimeout(f.current), f.current = window.setTimeout(() => {
|
|
2724
|
+
k(D);
|
|
2725
2725
|
}, o);
|
|
2726
|
-
}, [o,
|
|
2726
|
+
}, [o, k]);
|
|
2727
2727
|
O(() => {
|
|
2728
|
-
|
|
2729
|
-
}, [
|
|
2730
|
-
const [E,
|
|
2731
|
-
return /* @__PURE__ */
|
|
2732
|
-
/* @__PURE__ */
|
|
2733
|
-
|
|
2734
|
-
}, onBlur: () =>
|
|
2735
|
-
m &&
|
|
2728
|
+
b(s === null ? "" : s.toString());
|
|
2729
|
+
}, [s]);
|
|
2730
|
+
const [E, I] = S(!1), F = ys(e, s ? s.toString() ?? null : null, E);
|
|
2731
|
+
return /* @__PURE__ */ n.jsxs(t, { withoutLabel: l, label: a ?? "", hidden: d, className: x, children: [
|
|
2732
|
+
/* @__PURE__ */ n.jsx(ae.Control, { type: F, placeholder: i ?? a, size: c, value: o ? C : (s == null ? void 0 : s.toString()) ?? "", onChange: _, className: x ?? "", hidden: d, disabled: u ?? !1, list: g, onFocus: (v) => {
|
|
2733
|
+
I(!0), !p && v.target.select();
|
|
2734
|
+
}, onBlur: () => I(!1), step: w }),
|
|
2735
|
+
m && s !== null && r && !u && /* @__PURE__ */ n.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: N, children: /* @__PURE__ */ n.jsx(ye, {}) }) })
|
|
2736
2736
|
] });
|
|
2737
2737
|
}, wt = ({
|
|
2738
2738
|
InputContainer: t = He,
|
|
2739
2739
|
value: e,
|
|
2740
|
-
options:
|
|
2740
|
+
options: s,
|
|
2741
2741
|
onChange: r,
|
|
2742
2742
|
label: o,
|
|
2743
2743
|
withoutLabel: a,
|
|
@@ -2758,156 +2758,156 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2758
2758
|
const p = m ?? null;
|
|
2759
2759
|
r(l ? p ? Number(p) : null : (p == null ? void 0 : p.toString()) ?? "");
|
|
2760
2760
|
}, [m, l, r]);
|
|
2761
|
-
return /* @__PURE__ */
|
|
2762
|
-
/* @__PURE__ */
|
|
2761
|
+
return /* @__PURE__ */ n.jsxs(t, { withoutLabel: a, label: o ?? "", hidden: c, className: g, children: [
|
|
2762
|
+
/* @__PURE__ */ n.jsxs(ae.Select, { size: i, value: e ?? "", onChange: (p) => {
|
|
2763
2763
|
var N;
|
|
2764
2764
|
if (!r)
|
|
2765
2765
|
return;
|
|
2766
2766
|
const y = (N = p.target) == null ? void 0 : N.value;
|
|
2767
2767
|
l && r(y ? parseInt(y, 10) : null), r(y || null);
|
|
2768
2768
|
}, className: g ?? "", hidden: c, disabled: d ?? !1, children: [
|
|
2769
|
-
x && !(e == null || e === "") ? void 0 : /* @__PURE__ */
|
|
2770
|
-
|
|
2769
|
+
x && !(e == null || e === "") ? void 0 : /* @__PURE__ */ n.jsx("option", { value: "" }),
|
|
2770
|
+
s == null ? void 0 : s.sort((p, y) => h ? 0 : (p.name ?? "").localeCompare(y.name ?? "")).map((p) => /* @__PURE__ */ n.jsx("option", { value: p.id ?? "", children: p.name }, p.id))
|
|
2771
2771
|
] }),
|
|
2772
|
-
u && e && r && !d && /* @__PURE__ */
|
|
2772
|
+
u && e && r && !d && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ n.jsx(ye, {}) }) })
|
|
2773
2773
|
] });
|
|
2774
|
-
},
|
|
2774
|
+
}, pd = ({ InputContainer: t = He, items: e, defaultSelection: s, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: l, isNumber: i, onSelect: c, label: d, withoutLabel: u, size: m, dropdownItemsNameWidth: h, additionalColumns: g, hidden: x, disabled: w, displayIdAsName: p, CustomOnChangeComponent: y, className: N }) => {
|
|
2775
2775
|
var D, R;
|
|
2776
|
-
const [f,
|
|
2776
|
+
const [f, C] = S(s), [b, k] = S(!1);
|
|
2777
2777
|
O(() => {
|
|
2778
|
-
|
|
2779
|
-
}, [
|
|
2778
|
+
C(s);
|
|
2779
|
+
}, [s]);
|
|
2780
2780
|
const _ = $((H) => {
|
|
2781
|
-
|
|
2781
|
+
C(H);
|
|
2782
2782
|
}, []), E = $((H) => {
|
|
2783
|
-
|
|
2783
|
+
k(!1), _(H);
|
|
2784
2784
|
}, [_]);
|
|
2785
2785
|
O(() => {
|
|
2786
2786
|
c && c(f);
|
|
2787
2787
|
}, [f, c]);
|
|
2788
|
-
const
|
|
2789
|
-
return /* @__PURE__ */
|
|
2790
|
-
/* @__PURE__ */
|
|
2791
|
-
p && (f == null ? void 0 : f.name) && /* @__PURE__ */
|
|
2792
|
-
/* @__PURE__ */
|
|
2788
|
+
const I = Y(null), F = r !== void 0, v = F && f !== null;
|
|
2789
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(t, { withoutLabel: u, label: d ?? "", hidden: x, inputContainerClassName: j({ "luminus-dropdown-select-open": b }), className: N, children: [
|
|
2790
|
+
/* @__PURE__ */ n.jsxs(Or, { currentSelection: f, selectedItemNavigateTo: r, children: [
|
|
2791
|
+
p && (f == null ? void 0 : f.name) && /* @__PURE__ */ n.jsx(V, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: f.name }),
|
|
2792
|
+
/* @__PURE__ */ n.jsxs(ae.Select, { ref: I, size: m, value: (f == null ? void 0 : f.id) ?? "", onChange: (H) => C({
|
|
2793
2793
|
id: i ? Number(H.target.value) ?? null : H.target.value,
|
|
2794
2794
|
name: ""
|
|
2795
2795
|
}), onMouseDown: (H) => {
|
|
2796
2796
|
H.currentTarget.focus(), H.preventDefault();
|
|
2797
2797
|
}, onClick: () => {
|
|
2798
|
-
!F && !w &&
|
|
2798
|
+
!F && !w && k(!0);
|
|
2799
2799
|
}, className: j("w-100", {
|
|
2800
2800
|
"luminus-dropdown-picker-disabled": w,
|
|
2801
|
-
"luminus-dropdown-picker-link":
|
|
2801
|
+
"luminus-dropdown-picker-link": v
|
|
2802
2802
|
}), hidden: x, children: [
|
|
2803
|
-
/* @__PURE__ */
|
|
2804
|
-
|
|
2805
|
-
f && /* @__PURE__ */
|
|
2803
|
+
/* @__PURE__ */ n.jsx("option", { value: "" }),
|
|
2804
|
+
s && /* @__PURE__ */ n.jsx("option", { value: s.id ?? void 0, children: s.name && ((D = s.name) == null ? void 0 : D.length) > 0 ? s.name : s.id }),
|
|
2805
|
+
f && /* @__PURE__ */ n.jsx("option", { value: f.id ?? void 0, children: f.name && ((R = f.name) == null ? void 0 : R.length) > 0 ? f.name : f.id })
|
|
2806
2806
|
] }),
|
|
2807
|
-
y || !w && F ? /* @__PURE__ */
|
|
2808
|
-
!y && !w && F && /* @__PURE__ */
|
|
2809
|
-
H.preventDefault(), H.stopPropagation(),
|
|
2810
|
-
}, children: /* @__PURE__ */
|
|
2807
|
+
y || !w && F ? /* @__PURE__ */ n.jsxs("div", { className: "custom-picker-button", children: [
|
|
2808
|
+
!y && !w && F && /* @__PURE__ */ n.jsx(U, { size: "sm", color: "secondary", onClick: (H) => {
|
|
2809
|
+
H.preventDefault(), H.stopPropagation(), k(!0);
|
|
2810
|
+
}, children: /* @__PURE__ */ n.jsx(fs, {}) }),
|
|
2811
2811
|
y ?? null
|
|
2812
2812
|
] }) : null
|
|
2813
2813
|
] }),
|
|
2814
|
-
|
|
2814
|
+
I.current && /* @__PURE__ */ n.jsx(on, { show: b, onCancel: () => k(!1), items: e, currentSelection: f, onSelectionChange: E, onSearchQueryChange: o, texts: a, itemsNameWidth: h, additionalColumns: g, isLoading: l, disabled: w, inputRef: I })
|
|
2815
2815
|
] }) });
|
|
2816
|
-
},
|
|
2816
|
+
}, hd = ({ InputContainer: t = He, value: e, onChange: s, label: r, size: o, showClearIcon: a, clearValue: l, hidden: i, disabled: c, rows: d, withoutLabel: u, debounceMs: m, className: h }) => {
|
|
2817
2817
|
const g = $(() => {
|
|
2818
|
-
if (!
|
|
2818
|
+
if (!s)
|
|
2819
2819
|
return;
|
|
2820
2820
|
const f = l ?? null;
|
|
2821
|
-
|
|
2822
|
-
}, [l,
|
|
2823
|
-
const
|
|
2824
|
-
|
|
2825
|
-
}, [
|
|
2826
|
-
var
|
|
2827
|
-
const
|
|
2821
|
+
s((f == null ? void 0 : f.toString()) ?? "");
|
|
2822
|
+
}, [l, s]), x = Y(null), [w, p] = S((e == null ? void 0 : e.toString()) ?? ""), y = $((f) => {
|
|
2823
|
+
const C = f;
|
|
2824
|
+
s && s(C || null);
|
|
2825
|
+
}, [s]), N = $((f) => {
|
|
2826
|
+
var b;
|
|
2827
|
+
const C = (b = f.target) == null ? void 0 : b.value;
|
|
2828
2828
|
if (!m) {
|
|
2829
|
-
y(
|
|
2829
|
+
y(C);
|
|
2830
2830
|
return;
|
|
2831
2831
|
}
|
|
2832
|
-
p(
|
|
2833
|
-
y(
|
|
2832
|
+
p(C), x.current !== null && window.clearTimeout(x.current), x.current = window.setTimeout(() => {
|
|
2833
|
+
y(C);
|
|
2834
2834
|
}, m);
|
|
2835
2835
|
}, [m, y]);
|
|
2836
2836
|
return O(() => {
|
|
2837
2837
|
p(e === null ? "" : e.toString());
|
|
2838
|
-
}, [e]), /* @__PURE__ */
|
|
2839
|
-
/* @__PURE__ */
|
|
2840
|
-
a && e &&
|
|
2838
|
+
}, [e]), /* @__PURE__ */ n.jsxs(t, { label: r ?? "", hidden: i, withoutLabel: u, className: h, isForTextAreaInput: !0, children: [
|
|
2839
|
+
/* @__PURE__ */ n.jsx(ae.Control, { as: "textarea", size: o, value: m ? w : e ?? "", onChange: N, hidden: i, disabled: c, rows: d ?? 2, className: "w-100" }),
|
|
2840
|
+
a && e && s && !c && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ n.jsx(ye, {}) }) })
|
|
2841
2841
|
] });
|
|
2842
|
-
},
|
|
2842
|
+
}, gd = ({ InputContainer: t = He, value: e, onChange: s, debounceMs: r, label: o, withoutLabel: a, placeholder: l, size: i, hidden: c, disabled: d, showClearIcon: u, clearValue: m, className: h, step: g, stepperStep: x = 1 }) => {
|
|
2843
2843
|
const w = $(() => {
|
|
2844
|
-
if (!
|
|
2844
|
+
if (!s)
|
|
2845
2845
|
return;
|
|
2846
|
-
const
|
|
2847
|
-
|
|
2848
|
-
}, [m,
|
|
2849
|
-
const
|
|
2850
|
-
|
|
2851
|
-
}, [
|
|
2846
|
+
const b = m ?? null;
|
|
2847
|
+
s(b ? Number(b) : null);
|
|
2848
|
+
}, [m, s]), p = Y(null), [y, N] = S((e == null ? void 0 : e.toString()) ?? ""), f = $((b) => {
|
|
2849
|
+
const k = b;
|
|
2850
|
+
s && s(k == null || k === "" ? null : Number(k));
|
|
2851
|
+
}, [s]), C = $((b) => {
|
|
2852
2852
|
var _;
|
|
2853
|
-
const
|
|
2853
|
+
const k = (_ = b.target) == null ? void 0 : _.value;
|
|
2854
2854
|
if (!r) {
|
|
2855
|
-
f(
|
|
2855
|
+
f(k);
|
|
2856
2856
|
return;
|
|
2857
2857
|
}
|
|
2858
|
-
N(
|
|
2859
|
-
f(
|
|
2858
|
+
N(k), p.current !== null && window.clearTimeout(p.current), p.current = window.setTimeout(() => {
|
|
2859
|
+
f(k);
|
|
2860
2860
|
}, r);
|
|
2861
2861
|
}, [r, f]);
|
|
2862
2862
|
return O(() => {
|
|
2863
2863
|
N(e === null ? "" : e.toString());
|
|
2864
|
-
}, [e]), /* @__PURE__ */
|
|
2865
|
-
/* @__PURE__ */
|
|
2866
|
-
/* @__PURE__ */
|
|
2867
|
-
|
|
2868
|
-
}, children: /* @__PURE__ */
|
|
2869
|
-
/* @__PURE__ */
|
|
2870
|
-
|
|
2871
|
-
}, children: /* @__PURE__ */
|
|
2872
|
-
u && e &&
|
|
2864
|
+
}, [e]), /* @__PURE__ */ n.jsx(t, { withoutLabel: a, label: o ?? "", hidden: c, className: h, children: /* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
2865
|
+
/* @__PURE__ */ n.jsx(ae.Control, { type: "number", placeholder: l ?? o, size: i, value: r ? y : e ?? "", onChange: C, className: `luminus-numeric-stepper ${h ?? ""}`, hidden: c, disabled: d ?? !1, step: g }),
|
|
2866
|
+
/* @__PURE__ */ n.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ n.jsx(U, { size: "sm", onClick: (b) => {
|
|
2867
|
+
b.preventDefault(), b.stopPropagation(), f(((e ?? 0) - x).toString());
|
|
2868
|
+
}, children: /* @__PURE__ */ n.jsx(_r, {}) }) }),
|
|
2869
|
+
/* @__PURE__ */ n.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ n.jsx(U, { size: "sm", onClick: (b) => {
|
|
2870
|
+
b.preventDefault(), b.stopPropagation(), f(((e ?? 0) + x).toString());
|
|
2871
|
+
}, children: /* @__PURE__ */ n.jsx(Nr, {}) }) }),
|
|
2872
|
+
u && e && s && !d && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ n.jsx(ye, {}) }) })
|
|
2873
2873
|
] }) });
|
|
2874
|
-
},
|
|
2874
|
+
}, Vn = [
|
|
2875
2875
|
["D", "day"],
|
|
2876
2876
|
// ['W', 'week'],
|
|
2877
2877
|
["M", "month"],
|
|
2878
2878
|
["Y", "year"],
|
|
2879
2879
|
["C", "custom"]
|
|
2880
|
-
], li = "_wrapper_qfqux_1", ci = "_lg_qfqux_7", ii = "_sm_qfqux_11", di = "_md_qfqux_14",
|
|
2880
|
+
], li = "_wrapper_qfqux_1", ci = "_lg_qfqux_7", ii = "_sm_qfqux_11", di = "_md_qfqux_14", Un = {
|
|
2881
2881
|
wrapper: li,
|
|
2882
2882
|
lg: ci,
|
|
2883
2883
|
sm: ii,
|
|
2884
2884
|
md: di
|
|
2885
2885
|
}, mt = (t) => {
|
|
2886
|
-
const e = new Date(t),
|
|
2886
|
+
const e = new Date(t), s = De(e.toISOString());
|
|
2887
2887
|
e.setMonth(e.getMonth() + 1), e.setDate(e.getDate() - 1);
|
|
2888
2888
|
const r = De(e.toISOString());
|
|
2889
|
-
return { from:
|
|
2889
|
+
return { from: s, to: r };
|
|
2890
2890
|
}, Ze = (t) => {
|
|
2891
|
-
const e = new Date(t),
|
|
2891
|
+
const e = new Date(t), s = De(e.toISOString());
|
|
2892
2892
|
e.setFullYear(e.getFullYear() + 1), e.setDate(e.getDate() - 1);
|
|
2893
2893
|
const r = De(e.toISOString());
|
|
2894
|
-
return { from:
|
|
2894
|
+
return { from: s, to: r };
|
|
2895
2895
|
}, ui = (t, e) => {
|
|
2896
2896
|
if (t === null || e === null)
|
|
2897
2897
|
return "C";
|
|
2898
2898
|
if (t === e)
|
|
2899
2899
|
return "D";
|
|
2900
|
-
const
|
|
2901
|
-
return mt(
|
|
2902
|
-
}, fi = (t, e,
|
|
2900
|
+
const s = new Date(t);
|
|
2901
|
+
return mt(s).to === e ? "M" : Ze(s).to === e ? "Y" : (console.log(Ze(s), e), "C");
|
|
2902
|
+
}, fi = (t, e, s) => {
|
|
2903
2903
|
const r = $((l, i) => {
|
|
2904
2904
|
if (t === "C") {
|
|
2905
|
-
|
|
2905
|
+
s((c) => ({ ...c, [l]: i }));
|
|
2906
2906
|
return;
|
|
2907
2907
|
}
|
|
2908
2908
|
switch (l) {
|
|
2909
2909
|
case "from":
|
|
2910
|
-
|
|
2910
|
+
s((c) => {
|
|
2911
2911
|
if (i === null)
|
|
2912
2912
|
return c;
|
|
2913
2913
|
const d = new Date(i);
|
|
@@ -2922,11 +2922,11 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2922
2922
|
});
|
|
2923
2923
|
break;
|
|
2924
2924
|
case "to":
|
|
2925
|
-
e("C"),
|
|
2925
|
+
e("C"), s((c) => ({ ...c, [l]: i }));
|
|
2926
2926
|
break;
|
|
2927
2927
|
}
|
|
2928
|
-
}, [t,
|
|
2929
|
-
|
|
2928
|
+
}, [t, s, e]), o = $((l) => {
|
|
2929
|
+
s((i) => {
|
|
2930
2930
|
if (i.from === null || i.to === null)
|
|
2931
2931
|
return i;
|
|
2932
2932
|
const c = new Date(i.from);
|
|
@@ -2945,67 +2945,67 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
2945
2945
|
to: De(d.toISOString())
|
|
2946
2946
|
};
|
|
2947
2947
|
});
|
|
2948
|
-
}, [t,
|
|
2949
|
-
l === "D" ?
|
|
2948
|
+
}, [t, s]), a = $((l) => {
|
|
2949
|
+
l === "D" ? s((i) => ({ from: i.from, to: i.from })) : l === "M" ? s((i) => {
|
|
2950
2950
|
if (i.from === null)
|
|
2951
2951
|
return i;
|
|
2952
2952
|
const c = Ho(i.from);
|
|
2953
2953
|
return mt(c);
|
|
2954
|
-
}) : l === "Y" &&
|
|
2954
|
+
}) : l === "Y" && s((i) => {
|
|
2955
2955
|
if (i.from === null)
|
|
2956
2956
|
return i;
|
|
2957
2957
|
const c = Wo(new Date(i.from).getFullYear());
|
|
2958
2958
|
return Ze(c);
|
|
2959
2959
|
}), e(l);
|
|
2960
|
-
}, [
|
|
2960
|
+
}, [s, e]);
|
|
2961
2961
|
return { setFromToProp: r, handleArrowClick: o, handleRangeChange: a };
|
|
2962
|
-
},
|
|
2963
|
-
const { texts: { date: o }, ProjectIconComponent: a } = B(ue), [l, i] =
|
|
2962
|
+
}, xd = ({ fromtoState: [t, e], className: s, size: r }) => {
|
|
2963
|
+
const { texts: { date: o }, ProjectIconComponent: a } = B(ue), [l, i] = S("C"), { handleArrowClick: c, handleRangeChange: d, setFromToProp: u } = fi(l, i, e), m = q(() => l === "C", [l]), h = Y(!0);
|
|
2964
2964
|
return O(() => {
|
|
2965
2965
|
if (h.current) {
|
|
2966
2966
|
const g = ui(t.from, t.to);
|
|
2967
2967
|
i(g), h.current = !1;
|
|
2968
2968
|
}
|
|
2969
|
-
}, [t.from, t.to]), /* @__PURE__ */
|
|
2970
|
-
/* @__PURE__ */
|
|
2969
|
+
}, [t.from, t.to]), /* @__PURE__ */ n.jsxs("div", { className: j("d-inline-flex align-items-center gap-1", Un.wrapper, Un[r ?? "md"], s), children: [
|
|
2970
|
+
/* @__PURE__ */ n.jsx(U, { disabled: m, onClick: () => {
|
|
2971
2971
|
c(-1);
|
|
2972
|
-
}, children: /* @__PURE__ */
|
|
2973
|
-
/* @__PURE__ */
|
|
2974
|
-
/* @__PURE__ */
|
|
2975
|
-
/* @__PURE__ */
|
|
2976
|
-
/* @__PURE__ */
|
|
2972
|
+
}, children: /* @__PURE__ */ n.jsx(a, { icon: "chevron-left" }) }),
|
|
2973
|
+
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
2974
|
+
/* @__PURE__ */ n.jsx(Pe, { type: "date", value: t.from, onChange: (g) => u("from", g === null ? null : g.toString()), InputContainer: we, size: r }),
|
|
2975
|
+
/* @__PURE__ */ n.jsx($r, { toggle: /* @__PURE__ */ n.jsx(kr, { text: o[Vn.find((g) => g[0] === l)[1]].substring(0, 1), as: _o }), children: Vn.map((g) => /* @__PURE__ */ n.jsx(an, { disabled: g[0] === l, className: j(g[0] === l ? "text-black-50" : ""), onClick: () => d(g[0]), role: "button", children: o[g[1]] }, g[0])) }),
|
|
2976
|
+
/* @__PURE__ */ n.jsx(Pe, { type: "date", value: t.to, onChange: (g) => u("to", g === null ? null : g.toString()), InputContainer: we, size: r })
|
|
2977
2977
|
] }) }),
|
|
2978
|
-
/* @__PURE__ */
|
|
2978
|
+
/* @__PURE__ */ n.jsx(U, { disabled: m, onClick: () => {
|
|
2979
2979
|
c(1);
|
|
2980
|
-
}, children: /* @__PURE__ */
|
|
2980
|
+
}, children: /* @__PURE__ */ n.jsx(a, { icon: "chevron-right" }) })
|
|
2981
2981
|
] });
|
|
2982
|
-
},
|
|
2982
|
+
}, jd = ({ defaultMonth: t, searchKey: e = "monthFrom", yearMin: s, yearMax: r }) => {
|
|
2983
2983
|
const { localizationContext: o } = B(ue), { dateFnsLocale: a } = B(o), { searchParams: l, setSearch: i } = zo(), c = l.get(e), d = c ? et(c) : t, u = $((m) => {
|
|
2984
|
-
i(e,
|
|
2984
|
+
i(e, Bt(m, { representation: "date" }));
|
|
2985
2985
|
}, [e, i]);
|
|
2986
|
-
return /* @__PURE__ */
|
|
2987
|
-
},
|
|
2988
|
-
const [a, l] = Vo(e,
|
|
2989
|
-
l(
|
|
2986
|
+
return /* @__PURE__ */ n.jsx(Za, { month: d, onChangeMonth: u, locale: a, yearMin: s, yearMax: r });
|
|
2987
|
+
}, wd = ({ defaultYear: t, searchKey: e = "yearFrom", optionMin: s, optionMax: r, className: o }) => {
|
|
2988
|
+
const [a, l] = Vo(e, Bt(t, { representation: "date" })), i = a ? et(a) : t, c = $((d) => {
|
|
2989
|
+
l(Bt(d, { representation: "date" }));
|
|
2990
2990
|
}, [l]);
|
|
2991
|
-
return /* @__PURE__ */
|
|
2992
|
-
},
|
|
2991
|
+
return /* @__PURE__ */ n.jsx(el, { year: i, onChangeYear: c, optionMin: s, optionMax: r, className: o });
|
|
2992
|
+
}, yd = ({ data: t, showLegend: e = !1, legendPosition: s = "left" }) => {
|
|
2993
2993
|
const { chartColorPalette: r } = B(ue);
|
|
2994
|
-
return /* @__PURE__ */
|
|
2994
|
+
return /* @__PURE__ */ n.jsx(No, { data: t, margin: {
|
|
2995
2995
|
top: 50,
|
|
2996
|
-
right: e &&
|
|
2996
|
+
right: e && s === "right" ? 200 : 100,
|
|
2997
2997
|
bottom: 50,
|
|
2998
|
-
left: e &&
|
|
2998
|
+
left: e && s === "left" ? 200 : 100
|
|
2999
2999
|
}, innerRadius: 0.4, padAngle: 4, cornerRadius: 2, activeOuterRadiusOffset: 10, borderWidth: 2, borderColor: {
|
|
3000
3000
|
from: "color",
|
|
3001
3001
|
modifiers: [["darker", 0.5]]
|
|
3002
3002
|
}, colors: r, arcLinkLabelsSkipAngle: 10, arcLinkLabelsTextColor: { from: "color", modifiers: [["darker", 0.5]] }, arcLinkLabelsThickness: 2, arcLinkLabelsColor: { from: "color" }, enableArcLabels: !1, legends: e ? [
|
|
3003
3003
|
{
|
|
3004
|
-
anchor:
|
|
3005
|
-
direction:
|
|
3004
|
+
anchor: s,
|
|
3005
|
+
direction: s === "left" || s === "right" ? "column" : "row",
|
|
3006
3006
|
justify: !1,
|
|
3007
|
-
translateX:
|
|
3008
|
-
translateY:
|
|
3007
|
+
translateX: s === "left" ? -200 : s === "right" ? 200 : 0,
|
|
3008
|
+
translateY: s === "top" ? -50 : s === "bottom" ? 50 : 0,
|
|
3009
3009
|
itemsSpacing: 4,
|
|
3010
3010
|
itemWidth: 120,
|
|
3011
3011
|
itemHeight: 18,
|
|
@@ -3018,42 +3018,42 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3018
3018
|
}
|
|
3019
3019
|
] : [] });
|
|
3020
3020
|
}, mi = ({ errors: t, schema: e }) => {
|
|
3021
|
-
const
|
|
3021
|
+
const s = (r) => {
|
|
3022
3022
|
var o, a;
|
|
3023
3023
|
return r.toLowerCase() === "others" ? "Obecné" : ((a = (o = e.columns) == null ? void 0 : o.find((l) => l.field === r)) == null ? void 0 : a.caption) ?? r;
|
|
3024
3024
|
};
|
|
3025
|
-
return /* @__PURE__ */
|
|
3026
|
-
/* @__PURE__ */
|
|
3027
|
-
|
|
3025
|
+
return /* @__PURE__ */ n.jsx("div", { className: "alert alert-danger w-100 m-0 p-2", children: /* @__PURE__ */ n.jsx("table", { children: /* @__PURE__ */ n.jsx("tbody", { children: t.map((r) => /* @__PURE__ */ n.jsxs("tr", { children: [
|
|
3026
|
+
/* @__PURE__ */ n.jsx("td", { className: "fw-bold pe-2", children: /* @__PURE__ */ n.jsxs(V, { variant: "body", children: [
|
|
3027
|
+
s(r.name),
|
|
3028
3028
|
":"
|
|
3029
3029
|
] }) }),
|
|
3030
|
-
/* @__PURE__ */
|
|
3030
|
+
/* @__PURE__ */ n.jsx("td", { className: "", children: /* @__PURE__ */ n.jsx(V, { variant: "body", children: r.errors }) })
|
|
3031
3031
|
] }, r.name)) }) }) });
|
|
3032
3032
|
}, Mr = (t) => {
|
|
3033
3033
|
const e = {};
|
|
3034
|
-
return Object.keys(t).forEach((
|
|
3035
|
-
if (t[
|
|
3036
|
-
e[
|
|
3034
|
+
return Object.keys(t).forEach((s) => {
|
|
3035
|
+
if (t[s].value === !0) {
|
|
3036
|
+
e[s] = 1;
|
|
3037
3037
|
return;
|
|
3038
3038
|
}
|
|
3039
|
-
if (t[
|
|
3040
|
-
e[
|
|
3039
|
+
if (t[s].value === !1) {
|
|
3040
|
+
e[s] = 0;
|
|
3041
3041
|
return;
|
|
3042
3042
|
}
|
|
3043
|
-
e[
|
|
3043
|
+
e[s] = t[s].value;
|
|
3044
3044
|
}), e;
|
|
3045
|
-
},
|
|
3046
|
-
const
|
|
3045
|
+
}, Gn = (t, e) => {
|
|
3046
|
+
const s = {};
|
|
3047
3047
|
return Object.keys(t).forEach((r) => {
|
|
3048
3048
|
var l;
|
|
3049
3049
|
const o = t[r], a = (l = e.columns) == null ? void 0 : l.find((i) => i.field === r);
|
|
3050
3050
|
if ((a == null ? void 0 : a.type) === "BIT" && (o === 1 || o === 0)) {
|
|
3051
|
-
|
|
3051
|
+
s[r] = { value: o === 1, defaultValue: o === 1 };
|
|
3052
3052
|
return;
|
|
3053
3053
|
}
|
|
3054
|
-
|
|
3055
|
-
}),
|
|
3056
|
-
}, pi = "_table_1klfy_1", hi = "_table-header_1klfy_10", gi = "_table-row_1klfy_10", xi = "_table-head_1klfy_10", ji = "_filters-row_1klfy_19", wi = "_table-body_1klfy_30", yi = "_table-cell_1klfy_30",
|
|
3054
|
+
s[r] = { value: o, defaultValue: o };
|
|
3055
|
+
}), s;
|
|
3056
|
+
}, pi = "_table_1klfy_1", hi = "_table-header_1klfy_10", gi = "_table-row_1klfy_10", xi = "_table-head_1klfy_10", ji = "_filters-row_1klfy_19", wi = "_table-body_1klfy_30", yi = "_table-cell_1klfy_30", bi = "_action-column_1klfy_43", vi = "_sticky-top_1klfy_47", _i = "_sticky-first_1klfy_54", Ni = "_sticky-last_1klfy_61", Ci = "_sticky-bottom_1klfy_68", J = {
|
|
3057
3057
|
table: pi,
|
|
3058
3058
|
"table-header": "_table-header_1klfy_10",
|
|
3059
3059
|
tableHeader: hi,
|
|
@@ -3068,35 +3068,35 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3068
3068
|
"table-cell": "_table-cell_1klfy_30",
|
|
3069
3069
|
tableCell: yi,
|
|
3070
3070
|
"action-column": "_action-column_1klfy_43",
|
|
3071
|
-
actionColumn:
|
|
3071
|
+
actionColumn: bi,
|
|
3072
3072
|
"sticky-top": "_sticky-top_1klfy_47",
|
|
3073
|
-
stickyTop:
|
|
3073
|
+
stickyTop: vi,
|
|
3074
3074
|
"sticky-first": "_sticky-first_1klfy_54",
|
|
3075
3075
|
stickyFirst: _i,
|
|
3076
3076
|
"sticky-last": "_sticky-last_1klfy_61",
|
|
3077
3077
|
stickyLast: Ni,
|
|
3078
3078
|
"sticky-bottom": "_sticky-bottom_1klfy_68",
|
|
3079
|
-
stickyBottom:
|
|
3080
|
-
},
|
|
3081
|
-
input:
|
|
3082
|
-
}, Lr = ({ type: t, value: e, field:
|
|
3079
|
+
stickyBottom: Ci
|
|
3080
|
+
}, ki = "_input_13mhy_1", Ae = {
|
|
3081
|
+
input: ki
|
|
3082
|
+
}, Lr = ({ type: t, value: e, field: s, isPrimary: r, isReadonly: o, primaryEditable: a = !1, valuesForSelect: l, onChangeHandler: i, hideClearIcon: c, clearValue: d }) => {
|
|
3083
3083
|
switch (t) {
|
|
3084
3084
|
case "NUM":
|
|
3085
|
-
return l && l.length > 0 ? /* @__PURE__ */
|
|
3085
|
+
return l && l.length > 0 ? /* @__PURE__ */ n.jsx(wt, { withoutLabel: !0, InputContainer: we, className: Ae.input, size: "sm", value: (e == null ? void 0 : e.toString()) ?? "", onChange: (u) => i(s, u === null ? null : Number(u)), options: l, disabled: o || a ? !1 : r, showClearIcon: !c, clearValue: d }) : /* @__PURE__ */ n.jsx(Pe, { withoutLabel: !0, InputContainer: we, className: Ae.input, size: "sm", type: "number", value: e === null ? null : Number(e), onChange: (u) => i(s, u === null ? null : Number(u)), disabled: o || a ? !1 : r, showClearIcon: !c, clearValue: d });
|
|
3086
3086
|
case "STR":
|
|
3087
|
-
return l && l.length > 0 ? /* @__PURE__ */
|
|
3087
|
+
return l && l.length > 0 ? /* @__PURE__ */ n.jsx(wt, { withoutLabel: !0, InputContainer: we, className: Ae.input, size: "sm", value: (e == null ? void 0 : e.toString()) ?? "", onChange: (u) => i(s, (u == null ? void 0 : u.toString()) ?? null), options: l, disabled: o || a ? !1 : r, showClearIcon: !c, clearValue: d }) : /* @__PURE__ */ n.jsx(Pe, { withoutLabel: !0, InputContainer: we, className: Ae.input, size: "sm", type: "text", value: (e == null ? void 0 : e.toString()) ?? "", onChange: (u) => i(s, (u == null ? void 0 : u.toString()) ?? null), disabled: o || a ? !1 : r, showClearIcon: !c, clearValue: d });
|
|
3088
3088
|
case "BIT":
|
|
3089
|
-
return /* @__PURE__ */
|
|
3089
|
+
return /* @__PURE__ */ n.jsx(Tr, { InputContainer: we, className: Ae.input, value: e === !0, onChange: (u) => i(s, u), disabled: o || a ? !1 : r });
|
|
3090
3090
|
case "DT":
|
|
3091
|
-
return /* @__PURE__ */
|
|
3091
|
+
return /* @__PURE__ */ n.jsx(Pe, { withoutLabel: !0, InputContainer: we, className: Ae.input, size: "sm", type: "date", value: e ? e.toString().split("T")[0] ?? "" : "", onChange: (u) => i(s, (u == null ? void 0 : u.toString()) ?? null), disabled: o || a ? !1 : r, showClearIcon: !c, clearValue: d });
|
|
3092
3092
|
default:
|
|
3093
|
-
return /* @__PURE__ */
|
|
3093
|
+
return /* @__PURE__ */ n.jsx("div", { className: "alert alert-warning p-1 m-0", children: /* @__PURE__ */ n.jsxs(V, { variant: "body", children: [
|
|
3094
3094
|
"Neznámý typ ",
|
|
3095
3095
|
t
|
|
3096
3096
|
] }) });
|
|
3097
3097
|
}
|
|
3098
|
-
}, $i = ({ schema: t, columns: e, initialItem:
|
|
3099
|
-
const { ProjectIconComponent: a } = B(ue), [l, i] =
|
|
3098
|
+
}, $i = ({ schema: t, columns: e, initialItem: s, onEdit: r, onDelete: o }) => {
|
|
3099
|
+
const { ProjectIconComponent: a } = B(ue), [l, i] = S(s), c = $((m, h) => {
|
|
3100
3100
|
console.log("changeValue", m, h), i((g) => ({
|
|
3101
3101
|
...g,
|
|
3102
3102
|
[m]: {
|
|
@@ -3106,17 +3106,17 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3106
3106
|
}));
|
|
3107
3107
|
}, []), d = (m) => (m == null ? void 0 : m.value) !== (m == null ? void 0 : m.defaultValue), u = $(() => Object.keys(l).some((m) => d(l[m])), [l]);
|
|
3108
3108
|
return O(() => {
|
|
3109
|
-
i(
|
|
3110
|
-
}, [
|
|
3111
|
-
/* @__PURE__ */
|
|
3109
|
+
i(s);
|
|
3110
|
+
}, [s]), /* @__PURE__ */ n.jsxs("tr", { className: j("table-row", J.tableRow), children: [
|
|
3111
|
+
/* @__PURE__ */ n.jsx("td", { className: j("table-cell", J.tableCell, J.stickyFirst), children: u() && /* @__PURE__ */ n.jsx(U, { color: "success", onClick: () => r(Mr(l)), children: /* @__PURE__ */ n.jsx(a, { icon: "check" }) }) }),
|
|
3112
3112
|
e.map((m) => {
|
|
3113
3113
|
var h, g;
|
|
3114
|
-
return /* @__PURE__ */
|
|
3114
|
+
return /* @__PURE__ */ n.jsx("td", { className: j("table-cell", J.tableCell), children: /* @__PURE__ */ n.jsx(Lr, { type: m.type, value: (h = l[m.field ?? ""]) == null ? void 0 : h.value, field: m.field, isReadonly: m.readOnly, isPrimary: t.primaryKey === m.field, valuesForSelect: m.valuesForSelect, onChangeHandler: c, hideClearIcon: !d(l[m.field ?? ""]), clearValue: (g = l[m.field ?? ""].defaultValue) == null ? void 0 : g.toString() }) }, `${t.id}-${m.field}`);
|
|
3115
3115
|
}),
|
|
3116
|
-
/* @__PURE__ */
|
|
3116
|
+
/* @__PURE__ */ n.jsx("td", { className: j("table-cell", J.tableCell, J.stickyLast), children: /* @__PURE__ */ n.jsx(U, { color: "danger", onClick: () => o(l[t.primaryKey ?? ""].value), children: /* @__PURE__ */ n.jsx(a, { icon: "delete" }) }) })
|
|
3117
3117
|
] });
|
|
3118
|
-
},
|
|
3119
|
-
const { ProjectIconComponent: r } = B(ue), [o, a] =
|
|
3118
|
+
}, Ii = ({ schema: t, columns: e, onCreate: s }) => {
|
|
3119
|
+
const { ProjectIconComponent: r } = B(ue), [o, a] = S(null), l = $(() => {
|
|
3120
3120
|
var d;
|
|
3121
3121
|
const c = {};
|
|
3122
3122
|
(d = t.columns) == null || d.forEach((u) => {
|
|
@@ -3135,19 +3135,19 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3135
3135
|
}
|
|
3136
3136
|
});
|
|
3137
3137
|
}, []);
|
|
3138
|
-
return o ? /* @__PURE__ */
|
|
3139
|
-
/* @__PURE__ */
|
|
3138
|
+
return o ? /* @__PURE__ */ n.jsxs("tr", { className: "sticky-bottom shadow", children: [
|
|
3139
|
+
/* @__PURE__ */ n.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ n.jsx(U, { color: "success", onClick: async () => {
|
|
3140
3140
|
const c = Mr(o);
|
|
3141
|
-
c && await
|
|
3142
|
-
}, children: /* @__PURE__ */
|
|
3143
|
-
e.map((c) => /* @__PURE__ */
|
|
3144
|
-
/* @__PURE__ */
|
|
3145
|
-
] }) : /* @__PURE__ */
|
|
3146
|
-
/* @__PURE__ */
|
|
3147
|
-
/* @__PURE__ */
|
|
3141
|
+
c && await s(c) && a(null);
|
|
3142
|
+
}, children: /* @__PURE__ */ n.jsx(r, { icon: "check" }) }) }),
|
|
3143
|
+
e.map((c) => /* @__PURE__ */ n.jsx("td", { children: /* @__PURE__ */ n.jsx(Lr, { type: c.type, value: o[c.field ?? ""].value, field: c.field, isReadonly: c.readOnly, isPrimary: t.primaryKey === c.field, valuesForSelect: c.valuesForSelect, onChangeHandler: i, primaryEditable: !0 }) }, `${t.id}-${c.field}`)),
|
|
3144
|
+
/* @__PURE__ */ n.jsx("td", { className: "sticky-last", children: /* @__PURE__ */ n.jsx(U, { color: "danger", onClick: () => a(null), children: /* @__PURE__ */ n.jsx(r, { icon: "cancel" }) }) })
|
|
3145
|
+
] }) : /* @__PURE__ */ n.jsxs("tr", { className: "sticky-bottom shadow", children: [
|
|
3146
|
+
/* @__PURE__ */ n.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ n.jsx(U, { onClick: l, children: /* @__PURE__ */ n.jsx(r, { icon: "add" }) }) }),
|
|
3147
|
+
/* @__PURE__ */ n.jsx("td", { colSpan: e.length + 1 })
|
|
3148
3148
|
] });
|
|
3149
|
-
},
|
|
3150
|
-
const { texts: { dynamicForms: u }, ProjectIconComponent: m } = B(ue), [h, g] =
|
|
3149
|
+
}, Si = ({ column: t, children: e }) => t.description ? /* @__PURE__ */ n.jsx(qt, { placement: "bottom", text: t.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: e }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: e }), Di = ({ schema: t, items: e, onEditItem: s, onDeleteItem: r, onCreateItem: o, filters: a, setFilter: l, sortByField: i, sortByType: c, setSortBy: d }) => {
|
|
3150
|
+
const { texts: { dynamicForms: u }, ProjectIconComponent: m } = B(ue), [h, g] = S([]);
|
|
3151
3151
|
return O(() => {
|
|
3152
3152
|
var x, w, p;
|
|
3153
3153
|
g([
|
|
@@ -3160,11 +3160,11 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3160
3160
|
valuesForSelect: y.values ?? void 0
|
|
3161
3161
|
}))) ?? []
|
|
3162
3162
|
]);
|
|
3163
|
-
}, [t]), /* @__PURE__ */
|
|
3164
|
-
/* @__PURE__ */
|
|
3165
|
-
/* @__PURE__ */
|
|
3166
|
-
/* @__PURE__ */
|
|
3167
|
-
h.map((x) => /* @__PURE__ */
|
|
3163
|
+
}, [t]), /* @__PURE__ */ n.jsxs("table", { id: `dynamic-table-${t.id}`, className: j("table table-borderless luminus-df-table", J.table), children: [
|
|
3164
|
+
/* @__PURE__ */ n.jsxs("thead", { className: j("text-nowrap table-header", J.stickyTop, J.tableHeader), children: [
|
|
3165
|
+
/* @__PURE__ */ n.jsxs("tr", { className: j("table-row", J.tableRow), children: [
|
|
3166
|
+
/* @__PURE__ */ n.jsx("th", { className: j("table-head", J.tableHead, J.actionColumn, J.stickyFirst) }),
|
|
3167
|
+
h.map((x) => /* @__PURE__ */ n.jsx("th", { className: j("table-head", J.tableHead), onClick: () => {
|
|
3168
3168
|
const w = i === x.field ? c : null;
|
|
3169
3169
|
if (w === "asc") {
|
|
3170
3170
|
d(x.field, "desc");
|
|
@@ -3175,29 +3175,29 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3175
3175
|
return;
|
|
3176
3176
|
}
|
|
3177
3177
|
d(x.field, "asc");
|
|
3178
|
-
}, children: /* @__PURE__ */
|
|
3178
|
+
}, children: /* @__PURE__ */ n.jsx(Si, { column: x, children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
3179
3179
|
x.label,
|
|
3180
|
-
i === x.field && /* @__PURE__ */
|
|
3180
|
+
i === x.field && /* @__PURE__ */ n.jsx(m, { icon: c === "asc" ? "chevron-up" : "chevron-down" })
|
|
3181
3181
|
] }) }) }, `${t.id}-${x.field}`)),
|
|
3182
|
-
/* @__PURE__ */
|
|
3182
|
+
/* @__PURE__ */ n.jsx("th", { className: j("table-head", J.tableHead, J.actionColumn, J.stickyLast) })
|
|
3183
3183
|
] }),
|
|
3184
|
-
/* @__PURE__ */
|
|
3185
|
-
/* @__PURE__ */
|
|
3186
|
-
h.map((x) => /* @__PURE__ */
|
|
3184
|
+
/* @__PURE__ */ n.jsxs("tr", { className: j("table-row filters-row", J.tableRow, J.filtersRow), children: [
|
|
3185
|
+
/* @__PURE__ */ n.jsx("th", { className: j("table-head", J.tableHead, J.actionColumn, J.stickyFirst) }),
|
|
3186
|
+
h.map((x) => /* @__PURE__ */ n.jsx("th", { className: j("table-head", J.tableHead), children: x.valuesForSelect && x.valuesForSelect.length > 0 || x.type === "BIT" ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(wt, { InputContainer: we, withoutLabel: !0, size: "sm", value: a[x.field] ?? "", onChange: (w) => l(x.field, (w == null ? void 0 : w.toString()) ?? null), options: x.type === "BIT" ? [
|
|
3187
3187
|
{ id: 1, name: u.yes },
|
|
3188
3188
|
{ id: 0, name: u.no }
|
|
3189
|
-
] : x.valuesForSelect ?? [], isNumber: x.type === "BIT", showClearIcon: !0 }) }) : /* @__PURE__ */
|
|
3190
|
-
/* @__PURE__ */
|
|
3189
|
+
] : x.valuesForSelect ?? [], isNumber: x.type === "BIT", showClearIcon: !0 }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(Pe, { InputContainer: we, withoutLabel: !0, size: "sm", type: x.type === "NUM" ? "number" : x.type === "DT" ? "date" : "text", value: a[x.field] ?? "", onChange: (w) => l(x.field, (w == null ? void 0 : w.toString()) ?? null) }) }) }, `${t.id}-${x.field}`)),
|
|
3190
|
+
/* @__PURE__ */ n.jsx("th", { className: j("table-head", J.tableHead, J.actionColumn, J.stickyLast) })
|
|
3191
3191
|
] })
|
|
3192
3192
|
] }),
|
|
3193
|
-
/* @__PURE__ */
|
|
3194
|
-
e.filter((x) => x[t.primaryKey ?? ""]).map((x) => /* @__PURE__ */
|
|
3195
|
-
/* @__PURE__ */
|
|
3193
|
+
/* @__PURE__ */ n.jsxs("tbody", { className: j("table-body", J.tableBody), children: [
|
|
3194
|
+
e.filter((x) => x[t.primaryKey ?? ""]).map((x) => /* @__PURE__ */ n.jsx($i, { schema: t, columns: h, initialItem: x, onEdit: s, onDelete: r }, `${t.id}-${x[t.primaryKey ?? ""].value}`)),
|
|
3195
|
+
/* @__PURE__ */ n.jsx(Ii, { schema: t, columns: h, onCreate: o })
|
|
3196
3196
|
] })
|
|
3197
3197
|
] });
|
|
3198
|
-
}, Fi = ({ master: t, onChange: e, options:
|
|
3198
|
+
}, Fi = ({ master: t, onChange: e, options: s, label: r }) => /* @__PURE__ */ n.jsx(wt, { label: r, value: t, onChange: (o) => e(o ? o.toString() : null), options: s, size: "sm" }), Ei = "_pagination_gujwe_1", Yn = {
|
|
3199
3199
|
pagination: Ei
|
|
3200
|
-
},
|
|
3200
|
+
}, Kn = {
|
|
3201
3201
|
appDetail: "/settings/:id"
|
|
3202
3202
|
}, Be = {
|
|
3203
3203
|
apiSchemaGet: "/dynamicForms/schema",
|
|
@@ -3205,24 +3205,24 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3205
3205
|
apiItemPost: "/dynamicForms/update",
|
|
3206
3206
|
apiItemDelete: "/dynamicForms/delete",
|
|
3207
3207
|
apiItemCreate: "/dynamicForms/insert"
|
|
3208
|
-
},
|
|
3209
|
-
var
|
|
3210
|
-
const { texts: { dynamicForms: x }, ProjectIconComponent: w } = B(ue), p = st(), { startLoading: y, stopLoading: N } = B(ms), [f,
|
|
3208
|
+
}, bd = ({ id: t, page: e, setPage: s, filters: r, setFilter: o, sortByField: a, sortByType: l, setSortBy: i, appUrls: { appDetail: c = Kn.appDetail } = Kn, apiUrls: { apiSchemaGet: d = Be.apiSchemaGet, apiDataGet: u = Be.apiDataGet, apiItemPost: m = Be.apiItemPost, apiItemDelete: h = Be.apiItemDelete, apiItemCreate: g = Be.apiItemCreate } = Be }) => {
|
|
3209
|
+
var dn, un, fn, mn, pn, hn;
|
|
3210
|
+
const { texts: { dynamicForms: x }, ProjectIconComponent: w } = B(ue), p = st(), { startLoading: y, stopLoading: N } = B(ms), [f, C] = S(null), [b, k] = S(null), [_, E] = S(null), [I, F] = S(null), [v, D] = S(!1), { addNotification: R } = Co(), [H, Q] = S([]), { confirm: X } = Go(), L = 20, Z = L + 1, ee = I ? Math.ceil(I.length / L) : 1, te = e ? e > 1 : !1, T = e ? e < ee : !1, re = e ? (e - 1) * L : 0, de = e ? e * L : L, [pe, le] = S(!1), xe = pe ? I == null ? void 0 : I.slice(re, de) : I, [W, A] = S(null);
|
|
3211
3211
|
O(() => {
|
|
3212
|
-
|
|
3212
|
+
C(null), k(null), D(!1), Q([]), A(null);
|
|
3213
3213
|
}, [t]);
|
|
3214
3214
|
const ne = $(async () => {
|
|
3215
3215
|
y("dynamicFormSchema"), await p.get(`${d}?id=${t}`).then(({ data: P }) => {
|
|
3216
|
-
|
|
3216
|
+
C(P), N("dynamicFormSchema");
|
|
3217
3217
|
}).catch(() => N("dynamicFormSchema"));
|
|
3218
3218
|
}, [p, t, y, N, d]), me = $(async () => {
|
|
3219
3219
|
var P;
|
|
3220
3220
|
if (!(f === null || ((P = f.id) == null ? void 0 : P.toString()) !== t)) {
|
|
3221
3221
|
if (f.masterReference && !W) {
|
|
3222
|
-
|
|
3222
|
+
k([]);
|
|
3223
3223
|
return;
|
|
3224
3224
|
}
|
|
3225
|
-
y("dynamicFormData"), await p.get(`${u}?id=${t}&showArchive=${
|
|
3225
|
+
y("dynamicFormData"), await p.get(`${u}?id=${t}&showArchive=${v}${f.masterReference ? `&master=${W}` : ""}`).then(({ data: K }) => {
|
|
3226
3226
|
const se = K.map((G) => {
|
|
3227
3227
|
var oe;
|
|
3228
3228
|
return Object.fromEntries(((oe = f.columns) == null ? void 0 : oe.filter((ie) => ie.field).map((ie) => [
|
|
@@ -3230,16 +3230,16 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3230
3230
|
{ value: G[ie.field ?? ""], defaultValue: G[ie.field ?? ""] }
|
|
3231
3231
|
])) ?? []);
|
|
3232
3232
|
});
|
|
3233
|
-
|
|
3233
|
+
k(se), N("dynamicFormData");
|
|
3234
3234
|
}).catch(() => N("dynamicFormData"));
|
|
3235
3235
|
}
|
|
3236
|
-
}, [p, t, f, y, N,
|
|
3237
|
-
f && await We(f.masterReference ? { ...P, [f.masterReferenceColumn ?? ""]: W } : P) && (R(x.editSuccess, "success"),
|
|
3236
|
+
}, [p, t, f, y, N, v, W, u]), We = $(async (P) => (y("dynamicFormEdit"), p.post(`${m}?id=${t}`, P).then(() => (N("dynamicFormEdit"), Q([]), !0)).catch((K) => (N("dynamicFormEdit"), Q(kt(K)), !1))), [p, t, y, N, m]), ze = $(async (P) => (y("dynamicFormDelete"), p.delete(`${h}?id=${t}&pk=${P}`).then(() => (N("dynamicFormDelete"), Q([]), !0)).catch((K) => (N("dynamicFormDelete"), Q(kt(K)), !1))), [p, t, y, N, h]), Ve = $(async (P) => (y("dynamicFormCreate"), p.post(`${g}?id=${t}`, P).then(({ data: K }) => (N("dynamicFormCreate"), Q([]), K)).catch((K) => (N("dynamicFormCreate"), Q(kt(K)), null))), [p, t, y, N, g]), Rr = $(async (P) => {
|
|
3237
|
+
f && await We(f.masterReference ? { ...P, [f.masterReferenceColumn ?? ""]: W } : P) && (R(x.editSuccess, "success"), k((K) => K && K.map((se) => {
|
|
3238
3238
|
var G;
|
|
3239
|
-
return ((G = se[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : G.value) === P[(f == null ? void 0 : f.primaryKey) ?? ""] ?
|
|
3239
|
+
return ((G = se[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : G.value) === P[(f == null ? void 0 : f.primaryKey) ?? ""] ? Gn(P, f) : se;
|
|
3240
3240
|
})));
|
|
3241
3241
|
}, [R, We, f, W, x]), Ar = $(async (P) => {
|
|
3242
|
-
await X(x.deleteConfirm) && await ze(P) && (R(x.deleteSuccess, "success"),
|
|
3242
|
+
await X(x.deleteConfirm) && await ze(P) && (R(x.deleteSuccess, "success"), k((K) => K && K.filter((se) => {
|
|
3243
3243
|
var G;
|
|
3244
3244
|
return ((G = se[(f == null ? void 0 : f.primaryKey) ?? ""]) == null ? void 0 : G.value) !== P;
|
|
3245
3245
|
})));
|
|
@@ -3249,18 +3249,18 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3249
3249
|
const K = await Ve(f.masterReference ? { ...P, [f.masterReferenceColumn ?? ""]: W } : P);
|
|
3250
3250
|
if (K !== null) {
|
|
3251
3251
|
R(x.createSuccess, "success");
|
|
3252
|
-
const se =
|
|
3253
|
-
return se[(f == null ? void 0 : f.primaryKey) ?? ""] = { value: K, defaultValue: K },
|
|
3252
|
+
const se = Gn(P, f);
|
|
3253
|
+
return se[(f == null ? void 0 : f.primaryKey) ?? ""] = { value: K, defaultValue: K }, k((G) => [...G ?? [], se]), !0;
|
|
3254
3254
|
}
|
|
3255
3255
|
return !1;
|
|
3256
3256
|
}, [R, Ve, x, f, W]), at = (P) => {
|
|
3257
|
-
P > ee ?
|
|
3258
|
-
},
|
|
3259
|
-
if (!
|
|
3257
|
+
P > ee ? s(ee) : P < 1 && s(1), s(P);
|
|
3258
|
+
}, ln = $(() => {
|
|
3259
|
+
if (!b || !f) {
|
|
3260
3260
|
E(null);
|
|
3261
3261
|
return;
|
|
3262
3262
|
}
|
|
3263
|
-
const P =
|
|
3263
|
+
const P = b.filter((K) => Object.entries(r).every(([se, G]) => {
|
|
3264
3264
|
var Ye, Ke, qe;
|
|
3265
3265
|
if (G === null)
|
|
3266
3266
|
return !0;
|
|
@@ -3284,7 +3284,7 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3284
3284
|
}
|
|
3285
3285
|
}));
|
|
3286
3286
|
E(P);
|
|
3287
|
-
}, [
|
|
3287
|
+
}, [b, r, f]), cn = $(() => {
|
|
3288
3288
|
if (!_ || !f) {
|
|
3289
3289
|
F([]);
|
|
3290
3290
|
return;
|
|
@@ -3303,16 +3303,16 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3303
3303
|
if (!G)
|
|
3304
3304
|
return -1;
|
|
3305
3305
|
if (oe.values && oe.values.length > 0) {
|
|
3306
|
-
const je = ((qe = oe.values.find((Nt) => Nt.id.toString() === se)) == null ? void 0 : qe.name) ?? "",
|
|
3307
|
-
return l === "asc" ? je.localeCompare(
|
|
3306
|
+
const je = ((qe = oe.values.find((Nt) => Nt.id.toString() === se)) == null ? void 0 : qe.name) ?? "", ke = ((lt = oe.values.find((Nt) => Nt.id.toString() === G)) == null ? void 0 : lt.name) ?? "";
|
|
3307
|
+
return l === "asc" ? je.localeCompare(ke) : ke.localeCompare(je);
|
|
3308
3308
|
}
|
|
3309
3309
|
if (ie === "NUM") {
|
|
3310
|
-
const je = Number(se),
|
|
3311
|
-
return l === "asc" ? je -
|
|
3310
|
+
const je = Number(se), ke = Number(G);
|
|
3311
|
+
return l === "asc" ? je - ke : ke - je;
|
|
3312
3312
|
}
|
|
3313
3313
|
if (ie === "DT") {
|
|
3314
|
-
const je = et(se == null ? void 0 : se.toString()).getTime(),
|
|
3315
|
-
return l === "asc" ? je -
|
|
3314
|
+
const je = et(se == null ? void 0 : se.toString()).getTime(), ke = et(G == null ? void 0 : G.toString()).getTime();
|
|
3315
|
+
return l === "asc" ? je - ke : ke - je;
|
|
3316
3316
|
}
|
|
3317
3317
|
return l === "asc" ? se.toString().localeCompare(G.toString()) : G.toString().localeCompare(se.toString());
|
|
3318
3318
|
}));
|
|
@@ -3322,36 +3322,36 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3322
3322
|
}, [ne]), O(() => {
|
|
3323
3323
|
me();
|
|
3324
3324
|
}, [me]), O(() => {
|
|
3325
|
-
an();
|
|
3326
|
-
}, [an]), O(() => {
|
|
3327
3325
|
ln();
|
|
3328
3326
|
}, [ln]), O(() => {
|
|
3329
|
-
|
|
3330
|
-
}, [
|
|
3331
|
-
|
|
3332
|
-
}, [
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3327
|
+
cn();
|
|
3328
|
+
}, [cn]), O(() => {
|
|
3329
|
+
I && I.length > Z ? (le(!0), e || s(1)) : (le(!1), I && s(null));
|
|
3330
|
+
}, [I, s, e, Z]), O(() => {
|
|
3331
|
+
!pe || !e || (e > ee && s(ee), e < 1 && s(1));
|
|
3332
|
+
}, [e, pe, ee, s]), /* @__PURE__ */ n.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
|
|
3333
|
+
/* @__PURE__ */ n.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-center", children: [
|
|
3334
|
+
/* @__PURE__ */ n.jsx(V, { variant: "h3", children: (f == null ? void 0 : f.name) ?? "" }),
|
|
3335
|
+
/* @__PURE__ */ n.jsx(Tr, { label: x.showArchived, value: v === !0, onChange: (P) => D(P) })
|
|
3336
3336
|
] }),
|
|
3337
|
-
(f == null ? void 0 : f.description) && /* @__PURE__ */
|
|
3338
|
-
(f == null ? void 0 : f.masterReference) && /* @__PURE__ */
|
|
3339
|
-
(f == null ? void 0 : f.slaves) && f.slaves.length > 0 && /* @__PURE__ */
|
|
3337
|
+
(f == null ? void 0 : f.description) && /* @__PURE__ */ n.jsx(V, { variant: "body2", className: "mb-3", children: f == null ? void 0 : f.description }),
|
|
3338
|
+
(f == null ? void 0 : f.masterReference) && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ n.jsx(Fi, { label: ((un = (dn = f.columns) == null ? void 0 : dn.find((P) => P.field === f.masterReferenceColumn)) == null ? void 0 : un.caption) ?? "", options: ((mn = (fn = f.columns) == null ? void 0 : fn.find((P) => P.field === f.masterReferenceColumn)) == null ? void 0 : mn.values) ?? [], master: W, onChange: (P) => A(P) }) }),
|
|
3339
|
+
(f == null ? void 0 : f.slaves) && f.slaves.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex align-items-center flex-start", children: f.slaves.map((P) => {
|
|
3340
3340
|
var K;
|
|
3341
|
-
return /* @__PURE__ */
|
|
3341
|
+
return /* @__PURE__ */ n.jsx(jt, { as: "link", href: `${Rt(c, { id: (K = P.id) == null ? void 0 : K.toString() })}?type=dynamic-form`, children: P.name }, P.id);
|
|
3342
3342
|
}) }),
|
|
3343
|
-
f != null && f.masterReference && !W ? /* @__PURE__ */
|
|
3344
|
-
f && H.length > 0 && /* @__PURE__ */
|
|
3345
|
-
f && /* @__PURE__ */
|
|
3346
|
-
/* @__PURE__ */
|
|
3347
|
-
pe && e && /* @__PURE__ */
|
|
3348
|
-
/* @__PURE__ */
|
|
3349
|
-
/* @__PURE__ */
|
|
3350
|
-
/* @__PURE__ */
|
|
3351
|
-
/* @__PURE__ */
|
|
3352
|
-
/* @__PURE__ */
|
|
3343
|
+
f != null && f.masterReference && !W ? /* @__PURE__ */ n.jsx(Er, { variant: "warning", children: x.selectMaster(((hn = (pn = f.columns) == null ? void 0 : pn.find((P) => P.field === f.masterReferenceColumn)) == null ? void 0 : hn.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3344
|
+
f && H.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-2", children: /* @__PURE__ */ n.jsx(mi, { errors: H, schema: f }) }),
|
|
3345
|
+
f && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3346
|
+
/* @__PURE__ */ n.jsx("div", { className: j("rounded border overflow-auto", Yn.tableContainer), children: /* @__PURE__ */ n.jsx(Di, { schema: f, items: (pe ? xe : I) ?? [], onEditItem: Rr, onDeleteItem: Ar, onCreateItem: Br, filters: r, setFilter: o, sortByField: a, sortByType: l, setSortBy: i }) }),
|
|
3347
|
+
pe && e && /* @__PURE__ */ n.jsxs("div", { className: j(Yn.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
|
|
3348
|
+
/* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
3349
|
+
/* @__PURE__ */ n.jsx(U, { color: "primary", onClick: () => at(1), disabled: !te, children: /* @__PURE__ */ n.jsx(w, { icon: "chevron-double-left" }) }),
|
|
3350
|
+
/* @__PURE__ */ n.jsx(U, { color: "primary", onClick: () => at(e - 1), disabled: !te, children: /* @__PURE__ */ n.jsx(w, { icon: "chevron-left" }) }),
|
|
3351
|
+
/* @__PURE__ */ n.jsx(U, { color: "primary", onClick: () => at(e + 1), disabled: !T, children: /* @__PURE__ */ n.jsx(w, { icon: "chevron-right" }) }),
|
|
3352
|
+
/* @__PURE__ */ n.jsx(U, { color: "primary", onClick: () => at(ee), disabled: !T, children: /* @__PURE__ */ n.jsx(w, { icon: "chevron-double-right" }) })
|
|
3353
3353
|
] }),
|
|
3354
|
-
/* @__PURE__ */
|
|
3354
|
+
/* @__PURE__ */ n.jsxs(V, { variant: "body", children: [
|
|
3355
3355
|
x.tablePage,
|
|
3356
3356
|
" ",
|
|
3357
3357
|
e,
|
|
@@ -3364,56 +3364,56 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3364
3364
|
] })
|
|
3365
3365
|
] })
|
|
3366
3366
|
] });
|
|
3367
|
-
}, Kn = {
|
|
3368
|
-
appDetail: "/settings/:id"
|
|
3369
3367
|
}, qn = {
|
|
3368
|
+
appDetail: "/settings/:id"
|
|
3369
|
+
}, Qn = {
|
|
3370
3370
|
apiDynamicFormsGet: "/dynamicForms"
|
|
3371
|
-
}, Oi = ({ item: t, children: e }) => t.description ? /* @__PURE__ */
|
|
3372
|
-
const i = st(), { startLoading: c, stopLoading: d } = B(ms), [u, m] =
|
|
3371
|
+
}, Oi = ({ item: t, children: e }) => t.description ? /* @__PURE__ */ n.jsx(qt, { placement: "left", text: t.description ?? "", children: /* @__PURE__ */ n.jsx("div", { children: e }) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: e }), vd = ({ activeId: t, otherForms: e = [], groupsDefs: s = [], searchQuery: r, fullSize: o, appUrls: { appDetail: a = qn.appDetail } = qn, apiUrls: { apiDynamicFormsGet: l = Qn.apiDynamicFormsGet } = Qn }) => {
|
|
3372
|
+
const i = st(), { startLoading: c, stopLoading: d } = B(ms), [u, m] = S(null), h = q(() => [
|
|
3373
3373
|
...(u == null ? void 0 : u.map((w) => ({
|
|
3374
3374
|
...w,
|
|
3375
3375
|
type: "dynamic-form"
|
|
3376
3376
|
}))) ?? [],
|
|
3377
3377
|
...e
|
|
3378
|
-
].filter((w) =>
|
|
3378
|
+
].filter((w) => At(w.name, r) || At(w.description, r)).sort((w, p) => (w.name ?? "").localeCompare(p.name ?? "")) ?? [], [u, e, r]), g = q(() => s.map((w) => ({
|
|
3379
3379
|
id: w.id,
|
|
3380
3380
|
name: w.name ?? "",
|
|
3381
3381
|
items: h.filter((p) => p.group === w.id)
|
|
3382
|
-
})).filter((w) => w.items.length > 0), [
|
|
3382
|
+
})).filter((w) => w.items.length > 0), [s, h]), x = $(async () => {
|
|
3383
3383
|
c("dynamicForms"), await i.get(l).then(({ data: w }) => {
|
|
3384
3384
|
m(w), d("dynamicForms");
|
|
3385
3385
|
}).catch(() => d("dynamicForms"));
|
|
3386
3386
|
}, [i, c, d, l]);
|
|
3387
3387
|
return O(() => {
|
|
3388
3388
|
!u && x();
|
|
3389
|
-
}, [x, u]), h.length > 0 ? /* @__PURE__ */
|
|
3390
|
-
var y, N, f,
|
|
3391
|
-
return o ? /* @__PURE__ */
|
|
3392
|
-
/* @__PURE__ */
|
|
3393
|
-
p.description && /* @__PURE__ */
|
|
3394
|
-
] }, p.id) : /* @__PURE__ */
|
|
3389
|
+
}, [x, u]), h.length > 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((w) => /* @__PURE__ */ n.jsx(Cl, { title: w.name, defaultOpen: !0, children: w.items.map((p) => {
|
|
3390
|
+
var y, N, f, C;
|
|
3391
|
+
return o ? /* @__PURE__ */ n.jsxs(_e, { to: `${Rt(a, { id: (y = p.id) == null ? void 0 : y.toString() })}?type=${p.type}`, className: `text-nowrap list-group-item list-group-item-action ${(t == null ? void 0 : t.toString()) === ((N = p.id) == null ? void 0 : N.toString()) ? "active" : ""}`, children: [
|
|
3392
|
+
/* @__PURE__ */ n.jsx(V, { variant: "body", children: p.name }),
|
|
3393
|
+
p.description && /* @__PURE__ */ n.jsx(V, { variant: "body2", className: "text-muted mt-2", children: p.description })
|
|
3394
|
+
] }, p.id) : /* @__PURE__ */ n.jsx(Oi, { item: p, children: /* @__PURE__ */ n.jsx(_e, { to: `${Rt(a, { id: (f = p.id) == null ? void 0 : f.toString() })}?type=${p.type}`, className: `text-nowrap list-group-item list-group-item-action ${(t == null ? void 0 : t.toString()) === ((C = p.id) == null ? void 0 : C.toString()) ? "active" : ""}`, children: /* @__PURE__ */ n.jsx(V, { variant: "body2", children: p.name }) }) }, p.id);
|
|
3395
3395
|
}) }, w.id)) }) }) : null;
|
|
3396
|
-
},
|
|
3397
|
-
/* @__PURE__ */
|
|
3398
|
-
e ? /* @__PURE__ */
|
|
3399
|
-
] }),
|
|
3400
|
-
const { localizationContext: t } = B(ue), { language: e, setLanguage:
|
|
3401
|
-
|
|
3396
|
+
}, _d = ({ label: t, to: e, value: s }) => /* @__PURE__ */ n.jsxs(Ne, { label: t, children: [
|
|
3397
|
+
/* @__PURE__ */ n.jsx("input", { disabled: !0, className: "form-control d-none" }),
|
|
3398
|
+
e ? /* @__PURE__ */ n.jsx(_e, { to: e, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: s }) : /* @__PURE__ */ n.jsx("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: s })
|
|
3399
|
+
] }), Nd = () => {
|
|
3400
|
+
const { localizationContext: t } = B(ue), { language: e, setLanguage: s } = B(t), r = (o) => {
|
|
3401
|
+
s(o);
|
|
3402
3402
|
};
|
|
3403
|
-
return /* @__PURE__ */
|
|
3403
|
+
return /* @__PURE__ */ n.jsx(an, { onClick: (o) => {
|
|
3404
3404
|
r(e === "cz" ? "en" : "cz"), o.stopPropagation();
|
|
3405
|
-
}, children: e === "cz" ? /* @__PURE__ */
|
|
3406
|
-
/* @__PURE__ */
|
|
3407
|
-
/* @__PURE__ */
|
|
3408
|
-
/* @__PURE__ */
|
|
3409
|
-
] }) : /* @__PURE__ */
|
|
3410
|
-
/* @__PURE__ */
|
|
3411
|
-
/* @__PURE__ */
|
|
3412
|
-
/* @__PURE__ */
|
|
3405
|
+
}, children: e === "cz" ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3406
|
+
/* @__PURE__ */ n.jsx("strong", { children: "CZ" }),
|
|
3407
|
+
/* @__PURE__ */ n.jsx(xn, {}),
|
|
3408
|
+
/* @__PURE__ */ n.jsx("span", { children: "EN" })
|
|
3409
|
+
] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3410
|
+
/* @__PURE__ */ n.jsx("strong", { children: "EN" }),
|
|
3411
|
+
/* @__PURE__ */ n.jsx(xn, {}),
|
|
3412
|
+
/* @__PURE__ */ n.jsx("span", { children: "CZ" })
|
|
3413
3413
|
] }) });
|
|
3414
|
-
},
|
|
3414
|
+
}, Cd = ({ controlId: t, ...e }) => /* @__PURE__ */ n.jsx(ae.Group, { controlId: t, ...e }), kd = ({ employeeId: t, alt: e, noPhotoImage: s, cafmApiUrl: r, showLargeInLightBox: o = !1 }) => {
|
|
3415
3415
|
const { user: a } = B(ds), { photoPath: l, photoPathSm: i } = Uo(t);
|
|
3416
|
-
return /* @__PURE__ */
|
|
3416
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsx(Wc, { baseUrl: r, customToken: a.cafmToken ?? void 0, photos: [
|
|
3417
3417
|
{
|
|
3418
3418
|
id: t.toString(),
|
|
3419
3419
|
alt: e ?? "",
|
|
@@ -3421,130 +3421,130 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3421
3421
|
smSrc: i,
|
|
3422
3422
|
lgSrc: l
|
|
3423
3423
|
}
|
|
3424
|
-
], placeholder:
|
|
3425
|
-
},
|
|
3424
|
+
], placeholder: s, ImgComponent: zn }) : /* @__PURE__ */ n.jsx(zn, { baseUrl: r, customToken: a.cafmToken ?? void 0, src: i, alt: e, placeholder: s, className: "rounded w-100" }) }) });
|
|
3425
|
+
}, $d = ({ text: t, setText: e, onSearchButtonClick: s, className: r }) => {
|
|
3426
3426
|
const o = (a) => {
|
|
3427
3427
|
e(a);
|
|
3428
3428
|
};
|
|
3429
|
-
return /* @__PURE__ */
|
|
3430
|
-
/* @__PURE__ */
|
|
3431
|
-
t && /* @__PURE__ */
|
|
3432
|
-
/* @__PURE__ */
|
|
3429
|
+
return /* @__PURE__ */ n.jsxs(ft, { className: `${r}`, children: [
|
|
3430
|
+
/* @__PURE__ */ n.jsx(ae.Control, { value: t, onChange: (a) => e(a.target.value) }),
|
|
3431
|
+
t && /* @__PURE__ */ n.jsx(tt, { onClick: () => o(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ n.jsx(ye, {}) }),
|
|
3432
|
+
/* @__PURE__ */ n.jsx(tt, { onClick: () => s && s(t), variant: "link", className: "border", children: /* @__PURE__ */ n.jsx(ko, {}) })
|
|
3433
3433
|
] });
|
|
3434
|
-
},
|
|
3435
|
-
const { register: u, formState: m, setValue: h } =
|
|
3434
|
+
}, Id = ({ InputContainer: t = Ne, formField: e, label: s, resetsFields: r, type: o, required: a, hidden: l, disabled: i, withoutLabel: c, className: d }) => {
|
|
3435
|
+
const { register: u, formState: m, setValue: h } = Ce(), [g, x] = S(void 0), [w, p] = S(!1);
|
|
3436
3436
|
O(() => {
|
|
3437
3437
|
const N = e.split(".");
|
|
3438
3438
|
let f = m.errors;
|
|
3439
|
-
N.forEach((
|
|
3440
|
-
f !== void 0 && (f = f[
|
|
3439
|
+
N.forEach((C) => {
|
|
3440
|
+
f !== void 0 && (f = f[C]);
|
|
3441
3441
|
}), x(f);
|
|
3442
3442
|
}, [m, e]), O(() => {
|
|
3443
3443
|
m.isSubmitted && p(!0);
|
|
3444
3444
|
}, [m]);
|
|
3445
3445
|
const y = g !== void 0;
|
|
3446
|
-
return /* @__PURE__ */
|
|
3447
|
-
/* @__PURE__ */
|
|
3446
|
+
return /* @__PURE__ */ n.jsxs(t, { isForCheckInput: !0, hidden: l, label: `${s}${a ? " *" : ""}`, isInvalid: y, withoutLabel: c, className: d, children: [
|
|
3447
|
+
/* @__PURE__ */ n.jsx(ae.Check, { id: `check-${e}`, type: o ?? "checkbox", label: `${s}${a ? " *" : ""}`, ...u(e, {
|
|
3448
3448
|
onChange: () => {
|
|
3449
3449
|
r && r.forEach((N) => h(N, null, { shouldDirty: !0, shouldValidate: w }));
|
|
3450
3450
|
}
|
|
3451
3451
|
}), isInvalid: y, hidden: l, disabled: i, className: "w-100" }),
|
|
3452
|
-
g && /* @__PURE__ */
|
|
3452
|
+
g && /* @__PURE__ */ n.jsx(Fe, { message: g.message })
|
|
3453
3453
|
] });
|
|
3454
|
-
},
|
|
3455
|
-
const { register: d, formState: u, setValue: m, watch: h } =
|
|
3454
|
+
}, Sd = ({ InputContainer: t = Ne, label: e, formField: s, options: r, resetsFields: o, required: a, disabled: l, hidden: i, className: c }) => {
|
|
3455
|
+
const { register: d, formState: u, setValue: m, watch: h } = Ce(), [g, x] = S(void 0), [w, p] = S(!1), y = q(() => r, [r]);
|
|
3456
3456
|
O(() => {
|
|
3457
|
-
const f =
|
|
3458
|
-
let
|
|
3459
|
-
f.forEach((
|
|
3460
|
-
|
|
3461
|
-
}), x(
|
|
3462
|
-
}, [u,
|
|
3457
|
+
const f = s.split(".");
|
|
3458
|
+
let C = u.errors;
|
|
3459
|
+
f.forEach((b) => {
|
|
3460
|
+
C !== void 0 && (C = C[b]);
|
|
3461
|
+
}), x(C);
|
|
3462
|
+
}, [u, s]), O(() => {
|
|
3463
3463
|
u.isSubmitted && p(!0);
|
|
3464
3464
|
}, [u]);
|
|
3465
3465
|
const N = g !== void 0;
|
|
3466
|
-
return /* @__PURE__ */
|
|
3467
|
-
y.map((f) => /* @__PURE__ */
|
|
3466
|
+
return /* @__PURE__ */ n.jsxs(t, { isForRadioInput: !0, hidden: i, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: N, className: c, children: [
|
|
3467
|
+
y.map((f) => /* @__PURE__ */ n.jsx(ae.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: h(s) === f.id, ...d(s, {
|
|
3468
3468
|
onChange: () => {
|
|
3469
|
-
o && o.forEach((
|
|
3469
|
+
o && o.forEach((C) => m(C, null, { shouldDirty: !0, shouldValidate: w }));
|
|
3470
3470
|
}
|
|
3471
3471
|
}), isInvalid: N, hidden: i, disabled: l, className: "w-100" }, f.id)),
|
|
3472
|
-
g && /* @__PURE__ */
|
|
3472
|
+
g && /* @__PURE__ */ n.jsx(Fe, { message: g.message })
|
|
3473
3473
|
] });
|
|
3474
|
-
},
|
|
3475
|
-
const { register: x, formState: w, setValue: p, watch: y } =
|
|
3476
|
-
const
|
|
3477
|
-
p(e, (
|
|
3478
|
-
}, [l, p, e,
|
|
3479
|
-
const
|
|
3474
|
+
}, Dd = ({ InputContainer: t = Ne, formField: e, label: s, resetsFields: r, size: o, showClearIcon: a, clearValue: l, required: i, hidden: c, disabled: d, rows: u, withoutLabel: m, customFormControlProps: h, className: g }) => {
|
|
3475
|
+
const { register: x, formState: w, setValue: p, watch: y } = Ce(), [N, f] = S(void 0), [C, b] = S(!1), k = $(() => {
|
|
3476
|
+
const I = l ?? null;
|
|
3477
|
+
p(e, (I == null ? void 0 : I.toString()) ?? "", { shouldDirty: !0, shouldValidate: C });
|
|
3478
|
+
}, [l, p, e, C]), _ = $(() => {
|
|
3479
|
+
const I = e.split(".");
|
|
3480
3480
|
let F = w.errors;
|
|
3481
|
-
|
|
3482
|
-
F !== void 0 && (F = F[
|
|
3481
|
+
I.forEach((v) => {
|
|
3482
|
+
F !== void 0 && (F = F[v]);
|
|
3483
3483
|
}), f(F);
|
|
3484
3484
|
}, [w, e]);
|
|
3485
3485
|
O(() => {
|
|
3486
3486
|
_();
|
|
3487
3487
|
}, [_]), O(() => {
|
|
3488
|
-
w.isSubmitted &&
|
|
3488
|
+
w.isSubmitted && b(!0);
|
|
3489
3489
|
}, [w]);
|
|
3490
3490
|
const E = N !== void 0;
|
|
3491
|
-
return /* @__PURE__ */
|
|
3492
|
-
/* @__PURE__ */
|
|
3493
|
-
setValueAs: (
|
|
3491
|
+
return /* @__PURE__ */ n.jsxs(t, { label: `${s}${i ? " *" : ""}`, hidden: c, withoutLabel: m, isInvalid: E, className: g, isForTextAreaInput: !0, children: [
|
|
3492
|
+
/* @__PURE__ */ n.jsx(ae.Control, { as: "textarea", size: o, ...x(e, {
|
|
3493
|
+
setValueAs: (I) => I == null || I === "" ? null : I,
|
|
3494
3494
|
onChange: () => {
|
|
3495
|
-
r && r.forEach((
|
|
3495
|
+
r && r.forEach((I) => p(I, null, { shouldDirty: !0, shouldValidate: C }));
|
|
3496
3496
|
}
|
|
3497
3497
|
}), isInvalid: E, hidden: c, disabled: d, rows: u ?? 2, className: "w-100", ...h }),
|
|
3498
|
-
a && y(e) && /* @__PURE__ */
|
|
3499
|
-
N && /* @__PURE__ */
|
|
3498
|
+
a && y(e) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ n.jsx(ye, {}) }) }),
|
|
3499
|
+
N && /* @__PURE__ */ n.jsx(Fe, { message: N.message })
|
|
3500
3500
|
] });
|
|
3501
|
-
},
|
|
3502
|
-
const { register: N, formState: f, setValue:
|
|
3501
|
+
}, Fd = ({ InputContainer: t = Ne, type: e, formField: s, label: r, placeholder: o, size: a, resetsFields: l, showClearIcon: i, clearValue: c, required: d, hidden: u, disabled: m, withoutLabel: h, list: g, step: x, CustomOnChangeComponent: w, noSelectOnFocus: p, className: y }) => {
|
|
3502
|
+
const { register: N, formState: f, setValue: C, watch: b } = Ce(), [k, _] = S(void 0), [E, I] = S(!1), F = $(() => {
|
|
3503
3503
|
const L = c ?? null;
|
|
3504
|
-
e === "number" ?
|
|
3504
|
+
e === "number" ? C(s, L !== null ? Number(L) : null, {
|
|
3505
3505
|
shouldDirty: !0,
|
|
3506
3506
|
shouldValidate: E
|
|
3507
|
-
}) :
|
|
3508
|
-
}, [c, e,
|
|
3509
|
-
const L =
|
|
3507
|
+
}) : C(s, (L == null ? void 0 : L.toString()) ?? "", { shouldDirty: !0, shouldValidate: E });
|
|
3508
|
+
}, [c, e, C, s, E]), v = $(() => {
|
|
3509
|
+
const L = s.split(".");
|
|
3510
3510
|
let Z = f.errors;
|
|
3511
3511
|
L.forEach((ee) => {
|
|
3512
3512
|
Z !== void 0 && (Z = Z[ee]);
|
|
3513
3513
|
}), _(Z);
|
|
3514
|
-
}, [f,
|
|
3514
|
+
}, [f, s]);
|
|
3515
3515
|
O(() => {
|
|
3516
|
-
|
|
3517
|
-
}, [
|
|
3518
|
-
f.isSubmitted &&
|
|
3516
|
+
v();
|
|
3517
|
+
}, [v]), O(() => {
|
|
3518
|
+
f.isSubmitted && I(!0);
|
|
3519
3519
|
}, [f]);
|
|
3520
|
-
const D =
|
|
3521
|
-
return /* @__PURE__ */
|
|
3522
|
-
/* @__PURE__ */
|
|
3523
|
-
/* @__PURE__ */
|
|
3520
|
+
const D = k !== void 0, [R, H] = S(!1), Q = b(s), X = ys(e, Q ?? null, R);
|
|
3521
|
+
return /* @__PURE__ */ n.jsxs(t, { label: `${r}${d ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: D, className: y, children: [
|
|
3522
|
+
/* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3523
|
+
/* @__PURE__ */ n.jsx(ae.Control, { type: X, placeholder: o ?? r, size: a, onFocus: (L) => {
|
|
3524
3524
|
H(!0), !p && L.target.select();
|
|
3525
|
-
}, ...N(
|
|
3525
|
+
}, ...N(s, {
|
|
3526
3526
|
setValueAs: (L) => e === "number" ? L == null || L === "" ? null : Number(L) : L == null || L === "" ? null : L,
|
|
3527
3527
|
onChange: () => {
|
|
3528
|
-
l && l.forEach((L) =>
|
|
3528
|
+
l && l.forEach((L) => C(L, null, { shouldDirty: !0, shouldValidate: E }));
|
|
3529
3529
|
},
|
|
3530
3530
|
onBlur: () => H(!1)
|
|
3531
3531
|
}), isInvalid: D, hidden: u, disabled: m, list: g, className: "w-100", step: x }),
|
|
3532
|
-
w && /* @__PURE__ */
|
|
3532
|
+
w && /* @__PURE__ */ n.jsx("div", { className: "custom-picker-button", children: w })
|
|
3533
3533
|
] }),
|
|
3534
|
-
i &&
|
|
3535
|
-
|
|
3534
|
+
i && b(s) && /* @__PURE__ */ n.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: F, children: /* @__PURE__ */ n.jsx(ye, {}) }) }),
|
|
3535
|
+
k && /* @__PURE__ */ n.jsx(Fe, { message: k.message })
|
|
3536
3536
|
] });
|
|
3537
|
-
},
|
|
3538
|
-
const { formState:
|
|
3537
|
+
}, Ed = ({ InputContainer: t = Ne, formField: e, label: s, size: r, defaultSelection: o, resetsFields: a, isNumber: l, required: i, hidden: c, disabled: d, items: u, onSearchQueryChange: m, selectedItemNavigateTo: h, texts: g, dropdownItemsNameWidth: x, isLoading: w, withoutLabel: p, additionalColumns: y, CustomOnChangeComponent: N, displayIdAsName: f, onSelect: C, className: b }) => {
|
|
3538
|
+
const { formState: k, setValue: _, watch: E, control: I } = Ce(), [F, v] = S(void 0), [D, R] = S(!1), [H, Q] = S(!1), X = E(e) ?? null, L = X === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : E(`${e}-DropdownName`), Z = q(() => X == null ? null : { id: X ?? null, name: L ?? "" }, [X, L]), ee = $(() => {
|
|
3539
3539
|
const W = e.split(".");
|
|
3540
|
-
let A =
|
|
3540
|
+
let A = k.errors;
|
|
3541
3541
|
W.forEach((ne) => {
|
|
3542
3542
|
A !== void 0 && (A = A[ne]);
|
|
3543
|
-
}),
|
|
3544
|
-
}, [
|
|
3543
|
+
}), v(A);
|
|
3544
|
+
}, [k, e]), te = $((W) => {
|
|
3545
3545
|
if ((W == null ? void 0 : W.id) === X)
|
|
3546
3546
|
return;
|
|
3547
|
-
if (
|
|
3547
|
+
if (C && C(W), a && a.forEach((ne) => _(ne, null, { shouldDirty: !0, shouldValidate: H })), W === null) {
|
|
3548
3548
|
_(e, null, {
|
|
3549
3549
|
shouldDirty: !0,
|
|
3550
3550
|
shouldValidate: H
|
|
@@ -3556,7 +3556,7 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3556
3556
|
shouldDirty: !0,
|
|
3557
3557
|
shouldValidate: H
|
|
3558
3558
|
}), _(`${e}-DropdownName`, W.name ?? "");
|
|
3559
|
-
}, [_, e, H, l, a, X,
|
|
3559
|
+
}, [_, e, H, l, a, X, C]), T = $((W) => {
|
|
3560
3560
|
R(!1), te(W);
|
|
3561
3561
|
}, [te]), re = $(() => {
|
|
3562
3562
|
R(!1);
|
|
@@ -3564,13 +3564,13 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3564
3564
|
O(() => {
|
|
3565
3565
|
ee();
|
|
3566
3566
|
}, [ee]), O(() => {
|
|
3567
|
-
|
|
3568
|
-
}, [
|
|
3567
|
+
k.isSubmitted && Q(!0);
|
|
3568
|
+
}, [k]);
|
|
3569
3569
|
const de = Y(null), pe = F !== void 0, le = h !== void 0, xe = le && Z !== null;
|
|
3570
|
-
return /* @__PURE__ */
|
|
3571
|
-
/* @__PURE__ */
|
|
3572
|
-
f && (Z == null ? void 0 : Z.name) && /* @__PURE__ */
|
|
3573
|
-
/* @__PURE__ */
|
|
3570
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(t, { label: `${s}${i ? " *" : ""}`, hidden: c, withoutLabel: p, isInvalid: pe, inputContainerClassName: j({ "luminus-dropdown-select-open": D }), className: b, children: [
|
|
3571
|
+
/* @__PURE__ */ n.jsxs(Or, { currentSelection: Z, selectedItemNavigateTo: h, children: [
|
|
3572
|
+
f && (Z == null ? void 0 : Z.name) && /* @__PURE__ */ n.jsx(V, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: Z.name }),
|
|
3573
|
+
/* @__PURE__ */ n.jsx(xs, { control: I, name: e, render: () => /* @__PURE__ */ n.jsx(ae.Select, { size: r, onMouseDown: (W) => {
|
|
3574
3574
|
W.currentTarget.focus(), W.preventDefault();
|
|
3575
3575
|
}, onClick: () => {
|
|
3576
3576
|
!le && !d && R(!0);
|
|
@@ -3578,69 +3578,69 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3578
3578
|
}, isInvalid: pe, hidden: c, className: j("w-100", {
|
|
3579
3579
|
"luminus-dropdown-picker-disabled": d,
|
|
3580
3580
|
"luminus-dropdown-picker-link": xe
|
|
3581
|
-
}), children: /* @__PURE__ */
|
|
3582
|
-
N || !d && le ? /* @__PURE__ */
|
|
3583
|
-
!N && !d && le && /* @__PURE__ */
|
|
3581
|
+
}), children: /* @__PURE__ */ n.jsx("option", { value: X, children: f ? X : (L == null ? void 0 : L.length) > 0 ? L : X }) }) }),
|
|
3582
|
+
N || !d && le ? /* @__PURE__ */ n.jsxs("div", { className: "custom-picker-button", children: [
|
|
3583
|
+
!N && !d && le && /* @__PURE__ */ n.jsx(U, { size: "sm", color: "secondary", onClick: (W) => {
|
|
3584
3584
|
W.preventDefault(), W.stopPropagation(), R(!0);
|
|
3585
|
-
}, children: /* @__PURE__ */
|
|
3585
|
+
}, children: /* @__PURE__ */ n.jsx(fs, {}) }),
|
|
3586
3586
|
N ?? null
|
|
3587
3587
|
] }) : null
|
|
3588
3588
|
] }),
|
|
3589
|
-
F && /* @__PURE__ */
|
|
3590
|
-
de.current && /* @__PURE__ */
|
|
3589
|
+
F && /* @__PURE__ */ n.jsx(Fe, { message: F.message }),
|
|
3590
|
+
de.current && /* @__PURE__ */ n.jsx(on, { show: D, onCancel: re, items: u, currentSelection: Z, onSelectionChange: T, onSearchQueryChange: m, texts: g, itemsNameWidth: x, additionalColumns: y, displayIdAsName: f, isLoading: w, disabled: d, inputRef: de })
|
|
3591
3591
|
] }) });
|
|
3592
|
-
},
|
|
3593
|
-
const { watch: g, setValue: x, register: w, formState: p } =
|
|
3594
|
-
x(
|
|
3595
|
-
}, [x,
|
|
3596
|
-
const E =
|
|
3597
|
-
let
|
|
3592
|
+
}, Od = ({ InputContainer: t = Ne, label: e, formField: s, hidden: r, required: o, placeholder: a, disabled: l, showClearIcon: i, resetsFields: c, multiple: d, accept: u, withoutLabel: m, className: h }) => {
|
|
3593
|
+
const { watch: g, setValue: x, register: w, formState: p } = Ce(), [y, N] = S(!1), [f, C] = S(void 0), b = $(() => {
|
|
3594
|
+
x(s, "");
|
|
3595
|
+
}, [x, s]), k = $(() => {
|
|
3596
|
+
const E = s.split(".");
|
|
3597
|
+
let I = p.errors;
|
|
3598
3598
|
E.forEach((F) => {
|
|
3599
|
-
|
|
3600
|
-
}),
|
|
3601
|
-
}, [p,
|
|
3602
|
-
O(
|
|
3599
|
+
I !== void 0 && (I = I[F]);
|
|
3600
|
+
}), C(I);
|
|
3601
|
+
}, [p, s]);
|
|
3602
|
+
O(k, [k]), O(() => {
|
|
3603
3603
|
p.isSubmitted && N(!0);
|
|
3604
3604
|
}, [p]);
|
|
3605
3605
|
const _ = f !== void 0;
|
|
3606
|
-
return /* @__PURE__ */
|
|
3607
|
-
/* @__PURE__ */
|
|
3606
|
+
return /* @__PURE__ */ n.jsxs(t, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: m, isInvalid: _, className: h, children: [
|
|
3607
|
+
/* @__PURE__ */ n.jsx(gs, { type: "file", multiple: d, accept: u.join(", "), placeholder: a ?? e, isInvalid: _, hidden: r, disabled: l, className: "w-100", ...w(s, {
|
|
3608
3608
|
onChange: () => {
|
|
3609
3609
|
c && c.forEach((E) => x(E, null, { shouldDirty: !0, shouldValidate: y }));
|
|
3610
3610
|
}
|
|
3611
3611
|
}) }),
|
|
3612
|
-
i && g(
|
|
3613
|
-
f && /* @__PURE__ */
|
|
3612
|
+
i && g(s) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ n.jsx(ye, {}) }) }),
|
|
3613
|
+
f && /* @__PURE__ */ n.jsx(Fe, { message: f.message })
|
|
3614
3614
|
] });
|
|
3615
|
-
},
|
|
3616
|
-
const { formState: r } =
|
|
3615
|
+
}, Td = ({ children: t, onStorno: e, noSpacer: s }) => {
|
|
3616
|
+
const { formState: r } = Ce(), [o, a] = S(!1);
|
|
3617
3617
|
return O(() => {
|
|
3618
3618
|
a(Object.keys(r.dirtyFields).length > 0);
|
|
3619
|
-
}, [r]), o ? /* @__PURE__ */
|
|
3620
|
-
},
|
|
3621
|
-
const { texts: { customSelect: x } } = B(ue), { formState: w, setValue: p, watch: y, control: N } =
|
|
3622
|
-
const T =
|
|
3619
|
+
}, [r]), o ? /* @__PURE__ */ n.jsx(Va, { onStorno: e, noSpacer: s, children: t }) : null;
|
|
3620
|
+
}, Md = ({ InputContainer: t = Ne, options: e, formField: s, label: r, size: o, resetsFields: a, isNumber: l, required: i, hidden: c, disabled: d, withoutLabel: u, noSortOptions: m, suffixIdToName: h, className: g }) => {
|
|
3621
|
+
const { texts: { customSelect: x } } = B(ue), { formState: w, setValue: p, watch: y, control: N } = Ce(), [f, C] = S(void 0), [b, k] = S(!1), [_, E] = S(!1), [I, F] = S(""), v = y(s), D = q(() => e.find((T) => T.id === v) ?? null, [e, v]), R = $(() => {
|
|
3622
|
+
const T = s.split(".");
|
|
3623
3623
|
let re = w.errors;
|
|
3624
3624
|
T.forEach((de) => {
|
|
3625
3625
|
re !== void 0 && (re = re[de]);
|
|
3626
|
-
}),
|
|
3627
|
-
}, [w,
|
|
3628
|
-
if ((T == null ? void 0 : T.id) ===
|
|
3626
|
+
}), C(re);
|
|
3627
|
+
}, [w, s]), H = $((T) => {
|
|
3628
|
+
if ((T == null ? void 0 : T.id) === v)
|
|
3629
3629
|
return;
|
|
3630
3630
|
if (a && a.forEach((de) => p(de, null, { shouldDirty: !0, shouldValidate: _ })), T === null) {
|
|
3631
|
-
p(
|
|
3631
|
+
p(s, null, {
|
|
3632
3632
|
shouldDirty: !0,
|
|
3633
3633
|
shouldValidate: _
|
|
3634
3634
|
});
|
|
3635
3635
|
return;
|
|
3636
3636
|
}
|
|
3637
3637
|
let re = null;
|
|
3638
|
-
l ? re = (T == null ? void 0 : T.id) !== null && (T == null ? void 0 : T.id) !== "" ? parseInt(T.id.toString(), 10) : null : re = T.id === null || T.id === void 0 || T.id === "" ? null : T.id, p(
|
|
3638
|
+
l ? re = (T == null ? void 0 : T.id) !== null && (T == null ? void 0 : T.id) !== "" ? parseInt(T.id.toString(), 10) : null : re = T.id === null || T.id === void 0 || T.id === "" ? null : T.id, p(s, re, {
|
|
3639
3639
|
shouldDirty: !0,
|
|
3640
3640
|
shouldValidate: _
|
|
3641
3641
|
});
|
|
3642
|
-
}, [p,
|
|
3643
|
-
|
|
3642
|
+
}, [p, s, l, a, v, _]), Q = $((T) => {
|
|
3643
|
+
k(!1), H(T);
|
|
3644
3644
|
}, [H]), X = $((T) => {
|
|
3645
3645
|
F(T);
|
|
3646
3646
|
}, []);
|
|
@@ -3655,229 +3655,238 @@ const Ic = "_lightbox_14acg_1", Dc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3655
3655
|
}, [h]), Z = q(() => e.map((T) => ({
|
|
3656
3656
|
id: T.id,
|
|
3657
3657
|
name: L(T)
|
|
3658
|
-
})).filter((T) =>
|
|
3659
|
-
return /* @__PURE__ */
|
|
3660
|
-
/* @__PURE__ */
|
|
3658
|
+
})).filter((T) => At(T.name, I)).sort((T, re) => m ? 0 : (T.name ?? "").localeCompare(re.name ?? "")), [e, m, I, L]), ee = Y(null), te = f !== void 0;
|
|
3659
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(t, { label: `${r}${i ? " *" : ""}`, hidden: c, withoutLabel: u, isInvalid: te, inputContainerClassName: j({ "luminus-dropdown-select-open": b }), className: g, children: [
|
|
3660
|
+
/* @__PURE__ */ n.jsx(xs, { control: N, name: s, render: () => /* @__PURE__ */ n.jsx(ae.Select, { size: o, onMouseDown: (T) => {
|
|
3661
3661
|
T.currentTarget.focus(), T.preventDefault();
|
|
3662
3662
|
}, onClick: () => {
|
|
3663
|
-
|
|
3664
|
-
}, ref: ee, value:
|
|
3665
|
-
}, isInvalid: te, hidden: c, disabled: d, className: "w-100", children: /* @__PURE__ */
|
|
3666
|
-
f && /* @__PURE__ */
|
|
3667
|
-
ee.current && /* @__PURE__ */
|
|
3663
|
+
k(!0);
|
|
3664
|
+
}, ref: ee, value: v ?? "", onChange: () => {
|
|
3665
|
+
}, isInvalid: te, hidden: c, disabled: d, className: "w-100", children: /* @__PURE__ */ n.jsx("option", { value: (D == null ? void 0 : D.id) ?? "", children: L(D) }) }) }),
|
|
3666
|
+
f && /* @__PURE__ */ n.jsx(Fe, { message: f.message }),
|
|
3667
|
+
ee.current && /* @__PURE__ */ n.jsx(on, { show: b, onCancel: () => k(!1), items: Z, currentSelection: D ?? null, onSelectionChange: Q, onSearchQueryChange: X, texts: x, disabled: d, inputRef: ee, autoHideSearch: !0, allItemsLength: e.length })
|
|
3668
3668
|
] }) });
|
|
3669
|
-
},
|
|
3670
|
-
const { register: w, formState: p, setValue: y, watch: N } =
|
|
3671
|
-
const
|
|
3672
|
-
y(e,
|
|
3669
|
+
}, Ld = ({ InputContainer: t = Ne, formField: e, label: s, placeholder: r, size: o, resetsFields: a, showClearIcon: l, clearValue: i, required: c, hidden: d, disabled: u, withoutLabel: m, step: h, stepperStep: g = 1, className: x }) => {
|
|
3670
|
+
const { register: w, formState: p, setValue: y, watch: N } = Ce(), [f, C] = S(void 0), [b, k] = S(!1), _ = $(() => {
|
|
3671
|
+
const v = i ?? null;
|
|
3672
|
+
y(e, v !== null ? Number(v) : null, {
|
|
3673
3673
|
shouldDirty: !0,
|
|
3674
|
-
shouldValidate:
|
|
3674
|
+
shouldValidate: b
|
|
3675
3675
|
});
|
|
3676
|
-
}, [i, y, e,
|
|
3677
|
-
const
|
|
3676
|
+
}, [i, y, e, b]), E = $(() => {
|
|
3677
|
+
const v = e.split(".");
|
|
3678
3678
|
let D = p.errors;
|
|
3679
|
-
|
|
3679
|
+
v.forEach((R) => {
|
|
3680
3680
|
D !== void 0 && (D = D[R]);
|
|
3681
|
-
}),
|
|
3681
|
+
}), C(D);
|
|
3682
3682
|
}, [p, e]);
|
|
3683
3683
|
O(() => {
|
|
3684
3684
|
E();
|
|
3685
3685
|
}, [E]), O(() => {
|
|
3686
|
-
p.isSubmitted &&
|
|
3686
|
+
p.isSubmitted && k(!0);
|
|
3687
3687
|
}, [p]);
|
|
3688
|
-
const
|
|
3689
|
-
return /* @__PURE__ */
|
|
3690
|
-
/* @__PURE__ */
|
|
3691
|
-
/* @__PURE__ */
|
|
3692
|
-
setValueAs: (
|
|
3688
|
+
const I = f !== void 0, F = N(e);
|
|
3689
|
+
return /* @__PURE__ */ n.jsxs(t, { label: `${s}${c ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: I, className: x, children: [
|
|
3690
|
+
/* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3691
|
+
/* @__PURE__ */ n.jsx(ae.Control, { type: "number", placeholder: r ?? s, size: o, ...w(e, {
|
|
3692
|
+
setValueAs: (v) => v == null || v === "" ? null : Number(v),
|
|
3693
3693
|
onChange: () => {
|
|
3694
|
-
a && a.forEach((
|
|
3694
|
+
a && a.forEach((v) => y(v, null, { shouldDirty: !0, shouldValidate: b }));
|
|
3695
3695
|
}
|
|
3696
|
-
}), isInvalid:
|
|
3697
|
-
/* @__PURE__ */
|
|
3698
|
-
|
|
3699
|
-
}, children: /* @__PURE__ */
|
|
3700
|
-
/* @__PURE__ */
|
|
3701
|
-
|
|
3702
|
-
}, children: /* @__PURE__ */
|
|
3696
|
+
}), isInvalid: I, hidden: d, disabled: u, className: "w-100 luminus-numeric-stepper", step: h }),
|
|
3697
|
+
/* @__PURE__ */ n.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ n.jsx(U, { size: "sm", onClick: (v) => {
|
|
3698
|
+
v.preventDefault(), v.stopPropagation(), y(e, ((F ? Number(F) : 0) - g).toString(), { shouldDirty: !0, shouldValidate: b });
|
|
3699
|
+
}, children: /* @__PURE__ */ n.jsx(_r, {}) }) }),
|
|
3700
|
+
/* @__PURE__ */ n.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ n.jsx(U, { size: "sm", onClick: (v) => {
|
|
3701
|
+
v.preventDefault(), v.stopPropagation(), y(e, ((F ? Number(F) : 0) + g).toString(), { shouldDirty: !0, shouldValidate: b });
|
|
3702
|
+
}, children: /* @__PURE__ */ n.jsx(Nr, {}) }) })
|
|
3703
3703
|
] }),
|
|
3704
|
-
l && N(e) && /* @__PURE__ */
|
|
3705
|
-
f && /* @__PURE__ */
|
|
3704
|
+
l && N(e) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(U, { color: "secondary", size: "sm", onClick: _, children: /* @__PURE__ */ n.jsx(ye, {}) }) }),
|
|
3705
|
+
f && /* @__PURE__ */ n.jsx(Fe, { message: f.message })
|
|
3706
3706
|
] });
|
|
3707
|
-
},
|
|
3707
|
+
}, Rd = ({ cell: { value: t } }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsx(us, { name: t, size: 21, fontSize: 12 }) : /* @__PURE__ */ n.jsx(n.Fragment, {}) }), Ti = ({ knownTypes: t, typeFilters: e, onChangeTypeFilters: s }) => /* @__PURE__ */ n.jsx("div", { className: "mb-1 d-flex justify-content-center gap-2", children: t.map((r) => /* @__PURE__ */ n.jsx("div", { role: "button", style: {
|
|
3708
3708
|
height: "14px",
|
|
3709
3709
|
width: "14px",
|
|
3710
3710
|
borderRadius: "50%",
|
|
3711
3711
|
border: "2px solid transparent",
|
|
3712
3712
|
backgroundColor: "transparent"
|
|
3713
3713
|
}, className: j(`border-${r}`, e.includes(r) && `bg-${r}`), onClick: () => {
|
|
3714
|
-
e.includes(r) ?
|
|
3715
|
-
} }, r)) }), Mi = ({ linksTo: t, onClick: e, children:
|
|
3714
|
+
e.includes(r) ? s(e.filter((o) => o !== r)) : s([...e, r]);
|
|
3715
|
+
} }, r)) }), Mi = ({ linksTo: t, onClick: e, children: s }) => t ? /* @__PURE__ */ n.jsx(_e, { to: t, className: "text-decoration-none", onClick: e, children: s }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: s }), Li = ({ message: t, onDeleteMessage: e, onClickMessage: s, getIcon: r, getLinksTo: o }) => {
|
|
3716
3716
|
const { ProjectIconComponent: a, localizationContext: l } = B(ue), { dateFnsLocale: i } = B(l), c = t.dateTime ? et(t.dateTime) : null, d = c ? Qo(new Date(Date.now()), c) : 0;
|
|
3717
|
-
return /* @__PURE__ */
|
|
3718
|
-
c && /* @__PURE__ */
|
|
3717
|
+
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
3718
|
+
c && /* @__PURE__ */ n.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ n.jsx(qt, { text: Xe(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(V, { variant: "caption", children: d > 2 ? Xe(c, "dd.MM.yyyy") : Jo(c, new Date(Date.now()), {
|
|
3719
3719
|
locale: i.code
|
|
3720
3720
|
}) }) }) }) }),
|
|
3721
|
-
/* @__PURE__ */
|
|
3721
|
+
/* @__PURE__ */ n.jsx(Mi, { linksTo: o(t) ?? void 0, onClick: s, children: /* @__PURE__ */ n.jsx(qc, { level: t.type, noIcon: !0, children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
|
|
3722
3722
|
r(t),
|
|
3723
|
-
/* @__PURE__ */
|
|
3724
|
-
/* @__PURE__ */
|
|
3725
|
-
/* @__PURE__ */
|
|
3726
|
-
/* @__PURE__ */
|
|
3723
|
+
/* @__PURE__ */ n.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
|
|
3724
|
+
/* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
|
|
3725
|
+
/* @__PURE__ */ n.jsx(V, { variant: "body2", className: "fw-bold", children: t.subject }),
|
|
3726
|
+
/* @__PURE__ */ n.jsx(U, { size: "sm", onClick: (u) => {
|
|
3727
3727
|
u.preventDefault(), u.stopPropagation(), e(t.id);
|
|
3728
|
-
}, children: /* @__PURE__ */
|
|
3728
|
+
}, children: /* @__PURE__ */ n.jsx(a, { icon: "delete" }) })
|
|
3729
3729
|
] }),
|
|
3730
|
-
/* @__PURE__ */
|
|
3730
|
+
/* @__PURE__ */ n.jsx(V, { variant: "body2", children: t.text })
|
|
3731
3731
|
] })
|
|
3732
3732
|
] }) }) })
|
|
3733
3733
|
] });
|
|
3734
|
-
},
|
|
3735
|
-
const { texts: { messageBoard: l } } = B(ue), [i, c] =
|
|
3736
|
-
return /* @__PURE__ */
|
|
3737
|
-
/* @__PURE__ */
|
|
3738
|
-
e && /* @__PURE__ */
|
|
3739
|
-
/* @__PURE__ */
|
|
3740
|
-
/* @__PURE__ */
|
|
3741
|
-
/* @__PURE__ */
|
|
3734
|
+
}, Zn = ["info", "warning", "danger"], Jn = ({ messages: t, isLoading: e, onDeleteMessage: s, onClickMessage: r, getIcon: o, getLinksTo: a }) => {
|
|
3735
|
+
const { texts: { messageBoard: l } } = B(ue), [i, c] = S(Zn), d = q(() => t.filter((u) => i.includes(u.type ?? "")), [i, t]);
|
|
3736
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
|
|
3737
|
+
/* @__PURE__ */ n.jsx(Ti, { knownTypes: Zn, typeFilters: i, onChangeTypeFilters: (u) => c(u) }),
|
|
3738
|
+
e && /* @__PURE__ */ n.jsxs("div", { className: "p-3 w-100", children: [
|
|
3739
|
+
/* @__PURE__ */ n.jsx(Se, { as: Dn.Title, animation: "glow", children: /* @__PURE__ */ n.jsx(Se, { xs: 6 }) }),
|
|
3740
|
+
/* @__PURE__ */ n.jsxs(Se, { as: Dn.Text, animation: "glow", children: [
|
|
3741
|
+
/* @__PURE__ */ n.jsx(Se, { xs: 7 }),
|
|
3742
3742
|
" ",
|
|
3743
|
-
/* @__PURE__ */
|
|
3743
|
+
/* @__PURE__ */ n.jsx(Se, { xs: 4 }),
|
|
3744
3744
|
" ",
|
|
3745
|
-
/* @__PURE__ */
|
|
3745
|
+
/* @__PURE__ */ n.jsx(Se, { xs: 4 }),
|
|
3746
3746
|
" ",
|
|
3747
|
-
/* @__PURE__ */
|
|
3747
|
+
/* @__PURE__ */ n.jsx(Se, { xs: 6 }),
|
|
3748
3748
|
" ",
|
|
3749
|
-
/* @__PURE__ */
|
|
3749
|
+
/* @__PURE__ */ n.jsx(Se, { xs: 8 })
|
|
3750
3750
|
] })
|
|
3751
3751
|
] }),
|
|
3752
|
-
!e && /* @__PURE__ */
|
|
3753
|
-
t.length === 0 && /* @__PURE__ */
|
|
3754
|
-
/* @__PURE__ */
|
|
3752
|
+
!e && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3753
|
+
t.length === 0 && /* @__PURE__ */ n.jsx(Er, { variant: "info", size: "sm", className: "mt-2", children: l.noMessages }),
|
|
3754
|
+
/* @__PURE__ */ n.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: d.map((u) => /* @__PURE__ */ n.jsx(Li, { message: u, onDeleteMessage: s, onClickMessage: r, getIcon: o, getLinksTo: a }, u.id)) })
|
|
3755
3755
|
] })
|
|
3756
3756
|
] });
|
|
3757
3757
|
}, Ot = {
|
|
3758
3758
|
apiGet: "/messageBoard",
|
|
3759
3759
|
apiDelete: "/messageBoard/"
|
|
3760
|
-
},
|
|
3761
|
-
const i = st(), [c, d] =
|
|
3762
|
-
g(!0), await i.get(
|
|
3763
|
-
d(
|
|
3760
|
+
}, Ad = ({ renderAsNotifPanel: t, notifIcon: e, apiUrls: { apiGet: s = Ot.apiGet, apiDelete: r = Ot.apiDelete } = Ot, getIcon: o, getLinksTo: a }) => {
|
|
3761
|
+
const i = st(), [c, d] = S([]), [u, m] = S(!1), [h, g] = S(!1), [x, w] = S(!1), p = $(async () => {
|
|
3762
|
+
g(!0), await i.get(s).then(({ data: b }) => {
|
|
3763
|
+
d(b), m(!0), g(!1);
|
|
3764
3764
|
}).catch(() => {
|
|
3765
3765
|
d([]), g(!1);
|
|
3766
3766
|
});
|
|
3767
|
-
}, [
|
|
3768
|
-
y(
|
|
3769
|
-
|
|
3767
|
+
}, [s, i]), y = $(async (b) => i.delete(`${r}${b}`).then(() => !0).catch(() => !1), [r, i]), N = $((b) => {
|
|
3768
|
+
y(b).then((k) => {
|
|
3769
|
+
k && d(c.filter((_) => _.id !== b));
|
|
3770
3770
|
});
|
|
3771
3771
|
}, [y, c]);
|
|
3772
3772
|
O(() => {
|
|
3773
3773
|
p();
|
|
3774
|
-
const
|
|
3774
|
+
const b = setInterval(() => p(), 60 * 1e3);
|
|
3775
3775
|
return () => {
|
|
3776
|
-
clearInterval(
|
|
3776
|
+
clearInterval(b);
|
|
3777
3777
|
};
|
|
3778
3778
|
}, [p]);
|
|
3779
|
-
const f = c.filter((
|
|
3780
|
-
return t ? /* @__PURE__ */
|
|
3781
|
-
/* @__PURE__ */
|
|
3782
|
-
/* @__PURE__ */
|
|
3783
|
-
f > 0 && /* @__PURE__ */
|
|
3779
|
+
const f = c.filter((b) => b.type === "danger").length, C = u ? !1 : h;
|
|
3780
|
+
return t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3781
|
+
/* @__PURE__ */ n.jsxs("div", { className: "position-relative", children: [
|
|
3782
|
+
/* @__PURE__ */ n.jsx(U, { size: "md", onClick: () => w(!x), children: e }),
|
|
3783
|
+
f > 0 && /* @__PURE__ */ n.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 })
|
|
3784
3784
|
] }),
|
|
3785
|
-
/* @__PURE__ */
|
|
3786
|
-
] }) : /* @__PURE__ */
|
|
3785
|
+
/* @__PURE__ */ n.jsx(Mn, { show: x, onHide: () => w(!1), placement: "end", children: /* @__PURE__ */ n.jsx(Mn.Body, { children: /* @__PURE__ */ n.jsx(Jn, { messages: c, isLoading: C, onDeleteMessage: N, onClickMessage: () => w(!1), getIcon: o, getLinksTo: a }) }) })
|
|
3786
|
+
] }) : /* @__PURE__ */ n.jsx(Jn, { messages: c, isLoading: C, onDeleteMessage: N, getIcon: o, getLinksTo: a });
|
|
3787
3787
|
}, Ri = "_tab-panel_d8l8q_1", Ai = "_full-height-no-overflow_d8l8q_5", Bi = "_disabled_d8l8q_12", Tt = {
|
|
3788
3788
|
"tab-panel": "_tab-panel_d8l8q_1",
|
|
3789
3789
|
tabPanel: Ri,
|
|
3790
3790
|
"full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
|
|
3791
3791
|
fullHeightNoOverflow: Ai,
|
|
3792
3792
|
disabled: Bi
|
|
3793
|
-
},
|
|
3794
|
-
|
|
3795
|
-
|
|
3793
|
+
}, Bd = ({ eventKey: t, activeTab: e, fullHeightNoOverflow: s, disabled: r, className: o, children: a }) => t !== e ? null : /* @__PURE__ */ n.jsx("div", { className: j("luminus-tab-panel", Tt.tabPanel, { [Tt.fullHeightNoOverflow]: s }, { disabled: r }, { [Tt.disabled]: r }, o), children: a }), Pi = "_join-line_1q9e8_1", Hi = {
|
|
3794
|
+
"join-line": "_join-line_1q9e8_1",
|
|
3795
|
+
joinLine: Pi
|
|
3796
|
+
}, Pd = ({ activeTab: t, onSelect: e, children: s, vertical: r, verticalStepper: o }) => /* @__PURE__ */ n.jsx("div", { className: j("luminus-tabs d-flex mb-2", { "gap-1": !o }, { "gap-0": o }, {
|
|
3797
|
+
"flex-column": r || o
|
|
3798
|
+
}), children: s.map((a, l) => {
|
|
3799
|
+
const i = a.type, c = a.props;
|
|
3800
|
+
if (!c)
|
|
3796
3801
|
return null;
|
|
3797
|
-
const
|
|
3798
|
-
return /* @__PURE__ */
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
}
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
}
|
|
3802
|
+
const d = c.eventKey, u = c.children, m = c.className, h = c.onClick;
|
|
3803
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3804
|
+
/* @__PURE__ */ Do(i, { ...c, key: c.eventKey, className: j({ active: t === d }, m), onClick: () => {
|
|
3805
|
+
e(d), h && h(d);
|
|
3806
|
+
}, vertical: r || o }, u),
|
|
3807
|
+
o && l < s.length - 1 && /* @__PURE__ */ n.jsx("div", { className: j("join-line", Hi.joinLine) })
|
|
3808
|
+
] });
|
|
3809
|
+
}) }), Wi = "_tab_1tbi7_1", zi = "_disabled_1tbi7_7", Vi = "_vertical_1tbi7_13", Mt = {
|
|
3810
|
+
tab: Wi,
|
|
3811
|
+
disabled: zi,
|
|
3812
|
+
vertical: Vi
|
|
3813
|
+
}, Hd = ({ eventKey: t, className: e, onClick: s, disabled: r, vertical: o, children: a }) => /* @__PURE__ */ n.jsx("div", { role: "button", className: j("luminus-tab text-primary rounded", Mt.tab, e, {
|
|
3805
3814
|
disabled: r
|
|
3806
|
-
}, { [
|
|
3815
|
+
}, { [Mt.disabled]: r }, { vertical: o }, { [Mt.vertical]: o }), onClick: () => s && !r && s(t), children: typeof a == "string" ? /* @__PURE__ */ n.jsx(V, { variant: o ? "body" : "h6", className: o ? "" : "text-primary", children: a }) : a });
|
|
3807
3816
|
export {
|
|
3808
3817
|
Er as Alert,
|
|
3809
3818
|
qc as AlertItem,
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3819
|
+
rd as ApiFileDownloadButton,
|
|
3820
|
+
dd as AppSearch,
|
|
3821
|
+
ud as AuthTemplate,
|
|
3813
3822
|
us as AvatarIcon,
|
|
3814
3823
|
Dr as Backdrop,
|
|
3815
|
-
|
|
3824
|
+
ld as Badge,
|
|
3816
3825
|
wc as Card,
|
|
3817
3826
|
Tr as CheckInput,
|
|
3818
|
-
|
|
3827
|
+
Cl as Collapse,
|
|
3819
3828
|
jt as ContextButton,
|
|
3820
|
-
|
|
3829
|
+
_d as DisabledRowLabelLink,
|
|
3821
3830
|
$r as Dropdown,
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3831
|
+
id as DropdownDivider,
|
|
3832
|
+
an as DropdownItem,
|
|
3833
|
+
pd as DropdownPicker,
|
|
3834
|
+
kr as DropdownToggle,
|
|
3835
|
+
bd as DynamicForm,
|
|
3836
|
+
kd as EmployeeSmallPhoto,
|
|
3828
3837
|
hl as ErrorBoundary,
|
|
3829
|
-
|
|
3830
|
-
|
|
3838
|
+
br as FileUploadContextButton,
|
|
3839
|
+
cd as FileUploadDropdownItem,
|
|
3831
3840
|
Jc as FloatingActionContainer,
|
|
3832
3841
|
Va as FloatingFormSubmit,
|
|
3833
3842
|
He as FloatingLabelInput,
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3843
|
+
xd as FromToDatePicker,
|
|
3844
|
+
ad as HomeDashboard,
|
|
3845
|
+
Id as HookFormCheckInput,
|
|
3846
|
+
Ed as HookFormDropdownPicker,
|
|
3847
|
+
Od as HookFormFileInput,
|
|
3848
|
+
Td as HookFormFloatingSubmit,
|
|
3849
|
+
Ld as HookFormNumericStepperInput,
|
|
3850
|
+
Sd as HookFormRadioInput,
|
|
3851
|
+
Md as HookFormSelectInput,
|
|
3852
|
+
Dd as HookFormTextAreaInput,
|
|
3853
|
+
Fd as HookFormTextInput,
|
|
3854
|
+
od as HtmlTooltip,
|
|
3846
3855
|
U as IconButton,
|
|
3847
|
-
|
|
3856
|
+
zn as ImgApi,
|
|
3848
3857
|
Fr as ImgDirect,
|
|
3849
3858
|
Fe as InvalidFeedback,
|
|
3850
|
-
|
|
3851
|
-
|
|
3859
|
+
Nd as LanguageSwitch,
|
|
3860
|
+
yn as Loading,
|
|
3852
3861
|
Yo as LoadingBlock,
|
|
3853
|
-
|
|
3862
|
+
Ad as MessageBoard,
|
|
3854
3863
|
Za as MonthPicker,
|
|
3855
|
-
|
|
3864
|
+
jd as MonthPickerSearchParams,
|
|
3856
3865
|
we as NoInputContainer,
|
|
3857
|
-
|
|
3866
|
+
gd as NumericStepperInput,
|
|
3858
3867
|
Wc as PhotoLibrary,
|
|
3859
3868
|
Hc as PhotoLightbox,
|
|
3860
|
-
|
|
3861
|
-
|
|
3869
|
+
yd as PieChart,
|
|
3870
|
+
wn as PrimaryButton,
|
|
3862
3871
|
Ne as RowLabelInput,
|
|
3863
|
-
|
|
3872
|
+
$d as SearchBox,
|
|
3864
3873
|
wt as SelectInput,
|
|
3865
|
-
|
|
3866
|
-
|
|
3874
|
+
vd as SettingsFormPicker,
|
|
3875
|
+
on as SimplePicker,
|
|
3867
3876
|
go as SimpleToggle,
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3877
|
+
qt as SimpleTooltip,
|
|
3878
|
+
Hd as Tab,
|
|
3879
|
+
Bd as TabPanel,
|
|
3880
|
+
Pd as Tabs,
|
|
3881
|
+
hd as TextAreaInput,
|
|
3873
3882
|
Pe as TextInput,
|
|
3874
|
-
|
|
3875
|
-
|
|
3883
|
+
md as Timeline,
|
|
3884
|
+
Cd as TypedFormGroup,
|
|
3876
3885
|
V as Typography,
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3886
|
+
Vd as UserAvatarToggle,
|
|
3887
|
+
Rd as UserAvatarValueFormat,
|
|
3888
|
+
fd as VersionInfo,
|
|
3889
|
+
Rn as WidgetCard,
|
|
3881
3890
|
el as YearPicker,
|
|
3882
|
-
|
|
3891
|
+
wd as YearPickerSearchParams
|
|
3883
3892
|
};
|