react-luminus-components 1.2.75 → 1.2.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as s, t as re, c as
|
|
1
|
+
import { j as s, t as re, c as ie, g as sr, T as ar, a as ir, b as x, s as bt, E as cr, d as lr, e as ur, f as dr, h as hr, u as V, i as ue, k as Ut, F as _t, l as mr, m as fr, n as pr, o as gr, p as wr, q as xr, r as yr, v as vr, w as it, x as ct, y as br, z as _r, P as be, A as de, B as jr, C as kr, D as lt, S as jt, G as De, H as Pe, I as ut, J as Cr, K as zt, L as $e, M as Le, O as kt, N as Nr, Q as oe, R as $r, U as Ir, V as Kt, W as dt, X as ht, Y as z, Z as Sr, _ as Qt, $ as Tr, a0 as Xt, a1 as Er, a2 as Or, a3 as Mr, a4 as Dr, a5 as Jt, a6 as je, a7 as Pr, a8 as Ar, a9 as Fr, aa as Wr, ab as Rr, ac as Je, ad as Ge, ae as Zt, af as we, ag as Lr } from "./NoInputContainer-CzSDOA31.js";
|
|
2
2
|
import { ai as il, ah as cl } from "./NoInputContainer-CzSDOA31.js";
|
|
3
3
|
import * as A from "react";
|
|
4
4
|
import Z, { useCallback as O, useMemo as Q, useEffect as D, useRef as Y, useState as P, useReducer as en, useContext as L, createElement as qr } from "react";
|
|
5
|
-
import { d as Yr, C as Hr, a as tn, u as Br, q as
|
|
5
|
+
import { d as Yr, C as Hr, a as tn, u as Br, q as Ct, E as Ae, M as Fe, L as Gr } from "./EventType-CYj5c_TM.js";
|
|
6
6
|
import { useFormContext as he, Controller as nn } from "react-hook-form";
|
|
7
7
|
import { m as Vr, a as rn } from "./textUtils-BbxuIsKq.js";
|
|
8
8
|
import { u as on, a as sn, b as an } from "./useFormControlType-BAFqxupC.js";
|
|
@@ -21,10 +21,10 @@ const Ic = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
|
21
21
|
function cn(t, e) {
|
|
22
22
|
const n = re(t);
|
|
23
23
|
if (isNaN(e))
|
|
24
|
-
return
|
|
24
|
+
return ie(t, NaN);
|
|
25
25
|
if (!e)
|
|
26
26
|
return n;
|
|
27
|
-
const r = n.getDate(), o =
|
|
27
|
+
const r = n.getDate(), o = ie(t, n.getTime());
|
|
28
28
|
o.setMonth(n.getMonth() + e + 1, 0);
|
|
29
29
|
const a = o.getDate();
|
|
30
30
|
return r >= a ? o : (n.setFullYear(
|
|
@@ -34,30 +34,30 @@ function cn(t, e) {
|
|
|
34
34
|
), n);
|
|
35
35
|
}
|
|
36
36
|
let Ur = {};
|
|
37
|
-
function
|
|
37
|
+
function Ve() {
|
|
38
38
|
return Ur;
|
|
39
39
|
}
|
|
40
40
|
function Se(t, e) {
|
|
41
41
|
var l, c, u, d;
|
|
42
|
-
const n =
|
|
42
|
+
const n = Ve(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.weekStartsOn) ?? n.weekStartsOn ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = re(t), a = o.getDay(), i = (a < r ? 7 : 0) + a - r;
|
|
43
43
|
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function qe(t) {
|
|
46
46
|
return Se(t, { weekStartsOn: 1 });
|
|
47
47
|
}
|
|
48
48
|
function ln(t) {
|
|
49
|
-
const e = re(t), n = e.getFullYear(), r =
|
|
49
|
+
const e = re(t), n = e.getFullYear(), r = ie(t, 0);
|
|
50
50
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
51
|
-
const o =
|
|
51
|
+
const o = qe(r), a = ie(t, 0);
|
|
52
52
|
a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0);
|
|
53
|
-
const i =
|
|
53
|
+
const i = qe(a);
|
|
54
54
|
return e.getTime() >= o.getTime() ? n + 1 : e.getTime() >= i.getTime() ? n : n - 1;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Nt(t) {
|
|
57
57
|
const e = re(t);
|
|
58
58
|
return e.setHours(0, 0, 0, 0), e;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function $t(t) {
|
|
61
61
|
const e = re(t), n = new Date(
|
|
62
62
|
Date.UTC(
|
|
63
63
|
e.getFullYear(),
|
|
@@ -72,12 +72,12 @@ function Nt(t) {
|
|
|
72
72
|
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
73
73
|
}
|
|
74
74
|
function zr(t, e) {
|
|
75
|
-
const n =
|
|
75
|
+
const n = Nt(t), r = Nt(e), o = +n - $t(n), a = +r - $t(r);
|
|
76
76
|
return Math.round((o - a) / Vr);
|
|
77
77
|
}
|
|
78
78
|
function Kr(t) {
|
|
79
|
-
const e = ln(t), n =
|
|
80
|
-
return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0),
|
|
79
|
+
const e = ln(t), n = ie(t, 0);
|
|
80
|
+
return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), qe(n);
|
|
81
81
|
}
|
|
82
82
|
function Qr(t, e) {
|
|
83
83
|
return cn(t, e * 12);
|
|
@@ -92,7 +92,7 @@ function Jr(t) {
|
|
|
92
92
|
return !isNaN(Number(e));
|
|
93
93
|
}
|
|
94
94
|
function Zr(t) {
|
|
95
|
-
const e = re(t), n =
|
|
95
|
+
const e = re(t), n = ie(t, 0);
|
|
96
96
|
return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
97
97
|
}
|
|
98
98
|
const eo = {
|
|
@@ -162,7 +162,7 @@ const eo = {
|
|
|
162
162
|
const o = eo[t];
|
|
163
163
|
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;
|
|
164
164
|
};
|
|
165
|
-
function
|
|
165
|
+
function Ze(t) {
|
|
166
166
|
return (e = {}) => {
|
|
167
167
|
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
168
168
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
@@ -184,15 +184,15 @@ const no = {
|
|
|
184
184
|
medium: "{{date}}, {{time}}",
|
|
185
185
|
short: "{{date}}, {{time}}"
|
|
186
186
|
}, so = {
|
|
187
|
-
date:
|
|
187
|
+
date: Ze({
|
|
188
188
|
formats: no,
|
|
189
189
|
defaultWidth: "full"
|
|
190
190
|
}),
|
|
191
|
-
time:
|
|
191
|
+
time: Ze({
|
|
192
192
|
formats: ro,
|
|
193
193
|
defaultWidth: "full"
|
|
194
194
|
}),
|
|
195
|
-
dateTime:
|
|
195
|
+
dateTime: Ze({
|
|
196
196
|
formats: oo,
|
|
197
197
|
defaultWidth: "full"
|
|
198
198
|
})
|
|
@@ -533,21 +533,21 @@ function Do(t) {
|
|
|
533
533
|
return zr(e, Zr(e)) + 1;
|
|
534
534
|
}
|
|
535
535
|
function Po(t) {
|
|
536
|
-
const e = re(t), n = +
|
|
536
|
+
const e = re(t), n = +qe(e) - +Kr(e);
|
|
537
537
|
return Math.round(n / rn) + 1;
|
|
538
538
|
}
|
|
539
539
|
function un(t, e) {
|
|
540
540
|
var d, h, m, p;
|
|
541
|
-
const n = re(t), r = n.getFullYear(), o =
|
|
541
|
+
const n = re(t), r = n.getFullYear(), o = Ve(), 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 ?? ((p = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, i = ie(t, 0);
|
|
542
542
|
i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
543
|
-
const l = Se(i, e), c =
|
|
543
|
+
const l = Se(i, e), c = ie(t, 0);
|
|
544
544
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
545
545
|
const u = Se(c, e);
|
|
546
546
|
return n.getTime() >= l.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
|
|
547
547
|
}
|
|
548
548
|
function Ao(t, e) {
|
|
549
549
|
var l, c, u, d;
|
|
550
|
-
const n =
|
|
550
|
+
const n = Ve(), 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 = un(t, e), a = ie(t, 0);
|
|
551
551
|
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), Se(a, e);
|
|
552
552
|
}
|
|
553
553
|
function Fo(t, e) {
|
|
@@ -621,7 +621,7 @@ const le = {
|
|
|
621
621
|
afternoon: "afternoon",
|
|
622
622
|
evening: "evening",
|
|
623
623
|
night: "night"
|
|
624
|
-
},
|
|
624
|
+
}, It = {
|
|
625
625
|
// Era
|
|
626
626
|
G: function(t, e, n) {
|
|
627
627
|
const r = t.getFullYear() > 0 ? 1 : 0;
|
|
@@ -1047,7 +1047,7 @@ const le = {
|
|
|
1047
1047
|
return "Z";
|
|
1048
1048
|
switch (e) {
|
|
1049
1049
|
case "X":
|
|
1050
|
-
return
|
|
1050
|
+
return Tt(r);
|
|
1051
1051
|
case "XXXX":
|
|
1052
1052
|
case "XX":
|
|
1053
1053
|
return ge(r);
|
|
@@ -1062,7 +1062,7 @@ const le = {
|
|
|
1062
1062
|
const r = t.getTimezoneOffset();
|
|
1063
1063
|
switch (e) {
|
|
1064
1064
|
case "x":
|
|
1065
|
-
return
|
|
1065
|
+
return Tt(r);
|
|
1066
1066
|
case "xxxx":
|
|
1067
1067
|
case "xx":
|
|
1068
1068
|
return ge(r);
|
|
@@ -1079,7 +1079,7 @@ const le = {
|
|
|
1079
1079
|
case "O":
|
|
1080
1080
|
case "OO":
|
|
1081
1081
|
case "OOO":
|
|
1082
|
-
return "GMT" +
|
|
1082
|
+
return "GMT" + St(r, ":");
|
|
1083
1083
|
case "OOOO":
|
|
1084
1084
|
default:
|
|
1085
1085
|
return "GMT" + ge(r, ":");
|
|
@@ -1092,7 +1092,7 @@ const le = {
|
|
|
1092
1092
|
case "z":
|
|
1093
1093
|
case "zz":
|
|
1094
1094
|
case "zzz":
|
|
1095
|
-
return "GMT" +
|
|
1095
|
+
return "GMT" + St(r, ":");
|
|
1096
1096
|
case "zzzz":
|
|
1097
1097
|
default:
|
|
1098
1098
|
return "GMT" + ge(r, ":");
|
|
@@ -1109,18 +1109,18 @@ const le = {
|
|
|
1109
1109
|
return q(r, e.length);
|
|
1110
1110
|
}
|
|
1111
1111
|
};
|
|
1112
|
-
function
|
|
1112
|
+
function St(t, e = "") {
|
|
1113
1113
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), o = Math.trunc(r / 60), a = r % 60;
|
|
1114
1114
|
return a === 0 ? n + String(o) : n + String(o) + e + q(a, 2);
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function Tt(t, e) {
|
|
1117
1117
|
return t % 60 === 0 ? (t > 0 ? "-" : "+") + q(Math.abs(t) / 60, 2) : ge(t, e);
|
|
1118
1118
|
}
|
|
1119
1119
|
function ge(t, e = "") {
|
|
1120
1120
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), o = q(Math.trunc(r / 60), 2), a = q(r % 60, 2);
|
|
1121
1121
|
return n + o + e + a;
|
|
1122
1122
|
}
|
|
1123
|
-
const
|
|
1123
|
+
const Et = (t, e) => {
|
|
1124
1124
|
switch (t) {
|
|
1125
1125
|
case "P":
|
|
1126
1126
|
return e.date({ width: "short" });
|
|
@@ -1147,7 +1147,7 @@ const Tt = (t, e) => {
|
|
|
1147
1147
|
}, Wo = (t, e) => {
|
|
1148
1148
|
const n = t.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
|
|
1149
1149
|
if (!o)
|
|
1150
|
-
return
|
|
1150
|
+
return Et(t, e);
|
|
1151
1151
|
let a;
|
|
1152
1152
|
switch (r) {
|
|
1153
1153
|
case "P":
|
|
@@ -1164,7 +1164,7 @@ const Tt = (t, e) => {
|
|
|
1164
1164
|
a = e.dateTime({ width: "full" });
|
|
1165
1165
|
break;
|
|
1166
1166
|
}
|
|
1167
|
-
return a.replace("{{date}}",
|
|
1167
|
+
return a.replace("{{date}}", Et(r, e)).replace("{{time}}", dn(o, e));
|
|
1168
1168
|
}, Ro = {
|
|
1169
1169
|
p: dn,
|
|
1170
1170
|
P: Wo
|
|
@@ -1187,7 +1187,7 @@ function Vo(t, e, n) {
|
|
|
1187
1187
|
const Uo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ko = /^'([^]*?)'?$/, Qo = /''/g, Xo = /[a-zA-Z]/;
|
|
1188
1188
|
function hn(t, e, n) {
|
|
1189
1189
|
var d, h, m, p, b, w, f, j;
|
|
1190
|
-
const r =
|
|
1190
|
+
const r = Ve(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Mo, 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 ?? ((p = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((w = (b = n == null ? void 0 : n.locale) == null ? void 0 : b.options) == null ? void 0 : w.weekStartsOn) ?? r.weekStartsOn ?? ((j = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : j.weekStartsOn) ?? 0, l = re(t);
|
|
1191
1191
|
if (!Jr(l))
|
|
1192
1192
|
throw new RangeError("Invalid time value");
|
|
1193
1193
|
let c = e.match(zo).map((v) => {
|
|
@@ -1203,7 +1203,7 @@ function hn(t, e, n) {
|
|
|
1203
1203
|
const g = v[0];
|
|
1204
1204
|
if (g === "'")
|
|
1205
1205
|
return { isToken: !1, value: Jo(v) };
|
|
1206
|
-
if (
|
|
1206
|
+
if (It[g])
|
|
1207
1207
|
return { isToken: !0, value: v };
|
|
1208
1208
|
if (g.match(Xo))
|
|
1209
1209
|
throw new RangeError(
|
|
@@ -1222,7 +1222,7 @@ function hn(t, e, n) {
|
|
|
1222
1222
|
return v.value;
|
|
1223
1223
|
const g = v.value;
|
|
1224
1224
|
(!(n != null && n.useAdditionalWeekYearTokens) && Bo(g) || !(n != null && n.useAdditionalDayOfYearTokens) && Ho(g)) && Go(g, e, String(t));
|
|
1225
|
-
const C =
|
|
1225
|
+
const C = It[g[0]];
|
|
1226
1226
|
return C(l, g, o.localize, u);
|
|
1227
1227
|
}).join("");
|
|
1228
1228
|
}
|
|
@@ -1250,7 +1250,7 @@ var Zo = function(t, e, n, r, o, a, i, l) {
|
|
|
1250
1250
|
throw c.framesToPop = 1, c;
|
|
1251
1251
|
}
|
|
1252
1252
|
}, es = Zo;
|
|
1253
|
-
const
|
|
1253
|
+
const Ot = /* @__PURE__ */ sr(es);
|
|
1254
1254
|
function Ne(...t) {
|
|
1255
1255
|
return t.filter((e) => e != null).reduce((e, n) => {
|
|
1256
1256
|
if (typeof n != "function")
|
|
@@ -1267,8 +1267,8 @@ const ts = {
|
|
|
1267
1267
|
function ns(t, e) {
|
|
1268
1268
|
const n = `offset${t[0].toUpperCase()}${t.slice(1)}`, r = e[n], o = ts[t];
|
|
1269
1269
|
return r + // @ts-ignore
|
|
1270
|
-
parseInt(
|
|
1271
|
-
parseInt(
|
|
1270
|
+
parseInt(bt(e, o[0]), 10) + // @ts-ignore
|
|
1271
|
+
parseInt(bt(e, o[1]), 10);
|
|
1272
1272
|
}
|
|
1273
1273
|
const rs = {
|
|
1274
1274
|
[cr]: "collapse",
|
|
@@ -1357,7 +1357,7 @@ function as(t, e) {
|
|
|
1357
1357
|
function is(t) {
|
|
1358
1358
|
return !t || t.trim() === "#";
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function mt({
|
|
1361
1361
|
tagName: t,
|
|
1362
1362
|
disabled: e,
|
|
1363
1363
|
href: n,
|
|
@@ -1407,7 +1407,7 @@ const gn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1407
1407
|
} = t, o = as(t, ss);
|
|
1408
1408
|
const [a, {
|
|
1409
1409
|
tagName: i
|
|
1410
|
-
}] =
|
|
1410
|
+
}] = mt(Object.assign({
|
|
1411
1411
|
tagName: n,
|
|
1412
1412
|
disabled: r
|
|
1413
1413
|
}, o));
|
|
@@ -1428,11 +1428,11 @@ function ls(t, e) {
|
|
|
1428
1428
|
function us(t) {
|
|
1429
1429
|
return !t || t.trim() === "#";
|
|
1430
1430
|
}
|
|
1431
|
-
const
|
|
1431
|
+
const ft = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
1432
1432
|
let {
|
|
1433
1433
|
onKeyDown: n
|
|
1434
1434
|
} = t, r = ls(t, cs);
|
|
1435
|
-
const [o] =
|
|
1435
|
+
const [o] = mt(Object.assign({
|
|
1436
1436
|
tagName: "a"
|
|
1437
1437
|
}, r)), a = ue((i) => {
|
|
1438
1438
|
o.onKeyDown(i), n == null || n(i);
|
|
@@ -1447,11 +1447,11 @@ const mt = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1447
1447
|
onKeyDown: n
|
|
1448
1448
|
}));
|
|
1449
1449
|
});
|
|
1450
|
-
|
|
1450
|
+
ft.displayName = "Anchor";
|
|
1451
1451
|
const wn = /* @__PURE__ */ A.forwardRef(({
|
|
1452
1452
|
className: t,
|
|
1453
1453
|
bsPrefix: e,
|
|
1454
|
-
as: n =
|
|
1454
|
+
as: n = ft,
|
|
1455
1455
|
...r
|
|
1456
1456
|
}, o) => (e = V(e, "alert-link"), /* @__PURE__ */ s.jsx(n, {
|
|
1457
1457
|
ref: o,
|
|
@@ -1470,13 +1470,13 @@ const xn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1470
1470
|
variant: c = "primary",
|
|
1471
1471
|
onClose: u,
|
|
1472
1472
|
dismissible: d,
|
|
1473
|
-
transition: h =
|
|
1473
|
+
transition: h = _t,
|
|
1474
1474
|
...m
|
|
1475
1475
|
} = Ut(t, {
|
|
1476
1476
|
show: "onClose"
|
|
1477
1477
|
}), p = V(n, "alert"), b = ue((j) => {
|
|
1478
1478
|
u && u(!1, j);
|
|
1479
|
-
}), w = h === !0 ?
|
|
1479
|
+
}), w = h === !0 ? _t : h, f = /* @__PURE__ */ s.jsxs("div", {
|
|
1480
1480
|
role: "alert",
|
|
1481
1481
|
...w ? void 0 : m,
|
|
1482
1482
|
ref: e,
|
|
@@ -1511,7 +1511,7 @@ const ds = Object.assign(xn, {
|
|
|
1511
1511
|
}, c) => {
|
|
1512
1512
|
const u = V(e, "btn"), [d, {
|
|
1513
1513
|
tagName: h
|
|
1514
|
-
}] =
|
|
1514
|
+
}] = mt({
|
|
1515
1515
|
tagName: t,
|
|
1516
1516
|
disabled: a,
|
|
1517
1517
|
...l
|
|
@@ -1587,7 +1587,7 @@ function ps() {
|
|
|
1587
1587
|
const [, t] = en((e) => !e, !1);
|
|
1588
1588
|
return t;
|
|
1589
1589
|
}
|
|
1590
|
-
const
|
|
1590
|
+
const Ue = /* @__PURE__ */ A.createContext(null), gs = ["children", "usePopper"];
|
|
1591
1591
|
function ws(t, e) {
|
|
1592
1592
|
if (t == null)
|
|
1593
1593
|
return {};
|
|
@@ -1599,7 +1599,7 @@ function ws(t, e) {
|
|
|
1599
1599
|
const xs = () => {
|
|
1600
1600
|
};
|
|
1601
1601
|
function bn(t = {}) {
|
|
1602
|
-
const e = L(
|
|
1602
|
+
const e = L(Ue), [n, r] = pr(), o = Y(!1), {
|
|
1603
1603
|
flip: a,
|
|
1604
1604
|
offset: i,
|
|
1605
1605
|
rootCloseEvent: l,
|
|
@@ -1661,22 +1661,22 @@ function _n(t) {
|
|
|
1661
1661
|
});
|
|
1662
1662
|
}
|
|
1663
1663
|
_n.displayName = "DropdownMenu";
|
|
1664
|
-
const
|
|
1664
|
+
const Ye = {
|
|
1665
1665
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1666
1666
|
current: 0
|
|
1667
|
-
}, jn = /* @__PURE__ */ Z.createContext(
|
|
1668
|
-
let vs = !!(typeof window < "u" && window.document && window.document.createElement),
|
|
1667
|
+
}, jn = /* @__PURE__ */ Z.createContext(Ye), ys = /* @__PURE__ */ Z.createContext(!1);
|
|
1668
|
+
let vs = !!(typeof window < "u" && window.document && window.document.createElement), et = /* @__PURE__ */ new WeakMap();
|
|
1669
1669
|
function bs(t = !1) {
|
|
1670
1670
|
let e = L(jn), n = Y(null);
|
|
1671
1671
|
if (n.current === null && !t) {
|
|
1672
1672
|
var r, o;
|
|
1673
1673
|
let a = (o = Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
1674
1674
|
if (a) {
|
|
1675
|
-
let i =
|
|
1676
|
-
i == null ?
|
|
1675
|
+
let i = et.get(a);
|
|
1676
|
+
i == null ? et.set(a, {
|
|
1677
1677
|
id: e.current,
|
|
1678
1678
|
state: a.memoizedState
|
|
1679
|
-
}) : a.memoizedState !== i.state && (e.current = i.id,
|
|
1679
|
+
}) : a.memoizedState !== i.state && (e.current = i.id, et.delete(a));
|
|
1680
1680
|
}
|
|
1681
1681
|
n.current = ++e.current;
|
|
1682
1682
|
}
|
|
@@ -1684,12 +1684,12 @@ function bs(t = !1) {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
function _s(t) {
|
|
1686
1686
|
let e = L(jn);
|
|
1687
|
-
e ===
|
|
1688
|
-
let n = bs(!!t), r = e ===
|
|
1687
|
+
e === Ye && !vs && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
1688
|
+
let n = bs(!!t), r = e === Ye && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
1689
1689
|
return t || `${r}-${n}`;
|
|
1690
1690
|
}
|
|
1691
1691
|
function js(t) {
|
|
1692
|
-
let e = Z.useId(), [n] = P(Is()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${
|
|
1692
|
+
let e = Z.useId(), [n] = P(Is()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Ye.prefix}`;
|
|
1693
1693
|
return t || `${r}-${e}`;
|
|
1694
1694
|
}
|
|
1695
1695
|
const ks = typeof Z.useId == "function" ? js : _s;
|
|
@@ -1709,19 +1709,19 @@ function Is() {
|
|
|
1709
1709
|
const kn = (t) => {
|
|
1710
1710
|
var e;
|
|
1711
1711
|
return ((e = t.getAttribute("role")) == null ? void 0 : e.toLowerCase()) === "menu";
|
|
1712
|
-
},
|
|
1712
|
+
}, Mt = () => {
|
|
1713
1713
|
};
|
|
1714
1714
|
function Cn() {
|
|
1715
1715
|
const t = ks(), {
|
|
1716
1716
|
show: e = !1,
|
|
1717
|
-
toggle: n =
|
|
1717
|
+
toggle: n = Mt,
|
|
1718
1718
|
setToggle: r,
|
|
1719
1719
|
menuElement: o
|
|
1720
|
-
} = L(
|
|
1720
|
+
} = L(Ue) || {}, a = O((l) => {
|
|
1721
1721
|
n(!e, l);
|
|
1722
1722
|
}, [e, n]), i = {
|
|
1723
1723
|
id: t,
|
|
1724
|
-
ref: r ||
|
|
1724
|
+
ref: r || Mt,
|
|
1725
1725
|
onClick: a,
|
|
1726
1726
|
"aria-expanded": !!e
|
|
1727
1727
|
};
|
|
@@ -1739,7 +1739,7 @@ function Nn({
|
|
|
1739
1739
|
});
|
|
1740
1740
|
}
|
|
1741
1741
|
Nn.displayName = "DropdownToggle";
|
|
1742
|
-
const
|
|
1742
|
+
const ot = /* @__PURE__ */ A.createContext(null), Dt = (t, e = null) => t != null ? String(t) : e || null, $n = /* @__PURE__ */ A.createContext(null);
|
|
1743
1743
|
$n.displayName = "NavContext";
|
|
1744
1744
|
const Ss = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
1745
1745
|
function Ts(t, e) {
|
|
@@ -1757,9 +1757,9 @@ function In({
|
|
|
1757
1757
|
disabled: r,
|
|
1758
1758
|
onClick: o
|
|
1759
1759
|
}) {
|
|
1760
|
-
const a = L(
|
|
1760
|
+
const a = L(ot), i = L($n), {
|
|
1761
1761
|
activeKey: l
|
|
1762
|
-
} = i || {}, c =
|
|
1762
|
+
} = i || {}, c = Dt(t, e), u = n == null && t != null ? Dt(l) === c : n;
|
|
1763
1763
|
return [{
|
|
1764
1764
|
onClick: ue((h) => {
|
|
1765
1765
|
r || (o == null || o(h), a && !h.isPropagationStopped() && a(c, h));
|
|
@@ -1791,7 +1791,7 @@ const Sn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1791
1791
|
}, c));
|
|
1792
1792
|
});
|
|
1793
1793
|
Sn.displayName = "DropdownItem";
|
|
1794
|
-
function
|
|
1794
|
+
function Pt() {
|
|
1795
1795
|
const t = ps(), e = Y(null), n = O((r) => {
|
|
1796
1796
|
e.current = r, t();
|
|
1797
1797
|
}, [t]);
|
|
@@ -1807,7 +1807,7 @@ function Ee({
|
|
|
1807
1807
|
placement: i = "bottom-start",
|
|
1808
1808
|
children: l
|
|
1809
1809
|
}) {
|
|
1810
|
-
const c = yr(), [u, d] = fs(e, t, r), [h, m] =
|
|
1810
|
+
const c = yr(), [u, d] = fs(e, t, r), [h, m] = Pt(), p = h.current, [b, w] = Pt(), f = b.current, j = Br(u), v = Y(null), g = Y(!1), C = L(ot), k = O((_, T, F = T == null ? void 0 : T.type) => {
|
|
1811
1811
|
d(_, {
|
|
1812
1812
|
originalEvent: T,
|
|
1813
1813
|
source: F
|
|
@@ -1831,7 +1831,7 @@ function Ee({
|
|
|
1831
1831
|
let T = a;
|
|
1832
1832
|
if (T == null && (T = h.current && kn(h.current) ? "keyboard" : !1), T === !1 || T === "keyboard" && !/^key.+$/.test(_))
|
|
1833
1833
|
return;
|
|
1834
|
-
const F =
|
|
1834
|
+
const F = Ct(h.current, o)[0];
|
|
1835
1835
|
F && F.focus && F.focus();
|
|
1836
1836
|
});
|
|
1837
1837
|
D(() => {
|
|
@@ -1842,7 +1842,7 @@ function Ee({
|
|
|
1842
1842
|
const N = (_, T) => {
|
|
1843
1843
|
if (!h.current)
|
|
1844
1844
|
return null;
|
|
1845
|
-
const F =
|
|
1845
|
+
const F = Ct(h.current, o);
|
|
1846
1846
|
let W = F.indexOf(_) + T;
|
|
1847
1847
|
return W = Math.max(0, Math.min(W, F.length)), F[W];
|
|
1848
1848
|
};
|
|
@@ -1884,9 +1884,9 @@ function Ee({
|
|
|
1884
1884
|
W === "Escape" && (_.preventDefault(), _.stopPropagation()), d(!1, te);
|
|
1885
1885
|
break;
|
|
1886
1886
|
}
|
|
1887
|
-
}), /* @__PURE__ */ s.jsx(
|
|
1887
|
+
}), /* @__PURE__ */ s.jsx(ot.Provider, {
|
|
1888
1888
|
value: y,
|
|
1889
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1889
|
+
children: /* @__PURE__ */ s.jsx(Ue.Provider, {
|
|
1890
1890
|
value: $,
|
|
1891
1891
|
children: l
|
|
1892
1892
|
})
|
|
@@ -1896,8 +1896,8 @@ Ee.displayName = "Dropdown";
|
|
|
1896
1896
|
Ee.Menu = _n;
|
|
1897
1897
|
Ee.Toggle = Nn;
|
|
1898
1898
|
Ee.Item = Sn;
|
|
1899
|
-
const
|
|
1900
|
-
|
|
1899
|
+
const pt = /* @__PURE__ */ A.createContext({});
|
|
1900
|
+
pt.displayName = "DropdownContext";
|
|
1901
1901
|
const Tn = /* @__PURE__ */ A.forwardRef(({
|
|
1902
1902
|
className: t,
|
|
1903
1903
|
bsPrefix: e,
|
|
@@ -1931,7 +1931,7 @@ const On = /* @__PURE__ */ A.forwardRef(({
|
|
|
1931
1931
|
disabled: r = !1,
|
|
1932
1932
|
onClick: o,
|
|
1933
1933
|
active: a,
|
|
1934
|
-
as: i =
|
|
1934
|
+
as: i = ft,
|
|
1935
1935
|
...l
|
|
1936
1936
|
}, c) => {
|
|
1937
1937
|
const u = V(t, "dropdown-item"), [d, h] = In({
|
|
@@ -1960,17 +1960,17 @@ const Mn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1960
1960
|
...r
|
|
1961
1961
|
})));
|
|
1962
1962
|
Mn.displayName = "DropdownItemText";
|
|
1963
|
-
const
|
|
1964
|
-
|
|
1963
|
+
const ze = /* @__PURE__ */ A.createContext(null);
|
|
1964
|
+
ze.displayName = "InputGroupContext";
|
|
1965
1965
|
const Dn = /* @__PURE__ */ A.createContext(null);
|
|
1966
1966
|
Dn.displayName = "NavbarContext";
|
|
1967
1967
|
function Pn(t, e) {
|
|
1968
1968
|
if (process.env.NODE_ENV === "production")
|
|
1969
1969
|
return t;
|
|
1970
1970
|
const n = O((r) => {
|
|
1971
|
-
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ?
|
|
1971
|
+
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? Ot(!1, `${e} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : Ot(!1));
|
|
1972
1972
|
}, [e]);
|
|
1973
|
-
return
|
|
1973
|
+
return it(n, t);
|
|
1974
1974
|
}
|
|
1975
1975
|
function An(t, e, n) {
|
|
1976
1976
|
const r = n ? "top-end" : "top-start", o = n ? "top-start" : "top-end", a = n ? "bottom-end" : "bottom-start", i = n ? "bottom-start" : "bottom-end", l = n ? "right-start" : "left-start", c = n ? "right-end" : "left-end", u = n ? "left-start" : "right-start", d = n ? "left-end" : "right-end";
|
|
@@ -1996,13 +1996,13 @@ const Fn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1996
1996
|
align: w,
|
|
1997
1997
|
drop: f,
|
|
1998
1998
|
isRTL: j
|
|
1999
|
-
} = L(
|
|
1999
|
+
} = L(pt);
|
|
2000
2000
|
n = n || w;
|
|
2001
|
-
const v = L(
|
|
2001
|
+
const v = L(ze), g = [];
|
|
2002
2002
|
if (n)
|
|
2003
2003
|
if (typeof n == "object") {
|
|
2004
2004
|
const _ = Object.keys(n);
|
|
2005
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
2005
|
+
if (process.env.NODE_ENV !== "production" && ct(_.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), _.length) {
|
|
2006
2006
|
const T = _[0], F = n[T];
|
|
2007
2007
|
m = F === "start", g.push(`${b}-${T}-${F}`);
|
|
2008
2008
|
}
|
|
@@ -2022,7 +2022,7 @@ const Fn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2022
2022
|
popperConfig: c,
|
|
2023
2023
|
placement: C
|
|
2024
2024
|
});
|
|
2025
|
-
if (k.ref =
|
|
2025
|
+
if (k.ref = it(Pn(h, "DropdownMenu"), k.ref), br(() => {
|
|
2026
2026
|
M && ($ == null || $.update());
|
|
2027
2027
|
}, [M]), !y && !i && !v)
|
|
2028
2028
|
return null;
|
|
@@ -2051,10 +2051,10 @@ const Wn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2051
2051
|
as: o = yn,
|
|
2052
2052
|
...a
|
|
2053
2053
|
}, i) => {
|
|
2054
|
-
const l = V(t, "dropdown-toggle"), c = L(
|
|
2054
|
+
const l = V(t, "dropdown-toggle"), c = L(Ue);
|
|
2055
2055
|
r !== void 0 && (a.bsPrefix = r);
|
|
2056
2056
|
const [u] = Cn();
|
|
2057
|
-
return u.ref =
|
|
2057
|
+
return u.ref = it(u.ref, Pn(i, "DropdownToggle")), /* @__PURE__ */ s.jsx(o, {
|
|
2058
2058
|
className: x(n, l, e && `${l}-split`, (c == null ? void 0 : c.show) && "show"),
|
|
2059
2059
|
...u,
|
|
2060
2060
|
...a
|
|
@@ -2078,7 +2078,7 @@ const Rn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
2078
2078
|
...p
|
|
2079
2079
|
} = Ut(t, {
|
|
2080
2080
|
show: "onToggle"
|
|
2081
|
-
}), b = L(
|
|
2081
|
+
}), b = L(ze), w = V(n, "dropdown"), f = _r(), j = ($) => m === !1 ? $ === "click" : m === "inside" ? $ !== "rootClose" : m === "outside" ? $ !== "select" : !0, v = ue(($, M) => {
|
|
2082
2082
|
var S, N;
|
|
2083
2083
|
!((S = M.originalEvent) == null || (N = S.target) == null) && N.classList.contains("dropdown-toggle") && M.source === "mousedown" || (M.originalEvent.currentTarget === document && (M.source !== "keydown" || M.originalEvent.key === "Escape") && (M.source = "rootClose"), j(M.source) && (c == null || c($, M)));
|
|
2084
2084
|
}), C = An(i === "end", r, f), k = Q(() => ({
|
|
@@ -2093,7 +2093,7 @@ const Rn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
2093
2093
|
end: "dropend",
|
|
2094
2094
|
start: "dropstart"
|
|
2095
2095
|
};
|
|
2096
|
-
return /* @__PURE__ */ s.jsx(
|
|
2096
|
+
return /* @__PURE__ */ s.jsx(pt.Provider, {
|
|
2097
2097
|
value: k,
|
|
2098
2098
|
children: /* @__PURE__ */ s.jsx(Ee, {
|
|
2099
2099
|
placement: C,
|
|
@@ -2128,7 +2128,7 @@ const Te = Object.assign(Rn, {
|
|
|
2128
2128
|
/** Display feedback as a tooltip. */
|
|
2129
2129
|
tooltip: be.bool,
|
|
2130
2130
|
as: be.elementType
|
|
2131
|
-
},
|
|
2131
|
+
}, Ke = /* @__PURE__ */ A.forwardRef(
|
|
2132
2132
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2133
2133
|
({
|
|
2134
2134
|
as: t = "div",
|
|
@@ -2142,8 +2142,8 @@ const Te = Object.assign(Rn, {
|
|
|
2142
2142
|
className: x(e, `${n}-${r ? "tooltip" : "feedback"}`)
|
|
2143
2143
|
})
|
|
2144
2144
|
);
|
|
2145
|
-
|
|
2146
|
-
|
|
2145
|
+
Ke.displayName = "Feedback";
|
|
2146
|
+
Ke.propTypes = Es;
|
|
2147
2147
|
const Oe = /* @__PURE__ */ A.forwardRef(({
|
|
2148
2148
|
id: t,
|
|
2149
2149
|
bsPrefix: e,
|
|
@@ -2167,7 +2167,7 @@ const Oe = /* @__PURE__ */ A.forwardRef(({
|
|
|
2167
2167
|
});
|
|
2168
2168
|
});
|
|
2169
2169
|
Oe.displayName = "FormCheckInput";
|
|
2170
|
-
const
|
|
2170
|
+
const He = /* @__PURE__ */ A.forwardRef(({
|
|
2171
2171
|
bsPrefix: t,
|
|
2172
2172
|
className: e,
|
|
2173
2173
|
htmlFor: n,
|
|
@@ -2183,7 +2183,7 @@ const Ye = /* @__PURE__ */ A.forwardRef(({
|
|
|
2183
2183
|
className: x(e, t)
|
|
2184
2184
|
});
|
|
2185
2185
|
});
|
|
2186
|
-
|
|
2186
|
+
He.displayName = "FormCheckLabel";
|
|
2187
2187
|
const Ln = /* @__PURE__ */ A.forwardRef(({
|
|
2188
2188
|
id: t,
|
|
2189
2189
|
bsPrefix: e,
|
|
@@ -2211,7 +2211,7 @@ const Ln = /* @__PURE__ */ A.forwardRef(({
|
|
|
2211
2211
|
controlId: C
|
|
2212
2212
|
} = L(de), k = Q(() => ({
|
|
2213
2213
|
controlId: t || C
|
|
2214
|
-
}), [C, t]), y = !f && w != null && w !== !1 || hs(f,
|
|
2214
|
+
}), [C, t]), y = !f && w != null && w !== !1 || hs(f, He), $ = /* @__PURE__ */ s.jsx(Oe, {
|
|
2215
2215
|
...v,
|
|
2216
2216
|
type: b === "switch" ? "checkbox" : b,
|
|
2217
2217
|
ref: g,
|
|
@@ -2226,10 +2226,10 @@ const Ln = /* @__PURE__ */ A.forwardRef(({
|
|
|
2226
2226
|
style: m,
|
|
2227
2227
|
className: x(h, y && e, r && `${e}-inline`, o && `${e}-reverse`, b === "switch" && n),
|
|
2228
2228
|
children: f || /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
2229
|
-
children: [$, y && /* @__PURE__ */ s.jsx(
|
|
2229
|
+
children: [$, y && /* @__PURE__ */ s.jsx(He, {
|
|
2230
2230
|
title: p,
|
|
2231
2231
|
children: w
|
|
2232
|
-
}), u && /* @__PURE__ */ s.jsx(
|
|
2232
|
+
}), u && /* @__PURE__ */ s.jsx(Ke, {
|
|
2233
2233
|
type: d,
|
|
2234
2234
|
tooltip: c,
|
|
2235
2235
|
children: u
|
|
@@ -2239,9 +2239,9 @@ const Ln = /* @__PURE__ */ A.forwardRef(({
|
|
|
2239
2239
|
});
|
|
2240
2240
|
});
|
|
2241
2241
|
Ln.displayName = "FormCheck";
|
|
2242
|
-
const
|
|
2242
|
+
const Be = Object.assign(Ln, {
|
|
2243
2243
|
Input: Oe,
|
|
2244
|
-
Label:
|
|
2244
|
+
Label: He
|
|
2245
2245
|
}), qn = /* @__PURE__ */ A.forwardRef(({
|
|
2246
2246
|
bsPrefix: t,
|
|
2247
2247
|
type: e,
|
|
@@ -2260,7 +2260,7 @@ const He = Object.assign(Ln, {
|
|
|
2260
2260
|
const {
|
|
2261
2261
|
controlId: p
|
|
2262
2262
|
} = L(de);
|
|
2263
|
-
return t = V(t, "form-control"), process.env.NODE_ENV !== "production" &&
|
|
2263
|
+
return t = V(t, "form-control"), process.env.NODE_ENV !== "production" && ct(p == null || !o, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ s.jsx(d, {
|
|
2264
2264
|
...h,
|
|
2265
2265
|
type: e,
|
|
2266
2266
|
size: r,
|
|
@@ -2272,7 +2272,7 @@ const He = Object.assign(Ln, {
|
|
|
2272
2272
|
});
|
|
2273
2273
|
qn.displayName = "FormControl";
|
|
2274
2274
|
const Yn = Object.assign(qn, {
|
|
2275
|
-
Feedback:
|
|
2275
|
+
Feedback: Ke
|
|
2276
2276
|
}), Hn = /* @__PURE__ */ A.forwardRef(({
|
|
2277
2277
|
className: t,
|
|
2278
2278
|
bsPrefix: e,
|
|
@@ -2301,7 +2301,7 @@ const Bn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2301
2301
|
let u = "col-form-label";
|
|
2302
2302
|
typeof n == "string" && (u = `${u} ${u}-${n}`);
|
|
2303
2303
|
const d = x(o, e, r && "visually-hidden", n && u);
|
|
2304
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2304
|
+
return process.env.NODE_ENV !== "production" && ct(c == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || c, n ? /* @__PURE__ */ s.jsx(vn, {
|
|
2305
2305
|
ref: l,
|
|
2306
2306
|
as: "label",
|
|
2307
2307
|
className: d,
|
|
@@ -2373,15 +2373,15 @@ const Un = /* @__PURE__ */ A.forwardRef(
|
|
|
2373
2373
|
}))
|
|
2374
2374
|
);
|
|
2375
2375
|
Un.displayName = "FormText";
|
|
2376
|
-
const zn = /* @__PURE__ */ A.forwardRef((t, e) => /* @__PURE__ */ s.jsx(
|
|
2376
|
+
const zn = /* @__PURE__ */ A.forwardRef((t, e) => /* @__PURE__ */ s.jsx(Be, {
|
|
2377
2377
|
...t,
|
|
2378
2378
|
ref: e,
|
|
2379
2379
|
type: "switch"
|
|
2380
2380
|
}));
|
|
2381
2381
|
zn.displayName = "Switch";
|
|
2382
2382
|
const Os = Object.assign(zn, {
|
|
2383
|
-
Input:
|
|
2384
|
-
Label:
|
|
2383
|
+
Input: Be.Input,
|
|
2384
|
+
Label: Be.Label
|
|
2385
2385
|
}), Ms = {
|
|
2386
2386
|
/**
|
|
2387
2387
|
* The Form `ref` will be forwarded to the underlying element,
|
|
@@ -2398,7 +2398,7 @@ const Os = Object.assign(zn, {
|
|
|
2398
2398
|
*/
|
|
2399
2399
|
validated: be.bool,
|
|
2400
2400
|
as: be.elementType
|
|
2401
|
-
},
|
|
2401
|
+
}, gt = /* @__PURE__ */ A.forwardRef(({
|
|
2402
2402
|
className: t,
|
|
2403
2403
|
validated: e,
|
|
2404
2404
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -2409,20 +2409,20 @@ const Os = Object.assign(zn, {
|
|
|
2409
2409
|
ref: o,
|
|
2410
2410
|
className: x(t, e && "was-validated")
|
|
2411
2411
|
}));
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
const ee = Object.assign(
|
|
2412
|
+
gt.displayName = "Form";
|
|
2413
|
+
gt.propTypes = Ms;
|
|
2414
|
+
const ee = Object.assign(gt, {
|
|
2415
2415
|
Group: jr,
|
|
2416
2416
|
Control: Yn,
|
|
2417
2417
|
Floating: Hn,
|
|
2418
|
-
Check:
|
|
2418
|
+
Check: Be,
|
|
2419
2419
|
Switch: Os,
|
|
2420
2420
|
Label: Bn,
|
|
2421
2421
|
Text: Un,
|
|
2422
2422
|
Range: Gn,
|
|
2423
2423
|
Select: Vn,
|
|
2424
2424
|
FloatingLabel: kr
|
|
2425
|
-
}),
|
|
2425
|
+
}), Qe = /* @__PURE__ */ A.forwardRef(({
|
|
2426
2426
|
className: t,
|
|
2427
2427
|
bsPrefix: e,
|
|
2428
2428
|
as: n = "span",
|
|
@@ -2432,13 +2432,13 @@ const ee = Object.assign(pt, {
|
|
|
2432
2432
|
className: x(t, e),
|
|
2433
2433
|
...r
|
|
2434
2434
|
})));
|
|
2435
|
-
|
|
2436
|
-
const Ds = (t) => /* @__PURE__ */ s.jsx(
|
|
2435
|
+
Qe.displayName = "InputGroupText";
|
|
2436
|
+
const Ds = (t) => /* @__PURE__ */ s.jsx(Qe, {
|
|
2437
2437
|
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2438
2438
|
type: "checkbox",
|
|
2439
2439
|
...t
|
|
2440
2440
|
})
|
|
2441
|
-
}), Ps = (t) => /* @__PURE__ */ s.jsx(
|
|
2441
|
+
}), Ps = (t) => /* @__PURE__ */ s.jsx(Qe, {
|
|
2442
2442
|
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2443
2443
|
type: "radio",
|
|
2444
2444
|
...t
|
|
@@ -2454,7 +2454,7 @@ const Ds = (t) => /* @__PURE__ */ s.jsx(Ke, {
|
|
|
2454
2454
|
}, i) => {
|
|
2455
2455
|
t = V(t, "input-group");
|
|
2456
2456
|
const l = Q(() => ({}), []);
|
|
2457
|
-
return /* @__PURE__ */ s.jsx(
|
|
2457
|
+
return /* @__PURE__ */ s.jsx(ze.Provider, {
|
|
2458
2458
|
value: l,
|
|
2459
2459
|
children: /* @__PURE__ */ s.jsx(o, {
|
|
2460
2460
|
ref: i,
|
|
@@ -2464,11 +2464,11 @@ const Ds = (t) => /* @__PURE__ */ s.jsx(Ke, {
|
|
|
2464
2464
|
});
|
|
2465
2465
|
});
|
|
2466
2466
|
Kn.displayName = "InputGroup";
|
|
2467
|
-
const
|
|
2468
|
-
Text:
|
|
2467
|
+
const tt = Object.assign(Kn, {
|
|
2468
|
+
Text: Qe,
|
|
2469
2469
|
Radio: Ps,
|
|
2470
2470
|
Checkbox: Ds
|
|
2471
|
-
}),
|
|
2471
|
+
}), wt = /* @__PURE__ */ A.forwardRef(({
|
|
2472
2472
|
bsPrefix: t,
|
|
2473
2473
|
variant: e,
|
|
2474
2474
|
animation: n = "border",
|
|
@@ -2486,11 +2486,11 @@ const et = Object.assign(Kn, {
|
|
|
2486
2486
|
className: x(a, c, r && `${c}-${r}`, e && `text-${e}`)
|
|
2487
2487
|
});
|
|
2488
2488
|
});
|
|
2489
|
-
|
|
2489
|
+
wt.displayName = "Spinner";
|
|
2490
2490
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2491
2491
|
const Qn = "client_info_decoding_error", Xn = "client_info_empty_error", As = "token_parsing_error", Fs = "null_or_empty_token", Ws = "endpoints_resolution_error", Rs = "network_error", Ls = "openid_config_error", qs = "hash_not_deserialized", Ys = "invalid_state", Hs = "state_mismatch", Bs = "state_not_found", Gs = "nonce_mismatch", Vs = "auth_time_not_found", Us = "max_age_transpired", zs = "multiple_matching_tokens", Ks = "multiple_matching_accounts", Qs = "multiple_matching_appMetadata", Xs = "request_cannot_be_made", Js = "cannot_remove_empty_scope", Zs = "cannot_append_scopeset", ea = "empty_input_scopeset", ta = "device_code_polling_cancelled", na = "device_code_expired", ra = "device_code_unknown_error", oa = "no_account_in_silent_request", sa = "invalid_cache_record", Jn = "invalid_cache_environment", aa = "no_account_found", ia = "no_crypto_object", ca = "unexpected_credential_type", la = "invalid_assertion", ua = "invalid_client_credential", da = "token_refresh_required", ha = "user_timeout_reached", ma = "token_claims_cnf_required_for_signedjwt", fa = "authorization_code_missing_from_server_response", pa = "binding_key_not_removed", ga = "end_session_endpoint_not_supported", wa = "key_id_missing", xa = "no_network_connectivity", ya = "user_canceled", va = "missing_tenant_id_error", ba = "method_not_implemented", _a = "nested_app_auth_bridge_disabled";
|
|
2492
2492
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2493
|
-
const
|
|
2493
|
+
const At = {
|
|
2494
2494
|
[Qn]: "The client info could not be parsed/decoded correctly",
|
|
2495
2495
|
[Xn]: "The client info was empty",
|
|
2496
2496
|
[As]: "Token cannot be parsed",
|
|
@@ -2536,23 +2536,23 @@ const Pt = {
|
|
|
2536
2536
|
[ba]: "This method has not been implemented",
|
|
2537
2537
|
[_a]: "The nested app auth bridge is disabled"
|
|
2538
2538
|
};
|
|
2539
|
-
class
|
|
2539
|
+
class xt extends lt {
|
|
2540
2540
|
constructor(e, n) {
|
|
2541
|
-
super(e, n ? `${
|
|
2541
|
+
super(e, n ? `${At[e]}: ${n}` : At[e]), this.name = "ClientAuthError", Object.setPrototypeOf(this, xt.prototype);
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2545
|
-
return new
|
|
2544
|
+
function st(t, e) {
|
|
2545
|
+
return new xt(t, e);
|
|
2546
2546
|
}
|
|
2547
2547
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2548
|
-
function
|
|
2548
|
+
function Ft(t, e) {
|
|
2549
2549
|
if (!t)
|
|
2550
|
-
throw
|
|
2550
|
+
throw st(Xn);
|
|
2551
2551
|
try {
|
|
2552
2552
|
const n = e(t);
|
|
2553
2553
|
return JSON.parse(n);
|
|
2554
2554
|
} catch {
|
|
2555
|
-
throw
|
|
2555
|
+
throw st(Qn);
|
|
2556
2556
|
}
|
|
2557
2557
|
}
|
|
2558
2558
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
@@ -2569,7 +2569,7 @@ function ka(t, e) {
|
|
|
2569
2569
|
};
|
|
2570
2570
|
}
|
|
2571
2571
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2572
|
-
const
|
|
2572
|
+
const nt = {
|
|
2573
2573
|
Default: 0,
|
|
2574
2574
|
Adfs: 1,
|
|
2575
2575
|
Dsts: 2,
|
|
@@ -2590,7 +2590,7 @@ class Ie {
|
|
|
2590
2590
|
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
2591
2591
|
*/
|
|
2592
2592
|
generateAccountId() {
|
|
2593
|
-
return [this.homeAccountId, this.environment].join(
|
|
2593
|
+
return [this.homeAccountId, this.environment].join(jt.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
2594
2594
|
}
|
|
2595
2595
|
/**
|
|
2596
2596
|
* Generate Account Cache Key as per the schema: <home_account_id>-<environment>-<realm*>
|
|
@@ -2637,7 +2637,7 @@ class Ie {
|
|
|
2637
2637
|
e.homeAccountId,
|
|
2638
2638
|
e.environment || "",
|
|
2639
2639
|
n || e.tenantId || ""
|
|
2640
|
-
].join(
|
|
2640
|
+
].join(jt.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
2641
2641
|
}
|
|
2642
2642
|
/**
|
|
2643
2643
|
* Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD.
|
|
@@ -2645,12 +2645,12 @@ class Ie {
|
|
|
2645
2645
|
*/
|
|
2646
2646
|
static createAccount(e, n, r) {
|
|
2647
2647
|
const o = new Ie();
|
|
2648
|
-
n.authorityType ===
|
|
2648
|
+
n.authorityType === nt.Adfs ? o.authorityType = De.ADFS_ACCOUNT_TYPE : n.protocolMode === Na.AAD ? o.authorityType = De.MSSTS_ACCOUNT_TYPE : o.authorityType = De.GENERIC_ACCOUNT_TYPE;
|
|
2649
2649
|
let a;
|
|
2650
|
-
e.clientInfo && r && (a =
|
|
2650
|
+
e.clientInfo && r && (a = Ft(e.clientInfo, r)), o.clientInfo = e.clientInfo, o.homeAccountId = e.homeAccountId, o.nativeAccountId = e.nativeAccountId;
|
|
2651
2651
|
const i = e.environment || n && n.getPreferredCache();
|
|
2652
2652
|
if (!i)
|
|
2653
|
-
throw
|
|
2653
|
+
throw st(Jn);
|
|
2654
2654
|
o.environment = i, o.realm = (a == null ? void 0 : a.utid) || Ca(e.idTokenClaims) || "", o.localAccountId = (a == null ? void 0 : a.uid) || e.idTokenClaims.oid || e.idTokenClaims.sub || "";
|
|
2655
2655
|
const l = e.idTokenClaims.preferred_username || e.idTokenClaims.upn, c = e.idTokenClaims.emails ? e.idTokenClaims.emails[0] : null;
|
|
2656
2656
|
if (o.username = l || c || "", o.name = e.idTokenClaims.name, o.cloudGraphHostName = e.cloudGraphHostName, o.msGraphHost = e.msGraphHost, e.tenantProfiles)
|
|
@@ -2683,10 +2683,10 @@ class Ie {
|
|
|
2683
2683
|
* @param authType
|
|
2684
2684
|
*/
|
|
2685
2685
|
static generateHomeAccountId(e, n, r, o, a) {
|
|
2686
|
-
if (!(n ===
|
|
2686
|
+
if (!(n === nt.Adfs || n === nt.Dsts)) {
|
|
2687
2687
|
if (e)
|
|
2688
2688
|
try {
|
|
2689
|
-
const i =
|
|
2689
|
+
const i = Ft(e, o.base64Decode);
|
|
2690
2690
|
if (i.uid && i.utid)
|
|
2691
2691
|
return `${i.uid}.${i.utid}`;
|
|
2692
2692
|
} catch {
|
|
@@ -2720,20 +2720,20 @@ class Ie {
|
|
|
2720
2720
|
}
|
|
2721
2721
|
}
|
|
2722
2722
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2723
|
-
class
|
|
2723
|
+
class yt extends lt {
|
|
2724
2724
|
constructor(e, n, r, o, a, i, l, c) {
|
|
2725
|
-
super(e, n, r), Object.setPrototypeOf(this,
|
|
2725
|
+
super(e, n, r), Object.setPrototypeOf(this, yt.prototype), this.timestamp = o || Pe.EMPTY_STRING, this.traceId = a || Pe.EMPTY_STRING, this.correlationId = i || Pe.EMPTY_STRING, this.claims = l || Pe.EMPTY_STRING, this.name = "InteractionRequiredAuthError", this.errorNo = c;
|
|
2726
2726
|
}
|
|
2727
2727
|
}
|
|
2728
2728
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2729
|
-
function
|
|
2729
|
+
function Wt(t, e) {
|
|
2730
2730
|
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? t.getActiveAccount() : Cr(t.getAllAccounts(), e);
|
|
2731
2731
|
}
|
|
2732
2732
|
function $a(t) {
|
|
2733
|
-
const { instance: e, inProgress: n, logger: r } =
|
|
2733
|
+
const { instance: e, inProgress: n, logger: r } = ut(), [o, a] = P(() => Wt(e, t));
|
|
2734
2734
|
return D(() => {
|
|
2735
2735
|
a((i) => {
|
|
2736
|
-
const l =
|
|
2736
|
+
const l = Wt(e, t);
|
|
2737
2737
|
return Ie.accountInfoIsEqual(i, l, !0) ? i : (r.info("useAccount - Updating account"), l);
|
|
2738
2738
|
});
|
|
2739
2739
|
}, [n, t, e, r]), o;
|
|
@@ -2749,7 +2749,7 @@ const We = {
|
|
|
2749
2749
|
desc: "Interaction is required but another interaction is already in progress. Please try again when the current interaction is complete."
|
|
2750
2750
|
}
|
|
2751
2751
|
};
|
|
2752
|
-
class _e extends
|
|
2752
|
+
class _e extends lt {
|
|
2753
2753
|
constructor(e, n) {
|
|
2754
2754
|
super(e, n), Object.setPrototypeOf(this, _e.prototype), this.name = "ReactAuthError";
|
|
2755
2755
|
}
|
|
@@ -2762,7 +2762,7 @@ class _e extends ct {
|
|
|
2762
2762
|
}
|
|
2763
2763
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2764
2764
|
function Ia(t, e, n) {
|
|
2765
|
-
const { instance: r, inProgress: o, logger: a } =
|
|
2765
|
+
const { instance: r, inProgress: o, logger: a } = ut(), i = zt(n), l = $a(n), [[c, u], d] = P([null, null]), h = Y(!0);
|
|
2766
2766
|
D(() => () => {
|
|
2767
2767
|
h.current = !1;
|
|
2768
2768
|
}, []);
|
|
@@ -2784,11 +2784,11 @@ function Ia(t, e, n) {
|
|
|
2784
2784
|
const b = O(async (f, j) => {
|
|
2785
2785
|
const v = f || t, g = j || e;
|
|
2786
2786
|
switch (v) {
|
|
2787
|
-
case
|
|
2787
|
+
case Le.Popup:
|
|
2788
2788
|
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(g);
|
|
2789
|
-
case
|
|
2789
|
+
case Le.Redirect:
|
|
2790
2790
|
return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(g).then(null);
|
|
2791
|
-
case
|
|
2791
|
+
case Le.Silent:
|
|
2792
2792
|
return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(g);
|
|
2793
2793
|
default:
|
|
2794
2794
|
throw _e.createInvalidInteractionTypeError();
|
|
@@ -2800,11 +2800,11 @@ function Ia(t, e, n) {
|
|
|
2800
2800
|
...j
|
|
2801
2801
|
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"), g = {
|
|
2802
2802
|
...e,
|
|
2803
|
-
scopes: e.scopes ||
|
|
2803
|
+
scopes: e.scopes || kt
|
|
2804
2804
|
}) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."), g = {
|
|
2805
|
-
scopes:
|
|
2805
|
+
scopes: kt
|
|
2806
2806
|
}), !g.account && l && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), g.account = l), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), r.acquireTokenSilent(g).catch(async (k) => {
|
|
2807
|
-
if (k instanceof
|
|
2807
|
+
if (k instanceof yt) {
|
|
2808
2808
|
if (m.current)
|
|
2809
2809
|
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), _e.createUnableToFallbackToInteractionError();
|
|
2810
2810
|
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), b(v, g);
|
|
@@ -2857,7 +2857,7 @@ function Sa({ interactionType: t, username: e, homeAccountId: n, localAccountId:
|
|
|
2857
2857
|
username: e,
|
|
2858
2858
|
homeAccountId: n,
|
|
2859
2859
|
localAccountId: r
|
|
2860
|
-
}), [e, n, r]), u =
|
|
2860
|
+
}), [e, n, r]), u = ut(), d = Ia(t, o, c), h = zt(c);
|
|
2861
2861
|
if (d.error && u.inProgress === $e.None) {
|
|
2862
2862
|
if (i)
|
|
2863
2863
|
return Z.createElement(i, { ...d });
|
|
@@ -2871,29 +2871,29 @@ const Ta = "_button_1wjon_1", Ea = "_filled_1wjon_7", Oa = "_sm_1wjon_13", Ma =
|
|
|
2871
2871
|
sm: Oa,
|
|
2872
2872
|
md: Ma,
|
|
2873
2873
|
lg: Da
|
|
2874
|
-
},
|
|
2875
|
-
const { LinkComponent: i } = L(
|
|
2874
|
+
}, Rt = ({ variant: t = "filled", color: e = "primary", size: n = "md", className: r, children: o, ...a }) => {
|
|
2875
|
+
const { LinkComponent: i } = L(oe);
|
|
2876
2876
|
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: x(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${r ?? ""}`, ve.button, ve[t], ve[n]), ...a, children: o }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ s.jsx("button", { type: "button", className: x(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${r ?? ""}`, ve.button, ve[t], ve[n]), ...a, children: o }) : null;
|
|
2877
|
-
}, Pa = "_submit-container_a9slg_1", Aa = "_spacer_a9slg_14",
|
|
2877
|
+
}, Pa = "_submit-container_a9slg_1", Aa = "_spacer_a9slg_14", Lt = {
|
|
2878
2878
|
"submit-container": "_submit-container_a9slg_1",
|
|
2879
2879
|
submitContainer: Pa,
|
|
2880
2880
|
spacer: Aa
|
|
2881
2881
|
}, Fa = ({ children: t, onStorno: e }) => {
|
|
2882
|
-
const { formSubmitTexts: n } = L(
|
|
2882
|
+
const { formSubmitTexts: n } = L(oe);
|
|
2883
2883
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2884
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2885
|
-
/* @__PURE__ */ s.jsxs("div", { className: x("luminus-floating-submit-container shadow",
|
|
2886
|
-
/* @__PURE__ */ s.jsxs(
|
|
2884
|
+
/* @__PURE__ */ s.jsx("div", { className: Lt.spacer }),
|
|
2885
|
+
/* @__PURE__ */ s.jsxs("div", { className: x("luminus-floating-submit-container shadow", Lt.submitContainer), children: [
|
|
2886
|
+
/* @__PURE__ */ s.jsxs(Rt, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
2887
2887
|
/* @__PURE__ */ s.jsx($r, {}),
|
|
2888
2888
|
t
|
|
2889
2889
|
] }),
|
|
2890
|
-
e && /* @__PURE__ */ s.jsxs(
|
|
2890
|
+
e && /* @__PURE__ */ s.jsxs(Rt, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: e, children: [
|
|
2891
2891
|
/* @__PURE__ */ s.jsx(Ir, {}),
|
|
2892
2892
|
n.storno
|
|
2893
2893
|
] })
|
|
2894
2894
|
] })
|
|
2895
2895
|
] });
|
|
2896
|
-
}, Wa = "_button_1r3i0_1",
|
|
2896
|
+
}, Wa = "_button_1r3i0_1", at = {
|
|
2897
2897
|
button: Wa
|
|
2898
2898
|
}, Ra = ({
|
|
2899
2899
|
color: t = "primary",
|
|
@@ -2903,11 +2903,11 @@ const Ta = "_button_1wjon_1", Ea = "_filled_1wjon_7", Oa = "_sm_1wjon_13", Ma =
|
|
|
2903
2903
|
children: r,
|
|
2904
2904
|
...o
|
|
2905
2905
|
}) => {
|
|
2906
|
-
const { LinkComponent: a } = L(
|
|
2907
|
-
return o.as === "link" ? /* @__PURE__ */ s.jsxs(a, { to: o.href ?? "/", className: x(`luminus-context-button btn text-${t} ${n ?? ""}`,
|
|
2906
|
+
const { LinkComponent: a } = L(oe);
|
|
2907
|
+
return o.as === "link" ? /* @__PURE__ */ s.jsxs(a, { to: o.href ?? "/", className: x(`luminus-context-button btn text-${t} ${n ?? ""}`, at.button), ...o, children: [
|
|
2908
2908
|
e,
|
|
2909
2909
|
r
|
|
2910
|
-
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ s.jsxs("button", { type: "button", className: x(`luminus-context-button btn text-${t} ${n ?? ""}`,
|
|
2910
|
+
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ s.jsxs("button", { type: "button", className: x(`luminus-context-button btn text-${t} ${n ?? ""}`, at.button), ...o, children: [
|
|
2911
2911
|
e,
|
|
2912
2912
|
r
|
|
2913
2913
|
] }) : null;
|
|
@@ -2916,43 +2916,46 @@ const Ta = "_button_1wjon_1", Ea = "_filled_1wjon_7", Oa = "_sm_1wjon_13", Ma =
|
|
|
2916
2916
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
2917
2917
|
};
|
|
2918
2918
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2919
|
-
/* @__PURE__ */ s.jsxs("label", { htmlFor: n, className: x(`luminus-context-button btn text-${t} ${a ?? ""}`,
|
|
2919
|
+
/* @__PURE__ */ s.jsxs("label", { htmlFor: n, className: x(`luminus-context-button btn text-${t} ${a ?? ""}`, at.button), ...c, children: [
|
|
2920
2920
|
e,
|
|
2921
2921
|
i
|
|
2922
2922
|
] }),
|
|
2923
2923
|
/* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: l })
|
|
2924
2924
|
] });
|
|
2925
|
-
}, La = "_icon-button_15e26_1", qa = "_sm_15e26_14", Ya = "_md_15e26_23", Ha = "_lg_15e26_32",
|
|
2925
|
+
}, La = "_icon-button_15e26_1", qa = "_sm_15e26_14", Ya = "_md_15e26_23", Ha = "_lg_15e26_32", Re = {
|
|
2926
2926
|
"icon-button": "_icon-button_15e26_1",
|
|
2927
2927
|
iconButton: La,
|
|
2928
2928
|
sm: qa,
|
|
2929
2929
|
md: Ya,
|
|
2930
2930
|
lg: Ha
|
|
2931
|
-
}, J = ({ type: t = "button", color: e = "primary", size: n = "md", children: r, className: o, ...a }) =>
|
|
2932
|
-
|
|
2933
|
-
{
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2931
|
+
}, J = ({ type: t = "button", color: e = "primary", size: n = "md", children: r, className: o, ...a }) => {
|
|
2932
|
+
const { LinkComponent: i } = L(oe);
|
|
2933
|
+
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`, Re.iconButton, Re[n]), ...a, children: r }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ s.jsx(
|
|
2934
|
+
"button",
|
|
2935
|
+
{
|
|
2936
|
+
type: t,
|
|
2937
|
+
className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`, Re.iconButton, Re[n]),
|
|
2938
|
+
...a,
|
|
2939
|
+
children: r
|
|
2940
|
+
}
|
|
2941
|
+
) : null;
|
|
2942
|
+
}, Sc = ({ month: t, onChangeMonth: e, locale: n }) => {
|
|
2940
2943
|
const r = O((o) => {
|
|
2941
2944
|
e(cn(t, o));
|
|
2942
2945
|
}, [t, e]);
|
|
2943
2946
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2944
|
-
/* @__PURE__ */ s.jsx(J, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(
|
|
2947
|
+
/* @__PURE__ */ s.jsx(J, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(dt, {}) }),
|
|
2945
2948
|
/* @__PURE__ */ s.jsx("div", { children: hn(t, "LLLL yyyy", { locale: n }) }),
|
|
2946
|
-
/* @__PURE__ */ s.jsx(J, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(
|
|
2949
|
+
/* @__PURE__ */ s.jsx(J, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(ht, {}) })
|
|
2947
2950
|
] });
|
|
2948
2951
|
}, Tc = ({ year: t, onChangeYear: e, locale: n }) => {
|
|
2949
2952
|
const r = O((o) => {
|
|
2950
2953
|
e(Qr(t, o));
|
|
2951
2954
|
}, [t, e]);
|
|
2952
2955
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2953
|
-
/* @__PURE__ */ s.jsx(J, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(
|
|
2956
|
+
/* @__PURE__ */ s.jsx(J, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(dt, {}) }),
|
|
2954
2957
|
/* @__PURE__ */ s.jsx("div", { children: hn(t, "yyyy", { locale: n }) }),
|
|
2955
|
-
/* @__PURE__ */ s.jsx(J, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(
|
|
2958
|
+
/* @__PURE__ */ s.jsx(J, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(ht, {}) })
|
|
2956
2959
|
] });
|
|
2957
2960
|
}, Ba = "_widget_etgh3_1", Ga = {
|
|
2958
2961
|
widget: Ba
|
|
@@ -2977,7 +2980,7 @@ const Ta = "_button_1wjon_1", Ea = "_filled_1wjon_7", Oa = "_sm_1wjon_13", Ma =
|
|
|
2977
2980
|
n(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
|
|
2978
2981
|
}, []);
|
|
2979
2982
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
2980
|
-
}, za = "_dashboard_16plm_1", Ka = "_widgets-grid_16plm_1", Qa = "_widget-wrapper_16plm_8", Xa = "_full-width_16plm_13", Ja = "_widget-edit_16plm_16", Za = "_remove-icon_16plm_19", ei = "_full-width-icon_16plm_26", ti = "_widget-edit-overlay_16plm_36",
|
|
2983
|
+
}, za = "_dashboard_16plm_1", Ka = "_widgets-grid_16plm_1", Qa = "_widget-wrapper_16plm_8", Xa = "_full-width_16plm_13", Ja = "_widget-edit_16plm_16", Za = "_remove-icon_16plm_19", ei = "_full-width-icon_16plm_26", ti = "_widget-edit-overlay_16plm_36", ae = {
|
|
2981
2984
|
dashboard: za,
|
|
2982
2985
|
"widgets-grid": "_widgets-grid_16plm_1",
|
|
2983
2986
|
widgetsGrid: Ka,
|
|
@@ -2995,7 +2998,7 @@ const Ta = "_button_1wjon_1", Ea = "_filled_1wjon_7", Oa = "_sm_1wjon_13", Ma =
|
|
|
2995
2998
|
widgetEditOverlay: ti
|
|
2996
2999
|
}, Ec = ({ availableWidgets: t, editMode: e, defaultDashboardConfig: n }) => {
|
|
2997
3000
|
var d;
|
|
2998
|
-
const { homeDashboardTexts: r } = L(
|
|
3001
|
+
const { homeDashboardTexts: r } = L(oe), { dashboardConfig: o, onChangeDashboardConfig: a } = Ua(n), i = O((h, m) => {
|
|
2999
3002
|
var p, b;
|
|
3000
3003
|
h === ((p = o.widgets) == null ? void 0 : p.length) ? a({
|
|
3001
3004
|
...o,
|
|
@@ -3016,15 +3019,15 @@ const Ta = "_button_1wjon_1", Ea = "_filled_1wjon_7", Oa = "_sm_1wjon_13", Ma =
|
|
|
3016
3019
|
...o,
|
|
3017
3020
|
widgets: ((m = o.widgets) == null ? void 0 : m.map((p, b) => b === h ? { ...p, fullWidth: !p.fullWidth } : p)) ?? []
|
|
3018
3021
|
});
|
|
3019
|
-
}, [o, a]), u = O((h, m, p) => h ? /* @__PURE__ */ s.jsxs("div", { className: x(
|
|
3020
|
-
[
|
|
3021
|
-
}, { [
|
|
3022
|
+
}, [o, a]), u = O((h, m, p) => h ? /* @__PURE__ */ s.jsxs("div", { className: x(ae.widgetWrapper, {
|
|
3023
|
+
[ae.widgetEdit]: e && h.id !== -1
|
|
3024
|
+
}, { [ae.fullWidth]: p }), children: [
|
|
3022
3025
|
e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3023
|
-
/* @__PURE__ */ s.jsx(J, { color: "danger", onClick: () => l(m), className: x(
|
|
3024
|
-
/* @__PURE__ */ s.jsx(J, { color: p ? "danger" : "primary", onClick: () => c(m), className: x(
|
|
3026
|
+
/* @__PURE__ */ s.jsx(J, { color: "danger", onClick: () => l(m), className: x(ae.removeIcon), children: /* @__PURE__ */ s.jsx(Qt, {}) }),
|
|
3027
|
+
/* @__PURE__ */ s.jsx(J, { color: p ? "danger" : "primary", onClick: () => c(m), className: x(ae.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Tr, {}) })
|
|
3025
3028
|
] }),
|
|
3026
|
-
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className:
|
|
3027
|
-
h.id > -1 && e && /* @__PURE__ */ s.jsx("div", { className:
|
|
3029
|
+
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetWrapper, children: /* @__PURE__ */ s.jsx(qt, { availableWidgets: t, onAdd: (b) => i(m, b), texts: r }) }) : h.render,
|
|
3030
|
+
h.id > -1 && e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetEditOverlay })
|
|
3028
3031
|
] }, m) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
3029
3032
|
e,
|
|
3030
3033
|
i,
|
|
@@ -3033,7 +3036,7 @@ const Ta = "_button_1wjon_1", Ea = "_filled_1wjon_7", Oa = "_sm_1wjon_13", Ma =
|
|
|
3033
3036
|
t,
|
|
3034
3037
|
r
|
|
3035
3038
|
]);
|
|
3036
|
-
return /* @__PURE__ */ s.jsx("div", { className:
|
|
3039
|
+
return /* @__PURE__ */ s.jsx("div", { className: ae.dashboard, children: /* @__PURE__ */ s.jsxs("div", { className: ae.widgetsGrid, children: [
|
|
3037
3040
|
(d = o.widgets) == null ? void 0 : d.map((h, m) => u(t.find((p) => p.id === h.widgetId), m, h.fullWidth)),
|
|
3038
3041
|
e && /* @__PURE__ */ s.jsx(qt, { availableWidgets: t, onAdd: (h) => {
|
|
3039
3042
|
var m;
|
|
@@ -3160,7 +3163,7 @@ const mi = "_wrapper_uccrb_1", fi = "_open_uccrb_9", pi = "_dropdown_uccrb_13",
|
|
|
3160
3163
|
icon: ki,
|
|
3161
3164
|
"clear-button": "_clear-button_uccrb_74",
|
|
3162
3165
|
clearButton: Ci
|
|
3163
|
-
},
|
|
3166
|
+
}, vt = ({ 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: m, isLoading: p = !1, inputRef: b }) => {
|
|
3164
3167
|
var I;
|
|
3165
3168
|
const w = Y(null), f = Y(null), j = Y(null), [v, g] = P(""), [C] = er(v, 500), [, k] = P(!1), y = (I = b.current) == null ? void 0 : I.getBoundingClientRect(), $ = (y == null ? void 0 : y.x) ?? 0, M = ((y == null ? void 0 : y.x) ?? 0) + ((y == null ? void 0 : y.width) ?? 0), S = (y == null ? void 0 : y.y) ?? 0, N = ((y == null ? void 0 : y.y) ?? 0) + ((y == null ? void 0 : y.height) ?? 0), _ = (y == null ? void 0 : y.width) ?? 0, T = (y == null ? void 0 : y.height) ?? 0, F = 5, W = Q(() => $ ? $ > window.innerWidth / 2 : !1, [$]), H = Q(() => S ? S > window.innerHeight / 2 : !1, [S]);
|
|
3166
3169
|
D(() => {
|
|
@@ -3185,7 +3188,7 @@ const mi = "_wrapper_uccrb_1", fi = "_open_uccrb_9", pi = "_dropdown_uccrb_13",
|
|
|
3185
3188
|
}), [G]), D(() => (window.addEventListener("resize", G), () => {
|
|
3186
3189
|
window.removeEventListener("resize", G);
|
|
3187
3190
|
}), [G]), on(R), sn([w, f], e);
|
|
3188
|
-
const
|
|
3191
|
+
const se = l ?? (c && c.length > 0 ? 250 : 0), te = (c == null ? void 0 : c.reduce((E, K) => E + (K.width ?? 100), 0)) ?? 0, U = `calc(max(${_}px, ${se}px + ${te}px))`;
|
|
3189
3192
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3190
3193
|
/* @__PURE__ */ s.jsx(nr, { show: t, onClick: e }),
|
|
3191
3194
|
r && t && !m && /* @__PURE__ */ s.jsx("button", { ref: f, type: "button", className: x("luminus-dropdown-picker-clear-button", X.clearButton), onClick: () => !m && o(null), style: {
|
|
@@ -3205,7 +3208,7 @@ const mi = "_wrapper_uccrb_1", fi = "_open_uccrb_9", pi = "_dropdown_uccrb_13",
|
|
|
3205
3208
|
var K;
|
|
3206
3209
|
return g(((K = E.target) == null ? void 0 : K.value) ?? "");
|
|
3207
3210
|
} }) }),
|
|
3208
|
-
p ? /* @__PURE__ */ s.jsx("div", { className: X.loadingContainer, children: /* @__PURE__ */ s.jsx(
|
|
3211
|
+
p ? /* @__PURE__ */ s.jsx("div", { className: X.loadingContainer, children: /* @__PURE__ */ s.jsx(wt, { animation: "border", variant: "primary" }) }) : n.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("items", X.itemsContainer), children: [
|
|
3209
3212
|
c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("header-row border-bottom", X.headerRow), children: [
|
|
3210
3213
|
/* @__PURE__ */ s.jsx("div", { className: X.name }),
|
|
3211
3214
|
c == null ? void 0 : c.map((E) => /* @__PURE__ */ s.jsx("div", { className: X.columnItem, style: {
|
|
@@ -3270,14 +3273,14 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3270
3273
|
header: qi,
|
|
3271
3274
|
item: Yi
|
|
3272
3275
|
}, Hi = ({ show: t, query: e, onCancel: n, groups: r, isLoading: o, searchTypes: a }) => {
|
|
3273
|
-
const { LinkComponent: i, appSearchTexts: l } = L(
|
|
3276
|
+
const { LinkComponent: i, appSearchTexts: l } = L(oe), c = Y(null), u = O((d) => {
|
|
3274
3277
|
var m;
|
|
3275
3278
|
const h = (m = a.find((p) => p.key === d.type)) == null ? void 0 : m.toPath;
|
|
3276
3279
|
return h ? `${h}/${d.searchKey}` : "/not-found";
|
|
3277
3280
|
}, [a]);
|
|
3278
3281
|
return sn([c], n), /* @__PURE__ */ s.jsx("div", { ref: c, className: x("luminus-app-search-dropdown shadow rounded", me.dropdown, {
|
|
3279
3282
|
[me.open]: t
|
|
3280
|
-
}), children: o ? /* @__PURE__ */ s.jsx("div", { className: me.loadingContainer, children: /* @__PURE__ */ s.jsx(
|
|
3283
|
+
}), children: o ? /* @__PURE__ */ s.jsx("div", { className: me.loadingContainer, children: /* @__PURE__ */ s.jsx(wt, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: me.groupsContainer, children: r == null ? void 0 : r.map((d) => {
|
|
3281
3284
|
var h;
|
|
3282
3285
|
return /* @__PURE__ */ s.jsxs("div", { className: x(me.group), children: [
|
|
3283
3286
|
/* @__PURE__ */ s.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: x("group-header", me.header), onClick: n, children: [
|
|
@@ -3331,18 +3334,18 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3331
3334
|
c();
|
|
3332
3335
|
}, [c]), { isLoading: r, searchItems: a };
|
|
3333
3336
|
}, Ac = ({ searchTypes: t, navigateFunction: e }) => {
|
|
3334
|
-
const { appSearchTexts: n } = L(
|
|
3337
|
+
const { appSearchTexts: n } = L(oe), [r, o] = P(t.length > 0 ? t[0] : null), [a, i] = P(""), [l, c] = er(a, 500), { isLoading: u, searchItems: d } = Qi(r, l), [h, m] = P(!1);
|
|
3335
3338
|
return D(() => {
|
|
3336
3339
|
(d.length > 0 || u) && m(!0);
|
|
3337
3340
|
}, [d, u]), /* @__PURE__ */ s.jsx(ee, { onSubmit: (p) => {
|
|
3338
3341
|
p.preventDefault(), p.stopPropagation(), c.flush(), m(!1), a.length > 2 && e(`/search?query=${a}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
|
|
3339
|
-
}, children: /* @__PURE__ */ s.jsxs(
|
|
3340
|
-
/* @__PURE__ */ s.jsx(
|
|
3342
|
+
}, children: /* @__PURE__ */ s.jsxs(tt, { className: fe.inputGroup, children: [
|
|
3343
|
+
/* @__PURE__ */ s.jsx(tt.Text, { className: x("p-1 rounded", fe.inputGroupText, fe.left), children: /* @__PURE__ */ s.jsx(Pi, { searchTypes: t, selectedType: r, setSelectedType: o }) }),
|
|
3341
3344
|
/* @__PURE__ */ s.jsx(ee.Control, { placeholder: n.searchPlaceholder, type: "text", size: "sm", className: x("luminus-app-search-input", fe.input), value: a, onChange: (p) => {
|
|
3342
3345
|
var b;
|
|
3343
3346
|
return i(((b = p.target) == null ? void 0 : b.value) ?? "");
|
|
3344
3347
|
}, onFocus: () => d.length > 0 && m(!0) }),
|
|
3345
|
-
/* @__PURE__ */ s.jsx(
|
|
3348
|
+
/* @__PURE__ */ s.jsx(tt.Text, { className: x("p-0 rounded", fe.inputGroupText, fe.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: x("text-primary", fe.submitButton), children: /* @__PURE__ */ s.jsx(Ni, {}) }) }),
|
|
3346
3349
|
/* @__PURE__ */ s.jsx(Hi, { query: l, searchTypes: t, show: h, onCancel: () => m(!1), groups: d, isLoading: u })
|
|
3347
3350
|
] }) });
|
|
3348
3351
|
}, Xi = "_card_19733_1", Ji = "_header_19733_6", Zi = "_header-content_19733_13", ec = "_title_19733_19", tc = "_collapse-icon_19733_22", nc = "_collapsed_19733_27", rc = "_content_19733_30", pe = {
|
|
@@ -3444,9 +3447,9 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3444
3447
|
] }),
|
|
3445
3448
|
n.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(z, { variant: "body", children: a ?? "No photos available" }) }),
|
|
3446
3449
|
h && /* @__PURE__ */ s.jsxs("div", { className: ne.photoContainer, children: [
|
|
3447
|
-
/* @__PURE__ */ s.jsx("div", { role: m ? "button" : void 0, className: x("align-items-start", ne.navButton), onClick: () => m && d((w) => w - 1), children: m && /* @__PURE__ */ s.jsx(
|
|
3450
|
+
/* @__PURE__ */ s.jsx("div", { role: m ? "button" : void 0, className: x("align-items-start", ne.navButton), onClick: () => m && d((w) => w - 1), children: m && /* @__PURE__ */ s.jsx(dt, { style: { fontSize: "40px" } }) }),
|
|
3448
3451
|
/* @__PURE__ */ s.jsx("img", { src: h.lgSrc, alt: h.alt, className: x("rounded", ne.photo) }),
|
|
3449
|
-
/* @__PURE__ */ s.jsx("div", { role: p ? "button" : void 0, className: x("align-items-end", ne.navButton), onClick: () => p && d((w) => w + 1), children: p && /* @__PURE__ */ s.jsx(
|
|
3452
|
+
/* @__PURE__ */ s.jsx("div", { role: p ? "button" : void 0, className: x("align-items-end", ne.navButton), onClick: () => p && d((w) => w + 1), children: p && /* @__PURE__ */ s.jsx(ht, { style: { fontSize: "40px" } }) })
|
|
3450
3453
|
] }),
|
|
3451
3454
|
/* @__PURE__ */ s.jsx("div", { className: ne.photosPreview, children: n.map((w, f) => /* @__PURE__ */ s.jsxs("div", { role: "button", onClick: () => d(f), className: "position-relative", children: [
|
|
3452
3455
|
/* @__PURE__ */ s.jsx("img", { role: f !== u ? "button" : void 0, src: w.smSrc, alt: w.alt, className: x("rounded", ne.photo, {
|
|
@@ -3481,11 +3484,11 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3481
3484
|
u.length > 0 && e(Array.from(u));
|
|
3482
3485
|
}, icon: /* @__PURE__ */ s.jsx(Jt, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : null;
|
|
3483
3486
|
}, Rc = ({ appAccessPermissions: t, children: e }) => {
|
|
3484
|
-
const { NavigateComponent: n } = L(
|
|
3487
|
+
const { NavigateComponent: n } = L(oe), { useMsal: r, msalScopes: o } = L(Ar), { isAuthenticated: a } = Fr(), { user: i, loggingInProgress: l } = L(Wr), c = i && (t == null ? void 0 : t.every((u) => {
|
|
3485
3488
|
var d;
|
|
3486
3489
|
return (d = i.permissions) == null ? void 0 : d.includes(u);
|
|
3487
3490
|
}));
|
|
3488
|
-
return r ? /* @__PURE__ */ s.jsx(Sa, { interactionType:
|
|
3491
|
+
return r ? /* @__PURE__ */ s.jsx(Sa, { interactionType: Le.Redirect, authenticationRequest: { scopes: o }, children: l || !a() ? /* @__PURE__ */ s.jsx(Gr, {}) : i ? 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 }) }) : !a() || !i ? /* @__PURE__ */ s.jsx(n, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 });
|
|
3489
3492
|
}, Lc = (t) => {
|
|
3490
3493
|
const { variant: e, children: n, className: r, size: o = "md", typographyVariant: a = o === "sm" ? "body2" : "body", ...i } = { ...t };
|
|
3491
3494
|
return /* @__PURE__ */ s.jsx(ds, { variant: e, className: `text-center ${o === "sm" ? "p-1" : o === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...i, children: /* @__PURE__ */ s.jsx(z, { variant: a, children: n }) });
|
|
@@ -3500,19 +3503,19 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3500
3503
|
}, children: /* @__PURE__ */ s.jsxs(z, { variant: "caption", className: "w-100 text-end", children: [
|
|
3501
3504
|
"verze ",
|
|
3502
3505
|
t
|
|
3503
|
-
] }) }), Yc = ({ heading: t, content: e, placement: n, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(Rr, { placement: n, overlay: /* @__PURE__ */ s.jsxs(
|
|
3504
|
-
/* @__PURE__ */ s.jsx(
|
|
3505
|
-
/* @__PURE__ */ s.jsx(
|
|
3506
|
+
] }) }), Yc = ({ heading: t, content: e, placement: n, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(Rr, { placement: n, overlay: /* @__PURE__ */ s.jsxs(Je, { className: "luminus-tooltip", children: [
|
|
3507
|
+
/* @__PURE__ */ s.jsx(Je.Header, { children: typeof t == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: t }) : t }),
|
|
3508
|
+
/* @__PURE__ */ s.jsx(Je.Body, { children: e })
|
|
3506
3509
|
] }), trigger: o ?? "hover", rootClose: !0, children: r }), rr = ({ currentSelection: t, selectedItemNavigateTo: e, children: n }) => {
|
|
3507
|
-
const { LinkComponent: r } = L(
|
|
3510
|
+
const { LinkComponent: r } = L(oe);
|
|
3508
3511
|
if (!t || !t.id || !e)
|
|
3509
3512
|
return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: n });
|
|
3510
3513
|
const o = e(t);
|
|
3511
3514
|
return /* @__PURE__ */ s.jsx(r, { to: o, className: "luminus-input-container position-relative w-100 text-decoration-none", children: n });
|
|
3512
|
-
}, Hc = ({ InputContainer: t =
|
|
3515
|
+
}, Hc = ({ InputContainer: t = Ge, 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(ee.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: n, onChange: (u) => {
|
|
3513
3516
|
var d;
|
|
3514
3517
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3515
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Bc = ({ InputContainer: t =
|
|
3518
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Bc = ({ InputContainer: t = Ge, type: e, value: n, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: m, list: p, className: b, step: w }) => {
|
|
3516
3519
|
const f = e === "number", j = O(() => {
|
|
3517
3520
|
if (!r)
|
|
3518
3521
|
return;
|
|
@@ -3541,7 +3544,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3541
3544
|
h && n && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(J, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ s.jsx(je, {}) }) })
|
|
3542
3545
|
] });
|
|
3543
3546
|
}, Gc = ({
|
|
3544
|
-
InputContainer: t =
|
|
3547
|
+
InputContainer: t = Ge,
|
|
3545
3548
|
value: e,
|
|
3546
3549
|
options: n,
|
|
3547
3550
|
onChange: r,
|
|
@@ -3577,7 +3580,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3577
3580
|
] }),
|
|
3578
3581
|
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(J, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ s.jsx(je, {}) }) })
|
|
3579
3582
|
] });
|
|
3580
|
-
}, Vc = ({ InputContainer: t =
|
|
3583
|
+
}, Vc = ({ InputContainer: t = Ge, items: e, defaultSelection: n, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: m, additionalColumns: p, hidden: b, disabled: w, displayIdAsName: f, CustomOnChangeComponent: j, className: v }) => {
|
|
3581
3584
|
var T, F;
|
|
3582
3585
|
const [g, C] = P(n), [k, y] = P(!1);
|
|
3583
3586
|
D(() => {
|
|
@@ -3617,7 +3620,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3617
3620
|
j ?? null
|
|
3618
3621
|
] }) : null
|
|
3619
3622
|
] }),
|
|
3620
|
-
S.current && /* @__PURE__ */ s.jsx(
|
|
3623
|
+
S.current && /* @__PURE__ */ s.jsx(vt, { show: k, onCancel: () => y(!1), items: e, currentSelection: g, onSelectionChange: M, onSearchQueryChange: o, texts: a, itemsNameWidth: m, additionalColumns: p, isLoading: i, disabled: w, inputRef: S })
|
|
3621
3624
|
] }) });
|
|
3622
3625
|
}, Uc = ({ InputContainer: t = we, formField: e, label: n, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c, className: u }) => {
|
|
3623
3626
|
const { register: d, formState: h, setValue: m } = he(), [p, b] = P(void 0), [w, f] = P(!1);
|
|
@@ -3695,8 +3698,8 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3695
3698
|
}, [c, e, g, n, $]), N = O(() => {
|
|
3696
3699
|
const R = n.split(".");
|
|
3697
3700
|
let G = v.errors;
|
|
3698
|
-
R.forEach((
|
|
3699
|
-
G !== void 0 && (G = G[
|
|
3701
|
+
R.forEach((se) => {
|
|
3702
|
+
G !== void 0 && (G = G[se]);
|
|
3700
3703
|
}), y(G);
|
|
3701
3704
|
}, [v, n]);
|
|
3702
3705
|
D(() => {
|
|
@@ -3722,16 +3725,16 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3722
3725
|
k && /* @__PURE__ */ s.jsx(xe, { message: k.message })
|
|
3723
3726
|
] });
|
|
3724
3727
|
}, Xc = ({ InputContainer: t = we, formField: e, label: n, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: m, texts: p, dropdownItemsNameWidth: b, isLoading: w, withoutLabel: f, additionalColumns: j, CustomOnChangeComponent: v, displayIdAsName: g, className: C }) => {
|
|
3725
|
-
const { formState: k, setValue: y, watch: $, control: M } = he(), [S, N] = P(void 0), [_, T] = P(!1), [F, W] = P(!1), H = $(e) ?? null, R = H === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : $(`${e}-DropdownName`), G = Q(() => H == null ? null : { id: H ?? null, name: R ?? "" }, [H, R]),
|
|
3728
|
+
const { formState: k, setValue: y, watch: $, control: M } = he(), [S, N] = P(void 0), [_, T] = P(!1), [F, W] = P(!1), H = $(e) ?? null, R = H === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : $(`${e}-DropdownName`), G = Q(() => H == null ? null : { id: H ?? null, name: R ?? "" }, [H, R]), se = O(() => {
|
|
3726
3729
|
const B = e.split(".");
|
|
3727
3730
|
let ce = k.errors;
|
|
3728
|
-
B.forEach((
|
|
3729
|
-
ce !== void 0 && (ce = ce[
|
|
3731
|
+
B.forEach((Xe) => {
|
|
3732
|
+
ce !== void 0 && (ce = ce[Xe]);
|
|
3730
3733
|
}), N(ce);
|
|
3731
3734
|
}, [k, e]), te = O((B) => {
|
|
3732
3735
|
if ((B == null ? void 0 : B.id) === H)
|
|
3733
3736
|
return;
|
|
3734
|
-
if (a && a.forEach((
|
|
3737
|
+
if (a && a.forEach((Xe) => y(Xe, null, { shouldDirty: !0, shouldValidate: F })), B === null) {
|
|
3735
3738
|
y(e, null, {
|
|
3736
3739
|
shouldDirty: !0,
|
|
3737
3740
|
shouldValidate: F
|
|
@@ -3749,8 +3752,8 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3749
3752
|
T(!1);
|
|
3750
3753
|
}, []);
|
|
3751
3754
|
D(() => {
|
|
3752
|
-
|
|
3753
|
-
}, [
|
|
3755
|
+
se();
|
|
3756
|
+
}, [se]), D(() => {
|
|
3754
3757
|
k.isSubmitted && W(!0);
|
|
3755
3758
|
}, [k]);
|
|
3756
3759
|
const E = Y(null), K = S !== void 0, Me = m !== void 0, or = Me && G !== null;
|
|
@@ -3774,7 +3777,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3774
3777
|
] }) : null
|
|
3775
3778
|
] }),
|
|
3776
3779
|
S && /* @__PURE__ */ s.jsx(xe, { message: S.message }),
|
|
3777
|
-
E.current && /* @__PURE__ */ s.jsx(
|
|
3780
|
+
E.current && /* @__PURE__ */ s.jsx(vt, { show: _, onCancel: I, items: d, currentSelection: G, onSelectionChange: U, onSearchQueryChange: h, texts: p, itemsNameWidth: b, additionalColumns: j, displayIdAsName: g, isLoading: w, disabled: u, inputRef: E })
|
|
3778
3781
|
] }) });
|
|
3779
3782
|
}, Jc = ({ InputContainer: t = we, label: e, formField: n, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h, className: m }) => {
|
|
3780
3783
|
const { watch: p, setValue: b, register: w, formState: f } = he(), [j, v] = P(!1), [g, C] = P(void 0), k = O(() => {
|
|
@@ -3805,7 +3808,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3805
3808
|
o(Object.keys(n.dirtyFields).length > 0);
|
|
3806
3809
|
}, [n]), r ? /* @__PURE__ */ s.jsx(Fa, { onStorno: e, children: t }) : null;
|
|
3807
3810
|
}, el = ({ InputContainer: t = we, options: e, formField: n, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: m, className: p }) => {
|
|
3808
|
-
const { customSelectTexts: b } = L(
|
|
3811
|
+
const { customSelectTexts: b } = L(oe), { formState: w, setValue: f, watch: j, control: v } = he(), [g, C] = P(void 0), [k, y] = P(!1), [$, M] = P(!1), [S, N] = P(""), _ = j(n), T = Q(() => e.find((I) => I.id === _) ?? null, [e, _]), F = O(() => {
|
|
3809
3812
|
const I = n.split(".");
|
|
3810
3813
|
let E = w.errors;
|
|
3811
3814
|
I.forEach((K) => {
|
|
@@ -3839,7 +3842,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3839
3842
|
const G = O((I) => {
|
|
3840
3843
|
var E;
|
|
3841
3844
|
return I === null ? "" : !I.name || I.name.length === 0 ? ((E = I.id) == null ? void 0 : E.toString()) ?? "" : m ? `${I.name} (${I.id})` : I.name;
|
|
3842
|
-
}, [m]),
|
|
3845
|
+
}, [m]), se = Q(() => e.map((I) => ({
|
|
3843
3846
|
id: I.id,
|
|
3844
3847
|
name: G(I)
|
|
3845
3848
|
})).filter((I) => {
|
|
@@ -3854,15 +3857,15 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3854
3857
|
}, ref: te, value: _ ?? "", onChange: () => {
|
|
3855
3858
|
}, isInvalid: U, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (T == null ? void 0 : T.id) ?? "", children: G(T) }) }) }),
|
|
3856
3859
|
g && /* @__PURE__ */ s.jsx(xe, { message: g.message }),
|
|
3857
|
-
te.current && /* @__PURE__ */ s.jsx(
|
|
3860
|
+
te.current && /* @__PURE__ */ s.jsx(vt, { show: k, onCancel: () => y(!1), items: se, currentSelection: T ?? null, onSelectionChange: H, onSearchQueryChange: R, texts: b, disabled: u, inputRef: te, autoHideSearch: !0, allItemsLength: e.length })
|
|
3858
3861
|
] }) });
|
|
3859
|
-
}, tl = ({ cell: { value: t } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: t ? /* @__PURE__ */ s.jsx(Lr, { name: t, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), wc = "_tab-panel_qgi9v_1", xc = "_full-height-no-overflow_qgi9v_5", yc = "_disabled_qgi9v_10",
|
|
3862
|
+
}, tl = ({ cell: { value: t } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: t ? /* @__PURE__ */ s.jsx(Lr, { name: t, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), wc = "_tab-panel_qgi9v_1", xc = "_full-height-no-overflow_qgi9v_5", yc = "_disabled_qgi9v_10", rt = {
|
|
3860
3863
|
"tab-panel": "_tab-panel_qgi9v_1",
|
|
3861
3864
|
tabPanel: wc,
|
|
3862
3865
|
"full-height-no-overflow": "_full-height-no-overflow_qgi9v_5",
|
|
3863
3866
|
fullHeightNoOverflow: xc,
|
|
3864
3867
|
disabled: yc
|
|
3865
|
-
}, nl = ({ eventKey: t, activeTab: e, fullHeightNoOverflow: n, disabled: r, className: o, children: a }) => t !== e ? null : /* @__PURE__ */ s.jsx("div", { className: x("luminus-tab-panel",
|
|
3868
|
+
}, nl = ({ eventKey: t, activeTab: e, fullHeightNoOverflow: n, disabled: r, className: o, children: a }) => t !== e ? null : /* @__PURE__ */ s.jsx("div", { className: x("luminus-tab-panel", rt.tabPanel, { [rt.fullHeightNoOverflow]: n }, { disabled: r }, { [rt.disabled]: r }, o), children: a }), rl = ({ activeTab: t, onSelect: e, children: n }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-tabs d-flex gap-1 mb-2"), children: n.map((r) => {
|
|
3866
3869
|
const o = r.type, a = r.props;
|
|
3867
3870
|
if (!a)
|
|
3868
3871
|
return null;
|
|
@@ -3896,7 +3899,7 @@ export {
|
|
|
3896
3899
|
Zn as FileUploadContextButton,
|
|
3897
3900
|
Dc as FileUploadDropdownItem,
|
|
3898
3901
|
Fa as FloatingFormSubmit,
|
|
3899
|
-
|
|
3902
|
+
Ge as FloatingLabelInput,
|
|
3900
3903
|
Ec as HomeDashboard,
|
|
3901
3904
|
Uc as HookFormCheckInput,
|
|
3902
3905
|
Xc as HookFormDropdownPicker,
|
|
@@ -3914,10 +3917,10 @@ export {
|
|
|
3914
3917
|
il as NoInputContainer,
|
|
3915
3918
|
Wc as PhotoLibrary,
|
|
3916
3919
|
gc as PhotoLightbox,
|
|
3917
|
-
|
|
3920
|
+
Rt as PrimaryButton,
|
|
3918
3921
|
we as RowLabelInput,
|
|
3919
3922
|
Gc as SelectInput,
|
|
3920
|
-
|
|
3923
|
+
vt as SimplePicker,
|
|
3921
3924
|
Or as SimpleToggle,
|
|
3922
3925
|
ul as SimpleTooltip,
|
|
3923
3926
|
ol as Tab,
|