react-luminus-components 1.2.13 → 1.2.15
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.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { j as a, D as z, E as Z, G as jn, H as kn, J as $n, c as w, s as
|
|
2
|
-
import { ai as
|
|
1
|
+
import { j as a, D as z, E as Z, G as jn, H as kn, J as $n, c as w, s as tt, K as Nn, N as Cn, Q as On, R as Sn, S as Dn, k as ue, t as R, V as En, W as Mn, v as In, X as Tn, Y as Pn, Z as Fn, g as Wn, z as Rn, w as Ae, _ as He, $ as Ln, a0 as Yn, x as Bn, e as ge, L as de, a1 as An, a2 as Hn, a3 as jt, a4 as Ge, M as qe, a5 as Gn, a6 as kt, a7 as qn, a8 as Vn, a9 as Qn, aa as $t, ab as Nt, ac as Kn, ad as Xn, b as zn, ae as Ct, af as we, O as Un, ag as Fe, ah as Jn } from "./UserAvatarToggle-C3Sj7vJ2.js";
|
|
2
|
+
import { ai as Oi } from "./UserAvatarToggle-C3Sj7vJ2.js";
|
|
3
3
|
import * as O from "react";
|
|
4
|
-
import ee, { useCallback as S, useMemo as H, useEffect as M, useRef as W, useState as D, useReducer as
|
|
5
|
-
import { d as St, u as er, q as
|
|
6
|
-
import { L as
|
|
4
|
+
import ee, { useCallback as S, useMemo as H, useEffect as M, useRef as W, useState as D, useReducer as Ot, useContext as F, forwardRef as Ve, createElement as Zn } from "react";
|
|
5
|
+
import { d as St, u as er, q as nt } from "./DataKey-BehuC6mV.js";
|
|
6
|
+
import { L as Di } from "./DataKey-BehuC6mV.js";
|
|
7
7
|
import { m as tr, a as Dt } from "./textUtils-BLtD0zaS.js";
|
|
8
8
|
import { T as V } from "./Typography-ViYwSz0j.js";
|
|
9
9
|
import { a as Et, u as nr } from "./useKeyPress-Chkukevp.js";
|
|
10
|
-
import { S as
|
|
10
|
+
import { S as Mi } from "./SimpleTooltip-QvdXlxmf.js";
|
|
11
11
|
import { useFormContext as oe } from "react-hook-form";
|
|
12
|
-
const
|
|
12
|
+
const Js = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
13
13
|
const r = S(async () => {
|
|
14
14
|
var l;
|
|
15
15
|
const o = await t();
|
|
@@ -55,11 +55,11 @@ function It(t) {
|
|
|
55
55
|
const i = Ce(s);
|
|
56
56
|
return e.getTime() >= o.getTime() ? n + 1 : e.getTime() >= i.getTime() ? n : n - 1;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function rt(t) {
|
|
59
59
|
const e = z(t);
|
|
60
60
|
return e.setHours(0, 0, 0, 0), e;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function ot(t) {
|
|
63
63
|
const e = z(t), n = new Date(
|
|
64
64
|
Date.UTC(
|
|
65
65
|
e.getFullYear(),
|
|
@@ -74,7 +74,7 @@ function rt(t) {
|
|
|
74
74
|
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
75
75
|
}
|
|
76
76
|
function or(t, e) {
|
|
77
|
-
const n =
|
|
77
|
+
const n = rt(t), r = rt(e), o = +n - ot(n), s = +r - ot(r);
|
|
78
78
|
return Math.round((o - s) / tr);
|
|
79
79
|
}
|
|
80
80
|
function ar(t) {
|
|
@@ -623,7 +623,7 @@ const re = {
|
|
|
623
623
|
afternoon: "afternoon",
|
|
624
624
|
evening: "evening",
|
|
625
625
|
night: "night"
|
|
626
|
-
},
|
|
626
|
+
}, at = {
|
|
627
627
|
// Era
|
|
628
628
|
G: function(t, e, n) {
|
|
629
629
|
const r = t.getFullYear() > 0 ? 1 : 0;
|
|
@@ -1049,7 +1049,7 @@ const re = {
|
|
|
1049
1049
|
return "Z";
|
|
1050
1050
|
switch (e) {
|
|
1051
1051
|
case "X":
|
|
1052
|
-
return
|
|
1052
|
+
return it(r);
|
|
1053
1053
|
case "XXXX":
|
|
1054
1054
|
case "XX":
|
|
1055
1055
|
return le(r);
|
|
@@ -1064,7 +1064,7 @@ const re = {
|
|
|
1064
1064
|
const r = t.getTimezoneOffset();
|
|
1065
1065
|
switch (e) {
|
|
1066
1066
|
case "x":
|
|
1067
|
-
return
|
|
1067
|
+
return it(r);
|
|
1068
1068
|
case "xxxx":
|
|
1069
1069
|
case "xx":
|
|
1070
1070
|
return le(r);
|
|
@@ -1081,7 +1081,7 @@ const re = {
|
|
|
1081
1081
|
case "O":
|
|
1082
1082
|
case "OO":
|
|
1083
1083
|
case "OOO":
|
|
1084
|
-
return "GMT" +
|
|
1084
|
+
return "GMT" + st(r, ":");
|
|
1085
1085
|
case "OOOO":
|
|
1086
1086
|
default:
|
|
1087
1087
|
return "GMT" + le(r, ":");
|
|
@@ -1094,7 +1094,7 @@ const re = {
|
|
|
1094
1094
|
case "z":
|
|
1095
1095
|
case "zz":
|
|
1096
1096
|
case "zzz":
|
|
1097
|
-
return "GMT" +
|
|
1097
|
+
return "GMT" + st(r, ":");
|
|
1098
1098
|
case "zzzz":
|
|
1099
1099
|
default:
|
|
1100
1100
|
return "GMT" + le(r, ":");
|
|
@@ -1111,18 +1111,18 @@ const re = {
|
|
|
1111
1111
|
return T(r, e.length);
|
|
1112
1112
|
}
|
|
1113
1113
|
};
|
|
1114
|
-
function
|
|
1114
|
+
function st(t, e = "") {
|
|
1115
1115
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), o = Math.trunc(r / 60), s = r % 60;
|
|
1116
1116
|
return s === 0 ? n + String(o) : n + String(o) + e + T(s, 2);
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function it(t, e) {
|
|
1119
1119
|
return t % 60 === 0 ? (t > 0 ? "-" : "+") + T(Math.abs(t) / 60, 2) : le(t, e);
|
|
1120
1120
|
}
|
|
1121
1121
|
function le(t, e = "") {
|
|
1122
1122
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), o = T(Math.trunc(r / 60), 2), s = T(r % 60, 2);
|
|
1123
1123
|
return n + o + e + s;
|
|
1124
1124
|
}
|
|
1125
|
-
const
|
|
1125
|
+
const ct = (t, e) => {
|
|
1126
1126
|
switch (t) {
|
|
1127
1127
|
case "P":
|
|
1128
1128
|
return e.date({ width: "short" });
|
|
@@ -1149,7 +1149,7 @@ const it = (t, e) => {
|
|
|
1149
1149
|
}, Qr = (t, e) => {
|
|
1150
1150
|
const n = t.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
|
|
1151
1151
|
if (!o)
|
|
1152
|
-
return
|
|
1152
|
+
return ct(t, e);
|
|
1153
1153
|
let s;
|
|
1154
1154
|
switch (r) {
|
|
1155
1155
|
case "P":
|
|
@@ -1166,7 +1166,7 @@ const it = (t, e) => {
|
|
|
1166
1166
|
s = e.dateTime({ width: "full" });
|
|
1167
1167
|
break;
|
|
1168
1168
|
}
|
|
1169
|
-
return s.replace("{{date}}",
|
|
1169
|
+
return s.replace("{{date}}", ct(r, e)).replace("{{time}}", Pt(o, e));
|
|
1170
1170
|
}, Kr = {
|
|
1171
1171
|
p: Pt,
|
|
1172
1172
|
P: Qr
|
|
@@ -1205,7 +1205,7 @@ function Ft(t, e, n) {
|
|
|
1205
1205
|
const _ = j[0];
|
|
1206
1206
|
if (_ === "'")
|
|
1207
1207
|
return { isToken: !1, value: io(j) };
|
|
1208
|
-
if (
|
|
1208
|
+
if (at[_])
|
|
1209
1209
|
return { isToken: !0, value: j };
|
|
1210
1210
|
if (_.match(so))
|
|
1211
1211
|
throw new RangeError(
|
|
@@ -1224,7 +1224,7 @@ function Ft(t, e, n) {
|
|
|
1224
1224
|
return j.value;
|
|
1225
1225
|
const _ = j.value;
|
|
1226
1226
|
(!(n != null && n.useAdditionalWeekYearTokens) && Zr(_) || !(n != null && n.useAdditionalDayOfYearTokens) && Jr(_)) && eo(_, e, String(t));
|
|
1227
|
-
const N =
|
|
1227
|
+
const N = at[_[0]];
|
|
1228
1228
|
return N(l, _, o.localize, u);
|
|
1229
1229
|
}).join("");
|
|
1230
1230
|
}
|
|
@@ -1252,7 +1252,7 @@ var co = function(t, e, n, r, o, s, i, l) {
|
|
|
1252
1252
|
throw c.framesToPop = 1, c;
|
|
1253
1253
|
}
|
|
1254
1254
|
}, lo = co;
|
|
1255
|
-
const
|
|
1255
|
+
const lt = /* @__PURE__ */ jn(lo);
|
|
1256
1256
|
function ye(...t) {
|
|
1257
1257
|
return t.filter((e) => e != null).reduce((e, n) => {
|
|
1258
1258
|
if (typeof n != "function")
|
|
@@ -1269,8 +1269,8 @@ const uo = {
|
|
|
1269
1269
|
function fo(t, e) {
|
|
1270
1270
|
const n = `offset${t[0].toUpperCase()}${t.slice(1)}`, r = e[n], o = uo[t];
|
|
1271
1271
|
return r + // @ts-ignore
|
|
1272
|
-
parseInt(
|
|
1273
|
-
parseInt(
|
|
1272
|
+
parseInt(tt(e, o[0]), 10) + // @ts-ignore
|
|
1273
|
+
parseInt(tt(e, o[1]), 10);
|
|
1274
1274
|
}
|
|
1275
1275
|
const mo = {
|
|
1276
1276
|
[Nn]: "collapse",
|
|
@@ -1347,7 +1347,7 @@ function go(t, e) {
|
|
|
1347
1347
|
function wo(t) {
|
|
1348
1348
|
return !t || t.trim() === "#";
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function Qe({
|
|
1351
1351
|
tagName: t,
|
|
1352
1352
|
disabled: e,
|
|
1353
1353
|
href: n,
|
|
@@ -1397,7 +1397,7 @@ const Rt = /* @__PURE__ */ O.forwardRef((t, e) => {
|
|
|
1397
1397
|
} = t, o = go(t, po);
|
|
1398
1398
|
const [s, {
|
|
1399
1399
|
tagName: i
|
|
1400
|
-
}] =
|
|
1400
|
+
}] = Qe(Object.assign({
|
|
1401
1401
|
tagName: n,
|
|
1402
1402
|
disabled: r
|
|
1403
1403
|
}, o));
|
|
@@ -1422,7 +1422,7 @@ const Lt = /* @__PURE__ */ O.forwardRef((t, e) => {
|
|
|
1422
1422
|
let {
|
|
1423
1423
|
onKeyDown: n
|
|
1424
1424
|
} = t, r = bo(t, xo);
|
|
1425
|
-
const [o] =
|
|
1425
|
+
const [o] = Qe(Object.assign({
|
|
1426
1426
|
tagName: "a"
|
|
1427
1427
|
}, r)), s = ue((i) => {
|
|
1428
1428
|
o.onKeyDown(i), n == null || n(i);
|
|
@@ -1450,7 +1450,7 @@ const Yt = /* @__PURE__ */ O.forwardRef(({
|
|
|
1450
1450
|
}, c) => {
|
|
1451
1451
|
const u = R(e, "btn"), [d, {
|
|
1452
1452
|
tagName: f
|
|
1453
|
-
}] =
|
|
1453
|
+
}] = Qe({
|
|
1454
1454
|
tagName: t,
|
|
1455
1455
|
disabled: s,
|
|
1456
1456
|
...l
|
|
@@ -1523,7 +1523,7 @@ function jo(t, e, n) {
|
|
|
1523
1523
|
}, [n])];
|
|
1524
1524
|
}
|
|
1525
1525
|
function ko() {
|
|
1526
|
-
const [, t] =
|
|
1526
|
+
const [, t] = Ot((e) => !e, !1);
|
|
1527
1527
|
return t;
|
|
1528
1528
|
}
|
|
1529
1529
|
const Me = /* @__PURE__ */ O.createContext(null), $o = ["children", "usePopper"];
|
|
@@ -1648,19 +1648,19 @@ function Wo() {
|
|
|
1648
1648
|
const qt = (t) => {
|
|
1649
1649
|
var e;
|
|
1650
1650
|
return ((e = t.getAttribute("role")) == null ? void 0 : e.toLowerCase()) === "menu";
|
|
1651
|
-
},
|
|
1651
|
+
}, ut = () => {
|
|
1652
1652
|
};
|
|
1653
1653
|
function Vt() {
|
|
1654
1654
|
const t = Io(), {
|
|
1655
1655
|
show: e = !1,
|
|
1656
|
-
toggle: n =
|
|
1656
|
+
toggle: n = ut,
|
|
1657
1657
|
setToggle: r,
|
|
1658
1658
|
menuElement: o
|
|
1659
1659
|
} = F(Me) || {}, s = S((l) => {
|
|
1660
1660
|
n(!e, l);
|
|
1661
1661
|
}, [e, n]), i = {
|
|
1662
1662
|
id: t,
|
|
1663
|
-
ref: r ||
|
|
1663
|
+
ref: r || ut,
|
|
1664
1664
|
onClick: s,
|
|
1665
1665
|
"aria-expanded": !!e
|
|
1666
1666
|
};
|
|
@@ -1678,7 +1678,7 @@ function Qt({
|
|
|
1678
1678
|
});
|
|
1679
1679
|
}
|
|
1680
1680
|
Qt.displayName = "DropdownToggle";
|
|
1681
|
-
const Ye = /* @__PURE__ */ O.createContext(null),
|
|
1681
|
+
const Ye = /* @__PURE__ */ O.createContext(null), dt = (t, e = null) => t != null ? String(t) : e || null, Kt = /* @__PURE__ */ O.createContext(null);
|
|
1682
1682
|
Kt.displayName = "NavContext";
|
|
1683
1683
|
const Ro = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
1684
1684
|
function Lo(t, e) {
|
|
@@ -1698,7 +1698,7 @@ function Xt({
|
|
|
1698
1698
|
}) {
|
|
1699
1699
|
const s = F(Ye), i = F(Kt), {
|
|
1700
1700
|
activeKey: l
|
|
1701
|
-
} = i || {}, c =
|
|
1701
|
+
} = i || {}, c = dt(t, e), u = n == null && t != null ? dt(l) === c : n;
|
|
1702
1702
|
return [{
|
|
1703
1703
|
onClick: ue((f) => {
|
|
1704
1704
|
r || (o == null || o(f), s && !f.isPropagationStopped() && s(c, f));
|
|
@@ -1730,7 +1730,7 @@ const zt = /* @__PURE__ */ O.forwardRef((t, e) => {
|
|
|
1730
1730
|
}, c));
|
|
1731
1731
|
});
|
|
1732
1732
|
zt.displayName = "DropdownItem";
|
|
1733
|
-
function
|
|
1733
|
+
function ft() {
|
|
1734
1734
|
const t = ko(), e = W(null), n = S((r) => {
|
|
1735
1735
|
e.current = r, t();
|
|
1736
1736
|
}, [t]);
|
|
@@ -1746,7 +1746,7 @@ function ke({
|
|
|
1746
1746
|
placement: i = "bottom-start",
|
|
1747
1747
|
children: l
|
|
1748
1748
|
}) {
|
|
1749
|
-
const c = Wn(), [u, d] = jo(e, t, r), [f, m] =
|
|
1749
|
+
const c = Wn(), [u, d] = jo(e, t, r), [f, m] = ft(), h = f.current, [b, x] = ft(), g = b.current, y = er(u), j = W(null), _ = W(!1), N = F(Ye), v = S((C, E, L = E == null ? void 0 : E.type) => {
|
|
1750
1750
|
d(C, {
|
|
1751
1751
|
originalEvent: E,
|
|
1752
1752
|
source: L
|
|
@@ -1770,7 +1770,7 @@ function ke({
|
|
|
1770
1770
|
let E = s;
|
|
1771
1771
|
if (E == null && (E = f.current && qt(f.current) ? "keyboard" : !1), E === !1 || E === "keyboard" && !/^key.+$/.test(C))
|
|
1772
1772
|
return;
|
|
1773
|
-
const L =
|
|
1773
|
+
const L = nt(f.current, o)[0];
|
|
1774
1774
|
L && L.focus && L.focus();
|
|
1775
1775
|
});
|
|
1776
1776
|
M(() => {
|
|
@@ -1781,7 +1781,7 @@ function ke({
|
|
|
1781
1781
|
const I = (C, E) => {
|
|
1782
1782
|
if (!f.current)
|
|
1783
1783
|
return null;
|
|
1784
|
-
const L =
|
|
1784
|
+
const L = nt(f.current, o);
|
|
1785
1785
|
let q = L.indexOf(C) + E;
|
|
1786
1786
|
return q = Math.max(0, Math.min(q, L.length)), L[q];
|
|
1787
1787
|
};
|
|
@@ -1813,8 +1813,8 @@ function ke({
|
|
|
1813
1813
|
return;
|
|
1814
1814
|
case "Tab":
|
|
1815
1815
|
Rn(Q.ownerDocument, "keyup", (G) => {
|
|
1816
|
-
var
|
|
1817
|
-
(G.key === "Tab" && !G.target || !((
|
|
1816
|
+
var et;
|
|
1817
|
+
(G.key === "Tab" && !G.target || !((et = f.current) != null && et.contains(G.target))) && d(!1, A);
|
|
1818
1818
|
}, {
|
|
1819
1819
|
once: !0
|
|
1820
1820
|
});
|
|
@@ -1835,8 +1835,8 @@ ke.displayName = "Dropdown";
|
|
|
1835
1835
|
ke.Menu = Ht;
|
|
1836
1836
|
ke.Toggle = Qt;
|
|
1837
1837
|
ke.Item = zt;
|
|
1838
|
-
const
|
|
1839
|
-
|
|
1838
|
+
const Ke = /* @__PURE__ */ O.createContext({});
|
|
1839
|
+
Ke.displayName = "DropdownContext";
|
|
1840
1840
|
const Ut = /* @__PURE__ */ O.forwardRef(({
|
|
1841
1841
|
className: t,
|
|
1842
1842
|
bsPrefix: e,
|
|
@@ -1907,7 +1907,7 @@ function nn(t, e) {
|
|
|
1907
1907
|
if (process.env.NODE_ENV === "production")
|
|
1908
1908
|
return t;
|
|
1909
1909
|
const n = S((r) => {
|
|
1910
|
-
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ?
|
|
1910
|
+
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? lt(!1, `${e} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : lt(!1));
|
|
1911
1911
|
}, [e]);
|
|
1912
1912
|
return Ae(n, t);
|
|
1913
1913
|
}
|
|
@@ -1935,7 +1935,7 @@ const on = /* @__PURE__ */ O.forwardRef(({
|
|
|
1935
1935
|
align: x,
|
|
1936
1936
|
drop: g,
|
|
1937
1937
|
isRTL: y
|
|
1938
|
-
} = F(
|
|
1938
|
+
} = F(Ke);
|
|
1939
1939
|
n = n || x;
|
|
1940
1940
|
const j = F(Ie), _ = [];
|
|
1941
1941
|
if (n)
|
|
@@ -2032,7 +2032,7 @@ const sn = /* @__PURE__ */ O.forwardRef((t, e) => {
|
|
|
2032
2032
|
end: "dropend",
|
|
2033
2033
|
start: "dropstart"
|
|
2034
2034
|
};
|
|
2035
|
-
return /* @__PURE__ */ a.jsx(
|
|
2035
|
+
return /* @__PURE__ */ a.jsx(Ke.Provider, {
|
|
2036
2036
|
value: v,
|
|
2037
2037
|
children: /* @__PURE__ */ a.jsx(ke, {
|
|
2038
2038
|
placement: N,
|
|
@@ -2223,7 +2223,7 @@ const un = Object.assign(ln, {
|
|
|
2223
2223
|
...r
|
|
2224
2224
|
})));
|
|
2225
2225
|
dn.displayName = "FormFloating";
|
|
2226
|
-
const
|
|
2226
|
+
const Xe = /* @__PURE__ */ O.forwardRef(({
|
|
2227
2227
|
controlId: t,
|
|
2228
2228
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2229
2229
|
as: e = "div",
|
|
@@ -2240,7 +2240,7 @@ const Ke = /* @__PURE__ */ O.forwardRef(({
|
|
|
2240
2240
|
})
|
|
2241
2241
|
});
|
|
2242
2242
|
});
|
|
2243
|
-
|
|
2243
|
+
Xe.displayName = "FormGroup";
|
|
2244
2244
|
const fn = /* @__PURE__ */ O.forwardRef(({
|
|
2245
2245
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2246
2246
|
as: t = "label",
|
|
@@ -2339,14 +2339,14 @@ gn.displayName = "Switch";
|
|
|
2339
2339
|
const Bo = Object.assign(gn, {
|
|
2340
2340
|
Input: De.Input,
|
|
2341
2341
|
Label: De.Label
|
|
2342
|
-
}),
|
|
2342
|
+
}), ze = /* @__PURE__ */ O.forwardRef(({
|
|
2343
2343
|
bsPrefix: t,
|
|
2344
2344
|
className: e,
|
|
2345
2345
|
children: n,
|
|
2346
2346
|
controlId: r,
|
|
2347
2347
|
label: o,
|
|
2348
2348
|
...s
|
|
2349
|
-
}, i) => (t = R(t, "form-floating"), /* @__PURE__ */ a.jsxs(
|
|
2349
|
+
}, i) => (t = R(t, "form-floating"), /* @__PURE__ */ a.jsxs(Xe, {
|
|
2350
2350
|
ref: i,
|
|
2351
2351
|
className: w(e, t),
|
|
2352
2352
|
controlId: r,
|
|
@@ -2356,7 +2356,7 @@ const Bo = Object.assign(gn, {
|
|
|
2356
2356
|
children: o
|
|
2357
2357
|
})]
|
|
2358
2358
|
})));
|
|
2359
|
-
|
|
2359
|
+
ze.displayName = "FloatingLabel";
|
|
2360
2360
|
const Ao = {
|
|
2361
2361
|
/**
|
|
2362
2362
|
* The Form `ref` will be forwarded to the underlying element,
|
|
@@ -2373,7 +2373,7 @@ const Ao = {
|
|
|
2373
2373
|
*/
|
|
2374
2374
|
validated: ge.bool,
|
|
2375
2375
|
as: ge.elementType
|
|
2376
|
-
},
|
|
2376
|
+
}, Ue = /* @__PURE__ */ O.forwardRef(({
|
|
2377
2377
|
className: t,
|
|
2378
2378
|
validated: e,
|
|
2379
2379
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -2384,10 +2384,10 @@ const Ao = {
|
|
|
2384
2384
|
ref: o,
|
|
2385
2385
|
className: w(t, e && "was-validated")
|
|
2386
2386
|
}));
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
const K = Object.assign(
|
|
2390
|
-
Group:
|
|
2387
|
+
Ue.displayName = "Form";
|
|
2388
|
+
Ue.propTypes = Ao;
|
|
2389
|
+
const K = Object.assign(Ue, {
|
|
2390
|
+
Group: Xe,
|
|
2391
2391
|
Control: un,
|
|
2392
2392
|
Floating: dn,
|
|
2393
2393
|
Check: De,
|
|
@@ -2396,7 +2396,7 @@ const K = Object.assign(ze, {
|
|
|
2396
2396
|
Text: pn,
|
|
2397
2397
|
Range: mn,
|
|
2398
2398
|
Select: hn,
|
|
2399
|
-
FloatingLabel:
|
|
2399
|
+
FloatingLabel: ze
|
|
2400
2400
|
}), Pe = /* @__PURE__ */ O.forwardRef(({
|
|
2401
2401
|
className: t,
|
|
2402
2402
|
bsPrefix: e,
|
|
@@ -2443,7 +2443,7 @@ const Le = Object.assign(wn, {
|
|
|
2443
2443
|
Text: Pe,
|
|
2444
2444
|
Radio: Go,
|
|
2445
2445
|
Checkbox: Ho
|
|
2446
|
-
}),
|
|
2446
|
+
}), Je = /* @__PURE__ */ O.forwardRef(({
|
|
2447
2447
|
bsPrefix: t,
|
|
2448
2448
|
variant: e,
|
|
2449
2449
|
animation: n = "border",
|
|
@@ -2461,30 +2461,30 @@ const Le = Object.assign(wn, {
|
|
|
2461
2461
|
className: w(s, c, r && `${c}-${r}`, e && `text-${e}`)
|
|
2462
2462
|
});
|
|
2463
2463
|
});
|
|
2464
|
-
|
|
2464
|
+
Je.displayName = "Spinner";
|
|
2465
2465
|
const qo = "_button_1wjon_1", Vo = "_filled_1wjon_7", Qo = "_sm_1wjon_13", Ko = "_md_1wjon_18", Xo = "_lg_1wjon_23", he = {
|
|
2466
2466
|
button: qo,
|
|
2467
2467
|
filled: Vo,
|
|
2468
2468
|
sm: Qo,
|
|
2469
2469
|
md: Ko,
|
|
2470
2470
|
lg: Xo
|
|
2471
|
-
},
|
|
2471
|
+
}, mt = ({ variant: t = "filled", color: e = "primary", size: n = "md", className: r, children: o, ...s }) => {
|
|
2472
2472
|
const { LinkComponent: i } = F(de);
|
|
2473
2473
|
return s.as === "link" ? /* @__PURE__ */ a.jsx(i, { to: s.href ?? "/", className: w(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${r ?? ""}`, he.button, he[t], he[n]), ...s, children: o }) : s.as === "button" || s.as === void 0 ? /* @__PURE__ */ a.jsx("button", { type: "button", className: w(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${r ?? ""}`, he.button, he[t], he[n]), ...s, children: o }) : null;
|
|
2474
|
-
}, zo = "_submit-container_a9slg_1", Uo = "_spacer_a9slg_14",
|
|
2474
|
+
}, zo = "_submit-container_a9slg_1", Uo = "_spacer_a9slg_14", ht = {
|
|
2475
2475
|
"submit-container": "_submit-container_a9slg_1",
|
|
2476
2476
|
submitContainer: zo,
|
|
2477
2477
|
spacer: Uo
|
|
2478
2478
|
}, Jo = ({ children: t, onStorno: e }) => {
|
|
2479
2479
|
const { formSubmitTexts: n } = F(de);
|
|
2480
2480
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2481
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
2482
|
-
/* @__PURE__ */ a.jsxs("div", { className: w("luminus-floating-submit-container shadow",
|
|
2483
|
-
/* @__PURE__ */ a.jsxs(
|
|
2481
|
+
/* @__PURE__ */ a.jsx("div", { className: ht.spacer }),
|
|
2482
|
+
/* @__PURE__ */ a.jsxs("div", { className: w("luminus-floating-submit-container shadow", ht.submitContainer), children: [
|
|
2483
|
+
/* @__PURE__ */ a.jsxs(mt, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
2484
2484
|
/* @__PURE__ */ a.jsx(An, {}),
|
|
2485
2485
|
t
|
|
2486
2486
|
] }),
|
|
2487
|
-
e && /* @__PURE__ */ a.jsxs(
|
|
2487
|
+
e && /* @__PURE__ */ a.jsxs(mt, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: e, children: [
|
|
2488
2488
|
/* @__PURE__ */ a.jsx(Hn, {}),
|
|
2489
2489
|
n.storno
|
|
2490
2490
|
] })
|
|
@@ -2508,7 +2508,7 @@ const qo = "_button_1wjon_1", Vo = "_filled_1wjon_7", Qo = "_sm_1wjon_13", Ko =
|
|
|
2508
2508
|
e,
|
|
2509
2509
|
r
|
|
2510
2510
|
] }) : null;
|
|
2511
|
-
}, bn = ({ color: t = "primary", icon: e = /* @__PURE__ */ a.jsx(
|
|
2511
|
+
}, bn = ({ color: t = "primary", icon: e = /* @__PURE__ */ a.jsx(jt, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, className: s, children: i, multiple: l, ...c }) => {
|
|
2512
2512
|
const u = (d) => {
|
|
2513
2513
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
2514
2514
|
};
|
|
@@ -2519,8 +2519,8 @@ const qo = "_button_1wjon_1", Vo = "_filled_1wjon_7", Qo = "_sm_1wjon_13", Ko =
|
|
|
2519
2519
|
] }),
|
|
2520
2520
|
/* @__PURE__ */ a.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: l })
|
|
2521
2521
|
] });
|
|
2522
|
-
}, ea = "_icon-
|
|
2523
|
-
"icon-button": "_icon-
|
|
2522
|
+
}, ea = "_icon-button_1onga_1", ta = "_sm_1onga_14", na = "_md_1onga_19", ra = "_lg_1onga_24", pt = {
|
|
2523
|
+
"icon-button": "_icon-button_1onga_1",
|
|
2524
2524
|
iconButton: ea,
|
|
2525
2525
|
sm: ta,
|
|
2526
2526
|
md: na,
|
|
@@ -2529,11 +2529,11 @@ const qo = "_button_1wjon_1", Vo = "_filled_1wjon_7", Qo = "_sm_1wjon_13", Ko =
|
|
|
2529
2529
|
"button",
|
|
2530
2530
|
{
|
|
2531
2531
|
type: t,
|
|
2532
|
-
className: w(`luminus-icon-button btn text-${e} ${o ?? ""}`,
|
|
2532
|
+
className: w(`luminus-icon-button btn text-${e} ${o ?? ""}`, pt.iconButton, pt[n]),
|
|
2533
2533
|
...s,
|
|
2534
2534
|
children: r
|
|
2535
2535
|
}
|
|
2536
|
-
),
|
|
2536
|
+
), Zs = ({ month: t, onChangeMonth: e, locale: n }) => {
|
|
2537
2537
|
const r = S((o) => {
|
|
2538
2538
|
e(Mt(t, o));
|
|
2539
2539
|
}, [t, e]);
|
|
@@ -2542,7 +2542,7 @@ const qo = "_button_1wjon_1", Vo = "_filled_1wjon_7", Qo = "_sm_1wjon_13", Ko =
|
|
|
2542
2542
|
/* @__PURE__ */ a.jsx("div", { children: Ft(t, "LLLL yyyy", { locale: n }) }),
|
|
2543
2543
|
/* @__PURE__ */ a.jsx(X, { onClick: () => r(1), children: /* @__PURE__ */ a.jsx(qe, {}) })
|
|
2544
2544
|
] });
|
|
2545
|
-
},
|
|
2545
|
+
}, ei = ({ year: t, onChangeYear: e, locale: n }) => {
|
|
2546
2546
|
const r = S((o) => {
|
|
2547
2547
|
e(sr(t, o));
|
|
2548
2548
|
}, [t, e]);
|
|
@@ -2553,7 +2553,7 @@ const qo = "_button_1wjon_1", Vo = "_filled_1wjon_7", Qo = "_sm_1wjon_13", Ko =
|
|
|
2553
2553
|
] });
|
|
2554
2554
|
}, oa = "_widget_1sdw8_1", aa = {
|
|
2555
2555
|
widget: oa
|
|
2556
|
-
},
|
|
2556
|
+
}, gt = ({ onAdd: t }) => /* @__PURE__ */ a.jsx("div", { className: w("luminus-empty-widget", aa.widget), children: /* @__PURE__ */ a.jsx(X, { onClick: () => t(0), children: /* @__PURE__ */ a.jsx(Gn, {}) }) }), sa = () => {
|
|
2557
2557
|
const [t, e] = D({
|
|
2558
2558
|
widgets: []
|
|
2559
2559
|
});
|
|
@@ -2581,7 +2581,7 @@ const qo = "_button_1wjon_1", Vo = "_filled_1wjon_7", Qo = "_sm_1wjon_13", Ko =
|
|
|
2581
2581
|
fullWidthIcon: ma,
|
|
2582
2582
|
"widget-edit-overlay": "_widget-edit-overlay_1ikl9_35",
|
|
2583
2583
|
widgetEditOverlay: ha
|
|
2584
|
-
},
|
|
2584
|
+
}, ti = ({ availableWidgets: t }) => {
|
|
2585
2585
|
var d;
|
|
2586
2586
|
const { homeDashboardTexts: e } = F(de), { dashboardConfig: n, onChangeDashboardConfig: r } = sa(), [o, s] = D(!1), i = S((f, m) => {
|
|
2587
2587
|
var h, b;
|
|
@@ -2608,52 +2608,52 @@ const qo = "_button_1wjon_1", Vo = "_filled_1wjon_7", Qo = "_sm_1wjon_13", Ko =
|
|
|
2608
2608
|
[J.widgetEdit]: o && f.id !== -1
|
|
2609
2609
|
}, { [J.fullWidth]: h }), children: [
|
|
2610
2610
|
o && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2611
|
-
/* @__PURE__ */ a.jsx(X, { color: "danger", onClick: () => l(m), className: w(J.removeIcon), children: /* @__PURE__ */ a.jsx(
|
|
2611
|
+
/* @__PURE__ */ a.jsx(X, { color: "danger", onClick: () => l(m), className: w(J.removeIcon), children: /* @__PURE__ */ a.jsx(kt, {}) }),
|
|
2612
2612
|
/* @__PURE__ */ a.jsx(X, { color: h ? "danger" : "primary", onClick: () => c(m), className: w(J.fullWidthIcon), children: /* @__PURE__ */ a.jsx(qn, {}) })
|
|
2613
2613
|
] }),
|
|
2614
|
-
f.id === -1 ? o && /* @__PURE__ */ a.jsx("div", { className: J.widgetWrapper, children: /* @__PURE__ */ a.jsx(
|
|
2614
|
+
f.id === -1 ? o && /* @__PURE__ */ a.jsx("div", { className: J.widgetWrapper, children: /* @__PURE__ */ a.jsx(gt, { onAdd: (b) => i(m, b) }) }) : f.render,
|
|
2615
2615
|
f.id > -1 && o && /* @__PURE__ */ a.jsx("div", { className: J.widgetEditOverlay })
|
|
2616
2616
|
] }, m) : /* @__PURE__ */ a.jsx(a.Fragment, {}), [o, i, l, c]);
|
|
2617
2617
|
return /* @__PURE__ */ a.jsxs("div", { className: J.dashboard, children: [
|
|
2618
2618
|
/* @__PURE__ */ a.jsx("div", { className: "mb-3 d-flex align-items-center justify-content-end", children: /* @__PURE__ */ a.jsx(xn, { as: "button", color: o ? "success" : "primary", icon: o ? /* @__PURE__ */ a.jsx(Vn, {}) : /* @__PURE__ */ a.jsx(Qn, {}), onClick: () => s(!o), children: o ? e.dashboardEditDone : e.dashboardEdit }) }),
|
|
2619
2619
|
/* @__PURE__ */ a.jsxs("div", { className: J.widgetsGrid, children: [
|
|
2620
2620
|
(d = n.widgets) == null ? void 0 : d.map((f, m) => u(t.find((h) => h.id === f.widgetId), m, f.fullWidth)),
|
|
2621
|
-
o && /* @__PURE__ */ a.jsx(
|
|
2621
|
+
o && /* @__PURE__ */ a.jsx(gt, { onAdd: (f) => {
|
|
2622
2622
|
var m;
|
|
2623
2623
|
return i((m = n.widgets) == null ? void 0 : m.length, f);
|
|
2624
2624
|
} })
|
|
2625
2625
|
] })
|
|
2626
2626
|
] });
|
|
2627
|
-
}, pa = "_badge_nhser_1", ga = "_sm_nhser_1", wa = "_md_nhser_4", xa = "_lg_nhser_7",
|
|
2627
|
+
}, pa = "_badge_nhser_1", ga = "_sm_nhser_1", wa = "_md_nhser_4", xa = "_lg_nhser_7", wt = {
|
|
2628
2628
|
badge: pa,
|
|
2629
2629
|
sm: ga,
|
|
2630
2630
|
md: wa,
|
|
2631
2631
|
lg: xa
|
|
2632
|
-
},
|
|
2632
|
+
}, ni = ({ children: t, color: e = "primary", size: n = "md", className: r }) => /* @__PURE__ */ a.jsx("span", { className: w(`luminus-badge badge bg-${e} ${r ?? ""}`, wt.badge, wt[n]), children: t }), ba = "_collapse-icon_1ahhn_1", ya = "_collapsed_1ahhn_6", xt = {
|
|
2633
2633
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
2634
2634
|
collapseIcon: ba,
|
|
2635
2635
|
collapsed: ya
|
|
2636
|
-
},
|
|
2636
|
+
}, ri = ({ title: t, children: e, className: n, ...r }) => {
|
|
2637
2637
|
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [s, i] = D(o), l = r.controlled ? r.isOpen : s;
|
|
2638
2638
|
return M(() => {
|
|
2639
2639
|
i(o);
|
|
2640
2640
|
}, [o]), /* @__PURE__ */ a.jsxs("div", { className: n ?? "", children: [
|
|
2641
2641
|
/* @__PURE__ */ a.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(!s), children: [
|
|
2642
2642
|
/* @__PURE__ */ a.jsx(V, { variant: "h6", children: t }),
|
|
2643
|
-
/* @__PURE__ */ a.jsx(
|
|
2644
|
-
[
|
|
2643
|
+
/* @__PURE__ */ a.jsx($t, { className: w(xt.collapseIcon, {
|
|
2644
|
+
[xt.collapsed]: l
|
|
2645
2645
|
}) })
|
|
2646
2646
|
] }),
|
|
2647
2647
|
/* @__PURE__ */ a.jsx(Wt, { in: l, children: /* @__PURE__ */ a.jsx("div", { children: e }) }),
|
|
2648
2648
|
/* @__PURE__ */ a.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
2649
2649
|
] });
|
|
2650
|
-
}, va = "_feedback_esh1j_1", _a = "_feedback-spacer_esh1j_8",
|
|
2650
|
+
}, va = "_feedback_esh1j_1", _a = "_feedback-spacer_esh1j_8", bt = {
|
|
2651
2651
|
feedback: va,
|
|
2652
2652
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
2653
2653
|
feedbackSpacer: _a
|
|
2654
2654
|
}, fe = ({ message: t }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2655
|
-
/* @__PURE__ */ a.jsx("div", { className: w("invalid-feedback luminus-invalid-feedback",
|
|
2656
|
-
/* @__PURE__ */ a.jsx("div", { className: w("invalid-feedback-spacer",
|
|
2655
|
+
/* @__PURE__ */ a.jsx("div", { className: w("invalid-feedback luminus-invalid-feedback", bt.feedback), children: t }),
|
|
2656
|
+
/* @__PURE__ */ a.jsx("div", { className: w("invalid-feedback-spacer", bt.feedbackSpacer), children: t })
|
|
2657
2657
|
] });
|
|
2658
2658
|
function ja(t, e, n) {
|
|
2659
2659
|
var r = this, o = W(null), s = W(0), i = W(null), l = W([]), c = W(), u = W(), d = W(t), f = W(!0);
|
|
@@ -2718,7 +2718,7 @@ function $a(t, e) {
|
|
|
2718
2718
|
return e;
|
|
2719
2719
|
}
|
|
2720
2720
|
function yn(t, e, n) {
|
|
2721
|
-
var r = ka, o =
|
|
2721
|
+
var r = ka, o = Ot($a, t), s = o[0], i = o[1], l = ja(S(function(u) {
|
|
2722
2722
|
return i(u);
|
|
2723
2723
|
}, [i]), e, n), c = W(t);
|
|
2724
2724
|
return r(c.current, t) || (l(t), c.current = t), [s, l];
|
|
@@ -2754,7 +2754,7 @@ const Na = "_wrapper_1yjlu_1", Ca = "_open_1yjlu_10", Oa = "_display-on-top_1yjl
|
|
|
2754
2754
|
icon: Aa,
|
|
2755
2755
|
"clear-button": "_clear-button_1yjlu_105",
|
|
2756
2756
|
clearButton: Ha
|
|
2757
|
-
},
|
|
2757
|
+
}, Ze = ({ show: t, onCancel: e, items: n, currentSelection: r, onSelectionChange: o, onClickSelectedItem: s, onSearchQueryChange: i, texts: l, additionalColumns: c, disabled: u, isLoading: d = !1, inputRect: f }) => {
|
|
2758
2758
|
const m = W(null), h = W(null), [b, x] = D(""), [g] = yn(b, 500), y = (f == null ? void 0 : f.x) ?? 0, j = (f == null ? void 0 : f.y) ?? 0, _ = H(() => y ? y > window.innerWidth / 2 : !1, [y]), N = H(() => j ? j > window.innerHeight / 2 : !1, [j]);
|
|
2759
2759
|
M(() => {
|
|
2760
2760
|
var p;
|
|
@@ -2773,7 +2773,7 @@ const Na = "_wrapper_1yjlu_1", Ca = "_open_1yjlu_10", Oa = "_display-on-top_1yjl
|
|
|
2773
2773
|
}, [e]);
|
|
2774
2774
|
return Et(v), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2775
2775
|
/* @__PURE__ */ a.jsx(_n, { show: t, onClick: e }),
|
|
2776
|
-
r && t && /* @__PURE__ */ a.jsx("button", { type: "button", className: w("luminus-dropdown-picker-clear-button", Y.clearButton), onClick: () => !u && o(null), children: /* @__PURE__ */ a.jsx(V, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ a.jsx(
|
|
2776
|
+
r && t && /* @__PURE__ */ a.jsx("button", { type: "button", className: w("luminus-dropdown-picker-clear-button", Y.clearButton), onClick: () => !u && o(null), children: /* @__PURE__ */ a.jsx(V, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ a.jsx(kt, { size: 16 }) }) }),
|
|
2777
2777
|
/* @__PURE__ */ a.jsx("div", { className: w(Y.wrapper, {
|
|
2778
2778
|
[Y.open]: t
|
|
2779
2779
|
}, { [Y.displayOnTop]: N }, { [Y.displayOnBottom]: !N }, { [Y.displayOnLeft]: _ }, { [Y.displayOnRight]: !_ }), style: {
|
|
@@ -2783,14 +2783,14 @@ const Na = "_wrapper_1yjlu_1", Ca = "_open_1yjlu_10", Oa = "_display-on-top_1yjl
|
|
|
2783
2783
|
e(), s(r);
|
|
2784
2784
|
}, className: w("selected-button", Y.selectedButton), children: [
|
|
2785
2785
|
/* @__PURE__ */ a.jsx("div", { className: Y.name, children: /* @__PURE__ */ a.jsx(V, { variant: "body2", children: r.name }) }),
|
|
2786
|
-
/* @__PURE__ */ a.jsx("div", { className: Y.icon, children: /* @__PURE__ */ a.jsx(V, { variant: "caption", className: "text-primary align-items-center", children: /* @__PURE__ */ a.jsx(
|
|
2786
|
+
/* @__PURE__ */ a.jsx("div", { className: Y.icon, children: /* @__PURE__ */ a.jsx(V, { variant: "caption", className: "text-primary align-items-center", children: /* @__PURE__ */ a.jsx(Nt, {}) }) })
|
|
2787
2787
|
] }),
|
|
2788
2788
|
!u && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2789
2789
|
/* @__PURE__ */ a.jsx("div", { className: w("search-input-container border-bottom", Y.searchInputContainer), children: /* @__PURE__ */ a.jsx(K.Control, { ref: h, type: "search", size: "sm", className: Y.searchInput, placeholder: l.searchPlaceholder, value: b, onChange: (p) => {
|
|
2790
2790
|
var k;
|
|
2791
2791
|
return x(((k = p.target) == null ? void 0 : k.value) ?? "");
|
|
2792
2792
|
} }) }),
|
|
2793
|
-
d ? /* @__PURE__ */ a.jsx("div", { className: Y.loadingContainer, children: /* @__PURE__ */ a.jsx(
|
|
2793
|
+
d ? /* @__PURE__ */ a.jsx("div", { className: Y.loadingContainer, children: /* @__PURE__ */ a.jsx(Je, { animation: "border", variant: "primary" }) }) : n.length > 0 && /* @__PURE__ */ a.jsxs("div", { className: w("items", Y.itemsContainer), children: [
|
|
2794
2794
|
c && c.length > 0 && /* @__PURE__ */ a.jsxs("div", { className: w("header-row border-bottom", Y.headerRow), children: [
|
|
2795
2795
|
/* @__PURE__ */ a.jsx("div", { className: Y.name }),
|
|
2796
2796
|
c == null ? void 0 : c.map((p) => /* @__PURE__ */ a.jsx("div", { className: Y.columnItem, children: /* @__PURE__ */ a.jsx(V, { variant: "caption", children: p.name }) }, p.key))
|
|
@@ -2819,7 +2819,7 @@ const qa = "_item_1dy8x_1", vn = {
|
|
|
2819
2819
|
}) => /* @__PURE__ */ a.jsxs(je.Item, { className: w(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${n ?? ""}`, vn.item), ...o, children: [
|
|
2820
2820
|
e,
|
|
2821
2821
|
r
|
|
2822
|
-
] }), Qa = (t) => /* @__PURE__ */ a.jsx(je.Toggle, { ...t }),
|
|
2822
|
+
] }), Qa = (t) => /* @__PURE__ */ a.jsx(je.Toggle, { ...t }), oi = ({ color: t = "primary", icon: e = /* @__PURE__ */ a.jsx(jt, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, multiple: s, className: i, children: l, ...c }) => {
|
|
2823
2823
|
const u = (d) => {
|
|
2824
2824
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
2825
2825
|
};
|
|
@@ -2832,7 +2832,7 @@ const qa = "_item_1dy8x_1", vn = {
|
|
|
2832
2832
|
] });
|
|
2833
2833
|
}, Ka = "_divider_1e6rk_1", Xa = {
|
|
2834
2834
|
divider: Ka
|
|
2835
|
-
},
|
|
2835
|
+
}, ai = ({ className: t }) => /* @__PURE__ */ a.jsx(je.Divider, { className: w("luminus-dropdown-divider", t, Xa.divider) }), za = "_dropdown_1lk66_1", Ua = {
|
|
2836
2836
|
dropdown: za
|
|
2837
2837
|
}, Ja = ({ toggle: t, children: e, ...n }) => /* @__PURE__ */ a.jsxs(je, { ...n, children: [
|
|
2838
2838
|
t,
|
|
@@ -2855,7 +2855,7 @@ const qa = "_item_1dy8x_1", vn = {
|
|
|
2855
2855
|
}, [s]);
|
|
2856
2856
|
return nr(c, n), /* @__PURE__ */ a.jsx("div", { ref: c, className: w("luminus-app-search-dropdown shadow rounded", ie.dropdown, {
|
|
2857
2857
|
[ie.open]: t
|
|
2858
|
-
}), children: o ? /* @__PURE__ */ a.jsx("div", { className: ie.loadingContainer, children: /* @__PURE__ */ a.jsx(
|
|
2858
|
+
}), children: o ? /* @__PURE__ */ a.jsx("div", { className: ie.loadingContainer, children: /* @__PURE__ */ a.jsx(Je, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ a.jsx("div", { className: ie.groupsContainer, children: r == null ? void 0 : r.map((d) => {
|
|
2859
2859
|
var f;
|
|
2860
2860
|
return /* @__PURE__ */ a.jsxs("div", { className: w(ie.group), children: [
|
|
2861
2861
|
/* @__PURE__ */ a.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: w("group-header", ie.header), onClick: n, children: [
|
|
@@ -2876,7 +2876,7 @@ const qa = "_item_1dy8x_1", vn = {
|
|
|
2876
2876
|
onClick: n,
|
|
2877
2877
|
children: [
|
|
2878
2878
|
/* @__PURE__ */ a.jsx(V, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
|
|
2879
|
-
/* @__PURE__ */ a.jsx(V, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ a.jsx(
|
|
2879
|
+
/* @__PURE__ */ a.jsx(V, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ a.jsx(Nt, {}) })
|
|
2880
2880
|
]
|
|
2881
2881
|
},
|
|
2882
2882
|
h
|
|
@@ -2908,7 +2908,7 @@ const qa = "_item_1dy8x_1", vn = {
|
|
|
2908
2908
|
return M(() => {
|
|
2909
2909
|
c();
|
|
2910
2910
|
}, [c]), { isLoading: r, searchItems: s };
|
|
2911
|
-
},
|
|
2911
|
+
}, si = ({ searchTypes: t, navigateFunction: e }) => {
|
|
2912
2912
|
const { appSearchTexts: n } = F(de), [r, o] = D(t.length > 0 ? t[0] : null), [s, i] = D(""), [l, c] = yn(s, 500), { isLoading: u, searchItems: d } = hs(r, l), [f, m] = D(!1);
|
|
2913
2913
|
return M(() => {
|
|
2914
2914
|
(d.length > 0 || u) && m(!0);
|
|
@@ -2932,7 +2932,7 @@ const qa = "_item_1dy8x_1", vn = {
|
|
|
2932
2932
|
collapseIcon: xs,
|
|
2933
2933
|
collapsed: bs,
|
|
2934
2934
|
content: ys
|
|
2935
|
-
},
|
|
2935
|
+
}, ii = ({ title: t, headerContent: e, children: n, className: r, headerClassName: o, contentClassName: s, ...i }) => {
|
|
2936
2936
|
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] = D(l), d = i.collapsible ? i.controlled ? i.isOpen : c : !0;
|
|
2937
2937
|
return M(() => {
|
|
2938
2938
|
u(l);
|
|
@@ -2948,7 +2948,7 @@ const qa = "_item_1dy8x_1", vn = {
|
|
|
2948
2948
|
/* @__PURE__ */ a.jsx(V, { variant: "h6", className: "text-primary", children: t }),
|
|
2949
2949
|
e ?? null
|
|
2950
2950
|
] }),
|
|
2951
|
-
i.collapsible && /* @__PURE__ */ a.jsx(
|
|
2951
|
+
i.collapsible && /* @__PURE__ */ a.jsx($t, { className: w(pe.collapseIcon, {
|
|
2952
2952
|
[pe.collapsed]: d
|
|
2953
2953
|
}) })
|
|
2954
2954
|
] }),
|
|
@@ -2970,11 +2970,11 @@ const qa = "_item_1dy8x_1", vn = {
|
|
|
2970
2970
|
"photos-preview": "_photos-preview_1mwxl_49",
|
|
2971
2971
|
photosPreview: Os,
|
|
2972
2972
|
selected: Ss
|
|
2973
|
-
}, Ds = "_backdrop_1sik0_1", Es = "_show_1sik0_11",
|
|
2973
|
+
}, Ds = "_backdrop_1sik0_1", Es = "_show_1sik0_11", yt = {
|
|
2974
2974
|
backdrop: Ds,
|
|
2975
2975
|
show: Es
|
|
2976
|
-
}, _n = ({ show: t, onClick: e }) => /* @__PURE__ */ a.jsx("div", { className: w("luminus-backdrop",
|
|
2977
|
-
[
|
|
2976
|
+
}, _n = ({ show: t, onClick: e }) => /* @__PURE__ */ a.jsx("div", { className: w("luminus-backdrop", yt.backdrop, {
|
|
2977
|
+
[yt.show]: t
|
|
2978
2978
|
}), onClick: () => e && e() }), Ms = ({ show: t, onClose: e, photos: n, defaultIndex: r, uploadPhotosText: o, onUploadPhotos: s, photoActions: i }) => {
|
|
2979
2979
|
const l = W(null), [c, u] = D(r), d = n.at(c), f = c > 0, m = c < n.length - 1;
|
|
2980
2980
|
M(() => {
|
|
@@ -3004,7 +3004,7 @@ const qa = "_item_1dy8x_1", vn = {
|
|
|
3004
3004
|
/* @__PURE__ */ a.jsxs("div", { className: w("rounded", U.photoActions), children: [
|
|
3005
3005
|
s && /* @__PURE__ */ a.jsx(bn, { accept: ".jpg,.jpeg,.png", onUpload: (b) => {
|
|
3006
3006
|
b.length > 0 && s(Array.from(b));
|
|
3007
|
-
}, icon: /* @__PURE__ */ a.jsx(
|
|
3007
|
+
}, icon: /* @__PURE__ */ a.jsx(Ct, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
3008
3008
|
d && (i == null ? void 0 : i.map(({ label: b, onClick: x, ...g }, y) => /* @__PURE__ */ a.jsx(
|
|
3009
3009
|
xn,
|
|
3010
3010
|
{
|
|
@@ -3030,7 +3030,7 @@ const qa = "_item_1dy8x_1", vn = {
|
|
|
3030
3030
|
)) })
|
|
3031
3031
|
] })
|
|
3032
3032
|
] });
|
|
3033
|
-
},
|
|
3033
|
+
}, ci = ({ photos: t, onUploadPhotos: e, uploadPhotosText: n, photoActions: r }) => {
|
|
3034
3034
|
const [o, s] = D(null), i = o !== null ? t[o] : null, [l, c] = D(!1);
|
|
3035
3035
|
return M(() => {
|
|
3036
3036
|
if (t.length === 0) {
|
|
@@ -3053,18 +3053,18 @@ const qa = "_item_1dy8x_1", vn = {
|
|
|
3053
3053
|
/* @__PURE__ */ a.jsx(Ms, { show: l, onClose: () => c(!1), photos: t, defaultIndex: o ?? 0, uploadPhotosText: n, onUploadPhotos: e, photoActions: r })
|
|
3054
3054
|
] }) : e ? /* @__PURE__ */ a.jsx(bn, { accept: ".jpg,.jpeg,.png", onUpload: (u) => {
|
|
3055
3055
|
u.length > 0 && e(Array.from(u));
|
|
3056
|
-
}, icon: /* @__PURE__ */ a.jsx(
|
|
3057
|
-
},
|
|
3056
|
+
}, icon: /* @__PURE__ */ a.jsx(Ct, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : null;
|
|
3057
|
+
}, li = ({ heading: t, content: e, placement: n, children: r, trigger: o }) => /* @__PURE__ */ a.jsx(Un, { placement: n, overlay: /* @__PURE__ */ a.jsxs(Fe, { className: "luminus-tooltip", children: [
|
|
3058
3058
|
/* @__PURE__ */ a.jsx(Fe.Header, { as: "h3", children: t }),
|
|
3059
3059
|
/* @__PURE__ */ a.jsx(Fe.Body, { children: e })
|
|
3060
|
-
] }), trigger: o ?? "hover", rootClose: !0, children: r }), Is = "_floating-label_131i6_1", Ts = "_without-label_131i6_21",
|
|
3060
|
+
] }), trigger: o ?? "hover", rootClose: !0, children: r }), Is = "_floating-label_131i6_1", Ts = "_without-label_131i6_21", vt = {
|
|
3061
3061
|
"floating-label": "_floating-label_131i6_1",
|
|
3062
3062
|
floatingLabel: Is,
|
|
3063
3063
|
"without-label": "_without-label_131i6_21",
|
|
3064
3064
|
withoutLabel: Ts
|
|
3065
|
-
}, Ne =
|
|
3065
|
+
}, Ne = Ve(({ hidden: t, children: e, className: n, isInvalid: r, isForRadioInput: o, inputContainerClassName: s, isForCheckInput: i, ...l }, c) => i ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e }) : /* @__PURE__ */ a.jsx(ze, { ref: c, label: l.withoutLabel ? "" : l.label, hidden: t ?? !1, className: w(`luminus-floating-label ${n ?? ""}`, vt.floatingLabel, {
|
|
3066
3066
|
[s ?? ""]: s
|
|
3067
|
-
}, { [
|
|
3067
|
+
}, { [vt.withoutLabel]: l.withoutLabel }), children: e }));
|
|
3068
3068
|
Ne.displayName = "FloatingLabelInput";
|
|
3069
3069
|
const Ps = "_row-label-input_1je4a_1", Fs = "_label_1je4a_4", Ws = "_input-container_1je4a_9", Rs = "_keep-check-label_1je4a_56", Ls = "_is-invalid_1je4a_59", ve = {
|
|
3070
3070
|
"row-label-input": "_row-label-input_1je4a_1",
|
|
@@ -3076,17 +3076,19 @@ const Ps = "_row-label-input_1je4a_1", Fs = "_label_1je4a_4", Ws = "_input-conta
|
|
|
3076
3076
|
keepCheckLabel: Rs,
|
|
3077
3077
|
"is-invalid": "_is-invalid_1je4a_59",
|
|
3078
3078
|
isInvalid: Ls
|
|
3079
|
-
}, ae =
|
|
3079
|
+
}, ae = Ve(({ hidden: t, children: e, className: n, isInvalid: r, isForRadioInput: o, inputContainerClassName: s, ...i }, l) => /* @__PURE__ */ a.jsxs("div", { ref: l, className: w("luminus-row-label row gx-0 gy-0", { "is-invalid": r }, { [ve.isInvalid]: r }, { [n ?? ""]: n }, { "d-none": t }, ve.rowLabelInput), children: [
|
|
3080
3080
|
!i.withoutLabel && /* @__PURE__ */ a.jsx("label", { className: w("label col-6", ve.label), children: /* @__PURE__ */ a.jsx(V, { variant: "form-label", className: r ? "text-danger" : "", children: i.label }) }),
|
|
3081
3081
|
/* @__PURE__ */ a.jsx("div", { className: w("input-container", ve.inputContainer, { "col-6": !i.withoutLabel }, { "col-12": i.withoutLabel }, { [ve.keepCheckLabel]: o }, {
|
|
3082
3082
|
[s ?? ""]: s
|
|
3083
3083
|
}), children: e })
|
|
3084
3084
|
] }));
|
|
3085
3085
|
ae.displayName = "RowLabelInput";
|
|
3086
|
-
const
|
|
3086
|
+
const Ys = Ve(({ children: t, className: e, hidden: n, ...r }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, className: `${n ? "d-none" : ""} ${e}`, ...r, children: t }));
|
|
3087
|
+
Ys.displayName = "NoInputContainer";
|
|
3088
|
+
const ui = ({ InputContainer: t = Ne, label: e, value: n, onChange: r, hidden: o, disabled: s, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ a.jsx(t, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, children: /* @__PURE__ */ a.jsx(K.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: n, onChange: (u) => {
|
|
3087
3089
|
var d;
|
|
3088
3090
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3089
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: s ?? !1 }) }),
|
|
3091
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: s ?? !1 }) }), di = ({ InputContainer: t = Ne, type: e, value: n, onChange: r, debounceMs: o, label: s, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: f, clearValue: m, className: h }) => {
|
|
3090
3092
|
const b = e === "number", x = S(() => {
|
|
3091
3093
|
if (!r)
|
|
3092
3094
|
return;
|
|
@@ -3110,7 +3112,7 @@ const li = ({ InputContainer: t = Ne, label: e, value: n, onChange: r, hidden: o
|
|
|
3110
3112
|
/* @__PURE__ */ a.jsx(K.Control, { type: e, placeholder: l ?? s, size: c, value: o ? y : n ?? "", onChange: N, className: h ?? "", hidden: u, disabled: d ?? !1 }),
|
|
3111
3113
|
f && n && r && !d && /* @__PURE__ */ a.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ a.jsx(X, { color: "secondary", onClick: x, children: /* @__PURE__ */ a.jsx(we, {}) }) })
|
|
3112
3114
|
] });
|
|
3113
|
-
},
|
|
3115
|
+
}, fi = ({ InputContainer: t = Ne, value: e, options: n, onChange: r, label: o, withoutLabel: s, isNumber: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: f, noSortOptions: m, className: h }) => {
|
|
3114
3116
|
const b = S(() => {
|
|
3115
3117
|
if (!r)
|
|
3116
3118
|
return;
|
|
@@ -3130,7 +3132,7 @@ const li = ({ InputContainer: t = Ne, label: e, value: n, onChange: r, hidden: o
|
|
|
3130
3132
|
] }),
|
|
3131
3133
|
d && e && r && !u && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ a.jsx(X, { color: "secondary", onClick: b, children: /* @__PURE__ */ a.jsx(we, {}) }) })
|
|
3132
3134
|
] });
|
|
3133
|
-
},
|
|
3135
|
+
}, mi = ({ InputContainer: t = Ne, items: e, defaultSelection: n, onClickSelectedItem: r, onSearchQueryChange: o, texts: s, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: f, additionalColumns: m, hidden: h, disabled: b }) => {
|
|
3134
3136
|
var p;
|
|
3135
3137
|
const x = H(() => n, [n]), [g, y] = D(x), [j, _] = D(!1), N = S((k) => {
|
|
3136
3138
|
y(k);
|
|
@@ -3152,11 +3154,11 @@ const li = ({ InputContainer: t = Ne, label: e, value: n, onChange: r, hidden: o
|
|
|
3152
3154
|
x && /* @__PURE__ */ a.jsx("option", { value: x.id ?? void 0, children: x.name }),
|
|
3153
3155
|
g && /* @__PURE__ */ a.jsx("option", { value: g.id ?? void 0, children: g.name })
|
|
3154
3156
|
] }),
|
|
3155
|
-
/* @__PURE__ */ a.jsx(
|
|
3157
|
+
/* @__PURE__ */ a.jsx(Ze, { show: j, onCancel: () => _(!1), items: e, currentSelection: g, onSelectionChange: (k) => {
|
|
3156
3158
|
_(!1), N(k);
|
|
3157
3159
|
}, onClickSelectedItem: r, onSearchQueryChange: o, texts: s, additionalColumns: m, isLoading: i, disabled: b, inputRect: (p = v == null ? void 0 : v.current) == null ? void 0 : p.getBoundingClientRect() })
|
|
3158
3160
|
] }) });
|
|
3159
|
-
},
|
|
3161
|
+
}, hi = ({ InputContainer: t = ae, formField: e, label: n, resetsFields: r, type: o, required: s, hidden: i, disabled: l, withoutLabel: c }) => {
|
|
3160
3162
|
const { register: u, formState: d, setValue: f } = oe(), [m, h] = D(void 0);
|
|
3161
3163
|
M(() => {
|
|
3162
3164
|
const x = e.split(".");
|
|
@@ -3174,7 +3176,7 @@ const li = ({ InputContainer: t = Ne, label: e, value: n, onChange: r, hidden: o
|
|
|
3174
3176
|
}), isInvalid: b, hidden: i, disabled: l }),
|
|
3175
3177
|
m && /* @__PURE__ */ a.jsx(fe, { message: m.message })
|
|
3176
3178
|
] });
|
|
3177
|
-
},
|
|
3179
|
+
}, pi = ({ InputContainer: t = ae, label: e, formField: n, options: r, resetsFields: o, required: s, disabled: i, hidden: l }) => {
|
|
3178
3180
|
const { register: c, formState: u, getValues: d, setValue: f, watch: m } = oe(), [h, b] = D(void 0), x = H(() => r, [r]);
|
|
3179
3181
|
M(() => {
|
|
3180
3182
|
const y = n.split(".");
|
|
@@ -3194,7 +3196,7 @@ const li = ({ InputContainer: t = Ne, label: e, value: n, onChange: r, hidden: o
|
|
|
3194
3196
|
}), isInvalid: g, hidden: l, disabled: i }, y.id)),
|
|
3195
3197
|
h && /* @__PURE__ */ a.jsx(fe, { message: h.message })
|
|
3196
3198
|
] });
|
|
3197
|
-
},
|
|
3199
|
+
}, gi = ({ InputContainer: t = ae, formField: e, label: n, resetsFields: r, size: o, showClearIcon: s, clearValue: i, required: l, hidden: c, disabled: u, height: d, rows: f, withoutLabel: m }) => {
|
|
3198
3200
|
const { register: h, formState: b, setValue: x, watch: g } = oe(), [y, j] = D(void 0), _ = S(() => {
|
|
3199
3201
|
const p = i ?? null;
|
|
3200
3202
|
x(e, (p == null ? void 0 : p.toString()) ?? "");
|
|
@@ -3221,7 +3223,7 @@ const li = ({ InputContainer: t = Ne, label: e, value: n, onChange: r, hidden: o
|
|
|
3221
3223
|
s && g(e) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(X, { color: "secondary", onClick: _, children: /* @__PURE__ */ a.jsx(we, {}) }) }),
|
|
3222
3224
|
y && /* @__PURE__ */ a.jsx(fe, { message: y.message })
|
|
3223
3225
|
] });
|
|
3224
|
-
},
|
|
3226
|
+
}, wi = ({ InputContainer: t = ae, type: e, formField: n, label: r, placeholder: o, size: s, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: f, withoutLabel: m }) => {
|
|
3225
3227
|
const { register: h, formState: b, setValue: x, watch: g } = oe(), [y, j] = D(void 0), _ = S(() => {
|
|
3226
3228
|
const p = c ?? null;
|
|
3227
3229
|
e === "number" ? x(n, p !== null ? Number(p) : null) : x(n, (p == null ? void 0 : p.toString()) ?? "");
|
|
@@ -3246,7 +3248,7 @@ const li = ({ InputContainer: t = Ne, label: e, value: n, onChange: r, hidden: o
|
|
|
3246
3248
|
l && g(n) && /* @__PURE__ */ a.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ a.jsx(X, { color: "secondary", onClick: _, children: /* @__PURE__ */ a.jsx(we, {}) }) }),
|
|
3247
3249
|
y && /* @__PURE__ */ a.jsx(fe, { message: y.message })
|
|
3248
3250
|
] });
|
|
3249
|
-
},
|
|
3251
|
+
}, xi = ({ InputContainer: t = ae, formField: e, label: n, size: r, defaultSelection: o, resetsFields: s, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: f, onClickSelectedItem: m, texts: h, isLoading: b, withoutLabel: x, additionalColumns: g }) => {
|
|
3250
3252
|
var se;
|
|
3251
3253
|
const y = H(() => o, [o]), { register: j, formState: _, setValue: N } = oe(), [v, p] = D(y), [k, P] = D(void 0), [B, I] = D(!1), [C, E] = D(!1), L = S(() => {
|
|
3252
3254
|
const $ = e.split(".");
|
|
@@ -3285,11 +3287,11 @@ const li = ({ InputContainer: t = Ne, label: e, value: n, onChange: r, hidden: o
|
|
|
3285
3287
|
v && /* @__PURE__ */ a.jsx("option", { value: v.id ?? "", children: v.name })
|
|
3286
3288
|
] }),
|
|
3287
3289
|
k && /* @__PURE__ */ a.jsx(fe, { message: k.message }),
|
|
3288
|
-
/* @__PURE__ */ a.jsx(
|
|
3290
|
+
/* @__PURE__ */ a.jsx(Ze, { show: B, onCancel: () => I(!1), items: d, currentSelection: v, onSelectionChange: ($) => {
|
|
3289
3291
|
I(!1), q($);
|
|
3290
3292
|
}, onClickSelectedItem: m, onSearchQueryChange: f, texts: h, additionalColumns: g, isLoading: b, disabled: u, inputRect: (se = Q.current) == null ? void 0 : se.getBoundingClientRect() })
|
|
3291
3293
|
] }) });
|
|
3292
|
-
},
|
|
3294
|
+
}, bi = ({ InputContainer: t = ae, label: e, formField: n, hidden: r, required: o, placeholder: s, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: f }) => {
|
|
3293
3295
|
const { watch: m, setValue: h, register: b, formState: x } = oe(), [g, y] = D(void 0), j = S(() => {
|
|
3294
3296
|
h(n, "");
|
|
3295
3297
|
}, [h, n]), _ = S(() => {
|
|
@@ -3310,12 +3312,12 @@ const li = ({ InputContainer: t = Ne, label: e, value: n, onChange: r, hidden: o
|
|
|
3310
3312
|
l && m(n) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(X, { color: "secondary", onClick: j, children: /* @__PURE__ */ a.jsx(we, {}) }) }),
|
|
3311
3313
|
g && /* @__PURE__ */ a.jsx(fe, { message: g.message })
|
|
3312
3314
|
] });
|
|
3313
|
-
},
|
|
3315
|
+
}, yi = ({ children: t, onStorno: e }) => {
|
|
3314
3316
|
const { formState: n } = oe(), [r, o] = D(!1);
|
|
3315
3317
|
return M(() => {
|
|
3316
3318
|
o(Object.keys(n.dirtyFields).length > 0);
|
|
3317
3319
|
}, [n]), r ? /* @__PURE__ */ a.jsx(Jo, { onStorno: e, children: t }) : null;
|
|
3318
|
-
},
|
|
3320
|
+
}, vi = ({ InputContainer: t = ae, options: e, formField: n, label: r, size: o, resetsFields: s, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: f }) => {
|
|
3319
3321
|
var se;
|
|
3320
3322
|
const { customSelectTexts: m } = F(de), { register: h, formState: b, setValue: x, watch: g } = oe(), [y, j] = D(null), [_, N] = D(void 0), [v, p] = D(!1), [k, P] = D(!1), [B, I] = D(""), C = g(n);
|
|
3321
3323
|
M(() => {
|
|
@@ -3364,70 +3366,71 @@ const li = ({ InputContainer: t = Ne, label: e, value: n, onChange: r, hidden: o
|
|
|
3364
3366
|
y && /* @__PURE__ */ a.jsx("option", { value: y.id ?? "", children: y.name })
|
|
3365
3367
|
] }),
|
|
3366
3368
|
_ && /* @__PURE__ */ a.jsx(fe, { message: _.message }),
|
|
3367
|
-
/* @__PURE__ */ a.jsx(
|
|
3369
|
+
/* @__PURE__ */ a.jsx(Ze, { show: v, onCancel: () => p(!1), items: q, currentSelection: y, onSelectionChange: ($) => {
|
|
3368
3370
|
p(!1), L($);
|
|
3369
3371
|
}, onSearchQueryChange: ($) => I($), texts: m, disabled: u, inputRect: (se = Q.current) == null ? void 0 : se.getBoundingClientRect() })
|
|
3370
3372
|
] }) });
|
|
3371
|
-
},
|
|
3373
|
+
}, _i = ({ cell: { value: t } }) => /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsx(Jn, { name: t, size: 21, fontSize: 12 }) : /* @__PURE__ */ a.jsx(a.Fragment, {}) }), Bs = "_tab-panel_so0nf_1", As = "_full-height-no-overflow_so0nf_5", _t = {
|
|
3372
3374
|
"tab-panel": "_tab-panel_so0nf_1",
|
|
3373
|
-
tabPanel:
|
|
3375
|
+
tabPanel: Bs,
|
|
3374
3376
|
"full-height-no-overflow": "_full-height-no-overflow_so0nf_5",
|
|
3375
|
-
fullHeightNoOverflow:
|
|
3376
|
-
},
|
|
3377
|
+
fullHeightNoOverflow: As
|
|
3378
|
+
}, ji = ({ eventKey: t, activeTab: e, fullHeightNoOverflow: n, className: r, children: o }) => t !== e ? null : /* @__PURE__ */ a.jsx("div", { className: w("luminus-tab-panel", _t.tabPanel, { [_t.fullHeightNoOverflow]: n }, r), children: o }), ki = ({ activeTab: t, onSelect: e, children: n }) => /* @__PURE__ */ a.jsx("div", { className: w("luminus-tabs d-flex gap-1 mb-2"), children: n.map((r) => {
|
|
3377
3379
|
const o = r.type, s = r.props.eventKey, i = r.props.children, l = r.props.className, c = r.props.onClick;
|
|
3378
3380
|
return /* @__PURE__ */ Zn(o, { ...r.props, key: r.props.eventKey, className: w({ active: t === s }, l), onClick: () => {
|
|
3379
3381
|
e(s), c && c(s);
|
|
3380
3382
|
} }, i);
|
|
3381
|
-
}) }),
|
|
3382
|
-
tab:
|
|
3383
|
-
},
|
|
3383
|
+
}) }), Hs = "_tab_gvohp_1", Gs = {
|
|
3384
|
+
tab: Hs
|
|
3385
|
+
}, $i = ({ eventKey: t, className: e, onClick: n, children: r }) => /* @__PURE__ */ a.jsx("div", { role: "button", className: w("luminus-tab text-primary rounded", Gs.tab, e), onClick: () => n && n(t), children: typeof r == "string" ? /* @__PURE__ */ a.jsx(V, { variant: "h6", className: "text-primary", children: r }) : r });
|
|
3384
3386
|
export {
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
+
Js as ApiFileDownloadButton,
|
|
3388
|
+
si as AppSearch,
|
|
3387
3389
|
Jn as AvatarIcon,
|
|
3388
3390
|
_n as Backdrop,
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3391
|
+
ni as Badge,
|
|
3392
|
+
ii as Card,
|
|
3393
|
+
ui as CheckInput,
|
|
3394
|
+
ri as Collapse,
|
|
3393
3395
|
xn as ContextButton,
|
|
3394
3396
|
Ja as Dropdown,
|
|
3395
|
-
|
|
3397
|
+
ai as DropdownDivider,
|
|
3396
3398
|
Va as DropdownItem,
|
|
3397
|
-
|
|
3399
|
+
mi as DropdownPicker,
|
|
3398
3400
|
Qa as DropdownToggle,
|
|
3399
3401
|
bn as FileUploadContextButton,
|
|
3400
|
-
|
|
3402
|
+
oi as FileUploadDropdownItem,
|
|
3401
3403
|
Jo as FloatingFormSubmit,
|
|
3402
3404
|
Ne as FloatingLabelInput,
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3405
|
+
ti as HomeDashboard,
|
|
3406
|
+
hi as HookFormCheckInput,
|
|
3407
|
+
xi as HookFormDropdownPicker,
|
|
3408
|
+
bi as HookFormFileInput,
|
|
3409
|
+
yi as HookFormFloatingSubmit,
|
|
3410
|
+
pi as HookFormRadioInput,
|
|
3411
|
+
vi as HookFormSelectInput,
|
|
3412
|
+
gi as HookFormTextAreaInput,
|
|
3413
|
+
wi as HookFormTextInput,
|
|
3414
|
+
li as HtmlTooltip,
|
|
3413
3415
|
X as IconButton,
|
|
3414
3416
|
fe as InvalidFeedback,
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3417
|
+
Di as Loading,
|
|
3418
|
+
Zs as MonthPicker,
|
|
3419
|
+
Ys as NoInputContainer,
|
|
3420
|
+
ci as PhotoLibrary,
|
|
3418
3421
|
Ms as PhotoLightbox,
|
|
3419
|
-
|
|
3422
|
+
mt as PrimaryButton,
|
|
3420
3423
|
ae as RowLabelInput,
|
|
3421
|
-
|
|
3422
|
-
|
|
3424
|
+
fi as SelectInput,
|
|
3425
|
+
Ze as SimplePicker,
|
|
3423
3426
|
Xn as SimpleToggle,
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3427
|
+
Mi as SimpleTooltip,
|
|
3428
|
+
$i as Tab,
|
|
3429
|
+
ji as TabPanel,
|
|
3430
|
+
ki as Tabs,
|
|
3431
|
+
di as TextInput,
|
|
3429
3432
|
V as Typography,
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
+
Oi as UserAvatarToggle,
|
|
3434
|
+
_i as UserAvatarValueFormat,
|
|
3435
|
+
ei as YearPicker
|
|
3433
3436
|
};
|