react-luminus-components 1.3.11 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/common/AppSearch/comps/TypeSelector/TypeSelector.d.ts +1 -1
- package/dist/hooks/useGetApiData/useGetApiData.d.ts +2 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +332 -324
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +409 -408
- package/dist/models/index.d.ts +1 -0
- package/dist/models/types/UseGetApiDataOptions.d.ts +6 -0
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as s, c as w, t as ee, a as se, g as xr, T as
|
|
1
|
+
import { j as s, c as w, t as ee, a as se, g as xr, T as yr, b as vr, s as kt, E as br, d as _r, e as jr, f as kr, h as Nr, u as B, i as fe, k as Jt, F as Nt, l as Cr, m as $r, n as Ir, o as Sr, p as Tr, q as Er, r as Or, v as Dr, w as dt, x as Zt, y as Pr, z as Ar, A as _e, B as Mr, C as Fr, P as be, D as en, S as Ct, G as Me, H as ht, I as Wr, J as tn, K as Se, L as Ye, O as $t, M as Rr, N as Lr, Q as ae, R as Yr, U as qr, V as nn, W as ft, X as mt, Y as U, Z as Hr, _ as rn, $ as Br, a0 as on, a1 as pt, a2 as Vr, a3 as Gr, a4 as sn, a5 as an, a6 as ce, a7 as Ur, a8 as zr, a9 as Kr, aa as Qr, ab as Xr, ac as cn, ad as Jr, ae as Zr, af as Je, ag as Ne, ah as ln, ai as me } from "./NoInputContainer-DPjgKLR8.js";
|
|
2
2
|
import { ak as tu, aj as nu } from "./NoInputContainer-DPjgKLR8.js";
|
|
3
3
|
import * as R from "react";
|
|
4
|
-
import Z, { useCallback as T, useMemo as
|
|
4
|
+
import Z, { useCallback as T, useMemo as G, useEffect as O, useRef as q, useState as D, useReducer as un, useContext as L, Component as eo, isValidElement as to, Suspense as no, createElement as ro } from "react";
|
|
5
5
|
import { c as de, d as oo, C as so, a as dn, u as ao, q as It, F as io, b as hn, E as Fe, P as St, M as We, L as Tt } from "./PrimaryButton-B9eaaCaE.js";
|
|
6
6
|
import { m as co, a as fn } from "./latinize-BQrinury.js";
|
|
7
7
|
import { useFormContext as le, Controller as mn } from "react-hook-form";
|
|
@@ -51,7 +51,7 @@ function Ee(t, e) {
|
|
|
51
51
|
function He(t) {
|
|
52
52
|
return Ee(t, { weekStartsOn: 1 });
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function yn(t) {
|
|
55
55
|
const e = ee(t), n = e.getFullYear(), r = se(t, 0);
|
|
56
56
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
57
57
|
const o = He(r), a = se(t, 0);
|
|
@@ -82,7 +82,7 @@ function fo(t, e) {
|
|
|
82
82
|
return Math.round((o - a) / co);
|
|
83
83
|
}
|
|
84
84
|
function mo(t) {
|
|
85
|
-
const e =
|
|
85
|
+
const e = yn(t), n = se(t, 0);
|
|
86
86
|
return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), He(n);
|
|
87
87
|
}
|
|
88
88
|
function po(t, e) {
|
|
@@ -101,11 +101,11 @@ function xo(t) {
|
|
|
101
101
|
const e = ee(t);
|
|
102
102
|
return !isNaN(Number(e));
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function yo(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
|
}
|
|
108
|
-
const
|
|
108
|
+
const vo = {
|
|
109
109
|
lessThanXSeconds: {
|
|
110
110
|
one: "less than a second",
|
|
111
111
|
other: "less than {{count}} seconds"
|
|
@@ -169,7 +169,7 @@ const yo = {
|
|
|
169
169
|
}
|
|
170
170
|
}, bo = (t, e, n) => {
|
|
171
171
|
let r;
|
|
172
|
-
const o =
|
|
172
|
+
const o = vo[t];
|
|
173
173
|
return typeof o == "string" ? r = o : e === 1 ? r = o.one : r = o.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
174
174
|
};
|
|
175
175
|
function Ze(t) {
|
|
@@ -540,15 +540,15 @@ const Ro = /^(\d+)(th|st|nd|rd)?/i, Lo = /\d+/i, Yo = {
|
|
|
540
540
|
};
|
|
541
541
|
function Zo(t) {
|
|
542
542
|
const e = ee(t);
|
|
543
|
-
return fo(e,
|
|
543
|
+
return fo(e, yo(e)) + 1;
|
|
544
544
|
}
|
|
545
545
|
function es(t) {
|
|
546
546
|
const e = ee(t), n = +He(e) - +mo(e);
|
|
547
547
|
return Math.round(n / fn) + 1;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
var d, h, p,
|
|
551
|
-
const n = ee(t), r = n.getFullYear(), o = Ue(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((
|
|
549
|
+
function vn(t, e) {
|
|
550
|
+
var d, h, p, g;
|
|
551
|
+
const n = ee(t), r = n.getFullYear(), o = Ue(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((g = (p = o.locale) == null ? void 0 : p.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = se(t, 0);
|
|
552
552
|
i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
553
553
|
const l = Ee(i, e), c = se(t, 0);
|
|
554
554
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
@@ -557,7 +557,7 @@ function yn(t, e) {
|
|
|
557
557
|
}
|
|
558
558
|
function ts(t, e) {
|
|
559
559
|
var l, c, u, d;
|
|
560
|
-
const n = Ue(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o =
|
|
560
|
+
const n = Ue(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = vn(t, e), a = se(t, 0);
|
|
561
561
|
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), Ee(a, e);
|
|
562
562
|
}
|
|
563
563
|
function ns(t, e) {
|
|
@@ -657,7 +657,7 @@ const he = {
|
|
|
657
657
|
},
|
|
658
658
|
// Local week-numbering year
|
|
659
659
|
Y: function(t, e, n, r) {
|
|
660
|
-
const o =
|
|
660
|
+
const o = vn(t, r), a = o > 0 ? o : 1 - o;
|
|
661
661
|
if (e === "YY") {
|
|
662
662
|
const i = a % 100;
|
|
663
663
|
return Y(i, 2);
|
|
@@ -666,7 +666,7 @@ const he = {
|
|
|
666
666
|
},
|
|
667
667
|
// ISO week-numbering year
|
|
668
668
|
R: function(t, e) {
|
|
669
|
-
const n =
|
|
669
|
+
const n = yn(t);
|
|
670
670
|
return Y(n, e.length);
|
|
671
671
|
},
|
|
672
672
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -1060,11 +1060,11 @@ const he = {
|
|
|
1060
1060
|
return At(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 At(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" + Pt(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" + Pt(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 Pt(t, e = "") {
|
|
|
1124
1124
|
return a === 0 ? n + String(o) : n + String(o) + e + Y(a, 2);
|
|
1125
1125
|
}
|
|
1126
1126
|
function At(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,8 +1196,8 @@ function ds(t, e, n) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
const hs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ms = /^'([^]*?)'?$/, ps = /''/g, gs = /[a-zA-Z]/;
|
|
1198
1198
|
function st(t, e, n) {
|
|
1199
|
-
var d, h, p,
|
|
1200
|
-
const r = Ue(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Jo, 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 ?? ((
|
|
1199
|
+
var d, h, p, g, y, b, m, v;
|
|
1200
|
+
const r = Ue(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Jo, 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 ?? ((g = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((b = (y = n == null ? void 0 : n.locale) == null ? void 0 : y.options) == null ? void 0 : b.weekStartsOn) ?? r.weekStartsOn ?? ((v = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : v.weekStartsOn) ?? 0, l = ee(t);
|
|
1201
1201
|
if (!xo(l))
|
|
1202
1202
|
throw new RangeError("Invalid time value");
|
|
1203
1203
|
let c = e.match(fs).map((k) => {
|
|
@@ -1244,7 +1244,7 @@ function xs(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 ys(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
1250
|
const i = xs(a);
|
|
@@ -1254,7 +1254,7 @@ function _n(t, e) {
|
|
|
1254
1254
|
const n = ee(t);
|
|
1255
1255
|
return isNaN(+n) ? se(t, NaN) : (n.setFullYear(e), n);
|
|
1256
1256
|
}
|
|
1257
|
-
var
|
|
1257
|
+
var vs = function(t, e, n, r, o, a, i, l) {
|
|
1258
1258
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
1259
1259
|
throw new Error("invariant requires an error message argument");
|
|
1260
1260
|
if (!t) {
|
|
@@ -1273,7 +1273,7 @@ var ys = function(t, e, n, r, o, a, i, l) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
throw c.framesToPop = 1, c;
|
|
1275
1275
|
}
|
|
1276
|
-
}, bs =
|
|
1276
|
+
}, bs = vs;
|
|
1277
1277
|
const Ft = /* @__PURE__ */ xr(bs);
|
|
1278
1278
|
function Ie(...t) {
|
|
1279
1279
|
return t.filter((e) => e != null).reduce((e, n) => {
|
|
@@ -1313,27 +1313,27 @@ const ks = {
|
|
|
1313
1313
|
mountOnEnter: d = !1,
|
|
1314
1314
|
unmountOnExit: h = !1,
|
|
1315
1315
|
appear: p = !1,
|
|
1316
|
-
getDimensionValue:
|
|
1317
|
-
...
|
|
1318
|
-
},
|
|
1319
|
-
const
|
|
1320
|
-
x.style[
|
|
1321
|
-
}, t), [
|
|
1322
|
-
const C = `scroll${
|
|
1323
|
-
x.style[
|
|
1324
|
-
}, e), [
|
|
1325
|
-
x.style[
|
|
1326
|
-
}, n), [
|
|
1327
|
-
x.style[
|
|
1328
|
-
}, r), [r,
|
|
1329
|
-
x.style[
|
|
1330
|
-
}, o), [
|
|
1331
|
-
return /* @__PURE__ */ s.jsx(
|
|
1332
|
-
ref:
|
|
1333
|
-
addEndListener:
|
|
1334
|
-
...
|
|
1335
|
-
"aria-expanded":
|
|
1336
|
-
onEnter:
|
|
1316
|
+
getDimensionValue: g = js,
|
|
1317
|
+
...y
|
|
1318
|
+
}, b) => {
|
|
1319
|
+
const m = typeof l == "function" ? l() : l, v = G(() => Ie((x) => {
|
|
1320
|
+
x.style[m] = "0";
|
|
1321
|
+
}, t), [m, t]), k = G(() => Ie((x) => {
|
|
1322
|
+
const C = `scroll${m[0].toUpperCase()}${m.slice(1)}`;
|
|
1323
|
+
x.style[m] = `${x[C]}px`;
|
|
1324
|
+
}, e), [m, e]), f = G(() => Ie((x) => {
|
|
1325
|
+
x.style[m] = null;
|
|
1326
|
+
}, n), [m, n]), N = G(() => Ie((x) => {
|
|
1327
|
+
x.style[m] = `${g(m, x)}px`, Nr(x);
|
|
1328
|
+
}, r), [r, g, m]), j = G(() => Ie((x) => {
|
|
1329
|
+
x.style[m] = null;
|
|
1330
|
+
}, o), [m, o]);
|
|
1331
|
+
return /* @__PURE__ */ s.jsx(yr, {
|
|
1332
|
+
ref: b,
|
|
1333
|
+
addEndListener: vr,
|
|
1334
|
+
...y,
|
|
1335
|
+
"aria-expanded": y.role ? c : null,
|
|
1336
|
+
onEnter: v,
|
|
1337
1337
|
onEntering: k,
|
|
1338
1338
|
onEntered: f,
|
|
1339
1339
|
onExit: N,
|
|
@@ -1346,7 +1346,7 @@ const ks = {
|
|
|
1346
1346
|
appear: p,
|
|
1347
1347
|
children: (x, C) => /* @__PURE__ */ Z.cloneElement(i, {
|
|
1348
1348
|
...C,
|
|
1349
|
-
className: w(a, i.props.className, ks[x],
|
|
1349
|
+
className: w(a, i.props.className, ks[x], m === "width" && "collapse-horizontal")
|
|
1350
1350
|
})
|
|
1351
1351
|
});
|
|
1352
1352
|
}), kn = oo("h4");
|
|
@@ -1498,26 +1498,26 @@ const In = /* @__PURE__ */ R.forwardRef((t, e) => {
|
|
|
1498
1498
|
...p
|
|
1499
1499
|
} = Jt(t, {
|
|
1500
1500
|
show: "onClose"
|
|
1501
|
-
}),
|
|
1502
|
-
u && u(!1,
|
|
1503
|
-
}),
|
|
1501
|
+
}), g = B(n, "alert"), y = fe((v) => {
|
|
1502
|
+
u && u(!1, v);
|
|
1503
|
+
}), b = h === !0 ? Nt : h, m = /* @__PURE__ */ s.jsxs("div", {
|
|
1504
1504
|
role: "alert",
|
|
1505
|
-
...
|
|
1505
|
+
...b ? void 0 : p,
|
|
1506
1506
|
ref: e,
|
|
1507
|
-
className: w(i,
|
|
1507
|
+
className: w(i, g, c && `${g}-${c}`, d && `${g}-dismissible`),
|
|
1508
1508
|
children: [d && /* @__PURE__ */ s.jsx(so, {
|
|
1509
|
-
onClick:
|
|
1509
|
+
onClick: y,
|
|
1510
1510
|
"aria-label": o,
|
|
1511
1511
|
variant: a
|
|
1512
1512
|
}), l]
|
|
1513
1513
|
});
|
|
1514
|
-
return
|
|
1514
|
+
return b ? /* @__PURE__ */ s.jsx(b, {
|
|
1515
1515
|
unmountOnExit: !0,
|
|
1516
1516
|
...p,
|
|
1517
1517
|
ref: void 0,
|
|
1518
1518
|
in: r,
|
|
1519
|
-
children:
|
|
1520
|
-
}) : r ?
|
|
1519
|
+
children: m
|
|
1520
|
+
}) : r ? m : null;
|
|
1521
1521
|
});
|
|
1522
1522
|
In.displayName = "Alert";
|
|
1523
1523
|
const Os = Object.assign(In, {
|
|
@@ -1569,8 +1569,8 @@ function Ps({
|
|
|
1569
1569
|
offset: h,
|
|
1570
1570
|
order: p
|
|
1571
1571
|
} = u : d = u;
|
|
1572
|
-
const
|
|
1573
|
-
d && i.push(d === !0 ? `${e}${
|
|
1572
|
+
const g = c !== a ? `-${c}` : "";
|
|
1573
|
+
d && i.push(d === !0 ? `${e}${g}` : `${e}${g}-${d}`), p != null && l.push(`order${g}-${p}`), h != null && l.push(`offset${g}-${h}`);
|
|
1574
1574
|
}), [{
|
|
1575
1575
|
...r,
|
|
1576
1576
|
className: w(n, ...i, ...l)
|
|
@@ -1632,32 +1632,32 @@ function En(t = {}) {
|
|
|
1632
1632
|
popperConfig: d = {},
|
|
1633
1633
|
enableEventListeners: h = !0,
|
|
1634
1634
|
usePopper: p = !!e
|
|
1635
|
-
} = t,
|
|
1636
|
-
|
|
1637
|
-
const
|
|
1635
|
+
} = t, g = (e == null ? void 0 : e.show) == null ? !!t.show : e.show;
|
|
1636
|
+
g && !o.current && (o.current = !0);
|
|
1637
|
+
const y = (x) => {
|
|
1638
1638
|
e == null || e.toggle(!1, x);
|
|
1639
1639
|
}, {
|
|
1640
|
-
placement:
|
|
1641
|
-
setMenu:
|
|
1642
|
-
menuElement:
|
|
1640
|
+
placement: b,
|
|
1641
|
+
setMenu: m,
|
|
1642
|
+
menuElement: v,
|
|
1643
1643
|
toggleElement: k
|
|
1644
|
-
} = e || {}, f = Sr(k,
|
|
1645
|
-
placement: u ||
|
|
1644
|
+
} = e || {}, f = Sr(k, v, Tr({
|
|
1645
|
+
placement: u || b || "bottom-start",
|
|
1646
1646
|
enabled: p,
|
|
1647
|
-
enableEvents: h ??
|
|
1647
|
+
enableEvents: h ?? g,
|
|
1648
1648
|
offset: i,
|
|
1649
1649
|
flip: a,
|
|
1650
1650
|
fixed: c,
|
|
1651
1651
|
arrowElement: n,
|
|
1652
1652
|
popperConfig: d
|
|
1653
1653
|
})), N = Object.assign({
|
|
1654
|
-
ref:
|
|
1654
|
+
ref: m || Rs,
|
|
1655
1655
|
"aria-labelledby": k == null ? void 0 : k.id
|
|
1656
1656
|
}, f.attributes.popper, {
|
|
1657
1657
|
style: f.styles.popper
|
|
1658
1658
|
}), j = {
|
|
1659
|
-
show:
|
|
1660
|
-
placement:
|
|
1659
|
+
show: g,
|
|
1660
|
+
placement: b,
|
|
1661
1661
|
hasShown: o.current,
|
|
1662
1662
|
toggle: e == null ? void 0 : e.toggle,
|
|
1663
1663
|
popper: p ? f : null,
|
|
@@ -1667,9 +1667,9 @@ function En(t = {}) {
|
|
|
1667
1667
|
style: f.styles.arrow
|
|
1668
1668
|
}) : {}
|
|
1669
1669
|
};
|
|
1670
|
-
return Er(
|
|
1670
|
+
return Er(v, y, {
|
|
1671
1671
|
clickTrigger: l,
|
|
1672
|
-
disabled: !
|
|
1672
|
+
disabled: !g
|
|
1673
1673
|
}), [N, j];
|
|
1674
1674
|
}
|
|
1675
1675
|
function On(t) {
|
|
@@ -1831,25 +1831,25 @@ function De({
|
|
|
1831
1831
|
placement: i = "bottom-start",
|
|
1832
1832
|
children: l
|
|
1833
1833
|
}) {
|
|
1834
|
-
const c = Or(), [u, d] = As(e, t, r), [h, p] = Lt(),
|
|
1834
|
+
const c = Or(), [u, d] = As(e, t, r), [h, p] = Lt(), g = h.current, [y, b] = Lt(), m = y.current, v = ao(u), k = q(null), f = q(!1), N = L(at), j = T((_, $, F = $ == null ? void 0 : $.type) => {
|
|
1835
1835
|
d(_, {
|
|
1836
1836
|
originalEvent: $,
|
|
1837
1837
|
source: F
|
|
1838
1838
|
});
|
|
1839
1839
|
}, [d]), x = fe((_, $) => {
|
|
1840
1840
|
n == null || n(_, $), j(!1, $, "select"), $.isPropagationStopped() || N == null || N(_, $);
|
|
1841
|
-
}), C =
|
|
1841
|
+
}), C = G(() => ({
|
|
1842
1842
|
toggle: j,
|
|
1843
1843
|
placement: i,
|
|
1844
1844
|
show: u,
|
|
1845
|
-
menuElement:
|
|
1846
|
-
toggleElement:
|
|
1845
|
+
menuElement: g,
|
|
1846
|
+
toggleElement: m,
|
|
1847
1847
|
setMenu: p,
|
|
1848
|
-
setToggle:
|
|
1849
|
-
}), [j, i, u,
|
|
1850
|
-
|
|
1848
|
+
setToggle: b
|
|
1849
|
+
}), [j, i, u, g, m, p, b]);
|
|
1850
|
+
g && v && !u && (f.current = g.contains(g.ownerDocument.activeElement));
|
|
1851
1851
|
const P = fe(() => {
|
|
1852
|
-
|
|
1852
|
+
m && m.focus && m.focus();
|
|
1853
1853
|
}), I = fe(() => {
|
|
1854
1854
|
const _ = k.current;
|
|
1855
1855
|
let $ = a;
|
|
@@ -1874,8 +1874,8 @@ function De({
|
|
|
1874
1874
|
var $, F;
|
|
1875
1875
|
const {
|
|
1876
1876
|
key: W
|
|
1877
|
-
} = _, te = _.target,
|
|
1878
|
-
if (/input|textarea/i.test(te.tagName) && (W === " " || W !== "Escape" &&
|
|
1877
|
+
} = _, te = _.target, K = ($ = h.current) == null ? void 0 : $.contains(te), A = (F = y.current) == null ? void 0 : F.contains(te);
|
|
1878
|
+
if (/input|textarea/i.test(te.tagName) && (W === " " || W !== "Escape" && K || W === "Escape" && te.type === "search") || !K && !A || W === "Tab" && (!h.current || !u))
|
|
1879
1879
|
return;
|
|
1880
1880
|
k.current = _.type;
|
|
1881
1881
|
const ne = {
|
|
@@ -2016,23 +2016,23 @@ const Un = /* @__PURE__ */ R.forwardRef(({
|
|
|
2016
2016
|
...d
|
|
2017
2017
|
}, h) => {
|
|
2018
2018
|
let p = !1;
|
|
2019
|
-
const
|
|
2020
|
-
align:
|
|
2021
|
-
drop:
|
|
2022
|
-
isRTL:
|
|
2019
|
+
const g = L(Bn), y = B(t, "dropdown-menu"), {
|
|
2020
|
+
align: b,
|
|
2021
|
+
drop: m,
|
|
2022
|
+
isRTL: v
|
|
2023
2023
|
} = L(xt);
|
|
2024
|
-
n = n ||
|
|
2024
|
+
n = n || b;
|
|
2025
2025
|
const k = L(Ke), 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" && Zt(_.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), _.length) {
|
|
2030
2030
|
const $ = _[0], F = n[$];
|
|
2031
|
-
p = F === "start", f.push(`${
|
|
2031
|
+
p = F === "start", f.push(`${y}-${$}-${F}`);
|
|
2032
2032
|
}
|
|
2033
2033
|
} else
|
|
2034
2034
|
n === "end" && (p = !0);
|
|
2035
|
-
const N = Gn(p,
|
|
2035
|
+
const N = Gn(p, m, v), [j, {
|
|
2036
2036
|
hasShown: x,
|
|
2037
2037
|
popper: C,
|
|
2038
2038
|
show: P,
|
|
@@ -2041,7 +2041,7 @@ const Un = /* @__PURE__ */ R.forwardRef(({
|
|
|
2041
2041
|
flip: o,
|
|
2042
2042
|
rootCloseEvent: r,
|
|
2043
2043
|
show: a,
|
|
2044
|
-
usePopper: !
|
|
2044
|
+
usePopper: !g && f.length === 0,
|
|
2045
2045
|
offset: [0, 2],
|
|
2046
2046
|
popperConfig: c,
|
|
2047
2047
|
placement: N
|
|
@@ -2059,10 +2059,10 @@ const Un = /* @__PURE__ */ R.forwardRef(({
|
|
|
2059
2059
|
...d,
|
|
2060
2060
|
...j,
|
|
2061
2061
|
style: S,
|
|
2062
|
-
...(f.length ||
|
|
2062
|
+
...(f.length || g) && {
|
|
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
|
Un.displayName = "DropdownMenu";
|
|
@@ -2099,19 +2099,19 @@ const Kn = /* @__PURE__ */ R.forwardRef((t, e) => {
|
|
|
2099
2099
|
as: d = "div",
|
|
2100
2100
|
navbar: h,
|
|
2101
2101
|
autoClose: p = !0,
|
|
2102
|
-
...
|
|
2102
|
+
...g
|
|
2103
2103
|
} = Jt(t, {
|
|
2104
2104
|
show: "onToggle"
|
|
2105
|
-
}),
|
|
2105
|
+
}), y = L(Ke), b = B(n, "dropdown"), m = Ar(), v = (C) => p === !1 ? C === "click" : p === "inside" ? C !== "rootClose" : p === "outside" ? C !== "select" : !0, k = fe((C, P) => {
|
|
2106
2106
|
var I, S;
|
|
2107
|
-
!((I = P.originalEvent) == null || (S = I.target) == null) && S.classList.contains("dropdown-toggle") && P.source === "mousedown" || (P.originalEvent.currentTarget === document && (P.source !== "keydown" || P.originalEvent.key === "Escape") && (P.source = "rootClose"),
|
|
2108
|
-
}), N = Gn(i === "end", r,
|
|
2107
|
+
!((I = P.originalEvent) == null || (S = I.target) == null) && S.classList.contains("dropdown-toggle") && P.source === "mousedown" || (P.originalEvent.currentTarget === document && (P.source !== "keydown" || P.originalEvent.key === "Escape") && (P.source = "rootClose"), v(P.source) && (c == null || c(C, P)));
|
|
2108
|
+
}), N = Gn(i === "end", r, m), j = G(() => ({
|
|
2109
2109
|
align: i,
|
|
2110
2110
|
drop: r,
|
|
2111
|
-
isRTL:
|
|
2112
|
-
}), [i, r,
|
|
2113
|
-
down:
|
|
2114
|
-
"down-centered": `${
|
|
2111
|
+
isRTL: m
|
|
2112
|
+
}), [i, r, m]), x = {
|
|
2113
|
+
down: b,
|
|
2114
|
+
"down-centered": `${b}-center`,
|
|
2115
2115
|
up: "dropup",
|
|
2116
2116
|
"up-centered": "dropup-center dropup",
|
|
2117
2117
|
end: "dropend",
|
|
@@ -2125,9 +2125,9 @@ const Kn = /* @__PURE__ */ R.forwardRef((t, e) => {
|
|
|
2125
2125
|
onSelect: l,
|
|
2126
2126
|
onToggle: k,
|
|
2127
2127
|
focusFirstItemOnShow: u,
|
|
2128
|
-
itemSelector: `.${
|
|
2129
|
-
children:
|
|
2130
|
-
...
|
|
2128
|
+
itemSelector: `.${b}-item:not(.disabled):not(:disabled)`,
|
|
2129
|
+
children: y ? g.children : /* @__PURE__ */ s.jsx(d, {
|
|
2130
|
+
...g,
|
|
2131
2131
|
ref: e,
|
|
2132
2132
|
className: w(a, o && "show", x[r])
|
|
2133
2133
|
})
|
|
@@ -2196,37 +2196,37 @@ const Qn = /* @__PURE__ */ R.forwardRef(({
|
|
|
2196
2196
|
feedbackType: d,
|
|
2197
2197
|
className: h,
|
|
2198
2198
|
style: p,
|
|
2199
|
-
title:
|
|
2200
|
-
type:
|
|
2201
|
-
label:
|
|
2202
|
-
children:
|
|
2199
|
+
title: g = "",
|
|
2200
|
+
type: y = "checkbox",
|
|
2201
|
+
label: b,
|
|
2202
|
+
children: m,
|
|
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
|
-
as:
|
|
2204
|
+
as: v = "input",
|
|
2205
2205
|
...k
|
|
2206
2206
|
}, f) => {
|
|
2207
2207
|
e = B(e, "form-check"), n = B(n, "form-switch");
|
|
2208
2208
|
const {
|
|
2209
2209
|
controlId: N
|
|
2210
|
-
} = L(_e), j =
|
|
2210
|
+
} = L(_e), j = G(() => ({
|
|
2211
2211
|
controlId: t || N
|
|
2212
|
-
}), [N, t]), x = !
|
|
2212
|
+
}), [N, t]), x = !m && b != null && b !== !1 || Ds(m, 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,
|
|
2218
2218
|
disabled: a,
|
|
2219
|
-
as:
|
|
2219
|
+
as: v
|
|
2220
2220
|
});
|
|
2221
2221
|
return /* @__PURE__ */ s.jsx(_e.Provider, {
|
|
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`,
|
|
2226
|
-
children:
|
|
2225
|
+
className: w(h, x && e, r && `${e}-inline`, o && `${e}-reverse`, y === "switch" && n),
|
|
2226
|
+
children: m || /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
2227
2227
|
children: [C, x && /* @__PURE__ */ s.jsx(Ve, {
|
|
2228
|
-
title:
|
|
2229
|
-
children:
|
|
2228
|
+
title: g,
|
|
2229
|
+
children: b
|
|
2230
2230
|
}), u && /* @__PURE__ */ s.jsx(io, {
|
|
2231
2231
|
type: d,
|
|
2232
2232
|
tooltip: c,
|
|
@@ -2365,7 +2365,7 @@ const Js = Object.assign(nr, {
|
|
|
2365
2365
|
*/
|
|
2366
2366
|
validated: be.bool,
|
|
2367
2367
|
as: be.elementType
|
|
2368
|
-
},
|
|
2368
|
+
}, yt = /* @__PURE__ */ R.forwardRef(({
|
|
2369
2369
|
className: t,
|
|
2370
2370
|
validated: e,
|
|
2371
2371
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -2376,9 +2376,9 @@ const Js = Object.assign(nr, {
|
|
|
2376
2376
|
ref: o,
|
|
2377
2377
|
className: w(t, e && "was-validated")
|
|
2378
2378
|
}));
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
const Q = Object.assign(
|
|
2379
|
+
yt.displayName = "Form";
|
|
2380
|
+
yt.propTypes = Zs;
|
|
2381
|
+
const Q = Object.assign(yt, {
|
|
2382
2382
|
Group: Mr,
|
|
2383
2383
|
Control: hn,
|
|
2384
2384
|
Floating: Xn,
|
|
@@ -2420,7 +2420,7 @@ const ea = (t) => /* @__PURE__ */ s.jsx(Qe, {
|
|
|
2420
2420
|
...a
|
|
2421
2421
|
}, i) => {
|
|
2422
2422
|
t = B(t, "input-group");
|
|
2423
|
-
const l =
|
|
2423
|
+
const l = G(() => ({}), []);
|
|
2424
2424
|
return /* @__PURE__ */ s.jsx(Ke.Provider, {
|
|
2425
2425
|
value: l,
|
|
2426
2426
|
children: /* @__PURE__ */ s.jsx(o, {
|
|
@@ -2435,7 +2435,7 @@ const tt = Object.assign(rr, {
|
|
|
2435
2435
|
Text: Qe,
|
|
2436
2436
|
Radio: ta,
|
|
2437
2437
|
Checkbox: ea
|
|
2438
|
-
}),
|
|
2438
|
+
}), vt = /* @__PURE__ */ R.forwardRef(({
|
|
2439
2439
|
bsPrefix: t,
|
|
2440
2440
|
variant: e,
|
|
2441
2441
|
animation: n = "border",
|
|
@@ -2453,9 +2453,9 @@ const tt = Object.assign(rr, {
|
|
|
2453
2453
|
className: w(a, c, r && `${c}-${r}`, e && `text-${e}`)
|
|
2454
2454
|
});
|
|
2455
2455
|
});
|
|
2456
|
-
|
|
2456
|
+
vt.displayName = "Spinner";
|
|
2457
2457
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2458
|
-
const or = "client_info_decoding_error", sr = "client_info_empty_error", na = "token_parsing_error", ra = "null_or_empty_token", oa = "endpoints_resolution_error", sa = "network_error", aa = "openid_config_error", ia = "hash_not_deserialized", ca = "invalid_state", la = "state_mismatch", ua = "state_not_found", da = "nonce_mismatch", ha = "auth_time_not_found", fa = "max_age_transpired", ma = "multiple_matching_tokens", pa = "multiple_matching_accounts", ga = "multiple_matching_appMetadata", wa = "request_cannot_be_made", xa = "cannot_remove_empty_scope",
|
|
2458
|
+
const or = "client_info_decoding_error", sr = "client_info_empty_error", na = "token_parsing_error", ra = "null_or_empty_token", oa = "endpoints_resolution_error", sa = "network_error", aa = "openid_config_error", ia = "hash_not_deserialized", ca = "invalid_state", la = "state_mismatch", ua = "state_not_found", da = "nonce_mismatch", ha = "auth_time_not_found", fa = "max_age_transpired", ma = "multiple_matching_tokens", pa = "multiple_matching_accounts", ga = "multiple_matching_appMetadata", wa = "request_cannot_be_made", xa = "cannot_remove_empty_scope", ya = "cannot_append_scopeset", va = "empty_input_scopeset", ba = "device_code_polling_cancelled", _a = "device_code_expired", ja = "device_code_unknown_error", ka = "no_account_in_silent_request", Na = "invalid_cache_record", ar = "invalid_cache_environment", Ca = "no_account_found", $a = "no_crypto_object", Ia = "unexpected_credential_type", Sa = "invalid_assertion", Ta = "invalid_client_credential", Ea = "token_refresh_required", Oa = "user_timeout_reached", Da = "token_claims_cnf_required_for_signedjwt", Pa = "authorization_code_missing_from_server_response", Aa = "binding_key_not_removed", Ma = "end_session_endpoint_not_supported", Fa = "key_id_missing", Wa = "no_network_connectivity", Ra = "user_canceled", La = "missing_tenant_id_error", Ya = "method_not_implemented", qa = "nested_app_auth_bridge_disabled";
|
|
2459
2459
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2460
2460
|
const Yt = {
|
|
2461
2461
|
[or]: "The client info could not be parsed/decoded correctly",
|
|
@@ -2477,8 +2477,8 @@ const Yt = {
|
|
|
2477
2477
|
[ga]: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",
|
|
2478
2478
|
[wa]: "Token request cannot be made without authorization code or refresh token.",
|
|
2479
2479
|
[xa]: "Cannot remove null or empty scope from ScopeSet",
|
|
2480
|
-
[
|
|
2481
|
-
[
|
|
2480
|
+
[ya]: "Cannot append ScopeSet",
|
|
2481
|
+
[va]: "Empty input ScopeSet cannot be processed",
|
|
2482
2482
|
[ba]: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",
|
|
2483
2483
|
[_a]: "Device code is expired.",
|
|
2484
2484
|
[ja]: "Device code stopped polling for unknown reasons.",
|
|
@@ -2731,19 +2731,19 @@ function za(t, e, n) {
|
|
|
2731
2731
|
O(() => {
|
|
2732
2732
|
p.current = o !== Se.None;
|
|
2733
2733
|
}, [o]);
|
|
2734
|
-
const
|
|
2734
|
+
const g = q(!0);
|
|
2735
2735
|
O(() => {
|
|
2736
2736
|
if (u) {
|
|
2737
|
-
|
|
2737
|
+
g.current = !1;
|
|
2738
2738
|
return;
|
|
2739
2739
|
}
|
|
2740
2740
|
if (c) {
|
|
2741
|
-
|
|
2741
|
+
g.current = !1;
|
|
2742
2742
|
return;
|
|
2743
2743
|
}
|
|
2744
2744
|
}, [u, c]);
|
|
2745
|
-
const
|
|
2746
|
-
const k =
|
|
2745
|
+
const y = T(async (m, v) => {
|
|
2746
|
+
const k = m || t, f = v || e;
|
|
2747
2747
|
switch (k) {
|
|
2748
2748
|
case Ye.Popup:
|
|
2749
2749
|
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(f);
|
|
@@ -2754,11 +2754,11 @@ function za(t, e, n) {
|
|
|
2754
2754
|
default:
|
|
2755
2755
|
throw ke.createInvalidInteractionTypeError();
|
|
2756
2756
|
}
|
|
2757
|
-
}, [r, t, e, a]),
|
|
2758
|
-
const k =
|
|
2757
|
+
}, [r, t, e, a]), b = T(async (m, v) => {
|
|
2758
|
+
const k = m || t;
|
|
2759
2759
|
let f;
|
|
2760
|
-
return
|
|
2761
|
-
...
|
|
2760
|
+
return v ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), f = {
|
|
2761
|
+
...v
|
|
2762
2762
|
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"), f = {
|
|
2763
2763
|
...e,
|
|
2764
2764
|
scopes: e.scopes || $t
|
|
@@ -2768,7 +2768,7 @@ function za(t, e, n) {
|
|
|
2768
2768
|
if (j instanceof Rr) {
|
|
2769
2769
|
if (p.current)
|
|
2770
2770
|
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), ke.createUnableToFallbackToInteractionError();
|
|
2771
|
-
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"),
|
|
2771
|
+
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), y(k, f);
|
|
2772
2772
|
}
|
|
2773
2773
|
throw j;
|
|
2774
2774
|
})))().then((j) => (h.current && d([j, null]), j)).catch((j) => {
|
|
@@ -2780,41 +2780,41 @@ function za(t, e, n) {
|
|
|
2780
2780
|
e,
|
|
2781
2781
|
a,
|
|
2782
2782
|
l,
|
|
2783
|
-
|
|
2783
|
+
y
|
|
2784
2784
|
]);
|
|
2785
2785
|
return O(() => {
|
|
2786
|
-
const
|
|
2787
|
-
switch (
|
|
2786
|
+
const m = r.addEventCallback((v) => {
|
|
2787
|
+
switch (v.eventType) {
|
|
2788
2788
|
case Fe.LOGIN_SUCCESS:
|
|
2789
2789
|
case Fe.SSO_SILENT_SUCCESS:
|
|
2790
|
-
|
|
2791
|
-
|
|
2790
|
+
v.payload && d([
|
|
2791
|
+
v.payload,
|
|
2792
2792
|
null
|
|
2793
2793
|
]);
|
|
2794
2794
|
break;
|
|
2795
2795
|
case Fe.LOGIN_FAILURE:
|
|
2796
2796
|
case Fe.SSO_SILENT_FAILURE:
|
|
2797
|
-
|
|
2797
|
+
v.error && d([null, v.error]);
|
|
2798
2798
|
break;
|
|
2799
2799
|
}
|
|
2800
2800
|
});
|
|
2801
|
-
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${
|
|
2802
|
-
|
|
2801
|
+
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${m}`), () => {
|
|
2802
|
+
m && (a.verbose(`useMsalAuthentication - Removing event callback ${m}`), r.removeEventCallback(m));
|
|
2803
2803
|
};
|
|
2804
2804
|
}, [r, a]), O(() => {
|
|
2805
|
-
|
|
2806
|
-
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"),
|
|
2805
|
+
g.current && o === Se.None && (g.current = !1, i ? l && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), b().catch(() => {
|
|
2806
|
+
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"), y().catch(() => {
|
|
2807
2807
|
})));
|
|
2808
|
-
}, [i, l, o,
|
|
2809
|
-
login:
|
|
2810
|
-
acquireToken:
|
|
2808
|
+
}, [i, l, o, y, b, a]), {
|
|
2809
|
+
login: y,
|
|
2810
|
+
acquireToken: b,
|
|
2811
2811
|
result: c,
|
|
2812
2812
|
error: u
|
|
2813
2813
|
};
|
|
2814
2814
|
}
|
|
2815
2815
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2816
2816
|
function Ka({ interactionType: t, username: e, homeAccountId: n, localAccountId: r, authenticationRequest: o, loadingComponent: a, errorComponent: i, children: l }) {
|
|
2817
|
-
const c =
|
|
2817
|
+
const c = G(() => ({
|
|
2818
2818
|
username: e,
|
|
2819
2819
|
homeAccountId: n,
|
|
2820
2820
|
localAccountId: r
|
|
@@ -2873,7 +2873,7 @@ const Qa = ({ children: t, onStorno: e, noSpacer: n }) => {
|
|
|
2873
2873
|
sm: Za,
|
|
2874
2874
|
md: ei,
|
|
2875
2875
|
lg: ti
|
|
2876
|
-
},
|
|
2876
|
+
}, z = ({ type: t = "button", color: e = "primary", size: n = "md", children: r, className: o, ...a }) => {
|
|
2877
2877
|
const { LinkComponent: i } = L(ae);
|
|
2878
2878
|
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: w(`luminus-icon-button btn text-${e} ${o ?? ""}`, Le.iconButton, Le[n]), ...a, children: r }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ s.jsx(
|
|
2879
2879
|
"button",
|
|
@@ -2886,16 +2886,16 @@ const Qa = ({ children: t, onStorno: e, noSpacer: n }) => {
|
|
|
2886
2886
|
) : null;
|
|
2887
2887
|
}, ni = "_select_dlv1t_1", rt = {
|
|
2888
2888
|
select: ni
|
|
2889
|
-
},
|
|
2889
|
+
}, yl = ({ month: t, onChangeMonth: e, locale: n, yearMin: r = 2e3, yearMax: o = 2050 }) => {
|
|
2890
2890
|
const a = T((c) => {
|
|
2891
2891
|
const u = xn(t, c);
|
|
2892
2892
|
u.getFullYear() < r || u.getFullYear() > o || e(u);
|
|
2893
|
-
}, [t, e, r, o]), i =
|
|
2893
|
+
}, [t, e, r, o]), i = G(() => {
|
|
2894
2894
|
const c = [];
|
|
2895
2895
|
for (let u = r; u <= o; u++)
|
|
2896
2896
|
c.push(u);
|
|
2897
2897
|
return c;
|
|
2898
|
-
}, [r, o]), l =
|
|
2898
|
+
}, [r, o]), l = G(() => {
|
|
2899
2899
|
const d = [];
|
|
2900
2900
|
for (let h = 0; h <= 11; h++)
|
|
2901
2901
|
d.push({
|
|
@@ -2905,46 +2905,46 @@ const Qa = ({ children: t, onStorno: e, noSpacer: n }) => {
|
|
|
2905
2905
|
return d;
|
|
2906
2906
|
}, [n]);
|
|
2907
2907
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2908
|
-
/* @__PURE__ */ s.jsx(
|
|
2908
|
+
/* @__PURE__ */ s.jsx(z, { onClick: () => a(-1), disabled: t.getFullYear() < r || t.getFullYear() === r && t.getMonth() <= 0, children: /* @__PURE__ */ s.jsx(ft, {}) }),
|
|
2909
2909
|
/* @__PURE__ */ s.jsx(Q.Select, { value: t.getMonth(), onChange: (c) => {
|
|
2910
2910
|
var u;
|
|
2911
|
-
return ((u = c.target) == null ? void 0 : u.value) && e(
|
|
2911
|
+
return ((u = c.target) == null ? void 0 : u.value) && e(ys(t, Number(c.target.value)));
|
|
2912
2912
|
}, className: w(rt.select, rt.month), children: l.map((c) => /* @__PURE__ */ s.jsx("option", { value: c.id, children: c.name }, c.id)) }),
|
|
2913
2913
|
/* @__PURE__ */ s.jsx(Q.Select, { value: t.getFullYear(), onChange: (c) => {
|
|
2914
2914
|
var u;
|
|
2915
2915
|
return ((u = c.target) == null ? void 0 : u.value) && e(_n(t, Number(c.target.value)));
|
|
2916
2916
|
}, className: w(rt.select), children: i.map((c) => /* @__PURE__ */ s.jsx("option", { value: c, children: c }, c)) }),
|
|
2917
|
-
/* @__PURE__ */ s.jsx(
|
|
2917
|
+
/* @__PURE__ */ s.jsx(z, { onClick: () => a(1), disabled: t.getFullYear() > o || t.getFullYear() === o && t.getMonth() >= 11, children: /* @__PURE__ */ s.jsx(mt, {}) })
|
|
2918
2918
|
] });
|
|
2919
2919
|
}, ri = "_select_pywmr_1", oi = {
|
|
2920
2920
|
select: ri
|
|
2921
|
-
},
|
|
2921
|
+
}, vl = ({ year: t, onChangeYear: e, optionMin: n = 2e3, optionMax: r = 2050, className: o }) => {
|
|
2922
2922
|
const a = T((l) => {
|
|
2923
2923
|
const c = t.getFullYear() + l;
|
|
2924
2924
|
c < n || c > r || e(po(t, l));
|
|
2925
|
-
}, [t, e, r, n]), i =
|
|
2925
|
+
}, [t, e, r, n]), i = G(() => {
|
|
2926
2926
|
const l = [];
|
|
2927
2927
|
for (let c = n; c <= r; c++)
|
|
2928
2928
|
l.push(c);
|
|
2929
2929
|
return l;
|
|
2930
2930
|
}, [n, r]);
|
|
2931
2931
|
return /* @__PURE__ */ s.jsxs("div", { className: w("card d-flex flex-row align-items-center m-0 p-1 gap-2", o ?? ""), children: [
|
|
2932
|
-
/* @__PURE__ */ s.jsx(
|
|
2932
|
+
/* @__PURE__ */ s.jsx(z, { onClick: () => a(-1), disabled: t.getFullYear() <= n, children: /* @__PURE__ */ s.jsx(ft, {}) }),
|
|
2933
2933
|
/* @__PURE__ */ s.jsx(Q.Select, { value: t.getFullYear(), onChange: (l) => {
|
|
2934
2934
|
var c;
|
|
2935
2935
|
return ((c = l.target) == null ? void 0 : c.value) && e(_n(t, Number(l.target.value)));
|
|
2936
2936
|
}, className: oi.select, children: i.map((l) => /* @__PURE__ */ s.jsx("option", { value: l, children: l }, l)) }),
|
|
2937
|
-
/* @__PURE__ */ s.jsx(
|
|
2937
|
+
/* @__PURE__ */ s.jsx(z, { onClick: () => a(1), disabled: t.getFullYear() >= r, children: /* @__PURE__ */ s.jsx(mt, {}) })
|
|
2938
2938
|
] });
|
|
2939
2939
|
}, si = "_widget_etgh3_1", ai = {
|
|
2940
2940
|
widget: si
|
|
2941
2941
|
}, ii = ({ show: t, widgets: e, handleClose: n, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ s.jsxs(We, { show: t, onHide: () => n(), children: [
|
|
2942
2942
|
/* @__PURE__ */ s.jsx(We.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(We.Title, { children: o.pickWidgetToAdd }) }),
|
|
2943
|
-
/* @__PURE__ */ s.jsx(We.Body, { children: /* @__PURE__ */ s.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ s.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ s.jsx(
|
|
2943
|
+
/* @__PURE__ */ s.jsx(We.Body, { children: /* @__PURE__ */ s.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ s.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ s.jsx(U, { variant: "body", children: a.name }) })) }) })
|
|
2944
2944
|
] }), Bt = ({ availableWidgets: t, onAdd: e, texts: n }) => {
|
|
2945
2945
|
const [r, o] = D(!1);
|
|
2946
2946
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2947
|
-
/* @__PURE__ */ s.jsx("div", { className: w("luminus-empty-widget", ai.widget), children: /* @__PURE__ */ s.jsx(
|
|
2947
|
+
/* @__PURE__ */ s.jsx("div", { className: w("luminus-empty-widget", ai.widget), children: /* @__PURE__ */ s.jsx(z, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(Hr, {}) }) }),
|
|
2948
2948
|
/* @__PURE__ */ s.jsx(ii, { show: r, widgets: t, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
2949
2949
|
o(!1), e(a);
|
|
2950
2950
|
}, texts: n })
|
|
@@ -3006,43 +3006,43 @@ class wi extends eo {
|
|
|
3006
3006
|
const xi = (t) => (n) => {
|
|
3007
3007
|
const { errorBoundaryTexts: r } = L(ae);
|
|
3008
3008
|
return /* @__PURE__ */ s.jsx(t, { texts: r, ...n });
|
|
3009
|
-
},
|
|
3009
|
+
}, yi = xi(wi), vi = "_widget-card_e9tsb_1", bi = {
|
|
3010
3010
|
"widget-card": "_widget-card_e9tsb_1",
|
|
3011
|
-
widgetCard:
|
|
3011
|
+
widgetCard: vi
|
|
3012
3012
|
}, Vt = ({ children: t, title: e, headerContent: n }) => /* @__PURE__ */ s.jsx(Nc, { className: w(bi.widgetCard, "luminus-widget"), title: e, headerContent: n, contentClassName: "h-100 overflow-auto", children: t }), _i = ({ children: t, title: e }) => {
|
|
3013
3013
|
const { widgetTexts: n } = L(ae);
|
|
3014
|
-
return /* @__PURE__ */ s.jsx(
|
|
3014
|
+
return /* @__PURE__ */ s.jsx(yi, { fallback: /* @__PURE__ */ s.jsx(Vt, { title: e, children: n.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ s.jsx(no, { fallback: /* @__PURE__ */ s.jsx(Vt, { title: e, children: /* @__PURE__ */ s.jsx(uo, {}) }), children: t }) });
|
|
3015
3015
|
}, bl = ({ availableWidgets: t, editMode: e, defaultDashboardConfig: n }) => {
|
|
3016
3016
|
var d;
|
|
3017
3017
|
const { homeDashboardTexts: r } = L(ae), { dashboardConfig: o, onChangeDashboardConfig: a } = ci(n), i = T((h, p) => {
|
|
3018
|
-
var
|
|
3019
|
-
h === ((
|
|
3018
|
+
var g, y;
|
|
3019
|
+
h === ((g = o.widgets) == null ? void 0 : g.length) ? a({
|
|
3020
3020
|
...o,
|
|
3021
3021
|
widgets: [...o.widgets, { widgetId: p, fullWidth: !1 }]
|
|
3022
3022
|
}) : a({
|
|
3023
3023
|
...o,
|
|
3024
|
-
widgets: ((
|
|
3024
|
+
widgets: ((y = o.widgets) == null ? void 0 : y.map((b, m) => m === h ? { widgetId: p, fullWidth: !1 } : b)) ?? []
|
|
3025
3025
|
});
|
|
3026
3026
|
}, [o, a]), l = T((h) => {
|
|
3027
|
-
var p,
|
|
3027
|
+
var p, g;
|
|
3028
3028
|
((p = o.widgets[h]) == null ? void 0 : p.widgetId) === -1 ? a({
|
|
3029
3029
|
...o,
|
|
3030
|
-
widgets: ((
|
|
3030
|
+
widgets: ((g = o.widgets) == null ? void 0 : g.filter((y, b) => b !== h)) ?? []
|
|
3031
3031
|
}) : i(h, -1);
|
|
3032
3032
|
}, [o, a, i]), c = T((h) => {
|
|
3033
3033
|
var p;
|
|
3034
3034
|
a({
|
|
3035
3035
|
...o,
|
|
3036
|
-
widgets: ((p = o.widgets) == null ? void 0 : p.map((
|
|
3036
|
+
widgets: ((p = o.widgets) == null ? void 0 : p.map((g, y) => y === h ? { ...g, fullWidth: !g.fullWidth } : g)) ?? []
|
|
3037
3037
|
});
|
|
3038
|
-
}, [o, a]), u = T((h, p,
|
|
3038
|
+
}, [o, a]), u = T((h, p, g) => h ? /* @__PURE__ */ s.jsxs("div", { className: w(ie.widgetWrapper, {
|
|
3039
3039
|
[ie.widgetEdit]: e && h.id !== -1
|
|
3040
|
-
}, { [ie.fullWidth]:
|
|
3040
|
+
}, { [ie.fullWidth]: g }), children: [
|
|
3041
3041
|
e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3042
|
-
/* @__PURE__ */ s.jsx(
|
|
3043
|
-
/* @__PURE__ */ s.jsx(
|
|
3042
|
+
/* @__PURE__ */ s.jsx(z, { color: "danger", onClick: () => l(p), className: w(ie.removeIcon), children: /* @__PURE__ */ s.jsx(rn, {}) }),
|
|
3043
|
+
/* @__PURE__ */ s.jsx(z, { color: g ? "danger" : "primary", onClick: () => c(p), className: w(ie.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Br, {}) })
|
|
3044
3044
|
] }),
|
|
3045
|
-
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ie.widgetWrapper, children: /* @__PURE__ */ s.jsx(Bt, { availableWidgets: t, onAdd: (
|
|
3045
|
+
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ie.widgetWrapper, children: /* @__PURE__ */ s.jsx(Bt, { availableWidgets: t, onAdd: (y) => i(p, y), texts: r }) }) : /* @__PURE__ */ s.jsx(_i, { title: h.title, children: /* @__PURE__ */ s.jsx(h.WidgetElement, { title: h.title }) }),
|
|
3046
3046
|
h.id > -1 && e && /* @__PURE__ */ s.jsx("div", { className: ie.widgetEditOverlay })
|
|
3047
3047
|
] }, p) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
3048
3048
|
e,
|
|
@@ -3053,7 +3053,7 @@ const xi = (t) => (n) => {
|
|
|
3053
3053
|
r
|
|
3054
3054
|
]);
|
|
3055
3055
|
return /* @__PURE__ */ s.jsx("div", { className: ie.dashboard, children: /* @__PURE__ */ s.jsxs("div", { className: ie.widgetsGrid, children: [
|
|
3056
|
-
(d = o.widgets) == null ? void 0 : d.map((h, p) => u(t.find((
|
|
3056
|
+
(d = o.widgets) == null ? void 0 : d.map((h, p) => u(t.find((g) => g.id === h.widgetId), p, h.fullWidth)),
|
|
3057
3057
|
e && /* @__PURE__ */ s.jsx(Bt, { availableWidgets: t, onAdd: (h) => {
|
|
3058
3058
|
var p;
|
|
3059
3059
|
return i((p = o.widgets) == null ? void 0 : p.length, h);
|
|
@@ -3074,7 +3074,7 @@ const xi = (t) => (n) => {
|
|
|
3074
3074
|
i(o);
|
|
3075
3075
|
}, [o]), /* @__PURE__ */ s.jsxs("div", { className: n ?? "", children: [
|
|
3076
3076
|
/* @__PURE__ */ s.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => r.controlled ? r.onToggle(!r.isOpen) : i(!a), children: [
|
|
3077
|
-
/* @__PURE__ */ s.jsx(
|
|
3077
|
+
/* @__PURE__ */ s.jsx(U, { variant: "h6", children: t }),
|
|
3078
3078
|
/* @__PURE__ */ s.jsx(on, { className: w(Ut.collapseIcon, {
|
|
3079
3079
|
[Ut.collapsed]: l
|
|
3080
3080
|
}) })
|
|
@@ -3093,57 +3093,57 @@ const xi = (t) => (n) => {
|
|
|
3093
3093
|
function Ei(t, e, n) {
|
|
3094
3094
|
var r = this, o = q(null), a = q(0), i = q(null), l = q([]), c = q(), u = q(), d = q(t), h = q(!0);
|
|
3095
3095
|
d.current = t;
|
|
3096
|
-
var p = typeof window < "u",
|
|
3096
|
+
var p = typeof window < "u", g = !e && e !== 0 && p;
|
|
3097
3097
|
if (typeof t != "function")
|
|
3098
3098
|
throw new TypeError("Expected a function");
|
|
3099
3099
|
e = +e || 0;
|
|
3100
|
-
var
|
|
3100
|
+
var y = !!(n = n || {}).leading, b = !("trailing" in n) || !!n.trailing, m = "maxWait" in n, v = "debounceOnServer" in n && !!n.debounceOnServer, k = m ? Math.max(+n.maxWait || 0, e) : null;
|
|
3101
3101
|
O(function() {
|
|
3102
3102
|
return h.current = !0, function() {
|
|
3103
3103
|
h.current = !1;
|
|
3104
3104
|
};
|
|
3105
3105
|
}, []);
|
|
3106
|
-
var f =
|
|
3106
|
+
var f = G(function() {
|
|
3107
3107
|
var N = function(S) {
|
|
3108
3108
|
var _ = l.current, $ = c.current;
|
|
3109
3109
|
return l.current = c.current = null, a.current = S, u.current = d.current.apply($, _);
|
|
3110
3110
|
}, j = function(S, _) {
|
|
3111
|
-
|
|
3111
|
+
g && cancelAnimationFrame(i.current), i.current = g ? requestAnimationFrame(S) : setTimeout(S, _);
|
|
3112
3112
|
}, x = function(S) {
|
|
3113
3113
|
if (!h.current)
|
|
3114
3114
|
return !1;
|
|
3115
3115
|
var _ = S - o.current;
|
|
3116
|
-
return !o.current || _ >= e || _ < 0 ||
|
|
3116
|
+
return !o.current || _ >= e || _ < 0 || m && S - a.current >= k;
|
|
3117
3117
|
}, C = function(S) {
|
|
3118
|
-
return i.current = null,
|
|
3118
|
+
return i.current = null, b && l.current ? N(S) : (l.current = c.current = null, u.current);
|
|
3119
3119
|
}, P = function S() {
|
|
3120
3120
|
var _ = Date.now();
|
|
3121
3121
|
if (x(_))
|
|
3122
3122
|
return C(_);
|
|
3123
3123
|
if (h.current) {
|
|
3124
|
-
var $ = e - (_ - o.current), F =
|
|
3124
|
+
var $ = e - (_ - o.current), F = m ? Math.min($, k - (_ - a.current)) : $;
|
|
3125
3125
|
j(S, F);
|
|
3126
3126
|
}
|
|
3127
3127
|
}, I = function() {
|
|
3128
|
-
if (p ||
|
|
3128
|
+
if (p || v) {
|
|
3129
3129
|
var S = Date.now(), _ = x(S);
|
|
3130
3130
|
if (l.current = [].slice.call(arguments), c.current = r, o.current = S, _) {
|
|
3131
3131
|
if (!i.current && h.current)
|
|
3132
|
-
return a.current = o.current, j(P, e),
|
|
3133
|
-
if (
|
|
3132
|
+
return a.current = o.current, j(P, e), y ? N(o.current) : u.current;
|
|
3133
|
+
if (m)
|
|
3134
3134
|
return j(P, e), N(o.current);
|
|
3135
3135
|
}
|
|
3136
3136
|
return i.current || j(P, e), u.current;
|
|
3137
3137
|
}
|
|
3138
3138
|
};
|
|
3139
3139
|
return I.cancel = function() {
|
|
3140
|
-
i.current && (
|
|
3140
|
+
i.current && (g ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), a.current = 0, l.current = o.current = c.current = i.current = null;
|
|
3141
3141
|
}, I.isPending = function() {
|
|
3142
3142
|
return !!i.current;
|
|
3143
3143
|
}, I.flush = function() {
|
|
3144
3144
|
return i.current ? C(Date.now()) : u.current;
|
|
3145
3145
|
}, I;
|
|
3146
|
-
}, [
|
|
3146
|
+
}, [y, m, e, k, b, g, p, v]);
|
|
3147
3147
|
return f;
|
|
3148
3148
|
}
|
|
3149
3149
|
function Oi(t, e) {
|
|
@@ -3179,18 +3179,18 @@ const Pi = "_wrapper_uccrb_1", Ai = "_open_uccrb_9", Mi = "_dropdown_uccrb_13",
|
|
|
3179
3179
|
icon: Vi,
|
|
3180
3180
|
"clear-button": "_clear-button_uccrb_74",
|
|
3181
3181
|
clearButton: Gi
|
|
3182
|
-
}, _t = ({ 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:
|
|
3182
|
+
}, _t = ({ 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: g = !1, inputRef: y }) => {
|
|
3183
3183
|
var E;
|
|
3184
|
-
const
|
|
3184
|
+
const b = q(null), m = q(null), v = q(null), [k, f] = D(""), [N] = cr(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), I = (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, $ = (x == null ? void 0 : x.height) ?? 0, F = 5, W = G(() => C ? C > window.innerWidth / 2 : !1, [C]), te = G(() => I ? I > window.innerHeight / 2 : !1, [I]);
|
|
3185
3185
|
O(() => {
|
|
3186
3186
|
var M;
|
|
3187
|
-
t && ((M =
|
|
3188
|
-
}, [
|
|
3187
|
+
t && ((M = v.current) == null || M.focus());
|
|
3188
|
+
}, [v, t]), O(() => {
|
|
3189
3189
|
t || f("");
|
|
3190
3190
|
}, [t]), O(() => {
|
|
3191
3191
|
a(N);
|
|
3192
3192
|
}, [N, a]);
|
|
3193
|
-
const
|
|
3193
|
+
const K = T((M) => {
|
|
3194
3194
|
switch (M.key) {
|
|
3195
3195
|
case "Escape":
|
|
3196
3196
|
M.stopPropagation(), e();
|
|
@@ -3203,14 +3203,14 @@ const Pi = "_wrapper_uccrb_1", Ai = "_open_uccrb_9", Mi = "_dropdown_uccrb_13",
|
|
|
3203
3203
|
window.removeEventListener("scroll", A);
|
|
3204
3204
|
}), [A]), O(() => (window.addEventListener("resize", A), () => {
|
|
3205
3205
|
window.removeEventListener("resize", A);
|
|
3206
|
-
}), [A]), pn(
|
|
3206
|
+
}), [A]), pn(K), gn([b, m], e);
|
|
3207
3207
|
const J = l ?? (c && c.length > 0 ? 250 : 0), ne = (c == null ? void 0 : c.reduce((M, X) => M + (X.width ?? 100), 0)) ?? 0, V = `calc(max(${_}px, ${J}px + ${ne}px))`;
|
|
3208
3208
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3209
3209
|
/* @__PURE__ */ s.jsx(mr, { show: t, onClick: e }),
|
|
3210
|
-
r && t && !p && /* @__PURE__ */ s.jsx("button", { ref:
|
|
3210
|
+
r && t && !p && /* @__PURE__ */ s.jsx("button", { ref: m, type: "button", className: w("luminus-dropdown-picker-clear-button", re.clearButton), onClick: () => !p && o(null), style: {
|
|
3211
3211
|
top: `calc(${I}px + ${$ / 2}px - 12px)`,
|
|
3212
3212
|
left: `calc(${C}px - 24px - 8px)`
|
|
3213
|
-
}, children: /* @__PURE__ */ s.jsx(
|
|
3213
|
+
}, children: /* @__PURE__ */ s.jsx(U, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(rn, { size: 16 }) }) }),
|
|
3214
3214
|
/* @__PURE__ */ s.jsx("div", { className: w("luminus-dropdown-picker", re.wrapper, {
|
|
3215
3215
|
[re.open]: t
|
|
3216
3216
|
}), style: {
|
|
@@ -3219,27 +3219,27 @@ const Pi = "_wrapper_uccrb_1", Ai = "_open_uccrb_9", Mi = "_dropdown_uccrb_13",
|
|
|
3219
3219
|
right: W ? `${P}px` : `calc(${C}px + ${V})`,
|
|
3220
3220
|
width: V,
|
|
3221
3221
|
justifyContent: te ? "flex-end" : "flex-start"
|
|
3222
|
-
}, children: /* @__PURE__ */ s.jsx("div", { ref:
|
|
3223
|
-
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:
|
|
3222
|
+
}, children: /* @__PURE__ */ s.jsx("div", { ref: b, className: w("shadow rounded", re.dropdown), children: !p && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3223
|
+
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: v, type: "search", size: "sm", className: re.searchInput, placeholder: i.searchPlaceholder, value: k, onChange: (M) => {
|
|
3224
3224
|
var X;
|
|
3225
3225
|
return f(((X = M.target) == null ? void 0 : X.value) ?? "");
|
|
3226
3226
|
} }) }),
|
|
3227
|
-
|
|
3227
|
+
g ? /* @__PURE__ */ s.jsx("div", { className: re.loadingContainer, children: /* @__PURE__ */ s.jsx(vt, { animation: "border", variant: "primary" }) }) : n.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: w("items", re.itemsContainer), children: [
|
|
3228
3228
|
c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: w("header-row border-bottom", re.headerRow), children: [
|
|
3229
3229
|
/* @__PURE__ */ s.jsx("div", { className: re.name }),
|
|
3230
3230
|
c == null ? void 0 : c.map((M) => /* @__PURE__ */ s.jsx("div", { className: re.columnItem, style: {
|
|
3231
3231
|
width: `${M.width ?? 100}px`,
|
|
3232
3232
|
minWidth: `${M.width ?? 100}px`,
|
|
3233
3233
|
maxWidth: `${M.width ?? 100}px`
|
|
3234
|
-
}, children: /* @__PURE__ */ s.jsx(
|
|
3234
|
+
}, children: /* @__PURE__ */ s.jsx(U, { variant: "caption", children: M.name }) }, M.key))
|
|
3235
3235
|
] }),
|
|
3236
3236
|
n == null ? void 0 : n.map((M) => /* @__PURE__ */ s.jsxs("button", { type: "button", className: w("item cursor-pointer", re.item), onClick: () => !p && o(M), children: [
|
|
3237
|
-
/* @__PURE__ */ s.jsx("div", { className: re.name, children: /* @__PURE__ */ s.jsx(
|
|
3237
|
+
/* @__PURE__ */ s.jsx("div", { className: re.name, children: /* @__PURE__ */ s.jsx(U, { variant: "body2", children: u ? M.id : M.name }) }),
|
|
3238
3238
|
c == null ? void 0 : c.map((X) => /* @__PURE__ */ s.jsx("div", { className: re.columnItem, style: {
|
|
3239
3239
|
width: `${X.width ?? 100}px`,
|
|
3240
3240
|
minWidth: `${X.width ?? 100}px`,
|
|
3241
3241
|
maxWidth: `${X.width ?? 100}px`
|
|
3242
|
-
}, children: /* @__PURE__ */ s.jsx(
|
|
3242
|
+
}, children: /* @__PURE__ */ s.jsx(U, { variant: "caption", className: w("text-muted"), children: M.additionalColumns && M.additionalColumns[X.key] }) }, X.key))
|
|
3243
3243
|
] }, M.id))
|
|
3244
3244
|
] })
|
|
3245
3245
|
] }) }) })
|
|
@@ -3284,7 +3284,7 @@ const zi = "_item_1dy8x_1", dr = {
|
|
|
3284
3284
|
}, tc = ({ toggle: t, children: e, ...n }) => /* @__PURE__ */ s.jsxs(Oe, { ...n, children: [
|
|
3285
3285
|
t,
|
|
3286
3286
|
/* @__PURE__ */ s.jsx(Oe.Menu, { className: w("luminus-dropdown rounded shadow", ec.dropdown), children: e })
|
|
3287
|
-
] }), nc = ({ searchTypes: t, selectedType: e, setSelectedType: n }) => /* @__PURE__ */ s.jsx(tc, { toggle: /* @__PURE__ */ s.jsx(Qi, { as: Vr, icon: null, text: e == null ? void 0 : e.text }), children: t.map((r) => /* @__PURE__ */ s.jsx(Ki, { icon: null, onClick: () => n(r), children: r.text }, r.key)) }), rc = "_dropdown_1ddrg_1", oc = "_open_1ddrg_12", sc = "_loading-container_1ddrg_15", ac = "_groups-container_1ddrg_22", ic = "_group_1ddrg_22", cc = "_header_1ddrg_26", lc = "_item_1ddrg_33", ge = {
|
|
3287
|
+
] }), nc = ({ searchTypes: t, selectedType: e, setSelectedType: n }) => /* @__PURE__ */ s.jsx(tc, { toggle: /* @__PURE__ */ s.jsx(Qi, { as: Vr, icon: null, text: e == null ? void 0 : e.text }), children: t.map((r) => /* @__PURE__ */ s.jsx(Ki, { icon: null, onClick: () => n(r.key), children: r.text }, r.key)) }), rc = "_dropdown_1ddrg_1", oc = "_open_1ddrg_12", sc = "_loading-container_1ddrg_15", ac = "_groups-container_1ddrg_22", ic = "_group_1ddrg_22", cc = "_header_1ddrg_26", lc = "_item_1ddrg_33", ge = {
|
|
3288
3288
|
dropdown: rc,
|
|
3289
3289
|
open: oc,
|
|
3290
3290
|
"loading-container": "_loading-container_1ddrg_15",
|
|
@@ -3297,17 +3297,17 @@ const zi = "_item_1dy8x_1", dr = {
|
|
|
3297
3297
|
}, uc = ({ show: t, query: e, onCancel: n, groups: r, isLoading: o, searchTypes: a }) => {
|
|
3298
3298
|
const { LinkComponent: i, appSearchTexts: l } = L(ae), c = q(null), u = T((d) => {
|
|
3299
3299
|
var p;
|
|
3300
|
-
const h = (p = a.find((
|
|
3300
|
+
const h = (p = a.find((g) => g.key === d.type)) == null ? void 0 : p.toPath;
|
|
3301
3301
|
return h ? `${h}/${d.searchKey}` : "/not-found";
|
|
3302
3302
|
}, [a]);
|
|
3303
3303
|
return gn([c], n), /* @__PURE__ */ s.jsx("div", { ref: c, className: w("luminus-app-search-dropdown shadow rounded", ge.dropdown, {
|
|
3304
3304
|
[ge.open]: t
|
|
3305
|
-
}), children: o ? /* @__PURE__ */ s.jsx("div", { className: ge.loadingContainer, children: /* @__PURE__ */ s.jsx(
|
|
3305
|
+
}), children: o ? /* @__PURE__ */ s.jsx("div", { className: ge.loadingContainer, children: /* @__PURE__ */ s.jsx(vt, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: ge.groupsContainer, children: r == null ? void 0 : r.map((d) => {
|
|
3306
3306
|
var h;
|
|
3307
3307
|
return /* @__PURE__ */ s.jsxs("div", { className: w(ge.group), children: [
|
|
3308
3308
|
/* @__PURE__ */ s.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: w("group-header", ge.header), onClick: n, children: [
|
|
3309
|
-
/* @__PURE__ */ s.jsx(
|
|
3310
|
-
/* @__PURE__ */ s.jsxs(
|
|
3309
|
+
/* @__PURE__ */ s.jsx(U, { variant: "body", className: "text-primary", children: d.key.categoryName }),
|
|
3310
|
+
/* @__PURE__ */ s.jsxs(U, { variant: "caption", children: [
|
|
3311
3311
|
d.items.length,
|
|
3312
3312
|
" ",
|
|
3313
3313
|
l.amountFrom,
|
|
@@ -3315,18 +3315,18 @@ const zi = "_item_1dy8x_1", dr = {
|
|
|
3315
3315
|
d.key.totalCount
|
|
3316
3316
|
] })
|
|
3317
3317
|
] }),
|
|
3318
|
-
(h = d.items) == null ? void 0 : h.map((p,
|
|
3318
|
+
(h = d.items) == null ? void 0 : h.map((p, g) => /* @__PURE__ */ s.jsxs(
|
|
3319
3319
|
i,
|
|
3320
3320
|
{
|
|
3321
3321
|
to: u(p),
|
|
3322
3322
|
className: w("search-item d-flex gap-3 align-items-center justify-content-between", ge.item),
|
|
3323
3323
|
onClick: n,
|
|
3324
3324
|
children: [
|
|
3325
|
-
/* @__PURE__ */ s.jsx(
|
|
3326
|
-
/* @__PURE__ */ s.jsx(
|
|
3325
|
+
/* @__PURE__ */ s.jsx(U, { variant: "body2", className: "text-nowrap text-truncate", children: p.name }),
|
|
3326
|
+
/* @__PURE__ */ s.jsx(U, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(Gr, {}) })
|
|
3327
3327
|
]
|
|
3328
3328
|
},
|
|
3329
|
-
|
|
3329
|
+
g
|
|
3330
3330
|
))
|
|
3331
3331
|
] }, d.key.category);
|
|
3332
3332
|
}) }) });
|
|
@@ -3356,27 +3356,28 @@ const zi = "_item_1dy8x_1", dr = {
|
|
|
3356
3356
|
c();
|
|
3357
3357
|
}, [c]), { isLoading: r, searchItems: a };
|
|
3358
3358
|
}, Cl = ({ searchTypes: t, navigateFunction: e, currentPath: n }) => {
|
|
3359
|
-
|
|
3359
|
+
var b;
|
|
3360
|
+
const { appSearchTexts: r } = L(ae), [o, a] = D(t.length > 0 ? ((b = t.at(0)) == null ? void 0 : b.key) ?? null : null), i = G(() => t.find((m) => m.key === o) ?? null, [t, o]), [l, c] = D(""), [u, d] = cr(l, 500), { isLoading: h, searchItems: p } = wc(i, u), [g, y] = D(!1);
|
|
3360
3361
|
return O(() => {
|
|
3361
|
-
(
|
|
3362
|
-
}, [
|
|
3363
|
-
|
|
3364
|
-
}, [n]), /* @__PURE__ */ s.jsx(Q, { onSubmit: (
|
|
3365
|
-
|
|
3362
|
+
(p.length > 0 || h) && y(!0);
|
|
3363
|
+
}, [p, h]), O(() => {
|
|
3364
|
+
c("");
|
|
3365
|
+
}, [n]), /* @__PURE__ */ s.jsx(Q, { onSubmit: (m) => {
|
|
3366
|
+
m.preventDefault(), m.stopPropagation(), d.flush(), y(!1), l.length > 2 && e(`/search?query=${l}${i && i.key && `&type=${i == null ? void 0 : i.key}`}`);
|
|
3366
3367
|
}, children: /* @__PURE__ */ s.jsxs(tt, { className: we.inputGroup, children: [
|
|
3367
|
-
/* @__PURE__ */ s.jsx(tt.Text, { className: w("p-1 rounded", we.inputGroupText, we.left), children: /* @__PURE__ */ s.jsx(nc, { searchTypes: t, selectedType:
|
|
3368
|
-
/* @__PURE__ */ s.jsx(Q.Control, { placeholder: r.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", we.input), value:
|
|
3369
|
-
var
|
|
3370
|
-
return
|
|
3371
|
-
}, onFocus: () =>
|
|
3368
|
+
/* @__PURE__ */ s.jsx(tt.Text, { className: w("p-1 rounded", we.inputGroupText, we.left), children: /* @__PURE__ */ s.jsx(nc, { searchTypes: t, selectedType: i, setSelectedType: a }) }),
|
|
3369
|
+
/* @__PURE__ */ s.jsx(Q.Control, { placeholder: r.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", we.input), value: l, onChange: (m) => {
|
|
3370
|
+
var v;
|
|
3371
|
+
return c(((v = m.target) == null ? void 0 : v.value) ?? "");
|
|
3372
|
+
}, onFocus: () => p.length > 0 && y(!0) }),
|
|
3372
3373
|
/* @__PURE__ */ s.jsx(tt.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(Ui, {}) }) }),
|
|
3373
|
-
/* @__PURE__ */ s.jsx(uc, { query:
|
|
3374
|
+
/* @__PURE__ */ s.jsx(uc, { query: u, searchTypes: t, show: g, onCancel: () => y(!1), groups: p, isLoading: h })
|
|
3374
3375
|
] }) });
|
|
3375
|
-
}, xc = "_card_19733_1",
|
|
3376
|
+
}, xc = "_card_19733_1", yc = "_header_19733_6", vc = "_header-content_19733_13", bc = "_title_19733_19", _c = "_collapse-icon_19733_22", jc = "_collapsed_19733_27", kc = "_content_19733_30", xe = {
|
|
3376
3377
|
card: xc,
|
|
3377
|
-
header:
|
|
3378
|
+
header: yc,
|
|
3378
3379
|
"header-content": "_header-content_19733_13",
|
|
3379
|
-
headerContent:
|
|
3380
|
+
headerContent: vc,
|
|
3380
3381
|
title: bc,
|
|
3381
3382
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
3382
3383
|
collapseIcon: _c,
|
|
@@ -3395,7 +3396,7 @@ const zi = "_item_1dy8x_1", dr = {
|
|
|
3395
3396
|
i.collapsible && (i.controlled ? i.onToggle(!i.isOpen) : u(!c));
|
|
3396
3397
|
}, children: [
|
|
3397
3398
|
/* @__PURE__ */ s.jsxs("div", { className: w("header-content", xe.headerContent), children: [
|
|
3398
|
-
/* @__PURE__ */ s.jsx(
|
|
3399
|
+
/* @__PURE__ */ s.jsx(U, { variant: "h6", className: w("text-primary", xe.title), children: t }),
|
|
3399
3400
|
e ?? null
|
|
3400
3401
|
] }),
|
|
3401
3402
|
i.collapsible && /* @__PURE__ */ s.jsx(on, { className: w(xe.collapseIcon, {
|
|
@@ -3540,25 +3541,25 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3540
3541
|
}, mr = ({ show: t, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: w("luminus-backdrop", Kt.backdrop, {
|
|
3541
3542
|
[Kt.show]: t
|
|
3542
3543
|
}), onClick: () => e && e() }), pr = ({ src: t, alt: e, baseUrl: n, customToken: r, placeholder: o, ...a }) => /* @__PURE__ */ s.jsx("img", { ...a, alt: e ?? "", src: t ?? o }), Uc = ({ show: t, onClose: e, photos: n, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken: u, placeholder: d, ImgComponent: h = pr }) => {
|
|
3543
|
-
const p = q(null), [
|
|
3544
|
+
const p = q(null), [g, y] = D(r), b = n.at(g), m = g > 0, v = g < n.length - 1;
|
|
3544
3545
|
O(() => {
|
|
3545
|
-
t &&
|
|
3546
|
+
t && y(r);
|
|
3546
3547
|
}, [r, t]), O(() => {
|
|
3547
|
-
|
|
3548
|
-
}, [n,
|
|
3548
|
+
g >= n.length && y(n.length - 1);
|
|
3549
|
+
}, [n, g]);
|
|
3549
3550
|
const k = T((f) => {
|
|
3550
3551
|
switch (f.key) {
|
|
3551
3552
|
case "ArrowLeft":
|
|
3552
|
-
f.stopPropagation(),
|
|
3553
|
+
f.stopPropagation(), m && y((N) => N - 1);
|
|
3553
3554
|
break;
|
|
3554
3555
|
case "ArrowRight":
|
|
3555
|
-
f.stopPropagation(),
|
|
3556
|
+
f.stopPropagation(), v && y((N) => N + 1);
|
|
3556
3557
|
break;
|
|
3557
3558
|
case "Escape":
|
|
3558
3559
|
f.stopPropagation(), e();
|
|
3559
3560
|
break;
|
|
3560
3561
|
}
|
|
3561
|
-
}, [
|
|
3562
|
+
}, [v, m, e]);
|
|
3562
3563
|
return pn(k), /* @__PURE__ */ s.jsxs(ut, { children: [
|
|
3563
3564
|
/* @__PURE__ */ s.jsx(mr, { show: t, onClick: e }),
|
|
3564
3565
|
/* @__PURE__ */ s.jsxs("div", { ref: p, className: w("luminus-lightbox rounded shadow", oe.lightbox, {
|
|
@@ -3569,10 +3570,10 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3569
3570
|
i && /* @__PURE__ */ s.jsx(ir, { accept: ".jpg,.jpeg,.png", onUpload: (f) => {
|
|
3570
3571
|
f.length > 0 && i(Array.from(f));
|
|
3571
3572
|
}, icon: /* @__PURE__ */ s.jsx(an, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
3572
|
-
|
|
3573
|
+
b && (l == null ? void 0 : l.map(({ label: f, onClick: N, ...j }, x) => /* @__PURE__ */ s.jsx(
|
|
3573
3574
|
lt,
|
|
3574
3575
|
{
|
|
3575
|
-
onClick: () => N(
|
|
3576
|
+
onClick: () => N(b.id),
|
|
3576
3577
|
...j,
|
|
3577
3578
|
children: f
|
|
3578
3579
|
},
|
|
@@ -3581,15 +3582,15 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3581
3582
|
] }),
|
|
3582
3583
|
/* @__PURE__ */ s.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ s.jsx(ce, { style: { fontSize: "32px" } }) })
|
|
3583
3584
|
] }),
|
|
3584
|
-
n.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(
|
|
3585
|
-
|
|
3586
|
-
/* @__PURE__ */ s.jsx("div", { role:
|
|
3587
|
-
/* @__PURE__ */ s.jsx(h, { src:
|
|
3588
|
-
/* @__PURE__ */ s.jsx("div", { role:
|
|
3585
|
+
n.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(U, { variant: "body", children: a ?? "No photos available" }) }),
|
|
3586
|
+
b && /* @__PURE__ */ s.jsxs("div", { className: oe.photoContainer, children: [
|
|
3587
|
+
/* @__PURE__ */ s.jsx("div", { role: m ? "button" : void 0, className: w("align-items-start", oe.navButton), onClick: () => m && y((f) => f - 1), children: m && /* @__PURE__ */ s.jsx(ft, { style: { fontSize: "40px" } }) }),
|
|
3588
|
+
/* @__PURE__ */ s.jsx(h, { src: b.lgSrc, alt: b.alt, className: w("rounded", oe.photo), baseUrl: c, customToken: u, placeholder: d }),
|
|
3589
|
+
/* @__PURE__ */ s.jsx("div", { role: v ? "button" : void 0, className: w("align-items-end", oe.navButton), onClick: () => v && y((f) => f + 1), children: v && /* @__PURE__ */ s.jsx(mt, { style: { fontSize: "40px" } }) })
|
|
3589
3590
|
] }),
|
|
3590
|
-
/* @__PURE__ */ s.jsx("div", { className: oe.photosPreview, children: n.map((f, N) => /* @__PURE__ */ s.jsxs("div", { role: "button", onClick: () =>
|
|
3591
|
-
/* @__PURE__ */ s.jsx(h, { role: N !==
|
|
3592
|
-
[oe.selected]: N ===
|
|
3591
|
+
/* @__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: [
|
|
3592
|
+
/* @__PURE__ */ s.jsx(h, { role: N !== g ? "button" : void 0, src: f.smSrc, alt: f.alt, className: w("rounded", oe.photo, {
|
|
3593
|
+
[oe.selected]: N === g
|
|
3593
3594
|
}), baseUrl: c, customToken: u, placeholder: d }, f.id),
|
|
3594
3595
|
f.isDefault && /* @__PURE__ */ s.jsx("div", { className: w("text-primary", oe.defaultIndicator), children: /* @__PURE__ */ s.jsx(Ur, {}) })
|
|
3595
3596
|
] })) })
|
|
@@ -3602,13 +3603,13 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3602
3603
|
u(null), p(!1);
|
|
3603
3604
|
return;
|
|
3604
3605
|
}
|
|
3605
|
-
const
|
|
3606
|
-
u(
|
|
3606
|
+
const g = t.findIndex((y) => y.isDefault);
|
|
3607
|
+
u(g > -1 ? g : 0);
|
|
3607
3608
|
}, [t]), d ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3608
3609
|
/* @__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 }),
|
|
3609
3610
|
/* @__PURE__ */ s.jsx(Uc, { show: h, onClose: () => p(!1), photos: t, defaultIndex: c ?? 0, uploadPhotosText: n, onUploadPhotos: e, photoActions: r, baseUrl: o, customToken: a, placeholder: i, ImgComponent: l })
|
|
3610
|
-
] }) : e ? /* @__PURE__ */ s.jsx(ir, { accept: ".jpg,.jpeg,.png", onUpload: (
|
|
3611
|
-
|
|
3611
|
+
] }) : e ? /* @__PURE__ */ s.jsx(ir, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
|
|
3612
|
+
g.length > 0 && e(Array.from(g));
|
|
3612
3613
|
}, icon: /* @__PURE__ */ s.jsx(an, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : null;
|
|
3613
3614
|
}, Il = ({ appAccessPermissions: t, children: e }) => {
|
|
3614
3615
|
const { NavigateComponent: n } = L(ae), { useMsal: r, msalScopes: o } = L(zr), { isAuthenticated: a } = Kr(), { userLoginState: i } = L(Qr), l = i.state === Xr.LOGGING_IN, c = i.user && (t == null ? void 0 : t.every((u) => {
|
|
@@ -3618,7 +3619,7 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3618
3619
|
return r ? /* @__PURE__ */ s.jsx(Ka, { interactionType: Ye.Redirect, authenticationRequest: { scopes: o }, children: l || !a() ? /* @__PURE__ */ s.jsx(Tt, {}) : i.user ? c ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(n, { to: "/no-user-login", replace: !0 }) }) : l ? /* @__PURE__ */ s.jsx(Tt, {}) : !a() || !i.user ? /* @__PURE__ */ s.jsx(n, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 });
|
|
3619
3620
|
}, Sl = (t) => {
|
|
3620
3621
|
const { variant: e, children: n, className: r, size: o = "md", typographyVariant: a = o === "sm" ? "body2" : "body", ...i } = { ...t };
|
|
3621
|
-
return /* @__PURE__ */ s.jsx(Os, { variant: e, className: `text-center ${o === "sm" ? "p-1" : o === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...i, children: /* @__PURE__ */ s.jsx(
|
|
3622
|
+
return /* @__PURE__ */ s.jsx(Os, { variant: e, className: `text-center ${o === "sm" ? "p-1" : o === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...i, children: /* @__PURE__ */ s.jsx(U, { variant: a, children: n }) });
|
|
3622
3623
|
}, Tl = ({ version: t }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
|
|
3623
3624
|
position: "fixed",
|
|
3624
3625
|
right: "0px",
|
|
@@ -3627,7 +3628,7 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3627
3628
|
backgroundColor: "rgba(255, 255, 255, 0.5)",
|
|
3628
3629
|
padding: "4px",
|
|
3629
3630
|
pointerEvents: "all"
|
|
3630
|
-
}, children: /* @__PURE__ */ s.jsxs(
|
|
3631
|
+
}, children: /* @__PURE__ */ s.jsxs(U, { variant: "caption", className: "w-100 text-end", children: [
|
|
3631
3632
|
"verze ",
|
|
3632
3633
|
t
|
|
3633
3634
|
] }) }), zc = "_submit-container_a9slg_1", Kc = "_spacer_a9slg_14", Qt = {
|
|
@@ -3637,7 +3638,7 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3637
3638
|
}, Qc = ({ children: t, noSpacer: e = !1 }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3638
3639
|
!e && /* @__PURE__ */ s.jsx("div", { className: Qt.spacer }),
|
|
3639
3640
|
/* @__PURE__ */ s.jsx("div", { className: w("luminus-floating-action-container shadow", Qt.submitContainer), children: t })
|
|
3640
|
-
] }), Xc = "_timeline_g1754_1", Jc = "_step-container_g1754_1", Zc = "_step-date_g1754_1", el = "_step-content_g1754_4", tl = "_content-header_g1754_8", nl = "_content-text_g1754_11", rl = "_step-icon_g1754_14",
|
|
3641
|
+
] }), Xc = "_timeline_g1754_1", Jc = "_step-container_g1754_1", Zc = "_step-date_g1754_1", el = "_step-content_g1754_4", tl = "_content-header_g1754_8", nl = "_content-text_g1754_11", rl = "_step-icon_g1754_14", ye = {
|
|
3641
3642
|
timeline: Xc,
|
|
3642
3643
|
"step-container": "_step-container_g1754_1",
|
|
3643
3644
|
stepContainer: Jc,
|
|
@@ -3651,18 +3652,18 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3651
3652
|
contentText: nl,
|
|
3652
3653
|
"step-icon": "_step-icon_g1754_14",
|
|
3653
3654
|
stepIcon: rl
|
|
3654
|
-
}, El = ({ steps: t }) => /* @__PURE__ */ s.jsx("div", { className:
|
|
3655
|
-
/* @__PURE__ */ s.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ s.jsxs(
|
|
3655
|
+
}, El = ({ steps: t }) => /* @__PURE__ */ s.jsx("div", { className: ye.timeline, children: t.sort((e, n) => go(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: [
|
|
3656
|
+
/* @__PURE__ */ s.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ s.jsxs(U, { variant: "caption", className: w("h-100 d-flex flex-column align-items-end justify-content-center gap-0", ye.stepDate), children: [
|
|
3656
3657
|
/* @__PURE__ */ s.jsx("div", { children: st(e.date, "dd.MM.yyyy") }),
|
|
3657
3658
|
/* @__PURE__ */ s.jsx("div", { children: st(e.date, "HH:mm") })
|
|
3658
3659
|
] }) }),
|
|
3659
|
-
/* @__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",
|
|
3660
|
-
/* @__PURE__ */ s.jsxs("div", { className: w("d-flex gap-2 align-items-center",
|
|
3660
|
+
/* @__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: [
|
|
3661
|
+
/* @__PURE__ */ s.jsxs("div", { className: w("d-flex gap-2 align-items-center", ye.contentHeader), children: [
|
|
3661
3662
|
e.person && /* @__PURE__ */ s.jsx(cn, { name: e.person.name ?? "", size: 22, fontSize: 12 }),
|
|
3662
|
-
typeof e.title == "string" ? /* @__PURE__ */ s.jsx(
|
|
3663
|
+
typeof e.title == "string" ? /* @__PURE__ */ s.jsx(U, { variant: "body", className: "fw-bold", children: e.title }) : e.title
|
|
3663
3664
|
] }),
|
|
3664
|
-
e.text && /* @__PURE__ */ s.jsx(
|
|
3665
|
-
/* @__PURE__ */ s.jsx("div", { className: w("text-primary",
|
|
3665
|
+
e.text && /* @__PURE__ */ s.jsx(U, { variant: "body2", className: ye.contentText, children: e.text }),
|
|
3666
|
+
/* @__PURE__ */ s.jsx("div", { className: w("text-primary", ye.stepIcon), children: e.icon ?? /* @__PURE__ */ s.jsx(Jr, {}) })
|
|
3666
3667
|
] }) })
|
|
3667
3668
|
] }, n)) }), ol = (t, e, n, r = !0) => {
|
|
3668
3669
|
const o = sn({ silent: r, differentBaseUrl: e, customToken: n }), [a, i] = D(!1), [l, c] = D(null), u = T(async (d) => {
|
|
@@ -3690,7 +3691,7 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3690
3691
|
};
|
|
3691
3692
|
}, [i]), l === null && !o ? null : /* @__PURE__ */ s.jsx("img", { ...a, alt: e ?? "", src: l ?? o });
|
|
3692
3693
|
}, Dl = ({ heading: t, content: e, placement: n, children: r, trigger: o, ...a }) => /* @__PURE__ */ s.jsx(Zr, { placement: n, overlay: /* @__PURE__ */ s.jsxs(Je, { className: "luminus-popover", children: [
|
|
3693
|
-
/* @__PURE__ */ s.jsx(Je.Header, { children: typeof t == "string" ? /* @__PURE__ */ s.jsx(
|
|
3694
|
+
/* @__PURE__ */ s.jsx(Je.Header, { children: typeof t == "string" ? /* @__PURE__ */ s.jsx(U, { variant: "h6", className: "text-primary", children: t }) : t }),
|
|
3694
3695
|
/* @__PURE__ */ s.jsx(Je.Body, { children: e })
|
|
3695
3696
|
] }), trigger: o ?? "hover", rootClose: !0, show: a.controlled ? a.isOpen : void 0, onToggle: a.controlled ? (i) => a.setIsOpen(i) : void 0, children: r }), gr = ({ currentSelection: t, selectedItemNavigateTo: e, children: n }) => {
|
|
3696
3697
|
const { LinkComponent: r } = L(ae);
|
|
@@ -3701,16 +3702,16 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3701
3702
|
}, Pl = ({ 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) => {
|
|
3702
3703
|
var d;
|
|
3703
3704
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3704
|
-
}, 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:
|
|
3705
|
-
const
|
|
3705
|
+
}, 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: g, className: y, step: b, noSelectOnFocus: m }) => {
|
|
3706
|
+
const v = e === "number", k = T(() => {
|
|
3706
3707
|
if (!r)
|
|
3707
3708
|
return;
|
|
3708
3709
|
const _ = p ?? null;
|
|
3709
|
-
r(
|
|
3710
|
-
}, [p,
|
|
3710
|
+
r(v ? _ ? Number(_) : null : (_ == null ? void 0 : _.toString()) ?? "");
|
|
3711
|
+
}, [p, v, r]), f = q(null), [N, j] = D((n == null ? void 0 : n.toString()) ?? ""), x = T((_) => {
|
|
3711
3712
|
const $ = _;
|
|
3712
|
-
r && (
|
|
3713
|
-
}, [
|
|
3713
|
+
r && (v && r($ == null || $ === "" ? null : Number($)), r($ || null));
|
|
3714
|
+
}, [v, r]), C = T((_) => {
|
|
3714
3715
|
var F;
|
|
3715
3716
|
const $ = (F = _.target) == null ? void 0 : F.value;
|
|
3716
3717
|
if (!o) {
|
|
@@ -3725,11 +3726,11 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3725
3726
|
j(n === null ? "" : n.toString());
|
|
3726
3727
|
}, [n]);
|
|
3727
3728
|
const [P, I] = D(!1), S = wn(e, n ? n.toString() ?? null : null, P);
|
|
3728
|
-
return /* @__PURE__ */ s.jsxs(t, { withoutLabel: i, label: a ?? "", hidden: u, className:
|
|
3729
|
-
/* @__PURE__ */ s.jsx(Q.Control, { type: S, placeholder: l ?? a, size: c, value: o ? N : (n == null ? void 0 : n.toString()) ?? "", onChange: C, className:
|
|
3730
|
-
I(!0), !
|
|
3731
|
-
}, onBlur: () => I(!1), step:
|
|
3732
|
-
h && n !== null && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(
|
|
3729
|
+
return /* @__PURE__ */ s.jsxs(t, { withoutLabel: i, label: a ?? "", hidden: u, className: y, children: [
|
|
3730
|
+
/* @__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: g, onFocus: (_) => {
|
|
3731
|
+
I(!0), !m && _.target.select();
|
|
3732
|
+
}, onBlur: () => I(!1), step: b }),
|
|
3733
|
+
h && n !== null && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3733
3734
|
] });
|
|
3734
3735
|
}, Ml = ({
|
|
3735
3736
|
InputContainer: t = Ne,
|
|
@@ -3745,30 +3746,30 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3745
3746
|
showClearIcon: d,
|
|
3746
3747
|
clearValue: h,
|
|
3747
3748
|
noSortOptions: p,
|
|
3748
|
-
className:
|
|
3749
|
-
noEmptyOption:
|
|
3749
|
+
className: g,
|
|
3750
|
+
noEmptyOption: y
|
|
3750
3751
|
// it will still add the empty option if there is no value provided or value is empty string or null
|
|
3751
3752
|
}) => {
|
|
3752
|
-
const
|
|
3753
|
+
const b = T(() => {
|
|
3753
3754
|
if (!r)
|
|
3754
3755
|
return;
|
|
3755
|
-
const
|
|
3756
|
-
r(i ?
|
|
3756
|
+
const m = h ?? null;
|
|
3757
|
+
r(i ? m ? Number(m) : null : (m == null ? void 0 : m.toString()) ?? "");
|
|
3757
3758
|
}, [h, i, r]);
|
|
3758
|
-
return /* @__PURE__ */ s.jsxs(t, { withoutLabel: a, label: o ?? "", hidden: c, className:
|
|
3759
|
-
/* @__PURE__ */ s.jsxs(Q.Select, { size: l, value: e ?? "", onChange: (
|
|
3759
|
+
return /* @__PURE__ */ s.jsxs(t, { withoutLabel: a, label: o ?? "", hidden: c, className: g, children: [
|
|
3760
|
+
/* @__PURE__ */ s.jsxs(Q.Select, { size: l, value: e ?? "", onChange: (m) => {
|
|
3760
3761
|
var k;
|
|
3761
3762
|
if (!r)
|
|
3762
3763
|
return;
|
|
3763
|
-
const
|
|
3764
|
-
i && r(
|
|
3765
|
-
}, className:
|
|
3766
|
-
|
|
3767
|
-
n == null ? void 0 : n.sort((
|
|
3764
|
+
const v = (k = m.target) == null ? void 0 : k.value;
|
|
3765
|
+
i && r(v ? parseInt(v, 10) : null), r(v || null);
|
|
3766
|
+
}, className: g ?? "", hidden: c, disabled: u ?? !1, children: [
|
|
3767
|
+
y && !(e == null || e === "") ? void 0 : /* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3768
|
+
n == null ? void 0 : n.sort((m, v) => p ? 0 : (m.name ?? "").localeCompare(v.name ?? "")).map((m) => /* @__PURE__ */ s.jsx("option", { value: m.id ?? "", children: m.name }, m.id))
|
|
3768
3769
|
] }),
|
|
3769
|
-
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(
|
|
3770
|
+
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3770
3771
|
] });
|
|
3771
|
-
}, Fl = ({ 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:
|
|
3772
|
+
}, Fl = ({ 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: g, hidden: y, disabled: b, displayIdAsName: m, CustomOnChangeComponent: v, className: k }) => {
|
|
3772
3773
|
var $, F;
|
|
3773
3774
|
const [f, N] = D(n), [j, x] = D(!1);
|
|
3774
3775
|
O(() => {
|
|
@@ -3783,66 +3784,66 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3783
3784
|
c && c(f);
|
|
3784
3785
|
}, [f, c]);
|
|
3785
3786
|
const I = q(null), S = r !== void 0, _ = S && f !== null;
|
|
3786
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { withoutLabel: d, label: u ?? "", hidden:
|
|
3787
|
+
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: [
|
|
3787
3788
|
/* @__PURE__ */ s.jsxs(gr, { currentSelection: f, selectedItemNavigateTo: r, children: [
|
|
3788
|
-
|
|
3789
|
+
m && (f == null ? void 0 : f.name) && /* @__PURE__ */ s.jsx(U, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: f.name }),
|
|
3789
3790
|
/* @__PURE__ */ s.jsxs(Q.Select, { ref: I, size: h, value: (f == null ? void 0 : f.id) ?? "", onChange: (W) => N({
|
|
3790
3791
|
id: l ? Number(W.target.value) ?? null : W.target.value,
|
|
3791
3792
|
name: ""
|
|
3792
3793
|
}), onMouseDown: (W) => {
|
|
3793
3794
|
W.currentTarget.focus(), W.preventDefault();
|
|
3794
3795
|
}, onClick: () => {
|
|
3795
|
-
!S && !
|
|
3796
|
+
!S && !b && x(!0);
|
|
3796
3797
|
}, className: w("w-100", {
|
|
3797
|
-
"luminus-dropdown-picker-disabled":
|
|
3798
|
+
"luminus-dropdown-picker-disabled": b,
|
|
3798
3799
|
"luminus-dropdown-picker-link": _
|
|
3799
|
-
}), hidden:
|
|
3800
|
+
}), hidden: y, children: [
|
|
3800
3801
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3801
3802
|
n && /* @__PURE__ */ s.jsx("option", { value: n.id ?? void 0, children: n.name && (($ = n.name) == null ? void 0 : $.length) > 0 ? n.name : n.id }),
|
|
3802
3803
|
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 })
|
|
3803
3804
|
] }),
|
|
3804
|
-
|
|
3805
|
-
!
|
|
3805
|
+
v || !b && S ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
3806
|
+
!v && !b && S && /* @__PURE__ */ s.jsx(z, { size: "sm", color: "secondary", onClick: (W) => {
|
|
3806
3807
|
W.preventDefault(), W.stopPropagation(), x(!0);
|
|
3807
3808
|
}, children: /* @__PURE__ */ s.jsx(ln, {}) }),
|
|
3808
|
-
|
|
3809
|
+
v ?? null
|
|
3809
3810
|
] }) : null
|
|
3810
3811
|
] }),
|
|
3811
|
-
I.current && /* @__PURE__ */ s.jsx(_t, { show: j, onCancel: () => x(!1), items: e, currentSelection: f, onSelectionChange: P, onSearchQueryChange: o, texts: a, itemsNameWidth: p, additionalColumns:
|
|
3812
|
+
I.current && /* @__PURE__ */ s.jsx(_t, { show: j, onCancel: () => x(!1), items: e, currentSelection: f, onSelectionChange: P, onSearchQueryChange: o, texts: a, itemsNameWidth: p, additionalColumns: g, isLoading: i, disabled: b, inputRef: I })
|
|
3812
3813
|
] }) });
|
|
3813
3814
|
}, Wl = ({ 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 }) => {
|
|
3814
|
-
const
|
|
3815
|
+
const g = T(() => {
|
|
3815
3816
|
if (!n)
|
|
3816
3817
|
return;
|
|
3817
3818
|
const f = i ?? null;
|
|
3818
3819
|
n((f == null ? void 0 : f.toString()) ?? "");
|
|
3819
|
-
}, [i, n]),
|
|
3820
|
+
}, [i, n]), y = q(null), [b, m] = D((e == null ? void 0 : e.toString()) ?? ""), v = T((f) => {
|
|
3820
3821
|
const N = f;
|
|
3821
3822
|
n && n(N || null);
|
|
3822
3823
|
}, [n]), k = T((f) => {
|
|
3823
3824
|
var j;
|
|
3824
3825
|
const N = (j = f.target) == null ? void 0 : j.value;
|
|
3825
3826
|
if (!h) {
|
|
3826
|
-
|
|
3827
|
+
v(N);
|
|
3827
3828
|
return;
|
|
3828
3829
|
}
|
|
3829
|
-
|
|
3830
|
-
|
|
3830
|
+
m(N), y.current !== null && window.clearTimeout(y.current), y.current = window.setTimeout(() => {
|
|
3831
|
+
v(N);
|
|
3831
3832
|
}, h);
|
|
3832
|
-
}, [h,
|
|
3833
|
+
}, [h, v]);
|
|
3833
3834
|
return O(() => {
|
|
3834
|
-
|
|
3835
|
+
m(e === null ? "" : e.toString());
|
|
3835
3836
|
}, [e]), /* @__PURE__ */ s.jsxs(t, { label: r ?? "", hidden: l, withoutLabel: d, className: p, isForTextAreaInput: !0, children: [
|
|
3836
|
-
/* @__PURE__ */ s.jsx(Q.Control, { as: "textarea", size: o, value: h ?
|
|
3837
|
-
a && e && n && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(
|
|
3837
|
+
/* @__PURE__ */ s.jsx(Q.Control, { as: "textarea", size: o, value: h ? b : e ?? "", onChange: k, hidden: l, disabled: c, rows: u ?? 2, className: "w-100" }),
|
|
3838
|
+
a && e && n && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3838
3839
|
] });
|
|
3839
|
-
}, Rl = ({ 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:
|
|
3840
|
-
const
|
|
3840
|
+
}, Rl = ({ 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: g, stepperStep: y = 1 }) => {
|
|
3841
|
+
const b = T(() => {
|
|
3841
3842
|
if (!n)
|
|
3842
3843
|
return;
|
|
3843
3844
|
const j = h ?? null;
|
|
3844
3845
|
n(j ? Number(j) : null);
|
|
3845
|
-
}, [h, n]),
|
|
3846
|
+
}, [h, n]), m = q(null), [v, k] = D((e == null ? void 0 : e.toString()) ?? ""), f = T((j) => {
|
|
3846
3847
|
const x = j;
|
|
3847
3848
|
n && n(x == null || x === "" ? null : Number(x));
|
|
3848
3849
|
}, [n]), N = T((j) => {
|
|
@@ -3852,90 +3853,90 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3852
3853
|
f(x);
|
|
3853
3854
|
return;
|
|
3854
3855
|
}
|
|
3855
|
-
k(x),
|
|
3856
|
+
k(x), m.current !== null && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
3856
3857
|
f(x);
|
|
3857
3858
|
}, r);
|
|
3858
3859
|
}, [r, f]);
|
|
3859
3860
|
return O(() => {
|
|
3860
3861
|
k(e === null ? "" : e.toString());
|
|
3861
3862
|
}, [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: [
|
|
3862
|
-
/* @__PURE__ */ s.jsx(Q.Control, { type: "number", placeholder: i ?? o, size: l, value: r ?
|
|
3863
|
-
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ s.jsx(
|
|
3864
|
-
j.preventDefault(), j.stopPropagation(), f(((e ?? 0) -
|
|
3863
|
+
/* @__PURE__ */ s.jsx(Q.Control, { type: "number", placeholder: i ?? o, size: l, value: r ? v : e ?? "", onChange: N, className: `luminus-numeric-stepper ${p ?? ""}`, hidden: c, disabled: u ?? !1, step: g }),
|
|
3864
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ s.jsx(z, { size: "sm", onClick: (j) => {
|
|
3865
|
+
j.preventDefault(), j.stopPropagation(), f(((e ?? 0) - y).toString());
|
|
3865
3866
|
}, children: /* @__PURE__ */ s.jsx(lr, {}) }) }),
|
|
3866
|
-
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ s.jsx(
|
|
3867
|
-
j.preventDefault(), j.stopPropagation(), f(((e ?? 0) +
|
|
3867
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ s.jsx(z, { size: "sm", onClick: (j) => {
|
|
3868
|
+
j.preventDefault(), j.stopPropagation(), f(((e ?? 0) + y).toString());
|
|
3868
3869
|
}, children: /* @__PURE__ */ s.jsx(ur, {}) }) }),
|
|
3869
|
-
d && e && n && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(
|
|
3870
|
+
d && e && n && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3870
3871
|
] }) });
|
|
3871
3872
|
}, Ll = ({ InputContainer: t = me, formField: e, label: n, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c, className: u }) => {
|
|
3872
|
-
const { register: d, formState: h, setValue: p } = le(), [
|
|
3873
|
+
const { register: d, formState: h, setValue: p } = le(), [g, y] = D(void 0), [b, m] = D(!1);
|
|
3873
3874
|
O(() => {
|
|
3874
3875
|
const k = e.split(".");
|
|
3875
3876
|
let f = h.errors;
|
|
3876
3877
|
k.forEach((N) => {
|
|
3877
3878
|
f !== void 0 && (f = f[N]);
|
|
3878
|
-
}),
|
|
3879
|
+
}), y(f);
|
|
3879
3880
|
}, [h, e]), O(() => {
|
|
3880
|
-
h.isSubmitted &&
|
|
3881
|
+
h.isSubmitted && m(!0);
|
|
3881
3882
|
}, [h]);
|
|
3882
|
-
const
|
|
3883
|
-
return /* @__PURE__ */ s.jsxs(t, { isForCheckInput: !0, hidden: i, label: `${n}${a ? " *" : ""}`, isInvalid:
|
|
3883
|
+
const v = g !== void 0;
|
|
3884
|
+
return /* @__PURE__ */ s.jsxs(t, { isForCheckInput: !0, hidden: i, label: `${n}${a ? " *" : ""}`, isInvalid: v, withoutLabel: c, className: u, children: [
|
|
3884
3885
|
/* @__PURE__ */ s.jsx(Q.Check, { id: `check-${e}`, type: o ?? "checkbox", label: `${n}${a ? " *" : ""}`, ...d(e, {
|
|
3885
3886
|
onChange: () => {
|
|
3886
|
-
r && r.forEach((k) => p(k, null, { shouldDirty: !0, shouldValidate:
|
|
3887
|
+
r && r.forEach((k) => p(k, null, { shouldDirty: !0, shouldValidate: b }));
|
|
3887
3888
|
}
|
|
3888
|
-
}), isInvalid:
|
|
3889
|
-
|
|
3889
|
+
}), isInvalid: v, hidden: i, disabled: l, className: "w-100" }),
|
|
3890
|
+
g && /* @__PURE__ */ s.jsx(pe, { message: g.message })
|
|
3890
3891
|
] });
|
|
3891
3892
|
}, Yl = ({ InputContainer: t = me, label: e, formField: n, options: r, resetsFields: o, required: a, disabled: i, hidden: l, className: c }) => {
|
|
3892
|
-
const { register: u, formState: d, setValue: h, watch: p } = le(), [
|
|
3893
|
+
const { register: u, formState: d, setValue: h, watch: p } = le(), [g, y] = D(void 0), [b, m] = D(!1), v = G(() => r, [r]);
|
|
3893
3894
|
O(() => {
|
|
3894
3895
|
const f = n.split(".");
|
|
3895
3896
|
let N = d.errors;
|
|
3896
3897
|
f.forEach((j) => {
|
|
3897
3898
|
N !== void 0 && (N = N[j]);
|
|
3898
|
-
}),
|
|
3899
|
+
}), y(N);
|
|
3899
3900
|
}, [d, n]), O(() => {
|
|
3900
|
-
d.isSubmitted &&
|
|
3901
|
+
d.isSubmitted && m(!0);
|
|
3901
3902
|
}, [d]);
|
|
3902
|
-
const k =
|
|
3903
|
+
const k = g !== void 0;
|
|
3903
3904
|
return /* @__PURE__ */ s.jsxs(t, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: k, className: c, children: [
|
|
3904
|
-
|
|
3905
|
+
v.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, {
|
|
3905
3906
|
onChange: () => {
|
|
3906
|
-
o && o.forEach((N) => h(N, null, { shouldDirty: !0, shouldValidate:
|
|
3907
|
+
o && o.forEach((N) => h(N, null, { shouldDirty: !0, shouldValidate: b }));
|
|
3907
3908
|
}
|
|
3908
3909
|
}), isInvalid: k, hidden: l, disabled: i, className: "w-100" }, f.id)),
|
|
3909
|
-
|
|
3910
|
+
g && /* @__PURE__ */ s.jsx(pe, { message: g.message })
|
|
3910
3911
|
] });
|
|
3911
|
-
}, ql = ({ 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:
|
|
3912
|
-
const { register:
|
|
3912
|
+
}, ql = ({ 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: g }) => {
|
|
3913
|
+
const { register: y, formState: b, setValue: m, watch: v } = le(), [k, f] = D(void 0), [N, j] = D(!1), x = T(() => {
|
|
3913
3914
|
const I = i ?? null;
|
|
3914
|
-
|
|
3915
|
-
}, [i,
|
|
3915
|
+
m(e, (I == null ? void 0 : I.toString()) ?? "", { shouldDirty: !0, shouldValidate: N });
|
|
3916
|
+
}, [i, m, e, N]), C = T(() => {
|
|
3916
3917
|
const I = e.split(".");
|
|
3917
|
-
let S =
|
|
3918
|
+
let S = b.errors;
|
|
3918
3919
|
I.forEach((_) => {
|
|
3919
3920
|
S !== void 0 && (S = S[_]);
|
|
3920
3921
|
}), f(S);
|
|
3921
|
-
}, [
|
|
3922
|
+
}, [b, e]);
|
|
3922
3923
|
O(() => {
|
|
3923
3924
|
C();
|
|
3924
3925
|
}, [C]), O(() => {
|
|
3925
|
-
|
|
3926
|
-
}, [
|
|
3926
|
+
b.isSubmitted && j(!0);
|
|
3927
|
+
}, [b]);
|
|
3927
3928
|
const P = k !== void 0;
|
|
3928
|
-
return /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: P, className:
|
|
3929
|
-
/* @__PURE__ */ s.jsx(Q.Control, { as: "textarea", size: o, ...
|
|
3929
|
+
return /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: P, className: g, isForTextAreaInput: !0, children: [
|
|
3930
|
+
/* @__PURE__ */ s.jsx(Q.Control, { as: "textarea", size: o, ...y(e, {
|
|
3930
3931
|
setValueAs: (I) => I == null || I === "" ? null : I,
|
|
3931
3932
|
onChange: () => {
|
|
3932
|
-
r && r.forEach((I) =>
|
|
3933
|
+
r && r.forEach((I) => m(I, null, { shouldDirty: !0, shouldValidate: N }));
|
|
3933
3934
|
}
|
|
3934
3935
|
}), isInvalid: P, hidden: c, disabled: u, rows: d ?? 2, className: "w-100", ...p }),
|
|
3935
|
-
a &&
|
|
3936
|
+
a && v(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ s.jsx(ce, {}) }) }),
|
|
3936
3937
|
k && /* @__PURE__ */ s.jsx(pe, { message: k.message })
|
|
3937
3938
|
] });
|
|
3938
|
-
}, Hl = ({ 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:
|
|
3939
|
+
}, Hl = ({ 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: g, step: y, CustomOnChangeComponent: b, noSelectOnFocus: m, className: v }) => {
|
|
3939
3940
|
const { register: k, formState: f, setValue: N, watch: j } = le(), [x, C] = D(void 0), [P, I] = D(!1), S = T(() => {
|
|
3940
3941
|
const A = c ?? null;
|
|
3941
3942
|
e === "number" ? N(n, A !== null ? Number(A) : null, {
|
|
@@ -3954,32 +3955,32 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3954
3955
|
}, [_]), O(() => {
|
|
3955
3956
|
f.isSubmitted && I(!0);
|
|
3956
3957
|
}, [f]);
|
|
3957
|
-
const $ = x !== void 0, [F, W] = D(!1), te = j(n),
|
|
3958
|
-
return /* @__PURE__ */ s.jsxs(t, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: p, isInvalid: $, className:
|
|
3958
|
+
const $ = x !== void 0, [F, W] = D(!1), te = j(n), K = wn(e, te ?? null, F);
|
|
3959
|
+
return /* @__PURE__ */ s.jsxs(t, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: p, isInvalid: $, className: v, children: [
|
|
3959
3960
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3960
|
-
/* @__PURE__ */ s.jsx(Q.Control, { type:
|
|
3961
|
-
W(!0), !
|
|
3961
|
+
/* @__PURE__ */ s.jsx(Q.Control, { type: K, placeholder: o ?? r, size: a, onFocus: (A) => {
|
|
3962
|
+
W(!0), !m && A.target.select();
|
|
3962
3963
|
}, ...k(n, {
|
|
3963
3964
|
setValueAs: (A) => e === "number" ? A == null || A === "" ? null : Number(A) : A == null || A === "" ? null : A,
|
|
3964
3965
|
onChange: () => {
|
|
3965
3966
|
i && i.forEach((A) => N(A, null, { shouldDirty: !0, shouldValidate: P }));
|
|
3966
3967
|
},
|
|
3967
3968
|
onBlur: () => W(!1)
|
|
3968
|
-
}), isInvalid: $, hidden: d, disabled: h, list:
|
|
3969
|
-
|
|
3969
|
+
}), isInvalid: $, hidden: d, disabled: h, list: g, className: "w-100", step: y }),
|
|
3970
|
+
b && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: b })
|
|
3970
3971
|
] }),
|
|
3971
|
-
l && j(n) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(
|
|
3972
|
+
l && j(n) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ s.jsx(ce, {}) }) }),
|
|
3972
3973
|
x && /* @__PURE__ */ s.jsx(pe, { message: x.message })
|
|
3973
3974
|
] });
|
|
3974
|
-
}, Bl = ({ 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:
|
|
3975
|
-
const { formState: x, setValue: C, watch: P, control: I } = le(), [S, _] = D(void 0), [$, F] = D(!1), [W, te] = D(!1),
|
|
3975
|
+
}, Bl = ({ 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: g, dropdownItemsNameWidth: y, isLoading: b, withoutLabel: m, additionalColumns: v, CustomOnChangeComponent: k, displayIdAsName: f, onSelect: N, className: j }) => {
|
|
3976
|
+
const { formState: x, setValue: C, watch: P, control: I } = le(), [S, _] = D(void 0), [$, F] = D(!1), [W, te] = D(!1), K = P(e) ?? null, A = K === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : P(`${e}-DropdownName`), J = G(() => K == null ? null : { id: K ?? null, name: A ?? "" }, [K, A]), ne = T(() => {
|
|
3976
3977
|
const H = e.split(".");
|
|
3977
3978
|
let ue = x.errors;
|
|
3978
3979
|
H.forEach((Xe) => {
|
|
3979
3980
|
ue !== void 0 && (ue = ue[Xe]);
|
|
3980
3981
|
}), _(ue);
|
|
3981
3982
|
}, [x, e]), V = T((H) => {
|
|
3982
|
-
if ((H == null ? void 0 : H.id) ===
|
|
3983
|
+
if ((H == null ? void 0 : H.id) === K)
|
|
3983
3984
|
return;
|
|
3984
3985
|
if (N && N(H), a && a.forEach((Xe) => C(Xe, null, { shouldDirty: !0, shouldValidate: W })), H === null) {
|
|
3985
3986
|
C(e, null, {
|
|
@@ -3993,7 +3994,7 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
3993
3994
|
shouldDirty: !0,
|
|
3994
3995
|
shouldValidate: W
|
|
3995
3996
|
}), C(`${e}-DropdownName`, H.name ?? "");
|
|
3996
|
-
}, [C, e, W, i, a,
|
|
3997
|
+
}, [C, e, W, i, a, K, N]), E = T((H) => {
|
|
3997
3998
|
F(!1), V(H);
|
|
3998
3999
|
}, [V]), M = T(() => {
|
|
3999
4000
|
F(!1);
|
|
@@ -4004,49 +4005,49 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
4004
4005
|
x.isSubmitted && te(!0);
|
|
4005
4006
|
}, [x]);
|
|
4006
4007
|
const X = q(null), jt = S !== void 0, Ae = p !== void 0, wr = Ae && J !== null;
|
|
4007
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel:
|
|
4008
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: m, isInvalid: jt, inputContainerClassName: w({ "luminus-dropdown-select-open": $ }), className: j, children: [
|
|
4008
4009
|
/* @__PURE__ */ s.jsxs(gr, { currentSelection: J, selectedItemNavigateTo: p, children: [
|
|
4009
|
-
f && (J == null ? void 0 : J.name) && /* @__PURE__ */ s.jsx(
|
|
4010
|
+
f && (J == null ? void 0 : J.name) && /* @__PURE__ */ s.jsx(U, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: J.name }),
|
|
4010
4011
|
/* @__PURE__ */ s.jsx(mn, { control: I, name: e, render: () => /* @__PURE__ */ s.jsx(Q.Select, { size: r, onMouseDown: (H) => {
|
|
4011
4012
|
H.currentTarget.focus(), H.preventDefault();
|
|
4012
4013
|
}, onClick: () => {
|
|
4013
4014
|
!Ae && !u && F(!0);
|
|
4014
|
-
}, ref: X, value:
|
|
4015
|
+
}, ref: X, value: K ?? "", onChange: () => {
|
|
4015
4016
|
}, isInvalid: jt, hidden: c, className: w("w-100", {
|
|
4016
4017
|
"luminus-dropdown-picker-disabled": u,
|
|
4017
4018
|
"luminus-dropdown-picker-link": wr
|
|
4018
|
-
}), children: /* @__PURE__ */ s.jsx("option", { value:
|
|
4019
|
+
}), children: /* @__PURE__ */ s.jsx("option", { value: K, children: f ? K : (A == null ? void 0 : A.length) > 0 ? A : K }) }) }),
|
|
4019
4020
|
k || !u && Ae ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
4020
|
-
!k && !u && Ae && /* @__PURE__ */ s.jsx(
|
|
4021
|
+
!k && !u && Ae && /* @__PURE__ */ s.jsx(z, { size: "sm", color: "secondary", onClick: (H) => {
|
|
4021
4022
|
H.preventDefault(), H.stopPropagation(), F(!0);
|
|
4022
4023
|
}, children: /* @__PURE__ */ s.jsx(ln, {}) }),
|
|
4023
4024
|
k ?? null
|
|
4024
4025
|
] }) : null
|
|
4025
4026
|
] }),
|
|
4026
4027
|
S && /* @__PURE__ */ s.jsx(pe, { message: S.message }),
|
|
4027
|
-
X.current && /* @__PURE__ */ s.jsx(_t, { show: $, onCancel: M, items: d, currentSelection: J, onSelectionChange: E, onSearchQueryChange: h, texts:
|
|
4028
|
+
X.current && /* @__PURE__ */ s.jsx(_t, { show: $, onCancel: M, items: d, currentSelection: J, onSelectionChange: E, onSearchQueryChange: h, texts: g, itemsNameWidth: y, additionalColumns: v, displayIdAsName: f, isLoading: b, disabled: u, inputRef: X })
|
|
4028
4029
|
] }) });
|
|
4029
4030
|
}, 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 }) => {
|
|
4030
|
-
const { watch:
|
|
4031
|
-
|
|
4032
|
-
}, [
|
|
4031
|
+
const { watch: g, setValue: y, register: b, formState: m } = le(), [v, k] = D(!1), [f, N] = D(void 0), j = T(() => {
|
|
4032
|
+
y(n, "");
|
|
4033
|
+
}, [y, n]), x = T(() => {
|
|
4033
4034
|
const P = n.split(".");
|
|
4034
|
-
let I =
|
|
4035
|
+
let I = m.errors;
|
|
4035
4036
|
P.forEach((S) => {
|
|
4036
4037
|
I !== void 0 && (I = I[S]);
|
|
4037
4038
|
}), N(I);
|
|
4038
|
-
}, [
|
|
4039
|
+
}, [m, n]);
|
|
4039
4040
|
O(x, [x]), O(() => {
|
|
4040
|
-
|
|
4041
|
-
}, [
|
|
4041
|
+
m.isSubmitted && k(!0);
|
|
4042
|
+
}, [m]);
|
|
4042
4043
|
const C = f !== void 0;
|
|
4043
4044
|
return /* @__PURE__ */ s.jsxs(t, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: C, className: p, children: [
|
|
4044
|
-
/* @__PURE__ */ s.jsx(hn, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: C, hidden: r, disabled: i, className: "w-100", ...
|
|
4045
|
+
/* @__PURE__ */ s.jsx(hn, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: C, hidden: r, disabled: i, className: "w-100", ...b(n, {
|
|
4045
4046
|
onChange: () => {
|
|
4046
|
-
c && c.forEach((P) =>
|
|
4047
|
+
c && c.forEach((P) => y(P, null, { shouldDirty: !0, shouldValidate: v }));
|
|
4047
4048
|
}
|
|
4048
4049
|
}) }),
|
|
4049
|
-
l &&
|
|
4050
|
+
l && g(n) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ s.jsx(ce, {}) }) }),
|
|
4050
4051
|
f && /* @__PURE__ */ s.jsx(pe, { message: f.message })
|
|
4051
4052
|
] });
|
|
4052
4053
|
}, Gl = ({ children: t, onStorno: e, noSpacer: n }) => {
|
|
@@ -4054,46 +4055,46 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
4054
4055
|
return O(() => {
|
|
4055
4056
|
a(Object.keys(r.dirtyFields).length > 0);
|
|
4056
4057
|
}, [r]), o ? /* @__PURE__ */ s.jsx(Qa, { onStorno: e, noSpacer: n, children: t }) : null;
|
|
4057
|
-
}, Ul = ({ 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:
|
|
4058
|
-
const { customSelectTexts:
|
|
4058
|
+
}, Ul = ({ 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: g }) => {
|
|
4059
|
+
const { customSelectTexts: y } = L(ae), { formState: b, setValue: m, watch: v, control: k } = le(), [f, N] = D(void 0), [j, x] = D(!1), [C, P] = D(!1), [I, S] = D(""), _ = v(n), $ = G(() => e.find((E) => E.id === _) ?? null, [e, _]), F = T(() => {
|
|
4059
4060
|
const E = n.split(".");
|
|
4060
|
-
let M =
|
|
4061
|
+
let M = b.errors;
|
|
4061
4062
|
E.forEach((X) => {
|
|
4062
4063
|
M !== void 0 && (M = M[X]);
|
|
4063
4064
|
}), N(M);
|
|
4064
|
-
}, [
|
|
4065
|
+
}, [b, n]), W = T((E) => {
|
|
4065
4066
|
if ((E == null ? void 0 : E.id) === _)
|
|
4066
4067
|
return;
|
|
4067
|
-
if (a && a.forEach((X) =>
|
|
4068
|
-
|
|
4068
|
+
if (a && a.forEach((X) => m(X, null, { shouldDirty: !0, shouldValidate: C })), E === null) {
|
|
4069
|
+
m(n, null, {
|
|
4069
4070
|
shouldDirty: !0,
|
|
4070
4071
|
shouldValidate: C
|
|
4071
4072
|
});
|
|
4072
4073
|
return;
|
|
4073
4074
|
}
|
|
4074
4075
|
let M = null;
|
|
4075
|
-
i ? M = (E == null ? void 0 : E.id) !== null && (E == null ? void 0 : E.id) !== "" ? parseInt(E.id.toString(), 10) : null : M = E.id === null || E.id === void 0 || E.id === "" ? null : E.id,
|
|
4076
|
+
i ? M = (E == null ? void 0 : E.id) !== null && (E == null ? void 0 : E.id) !== "" ? parseInt(E.id.toString(), 10) : null : M = E.id === null || E.id === void 0 || E.id === "" ? null : E.id, m(n, M, {
|
|
4076
4077
|
shouldDirty: !0,
|
|
4077
4078
|
shouldValidate: C
|
|
4078
4079
|
});
|
|
4079
|
-
}, [
|
|
4080
|
+
}, [m, n, i, a, _, C]), te = T((E) => {
|
|
4080
4081
|
x(!1), W(E);
|
|
4081
|
-
}, [W]),
|
|
4082
|
+
}, [W]), K = T((E) => {
|
|
4082
4083
|
S(E);
|
|
4083
4084
|
}, []);
|
|
4084
4085
|
O(() => {
|
|
4085
4086
|
F();
|
|
4086
4087
|
}, [F]), O(() => {
|
|
4087
|
-
|
|
4088
|
-
}, [
|
|
4088
|
+
b.isSubmitted && P(!0);
|
|
4089
|
+
}, [b]);
|
|
4089
4090
|
const A = T((E) => {
|
|
4090
4091
|
var M;
|
|
4091
4092
|
return E === null ? "" : !E.name || E.name.length === 0 ? ((M = E.id) == null ? void 0 : M.toString()) ?? "" : p ? `${E.name} (${E.id})` : E.name;
|
|
4092
|
-
}, [p]), J =
|
|
4093
|
+
}, [p]), J = G(() => e.map((E) => ({
|
|
4093
4094
|
id: E.id,
|
|
4094
4095
|
name: A(E)
|
|
4095
4096
|
})).filter((E) => lo(E.name, I)).sort((E, M) => h ? 0 : (E.name ?? "").localeCompare(M.name ?? "")), [e, h, I, A]), ne = q(null), V = f !== void 0;
|
|
4096
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: V, inputContainerClassName: w({ "luminus-dropdown-select-open": j }), className:
|
|
4097
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: V, inputContainerClassName: w({ "luminus-dropdown-select-open": j }), className: g, children: [
|
|
4097
4098
|
/* @__PURE__ */ s.jsx(mn, { control: k, name: n, render: () => /* @__PURE__ */ s.jsx(Q.Select, { size: o, onMouseDown: (E) => {
|
|
4098
4099
|
E.currentTarget.focus(), E.preventDefault();
|
|
4099
4100
|
}, onClick: () => {
|
|
@@ -4101,44 +4102,44 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
4101
4102
|
}, ref: ne, value: _ ?? "", onChange: () => {
|
|
4102
4103
|
}, isInvalid: V, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: ($ == null ? void 0 : $.id) ?? "", children: A($) }) }) }),
|
|
4103
4104
|
f && /* @__PURE__ */ s.jsx(pe, { message: f.message }),
|
|
4104
|
-
ne.current && /* @__PURE__ */ s.jsx(_t, { show: j, onCancel: () => x(!1), items: J, currentSelection: $ ?? null, onSelectionChange: te, onSearchQueryChange:
|
|
4105
|
+
ne.current && /* @__PURE__ */ s.jsx(_t, { show: j, onCancel: () => x(!1), items: J, currentSelection: $ ?? null, onSelectionChange: te, onSearchQueryChange: K, texts: y, disabled: u, inputRef: ne, autoHideSearch: !0, allItemsLength: e.length })
|
|
4105
4106
|
] }) });
|
|
4106
|
-
}, zl = ({ 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:
|
|
4107
|
-
const { register:
|
|
4107
|
+
}, zl = ({ 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: g = 1, className: y }) => {
|
|
4108
|
+
const { register: b, formState: m, setValue: v, watch: k } = le(), [f, N] = D(void 0), [j, x] = D(!1), C = T(() => {
|
|
4108
4109
|
const _ = l ?? null;
|
|
4109
|
-
|
|
4110
|
+
v(e, _ !== null ? Number(_) : null, {
|
|
4110
4111
|
shouldDirty: !0,
|
|
4111
4112
|
shouldValidate: j
|
|
4112
4113
|
});
|
|
4113
|
-
}, [l,
|
|
4114
|
+
}, [l, v, e, j]), P = T(() => {
|
|
4114
4115
|
const _ = e.split(".");
|
|
4115
|
-
let $ =
|
|
4116
|
+
let $ = m.errors;
|
|
4116
4117
|
_.forEach((F) => {
|
|
4117
4118
|
$ !== void 0 && ($ = $[F]);
|
|
4118
4119
|
}), N($);
|
|
4119
|
-
}, [
|
|
4120
|
+
}, [m, e]);
|
|
4120
4121
|
O(() => {
|
|
4121
4122
|
P();
|
|
4122
4123
|
}, [P]), O(() => {
|
|
4123
|
-
|
|
4124
|
-
}, [
|
|
4124
|
+
m.isSubmitted && x(!0);
|
|
4125
|
+
}, [m]);
|
|
4125
4126
|
const I = f !== void 0, S = k(e);
|
|
4126
|
-
return /* @__PURE__ */ s.jsxs(t, { label: `${n}${c ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: I, className:
|
|
4127
|
+
return /* @__PURE__ */ s.jsxs(t, { label: `${n}${c ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: I, className: y, children: [
|
|
4127
4128
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
4128
|
-
/* @__PURE__ */ s.jsx(Q.Control, { type: "number", placeholder: r ?? n, size: o, ...
|
|
4129
|
+
/* @__PURE__ */ s.jsx(Q.Control, { type: "number", placeholder: r ?? n, size: o, ...b(e, {
|
|
4129
4130
|
setValueAs: (_) => _ == null || _ === "" ? null : Number(_),
|
|
4130
4131
|
onChange: () => {
|
|
4131
|
-
a && a.forEach((_) =>
|
|
4132
|
+
a && a.forEach((_) => v(_, null, { shouldDirty: !0, shouldValidate: j }));
|
|
4132
4133
|
}
|
|
4133
4134
|
}), isInvalid: I, hidden: u, disabled: d, className: "w-100 luminus-numeric-stepper", step: p }),
|
|
4134
|
-
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ s.jsx(
|
|
4135
|
-
_.preventDefault(), _.stopPropagation(),
|
|
4135
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ s.jsx(z, { size: "sm", onClick: (_) => {
|
|
4136
|
+
_.preventDefault(), _.stopPropagation(), v(e, ((S ? Number(S) : 0) - g).toString(), { shouldDirty: !0, shouldValidate: j });
|
|
4136
4137
|
}, children: /* @__PURE__ */ s.jsx(lr, {}) }) }),
|
|
4137
|
-
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ s.jsx(
|
|
4138
|
-
_.preventDefault(), _.stopPropagation(),
|
|
4138
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ s.jsx(z, { size: "sm", onClick: (_) => {
|
|
4139
|
+
_.preventDefault(), _.stopPropagation(), v(e, ((S ? Number(S) : 0) + g).toString(), { shouldDirty: !0, shouldValidate: j });
|
|
4139
4140
|
}, children: /* @__PURE__ */ s.jsx(ur, {}) }) })
|
|
4140
4141
|
] }),
|
|
4141
|
-
i && k(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(
|
|
4142
|
+
i && k(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(ce, {}) }) }),
|
|
4142
4143
|
f && /* @__PURE__ */ s.jsx(pe, { message: f.message })
|
|
4143
4144
|
] });
|
|
4144
4145
|
}, Kl = ({ cell: { value: t } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: t ? /* @__PURE__ */ s.jsx(cn, { name: t, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), sl = "_tab-panel_d8l8q_1", al = "_full-height-no-overflow_d8l8q_5", il = "_disabled_d8l8q_12", ot = {
|
|
@@ -4160,7 +4161,7 @@ const Ac = "_lightbox_14acg_1", Mc = "_show_14acg_16", Fc = "_header_14acg_20",
|
|
|
4160
4161
|
disabled: ll
|
|
4161
4162
|
}, Jl = ({ eventKey: t, className: e, onClick: n, disabled: r, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: w("luminus-tab text-primary rounded", Xt.tab, e, {
|
|
4162
4163
|
disabled: r
|
|
4163
|
-
}, { [Xt.disabled]: r }), onClick: () => n && !r && n(t), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(
|
|
4164
|
+
}, { [Xt.disabled]: r }), onClick: () => n && !r && n(t), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(U, { variant: "h6", className: "text-primary", children: o }) : o });
|
|
4164
4165
|
export {
|
|
4165
4166
|
Sl as Alert,
|
|
4166
4167
|
xl as ApiFileDownloadButton,
|
|
@@ -4178,7 +4179,7 @@ export {
|
|
|
4178
4179
|
Ki as DropdownItem,
|
|
4179
4180
|
Fl as DropdownPicker,
|
|
4180
4181
|
Qi as DropdownToggle,
|
|
4181
|
-
|
|
4182
|
+
yi as ErrorBoundary,
|
|
4182
4183
|
ir as FileUploadContextButton,
|
|
4183
4184
|
kl as FileUploadDropdownItem,
|
|
4184
4185
|
Qc as FloatingActionContainer,
|
|
@@ -4195,13 +4196,13 @@ export {
|
|
|
4195
4196
|
ql as HookFormTextAreaInput,
|
|
4196
4197
|
Hl as HookFormTextInput,
|
|
4197
4198
|
Dl as HtmlTooltip,
|
|
4198
|
-
|
|
4199
|
+
z as IconButton,
|
|
4199
4200
|
Ol as ImgApi,
|
|
4200
4201
|
pr as ImgDirect,
|
|
4201
4202
|
pe as InvalidFeedback,
|
|
4202
4203
|
Tt as Loading,
|
|
4203
4204
|
uo as LoadingBlock,
|
|
4204
|
-
|
|
4205
|
+
yl as MonthPicker,
|
|
4205
4206
|
tu as NoInputContainer,
|
|
4206
4207
|
Rl as NumericStepperInput,
|
|
4207
4208
|
$l as PhotoLibrary,
|
|
@@ -4218,10 +4219,10 @@ export {
|
|
|
4218
4219
|
Wl as TextAreaInput,
|
|
4219
4220
|
Al as TextInput,
|
|
4220
4221
|
El as Timeline,
|
|
4221
|
-
|
|
4222
|
+
U as Typography,
|
|
4222
4223
|
nu as UserAvatarToggle,
|
|
4223
4224
|
Kl as UserAvatarValueFormat,
|
|
4224
4225
|
Tl as VersionInfo,
|
|
4225
4226
|
Vt as WidgetCard,
|
|
4226
|
-
|
|
4227
|
+
vl as YearPicker
|
|
4227
4228
|
};
|