react-luminus-components 1.2.98 → 1.2.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +44 -44
- package/dist/{NoInputContainer-DmujYLRc.js → NoInputContainer-BCTMX8k7.js} +635 -635
- package/dist/{NoInputContainer-DPu2_Ecd.cjs → NoInputContainer-CUJPpofC.cjs} +6 -6
- package/dist/{PrimaryButton-C0uCF4Kl.js → PrimaryButton-C4SO69fm.js} +1 -1
- package/dist/{PrimaryButton-B9bIraPZ.cjs → PrimaryButton-C6dn1vVP.cjs} +1 -1
- package/dist/{SimpleTooltip-UZ3Po2kJ.js → SimpleTooltip-CPdPmVvw.js} +1 -1
- package/dist/{SimpleTooltip-DoEKtYn9.cjs → SimpleTooltip-j5pL4_G0.cjs} +1 -1
- package/dist/components/Form/TextInput/TextInput.d.ts +1 -1
- package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +1 -1
- package/dist/components/common/MonthPicker/MonthPicker.d.ts +3 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +3 -3
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.es.js +1525 -1486
- package/dist/models/prop-types/InputProps/TextInputProps.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{useConfirm-e0z7dWOQ.js → useConfirm-B3Kocm0W.js} +1 -1
- package/dist/{useConfirm-DVvuj3wA.cjs → useConfirm-CFmD7rmb.cjs} +1 -1
- package/dist/{usePermissions-B8CZ9haY.js → usePermissions-BEgNFMld.js} +1 -1
- package/dist/{usePermissions-Y6Y2xPE8.cjs → usePermissions-DSmIxVqo.cjs} +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { j as o, c as
|
|
2
|
-
import { aj as
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { c as de, d as
|
|
6
|
-
import { m as
|
|
7
|
-
import { useFormContext as le, Controller as
|
|
8
|
-
import { u as
|
|
9
|
-
import { S as
|
|
10
|
-
import { s as
|
|
11
|
-
const
|
|
12
|
-
const r =
|
|
1
|
+
import { j as o, c as x, t as J, a as oe, g as hr, T as mr, b as fr, s as kt, E as pr, d as gr, e as xr, f as wr, h as vr, u as V, i as me, k as Xt, F as Nt, l as yr, m as br, n as _r, o as jr, p as kr, q as Nr, r as Cr, v as Ir, w as ut, x as Jt, y as $r, z as Sr, A as be, B as Tr, C as Er, P as Xe, D as dt, S as Ct, G as Me, H as Ae, I as ht, J as Dr, K as Zt, L as $e, M as Le, O as It, N as Or, Q as ae, R as Pr, U as Mr, V as en, W as mt, X as ft, Y as G, Z as Ar, _ as tn, $ as Fr, a0 as nn, a1 as pt, a2 as Wr, a3 as Rr, a4 as Yr, a5 as rn, a6 as ce, a7 as Lr, a8 as qr, a9 as Hr, aa as Br, ab as sn, ac as Vr, ad as Gr, ae as Je, af as ke, ag as on, ah as fe } from "./NoInputContainer-BCTMX8k7.js";
|
|
2
|
+
import { aj as Fl, ai as Wl } from "./NoInputContainer-BCTMX8k7.js";
|
|
3
|
+
import * as W from "react";
|
|
4
|
+
import ne, { useCallback as S, useMemo as K, useEffect as O, useRef as q, useState as P, useReducer as an, useContext as Y, Component as zr, isValidElement as Ur, Suspense as Kr, createElement as Qr } from "react";
|
|
5
|
+
import { c as de, d as Xr, C as Jr, a as cn, u as Zr, q as $t, F as es, b as ln, E as Fe, P as St, M as We, L as ts } from "./PrimaryButton-C4SO69fm.js";
|
|
6
|
+
import { m as ns, a as un } from "./latinize-3MO2uNV7.js";
|
|
7
|
+
import { useFormContext as le, Controller as dn } from "react-hook-form";
|
|
8
|
+
import { u as hn, a as mn, b as fn } from "./useFormControlType-BAFqxupC.js";
|
|
9
|
+
import { S as Yl } from "./SimpleTooltip-CPdPmVvw.js";
|
|
10
|
+
import { s as rs } from "./searchUtils--egT-ac7.js";
|
|
11
|
+
const tl = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
12
|
+
const r = S(async () => {
|
|
13
13
|
var l, c;
|
|
14
14
|
const s = await n();
|
|
15
15
|
if (!s)
|
|
@@ -18,13 +18,13 @@ const Xc = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
|
18
18
|
i.href = a, i.setAttribute("download", e), (l = document.body) == null || l.appendChild(i), i.click(), (c = document.body) == null || c.removeChild(i);
|
|
19
19
|
}, [n, e]);
|
|
20
20
|
return /* @__PURE__ */ o.jsx("div", { role: "button", onClick: r, children: t });
|
|
21
|
-
},
|
|
22
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
23
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
24
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
21
|
+
}, ss = ({ className: n, ...e }) => /* @__PURE__ */ o.jsxs("div", { className: x("luminus-loading", de.loading, de.loadingBlock, de.loadingBlock), ...e, children: [
|
|
22
|
+
/* @__PURE__ */ o.jsx("div", { className: x("spinner-grow", de.spinnerGrow, "text-primary"), role: "status" }),
|
|
23
|
+
/* @__PURE__ */ o.jsx("div", { className: x("spinner-grow", de.spinnerGrow, "text-primary", de.second), role: "status" }),
|
|
24
|
+
/* @__PURE__ */ o.jsx("div", { className: x("spinner-grow", de.spinnerGrow, "text-primary", de.third), role: "status" })
|
|
25
25
|
] });
|
|
26
|
-
function
|
|
27
|
-
const t =
|
|
26
|
+
function pn(n, e) {
|
|
27
|
+
const t = J(n);
|
|
28
28
|
if (isNaN(e))
|
|
29
29
|
return oe(n, NaN);
|
|
30
30
|
if (!e)
|
|
@@ -38,32 +38,32 @@ function fn(n, e) {
|
|
|
38
38
|
r
|
|
39
39
|
), t);
|
|
40
40
|
}
|
|
41
|
-
let
|
|
41
|
+
let os = {};
|
|
42
42
|
function Ge() {
|
|
43
|
-
return
|
|
43
|
+
return os;
|
|
44
44
|
}
|
|
45
45
|
function Te(n, e) {
|
|
46
46
|
var l, c, u, d;
|
|
47
|
-
const t = Ge(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.weekStartsOn) ?? t.weekStartsOn ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, s =
|
|
47
|
+
const t = Ge(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.weekStartsOn) ?? t.weekStartsOn ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, s = J(n), a = s.getDay(), i = (a < r ? 7 : 0) + a - r;
|
|
48
48
|
return s.setDate(s.getDate() - i), s.setHours(0, 0, 0, 0), s;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function qe(n) {
|
|
51
51
|
return Te(n, { weekStartsOn: 1 });
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const e =
|
|
53
|
+
function gn(n) {
|
|
54
|
+
const e = J(n), t = e.getFullYear(), r = oe(n, 0);
|
|
55
55
|
r.setFullYear(t + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
56
|
-
const s =
|
|
56
|
+
const s = qe(r), a = oe(n, 0);
|
|
57
57
|
a.setFullYear(t, 0, 4), a.setHours(0, 0, 0, 0);
|
|
58
|
-
const i =
|
|
58
|
+
const i = qe(a);
|
|
59
59
|
return e.getTime() >= s.getTime() ? t + 1 : e.getTime() >= i.getTime() ? t : t - 1;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
const e =
|
|
61
|
+
function Tt(n) {
|
|
62
|
+
const e = J(n);
|
|
63
63
|
return e.setHours(0, 0, 0, 0), e;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const e =
|
|
65
|
+
function Et(n) {
|
|
66
|
+
const e = J(n), t = new Date(
|
|
67
67
|
Date.UTC(
|
|
68
68
|
e.getFullYear(),
|
|
69
69
|
e.getMonth(),
|
|
@@ -76,35 +76,35 @@ function Tt(n) {
|
|
|
76
76
|
);
|
|
77
77
|
return t.setUTCFullYear(e.getFullYear()), +n - +t;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
const t =
|
|
81
|
-
return Math.round((s - a) /
|
|
79
|
+
function as(n, e) {
|
|
80
|
+
const t = Tt(n), r = Tt(e), s = +t - Et(t), a = +r - Et(r);
|
|
81
|
+
return Math.round((s - a) / ns);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const e =
|
|
85
|
-
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0),
|
|
83
|
+
function is(n) {
|
|
84
|
+
const e = gn(n), t = oe(n, 0);
|
|
85
|
+
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0), qe(t);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function cs(n, e) {
|
|
88
|
+
return pn(n, e * 12);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
const t =
|
|
90
|
+
function ls(n, e) {
|
|
91
|
+
const t = J(n), r = J(e), s = t.getTime() - r.getTime();
|
|
92
92
|
return s < 0 ? -1 : s > 0 ? 1 : s;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function us(n) {
|
|
95
95
|
return n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
if (!
|
|
97
|
+
function ds(n) {
|
|
98
|
+
if (!us(n) && typeof n != "number")
|
|
99
99
|
return !1;
|
|
100
|
-
const e =
|
|
100
|
+
const e = J(n);
|
|
101
101
|
return !isNaN(Number(e));
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
const e =
|
|
103
|
+
function hs(n) {
|
|
104
|
+
const e = J(n), t = oe(n, 0);
|
|
105
105
|
return t.setFullYear(e.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const ms = {
|
|
108
108
|
lessThanXSeconds: {
|
|
109
109
|
one: "less than a second",
|
|
110
110
|
other: "less than {{count}} seconds"
|
|
@@ -166,9 +166,9 @@ const ds = {
|
|
|
166
166
|
one: "almost 1 year",
|
|
167
167
|
other: "almost {{count}} years"
|
|
168
168
|
}
|
|
169
|
-
},
|
|
169
|
+
}, fs = (n, e, t) => {
|
|
170
170
|
let r;
|
|
171
|
-
const s =
|
|
171
|
+
const s = ms[n];
|
|
172
172
|
return typeof s == "string" ? r = s : e === 1 ? r = s.one : r = s.other.replace("{{count}}", e.toString()), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
173
173
|
};
|
|
174
174
|
function Ze(n) {
|
|
@@ -177,42 +177,42 @@ function Ze(n) {
|
|
|
177
177
|
return n.formats[t] || n.formats[n.defaultWidth];
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const ps = {
|
|
181
181
|
full: "EEEE, MMMM do, y",
|
|
182
182
|
long: "MMMM do, y",
|
|
183
183
|
medium: "MMM d, y",
|
|
184
184
|
short: "MM/dd/yyyy"
|
|
185
|
-
},
|
|
185
|
+
}, gs = {
|
|
186
186
|
full: "h:mm:ss a zzzz",
|
|
187
187
|
long: "h:mm:ss a z",
|
|
188
188
|
medium: "h:mm:ss a",
|
|
189
189
|
short: "h:mm a"
|
|
190
|
-
},
|
|
190
|
+
}, xs = {
|
|
191
191
|
full: "{{date}} 'at' {{time}}",
|
|
192
192
|
long: "{{date}} 'at' {{time}}",
|
|
193
193
|
medium: "{{date}}, {{time}}",
|
|
194
194
|
short: "{{date}}, {{time}}"
|
|
195
|
-
},
|
|
195
|
+
}, ws = {
|
|
196
196
|
date: Ze({
|
|
197
|
-
formats:
|
|
197
|
+
formats: ps,
|
|
198
198
|
defaultWidth: "full"
|
|
199
199
|
}),
|
|
200
200
|
time: Ze({
|
|
201
|
-
formats:
|
|
201
|
+
formats: gs,
|
|
202
202
|
defaultWidth: "full"
|
|
203
203
|
}),
|
|
204
204
|
dateTime: Ze({
|
|
205
|
-
formats:
|
|
205
|
+
formats: xs,
|
|
206
206
|
defaultWidth: "full"
|
|
207
207
|
})
|
|
208
|
-
},
|
|
208
|
+
}, vs = {
|
|
209
209
|
lastWeek: "'last' eeee 'at' p",
|
|
210
210
|
yesterday: "'yesterday at' p",
|
|
211
211
|
today: "'today at' p",
|
|
212
212
|
tomorrow: "'tomorrow at' p",
|
|
213
213
|
nextWeek: "eeee 'at' p",
|
|
214
214
|
other: "P"
|
|
215
|
-
},
|
|
215
|
+
}, ys = (n, e, t, r) => vs[n];
|
|
216
216
|
function Ne(n) {
|
|
217
217
|
return (e, t) => {
|
|
218
218
|
const r = t != null && t.context ? String(t.context) : "standalone";
|
|
@@ -228,15 +228,15 @@ function Ne(n) {
|
|
|
228
228
|
return s[a];
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const bs = {
|
|
232
232
|
narrow: ["B", "A"],
|
|
233
233
|
abbreviated: ["BC", "AD"],
|
|
234
234
|
wide: ["Before Christ", "Anno Domini"]
|
|
235
|
-
},
|
|
235
|
+
}, _s = {
|
|
236
236
|
narrow: ["1", "2", "3", "4"],
|
|
237
237
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
238
238
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
239
|
-
},
|
|
239
|
+
}, js = {
|
|
240
240
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
241
241
|
abbreviated: [
|
|
242
242
|
"Jan",
|
|
@@ -266,7 +266,7 @@ const vs = {
|
|
|
266
266
|
"November",
|
|
267
267
|
"December"
|
|
268
268
|
]
|
|
269
|
-
},
|
|
269
|
+
}, ks = {
|
|
270
270
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
271
271
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
272
272
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -279,7 +279,7 @@ const vs = {
|
|
|
279
279
|
"Friday",
|
|
280
280
|
"Saturday"
|
|
281
281
|
]
|
|
282
|
-
},
|
|
282
|
+
}, Ns = {
|
|
283
283
|
narrow: {
|
|
284
284
|
am: "a",
|
|
285
285
|
pm: "p",
|
|
@@ -310,7 +310,7 @@ const vs = {
|
|
|
310
310
|
evening: "evening",
|
|
311
311
|
night: "night"
|
|
312
312
|
}
|
|
313
|
-
},
|
|
313
|
+
}, Cs = {
|
|
314
314
|
narrow: {
|
|
315
315
|
am: "a",
|
|
316
316
|
pm: "p",
|
|
@@ -341,7 +341,7 @@ const vs = {
|
|
|
341
341
|
evening: "in the evening",
|
|
342
342
|
night: "at night"
|
|
343
343
|
}
|
|
344
|
-
},
|
|
344
|
+
}, Is = (n, e) => {
|
|
345
345
|
const t = Number(n), r = t % 100;
|
|
346
346
|
if (r > 20 || r < 10)
|
|
347
347
|
switch (r % 10) {
|
|
@@ -353,29 +353,29 @@ const vs = {
|
|
|
353
353
|
return t + "rd";
|
|
354
354
|
}
|
|
355
355
|
return t + "th";
|
|
356
|
-
},
|
|
357
|
-
ordinalNumber:
|
|
356
|
+
}, $s = {
|
|
357
|
+
ordinalNumber: Is,
|
|
358
358
|
era: Ne({
|
|
359
|
-
values:
|
|
359
|
+
values: bs,
|
|
360
360
|
defaultWidth: "wide"
|
|
361
361
|
}),
|
|
362
362
|
quarter: Ne({
|
|
363
|
-
values:
|
|
363
|
+
values: _s,
|
|
364
364
|
defaultWidth: "wide",
|
|
365
365
|
argumentCallback: (n) => n - 1
|
|
366
366
|
}),
|
|
367
367
|
month: Ne({
|
|
368
|
-
values:
|
|
368
|
+
values: js,
|
|
369
369
|
defaultWidth: "wide"
|
|
370
370
|
}),
|
|
371
371
|
day: Ne({
|
|
372
|
-
values:
|
|
372
|
+
values: ks,
|
|
373
373
|
defaultWidth: "wide"
|
|
374
374
|
}),
|
|
375
375
|
dayPeriod: Ne({
|
|
376
|
-
values:
|
|
376
|
+
values: Ns,
|
|
377
377
|
defaultWidth: "wide",
|
|
378
|
-
formattingValues:
|
|
378
|
+
formattingValues: Cs,
|
|
379
379
|
defaultFormattingWidth: "wide"
|
|
380
380
|
})
|
|
381
381
|
};
|
|
@@ -384,9 +384,9 @@ function Ce(n) {
|
|
|
384
384
|
const r = t.width, s = r && n.matchPatterns[r] || n.matchPatterns[n.defaultMatchWidth], a = e.match(s);
|
|
385
385
|
if (!a)
|
|
386
386
|
return null;
|
|
387
|
-
const i = a[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], c = Array.isArray(l) ?
|
|
387
|
+
const i = a[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], c = Array.isArray(l) ? Ts(l, (h) => h.test(i)) : (
|
|
388
388
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
389
|
-
|
|
389
|
+
Ss(l, (h) => h.test(i))
|
|
390
390
|
);
|
|
391
391
|
let u;
|
|
392
392
|
u = n.valueCallback ? n.valueCallback(c) : c, u = t.valueCallback ? (
|
|
@@ -397,17 +397,17 @@ function Ce(n) {
|
|
|
397
397
|
return { value: u, rest: d };
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Ss(n, e) {
|
|
401
401
|
for (const t in n)
|
|
402
402
|
if (Object.prototype.hasOwnProperty.call(n, t) && e(n[t]))
|
|
403
403
|
return t;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Ts(n, e) {
|
|
406
406
|
for (let t = 0; t < n.length; t++)
|
|
407
407
|
if (e(n[t]))
|
|
408
408
|
return t;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Es(n) {
|
|
411
411
|
return (e, t = {}) => {
|
|
412
412
|
const r = e.match(n.matchPattern);
|
|
413
413
|
if (!r)
|
|
@@ -421,23 +421,23 @@ function Ss(n) {
|
|
|
421
421
|
return { value: i, rest: l };
|
|
422
422
|
};
|
|
423
423
|
}
|
|
424
|
-
const
|
|
424
|
+
const Ds = /^(\d+)(th|st|nd|rd)?/i, Os = /\d+/i, Ps = {
|
|
425
425
|
narrow: /^(b|a)/i,
|
|
426
426
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
427
427
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
428
|
-
},
|
|
428
|
+
}, Ms = {
|
|
429
429
|
any: [/^b/i, /^(a|c)/i]
|
|
430
|
-
},
|
|
430
|
+
}, As = {
|
|
431
431
|
narrow: /^[1234]/i,
|
|
432
432
|
abbreviated: /^q[1234]/i,
|
|
433
433
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
434
|
-
},
|
|
434
|
+
}, Fs = {
|
|
435
435
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
436
|
-
},
|
|
436
|
+
}, Ws = {
|
|
437
437
|
narrow: /^[jfmasond]/i,
|
|
438
438
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
439
439
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
440
|
-
},
|
|
440
|
+
}, Rs = {
|
|
441
441
|
narrow: [
|
|
442
442
|
/^j/i,
|
|
443
443
|
/^f/i,
|
|
@@ -466,18 +466,18 @@ const Ts = /^(\d+)(th|st|nd|rd)?/i, Es = /\d+/i, Ds = {
|
|
|
466
466
|
/^n/i,
|
|
467
467
|
/^d/i
|
|
468
468
|
]
|
|
469
|
-
},
|
|
469
|
+
}, Ys = {
|
|
470
470
|
narrow: /^[smtwf]/i,
|
|
471
471
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
472
472
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
473
473
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
474
|
-
},
|
|
474
|
+
}, Ls = {
|
|
475
475
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
476
476
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
477
|
-
},
|
|
477
|
+
}, qs = {
|
|
478
478
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
479
479
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
480
|
-
},
|
|
480
|
+
}, Hs = {
|
|
481
481
|
any: {
|
|
482
482
|
am: /^a/i,
|
|
483
483
|
pm: /^p/i,
|
|
@@ -488,82 +488,82 @@ const Ts = /^(\d+)(th|st|nd|rd)?/i, Es = /\d+/i, Ds = {
|
|
|
488
488
|
evening: /evening/i,
|
|
489
489
|
night: /night/i
|
|
490
490
|
}
|
|
491
|
-
},
|
|
492
|
-
ordinalNumber:
|
|
493
|
-
matchPattern:
|
|
494
|
-
parsePattern:
|
|
491
|
+
}, Bs = {
|
|
492
|
+
ordinalNumber: Es({
|
|
493
|
+
matchPattern: Ds,
|
|
494
|
+
parsePattern: Os,
|
|
495
495
|
valueCallback: (n) => parseInt(n, 10)
|
|
496
496
|
}),
|
|
497
497
|
era: Ce({
|
|
498
|
-
matchPatterns:
|
|
498
|
+
matchPatterns: Ps,
|
|
499
499
|
defaultMatchWidth: "wide",
|
|
500
|
-
parsePatterns:
|
|
500
|
+
parsePatterns: Ms,
|
|
501
501
|
defaultParseWidth: "any"
|
|
502
502
|
}),
|
|
503
503
|
quarter: Ce({
|
|
504
|
-
matchPatterns:
|
|
504
|
+
matchPatterns: As,
|
|
505
505
|
defaultMatchWidth: "wide",
|
|
506
|
-
parsePatterns:
|
|
506
|
+
parsePatterns: Fs,
|
|
507
507
|
defaultParseWidth: "any",
|
|
508
508
|
valueCallback: (n) => n + 1
|
|
509
509
|
}),
|
|
510
510
|
month: Ce({
|
|
511
|
-
matchPatterns:
|
|
511
|
+
matchPatterns: Ws,
|
|
512
512
|
defaultMatchWidth: "wide",
|
|
513
|
-
parsePatterns:
|
|
513
|
+
parsePatterns: Rs,
|
|
514
514
|
defaultParseWidth: "any"
|
|
515
515
|
}),
|
|
516
516
|
day: Ce({
|
|
517
|
-
matchPatterns:
|
|
517
|
+
matchPatterns: Ys,
|
|
518
518
|
defaultMatchWidth: "wide",
|
|
519
|
-
parsePatterns:
|
|
519
|
+
parsePatterns: Ls,
|
|
520
520
|
defaultParseWidth: "any"
|
|
521
521
|
}),
|
|
522
522
|
dayPeriod: Ce({
|
|
523
|
-
matchPatterns:
|
|
523
|
+
matchPatterns: qs,
|
|
524
524
|
defaultMatchWidth: "any",
|
|
525
|
-
parsePatterns:
|
|
525
|
+
parsePatterns: Hs,
|
|
526
526
|
defaultParseWidth: "any"
|
|
527
527
|
})
|
|
528
|
-
},
|
|
528
|
+
}, Vs = {
|
|
529
529
|
code: "en-US",
|
|
530
|
-
formatDistance:
|
|
531
|
-
formatLong:
|
|
532
|
-
formatRelative:
|
|
533
|
-
localize:
|
|
534
|
-
match:
|
|
530
|
+
formatDistance: fs,
|
|
531
|
+
formatLong: ws,
|
|
532
|
+
formatRelative: ys,
|
|
533
|
+
localize: $s,
|
|
534
|
+
match: Bs,
|
|
535
535
|
options: {
|
|
536
536
|
weekStartsOn: 0,
|
|
537
537
|
firstWeekContainsDate: 1
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
|
-
function
|
|
541
|
-
const e =
|
|
542
|
-
return
|
|
540
|
+
function Gs(n) {
|
|
541
|
+
const e = J(n);
|
|
542
|
+
return as(e, hs(e)) + 1;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
const e =
|
|
546
|
-
return Math.round(t /
|
|
544
|
+
function zs(n) {
|
|
545
|
+
const e = J(n), t = +qe(e) - +is(e);
|
|
546
|
+
return Math.round(t / un) + 1;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
var d, h,
|
|
550
|
-
const t =
|
|
548
|
+
function xn(n, e) {
|
|
549
|
+
var d, h, f, g;
|
|
550
|
+
const t = J(n), r = t.getFullYear(), s = Ge(), 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) ?? s.firstWeekContainsDate ?? ((g = (f = s.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = oe(n, 0);
|
|
551
551
|
i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
552
552
|
const l = Te(i, e), c = oe(n, 0);
|
|
553
553
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
554
554
|
const u = Te(c, e);
|
|
555
555
|
return t.getTime() >= l.getTime() ? r + 1 : t.getTime() >= u.getTime() ? r : r - 1;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Us(n, e) {
|
|
558
558
|
var l, c, u, d;
|
|
559
|
-
const t = Ge(), 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) ?? t.firstWeekContainsDate ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, s =
|
|
559
|
+
const t = Ge(), 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) ?? t.firstWeekContainsDate ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, s = xn(n, e), a = oe(n, 0);
|
|
560
560
|
return a.setFullYear(s, 0, r), a.setHours(0, 0, 0, 0), Te(a, e);
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
const t =
|
|
564
|
-
return Math.round(r /
|
|
562
|
+
function Ks(n, e) {
|
|
563
|
+
const t = J(n), r = +Te(t, e) - +Us(t, e);
|
|
564
|
+
return Math.round(r / un) + 1;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function L(n, e) {
|
|
567
567
|
const t = n < 0 ? "-" : "", r = Math.abs(n).toString().padStart(e, "0");
|
|
568
568
|
return t + r;
|
|
569
569
|
}
|
|
@@ -571,16 +571,16 @@ const he = {
|
|
|
571
571
|
// Year
|
|
572
572
|
y(n, e) {
|
|
573
573
|
const t = n.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
574
|
-
return
|
|
574
|
+
return L(e === "yy" ? r % 100 : r, e.length);
|
|
575
575
|
},
|
|
576
576
|
// Month
|
|
577
577
|
M(n, e) {
|
|
578
578
|
const t = n.getMonth();
|
|
579
|
-
return e === "M" ? String(t + 1) :
|
|
579
|
+
return e === "M" ? String(t + 1) : L(t + 1, 2);
|
|
580
580
|
},
|
|
581
581
|
// Day of the month
|
|
582
582
|
d(n, e) {
|
|
583
|
-
return
|
|
583
|
+
return L(n.getDate(), e.length);
|
|
584
584
|
},
|
|
585
585
|
// AM or PM
|
|
586
586
|
a(n, e) {
|
|
@@ -600,26 +600,26 @@ const he = {
|
|
|
600
600
|
},
|
|
601
601
|
// Hour [1-12]
|
|
602
602
|
h(n, e) {
|
|
603
|
-
return
|
|
603
|
+
return L(n.getHours() % 12 || 12, e.length);
|
|
604
604
|
},
|
|
605
605
|
// Hour [0-23]
|
|
606
606
|
H(n, e) {
|
|
607
|
-
return
|
|
607
|
+
return L(n.getHours(), e.length);
|
|
608
608
|
},
|
|
609
609
|
// Minute
|
|
610
610
|
m(n, e) {
|
|
611
|
-
return
|
|
611
|
+
return L(n.getMinutes(), e.length);
|
|
612
612
|
},
|
|
613
613
|
// Second
|
|
614
614
|
s(n, e) {
|
|
615
|
-
return
|
|
615
|
+
return L(n.getSeconds(), e.length);
|
|
616
616
|
},
|
|
617
617
|
// Fraction of second
|
|
618
618
|
S(n, e) {
|
|
619
619
|
const t = e.length, r = n.getMilliseconds(), s = Math.trunc(
|
|
620
620
|
r * Math.pow(10, t - 3)
|
|
621
621
|
);
|
|
622
|
-
return
|
|
622
|
+
return L(s, e.length);
|
|
623
623
|
}
|
|
624
624
|
}, _e = {
|
|
625
625
|
am: "am",
|
|
@@ -630,7 +630,7 @@ const he = {
|
|
|
630
630
|
afternoon: "afternoon",
|
|
631
631
|
evening: "evening",
|
|
632
632
|
night: "night"
|
|
633
|
-
},
|
|
633
|
+
}, Dt = {
|
|
634
634
|
// Era
|
|
635
635
|
G: function(n, e, t) {
|
|
636
636
|
const r = n.getFullYear() > 0 ? 1 : 0;
|
|
@@ -656,17 +656,17 @@ const he = {
|
|
|
656
656
|
},
|
|
657
657
|
// Local week-numbering year
|
|
658
658
|
Y: function(n, e, t, r) {
|
|
659
|
-
const s =
|
|
659
|
+
const s = xn(n, r), a = s > 0 ? s : 1 - s;
|
|
660
660
|
if (e === "YY") {
|
|
661
661
|
const i = a % 100;
|
|
662
|
-
return
|
|
662
|
+
return L(i, 2);
|
|
663
663
|
}
|
|
664
|
-
return e === "Yo" ? t.ordinalNumber(a, { unit: "year" }) :
|
|
664
|
+
return e === "Yo" ? t.ordinalNumber(a, { unit: "year" }) : L(a, e.length);
|
|
665
665
|
},
|
|
666
666
|
// ISO week-numbering year
|
|
667
667
|
R: function(n, e) {
|
|
668
|
-
const t =
|
|
669
|
-
return
|
|
668
|
+
const t = gn(n);
|
|
669
|
+
return L(t, e.length);
|
|
670
670
|
},
|
|
671
671
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
672
672
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -679,7 +679,7 @@ const he = {
|
|
|
679
679
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
680
680
|
u: function(n, e) {
|
|
681
681
|
const t = n.getFullYear();
|
|
682
|
-
return
|
|
682
|
+
return L(t, e.length);
|
|
683
683
|
},
|
|
684
684
|
// Quarter
|
|
685
685
|
Q: function(n, e, t) {
|
|
@@ -688,7 +688,7 @@ const he = {
|
|
|
688
688
|
case "Q":
|
|
689
689
|
return String(r);
|
|
690
690
|
case "QQ":
|
|
691
|
-
return
|
|
691
|
+
return L(r, 2);
|
|
692
692
|
case "Qo":
|
|
693
693
|
return t.ordinalNumber(r, { unit: "quarter" });
|
|
694
694
|
case "QQQ":
|
|
@@ -716,7 +716,7 @@ const he = {
|
|
|
716
716
|
case "q":
|
|
717
717
|
return String(r);
|
|
718
718
|
case "qq":
|
|
719
|
-
return
|
|
719
|
+
return L(r, 2);
|
|
720
720
|
case "qo":
|
|
721
721
|
return t.ordinalNumber(r, { unit: "quarter" });
|
|
722
722
|
case "qqq":
|
|
@@ -768,7 +768,7 @@ const he = {
|
|
|
768
768
|
case "L":
|
|
769
769
|
return String(r + 1);
|
|
770
770
|
case "LL":
|
|
771
|
-
return
|
|
771
|
+
return L(r + 1, 2);
|
|
772
772
|
case "Lo":
|
|
773
773
|
return t.ordinalNumber(r + 1, { unit: "month" });
|
|
774
774
|
case "LLL":
|
|
@@ -788,13 +788,13 @@ const he = {
|
|
|
788
788
|
},
|
|
789
789
|
// Local week of year
|
|
790
790
|
w: function(n, e, t, r) {
|
|
791
|
-
const s =
|
|
792
|
-
return e === "wo" ? t.ordinalNumber(s, { unit: "week" }) :
|
|
791
|
+
const s = Ks(n, r);
|
|
792
|
+
return e === "wo" ? t.ordinalNumber(s, { unit: "week" }) : L(s, e.length);
|
|
793
793
|
},
|
|
794
794
|
// ISO week of year
|
|
795
795
|
I: function(n, e, t) {
|
|
796
|
-
const r =
|
|
797
|
-
return e === "Io" ? t.ordinalNumber(r, { unit: "week" }) :
|
|
796
|
+
const r = zs(n);
|
|
797
|
+
return e === "Io" ? t.ordinalNumber(r, { unit: "week" }) : L(r, e.length);
|
|
798
798
|
},
|
|
799
799
|
// Day of the month
|
|
800
800
|
d: function(n, e, t) {
|
|
@@ -802,8 +802,8 @@ const he = {
|
|
|
802
802
|
},
|
|
803
803
|
// Day of year
|
|
804
804
|
D: function(n, e, t) {
|
|
805
|
-
const r =
|
|
806
|
-
return e === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
805
|
+
const r = Gs(n);
|
|
806
|
+
return e === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) : L(r, e.length);
|
|
807
807
|
},
|
|
808
808
|
// Day of week
|
|
809
809
|
E: function(n, e, t) {
|
|
@@ -841,7 +841,7 @@ const he = {
|
|
|
841
841
|
case "e":
|
|
842
842
|
return String(a);
|
|
843
843
|
case "ee":
|
|
844
|
-
return
|
|
844
|
+
return L(a, 2);
|
|
845
845
|
case "eo":
|
|
846
846
|
return t.ordinalNumber(a, { unit: "day" });
|
|
847
847
|
case "eee":
|
|
@@ -874,7 +874,7 @@ const he = {
|
|
|
874
874
|
case "c":
|
|
875
875
|
return String(a);
|
|
876
876
|
case "cc":
|
|
877
|
-
return
|
|
877
|
+
return L(a, e.length);
|
|
878
878
|
case "co":
|
|
879
879
|
return t.ordinalNumber(a, { unit: "day" });
|
|
880
880
|
case "ccc":
|
|
@@ -907,7 +907,7 @@ const he = {
|
|
|
907
907
|
case "i":
|
|
908
908
|
return String(s);
|
|
909
909
|
case "ii":
|
|
910
|
-
return
|
|
910
|
+
return L(s, e.length);
|
|
911
911
|
case "io":
|
|
912
912
|
return t.ordinalNumber(s, { unit: "day" });
|
|
913
913
|
case "iii":
|
|
@@ -1030,12 +1030,12 @@ const he = {
|
|
|
1030
1030
|
// Hour [0-11]
|
|
1031
1031
|
K: function(n, e, t) {
|
|
1032
1032
|
const r = n.getHours() % 12;
|
|
1033
|
-
return e === "Ko" ? t.ordinalNumber(r, { unit: "hour" }) :
|
|
1033
|
+
return e === "Ko" ? t.ordinalNumber(r, { unit: "hour" }) : L(r, e.length);
|
|
1034
1034
|
},
|
|
1035
1035
|
// Hour [1-24]
|
|
1036
1036
|
k: function(n, e, t) {
|
|
1037
1037
|
let r = n.getHours();
|
|
1038
|
-
return r === 0 && (r = 24), e === "ko" ? t.ordinalNumber(r, { unit: "hour" }) :
|
|
1038
|
+
return r === 0 && (r = 24), e === "ko" ? t.ordinalNumber(r, { unit: "hour" }) : L(r, e.length);
|
|
1039
1039
|
},
|
|
1040
1040
|
// Minute
|
|
1041
1041
|
m: function(n, e, t) {
|
|
@@ -1056,7 +1056,7 @@ const he = {
|
|
|
1056
1056
|
return "Z";
|
|
1057
1057
|
switch (e) {
|
|
1058
1058
|
case "X":
|
|
1059
|
-
return
|
|
1059
|
+
return Pt(r);
|
|
1060
1060
|
case "XXXX":
|
|
1061
1061
|
case "XX":
|
|
1062
1062
|
return ye(r);
|
|
@@ -1071,7 +1071,7 @@ const he = {
|
|
|
1071
1071
|
const r = n.getTimezoneOffset();
|
|
1072
1072
|
switch (e) {
|
|
1073
1073
|
case "x":
|
|
1074
|
-
return
|
|
1074
|
+
return Pt(r);
|
|
1075
1075
|
case "xxxx":
|
|
1076
1076
|
case "xx":
|
|
1077
1077
|
return ye(r);
|
|
@@ -1088,7 +1088,7 @@ const he = {
|
|
|
1088
1088
|
case "O":
|
|
1089
1089
|
case "OO":
|
|
1090
1090
|
case "OOO":
|
|
1091
|
-
return "GMT" +
|
|
1091
|
+
return "GMT" + Ot(r, ":");
|
|
1092
1092
|
case "OOOO":
|
|
1093
1093
|
default:
|
|
1094
1094
|
return "GMT" + ye(r, ":");
|
|
@@ -1101,7 +1101,7 @@ const he = {
|
|
|
1101
1101
|
case "z":
|
|
1102
1102
|
case "zz":
|
|
1103
1103
|
case "zzz":
|
|
1104
|
-
return "GMT" +
|
|
1104
|
+
return "GMT" + Ot(r, ":");
|
|
1105
1105
|
case "zzzz":
|
|
1106
1106
|
default:
|
|
1107
1107
|
return "GMT" + ye(r, ":");
|
|
@@ -1110,26 +1110,26 @@ const he = {
|
|
|
1110
1110
|
// Seconds timestamp
|
|
1111
1111
|
t: function(n, e, t) {
|
|
1112
1112
|
const r = Math.trunc(n.getTime() / 1e3);
|
|
1113
|
-
return
|
|
1113
|
+
return L(r, e.length);
|
|
1114
1114
|
},
|
|
1115
1115
|
// Milliseconds timestamp
|
|
1116
1116
|
T: function(n, e, t) {
|
|
1117
1117
|
const r = n.getTime();
|
|
1118
|
-
return
|
|
1118
|
+
return L(r, e.length);
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
|
-
function
|
|
1121
|
+
function Ot(n, e = "") {
|
|
1122
1122
|
const t = n > 0 ? "-" : "+", r = Math.abs(n), s = Math.trunc(r / 60), a = r % 60;
|
|
1123
|
-
return a === 0 ? t + String(s) : t + String(s) + e +
|
|
1123
|
+
return a === 0 ? t + String(s) : t + String(s) + e + L(a, 2);
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1126
|
-
return n % 60 === 0 ? (n > 0 ? "-" : "+") +
|
|
1125
|
+
function Pt(n, e) {
|
|
1126
|
+
return n % 60 === 0 ? (n > 0 ? "-" : "+") + L(Math.abs(n) / 60, 2) : ye(n, e);
|
|
1127
1127
|
}
|
|
1128
1128
|
function ye(n, e = "") {
|
|
1129
|
-
const t = n > 0 ? "-" : "+", r = Math.abs(n), s =
|
|
1129
|
+
const t = n > 0 ? "-" : "+", r = Math.abs(n), s = L(Math.trunc(r / 60), 2), a = L(r % 60, 2);
|
|
1130
1130
|
return t + s + e + a;
|
|
1131
1131
|
}
|
|
1132
|
-
const
|
|
1132
|
+
const Mt = (n, e) => {
|
|
1133
1133
|
switch (n) {
|
|
1134
1134
|
case "P":
|
|
1135
1135
|
return e.date({ width: "short" });
|
|
@@ -1141,7 +1141,7 @@ const Pt = (n, e) => {
|
|
|
1141
1141
|
default:
|
|
1142
1142
|
return e.date({ width: "full" });
|
|
1143
1143
|
}
|
|
1144
|
-
},
|
|
1144
|
+
}, wn = (n, e) => {
|
|
1145
1145
|
switch (n) {
|
|
1146
1146
|
case "p":
|
|
1147
1147
|
return e.time({ width: "short" });
|
|
@@ -1153,10 +1153,10 @@ const Pt = (n, e) => {
|
|
|
1153
1153
|
default:
|
|
1154
1154
|
return e.time({ width: "full" });
|
|
1155
1155
|
}
|
|
1156
|
-
},
|
|
1156
|
+
}, Qs = (n, e) => {
|
|
1157
1157
|
const t = n.match(/(P+)(p+)?/) || [], r = t[1], s = t[2];
|
|
1158
1158
|
if (!s)
|
|
1159
|
-
return
|
|
1159
|
+
return Mt(n, e);
|
|
1160
1160
|
let a;
|
|
1161
1161
|
switch (r) {
|
|
1162
1162
|
case "P":
|
|
@@ -1173,52 +1173,52 @@ const Pt = (n, e) => {
|
|
|
1173
1173
|
a = e.dateTime({ width: "full" });
|
|
1174
1174
|
break;
|
|
1175
1175
|
}
|
|
1176
|
-
return a.replace("{{date}}",
|
|
1177
|
-
},
|
|
1178
|
-
p:
|
|
1179
|
-
P:
|
|
1180
|
-
},
|
|
1181
|
-
function
|
|
1182
|
-
return
|
|
1183
|
-
}
|
|
1184
|
-
function
|
|
1185
|
-
return
|
|
1186
|
-
}
|
|
1187
|
-
function
|
|
1188
|
-
const r =
|
|
1189
|
-
if (console.warn(r),
|
|
1176
|
+
return a.replace("{{date}}", Mt(r, e)).replace("{{time}}", wn(s, e));
|
|
1177
|
+
}, Xs = {
|
|
1178
|
+
p: wn,
|
|
1179
|
+
P: Qs
|
|
1180
|
+
}, Js = /^D+$/, Zs = /^Y+$/, eo = ["D", "DD", "YY", "YYYY"];
|
|
1181
|
+
function to(n) {
|
|
1182
|
+
return Js.test(n);
|
|
1183
|
+
}
|
|
1184
|
+
function no(n) {
|
|
1185
|
+
return Zs.test(n);
|
|
1186
|
+
}
|
|
1187
|
+
function ro(n, e, t) {
|
|
1188
|
+
const r = so(n, e, t);
|
|
1189
|
+
if (console.warn(r), eo.includes(n))
|
|
1190
1190
|
throw new RangeError(r);
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1192
|
+
function so(n, e, t) {
|
|
1193
1193
|
const r = n[0] === "Y" ? "years" : "days of the month";
|
|
1194
1194
|
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1195
1195
|
}
|
|
1196
|
-
const
|
|
1197
|
-
function
|
|
1198
|
-
var d, h,
|
|
1199
|
-
const r = Ge(), s = (t == null ? void 0 : t.locale) ?? r.locale ??
|
|
1200
|
-
if (!
|
|
1196
|
+
const oo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ao = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, io = /^'([^]*?)'?$/, co = /''/g, lo = /[a-zA-Z]/;
|
|
1197
|
+
function ot(n, e, t) {
|
|
1198
|
+
var d, h, f, g, b, w, p, _;
|
|
1199
|
+
const r = Ge(), s = (t == null ? void 0 : t.locale) ?? r.locale ?? Vs, a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((w = (b = t == null ? void 0 : t.locale) == null ? void 0 : b.options) == null ? void 0 : w.weekStartsOn) ?? r.weekStartsOn ?? ((_ = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : _.weekStartsOn) ?? 0, l = J(n);
|
|
1200
|
+
if (!ds(l))
|
|
1201
1201
|
throw new RangeError("Invalid time value");
|
|
1202
|
-
let c = e.match(
|
|
1203
|
-
const
|
|
1204
|
-
if (
|
|
1205
|
-
const N =
|
|
1206
|
-
return N(
|
|
1202
|
+
let c = e.match(ao).map((k) => {
|
|
1203
|
+
const m = k[0];
|
|
1204
|
+
if (m === "p" || m === "P") {
|
|
1205
|
+
const N = Xs[m];
|
|
1206
|
+
return N(k, s.formatLong);
|
|
1207
1207
|
}
|
|
1208
|
-
return
|
|
1209
|
-
}).join("").match(
|
|
1210
|
-
if (
|
|
1208
|
+
return k;
|
|
1209
|
+
}).join("").match(oo).map((k) => {
|
|
1210
|
+
if (k === "''")
|
|
1211
1211
|
return { isToken: !1, value: "'" };
|
|
1212
|
-
const
|
|
1213
|
-
if (
|
|
1214
|
-
return { isToken: !1, value:
|
|
1215
|
-
if (
|
|
1216
|
-
return { isToken: !0, value:
|
|
1217
|
-
if (
|
|
1212
|
+
const m = k[0];
|
|
1213
|
+
if (m === "'")
|
|
1214
|
+
return { isToken: !1, value: uo(k) };
|
|
1215
|
+
if (Dt[m])
|
|
1216
|
+
return { isToken: !0, value: k };
|
|
1217
|
+
if (m.match(lo))
|
|
1218
1218
|
throw new RangeError(
|
|
1219
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1219
|
+
"Format string contains an unescaped latin alphabet character `" + m + "`"
|
|
1220
1220
|
);
|
|
1221
|
-
return { isToken: !1, value:
|
|
1221
|
+
return { isToken: !1, value: k };
|
|
1222
1222
|
});
|
|
1223
1223
|
s.localize.preprocessor && (c = s.localize.preprocessor(l, c));
|
|
1224
1224
|
const u = {
|
|
@@ -1226,24 +1226,34 @@ function st(n, e, t) {
|
|
|
1226
1226
|
weekStartsOn: i,
|
|
1227
1227
|
locale: s
|
|
1228
1228
|
};
|
|
1229
|
-
return c.map((
|
|
1230
|
-
if (!
|
|
1231
|
-
return
|
|
1232
|
-
const
|
|
1233
|
-
(!(t != null && t.useAdditionalWeekYearTokens) &&
|
|
1234
|
-
const N =
|
|
1235
|
-
return N(l,
|
|
1229
|
+
return c.map((k) => {
|
|
1230
|
+
if (!k.isToken)
|
|
1231
|
+
return k.value;
|
|
1232
|
+
const m = k.value;
|
|
1233
|
+
(!(t != null && t.useAdditionalWeekYearTokens) && no(m) || !(t != null && t.useAdditionalDayOfYearTokens) && to(m)) && ro(m, e, String(n));
|
|
1234
|
+
const N = Dt[m[0]];
|
|
1235
|
+
return N(l, m, s.localize, u);
|
|
1236
1236
|
}).join("");
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
const e = n.match(
|
|
1240
|
-
return e ? e[1].replace(
|
|
1238
|
+
function uo(n) {
|
|
1239
|
+
const e = n.match(io);
|
|
1240
|
+
return e ? e[1].replace(co, "'") : n;
|
|
1241
|
+
}
|
|
1242
|
+
function ho(n) {
|
|
1243
|
+
const e = J(n), t = e.getFullYear(), r = e.getMonth(), s = oe(n, 0);
|
|
1244
|
+
return s.setFullYear(t, r + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
|
|
1241
1245
|
}
|
|
1242
|
-
function
|
|
1243
|
-
const t =
|
|
1246
|
+
function mo(n, e) {
|
|
1247
|
+
const t = J(n), r = t.getFullYear(), s = t.getDate(), a = oe(n, 0);
|
|
1248
|
+
a.setFullYear(r, e, 15), a.setHours(0, 0, 0, 0);
|
|
1249
|
+
const i = ho(a);
|
|
1250
|
+
return t.setMonth(e, Math.min(s, i)), t;
|
|
1251
|
+
}
|
|
1252
|
+
function vn(n, e) {
|
|
1253
|
+
const t = J(n);
|
|
1244
1254
|
return isNaN(+t) ? oe(n, NaN) : (t.setFullYear(e), t);
|
|
1245
1255
|
}
|
|
1246
|
-
var
|
|
1256
|
+
var fo = function(n, e, t, r, s, a, i, l) {
|
|
1247
1257
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
1248
1258
|
throw new Error("invariant requires an error message argument");
|
|
1249
1259
|
if (!n) {
|
|
@@ -1262,9 +1272,9 @@ var uo = function(n, e, t, r, s, a, i, l) {
|
|
|
1262
1272
|
}
|
|
1263
1273
|
throw c.framesToPop = 1, c;
|
|
1264
1274
|
}
|
|
1265
|
-
},
|
|
1266
|
-
const
|
|
1267
|
-
function
|
|
1275
|
+
}, po = fo;
|
|
1276
|
+
const At = /* @__PURE__ */ hr(po);
|
|
1277
|
+
function Ie(...n) {
|
|
1268
1278
|
return n.filter((e) => e != null).reduce((e, t) => {
|
|
1269
1279
|
if (typeof t != "function")
|
|
1270
1280
|
throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");
|
|
@@ -1273,22 +1283,22 @@ function $e(...n) {
|
|
|
1273
1283
|
};
|
|
1274
1284
|
}, null);
|
|
1275
1285
|
}
|
|
1276
|
-
const
|
|
1286
|
+
const go = {
|
|
1277
1287
|
height: ["marginTop", "marginBottom"],
|
|
1278
1288
|
width: ["marginLeft", "marginRight"]
|
|
1279
1289
|
};
|
|
1280
|
-
function
|
|
1281
|
-
const t = `offset${n[0].toUpperCase()}${n.slice(1)}`, r = e[t], s =
|
|
1290
|
+
function xo(n, e) {
|
|
1291
|
+
const t = `offset${n[0].toUpperCase()}${n.slice(1)}`, r = e[t], s = go[n];
|
|
1282
1292
|
return r + // @ts-ignore
|
|
1283
|
-
parseInt(
|
|
1284
|
-
parseInt(
|
|
1285
|
-
}
|
|
1286
|
-
const
|
|
1287
|
-
[
|
|
1288
|
-
[
|
|
1289
|
-
[
|
|
1290
|
-
[
|
|
1291
|
-
},
|
|
1293
|
+
parseInt(kt(e, s[0]), 10) + // @ts-ignore
|
|
1294
|
+
parseInt(kt(e, s[1]), 10);
|
|
1295
|
+
}
|
|
1296
|
+
const wo = {
|
|
1297
|
+
[pr]: "collapse",
|
|
1298
|
+
[gr]: "collapsing",
|
|
1299
|
+
[xr]: "collapsing",
|
|
1300
|
+
[wr]: "collapse show"
|
|
1301
|
+
}, yn = /* @__PURE__ */ ne.forwardRef(({
|
|
1292
1302
|
onEnter: n,
|
|
1293
1303
|
onEntering: e,
|
|
1294
1304
|
onEntered: t,
|
|
@@ -1301,65 +1311,65 @@ const po = {
|
|
|
1301
1311
|
timeout: u = 300,
|
|
1302
1312
|
mountOnEnter: d = !1,
|
|
1303
1313
|
unmountOnExit: h = !1,
|
|
1304
|
-
appear:
|
|
1305
|
-
getDimensionValue: g =
|
|
1306
|
-
...
|
|
1307
|
-
},
|
|
1308
|
-
const
|
|
1309
|
-
v.style[
|
|
1310
|
-
}, n), [
|
|
1311
|
-
const $ = `scroll${
|
|
1312
|
-
v.style[
|
|
1313
|
-
}, e), [
|
|
1314
|
-
v.style[
|
|
1315
|
-
}, t), [
|
|
1316
|
-
v.style[
|
|
1317
|
-
}, r), [r, g,
|
|
1318
|
-
v.style[
|
|
1319
|
-
}, s), [
|
|
1320
|
-
return /* @__PURE__ */ o.jsx(
|
|
1321
|
-
ref:
|
|
1322
|
-
addEndListener:
|
|
1323
|
-
...
|
|
1324
|
-
"aria-expanded":
|
|
1325
|
-
onEnter:
|
|
1326
|
-
onEntering:
|
|
1327
|
-
onEntered:
|
|
1314
|
+
appear: f = !1,
|
|
1315
|
+
getDimensionValue: g = xo,
|
|
1316
|
+
...b
|
|
1317
|
+
}, w) => {
|
|
1318
|
+
const p = typeof l == "function" ? l() : l, _ = K(() => Ie((v) => {
|
|
1319
|
+
v.style[p] = "0";
|
|
1320
|
+
}, n), [p, n]), k = K(() => Ie((v) => {
|
|
1321
|
+
const $ = `scroll${p[0].toUpperCase()}${p.slice(1)}`;
|
|
1322
|
+
v.style[p] = `${v[$]}px`;
|
|
1323
|
+
}, e), [p, e]), m = K(() => Ie((v) => {
|
|
1324
|
+
v.style[p] = null;
|
|
1325
|
+
}, t), [p, t]), N = K(() => Ie((v) => {
|
|
1326
|
+
v.style[p] = `${g(p, v)}px`, vr(v);
|
|
1327
|
+
}, r), [r, g, p]), j = K(() => Ie((v) => {
|
|
1328
|
+
v.style[p] = null;
|
|
1329
|
+
}, s), [p, s]);
|
|
1330
|
+
return /* @__PURE__ */ o.jsx(mr, {
|
|
1331
|
+
ref: w,
|
|
1332
|
+
addEndListener: fr,
|
|
1333
|
+
...b,
|
|
1334
|
+
"aria-expanded": b.role ? c : null,
|
|
1335
|
+
onEnter: _,
|
|
1336
|
+
onEntering: k,
|
|
1337
|
+
onEntered: m,
|
|
1328
1338
|
onExit: N,
|
|
1329
|
-
onExiting:
|
|
1339
|
+
onExiting: j,
|
|
1330
1340
|
childRef: i.ref,
|
|
1331
1341
|
in: c,
|
|
1332
1342
|
timeout: u,
|
|
1333
1343
|
mountOnEnter: d,
|
|
1334
1344
|
unmountOnExit: h,
|
|
1335
|
-
appear:
|
|
1336
|
-
children: (v, $) => /* @__PURE__ */
|
|
1345
|
+
appear: f,
|
|
1346
|
+
children: (v, $) => /* @__PURE__ */ ne.cloneElement(i, {
|
|
1337
1347
|
...$,
|
|
1338
|
-
className:
|
|
1348
|
+
className: x(a, i.props.className, wo[v], p === "width" && "collapse-horizontal")
|
|
1339
1349
|
})
|
|
1340
1350
|
});
|
|
1341
|
-
}),
|
|
1342
|
-
|
|
1343
|
-
const
|
|
1351
|
+
}), bn = Xr("h4");
|
|
1352
|
+
bn.displayName = "DivStyledAsH4";
|
|
1353
|
+
const _n = /* @__PURE__ */ W.forwardRef(({
|
|
1344
1354
|
className: n,
|
|
1345
1355
|
bsPrefix: e,
|
|
1346
|
-
as: t =
|
|
1356
|
+
as: t = bn,
|
|
1347
1357
|
...r
|
|
1348
|
-
}, s) => (e =
|
|
1358
|
+
}, s) => (e = V(e, "alert-heading"), /* @__PURE__ */ o.jsx(t, {
|
|
1349
1359
|
ref: s,
|
|
1350
|
-
className:
|
|
1360
|
+
className: x(n, e),
|
|
1351
1361
|
...r
|
|
1352
1362
|
})));
|
|
1353
|
-
|
|
1354
|
-
function
|
|
1363
|
+
_n.displayName = "AlertHeading";
|
|
1364
|
+
function vo(n, e, t, r = !1) {
|
|
1355
1365
|
const s = me(t);
|
|
1356
|
-
|
|
1366
|
+
O(() => {
|
|
1357
1367
|
const a = typeof n == "function" ? n() : n;
|
|
1358
1368
|
return a.addEventListener(e, s, r), () => a.removeEventListener(e, s, r);
|
|
1359
1369
|
}, [n]);
|
|
1360
1370
|
}
|
|
1361
|
-
const
|
|
1362
|
-
function
|
|
1371
|
+
const yo = ["as", "disabled"];
|
|
1372
|
+
function bo(n, e) {
|
|
1363
1373
|
if (n == null)
|
|
1364
1374
|
return {};
|
|
1365
1375
|
var t = {}, r = Object.keys(n), s, a;
|
|
@@ -1367,10 +1377,10 @@ function wo(n, e) {
|
|
|
1367
1377
|
s = r[a], !(e.indexOf(s) >= 0) && (t[s] = n[s]);
|
|
1368
1378
|
return t;
|
|
1369
1379
|
}
|
|
1370
|
-
function
|
|
1380
|
+
function _o(n) {
|
|
1371
1381
|
return !n || n.trim() === "#";
|
|
1372
1382
|
}
|
|
1373
|
-
function
|
|
1383
|
+
function gt({
|
|
1374
1384
|
tagName: n,
|
|
1375
1385
|
disabled: e,
|
|
1376
1386
|
href: t,
|
|
@@ -1390,14 +1400,14 @@ function pt({
|
|
|
1390
1400
|
type: c || "button",
|
|
1391
1401
|
disabled: e
|
|
1392
1402
|
}, u];
|
|
1393
|
-
const d = (
|
|
1394
|
-
if ((e || n === "a" &&
|
|
1395
|
-
|
|
1403
|
+
const d = (f) => {
|
|
1404
|
+
if ((e || n === "a" && _o(t)) && f.preventDefault(), e) {
|
|
1405
|
+
f.stopPropagation();
|
|
1396
1406
|
return;
|
|
1397
1407
|
}
|
|
1398
|
-
i == null || i(
|
|
1399
|
-
}, h = (
|
|
1400
|
-
|
|
1408
|
+
i == null || i(f);
|
|
1409
|
+
}, h = (f) => {
|
|
1410
|
+
f.key === " " && (f.preventDefault(), d(f));
|
|
1401
1411
|
};
|
|
1402
1412
|
return n === "a" && (t || (t = "#"), e && (t = void 0)), [{
|
|
1403
1413
|
role: a ?? "button",
|
|
@@ -1413,14 +1423,14 @@ function pt({
|
|
|
1413
1423
|
onKeyDown: h
|
|
1414
1424
|
}, u];
|
|
1415
1425
|
}
|
|
1416
|
-
const
|
|
1426
|
+
const jn = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
1417
1427
|
let {
|
|
1418
1428
|
as: t,
|
|
1419
1429
|
disabled: r
|
|
1420
|
-
} = n, s =
|
|
1430
|
+
} = n, s = bo(n, yo);
|
|
1421
1431
|
const [a, {
|
|
1422
1432
|
tagName: i
|
|
1423
|
-
}] =
|
|
1433
|
+
}] = gt(Object.assign({
|
|
1424
1434
|
tagName: t,
|
|
1425
1435
|
disabled: r
|
|
1426
1436
|
}, s));
|
|
@@ -1428,9 +1438,9 @@ const bn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1428
1438
|
ref: e
|
|
1429
1439
|
}));
|
|
1430
1440
|
});
|
|
1431
|
-
|
|
1432
|
-
const
|
|
1433
|
-
function
|
|
1441
|
+
jn.displayName = "Button";
|
|
1442
|
+
const jo = ["onKeyDown"];
|
|
1443
|
+
function ko(n, e) {
|
|
1434
1444
|
if (n == null)
|
|
1435
1445
|
return {};
|
|
1436
1446
|
var t = {}, r = Object.keys(n), s, a;
|
|
@@ -1438,19 +1448,19 @@ function bo(n, e) {
|
|
|
1438
1448
|
s = r[a], !(e.indexOf(s) >= 0) && (t[s] = n[s]);
|
|
1439
1449
|
return t;
|
|
1440
1450
|
}
|
|
1441
|
-
function
|
|
1451
|
+
function No(n) {
|
|
1442
1452
|
return !n || n.trim() === "#";
|
|
1443
1453
|
}
|
|
1444
|
-
const
|
|
1454
|
+
const xt = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
1445
1455
|
let {
|
|
1446
1456
|
onKeyDown: t
|
|
1447
|
-
} = n, r =
|
|
1448
|
-
const [s] =
|
|
1457
|
+
} = n, r = ko(n, jo);
|
|
1458
|
+
const [s] = gt(Object.assign({
|
|
1449
1459
|
tagName: "a"
|
|
1450
1460
|
}, r)), a = me((i) => {
|
|
1451
1461
|
s.onKeyDown(i), t == null || t(i);
|
|
1452
1462
|
});
|
|
1453
|
-
return
|
|
1463
|
+
return No(r.href) || r.role === "button" ? /* @__PURE__ */ o.jsx("a", Object.assign({
|
|
1454
1464
|
ref: e
|
|
1455
1465
|
}, r, s, {
|
|
1456
1466
|
onKeyDown: a
|
|
@@ -1460,19 +1470,19 @@ const gt = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1460
1470
|
onKeyDown: t
|
|
1461
1471
|
}));
|
|
1462
1472
|
});
|
|
1463
|
-
|
|
1464
|
-
const
|
|
1473
|
+
xt.displayName = "Anchor";
|
|
1474
|
+
const kn = /* @__PURE__ */ W.forwardRef(({
|
|
1465
1475
|
className: n,
|
|
1466
1476
|
bsPrefix: e,
|
|
1467
|
-
as: t =
|
|
1477
|
+
as: t = xt,
|
|
1468
1478
|
...r
|
|
1469
|
-
}, s) => (e =
|
|
1479
|
+
}, s) => (e = V(e, "alert-link"), /* @__PURE__ */ o.jsx(t, {
|
|
1470
1480
|
ref: s,
|
|
1471
|
-
className:
|
|
1481
|
+
className: x(n, e),
|
|
1472
1482
|
...r
|
|
1473
1483
|
})));
|
|
1474
|
-
|
|
1475
|
-
const
|
|
1484
|
+
kn.displayName = "AlertLink";
|
|
1485
|
+
const Nn = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
1476
1486
|
const {
|
|
1477
1487
|
bsPrefix: t,
|
|
1478
1488
|
show: r = !0,
|
|
@@ -1483,36 +1493,36 @@ const jn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1483
1493
|
variant: c = "primary",
|
|
1484
1494
|
onClose: u,
|
|
1485
1495
|
dismissible: d,
|
|
1486
|
-
transition: h =
|
|
1487
|
-
...
|
|
1488
|
-
} =
|
|
1496
|
+
transition: h = Nt,
|
|
1497
|
+
...f
|
|
1498
|
+
} = Xt(n, {
|
|
1489
1499
|
show: "onClose"
|
|
1490
|
-
}), g =
|
|
1491
|
-
u && u(!1,
|
|
1492
|
-
}),
|
|
1500
|
+
}), g = V(t, "alert"), b = me((_) => {
|
|
1501
|
+
u && u(!1, _);
|
|
1502
|
+
}), w = h === !0 ? Nt : h, p = /* @__PURE__ */ o.jsxs("div", {
|
|
1493
1503
|
role: "alert",
|
|
1494
|
-
...
|
|
1504
|
+
...w ? void 0 : f,
|
|
1495
1505
|
ref: e,
|
|
1496
|
-
className:
|
|
1497
|
-
children: [d && /* @__PURE__ */ o.jsx(
|
|
1498
|
-
onClick:
|
|
1506
|
+
className: x(i, g, c && `${g}-${c}`, d && `${g}-dismissible`),
|
|
1507
|
+
children: [d && /* @__PURE__ */ o.jsx(Jr, {
|
|
1508
|
+
onClick: b,
|
|
1499
1509
|
"aria-label": s,
|
|
1500
1510
|
variant: a
|
|
1501
1511
|
}), l]
|
|
1502
1512
|
});
|
|
1503
|
-
return
|
|
1513
|
+
return w ? /* @__PURE__ */ o.jsx(w, {
|
|
1504
1514
|
unmountOnExit: !0,
|
|
1505
|
-
...
|
|
1515
|
+
...f,
|
|
1506
1516
|
ref: void 0,
|
|
1507
1517
|
in: r,
|
|
1508
|
-
children:
|
|
1509
|
-
}) : r ?
|
|
1518
|
+
children: p
|
|
1519
|
+
}) : r ? p : null;
|
|
1510
1520
|
});
|
|
1511
|
-
|
|
1512
|
-
const
|
|
1513
|
-
Link:
|
|
1514
|
-
Heading:
|
|
1515
|
-
}),
|
|
1521
|
+
Nn.displayName = "Alert";
|
|
1522
|
+
const Co = Object.assign(Nn, {
|
|
1523
|
+
Link: kn,
|
|
1524
|
+
Heading: _n
|
|
1525
|
+
}), Cn = /* @__PURE__ */ W.forwardRef(({
|
|
1516
1526
|
as: n,
|
|
1517
1527
|
bsPrefix: e,
|
|
1518
1528
|
variant: t = "primary",
|
|
@@ -1522,54 +1532,54 @@ const jo = Object.assign(jn, {
|
|
|
1522
1532
|
className: i,
|
|
1523
1533
|
...l
|
|
1524
1534
|
}, c) => {
|
|
1525
|
-
const u =
|
|
1535
|
+
const u = V(e, "btn"), [d, {
|
|
1526
1536
|
tagName: h
|
|
1527
|
-
}] =
|
|
1537
|
+
}] = gt({
|
|
1528
1538
|
tagName: n,
|
|
1529
1539
|
disabled: a,
|
|
1530
1540
|
...l
|
|
1531
|
-
}),
|
|
1532
|
-
return /* @__PURE__ */ o.jsx(
|
|
1541
|
+
}), f = h;
|
|
1542
|
+
return /* @__PURE__ */ o.jsx(f, {
|
|
1533
1543
|
...d,
|
|
1534
1544
|
...l,
|
|
1535
1545
|
ref: c,
|
|
1536
1546
|
disabled: a,
|
|
1537
|
-
className:
|
|
1547
|
+
className: x(i, u, s && "active", t && `${u}-${t}`, r && `${u}-${r}`, l.href && a && "disabled")
|
|
1538
1548
|
});
|
|
1539
1549
|
});
|
|
1540
|
-
|
|
1541
|
-
function
|
|
1542
|
-
return
|
|
1550
|
+
Cn.displayName = "Button";
|
|
1551
|
+
function Io(n, e) {
|
|
1552
|
+
return W.Children.toArray(n).some((t) => /* @__PURE__ */ W.isValidElement(t) && t.type === e);
|
|
1543
1553
|
}
|
|
1544
|
-
function
|
|
1554
|
+
function $o({
|
|
1545
1555
|
as: n,
|
|
1546
1556
|
bsPrefix: e,
|
|
1547
1557
|
className: t,
|
|
1548
1558
|
...r
|
|
1549
1559
|
}) {
|
|
1550
|
-
e =
|
|
1551
|
-
const s =
|
|
1560
|
+
e = V(e, "col");
|
|
1561
|
+
const s = yr(), a = br(), i = [], l = [];
|
|
1552
1562
|
return s.forEach((c) => {
|
|
1553
1563
|
const u = r[c];
|
|
1554
1564
|
delete r[c];
|
|
1555
|
-
let d, h,
|
|
1565
|
+
let d, h, f;
|
|
1556
1566
|
typeof u == "object" && u != null ? {
|
|
1557
1567
|
span: d,
|
|
1558
1568
|
offset: h,
|
|
1559
|
-
order:
|
|
1569
|
+
order: f
|
|
1560
1570
|
} = u : d = u;
|
|
1561
1571
|
const g = c !== a ? `-${c}` : "";
|
|
1562
|
-
d && i.push(d === !0 ? `${e}${g}` : `${e}${g}-${d}`),
|
|
1572
|
+
d && i.push(d === !0 ? `${e}${g}` : `${e}${g}-${d}`), f != null && l.push(`order${g}-${f}`), h != null && l.push(`offset${g}-${h}`);
|
|
1563
1573
|
}), [{
|
|
1564
1574
|
...r,
|
|
1565
|
-
className:
|
|
1575
|
+
className: x(t, ...i, ...l)
|
|
1566
1576
|
}, {
|
|
1567
1577
|
as: n,
|
|
1568
1578
|
bsPrefix: e,
|
|
1569
1579
|
spans: i
|
|
1570
1580
|
}];
|
|
1571
1581
|
}
|
|
1572
|
-
const
|
|
1582
|
+
const In = /* @__PURE__ */ W.forwardRef(
|
|
1573
1583
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1574
1584
|
(n, e) => {
|
|
1575
1585
|
const [{
|
|
@@ -1579,29 +1589,29 @@ const Nn = /* @__PURE__ */ A.forwardRef(
|
|
|
1579
1589
|
as: s = "div",
|
|
1580
1590
|
bsPrefix: a,
|
|
1581
1591
|
spans: i
|
|
1582
|
-
}] =
|
|
1592
|
+
}] = $o(n);
|
|
1583
1593
|
return /* @__PURE__ */ o.jsx(s, {
|
|
1584
1594
|
...r,
|
|
1585
1595
|
ref: e,
|
|
1586
|
-
className:
|
|
1596
|
+
className: x(t, !i.length && a)
|
|
1587
1597
|
});
|
|
1588
1598
|
}
|
|
1589
1599
|
);
|
|
1590
|
-
|
|
1591
|
-
function
|
|
1592
|
-
const r =
|
|
1593
|
-
return r.current = i, !i && l && s !== e && a(e), [i ? n : s,
|
|
1600
|
+
In.displayName = "Col";
|
|
1601
|
+
function So(n, e, t) {
|
|
1602
|
+
const r = q(n !== void 0), [s, a] = P(e), i = n !== void 0, l = r.current;
|
|
1603
|
+
return r.current = i, !i && l && s !== e && a(e), [i ? n : s, S((...c) => {
|
|
1594
1604
|
const [u, ...d] = c;
|
|
1595
1605
|
let h = t == null ? void 0 : t(u, ...d);
|
|
1596
1606
|
return a(u), h;
|
|
1597
1607
|
}, [t])];
|
|
1598
1608
|
}
|
|
1599
|
-
function
|
|
1600
|
-
const [, n] =
|
|
1609
|
+
function To() {
|
|
1610
|
+
const [, n] = an((e) => !e, !1);
|
|
1601
1611
|
return n;
|
|
1602
1612
|
}
|
|
1603
|
-
const ze = /* @__PURE__ */
|
|
1604
|
-
function
|
|
1613
|
+
const ze = /* @__PURE__ */ W.createContext(null), Eo = ["children", "usePopper"];
|
|
1614
|
+
function Do(n, e) {
|
|
1605
1615
|
if (n == null)
|
|
1606
1616
|
return {};
|
|
1607
1617
|
var t = {}, r = Object.keys(n), s, a;
|
|
@@ -1609,10 +1619,10 @@ function So(n, e) {
|
|
|
1609
1619
|
s = r[a], !(e.indexOf(s) >= 0) && (t[s] = n[s]);
|
|
1610
1620
|
return t;
|
|
1611
1621
|
}
|
|
1612
|
-
const
|
|
1622
|
+
const Oo = () => {
|
|
1613
1623
|
};
|
|
1614
|
-
function
|
|
1615
|
-
const e =
|
|
1624
|
+
function $n(n = {}) {
|
|
1625
|
+
const e = Y(ze), [t, r] = _r(), s = q(!1), {
|
|
1616
1626
|
flip: a,
|
|
1617
1627
|
offset: i,
|
|
1618
1628
|
rootCloseEvent: l,
|
|
@@ -1620,19 +1630,19 @@ function Cn(n = {}) {
|
|
|
1620
1630
|
placement: u,
|
|
1621
1631
|
popperConfig: d = {},
|
|
1622
1632
|
enableEventListeners: h = !0,
|
|
1623
|
-
usePopper:
|
|
1633
|
+
usePopper: f = !!e
|
|
1624
1634
|
} = n, g = (e == null ? void 0 : e.show) == null ? !!n.show : e.show;
|
|
1625
1635
|
g && !s.current && (s.current = !0);
|
|
1626
|
-
const
|
|
1636
|
+
const b = (v) => {
|
|
1627
1637
|
e == null || e.toggle(!1, v);
|
|
1628
1638
|
}, {
|
|
1629
|
-
placement:
|
|
1630
|
-
setMenu:
|
|
1631
|
-
menuElement:
|
|
1632
|
-
toggleElement:
|
|
1633
|
-
} = e || {},
|
|
1634
|
-
placement: u ||
|
|
1635
|
-
enabled:
|
|
1639
|
+
placement: w,
|
|
1640
|
+
setMenu: p,
|
|
1641
|
+
menuElement: _,
|
|
1642
|
+
toggleElement: k
|
|
1643
|
+
} = e || {}, m = jr(k, _, kr({
|
|
1644
|
+
placement: u || w || "bottom-start",
|
|
1645
|
+
enabled: f,
|
|
1636
1646
|
enableEvents: h ?? g,
|
|
1637
1647
|
offset: i,
|
|
1638
1648
|
flip: a,
|
|
@@ -1640,50 +1650,50 @@ function Cn(n = {}) {
|
|
|
1640
1650
|
arrowElement: t,
|
|
1641
1651
|
popperConfig: d
|
|
1642
1652
|
})), N = Object.assign({
|
|
1643
|
-
ref:
|
|
1644
|
-
"aria-labelledby":
|
|
1645
|
-
},
|
|
1646
|
-
style:
|
|
1647
|
-
}),
|
|
1653
|
+
ref: p || Oo,
|
|
1654
|
+
"aria-labelledby": k == null ? void 0 : k.id
|
|
1655
|
+
}, m.attributes.popper, {
|
|
1656
|
+
style: m.styles.popper
|
|
1657
|
+
}), j = {
|
|
1648
1658
|
show: g,
|
|
1649
|
-
placement:
|
|
1659
|
+
placement: w,
|
|
1650
1660
|
hasShown: s.current,
|
|
1651
1661
|
toggle: e == null ? void 0 : e.toggle,
|
|
1652
|
-
popper:
|
|
1653
|
-
arrowProps:
|
|
1662
|
+
popper: f ? m : null,
|
|
1663
|
+
arrowProps: f ? Object.assign({
|
|
1654
1664
|
ref: r
|
|
1655
|
-
},
|
|
1656
|
-
style:
|
|
1665
|
+
}, m.attributes.arrow, {
|
|
1666
|
+
style: m.styles.arrow
|
|
1657
1667
|
}) : {}
|
|
1658
1668
|
};
|
|
1659
|
-
return
|
|
1669
|
+
return Nr(_, b, {
|
|
1660
1670
|
clickTrigger: l,
|
|
1661
1671
|
disabled: !g
|
|
1662
|
-
}), [N,
|
|
1672
|
+
}), [N, j];
|
|
1663
1673
|
}
|
|
1664
|
-
function
|
|
1674
|
+
function Sn(n) {
|
|
1665
1675
|
let {
|
|
1666
1676
|
children: e,
|
|
1667
1677
|
usePopper: t = !0
|
|
1668
|
-
} = n, r =
|
|
1669
|
-
const [s, a] =
|
|
1678
|
+
} = n, r = Do(n, Eo);
|
|
1679
|
+
const [s, a] = $n(Object.assign({}, r, {
|
|
1670
1680
|
usePopper: t
|
|
1671
1681
|
}));
|
|
1672
1682
|
return /* @__PURE__ */ o.jsx(o.Fragment, {
|
|
1673
1683
|
children: e(s, a)
|
|
1674
1684
|
});
|
|
1675
1685
|
}
|
|
1676
|
-
|
|
1686
|
+
Sn.displayName = "DropdownMenu";
|
|
1677
1687
|
const He = {
|
|
1678
1688
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1679
1689
|
current: 0
|
|
1680
|
-
},
|
|
1681
|
-
let
|
|
1682
|
-
function
|
|
1683
|
-
let e =
|
|
1690
|
+
}, Tn = /* @__PURE__ */ ne.createContext(He), Po = /* @__PURE__ */ ne.createContext(!1);
|
|
1691
|
+
let Mo = !!(typeof window < "u" && window.document && window.document.createElement), et = /* @__PURE__ */ new WeakMap();
|
|
1692
|
+
function Ao(n = !1) {
|
|
1693
|
+
let e = Y(Tn), t = q(null);
|
|
1684
1694
|
if (t.current === null && !n) {
|
|
1685
1695
|
var r, s;
|
|
1686
|
-
let a = (s =
|
|
1696
|
+
let a = (s = ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || s === void 0 || (r = s.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
1687
1697
|
if (a) {
|
|
1688
1698
|
let i = et.get(a);
|
|
1689
1699
|
i == null ? et.set(a, {
|
|
@@ -1695,67 +1705,67 @@ function Oo(n = !1) {
|
|
|
1695
1705
|
}
|
|
1696
1706
|
return t.current;
|
|
1697
1707
|
}
|
|
1698
|
-
function
|
|
1699
|
-
let e =
|
|
1700
|
-
e === He && !
|
|
1701
|
-
let t =
|
|
1708
|
+
function Fo(n) {
|
|
1709
|
+
let e = Y(Tn);
|
|
1710
|
+
e === He && !Mo && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
1711
|
+
let t = Ao(!!n), r = e === He && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
1702
1712
|
return n || `${r}-${t}`;
|
|
1703
1713
|
}
|
|
1704
|
-
function
|
|
1705
|
-
let e =
|
|
1714
|
+
function Wo(n) {
|
|
1715
|
+
let e = ne.useId(), [t] = P(Ho()), r = t || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${He.prefix}`;
|
|
1706
1716
|
return n || `${r}-${e}`;
|
|
1707
1717
|
}
|
|
1708
|
-
const
|
|
1709
|
-
function
|
|
1718
|
+
const Ro = typeof ne.useId == "function" ? Wo : Fo;
|
|
1719
|
+
function Yo() {
|
|
1710
1720
|
return !1;
|
|
1711
1721
|
}
|
|
1712
|
-
function
|
|
1722
|
+
function Lo() {
|
|
1713
1723
|
return !0;
|
|
1714
1724
|
}
|
|
1715
|
-
function
|
|
1725
|
+
function qo(n) {
|
|
1716
1726
|
return () => {
|
|
1717
1727
|
};
|
|
1718
1728
|
}
|
|
1719
|
-
function
|
|
1720
|
-
return typeof
|
|
1729
|
+
function Ho() {
|
|
1730
|
+
return typeof ne.useSyncExternalStore == "function" ? ne.useSyncExternalStore(qo, Yo, Lo) : Y(Po);
|
|
1721
1731
|
}
|
|
1722
|
-
const
|
|
1732
|
+
const En = (n) => {
|
|
1723
1733
|
var e;
|
|
1724
1734
|
return ((e = n.getAttribute("role")) == null ? void 0 : e.toLowerCase()) === "menu";
|
|
1725
|
-
},
|
|
1735
|
+
}, Ft = () => {
|
|
1726
1736
|
};
|
|
1727
|
-
function
|
|
1728
|
-
const n =
|
|
1737
|
+
function Dn() {
|
|
1738
|
+
const n = Ro(), {
|
|
1729
1739
|
show: e = !1,
|
|
1730
|
-
toggle: t =
|
|
1740
|
+
toggle: t = Ft,
|
|
1731
1741
|
setToggle: r,
|
|
1732
1742
|
menuElement: s
|
|
1733
|
-
} =
|
|
1743
|
+
} = Y(ze) || {}, a = S((l) => {
|
|
1734
1744
|
t(!e, l);
|
|
1735
1745
|
}, [e, t]), i = {
|
|
1736
1746
|
id: n,
|
|
1737
|
-
ref: r ||
|
|
1747
|
+
ref: r || Ft,
|
|
1738
1748
|
onClick: a,
|
|
1739
1749
|
"aria-expanded": !!e
|
|
1740
1750
|
};
|
|
1741
|
-
return s &&
|
|
1751
|
+
return s && En(s) && (i["aria-haspopup"] = !0), [i, {
|
|
1742
1752
|
show: e,
|
|
1743
1753
|
toggle: t
|
|
1744
1754
|
}];
|
|
1745
1755
|
}
|
|
1746
|
-
function
|
|
1756
|
+
function On({
|
|
1747
1757
|
children: n
|
|
1748
1758
|
}) {
|
|
1749
|
-
const [e, t] =
|
|
1759
|
+
const [e, t] = Dn();
|
|
1750
1760
|
return /* @__PURE__ */ o.jsx(o.Fragment, {
|
|
1751
1761
|
children: n(e, t)
|
|
1752
1762
|
});
|
|
1753
1763
|
}
|
|
1754
|
-
|
|
1755
|
-
const
|
|
1756
|
-
|
|
1757
|
-
const
|
|
1758
|
-
function
|
|
1764
|
+
On.displayName = "DropdownToggle";
|
|
1765
|
+
const at = /* @__PURE__ */ W.createContext(null), Wt = (n, e = null) => n != null ? String(n) : e || null, Pn = /* @__PURE__ */ W.createContext(null);
|
|
1766
|
+
Pn.displayName = "NavContext";
|
|
1767
|
+
const Bo = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
1768
|
+
function Vo(n, e) {
|
|
1759
1769
|
if (n == null)
|
|
1760
1770
|
return {};
|
|
1761
1771
|
var t = {}, r = Object.keys(n), s, a;
|
|
@@ -1763,36 +1773,36 @@ function Yo(n, e) {
|
|
|
1763
1773
|
s = r[a], !(e.indexOf(s) >= 0) && (t[s] = n[s]);
|
|
1764
1774
|
return t;
|
|
1765
1775
|
}
|
|
1766
|
-
function
|
|
1776
|
+
function Mn({
|
|
1767
1777
|
key: n,
|
|
1768
1778
|
href: e,
|
|
1769
1779
|
active: t,
|
|
1770
1780
|
disabled: r,
|
|
1771
1781
|
onClick: s
|
|
1772
1782
|
}) {
|
|
1773
|
-
const a =
|
|
1783
|
+
const a = Y(at), i = Y(Pn), {
|
|
1774
1784
|
activeKey: l
|
|
1775
|
-
} = i || {}, c =
|
|
1785
|
+
} = i || {}, c = Wt(n, e), u = t == null && n != null ? Wt(l) === c : t;
|
|
1776
1786
|
return [{
|
|
1777
1787
|
onClick: me((h) => {
|
|
1778
1788
|
r || (s == null || s(h), a && !h.isPropagationStopped() && a(c, h));
|
|
1779
1789
|
}),
|
|
1780
1790
|
"aria-disabled": r || void 0,
|
|
1781
1791
|
"aria-selected": u,
|
|
1782
|
-
[
|
|
1792
|
+
[cn("dropdown-item")]: ""
|
|
1783
1793
|
}, {
|
|
1784
1794
|
isActive: u
|
|
1785
1795
|
}];
|
|
1786
1796
|
}
|
|
1787
|
-
const
|
|
1797
|
+
const An = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
1788
1798
|
let {
|
|
1789
1799
|
eventKey: t,
|
|
1790
1800
|
disabled: r,
|
|
1791
1801
|
onClick: s,
|
|
1792
1802
|
active: a,
|
|
1793
|
-
as: i =
|
|
1794
|
-
} = n, l =
|
|
1795
|
-
const [c] =
|
|
1803
|
+
as: i = jn
|
|
1804
|
+
} = n, l = Vo(n, Bo);
|
|
1805
|
+
const [c] = Mn({
|
|
1796
1806
|
key: t,
|
|
1797
1807
|
href: l.href,
|
|
1798
1808
|
disabled: r,
|
|
@@ -1803,9 +1813,9 @@ const Pn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1803
1813
|
ref: e
|
|
1804
1814
|
}, c));
|
|
1805
1815
|
});
|
|
1806
|
-
|
|
1807
|
-
function
|
|
1808
|
-
const n =
|
|
1816
|
+
An.displayName = "DropdownItem";
|
|
1817
|
+
function Rt() {
|
|
1818
|
+
const n = To(), e = q(null), t = S((r) => {
|
|
1809
1819
|
e.current = r, n();
|
|
1810
1820
|
}, [n]);
|
|
1811
1821
|
return [e, t];
|
|
@@ -1815,89 +1825,89 @@ function De({
|
|
|
1815
1825
|
show: e,
|
|
1816
1826
|
onSelect: t,
|
|
1817
1827
|
onToggle: r,
|
|
1818
|
-
itemSelector: s = `* [${
|
|
1828
|
+
itemSelector: s = `* [${cn("dropdown-item")}]`,
|
|
1819
1829
|
focusFirstItemOnShow: a,
|
|
1820
1830
|
placement: i = "bottom-start",
|
|
1821
1831
|
children: l
|
|
1822
1832
|
}) {
|
|
1823
|
-
const c =
|
|
1833
|
+
const c = Cr(), [u, d] = So(e, n, r), [h, f] = Rt(), g = h.current, [b, w] = Rt(), p = b.current, _ = Zr(u), k = q(null), m = q(!1), N = Y(at), j = S((y, C, F = C == null ? void 0 : C.type) => {
|
|
1824
1834
|
d(y, {
|
|
1825
|
-
originalEvent:
|
|
1835
|
+
originalEvent: C,
|
|
1826
1836
|
source: F
|
|
1827
1837
|
});
|
|
1828
|
-
}, [d]), v = me((y,
|
|
1829
|
-
t == null || t(y,
|
|
1830
|
-
}), $ =
|
|
1831
|
-
toggle:
|
|
1838
|
+
}, [d]), v = me((y, C) => {
|
|
1839
|
+
t == null || t(y, C), j(!1, C, "select"), C.isPropagationStopped() || N == null || N(y, C);
|
|
1840
|
+
}), $ = K(() => ({
|
|
1841
|
+
toggle: j,
|
|
1832
1842
|
placement: i,
|
|
1833
1843
|
show: u,
|
|
1834
1844
|
menuElement: g,
|
|
1835
|
-
toggleElement:
|
|
1836
|
-
setMenu:
|
|
1837
|
-
setToggle:
|
|
1838
|
-
}), [
|
|
1839
|
-
g &&
|
|
1840
|
-
const
|
|
1841
|
-
|
|
1845
|
+
toggleElement: p,
|
|
1846
|
+
setMenu: f,
|
|
1847
|
+
setToggle: w
|
|
1848
|
+
}), [j, i, u, g, p, f, w]);
|
|
1849
|
+
g && _ && !u && (m.current = g.contains(g.ownerDocument.activeElement));
|
|
1850
|
+
const D = me(() => {
|
|
1851
|
+
p && p.focus && p.focus();
|
|
1842
1852
|
}), I = me(() => {
|
|
1843
|
-
const y =
|
|
1844
|
-
let
|
|
1845
|
-
if (
|
|
1853
|
+
const y = k.current;
|
|
1854
|
+
let C = a;
|
|
1855
|
+
if (C == null && (C = h.current && En(h.current) ? "keyboard" : !1), C === !1 || C === "keyboard" && !/^key.+$/.test(y))
|
|
1846
1856
|
return;
|
|
1847
1857
|
const F = $t(h.current, s)[0];
|
|
1848
1858
|
F && F.focus && F.focus();
|
|
1849
1859
|
});
|
|
1850
|
-
|
|
1851
|
-
u ? I() :
|
|
1852
|
-
}, [u,
|
|
1853
|
-
|
|
1860
|
+
O(() => {
|
|
1861
|
+
u ? I() : m.current && (m.current = !1, D());
|
|
1862
|
+
}, [u, m, D, I]), O(() => {
|
|
1863
|
+
k.current = null;
|
|
1854
1864
|
});
|
|
1855
|
-
const
|
|
1865
|
+
const T = (y, C) => {
|
|
1856
1866
|
if (!h.current)
|
|
1857
1867
|
return null;
|
|
1858
1868
|
const F = $t(h.current, s);
|
|
1859
|
-
let
|
|
1860
|
-
return
|
|
1869
|
+
let R = F.indexOf(y) + C;
|
|
1870
|
+
return R = Math.max(0, Math.min(R, F.length)), F[R];
|
|
1861
1871
|
};
|
|
1862
|
-
return
|
|
1863
|
-
var
|
|
1872
|
+
return vo(S(() => c.document, [c]), "keydown", (y) => {
|
|
1873
|
+
var C, F;
|
|
1864
1874
|
const {
|
|
1865
|
-
key:
|
|
1866
|
-
} = y, H = y.target,
|
|
1867
|
-
if (/input|textarea/i.test(H.tagName) && (
|
|
1875
|
+
key: R
|
|
1876
|
+
} = y, H = y.target, Z = (C = h.current) == null ? void 0 : C.contains(H), A = (F = b.current) == null ? void 0 : F.contains(H);
|
|
1877
|
+
if (/input|textarea/i.test(H.tagName) && (R === " " || R !== "Escape" && Z || R === "Escape" && H.type === "search") || !Z && !A || R === "Tab" && (!h.current || !u))
|
|
1868
1878
|
return;
|
|
1869
|
-
|
|
1870
|
-
const
|
|
1879
|
+
k.current = y.type;
|
|
1880
|
+
const ee = {
|
|
1871
1881
|
originalEvent: y,
|
|
1872
1882
|
source: y.type
|
|
1873
1883
|
};
|
|
1874
|
-
switch (
|
|
1884
|
+
switch (R) {
|
|
1875
1885
|
case "ArrowUp": {
|
|
1876
|
-
const
|
|
1877
|
-
|
|
1886
|
+
const U = T(H, -1);
|
|
1887
|
+
U && U.focus && U.focus(), y.preventDefault();
|
|
1878
1888
|
return;
|
|
1879
1889
|
}
|
|
1880
1890
|
case "ArrowDown":
|
|
1881
1891
|
if (y.preventDefault(), !u)
|
|
1882
|
-
d(!0,
|
|
1892
|
+
d(!0, ee);
|
|
1883
1893
|
else {
|
|
1884
|
-
const
|
|
1885
|
-
|
|
1894
|
+
const U = T(H, 1);
|
|
1895
|
+
U && U.focus && U.focus();
|
|
1886
1896
|
}
|
|
1887
1897
|
return;
|
|
1888
1898
|
case "Tab":
|
|
1889
|
-
|
|
1899
|
+
Ir(H.ownerDocument, "keyup", (U) => {
|
|
1890
1900
|
var E;
|
|
1891
|
-
(
|
|
1901
|
+
(U.key === "Tab" && !U.target || !((E = h.current) != null && E.contains(U.target))) && d(!1, ee);
|
|
1892
1902
|
}, {
|
|
1893
1903
|
once: !0
|
|
1894
1904
|
});
|
|
1895
1905
|
break;
|
|
1896
1906
|
case "Escape":
|
|
1897
|
-
|
|
1907
|
+
R === "Escape" && (y.preventDefault(), y.stopPropagation()), d(!1, ee);
|
|
1898
1908
|
break;
|
|
1899
1909
|
}
|
|
1900
|
-
}), /* @__PURE__ */ o.jsx(
|
|
1910
|
+
}), /* @__PURE__ */ o.jsx(at.Provider, {
|
|
1901
1911
|
value: v,
|
|
1902
1912
|
children: /* @__PURE__ */ o.jsx(ze.Provider, {
|
|
1903
1913
|
value: $,
|
|
@@ -1906,48 +1916,48 @@ function De({
|
|
|
1906
1916
|
});
|
|
1907
1917
|
}
|
|
1908
1918
|
De.displayName = "Dropdown";
|
|
1909
|
-
De.Menu =
|
|
1910
|
-
De.Toggle =
|
|
1911
|
-
De.Item =
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1914
|
-
const
|
|
1919
|
+
De.Menu = Sn;
|
|
1920
|
+
De.Toggle = On;
|
|
1921
|
+
De.Item = An;
|
|
1922
|
+
const wt = /* @__PURE__ */ W.createContext({});
|
|
1923
|
+
wt.displayName = "DropdownContext";
|
|
1924
|
+
const Fn = /* @__PURE__ */ W.forwardRef(({
|
|
1915
1925
|
className: n,
|
|
1916
1926
|
bsPrefix: e,
|
|
1917
1927
|
as: t = "hr",
|
|
1918
1928
|
role: r = "separator",
|
|
1919
1929
|
...s
|
|
1920
|
-
}, a) => (e =
|
|
1930
|
+
}, a) => (e = V(e, "dropdown-divider"), /* @__PURE__ */ o.jsx(t, {
|
|
1921
1931
|
ref: a,
|
|
1922
|
-
className:
|
|
1932
|
+
className: x(n, e),
|
|
1923
1933
|
role: r,
|
|
1924
1934
|
...s
|
|
1925
1935
|
})));
|
|
1926
|
-
|
|
1927
|
-
const
|
|
1936
|
+
Fn.displayName = "DropdownDivider";
|
|
1937
|
+
const Wn = /* @__PURE__ */ W.forwardRef(({
|
|
1928
1938
|
className: n,
|
|
1929
1939
|
bsPrefix: e,
|
|
1930
1940
|
as: t = "div",
|
|
1931
1941
|
role: r = "heading",
|
|
1932
1942
|
...s
|
|
1933
|
-
}, a) => (e =
|
|
1943
|
+
}, a) => (e = V(e, "dropdown-header"), /* @__PURE__ */ o.jsx(t, {
|
|
1934
1944
|
ref: a,
|
|
1935
|
-
className:
|
|
1945
|
+
className: x(n, e),
|
|
1936
1946
|
role: r,
|
|
1937
1947
|
...s
|
|
1938
1948
|
})));
|
|
1939
|
-
|
|
1940
|
-
const
|
|
1949
|
+
Wn.displayName = "DropdownHeader";
|
|
1950
|
+
const Rn = /* @__PURE__ */ W.forwardRef(({
|
|
1941
1951
|
bsPrefix: n,
|
|
1942
1952
|
className: e,
|
|
1943
1953
|
eventKey: t,
|
|
1944
1954
|
disabled: r = !1,
|
|
1945
1955
|
onClick: s,
|
|
1946
1956
|
active: a,
|
|
1947
|
-
as: i =
|
|
1957
|
+
as: i = xt,
|
|
1948
1958
|
...l
|
|
1949
1959
|
}, c) => {
|
|
1950
|
-
const u =
|
|
1960
|
+
const u = V(n, "dropdown-item"), [d, h] = Mn({
|
|
1951
1961
|
key: t,
|
|
1952
1962
|
href: l.href,
|
|
1953
1963
|
disabled: r,
|
|
@@ -1958,39 +1968,39 @@ const Fn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1958
1968
|
...l,
|
|
1959
1969
|
...d,
|
|
1960
1970
|
ref: c,
|
|
1961
|
-
className:
|
|
1971
|
+
className: x(e, u, h.isActive && "active", r && "disabled")
|
|
1962
1972
|
});
|
|
1963
1973
|
});
|
|
1964
|
-
|
|
1965
|
-
const
|
|
1974
|
+
Rn.displayName = "DropdownItem";
|
|
1975
|
+
const Yn = /* @__PURE__ */ W.forwardRef(({
|
|
1966
1976
|
className: n,
|
|
1967
1977
|
bsPrefix: e,
|
|
1968
1978
|
as: t = "span",
|
|
1969
1979
|
...r
|
|
1970
|
-
}, s) => (e =
|
|
1980
|
+
}, s) => (e = V(e, "dropdown-item-text"), /* @__PURE__ */ o.jsx(t, {
|
|
1971
1981
|
ref: s,
|
|
1972
|
-
className:
|
|
1982
|
+
className: x(n, e),
|
|
1973
1983
|
...r
|
|
1974
1984
|
})));
|
|
1975
|
-
|
|
1976
|
-
const Ue = /* @__PURE__ */
|
|
1985
|
+
Yn.displayName = "DropdownItemText";
|
|
1986
|
+
const Ue = /* @__PURE__ */ W.createContext(null);
|
|
1977
1987
|
Ue.displayName = "InputGroupContext";
|
|
1978
|
-
const
|
|
1979
|
-
|
|
1980
|
-
function
|
|
1988
|
+
const Ln = /* @__PURE__ */ W.createContext(null);
|
|
1989
|
+
Ln.displayName = "NavbarContext";
|
|
1990
|
+
function qn(n, e) {
|
|
1981
1991
|
if (process.env.NODE_ENV === "production")
|
|
1982
1992
|
return n;
|
|
1983
|
-
const t =
|
|
1984
|
-
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ?
|
|
1993
|
+
const t = S((r) => {
|
|
1994
|
+
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? At(!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`) : At(!1));
|
|
1985
1995
|
}, [e]);
|
|
1986
|
-
return
|
|
1996
|
+
return ut(t, n);
|
|
1987
1997
|
}
|
|
1988
|
-
function
|
|
1998
|
+
function Hn(n, e, t) {
|
|
1989
1999
|
const r = t ? "top-end" : "top-start", s = t ? "top-start" : "top-end", a = t ? "bottom-end" : "bottom-start", i = t ? "bottom-start" : "bottom-end", l = t ? "right-start" : "left-start", c = t ? "right-end" : "left-end", u = t ? "left-start" : "right-start", d = t ? "left-end" : "right-end";
|
|
1990
2000
|
let h = n ? i : a;
|
|
1991
2001
|
return e === "up" ? h = n ? s : r : e === "end" ? h = n ? d : u : e === "start" ? h = n ? c : l : e === "down-centered" ? h = "bottom" : e === "up-centered" && (h = "top"), h;
|
|
1992
2002
|
}
|
|
1993
|
-
const
|
|
2003
|
+
const Bn = /* @__PURE__ */ W.forwardRef(({
|
|
1994
2004
|
bsPrefix: n,
|
|
1995
2005
|
className: e,
|
|
1996
2006
|
align: t,
|
|
@@ -2004,77 +2014,77 @@ const Yn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2004
2014
|
variant: u,
|
|
2005
2015
|
...d
|
|
2006
2016
|
}, h) => {
|
|
2007
|
-
let
|
|
2008
|
-
const g =
|
|
2009
|
-
align:
|
|
2010
|
-
drop:
|
|
2011
|
-
isRTL:
|
|
2012
|
-
} =
|
|
2013
|
-
t = t ||
|
|
2014
|
-
const
|
|
2017
|
+
let f = !1;
|
|
2018
|
+
const g = Y(Ln), b = V(n, "dropdown-menu"), {
|
|
2019
|
+
align: w,
|
|
2020
|
+
drop: p,
|
|
2021
|
+
isRTL: _
|
|
2022
|
+
} = Y(wt);
|
|
2023
|
+
t = t || w;
|
|
2024
|
+
const k = Y(Ue), m = [];
|
|
2015
2025
|
if (t)
|
|
2016
2026
|
if (typeof t == "object") {
|
|
2017
2027
|
const y = Object.keys(t);
|
|
2018
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
2019
|
-
const
|
|
2020
|
-
|
|
2028
|
+
if (process.env.NODE_ENV !== "production" && Jt(y.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), y.length) {
|
|
2029
|
+
const C = y[0], F = t[C];
|
|
2030
|
+
f = F === "start", m.push(`${b}-${C}-${F}`);
|
|
2021
2031
|
}
|
|
2022
2032
|
} else
|
|
2023
|
-
t === "end" && (
|
|
2024
|
-
const N =
|
|
2033
|
+
t === "end" && (f = !0);
|
|
2034
|
+
const N = Hn(f, p, _), [j, {
|
|
2025
2035
|
hasShown: v,
|
|
2026
2036
|
popper: $,
|
|
2027
|
-
show:
|
|
2037
|
+
show: D,
|
|
2028
2038
|
toggle: I
|
|
2029
|
-
}] =
|
|
2039
|
+
}] = $n({
|
|
2030
2040
|
flip: s,
|
|
2031
2041
|
rootCloseEvent: r,
|
|
2032
2042
|
show: a,
|
|
2033
|
-
usePopper: !g &&
|
|
2043
|
+
usePopper: !g && m.length === 0,
|
|
2034
2044
|
offset: [0, 2],
|
|
2035
2045
|
popperConfig: c,
|
|
2036
2046
|
placement: N
|
|
2037
2047
|
});
|
|
2038
|
-
if (
|
|
2039
|
-
|
|
2040
|
-
}, [
|
|
2048
|
+
if (j.ref = ut(qn(h, "DropdownMenu"), j.ref), $r(() => {
|
|
2049
|
+
D && ($ == null || $.update());
|
|
2050
|
+
}, [D]), !v && !i && !k)
|
|
2041
2051
|
return null;
|
|
2042
|
-
typeof l != "string" && (
|
|
2043
|
-
let
|
|
2044
|
-
return $ != null && $.placement && (
|
|
2052
|
+
typeof l != "string" && (j.show = D, j.close = () => I == null ? void 0 : I(!1), j.align = t);
|
|
2053
|
+
let T = d.style;
|
|
2054
|
+
return $ != null && $.placement && (T = {
|
|
2045
2055
|
...d.style,
|
|
2046
|
-
...
|
|
2056
|
+
...j.style
|
|
2047
2057
|
}, d["x-placement"] = $.placement), /* @__PURE__ */ o.jsx(l, {
|
|
2048
2058
|
...d,
|
|
2049
|
-
...
|
|
2050
|
-
style:
|
|
2051
|
-
...(
|
|
2059
|
+
...j,
|
|
2060
|
+
style: T,
|
|
2061
|
+
...(m.length || g) && {
|
|
2052
2062
|
"data-bs-popper": "static"
|
|
2053
2063
|
},
|
|
2054
|
-
className:
|
|
2064
|
+
className: x(e, b, D && "show", f && `${b}-end`, u && `${b}-${u}`, ...m)
|
|
2055
2065
|
});
|
|
2056
2066
|
});
|
|
2057
|
-
|
|
2058
|
-
const
|
|
2067
|
+
Bn.displayName = "DropdownMenu";
|
|
2068
|
+
const Vn = /* @__PURE__ */ W.forwardRef(({
|
|
2059
2069
|
bsPrefix: n,
|
|
2060
2070
|
split: e,
|
|
2061
2071
|
className: t,
|
|
2062
2072
|
childBsPrefix: r,
|
|
2063
2073
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2064
|
-
as: s =
|
|
2074
|
+
as: s = Cn,
|
|
2065
2075
|
...a
|
|
2066
2076
|
}, i) => {
|
|
2067
|
-
const l =
|
|
2077
|
+
const l = V(n, "dropdown-toggle"), c = Y(ze);
|
|
2068
2078
|
r !== void 0 && (a.bsPrefix = r);
|
|
2069
|
-
const [u] =
|
|
2070
|
-
return u.ref =
|
|
2071
|
-
className:
|
|
2079
|
+
const [u] = Dn();
|
|
2080
|
+
return u.ref = ut(u.ref, qn(i, "DropdownToggle")), /* @__PURE__ */ o.jsx(s, {
|
|
2081
|
+
className: x(t, l, e && `${l}-split`, (c == null ? void 0 : c.show) && "show"),
|
|
2072
2082
|
...u,
|
|
2073
2083
|
...a
|
|
2074
2084
|
});
|
|
2075
2085
|
});
|
|
2076
|
-
|
|
2077
|
-
const
|
|
2086
|
+
Vn.displayName = "DropdownToggle";
|
|
2087
|
+
const Gn = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
2078
2088
|
const {
|
|
2079
2089
|
bsPrefix: t,
|
|
2080
2090
|
drop: r = "down",
|
|
@@ -2087,51 +2097,51 @@ const Bn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
2087
2097
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2088
2098
|
as: d = "div",
|
|
2089
2099
|
navbar: h,
|
|
2090
|
-
autoClose:
|
|
2100
|
+
autoClose: f = !0,
|
|
2091
2101
|
...g
|
|
2092
|
-
} =
|
|
2102
|
+
} = Xt(n, {
|
|
2093
2103
|
show: "onToggle"
|
|
2094
|
-
}),
|
|
2095
|
-
var I,
|
|
2096
|
-
!((I =
|
|
2097
|
-
}), N =
|
|
2104
|
+
}), b = Y(Ue), w = V(t, "dropdown"), p = Sr(), _ = ($) => f === !1 ? $ === "click" : f === "inside" ? $ !== "rootClose" : f === "outside" ? $ !== "select" : !0, k = me(($, D) => {
|
|
2105
|
+
var I, T;
|
|
2106
|
+
!((I = D.originalEvent) == null || (T = I.target) == null) && T.classList.contains("dropdown-toggle") && D.source === "mousedown" || (D.originalEvent.currentTarget === document && (D.source !== "keydown" || D.originalEvent.key === "Escape") && (D.source = "rootClose"), _(D.source) && (c == null || c($, D)));
|
|
2107
|
+
}), N = Hn(i === "end", r, p), j = K(() => ({
|
|
2098
2108
|
align: i,
|
|
2099
2109
|
drop: r,
|
|
2100
|
-
isRTL:
|
|
2101
|
-
}), [i, r,
|
|
2102
|
-
down:
|
|
2103
|
-
"down-centered": `${
|
|
2110
|
+
isRTL: p
|
|
2111
|
+
}), [i, r, p]), v = {
|
|
2112
|
+
down: w,
|
|
2113
|
+
"down-centered": `${w}-center`,
|
|
2104
2114
|
up: "dropup",
|
|
2105
2115
|
"up-centered": "dropup-center dropup",
|
|
2106
2116
|
end: "dropend",
|
|
2107
2117
|
start: "dropstart"
|
|
2108
2118
|
};
|
|
2109
|
-
return /* @__PURE__ */ o.jsx(
|
|
2110
|
-
value:
|
|
2119
|
+
return /* @__PURE__ */ o.jsx(wt.Provider, {
|
|
2120
|
+
value: j,
|
|
2111
2121
|
children: /* @__PURE__ */ o.jsx(De, {
|
|
2112
2122
|
placement: N,
|
|
2113
2123
|
show: s,
|
|
2114
2124
|
onSelect: l,
|
|
2115
|
-
onToggle:
|
|
2125
|
+
onToggle: k,
|
|
2116
2126
|
focusFirstItemOnShow: u,
|
|
2117
|
-
itemSelector: `.${
|
|
2118
|
-
children:
|
|
2127
|
+
itemSelector: `.${w}-item:not(.disabled):not(:disabled)`,
|
|
2128
|
+
children: b ? g.children : /* @__PURE__ */ o.jsx(d, {
|
|
2119
2129
|
...g,
|
|
2120
2130
|
ref: e,
|
|
2121
|
-
className:
|
|
2131
|
+
className: x(a, s && "show", v[r])
|
|
2122
2132
|
})
|
|
2123
2133
|
})
|
|
2124
2134
|
});
|
|
2125
2135
|
});
|
|
2126
|
-
|
|
2127
|
-
const Ee = Object.assign(
|
|
2128
|
-
Toggle:
|
|
2129
|
-
Menu:
|
|
2130
|
-
Item:
|
|
2131
|
-
ItemText:
|
|
2132
|
-
Divider:
|
|
2133
|
-
Header:
|
|
2134
|
-
}), Oe = /* @__PURE__ */
|
|
2136
|
+
Gn.displayName = "Dropdown";
|
|
2137
|
+
const Ee = Object.assign(Gn, {
|
|
2138
|
+
Toggle: Vn,
|
|
2139
|
+
Menu: Bn,
|
|
2140
|
+
Item: Rn,
|
|
2141
|
+
ItemText: Yn,
|
|
2142
|
+
Divider: Fn,
|
|
2143
|
+
Header: Wn
|
|
2144
|
+
}), Oe = /* @__PURE__ */ W.forwardRef(({
|
|
2135
2145
|
id: n,
|
|
2136
2146
|
bsPrefix: e,
|
|
2137
2147
|
className: t,
|
|
@@ -2144,17 +2154,17 @@ const Ee = Object.assign(Bn, {
|
|
|
2144
2154
|
}, c) => {
|
|
2145
2155
|
const {
|
|
2146
2156
|
controlId: u
|
|
2147
|
-
} =
|
|
2148
|
-
return e =
|
|
2157
|
+
} = Y(be);
|
|
2158
|
+
return e = V(e, "form-check-input"), /* @__PURE__ */ o.jsx(i, {
|
|
2149
2159
|
...l,
|
|
2150
2160
|
ref: c,
|
|
2151
2161
|
type: r,
|
|
2152
2162
|
id: n || u,
|
|
2153
|
-
className:
|
|
2163
|
+
className: x(t, e, s && "is-valid", a && "is-invalid")
|
|
2154
2164
|
});
|
|
2155
2165
|
});
|
|
2156
2166
|
Oe.displayName = "FormCheckInput";
|
|
2157
|
-
const Be = /* @__PURE__ */
|
|
2167
|
+
const Be = /* @__PURE__ */ W.forwardRef(({
|
|
2158
2168
|
bsPrefix: n,
|
|
2159
2169
|
className: e,
|
|
2160
2170
|
htmlFor: t,
|
|
@@ -2162,16 +2172,16 @@ const Be = /* @__PURE__ */ A.forwardRef(({
|
|
|
2162
2172
|
}, s) => {
|
|
2163
2173
|
const {
|
|
2164
2174
|
controlId: a
|
|
2165
|
-
} =
|
|
2166
|
-
return n =
|
|
2175
|
+
} = Y(be);
|
|
2176
|
+
return n = V(n, "form-check-label"), /* @__PURE__ */ o.jsx("label", {
|
|
2167
2177
|
...r,
|
|
2168
2178
|
ref: s,
|
|
2169
2179
|
htmlFor: t || a,
|
|
2170
|
-
className:
|
|
2180
|
+
className: x(e, n)
|
|
2171
2181
|
});
|
|
2172
2182
|
});
|
|
2173
2183
|
Be.displayName = "FormCheckLabel";
|
|
2174
|
-
const
|
|
2184
|
+
const zn = /* @__PURE__ */ W.forwardRef(({
|
|
2175
2185
|
id: n,
|
|
2176
2186
|
bsPrefix: e,
|
|
2177
2187
|
bsSwitchPrefix: t,
|
|
@@ -2184,39 +2194,39 @@ const Vn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2184
2194
|
feedback: u,
|
|
2185
2195
|
feedbackType: d,
|
|
2186
2196
|
className: h,
|
|
2187
|
-
style:
|
|
2197
|
+
style: f,
|
|
2188
2198
|
title: g = "",
|
|
2189
|
-
type:
|
|
2190
|
-
label:
|
|
2191
|
-
children:
|
|
2199
|
+
type: b = "checkbox",
|
|
2200
|
+
label: w,
|
|
2201
|
+
children: p,
|
|
2192
2202
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2193
|
-
as:
|
|
2194
|
-
...
|
|
2195
|
-
},
|
|
2196
|
-
e =
|
|
2203
|
+
as: _ = "input",
|
|
2204
|
+
...k
|
|
2205
|
+
}, m) => {
|
|
2206
|
+
e = V(e, "form-check"), t = V(t, "form-switch");
|
|
2197
2207
|
const {
|
|
2198
2208
|
controlId: N
|
|
2199
|
-
} =
|
|
2209
|
+
} = Y(be), j = K(() => ({
|
|
2200
2210
|
controlId: n || N
|
|
2201
|
-
}), [N, n]), v = !
|
|
2202
|
-
...
|
|
2203
|
-
type:
|
|
2204
|
-
ref:
|
|
2211
|
+
}), [N, n]), v = !p && w != null && w !== !1 || Io(p, Be), $ = /* @__PURE__ */ o.jsx(Oe, {
|
|
2212
|
+
...k,
|
|
2213
|
+
type: b === "switch" ? "checkbox" : b,
|
|
2214
|
+
ref: m,
|
|
2205
2215
|
isValid: i,
|
|
2206
2216
|
isInvalid: l,
|
|
2207
2217
|
disabled: a,
|
|
2208
|
-
as:
|
|
2218
|
+
as: _
|
|
2209
2219
|
});
|
|
2210
2220
|
return /* @__PURE__ */ o.jsx(be.Provider, {
|
|
2211
|
-
value:
|
|
2221
|
+
value: j,
|
|
2212
2222
|
children: /* @__PURE__ */ o.jsx("div", {
|
|
2213
|
-
style:
|
|
2214
|
-
className:
|
|
2215
|
-
children:
|
|
2223
|
+
style: f,
|
|
2224
|
+
className: x(h, v && e, r && `${e}-inline`, s && `${e}-reverse`, b === "switch" && t),
|
|
2225
|
+
children: p || /* @__PURE__ */ o.jsxs(o.Fragment, {
|
|
2216
2226
|
children: [$, v && /* @__PURE__ */ o.jsx(Be, {
|
|
2217
2227
|
title: g,
|
|
2218
|
-
children:
|
|
2219
|
-
}), u && /* @__PURE__ */ o.jsx(
|
|
2228
|
+
children: w
|
|
2229
|
+
}), u && /* @__PURE__ */ o.jsx(es, {
|
|
2220
2230
|
type: d,
|
|
2221
2231
|
tooltip: c,
|
|
2222
2232
|
children: u
|
|
@@ -2225,22 +2235,22 @@ const Vn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2225
2235
|
})
|
|
2226
2236
|
});
|
|
2227
2237
|
});
|
|
2228
|
-
|
|
2229
|
-
const Ve = Object.assign(
|
|
2238
|
+
zn.displayName = "FormCheck";
|
|
2239
|
+
const Ve = Object.assign(zn, {
|
|
2230
2240
|
Input: Oe,
|
|
2231
2241
|
Label: Be
|
|
2232
|
-
}),
|
|
2242
|
+
}), Un = /* @__PURE__ */ W.forwardRef(({
|
|
2233
2243
|
className: n,
|
|
2234
2244
|
bsPrefix: e,
|
|
2235
2245
|
as: t = "div",
|
|
2236
2246
|
...r
|
|
2237
|
-
}, s) => (e =
|
|
2247
|
+
}, s) => (e = V(e, "form-floating"), /* @__PURE__ */ o.jsx(t, {
|
|
2238
2248
|
ref: s,
|
|
2239
|
-
className:
|
|
2249
|
+
className: x(n, e),
|
|
2240
2250
|
...r
|
|
2241
2251
|
})));
|
|
2242
|
-
|
|
2243
|
-
const
|
|
2252
|
+
Un.displayName = "FormFloating";
|
|
2253
|
+
const Kn = /* @__PURE__ */ W.forwardRef(({
|
|
2244
2254
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2245
2255
|
as: n = "label",
|
|
2246
2256
|
bsPrefix: e,
|
|
@@ -2252,12 +2262,12 @@ const zn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2252
2262
|
}, l) => {
|
|
2253
2263
|
const {
|
|
2254
2264
|
controlId: c
|
|
2255
|
-
} =
|
|
2256
|
-
e =
|
|
2265
|
+
} = Y(be);
|
|
2266
|
+
e = V(e, "form-label");
|
|
2257
2267
|
let u = "col-form-label";
|
|
2258
2268
|
typeof t == "string" && (u = `${u} ${u}-${t}`);
|
|
2259
|
-
const d =
|
|
2260
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2269
|
+
const d = x(s, e, r && "visually-hidden", t && u);
|
|
2270
|
+
return process.env.NODE_ENV !== "production" && Jt(c == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || c, t ? /* @__PURE__ */ o.jsx(In, {
|
|
2261
2271
|
ref: l,
|
|
2262
2272
|
as: "label",
|
|
2263
2273
|
className: d,
|
|
@@ -2273,8 +2283,8 @@ const zn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2273
2283
|
})
|
|
2274
2284
|
);
|
|
2275
2285
|
});
|
|
2276
|
-
|
|
2277
|
-
const
|
|
2286
|
+
Kn.displayName = "FormLabel";
|
|
2287
|
+
const Qn = /* @__PURE__ */ W.forwardRef(({
|
|
2278
2288
|
bsPrefix: n,
|
|
2279
2289
|
className: e,
|
|
2280
2290
|
id: t,
|
|
@@ -2282,17 +2292,17 @@ const Un = /* @__PURE__ */ A.forwardRef(({
|
|
|
2282
2292
|
}, s) => {
|
|
2283
2293
|
const {
|
|
2284
2294
|
controlId: a
|
|
2285
|
-
} =
|
|
2286
|
-
return n =
|
|
2295
|
+
} = Y(be);
|
|
2296
|
+
return n = V(n, "form-range"), /* @__PURE__ */ o.jsx("input", {
|
|
2287
2297
|
...r,
|
|
2288
2298
|
type: "range",
|
|
2289
2299
|
ref: s,
|
|
2290
|
-
className:
|
|
2300
|
+
className: x(e, n),
|
|
2291
2301
|
id: t || a
|
|
2292
2302
|
});
|
|
2293
2303
|
});
|
|
2294
|
-
|
|
2295
|
-
const
|
|
2304
|
+
Qn.displayName = "FormRange";
|
|
2305
|
+
const Xn = /* @__PURE__ */ W.forwardRef(({
|
|
2296
2306
|
bsPrefix: n,
|
|
2297
2307
|
size: e,
|
|
2298
2308
|
htmlSize: t,
|
|
@@ -2304,17 +2314,17 @@ const Kn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2304
2314
|
}, c) => {
|
|
2305
2315
|
const {
|
|
2306
2316
|
controlId: u
|
|
2307
|
-
} =
|
|
2308
|
-
return n =
|
|
2317
|
+
} = Y(be);
|
|
2318
|
+
return n = V(n, "form-select"), /* @__PURE__ */ o.jsx("select", {
|
|
2309
2319
|
...l,
|
|
2310
2320
|
size: t,
|
|
2311
2321
|
ref: c,
|
|
2312
|
-
className:
|
|
2322
|
+
className: x(r, n, e && `${n}-${e}`, s && "is-valid", a && "is-invalid"),
|
|
2313
2323
|
id: i || u
|
|
2314
2324
|
});
|
|
2315
2325
|
});
|
|
2316
|
-
|
|
2317
|
-
const
|
|
2326
|
+
Xn.displayName = "FormSelect";
|
|
2327
|
+
const Jn = /* @__PURE__ */ W.forwardRef(
|
|
2318
2328
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2319
2329
|
({
|
|
2320
2330
|
bsPrefix: n,
|
|
@@ -2322,23 +2332,23 @@ const Qn = /* @__PURE__ */ A.forwardRef(
|
|
|
2322
2332
|
as: t = "small",
|
|
2323
2333
|
muted: r,
|
|
2324
2334
|
...s
|
|
2325
|
-
}, a) => (n =
|
|
2335
|
+
}, a) => (n = V(n, "form-text"), /* @__PURE__ */ o.jsx(t, {
|
|
2326
2336
|
...s,
|
|
2327
2337
|
ref: a,
|
|
2328
|
-
className:
|
|
2338
|
+
className: x(e, n, r && "text-muted")
|
|
2329
2339
|
}))
|
|
2330
2340
|
);
|
|
2331
|
-
|
|
2332
|
-
const
|
|
2341
|
+
Jn.displayName = "FormText";
|
|
2342
|
+
const Zn = /* @__PURE__ */ W.forwardRef((n, e) => /* @__PURE__ */ o.jsx(Ve, {
|
|
2333
2343
|
...n,
|
|
2334
2344
|
ref: e,
|
|
2335
2345
|
type: "switch"
|
|
2336
2346
|
}));
|
|
2337
|
-
|
|
2338
|
-
const
|
|
2347
|
+
Zn.displayName = "Switch";
|
|
2348
|
+
const Go = Object.assign(Zn, {
|
|
2339
2349
|
Input: Ve.Input,
|
|
2340
2350
|
Label: Ve.Label
|
|
2341
|
-
}),
|
|
2351
|
+
}), zo = {
|
|
2342
2352
|
/**
|
|
2343
2353
|
* The Form `ref` will be forwarded to the underlying element,
|
|
2344
2354
|
* which means, unless it's rendered `as` a composite component,
|
|
@@ -2354,7 +2364,7 @@ const Ho = Object.assign(Xn, {
|
|
|
2354
2364
|
*/
|
|
2355
2365
|
validated: Xe.bool,
|
|
2356
2366
|
as: Xe.elementType
|
|
2357
|
-
},
|
|
2367
|
+
}, vt = /* @__PURE__ */ W.forwardRef(({
|
|
2358
2368
|
className: n,
|
|
2359
2369
|
validated: e,
|
|
2360
2370
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -2363,43 +2373,43 @@ const Ho = Object.assign(Xn, {
|
|
|
2363
2373
|
}, s) => /* @__PURE__ */ o.jsx(t, {
|
|
2364
2374
|
...r,
|
|
2365
2375
|
ref: s,
|
|
2366
|
-
className:
|
|
2376
|
+
className: x(n, e && "was-validated")
|
|
2367
2377
|
}));
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
const
|
|
2371
|
-
Group:
|
|
2372
|
-
Control:
|
|
2373
|
-
Floating:
|
|
2378
|
+
vt.displayName = "Form";
|
|
2379
|
+
vt.propTypes = zo;
|
|
2380
|
+
const Q = Object.assign(vt, {
|
|
2381
|
+
Group: Tr,
|
|
2382
|
+
Control: ln,
|
|
2383
|
+
Floating: Un,
|
|
2374
2384
|
Check: Ve,
|
|
2375
|
-
Switch:
|
|
2376
|
-
Label:
|
|
2377
|
-
Text:
|
|
2378
|
-
Range:
|
|
2379
|
-
Select:
|
|
2380
|
-
FloatingLabel:
|
|
2381
|
-
}), Ke = /* @__PURE__ */
|
|
2385
|
+
Switch: Go,
|
|
2386
|
+
Label: Kn,
|
|
2387
|
+
Text: Jn,
|
|
2388
|
+
Range: Qn,
|
|
2389
|
+
Select: Xn,
|
|
2390
|
+
FloatingLabel: Er
|
|
2391
|
+
}), Ke = /* @__PURE__ */ W.forwardRef(({
|
|
2382
2392
|
className: n,
|
|
2383
2393
|
bsPrefix: e,
|
|
2384
2394
|
as: t = "span",
|
|
2385
2395
|
...r
|
|
2386
|
-
}, s) => (e =
|
|
2396
|
+
}, s) => (e = V(e, "input-group-text"), /* @__PURE__ */ o.jsx(t, {
|
|
2387
2397
|
ref: s,
|
|
2388
|
-
className:
|
|
2398
|
+
className: x(n, e),
|
|
2389
2399
|
...r
|
|
2390
2400
|
})));
|
|
2391
2401
|
Ke.displayName = "InputGroupText";
|
|
2392
|
-
const
|
|
2402
|
+
const Uo = (n) => /* @__PURE__ */ o.jsx(Ke, {
|
|
2393
2403
|
children: /* @__PURE__ */ o.jsx(Oe, {
|
|
2394
2404
|
type: "checkbox",
|
|
2395
2405
|
...n
|
|
2396
2406
|
})
|
|
2397
|
-
}),
|
|
2407
|
+
}), Ko = (n) => /* @__PURE__ */ o.jsx(Ke, {
|
|
2398
2408
|
children: /* @__PURE__ */ o.jsx(Oe, {
|
|
2399
2409
|
type: "radio",
|
|
2400
2410
|
...n
|
|
2401
2411
|
})
|
|
2402
|
-
}),
|
|
2412
|
+
}), er = /* @__PURE__ */ W.forwardRef(({
|
|
2403
2413
|
bsPrefix: n,
|
|
2404
2414
|
size: e,
|
|
2405
2415
|
hasValidation: t,
|
|
@@ -2408,23 +2418,23 @@ const Vo = (n) => /* @__PURE__ */ o.jsx(Ke, {
|
|
|
2408
2418
|
as: s = "div",
|
|
2409
2419
|
...a
|
|
2410
2420
|
}, i) => {
|
|
2411
|
-
n =
|
|
2412
|
-
const l =
|
|
2421
|
+
n = V(n, "input-group");
|
|
2422
|
+
const l = K(() => ({}), []);
|
|
2413
2423
|
return /* @__PURE__ */ o.jsx(Ue.Provider, {
|
|
2414
2424
|
value: l,
|
|
2415
2425
|
children: /* @__PURE__ */ o.jsx(s, {
|
|
2416
2426
|
ref: i,
|
|
2417
2427
|
...a,
|
|
2418
|
-
className:
|
|
2428
|
+
className: x(r, n, e && `${n}-${e}`, t && "has-validation")
|
|
2419
2429
|
})
|
|
2420
2430
|
});
|
|
2421
2431
|
});
|
|
2422
|
-
|
|
2423
|
-
const tt = Object.assign(
|
|
2432
|
+
er.displayName = "InputGroup";
|
|
2433
|
+
const tt = Object.assign(er, {
|
|
2424
2434
|
Text: Ke,
|
|
2425
|
-
Radio:
|
|
2426
|
-
Checkbox:
|
|
2427
|
-
}),
|
|
2435
|
+
Radio: Ko,
|
|
2436
|
+
Checkbox: Uo
|
|
2437
|
+
}), yt = /* @__PURE__ */ W.forwardRef(({
|
|
2428
2438
|
bsPrefix: n,
|
|
2429
2439
|
variant: e,
|
|
2430
2440
|
animation: t = "border",
|
|
@@ -2434,94 +2444,94 @@ const tt = Object.assign(Jn, {
|
|
|
2434
2444
|
className: a,
|
|
2435
2445
|
...i
|
|
2436
2446
|
}, l) => {
|
|
2437
|
-
n =
|
|
2447
|
+
n = V(n, "spinner");
|
|
2438
2448
|
const c = `${n}-${t}`;
|
|
2439
2449
|
return /* @__PURE__ */ o.jsx(s, {
|
|
2440
2450
|
ref: l,
|
|
2441
2451
|
...i,
|
|
2442
|
-
className:
|
|
2452
|
+
className: x(a, c, r && `${c}-${r}`, e && `text-${e}`)
|
|
2443
2453
|
});
|
|
2444
2454
|
});
|
|
2445
|
-
|
|
2455
|
+
yt.displayName = "Spinner";
|
|
2446
2456
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2447
|
-
const
|
|
2457
|
+
const tr = "client_info_decoding_error", nr = "client_info_empty_error", Qo = "token_parsing_error", Xo = "null_or_empty_token", Jo = "endpoints_resolution_error", Zo = "network_error", ea = "openid_config_error", ta = "hash_not_deserialized", na = "invalid_state", ra = "state_mismatch", sa = "state_not_found", oa = "nonce_mismatch", aa = "auth_time_not_found", ia = "max_age_transpired", ca = "multiple_matching_tokens", la = "multiple_matching_accounts", ua = "multiple_matching_appMetadata", da = "request_cannot_be_made", ha = "cannot_remove_empty_scope", ma = "cannot_append_scopeset", fa = "empty_input_scopeset", pa = "device_code_polling_cancelled", ga = "device_code_expired", xa = "device_code_unknown_error", wa = "no_account_in_silent_request", va = "invalid_cache_record", rr = "invalid_cache_environment", ya = "no_account_found", ba = "no_crypto_object", _a = "unexpected_credential_type", ja = "invalid_assertion", ka = "invalid_client_credential", Na = "token_refresh_required", Ca = "user_timeout_reached", Ia = "token_claims_cnf_required_for_signedjwt", $a = "authorization_code_missing_from_server_response", Sa = "binding_key_not_removed", Ta = "end_session_endpoint_not_supported", Ea = "key_id_missing", Da = "no_network_connectivity", Oa = "user_canceled", Pa = "missing_tenant_id_error", Ma = "method_not_implemented", Aa = "nested_app_auth_bridge_disabled";
|
|
2448
2458
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2449
|
-
const
|
|
2450
|
-
[
|
|
2451
|
-
[
|
|
2452
|
-
[
|
|
2453
|
-
[
|
|
2454
|
-
[
|
|
2455
|
-
[
|
|
2456
|
-
[
|
|
2457
|
-
[
|
|
2458
|
-
[
|
|
2459
|
-
[
|
|
2460
|
-
[
|
|
2461
|
-
[
|
|
2462
|
-
[
|
|
2463
|
-
[
|
|
2464
|
-
[
|
|
2465
|
-
[
|
|
2466
|
-
[
|
|
2467
|
-
[
|
|
2468
|
-
[
|
|
2469
|
-
[
|
|
2470
|
-
[
|
|
2471
|
-
[
|
|
2472
|
-
[
|
|
2473
|
-
[
|
|
2474
|
-
[
|
|
2475
|
-
[
|
|
2476
|
-
[
|
|
2477
|
-
[
|
|
2478
|
-
[
|
|
2479
|
-
[
|
|
2480
|
-
[
|
|
2481
|
-
[
|
|
2482
|
-
[
|
|
2483
|
-
[
|
|
2484
|
-
[
|
|
2485
|
-
[
|
|
2486
|
-
[
|
|
2487
|
-
[
|
|
2488
|
-
[
|
|
2489
|
-
[
|
|
2490
|
-
[
|
|
2491
|
-
[
|
|
2492
|
-
[
|
|
2493
|
-
[
|
|
2459
|
+
const Yt = {
|
|
2460
|
+
[tr]: "The client info could not be parsed/decoded correctly",
|
|
2461
|
+
[nr]: "The client info was empty",
|
|
2462
|
+
[Qo]: "Token cannot be parsed",
|
|
2463
|
+
[Xo]: "The token is null or empty",
|
|
2464
|
+
[Jo]: "Endpoints cannot be resolved",
|
|
2465
|
+
[Zo]: "Network request failed",
|
|
2466
|
+
[ea]: "Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",
|
|
2467
|
+
[ta]: "The hash parameters could not be deserialized",
|
|
2468
|
+
[na]: "State was not the expected format",
|
|
2469
|
+
[ra]: "State mismatch error",
|
|
2470
|
+
[sa]: "State not found",
|
|
2471
|
+
[oa]: "Nonce mismatch error",
|
|
2472
|
+
[aa]: "Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",
|
|
2473
|
+
[ia]: "Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",
|
|
2474
|
+
[ca]: "The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",
|
|
2475
|
+
[la]: "The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",
|
|
2476
|
+
[ua]: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",
|
|
2477
|
+
[da]: "Token request cannot be made without authorization code or refresh token.",
|
|
2478
|
+
[ha]: "Cannot remove null or empty scope from ScopeSet",
|
|
2479
|
+
[ma]: "Cannot append ScopeSet",
|
|
2480
|
+
[fa]: "Empty input ScopeSet cannot be processed",
|
|
2481
|
+
[pa]: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",
|
|
2482
|
+
[ga]: "Device code is expired.",
|
|
2483
|
+
[xa]: "Device code stopped polling for unknown reasons.",
|
|
2484
|
+
[wa]: "Please pass an account object, silent flow is not supported without account information",
|
|
2485
|
+
[va]: "Cache record object was null or undefined.",
|
|
2486
|
+
[rr]: "Invalid environment when attempting to create cache entry",
|
|
2487
|
+
[ya]: "No account found in cache for given key.",
|
|
2488
|
+
[ba]: "No crypto object detected.",
|
|
2489
|
+
[_a]: "Unexpected credential type.",
|
|
2490
|
+
[ja]: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",
|
|
2491
|
+
[ka]: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",
|
|
2492
|
+
[Na]: "Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",
|
|
2493
|
+
[Ca]: "User defined timeout for device code polling reached",
|
|
2494
|
+
[Ia]: "Cannot generate a POP jwt if the token_claims are not populated",
|
|
2495
|
+
[$a]: "Server response does not contain an authorization code to proceed",
|
|
2496
|
+
[Sa]: "Could not remove the credential's binding key from storage.",
|
|
2497
|
+
[Ta]: "The provided authority does not support logout",
|
|
2498
|
+
[Ea]: "A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",
|
|
2499
|
+
[Da]: "No network connectivity. Check your internet connection.",
|
|
2500
|
+
[Oa]: "User cancelled the flow.",
|
|
2501
|
+
[Pa]: "A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",
|
|
2502
|
+
[Ma]: "This method has not been implemented",
|
|
2503
|
+
[Aa]: "The nested app auth bridge is disabled"
|
|
2494
2504
|
};
|
|
2495
|
-
class
|
|
2505
|
+
class bt extends dt {
|
|
2496
2506
|
constructor(e, t) {
|
|
2497
|
-
super(e, t ? `${
|
|
2507
|
+
super(e, t ? `${Yt[e]}: ${t}` : Yt[e]), this.name = "ClientAuthError", Object.setPrototypeOf(this, bt.prototype);
|
|
2498
2508
|
}
|
|
2499
2509
|
}
|
|
2500
|
-
function
|
|
2501
|
-
return new
|
|
2510
|
+
function it(n, e) {
|
|
2511
|
+
return new bt(n, e);
|
|
2502
2512
|
}
|
|
2503
2513
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2504
2514
|
function Lt(n, e) {
|
|
2505
2515
|
if (!n)
|
|
2506
|
-
throw
|
|
2516
|
+
throw it(nr);
|
|
2507
2517
|
try {
|
|
2508
2518
|
const t = e(n);
|
|
2509
2519
|
return JSON.parse(t);
|
|
2510
2520
|
} catch {
|
|
2511
|
-
throw
|
|
2521
|
+
throw it(tr);
|
|
2512
2522
|
}
|
|
2513
2523
|
}
|
|
2514
2524
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2515
|
-
function
|
|
2525
|
+
function Fa(n, e) {
|
|
2516
2526
|
return !!n && !!e && n === e.split(".")[1];
|
|
2517
2527
|
}
|
|
2518
|
-
function
|
|
2528
|
+
function Wa(n, e) {
|
|
2519
2529
|
const { oid: t, sub: r, tid: s, name: a, tfp: i, acr: l } = e, c = s || i || l || "";
|
|
2520
2530
|
return {
|
|
2521
2531
|
tenantId: c,
|
|
2522
2532
|
localAccountId: t || r || "",
|
|
2523
2533
|
name: a,
|
|
2524
|
-
isHomeTenant:
|
|
2534
|
+
isHomeTenant: Fa(c, n)
|
|
2525
2535
|
};
|
|
2526
2536
|
}
|
|
2527
2537
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
@@ -2532,11 +2542,11 @@ const nt = {
|
|
|
2532
2542
|
Ciam: 3
|
|
2533
2543
|
};
|
|
2534
2544
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2535
|
-
function
|
|
2545
|
+
function Ra(n) {
|
|
2536
2546
|
return n && (n.tid || n.tfp || n.acr) || null;
|
|
2537
2547
|
}
|
|
2538
2548
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2539
|
-
const
|
|
2549
|
+
const Ya = {
|
|
2540
2550
|
AAD: "AAD",
|
|
2541
2551
|
OIDC: "OIDC"
|
|
2542
2552
|
};
|
|
@@ -2546,7 +2556,7 @@ class Se {
|
|
|
2546
2556
|
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
2547
2557
|
*/
|
|
2548
2558
|
generateAccountId() {
|
|
2549
|
-
return [this.homeAccountId, this.environment].join(
|
|
2559
|
+
return [this.homeAccountId, this.environment].join(Ct.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
2550
2560
|
}
|
|
2551
2561
|
/**
|
|
2552
2562
|
* Generate Account Cache Key as per the schema: <home_account_id>-<environment>-<realm*>
|
|
@@ -2593,7 +2603,7 @@ class Se {
|
|
|
2593
2603
|
e.homeAccountId,
|
|
2594
2604
|
e.environment || "",
|
|
2595
2605
|
t || e.tenantId || ""
|
|
2596
|
-
].join(
|
|
2606
|
+
].join(Ct.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
2597
2607
|
}
|
|
2598
2608
|
/**
|
|
2599
2609
|
* Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD.
|
|
@@ -2601,20 +2611,20 @@ class Se {
|
|
|
2601
2611
|
*/
|
|
2602
2612
|
static createAccount(e, t, r) {
|
|
2603
2613
|
const s = new Se();
|
|
2604
|
-
t.authorityType === nt.Adfs ? s.authorityType = Me.ADFS_ACCOUNT_TYPE : t.protocolMode ===
|
|
2614
|
+
t.authorityType === nt.Adfs ? s.authorityType = Me.ADFS_ACCOUNT_TYPE : t.protocolMode === Ya.AAD ? s.authorityType = Me.MSSTS_ACCOUNT_TYPE : s.authorityType = Me.GENERIC_ACCOUNT_TYPE;
|
|
2605
2615
|
let a;
|
|
2606
2616
|
e.clientInfo && r && (a = Lt(e.clientInfo, r)), s.clientInfo = e.clientInfo, s.homeAccountId = e.homeAccountId, s.nativeAccountId = e.nativeAccountId;
|
|
2607
2617
|
const i = e.environment || t && t.getPreferredCache();
|
|
2608
2618
|
if (!i)
|
|
2609
|
-
throw
|
|
2610
|
-
s.environment = i, s.realm = (a == null ? void 0 : a.utid) ||
|
|
2619
|
+
throw it(rr);
|
|
2620
|
+
s.environment = i, s.realm = (a == null ? void 0 : a.utid) || Ra(e.idTokenClaims) || "", s.localAccountId = (a == null ? void 0 : a.uid) || e.idTokenClaims.oid || e.idTokenClaims.sub || "";
|
|
2611
2621
|
const l = e.idTokenClaims.preferred_username || e.idTokenClaims.upn, c = e.idTokenClaims.emails ? e.idTokenClaims.emails[0] : null;
|
|
2612
2622
|
if (s.username = l || c || "", s.name = e.idTokenClaims.name, s.cloudGraphHostName = e.cloudGraphHostName, s.msGraphHost = e.msGraphHost, e.tenantProfiles)
|
|
2613
2623
|
s.tenantProfiles = e.tenantProfiles;
|
|
2614
2624
|
else {
|
|
2615
2625
|
const u = [];
|
|
2616
2626
|
if (e.idTokenClaims) {
|
|
2617
|
-
const d =
|
|
2627
|
+
const d = Wa(e.homeAccountId, e.idTokenClaims);
|
|
2618
2628
|
u.push(d);
|
|
2619
2629
|
}
|
|
2620
2630
|
s.tenantProfiles = u;
|
|
@@ -2676,18 +2686,18 @@ class Se {
|
|
|
2676
2686
|
}
|
|
2677
2687
|
}
|
|
2678
2688
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2679
|
-
class
|
|
2689
|
+
class _t extends dt {
|
|
2680
2690
|
constructor(e, t, r, s, a, i, l, c) {
|
|
2681
|
-
super(e, t, r), Object.setPrototypeOf(this,
|
|
2691
|
+
super(e, t, r), Object.setPrototypeOf(this, _t.prototype), this.timestamp = s || Ae.EMPTY_STRING, this.traceId = a || Ae.EMPTY_STRING, this.correlationId = i || Ae.EMPTY_STRING, this.claims = l || Ae.EMPTY_STRING, this.name = "InteractionRequiredAuthError", this.errorNo = c;
|
|
2682
2692
|
}
|
|
2683
2693
|
}
|
|
2684
2694
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2685
2695
|
function qt(n, e) {
|
|
2686
|
-
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? n.getActiveAccount() :
|
|
2696
|
+
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? n.getActiveAccount() : Dr(n.getAllAccounts(), e);
|
|
2687
2697
|
}
|
|
2688
|
-
function
|
|
2689
|
-
const { instance: e, inProgress: t, logger: r } =
|
|
2690
|
-
return
|
|
2698
|
+
function La(n) {
|
|
2699
|
+
const { instance: e, inProgress: t, logger: r } = ht(), [s, a] = P(() => qt(e, n));
|
|
2700
|
+
return O(() => {
|
|
2691
2701
|
a((i) => {
|
|
2692
2702
|
const l = qt(e, n);
|
|
2693
2703
|
return Se.accountInfoIsEqual(i, l, !0) ? i : (r.info("useAccount - Updating account"), l);
|
|
@@ -2705,7 +2715,7 @@ const Re = {
|
|
|
2705
2715
|
desc: "Interaction is required but another interaction is already in progress. Please try again when the current interaction is complete."
|
|
2706
2716
|
}
|
|
2707
2717
|
};
|
|
2708
|
-
class je extends
|
|
2718
|
+
class je extends dt {
|
|
2709
2719
|
constructor(e, t) {
|
|
2710
2720
|
super(e, t), Object.setPrototypeOf(this, je.prototype), this.name = "ReactAuthError";
|
|
2711
2721
|
}
|
|
@@ -2717,17 +2727,17 @@ class je extends ut {
|
|
|
2717
2727
|
}
|
|
2718
2728
|
}
|
|
2719
2729
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2720
|
-
function
|
|
2721
|
-
const { instance: r, inProgress: s, logger: a } =
|
|
2722
|
-
|
|
2730
|
+
function qa(n, e, t) {
|
|
2731
|
+
const { instance: r, inProgress: s, logger: a } = ht(), i = Zt(t), l = La(t), [[c, u], d] = P([null, null]), h = q(!0);
|
|
2732
|
+
O(() => () => {
|
|
2723
2733
|
h.current = !1;
|
|
2724
2734
|
}, []);
|
|
2725
|
-
const
|
|
2726
|
-
|
|
2727
|
-
|
|
2735
|
+
const f = q(s !== $e.None);
|
|
2736
|
+
O(() => {
|
|
2737
|
+
f.current = s !== $e.None;
|
|
2728
2738
|
}, [s]);
|
|
2729
|
-
const g =
|
|
2730
|
-
|
|
2739
|
+
const g = q(!0);
|
|
2740
|
+
O(() => {
|
|
2731
2741
|
if (u) {
|
|
2732
2742
|
g.current = !1;
|
|
2733
2743
|
return;
|
|
@@ -2737,37 +2747,37 @@ function Ra(n, e, t) {
|
|
|
2737
2747
|
return;
|
|
2738
2748
|
}
|
|
2739
2749
|
}, [u, c]);
|
|
2740
|
-
const
|
|
2741
|
-
const
|
|
2742
|
-
switch (
|
|
2743
|
-
case
|
|
2744
|
-
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(
|
|
2745
|
-
case
|
|
2746
|
-
return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(
|
|
2747
|
-
case
|
|
2748
|
-
return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(
|
|
2750
|
+
const b = S(async (p, _) => {
|
|
2751
|
+
const k = p || n, m = _ || e;
|
|
2752
|
+
switch (k) {
|
|
2753
|
+
case Le.Popup:
|
|
2754
|
+
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(m);
|
|
2755
|
+
case Le.Redirect:
|
|
2756
|
+
return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(m).then(null);
|
|
2757
|
+
case Le.Silent:
|
|
2758
|
+
return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(m);
|
|
2749
2759
|
default:
|
|
2750
2760
|
throw je.createInvalidInteractionTypeError();
|
|
2751
2761
|
}
|
|
2752
|
-
}, [r, n, e, a]),
|
|
2753
|
-
const
|
|
2754
|
-
let
|
|
2755
|
-
return
|
|
2756
|
-
...
|
|
2757
|
-
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"),
|
|
2762
|
+
}, [r, n, e, a]), w = S(async (p, _) => {
|
|
2763
|
+
const k = p || n;
|
|
2764
|
+
let m;
|
|
2765
|
+
return _ ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), m = {
|
|
2766
|
+
..._
|
|
2767
|
+
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"), m = {
|
|
2758
2768
|
...e,
|
|
2759
|
-
scopes: e.scopes ||
|
|
2760
|
-
}) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."),
|
|
2761
|
-
scopes:
|
|
2762
|
-
}), !
|
|
2763
|
-
if (
|
|
2764
|
-
if (
|
|
2769
|
+
scopes: e.scopes || It
|
|
2770
|
+
}) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."), m = {
|
|
2771
|
+
scopes: It
|
|
2772
|
+
}), !m.account && l && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), m.account = l), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), r.acquireTokenSilent(m).catch(async (j) => {
|
|
2773
|
+
if (j instanceof _t) {
|
|
2774
|
+
if (f.current)
|
|
2765
2775
|
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), je.createUnableToFallbackToInteractionError();
|
|
2766
|
-
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"),
|
|
2776
|
+
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), b(k, m);
|
|
2767
2777
|
}
|
|
2768
|
-
throw
|
|
2769
|
-
})))().then((
|
|
2770
|
-
throw h.current && d([null,
|
|
2778
|
+
throw j;
|
|
2779
|
+
})))().then((j) => (h.current && d([j, null]), j)).catch((j) => {
|
|
2780
|
+
throw h.current && d([null, j]), j;
|
|
2771
2781
|
});
|
|
2772
2782
|
}, [
|
|
2773
2783
|
r,
|
|
@@ -2775,67 +2785,67 @@ function Ra(n, e, t) {
|
|
|
2775
2785
|
e,
|
|
2776
2786
|
a,
|
|
2777
2787
|
l,
|
|
2778
|
-
|
|
2788
|
+
b
|
|
2779
2789
|
]);
|
|
2780
|
-
return
|
|
2781
|
-
const
|
|
2782
|
-
switch (
|
|
2790
|
+
return O(() => {
|
|
2791
|
+
const p = r.addEventCallback((_) => {
|
|
2792
|
+
switch (_.eventType) {
|
|
2783
2793
|
case Fe.LOGIN_SUCCESS:
|
|
2784
2794
|
case Fe.SSO_SILENT_SUCCESS:
|
|
2785
|
-
|
|
2786
|
-
|
|
2795
|
+
_.payload && d([
|
|
2796
|
+
_.payload,
|
|
2787
2797
|
null
|
|
2788
2798
|
]);
|
|
2789
2799
|
break;
|
|
2790
2800
|
case Fe.LOGIN_FAILURE:
|
|
2791
2801
|
case Fe.SSO_SILENT_FAILURE:
|
|
2792
|
-
|
|
2802
|
+
_.error && d([null, _.error]);
|
|
2793
2803
|
break;
|
|
2794
2804
|
}
|
|
2795
2805
|
});
|
|
2796
|
-
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${
|
|
2797
|
-
|
|
2806
|
+
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${p}`), () => {
|
|
2807
|
+
p && (a.verbose(`useMsalAuthentication - Removing event callback ${p}`), r.removeEventCallback(p));
|
|
2798
2808
|
};
|
|
2799
|
-
}, [r, a]),
|
|
2800
|
-
g.current && s ===
|
|
2801
|
-
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"),
|
|
2809
|
+
}, [r, a]), O(() => {
|
|
2810
|
+
g.current && s === $e.None && (g.current = !1, i ? l && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), w().catch(() => {
|
|
2811
|
+
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"), b().catch(() => {
|
|
2802
2812
|
})));
|
|
2803
|
-
}, [i, l, s,
|
|
2804
|
-
login:
|
|
2805
|
-
acquireToken:
|
|
2813
|
+
}, [i, l, s, b, w, a]), {
|
|
2814
|
+
login: b,
|
|
2815
|
+
acquireToken: w,
|
|
2806
2816
|
result: c,
|
|
2807
2817
|
error: u
|
|
2808
2818
|
};
|
|
2809
2819
|
}
|
|
2810
2820
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2811
|
-
function
|
|
2812
|
-
const c =
|
|
2821
|
+
function Ha({ interactionType: n, username: e, homeAccountId: t, localAccountId: r, authenticationRequest: s, loadingComponent: a, errorComponent: i, children: l }) {
|
|
2822
|
+
const c = K(() => ({
|
|
2813
2823
|
username: e,
|
|
2814
2824
|
homeAccountId: t,
|
|
2815
2825
|
localAccountId: r
|
|
2816
|
-
}), [e, t, r]), u =
|
|
2817
|
-
if (d.error && u.inProgress ===
|
|
2826
|
+
}), [e, t, r]), u = ht(), d = qa(n, s, c), h = Zt(c);
|
|
2827
|
+
if (d.error && u.inProgress === $e.None) {
|
|
2818
2828
|
if (i)
|
|
2819
|
-
return
|
|
2829
|
+
return ne.createElement(i, { ...d });
|
|
2820
2830
|
throw d.error;
|
|
2821
2831
|
}
|
|
2822
|
-
return h ?
|
|
2832
|
+
return h ? ne.createElement(ne.Fragment, null, Or(l, d)) : a && u.inProgress !== $e.None ? ne.createElement(a, { ...u }) : null;
|
|
2823
2833
|
}
|
|
2824
|
-
const
|
|
2825
|
-
const { formSubmitTexts: t } =
|
|
2826
|
-
return /* @__PURE__ */ o.jsxs(
|
|
2827
|
-
/* @__PURE__ */ o.jsxs(
|
|
2828
|
-
/* @__PURE__ */ o.jsx(
|
|
2834
|
+
const Ba = ({ children: n, onStorno: e }) => {
|
|
2835
|
+
const { formSubmitTexts: t } = Y(ae);
|
|
2836
|
+
return /* @__PURE__ */ o.jsxs(Mc, { children: [
|
|
2837
|
+
/* @__PURE__ */ o.jsxs(St, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
2838
|
+
/* @__PURE__ */ o.jsx(Pr, {}),
|
|
2829
2839
|
n
|
|
2830
2840
|
] }),
|
|
2831
|
-
e && /* @__PURE__ */ o.jsxs(
|
|
2832
|
-
/* @__PURE__ */ o.jsx(
|
|
2841
|
+
e && /* @__PURE__ */ o.jsxs(St, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: e, children: [
|
|
2842
|
+
/* @__PURE__ */ o.jsx(Mr, {}),
|
|
2833
2843
|
t.storno
|
|
2834
2844
|
] })
|
|
2835
2845
|
] });
|
|
2836
|
-
},
|
|
2837
|
-
button:
|
|
2838
|
-
},
|
|
2846
|
+
}, Va = "_button_1r3i0_1", ct = {
|
|
2847
|
+
button: Va
|
|
2848
|
+
}, lt = ({
|
|
2839
2849
|
color: n = "primary",
|
|
2840
2850
|
// icon = <MdOutlineArrowOutward size={10} />,
|
|
2841
2851
|
icon: e,
|
|
@@ -2843,112 +2853,135 @@ const qa = ({ children: n, onStorno: e }) => {
|
|
|
2843
2853
|
children: r,
|
|
2844
2854
|
...s
|
|
2845
2855
|
}) => {
|
|
2846
|
-
const { LinkComponent: a } =
|
|
2847
|
-
return s.as === "link" ? /* @__PURE__ */ o.jsxs(a, { to: s.href ?? "/", className:
|
|
2856
|
+
const { LinkComponent: a } = Y(ae);
|
|
2857
|
+
return s.as === "link" ? /* @__PURE__ */ o.jsxs(a, { to: s.href ?? "/", className: x(`luminus-context-button btn text-${n} ${t ?? ""}`, ct.button), ...s, children: [
|
|
2848
2858
|
e,
|
|
2849
2859
|
r
|
|
2850
|
-
] }) : s.as === "button" || s.as === void 0 ? /* @__PURE__ */ o.jsxs("button", { type: "button", className:
|
|
2860
|
+
] }) : s.as === "button" || s.as === void 0 ? /* @__PURE__ */ o.jsxs("button", { type: "button", className: x(`luminus-context-button btn text-${n} ${t ?? ""}`, ct.button), ...s, children: [
|
|
2851
2861
|
e,
|
|
2852
2862
|
r
|
|
2853
2863
|
] }) : null;
|
|
2854
|
-
},
|
|
2864
|
+
}, sr = ({ color: n = "primary", icon: e = /* @__PURE__ */ o.jsx(en, { size: 12 }), inputId: t = "context-file-input", accept: r = "*", onUpload: s, className: a, children: i, multiple: l, ...c }) => {
|
|
2855
2865
|
const u = (d) => {
|
|
2856
2866
|
d.target.files && (s(d.target.files), d.target.value = "");
|
|
2857
2867
|
};
|
|
2858
2868
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2859
|
-
/* @__PURE__ */ o.jsxs("label", { htmlFor: t, className:
|
|
2869
|
+
/* @__PURE__ */ o.jsxs("label", { htmlFor: t, className: x(`luminus-context-button btn text-${n} ${a ?? ""}`, ct.button), ...c, children: [
|
|
2860
2870
|
e,
|
|
2861
2871
|
i
|
|
2862
2872
|
] }),
|
|
2863
2873
|
/* @__PURE__ */ o.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: l })
|
|
2864
2874
|
] });
|
|
2865
|
-
},
|
|
2875
|
+
}, Ga = "_icon-button_15e26_1", za = "_sm_15e26_14", Ua = "_md_15e26_23", Ka = "_lg_15e26_32", Ye = {
|
|
2866
2876
|
"icon-button": "_icon-button_15e26_1",
|
|
2867
|
-
iconButton:
|
|
2868
|
-
sm:
|
|
2869
|
-
md:
|
|
2870
|
-
lg:
|
|
2871
|
-
},
|
|
2872
|
-
const { LinkComponent: i } =
|
|
2873
|
-
return a.as === "link" ? /* @__PURE__ */ o.jsx(i, { to: a.href ?? "/", className:
|
|
2877
|
+
iconButton: Ga,
|
|
2878
|
+
sm: za,
|
|
2879
|
+
md: Ua,
|
|
2880
|
+
lg: Ka
|
|
2881
|
+
}, z = ({ type: n = "button", color: e = "primary", size: t = "md", children: r, className: s, ...a }) => {
|
|
2882
|
+
const { LinkComponent: i } = Y(ae);
|
|
2883
|
+
return a.as === "link" ? /* @__PURE__ */ o.jsx(i, { to: a.href ?? "/", className: x(`luminus-icon-button btn text-${e} ${s ?? ""}`, Ye.iconButton, Ye[t]), ...a, children: r }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ o.jsx(
|
|
2874
2884
|
"button",
|
|
2875
2885
|
{
|
|
2876
2886
|
type: n,
|
|
2877
|
-
className:
|
|
2887
|
+
className: x(`luminus-icon-button btn text-${e} ${s ?? ""}`, Ye.iconButton, Ye[t]),
|
|
2878
2888
|
...a,
|
|
2879
2889
|
children: r
|
|
2880
2890
|
}
|
|
2881
2891
|
) : null;
|
|
2882
|
-
},
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2892
|
+
}, Qa = "_select_dlv1t_1", rt = {
|
|
2893
|
+
select: Qa
|
|
2894
|
+
}, nl = ({ month: n, onChangeMonth: e, locale: t, yearMin: r = 2e3, yearMax: s = 2050 }) => {
|
|
2895
|
+
const a = S((c) => {
|
|
2896
|
+
const u = pn(n, c);
|
|
2897
|
+
u.getFullYear() < r || u.getFullYear() > s || e(u);
|
|
2898
|
+
}, [n, e, r, s]), i = K(() => {
|
|
2899
|
+
const c = [];
|
|
2900
|
+
for (let u = r; u <= s; u++)
|
|
2901
|
+
c.push(u);
|
|
2902
|
+
return c;
|
|
2903
|
+
}, [r, s]), l = K(() => {
|
|
2904
|
+
const d = [];
|
|
2905
|
+
for (let h = 0; h <= 11; h++)
|
|
2906
|
+
d.push({
|
|
2907
|
+
id: h,
|
|
2908
|
+
name: ot(new Date(2024, h, 1), "LLLL", { locale: t })
|
|
2909
|
+
});
|
|
2910
|
+
return d;
|
|
2911
|
+
}, [t]);
|
|
2886
2912
|
return /* @__PURE__ */ o.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2887
|
-
/* @__PURE__ */ o.jsx(
|
|
2888
|
-
/* @__PURE__ */ o.jsx(
|
|
2889
|
-
|
|
2913
|
+
/* @__PURE__ */ o.jsx(z, { onClick: () => a(-1), disabled: n.getFullYear() < r || n.getFullYear() === r && n.getMonth() <= 0, children: /* @__PURE__ */ o.jsx(mt, {}) }),
|
|
2914
|
+
/* @__PURE__ */ o.jsx(Q.Select, { value: n.getMonth(), onChange: (c) => {
|
|
2915
|
+
var u;
|
|
2916
|
+
return ((u = c.target) == null ? void 0 : u.value) && e(mo(n, Number(c.target.value)));
|
|
2917
|
+
}, className: x(rt.select, rt.month), children: l.map((c) => /* @__PURE__ */ o.jsx("option", { value: c.id, children: c.name }, c.id)) }),
|
|
2918
|
+
/* @__PURE__ */ o.jsx(Q.Select, { value: n.getFullYear(), onChange: (c) => {
|
|
2919
|
+
var u;
|
|
2920
|
+
return ((u = c.target) == null ? void 0 : u.value) && e(vn(n, Number(c.target.value)));
|
|
2921
|
+
}, className: x(rt.select), children: i.map((c) => /* @__PURE__ */ o.jsx("option", { value: c, children: c }, c)) }),
|
|
2922
|
+
/* @__PURE__ */ o.jsx(z, { onClick: () => a(1), disabled: n.getFullYear() > s || n.getFullYear() === s && n.getMonth() >= 11, children: /* @__PURE__ */ o.jsx(ft, {}) })
|
|
2890
2923
|
] });
|
|
2891
|
-
},
|
|
2892
|
-
select:
|
|
2893
|
-
},
|
|
2894
|
-
const a =
|
|
2924
|
+
}, Xa = "_select_pywmr_1", Ja = {
|
|
2925
|
+
select: Xa
|
|
2926
|
+
}, rl = ({ year: n, onChangeYear: e, optionMin: t = 2e3, optionMax: r = 2050, className: s }) => {
|
|
2927
|
+
const a = S((l) => {
|
|
2895
2928
|
const c = n.getFullYear() + l;
|
|
2896
|
-
c < t || c > r || e(
|
|
2897
|
-
}, [n, e, r, t]), i =
|
|
2929
|
+
c < t || c > r || e(cs(n, l));
|
|
2930
|
+
}, [n, e, r, t]), i = K(() => {
|
|
2898
2931
|
const l = [];
|
|
2899
2932
|
for (let c = t; c <= r; c++)
|
|
2900
2933
|
l.push(c);
|
|
2901
2934
|
return l;
|
|
2902
2935
|
}, [t, r]);
|
|
2903
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
2904
|
-
/* @__PURE__ */ o.jsx(
|
|
2905
|
-
/* @__PURE__ */ o.jsx(
|
|
2936
|
+
return /* @__PURE__ */ o.jsxs("div", { className: x("card d-flex flex-row align-items-center m-0 p-1 gap-2", s ?? ""), children: [
|
|
2937
|
+
/* @__PURE__ */ o.jsx(z, { onClick: () => a(-1), disabled: n.getFullYear() <= t, children: /* @__PURE__ */ o.jsx(mt, {}) }),
|
|
2938
|
+
/* @__PURE__ */ o.jsx(Q.Select, { value: n.getFullYear(), onChange: (l) => {
|
|
2906
2939
|
var c;
|
|
2907
|
-
return ((c = l.target) == null ? void 0 : c.value) && e(
|
|
2908
|
-
}, className:
|
|
2909
|
-
/* @__PURE__ */ o.jsx(
|
|
2940
|
+
return ((c = l.target) == null ? void 0 : c.value) && e(vn(n, Number(l.target.value)));
|
|
2941
|
+
}, className: Ja.select, children: i.map((l) => /* @__PURE__ */ o.jsx("option", { value: l, children: l }, l)) }),
|
|
2942
|
+
/* @__PURE__ */ o.jsx(z, { onClick: () => a(1), disabled: n.getFullYear() >= r, children: /* @__PURE__ */ o.jsx(ft, {}) })
|
|
2910
2943
|
] });
|
|
2911
|
-
},
|
|
2912
|
-
widget:
|
|
2913
|
-
},
|
|
2944
|
+
}, Za = "_widget_etgh3_1", ei = {
|
|
2945
|
+
widget: Za
|
|
2946
|
+
}, ti = ({ show: n, widgets: e, handleClose: t, onWidgetPicked: r, texts: s }) => /* @__PURE__ */ o.jsxs(We, { show: n, onHide: () => t(), children: [
|
|
2914
2947
|
/* @__PURE__ */ o.jsx(We.Header, { closeButton: !0, children: /* @__PURE__ */ o.jsx(We.Title, { children: s.pickWidgetToAdd }) }),
|
|
2915
|
-
/* @__PURE__ */ o.jsx(We.Body, { children: /* @__PURE__ */ o.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ o.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ o.jsx(
|
|
2916
|
-
] }),
|
|
2917
|
-
const [r, s] =
|
|
2948
|
+
/* @__PURE__ */ o.jsx(We.Body, { children: /* @__PURE__ */ o.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ o.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ o.jsx(G, { variant: "body", children: a.name }) })) }) })
|
|
2949
|
+
] }), Ht = ({ availableWidgets: n, onAdd: e, texts: t }) => {
|
|
2950
|
+
const [r, s] = P(!1);
|
|
2918
2951
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2919
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
2920
|
-
/* @__PURE__ */ o.jsx(
|
|
2952
|
+
/* @__PURE__ */ o.jsx("div", { className: x("luminus-empty-widget", ei.widget), children: /* @__PURE__ */ o.jsx(z, { onClick: () => s(!0), children: /* @__PURE__ */ o.jsx(Ar, {}) }) }),
|
|
2953
|
+
/* @__PURE__ */ o.jsx(ti, { show: r, widgets: n, handleClose: () => s(!1), onWidgetPicked: (a) => {
|
|
2921
2954
|
s(!1), e(a);
|
|
2922
2955
|
}, texts: t })
|
|
2923
2956
|
] });
|
|
2924
|
-
},
|
|
2925
|
-
const [e, t] =
|
|
2926
|
-
|
|
2957
|
+
}, ni = (n) => {
|
|
2958
|
+
const [e, t] = P({ widgets: [] });
|
|
2959
|
+
O(() => {
|
|
2927
2960
|
const s = localStorage.getItem("dashboardConfig");
|
|
2928
2961
|
s ? t(JSON.parse(s)) : n && t(n);
|
|
2929
2962
|
}, [n]);
|
|
2930
|
-
const r =
|
|
2963
|
+
const r = S((s) => {
|
|
2931
2964
|
t(s), localStorage.setItem("dashboardConfig", JSON.stringify(s));
|
|
2932
2965
|
}, []);
|
|
2933
2966
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
2934
|
-
},
|
|
2935
|
-
dashboard:
|
|
2967
|
+
}, ri = "_dashboard_16plm_1", si = "_widgets-grid_16plm_1", oi = "_widget-wrapper_16plm_8", ai = "_full-width_16plm_13", ii = "_widget-edit_16plm_16", ci = "_remove-icon_16plm_19", li = "_full-width-icon_16plm_26", ui = "_widget-edit-overlay_16plm_36", ie = {
|
|
2968
|
+
dashboard: ri,
|
|
2936
2969
|
"widgets-grid": "_widgets-grid_16plm_1",
|
|
2937
|
-
widgetsGrid:
|
|
2970
|
+
widgetsGrid: si,
|
|
2938
2971
|
"widget-wrapper": "_widget-wrapper_16plm_8",
|
|
2939
|
-
widgetWrapper:
|
|
2972
|
+
widgetWrapper: oi,
|
|
2940
2973
|
"full-width": "_full-width_16plm_13",
|
|
2941
|
-
fullWidth:
|
|
2974
|
+
fullWidth: ai,
|
|
2942
2975
|
"widget-edit": "_widget-edit_16plm_16",
|
|
2943
|
-
widgetEdit:
|
|
2976
|
+
widgetEdit: ii,
|
|
2944
2977
|
"remove-icon": "_remove-icon_16plm_19",
|
|
2945
|
-
removeIcon:
|
|
2978
|
+
removeIcon: ci,
|
|
2946
2979
|
"full-width-icon": "_full-width-icon_16plm_26",
|
|
2947
|
-
fullWidthIcon:
|
|
2980
|
+
fullWidthIcon: li,
|
|
2948
2981
|
"widget-edit-overlay": "_widget-edit-overlay_16plm_36",
|
|
2949
|
-
widgetEditOverlay:
|
|
2982
|
+
widgetEditOverlay: ui
|
|
2950
2983
|
};
|
|
2951
|
-
class
|
|
2984
|
+
class di extends zr {
|
|
2952
2985
|
constructor(e) {
|
|
2953
2986
|
super(e), this.state = { hasError: !1 }, this.reload = this.reload.bind(this);
|
|
2954
2987
|
}
|
|
@@ -2956,6 +2989,9 @@ class ii extends Vr {
|
|
|
2956
2989
|
static getDerivedStateFromError(e) {
|
|
2957
2990
|
return { hasError: !0 };
|
|
2958
2991
|
}
|
|
2992
|
+
componentDidUpdate(e) {
|
|
2993
|
+
e.children !== this.props.children && this.setState({ hasError: !1 });
|
|
2994
|
+
}
|
|
2959
2995
|
componentDidCatch(e, t) {
|
|
2960
2996
|
console.error("Error:", e, t);
|
|
2961
2997
|
}
|
|
@@ -2964,59 +3000,59 @@ class ii extends Vr {
|
|
|
2964
3000
|
}
|
|
2965
3001
|
render() {
|
|
2966
3002
|
const { fallback: e, children: t, texts: r, reloadButtonDisplay: s = "append-after-child" } = this.props;
|
|
2967
|
-
return this.state.hasError ? s === "inject-to-child" &&
|
|
3003
|
+
return this.state.hasError ? s === "inject-to-child" && Ur(e) ? ne.cloneElement(e, {
|
|
2968
3004
|
...e.props
|
|
2969
3005
|
}, /* @__PURE__ */ o.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
2970
3006
|
...e.props.children,
|
|
2971
|
-
/* @__PURE__ */ o.jsx(
|
|
3007
|
+
/* @__PURE__ */ o.jsx(lt, { type: "button", onClick: this.reload, children: r.reloadButtonContent })
|
|
2972
3008
|
] })) : /* @__PURE__ */ o.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
2973
3009
|
e,
|
|
2974
|
-
s === "none" ? null : /* @__PURE__ */ o.jsx(
|
|
3010
|
+
s === "none" ? null : /* @__PURE__ */ o.jsx(lt, { type: "button", onClick: this.reload, children: r.reloadButtonContent })
|
|
2975
3011
|
] }) : t;
|
|
2976
3012
|
}
|
|
2977
3013
|
}
|
|
2978
|
-
const
|
|
2979
|
-
const { errorBoundaryTexts: r } =
|
|
3014
|
+
const hi = (n) => (t) => {
|
|
3015
|
+
const { errorBoundaryTexts: r } = Y(ae);
|
|
2980
3016
|
return /* @__PURE__ */ o.jsx(n, { texts: r, ...t });
|
|
2981
|
-
},
|
|
3017
|
+
}, mi = hi(di), fi = "_widget-card_e9tsb_1", pi = {
|
|
2982
3018
|
"widget-card": "_widget-card_e9tsb_1",
|
|
2983
|
-
widgetCard:
|
|
2984
|
-
},
|
|
2985
|
-
const { widgetTexts: t } =
|
|
2986
|
-
return /* @__PURE__ */ o.jsx(
|
|
2987
|
-
},
|
|
3019
|
+
widgetCard: fi
|
|
3020
|
+
}, Bt = ({ children: n, title: e, headerContent: t }) => /* @__PURE__ */ o.jsx(vc, { className: x(pi.widgetCard, "luminus-widget"), title: e, headerContent: t, contentClassName: "h-100 overflow-auto", children: n }), gi = ({ children: n, title: e }) => {
|
|
3021
|
+
const { widgetTexts: t } = Y(ae);
|
|
3022
|
+
return /* @__PURE__ */ o.jsx(mi, { fallback: /* @__PURE__ */ o.jsx(Bt, { title: e, children: t.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ o.jsx(Kr, { fallback: /* @__PURE__ */ o.jsx(Bt, { title: e, children: /* @__PURE__ */ o.jsx(ss, {}) }), children: n }) });
|
|
3023
|
+
}, sl = ({ availableWidgets: n, editMode: e, defaultDashboardConfig: t }) => {
|
|
2988
3024
|
var d;
|
|
2989
|
-
const { homeDashboardTexts: r } =
|
|
2990
|
-
var g,
|
|
3025
|
+
const { homeDashboardTexts: r } = Y(ae), { dashboardConfig: s, onChangeDashboardConfig: a } = ni(t), i = S((h, f) => {
|
|
3026
|
+
var g, b;
|
|
2991
3027
|
h === ((g = s.widgets) == null ? void 0 : g.length) ? a({
|
|
2992
3028
|
...s,
|
|
2993
|
-
widgets: [...s.widgets, { widgetId:
|
|
3029
|
+
widgets: [...s.widgets, { widgetId: f, fullWidth: !1 }]
|
|
2994
3030
|
}) : a({
|
|
2995
3031
|
...s,
|
|
2996
|
-
widgets: ((
|
|
3032
|
+
widgets: ((b = s.widgets) == null ? void 0 : b.map((w, p) => p === h ? { widgetId: f, fullWidth: !1 } : w)) ?? []
|
|
2997
3033
|
});
|
|
2998
|
-
}, [s, a]), l =
|
|
2999
|
-
var
|
|
3000
|
-
((
|
|
3034
|
+
}, [s, a]), l = S((h) => {
|
|
3035
|
+
var f, g;
|
|
3036
|
+
((f = s.widgets[h]) == null ? void 0 : f.widgetId) === -1 ? a({
|
|
3001
3037
|
...s,
|
|
3002
|
-
widgets: ((g = s.widgets) == null ? void 0 : g.filter((
|
|
3038
|
+
widgets: ((g = s.widgets) == null ? void 0 : g.filter((b, w) => w !== h)) ?? []
|
|
3003
3039
|
}) : i(h, -1);
|
|
3004
|
-
}, [s, a, i]), c =
|
|
3005
|
-
var
|
|
3040
|
+
}, [s, a, i]), c = S((h) => {
|
|
3041
|
+
var f;
|
|
3006
3042
|
a({
|
|
3007
3043
|
...s,
|
|
3008
|
-
widgets: ((
|
|
3044
|
+
widgets: ((f = s.widgets) == null ? void 0 : f.map((g, b) => b === h ? { ...g, fullWidth: !g.fullWidth } : g)) ?? []
|
|
3009
3045
|
});
|
|
3010
|
-
}, [s, a]), u =
|
|
3046
|
+
}, [s, a]), u = S((h, f, g) => h ? /* @__PURE__ */ o.jsxs("div", { className: x(ie.widgetWrapper, {
|
|
3011
3047
|
[ie.widgetEdit]: e && h.id !== -1
|
|
3012
3048
|
}, { [ie.fullWidth]: g }), children: [
|
|
3013
3049
|
e && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3014
|
-
/* @__PURE__ */ o.jsx(
|
|
3015
|
-
/* @__PURE__ */ o.jsx(
|
|
3050
|
+
/* @__PURE__ */ o.jsx(z, { color: "danger", onClick: () => l(f), className: x(ie.removeIcon), children: /* @__PURE__ */ o.jsx(tn, {}) }),
|
|
3051
|
+
/* @__PURE__ */ o.jsx(z, { color: g ? "danger" : "primary", onClick: () => c(f), className: x(ie.fullWidthIcon), children: /* @__PURE__ */ o.jsx(Fr, {}) })
|
|
3016
3052
|
] }),
|
|
3017
|
-
h.id === -1 ? e && /* @__PURE__ */ o.jsx("div", { className: ie.widgetWrapper, children: /* @__PURE__ */ o.jsx(
|
|
3053
|
+
h.id === -1 ? e && /* @__PURE__ */ o.jsx("div", { className: ie.widgetWrapper, children: /* @__PURE__ */ o.jsx(Ht, { availableWidgets: n, onAdd: (b) => i(f, b), texts: r }) }) : /* @__PURE__ */ o.jsx(gi, { title: h.title, children: /* @__PURE__ */ o.jsx(h.WidgetElement, { title: h.title }) }),
|
|
3018
3054
|
h.id > -1 && e && /* @__PURE__ */ o.jsx("div", { className: ie.widgetEditOverlay })
|
|
3019
|
-
] },
|
|
3055
|
+
] }, f) : /* @__PURE__ */ o.jsx(o.Fragment, {}), [
|
|
3020
3056
|
e,
|
|
3021
3057
|
i,
|
|
3022
3058
|
l,
|
|
@@ -3025,87 +3061,87 @@ const ci = (n) => (t) => {
|
|
|
3025
3061
|
r
|
|
3026
3062
|
]);
|
|
3027
3063
|
return /* @__PURE__ */ o.jsx("div", { className: ie.dashboard, children: /* @__PURE__ */ o.jsxs("div", { className: ie.widgetsGrid, children: [
|
|
3028
|
-
(d = s.widgets) == null ? void 0 : d.map((h,
|
|
3029
|
-
e && /* @__PURE__ */ o.jsx(
|
|
3030
|
-
var
|
|
3031
|
-
return i((
|
|
3064
|
+
(d = s.widgets) == null ? void 0 : d.map((h, f) => u(n.find((g) => g.id === h.widgetId), f, h.fullWidth)),
|
|
3065
|
+
e && /* @__PURE__ */ o.jsx(Ht, { availableWidgets: n, onAdd: (h) => {
|
|
3066
|
+
var f;
|
|
3067
|
+
return i((f = s.widgets) == null ? void 0 : f.length, h);
|
|
3032
3068
|
}, texts: r })
|
|
3033
3069
|
] }) });
|
|
3034
|
-
},
|
|
3035
|
-
badge:
|
|
3036
|
-
sm:
|
|
3037
|
-
md:
|
|
3038
|
-
lg:
|
|
3039
|
-
},
|
|
3070
|
+
}, xi = "_badge_nhser_1", wi = "_sm_nhser_1", vi = "_md_nhser_4", yi = "_lg_nhser_7", Vt = {
|
|
3071
|
+
badge: xi,
|
|
3072
|
+
sm: wi,
|
|
3073
|
+
md: vi,
|
|
3074
|
+
lg: yi
|
|
3075
|
+
}, ol = ({ children: n, color: e = "primary", size: t = "md", className: r }) => /* @__PURE__ */ o.jsx("span", { className: x(`luminus-badge badge bg-${e} ${r ?? ""}`, Vt.badge, Vt[t]), children: n }), bi = "_collapse-icon_1ahhn_1", _i = "_collapsed_1ahhn_6", Gt = {
|
|
3040
3076
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
3041
|
-
collapseIcon:
|
|
3042
|
-
collapsed:
|
|
3043
|
-
},
|
|
3044
|
-
const s = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] =
|
|
3045
|
-
return
|
|
3077
|
+
collapseIcon: bi,
|
|
3078
|
+
collapsed: _i
|
|
3079
|
+
}, al = ({ title: n, children: e, className: t, ...r }) => {
|
|
3080
|
+
const s = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = P(s), l = r.controlled ? r.isOpen : a;
|
|
3081
|
+
return O(() => {
|
|
3046
3082
|
i(s);
|
|
3047
3083
|
}, [s]), /* @__PURE__ */ o.jsxs("div", { className: t ?? "", children: [
|
|
3048
3084
|
/* @__PURE__ */ o.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: [
|
|
3049
|
-
/* @__PURE__ */ o.jsx(
|
|
3050
|
-
/* @__PURE__ */ o.jsx(
|
|
3051
|
-
[
|
|
3085
|
+
/* @__PURE__ */ o.jsx(G, { variant: "h6", children: n }),
|
|
3086
|
+
/* @__PURE__ */ o.jsx(nn, { className: x(Gt.collapseIcon, {
|
|
3087
|
+
[Gt.collapsed]: l
|
|
3052
3088
|
}) })
|
|
3053
3089
|
] }),
|
|
3054
|
-
/* @__PURE__ */ o.jsx(
|
|
3090
|
+
/* @__PURE__ */ o.jsx(yn, { in: l, children: /* @__PURE__ */ o.jsx("div", { children: e }) }),
|
|
3055
3091
|
/* @__PURE__ */ o.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
3056
3092
|
] });
|
|
3057
|
-
},
|
|
3058
|
-
feedback:
|
|
3093
|
+
}, ji = "_feedback_esh1j_1", ki = "_feedback-spacer_esh1j_8", zt = {
|
|
3094
|
+
feedback: ji,
|
|
3059
3095
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
3060
|
-
feedbackSpacer:
|
|
3096
|
+
feedbackSpacer: ki
|
|
3061
3097
|
}, pe = ({ message: n }) => /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3062
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3063
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3098
|
+
/* @__PURE__ */ o.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback", zt.feedback), children: n }),
|
|
3099
|
+
/* @__PURE__ */ o.jsx("div", { className: x("invalid-feedback-spacer", zt.feedbackSpacer), children: n })
|
|
3064
3100
|
] });
|
|
3065
|
-
function
|
|
3066
|
-
var r = this, s =
|
|
3101
|
+
function Ni(n, e, t) {
|
|
3102
|
+
var r = this, s = q(null), a = q(0), i = q(null), l = q([]), c = q(), u = q(), d = q(n), h = q(!0);
|
|
3067
3103
|
d.current = n;
|
|
3068
|
-
var
|
|
3104
|
+
var f = typeof window < "u", g = !e && e !== 0 && f;
|
|
3069
3105
|
if (typeof n != "function")
|
|
3070
3106
|
throw new TypeError("Expected a function");
|
|
3071
3107
|
e = +e || 0;
|
|
3072
|
-
var
|
|
3073
|
-
|
|
3108
|
+
var b = !!(t = t || {}).leading, w = !("trailing" in t) || !!t.trailing, p = "maxWait" in t, _ = "debounceOnServer" in t && !!t.debounceOnServer, k = p ? Math.max(+t.maxWait || 0, e) : null;
|
|
3109
|
+
O(function() {
|
|
3074
3110
|
return h.current = !0, function() {
|
|
3075
3111
|
h.current = !1;
|
|
3076
3112
|
};
|
|
3077
3113
|
}, []);
|
|
3078
|
-
var
|
|
3079
|
-
var N = function(
|
|
3080
|
-
var y = l.current,
|
|
3081
|
-
return l.current = c.current = null, a.current =
|
|
3082
|
-
},
|
|
3083
|
-
g && cancelAnimationFrame(i.current), i.current = g ? requestAnimationFrame(
|
|
3084
|
-
}, v = function(
|
|
3114
|
+
var m = K(function() {
|
|
3115
|
+
var N = function(T) {
|
|
3116
|
+
var y = l.current, C = c.current;
|
|
3117
|
+
return l.current = c.current = null, a.current = T, u.current = d.current.apply(C, y);
|
|
3118
|
+
}, j = function(T, y) {
|
|
3119
|
+
g && cancelAnimationFrame(i.current), i.current = g ? requestAnimationFrame(T) : setTimeout(T, y);
|
|
3120
|
+
}, v = function(T) {
|
|
3085
3121
|
if (!h.current)
|
|
3086
3122
|
return !1;
|
|
3087
|
-
var y =
|
|
3088
|
-
return !s.current || y >= e || y < 0 ||
|
|
3089
|
-
}, $ = function(
|
|
3090
|
-
return i.current = null,
|
|
3091
|
-
},
|
|
3123
|
+
var y = T - s.current;
|
|
3124
|
+
return !s.current || y >= e || y < 0 || p && T - a.current >= k;
|
|
3125
|
+
}, $ = function(T) {
|
|
3126
|
+
return i.current = null, w && l.current ? N(T) : (l.current = c.current = null, u.current);
|
|
3127
|
+
}, D = function T() {
|
|
3092
3128
|
var y = Date.now();
|
|
3093
3129
|
if (v(y))
|
|
3094
3130
|
return $(y);
|
|
3095
3131
|
if (h.current) {
|
|
3096
|
-
var
|
|
3097
|
-
|
|
3132
|
+
var C = e - (y - s.current), F = p ? Math.min(C, k - (y - a.current)) : C;
|
|
3133
|
+
j(T, F);
|
|
3098
3134
|
}
|
|
3099
3135
|
}, I = function() {
|
|
3100
|
-
if (
|
|
3101
|
-
var
|
|
3102
|
-
if (l.current = [].slice.call(arguments), c.current = r, s.current =
|
|
3136
|
+
if (f || _) {
|
|
3137
|
+
var T = Date.now(), y = v(T);
|
|
3138
|
+
if (l.current = [].slice.call(arguments), c.current = r, s.current = T, y) {
|
|
3103
3139
|
if (!i.current && h.current)
|
|
3104
|
-
return a.current = s.current,
|
|
3105
|
-
if (
|
|
3106
|
-
return
|
|
3140
|
+
return a.current = s.current, j(D, e), b ? N(s.current) : u.current;
|
|
3141
|
+
if (p)
|
|
3142
|
+
return j(D, e), N(s.current);
|
|
3107
3143
|
}
|
|
3108
|
-
return i.current ||
|
|
3144
|
+
return i.current || j(D, e), u.current;
|
|
3109
3145
|
}
|
|
3110
3146
|
};
|
|
3111
3147
|
return I.cancel = function() {
|
|
@@ -3115,171 +3151,171 @@ function bi(n, e, t) {
|
|
|
3115
3151
|
}, I.flush = function() {
|
|
3116
3152
|
return i.current ? $(Date.now()) : u.current;
|
|
3117
3153
|
}, I;
|
|
3118
|
-
}, [
|
|
3119
|
-
return
|
|
3154
|
+
}, [b, p, e, k, w, g, f, _]);
|
|
3155
|
+
return m;
|
|
3120
3156
|
}
|
|
3121
|
-
function
|
|
3157
|
+
function Ci(n, e) {
|
|
3122
3158
|
return n === e;
|
|
3123
3159
|
}
|
|
3124
|
-
function
|
|
3160
|
+
function Ii(n, e) {
|
|
3125
3161
|
return e;
|
|
3126
3162
|
}
|
|
3127
|
-
function
|
|
3128
|
-
var r =
|
|
3163
|
+
function or(n, e, t) {
|
|
3164
|
+
var r = Ci, s = an(Ii, n), a = s[0], i = s[1], l = Ni(S(function(u) {
|
|
3129
3165
|
return i(u);
|
|
3130
|
-
}, [i]), e, t), c =
|
|
3166
|
+
}, [i]), e, t), c = q(n);
|
|
3131
3167
|
return r(c.current, n) || (l(n), c.current = n), [a, l];
|
|
3132
3168
|
}
|
|
3133
|
-
const
|
|
3134
|
-
wrapper:
|
|
3135
|
-
open:
|
|
3136
|
-
dropdown:
|
|
3169
|
+
const $i = "_wrapper_uccrb_1", Si = "_open_uccrb_9", Ti = "_dropdown_uccrb_13", Ei = "_search-input-container_uccrb_19", Di = "_search-input_uccrb_19", Oi = "_loading-container_uccrb_25", Pi = "_items-container_uccrb_32", Mi = "_header-row_uccrb_38", Ai = "_item_uccrb_32", Fi = "_name_uccrb_57", Wi = "_column-item_uccrb_62", Ri = "_icon_uccrb_66", Yi = "_clear-button_uccrb_74", te = {
|
|
3170
|
+
wrapper: $i,
|
|
3171
|
+
open: Si,
|
|
3172
|
+
dropdown: Ti,
|
|
3137
3173
|
"search-input-container": "_search-input-container_uccrb_19",
|
|
3138
|
-
searchInputContainer:
|
|
3174
|
+
searchInputContainer: Ei,
|
|
3139
3175
|
"search-input": "_search-input_uccrb_19",
|
|
3140
|
-
searchInput:
|
|
3176
|
+
searchInput: Di,
|
|
3141
3177
|
"loading-container": "_loading-container_uccrb_25",
|
|
3142
|
-
loadingContainer:
|
|
3178
|
+
loadingContainer: Oi,
|
|
3143
3179
|
"items-container": "_items-container_uccrb_32",
|
|
3144
|
-
itemsContainer:
|
|
3180
|
+
itemsContainer: Pi,
|
|
3145
3181
|
"header-row": "_header-row_uccrb_38",
|
|
3146
|
-
headerRow:
|
|
3147
|
-
item:
|
|
3148
|
-
name:
|
|
3182
|
+
headerRow: Mi,
|
|
3183
|
+
item: Ai,
|
|
3184
|
+
name: Fi,
|
|
3149
3185
|
"column-item": "_column-item_uccrb_62",
|
|
3150
|
-
columnItem:
|
|
3151
|
-
icon:
|
|
3186
|
+
columnItem: Wi,
|
|
3187
|
+
icon: Ri,
|
|
3152
3188
|
"clear-button": "_clear-button_uccrb_74",
|
|
3153
|
-
clearButton:
|
|
3154
|
-
},
|
|
3189
|
+
clearButton: Yi
|
|
3190
|
+
}, jt = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: s, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: f, isLoading: g = !1, inputRef: b }) => {
|
|
3155
3191
|
var E;
|
|
3156
|
-
const
|
|
3157
|
-
|
|
3192
|
+
const w = q(null), p = q(null), _ = q(null), [k, m] = P(""), [N] = or(k, 500), [, j] = P(!1), v = (E = b.current) == null ? void 0 : E.getBoundingClientRect(), $ = (v == null ? void 0 : v.x) ?? 0, D = ((v == null ? void 0 : v.x) ?? 0) + ((v == null ? void 0 : v.width) ?? 0), I = (v == null ? void 0 : v.y) ?? 0, T = ((v == null ? void 0 : v.y) ?? 0) + ((v == null ? void 0 : v.height) ?? 0), y = (v == null ? void 0 : v.width) ?? 0, C = (v == null ? void 0 : v.height) ?? 0, F = 5, R = K(() => $ ? $ > window.innerWidth / 2 : !1, [$]), H = K(() => I ? I > window.innerHeight / 2 : !1, [I]);
|
|
3193
|
+
O(() => {
|
|
3158
3194
|
var M;
|
|
3159
|
-
n && ((M =
|
|
3160
|
-
}, [
|
|
3161
|
-
n ||
|
|
3162
|
-
}, [n]),
|
|
3195
|
+
n && ((M = _.current) == null || M.focus());
|
|
3196
|
+
}, [_, n]), O(() => {
|
|
3197
|
+
n || m("");
|
|
3198
|
+
}, [n]), O(() => {
|
|
3163
3199
|
a(N);
|
|
3164
3200
|
}, [N, a]);
|
|
3165
|
-
const
|
|
3201
|
+
const Z = S((M) => {
|
|
3166
3202
|
switch (M.key) {
|
|
3167
3203
|
case "Escape":
|
|
3168
3204
|
M.stopPropagation(), e();
|
|
3169
3205
|
break;
|
|
3170
3206
|
}
|
|
3171
|
-
}, [e]),
|
|
3172
|
-
|
|
3207
|
+
}, [e]), A = S(() => {
|
|
3208
|
+
j((M) => !M);
|
|
3173
3209
|
}, []);
|
|
3174
|
-
|
|
3175
|
-
window.removeEventListener("scroll",
|
|
3176
|
-
}), [
|
|
3177
|
-
window.removeEventListener("resize",
|
|
3178
|
-
}), [
|
|
3179
|
-
const
|
|
3210
|
+
O(() => (window.addEventListener("scroll", A), () => {
|
|
3211
|
+
window.removeEventListener("scroll", A);
|
|
3212
|
+
}), [A]), O(() => (window.addEventListener("resize", A), () => {
|
|
3213
|
+
window.removeEventListener("resize", A);
|
|
3214
|
+
}), [A]), hn(Z), mn([w, p], e);
|
|
3215
|
+
const re = l ?? (c && c.length > 0 ? 250 : 0), ee = (c == null ? void 0 : c.reduce((M, X) => M + (X.width ?? 100), 0)) ?? 0, U = `calc(max(${y}px, ${re}px + ${ee}px))`;
|
|
3180
3216
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3181
|
-
/* @__PURE__ */ o.jsx(
|
|
3182
|
-
r && n && !
|
|
3183
|
-
top: `calc(${I}px + ${
|
|
3217
|
+
/* @__PURE__ */ o.jsx(lr, { show: n, onClick: e }),
|
|
3218
|
+
r && n && !f && /* @__PURE__ */ o.jsx("button", { ref: p, type: "button", className: x("luminus-dropdown-picker-clear-button", te.clearButton), onClick: () => !f && s(null), style: {
|
|
3219
|
+
top: `calc(${I}px + ${C / 2}px - 12px)`,
|
|
3184
3220
|
left: `calc(${$}px - 24px - 8px)`
|
|
3185
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
3186
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3187
|
-
[
|
|
3221
|
+
}, children: /* @__PURE__ */ o.jsx(G, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ o.jsx(tn, { size: 16 }) }) }),
|
|
3222
|
+
/* @__PURE__ */ o.jsx("div", { className: x("luminus-dropdown-picker", te.wrapper, {
|
|
3223
|
+
[te.open]: n
|
|
3188
3224
|
}), style: {
|
|
3189
|
-
top: H ? `calc(${I}px - 50vh - 8px)` : `calc(${
|
|
3190
|
-
left:
|
|
3191
|
-
right:
|
|
3192
|
-
width:
|
|
3225
|
+
top: H ? `calc(${I}px - 50vh - 8px)` : `calc(${T}px + 8px)`,
|
|
3226
|
+
left: R ? `calc(${D}px - ${U})` : $,
|
|
3227
|
+
right: R ? `${D}px` : `calc(${$}px + ${U})`,
|
|
3228
|
+
width: U,
|
|
3193
3229
|
justifyContent: H ? "flex-end" : "flex-start"
|
|
3194
|
-
}, children: /* @__PURE__ */ o.jsx("div", { ref:
|
|
3195
|
-
d && (h ?? t.length) <= F ? null : /* @__PURE__ */ o.jsx("div", { className:
|
|
3230
|
+
}, children: /* @__PURE__ */ o.jsx("div", { ref: w, className: x("shadow rounded", te.dropdown), children: !f && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3231
|
+
d && (h ?? t.length) <= F ? null : /* @__PURE__ */ o.jsx("div", { className: x("search-input-container border-bottom", te.searchInputContainer), children: /* @__PURE__ */ o.jsx(Q.Control, { ref: _, type: "search", size: "sm", className: te.searchInput, placeholder: i.searchPlaceholder, value: k, onChange: (M) => {
|
|
3196
3232
|
var X;
|
|
3197
|
-
return
|
|
3233
|
+
return m(((X = M.target) == null ? void 0 : X.value) ?? "");
|
|
3198
3234
|
} }) }),
|
|
3199
|
-
g ? /* @__PURE__ */ o.jsx("div", { className:
|
|
3200
|
-
c && c.length > 0 && /* @__PURE__ */ o.jsxs("div", { className:
|
|
3201
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3202
|
-
c == null ? void 0 : c.map((M) => /* @__PURE__ */ o.jsx("div", { className:
|
|
3235
|
+
g ? /* @__PURE__ */ o.jsx("div", { className: te.loadingContainer, children: /* @__PURE__ */ o.jsx(yt, { animation: "border", variant: "primary" }) }) : t.length > 0 && /* @__PURE__ */ o.jsxs("div", { className: x("items", te.itemsContainer), children: [
|
|
3236
|
+
c && c.length > 0 && /* @__PURE__ */ o.jsxs("div", { className: x("header-row border-bottom", te.headerRow), children: [
|
|
3237
|
+
/* @__PURE__ */ o.jsx("div", { className: te.name }),
|
|
3238
|
+
c == null ? void 0 : c.map((M) => /* @__PURE__ */ o.jsx("div", { className: te.columnItem, style: {
|
|
3203
3239
|
width: `${M.width ?? 100}px`,
|
|
3204
3240
|
minWidth: `${M.width ?? 100}px`,
|
|
3205
3241
|
maxWidth: `${M.width ?? 100}px`
|
|
3206
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
3242
|
+
}, children: /* @__PURE__ */ o.jsx(G, { variant: "caption", children: M.name }) }, M.key))
|
|
3207
3243
|
] }),
|
|
3208
|
-
t == null ? void 0 : t.map((M) => /* @__PURE__ */ o.jsxs("button", { type: "button", className:
|
|
3209
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3210
|
-
c == null ? void 0 : c.map((X) => /* @__PURE__ */ o.jsx("div", { className:
|
|
3244
|
+
t == null ? void 0 : t.map((M) => /* @__PURE__ */ o.jsxs("button", { type: "button", className: x("item cursor-pointer", te.item), onClick: () => !f && s(M), children: [
|
|
3245
|
+
/* @__PURE__ */ o.jsx("div", { className: te.name, children: /* @__PURE__ */ o.jsx(G, { variant: "body2", children: u ? M.id : M.name }) }),
|
|
3246
|
+
c == null ? void 0 : c.map((X) => /* @__PURE__ */ o.jsx("div", { className: te.columnItem, style: {
|
|
3211
3247
|
width: `${X.width ?? 100}px`,
|
|
3212
3248
|
minWidth: `${X.width ?? 100}px`,
|
|
3213
3249
|
maxWidth: `${X.width ?? 100}px`
|
|
3214
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
3250
|
+
}, children: /* @__PURE__ */ o.jsx(G, { variant: "caption", className: x("text-muted"), children: M.additionalColumns && M.additionalColumns[X.key] }) }, X.key))
|
|
3215
3251
|
] }, M.id))
|
|
3216
3252
|
] })
|
|
3217
3253
|
] }) }) })
|
|
3218
3254
|
] });
|
|
3219
3255
|
};
|
|
3220
|
-
function
|
|
3221
|
-
return
|
|
3256
|
+
function ar(n) {
|
|
3257
|
+
return pt({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }, child: [] }] })(n);
|
|
3222
3258
|
}
|
|
3223
|
-
function
|
|
3224
|
-
return
|
|
3259
|
+
function ir(n) {
|
|
3260
|
+
return pt({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }, child: [] }] })(n);
|
|
3225
3261
|
}
|
|
3226
|
-
function
|
|
3227
|
-
return
|
|
3262
|
+
function Li(n) {
|
|
3263
|
+
return pt({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" }, child: [] }] })(n);
|
|
3228
3264
|
}
|
|
3229
|
-
const
|
|
3230
|
-
item:
|
|
3231
|
-
},
|
|
3265
|
+
const qi = "_item_1dy8x_1", cr = {
|
|
3266
|
+
item: qi
|
|
3267
|
+
}, Hi = ({
|
|
3232
3268
|
color: n = "primary",
|
|
3233
3269
|
// icon = <MdOutlineArrowOutward />,
|
|
3234
3270
|
icon: e,
|
|
3235
3271
|
className: t,
|
|
3236
3272
|
children: r,
|
|
3237
3273
|
...s
|
|
3238
|
-
}) => /* @__PURE__ */ o.jsxs(Ee.Item, { className:
|
|
3274
|
+
}) => /* @__PURE__ */ o.jsxs(Ee.Item, { className: x(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${t ?? ""}`, cr.item), ...s, children: [
|
|
3239
3275
|
e,
|
|
3240
3276
|
r
|
|
3241
|
-
] }),
|
|
3277
|
+
] }), Bi = (n) => /* @__PURE__ */ o.jsx(Ee.Toggle, { ...n }), il = ({ color: n = "primary", icon: e = /* @__PURE__ */ o.jsx(en, { size: 12 }), inputId: t = "context-file-input", accept: r = "*", onUpload: s, multiple: a, className: i, children: l, ...c }) => {
|
|
3242
3278
|
const u = (d) => {
|
|
3243
3279
|
d.target.files && (s(d.target.files), d.target.value = "");
|
|
3244
3280
|
};
|
|
3245
3281
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3246
|
-
/* @__PURE__ */ o.jsxs("label", { htmlFor: t, className:
|
|
3282
|
+
/* @__PURE__ */ o.jsxs("label", { htmlFor: t, className: x(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${i ?? ""}`, cr.item), ...c, children: [
|
|
3247
3283
|
e,
|
|
3248
3284
|
l
|
|
3249
3285
|
] }),
|
|
3250
3286
|
/* @__PURE__ */ o.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
|
|
3251
3287
|
] });
|
|
3252
|
-
},
|
|
3253
|
-
divider:
|
|
3254
|
-
},
|
|
3255
|
-
dropdown:
|
|
3256
|
-
},
|
|
3288
|
+
}, Vi = "_divider_1e6rk_1", Gi = {
|
|
3289
|
+
divider: Vi
|
|
3290
|
+
}, cl = ({ className: n }) => /* @__PURE__ */ o.jsx(Ee.Divider, { className: x("luminus-dropdown-divider", n, Gi.divider) }), zi = "_dropdown_1lk66_1", Ui = {
|
|
3291
|
+
dropdown: zi
|
|
3292
|
+
}, Ki = ({ toggle: n, children: e, ...t }) => /* @__PURE__ */ o.jsxs(Ee, { ...t, children: [
|
|
3257
3293
|
n,
|
|
3258
|
-
/* @__PURE__ */ o.jsx(Ee.Menu, { className:
|
|
3259
|
-
] }),
|
|
3260
|
-
dropdown:
|
|
3261
|
-
open:
|
|
3294
|
+
/* @__PURE__ */ o.jsx(Ee.Menu, { className: x("luminus-dropdown rounded shadow", Ui.dropdown), children: e })
|
|
3295
|
+
] }), Qi = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PURE__ */ o.jsx(Ki, { toggle: /* @__PURE__ */ o.jsx(Bi, { as: Wr, icon: null, text: e == null ? void 0 : e.text }), children: n.map((r) => /* @__PURE__ */ o.jsx(Hi, { icon: null, onClick: () => t(r), children: r.text }, r.key)) }), Xi = "_dropdown_1ddrg_1", Ji = "_open_1ddrg_12", Zi = "_loading-container_1ddrg_15", ec = "_groups-container_1ddrg_22", tc = "_group_1ddrg_22", nc = "_header_1ddrg_26", rc = "_item_1ddrg_33", ge = {
|
|
3296
|
+
dropdown: Xi,
|
|
3297
|
+
open: Ji,
|
|
3262
3298
|
"loading-container": "_loading-container_1ddrg_15",
|
|
3263
|
-
loadingContainer:
|
|
3299
|
+
loadingContainer: Zi,
|
|
3264
3300
|
"groups-container": "_groups-container_1ddrg_22",
|
|
3265
|
-
groupsContainer:
|
|
3266
|
-
group:
|
|
3267
|
-
header:
|
|
3268
|
-
item:
|
|
3269
|
-
},
|
|
3270
|
-
const { LinkComponent: i, appSearchTexts: l } =
|
|
3271
|
-
var
|
|
3272
|
-
const h = (
|
|
3301
|
+
groupsContainer: ec,
|
|
3302
|
+
group: tc,
|
|
3303
|
+
header: nc,
|
|
3304
|
+
item: rc
|
|
3305
|
+
}, sc = ({ show: n, query: e, onCancel: t, groups: r, isLoading: s, searchTypes: a }) => {
|
|
3306
|
+
const { LinkComponent: i, appSearchTexts: l } = Y(ae), c = q(null), u = S((d) => {
|
|
3307
|
+
var f;
|
|
3308
|
+
const h = (f = a.find((g) => g.key === d.type)) == null ? void 0 : f.toPath;
|
|
3273
3309
|
return h ? `${h}/${d.searchKey}` : "/not-found";
|
|
3274
3310
|
}, [a]);
|
|
3275
|
-
return
|
|
3311
|
+
return mn([c], t), /* @__PURE__ */ o.jsx("div", { ref: c, className: x("luminus-app-search-dropdown shadow rounded", ge.dropdown, {
|
|
3276
3312
|
[ge.open]: n
|
|
3277
|
-
}), children: s ? /* @__PURE__ */ o.jsx("div", { className: ge.loadingContainer, children: /* @__PURE__ */ o.jsx(
|
|
3313
|
+
}), children: s ? /* @__PURE__ */ o.jsx("div", { className: ge.loadingContainer, children: /* @__PURE__ */ o.jsx(yt, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ o.jsx("div", { className: ge.groupsContainer, children: r == null ? void 0 : r.map((d) => {
|
|
3278
3314
|
var h;
|
|
3279
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
3280
|
-
/* @__PURE__ */ o.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className:
|
|
3281
|
-
/* @__PURE__ */ o.jsx(
|
|
3282
|
-
/* @__PURE__ */ o.jsxs(
|
|
3315
|
+
return /* @__PURE__ */ o.jsxs("div", { className: x(ge.group), children: [
|
|
3316
|
+
/* @__PURE__ */ o.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: x("group-header", ge.header), onClick: t, children: [
|
|
3317
|
+
/* @__PURE__ */ o.jsx(G, { variant: "body", className: "text-primary", children: d.key.categoryName }),
|
|
3318
|
+
/* @__PURE__ */ o.jsxs(G, { variant: "caption", children: [
|
|
3283
3319
|
d.items.length,
|
|
3284
3320
|
" ",
|
|
3285
3321
|
l.amountFrom,
|
|
@@ -3287,33 +3323,33 @@ const Wi = "_item_1dy8x_1", ar = {
|
|
|
3287
3323
|
d.key.totalCount
|
|
3288
3324
|
] })
|
|
3289
3325
|
] }),
|
|
3290
|
-
(h = d.items) == null ? void 0 : h.map((
|
|
3326
|
+
(h = d.items) == null ? void 0 : h.map((f, g) => /* @__PURE__ */ o.jsxs(
|
|
3291
3327
|
i,
|
|
3292
3328
|
{
|
|
3293
|
-
to: u(
|
|
3294
|
-
className:
|
|
3329
|
+
to: u(f),
|
|
3330
|
+
className: x("search-item d-flex gap-3 align-items-center justify-content-between", ge.item),
|
|
3295
3331
|
onClick: t,
|
|
3296
3332
|
children: [
|
|
3297
|
-
/* @__PURE__ */ o.jsx(
|
|
3298
|
-
/* @__PURE__ */ o.jsx(
|
|
3333
|
+
/* @__PURE__ */ o.jsx(G, { variant: "body2", className: "text-nowrap text-truncate", children: f.name }),
|
|
3334
|
+
/* @__PURE__ */ o.jsx(G, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ o.jsx(Rr, {}) })
|
|
3299
3335
|
]
|
|
3300
3336
|
},
|
|
3301
3337
|
g
|
|
3302
3338
|
))
|
|
3303
3339
|
] }, d.key.category);
|
|
3304
3340
|
}) }) });
|
|
3305
|
-
},
|
|
3341
|
+
}, oc = "_input-group_1lkfy_1", ac = "_input-group-text_1lkfy_5", ic = "_left_1lkfy_9", cc = "_right_1lkfy_13", lc = "_input_1lkfy_1", uc = "_submit-button_1lkfy_20", xe = {
|
|
3306
3342
|
"input-group": "_input-group_1lkfy_1",
|
|
3307
|
-
inputGroup:
|
|
3343
|
+
inputGroup: oc,
|
|
3308
3344
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
3309
|
-
inputGroupText:
|
|
3310
|
-
left:
|
|
3311
|
-
right:
|
|
3312
|
-
input:
|
|
3345
|
+
inputGroupText: ac,
|
|
3346
|
+
left: ic,
|
|
3347
|
+
right: cc,
|
|
3348
|
+
input: lc,
|
|
3313
3349
|
"submit-button": "_submit-button_1lkfy_20",
|
|
3314
|
-
submitButton:
|
|
3315
|
-
},
|
|
3316
|
-
const t =
|
|
3350
|
+
submitButton: uc
|
|
3351
|
+
}, dc = (n, e) => {
|
|
3352
|
+
const t = Yr(), [r, s] = P(!1), [a, i] = P([]), l = !n || !n.key, c = S(() => {
|
|
3317
3353
|
if (e.length < 3) {
|
|
3318
3354
|
i([]);
|
|
3319
3355
|
return;
|
|
@@ -3324,138 +3360,138 @@ const Wi = "_item_1dy8x_1", ar = {
|
|
|
3324
3360
|
s(!1);
|
|
3325
3361
|
});
|
|
3326
3362
|
}, [n, e, t, l]);
|
|
3327
|
-
return
|
|
3363
|
+
return O(() => {
|
|
3328
3364
|
c();
|
|
3329
3365
|
}, [c]), { isLoading: r, searchItems: a };
|
|
3330
|
-
},
|
|
3331
|
-
const { appSearchTexts: t } =
|
|
3332
|
-
return
|
|
3333
|
-
(d.length > 0 || u) &&
|
|
3334
|
-
}, [d, u]), /* @__PURE__ */ o.jsx(
|
|
3335
|
-
g.preventDefault(), g.stopPropagation(), c.flush(),
|
|
3366
|
+
}, ll = ({ searchTypes: n, navigateFunction: e }) => {
|
|
3367
|
+
const { appSearchTexts: t } = Y(ae), [r, s] = P(n.length > 0 ? n[0] : null), [a, i] = P(""), [l, c] = or(a, 500), { isLoading: u, searchItems: d } = dc(r, l), [h, f] = P(!1);
|
|
3368
|
+
return O(() => {
|
|
3369
|
+
(d.length > 0 || u) && f(!0);
|
|
3370
|
+
}, [d, u]), /* @__PURE__ */ o.jsx(Q, { onSubmit: (g) => {
|
|
3371
|
+
g.preventDefault(), g.stopPropagation(), c.flush(), f(!1), a.length > 2 && e(`/search?query=${a}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
|
|
3336
3372
|
}, children: /* @__PURE__ */ o.jsxs(tt, { className: xe.inputGroup, children: [
|
|
3337
|
-
/* @__PURE__ */ o.jsx(tt.Text, { className:
|
|
3338
|
-
/* @__PURE__ */ o.jsx(
|
|
3339
|
-
var
|
|
3340
|
-
return i(((
|
|
3341
|
-
}, onFocus: () => d.length > 0 &&
|
|
3342
|
-
/* @__PURE__ */ o.jsx(tt.Text, { className:
|
|
3343
|
-
/* @__PURE__ */ o.jsx(
|
|
3373
|
+
/* @__PURE__ */ o.jsx(tt.Text, { className: x("p-1 rounded", xe.inputGroupText, xe.left), children: /* @__PURE__ */ o.jsx(Qi, { searchTypes: n, selectedType: r, setSelectedType: s }) }),
|
|
3374
|
+
/* @__PURE__ */ o.jsx(Q.Control, { placeholder: t.searchPlaceholder, type: "text", size: "sm", className: x("luminus-app-search-input", xe.input), value: a, onChange: (g) => {
|
|
3375
|
+
var b;
|
|
3376
|
+
return i(((b = g.target) == null ? void 0 : b.value) ?? "");
|
|
3377
|
+
}, onFocus: () => d.length > 0 && f(!0) }),
|
|
3378
|
+
/* @__PURE__ */ o.jsx(tt.Text, { className: x("p-0 rounded", xe.inputGroupText, xe.right), children: /* @__PURE__ */ o.jsx("button", { type: "submit", className: x("text-primary", xe.submitButton), children: /* @__PURE__ */ o.jsx(Li, {}) }) }),
|
|
3379
|
+
/* @__PURE__ */ o.jsx(sc, { query: l, searchTypes: n, show: h, onCancel: () => f(!1), groups: d, isLoading: u })
|
|
3344
3380
|
] }) });
|
|
3345
|
-
},
|
|
3346
|
-
card:
|
|
3347
|
-
header:
|
|
3381
|
+
}, hc = "_card_19733_1", mc = "_header_19733_6", fc = "_header-content_19733_13", pc = "_title_19733_19", gc = "_collapse-icon_19733_22", xc = "_collapsed_19733_27", wc = "_content_19733_30", we = {
|
|
3382
|
+
card: hc,
|
|
3383
|
+
header: mc,
|
|
3348
3384
|
"header-content": "_header-content_19733_13",
|
|
3349
|
-
headerContent:
|
|
3350
|
-
title:
|
|
3385
|
+
headerContent: fc,
|
|
3386
|
+
title: pc,
|
|
3351
3387
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
3352
|
-
collapseIcon:
|
|
3353
|
-
collapsed:
|
|
3354
|
-
content:
|
|
3355
|
-
},
|
|
3356
|
-
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] =
|
|
3357
|
-
return
|
|
3388
|
+
collapseIcon: gc,
|
|
3389
|
+
collapsed: xc,
|
|
3390
|
+
content: wc
|
|
3391
|
+
}, vc = ({ title: n, headerContent: e, children: t, className: r, headerClassName: s, contentClassName: a, ...i }) => {
|
|
3392
|
+
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] = P(l), d = i.collapsible ? i.controlled ? i.isOpen : c : !0;
|
|
3393
|
+
return O(() => {
|
|
3358
3394
|
u(l);
|
|
3359
|
-
}, [l]), /* @__PURE__ */ o.jsxs("div", { className:
|
|
3395
|
+
}, [l]), /* @__PURE__ */ o.jsxs("div", { className: x("luminus-card rounded shadow-sm", we.card, {
|
|
3360
3396
|
[r ?? ""]: r
|
|
3361
3397
|
}), children: [
|
|
3362
|
-
/* @__PURE__ */ o.jsxs("div", { role: i.collapsible ? "button" : void 0, className:
|
|
3398
|
+
/* @__PURE__ */ o.jsxs("div", { role: i.collapsible ? "button" : void 0, className: x("header", we.header, {
|
|
3363
3399
|
[s ?? ""]: s
|
|
3364
3400
|
}), onClick: () => {
|
|
3365
3401
|
i.collapsible && (i.controlled ? i.onToggle(!i.isOpen) : u(!c));
|
|
3366
3402
|
}, children: [
|
|
3367
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
3368
|
-
/* @__PURE__ */ o.jsx(
|
|
3403
|
+
/* @__PURE__ */ o.jsxs("div", { className: x("header-content", we.headerContent), children: [
|
|
3404
|
+
/* @__PURE__ */ o.jsx(G, { variant: "h6", className: x("text-primary", we.title), children: n }),
|
|
3369
3405
|
e ?? null
|
|
3370
3406
|
] }),
|
|
3371
|
-
i.collapsible && /* @__PURE__ */ o.jsx(
|
|
3407
|
+
i.collapsible && /* @__PURE__ */ o.jsx(nn, { className: x(we.collapseIcon, {
|
|
3372
3408
|
[we.collapsed]: d
|
|
3373
3409
|
}) })
|
|
3374
3410
|
] }),
|
|
3375
|
-
/* @__PURE__ */ o.jsx(
|
|
3411
|
+
/* @__PURE__ */ o.jsx(yn, { in: d, children: /* @__PURE__ */ o.jsx("div", { className: x("card-content border-top border-primary", we.content, {
|
|
3376
3412
|
[a ?? ""]: a
|
|
3377
3413
|
}), children: t }) })
|
|
3378
3414
|
] });
|
|
3379
|
-
},
|
|
3380
|
-
lightbox:
|
|
3381
|
-
show:
|
|
3382
|
-
header:
|
|
3415
|
+
}, yc = "_lightbox_14acg_1", bc = "_show_14acg_16", _c = "_header_14acg_20", jc = "_photo-actions_14acg_26", kc = "_photo-container_14acg_31", Nc = "_photo_14acg_26", Cc = "_nav-button_14acg_41", Ic = "_photos-preview_14acg_49", $c = "_selected_14acg_62", Sc = "_default-indicator_14acg_66", se = {
|
|
3416
|
+
lightbox: yc,
|
|
3417
|
+
show: bc,
|
|
3418
|
+
header: _c,
|
|
3383
3419
|
"photo-actions": "_photo-actions_14acg_26",
|
|
3384
|
-
photoActions:
|
|
3420
|
+
photoActions: jc,
|
|
3385
3421
|
"photo-container": "_photo-container_14acg_31",
|
|
3386
|
-
photoContainer:
|
|
3387
|
-
photo:
|
|
3422
|
+
photoContainer: kc,
|
|
3423
|
+
photo: Nc,
|
|
3388
3424
|
"nav-button": "_nav-button_14acg_41",
|
|
3389
|
-
navButton:
|
|
3425
|
+
navButton: Cc,
|
|
3390
3426
|
"photos-preview": "_photos-preview_14acg_49",
|
|
3391
|
-
photosPreview:
|
|
3392
|
-
selected:
|
|
3427
|
+
photosPreview: Ic,
|
|
3428
|
+
selected: $c,
|
|
3393
3429
|
"default-indicator": "_default-indicator_14acg_66",
|
|
3394
|
-
defaultIndicator:
|
|
3395
|
-
},
|
|
3396
|
-
backdrop:
|
|
3397
|
-
show:
|
|
3398
|
-
},
|
|
3399
|
-
[
|
|
3400
|
-
}), onClick: () => e && e() }),
|
|
3401
|
-
const c =
|
|
3402
|
-
|
|
3430
|
+
defaultIndicator: Sc
|
|
3431
|
+
}, Tc = "_backdrop_3huvf_1", Ec = "_show_3huvf_11", Ut = {
|
|
3432
|
+
backdrop: Tc,
|
|
3433
|
+
show: Ec
|
|
3434
|
+
}, lr = ({ show: n, onClick: e }) => /* @__PURE__ */ o.jsx("div", { className: x("luminus-backdrop", Ut.backdrop, {
|
|
3435
|
+
[Ut.show]: n
|
|
3436
|
+
}), onClick: () => e && e() }), Dc = ({ show: n, onClose: e, photos: t, defaultIndex: r, uploadPhotosText: s, noPhotosText: a, onUploadPhotos: i, photoActions: l }) => {
|
|
3437
|
+
const c = q(null), [u, d] = P(r), h = t.at(u), f = u > 0, g = u < t.length - 1;
|
|
3438
|
+
O(() => {
|
|
3403
3439
|
n && d(r);
|
|
3404
|
-
}, [r, n]),
|
|
3440
|
+
}, [r, n]), O(() => {
|
|
3405
3441
|
u >= t.length && d(t.length - 1);
|
|
3406
3442
|
}, [t, u]);
|
|
3407
|
-
const
|
|
3408
|
-
switch (
|
|
3443
|
+
const b = S((w) => {
|
|
3444
|
+
switch (w.key) {
|
|
3409
3445
|
case "ArrowLeft":
|
|
3410
|
-
|
|
3446
|
+
w.stopPropagation(), f && d((p) => p - 1);
|
|
3411
3447
|
break;
|
|
3412
3448
|
case "ArrowRight":
|
|
3413
|
-
|
|
3449
|
+
w.stopPropagation(), g && d((p) => p + 1);
|
|
3414
3450
|
break;
|
|
3415
3451
|
case "Escape":
|
|
3416
|
-
|
|
3452
|
+
w.stopPropagation(), e();
|
|
3417
3453
|
break;
|
|
3418
3454
|
}
|
|
3419
|
-
}, [g,
|
|
3420
|
-
return
|
|
3421
|
-
/* @__PURE__ */ o.jsx(
|
|
3422
|
-
/* @__PURE__ */ o.jsxs("div", { ref: c, className:
|
|
3423
|
-
[
|
|
3455
|
+
}, [g, f, e]);
|
|
3456
|
+
return hn(b), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3457
|
+
/* @__PURE__ */ o.jsx(lr, { show: n, onClick: e }),
|
|
3458
|
+
/* @__PURE__ */ o.jsxs("div", { ref: c, className: x("luminus-lightbox rounded shadow", se.lightbox, {
|
|
3459
|
+
[se.show]: n
|
|
3424
3460
|
}), children: [
|
|
3425
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
3426
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
3427
|
-
i && /* @__PURE__ */ o.jsx(
|
|
3428
|
-
|
|
3429
|
-
}, icon: /* @__PURE__ */ o.jsx(
|
|
3430
|
-
h && (l == null ? void 0 : l.map(({ label:
|
|
3431
|
-
|
|
3461
|
+
/* @__PURE__ */ o.jsxs("div", { className: se.header, children: [
|
|
3462
|
+
/* @__PURE__ */ o.jsxs("div", { className: x("rounded", se.photoActions), children: [
|
|
3463
|
+
i && /* @__PURE__ */ o.jsx(sr, { accept: ".jpg,.jpeg,.png", onUpload: (w) => {
|
|
3464
|
+
w.length > 0 && i(Array.from(w));
|
|
3465
|
+
}, icon: /* @__PURE__ */ o.jsx(rn, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: s ?? null }),
|
|
3466
|
+
h && (l == null ? void 0 : l.map(({ label: w, onClick: p, ..._ }, k) => /* @__PURE__ */ o.jsx(
|
|
3467
|
+
lt,
|
|
3432
3468
|
{
|
|
3433
|
-
onClick: () =>
|
|
3434
|
-
...
|
|
3435
|
-
children:
|
|
3469
|
+
onClick: () => p(h.id),
|
|
3470
|
+
..._,
|
|
3471
|
+
children: w
|
|
3436
3472
|
},
|
|
3437
|
-
`action-${
|
|
3473
|
+
`action-${k}`
|
|
3438
3474
|
)))
|
|
3439
3475
|
] }),
|
|
3440
3476
|
/* @__PURE__ */ o.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ o.jsx(ce, { style: { fontSize: "32px" } }) })
|
|
3441
3477
|
] }),
|
|
3442
|
-
t.length === 0 && /* @__PURE__ */ o.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ o.jsx(
|
|
3443
|
-
h && /* @__PURE__ */ o.jsxs("div", { className:
|
|
3444
|
-
/* @__PURE__ */ o.jsx("div", { role:
|
|
3445
|
-
/* @__PURE__ */ o.jsx("img", { src: h.lgSrc, alt: h.alt, className:
|
|
3446
|
-
/* @__PURE__ */ o.jsx("div", { role: g ? "button" : void 0, className:
|
|
3478
|
+
t.length === 0 && /* @__PURE__ */ o.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ o.jsx(G, { variant: "body", children: a ?? "No photos available" }) }),
|
|
3479
|
+
h && /* @__PURE__ */ o.jsxs("div", { className: se.photoContainer, children: [
|
|
3480
|
+
/* @__PURE__ */ o.jsx("div", { role: f ? "button" : void 0, className: x("align-items-start", se.navButton), onClick: () => f && d((w) => w - 1), children: f && /* @__PURE__ */ o.jsx(mt, { style: { fontSize: "40px" } }) }),
|
|
3481
|
+
/* @__PURE__ */ o.jsx("img", { src: h.lgSrc, alt: h.alt, className: x("rounded", se.photo) }),
|
|
3482
|
+
/* @__PURE__ */ o.jsx("div", { role: g ? "button" : void 0, className: x("align-items-end", se.navButton), onClick: () => g && d((w) => w + 1), children: g && /* @__PURE__ */ o.jsx(ft, { style: { fontSize: "40px" } }) })
|
|
3447
3483
|
] }),
|
|
3448
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3449
|
-
/* @__PURE__ */ o.jsx("img", { role:
|
|
3450
|
-
[
|
|
3451
|
-
}) },
|
|
3452
|
-
|
|
3484
|
+
/* @__PURE__ */ o.jsx("div", { className: se.photosPreview, children: t.map((w, p) => /* @__PURE__ */ o.jsxs("div", { role: "button", onClick: () => d(p), className: "position-relative", children: [
|
|
3485
|
+
/* @__PURE__ */ o.jsx("img", { role: p !== u ? "button" : void 0, src: w.smSrc, alt: w.alt, className: x("rounded", se.photo, {
|
|
3486
|
+
[se.selected]: p === u
|
|
3487
|
+
}) }, w.id),
|
|
3488
|
+
w.isDefault && /* @__PURE__ */ o.jsx("div", { className: x("text-primary", se.defaultIndicator), children: /* @__PURE__ */ o.jsx(Lr, {}) })
|
|
3453
3489
|
] })) })
|
|
3454
3490
|
] })
|
|
3455
3491
|
] });
|
|
3456
|
-
},
|
|
3457
|
-
const [s, a] =
|
|
3458
|
-
return
|
|
3492
|
+
}, ul = ({ photos: n, onUploadPhotos: e, uploadPhotosText: t, photoActions: r }) => {
|
|
3493
|
+
const [s, a] = P(null), i = s !== null ? n[s] : null, [l, c] = P(!1);
|
|
3494
|
+
return O(() => {
|
|
3459
3495
|
if (n.length === 0) {
|
|
3460
3496
|
a(null), c(!1);
|
|
3461
3497
|
return;
|
|
@@ -3473,20 +3509,20 @@ const Wi = "_item_1dy8x_1", ar = {
|
|
|
3473
3509
|
onClick: () => c(!0)
|
|
3474
3510
|
}
|
|
3475
3511
|
),
|
|
3476
|
-
/* @__PURE__ */ o.jsx(
|
|
3477
|
-
] }) : e ? /* @__PURE__ */ o.jsx(
|
|
3512
|
+
/* @__PURE__ */ o.jsx(Dc, { show: l, onClose: () => c(!1), photos: n, defaultIndex: s ?? 0, uploadPhotosText: t, onUploadPhotos: e, photoActions: r })
|
|
3513
|
+
] }) : e ? /* @__PURE__ */ o.jsx(sr, { accept: ".jpg,.jpeg,.png", onUpload: (u) => {
|
|
3478
3514
|
u.length > 0 && e(Array.from(u));
|
|
3479
|
-
}, icon: /* @__PURE__ */ o.jsx(
|
|
3480
|
-
},
|
|
3481
|
-
const { NavigateComponent: t } =
|
|
3515
|
+
}, icon: /* @__PURE__ */ o.jsx(rn, { style: { fontSize: 18 } }), multiple: !0, children: t ?? null }) : null;
|
|
3516
|
+
}, dl = ({ appAccessPermissions: n, children: e }) => {
|
|
3517
|
+
const { NavigateComponent: t } = Y(ae), { useMsal: r, msalScopes: s } = Y(qr), { isAuthenticated: a } = Hr(), { user: i, loggingInProgress: l } = Y(Br), c = i && (n == null ? void 0 : n.every((u) => {
|
|
3482
3518
|
var d;
|
|
3483
3519
|
return (d = i.permissions) == null ? void 0 : d.includes(u);
|
|
3484
3520
|
}));
|
|
3485
|
-
return r ? /* @__PURE__ */ o.jsx(
|
|
3486
|
-
},
|
|
3521
|
+
return r ? /* @__PURE__ */ o.jsx(Ha, { interactionType: Le.Redirect, authenticationRequest: { scopes: s }, children: l || !a() ? /* @__PURE__ */ o.jsx(ts, {}) : i ? c ? /* @__PURE__ */ o.jsx(o.Fragment, { children: e }) : /* @__PURE__ */ o.jsx(t, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ o.jsx(t, { to: "/no-user-login", replace: !0 }) }) : !a() || !i ? /* @__PURE__ */ o.jsx(t, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ o.jsx(t, { to: "/user-not-permitted", replace: !0 });
|
|
3522
|
+
}, hl = (n) => {
|
|
3487
3523
|
const { variant: e, children: t, className: r, size: s = "md", typographyVariant: a = s === "sm" ? "body2" : "body", ...i } = { ...n };
|
|
3488
|
-
return /* @__PURE__ */ o.jsx(
|
|
3489
|
-
},
|
|
3524
|
+
return /* @__PURE__ */ o.jsx(Co, { variant: e, className: `text-center ${s === "sm" ? "p-1" : s === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...i, children: /* @__PURE__ */ o.jsx(G, { variant: a, children: t }) });
|
|
3525
|
+
}, ml = ({ version: n }) => /* @__PURE__ */ o.jsx("div", { className: "rounded", style: {
|
|
3490
3526
|
position: "fixed",
|
|
3491
3527
|
right: "0px",
|
|
3492
3528
|
bottom: "0px",
|
|
@@ -3494,84 +3530,86 @@ const Wi = "_item_1dy8x_1", ar = {
|
|
|
3494
3530
|
backgroundColor: "rgba(255, 255, 255, 0.5)",
|
|
3495
3531
|
padding: "4px",
|
|
3496
3532
|
pointerEvents: "all"
|
|
3497
|
-
}, children: /* @__PURE__ */ o.jsxs(
|
|
3533
|
+
}, children: /* @__PURE__ */ o.jsxs(G, { variant: "caption", className: "w-100 text-end", children: [
|
|
3498
3534
|
"verze ",
|
|
3499
3535
|
n
|
|
3500
|
-
] }) }),
|
|
3536
|
+
] }) }), Oc = "_submit-container_a9slg_1", Pc = "_spacer_a9slg_14", Kt = {
|
|
3501
3537
|
"submit-container": "_submit-container_a9slg_1",
|
|
3502
|
-
submitContainer:
|
|
3503
|
-
spacer:
|
|
3504
|
-
},
|
|
3505
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3506
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3507
|
-
] }),
|
|
3508
|
-
timeline:
|
|
3538
|
+
submitContainer: Oc,
|
|
3539
|
+
spacer: Pc
|
|
3540
|
+
}, Mc = ({ children: n }) => /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3541
|
+
/* @__PURE__ */ o.jsx("div", { className: Kt.spacer }),
|
|
3542
|
+
/* @__PURE__ */ o.jsx("div", { className: x("luminus-floating-action-container shadow", Kt.submitContainer), children: n })
|
|
3543
|
+
] }), Ac = "_timeline_g1754_1", Fc = "_step-container_g1754_1", Wc = "_step-date_g1754_1", Rc = "_step-content_g1754_4", Yc = "_content-header_g1754_8", Lc = "_content-text_g1754_11", qc = "_step-icon_g1754_14", ve = {
|
|
3544
|
+
timeline: Ac,
|
|
3509
3545
|
"step-container": "_step-container_g1754_1",
|
|
3510
|
-
stepContainer:
|
|
3546
|
+
stepContainer: Fc,
|
|
3511
3547
|
"step-date": "_step-date_g1754_1",
|
|
3512
|
-
stepDate:
|
|
3548
|
+
stepDate: Wc,
|
|
3513
3549
|
"step-content": "_step-content_g1754_4",
|
|
3514
|
-
stepContent:
|
|
3550
|
+
stepContent: Rc,
|
|
3515
3551
|
"content-header": "_content-header_g1754_8",
|
|
3516
|
-
contentHeader:
|
|
3552
|
+
contentHeader: Yc,
|
|
3517
3553
|
"content-text": "_content-text_g1754_11",
|
|
3518
|
-
contentText:
|
|
3554
|
+
contentText: Lc,
|
|
3519
3555
|
"step-icon": "_step-icon_g1754_14",
|
|
3520
|
-
stepIcon:
|
|
3521
|
-
},
|
|
3522
|
-
/* @__PURE__ */ o.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ o.jsxs(
|
|
3523
|
-
/* @__PURE__ */ o.jsx("div", { children:
|
|
3524
|
-
/* @__PURE__ */ o.jsx("div", { children:
|
|
3556
|
+
stepIcon: qc
|
|
3557
|
+
}, fl = ({ steps: n }) => /* @__PURE__ */ o.jsx("div", { className: ve.timeline, children: n.sort((e, t) => ls(e.date ?? /* @__PURE__ */ new Date(), t.date ?? /* @__PURE__ */ new Date())).map((e, t) => /* @__PURE__ */ o.jsxs("div", { className: x("row g-0 gx-3", ve.stepContainer), children: [
|
|
3558
|
+
/* @__PURE__ */ o.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ o.jsxs(G, { variant: "caption", className: x("h-100 d-flex flex-column align-items-end justify-content-center gap-0", ve.stepDate), children: [
|
|
3559
|
+
/* @__PURE__ */ o.jsx("div", { children: ot(e.date, "dd.MM.yyyy") }),
|
|
3560
|
+
/* @__PURE__ */ o.jsx("div", { children: ot(e.date, "HH:mm") })
|
|
3525
3561
|
] }) }),
|
|
3526
|
-
/* @__PURE__ */ o.jsx("div", { className: "col-9", children: /* @__PURE__ */ o.jsxs("div", { className:
|
|
3527
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
3528
|
-
e.person && /* @__PURE__ */ o.jsx(
|
|
3529
|
-
typeof e.title == "string" ? /* @__PURE__ */ o.jsx(
|
|
3562
|
+
/* @__PURE__ */ o.jsx("div", { className: "col-9", children: /* @__PURE__ */ o.jsxs("div", { className: x("h-100 d-flex flex-column gap-1 border-start border-2 p-3", ve.stepContent), children: [
|
|
3563
|
+
/* @__PURE__ */ o.jsxs("div", { className: x("d-flex gap-2 align-items-center", ve.contentHeader), children: [
|
|
3564
|
+
e.person && /* @__PURE__ */ o.jsx(sn, { name: e.person.name ?? "", size: 22, fontSize: 12 }),
|
|
3565
|
+
typeof e.title == "string" ? /* @__PURE__ */ o.jsx(G, { variant: "body", className: "fw-bold", children: e.title }) : e.title
|
|
3530
3566
|
] }),
|
|
3531
|
-
e.text && /* @__PURE__ */ o.jsx(
|
|
3532
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3567
|
+
e.text && /* @__PURE__ */ o.jsx(G, { variant: "body2", className: ve.contentText, children: e.text }),
|
|
3568
|
+
/* @__PURE__ */ o.jsx("div", { className: x("text-primary", ve.stepIcon), children: e.icon ?? /* @__PURE__ */ o.jsx(Vr, {}) })
|
|
3533
3569
|
] }) })
|
|
3534
|
-
] }, t)) }),
|
|
3535
|
-
/* @__PURE__ */ o.jsx(Je.Header, { children: typeof n == "string" ? /* @__PURE__ */ o.jsx(
|
|
3570
|
+
] }, t)) }), pl = ({ heading: n, content: e, placement: t, children: r, trigger: s }) => /* @__PURE__ */ o.jsx(Gr, { placement: t, overlay: /* @__PURE__ */ o.jsxs(Je, { className: "luminus-popover", children: [
|
|
3571
|
+
/* @__PURE__ */ o.jsx(Je.Header, { children: typeof n == "string" ? /* @__PURE__ */ o.jsx(G, { variant: "h6", className: "text-primary", children: n }) : n }),
|
|
3536
3572
|
/* @__PURE__ */ o.jsx(Je.Body, { children: e })
|
|
3537
|
-
] }), trigger: s ?? "hover", rootClose: !0, children: r }),
|
|
3538
|
-
const { LinkComponent: r } =
|
|
3573
|
+
] }), trigger: s ?? "hover", rootClose: !0, children: r }), ur = ({ currentSelection: n, selectedItemNavigateTo: e, children: t }) => {
|
|
3574
|
+
const { LinkComponent: r } = Y(ae);
|
|
3539
3575
|
if (!n || !n.id || !e)
|
|
3540
3576
|
return /* @__PURE__ */ o.jsx("div", { className: "luminus-input-container position-relative w-100", children: t });
|
|
3541
3577
|
const s = e(n);
|
|
3542
3578
|
return /* @__PURE__ */ o.jsx(r, { to: s, className: "luminus-input-container position-relative w-100 text-decoration-none", children: t });
|
|
3543
|
-
},
|
|
3579
|
+
}, gl = ({ InputContainer: n = ke, label: e, value: t, onChange: r, hidden: s, disabled: a, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ o.jsx(n, { isForCheckInput: !0, hidden: s, label: e ?? "", withoutLabel: c, className: i, children: /* @__PURE__ */ o.jsx(Q.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: t, onChange: (u) => {
|
|
3544
3580
|
var d;
|
|
3545
3581
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3546
|
-
}, className: i ?? "", hidden: s ?? !1, disabled: a ?? !1 }) }),
|
|
3547
|
-
const
|
|
3582
|
+
}, className: i ?? "", hidden: s ?? !1, disabled: a ?? !1 }) }), xl = ({ InputContainer: n = ke, type: e, value: t, onChange: r, debounceMs: s, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: f, list: g, className: b, step: w, noSelectOnFocus: p }) => {
|
|
3583
|
+
const _ = e === "number", k = S(() => {
|
|
3548
3584
|
if (!r)
|
|
3549
3585
|
return;
|
|
3550
|
-
const
|
|
3551
|
-
r(
|
|
3552
|
-
}, [
|
|
3553
|
-
const
|
|
3554
|
-
r && (
|
|
3555
|
-
}, [
|
|
3556
|
-
var
|
|
3557
|
-
const
|
|
3586
|
+
const y = f ?? null;
|
|
3587
|
+
r(_ ? y ? Number(y) : null : (y == null ? void 0 : y.toString()) ?? "");
|
|
3588
|
+
}, [f, _, r]), m = q(null), [N, j] = P((t == null ? void 0 : t.toString()) ?? ""), v = S((y) => {
|
|
3589
|
+
const C = y;
|
|
3590
|
+
r && (_ && r(C == null || C === "" ? null : Number(C)), r(C || null));
|
|
3591
|
+
}, [_, r]), $ = S((y) => {
|
|
3592
|
+
var F;
|
|
3593
|
+
const C = (F = y.target) == null ? void 0 : F.value;
|
|
3558
3594
|
if (!s) {
|
|
3559
|
-
|
|
3595
|
+
v(C);
|
|
3560
3596
|
return;
|
|
3561
3597
|
}
|
|
3562
|
-
|
|
3563
|
-
|
|
3598
|
+
j(C), m.current !== null && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
3599
|
+
v(C);
|
|
3564
3600
|
}, s);
|
|
3565
|
-
}, [s,
|
|
3566
|
-
|
|
3567
|
-
|
|
3601
|
+
}, [s, v]);
|
|
3602
|
+
O(() => {
|
|
3603
|
+
j(t === null ? "" : t.toString());
|
|
3568
3604
|
}, [t]);
|
|
3569
|
-
const [
|
|
3570
|
-
return /* @__PURE__ */ o.jsxs(n, { withoutLabel: i, label: a ?? "", hidden: u, className:
|
|
3571
|
-
/* @__PURE__ */ o.jsx(
|
|
3572
|
-
|
|
3605
|
+
const [D, I] = P(!1), T = fn(e, t ? t.toString() ?? null : null, D);
|
|
3606
|
+
return /* @__PURE__ */ o.jsxs(n, { withoutLabel: i, label: a ?? "", hidden: u, className: b, children: [
|
|
3607
|
+
/* @__PURE__ */ o.jsx(Q.Control, { type: T, placeholder: l ?? a, size: c, value: s ? N : t ?? "", onChange: $, className: b ?? "", hidden: u, disabled: d ?? !1, list: g, onFocus: (y) => {
|
|
3608
|
+
I(!0), !p && y.target.select();
|
|
3609
|
+
}, onBlur: () => I(!1), step: w }),
|
|
3610
|
+
h && t && r && !d && /* @__PURE__ */ o.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ o.jsx(ce, {}) }) })
|
|
3573
3611
|
] });
|
|
3574
|
-
},
|
|
3612
|
+
}, wl = ({
|
|
3575
3613
|
InputContainer: n = ke,
|
|
3576
3614
|
value: e,
|
|
3577
3615
|
options: t,
|
|
@@ -3584,241 +3622,241 @@ const Wi = "_item_1dy8x_1", ar = {
|
|
|
3584
3622
|
disabled: u,
|
|
3585
3623
|
showClearIcon: d,
|
|
3586
3624
|
clearValue: h,
|
|
3587
|
-
noSortOptions:
|
|
3625
|
+
noSortOptions: f,
|
|
3588
3626
|
className: g,
|
|
3589
|
-
noEmptyOption:
|
|
3627
|
+
noEmptyOption: b
|
|
3590
3628
|
// it will still add the empty option if there is no value provided or value is empty string or null
|
|
3591
3629
|
}) => {
|
|
3592
|
-
const
|
|
3630
|
+
const w = S(() => {
|
|
3593
3631
|
if (!r)
|
|
3594
3632
|
return;
|
|
3595
|
-
const
|
|
3596
|
-
r(i ?
|
|
3633
|
+
const p = h ?? null;
|
|
3634
|
+
r(i ? p ? Number(p) : null : (p == null ? void 0 : p.toString()) ?? "");
|
|
3597
3635
|
}, [h, i, r]);
|
|
3598
3636
|
return /* @__PURE__ */ o.jsxs(n, { withoutLabel: a, label: s ?? "", hidden: c, className: g, children: [
|
|
3599
|
-
/* @__PURE__ */ o.jsxs(
|
|
3600
|
-
var
|
|
3637
|
+
/* @__PURE__ */ o.jsxs(Q.Select, { size: l, value: e ?? "", onChange: (p) => {
|
|
3638
|
+
var k;
|
|
3601
3639
|
if (!r)
|
|
3602
3640
|
return;
|
|
3603
|
-
const
|
|
3604
|
-
i && r(
|
|
3641
|
+
const _ = (k = p.target) == null ? void 0 : k.value;
|
|
3642
|
+
i && r(_ ? parseInt(_, 10) : null), r(_ || null);
|
|
3605
3643
|
}, className: g ?? "", hidden: c, disabled: u ?? !1, children: [
|
|
3606
|
-
|
|
3607
|
-
t == null ? void 0 : t.sort((
|
|
3644
|
+
b && !(e == null || e === "") ? void 0 : /* @__PURE__ */ o.jsx("option", { value: "" }),
|
|
3645
|
+
t == null ? void 0 : t.sort((p, _) => f ? 0 : (p.name ?? "").localeCompare(_.name ?? "")).map((p) => /* @__PURE__ */ o.jsx("option", { value: p.id ?? "", children: p.name }, p.id))
|
|
3608
3646
|
] }),
|
|
3609
|
-
d && e && r && !u && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ o.jsx(
|
|
3647
|
+
d && e && r && !u && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ o.jsx(ce, {}) }) })
|
|
3610
3648
|
] });
|
|
3611
|
-
},
|
|
3612
|
-
var
|
|
3613
|
-
const [
|
|
3614
|
-
|
|
3649
|
+
}, vl = ({ InputContainer: n = ke, items: e, defaultSelection: t, selectedItemNavigateTo: r, onSearchQueryChange: s, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: f, additionalColumns: g, hidden: b, disabled: w, displayIdAsName: p, CustomOnChangeComponent: _, className: k }) => {
|
|
3650
|
+
var C, F;
|
|
3651
|
+
const [m, N] = P(t), [j, v] = P(!1);
|
|
3652
|
+
O(() => {
|
|
3615
3653
|
N(t);
|
|
3616
3654
|
}, [t]);
|
|
3617
|
-
const $ =
|
|
3618
|
-
N(
|
|
3619
|
-
}, []),
|
|
3620
|
-
v(!1), $(
|
|
3655
|
+
const $ = S((R) => {
|
|
3656
|
+
N(R);
|
|
3657
|
+
}, []), D = S((R) => {
|
|
3658
|
+
v(!1), $(R);
|
|
3621
3659
|
}, [$]);
|
|
3622
|
-
|
|
3623
|
-
c && c(
|
|
3624
|
-
}, [
|
|
3625
|
-
const I =
|
|
3626
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(n, { withoutLabel: d, label: u ?? "", hidden:
|
|
3627
|
-
/* @__PURE__ */ o.jsxs(
|
|
3628
|
-
|
|
3629
|
-
/* @__PURE__ */ o.jsxs(
|
|
3630
|
-
id: l ? Number(
|
|
3660
|
+
O(() => {
|
|
3661
|
+
c && c(m);
|
|
3662
|
+
}, [m, c]);
|
|
3663
|
+
const I = q(null), T = r !== void 0, y = T && m !== null;
|
|
3664
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(n, { withoutLabel: d, label: u ?? "", hidden: b, inputContainerClassName: x({ "luminus-dropdown-select-open": j }), className: k, children: [
|
|
3665
|
+
/* @__PURE__ */ o.jsxs(ur, { currentSelection: m, selectedItemNavigateTo: r, children: [
|
|
3666
|
+
p && (m == null ? void 0 : m.name) && /* @__PURE__ */ o.jsx(G, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: m.name }),
|
|
3667
|
+
/* @__PURE__ */ o.jsxs(Q.Select, { ref: I, size: h, value: (m == null ? void 0 : m.id) ?? "", onChange: (R) => N({
|
|
3668
|
+
id: l ? Number(R.target.value) ?? null : R.target.value,
|
|
3631
3669
|
name: ""
|
|
3632
|
-
}), onMouseDown: (
|
|
3633
|
-
|
|
3670
|
+
}), onMouseDown: (R) => {
|
|
3671
|
+
R.currentTarget.focus(), R.preventDefault();
|
|
3634
3672
|
}, onClick: () => {
|
|
3635
|
-
!
|
|
3636
|
-
}, className:
|
|
3637
|
-
"luminus-dropdown-picker-disabled":
|
|
3673
|
+
!T && !w && v(!0);
|
|
3674
|
+
}, className: x("w-100", {
|
|
3675
|
+
"luminus-dropdown-picker-disabled": w,
|
|
3638
3676
|
"luminus-dropdown-picker-link": y
|
|
3639
|
-
}), hidden:
|
|
3677
|
+
}), hidden: b, children: [
|
|
3640
3678
|
/* @__PURE__ */ o.jsx("option", { value: "" }),
|
|
3641
|
-
t && /* @__PURE__ */ o.jsx("option", { value: t.id ?? void 0, children: t.name && ((
|
|
3642
|
-
|
|
3679
|
+
t && /* @__PURE__ */ o.jsx("option", { value: t.id ?? void 0, children: t.name && ((C = t.name) == null ? void 0 : C.length) > 0 ? t.name : t.id }),
|
|
3680
|
+
m && /* @__PURE__ */ o.jsx("option", { value: m.id ?? void 0, children: m.name && ((F = m.name) == null ? void 0 : F.length) > 0 ? m.name : m.id })
|
|
3643
3681
|
] }),
|
|
3644
|
-
|
|
3645
|
-
!
|
|
3646
|
-
|
|
3647
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
3648
|
-
|
|
3682
|
+
_ || !w && T ? /* @__PURE__ */ o.jsxs("div", { className: "custom-picker-button", children: [
|
|
3683
|
+
!_ && !w && T && /* @__PURE__ */ o.jsx(z, { size: "sm", color: "secondary", onClick: (R) => {
|
|
3684
|
+
R.preventDefault(), R.stopPropagation(), v(!0);
|
|
3685
|
+
}, children: /* @__PURE__ */ o.jsx(on, {}) }),
|
|
3686
|
+
_ ?? null
|
|
3649
3687
|
] }) : null
|
|
3650
3688
|
] }),
|
|
3651
|
-
I.current && /* @__PURE__ */ o.jsx(
|
|
3689
|
+
I.current && /* @__PURE__ */ o.jsx(jt, { show: j, onCancel: () => v(!1), items: e, currentSelection: m, onSelectionChange: D, onSearchQueryChange: s, texts: a, itemsNameWidth: f, additionalColumns: g, isLoading: i, disabled: w, inputRef: I })
|
|
3652
3690
|
] }) });
|
|
3653
|
-
},
|
|
3654
|
-
const g =
|
|
3691
|
+
}, yl = ({ InputContainer: n = ke, value: e, onChange: t, label: r, size: s, showClearIcon: a, clearValue: i, hidden: l, disabled: c, rows: u, withoutLabel: d, debounceMs: h, className: f }) => {
|
|
3692
|
+
const g = S(() => {
|
|
3655
3693
|
if (!t)
|
|
3656
3694
|
return;
|
|
3657
|
-
const
|
|
3658
|
-
t((
|
|
3659
|
-
}, [i, t]),
|
|
3660
|
-
const N =
|
|
3695
|
+
const m = i ?? null;
|
|
3696
|
+
t((m == null ? void 0 : m.toString()) ?? "");
|
|
3697
|
+
}, [i, t]), b = q(null), [w, p] = P((e == null ? void 0 : e.toString()) ?? ""), _ = S((m) => {
|
|
3698
|
+
const N = m;
|
|
3661
3699
|
t && t(N || null);
|
|
3662
|
-
}, [t]),
|
|
3663
|
-
var
|
|
3664
|
-
const N = (
|
|
3700
|
+
}, [t]), k = S((m) => {
|
|
3701
|
+
var j;
|
|
3702
|
+
const N = (j = m.target) == null ? void 0 : j.value;
|
|
3665
3703
|
if (!h) {
|
|
3666
|
-
|
|
3704
|
+
_(N);
|
|
3667
3705
|
return;
|
|
3668
3706
|
}
|
|
3669
|
-
|
|
3670
|
-
|
|
3707
|
+
p(N), b.current !== null && window.clearTimeout(b.current), b.current = window.setTimeout(() => {
|
|
3708
|
+
_(N);
|
|
3671
3709
|
}, h);
|
|
3672
|
-
}, [h,
|
|
3673
|
-
return
|
|
3674
|
-
|
|
3675
|
-
}, [e]), /* @__PURE__ */ o.jsxs(n, { label: r ?? "", hidden: l, withoutLabel: d, className:
|
|
3676
|
-
/* @__PURE__ */ o.jsx(
|
|
3677
|
-
a && e && t && !c && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(
|
|
3710
|
+
}, [h, _]);
|
|
3711
|
+
return O(() => {
|
|
3712
|
+
p(e === null ? "" : e.toString());
|
|
3713
|
+
}, [e]), /* @__PURE__ */ o.jsxs(n, { label: r ?? "", hidden: l, withoutLabel: d, className: f, isForTextAreaInput: !0, children: [
|
|
3714
|
+
/* @__PURE__ */ o.jsx(Q.Control, { as: "textarea", size: s, value: h ? w : e ?? "", onChange: k, hidden: l, disabled: c, rows: u ?? 2, className: "w-100" }),
|
|
3715
|
+
a && e && t && !c && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ o.jsx(ce, {}) }) })
|
|
3678
3716
|
] });
|
|
3679
|
-
},
|
|
3680
|
-
const
|
|
3717
|
+
}, bl = ({ InputContainer: n = ke, value: e, onChange: t, debounceMs: r, label: s, withoutLabel: a, placeholder: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: h, className: f, step: g, stepperStep: b = 1 }) => {
|
|
3718
|
+
const w = S(() => {
|
|
3681
3719
|
if (!t)
|
|
3682
3720
|
return;
|
|
3683
|
-
const
|
|
3684
|
-
t(
|
|
3685
|
-
}, [h, t]),
|
|
3686
|
-
const v =
|
|
3721
|
+
const j = h ?? null;
|
|
3722
|
+
t(j ? Number(j) : null);
|
|
3723
|
+
}, [h, t]), p = q(null), [_, k] = P((e == null ? void 0 : e.toString()) ?? ""), m = S((j) => {
|
|
3724
|
+
const v = j;
|
|
3687
3725
|
t && t(v == null || v === "" ? null : Number(v));
|
|
3688
|
-
}, [t]), N =
|
|
3726
|
+
}, [t]), N = S((j) => {
|
|
3689
3727
|
var $;
|
|
3690
|
-
const v = ($ =
|
|
3728
|
+
const v = ($ = j.target) == null ? void 0 : $.value;
|
|
3691
3729
|
if (!r) {
|
|
3692
|
-
|
|
3730
|
+
m(v);
|
|
3693
3731
|
return;
|
|
3694
3732
|
}
|
|
3695
|
-
|
|
3696
|
-
|
|
3733
|
+
k(v), p.current !== null && window.clearTimeout(p.current), p.current = window.setTimeout(() => {
|
|
3734
|
+
m(v);
|
|
3697
3735
|
}, r);
|
|
3698
|
-
}, [r,
|
|
3699
|
-
return
|
|
3700
|
-
|
|
3701
|
-
}, [e]), /* @__PURE__ */ o.jsx(n, { withoutLabel: a, label: s ?? "", hidden: c, className:
|
|
3702
|
-
/* @__PURE__ */ o.jsx(
|
|
3703
|
-
/* @__PURE__ */ o.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ o.jsx(
|
|
3704
|
-
|
|
3705
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
3706
|
-
/* @__PURE__ */ o.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ o.jsx(
|
|
3707
|
-
|
|
3708
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
3709
|
-
d && e && t && !u && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(
|
|
3736
|
+
}, [r, m]);
|
|
3737
|
+
return O(() => {
|
|
3738
|
+
k(e === null ? "" : e.toString());
|
|
3739
|
+
}, [e]), /* @__PURE__ */ o.jsx(n, { withoutLabel: a, label: s ?? "", hidden: c, className: f, children: /* @__PURE__ */ o.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3740
|
+
/* @__PURE__ */ o.jsx(Q.Control, { type: "number", placeholder: i ?? s, size: l, value: r ? _ : e ?? "", onChange: N, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: u ?? !1, step: g }),
|
|
3741
|
+
/* @__PURE__ */ o.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ o.jsx(z, { size: "sm", onClick: (j) => {
|
|
3742
|
+
j.preventDefault(), j.stopPropagation(), m(((e ?? 0) - b).toString());
|
|
3743
|
+
}, children: /* @__PURE__ */ o.jsx(ar, {}) }) }),
|
|
3744
|
+
/* @__PURE__ */ o.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ o.jsx(z, { size: "sm", onClick: (j) => {
|
|
3745
|
+
j.preventDefault(), j.stopPropagation(), m(((e ?? 0) + b).toString());
|
|
3746
|
+
}, children: /* @__PURE__ */ o.jsx(ir, {}) }) }),
|
|
3747
|
+
d && e && t && !u && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ o.jsx(ce, {}) }) })
|
|
3710
3748
|
] }) });
|
|
3711
|
-
},
|
|
3712
|
-
const { register: d, formState: h, setValue:
|
|
3713
|
-
|
|
3714
|
-
const
|
|
3715
|
-
let
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
}),
|
|
3719
|
-
}, [h, e]),
|
|
3720
|
-
h.isSubmitted &&
|
|
3749
|
+
}, _l = ({ InputContainer: n = fe, formField: e, label: t, resetsFields: r, type: s, required: a, hidden: i, disabled: l, withoutLabel: c, className: u }) => {
|
|
3750
|
+
const { register: d, formState: h, setValue: f } = le(), [g, b] = P(void 0), [w, p] = P(!1);
|
|
3751
|
+
O(() => {
|
|
3752
|
+
const k = e.split(".");
|
|
3753
|
+
let m = h.errors;
|
|
3754
|
+
k.forEach((N) => {
|
|
3755
|
+
m !== void 0 && (m = m[N]);
|
|
3756
|
+
}), b(m);
|
|
3757
|
+
}, [h, e]), O(() => {
|
|
3758
|
+
h.isSubmitted && p(!0);
|
|
3721
3759
|
}, [h]);
|
|
3722
|
-
const
|
|
3723
|
-
return /* @__PURE__ */ o.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid:
|
|
3724
|
-
/* @__PURE__ */ o.jsx(
|
|
3760
|
+
const _ = g !== void 0;
|
|
3761
|
+
return /* @__PURE__ */ o.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid: _, withoutLabel: c, className: u, children: [
|
|
3762
|
+
/* @__PURE__ */ o.jsx(Q.Check, { id: `check-${e}`, type: s ?? "checkbox", label: `${t}${a ? " *" : ""}`, ...d(e, {
|
|
3725
3763
|
onChange: () => {
|
|
3726
|
-
r && r.forEach((
|
|
3764
|
+
r && r.forEach((k) => f(k, null, { shouldDirty: !0, shouldValidate: w }));
|
|
3727
3765
|
}
|
|
3728
|
-
}), isInvalid:
|
|
3766
|
+
}), isInvalid: _, hidden: i, disabled: l, className: "w-100" }),
|
|
3729
3767
|
g && /* @__PURE__ */ o.jsx(pe, { message: g.message })
|
|
3730
3768
|
] });
|
|
3731
|
-
},
|
|
3732
|
-
const { register: u, formState: d, setValue: h, watch:
|
|
3733
|
-
|
|
3734
|
-
const
|
|
3769
|
+
}, jl = ({ InputContainer: n = fe, label: e, formField: t, options: r, resetsFields: s, required: a, disabled: i, hidden: l, className: c }) => {
|
|
3770
|
+
const { register: u, formState: d, setValue: h, watch: f } = le(), [g, b] = P(void 0), [w, p] = P(!1), _ = K(() => r, [r]);
|
|
3771
|
+
O(() => {
|
|
3772
|
+
const m = t.split(".");
|
|
3735
3773
|
let N = d.errors;
|
|
3736
|
-
|
|
3737
|
-
N !== void 0 && (N = N[
|
|
3738
|
-
}),
|
|
3739
|
-
}, [d, t]),
|
|
3740
|
-
d.isSubmitted &&
|
|
3774
|
+
m.forEach((j) => {
|
|
3775
|
+
N !== void 0 && (N = N[j]);
|
|
3776
|
+
}), b(N);
|
|
3777
|
+
}, [d, t]), O(() => {
|
|
3778
|
+
d.isSubmitted && p(!0);
|
|
3741
3779
|
}, [d]);
|
|
3742
|
-
const
|
|
3743
|
-
return /* @__PURE__ */ o.jsxs(n, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid:
|
|
3744
|
-
|
|
3780
|
+
const k = g !== void 0;
|
|
3781
|
+
return /* @__PURE__ */ o.jsxs(n, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: k, className: c, children: [
|
|
3782
|
+
_.map((m) => /* @__PURE__ */ o.jsx(Q.Check, { id: `radio-${m.id}`, label: m.name, type: "radio", value: m.id ?? "", checked: f(t) === m.id, ...u(t, {
|
|
3745
3783
|
onChange: () => {
|
|
3746
|
-
s && s.forEach((N) => h(N, null, { shouldDirty: !0, shouldValidate:
|
|
3784
|
+
s && s.forEach((N) => h(N, null, { shouldDirty: !0, shouldValidate: w }));
|
|
3747
3785
|
}
|
|
3748
|
-
}), isInvalid:
|
|
3786
|
+
}), isInvalid: k, hidden: l, disabled: i, className: "w-100" }, m.id)),
|
|
3749
3787
|
g && /* @__PURE__ */ o.jsx(pe, { message: g.message })
|
|
3750
3788
|
] });
|
|
3751
|
-
},
|
|
3752
|
-
const { register:
|
|
3789
|
+
}, kl = ({ InputContainer: n = fe, formField: e, label: t, resetsFields: r, size: s, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, rows: d, withoutLabel: h, customFormControlProps: f, className: g }) => {
|
|
3790
|
+
const { register: b, formState: w, setValue: p, watch: _ } = le(), [k, m] = P(void 0), [N, j] = P(!1), v = S(() => {
|
|
3753
3791
|
const I = i ?? null;
|
|
3754
|
-
|
|
3755
|
-
}, [i,
|
|
3792
|
+
p(e, (I == null ? void 0 : I.toString()) ?? "", { shouldDirty: !0, shouldValidate: N });
|
|
3793
|
+
}, [i, p, e, N]), $ = S(() => {
|
|
3756
3794
|
const I = e.split(".");
|
|
3757
|
-
let
|
|
3795
|
+
let T = w.errors;
|
|
3758
3796
|
I.forEach((y) => {
|
|
3759
|
-
|
|
3760
|
-
}),
|
|
3761
|
-
}, [
|
|
3762
|
-
|
|
3797
|
+
T !== void 0 && (T = T[y]);
|
|
3798
|
+
}), m(T);
|
|
3799
|
+
}, [w, e]);
|
|
3800
|
+
O(() => {
|
|
3763
3801
|
$();
|
|
3764
|
-
}, [$]),
|
|
3765
|
-
|
|
3766
|
-
}, [
|
|
3767
|
-
const
|
|
3768
|
-
return /* @__PURE__ */ o.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid:
|
|
3769
|
-
/* @__PURE__ */ o.jsx(
|
|
3802
|
+
}, [$]), O(() => {
|
|
3803
|
+
w.isSubmitted && j(!0);
|
|
3804
|
+
}, [w]);
|
|
3805
|
+
const D = k !== void 0;
|
|
3806
|
+
return /* @__PURE__ */ o.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: D, className: g, isForTextAreaInput: !0, children: [
|
|
3807
|
+
/* @__PURE__ */ o.jsx(Q.Control, { as: "textarea", size: s, ...b(e, {
|
|
3770
3808
|
setValueAs: (I) => I == null || I === "" ? null : I,
|
|
3771
3809
|
onChange: () => {
|
|
3772
|
-
r && r.forEach((I) =>
|
|
3810
|
+
r && r.forEach((I) => p(I, null, { shouldDirty: !0, shouldValidate: N }));
|
|
3773
3811
|
}
|
|
3774
|
-
}), isInvalid:
|
|
3775
|
-
a &&
|
|
3776
|
-
|
|
3812
|
+
}), isInvalid: D, hidden: c, disabled: u, rows: d ?? 2, className: "w-100", ...f }),
|
|
3813
|
+
a && _(e) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: v, children: /* @__PURE__ */ o.jsx(ce, {}) }) }),
|
|
3814
|
+
k && /* @__PURE__ */ o.jsx(pe, { message: k.message })
|
|
3777
3815
|
] });
|
|
3778
|
-
},
|
|
3779
|
-
const { register: k, formState:
|
|
3780
|
-
const
|
|
3781
|
-
e === "number" ?
|
|
3816
|
+
}, Nl = ({ InputContainer: n = fe, type: e, formField: t, label: r, placeholder: s, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: f, list: g, step: b, CustomOnChangeComponent: w, noSelectOnFocus: p, className: _ }) => {
|
|
3817
|
+
const { register: k, formState: m, setValue: N, watch: j } = le(), [v, $] = P(void 0), [D, I] = P(!1), T = S(() => {
|
|
3818
|
+
const A = c ?? null;
|
|
3819
|
+
e === "number" ? N(t, A !== null ? Number(A) : null, {
|
|
3782
3820
|
shouldDirty: !0,
|
|
3783
|
-
shouldValidate:
|
|
3784
|
-
}) :
|
|
3785
|
-
}, [c, e,
|
|
3786
|
-
const
|
|
3787
|
-
let
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
}),
|
|
3791
|
-
}, [
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
}, [
|
|
3795
|
-
|
|
3796
|
-
}, [
|
|
3797
|
-
const
|
|
3798
|
-
return /* @__PURE__ */ o.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel:
|
|
3821
|
+
shouldValidate: D
|
|
3822
|
+
}) : N(t, (A == null ? void 0 : A.toString()) ?? "", { shouldDirty: !0, shouldValidate: D });
|
|
3823
|
+
}, [c, e, N, t, D]), y = S(() => {
|
|
3824
|
+
const A = t.split(".");
|
|
3825
|
+
let re = m.errors;
|
|
3826
|
+
A.forEach((ee) => {
|
|
3827
|
+
re !== void 0 && (re = re[ee]);
|
|
3828
|
+
}), $(re);
|
|
3829
|
+
}, [m, t]);
|
|
3830
|
+
O(() => {
|
|
3831
|
+
y();
|
|
3832
|
+
}, [y]), O(() => {
|
|
3833
|
+
m.isSubmitted && I(!0);
|
|
3834
|
+
}, [m]);
|
|
3835
|
+
const C = v !== void 0, [F, R] = P(!1), H = j(t), Z = fn(e, H ?? null, F);
|
|
3836
|
+
return /* @__PURE__ */ o.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: f, isInvalid: C, className: _, children: [
|
|
3799
3837
|
/* @__PURE__ */ o.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3800
|
-
/* @__PURE__ */ o.jsx(
|
|
3801
|
-
|
|
3838
|
+
/* @__PURE__ */ o.jsx(Q.Control, { type: Z, placeholder: s ?? r, size: a, onFocus: (A) => {
|
|
3839
|
+
R(!0), !p && A.target.select();
|
|
3802
3840
|
}, ...k(t, {
|
|
3803
|
-
setValueAs: (
|
|
3841
|
+
setValueAs: (A) => e === "number" ? A == null || A === "" ? null : Number(A) : A == null || A === "" ? null : A,
|
|
3804
3842
|
onChange: () => {
|
|
3805
|
-
i && i.forEach((
|
|
3843
|
+
i && i.forEach((A) => N(A, null, { shouldDirty: !0, shouldValidate: D }));
|
|
3806
3844
|
},
|
|
3807
|
-
onBlur: () =>
|
|
3808
|
-
}), isInvalid:
|
|
3809
|
-
|
|
3845
|
+
onBlur: () => R(!1)
|
|
3846
|
+
}), isInvalid: C, hidden: d, disabled: h, list: g, className: "w-100", step: b }),
|
|
3847
|
+
w && /* @__PURE__ */ o.jsx("div", { className: "custom-picker-button", children: w })
|
|
3810
3848
|
] }),
|
|
3811
|
-
l &&
|
|
3812
|
-
|
|
3849
|
+
l && j(t) && /* @__PURE__ */ o.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: T, children: /* @__PURE__ */ o.jsx(ce, {}) }) }),
|
|
3850
|
+
v && /* @__PURE__ */ o.jsx(pe, { message: v.message })
|
|
3813
3851
|
] });
|
|
3814
|
-
},
|
|
3815
|
-
const { formState:
|
|
3852
|
+
}, Cl = ({ InputContainer: n = fe, formField: e, label: t, size: r, defaultSelection: s, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: f, texts: g, dropdownItemsNameWidth: b, isLoading: w, withoutLabel: p, additionalColumns: _, CustomOnChangeComponent: k, displayIdAsName: m, className: N }) => {
|
|
3853
|
+
const { formState: j, setValue: v, watch: $, control: D } = le(), [I, T] = P(void 0), [y, C] = P(!1), [F, R] = P(!1), H = $(e) ?? null, Z = H === (s == null ? void 0 : s.id) ? s == null ? void 0 : s.name : $(`${e}-DropdownName`), A = K(() => H == null ? null : { id: H ?? null, name: Z ?? "" }, [H, Z]), re = S(() => {
|
|
3816
3854
|
const B = e.split(".");
|
|
3817
|
-
let ue =
|
|
3855
|
+
let ue = j.errors;
|
|
3818
3856
|
B.forEach((Qe) => {
|
|
3819
3857
|
ue !== void 0 && (ue = ue[Qe]);
|
|
3820
|
-
}),
|
|
3821
|
-
}, [
|
|
3858
|
+
}), T(ue);
|
|
3859
|
+
}, [j, e]), ee = S((B) => {
|
|
3822
3860
|
if ((B == null ? void 0 : B.id) === H)
|
|
3823
3861
|
return;
|
|
3824
3862
|
if (a && a.forEach((Qe) => v(Qe, null, { shouldDirty: !0, shouldValidate: F })), B === null) {
|
|
@@ -3833,232 +3871,233 @@ const Wi = "_item_1dy8x_1", ar = {
|
|
|
3833
3871
|
shouldDirty: !0,
|
|
3834
3872
|
shouldValidate: F
|
|
3835
3873
|
}), v(`${e}-DropdownName`, B.name ?? "");
|
|
3836
|
-
}, [v, e, F, i, a, H]),
|
|
3837
|
-
|
|
3838
|
-
}, [
|
|
3839
|
-
|
|
3874
|
+
}, [v, e, F, i, a, H]), U = S((B) => {
|
|
3875
|
+
C(!1), ee(B);
|
|
3876
|
+
}, [ee]), E = S(() => {
|
|
3877
|
+
C(!1);
|
|
3840
3878
|
}, []);
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
}, [
|
|
3844
|
-
|
|
3845
|
-
}, [
|
|
3846
|
-
const M =
|
|
3847
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel:
|
|
3848
|
-
/* @__PURE__ */ o.jsxs(
|
|
3849
|
-
|
|
3850
|
-
/* @__PURE__ */ o.jsx(
|
|
3879
|
+
O(() => {
|
|
3880
|
+
re();
|
|
3881
|
+
}, [re]), O(() => {
|
|
3882
|
+
j.isSubmitted && R(!0);
|
|
3883
|
+
}, [j]);
|
|
3884
|
+
const M = q(null), X = I !== void 0, Pe = f !== void 0, dr = Pe && A !== null;
|
|
3885
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: p, isInvalid: X, inputContainerClassName: x({ "luminus-dropdown-select-open": y }), className: N, children: [
|
|
3886
|
+
/* @__PURE__ */ o.jsxs(ur, { currentSelection: A, selectedItemNavigateTo: f, children: [
|
|
3887
|
+
m && (A == null ? void 0 : A.name) && /* @__PURE__ */ o.jsx(G, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: A.name }),
|
|
3888
|
+
/* @__PURE__ */ o.jsx(dn, { control: D, name: e, render: () => /* @__PURE__ */ o.jsx(Q.Select, { size: r, onMouseDown: (B) => {
|
|
3851
3889
|
B.currentTarget.focus(), B.preventDefault();
|
|
3852
3890
|
}, onClick: () => {
|
|
3853
|
-
!Pe && !u &&
|
|
3891
|
+
!Pe && !u && C(!0);
|
|
3854
3892
|
}, ref: M, value: H ?? "", onChange: () => {
|
|
3855
|
-
}, isInvalid: X, hidden: c, className:
|
|
3893
|
+
}, isInvalid: X, hidden: c, className: x("w-100", {
|
|
3856
3894
|
"luminus-dropdown-picker-disabled": u,
|
|
3857
|
-
"luminus-dropdown-picker-link":
|
|
3858
|
-
}), children: /* @__PURE__ */ o.jsx("option", { value: H, children:
|
|
3859
|
-
|
|
3860
|
-
!
|
|
3861
|
-
B.preventDefault(), B.stopPropagation(),
|
|
3862
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
3863
|
-
|
|
3895
|
+
"luminus-dropdown-picker-link": dr
|
|
3896
|
+
}), children: /* @__PURE__ */ o.jsx("option", { value: H, children: m ? H : (Z == null ? void 0 : Z.length) > 0 ? Z : H }) }) }),
|
|
3897
|
+
k || !u && Pe ? /* @__PURE__ */ o.jsxs("div", { className: "custom-picker-button", children: [
|
|
3898
|
+
!k && !u && Pe && /* @__PURE__ */ o.jsx(z, { size: "sm", color: "secondary", onClick: (B) => {
|
|
3899
|
+
B.preventDefault(), B.stopPropagation(), C(!0);
|
|
3900
|
+
}, children: /* @__PURE__ */ o.jsx(on, {}) }),
|
|
3901
|
+
k ?? null
|
|
3864
3902
|
] }) : null
|
|
3865
3903
|
] }),
|
|
3866
3904
|
I && /* @__PURE__ */ o.jsx(pe, { message: I.message }),
|
|
3867
|
-
M.current && /* @__PURE__ */ o.jsx(
|
|
3905
|
+
M.current && /* @__PURE__ */ o.jsx(jt, { show: y, onCancel: E, items: d, currentSelection: A, onSelectionChange: U, onSearchQueryChange: h, texts: g, itemsNameWidth: b, additionalColumns: _, displayIdAsName: m, isLoading: w, disabled: u, inputRef: M })
|
|
3868
3906
|
] }) });
|
|
3869
|
-
},
|
|
3870
|
-
const { watch: g, setValue:
|
|
3871
|
-
|
|
3872
|
-
}, [
|
|
3873
|
-
const
|
|
3874
|
-
let I =
|
|
3875
|
-
|
|
3876
|
-
I !== void 0 && (I = I[
|
|
3907
|
+
}, Il = ({ InputContainer: n = fe, label: e, formField: t, hidden: r, required: s, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h, className: f }) => {
|
|
3908
|
+
const { watch: g, setValue: b, register: w, formState: p } = le(), [_, k] = P(!1), [m, N] = P(void 0), j = S(() => {
|
|
3909
|
+
b(t, "");
|
|
3910
|
+
}, [b, t]), v = S(() => {
|
|
3911
|
+
const D = t.split(".");
|
|
3912
|
+
let I = p.errors;
|
|
3913
|
+
D.forEach((T) => {
|
|
3914
|
+
I !== void 0 && (I = I[T]);
|
|
3877
3915
|
}), N(I);
|
|
3878
|
-
}, [
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
}, [
|
|
3882
|
-
const $ =
|
|
3883
|
-
return /* @__PURE__ */ o.jsxs(n, { label: `${e}${s ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: $, className:
|
|
3884
|
-
/* @__PURE__ */ o.jsx(
|
|
3916
|
+
}, [p, t]);
|
|
3917
|
+
O(v, [v]), O(() => {
|
|
3918
|
+
p.isSubmitted && k(!0);
|
|
3919
|
+
}, [p]);
|
|
3920
|
+
const $ = m !== void 0;
|
|
3921
|
+
return /* @__PURE__ */ o.jsxs(n, { label: `${e}${s ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: $, className: f, children: [
|
|
3922
|
+
/* @__PURE__ */ o.jsx(ln, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: $, hidden: r, disabled: i, className: "w-100", ...w(t, {
|
|
3885
3923
|
onChange: () => {
|
|
3886
|
-
c && c.forEach((
|
|
3924
|
+
c && c.forEach((D) => b(D, null, { shouldDirty: !0, shouldValidate: _ }));
|
|
3887
3925
|
}
|
|
3888
3926
|
}) }),
|
|
3889
|
-
l && g(t) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(
|
|
3890
|
-
|
|
3927
|
+
l && g(t) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ o.jsx(ce, {}) }) }),
|
|
3928
|
+
m && /* @__PURE__ */ o.jsx(pe, { message: m.message })
|
|
3891
3929
|
] });
|
|
3892
|
-
},
|
|
3893
|
-
const { formState: t } = le(), [r, s] =
|
|
3894
|
-
return
|
|
3930
|
+
}, $l = ({ children: n, onStorno: e }) => {
|
|
3931
|
+
const { formState: t } = le(), [r, s] = P(!1);
|
|
3932
|
+
return O(() => {
|
|
3895
3933
|
s(Object.keys(t.dirtyFields).length > 0);
|
|
3896
|
-
}, [t]), r ? /* @__PURE__ */ o.jsx(
|
|
3897
|
-
},
|
|
3898
|
-
const { customSelectTexts:
|
|
3934
|
+
}, [t]), r ? /* @__PURE__ */ o.jsx(Ba, { onStorno: e, children: n }) : null;
|
|
3935
|
+
}, Sl = ({ InputContainer: n = fe, options: e, formField: t, label: r, size: s, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: f, className: g }) => {
|
|
3936
|
+
const { customSelectTexts: b } = Y(ae), { formState: w, setValue: p, watch: _, control: k } = le(), [m, N] = P(void 0), [j, v] = P(!1), [$, D] = P(!1), [I, T] = P(""), y = _(t), C = K(() => e.find((E) => E.id === y) ?? null, [e, y]), F = S(() => {
|
|
3899
3937
|
const E = t.split(".");
|
|
3900
|
-
let M =
|
|
3938
|
+
let M = w.errors;
|
|
3901
3939
|
E.forEach((X) => {
|
|
3902
3940
|
M !== void 0 && (M = M[X]);
|
|
3903
3941
|
}), N(M);
|
|
3904
|
-
}, [
|
|
3942
|
+
}, [w, t]), R = S((E) => {
|
|
3905
3943
|
if ((E == null ? void 0 : E.id) === y)
|
|
3906
3944
|
return;
|
|
3907
|
-
if (a && a.forEach((X) =>
|
|
3908
|
-
|
|
3945
|
+
if (a && a.forEach((X) => p(X, null, { shouldDirty: !0, shouldValidate: $ })), E === null) {
|
|
3946
|
+
p(t, null, {
|
|
3909
3947
|
shouldDirty: !0,
|
|
3910
3948
|
shouldValidate: $
|
|
3911
3949
|
});
|
|
3912
3950
|
return;
|
|
3913
3951
|
}
|
|
3914
3952
|
let M = null;
|
|
3915
|
-
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,
|
|
3953
|
+
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, p(t, M, {
|
|
3916
3954
|
shouldDirty: !0,
|
|
3917
3955
|
shouldValidate: $
|
|
3918
3956
|
});
|
|
3919
|
-
}, [
|
|
3920
|
-
v(!1),
|
|
3921
|
-
}, [
|
|
3922
|
-
|
|
3957
|
+
}, [p, t, i, a, y, $]), H = S((E) => {
|
|
3958
|
+
v(!1), R(E);
|
|
3959
|
+
}, [R]), Z = S((E) => {
|
|
3960
|
+
T(E);
|
|
3923
3961
|
}, []);
|
|
3924
|
-
|
|
3962
|
+
O(() => {
|
|
3925
3963
|
F();
|
|
3926
|
-
}, [F]),
|
|
3927
|
-
|
|
3928
|
-
}, [
|
|
3929
|
-
const
|
|
3964
|
+
}, [F]), O(() => {
|
|
3965
|
+
w.isSubmitted && D(!0);
|
|
3966
|
+
}, [w]);
|
|
3967
|
+
const A = S((E) => {
|
|
3930
3968
|
var M;
|
|
3931
|
-
return E === null ? "" : !E.name || E.name.length === 0 ? ((M = E.id) == null ? void 0 : M.toString()) ?? "" :
|
|
3932
|
-
}, [
|
|
3969
|
+
return E === null ? "" : !E.name || E.name.length === 0 ? ((M = E.id) == null ? void 0 : M.toString()) ?? "" : f ? `${E.name} (${E.id})` : E.name;
|
|
3970
|
+
}, [f]), re = K(() => e.map((E) => ({
|
|
3933
3971
|
id: E.id,
|
|
3934
|
-
name:
|
|
3935
|
-
})).filter((E) =>
|
|
3936
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid:
|
|
3937
|
-
/* @__PURE__ */ o.jsx(
|
|
3972
|
+
name: A(E)
|
|
3973
|
+
})).filter((E) => rs(E.name, I)).sort((E, M) => h ? 0 : (E.name ?? "").localeCompare(M.name ?? "")), [e, h, I, A]), ee = q(null), U = m !== void 0;
|
|
3974
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: U, inputContainerClassName: x({ "luminus-dropdown-select-open": j }), className: g, children: [
|
|
3975
|
+
/* @__PURE__ */ o.jsx(dn, { control: k, name: t, render: () => /* @__PURE__ */ o.jsx(Q.Select, { size: s, onMouseDown: (E) => {
|
|
3938
3976
|
E.currentTarget.focus(), E.preventDefault();
|
|
3939
3977
|
}, onClick: () => {
|
|
3940
3978
|
v(!0);
|
|
3941
|
-
}, ref:
|
|
3942
|
-
}, isInvalid:
|
|
3943
|
-
|
|
3944
|
-
|
|
3979
|
+
}, ref: ee, value: y ?? "", onChange: () => {
|
|
3980
|
+
}, isInvalid: U, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ o.jsx("option", { value: (C == null ? void 0 : C.id) ?? "", children: A(C) }) }) }),
|
|
3981
|
+
m && /* @__PURE__ */ o.jsx(pe, { message: m.message }),
|
|
3982
|
+
ee.current && /* @__PURE__ */ o.jsx(jt, { show: j, onCancel: () => v(!1), items: re, currentSelection: C ?? null, onSelectionChange: H, onSearchQueryChange: Z, texts: b, disabled: u, inputRef: ee, autoHideSearch: !0, allItemsLength: e.length })
|
|
3945
3983
|
] }) });
|
|
3946
|
-
},
|
|
3947
|
-
const { register:
|
|
3984
|
+
}, Tl = ({ InputContainer: n = fe, formField: e, label: t, placeholder: r, size: s, resetsFields: a, showClearIcon: i, clearValue: l, required: c, hidden: u, disabled: d, withoutLabel: h, step: f, stepperStep: g = 1, className: b }) => {
|
|
3985
|
+
const { register: w, formState: p, setValue: _, watch: k } = le(), [m, N] = P(void 0), [j, v] = P(!1), $ = S(() => {
|
|
3948
3986
|
const y = l ?? null;
|
|
3949
|
-
|
|
3987
|
+
_(e, y !== null ? Number(y) : null, {
|
|
3950
3988
|
shouldDirty: !0,
|
|
3951
|
-
shouldValidate:
|
|
3989
|
+
shouldValidate: j
|
|
3952
3990
|
});
|
|
3953
|
-
}, [l,
|
|
3991
|
+
}, [l, _, e, j]), D = S(() => {
|
|
3954
3992
|
const y = e.split(".");
|
|
3955
|
-
let
|
|
3993
|
+
let C = p.errors;
|
|
3956
3994
|
y.forEach((F) => {
|
|
3957
|
-
|
|
3958
|
-
}), N(
|
|
3959
|
-
}, [
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
}, [
|
|
3963
|
-
|
|
3964
|
-
}, [
|
|
3965
|
-
const I =
|
|
3966
|
-
return /* @__PURE__ */ o.jsxs(n, { label: `${t}${c ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: I, className:
|
|
3995
|
+
C !== void 0 && (C = C[F]);
|
|
3996
|
+
}), N(C);
|
|
3997
|
+
}, [p, e]);
|
|
3998
|
+
O(() => {
|
|
3999
|
+
D();
|
|
4000
|
+
}, [D]), O(() => {
|
|
4001
|
+
p.isSubmitted && v(!0);
|
|
4002
|
+
}, [p]);
|
|
4003
|
+
const I = m !== void 0, T = k(e);
|
|
4004
|
+
return /* @__PURE__ */ o.jsxs(n, { label: `${t}${c ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: I, className: b, children: [
|
|
3967
4005
|
/* @__PURE__ */ o.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3968
|
-
/* @__PURE__ */ o.jsx(
|
|
4006
|
+
/* @__PURE__ */ o.jsx(Q.Control, { type: "number", placeholder: r ?? t, size: s, ...w(e, {
|
|
3969
4007
|
setValueAs: (y) => y == null || y === "" ? null : Number(y),
|
|
3970
4008
|
onChange: () => {
|
|
3971
|
-
a && a.forEach((y) =>
|
|
4009
|
+
a && a.forEach((y) => _(y, null, { shouldDirty: !0, shouldValidate: j }));
|
|
3972
4010
|
}
|
|
3973
|
-
}), isInvalid: I, hidden: u, disabled: d, className: "w-100 luminus-numeric-stepper", step:
|
|
3974
|
-
/* @__PURE__ */ o.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ o.jsx(
|
|
3975
|
-
y.preventDefault(), y.stopPropagation(),
|
|
3976
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
3977
|
-
/* @__PURE__ */ o.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ o.jsx(
|
|
3978
|
-
y.preventDefault(), y.stopPropagation(),
|
|
3979
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
4011
|
+
}), isInvalid: I, hidden: u, disabled: d, className: "w-100 luminus-numeric-stepper", step: f }),
|
|
4012
|
+
/* @__PURE__ */ o.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ o.jsx(z, { size: "sm", onClick: (y) => {
|
|
4013
|
+
y.preventDefault(), y.stopPropagation(), _(e, ((T ? Number(T) : 0) - g).toString(), { shouldDirty: !0, shouldValidate: j });
|
|
4014
|
+
}, children: /* @__PURE__ */ o.jsx(ar, {}) }) }),
|
|
4015
|
+
/* @__PURE__ */ o.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ o.jsx(z, { size: "sm", onClick: (y) => {
|
|
4016
|
+
y.preventDefault(), y.stopPropagation(), _(e, ((T ? Number(T) : 0) + g).toString(), { shouldDirty: !0, shouldValidate: j });
|
|
4017
|
+
}, children: /* @__PURE__ */ o.jsx(ir, {}) }) })
|
|
3980
4018
|
] }),
|
|
3981
|
-
i &&
|
|
3982
|
-
|
|
4019
|
+
i && k(e) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: $, children: /* @__PURE__ */ o.jsx(ce, {}) }) }),
|
|
4020
|
+
m && /* @__PURE__ */ o.jsx(pe, { message: m.message })
|
|
3983
4021
|
] });
|
|
3984
|
-
},
|
|
4022
|
+
}, El = ({ cell: { value: n } }) => /* @__PURE__ */ o.jsx(o.Fragment, { children: n ? /* @__PURE__ */ o.jsx(sn, { name: n, size: 21, fontSize: 12 }) : /* @__PURE__ */ o.jsx(o.Fragment, {}) }), Hc = "_tab-panel_d8l8q_1", Bc = "_full-height-no-overflow_d8l8q_5", Vc = "_disabled_d8l8q_12", st = {
|
|
3985
4023
|
"tab-panel": "_tab-panel_d8l8q_1",
|
|
3986
|
-
tabPanel:
|
|
4024
|
+
tabPanel: Hc,
|
|
3987
4025
|
"full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
|
|
3988
|
-
fullHeightNoOverflow:
|
|
3989
|
-
disabled:
|
|
3990
|
-
},
|
|
4026
|
+
fullHeightNoOverflow: Bc,
|
|
4027
|
+
disabled: Vc
|
|
4028
|
+
}, Dl = ({ eventKey: n, activeTab: e, fullHeightNoOverflow: t, disabled: r, className: s, children: a }) => n !== e ? null : /* @__PURE__ */ o.jsx("div", { className: x("luminus-tab-panel", st.tabPanel, { [st.fullHeightNoOverflow]: t }, { disabled: r }, { [st.disabled]: r }, s), children: a }), Ol = ({ activeTab: n, onSelect: e, children: t }) => /* @__PURE__ */ o.jsx("div", { className: x("luminus-tabs d-flex gap-1 mb-2"), children: t.map((r) => {
|
|
3991
4029
|
const s = r.type, a = r.props;
|
|
3992
4030
|
if (!a)
|
|
3993
4031
|
return null;
|
|
3994
4032
|
const i = a.eventKey, l = a.children, c = a.className, u = a.onClick;
|
|
3995
|
-
return /* @__PURE__ */
|
|
4033
|
+
return /* @__PURE__ */ Qr(s, { ...a, key: a.eventKey, className: x({ active: n === i }, c), onClick: () => {
|
|
3996
4034
|
e(i), u && u(i);
|
|
3997
4035
|
} }, l);
|
|
3998
|
-
}) }),
|
|
3999
|
-
tab:
|
|
4000
|
-
disabled:
|
|
4001
|
-
},
|
|
4036
|
+
}) }), Gc = "_tab_1hdhk_1", zc = "_disabled_1hdhk_8", Qt = {
|
|
4037
|
+
tab: Gc,
|
|
4038
|
+
disabled: zc
|
|
4039
|
+
}, Pl = ({ eventKey: n, className: e, onClick: t, disabled: r, children: s }) => /* @__PURE__ */ o.jsx("div", { role: "button", className: x("luminus-tab text-primary rounded", Qt.tab, e, {
|
|
4002
4040
|
disabled: r
|
|
4003
|
-
}, { [
|
|
4041
|
+
}, { [Qt.disabled]: r }), onClick: () => t && !r && t(n), children: typeof s == "string" ? /* @__PURE__ */ o.jsx(G, { variant: "h6", className: "text-primary", children: s }) : s });
|
|
4004
4042
|
export {
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4043
|
+
hl as Alert,
|
|
4044
|
+
tl as ApiFileDownloadButton,
|
|
4045
|
+
ll as AppSearch,
|
|
4046
|
+
dl as AuthTemplate,
|
|
4047
|
+
sn as AvatarIcon,
|
|
4048
|
+
lr as Backdrop,
|
|
4049
|
+
ol as Badge,
|
|
4050
|
+
vc as Card,
|
|
4051
|
+
gl as CheckInput,
|
|
4052
|
+
al as Collapse,
|
|
4053
|
+
lt as ContextButton,
|
|
4054
|
+
Ki as Dropdown,
|
|
4055
|
+
cl as DropdownDivider,
|
|
4056
|
+
Hi as DropdownItem,
|
|
4057
|
+
vl as DropdownPicker,
|
|
4058
|
+
Bi as DropdownToggle,
|
|
4059
|
+
mi as ErrorBoundary,
|
|
4060
|
+
sr as FileUploadContextButton,
|
|
4061
|
+
il as FileUploadDropdownItem,
|
|
4062
|
+
Mc as FloatingActionContainer,
|
|
4063
|
+
Ba as FloatingFormSubmit,
|
|
4025
4064
|
ke as FloatingLabelInput,
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4065
|
+
sl as HomeDashboard,
|
|
4066
|
+
_l as HookFormCheckInput,
|
|
4067
|
+
Cl as HookFormDropdownPicker,
|
|
4068
|
+
Il as HookFormFileInput,
|
|
4069
|
+
$l as HookFormFloatingSubmit,
|
|
4070
|
+
Tl as HookFormNumericStepperInput,
|
|
4071
|
+
jl as HookFormRadioInput,
|
|
4072
|
+
Sl as HookFormSelectInput,
|
|
4073
|
+
kl as HookFormTextAreaInput,
|
|
4074
|
+
Nl as HookFormTextInput,
|
|
4075
|
+
pl as HtmlTooltip,
|
|
4076
|
+
z as IconButton,
|
|
4038
4077
|
pe as InvalidFeedback,
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4078
|
+
ts as Loading,
|
|
4079
|
+
ss as LoadingBlock,
|
|
4080
|
+
nl as MonthPicker,
|
|
4081
|
+
Fl as NoInputContainer,
|
|
4082
|
+
bl as NumericStepperInput,
|
|
4083
|
+
ul as PhotoLibrary,
|
|
4084
|
+
Dc as PhotoLightbox,
|
|
4085
|
+
St as PrimaryButton,
|
|
4047
4086
|
fe as RowLabelInput,
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4087
|
+
wl as SelectInput,
|
|
4088
|
+
jt as SimplePicker,
|
|
4089
|
+
Wr as SimpleToggle,
|
|
4090
|
+
Yl as SimpleTooltip,
|
|
4091
|
+
Pl as Tab,
|
|
4092
|
+
Dl as TabPanel,
|
|
4093
|
+
Ol as Tabs,
|
|
4094
|
+
yl as TextAreaInput,
|
|
4095
|
+
xl as TextInput,
|
|
4096
|
+
fl as Timeline,
|
|
4097
|
+
G as Typography,
|
|
4098
|
+
Wl as UserAvatarToggle,
|
|
4099
|
+
El as UserAvatarValueFormat,
|
|
4100
|
+
ml as VersionInfo,
|
|
4101
|
+
Bt as WidgetCard,
|
|
4102
|
+
rl as YearPicker
|
|
4064
4103
|
};
|