react-luminus-components 1.2.86 → 1.2.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +44 -44
- package/dist/{NoInputContainer-DJGe4SUL.js → NoInputContainer-DRb1v547.js} +386 -386
- package/dist/{NoInputContainer-BSBhKnX2.cjs → NoInputContainer-na-dQnr4.cjs} +15 -15
- package/dist/{PrimaryButton-DAqVRTFG.cjs → PrimaryButton-BZ3ksdv0.cjs} +1 -1
- package/dist/{PrimaryButton-A-7Gzqni.js → PrimaryButton-DG9AgtYX.js} +1 -1
- package/dist/{SimpleTooltip-DHRI-sSf.cjs → SimpleTooltip-CT1YSXK2.cjs} +1 -1
- package/dist/{SimpleTooltip-B6AR8fQS.js → SimpleTooltip-DJdq14h2.js} +1 -1
- package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +4 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +2 -0
- package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +2 -0
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +2 -0
- package/dist/components/common/ActionButtonContainer/ActionButtonContainer.d.ts +6 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +3 -3
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.es.js +533 -505
- package/dist/models/prop-types/FormInputProps/FormTextAreaInputProps.d.ts +1 -0
- package/dist/models/prop-types/InputContainerProps.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{useConfirm-xDsVbxf3.cjs → useConfirm-BEmSDfJg.cjs} +1 -1
- package/dist/{useConfirm-FNcQ7y-i.js → useConfirm-DOcPbsdI.js} +1 -1
- package/dist/{usePermissions-Dp1XGulH.cjs → usePermissions-Cks0h2bG.cjs} +1 -1
- package/dist/{usePermissions-OBKG1rFt.js → usePermissions-RumK715m.js} +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { j as s, c as x, t as re, a as ie, g as sr, T as ar, b as ir, s as vt, E as cr, d as lr, e as ur, f as dr, h as hr, u as V, i as de, k as Ut, F as bt, l as mr, m as fr, n as pr, o as gr, p as wr, q as xr, r as yr, v as vr, w as it, x as zt, y as br, z as _r, A as we, B as jr, C as kr, P as Qe, D as ct, S as _t, G as
|
|
2
|
-
import { ai as
|
|
1
|
+
import { j as s, c as x, t as re, a as ie, g as sr, T as ar, b as ir, s as vt, E as cr, d as lr, e as ur, f as dr, h as hr, u as V, i as de, k as Ut, F as bt, l as mr, m as fr, n as pr, o as gr, p as wr, q as xr, r as yr, v as vr, w as it, x as zt, y as br, z as _r, A as we, B as jr, C as kr, P as Qe, D as ct, S as _t, G as De, H as Pe, I as lt, J as Cr, K as Kt, L as Ne, M as qe, O as jt, N as Nr, Q as oe, R as $r, U as Ir, V as Qt, W as ut, X as dt, Y as z, Z as Sr, _ as Xt, $ as Tr, a0 as Jt, a1 as Er, a2 as Or, a3 as Mr, a4 as Dr, a5 as Zt, a6 as xe, a7 as Pr, a8 as Ar, a9 as Fr, aa as Wr, ab as Rr, ac as Xe, ad as Te, ae as en, af as ye, ag as qr } from "./NoInputContainer-DRb1v547.js";
|
|
2
|
+
import { ai as pl, ah as gl } from "./NoInputContainer-DRb1v547.js";
|
|
3
3
|
import * as A from "react";
|
|
4
|
-
import
|
|
5
|
-
import { c as le, d as Gr, C as Vr, a as nn, u as Ur, q as kt, F as zr, b as rn, E as
|
|
4
|
+
import Z, { useCallback as E, useMemo as Q, useEffect as M, useRef as Y, useState as D, useReducer as tn, useContext as q, Component as Lr, isValidElement as Yr, Suspense as Br, createElement as Hr } from "react";
|
|
5
|
+
import { c as le, d as Gr, C as Vr, a as nn, u as Ur, q as kt, F as zr, b as rn, E as Ae, P as Ct, M as Fe, L as Kr } from "./PrimaryButton-DG9AgtYX.js";
|
|
6
6
|
import { m as Qr, a as on } from "./latinize-3MO2uNV7.js";
|
|
7
7
|
import { useFormContext as he, Controller as sn } from "react-hook-form";
|
|
8
8
|
import { u as an, a as cn, b as ln } from "./useFormControlType-BAFqxupC.js";
|
|
9
|
-
import { S as
|
|
9
|
+
import { S as xl } from "./SimpleTooltip-DJdq14h2.js";
|
|
10
10
|
import { s as Xr } from "./searchUtils--egT-ac7.js";
|
|
11
|
-
const
|
|
11
|
+
const Ac = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
12
12
|
const r = E(async () => {
|
|
13
13
|
var l;
|
|
14
14
|
const o = await n();
|
|
@@ -47,15 +47,15 @@ function Ie(n, e) {
|
|
|
47
47
|
const t = Ge(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.weekStartsOn) ?? t.weekStartsOn ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = re(n), a = o.getDay(), i = (a < r ? 7 : 0) + a - r;
|
|
48
48
|
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Le(n) {
|
|
51
51
|
return Ie(n, { weekStartsOn: 1 });
|
|
52
52
|
}
|
|
53
53
|
function dn(n) {
|
|
54
54
|
const e = re(n), t = e.getFullYear(), r = ie(n, 0);
|
|
55
55
|
r.setFullYear(t + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
56
|
-
const o =
|
|
56
|
+
const o = Le(r), a = ie(n, 0);
|
|
57
57
|
a.setFullYear(t, 0, 4), a.setHours(0, 0, 0, 0);
|
|
58
|
-
const i =
|
|
58
|
+
const i = Le(a);
|
|
59
59
|
return e.getTime() >= o.getTime() ? t + 1 : e.getTime() >= i.getTime() ? t : t - 1;
|
|
60
60
|
}
|
|
61
61
|
function Nt(n) {
|
|
@@ -82,7 +82,7 @@ function eo(n, e) {
|
|
|
82
82
|
}
|
|
83
83
|
function to(n) {
|
|
84
84
|
const e = dn(n), t = ie(n, 0);
|
|
85
|
-
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0),
|
|
85
|
+
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0), Le(t);
|
|
86
86
|
}
|
|
87
87
|
function no(n, e) {
|
|
88
88
|
return un(n, e * 12);
|
|
@@ -538,7 +538,7 @@ function qo(n) {
|
|
|
538
538
|
return eo(e, so(e)) + 1;
|
|
539
539
|
}
|
|
540
540
|
function Lo(n) {
|
|
541
|
-
const e = re(n), t = +
|
|
541
|
+
const e = re(n), t = +Le(e) - +to(e);
|
|
542
542
|
return Math.round(t / on) + 1;
|
|
543
543
|
}
|
|
544
544
|
function hn(n, e) {
|
|
@@ -617,7 +617,7 @@ const ue = {
|
|
|
617
617
|
);
|
|
618
618
|
return L(o, e.length);
|
|
619
619
|
}
|
|
620
|
-
},
|
|
620
|
+
}, be = {
|
|
621
621
|
am: "am",
|
|
622
622
|
pm: "pm",
|
|
623
623
|
midnight: "midnight",
|
|
@@ -961,7 +961,7 @@ const ue = {
|
|
|
961
961
|
b: function(n, e, t) {
|
|
962
962
|
const r = n.getHours();
|
|
963
963
|
let o;
|
|
964
|
-
switch (r === 12 ? o =
|
|
964
|
+
switch (r === 12 ? o = be.noon : r === 0 ? o = be.midnight : o = r / 12 >= 1 ? "pm" : "am", e) {
|
|
965
965
|
case "b":
|
|
966
966
|
case "bb":
|
|
967
967
|
return t.dayPeriod(o, {
|
|
@@ -990,7 +990,7 @@ const ue = {
|
|
|
990
990
|
B: function(n, e, t) {
|
|
991
991
|
const r = n.getHours();
|
|
992
992
|
let o;
|
|
993
|
-
switch (r >= 17 ? o =
|
|
993
|
+
switch (r >= 17 ? o = be.evening : r >= 12 ? o = be.afternoon : r >= 4 ? o = be.morning : o = be.night, e) {
|
|
994
994
|
case "B":
|
|
995
995
|
case "BB":
|
|
996
996
|
case "BBB":
|
|
@@ -1191,8 +1191,8 @@ function Jo(n, e, t) {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
const Zo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, es = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ts = /^'([^]*?)'?$/, ns = /''/g, rs = /[a-zA-Z]/;
|
|
1193
1193
|
function fn(n, e, t) {
|
|
1194
|
-
var d, h, m, g, b, w, f,
|
|
1195
|
-
const r = Ge(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? Ro, 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) ?? ((w = (b = t == null ? void 0 : t.locale) == null ? void 0 : b.options) == null ? void 0 : w.weekStartsOn) ?? r.weekStartsOn ?? ((
|
|
1194
|
+
var d, h, m, g, b, w, f, _;
|
|
1195
|
+
const r = Ge(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? Ro, 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) ?? ((w = (b = t == null ? void 0 : t.locale) == null ? void 0 : b.options) == null ? void 0 : w.weekStartsOn) ?? r.weekStartsOn ?? ((_ = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : _.weekStartsOn) ?? 0, l = re(n);
|
|
1196
1196
|
if (!oo(l))
|
|
1197
1197
|
throw new RangeError("Invalid time value");
|
|
1198
1198
|
let c = e.match(es).map((v) => {
|
|
@@ -1280,7 +1280,7 @@ const ls = {
|
|
|
1280
1280
|
[lr]: "collapsing",
|
|
1281
1281
|
[ur]: "collapsing",
|
|
1282
1282
|
[dr]: "collapse show"
|
|
1283
|
-
}, pn = /* @__PURE__ */
|
|
1283
|
+
}, pn = /* @__PURE__ */ Z.forwardRef(({
|
|
1284
1284
|
onEnter: n,
|
|
1285
1285
|
onEntering: e,
|
|
1286
1286
|
onEntered: t,
|
|
@@ -1297,7 +1297,7 @@ const ls = {
|
|
|
1297
1297
|
getDimensionValue: g = cs,
|
|
1298
1298
|
...b
|
|
1299
1299
|
}, w) => {
|
|
1300
|
-
const f = typeof l == "function" ? l() : l,
|
|
1300
|
+
const f = typeof l == "function" ? l() : l, _ = Q(() => Ce((y) => {
|
|
1301
1301
|
y.style[f] = "0";
|
|
1302
1302
|
}, n), [f, n]), v = Q(() => Ce((y) => {
|
|
1303
1303
|
const $ = `scroll${f[0].toUpperCase()}${f.slice(1)}`;
|
|
@@ -1314,7 +1314,7 @@ const ls = {
|
|
|
1314
1314
|
addEndListener: ir,
|
|
1315
1315
|
...b,
|
|
1316
1316
|
"aria-expanded": b.role ? c : null,
|
|
1317
|
-
onEnter:
|
|
1317
|
+
onEnter: _,
|
|
1318
1318
|
onEntering: v,
|
|
1319
1319
|
onEntered: p,
|
|
1320
1320
|
onExit: C,
|
|
@@ -1325,7 +1325,7 @@ const ls = {
|
|
|
1325
1325
|
mountOnEnter: d,
|
|
1326
1326
|
unmountOnExit: h,
|
|
1327
1327
|
appear: m,
|
|
1328
|
-
children: (y, $) => /* @__PURE__ */
|
|
1328
|
+
children: (y, $) => /* @__PURE__ */ Z.cloneElement(i, {
|
|
1329
1329
|
...$,
|
|
1330
1330
|
className: x(a, i.props.className, ls[y], f === "width" && "collapse-horizontal")
|
|
1331
1331
|
})
|
|
@@ -1345,7 +1345,7 @@ const wn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1345
1345
|
wn.displayName = "AlertHeading";
|
|
1346
1346
|
function us(n, e, t, r = !1) {
|
|
1347
1347
|
const o = de(t);
|
|
1348
|
-
|
|
1348
|
+
M(() => {
|
|
1349
1349
|
const a = typeof n == "function" ? n() : n;
|
|
1350
1350
|
return a.addEventListener(e, o, r), () => a.removeEventListener(e, o, r);
|
|
1351
1351
|
}, [n]);
|
|
@@ -1479,8 +1479,8 @@ const vn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1479
1479
|
...m
|
|
1480
1480
|
} = Ut(n, {
|
|
1481
1481
|
show: "onClose"
|
|
1482
|
-
}), g = V(t, "alert"), b = de((
|
|
1483
|
-
u && u(!1,
|
|
1482
|
+
}), g = V(t, "alert"), b = de((_) => {
|
|
1483
|
+
u && u(!1, _);
|
|
1484
1484
|
}), w = h === !0 ? bt : h, f = /* @__PURE__ */ s.jsxs("div", {
|
|
1485
1485
|
role: "alert",
|
|
1486
1486
|
...w ? void 0 : m,
|
|
@@ -1581,7 +1581,7 @@ const _n = /* @__PURE__ */ A.forwardRef(
|
|
|
1581
1581
|
);
|
|
1582
1582
|
_n.displayName = "Col";
|
|
1583
1583
|
function vs(n, e, t) {
|
|
1584
|
-
const r = Y(n !== void 0), [o, a] =
|
|
1584
|
+
const r = Y(n !== void 0), [o, a] = D(e), i = n !== void 0, l = r.current;
|
|
1585
1585
|
return r.current = i, !i && l && o !== e && a(e), [i ? n : o, E((...c) => {
|
|
1586
1586
|
const [u, ...d] = c;
|
|
1587
1587
|
let h = t == null ? void 0 : t(u, ...d);
|
|
@@ -1620,9 +1620,9 @@ function jn(n = {}) {
|
|
|
1620
1620
|
}, {
|
|
1621
1621
|
placement: w,
|
|
1622
1622
|
setMenu: f,
|
|
1623
|
-
menuElement:
|
|
1623
|
+
menuElement: _,
|
|
1624
1624
|
toggleElement: v
|
|
1625
|
-
} = e || {}, p = gr(v,
|
|
1625
|
+
} = e || {}, p = gr(v, _, wr({
|
|
1626
1626
|
placement: u || w || "bottom-start",
|
|
1627
1627
|
enabled: m,
|
|
1628
1628
|
enableEvents: h ?? g,
|
|
@@ -1648,7 +1648,7 @@ function jn(n = {}) {
|
|
|
1648
1648
|
style: p.styles.arrow
|
|
1649
1649
|
}) : {}
|
|
1650
1650
|
};
|
|
1651
|
-
return xr(
|
|
1651
|
+
return xr(_, b, {
|
|
1652
1652
|
clickTrigger: l,
|
|
1653
1653
|
disabled: !g
|
|
1654
1654
|
}), [C, k];
|
|
@@ -1666,16 +1666,16 @@ function kn(n) {
|
|
|
1666
1666
|
});
|
|
1667
1667
|
}
|
|
1668
1668
|
kn.displayName = "DropdownMenu";
|
|
1669
|
-
const
|
|
1669
|
+
const Ye = {
|
|
1670
1670
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1671
1671
|
current: 0
|
|
1672
|
-
}, Cn = /* @__PURE__ */
|
|
1672
|
+
}, Cn = /* @__PURE__ */ Z.createContext(Ye), Cs = /* @__PURE__ */ Z.createContext(!1);
|
|
1673
1673
|
let Ns = !!(typeof window < "u" && window.document && window.document.createElement), Ze = /* @__PURE__ */ new WeakMap();
|
|
1674
1674
|
function $s(n = !1) {
|
|
1675
1675
|
let e = q(Cn), t = Y(null);
|
|
1676
1676
|
if (t.current === null && !n) {
|
|
1677
1677
|
var r, o;
|
|
1678
|
-
let a = (o =
|
|
1678
|
+
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;
|
|
1679
1679
|
if (a) {
|
|
1680
1680
|
let i = Ze.get(a);
|
|
1681
1681
|
i == null ? Ze.set(a, {
|
|
@@ -1689,15 +1689,15 @@ function $s(n = !1) {
|
|
|
1689
1689
|
}
|
|
1690
1690
|
function Is(n) {
|
|
1691
1691
|
let e = q(Cn);
|
|
1692
|
-
e ===
|
|
1693
|
-
let t = $s(!!n), r = e ===
|
|
1692
|
+
e === Ye && !Ns && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
1693
|
+
let t = $s(!!n), r = e === Ye && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
1694
1694
|
return n || `${r}-${t}`;
|
|
1695
1695
|
}
|
|
1696
1696
|
function Ss(n) {
|
|
1697
|
-
let e =
|
|
1697
|
+
let e = Z.useId(), [t] = D(Ds()), r = t || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Ye.prefix}`;
|
|
1698
1698
|
return n || `${r}-${e}`;
|
|
1699
1699
|
}
|
|
1700
|
-
const Ts = typeof
|
|
1700
|
+
const Ts = typeof Z.useId == "function" ? Ss : Is;
|
|
1701
1701
|
function Es() {
|
|
1702
1702
|
return !1;
|
|
1703
1703
|
}
|
|
@@ -1709,7 +1709,7 @@ function Ms(n) {
|
|
|
1709
1709
|
};
|
|
1710
1710
|
}
|
|
1711
1711
|
function Ds() {
|
|
1712
|
-
return typeof
|
|
1712
|
+
return typeof Z.useSyncExternalStore == "function" ? Z.useSyncExternalStore(Ms, Es, Os) : q(Cs);
|
|
1713
1713
|
}
|
|
1714
1714
|
const Nn = (n) => {
|
|
1715
1715
|
var e;
|
|
@@ -1802,7 +1802,7 @@ function Pt() {
|
|
|
1802
1802
|
}, [n]);
|
|
1803
1803
|
return [e, t];
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function Ee({
|
|
1806
1806
|
defaultShow: n,
|
|
1807
1807
|
show: e,
|
|
1808
1808
|
onSelect: t,
|
|
@@ -1812,13 +1812,13 @@ function Te({
|
|
|
1812
1812
|
placement: i = "bottom-start",
|
|
1813
1813
|
children: l
|
|
1814
1814
|
}) {
|
|
1815
|
-
const c = yr(), [u, d] = vs(e, n, r), [h, m] = Pt(), g = h.current, [b, w] = Pt(), f = b.current,
|
|
1816
|
-
d(
|
|
1815
|
+
const c = yr(), [u, d] = vs(e, n, r), [h, m] = Pt(), g = h.current, [b, w] = Pt(), f = b.current, _ = Ur(u), v = Y(null), p = Y(!1), C = q(rt), k = E((j, T, F = T == null ? void 0 : T.type) => {
|
|
1816
|
+
d(j, {
|
|
1817
1817
|
originalEvent: T,
|
|
1818
1818
|
source: F
|
|
1819
1819
|
});
|
|
1820
|
-
}, [d]), y = de((
|
|
1821
|
-
t == null || t(
|
|
1820
|
+
}, [d]), y = de((j, T) => {
|
|
1821
|
+
t == null || t(j, T), k(!1, T, "select"), T.isPropagationStopped() || C == null || C(j, T);
|
|
1822
1822
|
}), $ = Q(() => ({
|
|
1823
1823
|
toggle: k,
|
|
1824
1824
|
placement: i,
|
|
@@ -1828,49 +1828,49 @@ function Te({
|
|
|
1828
1828
|
setMenu: m,
|
|
1829
1829
|
setToggle: w
|
|
1830
1830
|
}), [k, i, u, g, f, m, w]);
|
|
1831
|
-
g &&
|
|
1832
|
-
const
|
|
1831
|
+
g && _ && !u && (p.current = g.contains(g.ownerDocument.activeElement));
|
|
1832
|
+
const P = de(() => {
|
|
1833
1833
|
f && f.focus && f.focus();
|
|
1834
1834
|
}), I = de(() => {
|
|
1835
|
-
const
|
|
1835
|
+
const j = v.current;
|
|
1836
1836
|
let T = a;
|
|
1837
|
-
if (T == null && (T = h.current && Nn(h.current) ? "keyboard" : !1), T === !1 || T === "keyboard" && !/^key.+$/.test(
|
|
1837
|
+
if (T == null && (T = h.current && Nn(h.current) ? "keyboard" : !1), T === !1 || T === "keyboard" && !/^key.+$/.test(j))
|
|
1838
1838
|
return;
|
|
1839
1839
|
const F = kt(h.current, o)[0];
|
|
1840
1840
|
F && F.focus && F.focus();
|
|
1841
1841
|
});
|
|
1842
|
-
|
|
1843
|
-
u ? I() : p.current && (p.current = !1,
|
|
1844
|
-
}, [u, p,
|
|
1842
|
+
M(() => {
|
|
1843
|
+
u ? I() : p.current && (p.current = !1, P());
|
|
1844
|
+
}, [u, p, P, I]), M(() => {
|
|
1845
1845
|
v.current = null;
|
|
1846
1846
|
});
|
|
1847
|
-
const N = (
|
|
1847
|
+
const N = (j, T) => {
|
|
1848
1848
|
if (!h.current)
|
|
1849
1849
|
return null;
|
|
1850
1850
|
const F = kt(h.current, o);
|
|
1851
|
-
let W = F.indexOf(
|
|
1851
|
+
let W = F.indexOf(j) + T;
|
|
1852
1852
|
return W = Math.max(0, Math.min(W, F.length)), F[W];
|
|
1853
1853
|
};
|
|
1854
|
-
return us(E(() => c.document, [c]), "keydown", (
|
|
1854
|
+
return us(E(() => c.document, [c]), "keydown", (j) => {
|
|
1855
1855
|
var T, F;
|
|
1856
1856
|
const {
|
|
1857
1857
|
key: W
|
|
1858
|
-
} =
|
|
1858
|
+
} = j, B = j.target, R = (T = h.current) == null ? void 0 : T.contains(B), G = (F = b.current) == null ? void 0 : F.contains(B);
|
|
1859
1859
|
if (/input|textarea/i.test(B.tagName) && (W === " " || W !== "Escape" && R || W === "Escape" && B.type === "search") || !R && !G || W === "Tab" && (!h.current || !u))
|
|
1860
1860
|
return;
|
|
1861
|
-
v.current =
|
|
1861
|
+
v.current = j.type;
|
|
1862
1862
|
const te = {
|
|
1863
|
-
originalEvent:
|
|
1864
|
-
source:
|
|
1863
|
+
originalEvent: j,
|
|
1864
|
+
source: j.type
|
|
1865
1865
|
};
|
|
1866
1866
|
switch (W) {
|
|
1867
1867
|
case "ArrowUp": {
|
|
1868
1868
|
const U = N(B, -1);
|
|
1869
|
-
U && U.focus && U.focus(),
|
|
1869
|
+
U && U.focus && U.focus(), j.preventDefault();
|
|
1870
1870
|
return;
|
|
1871
1871
|
}
|
|
1872
1872
|
case "ArrowDown":
|
|
1873
|
-
if (
|
|
1873
|
+
if (j.preventDefault(), !u)
|
|
1874
1874
|
d(!0, te);
|
|
1875
1875
|
else {
|
|
1876
1876
|
const U = N(B, 1);
|
|
@@ -1886,7 +1886,7 @@ function Te({
|
|
|
1886
1886
|
});
|
|
1887
1887
|
break;
|
|
1888
1888
|
case "Escape":
|
|
1889
|
-
W === "Escape" && (
|
|
1889
|
+
W === "Escape" && (j.preventDefault(), j.stopPropagation()), d(!1, te);
|
|
1890
1890
|
break;
|
|
1891
1891
|
}
|
|
1892
1892
|
}), /* @__PURE__ */ s.jsx(rt.Provider, {
|
|
@@ -1897,10 +1897,10 @@ function Te({
|
|
|
1897
1897
|
})
|
|
1898
1898
|
});
|
|
1899
1899
|
}
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1900
|
+
Ee.displayName = "Dropdown";
|
|
1901
|
+
Ee.Menu = kn;
|
|
1902
|
+
Ee.Toggle = In;
|
|
1903
|
+
Ee.Item = En;
|
|
1904
1904
|
const ft = /* @__PURE__ */ A.createContext({});
|
|
1905
1905
|
ft.displayName = "DropdownContext";
|
|
1906
1906
|
const On = /* @__PURE__ */ A.forwardRef(({
|
|
@@ -2000,23 +2000,23 @@ const Rn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2000
2000
|
const g = q(An), b = V(n, "dropdown-menu"), {
|
|
2001
2001
|
align: w,
|
|
2002
2002
|
drop: f,
|
|
2003
|
-
isRTL:
|
|
2003
|
+
isRTL: _
|
|
2004
2004
|
} = q(ft);
|
|
2005
2005
|
t = t || w;
|
|
2006
2006
|
const v = q(Ue), p = [];
|
|
2007
2007
|
if (t)
|
|
2008
2008
|
if (typeof t == "object") {
|
|
2009
|
-
const
|
|
2010
|
-
if (process.env.NODE_ENV !== "production" && zt(
|
|
2011
|
-
const T =
|
|
2009
|
+
const j = Object.keys(t);
|
|
2010
|
+
if (process.env.NODE_ENV !== "production" && zt(j.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), j.length) {
|
|
2011
|
+
const T = j[0], F = t[T];
|
|
2012
2012
|
m = F === "start", p.push(`${b}-${T}-${F}`);
|
|
2013
2013
|
}
|
|
2014
2014
|
} else
|
|
2015
2015
|
t === "end" && (m = !0);
|
|
2016
|
-
const C = Wn(m, f,
|
|
2016
|
+
const C = Wn(m, f, _), [k, {
|
|
2017
2017
|
hasShown: y,
|
|
2018
2018
|
popper: $,
|
|
2019
|
-
show:
|
|
2019
|
+
show: P,
|
|
2020
2020
|
toggle: I
|
|
2021
2021
|
}] = jn({
|
|
2022
2022
|
flip: o,
|
|
@@ -2028,10 +2028,10 @@ const Rn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2028
2028
|
placement: C
|
|
2029
2029
|
});
|
|
2030
2030
|
if (k.ref = it(Fn(h, "DropdownMenu"), k.ref), br(() => {
|
|
2031
|
-
|
|
2032
|
-
}, [
|
|
2031
|
+
P && ($ == null || $.update());
|
|
2032
|
+
}, [P]), !y && !i && !v)
|
|
2033
2033
|
return null;
|
|
2034
|
-
typeof l != "string" && (k.show =
|
|
2034
|
+
typeof l != "string" && (k.show = P, k.close = () => I == null ? void 0 : I(!1), k.align = t);
|
|
2035
2035
|
let N = d.style;
|
|
2036
2036
|
return $ != null && $.placement && (N = {
|
|
2037
2037
|
...d.style,
|
|
@@ -2043,7 +2043,7 @@ const Rn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2043
2043
|
...(p.length || g) && {
|
|
2044
2044
|
"data-bs-popper": "static"
|
|
2045
2045
|
},
|
|
2046
|
-
className: x(e, b,
|
|
2046
|
+
className: x(e, b, P && "show", m && `${b}-end`, u && `${b}-${u}`, ...p)
|
|
2047
2047
|
});
|
|
2048
2048
|
});
|
|
2049
2049
|
Rn.displayName = "DropdownMenu";
|
|
@@ -2083,9 +2083,9 @@ const Ln = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
2083
2083
|
...g
|
|
2084
2084
|
} = Ut(n, {
|
|
2085
2085
|
show: "onToggle"
|
|
2086
|
-
}), b = q(Ue), w = V(t, "dropdown"), f = _r(),
|
|
2086
|
+
}), b = q(Ue), w = V(t, "dropdown"), f = _r(), _ = ($) => m === !1 ? $ === "click" : m === "inside" ? $ !== "rootClose" : m === "outside" ? $ !== "select" : !0, v = de(($, P) => {
|
|
2087
2087
|
var I, N;
|
|
2088
|
-
!((I =
|
|
2088
|
+
!((I = P.originalEvent) == null || (N = I.target) == null) && N.classList.contains("dropdown-toggle") && P.source === "mousedown" || (P.originalEvent.currentTarget === document && (P.source !== "keydown" || P.originalEvent.key === "Escape") && (P.source = "rootClose"), _(P.source) && (c == null || c($, P)));
|
|
2089
2089
|
}), C = Wn(i === "end", r, f), k = Q(() => ({
|
|
2090
2090
|
align: i,
|
|
2091
2091
|
drop: r,
|
|
@@ -2100,7 +2100,7 @@ const Ln = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
2100
2100
|
};
|
|
2101
2101
|
return /* @__PURE__ */ s.jsx(ft.Provider, {
|
|
2102
2102
|
value: k,
|
|
2103
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2103
|
+
children: /* @__PURE__ */ s.jsx(Ee, {
|
|
2104
2104
|
placement: C,
|
|
2105
2105
|
show: o,
|
|
2106
2106
|
onSelect: l,
|
|
@@ -2123,7 +2123,7 @@ const Se = Object.assign(Ln, {
|
|
|
2123
2123
|
ItemText: Pn,
|
|
2124
2124
|
Divider: On,
|
|
2125
2125
|
Header: Mn
|
|
2126
|
-
}),
|
|
2126
|
+
}), Oe = /* @__PURE__ */ A.forwardRef(({
|
|
2127
2127
|
id: n,
|
|
2128
2128
|
bsPrefix: e,
|
|
2129
2129
|
className: t,
|
|
@@ -2145,8 +2145,8 @@ const Se = Object.assign(Ln, {
|
|
|
2145
2145
|
className: x(t, e, o && "is-valid", a && "is-invalid")
|
|
2146
2146
|
});
|
|
2147
2147
|
});
|
|
2148
|
-
|
|
2149
|
-
const
|
|
2148
|
+
Oe.displayName = "FormCheckInput";
|
|
2149
|
+
const Be = /* @__PURE__ */ A.forwardRef(({
|
|
2150
2150
|
bsPrefix: n,
|
|
2151
2151
|
className: e,
|
|
2152
2152
|
htmlFor: t,
|
|
@@ -2162,7 +2162,7 @@ const Ye = /* @__PURE__ */ A.forwardRef(({
|
|
|
2162
2162
|
className: x(e, n)
|
|
2163
2163
|
});
|
|
2164
2164
|
});
|
|
2165
|
-
|
|
2165
|
+
Be.displayName = "FormCheckLabel";
|
|
2166
2166
|
const Yn = /* @__PURE__ */ A.forwardRef(({
|
|
2167
2167
|
id: n,
|
|
2168
2168
|
bsPrefix: e,
|
|
@@ -2182,7 +2182,7 @@ const Yn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2182
2182
|
label: w,
|
|
2183
2183
|
children: f,
|
|
2184
2184
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2185
|
-
as:
|
|
2185
|
+
as: _ = "input",
|
|
2186
2186
|
...v
|
|
2187
2187
|
}, p) => {
|
|
2188
2188
|
e = V(e, "form-check"), t = V(t, "form-switch");
|
|
@@ -2190,14 +2190,14 @@ const Yn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2190
2190
|
controlId: C
|
|
2191
2191
|
} = q(we), k = Q(() => ({
|
|
2192
2192
|
controlId: n || C
|
|
2193
|
-
}), [C, n]), y = !f && w != null && w !== !1 || xs(f,
|
|
2193
|
+
}), [C, n]), y = !f && w != null && w !== !1 || xs(f, Be), $ = /* @__PURE__ */ s.jsx(Oe, {
|
|
2194
2194
|
...v,
|
|
2195
2195
|
type: b === "switch" ? "checkbox" : b,
|
|
2196
2196
|
ref: p,
|
|
2197
2197
|
isValid: i,
|
|
2198
2198
|
isInvalid: l,
|
|
2199
2199
|
disabled: a,
|
|
2200
|
-
as:
|
|
2200
|
+
as: _
|
|
2201
2201
|
});
|
|
2202
2202
|
return /* @__PURE__ */ s.jsx(we.Provider, {
|
|
2203
2203
|
value: k,
|
|
@@ -2205,7 +2205,7 @@ const Yn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2205
2205
|
style: m,
|
|
2206
2206
|
className: x(h, y && e, r && `${e}-inline`, o && `${e}-reverse`, b === "switch" && t),
|
|
2207
2207
|
children: f || /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
2208
|
-
children: [$, y && /* @__PURE__ */ s.jsx(
|
|
2208
|
+
children: [$, y && /* @__PURE__ */ s.jsx(Be, {
|
|
2209
2209
|
title: g,
|
|
2210
2210
|
children: w
|
|
2211
2211
|
}), u && /* @__PURE__ */ s.jsx(zr, {
|
|
@@ -2218,9 +2218,9 @@ const Yn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2218
2218
|
});
|
|
2219
2219
|
});
|
|
2220
2220
|
Yn.displayName = "FormCheck";
|
|
2221
|
-
const
|
|
2222
|
-
Input:
|
|
2223
|
-
Label:
|
|
2221
|
+
const He = Object.assign(Yn, {
|
|
2222
|
+
Input: Oe,
|
|
2223
|
+
Label: Be
|
|
2224
2224
|
}), Bn = /* @__PURE__ */ A.forwardRef(({
|
|
2225
2225
|
className: n,
|
|
2226
2226
|
bsPrefix: e,
|
|
@@ -2321,15 +2321,15 @@ const Un = /* @__PURE__ */ A.forwardRef(
|
|
|
2321
2321
|
}))
|
|
2322
2322
|
);
|
|
2323
2323
|
Un.displayName = "FormText";
|
|
2324
|
-
const zn = /* @__PURE__ */ A.forwardRef((n, e) => /* @__PURE__ */ s.jsx(
|
|
2324
|
+
const zn = /* @__PURE__ */ A.forwardRef((n, e) => /* @__PURE__ */ s.jsx(He, {
|
|
2325
2325
|
...n,
|
|
2326
2326
|
ref: e,
|
|
2327
2327
|
type: "switch"
|
|
2328
2328
|
}));
|
|
2329
2329
|
zn.displayName = "Switch";
|
|
2330
2330
|
const Fs = Object.assign(zn, {
|
|
2331
|
-
Input:
|
|
2332
|
-
Label:
|
|
2331
|
+
Input: He.Input,
|
|
2332
|
+
Label: He.Label
|
|
2333
2333
|
}), Ws = {
|
|
2334
2334
|
/**
|
|
2335
2335
|
* The Form `ref` will be forwarded to the underlying element,
|
|
@@ -2363,7 +2363,7 @@ const ee = Object.assign(pt, {
|
|
|
2363
2363
|
Group: jr,
|
|
2364
2364
|
Control: rn,
|
|
2365
2365
|
Floating: Bn,
|
|
2366
|
-
Check:
|
|
2366
|
+
Check: He,
|
|
2367
2367
|
Switch: Fs,
|
|
2368
2368
|
Label: Hn,
|
|
2369
2369
|
Text: Un,
|
|
@@ -2382,12 +2382,12 @@ const ee = Object.assign(pt, {
|
|
|
2382
2382
|
})));
|
|
2383
2383
|
ze.displayName = "InputGroupText";
|
|
2384
2384
|
const Rs = (n) => /* @__PURE__ */ s.jsx(ze, {
|
|
2385
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2385
|
+
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2386
2386
|
type: "checkbox",
|
|
2387
2387
|
...n
|
|
2388
2388
|
})
|
|
2389
2389
|
}), qs = (n) => /* @__PURE__ */ s.jsx(ze, {
|
|
2390
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2390
|
+
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2391
2391
|
type: "radio",
|
|
2392
2392
|
...n
|
|
2393
2393
|
})
|
|
@@ -2593,7 +2593,7 @@ class $e {
|
|
|
2593
2593
|
*/
|
|
2594
2594
|
static createAccount(e, t, r) {
|
|
2595
2595
|
const o = new $e();
|
|
2596
|
-
t.authorityType === tt.Adfs ? o.authorityType =
|
|
2596
|
+
t.authorityType === tt.Adfs ? o.authorityType = De.ADFS_ACCOUNT_TYPE : t.protocolMode === Ea.AAD ? o.authorityType = De.MSSTS_ACCOUNT_TYPE : o.authorityType = De.GENERIC_ACCOUNT_TYPE;
|
|
2597
2597
|
let a;
|
|
2598
2598
|
e.clientInfo && r && (a = Ft(e.clientInfo, r)), o.clientInfo = e.clientInfo, o.homeAccountId = e.homeAccountId, o.nativeAccountId = e.nativeAccountId;
|
|
2599
2599
|
const i = e.environment || t && t.getPreferredCache();
|
|
@@ -2623,7 +2623,7 @@ class $e {
|
|
|
2623
2623
|
static createFromAccountInfo(e, t, r) {
|
|
2624
2624
|
var a;
|
|
2625
2625
|
const o = new $e();
|
|
2626
|
-
return o.authorityType = e.authorityType ||
|
|
2626
|
+
return o.authorityType = e.authorityType || De.GENERIC_ACCOUNT_TYPE, o.homeAccountId = e.homeAccountId, o.localAccountId = e.localAccountId, o.nativeAccountId = e.nativeAccountId, o.realm = e.tenantId, o.environment = e.environment, o.username = e.username, o.name = e.name, o.cloudGraphHostName = t, o.msGraphHost = r, o.tenantProfiles = Array.from(((a = e.tenantProfiles) == null ? void 0 : a.values()) || []), o;
|
|
2627
2627
|
}
|
|
2628
2628
|
/**
|
|
2629
2629
|
* Generate HomeAccountId from server response
|
|
@@ -2670,7 +2670,7 @@ class $e {
|
|
|
2670
2670
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2671
2671
|
class xt extends ct {
|
|
2672
2672
|
constructor(e, t, r, o, a, i, l, c) {
|
|
2673
|
-
super(e, t, r), Object.setPrototypeOf(this, xt.prototype), this.timestamp = o ||
|
|
2673
|
+
super(e, t, r), Object.setPrototypeOf(this, xt.prototype), this.timestamp = o || Pe.EMPTY_STRING, this.traceId = a || Pe.EMPTY_STRING, this.correlationId = i || Pe.EMPTY_STRING, this.claims = l || Pe.EMPTY_STRING, this.name = "InteractionRequiredAuthError", this.errorNo = c;
|
|
2674
2674
|
}
|
|
2675
2675
|
}
|
|
2676
2676
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
@@ -2678,8 +2678,8 @@ function Wt(n, e) {
|
|
|
2678
2678
|
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? n.getActiveAccount() : Cr(n.getAllAccounts(), e);
|
|
2679
2679
|
}
|
|
2680
2680
|
function Oa(n) {
|
|
2681
|
-
const { instance: e, inProgress: t, logger: r } = lt(), [o, a] =
|
|
2682
|
-
return
|
|
2681
|
+
const { instance: e, inProgress: t, logger: r } = lt(), [o, a] = D(() => Wt(e, n));
|
|
2682
|
+
return M(() => {
|
|
2683
2683
|
a((i) => {
|
|
2684
2684
|
const l = Wt(e, n);
|
|
2685
2685
|
return $e.accountInfoIsEqual(i, l, !0) ? i : (r.info("useAccount - Updating account"), l);
|
|
@@ -2687,7 +2687,7 @@ function Oa(n) {
|
|
|
2687
2687
|
}, [t, n, e, r]), o;
|
|
2688
2688
|
}
|
|
2689
2689
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2690
|
-
const
|
|
2690
|
+
const We = {
|
|
2691
2691
|
invalidInteractionType: {
|
|
2692
2692
|
code: "invalid_interaction_type",
|
|
2693
2693
|
desc: "The provided interaction type is invalid."
|
|
@@ -2697,29 +2697,29 @@ const Fe = {
|
|
|
2697
2697
|
desc: "Interaction is required but another interaction is already in progress. Please try again when the current interaction is complete."
|
|
2698
2698
|
}
|
|
2699
2699
|
};
|
|
2700
|
-
class
|
|
2700
|
+
class _e extends ct {
|
|
2701
2701
|
constructor(e, t) {
|
|
2702
|
-
super(e, t), Object.setPrototypeOf(this,
|
|
2702
|
+
super(e, t), Object.setPrototypeOf(this, _e.prototype), this.name = "ReactAuthError";
|
|
2703
2703
|
}
|
|
2704
2704
|
static createInvalidInteractionTypeError() {
|
|
2705
|
-
return new
|
|
2705
|
+
return new _e(We.invalidInteractionType.code, We.invalidInteractionType.desc);
|
|
2706
2706
|
}
|
|
2707
2707
|
static createUnableToFallbackToInteractionError() {
|
|
2708
|
-
return new
|
|
2708
|
+
return new _e(We.unableToFallbackToInteraction.code, We.unableToFallbackToInteraction.desc);
|
|
2709
2709
|
}
|
|
2710
2710
|
}
|
|
2711
2711
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2712
2712
|
function Ma(n, e, t) {
|
|
2713
|
-
const { instance: r, inProgress: o, logger: a } = lt(), i = Kt(t), l = Oa(t), [[c, u], d] =
|
|
2714
|
-
|
|
2713
|
+
const { instance: r, inProgress: o, logger: a } = lt(), i = Kt(t), l = Oa(t), [[c, u], d] = D([null, null]), h = Y(!0);
|
|
2714
|
+
M(() => () => {
|
|
2715
2715
|
h.current = !1;
|
|
2716
2716
|
}, []);
|
|
2717
2717
|
const m = Y(o !== Ne.None);
|
|
2718
|
-
|
|
2718
|
+
M(() => {
|
|
2719
2719
|
m.current = o !== Ne.None;
|
|
2720
2720
|
}, [o]);
|
|
2721
2721
|
const g = Y(!0);
|
|
2722
|
-
|
|
2722
|
+
M(() => {
|
|
2723
2723
|
if (u) {
|
|
2724
2724
|
g.current = !1;
|
|
2725
2725
|
return;
|
|
@@ -2729,23 +2729,23 @@ function Ma(n, e, t) {
|
|
|
2729
2729
|
return;
|
|
2730
2730
|
}
|
|
2731
2731
|
}, [u, c]);
|
|
2732
|
-
const b = E(async (f,
|
|
2733
|
-
const v = f || n, p =
|
|
2732
|
+
const b = E(async (f, _) => {
|
|
2733
|
+
const v = f || n, p = _ || e;
|
|
2734
2734
|
switch (v) {
|
|
2735
|
-
case
|
|
2735
|
+
case qe.Popup:
|
|
2736
2736
|
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(p);
|
|
2737
|
-
case
|
|
2737
|
+
case qe.Redirect:
|
|
2738
2738
|
return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(p).then(null);
|
|
2739
|
-
case
|
|
2739
|
+
case qe.Silent:
|
|
2740
2740
|
return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(p);
|
|
2741
2741
|
default:
|
|
2742
|
-
throw
|
|
2742
|
+
throw _e.createInvalidInteractionTypeError();
|
|
2743
2743
|
}
|
|
2744
|
-
}, [r, n, e, a]), w = E(async (f,
|
|
2744
|
+
}, [r, n, e, a]), w = E(async (f, _) => {
|
|
2745
2745
|
const v = f || n;
|
|
2746
2746
|
let p;
|
|
2747
|
-
return
|
|
2748
|
-
...
|
|
2747
|
+
return _ ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), p = {
|
|
2748
|
+
..._
|
|
2749
2749
|
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"), p = {
|
|
2750
2750
|
...e,
|
|
2751
2751
|
scopes: e.scopes || jt
|
|
@@ -2754,7 +2754,7 @@ function Ma(n, e, t) {
|
|
|
2754
2754
|
}), !p.account && l && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), p.account = l), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), r.acquireTokenSilent(p).catch(async (k) => {
|
|
2755
2755
|
if (k instanceof xt) {
|
|
2756
2756
|
if (m.current)
|
|
2757
|
-
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."),
|
|
2757
|
+
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), _e.createUnableToFallbackToInteractionError();
|
|
2758
2758
|
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), b(v, p);
|
|
2759
2759
|
}
|
|
2760
2760
|
throw k;
|
|
@@ -2769,26 +2769,26 @@ function Ma(n, e, t) {
|
|
|
2769
2769
|
l,
|
|
2770
2770
|
b
|
|
2771
2771
|
]);
|
|
2772
|
-
return
|
|
2773
|
-
const f = r.addEventCallback((
|
|
2774
|
-
switch (
|
|
2775
|
-
case
|
|
2776
|
-
case
|
|
2777
|
-
|
|
2778
|
-
|
|
2772
|
+
return M(() => {
|
|
2773
|
+
const f = r.addEventCallback((_) => {
|
|
2774
|
+
switch (_.eventType) {
|
|
2775
|
+
case Ae.LOGIN_SUCCESS:
|
|
2776
|
+
case Ae.SSO_SILENT_SUCCESS:
|
|
2777
|
+
_.payload && d([
|
|
2778
|
+
_.payload,
|
|
2779
2779
|
null
|
|
2780
2780
|
]);
|
|
2781
2781
|
break;
|
|
2782
|
-
case
|
|
2783
|
-
case
|
|
2784
|
-
|
|
2782
|
+
case Ae.LOGIN_FAILURE:
|
|
2783
|
+
case Ae.SSO_SILENT_FAILURE:
|
|
2784
|
+
_.error && d([null, _.error]);
|
|
2785
2785
|
break;
|
|
2786
2786
|
}
|
|
2787
2787
|
});
|
|
2788
2788
|
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${f}`), () => {
|
|
2789
2789
|
f && (a.verbose(`useMsalAuthentication - Removing event callback ${f}`), r.removeEventCallback(f));
|
|
2790
2790
|
};
|
|
2791
|
-
}, [r, a]),
|
|
2791
|
+
}, [r, a]), M(() => {
|
|
2792
2792
|
g.current && o === Ne.None && (g.current = !1, i ? l && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), w().catch(() => {
|
|
2793
2793
|
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"), b().catch(() => {
|
|
2794
2794
|
})));
|
|
@@ -2808,32 +2808,25 @@ function Da({ interactionType: n, username: e, homeAccountId: t, localAccountId:
|
|
|
2808
2808
|
}), [e, t, r]), u = lt(), d = Ma(n, o, c), h = Kt(c);
|
|
2809
2809
|
if (d.error && u.inProgress === Ne.None) {
|
|
2810
2810
|
if (i)
|
|
2811
|
-
return
|
|
2811
|
+
return Z.createElement(i, { ...d });
|
|
2812
2812
|
throw d.error;
|
|
2813
2813
|
}
|
|
2814
|
-
return h ?
|
|
2814
|
+
return h ? Z.createElement(Z.Fragment, null, Nr(l, d)) : a && u.inProgress !== Ne.None ? Z.createElement(a, { ...u }) : null;
|
|
2815
2815
|
}
|
|
2816
|
-
const Pa =
|
|
2817
|
-
"submit-container": "_submit-container_a9slg_1",
|
|
2818
|
-
submitContainer: Pa,
|
|
2819
|
-
spacer: Aa
|
|
2820
|
-
}, Fa = ({ children: n, onStorno: e }) => {
|
|
2816
|
+
const Pa = ({ children: n, onStorno: e }) => {
|
|
2821
2817
|
const { formSubmitTexts: t } = q(oe);
|
|
2822
|
-
return /* @__PURE__ */ s.jsxs(
|
|
2823
|
-
/* @__PURE__ */ s.
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
/* @__PURE__ */ s.jsx(Ir, {}),
|
|
2831
|
-
t.storno
|
|
2832
|
-
] })
|
|
2818
|
+
return /* @__PURE__ */ s.jsxs(jc, { children: [
|
|
2819
|
+
/* @__PURE__ */ s.jsxs(Ct, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
2820
|
+
/* @__PURE__ */ s.jsx($r, {}),
|
|
2821
|
+
n
|
|
2822
|
+
] }),
|
|
2823
|
+
e && /* @__PURE__ */ s.jsxs(Ct, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: e, children: [
|
|
2824
|
+
/* @__PURE__ */ s.jsx(Ir, {}),
|
|
2825
|
+
t.storno
|
|
2833
2826
|
] })
|
|
2834
2827
|
] });
|
|
2835
|
-
},
|
|
2836
|
-
button:
|
|
2828
|
+
}, Aa = "_button_1r3i0_1", st = {
|
|
2829
|
+
button: Aa
|
|
2837
2830
|
}, at = ({
|
|
2838
2831
|
color: n = "primary",
|
|
2839
2832
|
// icon = <MdOutlineArrowOutward size={10} />,
|
|
@@ -2861,57 +2854,57 @@ const Pa = "_submit-container_a9slg_1", Aa = "_spacer_a9slg_14", Rt = {
|
|
|
2861
2854
|
] }),
|
|
2862
2855
|
/* @__PURE__ */ s.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: l })
|
|
2863
2856
|
] });
|
|
2864
|
-
},
|
|
2857
|
+
}, Fa = "_icon-button_15e26_1", Wa = "_sm_15e26_14", Ra = "_md_15e26_23", qa = "_lg_15e26_32", Re = {
|
|
2865
2858
|
"icon-button": "_icon-button_15e26_1",
|
|
2866
|
-
iconButton:
|
|
2867
|
-
sm:
|
|
2868
|
-
md:
|
|
2869
|
-
lg:
|
|
2870
|
-
},
|
|
2859
|
+
iconButton: Fa,
|
|
2860
|
+
sm: Wa,
|
|
2861
|
+
md: Ra,
|
|
2862
|
+
lg: qa
|
|
2863
|
+
}, X = ({ type: n = "button", color: e = "primary", size: t = "md", children: r, className: o, ...a }) => {
|
|
2871
2864
|
const { LinkComponent: i } = q(oe);
|
|
2872
|
-
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`,
|
|
2865
|
+
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`, Re.iconButton, Re[t]), ...a, children: r }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ s.jsx(
|
|
2873
2866
|
"button",
|
|
2874
2867
|
{
|
|
2875
2868
|
type: n,
|
|
2876
|
-
className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`,
|
|
2869
|
+
className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`, Re.iconButton, Re[t]),
|
|
2877
2870
|
...a,
|
|
2878
2871
|
children: r
|
|
2879
2872
|
}
|
|
2880
2873
|
) : null;
|
|
2881
|
-
},
|
|
2874
|
+
}, Fc = ({ month: n, onChangeMonth: e, locale: t }) => {
|
|
2882
2875
|
const r = E((o) => {
|
|
2883
2876
|
e(un(n, o));
|
|
2884
2877
|
}, [n, e]);
|
|
2885
2878
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2886
|
-
/* @__PURE__ */ s.jsx(
|
|
2879
|
+
/* @__PURE__ */ s.jsx(X, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(ut, {}) }),
|
|
2887
2880
|
/* @__PURE__ */ s.jsx("div", { children: fn(n, "LLLL yyyy", { locale: t }) }),
|
|
2888
|
-
/* @__PURE__ */ s.jsx(
|
|
2881
|
+
/* @__PURE__ */ s.jsx(X, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2889
2882
|
] });
|
|
2890
|
-
},
|
|
2883
|
+
}, Wc = ({ year: n, onChangeYear: e, locale: t }) => {
|
|
2891
2884
|
const r = E((o) => {
|
|
2892
2885
|
e(no(n, o));
|
|
2893
2886
|
}, [n, e]);
|
|
2894
2887
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2895
|
-
/* @__PURE__ */ s.jsx(
|
|
2888
|
+
/* @__PURE__ */ s.jsx(X, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(ut, {}) }),
|
|
2896
2889
|
/* @__PURE__ */ s.jsx("div", { children: fn(n, "yyyy", { locale: t }) }),
|
|
2897
|
-
/* @__PURE__ */ s.jsx(
|
|
2890
|
+
/* @__PURE__ */ s.jsx(X, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2898
2891
|
] });
|
|
2899
|
-
},
|
|
2900
|
-
widget:
|
|
2901
|
-
},
|
|
2902
|
-
/* @__PURE__ */ s.jsx(
|
|
2903
|
-
/* @__PURE__ */ s.jsx(
|
|
2904
|
-
] }),
|
|
2905
|
-
const [r, o] =
|
|
2892
|
+
}, La = "_widget_etgh3_1", Ya = {
|
|
2893
|
+
widget: La
|
|
2894
|
+
}, Ba = ({ show: n, widgets: e, handleClose: t, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ s.jsxs(Fe, { show: n, onHide: () => t(), children: [
|
|
2895
|
+
/* @__PURE__ */ s.jsx(Fe.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Fe.Title, { children: o.pickWidgetToAdd }) }),
|
|
2896
|
+
/* @__PURE__ */ s.jsx(Fe.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(z, { variant: "body", children: a.name }) })) }) })
|
|
2897
|
+
] }), Rt = ({ availableWidgets: n, onAdd: e, texts: t }) => {
|
|
2898
|
+
const [r, o] = D(!1);
|
|
2906
2899
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2907
|
-
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget",
|
|
2908
|
-
/* @__PURE__ */ s.jsx(
|
|
2900
|
+
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget", Ya.widget), children: /* @__PURE__ */ s.jsx(X, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(Sr, {}) }) }),
|
|
2901
|
+
/* @__PURE__ */ s.jsx(Ba, { show: r, widgets: n, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
2909
2902
|
o(!1), e(a);
|
|
2910
2903
|
}, texts: t })
|
|
2911
2904
|
] });
|
|
2912
|
-
},
|
|
2913
|
-
const [e, t] =
|
|
2914
|
-
|
|
2905
|
+
}, Ha = (n) => {
|
|
2906
|
+
const [e, t] = D({ widgets: [] });
|
|
2907
|
+
M(() => {
|
|
2915
2908
|
const o = localStorage.getItem("dashboardConfig");
|
|
2916
2909
|
o ? t(JSON.parse(o)) : n && t(n);
|
|
2917
2910
|
}, [n]);
|
|
@@ -2919,24 +2912,24 @@ const Pa = "_submit-container_a9slg_1", Aa = "_spacer_a9slg_14", Rt = {
|
|
|
2919
2912
|
t(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
|
|
2920
2913
|
}, []);
|
|
2921
2914
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
2922
|
-
},
|
|
2923
|
-
dashboard:
|
|
2915
|
+
}, Ga = "_dashboard_16plm_1", Va = "_widgets-grid_16plm_1", Ua = "_widget-wrapper_16plm_8", za = "_full-width_16plm_13", Ka = "_widget-edit_16plm_16", Qa = "_remove-icon_16plm_19", Xa = "_full-width-icon_16plm_26", Ja = "_widget-edit-overlay_16plm_36", ae = {
|
|
2916
|
+
dashboard: Ga,
|
|
2924
2917
|
"widgets-grid": "_widgets-grid_16plm_1",
|
|
2925
|
-
widgetsGrid:
|
|
2918
|
+
widgetsGrid: Va,
|
|
2926
2919
|
"widget-wrapper": "_widget-wrapper_16plm_8",
|
|
2927
|
-
widgetWrapper:
|
|
2920
|
+
widgetWrapper: Ua,
|
|
2928
2921
|
"full-width": "_full-width_16plm_13",
|
|
2929
|
-
fullWidth:
|
|
2922
|
+
fullWidth: za,
|
|
2930
2923
|
"widget-edit": "_widget-edit_16plm_16",
|
|
2931
|
-
widgetEdit:
|
|
2924
|
+
widgetEdit: Ka,
|
|
2932
2925
|
"remove-icon": "_remove-icon_16plm_19",
|
|
2933
|
-
removeIcon:
|
|
2926
|
+
removeIcon: Qa,
|
|
2934
2927
|
"full-width-icon": "_full-width-icon_16plm_26",
|
|
2935
|
-
fullWidthIcon:
|
|
2928
|
+
fullWidthIcon: Xa,
|
|
2936
2929
|
"widget-edit-overlay": "_widget-edit-overlay_16plm_36",
|
|
2937
|
-
widgetEditOverlay:
|
|
2930
|
+
widgetEditOverlay: Ja
|
|
2938
2931
|
};
|
|
2939
|
-
class
|
|
2932
|
+
class Za extends Lr {
|
|
2940
2933
|
constructor(e) {
|
|
2941
2934
|
super(e), this.state = { hasError: !1 }, this.reload = this.reload.bind(this);
|
|
2942
2935
|
}
|
|
@@ -2952,7 +2945,7 @@ class ti extends Lr {
|
|
|
2952
2945
|
}
|
|
2953
2946
|
render() {
|
|
2954
2947
|
const { fallback: e, children: t, texts: r, reloadButtonDisplay: o = "append-after-child" } = this.props;
|
|
2955
|
-
return this.state.hasError ? o === "inject-to-child" && Yr(e) ?
|
|
2948
|
+
return this.state.hasError ? o === "inject-to-child" && Yr(e) ? Z.cloneElement(e, {
|
|
2956
2949
|
...e.props
|
|
2957
2950
|
}, /* @__PURE__ */ s.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
2958
2951
|
...e.props.children,
|
|
@@ -2963,18 +2956,18 @@ class ti extends Lr {
|
|
|
2963
2956
|
] }) : t;
|
|
2964
2957
|
}
|
|
2965
2958
|
}
|
|
2966
|
-
const
|
|
2959
|
+
const ei = (n) => (t) => {
|
|
2967
2960
|
const { errorBoundaryTexts: r } = q(oe);
|
|
2968
2961
|
return /* @__PURE__ */ s.jsx(n, { texts: r, ...t });
|
|
2969
|
-
},
|
|
2962
|
+
}, ti = ei(Za), ni = "_widget-card_e9tsb_1", ri = {
|
|
2970
2963
|
"widget-card": "_widget-card_e9tsb_1",
|
|
2971
|
-
widgetCard:
|
|
2972
|
-
},
|
|
2964
|
+
widgetCard: ni
|
|
2965
|
+
}, qt = ({ children: n, title: e, headerContent: t }) => /* @__PURE__ */ s.jsx(ic, { className: x(ri.widgetCard, "luminus-widget"), title: e, headerContent: t, contentClassName: "h-100 overflow-auto", children: n }), oi = ({ children: n, title: e }) => {
|
|
2973
2966
|
const { widgetTexts: t } = q(oe);
|
|
2974
|
-
return /* @__PURE__ */ s.jsx(
|
|
2975
|
-
},
|
|
2967
|
+
return /* @__PURE__ */ s.jsx(ti, { fallback: /* @__PURE__ */ s.jsx(qt, { title: e, children: t.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ s.jsx(Br, { fallback: /* @__PURE__ */ s.jsx(qt, { title: e, children: /* @__PURE__ */ s.jsx(Jr, {}) }), children: n }) });
|
|
2968
|
+
}, Rc = ({ availableWidgets: n, editMode: e, defaultDashboardConfig: t }) => {
|
|
2976
2969
|
var d;
|
|
2977
|
-
const { homeDashboardTexts: r } = q(oe), { dashboardConfig: o, onChangeDashboardConfig: a } =
|
|
2970
|
+
const { homeDashboardTexts: r } = q(oe), { dashboardConfig: o, onChangeDashboardConfig: a } = Ha(t), i = E((h, m) => {
|
|
2978
2971
|
var g, b;
|
|
2979
2972
|
h === ((g = o.widgets) == null ? void 0 : g.length) ? a({
|
|
2980
2973
|
...o,
|
|
@@ -2999,10 +2992,10 @@ const ni = (n) => (t) => {
|
|
|
2999
2992
|
[ae.widgetEdit]: e && h.id !== -1
|
|
3000
2993
|
}, { [ae.fullWidth]: g }), children: [
|
|
3001
2994
|
e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3002
|
-
/* @__PURE__ */ s.jsx(
|
|
3003
|
-
/* @__PURE__ */ s.jsx(
|
|
2995
|
+
/* @__PURE__ */ s.jsx(X, { color: "danger", onClick: () => l(m), className: x(ae.removeIcon), children: /* @__PURE__ */ s.jsx(Xt, {}) }),
|
|
2996
|
+
/* @__PURE__ */ s.jsx(X, { color: g ? "danger" : "primary", onClick: () => c(m), className: x(ae.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Tr, {}) })
|
|
3004
2997
|
] }),
|
|
3005
|
-
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetWrapper, children: /* @__PURE__ */ s.jsx(
|
|
2998
|
+
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetWrapper, children: /* @__PURE__ */ s.jsx(Rt, { availableWidgets: n, onAdd: (b) => i(m, b), texts: r }) }) : /* @__PURE__ */ s.jsx(oi, { title: h.title, children: /* @__PURE__ */ s.jsx(h.WidgetElement, { title: h.title }) }),
|
|
3006
2999
|
h.id > -1 && e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetEditOverlay })
|
|
3007
3000
|
] }, m) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
3008
3001
|
e,
|
|
@@ -3014,86 +3007,86 @@ const ni = (n) => (t) => {
|
|
|
3014
3007
|
]);
|
|
3015
3008
|
return /* @__PURE__ */ s.jsx("div", { className: ae.dashboard, children: /* @__PURE__ */ s.jsxs("div", { className: ae.widgetsGrid, children: [
|
|
3016
3009
|
(d = o.widgets) == null ? void 0 : d.map((h, m) => u(n.find((g) => g.id === h.widgetId), m, h.fullWidth)),
|
|
3017
|
-
e && /* @__PURE__ */ s.jsx(
|
|
3010
|
+
e && /* @__PURE__ */ s.jsx(Rt, { availableWidgets: n, onAdd: (h) => {
|
|
3018
3011
|
var m;
|
|
3019
3012
|
return i((m = o.widgets) == null ? void 0 : m.length, h);
|
|
3020
3013
|
}, texts: r })
|
|
3021
3014
|
] }) });
|
|
3022
|
-
},
|
|
3023
|
-
badge:
|
|
3024
|
-
sm:
|
|
3025
|
-
md:
|
|
3026
|
-
lg:
|
|
3027
|
-
},
|
|
3015
|
+
}, si = "_badge_nhser_1", ai = "_sm_nhser_1", ii = "_md_nhser_4", ci = "_lg_nhser_7", Lt = {
|
|
3016
|
+
badge: si,
|
|
3017
|
+
sm: ai,
|
|
3018
|
+
md: ii,
|
|
3019
|
+
lg: ci
|
|
3020
|
+
}, qc = ({ children: n, color: e = "primary", size: t = "md", className: r }) => /* @__PURE__ */ s.jsx("span", { className: x(`luminus-badge badge bg-${e} ${r ?? ""}`, Lt.badge, Lt[t]), children: n }), li = "_collapse-icon_1ahhn_1", ui = "_collapsed_1ahhn_6", Yt = {
|
|
3028
3021
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
3029
|
-
collapseIcon:
|
|
3030
|
-
collapsed:
|
|
3031
|
-
},
|
|
3032
|
-
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] =
|
|
3033
|
-
return
|
|
3022
|
+
collapseIcon: li,
|
|
3023
|
+
collapsed: ui
|
|
3024
|
+
}, Lc = ({ title: n, children: e, className: t, ...r }) => {
|
|
3025
|
+
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = D(o), l = r.controlled ? r.isOpen : a;
|
|
3026
|
+
return M(() => {
|
|
3034
3027
|
i(o);
|
|
3035
3028
|
}, [o]), /* @__PURE__ */ s.jsxs("div", { className: t ?? "", children: [
|
|
3036
3029
|
/* @__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: [
|
|
3037
3030
|
/* @__PURE__ */ s.jsx(z, { variant: "h6", children: n }),
|
|
3038
|
-
/* @__PURE__ */ s.jsx(Jt, { className: x(
|
|
3039
|
-
[
|
|
3031
|
+
/* @__PURE__ */ s.jsx(Jt, { className: x(Yt.collapseIcon, {
|
|
3032
|
+
[Yt.collapsed]: l
|
|
3040
3033
|
}) })
|
|
3041
3034
|
] }),
|
|
3042
3035
|
/* @__PURE__ */ s.jsx(pn, { in: l, children: /* @__PURE__ */ s.jsx("div", { children: e }) }),
|
|
3043
3036
|
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
3044
3037
|
] });
|
|
3045
|
-
},
|
|
3046
|
-
feedback:
|
|
3038
|
+
}, di = "_feedback_esh1j_1", hi = "_feedback-spacer_esh1j_8", Bt = {
|
|
3039
|
+
feedback: di,
|
|
3047
3040
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
3048
|
-
feedbackSpacer:
|
|
3049
|
-
},
|
|
3050
|
-
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback",
|
|
3051
|
-
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback-spacer",
|
|
3041
|
+
feedbackSpacer: hi
|
|
3042
|
+
}, ve = ({ message: n }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3043
|
+
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback", Bt.feedback), children: n }),
|
|
3044
|
+
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback-spacer", Bt.feedbackSpacer), children: n })
|
|
3052
3045
|
] });
|
|
3053
|
-
function
|
|
3046
|
+
function mi(n, e, t) {
|
|
3054
3047
|
var r = this, o = Y(null), a = Y(0), i = Y(null), l = Y([]), c = Y(), u = Y(), d = Y(n), h = Y(!0);
|
|
3055
3048
|
d.current = n;
|
|
3056
3049
|
var m = typeof window < "u", g = !e && e !== 0 && m;
|
|
3057
3050
|
if (typeof n != "function")
|
|
3058
3051
|
throw new TypeError("Expected a function");
|
|
3059
3052
|
e = +e || 0;
|
|
3060
|
-
var b = !!(t = t || {}).leading, w = !("trailing" in t) || !!t.trailing, f = "maxWait" in t,
|
|
3061
|
-
|
|
3053
|
+
var b = !!(t = t || {}).leading, w = !("trailing" in t) || !!t.trailing, f = "maxWait" in t, _ = "debounceOnServer" in t && !!t.debounceOnServer, v = f ? Math.max(+t.maxWait || 0, e) : null;
|
|
3054
|
+
M(function() {
|
|
3062
3055
|
return h.current = !0, function() {
|
|
3063
3056
|
h.current = !1;
|
|
3064
3057
|
};
|
|
3065
3058
|
}, []);
|
|
3066
3059
|
var p = Q(function() {
|
|
3067
3060
|
var C = function(N) {
|
|
3068
|
-
var
|
|
3069
|
-
return l.current = c.current = null, a.current = N, u.current = d.current.apply(T,
|
|
3070
|
-
}, k = function(N,
|
|
3071
|
-
g && cancelAnimationFrame(i.current), i.current = g ? requestAnimationFrame(N) : setTimeout(N,
|
|
3061
|
+
var j = l.current, T = c.current;
|
|
3062
|
+
return l.current = c.current = null, a.current = N, u.current = d.current.apply(T, j);
|
|
3063
|
+
}, k = function(N, j) {
|
|
3064
|
+
g && cancelAnimationFrame(i.current), i.current = g ? requestAnimationFrame(N) : setTimeout(N, j);
|
|
3072
3065
|
}, y = function(N) {
|
|
3073
3066
|
if (!h.current)
|
|
3074
3067
|
return !1;
|
|
3075
|
-
var
|
|
3076
|
-
return !o.current ||
|
|
3068
|
+
var j = N - o.current;
|
|
3069
|
+
return !o.current || j >= e || j < 0 || f && N - a.current >= v;
|
|
3077
3070
|
}, $ = function(N) {
|
|
3078
3071
|
return i.current = null, w && l.current ? C(N) : (l.current = c.current = null, u.current);
|
|
3079
|
-
},
|
|
3080
|
-
var
|
|
3081
|
-
if (y(
|
|
3082
|
-
return $(
|
|
3072
|
+
}, P = function N() {
|
|
3073
|
+
var j = Date.now();
|
|
3074
|
+
if (y(j))
|
|
3075
|
+
return $(j);
|
|
3083
3076
|
if (h.current) {
|
|
3084
|
-
var T = e - (
|
|
3077
|
+
var T = e - (j - o.current), F = f ? Math.min(T, v - (j - a.current)) : T;
|
|
3085
3078
|
k(N, F);
|
|
3086
3079
|
}
|
|
3087
3080
|
}, I = function() {
|
|
3088
|
-
if (m ||
|
|
3089
|
-
var N = Date.now(),
|
|
3090
|
-
if (l.current = [].slice.call(arguments), c.current = r, o.current = N,
|
|
3081
|
+
if (m || _) {
|
|
3082
|
+
var N = Date.now(), j = y(N);
|
|
3083
|
+
if (l.current = [].slice.call(arguments), c.current = r, o.current = N, j) {
|
|
3091
3084
|
if (!i.current && h.current)
|
|
3092
|
-
return a.current = o.current, k(
|
|
3085
|
+
return a.current = o.current, k(P, e), b ? C(o.current) : u.current;
|
|
3093
3086
|
if (f)
|
|
3094
|
-
return k(
|
|
3087
|
+
return k(P, e), C(o.current);
|
|
3095
3088
|
}
|
|
3096
|
-
return i.current || k(
|
|
3089
|
+
return i.current || k(P, e), u.current;
|
|
3097
3090
|
}
|
|
3098
3091
|
};
|
|
3099
3092
|
return I.cancel = function() {
|
|
@@ -3103,51 +3096,51 @@ function pi(n, e, t) {
|
|
|
3103
3096
|
}, I.flush = function() {
|
|
3104
3097
|
return i.current ? $(Date.now()) : u.current;
|
|
3105
3098
|
}, I;
|
|
3106
|
-
}, [b, f, e, v, w, g, m,
|
|
3099
|
+
}, [b, f, e, v, w, g, m, _]);
|
|
3107
3100
|
return p;
|
|
3108
3101
|
}
|
|
3109
|
-
function
|
|
3102
|
+
function fi(n, e) {
|
|
3110
3103
|
return n === e;
|
|
3111
3104
|
}
|
|
3112
|
-
function
|
|
3105
|
+
function pi(n, e) {
|
|
3113
3106
|
return e;
|
|
3114
3107
|
}
|
|
3115
3108
|
function er(n, e, t) {
|
|
3116
|
-
var r =
|
|
3109
|
+
var r = fi, o = tn(pi, n), a = o[0], i = o[1], l = mi(E(function(u) {
|
|
3117
3110
|
return i(u);
|
|
3118
3111
|
}, [i]), e, t), c = Y(n);
|
|
3119
3112
|
return r(c.current, n) || (l(n), c.current = n), [a, l];
|
|
3120
3113
|
}
|
|
3121
|
-
const
|
|
3122
|
-
wrapper:
|
|
3123
|
-
open:
|
|
3124
|
-
dropdown:
|
|
3114
|
+
const gi = "_wrapper_uccrb_1", wi = "_open_uccrb_9", xi = "_dropdown_uccrb_13", yi = "_search-input-container_uccrb_19", vi = "_search-input_uccrb_19", bi = "_loading-container_uccrb_25", _i = "_items-container_uccrb_32", ji = "_header-row_uccrb_38", ki = "_item_uccrb_32", Ci = "_name_uccrb_57", Ni = "_column-item_uccrb_62", $i = "_icon_uccrb_66", Ii = "_clear-button_uccrb_74", J = {
|
|
3115
|
+
wrapper: gi,
|
|
3116
|
+
open: wi,
|
|
3117
|
+
dropdown: xi,
|
|
3125
3118
|
"search-input-container": "_search-input-container_uccrb_19",
|
|
3126
|
-
searchInputContainer:
|
|
3119
|
+
searchInputContainer: yi,
|
|
3127
3120
|
"search-input": "_search-input_uccrb_19",
|
|
3128
|
-
searchInput:
|
|
3121
|
+
searchInput: vi,
|
|
3129
3122
|
"loading-container": "_loading-container_uccrb_25",
|
|
3130
|
-
loadingContainer:
|
|
3123
|
+
loadingContainer: bi,
|
|
3131
3124
|
"items-container": "_items-container_uccrb_32",
|
|
3132
|
-
itemsContainer:
|
|
3125
|
+
itemsContainer: _i,
|
|
3133
3126
|
"header-row": "_header-row_uccrb_38",
|
|
3134
|
-
headerRow:
|
|
3135
|
-
item:
|
|
3136
|
-
name:
|
|
3127
|
+
headerRow: ji,
|
|
3128
|
+
item: ki,
|
|
3129
|
+
name: Ci,
|
|
3137
3130
|
"column-item": "_column-item_uccrb_62",
|
|
3138
|
-
columnItem:
|
|
3139
|
-
icon:
|
|
3131
|
+
columnItem: Ni,
|
|
3132
|
+
icon: $i,
|
|
3140
3133
|
"clear-button": "_clear-button_uccrb_74",
|
|
3141
|
-
clearButton:
|
|
3134
|
+
clearButton: Ii
|
|
3142
3135
|
}, yt = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: m, isLoading: g = !1, inputRef: b }) => {
|
|
3143
3136
|
var S;
|
|
3144
|
-
const w = Y(null), f = Y(null),
|
|
3145
|
-
|
|
3137
|
+
const w = Y(null), f = Y(null), _ = Y(null), [v, p] = D(""), [C] = er(v, 500), [, k] = D(!1), y = (S = b.current) == null ? void 0 : S.getBoundingClientRect(), $ = (y == null ? void 0 : y.x) ?? 0, P = ((y == null ? void 0 : y.x) ?? 0) + ((y == null ? void 0 : y.width) ?? 0), I = (y == null ? void 0 : y.y) ?? 0, N = ((y == null ? void 0 : y.y) ?? 0) + ((y == null ? void 0 : y.height) ?? 0), j = (y == null ? void 0 : y.width) ?? 0, T = (y == null ? void 0 : y.height) ?? 0, F = 5, W = Q(() => $ ? $ > window.innerWidth / 2 : !1, [$]), B = Q(() => I ? I > window.innerHeight / 2 : !1, [I]);
|
|
3138
|
+
M(() => {
|
|
3146
3139
|
var O;
|
|
3147
|
-
n && ((O =
|
|
3148
|
-
}, [
|
|
3140
|
+
n && ((O = _.current) == null || O.focus());
|
|
3141
|
+
}, [_, n]), M(() => {
|
|
3149
3142
|
n || p("");
|
|
3150
|
-
}, [n]),
|
|
3143
|
+
}, [n]), M(() => {
|
|
3151
3144
|
a(C);
|
|
3152
3145
|
}, [C, a]);
|
|
3153
3146
|
const R = E((O) => {
|
|
@@ -3159,43 +3152,43 @@ const xi = "_wrapper_uccrb_1", yi = "_open_uccrb_9", vi = "_dropdown_uccrb_13",
|
|
|
3159
3152
|
}, [e]), G = E(() => {
|
|
3160
3153
|
k((O) => !O);
|
|
3161
3154
|
}, []);
|
|
3162
|
-
|
|
3155
|
+
M(() => (window.addEventListener("scroll", G), () => {
|
|
3163
3156
|
window.removeEventListener("scroll", G);
|
|
3164
|
-
}), [G]),
|
|
3157
|
+
}), [G]), M(() => (window.addEventListener("resize", G), () => {
|
|
3165
3158
|
window.removeEventListener("resize", G);
|
|
3166
3159
|
}), [G]), an(R), cn([w, f], e);
|
|
3167
|
-
const se = l ?? (c && c.length > 0 ? 250 : 0), te = (c == null ? void 0 : c.reduce((O, K) => O + (K.width ?? 100), 0)) ?? 0, U = `calc(max(${
|
|
3160
|
+
const se = l ?? (c && c.length > 0 ? 250 : 0), te = (c == null ? void 0 : c.reduce((O, K) => O + (K.width ?? 100), 0)) ?? 0, U = `calc(max(${j}px, ${se}px + ${te}px))`;
|
|
3168
3161
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3169
3162
|
/* @__PURE__ */ s.jsx(nr, { show: n, onClick: e }),
|
|
3170
|
-
r && n && !m && /* @__PURE__ */ s.jsx("button", { ref: f, type: "button", className: x("luminus-dropdown-picker-clear-button",
|
|
3163
|
+
r && n && !m && /* @__PURE__ */ s.jsx("button", { ref: f, type: "button", className: x("luminus-dropdown-picker-clear-button", J.clearButton), onClick: () => !m && o(null), style: {
|
|
3171
3164
|
top: `calc(${I}px + ${T / 2}px - 12px)`,
|
|
3172
3165
|
left: `calc(${$}px - 24px - 8px)`
|
|
3173
3166
|
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(Xt, { size: 16 }) }) }),
|
|
3174
|
-
/* @__PURE__ */ s.jsx("div", { className: x("luminus-dropdown-picker",
|
|
3175
|
-
[
|
|
3167
|
+
/* @__PURE__ */ s.jsx("div", { className: x("luminus-dropdown-picker", J.wrapper, {
|
|
3168
|
+
[J.open]: n
|
|
3176
3169
|
}), style: {
|
|
3177
3170
|
top: B ? `calc(${I}px - 50vh - 8px)` : `calc(${N}px + 8px)`,
|
|
3178
|
-
left: W ? `calc(${
|
|
3179
|
-
right: W ? `${
|
|
3171
|
+
left: W ? `calc(${P}px - ${U})` : $,
|
|
3172
|
+
right: W ? `${P}px` : `calc(${$}px + ${U})`,
|
|
3180
3173
|
width: U,
|
|
3181
3174
|
justifyContent: B ? "flex-end" : "flex-start"
|
|
3182
|
-
}, children: /* @__PURE__ */ s.jsx("div", { ref: w, className: x("shadow rounded",
|
|
3183
|
-
d && (h ?? t.length) <= F ? null : /* @__PURE__ */ s.jsx("div", { className: x("search-input-container border-bottom",
|
|
3175
|
+
}, children: /* @__PURE__ */ s.jsx("div", { ref: w, className: x("shadow rounded", J.dropdown), children: !m && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3176
|
+
d && (h ?? t.length) <= F ? null : /* @__PURE__ */ s.jsx("div", { className: x("search-input-container border-bottom", J.searchInputContainer), children: /* @__PURE__ */ s.jsx(ee.Control, { ref: _, type: "search", size: "sm", className: J.searchInput, placeholder: i.searchPlaceholder, value: v, onChange: (O) => {
|
|
3184
3177
|
var K;
|
|
3185
3178
|
return p(((K = O.target) == null ? void 0 : K.value) ?? "");
|
|
3186
3179
|
} }) }),
|
|
3187
|
-
g ? /* @__PURE__ */ s.jsx("div", { className:
|
|
3188
|
-
c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("header-row border-bottom",
|
|
3189
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3190
|
-
c == null ? void 0 : c.map((O) => /* @__PURE__ */ s.jsx("div", { className:
|
|
3180
|
+
g ? /* @__PURE__ */ s.jsx("div", { className: J.loadingContainer, children: /* @__PURE__ */ s.jsx(gt, { animation: "border", variant: "primary" }) }) : t.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("items", J.itemsContainer), children: [
|
|
3181
|
+
c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("header-row border-bottom", J.headerRow), children: [
|
|
3182
|
+
/* @__PURE__ */ s.jsx("div", { className: J.name }),
|
|
3183
|
+
c == null ? void 0 : c.map((O) => /* @__PURE__ */ s.jsx("div", { className: J.columnItem, style: {
|
|
3191
3184
|
width: `${O.width ?? 100}px`,
|
|
3192
3185
|
minWidth: `${O.width ?? 100}px`,
|
|
3193
3186
|
maxWidth: `${O.width ?? 100}px`
|
|
3194
3187
|
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", children: O.name }) }, O.key))
|
|
3195
3188
|
] }),
|
|
3196
|
-
t == null ? void 0 : t.map((O) => /* @__PURE__ */ s.jsxs("button", { type: "button", className: x("item cursor-pointer",
|
|
3197
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3198
|
-
c == null ? void 0 : c.map((K) => /* @__PURE__ */ s.jsx("div", { className:
|
|
3189
|
+
t == null ? void 0 : t.map((O) => /* @__PURE__ */ s.jsxs("button", { type: "button", className: x("item cursor-pointer", J.item), onClick: () => !m && o(O), children: [
|
|
3190
|
+
/* @__PURE__ */ s.jsx("div", { className: J.name, children: /* @__PURE__ */ s.jsx(z, { variant: "body2", children: u ? O.id : O.name }) }),
|
|
3191
|
+
c == null ? void 0 : c.map((K) => /* @__PURE__ */ s.jsx("div", { className: J.columnItem, style: {
|
|
3199
3192
|
width: `${K.width ?? 100}px`,
|
|
3200
3193
|
minWidth: `${K.width ?? 100}px`,
|
|
3201
3194
|
maxWidth: `${K.width ?? 100}px`
|
|
@@ -3205,12 +3198,12 @@ const xi = "_wrapper_uccrb_1", yi = "_open_uccrb_9", vi = "_dropdown_uccrb_13",
|
|
|
3205
3198
|
] }) }) })
|
|
3206
3199
|
] });
|
|
3207
3200
|
};
|
|
3208
|
-
function
|
|
3201
|
+
function Si(n) {
|
|
3209
3202
|
return Er({ 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);
|
|
3210
3203
|
}
|
|
3211
|
-
const
|
|
3212
|
-
item:
|
|
3213
|
-
},
|
|
3204
|
+
const Ti = "_item_1dy8x_1", tr = {
|
|
3205
|
+
item: Ti
|
|
3206
|
+
}, Ei = ({
|
|
3214
3207
|
color: n = "primary",
|
|
3215
3208
|
// icon = <MdOutlineArrowOutward />,
|
|
3216
3209
|
icon: e,
|
|
@@ -3220,7 +3213,7 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3220
3213
|
}) => /* @__PURE__ */ s.jsxs(Se.Item, { className: x(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${t ?? ""}`, tr.item), ...o, children: [
|
|
3221
3214
|
e,
|
|
3222
3215
|
r
|
|
3223
|
-
] }),
|
|
3216
|
+
] }), Oi = (n) => /* @__PURE__ */ s.jsx(Se.Toggle, { ...n }), Yc = ({ 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 }) => {
|
|
3224
3217
|
const u = (d) => {
|
|
3225
3218
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
3226
3219
|
};
|
|
@@ -3231,24 +3224,24 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3231
3224
|
] }),
|
|
3232
3225
|
/* @__PURE__ */ s.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
|
|
3233
3226
|
] });
|
|
3234
|
-
},
|
|
3235
|
-
divider:
|
|
3236
|
-
},
|
|
3237
|
-
dropdown:
|
|
3238
|
-
},
|
|
3227
|
+
}, Mi = "_divider_1e6rk_1", Di = {
|
|
3228
|
+
divider: Mi
|
|
3229
|
+
}, Bc = ({ className: n }) => /* @__PURE__ */ s.jsx(Se.Divider, { className: x("luminus-dropdown-divider", n, Di.divider) }), Pi = "_dropdown_1lk66_1", Ai = {
|
|
3230
|
+
dropdown: Pi
|
|
3231
|
+
}, Fi = ({ toggle: n, children: e, ...t }) => /* @__PURE__ */ s.jsxs(Se, { ...t, children: [
|
|
3239
3232
|
n,
|
|
3240
|
-
/* @__PURE__ */ s.jsx(Se.Menu, { className: x("luminus-dropdown rounded shadow",
|
|
3241
|
-
] }),
|
|
3242
|
-
dropdown:
|
|
3243
|
-
open:
|
|
3233
|
+
/* @__PURE__ */ s.jsx(Se.Menu, { className: x("luminus-dropdown rounded shadow", Ai.dropdown), children: e })
|
|
3234
|
+
] }), Wi = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PURE__ */ s.jsx(Fi, { toggle: /* @__PURE__ */ s.jsx(Oi, { as: Or, icon: null, text: e == null ? void 0 : e.text }), children: n.map((r) => /* @__PURE__ */ s.jsx(Ei, { icon: null, onClick: () => t(r), children: r.text }, r.key)) }), Ri = "_dropdown_1ddrg_1", qi = "_open_1ddrg_12", Li = "_loading-container_1ddrg_15", Yi = "_groups-container_1ddrg_22", Bi = "_group_1ddrg_22", Hi = "_header_1ddrg_26", Gi = "_item_1ddrg_33", me = {
|
|
3235
|
+
dropdown: Ri,
|
|
3236
|
+
open: qi,
|
|
3244
3237
|
"loading-container": "_loading-container_1ddrg_15",
|
|
3245
|
-
loadingContainer:
|
|
3238
|
+
loadingContainer: Li,
|
|
3246
3239
|
"groups-container": "_groups-container_1ddrg_22",
|
|
3247
|
-
groupsContainer:
|
|
3248
|
-
group:
|
|
3249
|
-
header:
|
|
3250
|
-
item:
|
|
3251
|
-
},
|
|
3240
|
+
groupsContainer: Yi,
|
|
3241
|
+
group: Bi,
|
|
3242
|
+
header: Hi,
|
|
3243
|
+
item: Gi
|
|
3244
|
+
}, Vi = ({ show: n, query: e, onCancel: t, groups: r, isLoading: o, searchTypes: a }) => {
|
|
3252
3245
|
const { LinkComponent: i, appSearchTexts: l } = q(oe), c = Y(null), u = E((d) => {
|
|
3253
3246
|
var m;
|
|
3254
3247
|
const h = (m = a.find((g) => g.key === d.type)) == null ? void 0 : m.toPath;
|
|
@@ -3284,18 +3277,18 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3284
3277
|
))
|
|
3285
3278
|
] }, d.key.category);
|
|
3286
3279
|
}) }) });
|
|
3287
|
-
},
|
|
3280
|
+
}, Ui = "_input-group_1lkfy_1", zi = "_input-group-text_1lkfy_5", Ki = "_left_1lkfy_9", Qi = "_right_1lkfy_13", Xi = "_input_1lkfy_1", Ji = "_submit-button_1lkfy_20", fe = {
|
|
3288
3281
|
"input-group": "_input-group_1lkfy_1",
|
|
3289
|
-
inputGroup:
|
|
3282
|
+
inputGroup: Ui,
|
|
3290
3283
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
3291
|
-
inputGroupText:
|
|
3292
|
-
left:
|
|
3293
|
-
right:
|
|
3294
|
-
input:
|
|
3284
|
+
inputGroupText: zi,
|
|
3285
|
+
left: Ki,
|
|
3286
|
+
right: Qi,
|
|
3287
|
+
input: Xi,
|
|
3295
3288
|
"submit-button": "_submit-button_1lkfy_20",
|
|
3296
|
-
submitButton:
|
|
3297
|
-
},
|
|
3298
|
-
const t = Dr(), [r, o] =
|
|
3289
|
+
submitButton: Ji
|
|
3290
|
+
}, Zi = (n, e) => {
|
|
3291
|
+
const t = Dr(), [r, o] = D(!1), [a, i] = D([]), l = !n || !n.key, c = E(() => {
|
|
3299
3292
|
if (e.length < 3) {
|
|
3300
3293
|
i([]);
|
|
3301
3294
|
return;
|
|
@@ -3306,37 +3299,37 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3306
3299
|
o(!1);
|
|
3307
3300
|
});
|
|
3308
3301
|
}, [n, e, t, l]);
|
|
3309
|
-
return
|
|
3302
|
+
return M(() => {
|
|
3310
3303
|
c();
|
|
3311
3304
|
}, [c]), { isLoading: r, searchItems: a };
|
|
3312
|
-
},
|
|
3313
|
-
const { appSearchTexts: t } = q(oe), [r, o] =
|
|
3314
|
-
return
|
|
3305
|
+
}, Hc = ({ searchTypes: n, navigateFunction: e }) => {
|
|
3306
|
+
const { appSearchTexts: t } = q(oe), [r, o] = D(n.length > 0 ? n[0] : null), [a, i] = D(""), [l, c] = er(a, 500), { isLoading: u, searchItems: d } = Zi(r, l), [h, m] = D(!1);
|
|
3307
|
+
return M(() => {
|
|
3315
3308
|
(d.length > 0 || u) && m(!0);
|
|
3316
3309
|
}, [d, u]), /* @__PURE__ */ s.jsx(ee, { onSubmit: (g) => {
|
|
3317
3310
|
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}`}`);
|
|
3318
3311
|
}, children: /* @__PURE__ */ s.jsxs(et, { className: fe.inputGroup, children: [
|
|
3319
|
-
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded", fe.inputGroupText, fe.left), children: /* @__PURE__ */ s.jsx(
|
|
3312
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded", fe.inputGroupText, fe.left), children: /* @__PURE__ */ s.jsx(Wi, { searchTypes: n, selectedType: r, setSelectedType: o }) }),
|
|
3320
3313
|
/* @__PURE__ */ s.jsx(ee.Control, { placeholder: t.searchPlaceholder, type: "text", size: "sm", className: x("luminus-app-search-input", fe.input), value: a, onChange: (g) => {
|
|
3321
3314
|
var b;
|
|
3322
3315
|
return i(((b = g.target) == null ? void 0 : b.value) ?? "");
|
|
3323
3316
|
}, onFocus: () => d.length > 0 && m(!0) }),
|
|
3324
|
-
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-0 rounded", fe.inputGroupText, fe.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: x("text-primary", fe.submitButton), children: /* @__PURE__ */ s.jsx(
|
|
3325
|
-
/* @__PURE__ */ s.jsx(
|
|
3317
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-0 rounded", fe.inputGroupText, fe.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: x("text-primary", fe.submitButton), children: /* @__PURE__ */ s.jsx(Si, {}) }) }),
|
|
3318
|
+
/* @__PURE__ */ s.jsx(Vi, { query: l, searchTypes: n, show: h, onCancel: () => m(!1), groups: d, isLoading: u })
|
|
3326
3319
|
] }) });
|
|
3327
|
-
},
|
|
3328
|
-
card:
|
|
3329
|
-
header:
|
|
3320
|
+
}, ec = "_card_19733_1", tc = "_header_19733_6", nc = "_header-content_19733_13", rc = "_title_19733_19", oc = "_collapse-icon_19733_22", sc = "_collapsed_19733_27", ac = "_content_19733_30", pe = {
|
|
3321
|
+
card: ec,
|
|
3322
|
+
header: tc,
|
|
3330
3323
|
"header-content": "_header-content_19733_13",
|
|
3331
|
-
headerContent:
|
|
3332
|
-
title:
|
|
3324
|
+
headerContent: nc,
|
|
3325
|
+
title: rc,
|
|
3333
3326
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
3334
|
-
collapseIcon:
|
|
3335
|
-
collapsed:
|
|
3336
|
-
content:
|
|
3337
|
-
},
|
|
3338
|
-
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] =
|
|
3339
|
-
return
|
|
3327
|
+
collapseIcon: oc,
|
|
3328
|
+
collapsed: sc,
|
|
3329
|
+
content: ac
|
|
3330
|
+
}, ic = ({ title: n, headerContent: e, children: t, className: r, headerClassName: o, contentClassName: a, ...i }) => {
|
|
3331
|
+
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] = D(l), d = i.collapsible ? i.controlled ? i.isOpen : c : !0;
|
|
3332
|
+
return M(() => {
|
|
3340
3333
|
u(l);
|
|
3341
3334
|
}, [l]), /* @__PURE__ */ s.jsxs("div", { className: x("luminus-card rounded shadow-sm", pe.card, {
|
|
3342
3335
|
[r ?? ""]: r
|
|
@@ -3358,32 +3351,32 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3358
3351
|
[a ?? ""]: a
|
|
3359
3352
|
}), children: t }) })
|
|
3360
3353
|
] });
|
|
3361
|
-
},
|
|
3362
|
-
lightbox:
|
|
3363
|
-
show:
|
|
3364
|
-
header:
|
|
3354
|
+
}, cc = "_lightbox_14acg_1", lc = "_show_14acg_16", uc = "_header_14acg_20", dc = "_photo-actions_14acg_26", hc = "_photo-container_14acg_31", mc = "_photo_14acg_26", fc = "_nav-button_14acg_41", pc = "_photos-preview_14acg_49", gc = "_selected_14acg_62", wc = "_default-indicator_14acg_66", ne = {
|
|
3355
|
+
lightbox: cc,
|
|
3356
|
+
show: lc,
|
|
3357
|
+
header: uc,
|
|
3365
3358
|
"photo-actions": "_photo-actions_14acg_26",
|
|
3366
|
-
photoActions:
|
|
3359
|
+
photoActions: dc,
|
|
3367
3360
|
"photo-container": "_photo-container_14acg_31",
|
|
3368
|
-
photoContainer:
|
|
3369
|
-
photo:
|
|
3361
|
+
photoContainer: hc,
|
|
3362
|
+
photo: mc,
|
|
3370
3363
|
"nav-button": "_nav-button_14acg_41",
|
|
3371
|
-
navButton:
|
|
3364
|
+
navButton: fc,
|
|
3372
3365
|
"photos-preview": "_photos-preview_14acg_49",
|
|
3373
|
-
photosPreview:
|
|
3374
|
-
selected:
|
|
3366
|
+
photosPreview: pc,
|
|
3367
|
+
selected: gc,
|
|
3375
3368
|
"default-indicator": "_default-indicator_14acg_66",
|
|
3376
|
-
defaultIndicator:
|
|
3377
|
-
},
|
|
3378
|
-
backdrop:
|
|
3379
|
-
show:
|
|
3380
|
-
}, nr = ({ show: n, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-backdrop",
|
|
3381
|
-
[
|
|
3382
|
-
}), onClick: () => e && e() }),
|
|
3383
|
-
const c = Y(null), [u, d] =
|
|
3384
|
-
|
|
3369
|
+
defaultIndicator: wc
|
|
3370
|
+
}, xc = "_backdrop_3huvf_1", yc = "_show_3huvf_11", Ht = {
|
|
3371
|
+
backdrop: xc,
|
|
3372
|
+
show: yc
|
|
3373
|
+
}, nr = ({ show: n, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-backdrop", Ht.backdrop, {
|
|
3374
|
+
[Ht.show]: n
|
|
3375
|
+
}), onClick: () => e && e() }), vc = ({ show: n, onClose: e, photos: t, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: l }) => {
|
|
3376
|
+
const c = Y(null), [u, d] = D(r), h = t.at(u), m = u > 0, g = u < t.length - 1;
|
|
3377
|
+
M(() => {
|
|
3385
3378
|
n && d(r);
|
|
3386
|
-
}, [r, n]),
|
|
3379
|
+
}, [r, n]), M(() => {
|
|
3387
3380
|
u >= t.length && d(t.length - 1);
|
|
3388
3381
|
}, [t, u]);
|
|
3389
3382
|
const b = E((w) => {
|
|
@@ -3409,17 +3402,17 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3409
3402
|
i && /* @__PURE__ */ s.jsx(Zn, { accept: ".jpg,.jpeg,.png", onUpload: (w) => {
|
|
3410
3403
|
w.length > 0 && i(Array.from(w));
|
|
3411
3404
|
}, icon: /* @__PURE__ */ s.jsx(Zt, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
3412
|
-
h && (l == null ? void 0 : l.map(({ label: w, onClick: f, ...
|
|
3405
|
+
h && (l == null ? void 0 : l.map(({ label: w, onClick: f, ..._ }, v) => /* @__PURE__ */ s.jsx(
|
|
3413
3406
|
at,
|
|
3414
3407
|
{
|
|
3415
3408
|
onClick: () => f(h.id),
|
|
3416
|
-
...
|
|
3409
|
+
..._,
|
|
3417
3410
|
children: w
|
|
3418
3411
|
},
|
|
3419
3412
|
`action-${v}`
|
|
3420
3413
|
)))
|
|
3421
3414
|
] }),
|
|
3422
|
-
/* @__PURE__ */ s.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ s.jsx(
|
|
3415
|
+
/* @__PURE__ */ s.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ s.jsx(xe, { style: { fontSize: "32px" } }) })
|
|
3423
3416
|
] }),
|
|
3424
3417
|
t.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(z, { variant: "body", children: a ?? "No photos available" }) }),
|
|
3425
3418
|
h && /* @__PURE__ */ s.jsxs("div", { className: ne.photoContainer, children: [
|
|
@@ -3435,9 +3428,9 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3435
3428
|
] })) })
|
|
3436
3429
|
] })
|
|
3437
3430
|
] });
|
|
3438
|
-
},
|
|
3439
|
-
const [o, a] =
|
|
3440
|
-
return
|
|
3431
|
+
}, Gc = ({ photos: n, onUploadPhotos: e, uploadPhotosText: t, photoActions: r }) => {
|
|
3432
|
+
const [o, a] = D(null), i = o !== null ? n[o] : null, [l, c] = D(!1);
|
|
3433
|
+
return M(() => {
|
|
3441
3434
|
if (n.length === 0) {
|
|
3442
3435
|
a(null), c(!1);
|
|
3443
3436
|
return;
|
|
@@ -3455,20 +3448,20 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3455
3448
|
onClick: () => c(!0)
|
|
3456
3449
|
}
|
|
3457
3450
|
),
|
|
3458
|
-
/* @__PURE__ */ s.jsx(
|
|
3451
|
+
/* @__PURE__ */ s.jsx(vc, { show: l, onClose: () => c(!1), photos: n, defaultIndex: o ?? 0, uploadPhotosText: t, onUploadPhotos: e, photoActions: r })
|
|
3459
3452
|
] }) : e ? /* @__PURE__ */ s.jsx(Zn, { accept: ".jpg,.jpeg,.png", onUpload: (u) => {
|
|
3460
3453
|
u.length > 0 && e(Array.from(u));
|
|
3461
3454
|
}, icon: /* @__PURE__ */ s.jsx(Zt, { style: { fontSize: 18 } }), multiple: !0, children: t ?? null }) : null;
|
|
3462
|
-
},
|
|
3455
|
+
}, Vc = ({ appAccessPermissions: n, children: e }) => {
|
|
3463
3456
|
const { NavigateComponent: t } = q(oe), { useMsal: r, msalScopes: o } = q(Ar), { isAuthenticated: a } = Fr(), { user: i, loggingInProgress: l } = q(Wr), c = i && (n == null ? void 0 : n.every((u) => {
|
|
3464
3457
|
var d;
|
|
3465
3458
|
return (d = i.permissions) == null ? void 0 : d.includes(u);
|
|
3466
3459
|
}));
|
|
3467
|
-
return r ? /* @__PURE__ */ s.jsx(Da, { interactionType:
|
|
3468
|
-
},
|
|
3460
|
+
return r ? /* @__PURE__ */ s.jsx(Da, { interactionType: qe.Redirect, authenticationRequest: { scopes: o }, children: l || !a() ? /* @__PURE__ */ s.jsx(Kr, {}) : i ? c ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(t, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(t, { to: "/no-user-login", replace: !0 }) }) : !a() || !i ? /* @__PURE__ */ s.jsx(t, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ s.jsx(t, { to: "/user-not-permitted", replace: !0 });
|
|
3461
|
+
}, Uc = (n) => {
|
|
3469
3462
|
const { variant: e, children: t, className: r, size: o = "md", typographyVariant: a = o === "sm" ? "body2" : "body", ...i } = { ...n };
|
|
3470
3463
|
return /* @__PURE__ */ s.jsx(ws, { variant: e, className: `text-center ${o === "sm" ? "p-1" : o === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...i, children: /* @__PURE__ */ s.jsx(z, { variant: a, children: t }) });
|
|
3471
|
-
},
|
|
3464
|
+
}, zc = ({ version: n }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
|
|
3472
3465
|
position: "fixed",
|
|
3473
3466
|
right: "0px",
|
|
3474
3467
|
bottom: "0px",
|
|
@@ -3479,7 +3472,14 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3479
3472
|
}, children: /* @__PURE__ */ s.jsxs(z, { variant: "caption", className: "w-100 text-end", children: [
|
|
3480
3473
|
"verze ",
|
|
3481
3474
|
n
|
|
3482
|
-
] }) }),
|
|
3475
|
+
] }) }), bc = "_submit-container_a9slg_1", _c = "_spacer_a9slg_14", Gt = {
|
|
3476
|
+
"submit-container": "_submit-container_a9slg_1",
|
|
3477
|
+
submitContainer: bc,
|
|
3478
|
+
spacer: _c
|
|
3479
|
+
}, jc = ({ children: n }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3480
|
+
/* @__PURE__ */ s.jsx("div", { className: Gt.spacer }),
|
|
3481
|
+
/* @__PURE__ */ s.jsx("div", { className: x("luminus-floating-submit-container shadow", Gt.submitContainer), children: n })
|
|
3482
|
+
] }), Kc = ({ heading: n, content: e, placement: t, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(Rr, { placement: t, overlay: /* @__PURE__ */ s.jsxs(Xe, { className: "luminus-popover", children: [
|
|
3483
3483
|
/* @__PURE__ */ s.jsx(Xe.Header, { children: typeof n == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: n }) : n }),
|
|
3484
3484
|
/* @__PURE__ */ s.jsx(Xe.Body, { children: e })
|
|
3485
3485
|
] }), trigger: o ?? "hover", rootClose: !0, children: r }), rr = ({ currentSelection: n, selectedItemNavigateTo: e, children: t }) => {
|
|
@@ -3488,39 +3488,39 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3488
3488
|
return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: t });
|
|
3489
3489
|
const o = e(n);
|
|
3490
3490
|
return /* @__PURE__ */ s.jsx(r, { to: o, className: "luminus-input-container position-relative w-100 text-decoration-none", children: t });
|
|
3491
|
-
},
|
|
3491
|
+
}, Qc = ({ InputContainer: n = Te, 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, className: i, children: /* @__PURE__ */ s.jsx(ee.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: t, onChange: (u) => {
|
|
3492
3492
|
var d;
|
|
3493
3493
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3494
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }),
|
|
3495
|
-
const f = e === "number",
|
|
3494
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Xc = ({ InputContainer: n = Te, 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: b, step: w }) => {
|
|
3495
|
+
const f = e === "number", _ = E(() => {
|
|
3496
3496
|
if (!r)
|
|
3497
3497
|
return;
|
|
3498
3498
|
const N = m ?? null;
|
|
3499
3499
|
r(f ? N ? Number(N) : null : (N == null ? void 0 : N.toString()) ?? "");
|
|
3500
|
-
}, [m, f, r]), v = Y(null), [p, C] =
|
|
3501
|
-
const
|
|
3502
|
-
r && (f && r(
|
|
3500
|
+
}, [m, f, r]), v = Y(null), [p, C] = D((t == null ? void 0 : t.toString()) ?? ""), k = E((N) => {
|
|
3501
|
+
const j = N;
|
|
3502
|
+
r && (f && r(j == null || j === "" ? null : Number(j)), r(j || null));
|
|
3503
3503
|
}, [f, r]), y = E((N) => {
|
|
3504
3504
|
var T;
|
|
3505
|
-
const
|
|
3505
|
+
const j = (T = N.target) == null ? void 0 : T.value;
|
|
3506
3506
|
if (!o) {
|
|
3507
|
-
k(
|
|
3507
|
+
k(j);
|
|
3508
3508
|
return;
|
|
3509
3509
|
}
|
|
3510
|
-
C(
|
|
3511
|
-
k(
|
|
3510
|
+
C(j), v.current !== null && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
3511
|
+
k(j);
|
|
3512
3512
|
}, o);
|
|
3513
3513
|
}, [o, k]);
|
|
3514
|
-
|
|
3514
|
+
M(() => {
|
|
3515
3515
|
C(t === null ? "" : t.toString());
|
|
3516
3516
|
}, [t]);
|
|
3517
|
-
const [$,
|
|
3517
|
+
const [$, P] = D(!1), I = ln(e, t ? t.toString() ?? null : null, $);
|
|
3518
3518
|
return /* @__PURE__ */ s.jsxs(n, { withoutLabel: i, label: a ?? "", hidden: u, className: b, children: [
|
|
3519
|
-
/* @__PURE__ */ s.jsx(ee.Control, { type: I, placeholder: l ?? a, size: c, value: o ? p : t ?? "", onChange: y, className: b ?? "", hidden: u, disabled: d ?? !1, list: g, onFocus: () =>
|
|
3520
|
-
h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(
|
|
3519
|
+
/* @__PURE__ */ s.jsx(ee.Control, { type: I, placeholder: l ?? a, size: c, value: o ? p : t ?? "", onChange: y, className: b ?? "", hidden: u, disabled: d ?? !1, list: g, onFocus: () => P(!0), onBlur: () => P(!1), step: w }),
|
|
3520
|
+
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: _, children: /* @__PURE__ */ s.jsx(xe, {}) }) })
|
|
3521
3521
|
] });
|
|
3522
|
-
},
|
|
3523
|
-
InputContainer: n =
|
|
3522
|
+
}, Jc = ({
|
|
3523
|
+
InputContainer: n = Te,
|
|
3524
3524
|
value: e,
|
|
3525
3525
|
options: t,
|
|
3526
3526
|
onChange: r,
|
|
@@ -3548,29 +3548,29 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3548
3548
|
var v;
|
|
3549
3549
|
if (!r)
|
|
3550
3550
|
return;
|
|
3551
|
-
const
|
|
3552
|
-
i && r(
|
|
3551
|
+
const _ = (v = f.target) == null ? void 0 : v.value;
|
|
3552
|
+
i && r(_ ? parseInt(_, 10) : null), r(_ || null);
|
|
3553
3553
|
}, className: g ?? "", hidden: c, disabled: u ?? !1, children: [
|
|
3554
3554
|
b && !(e == null || e === "") ? void 0 : /* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3555
|
-
t == null ? void 0 : t.sort((f,
|
|
3555
|
+
t == null ? void 0 : t.sort((f, _) => m ? 0 : (f.name ?? "").localeCompare(_.name ?? "")).map((f) => /* @__PURE__ */ s.jsx("option", { value: f.id ?? "", children: f.name }, f.id))
|
|
3556
3556
|
] }),
|
|
3557
|
-
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(
|
|
3557
|
+
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(xe, {}) }) })
|
|
3558
3558
|
] });
|
|
3559
|
-
},
|
|
3559
|
+
}, Zc = ({ InputContainer: n = Te, items: e, defaultSelection: t, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: m, additionalColumns: g, hidden: b, disabled: w, displayIdAsName: f, CustomOnChangeComponent: _, className: v }) => {
|
|
3560
3560
|
var T, F;
|
|
3561
|
-
const [p, C] =
|
|
3562
|
-
|
|
3561
|
+
const [p, C] = D(t), [k, y] = D(!1);
|
|
3562
|
+
M(() => {
|
|
3563
3563
|
C(t);
|
|
3564
3564
|
}, [t]);
|
|
3565
3565
|
const $ = E((W) => {
|
|
3566
3566
|
C(W);
|
|
3567
|
-
}, []),
|
|
3567
|
+
}, []), P = E((W) => {
|
|
3568
3568
|
y(!1), $(W);
|
|
3569
3569
|
}, [$]);
|
|
3570
|
-
|
|
3570
|
+
M(() => {
|
|
3571
3571
|
c && c(p);
|
|
3572
3572
|
}, [p, c]);
|
|
3573
|
-
const I = Y(null), N = r !== void 0,
|
|
3573
|
+
const I = Y(null), N = r !== void 0, j = N && p !== null;
|
|
3574
3574
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { withoutLabel: d, label: u ?? "", hidden: b, inputContainerClassName: x({ "luminus-dropdown-select-open": k }), className: v, children: [
|
|
3575
3575
|
/* @__PURE__ */ s.jsxs(rr, { currentSelection: p, selectedItemNavigateTo: r, children: [
|
|
3576
3576
|
f && (p == null ? void 0 : p.name) && /* @__PURE__ */ s.jsx(z, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: p.name }),
|
|
@@ -3583,90 +3583,116 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3583
3583
|
!N && !w && y(!0);
|
|
3584
3584
|
}, className: x("w-100", {
|
|
3585
3585
|
"luminus-dropdown-picker-disabled": w,
|
|
3586
|
-
"luminus-dropdown-picker-link":
|
|
3586
|
+
"luminus-dropdown-picker-link": j
|
|
3587
3587
|
}), hidden: b, children: [
|
|
3588
3588
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3589
3589
|
t && /* @__PURE__ */ s.jsx("option", { value: t.id ?? void 0, children: t.name && ((T = t.name) == null ? void 0 : T.length) > 0 ? t.name : t.id }),
|
|
3590
3590
|
p && /* @__PURE__ */ s.jsx("option", { value: p.id ?? void 0, children: p.name && ((F = p.name) == null ? void 0 : F.length) > 0 ? p.name : p.id })
|
|
3591
3591
|
] }),
|
|
3592
|
-
|
|
3593
|
-
!
|
|
3592
|
+
_ || !w && N ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
3593
|
+
!_ && !w && N && /* @__PURE__ */ s.jsx(X, { size: "sm", color: "secondary", onClick: (W) => {
|
|
3594
3594
|
W.preventDefault(), W.stopPropagation(), y(!0);
|
|
3595
3595
|
}, children: /* @__PURE__ */ s.jsx(en, {}) }),
|
|
3596
|
-
|
|
3596
|
+
_ ?? null
|
|
3597
3597
|
] }) : null
|
|
3598
3598
|
] }),
|
|
3599
|
-
I.current && /* @__PURE__ */ s.jsx(yt, { show: k, onCancel: () => y(!1), items: e, currentSelection: p, onSelectionChange:
|
|
3599
|
+
I.current && /* @__PURE__ */ s.jsx(yt, { show: k, onCancel: () => y(!1), items: e, currentSelection: p, onSelectionChange: P, onSearchQueryChange: o, texts: a, itemsNameWidth: m, additionalColumns: g, isLoading: i, disabled: w, inputRef: I })
|
|
3600
3600
|
] }) });
|
|
3601
|
-
},
|
|
3602
|
-
const
|
|
3603
|
-
|
|
3601
|
+
}, el = ({ InputContainer: n = Te, value: e, onChange: t, label: r, size: o, showClearIcon: a, clearValue: i, hidden: l, disabled: c, rows: u, withoutLabel: d, debounceMs: h, className: m }) => {
|
|
3602
|
+
const g = E(() => {
|
|
3603
|
+
if (!t)
|
|
3604
|
+
return;
|
|
3605
|
+
const p = i ?? null;
|
|
3606
|
+
t((p == null ? void 0 : p.toString()) ?? "");
|
|
3607
|
+
}, [i, t]), b = Y(null), [w, f] = D((e == null ? void 0 : e.toString()) ?? ""), _ = E((p) => {
|
|
3608
|
+
const C = p;
|
|
3609
|
+
t && t(C || null);
|
|
3610
|
+
}, [t]), v = E((p) => {
|
|
3611
|
+
var k;
|
|
3612
|
+
const C = (k = p.target) == null ? void 0 : k.value;
|
|
3613
|
+
if (!h) {
|
|
3614
|
+
_(C);
|
|
3615
|
+
return;
|
|
3616
|
+
}
|
|
3617
|
+
f(C), b.current !== null && window.clearTimeout(b.current), b.current = window.setTimeout(() => {
|
|
3618
|
+
_(C);
|
|
3619
|
+
}, h);
|
|
3620
|
+
}, [h, _]);
|
|
3621
|
+
return M(() => {
|
|
3622
|
+
f(e === null ? "" : e.toString());
|
|
3623
|
+
}, [e]), /* @__PURE__ */ s.jsxs(n, { label: r ?? "", hidden: l, withoutLabel: d, className: m, isForTextAreaInput: !0, children: [
|
|
3624
|
+
/* @__PURE__ */ s.jsx(ee.Control, { as: "textarea", size: o, value: h ? w : e ?? "", onChange: v, hidden: l, disabled: c, rows: u ?? 2, className: "w-100" }),
|
|
3625
|
+
a && e && t && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ s.jsx(xe, {}) }) })
|
|
3626
|
+
] });
|
|
3627
|
+
}, tl = ({ InputContainer: n = ye, formField: e, label: t, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c, className: u }) => {
|
|
3628
|
+
const { register: d, formState: h, setValue: m } = he(), [g, b] = D(void 0), [w, f] = D(!1);
|
|
3629
|
+
M(() => {
|
|
3604
3630
|
const v = e.split(".");
|
|
3605
3631
|
let p = h.errors;
|
|
3606
3632
|
v.forEach((C) => {
|
|
3607
3633
|
p !== void 0 && (p = p[C]);
|
|
3608
3634
|
}), b(p);
|
|
3609
|
-
}, [h, e]),
|
|
3635
|
+
}, [h, e]), M(() => {
|
|
3610
3636
|
h.isSubmitted && f(!0);
|
|
3611
3637
|
}, [h]);
|
|
3612
|
-
const
|
|
3613
|
-
return /* @__PURE__ */ s.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid:
|
|
3638
|
+
const _ = g !== void 0;
|
|
3639
|
+
return /* @__PURE__ */ s.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid: _, withoutLabel: c, className: u, children: [
|
|
3614
3640
|
/* @__PURE__ */ s.jsx(ee.Check, { id: `check-${e}`, type: o ?? "checkbox", label: `${t}${a ? " *" : ""}`, ...d(e, {
|
|
3615
3641
|
onChange: () => {
|
|
3616
3642
|
r && r.forEach((v) => m(v, null, { shouldDirty: !0, shouldValidate: w }));
|
|
3617
3643
|
}
|
|
3618
|
-
}), isInvalid:
|
|
3619
|
-
g && /* @__PURE__ */ s.jsx(
|
|
3644
|
+
}), isInvalid: _, hidden: i, disabled: l, className: "w-100" }),
|
|
3645
|
+
g && /* @__PURE__ */ s.jsx(ve, { message: g.message })
|
|
3620
3646
|
] });
|
|
3621
|
-
},
|
|
3622
|
-
const { register: u, formState: d, setValue: h, watch: m } = he(), [g, b] =
|
|
3623
|
-
|
|
3647
|
+
}, nl = ({ InputContainer: n = ye, label: e, formField: t, options: r, resetsFields: o, required: a, disabled: i, hidden: l, className: c }) => {
|
|
3648
|
+
const { register: u, formState: d, setValue: h, watch: m } = he(), [g, b] = D(void 0), [w, f] = D(!1), _ = Q(() => r, [r]);
|
|
3649
|
+
M(() => {
|
|
3624
3650
|
const p = t.split(".");
|
|
3625
3651
|
let C = d.errors;
|
|
3626
3652
|
p.forEach((k) => {
|
|
3627
3653
|
C !== void 0 && (C = C[k]);
|
|
3628
3654
|
}), b(C);
|
|
3629
|
-
}, [d, t]),
|
|
3655
|
+
}, [d, t]), M(() => {
|
|
3630
3656
|
d.isSubmitted && f(!0);
|
|
3631
3657
|
}, [d]);
|
|
3632
3658
|
const v = g !== void 0;
|
|
3633
3659
|
return /* @__PURE__ */ s.jsxs(n, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: v, className: c, children: [
|
|
3634
|
-
|
|
3660
|
+
_.map((p) => /* @__PURE__ */ s.jsx(ee.Check, { id: `radio-${p.id}`, label: p.name, type: "radio", value: p.id ?? "", checked: m(t) === p.id, ...u(t, {
|
|
3635
3661
|
onChange: () => {
|
|
3636
3662
|
o && o.forEach((C) => h(C, null, { shouldDirty: !0, shouldValidate: w }));
|
|
3637
3663
|
}
|
|
3638
3664
|
}), isInvalid: v, hidden: l, disabled: i, className: "w-100" }, p.id)),
|
|
3639
|
-
g && /* @__PURE__ */ s.jsx(
|
|
3665
|
+
g && /* @__PURE__ */ s.jsx(ve, { message: g.message })
|
|
3640
3666
|
] });
|
|
3641
|
-
},
|
|
3642
|
-
const { register: b, formState: w, setValue: f, watch:
|
|
3667
|
+
}, rl = ({ InputContainer: n = ye, formField: e, label: t, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, rows: d, withoutLabel: h, customFormControlProps: m, className: g }) => {
|
|
3668
|
+
const { register: b, formState: w, setValue: f, watch: _ } = he(), [v, p] = D(void 0), [C, k] = D(!1), y = E(() => {
|
|
3643
3669
|
const I = i ?? null;
|
|
3644
3670
|
f(e, (I == null ? void 0 : I.toString()) ?? "", { shouldDirty: !0, shouldValidate: C });
|
|
3645
3671
|
}, [i, f, e, C]), $ = E(() => {
|
|
3646
3672
|
const I = e.split(".");
|
|
3647
3673
|
let N = w.errors;
|
|
3648
|
-
I.forEach((
|
|
3649
|
-
N !== void 0 && (N = N[
|
|
3674
|
+
I.forEach((j) => {
|
|
3675
|
+
N !== void 0 && (N = N[j]);
|
|
3650
3676
|
}), p(N);
|
|
3651
3677
|
}, [w, e]);
|
|
3652
|
-
|
|
3678
|
+
M(() => {
|
|
3653
3679
|
$();
|
|
3654
|
-
}, [$]),
|
|
3680
|
+
}, [$]), M(() => {
|
|
3655
3681
|
w.isSubmitted && k(!0);
|
|
3656
3682
|
}, [w]);
|
|
3657
|
-
const
|
|
3658
|
-
return /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid:
|
|
3683
|
+
const P = v !== void 0;
|
|
3684
|
+
return /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: P, className: g, isForTextAreaInput: !0, children: [
|
|
3659
3685
|
/* @__PURE__ */ s.jsx(ee.Control, { as: "textarea", size: o, ...b(e, {
|
|
3660
3686
|
setValueAs: (I) => I == null || I === "" ? null : I,
|
|
3661
3687
|
onChange: () => {
|
|
3662
3688
|
r && r.forEach((I) => f(I, null, { shouldDirty: !0, shouldValidate: C }));
|
|
3663
3689
|
}
|
|
3664
|
-
}), isInvalid:
|
|
3665
|
-
a &&
|
|
3666
|
-
v && /* @__PURE__ */ s.jsx(
|
|
3690
|
+
}), isInvalid: P, hidden: c, disabled: u, rows: d ?? 2, className: "w-100", ...m }),
|
|
3691
|
+
a && _(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
|
|
3692
|
+
v && /* @__PURE__ */ s.jsx(ve, { message: v.message })
|
|
3667
3693
|
] });
|
|
3668
|
-
},
|
|
3669
|
-
const { register:
|
|
3694
|
+
}, ol = ({ InputContainer: n = ye, 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, step: b, CustomOnChangeComponent: w, className: f }) => {
|
|
3695
|
+
const { register: _, formState: v, setValue: p, watch: C } = he(), [k, y] = D(void 0), [$, P] = D(!1), I = E(() => {
|
|
3670
3696
|
const R = c ?? null;
|
|
3671
3697
|
e === "number" ? p(t, R !== null ? Number(R) : null, {
|
|
3672
3698
|
shouldDirty: !0,
|
|
@@ -3679,30 +3705,30 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3679
3705
|
G !== void 0 && (G = G[se]);
|
|
3680
3706
|
}), y(G);
|
|
3681
3707
|
}, [v, t]);
|
|
3682
|
-
|
|
3708
|
+
M(() => {
|
|
3683
3709
|
N();
|
|
3684
|
-
}, [N]),
|
|
3685
|
-
v.isSubmitted &&
|
|
3710
|
+
}, [N]), M(() => {
|
|
3711
|
+
v.isSubmitted && P(!0);
|
|
3686
3712
|
}, [v]);
|
|
3687
|
-
const
|
|
3688
|
-
return /* @__PURE__ */ s.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid:
|
|
3713
|
+
const j = k !== void 0, [T, F] = D(!1), W = C(t), B = ln(e, W ?? null, T);
|
|
3714
|
+
return /* @__PURE__ */ s.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: j, className: f, children: [
|
|
3689
3715
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3690
3716
|
/* @__PURE__ */ s.jsx(ee.Control, { type: B, placeholder: o ?? r, size: a, onFocus: () => {
|
|
3691
3717
|
F(!0);
|
|
3692
|
-
}, ...
|
|
3718
|
+
}, ..._(t, {
|
|
3693
3719
|
setValueAs: (R) => e === "number" ? R == null || R === "" ? null : Number(R) : R == null || R === "" ? null : R,
|
|
3694
3720
|
onChange: () => {
|
|
3695
3721
|
i && i.forEach((R) => p(R, null, { shouldDirty: !0, shouldValidate: $ }));
|
|
3696
3722
|
},
|
|
3697
3723
|
onBlur: () => F(!1)
|
|
3698
|
-
}), isInvalid:
|
|
3724
|
+
}), isInvalid: j, hidden: d, disabled: h, list: g, className: "w-100", step: b }),
|
|
3699
3725
|
w && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: w })
|
|
3700
3726
|
] }),
|
|
3701
|
-
l && C(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(
|
|
3702
|
-
k && /* @__PURE__ */ s.jsx(
|
|
3727
|
+
l && C(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(xe, {}) }) }),
|
|
3728
|
+
k && /* @__PURE__ */ s.jsx(ve, { message: k.message })
|
|
3703
3729
|
] });
|
|
3704
|
-
},
|
|
3705
|
-
const { formState: k, setValue: y, watch: $, control:
|
|
3730
|
+
}, sl = ({ InputContainer: n = ye, formField: e, label: t, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: m, texts: g, dropdownItemsNameWidth: b, isLoading: w, withoutLabel: f, additionalColumns: _, CustomOnChangeComponent: v, displayIdAsName: p, className: C }) => {
|
|
3731
|
+
const { formState: k, setValue: y, watch: $, control: P } = he(), [I, N] = D(void 0), [j, T] = D(!1), [F, W] = D(!1), B = $(e) ?? null, R = B === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : $(`${e}-DropdownName`), G = Q(() => B == null ? null : { id: B ?? null, name: R ?? "" }, [B, R]), se = E(() => {
|
|
3706
3732
|
const H = e.split(".");
|
|
3707
3733
|
let ce = k.errors;
|
|
3708
3734
|
H.forEach((Ke) => {
|
|
@@ -3728,71 +3754,71 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3728
3754
|
}, [te]), S = E(() => {
|
|
3729
3755
|
T(!1);
|
|
3730
3756
|
}, []);
|
|
3731
|
-
|
|
3757
|
+
M(() => {
|
|
3732
3758
|
se();
|
|
3733
|
-
}, [se]),
|
|
3759
|
+
}, [se]), M(() => {
|
|
3734
3760
|
k.isSubmitted && W(!0);
|
|
3735
3761
|
}, [k]);
|
|
3736
|
-
const O = Y(null), K = I !== void 0,
|
|
3737
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid: K, inputContainerClassName: x({ "luminus-dropdown-select-open":
|
|
3762
|
+
const O = Y(null), K = I !== void 0, Me = m !== void 0, or = Me && G !== null;
|
|
3763
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid: K, inputContainerClassName: x({ "luminus-dropdown-select-open": j }), className: C, children: [
|
|
3738
3764
|
/* @__PURE__ */ s.jsxs(rr, { currentSelection: G, selectedItemNavigateTo: m, children: [
|
|
3739
3765
|
p && (G == null ? void 0 : G.name) && /* @__PURE__ */ s.jsx(z, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: G.name }),
|
|
3740
|
-
/* @__PURE__ */ s.jsx(sn, { control:
|
|
3766
|
+
/* @__PURE__ */ s.jsx(sn, { control: P, name: e, render: () => /* @__PURE__ */ s.jsx(ee.Select, { size: r, onMouseDown: (H) => {
|
|
3741
3767
|
H.currentTarget.focus(), H.preventDefault();
|
|
3742
3768
|
}, onClick: () => {
|
|
3743
|
-
!
|
|
3769
|
+
!Me && !u && T(!0);
|
|
3744
3770
|
}, ref: O, value: B ?? "", onChange: () => {
|
|
3745
3771
|
}, isInvalid: K, hidden: c, className: x("w-100", {
|
|
3746
3772
|
"luminus-dropdown-picker-disabled": u,
|
|
3747
3773
|
"luminus-dropdown-picker-link": or
|
|
3748
3774
|
}), children: /* @__PURE__ */ s.jsx("option", { value: B, children: p ? B : (R == null ? void 0 : R.length) > 0 ? R : B }) }) }),
|
|
3749
|
-
v || !u &&
|
|
3750
|
-
!v && !u &&
|
|
3775
|
+
v || !u && Me ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
3776
|
+
!v && !u && Me && /* @__PURE__ */ s.jsx(X, { size: "sm", color: "secondary", onClick: (H) => {
|
|
3751
3777
|
H.preventDefault(), H.stopPropagation(), T(!0);
|
|
3752
3778
|
}, children: /* @__PURE__ */ s.jsx(en, {}) }),
|
|
3753
3779
|
v ?? null
|
|
3754
3780
|
] }) : null
|
|
3755
3781
|
] }),
|
|
3756
|
-
I && /* @__PURE__ */ s.jsx(
|
|
3757
|
-
O.current && /* @__PURE__ */ s.jsx(yt, { show:
|
|
3782
|
+
I && /* @__PURE__ */ s.jsx(ve, { message: I.message }),
|
|
3783
|
+
O.current && /* @__PURE__ */ s.jsx(yt, { show: j, onCancel: S, items: d, currentSelection: G, onSelectionChange: U, onSearchQueryChange: h, texts: g, itemsNameWidth: b, additionalColumns: _, displayIdAsName: p, isLoading: w, disabled: u, inputRef: O })
|
|
3758
3784
|
] }) });
|
|
3759
|
-
},
|
|
3760
|
-
const { watch: g, setValue: b, register: w, formState: f } = he(), [
|
|
3785
|
+
}, al = ({ InputContainer: n = ye, label: e, formField: t, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h, className: m }) => {
|
|
3786
|
+
const { watch: g, setValue: b, register: w, formState: f } = he(), [_, v] = D(!1), [p, C] = D(void 0), k = E(() => {
|
|
3761
3787
|
b(t, "");
|
|
3762
3788
|
}, [b, t]), y = E(() => {
|
|
3763
|
-
const
|
|
3789
|
+
const P = t.split(".");
|
|
3764
3790
|
let I = f.errors;
|
|
3765
|
-
|
|
3791
|
+
P.forEach((N) => {
|
|
3766
3792
|
I !== void 0 && (I = I[N]);
|
|
3767
3793
|
}), C(I);
|
|
3768
3794
|
}, [f, t]);
|
|
3769
|
-
|
|
3795
|
+
M(y, [y]), M(() => {
|
|
3770
3796
|
f.isSubmitted && v(!0);
|
|
3771
3797
|
}, [f]);
|
|
3772
3798
|
const $ = p !== void 0;
|
|
3773
3799
|
return /* @__PURE__ */ s.jsxs(n, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: $, className: m, children: [
|
|
3774
3800
|
/* @__PURE__ */ s.jsx(rn, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: $, hidden: r, disabled: i, className: "w-100", ...w(t, {
|
|
3775
3801
|
onChange: () => {
|
|
3776
|
-
c && c.forEach((
|
|
3802
|
+
c && c.forEach((P) => b(P, null, { shouldDirty: !0, shouldValidate: _ }));
|
|
3777
3803
|
}
|
|
3778
3804
|
}) }),
|
|
3779
|
-
l && g(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(
|
|
3780
|
-
p && /* @__PURE__ */ s.jsx(
|
|
3805
|
+
l && g(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
|
|
3806
|
+
p && /* @__PURE__ */ s.jsx(ve, { message: p.message })
|
|
3781
3807
|
] });
|
|
3782
|
-
},
|
|
3783
|
-
const { formState: t } = he(), [r, o] =
|
|
3784
|
-
return
|
|
3808
|
+
}, il = ({ children: n, onStorno: e }) => {
|
|
3809
|
+
const { formState: t } = he(), [r, o] = D(!1);
|
|
3810
|
+
return M(() => {
|
|
3785
3811
|
o(Object.keys(t.dirtyFields).length > 0);
|
|
3786
|
-
}, [t]), r ? /* @__PURE__ */ s.jsx(
|
|
3787
|
-
},
|
|
3788
|
-
const { customSelectTexts: b } = q(oe), { formState: w, setValue: f, watch:
|
|
3812
|
+
}, [t]), r ? /* @__PURE__ */ s.jsx(Pa, { onStorno: e, children: n }) : null;
|
|
3813
|
+
}, cl = ({ InputContainer: n = ye, options: e, formField: t, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: m, className: g }) => {
|
|
3814
|
+
const { customSelectTexts: b } = q(oe), { formState: w, setValue: f, watch: _, control: v } = he(), [p, C] = D(void 0), [k, y] = D(!1), [$, P] = D(!1), [I, N] = D(""), j = _(t), T = Q(() => e.find((S) => S.id === j) ?? null, [e, j]), F = E(() => {
|
|
3789
3815
|
const S = t.split(".");
|
|
3790
3816
|
let O = w.errors;
|
|
3791
3817
|
S.forEach((K) => {
|
|
3792
3818
|
O !== void 0 && (O = O[K]);
|
|
3793
3819
|
}), C(O);
|
|
3794
3820
|
}, [w, t]), W = E((S) => {
|
|
3795
|
-
if ((S == null ? void 0 : S.id) ===
|
|
3821
|
+
if ((S == null ? void 0 : S.id) === j)
|
|
3796
3822
|
return;
|
|
3797
3823
|
if (a && a.forEach((K) => f(K, null, { shouldDirty: !0, shouldValidate: $ })), S === null) {
|
|
3798
3824
|
f(t, null, {
|
|
@@ -3806,15 +3832,15 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3806
3832
|
shouldDirty: !0,
|
|
3807
3833
|
shouldValidate: $
|
|
3808
3834
|
});
|
|
3809
|
-
}, [f, t, i, a,
|
|
3835
|
+
}, [f, t, i, a, j, $]), B = E((S) => {
|
|
3810
3836
|
y(!1), W(S);
|
|
3811
3837
|
}, [W]), R = E((S) => {
|
|
3812
3838
|
N(S);
|
|
3813
3839
|
}, []);
|
|
3814
|
-
|
|
3840
|
+
M(() => {
|
|
3815
3841
|
F();
|
|
3816
|
-
}, [F]),
|
|
3817
|
-
w.isSubmitted &&
|
|
3842
|
+
}, [F]), M(() => {
|
|
3843
|
+
w.isSubmitted && P(!0);
|
|
3818
3844
|
}, [w]);
|
|
3819
3845
|
const G = E((S) => {
|
|
3820
3846
|
var O;
|
|
@@ -3828,18 +3854,18 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3828
3854
|
S.currentTarget.focus(), S.preventDefault();
|
|
3829
3855
|
}, onClick: () => {
|
|
3830
3856
|
y(!0);
|
|
3831
|
-
}, ref: te, value:
|
|
3857
|
+
}, ref: te, value: j ?? "", onChange: () => {
|
|
3832
3858
|
}, isInvalid: U, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (T == null ? void 0 : T.id) ?? "", children: G(T) }) }) }),
|
|
3833
|
-
p && /* @__PURE__ */ s.jsx(
|
|
3859
|
+
p && /* @__PURE__ */ s.jsx(ve, { message: p.message }),
|
|
3834
3860
|
te.current && /* @__PURE__ */ s.jsx(yt, { show: k, onCancel: () => y(!1), items: se, currentSelection: T ?? null, onSelectionChange: B, onSearchQueryChange: R, texts: b, disabled: u, inputRef: te, autoHideSearch: !0, allItemsLength: e.length })
|
|
3835
3861
|
] }) });
|
|
3836
|
-
},
|
|
3862
|
+
}, ll = ({ cell: { value: n } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: n ? /* @__PURE__ */ s.jsx(qr, { name: n, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), kc = "_tab-panel_qgi9v_1", Cc = "_full-height-no-overflow_qgi9v_5", Nc = "_disabled_qgi9v_10", nt = {
|
|
3837
3863
|
"tab-panel": "_tab-panel_qgi9v_1",
|
|
3838
|
-
tabPanel:
|
|
3864
|
+
tabPanel: kc,
|
|
3839
3865
|
"full-height-no-overflow": "_full-height-no-overflow_qgi9v_5",
|
|
3840
|
-
fullHeightNoOverflow:
|
|
3841
|
-
disabled:
|
|
3842
|
-
},
|
|
3866
|
+
fullHeightNoOverflow: Cc,
|
|
3867
|
+
disabled: Nc
|
|
3868
|
+
}, ul = ({ eventKey: n, activeTab: e, fullHeightNoOverflow: t, disabled: r, className: o, children: a }) => n !== e ? null : /* @__PURE__ */ s.jsx("div", { className: x("luminus-tab-panel", nt.tabPanel, { [nt.fullHeightNoOverflow]: t }, { disabled: r }, { [nt.disabled]: r }, o), children: a }), dl = ({ activeTab: n, onSelect: e, children: t }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-tabs d-flex gap-1 mb-2"), children: t.map((r) => {
|
|
3843
3869
|
const o = r.type, a = r.props;
|
|
3844
3870
|
if (!a)
|
|
3845
3871
|
return null;
|
|
@@ -3847,65 +3873,67 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3847
3873
|
return /* @__PURE__ */ Hr(o, { ...a, key: a.eventKey, className: x({ active: n === i }, c), onClick: () => {
|
|
3848
3874
|
e(i), u && u(i);
|
|
3849
3875
|
} }, l);
|
|
3850
|
-
}) }),
|
|
3851
|
-
tab:
|
|
3852
|
-
disabled:
|
|
3853
|
-
},
|
|
3876
|
+
}) }), $c = "_tab_1hdhk_1", Ic = "_disabled_1hdhk_8", Vt = {
|
|
3877
|
+
tab: $c,
|
|
3878
|
+
disabled: Ic
|
|
3879
|
+
}, hl = ({ eventKey: n, className: e, onClick: t, disabled: r, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: x("luminus-tab text-primary rounded", Vt.tab, e, {
|
|
3854
3880
|
disabled: r
|
|
3855
3881
|
}, { [Vt.disabled]: r }), onClick: () => t && !r && t(n), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: o }) : o });
|
|
3856
3882
|
export {
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3883
|
+
jc as ActionButtonContainer,
|
|
3884
|
+
Uc as Alert,
|
|
3885
|
+
Ac as ApiFileDownloadButton,
|
|
3886
|
+
Hc as AppSearch,
|
|
3887
|
+
Vc as AuthTemplate,
|
|
3861
3888
|
qr as AvatarIcon,
|
|
3862
3889
|
nr as Backdrop,
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3890
|
+
qc as Badge,
|
|
3891
|
+
ic as Card,
|
|
3892
|
+
Qc as CheckInput,
|
|
3893
|
+
Lc as Collapse,
|
|
3867
3894
|
at as ContextButton,
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3895
|
+
Fi as Dropdown,
|
|
3896
|
+
Bc as DropdownDivider,
|
|
3897
|
+
Ei as DropdownItem,
|
|
3898
|
+
Zc as DropdownPicker,
|
|
3899
|
+
Oi as DropdownToggle,
|
|
3873
3900
|
Zn as FileUploadContextButton,
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3901
|
+
Yc as FileUploadDropdownItem,
|
|
3902
|
+
Pa as FloatingFormSubmit,
|
|
3903
|
+
Te as FloatingLabelInput,
|
|
3904
|
+
Rc as HomeDashboard,
|
|
3905
|
+
tl as HookFormCheckInput,
|
|
3906
|
+
sl as HookFormDropdownPicker,
|
|
3907
|
+
al as HookFormFileInput,
|
|
3908
|
+
il as HookFormFloatingSubmit,
|
|
3909
|
+
nl as HookFormRadioInput,
|
|
3910
|
+
cl as HookFormSelectInput,
|
|
3911
|
+
rl as HookFormTextAreaInput,
|
|
3912
|
+
ol as HookFormTextInput,
|
|
3913
|
+
Kc as HtmlTooltip,
|
|
3914
|
+
X as IconButton,
|
|
3915
|
+
ve as InvalidFeedback,
|
|
3889
3916
|
Kr as Loading,
|
|
3890
3917
|
Jr as LoadingBlock,
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3918
|
+
Fc as MonthPicker,
|
|
3919
|
+
pl as NoInputContainer,
|
|
3920
|
+
Gc as PhotoLibrary,
|
|
3921
|
+
vc as PhotoLightbox,
|
|
3895
3922
|
Ct as PrimaryButton,
|
|
3896
|
-
|
|
3897
|
-
|
|
3923
|
+
ye as RowLabelInput,
|
|
3924
|
+
Jc as SelectInput,
|
|
3898
3925
|
yt as SimplePicker,
|
|
3899
3926
|
Or as SimpleToggle,
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3927
|
+
xl as SimpleTooltip,
|
|
3928
|
+
hl as Tab,
|
|
3929
|
+
ul as TabPanel,
|
|
3930
|
+
dl as Tabs,
|
|
3931
|
+
el as TextAreaInput,
|
|
3932
|
+
Xc as TextInput,
|
|
3905
3933
|
z as Typography,
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3934
|
+
gl as UserAvatarToggle,
|
|
3935
|
+
ll as UserAvatarValueFormat,
|
|
3936
|
+
zc as VersionInfo,
|
|
3937
|
+
qt as WidgetCard,
|
|
3938
|
+
Wc as YearPicker
|
|
3911
3939
|
};
|