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