react-luminus-components 1.2.68 → 1.2.70
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 +40 -40
- package/dist/EventType-C7yHDXD-.cjs +1 -0
- package/dist/{EventType-CL7YvlYX.js → EventType-CnIS_MxK.js} +4 -2
- package/dist/{NoInputContainer-2Ycv-Em1.js → NoInputContainer-BnAPYzCz.js} +77 -77
- package/dist/{NoInputContainer-KFDzvABU.cjs → NoInputContainer-CAwCEVT5.cjs} +1 -1
- package/dist/{SimpleTooltip-Hit64Fk2.cjs → SimpleTooltip-DsGhy1Oy.cjs} +1 -1
- package/dist/SimpleTooltip-ty5BQkX3.js +5 -0
- package/dist/components/common/Alert/Alert.d.ts +7 -0
- package/dist/components/common/VersionInfo/VersionInfo.d.ts +6 -0
- package/dist/components/common/index.d.ts +2 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +9 -9
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +25 -25
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +17 -17
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.es.js +1025 -946
- package/dist/{useConfirm-B8EHGeWd.cjs → useConfirm-D_-tO0nr.cjs} +1 -1
- package/dist/{useConfirm-DHU1tOje.js → useConfirm-Td63xw5L.js} +5 -5
- package/dist/{usePermissions-DF5Kb4X6.cjs → usePermissions-Cv-1FsfG.cjs} +1 -1
- package/dist/{usePermissions-DtwWvIV0.js → usePermissions-Dn_gKjni.js} +1 -1
- package/package.json +1 -1
- package/dist/EventType-CPDIBxba.cjs +0 -1
- package/dist/SimpleTooltip-DbIaK2su.js +0 -5
package/dist/main.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as s, t as re, c as ae, g as
|
|
2
|
-
import {
|
|
1
|
+
import { j as s, t as re, c as ae, g as sr, T as ar, a as ir, b as x, s as vt, E as cr, d as lr, e as ur, f as dr, h as hr, u as V, i as ue, k as Ut, F as bt, l as mr, m as fr, n as pr, o as gr, p as wr, q as xr, r as yr, v as vr, w as at, x as it, y as br, z as _r, P as be, A as de, B as jr, C as kr, D as ct, S as _t, G as De, H as Pe, I as lt, J as Cr, K as zt, L as $e, M as Re, O as jt, N as Nr, Q as ie, R as $r, U as Ir, V as Kt, W as ut, X as dt, Y as Q, Z as Sr, _ as Qt, $ as Tr, a0 as Xt, a1 as Er, a2 as Or, a3 as Mr, a4 as Dr, a5 as Jt, a6 as je, a7 as Pr, a8 as Ar, a9 as Fr, aa as Wr, ab as Rr, ac as Xe, ad as Be, ae as Zt, af as we, ag as Lr } from "./NoInputContainer-BnAPYzCz.js";
|
|
2
|
+
import { ai as il, ah as cl } from "./NoInputContainer-BnAPYzCz.js";
|
|
3
3
|
import * as A from "react";
|
|
4
|
-
import Z, { useCallback as O, useMemo as
|
|
5
|
-
import { d as
|
|
6
|
-
import { useFormContext as
|
|
7
|
-
import { m as
|
|
8
|
-
import { u as
|
|
9
|
-
import { S as
|
|
10
|
-
const
|
|
4
|
+
import Z, { useCallback as O, useMemo as K, useEffect as D, useRef as Y, useState as P, useReducer as en, useContext as L, createElement as qr } from "react";
|
|
5
|
+
import { d as Yr, C as Hr, a as tn, u as Br, q as kt, E as Ae, M as Fe, L as Gr } from "./EventType-CnIS_MxK.js";
|
|
6
|
+
import { useFormContext as he, Controller as nn } from "react-hook-form";
|
|
7
|
+
import { m as Vr, a as rn } from "./textUtils-BbxuIsKq.js";
|
|
8
|
+
import { u as on, a as sn, b as an } from "./useFormControlType-BAFqxupC.js";
|
|
9
|
+
import { S as ul } from "./SimpleTooltip-ty5BQkX3.js";
|
|
10
|
+
const Ic = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
11
11
|
const r = O(async () => {
|
|
12
12
|
var l;
|
|
13
13
|
const o = await t();
|
|
@@ -18,7 +18,7 @@ const vc = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
|
18
18
|
}, [t, e]);
|
|
19
19
|
return /* @__PURE__ */ s.jsx("div", { role: "button", onClick: r, children: n });
|
|
20
20
|
};
|
|
21
|
-
function
|
|
21
|
+
function cn(t, e) {
|
|
22
22
|
const n = re(t);
|
|
23
23
|
if (isNaN(e))
|
|
24
24
|
return ae(t, NaN);
|
|
@@ -33,31 +33,31 @@ function on(t, e) {
|
|
|
33
33
|
r
|
|
34
34
|
), n);
|
|
35
35
|
}
|
|
36
|
-
let
|
|
37
|
-
function
|
|
38
|
-
return
|
|
36
|
+
let Ur = {};
|
|
37
|
+
function Ge() {
|
|
38
|
+
return Ur;
|
|
39
39
|
}
|
|
40
40
|
function Se(t, e) {
|
|
41
41
|
var l, c, u, d;
|
|
42
|
-
const n =
|
|
42
|
+
const n = Ge(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.weekStartsOn) ?? n.weekStartsOn ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = re(t), a = o.getDay(), i = (a < r ? 7 : 0) + a - r;
|
|
43
43
|
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Le(t) {
|
|
46
46
|
return Se(t, { weekStartsOn: 1 });
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function ln(t) {
|
|
49
49
|
const e = re(t), n = e.getFullYear(), r = ae(t, 0);
|
|
50
50
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
51
|
-
const o =
|
|
51
|
+
const o = Le(r), a = ae(t, 0);
|
|
52
52
|
a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0);
|
|
53
|
-
const i =
|
|
53
|
+
const i = Le(a);
|
|
54
54
|
return e.getTime() >= o.getTime() ? n + 1 : e.getTime() >= i.getTime() ? n : n - 1;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Ct(t) {
|
|
57
57
|
const e = re(t);
|
|
58
58
|
return e.setHours(0, 0, 0, 0), e;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Nt(t) {
|
|
61
61
|
const e = re(t), n = new Date(
|
|
62
62
|
Date.UTC(
|
|
63
63
|
e.getFullYear(),
|
|
@@ -71,31 +71,31 @@ function kt(t) {
|
|
|
71
71
|
);
|
|
72
72
|
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
const n =
|
|
76
|
-
return Math.round((o - a) /
|
|
74
|
+
function zr(t, e) {
|
|
75
|
+
const n = Ct(t), r = Ct(e), o = +n - Nt(n), a = +r - Nt(r);
|
|
76
|
+
return Math.round((o - a) / Vr);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
const e =
|
|
80
|
-
return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0),
|
|
78
|
+
function Kr(t) {
|
|
79
|
+
const e = ln(t), n = ae(t, 0);
|
|
80
|
+
return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), Le(n);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function Qr(t, e) {
|
|
83
|
+
return cn(t, e * 12);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Xr(t) {
|
|
86
86
|
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
if (!
|
|
88
|
+
function Jr(t) {
|
|
89
|
+
if (!Xr(t) && typeof t != "number")
|
|
90
90
|
return !1;
|
|
91
91
|
const e = re(t);
|
|
92
92
|
return !isNaN(Number(e));
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Zr(t) {
|
|
95
95
|
const e = re(t), n = ae(t, 0);
|
|
96
96
|
return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
97
97
|
}
|
|
98
|
-
const
|
|
98
|
+
const eo = {
|
|
99
99
|
lessThanXSeconds: {
|
|
100
100
|
one: "less than a second",
|
|
101
101
|
other: "less than {{count}} seconds"
|
|
@@ -157,9 +157,9 @@ const Ur = {
|
|
|
157
157
|
one: "almost 1 year",
|
|
158
158
|
other: "almost {{count}} years"
|
|
159
159
|
}
|
|
160
|
-
},
|
|
160
|
+
}, to = (t, e, n) => {
|
|
161
161
|
let r;
|
|
162
|
-
const o =
|
|
162
|
+
const o = eo[t];
|
|
163
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;
|
|
164
164
|
};
|
|
165
165
|
function Je(t) {
|
|
@@ -168,42 +168,42 @@ function Je(t) {
|
|
|
168
168
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
const
|
|
171
|
+
const no = {
|
|
172
172
|
full: "EEEE, MMMM do, y",
|
|
173
173
|
long: "MMMM do, y",
|
|
174
174
|
medium: "MMM d, y",
|
|
175
175
|
short: "MM/dd/yyyy"
|
|
176
|
-
},
|
|
176
|
+
}, ro = {
|
|
177
177
|
full: "h:mm:ss a zzzz",
|
|
178
178
|
long: "h:mm:ss a z",
|
|
179
179
|
medium: "h:mm:ss a",
|
|
180
180
|
short: "h:mm a"
|
|
181
|
-
},
|
|
181
|
+
}, oo = {
|
|
182
182
|
full: "{{date}} 'at' {{time}}",
|
|
183
183
|
long: "{{date}} 'at' {{time}}",
|
|
184
184
|
medium: "{{date}}, {{time}}",
|
|
185
185
|
short: "{{date}}, {{time}}"
|
|
186
|
-
},
|
|
186
|
+
}, so = {
|
|
187
187
|
date: Je({
|
|
188
|
-
formats:
|
|
188
|
+
formats: no,
|
|
189
189
|
defaultWidth: "full"
|
|
190
190
|
}),
|
|
191
191
|
time: Je({
|
|
192
|
-
formats:
|
|
192
|
+
formats: ro,
|
|
193
193
|
defaultWidth: "full"
|
|
194
194
|
}),
|
|
195
195
|
dateTime: Je({
|
|
196
|
-
formats:
|
|
196
|
+
formats: oo,
|
|
197
197
|
defaultWidth: "full"
|
|
198
198
|
})
|
|
199
|
-
},
|
|
199
|
+
}, ao = {
|
|
200
200
|
lastWeek: "'last' eeee 'at' p",
|
|
201
201
|
yesterday: "'yesterday at' p",
|
|
202
202
|
today: "'today at' p",
|
|
203
203
|
tomorrow: "'tomorrow at' p",
|
|
204
204
|
nextWeek: "eeee 'at' p",
|
|
205
205
|
other: "P"
|
|
206
|
-
},
|
|
206
|
+
}, io = (t, e, n, r) => ao[t];
|
|
207
207
|
function ke(t) {
|
|
208
208
|
return (e, n) => {
|
|
209
209
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
@@ -219,15 +219,15 @@ function ke(t) {
|
|
|
219
219
|
return o[a];
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
|
-
const
|
|
222
|
+
const co = {
|
|
223
223
|
narrow: ["B", "A"],
|
|
224
224
|
abbreviated: ["BC", "AD"],
|
|
225
225
|
wide: ["Before Christ", "Anno Domini"]
|
|
226
|
-
},
|
|
226
|
+
}, lo = {
|
|
227
227
|
narrow: ["1", "2", "3", "4"],
|
|
228
228
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
229
229
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
230
|
-
},
|
|
230
|
+
}, uo = {
|
|
231
231
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
232
232
|
abbreviated: [
|
|
233
233
|
"Jan",
|
|
@@ -257,7 +257,7 @@ const to = {
|
|
|
257
257
|
"November",
|
|
258
258
|
"December"
|
|
259
259
|
]
|
|
260
|
-
},
|
|
260
|
+
}, ho = {
|
|
261
261
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
262
262
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
263
263
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -270,7 +270,7 @@ const to = {
|
|
|
270
270
|
"Friday",
|
|
271
271
|
"Saturday"
|
|
272
272
|
]
|
|
273
|
-
},
|
|
273
|
+
}, mo = {
|
|
274
274
|
narrow: {
|
|
275
275
|
am: "a",
|
|
276
276
|
pm: "p",
|
|
@@ -301,7 +301,7 @@ const to = {
|
|
|
301
301
|
evening: "evening",
|
|
302
302
|
night: "night"
|
|
303
303
|
}
|
|
304
|
-
},
|
|
304
|
+
}, fo = {
|
|
305
305
|
narrow: {
|
|
306
306
|
am: "a",
|
|
307
307
|
pm: "p",
|
|
@@ -332,7 +332,7 @@ const to = {
|
|
|
332
332
|
evening: "in the evening",
|
|
333
333
|
night: "at night"
|
|
334
334
|
}
|
|
335
|
-
},
|
|
335
|
+
}, po = (t, e) => {
|
|
336
336
|
const n = Number(t), r = n % 100;
|
|
337
337
|
if (r > 20 || r < 10)
|
|
338
338
|
switch (r % 10) {
|
|
@@ -344,29 +344,29 @@ const to = {
|
|
|
344
344
|
return n + "rd";
|
|
345
345
|
}
|
|
346
346
|
return n + "th";
|
|
347
|
-
},
|
|
348
|
-
ordinalNumber:
|
|
347
|
+
}, go = {
|
|
348
|
+
ordinalNumber: po,
|
|
349
349
|
era: ke({
|
|
350
|
-
values:
|
|
350
|
+
values: co,
|
|
351
351
|
defaultWidth: "wide"
|
|
352
352
|
}),
|
|
353
353
|
quarter: ke({
|
|
354
|
-
values:
|
|
354
|
+
values: lo,
|
|
355
355
|
defaultWidth: "wide",
|
|
356
356
|
argumentCallback: (t) => t - 1
|
|
357
357
|
}),
|
|
358
358
|
month: ke({
|
|
359
|
-
values:
|
|
359
|
+
values: uo,
|
|
360
360
|
defaultWidth: "wide"
|
|
361
361
|
}),
|
|
362
362
|
day: ke({
|
|
363
|
-
values:
|
|
363
|
+
values: ho,
|
|
364
364
|
defaultWidth: "wide"
|
|
365
365
|
}),
|
|
366
366
|
dayPeriod: ke({
|
|
367
|
-
values:
|
|
367
|
+
values: mo,
|
|
368
368
|
defaultWidth: "wide",
|
|
369
|
-
formattingValues:
|
|
369
|
+
formattingValues: fo,
|
|
370
370
|
defaultFormattingWidth: "wide"
|
|
371
371
|
})
|
|
372
372
|
};
|
|
@@ -375,9 +375,9 @@ function Ce(t) {
|
|
|
375
375
|
const r = n.width, o = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], a = e.match(o);
|
|
376
376
|
if (!a)
|
|
377
377
|
return null;
|
|
378
|
-
const i = a[0], l = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(l) ?
|
|
378
|
+
const i = a[0], l = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(l) ? xo(l, (h) => h.test(i)) : (
|
|
379
379
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
380
|
-
|
|
380
|
+
wo(l, (h) => h.test(i))
|
|
381
381
|
);
|
|
382
382
|
let u;
|
|
383
383
|
u = t.valueCallback ? t.valueCallback(c) : c, u = n.valueCallback ? (
|
|
@@ -388,17 +388,17 @@ function Ce(t) {
|
|
|
388
388
|
return { value: u, rest: d };
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function wo(t, e) {
|
|
392
392
|
for (const n in t)
|
|
393
393
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
394
394
|
return n;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function xo(t, e) {
|
|
397
397
|
for (let n = 0; n < t.length; n++)
|
|
398
398
|
if (e(t[n]))
|
|
399
399
|
return n;
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function yo(t) {
|
|
402
402
|
return (e, n = {}) => {
|
|
403
403
|
const r = e.match(t.matchPattern);
|
|
404
404
|
if (!r)
|
|
@@ -412,23 +412,23 @@ function ho(t) {
|
|
|
412
412
|
return { value: i, rest: l };
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
|
-
const
|
|
415
|
+
const vo = /^(\d+)(th|st|nd|rd)?/i, bo = /\d+/i, _o = {
|
|
416
416
|
narrow: /^(b|a)/i,
|
|
417
417
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
418
418
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
419
|
-
},
|
|
419
|
+
}, jo = {
|
|
420
420
|
any: [/^b/i, /^(a|c)/i]
|
|
421
|
-
},
|
|
421
|
+
}, ko = {
|
|
422
422
|
narrow: /^[1234]/i,
|
|
423
423
|
abbreviated: /^q[1234]/i,
|
|
424
424
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
425
|
-
},
|
|
425
|
+
}, Co = {
|
|
426
426
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
427
|
-
},
|
|
427
|
+
}, No = {
|
|
428
428
|
narrow: /^[jfmasond]/i,
|
|
429
429
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
430
430
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
431
|
-
},
|
|
431
|
+
}, $o = {
|
|
432
432
|
narrow: [
|
|
433
433
|
/^j/i,
|
|
434
434
|
/^f/i,
|
|
@@ -457,18 +457,18 @@ const mo = /^(\d+)(th|st|nd|rd)?/i, fo = /\d+/i, po = {
|
|
|
457
457
|
/^n/i,
|
|
458
458
|
/^d/i
|
|
459
459
|
]
|
|
460
|
-
},
|
|
460
|
+
}, Io = {
|
|
461
461
|
narrow: /^[smtwf]/i,
|
|
462
462
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
463
463
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
464
464
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
465
|
-
},
|
|
465
|
+
}, So = {
|
|
466
466
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
467
467
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
468
|
-
},
|
|
468
|
+
}, To = {
|
|
469
469
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
470
470
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
471
|
-
},
|
|
471
|
+
}, Eo = {
|
|
472
472
|
any: {
|
|
473
473
|
am: /^a/i,
|
|
474
474
|
pm: /^p/i,
|
|
@@ -479,82 +479,82 @@ const mo = /^(\d+)(th|st|nd|rd)?/i, fo = /\d+/i, po = {
|
|
|
479
479
|
evening: /evening/i,
|
|
480
480
|
night: /night/i
|
|
481
481
|
}
|
|
482
|
-
},
|
|
483
|
-
ordinalNumber:
|
|
484
|
-
matchPattern:
|
|
485
|
-
parsePattern:
|
|
482
|
+
}, Oo = {
|
|
483
|
+
ordinalNumber: yo({
|
|
484
|
+
matchPattern: vo,
|
|
485
|
+
parsePattern: bo,
|
|
486
486
|
valueCallback: (t) => parseInt(t, 10)
|
|
487
487
|
}),
|
|
488
488
|
era: Ce({
|
|
489
|
-
matchPatterns:
|
|
489
|
+
matchPatterns: _o,
|
|
490
490
|
defaultMatchWidth: "wide",
|
|
491
|
-
parsePatterns:
|
|
491
|
+
parsePatterns: jo,
|
|
492
492
|
defaultParseWidth: "any"
|
|
493
493
|
}),
|
|
494
494
|
quarter: Ce({
|
|
495
|
-
matchPatterns:
|
|
495
|
+
matchPatterns: ko,
|
|
496
496
|
defaultMatchWidth: "wide",
|
|
497
|
-
parsePatterns:
|
|
497
|
+
parsePatterns: Co,
|
|
498
498
|
defaultParseWidth: "any",
|
|
499
499
|
valueCallback: (t) => t + 1
|
|
500
500
|
}),
|
|
501
501
|
month: Ce({
|
|
502
|
-
matchPatterns:
|
|
502
|
+
matchPatterns: No,
|
|
503
503
|
defaultMatchWidth: "wide",
|
|
504
|
-
parsePatterns:
|
|
504
|
+
parsePatterns: $o,
|
|
505
505
|
defaultParseWidth: "any"
|
|
506
506
|
}),
|
|
507
507
|
day: Ce({
|
|
508
|
-
matchPatterns:
|
|
508
|
+
matchPatterns: Io,
|
|
509
509
|
defaultMatchWidth: "wide",
|
|
510
|
-
parsePatterns:
|
|
510
|
+
parsePatterns: So,
|
|
511
511
|
defaultParseWidth: "any"
|
|
512
512
|
}),
|
|
513
513
|
dayPeriod: Ce({
|
|
514
|
-
matchPatterns:
|
|
514
|
+
matchPatterns: To,
|
|
515
515
|
defaultMatchWidth: "any",
|
|
516
|
-
parsePatterns:
|
|
516
|
+
parsePatterns: Eo,
|
|
517
517
|
defaultParseWidth: "any"
|
|
518
518
|
})
|
|
519
|
-
},
|
|
519
|
+
}, Mo = {
|
|
520
520
|
code: "en-US",
|
|
521
|
-
formatDistance:
|
|
522
|
-
formatLong:
|
|
523
|
-
formatRelative:
|
|
524
|
-
localize:
|
|
525
|
-
match:
|
|
521
|
+
formatDistance: to,
|
|
522
|
+
formatLong: so,
|
|
523
|
+
formatRelative: io,
|
|
524
|
+
localize: go,
|
|
525
|
+
match: Oo,
|
|
526
526
|
options: {
|
|
527
527
|
weekStartsOn: 0,
|
|
528
528
|
firstWeekContainsDate: 1
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
|
-
function
|
|
531
|
+
function Do(t) {
|
|
532
532
|
const e = re(t);
|
|
533
|
-
return
|
|
533
|
+
return zr(e, Zr(e)) + 1;
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
const e = re(t), n = +
|
|
537
|
-
return Math.round(n /
|
|
535
|
+
function Po(t) {
|
|
536
|
+
const e = re(t), n = +Le(e) - +Kr(e);
|
|
537
|
+
return Math.round(n / rn) + 1;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
var d, h, m,
|
|
541
|
-
const n = re(t), r = n.getFullYear(), o =
|
|
539
|
+
function un(t, e) {
|
|
540
|
+
var d, h, m, p;
|
|
541
|
+
const n = re(t), r = n.getFullYear(), o = Ge(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((p = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, i = ae(t, 0);
|
|
542
542
|
i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
543
543
|
const l = Se(i, e), c = ae(t, 0);
|
|
544
544
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
545
545
|
const u = Se(c, e);
|
|
546
546
|
return n.getTime() >= l.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Ao(t, e) {
|
|
549
549
|
var l, c, u, d;
|
|
550
|
-
const n =
|
|
550
|
+
const n = Ge(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = un(t, e), a = ae(t, 0);
|
|
551
551
|
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), Se(a, e);
|
|
552
552
|
}
|
|
553
|
-
function
|
|
554
|
-
const n = re(t), r = +Se(n, e) - +
|
|
555
|
-
return Math.round(r /
|
|
553
|
+
function Fo(t, e) {
|
|
554
|
+
const n = re(t), r = +Se(n, e) - +Ao(n, e);
|
|
555
|
+
return Math.round(r / rn) + 1;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function q(t, e) {
|
|
558
558
|
const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
|
|
559
559
|
return n + r;
|
|
560
560
|
}
|
|
@@ -562,16 +562,16 @@ const le = {
|
|
|
562
562
|
// Year
|
|
563
563
|
y(t, e) {
|
|
564
564
|
const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
565
|
-
return
|
|
565
|
+
return q(e === "yy" ? r % 100 : r, e.length);
|
|
566
566
|
},
|
|
567
567
|
// Month
|
|
568
568
|
M(t, e) {
|
|
569
569
|
const n = t.getMonth();
|
|
570
|
-
return e === "M" ? String(n + 1) :
|
|
570
|
+
return e === "M" ? String(n + 1) : q(n + 1, 2);
|
|
571
571
|
},
|
|
572
572
|
// Day of the month
|
|
573
573
|
d(t, e) {
|
|
574
|
-
return
|
|
574
|
+
return q(t.getDate(), e.length);
|
|
575
575
|
},
|
|
576
576
|
// AM or PM
|
|
577
577
|
a(t, e) {
|
|
@@ -591,26 +591,26 @@ const le = {
|
|
|
591
591
|
},
|
|
592
592
|
// Hour [1-12]
|
|
593
593
|
h(t, e) {
|
|
594
|
-
return
|
|
594
|
+
return q(t.getHours() % 12 || 12, e.length);
|
|
595
595
|
},
|
|
596
596
|
// Hour [0-23]
|
|
597
597
|
H(t, e) {
|
|
598
|
-
return
|
|
598
|
+
return q(t.getHours(), e.length);
|
|
599
599
|
},
|
|
600
600
|
// Minute
|
|
601
601
|
m(t, e) {
|
|
602
|
-
return
|
|
602
|
+
return q(t.getMinutes(), e.length);
|
|
603
603
|
},
|
|
604
604
|
// Second
|
|
605
605
|
s(t, e) {
|
|
606
|
-
return
|
|
606
|
+
return q(t.getSeconds(), e.length);
|
|
607
607
|
},
|
|
608
608
|
// Fraction of second
|
|
609
609
|
S(t, e) {
|
|
610
610
|
const n = e.length, r = t.getMilliseconds(), o = Math.trunc(
|
|
611
611
|
r * Math.pow(10, n - 3)
|
|
612
612
|
);
|
|
613
|
-
return
|
|
613
|
+
return q(o, e.length);
|
|
614
614
|
}
|
|
615
615
|
}, ye = {
|
|
616
616
|
am: "am",
|
|
@@ -621,7 +621,7 @@ const le = {
|
|
|
621
621
|
afternoon: "afternoon",
|
|
622
622
|
evening: "evening",
|
|
623
623
|
night: "night"
|
|
624
|
-
},
|
|
624
|
+
}, $t = {
|
|
625
625
|
// Era
|
|
626
626
|
G: function(t, e, n) {
|
|
627
627
|
const r = t.getFullYear() > 0 ? 1 : 0;
|
|
@@ -647,17 +647,17 @@ const le = {
|
|
|
647
647
|
},
|
|
648
648
|
// Local week-numbering year
|
|
649
649
|
Y: function(t, e, n, r) {
|
|
650
|
-
const o =
|
|
650
|
+
const o = un(t, r), a = o > 0 ? o : 1 - o;
|
|
651
651
|
if (e === "YY") {
|
|
652
652
|
const i = a % 100;
|
|
653
|
-
return
|
|
653
|
+
return q(i, 2);
|
|
654
654
|
}
|
|
655
|
-
return e === "Yo" ? n.ordinalNumber(a, { unit: "year" }) :
|
|
655
|
+
return e === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : q(a, e.length);
|
|
656
656
|
},
|
|
657
657
|
// ISO week-numbering year
|
|
658
658
|
R: function(t, e) {
|
|
659
|
-
const n =
|
|
660
|
-
return
|
|
659
|
+
const n = ln(t);
|
|
660
|
+
return q(n, e.length);
|
|
661
661
|
},
|
|
662
662
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
663
663
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -670,7 +670,7 @@ const le = {
|
|
|
670
670
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
671
671
|
u: function(t, e) {
|
|
672
672
|
const n = t.getFullYear();
|
|
673
|
-
return
|
|
673
|
+
return q(n, e.length);
|
|
674
674
|
},
|
|
675
675
|
// Quarter
|
|
676
676
|
Q: function(t, e, n) {
|
|
@@ -679,7 +679,7 @@ const le = {
|
|
|
679
679
|
case "Q":
|
|
680
680
|
return String(r);
|
|
681
681
|
case "QQ":
|
|
682
|
-
return
|
|
682
|
+
return q(r, 2);
|
|
683
683
|
case "Qo":
|
|
684
684
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
685
685
|
case "QQQ":
|
|
@@ -707,7 +707,7 @@ const le = {
|
|
|
707
707
|
case "q":
|
|
708
708
|
return String(r);
|
|
709
709
|
case "qq":
|
|
710
|
-
return
|
|
710
|
+
return q(r, 2);
|
|
711
711
|
case "qo":
|
|
712
712
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
713
713
|
case "qqq":
|
|
@@ -759,7 +759,7 @@ const le = {
|
|
|
759
759
|
case "L":
|
|
760
760
|
return String(r + 1);
|
|
761
761
|
case "LL":
|
|
762
|
-
return
|
|
762
|
+
return q(r + 1, 2);
|
|
763
763
|
case "Lo":
|
|
764
764
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
765
765
|
case "LLL":
|
|
@@ -779,13 +779,13 @@ const le = {
|
|
|
779
779
|
},
|
|
780
780
|
// Local week of year
|
|
781
781
|
w: function(t, e, n, r) {
|
|
782
|
-
const o =
|
|
783
|
-
return e === "wo" ? n.ordinalNumber(o, { unit: "week" }) :
|
|
782
|
+
const o = Fo(t, r);
|
|
783
|
+
return e === "wo" ? n.ordinalNumber(o, { unit: "week" }) : q(o, e.length);
|
|
784
784
|
},
|
|
785
785
|
// ISO week of year
|
|
786
786
|
I: function(t, e, n) {
|
|
787
|
-
const r =
|
|
788
|
-
return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
787
|
+
const r = Po(t);
|
|
788
|
+
return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : q(r, e.length);
|
|
789
789
|
},
|
|
790
790
|
// Day of the month
|
|
791
791
|
d: function(t, e, n) {
|
|
@@ -793,8 +793,8 @@ const le = {
|
|
|
793
793
|
},
|
|
794
794
|
// Day of year
|
|
795
795
|
D: function(t, e, n) {
|
|
796
|
-
const r =
|
|
797
|
-
return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
796
|
+
const r = Do(t);
|
|
797
|
+
return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : q(r, e.length);
|
|
798
798
|
},
|
|
799
799
|
// Day of week
|
|
800
800
|
E: function(t, e, n) {
|
|
@@ -832,7 +832,7 @@ const le = {
|
|
|
832
832
|
case "e":
|
|
833
833
|
return String(a);
|
|
834
834
|
case "ee":
|
|
835
|
-
return
|
|
835
|
+
return q(a, 2);
|
|
836
836
|
case "eo":
|
|
837
837
|
return n.ordinalNumber(a, { unit: "day" });
|
|
838
838
|
case "eee":
|
|
@@ -865,7 +865,7 @@ const le = {
|
|
|
865
865
|
case "c":
|
|
866
866
|
return String(a);
|
|
867
867
|
case "cc":
|
|
868
|
-
return
|
|
868
|
+
return q(a, e.length);
|
|
869
869
|
case "co":
|
|
870
870
|
return n.ordinalNumber(a, { unit: "day" });
|
|
871
871
|
case "ccc":
|
|
@@ -898,7 +898,7 @@ const le = {
|
|
|
898
898
|
case "i":
|
|
899
899
|
return String(o);
|
|
900
900
|
case "ii":
|
|
901
|
-
return
|
|
901
|
+
return q(o, e.length);
|
|
902
902
|
case "io":
|
|
903
903
|
return n.ordinalNumber(o, { unit: "day" });
|
|
904
904
|
case "iii":
|
|
@@ -1021,12 +1021,12 @@ const le = {
|
|
|
1021
1021
|
// Hour [0-11]
|
|
1022
1022
|
K: function(t, e, n) {
|
|
1023
1023
|
const r = t.getHours() % 12;
|
|
1024
|
-
return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1024
|
+
return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : q(r, e.length);
|
|
1025
1025
|
},
|
|
1026
1026
|
// Hour [1-24]
|
|
1027
1027
|
k: function(t, e, n) {
|
|
1028
1028
|
let r = t.getHours();
|
|
1029
|
-
return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1029
|
+
return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : q(r, e.length);
|
|
1030
1030
|
},
|
|
1031
1031
|
// Minute
|
|
1032
1032
|
m: function(t, e, n) {
|
|
@@ -1047,14 +1047,14 @@ const le = {
|
|
|
1047
1047
|
return "Z";
|
|
1048
1048
|
switch (e) {
|
|
1049
1049
|
case "X":
|
|
1050
|
-
return
|
|
1050
|
+
return St(r);
|
|
1051
1051
|
case "XXXX":
|
|
1052
1052
|
case "XX":
|
|
1053
|
-
return
|
|
1053
|
+
return ge(r);
|
|
1054
1054
|
case "XXXXX":
|
|
1055
1055
|
case "XXX":
|
|
1056
1056
|
default:
|
|
1057
|
-
return
|
|
1057
|
+
return ge(r, ":");
|
|
1058
1058
|
}
|
|
1059
1059
|
},
|
|
1060
1060
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1062,14 +1062,14 @@ const le = {
|
|
|
1062
1062
|
const r = t.getTimezoneOffset();
|
|
1063
1063
|
switch (e) {
|
|
1064
1064
|
case "x":
|
|
1065
|
-
return
|
|
1065
|
+
return St(r);
|
|
1066
1066
|
case "xxxx":
|
|
1067
1067
|
case "xx":
|
|
1068
|
-
return
|
|
1068
|
+
return ge(r);
|
|
1069
1069
|
case "xxxxx":
|
|
1070
1070
|
case "xxx":
|
|
1071
1071
|
default:
|
|
1072
|
-
return
|
|
1072
|
+
return ge(r, ":");
|
|
1073
1073
|
}
|
|
1074
1074
|
},
|
|
1075
1075
|
// Timezone (GMT)
|
|
@@ -1079,10 +1079,10 @@ const le = {
|
|
|
1079
1079
|
case "O":
|
|
1080
1080
|
case "OO":
|
|
1081
1081
|
case "OOO":
|
|
1082
|
-
return "GMT" +
|
|
1082
|
+
return "GMT" + It(r, ":");
|
|
1083
1083
|
case "OOOO":
|
|
1084
1084
|
default:
|
|
1085
|
-
return "GMT" +
|
|
1085
|
+
return "GMT" + ge(r, ":");
|
|
1086
1086
|
}
|
|
1087
1087
|
},
|
|
1088
1088
|
// Timezone (specific non-location)
|
|
@@ -1092,35 +1092,35 @@ const le = {
|
|
|
1092
1092
|
case "z":
|
|
1093
1093
|
case "zz":
|
|
1094
1094
|
case "zzz":
|
|
1095
|
-
return "GMT" +
|
|
1095
|
+
return "GMT" + It(r, ":");
|
|
1096
1096
|
case "zzzz":
|
|
1097
1097
|
default:
|
|
1098
|
-
return "GMT" +
|
|
1098
|
+
return "GMT" + ge(r, ":");
|
|
1099
1099
|
}
|
|
1100
1100
|
},
|
|
1101
1101
|
// Seconds timestamp
|
|
1102
1102
|
t: function(t, e, n) {
|
|
1103
1103
|
const r = Math.trunc(t.getTime() / 1e3);
|
|
1104
|
-
return
|
|
1104
|
+
return q(r, e.length);
|
|
1105
1105
|
},
|
|
1106
1106
|
// Milliseconds timestamp
|
|
1107
1107
|
T: function(t, e, n) {
|
|
1108
1108
|
const r = t.getTime();
|
|
1109
|
-
return
|
|
1109
|
+
return q(r, e.length);
|
|
1110
1110
|
}
|
|
1111
1111
|
};
|
|
1112
|
-
function
|
|
1112
|
+
function It(t, e = "") {
|
|
1113
1113
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), o = Math.trunc(r / 60), a = r % 60;
|
|
1114
|
-
return a === 0 ? n + String(o) : n + String(o) + e +
|
|
1114
|
+
return a === 0 ? n + String(o) : n + String(o) + e + q(a, 2);
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
return t % 60 === 0 ? (t > 0 ? "-" : "+") +
|
|
1116
|
+
function St(t, e) {
|
|
1117
|
+
return t % 60 === 0 ? (t > 0 ? "-" : "+") + q(Math.abs(t) / 60, 2) : ge(t, e);
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1120
|
-
const n = t > 0 ? "-" : "+", r = Math.abs(t), o =
|
|
1119
|
+
function ge(t, e = "") {
|
|
1120
|
+
const n = t > 0 ? "-" : "+", r = Math.abs(t), o = q(Math.trunc(r / 60), 2), a = q(r % 60, 2);
|
|
1121
1121
|
return n + o + e + a;
|
|
1122
1122
|
}
|
|
1123
|
-
const
|
|
1123
|
+
const Tt = (t, e) => {
|
|
1124
1124
|
switch (t) {
|
|
1125
1125
|
case "P":
|
|
1126
1126
|
return e.date({ width: "short" });
|
|
@@ -1132,7 +1132,7 @@ const It = (t, e) => {
|
|
|
1132
1132
|
default:
|
|
1133
1133
|
return e.date({ width: "full" });
|
|
1134
1134
|
}
|
|
1135
|
-
},
|
|
1135
|
+
}, dn = (t, e) => {
|
|
1136
1136
|
switch (t) {
|
|
1137
1137
|
case "p":
|
|
1138
1138
|
return e.time({ width: "short" });
|
|
@@ -1144,10 +1144,10 @@ const It = (t, e) => {
|
|
|
1144
1144
|
default:
|
|
1145
1145
|
return e.time({ width: "full" });
|
|
1146
1146
|
}
|
|
1147
|
-
},
|
|
1147
|
+
}, Wo = (t, e) => {
|
|
1148
1148
|
const n = t.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
|
|
1149
1149
|
if (!o)
|
|
1150
|
-
return
|
|
1150
|
+
return Tt(t, e);
|
|
1151
1151
|
let a;
|
|
1152
1152
|
switch (r) {
|
|
1153
1153
|
case "P":
|
|
@@ -1164,50 +1164,50 @@ const It = (t, e) => {
|
|
|
1164
1164
|
a = e.dateTime({ width: "full" });
|
|
1165
1165
|
break;
|
|
1166
1166
|
}
|
|
1167
|
-
return a.replace("{{date}}",
|
|
1168
|
-
},
|
|
1169
|
-
p:
|
|
1170
|
-
P:
|
|
1171
|
-
},
|
|
1172
|
-
function
|
|
1173
|
-
return
|
|
1174
|
-
}
|
|
1175
|
-
function
|
|
1176
|
-
return
|
|
1177
|
-
}
|
|
1178
|
-
function
|
|
1179
|
-
const r =
|
|
1180
|
-
if (console.warn(r),
|
|
1167
|
+
return a.replace("{{date}}", Tt(r, e)).replace("{{time}}", dn(o, e));
|
|
1168
|
+
}, Ro = {
|
|
1169
|
+
p: dn,
|
|
1170
|
+
P: Wo
|
|
1171
|
+
}, Lo = /^D+$/, qo = /^Y+$/, Yo = ["D", "DD", "YY", "YYYY"];
|
|
1172
|
+
function Ho(t) {
|
|
1173
|
+
return Lo.test(t);
|
|
1174
|
+
}
|
|
1175
|
+
function Bo(t) {
|
|
1176
|
+
return qo.test(t);
|
|
1177
|
+
}
|
|
1178
|
+
function Go(t, e, n) {
|
|
1179
|
+
const r = Vo(t, e, n);
|
|
1180
|
+
if (console.warn(r), Yo.includes(t))
|
|
1181
1181
|
throw new RangeError(r);
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1183
|
+
function Vo(t, e, n) {
|
|
1184
1184
|
const r = t[0] === "Y" ? "years" : "days of the month";
|
|
1185
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`;
|
|
1186
1186
|
}
|
|
1187
|
-
const
|
|
1188
|
-
function
|
|
1189
|
-
var d, h, m,
|
|
1190
|
-
const r =
|
|
1191
|
-
if (!
|
|
1187
|
+
const Uo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ko = /^'([^]*?)'?$/, Qo = /''/g, Xo = /[a-zA-Z]/;
|
|
1188
|
+
function hn(t, e, n) {
|
|
1189
|
+
var d, h, m, p, b, w, f, j;
|
|
1190
|
+
const r = Ge(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Mo, 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 ?? ((p = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : p.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, l = re(t);
|
|
1191
|
+
if (!Jr(l))
|
|
1192
1192
|
throw new RangeError("Invalid time value");
|
|
1193
|
-
let c = e.match(
|
|
1194
|
-
const
|
|
1195
|
-
if (
|
|
1196
|
-
const C =
|
|
1193
|
+
let c = e.match(zo).map((v) => {
|
|
1194
|
+
const g = v[0];
|
|
1195
|
+
if (g === "p" || g === "P") {
|
|
1196
|
+
const C = Ro[g];
|
|
1197
1197
|
return C(v, o.formatLong);
|
|
1198
1198
|
}
|
|
1199
1199
|
return v;
|
|
1200
|
-
}).join("").match(
|
|
1200
|
+
}).join("").match(Uo).map((v) => {
|
|
1201
1201
|
if (v === "''")
|
|
1202
1202
|
return { isToken: !1, value: "'" };
|
|
1203
|
-
const
|
|
1204
|
-
if (
|
|
1205
|
-
return { isToken: !1, value:
|
|
1206
|
-
if (
|
|
1203
|
+
const g = v[0];
|
|
1204
|
+
if (g === "'")
|
|
1205
|
+
return { isToken: !1, value: Jo(v) };
|
|
1206
|
+
if ($t[g])
|
|
1207
1207
|
return { isToken: !0, value: v };
|
|
1208
|
-
if (
|
|
1208
|
+
if (g.match(Xo))
|
|
1209
1209
|
throw new RangeError(
|
|
1210
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1210
|
+
"Format string contains an unescaped latin alphabet character `" + g + "`"
|
|
1211
1211
|
);
|
|
1212
1212
|
return { isToken: !1, value: v };
|
|
1213
1213
|
});
|
|
@@ -1220,17 +1220,17 @@ function ln(t, e, n) {
|
|
|
1220
1220
|
return c.map((v) => {
|
|
1221
1221
|
if (!v.isToken)
|
|
1222
1222
|
return v.value;
|
|
1223
|
-
const
|
|
1224
|
-
(!(n != null && n.useAdditionalWeekYearTokens) &&
|
|
1225
|
-
const C =
|
|
1226
|
-
return C(l,
|
|
1223
|
+
const g = v.value;
|
|
1224
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && Bo(g) || !(n != null && n.useAdditionalDayOfYearTokens) && Ho(g)) && Go(g, e, String(t));
|
|
1225
|
+
const C = $t[g[0]];
|
|
1226
|
+
return C(l, g, o.localize, u);
|
|
1227
1227
|
}).join("");
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1230
|
-
const e = t.match(
|
|
1231
|
-
return e ? e[1].replace(
|
|
1229
|
+
function Jo(t) {
|
|
1230
|
+
const e = t.match(Ko);
|
|
1231
|
+
return e ? e[1].replace(Qo, "'") : t;
|
|
1232
1232
|
}
|
|
1233
|
-
var
|
|
1233
|
+
var Zo = function(t, e, n, r, o, a, i, l) {
|
|
1234
1234
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
1235
1235
|
throw new Error("invariant requires an error message argument");
|
|
1236
1236
|
if (!t) {
|
|
@@ -1249,8 +1249,8 @@ var Vo = function(t, e, n, r, o, a, i, l) {
|
|
|
1249
1249
|
}
|
|
1250
1250
|
throw c.framesToPop = 1, c;
|
|
1251
1251
|
}
|
|
1252
|
-
},
|
|
1253
|
-
const
|
|
1252
|
+
}, es = Zo;
|
|
1253
|
+
const Et = /* @__PURE__ */ sr(es);
|
|
1254
1254
|
function Ne(...t) {
|
|
1255
1255
|
return t.filter((e) => e != null).reduce((e, n) => {
|
|
1256
1256
|
if (typeof n != "function")
|
|
@@ -1260,22 +1260,22 @@ function Ne(...t) {
|
|
|
1260
1260
|
};
|
|
1261
1261
|
}, null);
|
|
1262
1262
|
}
|
|
1263
|
-
const
|
|
1263
|
+
const ts = {
|
|
1264
1264
|
height: ["marginTop", "marginBottom"],
|
|
1265
1265
|
width: ["marginLeft", "marginRight"]
|
|
1266
1266
|
};
|
|
1267
|
-
function
|
|
1268
|
-
const n = `offset${t[0].toUpperCase()}${t.slice(1)}`, r = e[n], o =
|
|
1267
|
+
function ns(t, e) {
|
|
1268
|
+
const n = `offset${t[0].toUpperCase()}${t.slice(1)}`, r = e[n], o = ts[t];
|
|
1269
1269
|
return r + // @ts-ignore
|
|
1270
|
-
parseInt(
|
|
1271
|
-
parseInt(
|
|
1272
|
-
}
|
|
1273
|
-
const
|
|
1274
|
-
[
|
|
1275
|
-
[
|
|
1276
|
-
[
|
|
1277
|
-
[
|
|
1278
|
-
},
|
|
1270
|
+
parseInt(vt(e, o[0]), 10) + // @ts-ignore
|
|
1271
|
+
parseInt(vt(e, o[1]), 10);
|
|
1272
|
+
}
|
|
1273
|
+
const rs = {
|
|
1274
|
+
[cr]: "collapse",
|
|
1275
|
+
[lr]: "collapsing",
|
|
1276
|
+
[ur]: "collapsing",
|
|
1277
|
+
[dr]: "collapse show"
|
|
1278
|
+
}, mn = /* @__PURE__ */ Z.forwardRef(({
|
|
1279
1279
|
onEnter: t,
|
|
1280
1280
|
onEntering: e,
|
|
1281
1281
|
onEntered: n,
|
|
@@ -1289,29 +1289,29 @@ const Qo = {
|
|
|
1289
1289
|
mountOnEnter: d = !1,
|
|
1290
1290
|
unmountOnExit: h = !1,
|
|
1291
1291
|
appear: m = !1,
|
|
1292
|
-
getDimensionValue:
|
|
1292
|
+
getDimensionValue: p = ns,
|
|
1293
1293
|
...b
|
|
1294
1294
|
}, w) => {
|
|
1295
|
-
const f = typeof l == "function" ? l() : l, j =
|
|
1295
|
+
const f = typeof l == "function" ? l() : l, j = K(() => Ne((y) => {
|
|
1296
1296
|
y.style[f] = "0";
|
|
1297
|
-
}, t), [f, t]), v =
|
|
1297
|
+
}, t), [f, t]), v = K(() => Ne((y) => {
|
|
1298
1298
|
const $ = `scroll${f[0].toUpperCase()}${f.slice(1)}`;
|
|
1299
1299
|
y.style[f] = `${y[$]}px`;
|
|
1300
|
-
}, e), [f, e]),
|
|
1300
|
+
}, e), [f, e]), g = K(() => Ne((y) => {
|
|
1301
1301
|
y.style[f] = null;
|
|
1302
|
-
}, n), [f, n]), C =
|
|
1303
|
-
y.style[f] = `${
|
|
1304
|
-
}, r), [r,
|
|
1302
|
+
}, n), [f, n]), C = K(() => Ne((y) => {
|
|
1303
|
+
y.style[f] = `${p(f, y)}px`, hr(y);
|
|
1304
|
+
}, r), [r, p, f]), k = K(() => Ne((y) => {
|
|
1305
1305
|
y.style[f] = null;
|
|
1306
1306
|
}, o), [f, o]);
|
|
1307
|
-
return /* @__PURE__ */ s.jsx(
|
|
1307
|
+
return /* @__PURE__ */ s.jsx(ar, {
|
|
1308
1308
|
ref: w,
|
|
1309
|
-
addEndListener:
|
|
1309
|
+
addEndListener: ir,
|
|
1310
1310
|
...b,
|
|
1311
1311
|
"aria-expanded": b.role ? c : null,
|
|
1312
1312
|
onEnter: j,
|
|
1313
1313
|
onEntering: v,
|
|
1314
|
-
onEntered:
|
|
1314
|
+
onEntered: g,
|
|
1315
1315
|
onExit: C,
|
|
1316
1316
|
onExiting: k,
|
|
1317
1317
|
childRef: i.ref,
|
|
@@ -1322,19 +1322,31 @@ const Qo = {
|
|
|
1322
1322
|
appear: m,
|
|
1323
1323
|
children: (y, $) => /* @__PURE__ */ Z.cloneElement(i, {
|
|
1324
1324
|
...$,
|
|
1325
|
-
className: x(a, i.props.className,
|
|
1325
|
+
className: x(a, i.props.className, rs[y], f === "width" && "collapse-horizontal")
|
|
1326
1326
|
})
|
|
1327
1327
|
});
|
|
1328
|
-
});
|
|
1329
|
-
|
|
1330
|
-
|
|
1328
|
+
}), fn = Yr("h4");
|
|
1329
|
+
fn.displayName = "DivStyledAsH4";
|
|
1330
|
+
const pn = /* @__PURE__ */ A.forwardRef(({
|
|
1331
|
+
className: t,
|
|
1332
|
+
bsPrefix: e,
|
|
1333
|
+
as: n = fn,
|
|
1334
|
+
...r
|
|
1335
|
+
}, o) => (e = V(e, "alert-heading"), /* @__PURE__ */ s.jsx(n, {
|
|
1336
|
+
ref: o,
|
|
1337
|
+
className: x(t, e),
|
|
1338
|
+
...r
|
|
1339
|
+
})));
|
|
1340
|
+
pn.displayName = "AlertHeading";
|
|
1341
|
+
function os(t, e, n, r = !1) {
|
|
1342
|
+
const o = ue(n);
|
|
1331
1343
|
D(() => {
|
|
1332
1344
|
const a = typeof t == "function" ? t() : t;
|
|
1333
1345
|
return a.addEventListener(e, o, r), () => a.removeEventListener(e, o, r);
|
|
1334
1346
|
}, [t]);
|
|
1335
1347
|
}
|
|
1336
|
-
const
|
|
1337
|
-
function
|
|
1348
|
+
const ss = ["as", "disabled"];
|
|
1349
|
+
function as(t, e) {
|
|
1338
1350
|
if (t == null)
|
|
1339
1351
|
return {};
|
|
1340
1352
|
var n = {}, r = Object.keys(t), o, a;
|
|
@@ -1342,7 +1354,7 @@ function Zo(t, e) {
|
|
|
1342
1354
|
o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
1343
1355
|
return n;
|
|
1344
1356
|
}
|
|
1345
|
-
function
|
|
1357
|
+
function is(t) {
|
|
1346
1358
|
return !t || t.trim() === "#";
|
|
1347
1359
|
}
|
|
1348
1360
|
function ht({
|
|
@@ -1366,7 +1378,7 @@ function ht({
|
|
|
1366
1378
|
disabled: e
|
|
1367
1379
|
}, u];
|
|
1368
1380
|
const d = (m) => {
|
|
1369
|
-
if ((e || t === "a" &&
|
|
1381
|
+
if ((e || t === "a" && is(n)) && m.preventDefault(), e) {
|
|
1370
1382
|
m.stopPropagation();
|
|
1371
1383
|
return;
|
|
1372
1384
|
}
|
|
@@ -1388,11 +1400,11 @@ function ht({
|
|
|
1388
1400
|
onKeyDown: h
|
|
1389
1401
|
}, u];
|
|
1390
1402
|
}
|
|
1391
|
-
const
|
|
1403
|
+
const gn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
1392
1404
|
let {
|
|
1393
1405
|
as: n,
|
|
1394
1406
|
disabled: r
|
|
1395
|
-
} = t, o =
|
|
1407
|
+
} = t, o = as(t, ss);
|
|
1396
1408
|
const [a, {
|
|
1397
1409
|
tagName: i
|
|
1398
1410
|
}] = ht(Object.assign({
|
|
@@ -1403,9 +1415,9 @@ const dn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1403
1415
|
ref: e
|
|
1404
1416
|
}));
|
|
1405
1417
|
});
|
|
1406
|
-
|
|
1407
|
-
const
|
|
1408
|
-
function
|
|
1418
|
+
gn.displayName = "Button";
|
|
1419
|
+
const cs = ["onKeyDown"];
|
|
1420
|
+
function ls(t, e) {
|
|
1409
1421
|
if (t == null)
|
|
1410
1422
|
return {};
|
|
1411
1423
|
var n = {}, r = Object.keys(t), o, a;
|
|
@@ -1413,19 +1425,19 @@ function ns(t, e) {
|
|
|
1413
1425
|
o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
1414
1426
|
return n;
|
|
1415
1427
|
}
|
|
1416
|
-
function
|
|
1428
|
+
function us(t) {
|
|
1417
1429
|
return !t || t.trim() === "#";
|
|
1418
1430
|
}
|
|
1419
|
-
const
|
|
1431
|
+
const mt = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
1420
1432
|
let {
|
|
1421
1433
|
onKeyDown: n
|
|
1422
|
-
} = t, r =
|
|
1434
|
+
} = t, r = ls(t, cs);
|
|
1423
1435
|
const [o] = ht(Object.assign({
|
|
1424
1436
|
tagName: "a"
|
|
1425
|
-
}, r)), a =
|
|
1437
|
+
}, r)), a = ue((i) => {
|
|
1426
1438
|
o.onKeyDown(i), n == null || n(i);
|
|
1427
1439
|
});
|
|
1428
|
-
return
|
|
1440
|
+
return us(r.href) || r.role === "button" ? /* @__PURE__ */ s.jsx("a", Object.assign({
|
|
1429
1441
|
ref: e
|
|
1430
1442
|
}, r, o, {
|
|
1431
1443
|
onKeyDown: a
|
|
@@ -1435,8 +1447,59 @@ const hn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1435
1447
|
onKeyDown: n
|
|
1436
1448
|
}));
|
|
1437
1449
|
});
|
|
1438
|
-
|
|
1439
|
-
const
|
|
1450
|
+
mt.displayName = "Anchor";
|
|
1451
|
+
const wn = /* @__PURE__ */ A.forwardRef(({
|
|
1452
|
+
className: t,
|
|
1453
|
+
bsPrefix: e,
|
|
1454
|
+
as: n = mt,
|
|
1455
|
+
...r
|
|
1456
|
+
}, o) => (e = V(e, "alert-link"), /* @__PURE__ */ s.jsx(n, {
|
|
1457
|
+
ref: o,
|
|
1458
|
+
className: x(t, e),
|
|
1459
|
+
...r
|
|
1460
|
+
})));
|
|
1461
|
+
wn.displayName = "AlertLink";
|
|
1462
|
+
const xn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
1463
|
+
const {
|
|
1464
|
+
bsPrefix: n,
|
|
1465
|
+
show: r = !0,
|
|
1466
|
+
closeLabel: o = "Close alert",
|
|
1467
|
+
closeVariant: a,
|
|
1468
|
+
className: i,
|
|
1469
|
+
children: l,
|
|
1470
|
+
variant: c = "primary",
|
|
1471
|
+
onClose: u,
|
|
1472
|
+
dismissible: d,
|
|
1473
|
+
transition: h = bt,
|
|
1474
|
+
...m
|
|
1475
|
+
} = Ut(t, {
|
|
1476
|
+
show: "onClose"
|
|
1477
|
+
}), p = V(n, "alert"), b = ue((j) => {
|
|
1478
|
+
u && u(!1, j);
|
|
1479
|
+
}), w = h === !0 ? bt : h, f = /* @__PURE__ */ s.jsxs("div", {
|
|
1480
|
+
role: "alert",
|
|
1481
|
+
...w ? void 0 : m,
|
|
1482
|
+
ref: e,
|
|
1483
|
+
className: x(i, p, c && `${p}-${c}`, d && `${p}-dismissible`),
|
|
1484
|
+
children: [d && /* @__PURE__ */ s.jsx(Hr, {
|
|
1485
|
+
onClick: b,
|
|
1486
|
+
"aria-label": o,
|
|
1487
|
+
variant: a
|
|
1488
|
+
}), l]
|
|
1489
|
+
});
|
|
1490
|
+
return w ? /* @__PURE__ */ s.jsx(w, {
|
|
1491
|
+
unmountOnExit: !0,
|
|
1492
|
+
...m,
|
|
1493
|
+
ref: void 0,
|
|
1494
|
+
in: r,
|
|
1495
|
+
children: f
|
|
1496
|
+
}) : r ? f : null;
|
|
1497
|
+
});
|
|
1498
|
+
xn.displayName = "Alert";
|
|
1499
|
+
const ds = Object.assign(xn, {
|
|
1500
|
+
Link: wn,
|
|
1501
|
+
Heading: pn
|
|
1502
|
+
}), yn = /* @__PURE__ */ A.forwardRef(({
|
|
1440
1503
|
as: t,
|
|
1441
1504
|
bsPrefix: e,
|
|
1442
1505
|
variant: n = "primary",
|
|
@@ -1461,18 +1524,18 @@ const mn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1461
1524
|
className: x(i, u, o && "active", n && `${u}-${n}`, r && `${u}-${r}`, l.href && a && "disabled")
|
|
1462
1525
|
});
|
|
1463
1526
|
});
|
|
1464
|
-
|
|
1465
|
-
function
|
|
1527
|
+
yn.displayName = "Button";
|
|
1528
|
+
function hs(t, e) {
|
|
1466
1529
|
return A.Children.toArray(t).some((n) => /* @__PURE__ */ A.isValidElement(n) && n.type === e);
|
|
1467
1530
|
}
|
|
1468
|
-
function
|
|
1531
|
+
function ms({
|
|
1469
1532
|
as: t,
|
|
1470
1533
|
bsPrefix: e,
|
|
1471
1534
|
className: n,
|
|
1472
1535
|
...r
|
|
1473
1536
|
}) {
|
|
1474
1537
|
e = V(e, "col");
|
|
1475
|
-
const o =
|
|
1538
|
+
const o = mr(), a = fr(), i = [], l = [];
|
|
1476
1539
|
return o.forEach((c) => {
|
|
1477
1540
|
const u = r[c];
|
|
1478
1541
|
delete r[c];
|
|
@@ -1482,8 +1545,8 @@ function ss({
|
|
|
1482
1545
|
offset: h,
|
|
1483
1546
|
order: m
|
|
1484
1547
|
} = u : d = u;
|
|
1485
|
-
const
|
|
1486
|
-
d && i.push(d === !0 ? `${e}${
|
|
1548
|
+
const p = c !== a ? `-${c}` : "";
|
|
1549
|
+
d && i.push(d === !0 ? `${e}${p}` : `${e}${p}-${d}`), m != null && l.push(`order${p}-${m}`), h != null && l.push(`offset${p}-${h}`);
|
|
1487
1550
|
}), [{
|
|
1488
1551
|
...r,
|
|
1489
1552
|
className: x(n, ...i, ...l)
|
|
@@ -1493,7 +1556,7 @@ function ss({
|
|
|
1493
1556
|
spans: i
|
|
1494
1557
|
}];
|
|
1495
1558
|
}
|
|
1496
|
-
const
|
|
1559
|
+
const vn = /* @__PURE__ */ A.forwardRef(
|
|
1497
1560
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1498
1561
|
(t, e) => {
|
|
1499
1562
|
const [{
|
|
@@ -1503,7 +1566,7 @@ const fn = /* @__PURE__ */ A.forwardRef(
|
|
|
1503
1566
|
as: o = "div",
|
|
1504
1567
|
bsPrefix: a,
|
|
1505
1568
|
spans: i
|
|
1506
|
-
}] =
|
|
1569
|
+
}] = ms(t);
|
|
1507
1570
|
return /* @__PURE__ */ s.jsx(o, {
|
|
1508
1571
|
...r,
|
|
1509
1572
|
ref: e,
|
|
@@ -1511,8 +1574,8 @@ const fn = /* @__PURE__ */ A.forwardRef(
|
|
|
1511
1574
|
});
|
|
1512
1575
|
}
|
|
1513
1576
|
);
|
|
1514
|
-
|
|
1515
|
-
function
|
|
1577
|
+
vn.displayName = "Col";
|
|
1578
|
+
function fs(t, e, n) {
|
|
1516
1579
|
const r = Y(t !== void 0), [o, a] = P(e), i = t !== void 0, l = r.current;
|
|
1517
1580
|
return r.current = i, !i && l && o !== e && a(e), [i ? t : o, O((...c) => {
|
|
1518
1581
|
const [u, ...d] = c;
|
|
@@ -1520,12 +1583,12 @@ function as(t, e, n) {
|
|
|
1520
1583
|
return a(u), h;
|
|
1521
1584
|
}, [n])];
|
|
1522
1585
|
}
|
|
1523
|
-
function
|
|
1524
|
-
const [, t] =
|
|
1586
|
+
function ps() {
|
|
1587
|
+
const [, t] = en((e) => !e, !1);
|
|
1525
1588
|
return t;
|
|
1526
1589
|
}
|
|
1527
|
-
const Ve = /* @__PURE__ */ A.createContext(null),
|
|
1528
|
-
function
|
|
1590
|
+
const Ve = /* @__PURE__ */ A.createContext(null), gs = ["children", "usePopper"];
|
|
1591
|
+
function ws(t, e) {
|
|
1529
1592
|
if (t == null)
|
|
1530
1593
|
return {};
|
|
1531
1594
|
var n = {}, r = Object.keys(t), o, a;
|
|
@@ -1533,10 +1596,10 @@ function ls(t, e) {
|
|
|
1533
1596
|
o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
1534
1597
|
return n;
|
|
1535
1598
|
}
|
|
1536
|
-
const
|
|
1599
|
+
const xs = () => {
|
|
1537
1600
|
};
|
|
1538
|
-
function
|
|
1539
|
-
const e =
|
|
1601
|
+
function bn(t = {}) {
|
|
1602
|
+
const e = L(Ve), [n, r] = pr(), o = Y(!1), {
|
|
1540
1603
|
flip: a,
|
|
1541
1604
|
offset: i,
|
|
1542
1605
|
rootCloseEvent: l,
|
|
@@ -1545,8 +1608,8 @@ function pn(t = {}) {
|
|
|
1545
1608
|
popperConfig: d = {},
|
|
1546
1609
|
enableEventListeners: h = !0,
|
|
1547
1610
|
usePopper: m = !!e
|
|
1548
|
-
} = t,
|
|
1549
|
-
|
|
1611
|
+
} = t, p = (e == null ? void 0 : e.show) == null ? !!t.show : e.show;
|
|
1612
|
+
p && !o.current && (o.current = !0);
|
|
1550
1613
|
const b = (y) => {
|
|
1551
1614
|
e == null || e.toggle(!1, y);
|
|
1552
1615
|
}, {
|
|
@@ -1554,57 +1617,57 @@ function pn(t = {}) {
|
|
|
1554
1617
|
setMenu: f,
|
|
1555
1618
|
menuElement: j,
|
|
1556
1619
|
toggleElement: v
|
|
1557
|
-
} = e || {},
|
|
1620
|
+
} = e || {}, g = gr(v, j, wr({
|
|
1558
1621
|
placement: u || w || "bottom-start",
|
|
1559
1622
|
enabled: m,
|
|
1560
|
-
enableEvents: h ??
|
|
1623
|
+
enableEvents: h ?? p,
|
|
1561
1624
|
offset: i,
|
|
1562
1625
|
flip: a,
|
|
1563
1626
|
fixed: c,
|
|
1564
1627
|
arrowElement: n,
|
|
1565
1628
|
popperConfig: d
|
|
1566
1629
|
})), C = Object.assign({
|
|
1567
|
-
ref: f ||
|
|
1630
|
+
ref: f || xs,
|
|
1568
1631
|
"aria-labelledby": v == null ? void 0 : v.id
|
|
1569
|
-
},
|
|
1570
|
-
style:
|
|
1632
|
+
}, g.attributes.popper, {
|
|
1633
|
+
style: g.styles.popper
|
|
1571
1634
|
}), k = {
|
|
1572
|
-
show:
|
|
1635
|
+
show: p,
|
|
1573
1636
|
placement: w,
|
|
1574
1637
|
hasShown: o.current,
|
|
1575
1638
|
toggle: e == null ? void 0 : e.toggle,
|
|
1576
|
-
popper: m ?
|
|
1639
|
+
popper: m ? g : null,
|
|
1577
1640
|
arrowProps: m ? Object.assign({
|
|
1578
1641
|
ref: r
|
|
1579
|
-
},
|
|
1580
|
-
style:
|
|
1642
|
+
}, g.attributes.arrow, {
|
|
1643
|
+
style: g.styles.arrow
|
|
1581
1644
|
}) : {}
|
|
1582
1645
|
};
|
|
1583
|
-
return
|
|
1646
|
+
return xr(j, b, {
|
|
1584
1647
|
clickTrigger: l,
|
|
1585
|
-
disabled: !
|
|
1648
|
+
disabled: !p
|
|
1586
1649
|
}), [C, k];
|
|
1587
1650
|
}
|
|
1588
|
-
function
|
|
1651
|
+
function _n(t) {
|
|
1589
1652
|
let {
|
|
1590
1653
|
children: e,
|
|
1591
1654
|
usePopper: n = !0
|
|
1592
|
-
} = t, r =
|
|
1593
|
-
const [o, a] =
|
|
1655
|
+
} = t, r = ws(t, gs);
|
|
1656
|
+
const [o, a] = bn(Object.assign({}, r, {
|
|
1594
1657
|
usePopper: n
|
|
1595
1658
|
}));
|
|
1596
1659
|
return /* @__PURE__ */ s.jsx(s.Fragment, {
|
|
1597
1660
|
children: e(o, a)
|
|
1598
1661
|
});
|
|
1599
1662
|
}
|
|
1600
|
-
|
|
1601
|
-
const
|
|
1663
|
+
_n.displayName = "DropdownMenu";
|
|
1664
|
+
const qe = {
|
|
1602
1665
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1603
1666
|
current: 0
|
|
1604
|
-
},
|
|
1605
|
-
let
|
|
1606
|
-
function
|
|
1607
|
-
let e =
|
|
1667
|
+
}, jn = /* @__PURE__ */ Z.createContext(qe), ys = /* @__PURE__ */ Z.createContext(!1);
|
|
1668
|
+
let vs = !!(typeof window < "u" && window.document && window.document.createElement), Ze = /* @__PURE__ */ new WeakMap();
|
|
1669
|
+
function bs(t = !1) {
|
|
1670
|
+
let e = L(jn), n = Y(null);
|
|
1608
1671
|
if (n.current === null && !t) {
|
|
1609
1672
|
var r, o;
|
|
1610
1673
|
let a = (o = Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
@@ -1619,67 +1682,67 @@ function ms(t = !1) {
|
|
|
1619
1682
|
}
|
|
1620
1683
|
return n.current;
|
|
1621
1684
|
}
|
|
1622
|
-
function
|
|
1623
|
-
let e =
|
|
1624
|
-
e ===
|
|
1625
|
-
let n =
|
|
1685
|
+
function _s(t) {
|
|
1686
|
+
let e = L(jn);
|
|
1687
|
+
e === qe && !vs && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
1688
|
+
let n = bs(!!t), r = e === qe && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
1626
1689
|
return t || `${r}-${n}`;
|
|
1627
1690
|
}
|
|
1628
|
-
function
|
|
1629
|
-
let e = Z.useId(), [n] = P(
|
|
1691
|
+
function js(t) {
|
|
1692
|
+
let e = Z.useId(), [n] = P(Is()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${qe.prefix}`;
|
|
1630
1693
|
return t || `${r}-${e}`;
|
|
1631
1694
|
}
|
|
1632
|
-
const
|
|
1633
|
-
function
|
|
1695
|
+
const ks = typeof Z.useId == "function" ? js : _s;
|
|
1696
|
+
function Cs() {
|
|
1634
1697
|
return !1;
|
|
1635
1698
|
}
|
|
1636
|
-
function
|
|
1699
|
+
function Ns() {
|
|
1637
1700
|
return !0;
|
|
1638
1701
|
}
|
|
1639
|
-
function
|
|
1702
|
+
function $s(t) {
|
|
1640
1703
|
return () => {
|
|
1641
1704
|
};
|
|
1642
1705
|
}
|
|
1643
|
-
function
|
|
1644
|
-
return typeof Z.useSyncExternalStore == "function" ? Z.useSyncExternalStore(
|
|
1706
|
+
function Is() {
|
|
1707
|
+
return typeof Z.useSyncExternalStore == "function" ? Z.useSyncExternalStore($s, Cs, Ns) : L(ys);
|
|
1645
1708
|
}
|
|
1646
|
-
const
|
|
1709
|
+
const kn = (t) => {
|
|
1647
1710
|
var e;
|
|
1648
1711
|
return ((e = t.getAttribute("role")) == null ? void 0 : e.toLowerCase()) === "menu";
|
|
1649
|
-
},
|
|
1712
|
+
}, Ot = () => {
|
|
1650
1713
|
};
|
|
1651
|
-
function
|
|
1652
|
-
const t =
|
|
1714
|
+
function Cn() {
|
|
1715
|
+
const t = ks(), {
|
|
1653
1716
|
show: e = !1,
|
|
1654
|
-
toggle: n =
|
|
1717
|
+
toggle: n = Ot,
|
|
1655
1718
|
setToggle: r,
|
|
1656
1719
|
menuElement: o
|
|
1657
|
-
} =
|
|
1720
|
+
} = L(Ve) || {}, a = O((l) => {
|
|
1658
1721
|
n(!e, l);
|
|
1659
1722
|
}, [e, n]), i = {
|
|
1660
1723
|
id: t,
|
|
1661
|
-
ref: r ||
|
|
1724
|
+
ref: r || Ot,
|
|
1662
1725
|
onClick: a,
|
|
1663
1726
|
"aria-expanded": !!e
|
|
1664
1727
|
};
|
|
1665
|
-
return o &&
|
|
1728
|
+
return o && kn(o) && (i["aria-haspopup"] = !0), [i, {
|
|
1666
1729
|
show: e,
|
|
1667
1730
|
toggle: n
|
|
1668
1731
|
}];
|
|
1669
1732
|
}
|
|
1670
|
-
function
|
|
1733
|
+
function Nn({
|
|
1671
1734
|
children: t
|
|
1672
1735
|
}) {
|
|
1673
|
-
const [e, n] =
|
|
1736
|
+
const [e, n] = Cn();
|
|
1674
1737
|
return /* @__PURE__ */ s.jsx(s.Fragment, {
|
|
1675
1738
|
children: t(e, n)
|
|
1676
1739
|
});
|
|
1677
1740
|
}
|
|
1678
|
-
|
|
1679
|
-
const rt = /* @__PURE__ */ A.createContext(null),
|
|
1680
|
-
|
|
1681
|
-
const
|
|
1682
|
-
function
|
|
1741
|
+
Nn.displayName = "DropdownToggle";
|
|
1742
|
+
const rt = /* @__PURE__ */ A.createContext(null), Mt = (t, e = null) => t != null ? String(t) : e || null, $n = /* @__PURE__ */ A.createContext(null);
|
|
1743
|
+
$n.displayName = "NavContext";
|
|
1744
|
+
const Ss = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
1745
|
+
function Ts(t, e) {
|
|
1683
1746
|
if (t == null)
|
|
1684
1747
|
return {};
|
|
1685
1748
|
var n = {}, r = Object.keys(t), o, a;
|
|
@@ -1687,36 +1750,36 @@ function _s(t, e) {
|
|
|
1687
1750
|
o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
1688
1751
|
return n;
|
|
1689
1752
|
}
|
|
1690
|
-
function
|
|
1753
|
+
function In({
|
|
1691
1754
|
key: t,
|
|
1692
1755
|
href: e,
|
|
1693
1756
|
active: n,
|
|
1694
1757
|
disabled: r,
|
|
1695
1758
|
onClick: o
|
|
1696
1759
|
}) {
|
|
1697
|
-
const a =
|
|
1760
|
+
const a = L(rt), i = L($n), {
|
|
1698
1761
|
activeKey: l
|
|
1699
|
-
} = i || {}, c =
|
|
1762
|
+
} = i || {}, c = Mt(t, e), u = n == null && t != null ? Mt(l) === c : n;
|
|
1700
1763
|
return [{
|
|
1701
|
-
onClick:
|
|
1764
|
+
onClick: ue((h) => {
|
|
1702
1765
|
r || (o == null || o(h), a && !h.isPropagationStopped() && a(c, h));
|
|
1703
1766
|
}),
|
|
1704
1767
|
"aria-disabled": r || void 0,
|
|
1705
1768
|
"aria-selected": u,
|
|
1706
|
-
[
|
|
1769
|
+
[tn("dropdown-item")]: ""
|
|
1707
1770
|
}, {
|
|
1708
1771
|
isActive: u
|
|
1709
1772
|
}];
|
|
1710
1773
|
}
|
|
1711
|
-
const
|
|
1774
|
+
const Sn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
1712
1775
|
let {
|
|
1713
1776
|
eventKey: n,
|
|
1714
1777
|
disabled: r,
|
|
1715
1778
|
onClick: o,
|
|
1716
1779
|
active: a,
|
|
1717
|
-
as: i =
|
|
1718
|
-
} = t, l =
|
|
1719
|
-
const [c] =
|
|
1780
|
+
as: i = gn
|
|
1781
|
+
} = t, l = Ts(t, Ss);
|
|
1782
|
+
const [c] = In({
|
|
1720
1783
|
key: n,
|
|
1721
1784
|
href: l.href,
|
|
1722
1785
|
disabled: r,
|
|
@@ -1727,9 +1790,9 @@ const jn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
1727
1790
|
ref: e
|
|
1728
1791
|
}, c));
|
|
1729
1792
|
});
|
|
1730
|
-
|
|
1731
|
-
function
|
|
1732
|
-
const t =
|
|
1793
|
+
Sn.displayName = "DropdownItem";
|
|
1794
|
+
function Dt() {
|
|
1795
|
+
const t = ps(), e = Y(null), n = O((r) => {
|
|
1733
1796
|
e.current = r, t();
|
|
1734
1797
|
}, [t]);
|
|
1735
1798
|
return [e, n];
|
|
@@ -1739,56 +1802,56 @@ function Ee({
|
|
|
1739
1802
|
show: e,
|
|
1740
1803
|
onSelect: n,
|
|
1741
1804
|
onToggle: r,
|
|
1742
|
-
itemSelector: o = `* [${
|
|
1805
|
+
itemSelector: o = `* [${tn("dropdown-item")}]`,
|
|
1743
1806
|
focusFirstItemOnShow: a,
|
|
1744
1807
|
placement: i = "bottom-start",
|
|
1745
1808
|
children: l
|
|
1746
1809
|
}) {
|
|
1747
|
-
const c =
|
|
1810
|
+
const c = yr(), [u, d] = fs(e, t, r), [h, m] = Dt(), p = h.current, [b, w] = Dt(), f = b.current, j = Br(u), v = Y(null), g = Y(!1), C = L(rt), k = O((_, T, F = T == null ? void 0 : T.type) => {
|
|
1748
1811
|
d(_, {
|
|
1749
1812
|
originalEvent: T,
|
|
1750
1813
|
source: F
|
|
1751
1814
|
});
|
|
1752
|
-
}, [d]), y =
|
|
1815
|
+
}, [d]), y = ue((_, T) => {
|
|
1753
1816
|
n == null || n(_, T), k(!1, T, "select"), T.isPropagationStopped() || C == null || C(_, T);
|
|
1754
|
-
}), $ =
|
|
1817
|
+
}), $ = K(() => ({
|
|
1755
1818
|
toggle: k,
|
|
1756
1819
|
placement: i,
|
|
1757
1820
|
show: u,
|
|
1758
|
-
menuElement:
|
|
1821
|
+
menuElement: p,
|
|
1759
1822
|
toggleElement: f,
|
|
1760
1823
|
setMenu: m,
|
|
1761
1824
|
setToggle: w
|
|
1762
|
-
}), [k, i, u,
|
|
1763
|
-
|
|
1764
|
-
const M =
|
|
1825
|
+
}), [k, i, u, p, f, m, w]);
|
|
1826
|
+
p && j && !u && (g.current = p.contains(p.ownerDocument.activeElement));
|
|
1827
|
+
const M = ue(() => {
|
|
1765
1828
|
f && f.focus && f.focus();
|
|
1766
|
-
}), S =
|
|
1829
|
+
}), S = ue(() => {
|
|
1767
1830
|
const _ = v.current;
|
|
1768
1831
|
let T = a;
|
|
1769
|
-
if (T == null && (T = h.current &&
|
|
1832
|
+
if (T == null && (T = h.current && kn(h.current) ? "keyboard" : !1), T === !1 || T === "keyboard" && !/^key.+$/.test(_))
|
|
1770
1833
|
return;
|
|
1771
|
-
const F =
|
|
1834
|
+
const F = kt(h.current, o)[0];
|
|
1772
1835
|
F && F.focus && F.focus();
|
|
1773
1836
|
});
|
|
1774
1837
|
D(() => {
|
|
1775
|
-
u ? S() :
|
|
1776
|
-
}, [u,
|
|
1838
|
+
u ? S() : g.current && (g.current = !1, M());
|
|
1839
|
+
}, [u, g, M, S]), D(() => {
|
|
1777
1840
|
v.current = null;
|
|
1778
1841
|
});
|
|
1779
1842
|
const N = (_, T) => {
|
|
1780
1843
|
if (!h.current)
|
|
1781
1844
|
return null;
|
|
1782
|
-
const F =
|
|
1845
|
+
const F = kt(h.current, o);
|
|
1783
1846
|
let W = F.indexOf(_) + T;
|
|
1784
1847
|
return W = Math.max(0, Math.min(W, F.length)), F[W];
|
|
1785
1848
|
};
|
|
1786
|
-
return
|
|
1849
|
+
return os(O(() => c.document, [c]), "keydown", (_) => {
|
|
1787
1850
|
var T, F;
|
|
1788
1851
|
const {
|
|
1789
1852
|
key: W
|
|
1790
|
-
} = _, H = _.target, R = (T = h.current) == null ? void 0 : T.contains(H),
|
|
1791
|
-
if (/input|textarea/i.test(H.tagName) && (W === " " || W !== "Escape" && R || W === "Escape" && H.type === "search") || !R && !
|
|
1853
|
+
} = _, H = _.target, R = (T = h.current) == null ? void 0 : T.contains(H), G = (F = b.current) == null ? void 0 : F.contains(H);
|
|
1854
|
+
if (/input|textarea/i.test(H.tagName) && (W === " " || W !== "Escape" && R || W === "Escape" && H.type === "search") || !R && !G || W === "Tab" && (!h.current || !u))
|
|
1792
1855
|
return;
|
|
1793
1856
|
v.current = _.type;
|
|
1794
1857
|
const te = {
|
|
@@ -1810,7 +1873,7 @@ function Ee({
|
|
|
1810
1873
|
}
|
|
1811
1874
|
return;
|
|
1812
1875
|
case "Tab":
|
|
1813
|
-
|
|
1876
|
+
vr(H.ownerDocument, "keyup", (U) => {
|
|
1814
1877
|
var I;
|
|
1815
1878
|
(U.key === "Tab" && !U.target || !((I = h.current) != null && I.contains(U.target))) && d(!1, te);
|
|
1816
1879
|
}, {
|
|
@@ -1830,12 +1893,12 @@ function Ee({
|
|
|
1830
1893
|
});
|
|
1831
1894
|
}
|
|
1832
1895
|
Ee.displayName = "Dropdown";
|
|
1833
|
-
Ee.Menu =
|
|
1834
|
-
Ee.Toggle =
|
|
1835
|
-
Ee.Item =
|
|
1836
|
-
const
|
|
1837
|
-
|
|
1838
|
-
const
|
|
1896
|
+
Ee.Menu = _n;
|
|
1897
|
+
Ee.Toggle = Nn;
|
|
1898
|
+
Ee.Item = Sn;
|
|
1899
|
+
const ft = /* @__PURE__ */ A.createContext({});
|
|
1900
|
+
ft.displayName = "DropdownContext";
|
|
1901
|
+
const Tn = /* @__PURE__ */ A.forwardRef(({
|
|
1839
1902
|
className: t,
|
|
1840
1903
|
bsPrefix: e,
|
|
1841
1904
|
as: n = "hr",
|
|
@@ -1847,8 +1910,8 @@ const kn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1847
1910
|
role: r,
|
|
1848
1911
|
...o
|
|
1849
1912
|
})));
|
|
1850
|
-
|
|
1851
|
-
const
|
|
1913
|
+
Tn.displayName = "DropdownDivider";
|
|
1914
|
+
const En = /* @__PURE__ */ A.forwardRef(({
|
|
1852
1915
|
className: t,
|
|
1853
1916
|
bsPrefix: e,
|
|
1854
1917
|
as: n = "div",
|
|
@@ -1860,18 +1923,18 @@ const Cn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1860
1923
|
role: r,
|
|
1861
1924
|
...o
|
|
1862
1925
|
})));
|
|
1863
|
-
|
|
1864
|
-
const
|
|
1926
|
+
En.displayName = "DropdownHeader";
|
|
1927
|
+
const On = /* @__PURE__ */ A.forwardRef(({
|
|
1865
1928
|
bsPrefix: t,
|
|
1866
1929
|
className: e,
|
|
1867
1930
|
eventKey: n,
|
|
1868
1931
|
disabled: r = !1,
|
|
1869
1932
|
onClick: o,
|
|
1870
1933
|
active: a,
|
|
1871
|
-
as: i =
|
|
1934
|
+
as: i = mt,
|
|
1872
1935
|
...l
|
|
1873
1936
|
}, c) => {
|
|
1874
|
-
const u = V(t, "dropdown-item"), [d, h] =
|
|
1937
|
+
const u = V(t, "dropdown-item"), [d, h] = In({
|
|
1875
1938
|
key: n,
|
|
1876
1939
|
href: l.href,
|
|
1877
1940
|
disabled: r,
|
|
@@ -1885,8 +1948,8 @@ const Nn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1885
1948
|
className: x(e, u, h.isActive && "active", r && "disabled")
|
|
1886
1949
|
});
|
|
1887
1950
|
});
|
|
1888
|
-
|
|
1889
|
-
const
|
|
1951
|
+
On.displayName = "DropdownItem";
|
|
1952
|
+
const Mn = /* @__PURE__ */ A.forwardRef(({
|
|
1890
1953
|
className: t,
|
|
1891
1954
|
bsPrefix: e,
|
|
1892
1955
|
as: n = "span",
|
|
@@ -1896,25 +1959,25 @@ const $n = /* @__PURE__ */ A.forwardRef(({
|
|
|
1896
1959
|
className: x(t, e),
|
|
1897
1960
|
...r
|
|
1898
1961
|
})));
|
|
1899
|
-
|
|
1962
|
+
Mn.displayName = "DropdownItemText";
|
|
1900
1963
|
const Ue = /* @__PURE__ */ A.createContext(null);
|
|
1901
1964
|
Ue.displayName = "InputGroupContext";
|
|
1902
|
-
const
|
|
1903
|
-
|
|
1904
|
-
function
|
|
1965
|
+
const Dn = /* @__PURE__ */ A.createContext(null);
|
|
1966
|
+
Dn.displayName = "NavbarContext";
|
|
1967
|
+
function Pn(t, e) {
|
|
1905
1968
|
if (process.env.NODE_ENV === "production")
|
|
1906
1969
|
return t;
|
|
1907
1970
|
const n = O((r) => {
|
|
1908
|
-
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ?
|
|
1971
|
+
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? Et(!1, `${e} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : Et(!1));
|
|
1909
1972
|
}, [e]);
|
|
1910
1973
|
return at(n, t);
|
|
1911
1974
|
}
|
|
1912
|
-
function
|
|
1975
|
+
function An(t, e, n) {
|
|
1913
1976
|
const r = n ? "top-end" : "top-start", o = n ? "top-start" : "top-end", a = n ? "bottom-end" : "bottom-start", i = n ? "bottom-start" : "bottom-end", l = n ? "right-start" : "left-start", c = n ? "right-end" : "left-end", u = n ? "left-start" : "right-start", d = n ? "left-end" : "right-end";
|
|
1914
1977
|
let h = t ? i : a;
|
|
1915
1978
|
return e === "up" ? h = t ? o : r : e === "end" ? h = t ? d : u : e === "start" ? h = t ? c : l : e === "down-centered" ? h = "bottom" : e === "up-centered" && (h = "top"), h;
|
|
1916
1979
|
}
|
|
1917
|
-
const
|
|
1980
|
+
const Fn = /* @__PURE__ */ A.forwardRef(({
|
|
1918
1981
|
bsPrefix: t,
|
|
1919
1982
|
className: e,
|
|
1920
1983
|
align: n,
|
|
@@ -1929,37 +1992,37 @@ const En = /* @__PURE__ */ A.forwardRef(({
|
|
|
1929
1992
|
...d
|
|
1930
1993
|
}, h) => {
|
|
1931
1994
|
let m = !1;
|
|
1932
|
-
const
|
|
1995
|
+
const p = L(Dn), b = V(t, "dropdown-menu"), {
|
|
1933
1996
|
align: w,
|
|
1934
1997
|
drop: f,
|
|
1935
1998
|
isRTL: j
|
|
1936
|
-
} =
|
|
1999
|
+
} = L(ft);
|
|
1937
2000
|
n = n || w;
|
|
1938
|
-
const v =
|
|
2001
|
+
const v = L(Ue), g = [];
|
|
1939
2002
|
if (n)
|
|
1940
2003
|
if (typeof n == "object") {
|
|
1941
2004
|
const _ = Object.keys(n);
|
|
1942
2005
|
if (process.env.NODE_ENV !== "production" && it(_.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), _.length) {
|
|
1943
2006
|
const T = _[0], F = n[T];
|
|
1944
|
-
m = F === "start",
|
|
2007
|
+
m = F === "start", g.push(`${b}-${T}-${F}`);
|
|
1945
2008
|
}
|
|
1946
2009
|
} else
|
|
1947
2010
|
n === "end" && (m = !0);
|
|
1948
|
-
const C =
|
|
2011
|
+
const C = An(m, f, j), [k, {
|
|
1949
2012
|
hasShown: y,
|
|
1950
2013
|
popper: $,
|
|
1951
2014
|
show: M,
|
|
1952
2015
|
toggle: S
|
|
1953
|
-
}] =
|
|
2016
|
+
}] = bn({
|
|
1954
2017
|
flip: o,
|
|
1955
2018
|
rootCloseEvent: r,
|
|
1956
2019
|
show: a,
|
|
1957
|
-
usePopper: !
|
|
2020
|
+
usePopper: !p && g.length === 0,
|
|
1958
2021
|
offset: [0, 2],
|
|
1959
2022
|
popperConfig: c,
|
|
1960
2023
|
placement: C
|
|
1961
2024
|
});
|
|
1962
|
-
if (k.ref = at(
|
|
2025
|
+
if (k.ref = at(Pn(h, "DropdownMenu"), k.ref), br(() => {
|
|
1963
2026
|
M && ($ == null || $.update());
|
|
1964
2027
|
}, [M]), !y && !i && !v)
|
|
1965
2028
|
return null;
|
|
@@ -1972,33 +2035,33 @@ const En = /* @__PURE__ */ A.forwardRef(({
|
|
|
1972
2035
|
...d,
|
|
1973
2036
|
...k,
|
|
1974
2037
|
style: N,
|
|
1975
|
-
...(
|
|
2038
|
+
...(g.length || p) && {
|
|
1976
2039
|
"data-bs-popper": "static"
|
|
1977
2040
|
},
|
|
1978
|
-
className: x(e, b, M && "show", m && `${b}-end`, u && `${b}-${u}`, ...
|
|
2041
|
+
className: x(e, b, M && "show", m && `${b}-end`, u && `${b}-${u}`, ...g)
|
|
1979
2042
|
});
|
|
1980
2043
|
});
|
|
1981
|
-
|
|
1982
|
-
const
|
|
2044
|
+
Fn.displayName = "DropdownMenu";
|
|
2045
|
+
const Wn = /* @__PURE__ */ A.forwardRef(({
|
|
1983
2046
|
bsPrefix: t,
|
|
1984
2047
|
split: e,
|
|
1985
2048
|
className: n,
|
|
1986
2049
|
childBsPrefix: r,
|
|
1987
2050
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1988
|
-
as: o =
|
|
2051
|
+
as: o = yn,
|
|
1989
2052
|
...a
|
|
1990
2053
|
}, i) => {
|
|
1991
|
-
const l = V(t, "dropdown-toggle"), c =
|
|
2054
|
+
const l = V(t, "dropdown-toggle"), c = L(Ve);
|
|
1992
2055
|
r !== void 0 && (a.bsPrefix = r);
|
|
1993
|
-
const [u] =
|
|
1994
|
-
return u.ref = at(u.ref,
|
|
2056
|
+
const [u] = Cn();
|
|
2057
|
+
return u.ref = at(u.ref, Pn(i, "DropdownToggle")), /* @__PURE__ */ s.jsx(o, {
|
|
1995
2058
|
className: x(n, l, e && `${l}-split`, (c == null ? void 0 : c.show) && "show"),
|
|
1996
2059
|
...u,
|
|
1997
2060
|
...a
|
|
1998
2061
|
});
|
|
1999
2062
|
});
|
|
2000
|
-
|
|
2001
|
-
const
|
|
2063
|
+
Wn.displayName = "DropdownToggle";
|
|
2064
|
+
const Rn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
2002
2065
|
const {
|
|
2003
2066
|
bsPrefix: n,
|
|
2004
2067
|
drop: r = "down",
|
|
@@ -2012,13 +2075,13 @@ const Mn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
2012
2075
|
as: d = "div",
|
|
2013
2076
|
navbar: h,
|
|
2014
2077
|
autoClose: m = !0,
|
|
2015
|
-
...
|
|
2016
|
-
} =
|
|
2078
|
+
...p
|
|
2079
|
+
} = Ut(t, {
|
|
2017
2080
|
show: "onToggle"
|
|
2018
|
-
}), b =
|
|
2081
|
+
}), b = L(Ue), w = V(n, "dropdown"), f = _r(), j = ($) => m === !1 ? $ === "click" : m === "inside" ? $ !== "rootClose" : m === "outside" ? $ !== "select" : !0, v = ue(($, M) => {
|
|
2019
2082
|
var S, N;
|
|
2020
2083
|
!((S = M.originalEvent) == null || (N = S.target) == null) && N.classList.contains("dropdown-toggle") && M.source === "mousedown" || (M.originalEvent.currentTarget === document && (M.source !== "keydown" || M.originalEvent.key === "Escape") && (M.source = "rootClose"), j(M.source) && (c == null || c($, M)));
|
|
2021
|
-
}), C =
|
|
2084
|
+
}), C = An(i === "end", r, f), k = K(() => ({
|
|
2022
2085
|
align: i,
|
|
2023
2086
|
drop: r,
|
|
2024
2087
|
isRTL: f
|
|
@@ -2030,7 +2093,7 @@ const Mn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
2030
2093
|
end: "dropend",
|
|
2031
2094
|
start: "dropstart"
|
|
2032
2095
|
};
|
|
2033
|
-
return /* @__PURE__ */ s.jsx(
|
|
2096
|
+
return /* @__PURE__ */ s.jsx(ft.Provider, {
|
|
2034
2097
|
value: k,
|
|
2035
2098
|
children: /* @__PURE__ */ s.jsx(Ee, {
|
|
2036
2099
|
placement: C,
|
|
@@ -2039,23 +2102,23 @@ const Mn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
2039
2102
|
onToggle: v,
|
|
2040
2103
|
focusFirstItemOnShow: u,
|
|
2041
2104
|
itemSelector: `.${w}-item:not(.disabled):not(:disabled)`,
|
|
2042
|
-
children: b ?
|
|
2043
|
-
...
|
|
2105
|
+
children: b ? p.children : /* @__PURE__ */ s.jsx(d, {
|
|
2106
|
+
...p,
|
|
2044
2107
|
ref: e,
|
|
2045
2108
|
className: x(a, o && "show", y[r])
|
|
2046
2109
|
})
|
|
2047
2110
|
})
|
|
2048
2111
|
});
|
|
2049
2112
|
});
|
|
2050
|
-
|
|
2051
|
-
const Te = Object.assign(
|
|
2052
|
-
Toggle:
|
|
2053
|
-
Menu:
|
|
2054
|
-
Item:
|
|
2055
|
-
ItemText:
|
|
2056
|
-
Divider:
|
|
2057
|
-
Header:
|
|
2058
|
-
}),
|
|
2113
|
+
Rn.displayName = "Dropdown";
|
|
2114
|
+
const Te = Object.assign(Rn, {
|
|
2115
|
+
Toggle: Wn,
|
|
2116
|
+
Menu: Fn,
|
|
2117
|
+
Item: On,
|
|
2118
|
+
ItemText: Mn,
|
|
2119
|
+
Divider: Tn,
|
|
2120
|
+
Header: En
|
|
2121
|
+
}), Es = {
|
|
2059
2122
|
/**
|
|
2060
2123
|
* Specify whether the feedback is for valid or invalid fields
|
|
2061
2124
|
*
|
|
@@ -2065,7 +2128,7 @@ const Te = Object.assign(Mn, {
|
|
|
2065
2128
|
/** Display feedback as a tooltip. */
|
|
2066
2129
|
tooltip: be.bool,
|
|
2067
2130
|
as: be.elementType
|
|
2068
|
-
},
|
|
2131
|
+
}, ze = /* @__PURE__ */ A.forwardRef(
|
|
2069
2132
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2070
2133
|
({
|
|
2071
2134
|
as: t = "div",
|
|
@@ -2079,8 +2142,8 @@ const Te = Object.assign(Mn, {
|
|
|
2079
2142
|
className: x(e, `${n}-${r ? "tooltip" : "feedback"}`)
|
|
2080
2143
|
})
|
|
2081
2144
|
);
|
|
2082
|
-
|
|
2083
|
-
|
|
2145
|
+
ze.displayName = "Feedback";
|
|
2146
|
+
ze.propTypes = Es;
|
|
2084
2147
|
const Oe = /* @__PURE__ */ A.forwardRef(({
|
|
2085
2148
|
id: t,
|
|
2086
2149
|
bsPrefix: e,
|
|
@@ -2094,7 +2157,7 @@ const Oe = /* @__PURE__ */ A.forwardRef(({
|
|
|
2094
2157
|
}, c) => {
|
|
2095
2158
|
const {
|
|
2096
2159
|
controlId: u
|
|
2097
|
-
} =
|
|
2160
|
+
} = L(de);
|
|
2098
2161
|
return e = V(e, "form-check-input"), /* @__PURE__ */ s.jsx(i, {
|
|
2099
2162
|
...l,
|
|
2100
2163
|
ref: c,
|
|
@@ -2112,7 +2175,7 @@ const Ye = /* @__PURE__ */ A.forwardRef(({
|
|
|
2112
2175
|
}, o) => {
|
|
2113
2176
|
const {
|
|
2114
2177
|
controlId: a
|
|
2115
|
-
} =
|
|
2178
|
+
} = L(de);
|
|
2116
2179
|
return t = V(t, "form-check-label"), /* @__PURE__ */ s.jsx("label", {
|
|
2117
2180
|
...r,
|
|
2118
2181
|
ref: o,
|
|
@@ -2121,7 +2184,7 @@ const Ye = /* @__PURE__ */ A.forwardRef(({
|
|
|
2121
2184
|
});
|
|
2122
2185
|
});
|
|
2123
2186
|
Ye.displayName = "FormCheckLabel";
|
|
2124
|
-
const
|
|
2187
|
+
const Ln = /* @__PURE__ */ A.forwardRef(({
|
|
2125
2188
|
id: t,
|
|
2126
2189
|
bsPrefix: e,
|
|
2127
2190
|
bsSwitchPrefix: n,
|
|
@@ -2135,38 +2198,38 @@ const Dn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2135
2198
|
feedbackType: d,
|
|
2136
2199
|
className: h,
|
|
2137
2200
|
style: m,
|
|
2138
|
-
title:
|
|
2201
|
+
title: p = "",
|
|
2139
2202
|
type: b = "checkbox",
|
|
2140
2203
|
label: w,
|
|
2141
2204
|
children: f,
|
|
2142
2205
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2143
2206
|
as: j = "input",
|
|
2144
2207
|
...v
|
|
2145
|
-
},
|
|
2208
|
+
}, g) => {
|
|
2146
2209
|
e = V(e, "form-check"), n = V(n, "form-switch");
|
|
2147
2210
|
const {
|
|
2148
2211
|
controlId: C
|
|
2149
|
-
} =
|
|
2212
|
+
} = L(de), k = K(() => ({
|
|
2150
2213
|
controlId: t || C
|
|
2151
|
-
}), [C, t]), y = !f && w != null && w !== !1 ||
|
|
2214
|
+
}), [C, t]), y = !f && w != null && w !== !1 || hs(f, Ye), $ = /* @__PURE__ */ s.jsx(Oe, {
|
|
2152
2215
|
...v,
|
|
2153
2216
|
type: b === "switch" ? "checkbox" : b,
|
|
2154
|
-
ref:
|
|
2217
|
+
ref: g,
|
|
2155
2218
|
isValid: i,
|
|
2156
2219
|
isInvalid: l,
|
|
2157
2220
|
disabled: a,
|
|
2158
2221
|
as: j
|
|
2159
2222
|
});
|
|
2160
|
-
return /* @__PURE__ */ s.jsx(
|
|
2223
|
+
return /* @__PURE__ */ s.jsx(de.Provider, {
|
|
2161
2224
|
value: k,
|
|
2162
2225
|
children: /* @__PURE__ */ s.jsx("div", {
|
|
2163
2226
|
style: m,
|
|
2164
2227
|
className: x(h, y && e, r && `${e}-inline`, o && `${e}-reverse`, b === "switch" && n),
|
|
2165
2228
|
children: f || /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
2166
2229
|
children: [$, y && /* @__PURE__ */ s.jsx(Ye, {
|
|
2167
|
-
title:
|
|
2230
|
+
title: p,
|
|
2168
2231
|
children: w
|
|
2169
|
-
}), u && /* @__PURE__ */ s.jsx(
|
|
2232
|
+
}), u && /* @__PURE__ */ s.jsx(ze, {
|
|
2170
2233
|
type: d,
|
|
2171
2234
|
tooltip: c,
|
|
2172
2235
|
children: u
|
|
@@ -2175,11 +2238,11 @@ const Dn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2175
2238
|
})
|
|
2176
2239
|
});
|
|
2177
2240
|
});
|
|
2178
|
-
|
|
2179
|
-
const He = Object.assign(
|
|
2241
|
+
Ln.displayName = "FormCheck";
|
|
2242
|
+
const He = Object.assign(Ln, {
|
|
2180
2243
|
Input: Oe,
|
|
2181
2244
|
Label: Ye
|
|
2182
|
-
}),
|
|
2245
|
+
}), qn = /* @__PURE__ */ A.forwardRef(({
|
|
2183
2246
|
bsPrefix: t,
|
|
2184
2247
|
type: e,
|
|
2185
2248
|
size: n,
|
|
@@ -2195,22 +2258,22 @@ const He = Object.assign(Dn, {
|
|
|
2195
2258
|
...h
|
|
2196
2259
|
}, m) => {
|
|
2197
2260
|
const {
|
|
2198
|
-
controlId:
|
|
2199
|
-
} =
|
|
2200
|
-
return t = V(t, "form-control"), process.env.NODE_ENV !== "production" && it(
|
|
2261
|
+
controlId: p
|
|
2262
|
+
} = L(de);
|
|
2263
|
+
return t = V(t, "form-control"), process.env.NODE_ENV !== "production" && it(p == null || !o, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ s.jsx(d, {
|
|
2201
2264
|
...h,
|
|
2202
2265
|
type: e,
|
|
2203
2266
|
size: r,
|
|
2204
2267
|
ref: m,
|
|
2205
2268
|
readOnly: u,
|
|
2206
|
-
id: o ||
|
|
2269
|
+
id: o || p,
|
|
2207
2270
|
className: x(a, c ? `${t}-plaintext` : t, n && `${t}-${n}`, e === "color" && `${t}-color`, i && "is-valid", l && "is-invalid")
|
|
2208
2271
|
});
|
|
2209
2272
|
});
|
|
2210
|
-
|
|
2211
|
-
const
|
|
2212
|
-
Feedback:
|
|
2213
|
-
}),
|
|
2273
|
+
qn.displayName = "FormControl";
|
|
2274
|
+
const Yn = Object.assign(qn, {
|
|
2275
|
+
Feedback: ze
|
|
2276
|
+
}), Hn = /* @__PURE__ */ A.forwardRef(({
|
|
2214
2277
|
className: t,
|
|
2215
2278
|
bsPrefix: e,
|
|
2216
2279
|
as: n = "div",
|
|
@@ -2220,8 +2283,8 @@ const An = Object.assign(Pn, {
|
|
|
2220
2283
|
className: x(t, e),
|
|
2221
2284
|
...r
|
|
2222
2285
|
})));
|
|
2223
|
-
|
|
2224
|
-
const
|
|
2286
|
+
Hn.displayName = "FormFloating";
|
|
2287
|
+
const Bn = /* @__PURE__ */ A.forwardRef(({
|
|
2225
2288
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2226
2289
|
as: t = "label",
|
|
2227
2290
|
bsPrefix: e,
|
|
@@ -2233,12 +2296,12 @@ const Wn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2233
2296
|
}, l) => {
|
|
2234
2297
|
const {
|
|
2235
2298
|
controlId: c
|
|
2236
|
-
} =
|
|
2299
|
+
} = L(de);
|
|
2237
2300
|
e = V(e, "form-label");
|
|
2238
2301
|
let u = "col-form-label";
|
|
2239
2302
|
typeof n == "string" && (u = `${u} ${u}-${n}`);
|
|
2240
2303
|
const d = x(o, e, r && "visually-hidden", n && u);
|
|
2241
|
-
return process.env.NODE_ENV !== "production" && it(c == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || c, n ? /* @__PURE__ */ s.jsx(
|
|
2304
|
+
return process.env.NODE_ENV !== "production" && it(c == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || c, n ? /* @__PURE__ */ s.jsx(vn, {
|
|
2242
2305
|
ref: l,
|
|
2243
2306
|
as: "label",
|
|
2244
2307
|
className: d,
|
|
@@ -2254,8 +2317,8 @@ const Wn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2254
2317
|
})
|
|
2255
2318
|
);
|
|
2256
2319
|
});
|
|
2257
|
-
|
|
2258
|
-
const
|
|
2320
|
+
Bn.displayName = "FormLabel";
|
|
2321
|
+
const Gn = /* @__PURE__ */ A.forwardRef(({
|
|
2259
2322
|
bsPrefix: t,
|
|
2260
2323
|
className: e,
|
|
2261
2324
|
id: n,
|
|
@@ -2263,7 +2326,7 @@ const Rn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2263
2326
|
}, o) => {
|
|
2264
2327
|
const {
|
|
2265
2328
|
controlId: a
|
|
2266
|
-
} =
|
|
2329
|
+
} = L(de);
|
|
2267
2330
|
return t = V(t, "form-range"), /* @__PURE__ */ s.jsx("input", {
|
|
2268
2331
|
...r,
|
|
2269
2332
|
type: "range",
|
|
@@ -2272,8 +2335,8 @@ const Rn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2272
2335
|
id: n || a
|
|
2273
2336
|
});
|
|
2274
2337
|
});
|
|
2275
|
-
|
|
2276
|
-
const
|
|
2338
|
+
Gn.displayName = "FormRange";
|
|
2339
|
+
const Vn = /* @__PURE__ */ A.forwardRef(({
|
|
2277
2340
|
bsPrefix: t,
|
|
2278
2341
|
size: e,
|
|
2279
2342
|
htmlSize: n,
|
|
@@ -2285,7 +2348,7 @@ const qn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2285
2348
|
}, c) => {
|
|
2286
2349
|
const {
|
|
2287
2350
|
controlId: u
|
|
2288
|
-
} =
|
|
2351
|
+
} = L(de);
|
|
2289
2352
|
return t = V(t, "form-select"), /* @__PURE__ */ s.jsx("select", {
|
|
2290
2353
|
...l,
|
|
2291
2354
|
size: n,
|
|
@@ -2294,8 +2357,8 @@ const qn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2294
2357
|
id: i || u
|
|
2295
2358
|
});
|
|
2296
2359
|
});
|
|
2297
|
-
|
|
2298
|
-
const
|
|
2360
|
+
Vn.displayName = "FormSelect";
|
|
2361
|
+
const Un = /* @__PURE__ */ A.forwardRef(
|
|
2299
2362
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2300
2363
|
({
|
|
2301
2364
|
bsPrefix: t,
|
|
@@ -2309,17 +2372,17 @@ const Ln = /* @__PURE__ */ A.forwardRef(
|
|
|
2309
2372
|
className: x(e, t, r && "text-muted")
|
|
2310
2373
|
}))
|
|
2311
2374
|
);
|
|
2312
|
-
|
|
2313
|
-
const
|
|
2375
|
+
Un.displayName = "FormText";
|
|
2376
|
+
const zn = /* @__PURE__ */ A.forwardRef((t, e) => /* @__PURE__ */ s.jsx(He, {
|
|
2314
2377
|
...t,
|
|
2315
2378
|
ref: e,
|
|
2316
2379
|
type: "switch"
|
|
2317
2380
|
}));
|
|
2318
|
-
|
|
2319
|
-
const
|
|
2381
|
+
zn.displayName = "Switch";
|
|
2382
|
+
const Os = Object.assign(zn, {
|
|
2320
2383
|
Input: He.Input,
|
|
2321
2384
|
Label: He.Label
|
|
2322
|
-
}),
|
|
2385
|
+
}), Ms = {
|
|
2323
2386
|
/**
|
|
2324
2387
|
* The Form `ref` will be forwarded to the underlying element,
|
|
2325
2388
|
* which means, unless it's rendered `as` a composite component,
|
|
@@ -2335,7 +2398,7 @@ const ks = Object.assign(Yn, {
|
|
|
2335
2398
|
*/
|
|
2336
2399
|
validated: be.bool,
|
|
2337
2400
|
as: be.elementType
|
|
2338
|
-
},
|
|
2401
|
+
}, pt = /* @__PURE__ */ A.forwardRef(({
|
|
2339
2402
|
className: t,
|
|
2340
2403
|
validated: e,
|
|
2341
2404
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -2346,20 +2409,20 @@ const ks = Object.assign(Yn, {
|
|
|
2346
2409
|
ref: o,
|
|
2347
2410
|
className: x(t, e && "was-validated")
|
|
2348
2411
|
}));
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
const ee = Object.assign(
|
|
2352
|
-
Group:
|
|
2353
|
-
Control:
|
|
2354
|
-
Floating:
|
|
2412
|
+
pt.displayName = "Form";
|
|
2413
|
+
pt.propTypes = Ms;
|
|
2414
|
+
const ee = Object.assign(pt, {
|
|
2415
|
+
Group: jr,
|
|
2416
|
+
Control: Yn,
|
|
2417
|
+
Floating: Hn,
|
|
2355
2418
|
Check: He,
|
|
2356
|
-
Switch:
|
|
2357
|
-
Label:
|
|
2358
|
-
Text:
|
|
2359
|
-
Range:
|
|
2360
|
-
Select:
|
|
2361
|
-
FloatingLabel:
|
|
2362
|
-
}),
|
|
2419
|
+
Switch: Os,
|
|
2420
|
+
Label: Bn,
|
|
2421
|
+
Text: Un,
|
|
2422
|
+
Range: Gn,
|
|
2423
|
+
Select: Vn,
|
|
2424
|
+
FloatingLabel: kr
|
|
2425
|
+
}), Ke = /* @__PURE__ */ A.forwardRef(({
|
|
2363
2426
|
className: t,
|
|
2364
2427
|
bsPrefix: e,
|
|
2365
2428
|
as: n = "span",
|
|
@@ -2369,18 +2432,18 @@ const ee = Object.assign(ft, {
|
|
|
2369
2432
|
className: x(t, e),
|
|
2370
2433
|
...r
|
|
2371
2434
|
})));
|
|
2372
|
-
|
|
2373
|
-
const
|
|
2435
|
+
Ke.displayName = "InputGroupText";
|
|
2436
|
+
const Ds = (t) => /* @__PURE__ */ s.jsx(Ke, {
|
|
2374
2437
|
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2375
2438
|
type: "checkbox",
|
|
2376
2439
|
...t
|
|
2377
2440
|
})
|
|
2378
|
-
}),
|
|
2441
|
+
}), Ps = (t) => /* @__PURE__ */ s.jsx(Ke, {
|
|
2379
2442
|
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2380
2443
|
type: "radio",
|
|
2381
2444
|
...t
|
|
2382
2445
|
})
|
|
2383
|
-
}),
|
|
2446
|
+
}), Kn = /* @__PURE__ */ A.forwardRef(({
|
|
2384
2447
|
bsPrefix: t,
|
|
2385
2448
|
size: e,
|
|
2386
2449
|
hasValidation: n,
|
|
@@ -2390,7 +2453,7 @@ const Ns = (t) => /* @__PURE__ */ s.jsx(ze, {
|
|
|
2390
2453
|
...a
|
|
2391
2454
|
}, i) => {
|
|
2392
2455
|
t = V(t, "input-group");
|
|
2393
|
-
const l =
|
|
2456
|
+
const l = K(() => ({}), []);
|
|
2394
2457
|
return /* @__PURE__ */ s.jsx(Ue.Provider, {
|
|
2395
2458
|
value: l,
|
|
2396
2459
|
children: /* @__PURE__ */ s.jsx(o, {
|
|
@@ -2400,12 +2463,12 @@ const Ns = (t) => /* @__PURE__ */ s.jsx(ze, {
|
|
|
2400
2463
|
})
|
|
2401
2464
|
});
|
|
2402
2465
|
});
|
|
2403
|
-
|
|
2404
|
-
const et = Object.assign(
|
|
2405
|
-
Text:
|
|
2406
|
-
Radio:
|
|
2407
|
-
Checkbox:
|
|
2408
|
-
}),
|
|
2466
|
+
Kn.displayName = "InputGroup";
|
|
2467
|
+
const et = Object.assign(Kn, {
|
|
2468
|
+
Text: Ke,
|
|
2469
|
+
Radio: Ps,
|
|
2470
|
+
Checkbox: Ds
|
|
2471
|
+
}), gt = /* @__PURE__ */ A.forwardRef(({
|
|
2409
2472
|
bsPrefix: t,
|
|
2410
2473
|
variant: e,
|
|
2411
2474
|
animation: n = "border",
|
|
@@ -2423,86 +2486,86 @@ const et = Object.assign(Hn, {
|
|
|
2423
2486
|
className: x(a, c, r && `${c}-${r}`, e && `text-${e}`)
|
|
2424
2487
|
});
|
|
2425
2488
|
});
|
|
2426
|
-
|
|
2489
|
+
gt.displayName = "Spinner";
|
|
2427
2490
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2428
|
-
const
|
|
2491
|
+
const Qn = "client_info_decoding_error", Xn = "client_info_empty_error", As = "token_parsing_error", Fs = "null_or_empty_token", Ws = "endpoints_resolution_error", Rs = "network_error", Ls = "openid_config_error", qs = "hash_not_deserialized", Ys = "invalid_state", Hs = "state_mismatch", Bs = "state_not_found", Gs = "nonce_mismatch", Vs = "auth_time_not_found", Us = "max_age_transpired", zs = "multiple_matching_tokens", Ks = "multiple_matching_accounts", Qs = "multiple_matching_appMetadata", Xs = "request_cannot_be_made", Js = "cannot_remove_empty_scope", Zs = "cannot_append_scopeset", ea = "empty_input_scopeset", ta = "device_code_polling_cancelled", na = "device_code_expired", ra = "device_code_unknown_error", oa = "no_account_in_silent_request", sa = "invalid_cache_record", Jn = "invalid_cache_environment", aa = "no_account_found", ia = "no_crypto_object", ca = "unexpected_credential_type", la = "invalid_assertion", ua = "invalid_client_credential", da = "token_refresh_required", ha = "user_timeout_reached", ma = "token_claims_cnf_required_for_signedjwt", fa = "authorization_code_missing_from_server_response", pa = "binding_key_not_removed", ga = "end_session_endpoint_not_supported", wa = "key_id_missing", xa = "no_network_connectivity", ya = "user_canceled", va = "missing_tenant_id_error", ba = "method_not_implemented", _a = "nested_app_auth_bridge_disabled";
|
|
2429
2492
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2430
|
-
const
|
|
2431
|
-
[
|
|
2432
|
-
[
|
|
2433
|
-
[
|
|
2434
|
-
[
|
|
2435
|
-
[
|
|
2436
|
-
[
|
|
2437
|
-
[
|
|
2438
|
-
[
|
|
2439
|
-
[
|
|
2440
|
-
[
|
|
2441
|
-
[
|
|
2442
|
-
[
|
|
2443
|
-
[
|
|
2444
|
-
[
|
|
2445
|
-
[
|
|
2446
|
-
[
|
|
2447
|
-
[
|
|
2448
|
-
[
|
|
2449
|
-
[
|
|
2450
|
-
[
|
|
2451
|
-
[
|
|
2452
|
-
[
|
|
2453
|
-
[
|
|
2454
|
-
[
|
|
2455
|
-
[
|
|
2456
|
-
[
|
|
2457
|
-
[
|
|
2458
|
-
[
|
|
2459
|
-
[
|
|
2460
|
-
[
|
|
2461
|
-
[
|
|
2462
|
-
[
|
|
2463
|
-
[
|
|
2464
|
-
[
|
|
2465
|
-
[
|
|
2466
|
-
[
|
|
2467
|
-
[
|
|
2468
|
-
[
|
|
2469
|
-
[
|
|
2470
|
-
[
|
|
2471
|
-
[
|
|
2472
|
-
[
|
|
2473
|
-
[
|
|
2474
|
-
[
|
|
2493
|
+
const Pt = {
|
|
2494
|
+
[Qn]: "The client info could not be parsed/decoded correctly",
|
|
2495
|
+
[Xn]: "The client info was empty",
|
|
2496
|
+
[As]: "Token cannot be parsed",
|
|
2497
|
+
[Fs]: "The token is null or empty",
|
|
2498
|
+
[Ws]: "Endpoints cannot be resolved",
|
|
2499
|
+
[Rs]: "Network request failed",
|
|
2500
|
+
[Ls]: "Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",
|
|
2501
|
+
[qs]: "The hash parameters could not be deserialized",
|
|
2502
|
+
[Ys]: "State was not the expected format",
|
|
2503
|
+
[Hs]: "State mismatch error",
|
|
2504
|
+
[Bs]: "State not found",
|
|
2505
|
+
[Gs]: "Nonce mismatch error",
|
|
2506
|
+
[Vs]: "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.",
|
|
2507
|
+
[Us]: "Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",
|
|
2508
|
+
[zs]: "The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",
|
|
2509
|
+
[Ks]: "The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",
|
|
2510
|
+
[Qs]: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",
|
|
2511
|
+
[Xs]: "Token request cannot be made without authorization code or refresh token.",
|
|
2512
|
+
[Js]: "Cannot remove null or empty scope from ScopeSet",
|
|
2513
|
+
[Zs]: "Cannot append ScopeSet",
|
|
2514
|
+
[ea]: "Empty input ScopeSet cannot be processed",
|
|
2515
|
+
[ta]: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",
|
|
2516
|
+
[na]: "Device code is expired.",
|
|
2517
|
+
[ra]: "Device code stopped polling for unknown reasons.",
|
|
2518
|
+
[oa]: "Please pass an account object, silent flow is not supported without account information",
|
|
2519
|
+
[sa]: "Cache record object was null or undefined.",
|
|
2520
|
+
[Jn]: "Invalid environment when attempting to create cache entry",
|
|
2521
|
+
[aa]: "No account found in cache for given key.",
|
|
2522
|
+
[ia]: "No crypto object detected.",
|
|
2523
|
+
[ca]: "Unexpected credential type.",
|
|
2524
|
+
[la]: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",
|
|
2525
|
+
[ua]: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",
|
|
2526
|
+
[da]: "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.",
|
|
2527
|
+
[ha]: "User defined timeout for device code polling reached",
|
|
2528
|
+
[ma]: "Cannot generate a POP jwt if the token_claims are not populated",
|
|
2529
|
+
[fa]: "Server response does not contain an authorization code to proceed",
|
|
2530
|
+
[pa]: "Could not remove the credential's binding key from storage.",
|
|
2531
|
+
[ga]: "The provided authority does not support logout",
|
|
2532
|
+
[wa]: "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.",
|
|
2533
|
+
[xa]: "No network connectivity. Check your internet connection.",
|
|
2534
|
+
[ya]: "User cancelled the flow.",
|
|
2535
|
+
[va]: "A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",
|
|
2536
|
+
[ba]: "This method has not been implemented",
|
|
2537
|
+
[_a]: "The nested app auth bridge is disabled"
|
|
2475
2538
|
};
|
|
2476
|
-
class
|
|
2539
|
+
class wt extends ct {
|
|
2477
2540
|
constructor(e, n) {
|
|
2478
|
-
super(e, n ? `${
|
|
2541
|
+
super(e, n ? `${Pt[e]}: ${n}` : Pt[e]), this.name = "ClientAuthError", Object.setPrototypeOf(this, wt.prototype);
|
|
2479
2542
|
}
|
|
2480
2543
|
}
|
|
2481
2544
|
function ot(t, e) {
|
|
2482
|
-
return new
|
|
2545
|
+
return new wt(t, e);
|
|
2483
2546
|
}
|
|
2484
2547
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2485
|
-
function
|
|
2548
|
+
function At(t, e) {
|
|
2486
2549
|
if (!t)
|
|
2487
|
-
throw ot(
|
|
2550
|
+
throw ot(Xn);
|
|
2488
2551
|
try {
|
|
2489
2552
|
const n = e(t);
|
|
2490
2553
|
return JSON.parse(n);
|
|
2491
2554
|
} catch {
|
|
2492
|
-
throw ot(
|
|
2555
|
+
throw ot(Qn);
|
|
2493
2556
|
}
|
|
2494
2557
|
}
|
|
2495
2558
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2496
|
-
function
|
|
2559
|
+
function ja(t, e) {
|
|
2497
2560
|
return !!t && !!e && t === e.split(".")[1];
|
|
2498
2561
|
}
|
|
2499
|
-
function
|
|
2562
|
+
function ka(t, e) {
|
|
2500
2563
|
const { oid: n, sub: r, tid: o, name: a, tfp: i, acr: l } = e, c = o || i || l || "";
|
|
2501
2564
|
return {
|
|
2502
2565
|
tenantId: c,
|
|
2503
2566
|
localAccountId: n || r || "",
|
|
2504
2567
|
name: a,
|
|
2505
|
-
isHomeTenant:
|
|
2568
|
+
isHomeTenant: ja(c, t)
|
|
2506
2569
|
};
|
|
2507
2570
|
}
|
|
2508
2571
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
@@ -2513,11 +2576,11 @@ const tt = {
|
|
|
2513
2576
|
Ciam: 3
|
|
2514
2577
|
};
|
|
2515
2578
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2516
|
-
function
|
|
2579
|
+
function Ca(t) {
|
|
2517
2580
|
return t && (t.tid || t.tfp || t.acr) || null;
|
|
2518
2581
|
}
|
|
2519
2582
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2520
|
-
const
|
|
2583
|
+
const Na = {
|
|
2521
2584
|
AAD: "AAD",
|
|
2522
2585
|
OIDC: "OIDC"
|
|
2523
2586
|
};
|
|
@@ -2527,7 +2590,7 @@ class Ie {
|
|
|
2527
2590
|
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
2528
2591
|
*/
|
|
2529
2592
|
generateAccountId() {
|
|
2530
|
-
return [this.homeAccountId, this.environment].join(
|
|
2593
|
+
return [this.homeAccountId, this.environment].join(_t.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
2531
2594
|
}
|
|
2532
2595
|
/**
|
|
2533
2596
|
* Generate Account Cache Key as per the schema: <home_account_id>-<environment>-<realm*>
|
|
@@ -2574,7 +2637,7 @@ class Ie {
|
|
|
2574
2637
|
e.homeAccountId,
|
|
2575
2638
|
e.environment || "",
|
|
2576
2639
|
n || e.tenantId || ""
|
|
2577
|
-
].join(
|
|
2640
|
+
].join(_t.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
2578
2641
|
}
|
|
2579
2642
|
/**
|
|
2580
2643
|
* Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD.
|
|
@@ -2582,20 +2645,20 @@ class Ie {
|
|
|
2582
2645
|
*/
|
|
2583
2646
|
static createAccount(e, n, r) {
|
|
2584
2647
|
const o = new Ie();
|
|
2585
|
-
n.authorityType === tt.Adfs ? o.authorityType = De.ADFS_ACCOUNT_TYPE : n.protocolMode ===
|
|
2648
|
+
n.authorityType === tt.Adfs ? o.authorityType = De.ADFS_ACCOUNT_TYPE : n.protocolMode === Na.AAD ? o.authorityType = De.MSSTS_ACCOUNT_TYPE : o.authorityType = De.GENERIC_ACCOUNT_TYPE;
|
|
2586
2649
|
let a;
|
|
2587
|
-
e.clientInfo && r && (a =
|
|
2650
|
+
e.clientInfo && r && (a = At(e.clientInfo, r)), o.clientInfo = e.clientInfo, o.homeAccountId = e.homeAccountId, o.nativeAccountId = e.nativeAccountId;
|
|
2588
2651
|
const i = e.environment || n && n.getPreferredCache();
|
|
2589
2652
|
if (!i)
|
|
2590
|
-
throw ot(
|
|
2591
|
-
o.environment = i, o.realm = (a == null ? void 0 : a.utid) ||
|
|
2653
|
+
throw ot(Jn);
|
|
2654
|
+
o.environment = i, o.realm = (a == null ? void 0 : a.utid) || Ca(e.idTokenClaims) || "", o.localAccountId = (a == null ? void 0 : a.uid) || e.idTokenClaims.oid || e.idTokenClaims.sub || "";
|
|
2592
2655
|
const l = e.idTokenClaims.preferred_username || e.idTokenClaims.upn, c = e.idTokenClaims.emails ? e.idTokenClaims.emails[0] : null;
|
|
2593
2656
|
if (o.username = l || c || "", o.name = e.idTokenClaims.name, o.cloudGraphHostName = e.cloudGraphHostName, o.msGraphHost = e.msGraphHost, e.tenantProfiles)
|
|
2594
2657
|
o.tenantProfiles = e.tenantProfiles;
|
|
2595
2658
|
else {
|
|
2596
2659
|
const u = [];
|
|
2597
2660
|
if (e.idTokenClaims) {
|
|
2598
|
-
const d =
|
|
2661
|
+
const d = ka(e.homeAccountId, e.idTokenClaims);
|
|
2599
2662
|
u.push(d);
|
|
2600
2663
|
}
|
|
2601
2664
|
o.tenantProfiles = u;
|
|
@@ -2623,7 +2686,7 @@ class Ie {
|
|
|
2623
2686
|
if (!(n === tt.Adfs || n === tt.Dsts)) {
|
|
2624
2687
|
if (e)
|
|
2625
2688
|
try {
|
|
2626
|
-
const i =
|
|
2689
|
+
const i = At(e, o.base64Decode);
|
|
2627
2690
|
if (i.uid && i.utid)
|
|
2628
2691
|
return `${i.uid}.${i.utid}`;
|
|
2629
2692
|
} catch {
|
|
@@ -2657,20 +2720,20 @@ class Ie {
|
|
|
2657
2720
|
}
|
|
2658
2721
|
}
|
|
2659
2722
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2660
|
-
class
|
|
2723
|
+
class xt extends ct {
|
|
2661
2724
|
constructor(e, n, r, o, a, i, l, c) {
|
|
2662
|
-
super(e, n, r), Object.setPrototypeOf(this,
|
|
2725
|
+
super(e, n, r), Object.setPrototypeOf(this, xt.prototype), this.timestamp = o || Pe.EMPTY_STRING, this.traceId = a || Pe.EMPTY_STRING, this.correlationId = i || Pe.EMPTY_STRING, this.claims = l || Pe.EMPTY_STRING, this.name = "InteractionRequiredAuthError", this.errorNo = c;
|
|
2663
2726
|
}
|
|
2664
2727
|
}
|
|
2665
2728
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2666
|
-
function
|
|
2667
|
-
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? t.getActiveAccount() :
|
|
2729
|
+
function Ft(t, e) {
|
|
2730
|
+
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? t.getActiveAccount() : Cr(t.getAllAccounts(), e);
|
|
2668
2731
|
}
|
|
2669
|
-
function
|
|
2670
|
-
const { instance: e, inProgress: n, logger: r } = lt(), [o, a] = P(() =>
|
|
2732
|
+
function $a(t) {
|
|
2733
|
+
const { instance: e, inProgress: n, logger: r } = lt(), [o, a] = P(() => Ft(e, t));
|
|
2671
2734
|
return D(() => {
|
|
2672
2735
|
a((i) => {
|
|
2673
|
-
const l =
|
|
2736
|
+
const l = Ft(e, t);
|
|
2674
2737
|
return Ie.accountInfoIsEqual(i, l, !0) ? i : (r.info("useAccount - Updating account"), l);
|
|
2675
2738
|
});
|
|
2676
2739
|
}, [n, t, e, r]), o;
|
|
@@ -2698,8 +2761,8 @@ class _e extends ct {
|
|
|
2698
2761
|
}
|
|
2699
2762
|
}
|
|
2700
2763
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2701
|
-
function
|
|
2702
|
-
const { instance: r, inProgress: o, logger: a } = lt(), i =
|
|
2764
|
+
function Ia(t, e, n) {
|
|
2765
|
+
const { instance: r, inProgress: o, logger: a } = lt(), i = zt(n), l = $a(n), [[c, u], d] = P([null, null]), h = Y(!0);
|
|
2703
2766
|
D(() => () => {
|
|
2704
2767
|
h.current = !1;
|
|
2705
2768
|
}, []);
|
|
@@ -2707,44 +2770,44 @@ function va(t, e, n) {
|
|
|
2707
2770
|
D(() => {
|
|
2708
2771
|
m.current = o !== $e.None;
|
|
2709
2772
|
}, [o]);
|
|
2710
|
-
const
|
|
2773
|
+
const p = Y(!0);
|
|
2711
2774
|
D(() => {
|
|
2712
2775
|
if (u) {
|
|
2713
|
-
|
|
2776
|
+
p.current = !1;
|
|
2714
2777
|
return;
|
|
2715
2778
|
}
|
|
2716
2779
|
if (c) {
|
|
2717
|
-
|
|
2780
|
+
p.current = !1;
|
|
2718
2781
|
return;
|
|
2719
2782
|
}
|
|
2720
2783
|
}, [u, c]);
|
|
2721
2784
|
const b = O(async (f, j) => {
|
|
2722
|
-
const v = f || t,
|
|
2785
|
+
const v = f || t, g = j || e;
|
|
2723
2786
|
switch (v) {
|
|
2724
2787
|
case Re.Popup:
|
|
2725
|
-
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(
|
|
2788
|
+
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(g);
|
|
2726
2789
|
case Re.Redirect:
|
|
2727
|
-
return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(
|
|
2790
|
+
return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(g).then(null);
|
|
2728
2791
|
case Re.Silent:
|
|
2729
|
-
return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(
|
|
2792
|
+
return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(g);
|
|
2730
2793
|
default:
|
|
2731
2794
|
throw _e.createInvalidInteractionTypeError();
|
|
2732
2795
|
}
|
|
2733
2796
|
}, [r, t, e, a]), w = O(async (f, j) => {
|
|
2734
2797
|
const v = f || t;
|
|
2735
|
-
let
|
|
2736
|
-
return j ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"),
|
|
2798
|
+
let g;
|
|
2799
|
+
return j ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), g = {
|
|
2737
2800
|
...j
|
|
2738
|
-
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"),
|
|
2801
|
+
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"), g = {
|
|
2739
2802
|
...e,
|
|
2740
|
-
scopes: e.scopes ||
|
|
2741
|
-
}) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."),
|
|
2742
|
-
scopes:
|
|
2743
|
-
}), !
|
|
2744
|
-
if (k instanceof
|
|
2803
|
+
scopes: e.scopes || jt
|
|
2804
|
+
}) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."), g = {
|
|
2805
|
+
scopes: jt
|
|
2806
|
+
}), !g.account && l && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), g.account = l), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), r.acquireTokenSilent(g).catch(async (k) => {
|
|
2807
|
+
if (k instanceof xt) {
|
|
2745
2808
|
if (m.current)
|
|
2746
2809
|
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), _e.createUnableToFallbackToInteractionError();
|
|
2747
|
-
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), b(v,
|
|
2810
|
+
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), b(v, g);
|
|
2748
2811
|
}
|
|
2749
2812
|
throw k;
|
|
2750
2813
|
})))().then((k) => (h.current && d([k, null]), k)).catch((k) => {
|
|
@@ -2778,7 +2841,7 @@ function va(t, e, n) {
|
|
|
2778
2841
|
f && (a.verbose(`useMsalAuthentication - Removing event callback ${f}`), r.removeEventCallback(f));
|
|
2779
2842
|
};
|
|
2780
2843
|
}, [r, a]), D(() => {
|
|
2781
|
-
|
|
2844
|
+
p.current && o === $e.None && (p.current = !1, i ? l && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), w().catch(() => {
|
|
2782
2845
|
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"), b().catch(() => {
|
|
2783
2846
|
})));
|
|
2784
2847
|
}, [i, l, o, b, w, a]), {
|
|
@@ -2789,50 +2852,50 @@ function va(t, e, n) {
|
|
|
2789
2852
|
};
|
|
2790
2853
|
}
|
|
2791
2854
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2792
|
-
function
|
|
2793
|
-
const c =
|
|
2855
|
+
function Sa({ interactionType: t, username: e, homeAccountId: n, localAccountId: r, authenticationRequest: o, loadingComponent: a, errorComponent: i, children: l }) {
|
|
2856
|
+
const c = K(() => ({
|
|
2794
2857
|
username: e,
|
|
2795
2858
|
homeAccountId: n,
|
|
2796
2859
|
localAccountId: r
|
|
2797
|
-
}), [e, n, r]), u = lt(), d =
|
|
2860
|
+
}), [e, n, r]), u = lt(), d = Ia(t, o, c), h = zt(c);
|
|
2798
2861
|
if (d.error && u.inProgress === $e.None) {
|
|
2799
2862
|
if (i)
|
|
2800
2863
|
return Z.createElement(i, { ...d });
|
|
2801
2864
|
throw d.error;
|
|
2802
2865
|
}
|
|
2803
|
-
return h ? Z.createElement(Z.Fragment, null,
|
|
2804
|
-
}
|
|
2805
|
-
const
|
|
2806
|
-
button:
|
|
2807
|
-
filled:
|
|
2808
|
-
sm:
|
|
2809
|
-
md:
|
|
2810
|
-
lg:
|
|
2811
|
-
},
|
|
2812
|
-
const { LinkComponent: i } =
|
|
2866
|
+
return h ? Z.createElement(Z.Fragment, null, Nr(l, d)) : a && u.inProgress !== $e.None ? Z.createElement(a, { ...u }) : null;
|
|
2867
|
+
}
|
|
2868
|
+
const Ta = "_button_1wjon_1", Ea = "_filled_1wjon_7", Oa = "_sm_1wjon_13", Ma = "_md_1wjon_18", Da = "_lg_1wjon_23", ve = {
|
|
2869
|
+
button: Ta,
|
|
2870
|
+
filled: Ea,
|
|
2871
|
+
sm: Oa,
|
|
2872
|
+
md: Ma,
|
|
2873
|
+
lg: Da
|
|
2874
|
+
}, Wt = ({ variant: t = "filled", color: e = "primary", size: n = "md", className: r, children: o, ...a }) => {
|
|
2875
|
+
const { LinkComponent: i } = L(ie);
|
|
2813
2876
|
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;
|
|
2814
|
-
},
|
|
2877
|
+
}, Pa = "_submit-container_a9slg_1", Aa = "_spacer_a9slg_14", Rt = {
|
|
2815
2878
|
"submit-container": "_submit-container_a9slg_1",
|
|
2816
|
-
submitContainer:
|
|
2817
|
-
spacer:
|
|
2818
|
-
},
|
|
2819
|
-
const { formSubmitTexts: n } =
|
|
2879
|
+
submitContainer: Pa,
|
|
2880
|
+
spacer: Aa
|
|
2881
|
+
}, Fa = ({ children: t, onStorno: e }) => {
|
|
2882
|
+
const { formSubmitTexts: n } = L(ie);
|
|
2820
2883
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2821
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2822
|
-
/* @__PURE__ */ s.jsxs("div", { className: x("luminus-floating-submit-container shadow",
|
|
2823
|
-
/* @__PURE__ */ s.jsxs(
|
|
2824
|
-
/* @__PURE__ */ s.jsx(
|
|
2884
|
+
/* @__PURE__ */ s.jsx("div", { className: Rt.spacer }),
|
|
2885
|
+
/* @__PURE__ */ s.jsxs("div", { className: x("luminus-floating-submit-container shadow", Rt.submitContainer), children: [
|
|
2886
|
+
/* @__PURE__ */ s.jsxs(Wt, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
2887
|
+
/* @__PURE__ */ s.jsx($r, {}),
|
|
2825
2888
|
t
|
|
2826
2889
|
] }),
|
|
2827
|
-
e && /* @__PURE__ */ s.jsxs(
|
|
2828
|
-
/* @__PURE__ */ s.jsx(
|
|
2890
|
+
e && /* @__PURE__ */ s.jsxs(Wt, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: e, children: [
|
|
2891
|
+
/* @__PURE__ */ s.jsx(Ir, {}),
|
|
2829
2892
|
n.storno
|
|
2830
2893
|
] })
|
|
2831
2894
|
] })
|
|
2832
2895
|
] });
|
|
2833
|
-
},
|
|
2834
|
-
button:
|
|
2835
|
-
},
|
|
2896
|
+
}, Wa = "_button_1r3i0_1", st = {
|
|
2897
|
+
button: Wa
|
|
2898
|
+
}, Ra = ({
|
|
2836
2899
|
color: t = "primary",
|
|
2837
2900
|
// icon = <MdOutlineArrowOutward size={10} />,
|
|
2838
2901
|
icon: e,
|
|
@@ -2840,7 +2903,7 @@ const _a = "_button_1wjon_1", ja = "_filled_1wjon_7", ka = "_sm_1wjon_13", Ca =
|
|
|
2840
2903
|
children: r,
|
|
2841
2904
|
...o
|
|
2842
2905
|
}) => {
|
|
2843
|
-
const { LinkComponent: a } =
|
|
2906
|
+
const { LinkComponent: a } = L(ie);
|
|
2844
2907
|
return o.as === "link" ? /* @__PURE__ */ s.jsxs(a, { to: o.href ?? "/", className: x(`luminus-context-button btn text-${t} ${n ?? ""}`, st.button), ...o, children: [
|
|
2845
2908
|
e,
|
|
2846
2909
|
r
|
|
@@ -2848,7 +2911,7 @@ const _a = "_button_1wjon_1", ja = "_filled_1wjon_7", ka = "_sm_1wjon_13", Ca =
|
|
|
2848
2911
|
e,
|
|
2849
2912
|
r
|
|
2850
2913
|
] }) : null;
|
|
2851
|
-
},
|
|
2914
|
+
}, Zn = ({ color: t = "primary", icon: e = /* @__PURE__ */ s.jsx(Kt, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, className: a, children: i, multiple: l, ...c }) => {
|
|
2852
2915
|
const u = (d) => {
|
|
2853
2916
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
2854
2917
|
};
|
|
@@ -2859,52 +2922,52 @@ const _a = "_button_1wjon_1", ja = "_filled_1wjon_7", ka = "_sm_1wjon_13", Ca =
|
|
|
2859
2922
|
] }),
|
|
2860
2923
|
/* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: l })
|
|
2861
2924
|
] });
|
|
2862
|
-
},
|
|
2925
|
+
}, La = "_icon-button_15e26_1", qa = "_sm_15e26_14", Ya = "_md_15e26_23", Ha = "_lg_15e26_32", Lt = {
|
|
2863
2926
|
"icon-button": "_icon-button_15e26_1",
|
|
2864
|
-
iconButton:
|
|
2865
|
-
sm:
|
|
2866
|
-
md:
|
|
2867
|
-
lg:
|
|
2927
|
+
iconButton: La,
|
|
2928
|
+
sm: qa,
|
|
2929
|
+
md: Ya,
|
|
2930
|
+
lg: Ha
|
|
2868
2931
|
}, J = ({ type: t = "button", color: e = "primary", size: n = "md", children: r, className: o, ...a }) => /* @__PURE__ */ s.jsx(
|
|
2869
2932
|
"button",
|
|
2870
2933
|
{
|
|
2871
2934
|
type: t,
|
|
2872
|
-
className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`,
|
|
2935
|
+
className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`, Lt.iconButton, Lt[n]),
|
|
2873
2936
|
...a,
|
|
2874
2937
|
children: r
|
|
2875
2938
|
}
|
|
2876
|
-
),
|
|
2939
|
+
), Sc = ({ month: t, onChangeMonth: e, locale: n }) => {
|
|
2877
2940
|
const r = O((o) => {
|
|
2878
|
-
e(
|
|
2941
|
+
e(cn(t, o));
|
|
2879
2942
|
}, [t, e]);
|
|
2880
2943
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2881
2944
|
/* @__PURE__ */ s.jsx(J, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(ut, {}) }),
|
|
2882
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
2945
|
+
/* @__PURE__ */ s.jsx("div", { children: hn(t, "LLLL yyyy", { locale: n }) }),
|
|
2883
2946
|
/* @__PURE__ */ s.jsx(J, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2884
2947
|
] });
|
|
2885
|
-
},
|
|
2948
|
+
}, Tc = ({ year: t, onChangeYear: e, locale: n }) => {
|
|
2886
2949
|
const r = O((o) => {
|
|
2887
|
-
e(
|
|
2950
|
+
e(Qr(t, o));
|
|
2888
2951
|
}, [t, e]);
|
|
2889
2952
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2890
2953
|
/* @__PURE__ */ s.jsx(J, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(ut, {}) }),
|
|
2891
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
2954
|
+
/* @__PURE__ */ s.jsx("div", { children: hn(t, "yyyy", { locale: n }) }),
|
|
2892
2955
|
/* @__PURE__ */ s.jsx(J, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2893
2956
|
] });
|
|
2894
|
-
},
|
|
2895
|
-
widget:
|
|
2896
|
-
},
|
|
2957
|
+
}, Ba = "_widget_etgh3_1", Ga = {
|
|
2958
|
+
widget: Ba
|
|
2959
|
+
}, Va = ({ show: t, widgets: e, handleClose: n, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ s.jsxs(Fe, { show: t, onHide: () => n(), children: [
|
|
2897
2960
|
/* @__PURE__ */ s.jsx(Fe.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Fe.Title, { children: o.pickWidgetToAdd }) }),
|
|
2898
2961
|
/* @__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 }) })) }) })
|
|
2899
|
-
] }),
|
|
2962
|
+
] }), qt = ({ availableWidgets: t, onAdd: e, texts: n }) => {
|
|
2900
2963
|
const [r, o] = P(!1);
|
|
2901
2964
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2902
|
-
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget",
|
|
2903
|
-
/* @__PURE__ */ s.jsx(
|
|
2965
|
+
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget", Ga.widget), children: /* @__PURE__ */ s.jsx(J, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(Sr, {}) }) }),
|
|
2966
|
+
/* @__PURE__ */ s.jsx(Va, { show: r, widgets: t, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
2904
2967
|
o(!1), e(a);
|
|
2905
2968
|
}, texts: n })
|
|
2906
2969
|
] });
|
|
2907
|
-
},
|
|
2970
|
+
}, Ua = (t) => {
|
|
2908
2971
|
const [e, n] = P({ widgets: [] });
|
|
2909
2972
|
D(() => {
|
|
2910
2973
|
const o = localStorage.getItem("dashboardConfig");
|
|
@@ -2914,27 +2977,27 @@ const _a = "_button_1wjon_1", ja = "_filled_1wjon_7", ka = "_sm_1wjon_13", Ca =
|
|
|
2914
2977
|
n(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
|
|
2915
2978
|
}, []);
|
|
2916
2979
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
2917
|
-
},
|
|
2918
|
-
dashboard:
|
|
2980
|
+
}, za = "_dashboard_16plm_1", Ka = "_widgets-grid_16plm_1", Qa = "_widget-wrapper_16plm_8", Xa = "_full-width_16plm_13", Ja = "_widget-edit_16plm_16", Za = "_remove-icon_16plm_19", ei = "_full-width-icon_16plm_26", ti = "_widget-edit-overlay_16plm_36", se = {
|
|
2981
|
+
dashboard: za,
|
|
2919
2982
|
"widgets-grid": "_widgets-grid_16plm_1",
|
|
2920
|
-
widgetsGrid:
|
|
2983
|
+
widgetsGrid: Ka,
|
|
2921
2984
|
"widget-wrapper": "_widget-wrapper_16plm_8",
|
|
2922
|
-
widgetWrapper:
|
|
2985
|
+
widgetWrapper: Qa,
|
|
2923
2986
|
"full-width": "_full-width_16plm_13",
|
|
2924
|
-
fullWidth:
|
|
2987
|
+
fullWidth: Xa,
|
|
2925
2988
|
"widget-edit": "_widget-edit_16plm_16",
|
|
2926
|
-
widgetEdit:
|
|
2989
|
+
widgetEdit: Ja,
|
|
2927
2990
|
"remove-icon": "_remove-icon_16plm_19",
|
|
2928
|
-
removeIcon:
|
|
2991
|
+
removeIcon: Za,
|
|
2929
2992
|
"full-width-icon": "_full-width-icon_16plm_26",
|
|
2930
|
-
fullWidthIcon:
|
|
2993
|
+
fullWidthIcon: ei,
|
|
2931
2994
|
"widget-edit-overlay": "_widget-edit-overlay_16plm_36",
|
|
2932
|
-
widgetEditOverlay:
|
|
2933
|
-
},
|
|
2995
|
+
widgetEditOverlay: ti
|
|
2996
|
+
}, Ec = ({ availableWidgets: t, editMode: e, defaultDashboardConfig: n }) => {
|
|
2934
2997
|
var d;
|
|
2935
|
-
const { homeDashboardTexts: r } =
|
|
2936
|
-
var
|
|
2937
|
-
h === ((
|
|
2998
|
+
const { homeDashboardTexts: r } = L(ie), { dashboardConfig: o, onChangeDashboardConfig: a } = Ua(n), i = O((h, m) => {
|
|
2999
|
+
var p, b;
|
|
3000
|
+
h === ((p = o.widgets) == null ? void 0 : p.length) ? a({
|
|
2938
3001
|
...o,
|
|
2939
3002
|
widgets: [...o.widgets, { widgetId: m, fullWidth: !1 }]
|
|
2940
3003
|
}) : a({
|
|
@@ -2942,25 +3005,25 @@ const _a = "_button_1wjon_1", ja = "_filled_1wjon_7", ka = "_sm_1wjon_13", Ca =
|
|
|
2942
3005
|
widgets: ((b = o.widgets) == null ? void 0 : b.map((w, f) => f === h ? { widgetId: m, fullWidth: !1 } : w)) ?? []
|
|
2943
3006
|
});
|
|
2944
3007
|
}, [o, a]), l = O((h) => {
|
|
2945
|
-
var m,
|
|
3008
|
+
var m, p;
|
|
2946
3009
|
((m = o.widgets[h]) == null ? void 0 : m.widgetId) === -1 ? a({
|
|
2947
3010
|
...o,
|
|
2948
|
-
widgets: ((
|
|
3011
|
+
widgets: ((p = o.widgets) == null ? void 0 : p.filter((b, w) => w !== h)) ?? []
|
|
2949
3012
|
}) : i(h, -1);
|
|
2950
3013
|
}, [o, a, i]), c = O((h) => {
|
|
2951
3014
|
var m;
|
|
2952
3015
|
a({
|
|
2953
3016
|
...o,
|
|
2954
|
-
widgets: ((m = o.widgets) == null ? void 0 : m.map((
|
|
3017
|
+
widgets: ((m = o.widgets) == null ? void 0 : m.map((p, b) => b === h ? { ...p, fullWidth: !p.fullWidth } : p)) ?? []
|
|
2955
3018
|
});
|
|
2956
|
-
}, [o, a]), u = O((h, m,
|
|
3019
|
+
}, [o, a]), u = O((h, m, p) => h ? /* @__PURE__ */ s.jsxs("div", { className: x(se.widgetWrapper, {
|
|
2957
3020
|
[se.widgetEdit]: e && h.id !== -1
|
|
2958
|
-
}, { [se.fullWidth]:
|
|
3021
|
+
}, { [se.fullWidth]: p }), children: [
|
|
2959
3022
|
e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2960
|
-
/* @__PURE__ */ s.jsx(J, { color: "danger", onClick: () => l(m), className: x(se.removeIcon), children: /* @__PURE__ */ s.jsx(
|
|
2961
|
-
/* @__PURE__ */ s.jsx(J, { color:
|
|
3023
|
+
/* @__PURE__ */ s.jsx(J, { color: "danger", onClick: () => l(m), className: x(se.removeIcon), children: /* @__PURE__ */ s.jsx(Qt, {}) }),
|
|
3024
|
+
/* @__PURE__ */ s.jsx(J, { color: p ? "danger" : "primary", onClick: () => c(m), className: x(se.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Tr, {}) })
|
|
2962
3025
|
] }),
|
|
2963
|
-
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: se.widgetWrapper, children: /* @__PURE__ */ s.jsx(
|
|
3026
|
+
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: se.widgetWrapper, children: /* @__PURE__ */ s.jsx(qt, { availableWidgets: t, onAdd: (b) => i(m, b), texts: r }) }) : h.render,
|
|
2964
3027
|
h.id > -1 && e && /* @__PURE__ */ s.jsx("div", { className: se.widgetEditOverlay })
|
|
2965
3028
|
] }, m) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
2966
3029
|
e,
|
|
@@ -2971,47 +3034,47 @@ const _a = "_button_1wjon_1", ja = "_filled_1wjon_7", ka = "_sm_1wjon_13", Ca =
|
|
|
2971
3034
|
r
|
|
2972
3035
|
]);
|
|
2973
3036
|
return /* @__PURE__ */ s.jsx("div", { className: se.dashboard, children: /* @__PURE__ */ s.jsxs("div", { className: se.widgetsGrid, children: [
|
|
2974
|
-
(d = o.widgets) == null ? void 0 : d.map((h, m) => u(t.find((
|
|
2975
|
-
e && /* @__PURE__ */ s.jsx(
|
|
3037
|
+
(d = o.widgets) == null ? void 0 : d.map((h, m) => u(t.find((p) => p.id === h.widgetId), m, h.fullWidth)),
|
|
3038
|
+
e && /* @__PURE__ */ s.jsx(qt, { availableWidgets: t, onAdd: (h) => {
|
|
2976
3039
|
var m;
|
|
2977
3040
|
return i((m = o.widgets) == null ? void 0 : m.length, h);
|
|
2978
3041
|
}, texts: r })
|
|
2979
3042
|
] }) });
|
|
2980
|
-
},
|
|
2981
|
-
badge:
|
|
2982
|
-
sm:
|
|
2983
|
-
md:
|
|
2984
|
-
lg:
|
|
2985
|
-
},
|
|
3043
|
+
}, ni = "_badge_nhser_1", ri = "_sm_nhser_1", oi = "_md_nhser_4", si = "_lg_nhser_7", Yt = {
|
|
3044
|
+
badge: ni,
|
|
3045
|
+
sm: ri,
|
|
3046
|
+
md: oi,
|
|
3047
|
+
lg: si
|
|
3048
|
+
}, Oc = ({ children: t, color: e = "primary", size: n = "md", className: r }) => /* @__PURE__ */ s.jsx("span", { className: x(`luminus-badge badge bg-${e} ${r ?? ""}`, Yt.badge, Yt[n]), children: t }), ai = "_collapse-icon_1ahhn_1", ii = "_collapsed_1ahhn_6", Ht = {
|
|
2986
3049
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
2987
|
-
collapseIcon:
|
|
2988
|
-
collapsed:
|
|
2989
|
-
},
|
|
3050
|
+
collapseIcon: ai,
|
|
3051
|
+
collapsed: ii
|
|
3052
|
+
}, Mc = ({ title: t, children: e, className: n, ...r }) => {
|
|
2990
3053
|
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = P(o), l = r.controlled ? r.isOpen : a;
|
|
2991
3054
|
return D(() => {
|
|
2992
3055
|
i(o);
|
|
2993
3056
|
}, [o]), /* @__PURE__ */ s.jsxs("div", { className: n ?? "", children: [
|
|
2994
3057
|
/* @__PURE__ */ s.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => r.controlled ? r.onToggle(!r.isOpen) : i(!a), children: [
|
|
2995
3058
|
/* @__PURE__ */ s.jsx(Q, { variant: "h6", children: t }),
|
|
2996
|
-
/* @__PURE__ */ s.jsx(
|
|
2997
|
-
[
|
|
3059
|
+
/* @__PURE__ */ s.jsx(Xt, { className: x(Ht.collapseIcon, {
|
|
3060
|
+
[Ht.collapsed]: l
|
|
2998
3061
|
}) })
|
|
2999
3062
|
] }),
|
|
3000
|
-
/* @__PURE__ */ s.jsx(
|
|
3063
|
+
/* @__PURE__ */ s.jsx(mn, { in: l, children: /* @__PURE__ */ s.jsx("div", { children: e }) }),
|
|
3001
3064
|
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
3002
3065
|
] });
|
|
3003
|
-
},
|
|
3004
|
-
feedback:
|
|
3066
|
+
}, ci = "_feedback_esh1j_1", li = "_feedback-spacer_esh1j_8", Bt = {
|
|
3067
|
+
feedback: ci,
|
|
3005
3068
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
3006
|
-
feedbackSpacer:
|
|
3069
|
+
feedbackSpacer: li
|
|
3007
3070
|
}, xe = ({ message: t }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3008
|
-
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback",
|
|
3009
|
-
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback-spacer",
|
|
3071
|
+
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback", Bt.feedback), children: t }),
|
|
3072
|
+
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback-spacer", Bt.feedbackSpacer), children: t })
|
|
3010
3073
|
] });
|
|
3011
|
-
function
|
|
3074
|
+
function ui(t, e, n) {
|
|
3012
3075
|
var r = this, o = Y(null), a = Y(0), i = Y(null), l = Y([]), c = Y(), u = Y(), d = Y(t), h = Y(!0);
|
|
3013
3076
|
d.current = t;
|
|
3014
|
-
var m = typeof window < "u",
|
|
3077
|
+
var m = typeof window < "u", p = !e && e !== 0 && m;
|
|
3015
3078
|
if (typeof t != "function")
|
|
3016
3079
|
throw new TypeError("Expected a function");
|
|
3017
3080
|
e = +e || 0;
|
|
@@ -3021,12 +3084,12 @@ function ni(t, e, n) {
|
|
|
3021
3084
|
h.current = !1;
|
|
3022
3085
|
};
|
|
3023
3086
|
}, []);
|
|
3024
|
-
var
|
|
3087
|
+
var g = K(function() {
|
|
3025
3088
|
var C = function(N) {
|
|
3026
3089
|
var _ = l.current, T = c.current;
|
|
3027
3090
|
return l.current = c.current = null, a.current = N, u.current = d.current.apply(T, _);
|
|
3028
3091
|
}, k = function(N, _) {
|
|
3029
|
-
|
|
3092
|
+
p && cancelAnimationFrame(i.current), i.current = p ? requestAnimationFrame(N) : setTimeout(N, _);
|
|
3030
3093
|
}, y = function(N) {
|
|
3031
3094
|
if (!h.current)
|
|
3032
3095
|
return !1;
|
|
@@ -3055,56 +3118,56 @@ function ni(t, e, n) {
|
|
|
3055
3118
|
}
|
|
3056
3119
|
};
|
|
3057
3120
|
return S.cancel = function() {
|
|
3058
|
-
i.current && (
|
|
3121
|
+
i.current && (p ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), a.current = 0, l.current = o.current = c.current = i.current = null;
|
|
3059
3122
|
}, S.isPending = function() {
|
|
3060
3123
|
return !!i.current;
|
|
3061
3124
|
}, S.flush = function() {
|
|
3062
3125
|
return i.current ? $(Date.now()) : u.current;
|
|
3063
3126
|
}, S;
|
|
3064
|
-
}, [b, f, e, v, w,
|
|
3065
|
-
return
|
|
3127
|
+
}, [b, f, e, v, w, p, m, j]);
|
|
3128
|
+
return g;
|
|
3066
3129
|
}
|
|
3067
|
-
function
|
|
3130
|
+
function di(t, e) {
|
|
3068
3131
|
return t === e;
|
|
3069
3132
|
}
|
|
3070
|
-
function
|
|
3133
|
+
function hi(t, e) {
|
|
3071
3134
|
return e;
|
|
3072
3135
|
}
|
|
3073
|
-
function
|
|
3074
|
-
var r =
|
|
3136
|
+
function er(t, e, n) {
|
|
3137
|
+
var r = di, o = en(hi, t), a = o[0], i = o[1], l = ui(O(function(u) {
|
|
3075
3138
|
return i(u);
|
|
3076
3139
|
}, [i]), e, n), c = Y(t);
|
|
3077
3140
|
return r(c.current, t) || (l(t), c.current = t), [a, l];
|
|
3078
3141
|
}
|
|
3079
|
-
const
|
|
3080
|
-
wrapper:
|
|
3081
|
-
open:
|
|
3082
|
-
dropdown:
|
|
3142
|
+
const mi = "_wrapper_uccrb_1", fi = "_open_uccrb_9", pi = "_dropdown_uccrb_13", gi = "_search-input-container_uccrb_19", wi = "_search-input_uccrb_19", xi = "_loading-container_uccrb_25", yi = "_items-container_uccrb_32", vi = "_header-row_uccrb_38", bi = "_item_uccrb_32", _i = "_name_uccrb_57", ji = "_column-item_uccrb_62", ki = "_icon_uccrb_66", Ci = "_clear-button_uccrb_74", X = {
|
|
3143
|
+
wrapper: mi,
|
|
3144
|
+
open: fi,
|
|
3145
|
+
dropdown: pi,
|
|
3083
3146
|
"search-input-container": "_search-input-container_uccrb_19",
|
|
3084
|
-
searchInputContainer:
|
|
3147
|
+
searchInputContainer: gi,
|
|
3085
3148
|
"search-input": "_search-input_uccrb_19",
|
|
3086
|
-
searchInput:
|
|
3149
|
+
searchInput: wi,
|
|
3087
3150
|
"loading-container": "_loading-container_uccrb_25",
|
|
3088
|
-
loadingContainer:
|
|
3151
|
+
loadingContainer: xi,
|
|
3089
3152
|
"items-container": "_items-container_uccrb_32",
|
|
3090
|
-
itemsContainer:
|
|
3153
|
+
itemsContainer: yi,
|
|
3091
3154
|
"header-row": "_header-row_uccrb_38",
|
|
3092
|
-
headerRow:
|
|
3093
|
-
item:
|
|
3094
|
-
name:
|
|
3155
|
+
headerRow: vi,
|
|
3156
|
+
item: bi,
|
|
3157
|
+
name: _i,
|
|
3095
3158
|
"column-item": "_column-item_uccrb_62",
|
|
3096
|
-
columnItem:
|
|
3097
|
-
icon:
|
|
3159
|
+
columnItem: ji,
|
|
3160
|
+
icon: ki,
|
|
3098
3161
|
"clear-button": "_clear-button_uccrb_74",
|
|
3099
|
-
clearButton:
|
|
3100
|
-
},
|
|
3162
|
+
clearButton: Ci
|
|
3163
|
+
}, yt = ({ show: t, onCancel: e, items: n, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: m, isLoading: p = !1, inputRef: b }) => {
|
|
3101
3164
|
var I;
|
|
3102
|
-
const w = Y(null), f = Y(null), j = Y(null), [v,
|
|
3165
|
+
const w = Y(null), f = Y(null), j = Y(null), [v, g] = P(""), [C] = er(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 = K(() => $ ? $ > window.innerWidth / 2 : !1, [$]), H = K(() => S ? S > window.innerHeight / 2 : !1, [S]);
|
|
3103
3166
|
D(() => {
|
|
3104
3167
|
var E;
|
|
3105
3168
|
t && ((E = j.current) == null || E.focus());
|
|
3106
3169
|
}, [j, t]), D(() => {
|
|
3107
|
-
t ||
|
|
3170
|
+
t || g("");
|
|
3108
3171
|
}, [t]), D(() => {
|
|
3109
3172
|
a(C);
|
|
3110
3173
|
}, [C, a]);
|
|
@@ -3114,21 +3177,21 @@ const si = "_wrapper_uccrb_1", ai = "_open_uccrb_9", ii = "_dropdown_uccrb_13",
|
|
|
3114
3177
|
E.stopPropagation(), e();
|
|
3115
3178
|
break;
|
|
3116
3179
|
}
|
|
3117
|
-
}, [e]),
|
|
3180
|
+
}, [e]), G = O(() => {
|
|
3118
3181
|
k((E) => !E);
|
|
3119
3182
|
}, []);
|
|
3120
|
-
D(() => (window.addEventListener("scroll",
|
|
3121
|
-
window.removeEventListener("scroll",
|
|
3122
|
-
}), [
|
|
3123
|
-
window.removeEventListener("resize",
|
|
3124
|
-
}), [
|
|
3125
|
-
const oe = l ?? (c && c.length > 0 ? 250 : 0), te = (c == null ? void 0 : c.reduce((E,
|
|
3183
|
+
D(() => (window.addEventListener("scroll", G), () => {
|
|
3184
|
+
window.removeEventListener("scroll", G);
|
|
3185
|
+
}), [G]), D(() => (window.addEventListener("resize", G), () => {
|
|
3186
|
+
window.removeEventListener("resize", G);
|
|
3187
|
+
}), [G]), on(R), sn([w, f], e);
|
|
3188
|
+
const oe = l ?? (c && c.length > 0 ? 250 : 0), te = (c == null ? void 0 : c.reduce((E, z) => E + (z.width ?? 100), 0)) ?? 0, U = `calc(max(${_}px, ${oe}px + ${te}px))`;
|
|
3126
3189
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3127
|
-
/* @__PURE__ */ s.jsx(
|
|
3190
|
+
/* @__PURE__ */ s.jsx(nr, { show: t, onClick: e }),
|
|
3128
3191
|
r && t && !m && /* @__PURE__ */ s.jsx("button", { ref: f, type: "button", className: x("luminus-dropdown-picker-clear-button", X.clearButton), onClick: () => !m && o(null), style: {
|
|
3129
3192
|
top: `calc(${S}px + ${T / 2}px - 12px)`,
|
|
3130
3193
|
left: `calc(${$}px - 24px - 8px)`
|
|
3131
|
-
}, children: /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(
|
|
3194
|
+
}, children: /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(Qt, { size: 16 }) }) }),
|
|
3132
3195
|
/* @__PURE__ */ s.jsx("div", { className: x("luminus-dropdown-picker", X.wrapper, {
|
|
3133
3196
|
[X.open]: t
|
|
3134
3197
|
}), style: {
|
|
@@ -3139,10 +3202,10 @@ const si = "_wrapper_uccrb_1", ai = "_open_uccrb_9", ii = "_dropdown_uccrb_13",
|
|
|
3139
3202
|
justifyContent: H ? "flex-end" : "flex-start"
|
|
3140
3203
|
}, children: /* @__PURE__ */ s.jsx("div", { ref: w, className: x("shadow rounded", X.dropdown), children: !m && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3141
3204
|
d && (h ?? n.length) <= F ? null : /* @__PURE__ */ s.jsx("div", { className: x("search-input-container border-bottom", X.searchInputContainer), children: /* @__PURE__ */ s.jsx(ee.Control, { ref: j, type: "search", size: "sm", className: X.searchInput, placeholder: i.searchPlaceholder, value: v, onChange: (E) => {
|
|
3142
|
-
var
|
|
3143
|
-
return
|
|
3205
|
+
var z;
|
|
3206
|
+
return g(((z = E.target) == null ? void 0 : z.value) ?? "");
|
|
3144
3207
|
} }) }),
|
|
3145
|
-
|
|
3208
|
+
p ? /* @__PURE__ */ s.jsx("div", { className: X.loadingContainer, children: /* @__PURE__ */ s.jsx(gt, { animation: "border", variant: "primary" }) }) : n.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("items", X.itemsContainer), children: [
|
|
3146
3209
|
c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("header-row border-bottom", X.headerRow), children: [
|
|
3147
3210
|
/* @__PURE__ */ s.jsx("div", { className: X.name }),
|
|
3148
3211
|
c == null ? void 0 : c.map((E) => /* @__PURE__ */ s.jsx("div", { className: X.columnItem, style: {
|
|
@@ -3153,71 +3216,71 @@ const si = "_wrapper_uccrb_1", ai = "_open_uccrb_9", ii = "_dropdown_uccrb_13",
|
|
|
3153
3216
|
] }),
|
|
3154
3217
|
n == null ? void 0 : n.map((E) => /* @__PURE__ */ s.jsxs("button", { type: "button", className: x("item cursor-pointer", X.item), onClick: () => !m && o(E), children: [
|
|
3155
3218
|
/* @__PURE__ */ s.jsx("div", { className: X.name, children: /* @__PURE__ */ s.jsx(Q, { variant: "body2", children: u ? E.id : E.name }) }),
|
|
3156
|
-
c == null ? void 0 : c.map((
|
|
3157
|
-
width: `${
|
|
3158
|
-
minWidth: `${
|
|
3159
|
-
maxWidth: `${
|
|
3160
|
-
}, children: /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: x("text-muted"), children: E.additionalColumns && E.additionalColumns[
|
|
3219
|
+
c == null ? void 0 : c.map((z) => /* @__PURE__ */ s.jsx("div", { className: X.columnItem, style: {
|
|
3220
|
+
width: `${z.width ?? 100}px`,
|
|
3221
|
+
minWidth: `${z.width ?? 100}px`,
|
|
3222
|
+
maxWidth: `${z.width ?? 100}px`
|
|
3223
|
+
}, children: /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: x("text-muted"), children: E.additionalColumns && E.additionalColumns[z.key] }) }, z.key))
|
|
3161
3224
|
] }, E.id))
|
|
3162
3225
|
] })
|
|
3163
3226
|
] }) }) })
|
|
3164
3227
|
] });
|
|
3165
3228
|
};
|
|
3166
|
-
function
|
|
3167
|
-
return
|
|
3229
|
+
function Ni(t) {
|
|
3230
|
+
return Er({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" }, child: [] }] })(t);
|
|
3168
3231
|
}
|
|
3169
|
-
const
|
|
3170
|
-
item:
|
|
3171
|
-
},
|
|
3232
|
+
const $i = "_item_1dy8x_1", tr = {
|
|
3233
|
+
item: $i
|
|
3234
|
+
}, Ii = ({
|
|
3172
3235
|
color: t = "primary",
|
|
3173
3236
|
// icon = <MdOutlineArrowOutward />,
|
|
3174
3237
|
icon: e,
|
|
3175
3238
|
className: n,
|
|
3176
3239
|
children: r,
|
|
3177
3240
|
...o
|
|
3178
|
-
}) => /* @__PURE__ */ s.jsxs(Te.Item, { className: x(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${n ?? ""}`,
|
|
3241
|
+
}) => /* @__PURE__ */ s.jsxs(Te.Item, { className: x(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${n ?? ""}`, tr.item), ...o, children: [
|
|
3179
3242
|
e,
|
|
3180
3243
|
r
|
|
3181
|
-
] }),
|
|
3244
|
+
] }), Si = (t) => /* @__PURE__ */ s.jsx(Te.Toggle, { ...t }), Dc = ({ color: t = "primary", icon: e = /* @__PURE__ */ s.jsx(Kt, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: i, children: l, ...c }) => {
|
|
3182
3245
|
const u = (d) => {
|
|
3183
3246
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
3184
3247
|
};
|
|
3185
3248
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3186
|
-
/* @__PURE__ */ s.jsxs("label", { htmlFor: n, className: x(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${i ?? ""}`,
|
|
3249
|
+
/* @__PURE__ */ s.jsxs("label", { htmlFor: n, className: x(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${i ?? ""}`, tr.item), ...c, children: [
|
|
3187
3250
|
e,
|
|
3188
3251
|
l
|
|
3189
3252
|
] }),
|
|
3190
3253
|
/* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
|
|
3191
3254
|
] });
|
|
3192
|
-
},
|
|
3193
|
-
divider:
|
|
3194
|
-
},
|
|
3195
|
-
dropdown:
|
|
3196
|
-
},
|
|
3255
|
+
}, Ti = "_divider_1e6rk_1", Ei = {
|
|
3256
|
+
divider: Ti
|
|
3257
|
+
}, Pc = ({ className: t }) => /* @__PURE__ */ s.jsx(Te.Divider, { className: x("luminus-dropdown-divider", t, Ei.divider) }), Oi = "_dropdown_1lk66_1", Mi = {
|
|
3258
|
+
dropdown: Oi
|
|
3259
|
+
}, Di = ({ toggle: t, children: e, ...n }) => /* @__PURE__ */ s.jsxs(Te, { ...n, children: [
|
|
3197
3260
|
t,
|
|
3198
|
-
/* @__PURE__ */ s.jsx(Te.Menu, { className: x("luminus-dropdown rounded shadow",
|
|
3199
|
-
] }),
|
|
3200
|
-
dropdown:
|
|
3201
|
-
open:
|
|
3261
|
+
/* @__PURE__ */ s.jsx(Te.Menu, { className: x("luminus-dropdown rounded shadow", Mi.dropdown), children: e })
|
|
3262
|
+
] }), Pi = ({ searchTypes: t, selectedType: e, setSelectedType: n }) => /* @__PURE__ */ s.jsx(Di, { toggle: /* @__PURE__ */ s.jsx(Si, { as: Or, icon: null, text: e == null ? void 0 : e.text }), children: t.map((r) => /* @__PURE__ */ s.jsx(Ii, { icon: null, onClick: () => n(r), children: r.text }, r.key)) }), Ai = "_dropdown_1ddrg_1", Fi = "_open_1ddrg_12", Wi = "_loading-container_1ddrg_15", Ri = "_groups-container_1ddrg_22", Li = "_group_1ddrg_22", qi = "_header_1ddrg_26", Yi = "_item_1ddrg_33", me = {
|
|
3263
|
+
dropdown: Ai,
|
|
3264
|
+
open: Fi,
|
|
3202
3265
|
"loading-container": "_loading-container_1ddrg_15",
|
|
3203
|
-
loadingContainer:
|
|
3266
|
+
loadingContainer: Wi,
|
|
3204
3267
|
"groups-container": "_groups-container_1ddrg_22",
|
|
3205
|
-
groupsContainer:
|
|
3206
|
-
group:
|
|
3207
|
-
header:
|
|
3208
|
-
item:
|
|
3209
|
-
},
|
|
3210
|
-
const { LinkComponent: i, appSearchTexts: l } =
|
|
3268
|
+
groupsContainer: Ri,
|
|
3269
|
+
group: Li,
|
|
3270
|
+
header: qi,
|
|
3271
|
+
item: Yi
|
|
3272
|
+
}, Hi = ({ show: t, query: e, onCancel: n, groups: r, isLoading: o, searchTypes: a }) => {
|
|
3273
|
+
const { LinkComponent: i, appSearchTexts: l } = L(ie), c = Y(null), u = O((d) => {
|
|
3211
3274
|
var m;
|
|
3212
|
-
const h = (m = a.find((
|
|
3275
|
+
const h = (m = a.find((p) => p.key === d.type)) == null ? void 0 : m.toPath;
|
|
3213
3276
|
return h ? `${h}/${d.searchKey}` : "/not-found";
|
|
3214
3277
|
}, [a]);
|
|
3215
|
-
return
|
|
3216
|
-
[
|
|
3217
|
-
}), children: o ? /* @__PURE__ */ s.jsx("div", { className:
|
|
3278
|
+
return sn([c], n), /* @__PURE__ */ s.jsx("div", { ref: c, className: x("luminus-app-search-dropdown shadow rounded", me.dropdown, {
|
|
3279
|
+
[me.open]: t
|
|
3280
|
+
}), children: o ? /* @__PURE__ */ s.jsx("div", { className: me.loadingContainer, children: /* @__PURE__ */ s.jsx(gt, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: me.groupsContainer, children: r == null ? void 0 : r.map((d) => {
|
|
3218
3281
|
var h;
|
|
3219
|
-
return /* @__PURE__ */ s.jsxs("div", { className: x(
|
|
3220
|
-
/* @__PURE__ */ s.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: x("group-header",
|
|
3282
|
+
return /* @__PURE__ */ s.jsxs("div", { className: x(me.group), children: [
|
|
3283
|
+
/* @__PURE__ */ s.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: x("group-header", me.header), onClick: n, children: [
|
|
3221
3284
|
/* @__PURE__ */ s.jsx(Q, { variant: "body", className: "text-primary", children: d.key.categoryName }),
|
|
3222
3285
|
/* @__PURE__ */ s.jsxs(Q, { variant: "caption", children: [
|
|
3223
3286
|
d.items.length,
|
|
@@ -3227,33 +3290,33 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3227
3290
|
d.key.totalCount
|
|
3228
3291
|
] })
|
|
3229
3292
|
] }),
|
|
3230
|
-
(h = d.items) == null ? void 0 : h.map((m,
|
|
3293
|
+
(h = d.items) == null ? void 0 : h.map((m, p) => /* @__PURE__ */ s.jsxs(
|
|
3231
3294
|
i,
|
|
3232
3295
|
{
|
|
3233
3296
|
to: u(m),
|
|
3234
|
-
className: x("search-item d-flex gap-3 align-items-center justify-content-between",
|
|
3297
|
+
className: x("search-item d-flex gap-3 align-items-center justify-content-between", me.item),
|
|
3235
3298
|
onClick: n,
|
|
3236
3299
|
children: [
|
|
3237
3300
|
/* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
|
|
3238
|
-
/* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(
|
|
3301
|
+
/* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(Mr, {}) })
|
|
3239
3302
|
]
|
|
3240
3303
|
},
|
|
3241
|
-
|
|
3304
|
+
p
|
|
3242
3305
|
))
|
|
3243
3306
|
] }, d.key.category);
|
|
3244
3307
|
}) }) });
|
|
3245
|
-
},
|
|
3308
|
+
}, Bi = "_input-group_1lkfy_1", Gi = "_input-group-text_1lkfy_5", Vi = "_left_1lkfy_9", Ui = "_right_1lkfy_13", zi = "_input_1lkfy_1", Ki = "_submit-button_1lkfy_20", fe = {
|
|
3246
3309
|
"input-group": "_input-group_1lkfy_1",
|
|
3247
|
-
inputGroup:
|
|
3310
|
+
inputGroup: Bi,
|
|
3248
3311
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
3249
|
-
inputGroupText:
|
|
3250
|
-
left:
|
|
3251
|
-
right:
|
|
3252
|
-
input:
|
|
3312
|
+
inputGroupText: Gi,
|
|
3313
|
+
left: Vi,
|
|
3314
|
+
right: Ui,
|
|
3315
|
+
input: zi,
|
|
3253
3316
|
"submit-button": "_submit-button_1lkfy_20",
|
|
3254
|
-
submitButton:
|
|
3255
|
-
},
|
|
3256
|
-
const n =
|
|
3317
|
+
submitButton: Ki
|
|
3318
|
+
}, Qi = (t, e) => {
|
|
3319
|
+
const n = Dr(), [r, o] = P(!1), [a, i] = P([]), l = !t || !t.key, c = O(() => {
|
|
3257
3320
|
if (e.length < 3) {
|
|
3258
3321
|
i([]);
|
|
3259
3322
|
return;
|
|
@@ -3267,78 +3330,78 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3267
3330
|
return D(() => {
|
|
3268
3331
|
c();
|
|
3269
3332
|
}, [c]), { isLoading: r, searchItems: a };
|
|
3270
|
-
},
|
|
3271
|
-
const { appSearchTexts: n } =
|
|
3333
|
+
}, Ac = ({ searchTypes: t, navigateFunction: e }) => {
|
|
3334
|
+
const { appSearchTexts: n } = L(ie), [r, o] = P(t.length > 0 ? t[0] : null), [a, i] = P(""), [l, c] = er(a, 500), { isLoading: u, searchItems: d } = Qi(r, l), [h, m] = P(!1);
|
|
3272
3335
|
return D(() => {
|
|
3273
3336
|
(d.length > 0 || u) && m(!0);
|
|
3274
|
-
}, [d, u]), /* @__PURE__ */ s.jsx(ee, { onSubmit: (
|
|
3275
|
-
|
|
3276
|
-
}, children: /* @__PURE__ */ s.jsxs(et, { className:
|
|
3277
|
-
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded",
|
|
3278
|
-
/* @__PURE__ */ s.jsx(ee.Control, { placeholder: n.searchPlaceholder, type: "text", size: "sm", className: x("luminus-app-search-input",
|
|
3337
|
+
}, [d, u]), /* @__PURE__ */ s.jsx(ee, { onSubmit: (p) => {
|
|
3338
|
+
p.preventDefault(), p.stopPropagation(), c.flush(), m(!1), a.length > 2 && e(`/search?query=${a}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
|
|
3339
|
+
}, children: /* @__PURE__ */ s.jsxs(et, { className: fe.inputGroup, children: [
|
|
3340
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded", fe.inputGroupText, fe.left), children: /* @__PURE__ */ s.jsx(Pi, { searchTypes: t, selectedType: r, setSelectedType: o }) }),
|
|
3341
|
+
/* @__PURE__ */ s.jsx(ee.Control, { placeholder: n.searchPlaceholder, type: "text", size: "sm", className: x("luminus-app-search-input", fe.input), value: a, onChange: (p) => {
|
|
3279
3342
|
var b;
|
|
3280
|
-
return i(((b =
|
|
3343
|
+
return i(((b = p.target) == null ? void 0 : b.value) ?? "");
|
|
3281
3344
|
}, onFocus: () => d.length > 0 && m(!0) }),
|
|
3282
|
-
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-0 rounded",
|
|
3283
|
-
/* @__PURE__ */ s.jsx(
|
|
3345
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-0 rounded", fe.inputGroupText, fe.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: x("text-primary", fe.submitButton), children: /* @__PURE__ */ s.jsx(Ni, {}) }) }),
|
|
3346
|
+
/* @__PURE__ */ s.jsx(Hi, { query: l, searchTypes: t, show: h, onCancel: () => m(!1), groups: d, isLoading: u })
|
|
3284
3347
|
] }) });
|
|
3285
|
-
},
|
|
3286
|
-
card:
|
|
3287
|
-
header:
|
|
3348
|
+
}, Xi = "_card_19733_1", Ji = "_header_19733_6", Zi = "_header-content_19733_13", ec = "_title_19733_19", tc = "_collapse-icon_19733_22", nc = "_collapsed_19733_27", rc = "_content_19733_30", pe = {
|
|
3349
|
+
card: Xi,
|
|
3350
|
+
header: Ji,
|
|
3288
3351
|
"header-content": "_header-content_19733_13",
|
|
3289
|
-
headerContent:
|
|
3290
|
-
title:
|
|
3352
|
+
headerContent: Zi,
|
|
3353
|
+
title: ec,
|
|
3291
3354
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
3292
|
-
collapseIcon:
|
|
3293
|
-
collapsed:
|
|
3294
|
-
content:
|
|
3295
|
-
},
|
|
3355
|
+
collapseIcon: tc,
|
|
3356
|
+
collapsed: nc,
|
|
3357
|
+
content: rc
|
|
3358
|
+
}, Fc = ({ title: t, headerContent: e, children: n, className: r, headerClassName: o, contentClassName: a, ...i }) => {
|
|
3296
3359
|
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] = P(l), d = i.collapsible ? i.controlled ? i.isOpen : c : !0;
|
|
3297
3360
|
return D(() => {
|
|
3298
3361
|
u(l);
|
|
3299
|
-
}, [l]), /* @__PURE__ */ s.jsxs("div", { className: x("luminus-card rounded shadow-sm",
|
|
3362
|
+
}, [l]), /* @__PURE__ */ s.jsxs("div", { className: x("luminus-card rounded shadow-sm", pe.card, {
|
|
3300
3363
|
[r ?? ""]: r
|
|
3301
3364
|
}), children: [
|
|
3302
|
-
/* @__PURE__ */ s.jsxs("div", { role: i.collapsible ? "button" : void 0, className: x("header",
|
|
3365
|
+
/* @__PURE__ */ s.jsxs("div", { role: i.collapsible ? "button" : void 0, className: x("header", pe.header, {
|
|
3303
3366
|
[o ?? ""]: o
|
|
3304
3367
|
}), onClick: () => {
|
|
3305
3368
|
i.collapsible && (i.controlled ? i.onToggle(!i.isOpen) : u(!c));
|
|
3306
3369
|
}, children: [
|
|
3307
|
-
/* @__PURE__ */ s.jsxs("div", { className: x("header-content",
|
|
3308
|
-
/* @__PURE__ */ s.jsx(Q, { variant: "h6", className: x("text-primary",
|
|
3370
|
+
/* @__PURE__ */ s.jsxs("div", { className: x("header-content", pe.headerContent), children: [
|
|
3371
|
+
/* @__PURE__ */ s.jsx(Q, { variant: "h6", className: x("text-primary", pe.title), children: t }),
|
|
3309
3372
|
e ?? null
|
|
3310
3373
|
] }),
|
|
3311
|
-
i.collapsible && /* @__PURE__ */ s.jsx(
|
|
3312
|
-
[
|
|
3374
|
+
i.collapsible && /* @__PURE__ */ s.jsx(Xt, { className: x(pe.collapseIcon, {
|
|
3375
|
+
[pe.collapsed]: d
|
|
3313
3376
|
}) })
|
|
3314
3377
|
] }),
|
|
3315
|
-
/* @__PURE__ */ s.jsx(
|
|
3378
|
+
/* @__PURE__ */ s.jsx(mn, { in: d, children: /* @__PURE__ */ s.jsx("div", { className: x("card-content border-top border-primary", pe.content, {
|
|
3316
3379
|
[a ?? ""]: a
|
|
3317
3380
|
}), children: n }) })
|
|
3318
3381
|
] });
|
|
3319
|
-
},
|
|
3320
|
-
lightbox:
|
|
3321
|
-
show:
|
|
3322
|
-
header:
|
|
3382
|
+
}, oc = "_lightbox_14acg_1", sc = "_show_14acg_16", ac = "_header_14acg_20", ic = "_photo-actions_14acg_26", cc = "_photo-container_14acg_31", lc = "_photo_14acg_26", uc = "_nav-button_14acg_41", dc = "_photos-preview_14acg_49", hc = "_selected_14acg_62", mc = "_default-indicator_14acg_66", ne = {
|
|
3383
|
+
lightbox: oc,
|
|
3384
|
+
show: sc,
|
|
3385
|
+
header: ac,
|
|
3323
3386
|
"photo-actions": "_photo-actions_14acg_26",
|
|
3324
|
-
photoActions:
|
|
3387
|
+
photoActions: ic,
|
|
3325
3388
|
"photo-container": "_photo-container_14acg_31",
|
|
3326
|
-
photoContainer:
|
|
3327
|
-
photo:
|
|
3389
|
+
photoContainer: cc,
|
|
3390
|
+
photo: lc,
|
|
3328
3391
|
"nav-button": "_nav-button_14acg_41",
|
|
3329
|
-
navButton:
|
|
3392
|
+
navButton: uc,
|
|
3330
3393
|
"photos-preview": "_photos-preview_14acg_49",
|
|
3331
|
-
photosPreview:
|
|
3332
|
-
selected:
|
|
3394
|
+
photosPreview: dc,
|
|
3395
|
+
selected: hc,
|
|
3333
3396
|
"default-indicator": "_default-indicator_14acg_66",
|
|
3334
|
-
defaultIndicator:
|
|
3335
|
-
},
|
|
3336
|
-
backdrop:
|
|
3337
|
-
show:
|
|
3338
|
-
},
|
|
3339
|
-
[
|
|
3340
|
-
}), onClick: () => e && e() }),
|
|
3341
|
-
const c = Y(null), [u, d] = P(r), h = n.at(u), m = u > 0,
|
|
3397
|
+
defaultIndicator: mc
|
|
3398
|
+
}, fc = "_backdrop_3huvf_1", pc = "_show_3huvf_11", Gt = {
|
|
3399
|
+
backdrop: fc,
|
|
3400
|
+
show: pc
|
|
3401
|
+
}, nr = ({ show: t, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-backdrop", Gt.backdrop, {
|
|
3402
|
+
[Gt.show]: t
|
|
3403
|
+
}), onClick: () => e && e() }), gc = ({ show: t, onClose: e, photos: n, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: l }) => {
|
|
3404
|
+
const c = Y(null), [u, d] = P(r), h = n.at(u), m = u > 0, p = u < n.length - 1;
|
|
3342
3405
|
D(() => {
|
|
3343
3406
|
t && d(r);
|
|
3344
3407
|
}, [r, t]), D(() => {
|
|
@@ -3350,25 +3413,25 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3350
3413
|
w.stopPropagation(), m && d((f) => f - 1);
|
|
3351
3414
|
break;
|
|
3352
3415
|
case "ArrowRight":
|
|
3353
|
-
w.stopPropagation(),
|
|
3416
|
+
w.stopPropagation(), p && d((f) => f + 1);
|
|
3354
3417
|
break;
|
|
3355
3418
|
case "Escape":
|
|
3356
3419
|
w.stopPropagation(), e();
|
|
3357
3420
|
break;
|
|
3358
3421
|
}
|
|
3359
|
-
}, [
|
|
3360
|
-
return
|
|
3361
|
-
/* @__PURE__ */ s.jsx(
|
|
3422
|
+
}, [p, m, e]);
|
|
3423
|
+
return on(b), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3424
|
+
/* @__PURE__ */ s.jsx(nr, { show: t, onClick: e }),
|
|
3362
3425
|
/* @__PURE__ */ s.jsxs("div", { ref: c, className: x("luminus-lightbox rounded shadow", ne.lightbox, {
|
|
3363
3426
|
[ne.show]: t
|
|
3364
3427
|
}), children: [
|
|
3365
3428
|
/* @__PURE__ */ s.jsxs("div", { className: ne.header, children: [
|
|
3366
3429
|
/* @__PURE__ */ s.jsxs("div", { className: x("rounded", ne.photoActions), children: [
|
|
3367
|
-
i && /* @__PURE__ */ s.jsx(
|
|
3430
|
+
i && /* @__PURE__ */ s.jsx(Zn, { accept: ".jpg,.jpeg,.png", onUpload: (w) => {
|
|
3368
3431
|
w.length > 0 && i(Array.from(w));
|
|
3369
|
-
}, icon: /* @__PURE__ */ s.jsx(
|
|
3432
|
+
}, icon: /* @__PURE__ */ s.jsx(Jt, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
3370
3433
|
h && (l == null ? void 0 : l.map(({ label: w, onClick: f, ...j }, v) => /* @__PURE__ */ s.jsx(
|
|
3371
|
-
|
|
3434
|
+
Ra,
|
|
3372
3435
|
{
|
|
3373
3436
|
onClick: () => f(h.id),
|
|
3374
3437
|
...j,
|
|
@@ -3383,17 +3446,17 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3383
3446
|
h && /* @__PURE__ */ s.jsxs("div", { className: ne.photoContainer, children: [
|
|
3384
3447
|
/* @__PURE__ */ s.jsx("div", { role: m ? "button" : void 0, className: x("align-items-start", ne.navButton), onClick: () => m && d((w) => w - 1), children: m && /* @__PURE__ */ s.jsx(ut, { style: { fontSize: "40px" } }) }),
|
|
3385
3448
|
/* @__PURE__ */ s.jsx("img", { src: h.lgSrc, alt: h.alt, className: x("rounded", ne.photo) }),
|
|
3386
|
-
/* @__PURE__ */ s.jsx("div", { role:
|
|
3449
|
+
/* @__PURE__ */ s.jsx("div", { role: p ? "button" : void 0, className: x("align-items-end", ne.navButton), onClick: () => p && d((w) => w + 1), children: p && /* @__PURE__ */ s.jsx(dt, { style: { fontSize: "40px" } }) })
|
|
3387
3450
|
] }),
|
|
3388
3451
|
/* @__PURE__ */ s.jsx("div", { className: ne.photosPreview, children: n.map((w, f) => /* @__PURE__ */ s.jsxs("div", { role: "button", onClick: () => d(f), className: "position-relative", children: [
|
|
3389
3452
|
/* @__PURE__ */ s.jsx("img", { role: f !== u ? "button" : void 0, src: w.smSrc, alt: w.alt, className: x("rounded", ne.photo, {
|
|
3390
3453
|
[ne.selected]: f === u
|
|
3391
3454
|
}) }, w.id),
|
|
3392
|
-
w.isDefault && /* @__PURE__ */ s.jsx("div", { className: x("text-primary", ne.defaultIndicator), children: /* @__PURE__ */ s.jsx(
|
|
3455
|
+
w.isDefault && /* @__PURE__ */ s.jsx("div", { className: x("text-primary", ne.defaultIndicator), children: /* @__PURE__ */ s.jsx(Pr, {}) })
|
|
3393
3456
|
] })) })
|
|
3394
3457
|
] })
|
|
3395
3458
|
] });
|
|
3396
|
-
},
|
|
3459
|
+
}, Wc = ({ photos: t, onUploadPhotos: e, uploadPhotosText: n, photoActions: r }) => {
|
|
3397
3460
|
const [o, a] = P(null), i = o !== null ? t[o] : null, [l, c] = P(!1);
|
|
3398
3461
|
return D(() => {
|
|
3399
3462
|
if (t.length === 0) {
|
|
@@ -3413,35 +3476,49 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3413
3476
|
onClick: () => c(!0)
|
|
3414
3477
|
}
|
|
3415
3478
|
),
|
|
3416
|
-
/* @__PURE__ */ s.jsx(
|
|
3417
|
-
] }) : e ? /* @__PURE__ */ s.jsx(
|
|
3479
|
+
/* @__PURE__ */ s.jsx(gc, { show: l, onClose: () => c(!1), photos: t, defaultIndex: o ?? 0, uploadPhotosText: n, onUploadPhotos: e, photoActions: r })
|
|
3480
|
+
] }) : e ? /* @__PURE__ */ s.jsx(Zn, { accept: ".jpg,.jpeg,.png", onUpload: (u) => {
|
|
3418
3481
|
u.length > 0 && e(Array.from(u));
|
|
3419
|
-
}, icon: /* @__PURE__ */ s.jsx(
|
|
3420
|
-
},
|
|
3421
|
-
const { NavigateComponent: n } =
|
|
3482
|
+
}, icon: /* @__PURE__ */ s.jsx(Jt, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : null;
|
|
3483
|
+
}, Rc = ({ appAccessPermissions: t, children: e }) => {
|
|
3484
|
+
const { NavigateComponent: n } = L(ie), { useMsal: r, msalScopes: o } = L(Ar), { isAuthenticated: a } = Fr(), { user: i, loggingInProgress: l } = L(Wr), c = i && (t == null ? void 0 : t.every((u) => {
|
|
3422
3485
|
var d;
|
|
3423
3486
|
return (d = i.permissions) == null ? void 0 : d.includes(u);
|
|
3424
3487
|
}));
|
|
3425
|
-
return r ?
|
|
3426
|
-
},
|
|
3488
|
+
return r ? /* @__PURE__ */ s.jsx(Sa, { interactionType: Re.Redirect, authenticationRequest: { scopes: o }, children: l || !a() ? /* @__PURE__ */ s.jsx(Gr, {}) : i ? c ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(n, { to: "/no-user-login", replace: !0 }) }) : !a() || !i ? /* @__PURE__ */ s.jsx(n, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 });
|
|
3489
|
+
}, Lc = (t) => {
|
|
3490
|
+
const { variant: e, children: n, className: r, typographyVariant: o = "body", ...a } = { ...t };
|
|
3491
|
+
return /* @__PURE__ */ s.jsx(ds, { variant: e, className: `text-center p-1 bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...a, children: /* @__PURE__ */ s.jsx(Q, { variant: o, children: n }) });
|
|
3492
|
+
}, qc = ({ version: t }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
|
|
3493
|
+
position: "fixed",
|
|
3494
|
+
right: "0px",
|
|
3495
|
+
bottom: "0px",
|
|
3496
|
+
zIndex: "10000",
|
|
3497
|
+
backgroundColor: "rgba(255, 255, 255, 0.5)",
|
|
3498
|
+
padding: "4px",
|
|
3499
|
+
pointerEvents: "all"
|
|
3500
|
+
}, children: /* @__PURE__ */ s.jsxs(Q, { variant: "caption", className: "w-100 text-end", children: [
|
|
3501
|
+
"verze ",
|
|
3502
|
+
t
|
|
3503
|
+
] }) }), Yc = ({ heading: t, content: e, placement: n, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(Rr, { placement: n, overlay: /* @__PURE__ */ s.jsxs(Xe, { className: "luminus-tooltip", children: [
|
|
3427
3504
|
/* @__PURE__ */ s.jsx(Xe.Header, { as: "h3", children: t }),
|
|
3428
3505
|
/* @__PURE__ */ s.jsx(Xe.Body, { children: e })
|
|
3429
|
-
] }), trigger: o ?? "hover", rootClose: !0, children: r }),
|
|
3430
|
-
const { LinkComponent: r } =
|
|
3506
|
+
] }), trigger: o ?? "hover", rootClose: !0, children: r }), rr = ({ currentSelection: t, selectedItemNavigateTo: e, children: n }) => {
|
|
3507
|
+
const { LinkComponent: r } = L(ie);
|
|
3431
3508
|
if (!t || !t.id || !e)
|
|
3432
3509
|
return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: n });
|
|
3433
3510
|
const o = e(t);
|
|
3434
3511
|
return /* @__PURE__ */ s.jsx(r, { to: o, className: "luminus-input-container position-relative w-100 text-decoration-none", children: n });
|
|
3435
|
-
},
|
|
3512
|
+
}, Hc = ({ InputContainer: t = Be, label: e, value: n, onChange: r, hidden: o, disabled: a, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ s.jsx(t, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, className: i, children: /* @__PURE__ */ s.jsx(ee.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: n, onChange: (u) => {
|
|
3436
3513
|
var d;
|
|
3437
3514
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3438
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }),
|
|
3515
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Bc = ({ InputContainer: t = Be, type: e, value: n, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: m, list: p, className: b, step: w }) => {
|
|
3439
3516
|
const f = e === "number", j = O(() => {
|
|
3440
3517
|
if (!r)
|
|
3441
3518
|
return;
|
|
3442
3519
|
const N = m ?? null;
|
|
3443
3520
|
r(f ? N ? Number(N) : null : (N == null ? void 0 : N.toString()) ?? "");
|
|
3444
|
-
}, [m, f, r]), v = Y(null), [
|
|
3521
|
+
}, [m, f, r]), v = Y(null), [g, C] = P((n == null ? void 0 : n.toString()) ?? ""), k = O((N) => {
|
|
3445
3522
|
const _ = N;
|
|
3446
3523
|
r && (f && r(_ == null || _ === "" ? null : Number(_)), r(_ || null));
|
|
3447
3524
|
}, [f, r]), y = O((N) => {
|
|
@@ -3458,13 +3535,13 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3458
3535
|
D(() => {
|
|
3459
3536
|
C(n === null ? "" : n.toString());
|
|
3460
3537
|
}, [n]);
|
|
3461
|
-
const [$, M] = P(!1), S =
|
|
3538
|
+
const [$, M] = P(!1), S = an(e, n ? n.toString() ?? null : null, $);
|
|
3462
3539
|
return /* @__PURE__ */ s.jsxs(t, { withoutLabel: i, label: a ?? "", hidden: u, className: b, children: [
|
|
3463
|
-
/* @__PURE__ */ s.jsx(ee.Control, { type: S, placeholder: l ?? a, size: c, value: o ?
|
|
3540
|
+
/* @__PURE__ */ s.jsx(ee.Control, { type: S, placeholder: l ?? a, size: c, value: o ? g : n ?? "", onChange: y, className: b ?? "", hidden: u, disabled: d ?? !1, list: p, onFocus: () => M(!0), onBlur: () => M(!1), step: w }),
|
|
3464
3541
|
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, {}) }) })
|
|
3465
3542
|
] });
|
|
3466
|
-
},
|
|
3467
|
-
InputContainer: t =
|
|
3543
|
+
}, Gc = ({
|
|
3544
|
+
InputContainer: t = Be,
|
|
3468
3545
|
value: e,
|
|
3469
3546
|
options: n,
|
|
3470
3547
|
onChange: r,
|
|
@@ -3477,7 +3554,7 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3477
3554
|
showClearIcon: d,
|
|
3478
3555
|
clearValue: h,
|
|
3479
3556
|
noSortOptions: m,
|
|
3480
|
-
className:
|
|
3557
|
+
className: p,
|
|
3481
3558
|
noEmptyOption: b
|
|
3482
3559
|
// it will still add the empty option if there is no value provided or value is empty string or null
|
|
3483
3560
|
}) => {
|
|
@@ -3487,22 +3564,22 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3487
3564
|
const f = h ?? null;
|
|
3488
3565
|
r(i ? f ? Number(f) : null : (f == null ? void 0 : f.toString()) ?? "");
|
|
3489
3566
|
}, [h, i, r]);
|
|
3490
|
-
return /* @__PURE__ */ s.jsxs(t, { withoutLabel: a, label: o ?? "", hidden: c, className:
|
|
3567
|
+
return /* @__PURE__ */ s.jsxs(t, { withoutLabel: a, label: o ?? "", hidden: c, className: p, children: [
|
|
3491
3568
|
/* @__PURE__ */ s.jsxs(ee.Select, { size: l, value: e ?? "", onChange: (f) => {
|
|
3492
3569
|
var v;
|
|
3493
3570
|
if (!r)
|
|
3494
3571
|
return;
|
|
3495
3572
|
const j = (v = f.target) == null ? void 0 : v.value;
|
|
3496
3573
|
i && r(j ? parseInt(j, 10) : null), r(j || null);
|
|
3497
|
-
}, className:
|
|
3574
|
+
}, className: p ?? "", hidden: c, disabled: u ?? !1, children: [
|
|
3498
3575
|
b && !(e == null || e === "") ? void 0 : /* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3499
3576
|
n == null ? void 0 : n.sort((f, j) => m ? 0 : (f.name ?? "").localeCompare(j.name ?? "")).map((f) => /* @__PURE__ */ s.jsx("option", { value: f.id ?? "", children: f.name }, f.id))
|
|
3500
3577
|
] }),
|
|
3501
3578
|
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, {}) }) })
|
|
3502
3579
|
] });
|
|
3503
|
-
},
|
|
3580
|
+
}, Vc = ({ InputContainer: t = Be, items: e, defaultSelection: n, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: m, additionalColumns: p, hidden: b, disabled: w, displayIdAsName: f, CustomOnChangeComponent: j, className: v }) => {
|
|
3504
3581
|
var T, F;
|
|
3505
|
-
const [
|
|
3582
|
+
const [g, C] = P(n), [k, y] = P(!1);
|
|
3506
3583
|
D(() => {
|
|
3507
3584
|
C(n);
|
|
3508
3585
|
}, [n]);
|
|
@@ -3512,13 +3589,13 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3512
3589
|
y(!1), $(W);
|
|
3513
3590
|
}, [$]);
|
|
3514
3591
|
D(() => {
|
|
3515
|
-
c && c(
|
|
3516
|
-
}, [
|
|
3517
|
-
const S = Y(null), N = r !== void 0, _ = N &&
|
|
3592
|
+
c && c(g);
|
|
3593
|
+
}, [g, c]);
|
|
3594
|
+
const S = Y(null), N = r !== void 0, _ = N && g !== null;
|
|
3518
3595
|
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: [
|
|
3519
|
-
/* @__PURE__ */ s.jsxs(
|
|
3520
|
-
f && (
|
|
3521
|
-
/* @__PURE__ */ s.jsxs(ee.Select, { ref: S, size: h, value: (
|
|
3596
|
+
/* @__PURE__ */ s.jsxs(rr, { currentSelection: g, selectedItemNavigateTo: r, children: [
|
|
3597
|
+
f && (g == null ? void 0 : g.name) && /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: g.name }),
|
|
3598
|
+
/* @__PURE__ */ s.jsxs(ee.Select, { ref: S, size: h, value: (g == null ? void 0 : g.id) ?? "", onChange: (W) => C({
|
|
3522
3599
|
id: l ? Number(W.target.value) ?? null : W.target.value,
|
|
3523
3600
|
name: ""
|
|
3524
3601
|
}), onMouseDown: (W) => {
|
|
@@ -3531,59 +3608,59 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3531
3608
|
}), hidden: b, children: [
|
|
3532
3609
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3533
3610
|
n && /* @__PURE__ */ s.jsx("option", { value: n.id ?? void 0, children: n.name && ((T = n.name) == null ? void 0 : T.length) > 0 ? n.name : n.id }),
|
|
3534
|
-
|
|
3611
|
+
g && /* @__PURE__ */ s.jsx("option", { value: g.id ?? void 0, children: g.name && ((F = g.name) == null ? void 0 : F.length) > 0 ? g.name : g.id })
|
|
3535
3612
|
] }),
|
|
3536
3613
|
j || !w && N ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
3537
3614
|
!j && !w && N && /* @__PURE__ */ s.jsx(J, { size: "sm", color: "secondary", onClick: (W) => {
|
|
3538
3615
|
W.preventDefault(), W.stopPropagation(), y(!0);
|
|
3539
|
-
}, children: /* @__PURE__ */ s.jsx(
|
|
3616
|
+
}, children: /* @__PURE__ */ s.jsx(Zt, {}) }),
|
|
3540
3617
|
j ?? null
|
|
3541
3618
|
] }) : null
|
|
3542
3619
|
] }),
|
|
3543
|
-
S.current && /* @__PURE__ */ s.jsx(
|
|
3620
|
+
S.current && /* @__PURE__ */ s.jsx(yt, { show: k, onCancel: () => y(!1), items: e, currentSelection: g, onSelectionChange: M, onSearchQueryChange: o, texts: a, itemsNameWidth: m, additionalColumns: p, isLoading: i, disabled: w, inputRef: S })
|
|
3544
3621
|
] }) });
|
|
3545
|
-
},
|
|
3546
|
-
const { register: d, formState: h, setValue: m } =
|
|
3622
|
+
}, Uc = ({ InputContainer: t = we, formField: e, label: n, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c, className: u }) => {
|
|
3623
|
+
const { register: d, formState: h, setValue: m } = he(), [p, b] = P(void 0), [w, f] = P(!1);
|
|
3547
3624
|
D(() => {
|
|
3548
3625
|
const v = e.split(".");
|
|
3549
|
-
let
|
|
3626
|
+
let g = h.errors;
|
|
3550
3627
|
v.forEach((C) => {
|
|
3551
|
-
|
|
3552
|
-
}), b(
|
|
3628
|
+
g !== void 0 && (g = g[C]);
|
|
3629
|
+
}), b(g);
|
|
3553
3630
|
}, [h, e]), D(() => {
|
|
3554
3631
|
h.isSubmitted && f(!0);
|
|
3555
3632
|
}, [h]);
|
|
3556
|
-
const j =
|
|
3633
|
+
const j = p !== void 0;
|
|
3557
3634
|
return /* @__PURE__ */ s.jsxs(t, { isForCheckInput: !0, hidden: i, label: `${n}${a ? " *" : ""}`, isInvalid: j, withoutLabel: c, className: u, children: [
|
|
3558
3635
|
/* @__PURE__ */ s.jsx(ee.Check, { id: `check-${e}`, type: o ?? "checkbox", label: `${n}${a ? " *" : ""}`, ...d(e, {
|
|
3559
3636
|
onChange: () => {
|
|
3560
3637
|
r && r.forEach((v) => m(v, null, { shouldDirty: !0, shouldValidate: w }));
|
|
3561
3638
|
}
|
|
3562
3639
|
}), isInvalid: j, hidden: i, disabled: l, className: "w-100" }),
|
|
3563
|
-
|
|
3640
|
+
p && /* @__PURE__ */ s.jsx(xe, { message: p.message })
|
|
3564
3641
|
] });
|
|
3565
|
-
},
|
|
3566
|
-
const { register: u, formState: d, setValue: h, watch: m } =
|
|
3642
|
+
}, zc = ({ InputContainer: t = we, label: e, formField: n, options: r, resetsFields: o, required: a, disabled: i, hidden: l, className: c }) => {
|
|
3643
|
+
const { register: u, formState: d, setValue: h, watch: m } = he(), [p, b] = P(void 0), [w, f] = P(!1), j = K(() => r, [r]);
|
|
3567
3644
|
D(() => {
|
|
3568
|
-
const
|
|
3645
|
+
const g = n.split(".");
|
|
3569
3646
|
let C = d.errors;
|
|
3570
|
-
|
|
3647
|
+
g.forEach((k) => {
|
|
3571
3648
|
C !== void 0 && (C = C[k]);
|
|
3572
3649
|
}), b(C);
|
|
3573
3650
|
}, [d, n]), D(() => {
|
|
3574
3651
|
d.isSubmitted && f(!0);
|
|
3575
3652
|
}, [d]);
|
|
3576
|
-
const v =
|
|
3653
|
+
const v = p !== void 0;
|
|
3577
3654
|
return /* @__PURE__ */ s.jsxs(t, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: v, className: c, children: [
|
|
3578
|
-
j.map((
|
|
3655
|
+
j.map((g) => /* @__PURE__ */ s.jsx(ee.Check, { id: `radio-${g.id}`, label: g.name, type: "radio", value: g.id ?? "", checked: m(n) === g.id, ...u(n, {
|
|
3579
3656
|
onChange: () => {
|
|
3580
3657
|
o && o.forEach((C) => h(C, null, { shouldDirty: !0, shouldValidate: w }));
|
|
3581
3658
|
}
|
|
3582
|
-
}), isInvalid: v, hidden: l, disabled: i, className: "w-100" },
|
|
3583
|
-
|
|
3659
|
+
}), isInvalid: v, hidden: l, disabled: i, className: "w-100" }, g.id)),
|
|
3660
|
+
p && /* @__PURE__ */ s.jsx(xe, { message: p.message })
|
|
3584
3661
|
] });
|
|
3585
|
-
},
|
|
3586
|
-
const { register: b, formState: w, setValue: f, watch: j } =
|
|
3662
|
+
}, Kc = ({ InputContainer: t = we, formField: e, label: n, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, rows: d, withoutLabel: h, customFormControlProps: m, className: p }) => {
|
|
3663
|
+
const { register: b, formState: w, setValue: f, watch: j } = he(), [v, g] = P(void 0), [C, k] = P(!1), y = O(() => {
|
|
3587
3664
|
const S = i ?? null;
|
|
3588
3665
|
f(e, (S == null ? void 0 : S.toString()) ?? "", { shouldDirty: !0, shouldValidate: C });
|
|
3589
3666
|
}, [i, f, e, C]), $ = O(() => {
|
|
@@ -3591,7 +3668,7 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3591
3668
|
let N = w.errors;
|
|
3592
3669
|
S.forEach((_) => {
|
|
3593
3670
|
N !== void 0 && (N = N[_]);
|
|
3594
|
-
}),
|
|
3671
|
+
}), g(N);
|
|
3595
3672
|
}, [w, e]);
|
|
3596
3673
|
D(() => {
|
|
3597
3674
|
$();
|
|
@@ -3599,7 +3676,7 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3599
3676
|
w.isSubmitted && k(!0);
|
|
3600
3677
|
}, [w]);
|
|
3601
3678
|
const M = v !== void 0;
|
|
3602
|
-
return /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: M, className:
|
|
3679
|
+
return /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: M, className: p, children: [
|
|
3603
3680
|
/* @__PURE__ */ s.jsx(ee.Control, { as: "textarea", size: o, ...b(e, {
|
|
3604
3681
|
onChange: () => {
|
|
3605
3682
|
r && r.forEach((S) => f(S, null, { shouldDirty: !0, shouldValidate: C }));
|
|
@@ -3608,26 +3685,26 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3608
3685
|
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, {}) }) }),
|
|
3609
3686
|
v && /* @__PURE__ */ s.jsx(xe, { message: v.message })
|
|
3610
3687
|
] });
|
|
3611
|
-
},
|
|
3612
|
-
const { register: j, formState: v, setValue:
|
|
3688
|
+
}, Qc = ({ InputContainer: t = we, type: e, formField: n, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: m, list: p, step: b, CustomOnChangeComponent: w, className: f }) => {
|
|
3689
|
+
const { register: j, formState: v, setValue: g, watch: C } = he(), [k, y] = P(void 0), [$, M] = P(!1), S = O(() => {
|
|
3613
3690
|
const R = c ?? null;
|
|
3614
|
-
e === "number" ?
|
|
3691
|
+
e === "number" ? g(n, R !== null ? Number(R) : null, {
|
|
3615
3692
|
shouldDirty: !0,
|
|
3616
3693
|
shouldValidate: $
|
|
3617
|
-
}) :
|
|
3618
|
-
}, [c, e,
|
|
3694
|
+
}) : g(n, (R == null ? void 0 : R.toString()) ?? "", { shouldDirty: !0, shouldValidate: $ });
|
|
3695
|
+
}, [c, e, g, n, $]), N = O(() => {
|
|
3619
3696
|
const R = n.split(".");
|
|
3620
|
-
let
|
|
3697
|
+
let G = v.errors;
|
|
3621
3698
|
R.forEach((oe) => {
|
|
3622
|
-
|
|
3623
|
-
}), y(
|
|
3699
|
+
G !== void 0 && (G = G[oe]);
|
|
3700
|
+
}), y(G);
|
|
3624
3701
|
}, [v, n]);
|
|
3625
3702
|
D(() => {
|
|
3626
3703
|
N();
|
|
3627
3704
|
}, [N]), D(() => {
|
|
3628
3705
|
v.isSubmitted && M(!0);
|
|
3629
3706
|
}, [v]);
|
|
3630
|
-
const _ = k !== void 0, [T, F] = P(!1), W = C(n), H =
|
|
3707
|
+
const _ = k !== void 0, [T, F] = P(!1), W = C(n), H = an(e, W ?? null, T);
|
|
3631
3708
|
return /* @__PURE__ */ s.jsxs(t, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: _, className: f, children: [
|
|
3632
3709
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3633
3710
|
/* @__PURE__ */ s.jsx(ee.Control, { type: H, placeholder: o ?? r, size: a, onFocus: () => {
|
|
@@ -3635,26 +3712,26 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3635
3712
|
}, ...j(n, {
|
|
3636
3713
|
setValueAs: (R) => e === "number" ? R == null || R === "" ? null : Number(R) : R == null || R === "" ? null : R,
|
|
3637
3714
|
onChange: () => {
|
|
3638
|
-
i && i.forEach((R) =>
|
|
3715
|
+
i && i.forEach((R) => g(R, null, { shouldDirty: !0, shouldValidate: $ }));
|
|
3639
3716
|
},
|
|
3640
3717
|
onBlur: () => F(!1)
|
|
3641
|
-
}), isInvalid: _, hidden: d, disabled: h, list:
|
|
3718
|
+
}), isInvalid: _, hidden: d, disabled: h, list: p, className: "w-100", step: b }),
|
|
3642
3719
|
w && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: w })
|
|
3643
3720
|
] }),
|
|
3644
3721
|
l && 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, {}) }) }),
|
|
3645
3722
|
k && /* @__PURE__ */ s.jsx(xe, { message: k.message })
|
|
3646
3723
|
] });
|
|
3647
|
-
},
|
|
3648
|
-
const { formState: k, setValue: y, watch: $, control: M } =
|
|
3649
|
-
const
|
|
3724
|
+
}, Xc = ({ InputContainer: t = we, formField: e, label: n, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: m, texts: p, dropdownItemsNameWidth: b, isLoading: w, withoutLabel: f, additionalColumns: j, CustomOnChangeComponent: v, displayIdAsName: g, className: C }) => {
|
|
3725
|
+
const { formState: k, setValue: y, watch: $, control: M } = he(), [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`), G = K(() => H == null ? null : { id: H ?? null, name: R ?? "" }, [H, R]), oe = O(() => {
|
|
3726
|
+
const B = e.split(".");
|
|
3650
3727
|
let ce = k.errors;
|
|
3651
|
-
|
|
3728
|
+
B.forEach((Qe) => {
|
|
3652
3729
|
ce !== void 0 && (ce = ce[Qe]);
|
|
3653
3730
|
}), N(ce);
|
|
3654
|
-
}, [k, e]), te = O((
|
|
3655
|
-
if ((
|
|
3731
|
+
}, [k, e]), te = O((B) => {
|
|
3732
|
+
if ((B == null ? void 0 : B.id) === H)
|
|
3656
3733
|
return;
|
|
3657
|
-
if (a && a.forEach((Qe) => y(Qe, null, { shouldDirty: !0, shouldValidate: F })),
|
|
3734
|
+
if (a && a.forEach((Qe) => y(Qe, null, { shouldDirty: !0, shouldValidate: F })), B === null) {
|
|
3658
3735
|
y(e, null, {
|
|
3659
3736
|
shouldDirty: !0,
|
|
3660
3737
|
shouldValidate: F
|
|
@@ -3662,12 +3739,12 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3662
3739
|
return;
|
|
3663
3740
|
}
|
|
3664
3741
|
let ce = null;
|
|
3665
|
-
i ? ce = (
|
|
3742
|
+
i ? ce = (B == null ? void 0 : B.id) !== null && (B == null ? void 0 : B.id) !== "" ? parseInt(B.id.toString(), 10) : null : ce = B.id === null || B.id === void 0 || B.id === "" ? null : B.id, y(e, ce, {
|
|
3666
3743
|
shouldDirty: !0,
|
|
3667
3744
|
shouldValidate: F
|
|
3668
|
-
}), y(`${e}-DropdownName`,
|
|
3669
|
-
}, [y, e, F, i, a, H]), U = O((
|
|
3670
|
-
T(!1), te(
|
|
3745
|
+
}), y(`${e}-DropdownName`, B.name ?? "");
|
|
3746
|
+
}, [y, e, F, i, a, H]), U = O((B) => {
|
|
3747
|
+
T(!1), te(B);
|
|
3671
3748
|
}, [te]), I = O(() => {
|
|
3672
3749
|
T(!1);
|
|
3673
3750
|
}, []);
|
|
@@ -3676,31 +3753,31 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3676
3753
|
}, [oe]), D(() => {
|
|
3677
3754
|
k.isSubmitted && W(!0);
|
|
3678
3755
|
}, [k]);
|
|
3679
|
-
const E = Y(null),
|
|
3680
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid:
|
|
3681
|
-
/* @__PURE__ */ s.jsxs(
|
|
3682
|
-
|
|
3683
|
-
/* @__PURE__ */ s.jsx(
|
|
3684
|
-
|
|
3756
|
+
const E = Y(null), z = S !== void 0, Me = m !== void 0, or = Me && G !== null;
|
|
3757
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid: z, inputContainerClassName: x({ "luminus-dropdown-select-open": _ }), className: C, children: [
|
|
3758
|
+
/* @__PURE__ */ s.jsxs(rr, { currentSelection: G, selectedItemNavigateTo: m, children: [
|
|
3759
|
+
g && (G == null ? void 0 : G.name) && /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: G.name }),
|
|
3760
|
+
/* @__PURE__ */ s.jsx(nn, { control: M, name: e, render: () => /* @__PURE__ */ s.jsx(ee.Select, { size: r, onMouseDown: (B) => {
|
|
3761
|
+
B.currentTarget.focus(), B.preventDefault();
|
|
3685
3762
|
}, onClick: () => {
|
|
3686
3763
|
!Me && !u && T(!0);
|
|
3687
3764
|
}, ref: E, value: H ?? "", onChange: () => {
|
|
3688
|
-
}, isInvalid:
|
|
3765
|
+
}, isInvalid: z, hidden: c, className: x("w-100", {
|
|
3689
3766
|
"luminus-dropdown-picker-disabled": u,
|
|
3690
|
-
"luminus-dropdown-picker-link":
|
|
3691
|
-
}), children: /* @__PURE__ */ s.jsx("option", { value: H, children:
|
|
3767
|
+
"luminus-dropdown-picker-link": or
|
|
3768
|
+
}), children: /* @__PURE__ */ s.jsx("option", { value: H, children: g ? H : (R == null ? void 0 : R.length) > 0 ? R : H }) }) }),
|
|
3692
3769
|
v || !u && Me ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
3693
|
-
!v && !u && Me && /* @__PURE__ */ s.jsx(J, { size: "sm", color: "secondary", onClick: (
|
|
3694
|
-
|
|
3695
|
-
}, children: /* @__PURE__ */ s.jsx(
|
|
3770
|
+
!v && !u && Me && /* @__PURE__ */ s.jsx(J, { size: "sm", color: "secondary", onClick: (B) => {
|
|
3771
|
+
B.preventDefault(), B.stopPropagation(), T(!0);
|
|
3772
|
+
}, children: /* @__PURE__ */ s.jsx(Zt, {}) }),
|
|
3696
3773
|
v ?? null
|
|
3697
3774
|
] }) : null
|
|
3698
3775
|
] }),
|
|
3699
3776
|
S && /* @__PURE__ */ s.jsx(xe, { message: S.message }),
|
|
3700
|
-
E.current && /* @__PURE__ */ s.jsx(
|
|
3777
|
+
E.current && /* @__PURE__ */ s.jsx(yt, { show: _, onCancel: I, items: d, currentSelection: G, onSelectionChange: U, onSearchQueryChange: h, texts: p, itemsNameWidth: b, additionalColumns: j, displayIdAsName: g, isLoading: w, disabled: u, inputRef: E })
|
|
3701
3778
|
] }) });
|
|
3702
|
-
},
|
|
3703
|
-
const { watch:
|
|
3779
|
+
}, Jc = ({ InputContainer: t = we, label: e, formField: n, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h, className: m }) => {
|
|
3780
|
+
const { watch: p, setValue: b, register: w, formState: f } = he(), [j, v] = P(!1), [g, C] = P(void 0), k = O(() => {
|
|
3704
3781
|
b(n, "");
|
|
3705
3782
|
}, [b, n]), y = O(() => {
|
|
3706
3783
|
const M = n.split(".");
|
|
@@ -3712,32 +3789,32 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3712
3789
|
D(y, [y]), D(() => {
|
|
3713
3790
|
f.isSubmitted && v(!0);
|
|
3714
3791
|
}, [f]);
|
|
3715
|
-
const $ =
|
|
3792
|
+
const $ = g !== void 0;
|
|
3716
3793
|
return /* @__PURE__ */ s.jsxs(t, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: $, className: m, children: [
|
|
3717
|
-
/* @__PURE__ */ s.jsx(
|
|
3794
|
+
/* @__PURE__ */ s.jsx(Yn, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: $, hidden: r, disabled: i, className: "w-100", ...w(n, {
|
|
3718
3795
|
onChange: () => {
|
|
3719
3796
|
c && c.forEach((M) => b(M, null, { shouldDirty: !0, shouldValidate: j }));
|
|
3720
3797
|
}
|
|
3721
3798
|
}) }),
|
|
3722
|
-
l &&
|
|
3723
|
-
|
|
3799
|
+
l && p(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, {}) }) }),
|
|
3800
|
+
g && /* @__PURE__ */ s.jsx(xe, { message: g.message })
|
|
3724
3801
|
] });
|
|
3725
|
-
},
|
|
3726
|
-
const { formState: n } =
|
|
3802
|
+
}, Zc = ({ children: t, onStorno: e }) => {
|
|
3803
|
+
const { formState: n } = he(), [r, o] = P(!1);
|
|
3727
3804
|
return D(() => {
|
|
3728
3805
|
o(Object.keys(n.dirtyFields).length > 0);
|
|
3729
|
-
}, [n]), r ? /* @__PURE__ */ s.jsx(
|
|
3730
|
-
},
|
|
3731
|
-
const { customSelectTexts: b } =
|
|
3806
|
+
}, [n]), r ? /* @__PURE__ */ s.jsx(Fa, { onStorno: e, children: t }) : null;
|
|
3807
|
+
}, el = ({ InputContainer: t = we, options: e, formField: n, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: m, className: p }) => {
|
|
3808
|
+
const { customSelectTexts: b } = L(ie), { formState: w, setValue: f, watch: j, control: v } = he(), [g, C] = P(void 0), [k, y] = P(!1), [$, M] = P(!1), [S, N] = P(""), _ = j(n), T = K(() => e.find((I) => I.id === _) ?? null, [e, _]), F = O(() => {
|
|
3732
3809
|
const I = n.split(".");
|
|
3733
3810
|
let E = w.errors;
|
|
3734
|
-
I.forEach((
|
|
3735
|
-
E !== void 0 && (E = E[
|
|
3811
|
+
I.forEach((z) => {
|
|
3812
|
+
E !== void 0 && (E = E[z]);
|
|
3736
3813
|
}), C(E);
|
|
3737
3814
|
}, [w, n]), W = O((I) => {
|
|
3738
3815
|
if ((I == null ? void 0 : I.id) === _)
|
|
3739
3816
|
return;
|
|
3740
|
-
if (a && a.forEach((
|
|
3817
|
+
if (a && a.forEach((z) => f(z, null, { shouldDirty: !0, shouldValidate: $ })), I === null) {
|
|
3741
3818
|
f(n, null, {
|
|
3742
3819
|
shouldDirty: !0,
|
|
3743
3820
|
shouldValidate: $
|
|
@@ -3759,92 +3836,94 @@ const yi = "_item_1dy8x_1", zn = {
|
|
|
3759
3836
|
}, [F]), D(() => {
|
|
3760
3837
|
w.isSubmitted && M(!0);
|
|
3761
3838
|
}, [w]);
|
|
3762
|
-
const
|
|
3839
|
+
const G = O((I) => {
|
|
3763
3840
|
var E;
|
|
3764
3841
|
return I === null ? "" : !I.name || I.name.length === 0 ? ((E = I.id) == null ? void 0 : E.toString()) ?? "" : m ? `${I.name} (${I.id})` : I.name;
|
|
3765
|
-
}, [m]), oe =
|
|
3842
|
+
}, [m]), oe = K(() => e.map((I) => ({
|
|
3766
3843
|
id: I.id,
|
|
3767
|
-
name:
|
|
3844
|
+
name: G(I)
|
|
3768
3845
|
})).filter((I) => {
|
|
3769
3846
|
var E;
|
|
3770
3847
|
return S ? (E = I.name) == null ? void 0 : E.toLowerCase().includes(S.toLowerCase()) : !0;
|
|
3771
|
-
}).sort((I, E) => h ? 0 : (I.name ?? "").localeCompare(E.name ?? "")), [e, h, S,
|
|
3772
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: U, inputContainerClassName: x({ "luminus-dropdown-select-open": k }), className:
|
|
3773
|
-
/* @__PURE__ */ s.jsx(
|
|
3848
|
+
}).sort((I, E) => h ? 0 : (I.name ?? "").localeCompare(E.name ?? "")), [e, h, S, G]), te = Y(null), U = g !== void 0;
|
|
3849
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: U, inputContainerClassName: x({ "luminus-dropdown-select-open": k }), className: p, children: [
|
|
3850
|
+
/* @__PURE__ */ s.jsx(nn, { control: v, name: n, render: () => /* @__PURE__ */ s.jsx(ee.Select, { size: o, onMouseDown: (I) => {
|
|
3774
3851
|
I.currentTarget.focus(), I.preventDefault();
|
|
3775
3852
|
}, onClick: () => {
|
|
3776
3853
|
y(!0);
|
|
3777
3854
|
}, ref: te, value: _ ?? "", onChange: () => {
|
|
3778
|
-
}, isInvalid: U, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (T == null ? void 0 : T.id) ?? "", children:
|
|
3779
|
-
|
|
3780
|
-
te.current && /* @__PURE__ */ s.jsx(
|
|
3855
|
+
}, isInvalid: U, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (T == null ? void 0 : T.id) ?? "", children: G(T) }) }) }),
|
|
3856
|
+
g && /* @__PURE__ */ s.jsx(xe, { message: g.message }),
|
|
3857
|
+
te.current && /* @__PURE__ */ s.jsx(yt, { 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 })
|
|
3781
3858
|
] }) });
|
|
3782
|
-
},
|
|
3859
|
+
}, tl = ({ cell: { value: t } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: t ? /* @__PURE__ */ s.jsx(Lr, { name: t, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), wc = "_tab-panel_qgi9v_1", xc = "_full-height-no-overflow_qgi9v_5", yc = "_disabled_qgi9v_10", nt = {
|
|
3783
3860
|
"tab-panel": "_tab-panel_qgi9v_1",
|
|
3784
|
-
tabPanel:
|
|
3861
|
+
tabPanel: wc,
|
|
3785
3862
|
"full-height-no-overflow": "_full-height-no-overflow_qgi9v_5",
|
|
3786
|
-
fullHeightNoOverflow:
|
|
3787
|
-
disabled:
|
|
3788
|
-
},
|
|
3863
|
+
fullHeightNoOverflow: xc,
|
|
3864
|
+
disabled: yc
|
|
3865
|
+
}, nl = ({ 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 }), rl = ({ activeTab: t, onSelect: e, children: n }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-tabs d-flex gap-1 mb-2"), children: n.map((r) => {
|
|
3789
3866
|
const o = r.type, a = r.props.eventKey, i = r.props.children, l = r.props.className, c = r.props.onClick;
|
|
3790
|
-
return /* @__PURE__ */
|
|
3867
|
+
return /* @__PURE__ */ qr(o, { ...r.props, key: r.props.eventKey, className: x({ active: t === a }, l), onClick: () => {
|
|
3791
3868
|
e(a), c && c(a);
|
|
3792
3869
|
} }, i);
|
|
3793
|
-
}) }),
|
|
3794
|
-
tab:
|
|
3795
|
-
disabled:
|
|
3796
|
-
},
|
|
3870
|
+
}) }), vc = "_tab_1hdhk_1", bc = "_disabled_1hdhk_8", Vt = {
|
|
3871
|
+
tab: vc,
|
|
3872
|
+
disabled: bc
|
|
3873
|
+
}, ol = ({ eventKey: t, className: e, onClick: n, disabled: r, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: x("luminus-tab text-primary rounded", Vt.tab, e, {
|
|
3797
3874
|
disabled: r
|
|
3798
|
-
}, { [
|
|
3875
|
+
}, { [Vt.disabled]: r }), onClick: () => n && !r && n(t), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(Q, { variant: "h6", className: "text-primary", children: o }) : o });
|
|
3799
3876
|
export {
|
|
3800
|
-
|
|
3801
|
-
Ic as
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3877
|
+
Lc as Alert,
|
|
3878
|
+
Ic as ApiFileDownloadButton,
|
|
3879
|
+
Ac as AppSearch,
|
|
3880
|
+
Rc as AuthTemplate,
|
|
3881
|
+
Lr as AvatarIcon,
|
|
3882
|
+
nr as Backdrop,
|
|
3883
|
+
Oc as Badge,
|
|
3884
|
+
Fc as Card,
|
|
3885
|
+
Hc as CheckInput,
|
|
3886
|
+
Mc as Collapse,
|
|
3887
|
+
Ra as ContextButton,
|
|
3888
|
+
Di as Dropdown,
|
|
3889
|
+
Pc as DropdownDivider,
|
|
3890
|
+
Ii as DropdownItem,
|
|
3891
|
+
Vc as DropdownPicker,
|
|
3892
|
+
Si as DropdownToggle,
|
|
3893
|
+
Zn as FileUploadContextButton,
|
|
3894
|
+
Dc as FileUploadDropdownItem,
|
|
3895
|
+
Fa as FloatingFormSubmit,
|
|
3896
|
+
Be as FloatingLabelInput,
|
|
3897
|
+
Ec as HomeDashboard,
|
|
3898
|
+
Uc as HookFormCheckInput,
|
|
3899
|
+
Xc as HookFormDropdownPicker,
|
|
3900
|
+
Jc as HookFormFileInput,
|
|
3901
|
+
Zc as HookFormFloatingSubmit,
|
|
3902
|
+
zc as HookFormRadioInput,
|
|
3903
|
+
el as HookFormSelectInput,
|
|
3904
|
+
Kc as HookFormTextAreaInput,
|
|
3905
|
+
Qc as HookFormTextInput,
|
|
3906
|
+
Yc as HtmlTooltip,
|
|
3829
3907
|
J as IconButton,
|
|
3830
3908
|
xe as InvalidFeedback,
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3909
|
+
Gr as Loading,
|
|
3910
|
+
Sc as MonthPicker,
|
|
3911
|
+
il as NoInputContainer,
|
|
3912
|
+
Wc as PhotoLibrary,
|
|
3913
|
+
gc as PhotoLightbox,
|
|
3914
|
+
Wt as PrimaryButton,
|
|
3837
3915
|
we as RowLabelInput,
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3916
|
+
Gc as SelectInput,
|
|
3917
|
+
yt as SimplePicker,
|
|
3918
|
+
Or as SimpleToggle,
|
|
3919
|
+
ul as SimpleTooltip,
|
|
3920
|
+
ol as Tab,
|
|
3921
|
+
nl as TabPanel,
|
|
3922
|
+
rl as Tabs,
|
|
3923
|
+
Bc as TextInput,
|
|
3846
3924
|
Q as Typography,
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3925
|
+
cl as UserAvatarToggle,
|
|
3926
|
+
tl as UserAvatarValueFormat,
|
|
3927
|
+
qc as VersionInfo,
|
|
3928
|
+
Tc as YearPicker
|
|
3850
3929
|
};
|