react-luminus-components 1.2.36 → 1.2.38
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/README.md +355 -355
- package/dist/.vite/manifest.json +46 -46
- package/dist/{EventType-SEEDuisM.js → EventType--bYeqoGO.js} +1 -1
- package/dist/{EventType-Dodj1wMo.cjs → EventType-DXVXbODv.cjs} +1 -1
- package/dist/{UserAvatarToggle-rzyVxLmG.cjs → NoInputContainer-BkFSaMQy.cjs} +1 -1
- package/dist/{UserAvatarToggle-CH7OqxNp.js → NoInputContainer-LdJeEMWI.js} +57 -58
- package/dist/SimpleTooltip-C_iRq-Q0.cjs +1 -0
- package/dist/SimpleTooltip-mxX4RNUy.js +5 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +28 -28
- package/dist/hooks/useZodSchemaTypes/useZodSchemaTypes.d.ts +6 -6
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +98 -89
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +15 -15
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +729 -729
- package/dist/style.css +1 -1
- package/dist/useConfirm-BK_yKNWQ.cjs +1 -0
- package/dist/{useConfirm-B3BI8PzR.js → useConfirm-ee4Czv-n.js} +1 -1
- package/dist/{usePermissions-DVO-znuB.js → usePermissions-CHfDy8Yx.js} +1 -1
- package/dist/usePermissions-yA39pMjm.cjs +1 -0
- package/package.json +100 -100
- package/dist/SimpleTooltip-MhGCEWts.js +0 -5
- package/dist/SimpleTooltip-OE_cbcNU.cjs +0 -1
- package/dist/useConfirm-9zGqmWEb.cjs +0 -1
- package/dist/usePermissions-CO93mmCn.cjs +0 -1
package/dist/main.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as s, t as J, c as re, g as Gn, T as Un, a as
|
|
2
|
-
import { ah as Rc, ag as qc } from "./
|
|
1
|
+
import { j as s, t as J, c as re, g as Gn, T as Un, a as Vn, b as v, s as mt, E as Kn, d as zn, e as Qn, f as Xn, h as Jn, u as he, i as Y, k as Zn, l as er, m as tr, n as nr, o as rr, p as or, q as sr, r as ar, v as et, w as tt, x as ir, y as cr, z as lr, P as ye, F as se, A as ur, B as dr, C as nt, S as ft, D as Se, G as Ee, H as rt, I as hr, J as Rt, K as je, L as De, O as pt, M as mr, N as ae, Q as fr, R as pr, U as qt, V as ot, W as st, X as K, Y as gr, Z as Lt, _ as wr, $ as yr, a0 as xr, a1 as Yt, a2 as Ht, a3 as vr, a4 as br, a5 as _r, a6 as Bt, a7 as ve, a8 as kr, a9 as jr, aa as Cr, ab as Nr, ac as Ue, ad as qe, ae as me, af as $r } from "./NoInputContainer-LdJeEMWI.js";
|
|
2
|
+
import { ah as Rc, ag as qc } from "./NoInputContainer-LdJeEMWI.js";
|
|
3
3
|
import * as M from "react";
|
|
4
4
|
import z, { useCallback as T, useMemo as G, useEffect as E, useRef as R, useState as O, useReducer as Gt, useContext as D, createElement as Ir } from "react";
|
|
5
|
-
import { d as Ut, u as Tr, q as gt, E as Oe, M as Me } from "./EventType
|
|
6
|
-
import { L as Yc } from "./EventType
|
|
7
|
-
import { useFormContext as ie, Controller as
|
|
8
|
-
import { m as Sr, a as
|
|
5
|
+
import { d as Ut, u as Tr, q as gt, E as Oe, M as Me } from "./EventType--bYeqoGO.js";
|
|
6
|
+
import { L as Yc } from "./EventType--bYeqoGO.js";
|
|
7
|
+
import { useFormContext as ie, Controller as Vt } from "react-hook-form";
|
|
8
|
+
import { m as Sr, a as Kt } from "./textUtils-BbxuIsKq.js";
|
|
9
9
|
import { u as zt, a as Qt } from "./useKeyPress-CwWcvmEW.js";
|
|
10
|
-
import { S as Bc } from "./SimpleTooltip-
|
|
10
|
+
import { S as Bc } from "./SimpleTooltip-mxX4RNUy.js";
|
|
11
11
|
const cc = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
12
12
|
const r = T(async () => {
|
|
13
13
|
var l;
|
|
@@ -58,7 +58,7 @@ function wt(n) {
|
|
|
58
58
|
const e = J(n);
|
|
59
59
|
return e.setHours(0, 0, 0, 0), e;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function yt(n) {
|
|
62
62
|
const e = J(n), t = new Date(
|
|
63
63
|
Date.UTC(
|
|
64
64
|
e.getFullYear(),
|
|
@@ -73,7 +73,7 @@ function xt(n) {
|
|
|
73
73
|
return t.setUTCFullYear(e.getFullYear()), +n - +t;
|
|
74
74
|
}
|
|
75
75
|
function Or(n, e) {
|
|
76
|
-
const t = wt(n), r = wt(e), o = +t -
|
|
76
|
+
const t = wt(n), r = wt(e), o = +t - yt(t), a = +r - yt(r);
|
|
77
77
|
return Math.round((o - a) / Sr);
|
|
78
78
|
}
|
|
79
79
|
function Mr(n) {
|
|
@@ -163,7 +163,7 @@ const Wr = {
|
|
|
163
163
|
const o = Wr[n];
|
|
164
164
|
return typeof o == "string" ? r = o : e === 1 ? r = o.one : r = o.other.replace("{{count}}", e.toString()), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
165
165
|
};
|
|
166
|
-
function
|
|
166
|
+
function Ve(n) {
|
|
167
167
|
return (e = {}) => {
|
|
168
168
|
const t = e.width ? String(e.width) : n.defaultWidth;
|
|
169
169
|
return n.formats[t] || n.formats[n.defaultWidth];
|
|
@@ -185,15 +185,15 @@ const qr = {
|
|
|
185
185
|
medium: "{{date}}, {{time}}",
|
|
186
186
|
short: "{{date}}, {{time}}"
|
|
187
187
|
}, Hr = {
|
|
188
|
-
date:
|
|
188
|
+
date: Ve({
|
|
189
189
|
formats: qr,
|
|
190
190
|
defaultWidth: "full"
|
|
191
191
|
}),
|
|
192
|
-
time:
|
|
192
|
+
time: Ve({
|
|
193
193
|
formats: Lr,
|
|
194
194
|
defaultWidth: "full"
|
|
195
195
|
}),
|
|
196
|
-
dateTime:
|
|
196
|
+
dateTime: Ve({
|
|
197
197
|
formats: Yr,
|
|
198
198
|
defaultWidth: "full"
|
|
199
199
|
})
|
|
@@ -224,11 +224,11 @@ const Ur = {
|
|
|
224
224
|
narrow: ["B", "A"],
|
|
225
225
|
abbreviated: ["BC", "AD"],
|
|
226
226
|
wide: ["Before Christ", "Anno Domini"]
|
|
227
|
-
},
|
|
227
|
+
}, Vr = {
|
|
228
228
|
narrow: ["1", "2", "3", "4"],
|
|
229
229
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
230
230
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
231
|
-
},
|
|
231
|
+
}, Kr = {
|
|
232
232
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
233
233
|
abbreviated: [
|
|
234
234
|
"Jan",
|
|
@@ -352,12 +352,12 @@ const Ur = {
|
|
|
352
352
|
defaultWidth: "wide"
|
|
353
353
|
}),
|
|
354
354
|
quarter: be({
|
|
355
|
-
values:
|
|
355
|
+
values: Vr,
|
|
356
356
|
defaultWidth: "wide",
|
|
357
357
|
argumentCallback: (n) => n - 1
|
|
358
358
|
}),
|
|
359
359
|
month: be({
|
|
360
|
-
values:
|
|
360
|
+
values: Kr,
|
|
361
361
|
defaultWidth: "wide"
|
|
362
362
|
}),
|
|
363
363
|
day: be({
|
|
@@ -529,13 +529,13 @@ const ro = /^(\d+)(th|st|nd|rd)?/i, oo = /\d+/i, so = {
|
|
|
529
529
|
firstWeekContainsDate: 1
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
|
-
function
|
|
532
|
+
function yo(n) {
|
|
533
533
|
const e = J(n);
|
|
534
534
|
return Or(e, Fr(e)) + 1;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function xo(n) {
|
|
537
537
|
const e = J(n), t = +Ae(e) - +Mr(e);
|
|
538
|
-
return Math.round(t /
|
|
538
|
+
return Math.round(t / Kt) + 1;
|
|
539
539
|
}
|
|
540
540
|
function Zt(n, e) {
|
|
541
541
|
var d, h, m, g;
|
|
@@ -553,7 +553,7 @@ function vo(n, e) {
|
|
|
553
553
|
}
|
|
554
554
|
function bo(n, e) {
|
|
555
555
|
const t = J(n), r = +Ne(t, e) - +vo(t, e);
|
|
556
|
-
return Math.round(r /
|
|
556
|
+
return Math.round(r / Kt) + 1;
|
|
557
557
|
}
|
|
558
558
|
function A(n, e) {
|
|
559
559
|
const t = n < 0 ? "-" : "", r = Math.abs(n).toString().padStart(e, "0");
|
|
@@ -622,7 +622,7 @@ const oe = {
|
|
|
622
622
|
afternoon: "afternoon",
|
|
623
623
|
evening: "evening",
|
|
624
624
|
night: "night"
|
|
625
|
-
},
|
|
625
|
+
}, xt = {
|
|
626
626
|
// Era
|
|
627
627
|
G: function(n, e, t) {
|
|
628
628
|
const r = n.getFullYear() > 0 ? 1 : 0;
|
|
@@ -785,7 +785,7 @@ const oe = {
|
|
|
785
785
|
},
|
|
786
786
|
// ISO week of year
|
|
787
787
|
I: function(n, e, t) {
|
|
788
|
-
const r =
|
|
788
|
+
const r = xo(n);
|
|
789
789
|
return e === "Io" ? t.ordinalNumber(r, { unit: "week" }) : A(r, e.length);
|
|
790
790
|
},
|
|
791
791
|
// Day of the month
|
|
@@ -794,7 +794,7 @@ const oe = {
|
|
|
794
794
|
},
|
|
795
795
|
// Day of year
|
|
796
796
|
D: function(n, e, t) {
|
|
797
|
-
const r =
|
|
797
|
+
const r = yo(n);
|
|
798
798
|
return e === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) : A(r, e.length);
|
|
799
799
|
},
|
|
800
800
|
// Day of week
|
|
@@ -1191,26 +1191,26 @@ function tn(n, e, t) {
|
|
|
1191
1191
|
const r = Le(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? wo, a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (w = t == null ? void 0 : t.locale) == null ? void 0 : w.options) == null ? void 0 : f.weekStartsOn) ?? r.weekStartsOn ?? ((k = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : k.weekStartsOn) ?? 0, l = J(n);
|
|
1192
1192
|
if (!Ar(l))
|
|
1193
1193
|
throw new RangeError("Invalid time value");
|
|
1194
|
-
let c = e.match(Oo).map((
|
|
1195
|
-
const
|
|
1196
|
-
if (
|
|
1197
|
-
const I = ko[
|
|
1198
|
-
return I(
|
|
1194
|
+
let c = e.match(Oo).map((C) => {
|
|
1195
|
+
const b = C[0];
|
|
1196
|
+
if (b === "p" || b === "P") {
|
|
1197
|
+
const I = ko[b];
|
|
1198
|
+
return I(C, o.formatLong);
|
|
1199
1199
|
}
|
|
1200
|
-
return
|
|
1201
|
-
}).join("").match(Eo).map((
|
|
1202
|
-
if (
|
|
1200
|
+
return C;
|
|
1201
|
+
}).join("").match(Eo).map((C) => {
|
|
1202
|
+
if (C === "''")
|
|
1203
1203
|
return { isToken: !1, value: "'" };
|
|
1204
|
-
const
|
|
1205
|
-
if (
|
|
1206
|
-
return { isToken: !1, value: Ao(
|
|
1207
|
-
if (
|
|
1208
|
-
return { isToken: !0, value:
|
|
1209
|
-
if (
|
|
1204
|
+
const b = C[0];
|
|
1205
|
+
if (b === "'")
|
|
1206
|
+
return { isToken: !1, value: Ao(C) };
|
|
1207
|
+
if (xt[b])
|
|
1208
|
+
return { isToken: !0, value: C };
|
|
1209
|
+
if (b.match(Do))
|
|
1210
1210
|
throw new RangeError(
|
|
1211
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1211
|
+
"Format string contains an unescaped latin alphabet character `" + b + "`"
|
|
1212
1212
|
);
|
|
1213
|
-
return { isToken: !1, value:
|
|
1213
|
+
return { isToken: !1, value: C };
|
|
1214
1214
|
});
|
|
1215
1215
|
o.localize.preprocessor && (c = o.localize.preprocessor(l, c));
|
|
1216
1216
|
const u = {
|
|
@@ -1218,13 +1218,13 @@ function tn(n, e, t) {
|
|
|
1218
1218
|
weekStartsOn: i,
|
|
1219
1219
|
locale: o
|
|
1220
1220
|
};
|
|
1221
|
-
return c.map((
|
|
1222
|
-
if (!
|
|
1223
|
-
return
|
|
1224
|
-
const
|
|
1225
|
-
(!(t != null && t.useAdditionalWeekYearTokens) && Io(
|
|
1226
|
-
const I =
|
|
1227
|
-
return I(l,
|
|
1221
|
+
return c.map((C) => {
|
|
1222
|
+
if (!C.isToken)
|
|
1223
|
+
return C.value;
|
|
1224
|
+
const b = C.value;
|
|
1225
|
+
(!(t != null && t.useAdditionalWeekYearTokens) && Io(b) || !(t != null && t.useAdditionalDayOfYearTokens) && $o(b)) && To(b, e, String(n));
|
|
1226
|
+
const I = xt[b[0]];
|
|
1227
|
+
return I(l, b, o.localize, u);
|
|
1228
1228
|
}).join("");
|
|
1229
1229
|
}
|
|
1230
1230
|
function Ao(n) {
|
|
@@ -1272,7 +1272,7 @@ function qo(n, e) {
|
|
|
1272
1272
|
parseInt(mt(e, o[1]), 10);
|
|
1273
1273
|
}
|
|
1274
1274
|
const Lo = {
|
|
1275
|
-
[
|
|
1275
|
+
[Kn]: "collapse",
|
|
1276
1276
|
[zn]: "collapsing",
|
|
1277
1277
|
[Qn]: "collapsing",
|
|
1278
1278
|
[Xn]: "collapse show"
|
|
@@ -1293,26 +1293,26 @@ const Lo = {
|
|
|
1293
1293
|
getDimensionValue: g = qo,
|
|
1294
1294
|
...w
|
|
1295
1295
|
}, f) => {
|
|
1296
|
-
const p = typeof l == "function" ? l() : l, k = G(() => ke((
|
|
1297
|
-
|
|
1298
|
-
}, n), [p, n]),
|
|
1299
|
-
const
|
|
1300
|
-
|
|
1301
|
-
}, e), [p, e]),
|
|
1302
|
-
|
|
1303
|
-
}, t), [p, t]), I = G(() => ke((
|
|
1304
|
-
|
|
1305
|
-
}, r), [r, g, p]), x = G(() => ke((
|
|
1306
|
-
|
|
1296
|
+
const p = typeof l == "function" ? l() : l, k = G(() => ke((_) => {
|
|
1297
|
+
_.style[p] = "0";
|
|
1298
|
+
}, n), [p, n]), C = G(() => ke((_) => {
|
|
1299
|
+
const j = `scroll${p[0].toUpperCase()}${p.slice(1)}`;
|
|
1300
|
+
_.style[p] = `${_[j]}px`;
|
|
1301
|
+
}, e), [p, e]), b = G(() => ke((_) => {
|
|
1302
|
+
_.style[p] = null;
|
|
1303
|
+
}, t), [p, t]), I = G(() => ke((_) => {
|
|
1304
|
+
_.style[p] = `${g(p, _)}px`, Jn(_);
|
|
1305
|
+
}, r), [r, g, p]), x = G(() => ke((_) => {
|
|
1306
|
+
_.style[p] = null;
|
|
1307
1307
|
}, o), [p, o]);
|
|
1308
1308
|
return /* @__PURE__ */ s.jsx(Un, {
|
|
1309
1309
|
ref: f,
|
|
1310
|
-
addEndListener:
|
|
1310
|
+
addEndListener: Vn,
|
|
1311
1311
|
...w,
|
|
1312
1312
|
"aria-expanded": w.role ? c : null,
|
|
1313
1313
|
onEnter: k,
|
|
1314
|
-
onEntering:
|
|
1315
|
-
onEntered:
|
|
1314
|
+
onEntering: C,
|
|
1315
|
+
onEntered: b,
|
|
1316
1316
|
onExit: I,
|
|
1317
1317
|
onExiting: x,
|
|
1318
1318
|
childRef: i.ref,
|
|
@@ -1321,9 +1321,9 @@ const Lo = {
|
|
|
1321
1321
|
mountOnEnter: d,
|
|
1322
1322
|
unmountOnExit: h,
|
|
1323
1323
|
appear: m,
|
|
1324
|
-
children: (
|
|
1325
|
-
...
|
|
1326
|
-
className:
|
|
1324
|
+
children: (_, j) => /* @__PURE__ */ z.cloneElement(i, {
|
|
1325
|
+
...j,
|
|
1326
|
+
className: v(a, i.props.className, Lo[_], p === "width" && "collapse-horizontal")
|
|
1327
1327
|
})
|
|
1328
1328
|
});
|
|
1329
1329
|
});
|
|
@@ -1406,7 +1406,7 @@ const rn = /* @__PURE__ */ M.forwardRef((n, e) => {
|
|
|
1406
1406
|
});
|
|
1407
1407
|
rn.displayName = "Button";
|
|
1408
1408
|
const Uo = ["onKeyDown"];
|
|
1409
|
-
function
|
|
1409
|
+
function Vo(n, e) {
|
|
1410
1410
|
if (n == null)
|
|
1411
1411
|
return {};
|
|
1412
1412
|
var t = {}, r = Object.keys(n), o, a;
|
|
@@ -1414,19 +1414,19 @@ function Ko(n, e) {
|
|
|
1414
1414
|
o = r[a], !(e.indexOf(o) >= 0) && (t[o] = n[o]);
|
|
1415
1415
|
return t;
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function Ko(n) {
|
|
1418
1418
|
return !n || n.trim() === "#";
|
|
1419
1419
|
}
|
|
1420
1420
|
const on = /* @__PURE__ */ M.forwardRef((n, e) => {
|
|
1421
1421
|
let {
|
|
1422
1422
|
onKeyDown: t
|
|
1423
|
-
} = n, r =
|
|
1423
|
+
} = n, r = Vo(n, Uo);
|
|
1424
1424
|
const [o] = at(Object.assign({
|
|
1425
1425
|
tagName: "a"
|
|
1426
1426
|
}, r)), a = he((i) => {
|
|
1427
1427
|
o.onKeyDown(i), t == null || t(i);
|
|
1428
1428
|
});
|
|
1429
|
-
return
|
|
1429
|
+
return Ko(r.href) || r.role === "button" ? /* @__PURE__ */ s.jsx("a", Object.assign({
|
|
1430
1430
|
ref: e
|
|
1431
1431
|
}, r, o, {
|
|
1432
1432
|
onKeyDown: a
|
|
@@ -1459,7 +1459,7 @@ const sn = /* @__PURE__ */ M.forwardRef(({
|
|
|
1459
1459
|
...l,
|
|
1460
1460
|
ref: c,
|
|
1461
1461
|
disabled: a,
|
|
1462
|
-
className:
|
|
1462
|
+
className: v(i, u, o && "active", t && `${u}-${t}`, r && `${u}-${r}`, l.href && a && "disabled")
|
|
1463
1463
|
});
|
|
1464
1464
|
});
|
|
1465
1465
|
sn.displayName = "Button";
|
|
@@ -1487,7 +1487,7 @@ function Qo({
|
|
|
1487
1487
|
d && i.push(d === !0 ? `${e}${g}` : `${e}${g}-${d}`), m != null && l.push(`order${g}-${m}`), h != null && l.push(`offset${g}-${h}`);
|
|
1488
1488
|
}), [{
|
|
1489
1489
|
...r,
|
|
1490
|
-
className:
|
|
1490
|
+
className: v(t, ...i, ...l)
|
|
1491
1491
|
}, {
|
|
1492
1492
|
as: n,
|
|
1493
1493
|
bsPrefix: e,
|
|
@@ -1508,7 +1508,7 @@ const an = /* @__PURE__ */ M.forwardRef(
|
|
|
1508
1508
|
return /* @__PURE__ */ s.jsx(o, {
|
|
1509
1509
|
...r,
|
|
1510
1510
|
ref: e,
|
|
1511
|
-
className:
|
|
1511
|
+
className: v(t, !i.length && a)
|
|
1512
1512
|
});
|
|
1513
1513
|
}
|
|
1514
1514
|
);
|
|
@@ -1548,14 +1548,14 @@ function cn(n = {}) {
|
|
|
1548
1548
|
usePopper: m = !!e
|
|
1549
1549
|
} = n, g = (e == null ? void 0 : e.show) == null ? !!n.show : e.show;
|
|
1550
1550
|
g && !o.current && (o.current = !0);
|
|
1551
|
-
const w = (
|
|
1552
|
-
e == null || e.toggle(!1,
|
|
1551
|
+
const w = (_) => {
|
|
1552
|
+
e == null || e.toggle(!1, _);
|
|
1553
1553
|
}, {
|
|
1554
1554
|
placement: f,
|
|
1555
1555
|
setMenu: p,
|
|
1556
1556
|
menuElement: k,
|
|
1557
|
-
toggleElement:
|
|
1558
|
-
} = e || {},
|
|
1557
|
+
toggleElement: C
|
|
1558
|
+
} = e || {}, b = nr(C, k, rr({
|
|
1559
1559
|
placement: u || f || "bottom-start",
|
|
1560
1560
|
enabled: m,
|
|
1561
1561
|
enableEvents: h ?? g,
|
|
@@ -1566,19 +1566,19 @@ function cn(n = {}) {
|
|
|
1566
1566
|
popperConfig: d
|
|
1567
1567
|
})), I = Object.assign({
|
|
1568
1568
|
ref: p || ts,
|
|
1569
|
-
"aria-labelledby":
|
|
1570
|
-
},
|
|
1571
|
-
style:
|
|
1569
|
+
"aria-labelledby": C == null ? void 0 : C.id
|
|
1570
|
+
}, b.attributes.popper, {
|
|
1571
|
+
style: b.styles.popper
|
|
1572
1572
|
}), x = {
|
|
1573
1573
|
show: g,
|
|
1574
1574
|
placement: f,
|
|
1575
1575
|
hasShown: o.current,
|
|
1576
1576
|
toggle: e == null ? void 0 : e.toggle,
|
|
1577
|
-
popper: m ?
|
|
1577
|
+
popper: m ? b : null,
|
|
1578
1578
|
arrowProps: m ? Object.assign({
|
|
1579
1579
|
ref: r
|
|
1580
|
-
},
|
|
1581
|
-
style:
|
|
1580
|
+
}, b.attributes.arrow, {
|
|
1581
|
+
style: b.styles.arrow
|
|
1582
1582
|
}) : {}
|
|
1583
1583
|
};
|
|
1584
1584
|
return or(k, w, {
|
|
@@ -1603,18 +1603,18 @@ const Fe = {
|
|
|
1603
1603
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1604
1604
|
current: 0
|
|
1605
1605
|
}, un = /* @__PURE__ */ z.createContext(Fe), ns = /* @__PURE__ */ z.createContext(!1);
|
|
1606
|
-
let rs = !!(typeof window < "u" && window.document && window.document.createElement),
|
|
1606
|
+
let rs = !!(typeof window < "u" && window.document && window.document.createElement), Ke = /* @__PURE__ */ new WeakMap();
|
|
1607
1607
|
function os(n = !1) {
|
|
1608
1608
|
let e = D(un), t = R(null);
|
|
1609
1609
|
if (t.current === null && !n) {
|
|
1610
1610
|
var r, o;
|
|
1611
1611
|
let a = (o = z.__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;
|
|
1612
1612
|
if (a) {
|
|
1613
|
-
let i =
|
|
1614
|
-
i == null ?
|
|
1613
|
+
let i = Ke.get(a);
|
|
1614
|
+
i == null ? Ke.set(a, {
|
|
1615
1615
|
id: e.current,
|
|
1616
1616
|
state: a.memoizedState
|
|
1617
|
-
}) : a.memoizedState !== i.state && (e.current = i.id,
|
|
1617
|
+
}) : a.memoizedState !== i.state && (e.current = i.id, Ke.delete(a));
|
|
1618
1618
|
}
|
|
1619
1619
|
t.current = ++e.current;
|
|
1620
1620
|
}
|
|
@@ -1745,14 +1745,14 @@ function Ie({
|
|
|
1745
1745
|
placement: i = "bottom-start",
|
|
1746
1746
|
children: l
|
|
1747
1747
|
}) {
|
|
1748
|
-
const c = sr(), [u, d] = Xo(e, n, r), [h, m] = Nt(), g = h.current, [w, f] = Nt(), p = w.current, k = Tr(u),
|
|
1748
|
+
const c = sr(), [u, d] = Xo(e, n, r), [h, m] = Nt(), g = h.current, [w, f] = Nt(), p = w.current, k = Tr(u), C = R(null), b = R(!1), I = D(Xe), x = T((N, S, q = S == null ? void 0 : S.type) => {
|
|
1749
1749
|
d(N, {
|
|
1750
1750
|
originalEvent: S,
|
|
1751
1751
|
source: q
|
|
1752
1752
|
});
|
|
1753
|
-
}, [d]),
|
|
1753
|
+
}, [d]), _ = he((N, S) => {
|
|
1754
1754
|
t == null || t(N, S), x(!1, S, "select"), S.isPropagationStopped() || I == null || I(N, S);
|
|
1755
|
-
}),
|
|
1755
|
+
}), j = G(() => ({
|
|
1756
1756
|
toggle: x,
|
|
1757
1757
|
placement: i,
|
|
1758
1758
|
show: u,
|
|
@@ -1761,11 +1761,11 @@ function Ie({
|
|
|
1761
1761
|
setMenu: m,
|
|
1762
1762
|
setToggle: f
|
|
1763
1763
|
}), [x, i, u, g, p, m, f]);
|
|
1764
|
-
g && k && !u && (
|
|
1764
|
+
g && k && !u && (b.current = g.contains(g.ownerDocument.activeElement));
|
|
1765
1765
|
const $ = he(() => {
|
|
1766
1766
|
p && p.focus && p.focus();
|
|
1767
1767
|
}), L = he(() => {
|
|
1768
|
-
const N =
|
|
1768
|
+
const N = C.current;
|
|
1769
1769
|
let S = a;
|
|
1770
1770
|
if (S == null && (S = h.current && dn(h.current) ? "keyboard" : !1), S === !1 || S === "keyboard" && !/^key.+$/.test(N))
|
|
1771
1771
|
return;
|
|
@@ -1773,9 +1773,9 @@ function Ie({
|
|
|
1773
1773
|
q && q.focus && q.focus();
|
|
1774
1774
|
});
|
|
1775
1775
|
E(() => {
|
|
1776
|
-
u ? L() :
|
|
1777
|
-
}, [u,
|
|
1778
|
-
|
|
1776
|
+
u ? L() : b.current && (b.current = !1, $());
|
|
1777
|
+
}, [u, b, $, L]), E(() => {
|
|
1778
|
+
C.current = null;
|
|
1779
1779
|
});
|
|
1780
1780
|
const P = (N, S) => {
|
|
1781
1781
|
if (!h.current)
|
|
@@ -1788,32 +1788,32 @@ function Ie({
|
|
|
1788
1788
|
var S, q;
|
|
1789
1789
|
const {
|
|
1790
1790
|
key: H
|
|
1791
|
-
} = N,
|
|
1792
|
-
if (/input|textarea/i.test(
|
|
1791
|
+
} = N, V = N.target, U = (S = h.current) == null ? void 0 : S.contains(V), te = (q = w.current) == null ? void 0 : q.contains(V);
|
|
1792
|
+
if (/input|textarea/i.test(V.tagName) && (H === " " || H !== "Escape" && U || H === "Escape" && V.type === "search") || !U && !te || H === "Tab" && (!h.current || !u))
|
|
1793
1793
|
return;
|
|
1794
|
-
|
|
1794
|
+
C.current = N.type;
|
|
1795
1795
|
const F = {
|
|
1796
1796
|
originalEvent: N,
|
|
1797
1797
|
source: N.type
|
|
1798
1798
|
};
|
|
1799
1799
|
switch (H) {
|
|
1800
1800
|
case "ArrowUp": {
|
|
1801
|
-
const
|
|
1802
|
-
|
|
1801
|
+
const y = P(V, -1);
|
|
1802
|
+
y && y.focus && y.focus(), N.preventDefault();
|
|
1803
1803
|
return;
|
|
1804
1804
|
}
|
|
1805
1805
|
case "ArrowDown":
|
|
1806
1806
|
if (N.preventDefault(), !u)
|
|
1807
1807
|
d(!0, F);
|
|
1808
1808
|
else {
|
|
1809
|
-
const
|
|
1810
|
-
|
|
1809
|
+
const y = P(V, 1);
|
|
1810
|
+
y && y.focus && y.focus();
|
|
1811
1811
|
}
|
|
1812
1812
|
return;
|
|
1813
1813
|
case "Tab":
|
|
1814
|
-
ar(
|
|
1814
|
+
ar(V.ownerDocument, "keyup", (y) => {
|
|
1815
1815
|
var W;
|
|
1816
|
-
(
|
|
1816
|
+
(y.key === "Tab" && !y.target || !((W = h.current) != null && W.contains(y.target))) && d(!1, F);
|
|
1817
1817
|
}, {
|
|
1818
1818
|
once: !0
|
|
1819
1819
|
});
|
|
@@ -1823,9 +1823,9 @@ function Ie({
|
|
|
1823
1823
|
break;
|
|
1824
1824
|
}
|
|
1825
1825
|
}), /* @__PURE__ */ s.jsx(Xe.Provider, {
|
|
1826
|
-
value:
|
|
1826
|
+
value: _,
|
|
1827
1827
|
children: /* @__PURE__ */ s.jsx(Ye.Provider, {
|
|
1828
|
-
value:
|
|
1828
|
+
value: j,
|
|
1829
1829
|
children: l
|
|
1830
1830
|
})
|
|
1831
1831
|
});
|
|
@@ -1844,12 +1844,12 @@ const wn = /* @__PURE__ */ M.forwardRef(({
|
|
|
1844
1844
|
...o
|
|
1845
1845
|
}, a) => (e = Y(e, "dropdown-divider"), /* @__PURE__ */ s.jsx(t, {
|
|
1846
1846
|
ref: a,
|
|
1847
|
-
className:
|
|
1847
|
+
className: v(n, e),
|
|
1848
1848
|
role: r,
|
|
1849
1849
|
...o
|
|
1850
1850
|
})));
|
|
1851
1851
|
wn.displayName = "DropdownDivider";
|
|
1852
|
-
const
|
|
1852
|
+
const yn = /* @__PURE__ */ M.forwardRef(({
|
|
1853
1853
|
className: n,
|
|
1854
1854
|
bsPrefix: e,
|
|
1855
1855
|
as: t = "div",
|
|
@@ -1857,12 +1857,12 @@ const xn = /* @__PURE__ */ M.forwardRef(({
|
|
|
1857
1857
|
...o
|
|
1858
1858
|
}, a) => (e = Y(e, "dropdown-header"), /* @__PURE__ */ s.jsx(t, {
|
|
1859
1859
|
ref: a,
|
|
1860
|
-
className:
|
|
1860
|
+
className: v(n, e),
|
|
1861
1861
|
role: r,
|
|
1862
1862
|
...o
|
|
1863
1863
|
})));
|
|
1864
|
-
|
|
1865
|
-
const
|
|
1864
|
+
yn.displayName = "DropdownHeader";
|
|
1865
|
+
const xn = /* @__PURE__ */ M.forwardRef(({
|
|
1866
1866
|
bsPrefix: n,
|
|
1867
1867
|
className: e,
|
|
1868
1868
|
eventKey: t,
|
|
@@ -1883,10 +1883,10 @@ const yn = /* @__PURE__ */ M.forwardRef(({
|
|
|
1883
1883
|
...l,
|
|
1884
1884
|
...d,
|
|
1885
1885
|
ref: c,
|
|
1886
|
-
className:
|
|
1886
|
+
className: v(e, u, h.isActive && "active", r && "disabled")
|
|
1887
1887
|
});
|
|
1888
1888
|
});
|
|
1889
|
-
|
|
1889
|
+
xn.displayName = "DropdownItem";
|
|
1890
1890
|
const vn = /* @__PURE__ */ M.forwardRef(({
|
|
1891
1891
|
className: n,
|
|
1892
1892
|
bsPrefix: e,
|
|
@@ -1894,7 +1894,7 @@ const vn = /* @__PURE__ */ M.forwardRef(({
|
|
|
1894
1894
|
...r
|
|
1895
1895
|
}, o) => (e = Y(e, "dropdown-item-text"), /* @__PURE__ */ s.jsx(t, {
|
|
1896
1896
|
ref: o,
|
|
1897
|
-
className:
|
|
1897
|
+
className: v(n, e),
|
|
1898
1898
|
...r
|
|
1899
1899
|
})));
|
|
1900
1900
|
vn.displayName = "DropdownItemText";
|
|
@@ -1936,47 +1936,47 @@ const jn = /* @__PURE__ */ M.forwardRef(({
|
|
|
1936
1936
|
isRTL: k
|
|
1937
1937
|
} = D(it);
|
|
1938
1938
|
t = t || f;
|
|
1939
|
-
const
|
|
1939
|
+
const C = D(He), b = [];
|
|
1940
1940
|
if (t)
|
|
1941
1941
|
if (typeof t == "object") {
|
|
1942
1942
|
const N = Object.keys(t);
|
|
1943
1943
|
if (process.env.NODE_ENV !== "production" && tt(N.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), N.length) {
|
|
1944
1944
|
const S = N[0], q = t[S];
|
|
1945
|
-
m = q === "start",
|
|
1945
|
+
m = q === "start", b.push(`${w}-${S}-${q}`);
|
|
1946
1946
|
}
|
|
1947
1947
|
} else
|
|
1948
1948
|
t === "end" && (m = !0);
|
|
1949
1949
|
const I = kn(m, p, k), [x, {
|
|
1950
|
-
hasShown:
|
|
1951
|
-
popper:
|
|
1950
|
+
hasShown: _,
|
|
1951
|
+
popper: j,
|
|
1952
1952
|
show: $,
|
|
1953
1953
|
toggle: L
|
|
1954
1954
|
}] = cn({
|
|
1955
1955
|
flip: o,
|
|
1956
1956
|
rootCloseEvent: r,
|
|
1957
1957
|
show: a,
|
|
1958
|
-
usePopper: !g &&
|
|
1958
|
+
usePopper: !g && b.length === 0,
|
|
1959
1959
|
offset: [0, 2],
|
|
1960
1960
|
popperConfig: c,
|
|
1961
1961
|
placement: I
|
|
1962
1962
|
});
|
|
1963
1963
|
if (x.ref = et(_n(h, "DropdownMenu"), x.ref), ir(() => {
|
|
1964
|
-
$ && (
|
|
1965
|
-
}, [$]), !
|
|
1964
|
+
$ && (j == null || j.update());
|
|
1965
|
+
}, [$]), !_ && !i && !C)
|
|
1966
1966
|
return null;
|
|
1967
1967
|
typeof l != "string" && (x.show = $, x.close = () => L == null ? void 0 : L(!1), x.align = t);
|
|
1968
1968
|
let P = d.style;
|
|
1969
|
-
return
|
|
1969
|
+
return j != null && j.placement && (P = {
|
|
1970
1970
|
...d.style,
|
|
1971
1971
|
...x.style
|
|
1972
|
-
}, d["x-placement"] =
|
|
1972
|
+
}, d["x-placement"] = j.placement), /* @__PURE__ */ s.jsx(l, {
|
|
1973
1973
|
...d,
|
|
1974
1974
|
...x,
|
|
1975
1975
|
style: P,
|
|
1976
|
-
...(
|
|
1976
|
+
...(b.length || g) && {
|
|
1977
1977
|
"data-bs-popper": "static"
|
|
1978
1978
|
},
|
|
1979
|
-
className:
|
|
1979
|
+
className: v(e, w, $ && "show", m && `${w}-end`, u && `${w}-${u}`, ...b)
|
|
1980
1980
|
});
|
|
1981
1981
|
});
|
|
1982
1982
|
jn.displayName = "DropdownMenu";
|
|
@@ -1993,7 +1993,7 @@ const Cn = /* @__PURE__ */ M.forwardRef(({
|
|
|
1993
1993
|
r !== void 0 && (a.bsPrefix = r);
|
|
1994
1994
|
const [u] = hn();
|
|
1995
1995
|
return u.ref = et(u.ref, _n(i, "DropdownToggle")), /* @__PURE__ */ s.jsx(o, {
|
|
1996
|
-
className:
|
|
1996
|
+
className: v(t, l, e && `${l}-split`, (c == null ? void 0 : c.show) && "show"),
|
|
1997
1997
|
...u,
|
|
1998
1998
|
...a
|
|
1999
1999
|
});
|
|
@@ -2016,14 +2016,14 @@ const Nn = /* @__PURE__ */ M.forwardRef((n, e) => {
|
|
|
2016
2016
|
...g
|
|
2017
2017
|
} = cr(n, {
|
|
2018
2018
|
show: "onToggle"
|
|
2019
|
-
}), w = D(He), f = Y(t, "dropdown"), p = lr(), k = (
|
|
2019
|
+
}), w = D(He), f = Y(t, "dropdown"), p = lr(), k = (j) => m === !1 ? j === "click" : m === "inside" ? j !== "rootClose" : m === "outside" ? j !== "select" : !0, C = he((j, $) => {
|
|
2020
2020
|
var L, P;
|
|
2021
|
-
!((L = $.originalEvent) == null || (P = L.target) == null) && P.classList.contains("dropdown-toggle") && $.source === "mousedown" || ($.originalEvent.currentTarget === document && ($.source !== "keydown" || $.originalEvent.key === "Escape") && ($.source = "rootClose"), k($.source) && (c == null || c(
|
|
2021
|
+
!((L = $.originalEvent) == null || (P = L.target) == null) && P.classList.contains("dropdown-toggle") && $.source === "mousedown" || ($.originalEvent.currentTarget === document && ($.source !== "keydown" || $.originalEvent.key === "Escape") && ($.source = "rootClose"), k($.source) && (c == null || c(j, $)));
|
|
2022
2022
|
}), I = kn(i === "end", r, p), x = G(() => ({
|
|
2023
2023
|
align: i,
|
|
2024
2024
|
drop: r,
|
|
2025
2025
|
isRTL: p
|
|
2026
|
-
}), [i, r, p]),
|
|
2026
|
+
}), [i, r, p]), _ = {
|
|
2027
2027
|
down: f,
|
|
2028
2028
|
"down-centered": `${f}-center`,
|
|
2029
2029
|
up: "dropup",
|
|
@@ -2037,13 +2037,13 @@ const Nn = /* @__PURE__ */ M.forwardRef((n, e) => {
|
|
|
2037
2037
|
placement: I,
|
|
2038
2038
|
show: o,
|
|
2039
2039
|
onSelect: l,
|
|
2040
|
-
onToggle:
|
|
2040
|
+
onToggle: C,
|
|
2041
2041
|
focusFirstItemOnShow: u,
|
|
2042
2042
|
itemSelector: `.${f}-item:not(.disabled):not(:disabled)`,
|
|
2043
2043
|
children: w ? g.children : /* @__PURE__ */ s.jsx(d, {
|
|
2044
2044
|
...g,
|
|
2045
2045
|
ref: e,
|
|
2046
|
-
className:
|
|
2046
|
+
className: v(a, o && "show", _[r])
|
|
2047
2047
|
})
|
|
2048
2048
|
})
|
|
2049
2049
|
});
|
|
@@ -2052,20 +2052,20 @@ Nn.displayName = "Dropdown";
|
|
|
2052
2052
|
const $e = Object.assign(Nn, {
|
|
2053
2053
|
Toggle: Cn,
|
|
2054
2054
|
Menu: jn,
|
|
2055
|
-
Item:
|
|
2055
|
+
Item: xn,
|
|
2056
2056
|
ItemText: vn,
|
|
2057
2057
|
Divider: wn,
|
|
2058
|
-
Header:
|
|
2058
|
+
Header: yn
|
|
2059
2059
|
}), fs = {
|
|
2060
2060
|
/**
|
|
2061
2061
|
* Specify whether the feedback is for valid or invalid fields
|
|
2062
2062
|
*
|
|
2063
2063
|
* @type {('valid'|'invalid')}
|
|
2064
2064
|
*/
|
|
2065
|
-
type:
|
|
2065
|
+
type: ye.string,
|
|
2066
2066
|
/** Display feedback as a tooltip. */
|
|
2067
|
-
tooltip:
|
|
2068
|
-
as:
|
|
2067
|
+
tooltip: ye.bool,
|
|
2068
|
+
as: ye.elementType
|
|
2069
2069
|
}, Be = /* @__PURE__ */ M.forwardRef(
|
|
2070
2070
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2071
2071
|
({
|
|
@@ -2077,7 +2077,7 @@ const $e = Object.assign(Nn, {
|
|
|
2077
2077
|
}, a) => /* @__PURE__ */ s.jsx(n, {
|
|
2078
2078
|
...o,
|
|
2079
2079
|
ref: a,
|
|
2080
|
-
className:
|
|
2080
|
+
className: v(e, `${t}-${r ? "tooltip" : "feedback"}`)
|
|
2081
2081
|
})
|
|
2082
2082
|
);
|
|
2083
2083
|
Be.displayName = "Feedback";
|
|
@@ -2101,7 +2101,7 @@ const Te = /* @__PURE__ */ M.forwardRef(({
|
|
|
2101
2101
|
ref: c,
|
|
2102
2102
|
type: r,
|
|
2103
2103
|
id: n || u,
|
|
2104
|
-
className:
|
|
2104
|
+
className: v(t, e, o && "is-valid", a && "is-invalid")
|
|
2105
2105
|
});
|
|
2106
2106
|
});
|
|
2107
2107
|
Te.displayName = "FormCheckInput";
|
|
@@ -2118,7 +2118,7 @@ const We = /* @__PURE__ */ M.forwardRef(({
|
|
|
2118
2118
|
...r,
|
|
2119
2119
|
ref: o,
|
|
2120
2120
|
htmlFor: t || a,
|
|
2121
|
-
className:
|
|
2121
|
+
className: v(e, n)
|
|
2122
2122
|
});
|
|
2123
2123
|
});
|
|
2124
2124
|
We.displayName = "FormCheckLabel";
|
|
@@ -2142,17 +2142,17 @@ const $n = /* @__PURE__ */ M.forwardRef(({
|
|
|
2142
2142
|
children: p,
|
|
2143
2143
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2144
2144
|
as: k = "input",
|
|
2145
|
-
...
|
|
2146
|
-
},
|
|
2145
|
+
...C
|
|
2146
|
+
}, b) => {
|
|
2147
2147
|
e = Y(e, "form-check"), t = Y(t, "form-switch");
|
|
2148
2148
|
const {
|
|
2149
2149
|
controlId: I
|
|
2150
2150
|
} = D(se), x = G(() => ({
|
|
2151
2151
|
controlId: n || I
|
|
2152
|
-
}), [I, n]),
|
|
2153
|
-
...
|
|
2152
|
+
}), [I, n]), _ = !p && f != null && f !== !1 || zo(p, We), j = /* @__PURE__ */ s.jsx(Te, {
|
|
2153
|
+
...C,
|
|
2154
2154
|
type: w === "switch" ? "checkbox" : w,
|
|
2155
|
-
ref:
|
|
2155
|
+
ref: b,
|
|
2156
2156
|
isValid: i,
|
|
2157
2157
|
isInvalid: l,
|
|
2158
2158
|
disabled: a,
|
|
@@ -2162,9 +2162,9 @@ const $n = /* @__PURE__ */ M.forwardRef(({
|
|
|
2162
2162
|
value: x,
|
|
2163
2163
|
children: /* @__PURE__ */ s.jsx("div", {
|
|
2164
2164
|
style: m,
|
|
2165
|
-
className:
|
|
2165
|
+
className: v(h, _ && e, r && `${e}-inline`, o && `${e}-reverse`, w === "switch" && t),
|
|
2166
2166
|
children: p || /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
2167
|
-
children: [
|
|
2167
|
+
children: [j, _ && /* @__PURE__ */ s.jsx(We, {
|
|
2168
2168
|
title: g,
|
|
2169
2169
|
children: f
|
|
2170
2170
|
}), u && /* @__PURE__ */ s.jsx(Be, {
|
|
@@ -2205,7 +2205,7 @@ const Re = Object.assign($n, {
|
|
|
2205
2205
|
ref: m,
|
|
2206
2206
|
readOnly: u,
|
|
2207
2207
|
id: o || g,
|
|
2208
|
-
className:
|
|
2208
|
+
className: v(a, c ? `${n}-plaintext` : n, t && `${n}-${t}`, e === "color" && `${n}-color`, i && "is-valid", l && "is-invalid")
|
|
2209
2209
|
});
|
|
2210
2210
|
});
|
|
2211
2211
|
In.displayName = "FormControl";
|
|
@@ -2218,7 +2218,7 @@ const Tn = Object.assign(In, {
|
|
|
2218
2218
|
...r
|
|
2219
2219
|
}, o) => (e = Y(e, "form-floating"), /* @__PURE__ */ s.jsx(t, {
|
|
2220
2220
|
ref: o,
|
|
2221
|
-
className:
|
|
2221
|
+
className: v(n, e),
|
|
2222
2222
|
...r
|
|
2223
2223
|
})));
|
|
2224
2224
|
Sn.displayName = "FormFloating";
|
|
@@ -2238,7 +2238,7 @@ const En = /* @__PURE__ */ M.forwardRef(({
|
|
|
2238
2238
|
e = Y(e, "form-label");
|
|
2239
2239
|
let u = "col-form-label";
|
|
2240
2240
|
typeof t == "string" && (u = `${u} ${u}-${t}`);
|
|
2241
|
-
const d =
|
|
2241
|
+
const d = v(o, e, r && "visually-hidden", t && u);
|
|
2242
2242
|
return process.env.NODE_ENV !== "production" && tt(c == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || c, t ? /* @__PURE__ */ s.jsx(an, {
|
|
2243
2243
|
ref: l,
|
|
2244
2244
|
as: "label",
|
|
@@ -2269,7 +2269,7 @@ const On = /* @__PURE__ */ M.forwardRef(({
|
|
|
2269
2269
|
...r,
|
|
2270
2270
|
type: "range",
|
|
2271
2271
|
ref: o,
|
|
2272
|
-
className:
|
|
2272
|
+
className: v(e, n),
|
|
2273
2273
|
id: t || a
|
|
2274
2274
|
});
|
|
2275
2275
|
});
|
|
@@ -2291,7 +2291,7 @@ const Mn = /* @__PURE__ */ M.forwardRef(({
|
|
|
2291
2291
|
...l,
|
|
2292
2292
|
size: t,
|
|
2293
2293
|
ref: c,
|
|
2294
|
-
className:
|
|
2294
|
+
className: v(r, n, e && `${n}-${e}`, o && "is-valid", a && "is-invalid"),
|
|
2295
2295
|
id: i || u
|
|
2296
2296
|
});
|
|
2297
2297
|
});
|
|
@@ -2307,7 +2307,7 @@ const Pn = /* @__PURE__ */ M.forwardRef(
|
|
|
2307
2307
|
}, a) => (n = Y(n, "form-text"), /* @__PURE__ */ s.jsx(t, {
|
|
2308
2308
|
...o,
|
|
2309
2309
|
ref: a,
|
|
2310
|
-
className:
|
|
2310
|
+
className: v(e, n, r && "text-muted")
|
|
2311
2311
|
}))
|
|
2312
2312
|
);
|
|
2313
2313
|
Pn.displayName = "FormText";
|
|
@@ -2329,13 +2329,13 @@ const ps = Object.assign(Dn, {
|
|
|
2329
2329
|
* @type {ReactRef}
|
|
2330
2330
|
* @alias ref
|
|
2331
2331
|
*/
|
|
2332
|
-
_ref:
|
|
2332
|
+
_ref: ye.any,
|
|
2333
2333
|
/**
|
|
2334
2334
|
* Mark a form as having been validated. Setting it to `true` will
|
|
2335
2335
|
* toggle any validation styles on the forms elements.
|
|
2336
2336
|
*/
|
|
2337
|
-
validated:
|
|
2338
|
-
as:
|
|
2337
|
+
validated: ye.bool,
|
|
2338
|
+
as: ye.elementType
|
|
2339
2339
|
}, ct = /* @__PURE__ */ M.forwardRef(({
|
|
2340
2340
|
className: n,
|
|
2341
2341
|
validated: e,
|
|
@@ -2345,7 +2345,7 @@ const ps = Object.assign(Dn, {
|
|
|
2345
2345
|
}, o) => /* @__PURE__ */ s.jsx(t, {
|
|
2346
2346
|
...r,
|
|
2347
2347
|
ref: o,
|
|
2348
|
-
className:
|
|
2348
|
+
className: v(n, e && "was-validated")
|
|
2349
2349
|
}));
|
|
2350
2350
|
ct.displayName = "Form";
|
|
2351
2351
|
ct.propTypes = gs;
|
|
@@ -2367,7 +2367,7 @@ const Q = Object.assign(ct, {
|
|
|
2367
2367
|
...r
|
|
2368
2368
|
}, o) => (e = Y(e, "input-group-text"), /* @__PURE__ */ s.jsx(t, {
|
|
2369
2369
|
ref: o,
|
|
2370
|
-
className:
|
|
2370
|
+
className: v(n, e),
|
|
2371
2371
|
...r
|
|
2372
2372
|
})));
|
|
2373
2373
|
Ge.displayName = "InputGroupText";
|
|
@@ -2376,7 +2376,7 @@ const ws = (n) => /* @__PURE__ */ s.jsx(Ge, {
|
|
|
2376
2376
|
type: "checkbox",
|
|
2377
2377
|
...n
|
|
2378
2378
|
})
|
|
2379
|
-
}),
|
|
2379
|
+
}), ys = (n) => /* @__PURE__ */ s.jsx(Ge, {
|
|
2380
2380
|
children: /* @__PURE__ */ s.jsx(Te, {
|
|
2381
2381
|
type: "radio",
|
|
2382
2382
|
...n
|
|
@@ -2397,14 +2397,14 @@ const ws = (n) => /* @__PURE__ */ s.jsx(Ge, {
|
|
|
2397
2397
|
children: /* @__PURE__ */ s.jsx(o, {
|
|
2398
2398
|
ref: i,
|
|
2399
2399
|
...a,
|
|
2400
|
-
className:
|
|
2400
|
+
className: v(r, n, e && `${n}-${e}`, t && "has-validation")
|
|
2401
2401
|
})
|
|
2402
2402
|
});
|
|
2403
2403
|
});
|
|
2404
2404
|
An.displayName = "InputGroup";
|
|
2405
2405
|
const ze = Object.assign(An, {
|
|
2406
2406
|
Text: Ge,
|
|
2407
|
-
Radio:
|
|
2407
|
+
Radio: ys,
|
|
2408
2408
|
Checkbox: ws
|
|
2409
2409
|
}), lt = /* @__PURE__ */ M.forwardRef(({
|
|
2410
2410
|
bsPrefix: n,
|
|
@@ -2421,17 +2421,17 @@ const ze = Object.assign(An, {
|
|
|
2421
2421
|
return /* @__PURE__ */ s.jsx(o, {
|
|
2422
2422
|
ref: l,
|
|
2423
2423
|
...i,
|
|
2424
|
-
className:
|
|
2424
|
+
className: v(a, c, r && `${c}-${r}`, e && `text-${e}`)
|
|
2425
2425
|
});
|
|
2426
2426
|
});
|
|
2427
2427
|
lt.displayName = "Spinner";
|
|
2428
2428
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2429
|
-
const Fn = "client_info_decoding_error", Wn = "client_info_empty_error",
|
|
2429
|
+
const Fn = "client_info_decoding_error", Wn = "client_info_empty_error", xs = "token_parsing_error", vs = "null_or_empty_token", bs = "endpoints_resolution_error", _s = "network_error", ks = "openid_config_error", js = "hash_not_deserialized", Cs = "invalid_state", Ns = "state_mismatch", $s = "state_not_found", Is = "nonce_mismatch", Ts = "auth_time_not_found", Ss = "max_age_transpired", Es = "multiple_matching_tokens", Os = "multiple_matching_accounts", Ms = "multiple_matching_appMetadata", Ps = "request_cannot_be_made", Ds = "cannot_remove_empty_scope", As = "cannot_append_scopeset", Fs = "empty_input_scopeset", Ws = "device_code_polling_cancelled", Rs = "device_code_expired", qs = "device_code_unknown_error", Ls = "no_account_in_silent_request", Ys = "invalid_cache_record", Rn = "invalid_cache_environment", Hs = "no_account_found", Bs = "no_crypto_object", Gs = "unexpected_credential_type", Us = "invalid_assertion", Vs = "invalid_client_credential", Ks = "token_refresh_required", zs = "user_timeout_reached", Qs = "token_claims_cnf_required_for_signedjwt", Xs = "authorization_code_missing_from_server_response", Js = "binding_key_not_removed", Zs = "end_session_endpoint_not_supported", ea = "key_id_missing", ta = "no_network_connectivity", na = "user_canceled", ra = "missing_tenant_id_error", oa = "method_not_implemented", sa = "nested_app_auth_bridge_disabled";
|
|
2430
2430
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2431
2431
|
const $t = {
|
|
2432
2432
|
[Fn]: "The client info could not be parsed/decoded correctly",
|
|
2433
2433
|
[Wn]: "The client info was empty",
|
|
2434
|
-
[
|
|
2434
|
+
[xs]: "Token cannot be parsed",
|
|
2435
2435
|
[vs]: "The token is null or empty",
|
|
2436
2436
|
[bs]: "Endpoints cannot be resolved",
|
|
2437
2437
|
[_s]: "Network request failed",
|
|
@@ -2460,8 +2460,8 @@ const $t = {
|
|
|
2460
2460
|
[Bs]: "No crypto object detected.",
|
|
2461
2461
|
[Gs]: "Unexpected credential type.",
|
|
2462
2462
|
[Us]: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",
|
|
2463
|
-
[
|
|
2464
|
-
[
|
|
2463
|
+
[Vs]: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",
|
|
2464
|
+
[Ks]: "Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",
|
|
2465
2465
|
[zs]: "User defined timeout for device code polling reached",
|
|
2466
2466
|
[Qs]: "Cannot generate a POP jwt if the token_claims are not populated",
|
|
2467
2467
|
[Xs]: "Server response does not contain an authorization code to proceed",
|
|
@@ -2687,15 +2687,15 @@ const Pe = {
|
|
|
2687
2687
|
desc: "Interaction is required but another interaction is already in progress. Please try again when the current interaction is complete."
|
|
2688
2688
|
}
|
|
2689
2689
|
};
|
|
2690
|
-
class
|
|
2690
|
+
class xe extends nt {
|
|
2691
2691
|
constructor(e, t) {
|
|
2692
|
-
super(e, t), Object.setPrototypeOf(this,
|
|
2692
|
+
super(e, t), Object.setPrototypeOf(this, xe.prototype), this.name = "ReactAuthError";
|
|
2693
2693
|
}
|
|
2694
2694
|
static createInvalidInteractionTypeError() {
|
|
2695
|
-
return new
|
|
2695
|
+
return new xe(Pe.invalidInteractionType.code, Pe.invalidInteractionType.desc);
|
|
2696
2696
|
}
|
|
2697
2697
|
static createUnableToFallbackToInteractionError() {
|
|
2698
|
-
return new
|
|
2698
|
+
return new xe(Pe.unableToFallbackToInteraction.code, Pe.unableToFallbackToInteraction.desc);
|
|
2699
2699
|
}
|
|
2700
2700
|
}
|
|
2701
2701
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
@@ -2720,32 +2720,32 @@ function da(n, e, t) {
|
|
|
2720
2720
|
}
|
|
2721
2721
|
}, [u, c]);
|
|
2722
2722
|
const w = T(async (p, k) => {
|
|
2723
|
-
const
|
|
2724
|
-
switch (
|
|
2723
|
+
const C = p || n, b = k || e;
|
|
2724
|
+
switch (C) {
|
|
2725
2725
|
case De.Popup:
|
|
2726
|
-
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(
|
|
2726
|
+
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(b);
|
|
2727
2727
|
case De.Redirect:
|
|
2728
|
-
return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(
|
|
2728
|
+
return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(b).then(null);
|
|
2729
2729
|
case De.Silent:
|
|
2730
|
-
return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(
|
|
2730
|
+
return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(b);
|
|
2731
2731
|
default:
|
|
2732
|
-
throw
|
|
2732
|
+
throw xe.createInvalidInteractionTypeError();
|
|
2733
2733
|
}
|
|
2734
2734
|
}, [r, n, e, a]), f = T(async (p, k) => {
|
|
2735
|
-
const
|
|
2736
|
-
let
|
|
2737
|
-
return k ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"),
|
|
2735
|
+
const C = p || n;
|
|
2736
|
+
let b;
|
|
2737
|
+
return k ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), b = {
|
|
2738
2738
|
...k
|
|
2739
|
-
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"),
|
|
2739
|
+
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"), b = {
|
|
2740
2740
|
...e,
|
|
2741
2741
|
scopes: e.scopes || pt
|
|
2742
|
-
}) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."),
|
|
2742
|
+
}) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."), b = {
|
|
2743
2743
|
scopes: pt
|
|
2744
|
-
}), !
|
|
2744
|
+
}), !b.account && l && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), b.account = l), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), r.acquireTokenSilent(b).catch(async (x) => {
|
|
2745
2745
|
if (x instanceof dt) {
|
|
2746
2746
|
if (m.current)
|
|
2747
|
-
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."),
|
|
2748
|
-
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), w(
|
|
2747
|
+
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), xe.createUnableToFallbackToInteractionError();
|
|
2748
|
+
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), w(C, b);
|
|
2749
2749
|
}
|
|
2750
2750
|
throw x;
|
|
2751
2751
|
})))().then((x) => (h.current && d([x, null]), x)).catch((x) => {
|
|
@@ -2811,16 +2811,16 @@ const ma = "_button_1wjon_1", fa = "_filled_1wjon_7", pa = "_sm_1wjon_13", ga =
|
|
|
2811
2811
|
lg: wa
|
|
2812
2812
|
}, St = ({ variant: n = "filled", color: e = "primary", size: t = "md", className: r, children: o, ...a }) => {
|
|
2813
2813
|
const { LinkComponent: i } = D(ae);
|
|
2814
|
-
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className:
|
|
2815
|
-
},
|
|
2814
|
+
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: v(`luminus-primary-button ${e} btn ${n === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${r ?? ""}`, ge.button, ge[n], ge[t]), ...a, children: o }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ s.jsx("button", { type: "button", className: v(`luminus-primary-button ${e} btn ${n === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${r ?? ""}`, ge.button, ge[n], ge[t]), ...a, children: o }) : null;
|
|
2815
|
+
}, ya = "_submit-container_a9slg_1", xa = "_spacer_a9slg_14", Et = {
|
|
2816
2816
|
"submit-container": "_submit-container_a9slg_1",
|
|
2817
|
-
submitContainer:
|
|
2818
|
-
spacer:
|
|
2817
|
+
submitContainer: ya,
|
|
2818
|
+
spacer: xa
|
|
2819
2819
|
}, va = ({ children: n, onStorno: e }) => {
|
|
2820
2820
|
const { formSubmitTexts: t } = D(ae);
|
|
2821
2821
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2822
2822
|
/* @__PURE__ */ s.jsx("div", { className: Et.spacer }),
|
|
2823
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
2823
|
+
/* @__PURE__ */ s.jsxs("div", { className: v("luminus-floating-submit-container shadow", Et.submitContainer), children: [
|
|
2824
2824
|
/* @__PURE__ */ s.jsxs(St, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
2825
2825
|
/* @__PURE__ */ s.jsx(fr, {}),
|
|
2826
2826
|
n
|
|
@@ -2842,10 +2842,10 @@ const ma = "_button_1wjon_1", fa = "_filled_1wjon_7", pa = "_sm_1wjon_13", ga =
|
|
|
2842
2842
|
...o
|
|
2843
2843
|
}) => {
|
|
2844
2844
|
const { LinkComponent: a } = D(ae);
|
|
2845
|
-
return o.as === "link" ? /* @__PURE__ */ s.jsxs(a, { to: o.href ?? "/", className:
|
|
2845
|
+
return o.as === "link" ? /* @__PURE__ */ s.jsxs(a, { to: o.href ?? "/", className: v(`luminus-context-button btn text-${n} ${t ?? ""}`, Ze.button), ...o, children: [
|
|
2846
2846
|
e,
|
|
2847
2847
|
r
|
|
2848
|
-
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ s.jsxs("button", { type: "button", className:
|
|
2848
|
+
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ s.jsxs("button", { type: "button", className: v(`luminus-context-button btn text-${n} ${t ?? ""}`, Ze.button), ...o, children: [
|
|
2849
2849
|
e,
|
|
2850
2850
|
r
|
|
2851
2851
|
] }) : null;
|
|
@@ -2854,7 +2854,7 @@ const ma = "_button_1wjon_1", fa = "_filled_1wjon_7", pa = "_sm_1wjon_13", ga =
|
|
|
2854
2854
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
2855
2855
|
};
|
|
2856
2856
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2857
|
-
/* @__PURE__ */ s.jsxs("label", { htmlFor: t, className:
|
|
2857
|
+
/* @__PURE__ */ s.jsxs("label", { htmlFor: t, className: v(`luminus-context-button btn text-${n} ${a ?? ""}`, Ze.button), ...c, children: [
|
|
2858
2858
|
e,
|
|
2859
2859
|
i
|
|
2860
2860
|
] }),
|
|
@@ -2870,7 +2870,7 @@ const ma = "_button_1wjon_1", fa = "_filled_1wjon_7", pa = "_sm_1wjon_13", ga =
|
|
|
2870
2870
|
"button",
|
|
2871
2871
|
{
|
|
2872
2872
|
type: n,
|
|
2873
|
-
className:
|
|
2873
|
+
className: v(`luminus-icon-button btn text-${e} ${o ?? ""}`, Ot.iconButton, Ot[t]),
|
|
2874
2874
|
...a,
|
|
2875
2875
|
children: r
|
|
2876
2876
|
}
|
|
@@ -2894,351 +2894,18 @@ const ma = "_button_1wjon_1", fa = "_filled_1wjon_7", pa = "_sm_1wjon_13", ga =
|
|
|
2894
2894
|
] });
|
|
2895
2895
|
}, Na = "_widget_1sdw8_1", $a = {
|
|
2896
2896
|
widget: Na
|
|
2897
|
-
},
|
|
2898
|
-
/* @__PURE__ */ s.jsx(Ue.Header, { as: "h3", children: n }),
|
|
2899
|
-
/* @__PURE__ */ s.jsx(Ue.Body, { children: e })
|
|
2900
|
-
] }), trigger: o ?? "hover", rootClose: !0, children: r }), hc = ({ InputContainer: n = qe, label: e, value: t, onChange: r, hidden: o, disabled: a, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ s.jsx(n, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, children: /* @__PURE__ */ s.jsx(Q.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: t, onChange: (u) => {
|
|
2901
|
-
var d;
|
|
2902
|
-
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
2903
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), mc = ({ InputContainer: n = qe, type: e, value: t, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: m, list: g, className: w }) => {
|
|
2904
|
-
const f = e === "number", p = T(() => {
|
|
2905
|
-
if (!r)
|
|
2906
|
-
return;
|
|
2907
|
-
const b = m ?? null;
|
|
2908
|
-
r(f ? b ? Number(b) : null : (b == null ? void 0 : b.toString()) ?? "");
|
|
2909
|
-
}, [m, f, r]), k = R(null), [j, _] = O((t == null ? void 0 : t.toString()) ?? ""), I = T((b) => {
|
|
2910
|
-
const C = b;
|
|
2911
|
-
r && (f && r(C ? parseInt(C, 10) : null), r(C || null));
|
|
2912
|
-
}, [f, r]), x = T((b) => {
|
|
2913
|
-
var $;
|
|
2914
|
-
const C = ($ = b.target) == null ? void 0 : $.value;
|
|
2915
|
-
if (!o) {
|
|
2916
|
-
I(C);
|
|
2917
|
-
return;
|
|
2918
|
-
}
|
|
2919
|
-
_(C), k.current !== null && window.clearTimeout(k.current), k.current = window.setTimeout(() => {
|
|
2920
|
-
I(C);
|
|
2921
|
-
}, o);
|
|
2922
|
-
}, [o, I]);
|
|
2923
|
-
return E(() => {
|
|
2924
|
-
_(t === null ? "" : t.toString());
|
|
2925
|
-
}, [t]), /* @__PURE__ */ s.jsxs(n, { withoutLabel: i, label: a ?? "", hidden: u, children: [
|
|
2926
|
-
/* @__PURE__ */ s.jsx(Q.Control, { type: e, placeholder: l ?? a, size: c, value: o ? j : t ?? "", onChange: x, className: w ?? "", hidden: u, disabled: d ?? !1, list: g }),
|
|
2927
|
-
h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: p, children: /* @__PURE__ */ s.jsx(ve, {}) }) })
|
|
2928
|
-
] });
|
|
2929
|
-
}, fc = ({ InputContainer: n = qe, value: e, options: t, onChange: r, label: o, withoutLabel: a, isNumber: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: h, noSortOptions: m, className: g }) => {
|
|
2930
|
-
const w = T(() => {
|
|
2931
|
-
if (!r)
|
|
2932
|
-
return;
|
|
2933
|
-
const f = h ?? null;
|
|
2934
|
-
r(i ? f ? Number(f) : null : (f == null ? void 0 : f.toString()) ?? "");
|
|
2935
|
-
}, [h, i, r]);
|
|
2936
|
-
return /* @__PURE__ */ s.jsxs(n, { withoutLabel: a, label: o ?? "", hidden: c, children: [
|
|
2937
|
-
/* @__PURE__ */ s.jsxs(Q.Select, { size: l, value: e ?? "", onChange: (f) => {
|
|
2938
|
-
var k;
|
|
2939
|
-
if (!r)
|
|
2940
|
-
return;
|
|
2941
|
-
const p = (k = f.target) == null ? void 0 : k.value;
|
|
2942
|
-
i && r(p ? parseInt(p, 10) : null), r(p || null);
|
|
2943
|
-
}, className: g ?? "", hidden: c, disabled: u ?? !1, children: [
|
|
2944
|
-
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
2945
|
-
t == null ? void 0 : t.sort((f, p) => m ? 0 : (f.name ?? "").localeCompare(p.name ?? "")).map((f) => /* @__PURE__ */ s.jsx("option", { value: f.id ?? "", children: f.name }, f.id))
|
|
2946
|
-
] }),
|
|
2947
|
-
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ s.jsx(ve, {}) }) })
|
|
2948
|
-
] });
|
|
2949
|
-
}, pc = ({ InputContainer: n = qe, items: e, defaultSelection: t, onClickSelectedItem: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, additionalColumns: m, hidden: g, disabled: w }) => {
|
|
2950
|
-
var b, C;
|
|
2951
|
-
const [f, p] = O(t), [k, j] = O(!1);
|
|
2952
|
-
E(() => {
|
|
2953
|
-
p(t);
|
|
2954
|
-
}, [t]);
|
|
2955
|
-
const _ = T(($) => {
|
|
2956
|
-
p($);
|
|
2957
|
-
}, []), I = T(($) => {
|
|
2958
|
-
j(!1), _($);
|
|
2959
|
-
}, [_]);
|
|
2960
|
-
E(() => {
|
|
2961
|
-
c && c(f);
|
|
2962
|
-
}, [f, c]);
|
|
2963
|
-
const x = R(null);
|
|
2964
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { withoutLabel: d, label: u ?? "", hidden: g, inputContainerClassName: y({ "luminus-dropdown-select-open": k }), children: [
|
|
2965
|
-
/* @__PURE__ */ s.jsxs(Q.Select, { ref: x, size: h, value: (f == null ? void 0 : f.id) ?? "", onChange: ($) => p({
|
|
2966
|
-
id: l ? Number($.target.value) ?? null : $.target.value,
|
|
2967
|
-
name: ""
|
|
2968
|
-
}), onMouseDown: ($) => {
|
|
2969
|
-
$.currentTarget.focus(), $.preventDefault();
|
|
2970
|
-
}, onClick: () => {
|
|
2971
|
-
j(!0);
|
|
2972
|
-
}, disabled: w && r === void 0, className: y({ "luminus-dropdown-picker-disabled": w }), hidden: g, children: [
|
|
2973
|
-
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
2974
|
-
t && /* @__PURE__ */ s.jsx("option", { value: t.id ?? void 0, children: t.name && ((b = t.name) == null ? void 0 : b.length) > 0 ? t.name : t.id }),
|
|
2975
|
-
f && /* @__PURE__ */ s.jsx("option", { value: f.id ?? void 0, children: f.name && ((C = f.name) == null ? void 0 : C.length) > 0 ? f.name : f.id })
|
|
2976
|
-
] }),
|
|
2977
|
-
x.current && /* @__PURE__ */ s.jsx(ht, { show: k, onCancel: () => j(!1), items: e, currentSelection: f, onSelectionChange: I, onClickSelectedItem: r, onSearchQueryChange: o, texts: a, additionalColumns: m, isLoading: i, disabled: w, inputRef: x })
|
|
2978
|
-
] }) });
|
|
2979
|
-
}, gc = ({ InputContainer: n = me, formField: e, label: t, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c }) => {
|
|
2980
|
-
const { register: u, formState: d, setValue: h } = ie(), [m, g] = O(void 0);
|
|
2981
|
-
E(() => {
|
|
2982
|
-
const f = e.split(".");
|
|
2983
|
-
let p = d.errors;
|
|
2984
|
-
f.forEach((k) => {
|
|
2985
|
-
p !== void 0 && (p = p[k]);
|
|
2986
|
-
}), g(p);
|
|
2987
|
-
}, [d, e]);
|
|
2988
|
-
const w = m !== void 0;
|
|
2989
|
-
return /* @__PURE__ */ s.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid: w, withoutLabel: c, children: [
|
|
2990
|
-
/* @__PURE__ */ s.jsx(Q.Check, { id: `check-${e}`, type: o ?? "checkbox", label: `${t}${a ? " *" : ""}`, ...u(e, {
|
|
2991
|
-
onChange: () => {
|
|
2992
|
-
r && r.forEach((f) => h(f, null));
|
|
2993
|
-
}
|
|
2994
|
-
}), isInvalid: w, hidden: i, disabled: l }),
|
|
2995
|
-
m && /* @__PURE__ */ s.jsx(fe, { message: m.message })
|
|
2996
|
-
] });
|
|
2997
|
-
}, wc = ({ InputContainer: n = me, label: e, formField: t, options: r, resetsFields: o, required: a, disabled: i, hidden: l }) => {
|
|
2998
|
-
const { register: c, formState: u, setValue: d, watch: h } = ie(), [m, g] = O(void 0), w = G(() => r, [r]);
|
|
2999
|
-
E(() => {
|
|
3000
|
-
const p = t.split(".");
|
|
3001
|
-
let k = u.errors;
|
|
3002
|
-
p.forEach((j) => {
|
|
3003
|
-
k !== void 0 && (k = k[j]);
|
|
3004
|
-
}), g(k);
|
|
3005
|
-
}, [u, t]);
|
|
3006
|
-
const f = m !== void 0;
|
|
3007
|
-
return /* @__PURE__ */ s.jsxs(n, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: f, children: [
|
|
3008
|
-
w.map((p) => /* @__PURE__ */ s.jsx(Q.Check, { id: `radio-${p.id}`, label: p.name, type: "radio", value: p.id ?? "", checked: h(t) === p.id, ...c(t, {
|
|
3009
|
-
onChange: () => {
|
|
3010
|
-
o && o.forEach((k) => d(k, null));
|
|
3011
|
-
}
|
|
3012
|
-
}), isInvalid: f, hidden: l, disabled: i }, p.id)),
|
|
3013
|
-
m && /* @__PURE__ */ s.jsx(fe, { message: m.message })
|
|
3014
|
-
] });
|
|
3015
|
-
}, xc = ({ InputContainer: n = me, formField: e, label: t, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, height: d, rows: h, withoutLabel: m }) => {
|
|
3016
|
-
const { register: g, formState: w, setValue: f, watch: p } = ie(), [k, j] = O(void 0), _ = T(() => {
|
|
3017
|
-
const b = i ?? null;
|
|
3018
|
-
f(e, (b == null ? void 0 : b.toString()) ?? "");
|
|
3019
|
-
}, [i, f, e]), I = T(() => {
|
|
3020
|
-
const b = e.split(".");
|
|
3021
|
-
let C = w.errors;
|
|
3022
|
-
b.forEach(($) => {
|
|
3023
|
-
C !== void 0 && (C = C[$]);
|
|
3024
|
-
}), j(C);
|
|
3025
|
-
}, [w, e]);
|
|
3026
|
-
E(() => {
|
|
3027
|
-
I();
|
|
3028
|
-
}, [I]);
|
|
3029
|
-
const x = k !== void 0;
|
|
3030
|
-
return /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: m, isInvalid: x, children: [
|
|
3031
|
-
/* @__PURE__ */ s.jsx(Q.Control, { as: "textarea", size: o, ...g(e, {
|
|
3032
|
-
onChange: () => {
|
|
3033
|
-
r && r.forEach((b) => f(b, null));
|
|
3034
|
-
}
|
|
3035
|
-
}), isInvalid: x, hidden: c, disabled: u, rows: h, style: {
|
|
3036
|
-
height: d ? `${d}px !important` : void 0,
|
|
3037
|
-
minHeight: d ? `${d}px !important` : void 0
|
|
3038
|
-
} }),
|
|
3039
|
-
a && p(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: _, children: /* @__PURE__ */ s.jsx(ve, {}) }) }),
|
|
3040
|
-
k && /* @__PURE__ */ s.jsx(fe, { message: k.message })
|
|
3041
|
-
] });
|
|
3042
|
-
}, yc = ({ InputContainer: n = me, type: e, formField: t, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: m, list: g }) => {
|
|
3043
|
-
const { register: w, formState: f, setValue: p, watch: k } = ie(), [j, _] = O(void 0), I = T(() => {
|
|
3044
|
-
const C = c ?? null;
|
|
3045
|
-
e === "number" ? p(t, C !== null ? Number(C) : null) : p(t, (C == null ? void 0 : C.toString()) ?? "");
|
|
3046
|
-
}, [c, e, p, t]), x = T(() => {
|
|
3047
|
-
const C = t.split(".");
|
|
3048
|
-
let $ = f.errors;
|
|
3049
|
-
C.forEach((L) => {
|
|
3050
|
-
$ !== void 0 && ($ = $[L]);
|
|
3051
|
-
}), _($);
|
|
3052
|
-
}, [f, t]);
|
|
3053
|
-
E(() => {
|
|
3054
|
-
x();
|
|
3055
|
-
}, [x]);
|
|
3056
|
-
const b = j !== void 0;
|
|
3057
|
-
return /* @__PURE__ */ s.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: b, children: [
|
|
3058
|
-
/* @__PURE__ */ s.jsx(Q.Control, { type: e, placeholder: o ?? r, size: a, ...w(t, {
|
|
3059
|
-
setValueAs: (C) => e === "number" ? C == null ? null : parseInt(C, 10) : C == null || C === "" ? null : C,
|
|
3060
|
-
onChange: () => {
|
|
3061
|
-
i && i.forEach((C) => p(C, null));
|
|
3062
|
-
}
|
|
3063
|
-
}), isInvalid: b, hidden: d, disabled: h, list: g }),
|
|
3064
|
-
l && k(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: I, children: /* @__PURE__ */ s.jsx(ve, {}) }) }),
|
|
3065
|
-
j && /* @__PURE__ */ s.jsx(fe, { message: j.message })
|
|
3066
|
-
] });
|
|
3067
|
-
}, vc = ({ InputContainer: n = me, formField: e, label: t, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, onClickSelectedItem: m, texts: g, isLoading: w, withoutLabel: f, additionalColumns: p }) => {
|
|
3068
|
-
const { formState: k, setValue: j, watch: _, control: I } = ie(), [x, b] = O(void 0), [C, $] = O(!1), [L, P] = O(!1), N = _(e), S = N === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : _(`${e}-DropdownName`), q = G(() => N == null ? null : { id: N ?? null, name: S ?? "" }, [N, S]), H = T(() => {
|
|
3069
|
-
const v = e.split(".");
|
|
3070
|
-
let W = k.errors;
|
|
3071
|
-
v.forEach((ce) => {
|
|
3072
|
-
W !== void 0 && (W = W[ce]);
|
|
3073
|
-
}), b(W);
|
|
3074
|
-
}, [k, e]), K = T((v) => {
|
|
3075
|
-
if ((v == null ? void 0 : v.id) === N)
|
|
3076
|
-
return;
|
|
3077
|
-
if (a && a.forEach((ce) => j(ce, null, { shouldDirty: !0, shouldValidate: L })), v === null) {
|
|
3078
|
-
j(e, null, {
|
|
3079
|
-
shouldDirty: !0,
|
|
3080
|
-
shouldValidate: L
|
|
3081
|
-
}), j(`${e}-DropdownName`, null);
|
|
3082
|
-
return;
|
|
3083
|
-
}
|
|
3084
|
-
let W = null;
|
|
3085
|
-
i ? W = (v == null ? void 0 : v.id) !== null ? parseInt(v.id.toString(), 10) : null : W = v.id === null || v.id === void 0 || v.id === "" ? null : v.id, j(e, W, {
|
|
3086
|
-
shouldDirty: !0,
|
|
3087
|
-
shouldValidate: L
|
|
3088
|
-
}), j(`${e}-DropdownName`, v.name ?? "");
|
|
3089
|
-
}, [j, e, L, i, a, N]), U = T((v) => {
|
|
3090
|
-
$(!1), K(v);
|
|
3091
|
-
}, [K]), te = T(() => {
|
|
3092
|
-
$(!1);
|
|
3093
|
-
}, []);
|
|
3094
|
-
E(() => {
|
|
3095
|
-
H();
|
|
3096
|
-
}, [H]), E(() => {
|
|
3097
|
-
k.isSubmitted && P(!0);
|
|
3098
|
-
}, [k]);
|
|
3099
|
-
const Z = R(null), F = x !== void 0;
|
|
3100
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid: F, inputContainerClassName: y({ "luminus-dropdown-select-open": C }), children: [
|
|
3101
|
-
/* @__PURE__ */ s.jsx(Kt, { control: I, name: e, render: () => /* @__PURE__ */ s.jsx(Q.Select, { size: r, onMouseDown: (v) => {
|
|
3102
|
-
v.currentTarget.focus(), v.preventDefault();
|
|
3103
|
-
}, onClick: () => {
|
|
3104
|
-
$(!0);
|
|
3105
|
-
}, ref: Z, value: N ?? "", onChange: () => {
|
|
3106
|
-
}, isInvalid: F, hidden: c, disabled: u && m === void 0, className: y({ "luminus-dropdown-picker-disabled": u }), children: /* @__PURE__ */ s.jsx("option", { value: N, children: (S == null ? void 0 : S.length) > 0 ? S : N }) }) }),
|
|
3107
|
-
x && /* @__PURE__ */ s.jsx(fe, { message: x.message }),
|
|
3108
|
-
Z.current && /* @__PURE__ */ s.jsx(ht, { show: C, onCancel: te, items: d, currentSelection: q, onSelectionChange: U, onClickSelectedItem: m, onSearchQueryChange: h, texts: g, additionalColumns: p, isLoading: w, disabled: u, inputRef: Z })
|
|
3109
|
-
] }) });
|
|
3110
|
-
}, bc = ({ InputContainer: n = me, label: e, formField: t, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h }) => {
|
|
3111
|
-
const { watch: m, setValue: g, register: w, formState: f } = ie(), [p, k] = O(void 0), j = T(() => {
|
|
3112
|
-
g(t, "");
|
|
3113
|
-
}, [g, t]), _ = T(() => {
|
|
3114
|
-
const x = t.split(".");
|
|
3115
|
-
let b = f.errors;
|
|
3116
|
-
x.forEach((C) => {
|
|
3117
|
-
b !== void 0 && (b = b[C]);
|
|
3118
|
-
}), k(b);
|
|
3119
|
-
}, [f, t]);
|
|
3120
|
-
E(_, [_]);
|
|
3121
|
-
const I = p !== void 0;
|
|
3122
|
-
return /* @__PURE__ */ s.jsxs(n, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: I, children: [
|
|
3123
|
-
/* @__PURE__ */ s.jsx(Tn, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: I, hidden: r, disabled: i, ...w(t, {
|
|
3124
|
-
onChange: () => {
|
|
3125
|
-
c && c.forEach((x) => g(x, null));
|
|
3126
|
-
}
|
|
3127
|
-
}) }),
|
|
3128
|
-
l && m(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ s.jsx(ve, {}) }) }),
|
|
3129
|
-
p && /* @__PURE__ */ s.jsx(fe, { message: p.message })
|
|
3130
|
-
] });
|
|
3131
|
-
}, _c = ({ children: n, onStorno: e }) => {
|
|
3132
|
-
const { formState: t } = ie(), [r, o] = O(!1);
|
|
3133
|
-
return E(() => {
|
|
3134
|
-
o(Object.keys(t.dirtyFields).length > 0);
|
|
3135
|
-
}, [t]), r ? /* @__PURE__ */ s.jsx(va, { onStorno: e, children: n }) : null;
|
|
3136
|
-
}, kc = ({ InputContainer: n = me, options: e, formField: t, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: m }) => {
|
|
3137
|
-
const { customSelectTexts: g } = D(ae), { formState: w, setValue: f, watch: p, control: k } = ie(), [j, _] = O(void 0), [I, x] = O(!1), [b, C] = O(!1), [$, L] = O(""), P = p(t), N = G(() => e.find((v) => v.id === P) ?? null, [e, P]), S = T(() => {
|
|
3138
|
-
const v = t.split(".");
|
|
3139
|
-
let W = w.errors;
|
|
3140
|
-
v.forEach((ce) => {
|
|
3141
|
-
W !== void 0 && (W = W[ce]);
|
|
3142
|
-
}), _(W);
|
|
3143
|
-
}, [w, t]), q = T((v) => {
|
|
3144
|
-
if ((v == null ? void 0 : v.id) === P)
|
|
3145
|
-
return;
|
|
3146
|
-
if (a && a.forEach((ce) => f(ce, null, { shouldDirty: !0, shouldValidate: b })), v === null) {
|
|
3147
|
-
f(t, null, {
|
|
3148
|
-
shouldDirty: !0,
|
|
3149
|
-
shouldValidate: b
|
|
3150
|
-
});
|
|
3151
|
-
return;
|
|
3152
|
-
}
|
|
3153
|
-
let W = null;
|
|
3154
|
-
i ? W = (v == null ? void 0 : v.id) !== null ? parseInt(v.id.toString(), 10) : null : W = v.id === null || v.id === void 0 || v.id === "" ? null : v.id, f(t, W, {
|
|
3155
|
-
shouldDirty: !0,
|
|
3156
|
-
shouldValidate: b
|
|
3157
|
-
});
|
|
3158
|
-
}, [f, t, b, i, a, P]), H = T((v) => {
|
|
3159
|
-
x(!1), q(v);
|
|
3160
|
-
}, [q]), K = T((v) => {
|
|
3161
|
-
L(v);
|
|
3162
|
-
}, []);
|
|
3163
|
-
E(() => {
|
|
3164
|
-
S();
|
|
3165
|
-
}, [S]), E(() => {
|
|
3166
|
-
w.isSubmitted && C(!0);
|
|
3167
|
-
}, [w]);
|
|
3168
|
-
const U = T((v) => {
|
|
3169
|
-
var W;
|
|
3170
|
-
return v === null ? "" : !v.name || v.name.length === 0 ? ((W = v.id) == null ? void 0 : W.toString()) ?? "" : m ? `${v.name} (${v.id})` : v.name;
|
|
3171
|
-
}, [m]), te = G(() => e.map((v) => ({
|
|
3172
|
-
id: v.id,
|
|
3173
|
-
name: U(v)
|
|
3174
|
-
})).filter((v) => {
|
|
3175
|
-
var W;
|
|
3176
|
-
return $ ? (W = v.name) == null ? void 0 : W.toLowerCase().includes($.toLowerCase()) : !0;
|
|
3177
|
-
}).sort((v, W) => h ? 0 : (v.name ?? "").localeCompare(W.name ?? "")), [e, h, $, U]), Z = R(null), F = j !== void 0;
|
|
3178
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: F, inputContainerClassName: y({ "luminus-dropdown-select-open": I }), children: [
|
|
3179
|
-
/* @__PURE__ */ s.jsx(Kt, { control: k, name: t, render: () => /* @__PURE__ */ s.jsx(Q.Select, { size: o, onMouseDown: (v) => {
|
|
3180
|
-
v.currentTarget.focus(), v.preventDefault();
|
|
3181
|
-
}, onClick: () => {
|
|
3182
|
-
x(!0);
|
|
3183
|
-
}, ref: Z, value: P ?? "", onChange: () => {
|
|
3184
|
-
}, isInvalid: F, hidden: c, disabled: u, children: /* @__PURE__ */ s.jsx("option", { value: (N == null ? void 0 : N.id) ?? "", children: U(N) }) }) }),
|
|
3185
|
-
j && /* @__PURE__ */ s.jsx(fe, { message: j.message }),
|
|
3186
|
-
Z.current && /* @__PURE__ */ s.jsx(ht, { show: I, onCancel: () => x(!1), items: te, currentSelection: N ?? null, onSelectionChange: H, onSearchQueryChange: K, texts: g, disabled: u, inputRef: Z, autoHideSearch: !0, allItemsLength: e.length })
|
|
3187
|
-
] }) });
|
|
3188
|
-
}, Ia = "_item_1dy8x_1", Yn = {
|
|
3189
|
-
item: Ia
|
|
3190
|
-
}, Ta = ({
|
|
3191
|
-
color: n = "primary",
|
|
3192
|
-
// icon = <MdOutlineArrowOutward />,
|
|
3193
|
-
icon: e,
|
|
3194
|
-
className: t,
|
|
3195
|
-
children: r,
|
|
3196
|
-
...o
|
|
3197
|
-
}) => /* @__PURE__ */ s.jsxs($e.Item, { className: y(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${t ?? ""}`, Yn.item), ...o, children: [
|
|
3198
|
-
e,
|
|
3199
|
-
r
|
|
3200
|
-
] }), Sa = (n) => /* @__PURE__ */ s.jsx($e.Toggle, { ...n }), jc = ({ color: n = "primary", icon: e = /* @__PURE__ */ s.jsx(qt, { size: 12 }), inputId: t = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: i, children: l, ...c }) => {
|
|
3201
|
-
const u = (d) => {
|
|
3202
|
-
d.target.files && (o(d.target.files), d.target.value = "");
|
|
3203
|
-
};
|
|
3204
|
-
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3205
|
-
/* @__PURE__ */ s.jsxs("label", { htmlFor: t, className: y(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${i ?? ""}`, Yn.item), ...c, children: [
|
|
3206
|
-
e,
|
|
3207
|
-
l
|
|
3208
|
-
] }),
|
|
3209
|
-
/* @__PURE__ */ s.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
|
|
3210
|
-
] });
|
|
3211
|
-
}, Ea = "_divider_1e6rk_1", Oa = {
|
|
3212
|
-
divider: Ea
|
|
3213
|
-
}, Cc = ({ className: n }) => /* @__PURE__ */ s.jsx($e.Divider, { className: y("luminus-dropdown-divider", n, Oa.divider) }), Ma = "_dropdown_1lk66_1", Pa = {
|
|
3214
|
-
dropdown: Ma
|
|
3215
|
-
}, Da = ({ toggle: n, children: e, ...t }) => /* @__PURE__ */ s.jsxs($e, { ...t, children: [
|
|
3216
|
-
n,
|
|
3217
|
-
/* @__PURE__ */ s.jsx($e.Menu, { className: y("luminus-dropdown rounded shadow", Pa.dropdown), children: e })
|
|
3218
|
-
] }), Nc = ({ cell: { value: n } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: n ? /* @__PURE__ */ s.jsx(wr, { name: n, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), Aa = "_tab-panel_so0nf_1", Fa = "_full-height-no-overflow_so0nf_5", Mt = {
|
|
3219
|
-
"tab-panel": "_tab-panel_so0nf_1",
|
|
3220
|
-
tabPanel: Aa,
|
|
3221
|
-
"full-height-no-overflow": "_full-height-no-overflow_so0nf_5",
|
|
3222
|
-
fullHeightNoOverflow: Fa
|
|
3223
|
-
}, $c = ({ eventKey: n, activeTab: e, fullHeightNoOverflow: t, className: r, children: o }) => n !== e ? null : /* @__PURE__ */ s.jsx("div", { className: y("luminus-tab-panel", Mt.tabPanel, { [Mt.fullHeightNoOverflow]: t }, r), children: o }), Ic = ({ activeTab: n, onSelect: e, children: t }) => /* @__PURE__ */ s.jsx("div", { className: y("luminus-tabs d-flex gap-1 mb-2"), children: t.map((r) => {
|
|
3224
|
-
const o = r.type, a = r.props.eventKey, i = r.props.children, l = r.props.className, c = r.props.onClick;
|
|
3225
|
-
return /* @__PURE__ */ Ir(o, { ...r.props, key: r.props.eventKey, className: y({ active: n === a }, l), onClick: () => {
|
|
3226
|
-
e(a), c && c(a);
|
|
3227
|
-
} }, i);
|
|
3228
|
-
}) }), Wa = "_tab_gvohp_1", Ra = {
|
|
3229
|
-
tab: Wa
|
|
3230
|
-
}, Tc = ({ eventKey: n, className: e, onClick: t, children: r }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: y("luminus-tab text-primary rounded", Ra.tab, e), onClick: () => t && t(n), children: typeof r == "string" ? /* @__PURE__ */ s.jsx(V, { variant: "h6", className: "text-primary", children: r }) : r }), qa = ({ show: n, widgets: e, handleClose: t, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ s.jsxs(Me, { show: n, onHide: () => t(), children: [
|
|
2897
|
+
}, Ia = ({ show: n, widgets: e, handleClose: t, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ s.jsxs(Me, { show: n, onHide: () => t(), children: [
|
|
3231
2898
|
/* @__PURE__ */ s.jsx(Me.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Me.Title, { children: o.pickWidgetToAdd }) }),
|
|
3232
|
-
/* @__PURE__ */ s.jsx(Me.Body, { children: /* @__PURE__ */ s.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ s.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ s.jsx(
|
|
3233
|
-
] }),
|
|
2899
|
+
/* @__PURE__ */ s.jsx(Me.Body, { children: /* @__PURE__ */ s.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ s.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ s.jsx(K, { variant: "body", children: a.name }) })) }) })
|
|
2900
|
+
] }), Mt = ({ availableWidgets: n, onAdd: e, texts: t }) => {
|
|
3234
2901
|
const [r, o] = O(!1);
|
|
3235
2902
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3236
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3237
|
-
/* @__PURE__ */ s.jsx(
|
|
2903
|
+
/* @__PURE__ */ s.jsx("div", { className: v("luminus-empty-widget", $a.widget), children: /* @__PURE__ */ s.jsx(X, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(gr, {}) }) }),
|
|
2904
|
+
/* @__PURE__ */ s.jsx(Ia, { show: r, widgets: n, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
3238
2905
|
o(!1), e(a);
|
|
3239
2906
|
}, texts: t })
|
|
3240
2907
|
] });
|
|
3241
|
-
},
|
|
2908
|
+
}, Ta = () => {
|
|
3242
2909
|
const [n, e] = O({
|
|
3243
2910
|
widgets: []
|
|
3244
2911
|
});
|
|
@@ -3250,25 +2917,25 @@ const ma = "_button_1wjon_1", fa = "_filled_1wjon_7", pa = "_sm_1wjon_13", ga =
|
|
|
3250
2917
|
e(r), localStorage.setItem("dashboardConfig", JSON.stringify(r));
|
|
3251
2918
|
}, []);
|
|
3252
2919
|
return { dashboardConfig: n, onChangeDashboardConfig: t };
|
|
3253
|
-
},
|
|
3254
|
-
dashboard:
|
|
2920
|
+
}, Sa = "_dashboard_1ikl9_1", Ea = "_widgets-grid_1ikl9_1", Oa = "_widget-wrapper_1ikl9_7", Ma = "_full-width_1ikl9_12", Pa = "_widget-edit_1ikl9_15", Da = "_remove-icon_1ikl9_18", Aa = "_full-width-icon_1ikl9_25", Fa = "_widget-edit-overlay_1ikl9_35", ne = {
|
|
2921
|
+
dashboard: Sa,
|
|
3255
2922
|
"widgets-grid": "_widgets-grid_1ikl9_1",
|
|
3256
|
-
widgetsGrid:
|
|
2923
|
+
widgetsGrid: Ea,
|
|
3257
2924
|
"widget-wrapper": "_widget-wrapper_1ikl9_7",
|
|
3258
|
-
widgetWrapper:
|
|
2925
|
+
widgetWrapper: Oa,
|
|
3259
2926
|
"full-width": "_full-width_1ikl9_12",
|
|
3260
|
-
fullWidth:
|
|
2927
|
+
fullWidth: Ma,
|
|
3261
2928
|
"widget-edit": "_widget-edit_1ikl9_15",
|
|
3262
|
-
widgetEdit:
|
|
2929
|
+
widgetEdit: Pa,
|
|
3263
2930
|
"remove-icon": "_remove-icon_1ikl9_18",
|
|
3264
|
-
removeIcon:
|
|
2931
|
+
removeIcon: Da,
|
|
3265
2932
|
"full-width-icon": "_full-width-icon_1ikl9_25",
|
|
3266
|
-
fullWidthIcon:
|
|
2933
|
+
fullWidthIcon: Aa,
|
|
3267
2934
|
"widget-edit-overlay": "_widget-edit-overlay_1ikl9_35",
|
|
3268
|
-
widgetEditOverlay:
|
|
3269
|
-
},
|
|
2935
|
+
widgetEditOverlay: Fa
|
|
2936
|
+
}, dc = ({ availableWidgets: n }) => {
|
|
3270
2937
|
var d;
|
|
3271
|
-
const { homeDashboardTexts: e } = D(ae), { dashboardConfig: t, onChangeDashboardConfig: r } =
|
|
2938
|
+
const { homeDashboardTexts: e } = D(ae), { dashboardConfig: t, onChangeDashboardConfig: r } = Ta(), [o, a] = O(!1), i = T((h, m) => {
|
|
3272
2939
|
var g, w;
|
|
3273
2940
|
h === ((g = t.widgets) == null ? void 0 : g.length) ? r({
|
|
3274
2941
|
...t,
|
|
@@ -3289,14 +2956,14 @@ const ma = "_button_1wjon_1", fa = "_filled_1wjon_7", pa = "_sm_1wjon_13", ga =
|
|
|
3289
2956
|
...t,
|
|
3290
2957
|
widgets: ((m = t.widgets) == null ? void 0 : m.map((g, w) => w === h ? { ...g, fullWidth: !g.fullWidth } : g)) ?? []
|
|
3291
2958
|
});
|
|
3292
|
-
}, [t, r]), u = T((h, m, g) => h ? /* @__PURE__ */ s.jsxs("div", { className:
|
|
2959
|
+
}, [t, r]), u = T((h, m, g) => h ? /* @__PURE__ */ s.jsxs("div", { className: v(ne.widgetWrapper, {
|
|
3293
2960
|
[ne.widgetEdit]: o && h.id !== -1
|
|
3294
2961
|
}, { [ne.fullWidth]: g }), children: [
|
|
3295
2962
|
o && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3296
|
-
/* @__PURE__ */ s.jsx(X, { color: "danger", onClick: () => l(m), className:
|
|
3297
|
-
/* @__PURE__ */ s.jsx(X, { color: g ? "danger" : "primary", onClick: () => c(m), className:
|
|
2963
|
+
/* @__PURE__ */ s.jsx(X, { color: "danger", onClick: () => l(m), className: v(ne.removeIcon), children: /* @__PURE__ */ s.jsx(Lt, {}) }),
|
|
2964
|
+
/* @__PURE__ */ s.jsx(X, { color: g ? "danger" : "primary", onClick: () => c(m), className: v(ne.fullWidthIcon), children: /* @__PURE__ */ s.jsx(wr, {}) })
|
|
3298
2965
|
] }),
|
|
3299
|
-
h.id === -1 ? o && /* @__PURE__ */ s.jsx("div", { className: ne.widgetWrapper, children: /* @__PURE__ */ s.jsx(
|
|
2966
|
+
h.id === -1 ? o && /* @__PURE__ */ s.jsx("div", { className: ne.widgetWrapper, children: /* @__PURE__ */ s.jsx(Mt, { availableWidgets: n, onAdd: (w) => i(m, w), texts: e }) }) : h.render,
|
|
3300
2967
|
h.id > -1 && o && /* @__PURE__ */ s.jsx("div", { className: ne.widgetEditOverlay })
|
|
3301
2968
|
] }, m) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
3302
2969
|
o,
|
|
@@ -3307,83 +2974,83 @@ const ma = "_button_1wjon_1", fa = "_filled_1wjon_7", pa = "_sm_1wjon_13", ga =
|
|
|
3307
2974
|
e
|
|
3308
2975
|
]);
|
|
3309
2976
|
return /* @__PURE__ */ s.jsxs("div", { className: ne.dashboard, children: [
|
|
3310
|
-
/* @__PURE__ */ s.jsx("div", { className: "mb-3 d-flex align-items-center justify-content-end", children: /* @__PURE__ */ s.jsx(qn, { as: "button", color: o ? "success" : "primary", icon: o ? /* @__PURE__ */ s.jsx(
|
|
2977
|
+
/* @__PURE__ */ s.jsx("div", { className: "mb-3 d-flex align-items-center justify-content-end", children: /* @__PURE__ */ s.jsx(qn, { as: "button", color: o ? "success" : "primary", icon: o ? /* @__PURE__ */ s.jsx(yr, {}) : /* @__PURE__ */ s.jsx(xr, {}), onClick: () => a(!o), children: o ? e.dashboardEditDone : e.dashboardEdit }) }),
|
|
3311
2978
|
/* @__PURE__ */ s.jsxs("div", { className: ne.widgetsGrid, children: [
|
|
3312
2979
|
(d = t.widgets) == null ? void 0 : d.map((h, m) => u(n.find((g) => g.id === h.widgetId), m, h.fullWidth)),
|
|
3313
|
-
o && /* @__PURE__ */ s.jsx(
|
|
2980
|
+
o && /* @__PURE__ */ s.jsx(Mt, { availableWidgets: n, onAdd: (h) => {
|
|
3314
2981
|
var m;
|
|
3315
2982
|
return i((m = t.widgets) == null ? void 0 : m.length, h);
|
|
3316
2983
|
}, texts: e })
|
|
3317
2984
|
] })
|
|
3318
2985
|
] });
|
|
3319
|
-
},
|
|
3320
|
-
badge:
|
|
3321
|
-
sm:
|
|
3322
|
-
md:
|
|
3323
|
-
lg:
|
|
3324
|
-
},
|
|
2986
|
+
}, Wa = "_badge_nhser_1", Ra = "_sm_nhser_1", qa = "_md_nhser_4", La = "_lg_nhser_7", Pt = {
|
|
2987
|
+
badge: Wa,
|
|
2988
|
+
sm: Ra,
|
|
2989
|
+
md: qa,
|
|
2990
|
+
lg: La
|
|
2991
|
+
}, hc = ({ children: n, color: e = "primary", size: t = "md", className: r }) => /* @__PURE__ */ s.jsx("span", { className: v(`luminus-badge badge bg-${e} ${r ?? ""}`, Pt.badge, Pt[t]), children: n }), Ya = "_collapse-icon_1ahhn_1", Ha = "_collapsed_1ahhn_6", Dt = {
|
|
3325
2992
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
3326
|
-
collapseIcon:
|
|
3327
|
-
collapsed:
|
|
3328
|
-
},
|
|
2993
|
+
collapseIcon: Ya,
|
|
2994
|
+
collapsed: Ha
|
|
2995
|
+
}, mc = ({ title: n, children: e, className: t, ...r }) => {
|
|
3329
2996
|
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = O(o), l = r.controlled ? r.isOpen : a;
|
|
3330
2997
|
return E(() => {
|
|
3331
2998
|
i(o);
|
|
3332
2999
|
}, [o]), /* @__PURE__ */ s.jsxs("div", { className: t ?? "", children: [
|
|
3333
3000
|
/* @__PURE__ */ s.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => r.controlled ? r.onToggle(!r.isOpen) : i(!a), children: [
|
|
3334
|
-
/* @__PURE__ */ s.jsx(
|
|
3335
|
-
/* @__PURE__ */ s.jsx(Yt, { className:
|
|
3336
|
-
[
|
|
3001
|
+
/* @__PURE__ */ s.jsx(K, { variant: "h6", children: n }),
|
|
3002
|
+
/* @__PURE__ */ s.jsx(Yt, { className: v(Dt.collapseIcon, {
|
|
3003
|
+
[Dt.collapsed]: l
|
|
3337
3004
|
}) })
|
|
3338
3005
|
] }),
|
|
3339
3006
|
/* @__PURE__ */ s.jsx(nn, { in: l, children: /* @__PURE__ */ s.jsx("div", { children: e }) }),
|
|
3340
3007
|
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
3341
3008
|
] });
|
|
3342
|
-
},
|
|
3343
|
-
feedback:
|
|
3009
|
+
}, Ba = "_feedback_esh1j_1", Ga = "_feedback-spacer_esh1j_8", At = {
|
|
3010
|
+
feedback: Ba,
|
|
3344
3011
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
3345
|
-
feedbackSpacer:
|
|
3012
|
+
feedbackSpacer: Ga
|
|
3346
3013
|
}, fe = ({ message: n }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3347
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3348
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3014
|
+
/* @__PURE__ */ s.jsx("div", { className: v("invalid-feedback luminus-invalid-feedback", At.feedback), children: n }),
|
|
3015
|
+
/* @__PURE__ */ s.jsx("div", { className: v("invalid-feedback-spacer", At.feedbackSpacer), children: n })
|
|
3349
3016
|
] });
|
|
3350
|
-
function
|
|
3017
|
+
function Ua(n, e, t) {
|
|
3351
3018
|
var r = this, o = R(null), a = R(0), i = R(null), l = R([]), c = R(), u = R(), d = R(n), h = R(!0);
|
|
3352
3019
|
d.current = n;
|
|
3353
3020
|
var m = typeof window < "u", g = !e && e !== 0 && m;
|
|
3354
3021
|
if (typeof n != "function")
|
|
3355
3022
|
throw new TypeError("Expected a function");
|
|
3356
3023
|
e = +e || 0;
|
|
3357
|
-
var w = !!(t = t || {}).leading, f = !("trailing" in t) || !!t.trailing, p = "maxWait" in t, k = "debounceOnServer" in t && !!t.debounceOnServer,
|
|
3024
|
+
var w = !!(t = t || {}).leading, f = !("trailing" in t) || !!t.trailing, p = "maxWait" in t, k = "debounceOnServer" in t && !!t.debounceOnServer, C = p ? Math.max(+t.maxWait || 0, e) : null;
|
|
3358
3025
|
E(function() {
|
|
3359
3026
|
return h.current = !0, function() {
|
|
3360
3027
|
h.current = !1;
|
|
3361
3028
|
};
|
|
3362
3029
|
}, []);
|
|
3363
|
-
var
|
|
3030
|
+
var b = G(function() {
|
|
3364
3031
|
var I = function(P) {
|
|
3365
3032
|
var N = l.current, S = c.current;
|
|
3366
3033
|
return l.current = c.current = null, a.current = P, u.current = d.current.apply(S, N);
|
|
3367
3034
|
}, x = function(P, N) {
|
|
3368
3035
|
g && cancelAnimationFrame(i.current), i.current = g ? requestAnimationFrame(P) : setTimeout(P, N);
|
|
3369
|
-
},
|
|
3036
|
+
}, _ = function(P) {
|
|
3370
3037
|
if (!h.current)
|
|
3371
3038
|
return !1;
|
|
3372
3039
|
var N = P - o.current;
|
|
3373
|
-
return !o.current || N >= e || N < 0 || p && P - a.current >=
|
|
3374
|
-
},
|
|
3040
|
+
return !o.current || N >= e || N < 0 || p && P - a.current >= C;
|
|
3041
|
+
}, j = function(P) {
|
|
3375
3042
|
return i.current = null, f && l.current ? I(P) : (l.current = c.current = null, u.current);
|
|
3376
3043
|
}, $ = function P() {
|
|
3377
3044
|
var N = Date.now();
|
|
3378
|
-
if (
|
|
3379
|
-
return
|
|
3045
|
+
if (_(N))
|
|
3046
|
+
return j(N);
|
|
3380
3047
|
if (h.current) {
|
|
3381
|
-
var S = e - (N - o.current), q = p ? Math.min(S,
|
|
3048
|
+
var S = e - (N - o.current), q = p ? Math.min(S, C - (N - a.current)) : S;
|
|
3382
3049
|
x(P, q);
|
|
3383
3050
|
}
|
|
3384
3051
|
}, L = function() {
|
|
3385
3052
|
if (m || k) {
|
|
3386
|
-
var P = Date.now(), N =
|
|
3053
|
+
var P = Date.now(), N = _(P);
|
|
3387
3054
|
if (l.current = [].slice.call(arguments), c.current = r, o.current = P, N) {
|
|
3388
3055
|
if (!i.current && h.current)
|
|
3389
3056
|
return a.current = o.current, x($, e), w ? I(o.current) : u.current;
|
|
@@ -3398,58 +3065,58 @@ function oi(n, e, t) {
|
|
|
3398
3065
|
}, L.isPending = function() {
|
|
3399
3066
|
return !!i.current;
|
|
3400
3067
|
}, L.flush = function() {
|
|
3401
|
-
return i.current ?
|
|
3068
|
+
return i.current ? j(Date.now()) : u.current;
|
|
3402
3069
|
}, L;
|
|
3403
|
-
}, [w, p, e,
|
|
3404
|
-
return
|
|
3070
|
+
}, [w, p, e, C, f, g, m, k]);
|
|
3071
|
+
return b;
|
|
3405
3072
|
}
|
|
3406
|
-
function
|
|
3073
|
+
function Va(n, e) {
|
|
3407
3074
|
return n === e;
|
|
3408
3075
|
}
|
|
3409
|
-
function
|
|
3076
|
+
function Ka(n, e) {
|
|
3410
3077
|
return e;
|
|
3411
3078
|
}
|
|
3412
|
-
function
|
|
3413
|
-
var r =
|
|
3079
|
+
function Yn(n, e, t) {
|
|
3080
|
+
var r = Va, o = Gt(Ka, n), a = o[0], i = o[1], l = Ua(T(function(u) {
|
|
3414
3081
|
return i(u);
|
|
3415
3082
|
}, [i]), e, t), c = R(n);
|
|
3416
3083
|
return r(c.current, n) || (l(n), c.current = n), [a, l];
|
|
3417
3084
|
}
|
|
3418
|
-
const
|
|
3419
|
-
wrapper:
|
|
3420
|
-
open:
|
|
3421
|
-
dropdown:
|
|
3085
|
+
const za = "_wrapper_ov00y_1", Qa = "_open_ov00y_9", Xa = "_dropdown_ov00y_13", Ja = "_selected-button_ov00y_19", Za = "_search-input-container_ov00y_28", ei = "_search-input_ov00y_28", ti = "_loading-container_ov00y_34", ni = "_items-container_ov00y_41", ri = "_header-row_ov00y_47", oi = "_item_ov00y_41", si = "_name_ov00y_66", ai = "_column-item_ov00y_71", ii = "_icon_ov00y_78", ci = "_clear-button_ov00y_86", B = {
|
|
3086
|
+
wrapper: za,
|
|
3087
|
+
open: Qa,
|
|
3088
|
+
dropdown: Xa,
|
|
3422
3089
|
"selected-button": "_selected-button_ov00y_19",
|
|
3423
|
-
selectedButton:
|
|
3090
|
+
selectedButton: Ja,
|
|
3424
3091
|
"search-input-container": "_search-input-container_ov00y_28",
|
|
3425
|
-
searchInputContainer:
|
|
3092
|
+
searchInputContainer: Za,
|
|
3426
3093
|
"search-input": "_search-input_ov00y_28",
|
|
3427
|
-
searchInput:
|
|
3094
|
+
searchInput: ei,
|
|
3428
3095
|
"loading-container": "_loading-container_ov00y_34",
|
|
3429
|
-
loadingContainer:
|
|
3096
|
+
loadingContainer: ti,
|
|
3430
3097
|
"items-container": "_items-container_ov00y_41",
|
|
3431
|
-
itemsContainer:
|
|
3098
|
+
itemsContainer: ni,
|
|
3432
3099
|
"header-row": "_header-row_ov00y_47",
|
|
3433
|
-
headerRow:
|
|
3434
|
-
item:
|
|
3435
|
-
name:
|
|
3100
|
+
headerRow: ri,
|
|
3101
|
+
item: oi,
|
|
3102
|
+
name: si,
|
|
3436
3103
|
"column-item": "_column-item_ov00y_71",
|
|
3437
|
-
columnItem:
|
|
3438
|
-
icon:
|
|
3104
|
+
columnItem: ai,
|
|
3105
|
+
icon: ii,
|
|
3439
3106
|
"clear-button": "_clear-button_ov00y_86",
|
|
3440
|
-
clearButton:
|
|
3107
|
+
clearButton: ci
|
|
3441
3108
|
}, ht = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: o, onClickSelectedItem: a, onSearchQueryChange: i, texts: l, additionalColumns: c, autoHideSearch: u = !1, allItemsLength: d, disabled: h, isLoading: m = !1, inputRef: g }) => {
|
|
3442
3109
|
var Z;
|
|
3443
|
-
const w = R(null), f = R(null), p = R(null), [k,
|
|
3110
|
+
const w = R(null), f = R(null), p = R(null), [k, C] = O(""), [b] = Yn(k, 500), [, I] = O(!1), x = (Z = g.current) == null ? void 0 : Z.getBoundingClientRect(), _ = (x == null ? void 0 : x.x) ?? 0, j = ((x == null ? void 0 : x.x) ?? 0) + ((x == null ? void 0 : x.width) ?? 0), $ = (x == null ? void 0 : x.y) ?? 0, L = ((x == null ? void 0 : x.y) ?? 0) + ((x == null ? void 0 : x.height) ?? 0), P = (x == null ? void 0 : x.width) ?? 0, N = (x == null ? void 0 : x.height) ?? 0, S = 5, q = G(() => _ ? _ > window.innerWidth / 2 : !1, [_]), H = G(() => $ ? $ > window.innerHeight / 2 : !1, [$]);
|
|
3444
3111
|
E(() => {
|
|
3445
3112
|
var F;
|
|
3446
3113
|
n && ((F = p.current) == null || F.focus());
|
|
3447
3114
|
}, [p, n]), E(() => {
|
|
3448
|
-
n ||
|
|
3115
|
+
n || C("");
|
|
3449
3116
|
}, [n]), E(() => {
|
|
3450
|
-
i(
|
|
3451
|
-
}, [
|
|
3452
|
-
const
|
|
3117
|
+
i(b);
|
|
3118
|
+
}, [b, i]);
|
|
3119
|
+
const V = T((F) => {
|
|
3453
3120
|
switch (F.key) {
|
|
3454
3121
|
case "Escape":
|
|
3455
3122
|
F.stopPropagation(), e();
|
|
@@ -3462,75 +3129,105 @@ const ii = "_wrapper_ov00y_1", ci = "_open_ov00y_9", li = "_dropdown_ov00y_13",
|
|
|
3462
3129
|
window.removeEventListener("scroll", U);
|
|
3463
3130
|
}), [U]), E(() => (window.addEventListener("resize", U), () => {
|
|
3464
3131
|
window.removeEventListener("resize", U);
|
|
3465
|
-
}), [U]), zt(
|
|
3132
|
+
}), [U]), zt(V), Qt([w, f], e);
|
|
3466
3133
|
const te = `calc(max(${P}px, ${c && (c == null ? void 0 : c.length) > 0 ? "250px" : "0px"}) + ${((c == null ? void 0 : c.length) ?? 0) * 100}px) `;
|
|
3467
3134
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3468
3135
|
/* @__PURE__ */ s.jsx(Bn, { show: n, onClick: e }),
|
|
3469
|
-
r && n && !h && /* @__PURE__ */ s.jsx("button", { ref: f, type: "button", className:
|
|
3136
|
+
r && n && !h && /* @__PURE__ */ s.jsx("button", { ref: f, type: "button", className: v("luminus-dropdown-picker-clear-button", B.clearButton), onClick: () => !h && o(null), style: {
|
|
3470
3137
|
top: `calc(${$}px + ${N / 2}px - 12px)`,
|
|
3471
|
-
left: `calc(${
|
|
3472
|
-
}, children: /* @__PURE__ */ s.jsx(
|
|
3473
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3138
|
+
left: `calc(${_}px - 24px - 8px)`
|
|
3139
|
+
}, children: /* @__PURE__ */ s.jsx(K, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(Lt, { size: 16 }) }) }),
|
|
3140
|
+
/* @__PURE__ */ s.jsx("div", { className: v("luminus-dropdown-picker", B.wrapper, {
|
|
3474
3141
|
[B.open]: n
|
|
3475
3142
|
}), style: {
|
|
3476
3143
|
top: H ? `calc(${$}px - 50vh - 8px)` : `calc(${L}px + 8px)`,
|
|
3477
|
-
left: q ? `calc(${
|
|
3478
|
-
right: q ? `${
|
|
3144
|
+
left: q ? `calc(${j}px - ${te})` : _,
|
|
3145
|
+
right: q ? `${j}px` : `calc(${_}px + ${te})`,
|
|
3479
3146
|
width: te,
|
|
3480
3147
|
justifyContent: H ? "flex-end" : "flex-start"
|
|
3481
|
-
}, children: /* @__PURE__ */ s.jsxs("div", { ref: w, className:
|
|
3148
|
+
}, children: /* @__PURE__ */ s.jsxs("div", { ref: w, className: v("shadow rounded", B.dropdown), children: [
|
|
3482
3149
|
r && a && /* @__PURE__ */ s.jsxs("button", { type: "button", onClick: () => {
|
|
3483
3150
|
e(), a(r);
|
|
3484
|
-
}, className:
|
|
3485
|
-
/* @__PURE__ */ s.jsx("div", { className: B.name, children: /* @__PURE__ */ s.jsx(
|
|
3486
|
-
/* @__PURE__ */ s.jsx("div", { className: B.icon, children: /* @__PURE__ */ s.jsx(
|
|
3151
|
+
}, className: v("selected-button", B.selectedButton), children: [
|
|
3152
|
+
/* @__PURE__ */ s.jsx("div", { className: B.name, children: /* @__PURE__ */ s.jsx(K, { variant: "body2", children: r.name }) }),
|
|
3153
|
+
/* @__PURE__ */ s.jsx("div", { className: B.icon, children: /* @__PURE__ */ s.jsx(K, { variant: "caption", className: "text-primary align-items-center", children: /* @__PURE__ */ s.jsx(Ht, {}) }) })
|
|
3487
3154
|
] }),
|
|
3488
3155
|
!h && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3489
|
-
u && (d ?? t.length) <= S ? null : /* @__PURE__ */ s.jsx("div", { className:
|
|
3490
|
-
var
|
|
3491
|
-
return
|
|
3156
|
+
u && (d ?? t.length) <= S ? null : /* @__PURE__ */ s.jsx("div", { className: v("search-input-container border-bottom", B.searchInputContainer), children: /* @__PURE__ */ s.jsx(Q.Control, { ref: p, type: "search", size: "sm", className: B.searchInput, placeholder: l.searchPlaceholder, value: k, onChange: (F) => {
|
|
3157
|
+
var y;
|
|
3158
|
+
return C(((y = F.target) == null ? void 0 : y.value) ?? "");
|
|
3492
3159
|
} }) }),
|
|
3493
|
-
m ? /* @__PURE__ */ s.jsx("div", { className: B.loadingContainer, children: /* @__PURE__ */ s.jsx(lt, { animation: "border", variant: "primary" }) }) : t.length > 0 && /* @__PURE__ */ s.jsxs("div", { className:
|
|
3494
|
-
c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className:
|
|
3160
|
+
m ? /* @__PURE__ */ s.jsx("div", { className: B.loadingContainer, children: /* @__PURE__ */ s.jsx(lt, { animation: "border", variant: "primary" }) }) : t.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: v("items", B.itemsContainer), children: [
|
|
3161
|
+
c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: v("header-row border-bottom", B.headerRow), children: [
|
|
3495
3162
|
/* @__PURE__ */ s.jsx("div", { className: B.name }),
|
|
3496
|
-
c == null ? void 0 : c.map((F) => /* @__PURE__ */ s.jsx("div", { className: B.columnItem, children: /* @__PURE__ */ s.jsx(
|
|
3163
|
+
c == null ? void 0 : c.map((F) => /* @__PURE__ */ s.jsx("div", { className: B.columnItem, children: /* @__PURE__ */ s.jsx(K, { variant: "caption", children: F.name }) }, F.key))
|
|
3497
3164
|
] }),
|
|
3498
|
-
t == null ? void 0 : t.map((F) => /* @__PURE__ */ s.jsxs("button", { type: "button", className:
|
|
3499
|
-
/* @__PURE__ */ s.jsx("div", { className: B.name, children: /* @__PURE__ */ s.jsx(
|
|
3500
|
-
c == null ? void 0 : c.map((
|
|
3165
|
+
t == null ? void 0 : t.map((F) => /* @__PURE__ */ s.jsxs("button", { type: "button", className: v("item cursor-pointer", B.item), onClick: () => !h && o(F), children: [
|
|
3166
|
+
/* @__PURE__ */ s.jsx("div", { className: B.name, children: /* @__PURE__ */ s.jsx(K, { variant: "body2", children: F.name }) }),
|
|
3167
|
+
c == null ? void 0 : c.map((y) => /* @__PURE__ */ s.jsx("div", { className: B.columnItem, children: /* @__PURE__ */ s.jsx(K, { variant: "caption", className: v("text-muted"), children: F.additionalColumns && F.additionalColumns[y.key] }) }, y.key))
|
|
3501
3168
|
] }, F.id))
|
|
3502
3169
|
] })
|
|
3503
3170
|
] })
|
|
3504
3171
|
] }) })
|
|
3505
3172
|
] });
|
|
3506
3173
|
};
|
|
3507
|
-
function
|
|
3508
|
-
return
|
|
3174
|
+
function li(n) {
|
|
3175
|
+
return vr({ 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: [] }] })(n);
|
|
3509
3176
|
}
|
|
3510
|
-
const
|
|
3511
|
-
|
|
3512
|
-
|
|
3177
|
+
const ui = "_item_1dy8x_1", Hn = {
|
|
3178
|
+
item: ui
|
|
3179
|
+
}, di = ({
|
|
3180
|
+
color: n = "primary",
|
|
3181
|
+
// icon = <MdOutlineArrowOutward />,
|
|
3182
|
+
icon: e,
|
|
3183
|
+
className: t,
|
|
3184
|
+
children: r,
|
|
3185
|
+
...o
|
|
3186
|
+
}) => /* @__PURE__ */ s.jsxs($e.Item, { className: v(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${t ?? ""}`, Hn.item), ...o, children: [
|
|
3187
|
+
e,
|
|
3188
|
+
r
|
|
3189
|
+
] }), hi = (n) => /* @__PURE__ */ s.jsx($e.Toggle, { ...n }), fc = ({ color: n = "primary", icon: e = /* @__PURE__ */ s.jsx(qt, { size: 12 }), inputId: t = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: i, children: l, ...c }) => {
|
|
3190
|
+
const u = (d) => {
|
|
3191
|
+
d.target.files && (o(d.target.files), d.target.value = "");
|
|
3192
|
+
};
|
|
3193
|
+
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3194
|
+
/* @__PURE__ */ s.jsxs("label", { htmlFor: t, className: v(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${i ?? ""}`, Hn.item), ...c, children: [
|
|
3195
|
+
e,
|
|
3196
|
+
l
|
|
3197
|
+
] }),
|
|
3198
|
+
/* @__PURE__ */ s.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
|
|
3199
|
+
] });
|
|
3200
|
+
}, mi = "_divider_1e6rk_1", fi = {
|
|
3201
|
+
divider: mi
|
|
3202
|
+
}, pc = ({ className: n }) => /* @__PURE__ */ s.jsx($e.Divider, { className: v("luminus-dropdown-divider", n, fi.divider) }), pi = "_dropdown_1lk66_1", gi = {
|
|
3203
|
+
dropdown: pi
|
|
3204
|
+
}, wi = ({ toggle: n, children: e, ...t }) => /* @__PURE__ */ s.jsxs($e, { ...t, children: [
|
|
3205
|
+
n,
|
|
3206
|
+
/* @__PURE__ */ s.jsx($e.Menu, { className: v("luminus-dropdown rounded shadow", gi.dropdown), children: e })
|
|
3207
|
+
] }), yi = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PURE__ */ s.jsx(wi, { toggle: /* @__PURE__ */ s.jsx(hi, { as: br, icon: null, text: e == null ? void 0 : e.text }), children: n.map((r) => /* @__PURE__ */ s.jsx(di, { icon: null, onClick: () => t(r), children: r.text }, r.key)) }), xi = "_dropdown_1ddrg_1", vi = "_open_1ddrg_12", bi = "_loading-container_1ddrg_15", _i = "_groups-container_1ddrg_22", ki = "_group_1ddrg_22", ji = "_header_1ddrg_26", Ci = "_item_1ddrg_33", le = {
|
|
3208
|
+
dropdown: xi,
|
|
3209
|
+
open: vi,
|
|
3513
3210
|
"loading-container": "_loading-container_1ddrg_15",
|
|
3514
|
-
loadingContainer:
|
|
3211
|
+
loadingContainer: bi,
|
|
3515
3212
|
"groups-container": "_groups-container_1ddrg_22",
|
|
3516
|
-
groupsContainer:
|
|
3517
|
-
group:
|
|
3518
|
-
header:
|
|
3519
|
-
item:
|
|
3520
|
-
},
|
|
3213
|
+
groupsContainer: _i,
|
|
3214
|
+
group: ki,
|
|
3215
|
+
header: ji,
|
|
3216
|
+
item: Ci
|
|
3217
|
+
}, Ni = ({ show: n, query: e, onCancel: t, groups: r, isLoading: o, searchTypes: a }) => {
|
|
3521
3218
|
const { LinkComponent: i, appSearchTexts: l } = D(ae), c = R(null), u = T((d) => {
|
|
3522
3219
|
var m;
|
|
3523
3220
|
const h = (m = a.find((g) => g.key === d.type)) == null ? void 0 : m.toPath;
|
|
3524
3221
|
return h ? `${h}/${d.searchKey}` : "/not-found";
|
|
3525
3222
|
}, [a]);
|
|
3526
|
-
return Qt([c], t), /* @__PURE__ */ s.jsx("div", { ref: c, className:
|
|
3223
|
+
return Qt([c], t), /* @__PURE__ */ s.jsx("div", { ref: c, className: v("luminus-app-search-dropdown shadow rounded", le.dropdown, {
|
|
3527
3224
|
[le.open]: n
|
|
3528
3225
|
}), children: o ? /* @__PURE__ */ s.jsx("div", { className: le.loadingContainer, children: /* @__PURE__ */ s.jsx(lt, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: le.groupsContainer, children: r == null ? void 0 : r.map((d) => {
|
|
3529
3226
|
var h;
|
|
3530
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
3531
|
-
/* @__PURE__ */ s.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className:
|
|
3532
|
-
/* @__PURE__ */ s.jsx(
|
|
3533
|
-
/* @__PURE__ */ s.jsxs(
|
|
3227
|
+
return /* @__PURE__ */ s.jsxs("div", { className: v(le.group), children: [
|
|
3228
|
+
/* @__PURE__ */ s.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: v("group-header", le.header), onClick: t, children: [
|
|
3229
|
+
/* @__PURE__ */ s.jsx(K, { variant: "body", className: "text-primary", children: d.key.categoryName }),
|
|
3230
|
+
/* @__PURE__ */ s.jsxs(K, { variant: "caption", children: [
|
|
3534
3231
|
d.items.length,
|
|
3535
3232
|
" ",
|
|
3536
3233
|
l.amountFrom,
|
|
@@ -3542,29 +3239,29 @@ const _i = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PU
|
|
|
3542
3239
|
i,
|
|
3543
3240
|
{
|
|
3544
3241
|
to: u(m),
|
|
3545
|
-
className:
|
|
3242
|
+
className: v("search-item d-flex gap-3 align-items-center justify-content-between", le.item),
|
|
3546
3243
|
onClick: t,
|
|
3547
3244
|
children: [
|
|
3548
|
-
/* @__PURE__ */ s.jsx(
|
|
3549
|
-
/* @__PURE__ */ s.jsx(
|
|
3245
|
+
/* @__PURE__ */ s.jsx(K, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
|
|
3246
|
+
/* @__PURE__ */ s.jsx(K, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(Ht, {}) })
|
|
3550
3247
|
]
|
|
3551
3248
|
},
|
|
3552
3249
|
g
|
|
3553
3250
|
))
|
|
3554
3251
|
] }, d.key.category);
|
|
3555
3252
|
}) }) });
|
|
3556
|
-
},
|
|
3253
|
+
}, $i = "_input-group_1lkfy_1", Ii = "_input-group-text_1lkfy_5", Ti = "_left_1lkfy_9", Si = "_right_1lkfy_13", Ei = "_input_1lkfy_1", Oi = "_submit-button_1lkfy_20", ue = {
|
|
3557
3254
|
"input-group": "_input-group_1lkfy_1",
|
|
3558
|
-
inputGroup:
|
|
3255
|
+
inputGroup: $i,
|
|
3559
3256
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
3560
|
-
inputGroupText:
|
|
3561
|
-
left:
|
|
3562
|
-
right:
|
|
3563
|
-
input:
|
|
3257
|
+
inputGroupText: Ii,
|
|
3258
|
+
left: Ti,
|
|
3259
|
+
right: Si,
|
|
3260
|
+
input: Ei,
|
|
3564
3261
|
"submit-button": "_submit-button_1lkfy_20",
|
|
3565
|
-
submitButton:
|
|
3566
|
-
},
|
|
3567
|
-
const t =
|
|
3262
|
+
submitButton: Oi
|
|
3263
|
+
}, Mi = (n, e) => {
|
|
3264
|
+
const t = _r(), [r, o] = O(!1), [a, i] = O([]), l = !n || !n.key, c = T(() => {
|
|
3568
3265
|
if (e.length < 3) {
|
|
3569
3266
|
i([]);
|
|
3570
3267
|
return;
|
|
@@ -3578,74 +3275,74 @@ const _i = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PU
|
|
|
3578
3275
|
return E(() => {
|
|
3579
3276
|
c();
|
|
3580
3277
|
}, [c]), { isLoading: r, searchItems: a };
|
|
3581
|
-
},
|
|
3582
|
-
const { appSearchTexts: t } = D(ae), [r, o] = O(n.length > 0 ? n[0] : null), [a, i] = O(""), [l, c] =
|
|
3278
|
+
}, gc = ({ searchTypes: n, navigateFunction: e }) => {
|
|
3279
|
+
const { appSearchTexts: t } = D(ae), [r, o] = O(n.length > 0 ? n[0] : null), [a, i] = O(""), [l, c] = Yn(a, 500), { isLoading: u, searchItems: d } = Mi(r, l), [h, m] = O(!1);
|
|
3583
3280
|
return E(() => {
|
|
3584
3281
|
(d.length > 0 || u) && m(!0);
|
|
3585
3282
|
}, [d, u]), /* @__PURE__ */ s.jsx(Q, { onSubmit: (g) => {
|
|
3586
3283
|
g.preventDefault(), g.stopPropagation(), c.flush(), m(!1), a.length > 2 && e(`/search?query=${a}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
|
|
3587
3284
|
}, children: /* @__PURE__ */ s.jsxs(ze, { className: ue.inputGroup, children: [
|
|
3588
|
-
/* @__PURE__ */ s.jsx(ze.Text, { className:
|
|
3589
|
-
/* @__PURE__ */ s.jsx(Q.Control, { placeholder: t.searchPlaceholder, type: "text", size: "sm", className:
|
|
3285
|
+
/* @__PURE__ */ s.jsx(ze.Text, { className: v("p-1 rounded", ue.inputGroupText, ue.left), children: /* @__PURE__ */ s.jsx(yi, { searchTypes: n, selectedType: r, setSelectedType: o }) }),
|
|
3286
|
+
/* @__PURE__ */ s.jsx(Q.Control, { placeholder: t.searchPlaceholder, type: "text", size: "sm", className: v("luminus-app-search-input", ue.input), value: a, onChange: (g) => {
|
|
3590
3287
|
var w;
|
|
3591
3288
|
return i(((w = g.target) == null ? void 0 : w.value) ?? "");
|
|
3592
3289
|
}, onFocus: () => d.length > 0 && m(!0) }),
|
|
3593
|
-
/* @__PURE__ */ s.jsx(ze.Text, { className:
|
|
3594
|
-
/* @__PURE__ */ s.jsx(
|
|
3290
|
+
/* @__PURE__ */ s.jsx(ze.Text, { className: v("p-0 rounded", ue.inputGroupText, ue.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: v("text-primary", ue.submitButton), children: /* @__PURE__ */ s.jsx(li, {}) }) }),
|
|
3291
|
+
/* @__PURE__ */ s.jsx(Ni, { query: l, searchTypes: n, show: h, onCancel: () => m(!1), groups: d, isLoading: u })
|
|
3595
3292
|
] }) });
|
|
3596
|
-
},
|
|
3597
|
-
card:
|
|
3598
|
-
header:
|
|
3293
|
+
}, Pi = "_card_1459b_1", Di = "_header_1459b_6", Ai = "_header-content_1459b_13", Fi = "_collapse-icon_1459b_19", Wi = "_collapsed_1459b_24", Ri = "_content_1459b_27", we = {
|
|
3294
|
+
card: Pi,
|
|
3295
|
+
header: Di,
|
|
3599
3296
|
"header-content": "_header-content_1459b_13",
|
|
3600
|
-
headerContent:
|
|
3297
|
+
headerContent: Ai,
|
|
3601
3298
|
"collapse-icon": "_collapse-icon_1459b_19",
|
|
3602
|
-
collapseIcon:
|
|
3603
|
-
collapsed:
|
|
3604
|
-
content:
|
|
3605
|
-
},
|
|
3299
|
+
collapseIcon: Fi,
|
|
3300
|
+
collapsed: Wi,
|
|
3301
|
+
content: Ri
|
|
3302
|
+
}, wc = ({ title: n, headerContent: e, children: t, className: r, headerClassName: o, contentClassName: a, ...i }) => {
|
|
3606
3303
|
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] = O(l), d = i.collapsible ? i.controlled ? i.isOpen : c : !0;
|
|
3607
3304
|
return E(() => {
|
|
3608
3305
|
u(l);
|
|
3609
|
-
}, [l]), /* @__PURE__ */ s.jsxs("div", { className:
|
|
3306
|
+
}, [l]), /* @__PURE__ */ s.jsxs("div", { className: v("luminus-card rounded shadow-sm", we.card, {
|
|
3610
3307
|
[r ?? ""]: r
|
|
3611
3308
|
}), children: [
|
|
3612
|
-
/* @__PURE__ */ s.jsxs("div", { role: i.collapsible ? "button" : void 0, className:
|
|
3309
|
+
/* @__PURE__ */ s.jsxs("div", { role: i.collapsible ? "button" : void 0, className: v("header", we.header, {
|
|
3613
3310
|
[o ?? ""]: o
|
|
3614
3311
|
}), onClick: () => {
|
|
3615
3312
|
i.collapsible && (i.controlled ? i.onToggle(!i.isOpen) : u(!c));
|
|
3616
3313
|
}, children: [
|
|
3617
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
3618
|
-
/* @__PURE__ */ s.jsx(
|
|
3314
|
+
/* @__PURE__ */ s.jsxs("div", { className: v("header-content", we.headerContent), children: [
|
|
3315
|
+
/* @__PURE__ */ s.jsx(K, { variant: "h6", className: "text-primary", children: n }),
|
|
3619
3316
|
e ?? null
|
|
3620
3317
|
] }),
|
|
3621
|
-
i.collapsible && /* @__PURE__ */ s.jsx(Yt, { className:
|
|
3318
|
+
i.collapsible && /* @__PURE__ */ s.jsx(Yt, { className: v(we.collapseIcon, {
|
|
3622
3319
|
[we.collapsed]: d
|
|
3623
3320
|
}) })
|
|
3624
3321
|
] }),
|
|
3625
|
-
/* @__PURE__ */ s.jsx(nn, { in: d, children: /* @__PURE__ */ s.jsx("div", { className:
|
|
3322
|
+
/* @__PURE__ */ s.jsx(nn, { in: d, children: /* @__PURE__ */ s.jsx("div", { className: v("card-content border-top border-primary", we.content, {
|
|
3626
3323
|
[a ?? ""]: a
|
|
3627
3324
|
}), children: t }) })
|
|
3628
3325
|
] });
|
|
3629
|
-
},
|
|
3630
|
-
lightbox:
|
|
3631
|
-
show:
|
|
3632
|
-
header:
|
|
3326
|
+
}, qi = "_lightbox_1mwxl_1", Li = "_show_1mwxl_16", Yi = "_header_1mwxl_20", Hi = "_photo-actions_1mwxl_26", Bi = "_photo-container_1mwxl_31", Gi = "_photo_1mwxl_26", Ui = "_nav-button_1mwxl_41", Vi = "_photos-preview_1mwxl_49", Ki = "_selected_1mwxl_61", ee = {
|
|
3327
|
+
lightbox: qi,
|
|
3328
|
+
show: Li,
|
|
3329
|
+
header: Yi,
|
|
3633
3330
|
"photo-actions": "_photo-actions_1mwxl_26",
|
|
3634
|
-
photoActions:
|
|
3331
|
+
photoActions: Hi,
|
|
3635
3332
|
"photo-container": "_photo-container_1mwxl_31",
|
|
3636
|
-
photoContainer:
|
|
3637
|
-
photo:
|
|
3333
|
+
photoContainer: Bi,
|
|
3334
|
+
photo: Gi,
|
|
3638
3335
|
"nav-button": "_nav-button_1mwxl_41",
|
|
3639
|
-
navButton:
|
|
3336
|
+
navButton: Ui,
|
|
3640
3337
|
"photos-preview": "_photos-preview_1mwxl_49",
|
|
3641
|
-
photosPreview:
|
|
3642
|
-
selected:
|
|
3643
|
-
},
|
|
3644
|
-
backdrop:
|
|
3645
|
-
show:
|
|
3646
|
-
}, Bn = ({ show: n, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className:
|
|
3647
|
-
[
|
|
3648
|
-
}), onClick: () => e && e() }),
|
|
3338
|
+
photosPreview: Vi,
|
|
3339
|
+
selected: Ki
|
|
3340
|
+
}, zi = "_backdrop_1sik0_1", Qi = "_show_1sik0_11", Ft = {
|
|
3341
|
+
backdrop: zi,
|
|
3342
|
+
show: Qi
|
|
3343
|
+
}, Bn = ({ show: n, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: v("luminus-backdrop", Ft.backdrop, {
|
|
3344
|
+
[Ft.show]: n
|
|
3345
|
+
}), onClick: () => e && e() }), Xi = ({ show: n, onClose: e, photos: t, defaultIndex: r, uploadPhotosText: o, onUploadPhotos: a, photoActions: i }) => {
|
|
3649
3346
|
const l = R(null), [c, u] = O(r), d = t.at(c), h = c > 0, m = c < t.length - 1;
|
|
3650
3347
|
E(() => {
|
|
3651
3348
|
n && u(r);
|
|
@@ -3667,11 +3364,11 @@ const _i = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PU
|
|
|
3667
3364
|
}, [m, h, e]);
|
|
3668
3365
|
return zt(g), t.length === 0 ? null : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3669
3366
|
/* @__PURE__ */ s.jsx(Bn, { show: n, onClick: e }),
|
|
3670
|
-
/* @__PURE__ */ s.jsxs("div", { ref: l, className:
|
|
3367
|
+
/* @__PURE__ */ s.jsxs("div", { ref: l, className: v("luminus-lightbox rounded shadow", ee.lightbox, {
|
|
3671
3368
|
[ee.show]: n
|
|
3672
3369
|
}), children: [
|
|
3673
3370
|
/* @__PURE__ */ s.jsxs("div", { className: ee.header, children: [
|
|
3674
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
3371
|
+
/* @__PURE__ */ s.jsxs("div", { className: v("rounded", ee.photoActions), children: [
|
|
3675
3372
|
a && /* @__PURE__ */ s.jsx(Ln, { accept: ".jpg,.jpeg,.png", onUpload: (w) => {
|
|
3676
3373
|
w.length > 0 && a(Array.from(w));
|
|
3677
3374
|
}, icon: /* @__PURE__ */ s.jsx(Bt, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
@@ -3688,19 +3385,19 @@ const _i = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PU
|
|
|
3688
3385
|
/* @__PURE__ */ s.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ s.jsx(ve, { style: { fontSize: "32px" } }) })
|
|
3689
3386
|
] }),
|
|
3690
3387
|
d && /* @__PURE__ */ s.jsxs("div", { className: ee.photoContainer, children: [
|
|
3691
|
-
/* @__PURE__ */ s.jsx("div", { role: h ? "button" : void 0, className:
|
|
3692
|
-
/* @__PURE__ */ s.jsx("img", { src: d.lgSrc, alt: d.alt, className:
|
|
3693
|
-
/* @__PURE__ */ s.jsx("div", { role: m ? "button" : void 0, className:
|
|
3388
|
+
/* @__PURE__ */ s.jsx("div", { role: h ? "button" : void 0, className: v("align-items-start", ee.navButton), onClick: () => h && u((w) => w - 1), children: h && /* @__PURE__ */ s.jsx(ot, { style: { fontSize: "40px" } }) }),
|
|
3389
|
+
/* @__PURE__ */ s.jsx("img", { src: d.lgSrc, alt: d.alt, className: v("rounded", ee.photo) }),
|
|
3390
|
+
/* @__PURE__ */ s.jsx("div", { role: m ? "button" : void 0, className: v("align-items-end", ee.navButton), onClick: () => m && u((w) => w + 1), children: m && /* @__PURE__ */ s.jsx(st, { style: { fontSize: "40px" } }) })
|
|
3694
3391
|
] }),
|
|
3695
3392
|
/* @__PURE__ */ s.jsx("div", { className: ee.photosPreview, children: t.map((w, f) => (
|
|
3696
3393
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
3697
|
-
/* @__PURE__ */ s.jsx("img", { role: f !== c ? "button" : void 0, src: w.smSrc, alt: w.alt, className:
|
|
3394
|
+
/* @__PURE__ */ s.jsx("img", { role: f !== c ? "button" : void 0, src: w.smSrc, alt: w.alt, className: v("rounded", ee.photo, {
|
|
3698
3395
|
[ee.selected]: f === c
|
|
3699
3396
|
}), onClick: () => u(f) }, w.id)
|
|
3700
3397
|
)) })
|
|
3701
3398
|
] })
|
|
3702
3399
|
] });
|
|
3703
|
-
},
|
|
3400
|
+
}, yc = ({ photos: n, onUploadPhotos: e, uploadPhotosText: t, photoActions: r }) => {
|
|
3704
3401
|
const [o, a] = O(null), i = o !== null ? n[o] : null, [l, c] = O(!1);
|
|
3705
3402
|
return E(() => {
|
|
3706
3403
|
if (n.length === 0) {
|
|
@@ -3720,63 +3417,366 @@ const _i = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PU
|
|
|
3720
3417
|
onClick: () => c(!0)
|
|
3721
3418
|
}
|
|
3722
3419
|
),
|
|
3723
|
-
/* @__PURE__ */ s.jsx(
|
|
3420
|
+
/* @__PURE__ */ s.jsx(Xi, { show: l, onClose: () => c(!1), photos: n, defaultIndex: o ?? 0, uploadPhotosText: t, onUploadPhotos: e, photoActions: r })
|
|
3724
3421
|
] }) : e ? /* @__PURE__ */ s.jsx(Ln, { accept: ".jpg,.jpeg,.png", onUpload: (u) => {
|
|
3725
3422
|
u.length > 0 && e(Array.from(u));
|
|
3726
3423
|
}, icon: /* @__PURE__ */ s.jsx(Bt, { style: { fontSize: 18 } }), multiple: !0, children: t ?? null }) : null;
|
|
3727
|
-
},
|
|
3728
|
-
const { NavigateComponent: e } = D(ae), { useMsal: t, msalScopes: r } = D(
|
|
3424
|
+
}, xc = ({ children: n }) => {
|
|
3425
|
+
const { NavigateComponent: e } = D(ae), { useMsal: t, msalScopes: r } = D(kr), { isAuthenticated: o } = jr(), { user: a } = D(Cr);
|
|
3729
3426
|
return t ? /* @__PURE__ */ s.jsx(ha, { interactionType: De.Popup, authenticationRequest: { scopes: r }, children: a && n }) : !o() || !a ? /* @__PURE__ */ s.jsx(e, { to: "/login", replace: !0 }) : n;
|
|
3730
|
-
}
|
|
3427
|
+
}, vc = ({ heading: n, content: e, placement: t, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(Nr, { placement: t, overlay: /* @__PURE__ */ s.jsxs(Ue, { className: "luminus-tooltip", children: [
|
|
3428
|
+
/* @__PURE__ */ s.jsx(Ue.Header, { as: "h3", children: n }),
|
|
3429
|
+
/* @__PURE__ */ s.jsx(Ue.Body, { children: e })
|
|
3430
|
+
] }), trigger: o ?? "hover", rootClose: !0, children: r }), bc = ({ InputContainer: n = qe, label: e, value: t, onChange: r, hidden: o, disabled: a, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ s.jsx(n, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, children: /* @__PURE__ */ s.jsx(Q.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: t, onChange: (u) => {
|
|
3431
|
+
var d;
|
|
3432
|
+
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3433
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), _c = ({ InputContainer: n = qe, type: e, value: t, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: m, list: g, className: w }) => {
|
|
3434
|
+
const f = e === "number", p = T(() => {
|
|
3435
|
+
if (!r)
|
|
3436
|
+
return;
|
|
3437
|
+
const _ = m ?? null;
|
|
3438
|
+
r(f ? _ ? Number(_) : null : (_ == null ? void 0 : _.toString()) ?? "");
|
|
3439
|
+
}, [m, f, r]), k = R(null), [C, b] = O((t == null ? void 0 : t.toString()) ?? ""), I = T((_) => {
|
|
3440
|
+
const j = _;
|
|
3441
|
+
r && (f && r(j ? parseInt(j, 10) : null), r(j || null));
|
|
3442
|
+
}, [f, r]), x = T((_) => {
|
|
3443
|
+
var $;
|
|
3444
|
+
const j = ($ = _.target) == null ? void 0 : $.value;
|
|
3445
|
+
if (!o) {
|
|
3446
|
+
I(j);
|
|
3447
|
+
return;
|
|
3448
|
+
}
|
|
3449
|
+
b(j), k.current !== null && window.clearTimeout(k.current), k.current = window.setTimeout(() => {
|
|
3450
|
+
I(j);
|
|
3451
|
+
}, o);
|
|
3452
|
+
}, [o, I]);
|
|
3453
|
+
return E(() => {
|
|
3454
|
+
b(t === null ? "" : t.toString());
|
|
3455
|
+
}, [t]), /* @__PURE__ */ s.jsxs(n, { withoutLabel: i, label: a ?? "", hidden: u, children: [
|
|
3456
|
+
/* @__PURE__ */ s.jsx(Q.Control, { type: e, placeholder: l ?? a, size: c, value: o ? C : t ?? "", onChange: x, className: w ?? "", hidden: u, disabled: d ?? !1, list: g }),
|
|
3457
|
+
h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: p, children: /* @__PURE__ */ s.jsx(ve, {}) }) })
|
|
3458
|
+
] });
|
|
3459
|
+
}, kc = ({ InputContainer: n = qe, value: e, options: t, onChange: r, label: o, withoutLabel: a, isNumber: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: h, noSortOptions: m, className: g }) => {
|
|
3460
|
+
const w = T(() => {
|
|
3461
|
+
if (!r)
|
|
3462
|
+
return;
|
|
3463
|
+
const f = h ?? null;
|
|
3464
|
+
r(i ? f ? Number(f) : null : (f == null ? void 0 : f.toString()) ?? "");
|
|
3465
|
+
}, [h, i, r]);
|
|
3466
|
+
return /* @__PURE__ */ s.jsxs(n, { withoutLabel: a, label: o ?? "", hidden: c, children: [
|
|
3467
|
+
/* @__PURE__ */ s.jsxs(Q.Select, { size: l, value: e ?? "", onChange: (f) => {
|
|
3468
|
+
var k;
|
|
3469
|
+
if (!r)
|
|
3470
|
+
return;
|
|
3471
|
+
const p = (k = f.target) == null ? void 0 : k.value;
|
|
3472
|
+
i && r(p ? parseInt(p, 10) : null), r(p || null);
|
|
3473
|
+
}, className: g ?? "", hidden: c, disabled: u ?? !1, children: [
|
|
3474
|
+
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3475
|
+
t == null ? void 0 : t.sort((f, p) => m ? 0 : (f.name ?? "").localeCompare(p.name ?? "")).map((f) => /* @__PURE__ */ s.jsx("option", { value: f.id ?? "", children: f.name }, f.id))
|
|
3476
|
+
] }),
|
|
3477
|
+
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ s.jsx(ve, {}) }) })
|
|
3478
|
+
] });
|
|
3479
|
+
}, jc = ({ InputContainer: n = qe, items: e, defaultSelection: t, onClickSelectedItem: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, additionalColumns: m, hidden: g, disabled: w }) => {
|
|
3480
|
+
var _, j;
|
|
3481
|
+
const [f, p] = O(t), [k, C] = O(!1);
|
|
3482
|
+
E(() => {
|
|
3483
|
+
p(t);
|
|
3484
|
+
}, [t]);
|
|
3485
|
+
const b = T(($) => {
|
|
3486
|
+
p($);
|
|
3487
|
+
}, []), I = T(($) => {
|
|
3488
|
+
C(!1), b($);
|
|
3489
|
+
}, [b]);
|
|
3490
|
+
E(() => {
|
|
3491
|
+
c && c(f);
|
|
3492
|
+
}, [f, c]);
|
|
3493
|
+
const x = R(null);
|
|
3494
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { withoutLabel: d, label: u ?? "", hidden: g, inputContainerClassName: v({ "luminus-dropdown-select-open": k }), children: [
|
|
3495
|
+
/* @__PURE__ */ s.jsxs(Q.Select, { ref: x, size: h, value: (f == null ? void 0 : f.id) ?? "", onChange: ($) => p({
|
|
3496
|
+
id: l ? Number($.target.value) ?? null : $.target.value,
|
|
3497
|
+
name: ""
|
|
3498
|
+
}), onMouseDown: ($) => {
|
|
3499
|
+
$.currentTarget.focus(), $.preventDefault();
|
|
3500
|
+
}, onClick: () => {
|
|
3501
|
+
C(!0);
|
|
3502
|
+
}, disabled: w && r === void 0, className: v({ "luminus-dropdown-picker-disabled": w }), hidden: g, children: [
|
|
3503
|
+
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3504
|
+
t && /* @__PURE__ */ s.jsx("option", { value: t.id ?? void 0, children: t.name && ((_ = t.name) == null ? void 0 : _.length) > 0 ? t.name : t.id }),
|
|
3505
|
+
f && /* @__PURE__ */ s.jsx("option", { value: f.id ?? void 0, children: f.name && ((j = f.name) == null ? void 0 : j.length) > 0 ? f.name : f.id })
|
|
3506
|
+
] }),
|
|
3507
|
+
x.current && /* @__PURE__ */ s.jsx(ht, { show: k, onCancel: () => C(!1), items: e, currentSelection: f, onSelectionChange: I, onClickSelectedItem: r, onSearchQueryChange: o, texts: a, additionalColumns: m, isLoading: i, disabled: w, inputRef: x })
|
|
3508
|
+
] }) });
|
|
3509
|
+
}, Cc = ({ InputContainer: n = me, formField: e, label: t, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c }) => {
|
|
3510
|
+
const { register: u, formState: d, setValue: h } = ie(), [m, g] = O(void 0);
|
|
3511
|
+
E(() => {
|
|
3512
|
+
const f = e.split(".");
|
|
3513
|
+
let p = d.errors;
|
|
3514
|
+
f.forEach((k) => {
|
|
3515
|
+
p !== void 0 && (p = p[k]);
|
|
3516
|
+
}), g(p);
|
|
3517
|
+
}, [d, e]);
|
|
3518
|
+
const w = m !== void 0;
|
|
3519
|
+
return /* @__PURE__ */ s.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid: w, withoutLabel: c, children: [
|
|
3520
|
+
/* @__PURE__ */ s.jsx(Q.Check, { id: `check-${e}`, type: o ?? "checkbox", label: `${t}${a ? " *" : ""}`, ...u(e, {
|
|
3521
|
+
onChange: () => {
|
|
3522
|
+
r && r.forEach((f) => h(f, null));
|
|
3523
|
+
}
|
|
3524
|
+
}), isInvalid: w, hidden: i, disabled: l }),
|
|
3525
|
+
m && /* @__PURE__ */ s.jsx(fe, { message: m.message })
|
|
3526
|
+
] });
|
|
3527
|
+
}, Nc = ({ InputContainer: n = me, label: e, formField: t, options: r, resetsFields: o, required: a, disabled: i, hidden: l }) => {
|
|
3528
|
+
const { register: c, formState: u, setValue: d, watch: h } = ie(), [m, g] = O(void 0), w = G(() => r, [r]);
|
|
3529
|
+
E(() => {
|
|
3530
|
+
const p = t.split(".");
|
|
3531
|
+
let k = u.errors;
|
|
3532
|
+
p.forEach((C) => {
|
|
3533
|
+
k !== void 0 && (k = k[C]);
|
|
3534
|
+
}), g(k);
|
|
3535
|
+
}, [u, t]);
|
|
3536
|
+
const f = m !== void 0;
|
|
3537
|
+
return /* @__PURE__ */ s.jsxs(n, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: f, children: [
|
|
3538
|
+
w.map((p) => /* @__PURE__ */ s.jsx(Q.Check, { id: `radio-${p.id}`, label: p.name, type: "radio", value: p.id ?? "", checked: h(t) === p.id, ...c(t, {
|
|
3539
|
+
onChange: () => {
|
|
3540
|
+
o && o.forEach((k) => d(k, null));
|
|
3541
|
+
}
|
|
3542
|
+
}), isInvalid: f, hidden: l, disabled: i }, p.id)),
|
|
3543
|
+
m && /* @__PURE__ */ s.jsx(fe, { message: m.message })
|
|
3544
|
+
] });
|
|
3545
|
+
}, $c = ({ InputContainer: n = me, formField: e, label: t, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, height: d, rows: h, withoutLabel: m }) => {
|
|
3546
|
+
const { register: g, formState: w, setValue: f, watch: p } = ie(), [k, C] = O(void 0), b = T(() => {
|
|
3547
|
+
const _ = i ?? null;
|
|
3548
|
+
f(e, (_ == null ? void 0 : _.toString()) ?? "");
|
|
3549
|
+
}, [i, f, e]), I = T(() => {
|
|
3550
|
+
const _ = e.split(".");
|
|
3551
|
+
let j = w.errors;
|
|
3552
|
+
_.forEach(($) => {
|
|
3553
|
+
j !== void 0 && (j = j[$]);
|
|
3554
|
+
}), C(j);
|
|
3555
|
+
}, [w, e]);
|
|
3556
|
+
E(() => {
|
|
3557
|
+
I();
|
|
3558
|
+
}, [I]);
|
|
3559
|
+
const x = k !== void 0;
|
|
3560
|
+
return /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: m, isInvalid: x, children: [
|
|
3561
|
+
/* @__PURE__ */ s.jsx(Q.Control, { as: "textarea", size: o, ...g(e, {
|
|
3562
|
+
onChange: () => {
|
|
3563
|
+
r && r.forEach((_) => f(_, null));
|
|
3564
|
+
}
|
|
3565
|
+
}), isInvalid: x, hidden: c, disabled: u, rows: h, style: {
|
|
3566
|
+
height: d ? `${d}px !important` : void 0,
|
|
3567
|
+
minHeight: d ? `${d}px !important` : void 0
|
|
3568
|
+
} }),
|
|
3569
|
+
a && p(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ s.jsx(ve, {}) }) }),
|
|
3570
|
+
k && /* @__PURE__ */ s.jsx(fe, { message: k.message })
|
|
3571
|
+
] });
|
|
3572
|
+
}, Ic = ({ InputContainer: n = me, type: e, formField: t, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: m, list: g }) => {
|
|
3573
|
+
const { register: w, formState: f, setValue: p, watch: k } = ie(), [C, b] = O(void 0), I = T(() => {
|
|
3574
|
+
const j = c ?? null;
|
|
3575
|
+
e === "number" ? p(t, j !== null ? Number(j) : null) : p(t, (j == null ? void 0 : j.toString()) ?? "");
|
|
3576
|
+
}, [c, e, p, t]), x = T(() => {
|
|
3577
|
+
const j = t.split(".");
|
|
3578
|
+
let $ = f.errors;
|
|
3579
|
+
j.forEach((L) => {
|
|
3580
|
+
$ !== void 0 && ($ = $[L]);
|
|
3581
|
+
}), b($);
|
|
3582
|
+
}, [f, t]);
|
|
3583
|
+
E(() => {
|
|
3584
|
+
x();
|
|
3585
|
+
}, [x]);
|
|
3586
|
+
const _ = C !== void 0;
|
|
3587
|
+
return /* @__PURE__ */ s.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: _, children: [
|
|
3588
|
+
/* @__PURE__ */ s.jsx(Q.Control, { type: e, placeholder: o ?? r, size: a, ...w(t, {
|
|
3589
|
+
setValueAs: (j) => e === "number" ? j == null || j === "" ? null : parseInt(j, 10) : j == null || j === "" ? null : j,
|
|
3590
|
+
onChange: () => {
|
|
3591
|
+
i && i.forEach((j) => p(j, null, { shouldDirty: !0, shouldValidate: !0 }));
|
|
3592
|
+
}
|
|
3593
|
+
}), isInvalid: _, hidden: d, disabled: h, list: g }),
|
|
3594
|
+
l && k(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: I, children: /* @__PURE__ */ s.jsx(ve, {}) }) }),
|
|
3595
|
+
C && /* @__PURE__ */ s.jsx(fe, { message: C.message })
|
|
3596
|
+
] });
|
|
3597
|
+
}, Tc = ({ InputContainer: n = me, formField: e, label: t, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, onClickSelectedItem: m, texts: g, isLoading: w, withoutLabel: f, additionalColumns: p }) => {
|
|
3598
|
+
const { formState: k, setValue: C, watch: b, control: I } = ie(), [x, _] = O(void 0), [j, $] = O(!1), [L, P] = O(!1), N = b(e), S = N === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : b(`${e}-DropdownName`), q = G(() => N == null ? null : { id: N ?? null, name: S ?? "" }, [N, S]), H = T(() => {
|
|
3599
|
+
const y = e.split(".");
|
|
3600
|
+
let W = k.errors;
|
|
3601
|
+
y.forEach((ce) => {
|
|
3602
|
+
W !== void 0 && (W = W[ce]);
|
|
3603
|
+
}), _(W);
|
|
3604
|
+
}, [k, e]), V = T((y) => {
|
|
3605
|
+
if ((y == null ? void 0 : y.id) === N)
|
|
3606
|
+
return;
|
|
3607
|
+
if (a && a.forEach((ce) => C(ce, null, { shouldDirty: !0, shouldValidate: !0 })), y === null) {
|
|
3608
|
+
C(e, null, {
|
|
3609
|
+
shouldDirty: !0,
|
|
3610
|
+
shouldValidate: L
|
|
3611
|
+
}), C(`${e}-DropdownName`, null);
|
|
3612
|
+
return;
|
|
3613
|
+
}
|
|
3614
|
+
let W = null;
|
|
3615
|
+
i ? W = (y == null ? void 0 : y.id) !== null && (y == null ? void 0 : y.id) !== "" ? parseInt(y.id.toString(), 10) : null : W = y.id === null || y.id === void 0 || y.id === "" ? null : y.id, C(e, W, {
|
|
3616
|
+
shouldDirty: !0,
|
|
3617
|
+
shouldValidate: L
|
|
3618
|
+
}), C(`${e}-DropdownName`, y.name ?? "");
|
|
3619
|
+
}, [C, e, L, i, a, N]), U = T((y) => {
|
|
3620
|
+
$(!1), V(y);
|
|
3621
|
+
}, [V]), te = T(() => {
|
|
3622
|
+
$(!1);
|
|
3623
|
+
}, []);
|
|
3624
|
+
E(() => {
|
|
3625
|
+
H();
|
|
3626
|
+
}, [H]), E(() => {
|
|
3627
|
+
k.isSubmitted && P(!0);
|
|
3628
|
+
}, [k]);
|
|
3629
|
+
const Z = R(null), F = x !== void 0;
|
|
3630
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid: F, inputContainerClassName: v({ "luminus-dropdown-select-open": j }), children: [
|
|
3631
|
+
/* @__PURE__ */ s.jsx(Vt, { control: I, name: e, render: () => /* @__PURE__ */ s.jsx(Q.Select, { size: r, onMouseDown: (y) => {
|
|
3632
|
+
y.currentTarget.focus(), y.preventDefault();
|
|
3633
|
+
}, onClick: () => {
|
|
3634
|
+
$(!0);
|
|
3635
|
+
}, ref: Z, value: N ?? "", onChange: () => {
|
|
3636
|
+
}, isInvalid: F, hidden: c, disabled: u && m === void 0, className: v({ "luminus-dropdown-picker-disabled": u }), children: /* @__PURE__ */ s.jsx("option", { value: N, children: (S == null ? void 0 : S.length) > 0 ? S : N }) }) }),
|
|
3637
|
+
x && /* @__PURE__ */ s.jsx(fe, { message: x.message }),
|
|
3638
|
+
Z.current && /* @__PURE__ */ s.jsx(ht, { show: j, onCancel: te, items: d, currentSelection: q, onSelectionChange: U, onClickSelectedItem: m, onSearchQueryChange: h, texts: g, additionalColumns: p, isLoading: w, disabled: u, inputRef: Z })
|
|
3639
|
+
] }) });
|
|
3640
|
+
}, Sc = ({ InputContainer: n = me, label: e, formField: t, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h }) => {
|
|
3641
|
+
const { watch: m, setValue: g, register: w, formState: f } = ie(), [p, k] = O(void 0), C = T(() => {
|
|
3642
|
+
g(t, "");
|
|
3643
|
+
}, [g, t]), b = T(() => {
|
|
3644
|
+
const x = t.split(".");
|
|
3645
|
+
let _ = f.errors;
|
|
3646
|
+
x.forEach((j) => {
|
|
3647
|
+
_ !== void 0 && (_ = _[j]);
|
|
3648
|
+
}), k(_);
|
|
3649
|
+
}, [f, t]);
|
|
3650
|
+
E(b, [b]);
|
|
3651
|
+
const I = p !== void 0;
|
|
3652
|
+
return /* @__PURE__ */ s.jsxs(n, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: I, children: [
|
|
3653
|
+
/* @__PURE__ */ s.jsx(Tn, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: I, hidden: r, disabled: i, ...w(t, {
|
|
3654
|
+
onChange: () => {
|
|
3655
|
+
c && c.forEach((x) => g(x, null));
|
|
3656
|
+
}
|
|
3657
|
+
}) }),
|
|
3658
|
+
l && m(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(ve, {}) }) }),
|
|
3659
|
+
p && /* @__PURE__ */ s.jsx(fe, { message: p.message })
|
|
3660
|
+
] });
|
|
3661
|
+
}, Ec = ({ children: n, onStorno: e }) => {
|
|
3662
|
+
const { formState: t } = ie(), [r, o] = O(!1);
|
|
3663
|
+
return E(() => {
|
|
3664
|
+
o(Object.keys(t.dirtyFields).length > 0);
|
|
3665
|
+
}, [t]), r ? /* @__PURE__ */ s.jsx(va, { onStorno: e, children: n }) : null;
|
|
3666
|
+
}, Oc = ({ InputContainer: n = me, options: e, formField: t, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: m }) => {
|
|
3667
|
+
const { customSelectTexts: g } = D(ae), { formState: w, setValue: f, watch: p, control: k } = ie(), [C, b] = O(void 0), [I, x] = O(!1), [_, j] = O(!1), [$, L] = O(""), P = p(t), N = G(() => e.find((y) => y.id === P) ?? null, [e, P]), S = T(() => {
|
|
3668
|
+
const y = t.split(".");
|
|
3669
|
+
let W = w.errors;
|
|
3670
|
+
y.forEach((ce) => {
|
|
3671
|
+
W !== void 0 && (W = W[ce]);
|
|
3672
|
+
}), b(W);
|
|
3673
|
+
}, [w, t]), q = T((y) => {
|
|
3674
|
+
if ((y == null ? void 0 : y.id) === P)
|
|
3675
|
+
return;
|
|
3676
|
+
if (a && a.forEach((ce) => f(ce, null, { shouldDirty: !0, shouldValidate: !0 })), y === null) {
|
|
3677
|
+
f(t, null, {
|
|
3678
|
+
shouldDirty: !0,
|
|
3679
|
+
shouldValidate: _
|
|
3680
|
+
});
|
|
3681
|
+
return;
|
|
3682
|
+
}
|
|
3683
|
+
let W = null;
|
|
3684
|
+
i ? W = (y == null ? void 0 : y.id) !== null && (y == null ? void 0 : y.id) !== "" ? parseInt(y.id.toString(), 10) : null : W = y.id === null || y.id === void 0 || y.id === "" ? null : y.id, f(t, W, {
|
|
3685
|
+
shouldDirty: !0,
|
|
3686
|
+
shouldValidate: _
|
|
3687
|
+
});
|
|
3688
|
+
}, [f, t, i, a, P, _]), H = T((y) => {
|
|
3689
|
+
x(!1), q(y);
|
|
3690
|
+
}, [q]), V = T((y) => {
|
|
3691
|
+
L(y);
|
|
3692
|
+
}, []);
|
|
3693
|
+
E(() => {
|
|
3694
|
+
S();
|
|
3695
|
+
}, [S]), E(() => {
|
|
3696
|
+
w.isSubmitted && j(!0);
|
|
3697
|
+
}, [w]);
|
|
3698
|
+
const U = T((y) => {
|
|
3699
|
+
var W;
|
|
3700
|
+
return y === null ? "" : !y.name || y.name.length === 0 ? ((W = y.id) == null ? void 0 : W.toString()) ?? "" : m ? `${y.name} (${y.id})` : y.name;
|
|
3701
|
+
}, [m]), te = G(() => e.map((y) => ({
|
|
3702
|
+
id: y.id,
|
|
3703
|
+
name: U(y)
|
|
3704
|
+
})).filter((y) => {
|
|
3705
|
+
var W;
|
|
3706
|
+
return $ ? (W = y.name) == null ? void 0 : W.toLowerCase().includes($.toLowerCase()) : !0;
|
|
3707
|
+
}).sort((y, W) => h ? 0 : (y.name ?? "").localeCompare(W.name ?? "")), [e, h, $, U]), Z = R(null), F = C !== void 0;
|
|
3708
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: F, inputContainerClassName: v({ "luminus-dropdown-select-open": I }), children: [
|
|
3709
|
+
/* @__PURE__ */ s.jsx(Vt, { control: k, name: t, render: () => /* @__PURE__ */ s.jsx(Q.Select, { size: o, onMouseDown: (y) => {
|
|
3710
|
+
y.currentTarget.focus(), y.preventDefault();
|
|
3711
|
+
}, onClick: () => {
|
|
3712
|
+
x(!0);
|
|
3713
|
+
}, ref: Z, value: P ?? "", onChange: () => {
|
|
3714
|
+
}, isInvalid: F, hidden: c, disabled: u, children: /* @__PURE__ */ s.jsx("option", { value: (N == null ? void 0 : N.id) ?? "", children: U(N) }) }) }),
|
|
3715
|
+
C && /* @__PURE__ */ s.jsx(fe, { message: C.message }),
|
|
3716
|
+
Z.current && /* @__PURE__ */ s.jsx(ht, { show: I, onCancel: () => x(!1), items: te, currentSelection: N ?? null, onSelectionChange: H, onSearchQueryChange: V, texts: g, disabled: u, inputRef: Z, autoHideSearch: !0, allItemsLength: e.length })
|
|
3717
|
+
] }) });
|
|
3718
|
+
}, Mc = ({ cell: { value: n } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: n ? /* @__PURE__ */ s.jsx($r, { name: n, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), Ji = "_tab-panel_so0nf_1", Zi = "_full-height-no-overflow_so0nf_5", Wt = {
|
|
3719
|
+
"tab-panel": "_tab-panel_so0nf_1",
|
|
3720
|
+
tabPanel: Ji,
|
|
3721
|
+
"full-height-no-overflow": "_full-height-no-overflow_so0nf_5",
|
|
3722
|
+
fullHeightNoOverflow: Zi
|
|
3723
|
+
}, Pc = ({ eventKey: n, activeTab: e, fullHeightNoOverflow: t, className: r, children: o }) => n !== e ? null : /* @__PURE__ */ s.jsx("div", { className: v("luminus-tab-panel", Wt.tabPanel, { [Wt.fullHeightNoOverflow]: t }, r), children: o }), Dc = ({ activeTab: n, onSelect: e, children: t }) => /* @__PURE__ */ s.jsx("div", { className: v("luminus-tabs d-flex gap-1 mb-2"), children: t.map((r) => {
|
|
3724
|
+
const o = r.type, a = r.props.eventKey, i = r.props.children, l = r.props.className, c = r.props.onClick;
|
|
3725
|
+
return /* @__PURE__ */ Ir(o, { ...r.props, key: r.props.eventKey, className: v({ active: n === a }, l), onClick: () => {
|
|
3726
|
+
e(a), c && c(a);
|
|
3727
|
+
} }, i);
|
|
3728
|
+
}) }), ec = "_tab_gvohp_1", tc = {
|
|
3729
|
+
tab: ec
|
|
3730
|
+
}, Ac = ({ eventKey: n, className: e, onClick: t, children: r }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: v("luminus-tab text-primary rounded", tc.tab, e), onClick: () => t && t(n), children: typeof r == "string" ? /* @__PURE__ */ s.jsx(K, { variant: "h6", className: "text-primary", children: r }) : r });
|
|
3731
3731
|
export {
|
|
3732
3732
|
cc as ApiFileDownloadButton,
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3733
|
+
gc as AppSearch,
|
|
3734
|
+
xc as AuthTemplate,
|
|
3735
|
+
$r as AvatarIcon,
|
|
3736
3736
|
Bn as Backdrop,
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3737
|
+
hc as Badge,
|
|
3738
|
+
wc as Card,
|
|
3739
|
+
bc as CheckInput,
|
|
3740
|
+
mc as Collapse,
|
|
3741
3741
|
qn as ContextButton,
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3742
|
+
wi as Dropdown,
|
|
3743
|
+
pc as DropdownDivider,
|
|
3744
|
+
di as DropdownItem,
|
|
3745
|
+
jc as DropdownPicker,
|
|
3746
|
+
hi as DropdownToggle,
|
|
3747
3747
|
Ln as FileUploadContextButton,
|
|
3748
|
-
|
|
3748
|
+
fc as FileUploadDropdownItem,
|
|
3749
3749
|
va as FloatingFormSubmit,
|
|
3750
3750
|
qe as FloatingLabelInput,
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3751
|
+
dc as HomeDashboard,
|
|
3752
|
+
Cc as HookFormCheckInput,
|
|
3753
|
+
Tc as HookFormDropdownPicker,
|
|
3754
|
+
Sc as HookFormFileInput,
|
|
3755
|
+
Ec as HookFormFloatingSubmit,
|
|
3756
|
+
Nc as HookFormRadioInput,
|
|
3757
|
+
Oc as HookFormSelectInput,
|
|
3758
|
+
$c as HookFormTextAreaInput,
|
|
3759
|
+
Ic as HookFormTextInput,
|
|
3760
|
+
vc as HtmlTooltip,
|
|
3761
3761
|
X as IconButton,
|
|
3762
3762
|
fe as InvalidFeedback,
|
|
3763
3763
|
Yc as Loading,
|
|
3764
3764
|
lc as MonthPicker,
|
|
3765
3765
|
Rc as NoInputContainer,
|
|
3766
|
-
|
|
3767
|
-
|
|
3766
|
+
yc as PhotoLibrary,
|
|
3767
|
+
Xi as PhotoLightbox,
|
|
3768
3768
|
St as PrimaryButton,
|
|
3769
3769
|
me as RowLabelInput,
|
|
3770
|
-
|
|
3770
|
+
kc as SelectInput,
|
|
3771
3771
|
ht as SimplePicker,
|
|
3772
|
-
|
|
3772
|
+
br as SimpleToggle,
|
|
3773
3773
|
Bc as SimpleTooltip,
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3774
|
+
Ac as Tab,
|
|
3775
|
+
Pc as TabPanel,
|
|
3776
|
+
Dc as Tabs,
|
|
3777
|
+
_c as TextInput,
|
|
3778
|
+
K as Typography,
|
|
3779
3779
|
qc as UserAvatarToggle,
|
|
3780
|
-
|
|
3780
|
+
Mc as UserAvatarValueFormat,
|
|
3781
3781
|
uc as YearPicker
|
|
3782
3782
|
};
|