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