react-luminus-components 1.2.60 → 1.2.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +42 -42
- package/dist/{EventType-C7vqWxBE.cjs → EventType-BqTAbfGu.cjs} +1 -1
- package/dist/{EventType-BITUq9bG.js → EventType-a2Umpz50.js} +1 -1
- package/dist/{NoInputContainer-vBsdl4By.js → NoInputContainer-CJdyV1f-.js} +5 -4
- package/dist/{NoInputContainer-C_KMMuq-.cjs → NoInputContainer-DG__eVmA.cjs} +2 -2
- package/dist/{SimpleTooltip-CI4u4sEB.cjs → SimpleTooltip-BA_KP07G.cjs} +1 -1
- package/dist/{SimpleTooltip-D_EP1VLp.js → SimpleTooltip-CSZZpH9m.js} +1 -1
- package/dist/contexts/user/UserContext.d.ts +1 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +149 -148
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +435 -436
- package/dist/style.css +1 -1
- package/dist/{useConfirm-BiHp2Y6a.cjs → useConfirm-D2qNeXB1.cjs} +1 -1
- package/dist/{useConfirm-DeyXejs7.js → useConfirm-D5GeaSD8.js} +1 -1
- package/dist/{usePermissions-z6sqoYhg.cjs → usePermissions-C__V9uZ7.cjs} +1 -1
- package/dist/{usePermissions-CJ08LAVC.js → usePermissions-UVzcj-N9.js} +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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-
|
|
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-CJdyV1f-.js";
|
|
2
|
+
import { ah as Xc, ag as Jc } from "./NoInputContainer-CJdyV1f-.js";
|
|
3
3
|
import * as A from "react";
|
|
4
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-
|
|
6
|
-
import { L as Zc } from "./EventType-BITUq9bG.js";
|
|
5
|
+
import { d as Jt, u as Fr, q as _t, E as Ae, M as Fe, L as Wr } from "./EventType-a2Umpz50.js";
|
|
7
6
|
import { useFormContext as de, Controller as Zt } from "react-hook-form";
|
|
8
|
-
import { m as
|
|
7
|
+
import { m as Rr, a as en } from "./textUtils-BbxuIsKq.js";
|
|
9
8
|
import { u as tn, a as nn, b as rn } from "./useFormControlType-BAFqxupC.js";
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
9
|
+
import { S as el } from "./SimpleTooltip-CSZZpH9m.js";
|
|
10
|
+
const vc = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
12
11
|
const r = O(async () => {
|
|
13
12
|
var c;
|
|
14
13
|
const o = await t();
|
|
@@ -34,9 +33,9 @@ function on(t, e) {
|
|
|
34
33
|
r
|
|
35
34
|
), n);
|
|
36
35
|
}
|
|
37
|
-
let
|
|
36
|
+
let qr = {};
|
|
38
37
|
function Be() {
|
|
39
|
-
return
|
|
38
|
+
return qr;
|
|
40
39
|
}
|
|
41
40
|
function Se(t, e) {
|
|
42
41
|
var c, l, u, d;
|
|
@@ -72,31 +71,31 @@ function kt(t) {
|
|
|
72
71
|
);
|
|
73
72
|
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
74
73
|
}
|
|
75
|
-
function
|
|
74
|
+
function Lr(t, e) {
|
|
76
75
|
const n = jt(t), r = jt(e), o = +n - kt(n), a = +r - kt(r);
|
|
77
|
-
return Math.round((o - a) /
|
|
76
|
+
return Math.round((o - a) / Rr);
|
|
78
77
|
}
|
|
79
|
-
function
|
|
78
|
+
function Yr(t) {
|
|
80
79
|
const e = sn(t), n = ae(t, 0);
|
|
81
80
|
return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), qe(n);
|
|
82
81
|
}
|
|
83
|
-
function
|
|
82
|
+
function Hr(t, e) {
|
|
84
83
|
return on(t, e * 12);
|
|
85
84
|
}
|
|
86
|
-
function
|
|
85
|
+
function Gr(t) {
|
|
87
86
|
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
88
87
|
}
|
|
89
|
-
function
|
|
90
|
-
if (!
|
|
88
|
+
function Br(t) {
|
|
89
|
+
if (!Gr(t) && typeof t != "number")
|
|
91
90
|
return !1;
|
|
92
91
|
const e = re(t);
|
|
93
92
|
return !isNaN(Number(e));
|
|
94
93
|
}
|
|
95
|
-
function
|
|
94
|
+
function Vr(t) {
|
|
96
95
|
const e = re(t), n = ae(t, 0);
|
|
97
96
|
return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
98
97
|
}
|
|
99
|
-
const
|
|
98
|
+
const Ur = {
|
|
100
99
|
lessThanXSeconds: {
|
|
101
100
|
one: "less than a second",
|
|
102
101
|
other: "less than {{count}} seconds"
|
|
@@ -158,9 +157,9 @@ const Vr = {
|
|
|
158
157
|
one: "almost 1 year",
|
|
159
158
|
other: "almost {{count}} years"
|
|
160
159
|
}
|
|
161
|
-
},
|
|
160
|
+
}, Kr = (t, e, n) => {
|
|
162
161
|
let r;
|
|
163
|
-
const o =
|
|
162
|
+
const o = Ur[t];
|
|
164
163
|
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
164
|
};
|
|
166
165
|
function Je(t) {
|
|
@@ -169,42 +168,42 @@ function Je(t) {
|
|
|
169
168
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
170
169
|
};
|
|
171
170
|
}
|
|
172
|
-
const
|
|
171
|
+
const zr = {
|
|
173
172
|
full: "EEEE, MMMM do, y",
|
|
174
173
|
long: "MMMM do, y",
|
|
175
174
|
medium: "MMM d, y",
|
|
176
175
|
short: "MM/dd/yyyy"
|
|
177
|
-
},
|
|
176
|
+
}, Qr = {
|
|
178
177
|
full: "h:mm:ss a zzzz",
|
|
179
178
|
long: "h:mm:ss a z",
|
|
180
179
|
medium: "h:mm:ss a",
|
|
181
180
|
short: "h:mm a"
|
|
182
|
-
},
|
|
181
|
+
}, Xr = {
|
|
183
182
|
full: "{{date}} 'at' {{time}}",
|
|
184
183
|
long: "{{date}} 'at' {{time}}",
|
|
185
184
|
medium: "{{date}}, {{time}}",
|
|
186
185
|
short: "{{date}}, {{time}}"
|
|
187
|
-
},
|
|
186
|
+
}, Jr = {
|
|
188
187
|
date: Je({
|
|
189
|
-
formats:
|
|
188
|
+
formats: zr,
|
|
190
189
|
defaultWidth: "full"
|
|
191
190
|
}),
|
|
192
191
|
time: Je({
|
|
193
|
-
formats:
|
|
192
|
+
formats: Qr,
|
|
194
193
|
defaultWidth: "full"
|
|
195
194
|
}),
|
|
196
195
|
dateTime: Je({
|
|
197
|
-
formats:
|
|
196
|
+
formats: Xr,
|
|
198
197
|
defaultWidth: "full"
|
|
199
198
|
})
|
|
200
|
-
},
|
|
199
|
+
}, Zr = {
|
|
201
200
|
lastWeek: "'last' eeee 'at' p",
|
|
202
201
|
yesterday: "'yesterday at' p",
|
|
203
202
|
today: "'today at' p",
|
|
204
203
|
tomorrow: "'tomorrow at' p",
|
|
205
204
|
nextWeek: "eeee 'at' p",
|
|
206
205
|
other: "P"
|
|
207
|
-
},
|
|
206
|
+
}, eo = (t, e, n, r) => Zr[t];
|
|
208
207
|
function ke(t) {
|
|
209
208
|
return (e, n) => {
|
|
210
209
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
@@ -220,15 +219,15 @@ function ke(t) {
|
|
|
220
219
|
return o[a];
|
|
221
220
|
};
|
|
222
221
|
}
|
|
223
|
-
const
|
|
222
|
+
const to = {
|
|
224
223
|
narrow: ["B", "A"],
|
|
225
224
|
abbreviated: ["BC", "AD"],
|
|
226
225
|
wide: ["Before Christ", "Anno Domini"]
|
|
227
|
-
},
|
|
226
|
+
}, no = {
|
|
228
227
|
narrow: ["1", "2", "3", "4"],
|
|
229
228
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
230
229
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
231
|
-
},
|
|
230
|
+
}, ro = {
|
|
232
231
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
233
232
|
abbreviated: [
|
|
234
233
|
"Jan",
|
|
@@ -258,7 +257,7 @@ const eo = {
|
|
|
258
257
|
"November",
|
|
259
258
|
"December"
|
|
260
259
|
]
|
|
261
|
-
},
|
|
260
|
+
}, oo = {
|
|
262
261
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
263
262
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
264
263
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -271,7 +270,7 @@ const eo = {
|
|
|
271
270
|
"Friday",
|
|
272
271
|
"Saturday"
|
|
273
272
|
]
|
|
274
|
-
},
|
|
273
|
+
}, so = {
|
|
275
274
|
narrow: {
|
|
276
275
|
am: "a",
|
|
277
276
|
pm: "p",
|
|
@@ -302,7 +301,7 @@ const eo = {
|
|
|
302
301
|
evening: "evening",
|
|
303
302
|
night: "night"
|
|
304
303
|
}
|
|
305
|
-
},
|
|
304
|
+
}, ao = {
|
|
306
305
|
narrow: {
|
|
307
306
|
am: "a",
|
|
308
307
|
pm: "p",
|
|
@@ -333,7 +332,7 @@ const eo = {
|
|
|
333
332
|
evening: "in the evening",
|
|
334
333
|
night: "at night"
|
|
335
334
|
}
|
|
336
|
-
},
|
|
335
|
+
}, io = (t, e) => {
|
|
337
336
|
const n = Number(t), r = n % 100;
|
|
338
337
|
if (r > 20 || r < 10)
|
|
339
338
|
switch (r % 10) {
|
|
@@ -345,29 +344,29 @@ const eo = {
|
|
|
345
344
|
return n + "rd";
|
|
346
345
|
}
|
|
347
346
|
return n + "th";
|
|
348
|
-
},
|
|
349
|
-
ordinalNumber:
|
|
347
|
+
}, co = {
|
|
348
|
+
ordinalNumber: io,
|
|
350
349
|
era: ke({
|
|
351
|
-
values:
|
|
350
|
+
values: to,
|
|
352
351
|
defaultWidth: "wide"
|
|
353
352
|
}),
|
|
354
353
|
quarter: ke({
|
|
355
|
-
values:
|
|
354
|
+
values: no,
|
|
356
355
|
defaultWidth: "wide",
|
|
357
356
|
argumentCallback: (t) => t - 1
|
|
358
357
|
}),
|
|
359
358
|
month: ke({
|
|
360
|
-
values:
|
|
359
|
+
values: ro,
|
|
361
360
|
defaultWidth: "wide"
|
|
362
361
|
}),
|
|
363
362
|
day: ke({
|
|
364
|
-
values:
|
|
363
|
+
values: oo,
|
|
365
364
|
defaultWidth: "wide"
|
|
366
365
|
}),
|
|
367
366
|
dayPeriod: ke({
|
|
368
|
-
values:
|
|
367
|
+
values: so,
|
|
369
368
|
defaultWidth: "wide",
|
|
370
|
-
formattingValues:
|
|
369
|
+
formattingValues: ao,
|
|
371
370
|
defaultFormattingWidth: "wide"
|
|
372
371
|
})
|
|
373
372
|
};
|
|
@@ -376,9 +375,9 @@ function Ce(t) {
|
|
|
376
375
|
const r = n.width, o = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], a = e.match(o);
|
|
377
376
|
if (!a)
|
|
378
377
|
return null;
|
|
379
|
-
const i = a[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(c) ?
|
|
378
|
+
const i = a[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(c) ? uo(c, (h) => h.test(i)) : (
|
|
380
379
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
381
|
-
|
|
380
|
+
lo(c, (h) => h.test(i))
|
|
382
381
|
);
|
|
383
382
|
let u;
|
|
384
383
|
u = t.valueCallback ? t.valueCallback(l) : l, u = n.valueCallback ? (
|
|
@@ -389,17 +388,17 @@ function Ce(t) {
|
|
|
389
388
|
return { value: u, rest: d };
|
|
390
389
|
};
|
|
391
390
|
}
|
|
392
|
-
function
|
|
391
|
+
function lo(t, e) {
|
|
393
392
|
for (const n in t)
|
|
394
393
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
395
394
|
return n;
|
|
396
395
|
}
|
|
397
|
-
function
|
|
396
|
+
function uo(t, e) {
|
|
398
397
|
for (let n = 0; n < t.length; n++)
|
|
399
398
|
if (e(t[n]))
|
|
400
399
|
return n;
|
|
401
400
|
}
|
|
402
|
-
function
|
|
401
|
+
function ho(t) {
|
|
403
402
|
return (e, n = {}) => {
|
|
404
403
|
const r = e.match(t.matchPattern);
|
|
405
404
|
if (!r)
|
|
@@ -413,23 +412,23 @@ function uo(t) {
|
|
|
413
412
|
return { value: i, rest: c };
|
|
414
413
|
};
|
|
415
414
|
}
|
|
416
|
-
const
|
|
415
|
+
const mo = /^(\d+)(th|st|nd|rd)?/i, fo = /\d+/i, po = {
|
|
417
416
|
narrow: /^(b|a)/i,
|
|
418
417
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
419
418
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
420
|
-
}, po = {
|
|
421
|
-
any: [/^b/i, /^(a|c)/i]
|
|
422
419
|
}, go = {
|
|
420
|
+
any: [/^b/i, /^(a|c)/i]
|
|
421
|
+
}, wo = {
|
|
423
422
|
narrow: /^[1234]/i,
|
|
424
423
|
abbreviated: /^q[1234]/i,
|
|
425
424
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
426
|
-
}, wo = {
|
|
427
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
428
425
|
}, xo = {
|
|
426
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
427
|
+
}, yo = {
|
|
429
428
|
narrow: /^[jfmasond]/i,
|
|
430
429
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
431
430
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
432
|
-
},
|
|
431
|
+
}, vo = {
|
|
433
432
|
narrow: [
|
|
434
433
|
/^j/i,
|
|
435
434
|
/^f/i,
|
|
@@ -458,18 +457,18 @@ const ho = /^(\d+)(th|st|nd|rd)?/i, mo = /\d+/i, fo = {
|
|
|
458
457
|
/^n/i,
|
|
459
458
|
/^d/i
|
|
460
459
|
]
|
|
461
|
-
},
|
|
460
|
+
}, bo = {
|
|
462
461
|
narrow: /^[smtwf]/i,
|
|
463
462
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
464
463
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
465
464
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
466
|
-
},
|
|
465
|
+
}, _o = {
|
|
467
466
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
468
467
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
469
|
-
},
|
|
468
|
+
}, jo = {
|
|
470
469
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
471
470
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
472
|
-
},
|
|
471
|
+
}, ko = {
|
|
473
472
|
any: {
|
|
474
473
|
am: /^a/i,
|
|
475
474
|
pm: /^p/i,
|
|
@@ -480,61 +479,61 @@ const ho = /^(\d+)(th|st|nd|rd)?/i, mo = /\d+/i, fo = {
|
|
|
480
479
|
evening: /evening/i,
|
|
481
480
|
night: /night/i
|
|
482
481
|
}
|
|
483
|
-
},
|
|
484
|
-
ordinalNumber:
|
|
485
|
-
matchPattern:
|
|
486
|
-
parsePattern:
|
|
482
|
+
}, Co = {
|
|
483
|
+
ordinalNumber: ho({
|
|
484
|
+
matchPattern: mo,
|
|
485
|
+
parsePattern: fo,
|
|
487
486
|
valueCallback: (t) => parseInt(t, 10)
|
|
488
487
|
}),
|
|
489
488
|
era: Ce({
|
|
490
|
-
matchPatterns:
|
|
489
|
+
matchPatterns: po,
|
|
491
490
|
defaultMatchWidth: "wide",
|
|
492
|
-
parsePatterns:
|
|
491
|
+
parsePatterns: go,
|
|
493
492
|
defaultParseWidth: "any"
|
|
494
493
|
}),
|
|
495
494
|
quarter: Ce({
|
|
496
|
-
matchPatterns:
|
|
495
|
+
matchPatterns: wo,
|
|
497
496
|
defaultMatchWidth: "wide",
|
|
498
|
-
parsePatterns:
|
|
497
|
+
parsePatterns: xo,
|
|
499
498
|
defaultParseWidth: "any",
|
|
500
499
|
valueCallback: (t) => t + 1
|
|
501
500
|
}),
|
|
502
501
|
month: Ce({
|
|
503
|
-
matchPatterns:
|
|
502
|
+
matchPatterns: yo,
|
|
504
503
|
defaultMatchWidth: "wide",
|
|
505
|
-
parsePatterns:
|
|
504
|
+
parsePatterns: vo,
|
|
506
505
|
defaultParseWidth: "any"
|
|
507
506
|
}),
|
|
508
507
|
day: Ce({
|
|
509
|
-
matchPatterns:
|
|
508
|
+
matchPatterns: bo,
|
|
510
509
|
defaultMatchWidth: "wide",
|
|
511
|
-
parsePatterns:
|
|
510
|
+
parsePatterns: _o,
|
|
512
511
|
defaultParseWidth: "any"
|
|
513
512
|
}),
|
|
514
513
|
dayPeriod: Ce({
|
|
515
|
-
matchPatterns:
|
|
514
|
+
matchPatterns: jo,
|
|
516
515
|
defaultMatchWidth: "any",
|
|
517
|
-
parsePatterns:
|
|
516
|
+
parsePatterns: ko,
|
|
518
517
|
defaultParseWidth: "any"
|
|
519
518
|
})
|
|
520
|
-
},
|
|
519
|
+
}, No = {
|
|
521
520
|
code: "en-US",
|
|
522
|
-
formatDistance:
|
|
523
|
-
formatLong:
|
|
524
|
-
formatRelative:
|
|
525
|
-
localize:
|
|
526
|
-
match:
|
|
521
|
+
formatDistance: Kr,
|
|
522
|
+
formatLong: Jr,
|
|
523
|
+
formatRelative: eo,
|
|
524
|
+
localize: co,
|
|
525
|
+
match: Co,
|
|
527
526
|
options: {
|
|
528
527
|
weekStartsOn: 0,
|
|
529
528
|
firstWeekContainsDate: 1
|
|
530
529
|
}
|
|
531
530
|
};
|
|
532
|
-
function
|
|
531
|
+
function $o(t) {
|
|
533
532
|
const e = re(t);
|
|
534
|
-
return
|
|
533
|
+
return Lr(e, Vr(e)) + 1;
|
|
535
534
|
}
|
|
536
|
-
function
|
|
537
|
-
const e = re(t), n = +qe(e) - +
|
|
535
|
+
function Io(t) {
|
|
536
|
+
const e = re(t), n = +qe(e) - +Yr(e);
|
|
538
537
|
return Math.round(n / en) + 1;
|
|
539
538
|
}
|
|
540
539
|
function an(t, e) {
|
|
@@ -546,13 +545,13 @@ function an(t, e) {
|
|
|
546
545
|
const u = Se(l, e);
|
|
547
546
|
return n.getTime() >= c.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
|
|
548
547
|
}
|
|
549
|
-
function
|
|
548
|
+
function So(t, e) {
|
|
550
549
|
var c, l, u, d;
|
|
551
550
|
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
551
|
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), Se(a, e);
|
|
553
552
|
}
|
|
554
|
-
function
|
|
555
|
-
const n = re(t), r = +Se(n, e) - +
|
|
553
|
+
function To(t, e) {
|
|
554
|
+
const n = re(t), r = +Se(n, e) - +So(n, e);
|
|
556
555
|
return Math.round(r / en) + 1;
|
|
557
556
|
}
|
|
558
557
|
function L(t, e) {
|
|
@@ -780,12 +779,12 @@ const le = {
|
|
|
780
779
|
},
|
|
781
780
|
// Local week of year
|
|
782
781
|
w: function(t, e, n, r) {
|
|
783
|
-
const o =
|
|
782
|
+
const o = To(t, r);
|
|
784
783
|
return e === "wo" ? n.ordinalNumber(o, { unit: "week" }) : L(o, e.length);
|
|
785
784
|
},
|
|
786
785
|
// ISO week of year
|
|
787
786
|
I: function(t, e, n) {
|
|
788
|
-
const r =
|
|
787
|
+
const r = Io(t);
|
|
789
788
|
return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : L(r, e.length);
|
|
790
789
|
},
|
|
791
790
|
// Day of the month
|
|
@@ -794,7 +793,7 @@ const le = {
|
|
|
794
793
|
},
|
|
795
794
|
// Day of year
|
|
796
795
|
D: function(t, e, n) {
|
|
797
|
-
const r =
|
|
796
|
+
const r = $o(t);
|
|
798
797
|
return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : L(r, e.length);
|
|
799
798
|
},
|
|
800
799
|
// Day of week
|
|
@@ -1145,7 +1144,7 @@ const It = (t, e) => {
|
|
|
1145
1144
|
default:
|
|
1146
1145
|
return e.time({ width: "full" });
|
|
1147
1146
|
}
|
|
1148
|
-
},
|
|
1147
|
+
}, Eo = (t, e) => {
|
|
1149
1148
|
const n = t.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
|
|
1150
1149
|
if (!o)
|
|
1151
1150
|
return It(t, e);
|
|
@@ -1166,47 +1165,47 @@ const It = (t, e) => {
|
|
|
1166
1165
|
break;
|
|
1167
1166
|
}
|
|
1168
1167
|
return a.replace("{{date}}", It(r, e)).replace("{{time}}", cn(o, e));
|
|
1169
|
-
},
|
|
1168
|
+
}, Oo = {
|
|
1170
1169
|
p: cn,
|
|
1171
|
-
P:
|
|
1172
|
-
},
|
|
1173
|
-
function Po(t) {
|
|
1174
|
-
return Oo.test(t);
|
|
1175
|
-
}
|
|
1170
|
+
P: Eo
|
|
1171
|
+
}, Mo = /^D+$/, Do = /^Y+$/, Po = ["D", "DD", "YY", "YYYY"];
|
|
1176
1172
|
function Ao(t) {
|
|
1177
1173
|
return Mo.test(t);
|
|
1178
1174
|
}
|
|
1179
|
-
function Fo(t
|
|
1180
|
-
|
|
1181
|
-
if (console.warn(r), Do.includes(t))
|
|
1182
|
-
throw new RangeError(r);
|
|
1175
|
+
function Fo(t) {
|
|
1176
|
+
return Do.test(t);
|
|
1183
1177
|
}
|
|
1184
1178
|
function Wo(t, e, n) {
|
|
1179
|
+
const r = Ro(t, e, n);
|
|
1180
|
+
if (console.warn(r), Po.includes(t))
|
|
1181
|
+
throw new RangeError(r);
|
|
1182
|
+
}
|
|
1183
|
+
function Ro(t, e, n) {
|
|
1185
1184
|
const r = t[0] === "Y" ? "years" : "days of the month";
|
|
1186
1185
|
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
1186
|
}
|
|
1188
|
-
const
|
|
1187
|
+
const qo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Lo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yo = /^'([^]*?)'?$/, Ho = /''/g, Go = /[a-zA-Z]/;
|
|
1189
1188
|
function ln(t, e, n) {
|
|
1190
1189
|
var d, h, m, g, b, w, f, j;
|
|
1191
|
-
const r = Be(), o = (n == null ? void 0 : n.locale) ?? r.locale ??
|
|
1192
|
-
if (!
|
|
1190
|
+
const r = Be(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? No, 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);
|
|
1191
|
+
if (!Br(c))
|
|
1193
1192
|
throw new RangeError("Invalid time value");
|
|
1194
|
-
let l = e.match(
|
|
1193
|
+
let l = e.match(Lo).map((v) => {
|
|
1195
1194
|
const p = v[0];
|
|
1196
1195
|
if (p === "p" || p === "P") {
|
|
1197
|
-
const C =
|
|
1196
|
+
const C = Oo[p];
|
|
1198
1197
|
return C(v, o.formatLong);
|
|
1199
1198
|
}
|
|
1200
1199
|
return v;
|
|
1201
|
-
}).join("").match(
|
|
1200
|
+
}).join("").match(qo).map((v) => {
|
|
1202
1201
|
if (v === "''")
|
|
1203
1202
|
return { isToken: !1, value: "'" };
|
|
1204
1203
|
const p = v[0];
|
|
1205
1204
|
if (p === "'")
|
|
1206
|
-
return { isToken: !1, value:
|
|
1205
|
+
return { isToken: !1, value: Bo(v) };
|
|
1207
1206
|
if (Ct[p])
|
|
1208
1207
|
return { isToken: !0, value: v };
|
|
1209
|
-
if (p.match(
|
|
1208
|
+
if (p.match(Go))
|
|
1210
1209
|
throw new RangeError(
|
|
1211
1210
|
"Format string contains an unescaped latin alphabet character `" + p + "`"
|
|
1212
1211
|
);
|
|
@@ -1222,16 +1221,16 @@ function ln(t, e, n) {
|
|
|
1222
1221
|
if (!v.isToken)
|
|
1223
1222
|
return v.value;
|
|
1224
1223
|
const p = v.value;
|
|
1225
|
-
(!(n != null && n.useAdditionalWeekYearTokens) &&
|
|
1224
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && Fo(p) || !(n != null && n.useAdditionalDayOfYearTokens) && Ao(p)) && Wo(p, e, String(t));
|
|
1226
1225
|
const C = Ct[p[0]];
|
|
1227
1226
|
return C(c, p, o.localize, u);
|
|
1228
1227
|
}).join("");
|
|
1229
1228
|
}
|
|
1230
|
-
function
|
|
1231
|
-
const e = t.match(
|
|
1232
|
-
return e ? e[1].replace(
|
|
1229
|
+
function Bo(t) {
|
|
1230
|
+
const e = t.match(Yo);
|
|
1231
|
+
return e ? e[1].replace(Ho, "'") : t;
|
|
1233
1232
|
}
|
|
1234
|
-
var
|
|
1233
|
+
var Vo = function(t, e, n, r, o, a, i, c) {
|
|
1235
1234
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
1236
1235
|
throw new Error("invariant requires an error message argument");
|
|
1237
1236
|
if (!t) {
|
|
@@ -1250,8 +1249,8 @@ var Bo = function(t, e, n, r, o, a, i, c) {
|
|
|
1250
1249
|
}
|
|
1251
1250
|
throw l.framesToPop = 1, l;
|
|
1252
1251
|
}
|
|
1253
|
-
},
|
|
1254
|
-
const St = /* @__PURE__ */ Zn(
|
|
1252
|
+
}, Uo = Vo;
|
|
1253
|
+
const St = /* @__PURE__ */ Zn(Uo);
|
|
1255
1254
|
function Ne(...t) {
|
|
1256
1255
|
return t.filter((e) => e != null).reduce((e, n) => {
|
|
1257
1256
|
if (typeof n != "function")
|
|
@@ -1261,17 +1260,17 @@ function Ne(...t) {
|
|
|
1261
1260
|
};
|
|
1262
1261
|
}, null);
|
|
1263
1262
|
}
|
|
1264
|
-
const
|
|
1263
|
+
const Ko = {
|
|
1265
1264
|
height: ["marginTop", "marginBottom"],
|
|
1266
1265
|
width: ["marginLeft", "marginRight"]
|
|
1267
1266
|
};
|
|
1268
|
-
function
|
|
1269
|
-
const n = `offset${t[0].toUpperCase()}${t.slice(1)}`, r = e[n], o =
|
|
1267
|
+
function zo(t, e) {
|
|
1268
|
+
const n = `offset${t[0].toUpperCase()}${t.slice(1)}`, r = e[n], o = Ko[t];
|
|
1270
1269
|
return r + // @ts-ignore
|
|
1271
1270
|
parseInt(yt(e, o[0]), 10) + // @ts-ignore
|
|
1272
1271
|
parseInt(yt(e, o[1]), 10);
|
|
1273
1272
|
}
|
|
1274
|
-
const
|
|
1273
|
+
const Qo = {
|
|
1275
1274
|
[nr]: "collapse",
|
|
1276
1275
|
[rr]: "collapsing",
|
|
1277
1276
|
[or]: "collapsing",
|
|
@@ -1290,7 +1289,7 @@ const zo = {
|
|
|
1290
1289
|
mountOnEnter: d = !1,
|
|
1291
1290
|
unmountOnExit: h = !1,
|
|
1292
1291
|
appear: m = !1,
|
|
1293
|
-
getDimensionValue: g =
|
|
1292
|
+
getDimensionValue: g = zo,
|
|
1294
1293
|
...b
|
|
1295
1294
|
}, w) => {
|
|
1296
1295
|
const f = typeof c == "function" ? c() : c, j = z(() => Ne((y) => {
|
|
@@ -1323,19 +1322,19 @@ const zo = {
|
|
|
1323
1322
|
appear: m,
|
|
1324
1323
|
children: (y, $) => /* @__PURE__ */ Z.cloneElement(i, {
|
|
1325
1324
|
...$,
|
|
1326
|
-
className: x(a, i.props.className,
|
|
1325
|
+
className: x(a, i.props.className, Qo[y], f === "width" && "collapse-horizontal")
|
|
1327
1326
|
})
|
|
1328
1327
|
});
|
|
1329
1328
|
});
|
|
1330
|
-
function
|
|
1329
|
+
function Xo(t, e, n, r = !1) {
|
|
1331
1330
|
const o = ge(n);
|
|
1332
1331
|
D(() => {
|
|
1333
1332
|
const a = typeof t == "function" ? t() : t;
|
|
1334
1333
|
return a.addEventListener(e, o, r), () => a.removeEventListener(e, o, r);
|
|
1335
1334
|
}, [t]);
|
|
1336
1335
|
}
|
|
1337
|
-
const
|
|
1338
|
-
function
|
|
1336
|
+
const Jo = ["as", "disabled"];
|
|
1337
|
+
function Zo(t, e) {
|
|
1339
1338
|
if (t == null)
|
|
1340
1339
|
return {};
|
|
1341
1340
|
var n = {}, r = Object.keys(t), o, a;
|
|
@@ -1343,7 +1342,7 @@ function Jo(t, e) {
|
|
|
1343
1342
|
o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
1344
1343
|
return n;
|
|
1345
1344
|
}
|
|
1346
|
-
function
|
|
1345
|
+
function es(t) {
|
|
1347
1346
|
return !t || t.trim() === "#";
|
|
1348
1347
|
}
|
|
1349
1348
|
function ht({
|
|
@@ -1367,7 +1366,7 @@ function ht({
|
|
|
1367
1366
|
disabled: e
|
|
1368
1367
|
}, u];
|
|
1369
1368
|
const d = (m) => {
|
|
1370
|
-
if ((e || t === "a" &&
|
|
1369
|
+
if ((e || t === "a" && es(n)) && m.preventDefault(), e) {
|
|
1371
1370
|
m.stopPropagation();
|
|
1372
1371
|
return;
|
|
1373
1372
|
}
|
|
@@ -1393,7 +1392,7 @@ const dn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1393
1392
|
let {
|
|
1394
1393
|
as: n,
|
|
1395
1394
|
disabled: r
|
|
1396
|
-
} = t, o =
|
|
1395
|
+
} = t, o = Zo(t, Jo);
|
|
1397
1396
|
const [a, {
|
|
1398
1397
|
tagName: i
|
|
1399
1398
|
}] = ht(Object.assign({
|
|
@@ -1405,8 +1404,8 @@ const dn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1405
1404
|
}));
|
|
1406
1405
|
});
|
|
1407
1406
|
dn.displayName = "Button";
|
|
1408
|
-
const
|
|
1409
|
-
function
|
|
1407
|
+
const ts = ["onKeyDown"];
|
|
1408
|
+
function ns(t, e) {
|
|
1410
1409
|
if (t == null)
|
|
1411
1410
|
return {};
|
|
1412
1411
|
var n = {}, r = Object.keys(t), o, a;
|
|
@@ -1414,19 +1413,19 @@ function ts(t, e) {
|
|
|
1414
1413
|
o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
1415
1414
|
return n;
|
|
1416
1415
|
}
|
|
1417
|
-
function
|
|
1416
|
+
function rs(t) {
|
|
1418
1417
|
return !t || t.trim() === "#";
|
|
1419
1418
|
}
|
|
1420
1419
|
const hn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
1421
1420
|
let {
|
|
1422
1421
|
onKeyDown: n
|
|
1423
|
-
} = t, r =
|
|
1422
|
+
} = t, r = ns(t, ts);
|
|
1424
1423
|
const [o] = ht(Object.assign({
|
|
1425
1424
|
tagName: "a"
|
|
1426
1425
|
}, r)), a = ge((i) => {
|
|
1427
1426
|
o.onKeyDown(i), n == null || n(i);
|
|
1428
1427
|
});
|
|
1429
|
-
return
|
|
1428
|
+
return rs(r.href) || r.role === "button" ? /* @__PURE__ */ s.jsx("a", Object.assign({
|
|
1430
1429
|
ref: e
|
|
1431
1430
|
}, r, o, {
|
|
1432
1431
|
onKeyDown: a
|
|
@@ -1463,10 +1462,10 @@ const mn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1463
1462
|
});
|
|
1464
1463
|
});
|
|
1465
1464
|
mn.displayName = "Button";
|
|
1466
|
-
function
|
|
1465
|
+
function os(t, e) {
|
|
1467
1466
|
return A.Children.toArray(t).some((n) => /* @__PURE__ */ A.isValidElement(n) && n.type === e);
|
|
1468
1467
|
}
|
|
1469
|
-
function
|
|
1468
|
+
function ss({
|
|
1470
1469
|
as: t,
|
|
1471
1470
|
bsPrefix: e,
|
|
1472
1471
|
className: n,
|
|
@@ -1504,7 +1503,7 @@ const fn = /* @__PURE__ */ A.forwardRef(
|
|
|
1504
1503
|
as: o = "div",
|
|
1505
1504
|
bsPrefix: a,
|
|
1506
1505
|
spans: i
|
|
1507
|
-
}] =
|
|
1506
|
+
}] = ss(t);
|
|
1508
1507
|
return /* @__PURE__ */ s.jsx(o, {
|
|
1509
1508
|
...r,
|
|
1510
1509
|
ref: e,
|
|
@@ -1513,7 +1512,7 @@ const fn = /* @__PURE__ */ A.forwardRef(
|
|
|
1513
1512
|
}
|
|
1514
1513
|
);
|
|
1515
1514
|
fn.displayName = "Col";
|
|
1516
|
-
function
|
|
1515
|
+
function as(t, e, n) {
|
|
1517
1516
|
const r = Y(t !== void 0), [o, a] = P(e), i = t !== void 0, c = r.current;
|
|
1518
1517
|
return r.current = i, !i && c && o !== e && a(e), [i ? t : o, O((...l) => {
|
|
1519
1518
|
const [u, ...d] = l;
|
|
@@ -1521,12 +1520,12 @@ function ss(t, e, n) {
|
|
|
1521
1520
|
return a(u), h;
|
|
1522
1521
|
}, [n])];
|
|
1523
1522
|
}
|
|
1524
|
-
function
|
|
1523
|
+
function is() {
|
|
1525
1524
|
const [, t] = Xt((e) => !e, !1);
|
|
1526
1525
|
return t;
|
|
1527
1526
|
}
|
|
1528
|
-
const Ve = /* @__PURE__ */ A.createContext(null),
|
|
1529
|
-
function
|
|
1527
|
+
const Ve = /* @__PURE__ */ A.createContext(null), cs = ["children", "usePopper"];
|
|
1528
|
+
function ls(t, e) {
|
|
1530
1529
|
if (t == null)
|
|
1531
1530
|
return {};
|
|
1532
1531
|
var n = {}, r = Object.keys(t), o, a;
|
|
@@ -1534,7 +1533,7 @@ function cs(t, e) {
|
|
|
1534
1533
|
o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
1535
1534
|
return n;
|
|
1536
1535
|
}
|
|
1537
|
-
const
|
|
1536
|
+
const us = () => {
|
|
1538
1537
|
};
|
|
1539
1538
|
function pn(t = {}) {
|
|
1540
1539
|
const e = q(Ve), [n, r] = lr(), o = Y(!1), {
|
|
@@ -1565,7 +1564,7 @@ function pn(t = {}) {
|
|
|
1565
1564
|
arrowElement: n,
|
|
1566
1565
|
popperConfig: d
|
|
1567
1566
|
})), C = Object.assign({
|
|
1568
|
-
ref: f ||
|
|
1567
|
+
ref: f || us,
|
|
1569
1568
|
"aria-labelledby": v == null ? void 0 : v.id
|
|
1570
1569
|
}, p.attributes.popper, {
|
|
1571
1570
|
style: p.styles.popper
|
|
@@ -1590,7 +1589,7 @@ function gn(t) {
|
|
|
1590
1589
|
let {
|
|
1591
1590
|
children: e,
|
|
1592
1591
|
usePopper: n = !0
|
|
1593
|
-
} = t, r =
|
|
1592
|
+
} = t, r = ls(t, cs);
|
|
1594
1593
|
const [o, a] = pn(Object.assign({}, r, {
|
|
1595
1594
|
usePopper: n
|
|
1596
1595
|
}));
|
|
@@ -1602,9 +1601,9 @@ gn.displayName = "DropdownMenu";
|
|
|
1602
1601
|
const Le = {
|
|
1603
1602
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1604
1603
|
current: 0
|
|
1605
|
-
}, wn = /* @__PURE__ */ Z.createContext(Le),
|
|
1606
|
-
let
|
|
1607
|
-
function
|
|
1604
|
+
}, wn = /* @__PURE__ */ Z.createContext(Le), ds = /* @__PURE__ */ Z.createContext(!1);
|
|
1605
|
+
let hs = !!(typeof window < "u" && window.document && window.document.createElement), Ze = /* @__PURE__ */ new WeakMap();
|
|
1606
|
+
function ms(t = !1) {
|
|
1608
1607
|
let e = q(wn), n = Y(null);
|
|
1609
1608
|
if (n.current === null && !t) {
|
|
1610
1609
|
var r, o;
|
|
@@ -1620,29 +1619,29 @@ function hs(t = !1) {
|
|
|
1620
1619
|
}
|
|
1621
1620
|
return n.current;
|
|
1622
1621
|
}
|
|
1623
|
-
function
|
|
1622
|
+
function fs(t) {
|
|
1624
1623
|
let e = q(wn);
|
|
1625
|
-
e === Le && !
|
|
1626
|
-
let n =
|
|
1624
|
+
e === Le && !hs && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
1625
|
+
let n = ms(!!t), r = e === Le && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
1627
1626
|
return t || `${r}-${n}`;
|
|
1628
1627
|
}
|
|
1629
|
-
function
|
|
1630
|
-
let e = Z.useId(), [n] = P(
|
|
1628
|
+
function ps(t) {
|
|
1629
|
+
let e = Z.useId(), [n] = P(vs()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Le.prefix}`;
|
|
1631
1630
|
return t || `${r}-${e}`;
|
|
1632
1631
|
}
|
|
1633
|
-
const
|
|
1634
|
-
function
|
|
1632
|
+
const gs = typeof Z.useId == "function" ? ps : fs;
|
|
1633
|
+
function ws() {
|
|
1635
1634
|
return !1;
|
|
1636
1635
|
}
|
|
1637
|
-
function
|
|
1636
|
+
function xs() {
|
|
1638
1637
|
return !0;
|
|
1639
1638
|
}
|
|
1640
|
-
function
|
|
1639
|
+
function ys(t) {
|
|
1641
1640
|
return () => {
|
|
1642
1641
|
};
|
|
1643
1642
|
}
|
|
1644
|
-
function
|
|
1645
|
-
return typeof Z.useSyncExternalStore == "function" ? Z.useSyncExternalStore(
|
|
1643
|
+
function vs() {
|
|
1644
|
+
return typeof Z.useSyncExternalStore == "function" ? Z.useSyncExternalStore(ys, ws, xs) : q(ds);
|
|
1646
1645
|
}
|
|
1647
1646
|
const xn = (t) => {
|
|
1648
1647
|
var e;
|
|
@@ -1650,7 +1649,7 @@ const xn = (t) => {
|
|
|
1650
1649
|
}, Tt = () => {
|
|
1651
1650
|
};
|
|
1652
1651
|
function yn() {
|
|
1653
|
-
const t =
|
|
1652
|
+
const t = gs(), {
|
|
1654
1653
|
show: e = !1,
|
|
1655
1654
|
toggle: n = Tt,
|
|
1656
1655
|
setToggle: r,
|
|
@@ -1679,8 +1678,8 @@ function vn({
|
|
|
1679
1678
|
vn.displayName = "DropdownToggle";
|
|
1680
1679
|
const rt = /* @__PURE__ */ A.createContext(null), Et = (t, e = null) => t != null ? String(t) : e || null, bn = /* @__PURE__ */ A.createContext(null);
|
|
1681
1680
|
bn.displayName = "NavContext";
|
|
1682
|
-
const
|
|
1683
|
-
function
|
|
1681
|
+
const bs = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
1682
|
+
function _s(t, e) {
|
|
1684
1683
|
if (t == null)
|
|
1685
1684
|
return {};
|
|
1686
1685
|
var n = {}, r = Object.keys(t), o, a;
|
|
@@ -1716,7 +1715,7 @@ const jn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1716
1715
|
onClick: o,
|
|
1717
1716
|
active: a,
|
|
1718
1717
|
as: i = dn
|
|
1719
|
-
} = t, c =
|
|
1718
|
+
} = t, c = _s(t, bs);
|
|
1720
1719
|
const [l] = _n({
|
|
1721
1720
|
key: n,
|
|
1722
1721
|
href: c.href,
|
|
@@ -1730,7 +1729,7 @@ const jn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1730
1729
|
});
|
|
1731
1730
|
jn.displayName = "DropdownItem";
|
|
1732
1731
|
function Ot() {
|
|
1733
|
-
const t =
|
|
1732
|
+
const t = is(), e = Y(null), n = O((r) => {
|
|
1734
1733
|
e.current = r, t();
|
|
1735
1734
|
}, [t]);
|
|
1736
1735
|
return [e, n];
|
|
@@ -1745,7 +1744,7 @@ function Ee({
|
|
|
1745
1744
|
placement: i = "bottom-start",
|
|
1746
1745
|
children: c
|
|
1747
1746
|
}) {
|
|
1748
|
-
const l = mr(), [u, d] =
|
|
1747
|
+
const l = mr(), [u, d] = as(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
1748
|
d(_, {
|
|
1750
1749
|
originalEvent: T,
|
|
1751
1750
|
source: F
|
|
@@ -1784,7 +1783,7 @@ function Ee({
|
|
|
1784
1783
|
let W = F.indexOf(_) + T;
|
|
1785
1784
|
return W = Math.max(0, Math.min(W, F.length)), F[W];
|
|
1786
1785
|
};
|
|
1787
|
-
return
|
|
1786
|
+
return Xo(O(() => l.document, [l]), "keydown", (_) => {
|
|
1788
1787
|
var T, F;
|
|
1789
1788
|
const {
|
|
1790
1789
|
key: W
|
|
@@ -2056,7 +2055,7 @@ const Te = Object.assign(Mn, {
|
|
|
2056
2055
|
ItemText: $n,
|
|
2057
2056
|
Divider: kn,
|
|
2058
2057
|
Header: Cn
|
|
2059
|
-
}),
|
|
2058
|
+
}), js = {
|
|
2060
2059
|
/**
|
|
2061
2060
|
* Specify whether the feedback is for valid or invalid fields
|
|
2062
2061
|
*
|
|
@@ -2081,7 +2080,7 @@ const Te = Object.assign(Mn, {
|
|
|
2081
2080
|
})
|
|
2082
2081
|
);
|
|
2083
2082
|
Ke.displayName = "Feedback";
|
|
2084
|
-
Ke.propTypes =
|
|
2083
|
+
Ke.propTypes = js;
|
|
2085
2084
|
const Oe = /* @__PURE__ */ A.forwardRef(({
|
|
2086
2085
|
id: t,
|
|
2087
2086
|
bsPrefix: e,
|
|
@@ -2149,7 +2148,7 @@ const Dn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2149
2148
|
controlId: C
|
|
2150
2149
|
} = q(ue), k = z(() => ({
|
|
2151
2150
|
controlId: t || C
|
|
2152
|
-
}), [C, t]), y = !f && w != null && w !== !1 ||
|
|
2151
|
+
}), [C, t]), y = !f && w != null && w !== !1 || os(f, Ye), $ = /* @__PURE__ */ s.jsx(Oe, {
|
|
2153
2152
|
...v,
|
|
2154
2153
|
type: b === "switch" ? "checkbox" : b,
|
|
2155
2154
|
ref: p,
|
|
@@ -2317,10 +2316,10 @@ const Yn = /* @__PURE__ */ A.forwardRef((t, e) => /* @__PURE__ */ s.jsx(He, {
|
|
|
2317
2316
|
type: "switch"
|
|
2318
2317
|
}));
|
|
2319
2318
|
Yn.displayName = "Switch";
|
|
2320
|
-
const
|
|
2319
|
+
const ks = Object.assign(Yn, {
|
|
2321
2320
|
Input: He.Input,
|
|
2322
2321
|
Label: He.Label
|
|
2323
|
-
}),
|
|
2322
|
+
}), Cs = {
|
|
2324
2323
|
/**
|
|
2325
2324
|
* The Form `ref` will be forwarded to the underlying element,
|
|
2326
2325
|
* which means, unless it's rendered `as` a composite component,
|
|
@@ -2348,13 +2347,13 @@ const js = Object.assign(Yn, {
|
|
|
2348
2347
|
className: x(t, e && "was-validated")
|
|
2349
2348
|
}));
|
|
2350
2349
|
ft.displayName = "Form";
|
|
2351
|
-
ft.propTypes =
|
|
2350
|
+
ft.propTypes = Cs;
|
|
2352
2351
|
const ee = Object.assign(ft, {
|
|
2353
2352
|
Group: xr,
|
|
2354
2353
|
Control: An,
|
|
2355
2354
|
Floating: Fn,
|
|
2356
2355
|
Check: He,
|
|
2357
|
-
Switch:
|
|
2356
|
+
Switch: ks,
|
|
2358
2357
|
Label: Wn,
|
|
2359
2358
|
Text: Ln,
|
|
2360
2359
|
Range: Rn,
|
|
@@ -2371,12 +2370,12 @@ const ee = Object.assign(ft, {
|
|
|
2371
2370
|
...r
|
|
2372
2371
|
})));
|
|
2373
2372
|
ze.displayName = "InputGroupText";
|
|
2374
|
-
const
|
|
2373
|
+
const Ns = (t) => /* @__PURE__ */ s.jsx(ze, {
|
|
2375
2374
|
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2376
2375
|
type: "checkbox",
|
|
2377
2376
|
...t
|
|
2378
2377
|
})
|
|
2379
|
-
}),
|
|
2378
|
+
}), $s = (t) => /* @__PURE__ */ s.jsx(ze, {
|
|
2380
2379
|
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2381
2380
|
type: "radio",
|
|
2382
2381
|
...t
|
|
@@ -2404,8 +2403,8 @@ const Cs = (t) => /* @__PURE__ */ s.jsx(ze, {
|
|
|
2404
2403
|
Hn.displayName = "InputGroup";
|
|
2405
2404
|
const et = Object.assign(Hn, {
|
|
2406
2405
|
Text: ze,
|
|
2407
|
-
Radio:
|
|
2408
|
-
Checkbox:
|
|
2406
|
+
Radio: $s,
|
|
2407
|
+
Checkbox: Ns
|
|
2409
2408
|
}), pt = /* @__PURE__ */ A.forwardRef(({
|
|
2410
2409
|
bsPrefix: t,
|
|
2411
2410
|
variant: e,
|
|
@@ -2426,53 +2425,53 @@ const et = Object.assign(Hn, {
|
|
|
2426
2425
|
});
|
|
2427
2426
|
pt.displayName = "Spinner";
|
|
2428
2427
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2429
|
-
const Gn = "client_info_decoding_error", Bn = "client_info_empty_error",
|
|
2428
|
+
const Gn = "client_info_decoding_error", Bn = "client_info_empty_error", Is = "token_parsing_error", Ss = "null_or_empty_token", Ts = "endpoints_resolution_error", Es = "network_error", Os = "openid_config_error", Ms = "hash_not_deserialized", Ds = "invalid_state", Ps = "state_mismatch", As = "state_not_found", Fs = "nonce_mismatch", Ws = "auth_time_not_found", Rs = "max_age_transpired", qs = "multiple_matching_tokens", Ls = "multiple_matching_accounts", Ys = "multiple_matching_appMetadata", Hs = "request_cannot_be_made", Gs = "cannot_remove_empty_scope", Bs = "cannot_append_scopeset", Vs = "empty_input_scopeset", Us = "device_code_polling_cancelled", Ks = "device_code_expired", zs = "device_code_unknown_error", Qs = "no_account_in_silent_request", Xs = "invalid_cache_record", Vn = "invalid_cache_environment", Js = "no_account_found", Zs = "no_crypto_object", ea = "unexpected_credential_type", ta = "invalid_assertion", na = "invalid_client_credential", ra = "token_refresh_required", oa = "user_timeout_reached", sa = "token_claims_cnf_required_for_signedjwt", aa = "authorization_code_missing_from_server_response", ia = "binding_key_not_removed", ca = "end_session_endpoint_not_supported", la = "key_id_missing", ua = "no_network_connectivity", da = "user_canceled", ha = "missing_tenant_id_error", ma = "method_not_implemented", fa = "nested_app_auth_bridge_disabled";
|
|
2430
2429
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2431
2430
|
const Mt = {
|
|
2432
2431
|
[Gn]: "The client info could not be parsed/decoded correctly",
|
|
2433
2432
|
[Bn]: "The client info was empty",
|
|
2434
|
-
[
|
|
2435
|
-
[
|
|
2436
|
-
[
|
|
2437
|
-
[
|
|
2438
|
-
[
|
|
2439
|
-
[
|
|
2440
|
-
[
|
|
2441
|
-
[
|
|
2442
|
-
[
|
|
2443
|
-
[
|
|
2444
|
-
[
|
|
2445
|
-
[
|
|
2446
|
-
[
|
|
2447
|
-
[
|
|
2448
|
-
[
|
|
2449
|
-
[
|
|
2450
|
-
[
|
|
2451
|
-
[
|
|
2452
|
-
[
|
|
2453
|
-
[
|
|
2454
|
-
[
|
|
2455
|
-
[
|
|
2456
|
-
[
|
|
2457
|
-
[
|
|
2433
|
+
[Is]: "Token cannot be parsed",
|
|
2434
|
+
[Ss]: "The token is null or empty",
|
|
2435
|
+
[Ts]: "Endpoints cannot be resolved",
|
|
2436
|
+
[Es]: "Network request failed",
|
|
2437
|
+
[Os]: "Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",
|
|
2438
|
+
[Ms]: "The hash parameters could not be deserialized",
|
|
2439
|
+
[Ds]: "State was not the expected format",
|
|
2440
|
+
[Ps]: "State mismatch error",
|
|
2441
|
+
[As]: "State not found",
|
|
2442
|
+
[Fs]: "Nonce mismatch error",
|
|
2443
|
+
[Ws]: "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.",
|
|
2444
|
+
[Rs]: "Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",
|
|
2445
|
+
[qs]: "The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",
|
|
2446
|
+
[Ls]: "The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",
|
|
2447
|
+
[Ys]: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",
|
|
2448
|
+
[Hs]: "Token request cannot be made without authorization code or refresh token.",
|
|
2449
|
+
[Gs]: "Cannot remove null or empty scope from ScopeSet",
|
|
2450
|
+
[Bs]: "Cannot append ScopeSet",
|
|
2451
|
+
[Vs]: "Empty input ScopeSet cannot be processed",
|
|
2452
|
+
[Us]: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",
|
|
2453
|
+
[Ks]: "Device code is expired.",
|
|
2454
|
+
[zs]: "Device code stopped polling for unknown reasons.",
|
|
2455
|
+
[Qs]: "Please pass an account object, silent flow is not supported without account information",
|
|
2456
|
+
[Xs]: "Cache record object was null or undefined.",
|
|
2458
2457
|
[Vn]: "Invalid environment when attempting to create cache entry",
|
|
2459
|
-
[
|
|
2460
|
-
[
|
|
2461
|
-
[
|
|
2462
|
-
[
|
|
2463
|
-
[
|
|
2464
|
-
[
|
|
2465
|
-
[
|
|
2466
|
-
[
|
|
2467
|
-
[
|
|
2468
|
-
[
|
|
2469
|
-
[
|
|
2470
|
-
[
|
|
2471
|
-
[
|
|
2472
|
-
[
|
|
2473
|
-
[
|
|
2474
|
-
[
|
|
2475
|
-
[
|
|
2458
|
+
[Js]: "No account found in cache for given key.",
|
|
2459
|
+
[Zs]: "No crypto object detected.",
|
|
2460
|
+
[ea]: "Unexpected credential type.",
|
|
2461
|
+
[ta]: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",
|
|
2462
|
+
[na]: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",
|
|
2463
|
+
[ra]: "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.",
|
|
2464
|
+
[oa]: "User defined timeout for device code polling reached",
|
|
2465
|
+
[sa]: "Cannot generate a POP jwt if the token_claims are not populated",
|
|
2466
|
+
[aa]: "Server response does not contain an authorization code to proceed",
|
|
2467
|
+
[ia]: "Could not remove the credential's binding key from storage.",
|
|
2468
|
+
[ca]: "The provided authority does not support logout",
|
|
2469
|
+
[la]: "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.",
|
|
2470
|
+
[ua]: "No network connectivity. Check your internet connection.",
|
|
2471
|
+
[da]: "User cancelled the flow.",
|
|
2472
|
+
[ha]: "A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",
|
|
2473
|
+
[ma]: "This method has not been implemented",
|
|
2474
|
+
[fa]: "The nested app auth bridge is disabled"
|
|
2476
2475
|
};
|
|
2477
2476
|
class gt extends ct {
|
|
2478
2477
|
constructor(e, n) {
|
|
@@ -2494,16 +2493,16 @@ function Dt(t, e) {
|
|
|
2494
2493
|
}
|
|
2495
2494
|
}
|
|
2496
2495
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2497
|
-
function
|
|
2496
|
+
function pa(t, e) {
|
|
2498
2497
|
return !!t && !!e && t === e.split(".")[1];
|
|
2499
2498
|
}
|
|
2500
|
-
function
|
|
2499
|
+
function ga(t, e) {
|
|
2501
2500
|
const { oid: n, sub: r, tid: o, name: a, tfp: i, acr: c } = e, l = o || i || c || "";
|
|
2502
2501
|
return {
|
|
2503
2502
|
tenantId: l,
|
|
2504
2503
|
localAccountId: n || r || "",
|
|
2505
2504
|
name: a,
|
|
2506
|
-
isHomeTenant:
|
|
2505
|
+
isHomeTenant: pa(l, t)
|
|
2507
2506
|
};
|
|
2508
2507
|
}
|
|
2509
2508
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
@@ -2514,11 +2513,11 @@ const tt = {
|
|
|
2514
2513
|
Ciam: 3
|
|
2515
2514
|
};
|
|
2516
2515
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2517
|
-
function
|
|
2516
|
+
function wa(t) {
|
|
2518
2517
|
return t && (t.tid || t.tfp || t.acr) || null;
|
|
2519
2518
|
}
|
|
2520
2519
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2521
|
-
const
|
|
2520
|
+
const xa = {
|
|
2522
2521
|
AAD: "AAD",
|
|
2523
2522
|
OIDC: "OIDC"
|
|
2524
2523
|
};
|
|
@@ -2583,20 +2582,20 @@ class Ie {
|
|
|
2583
2582
|
*/
|
|
2584
2583
|
static createAccount(e, n, r) {
|
|
2585
2584
|
const o = new Ie();
|
|
2586
|
-
n.authorityType === tt.Adfs ? o.authorityType = De.ADFS_ACCOUNT_TYPE : n.protocolMode ===
|
|
2585
|
+
n.authorityType === tt.Adfs ? o.authorityType = De.ADFS_ACCOUNT_TYPE : n.protocolMode === xa.AAD ? o.authorityType = De.MSSTS_ACCOUNT_TYPE : o.authorityType = De.GENERIC_ACCOUNT_TYPE;
|
|
2587
2586
|
let a;
|
|
2588
2587
|
e.clientInfo && r && (a = Dt(e.clientInfo, r)), o.clientInfo = e.clientInfo, o.homeAccountId = e.homeAccountId, o.nativeAccountId = e.nativeAccountId;
|
|
2589
2588
|
const i = e.environment || n && n.getPreferredCache();
|
|
2590
2589
|
if (!i)
|
|
2591
2590
|
throw ot(Vn);
|
|
2592
|
-
o.environment = i, o.realm = (a == null ? void 0 : a.utid) ||
|
|
2591
|
+
o.environment = i, o.realm = (a == null ? void 0 : a.utid) || wa(e.idTokenClaims) || "", o.localAccountId = (a == null ? void 0 : a.uid) || e.idTokenClaims.oid || e.idTokenClaims.sub || "";
|
|
2593
2592
|
const c = e.idTokenClaims.preferred_username || e.idTokenClaims.upn, l = e.idTokenClaims.emails ? e.idTokenClaims.emails[0] : null;
|
|
2594
2593
|
if (o.username = c || l || "", o.name = e.idTokenClaims.name, o.cloudGraphHostName = e.cloudGraphHostName, o.msGraphHost = e.msGraphHost, e.tenantProfiles)
|
|
2595
2594
|
o.tenantProfiles = e.tenantProfiles;
|
|
2596
2595
|
else {
|
|
2597
2596
|
const u = [];
|
|
2598
2597
|
if (e.idTokenClaims) {
|
|
2599
|
-
const d =
|
|
2598
|
+
const d = ga(e.homeAccountId, e.idTokenClaims);
|
|
2600
2599
|
u.push(d);
|
|
2601
2600
|
}
|
|
2602
2601
|
o.tenantProfiles = u;
|
|
@@ -2667,7 +2666,7 @@ class wt extends ct {
|
|
|
2667
2666
|
function Pt(t, e) {
|
|
2668
2667
|
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? t.getActiveAccount() : vr(t.getAllAccounts(), e);
|
|
2669
2668
|
}
|
|
2670
|
-
function
|
|
2669
|
+
function ya(t) {
|
|
2671
2670
|
const { instance: e, inProgress: n, logger: r } = lt(), [o, a] = P(() => Pt(e, t));
|
|
2672
2671
|
return D(() => {
|
|
2673
2672
|
a((i) => {
|
|
@@ -2699,8 +2698,8 @@ class _e extends ct {
|
|
|
2699
2698
|
}
|
|
2700
2699
|
}
|
|
2701
2700
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2702
|
-
function
|
|
2703
|
-
const { instance: r, inProgress: o, logger: a } = lt(), i = Bt(n), c =
|
|
2701
|
+
function va(t, e, n) {
|
|
2702
|
+
const { instance: r, inProgress: o, logger: a } = lt(), i = Bt(n), c = ya(n), [[l, u], d] = P([null, null]), h = Y(!0);
|
|
2704
2703
|
D(() => () => {
|
|
2705
2704
|
h.current = !1;
|
|
2706
2705
|
}, []);
|
|
@@ -2790,12 +2789,12 @@ function ya(t, e, n) {
|
|
|
2790
2789
|
};
|
|
2791
2790
|
}
|
|
2792
2791
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2793
|
-
function
|
|
2792
|
+
function ba({ interactionType: t, username: e, homeAccountId: n, localAccountId: r, authenticationRequest: o, loadingComponent: a, errorComponent: i, children: c }) {
|
|
2794
2793
|
const l = z(() => ({
|
|
2795
2794
|
username: e,
|
|
2796
2795
|
homeAccountId: n,
|
|
2797
2796
|
localAccountId: r
|
|
2798
|
-
}), [e, n, r]), u = lt(), d =
|
|
2797
|
+
}), [e, n, r]), u = lt(), d = va(t, o, l), h = Bt(l);
|
|
2799
2798
|
if (d.error && u.inProgress === $e.None) {
|
|
2800
2799
|
if (i)
|
|
2801
2800
|
return Z.createElement(i, { ...d });
|
|
@@ -2803,20 +2802,20 @@ function va({ interactionType: t, username: e, homeAccountId: n, localAccountId:
|
|
|
2803
2802
|
}
|
|
2804
2803
|
return h ? Z.createElement(Z.Fragment, null, br(c, d)) : a && u.inProgress !== $e.None ? Z.createElement(a, { ...u }) : null;
|
|
2805
2804
|
}
|
|
2806
|
-
const
|
|
2807
|
-
button:
|
|
2808
|
-
filled:
|
|
2809
|
-
sm:
|
|
2810
|
-
md:
|
|
2811
|
-
lg:
|
|
2805
|
+
const _a = "_button_1wjon_1", ja = "_filled_1wjon_7", ka = "_sm_1wjon_13", Ca = "_md_1wjon_18", Na = "_lg_1wjon_23", ve = {
|
|
2806
|
+
button: _a,
|
|
2807
|
+
filled: ja,
|
|
2808
|
+
sm: ka,
|
|
2809
|
+
md: Ca,
|
|
2810
|
+
lg: Na
|
|
2812
2811
|
}, At = ({ variant: t = "filled", color: e = "primary", size: n = "md", className: r, children: o, ...a }) => {
|
|
2813
2812
|
const { LinkComponent: i } = q(ie);
|
|
2814
2813
|
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
|
-
},
|
|
2814
|
+
}, $a = "_submit-container_a9slg_1", Ia = "_spacer_a9slg_14", Ft = {
|
|
2816
2815
|
"submit-container": "_submit-container_a9slg_1",
|
|
2817
|
-
submitContainer:
|
|
2818
|
-
spacer:
|
|
2819
|
-
},
|
|
2816
|
+
submitContainer: $a,
|
|
2817
|
+
spacer: Ia
|
|
2818
|
+
}, Sa = ({ children: t, onStorno: e }) => {
|
|
2820
2819
|
const { formSubmitTexts: n } = q(ie);
|
|
2821
2820
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2822
2821
|
/* @__PURE__ */ s.jsx("div", { className: Ft.spacer }),
|
|
@@ -2831,9 +2830,9 @@ const ba = "_button_1wjon_1", _a = "_filled_1wjon_7", ja = "_sm_1wjon_13", ka =
|
|
|
2831
2830
|
] })
|
|
2832
2831
|
] })
|
|
2833
2832
|
] });
|
|
2834
|
-
},
|
|
2835
|
-
button:
|
|
2836
|
-
},
|
|
2833
|
+
}, Ta = "_button_1r3i0_1", st = {
|
|
2834
|
+
button: Ta
|
|
2835
|
+
}, Ea = ({
|
|
2837
2836
|
color: t = "primary",
|
|
2838
2837
|
// icon = <MdOutlineArrowOutward size={10} />,
|
|
2839
2838
|
icon: e,
|
|
@@ -2860,12 +2859,12 @@ const ba = "_button_1wjon_1", _a = "_filled_1wjon_7", ja = "_sm_1wjon_13", ka =
|
|
|
2860
2859
|
] }),
|
|
2861
2860
|
/* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: c })
|
|
2862
2861
|
] });
|
|
2863
|
-
},
|
|
2862
|
+
}, Oa = "_icon-button_15e26_1", Ma = "_sm_15e26_14", Da = "_md_15e26_23", Pa = "_lg_15e26_32", Wt = {
|
|
2864
2863
|
"icon-button": "_icon-button_15e26_1",
|
|
2865
|
-
iconButton:
|
|
2866
|
-
sm:
|
|
2867
|
-
md:
|
|
2868
|
-
lg:
|
|
2864
|
+
iconButton: Oa,
|
|
2865
|
+
sm: Ma,
|
|
2866
|
+
md: Da,
|
|
2867
|
+
lg: Pa
|
|
2869
2868
|
}, J = ({ type: t = "button", color: e = "primary", size: n = "md", children: r, className: o, ...a }) => /* @__PURE__ */ s.jsx(
|
|
2870
2869
|
"button",
|
|
2871
2870
|
{
|
|
@@ -2874,7 +2873,7 @@ const ba = "_button_1wjon_1", _a = "_filled_1wjon_7", ja = "_sm_1wjon_13", ka =
|
|
|
2874
2873
|
...a,
|
|
2875
2874
|
children: r
|
|
2876
2875
|
}
|
|
2877
|
-
),
|
|
2876
|
+
), bc = ({ month: t, onChangeMonth: e, locale: n }) => {
|
|
2878
2877
|
const r = O((o) => {
|
|
2879
2878
|
e(on(t, o));
|
|
2880
2879
|
}, [t, e]);
|
|
@@ -2883,29 +2882,29 @@ const ba = "_button_1wjon_1", _a = "_filled_1wjon_7", ja = "_sm_1wjon_13", ka =
|
|
|
2883
2882
|
/* @__PURE__ */ s.jsx("div", { children: ln(t, "LLLL yyyy", { locale: n }) }),
|
|
2884
2883
|
/* @__PURE__ */ s.jsx(J, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2885
2884
|
] });
|
|
2886
|
-
},
|
|
2885
|
+
}, _c = ({ year: t, onChangeYear: e, locale: n }) => {
|
|
2887
2886
|
const r = O((o) => {
|
|
2888
|
-
e(
|
|
2887
|
+
e(Hr(t, o));
|
|
2889
2888
|
}, [t, e]);
|
|
2890
2889
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2891
2890
|
/* @__PURE__ */ s.jsx(J, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(ut, {}) }),
|
|
2892
2891
|
/* @__PURE__ */ s.jsx("div", { children: ln(t, "yyyy", { locale: n }) }),
|
|
2893
2892
|
/* @__PURE__ */ s.jsx(J, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2894
2893
|
] });
|
|
2895
|
-
},
|
|
2896
|
-
widget:
|
|
2897
|
-
},
|
|
2894
|
+
}, Aa = "_widget_etgh3_1", Fa = {
|
|
2895
|
+
widget: Aa
|
|
2896
|
+
}, Wa = ({ show: t, widgets: e, handleClose: n, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ s.jsxs(Fe, { show: t, onHide: () => n(), children: [
|
|
2898
2897
|
/* @__PURE__ */ s.jsx(Fe.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Fe.Title, { children: o.pickWidgetToAdd }) }),
|
|
2899
2898
|
/* @__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
2899
|
] }), Rt = ({ availableWidgets: t, onAdd: e, texts: n }) => {
|
|
2901
2900
|
const [r, o] = P(!1);
|
|
2902
2901
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2903
|
-
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget",
|
|
2904
|
-
/* @__PURE__ */ s.jsx(
|
|
2902
|
+
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget", Fa.widget), children: /* @__PURE__ */ s.jsx(J, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(kr, {}) }) }),
|
|
2903
|
+
/* @__PURE__ */ s.jsx(Wa, { show: r, widgets: t, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
2905
2904
|
o(!1), e(a);
|
|
2906
2905
|
}, texts: n })
|
|
2907
2906
|
] });
|
|
2908
|
-
},
|
|
2907
|
+
}, Ra = (t) => {
|
|
2909
2908
|
const [e, n] = P({ widgets: [] });
|
|
2910
2909
|
D(() => {
|
|
2911
2910
|
const o = localStorage.getItem("dashboardConfig");
|
|
@@ -2915,25 +2914,25 @@ const ba = "_button_1wjon_1", _a = "_filled_1wjon_7", ja = "_sm_1wjon_13", ka =
|
|
|
2915
2914
|
n(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
|
|
2916
2915
|
}, []);
|
|
2917
2916
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
2918
|
-
},
|
|
2919
|
-
dashboard:
|
|
2920
|
-
"widgets-grid": "_widgets-
|
|
2921
|
-
widgetsGrid:
|
|
2922
|
-
"widget-wrapper": "_widget-
|
|
2923
|
-
widgetWrapper:
|
|
2924
|
-
"full-width": "_full-
|
|
2925
|
-
fullWidth:
|
|
2926
|
-
"widget-edit": "_widget-
|
|
2927
|
-
widgetEdit:
|
|
2928
|
-
"remove-icon": "_remove-
|
|
2929
|
-
removeIcon:
|
|
2930
|
-
"full-width-icon": "_full-width-
|
|
2931
|
-
fullWidthIcon:
|
|
2932
|
-
"widget-edit-overlay": "_widget-edit-
|
|
2933
|
-
widgetEditOverlay:
|
|
2934
|
-
},
|
|
2917
|
+
}, qa = "_dashboard_16plm_1", La = "_widgets-grid_16plm_1", Ya = "_widget-wrapper_16plm_8", Ha = "_full-width_16plm_13", Ga = "_widget-edit_16plm_16", Ba = "_remove-icon_16plm_19", Va = "_full-width-icon_16plm_26", Ua = "_widget-edit-overlay_16plm_36", se = {
|
|
2918
|
+
dashboard: qa,
|
|
2919
|
+
"widgets-grid": "_widgets-grid_16plm_1",
|
|
2920
|
+
widgetsGrid: La,
|
|
2921
|
+
"widget-wrapper": "_widget-wrapper_16plm_8",
|
|
2922
|
+
widgetWrapper: Ya,
|
|
2923
|
+
"full-width": "_full-width_16plm_13",
|
|
2924
|
+
fullWidth: Ha,
|
|
2925
|
+
"widget-edit": "_widget-edit_16plm_16",
|
|
2926
|
+
widgetEdit: Ga,
|
|
2927
|
+
"remove-icon": "_remove-icon_16plm_19",
|
|
2928
|
+
removeIcon: Ba,
|
|
2929
|
+
"full-width-icon": "_full-width-icon_16plm_26",
|
|
2930
|
+
fullWidthIcon: Va,
|
|
2931
|
+
"widget-edit-overlay": "_widget-edit-overlay_16plm_36",
|
|
2932
|
+
widgetEditOverlay: Ua
|
|
2933
|
+
}, jc = ({ availableWidgets: t, editMode: e, defaultDashboardConfig: n }) => {
|
|
2935
2934
|
var d;
|
|
2936
|
-
const { homeDashboardTexts: r } = q(ie), { dashboardConfig: o, onChangeDashboardConfig: a } =
|
|
2935
|
+
const { homeDashboardTexts: r } = q(ie), { dashboardConfig: o, onChangeDashboardConfig: a } = Ra(n), i = O((h, m) => {
|
|
2937
2936
|
var g, b;
|
|
2938
2937
|
h === ((g = o.widgets) == null ? void 0 : g.length) ? a({
|
|
2939
2938
|
...o,
|
|
@@ -2978,16 +2977,16 @@ const ba = "_button_1wjon_1", _a = "_filled_1wjon_7", ja = "_sm_1wjon_13", ka =
|
|
|
2978
2977
|
return i((m = o.widgets) == null ? void 0 : m.length, h);
|
|
2979
2978
|
}, texts: r })
|
|
2980
2979
|
] }) });
|
|
2981
|
-
},
|
|
2982
|
-
badge:
|
|
2983
|
-
sm:
|
|
2984
|
-
md:
|
|
2985
|
-
lg:
|
|
2986
|
-
},
|
|
2980
|
+
}, Ka = "_badge_nhser_1", za = "_sm_nhser_1", Qa = "_md_nhser_4", Xa = "_lg_nhser_7", qt = {
|
|
2981
|
+
badge: Ka,
|
|
2982
|
+
sm: za,
|
|
2983
|
+
md: Qa,
|
|
2984
|
+
lg: Xa
|
|
2985
|
+
}, kc = ({ 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 }), Ja = "_collapse-icon_1ahhn_1", Za = "_collapsed_1ahhn_6", Lt = {
|
|
2987
2986
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
2988
|
-
collapseIcon:
|
|
2989
|
-
collapsed:
|
|
2990
|
-
},
|
|
2987
|
+
collapseIcon: Ja,
|
|
2988
|
+
collapsed: Za
|
|
2989
|
+
}, Cc = ({ title: t, children: e, className: n, ...r }) => {
|
|
2991
2990
|
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = P(o), c = r.controlled ? r.isOpen : a;
|
|
2992
2991
|
return D(() => {
|
|
2993
2992
|
i(o);
|
|
@@ -3001,15 +3000,15 @@ const ba = "_button_1wjon_1", _a = "_filled_1wjon_7", ja = "_sm_1wjon_13", ka =
|
|
|
3001
3000
|
/* @__PURE__ */ s.jsx(un, { in: c, children: /* @__PURE__ */ s.jsx("div", { children: e }) }),
|
|
3002
3001
|
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${c ? "mt-3" : ""}` })
|
|
3003
3002
|
] });
|
|
3004
|
-
},
|
|
3005
|
-
feedback:
|
|
3003
|
+
}, ei = "_feedback_esh1j_1", ti = "_feedback-spacer_esh1j_8", Yt = {
|
|
3004
|
+
feedback: ei,
|
|
3006
3005
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
3007
|
-
feedbackSpacer:
|
|
3006
|
+
feedbackSpacer: ti
|
|
3008
3007
|
}, xe = ({ message: t }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3009
3008
|
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback", Yt.feedback), children: t }),
|
|
3010
3009
|
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback-spacer", Yt.feedbackSpacer), children: t })
|
|
3011
3010
|
] });
|
|
3012
|
-
function
|
|
3011
|
+
function ni(t, e, n) {
|
|
3013
3012
|
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
3013
|
d.current = t;
|
|
3015
3014
|
var m = typeof window < "u", g = !e && e !== 0 && m;
|
|
@@ -3065,39 +3064,39 @@ function ti(t, e, n) {
|
|
|
3065
3064
|
}, [b, f, e, v, w, g, m, j]);
|
|
3066
3065
|
return p;
|
|
3067
3066
|
}
|
|
3068
|
-
function
|
|
3067
|
+
function ri(t, e) {
|
|
3069
3068
|
return t === e;
|
|
3070
3069
|
}
|
|
3071
|
-
function
|
|
3070
|
+
function oi(t, e) {
|
|
3072
3071
|
return e;
|
|
3073
3072
|
}
|
|
3074
3073
|
function Kn(t, e, n) {
|
|
3075
|
-
var r =
|
|
3074
|
+
var r = ri, o = Xt(oi, t), a = o[0], i = o[1], c = ni(O(function(u) {
|
|
3076
3075
|
return i(u);
|
|
3077
3076
|
}, [i]), e, n), l = Y(t);
|
|
3078
3077
|
return r(l.current, t) || (c(t), l.current = t), [a, c];
|
|
3079
3078
|
}
|
|
3080
|
-
const
|
|
3081
|
-
wrapper:
|
|
3082
|
-
open:
|
|
3083
|
-
dropdown:
|
|
3079
|
+
const si = "_wrapper_uccrb_1", ai = "_open_uccrb_9", ii = "_dropdown_uccrb_13", ci = "_search-input-container_uccrb_19", li = "_search-input_uccrb_19", ui = "_loading-container_uccrb_25", di = "_items-container_uccrb_32", hi = "_header-row_uccrb_38", mi = "_item_uccrb_32", fi = "_name_uccrb_57", pi = "_column-item_uccrb_62", gi = "_icon_uccrb_66", wi = "_clear-button_uccrb_74", X = {
|
|
3080
|
+
wrapper: si,
|
|
3081
|
+
open: ai,
|
|
3082
|
+
dropdown: ii,
|
|
3084
3083
|
"search-input-container": "_search-input-container_uccrb_19",
|
|
3085
|
-
searchInputContainer:
|
|
3084
|
+
searchInputContainer: ci,
|
|
3086
3085
|
"search-input": "_search-input_uccrb_19",
|
|
3087
|
-
searchInput:
|
|
3086
|
+
searchInput: li,
|
|
3088
3087
|
"loading-container": "_loading-container_uccrb_25",
|
|
3089
|
-
loadingContainer:
|
|
3088
|
+
loadingContainer: ui,
|
|
3090
3089
|
"items-container": "_items-container_uccrb_32",
|
|
3091
|
-
itemsContainer:
|
|
3090
|
+
itemsContainer: di,
|
|
3092
3091
|
"header-row": "_header-row_uccrb_38",
|
|
3093
|
-
headerRow:
|
|
3094
|
-
item:
|
|
3095
|
-
name:
|
|
3092
|
+
headerRow: hi,
|
|
3093
|
+
item: mi,
|
|
3094
|
+
name: fi,
|
|
3096
3095
|
"column-item": "_column-item_uccrb_62",
|
|
3097
|
-
columnItem:
|
|
3098
|
-
icon:
|
|
3096
|
+
columnItem: pi,
|
|
3097
|
+
icon: gi,
|
|
3099
3098
|
"clear-button": "_clear-button_uccrb_74",
|
|
3100
|
-
clearButton:
|
|
3099
|
+
clearButton: wi
|
|
3101
3100
|
}, 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
3101
|
var I;
|
|
3103
3102
|
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]);
|
|
@@ -3164,12 +3163,12 @@ const oi = "_wrapper_uccrb_1", si = "_open_uccrb_9", ai = "_dropdown_uccrb_13",
|
|
|
3164
3163
|
] }) }) })
|
|
3165
3164
|
] });
|
|
3166
3165
|
};
|
|
3167
|
-
function
|
|
3166
|
+
function xi(t) {
|
|
3168
3167
|
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
3168
|
}
|
|
3170
|
-
const
|
|
3171
|
-
item:
|
|
3172
|
-
},
|
|
3169
|
+
const yi = "_item_1dy8x_1", zn = {
|
|
3170
|
+
item: yi
|
|
3171
|
+
}, vi = ({
|
|
3173
3172
|
color: t = "primary",
|
|
3174
3173
|
// icon = <MdOutlineArrowOutward />,
|
|
3175
3174
|
icon: e,
|
|
@@ -3179,7 +3178,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3179
3178
|
}) => /* @__PURE__ */ s.jsxs(Te.Item, { className: x(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${n ?? ""}`, zn.item), ...o, children: [
|
|
3180
3179
|
e,
|
|
3181
3180
|
r
|
|
3182
|
-
] }),
|
|
3181
|
+
] }), bi = (t) => /* @__PURE__ */ s.jsx(Te.Toggle, { ...t }), Nc = ({ 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
3182
|
const u = (d) => {
|
|
3184
3183
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
3185
3184
|
};
|
|
@@ -3190,24 +3189,24 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3190
3189
|
] }),
|
|
3191
3190
|
/* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
|
|
3192
3191
|
] });
|
|
3193
|
-
},
|
|
3194
|
-
divider:
|
|
3195
|
-
},
|
|
3196
|
-
dropdown:
|
|
3197
|
-
},
|
|
3192
|
+
}, _i = "_divider_1e6rk_1", ji = {
|
|
3193
|
+
divider: _i
|
|
3194
|
+
}, $c = ({ className: t }) => /* @__PURE__ */ s.jsx(Te.Divider, { className: x("luminus-dropdown-divider", t, ji.divider) }), ki = "_dropdown_1lk66_1", Ci = {
|
|
3195
|
+
dropdown: ki
|
|
3196
|
+
}, Ni = ({ toggle: t, children: e, ...n }) => /* @__PURE__ */ s.jsxs(Te, { ...n, children: [
|
|
3198
3197
|
t,
|
|
3199
|
-
/* @__PURE__ */ s.jsx(Te.Menu, { className: x("luminus-dropdown rounded shadow",
|
|
3200
|
-
] }),
|
|
3201
|
-
dropdown:
|
|
3202
|
-
open:
|
|
3198
|
+
/* @__PURE__ */ s.jsx(Te.Menu, { className: x("luminus-dropdown rounded shadow", Ci.dropdown), children: e })
|
|
3199
|
+
] }), $i = ({ searchTypes: t, selectedType: e, setSelectedType: n }) => /* @__PURE__ */ s.jsx(Ni, { toggle: /* @__PURE__ */ s.jsx(bi, { as: $r, icon: null, text: e == null ? void 0 : e.text }), children: t.map((r) => /* @__PURE__ */ s.jsx(vi, { icon: null, onClick: () => n(r), children: r.text }, r.key)) }), Ii = "_dropdown_1ddrg_1", Si = "_open_1ddrg_12", Ti = "_loading-container_1ddrg_15", Ei = "_groups-container_1ddrg_22", Oi = "_group_1ddrg_22", Mi = "_header_1ddrg_26", Di = "_item_1ddrg_33", he = {
|
|
3200
|
+
dropdown: Ii,
|
|
3201
|
+
open: Si,
|
|
3203
3202
|
"loading-container": "_loading-container_1ddrg_15",
|
|
3204
|
-
loadingContainer:
|
|
3203
|
+
loadingContainer: Ti,
|
|
3205
3204
|
"groups-container": "_groups-container_1ddrg_22",
|
|
3206
|
-
groupsContainer:
|
|
3207
|
-
group:
|
|
3208
|
-
header:
|
|
3209
|
-
item:
|
|
3210
|
-
},
|
|
3205
|
+
groupsContainer: Ei,
|
|
3206
|
+
group: Oi,
|
|
3207
|
+
header: Mi,
|
|
3208
|
+
item: Di
|
|
3209
|
+
}, Pi = ({ show: t, query: e, onCancel: n, groups: r, isLoading: o, searchTypes: a }) => {
|
|
3211
3210
|
const { LinkComponent: i, appSearchTexts: c } = q(ie), l = Y(null), u = O((d) => {
|
|
3212
3211
|
var m;
|
|
3213
3212
|
const h = (m = a.find((g) => g.key === d.type)) == null ? void 0 : m.toPath;
|
|
@@ -3243,17 +3242,17 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3243
3242
|
))
|
|
3244
3243
|
] }, d.key.category);
|
|
3245
3244
|
}) }) });
|
|
3246
|
-
},
|
|
3245
|
+
}, Ai = "_input-group_1lkfy_1", Fi = "_input-group-text_1lkfy_5", Wi = "_left_1lkfy_9", Ri = "_right_1lkfy_13", qi = "_input_1lkfy_1", Li = "_submit-button_1lkfy_20", me = {
|
|
3247
3246
|
"input-group": "_input-group_1lkfy_1",
|
|
3248
|
-
inputGroup:
|
|
3247
|
+
inputGroup: Ai,
|
|
3249
3248
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
3250
|
-
inputGroupText:
|
|
3251
|
-
left:
|
|
3252
|
-
right:
|
|
3253
|
-
input:
|
|
3249
|
+
inputGroupText: Fi,
|
|
3250
|
+
left: Wi,
|
|
3251
|
+
right: Ri,
|
|
3252
|
+
input: qi,
|
|
3254
3253
|
"submit-button": "_submit-button_1lkfy_20",
|
|
3255
|
-
submitButton:
|
|
3256
|
-
},
|
|
3254
|
+
submitButton: Li
|
|
3255
|
+
}, Yi = (t, e) => {
|
|
3257
3256
|
const n = Sr(), [r, o] = P(!1), [a, i] = P([]), c = !t || !t.key, l = O(() => {
|
|
3258
3257
|
if (e.length < 3) {
|
|
3259
3258
|
i([]);
|
|
@@ -3268,32 +3267,32 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3268
3267
|
return D(() => {
|
|
3269
3268
|
l();
|
|
3270
3269
|
}, [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] = Kn(a, 500), { isLoading: u, searchItems: d } =
|
|
3270
|
+
}, Ic = ({ searchTypes: t, navigateFunction: e }) => {
|
|
3271
|
+
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 } = Yi(r, c), [h, m] = P(!1);
|
|
3273
3272
|
return D(() => {
|
|
3274
3273
|
(d.length > 0 || u) && m(!0);
|
|
3275
3274
|
}, [d, u]), /* @__PURE__ */ s.jsx(ee, { onSubmit: (g) => {
|
|
3276
3275
|
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
3276
|
}, 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(
|
|
3277
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded", me.inputGroupText, me.left), children: /* @__PURE__ */ s.jsx($i, { searchTypes: t, selectedType: r, setSelectedType: o }) }),
|
|
3279
3278
|
/* @__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
3279
|
var b;
|
|
3281
3280
|
return i(((b = g.target) == null ? void 0 : b.value) ?? "");
|
|
3282
3281
|
}, 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(
|
|
3282
|
+
/* @__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(xi, {}) }) }),
|
|
3283
|
+
/* @__PURE__ */ s.jsx(Pi, { query: c, searchTypes: t, show: h, onCancel: () => m(!1), groups: d, isLoading: u })
|
|
3285
3284
|
] }) });
|
|
3286
|
-
},
|
|
3287
|
-
card:
|
|
3288
|
-
header:
|
|
3285
|
+
}, Hi = "_card_19733_1", Gi = "_header_19733_6", Bi = "_header-content_19733_13", Vi = "_title_19733_19", Ui = "_collapse-icon_19733_22", Ki = "_collapsed_19733_27", zi = "_content_19733_30", fe = {
|
|
3286
|
+
card: Hi,
|
|
3287
|
+
header: Gi,
|
|
3289
3288
|
"header-content": "_header-content_19733_13",
|
|
3290
|
-
headerContent:
|
|
3291
|
-
title:
|
|
3289
|
+
headerContent: Bi,
|
|
3290
|
+
title: Vi,
|
|
3292
3291
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
3293
|
-
collapseIcon:
|
|
3294
|
-
collapsed:
|
|
3295
|
-
content:
|
|
3296
|
-
},
|
|
3292
|
+
collapseIcon: Ui,
|
|
3293
|
+
collapsed: Ki,
|
|
3294
|
+
content: zi
|
|
3295
|
+
}, Sc = ({ title: t, headerContent: e, children: n, className: r, headerClassName: o, contentClassName: a, ...i }) => {
|
|
3297
3296
|
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
3297
|
return D(() => {
|
|
3299
3298
|
u(c);
|
|
@@ -3317,28 +3316,28 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3317
3316
|
[a ?? ""]: a
|
|
3318
3317
|
}), children: n }) })
|
|
3319
3318
|
] });
|
|
3320
|
-
},
|
|
3321
|
-
lightbox:
|
|
3322
|
-
show:
|
|
3323
|
-
header:
|
|
3319
|
+
}, Qi = "_lightbox_14acg_1", Xi = "_show_14acg_16", Ji = "_header_14acg_20", Zi = "_photo-actions_14acg_26", ec = "_photo-container_14acg_31", tc = "_photo_14acg_26", nc = "_nav-button_14acg_41", rc = "_photos-preview_14acg_49", oc = "_selected_14acg_62", sc = "_default-indicator_14acg_66", ne = {
|
|
3320
|
+
lightbox: Qi,
|
|
3321
|
+
show: Xi,
|
|
3322
|
+
header: Ji,
|
|
3324
3323
|
"photo-actions": "_photo-actions_14acg_26",
|
|
3325
|
-
photoActions:
|
|
3324
|
+
photoActions: Zi,
|
|
3326
3325
|
"photo-container": "_photo-container_14acg_31",
|
|
3327
|
-
photoContainer:
|
|
3328
|
-
photo:
|
|
3326
|
+
photoContainer: ec,
|
|
3327
|
+
photo: tc,
|
|
3329
3328
|
"nav-button": "_nav-button_14acg_41",
|
|
3330
|
-
navButton:
|
|
3329
|
+
navButton: nc,
|
|
3331
3330
|
"photos-preview": "_photos-preview_14acg_49",
|
|
3332
|
-
photosPreview:
|
|
3333
|
-
selected:
|
|
3331
|
+
photosPreview: rc,
|
|
3332
|
+
selected: oc,
|
|
3334
3333
|
"default-indicator": "_default-indicator_14acg_66",
|
|
3335
|
-
defaultIndicator:
|
|
3336
|
-
},
|
|
3337
|
-
backdrop:
|
|
3338
|
-
show:
|
|
3334
|
+
defaultIndicator: sc
|
|
3335
|
+
}, ac = "_backdrop_3huvf_1", ic = "_show_3huvf_11", Ht = {
|
|
3336
|
+
backdrop: ac,
|
|
3337
|
+
show: ic
|
|
3339
3338
|
}, Qn = ({ show: t, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-backdrop", Ht.backdrop, {
|
|
3340
3339
|
[Ht.show]: t
|
|
3341
|
-
}), onClick: () => e && e() }),
|
|
3340
|
+
}), onClick: () => e && e() }), cc = ({ show: t, onClose: e, photos: n, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: c }) => {
|
|
3342
3341
|
const l = Y(null), [u, d] = P(r), h = n.at(u), m = u > 0, g = u < n.length - 1;
|
|
3343
3342
|
D(() => {
|
|
3344
3343
|
t && d(r);
|
|
@@ -3369,7 +3368,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3369
3368
|
w.length > 0 && i(Array.from(w));
|
|
3370
3369
|
}, icon: /* @__PURE__ */ s.jsx(zt, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
3371
3370
|
h && (c == null ? void 0 : c.map(({ label: w, onClick: f, ...j }, v) => /* @__PURE__ */ s.jsx(
|
|
3372
|
-
|
|
3371
|
+
Ea,
|
|
3373
3372
|
{
|
|
3374
3373
|
onClick: () => f(h.id),
|
|
3375
3374
|
...j,
|
|
@@ -3394,7 +3393,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3394
3393
|
] })) })
|
|
3395
3394
|
] })
|
|
3396
3395
|
] });
|
|
3397
|
-
},
|
|
3396
|
+
}, Tc = ({ photos: t, onUploadPhotos: e, uploadPhotosText: n, photoActions: r }) => {
|
|
3398
3397
|
const [o, a] = P(null), i = o !== null ? t[o] : null, [c, l] = P(!1);
|
|
3399
3398
|
return D(() => {
|
|
3400
3399
|
if (t.length === 0) {
|
|
@@ -3414,20 +3413,20 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3414
3413
|
onClick: () => l(!0)
|
|
3415
3414
|
}
|
|
3416
3415
|
),
|
|
3417
|
-
/* @__PURE__ */ s.jsx(
|
|
3416
|
+
/* @__PURE__ */ s.jsx(cc, { show: c, onClose: () => l(!1), photos: t, defaultIndex: o ?? 0, uploadPhotosText: n, onUploadPhotos: e, photoActions: r })
|
|
3418
3417
|
] }) : e ? /* @__PURE__ */ s.jsx(Un, { accept: ".jpg,.jpeg,.png", onUpload: (u) => {
|
|
3419
3418
|
u.length > 0 && e(Array.from(u));
|
|
3420
3419
|
}, icon: /* @__PURE__ */ s.jsx(zt, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : null;
|
|
3421
|
-
},
|
|
3422
|
-
const { NavigateComponent: n } = q(ie), { useMsal: r, msalScopes: o } = q(Er), { isAuthenticated: a } = Or(), { user:
|
|
3423
|
-
var
|
|
3424
|
-
return (
|
|
3420
|
+
}, Ec = ({ appAccessPermissions: t, children: e }) => {
|
|
3421
|
+
const { NavigateComponent: n } = q(ie), { useMsal: r, msalScopes: o } = q(Er), { isAuthenticated: a, isAuthenticating: i } = Or(), { user: c, loggingInProgress: l } = q(Mr), u = c && (t == null ? void 0 : t.every((d) => {
|
|
3422
|
+
var h;
|
|
3423
|
+
return (h = c.permissions) == null ? void 0 : h.includes(d);
|
|
3425
3424
|
}));
|
|
3426
|
-
return r ? /* @__PURE__ */ s.jsxs(
|
|
3427
|
-
!
|
|
3428
|
-
|
|
3429
|
-
] }) : !a() || !
|
|
3430
|
-
},
|
|
3425
|
+
return r ? !a && i || l ? /* @__PURE__ */ s.jsx(Wr, {}) : /* @__PURE__ */ s.jsxs(ba, { interactionType: Re.Redirect, authenticationRequest: { scopes: o }, children: [
|
|
3426
|
+
!c && /* @__PURE__ */ s.jsx(n, { to: "/no-user-login", replace: !0 }),
|
|
3427
|
+
u ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 })
|
|
3428
|
+
] }) : !a() || !c ? /* @__PURE__ */ s.jsx(n, { to: "/login", replace: !0 }) : u ? e : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 });
|
|
3429
|
+
}, Oc = ({ 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
3430
|
/* @__PURE__ */ s.jsx(Xe.Header, { as: "h3", children: t }),
|
|
3432
3431
|
/* @__PURE__ */ s.jsx(Xe.Body, { children: e })
|
|
3433
3432
|
] }), trigger: o ?? "hover", rootClose: !0, children: r }), Xn = ({ currentSelection: t, selectedItemNavigateTo: e, children: n }) => {
|
|
@@ -3436,10 +3435,10 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3436
3435
|
return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: n });
|
|
3437
3436
|
const o = e(t);
|
|
3438
3437
|
return /* @__PURE__ */ s.jsx(r, { to: o, className: "luminus-input-container position-relative w-100 text-decoration-none", children: n });
|
|
3439
|
-
},
|
|
3438
|
+
}, Mc = ({ 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
3439
|
var d;
|
|
3441
3440
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3442
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }),
|
|
3441
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Dc = ({ 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
3442
|
const f = e === "number", j = O(() => {
|
|
3444
3443
|
if (!r)
|
|
3445
3444
|
return;
|
|
@@ -3467,7 +3466,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3467
3466
|
/* @__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
3467
|
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
3468
|
] });
|
|
3470
|
-
},
|
|
3469
|
+
}, Pc = ({
|
|
3471
3470
|
InputContainer: t = Ge,
|
|
3472
3471
|
value: e,
|
|
3473
3472
|
options: n,
|
|
@@ -3504,7 +3503,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3504
3503
|
] }),
|
|
3505
3504
|
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
3505
|
] });
|
|
3507
|
-
},
|
|
3506
|
+
}, Ac = ({ 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
3507
|
var T, F;
|
|
3509
3508
|
const [p, C] = P(n), [k, y] = P(!1);
|
|
3510
3509
|
D(() => {
|
|
@@ -3521,7 +3520,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3521
3520
|
const S = Y(null), N = r !== void 0, _ = N && p !== null;
|
|
3522
3521
|
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
3522
|
/* @__PURE__ */ s.jsxs(Xn, { currentSelection: p, selectedItemNavigateTo: r, children: [
|
|
3524
|
-
f && (p == null ? void 0 : p.name) && /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "
|
|
3523
|
+
f && (p == null ? void 0 : p.name) && /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: p.name }),
|
|
3525
3524
|
/* @__PURE__ */ s.jsxs(ee.Select, { ref: S, size: h, value: (p == null ? void 0 : p.id) ?? "", onChange: (W) => C({
|
|
3526
3525
|
id: c ? Number(W.target.value) ?? null : W.target.value,
|
|
3527
3526
|
name: ""
|
|
@@ -3546,7 +3545,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3546
3545
|
] }),
|
|
3547
3546
|
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
3547
|
] }) });
|
|
3549
|
-
},
|
|
3548
|
+
}, Fc = ({ InputContainer: t = we, formField: e, label: n, resetsFields: r, type: o, required: a, hidden: i, disabled: c, withoutLabel: l, className: u }) => {
|
|
3550
3549
|
const { register: d, formState: h, setValue: m } = de(), [g, b] = P(void 0), [w, f] = P(!1);
|
|
3551
3550
|
D(() => {
|
|
3552
3551
|
const v = e.split(".");
|
|
@@ -3566,7 +3565,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3566
3565
|
}), isInvalid: j, hidden: i, disabled: c, className: "w-100" }),
|
|
3567
3566
|
g && /* @__PURE__ */ s.jsx(xe, { message: g.message })
|
|
3568
3567
|
] });
|
|
3569
|
-
},
|
|
3568
|
+
}, Wc = ({ InputContainer: t = we, label: e, formField: n, options: r, resetsFields: o, required: a, disabled: i, hidden: c, className: l }) => {
|
|
3570
3569
|
const { register: u, formState: d, setValue: h, watch: m } = de(), [g, b] = P(void 0), [w, f] = P(!1), j = z(() => r, [r]);
|
|
3571
3570
|
D(() => {
|
|
3572
3571
|
const p = n.split(".");
|
|
@@ -3586,7 +3585,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3586
3585
|
}), isInvalid: v, hidden: c, disabled: i, className: "w-100" }, p.id)),
|
|
3587
3586
|
g && /* @__PURE__ */ s.jsx(xe, { message: g.message })
|
|
3588
3587
|
] });
|
|
3589
|
-
},
|
|
3588
|
+
}, Rc = ({ 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
3589
|
const { register: b, formState: w, setValue: f, watch: j } = de(), [v, p] = P(void 0), [C, k] = P(!1), y = O(() => {
|
|
3591
3590
|
const S = i ?? null;
|
|
3592
3591
|
f(e, (S == null ? void 0 : S.toString()) ?? "", { shouldDirty: !0, shouldValidate: C });
|
|
@@ -3612,7 +3611,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3612
3611
|
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
3612
|
v && /* @__PURE__ */ s.jsx(xe, { message: v.message })
|
|
3614
3613
|
] });
|
|
3615
|
-
},
|
|
3614
|
+
}, qc = ({ 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
3615
|
const { register: j, formState: v, setValue: p, watch: C } = de(), [k, y] = P(void 0), [$, M] = P(!1), S = O(() => {
|
|
3617
3616
|
const R = l ?? null;
|
|
3618
3617
|
e === "number" ? p(n, R !== null ? Number(R) : null, {
|
|
@@ -3648,7 +3647,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3648
3647
|
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
3648
|
k && /* @__PURE__ */ s.jsx(xe, { message: k.message })
|
|
3650
3649
|
] });
|
|
3651
|
-
},
|
|
3650
|
+
}, Lc = ({ 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
3651
|
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
3652
|
const G = e.split(".");
|
|
3654
3653
|
let ce = k.errors;
|
|
@@ -3683,7 +3682,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3683
3682
|
const E = Y(null), K = S !== void 0, Me = m !== void 0, Jn = Me && B !== null;
|
|
3684
3683
|
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
3684
|
/* @__PURE__ */ s.jsxs(Xn, { currentSelection: B, selectedItemNavigateTo: m, children: [
|
|
3686
|
-
p && (B == null ? void 0 : B.name) && /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "
|
|
3685
|
+
p && (B == null ? void 0 : B.name) && /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: B.name }),
|
|
3687
3686
|
/* @__PURE__ */ s.jsx(Zt, { control: M, name: e, render: () => /* @__PURE__ */ s.jsx(ee.Select, { size: r, onMouseDown: (G) => {
|
|
3688
3687
|
G.currentTarget.focus(), G.preventDefault();
|
|
3689
3688
|
}, onClick: () => {
|
|
@@ -3703,7 +3702,7 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3703
3702
|
S && /* @__PURE__ */ s.jsx(xe, { message: S.message }),
|
|
3704
3703
|
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
3704
|
] }) });
|
|
3706
|
-
},
|
|
3705
|
+
}, Yc = ({ 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
3706
|
const { watch: g, setValue: b, register: w, formState: f } = de(), [j, v] = P(!1), [p, C] = P(void 0), k = O(() => {
|
|
3708
3707
|
b(n, "");
|
|
3709
3708
|
}, [b, n]), y = O(() => {
|
|
@@ -3726,12 +3725,12 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3726
3725
|
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
3726
|
p && /* @__PURE__ */ s.jsx(xe, { message: p.message })
|
|
3728
3727
|
] });
|
|
3729
|
-
},
|
|
3728
|
+
}, Hc = ({ children: t, onStorno: e }) => {
|
|
3730
3729
|
const { formState: n } = de(), [r, o] = P(!1);
|
|
3731
3730
|
return D(() => {
|
|
3732
3731
|
o(Object.keys(n.dirtyFields).length > 0);
|
|
3733
|
-
}, [n]), r ? /* @__PURE__ */ s.jsx(
|
|
3734
|
-
},
|
|
3732
|
+
}, [n]), r ? /* @__PURE__ */ s.jsx(Sa, { onStorno: e, children: t }) : null;
|
|
3733
|
+
}, Gc = ({ 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
3734
|
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
3735
|
const I = n.split(".");
|
|
3737
3736
|
let E = w.errors;
|
|
@@ -3783,72 +3782,72 @@ const xi = "_item_1dy8x_1", zn = {
|
|
|
3783
3782
|
p && /* @__PURE__ */ s.jsx(xe, { message: p.message }),
|
|
3784
3783
|
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
3784
|
] }) });
|
|
3786
|
-
},
|
|
3785
|
+
}, Bc = ({ 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, {}) }), lc = "_tab-panel_qgi9v_1", uc = "_full-height-no-overflow_qgi9v_5", dc = "_disabled_qgi9v_10", nt = {
|
|
3787
3786
|
"tab-panel": "_tab-panel_qgi9v_1",
|
|
3788
|
-
tabPanel:
|
|
3787
|
+
tabPanel: lc,
|
|
3789
3788
|
"full-height-no-overflow": "_full-height-no-overflow_qgi9v_5",
|
|
3790
|
-
fullHeightNoOverflow:
|
|
3791
|
-
disabled:
|
|
3792
|
-
},
|
|
3789
|
+
fullHeightNoOverflow: uc,
|
|
3790
|
+
disabled: dc
|
|
3791
|
+
}, Vc = ({ 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 }), Uc = ({ activeTab: t, onSelect: e, children: n }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-tabs d-flex gap-1 mb-2"), children: n.map((r) => {
|
|
3793
3792
|
const o = r.type, a = r.props.eventKey, i = r.props.children, c = r.props.className, l = r.props.onClick;
|
|
3794
3793
|
return /* @__PURE__ */ Ar(o, { ...r.props, key: r.props.eventKey, className: x({ active: t === a }, c), onClick: () => {
|
|
3795
3794
|
e(a), l && l(a);
|
|
3796
3795
|
} }, i);
|
|
3797
|
-
}) }),
|
|
3798
|
-
tab:
|
|
3799
|
-
disabled:
|
|
3800
|
-
},
|
|
3796
|
+
}) }), hc = "_tab_1hdhk_1", mc = "_disabled_1hdhk_8", Gt = {
|
|
3797
|
+
tab: hc,
|
|
3798
|
+
disabled: mc
|
|
3799
|
+
}, Kc = ({ 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
3800
|
disabled: r
|
|
3802
3801
|
}, { [Gt.disabled]: r }), onClick: () => n && !r && n(t), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(Q, { variant: "h6", className: "text-primary", children: o }) : o });
|
|
3803
3802
|
export {
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3803
|
+
vc as ApiFileDownloadButton,
|
|
3804
|
+
Ic as AppSearch,
|
|
3805
|
+
Ec as AuthTemplate,
|
|
3807
3806
|
Pr as AvatarIcon,
|
|
3808
3807
|
Qn as Backdrop,
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3808
|
+
kc as Badge,
|
|
3809
|
+
Sc as Card,
|
|
3810
|
+
Mc as CheckInput,
|
|
3811
|
+
Cc as Collapse,
|
|
3812
|
+
Ea as ContextButton,
|
|
3813
|
+
Ni as Dropdown,
|
|
3814
|
+
$c as DropdownDivider,
|
|
3815
|
+
vi as DropdownItem,
|
|
3816
|
+
Ac as DropdownPicker,
|
|
3817
|
+
bi as DropdownToggle,
|
|
3819
3818
|
Un as FileUploadContextButton,
|
|
3820
|
-
|
|
3821
|
-
|
|
3819
|
+
Nc as FileUploadDropdownItem,
|
|
3820
|
+
Sa as FloatingFormSubmit,
|
|
3822
3821
|
Ge as FloatingLabelInput,
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3822
|
+
jc as HomeDashboard,
|
|
3823
|
+
Fc as HookFormCheckInput,
|
|
3824
|
+
Lc as HookFormDropdownPicker,
|
|
3825
|
+
Yc as HookFormFileInput,
|
|
3826
|
+
Hc as HookFormFloatingSubmit,
|
|
3827
|
+
Wc as HookFormRadioInput,
|
|
3828
|
+
Gc as HookFormSelectInput,
|
|
3829
|
+
Rc as HookFormTextAreaInput,
|
|
3830
|
+
qc as HookFormTextInput,
|
|
3831
|
+
Oc as HtmlTooltip,
|
|
3833
3832
|
J as IconButton,
|
|
3834
3833
|
xe as InvalidFeedback,
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3834
|
+
Wr as Loading,
|
|
3835
|
+
bc as MonthPicker,
|
|
3836
|
+
Xc as NoInputContainer,
|
|
3837
|
+
Tc as PhotoLibrary,
|
|
3838
|
+
cc as PhotoLightbox,
|
|
3840
3839
|
At as PrimaryButton,
|
|
3841
3840
|
we as RowLabelInput,
|
|
3842
|
-
|
|
3841
|
+
Pc as SelectInput,
|
|
3843
3842
|
xt as SimplePicker,
|
|
3844
3843
|
$r as SimpleToggle,
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3844
|
+
el as SimpleTooltip,
|
|
3845
|
+
Kc as Tab,
|
|
3846
|
+
Vc as TabPanel,
|
|
3847
|
+
Uc as Tabs,
|
|
3848
|
+
Dc as TextInput,
|
|
3850
3849
|
Q as Typography,
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3850
|
+
Jc as UserAvatarToggle,
|
|
3851
|
+
Bc as UserAvatarValueFormat,
|
|
3852
|
+
_c as YearPicker
|
|
3854
3853
|
};
|