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