react-luminus-components 1.2.59 → 1.2.60
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/components/NewTabs/Tab/Tab.d.ts +2 -1
- package/dist/components/NewTabs/TabPanel/TabPanel.d.ts +2 -1
- package/dist/hooks/useGetApiData/useGetApiData.d.ts +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +137 -137
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +704 -700
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { j as s, t as re, c as ae, g as
|
|
2
|
-
import { ah as
|
|
1
|
+
import { j as s, t as re, c as ae, g as Zn, T as er, a as tr, b as x, s as yt, E as nr, d as rr, e as or, f as sr, h as ar, u as ge, i as V, k as ir, l as cr, m as lr, n as ur, o as dr, p as hr, q as mr, r as fr, v as at, w as it, x as pr, y as gr, z as wr, P as be, F as ue, A as xr, B as yr, C as ct, S as vt, D as De, G as Pe, H as lt, I as vr, J as Bt, K as $e, L as Re, O as bt, M as br, N as ie, Q as _r, R as jr, U as Vt, V as ut, W as dt, X as Q, Y as kr, Z as Ut, _ as Cr, $ as Kt, a0 as Nr, a1 as $r, a2 as Ir, a3 as Sr, a4 as zt, a5 as je, a6 as Tr, a7 as Er, a8 as Or, a9 as Mr, aa as Dr, ab as Xe, ac as Ge, ad as Qt, ae as we, af as Pr } from "./NoInputContainer-vBsdl4By.js";
|
|
2
|
+
import { ah as Qc, ag as Xc } from "./NoInputContainer-vBsdl4By.js";
|
|
3
3
|
import * as A from "react";
|
|
4
|
-
import Z, { useCallback as O, useMemo as z, useEffect as D, useRef as Y, useState as P, useReducer as
|
|
5
|
-
import { d as
|
|
6
|
-
import { L as
|
|
7
|
-
import { useFormContext as de, Controller as
|
|
8
|
-
import { m as
|
|
9
|
-
import { u as
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
4
|
+
import Z, { useCallback as O, useMemo as z, useEffect as D, useRef as Y, useState as P, useReducer as Xt, useContext as q, createElement as Ar } from "react";
|
|
5
|
+
import { d as Jt, u as Fr, q as _t, E as Ae, M as Fe } from "./EventType-BITUq9bG.js";
|
|
6
|
+
import { L as Zc } from "./EventType-BITUq9bG.js";
|
|
7
|
+
import { useFormContext as de, Controller as Zt } from "react-hook-form";
|
|
8
|
+
import { m as Wr, a as en } from "./textUtils-BbxuIsKq.js";
|
|
9
|
+
import { u as tn, a as nn, b as rn } from "./useFormControlType-BAFqxupC.js";
|
|
10
|
+
import { S as tl } from "./SimpleTooltip-D_EP1VLp.js";
|
|
11
|
+
const yc = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
12
12
|
const r = O(async () => {
|
|
13
13
|
var c;
|
|
14
14
|
const o = await t();
|
|
@@ -19,7 +19,7 @@ const wc = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
|
19
19
|
}, [t, e]);
|
|
20
20
|
return /* @__PURE__ */ s.jsx("div", { role: "button", onClick: r, children: n });
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function on(t, e) {
|
|
23
23
|
const n = re(t);
|
|
24
24
|
if (isNaN(e))
|
|
25
25
|
return ae(t, NaN);
|
|
@@ -34,9 +34,9 @@ function rn(t, e) {
|
|
|
34
34
|
r
|
|
35
35
|
), n);
|
|
36
36
|
}
|
|
37
|
-
let
|
|
37
|
+
let Rr = {};
|
|
38
38
|
function Be() {
|
|
39
|
-
return
|
|
39
|
+
return Rr;
|
|
40
40
|
}
|
|
41
41
|
function Se(t, e) {
|
|
42
42
|
var c, l, u, d;
|
|
@@ -46,7 +46,7 @@ function Se(t, e) {
|
|
|
46
46
|
function qe(t) {
|
|
47
47
|
return Se(t, { weekStartsOn: 1 });
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function sn(t) {
|
|
50
50
|
const e = re(t), n = e.getFullYear(), r = ae(t, 0);
|
|
51
51
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
52
52
|
const o = qe(r), a = ae(t, 0);
|
|
@@ -54,11 +54,11 @@ function on(t) {
|
|
|
54
54
|
const i = qe(a);
|
|
55
55
|
return e.getTime() >= o.getTime() ? n + 1 : e.getTime() >= i.getTime() ? n : n - 1;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function jt(t) {
|
|
58
58
|
const e = re(t);
|
|
59
59
|
return e.setHours(0, 0, 0, 0), e;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function kt(t) {
|
|
62
62
|
const e = re(t), n = new Date(
|
|
63
63
|
Date.UTC(
|
|
64
64
|
e.getFullYear(),
|
|
@@ -72,31 +72,31 @@ function jt(t) {
|
|
|
72
72
|
);
|
|
73
73
|
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
const n =
|
|
77
|
-
return Math.round((o - a) /
|
|
75
|
+
function qr(t, e) {
|
|
76
|
+
const n = jt(t), r = jt(e), o = +n - kt(n), a = +r - kt(r);
|
|
77
|
+
return Math.round((o - a) / Wr);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
const e =
|
|
79
|
+
function Lr(t) {
|
|
80
|
+
const e = sn(t), n = ae(t, 0);
|
|
81
81
|
return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), qe(n);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
83
|
+
function Yr(t, e) {
|
|
84
|
+
return on(t, e * 12);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Hr(t) {
|
|
87
87
|
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
if (!
|
|
89
|
+
function Gr(t) {
|
|
90
|
+
if (!Hr(t) && typeof t != "number")
|
|
91
91
|
return !1;
|
|
92
92
|
const e = re(t);
|
|
93
93
|
return !isNaN(Number(e));
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Br(t) {
|
|
96
96
|
const e = re(t), n = ae(t, 0);
|
|
97
97
|
return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const Vr = {
|
|
100
100
|
lessThanXSeconds: {
|
|
101
101
|
one: "less than a second",
|
|
102
102
|
other: "less than {{count}} seconds"
|
|
@@ -158,9 +158,9 @@ const Br = {
|
|
|
158
158
|
one: "almost 1 year",
|
|
159
159
|
other: "almost {{count}} years"
|
|
160
160
|
}
|
|
161
|
-
},
|
|
161
|
+
}, Ur = (t, e, n) => {
|
|
162
162
|
let r;
|
|
163
|
-
const o =
|
|
163
|
+
const o = Vr[t];
|
|
164
164
|
return typeof o == "string" ? r = o : e === 1 ? r = o.one : r = o.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
165
165
|
};
|
|
166
166
|
function Je(t) {
|
|
@@ -169,42 +169,42 @@ function Je(t) {
|
|
|
169
169
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
const
|
|
172
|
+
const Kr = {
|
|
173
173
|
full: "EEEE, MMMM do, y",
|
|
174
174
|
long: "MMMM do, y",
|
|
175
175
|
medium: "MMM d, y",
|
|
176
176
|
short: "MM/dd/yyyy"
|
|
177
|
-
},
|
|
177
|
+
}, zr = {
|
|
178
178
|
full: "h:mm:ss a zzzz",
|
|
179
179
|
long: "h:mm:ss a z",
|
|
180
180
|
medium: "h:mm:ss a",
|
|
181
181
|
short: "h:mm a"
|
|
182
|
-
},
|
|
182
|
+
}, Qr = {
|
|
183
183
|
full: "{{date}} 'at' {{time}}",
|
|
184
184
|
long: "{{date}} 'at' {{time}}",
|
|
185
185
|
medium: "{{date}}, {{time}}",
|
|
186
186
|
short: "{{date}}, {{time}}"
|
|
187
|
-
},
|
|
187
|
+
}, Xr = {
|
|
188
188
|
date: Je({
|
|
189
|
-
formats:
|
|
189
|
+
formats: Kr,
|
|
190
190
|
defaultWidth: "full"
|
|
191
191
|
}),
|
|
192
192
|
time: Je({
|
|
193
|
-
formats:
|
|
193
|
+
formats: zr,
|
|
194
194
|
defaultWidth: "full"
|
|
195
195
|
}),
|
|
196
196
|
dateTime: Je({
|
|
197
|
-
formats:
|
|
197
|
+
formats: Qr,
|
|
198
198
|
defaultWidth: "full"
|
|
199
199
|
})
|
|
200
|
-
},
|
|
200
|
+
}, Jr = {
|
|
201
201
|
lastWeek: "'last' eeee 'at' p",
|
|
202
202
|
yesterday: "'yesterday at' p",
|
|
203
203
|
today: "'today at' p",
|
|
204
204
|
tomorrow: "'tomorrow at' p",
|
|
205
205
|
nextWeek: "eeee 'at' p",
|
|
206
206
|
other: "P"
|
|
207
|
-
},
|
|
207
|
+
}, Zr = (t, e, n, r) => Jr[t];
|
|
208
208
|
function ke(t) {
|
|
209
209
|
return (e, n) => {
|
|
210
210
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
@@ -220,15 +220,15 @@ function ke(t) {
|
|
|
220
220
|
return o[a];
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
const
|
|
223
|
+
const eo = {
|
|
224
224
|
narrow: ["B", "A"],
|
|
225
225
|
abbreviated: ["BC", "AD"],
|
|
226
226
|
wide: ["Before Christ", "Anno Domini"]
|
|
227
|
-
},
|
|
227
|
+
}, to = {
|
|
228
228
|
narrow: ["1", "2", "3", "4"],
|
|
229
229
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
230
230
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
231
|
-
},
|
|
231
|
+
}, no = {
|
|
232
232
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
233
233
|
abbreviated: [
|
|
234
234
|
"Jan",
|
|
@@ -258,7 +258,7 @@ const Zr = {
|
|
|
258
258
|
"November",
|
|
259
259
|
"December"
|
|
260
260
|
]
|
|
261
|
-
},
|
|
261
|
+
}, ro = {
|
|
262
262
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
263
263
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
264
264
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -271,7 +271,7 @@ const Zr = {
|
|
|
271
271
|
"Friday",
|
|
272
272
|
"Saturday"
|
|
273
273
|
]
|
|
274
|
-
},
|
|
274
|
+
}, oo = {
|
|
275
275
|
narrow: {
|
|
276
276
|
am: "a",
|
|
277
277
|
pm: "p",
|
|
@@ -302,7 +302,7 @@ const Zr = {
|
|
|
302
302
|
evening: "evening",
|
|
303
303
|
night: "night"
|
|
304
304
|
}
|
|
305
|
-
},
|
|
305
|
+
}, so = {
|
|
306
306
|
narrow: {
|
|
307
307
|
am: "a",
|
|
308
308
|
pm: "p",
|
|
@@ -333,7 +333,7 @@ const Zr = {
|
|
|
333
333
|
evening: "in the evening",
|
|
334
334
|
night: "at night"
|
|
335
335
|
}
|
|
336
|
-
},
|
|
336
|
+
}, ao = (t, e) => {
|
|
337
337
|
const n = Number(t), r = n % 100;
|
|
338
338
|
if (r > 20 || r < 10)
|
|
339
339
|
switch (r % 10) {
|
|
@@ -345,29 +345,29 @@ const Zr = {
|
|
|
345
345
|
return n + "rd";
|
|
346
346
|
}
|
|
347
347
|
return n + "th";
|
|
348
|
-
},
|
|
349
|
-
ordinalNumber:
|
|
348
|
+
}, io = {
|
|
349
|
+
ordinalNumber: ao,
|
|
350
350
|
era: ke({
|
|
351
|
-
values:
|
|
351
|
+
values: eo,
|
|
352
352
|
defaultWidth: "wide"
|
|
353
353
|
}),
|
|
354
354
|
quarter: ke({
|
|
355
|
-
values:
|
|
355
|
+
values: to,
|
|
356
356
|
defaultWidth: "wide",
|
|
357
357
|
argumentCallback: (t) => t - 1
|
|
358
358
|
}),
|
|
359
359
|
month: ke({
|
|
360
|
-
values:
|
|
360
|
+
values: no,
|
|
361
361
|
defaultWidth: "wide"
|
|
362
362
|
}),
|
|
363
363
|
day: ke({
|
|
364
|
-
values:
|
|
364
|
+
values: ro,
|
|
365
365
|
defaultWidth: "wide"
|
|
366
366
|
}),
|
|
367
367
|
dayPeriod: ke({
|
|
368
|
-
values:
|
|
368
|
+
values: oo,
|
|
369
369
|
defaultWidth: "wide",
|
|
370
|
-
formattingValues:
|
|
370
|
+
formattingValues: so,
|
|
371
371
|
defaultFormattingWidth: "wide"
|
|
372
372
|
})
|
|
373
373
|
};
|
|
@@ -376,9 +376,9 @@ function Ce(t) {
|
|
|
376
376
|
const r = n.width, o = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], a = e.match(o);
|
|
377
377
|
if (!a)
|
|
378
378
|
return null;
|
|
379
|
-
const i = a[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(c) ?
|
|
379
|
+
const i = a[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(c) ? lo(c, (h) => h.test(i)) : (
|
|
380
380
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
381
|
-
|
|
381
|
+
co(c, (h) => h.test(i))
|
|
382
382
|
);
|
|
383
383
|
let u;
|
|
384
384
|
u = t.valueCallback ? t.valueCallback(l) : l, u = n.valueCallback ? (
|
|
@@ -389,17 +389,17 @@ function Ce(t) {
|
|
|
389
389
|
return { value: u, rest: d };
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function co(t, e) {
|
|
393
393
|
for (const n in t)
|
|
394
394
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
395
395
|
return n;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function lo(t, e) {
|
|
398
398
|
for (let n = 0; n < t.length; n++)
|
|
399
399
|
if (e(t[n]))
|
|
400
400
|
return n;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function uo(t) {
|
|
403
403
|
return (e, n = {}) => {
|
|
404
404
|
const r = e.match(t.matchPattern);
|
|
405
405
|
if (!r)
|
|
@@ -413,23 +413,23 @@ function lo(t) {
|
|
|
413
413
|
return { value: i, rest: c };
|
|
414
414
|
};
|
|
415
415
|
}
|
|
416
|
-
const
|
|
416
|
+
const ho = /^(\d+)(th|st|nd|rd)?/i, mo = /\d+/i, fo = {
|
|
417
417
|
narrow: /^(b|a)/i,
|
|
418
418
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
419
419
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
420
|
-
}, fo = {
|
|
421
|
-
any: [/^b/i, /^(a|c)/i]
|
|
422
420
|
}, po = {
|
|
421
|
+
any: [/^b/i, /^(a|c)/i]
|
|
422
|
+
}, go = {
|
|
423
423
|
narrow: /^[1234]/i,
|
|
424
424
|
abbreviated: /^q[1234]/i,
|
|
425
425
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
426
|
-
}, go = {
|
|
427
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
428
426
|
}, wo = {
|
|
427
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
428
|
+
}, xo = {
|
|
429
429
|
narrow: /^[jfmasond]/i,
|
|
430
430
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
431
431
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
432
|
-
},
|
|
432
|
+
}, yo = {
|
|
433
433
|
narrow: [
|
|
434
434
|
/^j/i,
|
|
435
435
|
/^f/i,
|
|
@@ -458,18 +458,18 @@ const uo = /^(\d+)(th|st|nd|rd)?/i, ho = /\d+/i, mo = {
|
|
|
458
458
|
/^n/i,
|
|
459
459
|
/^d/i
|
|
460
460
|
]
|
|
461
|
-
},
|
|
461
|
+
}, vo = {
|
|
462
462
|
narrow: /^[smtwf]/i,
|
|
463
463
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
464
464
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
465
465
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
466
|
-
},
|
|
466
|
+
}, bo = {
|
|
467
467
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
468
468
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
469
|
-
},
|
|
469
|
+
}, _o = {
|
|
470
470
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
471
471
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
472
|
-
},
|
|
472
|
+
}, jo = {
|
|
473
473
|
any: {
|
|
474
474
|
am: /^a/i,
|
|
475
475
|
pm: /^p/i,
|
|
@@ -480,64 +480,64 @@ const uo = /^(\d+)(th|st|nd|rd)?/i, ho = /\d+/i, mo = {
|
|
|
480
480
|
evening: /evening/i,
|
|
481
481
|
night: /night/i
|
|
482
482
|
}
|
|
483
|
-
},
|
|
484
|
-
ordinalNumber:
|
|
485
|
-
matchPattern:
|
|
486
|
-
parsePattern:
|
|
483
|
+
}, ko = {
|
|
484
|
+
ordinalNumber: uo({
|
|
485
|
+
matchPattern: ho,
|
|
486
|
+
parsePattern: mo,
|
|
487
487
|
valueCallback: (t) => parseInt(t, 10)
|
|
488
488
|
}),
|
|
489
489
|
era: Ce({
|
|
490
|
-
matchPatterns:
|
|
490
|
+
matchPatterns: fo,
|
|
491
491
|
defaultMatchWidth: "wide",
|
|
492
|
-
parsePatterns:
|
|
492
|
+
parsePatterns: po,
|
|
493
493
|
defaultParseWidth: "any"
|
|
494
494
|
}),
|
|
495
495
|
quarter: Ce({
|
|
496
|
-
matchPatterns:
|
|
496
|
+
matchPatterns: go,
|
|
497
497
|
defaultMatchWidth: "wide",
|
|
498
|
-
parsePatterns:
|
|
498
|
+
parsePatterns: wo,
|
|
499
499
|
defaultParseWidth: "any",
|
|
500
500
|
valueCallback: (t) => t + 1
|
|
501
501
|
}),
|
|
502
502
|
month: Ce({
|
|
503
|
-
matchPatterns:
|
|
503
|
+
matchPatterns: xo,
|
|
504
504
|
defaultMatchWidth: "wide",
|
|
505
|
-
parsePatterns:
|
|
505
|
+
parsePatterns: yo,
|
|
506
506
|
defaultParseWidth: "any"
|
|
507
507
|
}),
|
|
508
508
|
day: Ce({
|
|
509
|
-
matchPatterns:
|
|
509
|
+
matchPatterns: vo,
|
|
510
510
|
defaultMatchWidth: "wide",
|
|
511
|
-
parsePatterns:
|
|
511
|
+
parsePatterns: bo,
|
|
512
512
|
defaultParseWidth: "any"
|
|
513
513
|
}),
|
|
514
514
|
dayPeriod: Ce({
|
|
515
|
-
matchPatterns:
|
|
515
|
+
matchPatterns: _o,
|
|
516
516
|
defaultMatchWidth: "any",
|
|
517
|
-
parsePatterns:
|
|
517
|
+
parsePatterns: jo,
|
|
518
518
|
defaultParseWidth: "any"
|
|
519
519
|
})
|
|
520
|
-
},
|
|
520
|
+
}, Co = {
|
|
521
521
|
code: "en-US",
|
|
522
|
-
formatDistance:
|
|
523
|
-
formatLong:
|
|
524
|
-
formatRelative:
|
|
525
|
-
localize:
|
|
526
|
-
match:
|
|
522
|
+
formatDistance: Ur,
|
|
523
|
+
formatLong: Xr,
|
|
524
|
+
formatRelative: Zr,
|
|
525
|
+
localize: io,
|
|
526
|
+
match: ko,
|
|
527
527
|
options: {
|
|
528
528
|
weekStartsOn: 0,
|
|
529
529
|
firstWeekContainsDate: 1
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
|
-
function
|
|
532
|
+
function No(t) {
|
|
533
533
|
const e = re(t);
|
|
534
|
-
return
|
|
534
|
+
return qr(e, Br(e)) + 1;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
const e = re(t), n = +qe(e) - +
|
|
538
|
-
return Math.round(n /
|
|
536
|
+
function $o(t) {
|
|
537
|
+
const e = re(t), n = +qe(e) - +Lr(e);
|
|
538
|
+
return Math.round(n / en) + 1;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function an(t, e) {
|
|
541
541
|
var d, h, m, g;
|
|
542
542
|
const n = re(t), r = n.getFullYear(), o = Be(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((g = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = ae(t, 0);
|
|
543
543
|
i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
@@ -546,14 +546,14 @@ function sn(t, e) {
|
|
|
546
546
|
const u = Se(l, e);
|
|
547
547
|
return n.getTime() >= c.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Io(t, e) {
|
|
550
550
|
var c, l, u, d;
|
|
551
|
-
const n = Be(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((l = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o =
|
|
551
|
+
const n = Be(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((l = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = an(t, e), a = ae(t, 0);
|
|
552
552
|
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), Se(a, e);
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
const n = re(t), r = +Se(n, e) -
|
|
556
|
-
return Math.round(r /
|
|
554
|
+
function So(t, e) {
|
|
555
|
+
const n = re(t), r = +Se(n, e) - +Io(n, e);
|
|
556
|
+
return Math.round(r / en) + 1;
|
|
557
557
|
}
|
|
558
558
|
function L(t, e) {
|
|
559
559
|
const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
|
|
@@ -622,7 +622,7 @@ const le = {
|
|
|
622
622
|
afternoon: "afternoon",
|
|
623
623
|
evening: "evening",
|
|
624
624
|
night: "night"
|
|
625
|
-
},
|
|
625
|
+
}, Ct = {
|
|
626
626
|
// Era
|
|
627
627
|
G: function(t, e, n) {
|
|
628
628
|
const r = t.getFullYear() > 0 ? 1 : 0;
|
|
@@ -648,7 +648,7 @@ const le = {
|
|
|
648
648
|
},
|
|
649
649
|
// Local week-numbering year
|
|
650
650
|
Y: function(t, e, n, r) {
|
|
651
|
-
const o =
|
|
651
|
+
const o = an(t, r), a = o > 0 ? o : 1 - o;
|
|
652
652
|
if (e === "YY") {
|
|
653
653
|
const i = a % 100;
|
|
654
654
|
return L(i, 2);
|
|
@@ -657,7 +657,7 @@ const le = {
|
|
|
657
657
|
},
|
|
658
658
|
// ISO week-numbering year
|
|
659
659
|
R: function(t, e) {
|
|
660
|
-
const n =
|
|
660
|
+
const n = sn(t);
|
|
661
661
|
return L(n, e.length);
|
|
662
662
|
},
|
|
663
663
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -780,12 +780,12 @@ const le = {
|
|
|
780
780
|
},
|
|
781
781
|
// Local week of year
|
|
782
782
|
w: function(t, e, n, r) {
|
|
783
|
-
const o =
|
|
783
|
+
const o = So(t, r);
|
|
784
784
|
return e === "wo" ? n.ordinalNumber(o, { unit: "week" }) : L(o, e.length);
|
|
785
785
|
},
|
|
786
786
|
// ISO week of year
|
|
787
787
|
I: function(t, e, n) {
|
|
788
|
-
const r =
|
|
788
|
+
const r = $o(t);
|
|
789
789
|
return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : L(r, e.length);
|
|
790
790
|
},
|
|
791
791
|
// Day of the month
|
|
@@ -794,7 +794,7 @@ const le = {
|
|
|
794
794
|
},
|
|
795
795
|
// Day of year
|
|
796
796
|
D: function(t, e, n) {
|
|
797
|
-
const r =
|
|
797
|
+
const r = No(t);
|
|
798
798
|
return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : L(r, e.length);
|
|
799
799
|
},
|
|
800
800
|
// Day of week
|
|
@@ -1048,7 +1048,7 @@ const le = {
|
|
|
1048
1048
|
return "Z";
|
|
1049
1049
|
switch (e) {
|
|
1050
1050
|
case "X":
|
|
1051
|
-
return
|
|
1051
|
+
return $t(r);
|
|
1052
1052
|
case "XXXX":
|
|
1053
1053
|
case "XX":
|
|
1054
1054
|
return pe(r);
|
|
@@ -1063,7 +1063,7 @@ const le = {
|
|
|
1063
1063
|
const r = t.getTimezoneOffset();
|
|
1064
1064
|
switch (e) {
|
|
1065
1065
|
case "x":
|
|
1066
|
-
return
|
|
1066
|
+
return $t(r);
|
|
1067
1067
|
case "xxxx":
|
|
1068
1068
|
case "xx":
|
|
1069
1069
|
return pe(r);
|
|
@@ -1080,7 +1080,7 @@ const le = {
|
|
|
1080
1080
|
case "O":
|
|
1081
1081
|
case "OO":
|
|
1082
1082
|
case "OOO":
|
|
1083
|
-
return "GMT" +
|
|
1083
|
+
return "GMT" + Nt(r, ":");
|
|
1084
1084
|
case "OOOO":
|
|
1085
1085
|
default:
|
|
1086
1086
|
return "GMT" + pe(r, ":");
|
|
@@ -1093,7 +1093,7 @@ const le = {
|
|
|
1093
1093
|
case "z":
|
|
1094
1094
|
case "zz":
|
|
1095
1095
|
case "zzz":
|
|
1096
|
-
return "GMT" +
|
|
1096
|
+
return "GMT" + Nt(r, ":");
|
|
1097
1097
|
case "zzzz":
|
|
1098
1098
|
default:
|
|
1099
1099
|
return "GMT" + pe(r, ":");
|
|
@@ -1110,18 +1110,18 @@ const le = {
|
|
|
1110
1110
|
return L(r, e.length);
|
|
1111
1111
|
}
|
|
1112
1112
|
};
|
|
1113
|
-
function
|
|
1113
|
+
function Nt(t, e = "") {
|
|
1114
1114
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), o = Math.trunc(r / 60), a = r % 60;
|
|
1115
1115
|
return a === 0 ? n + String(o) : n + String(o) + e + L(a, 2);
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function $t(t, e) {
|
|
1118
1118
|
return t % 60 === 0 ? (t > 0 ? "-" : "+") + L(Math.abs(t) / 60, 2) : pe(t, e);
|
|
1119
1119
|
}
|
|
1120
1120
|
function pe(t, e = "") {
|
|
1121
1121
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), o = L(Math.trunc(r / 60), 2), a = L(r % 60, 2);
|
|
1122
1122
|
return n + o + e + a;
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const It = (t, e) => {
|
|
1125
1125
|
switch (t) {
|
|
1126
1126
|
case "P":
|
|
1127
1127
|
return e.date({ width: "short" });
|
|
@@ -1133,7 +1133,7 @@ const $t = (t, e) => {
|
|
|
1133
1133
|
default:
|
|
1134
1134
|
return e.date({ width: "full" });
|
|
1135
1135
|
}
|
|
1136
|
-
},
|
|
1136
|
+
}, cn = (t, e) => {
|
|
1137
1137
|
switch (t) {
|
|
1138
1138
|
case "p":
|
|
1139
1139
|
return e.time({ width: "short" });
|
|
@@ -1145,10 +1145,10 @@ const $t = (t, e) => {
|
|
|
1145
1145
|
default:
|
|
1146
1146
|
return e.time({ width: "full" });
|
|
1147
1147
|
}
|
|
1148
|
-
},
|
|
1148
|
+
}, To = (t, e) => {
|
|
1149
1149
|
const n = t.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
|
|
1150
1150
|
if (!o)
|
|
1151
|
-
return
|
|
1151
|
+
return It(t, e);
|
|
1152
1152
|
let a;
|
|
1153
1153
|
switch (r) {
|
|
1154
1154
|
case "P":
|
|
@@ -1165,48 +1165,48 @@ const $t = (t, e) => {
|
|
|
1165
1165
|
a = e.dateTime({ width: "full" });
|
|
1166
1166
|
break;
|
|
1167
1167
|
}
|
|
1168
|
-
return a.replace("{{date}}",
|
|
1169
|
-
},
|
|
1170
|
-
p:
|
|
1171
|
-
P:
|
|
1172
|
-
},
|
|
1173
|
-
function Do(t) {
|
|
1174
|
-
return Eo.test(t);
|
|
1175
|
-
}
|
|
1168
|
+
return a.replace("{{date}}", It(r, e)).replace("{{time}}", cn(o, e));
|
|
1169
|
+
}, Eo = {
|
|
1170
|
+
p: cn,
|
|
1171
|
+
P: To
|
|
1172
|
+
}, Oo = /^D+$/, Mo = /^Y+$/, Do = ["D", "DD", "YY", "YYYY"];
|
|
1176
1173
|
function Po(t) {
|
|
1177
1174
|
return Oo.test(t);
|
|
1178
1175
|
}
|
|
1179
|
-
function Ao(t
|
|
1180
|
-
|
|
1181
|
-
if (console.warn(r), Mo.includes(t))
|
|
1182
|
-
throw new RangeError(r);
|
|
1176
|
+
function Ao(t) {
|
|
1177
|
+
return Mo.test(t);
|
|
1183
1178
|
}
|
|
1184
1179
|
function Fo(t, e, n) {
|
|
1180
|
+
const r = Wo(t, e, n);
|
|
1181
|
+
if (console.warn(r), Do.includes(t))
|
|
1182
|
+
throw new RangeError(r);
|
|
1183
|
+
}
|
|
1184
|
+
function Wo(t, e, n) {
|
|
1185
1185
|
const r = t[0] === "Y" ? "years" : "days of the month";
|
|
1186
1186
|
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1187
1187
|
}
|
|
1188
|
-
const
|
|
1189
|
-
function
|
|
1188
|
+
const Ro = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, qo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Lo = /^'([^]*?)'?$/, Yo = /''/g, Ho = /[a-zA-Z]/;
|
|
1189
|
+
function ln(t, e, n) {
|
|
1190
1190
|
var d, h, m, g, b, w, f, j;
|
|
1191
|
-
const r = Be(), o = (n == null ? void 0 : n.locale) ?? r.locale ??
|
|
1192
|
-
if (!
|
|
1191
|
+
const r = Be(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Co, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((h = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((w = (b = n == null ? void 0 : n.locale) == null ? void 0 : b.options) == null ? void 0 : w.weekStartsOn) ?? r.weekStartsOn ?? ((j = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : j.weekStartsOn) ?? 0, c = re(t);
|
|
1192
|
+
if (!Gr(c))
|
|
1193
1193
|
throw new RangeError("Invalid time value");
|
|
1194
|
-
let l = e.match(
|
|
1194
|
+
let l = e.match(qo).map((v) => {
|
|
1195
1195
|
const p = v[0];
|
|
1196
1196
|
if (p === "p" || p === "P") {
|
|
1197
|
-
const C =
|
|
1197
|
+
const C = Eo[p];
|
|
1198
1198
|
return C(v, o.formatLong);
|
|
1199
1199
|
}
|
|
1200
1200
|
return v;
|
|
1201
|
-
}).join("").match(
|
|
1201
|
+
}).join("").match(Ro).map((v) => {
|
|
1202
1202
|
if (v === "''")
|
|
1203
1203
|
return { isToken: !1, value: "'" };
|
|
1204
1204
|
const p = v[0];
|
|
1205
1205
|
if (p === "'")
|
|
1206
|
-
return { isToken: !1, value:
|
|
1207
|
-
if (
|
|
1206
|
+
return { isToken: !1, value: Go(v) };
|
|
1207
|
+
if (Ct[p])
|
|
1208
1208
|
return { isToken: !0, value: v };
|
|
1209
|
-
if (p.match(
|
|
1209
|
+
if (p.match(Ho))
|
|
1210
1210
|
throw new RangeError(
|
|
1211
1211
|
"Format string contains an unescaped latin alphabet character `" + p + "`"
|
|
1212
1212
|
);
|
|
@@ -1222,16 +1222,16 @@ function cn(t, e, n) {
|
|
|
1222
1222
|
if (!v.isToken)
|
|
1223
1223
|
return v.value;
|
|
1224
1224
|
const p = v.value;
|
|
1225
|
-
(!(n != null && n.useAdditionalWeekYearTokens) &&
|
|
1226
|
-
const C =
|
|
1225
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && Ao(p) || !(n != null && n.useAdditionalDayOfYearTokens) && Po(p)) && Fo(p, e, String(t));
|
|
1226
|
+
const C = Ct[p[0]];
|
|
1227
1227
|
return C(c, p, o.localize, u);
|
|
1228
1228
|
}).join("");
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1231
|
-
const e = t.match(
|
|
1232
|
-
return e ? e[1].replace(
|
|
1230
|
+
function Go(t) {
|
|
1231
|
+
const e = t.match(Lo);
|
|
1232
|
+
return e ? e[1].replace(Yo, "'") : t;
|
|
1233
1233
|
}
|
|
1234
|
-
var
|
|
1234
|
+
var Bo = function(t, e, n, r, o, a, i, c) {
|
|
1235
1235
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
1236
1236
|
throw new Error("invariant requires an error message argument");
|
|
1237
1237
|
if (!t) {
|
|
@@ -1250,8 +1250,8 @@ var Go = function(t, e, n, r, o, a, i, c) {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
throw l.framesToPop = 1, l;
|
|
1252
1252
|
}
|
|
1253
|
-
},
|
|
1254
|
-
const
|
|
1253
|
+
}, Vo = Bo;
|
|
1254
|
+
const St = /* @__PURE__ */ Zn(Vo);
|
|
1255
1255
|
function Ne(...t) {
|
|
1256
1256
|
return t.filter((e) => e != null).reduce((e, n) => {
|
|
1257
1257
|
if (typeof n != "function")
|
|
@@ -1261,22 +1261,22 @@ function Ne(...t) {
|
|
|
1261
1261
|
};
|
|
1262
1262
|
}, null);
|
|
1263
1263
|
}
|
|
1264
|
-
const
|
|
1264
|
+
const Uo = {
|
|
1265
1265
|
height: ["marginTop", "marginBottom"],
|
|
1266
1266
|
width: ["marginLeft", "marginRight"]
|
|
1267
1267
|
};
|
|
1268
|
-
function
|
|
1269
|
-
const n = `offset${t[0].toUpperCase()}${t.slice(1)}`, r = e[n], o =
|
|
1268
|
+
function Ko(t, e) {
|
|
1269
|
+
const n = `offset${t[0].toUpperCase()}${t.slice(1)}`, r = e[n], o = Uo[t];
|
|
1270
1270
|
return r + // @ts-ignore
|
|
1271
|
-
parseInt(
|
|
1272
|
-
parseInt(
|
|
1271
|
+
parseInt(yt(e, o[0]), 10) + // @ts-ignore
|
|
1272
|
+
parseInt(yt(e, o[1]), 10);
|
|
1273
1273
|
}
|
|
1274
|
-
const
|
|
1275
|
-
[
|
|
1276
|
-
[nr]: "collapsing",
|
|
1274
|
+
const zo = {
|
|
1275
|
+
[nr]: "collapse",
|
|
1277
1276
|
[rr]: "collapsing",
|
|
1278
|
-
[or]: "
|
|
1279
|
-
|
|
1277
|
+
[or]: "collapsing",
|
|
1278
|
+
[sr]: "collapse show"
|
|
1279
|
+
}, un = /* @__PURE__ */ Z.forwardRef(({
|
|
1280
1280
|
onEnter: t,
|
|
1281
1281
|
onEntering: e,
|
|
1282
1282
|
onEntered: n,
|
|
@@ -1290,7 +1290,7 @@ const Ko = {
|
|
|
1290
1290
|
mountOnEnter: d = !1,
|
|
1291
1291
|
unmountOnExit: h = !1,
|
|
1292
1292
|
appear: m = !1,
|
|
1293
|
-
getDimensionValue: g =
|
|
1293
|
+
getDimensionValue: g = Ko,
|
|
1294
1294
|
...b
|
|
1295
1295
|
}, w) => {
|
|
1296
1296
|
const f = typeof c == "function" ? c() : c, j = z(() => Ne((y) => {
|
|
@@ -1301,13 +1301,13 @@ const Ko = {
|
|
|
1301
1301
|
}, e), [f, e]), p = z(() => Ne((y) => {
|
|
1302
1302
|
y.style[f] = null;
|
|
1303
1303
|
}, n), [f, n]), C = z(() => Ne((y) => {
|
|
1304
|
-
y.style[f] = `${g(f, y)}px`,
|
|
1304
|
+
y.style[f] = `${g(f, y)}px`, ar(y);
|
|
1305
1305
|
}, r), [r, g, f]), k = z(() => Ne((y) => {
|
|
1306
1306
|
y.style[f] = null;
|
|
1307
1307
|
}, o), [f, o]);
|
|
1308
|
-
return /* @__PURE__ */ s.jsx(
|
|
1308
|
+
return /* @__PURE__ */ s.jsx(er, {
|
|
1309
1309
|
ref: w,
|
|
1310
|
-
addEndListener:
|
|
1310
|
+
addEndListener: tr,
|
|
1311
1311
|
...b,
|
|
1312
1312
|
"aria-expanded": b.role ? l : null,
|
|
1313
1313
|
onEnter: j,
|
|
@@ -1323,19 +1323,19 @@ const Ko = {
|
|
|
1323
1323
|
appear: m,
|
|
1324
1324
|
children: (y, $) => /* @__PURE__ */ Z.cloneElement(i, {
|
|
1325
1325
|
...$,
|
|
1326
|
-
className: x(a, i.props.className,
|
|
1326
|
+
className: x(a, i.props.className, zo[y], f === "width" && "collapse-horizontal")
|
|
1327
1327
|
})
|
|
1328
1328
|
});
|
|
1329
1329
|
});
|
|
1330
|
-
function
|
|
1330
|
+
function Qo(t, e, n, r = !1) {
|
|
1331
1331
|
const o = ge(n);
|
|
1332
1332
|
D(() => {
|
|
1333
1333
|
const a = typeof t == "function" ? t() : t;
|
|
1334
1334
|
return a.addEventListener(e, o, r), () => a.removeEventListener(e, o, r);
|
|
1335
1335
|
}, [t]);
|
|
1336
1336
|
}
|
|
1337
|
-
const
|
|
1338
|
-
function
|
|
1337
|
+
const Xo = ["as", "disabled"];
|
|
1338
|
+
function Jo(t, e) {
|
|
1339
1339
|
if (t == null)
|
|
1340
1340
|
return {};
|
|
1341
1341
|
var n = {}, r = Object.keys(t), o, a;
|
|
@@ -1343,10 +1343,10 @@ function Xo(t, e) {
|
|
|
1343
1343
|
o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
1344
1344
|
return n;
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function Zo(t) {
|
|
1347
1347
|
return !t || t.trim() === "#";
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function ht({
|
|
1350
1350
|
tagName: t,
|
|
1351
1351
|
disabled: e,
|
|
1352
1352
|
href: n,
|
|
@@ -1367,7 +1367,7 @@ function dt({
|
|
|
1367
1367
|
disabled: e
|
|
1368
1368
|
}, u];
|
|
1369
1369
|
const d = (m) => {
|
|
1370
|
-
if ((e || t === "a" &&
|
|
1370
|
+
if ((e || t === "a" && Zo(n)) && m.preventDefault(), e) {
|
|
1371
1371
|
m.stopPropagation();
|
|
1372
1372
|
return;
|
|
1373
1373
|
}
|
|
@@ -1389,14 +1389,14 @@ function dt({
|
|
|
1389
1389
|
onKeyDown: h
|
|
1390
1390
|
}, u];
|
|
1391
1391
|
}
|
|
1392
|
-
const
|
|
1392
|
+
const dn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
1393
1393
|
let {
|
|
1394
1394
|
as: n,
|
|
1395
1395
|
disabled: r
|
|
1396
|
-
} = t, o =
|
|
1396
|
+
} = t, o = Jo(t, Xo);
|
|
1397
1397
|
const [a, {
|
|
1398
1398
|
tagName: i
|
|
1399
|
-
}] =
|
|
1399
|
+
}] = ht(Object.assign({
|
|
1400
1400
|
tagName: n,
|
|
1401
1401
|
disabled: r
|
|
1402
1402
|
}, o));
|
|
@@ -1404,9 +1404,9 @@ const un = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1404
1404
|
ref: e
|
|
1405
1405
|
}));
|
|
1406
1406
|
});
|
|
1407
|
-
|
|
1408
|
-
const
|
|
1409
|
-
function
|
|
1407
|
+
dn.displayName = "Button";
|
|
1408
|
+
const es = ["onKeyDown"];
|
|
1409
|
+
function ts(t, e) {
|
|
1410
1410
|
if (t == null)
|
|
1411
1411
|
return {};
|
|
1412
1412
|
var n = {}, r = Object.keys(t), o, a;
|
|
@@ -1414,19 +1414,19 @@ function es(t, e) {
|
|
|
1414
1414
|
o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
1415
1415
|
return n;
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function ns(t) {
|
|
1418
1418
|
return !t || t.trim() === "#";
|
|
1419
1419
|
}
|
|
1420
|
-
const
|
|
1420
|
+
const hn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
1421
1421
|
let {
|
|
1422
1422
|
onKeyDown: n
|
|
1423
|
-
} = t, r =
|
|
1424
|
-
const [o] =
|
|
1423
|
+
} = t, r = ts(t, es);
|
|
1424
|
+
const [o] = ht(Object.assign({
|
|
1425
1425
|
tagName: "a"
|
|
1426
1426
|
}, r)), a = ge((i) => {
|
|
1427
1427
|
o.onKeyDown(i), n == null || n(i);
|
|
1428
1428
|
});
|
|
1429
|
-
return
|
|
1429
|
+
return ns(r.href) || r.role === "button" ? /* @__PURE__ */ s.jsx("a", Object.assign({
|
|
1430
1430
|
ref: e
|
|
1431
1431
|
}, r, o, {
|
|
1432
1432
|
onKeyDown: a
|
|
@@ -1436,8 +1436,8 @@ const dn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1436
1436
|
onKeyDown: n
|
|
1437
1437
|
}));
|
|
1438
1438
|
});
|
|
1439
|
-
|
|
1440
|
-
const
|
|
1439
|
+
hn.displayName = "Anchor";
|
|
1440
|
+
const mn = /* @__PURE__ */ A.forwardRef(({
|
|
1441
1441
|
as: t,
|
|
1442
1442
|
bsPrefix: e,
|
|
1443
1443
|
variant: n = "primary",
|
|
@@ -1449,7 +1449,7 @@ const hn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1449
1449
|
}, l) => {
|
|
1450
1450
|
const u = V(e, "btn"), [d, {
|
|
1451
1451
|
tagName: h
|
|
1452
|
-
}] =
|
|
1452
|
+
}] = ht({
|
|
1453
1453
|
tagName: t,
|
|
1454
1454
|
disabled: a,
|
|
1455
1455
|
...c
|
|
@@ -1462,18 +1462,18 @@ const hn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1462
1462
|
className: x(i, u, o && "active", n && `${u}-${n}`, r && `${u}-${r}`, c.href && a && "disabled")
|
|
1463
1463
|
});
|
|
1464
1464
|
});
|
|
1465
|
-
|
|
1466
|
-
function
|
|
1465
|
+
mn.displayName = "Button";
|
|
1466
|
+
function rs(t, e) {
|
|
1467
1467
|
return A.Children.toArray(t).some((n) => /* @__PURE__ */ A.isValidElement(n) && n.type === e);
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function os({
|
|
1470
1470
|
as: t,
|
|
1471
1471
|
bsPrefix: e,
|
|
1472
1472
|
className: n,
|
|
1473
1473
|
...r
|
|
1474
1474
|
}) {
|
|
1475
1475
|
e = V(e, "col");
|
|
1476
|
-
const o =
|
|
1476
|
+
const o = ir(), a = cr(), i = [], c = [];
|
|
1477
1477
|
return o.forEach((l) => {
|
|
1478
1478
|
const u = r[l];
|
|
1479
1479
|
delete r[l];
|
|
@@ -1494,7 +1494,7 @@ function rs({
|
|
|
1494
1494
|
spans: i
|
|
1495
1495
|
}];
|
|
1496
1496
|
}
|
|
1497
|
-
const
|
|
1497
|
+
const fn = /* @__PURE__ */ A.forwardRef(
|
|
1498
1498
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1499
1499
|
(t, e) => {
|
|
1500
1500
|
const [{
|
|
@@ -1504,7 +1504,7 @@ const mn = /* @__PURE__ */ A.forwardRef(
|
|
|
1504
1504
|
as: o = "div",
|
|
1505
1505
|
bsPrefix: a,
|
|
1506
1506
|
spans: i
|
|
1507
|
-
}] =
|
|
1507
|
+
}] = os(t);
|
|
1508
1508
|
return /* @__PURE__ */ s.jsx(o, {
|
|
1509
1509
|
...r,
|
|
1510
1510
|
ref: e,
|
|
@@ -1512,8 +1512,8 @@ const mn = /* @__PURE__ */ A.forwardRef(
|
|
|
1512
1512
|
});
|
|
1513
1513
|
}
|
|
1514
1514
|
);
|
|
1515
|
-
|
|
1516
|
-
function
|
|
1515
|
+
fn.displayName = "Col";
|
|
1516
|
+
function ss(t, e, n) {
|
|
1517
1517
|
const r = Y(t !== void 0), [o, a] = P(e), i = t !== void 0, c = r.current;
|
|
1518
1518
|
return r.current = i, !i && c && o !== e && a(e), [i ? t : o, O((...l) => {
|
|
1519
1519
|
const [u, ...d] = l;
|
|
@@ -1521,12 +1521,12 @@ function os(t, e, n) {
|
|
|
1521
1521
|
return a(u), h;
|
|
1522
1522
|
}, [n])];
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1525
|
-
const [, t] =
|
|
1524
|
+
function as() {
|
|
1525
|
+
const [, t] = Xt((e) => !e, !1);
|
|
1526
1526
|
return t;
|
|
1527
1527
|
}
|
|
1528
|
-
const Ve = /* @__PURE__ */ A.createContext(null),
|
|
1529
|
-
function
|
|
1528
|
+
const Ve = /* @__PURE__ */ A.createContext(null), is = ["children", "usePopper"];
|
|
1529
|
+
function cs(t, e) {
|
|
1530
1530
|
if (t == null)
|
|
1531
1531
|
return {};
|
|
1532
1532
|
var n = {}, r = Object.keys(t), o, a;
|
|
@@ -1534,10 +1534,10 @@ function is(t, e) {
|
|
|
1534
1534
|
o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
1535
1535
|
return n;
|
|
1536
1536
|
}
|
|
1537
|
-
const
|
|
1537
|
+
const ls = () => {
|
|
1538
1538
|
};
|
|
1539
|
-
function
|
|
1540
|
-
const e = q(Ve), [n, r] =
|
|
1539
|
+
function pn(t = {}) {
|
|
1540
|
+
const e = q(Ve), [n, r] = lr(), o = Y(!1), {
|
|
1541
1541
|
flip: a,
|
|
1542
1542
|
offset: i,
|
|
1543
1543
|
rootCloseEvent: c,
|
|
@@ -1555,7 +1555,7 @@ function fn(t = {}) {
|
|
|
1555
1555
|
setMenu: f,
|
|
1556
1556
|
menuElement: j,
|
|
1557
1557
|
toggleElement: v
|
|
1558
|
-
} = e || {}, p =
|
|
1558
|
+
} = e || {}, p = ur(v, j, dr({
|
|
1559
1559
|
placement: u || w || "bottom-start",
|
|
1560
1560
|
enabled: m,
|
|
1561
1561
|
enableEvents: h ?? g,
|
|
@@ -1565,7 +1565,7 @@ function fn(t = {}) {
|
|
|
1565
1565
|
arrowElement: n,
|
|
1566
1566
|
popperConfig: d
|
|
1567
1567
|
})), C = Object.assign({
|
|
1568
|
-
ref: f ||
|
|
1568
|
+
ref: f || ls,
|
|
1569
1569
|
"aria-labelledby": v == null ? void 0 : v.id
|
|
1570
1570
|
}, p.attributes.popper, {
|
|
1571
1571
|
style: p.styles.popper
|
|
@@ -1581,31 +1581,31 @@ function fn(t = {}) {
|
|
|
1581
1581
|
style: p.styles.arrow
|
|
1582
1582
|
}) : {}
|
|
1583
1583
|
};
|
|
1584
|
-
return
|
|
1584
|
+
return hr(j, b, {
|
|
1585
1585
|
clickTrigger: c,
|
|
1586
1586
|
disabled: !g
|
|
1587
1587
|
}), [C, k];
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1589
|
+
function gn(t) {
|
|
1590
1590
|
let {
|
|
1591
1591
|
children: e,
|
|
1592
1592
|
usePopper: n = !0
|
|
1593
|
-
} = t, r =
|
|
1594
|
-
const [o, a] =
|
|
1593
|
+
} = t, r = cs(t, is);
|
|
1594
|
+
const [o, a] = pn(Object.assign({}, r, {
|
|
1595
1595
|
usePopper: n
|
|
1596
1596
|
}));
|
|
1597
1597
|
return /* @__PURE__ */ s.jsx(s.Fragment, {
|
|
1598
1598
|
children: e(o, a)
|
|
1599
1599
|
});
|
|
1600
1600
|
}
|
|
1601
|
-
|
|
1601
|
+
gn.displayName = "DropdownMenu";
|
|
1602
1602
|
const Le = {
|
|
1603
1603
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1604
1604
|
current: 0
|
|
1605
|
-
},
|
|
1606
|
-
let
|
|
1607
|
-
function
|
|
1608
|
-
let e = q(
|
|
1605
|
+
}, wn = /* @__PURE__ */ Z.createContext(Le), us = /* @__PURE__ */ Z.createContext(!1);
|
|
1606
|
+
let ds = !!(typeof window < "u" && window.document && window.document.createElement), Ze = /* @__PURE__ */ new WeakMap();
|
|
1607
|
+
function hs(t = !1) {
|
|
1608
|
+
let e = q(wn), n = Y(null);
|
|
1609
1609
|
if (n.current === null && !t) {
|
|
1610
1610
|
var r, o;
|
|
1611
1611
|
let a = (o = Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
@@ -1620,67 +1620,67 @@ function ds(t = !1) {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
return n.current;
|
|
1622
1622
|
}
|
|
1623
|
-
function
|
|
1624
|
-
let e = q(
|
|
1625
|
-
e === Le && !
|
|
1626
|
-
let n =
|
|
1623
|
+
function ms(t) {
|
|
1624
|
+
let e = q(wn);
|
|
1625
|
+
e === Le && !ds && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
1626
|
+
let n = hs(!!t), r = e === Le && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
1627
1627
|
return t || `${r}-${n}`;
|
|
1628
1628
|
}
|
|
1629
|
-
function
|
|
1630
|
-
let e = Z.useId(), [n] = P(
|
|
1629
|
+
function fs(t) {
|
|
1630
|
+
let e = Z.useId(), [n] = P(ys()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Le.prefix}`;
|
|
1631
1631
|
return t || `${r}-${e}`;
|
|
1632
1632
|
}
|
|
1633
|
-
const
|
|
1634
|
-
function
|
|
1633
|
+
const ps = typeof Z.useId == "function" ? fs : ms;
|
|
1634
|
+
function gs() {
|
|
1635
1635
|
return !1;
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1637
|
+
function ws() {
|
|
1638
1638
|
return !0;
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1640
|
+
function xs(t) {
|
|
1641
1641
|
return () => {
|
|
1642
1642
|
};
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1645
|
-
return typeof Z.useSyncExternalStore == "function" ? Z.useSyncExternalStore(
|
|
1644
|
+
function ys() {
|
|
1645
|
+
return typeof Z.useSyncExternalStore == "function" ? Z.useSyncExternalStore(xs, gs, ws) : q(us);
|
|
1646
1646
|
}
|
|
1647
|
-
const
|
|
1647
|
+
const xn = (t) => {
|
|
1648
1648
|
var e;
|
|
1649
1649
|
return ((e = t.getAttribute("role")) == null ? void 0 : e.toLowerCase()) === "menu";
|
|
1650
|
-
},
|
|
1650
|
+
}, Tt = () => {
|
|
1651
1651
|
};
|
|
1652
|
-
function
|
|
1653
|
-
const t =
|
|
1652
|
+
function yn() {
|
|
1653
|
+
const t = ps(), {
|
|
1654
1654
|
show: e = !1,
|
|
1655
|
-
toggle: n =
|
|
1655
|
+
toggle: n = Tt,
|
|
1656
1656
|
setToggle: r,
|
|
1657
1657
|
menuElement: o
|
|
1658
1658
|
} = q(Ve) || {}, a = O((c) => {
|
|
1659
1659
|
n(!e, c);
|
|
1660
1660
|
}, [e, n]), i = {
|
|
1661
1661
|
id: t,
|
|
1662
|
-
ref: r ||
|
|
1662
|
+
ref: r || Tt,
|
|
1663
1663
|
onClick: a,
|
|
1664
1664
|
"aria-expanded": !!e
|
|
1665
1665
|
};
|
|
1666
|
-
return o &&
|
|
1666
|
+
return o && xn(o) && (i["aria-haspopup"] = !0), [i, {
|
|
1667
1667
|
show: e,
|
|
1668
1668
|
toggle: n
|
|
1669
1669
|
}];
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function vn({
|
|
1672
1672
|
children: t
|
|
1673
1673
|
}) {
|
|
1674
|
-
const [e, n] =
|
|
1674
|
+
const [e, n] = yn();
|
|
1675
1675
|
return /* @__PURE__ */ s.jsx(s.Fragment, {
|
|
1676
1676
|
children: t(e, n)
|
|
1677
1677
|
});
|
|
1678
1678
|
}
|
|
1679
|
-
|
|
1680
|
-
const
|
|
1681
|
-
|
|
1682
|
-
const
|
|
1683
|
-
function
|
|
1679
|
+
vn.displayName = "DropdownToggle";
|
|
1680
|
+
const rt = /* @__PURE__ */ A.createContext(null), Et = (t, e = null) => t != null ? String(t) : e || null, bn = /* @__PURE__ */ A.createContext(null);
|
|
1681
|
+
bn.displayName = "NavContext";
|
|
1682
|
+
const vs = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
1683
|
+
function bs(t, e) {
|
|
1684
1684
|
if (t == null)
|
|
1685
1685
|
return {};
|
|
1686
1686
|
var n = {}, r = Object.keys(t), o, a;
|
|
@@ -1688,36 +1688,36 @@ function vs(t, e) {
|
|
|
1688
1688
|
o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
1689
1689
|
return n;
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function _n({
|
|
1692
1692
|
key: t,
|
|
1693
1693
|
href: e,
|
|
1694
1694
|
active: n,
|
|
1695
1695
|
disabled: r,
|
|
1696
1696
|
onClick: o
|
|
1697
1697
|
}) {
|
|
1698
|
-
const a = q(
|
|
1698
|
+
const a = q(rt), i = q(bn), {
|
|
1699
1699
|
activeKey: c
|
|
1700
|
-
} = i || {}, l =
|
|
1700
|
+
} = i || {}, l = Et(t, e), u = n == null && t != null ? Et(c) === l : n;
|
|
1701
1701
|
return [{
|
|
1702
1702
|
onClick: ge((h) => {
|
|
1703
1703
|
r || (o == null || o(h), a && !h.isPropagationStopped() && a(l, h));
|
|
1704
1704
|
}),
|
|
1705
1705
|
"aria-disabled": r || void 0,
|
|
1706
1706
|
"aria-selected": u,
|
|
1707
|
-
[
|
|
1707
|
+
[Jt("dropdown-item")]: ""
|
|
1708
1708
|
}, {
|
|
1709
1709
|
isActive: u
|
|
1710
1710
|
}];
|
|
1711
1711
|
}
|
|
1712
|
-
const
|
|
1712
|
+
const jn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
1713
1713
|
let {
|
|
1714
1714
|
eventKey: n,
|
|
1715
1715
|
disabled: r,
|
|
1716
1716
|
onClick: o,
|
|
1717
1717
|
active: a,
|
|
1718
|
-
as: i =
|
|
1719
|
-
} = t, c =
|
|
1720
|
-
const [l] =
|
|
1718
|
+
as: i = dn
|
|
1719
|
+
} = t, c = bs(t, vs);
|
|
1720
|
+
const [l] = _n({
|
|
1721
1721
|
key: n,
|
|
1722
1722
|
href: c.href,
|
|
1723
1723
|
disabled: r,
|
|
@@ -1728,9 +1728,9 @@ const _n = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1728
1728
|
ref: e
|
|
1729
1729
|
}, l));
|
|
1730
1730
|
});
|
|
1731
|
-
|
|
1732
|
-
function
|
|
1733
|
-
const t =
|
|
1731
|
+
jn.displayName = "DropdownItem";
|
|
1732
|
+
function Ot() {
|
|
1733
|
+
const t = as(), e = Y(null), n = O((r) => {
|
|
1734
1734
|
e.current = r, t();
|
|
1735
1735
|
}, [t]);
|
|
1736
1736
|
return [e, n];
|
|
@@ -1740,12 +1740,12 @@ function Ee({
|
|
|
1740
1740
|
show: e,
|
|
1741
1741
|
onSelect: n,
|
|
1742
1742
|
onToggle: r,
|
|
1743
|
-
itemSelector: o = `* [${
|
|
1743
|
+
itemSelector: o = `* [${Jt("dropdown-item")}]`,
|
|
1744
1744
|
focusFirstItemOnShow: a,
|
|
1745
1745
|
placement: i = "bottom-start",
|
|
1746
1746
|
children: c
|
|
1747
1747
|
}) {
|
|
1748
|
-
const l =
|
|
1748
|
+
const l = mr(), [u, d] = ss(e, t, r), [h, m] = Ot(), g = h.current, [b, w] = Ot(), f = b.current, j = Fr(u), v = Y(null), p = Y(!1), C = q(rt), k = O((_, T, F = T == null ? void 0 : T.type) => {
|
|
1749
1749
|
d(_, {
|
|
1750
1750
|
originalEvent: T,
|
|
1751
1751
|
source: F
|
|
@@ -1767,9 +1767,9 @@ function Ee({
|
|
|
1767
1767
|
}), S = ge(() => {
|
|
1768
1768
|
const _ = v.current;
|
|
1769
1769
|
let T = a;
|
|
1770
|
-
if (T == null && (T = h.current &&
|
|
1770
|
+
if (T == null && (T = h.current && xn(h.current) ? "keyboard" : !1), T === !1 || T === "keyboard" && !/^key.+$/.test(_))
|
|
1771
1771
|
return;
|
|
1772
|
-
const F =
|
|
1772
|
+
const F = _t(h.current, o)[0];
|
|
1773
1773
|
F && F.focus && F.focus();
|
|
1774
1774
|
});
|
|
1775
1775
|
D(() => {
|
|
@@ -1780,11 +1780,11 @@ function Ee({
|
|
|
1780
1780
|
const N = (_, T) => {
|
|
1781
1781
|
if (!h.current)
|
|
1782
1782
|
return null;
|
|
1783
|
-
const F =
|
|
1783
|
+
const F = _t(h.current, o);
|
|
1784
1784
|
let W = F.indexOf(_) + T;
|
|
1785
1785
|
return W = Math.max(0, Math.min(W, F.length)), F[W];
|
|
1786
1786
|
};
|
|
1787
|
-
return
|
|
1787
|
+
return Qo(O(() => l.document, [l]), "keydown", (_) => {
|
|
1788
1788
|
var T, F;
|
|
1789
1789
|
const {
|
|
1790
1790
|
key: W
|
|
@@ -1811,7 +1811,7 @@ function Ee({
|
|
|
1811
1811
|
}
|
|
1812
1812
|
return;
|
|
1813
1813
|
case "Tab":
|
|
1814
|
-
|
|
1814
|
+
fr(H.ownerDocument, "keyup", (U) => {
|
|
1815
1815
|
var I;
|
|
1816
1816
|
(U.key === "Tab" && !U.target || !((I = h.current) != null && I.contains(U.target))) && d(!1, te);
|
|
1817
1817
|
}, {
|
|
@@ -1822,7 +1822,7 @@ function Ee({
|
|
|
1822
1822
|
W === "Escape" && (_.preventDefault(), _.stopPropagation()), d(!1, te);
|
|
1823
1823
|
break;
|
|
1824
1824
|
}
|
|
1825
|
-
}), /* @__PURE__ */ s.jsx(
|
|
1825
|
+
}), /* @__PURE__ */ s.jsx(rt.Provider, {
|
|
1826
1826
|
value: y,
|
|
1827
1827
|
children: /* @__PURE__ */ s.jsx(Ve.Provider, {
|
|
1828
1828
|
value: $,
|
|
@@ -1831,12 +1831,12 @@ function Ee({
|
|
|
1831
1831
|
});
|
|
1832
1832
|
}
|
|
1833
1833
|
Ee.displayName = "Dropdown";
|
|
1834
|
-
Ee.Menu =
|
|
1835
|
-
Ee.Toggle =
|
|
1836
|
-
Ee.Item =
|
|
1837
|
-
const
|
|
1838
|
-
|
|
1839
|
-
const
|
|
1834
|
+
Ee.Menu = gn;
|
|
1835
|
+
Ee.Toggle = vn;
|
|
1836
|
+
Ee.Item = jn;
|
|
1837
|
+
const mt = /* @__PURE__ */ A.createContext({});
|
|
1838
|
+
mt.displayName = "DropdownContext";
|
|
1839
|
+
const kn = /* @__PURE__ */ A.forwardRef(({
|
|
1840
1840
|
className: t,
|
|
1841
1841
|
bsPrefix: e,
|
|
1842
1842
|
as: n = "hr",
|
|
@@ -1848,8 +1848,8 @@ const jn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1848
1848
|
role: r,
|
|
1849
1849
|
...o
|
|
1850
1850
|
})));
|
|
1851
|
-
|
|
1852
|
-
const
|
|
1851
|
+
kn.displayName = "DropdownDivider";
|
|
1852
|
+
const Cn = /* @__PURE__ */ A.forwardRef(({
|
|
1853
1853
|
className: t,
|
|
1854
1854
|
bsPrefix: e,
|
|
1855
1855
|
as: n = "div",
|
|
@@ -1861,18 +1861,18 @@ const kn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1861
1861
|
role: r,
|
|
1862
1862
|
...o
|
|
1863
1863
|
})));
|
|
1864
|
-
|
|
1865
|
-
const
|
|
1864
|
+
Cn.displayName = "DropdownHeader";
|
|
1865
|
+
const Nn = /* @__PURE__ */ A.forwardRef(({
|
|
1866
1866
|
bsPrefix: t,
|
|
1867
1867
|
className: e,
|
|
1868
1868
|
eventKey: n,
|
|
1869
1869
|
disabled: r = !1,
|
|
1870
1870
|
onClick: o,
|
|
1871
1871
|
active: a,
|
|
1872
|
-
as: i =
|
|
1872
|
+
as: i = hn,
|
|
1873
1873
|
...c
|
|
1874
1874
|
}, l) => {
|
|
1875
|
-
const u = V(t, "dropdown-item"), [d, h] =
|
|
1875
|
+
const u = V(t, "dropdown-item"), [d, h] = _n({
|
|
1876
1876
|
key: n,
|
|
1877
1877
|
href: c.href,
|
|
1878
1878
|
disabled: r,
|
|
@@ -1886,8 +1886,8 @@ const Cn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1886
1886
|
className: x(e, u, h.isActive && "active", r && "disabled")
|
|
1887
1887
|
});
|
|
1888
1888
|
});
|
|
1889
|
-
|
|
1890
|
-
const
|
|
1889
|
+
Nn.displayName = "DropdownItem";
|
|
1890
|
+
const $n = /* @__PURE__ */ A.forwardRef(({
|
|
1891
1891
|
className: t,
|
|
1892
1892
|
bsPrefix: e,
|
|
1893
1893
|
as: n = "span",
|
|
@@ -1897,25 +1897,25 @@ const Nn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1897
1897
|
className: x(t, e),
|
|
1898
1898
|
...r
|
|
1899
1899
|
})));
|
|
1900
|
-
|
|
1900
|
+
$n.displayName = "DropdownItemText";
|
|
1901
1901
|
const Ue = /* @__PURE__ */ A.createContext(null);
|
|
1902
1902
|
Ue.displayName = "InputGroupContext";
|
|
1903
|
-
const
|
|
1904
|
-
|
|
1905
|
-
function
|
|
1903
|
+
const In = /* @__PURE__ */ A.createContext(null);
|
|
1904
|
+
In.displayName = "NavbarContext";
|
|
1905
|
+
function Sn(t, e) {
|
|
1906
1906
|
if (process.env.NODE_ENV === "production")
|
|
1907
1907
|
return t;
|
|
1908
1908
|
const n = O((r) => {
|
|
1909
|
-
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ?
|
|
1909
|
+
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? St(!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`) : St(!1));
|
|
1910
1910
|
}, [e]);
|
|
1911
|
-
return
|
|
1911
|
+
return at(n, t);
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1913
|
+
function Tn(t, e, n) {
|
|
1914
1914
|
const r = n ? "top-end" : "top-start", o = n ? "top-start" : "top-end", a = n ? "bottom-end" : "bottom-start", i = n ? "bottom-start" : "bottom-end", c = n ? "right-start" : "left-start", l = n ? "right-end" : "left-end", u = n ? "left-start" : "right-start", d = n ? "left-end" : "right-end";
|
|
1915
1915
|
let h = t ? i : a;
|
|
1916
1916
|
return e === "up" ? h = t ? o : r : e === "end" ? h = t ? d : u : e === "start" ? h = t ? l : c : e === "down-centered" ? h = "bottom" : e === "up-centered" && (h = "top"), h;
|
|
1917
1917
|
}
|
|
1918
|
-
const
|
|
1918
|
+
const En = /* @__PURE__ */ A.forwardRef(({
|
|
1919
1919
|
bsPrefix: t,
|
|
1920
1920
|
className: e,
|
|
1921
1921
|
align: n,
|
|
@@ -1930,28 +1930,28 @@ const Tn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1930
1930
|
...d
|
|
1931
1931
|
}, h) => {
|
|
1932
1932
|
let m = !1;
|
|
1933
|
-
const g = q(
|
|
1933
|
+
const g = q(In), b = V(t, "dropdown-menu"), {
|
|
1934
1934
|
align: w,
|
|
1935
1935
|
drop: f,
|
|
1936
1936
|
isRTL: j
|
|
1937
|
-
} = q(
|
|
1937
|
+
} = q(mt);
|
|
1938
1938
|
n = n || w;
|
|
1939
1939
|
const v = q(Ue), p = [];
|
|
1940
1940
|
if (n)
|
|
1941
1941
|
if (typeof n == "object") {
|
|
1942
1942
|
const _ = Object.keys(n);
|
|
1943
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1943
|
+
if (process.env.NODE_ENV !== "production" && it(_.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), _.length) {
|
|
1944
1944
|
const T = _[0], F = n[T];
|
|
1945
1945
|
m = F === "start", p.push(`${b}-${T}-${F}`);
|
|
1946
1946
|
}
|
|
1947
1947
|
} else
|
|
1948
1948
|
n === "end" && (m = !0);
|
|
1949
|
-
const C =
|
|
1949
|
+
const C = Tn(m, f, j), [k, {
|
|
1950
1950
|
hasShown: y,
|
|
1951
1951
|
popper: $,
|
|
1952
1952
|
show: M,
|
|
1953
1953
|
toggle: S
|
|
1954
|
-
}] =
|
|
1954
|
+
}] = pn({
|
|
1955
1955
|
flip: o,
|
|
1956
1956
|
rootCloseEvent: r,
|
|
1957
1957
|
show: a,
|
|
@@ -1960,7 +1960,7 @@ const Tn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1960
1960
|
popperConfig: l,
|
|
1961
1961
|
placement: C
|
|
1962
1962
|
});
|
|
1963
|
-
if (k.ref =
|
|
1963
|
+
if (k.ref = at(Sn(h, "DropdownMenu"), k.ref), pr(() => {
|
|
1964
1964
|
M && ($ == null || $.update());
|
|
1965
1965
|
}, [M]), !y && !i && !v)
|
|
1966
1966
|
return null;
|
|
@@ -1979,27 +1979,27 @@ const Tn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1979
1979
|
className: x(e, b, M && "show", m && `${b}-end`, u && `${b}-${u}`, ...p)
|
|
1980
1980
|
});
|
|
1981
1981
|
});
|
|
1982
|
-
|
|
1983
|
-
const
|
|
1982
|
+
En.displayName = "DropdownMenu";
|
|
1983
|
+
const On = /* @__PURE__ */ A.forwardRef(({
|
|
1984
1984
|
bsPrefix: t,
|
|
1985
1985
|
split: e,
|
|
1986
1986
|
className: n,
|
|
1987
1987
|
childBsPrefix: r,
|
|
1988
1988
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1989
|
-
as: o =
|
|
1989
|
+
as: o = mn,
|
|
1990
1990
|
...a
|
|
1991
1991
|
}, i) => {
|
|
1992
1992
|
const c = V(t, "dropdown-toggle"), l = q(Ve);
|
|
1993
1993
|
r !== void 0 && (a.bsPrefix = r);
|
|
1994
|
-
const [u] =
|
|
1995
|
-
return u.ref =
|
|
1994
|
+
const [u] = yn();
|
|
1995
|
+
return u.ref = at(u.ref, Sn(i, "DropdownToggle")), /* @__PURE__ */ s.jsx(o, {
|
|
1996
1996
|
className: x(n, c, e && `${c}-split`, (l == null ? void 0 : l.show) && "show"),
|
|
1997
1997
|
...u,
|
|
1998
1998
|
...a
|
|
1999
1999
|
});
|
|
2000
2000
|
});
|
|
2001
|
-
|
|
2002
|
-
const
|
|
2001
|
+
On.displayName = "DropdownToggle";
|
|
2002
|
+
const Mn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
2003
2003
|
const {
|
|
2004
2004
|
bsPrefix: n,
|
|
2005
2005
|
drop: r = "down",
|
|
@@ -2014,12 +2014,12 @@ const On = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
2014
2014
|
navbar: h,
|
|
2015
2015
|
autoClose: m = !0,
|
|
2016
2016
|
...g
|
|
2017
|
-
} =
|
|
2017
|
+
} = gr(t, {
|
|
2018
2018
|
show: "onToggle"
|
|
2019
|
-
}), b = q(Ue), w = V(n, "dropdown"), f =
|
|
2019
|
+
}), b = q(Ue), w = V(n, "dropdown"), f = wr(), j = ($) => m === !1 ? $ === "click" : m === "inside" ? $ !== "rootClose" : m === "outside" ? $ !== "select" : !0, v = ge(($, M) => {
|
|
2020
2020
|
var S, N;
|
|
2021
2021
|
!((S = M.originalEvent) == null || (N = S.target) == null) && N.classList.contains("dropdown-toggle") && M.source === "mousedown" || (M.originalEvent.currentTarget === document && (M.source !== "keydown" || M.originalEvent.key === "Escape") && (M.source = "rootClose"), j(M.source) && (l == null || l($, M)));
|
|
2022
|
-
}), C =
|
|
2022
|
+
}), C = Tn(i === "end", r, f), k = z(() => ({
|
|
2023
2023
|
align: i,
|
|
2024
2024
|
drop: r,
|
|
2025
2025
|
isRTL: f
|
|
@@ -2031,7 +2031,7 @@ const On = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
2031
2031
|
end: "dropend",
|
|
2032
2032
|
start: "dropstart"
|
|
2033
2033
|
};
|
|
2034
|
-
return /* @__PURE__ */ s.jsx(
|
|
2034
|
+
return /* @__PURE__ */ s.jsx(mt.Provider, {
|
|
2035
2035
|
value: k,
|
|
2036
2036
|
children: /* @__PURE__ */ s.jsx(Ee, {
|
|
2037
2037
|
placement: C,
|
|
@@ -2048,15 +2048,15 @@ const On = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
2048
2048
|
})
|
|
2049
2049
|
});
|
|
2050
2050
|
});
|
|
2051
|
-
|
|
2052
|
-
const Te = Object.assign(
|
|
2053
|
-
Toggle:
|
|
2054
|
-
Menu:
|
|
2055
|
-
Item:
|
|
2056
|
-
ItemText:
|
|
2057
|
-
Divider:
|
|
2058
|
-
Header:
|
|
2059
|
-
}),
|
|
2051
|
+
Mn.displayName = "Dropdown";
|
|
2052
|
+
const Te = Object.assign(Mn, {
|
|
2053
|
+
Toggle: On,
|
|
2054
|
+
Menu: En,
|
|
2055
|
+
Item: Nn,
|
|
2056
|
+
ItemText: $n,
|
|
2057
|
+
Divider: kn,
|
|
2058
|
+
Header: Cn
|
|
2059
|
+
}), _s = {
|
|
2060
2060
|
/**
|
|
2061
2061
|
* Specify whether the feedback is for valid or invalid fields
|
|
2062
2062
|
*
|
|
@@ -2081,7 +2081,7 @@ const Te = Object.assign(On, {
|
|
|
2081
2081
|
})
|
|
2082
2082
|
);
|
|
2083
2083
|
Ke.displayName = "Feedback";
|
|
2084
|
-
Ke.propTypes =
|
|
2084
|
+
Ke.propTypes = _s;
|
|
2085
2085
|
const Oe = /* @__PURE__ */ A.forwardRef(({
|
|
2086
2086
|
id: t,
|
|
2087
2087
|
bsPrefix: e,
|
|
@@ -2122,7 +2122,7 @@ const Ye = /* @__PURE__ */ A.forwardRef(({
|
|
|
2122
2122
|
});
|
|
2123
2123
|
});
|
|
2124
2124
|
Ye.displayName = "FormCheckLabel";
|
|
2125
|
-
const
|
|
2125
|
+
const Dn = /* @__PURE__ */ A.forwardRef(({
|
|
2126
2126
|
id: t,
|
|
2127
2127
|
bsPrefix: e,
|
|
2128
2128
|
bsSwitchPrefix: n,
|
|
@@ -2149,7 +2149,7 @@ const Mn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2149
2149
|
controlId: C
|
|
2150
2150
|
} = q(ue), k = z(() => ({
|
|
2151
2151
|
controlId: t || C
|
|
2152
|
-
}), [C, t]), y = !f && w != null && w !== !1 ||
|
|
2152
|
+
}), [C, t]), y = !f && w != null && w !== !1 || rs(f, Ye), $ = /* @__PURE__ */ s.jsx(Oe, {
|
|
2153
2153
|
...v,
|
|
2154
2154
|
type: b === "switch" ? "checkbox" : b,
|
|
2155
2155
|
ref: p,
|
|
@@ -2176,11 +2176,11 @@ const Mn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2176
2176
|
})
|
|
2177
2177
|
});
|
|
2178
2178
|
});
|
|
2179
|
-
|
|
2180
|
-
const He = Object.assign(
|
|
2179
|
+
Dn.displayName = "FormCheck";
|
|
2180
|
+
const He = Object.assign(Dn, {
|
|
2181
2181
|
Input: Oe,
|
|
2182
2182
|
Label: Ye
|
|
2183
|
-
}),
|
|
2183
|
+
}), Pn = /* @__PURE__ */ A.forwardRef(({
|
|
2184
2184
|
bsPrefix: t,
|
|
2185
2185
|
type: e,
|
|
2186
2186
|
size: n,
|
|
@@ -2198,7 +2198,7 @@ const He = Object.assign(Mn, {
|
|
|
2198
2198
|
const {
|
|
2199
2199
|
controlId: g
|
|
2200
2200
|
} = q(ue);
|
|
2201
|
-
return t = V(t, "form-control"), process.env.NODE_ENV !== "production" &&
|
|
2201
|
+
return t = V(t, "form-control"), process.env.NODE_ENV !== "production" && it(g == null || !o, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ s.jsx(d, {
|
|
2202
2202
|
...h,
|
|
2203
2203
|
type: e,
|
|
2204
2204
|
size: r,
|
|
@@ -2208,10 +2208,10 @@ const He = Object.assign(Mn, {
|
|
|
2208
2208
|
className: x(a, l ? `${t}-plaintext` : t, n && `${t}-${n}`, e === "color" && `${t}-color`, i && "is-valid", c && "is-invalid")
|
|
2209
2209
|
});
|
|
2210
2210
|
});
|
|
2211
|
-
|
|
2212
|
-
const
|
|
2211
|
+
Pn.displayName = "FormControl";
|
|
2212
|
+
const An = Object.assign(Pn, {
|
|
2213
2213
|
Feedback: Ke
|
|
2214
|
-
}),
|
|
2214
|
+
}), Fn = /* @__PURE__ */ A.forwardRef(({
|
|
2215
2215
|
className: t,
|
|
2216
2216
|
bsPrefix: e,
|
|
2217
2217
|
as: n = "div",
|
|
@@ -2221,8 +2221,8 @@ const Pn = Object.assign(Dn, {
|
|
|
2221
2221
|
className: x(t, e),
|
|
2222
2222
|
...r
|
|
2223
2223
|
})));
|
|
2224
|
-
|
|
2225
|
-
const
|
|
2224
|
+
Fn.displayName = "FormFloating";
|
|
2225
|
+
const Wn = /* @__PURE__ */ A.forwardRef(({
|
|
2226
2226
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2227
2227
|
as: t = "label",
|
|
2228
2228
|
bsPrefix: e,
|
|
@@ -2239,7 +2239,7 @@ const Fn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2239
2239
|
let u = "col-form-label";
|
|
2240
2240
|
typeof n == "string" && (u = `${u} ${u}-${n}`);
|
|
2241
2241
|
const d = x(o, e, r && "visually-hidden", n && u);
|
|
2242
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2242
|
+
return process.env.NODE_ENV !== "production" && it(l == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || l, n ? /* @__PURE__ */ s.jsx(fn, {
|
|
2243
2243
|
ref: c,
|
|
2244
2244
|
as: "label",
|
|
2245
2245
|
className: d,
|
|
@@ -2255,8 +2255,8 @@ const Fn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2255
2255
|
})
|
|
2256
2256
|
);
|
|
2257
2257
|
});
|
|
2258
|
-
|
|
2259
|
-
const
|
|
2258
|
+
Wn.displayName = "FormLabel";
|
|
2259
|
+
const Rn = /* @__PURE__ */ A.forwardRef(({
|
|
2260
2260
|
bsPrefix: t,
|
|
2261
2261
|
className: e,
|
|
2262
2262
|
id: n,
|
|
@@ -2273,8 +2273,8 @@ const Wn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2273
2273
|
id: n || a
|
|
2274
2274
|
});
|
|
2275
2275
|
});
|
|
2276
|
-
|
|
2277
|
-
const
|
|
2276
|
+
Rn.displayName = "FormRange";
|
|
2277
|
+
const qn = /* @__PURE__ */ A.forwardRef(({
|
|
2278
2278
|
bsPrefix: t,
|
|
2279
2279
|
size: e,
|
|
2280
2280
|
htmlSize: n,
|
|
@@ -2295,8 +2295,8 @@ const Rn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2295
2295
|
id: i || u
|
|
2296
2296
|
});
|
|
2297
2297
|
});
|
|
2298
|
-
|
|
2299
|
-
const
|
|
2298
|
+
qn.displayName = "FormSelect";
|
|
2299
|
+
const Ln = /* @__PURE__ */ A.forwardRef(
|
|
2300
2300
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2301
2301
|
({
|
|
2302
2302
|
bsPrefix: t,
|
|
@@ -2310,17 +2310,17 @@ const qn = /* @__PURE__ */ A.forwardRef(
|
|
|
2310
2310
|
className: x(e, t, r && "text-muted")
|
|
2311
2311
|
}))
|
|
2312
2312
|
);
|
|
2313
|
-
|
|
2314
|
-
const
|
|
2313
|
+
Ln.displayName = "FormText";
|
|
2314
|
+
const Yn = /* @__PURE__ */ A.forwardRef((t, e) => /* @__PURE__ */ s.jsx(He, {
|
|
2315
2315
|
...t,
|
|
2316
2316
|
ref: e,
|
|
2317
2317
|
type: "switch"
|
|
2318
2318
|
}));
|
|
2319
|
-
|
|
2320
|
-
const
|
|
2319
|
+
Yn.displayName = "Switch";
|
|
2320
|
+
const js = Object.assign(Yn, {
|
|
2321
2321
|
Input: He.Input,
|
|
2322
2322
|
Label: He.Label
|
|
2323
|
-
}),
|
|
2323
|
+
}), ks = {
|
|
2324
2324
|
/**
|
|
2325
2325
|
* The Form `ref` will be forwarded to the underlying element,
|
|
2326
2326
|
* which means, unless it's rendered `as` a composite component,
|
|
@@ -2336,7 +2336,7 @@ const _s = Object.assign(Ln, {
|
|
|
2336
2336
|
*/
|
|
2337
2337
|
validated: be.bool,
|
|
2338
2338
|
as: be.elementType
|
|
2339
|
-
},
|
|
2339
|
+
}, ft = /* @__PURE__ */ A.forwardRef(({
|
|
2340
2340
|
className: t,
|
|
2341
2341
|
validated: e,
|
|
2342
2342
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -2347,19 +2347,19 @@ const _s = Object.assign(Ln, {
|
|
|
2347
2347
|
ref: o,
|
|
2348
2348
|
className: x(t, e && "was-validated")
|
|
2349
2349
|
}));
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
const ee = Object.assign(
|
|
2353
|
-
Group:
|
|
2354
|
-
Control:
|
|
2355
|
-
Floating:
|
|
2350
|
+
ft.displayName = "Form";
|
|
2351
|
+
ft.propTypes = ks;
|
|
2352
|
+
const ee = Object.assign(ft, {
|
|
2353
|
+
Group: xr,
|
|
2354
|
+
Control: An,
|
|
2355
|
+
Floating: Fn,
|
|
2356
2356
|
Check: He,
|
|
2357
|
-
Switch:
|
|
2358
|
-
Label:
|
|
2359
|
-
Text:
|
|
2360
|
-
Range:
|
|
2361
|
-
Select:
|
|
2362
|
-
FloatingLabel:
|
|
2357
|
+
Switch: js,
|
|
2358
|
+
Label: Wn,
|
|
2359
|
+
Text: Ln,
|
|
2360
|
+
Range: Rn,
|
|
2361
|
+
Select: qn,
|
|
2362
|
+
FloatingLabel: yr
|
|
2363
2363
|
}), ze = /* @__PURE__ */ A.forwardRef(({
|
|
2364
2364
|
className: t,
|
|
2365
2365
|
bsPrefix: e,
|
|
@@ -2371,17 +2371,17 @@ const ee = Object.assign(mt, {
|
|
|
2371
2371
|
...r
|
|
2372
2372
|
})));
|
|
2373
2373
|
ze.displayName = "InputGroupText";
|
|
2374
|
-
const
|
|
2374
|
+
const Cs = (t) => /* @__PURE__ */ s.jsx(ze, {
|
|
2375
2375
|
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2376
2376
|
type: "checkbox",
|
|
2377
2377
|
...t
|
|
2378
2378
|
})
|
|
2379
|
-
}),
|
|
2379
|
+
}), Ns = (t) => /* @__PURE__ */ s.jsx(ze, {
|
|
2380
2380
|
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2381
2381
|
type: "radio",
|
|
2382
2382
|
...t
|
|
2383
2383
|
})
|
|
2384
|
-
}),
|
|
2384
|
+
}), Hn = /* @__PURE__ */ A.forwardRef(({
|
|
2385
2385
|
bsPrefix: t,
|
|
2386
2386
|
size: e,
|
|
2387
2387
|
hasValidation: n,
|
|
@@ -2401,12 +2401,12 @@ const ks = (t) => /* @__PURE__ */ s.jsx(ze, {
|
|
|
2401
2401
|
})
|
|
2402
2402
|
});
|
|
2403
2403
|
});
|
|
2404
|
-
|
|
2405
|
-
const et = Object.assign(
|
|
2404
|
+
Hn.displayName = "InputGroup";
|
|
2405
|
+
const et = Object.assign(Hn, {
|
|
2406
2406
|
Text: ze,
|
|
2407
|
-
Radio:
|
|
2408
|
-
Checkbox:
|
|
2409
|
-
}),
|
|
2407
|
+
Radio: Ns,
|
|
2408
|
+
Checkbox: Cs
|
|
2409
|
+
}), pt = /* @__PURE__ */ A.forwardRef(({
|
|
2410
2410
|
bsPrefix: t,
|
|
2411
2411
|
variant: e,
|
|
2412
2412
|
animation: n = "border",
|
|
@@ -2424,86 +2424,86 @@ const et = Object.assign(Yn, {
|
|
|
2424
2424
|
className: x(a, l, r && `${l}-${r}`, e && `text-${e}`)
|
|
2425
2425
|
});
|
|
2426
2426
|
});
|
|
2427
|
-
|
|
2427
|
+
pt.displayName = "Spinner";
|
|
2428
2428
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2429
|
-
const
|
|
2429
|
+
const Gn = "client_info_decoding_error", Bn = "client_info_empty_error", $s = "token_parsing_error", Is = "null_or_empty_token", Ss = "endpoints_resolution_error", Ts = "network_error", Es = "openid_config_error", Os = "hash_not_deserialized", Ms = "invalid_state", Ds = "state_mismatch", Ps = "state_not_found", As = "nonce_mismatch", Fs = "auth_time_not_found", Ws = "max_age_transpired", Rs = "multiple_matching_tokens", qs = "multiple_matching_accounts", Ls = "multiple_matching_appMetadata", Ys = "request_cannot_be_made", Hs = "cannot_remove_empty_scope", Gs = "cannot_append_scopeset", Bs = "empty_input_scopeset", Vs = "device_code_polling_cancelled", Us = "device_code_expired", Ks = "device_code_unknown_error", zs = "no_account_in_silent_request", Qs = "invalid_cache_record", Vn = "invalid_cache_environment", Xs = "no_account_found", Js = "no_crypto_object", Zs = "unexpected_credential_type", ea = "invalid_assertion", ta = "invalid_client_credential", na = "token_refresh_required", ra = "user_timeout_reached", oa = "token_claims_cnf_required_for_signedjwt", sa = "authorization_code_missing_from_server_response", aa = "binding_key_not_removed", ia = "end_session_endpoint_not_supported", ca = "key_id_missing", la = "no_network_connectivity", ua = "user_canceled", da = "missing_tenant_id_error", ha = "method_not_implemented", ma = "nested_app_auth_bridge_disabled";
|
|
2430
2430
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2431
|
-
const
|
|
2432
|
-
[
|
|
2433
|
-
[
|
|
2434
|
-
[
|
|
2435
|
-
[
|
|
2436
|
-
[
|
|
2437
|
-
[
|
|
2438
|
-
[
|
|
2439
|
-
[
|
|
2440
|
-
[
|
|
2441
|
-
[
|
|
2442
|
-
[
|
|
2443
|
-
[
|
|
2444
|
-
[
|
|
2445
|
-
[
|
|
2446
|
-
[
|
|
2447
|
-
[
|
|
2448
|
-
[
|
|
2449
|
-
[
|
|
2450
|
-
[
|
|
2451
|
-
[
|
|
2452
|
-
[
|
|
2453
|
-
[
|
|
2454
|
-
[
|
|
2455
|
-
[
|
|
2456
|
-
[
|
|
2457
|
-
[
|
|
2458
|
-
[
|
|
2459
|
-
[
|
|
2460
|
-
[
|
|
2461
|
-
[
|
|
2462
|
-
[
|
|
2463
|
-
[
|
|
2464
|
-
[
|
|
2465
|
-
[
|
|
2466
|
-
[
|
|
2467
|
-
[
|
|
2468
|
-
[
|
|
2469
|
-
[
|
|
2470
|
-
[
|
|
2471
|
-
[
|
|
2472
|
-
[
|
|
2473
|
-
[
|
|
2474
|
-
[
|
|
2475
|
-
[
|
|
2431
|
+
const Mt = {
|
|
2432
|
+
[Gn]: "The client info could not be parsed/decoded correctly",
|
|
2433
|
+
[Bn]: "The client info was empty",
|
|
2434
|
+
[$s]: "Token cannot be parsed",
|
|
2435
|
+
[Is]: "The token is null or empty",
|
|
2436
|
+
[Ss]: "Endpoints cannot be resolved",
|
|
2437
|
+
[Ts]: "Network request failed",
|
|
2438
|
+
[Es]: "Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",
|
|
2439
|
+
[Os]: "The hash parameters could not be deserialized",
|
|
2440
|
+
[Ms]: "State was not the expected format",
|
|
2441
|
+
[Ds]: "State mismatch error",
|
|
2442
|
+
[Ps]: "State not found",
|
|
2443
|
+
[As]: "Nonce mismatch error",
|
|
2444
|
+
[Fs]: "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.",
|
|
2445
|
+
[Ws]: "Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",
|
|
2446
|
+
[Rs]: "The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",
|
|
2447
|
+
[qs]: "The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",
|
|
2448
|
+
[Ls]: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",
|
|
2449
|
+
[Ys]: "Token request cannot be made without authorization code or refresh token.",
|
|
2450
|
+
[Hs]: "Cannot remove null or empty scope from ScopeSet",
|
|
2451
|
+
[Gs]: "Cannot append ScopeSet",
|
|
2452
|
+
[Bs]: "Empty input ScopeSet cannot be processed",
|
|
2453
|
+
[Vs]: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",
|
|
2454
|
+
[Us]: "Device code is expired.",
|
|
2455
|
+
[Ks]: "Device code stopped polling for unknown reasons.",
|
|
2456
|
+
[zs]: "Please pass an account object, silent flow is not supported without account information",
|
|
2457
|
+
[Qs]: "Cache record object was null or undefined.",
|
|
2458
|
+
[Vn]: "Invalid environment when attempting to create cache entry",
|
|
2459
|
+
[Xs]: "No account found in cache for given key.",
|
|
2460
|
+
[Js]: "No crypto object detected.",
|
|
2461
|
+
[Zs]: "Unexpected credential type.",
|
|
2462
|
+
[ea]: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",
|
|
2463
|
+
[ta]: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",
|
|
2464
|
+
[na]: "Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",
|
|
2465
|
+
[ra]: "User defined timeout for device code polling reached",
|
|
2466
|
+
[oa]: "Cannot generate a POP jwt if the token_claims are not populated",
|
|
2467
|
+
[sa]: "Server response does not contain an authorization code to proceed",
|
|
2468
|
+
[aa]: "Could not remove the credential's binding key from storage.",
|
|
2469
|
+
[ia]: "The provided authority does not support logout",
|
|
2470
|
+
[ca]: "A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",
|
|
2471
|
+
[la]: "No network connectivity. Check your internet connection.",
|
|
2472
|
+
[ua]: "User cancelled the flow.",
|
|
2473
|
+
[da]: "A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",
|
|
2474
|
+
[ha]: "This method has not been implemented",
|
|
2475
|
+
[ma]: "The nested app auth bridge is disabled"
|
|
2476
2476
|
};
|
|
2477
|
-
class
|
|
2477
|
+
class gt extends ct {
|
|
2478
2478
|
constructor(e, n) {
|
|
2479
|
-
super(e, n ? `${
|
|
2479
|
+
super(e, n ? `${Mt[e]}: ${n}` : Mt[e]), this.name = "ClientAuthError", Object.setPrototypeOf(this, gt.prototype);
|
|
2480
2480
|
}
|
|
2481
2481
|
}
|
|
2482
|
-
function
|
|
2483
|
-
return new
|
|
2482
|
+
function ot(t, e) {
|
|
2483
|
+
return new gt(t, e);
|
|
2484
2484
|
}
|
|
2485
2485
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2486
|
-
function
|
|
2486
|
+
function Dt(t, e) {
|
|
2487
2487
|
if (!t)
|
|
2488
|
-
throw
|
|
2488
|
+
throw ot(Bn);
|
|
2489
2489
|
try {
|
|
2490
2490
|
const n = e(t);
|
|
2491
2491
|
return JSON.parse(n);
|
|
2492
2492
|
} catch {
|
|
2493
|
-
throw
|
|
2493
|
+
throw ot(Gn);
|
|
2494
2494
|
}
|
|
2495
2495
|
}
|
|
2496
2496
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2497
|
-
function
|
|
2497
|
+
function fa(t, e) {
|
|
2498
2498
|
return !!t && !!e && t === e.split(".")[1];
|
|
2499
2499
|
}
|
|
2500
|
-
function
|
|
2500
|
+
function pa(t, e) {
|
|
2501
2501
|
const { oid: n, sub: r, tid: o, name: a, tfp: i, acr: c } = e, l = o || i || c || "";
|
|
2502
2502
|
return {
|
|
2503
2503
|
tenantId: l,
|
|
2504
2504
|
localAccountId: n || r || "",
|
|
2505
2505
|
name: a,
|
|
2506
|
-
isHomeTenant:
|
|
2506
|
+
isHomeTenant: fa(l, t)
|
|
2507
2507
|
};
|
|
2508
2508
|
}
|
|
2509
2509
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
@@ -2514,11 +2514,11 @@ const tt = {
|
|
|
2514
2514
|
Ciam: 3
|
|
2515
2515
|
};
|
|
2516
2516
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2517
|
-
function
|
|
2517
|
+
function ga(t) {
|
|
2518
2518
|
return t && (t.tid || t.tfp || t.acr) || null;
|
|
2519
2519
|
}
|
|
2520
2520
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2521
|
-
const
|
|
2521
|
+
const wa = {
|
|
2522
2522
|
AAD: "AAD",
|
|
2523
2523
|
OIDC: "OIDC"
|
|
2524
2524
|
};
|
|
@@ -2528,7 +2528,7 @@ class Ie {
|
|
|
2528
2528
|
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
2529
2529
|
*/
|
|
2530
2530
|
generateAccountId() {
|
|
2531
|
-
return [this.homeAccountId, this.environment].join(
|
|
2531
|
+
return [this.homeAccountId, this.environment].join(vt.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
2532
2532
|
}
|
|
2533
2533
|
/**
|
|
2534
2534
|
* Generate Account Cache Key as per the schema: <home_account_id>-<environment>-<realm*>
|
|
@@ -2575,7 +2575,7 @@ class Ie {
|
|
|
2575
2575
|
e.homeAccountId,
|
|
2576
2576
|
e.environment || "",
|
|
2577
2577
|
n || e.tenantId || ""
|
|
2578
|
-
].join(
|
|
2578
|
+
].join(vt.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
2579
2579
|
}
|
|
2580
2580
|
/**
|
|
2581
2581
|
* Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD.
|
|
@@ -2583,20 +2583,20 @@ class Ie {
|
|
|
2583
2583
|
*/
|
|
2584
2584
|
static createAccount(e, n, r) {
|
|
2585
2585
|
const o = new Ie();
|
|
2586
|
-
n.authorityType === tt.Adfs ? o.authorityType = De.ADFS_ACCOUNT_TYPE : n.protocolMode ===
|
|
2586
|
+
n.authorityType === tt.Adfs ? o.authorityType = De.ADFS_ACCOUNT_TYPE : n.protocolMode === wa.AAD ? o.authorityType = De.MSSTS_ACCOUNT_TYPE : o.authorityType = De.GENERIC_ACCOUNT_TYPE;
|
|
2587
2587
|
let a;
|
|
2588
|
-
e.clientInfo && r && (a =
|
|
2588
|
+
e.clientInfo && r && (a = Dt(e.clientInfo, r)), o.clientInfo = e.clientInfo, o.homeAccountId = e.homeAccountId, o.nativeAccountId = e.nativeAccountId;
|
|
2589
2589
|
const i = e.environment || n && n.getPreferredCache();
|
|
2590
2590
|
if (!i)
|
|
2591
|
-
throw
|
|
2592
|
-
o.environment = i, o.realm = (a == null ? void 0 : a.utid) ||
|
|
2591
|
+
throw ot(Vn);
|
|
2592
|
+
o.environment = i, o.realm = (a == null ? void 0 : a.utid) || ga(e.idTokenClaims) || "", o.localAccountId = (a == null ? void 0 : a.uid) || e.idTokenClaims.oid || e.idTokenClaims.sub || "";
|
|
2593
2593
|
const c = e.idTokenClaims.preferred_username || e.idTokenClaims.upn, l = e.idTokenClaims.emails ? e.idTokenClaims.emails[0] : null;
|
|
2594
2594
|
if (o.username = c || l || "", o.name = e.idTokenClaims.name, o.cloudGraphHostName = e.cloudGraphHostName, o.msGraphHost = e.msGraphHost, e.tenantProfiles)
|
|
2595
2595
|
o.tenantProfiles = e.tenantProfiles;
|
|
2596
2596
|
else {
|
|
2597
2597
|
const u = [];
|
|
2598
2598
|
if (e.idTokenClaims) {
|
|
2599
|
-
const d =
|
|
2599
|
+
const d = pa(e.homeAccountId, e.idTokenClaims);
|
|
2600
2600
|
u.push(d);
|
|
2601
2601
|
}
|
|
2602
2602
|
o.tenantProfiles = u;
|
|
@@ -2624,7 +2624,7 @@ class Ie {
|
|
|
2624
2624
|
if (!(n === tt.Adfs || n === tt.Dsts)) {
|
|
2625
2625
|
if (e)
|
|
2626
2626
|
try {
|
|
2627
|
-
const i =
|
|
2627
|
+
const i = Dt(e, o.base64Decode);
|
|
2628
2628
|
if (i.uid && i.utid)
|
|
2629
2629
|
return `${i.uid}.${i.utid}`;
|
|
2630
2630
|
} catch {
|
|
@@ -2658,20 +2658,20 @@ class Ie {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
}
|
|
2660
2660
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2661
|
-
class
|
|
2661
|
+
class wt extends ct {
|
|
2662
2662
|
constructor(e, n, r, o, a, i, c, l) {
|
|
2663
|
-
super(e, n, r), Object.setPrototypeOf(this,
|
|
2663
|
+
super(e, n, r), Object.setPrototypeOf(this, wt.prototype), this.timestamp = o || Pe.EMPTY_STRING, this.traceId = a || Pe.EMPTY_STRING, this.correlationId = i || Pe.EMPTY_STRING, this.claims = c || Pe.EMPTY_STRING, this.name = "InteractionRequiredAuthError", this.errorNo = l;
|
|
2664
2664
|
}
|
|
2665
2665
|
}
|
|
2666
2666
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2667
|
-
function
|
|
2668
|
-
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? t.getActiveAccount() :
|
|
2667
|
+
function Pt(t, e) {
|
|
2668
|
+
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? t.getActiveAccount() : vr(t.getAllAccounts(), e);
|
|
2669
2669
|
}
|
|
2670
|
-
function
|
|
2671
|
-
const { instance: e, inProgress: n, logger: r } =
|
|
2670
|
+
function xa(t) {
|
|
2671
|
+
const { instance: e, inProgress: n, logger: r } = lt(), [o, a] = P(() => Pt(e, t));
|
|
2672
2672
|
return D(() => {
|
|
2673
2673
|
a((i) => {
|
|
2674
|
-
const c =
|
|
2674
|
+
const c = Pt(e, t);
|
|
2675
2675
|
return Ie.accountInfoIsEqual(i, c, !0) ? i : (r.info("useAccount - Updating account"), c);
|
|
2676
2676
|
});
|
|
2677
2677
|
}, [n, t, e, r]), o;
|
|
@@ -2687,7 +2687,7 @@ const We = {
|
|
|
2687
2687
|
desc: "Interaction is required but another interaction is already in progress. Please try again when the current interaction is complete."
|
|
2688
2688
|
}
|
|
2689
2689
|
};
|
|
2690
|
-
class _e extends
|
|
2690
|
+
class _e extends ct {
|
|
2691
2691
|
constructor(e, n) {
|
|
2692
2692
|
super(e, n), Object.setPrototypeOf(this, _e.prototype), this.name = "ReactAuthError";
|
|
2693
2693
|
}
|
|
@@ -2699,8 +2699,8 @@ class _e extends it {
|
|
|
2699
2699
|
}
|
|
2700
2700
|
}
|
|
2701
2701
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2702
|
-
function
|
|
2703
|
-
const { instance: r, inProgress: o, logger: a } =
|
|
2702
|
+
function ya(t, e, n) {
|
|
2703
|
+
const { instance: r, inProgress: o, logger: a } = lt(), i = Bt(n), c = xa(n), [[l, u], d] = P([null, null]), h = Y(!0);
|
|
2704
2704
|
D(() => () => {
|
|
2705
2705
|
h.current = !1;
|
|
2706
2706
|
}, []);
|
|
@@ -2738,11 +2738,11 @@ function xa(t, e, n) {
|
|
|
2738
2738
|
...j
|
|
2739
2739
|
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"), p = {
|
|
2740
2740
|
...e,
|
|
2741
|
-
scopes: e.scopes ||
|
|
2741
|
+
scopes: e.scopes || bt
|
|
2742
2742
|
}) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."), p = {
|
|
2743
|
-
scopes:
|
|
2743
|
+
scopes: bt
|
|
2744
2744
|
}), !p.account && c && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), p.account = c), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), r.acquireTokenSilent(p).catch(async (k) => {
|
|
2745
|
-
if (k instanceof
|
|
2745
|
+
if (k instanceof wt) {
|
|
2746
2746
|
if (m.current)
|
|
2747
2747
|
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), _e.createUnableToFallbackToInteractionError();
|
|
2748
2748
|
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), b(v, p);
|
|
@@ -2790,50 +2790,50 @@ function xa(t, e, n) {
|
|
|
2790
2790
|
};
|
|
2791
2791
|
}
|
|
2792
2792
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2793
|
-
function
|
|
2793
|
+
function va({ interactionType: t, username: e, homeAccountId: n, localAccountId: r, authenticationRequest: o, loadingComponent: a, errorComponent: i, children: c }) {
|
|
2794
2794
|
const l = z(() => ({
|
|
2795
2795
|
username: e,
|
|
2796
2796
|
homeAccountId: n,
|
|
2797
2797
|
localAccountId: r
|
|
2798
|
-
}), [e, n, r]), u =
|
|
2798
|
+
}), [e, n, r]), u = lt(), d = ya(t, o, l), h = Bt(l);
|
|
2799
2799
|
if (d.error && u.inProgress === $e.None) {
|
|
2800
2800
|
if (i)
|
|
2801
2801
|
return Z.createElement(i, { ...d });
|
|
2802
2802
|
throw d.error;
|
|
2803
2803
|
}
|
|
2804
|
-
return h ? Z.createElement(Z.Fragment, null,
|
|
2805
|
-
}
|
|
2806
|
-
const
|
|
2807
|
-
button:
|
|
2808
|
-
filled:
|
|
2809
|
-
sm:
|
|
2810
|
-
md:
|
|
2811
|
-
lg:
|
|
2812
|
-
},
|
|
2804
|
+
return h ? Z.createElement(Z.Fragment, null, br(c, d)) : a && u.inProgress !== $e.None ? Z.createElement(a, { ...u }) : null;
|
|
2805
|
+
}
|
|
2806
|
+
const ba = "_button_1wjon_1", _a = "_filled_1wjon_7", ja = "_sm_1wjon_13", ka = "_md_1wjon_18", Ca = "_lg_1wjon_23", ve = {
|
|
2807
|
+
button: ba,
|
|
2808
|
+
filled: _a,
|
|
2809
|
+
sm: ja,
|
|
2810
|
+
md: ka,
|
|
2811
|
+
lg: Ca
|
|
2812
|
+
}, At = ({ variant: t = "filled", color: e = "primary", size: n = "md", className: r, children: o, ...a }) => {
|
|
2813
2813
|
const { LinkComponent: i } = q(ie);
|
|
2814
2814
|
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: x(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${r ?? ""}`, ve.button, ve[t], ve[n]), ...a, children: o }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ s.jsx("button", { type: "button", className: x(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${r ?? ""}`, ve.button, ve[t], ve[n]), ...a, children: o }) : null;
|
|
2815
|
-
},
|
|
2815
|
+
}, Na = "_submit-container_a9slg_1", $a = "_spacer_a9slg_14", Ft = {
|
|
2816
2816
|
"submit-container": "_submit-container_a9slg_1",
|
|
2817
|
-
submitContainer:
|
|
2818
|
-
spacer:
|
|
2819
|
-
},
|
|
2817
|
+
submitContainer: Na,
|
|
2818
|
+
spacer: $a
|
|
2819
|
+
}, Ia = ({ children: t, onStorno: e }) => {
|
|
2820
2820
|
const { formSubmitTexts: n } = q(ie);
|
|
2821
2821
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2822
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2823
|
-
/* @__PURE__ */ s.jsxs("div", { className: x("luminus-floating-submit-container shadow",
|
|
2824
|
-
/* @__PURE__ */ s.jsxs(
|
|
2825
|
-
/* @__PURE__ */ s.jsx(
|
|
2822
|
+
/* @__PURE__ */ s.jsx("div", { className: Ft.spacer }),
|
|
2823
|
+
/* @__PURE__ */ s.jsxs("div", { className: x("luminus-floating-submit-container shadow", Ft.submitContainer), children: [
|
|
2824
|
+
/* @__PURE__ */ s.jsxs(At, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
2825
|
+
/* @__PURE__ */ s.jsx(_r, {}),
|
|
2826
2826
|
t
|
|
2827
2827
|
] }),
|
|
2828
|
-
e && /* @__PURE__ */ s.jsxs(
|
|
2829
|
-
/* @__PURE__ */ s.jsx(
|
|
2828
|
+
e && /* @__PURE__ */ s.jsxs(At, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: e, children: [
|
|
2829
|
+
/* @__PURE__ */ s.jsx(jr, {}),
|
|
2830
2830
|
n.storno
|
|
2831
2831
|
] })
|
|
2832
2832
|
] })
|
|
2833
2833
|
] });
|
|
2834
|
-
},
|
|
2835
|
-
button:
|
|
2836
|
-
},
|
|
2834
|
+
}, Sa = "_button_1r3i0_1", st = {
|
|
2835
|
+
button: Sa
|
|
2836
|
+
}, Ta = ({
|
|
2837
2837
|
color: t = "primary",
|
|
2838
2838
|
// icon = <MdOutlineArrowOutward size={10} />,
|
|
2839
2839
|
icon: e,
|
|
@@ -2842,70 +2842,70 @@ const va = "_button_1wjon_1", ba = "_filled_1wjon_7", _a = "_sm_1wjon_13", ja =
|
|
|
2842
2842
|
...o
|
|
2843
2843
|
}) => {
|
|
2844
2844
|
const { LinkComponent: a } = q(ie);
|
|
2845
|
-
return o.as === "link" ? /* @__PURE__ */ s.jsxs(a, { to: o.href ?? "/", className: x(`luminus-context-button btn text-${t} ${n ?? ""}`,
|
|
2845
|
+
return o.as === "link" ? /* @__PURE__ */ s.jsxs(a, { to: o.href ?? "/", className: x(`luminus-context-button btn text-${t} ${n ?? ""}`, st.button), ...o, children: [
|
|
2846
2846
|
e,
|
|
2847
2847
|
r
|
|
2848
|
-
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ s.jsxs("button", { type: "button", className: x(`luminus-context-button btn text-${t} ${n ?? ""}`,
|
|
2848
|
+
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ s.jsxs("button", { type: "button", className: x(`luminus-context-button btn text-${t} ${n ?? ""}`, st.button), ...o, children: [
|
|
2849
2849
|
e,
|
|
2850
2850
|
r
|
|
2851
2851
|
] }) : null;
|
|
2852
|
-
},
|
|
2852
|
+
}, Un = ({ color: t = "primary", icon: e = /* @__PURE__ */ s.jsx(Vt, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, className: a, children: i, multiple: c, ...l }) => {
|
|
2853
2853
|
const u = (d) => {
|
|
2854
2854
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
2855
2855
|
};
|
|
2856
2856
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2857
|
-
/* @__PURE__ */ s.jsxs("label", { htmlFor: n, className: x(`luminus-context-button btn text-${t} ${a ?? ""}`,
|
|
2857
|
+
/* @__PURE__ */ s.jsxs("label", { htmlFor: n, className: x(`luminus-context-button btn text-${t} ${a ?? ""}`, st.button), ...l, children: [
|
|
2858
2858
|
e,
|
|
2859
2859
|
i
|
|
2860
2860
|
] }),
|
|
2861
2861
|
/* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: c })
|
|
2862
2862
|
] });
|
|
2863
|
-
},
|
|
2863
|
+
}, Ea = "_icon-button_15e26_1", Oa = "_sm_15e26_14", Ma = "_md_15e26_23", Da = "_lg_15e26_32", Wt = {
|
|
2864
2864
|
"icon-button": "_icon-button_15e26_1",
|
|
2865
|
-
iconButton:
|
|
2866
|
-
sm:
|
|
2867
|
-
md:
|
|
2868
|
-
lg:
|
|
2865
|
+
iconButton: Ea,
|
|
2866
|
+
sm: Oa,
|
|
2867
|
+
md: Ma,
|
|
2868
|
+
lg: Da
|
|
2869
2869
|
}, J = ({ type: t = "button", color: e = "primary", size: n = "md", children: r, className: o, ...a }) => /* @__PURE__ */ s.jsx(
|
|
2870
2870
|
"button",
|
|
2871
2871
|
{
|
|
2872
2872
|
type: t,
|
|
2873
|
-
className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`,
|
|
2873
|
+
className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`, Wt.iconButton, Wt[n]),
|
|
2874
2874
|
...a,
|
|
2875
2875
|
children: r
|
|
2876
2876
|
}
|
|
2877
|
-
),
|
|
2877
|
+
), vc = ({ month: t, onChangeMonth: e, locale: n }) => {
|
|
2878
2878
|
const r = O((o) => {
|
|
2879
|
-
e(
|
|
2879
|
+
e(on(t, o));
|
|
2880
2880
|
}, [t, e]);
|
|
2881
2881
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2882
|
-
/* @__PURE__ */ s.jsx(J, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(
|
|
2883
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
2884
|
-
/* @__PURE__ */ s.jsx(J, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(
|
|
2882
|
+
/* @__PURE__ */ s.jsx(J, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(ut, {}) }),
|
|
2883
|
+
/* @__PURE__ */ s.jsx("div", { children: ln(t, "LLLL yyyy", { locale: n }) }),
|
|
2884
|
+
/* @__PURE__ */ s.jsx(J, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2885
2885
|
] });
|
|
2886
|
-
},
|
|
2886
|
+
}, bc = ({ year: t, onChangeYear: e, locale: n }) => {
|
|
2887
2887
|
const r = O((o) => {
|
|
2888
|
-
e(
|
|
2888
|
+
e(Yr(t, o));
|
|
2889
2889
|
}, [t, e]);
|
|
2890
2890
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2891
|
-
/* @__PURE__ */ s.jsx(J, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(
|
|
2892
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
2893
|
-
/* @__PURE__ */ s.jsx(J, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(
|
|
2891
|
+
/* @__PURE__ */ s.jsx(J, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(ut, {}) }),
|
|
2892
|
+
/* @__PURE__ */ s.jsx("div", { children: ln(t, "yyyy", { locale: n }) }),
|
|
2893
|
+
/* @__PURE__ */ s.jsx(J, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2894
2894
|
] });
|
|
2895
|
-
},
|
|
2896
|
-
widget:
|
|
2897
|
-
},
|
|
2895
|
+
}, Pa = "_widget_1sdw8_1", Aa = {
|
|
2896
|
+
widget: Pa
|
|
2897
|
+
}, Fa = ({ show: t, widgets: e, handleClose: n, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ s.jsxs(Fe, { show: t, onHide: () => n(), children: [
|
|
2898
2898
|
/* @__PURE__ */ s.jsx(Fe.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Fe.Title, { children: o.pickWidgetToAdd }) }),
|
|
2899
2899
|
/* @__PURE__ */ s.jsx(Fe.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(Q, { variant: "body", children: a.name }) })) }) })
|
|
2900
|
-
] }),
|
|
2900
|
+
] }), Rt = ({ availableWidgets: t, onAdd: e, texts: n }) => {
|
|
2901
2901
|
const [r, o] = P(!1);
|
|
2902
2902
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2903
|
-
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget",
|
|
2904
|
-
/* @__PURE__ */ s.jsx(
|
|
2903
|
+
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget", Aa.widget), children: /* @__PURE__ */ s.jsx(J, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(kr, {}) }) }),
|
|
2904
|
+
/* @__PURE__ */ s.jsx(Fa, { show: r, widgets: t, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
2905
2905
|
o(!1), e(a);
|
|
2906
2906
|
}, texts: n })
|
|
2907
2907
|
] });
|
|
2908
|
-
},
|
|
2908
|
+
}, Wa = (t) => {
|
|
2909
2909
|
const [e, n] = P({ widgets: [] });
|
|
2910
2910
|
D(() => {
|
|
2911
2911
|
const o = localStorage.getItem("dashboardConfig");
|
|
@@ -2915,25 +2915,25 @@ const va = "_button_1wjon_1", ba = "_filled_1wjon_7", _a = "_sm_1wjon_13", ja =
|
|
|
2915
2915
|
n(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
|
|
2916
2916
|
}, []);
|
|
2917
2917
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
2918
|
-
},
|
|
2919
|
-
dashboard:
|
|
2918
|
+
}, Ra = "_dashboard_5q0l1_1", qa = "_widgets-grid_5q0l1_1", La = "_widget-wrapper_5q0l1_8", Ya = "_full-width_5q0l1_13", Ha = "_widget-edit_5q0l1_16", Ga = "_remove-icon_5q0l1_19", Ba = "_full-width-icon_5q0l1_26", Va = "_widget-edit-overlay_5q0l1_36", se = {
|
|
2919
|
+
dashboard: Ra,
|
|
2920
2920
|
"widgets-grid": "_widgets-grid_5q0l1_1",
|
|
2921
|
-
widgetsGrid:
|
|
2921
|
+
widgetsGrid: qa,
|
|
2922
2922
|
"widget-wrapper": "_widget-wrapper_5q0l1_8",
|
|
2923
|
-
widgetWrapper:
|
|
2923
|
+
widgetWrapper: La,
|
|
2924
2924
|
"full-width": "_full-width_5q0l1_13",
|
|
2925
|
-
fullWidth:
|
|
2925
|
+
fullWidth: Ya,
|
|
2926
2926
|
"widget-edit": "_widget-edit_5q0l1_16",
|
|
2927
|
-
widgetEdit:
|
|
2927
|
+
widgetEdit: Ha,
|
|
2928
2928
|
"remove-icon": "_remove-icon_5q0l1_19",
|
|
2929
|
-
removeIcon:
|
|
2929
|
+
removeIcon: Ga,
|
|
2930
2930
|
"full-width-icon": "_full-width-icon_5q0l1_26",
|
|
2931
|
-
fullWidthIcon:
|
|
2931
|
+
fullWidthIcon: Ba,
|
|
2932
2932
|
"widget-edit-overlay": "_widget-edit-overlay_5q0l1_36",
|
|
2933
|
-
widgetEditOverlay:
|
|
2934
|
-
},
|
|
2933
|
+
widgetEditOverlay: Va
|
|
2934
|
+
}, _c = ({ availableWidgets: t, editMode: e, defaultDashboardConfig: n }) => {
|
|
2935
2935
|
var d;
|
|
2936
|
-
const { homeDashboardTexts: r } = q(ie), { dashboardConfig: o, onChangeDashboardConfig: a } =
|
|
2936
|
+
const { homeDashboardTexts: r } = q(ie), { dashboardConfig: o, onChangeDashboardConfig: a } = Wa(n), i = O((h, m) => {
|
|
2937
2937
|
var g, b;
|
|
2938
2938
|
h === ((g = o.widgets) == null ? void 0 : g.length) ? a({
|
|
2939
2939
|
...o,
|
|
@@ -2958,10 +2958,10 @@ const va = "_button_1wjon_1", ba = "_filled_1wjon_7", _a = "_sm_1wjon_13", ja =
|
|
|
2958
2958
|
[se.widgetEdit]: e && h.id !== -1
|
|
2959
2959
|
}, { [se.fullWidth]: g }), children: [
|
|
2960
2960
|
e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2961
|
-
/* @__PURE__ */ s.jsx(J, { color: "danger", onClick: () => c(m), className: x(se.removeIcon), children: /* @__PURE__ */ s.jsx(
|
|
2962
|
-
/* @__PURE__ */ s.jsx(J, { color: g ? "danger" : "primary", onClick: () => l(m), className: x(se.fullWidthIcon), children: /* @__PURE__ */ s.jsx(
|
|
2961
|
+
/* @__PURE__ */ s.jsx(J, { color: "danger", onClick: () => c(m), className: x(se.removeIcon), children: /* @__PURE__ */ s.jsx(Ut, {}) }),
|
|
2962
|
+
/* @__PURE__ */ s.jsx(J, { color: g ? "danger" : "primary", onClick: () => l(m), className: x(se.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Cr, {}) })
|
|
2963
2963
|
] }),
|
|
2964
|
-
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: se.widgetWrapper, children: /* @__PURE__ */ s.jsx(
|
|
2964
|
+
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: se.widgetWrapper, children: /* @__PURE__ */ s.jsx(Rt, { availableWidgets: t, onAdd: (b) => i(m, b), texts: r }) }) : h.render,
|
|
2965
2965
|
h.id > -1 && e && /* @__PURE__ */ s.jsx("div", { className: se.widgetEditOverlay })
|
|
2966
2966
|
] }, m) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
2967
2967
|
e,
|
|
@@ -2973,43 +2973,43 @@ const va = "_button_1wjon_1", ba = "_filled_1wjon_7", _a = "_sm_1wjon_13", ja =
|
|
|
2973
2973
|
]);
|
|
2974
2974
|
return /* @__PURE__ */ s.jsx("div", { className: se.dashboard, children: /* @__PURE__ */ s.jsxs("div", { className: se.widgetsGrid, children: [
|
|
2975
2975
|
(d = o.widgets) == null ? void 0 : d.map((h, m) => u(t.find((g) => g.id === h.widgetId), m, h.fullWidth)),
|
|
2976
|
-
e && /* @__PURE__ */ s.jsx(
|
|
2976
|
+
e && /* @__PURE__ */ s.jsx(Rt, { availableWidgets: t, onAdd: (h) => {
|
|
2977
2977
|
var m;
|
|
2978
2978
|
return i((m = o.widgets) == null ? void 0 : m.length, h);
|
|
2979
2979
|
}, texts: r })
|
|
2980
2980
|
] }) });
|
|
2981
|
-
},
|
|
2982
|
-
badge:
|
|
2983
|
-
sm:
|
|
2984
|
-
md:
|
|
2985
|
-
lg:
|
|
2986
|
-
},
|
|
2981
|
+
}, Ua = "_badge_nhser_1", Ka = "_sm_nhser_1", za = "_md_nhser_4", Qa = "_lg_nhser_7", qt = {
|
|
2982
|
+
badge: Ua,
|
|
2983
|
+
sm: Ka,
|
|
2984
|
+
md: za,
|
|
2985
|
+
lg: Qa
|
|
2986
|
+
}, jc = ({ children: t, color: e = "primary", size: n = "md", className: r }) => /* @__PURE__ */ s.jsx("span", { className: x(`luminus-badge badge bg-${e} ${r ?? ""}`, qt.badge, qt[n]), children: t }), Xa = "_collapse-icon_1ahhn_1", Ja = "_collapsed_1ahhn_6", Lt = {
|
|
2987
2987
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
2988
|
-
collapseIcon:
|
|
2989
|
-
collapsed:
|
|
2990
|
-
},
|
|
2988
|
+
collapseIcon: Xa,
|
|
2989
|
+
collapsed: Ja
|
|
2990
|
+
}, kc = ({ title: t, children: e, className: n, ...r }) => {
|
|
2991
2991
|
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = P(o), c = r.controlled ? r.isOpen : a;
|
|
2992
2992
|
return D(() => {
|
|
2993
2993
|
i(o);
|
|
2994
2994
|
}, [o]), /* @__PURE__ */ s.jsxs("div", { className: n ?? "", children: [
|
|
2995
2995
|
/* @__PURE__ */ s.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => r.controlled ? r.onToggle(!r.isOpen) : i(!a), children: [
|
|
2996
2996
|
/* @__PURE__ */ s.jsx(Q, { variant: "h6", children: t }),
|
|
2997
|
-
/* @__PURE__ */ s.jsx(
|
|
2998
|
-
[
|
|
2997
|
+
/* @__PURE__ */ s.jsx(Kt, { className: x(Lt.collapseIcon, {
|
|
2998
|
+
[Lt.collapsed]: c
|
|
2999
2999
|
}) })
|
|
3000
3000
|
] }),
|
|
3001
|
-
/* @__PURE__ */ s.jsx(
|
|
3001
|
+
/* @__PURE__ */ s.jsx(un, { in: c, children: /* @__PURE__ */ s.jsx("div", { children: e }) }),
|
|
3002
3002
|
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${c ? "mt-3" : ""}` })
|
|
3003
3003
|
] });
|
|
3004
|
-
},
|
|
3005
|
-
feedback:
|
|
3004
|
+
}, Za = "_feedback_esh1j_1", ei = "_feedback-spacer_esh1j_8", Yt = {
|
|
3005
|
+
feedback: Za,
|
|
3006
3006
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
3007
|
-
feedbackSpacer:
|
|
3007
|
+
feedbackSpacer: ei
|
|
3008
3008
|
}, xe = ({ message: t }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3009
|
-
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback",
|
|
3010
|
-
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback-spacer",
|
|
3009
|
+
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback", Yt.feedback), children: t }),
|
|
3010
|
+
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback-spacer", Yt.feedbackSpacer), children: t })
|
|
3011
3011
|
] });
|
|
3012
|
-
function
|
|
3012
|
+
function ti(t, e, n) {
|
|
3013
3013
|
var r = this, o = Y(null), a = Y(0), i = Y(null), c = Y([]), l = Y(), u = Y(), d = Y(t), h = Y(!0);
|
|
3014
3014
|
d.current = t;
|
|
3015
3015
|
var m = typeof window < "u", g = !e && e !== 0 && m;
|
|
@@ -3065,42 +3065,42 @@ function ei(t, e, n) {
|
|
|
3065
3065
|
}, [b, f, e, v, w, g, m, j]);
|
|
3066
3066
|
return p;
|
|
3067
3067
|
}
|
|
3068
|
-
function
|
|
3068
|
+
function ni(t, e) {
|
|
3069
3069
|
return t === e;
|
|
3070
3070
|
}
|
|
3071
|
-
function
|
|
3071
|
+
function ri(t, e) {
|
|
3072
3072
|
return e;
|
|
3073
3073
|
}
|
|
3074
|
-
function
|
|
3075
|
-
var r =
|
|
3074
|
+
function Kn(t, e, n) {
|
|
3075
|
+
var r = ni, o = Xt(ri, t), a = o[0], i = o[1], c = ti(O(function(u) {
|
|
3076
3076
|
return i(u);
|
|
3077
3077
|
}, [i]), e, n), l = Y(t);
|
|
3078
3078
|
return r(l.current, t) || (c(t), l.current = t), [a, c];
|
|
3079
3079
|
}
|
|
3080
|
-
const
|
|
3081
|
-
wrapper:
|
|
3082
|
-
open:
|
|
3083
|
-
dropdown:
|
|
3080
|
+
const oi = "_wrapper_uccrb_1", si = "_open_uccrb_9", ai = "_dropdown_uccrb_13", ii = "_search-input-container_uccrb_19", ci = "_search-input_uccrb_19", li = "_loading-container_uccrb_25", ui = "_items-container_uccrb_32", di = "_header-row_uccrb_38", hi = "_item_uccrb_32", mi = "_name_uccrb_57", fi = "_column-item_uccrb_62", pi = "_icon_uccrb_66", gi = "_clear-button_uccrb_74", X = {
|
|
3081
|
+
wrapper: oi,
|
|
3082
|
+
open: si,
|
|
3083
|
+
dropdown: ai,
|
|
3084
3084
|
"search-input-container": "_search-input-container_uccrb_19",
|
|
3085
|
-
searchInputContainer:
|
|
3085
|
+
searchInputContainer: ii,
|
|
3086
3086
|
"search-input": "_search-input_uccrb_19",
|
|
3087
|
-
searchInput:
|
|
3087
|
+
searchInput: ci,
|
|
3088
3088
|
"loading-container": "_loading-container_uccrb_25",
|
|
3089
|
-
loadingContainer:
|
|
3089
|
+
loadingContainer: li,
|
|
3090
3090
|
"items-container": "_items-container_uccrb_32",
|
|
3091
|
-
itemsContainer:
|
|
3091
|
+
itemsContainer: ui,
|
|
3092
3092
|
"header-row": "_header-row_uccrb_38",
|
|
3093
|
-
headerRow:
|
|
3094
|
-
item:
|
|
3095
|
-
name:
|
|
3093
|
+
headerRow: di,
|
|
3094
|
+
item: hi,
|
|
3095
|
+
name: mi,
|
|
3096
3096
|
"column-item": "_column-item_uccrb_62",
|
|
3097
|
-
columnItem:
|
|
3098
|
-
icon:
|
|
3097
|
+
columnItem: fi,
|
|
3098
|
+
icon: pi,
|
|
3099
3099
|
"clear-button": "_clear-button_uccrb_74",
|
|
3100
|
-
clearButton:
|
|
3101
|
-
},
|
|
3100
|
+
clearButton: gi
|
|
3101
|
+
}, xt = ({ show: t, onCancel: e, items: n, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, itemsNameWidth: c, additionalColumns: l, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: m, isLoading: g = !1, inputRef: b }) => {
|
|
3102
3102
|
var I;
|
|
3103
|
-
const w = Y(null), f = Y(null), j = Y(null), [v, p] = P(""), [C] =
|
|
3103
|
+
const w = Y(null), f = Y(null), j = Y(null), [v, p] = P(""), [C] = Kn(v, 500), [, k] = P(!1), y = (I = b.current) == null ? void 0 : I.getBoundingClientRect(), $ = (y == null ? void 0 : y.x) ?? 0, M = ((y == null ? void 0 : y.x) ?? 0) + ((y == null ? void 0 : y.width) ?? 0), S = (y == null ? void 0 : y.y) ?? 0, N = ((y == null ? void 0 : y.y) ?? 0) + ((y == null ? void 0 : y.height) ?? 0), _ = (y == null ? void 0 : y.width) ?? 0, T = (y == null ? void 0 : y.height) ?? 0, F = 5, W = z(() => $ ? $ > window.innerWidth / 2 : !1, [$]), H = z(() => S ? S > window.innerHeight / 2 : !1, [S]);
|
|
3104
3104
|
D(() => {
|
|
3105
3105
|
var E;
|
|
3106
3106
|
t && ((E = j.current) == null || E.focus());
|
|
@@ -3122,14 +3122,14 @@ const ri = "_wrapper_uccrb_1", oi = "_open_uccrb_9", si = "_dropdown_uccrb_13",
|
|
|
3122
3122
|
window.removeEventListener("scroll", B);
|
|
3123
3123
|
}), [B]), D(() => (window.addEventListener("resize", B), () => {
|
|
3124
3124
|
window.removeEventListener("resize", B);
|
|
3125
|
-
}), [B]),
|
|
3125
|
+
}), [B]), tn(R), nn([w, f], e);
|
|
3126
3126
|
const oe = c ?? (l && l.length > 0 ? 250 : 0), te = (l == null ? void 0 : l.reduce((E, K) => E + (K.width ?? 100), 0)) ?? 0, U = `calc(max(${_}px, ${oe}px + ${te}px))`;
|
|
3127
3127
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3128
|
-
/* @__PURE__ */ s.jsx(
|
|
3128
|
+
/* @__PURE__ */ s.jsx(Qn, { show: t, onClick: e }),
|
|
3129
3129
|
r && t && !m && /* @__PURE__ */ s.jsx("button", { ref: f, type: "button", className: x("luminus-dropdown-picker-clear-button", X.clearButton), onClick: () => !m && o(null), style: {
|
|
3130
3130
|
top: `calc(${S}px + ${T / 2}px - 12px)`,
|
|
3131
3131
|
left: `calc(${$}px - 24px - 8px)`
|
|
3132
|
-
}, children: /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(
|
|
3132
|
+
}, children: /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(Ut, { size: 16 }) }) }),
|
|
3133
3133
|
/* @__PURE__ */ s.jsx("div", { className: x("luminus-dropdown-picker", X.wrapper, {
|
|
3134
3134
|
[X.open]: t
|
|
3135
3135
|
}), style: {
|
|
@@ -3143,7 +3143,7 @@ const ri = "_wrapper_uccrb_1", oi = "_open_uccrb_9", si = "_dropdown_uccrb_13",
|
|
|
3143
3143
|
var K;
|
|
3144
3144
|
return p(((K = E.target) == null ? void 0 : K.value) ?? "");
|
|
3145
3145
|
} }) }),
|
|
3146
|
-
g ? /* @__PURE__ */ s.jsx("div", { className: X.loadingContainer, children: /* @__PURE__ */ s.jsx(
|
|
3146
|
+
g ? /* @__PURE__ */ s.jsx("div", { className: X.loadingContainer, children: /* @__PURE__ */ s.jsx(pt, { animation: "border", variant: "primary" }) }) : n.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("items", X.itemsContainer), children: [
|
|
3147
3147
|
l && l.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("header-row border-bottom", X.headerRow), children: [
|
|
3148
3148
|
/* @__PURE__ */ s.jsx("div", { className: X.name }),
|
|
3149
3149
|
l == null ? void 0 : l.map((E) => /* @__PURE__ */ s.jsx("div", { className: X.columnItem, style: {
|
|
@@ -3164,58 +3164,58 @@ const ri = "_wrapper_uccrb_1", oi = "_open_uccrb_9", si = "_dropdown_uccrb_13",
|
|
|
3164
3164
|
] }) }) })
|
|
3165
3165
|
] });
|
|
3166
3166
|
};
|
|
3167
|
-
function
|
|
3168
|
-
return
|
|
3167
|
+
function wi(t) {
|
|
3168
|
+
return Nr({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" }, child: [] }] })(t);
|
|
3169
3169
|
}
|
|
3170
|
-
const
|
|
3171
|
-
item:
|
|
3172
|
-
},
|
|
3170
|
+
const xi = "_item_1dy8x_1", zn = {
|
|
3171
|
+
item: xi
|
|
3172
|
+
}, yi = ({
|
|
3173
3173
|
color: t = "primary",
|
|
3174
3174
|
// icon = <MdOutlineArrowOutward />,
|
|
3175
3175
|
icon: e,
|
|
3176
3176
|
className: n,
|
|
3177
3177
|
children: r,
|
|
3178
3178
|
...o
|
|
3179
|
-
}) => /* @__PURE__ */ s.jsxs(Te.Item, { className: x(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${n ?? ""}`,
|
|
3179
|
+
}) => /* @__PURE__ */ s.jsxs(Te.Item, { className: x(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${n ?? ""}`, zn.item), ...o, children: [
|
|
3180
3180
|
e,
|
|
3181
3181
|
r
|
|
3182
|
-
] }),
|
|
3182
|
+
] }), vi = (t) => /* @__PURE__ */ s.jsx(Te.Toggle, { ...t }), Cc = ({ color: t = "primary", icon: e = /* @__PURE__ */ s.jsx(Vt, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: i, children: c, ...l }) => {
|
|
3183
3183
|
const u = (d) => {
|
|
3184
3184
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
3185
3185
|
};
|
|
3186
3186
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3187
|
-
/* @__PURE__ */ s.jsxs("label", { htmlFor: n, className: x(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${i ?? ""}`,
|
|
3187
|
+
/* @__PURE__ */ s.jsxs("label", { htmlFor: n, className: x(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${i ?? ""}`, zn.item), ...l, children: [
|
|
3188
3188
|
e,
|
|
3189
3189
|
c
|
|
3190
3190
|
] }),
|
|
3191
3191
|
/* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
|
|
3192
3192
|
] });
|
|
3193
|
-
},
|
|
3194
|
-
divider:
|
|
3195
|
-
},
|
|
3196
|
-
dropdown:
|
|
3197
|
-
},
|
|
3193
|
+
}, bi = "_divider_1e6rk_1", _i = {
|
|
3194
|
+
divider: bi
|
|
3195
|
+
}, Nc = ({ className: t }) => /* @__PURE__ */ s.jsx(Te.Divider, { className: x("luminus-dropdown-divider", t, _i.divider) }), ji = "_dropdown_1lk66_1", ki = {
|
|
3196
|
+
dropdown: ji
|
|
3197
|
+
}, Ci = ({ toggle: t, children: e, ...n }) => /* @__PURE__ */ s.jsxs(Te, { ...n, children: [
|
|
3198
3198
|
t,
|
|
3199
|
-
/* @__PURE__ */ s.jsx(Te.Menu, { className: x("luminus-dropdown rounded shadow",
|
|
3200
|
-
] }),
|
|
3201
|
-
dropdown:
|
|
3202
|
-
open:
|
|
3199
|
+
/* @__PURE__ */ s.jsx(Te.Menu, { className: x("luminus-dropdown rounded shadow", ki.dropdown), children: e })
|
|
3200
|
+
] }), Ni = ({ searchTypes: t, selectedType: e, setSelectedType: n }) => /* @__PURE__ */ s.jsx(Ci, { toggle: /* @__PURE__ */ s.jsx(vi, { as: $r, icon: null, text: e == null ? void 0 : e.text }), children: t.map((r) => /* @__PURE__ */ s.jsx(yi, { icon: null, onClick: () => n(r), children: r.text }, r.key)) }), $i = "_dropdown_1ddrg_1", Ii = "_open_1ddrg_12", Si = "_loading-container_1ddrg_15", Ti = "_groups-container_1ddrg_22", Ei = "_group_1ddrg_22", Oi = "_header_1ddrg_26", Mi = "_item_1ddrg_33", he = {
|
|
3201
|
+
dropdown: $i,
|
|
3202
|
+
open: Ii,
|
|
3203
3203
|
"loading-container": "_loading-container_1ddrg_15",
|
|
3204
|
-
loadingContainer:
|
|
3204
|
+
loadingContainer: Si,
|
|
3205
3205
|
"groups-container": "_groups-container_1ddrg_22",
|
|
3206
|
-
groupsContainer:
|
|
3207
|
-
group:
|
|
3208
|
-
header:
|
|
3209
|
-
item:
|
|
3210
|
-
},
|
|
3206
|
+
groupsContainer: Ti,
|
|
3207
|
+
group: Ei,
|
|
3208
|
+
header: Oi,
|
|
3209
|
+
item: Mi
|
|
3210
|
+
}, Di = ({ show: t, query: e, onCancel: n, groups: r, isLoading: o, searchTypes: a }) => {
|
|
3211
3211
|
const { LinkComponent: i, appSearchTexts: c } = q(ie), l = Y(null), u = O((d) => {
|
|
3212
3212
|
var m;
|
|
3213
3213
|
const h = (m = a.find((g) => g.key === d.type)) == null ? void 0 : m.toPath;
|
|
3214
3214
|
return h ? `${h}/${d.searchKey}` : "/not-found";
|
|
3215
3215
|
}, [a]);
|
|
3216
|
-
return
|
|
3216
|
+
return nn([l], n), /* @__PURE__ */ s.jsx("div", { ref: l, className: x("luminus-app-search-dropdown shadow rounded", he.dropdown, {
|
|
3217
3217
|
[he.open]: t
|
|
3218
|
-
}), children: o ? /* @__PURE__ */ s.jsx("div", { className: he.loadingContainer, children: /* @__PURE__ */ s.jsx(
|
|
3218
|
+
}), children: o ? /* @__PURE__ */ s.jsx("div", { className: he.loadingContainer, children: /* @__PURE__ */ s.jsx(pt, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: he.groupsContainer, children: r == null ? void 0 : r.map((d) => {
|
|
3219
3219
|
var h;
|
|
3220
3220
|
return /* @__PURE__ */ s.jsxs("div", { className: x(he.group), children: [
|
|
3221
3221
|
/* @__PURE__ */ s.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: x("group-header", he.header), onClick: n, children: [
|
|
@@ -3236,25 +3236,25 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3236
3236
|
onClick: n,
|
|
3237
3237
|
children: [
|
|
3238
3238
|
/* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
|
|
3239
|
-
/* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(
|
|
3239
|
+
/* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(Ir, {}) })
|
|
3240
3240
|
]
|
|
3241
3241
|
},
|
|
3242
3242
|
g
|
|
3243
3243
|
))
|
|
3244
3244
|
] }, d.key.category);
|
|
3245
3245
|
}) }) });
|
|
3246
|
-
},
|
|
3246
|
+
}, Pi = "_input-group_1lkfy_1", Ai = "_input-group-text_1lkfy_5", Fi = "_left_1lkfy_9", Wi = "_right_1lkfy_13", Ri = "_input_1lkfy_1", qi = "_submit-button_1lkfy_20", me = {
|
|
3247
3247
|
"input-group": "_input-group_1lkfy_1",
|
|
3248
|
-
inputGroup:
|
|
3248
|
+
inputGroup: Pi,
|
|
3249
3249
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
3250
|
-
inputGroupText:
|
|
3251
|
-
left:
|
|
3252
|
-
right:
|
|
3253
|
-
input:
|
|
3250
|
+
inputGroupText: Ai,
|
|
3251
|
+
left: Fi,
|
|
3252
|
+
right: Wi,
|
|
3253
|
+
input: Ri,
|
|
3254
3254
|
"submit-button": "_submit-button_1lkfy_20",
|
|
3255
|
-
submitButton:
|
|
3256
|
-
},
|
|
3257
|
-
const n =
|
|
3255
|
+
submitButton: qi
|
|
3256
|
+
}, Li = (t, e) => {
|
|
3257
|
+
const n = Sr(), [r, o] = P(!1), [a, i] = P([]), c = !t || !t.key, l = O(() => {
|
|
3258
3258
|
if (e.length < 3) {
|
|
3259
3259
|
i([]);
|
|
3260
3260
|
return;
|
|
@@ -3268,32 +3268,32 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3268
3268
|
return D(() => {
|
|
3269
3269
|
l();
|
|
3270
3270
|
}, [l]), { isLoading: r, searchItems: a };
|
|
3271
|
-
},
|
|
3272
|
-
const { appSearchTexts: n } = q(ie), [r, o] = P(t.length > 0 ? t[0] : null), [a, i] = P(""), [c, l] =
|
|
3271
|
+
}, $c = ({ searchTypes: t, navigateFunction: e }) => {
|
|
3272
|
+
const { appSearchTexts: n } = q(ie), [r, o] = P(t.length > 0 ? t[0] : null), [a, i] = P(""), [c, l] = Kn(a, 500), { isLoading: u, searchItems: d } = Li(r, c), [h, m] = P(!1);
|
|
3273
3273
|
return D(() => {
|
|
3274
3274
|
(d.length > 0 || u) && m(!0);
|
|
3275
3275
|
}, [d, u]), /* @__PURE__ */ s.jsx(ee, { onSubmit: (g) => {
|
|
3276
3276
|
g.preventDefault(), g.stopPropagation(), l.flush(), m(!1), a.length > 2 && e(`/search?query=${a}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
|
|
3277
3277
|
}, children: /* @__PURE__ */ s.jsxs(et, { className: me.inputGroup, children: [
|
|
3278
|
-
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded", me.inputGroupText, me.left), children: /* @__PURE__ */ s.jsx(
|
|
3278
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded", me.inputGroupText, me.left), children: /* @__PURE__ */ s.jsx(Ni, { searchTypes: t, selectedType: r, setSelectedType: o }) }),
|
|
3279
3279
|
/* @__PURE__ */ s.jsx(ee.Control, { placeholder: n.searchPlaceholder, type: "text", size: "sm", className: x("luminus-app-search-input", me.input), value: a, onChange: (g) => {
|
|
3280
3280
|
var b;
|
|
3281
3281
|
return i(((b = g.target) == null ? void 0 : b.value) ?? "");
|
|
3282
3282
|
}, onFocus: () => d.length > 0 && m(!0) }),
|
|
3283
|
-
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-0 rounded", me.inputGroupText, me.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: x("text-primary", me.submitButton), children: /* @__PURE__ */ s.jsx(
|
|
3284
|
-
/* @__PURE__ */ s.jsx(
|
|
3283
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-0 rounded", me.inputGroupText, me.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: x("text-primary", me.submitButton), children: /* @__PURE__ */ s.jsx(wi, {}) }) }),
|
|
3284
|
+
/* @__PURE__ */ s.jsx(Di, { query: c, searchTypes: t, show: h, onCancel: () => m(!1), groups: d, isLoading: u })
|
|
3285
3285
|
] }) });
|
|
3286
|
-
},
|
|
3287
|
-
card:
|
|
3288
|
-
header:
|
|
3286
|
+
}, Yi = "_card_19733_1", Hi = "_header_19733_6", Gi = "_header-content_19733_13", Bi = "_title_19733_19", Vi = "_collapse-icon_19733_22", Ui = "_collapsed_19733_27", Ki = "_content_19733_30", fe = {
|
|
3287
|
+
card: Yi,
|
|
3288
|
+
header: Hi,
|
|
3289
3289
|
"header-content": "_header-content_19733_13",
|
|
3290
|
-
headerContent:
|
|
3291
|
-
title:
|
|
3290
|
+
headerContent: Gi,
|
|
3291
|
+
title: Bi,
|
|
3292
3292
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
3293
|
-
collapseIcon:
|
|
3294
|
-
collapsed:
|
|
3295
|
-
content:
|
|
3296
|
-
},
|
|
3293
|
+
collapseIcon: Vi,
|
|
3294
|
+
collapsed: Ui,
|
|
3295
|
+
content: Ki
|
|
3296
|
+
}, Ic = ({ title: t, headerContent: e, children: n, className: r, headerClassName: o, contentClassName: a, ...i }) => {
|
|
3297
3297
|
const c = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [l, u] = P(c), d = i.collapsible ? i.controlled ? i.isOpen : l : !0;
|
|
3298
3298
|
return D(() => {
|
|
3299
3299
|
u(c);
|
|
@@ -3309,36 +3309,36 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3309
3309
|
/* @__PURE__ */ s.jsx(Q, { variant: "h6", className: x("text-primary", fe.title), children: t }),
|
|
3310
3310
|
e ?? null
|
|
3311
3311
|
] }),
|
|
3312
|
-
i.collapsible && /* @__PURE__ */ s.jsx(
|
|
3312
|
+
i.collapsible && /* @__PURE__ */ s.jsx(Kt, { className: x(fe.collapseIcon, {
|
|
3313
3313
|
[fe.collapsed]: d
|
|
3314
3314
|
}) })
|
|
3315
3315
|
] }),
|
|
3316
|
-
/* @__PURE__ */ s.jsx(
|
|
3316
|
+
/* @__PURE__ */ s.jsx(un, { in: d, children: /* @__PURE__ */ s.jsx("div", { className: x("card-content border-top border-primary", fe.content, {
|
|
3317
3317
|
[a ?? ""]: a
|
|
3318
3318
|
}), children: n }) })
|
|
3319
3319
|
] });
|
|
3320
|
-
},
|
|
3321
|
-
lightbox:
|
|
3322
|
-
show:
|
|
3323
|
-
header:
|
|
3320
|
+
}, zi = "_lightbox_14acg_1", Qi = "_show_14acg_16", Xi = "_header_14acg_20", Ji = "_photo-actions_14acg_26", Zi = "_photo-container_14acg_31", ec = "_photo_14acg_26", tc = "_nav-button_14acg_41", nc = "_photos-preview_14acg_49", rc = "_selected_14acg_62", oc = "_default-indicator_14acg_66", ne = {
|
|
3321
|
+
lightbox: zi,
|
|
3322
|
+
show: Qi,
|
|
3323
|
+
header: Xi,
|
|
3324
3324
|
"photo-actions": "_photo-actions_14acg_26",
|
|
3325
|
-
photoActions:
|
|
3325
|
+
photoActions: Ji,
|
|
3326
3326
|
"photo-container": "_photo-container_14acg_31",
|
|
3327
|
-
photoContainer:
|
|
3328
|
-
photo:
|
|
3327
|
+
photoContainer: Zi,
|
|
3328
|
+
photo: ec,
|
|
3329
3329
|
"nav-button": "_nav-button_14acg_41",
|
|
3330
|
-
navButton:
|
|
3330
|
+
navButton: tc,
|
|
3331
3331
|
"photos-preview": "_photos-preview_14acg_49",
|
|
3332
|
-
photosPreview:
|
|
3333
|
-
selected:
|
|
3332
|
+
photosPreview: nc,
|
|
3333
|
+
selected: rc,
|
|
3334
3334
|
"default-indicator": "_default-indicator_14acg_66",
|
|
3335
|
-
defaultIndicator:
|
|
3336
|
-
},
|
|
3337
|
-
backdrop:
|
|
3338
|
-
show:
|
|
3339
|
-
},
|
|
3340
|
-
[
|
|
3341
|
-
}), onClick: () => e && e() }),
|
|
3335
|
+
defaultIndicator: oc
|
|
3336
|
+
}, sc = "_backdrop_3huvf_1", ac = "_show_3huvf_11", Ht = {
|
|
3337
|
+
backdrop: sc,
|
|
3338
|
+
show: ac
|
|
3339
|
+
}, Qn = ({ show: t, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-backdrop", Ht.backdrop, {
|
|
3340
|
+
[Ht.show]: t
|
|
3341
|
+
}), onClick: () => e && e() }), ic = ({ show: t, onClose: e, photos: n, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: c }) => {
|
|
3342
3342
|
const l = Y(null), [u, d] = P(r), h = n.at(u), m = u > 0, g = u < n.length - 1;
|
|
3343
3343
|
D(() => {
|
|
3344
3344
|
t && d(r);
|
|
@@ -3358,18 +3358,18 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3358
3358
|
break;
|
|
3359
3359
|
}
|
|
3360
3360
|
}, [g, m, e]);
|
|
3361
|
-
return
|
|
3362
|
-
/* @__PURE__ */ s.jsx(
|
|
3361
|
+
return tn(b), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3362
|
+
/* @__PURE__ */ s.jsx(Qn, { show: t, onClick: e }),
|
|
3363
3363
|
/* @__PURE__ */ s.jsxs("div", { ref: l, className: x("luminus-lightbox rounded shadow", ne.lightbox, {
|
|
3364
3364
|
[ne.show]: t
|
|
3365
3365
|
}), children: [
|
|
3366
3366
|
/* @__PURE__ */ s.jsxs("div", { className: ne.header, children: [
|
|
3367
3367
|
/* @__PURE__ */ s.jsxs("div", { className: x("rounded", ne.photoActions), children: [
|
|
3368
|
-
i && /* @__PURE__ */ s.jsx(
|
|
3368
|
+
i && /* @__PURE__ */ s.jsx(Un, { accept: ".jpg,.jpeg,.png", onUpload: (w) => {
|
|
3369
3369
|
w.length > 0 && i(Array.from(w));
|
|
3370
|
-
}, icon: /* @__PURE__ */ s.jsx(
|
|
3370
|
+
}, icon: /* @__PURE__ */ s.jsx(zt, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
3371
3371
|
h && (c == null ? void 0 : c.map(({ label: w, onClick: f, ...j }, v) => /* @__PURE__ */ s.jsx(
|
|
3372
|
-
|
|
3372
|
+
Ta,
|
|
3373
3373
|
{
|
|
3374
3374
|
onClick: () => f(h.id),
|
|
3375
3375
|
...j,
|
|
@@ -3382,19 +3382,19 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3382
3382
|
] }),
|
|
3383
3383
|
n.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(Q, { variant: "body", children: a ?? "No photos available" }) }),
|
|
3384
3384
|
h && /* @__PURE__ */ s.jsxs("div", { className: ne.photoContainer, children: [
|
|
3385
|
-
/* @__PURE__ */ s.jsx("div", { role: m ? "button" : void 0, className: x("align-items-start", ne.navButton), onClick: () => m && d((w) => w - 1), children: m && /* @__PURE__ */ s.jsx(
|
|
3385
|
+
/* @__PURE__ */ s.jsx("div", { role: m ? "button" : void 0, className: x("align-items-start", ne.navButton), onClick: () => m && d((w) => w - 1), children: m && /* @__PURE__ */ s.jsx(ut, { style: { fontSize: "40px" } }) }),
|
|
3386
3386
|
/* @__PURE__ */ s.jsx("img", { src: h.lgSrc, alt: h.alt, className: x("rounded", ne.photo) }),
|
|
3387
|
-
/* @__PURE__ */ s.jsx("div", { role: g ? "button" : void 0, className: x("align-items-end", ne.navButton), onClick: () => g && d((w) => w + 1), children: g && /* @__PURE__ */ s.jsx(
|
|
3387
|
+
/* @__PURE__ */ s.jsx("div", { role: g ? "button" : void 0, className: x("align-items-end", ne.navButton), onClick: () => g && d((w) => w + 1), children: g && /* @__PURE__ */ s.jsx(dt, { style: { fontSize: "40px" } }) })
|
|
3388
3388
|
] }),
|
|
3389
3389
|
/* @__PURE__ */ s.jsx("div", { className: ne.photosPreview, children: n.map((w, f) => /* @__PURE__ */ s.jsxs("div", { role: "button", onClick: () => d(f), className: "position-relative", children: [
|
|
3390
3390
|
/* @__PURE__ */ s.jsx("img", { role: f !== u ? "button" : void 0, src: w.smSrc, alt: w.alt, className: x("rounded", ne.photo, {
|
|
3391
3391
|
[ne.selected]: f === u
|
|
3392
3392
|
}) }, w.id),
|
|
3393
|
-
w.isDefault && /* @__PURE__ */ s.jsx("div", { className: x("text-primary", ne.defaultIndicator), children: /* @__PURE__ */ s.jsx(
|
|
3393
|
+
w.isDefault && /* @__PURE__ */ s.jsx("div", { className: x("text-primary", ne.defaultIndicator), children: /* @__PURE__ */ s.jsx(Tr, {}) })
|
|
3394
3394
|
] })) })
|
|
3395
3395
|
] })
|
|
3396
3396
|
] });
|
|
3397
|
-
},
|
|
3397
|
+
}, Sc = ({ photos: t, onUploadPhotos: e, uploadPhotosText: n, photoActions: r }) => {
|
|
3398
3398
|
const [o, a] = P(null), i = o !== null ? t[o] : null, [c, l] = P(!1);
|
|
3399
3399
|
return D(() => {
|
|
3400
3400
|
if (t.length === 0) {
|
|
@@ -3414,32 +3414,32 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3414
3414
|
onClick: () => l(!0)
|
|
3415
3415
|
}
|
|
3416
3416
|
),
|
|
3417
|
-
/* @__PURE__ */ s.jsx(
|
|
3418
|
-
] }) : e ? /* @__PURE__ */ s.jsx(
|
|
3417
|
+
/* @__PURE__ */ s.jsx(ic, { show: c, onClose: () => l(!1), photos: t, defaultIndex: o ?? 0, uploadPhotosText: n, onUploadPhotos: e, photoActions: r })
|
|
3418
|
+
] }) : e ? /* @__PURE__ */ s.jsx(Un, { accept: ".jpg,.jpeg,.png", onUpload: (u) => {
|
|
3419
3419
|
u.length > 0 && e(Array.from(u));
|
|
3420
|
-
}, icon: /* @__PURE__ */ s.jsx(
|
|
3421
|
-
},
|
|
3422
|
-
const { NavigateComponent: n } = q(ie), { useMsal: r, msalScopes: o } = q(
|
|
3420
|
+
}, icon: /* @__PURE__ */ s.jsx(zt, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : null;
|
|
3421
|
+
}, Tc = ({ appAccessPermissions: t, children: e }) => {
|
|
3422
|
+
const { NavigateComponent: n } = q(ie), { useMsal: r, msalScopes: o } = q(Er), { isAuthenticated: a } = Or(), { user: i } = q(Mr), c = i && (t == null ? void 0 : t.every((l) => {
|
|
3423
3423
|
var u;
|
|
3424
3424
|
return (u = i.permissions) == null ? void 0 : u.includes(l);
|
|
3425
3425
|
}));
|
|
3426
|
-
return r ? /* @__PURE__ */ s.jsxs(
|
|
3426
|
+
return r ? /* @__PURE__ */ s.jsxs(va, { interactionType: Re.Redirect, authenticationRequest: { scopes: o }, children: [
|
|
3427
3427
|
!i && /* @__PURE__ */ s.jsx(n, { to: "/no-user-login", replace: !0 }),
|
|
3428
3428
|
c ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 })
|
|
3429
3429
|
] }) : !a() || !i ? /* @__PURE__ */ s.jsx(n, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 });
|
|
3430
|
-
},
|
|
3430
|
+
}, Ec = ({ heading: t, content: e, placement: n, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(Dr, { placement: n, overlay: /* @__PURE__ */ s.jsxs(Xe, { className: "luminus-tooltip", children: [
|
|
3431
3431
|
/* @__PURE__ */ s.jsx(Xe.Header, { as: "h3", children: t }),
|
|
3432
3432
|
/* @__PURE__ */ s.jsx(Xe.Body, { children: e })
|
|
3433
|
-
] }), trigger: o ?? "hover", rootClose: !0, children: r }),
|
|
3433
|
+
] }), trigger: o ?? "hover", rootClose: !0, children: r }), Xn = ({ currentSelection: t, selectedItemNavigateTo: e, children: n }) => {
|
|
3434
3434
|
const { LinkComponent: r } = q(ie);
|
|
3435
3435
|
if (!t || !t.id || !e)
|
|
3436
3436
|
return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: n });
|
|
3437
3437
|
const o = e(t);
|
|
3438
3438
|
return /* @__PURE__ */ s.jsx(r, { to: o, className: "luminus-input-container position-relative w-100 text-decoration-none", children: n });
|
|
3439
|
-
},
|
|
3439
|
+
}, Oc = ({ InputContainer: t = Ge, label: e, value: n, onChange: r, hidden: o, disabled: a, className: i, type: c, withoutLabel: l }) => /* @__PURE__ */ s.jsx(t, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: l, className: i, children: /* @__PURE__ */ s.jsx(ee.Check, { id: `check-${e}`, type: c ?? "checkbox", label: e ?? "", checked: n, onChange: (u) => {
|
|
3440
3440
|
var d;
|
|
3441
3441
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3442
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }),
|
|
3442
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Mc = ({ InputContainer: t = Ge, type: e, value: n, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: c, size: l, hidden: u, disabled: d, showClearIcon: h, clearValue: m, list: g, className: b, step: w }) => {
|
|
3443
3443
|
const f = e === "number", j = O(() => {
|
|
3444
3444
|
if (!r)
|
|
3445
3445
|
return;
|
|
@@ -3462,12 +3462,12 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3462
3462
|
D(() => {
|
|
3463
3463
|
C(n === null ? "" : n.toString());
|
|
3464
3464
|
}, [n]);
|
|
3465
|
-
const [$, M] = P(!1), S =
|
|
3465
|
+
const [$, M] = P(!1), S = rn(e, n ? n.toString() ?? null : null, $);
|
|
3466
3466
|
return /* @__PURE__ */ s.jsxs(t, { withoutLabel: i, label: a ?? "", hidden: u, className: b, children: [
|
|
3467
3467
|
/* @__PURE__ */ s.jsx(ee.Control, { type: S, placeholder: c ?? a, size: l, value: o ? p : n ?? "", onChange: y, className: b ?? "", hidden: u, disabled: d ?? !1, list: g, onFocus: () => M(!0), onBlur: () => M(!1), step: w }),
|
|
3468
3468
|
h && n && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(J, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ s.jsx(je, {}) }) })
|
|
3469
3469
|
] });
|
|
3470
|
-
},
|
|
3470
|
+
}, Dc = ({
|
|
3471
3471
|
InputContainer: t = Ge,
|
|
3472
3472
|
value: e,
|
|
3473
3473
|
options: n,
|
|
@@ -3504,7 +3504,7 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3504
3504
|
] }),
|
|
3505
3505
|
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(J, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ s.jsx(je, {}) }) })
|
|
3506
3506
|
] });
|
|
3507
|
-
},
|
|
3507
|
+
}, Pc = ({ InputContainer: t = Ge, items: e, defaultSelection: n, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: c, onSelect: l, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: m, additionalColumns: g, hidden: b, disabled: w, displayIdAsName: f, CustomOnChangeComponent: j, className: v }) => {
|
|
3508
3508
|
var T, F;
|
|
3509
3509
|
const [p, C] = P(n), [k, y] = P(!1);
|
|
3510
3510
|
D(() => {
|
|
@@ -3520,7 +3520,7 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3520
3520
|
}, [p, l]);
|
|
3521
3521
|
const S = Y(null), N = r !== void 0, _ = N && p !== null;
|
|
3522
3522
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { withoutLabel: d, label: u ?? "", hidden: b, inputContainerClassName: x({ "luminus-dropdown-select-open": k }), className: v, children: [
|
|
3523
|
-
/* @__PURE__ */ s.jsxs(
|
|
3523
|
+
/* @__PURE__ */ s.jsxs(Xn, { currentSelection: p, selectedItemNavigateTo: r, children: [
|
|
3524
3524
|
f && (p == null ? void 0 : p.name) && /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "luminus-dropdown-selection-name d-flex justify-content-end mt-2", children: p.name }),
|
|
3525
3525
|
/* @__PURE__ */ s.jsxs(ee.Select, { ref: S, size: h, value: (p == null ? void 0 : p.id) ?? "", onChange: (W) => C({
|
|
3526
3526
|
id: c ? Number(W.target.value) ?? null : W.target.value,
|
|
@@ -3540,13 +3540,13 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3540
3540
|
j || !w && N ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
3541
3541
|
!j && !w && N && /* @__PURE__ */ s.jsx(J, { size: "sm", color: "secondary", onClick: (W) => {
|
|
3542
3542
|
W.preventDefault(), W.stopPropagation(), y(!0);
|
|
3543
|
-
}, children: /* @__PURE__ */ s.jsx(
|
|
3543
|
+
}, children: /* @__PURE__ */ s.jsx(Qt, {}) }),
|
|
3544
3544
|
j ?? null
|
|
3545
3545
|
] }) : null
|
|
3546
3546
|
] }),
|
|
3547
|
-
S.current && /* @__PURE__ */ s.jsx(
|
|
3547
|
+
S.current && /* @__PURE__ */ s.jsx(xt, { show: k, onCancel: () => y(!1), items: e, currentSelection: p, onSelectionChange: M, onSearchQueryChange: o, texts: a, itemsNameWidth: m, additionalColumns: g, isLoading: i, disabled: w, inputRef: S })
|
|
3548
3548
|
] }) });
|
|
3549
|
-
},
|
|
3549
|
+
}, Ac = ({ InputContainer: t = we, formField: e, label: n, resetsFields: r, type: o, required: a, hidden: i, disabled: c, withoutLabel: l, className: u }) => {
|
|
3550
3550
|
const { register: d, formState: h, setValue: m } = de(), [g, b] = P(void 0), [w, f] = P(!1);
|
|
3551
3551
|
D(() => {
|
|
3552
3552
|
const v = e.split(".");
|
|
@@ -3566,7 +3566,7 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3566
3566
|
}), isInvalid: j, hidden: i, disabled: c, className: "w-100" }),
|
|
3567
3567
|
g && /* @__PURE__ */ s.jsx(xe, { message: g.message })
|
|
3568
3568
|
] });
|
|
3569
|
-
},
|
|
3569
|
+
}, Fc = ({ InputContainer: t = we, label: e, formField: n, options: r, resetsFields: o, required: a, disabled: i, hidden: c, className: l }) => {
|
|
3570
3570
|
const { register: u, formState: d, setValue: h, watch: m } = de(), [g, b] = P(void 0), [w, f] = P(!1), j = z(() => r, [r]);
|
|
3571
3571
|
D(() => {
|
|
3572
3572
|
const p = n.split(".");
|
|
@@ -3586,7 +3586,7 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3586
3586
|
}), isInvalid: v, hidden: c, disabled: i, className: "w-100" }, p.id)),
|
|
3587
3587
|
g && /* @__PURE__ */ s.jsx(xe, { message: g.message })
|
|
3588
3588
|
] });
|
|
3589
|
-
},
|
|
3589
|
+
}, Wc = ({ InputContainer: t = we, formField: e, label: n, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: c, hidden: l, disabled: u, rows: d, withoutLabel: h, customFormControlProps: m, className: g }) => {
|
|
3590
3590
|
const { register: b, formState: w, setValue: f, watch: j } = de(), [v, p] = P(void 0), [C, k] = P(!1), y = O(() => {
|
|
3591
3591
|
const S = i ?? null;
|
|
3592
3592
|
f(e, (S == null ? void 0 : S.toString()) ?? "", { shouldDirty: !0, shouldValidate: C });
|
|
@@ -3612,7 +3612,7 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3612
3612
|
a && j(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(J, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ s.jsx(je, {}) }) }),
|
|
3613
3613
|
v && /* @__PURE__ */ s.jsx(xe, { message: v.message })
|
|
3614
3614
|
] });
|
|
3615
|
-
},
|
|
3615
|
+
}, Rc = ({ InputContainer: t = we, type: e, formField: n, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: c, clearValue: l, required: u, hidden: d, disabled: h, withoutLabel: m, list: g, step: b, CustomOnChangeComponent: w, className: f }) => {
|
|
3616
3616
|
const { register: j, formState: v, setValue: p, watch: C } = de(), [k, y] = P(void 0), [$, M] = P(!1), S = O(() => {
|
|
3617
3617
|
const R = l ?? null;
|
|
3618
3618
|
e === "number" ? p(n, R !== null ? Number(R) : null, {
|
|
@@ -3631,7 +3631,7 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3631
3631
|
}, [N]), D(() => {
|
|
3632
3632
|
v.isSubmitted && M(!0);
|
|
3633
3633
|
}, [v]);
|
|
3634
|
-
const _ = k !== void 0, [T, F] = P(!1), W = C(n), H =
|
|
3634
|
+
const _ = k !== void 0, [T, F] = P(!1), W = C(n), H = rn(e, W ?? null, T);
|
|
3635
3635
|
return /* @__PURE__ */ s.jsxs(t, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: _, className: f, children: [
|
|
3636
3636
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3637
3637
|
/* @__PURE__ */ s.jsx(ee.Control, { type: H, placeholder: o ?? r, size: a, onFocus: () => {
|
|
@@ -3648,7 +3648,7 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3648
3648
|
c && C(n) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(J, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ s.jsx(je, {}) }) }),
|
|
3649
3649
|
k && /* @__PURE__ */ s.jsx(xe, { message: k.message })
|
|
3650
3650
|
] });
|
|
3651
|
-
},
|
|
3651
|
+
}, qc = ({ InputContainer: t = we, formField: e, label: n, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: c, hidden: l, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: m, texts: g, dropdownItemsNameWidth: b, isLoading: w, withoutLabel: f, additionalColumns: j, CustomOnChangeComponent: v, displayIdAsName: p, className: C }) => {
|
|
3652
3652
|
const { formState: k, setValue: y, watch: $, control: M } = de(), [S, N] = P(void 0), [_, T] = P(!1), [F, W] = P(!1), H = $(e) ?? null, R = H === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : $(`${e}-DropdownName`), B = z(() => H == null ? null : { id: H ?? null, name: R ?? "" }, [H, R]), oe = O(() => {
|
|
3653
3653
|
const G = e.split(".");
|
|
3654
3654
|
let ce = k.errors;
|
|
@@ -3680,30 +3680,30 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3680
3680
|
}, [oe]), D(() => {
|
|
3681
3681
|
k.isSubmitted && W(!0);
|
|
3682
3682
|
}, [k]);
|
|
3683
|
-
const E = Y(null), K = S !== void 0, Me = m !== void 0,
|
|
3683
|
+
const E = Y(null), K = S !== void 0, Me = m !== void 0, Jn = Me && B !== null;
|
|
3684
3684
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${n}${c ? " *" : ""}`, hidden: l, withoutLabel: f, isInvalid: K, inputContainerClassName: x({ "luminus-dropdown-select-open": _ }), className: C, children: [
|
|
3685
|
-
/* @__PURE__ */ s.jsxs(
|
|
3685
|
+
/* @__PURE__ */ s.jsxs(Xn, { currentSelection: B, selectedItemNavigateTo: m, children: [
|
|
3686
3686
|
p && (B == null ? void 0 : B.name) && /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "luminus-dropdown-selection-name d-flex justify-content-end mt-2", children: B.name }),
|
|
3687
|
-
/* @__PURE__ */ s.jsx(
|
|
3687
|
+
/* @__PURE__ */ s.jsx(Zt, { control: M, name: e, render: () => /* @__PURE__ */ s.jsx(ee.Select, { size: r, onMouseDown: (G) => {
|
|
3688
3688
|
G.currentTarget.focus(), G.preventDefault();
|
|
3689
3689
|
}, onClick: () => {
|
|
3690
3690
|
!Me && !u && T(!0);
|
|
3691
3691
|
}, ref: E, value: H ?? "", onChange: () => {
|
|
3692
3692
|
}, isInvalid: K, hidden: l, className: x("w-100", {
|
|
3693
3693
|
"luminus-dropdown-picker-disabled": u,
|
|
3694
|
-
"luminus-dropdown-picker-link":
|
|
3694
|
+
"luminus-dropdown-picker-link": Jn
|
|
3695
3695
|
}), children: /* @__PURE__ */ s.jsx("option", { value: H, children: p ? H : (R == null ? void 0 : R.length) > 0 ? R : H }) }) }),
|
|
3696
3696
|
v || !u && Me ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
3697
3697
|
!v && !u && Me && /* @__PURE__ */ s.jsx(J, { size: "sm", color: "secondary", onClick: (G) => {
|
|
3698
3698
|
G.preventDefault(), G.stopPropagation(), T(!0);
|
|
3699
|
-
}, children: /* @__PURE__ */ s.jsx(
|
|
3699
|
+
}, children: /* @__PURE__ */ s.jsx(Qt, {}) }),
|
|
3700
3700
|
v ?? null
|
|
3701
3701
|
] }) : null
|
|
3702
3702
|
] }),
|
|
3703
3703
|
S && /* @__PURE__ */ s.jsx(xe, { message: S.message }),
|
|
3704
|
-
E.current && /* @__PURE__ */ s.jsx(
|
|
3704
|
+
E.current && /* @__PURE__ */ s.jsx(xt, { show: _, onCancel: I, items: d, currentSelection: B, onSelectionChange: U, onSearchQueryChange: h, texts: g, itemsNameWidth: b, additionalColumns: j, displayIdAsName: p, isLoading: w, disabled: u, inputRef: E })
|
|
3705
3705
|
] }) });
|
|
3706
|
-
},
|
|
3706
|
+
}, Lc = ({ InputContainer: t = we, label: e, formField: n, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: c, resetsFields: l, multiple: u, accept: d, withoutLabel: h, className: m }) => {
|
|
3707
3707
|
const { watch: g, setValue: b, register: w, formState: f } = de(), [j, v] = P(!1), [p, C] = P(void 0), k = O(() => {
|
|
3708
3708
|
b(n, "");
|
|
3709
3709
|
}, [b, n]), y = O(() => {
|
|
@@ -3718,7 +3718,7 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3718
3718
|
}, [f]);
|
|
3719
3719
|
const $ = p !== void 0;
|
|
3720
3720
|
return /* @__PURE__ */ s.jsxs(t, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: $, className: m, children: [
|
|
3721
|
-
/* @__PURE__ */ s.jsx(
|
|
3721
|
+
/* @__PURE__ */ s.jsx(An, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: $, hidden: r, disabled: i, className: "w-100", ...w(n, {
|
|
3722
3722
|
onChange: () => {
|
|
3723
3723
|
l && l.forEach((M) => b(M, null, { shouldDirty: !0, shouldValidate: j }));
|
|
3724
3724
|
}
|
|
@@ -3726,12 +3726,12 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3726
3726
|
c && g(n) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(J, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ s.jsx(je, {}) }) }),
|
|
3727
3727
|
p && /* @__PURE__ */ s.jsx(xe, { message: p.message })
|
|
3728
3728
|
] });
|
|
3729
|
-
},
|
|
3729
|
+
}, Yc = ({ children: t, onStorno: e }) => {
|
|
3730
3730
|
const { formState: n } = de(), [r, o] = P(!1);
|
|
3731
3731
|
return D(() => {
|
|
3732
3732
|
o(Object.keys(n.dirtyFields).length > 0);
|
|
3733
|
-
}, [n]), r ? /* @__PURE__ */ s.jsx(
|
|
3734
|
-
},
|
|
3733
|
+
}, [n]), r ? /* @__PURE__ */ s.jsx(Ia, { onStorno: e, children: t }) : null;
|
|
3734
|
+
}, Hc = ({ InputContainer: t = we, options: e, formField: n, label: r, size: o, resetsFields: a, isNumber: i, required: c, hidden: l, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: m, className: g }) => {
|
|
3735
3735
|
const { customSelectTexts: b } = q(ie), { formState: w, setValue: f, watch: j, control: v } = de(), [p, C] = P(void 0), [k, y] = P(!1), [$, M] = P(!1), [S, N] = P(""), _ = j(n), T = z(() => e.find((I) => I.id === _) ?? null, [e, _]), F = O(() => {
|
|
3736
3736
|
const I = n.split(".");
|
|
3737
3737
|
let E = w.errors;
|
|
@@ -3774,77 +3774,81 @@ const wi = "_item_1dy8x_1", Kn = {
|
|
|
3774
3774
|
return S ? (E = I.name) == null ? void 0 : E.toLowerCase().includes(S.toLowerCase()) : !0;
|
|
3775
3775
|
}).sort((I, E) => h ? 0 : (I.name ?? "").localeCompare(E.name ?? "")), [e, h, S, B]), te = Y(null), U = p !== void 0;
|
|
3776
3776
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: d, isInvalid: U, inputContainerClassName: x({ "luminus-dropdown-select-open": k }), className: g, children: [
|
|
3777
|
-
/* @__PURE__ */ s.jsx(
|
|
3777
|
+
/* @__PURE__ */ s.jsx(Zt, { control: v, name: n, render: () => /* @__PURE__ */ s.jsx(ee.Select, { size: o, onMouseDown: (I) => {
|
|
3778
3778
|
I.currentTarget.focus(), I.preventDefault();
|
|
3779
3779
|
}, onClick: () => {
|
|
3780
3780
|
y(!0);
|
|
3781
3781
|
}, ref: te, value: _ ?? "", onChange: () => {
|
|
3782
3782
|
}, isInvalid: U, hidden: l, disabled: u, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (T == null ? void 0 : T.id) ?? "", children: B(T) }) }) }),
|
|
3783
3783
|
p && /* @__PURE__ */ s.jsx(xe, { message: p.message }),
|
|
3784
|
-
te.current && /* @__PURE__ */ s.jsx(
|
|
3784
|
+
te.current && /* @__PURE__ */ s.jsx(xt, { show: k, onCancel: () => y(!1), items: oe, currentSelection: T ?? null, onSelectionChange: H, onSearchQueryChange: R, texts: b, disabled: u, inputRef: te, autoHideSearch: !0, allItemsLength: e.length })
|
|
3785
3785
|
] }) });
|
|
3786
|
-
},
|
|
3787
|
-
"tab-panel": "_tab-
|
|
3788
|
-
tabPanel:
|
|
3789
|
-
"full-height-no-overflow": "_full-height-no-
|
|
3790
|
-
fullHeightNoOverflow:
|
|
3791
|
-
|
|
3786
|
+
}, Gc = ({ cell: { value: t } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: t ? /* @__PURE__ */ s.jsx(Pr, { name: t, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), cc = "_tab-panel_qgi9v_1", lc = "_full-height-no-overflow_qgi9v_5", uc = "_disabled_qgi9v_10", nt = {
|
|
3787
|
+
"tab-panel": "_tab-panel_qgi9v_1",
|
|
3788
|
+
tabPanel: cc,
|
|
3789
|
+
"full-height-no-overflow": "_full-height-no-overflow_qgi9v_5",
|
|
3790
|
+
fullHeightNoOverflow: lc,
|
|
3791
|
+
disabled: uc
|
|
3792
|
+
}, Bc = ({ eventKey: t, activeTab: e, fullHeightNoOverflow: n, disabled: r, className: o, children: a }) => t !== e ? null : /* @__PURE__ */ s.jsx("div", { className: x("luminus-tab-panel", nt.tabPanel, { [nt.fullHeightNoOverflow]: n }, { disabled: r }, { [nt.disabled]: r }, o), children: a }), Vc = ({ activeTab: t, onSelect: e, children: n }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-tabs d-flex gap-1 mb-2"), children: n.map((r) => {
|
|
3792
3793
|
const o = r.type, a = r.props.eventKey, i = r.props.children, c = r.props.className, l = r.props.onClick;
|
|
3793
|
-
return /* @__PURE__ */
|
|
3794
|
+
return /* @__PURE__ */ Ar(o, { ...r.props, key: r.props.eventKey, className: x({ active: t === a }, c), onClick: () => {
|
|
3794
3795
|
e(a), l && l(a);
|
|
3795
3796
|
} }, i);
|
|
3796
|
-
}) }),
|
|
3797
|
-
tab:
|
|
3798
|
-
|
|
3797
|
+
}) }), dc = "_tab_1hdhk_1", hc = "_disabled_1hdhk_8", Gt = {
|
|
3798
|
+
tab: dc,
|
|
3799
|
+
disabled: hc
|
|
3800
|
+
}, Uc = ({ eventKey: t, className: e, onClick: n, disabled: r, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: x("luminus-tab text-primary rounded", Gt.tab, e, {
|
|
3801
|
+
disabled: r
|
|
3802
|
+
}, { [Gt.disabled]: r }), onClick: () => n && !r && n(t), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(Q, { variant: "h6", className: "text-primary", children: o }) : o });
|
|
3799
3803
|
export {
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3804
|
+
yc as ApiFileDownloadButton,
|
|
3805
|
+
$c as AppSearch,
|
|
3806
|
+
Tc as AuthTemplate,
|
|
3807
|
+
Pr as AvatarIcon,
|
|
3808
|
+
Qn as Backdrop,
|
|
3809
|
+
jc as Badge,
|
|
3810
|
+
Ic as Card,
|
|
3811
|
+
Oc as CheckInput,
|
|
3812
|
+
kc as Collapse,
|
|
3813
|
+
Ta as ContextButton,
|
|
3814
|
+
Ci as Dropdown,
|
|
3815
|
+
Nc as DropdownDivider,
|
|
3816
|
+
yi as DropdownItem,
|
|
3817
|
+
Pc as DropdownPicker,
|
|
3818
|
+
vi as DropdownToggle,
|
|
3819
|
+
Un as FileUploadContextButton,
|
|
3820
|
+
Cc as FileUploadDropdownItem,
|
|
3821
|
+
Ia as FloatingFormSubmit,
|
|
3818
3822
|
Ge as FloatingLabelInput,
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3823
|
+
_c as HomeDashboard,
|
|
3824
|
+
Ac as HookFormCheckInput,
|
|
3825
|
+
qc as HookFormDropdownPicker,
|
|
3826
|
+
Lc as HookFormFileInput,
|
|
3827
|
+
Yc as HookFormFloatingSubmit,
|
|
3828
|
+
Fc as HookFormRadioInput,
|
|
3829
|
+
Hc as HookFormSelectInput,
|
|
3830
|
+
Wc as HookFormTextAreaInput,
|
|
3831
|
+
Rc as HookFormTextInput,
|
|
3832
|
+
Ec as HtmlTooltip,
|
|
3829
3833
|
J as IconButton,
|
|
3830
3834
|
xe as InvalidFeedback,
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3835
|
+
Zc as Loading,
|
|
3836
|
+
vc as MonthPicker,
|
|
3837
|
+
Qc as NoInputContainer,
|
|
3838
|
+
Sc as PhotoLibrary,
|
|
3839
|
+
ic as PhotoLightbox,
|
|
3840
|
+
At as PrimaryButton,
|
|
3837
3841
|
we as RowLabelInput,
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3842
|
+
Dc as SelectInput,
|
|
3843
|
+
xt as SimplePicker,
|
|
3844
|
+
$r as SimpleToggle,
|
|
3845
|
+
tl as SimpleTooltip,
|
|
3846
|
+
Uc as Tab,
|
|
3847
|
+
Bc as TabPanel,
|
|
3848
|
+
Vc as Tabs,
|
|
3849
|
+
Mc as TextInput,
|
|
3846
3850
|
Q as Typography,
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3851
|
+
Xc as UserAvatarToggle,
|
|
3852
|
+
Gc as UserAvatarValueFormat,
|
|
3853
|
+
bc as YearPicker
|
|
3850
3854
|
};
|