react-luminus-components 1.2.85 → 1.2.86
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 +18 -2
- package/dist/hooks/useGetApiData/useGetApiData.d.ts +1 -1
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +549 -551
- package/dist/searchUtils--egT-ac7.js +7 -0
- package/dist/searchUtils-CN6rluQW.cjs +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +22 -23
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { j as s, c as x, t as re, a as ie, g as sr, T as ar, b as ir, s as vt, E as cr, d as lr, e as ur, f as dr, h as hr, u as V, i as de, k as Ut, F as bt, l as mr, m as fr, n as pr, o as gr, p as wr, q as xr, r as yr, v as vr, w as it, x as zt, y as br, z as _r, A as we, B as jr, C as kr, P as Qe, D as ct, S as _t, G as Me, H as De, I as lt, J as Cr, K as Kt, L as Ne, M as Re, O as jt, N as Nr, Q as oe, R as $r, U as Ir, V as Qt, W as ut, X as dt, Y as z, Z as Sr, _ as Xt, $ as Tr, a0 as Jt, a1 as Er, a2 as Or, a3 as Mr, a4 as Dr, a5 as Zt, a6 as _e, a7 as Pr, a8 as Ar, a9 as Fr, aa as Wr, ab as Rr, ac as Xe, ad as He, ae as en, af as xe, ag as
|
|
2
|
-
import { ai as
|
|
1
|
+
import { j as s, c as x, t as re, a as ie, g as sr, T as ar, b as ir, s as vt, E as cr, d as lr, e as ur, f as dr, h as hr, u as V, i as de, k as Ut, F as bt, l as mr, m as fr, n as pr, o as gr, p as wr, q as xr, r as yr, v as vr, w as it, x as zt, y as br, z as _r, A as we, B as jr, C as kr, P as Qe, D as ct, S as _t, G as Me, H as De, I as lt, J as Cr, K as Kt, L as Ne, M as Re, O as jt, N as Nr, Q as oe, R as $r, U as Ir, V as Qt, W as ut, X as dt, Y as z, Z as Sr, _ as Xt, $ as Tr, a0 as Jt, a1 as Er, a2 as Or, a3 as Mr, a4 as Dr, a5 as Zt, a6 as _e, a7 as Pr, a8 as Ar, a9 as Fr, aa as Wr, ab as Rr, ac as Xe, ad as He, ae as en, af as xe, ag as qr } from "./NoInputContainer-DJGe4SUL.js";
|
|
2
|
+
import { ai as ml, ah as fl } from "./NoInputContainer-DJGe4SUL.js";
|
|
3
3
|
import * as A from "react";
|
|
4
|
-
import J, { useCallback as
|
|
4
|
+
import J, { useCallback as E, useMemo as Q, useEffect as D, useRef as Y, useState as P, useReducer as tn, useContext as q, Component as Lr, isValidElement as Yr, Suspense as Br, createElement as Hr } from "react";
|
|
5
5
|
import { c as le, d as Gr, C as Vr, a as nn, u as Ur, q as kt, F as zr, b as rn, E as Pe, P as Ct, M as Ae, L as Kr } from "./PrimaryButton-A-7Gzqni.js";
|
|
6
6
|
import { m as Qr, a as on } from "./latinize-3MO2uNV7.js";
|
|
7
7
|
import { useFormContext as he, Controller as sn } from "react-hook-form";
|
|
8
8
|
import { u as an, a as cn, b as ln } from "./useFormControlType-BAFqxupC.js";
|
|
9
|
-
import { S as
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import { S as gl } from "./SimpleTooltip-B6AR8fQS.js";
|
|
10
|
+
import { s as Xr } from "./searchUtils--egT-ac7.js";
|
|
11
|
+
const Pc = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
12
|
+
const r = E(async () => {
|
|
12
13
|
var l;
|
|
13
14
|
const o = await n();
|
|
14
15
|
if (!o)
|
|
@@ -17,7 +18,7 @@ const Mc = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
|
17
18
|
i.href = a, i.setAttribute("download", e), document.body.appendChild(i), i.click(), (l = i.parentNode) == null || l.removeChild(i);
|
|
18
19
|
}, [n, e]);
|
|
19
20
|
return /* @__PURE__ */ s.jsx("div", { role: "button", onClick: r, children: t });
|
|
20
|
-
},
|
|
21
|
+
}, Jr = ({ className: n, ...e }) => /* @__PURE__ */ s.jsxs("div", { className: x("luminus-loading", le.loading, le.loadingBlock, le.loadingBlock), ...e, children: [
|
|
21
22
|
/* @__PURE__ */ s.jsx("div", { className: x("spinner-grow", le.spinnerGrow, "text-primary"), role: "status" }),
|
|
22
23
|
/* @__PURE__ */ s.jsx("div", { className: x("spinner-grow", le.spinnerGrow, "text-primary", le.second), role: "status" }),
|
|
23
24
|
/* @__PURE__ */ s.jsx("div", { className: x("spinner-grow", le.spinnerGrow, "text-primary", le.third), role: "status" })
|
|
@@ -37,24 +38,24 @@ function un(n, e) {
|
|
|
37
38
|
r
|
|
38
39
|
), t);
|
|
39
40
|
}
|
|
40
|
-
let
|
|
41
|
+
let Zr = {};
|
|
41
42
|
function Ge() {
|
|
42
|
-
return
|
|
43
|
+
return Zr;
|
|
43
44
|
}
|
|
44
45
|
function Ie(n, e) {
|
|
45
46
|
var l, c, u, d;
|
|
46
47
|
const t = Ge(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.weekStartsOn) ?? t.weekStartsOn ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = re(n), a = o.getDay(), i = (a < r ? 7 : 0) + a - r;
|
|
47
48
|
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function qe(n) {
|
|
50
51
|
return Ie(n, { weekStartsOn: 1 });
|
|
51
52
|
}
|
|
52
53
|
function dn(n) {
|
|
53
54
|
const e = re(n), t = e.getFullYear(), r = ie(n, 0);
|
|
54
55
|
r.setFullYear(t + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
55
|
-
const o =
|
|
56
|
+
const o = qe(r), a = ie(n, 0);
|
|
56
57
|
a.setFullYear(t, 0, 4), a.setHours(0, 0, 0, 0);
|
|
57
|
-
const i =
|
|
58
|
+
const i = qe(a);
|
|
58
59
|
return e.getTime() >= o.getTime() ? t + 1 : e.getTime() >= i.getTime() ? t : t - 1;
|
|
59
60
|
}
|
|
60
61
|
function Nt(n) {
|
|
@@ -75,31 +76,31 @@ function $t(n) {
|
|
|
75
76
|
);
|
|
76
77
|
return t.setUTCFullYear(e.getFullYear()), +n - +t;
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
+
function eo(n, e) {
|
|
79
80
|
const t = Nt(n), r = Nt(e), o = +t - $t(t), a = +r - $t(r);
|
|
80
81
|
return Math.round((o - a) / Qr);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function to(n) {
|
|
83
84
|
const e = dn(n), t = ie(n, 0);
|
|
84
|
-
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0),
|
|
85
|
+
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0), qe(t);
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function no(n, e) {
|
|
87
88
|
return un(n, e * 12);
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function ro(n) {
|
|
90
91
|
return n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]";
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
-
if (!
|
|
93
|
+
function oo(n) {
|
|
94
|
+
if (!ro(n) && typeof n != "number")
|
|
94
95
|
return !1;
|
|
95
96
|
const e = re(n);
|
|
96
97
|
return !isNaN(Number(e));
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function so(n) {
|
|
99
100
|
const e = re(n), t = ie(n, 0);
|
|
100
101
|
return t.setFullYear(e.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
101
102
|
}
|
|
102
|
-
const
|
|
103
|
+
const ao = {
|
|
103
104
|
lessThanXSeconds: {
|
|
104
105
|
one: "less than a second",
|
|
105
106
|
other: "less than {{count}} seconds"
|
|
@@ -161,9 +162,9 @@ const so = {
|
|
|
161
162
|
one: "almost 1 year",
|
|
162
163
|
other: "almost {{count}} years"
|
|
163
164
|
}
|
|
164
|
-
},
|
|
165
|
+
}, io = (n, e, t) => {
|
|
165
166
|
let r;
|
|
166
|
-
const o =
|
|
167
|
+
const o = ao[n];
|
|
167
168
|
return typeof o == "string" ? r = o : e === 1 ? r = o.one : r = o.other.replace("{{count}}", e.toString()), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
168
169
|
};
|
|
169
170
|
function Je(n) {
|
|
@@ -172,42 +173,42 @@ function Je(n) {
|
|
|
172
173
|
return n.formats[t] || n.formats[n.defaultWidth];
|
|
173
174
|
};
|
|
174
175
|
}
|
|
175
|
-
const
|
|
176
|
+
const co = {
|
|
176
177
|
full: "EEEE, MMMM do, y",
|
|
177
178
|
long: "MMMM do, y",
|
|
178
179
|
medium: "MMM d, y",
|
|
179
180
|
short: "MM/dd/yyyy"
|
|
180
|
-
},
|
|
181
|
+
}, lo = {
|
|
181
182
|
full: "h:mm:ss a zzzz",
|
|
182
183
|
long: "h:mm:ss a z",
|
|
183
184
|
medium: "h:mm:ss a",
|
|
184
185
|
short: "h:mm a"
|
|
185
|
-
},
|
|
186
|
+
}, uo = {
|
|
186
187
|
full: "{{date}} 'at' {{time}}",
|
|
187
188
|
long: "{{date}} 'at' {{time}}",
|
|
188
189
|
medium: "{{date}}, {{time}}",
|
|
189
190
|
short: "{{date}}, {{time}}"
|
|
190
|
-
},
|
|
191
|
+
}, ho = {
|
|
191
192
|
date: Je({
|
|
192
|
-
formats:
|
|
193
|
+
formats: co,
|
|
193
194
|
defaultWidth: "full"
|
|
194
195
|
}),
|
|
195
196
|
time: Je({
|
|
196
|
-
formats:
|
|
197
|
+
formats: lo,
|
|
197
198
|
defaultWidth: "full"
|
|
198
199
|
}),
|
|
199
200
|
dateTime: Je({
|
|
200
|
-
formats:
|
|
201
|
+
formats: uo,
|
|
201
202
|
defaultWidth: "full"
|
|
202
203
|
})
|
|
203
|
-
},
|
|
204
|
+
}, mo = {
|
|
204
205
|
lastWeek: "'last' eeee 'at' p",
|
|
205
206
|
yesterday: "'yesterday at' p",
|
|
206
207
|
today: "'today at' p",
|
|
207
208
|
tomorrow: "'tomorrow at' p",
|
|
208
209
|
nextWeek: "eeee 'at' p",
|
|
209
210
|
other: "P"
|
|
210
|
-
},
|
|
211
|
+
}, fo = (n, e, t, r) => mo[n];
|
|
211
212
|
function je(n) {
|
|
212
213
|
return (e, t) => {
|
|
213
214
|
const r = t != null && t.context ? String(t.context) : "standalone";
|
|
@@ -223,15 +224,15 @@ function je(n) {
|
|
|
223
224
|
return o[a];
|
|
224
225
|
};
|
|
225
226
|
}
|
|
226
|
-
const
|
|
227
|
+
const po = {
|
|
227
228
|
narrow: ["B", "A"],
|
|
228
229
|
abbreviated: ["BC", "AD"],
|
|
229
230
|
wide: ["Before Christ", "Anno Domini"]
|
|
230
|
-
},
|
|
231
|
+
}, go = {
|
|
231
232
|
narrow: ["1", "2", "3", "4"],
|
|
232
233
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
233
234
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
234
|
-
},
|
|
235
|
+
}, wo = {
|
|
235
236
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
236
237
|
abbreviated: [
|
|
237
238
|
"Jan",
|
|
@@ -261,7 +262,7 @@ const fo = {
|
|
|
261
262
|
"November",
|
|
262
263
|
"December"
|
|
263
264
|
]
|
|
264
|
-
},
|
|
265
|
+
}, xo = {
|
|
265
266
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
266
267
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
267
268
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -274,7 +275,7 @@ const fo = {
|
|
|
274
275
|
"Friday",
|
|
275
276
|
"Saturday"
|
|
276
277
|
]
|
|
277
|
-
},
|
|
278
|
+
}, yo = {
|
|
278
279
|
narrow: {
|
|
279
280
|
am: "a",
|
|
280
281
|
pm: "p",
|
|
@@ -305,7 +306,7 @@ const fo = {
|
|
|
305
306
|
evening: "evening",
|
|
306
307
|
night: "night"
|
|
307
308
|
}
|
|
308
|
-
},
|
|
309
|
+
}, vo = {
|
|
309
310
|
narrow: {
|
|
310
311
|
am: "a",
|
|
311
312
|
pm: "p",
|
|
@@ -336,7 +337,7 @@ const fo = {
|
|
|
336
337
|
evening: "in the evening",
|
|
337
338
|
night: "at night"
|
|
338
339
|
}
|
|
339
|
-
},
|
|
340
|
+
}, bo = (n, e) => {
|
|
340
341
|
const t = Number(n), r = t % 100;
|
|
341
342
|
if (r > 20 || r < 10)
|
|
342
343
|
switch (r % 10) {
|
|
@@ -348,29 +349,29 @@ const fo = {
|
|
|
348
349
|
return t + "rd";
|
|
349
350
|
}
|
|
350
351
|
return t + "th";
|
|
351
|
-
},
|
|
352
|
-
ordinalNumber:
|
|
352
|
+
}, _o = {
|
|
353
|
+
ordinalNumber: bo,
|
|
353
354
|
era: je({
|
|
354
|
-
values:
|
|
355
|
+
values: po,
|
|
355
356
|
defaultWidth: "wide"
|
|
356
357
|
}),
|
|
357
358
|
quarter: je({
|
|
358
|
-
values:
|
|
359
|
+
values: go,
|
|
359
360
|
defaultWidth: "wide",
|
|
360
361
|
argumentCallback: (n) => n - 1
|
|
361
362
|
}),
|
|
362
363
|
month: je({
|
|
363
|
-
values:
|
|
364
|
+
values: wo,
|
|
364
365
|
defaultWidth: "wide"
|
|
365
366
|
}),
|
|
366
367
|
day: je({
|
|
367
|
-
values:
|
|
368
|
+
values: xo,
|
|
368
369
|
defaultWidth: "wide"
|
|
369
370
|
}),
|
|
370
371
|
dayPeriod: je({
|
|
371
|
-
values:
|
|
372
|
+
values: yo,
|
|
372
373
|
defaultWidth: "wide",
|
|
373
|
-
formattingValues:
|
|
374
|
+
formattingValues: vo,
|
|
374
375
|
defaultFormattingWidth: "wide"
|
|
375
376
|
})
|
|
376
377
|
};
|
|
@@ -379,9 +380,9 @@ function ke(n) {
|
|
|
379
380
|
const r = t.width, o = r && n.matchPatterns[r] || n.matchPatterns[n.defaultMatchWidth], a = e.match(o);
|
|
380
381
|
if (!a)
|
|
381
382
|
return null;
|
|
382
|
-
const i = a[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], c = Array.isArray(l) ?
|
|
383
|
+
const i = a[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], c = Array.isArray(l) ? ko(l, (h) => h.test(i)) : (
|
|
383
384
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
384
|
-
|
|
385
|
+
jo(l, (h) => h.test(i))
|
|
385
386
|
);
|
|
386
387
|
let u;
|
|
387
388
|
u = n.valueCallback ? n.valueCallback(c) : c, u = t.valueCallback ? (
|
|
@@ -392,17 +393,17 @@ function ke(n) {
|
|
|
392
393
|
return { value: u, rest: d };
|
|
393
394
|
};
|
|
394
395
|
}
|
|
395
|
-
function
|
|
396
|
+
function jo(n, e) {
|
|
396
397
|
for (const t in n)
|
|
397
398
|
if (Object.prototype.hasOwnProperty.call(n, t) && e(n[t]))
|
|
398
399
|
return t;
|
|
399
400
|
}
|
|
400
|
-
function
|
|
401
|
+
function ko(n, e) {
|
|
401
402
|
for (let t = 0; t < n.length; t++)
|
|
402
403
|
if (e(n[t]))
|
|
403
404
|
return t;
|
|
404
405
|
}
|
|
405
|
-
function
|
|
406
|
+
function Co(n) {
|
|
406
407
|
return (e, t = {}) => {
|
|
407
408
|
const r = e.match(n.matchPattern);
|
|
408
409
|
if (!r)
|
|
@@ -416,23 +417,23 @@ function ko(n) {
|
|
|
416
417
|
return { value: i, rest: l };
|
|
417
418
|
};
|
|
418
419
|
}
|
|
419
|
-
const
|
|
420
|
+
const No = /^(\d+)(th|st|nd|rd)?/i, $o = /\d+/i, Io = {
|
|
420
421
|
narrow: /^(b|a)/i,
|
|
421
422
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
422
423
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
423
|
-
}, Io = {
|
|
424
|
-
any: [/^b/i, /^(a|c)/i]
|
|
425
424
|
}, So = {
|
|
425
|
+
any: [/^b/i, /^(a|c)/i]
|
|
426
|
+
}, To = {
|
|
426
427
|
narrow: /^[1234]/i,
|
|
427
428
|
abbreviated: /^q[1234]/i,
|
|
428
429
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
429
|
-
}, To = {
|
|
430
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
431
430
|
}, Eo = {
|
|
431
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
432
|
+
}, Oo = {
|
|
432
433
|
narrow: /^[jfmasond]/i,
|
|
433
434
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
434
435
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
435
|
-
},
|
|
436
|
+
}, Mo = {
|
|
436
437
|
narrow: [
|
|
437
438
|
/^j/i,
|
|
438
439
|
/^f/i,
|
|
@@ -461,18 +462,18 @@ const Co = /^(\d+)(th|st|nd|rd)?/i, No = /\d+/i, $o = {
|
|
|
461
462
|
/^n/i,
|
|
462
463
|
/^d/i
|
|
463
464
|
]
|
|
464
|
-
},
|
|
465
|
+
}, Do = {
|
|
465
466
|
narrow: /^[smtwf]/i,
|
|
466
467
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
467
468
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
468
469
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
469
|
-
},
|
|
470
|
+
}, Po = {
|
|
470
471
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
471
472
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
472
|
-
},
|
|
473
|
+
}, Ao = {
|
|
473
474
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
474
475
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
475
|
-
},
|
|
476
|
+
}, Fo = {
|
|
476
477
|
any: {
|
|
477
478
|
am: /^a/i,
|
|
478
479
|
pm: /^p/i,
|
|
@@ -483,61 +484,61 @@ const Co = /^(\d+)(th|st|nd|rd)?/i, No = /\d+/i, $o = {
|
|
|
483
484
|
evening: /evening/i,
|
|
484
485
|
night: /night/i
|
|
485
486
|
}
|
|
486
|
-
},
|
|
487
|
-
ordinalNumber:
|
|
488
|
-
matchPattern:
|
|
489
|
-
parsePattern:
|
|
487
|
+
}, Wo = {
|
|
488
|
+
ordinalNumber: Co({
|
|
489
|
+
matchPattern: No,
|
|
490
|
+
parsePattern: $o,
|
|
490
491
|
valueCallback: (n) => parseInt(n, 10)
|
|
491
492
|
}),
|
|
492
493
|
era: ke({
|
|
493
|
-
matchPatterns:
|
|
494
|
+
matchPatterns: Io,
|
|
494
495
|
defaultMatchWidth: "wide",
|
|
495
|
-
parsePatterns:
|
|
496
|
+
parsePatterns: So,
|
|
496
497
|
defaultParseWidth: "any"
|
|
497
498
|
}),
|
|
498
499
|
quarter: ke({
|
|
499
|
-
matchPatterns:
|
|
500
|
+
matchPatterns: To,
|
|
500
501
|
defaultMatchWidth: "wide",
|
|
501
|
-
parsePatterns:
|
|
502
|
+
parsePatterns: Eo,
|
|
502
503
|
defaultParseWidth: "any",
|
|
503
504
|
valueCallback: (n) => n + 1
|
|
504
505
|
}),
|
|
505
506
|
month: ke({
|
|
506
|
-
matchPatterns:
|
|
507
|
+
matchPatterns: Oo,
|
|
507
508
|
defaultMatchWidth: "wide",
|
|
508
|
-
parsePatterns:
|
|
509
|
+
parsePatterns: Mo,
|
|
509
510
|
defaultParseWidth: "any"
|
|
510
511
|
}),
|
|
511
512
|
day: ke({
|
|
512
|
-
matchPatterns:
|
|
513
|
+
matchPatterns: Do,
|
|
513
514
|
defaultMatchWidth: "wide",
|
|
514
|
-
parsePatterns:
|
|
515
|
+
parsePatterns: Po,
|
|
515
516
|
defaultParseWidth: "any"
|
|
516
517
|
}),
|
|
517
518
|
dayPeriod: ke({
|
|
518
|
-
matchPatterns:
|
|
519
|
+
matchPatterns: Ao,
|
|
519
520
|
defaultMatchWidth: "any",
|
|
520
|
-
parsePatterns:
|
|
521
|
+
parsePatterns: Fo,
|
|
521
522
|
defaultParseWidth: "any"
|
|
522
523
|
})
|
|
523
|
-
},
|
|
524
|
+
}, Ro = {
|
|
524
525
|
code: "en-US",
|
|
525
|
-
formatDistance:
|
|
526
|
-
formatLong:
|
|
527
|
-
formatRelative:
|
|
528
|
-
localize:
|
|
529
|
-
match:
|
|
526
|
+
formatDistance: io,
|
|
527
|
+
formatLong: ho,
|
|
528
|
+
formatRelative: fo,
|
|
529
|
+
localize: _o,
|
|
530
|
+
match: Wo,
|
|
530
531
|
options: {
|
|
531
532
|
weekStartsOn: 0,
|
|
532
533
|
firstWeekContainsDate: 1
|
|
533
534
|
}
|
|
534
535
|
};
|
|
535
|
-
function
|
|
536
|
+
function qo(n) {
|
|
536
537
|
const e = re(n);
|
|
537
|
-
return
|
|
538
|
+
return eo(e, so(e)) + 1;
|
|
538
539
|
}
|
|
539
540
|
function Lo(n) {
|
|
540
|
-
const e = re(n), t = +
|
|
541
|
+
const e = re(n), t = +qe(e) - +to(e);
|
|
541
542
|
return Math.round(t / on) + 1;
|
|
542
543
|
}
|
|
543
544
|
function hn(n, e) {
|
|
@@ -549,16 +550,16 @@ function hn(n, e) {
|
|
|
549
550
|
const u = Ie(c, e);
|
|
550
551
|
return t.getTime() >= l.getTime() ? r + 1 : t.getTime() >= u.getTime() ? r : r - 1;
|
|
551
552
|
}
|
|
552
|
-
function
|
|
553
|
+
function Yo(n, e) {
|
|
553
554
|
var l, c, u, d;
|
|
554
555
|
const t = Ge(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = hn(n, e), a = ie(n, 0);
|
|
555
556
|
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), Ie(a, e);
|
|
556
557
|
}
|
|
557
|
-
function
|
|
558
|
-
const t = re(n), r = +Ie(t, e) - +
|
|
558
|
+
function Bo(n, e) {
|
|
559
|
+
const t = re(n), r = +Ie(t, e) - +Yo(t, e);
|
|
559
560
|
return Math.round(r / on) + 1;
|
|
560
561
|
}
|
|
561
|
-
function
|
|
562
|
+
function L(n, e) {
|
|
562
563
|
const t = n < 0 ? "-" : "", r = Math.abs(n).toString().padStart(e, "0");
|
|
563
564
|
return t + r;
|
|
564
565
|
}
|
|
@@ -566,16 +567,16 @@ const ue = {
|
|
|
566
567
|
// Year
|
|
567
568
|
y(n, e) {
|
|
568
569
|
const t = n.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
569
|
-
return
|
|
570
|
+
return L(e === "yy" ? r % 100 : r, e.length);
|
|
570
571
|
},
|
|
571
572
|
// Month
|
|
572
573
|
M(n, e) {
|
|
573
574
|
const t = n.getMonth();
|
|
574
|
-
return e === "M" ? String(t + 1) :
|
|
575
|
+
return e === "M" ? String(t + 1) : L(t + 1, 2);
|
|
575
576
|
},
|
|
576
577
|
// Day of the month
|
|
577
578
|
d(n, e) {
|
|
578
|
-
return
|
|
579
|
+
return L(n.getDate(), e.length);
|
|
579
580
|
},
|
|
580
581
|
// AM or PM
|
|
581
582
|
a(n, e) {
|
|
@@ -595,26 +596,26 @@ const ue = {
|
|
|
595
596
|
},
|
|
596
597
|
// Hour [1-12]
|
|
597
598
|
h(n, e) {
|
|
598
|
-
return
|
|
599
|
+
return L(n.getHours() % 12 || 12, e.length);
|
|
599
600
|
},
|
|
600
601
|
// Hour [0-23]
|
|
601
602
|
H(n, e) {
|
|
602
|
-
return
|
|
603
|
+
return L(n.getHours(), e.length);
|
|
603
604
|
},
|
|
604
605
|
// Minute
|
|
605
606
|
m(n, e) {
|
|
606
|
-
return
|
|
607
|
+
return L(n.getMinutes(), e.length);
|
|
607
608
|
},
|
|
608
609
|
// Second
|
|
609
610
|
s(n, e) {
|
|
610
|
-
return
|
|
611
|
+
return L(n.getSeconds(), e.length);
|
|
611
612
|
},
|
|
612
613
|
// Fraction of second
|
|
613
614
|
S(n, e) {
|
|
614
615
|
const t = e.length, r = n.getMilliseconds(), o = Math.trunc(
|
|
615
616
|
r * Math.pow(10, t - 3)
|
|
616
617
|
);
|
|
617
|
-
return
|
|
618
|
+
return L(o, e.length);
|
|
618
619
|
}
|
|
619
620
|
}, ve = {
|
|
620
621
|
am: "am",
|
|
@@ -654,14 +655,14 @@ const ue = {
|
|
|
654
655
|
const o = hn(n, r), a = o > 0 ? o : 1 - o;
|
|
655
656
|
if (e === "YY") {
|
|
656
657
|
const i = a % 100;
|
|
657
|
-
return
|
|
658
|
+
return L(i, 2);
|
|
658
659
|
}
|
|
659
|
-
return e === "Yo" ? t.ordinalNumber(a, { unit: "year" }) :
|
|
660
|
+
return e === "Yo" ? t.ordinalNumber(a, { unit: "year" }) : L(a, e.length);
|
|
660
661
|
},
|
|
661
662
|
// ISO week-numbering year
|
|
662
663
|
R: function(n, e) {
|
|
663
664
|
const t = dn(n);
|
|
664
|
-
return
|
|
665
|
+
return L(t, e.length);
|
|
665
666
|
},
|
|
666
667
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
667
668
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -674,7 +675,7 @@ const ue = {
|
|
|
674
675
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
675
676
|
u: function(n, e) {
|
|
676
677
|
const t = n.getFullYear();
|
|
677
|
-
return
|
|
678
|
+
return L(t, e.length);
|
|
678
679
|
},
|
|
679
680
|
// Quarter
|
|
680
681
|
Q: function(n, e, t) {
|
|
@@ -683,7 +684,7 @@ const ue = {
|
|
|
683
684
|
case "Q":
|
|
684
685
|
return String(r);
|
|
685
686
|
case "QQ":
|
|
686
|
-
return
|
|
687
|
+
return L(r, 2);
|
|
687
688
|
case "Qo":
|
|
688
689
|
return t.ordinalNumber(r, { unit: "quarter" });
|
|
689
690
|
case "QQQ":
|
|
@@ -711,7 +712,7 @@ const ue = {
|
|
|
711
712
|
case "q":
|
|
712
713
|
return String(r);
|
|
713
714
|
case "qq":
|
|
714
|
-
return
|
|
715
|
+
return L(r, 2);
|
|
715
716
|
case "qo":
|
|
716
717
|
return t.ordinalNumber(r, { unit: "quarter" });
|
|
717
718
|
case "qqq":
|
|
@@ -763,7 +764,7 @@ const ue = {
|
|
|
763
764
|
case "L":
|
|
764
765
|
return String(r + 1);
|
|
765
766
|
case "LL":
|
|
766
|
-
return
|
|
767
|
+
return L(r + 1, 2);
|
|
767
768
|
case "Lo":
|
|
768
769
|
return t.ordinalNumber(r + 1, { unit: "month" });
|
|
769
770
|
case "LLL":
|
|
@@ -783,13 +784,13 @@ const ue = {
|
|
|
783
784
|
},
|
|
784
785
|
// Local week of year
|
|
785
786
|
w: function(n, e, t, r) {
|
|
786
|
-
const o =
|
|
787
|
-
return e === "wo" ? t.ordinalNumber(o, { unit: "week" }) :
|
|
787
|
+
const o = Bo(n, r);
|
|
788
|
+
return e === "wo" ? t.ordinalNumber(o, { unit: "week" }) : L(o, e.length);
|
|
788
789
|
},
|
|
789
790
|
// ISO week of year
|
|
790
791
|
I: function(n, e, t) {
|
|
791
792
|
const r = Lo(n);
|
|
792
|
-
return e === "Io" ? t.ordinalNumber(r, { unit: "week" }) :
|
|
793
|
+
return e === "Io" ? t.ordinalNumber(r, { unit: "week" }) : L(r, e.length);
|
|
793
794
|
},
|
|
794
795
|
// Day of the month
|
|
795
796
|
d: function(n, e, t) {
|
|
@@ -797,8 +798,8 @@ const ue = {
|
|
|
797
798
|
},
|
|
798
799
|
// Day of year
|
|
799
800
|
D: function(n, e, t) {
|
|
800
|
-
const r =
|
|
801
|
-
return e === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
801
|
+
const r = qo(n);
|
|
802
|
+
return e === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) : L(r, e.length);
|
|
802
803
|
},
|
|
803
804
|
// Day of week
|
|
804
805
|
E: function(n, e, t) {
|
|
@@ -836,7 +837,7 @@ const ue = {
|
|
|
836
837
|
case "e":
|
|
837
838
|
return String(a);
|
|
838
839
|
case "ee":
|
|
839
|
-
return
|
|
840
|
+
return L(a, 2);
|
|
840
841
|
case "eo":
|
|
841
842
|
return t.ordinalNumber(a, { unit: "day" });
|
|
842
843
|
case "eee":
|
|
@@ -869,7 +870,7 @@ const ue = {
|
|
|
869
870
|
case "c":
|
|
870
871
|
return String(a);
|
|
871
872
|
case "cc":
|
|
872
|
-
return
|
|
873
|
+
return L(a, e.length);
|
|
873
874
|
case "co":
|
|
874
875
|
return t.ordinalNumber(a, { unit: "day" });
|
|
875
876
|
case "ccc":
|
|
@@ -902,7 +903,7 @@ const ue = {
|
|
|
902
903
|
case "i":
|
|
903
904
|
return String(o);
|
|
904
905
|
case "ii":
|
|
905
|
-
return
|
|
906
|
+
return L(o, e.length);
|
|
906
907
|
case "io":
|
|
907
908
|
return t.ordinalNumber(o, { unit: "day" });
|
|
908
909
|
case "iii":
|
|
@@ -1025,12 +1026,12 @@ const ue = {
|
|
|
1025
1026
|
// Hour [0-11]
|
|
1026
1027
|
K: function(n, e, t) {
|
|
1027
1028
|
const r = n.getHours() % 12;
|
|
1028
|
-
return e === "Ko" ? t.ordinalNumber(r, { unit: "hour" }) :
|
|
1029
|
+
return e === "Ko" ? t.ordinalNumber(r, { unit: "hour" }) : L(r, e.length);
|
|
1029
1030
|
},
|
|
1030
1031
|
// Hour [1-24]
|
|
1031
1032
|
k: function(n, e, t) {
|
|
1032
1033
|
let r = n.getHours();
|
|
1033
|
-
return r === 0 && (r = 24), e === "ko" ? t.ordinalNumber(r, { unit: "hour" }) :
|
|
1034
|
+
return r === 0 && (r = 24), e === "ko" ? t.ordinalNumber(r, { unit: "hour" }) : L(r, e.length);
|
|
1034
1035
|
},
|
|
1035
1036
|
// Minute
|
|
1036
1037
|
m: function(n, e, t) {
|
|
@@ -1105,23 +1106,23 @@ const ue = {
|
|
|
1105
1106
|
// Seconds timestamp
|
|
1106
1107
|
t: function(n, e, t) {
|
|
1107
1108
|
const r = Math.trunc(n.getTime() / 1e3);
|
|
1108
|
-
return
|
|
1109
|
+
return L(r, e.length);
|
|
1109
1110
|
},
|
|
1110
1111
|
// Milliseconds timestamp
|
|
1111
1112
|
T: function(n, e, t) {
|
|
1112
1113
|
const r = n.getTime();
|
|
1113
|
-
return
|
|
1114
|
+
return L(r, e.length);
|
|
1114
1115
|
}
|
|
1115
1116
|
};
|
|
1116
1117
|
function St(n, e = "") {
|
|
1117
1118
|
const t = n > 0 ? "-" : "+", r = Math.abs(n), o = Math.trunc(r / 60), a = r % 60;
|
|
1118
|
-
return a === 0 ? t + String(o) : t + String(o) + e +
|
|
1119
|
+
return a === 0 ? t + String(o) : t + String(o) + e + L(a, 2);
|
|
1119
1120
|
}
|
|
1120
1121
|
function Tt(n, e) {
|
|
1121
|
-
return n % 60 === 0 ? (n > 0 ? "-" : "+") +
|
|
1122
|
+
return n % 60 === 0 ? (n > 0 ? "-" : "+") + L(Math.abs(n) / 60, 2) : ge(n, e);
|
|
1122
1123
|
}
|
|
1123
1124
|
function ge(n, e = "") {
|
|
1124
|
-
const t = n > 0 ? "-" : "+", r = Math.abs(n), o =
|
|
1125
|
+
const t = n > 0 ? "-" : "+", r = Math.abs(n), o = L(Math.trunc(r / 60), 2), a = L(r % 60, 2);
|
|
1125
1126
|
return t + o + e + a;
|
|
1126
1127
|
}
|
|
1127
1128
|
const Et = (n, e) => {
|
|
@@ -1148,7 +1149,7 @@ const Et = (n, e) => {
|
|
|
1148
1149
|
default:
|
|
1149
1150
|
return e.time({ width: "full" });
|
|
1150
1151
|
}
|
|
1151
|
-
},
|
|
1152
|
+
}, Ho = (n, e) => {
|
|
1152
1153
|
const t = n.match(/(P+)(p+)?/) || [], r = t[1], o = t[2];
|
|
1153
1154
|
if (!o)
|
|
1154
1155
|
return Et(n, e);
|
|
@@ -1169,47 +1170,47 @@ const Et = (n, e) => {
|
|
|
1169
1170
|
break;
|
|
1170
1171
|
}
|
|
1171
1172
|
return a.replace("{{date}}", Et(r, e)).replace("{{time}}", mn(o, e));
|
|
1172
|
-
},
|
|
1173
|
+
}, Go = {
|
|
1173
1174
|
p: mn,
|
|
1174
|
-
P:
|
|
1175
|
-
},
|
|
1176
|
-
function zo(n) {
|
|
1177
|
-
return Go.test(n);
|
|
1178
|
-
}
|
|
1175
|
+
P: Ho
|
|
1176
|
+
}, Vo = /^D+$/, Uo = /^Y+$/, zo = ["D", "DD", "YY", "YYYY"];
|
|
1179
1177
|
function Ko(n) {
|
|
1180
1178
|
return Vo.test(n);
|
|
1181
1179
|
}
|
|
1182
|
-
function Qo(n
|
|
1183
|
-
|
|
1184
|
-
if (console.warn(r), Uo.includes(n))
|
|
1185
|
-
throw new RangeError(r);
|
|
1180
|
+
function Qo(n) {
|
|
1181
|
+
return Uo.test(n);
|
|
1186
1182
|
}
|
|
1187
1183
|
function Xo(n, e, t) {
|
|
1184
|
+
const r = Jo(n, e, t);
|
|
1185
|
+
if (console.warn(r), zo.includes(n))
|
|
1186
|
+
throw new RangeError(r);
|
|
1187
|
+
}
|
|
1188
|
+
function Jo(n, e, t) {
|
|
1188
1189
|
const r = n[0] === "Y" ? "years" : "days of the month";
|
|
1189
1190
|
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1190
1191
|
}
|
|
1191
|
-
const
|
|
1192
|
+
const Zo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, es = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ts = /^'([^]*?)'?$/, ns = /''/g, rs = /[a-zA-Z]/;
|
|
1192
1193
|
function fn(n, e, t) {
|
|
1193
1194
|
var d, h, m, g, b, w, f, j;
|
|
1194
|
-
const r = Ge(), o = (t == null ? void 0 : t.locale) ?? r.locale ??
|
|
1195
|
-
if (!
|
|
1195
|
+
const r = Ge(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? Ro, a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((w = (b = t == null ? void 0 : t.locale) == null ? void 0 : b.options) == null ? void 0 : w.weekStartsOn) ?? r.weekStartsOn ?? ((j = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : j.weekStartsOn) ?? 0, l = re(n);
|
|
1196
|
+
if (!oo(l))
|
|
1196
1197
|
throw new RangeError("Invalid time value");
|
|
1197
|
-
let c = e.match(
|
|
1198
|
+
let c = e.match(es).map((v) => {
|
|
1198
1199
|
const p = v[0];
|
|
1199
1200
|
if (p === "p" || p === "P") {
|
|
1200
|
-
const C =
|
|
1201
|
+
const C = Go[p];
|
|
1201
1202
|
return C(v, o.formatLong);
|
|
1202
1203
|
}
|
|
1203
1204
|
return v;
|
|
1204
|
-
}).join("").match(
|
|
1205
|
+
}).join("").match(Zo).map((v) => {
|
|
1205
1206
|
if (v === "''")
|
|
1206
1207
|
return { isToken: !1, value: "'" };
|
|
1207
1208
|
const p = v[0];
|
|
1208
1209
|
if (p === "'")
|
|
1209
|
-
return { isToken: !1, value:
|
|
1210
|
+
return { isToken: !1, value: os(v) };
|
|
1210
1211
|
if (It[p])
|
|
1211
1212
|
return { isToken: !0, value: v };
|
|
1212
|
-
if (p.match(
|
|
1213
|
+
if (p.match(rs))
|
|
1213
1214
|
throw new RangeError(
|
|
1214
1215
|
"Format string contains an unescaped latin alphabet character `" + p + "`"
|
|
1215
1216
|
);
|
|
@@ -1225,16 +1226,16 @@ function fn(n, e, t) {
|
|
|
1225
1226
|
if (!v.isToken)
|
|
1226
1227
|
return v.value;
|
|
1227
1228
|
const p = v.value;
|
|
1228
|
-
(!(t != null && t.useAdditionalWeekYearTokens) &&
|
|
1229
|
+
(!(t != null && t.useAdditionalWeekYearTokens) && Qo(p) || !(t != null && t.useAdditionalDayOfYearTokens) && Ko(p)) && Xo(p, e, String(n));
|
|
1229
1230
|
const C = It[p[0]];
|
|
1230
1231
|
return C(l, p, o.localize, u);
|
|
1231
1232
|
}).join("");
|
|
1232
1233
|
}
|
|
1233
|
-
function
|
|
1234
|
-
const e = n.match(
|
|
1235
|
-
return e ? e[1].replace(
|
|
1234
|
+
function os(n) {
|
|
1235
|
+
const e = n.match(ts);
|
|
1236
|
+
return e ? e[1].replace(ns, "'") : n;
|
|
1236
1237
|
}
|
|
1237
|
-
var
|
|
1238
|
+
var ss = function(n, e, t, r, o, a, i, l) {
|
|
1238
1239
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
1239
1240
|
throw new Error("invariant requires an error message argument");
|
|
1240
1241
|
if (!n) {
|
|
@@ -1253,8 +1254,8 @@ var os = function(n, e, t, r, o, a, i, l) {
|
|
|
1253
1254
|
}
|
|
1254
1255
|
throw c.framesToPop = 1, c;
|
|
1255
1256
|
}
|
|
1256
|
-
},
|
|
1257
|
-
const Ot = /* @__PURE__ */ sr(
|
|
1257
|
+
}, as = ss;
|
|
1258
|
+
const Ot = /* @__PURE__ */ sr(as);
|
|
1258
1259
|
function Ce(...n) {
|
|
1259
1260
|
return n.filter((e) => e != null).reduce((e, t) => {
|
|
1260
1261
|
if (typeof t != "function")
|
|
@@ -1264,17 +1265,17 @@ function Ce(...n) {
|
|
|
1264
1265
|
};
|
|
1265
1266
|
}, null);
|
|
1266
1267
|
}
|
|
1267
|
-
const
|
|
1268
|
+
const is = {
|
|
1268
1269
|
height: ["marginTop", "marginBottom"],
|
|
1269
1270
|
width: ["marginLeft", "marginRight"]
|
|
1270
1271
|
};
|
|
1271
|
-
function
|
|
1272
|
-
const t = `offset${n[0].toUpperCase()}${n.slice(1)}`, r = e[t], o =
|
|
1272
|
+
function cs(n, e) {
|
|
1273
|
+
const t = `offset${n[0].toUpperCase()}${n.slice(1)}`, r = e[t], o = is[n];
|
|
1273
1274
|
return r + // @ts-ignore
|
|
1274
1275
|
parseInt(vt(e, o[0]), 10) + // @ts-ignore
|
|
1275
1276
|
parseInt(vt(e, o[1]), 10);
|
|
1276
1277
|
}
|
|
1277
|
-
const
|
|
1278
|
+
const ls = {
|
|
1278
1279
|
[cr]: "collapse",
|
|
1279
1280
|
[lr]: "collapsing",
|
|
1280
1281
|
[ur]: "collapsing",
|
|
@@ -1293,7 +1294,7 @@ const cs = {
|
|
|
1293
1294
|
mountOnEnter: d = !1,
|
|
1294
1295
|
unmountOnExit: h = !1,
|
|
1295
1296
|
appear: m = !1,
|
|
1296
|
-
getDimensionValue: g =
|
|
1297
|
+
getDimensionValue: g = cs,
|
|
1297
1298
|
...b
|
|
1298
1299
|
}, w) => {
|
|
1299
1300
|
const f = typeof l == "function" ? l() : l, j = Q(() => Ce((y) => {
|
|
@@ -1326,7 +1327,7 @@ const cs = {
|
|
|
1326
1327
|
appear: m,
|
|
1327
1328
|
children: (y, $) => /* @__PURE__ */ J.cloneElement(i, {
|
|
1328
1329
|
...$,
|
|
1329
|
-
className: x(a, i.props.className,
|
|
1330
|
+
className: x(a, i.props.className, ls[y], f === "width" && "collapse-horizontal")
|
|
1330
1331
|
})
|
|
1331
1332
|
});
|
|
1332
1333
|
}), gn = Gr("h4");
|
|
@@ -1342,15 +1343,15 @@ const wn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1342
1343
|
...r
|
|
1343
1344
|
})));
|
|
1344
1345
|
wn.displayName = "AlertHeading";
|
|
1345
|
-
function
|
|
1346
|
+
function us(n, e, t, r = !1) {
|
|
1346
1347
|
const o = de(t);
|
|
1347
1348
|
D(() => {
|
|
1348
1349
|
const a = typeof n == "function" ? n() : n;
|
|
1349
1350
|
return a.addEventListener(e, o, r), () => a.removeEventListener(e, o, r);
|
|
1350
1351
|
}, [n]);
|
|
1351
1352
|
}
|
|
1352
|
-
const
|
|
1353
|
-
function
|
|
1353
|
+
const ds = ["as", "disabled"];
|
|
1354
|
+
function hs(n, e) {
|
|
1354
1355
|
if (n == null)
|
|
1355
1356
|
return {};
|
|
1356
1357
|
var t = {}, r = Object.keys(n), o, a;
|
|
@@ -1358,7 +1359,7 @@ function ds(n, e) {
|
|
|
1358
1359
|
o = r[a], !(e.indexOf(o) >= 0) && (t[o] = n[o]);
|
|
1359
1360
|
return t;
|
|
1360
1361
|
}
|
|
1361
|
-
function
|
|
1362
|
+
function ms(n) {
|
|
1362
1363
|
return !n || n.trim() === "#";
|
|
1363
1364
|
}
|
|
1364
1365
|
function ht({
|
|
@@ -1382,7 +1383,7 @@ function ht({
|
|
|
1382
1383
|
disabled: e
|
|
1383
1384
|
}, u];
|
|
1384
1385
|
const d = (m) => {
|
|
1385
|
-
if ((e || n === "a" &&
|
|
1386
|
+
if ((e || n === "a" && ms(t)) && m.preventDefault(), e) {
|
|
1386
1387
|
m.stopPropagation();
|
|
1387
1388
|
return;
|
|
1388
1389
|
}
|
|
@@ -1408,7 +1409,7 @@ const xn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1408
1409
|
let {
|
|
1409
1410
|
as: t,
|
|
1410
1411
|
disabled: r
|
|
1411
|
-
} = n, o =
|
|
1412
|
+
} = n, o = hs(n, ds);
|
|
1412
1413
|
const [a, {
|
|
1413
1414
|
tagName: i
|
|
1414
1415
|
}] = ht(Object.assign({
|
|
@@ -1420,8 +1421,8 @@ const xn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1420
1421
|
}));
|
|
1421
1422
|
});
|
|
1422
1423
|
xn.displayName = "Button";
|
|
1423
|
-
const
|
|
1424
|
-
function
|
|
1424
|
+
const fs = ["onKeyDown"];
|
|
1425
|
+
function ps(n, e) {
|
|
1425
1426
|
if (n == null)
|
|
1426
1427
|
return {};
|
|
1427
1428
|
var t = {}, r = Object.keys(n), o, a;
|
|
@@ -1429,19 +1430,19 @@ function fs(n, e) {
|
|
|
1429
1430
|
o = r[a], !(e.indexOf(o) >= 0) && (t[o] = n[o]);
|
|
1430
1431
|
return t;
|
|
1431
1432
|
}
|
|
1432
|
-
function
|
|
1433
|
+
function gs(n) {
|
|
1433
1434
|
return !n || n.trim() === "#";
|
|
1434
1435
|
}
|
|
1435
1436
|
const mt = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
1436
1437
|
let {
|
|
1437
1438
|
onKeyDown: t
|
|
1438
|
-
} = n, r =
|
|
1439
|
+
} = n, r = ps(n, fs);
|
|
1439
1440
|
const [o] = ht(Object.assign({
|
|
1440
1441
|
tagName: "a"
|
|
1441
1442
|
}, r)), a = de((i) => {
|
|
1442
1443
|
o.onKeyDown(i), t == null || t(i);
|
|
1443
1444
|
});
|
|
1444
|
-
return
|
|
1445
|
+
return gs(r.href) || r.role === "button" ? /* @__PURE__ */ s.jsx("a", Object.assign({
|
|
1445
1446
|
ref: e
|
|
1446
1447
|
}, r, o, {
|
|
1447
1448
|
onKeyDown: a
|
|
@@ -1500,7 +1501,7 @@ const vn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1500
1501
|
}) : r ? f : null;
|
|
1501
1502
|
});
|
|
1502
1503
|
vn.displayName = "Alert";
|
|
1503
|
-
const
|
|
1504
|
+
const ws = Object.assign(vn, {
|
|
1504
1505
|
Link: yn,
|
|
1505
1506
|
Heading: wn
|
|
1506
1507
|
}), bn = /* @__PURE__ */ A.forwardRef(({
|
|
@@ -1529,10 +1530,10 @@ const gs = Object.assign(vn, {
|
|
|
1529
1530
|
});
|
|
1530
1531
|
});
|
|
1531
1532
|
bn.displayName = "Button";
|
|
1532
|
-
function
|
|
1533
|
+
function xs(n, e) {
|
|
1533
1534
|
return A.Children.toArray(n).some((t) => /* @__PURE__ */ A.isValidElement(t) && t.type === e);
|
|
1534
1535
|
}
|
|
1535
|
-
function
|
|
1536
|
+
function ys({
|
|
1536
1537
|
as: n,
|
|
1537
1538
|
bsPrefix: e,
|
|
1538
1539
|
className: t,
|
|
@@ -1570,7 +1571,7 @@ const _n = /* @__PURE__ */ A.forwardRef(
|
|
|
1570
1571
|
as: o = "div",
|
|
1571
1572
|
bsPrefix: a,
|
|
1572
1573
|
spans: i
|
|
1573
|
-
}] =
|
|
1574
|
+
}] = ys(n);
|
|
1574
1575
|
return /* @__PURE__ */ s.jsx(o, {
|
|
1575
1576
|
...r,
|
|
1576
1577
|
ref: e,
|
|
@@ -1579,20 +1580,20 @@ const _n = /* @__PURE__ */ A.forwardRef(
|
|
|
1579
1580
|
}
|
|
1580
1581
|
);
|
|
1581
1582
|
_n.displayName = "Col";
|
|
1582
|
-
function
|
|
1583
|
+
function vs(n, e, t) {
|
|
1583
1584
|
const r = Y(n !== void 0), [o, a] = P(e), i = n !== void 0, l = r.current;
|
|
1584
|
-
return r.current = i, !i && l && o !== e && a(e), [i ? n : o,
|
|
1585
|
+
return r.current = i, !i && l && o !== e && a(e), [i ? n : o, E((...c) => {
|
|
1585
1586
|
const [u, ...d] = c;
|
|
1586
1587
|
let h = t == null ? void 0 : t(u, ...d);
|
|
1587
1588
|
return a(u), h;
|
|
1588
1589
|
}, [t])];
|
|
1589
1590
|
}
|
|
1590
|
-
function
|
|
1591
|
+
function bs() {
|
|
1591
1592
|
const [, n] = tn((e) => !e, !1);
|
|
1592
1593
|
return n;
|
|
1593
1594
|
}
|
|
1594
|
-
const Ve = /* @__PURE__ */ A.createContext(null),
|
|
1595
|
-
function
|
|
1595
|
+
const Ve = /* @__PURE__ */ A.createContext(null), _s = ["children", "usePopper"];
|
|
1596
|
+
function js(n, e) {
|
|
1596
1597
|
if (n == null)
|
|
1597
1598
|
return {};
|
|
1598
1599
|
var t = {}, r = Object.keys(n), o, a;
|
|
@@ -1600,10 +1601,10 @@ function _s(n, e) {
|
|
|
1600
1601
|
o = r[a], !(e.indexOf(o) >= 0) && (t[o] = n[o]);
|
|
1601
1602
|
return t;
|
|
1602
1603
|
}
|
|
1603
|
-
const
|
|
1604
|
+
const ks = () => {
|
|
1604
1605
|
};
|
|
1605
1606
|
function jn(n = {}) {
|
|
1606
|
-
const e =
|
|
1607
|
+
const e = q(Ve), [t, r] = pr(), o = Y(!1), {
|
|
1607
1608
|
flip: a,
|
|
1608
1609
|
offset: i,
|
|
1609
1610
|
rootCloseEvent: l,
|
|
@@ -1631,7 +1632,7 @@ function jn(n = {}) {
|
|
|
1631
1632
|
arrowElement: t,
|
|
1632
1633
|
popperConfig: d
|
|
1633
1634
|
})), C = Object.assign({
|
|
1634
|
-
ref: f ||
|
|
1635
|
+
ref: f || ks,
|
|
1635
1636
|
"aria-labelledby": v == null ? void 0 : v.id
|
|
1636
1637
|
}, p.attributes.popper, {
|
|
1637
1638
|
style: p.styles.popper
|
|
@@ -1656,7 +1657,7 @@ function kn(n) {
|
|
|
1656
1657
|
let {
|
|
1657
1658
|
children: e,
|
|
1658
1659
|
usePopper: t = !0
|
|
1659
|
-
} = n, r =
|
|
1660
|
+
} = n, r = js(n, _s);
|
|
1660
1661
|
const [o, a] = jn(Object.assign({}, r, {
|
|
1661
1662
|
usePopper: t
|
|
1662
1663
|
}));
|
|
@@ -1665,13 +1666,13 @@ function kn(n) {
|
|
|
1665
1666
|
});
|
|
1666
1667
|
}
|
|
1667
1668
|
kn.displayName = "DropdownMenu";
|
|
1668
|
-
const
|
|
1669
|
+
const Le = {
|
|
1669
1670
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1670
1671
|
current: 0
|
|
1671
|
-
}, Cn = /* @__PURE__ */ J.createContext(
|
|
1672
|
-
let
|
|
1673
|
-
function
|
|
1674
|
-
let e =
|
|
1672
|
+
}, Cn = /* @__PURE__ */ J.createContext(Le), Cs = /* @__PURE__ */ J.createContext(!1);
|
|
1673
|
+
let Ns = !!(typeof window < "u" && window.document && window.document.createElement), Ze = /* @__PURE__ */ new WeakMap();
|
|
1674
|
+
function $s(n = !1) {
|
|
1675
|
+
let e = q(Cn), t = Y(null);
|
|
1675
1676
|
if (t.current === null && !n) {
|
|
1676
1677
|
var r, o;
|
|
1677
1678
|
let a = (o = J.__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;
|
|
@@ -1686,29 +1687,29 @@ function Ns(n = !1) {
|
|
|
1686
1687
|
}
|
|
1687
1688
|
return t.current;
|
|
1688
1689
|
}
|
|
1689
|
-
function
|
|
1690
|
-
let e =
|
|
1691
|
-
e ===
|
|
1692
|
-
let t =
|
|
1690
|
+
function Is(n) {
|
|
1691
|
+
let e = q(Cn);
|
|
1692
|
+
e === Le && !Ns && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
1693
|
+
let t = $s(!!n), r = e === Le && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
1693
1694
|
return n || `${r}-${t}`;
|
|
1694
1695
|
}
|
|
1695
|
-
function
|
|
1696
|
-
let e = J.useId(), [t] = P(
|
|
1696
|
+
function Ss(n) {
|
|
1697
|
+
let e = J.useId(), [t] = P(Ds()), r = t || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Le.prefix}`;
|
|
1697
1698
|
return n || `${r}-${e}`;
|
|
1698
1699
|
}
|
|
1699
|
-
const
|
|
1700
|
-
function
|
|
1700
|
+
const Ts = typeof J.useId == "function" ? Ss : Is;
|
|
1701
|
+
function Es() {
|
|
1701
1702
|
return !1;
|
|
1702
1703
|
}
|
|
1703
|
-
function
|
|
1704
|
+
function Os() {
|
|
1704
1705
|
return !0;
|
|
1705
1706
|
}
|
|
1706
|
-
function
|
|
1707
|
+
function Ms(n) {
|
|
1707
1708
|
return () => {
|
|
1708
1709
|
};
|
|
1709
1710
|
}
|
|
1710
|
-
function
|
|
1711
|
-
return typeof J.useSyncExternalStore == "function" ? J.useSyncExternalStore(
|
|
1711
|
+
function Ds() {
|
|
1712
|
+
return typeof J.useSyncExternalStore == "function" ? J.useSyncExternalStore(Ms, Es, Os) : q(Cs);
|
|
1712
1713
|
}
|
|
1713
1714
|
const Nn = (n) => {
|
|
1714
1715
|
var e;
|
|
@@ -1716,12 +1717,12 @@ const Nn = (n) => {
|
|
|
1716
1717
|
}, Mt = () => {
|
|
1717
1718
|
};
|
|
1718
1719
|
function $n() {
|
|
1719
|
-
const n =
|
|
1720
|
+
const n = Ts(), {
|
|
1720
1721
|
show: e = !1,
|
|
1721
1722
|
toggle: t = Mt,
|
|
1722
1723
|
setToggle: r,
|
|
1723
1724
|
menuElement: o
|
|
1724
|
-
} =
|
|
1725
|
+
} = q(Ve) || {}, a = E((l) => {
|
|
1725
1726
|
t(!e, l);
|
|
1726
1727
|
}, [e, t]), i = {
|
|
1727
1728
|
id: n,
|
|
@@ -1745,8 +1746,8 @@ function In({
|
|
|
1745
1746
|
In.displayName = "DropdownToggle";
|
|
1746
1747
|
const rt = /* @__PURE__ */ A.createContext(null), Dt = (n, e = null) => n != null ? String(n) : e || null, Sn = /* @__PURE__ */ A.createContext(null);
|
|
1747
1748
|
Sn.displayName = "NavContext";
|
|
1748
|
-
const
|
|
1749
|
-
function
|
|
1749
|
+
const Ps = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
1750
|
+
function As(n, e) {
|
|
1750
1751
|
if (n == null)
|
|
1751
1752
|
return {};
|
|
1752
1753
|
var t = {}, r = Object.keys(n), o, a;
|
|
@@ -1761,7 +1762,7 @@ function Tn({
|
|
|
1761
1762
|
disabled: r,
|
|
1762
1763
|
onClick: o
|
|
1763
1764
|
}) {
|
|
1764
|
-
const a =
|
|
1765
|
+
const a = q(rt), i = q(Sn), {
|
|
1765
1766
|
activeKey: l
|
|
1766
1767
|
} = i || {}, c = Dt(n, e), u = t == null && n != null ? Dt(l) === c : t;
|
|
1767
1768
|
return [{
|
|
@@ -1782,7 +1783,7 @@ const En = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1782
1783
|
onClick: o,
|
|
1783
1784
|
active: a,
|
|
1784
1785
|
as: i = xn
|
|
1785
|
-
} = n, l =
|
|
1786
|
+
} = n, l = As(n, Ps);
|
|
1786
1787
|
const [c] = Tn({
|
|
1787
1788
|
key: t,
|
|
1788
1789
|
href: l.href,
|
|
@@ -1796,7 +1797,7 @@ const En = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1796
1797
|
});
|
|
1797
1798
|
En.displayName = "DropdownItem";
|
|
1798
1799
|
function Pt() {
|
|
1799
|
-
const n =
|
|
1800
|
+
const n = bs(), e = Y(null), t = E((r) => {
|
|
1800
1801
|
e.current = r, n();
|
|
1801
1802
|
}, [n]);
|
|
1802
1803
|
return [e, t];
|
|
@@ -1811,7 +1812,7 @@ function Te({
|
|
|
1811
1812
|
placement: i = "bottom-start",
|
|
1812
1813
|
children: l
|
|
1813
1814
|
}) {
|
|
1814
|
-
const c = yr(), [u, d] =
|
|
1815
|
+
const c = yr(), [u, d] = vs(e, n, r), [h, m] = Pt(), g = h.current, [b, w] = Pt(), f = b.current, j = Ur(u), v = Y(null), p = Y(!1), C = q(rt), k = E((_, T, F = T == null ? void 0 : T.type) => {
|
|
1815
1816
|
d(_, {
|
|
1816
1817
|
originalEvent: T,
|
|
1817
1818
|
source: F
|
|
@@ -1850,7 +1851,7 @@ function Te({
|
|
|
1850
1851
|
let W = F.indexOf(_) + T;
|
|
1851
1852
|
return W = Math.max(0, Math.min(W, F.length)), F[W];
|
|
1852
1853
|
};
|
|
1853
|
-
return
|
|
1854
|
+
return us(E(() => c.document, [c]), "keydown", (_) => {
|
|
1854
1855
|
var T, F;
|
|
1855
1856
|
const {
|
|
1856
1857
|
key: W
|
|
@@ -1971,7 +1972,7 @@ An.displayName = "NavbarContext";
|
|
|
1971
1972
|
function Fn(n, e) {
|
|
1972
1973
|
if (process.env.NODE_ENV === "production")
|
|
1973
1974
|
return n;
|
|
1974
|
-
const t =
|
|
1975
|
+
const t = E((r) => {
|
|
1975
1976
|
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? Ot(!1, `${e} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : Ot(!1));
|
|
1976
1977
|
}, [e]);
|
|
1977
1978
|
return it(t, n);
|
|
@@ -1996,13 +1997,13 @@ const Rn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1996
1997
|
...d
|
|
1997
1998
|
}, h) => {
|
|
1998
1999
|
let m = !1;
|
|
1999
|
-
const g =
|
|
2000
|
+
const g = q(An), b = V(n, "dropdown-menu"), {
|
|
2000
2001
|
align: w,
|
|
2001
2002
|
drop: f,
|
|
2002
2003
|
isRTL: j
|
|
2003
|
-
} =
|
|
2004
|
+
} = q(ft);
|
|
2004
2005
|
t = t || w;
|
|
2005
|
-
const v =
|
|
2006
|
+
const v = q(Ue), p = [];
|
|
2006
2007
|
if (t)
|
|
2007
2008
|
if (typeof t == "object") {
|
|
2008
2009
|
const _ = Object.keys(t);
|
|
@@ -2046,7 +2047,7 @@ const Rn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2046
2047
|
});
|
|
2047
2048
|
});
|
|
2048
2049
|
Rn.displayName = "DropdownMenu";
|
|
2049
|
-
const
|
|
2050
|
+
const qn = /* @__PURE__ */ A.forwardRef(({
|
|
2050
2051
|
bsPrefix: n,
|
|
2051
2052
|
split: e,
|
|
2052
2053
|
className: t,
|
|
@@ -2055,7 +2056,7 @@ const Ln = /* @__PURE__ */ A.forwardRef(({
|
|
|
2055
2056
|
as: o = bn,
|
|
2056
2057
|
...a
|
|
2057
2058
|
}, i) => {
|
|
2058
|
-
const l = V(n, "dropdown-toggle"), c =
|
|
2059
|
+
const l = V(n, "dropdown-toggle"), c = q(Ve);
|
|
2059
2060
|
r !== void 0 && (a.bsPrefix = r);
|
|
2060
2061
|
const [u] = $n();
|
|
2061
2062
|
return u.ref = it(u.ref, Fn(i, "DropdownToggle")), /* @__PURE__ */ s.jsx(o, {
|
|
@@ -2064,8 +2065,8 @@ const Ln = /* @__PURE__ */ A.forwardRef(({
|
|
|
2064
2065
|
...a
|
|
2065
2066
|
});
|
|
2066
2067
|
});
|
|
2067
|
-
|
|
2068
|
-
const
|
|
2068
|
+
qn.displayName = "DropdownToggle";
|
|
2069
|
+
const Ln = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
2069
2070
|
const {
|
|
2070
2071
|
bsPrefix: t,
|
|
2071
2072
|
drop: r = "down",
|
|
@@ -2082,7 +2083,7 @@ const qn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
2082
2083
|
...g
|
|
2083
2084
|
} = Ut(n, {
|
|
2084
2085
|
show: "onToggle"
|
|
2085
|
-
}), b =
|
|
2086
|
+
}), b = q(Ue), w = V(t, "dropdown"), f = _r(), j = ($) => m === !1 ? $ === "click" : m === "inside" ? $ !== "rootClose" : m === "outside" ? $ !== "select" : !0, v = de(($, M) => {
|
|
2086
2087
|
var I, N;
|
|
2087
2088
|
!((I = M.originalEvent) == null || (N = I.target) == null) && N.classList.contains("dropdown-toggle") && M.source === "mousedown" || (M.originalEvent.currentTarget === document && (M.source !== "keydown" || M.originalEvent.key === "Escape") && (M.source = "rootClose"), j(M.source) && (c == null || c($, M)));
|
|
2088
2089
|
}), C = Wn(i === "end", r, f), k = Q(() => ({
|
|
@@ -2114,9 +2115,9 @@ const qn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
2114
2115
|
})
|
|
2115
2116
|
});
|
|
2116
2117
|
});
|
|
2117
|
-
|
|
2118
|
-
const Se = Object.assign(
|
|
2119
|
-
Toggle:
|
|
2118
|
+
Ln.displayName = "Dropdown";
|
|
2119
|
+
const Se = Object.assign(Ln, {
|
|
2120
|
+
Toggle: qn,
|
|
2120
2121
|
Menu: Rn,
|
|
2121
2122
|
Item: Dn,
|
|
2122
2123
|
ItemText: Pn,
|
|
@@ -2135,7 +2136,7 @@ const Se = Object.assign(qn, {
|
|
|
2135
2136
|
}, c) => {
|
|
2136
2137
|
const {
|
|
2137
2138
|
controlId: u
|
|
2138
|
-
} =
|
|
2139
|
+
} = q(we);
|
|
2139
2140
|
return e = V(e, "form-check-input"), /* @__PURE__ */ s.jsx(i, {
|
|
2140
2141
|
...l,
|
|
2141
2142
|
ref: c,
|
|
@@ -2153,7 +2154,7 @@ const Ye = /* @__PURE__ */ A.forwardRef(({
|
|
|
2153
2154
|
}, o) => {
|
|
2154
2155
|
const {
|
|
2155
2156
|
controlId: a
|
|
2156
|
-
} =
|
|
2157
|
+
} = q(we);
|
|
2157
2158
|
return n = V(n, "form-check-label"), /* @__PURE__ */ s.jsx("label", {
|
|
2158
2159
|
...r,
|
|
2159
2160
|
ref: o,
|
|
@@ -2187,9 +2188,9 @@ const Yn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2187
2188
|
e = V(e, "form-check"), t = V(t, "form-switch");
|
|
2188
2189
|
const {
|
|
2189
2190
|
controlId: C
|
|
2190
|
-
} =
|
|
2191
|
+
} = q(we), k = Q(() => ({
|
|
2191
2192
|
controlId: n || C
|
|
2192
|
-
}), [C, n]), y = !f && w != null && w !== !1 ||
|
|
2193
|
+
}), [C, n]), y = !f && w != null && w !== !1 || xs(f, Ye), $ = /* @__PURE__ */ s.jsx(Ee, {
|
|
2193
2194
|
...v,
|
|
2194
2195
|
type: b === "switch" ? "checkbox" : b,
|
|
2195
2196
|
ref: p,
|
|
@@ -2243,7 +2244,7 @@ const Hn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2243
2244
|
}, l) => {
|
|
2244
2245
|
const {
|
|
2245
2246
|
controlId: c
|
|
2246
|
-
} =
|
|
2247
|
+
} = q(we);
|
|
2247
2248
|
e = V(e, "form-label");
|
|
2248
2249
|
let u = "col-form-label";
|
|
2249
2250
|
typeof t == "string" && (u = `${u} ${u}-${t}`);
|
|
@@ -2273,7 +2274,7 @@ const Gn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2273
2274
|
}, o) => {
|
|
2274
2275
|
const {
|
|
2275
2276
|
controlId: a
|
|
2276
|
-
} =
|
|
2277
|
+
} = q(we);
|
|
2277
2278
|
return n = V(n, "form-range"), /* @__PURE__ */ s.jsx("input", {
|
|
2278
2279
|
...r,
|
|
2279
2280
|
type: "range",
|
|
@@ -2295,7 +2296,7 @@ const Vn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2295
2296
|
}, c) => {
|
|
2296
2297
|
const {
|
|
2297
2298
|
controlId: u
|
|
2298
|
-
} =
|
|
2299
|
+
} = q(we);
|
|
2299
2300
|
return n = V(n, "form-select"), /* @__PURE__ */ s.jsx("select", {
|
|
2300
2301
|
...l,
|
|
2301
2302
|
size: t,
|
|
@@ -2326,10 +2327,10 @@ const zn = /* @__PURE__ */ A.forwardRef((n, e) => /* @__PURE__ */ s.jsx(Be, {
|
|
|
2326
2327
|
type: "switch"
|
|
2327
2328
|
}));
|
|
2328
2329
|
zn.displayName = "Switch";
|
|
2329
|
-
const
|
|
2330
|
+
const Fs = Object.assign(zn, {
|
|
2330
2331
|
Input: Be.Input,
|
|
2331
2332
|
Label: Be.Label
|
|
2332
|
-
}),
|
|
2333
|
+
}), Ws = {
|
|
2333
2334
|
/**
|
|
2334
2335
|
* The Form `ref` will be forwarded to the underlying element,
|
|
2335
2336
|
* which means, unless it's rendered `as` a composite component,
|
|
@@ -2357,13 +2358,13 @@ const As = Object.assign(zn, {
|
|
|
2357
2358
|
className: x(n, e && "was-validated")
|
|
2358
2359
|
}));
|
|
2359
2360
|
pt.displayName = "Form";
|
|
2360
|
-
pt.propTypes =
|
|
2361
|
+
pt.propTypes = Ws;
|
|
2361
2362
|
const ee = Object.assign(pt, {
|
|
2362
2363
|
Group: jr,
|
|
2363
2364
|
Control: rn,
|
|
2364
2365
|
Floating: Bn,
|
|
2365
2366
|
Check: Be,
|
|
2366
|
-
Switch:
|
|
2367
|
+
Switch: Fs,
|
|
2367
2368
|
Label: Hn,
|
|
2368
2369
|
Text: Un,
|
|
2369
2370
|
Range: Gn,
|
|
@@ -2380,12 +2381,12 @@ const ee = Object.assign(pt, {
|
|
|
2380
2381
|
...r
|
|
2381
2382
|
})));
|
|
2382
2383
|
ze.displayName = "InputGroupText";
|
|
2383
|
-
const
|
|
2384
|
+
const Rs = (n) => /* @__PURE__ */ s.jsx(ze, {
|
|
2384
2385
|
children: /* @__PURE__ */ s.jsx(Ee, {
|
|
2385
2386
|
type: "checkbox",
|
|
2386
2387
|
...n
|
|
2387
2388
|
})
|
|
2388
|
-
}),
|
|
2389
|
+
}), qs = (n) => /* @__PURE__ */ s.jsx(ze, {
|
|
2389
2390
|
children: /* @__PURE__ */ s.jsx(Ee, {
|
|
2390
2391
|
type: "radio",
|
|
2391
2392
|
...n
|
|
@@ -2413,8 +2414,8 @@ const Ws = (n) => /* @__PURE__ */ s.jsx(ze, {
|
|
|
2413
2414
|
Kn.displayName = "InputGroup";
|
|
2414
2415
|
const et = Object.assign(Kn, {
|
|
2415
2416
|
Text: ze,
|
|
2416
|
-
Radio:
|
|
2417
|
-
Checkbox:
|
|
2417
|
+
Radio: qs,
|
|
2418
|
+
Checkbox: Rs
|
|
2418
2419
|
}), gt = /* @__PURE__ */ A.forwardRef(({
|
|
2419
2420
|
bsPrefix: n,
|
|
2420
2421
|
variant: e,
|
|
@@ -2435,53 +2436,53 @@ const et = Object.assign(Kn, {
|
|
|
2435
2436
|
});
|
|
2436
2437
|
gt.displayName = "Spinner";
|
|
2437
2438
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2438
|
-
const Qn = "client_info_decoding_error", Xn = "client_info_empty_error", Ls = "token_parsing_error",
|
|
2439
|
+
const Qn = "client_info_decoding_error", Xn = "client_info_empty_error", Ls = "token_parsing_error", Ys = "null_or_empty_token", Bs = "endpoints_resolution_error", Hs = "network_error", Gs = "openid_config_error", Vs = "hash_not_deserialized", Us = "invalid_state", zs = "state_mismatch", Ks = "state_not_found", Qs = "nonce_mismatch", Xs = "auth_time_not_found", Js = "max_age_transpired", Zs = "multiple_matching_tokens", ea = "multiple_matching_accounts", ta = "multiple_matching_appMetadata", na = "request_cannot_be_made", ra = "cannot_remove_empty_scope", oa = "cannot_append_scopeset", sa = "empty_input_scopeset", aa = "device_code_polling_cancelled", ia = "device_code_expired", ca = "device_code_unknown_error", la = "no_account_in_silent_request", ua = "invalid_cache_record", Jn = "invalid_cache_environment", da = "no_account_found", ha = "no_crypto_object", ma = "unexpected_credential_type", fa = "invalid_assertion", pa = "invalid_client_credential", ga = "token_refresh_required", wa = "user_timeout_reached", xa = "token_claims_cnf_required_for_signedjwt", ya = "authorization_code_missing_from_server_response", va = "binding_key_not_removed", ba = "end_session_endpoint_not_supported", _a = "key_id_missing", ja = "no_network_connectivity", ka = "user_canceled", Ca = "missing_tenant_id_error", Na = "method_not_implemented", $a = "nested_app_auth_bridge_disabled";
|
|
2439
2440
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2440
2441
|
const At = {
|
|
2441
2442
|
[Qn]: "The client info could not be parsed/decoded correctly",
|
|
2442
2443
|
[Xn]: "The client info was empty",
|
|
2443
2444
|
[Ls]: "Token cannot be parsed",
|
|
2444
|
-
[
|
|
2445
|
-
[
|
|
2446
|
-
[
|
|
2447
|
-
[
|
|
2448
|
-
[
|
|
2449
|
-
[
|
|
2450
|
-
[
|
|
2451
|
-
[
|
|
2452
|
-
[
|
|
2453
|
-
[
|
|
2454
|
-
[
|
|
2455
|
-
[
|
|
2456
|
-
[
|
|
2457
|
-
[
|
|
2458
|
-
[
|
|
2459
|
-
[
|
|
2460
|
-
[
|
|
2461
|
-
[
|
|
2462
|
-
[
|
|
2463
|
-
[
|
|
2464
|
-
[
|
|
2465
|
-
[
|
|
2466
|
-
[
|
|
2445
|
+
[Ys]: "The token is null or empty",
|
|
2446
|
+
[Bs]: "Endpoints cannot be resolved",
|
|
2447
|
+
[Hs]: "Network request failed",
|
|
2448
|
+
[Gs]: "Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",
|
|
2449
|
+
[Vs]: "The hash parameters could not be deserialized",
|
|
2450
|
+
[Us]: "State was not the expected format",
|
|
2451
|
+
[zs]: "State mismatch error",
|
|
2452
|
+
[Ks]: "State not found",
|
|
2453
|
+
[Qs]: "Nonce mismatch error",
|
|
2454
|
+
[Xs]: "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.",
|
|
2455
|
+
[Js]: "Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",
|
|
2456
|
+
[Zs]: "The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",
|
|
2457
|
+
[ea]: "The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",
|
|
2458
|
+
[ta]: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",
|
|
2459
|
+
[na]: "Token request cannot be made without authorization code or refresh token.",
|
|
2460
|
+
[ra]: "Cannot remove null or empty scope from ScopeSet",
|
|
2461
|
+
[oa]: "Cannot append ScopeSet",
|
|
2462
|
+
[sa]: "Empty input ScopeSet cannot be processed",
|
|
2463
|
+
[aa]: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",
|
|
2464
|
+
[ia]: "Device code is expired.",
|
|
2465
|
+
[ca]: "Device code stopped polling for unknown reasons.",
|
|
2466
|
+
[la]: "Please pass an account object, silent flow is not supported without account information",
|
|
2467
|
+
[ua]: "Cache record object was null or undefined.",
|
|
2467
2468
|
[Jn]: "Invalid environment when attempting to create cache entry",
|
|
2468
|
-
[
|
|
2469
|
-
[
|
|
2470
|
-
[
|
|
2471
|
-
[
|
|
2472
|
-
[
|
|
2473
|
-
[
|
|
2474
|
-
[
|
|
2475
|
-
[
|
|
2476
|
-
[
|
|
2477
|
-
[
|
|
2478
|
-
[
|
|
2479
|
-
[
|
|
2480
|
-
[
|
|
2481
|
-
[
|
|
2482
|
-
[
|
|
2483
|
-
[
|
|
2484
|
-
[
|
|
2469
|
+
[da]: "No account found in cache for given key.",
|
|
2470
|
+
[ha]: "No crypto object detected.",
|
|
2471
|
+
[ma]: "Unexpected credential type.",
|
|
2472
|
+
[fa]: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",
|
|
2473
|
+
[pa]: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",
|
|
2474
|
+
[ga]: "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.",
|
|
2475
|
+
[wa]: "User defined timeout for device code polling reached",
|
|
2476
|
+
[xa]: "Cannot generate a POP jwt if the token_claims are not populated",
|
|
2477
|
+
[ya]: "Server response does not contain an authorization code to proceed",
|
|
2478
|
+
[va]: "Could not remove the credential's binding key from storage.",
|
|
2479
|
+
[ba]: "The provided authority does not support logout",
|
|
2480
|
+
[_a]: "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.",
|
|
2481
|
+
[ja]: "No network connectivity. Check your internet connection.",
|
|
2482
|
+
[ka]: "User cancelled the flow.",
|
|
2483
|
+
[Ca]: "A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",
|
|
2484
|
+
[Na]: "This method has not been implemented",
|
|
2485
|
+
[$a]: "The nested app auth bridge is disabled"
|
|
2485
2486
|
};
|
|
2486
2487
|
class wt extends ct {
|
|
2487
2488
|
constructor(e, t) {
|
|
@@ -2503,16 +2504,16 @@ function Ft(n, e) {
|
|
|
2503
2504
|
}
|
|
2504
2505
|
}
|
|
2505
2506
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2506
|
-
function
|
|
2507
|
+
function Ia(n, e) {
|
|
2507
2508
|
return !!n && !!e && n === e.split(".")[1];
|
|
2508
2509
|
}
|
|
2509
|
-
function
|
|
2510
|
+
function Sa(n, e) {
|
|
2510
2511
|
const { oid: t, sub: r, tid: o, name: a, tfp: i, acr: l } = e, c = o || i || l || "";
|
|
2511
2512
|
return {
|
|
2512
2513
|
tenantId: c,
|
|
2513
2514
|
localAccountId: t || r || "",
|
|
2514
2515
|
name: a,
|
|
2515
|
-
isHomeTenant:
|
|
2516
|
+
isHomeTenant: Ia(c, n)
|
|
2516
2517
|
};
|
|
2517
2518
|
}
|
|
2518
2519
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
@@ -2523,11 +2524,11 @@ const tt = {
|
|
|
2523
2524
|
Ciam: 3
|
|
2524
2525
|
};
|
|
2525
2526
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2526
|
-
function
|
|
2527
|
+
function Ta(n) {
|
|
2527
2528
|
return n && (n.tid || n.tfp || n.acr) || null;
|
|
2528
2529
|
}
|
|
2529
2530
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2530
|
-
const
|
|
2531
|
+
const Ea = {
|
|
2531
2532
|
AAD: "AAD",
|
|
2532
2533
|
OIDC: "OIDC"
|
|
2533
2534
|
};
|
|
@@ -2592,20 +2593,20 @@ class $e {
|
|
|
2592
2593
|
*/
|
|
2593
2594
|
static createAccount(e, t, r) {
|
|
2594
2595
|
const o = new $e();
|
|
2595
|
-
t.authorityType === tt.Adfs ? o.authorityType = Me.ADFS_ACCOUNT_TYPE : t.protocolMode ===
|
|
2596
|
+
t.authorityType === tt.Adfs ? o.authorityType = Me.ADFS_ACCOUNT_TYPE : t.protocolMode === Ea.AAD ? o.authorityType = Me.MSSTS_ACCOUNT_TYPE : o.authorityType = Me.GENERIC_ACCOUNT_TYPE;
|
|
2596
2597
|
let a;
|
|
2597
2598
|
e.clientInfo && r && (a = Ft(e.clientInfo, r)), o.clientInfo = e.clientInfo, o.homeAccountId = e.homeAccountId, o.nativeAccountId = e.nativeAccountId;
|
|
2598
2599
|
const i = e.environment || t && t.getPreferredCache();
|
|
2599
2600
|
if (!i)
|
|
2600
2601
|
throw ot(Jn);
|
|
2601
|
-
o.environment = i, o.realm = (a == null ? void 0 : a.utid) ||
|
|
2602
|
+
o.environment = i, o.realm = (a == null ? void 0 : a.utid) || Ta(e.idTokenClaims) || "", o.localAccountId = (a == null ? void 0 : a.uid) || e.idTokenClaims.oid || e.idTokenClaims.sub || "";
|
|
2602
2603
|
const l = e.idTokenClaims.preferred_username || e.idTokenClaims.upn, c = e.idTokenClaims.emails ? e.idTokenClaims.emails[0] : null;
|
|
2603
2604
|
if (o.username = l || c || "", o.name = e.idTokenClaims.name, o.cloudGraphHostName = e.cloudGraphHostName, o.msGraphHost = e.msGraphHost, e.tenantProfiles)
|
|
2604
2605
|
o.tenantProfiles = e.tenantProfiles;
|
|
2605
2606
|
else {
|
|
2606
2607
|
const u = [];
|
|
2607
2608
|
if (e.idTokenClaims) {
|
|
2608
|
-
const d =
|
|
2609
|
+
const d = Sa(e.homeAccountId, e.idTokenClaims);
|
|
2609
2610
|
u.push(d);
|
|
2610
2611
|
}
|
|
2611
2612
|
o.tenantProfiles = u;
|
|
@@ -2676,7 +2677,7 @@ class xt extends ct {
|
|
|
2676
2677
|
function Wt(n, e) {
|
|
2677
2678
|
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? n.getActiveAccount() : Cr(n.getAllAccounts(), e);
|
|
2678
2679
|
}
|
|
2679
|
-
function
|
|
2680
|
+
function Oa(n) {
|
|
2680
2681
|
const { instance: e, inProgress: t, logger: r } = lt(), [o, a] = P(() => Wt(e, n));
|
|
2681
2682
|
return D(() => {
|
|
2682
2683
|
a((i) => {
|
|
@@ -2708,8 +2709,8 @@ class be extends ct {
|
|
|
2708
2709
|
}
|
|
2709
2710
|
}
|
|
2710
2711
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2711
|
-
function
|
|
2712
|
-
const { instance: r, inProgress: o, logger: a } = lt(), i = Kt(t), l =
|
|
2712
|
+
function Ma(n, e, t) {
|
|
2713
|
+
const { instance: r, inProgress: o, logger: a } = lt(), i = Kt(t), l = Oa(t), [[c, u], d] = P([null, null]), h = Y(!0);
|
|
2713
2714
|
D(() => () => {
|
|
2714
2715
|
h.current = !1;
|
|
2715
2716
|
}, []);
|
|
@@ -2728,7 +2729,7 @@ function Oa(n, e, t) {
|
|
|
2728
2729
|
return;
|
|
2729
2730
|
}
|
|
2730
2731
|
}, [u, c]);
|
|
2731
|
-
const b =
|
|
2732
|
+
const b = E(async (f, j) => {
|
|
2732
2733
|
const v = f || n, p = j || e;
|
|
2733
2734
|
switch (v) {
|
|
2734
2735
|
case Re.Popup:
|
|
@@ -2740,7 +2741,7 @@ function Oa(n, e, t) {
|
|
|
2740
2741
|
default:
|
|
2741
2742
|
throw be.createInvalidInteractionTypeError();
|
|
2742
2743
|
}
|
|
2743
|
-
}, [r, n, e, a]), w =
|
|
2744
|
+
}, [r, n, e, a]), w = E(async (f, j) => {
|
|
2744
2745
|
const v = f || n;
|
|
2745
2746
|
let p;
|
|
2746
2747
|
return j ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), p = {
|
|
@@ -2799,12 +2800,12 @@ function Oa(n, e, t) {
|
|
|
2799
2800
|
};
|
|
2800
2801
|
}
|
|
2801
2802
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2802
|
-
function
|
|
2803
|
+
function Da({ interactionType: n, username: e, homeAccountId: t, localAccountId: r, authenticationRequest: o, loadingComponent: a, errorComponent: i, children: l }) {
|
|
2803
2804
|
const c = Q(() => ({
|
|
2804
2805
|
username: e,
|
|
2805
2806
|
homeAccountId: t,
|
|
2806
2807
|
localAccountId: r
|
|
2807
|
-
}), [e, t, r]), u = lt(), d =
|
|
2808
|
+
}), [e, t, r]), u = lt(), d = Ma(n, o, c), h = Kt(c);
|
|
2808
2809
|
if (d.error && u.inProgress === Ne.None) {
|
|
2809
2810
|
if (i)
|
|
2810
2811
|
return J.createElement(i, { ...d });
|
|
@@ -2812,12 +2813,12 @@ function Ma({ interactionType: n, username: e, homeAccountId: t, localAccountId:
|
|
|
2812
2813
|
}
|
|
2813
2814
|
return h ? J.createElement(J.Fragment, null, Nr(l, d)) : a && u.inProgress !== Ne.None ? J.createElement(a, { ...u }) : null;
|
|
2814
2815
|
}
|
|
2815
|
-
const
|
|
2816
|
+
const Pa = "_submit-container_a9slg_1", Aa = "_spacer_a9slg_14", Rt = {
|
|
2816
2817
|
"submit-container": "_submit-container_a9slg_1",
|
|
2817
|
-
submitContainer:
|
|
2818
|
-
spacer:
|
|
2819
|
-
},
|
|
2820
|
-
const { formSubmitTexts: t } =
|
|
2818
|
+
submitContainer: Pa,
|
|
2819
|
+
spacer: Aa
|
|
2820
|
+
}, Fa = ({ children: n, onStorno: e }) => {
|
|
2821
|
+
const { formSubmitTexts: t } = q(oe);
|
|
2821
2822
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2822
2823
|
/* @__PURE__ */ s.jsx("div", { className: Rt.spacer }),
|
|
2823
2824
|
/* @__PURE__ */ s.jsxs("div", { className: x("luminus-floating-submit-container shadow", Rt.submitContainer), children: [
|
|
@@ -2831,8 +2832,8 @@ const Da = "_submit-container_a9slg_1", Pa = "_spacer_a9slg_14", Rt = {
|
|
|
2831
2832
|
] })
|
|
2832
2833
|
] })
|
|
2833
2834
|
] });
|
|
2834
|
-
},
|
|
2835
|
-
button:
|
|
2835
|
+
}, Wa = "_button_1r3i0_1", st = {
|
|
2836
|
+
button: Wa
|
|
2836
2837
|
}, at = ({
|
|
2837
2838
|
color: n = "primary",
|
|
2838
2839
|
// icon = <MdOutlineArrowOutward size={10} />,
|
|
@@ -2841,7 +2842,7 @@ const Da = "_submit-container_a9slg_1", Pa = "_spacer_a9slg_14", Rt = {
|
|
|
2841
2842
|
children: r,
|
|
2842
2843
|
...o
|
|
2843
2844
|
}) => {
|
|
2844
|
-
const { LinkComponent: a } =
|
|
2845
|
+
const { LinkComponent: a } = q(oe);
|
|
2845
2846
|
return o.as === "link" ? /* @__PURE__ */ s.jsxs(a, { to: o.href ?? "/", className: x(`luminus-context-button btn text-${n} ${t ?? ""}`, st.button), ...o, children: [
|
|
2846
2847
|
e,
|
|
2847
2848
|
r
|
|
@@ -2860,14 +2861,14 @@ const Da = "_submit-container_a9slg_1", Pa = "_spacer_a9slg_14", Rt = {
|
|
|
2860
2861
|
] }),
|
|
2861
2862
|
/* @__PURE__ */ s.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: l })
|
|
2862
2863
|
] });
|
|
2863
|
-
},
|
|
2864
|
+
}, Ra = "_icon-button_15e26_1", qa = "_sm_15e26_14", La = "_md_15e26_23", Ya = "_lg_15e26_32", We = {
|
|
2864
2865
|
"icon-button": "_icon-button_15e26_1",
|
|
2865
|
-
iconButton:
|
|
2866
|
-
sm:
|
|
2866
|
+
iconButton: Ra,
|
|
2867
|
+
sm: qa,
|
|
2867
2868
|
md: La,
|
|
2868
|
-
lg:
|
|
2869
|
+
lg: Ya
|
|
2869
2870
|
}, Z = ({ type: n = "button", color: e = "primary", size: t = "md", children: r, className: o, ...a }) => {
|
|
2870
|
-
const { LinkComponent: i } =
|
|
2871
|
+
const { LinkComponent: i } = q(oe);
|
|
2871
2872
|
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`, We.iconButton, We[t]), ...a, children: r }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ s.jsx(
|
|
2872
2873
|
"button",
|
|
2873
2874
|
{
|
|
@@ -2877,8 +2878,8 @@ const Da = "_submit-container_a9slg_1", Pa = "_spacer_a9slg_14", Rt = {
|
|
|
2877
2878
|
children: r
|
|
2878
2879
|
}
|
|
2879
2880
|
) : null;
|
|
2880
|
-
},
|
|
2881
|
-
const r =
|
|
2881
|
+
}, Ac = ({ month: n, onChangeMonth: e, locale: t }) => {
|
|
2882
|
+
const r = E((o) => {
|
|
2882
2883
|
e(un(n, o));
|
|
2883
2884
|
}, [n, e]);
|
|
2884
2885
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
@@ -2886,56 +2887,56 @@ const Da = "_submit-container_a9slg_1", Pa = "_spacer_a9slg_14", Rt = {
|
|
|
2886
2887
|
/* @__PURE__ */ s.jsx("div", { children: fn(n, "LLLL yyyy", { locale: t }) }),
|
|
2887
2888
|
/* @__PURE__ */ s.jsx(Z, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2888
2889
|
] });
|
|
2889
|
-
},
|
|
2890
|
-
const r =
|
|
2891
|
-
e(
|
|
2890
|
+
}, Fc = ({ year: n, onChangeYear: e, locale: t }) => {
|
|
2891
|
+
const r = E((o) => {
|
|
2892
|
+
e(no(n, o));
|
|
2892
2893
|
}, [n, e]);
|
|
2893
2894
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2894
2895
|
/* @__PURE__ */ s.jsx(Z, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(ut, {}) }),
|
|
2895
2896
|
/* @__PURE__ */ s.jsx("div", { children: fn(n, "yyyy", { locale: t }) }),
|
|
2896
2897
|
/* @__PURE__ */ s.jsx(Z, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2897
2898
|
] });
|
|
2898
|
-
},
|
|
2899
|
-
widget:
|
|
2900
|
-
},
|
|
2899
|
+
}, Ba = "_widget_etgh3_1", Ha = {
|
|
2900
|
+
widget: Ba
|
|
2901
|
+
}, Ga = ({ show: n, widgets: e, handleClose: t, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ s.jsxs(Ae, { show: n, onHide: () => t(), children: [
|
|
2901
2902
|
/* @__PURE__ */ s.jsx(Ae.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Ae.Title, { children: o.pickWidgetToAdd }) }),
|
|
2902
2903
|
/* @__PURE__ */ s.jsx(Ae.Body, { children: /* @__PURE__ */ s.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ s.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ s.jsx(z, { variant: "body", children: a.name }) })) }) })
|
|
2903
|
-
] }),
|
|
2904
|
+
] }), qt = ({ availableWidgets: n, onAdd: e, texts: t }) => {
|
|
2904
2905
|
const [r, o] = P(!1);
|
|
2905
2906
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2906
|
-
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget",
|
|
2907
|
-
/* @__PURE__ */ s.jsx(
|
|
2907
|
+
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget", Ha.widget), children: /* @__PURE__ */ s.jsx(Z, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(Sr, {}) }) }),
|
|
2908
|
+
/* @__PURE__ */ s.jsx(Ga, { show: r, widgets: n, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
2908
2909
|
o(!1), e(a);
|
|
2909
2910
|
}, texts: t })
|
|
2910
2911
|
] });
|
|
2911
|
-
},
|
|
2912
|
+
}, Va = (n) => {
|
|
2912
2913
|
const [e, t] = P({ widgets: [] });
|
|
2913
2914
|
D(() => {
|
|
2914
2915
|
const o = localStorage.getItem("dashboardConfig");
|
|
2915
2916
|
o ? t(JSON.parse(o)) : n && t(n);
|
|
2916
2917
|
}, [n]);
|
|
2917
|
-
const r =
|
|
2918
|
+
const r = E((o) => {
|
|
2918
2919
|
t(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
|
|
2919
2920
|
}, []);
|
|
2920
2921
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
2921
|
-
},
|
|
2922
|
-
dashboard:
|
|
2922
|
+
}, Ua = "_dashboard_16plm_1", za = "_widgets-grid_16plm_1", Ka = "_widget-wrapper_16plm_8", Qa = "_full-width_16plm_13", Xa = "_widget-edit_16plm_16", Ja = "_remove-icon_16plm_19", Za = "_full-width-icon_16plm_26", ei = "_widget-edit-overlay_16plm_36", ae = {
|
|
2923
|
+
dashboard: Ua,
|
|
2923
2924
|
"widgets-grid": "_widgets-grid_16plm_1",
|
|
2924
|
-
widgetsGrid:
|
|
2925
|
+
widgetsGrid: za,
|
|
2925
2926
|
"widget-wrapper": "_widget-wrapper_16plm_8",
|
|
2926
|
-
widgetWrapper:
|
|
2927
|
+
widgetWrapper: Ka,
|
|
2927
2928
|
"full-width": "_full-width_16plm_13",
|
|
2928
|
-
fullWidth:
|
|
2929
|
+
fullWidth: Qa,
|
|
2929
2930
|
"widget-edit": "_widget-edit_16plm_16",
|
|
2930
|
-
widgetEdit:
|
|
2931
|
+
widgetEdit: Xa,
|
|
2931
2932
|
"remove-icon": "_remove-icon_16plm_19",
|
|
2932
|
-
removeIcon:
|
|
2933
|
+
removeIcon: Ja,
|
|
2933
2934
|
"full-width-icon": "_full-width-icon_16plm_26",
|
|
2934
|
-
fullWidthIcon:
|
|
2935
|
+
fullWidthIcon: Za,
|
|
2935
2936
|
"widget-edit-overlay": "_widget-edit-overlay_16plm_36",
|
|
2936
|
-
widgetEditOverlay:
|
|
2937
|
+
widgetEditOverlay: ei
|
|
2937
2938
|
};
|
|
2938
|
-
class
|
|
2939
|
+
class ti extends Lr {
|
|
2939
2940
|
constructor(e) {
|
|
2940
2941
|
super(e), this.state = { hasError: !1 }, this.reload = this.reload.bind(this);
|
|
2941
2942
|
}
|
|
@@ -2962,18 +2963,18 @@ class ei extends qr {
|
|
|
2962
2963
|
] }) : t;
|
|
2963
2964
|
}
|
|
2964
2965
|
}
|
|
2965
|
-
const
|
|
2966
|
-
const { errorBoundaryTexts: r } =
|
|
2966
|
+
const ni = (n) => (t) => {
|
|
2967
|
+
const { errorBoundaryTexts: r } = q(oe);
|
|
2967
2968
|
return /* @__PURE__ */ s.jsx(n, { texts: r, ...t });
|
|
2968
|
-
},
|
|
2969
|
+
}, ri = ni(ti), oi = "_widget-card_e9tsb_1", si = {
|
|
2969
2970
|
"widget-card": "_widget-card_e9tsb_1",
|
|
2970
|
-
widgetCard:
|
|
2971
|
-
},
|
|
2972
|
-
const { widgetTexts: t } =
|
|
2973
|
-
return /* @__PURE__ */ s.jsx(
|
|
2974
|
-
},
|
|
2971
|
+
widgetCard: oi
|
|
2972
|
+
}, Lt = ({ children: n, title: e, headerContent: t }) => /* @__PURE__ */ s.jsx(lc, { className: x(si.widgetCard, "luminus-widget"), title: e, headerContent: t, contentClassName: "h-100 overflow-auto", children: n }), ai = ({ children: n, title: e }) => {
|
|
2973
|
+
const { widgetTexts: t } = q(oe);
|
|
2974
|
+
return /* @__PURE__ */ s.jsx(ri, { fallback: /* @__PURE__ */ s.jsx(Lt, { title: e, children: t.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ s.jsx(Br, { fallback: /* @__PURE__ */ s.jsx(Lt, { title: e, children: /* @__PURE__ */ s.jsx(Jr, {}) }), children: n }) });
|
|
2975
|
+
}, Wc = ({ availableWidgets: n, editMode: e, defaultDashboardConfig: t }) => {
|
|
2975
2976
|
var d;
|
|
2976
|
-
const { homeDashboardTexts: r } =
|
|
2977
|
+
const { homeDashboardTexts: r } = q(oe), { dashboardConfig: o, onChangeDashboardConfig: a } = Va(t), i = E((h, m) => {
|
|
2977
2978
|
var g, b;
|
|
2978
2979
|
h === ((g = o.widgets) == null ? void 0 : g.length) ? a({
|
|
2979
2980
|
...o,
|
|
@@ -2982,26 +2983,26 @@ const ti = (n) => (t) => {
|
|
|
2982
2983
|
...o,
|
|
2983
2984
|
widgets: ((b = o.widgets) == null ? void 0 : b.map((w, f) => f === h ? { widgetId: m, fullWidth: !1 } : w)) ?? []
|
|
2984
2985
|
});
|
|
2985
|
-
}, [o, a]), l =
|
|
2986
|
+
}, [o, a]), l = E((h) => {
|
|
2986
2987
|
var m, g;
|
|
2987
2988
|
((m = o.widgets[h]) == null ? void 0 : m.widgetId) === -1 ? a({
|
|
2988
2989
|
...o,
|
|
2989
2990
|
widgets: ((g = o.widgets) == null ? void 0 : g.filter((b, w) => w !== h)) ?? []
|
|
2990
2991
|
}) : i(h, -1);
|
|
2991
|
-
}, [o, a, i]), c =
|
|
2992
|
+
}, [o, a, i]), c = E((h) => {
|
|
2992
2993
|
var m;
|
|
2993
2994
|
a({
|
|
2994
2995
|
...o,
|
|
2995
2996
|
widgets: ((m = o.widgets) == null ? void 0 : m.map((g, b) => b === h ? { ...g, fullWidth: !g.fullWidth } : g)) ?? []
|
|
2996
2997
|
});
|
|
2997
|
-
}, [o, a]), u =
|
|
2998
|
+
}, [o, a]), u = E((h, m, g) => h ? /* @__PURE__ */ s.jsxs("div", { className: x(ae.widgetWrapper, {
|
|
2998
2999
|
[ae.widgetEdit]: e && h.id !== -1
|
|
2999
3000
|
}, { [ae.fullWidth]: g }), children: [
|
|
3000
3001
|
e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3001
3002
|
/* @__PURE__ */ s.jsx(Z, { color: "danger", onClick: () => l(m), className: x(ae.removeIcon), children: /* @__PURE__ */ s.jsx(Xt, {}) }),
|
|
3002
3003
|
/* @__PURE__ */ s.jsx(Z, { color: g ? "danger" : "primary", onClick: () => c(m), className: x(ae.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Tr, {}) })
|
|
3003
3004
|
] }),
|
|
3004
|
-
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetWrapper, children: /* @__PURE__ */ s.jsx(
|
|
3005
|
+
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetWrapper, children: /* @__PURE__ */ s.jsx(qt, { availableWidgets: n, onAdd: (b) => i(m, b), texts: r }) }) : /* @__PURE__ */ s.jsx(ai, { title: h.title, children: /* @__PURE__ */ s.jsx(h.WidgetElement, { title: h.title }) }),
|
|
3005
3006
|
h.id > -1 && e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetEditOverlay })
|
|
3006
3007
|
] }, m) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
3007
3008
|
e,
|
|
@@ -3013,21 +3014,21 @@ const ti = (n) => (t) => {
|
|
|
3013
3014
|
]);
|
|
3014
3015
|
return /* @__PURE__ */ s.jsx("div", { className: ae.dashboard, children: /* @__PURE__ */ s.jsxs("div", { className: ae.widgetsGrid, children: [
|
|
3015
3016
|
(d = o.widgets) == null ? void 0 : d.map((h, m) => u(n.find((g) => g.id === h.widgetId), m, h.fullWidth)),
|
|
3016
|
-
e && /* @__PURE__ */ s.jsx(
|
|
3017
|
+
e && /* @__PURE__ */ s.jsx(qt, { availableWidgets: n, onAdd: (h) => {
|
|
3017
3018
|
var m;
|
|
3018
3019
|
return i((m = o.widgets) == null ? void 0 : m.length, h);
|
|
3019
3020
|
}, texts: r })
|
|
3020
3021
|
] }) });
|
|
3021
|
-
},
|
|
3022
|
-
badge:
|
|
3023
|
-
sm:
|
|
3024
|
-
md:
|
|
3025
|
-
lg:
|
|
3026
|
-
},
|
|
3022
|
+
}, ii = "_badge_nhser_1", ci = "_sm_nhser_1", li = "_md_nhser_4", ui = "_lg_nhser_7", Yt = {
|
|
3023
|
+
badge: ii,
|
|
3024
|
+
sm: ci,
|
|
3025
|
+
md: li,
|
|
3026
|
+
lg: ui
|
|
3027
|
+
}, Rc = ({ children: n, color: e = "primary", size: t = "md", className: r }) => /* @__PURE__ */ s.jsx("span", { className: x(`luminus-badge badge bg-${e} ${r ?? ""}`, Yt.badge, Yt[t]), children: n }), di = "_collapse-icon_1ahhn_1", hi = "_collapsed_1ahhn_6", Bt = {
|
|
3027
3028
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
3028
|
-
collapseIcon:
|
|
3029
|
-
collapsed:
|
|
3030
|
-
},
|
|
3029
|
+
collapseIcon: di,
|
|
3030
|
+
collapsed: hi
|
|
3031
|
+
}, qc = ({ title: n, children: e, className: t, ...r }) => {
|
|
3031
3032
|
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = P(o), l = r.controlled ? r.isOpen : a;
|
|
3032
3033
|
return D(() => {
|
|
3033
3034
|
i(o);
|
|
@@ -3041,15 +3042,15 @@ const ti = (n) => (t) => {
|
|
|
3041
3042
|
/* @__PURE__ */ s.jsx(pn, { in: l, children: /* @__PURE__ */ s.jsx("div", { children: e }) }),
|
|
3042
3043
|
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
3043
3044
|
] });
|
|
3044
|
-
},
|
|
3045
|
-
feedback:
|
|
3045
|
+
}, mi = "_feedback_esh1j_1", fi = "_feedback-spacer_esh1j_8", Ht = {
|
|
3046
|
+
feedback: mi,
|
|
3046
3047
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
3047
|
-
feedbackSpacer:
|
|
3048
|
+
feedbackSpacer: fi
|
|
3048
3049
|
}, ye = ({ message: n }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3049
3050
|
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback", Ht.feedback), children: n }),
|
|
3050
3051
|
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback-spacer", Ht.feedbackSpacer), children: n })
|
|
3051
3052
|
] });
|
|
3052
|
-
function
|
|
3053
|
+
function pi(n, e, t) {
|
|
3053
3054
|
var r = this, o = Y(null), a = Y(0), i = Y(null), l = Y([]), c = Y(), u = Y(), d = Y(n), h = Y(!0);
|
|
3054
3055
|
d.current = n;
|
|
3055
3056
|
var m = typeof window < "u", g = !e && e !== 0 && m;
|
|
@@ -3105,65 +3106,65 @@ function fi(n, e, t) {
|
|
|
3105
3106
|
}, [b, f, e, v, w, g, m, j]);
|
|
3106
3107
|
return p;
|
|
3107
3108
|
}
|
|
3108
|
-
function
|
|
3109
|
+
function gi(n, e) {
|
|
3109
3110
|
return n === e;
|
|
3110
3111
|
}
|
|
3111
|
-
function
|
|
3112
|
+
function wi(n, e) {
|
|
3112
3113
|
return e;
|
|
3113
3114
|
}
|
|
3114
3115
|
function er(n, e, t) {
|
|
3115
|
-
var r =
|
|
3116
|
+
var r = gi, o = tn(wi, n), a = o[0], i = o[1], l = pi(E(function(u) {
|
|
3116
3117
|
return i(u);
|
|
3117
3118
|
}, [i]), e, t), c = Y(n);
|
|
3118
3119
|
return r(c.current, n) || (l(n), c.current = n), [a, l];
|
|
3119
3120
|
}
|
|
3120
|
-
const
|
|
3121
|
-
wrapper:
|
|
3122
|
-
open:
|
|
3123
|
-
dropdown:
|
|
3121
|
+
const xi = "_wrapper_uccrb_1", yi = "_open_uccrb_9", vi = "_dropdown_uccrb_13", bi = "_search-input-container_uccrb_19", _i = "_search-input_uccrb_19", ji = "_loading-container_uccrb_25", ki = "_items-container_uccrb_32", Ci = "_header-row_uccrb_38", Ni = "_item_uccrb_32", $i = "_name_uccrb_57", Ii = "_column-item_uccrb_62", Si = "_icon_uccrb_66", Ti = "_clear-button_uccrb_74", X = {
|
|
3122
|
+
wrapper: xi,
|
|
3123
|
+
open: yi,
|
|
3124
|
+
dropdown: vi,
|
|
3124
3125
|
"search-input-container": "_search-input-container_uccrb_19",
|
|
3125
|
-
searchInputContainer:
|
|
3126
|
+
searchInputContainer: bi,
|
|
3126
3127
|
"search-input": "_search-input_uccrb_19",
|
|
3127
|
-
searchInput:
|
|
3128
|
+
searchInput: _i,
|
|
3128
3129
|
"loading-container": "_loading-container_uccrb_25",
|
|
3129
|
-
loadingContainer:
|
|
3130
|
+
loadingContainer: ji,
|
|
3130
3131
|
"items-container": "_items-container_uccrb_32",
|
|
3131
|
-
itemsContainer:
|
|
3132
|
+
itemsContainer: ki,
|
|
3132
3133
|
"header-row": "_header-row_uccrb_38",
|
|
3133
|
-
headerRow:
|
|
3134
|
-
item:
|
|
3135
|
-
name:
|
|
3134
|
+
headerRow: Ci,
|
|
3135
|
+
item: Ni,
|
|
3136
|
+
name: $i,
|
|
3136
3137
|
"column-item": "_column-item_uccrb_62",
|
|
3137
|
-
columnItem:
|
|
3138
|
-
icon:
|
|
3138
|
+
columnItem: Ii,
|
|
3139
|
+
icon: Si,
|
|
3139
3140
|
"clear-button": "_clear-button_uccrb_74",
|
|
3140
|
-
clearButton:
|
|
3141
|
+
clearButton: Ti
|
|
3141
3142
|
}, yt = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: m, isLoading: g = !1, inputRef: b }) => {
|
|
3142
3143
|
var S;
|
|
3143
3144
|
const w = Y(null), f = Y(null), j = Y(null), [v, p] = P(""), [C] = er(v, 500), [, k] = P(!1), y = (S = b.current) == null ? void 0 : S.getBoundingClientRect(), $ = (y == null ? void 0 : y.x) ?? 0, M = ((y == null ? void 0 : y.x) ?? 0) + ((y == null ? void 0 : y.width) ?? 0), I = (y == null ? void 0 : y.y) ?? 0, N = ((y == null ? void 0 : y.y) ?? 0) + ((y == null ? void 0 : y.height) ?? 0), _ = (y == null ? void 0 : y.width) ?? 0, T = (y == null ? void 0 : y.height) ?? 0, F = 5, W = Q(() => $ ? $ > window.innerWidth / 2 : !1, [$]), B = Q(() => I ? I > window.innerHeight / 2 : !1, [I]);
|
|
3144
3145
|
D(() => {
|
|
3145
|
-
var
|
|
3146
|
-
n && ((
|
|
3146
|
+
var O;
|
|
3147
|
+
n && ((O = j.current) == null || O.focus());
|
|
3147
3148
|
}, [j, n]), D(() => {
|
|
3148
3149
|
n || p("");
|
|
3149
3150
|
}, [n]), D(() => {
|
|
3150
3151
|
a(C);
|
|
3151
3152
|
}, [C, a]);
|
|
3152
|
-
const R =
|
|
3153
|
-
switch (
|
|
3153
|
+
const R = E((O) => {
|
|
3154
|
+
switch (O.key) {
|
|
3154
3155
|
case "Escape":
|
|
3155
|
-
|
|
3156
|
+
O.stopPropagation(), e();
|
|
3156
3157
|
break;
|
|
3157
3158
|
}
|
|
3158
|
-
}, [e]), G =
|
|
3159
|
-
k((
|
|
3159
|
+
}, [e]), G = E(() => {
|
|
3160
|
+
k((O) => !O);
|
|
3160
3161
|
}, []);
|
|
3161
3162
|
D(() => (window.addEventListener("scroll", G), () => {
|
|
3162
3163
|
window.removeEventListener("scroll", G);
|
|
3163
3164
|
}), [G]), D(() => (window.addEventListener("resize", G), () => {
|
|
3164
3165
|
window.removeEventListener("resize", G);
|
|
3165
3166
|
}), [G]), an(R), cn([w, f], e);
|
|
3166
|
-
const se = l ?? (c && c.length > 0 ? 250 : 0), te = (c == null ? void 0 : c.reduce((
|
|
3167
|
+
const se = l ?? (c && c.length > 0 ? 250 : 0), te = (c == null ? void 0 : c.reduce((O, K) => O + (K.width ?? 100), 0)) ?? 0, U = `calc(max(${_}px, ${se}px + ${te}px))`;
|
|
3167
3168
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3168
3169
|
/* @__PURE__ */ s.jsx(nr, { show: n, onClick: e }),
|
|
3169
3170
|
r && n && !m && /* @__PURE__ */ s.jsx("button", { ref: f, type: "button", className: x("luminus-dropdown-picker-clear-button", X.clearButton), onClick: () => !m && o(null), style: {
|
|
@@ -3179,37 +3180,37 @@ const wi = "_wrapper_uccrb_1", xi = "_open_uccrb_9", yi = "_dropdown_uccrb_13",
|
|
|
3179
3180
|
width: U,
|
|
3180
3181
|
justifyContent: B ? "flex-end" : "flex-start"
|
|
3181
3182
|
}, children: /* @__PURE__ */ s.jsx("div", { ref: w, className: x("shadow rounded", X.dropdown), children: !m && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3182
|
-
d && (h ?? t.length) <= F ? null : /* @__PURE__ */ s.jsx("div", { className: x("search-input-container border-bottom", X.searchInputContainer), children: /* @__PURE__ */ s.jsx(ee.Control, { ref: j, type: "search", size: "sm", className: X.searchInput, placeholder: i.searchPlaceholder, value: v, onChange: (
|
|
3183
|
+
d && (h ?? t.length) <= F ? null : /* @__PURE__ */ s.jsx("div", { className: x("search-input-container border-bottom", X.searchInputContainer), children: /* @__PURE__ */ s.jsx(ee.Control, { ref: j, type: "search", size: "sm", className: X.searchInput, placeholder: i.searchPlaceholder, value: v, onChange: (O) => {
|
|
3183
3184
|
var K;
|
|
3184
|
-
return p(((K =
|
|
3185
|
+
return p(((K = O.target) == null ? void 0 : K.value) ?? "");
|
|
3185
3186
|
} }) }),
|
|
3186
3187
|
g ? /* @__PURE__ */ s.jsx("div", { className: X.loadingContainer, children: /* @__PURE__ */ s.jsx(gt, { animation: "border", variant: "primary" }) }) : t.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("items", X.itemsContainer), children: [
|
|
3187
3188
|
c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("header-row border-bottom", X.headerRow), children: [
|
|
3188
3189
|
/* @__PURE__ */ s.jsx("div", { className: X.name }),
|
|
3189
|
-
c == null ? void 0 : c.map((
|
|
3190
|
-
width: `${
|
|
3191
|
-
minWidth: `${
|
|
3192
|
-
maxWidth: `${
|
|
3193
|
-
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", children:
|
|
3190
|
+
c == null ? void 0 : c.map((O) => /* @__PURE__ */ s.jsx("div", { className: X.columnItem, style: {
|
|
3191
|
+
width: `${O.width ?? 100}px`,
|
|
3192
|
+
minWidth: `${O.width ?? 100}px`,
|
|
3193
|
+
maxWidth: `${O.width ?? 100}px`
|
|
3194
|
+
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", children: O.name }) }, O.key))
|
|
3194
3195
|
] }),
|
|
3195
|
-
t == null ? void 0 : t.map((
|
|
3196
|
-
/* @__PURE__ */ s.jsx("div", { className: X.name, children: /* @__PURE__ */ s.jsx(z, { variant: "body2", children: u ?
|
|
3196
|
+
t == null ? void 0 : t.map((O) => /* @__PURE__ */ s.jsxs("button", { type: "button", className: x("item cursor-pointer", X.item), onClick: () => !m && o(O), children: [
|
|
3197
|
+
/* @__PURE__ */ s.jsx("div", { className: X.name, children: /* @__PURE__ */ s.jsx(z, { variant: "body2", children: u ? O.id : O.name }) }),
|
|
3197
3198
|
c == null ? void 0 : c.map((K) => /* @__PURE__ */ s.jsx("div", { className: X.columnItem, style: {
|
|
3198
3199
|
width: `${K.width ?? 100}px`,
|
|
3199
3200
|
minWidth: `${K.width ?? 100}px`,
|
|
3200
3201
|
maxWidth: `${K.width ?? 100}px`
|
|
3201
|
-
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", className: x("text-muted"), children:
|
|
3202
|
-
] },
|
|
3202
|
+
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", className: x("text-muted"), children: O.additionalColumns && O.additionalColumns[K.key] }) }, K.key))
|
|
3203
|
+
] }, O.id))
|
|
3203
3204
|
] })
|
|
3204
3205
|
] }) }) })
|
|
3205
3206
|
] });
|
|
3206
3207
|
};
|
|
3207
|
-
function
|
|
3208
|
+
function Ei(n) {
|
|
3208
3209
|
return Er({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" }, child: [] }] })(n);
|
|
3209
3210
|
}
|
|
3210
|
-
const
|
|
3211
|
-
item:
|
|
3212
|
-
},
|
|
3211
|
+
const Oi = "_item_1dy8x_1", tr = {
|
|
3212
|
+
item: Oi
|
|
3213
|
+
}, Mi = ({
|
|
3213
3214
|
color: n = "primary",
|
|
3214
3215
|
// icon = <MdOutlineArrowOutward />,
|
|
3215
3216
|
icon: e,
|
|
@@ -3219,7 +3220,7 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3219
3220
|
}) => /* @__PURE__ */ s.jsxs(Se.Item, { className: x(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${t ?? ""}`, tr.item), ...o, children: [
|
|
3220
3221
|
e,
|
|
3221
3222
|
r
|
|
3222
|
-
] }),
|
|
3223
|
+
] }), Di = (n) => /* @__PURE__ */ s.jsx(Se.Toggle, { ...n }), Lc = ({ color: n = "primary", icon: e = /* @__PURE__ */ s.jsx(Qt, { size: 12 }), inputId: t = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: i, children: l, ...c }) => {
|
|
3223
3224
|
const u = (d) => {
|
|
3224
3225
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
3225
3226
|
};
|
|
@@ -3230,25 +3231,25 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3230
3231
|
] }),
|
|
3231
3232
|
/* @__PURE__ */ s.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
|
|
3232
3233
|
] });
|
|
3233
|
-
},
|
|
3234
|
-
divider:
|
|
3235
|
-
},
|
|
3236
|
-
dropdown:
|
|
3237
|
-
},
|
|
3234
|
+
}, Pi = "_divider_1e6rk_1", Ai = {
|
|
3235
|
+
divider: Pi
|
|
3236
|
+
}, Yc = ({ className: n }) => /* @__PURE__ */ s.jsx(Se.Divider, { className: x("luminus-dropdown-divider", n, Ai.divider) }), Fi = "_dropdown_1lk66_1", Wi = {
|
|
3237
|
+
dropdown: Fi
|
|
3238
|
+
}, Ri = ({ toggle: n, children: e, ...t }) => /* @__PURE__ */ s.jsxs(Se, { ...t, children: [
|
|
3238
3239
|
n,
|
|
3239
|
-
/* @__PURE__ */ s.jsx(Se.Menu, { className: x("luminus-dropdown rounded shadow",
|
|
3240
|
-
] }),
|
|
3240
|
+
/* @__PURE__ */ s.jsx(Se.Menu, { className: x("luminus-dropdown rounded shadow", Wi.dropdown), children: e })
|
|
3241
|
+
] }), qi = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PURE__ */ s.jsx(Ri, { toggle: /* @__PURE__ */ s.jsx(Di, { as: Or, icon: null, text: e == null ? void 0 : e.text }), children: n.map((r) => /* @__PURE__ */ s.jsx(Mi, { icon: null, onClick: () => t(r), children: r.text }, r.key)) }), Li = "_dropdown_1ddrg_1", Yi = "_open_1ddrg_12", Bi = "_loading-container_1ddrg_15", Hi = "_groups-container_1ddrg_22", Gi = "_group_1ddrg_22", Vi = "_header_1ddrg_26", Ui = "_item_1ddrg_33", me = {
|
|
3241
3242
|
dropdown: Li,
|
|
3242
|
-
open:
|
|
3243
|
+
open: Yi,
|
|
3243
3244
|
"loading-container": "_loading-container_1ddrg_15",
|
|
3244
|
-
loadingContainer:
|
|
3245
|
+
loadingContainer: Bi,
|
|
3245
3246
|
"groups-container": "_groups-container_1ddrg_22",
|
|
3246
|
-
groupsContainer:
|
|
3247
|
-
group:
|
|
3248
|
-
header:
|
|
3249
|
-
item:
|
|
3250
|
-
},
|
|
3251
|
-
const { LinkComponent: i, appSearchTexts: l } =
|
|
3247
|
+
groupsContainer: Hi,
|
|
3248
|
+
group: Gi,
|
|
3249
|
+
header: Vi,
|
|
3250
|
+
item: Ui
|
|
3251
|
+
}, zi = ({ show: n, query: e, onCancel: t, groups: r, isLoading: o, searchTypes: a }) => {
|
|
3252
|
+
const { LinkComponent: i, appSearchTexts: l } = q(oe), c = Y(null), u = E((d) => {
|
|
3252
3253
|
var m;
|
|
3253
3254
|
const h = (m = a.find((g) => g.key === d.type)) == null ? void 0 : m.toPath;
|
|
3254
3255
|
return h ? `${h}/${d.searchKey}` : "/not-found";
|
|
@@ -3283,18 +3284,18 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3283
3284
|
))
|
|
3284
3285
|
] }, d.key.category);
|
|
3285
3286
|
}) }) });
|
|
3286
|
-
},
|
|
3287
|
+
}, Ki = "_input-group_1lkfy_1", Qi = "_input-group-text_1lkfy_5", Xi = "_left_1lkfy_9", Ji = "_right_1lkfy_13", Zi = "_input_1lkfy_1", ec = "_submit-button_1lkfy_20", fe = {
|
|
3287
3288
|
"input-group": "_input-group_1lkfy_1",
|
|
3288
|
-
inputGroup:
|
|
3289
|
+
inputGroup: Ki,
|
|
3289
3290
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
3290
|
-
inputGroupText:
|
|
3291
|
-
left:
|
|
3292
|
-
right:
|
|
3293
|
-
input:
|
|
3291
|
+
inputGroupText: Qi,
|
|
3292
|
+
left: Xi,
|
|
3293
|
+
right: Ji,
|
|
3294
|
+
input: Zi,
|
|
3294
3295
|
"submit-button": "_submit-button_1lkfy_20",
|
|
3295
|
-
submitButton:
|
|
3296
|
-
},
|
|
3297
|
-
const t = Dr(), [r, o] = P(!1), [a, i] = P([]), l = !n || !n.key, c =
|
|
3296
|
+
submitButton: ec
|
|
3297
|
+
}, tc = (n, e) => {
|
|
3298
|
+
const t = Dr(), [r, o] = P(!1), [a, i] = P([]), l = !n || !n.key, c = E(() => {
|
|
3298
3299
|
if (e.length < 3) {
|
|
3299
3300
|
i([]);
|
|
3300
3301
|
return;
|
|
@@ -3308,32 +3309,32 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3308
3309
|
return D(() => {
|
|
3309
3310
|
c();
|
|
3310
3311
|
}, [c]), { isLoading: r, searchItems: a };
|
|
3311
|
-
},
|
|
3312
|
-
const { appSearchTexts: t } =
|
|
3312
|
+
}, Bc = ({ searchTypes: n, navigateFunction: e }) => {
|
|
3313
|
+
const { appSearchTexts: t } = q(oe), [r, o] = P(n.length > 0 ? n[0] : null), [a, i] = P(""), [l, c] = er(a, 500), { isLoading: u, searchItems: d } = tc(r, l), [h, m] = P(!1);
|
|
3313
3314
|
return D(() => {
|
|
3314
3315
|
(d.length > 0 || u) && m(!0);
|
|
3315
3316
|
}, [d, u]), /* @__PURE__ */ s.jsx(ee, { onSubmit: (g) => {
|
|
3316
3317
|
g.preventDefault(), g.stopPropagation(), c.flush(), m(!1), a.length > 2 && e(`/search?query=${a}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
|
|
3317
3318
|
}, children: /* @__PURE__ */ s.jsxs(et, { className: fe.inputGroup, children: [
|
|
3318
|
-
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded", fe.inputGroupText, fe.left), children: /* @__PURE__ */ s.jsx(
|
|
3319
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded", fe.inputGroupText, fe.left), children: /* @__PURE__ */ s.jsx(qi, { searchTypes: n, selectedType: r, setSelectedType: o }) }),
|
|
3319
3320
|
/* @__PURE__ */ s.jsx(ee.Control, { placeholder: t.searchPlaceholder, type: "text", size: "sm", className: x("luminus-app-search-input", fe.input), value: a, onChange: (g) => {
|
|
3320
3321
|
var b;
|
|
3321
3322
|
return i(((b = g.target) == null ? void 0 : b.value) ?? "");
|
|
3322
3323
|
}, onFocus: () => d.length > 0 && m(!0) }),
|
|
3323
|
-
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-0 rounded", fe.inputGroupText, fe.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: x("text-primary", fe.submitButton), children: /* @__PURE__ */ s.jsx(
|
|
3324
|
-
/* @__PURE__ */ s.jsx(
|
|
3324
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-0 rounded", fe.inputGroupText, fe.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: x("text-primary", fe.submitButton), children: /* @__PURE__ */ s.jsx(Ei, {}) }) }),
|
|
3325
|
+
/* @__PURE__ */ s.jsx(zi, { query: l, searchTypes: n, show: h, onCancel: () => m(!1), groups: d, isLoading: u })
|
|
3325
3326
|
] }) });
|
|
3326
|
-
},
|
|
3327
|
-
card:
|
|
3328
|
-
header:
|
|
3327
|
+
}, nc = "_card_19733_1", rc = "_header_19733_6", oc = "_header-content_19733_13", sc = "_title_19733_19", ac = "_collapse-icon_19733_22", ic = "_collapsed_19733_27", cc = "_content_19733_30", pe = {
|
|
3328
|
+
card: nc,
|
|
3329
|
+
header: rc,
|
|
3329
3330
|
"header-content": "_header-content_19733_13",
|
|
3330
|
-
headerContent:
|
|
3331
|
-
title:
|
|
3331
|
+
headerContent: oc,
|
|
3332
|
+
title: sc,
|
|
3332
3333
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
3333
|
-
collapseIcon:
|
|
3334
|
-
collapsed:
|
|
3335
|
-
content:
|
|
3336
|
-
},
|
|
3334
|
+
collapseIcon: ac,
|
|
3335
|
+
collapsed: ic,
|
|
3336
|
+
content: cc
|
|
3337
|
+
}, lc = ({ title: n, headerContent: e, children: t, className: r, headerClassName: o, contentClassName: a, ...i }) => {
|
|
3337
3338
|
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] = P(l), d = i.collapsible ? i.controlled ? i.isOpen : c : !0;
|
|
3338
3339
|
return D(() => {
|
|
3339
3340
|
u(l);
|
|
@@ -3357,35 +3358,35 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3357
3358
|
[a ?? ""]: a
|
|
3358
3359
|
}), children: t }) })
|
|
3359
3360
|
] });
|
|
3360
|
-
},
|
|
3361
|
-
lightbox:
|
|
3362
|
-
show:
|
|
3363
|
-
header:
|
|
3361
|
+
}, uc = "_lightbox_14acg_1", dc = "_show_14acg_16", hc = "_header_14acg_20", mc = "_photo-actions_14acg_26", fc = "_photo-container_14acg_31", pc = "_photo_14acg_26", gc = "_nav-button_14acg_41", wc = "_photos-preview_14acg_49", xc = "_selected_14acg_62", yc = "_default-indicator_14acg_66", ne = {
|
|
3362
|
+
lightbox: uc,
|
|
3363
|
+
show: dc,
|
|
3364
|
+
header: hc,
|
|
3364
3365
|
"photo-actions": "_photo-actions_14acg_26",
|
|
3365
|
-
photoActions:
|
|
3366
|
+
photoActions: mc,
|
|
3366
3367
|
"photo-container": "_photo-container_14acg_31",
|
|
3367
|
-
photoContainer:
|
|
3368
|
-
photo:
|
|
3368
|
+
photoContainer: fc,
|
|
3369
|
+
photo: pc,
|
|
3369
3370
|
"nav-button": "_nav-button_14acg_41",
|
|
3370
|
-
navButton:
|
|
3371
|
+
navButton: gc,
|
|
3371
3372
|
"photos-preview": "_photos-preview_14acg_49",
|
|
3372
|
-
photosPreview:
|
|
3373
|
-
selected:
|
|
3373
|
+
photosPreview: wc,
|
|
3374
|
+
selected: xc,
|
|
3374
3375
|
"default-indicator": "_default-indicator_14acg_66",
|
|
3375
|
-
defaultIndicator:
|
|
3376
|
-
},
|
|
3377
|
-
backdrop:
|
|
3378
|
-
show:
|
|
3376
|
+
defaultIndicator: yc
|
|
3377
|
+
}, vc = "_backdrop_3huvf_1", bc = "_show_3huvf_11", Gt = {
|
|
3378
|
+
backdrop: vc,
|
|
3379
|
+
show: bc
|
|
3379
3380
|
}, nr = ({ show: n, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-backdrop", Gt.backdrop, {
|
|
3380
3381
|
[Gt.show]: n
|
|
3381
|
-
}), onClick: () => e && e() }),
|
|
3382
|
+
}), onClick: () => e && e() }), _c = ({ show: n, onClose: e, photos: t, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: l }) => {
|
|
3382
3383
|
const c = Y(null), [u, d] = P(r), h = t.at(u), m = u > 0, g = u < t.length - 1;
|
|
3383
3384
|
D(() => {
|
|
3384
3385
|
n && d(r);
|
|
3385
3386
|
}, [r, n]), D(() => {
|
|
3386
3387
|
u >= t.length && d(t.length - 1);
|
|
3387
3388
|
}, [t, u]);
|
|
3388
|
-
const b =
|
|
3389
|
+
const b = E((w) => {
|
|
3389
3390
|
switch (w.key) {
|
|
3390
3391
|
case "ArrowLeft":
|
|
3391
3392
|
w.stopPropagation(), m && d((f) => f - 1);
|
|
@@ -3434,7 +3435,7 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3434
3435
|
] })) })
|
|
3435
3436
|
] })
|
|
3436
3437
|
] });
|
|
3437
|
-
},
|
|
3438
|
+
}, Hc = ({ photos: n, onUploadPhotos: e, uploadPhotosText: t, photoActions: r }) => {
|
|
3438
3439
|
const [o, a] = P(null), i = o !== null ? n[o] : null, [l, c] = P(!1);
|
|
3439
3440
|
return D(() => {
|
|
3440
3441
|
if (n.length === 0) {
|
|
@@ -3454,20 +3455,20 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3454
3455
|
onClick: () => c(!0)
|
|
3455
3456
|
}
|
|
3456
3457
|
),
|
|
3457
|
-
/* @__PURE__ */ s.jsx(
|
|
3458
|
+
/* @__PURE__ */ s.jsx(_c, { show: l, onClose: () => c(!1), photos: n, defaultIndex: o ?? 0, uploadPhotosText: t, onUploadPhotos: e, photoActions: r })
|
|
3458
3459
|
] }) : e ? /* @__PURE__ */ s.jsx(Zn, { accept: ".jpg,.jpeg,.png", onUpload: (u) => {
|
|
3459
3460
|
u.length > 0 && e(Array.from(u));
|
|
3460
3461
|
}, icon: /* @__PURE__ */ s.jsx(Zt, { style: { fontSize: 18 } }), multiple: !0, children: t ?? null }) : null;
|
|
3461
|
-
},
|
|
3462
|
-
const { NavigateComponent: t } =
|
|
3462
|
+
}, Gc = ({ appAccessPermissions: n, children: e }) => {
|
|
3463
|
+
const { NavigateComponent: t } = q(oe), { useMsal: r, msalScopes: o } = q(Ar), { isAuthenticated: a } = Fr(), { user: i, loggingInProgress: l } = q(Wr), c = i && (n == null ? void 0 : n.every((u) => {
|
|
3463
3464
|
var d;
|
|
3464
3465
|
return (d = i.permissions) == null ? void 0 : d.includes(u);
|
|
3465
3466
|
}));
|
|
3466
|
-
return r ? /* @__PURE__ */ s.jsx(
|
|
3467
|
-
},
|
|
3467
|
+
return r ? /* @__PURE__ */ s.jsx(Da, { interactionType: Re.Redirect, authenticationRequest: { scopes: o }, children: l || !a() ? /* @__PURE__ */ s.jsx(Kr, {}) : i ? c ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(t, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(t, { to: "/no-user-login", replace: !0 }) }) : !a() || !i ? /* @__PURE__ */ s.jsx(t, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ s.jsx(t, { to: "/user-not-permitted", replace: !0 });
|
|
3468
|
+
}, Vc = (n) => {
|
|
3468
3469
|
const { variant: e, children: t, className: r, size: o = "md", typographyVariant: a = o === "sm" ? "body2" : "body", ...i } = { ...n };
|
|
3469
|
-
return /* @__PURE__ */ s.jsx(
|
|
3470
|
-
},
|
|
3470
|
+
return /* @__PURE__ */ s.jsx(ws, { variant: e, className: `text-center ${o === "sm" ? "p-1" : o === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...i, children: /* @__PURE__ */ s.jsx(z, { variant: a, children: t }) });
|
|
3471
|
+
}, Uc = ({ version: n }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
|
|
3471
3472
|
position: "fixed",
|
|
3472
3473
|
right: "0px",
|
|
3473
3474
|
bottom: "0px",
|
|
@@ -3478,28 +3479,28 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3478
3479
|
}, children: /* @__PURE__ */ s.jsxs(z, { variant: "caption", className: "w-100 text-end", children: [
|
|
3479
3480
|
"verze ",
|
|
3480
3481
|
n
|
|
3481
|
-
] }) }),
|
|
3482
|
+
] }) }), zc = ({ heading: n, content: e, placement: t, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(Rr, { placement: t, overlay: /* @__PURE__ */ s.jsxs(Xe, { className: "luminus-popover", children: [
|
|
3482
3483
|
/* @__PURE__ */ s.jsx(Xe.Header, { children: typeof n == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: n }) : n }),
|
|
3483
3484
|
/* @__PURE__ */ s.jsx(Xe.Body, { children: e })
|
|
3484
3485
|
] }), trigger: o ?? "hover", rootClose: !0, children: r }), rr = ({ currentSelection: n, selectedItemNavigateTo: e, children: t }) => {
|
|
3485
|
-
const { LinkComponent: r } =
|
|
3486
|
+
const { LinkComponent: r } = q(oe);
|
|
3486
3487
|
if (!n || !n.id || !e)
|
|
3487
3488
|
return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: t });
|
|
3488
3489
|
const o = e(n);
|
|
3489
3490
|
return /* @__PURE__ */ s.jsx(r, { to: o, className: "luminus-input-container position-relative w-100 text-decoration-none", children: t });
|
|
3490
|
-
},
|
|
3491
|
+
}, Kc = ({ InputContainer: n = He, label: e, value: t, onChange: r, hidden: o, disabled: a, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ s.jsx(n, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, className: i, children: /* @__PURE__ */ s.jsx(ee.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: t, onChange: (u) => {
|
|
3491
3492
|
var d;
|
|
3492
3493
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3493
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }),
|
|
3494
|
-
const f = e === "number", j =
|
|
3494
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Qc = ({ InputContainer: n = He, type: e, value: t, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: m, list: g, className: b, step: w }) => {
|
|
3495
|
+
const f = e === "number", j = E(() => {
|
|
3495
3496
|
if (!r)
|
|
3496
3497
|
return;
|
|
3497
3498
|
const N = m ?? null;
|
|
3498
3499
|
r(f ? N ? Number(N) : null : (N == null ? void 0 : N.toString()) ?? "");
|
|
3499
|
-
}, [m, f, r]), v = Y(null), [p, C] = P((t == null ? void 0 : t.toString()) ?? ""), k =
|
|
3500
|
+
}, [m, f, r]), v = Y(null), [p, C] = P((t == null ? void 0 : t.toString()) ?? ""), k = E((N) => {
|
|
3500
3501
|
const _ = N;
|
|
3501
3502
|
r && (f && r(_ == null || _ === "" ? null : Number(_)), r(_ || null));
|
|
3502
|
-
}, [f, r]), y =
|
|
3503
|
+
}, [f, r]), y = E((N) => {
|
|
3503
3504
|
var T;
|
|
3504
3505
|
const _ = (T = N.target) == null ? void 0 : T.value;
|
|
3505
3506
|
if (!o) {
|
|
@@ -3518,7 +3519,7 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3518
3519
|
/* @__PURE__ */ s.jsx(ee.Control, { type: I, placeholder: l ?? a, size: c, value: o ? p : t ?? "", onChange: y, className: b ?? "", hidden: u, disabled: d ?? !1, list: g, onFocus: () => M(!0), onBlur: () => M(!1), step: w }),
|
|
3519
3520
|
h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(Z, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ s.jsx(_e, {}) }) })
|
|
3520
3521
|
] });
|
|
3521
|
-
},
|
|
3522
|
+
}, Xc = ({
|
|
3522
3523
|
InputContainer: n = He,
|
|
3523
3524
|
value: e,
|
|
3524
3525
|
options: t,
|
|
@@ -3536,7 +3537,7 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3536
3537
|
noEmptyOption: b
|
|
3537
3538
|
// it will still add the empty option if there is no value provided or value is empty string or null
|
|
3538
3539
|
}) => {
|
|
3539
|
-
const w =
|
|
3540
|
+
const w = E(() => {
|
|
3540
3541
|
if (!r)
|
|
3541
3542
|
return;
|
|
3542
3543
|
const f = h ?? null;
|
|
@@ -3555,15 +3556,15 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3555
3556
|
] }),
|
|
3556
3557
|
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(Z, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ s.jsx(_e, {}) }) })
|
|
3557
3558
|
] });
|
|
3558
|
-
},
|
|
3559
|
+
}, Jc = ({ InputContainer: n = He, items: e, defaultSelection: t, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: m, additionalColumns: g, hidden: b, disabled: w, displayIdAsName: f, CustomOnChangeComponent: j, className: v }) => {
|
|
3559
3560
|
var T, F;
|
|
3560
3561
|
const [p, C] = P(t), [k, y] = P(!1);
|
|
3561
3562
|
D(() => {
|
|
3562
3563
|
C(t);
|
|
3563
3564
|
}, [t]);
|
|
3564
|
-
const $ =
|
|
3565
|
+
const $ = E((W) => {
|
|
3565
3566
|
C(W);
|
|
3566
|
-
}, []), M =
|
|
3567
|
+
}, []), M = E((W) => {
|
|
3567
3568
|
y(!1), $(W);
|
|
3568
3569
|
}, [$]);
|
|
3569
3570
|
D(() => {
|
|
@@ -3597,7 +3598,7 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3597
3598
|
] }),
|
|
3598
3599
|
I.current && /* @__PURE__ */ s.jsx(yt, { show: k, onCancel: () => y(!1), items: e, currentSelection: p, onSelectionChange: M, onSearchQueryChange: o, texts: a, itemsNameWidth: m, additionalColumns: g, isLoading: i, disabled: w, inputRef: I })
|
|
3599
3600
|
] }) });
|
|
3600
|
-
},
|
|
3601
|
+
}, Zc = ({ InputContainer: n = xe, formField: e, label: t, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c, className: u }) => {
|
|
3601
3602
|
const { register: d, formState: h, setValue: m } = he(), [g, b] = P(void 0), [w, f] = P(!1);
|
|
3602
3603
|
D(() => {
|
|
3603
3604
|
const v = e.split(".");
|
|
@@ -3617,7 +3618,7 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3617
3618
|
}), isInvalid: j, hidden: i, disabled: l, className: "w-100" }),
|
|
3618
3619
|
g && /* @__PURE__ */ s.jsx(ye, { message: g.message })
|
|
3619
3620
|
] });
|
|
3620
|
-
},
|
|
3621
|
+
}, el = ({ InputContainer: n = xe, label: e, formField: t, options: r, resetsFields: o, required: a, disabled: i, hidden: l, className: c }) => {
|
|
3621
3622
|
const { register: u, formState: d, setValue: h, watch: m } = he(), [g, b] = P(void 0), [w, f] = P(!1), j = Q(() => r, [r]);
|
|
3622
3623
|
D(() => {
|
|
3623
3624
|
const p = t.split(".");
|
|
@@ -3637,11 +3638,11 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3637
3638
|
}), isInvalid: v, hidden: l, disabled: i, className: "w-100" }, p.id)),
|
|
3638
3639
|
g && /* @__PURE__ */ s.jsx(ye, { message: g.message })
|
|
3639
3640
|
] });
|
|
3640
|
-
},
|
|
3641
|
-
const { register: b, formState: w, setValue: f, watch: j } = he(), [v, p] = P(void 0), [C, k] = P(!1), y =
|
|
3641
|
+
}, tl = ({ InputContainer: n = xe, formField: e, label: t, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, rows: d, withoutLabel: h, customFormControlProps: m, className: g }) => {
|
|
3642
|
+
const { register: b, formState: w, setValue: f, watch: j } = he(), [v, p] = P(void 0), [C, k] = P(!1), y = E(() => {
|
|
3642
3643
|
const I = i ?? null;
|
|
3643
3644
|
f(e, (I == null ? void 0 : I.toString()) ?? "", { shouldDirty: !0, shouldValidate: C });
|
|
3644
|
-
}, [i, f, e, C]), $ =
|
|
3645
|
+
}, [i, f, e, C]), $ = E(() => {
|
|
3645
3646
|
const I = e.split(".");
|
|
3646
3647
|
let N = w.errors;
|
|
3647
3648
|
I.forEach((_) => {
|
|
@@ -3664,14 +3665,14 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3664
3665
|
a && j(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(Z, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ s.jsx(_e, {}) }) }),
|
|
3665
3666
|
v && /* @__PURE__ */ s.jsx(ye, { message: v.message })
|
|
3666
3667
|
] });
|
|
3667
|
-
},
|
|
3668
|
-
const { register: j, formState: v, setValue: p, watch: C } = he(), [k, y] = P(void 0), [$, M] = P(!1), I =
|
|
3668
|
+
}, nl = ({ InputContainer: n = xe, type: e, formField: t, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: m, list: g, step: b, CustomOnChangeComponent: w, className: f }) => {
|
|
3669
|
+
const { register: j, formState: v, setValue: p, watch: C } = he(), [k, y] = P(void 0), [$, M] = P(!1), I = E(() => {
|
|
3669
3670
|
const R = c ?? null;
|
|
3670
3671
|
e === "number" ? p(t, R !== null ? Number(R) : null, {
|
|
3671
3672
|
shouldDirty: !0,
|
|
3672
3673
|
shouldValidate: $
|
|
3673
3674
|
}) : p(t, (R == null ? void 0 : R.toString()) ?? "", { shouldDirty: !0, shouldValidate: $ });
|
|
3674
|
-
}, [c, e, p, t, $]), N =
|
|
3675
|
+
}, [c, e, p, t, $]), N = E(() => {
|
|
3675
3676
|
const R = t.split(".");
|
|
3676
3677
|
let G = v.errors;
|
|
3677
3678
|
R.forEach((se) => {
|
|
@@ -3700,14 +3701,14 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3700
3701
|
l && C(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(Z, { color: "secondary", size: "sm", onClick: I, children: /* @__PURE__ */ s.jsx(_e, {}) }) }),
|
|
3701
3702
|
k && /* @__PURE__ */ s.jsx(ye, { message: k.message })
|
|
3702
3703
|
] });
|
|
3703
|
-
},
|
|
3704
|
-
const { formState: k, setValue: y, watch: $, control: M } = he(), [I, N] = P(void 0), [_, T] = P(!1), [F, W] = P(!1), B = $(e) ?? null, R = B === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : $(`${e}-DropdownName`), G = Q(() => B == null ? null : { id: B ?? null, name: R ?? "" }, [B, R]), se =
|
|
3704
|
+
}, rl = ({ InputContainer: n = xe, formField: e, label: t, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: m, texts: g, dropdownItemsNameWidth: b, isLoading: w, withoutLabel: f, additionalColumns: j, CustomOnChangeComponent: v, displayIdAsName: p, className: C }) => {
|
|
3705
|
+
const { formState: k, setValue: y, watch: $, control: M } = he(), [I, N] = P(void 0), [_, T] = P(!1), [F, W] = P(!1), B = $(e) ?? null, R = B === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : $(`${e}-DropdownName`), G = Q(() => B == null ? null : { id: B ?? null, name: R ?? "" }, [B, R]), se = E(() => {
|
|
3705
3706
|
const H = e.split(".");
|
|
3706
3707
|
let ce = k.errors;
|
|
3707
3708
|
H.forEach((Ke) => {
|
|
3708
3709
|
ce !== void 0 && (ce = ce[Ke]);
|
|
3709
3710
|
}), N(ce);
|
|
3710
|
-
}, [k, e]), te =
|
|
3711
|
+
}, [k, e]), te = E((H) => {
|
|
3711
3712
|
if ((H == null ? void 0 : H.id) === B)
|
|
3712
3713
|
return;
|
|
3713
3714
|
if (a && a.forEach((Ke) => y(Ke, null, { shouldDirty: !0, shouldValidate: F })), H === null) {
|
|
@@ -3722,9 +3723,9 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3722
3723
|
shouldDirty: !0,
|
|
3723
3724
|
shouldValidate: F
|
|
3724
3725
|
}), y(`${e}-DropdownName`, H.name ?? "");
|
|
3725
|
-
}, [y, e, F, i, a, B]), U =
|
|
3726
|
+
}, [y, e, F, i, a, B]), U = E((H) => {
|
|
3726
3727
|
T(!1), te(H);
|
|
3727
|
-
}, [te]), S =
|
|
3728
|
+
}, [te]), S = E(() => {
|
|
3728
3729
|
T(!1);
|
|
3729
3730
|
}, []);
|
|
3730
3731
|
D(() => {
|
|
@@ -3732,7 +3733,7 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3732
3733
|
}, [se]), D(() => {
|
|
3733
3734
|
k.isSubmitted && W(!0);
|
|
3734
3735
|
}, [k]);
|
|
3735
|
-
const
|
|
3736
|
+
const O = Y(null), K = I !== void 0, Oe = m !== void 0, or = Oe && G !== null;
|
|
3736
3737
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid: K, inputContainerClassName: x({ "luminus-dropdown-select-open": _ }), className: C, children: [
|
|
3737
3738
|
/* @__PURE__ */ s.jsxs(rr, { currentSelection: G, selectedItemNavigateTo: m, children: [
|
|
3738
3739
|
p && (G == null ? void 0 : G.name) && /* @__PURE__ */ s.jsx(z, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: G.name }),
|
|
@@ -3740,7 +3741,7 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3740
3741
|
H.currentTarget.focus(), H.preventDefault();
|
|
3741
3742
|
}, onClick: () => {
|
|
3742
3743
|
!Oe && !u && T(!0);
|
|
3743
|
-
}, ref:
|
|
3744
|
+
}, ref: O, value: B ?? "", onChange: () => {
|
|
3744
3745
|
}, isInvalid: K, hidden: c, className: x("w-100", {
|
|
3745
3746
|
"luminus-dropdown-picker-disabled": u,
|
|
3746
3747
|
"luminus-dropdown-picker-link": or
|
|
@@ -3753,12 +3754,12 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3753
3754
|
] }) : null
|
|
3754
3755
|
] }),
|
|
3755
3756
|
I && /* @__PURE__ */ s.jsx(ye, { message: I.message }),
|
|
3756
|
-
|
|
3757
|
+
O.current && /* @__PURE__ */ s.jsx(yt, { show: _, onCancel: S, items: d, currentSelection: G, onSelectionChange: U, onSearchQueryChange: h, texts: g, itemsNameWidth: b, additionalColumns: j, displayIdAsName: p, isLoading: w, disabled: u, inputRef: O })
|
|
3757
3758
|
] }) });
|
|
3758
|
-
},
|
|
3759
|
-
const { watch: g, setValue: b, register: w, formState: f } = he(), [j, v] = P(!1), [p, C] = P(void 0), k =
|
|
3759
|
+
}, ol = ({ InputContainer: n = xe, label: e, formField: t, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h, className: m }) => {
|
|
3760
|
+
const { watch: g, setValue: b, register: w, formState: f } = he(), [j, v] = P(!1), [p, C] = P(void 0), k = E(() => {
|
|
3760
3761
|
b(t, "");
|
|
3761
|
-
}, [b, t]), y =
|
|
3762
|
+
}, [b, t]), y = E(() => {
|
|
3762
3763
|
const M = t.split(".");
|
|
3763
3764
|
let I = f.errors;
|
|
3764
3765
|
M.forEach((N) => {
|
|
@@ -3778,19 +3779,19 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3778
3779
|
l && g(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(Z, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ s.jsx(_e, {}) }) }),
|
|
3779
3780
|
p && /* @__PURE__ */ s.jsx(ye, { message: p.message })
|
|
3780
3781
|
] });
|
|
3781
|
-
},
|
|
3782
|
+
}, sl = ({ children: n, onStorno: e }) => {
|
|
3782
3783
|
const { formState: t } = he(), [r, o] = P(!1);
|
|
3783
3784
|
return D(() => {
|
|
3784
3785
|
o(Object.keys(t.dirtyFields).length > 0);
|
|
3785
|
-
}, [t]), r ? /* @__PURE__ */ s.jsx(
|
|
3786
|
-
},
|
|
3787
|
-
const { customSelectTexts: b } =
|
|
3786
|
+
}, [t]), r ? /* @__PURE__ */ s.jsx(Fa, { onStorno: e, children: n }) : null;
|
|
3787
|
+
}, al = ({ InputContainer: n = xe, options: e, formField: t, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: m, className: g }) => {
|
|
3788
|
+
const { customSelectTexts: b } = q(oe), { formState: w, setValue: f, watch: j, control: v } = he(), [p, C] = P(void 0), [k, y] = P(!1), [$, M] = P(!1), [I, N] = P(""), _ = j(t), T = Q(() => e.find((S) => S.id === _) ?? null, [e, _]), F = E(() => {
|
|
3788
3789
|
const S = t.split(".");
|
|
3789
|
-
let
|
|
3790
|
+
let O = w.errors;
|
|
3790
3791
|
S.forEach((K) => {
|
|
3791
|
-
|
|
3792
|
-
}), C(
|
|
3793
|
-
}, [w, t]), W =
|
|
3792
|
+
O !== void 0 && (O = O[K]);
|
|
3793
|
+
}), C(O);
|
|
3794
|
+
}, [w, t]), W = E((S) => {
|
|
3794
3795
|
if ((S == null ? void 0 : S.id) === _)
|
|
3795
3796
|
return;
|
|
3796
3797
|
if (a && a.forEach((K) => f(K, null, { shouldDirty: !0, shouldValidate: $ })), S === null) {
|
|
@@ -3800,14 +3801,14 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3800
3801
|
});
|
|
3801
3802
|
return;
|
|
3802
3803
|
}
|
|
3803
|
-
let
|
|
3804
|
-
i ?
|
|
3804
|
+
let O = null;
|
|
3805
|
+
i ? O = (S == null ? void 0 : S.id) !== null && (S == null ? void 0 : S.id) !== "" ? parseInt(S.id.toString(), 10) : null : O = S.id === null || S.id === void 0 || S.id === "" ? null : S.id, f(t, O, {
|
|
3805
3806
|
shouldDirty: !0,
|
|
3806
3807
|
shouldValidate: $
|
|
3807
3808
|
});
|
|
3808
|
-
}, [f, t, i, a, _, $]), B =
|
|
3809
|
+
}, [f, t, i, a, _, $]), B = E((S) => {
|
|
3809
3810
|
y(!1), W(S);
|
|
3810
|
-
}, [W]), R =
|
|
3811
|
+
}, [W]), R = E((S) => {
|
|
3811
3812
|
N(S);
|
|
3812
3813
|
}, []);
|
|
3813
3814
|
D(() => {
|
|
@@ -3815,16 +3816,13 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3815
3816
|
}, [F]), D(() => {
|
|
3816
3817
|
w.isSubmitted && M(!0);
|
|
3817
3818
|
}, [w]);
|
|
3818
|
-
const G =
|
|
3819
|
-
var
|
|
3820
|
-
return S === null ? "" : !S.name || S.name.length === 0 ? ((
|
|
3819
|
+
const G = E((S) => {
|
|
3820
|
+
var O;
|
|
3821
|
+
return S === null ? "" : !S.name || S.name.length === 0 ? ((O = S.id) == null ? void 0 : O.toString()) ?? "" : m ? `${S.name} (${S.id})` : S.name;
|
|
3821
3822
|
}, [m]), se = Q(() => e.map((S) => ({
|
|
3822
3823
|
id: S.id,
|
|
3823
3824
|
name: G(S)
|
|
3824
|
-
})).filter((S) =>
|
|
3825
|
-
var E;
|
|
3826
|
-
return I ? (E = S.name) == null ? void 0 : E.toLowerCase().includes(I.toLowerCase()) : !0;
|
|
3827
|
-
}).sort((S, E) => h ? 0 : (S.name ?? "").localeCompare(E.name ?? "")), [e, h, I, G]), te = Y(null), U = p !== void 0;
|
|
3825
|
+
})).filter((S) => Xr(S.name, I)).sort((S, O) => h ? 0 : (S.name ?? "").localeCompare(O.name ?? "")), [e, h, I, G]), te = Y(null), U = p !== void 0;
|
|
3828
3826
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: U, inputContainerClassName: x({ "luminus-dropdown-select-open": k }), className: g, children: [
|
|
3829
3827
|
/* @__PURE__ */ s.jsx(sn, { control: v, name: t, render: () => /* @__PURE__ */ s.jsx(ee.Select, { size: o, onMouseDown: (S) => {
|
|
3830
3828
|
S.currentTarget.focus(), S.preventDefault();
|
|
@@ -3835,13 +3833,13 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3835
3833
|
p && /* @__PURE__ */ s.jsx(ye, { message: p.message }),
|
|
3836
3834
|
te.current && /* @__PURE__ */ s.jsx(yt, { show: k, onCancel: () => y(!1), items: se, currentSelection: T ?? null, onSelectionChange: B, onSearchQueryChange: R, texts: b, disabled: u, inputRef: te, autoHideSearch: !0, allItemsLength: e.length })
|
|
3837
3835
|
] }) });
|
|
3838
|
-
},
|
|
3836
|
+
}, il = ({ cell: { value: n } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: n ? /* @__PURE__ */ s.jsx(qr, { name: n, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), jc = "_tab-panel_qgi9v_1", kc = "_full-height-no-overflow_qgi9v_5", Cc = "_disabled_qgi9v_10", nt = {
|
|
3839
3837
|
"tab-panel": "_tab-panel_qgi9v_1",
|
|
3840
|
-
tabPanel:
|
|
3838
|
+
tabPanel: jc,
|
|
3841
3839
|
"full-height-no-overflow": "_full-height-no-overflow_qgi9v_5",
|
|
3842
|
-
fullHeightNoOverflow:
|
|
3843
|
-
disabled:
|
|
3844
|
-
},
|
|
3840
|
+
fullHeightNoOverflow: kc,
|
|
3841
|
+
disabled: Cc
|
|
3842
|
+
}, cl = ({ eventKey: n, activeTab: e, fullHeightNoOverflow: t, disabled: r, className: o, children: a }) => n !== e ? null : /* @__PURE__ */ s.jsx("div", { className: x("luminus-tab-panel", nt.tabPanel, { [nt.fullHeightNoOverflow]: t }, { disabled: r }, { [nt.disabled]: r }, o), children: a }), ll = ({ activeTab: n, onSelect: e, children: t }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-tabs d-flex gap-1 mb-2"), children: t.map((r) => {
|
|
3845
3843
|
const o = r.type, a = r.props;
|
|
3846
3844
|
if (!a)
|
|
3847
3845
|
return null;
|
|
@@ -3849,65 +3847,65 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3849
3847
|
return /* @__PURE__ */ Hr(o, { ...a, key: a.eventKey, className: x({ active: n === i }, c), onClick: () => {
|
|
3850
3848
|
e(i), u && u(i);
|
|
3851
3849
|
} }, l);
|
|
3852
|
-
}) }),
|
|
3853
|
-
tab:
|
|
3854
|
-
disabled:
|
|
3855
|
-
},
|
|
3850
|
+
}) }), Nc = "_tab_1hdhk_1", $c = "_disabled_1hdhk_8", Vt = {
|
|
3851
|
+
tab: Nc,
|
|
3852
|
+
disabled: $c
|
|
3853
|
+
}, ul = ({ eventKey: n, className: e, onClick: t, disabled: r, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: x("luminus-tab text-primary rounded", Vt.tab, e, {
|
|
3856
3854
|
disabled: r
|
|
3857
3855
|
}, { [Vt.disabled]: r }), onClick: () => t && !r && t(n), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: o }) : o });
|
|
3858
3856
|
export {
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3857
|
+
Vc as Alert,
|
|
3858
|
+
Pc as ApiFileDownloadButton,
|
|
3859
|
+
Bc as AppSearch,
|
|
3860
|
+
Gc as AuthTemplate,
|
|
3861
|
+
qr as AvatarIcon,
|
|
3864
3862
|
nr as Backdrop,
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3863
|
+
Rc as Badge,
|
|
3864
|
+
lc as Card,
|
|
3865
|
+
Kc as CheckInput,
|
|
3866
|
+
qc as Collapse,
|
|
3869
3867
|
at as ContextButton,
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3868
|
+
Ri as Dropdown,
|
|
3869
|
+
Yc as DropdownDivider,
|
|
3870
|
+
Mi as DropdownItem,
|
|
3871
|
+
Jc as DropdownPicker,
|
|
3872
|
+
Di as DropdownToggle,
|
|
3875
3873
|
Zn as FileUploadContextButton,
|
|
3876
|
-
|
|
3877
|
-
|
|
3874
|
+
Lc as FileUploadDropdownItem,
|
|
3875
|
+
Fa as FloatingFormSubmit,
|
|
3878
3876
|
He as FloatingLabelInput,
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3877
|
+
Wc as HomeDashboard,
|
|
3878
|
+
Zc as HookFormCheckInput,
|
|
3879
|
+
rl as HookFormDropdownPicker,
|
|
3880
|
+
ol as HookFormFileInput,
|
|
3881
|
+
sl as HookFormFloatingSubmit,
|
|
3882
|
+
el as HookFormRadioInput,
|
|
3883
|
+
al as HookFormSelectInput,
|
|
3884
|
+
tl as HookFormTextAreaInput,
|
|
3885
|
+
nl as HookFormTextInput,
|
|
3886
|
+
zc as HtmlTooltip,
|
|
3889
3887
|
Z as IconButton,
|
|
3890
3888
|
ye as InvalidFeedback,
|
|
3891
3889
|
Kr as Loading,
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3890
|
+
Jr as LoadingBlock,
|
|
3891
|
+
Ac as MonthPicker,
|
|
3892
|
+
ml as NoInputContainer,
|
|
3893
|
+
Hc as PhotoLibrary,
|
|
3894
|
+
_c as PhotoLightbox,
|
|
3897
3895
|
Ct as PrimaryButton,
|
|
3898
3896
|
xe as RowLabelInput,
|
|
3899
|
-
|
|
3897
|
+
Xc as SelectInput,
|
|
3900
3898
|
yt as SimplePicker,
|
|
3901
3899
|
Or as SimpleToggle,
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3900
|
+
gl as SimpleTooltip,
|
|
3901
|
+
ul as Tab,
|
|
3902
|
+
cl as TabPanel,
|
|
3903
|
+
ll as Tabs,
|
|
3904
|
+
Qc as TextInput,
|
|
3907
3905
|
z as Typography,
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3906
|
+
fl as UserAvatarToggle,
|
|
3907
|
+
il as UserAvatarValueFormat,
|
|
3908
|
+
Uc as VersionInfo,
|
|
3909
|
+
Lt as WidgetCard,
|
|
3910
|
+
Fc as YearPicker
|
|
3913
3911
|
};
|