react-luminus-components 1.2.95 → 1.2.96
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 +42 -42
- package/dist/{NoInputContainer-B6Zq2P9U.cjs → NoInputContainer-BcYn4-lQ.cjs} +16 -16
- package/dist/{NoInputContainer-BLnTERk_.js → NoInputContainer-Du1BCH6w.js} +135 -135
- package/dist/{PrimaryButton-BQxwnEaM.cjs → PrimaryButton-eyKwkdgq.cjs} +1 -1
- package/dist/{PrimaryButton-ojvFJ8sc.js → PrimaryButton-w5x8VBPl.js} +1 -1
- package/dist/{SimpleTooltip-ClHQktQk.js → SimpleTooltip-BCmk7vVD.js} +1 -1
- package/dist/{SimpleTooltip-Bd0sp7NR.cjs → SimpleTooltip-BQQaNyFN.cjs} +1 -1
- package/dist/components/Form/NumericStepperInput/NumericStepperInput.d.ts +4 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/HookForm/NumericStepperInput/HookFormNumericStepperInput.d.ts +4 -0
- package/dist/components/HookForm/index.d.ts +1 -0
- 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 +2 -2
- package/dist/main.es.js +922 -850
- package/dist/models/index.d.ts +3 -0
- package/dist/models/prop-types/FormInputProps/FormNumericStepperInputProps.d.ts +8 -0
- package/dist/models/prop-types/HookFormInputProps/HookFormNumericStepperInputProps.d.ts +4 -0
- package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +6 -0
- package/dist/style.css +1 -1
- package/dist/{useConfirm-CjI25drI.cjs → useConfirm-BdKLaEhj.cjs} +1 -1
- package/dist/{useConfirm-HjXBOoB-.js → useConfirm-Cuww_kdA.js} +1 -1
- package/dist/{usePermissions-XfCQEumi.cjs → usePermissions-CF2U39sc.cjs} +1 -1
- package/dist/{usePermissions-DGt22caC.js → usePermissions-Cw7iWS9c.js} +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { j as s, c as w, t as
|
|
2
|
-
import { aj as
|
|
3
|
-
import * as
|
|
4
|
-
import te, { useCallback as
|
|
5
|
-
import { c as
|
|
1
|
+
import { j as s, c as w, t as Z, a as se, g as ir, T as cr, b as lr, s as _t, E as ur, d as dr, e as hr, f as mr, h as fr, u as V, i as me, k as Kt, F as jt, l as pr, m as gr, n as xr, o as wr, p as yr, q as vr, r as br, v as _r, w as lt, x as Qt, y as jr, z as kr, A as be, B as Nr, C as Cr, P as Xe, D as ut, S as kt, G as Ae, H as Me, I as dt, J as $r, K as Xt, L as Ie, M as qe, O as Nt, N as Ir, Q as oe, R as Sr, U as Tr, V as Jt, W as ht, X as mt, Y as z, Z as Er, _ as Zt, $ as Dr, a0 as en, a1 as Or, a2 as Pr, a3 as Ar, a4 as Mr, a5 as tn, a6 as ce, a7 as Fr, a8 as Wr, a9 as Rr, aa as Lr, ab as nn, ac as qr, ad as Yr, ae as Je, af as ke, ag as rn, ah as fe } from "./NoInputContainer-Du1BCH6w.js";
|
|
2
|
+
import { aj as El, ai as Dl } from "./NoInputContainer-Du1BCH6w.js";
|
|
3
|
+
import * as M from "react";
|
|
4
|
+
import te, { useCallback as T, useMemo as Q, useEffect as D, useRef as Y, useState as O, useReducer as on, useContext as L, Component as Hr, isValidElement as Br, Suspense as Gr, createElement as Vr } from "react";
|
|
5
|
+
import { c as de, d as zr, C as Ur, a as sn, u as Kr, q as Ct, F as Qr, b as an, E as Fe, P as $t, M as We, L as Xr } from "./PrimaryButton-w5x8VBPl.js";
|
|
6
6
|
import { m as Jr, a as cn } from "./latinize-3MO2uNV7.js";
|
|
7
|
-
import { useFormContext as
|
|
7
|
+
import { useFormContext as le, Controller as ln } from "react-hook-form";
|
|
8
8
|
import { u as un, a as dn, b as hn } from "./useFormControlType-BAFqxupC.js";
|
|
9
|
-
import { S as
|
|
9
|
+
import { S as Pl } from "./SimpleTooltip-BCmk7vVD.js";
|
|
10
10
|
import { s as Zr } from "./searchUtils--egT-ac7.js";
|
|
11
11
|
const Kc = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
12
|
-
const r =
|
|
12
|
+
const r = T(async () => {
|
|
13
13
|
var l, c;
|
|
14
14
|
const o = await n();
|
|
15
15
|
if (!o)
|
|
@@ -18,13 +18,13 @@ const Kc = ({ 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__ */ s.jsx("div", { role: "button", onClick: r, children: t });
|
|
21
|
-
}, eo = ({ className: n, ...e }) => /* @__PURE__ */ s.jsxs("div", { className: w("luminus-loading",
|
|
22
|
-
/* @__PURE__ */ s.jsx("div", { className: w("spinner-grow",
|
|
23
|
-
/* @__PURE__ */ s.jsx("div", { className: w("spinner-grow",
|
|
24
|
-
/* @__PURE__ */ s.jsx("div", { className: w("spinner-grow",
|
|
21
|
+
}, eo = ({ className: n, ...e }) => /* @__PURE__ */ s.jsxs("div", { className: w("luminus-loading", de.loading, de.loadingBlock, de.loadingBlock), ...e, children: [
|
|
22
|
+
/* @__PURE__ */ s.jsx("div", { className: w("spinner-grow", de.spinnerGrow, "text-primary"), role: "status" }),
|
|
23
|
+
/* @__PURE__ */ s.jsx("div", { className: w("spinner-grow", de.spinnerGrow, "text-primary", de.second), role: "status" }),
|
|
24
|
+
/* @__PURE__ */ s.jsx("div", { className: w("spinner-grow", de.spinnerGrow, "text-primary", de.third), role: "status" })
|
|
25
25
|
] });
|
|
26
26
|
function mn(n, e) {
|
|
27
|
-
const t =
|
|
27
|
+
const t = Z(n);
|
|
28
28
|
if (isNaN(e))
|
|
29
29
|
return se(n, NaN);
|
|
30
30
|
if (!e)
|
|
@@ -42,16 +42,16 @@ let to = {};
|
|
|
42
42
|
function Ve() {
|
|
43
43
|
return to;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Te(n, e) {
|
|
46
46
|
var l, c, u, d;
|
|
47
|
-
const t = Ve(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.weekStartsOn) ?? t.weekStartsOn ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, o =
|
|
47
|
+
const t = Ve(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.weekStartsOn) ?? t.weekStartsOn ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = Z(n), a = o.getDay(), i = (a < r ? 7 : 0) + a - r;
|
|
48
48
|
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
49
49
|
}
|
|
50
50
|
function Ye(n) {
|
|
51
|
-
return
|
|
51
|
+
return Te(n, { weekStartsOn: 1 });
|
|
52
52
|
}
|
|
53
53
|
function fn(n) {
|
|
54
|
-
const e =
|
|
54
|
+
const e = Z(n), t = e.getFullYear(), r = se(n, 0);
|
|
55
55
|
r.setFullYear(t + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
56
56
|
const o = Ye(r), a = se(n, 0);
|
|
57
57
|
a.setFullYear(t, 0, 4), a.setHours(0, 0, 0, 0);
|
|
@@ -59,11 +59,11 @@ function fn(n) {
|
|
|
59
59
|
return e.getTime() >= o.getTime() ? t + 1 : e.getTime() >= i.getTime() ? t : t - 1;
|
|
60
60
|
}
|
|
61
61
|
function It(n) {
|
|
62
|
-
const e =
|
|
62
|
+
const e = Z(n);
|
|
63
63
|
return e.setHours(0, 0, 0, 0), e;
|
|
64
64
|
}
|
|
65
65
|
function St(n) {
|
|
66
|
-
const e =
|
|
66
|
+
const e = Z(n), t = new Date(
|
|
67
67
|
Date.UTC(
|
|
68
68
|
e.getFullYear(),
|
|
69
69
|
e.getMonth(),
|
|
@@ -88,7 +88,7 @@ function oo(n, e) {
|
|
|
88
88
|
return mn(n, e * 12);
|
|
89
89
|
}
|
|
90
90
|
function so(n, e) {
|
|
91
|
-
const t =
|
|
91
|
+
const t = Z(n), r = Z(e), o = t.getTime() - r.getTime();
|
|
92
92
|
return o < 0 ? -1 : o > 0 ? 1 : o;
|
|
93
93
|
}
|
|
94
94
|
function ao(n) {
|
|
@@ -97,11 +97,11 @@ function ao(n) {
|
|
|
97
97
|
function io(n) {
|
|
98
98
|
if (!ao(n) && typeof n != "number")
|
|
99
99
|
return !1;
|
|
100
|
-
const e =
|
|
100
|
+
const e = Z(n);
|
|
101
101
|
return !isNaN(Number(e));
|
|
102
102
|
}
|
|
103
103
|
function co(n) {
|
|
104
|
-
const e =
|
|
104
|
+
const e = Z(n), t = se(n, 0);
|
|
105
105
|
return t.setFullYear(e.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
106
106
|
}
|
|
107
107
|
const lo = {
|
|
@@ -212,8 +212,8 @@ const ho = {
|
|
|
212
212
|
tomorrow: "'tomorrow at' p",
|
|
213
213
|
nextWeek: "eeee 'at' p",
|
|
214
214
|
other: "P"
|
|
215
|
-
},
|
|
216
|
-
function
|
|
215
|
+
}, xo = (n, e, t, r) => go[n];
|
|
216
|
+
function Ne(n) {
|
|
217
217
|
return (e, t) => {
|
|
218
218
|
const r = t != null && t.context ? String(t.context) : "standalone";
|
|
219
219
|
let o;
|
|
@@ -228,7 +228,7 @@ function ke(n) {
|
|
|
228
228
|
return o[a];
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const wo = {
|
|
232
232
|
narrow: ["B", "A"],
|
|
233
233
|
abbreviated: ["BC", "AD"],
|
|
234
234
|
wide: ["Before Christ", "Anno Domini"]
|
|
@@ -353,26 +353,26 @@ const xo = {
|
|
|
353
353
|
return t + "rd";
|
|
354
354
|
}
|
|
355
355
|
return t + "th";
|
|
356
|
-
},
|
|
356
|
+
}, No = {
|
|
357
357
|
ordinalNumber: ko,
|
|
358
|
-
era:
|
|
359
|
-
values:
|
|
358
|
+
era: Ne({
|
|
359
|
+
values: wo,
|
|
360
360
|
defaultWidth: "wide"
|
|
361
361
|
}),
|
|
362
|
-
quarter:
|
|
362
|
+
quarter: Ne({
|
|
363
363
|
values: yo,
|
|
364
364
|
defaultWidth: "wide",
|
|
365
365
|
argumentCallback: (n) => n - 1
|
|
366
366
|
}),
|
|
367
|
-
month:
|
|
367
|
+
month: Ne({
|
|
368
368
|
values: vo,
|
|
369
369
|
defaultWidth: "wide"
|
|
370
370
|
}),
|
|
371
|
-
day:
|
|
371
|
+
day: Ne({
|
|
372
372
|
values: bo,
|
|
373
373
|
defaultWidth: "wide"
|
|
374
374
|
}),
|
|
375
|
-
dayPeriod:
|
|
375
|
+
dayPeriod: Ne({
|
|
376
376
|
values: _o,
|
|
377
377
|
defaultWidth: "wide",
|
|
378
378
|
formattingValues: jo,
|
|
@@ -386,7 +386,7 @@ function Ce(n) {
|
|
|
386
386
|
return null;
|
|
387
387
|
const i = a[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], c = Array.isArray(l) ? $o(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
|
+
Co(l, (h) => h.test(i))
|
|
390
390
|
);
|
|
391
391
|
let u;
|
|
392
392
|
u = n.valueCallback ? n.valueCallback(c) : c, u = t.valueCallback ? (
|
|
@@ -397,7 +397,7 @@ function Ce(n) {
|
|
|
397
397
|
return { value: u, rest: d };
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Co(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;
|
|
@@ -425,19 +425,19 @@ const So = /^(\d+)(th|st|nd|rd)?/i, To = /\d+/i, Eo = {
|
|
|
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
|
-
}, Oo = {
|
|
429
|
-
any: [/^b/i, /^(a|c)/i]
|
|
430
428
|
}, Do = {
|
|
429
|
+
any: [/^b/i, /^(a|c)/i]
|
|
430
|
+
}, Oo = {
|
|
431
431
|
narrow: /^[1234]/i,
|
|
432
432
|
abbreviated: /^q[1234]/i,
|
|
433
433
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
434
|
-
}, Mo = {
|
|
435
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
436
434
|
}, Po = {
|
|
435
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
436
|
+
}, Ao = {
|
|
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
|
+
}, Mo = {
|
|
441
441
|
narrow: [
|
|
442
442
|
/^j/i,
|
|
443
443
|
/^f/i,
|
|
@@ -497,20 +497,20 @@ const So = /^(\d+)(th|st|nd|rd)?/i, To = /\d+/i, Eo = {
|
|
|
497
497
|
era: Ce({
|
|
498
498
|
matchPatterns: Eo,
|
|
499
499
|
defaultMatchWidth: "wide",
|
|
500
|
-
parsePatterns:
|
|
500
|
+
parsePatterns: Do,
|
|
501
501
|
defaultParseWidth: "any"
|
|
502
502
|
}),
|
|
503
503
|
quarter: Ce({
|
|
504
|
-
matchPatterns:
|
|
504
|
+
matchPatterns: Oo,
|
|
505
505
|
defaultMatchWidth: "wide",
|
|
506
|
-
parsePatterns:
|
|
506
|
+
parsePatterns: Po,
|
|
507
507
|
defaultParseWidth: "any",
|
|
508
508
|
valueCallback: (n) => n + 1
|
|
509
509
|
}),
|
|
510
510
|
month: Ce({
|
|
511
|
-
matchPatterns:
|
|
511
|
+
matchPatterns: Ao,
|
|
512
512
|
defaultMatchWidth: "wide",
|
|
513
|
-
parsePatterns:
|
|
513
|
+
parsePatterns: Mo,
|
|
514
514
|
defaultParseWidth: "any"
|
|
515
515
|
}),
|
|
516
516
|
day: Ce({
|
|
@@ -529,8 +529,8 @@ const So = /^(\d+)(th|st|nd|rd)?/i, To = /\d+/i, Eo = {
|
|
|
529
529
|
code: "en-US",
|
|
530
530
|
formatDistance: uo,
|
|
531
531
|
formatLong: po,
|
|
532
|
-
formatRelative:
|
|
533
|
-
localize:
|
|
532
|
+
formatRelative: xo,
|
|
533
|
+
localize: No,
|
|
534
534
|
match: qo,
|
|
535
535
|
options: {
|
|
536
536
|
weekStartsOn: 0,
|
|
@@ -538,36 +538,36 @@ const So = /^(\d+)(th|st|nd|rd)?/i, To = /\d+/i, Eo = {
|
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
function Ho(n) {
|
|
541
|
-
const e =
|
|
541
|
+
const e = Z(n);
|
|
542
542
|
return no(e, co(e)) + 1;
|
|
543
543
|
}
|
|
544
544
|
function Bo(n) {
|
|
545
|
-
const e =
|
|
545
|
+
const e = Z(n), t = +Ye(e) - +ro(e);
|
|
546
546
|
return Math.round(t / cn) + 1;
|
|
547
547
|
}
|
|
548
548
|
function pn(n, e) {
|
|
549
|
-
var d, h,
|
|
550
|
-
const t =
|
|
549
|
+
var d, h, p, g;
|
|
550
|
+
const t = Z(n), r = t.getFullYear(), o = Ve(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((g = (p = o.locale) == null ? void 0 : p.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = se(n, 0);
|
|
551
551
|
i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
552
|
-
const l =
|
|
552
|
+
const l = Te(i, e), c = se(n, 0);
|
|
553
553
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
554
|
-
const u =
|
|
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
557
|
function Go(n, e) {
|
|
558
558
|
var l, c, u, d;
|
|
559
559
|
const t = Ve(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = pn(n, e), a = se(n, 0);
|
|
560
|
-
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0),
|
|
560
|
+
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), Te(a, e);
|
|
561
561
|
}
|
|
562
562
|
function Vo(n, e) {
|
|
563
|
-
const t =
|
|
563
|
+
const t = Z(n), r = +Te(t, e) - +Go(t, e);
|
|
564
564
|
return Math.round(r / cn) + 1;
|
|
565
565
|
}
|
|
566
566
|
function q(n, e) {
|
|
567
567
|
const t = n < 0 ? "-" : "", r = Math.abs(n).toString().padStart(e, "0");
|
|
568
568
|
return t + r;
|
|
569
569
|
}
|
|
570
|
-
const
|
|
570
|
+
const he = {
|
|
571
571
|
// Year
|
|
572
572
|
y(n, e) {
|
|
573
573
|
const t = n.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
@@ -652,7 +652,7 @@ const ue = {
|
|
|
652
652
|
const r = n.getFullYear(), o = r > 0 ? r : 1 - r;
|
|
653
653
|
return t.ordinalNumber(o, { unit: "year" });
|
|
654
654
|
}
|
|
655
|
-
return
|
|
655
|
+
return he.y(n, e);
|
|
656
656
|
},
|
|
657
657
|
// Local week-numbering year
|
|
658
658
|
Y: function(n, e, t, r) {
|
|
@@ -743,7 +743,7 @@ const ue = {
|
|
|
743
743
|
switch (e) {
|
|
744
744
|
case "M":
|
|
745
745
|
case "MM":
|
|
746
|
-
return
|
|
746
|
+
return he.M(n, e);
|
|
747
747
|
case "Mo":
|
|
748
748
|
return t.ordinalNumber(r + 1, { unit: "month" });
|
|
749
749
|
case "MMM":
|
|
@@ -798,7 +798,7 @@ const ue = {
|
|
|
798
798
|
},
|
|
799
799
|
// Day of the month
|
|
800
800
|
d: function(n, e, t) {
|
|
801
|
-
return e === "do" ? t.ordinalNumber(n.getDate(), { unit: "date" }) :
|
|
801
|
+
return e === "do" ? t.ordinalNumber(n.getDate(), { unit: "date" }) : he.d(n, e);
|
|
802
802
|
},
|
|
803
803
|
// Day of year
|
|
804
804
|
D: function(n, e, t) {
|
|
@@ -1021,11 +1021,11 @@ const ue = {
|
|
|
1021
1021
|
let r = n.getHours() % 12;
|
|
1022
1022
|
return r === 0 && (r = 12), t.ordinalNumber(r, { unit: "hour" });
|
|
1023
1023
|
}
|
|
1024
|
-
return
|
|
1024
|
+
return he.h(n, e);
|
|
1025
1025
|
},
|
|
1026
1026
|
// Hour [0-23]
|
|
1027
1027
|
H: function(n, e, t) {
|
|
1028
|
-
return e === "Ho" ? t.ordinalNumber(n.getHours(), { unit: "hour" }) :
|
|
1028
|
+
return e === "Ho" ? t.ordinalNumber(n.getHours(), { unit: "hour" }) : he.H(n, e);
|
|
1029
1029
|
},
|
|
1030
1030
|
// Hour [0-11]
|
|
1031
1031
|
K: function(n, e, t) {
|
|
@@ -1039,15 +1039,15 @@ const ue = {
|
|
|
1039
1039
|
},
|
|
1040
1040
|
// Minute
|
|
1041
1041
|
m: function(n, e, t) {
|
|
1042
|
-
return e === "mo" ? t.ordinalNumber(n.getMinutes(), { unit: "minute" }) :
|
|
1042
|
+
return e === "mo" ? t.ordinalNumber(n.getMinutes(), { unit: "minute" }) : he.m(n, e);
|
|
1043
1043
|
},
|
|
1044
1044
|
// Second
|
|
1045
1045
|
s: function(n, e, t) {
|
|
1046
|
-
return e === "so" ? t.ordinalNumber(n.getSeconds(), { unit: "second" }) :
|
|
1046
|
+
return e === "so" ? t.ordinalNumber(n.getSeconds(), { unit: "second" }) : he.s(n, e);
|
|
1047
1047
|
},
|
|
1048
1048
|
// Fraction of second
|
|
1049
1049
|
S: function(n, e) {
|
|
1050
|
-
return
|
|
1050
|
+
return he.S(n, e);
|
|
1051
1051
|
},
|
|
1052
1052
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1053
1053
|
X: function(n, e, t) {
|
|
@@ -1056,14 +1056,14 @@ const ue = {
|
|
|
1056
1056
|
return "Z";
|
|
1057
1057
|
switch (e) {
|
|
1058
1058
|
case "X":
|
|
1059
|
-
return
|
|
1059
|
+
return Dt(r);
|
|
1060
1060
|
case "XXXX":
|
|
1061
1061
|
case "XX":
|
|
1062
|
-
return
|
|
1062
|
+
return ve(r);
|
|
1063
1063
|
case "XXXXX":
|
|
1064
1064
|
case "XXX":
|
|
1065
1065
|
default:
|
|
1066
|
-
return
|
|
1066
|
+
return ve(r, ":");
|
|
1067
1067
|
}
|
|
1068
1068
|
},
|
|
1069
1069
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1071,14 +1071,14 @@ const ue = {
|
|
|
1071
1071
|
const r = n.getTimezoneOffset();
|
|
1072
1072
|
switch (e) {
|
|
1073
1073
|
case "x":
|
|
1074
|
-
return
|
|
1074
|
+
return Dt(r);
|
|
1075
1075
|
case "xxxx":
|
|
1076
1076
|
case "xx":
|
|
1077
|
-
return
|
|
1077
|
+
return ve(r);
|
|
1078
1078
|
case "xxxxx":
|
|
1079
1079
|
case "xxx":
|
|
1080
1080
|
default:
|
|
1081
|
-
return
|
|
1081
|
+
return ve(r, ":");
|
|
1082
1082
|
}
|
|
1083
1083
|
},
|
|
1084
1084
|
// Timezone (GMT)
|
|
@@ -1091,7 +1091,7 @@ const ue = {
|
|
|
1091
1091
|
return "GMT" + Et(r, ":");
|
|
1092
1092
|
case "OOOO":
|
|
1093
1093
|
default:
|
|
1094
|
-
return "GMT" +
|
|
1094
|
+
return "GMT" + ve(r, ":");
|
|
1095
1095
|
}
|
|
1096
1096
|
},
|
|
1097
1097
|
// Timezone (specific non-location)
|
|
@@ -1104,7 +1104,7 @@ const ue = {
|
|
|
1104
1104
|
return "GMT" + Et(r, ":");
|
|
1105
1105
|
case "zzzz":
|
|
1106
1106
|
default:
|
|
1107
|
-
return "GMT" +
|
|
1107
|
+
return "GMT" + ve(r, ":");
|
|
1108
1108
|
}
|
|
1109
1109
|
},
|
|
1110
1110
|
// Seconds timestamp
|
|
@@ -1122,14 +1122,14 @@ function Et(n, e = "") {
|
|
|
1122
1122
|
const t = n > 0 ? "-" : "+", r = Math.abs(n), o = Math.trunc(r / 60), a = r % 60;
|
|
1123
1123
|
return a === 0 ? t + String(o) : t + String(o) + e + q(a, 2);
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1126
|
-
return n % 60 === 0 ? (n > 0 ? "-" : "+") + q(Math.abs(n) / 60, 2) :
|
|
1125
|
+
function Dt(n, e) {
|
|
1126
|
+
return n % 60 === 0 ? (n > 0 ? "-" : "+") + q(Math.abs(n) / 60, 2) : ve(n, e);
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function ve(n, e = "") {
|
|
1129
1129
|
const t = n > 0 ? "-" : "+", r = Math.abs(n), o = q(Math.trunc(r / 60), 2), a = q(r % 60, 2);
|
|
1130
1130
|
return t + o + e + a;
|
|
1131
1131
|
}
|
|
1132
|
-
const
|
|
1132
|
+
const Ot = (n, e) => {
|
|
1133
1133
|
switch (n) {
|
|
1134
1134
|
case "P":
|
|
1135
1135
|
return e.date({ width: "short" });
|
|
@@ -1156,7 +1156,7 @@ const Dt = (n, e) => {
|
|
|
1156
1156
|
}, zo = (n, e) => {
|
|
1157
1157
|
const t = n.match(/(P+)(p+)?/) || [], r = t[1], o = t[2];
|
|
1158
1158
|
if (!o)
|
|
1159
|
-
return
|
|
1159
|
+
return Ot(n, e);
|
|
1160
1160
|
let a;
|
|
1161
1161
|
switch (r) {
|
|
1162
1162
|
case "P":
|
|
@@ -1173,7 +1173,7 @@ const Dt = (n, e) => {
|
|
|
1173
1173
|
a = e.dateTime({ width: "full" });
|
|
1174
1174
|
break;
|
|
1175
1175
|
}
|
|
1176
|
-
return a.replace("{{date}}",
|
|
1176
|
+
return a.replace("{{date}}", Ot(r, e)).replace("{{time}}", gn(o, e));
|
|
1177
1177
|
}, Uo = {
|
|
1178
1178
|
p: gn,
|
|
1179
1179
|
P: zo
|
|
@@ -1195,30 +1195,30 @@ function ts(n, e, t) {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
const ns = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, rs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, os = /^'([^]*?)'?$/, ss = /''/g, as = /[a-zA-Z]/;
|
|
1197
1197
|
function ot(n, e, t) {
|
|
1198
|
-
var d, h,
|
|
1199
|
-
const r = Ve(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? Yo, 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 = (
|
|
1198
|
+
var d, h, p, g, _, x, m, k;
|
|
1199
|
+
const r = Ve(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? Yo, 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 = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((x = (_ = t == null ? void 0 : t.locale) == null ? void 0 : _.options) == null ? void 0 : x.weekStartsOn) ?? r.weekStartsOn ?? ((k = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : k.weekStartsOn) ?? 0, l = Z(n);
|
|
1200
1200
|
if (!io(l))
|
|
1201
1201
|
throw new RangeError("Invalid time value");
|
|
1202
|
-
let c = e.match(rs).map((
|
|
1203
|
-
const
|
|
1204
|
-
if (
|
|
1205
|
-
const
|
|
1206
|
-
return
|
|
1202
|
+
let c = e.match(rs).map((b) => {
|
|
1203
|
+
const f = b[0];
|
|
1204
|
+
if (f === "p" || f === "P") {
|
|
1205
|
+
const N = Uo[f];
|
|
1206
|
+
return N(b, o.formatLong);
|
|
1207
1207
|
}
|
|
1208
|
-
return
|
|
1209
|
-
}).join("").match(ns).map((
|
|
1210
|
-
if (
|
|
1208
|
+
return b;
|
|
1209
|
+
}).join("").match(ns).map((b) => {
|
|
1210
|
+
if (b === "''")
|
|
1211
1211
|
return { isToken: !1, value: "'" };
|
|
1212
|
-
const
|
|
1213
|
-
if (
|
|
1214
|
-
return { isToken: !1, value: is(
|
|
1215
|
-
if (Tt[
|
|
1216
|
-
return { isToken: !0, value:
|
|
1217
|
-
if (
|
|
1212
|
+
const f = b[0];
|
|
1213
|
+
if (f === "'")
|
|
1214
|
+
return { isToken: !1, value: is(b) };
|
|
1215
|
+
if (Tt[f])
|
|
1216
|
+
return { isToken: !0, value: b };
|
|
1217
|
+
if (f.match(as))
|
|
1218
1218
|
throw new RangeError(
|
|
1219
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1219
|
+
"Format string contains an unescaped latin alphabet character `" + f + "`"
|
|
1220
1220
|
);
|
|
1221
|
-
return { isToken: !1, value:
|
|
1221
|
+
return { isToken: !1, value: b };
|
|
1222
1222
|
});
|
|
1223
1223
|
o.localize.preprocessor && (c = o.localize.preprocessor(l, c));
|
|
1224
1224
|
const u = {
|
|
@@ -1226,13 +1226,13 @@ function ot(n, e, t) {
|
|
|
1226
1226
|
weekStartsOn: i,
|
|
1227
1227
|
locale: o
|
|
1228
1228
|
};
|
|
1229
|
-
return c.map((
|
|
1230
|
-
if (!
|
|
1231
|
-
return
|
|
1232
|
-
const
|
|
1233
|
-
(!(t != null && t.useAdditionalWeekYearTokens) && Zo(
|
|
1234
|
-
const
|
|
1235
|
-
return
|
|
1229
|
+
return c.map((b) => {
|
|
1230
|
+
if (!b.isToken)
|
|
1231
|
+
return b.value;
|
|
1232
|
+
const f = b.value;
|
|
1233
|
+
(!(t != null && t.useAdditionalWeekYearTokens) && Zo(f) || !(t != null && t.useAdditionalDayOfYearTokens) && Jo(f)) && es(f, e, String(n));
|
|
1234
|
+
const N = Tt[f[0]];
|
|
1235
|
+
return N(l, f, o.localize, u);
|
|
1236
1236
|
}).join("");
|
|
1237
1237
|
}
|
|
1238
1238
|
function is(n) {
|
|
@@ -1240,7 +1240,7 @@ function is(n) {
|
|
|
1240
1240
|
return e ? e[1].replace(ss, "'") : n;
|
|
1241
1241
|
}
|
|
1242
1242
|
function cs(n, e) {
|
|
1243
|
-
const t =
|
|
1243
|
+
const t = Z(n);
|
|
1244
1244
|
return isNaN(+t) ? se(n, NaN) : (t.setFullYear(e), t);
|
|
1245
1245
|
}
|
|
1246
1246
|
var ls = function(n, e, t, r, o, a, i, l) {
|
|
@@ -1263,8 +1263,8 @@ var ls = function(n, e, t, r, o, a, i, l) {
|
|
|
1263
1263
|
throw c.framesToPop = 1, c;
|
|
1264
1264
|
}
|
|
1265
1265
|
}, us = ls;
|
|
1266
|
-
const
|
|
1267
|
-
function
|
|
1266
|
+
const Pt = /* @__PURE__ */ ir(us);
|
|
1267
|
+
function $e(...n) {
|
|
1268
1268
|
return n.filter((e) => e != null).reduce((e, t) => {
|
|
1269
1269
|
if (typeof t != "function")
|
|
1270
1270
|
throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");
|
|
@@ -1288,7 +1288,7 @@ const ms = {
|
|
|
1288
1288
|
[dr]: "collapsing",
|
|
1289
1289
|
[hr]: "collapsing",
|
|
1290
1290
|
[mr]: "collapse show"
|
|
1291
|
-
},
|
|
1291
|
+
}, xn = /* @__PURE__ */ te.forwardRef(({
|
|
1292
1292
|
onEnter: n,
|
|
1293
1293
|
onEntering: e,
|
|
1294
1294
|
onEntered: t,
|
|
@@ -1301,49 +1301,49 @@ const ms = {
|
|
|
1301
1301
|
timeout: u = 300,
|
|
1302
1302
|
mountOnEnter: d = !1,
|
|
1303
1303
|
unmountOnExit: h = !1,
|
|
1304
|
-
appear:
|
|
1304
|
+
appear: p = !1,
|
|
1305
1305
|
getDimensionValue: g = hs,
|
|
1306
|
-
...
|
|
1306
|
+
..._
|
|
1307
1307
|
}, x) => {
|
|
1308
|
-
const
|
|
1309
|
-
y.style[
|
|
1310
|
-
}, n), [
|
|
1311
|
-
const $ = `scroll${
|
|
1312
|
-
y.style[
|
|
1313
|
-
}, e), [
|
|
1314
|
-
y.style[
|
|
1315
|
-
}, t), [
|
|
1316
|
-
y.style[
|
|
1317
|
-
}, r), [r, g,
|
|
1318
|
-
y.style[
|
|
1319
|
-
}, o), [
|
|
1308
|
+
const m = typeof l == "function" ? l() : l, k = Q(() => $e((y) => {
|
|
1309
|
+
y.style[m] = "0";
|
|
1310
|
+
}, n), [m, n]), b = Q(() => $e((y) => {
|
|
1311
|
+
const $ = `scroll${m[0].toUpperCase()}${m.slice(1)}`;
|
|
1312
|
+
y.style[m] = `${y[$]}px`;
|
|
1313
|
+
}, e), [m, e]), f = Q(() => $e((y) => {
|
|
1314
|
+
y.style[m] = null;
|
|
1315
|
+
}, t), [m, t]), N = Q(() => $e((y) => {
|
|
1316
|
+
y.style[m] = `${g(m, y)}px`, fr(y);
|
|
1317
|
+
}, r), [r, g, m]), j = Q(() => $e((y) => {
|
|
1318
|
+
y.style[m] = null;
|
|
1319
|
+
}, o), [m, o]);
|
|
1320
1320
|
return /* @__PURE__ */ s.jsx(cr, {
|
|
1321
1321
|
ref: x,
|
|
1322
1322
|
addEndListener: lr,
|
|
1323
|
-
...
|
|
1324
|
-
"aria-expanded":
|
|
1325
|
-
onEnter:
|
|
1326
|
-
onEntering:
|
|
1327
|
-
onEntered:
|
|
1328
|
-
onExit:
|
|
1329
|
-
onExiting:
|
|
1323
|
+
..._,
|
|
1324
|
+
"aria-expanded": _.role ? c : null,
|
|
1325
|
+
onEnter: k,
|
|
1326
|
+
onEntering: b,
|
|
1327
|
+
onEntered: f,
|
|
1328
|
+
onExit: N,
|
|
1329
|
+
onExiting: j,
|
|
1330
1330
|
childRef: i.ref,
|
|
1331
1331
|
in: c,
|
|
1332
1332
|
timeout: u,
|
|
1333
1333
|
mountOnEnter: d,
|
|
1334
1334
|
unmountOnExit: h,
|
|
1335
|
-
appear:
|
|
1335
|
+
appear: p,
|
|
1336
1336
|
children: (y, $) => /* @__PURE__ */ te.cloneElement(i, {
|
|
1337
1337
|
...$,
|
|
1338
|
-
className: w(a, i.props.className, ms[y],
|
|
1338
|
+
className: w(a, i.props.className, ms[y], m === "width" && "collapse-horizontal")
|
|
1339
1339
|
})
|
|
1340
1340
|
});
|
|
1341
|
-
}),
|
|
1342
|
-
|
|
1343
|
-
const yn = /* @__PURE__ */
|
|
1341
|
+
}), wn = zr("h4");
|
|
1342
|
+
wn.displayName = "DivStyledAsH4";
|
|
1343
|
+
const yn = /* @__PURE__ */ M.forwardRef(({
|
|
1344
1344
|
className: n,
|
|
1345
1345
|
bsPrefix: e,
|
|
1346
|
-
as: t =
|
|
1346
|
+
as: t = wn,
|
|
1347
1347
|
...r
|
|
1348
1348
|
}, o) => (e = V(e, "alert-heading"), /* @__PURE__ */ s.jsx(t, {
|
|
1349
1349
|
ref: o,
|
|
@@ -1352,7 +1352,7 @@ const yn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1352
1352
|
})));
|
|
1353
1353
|
yn.displayName = "AlertHeading";
|
|
1354
1354
|
function fs(n, e, t, r = !1) {
|
|
1355
|
-
const o =
|
|
1355
|
+
const o = me(t);
|
|
1356
1356
|
D(() => {
|
|
1357
1357
|
const a = typeof n == "function" ? n() : n;
|
|
1358
1358
|
return a.addEventListener(e, o, r), () => a.removeEventListener(e, o, r);
|
|
@@ -1367,7 +1367,7 @@ function gs(n, e) {
|
|
|
1367
1367
|
o = r[a], !(e.indexOf(o) >= 0) && (t[o] = n[o]);
|
|
1368
1368
|
return t;
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function xs(n) {
|
|
1371
1371
|
return !n || n.trim() === "#";
|
|
1372
1372
|
}
|
|
1373
1373
|
function ft({
|
|
@@ -1390,14 +1390,14 @@ function ft({
|
|
|
1390
1390
|
type: c || "button",
|
|
1391
1391
|
disabled: e
|
|
1392
1392
|
}, u];
|
|
1393
|
-
const d = (
|
|
1394
|
-
if ((e || n === "a" &&
|
|
1395
|
-
|
|
1393
|
+
const d = (p) => {
|
|
1394
|
+
if ((e || n === "a" && xs(t)) && p.preventDefault(), e) {
|
|
1395
|
+
p.stopPropagation();
|
|
1396
1396
|
return;
|
|
1397
1397
|
}
|
|
1398
|
-
i == null || i(
|
|
1399
|
-
}, h = (
|
|
1400
|
-
|
|
1398
|
+
i == null || i(p);
|
|
1399
|
+
}, h = (p) => {
|
|
1400
|
+
p.key === " " && (p.preventDefault(), d(p));
|
|
1401
1401
|
};
|
|
1402
1402
|
return n === "a" && (t || (t = "#"), e && (t = void 0)), [{
|
|
1403
1403
|
role: a ?? "button",
|
|
@@ -1413,7 +1413,7 @@ function ft({
|
|
|
1413
1413
|
onKeyDown: h
|
|
1414
1414
|
}, u];
|
|
1415
1415
|
}
|
|
1416
|
-
const vn = /* @__PURE__ */
|
|
1416
|
+
const vn = /* @__PURE__ */ M.forwardRef((n, e) => {
|
|
1417
1417
|
let {
|
|
1418
1418
|
as: t,
|
|
1419
1419
|
disabled: r
|
|
@@ -1429,7 +1429,7 @@ const vn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1429
1429
|
}));
|
|
1430
1430
|
});
|
|
1431
1431
|
vn.displayName = "Button";
|
|
1432
|
-
const
|
|
1432
|
+
const ws = ["onKeyDown"];
|
|
1433
1433
|
function ys(n, e) {
|
|
1434
1434
|
if (n == null)
|
|
1435
1435
|
return {};
|
|
@@ -1441,13 +1441,13 @@ function ys(n, e) {
|
|
|
1441
1441
|
function vs(n) {
|
|
1442
1442
|
return !n || n.trim() === "#";
|
|
1443
1443
|
}
|
|
1444
|
-
const pt = /* @__PURE__ */
|
|
1444
|
+
const pt = /* @__PURE__ */ M.forwardRef((n, e) => {
|
|
1445
1445
|
let {
|
|
1446
1446
|
onKeyDown: t
|
|
1447
|
-
} = n, r = ys(n,
|
|
1447
|
+
} = n, r = ys(n, ws);
|
|
1448
1448
|
const [o] = ft(Object.assign({
|
|
1449
1449
|
tagName: "a"
|
|
1450
|
-
}, r)), a =
|
|
1450
|
+
}, r)), a = me((i) => {
|
|
1451
1451
|
o.onKeyDown(i), t == null || t(i);
|
|
1452
1452
|
});
|
|
1453
1453
|
return vs(r.href) || r.role === "button" ? /* @__PURE__ */ s.jsx("a", Object.assign({
|
|
@@ -1461,7 +1461,7 @@ const pt = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1461
1461
|
}));
|
|
1462
1462
|
});
|
|
1463
1463
|
pt.displayName = "Anchor";
|
|
1464
|
-
const bn = /* @__PURE__ */
|
|
1464
|
+
const bn = /* @__PURE__ */ M.forwardRef(({
|
|
1465
1465
|
className: n,
|
|
1466
1466
|
bsPrefix: e,
|
|
1467
1467
|
as: t = pt,
|
|
@@ -1472,7 +1472,7 @@ const bn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1472
1472
|
...r
|
|
1473
1473
|
})));
|
|
1474
1474
|
bn.displayName = "AlertLink";
|
|
1475
|
-
const _n = /* @__PURE__ */
|
|
1475
|
+
const _n = /* @__PURE__ */ M.forwardRef((n, e) => {
|
|
1476
1476
|
const {
|
|
1477
1477
|
bsPrefix: t,
|
|
1478
1478
|
show: r = !0,
|
|
@@ -1484,35 +1484,35 @@ const _n = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1484
1484
|
onClose: u,
|
|
1485
1485
|
dismissible: d,
|
|
1486
1486
|
transition: h = jt,
|
|
1487
|
-
...
|
|
1487
|
+
...p
|
|
1488
1488
|
} = Kt(n, {
|
|
1489
1489
|
show: "onClose"
|
|
1490
|
-
}), g = V(t, "alert"),
|
|
1491
|
-
u && u(!1,
|
|
1492
|
-
}), x = h === !0 ? jt : h,
|
|
1490
|
+
}), g = V(t, "alert"), _ = me((k) => {
|
|
1491
|
+
u && u(!1, k);
|
|
1492
|
+
}), x = h === !0 ? jt : h, m = /* @__PURE__ */ s.jsxs("div", {
|
|
1493
1493
|
role: "alert",
|
|
1494
|
-
...x ? void 0 :
|
|
1494
|
+
...x ? void 0 : p,
|
|
1495
1495
|
ref: e,
|
|
1496
1496
|
className: w(i, g, c && `${g}-${c}`, d && `${g}-dismissible`),
|
|
1497
1497
|
children: [d && /* @__PURE__ */ s.jsx(Ur, {
|
|
1498
|
-
onClick:
|
|
1498
|
+
onClick: _,
|
|
1499
1499
|
"aria-label": o,
|
|
1500
1500
|
variant: a
|
|
1501
1501
|
}), l]
|
|
1502
1502
|
});
|
|
1503
1503
|
return x ? /* @__PURE__ */ s.jsx(x, {
|
|
1504
1504
|
unmountOnExit: !0,
|
|
1505
|
-
...
|
|
1505
|
+
...p,
|
|
1506
1506
|
ref: void 0,
|
|
1507
1507
|
in: r,
|
|
1508
|
-
children:
|
|
1509
|
-
}) : r ?
|
|
1508
|
+
children: m
|
|
1509
|
+
}) : r ? m : null;
|
|
1510
1510
|
});
|
|
1511
1511
|
_n.displayName = "Alert";
|
|
1512
1512
|
const bs = Object.assign(_n, {
|
|
1513
1513
|
Link: bn,
|
|
1514
1514
|
Heading: yn
|
|
1515
|
-
}), jn = /* @__PURE__ */
|
|
1515
|
+
}), jn = /* @__PURE__ */ M.forwardRef(({
|
|
1516
1516
|
as: n,
|
|
1517
1517
|
bsPrefix: e,
|
|
1518
1518
|
variant: t = "primary",
|
|
@@ -1528,8 +1528,8 @@ const bs = Object.assign(_n, {
|
|
|
1528
1528
|
tagName: n,
|
|
1529
1529
|
disabled: a,
|
|
1530
1530
|
...l
|
|
1531
|
-
}),
|
|
1532
|
-
return /* @__PURE__ */ s.jsx(
|
|
1531
|
+
}), p = h;
|
|
1532
|
+
return /* @__PURE__ */ s.jsx(p, {
|
|
1533
1533
|
...d,
|
|
1534
1534
|
...l,
|
|
1535
1535
|
ref: c,
|
|
@@ -1539,7 +1539,7 @@ const bs = Object.assign(_n, {
|
|
|
1539
1539
|
});
|
|
1540
1540
|
jn.displayName = "Button";
|
|
1541
1541
|
function _s(n, e) {
|
|
1542
|
-
return
|
|
1542
|
+
return M.Children.toArray(n).some((t) => /* @__PURE__ */ M.isValidElement(t) && t.type === e);
|
|
1543
1543
|
}
|
|
1544
1544
|
function js({
|
|
1545
1545
|
as: n,
|
|
@@ -1552,14 +1552,14 @@ function js({
|
|
|
1552
1552
|
return o.forEach((c) => {
|
|
1553
1553
|
const u = r[c];
|
|
1554
1554
|
delete r[c];
|
|
1555
|
-
let d, h,
|
|
1555
|
+
let d, h, p;
|
|
1556
1556
|
typeof u == "object" && u != null ? {
|
|
1557
1557
|
span: d,
|
|
1558
1558
|
offset: h,
|
|
1559
|
-
order:
|
|
1559
|
+
order: p
|
|
1560
1560
|
} = u : d = u;
|
|
1561
1561
|
const g = c !== a ? `-${c}` : "";
|
|
1562
|
-
d && i.push(d === !0 ? `${e}${g}` : `${e}${g}-${d}`),
|
|
1562
|
+
d && i.push(d === !0 ? `${e}${g}` : `${e}${g}-${d}`), p != null && l.push(`order${g}-${p}`), h != null && l.push(`offset${g}-${h}`);
|
|
1563
1563
|
}), [{
|
|
1564
1564
|
...r,
|
|
1565
1565
|
className: w(t, ...i, ...l)
|
|
@@ -1569,7 +1569,7 @@ function js({
|
|
|
1569
1569
|
spans: i
|
|
1570
1570
|
}];
|
|
1571
1571
|
}
|
|
1572
|
-
const kn = /* @__PURE__ */
|
|
1572
|
+
const kn = /* @__PURE__ */ M.forwardRef(
|
|
1573
1573
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1574
1574
|
(n, e) => {
|
|
1575
1575
|
const [{
|
|
@@ -1589,18 +1589,18 @@ const kn = /* @__PURE__ */ A.forwardRef(
|
|
|
1589
1589
|
);
|
|
1590
1590
|
kn.displayName = "Col";
|
|
1591
1591
|
function ks(n, e, t) {
|
|
1592
|
-
const r = Y(n !== void 0), [o, a] =
|
|
1593
|
-
return r.current = i, !i && l && o !== e && a(e), [i ? n : o,
|
|
1592
|
+
const r = Y(n !== void 0), [o, a] = O(e), i = n !== void 0, l = r.current;
|
|
1593
|
+
return r.current = i, !i && l && o !== e && a(e), [i ? n : o, T((...c) => {
|
|
1594
1594
|
const [u, ...d] = c;
|
|
1595
1595
|
let h = t == null ? void 0 : t(u, ...d);
|
|
1596
1596
|
return a(u), h;
|
|
1597
1597
|
}, [t])];
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function Ns() {
|
|
1600
1600
|
const [, n] = on((e) => !e, !1);
|
|
1601
1601
|
return n;
|
|
1602
1602
|
}
|
|
1603
|
-
const ze = /* @__PURE__ */
|
|
1603
|
+
const ze = /* @__PURE__ */ M.createContext(null), Cs = ["children", "usePopper"];
|
|
1604
1604
|
function $s(n, e) {
|
|
1605
1605
|
if (n == null)
|
|
1606
1606
|
return {};
|
|
@@ -1611,8 +1611,8 @@ function $s(n, e) {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
const Is = () => {
|
|
1613
1613
|
};
|
|
1614
|
-
function
|
|
1615
|
-
const e = L(ze), [t, r] =
|
|
1614
|
+
function Nn(n = {}) {
|
|
1615
|
+
const e = L(ze), [t, r] = xr(), o = Y(!1), {
|
|
1616
1616
|
flip: a,
|
|
1617
1617
|
offset: i,
|
|
1618
1618
|
rootCloseEvent: l,
|
|
@@ -1620,60 +1620,60 @@ function Cn(n = {}) {
|
|
|
1620
1620
|
placement: u,
|
|
1621
1621
|
popperConfig: d = {},
|
|
1622
1622
|
enableEventListeners: h = !0,
|
|
1623
|
-
usePopper:
|
|
1623
|
+
usePopper: p = !!e
|
|
1624
1624
|
} = n, g = (e == null ? void 0 : e.show) == null ? !!n.show : e.show;
|
|
1625
1625
|
g && !o.current && (o.current = !0);
|
|
1626
|
-
const
|
|
1626
|
+
const _ = (y) => {
|
|
1627
1627
|
e == null || e.toggle(!1, y);
|
|
1628
1628
|
}, {
|
|
1629
1629
|
placement: x,
|
|
1630
|
-
setMenu:
|
|
1631
|
-
menuElement:
|
|
1632
|
-
toggleElement:
|
|
1633
|
-
} = e || {},
|
|
1630
|
+
setMenu: m,
|
|
1631
|
+
menuElement: k,
|
|
1632
|
+
toggleElement: b
|
|
1633
|
+
} = e || {}, f = wr(b, k, yr({
|
|
1634
1634
|
placement: u || x || "bottom-start",
|
|
1635
|
-
enabled:
|
|
1635
|
+
enabled: p,
|
|
1636
1636
|
enableEvents: h ?? g,
|
|
1637
1637
|
offset: i,
|
|
1638
1638
|
flip: a,
|
|
1639
1639
|
fixed: c,
|
|
1640
1640
|
arrowElement: t,
|
|
1641
1641
|
popperConfig: d
|
|
1642
|
-
})),
|
|
1643
|
-
ref:
|
|
1644
|
-
"aria-labelledby":
|
|
1645
|
-
},
|
|
1646
|
-
style:
|
|
1647
|
-
}),
|
|
1642
|
+
})), N = Object.assign({
|
|
1643
|
+
ref: m || Is,
|
|
1644
|
+
"aria-labelledby": b == null ? void 0 : b.id
|
|
1645
|
+
}, f.attributes.popper, {
|
|
1646
|
+
style: f.styles.popper
|
|
1647
|
+
}), j = {
|
|
1648
1648
|
show: g,
|
|
1649
1649
|
placement: x,
|
|
1650
1650
|
hasShown: o.current,
|
|
1651
1651
|
toggle: e == null ? void 0 : e.toggle,
|
|
1652
|
-
popper:
|
|
1653
|
-
arrowProps:
|
|
1652
|
+
popper: p ? f : null,
|
|
1653
|
+
arrowProps: p ? Object.assign({
|
|
1654
1654
|
ref: r
|
|
1655
|
-
},
|
|
1656
|
-
style:
|
|
1655
|
+
}, f.attributes.arrow, {
|
|
1656
|
+
style: f.styles.arrow
|
|
1657
1657
|
}) : {}
|
|
1658
1658
|
};
|
|
1659
|
-
return vr(
|
|
1659
|
+
return vr(k, _, {
|
|
1660
1660
|
clickTrigger: l,
|
|
1661
1661
|
disabled: !g
|
|
1662
|
-
}), [
|
|
1662
|
+
}), [N, j];
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function Cn(n) {
|
|
1665
1665
|
let {
|
|
1666
1666
|
children: e,
|
|
1667
1667
|
usePopper: t = !0
|
|
1668
|
-
} = n, r = $s(n,
|
|
1669
|
-
const [o, a] =
|
|
1668
|
+
} = n, r = $s(n, Cs);
|
|
1669
|
+
const [o, a] = Nn(Object.assign({}, r, {
|
|
1670
1670
|
usePopper: t
|
|
1671
1671
|
}));
|
|
1672
1672
|
return /* @__PURE__ */ s.jsx(s.Fragment, {
|
|
1673
1673
|
children: e(o, a)
|
|
1674
1674
|
});
|
|
1675
1675
|
}
|
|
1676
|
-
|
|
1676
|
+
Cn.displayName = "DropdownMenu";
|
|
1677
1677
|
const He = {
|
|
1678
1678
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1679
1679
|
current: 0
|
|
@@ -1695,21 +1695,21 @@ function Es(n = !1) {
|
|
|
1695
1695
|
}
|
|
1696
1696
|
return t.current;
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function Ds(n) {
|
|
1699
1699
|
let e = L($n);
|
|
1700
1700
|
e === He && !Ts && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
1701
1701
|
let t = Es(!!n), r = e === He && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
1702
1702
|
return n || `${r}-${t}`;
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1705
|
-
let e = te.useId(), [t] =
|
|
1704
|
+
function Os(n) {
|
|
1705
|
+
let e = te.useId(), [t] = O(Ws()), r = t || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${He.prefix}`;
|
|
1706
1706
|
return n || `${r}-${e}`;
|
|
1707
1707
|
}
|
|
1708
|
-
const
|
|
1709
|
-
function
|
|
1708
|
+
const Ps = typeof te.useId == "function" ? Os : Ds;
|
|
1709
|
+
function As() {
|
|
1710
1710
|
return !1;
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1712
|
+
function Ms() {
|
|
1713
1713
|
return !0;
|
|
1714
1714
|
}
|
|
1715
1715
|
function Fs(n) {
|
|
@@ -1717,24 +1717,24 @@ function Fs(n) {
|
|
|
1717
1717
|
};
|
|
1718
1718
|
}
|
|
1719
1719
|
function Ws() {
|
|
1720
|
-
return typeof te.useSyncExternalStore == "function" ? te.useSyncExternalStore(Fs,
|
|
1720
|
+
return typeof te.useSyncExternalStore == "function" ? te.useSyncExternalStore(Fs, As, Ms) : L(Ss);
|
|
1721
1721
|
}
|
|
1722
1722
|
const In = (n) => {
|
|
1723
1723
|
var e;
|
|
1724
1724
|
return ((e = n.getAttribute("role")) == null ? void 0 : e.toLowerCase()) === "menu";
|
|
1725
|
-
},
|
|
1725
|
+
}, At = () => {
|
|
1726
1726
|
};
|
|
1727
1727
|
function Sn() {
|
|
1728
|
-
const n =
|
|
1728
|
+
const n = Ps(), {
|
|
1729
1729
|
show: e = !1,
|
|
1730
|
-
toggle: t =
|
|
1730
|
+
toggle: t = At,
|
|
1731
1731
|
setToggle: r,
|
|
1732
1732
|
menuElement: o
|
|
1733
|
-
} = L(ze) || {}, a =
|
|
1733
|
+
} = L(ze) || {}, a = T((l) => {
|
|
1734
1734
|
t(!e, l);
|
|
1735
1735
|
}, [e, t]), i = {
|
|
1736
1736
|
id: n,
|
|
1737
|
-
ref: r ||
|
|
1737
|
+
ref: r || At,
|
|
1738
1738
|
onClick: a,
|
|
1739
1739
|
"aria-expanded": !!e
|
|
1740
1740
|
};
|
|
@@ -1752,7 +1752,7 @@ function Tn({
|
|
|
1752
1752
|
});
|
|
1753
1753
|
}
|
|
1754
1754
|
Tn.displayName = "DropdownToggle";
|
|
1755
|
-
const st = /* @__PURE__ */
|
|
1755
|
+
const st = /* @__PURE__ */ M.createContext(null), Mt = (n, e = null) => n != null ? String(n) : e || null, En = /* @__PURE__ */ M.createContext(null);
|
|
1756
1756
|
En.displayName = "NavContext";
|
|
1757
1757
|
const Rs = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
1758
1758
|
function Ls(n, e) {
|
|
@@ -1763,7 +1763,7 @@ function Ls(n, e) {
|
|
|
1763
1763
|
o = r[a], !(e.indexOf(o) >= 0) && (t[o] = n[o]);
|
|
1764
1764
|
return t;
|
|
1765
1765
|
}
|
|
1766
|
-
function
|
|
1766
|
+
function Dn({
|
|
1767
1767
|
key: n,
|
|
1768
1768
|
href: e,
|
|
1769
1769
|
active: t,
|
|
@@ -1772,9 +1772,9 @@ function On({
|
|
|
1772
1772
|
}) {
|
|
1773
1773
|
const a = L(st), i = L(En), {
|
|
1774
1774
|
activeKey: l
|
|
1775
|
-
} = i || {}, c =
|
|
1775
|
+
} = i || {}, c = Mt(n, e), u = t == null && n != null ? Mt(l) === c : t;
|
|
1776
1776
|
return [{
|
|
1777
|
-
onClick:
|
|
1777
|
+
onClick: me((h) => {
|
|
1778
1778
|
r || (o == null || o(h), a && !h.isPropagationStopped() && a(c, h));
|
|
1779
1779
|
}),
|
|
1780
1780
|
"aria-disabled": r || void 0,
|
|
@@ -1784,7 +1784,7 @@ function On({
|
|
|
1784
1784
|
isActive: u
|
|
1785
1785
|
}];
|
|
1786
1786
|
}
|
|
1787
|
-
const
|
|
1787
|
+
const On = /* @__PURE__ */ M.forwardRef((n, e) => {
|
|
1788
1788
|
let {
|
|
1789
1789
|
eventKey: t,
|
|
1790
1790
|
disabled: r,
|
|
@@ -1792,7 +1792,7 @@ const Dn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1792
1792
|
active: a,
|
|
1793
1793
|
as: i = vn
|
|
1794
1794
|
} = n, l = Ls(n, Rs);
|
|
1795
|
-
const [c] =
|
|
1795
|
+
const [c] = Dn({
|
|
1796
1796
|
key: t,
|
|
1797
1797
|
href: l.href,
|
|
1798
1798
|
disabled: r,
|
|
@@ -1803,14 +1803,14 @@ const Dn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1803
1803
|
ref: e
|
|
1804
1804
|
}, c));
|
|
1805
1805
|
});
|
|
1806
|
-
|
|
1806
|
+
On.displayName = "DropdownItem";
|
|
1807
1807
|
function Ft() {
|
|
1808
|
-
const n =
|
|
1808
|
+
const n = Ns(), e = Y(null), t = T((r) => {
|
|
1809
1809
|
e.current = r, n();
|
|
1810
1810
|
}, [n]);
|
|
1811
1811
|
return [e, t];
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1813
|
+
function De({
|
|
1814
1814
|
defaultShow: n,
|
|
1815
1815
|
show: e,
|
|
1816
1816
|
onSelect: t,
|
|
@@ -1820,81 +1820,81 @@ function Oe({
|
|
|
1820
1820
|
placement: i = "bottom-start",
|
|
1821
1821
|
children: l
|
|
1822
1822
|
}) {
|
|
1823
|
-
const c = br(), [u, d] = ks(e, n, r), [h,
|
|
1824
|
-
d(
|
|
1825
|
-
originalEvent:
|
|
1823
|
+
const c = br(), [u, d] = ks(e, n, r), [h, p] = Ft(), g = h.current, [_, x] = Ft(), m = _.current, k = Kr(u), b = Y(null), f = Y(!1), N = L(st), j = T((v, S, F = S == null ? void 0 : S.type) => {
|
|
1824
|
+
d(v, {
|
|
1825
|
+
originalEvent: S,
|
|
1826
1826
|
source: F
|
|
1827
1827
|
});
|
|
1828
|
-
}, [d]), y =
|
|
1829
|
-
t == null || t(
|
|
1830
|
-
}), $ =
|
|
1831
|
-
toggle:
|
|
1828
|
+
}, [d]), y = me((v, S) => {
|
|
1829
|
+
t == null || t(v, S), j(!1, S, "select"), S.isPropagationStopped() || N == null || N(v, S);
|
|
1830
|
+
}), $ = Q(() => ({
|
|
1831
|
+
toggle: j,
|
|
1832
1832
|
placement: i,
|
|
1833
1833
|
show: u,
|
|
1834
1834
|
menuElement: g,
|
|
1835
|
-
toggleElement:
|
|
1836
|
-
setMenu:
|
|
1835
|
+
toggleElement: m,
|
|
1836
|
+
setMenu: p,
|
|
1837
1837
|
setToggle: x
|
|
1838
|
-
}), [
|
|
1839
|
-
g &&
|
|
1840
|
-
const P =
|
|
1841
|
-
|
|
1842
|
-
}), I =
|
|
1843
|
-
const
|
|
1844
|
-
let
|
|
1845
|
-
if (
|
|
1838
|
+
}), [j, i, u, g, m, p, x]);
|
|
1839
|
+
g && k && !u && (f.current = g.contains(g.ownerDocument.activeElement));
|
|
1840
|
+
const P = me(() => {
|
|
1841
|
+
m && m.focus && m.focus();
|
|
1842
|
+
}), I = me(() => {
|
|
1843
|
+
const v = b.current;
|
|
1844
|
+
let S = a;
|
|
1845
|
+
if (S == null && (S = h.current && In(h.current) ? "keyboard" : !1), S === !1 || S === "keyboard" && !/^key.+$/.test(v))
|
|
1846
1846
|
return;
|
|
1847
|
-
const F =
|
|
1847
|
+
const F = Ct(h.current, o)[0];
|
|
1848
1848
|
F && F.focus && F.focus();
|
|
1849
1849
|
});
|
|
1850
1850
|
D(() => {
|
|
1851
|
-
u ? I() :
|
|
1852
|
-
}, [u,
|
|
1853
|
-
|
|
1851
|
+
u ? I() : f.current && (f.current = !1, P());
|
|
1852
|
+
}, [u, f, P, I]), D(() => {
|
|
1853
|
+
b.current = null;
|
|
1854
1854
|
});
|
|
1855
|
-
const
|
|
1855
|
+
const C = (v, S) => {
|
|
1856
1856
|
if (!h.current)
|
|
1857
1857
|
return null;
|
|
1858
|
-
const F =
|
|
1859
|
-
let W = F.indexOf(
|
|
1858
|
+
const F = Ct(h.current, o);
|
|
1859
|
+
let W = F.indexOf(v) + S;
|
|
1860
1860
|
return W = Math.max(0, Math.min(W, F.length)), F[W];
|
|
1861
1861
|
};
|
|
1862
|
-
return fs(
|
|
1863
|
-
var
|
|
1862
|
+
return fs(T(() => c.document, [c]), "keydown", (v) => {
|
|
1863
|
+
var S, F;
|
|
1864
1864
|
const {
|
|
1865
1865
|
key: W
|
|
1866
|
-
} =
|
|
1866
|
+
} = v, H = v.target, R = (S = h.current) == null ? void 0 : S.contains(H), G = (F = _.current) == null ? void 0 : F.contains(H);
|
|
1867
1867
|
if (/input|textarea/i.test(H.tagName) && (W === " " || W !== "Escape" && R || W === "Escape" && H.type === "search") || !R && !G || W === "Tab" && (!h.current || !u))
|
|
1868
1868
|
return;
|
|
1869
|
-
|
|
1869
|
+
b.current = v.type;
|
|
1870
1870
|
const ne = {
|
|
1871
|
-
originalEvent:
|
|
1872
|
-
source:
|
|
1871
|
+
originalEvent: v,
|
|
1872
|
+
source: v.type
|
|
1873
1873
|
};
|
|
1874
1874
|
switch (W) {
|
|
1875
1875
|
case "ArrowUp": {
|
|
1876
|
-
const
|
|
1877
|
-
|
|
1876
|
+
const K = C(H, -1);
|
|
1877
|
+
K && K.focus && K.focus(), v.preventDefault();
|
|
1878
1878
|
return;
|
|
1879
1879
|
}
|
|
1880
1880
|
case "ArrowDown":
|
|
1881
|
-
if (
|
|
1881
|
+
if (v.preventDefault(), !u)
|
|
1882
1882
|
d(!0, ne);
|
|
1883
1883
|
else {
|
|
1884
|
-
const
|
|
1885
|
-
|
|
1884
|
+
const K = C(H, 1);
|
|
1885
|
+
K && K.focus && K.focus();
|
|
1886
1886
|
}
|
|
1887
1887
|
return;
|
|
1888
1888
|
case "Tab":
|
|
1889
|
-
_r(H.ownerDocument, "keyup", (
|
|
1890
|
-
var
|
|
1891
|
-
(
|
|
1889
|
+
_r(H.ownerDocument, "keyup", (K) => {
|
|
1890
|
+
var E;
|
|
1891
|
+
(K.key === "Tab" && !K.target || !((E = h.current) != null && E.contains(K.target))) && d(!1, ne);
|
|
1892
1892
|
}, {
|
|
1893
1893
|
once: !0
|
|
1894
1894
|
});
|
|
1895
1895
|
break;
|
|
1896
1896
|
case "Escape":
|
|
1897
|
-
W === "Escape" && (
|
|
1897
|
+
W === "Escape" && (v.preventDefault(), v.stopPropagation()), d(!1, ne);
|
|
1898
1898
|
break;
|
|
1899
1899
|
}
|
|
1900
1900
|
}), /* @__PURE__ */ s.jsx(st.Provider, {
|
|
@@ -1905,13 +1905,13 @@ function Oe({
|
|
|
1905
1905
|
})
|
|
1906
1906
|
});
|
|
1907
1907
|
}
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
const gt = /* @__PURE__ */
|
|
1908
|
+
De.displayName = "Dropdown";
|
|
1909
|
+
De.Menu = Cn;
|
|
1910
|
+
De.Toggle = Tn;
|
|
1911
|
+
De.Item = On;
|
|
1912
|
+
const gt = /* @__PURE__ */ M.createContext({});
|
|
1913
1913
|
gt.displayName = "DropdownContext";
|
|
1914
|
-
const
|
|
1914
|
+
const Pn = /* @__PURE__ */ M.forwardRef(({
|
|
1915
1915
|
className: n,
|
|
1916
1916
|
bsPrefix: e,
|
|
1917
1917
|
as: t = "hr",
|
|
@@ -1923,8 +1923,8 @@ const Mn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1923
1923
|
role: r,
|
|
1924
1924
|
...o
|
|
1925
1925
|
})));
|
|
1926
|
-
|
|
1927
|
-
const
|
|
1926
|
+
Pn.displayName = "DropdownDivider";
|
|
1927
|
+
const An = /* @__PURE__ */ M.forwardRef(({
|
|
1928
1928
|
className: n,
|
|
1929
1929
|
bsPrefix: e,
|
|
1930
1930
|
as: t = "div",
|
|
@@ -1936,8 +1936,8 @@ const Pn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1936
1936
|
role: r,
|
|
1937
1937
|
...o
|
|
1938
1938
|
})));
|
|
1939
|
-
|
|
1940
|
-
const
|
|
1939
|
+
An.displayName = "DropdownHeader";
|
|
1940
|
+
const Mn = /* @__PURE__ */ M.forwardRef(({
|
|
1941
1941
|
bsPrefix: n,
|
|
1942
1942
|
className: e,
|
|
1943
1943
|
eventKey: t,
|
|
@@ -1947,7 +1947,7 @@ const An = /* @__PURE__ */ A.forwardRef(({
|
|
|
1947
1947
|
as: i = pt,
|
|
1948
1948
|
...l
|
|
1949
1949
|
}, c) => {
|
|
1950
|
-
const u = V(n, "dropdown-item"), [d, h] =
|
|
1950
|
+
const u = V(n, "dropdown-item"), [d, h] = Dn({
|
|
1951
1951
|
key: t,
|
|
1952
1952
|
href: l.href,
|
|
1953
1953
|
disabled: r,
|
|
@@ -1961,8 +1961,8 @@ const An = /* @__PURE__ */ A.forwardRef(({
|
|
|
1961
1961
|
className: w(e, u, h.isActive && "active", r && "disabled")
|
|
1962
1962
|
});
|
|
1963
1963
|
});
|
|
1964
|
-
|
|
1965
|
-
const Fn = /* @__PURE__ */
|
|
1964
|
+
Mn.displayName = "DropdownItem";
|
|
1965
|
+
const Fn = /* @__PURE__ */ M.forwardRef(({
|
|
1966
1966
|
className: n,
|
|
1967
1967
|
bsPrefix: e,
|
|
1968
1968
|
as: t = "span",
|
|
@@ -1973,15 +1973,15 @@ const Fn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1973
1973
|
...r
|
|
1974
1974
|
})));
|
|
1975
1975
|
Fn.displayName = "DropdownItemText";
|
|
1976
|
-
const Ue = /* @__PURE__ */
|
|
1976
|
+
const Ue = /* @__PURE__ */ M.createContext(null);
|
|
1977
1977
|
Ue.displayName = "InputGroupContext";
|
|
1978
|
-
const Wn = /* @__PURE__ */
|
|
1978
|
+
const Wn = /* @__PURE__ */ M.createContext(null);
|
|
1979
1979
|
Wn.displayName = "NavbarContext";
|
|
1980
1980
|
function Rn(n, e) {
|
|
1981
1981
|
if (process.env.NODE_ENV === "production")
|
|
1982
1982
|
return n;
|
|
1983
|
-
const t =
|
|
1984
|
-
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ?
|
|
1983
|
+
const t = T((r) => {
|
|
1984
|
+
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? Pt(!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`) : Pt(!1));
|
|
1985
1985
|
}, [e]);
|
|
1986
1986
|
return lt(t, n);
|
|
1987
1987
|
}
|
|
@@ -1990,7 +1990,7 @@ function Ln(n, e, t) {
|
|
|
1990
1990
|
let h = n ? i : a;
|
|
1991
1991
|
return e === "up" ? h = n ? o : 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
1992
|
}
|
|
1993
|
-
const qn = /* @__PURE__ */
|
|
1993
|
+
const qn = /* @__PURE__ */ M.forwardRef(({
|
|
1994
1994
|
bsPrefix: n,
|
|
1995
1995
|
className: e,
|
|
1996
1996
|
align: t,
|
|
@@ -2004,58 +2004,58 @@ const qn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2004
2004
|
variant: u,
|
|
2005
2005
|
...d
|
|
2006
2006
|
}, h) => {
|
|
2007
|
-
let
|
|
2008
|
-
const g = L(Wn),
|
|
2007
|
+
let p = !1;
|
|
2008
|
+
const g = L(Wn), _ = V(n, "dropdown-menu"), {
|
|
2009
2009
|
align: x,
|
|
2010
|
-
drop:
|
|
2011
|
-
isRTL:
|
|
2010
|
+
drop: m,
|
|
2011
|
+
isRTL: k
|
|
2012
2012
|
} = L(gt);
|
|
2013
2013
|
t = t || x;
|
|
2014
|
-
const
|
|
2014
|
+
const b = L(Ue), f = [];
|
|
2015
2015
|
if (t)
|
|
2016
2016
|
if (typeof t == "object") {
|
|
2017
|
-
const
|
|
2018
|
-
if (process.env.NODE_ENV !== "production" && Qt(
|
|
2019
|
-
const
|
|
2020
|
-
|
|
2017
|
+
const v = Object.keys(t);
|
|
2018
|
+
if (process.env.NODE_ENV !== "production" && Qt(v.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), v.length) {
|
|
2019
|
+
const S = v[0], F = t[S];
|
|
2020
|
+
p = F === "start", f.push(`${_}-${S}-${F}`);
|
|
2021
2021
|
}
|
|
2022
2022
|
} else
|
|
2023
|
-
t === "end" && (
|
|
2024
|
-
const
|
|
2023
|
+
t === "end" && (p = !0);
|
|
2024
|
+
const N = Ln(p, m, k), [j, {
|
|
2025
2025
|
hasShown: y,
|
|
2026
2026
|
popper: $,
|
|
2027
2027
|
show: P,
|
|
2028
2028
|
toggle: I
|
|
2029
|
-
}] =
|
|
2029
|
+
}] = Nn({
|
|
2030
2030
|
flip: o,
|
|
2031
2031
|
rootCloseEvent: r,
|
|
2032
2032
|
show: a,
|
|
2033
|
-
usePopper: !g &&
|
|
2033
|
+
usePopper: !g && f.length === 0,
|
|
2034
2034
|
offset: [0, 2],
|
|
2035
2035
|
popperConfig: c,
|
|
2036
|
-
placement:
|
|
2036
|
+
placement: N
|
|
2037
2037
|
});
|
|
2038
|
-
if (
|
|
2038
|
+
if (j.ref = lt(Rn(h, "DropdownMenu"), j.ref), jr(() => {
|
|
2039
2039
|
P && ($ == null || $.update());
|
|
2040
|
-
}, [P]), !y && !i && !
|
|
2040
|
+
}, [P]), !y && !i && !b)
|
|
2041
2041
|
return null;
|
|
2042
|
-
typeof l != "string" && (
|
|
2043
|
-
let
|
|
2044
|
-
return $ != null && $.placement && (
|
|
2042
|
+
typeof l != "string" && (j.show = P, j.close = () => I == null ? void 0 : I(!1), j.align = t);
|
|
2043
|
+
let C = d.style;
|
|
2044
|
+
return $ != null && $.placement && (C = {
|
|
2045
2045
|
...d.style,
|
|
2046
|
-
...
|
|
2046
|
+
...j.style
|
|
2047
2047
|
}, d["x-placement"] = $.placement), /* @__PURE__ */ s.jsx(l, {
|
|
2048
2048
|
...d,
|
|
2049
|
-
...
|
|
2050
|
-
style:
|
|
2051
|
-
...(
|
|
2049
|
+
...j,
|
|
2050
|
+
style: C,
|
|
2051
|
+
...(f.length || g) && {
|
|
2052
2052
|
"data-bs-popper": "static"
|
|
2053
2053
|
},
|
|
2054
|
-
className: w(e,
|
|
2054
|
+
className: w(e, _, P && "show", p && `${_}-end`, u && `${_}-${u}`, ...f)
|
|
2055
2055
|
});
|
|
2056
2056
|
});
|
|
2057
2057
|
qn.displayName = "DropdownMenu";
|
|
2058
|
-
const Yn = /* @__PURE__ */
|
|
2058
|
+
const Yn = /* @__PURE__ */ M.forwardRef(({
|
|
2059
2059
|
bsPrefix: n,
|
|
2060
2060
|
split: e,
|
|
2061
2061
|
className: t,
|
|
@@ -2074,7 +2074,7 @@ const Yn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2074
2074
|
});
|
|
2075
2075
|
});
|
|
2076
2076
|
Yn.displayName = "DropdownToggle";
|
|
2077
|
-
const Hn = /* @__PURE__ */
|
|
2077
|
+
const Hn = /* @__PURE__ */ M.forwardRef((n, e) => {
|
|
2078
2078
|
const {
|
|
2079
2079
|
bsPrefix: t,
|
|
2080
2080
|
drop: r = "down",
|
|
@@ -2087,18 +2087,18 @@ const Hn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
2087
2087
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2088
2088
|
as: d = "div",
|
|
2089
2089
|
navbar: h,
|
|
2090
|
-
autoClose:
|
|
2090
|
+
autoClose: p = !0,
|
|
2091
2091
|
...g
|
|
2092
2092
|
} = Kt(n, {
|
|
2093
2093
|
show: "onToggle"
|
|
2094
|
-
}),
|
|
2095
|
-
var I,
|
|
2096
|
-
!((I = P.originalEvent) == null || (
|
|
2097
|
-
}),
|
|
2094
|
+
}), _ = L(Ue), x = V(t, "dropdown"), m = kr(), k = ($) => p === !1 ? $ === "click" : p === "inside" ? $ !== "rootClose" : p === "outside" ? $ !== "select" : !0, b = me(($, P) => {
|
|
2095
|
+
var I, C;
|
|
2096
|
+
!((I = P.originalEvent) == null || (C = I.target) == null) && C.classList.contains("dropdown-toggle") && P.source === "mousedown" || (P.originalEvent.currentTarget === document && (P.source !== "keydown" || P.originalEvent.key === "Escape") && (P.source = "rootClose"), k(P.source) && (c == null || c($, P)));
|
|
2097
|
+
}), N = Ln(i === "end", r, m), j = Q(() => ({
|
|
2098
2098
|
align: i,
|
|
2099
2099
|
drop: r,
|
|
2100
|
-
isRTL:
|
|
2101
|
-
}), [i, r,
|
|
2100
|
+
isRTL: m
|
|
2101
|
+
}), [i, r, m]), y = {
|
|
2102
2102
|
down: x,
|
|
2103
2103
|
"down-centered": `${x}-center`,
|
|
2104
2104
|
up: "dropup",
|
|
@@ -2107,15 +2107,15 @@ const Hn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
2107
2107
|
start: "dropstart"
|
|
2108
2108
|
};
|
|
2109
2109
|
return /* @__PURE__ */ s.jsx(gt.Provider, {
|
|
2110
|
-
value:
|
|
2111
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2112
|
-
placement:
|
|
2110
|
+
value: j,
|
|
2111
|
+
children: /* @__PURE__ */ s.jsx(De, {
|
|
2112
|
+
placement: N,
|
|
2113
2113
|
show: o,
|
|
2114
2114
|
onSelect: l,
|
|
2115
|
-
onToggle:
|
|
2115
|
+
onToggle: b,
|
|
2116
2116
|
focusFirstItemOnShow: u,
|
|
2117
2117
|
itemSelector: `.${x}-item:not(.disabled):not(:disabled)`,
|
|
2118
|
-
children:
|
|
2118
|
+
children: _ ? g.children : /* @__PURE__ */ s.jsx(d, {
|
|
2119
2119
|
...g,
|
|
2120
2120
|
ref: e,
|
|
2121
2121
|
className: w(a, o && "show", y[r])
|
|
@@ -2124,14 +2124,14 @@ const Hn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
2124
2124
|
});
|
|
2125
2125
|
});
|
|
2126
2126
|
Hn.displayName = "Dropdown";
|
|
2127
|
-
const
|
|
2127
|
+
const Ee = Object.assign(Hn, {
|
|
2128
2128
|
Toggle: Yn,
|
|
2129
2129
|
Menu: qn,
|
|
2130
|
-
Item:
|
|
2130
|
+
Item: Mn,
|
|
2131
2131
|
ItemText: Fn,
|
|
2132
|
-
Divider:
|
|
2133
|
-
Header:
|
|
2134
|
-
}),
|
|
2132
|
+
Divider: Pn,
|
|
2133
|
+
Header: An
|
|
2134
|
+
}), Oe = /* @__PURE__ */ M.forwardRef(({
|
|
2135
2135
|
id: n,
|
|
2136
2136
|
bsPrefix: e,
|
|
2137
2137
|
className: t,
|
|
@@ -2144,7 +2144,7 @@ const Te = Object.assign(Hn, {
|
|
|
2144
2144
|
}, c) => {
|
|
2145
2145
|
const {
|
|
2146
2146
|
controlId: u
|
|
2147
|
-
} = L(
|
|
2147
|
+
} = L(be);
|
|
2148
2148
|
return e = V(e, "form-check-input"), /* @__PURE__ */ s.jsx(i, {
|
|
2149
2149
|
...l,
|
|
2150
2150
|
ref: c,
|
|
@@ -2153,8 +2153,8 @@ const Te = Object.assign(Hn, {
|
|
|
2153
2153
|
className: w(t, e, o && "is-valid", a && "is-invalid")
|
|
2154
2154
|
});
|
|
2155
2155
|
});
|
|
2156
|
-
|
|
2157
|
-
const Be = /* @__PURE__ */
|
|
2156
|
+
Oe.displayName = "FormCheckInput";
|
|
2157
|
+
const Be = /* @__PURE__ */ M.forwardRef(({
|
|
2158
2158
|
bsPrefix: n,
|
|
2159
2159
|
className: e,
|
|
2160
2160
|
htmlFor: t,
|
|
@@ -2162,7 +2162,7 @@ const Be = /* @__PURE__ */ A.forwardRef(({
|
|
|
2162
2162
|
}, o) => {
|
|
2163
2163
|
const {
|
|
2164
2164
|
controlId: a
|
|
2165
|
-
} = L(
|
|
2165
|
+
} = L(be);
|
|
2166
2166
|
return n = V(n, "form-check-label"), /* @__PURE__ */ s.jsx("label", {
|
|
2167
2167
|
...r,
|
|
2168
2168
|
ref: o,
|
|
@@ -2171,7 +2171,7 @@ const Be = /* @__PURE__ */ A.forwardRef(({
|
|
|
2171
2171
|
});
|
|
2172
2172
|
});
|
|
2173
2173
|
Be.displayName = "FormCheckLabel";
|
|
2174
|
-
const Bn = /* @__PURE__ */
|
|
2174
|
+
const Bn = /* @__PURE__ */ M.forwardRef(({
|
|
2175
2175
|
id: n,
|
|
2176
2176
|
bsPrefix: e,
|
|
2177
2177
|
bsSwitchPrefix: t,
|
|
@@ -2184,35 +2184,35 @@ const Bn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2184
2184
|
feedback: u,
|
|
2185
2185
|
feedbackType: d,
|
|
2186
2186
|
className: h,
|
|
2187
|
-
style:
|
|
2187
|
+
style: p,
|
|
2188
2188
|
title: g = "",
|
|
2189
|
-
type:
|
|
2189
|
+
type: _ = "checkbox",
|
|
2190
2190
|
label: x,
|
|
2191
|
-
children:
|
|
2191
|
+
children: m,
|
|
2192
2192
|
// 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
|
-
},
|
|
2193
|
+
as: k = "input",
|
|
2194
|
+
...b
|
|
2195
|
+
}, f) => {
|
|
2196
2196
|
e = V(e, "form-check"), t = V(t, "form-switch");
|
|
2197
2197
|
const {
|
|
2198
|
-
controlId:
|
|
2199
|
-
} = L(
|
|
2200
|
-
controlId: n ||
|
|
2201
|
-
}), [
|
|
2202
|
-
...
|
|
2203
|
-
type:
|
|
2204
|
-
ref:
|
|
2198
|
+
controlId: N
|
|
2199
|
+
} = L(be), j = Q(() => ({
|
|
2200
|
+
controlId: n || N
|
|
2201
|
+
}), [N, n]), y = !m && x != null && x !== !1 || _s(m, Be), $ = /* @__PURE__ */ s.jsx(Oe, {
|
|
2202
|
+
...b,
|
|
2203
|
+
type: _ === "switch" ? "checkbox" : _,
|
|
2204
|
+
ref: f,
|
|
2205
2205
|
isValid: i,
|
|
2206
2206
|
isInvalid: l,
|
|
2207
2207
|
disabled: a,
|
|
2208
|
-
as:
|
|
2208
|
+
as: k
|
|
2209
2209
|
});
|
|
2210
|
-
return /* @__PURE__ */ s.jsx(
|
|
2211
|
-
value:
|
|
2210
|
+
return /* @__PURE__ */ s.jsx(be.Provider, {
|
|
2211
|
+
value: j,
|
|
2212
2212
|
children: /* @__PURE__ */ s.jsx("div", {
|
|
2213
|
-
style:
|
|
2214
|
-
className: w(h, y && e, r && `${e}-inline`, o && `${e}-reverse`,
|
|
2215
|
-
children:
|
|
2213
|
+
style: p,
|
|
2214
|
+
className: w(h, y && e, r && `${e}-inline`, o && `${e}-reverse`, _ === "switch" && t),
|
|
2215
|
+
children: m || /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
2216
2216
|
children: [$, y && /* @__PURE__ */ s.jsx(Be, {
|
|
2217
2217
|
title: g,
|
|
2218
2218
|
children: x
|
|
@@ -2227,9 +2227,9 @@ const Bn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2227
2227
|
});
|
|
2228
2228
|
Bn.displayName = "FormCheck";
|
|
2229
2229
|
const Ge = Object.assign(Bn, {
|
|
2230
|
-
Input:
|
|
2230
|
+
Input: Oe,
|
|
2231
2231
|
Label: Be
|
|
2232
|
-
}), Gn = /* @__PURE__ */
|
|
2232
|
+
}), Gn = /* @__PURE__ */ M.forwardRef(({
|
|
2233
2233
|
className: n,
|
|
2234
2234
|
bsPrefix: e,
|
|
2235
2235
|
as: t = "div",
|
|
@@ -2240,7 +2240,7 @@ const Ge = Object.assign(Bn, {
|
|
|
2240
2240
|
...r
|
|
2241
2241
|
})));
|
|
2242
2242
|
Gn.displayName = "FormFloating";
|
|
2243
|
-
const Vn = /* @__PURE__ */
|
|
2243
|
+
const Vn = /* @__PURE__ */ M.forwardRef(({
|
|
2244
2244
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2245
2245
|
as: n = "label",
|
|
2246
2246
|
bsPrefix: e,
|
|
@@ -2252,7 +2252,7 @@ const Vn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2252
2252
|
}, l) => {
|
|
2253
2253
|
const {
|
|
2254
2254
|
controlId: c
|
|
2255
|
-
} = L(
|
|
2255
|
+
} = L(be);
|
|
2256
2256
|
e = V(e, "form-label");
|
|
2257
2257
|
let u = "col-form-label";
|
|
2258
2258
|
typeof t == "string" && (u = `${u} ${u}-${t}`);
|
|
@@ -2274,7 +2274,7 @@ const Vn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2274
2274
|
);
|
|
2275
2275
|
});
|
|
2276
2276
|
Vn.displayName = "FormLabel";
|
|
2277
|
-
const zn = /* @__PURE__ */
|
|
2277
|
+
const zn = /* @__PURE__ */ M.forwardRef(({
|
|
2278
2278
|
bsPrefix: n,
|
|
2279
2279
|
className: e,
|
|
2280
2280
|
id: t,
|
|
@@ -2282,7 +2282,7 @@ const zn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2282
2282
|
}, o) => {
|
|
2283
2283
|
const {
|
|
2284
2284
|
controlId: a
|
|
2285
|
-
} = L(
|
|
2285
|
+
} = L(be);
|
|
2286
2286
|
return n = V(n, "form-range"), /* @__PURE__ */ s.jsx("input", {
|
|
2287
2287
|
...r,
|
|
2288
2288
|
type: "range",
|
|
@@ -2292,7 +2292,7 @@ const zn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2292
2292
|
});
|
|
2293
2293
|
});
|
|
2294
2294
|
zn.displayName = "FormRange";
|
|
2295
|
-
const Un = /* @__PURE__ */
|
|
2295
|
+
const Un = /* @__PURE__ */ M.forwardRef(({
|
|
2296
2296
|
bsPrefix: n,
|
|
2297
2297
|
size: e,
|
|
2298
2298
|
htmlSize: t,
|
|
@@ -2304,7 +2304,7 @@ const Un = /* @__PURE__ */ A.forwardRef(({
|
|
|
2304
2304
|
}, c) => {
|
|
2305
2305
|
const {
|
|
2306
2306
|
controlId: u
|
|
2307
|
-
} = L(
|
|
2307
|
+
} = L(be);
|
|
2308
2308
|
return n = V(n, "form-select"), /* @__PURE__ */ s.jsx("select", {
|
|
2309
2309
|
...l,
|
|
2310
2310
|
size: t,
|
|
@@ -2314,7 +2314,7 @@ const Un = /* @__PURE__ */ A.forwardRef(({
|
|
|
2314
2314
|
});
|
|
2315
2315
|
});
|
|
2316
2316
|
Un.displayName = "FormSelect";
|
|
2317
|
-
const Kn = /* @__PURE__ */
|
|
2317
|
+
const Kn = /* @__PURE__ */ M.forwardRef(
|
|
2318
2318
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2319
2319
|
({
|
|
2320
2320
|
bsPrefix: n,
|
|
@@ -2329,7 +2329,7 @@ const Kn = /* @__PURE__ */ A.forwardRef(
|
|
|
2329
2329
|
}))
|
|
2330
2330
|
);
|
|
2331
2331
|
Kn.displayName = "FormText";
|
|
2332
|
-
const Qn = /* @__PURE__ */
|
|
2332
|
+
const Qn = /* @__PURE__ */ M.forwardRef((n, e) => /* @__PURE__ */ s.jsx(Ge, {
|
|
2333
2333
|
...n,
|
|
2334
2334
|
ref: e,
|
|
2335
2335
|
type: "switch"
|
|
@@ -2354,7 +2354,7 @@ const qs = Object.assign(Qn, {
|
|
|
2354
2354
|
*/
|
|
2355
2355
|
validated: Xe.bool,
|
|
2356
2356
|
as: Xe.elementType
|
|
2357
|
-
},
|
|
2357
|
+
}, xt = /* @__PURE__ */ M.forwardRef(({
|
|
2358
2358
|
className: n,
|
|
2359
2359
|
validated: e,
|
|
2360
2360
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -2365,10 +2365,10 @@ const qs = Object.assign(Qn, {
|
|
|
2365
2365
|
ref: o,
|
|
2366
2366
|
className: w(n, e && "was-validated")
|
|
2367
2367
|
}));
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
const J = Object.assign(
|
|
2371
|
-
Group:
|
|
2368
|
+
xt.displayName = "Form";
|
|
2369
|
+
xt.propTypes = Ys;
|
|
2370
|
+
const J = Object.assign(xt, {
|
|
2371
|
+
Group: Nr,
|
|
2372
2372
|
Control: an,
|
|
2373
2373
|
Floating: Gn,
|
|
2374
2374
|
Check: Ge,
|
|
@@ -2377,8 +2377,8 @@ const J = Object.assign(wt, {
|
|
|
2377
2377
|
Text: Kn,
|
|
2378
2378
|
Range: zn,
|
|
2379
2379
|
Select: Un,
|
|
2380
|
-
FloatingLabel:
|
|
2381
|
-
}), Ke = /* @__PURE__ */
|
|
2380
|
+
FloatingLabel: Cr
|
|
2381
|
+
}), Ke = /* @__PURE__ */ M.forwardRef(({
|
|
2382
2382
|
className: n,
|
|
2383
2383
|
bsPrefix: e,
|
|
2384
2384
|
as: t = "span",
|
|
@@ -2390,16 +2390,16 @@ const J = Object.assign(wt, {
|
|
|
2390
2390
|
})));
|
|
2391
2391
|
Ke.displayName = "InputGroupText";
|
|
2392
2392
|
const Hs = (n) => /* @__PURE__ */ s.jsx(Ke, {
|
|
2393
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2393
|
+
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2394
2394
|
type: "checkbox",
|
|
2395
2395
|
...n
|
|
2396
2396
|
})
|
|
2397
2397
|
}), Bs = (n) => /* @__PURE__ */ s.jsx(Ke, {
|
|
2398
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2398
|
+
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2399
2399
|
type: "radio",
|
|
2400
2400
|
...n
|
|
2401
2401
|
})
|
|
2402
|
-
}), Xn = /* @__PURE__ */
|
|
2402
|
+
}), Xn = /* @__PURE__ */ M.forwardRef(({
|
|
2403
2403
|
bsPrefix: n,
|
|
2404
2404
|
size: e,
|
|
2405
2405
|
hasValidation: t,
|
|
@@ -2409,7 +2409,7 @@ const Hs = (n) => /* @__PURE__ */ s.jsx(Ke, {
|
|
|
2409
2409
|
...a
|
|
2410
2410
|
}, i) => {
|
|
2411
2411
|
n = V(n, "input-group");
|
|
2412
|
-
const l =
|
|
2412
|
+
const l = Q(() => ({}), []);
|
|
2413
2413
|
return /* @__PURE__ */ s.jsx(Ue.Provider, {
|
|
2414
2414
|
value: l,
|
|
2415
2415
|
children: /* @__PURE__ */ s.jsx(o, {
|
|
@@ -2424,7 +2424,7 @@ const tt = Object.assign(Xn, {
|
|
|
2424
2424
|
Text: Ke,
|
|
2425
2425
|
Radio: Bs,
|
|
2426
2426
|
Checkbox: Hs
|
|
2427
|
-
}),
|
|
2427
|
+
}), wt = /* @__PURE__ */ M.forwardRef(({
|
|
2428
2428
|
bsPrefix: n,
|
|
2429
2429
|
variant: e,
|
|
2430
2430
|
animation: t = "border",
|
|
@@ -2442,9 +2442,9 @@ const tt = Object.assign(Xn, {
|
|
|
2442
2442
|
className: w(a, c, r && `${c}-${r}`, e && `text-${e}`)
|
|
2443
2443
|
});
|
|
2444
2444
|
});
|
|
2445
|
-
|
|
2445
|
+
wt.displayName = "Spinner";
|
|
2446
2446
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2447
|
-
const Jn = "client_info_decoding_error", Zn = "client_info_empty_error", Gs = "token_parsing_error", Vs = "null_or_empty_token", zs = "endpoints_resolution_error", Us = "network_error", Ks = "openid_config_error", Qs = "hash_not_deserialized", Xs = "invalid_state", Js = "state_mismatch", Zs = "state_not_found", ea = "nonce_mismatch", ta = "auth_time_not_found", na = "max_age_transpired", ra = "multiple_matching_tokens", oa = "multiple_matching_accounts", sa = "multiple_matching_appMetadata", aa = "request_cannot_be_made", ia = "cannot_remove_empty_scope", ca = "cannot_append_scopeset", la = "empty_input_scopeset", ua = "device_code_polling_cancelled", da = "device_code_expired", ha = "device_code_unknown_error", ma = "no_account_in_silent_request", fa = "invalid_cache_record", er = "invalid_cache_environment", pa = "no_account_found", ga = "no_crypto_object",
|
|
2447
|
+
const Jn = "client_info_decoding_error", Zn = "client_info_empty_error", Gs = "token_parsing_error", Vs = "null_or_empty_token", zs = "endpoints_resolution_error", Us = "network_error", Ks = "openid_config_error", Qs = "hash_not_deserialized", Xs = "invalid_state", Js = "state_mismatch", Zs = "state_not_found", ea = "nonce_mismatch", ta = "auth_time_not_found", na = "max_age_transpired", ra = "multiple_matching_tokens", oa = "multiple_matching_accounts", sa = "multiple_matching_appMetadata", aa = "request_cannot_be_made", ia = "cannot_remove_empty_scope", ca = "cannot_append_scopeset", la = "empty_input_scopeset", ua = "device_code_polling_cancelled", da = "device_code_expired", ha = "device_code_unknown_error", ma = "no_account_in_silent_request", fa = "invalid_cache_record", er = "invalid_cache_environment", pa = "no_account_found", ga = "no_crypto_object", xa = "unexpected_credential_type", wa = "invalid_assertion", ya = "invalid_client_credential", va = "token_refresh_required", ba = "user_timeout_reached", _a = "token_claims_cnf_required_for_signedjwt", ja = "authorization_code_missing_from_server_response", ka = "binding_key_not_removed", Na = "end_session_endpoint_not_supported", Ca = "key_id_missing", $a = "no_network_connectivity", Ia = "user_canceled", Sa = "missing_tenant_id_error", Ta = "method_not_implemented", Ea = "nested_app_auth_bridge_disabled";
|
|
2448
2448
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2449
2449
|
const Wt = {
|
|
2450
2450
|
[Jn]: "The client info could not be parsed/decoded correctly",
|
|
@@ -2476,16 +2476,16 @@ const Wt = {
|
|
|
2476
2476
|
[er]: "Invalid environment when attempting to create cache entry",
|
|
2477
2477
|
[pa]: "No account found in cache for given key.",
|
|
2478
2478
|
[ga]: "No crypto object detected.",
|
|
2479
|
-
[
|
|
2480
|
-
[
|
|
2479
|
+
[xa]: "Unexpected credential type.",
|
|
2480
|
+
[wa]: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",
|
|
2481
2481
|
[ya]: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",
|
|
2482
2482
|
[va]: "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.",
|
|
2483
2483
|
[ba]: "User defined timeout for device code polling reached",
|
|
2484
2484
|
[_a]: "Cannot generate a POP jwt if the token_claims are not populated",
|
|
2485
2485
|
[ja]: "Server response does not contain an authorization code to proceed",
|
|
2486
2486
|
[ka]: "Could not remove the credential's binding key from storage.",
|
|
2487
|
-
[
|
|
2488
|
-
[
|
|
2487
|
+
[Na]: "The provided authority does not support logout",
|
|
2488
|
+
[Ca]: "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.",
|
|
2489
2489
|
[$a]: "No network connectivity. Check your internet connection.",
|
|
2490
2490
|
[Ia]: "User cancelled the flow.",
|
|
2491
2491
|
[Sa]: "A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",
|
|
@@ -2512,16 +2512,16 @@ function Rt(n, e) {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
}
|
|
2514
2514
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2515
|
-
function
|
|
2515
|
+
function Da(n, e) {
|
|
2516
2516
|
return !!n && !!e && n === e.split(".")[1];
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function Oa(n, e) {
|
|
2519
2519
|
const { oid: t, sub: r, tid: o, name: a, tfp: i, acr: l } = e, c = o || i || l || "";
|
|
2520
2520
|
return {
|
|
2521
2521
|
tenantId: c,
|
|
2522
2522
|
localAccountId: t || r || "",
|
|
2523
2523
|
name: a,
|
|
2524
|
-
isHomeTenant:
|
|
2524
|
+
isHomeTenant: Da(c, n)
|
|
2525
2525
|
};
|
|
2526
2526
|
}
|
|
2527
2527
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
@@ -2532,16 +2532,16 @@ const nt = {
|
|
|
2532
2532
|
Ciam: 3
|
|
2533
2533
|
};
|
|
2534
2534
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2535
|
-
function
|
|
2535
|
+
function Pa(n) {
|
|
2536
2536
|
return n && (n.tid || n.tfp || n.acr) || null;
|
|
2537
2537
|
}
|
|
2538
2538
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2539
|
-
const
|
|
2539
|
+
const Aa = {
|
|
2540
2540
|
AAD: "AAD",
|
|
2541
2541
|
OIDC: "OIDC"
|
|
2542
2542
|
};
|
|
2543
2543
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2544
|
-
class
|
|
2544
|
+
class Se {
|
|
2545
2545
|
/**
|
|
2546
2546
|
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
2547
2547
|
*/
|
|
@@ -2552,7 +2552,7 @@ class Ie {
|
|
|
2552
2552
|
* Generate Account Cache Key as per the schema: <home_account_id>-<environment>-<realm*>
|
|
2553
2553
|
*/
|
|
2554
2554
|
generateAccountKey() {
|
|
2555
|
-
return
|
|
2555
|
+
return Se.generateAccountCacheKey({
|
|
2556
2556
|
homeAccountId: this.homeAccountId,
|
|
2557
2557
|
environment: this.environment,
|
|
2558
2558
|
tenantId: this.realm,
|
|
@@ -2600,21 +2600,21 @@ class Ie {
|
|
|
2600
2600
|
* @param accountDetails
|
|
2601
2601
|
*/
|
|
2602
2602
|
static createAccount(e, t, r) {
|
|
2603
|
-
const o = new
|
|
2604
|
-
t.authorityType === nt.Adfs ? o.authorityType =
|
|
2603
|
+
const o = new Se();
|
|
2604
|
+
t.authorityType === nt.Adfs ? o.authorityType = Ae.ADFS_ACCOUNT_TYPE : t.protocolMode === Aa.AAD ? o.authorityType = Ae.MSSTS_ACCOUNT_TYPE : o.authorityType = Ae.GENERIC_ACCOUNT_TYPE;
|
|
2605
2605
|
let a;
|
|
2606
2606
|
e.clientInfo && r && (a = Rt(e.clientInfo, r)), o.clientInfo = e.clientInfo, o.homeAccountId = e.homeAccountId, o.nativeAccountId = e.nativeAccountId;
|
|
2607
2607
|
const i = e.environment || t && t.getPreferredCache();
|
|
2608
2608
|
if (!i)
|
|
2609
2609
|
throw at(er);
|
|
2610
|
-
o.environment = i, o.realm = (a == null ? void 0 : a.utid) ||
|
|
2610
|
+
o.environment = i, o.realm = (a == null ? void 0 : a.utid) || Pa(e.idTokenClaims) || "", o.localAccountId = (a == null ? void 0 : a.uid) || e.idTokenClaims.oid || e.idTokenClaims.sub || "";
|
|
2611
2611
|
const l = e.idTokenClaims.preferred_username || e.idTokenClaims.upn, c = e.idTokenClaims.emails ? e.idTokenClaims.emails[0] : null;
|
|
2612
2612
|
if (o.username = l || c || "", o.name = e.idTokenClaims.name, o.cloudGraphHostName = e.cloudGraphHostName, o.msGraphHost = e.msGraphHost, e.tenantProfiles)
|
|
2613
2613
|
o.tenantProfiles = e.tenantProfiles;
|
|
2614
2614
|
else {
|
|
2615
2615
|
const u = [];
|
|
2616
2616
|
if (e.idTokenClaims) {
|
|
2617
|
-
const d =
|
|
2617
|
+
const d = Oa(e.homeAccountId, e.idTokenClaims);
|
|
2618
2618
|
u.push(d);
|
|
2619
2619
|
}
|
|
2620
2620
|
o.tenantProfiles = u;
|
|
@@ -2630,8 +2630,8 @@ class Ie {
|
|
|
2630
2630
|
*/
|
|
2631
2631
|
static createFromAccountInfo(e, t, r) {
|
|
2632
2632
|
var a;
|
|
2633
|
-
const o = new
|
|
2634
|
-
return o.authorityType = e.authorityType ||
|
|
2633
|
+
const o = new Se();
|
|
2634
|
+
return o.authorityType = e.authorityType || Ae.GENERIC_ACCOUNT_TYPE, o.homeAccountId = e.homeAccountId, o.localAccountId = e.localAccountId, o.nativeAccountId = e.nativeAccountId, o.realm = e.tenantId, o.environment = e.environment, o.username = e.username, o.name = e.name, o.cloudGraphHostName = t, o.msGraphHost = r, o.tenantProfiles = Array.from(((a = e.tenantProfiles) == null ? void 0 : a.values()) || []), o;
|
|
2635
2635
|
}
|
|
2636
2636
|
/**
|
|
2637
2637
|
* Generate HomeAccountId from server response
|
|
@@ -2678,19 +2678,19 @@ class Ie {
|
|
|
2678
2678
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2679
2679
|
class vt extends ut {
|
|
2680
2680
|
constructor(e, t, r, o, a, i, l, c) {
|
|
2681
|
-
super(e, t, r), Object.setPrototypeOf(this, vt.prototype), this.timestamp = o ||
|
|
2681
|
+
super(e, t, r), Object.setPrototypeOf(this, vt.prototype), this.timestamp = o || Me.EMPTY_STRING, this.traceId = a || Me.EMPTY_STRING, this.correlationId = i || Me.EMPTY_STRING, this.claims = l || Me.EMPTY_STRING, this.name = "InteractionRequiredAuthError", this.errorNo = c;
|
|
2682
2682
|
}
|
|
2683
2683
|
}
|
|
2684
2684
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2685
2685
|
function Lt(n, e) {
|
|
2686
2686
|
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? n.getActiveAccount() : $r(n.getAllAccounts(), e);
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2689
|
-
const { instance: e, inProgress: t, logger: r } = dt(), [o, a] =
|
|
2688
|
+
function Ma(n) {
|
|
2689
|
+
const { instance: e, inProgress: t, logger: r } = dt(), [o, a] = O(() => Lt(e, n));
|
|
2690
2690
|
return D(() => {
|
|
2691
2691
|
a((i) => {
|
|
2692
2692
|
const l = Lt(e, n);
|
|
2693
|
-
return
|
|
2693
|
+
return Se.accountInfoIsEqual(i, l, !0) ? i : (r.info("useAccount - Updating account"), l);
|
|
2694
2694
|
});
|
|
2695
2695
|
}, [t, n, e, r]), o;
|
|
2696
2696
|
}
|
|
@@ -2718,13 +2718,13 @@ class je extends ut {
|
|
|
2718
2718
|
}
|
|
2719
2719
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2720
2720
|
function Fa(n, e, t) {
|
|
2721
|
-
const { instance: r, inProgress: o, logger: a } = dt(), i = Xt(t), l =
|
|
2721
|
+
const { instance: r, inProgress: o, logger: a } = dt(), i = Xt(t), l = Ma(t), [[c, u], d] = O([null, null]), h = Y(!0);
|
|
2722
2722
|
D(() => () => {
|
|
2723
2723
|
h.current = !1;
|
|
2724
2724
|
}, []);
|
|
2725
|
-
const
|
|
2725
|
+
const p = Y(o !== Ie.None);
|
|
2726
2726
|
D(() => {
|
|
2727
|
-
|
|
2727
|
+
p.current = o !== Ie.None;
|
|
2728
2728
|
}, [o]);
|
|
2729
2729
|
const g = Y(!0);
|
|
2730
2730
|
D(() => {
|
|
@@ -2737,37 +2737,37 @@ function Fa(n, e, t) {
|
|
|
2737
2737
|
return;
|
|
2738
2738
|
}
|
|
2739
2739
|
}, [u, c]);
|
|
2740
|
-
const
|
|
2741
|
-
const
|
|
2742
|
-
switch (
|
|
2740
|
+
const _ = T(async (m, k) => {
|
|
2741
|
+
const b = m || n, f = k || e;
|
|
2742
|
+
switch (b) {
|
|
2743
2743
|
case qe.Popup:
|
|
2744
|
-
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(
|
|
2744
|
+
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(f);
|
|
2745
2745
|
case qe.Redirect:
|
|
2746
|
-
return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(
|
|
2746
|
+
return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(f).then(null);
|
|
2747
2747
|
case qe.Silent:
|
|
2748
|
-
return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(
|
|
2748
|
+
return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(f);
|
|
2749
2749
|
default:
|
|
2750
2750
|
throw je.createInvalidInteractionTypeError();
|
|
2751
2751
|
}
|
|
2752
|
-
}, [r, n, e, a]), x =
|
|
2753
|
-
const
|
|
2754
|
-
let
|
|
2755
|
-
return
|
|
2756
|
-
...
|
|
2757
|
-
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"),
|
|
2752
|
+
}, [r, n, e, a]), x = T(async (m, k) => {
|
|
2753
|
+
const b = m || n;
|
|
2754
|
+
let f;
|
|
2755
|
+
return k ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), f = {
|
|
2756
|
+
...k
|
|
2757
|
+
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"), f = {
|
|
2758
2758
|
...e,
|
|
2759
|
-
scopes: e.scopes ||
|
|
2760
|
-
}) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."),
|
|
2761
|
-
scopes:
|
|
2762
|
-
}), !
|
|
2763
|
-
if (
|
|
2764
|
-
if (
|
|
2759
|
+
scopes: e.scopes || Nt
|
|
2760
|
+
}) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."), f = {
|
|
2761
|
+
scopes: Nt
|
|
2762
|
+
}), !f.account && l && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), f.account = l), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), r.acquireTokenSilent(f).catch(async (j) => {
|
|
2763
|
+
if (j instanceof vt) {
|
|
2764
|
+
if (p.current)
|
|
2765
2765
|
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"), b
|
|
2766
|
+
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), _(b, f);
|
|
2767
2767
|
}
|
|
2768
|
-
throw
|
|
2769
|
-
})))().then((
|
|
2770
|
-
throw h.current && d([null,
|
|
2768
|
+
throw j;
|
|
2769
|
+
})))().then((j) => (h.current && d([j, null]), j)).catch((j) => {
|
|
2770
|
+
throw h.current && d([null, j]), j;
|
|
2771
2771
|
});
|
|
2772
2772
|
}, [
|
|
2773
2773
|
r,
|
|
@@ -2775,33 +2775,33 @@ function Fa(n, e, t) {
|
|
|
2775
2775
|
e,
|
|
2776
2776
|
a,
|
|
2777
2777
|
l,
|
|
2778
|
-
|
|
2778
|
+
_
|
|
2779
2779
|
]);
|
|
2780
2780
|
return D(() => {
|
|
2781
|
-
const
|
|
2782
|
-
switch (
|
|
2781
|
+
const m = r.addEventCallback((k) => {
|
|
2782
|
+
switch (k.eventType) {
|
|
2783
2783
|
case Fe.LOGIN_SUCCESS:
|
|
2784
2784
|
case Fe.SSO_SILENT_SUCCESS:
|
|
2785
|
-
|
|
2786
|
-
|
|
2785
|
+
k.payload && d([
|
|
2786
|
+
k.payload,
|
|
2787
2787
|
null
|
|
2788
2788
|
]);
|
|
2789
2789
|
break;
|
|
2790
2790
|
case Fe.LOGIN_FAILURE:
|
|
2791
2791
|
case Fe.SSO_SILENT_FAILURE:
|
|
2792
|
-
|
|
2792
|
+
k.error && d([null, k.error]);
|
|
2793
2793
|
break;
|
|
2794
2794
|
}
|
|
2795
2795
|
});
|
|
2796
|
-
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${
|
|
2797
|
-
|
|
2796
|
+
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${m}`), () => {
|
|
2797
|
+
m && (a.verbose(`useMsalAuthentication - Removing event callback ${m}`), r.removeEventCallback(m));
|
|
2798
2798
|
};
|
|
2799
2799
|
}, [r, a]), D(() => {
|
|
2800
|
-
g.current && o ===
|
|
2801
|
-
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"),
|
|
2800
|
+
g.current && o === Ie.None && (g.current = !1, i ? l && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), x().catch(() => {
|
|
2801
|
+
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"), _().catch(() => {
|
|
2802
2802
|
})));
|
|
2803
|
-
}, [i, l, o,
|
|
2804
|
-
login:
|
|
2803
|
+
}, [i, l, o, _, x, a]), {
|
|
2804
|
+
login: _,
|
|
2805
2805
|
acquireToken: x,
|
|
2806
2806
|
result: c,
|
|
2807
2807
|
error: u
|
|
@@ -2809,17 +2809,17 @@ function Fa(n, e, t) {
|
|
|
2809
2809
|
}
|
|
2810
2810
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2811
2811
|
function Wa({ interactionType: n, username: e, homeAccountId: t, localAccountId: r, authenticationRequest: o, loadingComponent: a, errorComponent: i, children: l }) {
|
|
2812
|
-
const c =
|
|
2812
|
+
const c = Q(() => ({
|
|
2813
2813
|
username: e,
|
|
2814
2814
|
homeAccountId: t,
|
|
2815
2815
|
localAccountId: r
|
|
2816
2816
|
}), [e, t, r]), u = dt(), d = Fa(n, o, c), h = Xt(c);
|
|
2817
|
-
if (d.error && u.inProgress ===
|
|
2817
|
+
if (d.error && u.inProgress === Ie.None) {
|
|
2818
2818
|
if (i)
|
|
2819
2819
|
return te.createElement(i, { ...d });
|
|
2820
2820
|
throw d.error;
|
|
2821
2821
|
}
|
|
2822
|
-
return h ? te.createElement(te.Fragment, null, Ir(l, d)) : a && u.inProgress !==
|
|
2822
|
+
return h ? te.createElement(te.Fragment, null, Ir(l, d)) : a && u.inProgress !== Ie.None ? te.createElement(a, { ...u }) : null;
|
|
2823
2823
|
}
|
|
2824
2824
|
const Ra = ({ children: n, onStorno: e }) => {
|
|
2825
2825
|
const { formSubmitTexts: t } = L(oe);
|
|
@@ -2868,7 +2868,7 @@ const Ra = ({ children: n, onStorno: e }) => {
|
|
|
2868
2868
|
sm: Ya,
|
|
2869
2869
|
md: Ha,
|
|
2870
2870
|
lg: Ba
|
|
2871
|
-
},
|
|
2871
|
+
}, U = ({ type: n = "button", color: e = "primary", size: t = "md", children: r, className: o, ...a }) => {
|
|
2872
2872
|
const { LinkComponent: i } = L(oe);
|
|
2873
2873
|
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: w(`luminus-icon-button btn text-${e} ${o ?? ""}`, Le.iconButton, Le[t]), ...a, children: r }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ s.jsx(
|
|
2874
2874
|
"button",
|
|
@@ -2880,33 +2880,33 @@ const Ra = ({ children: n, onStorno: e }) => {
|
|
|
2880
2880
|
}
|
|
2881
2881
|
) : null;
|
|
2882
2882
|
}, Qc = ({ month: n, onChangeMonth: e, locale: t }) => {
|
|
2883
|
-
const r =
|
|
2883
|
+
const r = T((o) => {
|
|
2884
2884
|
e(mn(n, o));
|
|
2885
2885
|
}, [n, e]);
|
|
2886
2886
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2887
|
-
/* @__PURE__ */ s.jsx(
|
|
2887
|
+
/* @__PURE__ */ s.jsx(U, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(ht, {}) }),
|
|
2888
2888
|
/* @__PURE__ */ s.jsx("div", { children: ot(n, "LLLL yyyy", { locale: t }) }),
|
|
2889
|
-
/* @__PURE__ */ s.jsx(
|
|
2889
|
+
/* @__PURE__ */ s.jsx(U, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(mt, {}) })
|
|
2890
2890
|
] });
|
|
2891
2891
|
}, Ga = "_select_pywmr_1", Va = {
|
|
2892
2892
|
select: Ga
|
|
2893
2893
|
}, Xc = ({ year: n, onChangeYear: e, optionMin: t = 2e3, optionMax: r = 2050, className: o }) => {
|
|
2894
|
-
const a =
|
|
2894
|
+
const a = T((l) => {
|
|
2895
2895
|
const c = n.getFullYear() + l;
|
|
2896
2896
|
c < t || c > r || e(oo(n, l));
|
|
2897
|
-
}, [n, e, r, t]), i =
|
|
2897
|
+
}, [n, e, r, t]), i = Q(() => {
|
|
2898
2898
|
const l = [];
|
|
2899
2899
|
for (let c = t; c <= r; c++)
|
|
2900
2900
|
l.push(c);
|
|
2901
2901
|
return l;
|
|
2902
2902
|
}, [t, r]);
|
|
2903
2903
|
return /* @__PURE__ */ s.jsxs("div", { className: w("card d-flex flex-row align-items-center m-0 p-1 gap-2", o ?? ""), children: [
|
|
2904
|
-
/* @__PURE__ */ s.jsx(
|
|
2904
|
+
/* @__PURE__ */ s.jsx(U, { onClick: () => a(-1), disabled: n.getFullYear() <= t, children: /* @__PURE__ */ s.jsx(ht, {}) }),
|
|
2905
2905
|
/* @__PURE__ */ s.jsx(J.Select, { value: n.getFullYear(), onChange: (l) => {
|
|
2906
2906
|
var c;
|
|
2907
2907
|
return ((c = l.target) == null ? void 0 : c.value) && e(cs(n, Number(l.target.value)));
|
|
2908
2908
|
}, className: Va.select, children: i.map((l) => /* @__PURE__ */ s.jsx("option", { value: l, children: l }, l)) }),
|
|
2909
|
-
/* @__PURE__ */ s.jsx(
|
|
2909
|
+
/* @__PURE__ */ s.jsx(U, { onClick: () => a(1), disabled: n.getFullYear() >= r, children: /* @__PURE__ */ s.jsx(mt, {}) })
|
|
2910
2910
|
] });
|
|
2911
2911
|
}, za = "_widget_etgh3_1", Ua = {
|
|
2912
2912
|
widget: za
|
|
@@ -2914,20 +2914,20 @@ const Ra = ({ children: n, onStorno: e }) => {
|
|
|
2914
2914
|
/* @__PURE__ */ s.jsx(We.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(We.Title, { children: o.pickWidgetToAdd }) }),
|
|
2915
2915
|
/* @__PURE__ */ s.jsx(We.Body, { children: /* @__PURE__ */ s.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ s.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ s.jsx(z, { variant: "body", children: a.name }) })) }) })
|
|
2916
2916
|
] }), qt = ({ availableWidgets: n, onAdd: e, texts: t }) => {
|
|
2917
|
-
const [r, o] =
|
|
2917
|
+
const [r, o] = O(!1);
|
|
2918
2918
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2919
|
-
/* @__PURE__ */ s.jsx("div", { className: w("luminus-empty-widget", Ua.widget), children: /* @__PURE__ */ s.jsx(
|
|
2919
|
+
/* @__PURE__ */ s.jsx("div", { className: w("luminus-empty-widget", Ua.widget), children: /* @__PURE__ */ s.jsx(U, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(Er, {}) }) }),
|
|
2920
2920
|
/* @__PURE__ */ s.jsx(Ka, { show: r, widgets: n, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
2921
2921
|
o(!1), e(a);
|
|
2922
2922
|
}, texts: t })
|
|
2923
2923
|
] });
|
|
2924
2924
|
}, Qa = (n) => {
|
|
2925
|
-
const [e, t] =
|
|
2925
|
+
const [e, t] = O({ widgets: [] });
|
|
2926
2926
|
D(() => {
|
|
2927
2927
|
const o = localStorage.getItem("dashboardConfig");
|
|
2928
2928
|
o ? t(JSON.parse(o)) : n && t(n);
|
|
2929
2929
|
}, [n]);
|
|
2930
|
-
const r =
|
|
2930
|
+
const r = T((o) => {
|
|
2931
2931
|
t(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
|
|
2932
2932
|
}, []);
|
|
2933
2933
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
@@ -2986,37 +2986,37 @@ const ai = (n) => (t) => {
|
|
|
2986
2986
|
return /* @__PURE__ */ s.jsx(ii, { fallback: /* @__PURE__ */ s.jsx(Yt, { title: e, children: t.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ s.jsx(Gr, { fallback: /* @__PURE__ */ s.jsx(Yt, { title: e, children: /* @__PURE__ */ s.jsx(eo, {}) }), children: n }) });
|
|
2987
2987
|
}, Jc = ({ availableWidgets: n, editMode: e, defaultDashboardConfig: t }) => {
|
|
2988
2988
|
var d;
|
|
2989
|
-
const { homeDashboardTexts: r } = L(oe), { dashboardConfig: o, onChangeDashboardConfig: a } = Qa(t), i =
|
|
2990
|
-
var g,
|
|
2989
|
+
const { homeDashboardTexts: r } = L(oe), { dashboardConfig: o, onChangeDashboardConfig: a } = Qa(t), i = T((h, p) => {
|
|
2990
|
+
var g, _;
|
|
2991
2991
|
h === ((g = o.widgets) == null ? void 0 : g.length) ? a({
|
|
2992
2992
|
...o,
|
|
2993
|
-
widgets: [...o.widgets, { widgetId:
|
|
2993
|
+
widgets: [...o.widgets, { widgetId: p, fullWidth: !1 }]
|
|
2994
2994
|
}) : a({
|
|
2995
2995
|
...o,
|
|
2996
|
-
widgets: ((
|
|
2996
|
+
widgets: ((_ = o.widgets) == null ? void 0 : _.map((x, m) => m === h ? { widgetId: p, fullWidth: !1 } : x)) ?? []
|
|
2997
2997
|
});
|
|
2998
|
-
}, [o, a]), l =
|
|
2999
|
-
var
|
|
3000
|
-
((
|
|
2998
|
+
}, [o, a]), l = T((h) => {
|
|
2999
|
+
var p, g;
|
|
3000
|
+
((p = o.widgets[h]) == null ? void 0 : p.widgetId) === -1 ? a({
|
|
3001
3001
|
...o,
|
|
3002
|
-
widgets: ((g = o.widgets) == null ? void 0 : g.filter((
|
|
3002
|
+
widgets: ((g = o.widgets) == null ? void 0 : g.filter((_, x) => x !== h)) ?? []
|
|
3003
3003
|
}) : i(h, -1);
|
|
3004
|
-
}, [o, a, i]), c =
|
|
3005
|
-
var
|
|
3004
|
+
}, [o, a, i]), c = T((h) => {
|
|
3005
|
+
var p;
|
|
3006
3006
|
a({
|
|
3007
3007
|
...o,
|
|
3008
|
-
widgets: ((
|
|
3008
|
+
widgets: ((p = o.widgets) == null ? void 0 : p.map((g, _) => _ === h ? { ...g, fullWidth: !g.fullWidth } : g)) ?? []
|
|
3009
3009
|
});
|
|
3010
|
-
}, [o, a]), u =
|
|
3010
|
+
}, [o, a]), u = T((h, p, g) => h ? /* @__PURE__ */ s.jsxs("div", { className: w(ie.widgetWrapper, {
|
|
3011
3011
|
[ie.widgetEdit]: e && h.id !== -1
|
|
3012
3012
|
}, { [ie.fullWidth]: g }), children: [
|
|
3013
3013
|
e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3014
|
-
/* @__PURE__ */ s.jsx(
|
|
3015
|
-
/* @__PURE__ */ s.jsx(
|
|
3014
|
+
/* @__PURE__ */ s.jsx(U, { color: "danger", onClick: () => l(p), className: w(ie.removeIcon), children: /* @__PURE__ */ s.jsx(Zt, {}) }),
|
|
3015
|
+
/* @__PURE__ */ s.jsx(U, { color: g ? "danger" : "primary", onClick: () => c(p), className: w(ie.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Dr, {}) })
|
|
3016
3016
|
] }),
|
|
3017
|
-
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ie.widgetWrapper, children: /* @__PURE__ */ s.jsx(qt, { availableWidgets: n, onAdd: (
|
|
3017
|
+
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ie.widgetWrapper, children: /* @__PURE__ */ s.jsx(qt, { availableWidgets: n, onAdd: (_) => i(p, _), texts: r }) }) : /* @__PURE__ */ s.jsx(ui, { title: h.title, children: /* @__PURE__ */ s.jsx(h.WidgetElement, { title: h.title }) }),
|
|
3018
3018
|
h.id > -1 && e && /* @__PURE__ */ s.jsx("div", { className: ie.widgetEditOverlay })
|
|
3019
|
-
] },
|
|
3019
|
+
] }, p) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
3020
3020
|
e,
|
|
3021
3021
|
i,
|
|
3022
3022
|
l,
|
|
@@ -3025,10 +3025,10 @@ const ai = (n) => (t) => {
|
|
|
3025
3025
|
r
|
|
3026
3026
|
]);
|
|
3027
3027
|
return /* @__PURE__ */ s.jsx("div", { className: ie.dashboard, children: /* @__PURE__ */ s.jsxs("div", { className: ie.widgetsGrid, children: [
|
|
3028
|
-
(d = o.widgets) == null ? void 0 : d.map((h,
|
|
3028
|
+
(d = o.widgets) == null ? void 0 : d.map((h, p) => u(n.find((g) => g.id === h.widgetId), p, h.fullWidth)),
|
|
3029
3029
|
e && /* @__PURE__ */ s.jsx(qt, { availableWidgets: n, onAdd: (h) => {
|
|
3030
|
-
var
|
|
3031
|
-
return i((
|
|
3030
|
+
var p;
|
|
3031
|
+
return i((p = o.widgets) == null ? void 0 : p.length, h);
|
|
3032
3032
|
}, texts: r })
|
|
3033
3033
|
] }) });
|
|
3034
3034
|
}, di = "_badge_nhser_1", hi = "_sm_nhser_1", mi = "_md_nhser_4", fi = "_lg_nhser_7", Ht = {
|
|
@@ -3041,7 +3041,7 @@ const ai = (n) => (t) => {
|
|
|
3041
3041
|
collapseIcon: pi,
|
|
3042
3042
|
collapsed: gi
|
|
3043
3043
|
}, el = ({ title: n, children: e, className: t, ...r }) => {
|
|
3044
|
-
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] =
|
|
3044
|
+
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = O(o), l = r.controlled ? r.isOpen : a;
|
|
3045
3045
|
return D(() => {
|
|
3046
3046
|
i(o);
|
|
3047
3047
|
}, [o]), /* @__PURE__ */ s.jsxs("div", { className: t ?? "", children: [
|
|
@@ -3051,61 +3051,61 @@ const ai = (n) => (t) => {
|
|
|
3051
3051
|
[Bt.collapsed]: l
|
|
3052
3052
|
}) })
|
|
3053
3053
|
] }),
|
|
3054
|
-
/* @__PURE__ */ s.jsx(
|
|
3054
|
+
/* @__PURE__ */ s.jsx(xn, { in: l, children: /* @__PURE__ */ s.jsx("div", { children: e }) }),
|
|
3055
3055
|
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
3056
3056
|
] });
|
|
3057
|
-
},
|
|
3058
|
-
feedback:
|
|
3057
|
+
}, xi = "_feedback_esh1j_1", wi = "_feedback-spacer_esh1j_8", Gt = {
|
|
3058
|
+
feedback: xi,
|
|
3059
3059
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
3060
|
-
feedbackSpacer:
|
|
3061
|
-
},
|
|
3060
|
+
feedbackSpacer: wi
|
|
3061
|
+
}, pe = ({ message: n }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3062
3062
|
/* @__PURE__ */ s.jsx("div", { className: w("invalid-feedback luminus-invalid-feedback", Gt.feedback), children: n }),
|
|
3063
3063
|
/* @__PURE__ */ s.jsx("div", { className: w("invalid-feedback-spacer", Gt.feedbackSpacer), children: n })
|
|
3064
3064
|
] });
|
|
3065
3065
|
function yi(n, e, t) {
|
|
3066
3066
|
var r = this, o = Y(null), a = Y(0), i = Y(null), l = Y([]), c = Y(), u = Y(), d = Y(n), h = Y(!0);
|
|
3067
3067
|
d.current = n;
|
|
3068
|
-
var
|
|
3068
|
+
var p = typeof window < "u", g = !e && e !== 0 && p;
|
|
3069
3069
|
if (typeof n != "function")
|
|
3070
3070
|
throw new TypeError("Expected a function");
|
|
3071
3071
|
e = +e || 0;
|
|
3072
|
-
var
|
|
3072
|
+
var _ = !!(t = t || {}).leading, x = !("trailing" in t) || !!t.trailing, m = "maxWait" in t, k = "debounceOnServer" in t && !!t.debounceOnServer, b = m ? Math.max(+t.maxWait || 0, e) : null;
|
|
3073
3073
|
D(function() {
|
|
3074
3074
|
return h.current = !0, function() {
|
|
3075
3075
|
h.current = !1;
|
|
3076
3076
|
};
|
|
3077
3077
|
}, []);
|
|
3078
|
-
var
|
|
3079
|
-
var
|
|
3080
|
-
var
|
|
3081
|
-
return l.current = c.current = null, a.current =
|
|
3082
|
-
},
|
|
3083
|
-
g && cancelAnimationFrame(i.current), i.current = g ? requestAnimationFrame(
|
|
3084
|
-
}, y = function(
|
|
3078
|
+
var f = Q(function() {
|
|
3079
|
+
var N = function(C) {
|
|
3080
|
+
var v = l.current, S = c.current;
|
|
3081
|
+
return l.current = c.current = null, a.current = C, u.current = d.current.apply(S, v);
|
|
3082
|
+
}, j = function(C, v) {
|
|
3083
|
+
g && cancelAnimationFrame(i.current), i.current = g ? requestAnimationFrame(C) : setTimeout(C, v);
|
|
3084
|
+
}, y = function(C) {
|
|
3085
3085
|
if (!h.current)
|
|
3086
3086
|
return !1;
|
|
3087
|
-
var
|
|
3088
|
-
return !o.current ||
|
|
3089
|
-
}, $ = function(
|
|
3090
|
-
return i.current = null, x && l.current ? C
|
|
3091
|
-
}, P = function
|
|
3092
|
-
var
|
|
3093
|
-
if (y(
|
|
3094
|
-
return $(
|
|
3087
|
+
var v = C - o.current;
|
|
3088
|
+
return !o.current || v >= e || v < 0 || m && C - a.current >= b;
|
|
3089
|
+
}, $ = function(C) {
|
|
3090
|
+
return i.current = null, x && l.current ? N(C) : (l.current = c.current = null, u.current);
|
|
3091
|
+
}, P = function C() {
|
|
3092
|
+
var v = Date.now();
|
|
3093
|
+
if (y(v))
|
|
3094
|
+
return $(v);
|
|
3095
3095
|
if (h.current) {
|
|
3096
|
-
var
|
|
3097
|
-
|
|
3096
|
+
var S = e - (v - o.current), F = m ? Math.min(S, b - (v - a.current)) : S;
|
|
3097
|
+
j(C, F);
|
|
3098
3098
|
}
|
|
3099
3099
|
}, I = function() {
|
|
3100
|
-
if (
|
|
3101
|
-
var
|
|
3102
|
-
if (l.current = [].slice.call(arguments), c.current = r, o.current =
|
|
3100
|
+
if (p || k) {
|
|
3101
|
+
var C = Date.now(), v = y(C);
|
|
3102
|
+
if (l.current = [].slice.call(arguments), c.current = r, o.current = C, v) {
|
|
3103
3103
|
if (!i.current && h.current)
|
|
3104
|
-
return a.current = o.current,
|
|
3105
|
-
if (
|
|
3106
|
-
return
|
|
3104
|
+
return a.current = o.current, j(P, e), _ ? N(o.current) : u.current;
|
|
3105
|
+
if (m)
|
|
3106
|
+
return j(P, e), N(o.current);
|
|
3107
3107
|
}
|
|
3108
|
-
return i.current ||
|
|
3108
|
+
return i.current || j(P, e), u.current;
|
|
3109
3109
|
}
|
|
3110
3110
|
};
|
|
3111
3111
|
return I.cancel = function() {
|
|
@@ -3115,8 +3115,8 @@ function yi(n, e, t) {
|
|
|
3115
3115
|
}, I.flush = function() {
|
|
3116
3116
|
return i.current ? $(Date.now()) : u.current;
|
|
3117
3117
|
}, I;
|
|
3118
|
-
}, [
|
|
3119
|
-
return
|
|
3118
|
+
}, [_, m, e, b, x, g, p, k]);
|
|
3119
|
+
return f;
|
|
3120
3120
|
}
|
|
3121
3121
|
function vi(n, e) {
|
|
3122
3122
|
return n === e;
|
|
@@ -3125,19 +3125,19 @@ function bi(n, e) {
|
|
|
3125
3125
|
return e;
|
|
3126
3126
|
}
|
|
3127
3127
|
function nr(n, e, t) {
|
|
3128
|
-
var r = vi, o = on(bi, n), a = o[0], i = o[1], l = yi(
|
|
3128
|
+
var r = vi, o = on(bi, n), a = o[0], i = o[1], l = yi(T(function(u) {
|
|
3129
3129
|
return i(u);
|
|
3130
3130
|
}, [i]), e, t), c = Y(n);
|
|
3131
3131
|
return r(c.current, n) || (l(n), c.current = n), [a, l];
|
|
3132
3132
|
}
|
|
3133
|
-
const _i = "_wrapper_uccrb_1", ji = "_open_uccrb_9", ki = "_dropdown_uccrb_13",
|
|
3133
|
+
const _i = "_wrapper_uccrb_1", ji = "_open_uccrb_9", ki = "_dropdown_uccrb_13", Ni = "_search-input-container_uccrb_19", Ci = "_search-input_uccrb_19", $i = "_loading-container_uccrb_25", Ii = "_items-container_uccrb_32", Si = "_header-row_uccrb_38", Ti = "_item_uccrb_32", Ei = "_name_uccrb_57", Di = "_column-item_uccrb_62", Oi = "_icon_uccrb_66", Pi = "_clear-button_uccrb_74", ee = {
|
|
3134
3134
|
wrapper: _i,
|
|
3135
3135
|
open: ji,
|
|
3136
3136
|
dropdown: ki,
|
|
3137
3137
|
"search-input-container": "_search-input-container_uccrb_19",
|
|
3138
|
-
searchInputContainer:
|
|
3138
|
+
searchInputContainer: Ni,
|
|
3139
3139
|
"search-input": "_search-input_uccrb_19",
|
|
3140
|
-
searchInput:
|
|
3140
|
+
searchInput: Ci,
|
|
3141
3141
|
"loading-container": "_loading-container_uccrb_25",
|
|
3142
3142
|
loadingContainer: $i,
|
|
3143
3143
|
"items-container": "_items-container_uccrb_32",
|
|
@@ -3147,81 +3147,81 @@ const _i = "_wrapper_uccrb_1", ji = "_open_uccrb_9", ki = "_dropdown_uccrb_13",
|
|
|
3147
3147
|
item: Ti,
|
|
3148
3148
|
name: Ei,
|
|
3149
3149
|
"column-item": "_column-item_uccrb_62",
|
|
3150
|
-
columnItem:
|
|
3151
|
-
icon:
|
|
3150
|
+
columnItem: Di,
|
|
3151
|
+
icon: Oi,
|
|
3152
3152
|
"clear-button": "_clear-button_uccrb_74",
|
|
3153
|
-
clearButton:
|
|
3154
|
-
}, bt = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled:
|
|
3155
|
-
var
|
|
3156
|
-
const x = Y(null),
|
|
3153
|
+
clearButton: Pi
|
|
3154
|
+
}, bt = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: p, isLoading: g = !1, inputRef: _ }) => {
|
|
3155
|
+
var E;
|
|
3156
|
+
const x = Y(null), m = Y(null), k = Y(null), [b, f] = O(""), [N] = nr(b, 500), [, j] = O(!1), y = (E = _.current) == null ? void 0 : E.getBoundingClientRect(), $ = (y == null ? void 0 : y.x) ?? 0, P = ((y == null ? void 0 : y.x) ?? 0) + ((y == null ? void 0 : y.width) ?? 0), I = (y == null ? void 0 : y.y) ?? 0, C = ((y == null ? void 0 : y.y) ?? 0) + ((y == null ? void 0 : y.height) ?? 0), v = (y == null ? void 0 : y.width) ?? 0, S = (y == null ? void 0 : y.height) ?? 0, F = 5, W = Q(() => $ ? $ > window.innerWidth / 2 : !1, [$]), H = Q(() => I ? I > window.innerHeight / 2 : !1, [I]);
|
|
3157
3157
|
D(() => {
|
|
3158
|
-
var
|
|
3159
|
-
n && ((
|
|
3160
|
-
}, [
|
|
3161
|
-
n ||
|
|
3158
|
+
var A;
|
|
3159
|
+
n && ((A = k.current) == null || A.focus());
|
|
3160
|
+
}, [k, n]), D(() => {
|
|
3161
|
+
n || f("");
|
|
3162
3162
|
}, [n]), D(() => {
|
|
3163
|
-
a(
|
|
3164
|
-
}, [
|
|
3165
|
-
const R =
|
|
3166
|
-
switch (
|
|
3163
|
+
a(N);
|
|
3164
|
+
}, [N, a]);
|
|
3165
|
+
const R = T((A) => {
|
|
3166
|
+
switch (A.key) {
|
|
3167
3167
|
case "Escape":
|
|
3168
|
-
|
|
3168
|
+
A.stopPropagation(), e();
|
|
3169
3169
|
break;
|
|
3170
3170
|
}
|
|
3171
|
-
}, [e]), G =
|
|
3172
|
-
|
|
3171
|
+
}, [e]), G = T(() => {
|
|
3172
|
+
j((A) => !A);
|
|
3173
3173
|
}, []);
|
|
3174
3174
|
D(() => (window.addEventListener("scroll", G), () => {
|
|
3175
3175
|
window.removeEventListener("scroll", G);
|
|
3176
3176
|
}), [G]), D(() => (window.addEventListener("resize", G), () => {
|
|
3177
3177
|
window.removeEventListener("resize", G);
|
|
3178
|
-
}), [G]), un(R), dn([x,
|
|
3179
|
-
const ae = l ?? (c && c.length > 0 ? 250 : 0), ne = (c == null ? void 0 : c.reduce((
|
|
3178
|
+
}), [G]), un(R), dn([x, m], e);
|
|
3179
|
+
const ae = l ?? (c && c.length > 0 ? 250 : 0), ne = (c == null ? void 0 : c.reduce((A, X) => A + (X.width ?? 100), 0)) ?? 0, K = `calc(max(${v}px, ${ae}px + ${ne}px))`;
|
|
3180
3180
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3181
3181
|
/* @__PURE__ */ s.jsx(or, { show: n, onClick: e }),
|
|
3182
|
-
r && n && !
|
|
3183
|
-
top: `calc(${I}px + ${
|
|
3182
|
+
r && n && !p && /* @__PURE__ */ s.jsx("button", { ref: m, type: "button", className: w("luminus-dropdown-picker-clear-button", ee.clearButton), onClick: () => !p && o(null), style: {
|
|
3183
|
+
top: `calc(${I}px + ${S / 2}px - 12px)`,
|
|
3184
3184
|
left: `calc(${$}px - 24px - 8px)`
|
|
3185
3185
|
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(Zt, { size: 16 }) }) }),
|
|
3186
3186
|
/* @__PURE__ */ s.jsx("div", { className: w("luminus-dropdown-picker", ee.wrapper, {
|
|
3187
3187
|
[ee.open]: n
|
|
3188
3188
|
}), style: {
|
|
3189
|
-
top: H ? `calc(${I}px - 50vh - 8px)` : `calc(${
|
|
3190
|
-
left: W ? `calc(${P}px - ${
|
|
3191
|
-
right: W ? `${P}px` : `calc(${$}px + ${
|
|
3192
|
-
width:
|
|
3189
|
+
top: H ? `calc(${I}px - 50vh - 8px)` : `calc(${C}px + 8px)`,
|
|
3190
|
+
left: W ? `calc(${P}px - ${K})` : $,
|
|
3191
|
+
right: W ? `${P}px` : `calc(${$}px + ${K})`,
|
|
3192
|
+
width: K,
|
|
3193
3193
|
justifyContent: H ? "flex-end" : "flex-start"
|
|
3194
|
-
}, children: /* @__PURE__ */ s.jsx("div", { ref: x, className: w("shadow rounded", ee.dropdown), children: !
|
|
3195
|
-
d && (h ?? t.length) <= F ? null : /* @__PURE__ */ s.jsx("div", { className: w("search-input-container border-bottom", ee.searchInputContainer), children: /* @__PURE__ */ s.jsx(J.Control, { ref:
|
|
3196
|
-
var
|
|
3197
|
-
return
|
|
3194
|
+
}, children: /* @__PURE__ */ s.jsx("div", { ref: x, className: w("shadow rounded", ee.dropdown), children: !p && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3195
|
+
d && (h ?? t.length) <= F ? null : /* @__PURE__ */ s.jsx("div", { className: w("search-input-container border-bottom", ee.searchInputContainer), children: /* @__PURE__ */ s.jsx(J.Control, { ref: k, type: "search", size: "sm", className: ee.searchInput, placeholder: i.searchPlaceholder, value: b, onChange: (A) => {
|
|
3196
|
+
var X;
|
|
3197
|
+
return f(((X = A.target) == null ? void 0 : X.value) ?? "");
|
|
3198
3198
|
} }) }),
|
|
3199
|
-
g ? /* @__PURE__ */ s.jsx("div", { className: ee.loadingContainer, children: /* @__PURE__ */ s.jsx(
|
|
3199
|
+
g ? /* @__PURE__ */ s.jsx("div", { className: ee.loadingContainer, children: /* @__PURE__ */ s.jsx(wt, { animation: "border", variant: "primary" }) }) : t.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: w("items", ee.itemsContainer), children: [
|
|
3200
3200
|
c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: w("header-row border-bottom", ee.headerRow), children: [
|
|
3201
3201
|
/* @__PURE__ */ s.jsx("div", { className: ee.name }),
|
|
3202
|
-
c == null ? void 0 : c.map((
|
|
3203
|
-
width: `${
|
|
3204
|
-
minWidth: `${
|
|
3205
|
-
maxWidth: `${
|
|
3206
|
-
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", children:
|
|
3202
|
+
c == null ? void 0 : c.map((A) => /* @__PURE__ */ s.jsx("div", { className: ee.columnItem, style: {
|
|
3203
|
+
width: `${A.width ?? 100}px`,
|
|
3204
|
+
minWidth: `${A.width ?? 100}px`,
|
|
3205
|
+
maxWidth: `${A.width ?? 100}px`
|
|
3206
|
+
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", children: A.name }) }, A.key))
|
|
3207
3207
|
] }),
|
|
3208
|
-
t == null ? void 0 : t.map((
|
|
3209
|
-
/* @__PURE__ */ s.jsx("div", { className: ee.name, children: /* @__PURE__ */ s.jsx(z, { variant: "body2", children: u ?
|
|
3210
|
-
c == null ? void 0 : c.map((
|
|
3211
|
-
width: `${
|
|
3212
|
-
minWidth: `${
|
|
3213
|
-
maxWidth: `${
|
|
3214
|
-
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", className: w("text-muted"), children:
|
|
3215
|
-
] },
|
|
3208
|
+
t == null ? void 0 : t.map((A) => /* @__PURE__ */ s.jsxs("button", { type: "button", className: w("item cursor-pointer", ee.item), onClick: () => !p && o(A), children: [
|
|
3209
|
+
/* @__PURE__ */ s.jsx("div", { className: ee.name, children: /* @__PURE__ */ s.jsx(z, { variant: "body2", children: u ? A.id : A.name }) }),
|
|
3210
|
+
c == null ? void 0 : c.map((X) => /* @__PURE__ */ s.jsx("div", { className: ee.columnItem, style: {
|
|
3211
|
+
width: `${X.width ?? 100}px`,
|
|
3212
|
+
minWidth: `${X.width ?? 100}px`,
|
|
3213
|
+
maxWidth: `${X.width ?? 100}px`
|
|
3214
|
+
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", className: w("text-muted"), children: A.additionalColumns && A.additionalColumns[X.key] }) }, X.key))
|
|
3215
|
+
] }, A.id))
|
|
3216
3216
|
] })
|
|
3217
3217
|
] }) }) })
|
|
3218
3218
|
] });
|
|
3219
3219
|
};
|
|
3220
|
-
function
|
|
3221
|
-
return
|
|
3220
|
+
function Ai(n) {
|
|
3221
|
+
return Or({ 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);
|
|
3222
3222
|
}
|
|
3223
|
-
const
|
|
3224
|
-
item:
|
|
3223
|
+
const Mi = "_item_1dy8x_1", rr = {
|
|
3224
|
+
item: Mi
|
|
3225
3225
|
}, Fi = ({
|
|
3226
3226
|
color: n = "primary",
|
|
3227
3227
|
// icon = <MdOutlineArrowOutward />,
|
|
@@ -3229,10 +3229,10 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3229
3229
|
className: t,
|
|
3230
3230
|
children: r,
|
|
3231
3231
|
...o
|
|
3232
|
-
}) => /* @__PURE__ */ s.jsxs(
|
|
3232
|
+
}) => /* @__PURE__ */ s.jsxs(Ee.Item, { className: w(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${t ?? ""}`, rr.item), ...o, children: [
|
|
3233
3233
|
e,
|
|
3234
3234
|
r
|
|
3235
|
-
] }), Wi = (n) => /* @__PURE__ */ s.jsx(
|
|
3235
|
+
] }), Wi = (n) => /* @__PURE__ */ s.jsx(Ee.Toggle, { ...n }), tl = ({ color: n = "primary", icon: e = /* @__PURE__ */ s.jsx(Jt, { size: 12 }), inputId: t = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: i, children: l, ...c }) => {
|
|
3236
3236
|
const u = (d) => {
|
|
3237
3237
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
3238
3238
|
};
|
|
@@ -3245,12 +3245,12 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3245
3245
|
] });
|
|
3246
3246
|
}, Ri = "_divider_1e6rk_1", Li = {
|
|
3247
3247
|
divider: Ri
|
|
3248
|
-
}, nl = ({ className: n }) => /* @__PURE__ */ s.jsx(
|
|
3248
|
+
}, nl = ({ className: n }) => /* @__PURE__ */ s.jsx(Ee.Divider, { className: w("luminus-dropdown-divider", n, Li.divider) }), qi = "_dropdown_1lk66_1", Yi = {
|
|
3249
3249
|
dropdown: qi
|
|
3250
|
-
}, Hi = ({ toggle: n, children: e, ...t }) => /* @__PURE__ */ s.jsxs(
|
|
3250
|
+
}, Hi = ({ toggle: n, children: e, ...t }) => /* @__PURE__ */ s.jsxs(Ee, { ...t, children: [
|
|
3251
3251
|
n,
|
|
3252
|
-
/* @__PURE__ */ s.jsx(
|
|
3253
|
-
] }), Bi = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PURE__ */ s.jsx(Hi, { toggle: /* @__PURE__ */ s.jsx(Wi, { as:
|
|
3252
|
+
/* @__PURE__ */ s.jsx(Ee.Menu, { className: w("luminus-dropdown rounded shadow", Yi.dropdown), children: e })
|
|
3253
|
+
] }), Bi = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PURE__ */ s.jsx(Hi, { toggle: /* @__PURE__ */ s.jsx(Wi, { as: Pr, icon: null, text: e == null ? void 0 : e.text }), children: n.map((r) => /* @__PURE__ */ s.jsx(Fi, { icon: null, onClick: () => t(r), children: r.text }, r.key)) }), Gi = "_dropdown_1ddrg_1", Vi = "_open_1ddrg_12", zi = "_loading-container_1ddrg_15", Ui = "_groups-container_1ddrg_22", Ki = "_group_1ddrg_22", Qi = "_header_1ddrg_26", Xi = "_item_1ddrg_33", ge = {
|
|
3254
3254
|
dropdown: Gi,
|
|
3255
3255
|
open: Vi,
|
|
3256
3256
|
"loading-container": "_loading-container_1ddrg_15",
|
|
@@ -3261,17 +3261,17 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3261
3261
|
header: Qi,
|
|
3262
3262
|
item: Xi
|
|
3263
3263
|
}, Ji = ({ show: n, query: e, onCancel: t, groups: r, isLoading: o, searchTypes: a }) => {
|
|
3264
|
-
const { LinkComponent: i, appSearchTexts: l } = L(oe), c = Y(null), u =
|
|
3265
|
-
var
|
|
3266
|
-
const h = (
|
|
3264
|
+
const { LinkComponent: i, appSearchTexts: l } = L(oe), c = Y(null), u = T((d) => {
|
|
3265
|
+
var p;
|
|
3266
|
+
const h = (p = a.find((g) => g.key === d.type)) == null ? void 0 : p.toPath;
|
|
3267
3267
|
return h ? `${h}/${d.searchKey}` : "/not-found";
|
|
3268
3268
|
}, [a]);
|
|
3269
|
-
return dn([c], t), /* @__PURE__ */ s.jsx("div", { ref: c, className: w("luminus-app-search-dropdown shadow rounded",
|
|
3270
|
-
[
|
|
3271
|
-
}), children: o ? /* @__PURE__ */ s.jsx("div", { className:
|
|
3269
|
+
return dn([c], t), /* @__PURE__ */ s.jsx("div", { ref: c, className: w("luminus-app-search-dropdown shadow rounded", ge.dropdown, {
|
|
3270
|
+
[ge.open]: n
|
|
3271
|
+
}), children: o ? /* @__PURE__ */ s.jsx("div", { className: ge.loadingContainer, children: /* @__PURE__ */ s.jsx(wt, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: ge.groupsContainer, children: r == null ? void 0 : r.map((d) => {
|
|
3272
3272
|
var h;
|
|
3273
|
-
return /* @__PURE__ */ s.jsxs("div", { className: w(
|
|
3274
|
-
/* @__PURE__ */ s.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: w("group-header",
|
|
3273
|
+
return /* @__PURE__ */ s.jsxs("div", { className: w(ge.group), children: [
|
|
3274
|
+
/* @__PURE__ */ s.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: w("group-header", ge.header), onClick: t, children: [
|
|
3275
3275
|
/* @__PURE__ */ s.jsx(z, { variant: "body", className: "text-primary", children: d.key.categoryName }),
|
|
3276
3276
|
/* @__PURE__ */ s.jsxs(z, { variant: "caption", children: [
|
|
3277
3277
|
d.items.length,
|
|
@@ -3281,22 +3281,22 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3281
3281
|
d.key.totalCount
|
|
3282
3282
|
] })
|
|
3283
3283
|
] }),
|
|
3284
|
-
(h = d.items) == null ? void 0 : h.map((
|
|
3284
|
+
(h = d.items) == null ? void 0 : h.map((p, g) => /* @__PURE__ */ s.jsxs(
|
|
3285
3285
|
i,
|
|
3286
3286
|
{
|
|
3287
|
-
to: u(
|
|
3288
|
-
className: w("search-item d-flex gap-3 align-items-center justify-content-between",
|
|
3287
|
+
to: u(p),
|
|
3288
|
+
className: w("search-item d-flex gap-3 align-items-center justify-content-between", ge.item),
|
|
3289
3289
|
onClick: t,
|
|
3290
3290
|
children: [
|
|
3291
|
-
/* @__PURE__ */ s.jsx(z, { variant: "body2", className: "text-nowrap text-truncate", children:
|
|
3292
|
-
/* @__PURE__ */ s.jsx(z, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(
|
|
3291
|
+
/* @__PURE__ */ s.jsx(z, { variant: "body2", className: "text-nowrap text-truncate", children: p.name }),
|
|
3292
|
+
/* @__PURE__ */ s.jsx(z, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(Ar, {}) })
|
|
3293
3293
|
]
|
|
3294
3294
|
},
|
|
3295
3295
|
g
|
|
3296
3296
|
))
|
|
3297
3297
|
] }, d.key.category);
|
|
3298
3298
|
}) }) });
|
|
3299
|
-
}, Zi = "_input-group_1lkfy_1", ec = "_input-group-text_1lkfy_5", tc = "_left_1lkfy_9", nc = "_right_1lkfy_13", rc = "_input_1lkfy_1", oc = "_submit-button_1lkfy_20",
|
|
3299
|
+
}, Zi = "_input-group_1lkfy_1", ec = "_input-group-text_1lkfy_5", tc = "_left_1lkfy_9", nc = "_right_1lkfy_13", rc = "_input_1lkfy_1", oc = "_submit-button_1lkfy_20", xe = {
|
|
3300
3300
|
"input-group": "_input-group_1lkfy_1",
|
|
3301
3301
|
inputGroup: Zi,
|
|
3302
3302
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
@@ -3307,7 +3307,7 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3307
3307
|
"submit-button": "_submit-button_1lkfy_20",
|
|
3308
3308
|
submitButton: oc
|
|
3309
3309
|
}, sc = (n, e) => {
|
|
3310
|
-
const t =
|
|
3310
|
+
const t = Mr(), [r, o] = O(!1), [a, i] = O([]), l = !n || !n.key, c = T(() => {
|
|
3311
3311
|
if (e.length < 3) {
|
|
3312
3312
|
i([]);
|
|
3313
3313
|
return;
|
|
@@ -3322,21 +3322,21 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3322
3322
|
c();
|
|
3323
3323
|
}, [c]), { isLoading: r, searchItems: a };
|
|
3324
3324
|
}, rl = ({ searchTypes: n, navigateFunction: e }) => {
|
|
3325
|
-
const { appSearchTexts: t } = L(oe), [r, o] =
|
|
3325
|
+
const { appSearchTexts: t } = L(oe), [r, o] = O(n.length > 0 ? n[0] : null), [a, i] = O(""), [l, c] = nr(a, 500), { isLoading: u, searchItems: d } = sc(r, l), [h, p] = O(!1);
|
|
3326
3326
|
return D(() => {
|
|
3327
|
-
(d.length > 0 || u) &&
|
|
3327
|
+
(d.length > 0 || u) && p(!0);
|
|
3328
3328
|
}, [d, u]), /* @__PURE__ */ s.jsx(J, { onSubmit: (g) => {
|
|
3329
|
-
g.preventDefault(), g.stopPropagation(), c.flush(),
|
|
3330
|
-
}, children: /* @__PURE__ */ s.jsxs(tt, { className:
|
|
3331
|
-
/* @__PURE__ */ s.jsx(tt.Text, { className: w("p-1 rounded",
|
|
3332
|
-
/* @__PURE__ */ s.jsx(J.Control, { placeholder: t.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input",
|
|
3333
|
-
var
|
|
3334
|
-
return i(((
|
|
3335
|
-
}, onFocus: () => d.length > 0 &&
|
|
3336
|
-
/* @__PURE__ */ s.jsx(tt.Text, { className: w("p-0 rounded",
|
|
3337
|
-
/* @__PURE__ */ s.jsx(Ji, { query: l, searchTypes: n, show: h, onCancel: () =>
|
|
3329
|
+
g.preventDefault(), g.stopPropagation(), c.flush(), p(!1), a.length > 2 && e(`/search?query=${a}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
|
|
3330
|
+
}, children: /* @__PURE__ */ s.jsxs(tt, { className: xe.inputGroup, children: [
|
|
3331
|
+
/* @__PURE__ */ s.jsx(tt.Text, { className: w("p-1 rounded", xe.inputGroupText, xe.left), children: /* @__PURE__ */ s.jsx(Bi, { searchTypes: n, selectedType: r, setSelectedType: o }) }),
|
|
3332
|
+
/* @__PURE__ */ s.jsx(J.Control, { placeholder: t.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", xe.input), value: a, onChange: (g) => {
|
|
3333
|
+
var _;
|
|
3334
|
+
return i(((_ = g.target) == null ? void 0 : _.value) ?? "");
|
|
3335
|
+
}, onFocus: () => d.length > 0 && p(!0) }),
|
|
3336
|
+
/* @__PURE__ */ s.jsx(tt.Text, { className: w("p-0 rounded", xe.inputGroupText, xe.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: w("text-primary", xe.submitButton), children: /* @__PURE__ */ s.jsx(Ai, {}) }) }),
|
|
3337
|
+
/* @__PURE__ */ s.jsx(Ji, { query: l, searchTypes: n, show: h, onCancel: () => p(!1), groups: d, isLoading: u })
|
|
3338
3338
|
] }) });
|
|
3339
|
-
}, ac = "_card_19733_1", ic = "_header_19733_6", cc = "_header-content_19733_13", lc = "_title_19733_19", uc = "_collapse-icon_19733_22", dc = "_collapsed_19733_27", hc = "_content_19733_30",
|
|
3339
|
+
}, ac = "_card_19733_1", ic = "_header_19733_6", cc = "_header-content_19733_13", lc = "_title_19733_19", uc = "_collapse-icon_19733_22", dc = "_collapsed_19733_27", hc = "_content_19733_30", we = {
|
|
3340
3340
|
card: ac,
|
|
3341
3341
|
header: ic,
|
|
3342
3342
|
"header-content": "_header-content_19733_13",
|
|
@@ -3347,37 +3347,37 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3347
3347
|
collapsed: dc,
|
|
3348
3348
|
content: hc
|
|
3349
3349
|
}, mc = ({ title: n, headerContent: e, children: t, className: r, headerClassName: o, contentClassName: a, ...i }) => {
|
|
3350
|
-
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] =
|
|
3350
|
+
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] = O(l), d = i.collapsible ? i.controlled ? i.isOpen : c : !0;
|
|
3351
3351
|
return D(() => {
|
|
3352
3352
|
u(l);
|
|
3353
|
-
}, [l]), /* @__PURE__ */ s.jsxs("div", { className: w("luminus-card rounded shadow-sm",
|
|
3353
|
+
}, [l]), /* @__PURE__ */ s.jsxs("div", { className: w("luminus-card rounded shadow-sm", we.card, {
|
|
3354
3354
|
[r ?? ""]: r
|
|
3355
3355
|
}), children: [
|
|
3356
|
-
/* @__PURE__ */ s.jsxs("div", { role: i.collapsible ? "button" : void 0, className: w("header",
|
|
3356
|
+
/* @__PURE__ */ s.jsxs("div", { role: i.collapsible ? "button" : void 0, className: w("header", we.header, {
|
|
3357
3357
|
[o ?? ""]: o
|
|
3358
3358
|
}), onClick: () => {
|
|
3359
3359
|
i.collapsible && (i.controlled ? i.onToggle(!i.isOpen) : u(!c));
|
|
3360
3360
|
}, children: [
|
|
3361
|
-
/* @__PURE__ */ s.jsxs("div", { className: w("header-content",
|
|
3362
|
-
/* @__PURE__ */ s.jsx(z, { variant: "h6", className: w("text-primary",
|
|
3361
|
+
/* @__PURE__ */ s.jsxs("div", { className: w("header-content", we.headerContent), children: [
|
|
3362
|
+
/* @__PURE__ */ s.jsx(z, { variant: "h6", className: w("text-primary", we.title), children: n }),
|
|
3363
3363
|
e ?? null
|
|
3364
3364
|
] }),
|
|
3365
|
-
i.collapsible && /* @__PURE__ */ s.jsx(en, { className: w(
|
|
3366
|
-
[
|
|
3365
|
+
i.collapsible && /* @__PURE__ */ s.jsx(en, { className: w(we.collapseIcon, {
|
|
3366
|
+
[we.collapsed]: d
|
|
3367
3367
|
}) })
|
|
3368
3368
|
] }),
|
|
3369
|
-
/* @__PURE__ */ s.jsx(
|
|
3369
|
+
/* @__PURE__ */ s.jsx(xn, { in: d, children: /* @__PURE__ */ s.jsx("div", { className: w("card-content border-top border-primary", we.content, {
|
|
3370
3370
|
[a ?? ""]: a
|
|
3371
3371
|
}), children: t }) })
|
|
3372
3372
|
] });
|
|
3373
|
-
}, fc = "_lightbox_14acg_1", pc = "_show_14acg_16", gc = "_header_14acg_20",
|
|
3373
|
+
}, fc = "_lightbox_14acg_1", pc = "_show_14acg_16", gc = "_header_14acg_20", xc = "_photo-actions_14acg_26", wc = "_photo-container_14acg_31", yc = "_photo_14acg_26", vc = "_nav-button_14acg_41", bc = "_photos-preview_14acg_49", _c = "_selected_14acg_62", jc = "_default-indicator_14acg_66", re = {
|
|
3374
3374
|
lightbox: fc,
|
|
3375
3375
|
show: pc,
|
|
3376
3376
|
header: gc,
|
|
3377
3377
|
"photo-actions": "_photo-actions_14acg_26",
|
|
3378
|
-
photoActions:
|
|
3378
|
+
photoActions: xc,
|
|
3379
3379
|
"photo-container": "_photo-container_14acg_31",
|
|
3380
|
-
photoContainer:
|
|
3380
|
+
photoContainer: wc,
|
|
3381
3381
|
photo: yc,
|
|
3382
3382
|
"nav-button": "_nav-button_14acg_41",
|
|
3383
3383
|
navButton: vc,
|
|
@@ -3386,32 +3386,32 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3386
3386
|
selected: _c,
|
|
3387
3387
|
"default-indicator": "_default-indicator_14acg_66",
|
|
3388
3388
|
defaultIndicator: jc
|
|
3389
|
-
}, kc = "_backdrop_3huvf_1",
|
|
3389
|
+
}, kc = "_backdrop_3huvf_1", Nc = "_show_3huvf_11", Vt = {
|
|
3390
3390
|
backdrop: kc,
|
|
3391
|
-
show:
|
|
3391
|
+
show: Nc
|
|
3392
3392
|
}, or = ({ show: n, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: w("luminus-backdrop", Vt.backdrop, {
|
|
3393
3393
|
[Vt.show]: n
|
|
3394
|
-
}), onClick: () => e && e() }),
|
|
3395
|
-
const c = Y(null), [u, d] =
|
|
3394
|
+
}), onClick: () => e && e() }), Cc = ({ show: n, onClose: e, photos: t, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: l }) => {
|
|
3395
|
+
const c = Y(null), [u, d] = O(r), h = t.at(u), p = u > 0, g = u < t.length - 1;
|
|
3396
3396
|
D(() => {
|
|
3397
3397
|
n && d(r);
|
|
3398
3398
|
}, [r, n]), D(() => {
|
|
3399
3399
|
u >= t.length && d(t.length - 1);
|
|
3400
3400
|
}, [t, u]);
|
|
3401
|
-
const
|
|
3401
|
+
const _ = T((x) => {
|
|
3402
3402
|
switch (x.key) {
|
|
3403
3403
|
case "ArrowLeft":
|
|
3404
|
-
x.stopPropagation(),
|
|
3404
|
+
x.stopPropagation(), p && d((m) => m - 1);
|
|
3405
3405
|
break;
|
|
3406
3406
|
case "ArrowRight":
|
|
3407
|
-
x.stopPropagation(), g && d((
|
|
3407
|
+
x.stopPropagation(), g && d((m) => m + 1);
|
|
3408
3408
|
break;
|
|
3409
3409
|
case "Escape":
|
|
3410
3410
|
x.stopPropagation(), e();
|
|
3411
3411
|
break;
|
|
3412
3412
|
}
|
|
3413
|
-
}, [g,
|
|
3414
|
-
return un(
|
|
3413
|
+
}, [g, p, e]);
|
|
3414
|
+
return un(_), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3415
3415
|
/* @__PURE__ */ s.jsx(or, { show: n, onClick: e }),
|
|
3416
3416
|
/* @__PURE__ */ s.jsxs("div", { ref: c, className: w("luminus-lightbox rounded shadow", re.lightbox, {
|
|
3417
3417
|
[re.show]: n
|
|
@@ -3421,34 +3421,34 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3421
3421
|
i && /* @__PURE__ */ s.jsx(tr, { accept: ".jpg,.jpeg,.png", onUpload: (x) => {
|
|
3422
3422
|
x.length > 0 && i(Array.from(x));
|
|
3423
3423
|
}, icon: /* @__PURE__ */ s.jsx(tn, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
3424
|
-
h && (l == null ? void 0 : l.map(({ label: x, onClick:
|
|
3424
|
+
h && (l == null ? void 0 : l.map(({ label: x, onClick: m, ...k }, b) => /* @__PURE__ */ s.jsx(
|
|
3425
3425
|
ct,
|
|
3426
3426
|
{
|
|
3427
|
-
onClick: () =>
|
|
3428
|
-
...
|
|
3427
|
+
onClick: () => m(h.id),
|
|
3428
|
+
...k,
|
|
3429
3429
|
children: x
|
|
3430
3430
|
},
|
|
3431
|
-
`action-${
|
|
3431
|
+
`action-${b}`
|
|
3432
3432
|
)))
|
|
3433
3433
|
] }),
|
|
3434
|
-
/* @__PURE__ */ s.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ s.jsx(
|
|
3434
|
+
/* @__PURE__ */ s.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ s.jsx(ce, { style: { fontSize: "32px" } }) })
|
|
3435
3435
|
] }),
|
|
3436
3436
|
t.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(z, { variant: "body", children: a ?? "No photos available" }) }),
|
|
3437
3437
|
h && /* @__PURE__ */ s.jsxs("div", { className: re.photoContainer, children: [
|
|
3438
|
-
/* @__PURE__ */ s.jsx("div", { role:
|
|
3438
|
+
/* @__PURE__ */ s.jsx("div", { role: p ? "button" : void 0, className: w("align-items-start", re.navButton), onClick: () => p && d((x) => x - 1), children: p && /* @__PURE__ */ s.jsx(ht, { style: { fontSize: "40px" } }) }),
|
|
3439
3439
|
/* @__PURE__ */ s.jsx("img", { src: h.lgSrc, alt: h.alt, className: w("rounded", re.photo) }),
|
|
3440
3440
|
/* @__PURE__ */ s.jsx("div", { role: g ? "button" : void 0, className: w("align-items-end", re.navButton), onClick: () => g && d((x) => x + 1), children: g && /* @__PURE__ */ s.jsx(mt, { style: { fontSize: "40px" } }) })
|
|
3441
3441
|
] }),
|
|
3442
|
-
/* @__PURE__ */ s.jsx("div", { className: re.photosPreview, children: t.map((x,
|
|
3443
|
-
/* @__PURE__ */ s.jsx("img", { role:
|
|
3444
|
-
[re.selected]:
|
|
3442
|
+
/* @__PURE__ */ s.jsx("div", { className: re.photosPreview, children: t.map((x, m) => /* @__PURE__ */ s.jsxs("div", { role: "button", onClick: () => d(m), className: "position-relative", children: [
|
|
3443
|
+
/* @__PURE__ */ s.jsx("img", { role: m !== u ? "button" : void 0, src: x.smSrc, alt: x.alt, className: w("rounded", re.photo, {
|
|
3444
|
+
[re.selected]: m === u
|
|
3445
3445
|
}) }, x.id),
|
|
3446
3446
|
x.isDefault && /* @__PURE__ */ s.jsx("div", { className: w("text-primary", re.defaultIndicator), children: /* @__PURE__ */ s.jsx(Fr, {}) })
|
|
3447
3447
|
] })) })
|
|
3448
3448
|
] })
|
|
3449
3449
|
] });
|
|
3450
3450
|
}, ol = ({ photos: n, onUploadPhotos: e, uploadPhotosText: t, photoActions: r }) => {
|
|
3451
|
-
const [o, a] =
|
|
3451
|
+
const [o, a] = O(null), i = o !== null ? n[o] : null, [l, c] = O(!1);
|
|
3452
3452
|
return D(() => {
|
|
3453
3453
|
if (n.length === 0) {
|
|
3454
3454
|
a(null), c(!1);
|
|
@@ -3467,7 +3467,7 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3467
3467
|
onClick: () => c(!0)
|
|
3468
3468
|
}
|
|
3469
3469
|
),
|
|
3470
|
-
/* @__PURE__ */ s.jsx(
|
|
3470
|
+
/* @__PURE__ */ s.jsx(Cc, { show: l, onClose: () => c(!1), photos: n, defaultIndex: o ?? 0, uploadPhotosText: t, onUploadPhotos: e, photoActions: r })
|
|
3471
3471
|
] }) : e ? /* @__PURE__ */ s.jsx(tr, { accept: ".jpg,.jpeg,.png", onUpload: (u) => {
|
|
3472
3472
|
u.length > 0 && e(Array.from(u));
|
|
3473
3473
|
}, icon: /* @__PURE__ */ s.jsx(tn, { style: { fontSize: 18 } }), multiple: !0, children: t ?? null }) : null;
|
|
@@ -3498,32 +3498,32 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3498
3498
|
}, Sc = ({ children: n }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3499
3499
|
/* @__PURE__ */ s.jsx("div", { className: zt.spacer }),
|
|
3500
3500
|
/* @__PURE__ */ s.jsx("div", { className: w("luminus-floating-action-container shadow", zt.submitContainer), children: n })
|
|
3501
|
-
] }), Tc = "_timeline_g1754_1", Ec = "_step-container_g1754_1",
|
|
3501
|
+
] }), Tc = "_timeline_g1754_1", Ec = "_step-container_g1754_1", Dc = "_step-date_g1754_1", Oc = "_step-content_g1754_4", Pc = "_content-header_g1754_8", Ac = "_content-text_g1754_11", Mc = "_step-icon_g1754_14", ye = {
|
|
3502
3502
|
timeline: Tc,
|
|
3503
3503
|
"step-container": "_step-container_g1754_1",
|
|
3504
3504
|
stepContainer: Ec,
|
|
3505
3505
|
"step-date": "_step-date_g1754_1",
|
|
3506
|
-
stepDate:
|
|
3506
|
+
stepDate: Dc,
|
|
3507
3507
|
"step-content": "_step-content_g1754_4",
|
|
3508
|
-
stepContent:
|
|
3508
|
+
stepContent: Oc,
|
|
3509
3509
|
"content-header": "_content-header_g1754_8",
|
|
3510
|
-
contentHeader:
|
|
3510
|
+
contentHeader: Pc,
|
|
3511
3511
|
"content-text": "_content-text_g1754_11",
|
|
3512
|
-
contentText:
|
|
3512
|
+
contentText: Ac,
|
|
3513
3513
|
"step-icon": "_step-icon_g1754_14",
|
|
3514
|
-
stepIcon:
|
|
3515
|
-
}, cl = ({ steps: n }) => /* @__PURE__ */ s.jsx("div", { className:
|
|
3516
|
-
/* @__PURE__ */ s.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ s.jsxs(z, { variant: "caption", className: w("h-100 d-flex flex-column align-items-end justify-content-center gap-0",
|
|
3514
|
+
stepIcon: Mc
|
|
3515
|
+
}, cl = ({ steps: n }) => /* @__PURE__ */ s.jsx("div", { className: ye.timeline, children: n.sort((e, t) => so(e.date ?? /* @__PURE__ */ new Date(), t.date ?? /* @__PURE__ */ new Date())).map((e, t) => /* @__PURE__ */ s.jsxs("div", { className: w("row g-0 gx-3", ye.stepContainer), children: [
|
|
3516
|
+
/* @__PURE__ */ s.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ s.jsxs(z, { variant: "caption", className: w("h-100 d-flex flex-column align-items-end justify-content-center gap-0", ye.stepDate), children: [
|
|
3517
3517
|
/* @__PURE__ */ s.jsx("div", { children: ot(e.date, "dd.MM.yyyy") }),
|
|
3518
3518
|
/* @__PURE__ */ s.jsx("div", { children: ot(e.date, "HH:mm") })
|
|
3519
3519
|
] }) }),
|
|
3520
|
-
/* @__PURE__ */ s.jsx("div", { className: "col-9", children: /* @__PURE__ */ s.jsxs("div", { className: w("h-100 d-flex flex-column gap-1 border-start border-2 p-3",
|
|
3521
|
-
/* @__PURE__ */ s.jsxs("div", { className: w("d-flex gap-2 align-items-center",
|
|
3520
|
+
/* @__PURE__ */ s.jsx("div", { className: "col-9", children: /* @__PURE__ */ s.jsxs("div", { className: w("h-100 d-flex flex-column gap-1 border-start border-2 p-3", ye.stepContent), children: [
|
|
3521
|
+
/* @__PURE__ */ s.jsxs("div", { className: w("d-flex gap-2 align-items-center", ye.contentHeader), children: [
|
|
3522
3522
|
e.person && /* @__PURE__ */ s.jsx(nn, { name: e.person.name ?? "", size: 22, fontSize: 12 }),
|
|
3523
3523
|
typeof e.title == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "body", className: "fw-bold", children: e.title }) : e.title
|
|
3524
3524
|
] }),
|
|
3525
|
-
e.text && /* @__PURE__ */ s.jsx(z, { variant: "body2", className:
|
|
3526
|
-
/* @__PURE__ */ s.jsx("div", { className: w("text-primary",
|
|
3525
|
+
e.text && /* @__PURE__ */ s.jsx(z, { variant: "body2", className: ye.contentText, children: e.text }),
|
|
3526
|
+
/* @__PURE__ */ s.jsx("div", { className: w("text-primary", ye.stepIcon), children: e.icon ?? /* @__PURE__ */ s.jsx(qr, {}) })
|
|
3527
3527
|
] }) })
|
|
3528
3528
|
] }, t)) }), ll = ({ heading: n, content: e, placement: t, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(Yr, { placement: t, overlay: /* @__PURE__ */ s.jsxs(Je, { className: "luminus-popover", children: [
|
|
3529
3529
|
/* @__PURE__ */ s.jsx(Je.Header, { children: typeof n == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: n }) : n }),
|
|
@@ -3534,39 +3534,39 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3534
3534
|
return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: t });
|
|
3535
3535
|
const o = e(n);
|
|
3536
3536
|
return /* @__PURE__ */ s.jsx(r, { to: o, className: "luminus-input-container position-relative w-100 text-decoration-none", children: t });
|
|
3537
|
-
}, ul = ({ InputContainer: n =
|
|
3537
|
+
}, ul = ({ InputContainer: n = ke, label: e, value: t, onChange: r, hidden: o, disabled: a, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ s.jsx(n, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, className: i, children: /* @__PURE__ */ s.jsx(J.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: t, onChange: (u) => {
|
|
3538
3538
|
var d;
|
|
3539
3539
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3540
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), dl = ({ InputContainer: n =
|
|
3541
|
-
const
|
|
3540
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), dl = ({ InputContainer: n = ke, type: e, value: t, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: p, list: g, className: _, step: x }) => {
|
|
3541
|
+
const m = e === "number", k = T(() => {
|
|
3542
3542
|
if (!r)
|
|
3543
3543
|
return;
|
|
3544
|
-
const
|
|
3545
|
-
r(
|
|
3546
|
-
}, [
|
|
3547
|
-
const
|
|
3548
|
-
r && (
|
|
3549
|
-
}, [
|
|
3550
|
-
var
|
|
3551
|
-
const
|
|
3544
|
+
const C = p ?? null;
|
|
3545
|
+
r(m ? C ? Number(C) : null : (C == null ? void 0 : C.toString()) ?? "");
|
|
3546
|
+
}, [p, m, r]), b = Y(null), [f, N] = O((t == null ? void 0 : t.toString()) ?? ""), j = T((C) => {
|
|
3547
|
+
const v = C;
|
|
3548
|
+
r && (m && r(v == null || v === "" ? null : Number(v)), r(v || null));
|
|
3549
|
+
}, [m, r]), y = T((C) => {
|
|
3550
|
+
var S;
|
|
3551
|
+
const v = (S = C.target) == null ? void 0 : S.value;
|
|
3552
3552
|
if (!o) {
|
|
3553
|
-
|
|
3553
|
+
j(v);
|
|
3554
3554
|
return;
|
|
3555
3555
|
}
|
|
3556
|
-
|
|
3557
|
-
|
|
3556
|
+
N(v), b.current !== null && window.clearTimeout(b.current), b.current = window.setTimeout(() => {
|
|
3557
|
+
j(v);
|
|
3558
3558
|
}, o);
|
|
3559
|
-
}, [o,
|
|
3559
|
+
}, [o, j]);
|
|
3560
3560
|
D(() => {
|
|
3561
|
-
|
|
3561
|
+
N(t === null ? "" : t.toString());
|
|
3562
3562
|
}, [t]);
|
|
3563
|
-
const [$, P] =
|
|
3564
|
-
return /* @__PURE__ */ s.jsxs(n, { withoutLabel: i, label: a ?? "", hidden: u, className:
|
|
3565
|
-
/* @__PURE__ */ s.jsx(J.Control, { type: I, placeholder: l ?? a, size: c, value: o ?
|
|
3566
|
-
h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(
|
|
3563
|
+
const [$, P] = O(!1), I = hn(e, t ? t.toString() ?? null : null, $);
|
|
3564
|
+
return /* @__PURE__ */ s.jsxs(n, { withoutLabel: i, label: a ?? "", hidden: u, className: _, children: [
|
|
3565
|
+
/* @__PURE__ */ s.jsx(J.Control, { type: I, placeholder: l ?? a, size: c, value: o ? f : t ?? "", onChange: y, className: _ ?? "", hidden: u, disabled: d ?? !1, list: g, onFocus: () => P(!0), onBlur: () => P(!1), step: x }),
|
|
3566
|
+
h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3567
3567
|
] });
|
|
3568
3568
|
}, hl = ({
|
|
3569
|
-
InputContainer: n =
|
|
3569
|
+
InputContainer: n = ke,
|
|
3570
3570
|
value: e,
|
|
3571
3571
|
options: t,
|
|
3572
3572
|
onChange: r,
|
|
@@ -3578,209 +3578,241 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3578
3578
|
disabled: u,
|
|
3579
3579
|
showClearIcon: d,
|
|
3580
3580
|
clearValue: h,
|
|
3581
|
-
noSortOptions:
|
|
3581
|
+
noSortOptions: p,
|
|
3582
3582
|
className: g,
|
|
3583
|
-
noEmptyOption:
|
|
3583
|
+
noEmptyOption: _
|
|
3584
3584
|
// it will still add the empty option if there is no value provided or value is empty string or null
|
|
3585
3585
|
}) => {
|
|
3586
|
-
const x =
|
|
3586
|
+
const x = T(() => {
|
|
3587
3587
|
if (!r)
|
|
3588
3588
|
return;
|
|
3589
|
-
const
|
|
3590
|
-
r(i ?
|
|
3589
|
+
const m = h ?? null;
|
|
3590
|
+
r(i ? m ? Number(m) : null : (m == null ? void 0 : m.toString()) ?? "");
|
|
3591
3591
|
}, [h, i, r]);
|
|
3592
3592
|
return /* @__PURE__ */ s.jsxs(n, { withoutLabel: a, label: o ?? "", hidden: c, className: g, children: [
|
|
3593
|
-
/* @__PURE__ */ s.jsxs(J.Select, { size: l, value: e ?? "", onChange: (
|
|
3594
|
-
var
|
|
3593
|
+
/* @__PURE__ */ s.jsxs(J.Select, { size: l, value: e ?? "", onChange: (m) => {
|
|
3594
|
+
var b;
|
|
3595
3595
|
if (!r)
|
|
3596
3596
|
return;
|
|
3597
|
-
const
|
|
3598
|
-
i && r(
|
|
3597
|
+
const k = (b = m.target) == null ? void 0 : b.value;
|
|
3598
|
+
i && r(k ? parseInt(k, 10) : null), r(k || null);
|
|
3599
3599
|
}, className: g ?? "", hidden: c, disabled: u ?? !1, children: [
|
|
3600
|
-
|
|
3601
|
-
t == null ? void 0 : t.sort((
|
|
3600
|
+
_ && !(e == null || e === "") ? void 0 : /* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3601
|
+
t == null ? void 0 : t.sort((m, k) => p ? 0 : (m.name ?? "").localeCompare(k.name ?? "")).map((m) => /* @__PURE__ */ s.jsx("option", { value: m.id ?? "", children: m.name }, m.id))
|
|
3602
3602
|
] }),
|
|
3603
|
-
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(
|
|
3603
|
+
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3604
3604
|
] });
|
|
3605
|
-
}, ml = ({ InputContainer: n =
|
|
3606
|
-
var
|
|
3607
|
-
const [
|
|
3605
|
+
}, ml = ({ InputContainer: n = ke, items: e, defaultSelection: t, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: p, additionalColumns: g, hidden: _, disabled: x, displayIdAsName: m, CustomOnChangeComponent: k, className: b }) => {
|
|
3606
|
+
var S, F;
|
|
3607
|
+
const [f, N] = O(t), [j, y] = O(!1);
|
|
3608
3608
|
D(() => {
|
|
3609
|
-
|
|
3609
|
+
N(t);
|
|
3610
3610
|
}, [t]);
|
|
3611
|
-
const $ =
|
|
3612
|
-
|
|
3613
|
-
}, []), P =
|
|
3611
|
+
const $ = T((W) => {
|
|
3612
|
+
N(W);
|
|
3613
|
+
}, []), P = T((W) => {
|
|
3614
3614
|
y(!1), $(W);
|
|
3615
3615
|
}, [$]);
|
|
3616
3616
|
D(() => {
|
|
3617
|
-
c && c(
|
|
3618
|
-
}, [
|
|
3619
|
-
const I = Y(null),
|
|
3620
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { withoutLabel: d, label: u ?? "", hidden:
|
|
3621
|
-
/* @__PURE__ */ s.jsxs(sr, { currentSelection:
|
|
3622
|
-
|
|
3623
|
-
/* @__PURE__ */ s.jsxs(J.Select, { ref: I, size: h, value: (
|
|
3617
|
+
c && c(f);
|
|
3618
|
+
}, [f, c]);
|
|
3619
|
+
const I = Y(null), C = r !== void 0, v = C && f !== null;
|
|
3620
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { withoutLabel: d, label: u ?? "", hidden: _, inputContainerClassName: w({ "luminus-dropdown-select-open": j }), className: b, children: [
|
|
3621
|
+
/* @__PURE__ */ s.jsxs(sr, { currentSelection: f, selectedItemNavigateTo: r, children: [
|
|
3622
|
+
m && (f == null ? void 0 : f.name) && /* @__PURE__ */ s.jsx(z, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: f.name }),
|
|
3623
|
+
/* @__PURE__ */ s.jsxs(J.Select, { ref: I, size: h, value: (f == null ? void 0 : f.id) ?? "", onChange: (W) => N({
|
|
3624
3624
|
id: l ? Number(W.target.value) ?? null : W.target.value,
|
|
3625
3625
|
name: ""
|
|
3626
3626
|
}), onMouseDown: (W) => {
|
|
3627
3627
|
W.currentTarget.focus(), W.preventDefault();
|
|
3628
3628
|
}, onClick: () => {
|
|
3629
|
-
!
|
|
3629
|
+
!C && !x && y(!0);
|
|
3630
3630
|
}, className: w("w-100", {
|
|
3631
3631
|
"luminus-dropdown-picker-disabled": x,
|
|
3632
|
-
"luminus-dropdown-picker-link":
|
|
3633
|
-
}), hidden:
|
|
3632
|
+
"luminus-dropdown-picker-link": v
|
|
3633
|
+
}), hidden: _, children: [
|
|
3634
3634
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3635
|
-
t && /* @__PURE__ */ s.jsx("option", { value: t.id ?? void 0, children: t.name && ((
|
|
3636
|
-
|
|
3635
|
+
t && /* @__PURE__ */ s.jsx("option", { value: t.id ?? void 0, children: t.name && ((S = t.name) == null ? void 0 : S.length) > 0 ? t.name : t.id }),
|
|
3636
|
+
f && /* @__PURE__ */ s.jsx("option", { value: f.id ?? void 0, children: f.name && ((F = f.name) == null ? void 0 : F.length) > 0 ? f.name : f.id })
|
|
3637
3637
|
] }),
|
|
3638
|
-
|
|
3639
|
-
!
|
|
3638
|
+
k || !x && C ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
3639
|
+
!k && !x && C && /* @__PURE__ */ s.jsx(U, { size: "sm", color: "secondary", onClick: (W) => {
|
|
3640
3640
|
W.preventDefault(), W.stopPropagation(), y(!0);
|
|
3641
3641
|
}, children: /* @__PURE__ */ s.jsx(rn, {}) }),
|
|
3642
|
-
|
|
3642
|
+
k ?? null
|
|
3643
3643
|
] }) : null
|
|
3644
3644
|
] }),
|
|
3645
|
-
I.current && /* @__PURE__ */ s.jsx(bt, { show:
|
|
3645
|
+
I.current && /* @__PURE__ */ s.jsx(bt, { show: j, onCancel: () => y(!1), items: e, currentSelection: f, onSelectionChange: P, onSearchQueryChange: o, texts: a, itemsNameWidth: p, additionalColumns: g, isLoading: i, disabled: x, inputRef: I })
|
|
3646
3646
|
] }) });
|
|
3647
|
-
}, fl = ({ InputContainer: n =
|
|
3648
|
-
const g =
|
|
3647
|
+
}, fl = ({ InputContainer: n = ke, value: e, onChange: t, label: r, size: o, showClearIcon: a, clearValue: i, hidden: l, disabled: c, rows: u, withoutLabel: d, debounceMs: h, className: p }) => {
|
|
3648
|
+
const g = T(() => {
|
|
3649
3649
|
if (!t)
|
|
3650
3650
|
return;
|
|
3651
|
-
const
|
|
3652
|
-
t((
|
|
3653
|
-
}, [i, t]),
|
|
3654
|
-
const
|
|
3655
|
-
t && t(
|
|
3656
|
-
}, [t]),
|
|
3657
|
-
var
|
|
3658
|
-
const
|
|
3651
|
+
const f = i ?? null;
|
|
3652
|
+
t((f == null ? void 0 : f.toString()) ?? "");
|
|
3653
|
+
}, [i, t]), _ = Y(null), [x, m] = O((e == null ? void 0 : e.toString()) ?? ""), k = T((f) => {
|
|
3654
|
+
const N = f;
|
|
3655
|
+
t && t(N || null);
|
|
3656
|
+
}, [t]), b = T((f) => {
|
|
3657
|
+
var j;
|
|
3658
|
+
const N = (j = f.target) == null ? void 0 : j.value;
|
|
3659
3659
|
if (!h) {
|
|
3660
|
-
|
|
3660
|
+
k(N);
|
|
3661
3661
|
return;
|
|
3662
3662
|
}
|
|
3663
|
-
|
|
3664
|
-
|
|
3663
|
+
m(N), _.current !== null && window.clearTimeout(_.current), _.current = window.setTimeout(() => {
|
|
3664
|
+
k(N);
|
|
3665
3665
|
}, h);
|
|
3666
|
-
}, [h,
|
|
3666
|
+
}, [h, k]);
|
|
3667
3667
|
return D(() => {
|
|
3668
|
-
|
|
3669
|
-
}, [e]), /* @__PURE__ */ s.jsxs(n, { label: r ?? "", hidden: l, withoutLabel: d, className:
|
|
3670
|
-
/* @__PURE__ */ s.jsx(J.Control, { as: "textarea", size: o, value: h ? x : e ?? "", onChange:
|
|
3671
|
-
a && e && t && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(
|
|
3668
|
+
m(e === null ? "" : e.toString());
|
|
3669
|
+
}, [e]), /* @__PURE__ */ s.jsxs(n, { label: r ?? "", hidden: l, withoutLabel: d, className: p, isForTextAreaInput: !0, children: [
|
|
3670
|
+
/* @__PURE__ */ s.jsx(J.Control, { as: "textarea", size: o, value: h ? x : e ?? "", onChange: b, hidden: l, disabled: c, rows: u ?? 2, className: "w-100" }),
|
|
3671
|
+
a && e && t && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3672
3672
|
] });
|
|
3673
|
-
}, pl = ({ InputContainer: n =
|
|
3674
|
-
const
|
|
3673
|
+
}, pl = ({ InputContainer: n = ke, value: e, onChange: t, debounceMs: r, label: o, withoutLabel: a, placeholder: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: h, className: p, step: g, stepperStep: _ = 1 }) => {
|
|
3674
|
+
const x = T(() => {
|
|
3675
|
+
if (!t)
|
|
3676
|
+
return;
|
|
3677
|
+
const j = h ?? null;
|
|
3678
|
+
t(j ? Number(j) : null);
|
|
3679
|
+
}, [h, t]), m = Y(null), [k, b] = O((e == null ? void 0 : e.toString()) ?? ""), f = T((j) => {
|
|
3680
|
+
const y = j;
|
|
3681
|
+
t && t(y == null || y === "" ? null : Number(y));
|
|
3682
|
+
}, [t]), N = T((j) => {
|
|
3683
|
+
var $;
|
|
3684
|
+
const y = ($ = j.target) == null ? void 0 : $.value;
|
|
3685
|
+
if (!r) {
|
|
3686
|
+
f(y);
|
|
3687
|
+
return;
|
|
3688
|
+
}
|
|
3689
|
+
b(y), m.current !== null && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
3690
|
+
f(y);
|
|
3691
|
+
}, r);
|
|
3692
|
+
}, [r, f]);
|
|
3693
|
+
return D(() => {
|
|
3694
|
+
b(e === null ? "" : e.toString());
|
|
3695
|
+
}, [e]), /* @__PURE__ */ s.jsx(n, { withoutLabel: a, label: o ?? "", hidden: c, className: p, children: /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3696
|
+
/* @__PURE__ */ s.jsx(J.Control, { type: "number", placeholder: i ?? o, size: l, value: r ? k : e ?? "", onChange: N, className: `luminus-numeric-stepper ${p ?? ""}`, hidden: c, disabled: u ?? !1, step: g }),
|
|
3697
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ s.jsx(U, { size: "sm", color: "secondary", onClick: (j) => {
|
|
3698
|
+
j.preventDefault(), j.stopPropagation(), f(((e ?? 0) - _).toString());
|
|
3699
|
+
}, children: "-" }) }),
|
|
3700
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ s.jsx(U, { size: "sm", color: "secondary", onClick: (j) => {
|
|
3701
|
+
j.preventDefault(), j.stopPropagation(), f(((e ?? 0) + _).toString());
|
|
3702
|
+
}, children: "+" }) }),
|
|
3703
|
+
d && e && t && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ s.jsx(ce, {}) }) })
|
|
3704
|
+
] }) });
|
|
3705
|
+
}, gl = ({ InputContainer: n = fe, formField: e, label: t, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c, className: u }) => {
|
|
3706
|
+
const { register: d, formState: h, setValue: p } = le(), [g, _] = O(void 0), [x, m] = O(!1);
|
|
3675
3707
|
D(() => {
|
|
3676
|
-
const
|
|
3677
|
-
let
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
}),
|
|
3708
|
+
const b = e.split(".");
|
|
3709
|
+
let f = h.errors;
|
|
3710
|
+
b.forEach((N) => {
|
|
3711
|
+
f !== void 0 && (f = f[N]);
|
|
3712
|
+
}), _(f);
|
|
3681
3713
|
}, [h, e]), D(() => {
|
|
3682
|
-
h.isSubmitted &&
|
|
3714
|
+
h.isSubmitted && m(!0);
|
|
3683
3715
|
}, [h]);
|
|
3684
|
-
const
|
|
3685
|
-
return /* @__PURE__ */ s.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid:
|
|
3716
|
+
const k = g !== void 0;
|
|
3717
|
+
return /* @__PURE__ */ s.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid: k, withoutLabel: c, className: u, children: [
|
|
3686
3718
|
/* @__PURE__ */ s.jsx(J.Check, { id: `check-${e}`, type: o ?? "checkbox", label: `${t}${a ? " *" : ""}`, ...d(e, {
|
|
3687
3719
|
onChange: () => {
|
|
3688
|
-
r && r.forEach((
|
|
3720
|
+
r && r.forEach((b) => p(b, null, { shouldDirty: !0, shouldValidate: x }));
|
|
3689
3721
|
}
|
|
3690
|
-
}), isInvalid:
|
|
3691
|
-
g && /* @__PURE__ */ s.jsx(
|
|
3722
|
+
}), isInvalid: k, hidden: i, disabled: l, className: "w-100" }),
|
|
3723
|
+
g && /* @__PURE__ */ s.jsx(pe, { message: g.message })
|
|
3692
3724
|
] });
|
|
3693
|
-
},
|
|
3694
|
-
const { register: u, formState: d, setValue: h, watch:
|
|
3725
|
+
}, xl = ({ InputContainer: n = fe, label: e, formField: t, options: r, resetsFields: o, required: a, disabled: i, hidden: l, className: c }) => {
|
|
3726
|
+
const { register: u, formState: d, setValue: h, watch: p } = le(), [g, _] = O(void 0), [x, m] = O(!1), k = Q(() => r, [r]);
|
|
3695
3727
|
D(() => {
|
|
3696
|
-
const
|
|
3697
|
-
let
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
}),
|
|
3728
|
+
const f = t.split(".");
|
|
3729
|
+
let N = d.errors;
|
|
3730
|
+
f.forEach((j) => {
|
|
3731
|
+
N !== void 0 && (N = N[j]);
|
|
3732
|
+
}), _(N);
|
|
3701
3733
|
}, [d, t]), D(() => {
|
|
3702
|
-
d.isSubmitted &&
|
|
3734
|
+
d.isSubmitted && m(!0);
|
|
3703
3735
|
}, [d]);
|
|
3704
|
-
const
|
|
3705
|
-
return /* @__PURE__ */ s.jsxs(n, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid:
|
|
3706
|
-
|
|
3736
|
+
const b = g !== void 0;
|
|
3737
|
+
return /* @__PURE__ */ s.jsxs(n, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: b, className: c, children: [
|
|
3738
|
+
k.map((f) => /* @__PURE__ */ s.jsx(J.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: p(t) === f.id, ...u(t, {
|
|
3707
3739
|
onChange: () => {
|
|
3708
|
-
o && o.forEach((
|
|
3740
|
+
o && o.forEach((N) => h(N, null, { shouldDirty: !0, shouldValidate: x }));
|
|
3709
3741
|
}
|
|
3710
|
-
}), isInvalid:
|
|
3711
|
-
g && /* @__PURE__ */ s.jsx(
|
|
3742
|
+
}), isInvalid: b, hidden: l, disabled: i, className: "w-100" }, f.id)),
|
|
3743
|
+
g && /* @__PURE__ */ s.jsx(pe, { message: g.message })
|
|
3712
3744
|
] });
|
|
3713
|
-
}, wl = ({ InputContainer: n =
|
|
3714
|
-
const { register:
|
|
3745
|
+
}, wl = ({ InputContainer: n = fe, formField: e, label: t, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, rows: d, withoutLabel: h, customFormControlProps: p, className: g }) => {
|
|
3746
|
+
const { register: _, formState: x, setValue: m, watch: k } = le(), [b, f] = O(void 0), [N, j] = O(!1), y = T(() => {
|
|
3715
3747
|
const I = i ?? null;
|
|
3716
|
-
|
|
3717
|
-
}, [i,
|
|
3748
|
+
m(e, (I == null ? void 0 : I.toString()) ?? "", { shouldDirty: !0, shouldValidate: N });
|
|
3749
|
+
}, [i, m, e, N]), $ = T(() => {
|
|
3718
3750
|
const I = e.split(".");
|
|
3719
|
-
let
|
|
3720
|
-
I.forEach((
|
|
3721
|
-
|
|
3722
|
-
}),
|
|
3751
|
+
let C = x.errors;
|
|
3752
|
+
I.forEach((v) => {
|
|
3753
|
+
C !== void 0 && (C = C[v]);
|
|
3754
|
+
}), f(C);
|
|
3723
3755
|
}, [x, e]);
|
|
3724
3756
|
D(() => {
|
|
3725
3757
|
$();
|
|
3726
3758
|
}, [$]), D(() => {
|
|
3727
|
-
x.isSubmitted &&
|
|
3759
|
+
x.isSubmitted && j(!0);
|
|
3728
3760
|
}, [x]);
|
|
3729
|
-
const P =
|
|
3761
|
+
const P = b !== void 0;
|
|
3730
3762
|
return /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: P, className: g, isForTextAreaInput: !0, children: [
|
|
3731
|
-
/* @__PURE__ */ s.jsx(J.Control, { as: "textarea", size: o, ...
|
|
3763
|
+
/* @__PURE__ */ s.jsx(J.Control, { as: "textarea", size: o, ..._(e, {
|
|
3732
3764
|
setValueAs: (I) => I == null || I === "" ? null : I,
|
|
3733
3765
|
onChange: () => {
|
|
3734
|
-
r && r.forEach((I) =>
|
|
3766
|
+
r && r.forEach((I) => m(I, null, { shouldDirty: !0, shouldValidate: N }));
|
|
3735
3767
|
}
|
|
3736
|
-
}), isInvalid: P, hidden: c, disabled: u, rows: d ?? 2, className: "w-100", ...
|
|
3737
|
-
a &&
|
|
3738
|
-
|
|
3768
|
+
}), isInvalid: P, hidden: c, disabled: u, rows: d ?? 2, className: "w-100", ...p }),
|
|
3769
|
+
a && k(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ s.jsx(ce, {}) }) }),
|
|
3770
|
+
b && /* @__PURE__ */ s.jsx(pe, { message: b.message })
|
|
3739
3771
|
] });
|
|
3740
|
-
},
|
|
3741
|
-
const { register:
|
|
3772
|
+
}, yl = ({ InputContainer: n = fe, type: e, formField: t, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: p, list: g, step: _, CustomOnChangeComponent: x, className: m }) => {
|
|
3773
|
+
const { register: k, formState: b, setValue: f, watch: N } = le(), [j, y] = O(void 0), [$, P] = O(!1), I = T(() => {
|
|
3742
3774
|
const R = c ?? null;
|
|
3743
|
-
e === "number" ?
|
|
3775
|
+
e === "number" ? f(t, R !== null ? Number(R) : null, {
|
|
3744
3776
|
shouldDirty: !0,
|
|
3745
3777
|
shouldValidate: $
|
|
3746
|
-
}) :
|
|
3747
|
-
}, [c, e,
|
|
3778
|
+
}) : f(t, (R == null ? void 0 : R.toString()) ?? "", { shouldDirty: !0, shouldValidate: $ });
|
|
3779
|
+
}, [c, e, f, t, $]), C = T(() => {
|
|
3748
3780
|
const R = t.split(".");
|
|
3749
|
-
let G =
|
|
3781
|
+
let G = b.errors;
|
|
3750
3782
|
R.forEach((ae) => {
|
|
3751
3783
|
G !== void 0 && (G = G[ae]);
|
|
3752
3784
|
}), y(G);
|
|
3753
|
-
}, [
|
|
3785
|
+
}, [b, t]);
|
|
3754
3786
|
D(() => {
|
|
3755
|
-
|
|
3756
|
-
}, [
|
|
3757
|
-
|
|
3758
|
-
}, [
|
|
3759
|
-
const
|
|
3760
|
-
return /* @__PURE__ */ s.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel:
|
|
3787
|
+
C();
|
|
3788
|
+
}, [C]), D(() => {
|
|
3789
|
+
b.isSubmitted && P(!0);
|
|
3790
|
+
}, [b]);
|
|
3791
|
+
const v = j !== void 0, [S, F] = O(!1), W = N(t), H = hn(e, W ?? null, S);
|
|
3792
|
+
return /* @__PURE__ */ s.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: p, isInvalid: v, className: m, children: [
|
|
3761
3793
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3762
3794
|
/* @__PURE__ */ s.jsx(J.Control, { type: H, placeholder: o ?? r, size: a, onFocus: () => {
|
|
3763
3795
|
F(!0);
|
|
3764
|
-
}, ...
|
|
3796
|
+
}, ...k(t, {
|
|
3765
3797
|
setValueAs: (R) => e === "number" ? R == null || R === "" ? null : Number(R) : R == null || R === "" ? null : R,
|
|
3766
3798
|
onChange: () => {
|
|
3767
|
-
i && i.forEach((R) =>
|
|
3799
|
+
i && i.forEach((R) => f(R, null, { shouldDirty: !0, shouldValidate: $ }));
|
|
3768
3800
|
},
|
|
3769
3801
|
onBlur: () => F(!1)
|
|
3770
|
-
}), isInvalid:
|
|
3802
|
+
}), isInvalid: v, hidden: d, disabled: h, list: g, className: "w-100", step: _ }),
|
|
3771
3803
|
x && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: x })
|
|
3772
3804
|
] }),
|
|
3773
|
-
l &&
|
|
3774
|
-
|
|
3805
|
+
l && N(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: I, children: /* @__PURE__ */ s.jsx(ce, {}) }) }),
|
|
3806
|
+
j && /* @__PURE__ */ s.jsx(pe, { message: j.message })
|
|
3775
3807
|
] });
|
|
3776
|
-
},
|
|
3777
|
-
const { formState:
|
|
3808
|
+
}, vl = ({ InputContainer: n = fe, formField: e, label: t, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: p, texts: g, dropdownItemsNameWidth: _, isLoading: x, withoutLabel: m, additionalColumns: k, CustomOnChangeComponent: b, displayIdAsName: f, className: N }) => {
|
|
3809
|
+
const { formState: j, setValue: y, watch: $, control: P } = le(), [I, C] = O(void 0), [v, S] = O(!1), [F, W] = O(!1), H = $(e) ?? null, R = H === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : $(`${e}-DropdownName`), G = Q(() => H == null ? null : { id: H ?? null, name: R ?? "" }, [H, R]), ae = T(() => {
|
|
3778
3810
|
const B = e.split(".");
|
|
3779
|
-
let
|
|
3811
|
+
let ue = j.errors;
|
|
3780
3812
|
B.forEach((Qe) => {
|
|
3781
|
-
|
|
3782
|
-
}),
|
|
3783
|
-
}, [
|
|
3813
|
+
ue !== void 0 && (ue = ue[Qe]);
|
|
3814
|
+
}), C(ue);
|
|
3815
|
+
}, [j, e]), ne = T((B) => {
|
|
3784
3816
|
if ((B == null ? void 0 : B.id) === H)
|
|
3785
3817
|
return;
|
|
3786
3818
|
if (a && a.forEach((Qe) => y(Qe, null, { shouldDirty: !0, shouldValidate: F })), B === null) {
|
|
@@ -3790,128 +3822,166 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3790
3822
|
}), y(`${e}-DropdownName`, null);
|
|
3791
3823
|
return;
|
|
3792
3824
|
}
|
|
3793
|
-
let
|
|
3794
|
-
i ?
|
|
3825
|
+
let ue = null;
|
|
3826
|
+
i ? ue = (B == null ? void 0 : B.id) !== null && (B == null ? void 0 : B.id) !== "" ? parseInt(B.id.toString(), 10) : null : ue = B.id === null || B.id === void 0 || B.id === "" ? null : B.id, y(e, ue, {
|
|
3795
3827
|
shouldDirty: !0,
|
|
3796
3828
|
shouldValidate: F
|
|
3797
3829
|
}), y(`${e}-DropdownName`, B.name ?? "");
|
|
3798
|
-
}, [y, e, F, i, a, H]),
|
|
3799
|
-
|
|
3800
|
-
}, [ne]),
|
|
3801
|
-
|
|
3830
|
+
}, [y, e, F, i, a, H]), K = T((B) => {
|
|
3831
|
+
S(!1), ne(B);
|
|
3832
|
+
}, [ne]), E = T(() => {
|
|
3833
|
+
S(!1);
|
|
3802
3834
|
}, []);
|
|
3803
3835
|
D(() => {
|
|
3804
3836
|
ae();
|
|
3805
3837
|
}, [ae]), D(() => {
|
|
3806
|
-
|
|
3807
|
-
}, [
|
|
3808
|
-
const
|
|
3809
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel:
|
|
3810
|
-
/* @__PURE__ */ s.jsxs(sr, { currentSelection: G, selectedItemNavigateTo:
|
|
3811
|
-
|
|
3838
|
+
j.isSubmitted && W(!0);
|
|
3839
|
+
}, [j]);
|
|
3840
|
+
const A = Y(null), X = I !== void 0, Pe = p !== void 0, ar = Pe && G !== null;
|
|
3841
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: m, isInvalid: X, inputContainerClassName: w({ "luminus-dropdown-select-open": v }), className: N, children: [
|
|
3842
|
+
/* @__PURE__ */ s.jsxs(sr, { currentSelection: G, selectedItemNavigateTo: p, children: [
|
|
3843
|
+
f && (G == null ? void 0 : G.name) && /* @__PURE__ */ s.jsx(z, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: G.name }),
|
|
3812
3844
|
/* @__PURE__ */ s.jsx(ln, { control: P, name: e, render: () => /* @__PURE__ */ s.jsx(J.Select, { size: r, onMouseDown: (B) => {
|
|
3813
3845
|
B.currentTarget.focus(), B.preventDefault();
|
|
3814
3846
|
}, onClick: () => {
|
|
3815
|
-
!
|
|
3816
|
-
}, ref:
|
|
3817
|
-
}, isInvalid:
|
|
3847
|
+
!Pe && !u && S(!0);
|
|
3848
|
+
}, ref: A, value: H ?? "", onChange: () => {
|
|
3849
|
+
}, isInvalid: X, hidden: c, className: w("w-100", {
|
|
3818
3850
|
"luminus-dropdown-picker-disabled": u,
|
|
3819
3851
|
"luminus-dropdown-picker-link": ar
|
|
3820
|
-
}), children: /* @__PURE__ */ s.jsx("option", { value: H, children:
|
|
3821
|
-
|
|
3822
|
-
!
|
|
3823
|
-
B.preventDefault(), B.stopPropagation(),
|
|
3852
|
+
}), children: /* @__PURE__ */ s.jsx("option", { value: H, children: f ? H : (R == null ? void 0 : R.length) > 0 ? R : H }) }) }),
|
|
3853
|
+
b || !u && Pe ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
3854
|
+
!b && !u && Pe && /* @__PURE__ */ s.jsx(U, { size: "sm", color: "secondary", onClick: (B) => {
|
|
3855
|
+
B.preventDefault(), B.stopPropagation(), S(!0);
|
|
3824
3856
|
}, children: /* @__PURE__ */ s.jsx(rn, {}) }),
|
|
3825
|
-
|
|
3857
|
+
b ?? null
|
|
3826
3858
|
] }) : null
|
|
3827
3859
|
] }),
|
|
3828
|
-
I && /* @__PURE__ */ s.jsx(
|
|
3829
|
-
|
|
3860
|
+
I && /* @__PURE__ */ s.jsx(pe, { message: I.message }),
|
|
3861
|
+
A.current && /* @__PURE__ */ s.jsx(bt, { show: v, onCancel: E, items: d, currentSelection: G, onSelectionChange: K, onSearchQueryChange: h, texts: g, itemsNameWidth: _, additionalColumns: k, displayIdAsName: f, isLoading: x, disabled: u, inputRef: A })
|
|
3830
3862
|
] }) });
|
|
3831
|
-
},
|
|
3832
|
-
const { watch: g, setValue:
|
|
3833
|
-
|
|
3834
|
-
}, [
|
|
3863
|
+
}, bl = ({ InputContainer: n = fe, label: e, formField: t, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h, className: p }) => {
|
|
3864
|
+
const { watch: g, setValue: _, register: x, formState: m } = le(), [k, b] = O(!1), [f, N] = O(void 0), j = T(() => {
|
|
3865
|
+
_(t, "");
|
|
3866
|
+
}, [_, t]), y = T(() => {
|
|
3835
3867
|
const P = t.split(".");
|
|
3836
|
-
let I =
|
|
3837
|
-
P.forEach((
|
|
3838
|
-
I !== void 0 && (I = I[
|
|
3839
|
-
}),
|
|
3840
|
-
}, [
|
|
3868
|
+
let I = m.errors;
|
|
3869
|
+
P.forEach((C) => {
|
|
3870
|
+
I !== void 0 && (I = I[C]);
|
|
3871
|
+
}), N(I);
|
|
3872
|
+
}, [m, t]);
|
|
3841
3873
|
D(y, [y]), D(() => {
|
|
3842
|
-
|
|
3843
|
-
}, [
|
|
3844
|
-
const $ =
|
|
3845
|
-
return /* @__PURE__ */ s.jsxs(n, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: $, className:
|
|
3874
|
+
m.isSubmitted && b(!0);
|
|
3875
|
+
}, [m]);
|
|
3876
|
+
const $ = f !== void 0;
|
|
3877
|
+
return /* @__PURE__ */ s.jsxs(n, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: $, className: p, children: [
|
|
3846
3878
|
/* @__PURE__ */ s.jsx(an, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: $, hidden: r, disabled: i, className: "w-100", ...x(t, {
|
|
3847
3879
|
onChange: () => {
|
|
3848
|
-
c && c.forEach((P) =>
|
|
3880
|
+
c && c.forEach((P) => _(P, null, { shouldDirty: !0, shouldValidate: k }));
|
|
3849
3881
|
}
|
|
3850
3882
|
}) }),
|
|
3851
|
-
l && g(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(
|
|
3852
|
-
|
|
3883
|
+
l && g(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ s.jsx(ce, {}) }) }),
|
|
3884
|
+
f && /* @__PURE__ */ s.jsx(pe, { message: f.message })
|
|
3853
3885
|
] });
|
|
3854
|
-
},
|
|
3855
|
-
const { formState: t } =
|
|
3886
|
+
}, _l = ({ children: n, onStorno: e }) => {
|
|
3887
|
+
const { formState: t } = le(), [r, o] = O(!1);
|
|
3856
3888
|
return D(() => {
|
|
3857
3889
|
o(Object.keys(t.dirtyFields).length > 0);
|
|
3858
3890
|
}, [t]), r ? /* @__PURE__ */ s.jsx(Ra, { onStorno: e, children: n }) : null;
|
|
3859
|
-
},
|
|
3860
|
-
const { customSelectTexts:
|
|
3861
|
-
const
|
|
3862
|
-
let
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
}),
|
|
3866
|
-
}, [x, t]), W =
|
|
3867
|
-
if ((
|
|
3891
|
+
}, jl = ({ InputContainer: n = fe, options: e, formField: t, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: p, className: g }) => {
|
|
3892
|
+
const { customSelectTexts: _ } = L(oe), { formState: x, setValue: m, watch: k, control: b } = le(), [f, N] = O(void 0), [j, y] = O(!1), [$, P] = O(!1), [I, C] = O(""), v = k(t), S = Q(() => e.find((E) => E.id === v) ?? null, [e, v]), F = T(() => {
|
|
3893
|
+
const E = t.split(".");
|
|
3894
|
+
let A = x.errors;
|
|
3895
|
+
E.forEach((X) => {
|
|
3896
|
+
A !== void 0 && (A = A[X]);
|
|
3897
|
+
}), N(A);
|
|
3898
|
+
}, [x, t]), W = T((E) => {
|
|
3899
|
+
if ((E == null ? void 0 : E.id) === v)
|
|
3868
3900
|
return;
|
|
3869
|
-
if (a && a.forEach((
|
|
3870
|
-
|
|
3901
|
+
if (a && a.forEach((X) => m(X, null, { shouldDirty: !0, shouldValidate: $ })), E === null) {
|
|
3902
|
+
m(t, null, {
|
|
3871
3903
|
shouldDirty: !0,
|
|
3872
3904
|
shouldValidate: $
|
|
3873
3905
|
});
|
|
3874
3906
|
return;
|
|
3875
3907
|
}
|
|
3876
|
-
let
|
|
3877
|
-
i ?
|
|
3908
|
+
let A = null;
|
|
3909
|
+
i ? A = (E == null ? void 0 : E.id) !== null && (E == null ? void 0 : E.id) !== "" ? parseInt(E.id.toString(), 10) : null : A = E.id === null || E.id === void 0 || E.id === "" ? null : E.id, m(t, A, {
|
|
3878
3910
|
shouldDirty: !0,
|
|
3879
3911
|
shouldValidate: $
|
|
3880
3912
|
});
|
|
3881
|
-
}, [
|
|
3882
|
-
y(!1), W(
|
|
3883
|
-
}, [W]), R =
|
|
3884
|
-
|
|
3913
|
+
}, [m, t, i, a, v, $]), H = T((E) => {
|
|
3914
|
+
y(!1), W(E);
|
|
3915
|
+
}, [W]), R = T((E) => {
|
|
3916
|
+
C(E);
|
|
3885
3917
|
}, []);
|
|
3886
3918
|
D(() => {
|
|
3887
3919
|
F();
|
|
3888
3920
|
}, [F]), D(() => {
|
|
3889
3921
|
x.isSubmitted && P(!0);
|
|
3890
3922
|
}, [x]);
|
|
3891
|
-
const G =
|
|
3892
|
-
var
|
|
3893
|
-
return
|
|
3894
|
-
}, [
|
|
3895
|
-
id:
|
|
3896
|
-
name: G(
|
|
3897
|
-
})).filter((
|
|
3898
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid:
|
|
3899
|
-
/* @__PURE__ */ s.jsx(ln, { control:
|
|
3900
|
-
|
|
3923
|
+
const G = T((E) => {
|
|
3924
|
+
var A;
|
|
3925
|
+
return E === null ? "" : !E.name || E.name.length === 0 ? ((A = E.id) == null ? void 0 : A.toString()) ?? "" : p ? `${E.name} (${E.id})` : E.name;
|
|
3926
|
+
}, [p]), ae = Q(() => e.map((E) => ({
|
|
3927
|
+
id: E.id,
|
|
3928
|
+
name: G(E)
|
|
3929
|
+
})).filter((E) => Zr(E.name, I)).sort((E, A) => h ? 0 : (E.name ?? "").localeCompare(A.name ?? "")), [e, h, I, G]), ne = Y(null), K = f !== void 0;
|
|
3930
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: K, inputContainerClassName: w({ "luminus-dropdown-select-open": j }), className: g, children: [
|
|
3931
|
+
/* @__PURE__ */ s.jsx(ln, { control: b, name: t, render: () => /* @__PURE__ */ s.jsx(J.Select, { size: o, onMouseDown: (E) => {
|
|
3932
|
+
E.currentTarget.focus(), E.preventDefault();
|
|
3901
3933
|
}, onClick: () => {
|
|
3902
3934
|
y(!0);
|
|
3903
|
-
}, ref: ne, value:
|
|
3904
|
-
}, isInvalid:
|
|
3905
|
-
|
|
3906
|
-
ne.current && /* @__PURE__ */ s.jsx(bt, { show:
|
|
3935
|
+
}, ref: ne, value: v ?? "", onChange: () => {
|
|
3936
|
+
}, isInvalid: K, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (S == null ? void 0 : S.id) ?? "", children: G(S) }) }) }),
|
|
3937
|
+
f && /* @__PURE__ */ s.jsx(pe, { message: f.message }),
|
|
3938
|
+
ne.current && /* @__PURE__ */ s.jsx(bt, { show: j, onCancel: () => y(!1), items: ae, currentSelection: S ?? null, onSelectionChange: H, onSearchQueryChange: R, texts: _, disabled: u, inputRef: ne, autoHideSearch: !0, allItemsLength: e.length })
|
|
3907
3939
|
] }) });
|
|
3908
|
-
},
|
|
3940
|
+
}, kl = ({ InputContainer: n = fe, formField: e, label: t, placeholder: r, size: o, resetsFields: a, showClearIcon: i, clearValue: l, required: c, hidden: u, disabled: d, withoutLabel: h, step: p, stepperStep: g = 1, className: _ }) => {
|
|
3941
|
+
const { register: x, formState: m, setValue: k, watch: b } = le(), [f, N] = O(void 0), [j, y] = O(!1), $ = T(() => {
|
|
3942
|
+
const v = l ?? null;
|
|
3943
|
+
k(e, v !== null ? Number(v) : null, {
|
|
3944
|
+
shouldDirty: !0,
|
|
3945
|
+
shouldValidate: j
|
|
3946
|
+
});
|
|
3947
|
+
}, [l, k, e, j]), P = T(() => {
|
|
3948
|
+
const v = e.split(".");
|
|
3949
|
+
let S = m.errors;
|
|
3950
|
+
v.forEach((F) => {
|
|
3951
|
+
S !== void 0 && (S = S[F]);
|
|
3952
|
+
}), N(S);
|
|
3953
|
+
}, [m, e]);
|
|
3954
|
+
D(() => {
|
|
3955
|
+
P();
|
|
3956
|
+
}, [P]), D(() => {
|
|
3957
|
+
m.isSubmitted && y(!0);
|
|
3958
|
+
}, [m]);
|
|
3959
|
+
const I = f !== void 0, C = b(e);
|
|
3960
|
+
return /* @__PURE__ */ s.jsxs(n, { label: `${t}${c ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: I, className: _, children: [
|
|
3961
|
+
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3962
|
+
/* @__PURE__ */ s.jsx(J.Control, { type: "number", placeholder: r ?? t, size: o, ...x(e, {
|
|
3963
|
+
setValueAs: (v) => v == null || v === "" ? null : Number(v),
|
|
3964
|
+
onChange: () => {
|
|
3965
|
+
a && a.forEach((v) => k(v, null, { shouldDirty: !0, shouldValidate: j }));
|
|
3966
|
+
}
|
|
3967
|
+
}), isInvalid: I, hidden: u, disabled: d, className: "w-100 luminus-numeric-stepper", step: p }),
|
|
3968
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ s.jsx(U, { size: "sm", color: "secondary", onClick: (v) => {
|
|
3969
|
+
v.preventDefault(), v.stopPropagation(), k(e, ((C ? Number(C) : 0) - g).toString());
|
|
3970
|
+
}, children: "-" }) }),
|
|
3971
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ s.jsx(U, { size: "sm", color: "secondary", onClick: (v) => {
|
|
3972
|
+
v.preventDefault(), v.stopPropagation(), k(e, ((C ? Number(C) : 0) + g).toString());
|
|
3973
|
+
}, children: "+" }) })
|
|
3974
|
+
] }),
|
|
3975
|
+
i && b(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(U, { color: "secondary", size: "sm", onClick: $, children: /* @__PURE__ */ s.jsx(ce, {}) }) }),
|
|
3976
|
+
f && /* @__PURE__ */ s.jsx(pe, { message: f.message })
|
|
3977
|
+
] });
|
|
3978
|
+
}, Nl = ({ cell: { value: n } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: n ? /* @__PURE__ */ s.jsx(nn, { name: n, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), Fc = "_tab-panel_d8l8q_1", Wc = "_full-height-no-overflow_d8l8q_5", Rc = "_disabled_d8l8q_12", rt = {
|
|
3909
3979
|
"tab-panel": "_tab-panel_d8l8q_1",
|
|
3910
3980
|
tabPanel: Fc,
|
|
3911
3981
|
"full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
|
|
3912
3982
|
fullHeightNoOverflow: Wc,
|
|
3913
3983
|
disabled: Rc
|
|
3914
|
-
},
|
|
3984
|
+
}, Cl = ({ eventKey: n, activeTab: e, fullHeightNoOverflow: t, disabled: r, className: o, children: a }) => n !== e ? null : /* @__PURE__ */ s.jsx("div", { className: w("luminus-tab-panel", rt.tabPanel, { [rt.fullHeightNoOverflow]: t }, { disabled: r }, { [rt.disabled]: r }, o), children: a }), $l = ({ activeTab: n, onSelect: e, children: t }) => /* @__PURE__ */ s.jsx("div", { className: w("luminus-tabs d-flex gap-1 mb-2"), children: t.map((r) => {
|
|
3915
3985
|
const o = r.type, a = r.props;
|
|
3916
3986
|
if (!a)
|
|
3917
3987
|
return null;
|
|
@@ -3922,7 +3992,7 @@ const Ai = "_item_1dy8x_1", rr = {
|
|
|
3922
3992
|
}) }), Lc = "_tab_1hdhk_1", qc = "_disabled_1hdhk_8", Ut = {
|
|
3923
3993
|
tab: Lc,
|
|
3924
3994
|
disabled: qc
|
|
3925
|
-
},
|
|
3995
|
+
}, Il = ({ eventKey: n, className: e, onClick: t, disabled: r, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: w("luminus-tab text-primary rounded", Ut.tab, e, {
|
|
3926
3996
|
disabled: r
|
|
3927
3997
|
}, { [Ut.disabled]: r }), onClick: () => t && !r && t(n), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: o }) : o });
|
|
3928
3998
|
export {
|
|
@@ -3946,40 +4016,42 @@ export {
|
|
|
3946
4016
|
tl as FileUploadDropdownItem,
|
|
3947
4017
|
Sc as FloatingActionContainer,
|
|
3948
4018
|
Ra as FloatingFormSubmit,
|
|
3949
|
-
|
|
4019
|
+
ke as FloatingLabelInput,
|
|
3950
4020
|
Jc as HomeDashboard,
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
4021
|
+
gl as HookFormCheckInput,
|
|
4022
|
+
vl as HookFormDropdownPicker,
|
|
4023
|
+
bl as HookFormFileInput,
|
|
4024
|
+
_l as HookFormFloatingSubmit,
|
|
4025
|
+
kl as HookFormNumericStepperInput,
|
|
4026
|
+
xl as HookFormRadioInput,
|
|
4027
|
+
jl as HookFormSelectInput,
|
|
3957
4028
|
wl as HookFormTextAreaInput,
|
|
3958
|
-
|
|
4029
|
+
yl as HookFormTextInput,
|
|
3959
4030
|
ll as HtmlTooltip,
|
|
3960
|
-
|
|
3961
|
-
|
|
4031
|
+
U as IconButton,
|
|
4032
|
+
pe as InvalidFeedback,
|
|
3962
4033
|
Xr as Loading,
|
|
3963
4034
|
eo as LoadingBlock,
|
|
3964
4035
|
Qc as MonthPicker,
|
|
3965
|
-
|
|
4036
|
+
El as NoInputContainer,
|
|
4037
|
+
pl as NumericStepperInput,
|
|
3966
4038
|
ol as PhotoLibrary,
|
|
3967
|
-
|
|
4039
|
+
Cc as PhotoLightbox,
|
|
3968
4040
|
$t as PrimaryButton,
|
|
3969
|
-
|
|
4041
|
+
fe as RowLabelInput,
|
|
3970
4042
|
hl as SelectInput,
|
|
3971
4043
|
bt as SimplePicker,
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
4044
|
+
Pr as SimpleToggle,
|
|
4045
|
+
Pl as SimpleTooltip,
|
|
4046
|
+
Il as Tab,
|
|
4047
|
+
Cl as TabPanel,
|
|
4048
|
+
$l as Tabs,
|
|
3977
4049
|
fl as TextAreaInput,
|
|
3978
4050
|
dl as TextInput,
|
|
3979
4051
|
cl as Timeline,
|
|
3980
4052
|
z as Typography,
|
|
3981
|
-
|
|
3982
|
-
|
|
4053
|
+
Dl as UserAvatarToggle,
|
|
4054
|
+
Nl as UserAvatarValueFormat,
|
|
3983
4055
|
il as VersionInfo,
|
|
3984
4056
|
Yt as WidgetCard,
|
|
3985
4057
|
Xc as YearPicker
|