react-luminus-components 1.3.2 → 1.3.4
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/main.cjs.js +1 -1
- package/dist/main.es.js +232 -232
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { j as s, c as w, t as ee, a as se, g as
|
|
1
|
+
import { j as s, c as w, t as ee, a as se, g as vr, T as br, b as _r, s as It, E as jr, d as kr, e as Nr, f as Cr, h as Ir, u as B, i as fe, k as tn, F as $t, l as $r, m as Sr, n as Tr, o as Er, p as Or, q as Dr, r as Pr, v as Mr, w as ht, x as nn, y as Ar, z as Fr, A as _e, B as Wr, C as Rr, P as be, D as ft, S as St, G as Ae, H as Fe, I as mt, J as Lr, K as rn, L as Se, M as qe, O as Tt, N as Yr, Q as ae, R as qr, U as Hr, V as on, W as pt, X as gt, Y as V, Z as Br, _ as sn, $ as Gr, a0 as an, a1 as wt, a2 as Vr, a3 as Ur, a4 as cn, a5 as ln, a6 as ce, a7 as zr, a8 as Kr, a9 as Qr, aa as Xr, ab as Jr, ac as un, ad as Zr, ae as eo, af as Ze, ag as Ne, ah as dn, ai as me } from "./NoInputContainer-Cl1VEez2.js";
|
|
2
2
|
import { ak as nu, aj as ru } from "./NoInputContainer-Cl1VEez2.js";
|
|
3
3
|
import * as R from "react";
|
|
4
4
|
import Z, { useCallback as T, useMemo as K, useEffect as O, useRef as q, useState as D, useReducer as hn, useContext as L, Component as to, isValidElement as no, Suspense as ro, createElement as oo } from "react";
|
|
5
5
|
import { c as de, d as so, C as ao, a as fn, u as io, q as Et, F as co, b as mn, E as We, P as Ot, M as Re, L as Dt } from "./PrimaryButton-Dvh3Xiid.js";
|
|
6
6
|
import { m as lo, a as pn } from "./latinize-BQrinury.js";
|
|
7
7
|
import { useFormContext as le, Controller as gn } from "react-hook-form";
|
|
8
|
-
import { u as wn, a as xn, b as
|
|
8
|
+
import { u as wn, a as xn, b as yn } from "./useFormControlType-BAFqxupC.js";
|
|
9
9
|
import He from "react-dom";
|
|
10
10
|
import { S as su } from "./SimpleTooltip-CMrJHfcY.js";
|
|
11
11
|
import { s as uo } from "./searchUtils-Du4JnXdQ.js";
|
|
12
|
-
const
|
|
12
|
+
const yl = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
13
13
|
const r = T(async () => {
|
|
14
14
|
var l, c;
|
|
15
15
|
const o = await t();
|
|
@@ -24,7 +24,7 @@ const vl = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
|
24
24
|
/* @__PURE__ */ s.jsx("div", { className: w("spinner-grow", de.spinnerGrow, "text-primary", de.second), role: "status" }),
|
|
25
25
|
/* @__PURE__ */ s.jsx("div", { className: w("spinner-grow", de.spinnerGrow, "text-primary", de.third), role: "status" })
|
|
26
26
|
] });
|
|
27
|
-
function
|
|
27
|
+
function vn(t, e) {
|
|
28
28
|
const n = ee(t);
|
|
29
29
|
if (isNaN(e))
|
|
30
30
|
return se(t, NaN);
|
|
@@ -86,7 +86,7 @@ function po(t) {
|
|
|
86
86
|
return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), Be(n);
|
|
87
87
|
}
|
|
88
88
|
function go(t, e) {
|
|
89
|
-
return
|
|
89
|
+
return vn(t, e * 12);
|
|
90
90
|
}
|
|
91
91
|
function wo(t, e) {
|
|
92
92
|
const n = ee(t), r = ee(e), o = n.getTime() - r.getTime();
|
|
@@ -95,13 +95,13 @@ function wo(t, e) {
|
|
|
95
95
|
function xo(t) {
|
|
96
96
|
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function yo(t) {
|
|
99
99
|
if (!xo(t) && typeof t != "number")
|
|
100
100
|
return !1;
|
|
101
101
|
const e = ee(t);
|
|
102
102
|
return !isNaN(Number(e));
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function vo(t) {
|
|
105
105
|
const e = ee(t), n = se(t, 0);
|
|
106
106
|
return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
107
107
|
}
|
|
@@ -540,7 +540,7 @@ const Lo = /^(\d+)(th|st|nd|rd)?/i, Yo = /\d+/i, qo = {
|
|
|
540
540
|
};
|
|
541
541
|
function es(t) {
|
|
542
542
|
const e = ee(t);
|
|
543
|
-
return mo(e,
|
|
543
|
+
return mo(e, vo(e)) + 1;
|
|
544
544
|
}
|
|
545
545
|
function ts(t) {
|
|
546
546
|
const e = ee(t), n = +Be(e) - +po(e);
|
|
@@ -1060,11 +1060,11 @@ const he = {
|
|
|
1060
1060
|
return Wt(r);
|
|
1061
1061
|
case "XXXX":
|
|
1062
1062
|
case "XX":
|
|
1063
|
-
return
|
|
1063
|
+
return ve(r);
|
|
1064
1064
|
case "XXXXX":
|
|
1065
1065
|
case "XXX":
|
|
1066
1066
|
default:
|
|
1067
|
-
return
|
|
1067
|
+
return ve(r, ":");
|
|
1068
1068
|
}
|
|
1069
1069
|
},
|
|
1070
1070
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1075,11 +1075,11 @@ const he = {
|
|
|
1075
1075
|
return Wt(r);
|
|
1076
1076
|
case "xxxx":
|
|
1077
1077
|
case "xx":
|
|
1078
|
-
return
|
|
1078
|
+
return ve(r);
|
|
1079
1079
|
case "xxxxx":
|
|
1080
1080
|
case "xxx":
|
|
1081
1081
|
default:
|
|
1082
|
-
return
|
|
1082
|
+
return ve(r, ":");
|
|
1083
1083
|
}
|
|
1084
1084
|
},
|
|
1085
1085
|
// Timezone (GMT)
|
|
@@ -1092,7 +1092,7 @@ const he = {
|
|
|
1092
1092
|
return "GMT" + Ft(r, ":");
|
|
1093
1093
|
case "OOOO":
|
|
1094
1094
|
default:
|
|
1095
|
-
return "GMT" +
|
|
1095
|
+
return "GMT" + ve(r, ":");
|
|
1096
1096
|
}
|
|
1097
1097
|
},
|
|
1098
1098
|
// Timezone (specific non-location)
|
|
@@ -1105,7 +1105,7 @@ const he = {
|
|
|
1105
1105
|
return "GMT" + Ft(r, ":");
|
|
1106
1106
|
case "zzzz":
|
|
1107
1107
|
default:
|
|
1108
|
-
return "GMT" +
|
|
1108
|
+
return "GMT" + ve(r, ":");
|
|
1109
1109
|
}
|
|
1110
1110
|
},
|
|
1111
1111
|
// Seconds timestamp
|
|
@@ -1124,9 +1124,9 @@ function Ft(t, e = "") {
|
|
|
1124
1124
|
return a === 0 ? n + String(o) : n + String(o) + e + Y(a, 2);
|
|
1125
1125
|
}
|
|
1126
1126
|
function Wt(t, e) {
|
|
1127
|
-
return t % 60 === 0 ? (t > 0 ? "-" : "+") + Y(Math.abs(t) / 60, 2) :
|
|
1127
|
+
return t % 60 === 0 ? (t > 0 ? "-" : "+") + Y(Math.abs(t) / 60, 2) : ve(t, e);
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function ve(t, e = "") {
|
|
1130
1130
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), o = Y(Math.trunc(r / 60), 2), a = Y(r % 60, 2);
|
|
1131
1131
|
return n + o + e + a;
|
|
1132
1132
|
}
|
|
@@ -1196,9 +1196,9 @@ function hs(t, e, n) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
const fs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ms = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ps = /^'([^]*?)'?$/, gs = /''/g, ws = /[a-zA-Z]/;
|
|
1198
1198
|
function at(t, e, n) {
|
|
1199
|
-
var d, h, p, m,
|
|
1200
|
-
const r = ze(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Zo, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((h = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((m = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((
|
|
1201
|
-
if (!
|
|
1199
|
+
var d, h, p, m, y, v, g, b;
|
|
1200
|
+
const r = ze(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Zo, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((h = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((m = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((v = (y = n == null ? void 0 : n.locale) == null ? void 0 : y.options) == null ? void 0 : v.weekStartsOn) ?? r.weekStartsOn ?? ((b = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : b.weekStartsOn) ?? 0, l = ee(t);
|
|
1201
|
+
if (!yo(l))
|
|
1202
1202
|
throw new RangeError("Invalid time value");
|
|
1203
1203
|
let c = e.match(ms).map((k) => {
|
|
1204
1204
|
const f = k[0];
|
|
@@ -1240,14 +1240,14 @@ function xs(t) {
|
|
|
1240
1240
|
const e = t.match(ps);
|
|
1241
1241
|
return e ? e[1].replace(gs, "'") : t;
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function ys(t) {
|
|
1244
1244
|
const e = ee(t), n = e.getFullYear(), r = e.getMonth(), o = se(t, 0);
|
|
1245
1245
|
return o.setFullYear(n, r + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1247
|
+
function vs(t, e) {
|
|
1248
1248
|
const n = ee(t), r = n.getFullYear(), o = n.getDate(), a = se(t, 0);
|
|
1249
1249
|
a.setFullYear(r, e, 15), a.setHours(0, 0, 0, 0);
|
|
1250
|
-
const i =
|
|
1250
|
+
const i = ys(a);
|
|
1251
1251
|
return n.setMonth(e, Math.min(o, i)), n;
|
|
1252
1252
|
}
|
|
1253
1253
|
function kn(t, e) {
|
|
@@ -1274,7 +1274,7 @@ var bs = function(t, e, n, r, o, a, i, l) {
|
|
|
1274
1274
|
throw c.framesToPop = 1, c;
|
|
1275
1275
|
}
|
|
1276
1276
|
}, _s = bs;
|
|
1277
|
-
const Lt = /* @__PURE__ */
|
|
1277
|
+
const Lt = /* @__PURE__ */ vr(_s);
|
|
1278
1278
|
function $e(...t) {
|
|
1279
1279
|
return t.filter((e) => e != null).reduce((e, n) => {
|
|
1280
1280
|
if (typeof n != "function")
|
|
@@ -1314,8 +1314,8 @@ const Ns = {
|
|
|
1314
1314
|
unmountOnExit: h = !1,
|
|
1315
1315
|
appear: p = !1,
|
|
1316
1316
|
getDimensionValue: m = ks,
|
|
1317
|
-
...
|
|
1318
|
-
},
|
|
1317
|
+
...y
|
|
1318
|
+
}, v) => {
|
|
1319
1319
|
const g = typeof l == "function" ? l() : l, b = K(() => $e((x) => {
|
|
1320
1320
|
x.style[g] = "0";
|
|
1321
1321
|
}, t), [g, t]), k = K(() => $e((x) => {
|
|
@@ -1329,10 +1329,10 @@ const Ns = {
|
|
|
1329
1329
|
x.style[g] = null;
|
|
1330
1330
|
}, o), [g, o]);
|
|
1331
1331
|
return /* @__PURE__ */ s.jsx(br, {
|
|
1332
|
-
ref:
|
|
1332
|
+
ref: v,
|
|
1333
1333
|
addEndListener: _r,
|
|
1334
|
-
...
|
|
1335
|
-
"aria-expanded":
|
|
1334
|
+
...y,
|
|
1335
|
+
"aria-expanded": y.role ? c : null,
|
|
1336
1336
|
onEnter: b,
|
|
1337
1337
|
onEntering: k,
|
|
1338
1338
|
onEntered: f,
|
|
@@ -1452,7 +1452,7 @@ function Es(t, e) {
|
|
|
1452
1452
|
function Os(t) {
|
|
1453
1453
|
return !t || t.trim() === "#";
|
|
1454
1454
|
}
|
|
1455
|
-
const
|
|
1455
|
+
const yt = /* @__PURE__ */ R.forwardRef((t, e) => {
|
|
1456
1456
|
let {
|
|
1457
1457
|
onKeyDown: n
|
|
1458
1458
|
} = t, r = Es(t, Ts);
|
|
@@ -1471,11 +1471,11 @@ const vt = /* @__PURE__ */ R.forwardRef((t, e) => {
|
|
|
1471
1471
|
onKeyDown: n
|
|
1472
1472
|
}));
|
|
1473
1473
|
});
|
|
1474
|
-
|
|
1474
|
+
yt.displayName = "Anchor";
|
|
1475
1475
|
const Sn = /* @__PURE__ */ R.forwardRef(({
|
|
1476
1476
|
className: t,
|
|
1477
1477
|
bsPrefix: e,
|
|
1478
|
-
as: n =
|
|
1478
|
+
as: n = yt,
|
|
1479
1479
|
...r
|
|
1480
1480
|
}, o) => (e = B(e, "alert-link"), /* @__PURE__ */ s.jsx(n, {
|
|
1481
1481
|
ref: o,
|
|
@@ -1498,20 +1498,20 @@ const Tn = /* @__PURE__ */ R.forwardRef((t, e) => {
|
|
|
1498
1498
|
...p
|
|
1499
1499
|
} = tn(t, {
|
|
1500
1500
|
show: "onClose"
|
|
1501
|
-
}), m = B(n, "alert"),
|
|
1501
|
+
}), m = B(n, "alert"), y = fe((b) => {
|
|
1502
1502
|
u && u(!1, b);
|
|
1503
|
-
}),
|
|
1503
|
+
}), v = h === !0 ? $t : h, g = /* @__PURE__ */ s.jsxs("div", {
|
|
1504
1504
|
role: "alert",
|
|
1505
|
-
...
|
|
1505
|
+
...v ? void 0 : p,
|
|
1506
1506
|
ref: e,
|
|
1507
1507
|
className: w(i, m, c && `${m}-${c}`, d && `${m}-dismissible`),
|
|
1508
1508
|
children: [d && /* @__PURE__ */ s.jsx(ao, {
|
|
1509
|
-
onClick:
|
|
1509
|
+
onClick: y,
|
|
1510
1510
|
"aria-label": o,
|
|
1511
1511
|
variant: a
|
|
1512
1512
|
}), l]
|
|
1513
1513
|
});
|
|
1514
|
-
return
|
|
1514
|
+
return v ? /* @__PURE__ */ s.jsx(v, {
|
|
1515
1515
|
unmountOnExit: !0,
|
|
1516
1516
|
...p,
|
|
1517
1517
|
ref: void 0,
|
|
@@ -1634,15 +1634,15 @@ function Dn(t = {}) {
|
|
|
1634
1634
|
usePopper: p = !!e
|
|
1635
1635
|
} = t, m = (e == null ? void 0 : e.show) == null ? !!t.show : e.show;
|
|
1636
1636
|
m && !o.current && (o.current = !0);
|
|
1637
|
-
const
|
|
1637
|
+
const y = (x) => {
|
|
1638
1638
|
e == null || e.toggle(!1, x);
|
|
1639
1639
|
}, {
|
|
1640
|
-
placement:
|
|
1640
|
+
placement: v,
|
|
1641
1641
|
setMenu: g,
|
|
1642
1642
|
menuElement: b,
|
|
1643
1643
|
toggleElement: k
|
|
1644
1644
|
} = e || {}, f = Er(k, b, Or({
|
|
1645
|
-
placement: u ||
|
|
1645
|
+
placement: u || v || "bottom-start",
|
|
1646
1646
|
enabled: p,
|
|
1647
1647
|
enableEvents: h ?? m,
|
|
1648
1648
|
offset: i,
|
|
@@ -1657,7 +1657,7 @@ function Dn(t = {}) {
|
|
|
1657
1657
|
style: f.styles.popper
|
|
1658
1658
|
}), j = {
|
|
1659
1659
|
show: m,
|
|
1660
|
-
placement:
|
|
1660
|
+
placement: v,
|
|
1661
1661
|
hasShown: o.current,
|
|
1662
1662
|
toggle: e == null ? void 0 : e.toggle,
|
|
1663
1663
|
popper: p ? f : null,
|
|
@@ -1667,7 +1667,7 @@ function Dn(t = {}) {
|
|
|
1667
1667
|
style: f.styles.arrow
|
|
1668
1668
|
}) : {}
|
|
1669
1669
|
};
|
|
1670
|
-
return Dr(b,
|
|
1670
|
+
return Dr(b, y, {
|
|
1671
1671
|
clickTrigger: l,
|
|
1672
1672
|
disabled: !m
|
|
1673
1673
|
}), [N, j];
|
|
@@ -1831,7 +1831,7 @@ function De({
|
|
|
1831
1831
|
placement: i = "bottom-start",
|
|
1832
1832
|
children: l
|
|
1833
1833
|
}) {
|
|
1834
|
-
const c = Pr(), [u, d] = As(e, t, r), [h, p] = Ht(), m = h.current, [
|
|
1834
|
+
const c = Pr(), [u, d] = As(e, t, r), [h, p] = Ht(), m = h.current, [y, v] = Ht(), g = y.current, b = io(u), k = q(null), f = q(!1), N = L(it), j = T((_, I, F = I == null ? void 0 : I.type) => {
|
|
1835
1835
|
d(_, {
|
|
1836
1836
|
originalEvent: I,
|
|
1837
1837
|
source: F
|
|
@@ -1845,8 +1845,8 @@ function De({
|
|
|
1845
1845
|
menuElement: m,
|
|
1846
1846
|
toggleElement: g,
|
|
1847
1847
|
setMenu: p,
|
|
1848
|
-
setToggle:
|
|
1849
|
-
}), [j, i, u, m, g, p,
|
|
1848
|
+
setToggle: v
|
|
1849
|
+
}), [j, i, u, m, g, p, v]);
|
|
1850
1850
|
m && b && !u && (f.current = m.contains(m.ownerDocument.activeElement));
|
|
1851
1851
|
const P = fe(() => {
|
|
1852
1852
|
g && g.focus && g.focus();
|
|
@@ -1874,7 +1874,7 @@ function De({
|
|
|
1874
1874
|
var I, F;
|
|
1875
1875
|
const {
|
|
1876
1876
|
key: W
|
|
1877
|
-
} = _, te = _.target, z = (I = h.current) == null ? void 0 : I.contains(te), M = (F =
|
|
1877
|
+
} = _, te = _.target, z = (I = h.current) == null ? void 0 : I.contains(te), M = (F = y.current) == null ? void 0 : F.contains(te);
|
|
1878
1878
|
if (/input|textarea/i.test(te.tagName) && (W === " " || W !== "Escape" && z || W === "Escape" && te.type === "search") || !z && !M || W === "Tab" && (!h.current || !u))
|
|
1879
1879
|
return;
|
|
1880
1880
|
k.current = _.type;
|
|
@@ -1920,8 +1920,8 @@ De.displayName = "Dropdown";
|
|
|
1920
1920
|
De.Menu = Pn;
|
|
1921
1921
|
De.Toggle = Wn;
|
|
1922
1922
|
De.Item = Yn;
|
|
1923
|
-
const
|
|
1924
|
-
|
|
1923
|
+
const vt = /* @__PURE__ */ R.createContext({});
|
|
1924
|
+
vt.displayName = "DropdownContext";
|
|
1925
1925
|
const qn = /* @__PURE__ */ R.forwardRef(({
|
|
1926
1926
|
className: t,
|
|
1927
1927
|
bsPrefix: e,
|
|
@@ -1955,7 +1955,7 @@ const Bn = /* @__PURE__ */ R.forwardRef(({
|
|
|
1955
1955
|
disabled: r = !1,
|
|
1956
1956
|
onClick: o,
|
|
1957
1957
|
active: a,
|
|
1958
|
-
as: i =
|
|
1958
|
+
as: i = yt,
|
|
1959
1959
|
...l
|
|
1960
1960
|
}, c) => {
|
|
1961
1961
|
const u = B(t, "dropdown-item"), [d, h] = Ln({
|
|
@@ -2016,19 +2016,19 @@ const Kn = /* @__PURE__ */ R.forwardRef(({
|
|
|
2016
2016
|
...d
|
|
2017
2017
|
}, h) => {
|
|
2018
2018
|
let p = !1;
|
|
2019
|
-
const m = L(Vn),
|
|
2020
|
-
align:
|
|
2019
|
+
const m = L(Vn), y = B(t, "dropdown-menu"), {
|
|
2020
|
+
align: v,
|
|
2021
2021
|
drop: g,
|
|
2022
2022
|
isRTL: b
|
|
2023
|
-
} = L(
|
|
2024
|
-
n = n ||
|
|
2023
|
+
} = L(vt);
|
|
2024
|
+
n = n || v;
|
|
2025
2025
|
const k = L(Qe), f = [];
|
|
2026
2026
|
if (n)
|
|
2027
2027
|
if (typeof n == "object") {
|
|
2028
2028
|
const _ = Object.keys(n);
|
|
2029
2029
|
if (process.env.NODE_ENV !== "production" && nn(_.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), _.length) {
|
|
2030
2030
|
const I = _[0], F = n[I];
|
|
2031
|
-
p = F === "start", f.push(`${
|
|
2031
|
+
p = F === "start", f.push(`${y}-${I}-${F}`);
|
|
2032
2032
|
}
|
|
2033
2033
|
} else
|
|
2034
2034
|
n === "end" && (p = !0);
|
|
@@ -2062,7 +2062,7 @@ const Kn = /* @__PURE__ */ R.forwardRef(({
|
|
|
2062
2062
|
...(f.length || m) && {
|
|
2063
2063
|
"data-bs-popper": "static"
|
|
2064
2064
|
},
|
|
2065
|
-
className: w(e,
|
|
2065
|
+
className: w(e, y, P && "show", p && `${y}-end`, u && `${y}-${u}`, ...f)
|
|
2066
2066
|
});
|
|
2067
2067
|
});
|
|
2068
2068
|
Kn.displayName = "DropdownMenu";
|
|
@@ -2102,7 +2102,7 @@ const Xn = /* @__PURE__ */ R.forwardRef((t, e) => {
|
|
|
2102
2102
|
...m
|
|
2103
2103
|
} = tn(t, {
|
|
2104
2104
|
show: "onToggle"
|
|
2105
|
-
}),
|
|
2105
|
+
}), y = L(Qe), v = B(n, "dropdown"), g = Fr(), b = (C) => p === !1 ? C === "click" : p === "inside" ? C !== "rootClose" : p === "outside" ? C !== "select" : !0, k = fe((C, P) => {
|
|
2106
2106
|
var $, S;
|
|
2107
2107
|
!(($ = P.originalEvent) == null || (S = $.target) == null) && S.classList.contains("dropdown-toggle") && P.source === "mousedown" || (P.originalEvent.currentTarget === document && (P.source !== "keydown" || P.originalEvent.key === "Escape") && (P.source = "rootClose"), b(P.source) && (c == null || c(C, P)));
|
|
2108
2108
|
}), N = zn(i === "end", r, g), j = K(() => ({
|
|
@@ -2110,14 +2110,14 @@ const Xn = /* @__PURE__ */ R.forwardRef((t, e) => {
|
|
|
2110
2110
|
drop: r,
|
|
2111
2111
|
isRTL: g
|
|
2112
2112
|
}), [i, r, g]), x = {
|
|
2113
|
-
down:
|
|
2114
|
-
"down-centered": `${
|
|
2113
|
+
down: v,
|
|
2114
|
+
"down-centered": `${v}-center`,
|
|
2115
2115
|
up: "dropup",
|
|
2116
2116
|
"up-centered": "dropup-center dropup",
|
|
2117
2117
|
end: "dropend",
|
|
2118
2118
|
start: "dropstart"
|
|
2119
2119
|
};
|
|
2120
|
-
return /* @__PURE__ */ s.jsx(
|
|
2120
|
+
return /* @__PURE__ */ s.jsx(vt.Provider, {
|
|
2121
2121
|
value: j,
|
|
2122
2122
|
children: /* @__PURE__ */ s.jsx(De, {
|
|
2123
2123
|
placement: N,
|
|
@@ -2125,8 +2125,8 @@ const Xn = /* @__PURE__ */ R.forwardRef((t, e) => {
|
|
|
2125
2125
|
onSelect: l,
|
|
2126
2126
|
onToggle: k,
|
|
2127
2127
|
focusFirstItemOnShow: u,
|
|
2128
|
-
itemSelector: `.${
|
|
2129
|
-
children:
|
|
2128
|
+
itemSelector: `.${v}-item:not(.disabled):not(:disabled)`,
|
|
2129
|
+
children: y ? m.children : /* @__PURE__ */ s.jsx(d, {
|
|
2130
2130
|
...m,
|
|
2131
2131
|
ref: e,
|
|
2132
2132
|
className: w(a, o && "show", x[r])
|
|
@@ -2197,8 +2197,8 @@ const Jn = /* @__PURE__ */ R.forwardRef(({
|
|
|
2197
2197
|
className: h,
|
|
2198
2198
|
style: p,
|
|
2199
2199
|
title: m = "",
|
|
2200
|
-
type:
|
|
2201
|
-
label:
|
|
2200
|
+
type: y = "checkbox",
|
|
2201
|
+
label: v,
|
|
2202
2202
|
children: g,
|
|
2203
2203
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2204
2204
|
as: b = "input",
|
|
@@ -2209,9 +2209,9 @@ const Jn = /* @__PURE__ */ R.forwardRef(({
|
|
|
2209
2209
|
controlId: N
|
|
2210
2210
|
} = L(_e), j = K(() => ({
|
|
2211
2211
|
controlId: t || N
|
|
2212
|
-
}), [N, t]), x = !g &&
|
|
2212
|
+
}), [N, t]), x = !g && v != null && v !== !1 || Ps(g, Ve), C = /* @__PURE__ */ s.jsx(Pe, {
|
|
2213
2213
|
...k,
|
|
2214
|
-
type:
|
|
2214
|
+
type: y === "switch" ? "checkbox" : y,
|
|
2215
2215
|
ref: f,
|
|
2216
2216
|
isValid: i,
|
|
2217
2217
|
isInvalid: l,
|
|
@@ -2222,11 +2222,11 @@ const Jn = /* @__PURE__ */ R.forwardRef(({
|
|
|
2222
2222
|
value: j,
|
|
2223
2223
|
children: /* @__PURE__ */ s.jsx("div", {
|
|
2224
2224
|
style: p,
|
|
2225
|
-
className: w(h, x && e, r && `${e}-inline`, o && `${e}-reverse`,
|
|
2225
|
+
className: w(h, x && e, r && `${e}-inline`, o && `${e}-reverse`, y === "switch" && n),
|
|
2226
2226
|
children: g || /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
2227
2227
|
children: [C, x && /* @__PURE__ */ s.jsx(Ve, {
|
|
2228
2228
|
title: m,
|
|
2229
|
-
children:
|
|
2229
|
+
children: v
|
|
2230
2230
|
}), u && /* @__PURE__ */ s.jsx(co, {
|
|
2231
2231
|
type: d,
|
|
2232
2232
|
tooltip: c,
|
|
@@ -2455,7 +2455,7 @@ const nt = Object.assign(sr, {
|
|
|
2455
2455
|
});
|
|
2456
2456
|
_t.displayName = "Spinner";
|
|
2457
2457
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2458
|
-
const ar = "client_info_decoding_error", ir = "client_info_empty_error", ra = "token_parsing_error", oa = "null_or_empty_token", sa = "endpoints_resolution_error", aa = "network_error", ia = "openid_config_error", ca = "hash_not_deserialized", la = "invalid_state", ua = "state_mismatch", da = "state_not_found", ha = "nonce_mismatch", fa = "auth_time_not_found", ma = "max_age_transpired", pa = "multiple_matching_tokens", ga = "multiple_matching_accounts", wa = "multiple_matching_appMetadata", xa = "request_cannot_be_made",
|
|
2458
|
+
const ar = "client_info_decoding_error", ir = "client_info_empty_error", ra = "token_parsing_error", oa = "null_or_empty_token", sa = "endpoints_resolution_error", aa = "network_error", ia = "openid_config_error", ca = "hash_not_deserialized", la = "invalid_state", ua = "state_mismatch", da = "state_not_found", ha = "nonce_mismatch", fa = "auth_time_not_found", ma = "max_age_transpired", pa = "multiple_matching_tokens", ga = "multiple_matching_accounts", wa = "multiple_matching_appMetadata", xa = "request_cannot_be_made", ya = "cannot_remove_empty_scope", va = "cannot_append_scopeset", ba = "empty_input_scopeset", _a = "device_code_polling_cancelled", ja = "device_code_expired", ka = "device_code_unknown_error", Na = "no_account_in_silent_request", Ca = "invalid_cache_record", cr = "invalid_cache_environment", Ia = "no_account_found", $a = "no_crypto_object", Sa = "unexpected_credential_type", Ta = "invalid_assertion", Ea = "invalid_client_credential", Oa = "token_refresh_required", Da = "user_timeout_reached", Pa = "token_claims_cnf_required_for_signedjwt", Ma = "authorization_code_missing_from_server_response", Aa = "binding_key_not_removed", Fa = "end_session_endpoint_not_supported", Wa = "key_id_missing", Ra = "no_network_connectivity", La = "user_canceled", Ya = "missing_tenant_id_error", qa = "method_not_implemented", Ha = "nested_app_auth_bridge_disabled";
|
|
2459
2459
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2460
2460
|
const Bt = {
|
|
2461
2461
|
[ar]: "The client info could not be parsed/decoded correctly",
|
|
@@ -2476,8 +2476,8 @@ const Bt = {
|
|
|
2476
2476
|
[ga]: "The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",
|
|
2477
2477
|
[wa]: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",
|
|
2478
2478
|
[xa]: "Token request cannot be made without authorization code or refresh token.",
|
|
2479
|
-
[
|
|
2480
|
-
[
|
|
2479
|
+
[ya]: "Cannot remove null or empty scope from ScopeSet",
|
|
2480
|
+
[va]: "Cannot append ScopeSet",
|
|
2481
2481
|
[ba]: "Empty input ScopeSet cannot be processed",
|
|
2482
2482
|
[_a]: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",
|
|
2483
2483
|
[ja]: "Device code is expired.",
|
|
@@ -2748,7 +2748,7 @@ function Ka(t, e, n) {
|
|
|
2748
2748
|
return;
|
|
2749
2749
|
}
|
|
2750
2750
|
}, [u, c]);
|
|
2751
|
-
const
|
|
2751
|
+
const y = T(async (g, b) => {
|
|
2752
2752
|
const k = g || t, f = b || e;
|
|
2753
2753
|
switch (k) {
|
|
2754
2754
|
case qe.Popup:
|
|
@@ -2760,7 +2760,7 @@ function Ka(t, e, n) {
|
|
|
2760
2760
|
default:
|
|
2761
2761
|
throw ke.createInvalidInteractionTypeError();
|
|
2762
2762
|
}
|
|
2763
|
-
}, [r, t, e, a]),
|
|
2763
|
+
}, [r, t, e, a]), v = T(async (g, b) => {
|
|
2764
2764
|
const k = g || t;
|
|
2765
2765
|
let f;
|
|
2766
2766
|
return b ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), f = {
|
|
@@ -2774,7 +2774,7 @@ function Ka(t, e, n) {
|
|
|
2774
2774
|
if (j instanceof kt) {
|
|
2775
2775
|
if (p.current)
|
|
2776
2776
|
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), ke.createUnableToFallbackToInteractionError();
|
|
2777
|
-
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"),
|
|
2777
|
+
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), y(k, f);
|
|
2778
2778
|
}
|
|
2779
2779
|
throw j;
|
|
2780
2780
|
})))().then((j) => (h.current && d([j, null]), j)).catch((j) => {
|
|
@@ -2786,7 +2786,7 @@ function Ka(t, e, n) {
|
|
|
2786
2786
|
e,
|
|
2787
2787
|
a,
|
|
2788
2788
|
l,
|
|
2789
|
-
|
|
2789
|
+
y
|
|
2790
2790
|
]);
|
|
2791
2791
|
return O(() => {
|
|
2792
2792
|
const g = r.addEventCallback((b) => {
|
|
@@ -2808,12 +2808,12 @@ function Ka(t, e, n) {
|
|
|
2808
2808
|
g && (a.verbose(`useMsalAuthentication - Removing event callback ${g}`), r.removeEventCallback(g));
|
|
2809
2809
|
};
|
|
2810
2810
|
}, [r, a]), O(() => {
|
|
2811
|
-
m.current && o === Se.None && (m.current = !1, i ? l && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"),
|
|
2812
|
-
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"),
|
|
2811
|
+
m.current && o === Se.None && (m.current = !1, i ? l && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), v().catch(() => {
|
|
2812
|
+
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"), y().catch(() => {
|
|
2813
2813
|
})));
|
|
2814
|
-
}, [i, l, o,
|
|
2815
|
-
login:
|
|
2816
|
-
acquireToken:
|
|
2814
|
+
}, [i, l, o, y, v, a]), {
|
|
2815
|
+
login: y,
|
|
2816
|
+
acquireToken: v,
|
|
2817
2817
|
result: c,
|
|
2818
2818
|
error: u
|
|
2819
2819
|
};
|
|
@@ -2834,7 +2834,7 @@ function Qa({ interactionType: t, username: e, homeAccountId: n, localAccountId:
|
|
|
2834
2834
|
}
|
|
2835
2835
|
const Xa = ({ children: t, onStorno: e, noSpacer: n }) => {
|
|
2836
2836
|
const { formSubmitTexts: r } = L(ae);
|
|
2837
|
-
return /* @__PURE__ */ s.jsxs(
|
|
2837
|
+
return /* @__PURE__ */ s.jsxs(Xc, { noSpacer: n, children: [
|
|
2838
2838
|
/* @__PURE__ */ s.jsxs(Ot, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
2839
2839
|
/* @__PURE__ */ s.jsx(qr, {}),
|
|
2840
2840
|
t
|
|
@@ -2892,9 +2892,9 @@ const Xa = ({ children: t, onStorno: e, noSpacer: n }) => {
|
|
|
2892
2892
|
) : null;
|
|
2893
2893
|
}, ri = "_select_dlv1t_1", ot = {
|
|
2894
2894
|
select: ri
|
|
2895
|
-
},
|
|
2895
|
+
}, vl = ({ month: t, onChangeMonth: e, locale: n, yearMin: r = 2e3, yearMax: o = 2050 }) => {
|
|
2896
2896
|
const a = T((c) => {
|
|
2897
|
-
const u =
|
|
2897
|
+
const u = vn(t, c);
|
|
2898
2898
|
u.getFullYear() < r || u.getFullYear() > o || e(u);
|
|
2899
2899
|
}, [t, e, r, o]), i = K(() => {
|
|
2900
2900
|
const c = [];
|
|
@@ -2914,7 +2914,7 @@ const Xa = ({ children: t, onStorno: e, noSpacer: n }) => {
|
|
|
2914
2914
|
/* @__PURE__ */ s.jsx(U, { onClick: () => a(-1), disabled: t.getFullYear() < r || t.getFullYear() === r && t.getMonth() <= 0, children: /* @__PURE__ */ s.jsx(pt, {}) }),
|
|
2915
2915
|
/* @__PURE__ */ s.jsx(Q.Select, { value: t.getMonth(), onChange: (c) => {
|
|
2916
2916
|
var u;
|
|
2917
|
-
return ((u = c.target) == null ? void 0 : u.value) && e(
|
|
2917
|
+
return ((u = c.target) == null ? void 0 : u.value) && e(vs(t, Number(c.target.value)));
|
|
2918
2918
|
}, className: w(ot.select, ot.month), children: l.map((c) => /* @__PURE__ */ s.jsx("option", { value: c.id, children: c.name }, c.id)) }),
|
|
2919
2919
|
/* @__PURE__ */ s.jsx(Q.Select, { value: t.getFullYear(), onChange: (c) => {
|
|
2920
2920
|
var u;
|
|
@@ -3009,37 +3009,37 @@ class xi extends to {
|
|
|
3009
3009
|
] }) : n;
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
|
-
const
|
|
3012
|
+
const yi = (t) => (n) => {
|
|
3013
3013
|
const { errorBoundaryTexts: r } = L(ae);
|
|
3014
3014
|
return /* @__PURE__ */ s.jsx(t, { texts: r, ...n });
|
|
3015
|
-
},
|
|
3015
|
+
}, vi = yi(xi), bi = "_widget-card_e9tsb_1", _i = {
|
|
3016
3016
|
"widget-card": "_widget-card_e9tsb_1",
|
|
3017
3017
|
widgetCard: bi
|
|
3018
3018
|
}, zt = ({ children: t, title: e, headerContent: n }) => /* @__PURE__ */ s.jsx(Cc, { className: w(_i.widgetCard, "luminus-widget"), title: e, headerContent: n, contentClassName: "h-100 overflow-auto", children: t }), ji = ({ children: t, title: e }) => {
|
|
3019
3019
|
const { widgetTexts: n } = L(ae);
|
|
3020
|
-
return /* @__PURE__ */ s.jsx(
|
|
3020
|
+
return /* @__PURE__ */ s.jsx(vi, { fallback: /* @__PURE__ */ s.jsx(zt, { title: e, children: n.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ s.jsx(ro, { fallback: /* @__PURE__ */ s.jsx(zt, { title: e, children: /* @__PURE__ */ s.jsx(ho, {}) }), children: t }) });
|
|
3021
3021
|
}, _l = ({ availableWidgets: t, editMode: e, defaultDashboardConfig: n }) => {
|
|
3022
3022
|
var d;
|
|
3023
3023
|
const { homeDashboardTexts: r } = L(ae), { dashboardConfig: o, onChangeDashboardConfig: a } = li(n), i = T((h, p) => {
|
|
3024
|
-
var m,
|
|
3024
|
+
var m, y;
|
|
3025
3025
|
h === ((m = o.widgets) == null ? void 0 : m.length) ? a({
|
|
3026
3026
|
...o,
|
|
3027
3027
|
widgets: [...o.widgets, { widgetId: p, fullWidth: !1 }]
|
|
3028
3028
|
}) : a({
|
|
3029
3029
|
...o,
|
|
3030
|
-
widgets: ((
|
|
3030
|
+
widgets: ((y = o.widgets) == null ? void 0 : y.map((v, g) => g === h ? { widgetId: p, fullWidth: !1 } : v)) ?? []
|
|
3031
3031
|
});
|
|
3032
3032
|
}, [o, a]), l = T((h) => {
|
|
3033
3033
|
var p, m;
|
|
3034
3034
|
((p = o.widgets[h]) == null ? void 0 : p.widgetId) === -1 ? a({
|
|
3035
3035
|
...o,
|
|
3036
|
-
widgets: ((m = o.widgets) == null ? void 0 : m.filter((
|
|
3036
|
+
widgets: ((m = o.widgets) == null ? void 0 : m.filter((y, v) => v !== h)) ?? []
|
|
3037
3037
|
}) : i(h, -1);
|
|
3038
3038
|
}, [o, a, i]), c = T((h) => {
|
|
3039
3039
|
var p;
|
|
3040
3040
|
a({
|
|
3041
3041
|
...o,
|
|
3042
|
-
widgets: ((p = o.widgets) == null ? void 0 : p.map((m,
|
|
3042
|
+
widgets: ((p = o.widgets) == null ? void 0 : p.map((m, y) => y === h ? { ...m, fullWidth: !m.fullWidth } : m)) ?? []
|
|
3043
3043
|
});
|
|
3044
3044
|
}, [o, a]), u = T((h, p, m) => h ? /* @__PURE__ */ s.jsxs("div", { className: w(ie.widgetWrapper, {
|
|
3045
3045
|
[ie.widgetEdit]: e && h.id !== -1
|
|
@@ -3048,7 +3048,7 @@ const vi = (t) => (n) => {
|
|
|
3048
3048
|
/* @__PURE__ */ s.jsx(U, { color: "danger", onClick: () => l(p), className: w(ie.removeIcon), children: /* @__PURE__ */ s.jsx(sn, {}) }),
|
|
3049
3049
|
/* @__PURE__ */ s.jsx(U, { color: m ? "danger" : "primary", onClick: () => c(p), className: w(ie.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Gr, {}) })
|
|
3050
3050
|
] }),
|
|
3051
|
-
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ie.widgetWrapper, children: /* @__PURE__ */ s.jsx(Ut, { availableWidgets: t, onAdd: (
|
|
3051
|
+
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ie.widgetWrapper, children: /* @__PURE__ */ s.jsx(Ut, { availableWidgets: t, onAdd: (y) => i(p, y), texts: r }) }) : /* @__PURE__ */ s.jsx(ji, { title: h.title, children: /* @__PURE__ */ s.jsx(h.WidgetElement, { title: h.title }) }),
|
|
3052
3052
|
h.id > -1 && e && /* @__PURE__ */ s.jsx("div", { className: ie.widgetEditOverlay })
|
|
3053
3053
|
] }, p) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
3054
3054
|
e,
|
|
@@ -3103,7 +3103,7 @@ function Oi(t, e, n) {
|
|
|
3103
3103
|
if (typeof t != "function")
|
|
3104
3104
|
throw new TypeError("Expected a function");
|
|
3105
3105
|
e = +e || 0;
|
|
3106
|
-
var
|
|
3106
|
+
var y = !!(n = n || {}).leading, v = !("trailing" in n) || !!n.trailing, g = "maxWait" in n, b = "debounceOnServer" in n && !!n.debounceOnServer, k = g ? Math.max(+n.maxWait || 0, e) : null;
|
|
3107
3107
|
O(function() {
|
|
3108
3108
|
return h.current = !0, function() {
|
|
3109
3109
|
h.current = !1;
|
|
@@ -3121,7 +3121,7 @@ function Oi(t, e, n) {
|
|
|
3121
3121
|
var _ = S - o.current;
|
|
3122
3122
|
return !o.current || _ >= e || _ < 0 || g && S - a.current >= k;
|
|
3123
3123
|
}, C = function(S) {
|
|
3124
|
-
return i.current = null,
|
|
3124
|
+
return i.current = null, v && l.current ? N(S) : (l.current = c.current = null, u.current);
|
|
3125
3125
|
}, P = function S() {
|
|
3126
3126
|
var _ = Date.now();
|
|
3127
3127
|
if (x(_))
|
|
@@ -3135,7 +3135,7 @@ function Oi(t, e, n) {
|
|
|
3135
3135
|
var S = Date.now(), _ = x(S);
|
|
3136
3136
|
if (l.current = [].slice.call(arguments), c.current = r, o.current = S, _) {
|
|
3137
3137
|
if (!i.current && h.current)
|
|
3138
|
-
return a.current = o.current, j(P, e),
|
|
3138
|
+
return a.current = o.current, j(P, e), y ? N(o.current) : u.current;
|
|
3139
3139
|
if (g)
|
|
3140
3140
|
return j(P, e), N(o.current);
|
|
3141
3141
|
}
|
|
@@ -3149,7 +3149,7 @@ function Oi(t, e, n) {
|
|
|
3149
3149
|
}, $.flush = function() {
|
|
3150
3150
|
return i.current ? C(Date.now()) : u.current;
|
|
3151
3151
|
}, $;
|
|
3152
|
-
}, [
|
|
3152
|
+
}, [y, g, e, k, v, m, p, b]);
|
|
3153
3153
|
return f;
|
|
3154
3154
|
}
|
|
3155
3155
|
function Di(t, e) {
|
|
@@ -3185,9 +3185,9 @@ const Mi = "_wrapper_uccrb_1", Ai = "_open_uccrb_9", Fi = "_dropdown_uccrb_13",
|
|
|
3185
3185
|
icon: Vi,
|
|
3186
3186
|
"clear-button": "_clear-button_uccrb_74",
|
|
3187
3187
|
clearButton: Ui
|
|
3188
|
-
}, Nt = ({ show: t, onCancel: e, items: n, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: p, isLoading: m = !1, inputRef:
|
|
3188
|
+
}, Nt = ({ show: t, onCancel: e, items: n, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: p, isLoading: m = !1, inputRef: y }) => {
|
|
3189
3189
|
var E;
|
|
3190
|
-
const
|
|
3190
|
+
const v = q(null), g = q(null), b = q(null), [k, f] = D(""), [N] = ur(k, 500), [, j] = D(!1), x = (E = y.current) == null ? void 0 : E.getBoundingClientRect(), C = (x == null ? void 0 : x.x) ?? 0, P = ((x == null ? void 0 : x.x) ?? 0) + ((x == null ? void 0 : x.width) ?? 0), $ = (x == null ? void 0 : x.y) ?? 0, S = ((x == null ? void 0 : x.y) ?? 0) + ((x == null ? void 0 : x.height) ?? 0), _ = (x == null ? void 0 : x.width) ?? 0, I = (x == null ? void 0 : x.height) ?? 0, F = 5, W = K(() => C ? C > window.innerWidth / 2 : !1, [C]), te = K(() => $ ? $ > window.innerHeight / 2 : !1, [$]);
|
|
3191
3191
|
O(() => {
|
|
3192
3192
|
var A;
|
|
3193
3193
|
t && ((A = b.current) == null || A.focus());
|
|
@@ -3209,7 +3209,7 @@ const Mi = "_wrapper_uccrb_1", Ai = "_open_uccrb_9", Fi = "_dropdown_uccrb_13",
|
|
|
3209
3209
|
window.removeEventListener("scroll", M);
|
|
3210
3210
|
}), [M]), O(() => (window.addEventListener("resize", M), () => {
|
|
3211
3211
|
window.removeEventListener("resize", M);
|
|
3212
|
-
}), [M]), wn(z), xn([
|
|
3212
|
+
}), [M]), wn(z), xn([v, g], e);
|
|
3213
3213
|
const J = l ?? (c && c.length > 0 ? 250 : 0), ne = (c == null ? void 0 : c.reduce((A, X) => A + (X.width ?? 100), 0)) ?? 0, G = `calc(max(${_}px, ${J}px + ${ne}px))`;
|
|
3214
3214
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3215
3215
|
/* @__PURE__ */ s.jsx(gr, { show: t, onClick: e }),
|
|
@@ -3225,7 +3225,7 @@ const Mi = "_wrapper_uccrb_1", Ai = "_open_uccrb_9", Fi = "_dropdown_uccrb_13",
|
|
|
3225
3225
|
right: W ? `${P}px` : `calc(${C}px + ${G})`,
|
|
3226
3226
|
width: G,
|
|
3227
3227
|
justifyContent: te ? "flex-end" : "flex-start"
|
|
3228
|
-
}, children: /* @__PURE__ */ s.jsx("div", { ref:
|
|
3228
|
+
}, children: /* @__PURE__ */ s.jsx("div", { ref: v, className: w("shadow rounded", re.dropdown), children: !p && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3229
3229
|
d && (h ?? n.length) <= F ? null : /* @__PURE__ */ s.jsx("div", { className: w("search-input-container border-bottom", re.searchInputContainer), children: /* @__PURE__ */ s.jsx(Q.Control, { ref: b, type: "search", size: "sm", className: re.searchInput, placeholder: i.searchPlaceholder, value: k, onChange: (A) => {
|
|
3230
3230
|
var X;
|
|
3231
3231
|
return f(((X = A.target) == null ? void 0 : X.value) ?? "");
|
|
@@ -3367,20 +3367,20 @@ const Ki = "_item_1dy8x_1", fr = {
|
|
|
3367
3367
|
(h.length > 0 || d) && m(!0);
|
|
3368
3368
|
}, [h, d]), O(() => {
|
|
3369
3369
|
l("");
|
|
3370
|
-
}, [n]), /* @__PURE__ */ s.jsx(Q, { onSubmit: (
|
|
3371
|
-
|
|
3370
|
+
}, [n]), /* @__PURE__ */ s.jsx(Q, { onSubmit: (y) => {
|
|
3371
|
+
y.preventDefault(), y.stopPropagation(), u.flush(), m(!1), i.length > 2 && e(`/search?query=${i}${o && o.key && `&type=${o == null ? void 0 : o.key}`}`);
|
|
3372
3372
|
}, children: /* @__PURE__ */ s.jsxs(nt, { className: we.inputGroup, children: [
|
|
3373
3373
|
/* @__PURE__ */ s.jsx(nt.Text, { className: w("p-1 rounded", we.inputGroupText, we.left), children: /* @__PURE__ */ s.jsx(rc, { searchTypes: t, selectedType: o, setSelectedType: a }) }),
|
|
3374
|
-
/* @__PURE__ */ s.jsx(Q.Control, { placeholder: r.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", we.input), value: i, onChange: (
|
|
3375
|
-
var
|
|
3376
|
-
return l(((
|
|
3374
|
+
/* @__PURE__ */ s.jsx(Q.Control, { placeholder: r.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", we.input), value: i, onChange: (y) => {
|
|
3375
|
+
var v;
|
|
3376
|
+
return l(((v = y.target) == null ? void 0 : v.value) ?? "");
|
|
3377
3377
|
}, onFocus: () => h.length > 0 && m(!0) }),
|
|
3378
3378
|
/* @__PURE__ */ s.jsx(nt.Text, { className: w("p-0 rounded", we.inputGroupText, we.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: w("text-primary", we.submitButton), children: /* @__PURE__ */ s.jsx(zi, {}) }) }),
|
|
3379
3379
|
/* @__PURE__ */ s.jsx(dc, { query: c, searchTypes: t, show: p, onCancel: () => m(!1), groups: h, isLoading: d })
|
|
3380
3380
|
] }) });
|
|
3381
|
-
},
|
|
3382
|
-
card:
|
|
3383
|
-
header:
|
|
3381
|
+
}, yc = "_card_19733_1", vc = "_header_19733_6", bc = "_header-content_19733_13", _c = "_title_19733_19", jc = "_collapse-icon_19733_22", kc = "_collapsed_19733_27", Nc = "_content_19733_30", xe = {
|
|
3382
|
+
card: yc,
|
|
3383
|
+
header: vc,
|
|
3384
3384
|
"header-content": "_header-content_19733_13",
|
|
3385
3385
|
headerContent: bc,
|
|
3386
3386
|
title: _c,
|
|
@@ -3545,44 +3545,20 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3545
3545
|
show: Uc
|
|
3546
3546
|
}, gr = ({ show: t, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: w("luminus-backdrop", Jt.backdrop, {
|
|
3547
3547
|
[Jt.show]: t
|
|
3548
|
-
}), onClick: () => e && e() }), zc = (t, e, n, r =
|
|
3549
|
-
const
|
|
3550
|
-
i(!0), c(null);
|
|
3551
|
-
try {
|
|
3552
|
-
const h = await o.get(t, {
|
|
3553
|
-
signal: d,
|
|
3554
|
-
responseType: "blob"
|
|
3555
|
-
});
|
|
3556
|
-
c(h.data);
|
|
3557
|
-
} finally {
|
|
3558
|
-
i(!1);
|
|
3559
|
-
}
|
|
3560
|
-
}, [o, t]);
|
|
3561
|
-
return O(() => {
|
|
3562
|
-
const d = new AbortController();
|
|
3563
|
-
return u(d.signal), () => {
|
|
3564
|
-
d.abort();
|
|
3565
|
-
};
|
|
3566
|
-
}, [u]), { data: l, setData: c, reloadData: u, isLoading: a };
|
|
3567
|
-
}, wr = ({ src: t, alt: e, baseUrl: n, customToken: r, placeholder: o, ...a }) => {
|
|
3568
|
-
const { data: i, isLoading: l } = zc(t, n, r), [c, u] = D(null);
|
|
3569
|
-
return O(() => (i !== null && c === null && u(URL.createObjectURL(i)), () => {
|
|
3570
|
-
c !== null && URL.revokeObjectURL(c);
|
|
3571
|
-
}), [i, c]), l || c === null && !o ? null : /* @__PURE__ */ s.jsx("img", { ...a, alt: e ?? "", src: c ?? o });
|
|
3572
|
-
}, Kc = ({ show: t, onClose: e, photos: n, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken: u, placeholder: d, ImgComponent: h = wr }) => {
|
|
3573
|
-
const p = q(null), [m, v] = D(r), y = n.at(m), g = m > 0, b = m < n.length - 1;
|
|
3548
|
+
}), onClick: () => e && e() }), wr = ({ src: t, alt: e, baseUrl: n, customToken: r, placeholder: o, ...a }) => /* @__PURE__ */ s.jsx("img", { ...a, alt: e ?? "", src: t ?? o }), zc = ({ show: t, onClose: e, photos: n, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken: u, placeholder: d, ImgComponent: h = wr }) => {
|
|
3549
|
+
const p = q(null), [m, y] = D(r), v = n.at(m), g = m > 0, b = m < n.length - 1;
|
|
3574
3550
|
O(() => {
|
|
3575
|
-
t &&
|
|
3551
|
+
t && y(r);
|
|
3576
3552
|
}, [r, t]), O(() => {
|
|
3577
|
-
m >= n.length &&
|
|
3553
|
+
m >= n.length && y(n.length - 1);
|
|
3578
3554
|
}, [n, m]);
|
|
3579
3555
|
const k = T((f) => {
|
|
3580
3556
|
switch (f.key) {
|
|
3581
3557
|
case "ArrowLeft":
|
|
3582
|
-
f.stopPropagation(), g &&
|
|
3558
|
+
f.stopPropagation(), g && y((N) => N - 1);
|
|
3583
3559
|
break;
|
|
3584
3560
|
case "ArrowRight":
|
|
3585
|
-
f.stopPropagation(), b &&
|
|
3561
|
+
f.stopPropagation(), b && y((N) => N + 1);
|
|
3586
3562
|
break;
|
|
3587
3563
|
case "Escape":
|
|
3588
3564
|
f.stopPropagation(), e();
|
|
@@ -3599,10 +3575,10 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3599
3575
|
i && /* @__PURE__ */ s.jsx(lr, { accept: ".jpg,.jpeg,.png", onUpload: (f) => {
|
|
3600
3576
|
f.length > 0 && i(Array.from(f));
|
|
3601
3577
|
}, icon: /* @__PURE__ */ s.jsx(ln, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
3602
|
-
|
|
3578
|
+
v && (l == null ? void 0 : l.map(({ label: f, onClick: N, ...j }, x) => /* @__PURE__ */ s.jsx(
|
|
3603
3579
|
ut,
|
|
3604
3580
|
{
|
|
3605
|
-
onClick: () => N(
|
|
3581
|
+
onClick: () => N(v.id),
|
|
3606
3582
|
...j,
|
|
3607
3583
|
children: f
|
|
3608
3584
|
},
|
|
@@ -3612,12 +3588,12 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3612
3588
|
/* @__PURE__ */ s.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ s.jsx(ce, { style: { fontSize: "32px" } }) })
|
|
3613
3589
|
] }),
|
|
3614
3590
|
n.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(V, { variant: "body", children: a ?? "No photos available" }) }),
|
|
3615
|
-
|
|
3616
|
-
/* @__PURE__ */ s.jsx("div", { role: g ? "button" : void 0, className: w("align-items-start", oe.navButton), onClick: () => g &&
|
|
3617
|
-
/* @__PURE__ */ s.jsx(h, { src:
|
|
3618
|
-
/* @__PURE__ */ s.jsx("div", { role: b ? "button" : void 0, className: w("align-items-end", oe.navButton), onClick: () => b &&
|
|
3591
|
+
v && /* @__PURE__ */ s.jsxs("div", { className: oe.photoContainer, children: [
|
|
3592
|
+
/* @__PURE__ */ s.jsx("div", { role: g ? "button" : void 0, className: w("align-items-start", oe.navButton), onClick: () => g && y((f) => f - 1), children: g && /* @__PURE__ */ s.jsx(pt, { style: { fontSize: "40px" } }) }),
|
|
3593
|
+
/* @__PURE__ */ s.jsx(h, { src: v.lgSrc, alt: v.alt, className: w("rounded", oe.photo), baseUrl: c, customToken: u, placeholder: d }),
|
|
3594
|
+
/* @__PURE__ */ s.jsx("div", { role: b ? "button" : void 0, className: w("align-items-end", oe.navButton), onClick: () => b && y((f) => f + 1), children: b && /* @__PURE__ */ s.jsx(gt, { style: { fontSize: "40px" } }) })
|
|
3619
3595
|
] }),
|
|
3620
|
-
/* @__PURE__ */ s.jsx("div", { className: oe.photosPreview, children: n.map((f, N) => /* @__PURE__ */ s.jsxs("div", { role: "button", onClick: () =>
|
|
3596
|
+
/* @__PURE__ */ s.jsx("div", { className: oe.photosPreview, children: n.map((f, N) => /* @__PURE__ */ s.jsxs("div", { role: "button", onClick: () => y(N), className: "position-relative", children: [
|
|
3621
3597
|
/* @__PURE__ */ s.jsx(h, { role: N !== m ? "button" : void 0, src: f.smSrc, alt: f.alt, className: w("rounded", oe.photo, {
|
|
3622
3598
|
[oe.selected]: N === m
|
|
3623
3599
|
}), baseUrl: c, customToken: u, placeholder: d }, f.id),
|
|
@@ -3632,11 +3608,11 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3632
3608
|
u(null), p(!1);
|
|
3633
3609
|
return;
|
|
3634
3610
|
}
|
|
3635
|
-
const m = t.findIndex((
|
|
3611
|
+
const m = t.findIndex((y) => y.isDefault);
|
|
3636
3612
|
u(m > -1 ? m : 0);
|
|
3637
3613
|
}, [t]), d ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3638
3614
|
/* @__PURE__ */ s.jsx(l, { role: "button", src: d.smSrc, alt: d.alt, className: "rounded w-100", onClick: () => p(!0), baseUrl: o, customToken: a, placeholder: i }),
|
|
3639
|
-
/* @__PURE__ */ s.jsx(
|
|
3615
|
+
/* @__PURE__ */ s.jsx(zc, { show: h, onClose: () => p(!1), photos: t, defaultIndex: c ?? 0, uploadPhotosText: n, onUploadPhotos: e, photoActions: r, baseUrl: o, customToken: a, placeholder: i, ImgComponent: l })
|
|
3640
3616
|
] }) : e ? /* @__PURE__ */ s.jsx(lr, { accept: ".jpg,.jpeg,.png", onUpload: (m) => {
|
|
3641
3617
|
m.length > 0 && e(Array.from(m));
|
|
3642
3618
|
}, icon: /* @__PURE__ */ s.jsx(ln, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : null;
|
|
@@ -3660,41 +3636,65 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3660
3636
|
}, children: /* @__PURE__ */ s.jsxs(V, { variant: "caption", className: "w-100 text-end", children: [
|
|
3661
3637
|
"verze ",
|
|
3662
3638
|
t
|
|
3663
|
-
] }) }),
|
|
3639
|
+
] }) }), Kc = "_submit-container_a9slg_1", Qc = "_spacer_a9slg_14", Zt = {
|
|
3664
3640
|
"submit-container": "_submit-container_a9slg_1",
|
|
3665
|
-
submitContainer:
|
|
3666
|
-
spacer:
|
|
3667
|
-
},
|
|
3641
|
+
submitContainer: Kc,
|
|
3642
|
+
spacer: Qc
|
|
3643
|
+
}, Xc = ({ children: t, noSpacer: e = !1 }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3668
3644
|
!e && /* @__PURE__ */ s.jsx("div", { className: Zt.spacer }),
|
|
3669
3645
|
/* @__PURE__ */ s.jsx("div", { className: w("luminus-floating-action-container shadow", Zt.submitContainer), children: t })
|
|
3670
|
-
] }),
|
|
3671
|
-
timeline:
|
|
3646
|
+
] }), Jc = "_timeline_g1754_1", Zc = "_step-container_g1754_1", el = "_step-date_g1754_1", tl = "_step-content_g1754_4", nl = "_content-header_g1754_8", rl = "_content-text_g1754_11", ol = "_step-icon_g1754_14", ye = {
|
|
3647
|
+
timeline: Jc,
|
|
3672
3648
|
"step-container": "_step-container_g1754_1",
|
|
3673
|
-
stepContainer:
|
|
3649
|
+
stepContainer: Zc,
|
|
3674
3650
|
"step-date": "_step-date_g1754_1",
|
|
3675
|
-
stepDate:
|
|
3651
|
+
stepDate: el,
|
|
3676
3652
|
"step-content": "_step-content_g1754_4",
|
|
3677
|
-
stepContent:
|
|
3653
|
+
stepContent: tl,
|
|
3678
3654
|
"content-header": "_content-header_g1754_8",
|
|
3679
|
-
contentHeader:
|
|
3655
|
+
contentHeader: nl,
|
|
3680
3656
|
"content-text": "_content-text_g1754_11",
|
|
3681
|
-
contentText:
|
|
3657
|
+
contentText: rl,
|
|
3682
3658
|
"step-icon": "_step-icon_g1754_14",
|
|
3683
|
-
stepIcon:
|
|
3684
|
-
}, Ol = ({ steps: t }) => /* @__PURE__ */ s.jsx("div", { className:
|
|
3685
|
-
/* @__PURE__ */ s.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ s.jsxs(V, { variant: "caption", className: w("h-100 d-flex flex-column align-items-end justify-content-center gap-0",
|
|
3659
|
+
stepIcon: ol
|
|
3660
|
+
}, Ol = ({ steps: t }) => /* @__PURE__ */ s.jsx("div", { className: ye.timeline, children: t.sort((e, n) => wo(e.date ?? /* @__PURE__ */ new Date(), n.date ?? /* @__PURE__ */ new Date())).map((e, n) => /* @__PURE__ */ s.jsxs("div", { className: w("row g-0 gx-3", ye.stepContainer), children: [
|
|
3661
|
+
/* @__PURE__ */ s.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ s.jsxs(V, { variant: "caption", className: w("h-100 d-flex flex-column align-items-end justify-content-center gap-0", ye.stepDate), children: [
|
|
3686
3662
|
/* @__PURE__ */ s.jsx("div", { children: at(e.date, "dd.MM.yyyy") }),
|
|
3687
3663
|
/* @__PURE__ */ s.jsx("div", { children: at(e.date, "HH:mm") })
|
|
3688
3664
|
] }) }),
|
|
3689
|
-
/* @__PURE__ */ s.jsx("div", { className: "col-9", children: /* @__PURE__ */ s.jsxs("div", { className: w("h-100 d-flex flex-column gap-1 border-start border-2 p-3",
|
|
3690
|
-
/* @__PURE__ */ s.jsxs("div", { className: w("d-flex gap-2 align-items-center",
|
|
3665
|
+
/* @__PURE__ */ s.jsx("div", { className: "col-9", children: /* @__PURE__ */ s.jsxs("div", { className: w("h-100 d-flex flex-column gap-1 border-start border-2 p-3", ye.stepContent), children: [
|
|
3666
|
+
/* @__PURE__ */ s.jsxs("div", { className: w("d-flex gap-2 align-items-center", ye.contentHeader), children: [
|
|
3691
3667
|
e.person && /* @__PURE__ */ s.jsx(un, { name: e.person.name ?? "", size: 22, fontSize: 12 }),
|
|
3692
3668
|
typeof e.title == "string" ? /* @__PURE__ */ s.jsx(V, { variant: "body", className: "fw-bold", children: e.title }) : e.title
|
|
3693
3669
|
] }),
|
|
3694
|
-
e.text && /* @__PURE__ */ s.jsx(V, { variant: "body2", className:
|
|
3695
|
-
/* @__PURE__ */ s.jsx("div", { className: w("text-primary",
|
|
3670
|
+
e.text && /* @__PURE__ */ s.jsx(V, { variant: "body2", className: ye.contentText, children: e.text }),
|
|
3671
|
+
/* @__PURE__ */ s.jsx("div", { className: w("text-primary", ye.stepIcon), children: e.icon ?? /* @__PURE__ */ s.jsx(Zr, {}) })
|
|
3696
3672
|
] }) })
|
|
3697
|
-
] }, n)) }),
|
|
3673
|
+
] }, n)) }), sl = (t, e, n, r = !0) => {
|
|
3674
|
+
const o = cn({ silent: r, differentBaseUrl: e, customToken: n }), [a, i] = D(!1), [l, c] = D(null), u = T(async (d) => {
|
|
3675
|
+
i(!0), c(null);
|
|
3676
|
+
try {
|
|
3677
|
+
const h = await o.get(t, {
|
|
3678
|
+
signal: d,
|
|
3679
|
+
responseType: "blob"
|
|
3680
|
+
});
|
|
3681
|
+
c(h.data);
|
|
3682
|
+
} finally {
|
|
3683
|
+
i(!1);
|
|
3684
|
+
}
|
|
3685
|
+
}, [o, t]);
|
|
3686
|
+
return O(() => {
|
|
3687
|
+
const d = new AbortController();
|
|
3688
|
+
return u(d.signal), () => {
|
|
3689
|
+
d.abort();
|
|
3690
|
+
};
|
|
3691
|
+
}, [u]), { data: l, setData: c, reloadData: u, isLoading: a };
|
|
3692
|
+
}, Dl = ({ src: t, alt: e, baseUrl: n, customToken: r, placeholder: o, ...a }) => {
|
|
3693
|
+
const { data: i, isLoading: l } = sl(t, n, r), [c, u] = D(null);
|
|
3694
|
+
return O(() => (i !== null && c === null && u(URL.createObjectURL(i)), () => {
|
|
3695
|
+
c !== null && URL.revokeObjectURL(c);
|
|
3696
|
+
}), [i, c]), l || c === null && !o ? null : /* @__PURE__ */ s.jsx("img", { ...a, alt: e ?? "", src: c ?? o });
|
|
3697
|
+
}, Pl = ({ heading: t, content: e, placement: n, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(eo, { placement: n, overlay: /* @__PURE__ */ s.jsxs(Ze, { className: "luminus-popover", children: [
|
|
3698
3698
|
/* @__PURE__ */ s.jsx(Ze.Header, { children: typeof t == "string" ? /* @__PURE__ */ s.jsx(V, { variant: "h6", className: "text-primary", children: t }) : t }),
|
|
3699
3699
|
/* @__PURE__ */ s.jsx(Ze.Body, { children: e })
|
|
3700
3700
|
] }), trigger: o ?? "hover", rootClose: !0, children: r }), xr = ({ currentSelection: t, selectedItemNavigateTo: e, children: n }) => {
|
|
@@ -3706,7 +3706,7 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3706
3706
|
}, Ml = ({ InputContainer: t = Ne, label: e, value: n, onChange: r, hidden: o, disabled: a, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ s.jsx(t, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, className: i, children: /* @__PURE__ */ s.jsx(Q.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: n, onChange: (u) => {
|
|
3707
3707
|
var d;
|
|
3708
3708
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3709
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Al = ({ InputContainer: t = Ne, type: e, value: n, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: p, list: m, className:
|
|
3709
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Al = ({ InputContainer: t = Ne, type: e, value: n, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: p, list: m, className: y, step: v, noSelectOnFocus: g }) => {
|
|
3710
3710
|
const b = e === "number", k = T(() => {
|
|
3711
3711
|
if (!r)
|
|
3712
3712
|
return;
|
|
@@ -3729,12 +3729,12 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3729
3729
|
O(() => {
|
|
3730
3730
|
j(n === null ? "" : n.toString());
|
|
3731
3731
|
}, [n]);
|
|
3732
|
-
const [P, $] = D(!1), S =
|
|
3733
|
-
return /* @__PURE__ */ s.jsxs(t, { withoutLabel: i, label: a ?? "", hidden: u, className:
|
|
3734
|
-
/* @__PURE__ */ s.jsx(Q.Control, { type: S, placeholder: l ?? a, size: c, value: o ? N : n ?? "", onChange: C, className:
|
|
3732
|
+
const [P, $] = D(!1), S = yn(e, n ? n.toString() ?? null : null, P);
|
|
3733
|
+
return /* @__PURE__ */ s.jsxs(t, { withoutLabel: i, label: a ?? "", hidden: u, className: y, children: [
|
|
3734
|
+
/* @__PURE__ */ s.jsx(Q.Control, { type: S, placeholder: l ?? a, size: c, value: o ? N : (n == null ? void 0 : n.toString()) ?? "", onChange: C, className: y ?? "", hidden: u, disabled: d ?? !1, list: m, onFocus: (_) => {
|
|
3735
3735
|
$(!0), !g && _.target.select();
|
|
3736
|
-
}, onBlur: () => $(!1), step:
|
|
3737
|
-
h && n && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3736
|
+
}, onBlur: () => $(!1), step: v }),
|
|
3737
|
+
h && n !== null && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3738
3738
|
] });
|
|
3739
3739
|
}, Fl = ({
|
|
3740
3740
|
InputContainer: t = Ne,
|
|
@@ -3751,10 +3751,10 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3751
3751
|
clearValue: h,
|
|
3752
3752
|
noSortOptions: p,
|
|
3753
3753
|
className: m,
|
|
3754
|
-
noEmptyOption:
|
|
3754
|
+
noEmptyOption: y
|
|
3755
3755
|
// it will still add the empty option if there is no value provided or value is empty string or null
|
|
3756
3756
|
}) => {
|
|
3757
|
-
const
|
|
3757
|
+
const v = T(() => {
|
|
3758
3758
|
if (!r)
|
|
3759
3759
|
return;
|
|
3760
3760
|
const g = h ?? null;
|
|
@@ -3768,12 +3768,12 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3768
3768
|
const b = (k = g.target) == null ? void 0 : k.value;
|
|
3769
3769
|
i && r(b ? parseInt(b, 10) : null), r(b || null);
|
|
3770
3770
|
}, className: m ?? "", hidden: c, disabled: u ?? !1, children: [
|
|
3771
|
-
|
|
3771
|
+
y && !(e == null || e === "") ? void 0 : /* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3772
3772
|
n == null ? void 0 : n.sort((g, b) => p ? 0 : (g.name ?? "").localeCompare(b.name ?? "")).map((g) => /* @__PURE__ */ s.jsx("option", { value: g.id ?? "", children: g.name }, g.id))
|
|
3773
3773
|
] }),
|
|
3774
|
-
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick:
|
|
3774
|
+
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: v, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3775
3775
|
] });
|
|
3776
|
-
}, Wl = ({ InputContainer: t = Ne, items: e, defaultSelection: n, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: p, additionalColumns: m, hidden:
|
|
3776
|
+
}, Wl = ({ InputContainer: t = Ne, items: e, defaultSelection: n, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: p, additionalColumns: m, hidden: y, disabled: v, displayIdAsName: g, CustomOnChangeComponent: b, className: k }) => {
|
|
3777
3777
|
var I, F;
|
|
3778
3778
|
const [f, N] = D(n), [j, x] = D(!1);
|
|
3779
3779
|
O(() => {
|
|
@@ -3788,7 +3788,7 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3788
3788
|
c && c(f);
|
|
3789
3789
|
}, [f, c]);
|
|
3790
3790
|
const $ = q(null), S = r !== void 0, _ = S && f !== null;
|
|
3791
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { withoutLabel: d, label: u ?? "", hidden:
|
|
3791
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { withoutLabel: d, label: u ?? "", hidden: y, inputContainerClassName: w({ "luminus-dropdown-select-open": j }), className: k, children: [
|
|
3792
3792
|
/* @__PURE__ */ s.jsxs(xr, { currentSelection: f, selectedItemNavigateTo: r, children: [
|
|
3793
3793
|
g && (f == null ? void 0 : f.name) && /* @__PURE__ */ s.jsx(V, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: f.name }),
|
|
3794
3794
|
/* @__PURE__ */ s.jsxs(Q.Select, { ref: $, size: h, value: (f == null ? void 0 : f.id) ?? "", onChange: (W) => N({
|
|
@@ -3797,23 +3797,23 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3797
3797
|
}), onMouseDown: (W) => {
|
|
3798
3798
|
W.currentTarget.focus(), W.preventDefault();
|
|
3799
3799
|
}, onClick: () => {
|
|
3800
|
-
!S && !
|
|
3800
|
+
!S && !v && x(!0);
|
|
3801
3801
|
}, className: w("w-100", {
|
|
3802
|
-
"luminus-dropdown-picker-disabled":
|
|
3802
|
+
"luminus-dropdown-picker-disabled": v,
|
|
3803
3803
|
"luminus-dropdown-picker-link": _
|
|
3804
|
-
}), hidden:
|
|
3804
|
+
}), hidden: y, children: [
|
|
3805
3805
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3806
3806
|
n && /* @__PURE__ */ s.jsx("option", { value: n.id ?? void 0, children: n.name && ((I = n.name) == null ? void 0 : I.length) > 0 ? n.name : n.id }),
|
|
3807
3807
|
f && /* @__PURE__ */ s.jsx("option", { value: f.id ?? void 0, children: f.name && ((F = f.name) == null ? void 0 : F.length) > 0 ? f.name : f.id })
|
|
3808
3808
|
] }),
|
|
3809
|
-
b || !
|
|
3810
|
-
!b && !
|
|
3809
|
+
b || !v && S ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
3810
|
+
!b && !v && S && /* @__PURE__ */ s.jsx(U, { size: "sm", color: "secondary", onClick: (W) => {
|
|
3811
3811
|
W.preventDefault(), W.stopPropagation(), x(!0);
|
|
3812
3812
|
}, children: /* @__PURE__ */ s.jsx(dn, {}) }),
|
|
3813
3813
|
b ?? null
|
|
3814
3814
|
] }) : null
|
|
3815
3815
|
] }),
|
|
3816
|
-
$.current && /* @__PURE__ */ s.jsx(Nt, { show: j, onCancel: () => x(!1), items: e, currentSelection: f, onSelectionChange: P, onSearchQueryChange: o, texts: a, itemsNameWidth: p, additionalColumns: m, isLoading: i, disabled:
|
|
3816
|
+
$.current && /* @__PURE__ */ s.jsx(Nt, { show: j, onCancel: () => x(!1), items: e, currentSelection: f, onSelectionChange: P, onSearchQueryChange: o, texts: a, itemsNameWidth: p, additionalColumns: m, isLoading: i, disabled: v, inputRef: $ })
|
|
3817
3817
|
] }) });
|
|
3818
3818
|
}, Rl = ({ InputContainer: t = Ne, value: e, onChange: n, label: r, size: o, showClearIcon: a, clearValue: i, hidden: l, disabled: c, rows: u, withoutLabel: d, debounceMs: h, className: p }) => {
|
|
3819
3819
|
const m = T(() => {
|
|
@@ -3821,7 +3821,7 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3821
3821
|
return;
|
|
3822
3822
|
const f = i ?? null;
|
|
3823
3823
|
n((f == null ? void 0 : f.toString()) ?? "");
|
|
3824
|
-
}, [i, n]),
|
|
3824
|
+
}, [i, n]), y = q(null), [v, g] = D((e == null ? void 0 : e.toString()) ?? ""), b = T((f) => {
|
|
3825
3825
|
const N = f;
|
|
3826
3826
|
n && n(N || null);
|
|
3827
3827
|
}, [n]), k = T((f) => {
|
|
@@ -3831,18 +3831,18 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3831
3831
|
b(N);
|
|
3832
3832
|
return;
|
|
3833
3833
|
}
|
|
3834
|
-
g(N),
|
|
3834
|
+
g(N), y.current !== null && window.clearTimeout(y.current), y.current = window.setTimeout(() => {
|
|
3835
3835
|
b(N);
|
|
3836
3836
|
}, h);
|
|
3837
3837
|
}, [h, b]);
|
|
3838
3838
|
return O(() => {
|
|
3839
3839
|
g(e === null ? "" : e.toString());
|
|
3840
3840
|
}, [e]), /* @__PURE__ */ s.jsxs(t, { label: r ?? "", hidden: l, withoutLabel: d, className: p, isForTextAreaInput: !0, children: [
|
|
3841
|
-
/* @__PURE__ */ s.jsx(Q.Control, { as: "textarea", size: o, value: h ?
|
|
3841
|
+
/* @__PURE__ */ s.jsx(Q.Control, { as: "textarea", size: o, value: h ? v : e ?? "", onChange: k, hidden: l, disabled: c, rows: u ?? 2, className: "w-100" }),
|
|
3842
3842
|
a && e && n && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: m, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3843
3843
|
] });
|
|
3844
|
-
}, Ll = ({ InputContainer: t = Ne, value: e, onChange: n, debounceMs: r, label: o, withoutLabel: a, placeholder: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: h, className: p, step: m, stepperStep:
|
|
3845
|
-
const
|
|
3844
|
+
}, Ll = ({ InputContainer: t = Ne, value: e, onChange: n, debounceMs: r, label: o, withoutLabel: a, placeholder: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: h, className: p, step: m, stepperStep: y = 1 }) => {
|
|
3845
|
+
const v = T(() => {
|
|
3846
3846
|
if (!n)
|
|
3847
3847
|
return;
|
|
3848
3848
|
const j = h ?? null;
|
|
@@ -3866,21 +3866,21 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3866
3866
|
}, [e]), /* @__PURE__ */ s.jsx(t, { withoutLabel: a, label: o ?? "", hidden: c, className: p, children: /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3867
3867
|
/* @__PURE__ */ s.jsx(Q.Control, { type: "number", placeholder: i ?? o, size: l, value: r ? b : e ?? "", onChange: N, className: `luminus-numeric-stepper ${p ?? ""}`, hidden: c, disabled: u ?? !1, step: m }),
|
|
3868
3868
|
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ s.jsx(U, { size: "sm", onClick: (j) => {
|
|
3869
|
-
j.preventDefault(), j.stopPropagation(), f(((e ?? 0) -
|
|
3869
|
+
j.preventDefault(), j.stopPropagation(), f(((e ?? 0) - y).toString());
|
|
3870
3870
|
}, children: /* @__PURE__ */ s.jsx(dr, {}) }) }),
|
|
3871
3871
|
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ s.jsx(U, { size: "sm", onClick: (j) => {
|
|
3872
|
-
j.preventDefault(), j.stopPropagation(), f(((e ?? 0) +
|
|
3872
|
+
j.preventDefault(), j.stopPropagation(), f(((e ?? 0) + y).toString());
|
|
3873
3873
|
}, children: /* @__PURE__ */ s.jsx(hr, {}) }) }),
|
|
3874
|
-
d && e && n && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick:
|
|
3874
|
+
d && e && n && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: v, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3875
3875
|
] }) });
|
|
3876
3876
|
}, Yl = ({ InputContainer: t = me, formField: e, label: n, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c, className: u }) => {
|
|
3877
|
-
const { register: d, formState: h, setValue: p } = le(), [m,
|
|
3877
|
+
const { register: d, formState: h, setValue: p } = le(), [m, y] = D(void 0), [v, g] = D(!1);
|
|
3878
3878
|
O(() => {
|
|
3879
3879
|
const k = e.split(".");
|
|
3880
3880
|
let f = h.errors;
|
|
3881
3881
|
k.forEach((N) => {
|
|
3882
3882
|
f !== void 0 && (f = f[N]);
|
|
3883
|
-
}),
|
|
3883
|
+
}), y(f);
|
|
3884
3884
|
}, [h, e]), O(() => {
|
|
3885
3885
|
h.isSubmitted && g(!0);
|
|
3886
3886
|
}, [h]);
|
|
@@ -3888,19 +3888,19 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3888
3888
|
return /* @__PURE__ */ s.jsxs(t, { isForCheckInput: !0, hidden: i, label: `${n}${a ? " *" : ""}`, isInvalid: b, withoutLabel: c, className: u, children: [
|
|
3889
3889
|
/* @__PURE__ */ s.jsx(Q.Check, { id: `check-${e}`, type: o ?? "checkbox", label: `${n}${a ? " *" : ""}`, ...d(e, {
|
|
3890
3890
|
onChange: () => {
|
|
3891
|
-
r && r.forEach((k) => p(k, null, { shouldDirty: !0, shouldValidate:
|
|
3891
|
+
r && r.forEach((k) => p(k, null, { shouldDirty: !0, shouldValidate: v }));
|
|
3892
3892
|
}
|
|
3893
3893
|
}), isInvalid: b, hidden: i, disabled: l, className: "w-100" }),
|
|
3894
3894
|
m && /* @__PURE__ */ s.jsx(pe, { message: m.message })
|
|
3895
3895
|
] });
|
|
3896
3896
|
}, ql = ({ InputContainer: t = me, label: e, formField: n, options: r, resetsFields: o, required: a, disabled: i, hidden: l, className: c }) => {
|
|
3897
|
-
const { register: u, formState: d, setValue: h, watch: p } = le(), [m,
|
|
3897
|
+
const { register: u, formState: d, setValue: h, watch: p } = le(), [m, y] = D(void 0), [v, g] = D(!1), b = K(() => r, [r]);
|
|
3898
3898
|
O(() => {
|
|
3899
3899
|
const f = n.split(".");
|
|
3900
3900
|
let N = d.errors;
|
|
3901
3901
|
f.forEach((j) => {
|
|
3902
3902
|
N !== void 0 && (N = N[j]);
|
|
3903
|
-
}),
|
|
3903
|
+
}), y(N);
|
|
3904
3904
|
}, [d, n]), O(() => {
|
|
3905
3905
|
d.isSubmitted && g(!0);
|
|
3906
3906
|
}, [d]);
|
|
@@ -3908,30 +3908,30 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3908
3908
|
return /* @__PURE__ */ s.jsxs(t, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: k, className: c, children: [
|
|
3909
3909
|
b.map((f) => /* @__PURE__ */ s.jsx(Q.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: p(n) === f.id, ...u(n, {
|
|
3910
3910
|
onChange: () => {
|
|
3911
|
-
o && o.forEach((N) => h(N, null, { shouldDirty: !0, shouldValidate:
|
|
3911
|
+
o && o.forEach((N) => h(N, null, { shouldDirty: !0, shouldValidate: v }));
|
|
3912
3912
|
}
|
|
3913
3913
|
}), isInvalid: k, hidden: l, disabled: i, className: "w-100" }, f.id)),
|
|
3914
3914
|
m && /* @__PURE__ */ s.jsx(pe, { message: m.message })
|
|
3915
3915
|
] });
|
|
3916
3916
|
}, Hl = ({ InputContainer: t = me, formField: e, label: n, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, rows: d, withoutLabel: h, customFormControlProps: p, className: m }) => {
|
|
3917
|
-
const { register:
|
|
3917
|
+
const { register: y, formState: v, setValue: g, watch: b } = le(), [k, f] = D(void 0), [N, j] = D(!1), x = T(() => {
|
|
3918
3918
|
const $ = i ?? null;
|
|
3919
3919
|
g(e, ($ == null ? void 0 : $.toString()) ?? "", { shouldDirty: !0, shouldValidate: N });
|
|
3920
3920
|
}, [i, g, e, N]), C = T(() => {
|
|
3921
3921
|
const $ = e.split(".");
|
|
3922
|
-
let S =
|
|
3922
|
+
let S = v.errors;
|
|
3923
3923
|
$.forEach((_) => {
|
|
3924
3924
|
S !== void 0 && (S = S[_]);
|
|
3925
3925
|
}), f(S);
|
|
3926
|
-
}, [
|
|
3926
|
+
}, [v, e]);
|
|
3927
3927
|
O(() => {
|
|
3928
3928
|
C();
|
|
3929
3929
|
}, [C]), O(() => {
|
|
3930
|
-
|
|
3931
|
-
}, [
|
|
3930
|
+
v.isSubmitted && j(!0);
|
|
3931
|
+
}, [v]);
|
|
3932
3932
|
const P = k !== void 0;
|
|
3933
3933
|
return /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: P, className: m, isForTextAreaInput: !0, children: [
|
|
3934
|
-
/* @__PURE__ */ s.jsx(Q.Control, { as: "textarea", size: o, ...
|
|
3934
|
+
/* @__PURE__ */ s.jsx(Q.Control, { as: "textarea", size: o, ...y(e, {
|
|
3935
3935
|
setValueAs: ($) => $ == null || $ === "" ? null : $,
|
|
3936
3936
|
onChange: () => {
|
|
3937
3937
|
r && r.forEach(($) => g($, null, { shouldDirty: !0, shouldValidate: N }));
|
|
@@ -3940,7 +3940,7 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3940
3940
|
a && b(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ s.jsx(ce, {}) }) }),
|
|
3941
3941
|
k && /* @__PURE__ */ s.jsx(pe, { message: k.message })
|
|
3942
3942
|
] });
|
|
3943
|
-
}, Bl = ({ InputContainer: t = me, type: e, formField: n, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: p, list: m, step:
|
|
3943
|
+
}, Bl = ({ InputContainer: t = me, type: e, formField: n, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: p, list: m, step: y, CustomOnChangeComponent: v, noSelectOnFocus: g, className: b }) => {
|
|
3944
3944
|
const { register: k, formState: f, setValue: N, watch: j } = le(), [x, C] = D(void 0), [P, $] = D(!1), S = T(() => {
|
|
3945
3945
|
const M = c ?? null;
|
|
3946
3946
|
e === "number" ? N(n, M !== null ? Number(M) : null, {
|
|
@@ -3959,7 +3959,7 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3959
3959
|
}, [_]), O(() => {
|
|
3960
3960
|
f.isSubmitted && $(!0);
|
|
3961
3961
|
}, [f]);
|
|
3962
|
-
const I = x !== void 0, [F, W] = D(!1), te = j(n), z =
|
|
3962
|
+
const I = x !== void 0, [F, W] = D(!1), te = j(n), z = yn(e, te ?? null, F);
|
|
3963
3963
|
return /* @__PURE__ */ s.jsxs(t, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: p, isInvalid: I, className: b, children: [
|
|
3964
3964
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3965
3965
|
/* @__PURE__ */ s.jsx(Q.Control, { type: z, placeholder: o ?? r, size: a, onFocus: (M) => {
|
|
@@ -3970,13 +3970,13 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
3970
3970
|
i && i.forEach((M) => N(M, null, { shouldDirty: !0, shouldValidate: P }));
|
|
3971
3971
|
},
|
|
3972
3972
|
onBlur: () => W(!1)
|
|
3973
|
-
}), isInvalid: I, hidden: d, disabled: h, list: m, className: "w-100", step:
|
|
3974
|
-
|
|
3973
|
+
}), isInvalid: I, hidden: d, disabled: h, list: m, className: "w-100", step: y }),
|
|
3974
|
+
v && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: v })
|
|
3975
3975
|
] }),
|
|
3976
3976
|
l && j(n) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ s.jsx(ce, {}) }) }),
|
|
3977
3977
|
x && /* @__PURE__ */ s.jsx(pe, { message: x.message })
|
|
3978
3978
|
] });
|
|
3979
|
-
}, Gl = ({ InputContainer: t = me, formField: e, label: n, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: p, texts: m, dropdownItemsNameWidth:
|
|
3979
|
+
}, Gl = ({ InputContainer: t = me, formField: e, label: n, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: p, texts: m, dropdownItemsNameWidth: y, isLoading: v, withoutLabel: g, additionalColumns: b, CustomOnChangeComponent: k, displayIdAsName: f, onSelect: N, className: j }) => {
|
|
3980
3980
|
const { formState: x, setValue: C, watch: P, control: $ } = le(), [S, _] = D(void 0), [I, F] = D(!1), [W, te] = D(!1), z = P(e) ?? null, M = z === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : P(`${e}-DropdownName`), J = K(() => z == null ? null : { id: z ?? null, name: M ?? "" }, [z, M]), ne = T(() => {
|
|
3981
3981
|
const H = e.split(".");
|
|
3982
3982
|
let ue = x.errors;
|
|
@@ -4008,7 +4008,7 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
4008
4008
|
}, [ne]), O(() => {
|
|
4009
4009
|
x.isSubmitted && te(!0);
|
|
4010
4010
|
}, [x]);
|
|
4011
|
-
const X = q(null), Ct = S !== void 0, Me = p !== void 0,
|
|
4011
|
+
const X = q(null), Ct = S !== void 0, Me = p !== void 0, yr = Me && J !== null;
|
|
4012
4012
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: g, isInvalid: Ct, inputContainerClassName: w({ "luminus-dropdown-select-open": I }), className: j, children: [
|
|
4013
4013
|
/* @__PURE__ */ s.jsxs(xr, { currentSelection: J, selectedItemNavigateTo: p, children: [
|
|
4014
4014
|
f && (J == null ? void 0 : J.name) && /* @__PURE__ */ s.jsx(V, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: J.name }),
|
|
@@ -4019,7 +4019,7 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
4019
4019
|
}, ref: X, value: z ?? "", onChange: () => {
|
|
4020
4020
|
}, isInvalid: Ct, hidden: c, className: w("w-100", {
|
|
4021
4021
|
"luminus-dropdown-picker-disabled": u,
|
|
4022
|
-
"luminus-dropdown-picker-link":
|
|
4022
|
+
"luminus-dropdown-picker-link": yr
|
|
4023
4023
|
}), children: /* @__PURE__ */ s.jsx("option", { value: z, children: f ? z : (M == null ? void 0 : M.length) > 0 ? M : z }) }) }),
|
|
4024
4024
|
k || !u && Me ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
4025
4025
|
!k && !u && Me && /* @__PURE__ */ s.jsx(U, { size: "sm", color: "secondary", onClick: (H) => {
|
|
@@ -4029,12 +4029,12 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
4029
4029
|
] }) : null
|
|
4030
4030
|
] }),
|
|
4031
4031
|
S && /* @__PURE__ */ s.jsx(pe, { message: S.message }),
|
|
4032
|
-
X.current && /* @__PURE__ */ s.jsx(Nt, { show: I, onCancel: A, items: d, currentSelection: J, onSelectionChange: E, onSearchQueryChange: h, texts: m, itemsNameWidth:
|
|
4032
|
+
X.current && /* @__PURE__ */ s.jsx(Nt, { show: I, onCancel: A, items: d, currentSelection: J, onSelectionChange: E, onSearchQueryChange: h, texts: m, itemsNameWidth: y, additionalColumns: b, displayIdAsName: f, isLoading: v, disabled: u, inputRef: X })
|
|
4033
4033
|
] }) });
|
|
4034
4034
|
}, Vl = ({ InputContainer: t = me, label: e, formField: n, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h, className: p }) => {
|
|
4035
|
-
const { watch: m, setValue:
|
|
4036
|
-
|
|
4037
|
-
}, [
|
|
4035
|
+
const { watch: m, setValue: y, register: v, formState: g } = le(), [b, k] = D(!1), [f, N] = D(void 0), j = T(() => {
|
|
4036
|
+
y(n, "");
|
|
4037
|
+
}, [y, n]), x = T(() => {
|
|
4038
4038
|
const P = n.split(".");
|
|
4039
4039
|
let $ = g.errors;
|
|
4040
4040
|
P.forEach((S) => {
|
|
@@ -4046,9 +4046,9 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
4046
4046
|
}, [g]);
|
|
4047
4047
|
const C = f !== void 0;
|
|
4048
4048
|
return /* @__PURE__ */ s.jsxs(t, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: C, className: p, children: [
|
|
4049
|
-
/* @__PURE__ */ s.jsx(mn, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: C, hidden: r, disabled: i, className: "w-100", ...
|
|
4049
|
+
/* @__PURE__ */ s.jsx(mn, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: C, hidden: r, disabled: i, className: "w-100", ...v(n, {
|
|
4050
4050
|
onChange: () => {
|
|
4051
|
-
c && c.forEach((P) =>
|
|
4051
|
+
c && c.forEach((P) => y(P, null, { shouldDirty: !0, shouldValidate: b }));
|
|
4052
4052
|
}
|
|
4053
4053
|
}) }),
|
|
4054
4054
|
l && m(n) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ s.jsx(ce, {}) }) }),
|
|
@@ -4060,13 +4060,13 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
4060
4060
|
a(Object.keys(r.dirtyFields).length > 0);
|
|
4061
4061
|
}, [r]), o ? /* @__PURE__ */ s.jsx(Xa, { onStorno: e, noSpacer: n, children: t }) : null;
|
|
4062
4062
|
}, zl = ({ InputContainer: t = me, options: e, formField: n, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: p, className: m }) => {
|
|
4063
|
-
const { customSelectTexts:
|
|
4063
|
+
const { customSelectTexts: y } = L(ae), { formState: v, setValue: g, watch: b, control: k } = le(), [f, N] = D(void 0), [j, x] = D(!1), [C, P] = D(!1), [$, S] = D(""), _ = b(n), I = K(() => e.find((E) => E.id === _) ?? null, [e, _]), F = T(() => {
|
|
4064
4064
|
const E = n.split(".");
|
|
4065
|
-
let A =
|
|
4065
|
+
let A = v.errors;
|
|
4066
4066
|
E.forEach((X) => {
|
|
4067
4067
|
A !== void 0 && (A = A[X]);
|
|
4068
4068
|
}), N(A);
|
|
4069
|
-
}, [
|
|
4069
|
+
}, [v, n]), W = T((E) => {
|
|
4070
4070
|
if ((E == null ? void 0 : E.id) === _)
|
|
4071
4071
|
return;
|
|
4072
4072
|
if (a && a.forEach((X) => g(X, null, { shouldDirty: !0, shouldValidate: C })), E === null) {
|
|
@@ -4089,8 +4089,8 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
4089
4089
|
O(() => {
|
|
4090
4090
|
F();
|
|
4091
4091
|
}, [F]), O(() => {
|
|
4092
|
-
|
|
4093
|
-
}, [
|
|
4092
|
+
v.isSubmitted && P(!0);
|
|
4093
|
+
}, [v]);
|
|
4094
4094
|
const M = T((E) => {
|
|
4095
4095
|
var A;
|
|
4096
4096
|
return E === null ? "" : !E.name || E.name.length === 0 ? ((A = E.id) == null ? void 0 : A.toString()) ?? "" : p ? `${E.name} (${E.id})` : E.name;
|
|
@@ -4106,10 +4106,10 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
4106
4106
|
}, ref: ne, value: _ ?? "", onChange: () => {
|
|
4107
4107
|
}, isInvalid: G, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (I == null ? void 0 : I.id) ?? "", children: M(I) }) }) }),
|
|
4108
4108
|
f && /* @__PURE__ */ s.jsx(pe, { message: f.message }),
|
|
4109
|
-
ne.current && /* @__PURE__ */ s.jsx(Nt, { show: j, onCancel: () => x(!1), items: J, currentSelection: I ?? null, onSelectionChange: te, onSearchQueryChange: z, texts:
|
|
4109
|
+
ne.current && /* @__PURE__ */ s.jsx(Nt, { show: j, onCancel: () => x(!1), items: J, currentSelection: I ?? null, onSelectionChange: te, onSearchQueryChange: z, texts: y, disabled: u, inputRef: ne, autoHideSearch: !0, allItemsLength: e.length })
|
|
4110
4110
|
] }) });
|
|
4111
|
-
}, Kl = ({ InputContainer: t = me, formField: e, label: n, placeholder: r, size: o, resetsFields: a, showClearIcon: i, clearValue: l, required: c, hidden: u, disabled: d, withoutLabel: h, step: p, stepperStep: m = 1, className:
|
|
4112
|
-
const { register:
|
|
4111
|
+
}, Kl = ({ InputContainer: t = me, formField: e, label: n, placeholder: r, size: o, resetsFields: a, showClearIcon: i, clearValue: l, required: c, hidden: u, disabled: d, withoutLabel: h, step: p, stepperStep: m = 1, className: y }) => {
|
|
4112
|
+
const { register: v, formState: g, setValue: b, watch: k } = le(), [f, N] = D(void 0), [j, x] = D(!1), C = T(() => {
|
|
4113
4113
|
const _ = l ?? null;
|
|
4114
4114
|
b(e, _ !== null ? Number(_) : null, {
|
|
4115
4115
|
shouldDirty: !0,
|
|
@@ -4128,9 +4128,9 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
4128
4128
|
g.isSubmitted && x(!0);
|
|
4129
4129
|
}, [g]);
|
|
4130
4130
|
const $ = f !== void 0, S = k(e);
|
|
4131
|
-
return /* @__PURE__ */ s.jsxs(t, { label: `${n}${c ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: $, className:
|
|
4131
|
+
return /* @__PURE__ */ s.jsxs(t, { label: `${n}${c ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: $, className: y, children: [
|
|
4132
4132
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
4133
|
-
/* @__PURE__ */ s.jsx(Q.Control, { type: "number", placeholder: r ?? n, size: o, ...
|
|
4133
|
+
/* @__PURE__ */ s.jsx(Q.Control, { type: "number", placeholder: r ?? n, size: o, ...v(e, {
|
|
4134
4134
|
setValueAs: (_) => _ == null || _ === "" ? null : Number(_),
|
|
4135
4135
|
onChange: () => {
|
|
4136
4136
|
a && a.forEach((_) => b(_, null, { shouldDirty: !0, shouldValidate: j }));
|
|
@@ -4168,7 +4168,7 @@ const Ac = "_lightbox_14acg_1", Fc = "_show_14acg_16", Wc = "_header_14acg_20",
|
|
|
4168
4168
|
}, { [en.disabled]: r }), onClick: () => n && !r && n(t), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(V, { variant: "h6", className: "text-primary", children: o }) : o });
|
|
4169
4169
|
export {
|
|
4170
4170
|
Tl as Alert,
|
|
4171
|
-
|
|
4171
|
+
yl as ApiFileDownloadButton,
|
|
4172
4172
|
Il as AppSearch,
|
|
4173
4173
|
Sl as AuthTemplate,
|
|
4174
4174
|
un as AvatarIcon,
|
|
@@ -4183,10 +4183,10 @@ export {
|
|
|
4183
4183
|
Qi as DropdownItem,
|
|
4184
4184
|
Wl as DropdownPicker,
|
|
4185
4185
|
Xi as DropdownToggle,
|
|
4186
|
-
|
|
4186
|
+
vi as ErrorBoundary,
|
|
4187
4187
|
lr as FileUploadContextButton,
|
|
4188
4188
|
Nl as FileUploadDropdownItem,
|
|
4189
|
-
|
|
4189
|
+
Xc as FloatingActionContainer,
|
|
4190
4190
|
Xa as FloatingFormSubmit,
|
|
4191
4191
|
Ne as FloatingLabelInput,
|
|
4192
4192
|
_l as HomeDashboard,
|
|
@@ -4201,16 +4201,16 @@ export {
|
|
|
4201
4201
|
Bl as HookFormTextInput,
|
|
4202
4202
|
Pl as HtmlTooltip,
|
|
4203
4203
|
U as IconButton,
|
|
4204
|
-
|
|
4205
|
-
|
|
4204
|
+
Dl as ImgApi,
|
|
4205
|
+
wr as ImgDirect,
|
|
4206
4206
|
pe as InvalidFeedback,
|
|
4207
4207
|
Dt as Loading,
|
|
4208
4208
|
ho as LoadingBlock,
|
|
4209
|
-
|
|
4209
|
+
vl as MonthPicker,
|
|
4210
4210
|
nu as NoInputContainer,
|
|
4211
4211
|
Ll as NumericStepperInput,
|
|
4212
4212
|
$l as PhotoLibrary,
|
|
4213
|
-
|
|
4213
|
+
zc as PhotoLightbox,
|
|
4214
4214
|
Ot as PrimaryButton,
|
|
4215
4215
|
me as RowLabelInput,
|
|
4216
4216
|
Fl as SelectInput,
|